diff --git a/AudioTest/Extensions.cs b/AudioTest/Extensions.cs new file mode 100644 index 0000000..c03bf0f --- /dev/null +++ b/AudioTest/Extensions.cs @@ -0,0 +1,18 @@ +namespace XAudioTest +{ + using HexaGen.Runtime; + using System; + using System.Collections.Generic; + using System.Linq; + using System.Text; + using System.Threading.Tasks; + + public static class Extensions + { + public static void ThrowIf(this int hresult) + { + HResult result = hresult; + result.ThrowIf(); + } + } +} \ No newline at end of file diff --git a/AudioTest/Program.cs b/AudioTest/Program.cs index 8d63973..03ea059 100644 --- a/AudioTest/Program.cs +++ b/AudioTest/Program.cs @@ -3,6 +3,8 @@ using Hexa.NET.XAudio2; using HexaGen.Runtime.COM; using System.Numerics; +using System.Runtime.InteropServices; +using System.Text; using XAudioTest; unsafe @@ -13,7 +15,13 @@ audio.StartEngine().ThrowIf(); ComPtr master = default; - audio.CreateMasteringVoice(ref master, 2, 192000, 0, null, null, AudioStreamCategory.GameMedia).ThrowIf(); + audio.CreateMasteringVoice(ref master, 8, 192000, 0, null, null, AudioStreamCategory.GameMedia).ThrowIf(); + + XAudio2VoiceDetails details; + master.GetVoiceDetails(&details); + + ComPtr submix = default; + audio.CreateSubmixVoice(ref submix, details.InputChannels, details.InputSampleRate, 0, 0, null, null).ThrowIf(); uint channelMask; master.GetChannelMask(&channelMask); @@ -21,11 +29,6 @@ X3DAudioHandle handle = new(); X3DAudio.X3DAudioInitialize(channelMask, X3DAudio.X3DAudio_SPEED_OF_SOUND, &handle).ThrowIf(); - for (int i = 0; i < 20; i++) - { - Console.WriteLine(handle.Data[i]); - } - var fs = File.OpenRead("CantinaBand60.wav"); XAudio2WaveAudioStream stream = new(fs) @@ -38,35 +41,74 @@ audio.CreateSourceVoice(ref source, ref waveFormat, 0, 1, (IXAudio2VoiceCallback*)null, null, null).ThrowIf(); stream.Initialize(source); - source.Start(0, 0).ThrowIf(); + source.Start(0, 0).ThrowIf(); source.SetVolume(10, 0); - X3DAudioListener listener = new(Vector4.UnitZ, Vector4.UnitY, Vector4.Zero, Vector4.Zero); + X3DAudioListener listener = new(Vector3.UnitZ, Vector3.UnitY, Vector3.Zero, Vector3.Zero); + + X3DAudioEmitter emitter = new(null, Vector3.UnitZ, Vector3.UnitY, Vector3.Zero, Vector3.Zero); - X3DAudioEmitter emitter = new(null, Vector4.UnitZ, Vector4.UnitY, Vector4.Zero, Vector4.Zero); - float* channelAzu = stackalloc float[waveFormat.Channels + 32]; - emitter.PChannelAzimuths = channelAzu; emitter.ChannelCount = 1; emitter.CurveDistanceScaler = emitter.DopplerScaler = 1; - var pos = emitter.Position; X3DAudioDspSettings settings = default; - float* matrix = stackalloc float[waveFormat.Channels + 32]; - settings.SrcChannelCount = 1; - settings.DstChannelCount = waveFormat.Channels; + float* matrix = (float*)Marshal.AllocHGlobal((nint)(emitter.ChannelCount * details.InputChannels) * sizeof(float)); + + settings.SrcChannelCount = emitter.ChannelCount; + settings.DstChannelCount = details.InputChannels; settings.PMatrixCoefficients = matrix; - X3DAudio.X3DAudioCalculate(&handle, &listener, &emitter, X3DAudio.X3DAudio_CALCULATE_MATRIX | X3DAudio.X3DAudio_CALCULATE_DOPPLER | X3DAudio.X3DAudio_CALCULATE_LPF_DIRECT | X3DAudio.X3DAudio_CALCULATE_REVERB, &settings); + + X3DAudio.X3DAudioCalculate(handle, &listener, &emitter, X3DAudio.X3DAudio_CALCULATE_MATRIX | X3DAudio.X3DAudio_CALCULATE_DOPPLER | X3DAudio.X3DAudio_CALCULATE_LPF_DIRECT | X3DAudio.X3DAudio_CALCULATE_REVERB, &settings); + + float angleXZ = 90.0f; + float angleY = 0.0f; + float radiusXZ = 1; + float radiusY = 1; + float lastX = radiusXZ * MathF.Cos(angleXZ); + float lastZ = radiusXZ * MathF.Sin(angleXZ); + float lastY = radiusY * MathF.Sin(angleY); bool running = true; while (running) { stream.Update(source); running = !stream.ReachedEnd; + + // Update emitter position to move in a circle around the listener on the XZ plane + emitter.Position.X = radiusXZ * MathF.Cos(angleXZ); + emitter.Position.Z = radiusXZ * MathF.Sin(angleXZ); + emitter.Position.Y = radiusY * MathF.Sin(angleY); + + emitter.Velocity.X = (emitter.Position.X - lastX) / 0.01f; + emitter.Velocity.Z = (emitter.Position.Z - lastZ) / 0.01f; + emitter.Velocity.Y = (emitter.Position.Y - lastY) / 0.01f; + + lastX = emitter.Position.X; + lastZ = emitter.Position.Z; + lastY = emitter.Position.Y; + + angleXZ += 0.05f; + angleY += 0.075f; + + X3DAudio.X3DAudioCalculate(handle, &listener, &emitter, + X3DAudio.X3DAudio_CALCULATE_MATRIX | X3DAudio.X3DAudio_CALCULATE_DOPPLER | + X3DAudio.X3DAudio_CALCULATE_LPF_DIRECT | X3DAudio.X3DAudio_CALCULATE_REVERB, &settings); + + source.SetOutputMatrix((IXAudio2Voice*)master.Handle, waveFormat.Channels, details.InputChannels, settings.PMatrixCoefficients, 0u); + source.SetFrequencyRatio(settings.DopplerFactor, XAudio2.XAudio2_COMMIT_NOW); + source.SetOutputMatrix((IXAudio2Voice*)submix.Handle, 1, 1, &settings.ReverbLevel, 0); + + XAudio2FilterParameters FilterParameters = new(XAudio2FilterType.LowPassFilter, 2.0f * MathF.Sin(float.Pi / 6.0f * settings.LPFDirectCoefficient), 1.0f); + source.SetFilterParameters(&FilterParameters, 0); + Thread.Sleep(10); } + Marshal.FreeHGlobal((nint)settings.PMatrixCoefficients); + stream.Dispose(); source.Release(); + submix.Release(); master.Release(); audio.Release(); } \ No newline at end of file diff --git a/AudioTest/XAudioTest.csproj b/AudioTest/XAudioTest.csproj index 6b7cd09..6da683a 100644 --- a/AudioTest/XAudioTest.csproj +++ b/AudioTest/XAudioTest.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 enable enable true diff --git a/Hexa.NET.FreeType/Generated/Constants.cs b/Hexa.NET.FreeType/Generated/Constants.cs index 4825e14..770cd71 100644 --- a/Hexa.NET.FreeType/Generated/Constants.cs +++ b/Hexa.NET.FreeType/Generated/Constants.cs @@ -470,5 +470,13 @@ public unsafe partial class FreeType [NativeName(NativeNameType.Value, "2")] public const int FREETYPE_PATCH = 2; + [NativeName(NativeNameType.Const, "FT_PALETTE_FOR_LIGHT_BACKGROUND")] + [NativeName(NativeNameType.Value, "0x01")] + public const int FT_PALETTE_FOR_LIGHT_BACKGROUND = 0x01; + + [NativeName(NativeNameType.Const, "FT_PALETTE_FOR_DARK_BACKGROUND")] + [NativeName(NativeNameType.Value, "0x02")] + public const int FT_PALETTE_FOR_DARK_BACKGROUND = 0x02; + } } diff --git a/Hexa.NET.FreeType/Generated/Enumerations.cs b/Hexa.NET.FreeType/Generated/Enumerations.cs index 7a47387..4c1748a 100644 --- a/Hexa.NET.FreeType/Generated/Enumerations.cs +++ b/Hexa.NET.FreeType/Generated/Enumerations.cs @@ -581,4 +581,288 @@ public enum FTKerningMode Unscaled = unchecked(2), } + /// /// ************************************************************************
///
/// FT_Glyph_BBox_Mode
///
/// :
/// The mode how the values of
/// _Glyph_Get_CBox are returned.
///
/// :
/// FT_GLYPH_BBOX_UNSCALED ::
/// Return unscaled font units.
/// FT_GLYPH_BBOX_SUBPIXELS ::
/// Return unfitted 26.6 coordinates.
/// FT_GLYPH_BBOX_GRIDFIT ::
/// Return grid-fitted 26.6 coordinates.
/// FT_GLYPH_BBOX_TRUNCATE ::
/// Return coordinates in integer pixels.
/// FT_GLYPH_BBOX_PIXELS ::
/// Return grid-fitted pixel coordinates.
///
[NativeName(NativeNameType.Enum, "FT_Glyph_BBox_Mode_")] + public enum FTGlyphBBoxMode + { + [NativeName(NativeNameType.EnumItem, "FT_GLYPH_BBOX_UNSCALED")] + [NativeName(NativeNameType.Value, "0")] + GlyphBboxUnscaled = unchecked(0), + [NativeName(NativeNameType.EnumItem, "FT_GLYPH_BBOX_SUBPIXELS")] + [NativeName(NativeNameType.Value, "0")] + GlyphBboxSubpixels = unchecked(0), + [NativeName(NativeNameType.EnumItem, "FT_GLYPH_BBOX_GRIDFIT")] + [NativeName(NativeNameType.Value, "1")] + GlyphBboxGridfit = unchecked(1), + [NativeName(NativeNameType.EnumItem, "FT_GLYPH_BBOX_TRUNCATE")] + [NativeName(NativeNameType.Value, "2")] + GlyphBboxTruncate = unchecked(2), + [NativeName(NativeNameType.EnumItem, "FT_GLYPH_BBOX_PIXELS")] + [NativeName(NativeNameType.Value, "3")] + GlyphBboxPixels = unchecked(3), + } + + /// /// ************************************************************************
///
/// FT_Orientation
///
/// :
/// A list of values used to describe an outline's contour orientation.
/// The TrueType and PostScript specifications use different conventions
/// to determine whether outline contours should be filled or unfilled.
///
/// :
/// FT_ORIENTATION_TRUETYPE ::
/// According to the TrueType specification, clockwise contours must be
/// filled, and counter-clockwise ones must be unfilled.
/// FT_ORIENTATION_POSTSCRIPT ::
/// According to the PostScript specification, counter-clockwise
/// contours must be filled, and clockwise ones must be unfilled.
/// FT_ORIENTATION_FILL_RIGHT ::
/// This is identical to
/// _ORIENTATION_TRUETYPE, but is used to
/// remember that in TrueType, everything that is to the right of the
/// drawing direction of a contour must be filled.
/// FT_ORIENTATION_FILL_LEFT ::
/// This is identical to
/// _ORIENTATION_POSTSCRIPT, but is used to
/// remember that in PostScript, everything that is to the left of the
/// drawing direction of a contour must be filled.
/// FT_ORIENTATION_NONE ::
/// The orientation cannot be determined. That is, different parts of
/// the glyph have different orientation.
///
///
[NativeName(NativeNameType.Enum, "FT_Orientation_")] + public enum FTOrientation + { + [NativeName(NativeNameType.EnumItem, "FT_ORIENTATION_TRUETYPE")] + [NativeName(NativeNameType.Value, "0")] + Truetype = unchecked(0), + [NativeName(NativeNameType.EnumItem, "FT_ORIENTATION_POSTSCRIPT")] + [NativeName(NativeNameType.Value, "1")] + Postscript = unchecked(1), + [NativeName(NativeNameType.EnumItem, "FT_ORIENTATION_FILL_RIGHT")] + [NativeName(NativeNameType.Value, "FT_ORIENTATION_TRUETYPE")] + FillRight = Truetype, + [NativeName(NativeNameType.EnumItem, "FT_ORIENTATION_FILL_LEFT")] + [NativeName(NativeNameType.Value, "FT_ORIENTATION_POSTSCRIPT")] + FillLeft = Postscript, + [NativeName(NativeNameType.EnumItem, "FT_ORIENTATION_NONE")] + [NativeName(NativeNameType.Value, "2")] + None = unchecked(2), + } + + /// /// ************************************************************************
///
/// FT_PaintFormat
///
/// :
/// Enumeration describing the different paint format types of the v1
/// extensions to the 'COLR' table, see
/// 'https://github.com/googlefonts/colr-gradients-spec'.
/// The enumeration values loosely correspond with the format numbers of
/// the specification: FreeType always returns a fully specified 'Paint'
/// structure for the 'Transform', 'Translate', 'Scale', 'Rotate', and
/// 'Skew' table types even though the specification has different formats
/// depending on whether or not a center is specified, whether the scale
/// is uniform in x and y~direction or not, etc. Also, only non-variable
/// format identifiers are listed in this enumeration; as soon as support
/// for variable 'COLR' v1 fonts is implemented, interpolation is
/// performed dependent on axis coordinates, which are configured on the
///
/// _Face through
/// _Set_Var_Design_Coordinates. This implies that
/// always static, readily interpolated values are returned in the 'Paint'
/// structures.
///
///
[NativeName(NativeNameType.Enum, "FT_PaintFormat_")] + public enum FTPaintFormat + { + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_COLR_LAYERS")] + [NativeName(NativeNameType.Value, "1")] + ColrPaintformatColrLayers = unchecked(1), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_SOLID")] + [NativeName(NativeNameType.Value, "2")] + ColrPaintformatSolid = unchecked(2), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_LINEAR_GRADIENT")] + [NativeName(NativeNameType.Value, "4")] + ColrPaintformatLinearGradient = unchecked(4), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_RADIAL_GRADIENT")] + [NativeName(NativeNameType.Value, "6")] + ColrPaintformatRadialGradient = unchecked(6), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_SWEEP_GRADIENT")] + [NativeName(NativeNameType.Value, "8")] + ColrPaintformatSweepGradient = unchecked(8), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_GLYPH")] + [NativeName(NativeNameType.Value, "10")] + ColrPaintformatGlyph = unchecked(10), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_COLR_GLYPH")] + [NativeName(NativeNameType.Value, "11")] + ColrPaintformatColrGlyph = unchecked(11), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_TRANSFORM")] + [NativeName(NativeNameType.Value, "12")] + ColrPaintformatTransform = unchecked(12), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_TRANSLATE")] + [NativeName(NativeNameType.Value, "14")] + ColrPaintformatTranslate = unchecked(14), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_SCALE")] + [NativeName(NativeNameType.Value, "16")] + ColrPaintformatScale = unchecked(16), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_ROTATE")] + [NativeName(NativeNameType.Value, "24")] + ColrPaintformatRotate = unchecked(24), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_SKEW")] + [NativeName(NativeNameType.Value, "28")] + ColrPaintformatSkew = unchecked(28), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_COMPOSITE")] + [NativeName(NativeNameType.Value, "32")] + ColrPaintformatComposite = unchecked(32), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINT_FORMAT_MAX")] + [NativeName(NativeNameType.Value, "33")] + ColrPaintFormatMax = unchecked(33), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINTFORMAT_UNSUPPORTED")] + [NativeName(NativeNameType.Value, "255")] + ColrPaintformatUnsupported = unchecked(255), + } + + /// /// ************************************************************************
///
/// FT_PaintExtend
///
/// :
/// An enumeration representing the 'Extend' mode of the 'COLR' v1
/// extensions, see 'https://github.com/googlefonts/colr-gradients-spec'.
/// It describes how the gradient fill continues at the other boundaries.
///
///
[NativeName(NativeNameType.Enum, "FT_PaintExtend_")] + public enum FTPaintExtend + { + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINT_EXTEND_PAD")] + [NativeName(NativeNameType.Value, "0")] + ColrPaintExtendPad = unchecked(0), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINT_EXTEND_REPEAT")] + [NativeName(NativeNameType.Value, "1")] + ColrPaintExtendRepeat = unchecked(1), + [NativeName(NativeNameType.EnumItem, "FT_COLR_PAINT_EXTEND_REFLECT")] + [NativeName(NativeNameType.Value, "2")] + ColrPaintExtendReflect = unchecked(2), + } + + /// /// ************************************************************************
///
/// FT_Composite_Mode
///
/// :
/// An enumeration listing the 'COLR' v1 composite modes used in
///
/// _PaintComposite. For more details on each paint mode, see
/// 'https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators'.
///
///
[NativeName(NativeNameType.Enum, "FT_Composite_Mode_")] + public enum FTCompositeMode + { + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_CLEAR")] + [NativeName(NativeNameType.Value, "0")] + ColrCompositeClear = unchecked(0), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_SRC")] + [NativeName(NativeNameType.Value, "1")] + ColrCompositeSrc = unchecked(1), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_DEST")] + [NativeName(NativeNameType.Value, "2")] + ColrCompositeDest = unchecked(2), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_SRC_OVER")] + [NativeName(NativeNameType.Value, "3")] + ColrCompositeSrcOver = unchecked(3), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_DEST_OVER")] + [NativeName(NativeNameType.Value, "4")] + ColrCompositeDestOver = unchecked(4), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_SRC_IN")] + [NativeName(NativeNameType.Value, "5")] + ColrCompositeSrcIn = unchecked(5), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_DEST_IN")] + [NativeName(NativeNameType.Value, "6")] + ColrCompositeDestIn = unchecked(6), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_SRC_OUT")] + [NativeName(NativeNameType.Value, "7")] + ColrCompositeSrcOut = unchecked(7), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_DEST_OUT")] + [NativeName(NativeNameType.Value, "8")] + ColrCompositeDestOut = unchecked(8), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_SRC_ATOP")] + [NativeName(NativeNameType.Value, "9")] + ColrCompositeSrcAtop = unchecked(9), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_DEST_ATOP")] + [NativeName(NativeNameType.Value, "10")] + ColrCompositeDestAtop = unchecked(10), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_XOR")] + [NativeName(NativeNameType.Value, "11")] + ColrCompositeXor = unchecked(11), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_PLUS")] + [NativeName(NativeNameType.Value, "12")] + ColrCompositePlus = unchecked(12), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_SCREEN")] + [NativeName(NativeNameType.Value, "13")] + ColrCompositeScreen = unchecked(13), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_OVERLAY")] + [NativeName(NativeNameType.Value, "14")] + ColrCompositeOverlay = unchecked(14), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_DARKEN")] + [NativeName(NativeNameType.Value, "15")] + ColrCompositeDarken = unchecked(15), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_LIGHTEN")] + [NativeName(NativeNameType.Value, "16")] + ColrCompositeLighten = unchecked(16), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_COLOR_DODGE")] + [NativeName(NativeNameType.Value, "17")] + ColrCompositeColorDodge = unchecked(17), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_COLOR_BURN")] + [NativeName(NativeNameType.Value, "18")] + ColrCompositeColorBurn = unchecked(18), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_HARD_LIGHT")] + [NativeName(NativeNameType.Value, "19")] + ColrCompositeHardLight = unchecked(19), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_SOFT_LIGHT")] + [NativeName(NativeNameType.Value, "20")] + ColrCompositeSoftLight = unchecked(20), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_DIFFERENCE")] + [NativeName(NativeNameType.Value, "21")] + ColrCompositeDifference = unchecked(21), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_EXCLUSION")] + [NativeName(NativeNameType.Value, "22")] + ColrCompositeExclusion = unchecked(22), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_MULTIPLY")] + [NativeName(NativeNameType.Value, "23")] + ColrCompositeMultiply = unchecked(23), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_HSL_HUE")] + [NativeName(NativeNameType.Value, "24")] + ColrCompositeHslHue = unchecked(24), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_HSL_SATURATION")] + [NativeName(NativeNameType.Value, "25")] + ColrCompositeHslSaturation = unchecked(25), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_HSL_COLOR")] + [NativeName(NativeNameType.Value, "26")] + ColrCompositeHslColor = unchecked(26), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_HSL_LUMINOSITY")] + [NativeName(NativeNameType.Value, "27")] + ColrCompositeHslLuminosity = unchecked(27), + [NativeName(NativeNameType.EnumItem, "FT_COLR_COMPOSITE_MAX")] + [NativeName(NativeNameType.Value, "28")] + ColrCompositeMax = unchecked(28), + } + + /// /// ************************************************************************
///
/// FT_Color_Root_Transform
///
/// :
/// An enumeration to specify whether
/// _Get_Color_Glyph_Paint is to
/// return a root transform to configure the client's graphics context
/// matrix.
///
/// :
/// FT_COLOR_INCLUDE_ROOT_TRANSFORM ::
/// Do include the root transform as the initial
/// _COLR_Paint object.
/// FT_COLOR_NO_ROOT_TRANSFORM ::
/// Do not output an initial root transform.
///
///
[NativeName(NativeNameType.Enum, "FT_Color_Root_Transform_")] + public enum FTColorRootTransform + { + [NativeName(NativeNameType.EnumItem, "FT_COLOR_INCLUDE_ROOT_TRANSFORM")] + [NativeName(NativeNameType.Value, "0")] + IncludeRootTransform = unchecked(0), + [NativeName(NativeNameType.EnumItem, "FT_COLOR_NO_ROOT_TRANSFORM")] + [NativeName(NativeNameType.Value, "1")] + NoRootTransform = unchecked(1), + [NativeName(NativeNameType.EnumItem, "FT_COLOR_ROOT_TRANSFORM_MAX")] + [NativeName(NativeNameType.Value, "2")] + Max = unchecked(2), + } + + /// /// ************************************************************************
///
/// FT_Sfnt_Tag
///
/// :
/// An enumeration to specify indices of SFNT tables loaded and parsed by
/// FreeType during initialization of an SFNT font. Used in the
///
/// _Get_Sfnt_Table API function.
///
/// :
/// FT_SFNT_HEAD ::
/// To access the font's
/// _Header structure.
/// FT_SFNT_MAXP ::
/// To access the font's
/// _MaxProfile structure.
/// FT_SFNT_OS2 ::
/// To access the font's
/// _OS2 structure.
/// FT_SFNT_HHEA ::
/// To access the font's
/// _HoriHeader structure.
/// FT_SFNT_VHEA ::
/// To access the font's
/// _VertHeader structure.
/// FT_SFNT_POST ::
/// To access the font's
/// _Postscript structure.
/// FT_SFNT_PCLT ::
/// To access the font's
/// _PCLT structure.
///
[NativeName(NativeNameType.Enum, "FT_Sfnt_Tag_")] + public enum FTSfntTag + { + [NativeName(NativeNameType.EnumItem, "FT_SFNT_HEAD")] + [NativeName(NativeNameType.Value, "0")] + Head = unchecked(0), + [NativeName(NativeNameType.EnumItem, "FT_SFNT_MAXP")] + [NativeName(NativeNameType.Value, "1")] + Maxp = unchecked(1), + [NativeName(NativeNameType.EnumItem, "FT_SFNT_OS2")] + [NativeName(NativeNameType.Value, "2")] + Os2 = unchecked(2), + [NativeName(NativeNameType.EnumItem, "FT_SFNT_HHEA")] + [NativeName(NativeNameType.Value, "3")] + Hhea = unchecked(3), + [NativeName(NativeNameType.EnumItem, "FT_SFNT_VHEA")] + [NativeName(NativeNameType.Value, "4")] + Vhea = unchecked(4), + [NativeName(NativeNameType.EnumItem, "FT_SFNT_POST")] + [NativeName(NativeNameType.Value, "5")] + Post = unchecked(5), + [NativeName(NativeNameType.EnumItem, "FT_SFNT_PCLT")] + [NativeName(NativeNameType.Value, "6")] + Pclt = unchecked(6), + [NativeName(NativeNameType.EnumItem, "FT_SFNT_MAX")] + [NativeName(NativeNameType.Value, "7")] + Max = unchecked(7), + } + + /// /// ************************************************************************
///
/// FT_Stroker_LineJoin
///
/// :
/// These values determine how two joining lines are rendered in a
/// stroker.
///
/// :
/// FT_STROKER_LINEJOIN_ROUND ::
/// Used to render rounded line joins. Circular arcs are used to join
/// two lines smoothly.
/// FT_STROKER_LINEJOIN_BEVEL ::
/// Used to render beveled line joins. The outer corner of the joined
/// lines is filled by enclosing the triangular region of the corner
/// with a straight line between the outer corners of each stroke.
/// FT_STROKER_LINEJOIN_MITER_FIXED ::
/// Used to render mitered line joins, with fixed bevels if the miter
/// limit is exceeded. The outer edges of the strokes for the two
/// segments are extended until they meet at an angle. A bevel join
/// (see above) is used if the segments meet at too sharp an angle and
/// the outer edges meet beyond a distance corresponding to the meter
/// limit. This prevents long spikes being created.
/// `FT_STROKER_LINEJOIN_MITER_FIXED` generates a miter line join as
/// used in PostScript and PDF.
/// FT_STROKER_LINEJOIN_MITER_VARIABLE ::
/// FT_STROKER_LINEJOIN_MITER ::
/// Used to render mitered line joins, with variable bevels if the miter
/// limit is exceeded. The intersection of the strokes is clipped
/// perpendicularly to the bisector, at a distance corresponding to
/// the miter limit. This prevents long spikes being created.
/// `FT_STROKER_LINEJOIN_MITER_VARIABLE` generates a mitered line join
/// as used in XPS. `FT_STROKER_LINEJOIN_MITER` is an alias for
/// `FT_STROKER_LINEJOIN_MITER_VARIABLE`, retained for backward
/// compatibility.
///
[NativeName(NativeNameType.Enum, "FT_Stroker_LineJoin_")] + public enum FTStrokerLineJoin + { + [NativeName(NativeNameType.EnumItem, "FT_STROKER_LINEJOIN_ROUND")] + [NativeName(NativeNameType.Value, "0")] + LinejoinRound = unchecked(0), + [NativeName(NativeNameType.EnumItem, "FT_STROKER_LINEJOIN_BEVEL")] + [NativeName(NativeNameType.Value, "1")] + LinejoinBevel = unchecked(1), + [NativeName(NativeNameType.EnumItem, "FT_STROKER_LINEJOIN_MITER_VARIABLE")] + [NativeName(NativeNameType.Value, "2")] + LinejoinMiterVariable = unchecked(2), + [NativeName(NativeNameType.EnumItem, "FT_STROKER_LINEJOIN_MITER")] + [NativeName(NativeNameType.Value, "FT_STROKER_LINEJOIN_MITER_VARIABLE")] + LinejoinMiter = LinejoinMiterVariable, + [NativeName(NativeNameType.EnumItem, "FT_STROKER_LINEJOIN_MITER_FIXED")] + [NativeName(NativeNameType.Value, "3")] + LinejoinMiterFixed = unchecked(3), + } + + /// /// ************************************************************************
///
/// FT_Stroker_LineCap
///
/// :
/// These values determine how the end of opened sub-paths are rendered in
/// a stroke.
///
/// :
/// FT_STROKER_LINECAP_BUTT ::
/// The end of lines is rendered as a full stop on the last point
/// itself.
/// FT_STROKER_LINECAP_ROUND ::
/// The end of lines is rendered as a half-circle around the last point.
/// FT_STROKER_LINECAP_SQUARE ::
/// The end of lines is rendered as a square around the last point.
///
[NativeName(NativeNameType.Enum, "FT_Stroker_LineCap_")] + public enum FTStrokerLineCap + { + [NativeName(NativeNameType.EnumItem, "FT_STROKER_LINECAP_BUTT")] + [NativeName(NativeNameType.Value, "0")] + LinecapButt = unchecked(0), + [NativeName(NativeNameType.EnumItem, "FT_STROKER_LINECAP_ROUND")] + [NativeName(NativeNameType.Value, "1")] + LinecapRound = unchecked(1), + [NativeName(NativeNameType.EnumItem, "FT_STROKER_LINECAP_SQUARE")] + [NativeName(NativeNameType.Value, "2")] + LinecapSquare = unchecked(2), + } + + /// /// ************************************************************************
///
/// FT_StrokerBorder
///
/// :
/// These values are used to select a given stroke border in
///
/// _Stroker_GetBorderCounts and
/// _Stroker_ExportBorder.
///
/// :
/// FT_STROKER_BORDER_LEFT ::
/// Select the left border, relative to the drawing direction.
/// FT_STROKER_BORDER_RIGHT ::
/// Select the right border, relative to the drawing direction.
///
/// You can however use
/// _Outline_GetInsideBorder and
///
/// _Outline_GetOutsideBorder to get these.
///
[NativeName(NativeNameType.Enum, "FT_StrokerBorder_")] + public enum FTStrokerBorder + { + [NativeName(NativeNameType.EnumItem, "FT_STROKER_BORDER_LEFT")] + [NativeName(NativeNameType.Value, "0")] + Left = unchecked(0), + [NativeName(NativeNameType.EnumItem, "FT_STROKER_BORDER_RIGHT")] + [NativeName(NativeNameType.Value, "1")] + Right = unchecked(1), + } + } diff --git a/Hexa.NET.FreeType/Generated/Extensions.cs b/Hexa.NET.FreeType/Generated/Extensions.cs index 21ece66..0ea96cd 100644 --- a/Hexa.NET.FreeType/Generated/Extensions.cs +++ b/Hexa.NET.FreeType/Generated/Extensions.cs @@ -309,6 +309,396 @@ public static void Version(this FTLibrary library, [NativeName(NativeNameType.Pa } } + /// /// ************************************************************************
///
/// FT_New_Glyph
///
/// :
/// A function used to create a new empty glyph image. Note that the
/// created
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// library ::
/// A handle to the FreeType library object.
/// format ::
/// The format of the glyph's image.
///
/// :
/// aglyph ::
/// A handle to the glyph object.
///
///
///
[NativeName(NativeNameType.Func, "FT_New_Glyph")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int NewGlyph(this FTLibrary library, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "FT_Glyph_Format")] FTGlyphFormat format, [NativeName(NativeNameType.Param, "aglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* aglyph) + { + int ret = FreeType.FTNewGlyphNative(library, format, aglyph); + return ret; + } + + /// /// ************************************************************************
///
/// FT_New_Glyph
///
/// :
/// A function used to create a new empty glyph image. Note that the
/// created
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// library ::
/// A handle to the FreeType library object.
/// format ::
/// The format of the glyph's image.
///
/// :
/// aglyph ::
/// A handle to the glyph object.
///
///
///
[NativeName(NativeNameType.Func, "FT_New_Glyph")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int NewGlyph(this FTLibrary library, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "FT_Glyph_Format")] FTGlyphFormat format, [NativeName(NativeNameType.Param, "aglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] ref FTGlyph aglyph) + { + fixed (FTGlyph* paglyph = &aglyph) + { + int ret = FreeType.FTNewGlyphNative(library, format, (FTGlyph*)paglyph); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Outline_New
///
/// :
/// Create a new outline of a given size.
///
/// :
/// library ::
/// A handle to the library object from where the outline is allocated.
/// Note however that the new outline will **not** necessarily be
/// **freed**, when destroying the library, by
/// _Done_FreeType.
/// numPoints ::
/// The maximum number of points within the outline. Must be smaller
/// than or equal to 0xFFFF (65535).
/// numContours ::
/// The maximum number of contours within the outline. This value must
/// be in the range 0 to `numPoints`.
///
/// :
/// anoutline ::
/// A handle to the new outline.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_New")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineNew(this FTLibrary library, [NativeName(NativeNameType.Param, "numPoints")] [NativeName(NativeNameType.Type, "FT_UInt")] uint numPoints, [NativeName(NativeNameType.Param, "numContours")] [NativeName(NativeNameType.Type, "FT_Int")] int numContours, [NativeName(NativeNameType.Param, "anoutline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* anoutline) + { + int ret = FreeType.FTOutlineNewNative(library, numPoints, numContours, anoutline); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Outline_New
///
/// :
/// Create a new outline of a given size.
///
/// :
/// library ::
/// A handle to the library object from where the outline is allocated.
/// Note however that the new outline will **not** necessarily be
/// **freed**, when destroying the library, by
/// _Done_FreeType.
/// numPoints ::
/// The maximum number of points within the outline. Must be smaller
/// than or equal to 0xFFFF (65535).
/// numContours ::
/// The maximum number of contours within the outline. This value must
/// be in the range 0 to `numPoints`.
///
/// :
/// anoutline ::
/// A handle to the new outline.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_New")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineNew(this FTLibrary library, [NativeName(NativeNameType.Param, "numPoints")] [NativeName(NativeNameType.Type, "FT_UInt")] uint numPoints, [NativeName(NativeNameType.Param, "numContours")] [NativeName(NativeNameType.Type, "FT_Int")] int numContours, [NativeName(NativeNameType.Param, "anoutline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline anoutline) + { + fixed (FTOutline* panoutline = &anoutline) + { + int ret = FreeType.FTOutlineNewNative(library, numPoints, numContours, (FTOutline*)panoutline); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Outline_Done
///
/// :
/// Destroy an outline created with
/// _Outline_New.
///
/// :
/// library ::
/// A handle of the library object used to allocate the outline.
/// outline ::
/// A pointer to the outline object to be discarded.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Done")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineDone(this FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline) + { + int ret = FreeType.FTOutlineDoneNative(library, outline); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Outline_Done
///
/// :
/// Destroy an outline created with
/// _Outline_New.
///
/// :
/// library ::
/// A handle of the library object used to allocate the outline.
/// outline ::
/// A pointer to the outline object to be discarded.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Done")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineDone(this FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline) + { + fixed (FTOutline* poutline = &outline) + { + int ret = FreeType.FTOutlineDoneNative(library, (FTOutline*)poutline); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Outline_Get_Bitmap
///
/// :
/// Render an outline within a bitmap. The outline's image is simply
/// OR-ed to the target bitmap.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// abitmap ::
/// A pointer to the target bitmap descriptor.
///
///
/// It will use the raster corresponding to the default glyph format.
/// The value of the `num_grays` field in `abitmap` is ignored. If you
/// select the gray-level rasterizer, and you want less than 256 gray
/// levels, you have to use
/// _Outline_Render directly.
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineGetBitmap(this FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* abitmap) + { + int ret = FreeType.FTOutlineGetBitmapNative(library, outline, abitmap); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Outline_Get_Bitmap
///
/// :
/// Render an outline within a bitmap. The outline's image is simply
/// OR-ed to the target bitmap.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// abitmap ::
/// A pointer to the target bitmap descriptor.
///
///
/// It will use the raster corresponding to the default glyph format.
/// The value of the `num_grays` field in `abitmap` is ignored. If you
/// select the gray-level rasterizer, and you want less than 256 gray
/// levels, you have to use
/// _Outline_Render directly.
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineGetBitmap(this FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline, [NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* abitmap) + { + fixed (FTOutline* poutline = &outline) + { + int ret = FreeType.FTOutlineGetBitmapNative(library, (FTOutline*)poutline, abitmap); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Outline_Get_Bitmap
///
/// :
/// Render an outline within a bitmap. The outline's image is simply
/// OR-ed to the target bitmap.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// abitmap ::
/// A pointer to the target bitmap descriptor.
///
///
/// It will use the raster corresponding to the default glyph format.
/// The value of the `num_grays` field in `abitmap` is ignored. If you
/// select the gray-level rasterizer, and you want less than 256 gray
/// levels, you have to use
/// _Outline_Render directly.
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineGetBitmap(this FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap abitmap) + { + fixed (FTBitmap* pabitmap = &abitmap) + { + int ret = FreeType.FTOutlineGetBitmapNative(library, outline, (FTBitmap*)pabitmap); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Outline_Get_Bitmap
///
/// :
/// Render an outline within a bitmap. The outline's image is simply
/// OR-ed to the target bitmap.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// abitmap ::
/// A pointer to the target bitmap descriptor.
///
///
/// It will use the raster corresponding to the default glyph format.
/// The value of the `num_grays` field in `abitmap` is ignored. If you
/// select the gray-level rasterizer, and you want less than 256 gray
/// levels, you have to use
/// _Outline_Render directly.
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineGetBitmap(this FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline, [NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap abitmap) + { + fixed (FTOutline* poutline = &outline) + { + fixed (FTBitmap* pabitmap = &abitmap) + { + int ret = FreeType.FTOutlineGetBitmapNative(library, (FTOutline*)poutline, (FTBitmap*)pabitmap); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Outline_Render
///
/// :
/// Render an outline within a bitmap using the current scan-convert.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// params ::
/// A pointer to an
/// _Raster_Params structure used to describe the
/// rendering operation.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Render")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineRender(this FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "FT_Raster_Params*")] FTRasterParams* @params) + { + int ret = FreeType.FTOutlineRenderNative(library, outline, @params); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Outline_Render
///
/// :
/// Render an outline within a bitmap using the current scan-convert.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// params ::
/// A pointer to an
/// _Raster_Params structure used to describe the
/// rendering operation.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Render")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineRender(this FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "FT_Raster_Params*")] FTRasterParams* @params) + { + fixed (FTOutline* poutline = &outline) + { + int ret = FreeType.FTOutlineRenderNative(library, (FTOutline*)poutline, @params); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Outline_Render
///
/// :
/// Render an outline within a bitmap using the current scan-convert.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// params ::
/// A pointer to an
/// _Raster_Params structure used to describe the
/// rendering operation.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Render")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineRender(this FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "FT_Raster_Params*")] ref FTRasterParams @params) + { + fixed (FTRasterParams* pparams = &@params) + { + int ret = FreeType.FTOutlineRenderNative(library, outline, (FTRasterParams*)pparams); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Outline_Render
///
/// :
/// Render an outline within a bitmap using the current scan-convert.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// params ::
/// A pointer to an
/// _Raster_Params structure used to describe the
/// rendering operation.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Render")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OutlineRender(this FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "FT_Raster_Params*")] ref FTRasterParams @params) + { + fixed (FTOutline* poutline = &outline) + { + fixed (FTRasterParams* pparams = &@params) + { + int ret = FreeType.FTOutlineRenderNative(library, (FTOutline*)poutline, (FTRasterParams*)pparams); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Copy
///
/// :
/// Copy a bitmap into another one.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// A handle to the source bitmap.
///
/// :
/// target ::
/// A handle to the target bitmap.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapCopy(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target) + { + int ret = FreeType.FTBitmapCopyNative(library, source, target); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Copy
///
/// :
/// Copy a bitmap into another one.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// A handle to the source bitmap.
///
/// :
/// target ::
/// A handle to the target bitmap.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapCopy(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target) + { + fixed (FTBitmap* psource = &source) + { + int ret = FreeType.FTBitmapCopyNative(library, (FTBitmap*)psource, target); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Copy
///
/// :
/// Copy a bitmap into another one.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// A handle to the source bitmap.
///
/// :
/// target ::
/// A handle to the target bitmap.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapCopy(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FreeType.FTBitmapCopyNative(library, source, (FTBitmap*)ptarget); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Copy
///
/// :
/// Copy a bitmap into another one.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// A handle to the source bitmap.
///
/// :
/// target ::
/// A handle to the target bitmap.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapCopy(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target) + { + fixed (FTBitmap* psource = &source) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FreeType.FTBitmapCopyNative(library, (FTBitmap*)psource, (FTBitmap*)ptarget); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Embolden
///
/// :
/// Embolden a bitmap. The new bitmap will be about `xStrength` pixels
/// wider and `yStrength` pixels higher. The left and bottom borders are
/// kept unchanged.
///
/// :
/// library ::
/// A handle to a library object.
/// xStrength ::
/// How strong the glyph is emboldened horizontally. Expressed in 26.6
/// pixel format.
/// yStrength ::
/// How strong the glyph is emboldened vertically. Expressed in 26.6
/// pixel format.
///
/// :
/// bitmap ::
/// A handle to the target bitmap.
///
///
/// If you want to embolden the bitmap owned by a
/// _GlyphSlotRec, you
/// should call
/// _GlyphSlot_Own_Bitmap on the slot first.
/// Bitmaps in
/// _PIXEL_MODE_GRAY2 and
/// _PIXEL_MODE_GRAY
/// @
/// format are
/// converted to
/// _PIXEL_MODE_GRAY format (i.e., 8bpp).
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Embolden")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapEmbolden(this FTLibrary library, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* bitmap, [NativeName(NativeNameType.Param, "xStrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int xStrength, [NativeName(NativeNameType.Param, "yStrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int yStrength) + { + int ret = FreeType.FTBitmapEmboldenNative(library, bitmap, xStrength, yStrength); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Embolden
///
/// :
/// Embolden a bitmap. The new bitmap will be about `xStrength` pixels
/// wider and `yStrength` pixels higher. The left and bottom borders are
/// kept unchanged.
///
/// :
/// library ::
/// A handle to a library object.
/// xStrength ::
/// How strong the glyph is emboldened horizontally. Expressed in 26.6
/// pixel format.
/// yStrength ::
/// How strong the glyph is emboldened vertically. Expressed in 26.6
/// pixel format.
///
/// :
/// bitmap ::
/// A handle to the target bitmap.
///
///
/// If you want to embolden the bitmap owned by a
/// _GlyphSlotRec, you
/// should call
/// _GlyphSlot_Own_Bitmap on the slot first.
/// Bitmaps in
/// _PIXEL_MODE_GRAY2 and
/// _PIXEL_MODE_GRAY
/// @
/// format are
/// converted to
/// _PIXEL_MODE_GRAY format (i.e., 8bpp).
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Embolden")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapEmbolden(this FTLibrary library, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap bitmap, [NativeName(NativeNameType.Param, "xStrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int xStrength, [NativeName(NativeNameType.Param, "yStrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int yStrength) + { + fixed (FTBitmap* pbitmap = &bitmap) + { + int ret = FreeType.FTBitmapEmboldenNative(library, (FTBitmap*)pbitmap, xStrength, yStrength); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Convert
///
/// :
/// Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to
/// a bitmap object with depth 8bpp, making the number of used bytes per
/// line (a.k.a. the 'pitch') a multiple of `alignment`.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap.
/// alignment ::
/// The pitch of the bitmap is a multiple of this argument. Common
/// values are 1, 2, or 4.
///
/// :
/// target ::
/// The target bitmap.
///
///
/// Use
/// _Bitmap_Done to finally remove the bitmap object.
/// The `library` argument is taken to have access to FreeType's memory
/// handling functions.
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Convert")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapConvert(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "alignment")] [NativeName(NativeNameType.Type, "FT_Int")] int alignment) + { + int ret = FreeType.FTBitmapConvertNative(library, source, target, alignment); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Convert
///
/// :
/// Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to
/// a bitmap object with depth 8bpp, making the number of used bytes per
/// line (a.k.a. the 'pitch') a multiple of `alignment`.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap.
/// alignment ::
/// The pitch of the bitmap is a multiple of this argument. Common
/// values are 1, 2, or 4.
///
/// :
/// target ::
/// The target bitmap.
///
///
/// Use
/// _Bitmap_Done to finally remove the bitmap object.
/// The `library` argument is taken to have access to FreeType's memory
/// handling functions.
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Convert")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapConvert(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "alignment")] [NativeName(NativeNameType.Type, "FT_Int")] int alignment) + { + fixed (FTBitmap* psource = &source) + { + int ret = FreeType.FTBitmapConvertNative(library, (FTBitmap*)psource, target, alignment); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Convert
///
/// :
/// Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to
/// a bitmap object with depth 8bpp, making the number of used bytes per
/// line (a.k.a. the 'pitch') a multiple of `alignment`.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap.
/// alignment ::
/// The pitch of the bitmap is a multiple of this argument. Common
/// values are 1, 2, or 4.
///
/// :
/// target ::
/// The target bitmap.
///
///
/// Use
/// _Bitmap_Done to finally remove the bitmap object.
/// The `library` argument is taken to have access to FreeType's memory
/// handling functions.
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Convert")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapConvert(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "alignment")] [NativeName(NativeNameType.Type, "FT_Int")] int alignment) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FreeType.FTBitmapConvertNative(library, source, (FTBitmap*)ptarget, alignment); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Convert
///
/// :
/// Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to
/// a bitmap object with depth 8bpp, making the number of used bytes per
/// line (a.k.a. the 'pitch') a multiple of `alignment`.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap.
/// alignment ::
/// The pitch of the bitmap is a multiple of this argument. Common
/// values are 1, 2, or 4.
///
/// :
/// target ::
/// The target bitmap.
///
///
/// Use
/// _Bitmap_Done to finally remove the bitmap object.
/// The `library` argument is taken to have access to FreeType's memory
/// handling functions.
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Convert")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapConvert(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "alignment")] [NativeName(NativeNameType.Type, "FT_Int")] int alignment) + { + fixed (FTBitmap* psource = &source) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FreeType.FTBitmapConvertNative(library, (FTBitmap*)psource, (FTBitmap*)ptarget, alignment); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapBlend(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + int ret = FreeType.FTBitmapBlendNative(library, source, sourceOffset, target, atargetOffset, color); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapBlend(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* psource = &source) + { + int ret = FreeType.FTBitmapBlendNative(library, (FTBitmap*)psource, sourceOffset, target, atargetOffset, color); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapBlend(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FreeType.FTBitmapBlendNative(library, source, sourceOffset, (FTBitmap*)ptarget, atargetOffset, color); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapBlend(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* psource = &source) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FreeType.FTBitmapBlendNative(library, (FTBitmap*)psource, sourceOffset, (FTBitmap*)ptarget, atargetOffset, color); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapBlend(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTVector* patargetOffset = &atargetOffset) + { + int ret = FreeType.FTBitmapBlendNative(library, source, sourceOffset, target, (FTVector*)patargetOffset, color); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapBlend(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* psource = &source) + { + fixed (FTVector* patargetOffset = &atargetOffset) + { + int ret = FreeType.FTBitmapBlendNative(library, (FTBitmap*)psource, sourceOffset, target, (FTVector*)patargetOffset, color); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapBlend(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* ptarget = &target) + { + fixed (FTVector* patargetOffset = &atargetOffset) + { + int ret = FreeType.FTBitmapBlendNative(library, source, sourceOffset, (FTBitmap*)ptarget, (FTVector*)patargetOffset, color); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapBlend(this FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* psource = &source) + { + fixed (FTBitmap* ptarget = &target) + { + fixed (FTVector* patargetOffset = &atargetOffset) + { + int ret = FreeType.FTBitmapBlendNative(library, (FTBitmap*)psource, sourceOffset, (FTBitmap*)ptarget, (FTVector*)patargetOffset, color); + return ret; + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Done
///
/// :
/// Destroy a bitmap object initialized with
/// _Bitmap_Init.
///
/// :
/// library ::
/// A handle to a library object.
/// bitmap ::
/// The bitmap object to be freed.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Done")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapDone(this FTLibrary library, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* bitmap) + { + int ret = FreeType.FTBitmapDoneNative(library, bitmap); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Done
///
/// :
/// Destroy a bitmap object initialized with
/// _Bitmap_Init.
///
/// :
/// library ::
/// A handle to a library object.
/// bitmap ::
/// The bitmap object to be freed.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Done")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BitmapDone(this FTLibrary library, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap bitmap) + { + fixed (FTBitmap* pbitmap = &bitmap) + { + int ret = FreeType.FTBitmapDoneNative(library, (FTBitmap*)pbitmap); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_New
///
/// :
/// Create a new stroker object.
///
/// :
/// library ::
/// FreeType library handle.
///
/// :
/// astroker ::
/// A new stroker object handle. `NULL` in case of error.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_New")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int StrokerNew(this FTLibrary library, [NativeName(NativeNameType.Param, "astroker")] [NativeName(NativeNameType.Type, "FT_Stroker*")] FTStroker* astroker) + { + int ret = FreeType.FTStrokerNewNative(library, astroker); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_New
///
/// :
/// Create a new stroker object.
///
/// :
/// library ::
/// FreeType library handle.
///
/// :
/// astroker ::
/// A new stroker object handle. `NULL` in case of error.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_New")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int StrokerNew(this FTLibrary library, [NativeName(NativeNameType.Param, "astroker")] [NativeName(NativeNameType.Type, "FT_Stroker*")] ref FTStroker astroker) + { + fixed (FTStroker* pastroker = &astroker) + { + int ret = FreeType.FTStrokerNewNative(library, (FTStroker*)pastroker); + return ret; + } + } + /// /// ************************************************************************
///
/// FT_Attach_File
///
/// :
/// Call
/// _Attach_Stream to attach a file.
///
/// :
/// face ::
/// The target face object.
///
/// :
/// filepathname ::
/// The pathname.
///
///
[NativeName(NativeNameType.Func, "FT_Attach_File")] [return: NativeName(NativeNameType.Type, "FT_Error")] public static int AttachFile(this FTFace face, [NativeName(NativeNameType.Param, "filepathname")] [NativeName(NativeNameType.Type, "const char*")] byte* filepathname) @@ -746,345 +1136,533 @@ public static byte SetUnpatentedHinting(this FTFace face, [NativeName(NativeName return ret; } - /// /// ************************************************************************
///
/// FT_Render_Glyph
///
/// :
/// Convert a given glyph image to a bitmap. It does so by inspecting the
/// glyph image format, finding the relevant renderer, and invoking it.
///
/// :
/// slot ::
/// A handle to the glyph slot containing the image to convert.
///
/// :
/// render_mode ::
/// The render mode used to render the glyph image into a bitmap. See
///
/// _Render_Mode for a list of possible values.
/// If
/// _RENDER_MODE_NORMAL is used, a previous call of
/// _Load_Glyph
/// with flag
/// _LOAD_COLOR makes `FT_Render_Glyph` provide a default
/// blending of colored glyph layers associated with the current glyph
/// slot (provided the font contains such layers) instead of rendering
/// the glyph slot's outline. This is an experimental feature; see
///
/// _LOAD_COLOR for more information.
///
///
/// On high-DPI screens like on smartphones and tablets, the pixels are so
/// small that their chance of being completely covered and therefore
/// completely black are fairly good. On the low-DPI screens, however,
/// the situation is different. The pixels are too large for most of the
/// details of a glyph and shades of gray are the norm rather than the
/// exception.
/// This is relevant because all our screens have a second problem: they
/// are not linear. 1~+~1 is not~2. Twice the value does not result in
/// twice the brightness. When a pixel is only 50% covered, the coverage
/// map says 50% black, and this translates to a pixel value of 128 when
/// you use 8~bits per channel (0-255). However, this does not translate
/// to 50% brightness for that pixel on our sRGB and gamma~2.2 screens.
/// Due to their non-linearity, they dwell longer in the darks and only a
/// pixel value of about 186 results in 50% brightness -- 128 ends up too
/// dark on both bright and dark backgrounds. The net result is that dark
/// text looks burnt-out, pixely and blotchy on bright background, bright
/// text too frail on dark backgrounds, and colored text on colored
/// background (for example, red on green) seems to have dark halos or
/// 'dirt' around it. The situation is especially ugly for diagonal stems
/// like in 'w' glyph shapes where the quality of FreeType's anti-aliasing
/// depends on the correct display of grays. On high-DPI screens where
/// smaller, fully black pixels reign supreme, this doesn't matter, but on
/// our low-DPI screens with all the gray shades, it does. 0% and 100%
/// brightness are the same things in linear and non-linear space, just
/// all the shades in-between aren't.
/// The blending function for placing text over a background is
/// ```
/// dst = alpha * src + (1 - alpha) * dst ,
/// ```
/// which is known as the OVER operator.
/// To correctly composite an anti-aliased pixel of a glyph onto a
/// surface,
/// 1. take the foreground and background colors (e.g., in sRGB space)
/// and apply gamma to get them in a linear space,
/// 2. use OVER to blend the two linear colors using the glyph pixel
/// as the alpha value (remember, the glyph bitmap is an alpha coverage
/// bitmap), and
/// 3. apply inverse gamma to the blended pixel and write it back to
/// the image.
/// Internal testing at Adobe found that a target inverse gamma of~1.8 for
/// step~3 gives good results across a wide range of displays with an sRGB
/// gamma curve or a similar one.
/// This process can cost performance. There is an approximation that
/// does not need to know about the background color; see
/// https://bel.fi/alankila/lcd/ and
/// https://bel.fi/alankila/lcd/alpcor.html for details.
/// **ATTENTION**: Linear blending is even more important when dealing
/// with subpixel-rendered glyphs to prevent color-fringing! A
/// subpixel-rendered glyph must first be filtered with a filter that
/// gives equal weight to the three color primaries and does not exceed a
/// sum of 0x100, see section
/// _rendering. Then the only difference to
/// gray linear blending is that subpixel-rendered linear blending is done
/// 3~times per pixel: red foreground subpixel to red background subpixel
/// and so on for green and blue.
///
[NativeName(NativeNameType.Func, "FT_Render_Glyph")] + /// /// ************************************************************************
///
/// FT_Palette_Data_Get
///
/// :
/// Retrieve the face's color palette data.
///
/// :
/// face ::
/// The source face handle.
///
/// :
/// apalette ::
/// A pointer to an
/// _Palette_Data structure.
///
///
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Palette_Data_Get")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int RenderGlyph(this FTGlyphSlot slot, [NativeName(NativeNameType.Param, "render_mode")] [NativeName(NativeNameType.Type, "FT_Render_Mode")] FTRenderMode renderMode) + public static int PaletteDataGet(this FTFace face, [NativeName(NativeNameType.Param, "apalette")] [NativeName(NativeNameType.Type, "FT_Palette_Data*")] FTPaletteData* apalette) { - int ret = FreeType.FTRenderGlyphNative(slot, renderMode); + int ret = FreeType.FTPaletteDataGetNative(face, apalette); return ret; } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + /// /// ************************************************************************
///
/// FT_Palette_Data_Get
///
/// :
/// Retrieve the face's color palette data.
///
/// :
/// face ::
/// The source face handle.
///
/// :
/// apalette ::
/// A pointer to an
/// _Palette_Data structure.
///
///
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Palette_Data_Get")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + public static int PaletteDataGet(this FTFace face, [NativeName(NativeNameType.Param, "apalette")] [NativeName(NativeNameType.Type, "FT_Palette_Data*")] ref FTPaletteData apalette) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, parg1, parg2, pTransform); - return ret; - } + fixed (FTPaletteData* papalette = &apalette) + { + int ret = FreeType.FTPaletteDataGetNative(face, (FTPaletteData*)papalette); + return ret; + } + } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + /// /// ************************************************************************
///
/// FT_Palette_Select
///
/// :
/// This function has two purposes.
/// (1) It activates a palette for rendering color glyphs, and
/// (2) it retrieves all (unmodified) color entries of this palette. This
/// function returns a read-write array, which means that a calling
/// application can modify the palette entries on demand.
/// A corollary of (2) is that calling the function, then modifying some
/// values, then calling the function again with the same arguments resets
/// all color entries to the original 'CPAL' values; all user modifications
/// are lost.
///
/// :
/// face ::
/// The source face handle.
/// palette_index ::
/// The palette index.
///
/// :
/// apalette ::
/// An array of color entries for a palette with index `palette_index`,
/// having `num_palette_entries` elements (as found in the
/// `FT_Palette_Data` structure). If `apalette` is set to `NULL`, no
/// array gets returned (and no color entries can be modified).
/// In case the font doesn't support color palettes, `NULL` is returned.
///
///
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Palette_Select")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + public static int PaletteSelect(this FTFace face, [NativeName(NativeNameType.Param, "palette_index")] [NativeName(NativeNameType.Type, "FT_UShort")] ushort paletteIndex, [NativeName(NativeNameType.Param, "apalette")] [NativeName(NativeNameType.Type, "FT_Color**")] FTColor** apalette) { - fixed (int* ppIndex = &pIndex) + int ret = FreeType.FTPaletteSelectNative(face, paletteIndex, apalette); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Palette_Select
///
/// :
/// This function has two purposes.
/// (1) It activates a palette for rendering color glyphs, and
/// (2) it retrieves all (unmodified) color entries of this palette. This
/// function returns a read-write array, which means that a calling
/// application can modify the palette entries on demand.
/// A corollary of (2) is that calling the function, then modifying some
/// values, then calling the function again with the same arguments resets
/// all color entries to the original 'CPAL' values; all user modifications
/// are lost.
///
/// :
/// face ::
/// The source face handle.
/// palette_index ::
/// The palette index.
///
/// :
/// apalette ::
/// An array of color entries for a palette with index `palette_index`,
/// having `num_palette_entries` elements (as found in the
/// `FT_Palette_Data` structure). If `apalette` is set to `NULL`, no
/// array gets returned (and no color entries can be modified).
/// In case the font doesn't support color palettes, `NULL` is returned.
///
///
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Palette_Select")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int PaletteSelect(this FTFace face, [NativeName(NativeNameType.Param, "palette_index")] [NativeName(NativeNameType.Type, "FT_UShort")] ushort paletteIndex, [NativeName(NativeNameType.Param, "apalette")] [NativeName(NativeNameType.Type, "FT_Color**")] ref FTColor* apalette) + { + fixed (FTColor** papalette = &apalette) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, parg1, parg2, pTransform); + int ret = FreeType.FTPaletteSelectNative(face, paletteIndex, (FTColor**)papalette); return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + /// /// ************************************************************************
///
/// FT_Palette_Set_Foreground_Color
///
/// :
/// 'COLR' uses palette index 0xFFFF to indicate a 'text foreground
/// color'. This function sets this value.
///
/// :
/// face ::
/// The source face handle.
/// foreground_color ::
/// An `FT_Color` structure to define the text foreground color.
///
///
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Palette_Set_Foreground_Color")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + public static int PaletteSetForegroundColor(this FTFace face, [NativeName(NativeNameType.Param, "foreground_color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor foregroundColor) { - fixed (uint* ppFlags = &pFlags) + int ret = FreeType.FTPaletteSetForegroundColorNative(face, foregroundColor); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphLayer(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator) + { + byte ret = FreeType.FTGetColorGlyphLayerNative(face, baseGlyph, aglyphIndex, acolorIndex, iterator); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphLayer(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator) + { + fixed (uint* paglyphIndex = &aglyphIndex) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, parg1, parg2, pTransform); + byte ret = FreeType.FTGetColorGlyphLayerNative(face, baseGlyph, (uint*)paglyphIndex, acolorIndex, iterator); return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphLayer(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator) { - fixed (int* ppIndex = &pIndex) + fixed (uint* pacolorIndex = &acolorIndex) { - fixed (uint* ppFlags = &pFlags) + byte ret = FreeType.FTGetColorGlyphLayerNative(face, baseGlyph, aglyphIndex, (uint*)pacolorIndex, iterator); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphLayer(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator) + { + fixed (uint* paglyphIndex = &aglyphIndex) + { + fixed (uint* pacolorIndex = &acolorIndex) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, parg1, parg2, pTransform); + byte ret = FreeType.FTGetColorGlyphLayerNative(face, baseGlyph, (uint*)paglyphIndex, (uint*)pacolorIndex, iterator); return ret; } } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphLayer(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator) { - fixed (int* pparg1 = &parg1) + fixed (FTLayerIterator* piterator = &iterator) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, (int*)pparg1, parg2, pTransform); + byte ret = FreeType.FTGetColorGlyphLayerNative(face, baseGlyph, aglyphIndex, acolorIndex, (FTLayerIterator*)piterator); return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphLayer(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator) { - fixed (int* ppIndex = &pIndex) + fixed (uint* paglyphIndex = &aglyphIndex) { - fixed (int* pparg1 = &parg1) + fixed (FTLayerIterator* piterator = &iterator) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, (int*)pparg1, parg2, pTransform); + byte ret = FreeType.FTGetColorGlyphLayerNative(face, baseGlyph, (uint*)paglyphIndex, acolorIndex, (FTLayerIterator*)piterator); return ret; } } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphLayer(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator) { - fixed (uint* ppFlags = &pFlags) + fixed (uint* pacolorIndex = &acolorIndex) { - fixed (int* pparg1 = &parg1) + fixed (FTLayerIterator* piterator = &iterator) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, (int*)pparg1, parg2, pTransform); + byte ret = FreeType.FTGetColorGlyphLayerNative(face, baseGlyph, aglyphIndex, (uint*)pacolorIndex, (FTLayerIterator*)piterator); return ret; } } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphLayer(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator) { - fixed (int* ppIndex = &pIndex) + fixed (uint* paglyphIndex = &aglyphIndex) { - fixed (uint* ppFlags = &pFlags) + fixed (uint* pacolorIndex = &acolorIndex) { - fixed (int* pparg1 = &parg1) + fixed (FTLayerIterator* piterator = &iterator) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, (int*)pparg1, parg2, pTransform); + byte ret = FreeType.FTGetColorGlyphLayerNative(face, baseGlyph, (uint*)paglyphIndex, (uint*)pacolorIndex, (FTLayerIterator*)piterator); return ret; } } } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Paint
///
/// :
/// This is the starting point and interface to color gradient
/// information in a 'COLR' v1 table in OpenType fonts to recursively
/// retrieve the paint tables for the directed acyclic graph of a colored
/// glyph, given a glyph ID.
/// https://github.com/googlefonts/colr-gradients-spec
/// In a 'COLR' v1 font, each color glyph defines a directed acyclic
/// graph of nested paint tables, such as `PaintGlyph`, `PaintSolid`,
/// `PaintLinearGradient`, `PaintRadialGradient`, and so on. Using this
/// function and specifying a glyph ID, one retrieves the root paint
/// table for this glyph ID.
/// This function allows control whether an initial root transform is
/// returned to configure scaling, transform, and translation correctly
/// on the client's graphics context. The initial root transform is
/// computed and returned according to the values configured for
/// _Size
/// and
/// _Set_Transform on the
/// _Face object, see below for details
/// of the `root_transform` parameter. This has implications for a
/// client 'COLR' v1 implementation: When this function returns an
/// initially computed root transform, at the time of executing the
///
/// _PaintGlyph operation, the contours should be retrieved using
///
/// _Load_Glyph at unscaled, untransformed size. This is because the
/// root transform applied to the graphics context will take care of
/// correct scaling.
/// Alternatively, to allow hinting of contours, at the time of executing
///
/// _Load_Glyph, the current graphics context transformation matrix
/// can be decomposed into a scaling matrix and a remainder, and
///
/// _Load_Glyph can be used to retrieve the contours at scaled size.
/// Care must then be taken to blit or clip to the graphics context with
/// taking this remainder transformation into account.
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index for which to retrieve the root paint table.
/// root_transform ::
/// Specifies whether an initially computed root is returned by the
///
/// _PaintTransform operation to account for the activated size
/// (see
/// _Activate_Size) and the configured transform and translate
/// (see
/// _Set_Transform).
/// This root transform is returned before nodes of the glyph graph of
/// the font are returned. Subsequent
/// _COLR_Paint structures
/// contain unscaled and untransformed values. The inserted root
/// transform enables the client application to apply an initial
/// transform to its graphics context. When executing subsequent
/// FT_COLR_Paint operations, values from
/// _COLR_Paint operations
/// will ultimately be correctly scaled because of the root transform
/// applied to the graphics context. Use
///
/// _COLOR_INCLUDE_ROOT_TRANSFORM to include the root transform, use
///
/// _COLOR_NO_ROOT_TRANSFORM to not include it. The latter may be
/// useful when traversing the 'COLR' v1 glyph graph and reaching a
///
/// _PaintColrGlyph. When recursing into
/// _PaintColrGlyph and
/// painting that inline, no additional root transform is needed as it
/// has already been applied to the graphics context at the beginning
/// of drawing this glyph.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Paint")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphPaint(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "root_transform")] [NativeName(NativeNameType.Type, "FT_Color_Root_Transform")] FTColorRootTransform rootTransform, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] FTOpaquePaint* paint) { - fixed (int* pparg2 = &parg2) + byte ret = FreeType.FTGetColorGlyphPaintNative(face, baseGlyph, rootTransform, paint); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Paint
///
/// :
/// This is the starting point and interface to color gradient
/// information in a 'COLR' v1 table in OpenType fonts to recursively
/// retrieve the paint tables for the directed acyclic graph of a colored
/// glyph, given a glyph ID.
/// https://github.com/googlefonts/colr-gradients-spec
/// In a 'COLR' v1 font, each color glyph defines a directed acyclic
/// graph of nested paint tables, such as `PaintGlyph`, `PaintSolid`,
/// `PaintLinearGradient`, `PaintRadialGradient`, and so on. Using this
/// function and specifying a glyph ID, one retrieves the root paint
/// table for this glyph ID.
/// This function allows control whether an initial root transform is
/// returned to configure scaling, transform, and translation correctly
/// on the client's graphics context. The initial root transform is
/// computed and returned according to the values configured for
/// _Size
/// and
/// _Set_Transform on the
/// _Face object, see below for details
/// of the `root_transform` parameter. This has implications for a
/// client 'COLR' v1 implementation: When this function returns an
/// initially computed root transform, at the time of executing the
///
/// _PaintGlyph operation, the contours should be retrieved using
///
/// _Load_Glyph at unscaled, untransformed size. This is because the
/// root transform applied to the graphics context will take care of
/// correct scaling.
/// Alternatively, to allow hinting of contours, at the time of executing
///
/// _Load_Glyph, the current graphics context transformation matrix
/// can be decomposed into a scaling matrix and a remainder, and
///
/// _Load_Glyph can be used to retrieve the contours at scaled size.
/// Care must then be taken to blit or clip to the graphics context with
/// taking this remainder transformation into account.
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index for which to retrieve the root paint table.
/// root_transform ::
/// Specifies whether an initially computed root is returned by the
///
/// _PaintTransform operation to account for the activated size
/// (see
/// _Activate_Size) and the configured transform and translate
/// (see
/// _Set_Transform).
/// This root transform is returned before nodes of the glyph graph of
/// the font are returned. Subsequent
/// _COLR_Paint structures
/// contain unscaled and untransformed values. The inserted root
/// transform enables the client application to apply an initial
/// transform to its graphics context. When executing subsequent
/// FT_COLR_Paint operations, values from
/// _COLR_Paint operations
/// will ultimately be correctly scaled because of the root transform
/// applied to the graphics context. Use
///
/// _COLOR_INCLUDE_ROOT_TRANSFORM to include the root transform, use
///
/// _COLOR_NO_ROOT_TRANSFORM to not include it. The latter may be
/// useful when traversing the 'COLR' v1 glyph graph and reaching a
///
/// _PaintColrGlyph. When recursing into
/// _PaintColrGlyph and
/// painting that inline, no additional root transform is needed as it
/// has already been applied to the graphics context at the beginning
/// of drawing this glyph.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Paint")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphPaint(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "root_transform")] [NativeName(NativeNameType.Type, "FT_Color_Root_Transform")] FTColorRootTransform rootTransform, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] ref FTOpaquePaint paint) + { + fixed (FTOpaquePaint* ppaint = &paint) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, parg1, (int*)pparg2, pTransform); + byte ret = FreeType.FTGetColorGlyphPaintNative(face, baseGlyph, rootTransform, (FTOpaquePaint*)ppaint); return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_ClipBox
///
/// :
/// Search for a 'COLR' v1 clip box for the specified `base_glyph` and
/// fill the `clip_box` parameter with the 'COLR' v1 'ClipBox' information
/// if one is found.
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index for which to retrieve the clip box.
///
/// :
/// clip_box ::
/// The clip box for the requested `base_glyph` if one is found. The
/// clip box is computed taking scale and transformations configured on
/// the
/// _Face into account.
/// _ClipBox contains
/// _Vector values
/// in 26.6 format.
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_ClipBox")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphClipBox(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "clip_box")] [NativeName(NativeNameType.Type, "FT_ClipBox*")] FTClipBox* clipBox) { - fixed (int* ppIndex = &pIndex) + byte ret = FreeType.FTGetColorGlyphClipBoxNative(face, baseGlyph, clipBox); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_ClipBox
///
/// :
/// Search for a 'COLR' v1 clip box for the specified `base_glyph` and
/// fill the `clip_box` parameter with the 'COLR' v1 'ClipBox' information
/// if one is found.
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index for which to retrieve the clip box.
///
/// :
/// clip_box ::
/// The clip box for the requested `base_glyph` if one is found. The
/// clip box is computed taking scale and transformations configured on
/// the
/// _Face into account.
/// _ClipBox contains
/// _Vector values
/// in 26.6 format.
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_ClipBox")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorGlyphClipBox(this FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "clip_box")] [NativeName(NativeNameType.Type, "FT_ClipBox*")] ref FTClipBox clipBox) + { + fixed (FTClipBox* pclipBox = &clipBox) { - fixed (int* pparg2 = &parg2) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, parg1, (int*)pparg2, pTransform); - return ret; - } + byte ret = FreeType.FTGetColorGlyphClipBoxNative(face, baseGlyph, (FTClipBox*)pclipBox); + return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Paint_Layers
///
/// :
/// Access the layers of a `PaintColrLayers` table.
/// If the root paint of a color glyph, or a nested paint of a 'COLR'
/// glyph is a `PaintColrLayers` table, this function retrieves the
/// layers of the `PaintColrLayers` table.
/// The
/// _PaintColrLayers object contains an
/// _LayerIterator, which
/// is used here to iterate over the layers. Each layer is returned as
/// an
/// _OpaquePaint object, which then can be used with
/// _Get_Paint
/// to retrieve the actual paint object.
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The
/// _LayerIterator from an
/// _PaintColrLayers object, for which
/// the layers are to be retrieved. The internal state of the iterator
/// is incremented after one call to this function for retrieving one
/// layer.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint_Layers")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetPaintLayers(this FTFace face, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] FTOpaquePaint* paint) { - fixed (uint* ppFlags = &pFlags) + byte ret = FreeType.FTGetPaintLayersNative(face, iterator, paint); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Paint_Layers
///
/// :
/// Access the layers of a `PaintColrLayers` table.
/// If the root paint of a color glyph, or a nested paint of a 'COLR'
/// glyph is a `PaintColrLayers` table, this function retrieves the
/// layers of the `PaintColrLayers` table.
/// The
/// _PaintColrLayers object contains an
/// _LayerIterator, which
/// is used here to iterate over the layers. Each layer is returned as
/// an
/// _OpaquePaint object, which then can be used with
/// _Get_Paint
/// to retrieve the actual paint object.
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The
/// _LayerIterator from an
/// _PaintColrLayers object, for which
/// the layers are to be retrieved. The internal state of the iterator
/// is incremented after one call to this function for retrieving one
/// layer.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint_Layers")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetPaintLayers(this FTFace face, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] FTOpaquePaint* paint) + { + fixed (FTLayerIterator* piterator = &iterator) { - fixed (int* pparg2 = &parg2) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, parg1, (int*)pparg2, pTransform); - return ret; - } + byte ret = FreeType.FTGetPaintLayersNative(face, (FTLayerIterator*)piterator, paint); + return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Paint_Layers
///
/// :
/// Access the layers of a `PaintColrLayers` table.
/// If the root paint of a color glyph, or a nested paint of a 'COLR'
/// glyph is a `PaintColrLayers` table, this function retrieves the
/// layers of the `PaintColrLayers` table.
/// The
/// _PaintColrLayers object contains an
/// _LayerIterator, which
/// is used here to iterate over the layers. Each layer is returned as
/// an
/// _OpaquePaint object, which then can be used with
/// _Get_Paint
/// to retrieve the actual paint object.
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The
/// _LayerIterator from an
/// _PaintColrLayers object, for which
/// the layers are to be retrieved. The internal state of the iterator
/// is incremented after one call to this function for retrieving one
/// layer.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint_Layers")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetPaintLayers(this FTFace face, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] ref FTOpaquePaint paint) { - fixed (int* ppIndex = &pIndex) + fixed (FTOpaquePaint* ppaint = &paint) { - fixed (uint* ppFlags = &pFlags) - { - fixed (int* pparg2 = &parg2) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, parg1, (int*)pparg2, pTransform); - return ret; - } - } + byte ret = FreeType.FTGetPaintLayersNative(face, iterator, (FTOpaquePaint*)ppaint); + return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Paint_Layers
///
/// :
/// Access the layers of a `PaintColrLayers` table.
/// If the root paint of a color glyph, or a nested paint of a 'COLR'
/// glyph is a `PaintColrLayers` table, this function retrieves the
/// layers of the `PaintColrLayers` table.
/// The
/// _PaintColrLayers object contains an
/// _LayerIterator, which
/// is used here to iterate over the layers. Each layer is returned as
/// an
/// _OpaquePaint object, which then can be used with
/// _Get_Paint
/// to retrieve the actual paint object.
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The
/// _LayerIterator from an
/// _PaintColrLayers object, for which
/// the layers are to be retrieved. The internal state of the iterator
/// is incremented after one call to this function for retrieving one
/// layer.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint_Layers")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetPaintLayers(this FTFace face, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] ref FTOpaquePaint paint) { - fixed (int* pparg1 = &parg1) + fixed (FTLayerIterator* piterator = &iterator) { - fixed (int* pparg2 = &parg2) + fixed (FTOpaquePaint* ppaint = &paint) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, (int*)pparg1, (int*)pparg2, pTransform); + byte ret = FreeType.FTGetPaintLayersNative(face, (FTLayerIterator*)piterator, (FTOpaquePaint*)ppaint); return ret; } } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Colorline_Stops
///
/// :
/// This is an interface to color gradient information in a 'COLR' v1
/// table in OpenType fonts to iteratively retrieve the gradient and
/// solid fill information for colored glyph layers for a specified glyph
/// ID.
/// https://github.com/googlefonts/colr-gradients-spec
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The retrieved
/// _ColorStopIterator, configured on an
/// _ColorLine,
/// which in turn got retrieved via paint information in
///
/// _PaintLinearGradient or
/// _PaintRadialGradient.
///
/// :
/// color_stop ::
/// Color index and alpha value for the retrieved color stop.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Colorline_Stops")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorlineStops(this FTFace face, [NativeName(NativeNameType.Param, "color_stop")] [NativeName(NativeNameType.Type, "FT_ColorStop*")] FTColorStop* colorStop, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_ColorStopIterator*")] FTColorStopIterator* iterator) { - fixed (int* ppIndex = &pIndex) + byte ret = FreeType.FTGetColorlineStopsNative(face, colorStop, iterator); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Colorline_Stops
///
/// :
/// This is an interface to color gradient information in a 'COLR' v1
/// table in OpenType fonts to iteratively retrieve the gradient and
/// solid fill information for colored glyph layers for a specified glyph
/// ID.
/// https://github.com/googlefonts/colr-gradients-spec
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The retrieved
/// _ColorStopIterator, configured on an
/// _ColorLine,
/// which in turn got retrieved via paint information in
///
/// _PaintLinearGradient or
/// _PaintRadialGradient.
///
/// :
/// color_stop ::
/// Color index and alpha value for the retrieved color stop.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Colorline_Stops")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorlineStops(this FTFace face, [NativeName(NativeNameType.Param, "color_stop")] [NativeName(NativeNameType.Type, "FT_ColorStop*")] ref FTColorStop colorStop, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_ColorStopIterator*")] FTColorStopIterator* iterator) + { + fixed (FTColorStop* pcolorStop = &colorStop) { - fixed (int* pparg1 = &parg1) - { - fixed (int* pparg2 = &parg2) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, (int*)pparg1, (int*)pparg2, pTransform); - return ret; - } - } + byte ret = FreeType.FTGetColorlineStopsNative(face, (FTColorStop*)pcolorStop, iterator); + return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Colorline_Stops
///
/// :
/// This is an interface to color gradient information in a 'COLR' v1
/// table in OpenType fonts to iteratively retrieve the gradient and
/// solid fill information for colored glyph layers for a specified glyph
/// ID.
/// https://github.com/googlefonts/colr-gradients-spec
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The retrieved
/// _ColorStopIterator, configured on an
/// _ColorLine,
/// which in turn got retrieved via paint information in
///
/// _PaintLinearGradient or
/// _PaintRadialGradient.
///
/// :
/// color_stop ::
/// Color index and alpha value for the retrieved color stop.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Colorline_Stops")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorlineStops(this FTFace face, [NativeName(NativeNameType.Param, "color_stop")] [NativeName(NativeNameType.Type, "FT_ColorStop*")] FTColorStop* colorStop, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_ColorStopIterator*")] ref FTColorStopIterator iterator) { - fixed (uint* ppFlags = &pFlags) + fixed (FTColorStopIterator* piterator = &iterator) { - fixed (int* pparg1 = &parg1) - { - fixed (int* pparg2 = &parg2) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, (int*)pparg1, (int*)pparg2, pTransform); - return ret; - } - } + byte ret = FreeType.FTGetColorlineStopsNative(face, colorStop, (FTColorStopIterator*)piterator); + return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] - [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + /// /// ************************************************************************
///
/// FT_Get_Colorline_Stops
///
/// :
/// This is an interface to color gradient information in a 'COLR' v1
/// table in OpenType fonts to iteratively retrieve the gradient and
/// solid fill information for colored glyph layers for a specified glyph
/// ID.
/// https://github.com/googlefonts/colr-gradients-spec
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The retrieved
/// _ColorStopIterator, configured on an
/// _ColorLine,
/// which in turn got retrieved via paint information in
///
/// _PaintLinearGradient or
/// _PaintRadialGradient.
///
/// :
/// color_stop ::
/// Color index and alpha value for the retrieved color stop.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Colorline_Stops")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetColorlineStops(this FTFace face, [NativeName(NativeNameType.Param, "color_stop")] [NativeName(NativeNameType.Type, "FT_ColorStop*")] ref FTColorStop colorStop, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_ColorStopIterator*")] ref FTColorStopIterator iterator) { - fixed (int* ppIndex = &pIndex) + fixed (FTColorStop* pcolorStop = &colorStop) { - fixed (uint* ppFlags = &pFlags) + fixed (FTColorStopIterator* piterator = &iterator) { - fixed (int* pparg1 = &parg1) - { - fixed (int* pparg2 = &parg2) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, (int*)pparg1, (int*)pparg2, pTransform); - return ret; - } - } + byte ret = FreeType.FTGetColorlineStopsNative(face, (FTColorStop*)pcolorStop, (FTColorStopIterator*)piterator); + return ret; } } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + /// /// ************************************************************************
///
/// FT_Get_Paint
///
/// :
/// Access the details of a paint using an
/// _OpaquePaint opaque paint
/// object, which internally stores the offset to the respective `Paint`
/// object in the 'COLR' table.
///
/// :
/// face ::
/// A handle to the parent face object.
/// opaque_paint ::
/// The opaque paint object for which the underlying
/// _COLR_Paint
/// data is to be retrieved.
///
/// :
/// paint ::
/// The specific
/// _COLR_Paint object containing information coming
/// from one of the font's `Paint*` tables.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetPaint(this FTFace face, [NativeName(NativeNameType.Param, "opaque_paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint")] FTOpaquePaint opaquePaint, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_COLR_Paint*")] FTCOLRPaint* paint) + { + byte ret = FreeType.FTGetPaintNative(face, opaquePaint, paint); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Paint
///
/// :
/// Access the details of a paint using an
/// _OpaquePaint opaque paint
/// object, which internally stores the offset to the respective `Paint`
/// object in the 'COLR' table.
///
/// :
/// face ::
/// A handle to the parent face object.
/// opaque_paint ::
/// The opaque paint object for which the underlying
/// _COLR_Paint
/// data is to be retrieved.
///
/// :
/// paint ::
/// The specific
/// _COLR_Paint object containing information coming
/// from one of the font's `Paint*` tables.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte GetPaint(this FTFace face, [NativeName(NativeNameType.Param, "opaque_paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint")] FTOpaquePaint opaquePaint, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_COLR_Paint*")] ref FTCOLRPaint paint) + { + fixed (FTCOLRPaint* ppaint = &paint) + { + byte ret = FreeType.FTGetPaintNative(face, opaquePaint, (FTCOLRPaint*)ppaint); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_Sfnt_Table
///
/// :
/// Return a pointer to a given SFNT table stored within a face.
///
/// :
/// face ::
/// A handle to the source.
/// tag ::
/// The index of the SFNT table.
///
/// Use a typecast according to `tag` to access the structure elements.
///
/// This function is only useful to access SFNT tables that are loaded by
/// the sfnt, truetype, and opentype drivers. See
/// _Sfnt_Tag for a
/// list.
///
/// Here is an example demonstrating access to the 'vhea' table.
/// ```
/// TT_VertHeader* vert_header;
/// vert_header =
/// (TT_VertHeader*)FT_Get_Sfnt_Table( face, FT_SFNT_VHEA );
/// ```
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_Table")] + [return: NativeName(NativeNameType.Type, "void*")] + public static void* GetSfntTable(this FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_Sfnt_Tag")] FTSfntTag tag) + { + void* ret = FreeType.FTGetSfntTableNative(face, tag); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Load_Sfnt_Table
///
/// :
/// Load any SFNT font table into client memory.
///
/// :
/// face ::
/// A handle to the source face.
/// tag ::
/// The four-byte tag of the table to load. Use value~0 if you want to
/// access the whole font file. Otherwise, you can use one of the
/// definitions found in the
/// _TRUETYPE_TAGS_H file, or forge a new
/// one with
/// _MAKE_TAG.
/// offset ::
/// The starting offset in the table (or file if tag~==~0).
///
/// :
/// buffer ::
/// The target buffer address. The client must ensure that the memory
/// array is big enough to hold the data.
///
/// :
/// length ::
/// If the `length` parameter is `NULL`, try to load the whole table.
/// Return an error code if it fails.
/// Else, if `*length` is~0, exit immediately while returning the
/// table's (or file) full size in it.
/// Else the number of bytes to read from the table or file, from the
/// starting offset.
///
///
/// ```
/// FT_ULong length = 0;
/// error = FT_Load_Sfnt_Table( face, tag, 0, NULL,
/// &length
/// );
/// if ( error ) { ... table does not exist ... }
/// buffer = malloc( length );
/// if ( buffer == NULL ) { ... not enough memory ... }
/// error = FT_Load_Sfnt_Table( face, tag, 0, buffer,
/// &length
/// );
/// if ( error ) { ... could not load table ... }
/// ```
/// Note that structures like
/// _Header or
/// _OS2 can't be used with
/// this function; they are limited to
/// _Get_Sfnt_Table. Reason is that
/// those structures depend on the processor architecture, with varying
/// size (e.g. 32bit vs. 64bit) or order (big endian vs. little endian).
///
///
[NativeName(NativeNameType.Func, "FT_Load_Sfnt_Table")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int LoadSfntTable(this FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong")] uint tag, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "FT_Long")] int offset, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "FT_Byte*")] byte* buffer, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* length) { - fixed (FTMatrix* ppTransform = &pTransform) + int ret = FreeType.FTLoadSfntTableNative(face, tag, offset, buffer, length); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Load_Sfnt_Table
///
/// :
/// Load any SFNT font table into client memory.
///
/// :
/// face ::
/// A handle to the source face.
/// tag ::
/// The four-byte tag of the table to load. Use value~0 if you want to
/// access the whole font file. Otherwise, you can use one of the
/// definitions found in the
/// _TRUETYPE_TAGS_H file, or forge a new
/// one with
/// _MAKE_TAG.
/// offset ::
/// The starting offset in the table (or file if tag~==~0).
///
/// :
/// buffer ::
/// The target buffer address. The client must ensure that the memory
/// array is big enough to hold the data.
///
/// :
/// length ::
/// If the `length` parameter is `NULL`, try to load the whole table.
/// Return an error code if it fails.
/// Else, if `*length` is~0, exit immediately while returning the
/// table's (or file) full size in it.
/// Else the number of bytes to read from the table or file, from the
/// starting offset.
///
///
/// ```
/// FT_ULong length = 0;
/// error = FT_Load_Sfnt_Table( face, tag, 0, NULL,
/// &length
/// );
/// if ( error ) { ... table does not exist ... }
/// buffer = malloc( length );
/// if ( buffer == NULL ) { ... not enough memory ... }
/// error = FT_Load_Sfnt_Table( face, tag, 0, buffer,
/// &length
/// );
/// if ( error ) { ... could not load table ... }
/// ```
/// Note that structures like
/// _Header or
/// _OS2 can't be used with
/// this function; they are limited to
/// _Get_Sfnt_Table. Reason is that
/// those structures depend on the processor architecture, with varying
/// size (e.g. 32bit vs. 64bit) or order (big endian vs. little endian).
///
///
[NativeName(NativeNameType.Func, "FT_Load_Sfnt_Table")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int LoadSfntTable(this FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong")] uint tag, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "FT_Long")] int offset, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "FT_Byte*")] ref byte buffer, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* length) + { + fixed (byte* pbuffer = &buffer) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, parg1, parg2, (FTMatrix*)ppTransform); + int ret = FreeType.FTLoadSfntTableNative(face, tag, offset, (byte*)pbuffer, length); return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + /// /// ************************************************************************
///
/// FT_Load_Sfnt_Table
///
/// :
/// Load any SFNT font table into client memory.
///
/// :
/// face ::
/// A handle to the source face.
/// tag ::
/// The four-byte tag of the table to load. Use value~0 if you want to
/// access the whole font file. Otherwise, you can use one of the
/// definitions found in the
/// _TRUETYPE_TAGS_H file, or forge a new
/// one with
/// _MAKE_TAG.
/// offset ::
/// The starting offset in the table (or file if tag~==~0).
///
/// :
/// buffer ::
/// The target buffer address. The client must ensure that the memory
/// array is big enough to hold the data.
///
/// :
/// length ::
/// If the `length` parameter is `NULL`, try to load the whole table.
/// Return an error code if it fails.
/// Else, if `*length` is~0, exit immediately while returning the
/// table's (or file) full size in it.
/// Else the number of bytes to read from the table or file, from the
/// starting offset.
///
///
/// ```
/// FT_ULong length = 0;
/// error = FT_Load_Sfnt_Table( face, tag, 0, NULL,
/// &length
/// );
/// if ( error ) { ... table does not exist ... }
/// buffer = malloc( length );
/// if ( buffer == NULL ) { ... not enough memory ... }
/// error = FT_Load_Sfnt_Table( face, tag, 0, buffer,
/// &length
/// );
/// if ( error ) { ... could not load table ... }
/// ```
/// Note that structures like
/// _Header or
/// _OS2 can't be used with
/// this function; they are limited to
/// _Get_Sfnt_Table. Reason is that
/// those structures depend on the processor architecture, with varying
/// size (e.g. 32bit vs. 64bit) or order (big endian vs. little endian).
///
///
[NativeName(NativeNameType.Func, "FT_Load_Sfnt_Table")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int LoadSfntTable(this FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong")] uint tag, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "FT_Long")] int offset, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "FT_Byte*")] byte* buffer, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint length) { - fixed (int* ppIndex = &pIndex) + fixed (uint* plength = &length) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, parg1, parg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTLoadSfntTableNative(face, tag, offset, buffer, (uint*)plength); + return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + /// /// ************************************************************************
///
/// FT_Load_Sfnt_Table
///
/// :
/// Load any SFNT font table into client memory.
///
/// :
/// face ::
/// A handle to the source face.
/// tag ::
/// The four-byte tag of the table to load. Use value~0 if you want to
/// access the whole font file. Otherwise, you can use one of the
/// definitions found in the
/// _TRUETYPE_TAGS_H file, or forge a new
/// one with
/// _MAKE_TAG.
/// offset ::
/// The starting offset in the table (or file if tag~==~0).
///
/// :
/// buffer ::
/// The target buffer address. The client must ensure that the memory
/// array is big enough to hold the data.
///
/// :
/// length ::
/// If the `length` parameter is `NULL`, try to load the whole table.
/// Return an error code if it fails.
/// Else, if `*length` is~0, exit immediately while returning the
/// table's (or file) full size in it.
/// Else the number of bytes to read from the table or file, from the
/// starting offset.
///
///
/// ```
/// FT_ULong length = 0;
/// error = FT_Load_Sfnt_Table( face, tag, 0, NULL,
/// &length
/// );
/// if ( error ) { ... table does not exist ... }
/// buffer = malloc( length );
/// if ( buffer == NULL ) { ... not enough memory ... }
/// error = FT_Load_Sfnt_Table( face, tag, 0, buffer,
/// &length
/// );
/// if ( error ) { ... could not load table ... }
/// ```
/// Note that structures like
/// _Header or
/// _OS2 can't be used with
/// this function; they are limited to
/// _Get_Sfnt_Table. Reason is that
/// those structures depend on the processor architecture, with varying
/// size (e.g. 32bit vs. 64bit) or order (big endian vs. little endian).
///
///
[NativeName(NativeNameType.Func, "FT_Load_Sfnt_Table")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int LoadSfntTable(this FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong")] uint tag, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "FT_Long")] int offset, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "FT_Byte*")] ref byte buffer, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint length) { - fixed (uint* ppFlags = &pFlags) + fixed (byte* pbuffer = &buffer) { - fixed (FTMatrix* ppTransform = &pTransform) + fixed (uint* plength = &length) { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, parg1, parg2, (FTMatrix*)ppTransform); + int ret = FreeType.FTLoadSfntTableNative(face, tag, offset, (byte*)pbuffer, (uint*)plength); return ret; } } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + /// /// ************************************************************************
///
/// FT_Sfnt_Table_Info
///
/// :
/// Return information on an SFNT table.
///
/// :
/// face ::
/// A handle to the source face.
/// table_index ::
/// The index of an SFNT table. The function returns
/// FT_Err_Table_Missing for an invalid value.
///
/// :
/// tag ::
/// The name tag of the SFNT table. If the value is `NULL`,
/// `table_index` is ignored, and `length` returns the number of SFNT
/// tables in the font.
///
/// :
/// length ::
/// The length of the SFNT table (or the number of SFNT tables,
/// depending on `tag`).
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Sfnt_Table_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int SfntTableInfo(this FTFace face, [NativeName(NativeNameType.Param, "table_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint tableIndex, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* tag, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* length) { - fixed (int* ppIndex = &pIndex) + int ret = FreeType.FTSfntTableInfoNative(face, tableIndex, tag, length); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Sfnt_Table_Info
///
/// :
/// Return information on an SFNT table.
///
/// :
/// face ::
/// A handle to the source face.
/// table_index ::
/// The index of an SFNT table. The function returns
/// FT_Err_Table_Missing for an invalid value.
///
/// :
/// tag ::
/// The name tag of the SFNT table. If the value is `NULL`,
/// `table_index` is ignored, and `length` returns the number of SFNT
/// tables in the font.
///
/// :
/// length ::
/// The length of the SFNT table (or the number of SFNT tables,
/// depending on `tag`).
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Sfnt_Table_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int SfntTableInfo(this FTFace face, [NativeName(NativeNameType.Param, "table_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint tableIndex, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint tag, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* length) + { + fixed (uint* ptag = &tag) { - fixed (uint* ppFlags = &pFlags) - { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, parg1, parg2, (FTMatrix*)ppTransform); - return ret; - } - } + int ret = FreeType.FTSfntTableInfoNative(face, tableIndex, (uint*)ptag, length); + return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + /// /// ************************************************************************
///
/// FT_Sfnt_Table_Info
///
/// :
/// Return information on an SFNT table.
///
/// :
/// face ::
/// A handle to the source face.
/// table_index ::
/// The index of an SFNT table. The function returns
/// FT_Err_Table_Missing for an invalid value.
///
/// :
/// tag ::
/// The name tag of the SFNT table. If the value is `NULL`,
/// `table_index` is ignored, and `length` returns the number of SFNT
/// tables in the font.
///
/// :
/// length ::
/// The length of the SFNT table (or the number of SFNT tables,
/// depending on `tag`).
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Sfnt_Table_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int SfntTableInfo(this FTFace face, [NativeName(NativeNameType.Param, "table_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint tableIndex, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* tag, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint length) { - fixed (int* pparg1 = &parg1) + fixed (uint* plength = &length) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, (int*)pparg1, parg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTSfntTableInfoNative(face, tableIndex, tag, (uint*)plength); + return ret; } } - /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + /// /// ************************************************************************
///
/// FT_Sfnt_Table_Info
///
/// :
/// Return information on an SFNT table.
///
/// :
/// face ::
/// A handle to the source face.
/// table_index ::
/// The index of an SFNT table. The function returns
/// FT_Err_Table_Missing for an invalid value.
///
/// :
/// tag ::
/// The name tag of the SFNT table. If the value is `NULL`,
/// `table_index` is ignored, and `length` returns the number of SFNT
/// tables in the font.
///
/// :
/// length ::
/// The length of the SFNT table (or the number of SFNT tables,
/// depending on `tag`).
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Sfnt_Table_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int SfntTableInfo(this FTFace face, [NativeName(NativeNameType.Param, "table_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint tableIndex, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint tag, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint length) { - fixed (int* ppIndex = &pIndex) + fixed (uint* ptag = &tag) { - fixed (int* pparg1 = &parg1) + fixed (uint* plength = &length) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, (int*)pparg1, parg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTSfntTableInfoNative(face, tableIndex, (uint*)ptag, (uint*)plength); + return ret; } } } + /// /// ************************************************************************
///
/// FT_Get_Sfnt_Name_Count
///
/// :
/// Retrieve the number of name strings in the SFNT 'name' table.
///
/// :
/// face ::
/// A handle to the source face.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_Name_Count")] + [return: NativeName(NativeNameType.Type, "FT_UInt")] + public static uint GetSfntNameCount(this FTFace face) + { + uint ret = FreeType.FTGetSfntNameCountNative(face); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Sfnt_Name
///
/// :
/// Retrieve a string of the SFNT 'name' table for a given index.
///
/// :
/// face ::
/// A handle to the source face.
/// idx ::
/// The index of the 'name' string.
///
/// :
/// aname ::
/// The indexed
/// _SfntName structure.
///
///
/// Use
/// _Get_Sfnt_Name_Count to get the total number of available
/// 'name' table entries, then do a loop until you get the right platform,
/// encoding, and name ID.
/// 'name' table format~1 entries can use language tags also, see
///
/// _Get_Sfnt_LangTag.
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_Name")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSfntName(this FTFace face, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "FT_UInt")] uint idx, [NativeName(NativeNameType.Param, "aname")] [NativeName(NativeNameType.Type, "FT_SfntName*")] FTSfntName* aname) + { + int ret = FreeType.FTGetSfntNameNative(face, idx, aname); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Sfnt_Name
///
/// :
/// Retrieve a string of the SFNT 'name' table for a given index.
///
/// :
/// face ::
/// A handle to the source face.
/// idx ::
/// The index of the 'name' string.
///
/// :
/// aname ::
/// The indexed
/// _SfntName structure.
///
///
/// Use
/// _Get_Sfnt_Name_Count to get the total number of available
/// 'name' table entries, then do a loop until you get the right platform,
/// encoding, and name ID.
/// 'name' table format~1 entries can use language tags also, see
///
/// _Get_Sfnt_LangTag.
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_Name")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSfntName(this FTFace face, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "FT_UInt")] uint idx, [NativeName(NativeNameType.Param, "aname")] [NativeName(NativeNameType.Type, "FT_SfntName*")] ref FTSfntName aname) + { + fixed (FTSfntName* paname = &aname) + { + int ret = FreeType.FTGetSfntNameNative(face, idx, (FTSfntName*)paname); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_Sfnt_LangTag
///
/// :
/// Retrieve the language tag associated with a language ID of an SFNT
/// 'name' table entry.
///
/// :
/// face ::
/// A handle to the source face.
/// langID ::
/// The language ID, as returned by
/// _Get_Sfnt_Name. This is always a
/// value larger than 0x8000.
///
/// :
/// alangTag ::
/// The language tag associated with the 'name' table entry's language
/// ID.
///
///
/// Only 'name' table format~1 supports language tags. For format~0
/// tables, this function always returns FT_Err_Invalid_Table. For
/// invalid format~1 language ID values, FT_Err_Invalid_Argument is
/// returned.
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_LangTag")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSfntLangTag(this FTFace face, [NativeName(NativeNameType.Param, "langID")] [NativeName(NativeNameType.Type, "FT_UInt")] uint langID, [NativeName(NativeNameType.Param, "alangTag")] [NativeName(NativeNameType.Type, "FT_SfntLangTag*")] FTSfntLangTag* alangTag) + { + int ret = FreeType.FTGetSfntLangTagNative(face, langID, alangTag); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Sfnt_LangTag
///
/// :
/// Retrieve the language tag associated with a language ID of an SFNT
/// 'name' table entry.
///
/// :
/// face ::
/// A handle to the source face.
/// langID ::
/// The language ID, as returned by
/// _Get_Sfnt_Name. This is always a
/// value larger than 0x8000.
///
/// :
/// alangTag ::
/// The language tag associated with the 'name' table entry's language
/// ID.
///
///
/// Only 'name' table format~1 supports language tags. For format~0
/// tables, this function always returns FT_Err_Invalid_Table. For
/// invalid format~1 language ID values, FT_Err_Invalid_Argument is
/// returned.
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_LangTag")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSfntLangTag(this FTFace face, [NativeName(NativeNameType.Param, "langID")] [NativeName(NativeNameType.Type, "FT_UInt")] uint langID, [NativeName(NativeNameType.Param, "alangTag")] [NativeName(NativeNameType.Type, "FT_SfntLangTag*")] ref FTSfntLangTag alangTag) + { + fixed (FTSfntLangTag* palangTag = &alangTag) + { + int ret = FreeType.FTGetSfntLangTagNative(face, langID, (FTSfntLangTag*)palangTag); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Render_Glyph
///
/// :
/// Convert a given glyph image to a bitmap. It does so by inspecting the
/// glyph image format, finding the relevant renderer, and invoking it.
///
/// :
/// slot ::
/// A handle to the glyph slot containing the image to convert.
///
/// :
/// render_mode ::
/// The render mode used to render the glyph image into a bitmap. See
///
/// _Render_Mode for a list of possible values.
/// If
/// _RENDER_MODE_NORMAL is used, a previous call of
/// _Load_Glyph
/// with flag
/// _LOAD_COLOR makes `FT_Render_Glyph` provide a default
/// blending of colored glyph layers associated with the current glyph
/// slot (provided the font contains such layers) instead of rendering
/// the glyph slot's outline. This is an experimental feature; see
///
/// _LOAD_COLOR for more information.
///
///
/// On high-DPI screens like on smartphones and tablets, the pixels are so
/// small that their chance of being completely covered and therefore
/// completely black are fairly good. On the low-DPI screens, however,
/// the situation is different. The pixels are too large for most of the
/// details of a glyph and shades of gray are the norm rather than the
/// exception.
/// This is relevant because all our screens have a second problem: they
/// are not linear. 1~+~1 is not~2. Twice the value does not result in
/// twice the brightness. When a pixel is only 50% covered, the coverage
/// map says 50% black, and this translates to a pixel value of 128 when
/// you use 8~bits per channel (0-255). However, this does not translate
/// to 50% brightness for that pixel on our sRGB and gamma~2.2 screens.
/// Due to their non-linearity, they dwell longer in the darks and only a
/// pixel value of about 186 results in 50% brightness -- 128 ends up too
/// dark on both bright and dark backgrounds. The net result is that dark
/// text looks burnt-out, pixely and blotchy on bright background, bright
/// text too frail on dark backgrounds, and colored text on colored
/// background (for example, red on green) seems to have dark halos or
/// 'dirt' around it. The situation is especially ugly for diagonal stems
/// like in 'w' glyph shapes where the quality of FreeType's anti-aliasing
/// depends on the correct display of grays. On high-DPI screens where
/// smaller, fully black pixels reign supreme, this doesn't matter, but on
/// our low-DPI screens with all the gray shades, it does. 0% and 100%
/// brightness are the same things in linear and non-linear space, just
/// all the shades in-between aren't.
/// The blending function for placing text over a background is
/// ```
/// dst = alpha * src + (1 - alpha) * dst ,
/// ```
/// which is known as the OVER operator.
/// To correctly composite an anti-aliased pixel of a glyph onto a
/// surface,
/// 1. take the foreground and background colors (e.g., in sRGB space)
/// and apply gamma to get them in a linear space,
/// 2. use OVER to blend the two linear colors using the glyph pixel
/// as the alpha value (remember, the glyph bitmap is an alpha coverage
/// bitmap), and
/// 3. apply inverse gamma to the blended pixel and write it back to
/// the image.
/// Internal testing at Adobe found that a target inverse gamma of~1.8 for
/// step~3 gives good results across a wide range of displays with an sRGB
/// gamma curve or a similar one.
/// This process can cost performance. There is an approximation that
/// does not need to know about the background color; see
/// https://bel.fi/alankila/lcd/ and
/// https://bel.fi/alankila/lcd/alpcor.html for details.
/// **ATTENTION**: Linear blending is even more important when dealing
/// with subpixel-rendered glyphs to prevent color-fringing! A
/// subpixel-rendered glyph must first be filtered with a filter that
/// gives equal weight to the three color primaries and does not exceed a
/// sum of 0x100, see section
/// _rendering. Then the only difference to
/// gray linear blending is that subpixel-rendered linear blending is done
/// 3~times per pixel: red foreground subpixel to red background subpixel
/// and so on for green and blue.
///
[NativeName(NativeNameType.Func, "FT_Render_Glyph")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int RenderGlyph(this FTGlyphSlot slot, [NativeName(NativeNameType.Param, "render_mode")] [NativeName(NativeNameType.Type, "FT_Render_Mode")] FTRenderMode renderMode) + { + int ret = FreeType.FTRenderGlyphNative(slot, renderMode); + return ret; + } + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, parg1, parg2, pTransform); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + { + fixed (int* ppIndex = &pIndex) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, parg1, parg2, pTransform); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + { + fixed (uint* ppFlags = &pFlags) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, parg1, parg2, pTransform); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + { + fixed (int* ppIndex = &pIndex) + { + fixed (uint* ppFlags = &pFlags) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, parg1, parg2, pTransform); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + { + fixed (int* pparg1 = &parg1) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, (int*)pparg1, parg2, pTransform); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) + { + fixed (int* ppIndex = &pIndex) + { + fixed (int* pparg1 = &parg1) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, (int*)pparg1, parg2, pTransform); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) { fixed (uint* ppFlags = &pFlags) { fixed (int* pparg1 = &parg1) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, (int*)pparg1, parg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, (int*)pparg1, parg2, pTransform); + return ret; } } } /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) { fixed (int* ppIndex = &pIndex) { @@ -1092,11 +1670,8 @@ public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeName { fixed (int* pparg1 = &parg1) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, (int*)pparg1, parg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, (int*)pparg1, parg2, pTransform); + return ret; } } } @@ -1104,55 +1679,46 @@ public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeName /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) { fixed (int* pparg2 = &parg2) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, parg1, (int*)pparg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, parg1, (int*)pparg2, pTransform); + return ret; } } /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) { fixed (int* ppIndex = &pIndex) { fixed (int* pparg2 = &parg2) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, parg1, (int*)pparg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, parg1, (int*)pparg2, pTransform); + return ret; } } } /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) { fixed (uint* ppFlags = &pFlags) { fixed (int* pparg2 = &parg2) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, parg1, (int*)pparg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, parg1, (int*)pparg2, pTransform); + return ret; } } } /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) { fixed (int* ppIndex = &pIndex) { @@ -1160,11 +1726,8 @@ public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeName { fixed (int* pparg2 = &parg2) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, parg1, (int*)pparg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, parg1, (int*)pparg2, pTransform); + return ret; } } } @@ -1172,24 +1735,21 @@ public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeName /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) { fixed (int* pparg1 = &parg1) { fixed (int* pparg2 = &parg2) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, (int*)pparg1, (int*)pparg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, (int*)pparg1, (int*)pparg2, pTransform); + return ret; } } } /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) { fixed (int* ppIndex = &pIndex) { @@ -1197,11 +1757,8 @@ public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeName { fixed (int* pparg2 = &parg2) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, (int*)pparg1, (int*)pparg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, (int*)pparg1, (int*)pparg2, pTransform); + return ret; } } } @@ -1209,7 +1766,7 @@ public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeName /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) { fixed (uint* ppFlags = &pFlags) { @@ -1217,11 +1774,8 @@ public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeName { fixed (int* pparg2 = &parg2) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, (int*)pparg1, (int*)pparg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, (int*)pparg1, (int*)pparg2, pTransform); + return ret; } } } @@ -1229,7 +1783,7 @@ public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeName /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] [return: NativeName(NativeNameType.Type, "FT_Error")] - public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* pTransform) { fixed (int* ppIndex = &pIndex) { @@ -1239,23 +1793,802 @@ public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeName { fixed (int* pparg2 = &parg2) { - fixed (FTMatrix* ppTransform = &pTransform) - { - int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, (int*)pparg1, (int*)pparg2, (FTMatrix*)ppTransform); - return ret; - } + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, (int*)pparg1, (int*)pparg2, pTransform); + return ret; } } } } } - /// /// ************************************************************************
///
/// FT_Get_Charmap_Index
///
/// :
/// Retrieve index of a given charmap.
///
/// :
/// charmap ::
/// A handle to a charmap.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Charmap_Index")] - [return: NativeName(NativeNameType.Type, "FT_Int")] - public static int GetCharmapIndex(this FTCharMap charmap) + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) { - int ret = FreeType.FTGetCharmapIndexNative(charmap); - return ret; + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, parg1, parg2, (FTMatrix*)ppTransform); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (int* ppIndex = &pIndex) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, parg1, parg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (uint* ppFlags = &pFlags) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, parg1, parg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (int* ppIndex = &pIndex) + { + fixed (uint* ppFlags = &pFlags) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, parg1, parg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (int* pparg1 = &parg1) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, (int*)pparg1, parg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (int* ppIndex = &pIndex) + { + fixed (int* pparg1 = &parg1) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, (int*)pparg1, parg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (uint* ppFlags = &pFlags) + { + fixed (int* pparg1 = &parg1) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, (int*)pparg1, parg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (int* ppIndex = &pIndex) + { + fixed (uint* ppFlags = &pFlags) + { + fixed (int* pparg1 = &parg1) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, (int*)pparg1, parg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (int* pparg2 = &parg2) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, parg1, (int*)pparg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (int* ppIndex = &pIndex) + { + fixed (int* pparg2 = &parg2) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, parg1, (int*)pparg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (uint* ppFlags = &pFlags) + { + fixed (int* pparg2 = &parg2) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, parg1, (int*)pparg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] int* parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (int* ppIndex = &pIndex) + { + fixed (uint* ppFlags = &pFlags) + { + fixed (int* pparg2 = &parg2) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, parg1, (int*)pparg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (int* pparg1 = &parg1) + { + fixed (int* pparg2 = &parg2) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, pFlags, (int*)pparg1, (int*)pparg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (int* ppIndex = &pIndex) + { + fixed (int* pparg1 = &parg1) + { + fixed (int* pparg2 = &parg2) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, pFlags, (int*)pparg1, (int*)pparg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] int* pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (uint* ppFlags = &pFlags) + { + fixed (int* pparg1 = &parg1) + { + fixed (int* pparg2 = &parg2) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, pIndex, (uint*)ppFlags, (int*)pparg1, (int*)pparg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_SubGlyph_Info
///
/// :
/// Retrieve a description of a given subglyph. Only use it if
/// `glyph->format` is
/// _GLYPH_FORMAT_COMPOSITE; an error is returned
/// otherwise.
///
/// :
/// glyph ::
/// The source glyph slot.
/// sub_index ::
/// The index of the subglyph. Must be less than
/// `glyph->num_subglyphs`.
///
/// :
/// p_index ::
/// The glyph index of the subglyph.
/// p_flags ::
/// The subglyph flags, see
/// _SUBGLYPH_FLAG_XXX.
/// p_arg1 ::
/// The subglyph's first argument (if any).
/// p_arg2 ::
/// The subglyph's second argument (if any).
/// p_transform ::
/// The subglyph transformation (if any).
///
///
/// https://docs.microsoft.com/en-us/typography/opentype/spec/glyf#composite-glyph-description
///
///
[NativeName(NativeNameType.Func, "FT_Get_SubGlyph_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetSubGlyphInfo(this FTGlyphSlot glyph, [NativeName(NativeNameType.Param, "sub_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint subIndex, [NativeName(NativeNameType.Param, "p_index")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int pIndex, [NativeName(NativeNameType.Param, "p_flags")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint pFlags, [NativeName(NativeNameType.Param, "p_arg1")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg1, [NativeName(NativeNameType.Param, "p_arg2")] [NativeName(NativeNameType.Type, "FT_Int*")] ref int parg2, [NativeName(NativeNameType.Param, "p_transform")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix pTransform) + { + fixed (int* ppIndex = &pIndex) + { + fixed (uint* ppFlags = &pFlags) + { + fixed (int* pparg1 = &parg1) + { + fixed (int* pparg2 = &parg2) + { + fixed (FTMatrix* ppTransform = &pTransform) + { + int ret = FreeType.FTGetSubGlyphInfoNative(glyph, subIndex, (int*)ppIndex, (uint*)ppFlags, (int*)pparg1, (int*)pparg2, (FTMatrix*)ppTransform); + return ret; + } + } + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_Glyph
///
/// :
/// A function used to extract a glyph image from a slot. Note that the
/// created
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// slot ::
/// A handle to the source glyph slot.
///
/// :
/// aglyph ::
/// A handle to the glyph object. `NULL` in case of error.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Glyph")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetGlyph(this FTGlyphSlot slot, [NativeName(NativeNameType.Param, "aglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* aglyph) + { + int ret = FreeType.FTGetGlyphNative(slot, aglyph); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Glyph
///
/// :
/// A function used to extract a glyph image from a slot. Note that the
/// created
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// slot ::
/// A handle to the source glyph slot.
///
/// :
/// aglyph ::
/// A handle to the glyph object. `NULL` in case of error.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Glyph")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetGlyph(this FTGlyphSlot slot, [NativeName(NativeNameType.Param, "aglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] ref FTGlyph aglyph) + { + fixed (FTGlyph* paglyph = &aglyph) + { + int ret = FreeType.FTGetGlyphNative(slot, (FTGlyph*)paglyph); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_GlyphSlot_Own_Bitmap
///
/// :
/// Make sure that a glyph slot owns `slot->bitmap`.
///
/// :
/// slot ::
/// The glyph slot.
///
///
///
[NativeName(NativeNameType.Func, "FT_GlyphSlot_Own_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int OwnBitmap(this FTGlyphSlot slot) + { + int ret = FreeType.FTGlyphSlotOwnBitmapNative(slot); + return ret; + } + + /// /// Embolden a glyph by a 'reasonable' value (which is highly a matter of
/// taste). This function is actually a convenience function, providing
/// a wrapper for
/// _Outline_Embolden and
/// _Bitmap_Embolden.
///
/// For emboldened outlines the height, width, and advance metrics are
/// increased by the strength of the emboldening -- this even affects
/// mono-width fonts!
///
/// You can also call
/// _Outline_Get_CBox to get precise values.
///
[NativeName(NativeNameType.Func, "FT_GlyphSlot_Embolden")] + [return: NativeName(NativeNameType.Type, "void")] + public static void Embolden(this FTGlyphSlot slot) + { + FreeType.FTGlyphSlotEmboldenNative(slot); + } + + /// /// Precisely adjust the glyph weight either horizontally or vertically.
/// The `xdelta` and `ydelta` values are fractions of the face Em size
/// (in fixed-point format). Considering that a regular face would have
/// stem widths on the order of 0.1 Em, a delta of 0.05 (0x0CCC) should
/// be very noticeable. To increase or decrease the weight, use positive
/// or negative values, respectively.
///
[NativeName(NativeNameType.Func, "FT_GlyphSlot_AdjustWeight")] + [return: NativeName(NativeNameType.Type, "void")] + public static void AdjustWeight(this FTGlyphSlot slot, [NativeName(NativeNameType.Param, "xdelta")] [NativeName(NativeNameType.Type, "FT_Fixed")] int xdelta, [NativeName(NativeNameType.Param, "ydelta")] [NativeName(NativeNameType.Type, "FT_Fixed")] int ydelta) + { + FreeType.FTGlyphSlotAdjustWeightNative(slot, xdelta, ydelta); + } + + /// /// Slant an outline glyph to the right by about 12 degrees.
///
[NativeName(NativeNameType.Func, "FT_GlyphSlot_Oblique")] + [return: NativeName(NativeNameType.Type, "void")] + public static void Oblique(this FTGlyphSlot slot) + { + FreeType.FTGlyphSlotObliqueNative(slot); + } + + /// /// Slant an outline glyph by a given sine of an angle. You can apply
/// slant along either x- or y-axis by choosing a corresponding non-zero
/// argument. If both slants are non-zero, some affine transformation
/// will result.
///
[NativeName(NativeNameType.Func, "FT_GlyphSlot_Slant")] + [return: NativeName(NativeNameType.Type, "void")] + public static void Slant(this FTGlyphSlot slot, [NativeName(NativeNameType.Param, "xslant")] [NativeName(NativeNameType.Type, "FT_Fixed")] int xslant, [NativeName(NativeNameType.Param, "yslant")] [NativeName(NativeNameType.Type, "FT_Fixed")] int yslant) + { + FreeType.FTGlyphSlotSlantNative(slot, xslant, yslant); + } + + /// /// ************************************************************************
///
/// FT_Get_Charmap_Index
///
/// :
/// Retrieve index of a given charmap.
///
/// :
/// charmap ::
/// A handle to a charmap.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Charmap_Index")] + [return: NativeName(NativeNameType.Type, "FT_Int")] + public static int GetCharmapIndex(this FTCharMap charmap) + { + int ret = FreeType.FTGetCharmapIndexNative(charmap); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_CMap_Language_ID
///
/// :
/// Return cmap language ID as specified in the OpenType standard.
/// Definitions of language ID values are in file
/// _TRUETYPE_IDS_H.
///
/// :
/// charmap ::
/// The target charmap.
///
/// For a format~14 cmap (to access Unicode IVS), the return value is
/// 0xFFFFFFFF.
///
[NativeName(NativeNameType.Func, "FT_Get_CMap_Language_ID")] + [return: NativeName(NativeNameType.Type, "FT_ULong")] + public static uint GetCMapLanguageId(this FTCharMap charmap) + { + uint ret = FreeType.FTGetCMapLanguageIDNative(charmap); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_CMap_Format
///
/// :
/// Return the format of an SFNT 'cmap' table.
///
/// :
/// charmap ::
/// The target charmap.
///
///
[NativeName(NativeNameType.Func, "FT_Get_CMap_Format")] + [return: NativeName(NativeNameType.Type, "FT_Long")] + public static int GetCMapFormat(this FTCharMap charmap) + { + int ret = FreeType.FTGetCMapFormatNative(charmap); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Glyph_Copy
///
/// :
/// A function used to copy a glyph image. Note that the created
///
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// source ::
/// A handle to the source glyph object.
///
/// :
/// target ::
/// A handle to the target glyph object. `NULL` in case of error.
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int Copy(this FTGlyph source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* target) + { + int ret = FreeType.FTGlyphCopyNative(source, target); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Glyph_Copy
///
/// :
/// A function used to copy a glyph image. Note that the created
///
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// source ::
/// A handle to the source glyph object.
///
/// :
/// target ::
/// A handle to the target glyph object. `NULL` in case of error.
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int Copy(this FTGlyph source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Glyph*")] ref FTGlyph target) + { + fixed (FTGlyph* ptarget = &target) + { + int ret = FreeType.FTGlyphCopyNative(source, (FTGlyph*)ptarget); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Glyph_Transform
///
/// :
/// Transform a glyph image if its format is scalable.
///
/// :
/// glyph ::
/// A handle to the target glyph object.
///
/// :
/// matrix ::
/// A pointer to a 2x2 matrix to apply.
/// delta ::
/// A pointer to a 2d vector to apply. Coordinates are expressed in
/// 1/64 of a pixel.
///
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Transform")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int Transform(this FTGlyph glyph, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] FTMatrix* matrix, [NativeName(NativeNameType.Param, "delta")] [NativeName(NativeNameType.Type, "const FT_Vector*")] FTVector* delta) + { + int ret = FreeType.FTGlyphTransformNative(glyph, matrix, delta); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Glyph_Transform
///
/// :
/// Transform a glyph image if its format is scalable.
///
/// :
/// glyph ::
/// A handle to the target glyph object.
///
/// :
/// matrix ::
/// A pointer to a 2x2 matrix to apply.
/// delta ::
/// A pointer to a 2d vector to apply. Coordinates are expressed in
/// 1/64 of a pixel.
///
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Transform")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int Transform(this FTGlyph glyph, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] ref FTMatrix matrix, [NativeName(NativeNameType.Param, "delta")] [NativeName(NativeNameType.Type, "const FT_Vector*")] FTVector* delta) + { + fixed (FTMatrix* pmatrix = &matrix) + { + int ret = FreeType.FTGlyphTransformNative(glyph, (FTMatrix*)pmatrix, delta); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Glyph_Transform
///
/// :
/// Transform a glyph image if its format is scalable.
///
/// :
/// glyph ::
/// A handle to the target glyph object.
///
/// :
/// matrix ::
/// A pointer to a 2x2 matrix to apply.
/// delta ::
/// A pointer to a 2d vector to apply. Coordinates are expressed in
/// 1/64 of a pixel.
///
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Transform")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int Transform(this FTGlyph glyph, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] FTMatrix* matrix, [NativeName(NativeNameType.Param, "delta")] [NativeName(NativeNameType.Type, "const FT_Vector*")] ref FTVector delta) + { + fixed (FTVector* pdelta = &delta) + { + int ret = FreeType.FTGlyphTransformNative(glyph, matrix, (FTVector*)pdelta); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Glyph_Transform
///
/// :
/// Transform a glyph image if its format is scalable.
///
/// :
/// glyph ::
/// A handle to the target glyph object.
///
/// :
/// matrix ::
/// A pointer to a 2x2 matrix to apply.
/// delta ::
/// A pointer to a 2d vector to apply. Coordinates are expressed in
/// 1/64 of a pixel.
///
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Transform")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int Transform(this FTGlyph glyph, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] ref FTMatrix matrix, [NativeName(NativeNameType.Param, "delta")] [NativeName(NativeNameType.Type, "const FT_Vector*")] ref FTVector delta) + { + fixed (FTMatrix* pmatrix = &matrix) + { + fixed (FTVector* pdelta = &delta) + { + int ret = FreeType.FTGlyphTransformNative(glyph, (FTMatrix*)pmatrix, (FTVector*)pdelta); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Glyph_Get_CBox
///
/// :
/// Return a glyph's 'control box'. The control box encloses all the
/// outline's points, including Bezier control points. Though it
/// coincides with the exact bounding box for most glyphs, it can be
/// slightly larger in some situations (like when rotating an outline that
/// contains Bezier outside arcs).
/// Computing the control box is very fast, while getting the bounding box
/// can take much more time as it needs to walk over all segments and arcs
/// in the outline. To get the latter, you can use the 'ftbbox'
/// component, which is dedicated to this single task.
///
/// :
/// glyph ::
/// A handle to the source glyph object.
/// mode ::
/// The mode that indicates how to interpret the returned bounding box
/// values.
///
/// :
/// acbox ::
/// The glyph coordinate bounding box. Coordinates are expressed in
/// 1/64 of pixels if it is grid-fitted.
///
/// If the glyph has been loaded with
/// _LOAD_NO_SCALE, `bbox_mode` must
/// be set to
/// _GLYPH_BBOX_UNSCALED to get unscaled font units in 26.6
/// pixel format. The value
/// _GLYPH_BBOX_SUBPIXELS is another name for
/// this constant.
/// If the font is tricky and the glyph has been loaded with
///
/// _LOAD_NO_SCALE, the resulting CBox is meaningless. To get
/// reasonable values for the CBox it is necessary to load the glyph at a
/// large ppem value (so that the hinting instructions can properly shift
/// and scale the subglyphs), then extracting the CBox, which can be
/// eventually converted back to font units.
/// Note that the maximum coordinates are exclusive, which means that one
/// can compute the width and height of the glyph image (be it in integer
/// or 26.6 pixels) as:
/// ```
/// width = bbox.xMax - bbox.xMin;
/// height = bbox.yMax - bbox.yMin;
/// ```
/// Note also that for 26.6 coordinates, if `bbox_mode` is set to
///
/// _GLYPH_BBOX_GRIDFIT, the coordinates will also be grid-fitted,
/// which corresponds to:
/// ```
/// bbox.xMin = FLOOR(bbox.xMin);
/// bbox.yMin = FLOOR(bbox.yMin);
/// bbox.xMax = CEILING(bbox.xMax);
/// bbox.yMax = CEILING(bbox.yMax);
/// ```
/// To get the bbox in pixel coordinates, set `bbox_mode` to
///
/// _GLYPH_BBOX_TRUNCATE.
/// To get the bbox in grid-fitted pixel coordinates, set `bbox_mode` to
///
/// _GLYPH_BBOX_PIXELS.
///
[NativeName(NativeNameType.Func, "FT_Glyph_Get_CBox")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GetCBox(this FTGlyph glyph, [NativeName(NativeNameType.Param, "bbox_mode")] [NativeName(NativeNameType.Type, "FT_UInt")] uint bboxMode, [NativeName(NativeNameType.Param, "acbox")] [NativeName(NativeNameType.Type, "FT_BBox*")] FTBBox* acbox) + { + FreeType.FTGlyphGetCBoxNative(glyph, bboxMode, acbox); + } + + /// /// ************************************************************************
///
/// FT_Glyph_Get_CBox
///
/// :
/// Return a glyph's 'control box'. The control box encloses all the
/// outline's points, including Bezier control points. Though it
/// coincides with the exact bounding box for most glyphs, it can be
/// slightly larger in some situations (like when rotating an outline that
/// contains Bezier outside arcs).
/// Computing the control box is very fast, while getting the bounding box
/// can take much more time as it needs to walk over all segments and arcs
/// in the outline. To get the latter, you can use the 'ftbbox'
/// component, which is dedicated to this single task.
///
/// :
/// glyph ::
/// A handle to the source glyph object.
/// mode ::
/// The mode that indicates how to interpret the returned bounding box
/// values.
///
/// :
/// acbox ::
/// The glyph coordinate bounding box. Coordinates are expressed in
/// 1/64 of pixels if it is grid-fitted.
///
/// If the glyph has been loaded with
/// _LOAD_NO_SCALE, `bbox_mode` must
/// be set to
/// _GLYPH_BBOX_UNSCALED to get unscaled font units in 26.6
/// pixel format. The value
/// _GLYPH_BBOX_SUBPIXELS is another name for
/// this constant.
/// If the font is tricky and the glyph has been loaded with
///
/// _LOAD_NO_SCALE, the resulting CBox is meaningless. To get
/// reasonable values for the CBox it is necessary to load the glyph at a
/// large ppem value (so that the hinting instructions can properly shift
/// and scale the subglyphs), then extracting the CBox, which can be
/// eventually converted back to font units.
/// Note that the maximum coordinates are exclusive, which means that one
/// can compute the width and height of the glyph image (be it in integer
/// or 26.6 pixels) as:
/// ```
/// width = bbox.xMax - bbox.xMin;
/// height = bbox.yMax - bbox.yMin;
/// ```
/// Note also that for 26.6 coordinates, if `bbox_mode` is set to
///
/// _GLYPH_BBOX_GRIDFIT, the coordinates will also be grid-fitted,
/// which corresponds to:
/// ```
/// bbox.xMin = FLOOR(bbox.xMin);
/// bbox.yMin = FLOOR(bbox.yMin);
/// bbox.xMax = CEILING(bbox.xMax);
/// bbox.yMax = CEILING(bbox.yMax);
/// ```
/// To get the bbox in pixel coordinates, set `bbox_mode` to
///
/// _GLYPH_BBOX_TRUNCATE.
/// To get the bbox in grid-fitted pixel coordinates, set `bbox_mode` to
///
/// _GLYPH_BBOX_PIXELS.
///
[NativeName(NativeNameType.Func, "FT_Glyph_Get_CBox")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GetCBox(this FTGlyph glyph, [NativeName(NativeNameType.Param, "bbox_mode")] [NativeName(NativeNameType.Type, "FT_UInt")] uint bboxMode, [NativeName(NativeNameType.Param, "acbox")] [NativeName(NativeNameType.Type, "FT_BBox*")] ref FTBBox acbox) + { + fixed (FTBBox* pacbox = &acbox) + { + FreeType.FTGlyphGetCBoxNative(glyph, bboxMode, (FTBBox*)pacbox); + } + } + + /// /// ************************************************************************
///
/// FT_Done_Glyph
///
/// :
/// Destroy a given glyph.
///
/// :
/// glyph ::
/// A handle to the target glyph object. Can be `NULL`.
///
[NativeName(NativeNameType.Func, "FT_Done_Glyph")] + [return: NativeName(NativeNameType.Type, "void")] + public static void DoneGlyph(this FTGlyph glyph) + { + FreeType.FTDoneGlyphNative(glyph); + } + + /// /// ************************************************************************
///
/// FT_Stroker_Set
///
/// :
/// Reset a stroker object's attributes.
///
/// :
/// stroker ::
/// The target stroker handle.
/// radius ::
/// The border radius.
/// line_cap ::
/// The line cap style.
/// line_join ::
/// The line join style.
/// miter_limit ::
/// The maximum reciprocal sine of half-angle at the miter join,
/// expressed as 16.16 fixed-point value.
///
/// The `miter_limit` multiplied by the `radius` gives the maximum size
/// of a miter spike, at which it is clipped for
///
/// _STROKER_LINEJOIN_MITER_VARIABLE or replaced with a bevel join for
///
/// _STROKER_LINEJOIN_MITER_FIXED.
/// This function calls
/// _Stroker_Rewind automatically.
///
[NativeName(NativeNameType.Func, "FT_Stroker_Set")] + [return: NativeName(NativeNameType.Type, "void")] + public static void Set(this FTStroker stroker, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "FT_Fixed")] int radius, [NativeName(NativeNameType.Param, "line_cap")] [NativeName(NativeNameType.Type, "FT_Stroker_LineCap")] FTStrokerLineCap lineCap, [NativeName(NativeNameType.Param, "line_join")] [NativeName(NativeNameType.Type, "FT_Stroker_LineJoin")] FTStrokerLineJoin lineJoin, [NativeName(NativeNameType.Param, "miter_limit")] [NativeName(NativeNameType.Type, "FT_Fixed")] int miterLimit) + { + FreeType.FTStrokerSetNative(stroker, radius, lineCap, lineJoin, miterLimit); + } + + /// /// ************************************************************************
///
/// FT_Stroker_Rewind
///
/// :
/// Reset a stroker object without changing its attributes. You should
/// call this function before beginning a new series of calls to
///
/// _Stroker_BeginSubPath or
/// _Stroker_EndSubPath.
///
/// :
/// stroker ::
/// The target stroker handle.
///
[NativeName(NativeNameType.Func, "FT_Stroker_Rewind")] + [return: NativeName(NativeNameType.Type, "void")] + public static void Rewind(this FTStroker stroker) + { + FreeType.FTStrokerRewindNative(stroker); + } + + /// /// ************************************************************************
///
/// FT_Stroker_ParseOutline
///
/// :
/// A convenience function used to parse a whole outline with the stroker.
/// The resulting outline(s) can be retrieved later by functions like
///
/// _Stroker_GetCounts and
/// _Stroker_Export.
///
/// :
/// stroker ::
/// The target stroker handle.
/// outline ::
/// The source outline.
/// opened ::
/// A boolean. If~1, the outline is treated as an open path instead of
/// a closed one.
///
///
/// If `opened` is~1, the outline is processed as an open path, and the
/// stroker generates a single 'stroke' outline.
/// This function calls
/// _Stroker_Rewind automatically.
///
[NativeName(NativeNameType.Func, "FT_Stroker_ParseOutline")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int ParseOutline(this FTStroker stroker, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "opened")] [NativeName(NativeNameType.Type, "FT_Bool")] byte opened) + { + int ret = FreeType.FTStrokerParseOutlineNative(stroker, outline, opened); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_ParseOutline
///
/// :
/// A convenience function used to parse a whole outline with the stroker.
/// The resulting outline(s) can be retrieved later by functions like
///
/// _Stroker_GetCounts and
/// _Stroker_Export.
///
/// :
/// stroker ::
/// The target stroker handle.
/// outline ::
/// The source outline.
/// opened ::
/// A boolean. If~1, the outline is treated as an open path instead of
/// a closed one.
///
///
/// If `opened` is~1, the outline is processed as an open path, and the
/// stroker generates a single 'stroke' outline.
/// This function calls
/// _Stroker_Rewind automatically.
///
[NativeName(NativeNameType.Func, "FT_Stroker_ParseOutline")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int ParseOutline(this FTStroker stroker, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline, [NativeName(NativeNameType.Param, "opened")] [NativeName(NativeNameType.Type, "FT_Bool")] byte opened) + { + fixed (FTOutline* poutline = &outline) + { + int ret = FreeType.FTStrokerParseOutlineNative(stroker, (FTOutline*)poutline, opened); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_BeginSubPath
///
/// :
/// Start a new sub-path in the stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// to ::
/// A pointer to the start vector.
/// open ::
/// A boolean. If~1, the sub-path is treated as an open one.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_BeginSubPath")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BeginSubPath(this FTStroker stroker, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to, [NativeName(NativeNameType.Param, "open")] [NativeName(NativeNameType.Type, "FT_Bool")] byte open) + { + int ret = FreeType.FTStrokerBeginSubPathNative(stroker, to, open); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_BeginSubPath
///
/// :
/// Start a new sub-path in the stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// to ::
/// A pointer to the start vector.
/// open ::
/// A boolean. If~1, the sub-path is treated as an open one.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_BeginSubPath")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int BeginSubPath(this FTStroker stroker, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to, [NativeName(NativeNameType.Param, "open")] [NativeName(NativeNameType.Type, "FT_Bool")] byte open) + { + fixed (FTVector* pto = &to) + { + int ret = FreeType.FTStrokerBeginSubPathNative(stroker, (FTVector*)pto, open); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_EndSubPath
///
/// :
/// Close the current sub-path in the stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_EndSubPath")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int EndSubPath(this FTStroker stroker) + { + int ret = FreeType.FTStrokerEndSubPathNative(stroker); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_LineTo
///
/// :
/// 'Draw' a single line segment in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_LineTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int LineTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + int ret = FreeType.FTStrokerLineToNative(stroker, to); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_LineTo
///
/// :
/// 'Draw' a single line segment in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_LineTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int LineTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pto = &to) + { + int ret = FreeType.FTStrokerLineToNative(stroker, (FTVector*)pto); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_ConicTo
///
/// :
/// 'Draw' a single quadratic Bezier in the stroker's current sub-path,
/// from the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control ::
/// A pointer to a Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_ConicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int ConicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + int ret = FreeType.FTStrokerConicToNative(stroker, control, to); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_ConicTo
///
/// :
/// 'Draw' a single quadratic Bezier in the stroker's current sub-path,
/// from the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control ::
/// A pointer to a Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_ConicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int ConicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + fixed (FTVector* pcontrol = &control) + { + int ret = FreeType.FTStrokerConicToNative(stroker, (FTVector*)pcontrol, to); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_ConicTo
///
/// :
/// 'Draw' a single quadratic Bezier in the stroker's current sub-path,
/// from the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control ::
/// A pointer to a Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_ConicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int ConicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pto = &to) + { + int ret = FreeType.FTStrokerConicToNative(stroker, control, (FTVector*)pto); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_ConicTo
///
/// :
/// 'Draw' a single quadratic Bezier in the stroker's current sub-path,
/// from the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control ::
/// A pointer to a Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_ConicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int ConicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pcontrol = &control) + { + fixed (FTVector* pto = &to) + { + int ret = FreeType.FTStrokerConicToNative(stroker, (FTVector*)pcontrol, (FTVector*)pto); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int CubicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + int ret = FreeType.FTStrokerCubicToNative(stroker, control1, control2, to); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int CubicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + fixed (FTVector* pcontrol1 = &control1) + { + int ret = FreeType.FTStrokerCubicToNative(stroker, (FTVector*)pcontrol1, control2, to); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int CubicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + fixed (FTVector* pcontrol2 = &control2) + { + int ret = FreeType.FTStrokerCubicToNative(stroker, control1, (FTVector*)pcontrol2, to); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int CubicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + fixed (FTVector* pcontrol1 = &control1) + { + fixed (FTVector* pcontrol2 = &control2) + { + int ret = FreeType.FTStrokerCubicToNative(stroker, (FTVector*)pcontrol1, (FTVector*)pcontrol2, to); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int CubicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pto = &to) + { + int ret = FreeType.FTStrokerCubicToNative(stroker, control1, control2, (FTVector*)pto); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int CubicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pcontrol1 = &control1) + { + fixed (FTVector* pto = &to) + { + int ret = FreeType.FTStrokerCubicToNative(stroker, (FTVector*)pcontrol1, control2, (FTVector*)pto); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int CubicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pcontrol2 = &control2) + { + fixed (FTVector* pto = &to) + { + int ret = FreeType.FTStrokerCubicToNative(stroker, control1, (FTVector*)pcontrol2, (FTVector*)pto); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int CubicTo(this FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pcontrol1 = &control1) + { + fixed (FTVector* pcontrol2 = &control2) + { + fixed (FTVector* pto = &to) + { + int ret = FreeType.FTStrokerCubicToNative(stroker, (FTVector*)pcontrol1, (FTVector*)pcontrol2, (FTVector*)pto); + return ret; + } + } + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetBorderCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export one of the 'border' or 'stroke' outlines generated by the
/// stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_GetCounts instead if you want to retrieve
/// the counts associated to both borders.
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetBorderCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetBorderCounts(this FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumContours) + { + int ret = FreeType.FTStrokerGetBorderCountsNative(stroker, border, anumPoints, anumContours); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetBorderCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export one of the 'border' or 'stroke' outlines generated by the
/// stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_GetCounts instead if you want to retrieve
/// the counts associated to both borders.
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetBorderCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetBorderCounts(this FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumContours) + { + fixed (uint* panumPoints = &anumPoints) + { + int ret = FreeType.FTStrokerGetBorderCountsNative(stroker, border, (uint*)panumPoints, anumContours); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetBorderCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export one of the 'border' or 'stroke' outlines generated by the
/// stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_GetCounts instead if you want to retrieve
/// the counts associated to both borders.
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetBorderCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetBorderCounts(this FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumContours) + { + fixed (uint* panumContours = &anumContours) + { + int ret = FreeType.FTStrokerGetBorderCountsNative(stroker, border, anumPoints, (uint*)panumContours); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetBorderCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export one of the 'border' or 'stroke' outlines generated by the
/// stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_GetCounts instead if you want to retrieve
/// the counts associated to both borders.
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetBorderCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetBorderCounts(this FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumContours) + { + fixed (uint* panumPoints = &anumPoints) + { + fixed (uint* panumContours = &anumContours) + { + int ret = FreeType.FTStrokerGetBorderCountsNative(stroker, border, (uint*)panumPoints, (uint*)panumContours); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_ExportBorder
///
/// :
/// Call this function after
/// _Stroker_GetBorderCounts to export the
/// corresponding border to your own
/// _Outline structure.
/// Note that this function appends the border points and contours to your
/// outline, but does not try to resize its arrays.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
/// outline ::
/// The target outline handle.
///
/// When an outline, or a sub-path, is 'closed', the stroker generates two
/// independent 'border' outlines, named 'left' and 'right'.
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_Export instead if you want to retrieve
/// all borders at once.
///
[NativeName(NativeNameType.Func, "FT_Stroker_ExportBorder")] + [return: NativeName(NativeNameType.Type, "void")] + public static void ExportBorder(this FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline) + { + FreeType.FTStrokerExportBorderNative(stroker, border, outline); + } + + /// /// ************************************************************************
///
/// FT_Stroker_ExportBorder
///
/// :
/// Call this function after
/// _Stroker_GetBorderCounts to export the
/// corresponding border to your own
/// _Outline structure.
/// Note that this function appends the border points and contours to your
/// outline, but does not try to resize its arrays.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
/// outline ::
/// The target outline handle.
///
/// When an outline, or a sub-path, is 'closed', the stroker generates two
/// independent 'border' outlines, named 'left' and 'right'.
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_Export instead if you want to retrieve
/// all borders at once.
///
[NativeName(NativeNameType.Func, "FT_Stroker_ExportBorder")] + [return: NativeName(NativeNameType.Type, "void")] + public static void ExportBorder(this FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline) + { + fixed (FTOutline* poutline = &outline) + { + FreeType.FTStrokerExportBorderNative(stroker, border, (FTOutline*)poutline); + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export all points/borders from the stroked outline/path.
///
/// :
/// stroker ::
/// The target stroker handle.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetCounts(this FTStroker stroker, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumContours) + { + int ret = FreeType.FTStrokerGetCountsNative(stroker, anumPoints, anumContours); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export all points/borders from the stroked outline/path.
///
/// :
/// stroker ::
/// The target stroker handle.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetCounts(this FTStroker stroker, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumContours) + { + fixed (uint* panumPoints = &anumPoints) + { + int ret = FreeType.FTStrokerGetCountsNative(stroker, (uint*)panumPoints, anumContours); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export all points/borders from the stroked outline/path.
///
/// :
/// stroker ::
/// The target stroker handle.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetCounts(this FTStroker stroker, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumContours) + { + fixed (uint* panumContours = &anumContours) + { + int ret = FreeType.FTStrokerGetCountsNative(stroker, anumPoints, (uint*)panumContours); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export all points/borders from the stroked outline/path.
///
/// :
/// stroker ::
/// The target stroker handle.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int GetCounts(this FTStroker stroker, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumContours) + { + fixed (uint* panumPoints = &anumPoints) + { + fixed (uint* panumContours = &anumContours) + { + int ret = FreeType.FTStrokerGetCountsNative(stroker, (uint*)panumPoints, (uint*)panumContours); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_Export
///
/// :
/// Call this function after
/// _Stroker_GetBorderCounts to export all
/// borders to your own
/// _Outline structure.
/// Note that this function appends the border points and contours to your
/// outline, but does not try to resize its arrays.
///
/// :
/// stroker ::
/// The target stroker handle.
/// outline ::
/// The target outline handle.
///
[NativeName(NativeNameType.Func, "FT_Stroker_Export")] + [return: NativeName(NativeNameType.Type, "void")] + public static void Export(this FTStroker stroker, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline) + { + FreeType.FTStrokerExportNative(stroker, outline); + } + + /// /// ************************************************************************
///
/// FT_Stroker_Export
///
/// :
/// Call this function after
/// _Stroker_GetBorderCounts to export all
/// borders to your own
/// _Outline structure.
/// Note that this function appends the border points and contours to your
/// outline, but does not try to resize its arrays.
///
/// :
/// stroker ::
/// The target stroker handle.
/// outline ::
/// The target outline handle.
///
[NativeName(NativeNameType.Func, "FT_Stroker_Export")] + [return: NativeName(NativeNameType.Type, "void")] + public static void Export(this FTStroker stroker, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline) + { + fixed (FTOutline* poutline = &outline) + { + FreeType.FTStrokerExportNative(stroker, (FTOutline*)poutline); + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_Done
///
/// :
/// Destroy a stroker object.
///
/// :
/// stroker ::
/// A stroker handle. Can be `NULL`.
///
[NativeName(NativeNameType.Func, "FT_Stroker_Done")] + [return: NativeName(NativeNameType.Type, "void")] + public static void Done(this FTStroker stroker) + { + FreeType.FTStrokerDoneNative(stroker); } } diff --git a/Hexa.NET.FreeType/Generated/Functions.001.cs b/Hexa.NET.FreeType/Generated/Functions.001.cs index 60d434b..bbc7d36 100644 --- a/Hexa.NET.FreeType/Generated/Functions.001.cs +++ b/Hexa.NET.FreeType/Generated/Functions.001.cs @@ -812,5 +812,1440 @@ public static byte FTFaceSetUnpatentedHinting([NativeName(NativeNameType.Param, return ret; } + /// + /// ************************************************************************
+ ///
+ /// FT_New_Glyph
+ ///
+ /// :
+ /// A function used to create a new empty glyph image. Note that the
+ /// created
+ /// _Glyph object must be released with
+ /// _Done_Glyph.
+ ///
+ /// :
+ /// library ::
+ /// A handle to the FreeType library object.
+ /// format ::
+ /// The format of the glyph's image.
+ ///
+ /// :
+ /// aglyph ::
+ /// A handle to the glyph object.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_New_Glyph")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_New_Glyph")] + internal static extern int FTNewGlyphNative([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "FT_Glyph_Format")] FTGlyphFormat format, [NativeName(NativeNameType.Param, "aglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* aglyph); + + /// /// ************************************************************************
///
/// FT_New_Glyph
///
/// :
/// A function used to create a new empty glyph image. Note that the
/// created
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// library ::
/// A handle to the FreeType library object.
/// format ::
/// The format of the glyph's image.
///
/// :
/// aglyph ::
/// A handle to the glyph object.
///
///
///
[NativeName(NativeNameType.Func, "FT_New_Glyph")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTNewGlyph([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "FT_Glyph_Format")] FTGlyphFormat format, [NativeName(NativeNameType.Param, "aglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* aglyph) + { + int ret = FTNewGlyphNative(library, format, aglyph); + return ret; + } + + /// /// ************************************************************************
///
/// FT_New_Glyph
///
/// :
/// A function used to create a new empty glyph image. Note that the
/// created
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// library ::
/// A handle to the FreeType library object.
/// format ::
/// The format of the glyph's image.
///
/// :
/// aglyph ::
/// A handle to the glyph object.
///
///
///
[NativeName(NativeNameType.Func, "FT_New_Glyph")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTNewGlyph([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "FT_Glyph_Format")] FTGlyphFormat format, [NativeName(NativeNameType.Param, "aglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] ref FTGlyph aglyph) + { + fixed (FTGlyph* paglyph = &aglyph) + { + int ret = FTNewGlyphNative(library, format, (FTGlyph*)paglyph); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_Glyph
+ ///
+ /// :
+ /// A function used to extract a glyph image from a slot. Note that the
+ /// created
+ /// _Glyph object must be released with
+ /// _Done_Glyph.
+ ///
+ /// :
+ /// slot ::
+ /// A handle to the source glyph slot.
+ ///
+ /// :
+ /// aglyph ::
+ /// A handle to the glyph object. `NULL` in case of error.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_Glyph")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_Glyph")] + internal static extern int FTGetGlyphNative([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot, [NativeName(NativeNameType.Param, "aglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* aglyph); + + /// /// ************************************************************************
///
/// FT_Get_Glyph
///
/// :
/// A function used to extract a glyph image from a slot. Note that the
/// created
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// slot ::
/// A handle to the source glyph slot.
///
/// :
/// aglyph ::
/// A handle to the glyph object. `NULL` in case of error.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Glyph")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGetGlyph([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot, [NativeName(NativeNameType.Param, "aglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* aglyph) + { + int ret = FTGetGlyphNative(slot, aglyph); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Glyph
///
/// :
/// A function used to extract a glyph image from a slot. Note that the
/// created
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// slot ::
/// A handle to the source glyph slot.
///
/// :
/// aglyph ::
/// A handle to the glyph object. `NULL` in case of error.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Glyph")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGetGlyph([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot, [NativeName(NativeNameType.Param, "aglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] ref FTGlyph aglyph) + { + fixed (FTGlyph* paglyph = &aglyph) + { + int ret = FTGetGlyphNative(slot, (FTGlyph*)paglyph); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Glyph_Copy
+ ///
+ /// :
+ /// A function used to copy a glyph image. Note that the created
+ ///
+ /// _Glyph object must be released with
+ /// _Done_Glyph.
+ ///
+ /// :
+ /// source ::
+ /// A handle to the source glyph object.
+ ///
+ /// :
+ /// target ::
+ /// A handle to the target glyph object. `NULL` in case of error.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Glyph_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Glyph_Copy")] + internal static extern int FTGlyphCopyNative([NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* target); + + /// /// ************************************************************************
///
/// FT_Glyph_Copy
///
/// :
/// A function used to copy a glyph image. Note that the created
///
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// source ::
/// A handle to the source glyph object.
///
/// :
/// target ::
/// A handle to the target glyph object. `NULL` in case of error.
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGlyphCopy([NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* target) + { + int ret = FTGlyphCopyNative(source, target); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Glyph_Copy
///
/// :
/// A function used to copy a glyph image. Note that the created
///
/// _Glyph object must be released with
/// _Done_Glyph.
///
/// :
/// source ::
/// A handle to the source glyph object.
///
/// :
/// target ::
/// A handle to the target glyph object. `NULL` in case of error.
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGlyphCopy([NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Glyph*")] ref FTGlyph target) + { + fixed (FTGlyph* ptarget = &target) + { + int ret = FTGlyphCopyNative(source, (FTGlyph*)ptarget); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Glyph_Transform
+ ///
+ /// :
+ /// Transform a glyph image if its format is scalable.
+ ///
+ /// :
+ /// glyph ::
+ /// A handle to the target glyph object.
+ ///
+ /// :
+ /// matrix ::
+ /// A pointer to a 2x2 matrix to apply.
+ /// delta ::
+ /// A pointer to a 2d vector to apply. Coordinates are expressed in
+ /// 1/64 of a pixel.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Glyph_Transform")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Glyph_Transform")] + internal static extern int FTGlyphTransformNative([NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph glyph, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] FTMatrix* matrix, [NativeName(NativeNameType.Param, "delta")] [NativeName(NativeNameType.Type, "const FT_Vector*")] FTVector* delta); + + /// /// ************************************************************************
///
/// FT_Glyph_Transform
///
/// :
/// Transform a glyph image if its format is scalable.
///
/// :
/// glyph ::
/// A handle to the target glyph object.
///
/// :
/// matrix ::
/// A pointer to a 2x2 matrix to apply.
/// delta ::
/// A pointer to a 2d vector to apply. Coordinates are expressed in
/// 1/64 of a pixel.
///
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Transform")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGlyphTransform([NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph glyph, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] FTMatrix* matrix, [NativeName(NativeNameType.Param, "delta")] [NativeName(NativeNameType.Type, "const FT_Vector*")] FTVector* delta) + { + int ret = FTGlyphTransformNative(glyph, matrix, delta); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Glyph_Transform
///
/// :
/// Transform a glyph image if its format is scalable.
///
/// :
/// glyph ::
/// A handle to the target glyph object.
///
/// :
/// matrix ::
/// A pointer to a 2x2 matrix to apply.
/// delta ::
/// A pointer to a 2d vector to apply. Coordinates are expressed in
/// 1/64 of a pixel.
///
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Transform")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGlyphTransform([NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph glyph, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] ref FTMatrix matrix, [NativeName(NativeNameType.Param, "delta")] [NativeName(NativeNameType.Type, "const FT_Vector*")] FTVector* delta) + { + fixed (FTMatrix* pmatrix = &matrix) + { + int ret = FTGlyphTransformNative(glyph, (FTMatrix*)pmatrix, delta); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Glyph_Transform
///
/// :
/// Transform a glyph image if its format is scalable.
///
/// :
/// glyph ::
/// A handle to the target glyph object.
///
/// :
/// matrix ::
/// A pointer to a 2x2 matrix to apply.
/// delta ::
/// A pointer to a 2d vector to apply. Coordinates are expressed in
/// 1/64 of a pixel.
///
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Transform")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGlyphTransform([NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph glyph, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] FTMatrix* matrix, [NativeName(NativeNameType.Param, "delta")] [NativeName(NativeNameType.Type, "const FT_Vector*")] ref FTVector delta) + { + fixed (FTVector* pdelta = &delta) + { + int ret = FTGlyphTransformNative(glyph, matrix, (FTVector*)pdelta); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Glyph_Transform
///
/// :
/// Transform a glyph image if its format is scalable.
///
/// :
/// glyph ::
/// A handle to the target glyph object.
///
/// :
/// matrix ::
/// A pointer to a 2x2 matrix to apply.
/// delta ::
/// A pointer to a 2d vector to apply. Coordinates are expressed in
/// 1/64 of a pixel.
///
///
///
[NativeName(NativeNameType.Func, "FT_Glyph_Transform")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGlyphTransform([NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph glyph, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] ref FTMatrix matrix, [NativeName(NativeNameType.Param, "delta")] [NativeName(NativeNameType.Type, "const FT_Vector*")] ref FTVector delta) + { + fixed (FTMatrix* pmatrix = &matrix) + { + fixed (FTVector* pdelta = &delta) + { + int ret = FTGlyphTransformNative(glyph, (FTMatrix*)pmatrix, (FTVector*)pdelta); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Glyph_Get_CBox
+ ///
+ /// :
+ /// Return a glyph's 'control box'. The control box encloses all the
+ /// outline's points, including Bezier control points. Though it
+ /// coincides with the exact bounding box for most glyphs, it can be
+ /// slightly larger in some situations (like when rotating an outline that
+ /// contains Bezier outside arcs).
+ /// Computing the control box is very fast, while getting the bounding box
+ /// can take much more time as it needs to walk over all segments and arcs
+ /// in the outline. To get the latter, you can use the 'ftbbox'
+ /// component, which is dedicated to this single task.
+ ///
+ /// :
+ /// glyph ::
+ /// A handle to the source glyph object.
+ /// mode ::
+ /// The mode that indicates how to interpret the returned bounding box
+ /// values.
+ ///
+ /// :
+ /// acbox ::
+ /// The glyph coordinate bounding box. Coordinates are expressed in
+ /// 1/64 of pixels if it is grid-fitted.
+ ///
+ /// If the glyph has been loaded with
+ /// _LOAD_NO_SCALE, `bbox_mode` must
+ /// be set to
+ /// _GLYPH_BBOX_UNSCALED to get unscaled font units in 26.6
+ /// pixel format. The value
+ /// _GLYPH_BBOX_SUBPIXELS is another name for
+ /// this constant.
+ /// If the font is tricky and the glyph has been loaded with
+ ///
+ /// _LOAD_NO_SCALE, the resulting CBox is meaningless. To get
+ /// reasonable values for the CBox it is necessary to load the glyph at a
+ /// large ppem value (so that the hinting instructions can properly shift
+ /// and scale the subglyphs), then extracting the CBox, which can be
+ /// eventually converted back to font units.
+ /// Note that the maximum coordinates are exclusive, which means that one
+ /// can compute the width and height of the glyph image (be it in integer
+ /// or 26.6 pixels) as:
+ /// ```
+ /// width = bbox.xMax - bbox.xMin;
+ /// height = bbox.yMax - bbox.yMin;
+ /// ```
+ /// Note also that for 26.6 coordinates, if `bbox_mode` is set to
+ ///
+ /// _GLYPH_BBOX_GRIDFIT, the coordinates will also be grid-fitted,
+ /// which corresponds to:
+ /// ```
+ /// bbox.xMin = FLOOR(bbox.xMin);
+ /// bbox.yMin = FLOOR(bbox.yMin);
+ /// bbox.xMax = CEILING(bbox.xMax);
+ /// bbox.yMax = CEILING(bbox.yMax);
+ /// ```
+ /// To get the bbox in pixel coordinates, set `bbox_mode` to
+ ///
+ /// _GLYPH_BBOX_TRUNCATE.
+ /// To get the bbox in grid-fitted pixel coordinates, set `bbox_mode` to
+ ///
+ /// _GLYPH_BBOX_PIXELS.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Glyph_Get_CBox")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Glyph_Get_CBox")] + internal static extern void FTGlyphGetCBoxNative([NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph glyph, [NativeName(NativeNameType.Param, "bbox_mode")] [NativeName(NativeNameType.Type, "FT_UInt")] uint bboxMode, [NativeName(NativeNameType.Param, "acbox")] [NativeName(NativeNameType.Type, "FT_BBox*")] FTBBox* acbox); + + /// /// ************************************************************************
///
/// FT_Glyph_Get_CBox
///
/// :
/// Return a glyph's 'control box'. The control box encloses all the
/// outline's points, including Bezier control points. Though it
/// coincides with the exact bounding box for most glyphs, it can be
/// slightly larger in some situations (like when rotating an outline that
/// contains Bezier outside arcs).
/// Computing the control box is very fast, while getting the bounding box
/// can take much more time as it needs to walk over all segments and arcs
/// in the outline. To get the latter, you can use the 'ftbbox'
/// component, which is dedicated to this single task.
///
/// :
/// glyph ::
/// A handle to the source glyph object.
/// mode ::
/// The mode that indicates how to interpret the returned bounding box
/// values.
///
/// :
/// acbox ::
/// The glyph coordinate bounding box. Coordinates are expressed in
/// 1/64 of pixels if it is grid-fitted.
///
/// If the glyph has been loaded with
/// _LOAD_NO_SCALE, `bbox_mode` must
/// be set to
/// _GLYPH_BBOX_UNSCALED to get unscaled font units in 26.6
/// pixel format. The value
/// _GLYPH_BBOX_SUBPIXELS is another name for
/// this constant.
/// If the font is tricky and the glyph has been loaded with
///
/// _LOAD_NO_SCALE, the resulting CBox is meaningless. To get
/// reasonable values for the CBox it is necessary to load the glyph at a
/// large ppem value (so that the hinting instructions can properly shift
/// and scale the subglyphs), then extracting the CBox, which can be
/// eventually converted back to font units.
/// Note that the maximum coordinates are exclusive, which means that one
/// can compute the width and height of the glyph image (be it in integer
/// or 26.6 pixels) as:
/// ```
/// width = bbox.xMax - bbox.xMin;
/// height = bbox.yMax - bbox.yMin;
/// ```
/// Note also that for 26.6 coordinates, if `bbox_mode` is set to
///
/// _GLYPH_BBOX_GRIDFIT, the coordinates will also be grid-fitted,
/// which corresponds to:
/// ```
/// bbox.xMin = FLOOR(bbox.xMin);
/// bbox.yMin = FLOOR(bbox.yMin);
/// bbox.xMax = CEILING(bbox.xMax);
/// bbox.yMax = CEILING(bbox.yMax);
/// ```
/// To get the bbox in pixel coordinates, set `bbox_mode` to
///
/// _GLYPH_BBOX_TRUNCATE.
/// To get the bbox in grid-fitted pixel coordinates, set `bbox_mode` to
///
/// _GLYPH_BBOX_PIXELS.
///
[NativeName(NativeNameType.Func, "FT_Glyph_Get_CBox")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTGlyphGetCBox([NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph glyph, [NativeName(NativeNameType.Param, "bbox_mode")] [NativeName(NativeNameType.Type, "FT_UInt")] uint bboxMode, [NativeName(NativeNameType.Param, "acbox")] [NativeName(NativeNameType.Type, "FT_BBox*")] FTBBox* acbox) + { + FTGlyphGetCBoxNative(glyph, bboxMode, acbox); + } + + /// /// ************************************************************************
///
/// FT_Glyph_Get_CBox
///
/// :
/// Return a glyph's 'control box'. The control box encloses all the
/// outline's points, including Bezier control points. Though it
/// coincides with the exact bounding box for most glyphs, it can be
/// slightly larger in some situations (like when rotating an outline that
/// contains Bezier outside arcs).
/// Computing the control box is very fast, while getting the bounding box
/// can take much more time as it needs to walk over all segments and arcs
/// in the outline. To get the latter, you can use the 'ftbbox'
/// component, which is dedicated to this single task.
///
/// :
/// glyph ::
/// A handle to the source glyph object.
/// mode ::
/// The mode that indicates how to interpret the returned bounding box
/// values.
///
/// :
/// acbox ::
/// The glyph coordinate bounding box. Coordinates are expressed in
/// 1/64 of pixels if it is grid-fitted.
///
/// If the glyph has been loaded with
/// _LOAD_NO_SCALE, `bbox_mode` must
/// be set to
/// _GLYPH_BBOX_UNSCALED to get unscaled font units in 26.6
/// pixel format. The value
/// _GLYPH_BBOX_SUBPIXELS is another name for
/// this constant.
/// If the font is tricky and the glyph has been loaded with
///
/// _LOAD_NO_SCALE, the resulting CBox is meaningless. To get
/// reasonable values for the CBox it is necessary to load the glyph at a
/// large ppem value (so that the hinting instructions can properly shift
/// and scale the subglyphs), then extracting the CBox, which can be
/// eventually converted back to font units.
/// Note that the maximum coordinates are exclusive, which means that one
/// can compute the width and height of the glyph image (be it in integer
/// or 26.6 pixels) as:
/// ```
/// width = bbox.xMax - bbox.xMin;
/// height = bbox.yMax - bbox.yMin;
/// ```
/// Note also that for 26.6 coordinates, if `bbox_mode` is set to
///
/// _GLYPH_BBOX_GRIDFIT, the coordinates will also be grid-fitted,
/// which corresponds to:
/// ```
/// bbox.xMin = FLOOR(bbox.xMin);
/// bbox.yMin = FLOOR(bbox.yMin);
/// bbox.xMax = CEILING(bbox.xMax);
/// bbox.yMax = CEILING(bbox.yMax);
/// ```
/// To get the bbox in pixel coordinates, set `bbox_mode` to
///
/// _GLYPH_BBOX_TRUNCATE.
/// To get the bbox in grid-fitted pixel coordinates, set `bbox_mode` to
///
/// _GLYPH_BBOX_PIXELS.
///
[NativeName(NativeNameType.Func, "FT_Glyph_Get_CBox")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTGlyphGetCBox([NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph glyph, [NativeName(NativeNameType.Param, "bbox_mode")] [NativeName(NativeNameType.Type, "FT_UInt")] uint bboxMode, [NativeName(NativeNameType.Param, "acbox")] [NativeName(NativeNameType.Type, "FT_BBox*")] ref FTBBox acbox) + { + fixed (FTBBox* pacbox = &acbox) + { + FTGlyphGetCBoxNative(glyph, bboxMode, (FTBBox*)pacbox); + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Glyph_To_Bitmap
+ ///
+ /// :
+ /// Convert a given glyph object to a bitmap glyph object.
+ ///
+ /// :
+ /// the_glyph ::
+ /// A pointer to a handle to the target glyph.
+ ///
+ /// :
+ /// render_mode ::
+ /// An enumeration that describes how the data is rendered.
+ /// origin ::
+ /// A pointer to a vector used to translate the glyph image before
+ /// rendering. Can be~0 (if no translation). The origin is expressed
+ /// in 26.6 pixels.
+ /// destroy ::
+ /// A boolean that indicates that the original glyph image should be
+ /// destroyed by this function. It is never destroyed in case of error.
+ ///
+ ///
+ /// The glyph image is translated with the `origin` vector before
+ /// rendering.
+ /// The first parameter is a pointer to an
+ /// _Glyph handle that will be
+ /// _replaced_ by this function (with newly allocated data). Typically,
+ /// you would do something like the following (omitting error handling).
+ /// ```
+ /// FT_Glyph glyph;
+ /// FT_BitmapGlyph glyph_bitmap;
+ /// // load glyph
+ /// error = FT_Load_Char( face, glyph_index, FT_LOAD_DEFAULT );
+ /// // extract glyph image
+ /// error = FT_Get_Glyph( face->glyph,
+ /// &glyph
+ /// );
+ /// // convert to a bitmap (default render mode + destroying old)
+ /// if ( glyph->format != FT_GLYPH_FORMAT_BITMAP )
+ /// {
+ /// error = FT_Glyph_To_Bitmap(
+ /// &glyph
+ /// , FT_RENDER_MODE_NORMAL,
+ /// 0, 1 );
+ /// if ( error ) // `glyph' unchanged
+ /// ...
+ /// }
+ /// // access bitmap content by typecasting
+ /// glyph_bitmap = (FT_BitmapGlyph)glyph;
+ /// // do funny stuff with it, like blitting/drawing
+ /// ...
+ /// // discard glyph image (bitmap or not)
+ /// FT_Done_Glyph( glyph );
+ /// ```
+ /// Here is another example, again without error handling.
+ /// ```
+ /// FT_Glyph glyphs[MAX_GLYPHS]
+ /// ...
+ /// for ( idx = 0; i
+ /// <
+ /// MAX_GLYPHS; i++ )
+ /// error = FT_Load_Glyph( face, idx, FT_LOAD_DEFAULT ) ||
+ /// FT_Get_Glyph ( face->glyph,
+ /// &glyphs
+ /// [idx] );
+ /// ...
+ /// for ( idx = 0; i
+ /// <
+ /// MAX_GLYPHS; i++ )
+ /// {
+ /// FT_Glyph bitmap = glyphs[idx];
+ /// ...
+ /// // after this call, `bitmap' no longer points into
+ /// // the `glyphs' array (and the old value isn't destroyed)
+ /// FT_Glyph_To_Bitmap(
+ /// &bitmap
+ /// , FT_RENDER_MODE_MONO, 0, 0 );
+ /// ...
+ /// FT_Done_Glyph( bitmap );
+ /// }
+ /// ...
+ /// for ( idx = 0; i
+ /// <
+ /// MAX_GLYPHS; i++ )
+ /// FT_Done_Glyph( glyphs[idx] );
+ /// ```
+ ///
+ [NativeName(NativeNameType.Func, "FT_Glyph_To_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Glyph_To_Bitmap")] + internal static extern int FTGlyphToBitmapNative([NativeName(NativeNameType.Param, "the_glyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* theGlyph, [NativeName(NativeNameType.Param, "render_mode")] [NativeName(NativeNameType.Type, "FT_Render_Mode")] FTRenderMode renderMode, [NativeName(NativeNameType.Param, "origin")] [NativeName(NativeNameType.Type, "const FT_Vector*")] FTVector* origin, [NativeName(NativeNameType.Param, "destroy")] [NativeName(NativeNameType.Type, "FT_Bool")] byte destroy); + + /// /// ************************************************************************
///
/// FT_Glyph_To_Bitmap
///
/// :
/// Convert a given glyph object to a bitmap glyph object.
///
/// :
/// the_glyph ::
/// A pointer to a handle to the target glyph.
///
/// :
/// render_mode ::
/// An enumeration that describes how the data is rendered.
/// origin ::
/// A pointer to a vector used to translate the glyph image before
/// rendering. Can be~0 (if no translation). The origin is expressed
/// in 26.6 pixels.
/// destroy ::
/// A boolean that indicates that the original glyph image should be
/// destroyed by this function. It is never destroyed in case of error.
///
///
/// The glyph image is translated with the `origin` vector before
/// rendering.
/// The first parameter is a pointer to an
/// _Glyph handle that will be
/// _replaced_ by this function (with newly allocated data). Typically,
/// you would do something like the following (omitting error handling).
/// ```
/// FT_Glyph glyph;
/// FT_BitmapGlyph glyph_bitmap;
/// // load glyph
/// error = FT_Load_Char( face, glyph_index, FT_LOAD_DEFAULT );
/// // extract glyph image
/// error = FT_Get_Glyph( face->glyph,
/// &glyph
/// );
/// // convert to a bitmap (default render mode + destroying old)
/// if ( glyph->format != FT_GLYPH_FORMAT_BITMAP )
/// {
/// error = FT_Glyph_To_Bitmap(
/// &glyph
/// , FT_RENDER_MODE_NORMAL,
/// 0, 1 );
/// if ( error ) // `glyph' unchanged
/// ...
/// }
/// // access bitmap content by typecasting
/// glyph_bitmap = (FT_BitmapGlyph)glyph;
/// // do funny stuff with it, like blitting/drawing
/// ...
/// // discard glyph image (bitmap or not)
/// FT_Done_Glyph( glyph );
/// ```
/// Here is another example, again without error handling.
/// ```
/// FT_Glyph glyphs[MAX_GLYPHS]
/// ...
/// for ( idx = 0; i
/// <
/// MAX_GLYPHS; i++ )
/// error = FT_Load_Glyph( face, idx, FT_LOAD_DEFAULT ) ||
/// FT_Get_Glyph ( face->glyph,
/// &glyphs
/// [idx] );
/// ...
/// for ( idx = 0; i
/// <
/// MAX_GLYPHS; i++ )
/// {
/// FT_Glyph bitmap = glyphs[idx];
/// ...
/// // after this call, `bitmap' no longer points into
/// // the `glyphs' array (and the old value isn't destroyed)
/// FT_Glyph_To_Bitmap(
/// &bitmap
/// , FT_RENDER_MODE_MONO, 0, 0 );
/// ...
/// FT_Done_Glyph( bitmap );
/// }
/// ...
/// for ( idx = 0; i
/// <
/// MAX_GLYPHS; i++ )
/// FT_Done_Glyph( glyphs[idx] );
/// ```
///
[NativeName(NativeNameType.Func, "FT_Glyph_To_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGlyphToBitmap([NativeName(NativeNameType.Param, "the_glyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* theGlyph, [NativeName(NativeNameType.Param, "render_mode")] [NativeName(NativeNameType.Type, "FT_Render_Mode")] FTRenderMode renderMode, [NativeName(NativeNameType.Param, "origin")] [NativeName(NativeNameType.Type, "const FT_Vector*")] FTVector* origin, [NativeName(NativeNameType.Param, "destroy")] [NativeName(NativeNameType.Type, "FT_Bool")] byte destroy) + { + int ret = FTGlyphToBitmapNative(theGlyph, renderMode, origin, destroy); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Glyph_To_Bitmap
///
/// :
/// Convert a given glyph object to a bitmap glyph object.
///
/// :
/// the_glyph ::
/// A pointer to a handle to the target glyph.
///
/// :
/// render_mode ::
/// An enumeration that describes how the data is rendered.
/// origin ::
/// A pointer to a vector used to translate the glyph image before
/// rendering. Can be~0 (if no translation). The origin is expressed
/// in 26.6 pixels.
/// destroy ::
/// A boolean that indicates that the original glyph image should be
/// destroyed by this function. It is never destroyed in case of error.
///
///
/// The glyph image is translated with the `origin` vector before
/// rendering.
/// The first parameter is a pointer to an
/// _Glyph handle that will be
/// _replaced_ by this function (with newly allocated data). Typically,
/// you would do something like the following (omitting error handling).
/// ```
/// FT_Glyph glyph;
/// FT_BitmapGlyph glyph_bitmap;
/// // load glyph
/// error = FT_Load_Char( face, glyph_index, FT_LOAD_DEFAULT );
/// // extract glyph image
/// error = FT_Get_Glyph( face->glyph,
/// &glyph
/// );
/// // convert to a bitmap (default render mode + destroying old)
/// if ( glyph->format != FT_GLYPH_FORMAT_BITMAP )
/// {
/// error = FT_Glyph_To_Bitmap(
/// &glyph
/// , FT_RENDER_MODE_NORMAL,
/// 0, 1 );
/// if ( error ) // `glyph' unchanged
/// ...
/// }
/// // access bitmap content by typecasting
/// glyph_bitmap = (FT_BitmapGlyph)glyph;
/// // do funny stuff with it, like blitting/drawing
/// ...
/// // discard glyph image (bitmap or not)
/// FT_Done_Glyph( glyph );
/// ```
/// Here is another example, again without error handling.
/// ```
/// FT_Glyph glyphs[MAX_GLYPHS]
/// ...
/// for ( idx = 0; i
/// <
/// MAX_GLYPHS; i++ )
/// error = FT_Load_Glyph( face, idx, FT_LOAD_DEFAULT ) ||
/// FT_Get_Glyph ( face->glyph,
/// &glyphs
/// [idx] );
/// ...
/// for ( idx = 0; i
/// <
/// MAX_GLYPHS; i++ )
/// {
/// FT_Glyph bitmap = glyphs[idx];
/// ...
/// // after this call, `bitmap' no longer points into
/// // the `glyphs' array (and the old value isn't destroyed)
/// FT_Glyph_To_Bitmap(
/// &bitmap
/// , FT_RENDER_MODE_MONO, 0, 0 );
/// ...
/// FT_Done_Glyph( bitmap );
/// }
/// ...
/// for ( idx = 0; i
/// <
/// MAX_GLYPHS; i++ )
/// FT_Done_Glyph( glyphs[idx] );
/// ```
///
[NativeName(NativeNameType.Func, "FT_Glyph_To_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGlyphToBitmap([NativeName(NativeNameType.Param, "the_glyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* theGlyph, [NativeName(NativeNameType.Param, "render_mode")] [NativeName(NativeNameType.Type, "FT_Render_Mode")] FTRenderMode renderMode, [NativeName(NativeNameType.Param, "origin")] [NativeName(NativeNameType.Type, "const FT_Vector*")] ref FTVector origin, [NativeName(NativeNameType.Param, "destroy")] [NativeName(NativeNameType.Type, "FT_Bool")] byte destroy) + { + fixed (FTVector* porigin = &origin) + { + int ret = FTGlyphToBitmapNative(theGlyph, renderMode, (FTVector*)porigin, destroy); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Done_Glyph
+ ///
+ /// :
+ /// Destroy a given glyph.
+ ///
+ /// :
+ /// glyph ::
+ /// A handle to the target glyph object. Can be `NULL`.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Done_Glyph")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Done_Glyph")] + internal static extern void FTDoneGlyphNative([NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph glyph); + + /// /// ************************************************************************
///
/// FT_Done_Glyph
///
/// :
/// Destroy a given glyph.
///
/// :
/// glyph ::
/// A handle to the target glyph object. Can be `NULL`.
///
[NativeName(NativeNameType.Func, "FT_Done_Glyph")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTDoneGlyph([NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "FT_Glyph")] FTGlyph glyph) + { + FTDoneGlyphNative(glyph); + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Matrix_Multiply
+ ///
+ /// :
+ /// Perform the matrix operation `b = a*b`.
+ ///
+ /// :
+ /// a ::
+ /// A pointer to matrix `a`.
+ ///
+ /// :
+ /// b ::
+ /// A pointer to matrix `b`.
+ ///
+ /// Since the function uses wrap-around arithmetic, results become
+ /// meaningless if the arguments are very large.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Matrix_Multiply")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Matrix_Multiply")] + internal static extern void FTMatrixMultiplyNative([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] FTMatrix* a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* b); + + /// /// ************************************************************************
///
/// FT_Matrix_Multiply
///
/// :
/// Perform the matrix operation `b = a*b`.
///
/// :
/// a ::
/// A pointer to matrix `a`.
///
/// :
/// b ::
/// A pointer to matrix `b`.
///
/// Since the function uses wrap-around arithmetic, results become
/// meaningless if the arguments are very large.
///
[NativeName(NativeNameType.Func, "FT_Matrix_Multiply")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTMatrixMultiply([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] FTMatrix* a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* b) + { + FTMatrixMultiplyNative(a, b); + } + + /// /// ************************************************************************
///
/// FT_Matrix_Multiply
///
/// :
/// Perform the matrix operation `b = a*b`.
///
/// :
/// a ::
/// A pointer to matrix `a`.
///
/// :
/// b ::
/// A pointer to matrix `b`.
///
/// Since the function uses wrap-around arithmetic, results become
/// meaningless if the arguments are very large.
///
[NativeName(NativeNameType.Func, "FT_Matrix_Multiply")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTMatrixMultiply([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] FTMatrix* a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "FT_Matrix*")] ref FTMatrix b) + { + fixed (FTMatrix* pb = &b) + { + FTMatrixMultiplyNative(a, (FTMatrix*)pb); + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Matrix_Invert
+ ///
+ /// :
+ /// Invert a 2x2 matrix. Return an error if it can't be inverted.
+ ///
+ /// :
+ /// matrix ::
+ /// A pointer to the target matrix. Remains untouched in case of error.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Matrix_Invert")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Matrix_Invert")] + internal static extern int FTMatrixInvertNative([NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* matrix); + + /// /// ************************************************************************
///
/// FT_Matrix_Invert
///
/// :
/// Invert a 2x2 matrix. Return an error if it can't be inverted.
///
/// :
/// matrix ::
/// A pointer to the target matrix. Remains untouched in case of error.
///
///
[NativeName(NativeNameType.Func, "FT_Matrix_Invert")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTMatrixInvert([NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "FT_Matrix*")] FTMatrix* matrix) + { + int ret = FTMatrixInvertNative(matrix); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Decompose
+ ///
+ /// :
+ /// Walk over an outline's structure to decompose it into individual
+ /// segments and Bezier arcs. This function also emits 'move to'
+ /// operations to indicate the start of new contours in the outline.
+ ///
+ /// :
+ /// outline ::
+ /// A pointer to the source target.
+ /// func_interface ::
+ /// A table of 'emitters', i.e., function pointers called during
+ /// decomposition to indicate path operations.
+ ///
+ /// :
+ /// user ::
+ /// A typeless pointer that is passed to each emitter during the
+ /// decomposition. It can be used to store the state during the
+ /// decomposition.
+ ///
+ ///
+ /// Similarly, the function returns success for an empty outline also
+ /// (doing nothing, that is, not calling any emitter); if necessary, you
+ /// should filter this out, too.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Decompose")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Decompose")] + internal static extern int FTOutlineDecomposeNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "func_interface")] [NativeName(NativeNameType.Type, "const FT_Outline_Funcs*")] FTOutlineFuncs* funcInterface, [NativeName(NativeNameType.Param, "user")] [NativeName(NativeNameType.Type, "void*")] void* user); + + /// /// ************************************************************************
///
/// FT_Outline_Decompose
///
/// :
/// Walk over an outline's structure to decompose it into individual
/// segments and Bezier arcs. This function also emits 'move to'
/// operations to indicate the start of new contours in the outline.
///
/// :
/// outline ::
/// A pointer to the source target.
/// func_interface ::
/// A table of 'emitters', i.e., function pointers called during
/// decomposition to indicate path operations.
///
/// :
/// user ::
/// A typeless pointer that is passed to each emitter during the
/// decomposition. It can be used to store the state during the
/// decomposition.
///
///
/// Similarly, the function returns success for an empty outline also
/// (doing nothing, that is, not calling any emitter); if necessary, you
/// should filter this out, too.
///
[NativeName(NativeNameType.Func, "FT_Outline_Decompose")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineDecompose([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "func_interface")] [NativeName(NativeNameType.Type, "const FT_Outline_Funcs*")] FTOutlineFuncs* funcInterface, [NativeName(NativeNameType.Param, "user")] [NativeName(NativeNameType.Type, "void*")] void* user) + { + int ret = FTOutlineDecomposeNative(outline, funcInterface, user); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Outline_Decompose
///
/// :
/// Walk over an outline's structure to decompose it into individual
/// segments and Bezier arcs. This function also emits 'move to'
/// operations to indicate the start of new contours in the outline.
///
/// :
/// outline ::
/// A pointer to the source target.
/// func_interface ::
/// A table of 'emitters', i.e., function pointers called during
/// decomposition to indicate path operations.
///
/// :
/// user ::
/// A typeless pointer that is passed to each emitter during the
/// decomposition. It can be used to store the state during the
/// decomposition.
///
///
/// Similarly, the function returns success for an empty outline also
/// (doing nothing, that is, not calling any emitter); if necessary, you
/// should filter this out, too.
///
[NativeName(NativeNameType.Func, "FT_Outline_Decompose")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineDecompose([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "func_interface")] [NativeName(NativeNameType.Type, "const FT_Outline_Funcs*")] ref FTOutlineFuncs funcInterface, [NativeName(NativeNameType.Param, "user")] [NativeName(NativeNameType.Type, "void*")] void* user) + { + fixed (FTOutlineFuncs* pfuncInterface = &funcInterface) + { + int ret = FTOutlineDecomposeNative(outline, (FTOutlineFuncs*)pfuncInterface, user); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_New
+ ///
+ /// :
+ /// Create a new outline of a given size.
+ ///
+ /// :
+ /// library ::
+ /// A handle to the library object from where the outline is allocated.
+ /// Note however that the new outline will **not** necessarily be
+ /// **freed**, when destroying the library, by
+ /// _Done_FreeType.
+ /// numPoints ::
+ /// The maximum number of points within the outline. Must be smaller
+ /// than or equal to 0xFFFF (65535).
+ /// numContours ::
+ /// The maximum number of contours within the outline. This value must
+ /// be in the range 0 to `numPoints`.
+ ///
+ /// :
+ /// anoutline ::
+ /// A handle to the new outline.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_New")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_New")] + internal static extern int FTOutlineNewNative([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "numPoints")] [NativeName(NativeNameType.Type, "FT_UInt")] uint numPoints, [NativeName(NativeNameType.Param, "numContours")] [NativeName(NativeNameType.Type, "FT_Int")] int numContours, [NativeName(NativeNameType.Param, "anoutline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* anoutline); + + /// /// ************************************************************************
///
/// FT_Outline_New
///
/// :
/// Create a new outline of a given size.
///
/// :
/// library ::
/// A handle to the library object from where the outline is allocated.
/// Note however that the new outline will **not** necessarily be
/// **freed**, when destroying the library, by
/// _Done_FreeType.
/// numPoints ::
/// The maximum number of points within the outline. Must be smaller
/// than or equal to 0xFFFF (65535).
/// numContours ::
/// The maximum number of contours within the outline. This value must
/// be in the range 0 to `numPoints`.
///
/// :
/// anoutline ::
/// A handle to the new outline.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_New")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineNew([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "numPoints")] [NativeName(NativeNameType.Type, "FT_UInt")] uint numPoints, [NativeName(NativeNameType.Param, "numContours")] [NativeName(NativeNameType.Type, "FT_Int")] int numContours, [NativeName(NativeNameType.Param, "anoutline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* anoutline) + { + int ret = FTOutlineNewNative(library, numPoints, numContours, anoutline); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Outline_New
///
/// :
/// Create a new outline of a given size.
///
/// :
/// library ::
/// A handle to the library object from where the outline is allocated.
/// Note however that the new outline will **not** necessarily be
/// **freed**, when destroying the library, by
/// _Done_FreeType.
/// numPoints ::
/// The maximum number of points within the outline. Must be smaller
/// than or equal to 0xFFFF (65535).
/// numContours ::
/// The maximum number of contours within the outline. This value must
/// be in the range 0 to `numPoints`.
///
/// :
/// anoutline ::
/// A handle to the new outline.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_New")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineNew([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "numPoints")] [NativeName(NativeNameType.Type, "FT_UInt")] uint numPoints, [NativeName(NativeNameType.Param, "numContours")] [NativeName(NativeNameType.Type, "FT_Int")] int numContours, [NativeName(NativeNameType.Param, "anoutline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline anoutline) + { + fixed (FTOutline* panoutline = &anoutline) + { + int ret = FTOutlineNewNative(library, numPoints, numContours, (FTOutline*)panoutline); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Done
+ ///
+ /// :
+ /// Destroy an outline created with
+ /// _Outline_New.
+ ///
+ /// :
+ /// library ::
+ /// A handle of the library object used to allocate the outline.
+ /// outline ::
+ /// A pointer to the outline object to be discarded.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Done")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Done")] + internal static extern int FTOutlineDoneNative([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline); + + /// /// ************************************************************************
///
/// FT_Outline_Done
///
/// :
/// Destroy an outline created with
/// _Outline_New.
///
/// :
/// library ::
/// A handle of the library object used to allocate the outline.
/// outline ::
/// A pointer to the outline object to be discarded.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Done")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineDone([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline) + { + int ret = FTOutlineDoneNative(library, outline); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Outline_Done
///
/// :
/// Destroy an outline created with
/// _Outline_New.
///
/// :
/// library ::
/// A handle of the library object used to allocate the outline.
/// outline ::
/// A pointer to the outline object to be discarded.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Done")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineDone([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline) + { + fixed (FTOutline* poutline = &outline) + { + int ret = FTOutlineDoneNative(library, (FTOutline*)poutline); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Check
+ ///
+ /// :
+ /// Check the contents of an outline descriptor.
+ ///
+ /// :
+ /// outline ::
+ /// A handle to a source outline.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Check")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Check")] + internal static extern int FTOutlineCheckNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline); + + /// /// ************************************************************************
///
/// FT_Outline_Check
///
/// :
/// Check the contents of an outline descriptor.
///
/// :
/// outline ::
/// A handle to a source outline.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Check")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineCheck([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline) + { + int ret = FTOutlineCheckNative(outline); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Get_CBox
+ ///
+ /// :
+ /// Return an outline's 'control box'. The control box encloses all the
+ /// outline's points, including Bezier control points. Though it
+ /// coincides with the exact bounding box for most glyphs, it can be
+ /// slightly larger in some situations (like when rotating an outline that
+ /// contains Bezier outside arcs).
+ /// Computing the control box is very fast, while getting the bounding box
+ /// can take much more time as it needs to walk over all segments and arcs
+ /// in the outline. To get the latter, you can use the 'ftbbox'
+ /// component, which is dedicated to this single task.
+ ///
+ /// :
+ /// outline ::
+ /// A pointer to the source outline descriptor.
+ ///
+ /// :
+ /// acbox ::
+ /// The outline's control box.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Get_CBox")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Get_CBox")] + internal static extern void FTOutlineGetCBoxNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "const FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "acbox")] [NativeName(NativeNameType.Type, "FT_BBox*")] FTBBox* acbox); + + /// /// ************************************************************************
///
/// FT_Outline_Get_CBox
///
/// :
/// Return an outline's 'control box'. The control box encloses all the
/// outline's points, including Bezier control points. Though it
/// coincides with the exact bounding box for most glyphs, it can be
/// slightly larger in some situations (like when rotating an outline that
/// contains Bezier outside arcs).
/// Computing the control box is very fast, while getting the bounding box
/// can take much more time as it needs to walk over all segments and arcs
/// in the outline. To get the latter, you can use the 'ftbbox'
/// component, which is dedicated to this single task.
///
/// :
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// acbox ::
/// The outline's control box.
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_CBox")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTOutlineGetCBox([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "const FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "acbox")] [NativeName(NativeNameType.Type, "FT_BBox*")] FTBBox* acbox) + { + FTOutlineGetCBoxNative(outline, acbox); + } + + /// /// ************************************************************************
///
/// FT_Outline_Get_CBox
///
/// :
/// Return an outline's 'control box'. The control box encloses all the
/// outline's points, including Bezier control points. Though it
/// coincides with the exact bounding box for most glyphs, it can be
/// slightly larger in some situations (like when rotating an outline that
/// contains Bezier outside arcs).
/// Computing the control box is very fast, while getting the bounding box
/// can take much more time as it needs to walk over all segments and arcs
/// in the outline. To get the latter, you can use the 'ftbbox'
/// component, which is dedicated to this single task.
///
/// :
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// acbox ::
/// The outline's control box.
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_CBox")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTOutlineGetCBox([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "const FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "acbox")] [NativeName(NativeNameType.Type, "FT_BBox*")] ref FTBBox acbox) + { + fixed (FTBBox* pacbox = &acbox) + { + FTOutlineGetCBoxNative(outline, (FTBBox*)pacbox); + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Translate
+ ///
+ /// :
+ /// Apply a simple translation to the points of an outline.
+ ///
+ /// :
+ /// outline ::
+ /// A pointer to the target outline descriptor.
+ ///
+ /// :
+ /// xOffset ::
+ /// The horizontal offset.
+ /// yOffset ::
+ /// The vertical offset.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Translate")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Translate")] + internal static extern void FTOutlineTranslateNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "const FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "xOffset")] [NativeName(NativeNameType.Type, "FT_Pos")] int xOffset, [NativeName(NativeNameType.Param, "yOffset")] [NativeName(NativeNameType.Type, "FT_Pos")] int yOffset); + + /// /// ************************************************************************
///
/// FT_Outline_Translate
///
/// :
/// Apply a simple translation to the points of an outline.
///
/// :
/// outline ::
/// A pointer to the target outline descriptor.
///
/// :
/// xOffset ::
/// The horizontal offset.
/// yOffset ::
/// The vertical offset.
///
[NativeName(NativeNameType.Func, "FT_Outline_Translate")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTOutlineTranslate([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "const FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "xOffset")] [NativeName(NativeNameType.Type, "FT_Pos")] int xOffset, [NativeName(NativeNameType.Param, "yOffset")] [NativeName(NativeNameType.Type, "FT_Pos")] int yOffset) + { + FTOutlineTranslateNative(outline, xOffset, yOffset); + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Copy
+ ///
+ /// :
+ /// Copy an outline into another one. Both objects must have the same
+ /// sizes (number of points
+ /// &
+ /// number of contours) when this function is
+ /// called.
+ ///
+ /// :
+ /// source ::
+ /// A handle to the source outline.
+ ///
+ /// :
+ /// target ::
+ /// A handle to the target outline.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Copy")] + internal static extern int FTOutlineCopyNative([NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Outline*")] FTOutline* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* target); + + /// /// ************************************************************************
///
/// FT_Outline_Copy
///
/// :
/// Copy an outline into another one. Both objects must have the same
/// sizes (number of points
/// &
/// number of contours) when this function is
/// called.
///
/// :
/// source ::
/// A handle to the source outline.
///
/// :
/// target ::
/// A handle to the target outline.
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineCopy([NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Outline*")] FTOutline* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* target) + { + int ret = FTOutlineCopyNative(source, target); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Outline_Copy
///
/// :
/// Copy an outline into another one. Both objects must have the same
/// sizes (number of points
/// &
/// number of contours) when this function is
/// called.
///
/// :
/// source ::
/// A handle to the source outline.
///
/// :
/// target ::
/// A handle to the target outline.
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineCopy([NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Outline*")] FTOutline* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline target) + { + fixed (FTOutline* ptarget = &target) + { + int ret = FTOutlineCopyNative(source, (FTOutline*)ptarget); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Transform
+ ///
+ /// :
+ /// Apply a simple 2x2 matrix to all of an outline's points. Useful for
+ /// applying rotations, slanting, flipping, etc.
+ ///
+ /// :
+ /// outline ::
+ /// A pointer to the target outline descriptor.
+ ///
+ /// :
+ /// matrix ::
+ /// A pointer to the transformation matrix.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Transform")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Transform")] + internal static extern void FTOutlineTransformNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "const FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] FTMatrix* matrix); + + /// /// ************************************************************************
///
/// FT_Outline_Transform
///
/// :
/// Apply a simple 2x2 matrix to all of an outline's points. Useful for
/// applying rotations, slanting, flipping, etc.
///
/// :
/// outline ::
/// A pointer to the target outline descriptor.
///
/// :
/// matrix ::
/// A pointer to the transformation matrix.
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Transform")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTOutlineTransform([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "const FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] FTMatrix* matrix) + { + FTOutlineTransformNative(outline, matrix); + } + + /// /// ************************************************************************
///
/// FT_Outline_Transform
///
/// :
/// Apply a simple 2x2 matrix to all of an outline's points. Useful for
/// applying rotations, slanting, flipping, etc.
///
/// :
/// outline ::
/// A pointer to the target outline descriptor.
///
/// :
/// matrix ::
/// A pointer to the transformation matrix.
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Transform")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTOutlineTransform([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "const FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "matrix")] [NativeName(NativeNameType.Type, "const FT_Matrix*")] ref FTMatrix matrix) + { + fixed (FTMatrix* pmatrix = &matrix) + { + FTOutlineTransformNative(outline, (FTMatrix*)pmatrix); + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Embolden
+ ///
+ /// :
+ /// Embolden an outline. The new outline will be at most 4~times
+ /// `strength` pixels wider and higher. You may think of the left and
+ /// bottom borders as unchanged.
+ /// Negative `strength` values to reduce the outline thickness are
+ /// possible also.
+ ///
+ /// :
+ /// outline ::
+ /// A handle to the target outline.
+ ///
+ /// :
+ /// strength ::
+ /// How strong the glyph is emboldened. Expressed in 26.6 pixel format.
+ ///
+ ///
+ /// If you need 'better' metrics values you should call
+ ///
+ /// _Outline_Get_CBox or
+ /// _Outline_Get_BBox.
+ /// To get meaningful results, font scaling values must be set with
+ /// functions like
+ /// _Set_Char_Size before calling FT_Render_Glyph.
+ ///
+ /// ```
+ /// FT_Load_Glyph( face, index, FT_LOAD_DEFAULT );
+ /// if ( face->glyph->format == FT_GLYPH_FORMAT_OUTLINE )
+ /// FT_Outline_Embolden(
+ /// &face
+ /// ->glyph->outline, strength );
+ /// ```
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Embolden")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Embolden")] + internal static extern int FTOutlineEmboldenNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "strength")] [NativeName(NativeNameType.Type, "FT_Pos")] int strength); + + /// /// ************************************************************************
///
/// FT_Outline_Embolden
///
/// :
/// Embolden an outline. The new outline will be at most 4~times
/// `strength` pixels wider and higher. You may think of the left and
/// bottom borders as unchanged.
/// Negative `strength` values to reduce the outline thickness are
/// possible also.
///
/// :
/// outline ::
/// A handle to the target outline.
///
/// :
/// strength ::
/// How strong the glyph is emboldened. Expressed in 26.6 pixel format.
///
///
/// If you need 'better' metrics values you should call
///
/// _Outline_Get_CBox or
/// _Outline_Get_BBox.
/// To get meaningful results, font scaling values must be set with
/// functions like
/// _Set_Char_Size before calling FT_Render_Glyph.
///
/// ```
/// FT_Load_Glyph( face, index, FT_LOAD_DEFAULT );
/// if ( face->glyph->format == FT_GLYPH_FORMAT_OUTLINE )
/// FT_Outline_Embolden(
/// &face
/// ->glyph->outline, strength );
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Embolden")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineEmbolden([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "strength")] [NativeName(NativeNameType.Type, "FT_Pos")] int strength) + { + int ret = FTOutlineEmboldenNative(outline, strength); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_EmboldenXY
+ ///
+ /// :
+ /// Embolden an outline. The new outline will be `xstrength` pixels wider
+ /// and `ystrength` pixels higher. Otherwise, it is similar to
+ ///
+ /// _Outline_Embolden, which uses the same strength in both directions.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_EmboldenXY")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_EmboldenXY")] + internal static extern int FTOutlineEmboldenXYNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "xstrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int xstrength, [NativeName(NativeNameType.Param, "ystrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int ystrength); + + /// /// ************************************************************************
///
/// FT_Outline_EmboldenXY
///
/// :
/// Embolden an outline. The new outline will be `xstrength` pixels wider
/// and `ystrength` pixels higher. Otherwise, it is similar to
///
/// _Outline_Embolden, which uses the same strength in both directions.
///
///
[NativeName(NativeNameType.Func, "FT_Outline_EmboldenXY")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineEmboldenXY([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "xstrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int xstrength, [NativeName(NativeNameType.Param, "ystrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int ystrength) + { + int ret = FTOutlineEmboldenXYNative(outline, xstrength, ystrength); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Reverse
+ ///
+ /// :
+ /// Reverse the drawing direction of an outline. This is used to ensure
+ /// consistent fill conventions for mirrored glyphs.
+ ///
+ /// :
+ /// outline ::
+ /// A pointer to the target outline descriptor.
+ ///
+ /// It shouldn't be used by a normal client application, unless it knows
+ /// what it is doing.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Reverse")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Reverse")] + internal static extern void FTOutlineReverseNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline); + + /// /// ************************************************************************
///
/// FT_Outline_Reverse
///
/// :
/// Reverse the drawing direction of an outline. This is used to ensure
/// consistent fill conventions for mirrored glyphs.
///
/// :
/// outline ::
/// A pointer to the target outline descriptor.
///
/// It shouldn't be used by a normal client application, unless it knows
/// what it is doing.
///
[NativeName(NativeNameType.Func, "FT_Outline_Reverse")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTOutlineReverse([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline) + { + FTOutlineReverseNative(outline); + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Get_Bitmap
+ ///
+ /// :
+ /// Render an outline within a bitmap. The outline's image is simply
+ /// OR-ed to the target bitmap.
+ ///
+ /// :
+ /// library ::
+ /// A handle to a FreeType library object.
+ /// outline ::
+ /// A pointer to the source outline descriptor.
+ ///
+ /// :
+ /// abitmap ::
+ /// A pointer to the target bitmap descriptor.
+ ///
+ ///
+ /// It will use the raster corresponding to the default glyph format.
+ /// The value of the `num_grays` field in `abitmap` is ignored. If you
+ /// select the gray-level rasterizer, and you want less than 256 gray
+ /// levels, you have to use
+ /// _Outline_Render directly.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Get_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Get_Bitmap")] + internal static extern int FTOutlineGetBitmapNative([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* abitmap); + + /// /// ************************************************************************
///
/// FT_Outline_Get_Bitmap
///
/// :
/// Render an outline within a bitmap. The outline's image is simply
/// OR-ed to the target bitmap.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// abitmap ::
/// A pointer to the target bitmap descriptor.
///
///
/// It will use the raster corresponding to the default glyph format.
/// The value of the `num_grays` field in `abitmap` is ignored. If you
/// select the gray-level rasterizer, and you want less than 256 gray
/// levels, you have to use
/// _Outline_Render directly.
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineGetBitmap([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* abitmap) + { + int ret = FTOutlineGetBitmapNative(library, outline, abitmap); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Outline_Get_Bitmap
///
/// :
/// Render an outline within a bitmap. The outline's image is simply
/// OR-ed to the target bitmap.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// abitmap ::
/// A pointer to the target bitmap descriptor.
///
///
/// It will use the raster corresponding to the default glyph format.
/// The value of the `num_grays` field in `abitmap` is ignored. If you
/// select the gray-level rasterizer, and you want less than 256 gray
/// levels, you have to use
/// _Outline_Render directly.
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineGetBitmap([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline, [NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* abitmap) + { + fixed (FTOutline* poutline = &outline) + { + int ret = FTOutlineGetBitmapNative(library, (FTOutline*)poutline, abitmap); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Outline_Get_Bitmap
///
/// :
/// Render an outline within a bitmap. The outline's image is simply
/// OR-ed to the target bitmap.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// abitmap ::
/// A pointer to the target bitmap descriptor.
///
///
/// It will use the raster corresponding to the default glyph format.
/// The value of the `num_grays` field in `abitmap` is ignored. If you
/// select the gray-level rasterizer, and you want less than 256 gray
/// levels, you have to use
/// _Outline_Render directly.
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineGetBitmap([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap abitmap) + { + fixed (FTBitmap* pabitmap = &abitmap) + { + int ret = FTOutlineGetBitmapNative(library, outline, (FTBitmap*)pabitmap); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Outline_Get_Bitmap
///
/// :
/// Render an outline within a bitmap. The outline's image is simply
/// OR-ed to the target bitmap.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// abitmap ::
/// A pointer to the target bitmap descriptor.
///
///
/// It will use the raster corresponding to the default glyph format.
/// The value of the `num_grays` field in `abitmap` is ignored. If you
/// select the gray-level rasterizer, and you want less than 256 gray
/// levels, you have to use
/// _Outline_Render directly.
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineGetBitmap([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline, [NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap abitmap) + { + fixed (FTOutline* poutline = &outline) + { + fixed (FTBitmap* pabitmap = &abitmap) + { + int ret = FTOutlineGetBitmapNative(library, (FTOutline*)poutline, (FTBitmap*)pabitmap); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Render
+ ///
+ /// :
+ /// Render an outline within a bitmap using the current scan-convert.
+ ///
+ /// :
+ /// library ::
+ /// A handle to a FreeType library object.
+ /// outline ::
+ /// A pointer to the source outline descriptor.
+ ///
+ /// :
+ /// params ::
+ /// A pointer to an
+ /// _Raster_Params structure used to describe the
+ /// rendering operation.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Render")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Render")] + internal static extern int FTOutlineRenderNative([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "FT_Raster_Params*")] FTRasterParams* @params); + + /// /// ************************************************************************
///
/// FT_Outline_Render
///
/// :
/// Render an outline within a bitmap using the current scan-convert.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// params ::
/// A pointer to an
/// _Raster_Params structure used to describe the
/// rendering operation.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Render")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineRender([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "FT_Raster_Params*")] FTRasterParams* @params) + { + int ret = FTOutlineRenderNative(library, outline, @params); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Outline_Render
///
/// :
/// Render an outline within a bitmap using the current scan-convert.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// params ::
/// A pointer to an
/// _Raster_Params structure used to describe the
/// rendering operation.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Render")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineRender([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "FT_Raster_Params*")] FTRasterParams* @params) + { + fixed (FTOutline* poutline = &outline) + { + int ret = FTOutlineRenderNative(library, (FTOutline*)poutline, @params); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Outline_Render
///
/// :
/// Render an outline within a bitmap using the current scan-convert.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// params ::
/// A pointer to an
/// _Raster_Params structure used to describe the
/// rendering operation.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Render")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineRender([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "FT_Raster_Params*")] ref FTRasterParams @params) + { + fixed (FTRasterParams* pparams = &@params) + { + int ret = FTOutlineRenderNative(library, outline, (FTRasterParams*)pparams); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Outline_Render
///
/// :
/// Render an outline within a bitmap using the current scan-convert.
///
/// :
/// library ::
/// A handle to a FreeType library object.
/// outline ::
/// A pointer to the source outline descriptor.
///
/// :
/// params ::
/// A pointer to an
/// _Raster_Params structure used to describe the
/// rendering operation.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Render")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineRender([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "FT_Raster_Params*")] ref FTRasterParams @params) + { + fixed (FTOutline* poutline = &outline) + { + fixed (FTRasterParams* pparams = &@params) + { + int ret = FTOutlineRenderNative(library, (FTOutline*)poutline, (FTRasterParams*)pparams); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Get_Orientation
+ ///
+ /// :
+ /// This function analyzes a glyph outline and tries to compute its fill
+ /// orientation (see
+ /// _Orientation). This is done by integrating the
+ /// total area covered by the outline. The positive integral corresponds
+ /// to the clockwise orientation and
+ /// _ORIENTATION_POSTSCRIPT is
+ /// returned. The negative integral corresponds to the counter-clockwise
+ /// orientation and
+ /// _ORIENTATION_TRUETYPE is returned.
+ /// Note that this will return
+ /// _ORIENTATION_TRUETYPE for empty
+ /// outlines.
+ ///
+ /// :
+ /// outline ::
+ /// A handle to the source outline.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Get_Orientation")] + [return: NativeName(NativeNameType.Type, "FT_Orientation")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Get_Orientation")] + internal static extern FTOrientation FTOutlineGetOrientationNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline); + + /// /// ************************************************************************
///
/// FT_Outline_Get_Orientation
///
/// :
/// This function analyzes a glyph outline and tries to compute its fill
/// orientation (see
/// _Orientation). This is done by integrating the
/// total area covered by the outline. The positive integral corresponds
/// to the clockwise orientation and
/// _ORIENTATION_POSTSCRIPT is
/// returned. The negative integral corresponds to the counter-clockwise
/// orientation and
/// _ORIENTATION_TRUETYPE is returned.
/// Note that this will return
/// _ORIENTATION_TRUETYPE for empty
/// outlines.
///
/// :
/// outline ::
/// A handle to the source outline.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_Orientation")] + [return: NativeName(NativeNameType.Type, "FT_Orientation")] + public static FTOrientation FTOutlineGetOrientation([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline) + { + FTOrientation ret = FTOutlineGetOrientationNative(outline); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Palette_Data_Get
+ ///
+ /// :
+ /// Retrieve the face's color palette data.
+ ///
+ /// :
+ /// face ::
+ /// The source face handle.
+ ///
+ /// :
+ /// apalette ::
+ /// A pointer to an
+ /// _Palette_Data structure.
+ ///
+ ///
+ /// This function always returns an error if the config macro
+ /// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Palette_Data_Get")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Palette_Data_Get")] + internal static extern int FTPaletteDataGetNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "apalette")] [NativeName(NativeNameType.Type, "FT_Palette_Data*")] FTPaletteData* apalette); + + /// /// ************************************************************************
///
/// FT_Palette_Data_Get
///
/// :
/// Retrieve the face's color palette data.
///
/// :
/// face ::
/// The source face handle.
///
/// :
/// apalette ::
/// A pointer to an
/// _Palette_Data structure.
///
///
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Palette_Data_Get")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTPaletteDataGet([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "apalette")] [NativeName(NativeNameType.Type, "FT_Palette_Data*")] FTPaletteData* apalette) + { + int ret = FTPaletteDataGetNative(face, apalette); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Palette_Data_Get
///
/// :
/// Retrieve the face's color palette data.
///
/// :
/// face ::
/// The source face handle.
///
/// :
/// apalette ::
/// A pointer to an
/// _Palette_Data structure.
///
///
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Palette_Data_Get")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTPaletteDataGet([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "apalette")] [NativeName(NativeNameType.Type, "FT_Palette_Data*")] ref FTPaletteData apalette) + { + fixed (FTPaletteData* papalette = &apalette) + { + int ret = FTPaletteDataGetNative(face, (FTPaletteData*)papalette); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Palette_Select
+ ///
+ /// :
+ /// This function has two purposes.
+ /// (1) It activates a palette for rendering color glyphs, and
+ /// (2) it retrieves all (unmodified) color entries of this palette. This
+ /// function returns a read-write array, which means that a calling
+ /// application can modify the palette entries on demand.
+ /// A corollary of (2) is that calling the function, then modifying some
+ /// values, then calling the function again with the same arguments resets
+ /// all color entries to the original 'CPAL' values; all user modifications
+ /// are lost.
+ ///
+ /// :
+ /// face ::
+ /// The source face handle.
+ /// palette_index ::
+ /// The palette index.
+ ///
+ /// :
+ /// apalette ::
+ /// An array of color entries for a palette with index `palette_index`,
+ /// having `num_palette_entries` elements (as found in the
+ /// `FT_Palette_Data` structure). If `apalette` is set to `NULL`, no
+ /// array gets returned (and no color entries can be modified).
+ /// In case the font doesn't support color palettes, `NULL` is returned.
+ ///
+ ///
+ /// This function always returns an error if the config macro
+ /// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Palette_Select")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Palette_Select")] + internal static extern int FTPaletteSelectNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "palette_index")] [NativeName(NativeNameType.Type, "FT_UShort")] ushort paletteIndex, [NativeName(NativeNameType.Param, "apalette")] [NativeName(NativeNameType.Type, "FT_Color**")] FTColor** apalette); + + /// /// ************************************************************************
///
/// FT_Palette_Select
///
/// :
/// This function has two purposes.
/// (1) It activates a palette for rendering color glyphs, and
/// (2) it retrieves all (unmodified) color entries of this palette. This
/// function returns a read-write array, which means that a calling
/// application can modify the palette entries on demand.
/// A corollary of (2) is that calling the function, then modifying some
/// values, then calling the function again with the same arguments resets
/// all color entries to the original 'CPAL' values; all user modifications
/// are lost.
///
/// :
/// face ::
/// The source face handle.
/// palette_index ::
/// The palette index.
///
/// :
/// apalette ::
/// An array of color entries for a palette with index `palette_index`,
/// having `num_palette_entries` elements (as found in the
/// `FT_Palette_Data` structure). If `apalette` is set to `NULL`, no
/// array gets returned (and no color entries can be modified).
/// In case the font doesn't support color palettes, `NULL` is returned.
///
///
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Palette_Select")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTPaletteSelect([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "palette_index")] [NativeName(NativeNameType.Type, "FT_UShort")] ushort paletteIndex, [NativeName(NativeNameType.Param, "apalette")] [NativeName(NativeNameType.Type, "FT_Color**")] FTColor** apalette) + { + int ret = FTPaletteSelectNative(face, paletteIndex, apalette); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Palette_Select
///
/// :
/// This function has two purposes.
/// (1) It activates a palette for rendering color glyphs, and
/// (2) it retrieves all (unmodified) color entries of this palette. This
/// function returns a read-write array, which means that a calling
/// application can modify the palette entries on demand.
/// A corollary of (2) is that calling the function, then modifying some
/// values, then calling the function again with the same arguments resets
/// all color entries to the original 'CPAL' values; all user modifications
/// are lost.
///
/// :
/// face ::
/// The source face handle.
/// palette_index ::
/// The palette index.
///
/// :
/// apalette ::
/// An array of color entries for a palette with index `palette_index`,
/// having `num_palette_entries` elements (as found in the
/// `FT_Palette_Data` structure). If `apalette` is set to `NULL`, no
/// array gets returned (and no color entries can be modified).
/// In case the font doesn't support color palettes, `NULL` is returned.
///
///
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Palette_Select")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTPaletteSelect([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "palette_index")] [NativeName(NativeNameType.Type, "FT_UShort")] ushort paletteIndex, [NativeName(NativeNameType.Param, "apalette")] [NativeName(NativeNameType.Type, "FT_Color**")] ref FTColor* apalette) + { + fixed (FTColor** papalette = &apalette) + { + int ret = FTPaletteSelectNative(face, paletteIndex, (FTColor**)papalette); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Palette_Set_Foreground_Color
+ ///
+ /// :
+ /// 'COLR' uses palette index 0xFFFF to indicate a 'text foreground
+ /// color'. This function sets this value.
+ ///
+ /// :
+ /// face ::
+ /// The source face handle.
+ /// foreground_color ::
+ /// An `FT_Color` structure to define the text foreground color.
+ ///
+ ///
+ /// This function always returns an error if the config macro
+ /// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Palette_Set_Foreground_Color")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Palette_Set_Foreground_Color")] + internal static extern int FTPaletteSetForegroundColorNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "foreground_color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor foregroundColor); + + /// /// ************************************************************************
///
/// FT_Palette_Set_Foreground_Color
///
/// :
/// 'COLR' uses palette index 0xFFFF to indicate a 'text foreground
/// color'. This function sets this value.
///
/// :
/// face ::
/// The source face handle.
/// foreground_color ::
/// An `FT_Color` structure to define the text foreground color.
///
///
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_COLOR_LAYERS` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Palette_Set_Foreground_Color")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTPaletteSetForegroundColor([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "foreground_color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor foregroundColor) + { + int ret = FTPaletteSetForegroundColorNative(face, foregroundColor); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_Color_Glyph_Layer
+ ///
+ /// :
+ /// This is an interface to the 'COLR' table in OpenType fonts to
+ /// iteratively retrieve the colored glyph layers associated with the
+ /// current glyph slot.
+ /// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
+ /// The glyph layer data for a given glyph index, if present, provides an
+ /// alternative, multi-color glyph representation: Instead of rendering
+ /// the outline or bitmap with the given glyph index, glyphs with the
+ /// indices and colors returned by this function are rendered layer by
+ /// layer.
+ /// The returned elements are ordered in the z~direction from bottom to
+ /// top; the 'n'th element should be rendered with the associated palette
+ /// color and blended on top of the already rendered layers (elements 0,
+ /// 1, ..., n-1).
+ ///
+ /// :
+ /// face ::
+ /// A handle to the parent face object.
+ /// base_glyph ::
+ /// The glyph index the colored glyph layers are associated with.
+ ///
+ /// :
+ /// iterator ::
+ /// An
+ /// _LayerIterator object. For the first call you should set
+ /// `iterator->p` to `NULL`. For all following calls, simply use the
+ /// same object again.
+ ///
+ /// :
+ /// aglyph_index ::
+ /// The glyph index of the current layer.
+ /// acolor_index ::
+ /// The color index into the font face's color palette of the current
+ /// layer. The value 0xFFFF is special; it doesn't reference a palette
+ /// entry but indicates that the text foreground color should be used
+ /// instead (to be set up by the application outside of FreeType).
+ /// The color palette can be retrieved with
+ /// _Palette_Select.
+ ///
+ ///
+ /// Note that
+ /// _Render_Glyph is able to handle colored glyph layers
+ /// automatically if the
+ /// _LOAD_COLOR flag is passed to a previous call
+ /// to
+ /// _Load_Glyph. [This is an experimental feature.]
+ ///
+ /// ```
+ /// FT_Color* palette;
+ /// FT_LayerIterator iterator;
+ /// FT_Bool have_layers;
+ /// FT_UInt layer_glyph_index;
+ /// FT_UInt layer_color_index;
+ /// error = FT_Palette_Select( face, palette_index,
+ /// &palette
+ /// );
+ /// if ( error )
+ /// palette = NULL;
+ /// iterator.p = NULL;
+ /// have_layers = FT_Get_Color_Glyph_Layer( face,
+ /// glyph_index,
+ ///
+ /// &layer
+ /// _glyph_index,
+ ///
+ /// &layer
+ /// _color_index,
+ ///
+ /// &iterator
+ /// );
+ /// if ( palette
+ /// &
+ /// &
+ /// have_layers )
+ /// {
+ /// do
+ /// {
+ /// FT_Color layer_color;
+ /// if ( layer_color_index == 0xFFFF )
+ /// layer_color = text_foreground_color;
+ /// else
+ /// layer_color = palette[layer_color_index];
+ /// // Load and render glyph `layer_glyph_index', then
+ /// // blend resulting pixmap (using color `layer_color')
+ /// // with previously created pixmaps.
+ /// } while ( FT_Get_Color_Glyph_Layer( face,
+ /// glyph_index,
+ ///
+ /// &layer
+ /// _glyph_index,
+ ///
+ /// &layer
+ /// _color_index,
+ ///
+ /// &iterator
+ /// ) );
+ /// }
+ /// ```
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_Color_Glyph_Layer")] + internal static extern byte FTGetColorGlyphLayerNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator); + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphLayer([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator) + { + byte ret = FTGetColorGlyphLayerNative(face, baseGlyph, aglyphIndex, acolorIndex, iterator); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphLayer([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator) + { + fixed (uint* paglyphIndex = &aglyphIndex) + { + byte ret = FTGetColorGlyphLayerNative(face, baseGlyph, (uint*)paglyphIndex, acolorIndex, iterator); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphLayer([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator) + { + fixed (uint* pacolorIndex = &acolorIndex) + { + byte ret = FTGetColorGlyphLayerNative(face, baseGlyph, aglyphIndex, (uint*)pacolorIndex, iterator); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphLayer([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator) + { + fixed (uint* paglyphIndex = &aglyphIndex) + { + fixed (uint* pacolorIndex = &acolorIndex) + { + byte ret = FTGetColorGlyphLayerNative(face, baseGlyph, (uint*)paglyphIndex, (uint*)pacolorIndex, iterator); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphLayer([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator) + { + fixed (FTLayerIterator* piterator = &iterator) + { + byte ret = FTGetColorGlyphLayerNative(face, baseGlyph, aglyphIndex, acolorIndex, (FTLayerIterator*)piterator); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphLayer([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator) + { + fixed (uint* paglyphIndex = &aglyphIndex) + { + fixed (FTLayerIterator* piterator = &iterator) + { + byte ret = FTGetColorGlyphLayerNative(face, baseGlyph, (uint*)paglyphIndex, acolorIndex, (FTLayerIterator*)piterator); + return ret; + } + } + } } } diff --git a/Hexa.NET.FreeType/Generated/Functions.002.cs b/Hexa.NET.FreeType/Generated/Functions.002.cs new file mode 100644 index 0000000..df68475 --- /dev/null +++ b/Hexa.NET.FreeType/Generated/Functions.002.cs @@ -0,0 +1,2159 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.FreeType +{ + public unsafe partial class FreeType + { + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphLayer([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator) + { + fixed (uint* pacolorIndex = &acolorIndex) + { + fixed (FTLayerIterator* piterator = &iterator) + { + byte ret = FTGetColorGlyphLayerNative(face, baseGlyph, aglyphIndex, (uint*)pacolorIndex, (FTLayerIterator*)piterator); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Layer
///
/// :
/// This is an interface to the 'COLR' table in OpenType fonts to
/// iteratively retrieve the colored glyph layers associated with the
/// current glyph slot.
/// https://docs.microsoft.com/en-us/typography/opentype/spec/colr
/// The glyph layer data for a given glyph index, if present, provides an
/// alternative, multi-color glyph representation: Instead of rendering
/// the outline or bitmap with the given glyph index, glyphs with the
/// indices and colors returned by this function are rendered layer by
/// layer.
/// The returned elements are ordered in the z~direction from bottom to
/// top; the 'n'th element should be rendered with the associated palette
/// color and blended on top of the already rendered layers (elements 0,
/// 1, ..., n-1).
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index the colored glyph layers are associated with.
///
/// :
/// iterator ::
/// An
/// _LayerIterator object. For the first call you should set
/// `iterator->p` to `NULL`. For all following calls, simply use the
/// same object again.
///
/// :
/// aglyph_index ::
/// The glyph index of the current layer.
/// acolor_index ::
/// The color index into the font face's color palette of the current
/// layer. The value 0xFFFF is special; it doesn't reference a palette
/// entry but indicates that the text foreground color should be used
/// instead (to be set up by the application outside of FreeType).
/// The color palette can be retrieved with
/// _Palette_Select.
///
///
/// Note that
/// _Render_Glyph is able to handle colored glyph layers
/// automatically if the
/// _LOAD_COLOR flag is passed to a previous call
/// to
/// _Load_Glyph. [This is an experimental feature.]
///
/// ```
/// FT_Color* palette;
/// FT_LayerIterator iterator;
/// FT_Bool have_layers;
/// FT_UInt layer_glyph_index;
/// FT_UInt layer_color_index;
/// error = FT_Palette_Select( face, palette_index,
/// &palette
/// );
/// if ( error )
/// palette = NULL;
/// iterator.p = NULL;
/// have_layers = FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// );
/// if ( palette
/// &
/// &
/// have_layers )
/// {
/// do
/// {
/// FT_Color layer_color;
/// if ( layer_color_index == 0xFFFF )
/// layer_color = text_foreground_color;
/// else
/// layer_color = palette[layer_color_index];
/// // Load and render glyph `layer_glyph_index', then
/// // blend resulting pixmap (using color `layer_color')
/// // with previously created pixmaps.
/// } while ( FT_Get_Color_Glyph_Layer( face,
/// glyph_index,
///
/// &layer
/// _glyph_index,
///
/// &layer
/// _color_index,
///
/// &iterator
/// ) );
/// }
/// ```
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Layer")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphLayer([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "aglyph_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint aglyphIndex, [NativeName(NativeNameType.Param, "acolor_index")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint acolorIndex, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator) + { + fixed (uint* paglyphIndex = &aglyphIndex) + { + fixed (uint* pacolorIndex = &acolorIndex) + { + fixed (FTLayerIterator* piterator = &iterator) + { + byte ret = FTGetColorGlyphLayerNative(face, baseGlyph, (uint*)paglyphIndex, (uint*)pacolorIndex, (FTLayerIterator*)piterator); + return ret; + } + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_Color_Glyph_Paint
+ ///
+ /// :
+ /// This is the starting point and interface to color gradient
+ /// information in a 'COLR' v1 table in OpenType fonts to recursively
+ /// retrieve the paint tables for the directed acyclic graph of a colored
+ /// glyph, given a glyph ID.
+ /// https://github.com/googlefonts/colr-gradients-spec
+ /// In a 'COLR' v1 font, each color glyph defines a directed acyclic
+ /// graph of nested paint tables, such as `PaintGlyph`, `PaintSolid`,
+ /// `PaintLinearGradient`, `PaintRadialGradient`, and so on. Using this
+ /// function and specifying a glyph ID, one retrieves the root paint
+ /// table for this glyph ID.
+ /// This function allows control whether an initial root transform is
+ /// returned to configure scaling, transform, and translation correctly
+ /// on the client's graphics context. The initial root transform is
+ /// computed and returned according to the values configured for
+ /// _Size
+ /// and
+ /// _Set_Transform on the
+ /// _Face object, see below for details
+ /// of the `root_transform` parameter. This has implications for a
+ /// client 'COLR' v1 implementation: When this function returns an
+ /// initially computed root transform, at the time of executing the
+ ///
+ /// _PaintGlyph operation, the contours should be retrieved using
+ ///
+ /// _Load_Glyph at unscaled, untransformed size. This is because the
+ /// root transform applied to the graphics context will take care of
+ /// correct scaling.
+ /// Alternatively, to allow hinting of contours, at the time of executing
+ ///
+ /// _Load_Glyph, the current graphics context transformation matrix
+ /// can be decomposed into a scaling matrix and a remainder, and
+ ///
+ /// _Load_Glyph can be used to retrieve the contours at scaled size.
+ /// Care must then be taken to blit or clip to the graphics context with
+ /// taking this remainder transformation into account.
+ ///
+ /// :
+ /// face ::
+ /// A handle to the parent face object.
+ /// base_glyph ::
+ /// The glyph index for which to retrieve the root paint table.
+ /// root_transform ::
+ /// Specifies whether an initially computed root is returned by the
+ ///
+ /// _PaintTransform operation to account for the activated size
+ /// (see
+ /// _Activate_Size) and the configured transform and translate
+ /// (see
+ /// _Set_Transform).
+ /// This root transform is returned before nodes of the glyph graph of
+ /// the font are returned. Subsequent
+ /// _COLR_Paint structures
+ /// contain unscaled and untransformed values. The inserted root
+ /// transform enables the client application to apply an initial
+ /// transform to its graphics context. When executing subsequent
+ /// FT_COLR_Paint operations, values from
+ /// _COLR_Paint operations
+ /// will ultimately be correctly scaled because of the root transform
+ /// applied to the graphics context. Use
+ ///
+ /// _COLOR_INCLUDE_ROOT_TRANSFORM to include the root transform, use
+ ///
+ /// _COLOR_NO_ROOT_TRANSFORM to not include it. The latter may be
+ /// useful when traversing the 'COLR' v1 glyph graph and reaching a
+ ///
+ /// _PaintColrGlyph. When recursing into
+ /// _PaintColrGlyph and
+ /// painting that inline, no additional root transform is needed as it
+ /// has already been applied to the graphics context at the beginning
+ /// of drawing this glyph.
+ ///
+ /// :
+ /// paint ::
+ /// The
+ /// _OpaquePaint object that references the actual paint table.
+ /// The respective actual
+ /// _COLR_Paint object is retrieved via
+ ///
+ /// _Get_Paint.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Paint")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_Color_Glyph_Paint")] + internal static extern byte FTGetColorGlyphPaintNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "root_transform")] [NativeName(NativeNameType.Type, "FT_Color_Root_Transform")] FTColorRootTransform rootTransform, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] FTOpaquePaint* paint); + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Paint
///
/// :
/// This is the starting point and interface to color gradient
/// information in a 'COLR' v1 table in OpenType fonts to recursively
/// retrieve the paint tables for the directed acyclic graph of a colored
/// glyph, given a glyph ID.
/// https://github.com/googlefonts/colr-gradients-spec
/// In a 'COLR' v1 font, each color glyph defines a directed acyclic
/// graph of nested paint tables, such as `PaintGlyph`, `PaintSolid`,
/// `PaintLinearGradient`, `PaintRadialGradient`, and so on. Using this
/// function and specifying a glyph ID, one retrieves the root paint
/// table for this glyph ID.
/// This function allows control whether an initial root transform is
/// returned to configure scaling, transform, and translation correctly
/// on the client's graphics context. The initial root transform is
/// computed and returned according to the values configured for
/// _Size
/// and
/// _Set_Transform on the
/// _Face object, see below for details
/// of the `root_transform` parameter. This has implications for a
/// client 'COLR' v1 implementation: When this function returns an
/// initially computed root transform, at the time of executing the
///
/// _PaintGlyph operation, the contours should be retrieved using
///
/// _Load_Glyph at unscaled, untransformed size. This is because the
/// root transform applied to the graphics context will take care of
/// correct scaling.
/// Alternatively, to allow hinting of contours, at the time of executing
///
/// _Load_Glyph, the current graphics context transformation matrix
/// can be decomposed into a scaling matrix and a remainder, and
///
/// _Load_Glyph can be used to retrieve the contours at scaled size.
/// Care must then be taken to blit or clip to the graphics context with
/// taking this remainder transformation into account.
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index for which to retrieve the root paint table.
/// root_transform ::
/// Specifies whether an initially computed root is returned by the
///
/// _PaintTransform operation to account for the activated size
/// (see
/// _Activate_Size) and the configured transform and translate
/// (see
/// _Set_Transform).
/// This root transform is returned before nodes of the glyph graph of
/// the font are returned. Subsequent
/// _COLR_Paint structures
/// contain unscaled and untransformed values. The inserted root
/// transform enables the client application to apply an initial
/// transform to its graphics context. When executing subsequent
/// FT_COLR_Paint operations, values from
/// _COLR_Paint operations
/// will ultimately be correctly scaled because of the root transform
/// applied to the graphics context. Use
///
/// _COLOR_INCLUDE_ROOT_TRANSFORM to include the root transform, use
///
/// _COLOR_NO_ROOT_TRANSFORM to not include it. The latter may be
/// useful when traversing the 'COLR' v1 glyph graph and reaching a
///
/// _PaintColrGlyph. When recursing into
/// _PaintColrGlyph and
/// painting that inline, no additional root transform is needed as it
/// has already been applied to the graphics context at the beginning
/// of drawing this glyph.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Paint")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphPaint([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "root_transform")] [NativeName(NativeNameType.Type, "FT_Color_Root_Transform")] FTColorRootTransform rootTransform, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] FTOpaquePaint* paint) + { + byte ret = FTGetColorGlyphPaintNative(face, baseGlyph, rootTransform, paint); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_Paint
///
/// :
/// This is the starting point and interface to color gradient
/// information in a 'COLR' v1 table in OpenType fonts to recursively
/// retrieve the paint tables for the directed acyclic graph of a colored
/// glyph, given a glyph ID.
/// https://github.com/googlefonts/colr-gradients-spec
/// In a 'COLR' v1 font, each color glyph defines a directed acyclic
/// graph of nested paint tables, such as `PaintGlyph`, `PaintSolid`,
/// `PaintLinearGradient`, `PaintRadialGradient`, and so on. Using this
/// function and specifying a glyph ID, one retrieves the root paint
/// table for this glyph ID.
/// This function allows control whether an initial root transform is
/// returned to configure scaling, transform, and translation correctly
/// on the client's graphics context. The initial root transform is
/// computed and returned according to the values configured for
/// _Size
/// and
/// _Set_Transform on the
/// _Face object, see below for details
/// of the `root_transform` parameter. This has implications for a
/// client 'COLR' v1 implementation: When this function returns an
/// initially computed root transform, at the time of executing the
///
/// _PaintGlyph operation, the contours should be retrieved using
///
/// _Load_Glyph at unscaled, untransformed size. This is because the
/// root transform applied to the graphics context will take care of
/// correct scaling.
/// Alternatively, to allow hinting of contours, at the time of executing
///
/// _Load_Glyph, the current graphics context transformation matrix
/// can be decomposed into a scaling matrix and a remainder, and
///
/// _Load_Glyph can be used to retrieve the contours at scaled size.
/// Care must then be taken to blit or clip to the graphics context with
/// taking this remainder transformation into account.
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index for which to retrieve the root paint table.
/// root_transform ::
/// Specifies whether an initially computed root is returned by the
///
/// _PaintTransform operation to account for the activated size
/// (see
/// _Activate_Size) and the configured transform and translate
/// (see
/// _Set_Transform).
/// This root transform is returned before nodes of the glyph graph of
/// the font are returned. Subsequent
/// _COLR_Paint structures
/// contain unscaled and untransformed values. The inserted root
/// transform enables the client application to apply an initial
/// transform to its graphics context. When executing subsequent
/// FT_COLR_Paint operations, values from
/// _COLR_Paint operations
/// will ultimately be correctly scaled because of the root transform
/// applied to the graphics context. Use
///
/// _COLOR_INCLUDE_ROOT_TRANSFORM to include the root transform, use
///
/// _COLOR_NO_ROOT_TRANSFORM to not include it. The latter may be
/// useful when traversing the 'COLR' v1 glyph graph and reaching a
///
/// _PaintColrGlyph. When recursing into
/// _PaintColrGlyph and
/// painting that inline, no additional root transform is needed as it
/// has already been applied to the graphics context at the beginning
/// of drawing this glyph.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_Paint")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphPaint([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "root_transform")] [NativeName(NativeNameType.Type, "FT_Color_Root_Transform")] FTColorRootTransform rootTransform, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] ref FTOpaquePaint paint) + { + fixed (FTOpaquePaint* ppaint = &paint) + { + byte ret = FTGetColorGlyphPaintNative(face, baseGlyph, rootTransform, (FTOpaquePaint*)ppaint); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_Color_Glyph_ClipBox
+ ///
+ /// :
+ /// Search for a 'COLR' v1 clip box for the specified `base_glyph` and
+ /// fill the `clip_box` parameter with the 'COLR' v1 'ClipBox' information
+ /// if one is found.
+ ///
+ /// :
+ /// face ::
+ /// A handle to the parent face object.
+ /// base_glyph ::
+ /// The glyph index for which to retrieve the clip box.
+ ///
+ /// :
+ /// clip_box ::
+ /// The clip box for the requested `base_glyph` if one is found. The
+ /// clip box is computed taking scale and transformations configured on
+ /// the
+ /// _Face into account.
+ /// _ClipBox contains
+ /// _Vector values
+ /// in 26.6 format.
+ ///
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_ClipBox")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_Color_Glyph_ClipBox")] + internal static extern byte FTGetColorGlyphClipBoxNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "clip_box")] [NativeName(NativeNameType.Type, "FT_ClipBox*")] FTClipBox* clipBox); + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_ClipBox
///
/// :
/// Search for a 'COLR' v1 clip box for the specified `base_glyph` and
/// fill the `clip_box` parameter with the 'COLR' v1 'ClipBox' information
/// if one is found.
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index for which to retrieve the clip box.
///
/// :
/// clip_box ::
/// The clip box for the requested `base_glyph` if one is found. The
/// clip box is computed taking scale and transformations configured on
/// the
/// _Face into account.
/// _ClipBox contains
/// _Vector values
/// in 26.6 format.
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_ClipBox")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphClipBox([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "clip_box")] [NativeName(NativeNameType.Type, "FT_ClipBox*")] FTClipBox* clipBox) + { + byte ret = FTGetColorGlyphClipBoxNative(face, baseGlyph, clipBox); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Color_Glyph_ClipBox
///
/// :
/// Search for a 'COLR' v1 clip box for the specified `base_glyph` and
/// fill the `clip_box` parameter with the 'COLR' v1 'ClipBox' information
/// if one is found.
///
/// :
/// face ::
/// A handle to the parent face object.
/// base_glyph ::
/// The glyph index for which to retrieve the clip box.
///
/// :
/// clip_box ::
/// The clip box for the requested `base_glyph` if one is found. The
/// clip box is computed taking scale and transformations configured on
/// the
/// _Face into account.
/// _ClipBox contains
/// _Vector values
/// in 26.6 format.
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Color_Glyph_ClipBox")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorGlyphClipBox([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "base_glyph")] [NativeName(NativeNameType.Type, "FT_UInt")] uint baseGlyph, [NativeName(NativeNameType.Param, "clip_box")] [NativeName(NativeNameType.Type, "FT_ClipBox*")] ref FTClipBox clipBox) + { + fixed (FTClipBox* pclipBox = &clipBox) + { + byte ret = FTGetColorGlyphClipBoxNative(face, baseGlyph, (FTClipBox*)pclipBox); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_Paint_Layers
+ ///
+ /// :
+ /// Access the layers of a `PaintColrLayers` table.
+ /// If the root paint of a color glyph, or a nested paint of a 'COLR'
+ /// glyph is a `PaintColrLayers` table, this function retrieves the
+ /// layers of the `PaintColrLayers` table.
+ /// The
+ /// _PaintColrLayers object contains an
+ /// _LayerIterator, which
+ /// is used here to iterate over the layers. Each layer is returned as
+ /// an
+ /// _OpaquePaint object, which then can be used with
+ /// _Get_Paint
+ /// to retrieve the actual paint object.
+ ///
+ /// :
+ /// face ::
+ /// A handle to the parent face object.
+ ///
+ /// :
+ /// iterator ::
+ /// The
+ /// _LayerIterator from an
+ /// _PaintColrLayers object, for which
+ /// the layers are to be retrieved. The internal state of the iterator
+ /// is incremented after one call to this function for retrieving one
+ /// layer.
+ ///
+ /// :
+ /// paint ::
+ /// The
+ /// _OpaquePaint object that references the actual paint table.
+ /// The respective actual
+ /// _COLR_Paint object is retrieved via
+ ///
+ /// _Get_Paint.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_Paint_Layers")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_Paint_Layers")] + internal static extern byte FTGetPaintLayersNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] FTOpaquePaint* paint); + + /// /// ************************************************************************
///
/// FT_Get_Paint_Layers
///
/// :
/// Access the layers of a `PaintColrLayers` table.
/// If the root paint of a color glyph, or a nested paint of a 'COLR'
/// glyph is a `PaintColrLayers` table, this function retrieves the
/// layers of the `PaintColrLayers` table.
/// The
/// _PaintColrLayers object contains an
/// _LayerIterator, which
/// is used here to iterate over the layers. Each layer is returned as
/// an
/// _OpaquePaint object, which then can be used with
/// _Get_Paint
/// to retrieve the actual paint object.
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The
/// _LayerIterator from an
/// _PaintColrLayers object, for which
/// the layers are to be retrieved. The internal state of the iterator
/// is incremented after one call to this function for retrieving one
/// layer.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint_Layers")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetPaintLayers([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] FTOpaquePaint* paint) + { + byte ret = FTGetPaintLayersNative(face, iterator, paint); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Paint_Layers
///
/// :
/// Access the layers of a `PaintColrLayers` table.
/// If the root paint of a color glyph, or a nested paint of a 'COLR'
/// glyph is a `PaintColrLayers` table, this function retrieves the
/// layers of the `PaintColrLayers` table.
/// The
/// _PaintColrLayers object contains an
/// _LayerIterator, which
/// is used here to iterate over the layers. Each layer is returned as
/// an
/// _OpaquePaint object, which then can be used with
/// _Get_Paint
/// to retrieve the actual paint object.
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The
/// _LayerIterator from an
/// _PaintColrLayers object, for which
/// the layers are to be retrieved. The internal state of the iterator
/// is incremented after one call to this function for retrieving one
/// layer.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint_Layers")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetPaintLayers([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] FTOpaquePaint* paint) + { + fixed (FTLayerIterator* piterator = &iterator) + { + byte ret = FTGetPaintLayersNative(face, (FTLayerIterator*)piterator, paint); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_Paint_Layers
///
/// :
/// Access the layers of a `PaintColrLayers` table.
/// If the root paint of a color glyph, or a nested paint of a 'COLR'
/// glyph is a `PaintColrLayers` table, this function retrieves the
/// layers of the `PaintColrLayers` table.
/// The
/// _PaintColrLayers object contains an
/// _LayerIterator, which
/// is used here to iterate over the layers. Each layer is returned as
/// an
/// _OpaquePaint object, which then can be used with
/// _Get_Paint
/// to retrieve the actual paint object.
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The
/// _LayerIterator from an
/// _PaintColrLayers object, for which
/// the layers are to be retrieved. The internal state of the iterator
/// is incremented after one call to this function for retrieving one
/// layer.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint_Layers")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetPaintLayers([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] FTLayerIterator* iterator, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] ref FTOpaquePaint paint) + { + fixed (FTOpaquePaint* ppaint = &paint) + { + byte ret = FTGetPaintLayersNative(face, iterator, (FTOpaquePaint*)ppaint); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_Paint_Layers
///
/// :
/// Access the layers of a `PaintColrLayers` table.
/// If the root paint of a color glyph, or a nested paint of a 'COLR'
/// glyph is a `PaintColrLayers` table, this function retrieves the
/// layers of the `PaintColrLayers` table.
/// The
/// _PaintColrLayers object contains an
/// _LayerIterator, which
/// is used here to iterate over the layers. Each layer is returned as
/// an
/// _OpaquePaint object, which then can be used with
/// _Get_Paint
/// to retrieve the actual paint object.
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The
/// _LayerIterator from an
/// _PaintColrLayers object, for which
/// the layers are to be retrieved. The internal state of the iterator
/// is incremented after one call to this function for retrieving one
/// layer.
///
/// :
/// paint ::
/// The
/// _OpaquePaint object that references the actual paint table.
/// The respective actual
/// _COLR_Paint object is retrieved via
///
/// _Get_Paint.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint_Layers")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetPaintLayers([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_LayerIterator*")] ref FTLayerIterator iterator, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint*")] ref FTOpaquePaint paint) + { + fixed (FTLayerIterator* piterator = &iterator) + { + fixed (FTOpaquePaint* ppaint = &paint) + { + byte ret = FTGetPaintLayersNative(face, (FTLayerIterator*)piterator, (FTOpaquePaint*)ppaint); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_Colorline_Stops
+ ///
+ /// :
+ /// This is an interface to color gradient information in a 'COLR' v1
+ /// table in OpenType fonts to iteratively retrieve the gradient and
+ /// solid fill information for colored glyph layers for a specified glyph
+ /// ID.
+ /// https://github.com/googlefonts/colr-gradients-spec
+ ///
+ /// :
+ /// face ::
+ /// A handle to the parent face object.
+ ///
+ /// :
+ /// iterator ::
+ /// The retrieved
+ /// _ColorStopIterator, configured on an
+ /// _ColorLine,
+ /// which in turn got retrieved via paint information in
+ ///
+ /// _PaintLinearGradient or
+ /// _PaintRadialGradient.
+ ///
+ /// :
+ /// color_stop ::
+ /// Color index and alpha value for the retrieved color stop.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_Colorline_Stops")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_Colorline_Stops")] + internal static extern byte FTGetColorlineStopsNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "color_stop")] [NativeName(NativeNameType.Type, "FT_ColorStop*")] FTColorStop* colorStop, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_ColorStopIterator*")] FTColorStopIterator* iterator); + + /// /// ************************************************************************
///
/// FT_Get_Colorline_Stops
///
/// :
/// This is an interface to color gradient information in a 'COLR' v1
/// table in OpenType fonts to iteratively retrieve the gradient and
/// solid fill information for colored glyph layers for a specified glyph
/// ID.
/// https://github.com/googlefonts/colr-gradients-spec
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The retrieved
/// _ColorStopIterator, configured on an
/// _ColorLine,
/// which in turn got retrieved via paint information in
///
/// _PaintLinearGradient or
/// _PaintRadialGradient.
///
/// :
/// color_stop ::
/// Color index and alpha value for the retrieved color stop.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Colorline_Stops")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorlineStops([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "color_stop")] [NativeName(NativeNameType.Type, "FT_ColorStop*")] FTColorStop* colorStop, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_ColorStopIterator*")] FTColorStopIterator* iterator) + { + byte ret = FTGetColorlineStopsNative(face, colorStop, iterator); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Colorline_Stops
///
/// :
/// This is an interface to color gradient information in a 'COLR' v1
/// table in OpenType fonts to iteratively retrieve the gradient and
/// solid fill information for colored glyph layers for a specified glyph
/// ID.
/// https://github.com/googlefonts/colr-gradients-spec
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The retrieved
/// _ColorStopIterator, configured on an
/// _ColorLine,
/// which in turn got retrieved via paint information in
///
/// _PaintLinearGradient or
/// _PaintRadialGradient.
///
/// :
/// color_stop ::
/// Color index and alpha value for the retrieved color stop.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Colorline_Stops")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorlineStops([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "color_stop")] [NativeName(NativeNameType.Type, "FT_ColorStop*")] ref FTColorStop colorStop, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_ColorStopIterator*")] FTColorStopIterator* iterator) + { + fixed (FTColorStop* pcolorStop = &colorStop) + { + byte ret = FTGetColorlineStopsNative(face, (FTColorStop*)pcolorStop, iterator); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_Colorline_Stops
///
/// :
/// This is an interface to color gradient information in a 'COLR' v1
/// table in OpenType fonts to iteratively retrieve the gradient and
/// solid fill information for colored glyph layers for a specified glyph
/// ID.
/// https://github.com/googlefonts/colr-gradients-spec
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The retrieved
/// _ColorStopIterator, configured on an
/// _ColorLine,
/// which in turn got retrieved via paint information in
///
/// _PaintLinearGradient or
/// _PaintRadialGradient.
///
/// :
/// color_stop ::
/// Color index and alpha value for the retrieved color stop.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Colorline_Stops")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorlineStops([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "color_stop")] [NativeName(NativeNameType.Type, "FT_ColorStop*")] FTColorStop* colorStop, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_ColorStopIterator*")] ref FTColorStopIterator iterator) + { + fixed (FTColorStopIterator* piterator = &iterator) + { + byte ret = FTGetColorlineStopsNative(face, colorStop, (FTColorStopIterator*)piterator); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Get_Colorline_Stops
///
/// :
/// This is an interface to color gradient information in a 'COLR' v1
/// table in OpenType fonts to iteratively retrieve the gradient and
/// solid fill information for colored glyph layers for a specified glyph
/// ID.
/// https://github.com/googlefonts/colr-gradients-spec
///
/// :
/// face ::
/// A handle to the parent face object.
///
/// :
/// iterator ::
/// The retrieved
/// _ColorStopIterator, configured on an
/// _ColorLine,
/// which in turn got retrieved via paint information in
///
/// _PaintLinearGradient or
/// _PaintRadialGradient.
///
/// :
/// color_stop ::
/// Color index and alpha value for the retrieved color stop.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Colorline_Stops")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetColorlineStops([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "color_stop")] [NativeName(NativeNameType.Type, "FT_ColorStop*")] ref FTColorStop colorStop, [NativeName(NativeNameType.Param, "iterator")] [NativeName(NativeNameType.Type, "FT_ColorStopIterator*")] ref FTColorStopIterator iterator) + { + fixed (FTColorStop* pcolorStop = &colorStop) + { + fixed (FTColorStopIterator* piterator = &iterator) + { + byte ret = FTGetColorlineStopsNative(face, (FTColorStop*)pcolorStop, (FTColorStopIterator*)piterator); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_Paint
+ ///
+ /// :
+ /// Access the details of a paint using an
+ /// _OpaquePaint opaque paint
+ /// object, which internally stores the offset to the respective `Paint`
+ /// object in the 'COLR' table.
+ ///
+ /// :
+ /// face ::
+ /// A handle to the parent face object.
+ /// opaque_paint ::
+ /// The opaque paint object for which the underlying
+ /// _COLR_Paint
+ /// data is to be retrieved.
+ ///
+ /// :
+ /// paint ::
+ /// The specific
+ /// _COLR_Paint object containing information coming
+ /// from one of the font's `Paint*` tables.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_Paint")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_Paint")] + internal static extern byte FTGetPaintNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "opaque_paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint")] FTOpaquePaint opaquePaint, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_COLR_Paint*")] FTCOLRPaint* paint); + + /// /// ************************************************************************
///
/// FT_Get_Paint
///
/// :
/// Access the details of a paint using an
/// _OpaquePaint opaque paint
/// object, which internally stores the offset to the respective `Paint`
/// object in the 'COLR' table.
///
/// :
/// face ::
/// A handle to the parent face object.
/// opaque_paint ::
/// The opaque paint object for which the underlying
/// _COLR_Paint
/// data is to be retrieved.
///
/// :
/// paint ::
/// The specific
/// _COLR_Paint object containing information coming
/// from one of the font's `Paint*` tables.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetPaint([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "opaque_paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint")] FTOpaquePaint opaquePaint, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_COLR_Paint*")] FTCOLRPaint* paint) + { + byte ret = FTGetPaintNative(face, opaquePaint, paint); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Paint
///
/// :
/// Access the details of a paint using an
/// _OpaquePaint opaque paint
/// object, which internally stores the offset to the respective `Paint`
/// object in the 'COLR' table.
///
/// :
/// face ::
/// A handle to the parent face object.
/// opaque_paint ::
/// The opaque paint object for which the underlying
/// _COLR_Paint
/// data is to be retrieved.
///
/// :
/// paint ::
/// The specific
/// _COLR_Paint object containing information coming
/// from one of the font's `Paint*` tables.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Paint")] + [return: NativeName(NativeNameType.Type, "FT_Bool")] + public static byte FTGetPaint([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "opaque_paint")] [NativeName(NativeNameType.Type, "FT_OpaquePaint")] FTOpaquePaint opaquePaint, [NativeName(NativeNameType.Param, "paint")] [NativeName(NativeNameType.Type, "FT_COLR_Paint*")] ref FTCOLRPaint paint) + { + fixed (FTCOLRPaint* ppaint = &paint) + { + byte ret = FTGetPaintNative(face, opaquePaint, (FTCOLRPaint*)ppaint); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Bitmap_Init
+ ///
+ /// :
+ /// Initialize a pointer to an
+ /// _Bitmap structure.
+ ///
+ /// :
+ /// abitmap ::
+ /// A pointer to the bitmap structure.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Bitmap_Init")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Bitmap_Init")] + internal static extern void FTBitmapInitNative([NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* abitmap); + + /// /// ************************************************************************
///
/// FT_Bitmap_Init
///
/// :
/// Initialize a pointer to an
/// _Bitmap structure.
///
/// :
/// abitmap ::
/// A pointer to the bitmap structure.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Init")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTBitmapInit([NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* abitmap) + { + FTBitmapInitNative(abitmap); + } + + /// + /// deprecated
+ ///
+ [NativeName(NativeNameType.Func, "FT_Bitmap_New")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Bitmap_New")] + internal static extern void FTBitmapNewNative([NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* abitmap); + + /// /// deprecated
///
[NativeName(NativeNameType.Func, "FT_Bitmap_New")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTBitmapNew([NativeName(NativeNameType.Param, "abitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* abitmap) + { + FTBitmapNewNative(abitmap); + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Bitmap_Copy
+ ///
+ /// :
+ /// Copy a bitmap into another one.
+ ///
+ /// :
+ /// library ::
+ /// A handle to a library object.
+ /// source ::
+ /// A handle to the source bitmap.
+ ///
+ /// :
+ /// target ::
+ /// A handle to the target bitmap.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Bitmap_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Bitmap_Copy")] + internal static extern int FTBitmapCopyNative([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target); + + /// /// ************************************************************************
///
/// FT_Bitmap_Copy
///
/// :
/// Copy a bitmap into another one.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// A handle to the source bitmap.
///
/// :
/// target ::
/// A handle to the target bitmap.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapCopy([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target) + { + int ret = FTBitmapCopyNative(library, source, target); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Copy
///
/// :
/// Copy a bitmap into another one.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// A handle to the source bitmap.
///
/// :
/// target ::
/// A handle to the target bitmap.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapCopy([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target) + { + fixed (FTBitmap* psource = &source) + { + int ret = FTBitmapCopyNative(library, (FTBitmap*)psource, target); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Copy
///
/// :
/// Copy a bitmap into another one.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// A handle to the source bitmap.
///
/// :
/// target ::
/// A handle to the target bitmap.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapCopy([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FTBitmapCopyNative(library, source, (FTBitmap*)ptarget); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Copy
///
/// :
/// Copy a bitmap into another one.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// A handle to the source bitmap.
///
/// :
/// target ::
/// A handle to the target bitmap.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Copy")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapCopy([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target) + { + fixed (FTBitmap* psource = &source) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FTBitmapCopyNative(library, (FTBitmap*)psource, (FTBitmap*)ptarget); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Bitmap_Embolden
+ ///
+ /// :
+ /// Embolden a bitmap. The new bitmap will be about `xStrength` pixels
+ /// wider and `yStrength` pixels higher. The left and bottom borders are
+ /// kept unchanged.
+ ///
+ /// :
+ /// library ::
+ /// A handle to a library object.
+ /// xStrength ::
+ /// How strong the glyph is emboldened horizontally. Expressed in 26.6
+ /// pixel format.
+ /// yStrength ::
+ /// How strong the glyph is emboldened vertically. Expressed in 26.6
+ /// pixel format.
+ ///
+ /// :
+ /// bitmap ::
+ /// A handle to the target bitmap.
+ ///
+ ///
+ /// If you want to embolden the bitmap owned by a
+ /// _GlyphSlotRec, you
+ /// should call
+ /// _GlyphSlot_Own_Bitmap on the slot first.
+ /// Bitmaps in
+ /// _PIXEL_MODE_GRAY2 and
+ /// _PIXEL_MODE_GRAY
+ /// @
+ /// format are
+ /// converted to
+ /// _PIXEL_MODE_GRAY format (i.e., 8bpp).
+ ///
+ [NativeName(NativeNameType.Func, "FT_Bitmap_Embolden")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Bitmap_Embolden")] + internal static extern int FTBitmapEmboldenNative([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* bitmap, [NativeName(NativeNameType.Param, "xStrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int xStrength, [NativeName(NativeNameType.Param, "yStrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int yStrength); + + /// /// ************************************************************************
///
/// FT_Bitmap_Embolden
///
/// :
/// Embolden a bitmap. The new bitmap will be about `xStrength` pixels
/// wider and `yStrength` pixels higher. The left and bottom borders are
/// kept unchanged.
///
/// :
/// library ::
/// A handle to a library object.
/// xStrength ::
/// How strong the glyph is emboldened horizontally. Expressed in 26.6
/// pixel format.
/// yStrength ::
/// How strong the glyph is emboldened vertically. Expressed in 26.6
/// pixel format.
///
/// :
/// bitmap ::
/// A handle to the target bitmap.
///
///
/// If you want to embolden the bitmap owned by a
/// _GlyphSlotRec, you
/// should call
/// _GlyphSlot_Own_Bitmap on the slot first.
/// Bitmaps in
/// _PIXEL_MODE_GRAY2 and
/// _PIXEL_MODE_GRAY
/// @
/// format are
/// converted to
/// _PIXEL_MODE_GRAY format (i.e., 8bpp).
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Embolden")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapEmbolden([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* bitmap, [NativeName(NativeNameType.Param, "xStrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int xStrength, [NativeName(NativeNameType.Param, "yStrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int yStrength) + { + int ret = FTBitmapEmboldenNative(library, bitmap, xStrength, yStrength); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Embolden
///
/// :
/// Embolden a bitmap. The new bitmap will be about `xStrength` pixels
/// wider and `yStrength` pixels higher. The left and bottom borders are
/// kept unchanged.
///
/// :
/// library ::
/// A handle to a library object.
/// xStrength ::
/// How strong the glyph is emboldened horizontally. Expressed in 26.6
/// pixel format.
/// yStrength ::
/// How strong the glyph is emboldened vertically. Expressed in 26.6
/// pixel format.
///
/// :
/// bitmap ::
/// A handle to the target bitmap.
///
///
/// If you want to embolden the bitmap owned by a
/// _GlyphSlotRec, you
/// should call
/// _GlyphSlot_Own_Bitmap on the slot first.
/// Bitmaps in
/// _PIXEL_MODE_GRAY2 and
/// _PIXEL_MODE_GRAY
/// @
/// format are
/// converted to
/// _PIXEL_MODE_GRAY format (i.e., 8bpp).
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Embolden")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapEmbolden([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap bitmap, [NativeName(NativeNameType.Param, "xStrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int xStrength, [NativeName(NativeNameType.Param, "yStrength")] [NativeName(NativeNameType.Type, "FT_Pos")] int yStrength) + { + fixed (FTBitmap* pbitmap = &bitmap) + { + int ret = FTBitmapEmboldenNative(library, (FTBitmap*)pbitmap, xStrength, yStrength); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Bitmap_Convert
+ ///
+ /// :
+ /// Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to
+ /// a bitmap object with depth 8bpp, making the number of used bytes per
+ /// line (a.k.a. the 'pitch') a multiple of `alignment`.
+ ///
+ /// :
+ /// library ::
+ /// A handle to a library object.
+ /// source ::
+ /// The source bitmap.
+ /// alignment ::
+ /// The pitch of the bitmap is a multiple of this argument. Common
+ /// values are 1, 2, or 4.
+ ///
+ /// :
+ /// target ::
+ /// The target bitmap.
+ ///
+ ///
+ /// Use
+ /// _Bitmap_Done to finally remove the bitmap object.
+ /// The `library` argument is taken to have access to FreeType's memory
+ /// handling functions.
+ /// `source->buffer` and `target->buffer` must neither be equal nor
+ /// overlap.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Bitmap_Convert")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Bitmap_Convert")] + internal static extern int FTBitmapConvertNative([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "alignment")] [NativeName(NativeNameType.Type, "FT_Int")] int alignment); + + /// /// ************************************************************************
///
/// FT_Bitmap_Convert
///
/// :
/// Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to
/// a bitmap object with depth 8bpp, making the number of used bytes per
/// line (a.k.a. the 'pitch') a multiple of `alignment`.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap.
/// alignment ::
/// The pitch of the bitmap is a multiple of this argument. Common
/// values are 1, 2, or 4.
///
/// :
/// target ::
/// The target bitmap.
///
///
/// Use
/// _Bitmap_Done to finally remove the bitmap object.
/// The `library` argument is taken to have access to FreeType's memory
/// handling functions.
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Convert")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapConvert([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "alignment")] [NativeName(NativeNameType.Type, "FT_Int")] int alignment) + { + int ret = FTBitmapConvertNative(library, source, target, alignment); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Convert
///
/// :
/// Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to
/// a bitmap object with depth 8bpp, making the number of used bytes per
/// line (a.k.a. the 'pitch') a multiple of `alignment`.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap.
/// alignment ::
/// The pitch of the bitmap is a multiple of this argument. Common
/// values are 1, 2, or 4.
///
/// :
/// target ::
/// The target bitmap.
///
///
/// Use
/// _Bitmap_Done to finally remove the bitmap object.
/// The `library` argument is taken to have access to FreeType's memory
/// handling functions.
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Convert")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapConvert([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "alignment")] [NativeName(NativeNameType.Type, "FT_Int")] int alignment) + { + fixed (FTBitmap* psource = &source) + { + int ret = FTBitmapConvertNative(library, (FTBitmap*)psource, target, alignment); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Convert
///
/// :
/// Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to
/// a bitmap object with depth 8bpp, making the number of used bytes per
/// line (a.k.a. the 'pitch') a multiple of `alignment`.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap.
/// alignment ::
/// The pitch of the bitmap is a multiple of this argument. Common
/// values are 1, 2, or 4.
///
/// :
/// target ::
/// The target bitmap.
///
///
/// Use
/// _Bitmap_Done to finally remove the bitmap object.
/// The `library` argument is taken to have access to FreeType's memory
/// handling functions.
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Convert")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapConvert([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "alignment")] [NativeName(NativeNameType.Type, "FT_Int")] int alignment) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FTBitmapConvertNative(library, source, (FTBitmap*)ptarget, alignment); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Convert
///
/// :
/// Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to
/// a bitmap object with depth 8bpp, making the number of used bytes per
/// line (a.k.a. the 'pitch') a multiple of `alignment`.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap.
/// alignment ::
/// The pitch of the bitmap is a multiple of this argument. Common
/// values are 1, 2, or 4.
///
/// :
/// target ::
/// The target bitmap.
///
///
/// Use
/// _Bitmap_Done to finally remove the bitmap object.
/// The `library` argument is taken to have access to FreeType's memory
/// handling functions.
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Convert")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapConvert([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "alignment")] [NativeName(NativeNameType.Type, "FT_Int")] int alignment) + { + fixed (FTBitmap* psource = &source) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FTBitmapConvertNative(library, (FTBitmap*)psource, (FTBitmap*)ptarget, alignment); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Bitmap_Blend
+ ///
+ /// :
+ /// Blend a bitmap onto another bitmap, using a given color.
+ ///
+ /// :
+ /// library ::
+ /// A handle to a library object.
+ /// source ::
+ /// The source bitmap, which can have any
+ /// _Pixel_Mode format.
+ /// source_offset ::
+ /// The offset vector to the upper left corner of the source bitmap in
+ /// 26.6 pixel format. It should represent an integer offset; the
+ /// function will set the lowest six bits to zero to enforce that.
+ /// color ::
+ /// The color used to draw `source` onto `target`.
+ ///
+ /// :
+ /// target ::
+ /// A handle to an `FT_Bitmap` object. It should be either initialized
+ /// as empty with a call to
+ /// _Bitmap_Init, or it should be of type
+ ///
+ /// _PIXEL_MODE_BGRA.
+ /// atarget_offset ::
+ /// The offset vector to the upper left corner of the target bitmap in
+ /// 26.6 pixel format. It should represent an integer offset; the
+ /// function will set the lowest six bits to zero to enforce that.
+ ///
+ ///
+ /// The bitmap in `target` gets allocated or reallocated as needed; the
+ /// vector `atarget_offset` is updated accordingly.
+ /// In case of allocation or reallocation, the bitmap's pitch is set to
+ /// `4 * width`. Both `source` and `target` must have the same bitmap
+ /// flow (as indicated by the sign of the `pitch` field).
+ /// `source->buffer` and `target->buffer` must neither be equal nor
+ /// overlap.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Bitmap_Blend")] + internal static extern int FTBitmapBlendNative([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color); + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapBlend([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + int ret = FTBitmapBlendNative(library, source, sourceOffset, target, atargetOffset, color); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapBlend([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* psource = &source) + { + int ret = FTBitmapBlendNative(library, (FTBitmap*)psource, sourceOffset, target, atargetOffset, color); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapBlend([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FTBitmapBlendNative(library, source, sourceOffset, (FTBitmap*)ptarget, atargetOffset, color); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapBlend([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* psource = &source) + { + fixed (FTBitmap* ptarget = &target) + { + int ret = FTBitmapBlendNative(library, (FTBitmap*)psource, sourceOffset, (FTBitmap*)ptarget, atargetOffset, color); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapBlend([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTVector* patargetOffset = &atargetOffset) + { + int ret = FTBitmapBlendNative(library, source, sourceOffset, target, (FTVector*)patargetOffset, color); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapBlend([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* psource = &source) + { + fixed (FTVector* patargetOffset = &atargetOffset) + { + int ret = FTBitmapBlendNative(library, (FTBitmap*)psource, sourceOffset, target, (FTVector*)patargetOffset, color); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapBlend([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] FTBitmap* source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* ptarget = &target) + { + fixed (FTVector* patargetOffset = &atargetOffset) + { + int ret = FTBitmapBlendNative(library, source, sourceOffset, (FTBitmap*)ptarget, (FTVector*)patargetOffset, color); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Blend
///
/// :
/// Blend a bitmap onto another bitmap, using a given color.
///
/// :
/// library ::
/// A handle to a library object.
/// source ::
/// The source bitmap, which can have any
/// _Pixel_Mode format.
/// source_offset ::
/// The offset vector to the upper left corner of the source bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
/// color ::
/// The color used to draw `source` onto `target`.
///
/// :
/// target ::
/// A handle to an `FT_Bitmap` object. It should be either initialized
/// as empty with a call to
/// _Bitmap_Init, or it should be of type
///
/// _PIXEL_MODE_BGRA.
/// atarget_offset ::
/// The offset vector to the upper left corner of the target bitmap in
/// 26.6 pixel format. It should represent an integer offset; the
/// function will set the lowest six bits to zero to enforce that.
///
///
/// The bitmap in `target` gets allocated or reallocated as needed; the
/// vector `atarget_offset` is updated accordingly.
/// In case of allocation or reallocation, the bitmap's pitch is set to
/// `4 * width`. Both `source` and `target` must have the same bitmap
/// flow (as indicated by the sign of the `pitch` field).
/// `source->buffer` and `target->buffer` must neither be equal nor
/// overlap.
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Blend")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapBlend([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const FT_Bitmap*")] ref FTBitmap source, [NativeName(NativeNameType.Param, "source_offset")] [NativeName(NativeNameType.Type, "const FT_Vector")] FTVector sourceOffset, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap target, [NativeName(NativeNameType.Param, "atarget_offset")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector atargetOffset, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "FT_Color")] FTColor color) + { + fixed (FTBitmap* psource = &source) + { + fixed (FTBitmap* ptarget = &target) + { + fixed (FTVector* patargetOffset = &atargetOffset) + { + int ret = FTBitmapBlendNative(library, (FTBitmap*)psource, sourceOffset, (FTBitmap*)ptarget, (FTVector*)patargetOffset, color); + return ret; + } + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_GlyphSlot_Own_Bitmap
+ ///
+ /// :
+ /// Make sure that a glyph slot owns `slot->bitmap`.
+ ///
+ /// :
+ /// slot ::
+ /// The glyph slot.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_GlyphSlot_Own_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_GlyphSlot_Own_Bitmap")] + internal static extern int FTGlyphSlotOwnBitmapNative([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot); + + /// /// ************************************************************************
///
/// FT_GlyphSlot_Own_Bitmap
///
/// :
/// Make sure that a glyph slot owns `slot->bitmap`.
///
/// :
/// slot ::
/// The glyph slot.
///
///
///
[NativeName(NativeNameType.Func, "FT_GlyphSlot_Own_Bitmap")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGlyphSlotOwnBitmap([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot) + { + int ret = FTGlyphSlotOwnBitmapNative(slot); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Bitmap_Done
+ ///
+ /// :
+ /// Destroy a bitmap object initialized with
+ /// _Bitmap_Init.
+ ///
+ /// :
+ /// library ::
+ /// A handle to a library object.
+ /// bitmap ::
+ /// The bitmap object to be freed.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Bitmap_Done")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Bitmap_Done")] + internal static extern int FTBitmapDoneNative([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* bitmap); + + /// /// ************************************************************************
///
/// FT_Bitmap_Done
///
/// :
/// Destroy a bitmap object initialized with
/// _Bitmap_Init.
///
/// :
/// library ::
/// A handle to a library object.
/// bitmap ::
/// The bitmap object to be freed.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Done")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapDone([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] FTBitmap* bitmap) + { + int ret = FTBitmapDoneNative(library, bitmap); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Bitmap_Done
///
/// :
/// Destroy a bitmap object initialized with
/// _Bitmap_Init.
///
/// :
/// library ::
/// A handle to a library object.
/// bitmap ::
/// The bitmap object to be freed.
///
///
///
[NativeName(NativeNameType.Func, "FT_Bitmap_Done")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTBitmapDone([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "FT_Bitmap*")] ref FTBitmap bitmap) + { + fixed (FTBitmap* pbitmap = &bitmap) + { + int ret = FTBitmapDoneNative(library, (FTBitmap*)pbitmap); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_Sfnt_Table
+ ///
+ /// :
+ /// Return a pointer to a given SFNT table stored within a face.
+ ///
+ /// :
+ /// face ::
+ /// A handle to the source.
+ /// tag ::
+ /// The index of the SFNT table.
+ ///
+ /// Use a typecast according to `tag` to access the structure elements.
+ ///
+ /// This function is only useful to access SFNT tables that are loaded by
+ /// the sfnt, truetype, and opentype drivers. See
+ /// _Sfnt_Tag for a
+ /// list.
+ ///
+ /// Here is an example demonstrating access to the 'vhea' table.
+ /// ```
+ /// TT_VertHeader* vert_header;
+ /// vert_header =
+ /// (TT_VertHeader*)FT_Get_Sfnt_Table( face, FT_SFNT_VHEA );
+ /// ```
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_Sfnt_Table")] + [return: NativeName(NativeNameType.Type, "void*")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_Sfnt_Table")] + internal static extern void* FTGetSfntTableNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_Sfnt_Tag")] FTSfntTag tag); + + /// /// ************************************************************************
///
/// FT_Get_Sfnt_Table
///
/// :
/// Return a pointer to a given SFNT table stored within a face.
///
/// :
/// face ::
/// A handle to the source.
/// tag ::
/// The index of the SFNT table.
///
/// Use a typecast according to `tag` to access the structure elements.
///
/// This function is only useful to access SFNT tables that are loaded by
/// the sfnt, truetype, and opentype drivers. See
/// _Sfnt_Tag for a
/// list.
///
/// Here is an example demonstrating access to the 'vhea' table.
/// ```
/// TT_VertHeader* vert_header;
/// vert_header =
/// (TT_VertHeader*)FT_Get_Sfnt_Table( face, FT_SFNT_VHEA );
/// ```
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_Table")] + [return: NativeName(NativeNameType.Type, "void*")] + public static void* FTGetSfntTable([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_Sfnt_Tag")] FTSfntTag tag) + { + void* ret = FTGetSfntTableNative(face, tag); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Load_Sfnt_Table
+ ///
+ /// :
+ /// Load any SFNT font table into client memory.
+ ///
+ /// :
+ /// face ::
+ /// A handle to the source face.
+ /// tag ::
+ /// The four-byte tag of the table to load. Use value~0 if you want to
+ /// access the whole font file. Otherwise, you can use one of the
+ /// definitions found in the
+ /// _TRUETYPE_TAGS_H file, or forge a new
+ /// one with
+ /// _MAKE_TAG.
+ /// offset ::
+ /// The starting offset in the table (or file if tag~==~0).
+ ///
+ /// :
+ /// buffer ::
+ /// The target buffer address. The client must ensure that the memory
+ /// array is big enough to hold the data.
+ ///
+ /// :
+ /// length ::
+ /// If the `length` parameter is `NULL`, try to load the whole table.
+ /// Return an error code if it fails.
+ /// Else, if `*length` is~0, exit immediately while returning the
+ /// table's (or file) full size in it.
+ /// Else the number of bytes to read from the table or file, from the
+ /// starting offset.
+ ///
+ ///
+ /// ```
+ /// FT_ULong length = 0;
+ /// error = FT_Load_Sfnt_Table( face, tag, 0, NULL,
+ /// &length
+ /// );
+ /// if ( error ) { ... table does not exist ... }
+ /// buffer = malloc( length );
+ /// if ( buffer == NULL ) { ... not enough memory ... }
+ /// error = FT_Load_Sfnt_Table( face, tag, 0, buffer,
+ /// &length
+ /// );
+ /// if ( error ) { ... could not load table ... }
+ /// ```
+ /// Note that structures like
+ /// _Header or
+ /// _OS2 can't be used with
+ /// this function; they are limited to
+ /// _Get_Sfnt_Table. Reason is that
+ /// those structures depend on the processor architecture, with varying
+ /// size (e.g. 32bit vs. 64bit) or order (big endian vs. little endian).
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Load_Sfnt_Table")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Load_Sfnt_Table")] + internal static extern int FTLoadSfntTableNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong")] uint tag, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "FT_Long")] int offset, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "FT_Byte*")] byte* buffer, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* length); + + /// /// ************************************************************************
///
/// FT_Load_Sfnt_Table
///
/// :
/// Load any SFNT font table into client memory.
///
/// :
/// face ::
/// A handle to the source face.
/// tag ::
/// The four-byte tag of the table to load. Use value~0 if you want to
/// access the whole font file. Otherwise, you can use one of the
/// definitions found in the
/// _TRUETYPE_TAGS_H file, or forge a new
/// one with
/// _MAKE_TAG.
/// offset ::
/// The starting offset in the table (or file if tag~==~0).
///
/// :
/// buffer ::
/// The target buffer address. The client must ensure that the memory
/// array is big enough to hold the data.
///
/// :
/// length ::
/// If the `length` parameter is `NULL`, try to load the whole table.
/// Return an error code if it fails.
/// Else, if `*length` is~0, exit immediately while returning the
/// table's (or file) full size in it.
/// Else the number of bytes to read from the table or file, from the
/// starting offset.
///
///
/// ```
/// FT_ULong length = 0;
/// error = FT_Load_Sfnt_Table( face, tag, 0, NULL,
/// &length
/// );
/// if ( error ) { ... table does not exist ... }
/// buffer = malloc( length );
/// if ( buffer == NULL ) { ... not enough memory ... }
/// error = FT_Load_Sfnt_Table( face, tag, 0, buffer,
/// &length
/// );
/// if ( error ) { ... could not load table ... }
/// ```
/// Note that structures like
/// _Header or
/// _OS2 can't be used with
/// this function; they are limited to
/// _Get_Sfnt_Table. Reason is that
/// those structures depend on the processor architecture, with varying
/// size (e.g. 32bit vs. 64bit) or order (big endian vs. little endian).
///
///
[NativeName(NativeNameType.Func, "FT_Load_Sfnt_Table")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTLoadSfntTable([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong")] uint tag, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "FT_Long")] int offset, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "FT_Byte*")] byte* buffer, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* length) + { + int ret = FTLoadSfntTableNative(face, tag, offset, buffer, length); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Load_Sfnt_Table
///
/// :
/// Load any SFNT font table into client memory.
///
/// :
/// face ::
/// A handle to the source face.
/// tag ::
/// The four-byte tag of the table to load. Use value~0 if you want to
/// access the whole font file. Otherwise, you can use one of the
/// definitions found in the
/// _TRUETYPE_TAGS_H file, or forge a new
/// one with
/// _MAKE_TAG.
/// offset ::
/// The starting offset in the table (or file if tag~==~0).
///
/// :
/// buffer ::
/// The target buffer address. The client must ensure that the memory
/// array is big enough to hold the data.
///
/// :
/// length ::
/// If the `length` parameter is `NULL`, try to load the whole table.
/// Return an error code if it fails.
/// Else, if `*length` is~0, exit immediately while returning the
/// table's (or file) full size in it.
/// Else the number of bytes to read from the table or file, from the
/// starting offset.
///
///
/// ```
/// FT_ULong length = 0;
/// error = FT_Load_Sfnt_Table( face, tag, 0, NULL,
/// &length
/// );
/// if ( error ) { ... table does not exist ... }
/// buffer = malloc( length );
/// if ( buffer == NULL ) { ... not enough memory ... }
/// error = FT_Load_Sfnt_Table( face, tag, 0, buffer,
/// &length
/// );
/// if ( error ) { ... could not load table ... }
/// ```
/// Note that structures like
/// _Header or
/// _OS2 can't be used with
/// this function; they are limited to
/// _Get_Sfnt_Table. Reason is that
/// those structures depend on the processor architecture, with varying
/// size (e.g. 32bit vs. 64bit) or order (big endian vs. little endian).
///
///
[NativeName(NativeNameType.Func, "FT_Load_Sfnt_Table")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTLoadSfntTable([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong")] uint tag, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "FT_Long")] int offset, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "FT_Byte*")] ref byte buffer, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* length) + { + fixed (byte* pbuffer = &buffer) + { + int ret = FTLoadSfntTableNative(face, tag, offset, (byte*)pbuffer, length); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Load_Sfnt_Table
///
/// :
/// Load any SFNT font table into client memory.
///
/// :
/// face ::
/// A handle to the source face.
/// tag ::
/// The four-byte tag of the table to load. Use value~0 if you want to
/// access the whole font file. Otherwise, you can use one of the
/// definitions found in the
/// _TRUETYPE_TAGS_H file, or forge a new
/// one with
/// _MAKE_TAG.
/// offset ::
/// The starting offset in the table (or file if tag~==~0).
///
/// :
/// buffer ::
/// The target buffer address. The client must ensure that the memory
/// array is big enough to hold the data.
///
/// :
/// length ::
/// If the `length` parameter is `NULL`, try to load the whole table.
/// Return an error code if it fails.
/// Else, if `*length` is~0, exit immediately while returning the
/// table's (or file) full size in it.
/// Else the number of bytes to read from the table or file, from the
/// starting offset.
///
///
/// ```
/// FT_ULong length = 0;
/// error = FT_Load_Sfnt_Table( face, tag, 0, NULL,
/// &length
/// );
/// if ( error ) { ... table does not exist ... }
/// buffer = malloc( length );
/// if ( buffer == NULL ) { ... not enough memory ... }
/// error = FT_Load_Sfnt_Table( face, tag, 0, buffer,
/// &length
/// );
/// if ( error ) { ... could not load table ... }
/// ```
/// Note that structures like
/// _Header or
/// _OS2 can't be used with
/// this function; they are limited to
/// _Get_Sfnt_Table. Reason is that
/// those structures depend on the processor architecture, with varying
/// size (e.g. 32bit vs. 64bit) or order (big endian vs. little endian).
///
///
[NativeName(NativeNameType.Func, "FT_Load_Sfnt_Table")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTLoadSfntTable([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong")] uint tag, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "FT_Long")] int offset, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "FT_Byte*")] byte* buffer, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint length) + { + fixed (uint* plength = &length) + { + int ret = FTLoadSfntTableNative(face, tag, offset, buffer, (uint*)plength); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Load_Sfnt_Table
///
/// :
/// Load any SFNT font table into client memory.
///
/// :
/// face ::
/// A handle to the source face.
/// tag ::
/// The four-byte tag of the table to load. Use value~0 if you want to
/// access the whole font file. Otherwise, you can use one of the
/// definitions found in the
/// _TRUETYPE_TAGS_H file, or forge a new
/// one with
/// _MAKE_TAG.
/// offset ::
/// The starting offset in the table (or file if tag~==~0).
///
/// :
/// buffer ::
/// The target buffer address. The client must ensure that the memory
/// array is big enough to hold the data.
///
/// :
/// length ::
/// If the `length` parameter is `NULL`, try to load the whole table.
/// Return an error code if it fails.
/// Else, if `*length` is~0, exit immediately while returning the
/// table's (or file) full size in it.
/// Else the number of bytes to read from the table or file, from the
/// starting offset.
///
///
/// ```
/// FT_ULong length = 0;
/// error = FT_Load_Sfnt_Table( face, tag, 0, NULL,
/// &length
/// );
/// if ( error ) { ... table does not exist ... }
/// buffer = malloc( length );
/// if ( buffer == NULL ) { ... not enough memory ... }
/// error = FT_Load_Sfnt_Table( face, tag, 0, buffer,
/// &length
/// );
/// if ( error ) { ... could not load table ... }
/// ```
/// Note that structures like
/// _Header or
/// _OS2 can't be used with
/// this function; they are limited to
/// _Get_Sfnt_Table. Reason is that
/// those structures depend on the processor architecture, with varying
/// size (e.g. 32bit vs. 64bit) or order (big endian vs. little endian).
///
///
[NativeName(NativeNameType.Func, "FT_Load_Sfnt_Table")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTLoadSfntTable([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong")] uint tag, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "FT_Long")] int offset, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "FT_Byte*")] ref byte buffer, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint length) + { + fixed (byte* pbuffer = &buffer) + { + fixed (uint* plength = &length) + { + int ret = FTLoadSfntTableNative(face, tag, offset, (byte*)pbuffer, (uint*)plength); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Sfnt_Table_Info
+ ///
+ /// :
+ /// Return information on an SFNT table.
+ ///
+ /// :
+ /// face ::
+ /// A handle to the source face.
+ /// table_index ::
+ /// The index of an SFNT table. The function returns
+ /// FT_Err_Table_Missing for an invalid value.
+ ///
+ /// :
+ /// tag ::
+ /// The name tag of the SFNT table. If the value is `NULL`,
+ /// `table_index` is ignored, and `length` returns the number of SFNT
+ /// tables in the font.
+ ///
+ /// :
+ /// length ::
+ /// The length of the SFNT table (or the number of SFNT tables,
+ /// depending on `tag`).
+ ///
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Sfnt_Table_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Sfnt_Table_Info")] + internal static extern int FTSfntTableInfoNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "table_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint tableIndex, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* tag, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* length); + + /// /// ************************************************************************
///
/// FT_Sfnt_Table_Info
///
/// :
/// Return information on an SFNT table.
///
/// :
/// face ::
/// A handle to the source face.
/// table_index ::
/// The index of an SFNT table. The function returns
/// FT_Err_Table_Missing for an invalid value.
///
/// :
/// tag ::
/// The name tag of the SFNT table. If the value is `NULL`,
/// `table_index` is ignored, and `length` returns the number of SFNT
/// tables in the font.
///
/// :
/// length ::
/// The length of the SFNT table (or the number of SFNT tables,
/// depending on `tag`).
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Sfnt_Table_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTSfntTableInfo([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "table_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint tableIndex, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* tag, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* length) + { + int ret = FTSfntTableInfoNative(face, tableIndex, tag, length); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Sfnt_Table_Info
///
/// :
/// Return information on an SFNT table.
///
/// :
/// face ::
/// A handle to the source face.
/// table_index ::
/// The index of an SFNT table. The function returns
/// FT_Err_Table_Missing for an invalid value.
///
/// :
/// tag ::
/// The name tag of the SFNT table. If the value is `NULL`,
/// `table_index` is ignored, and `length` returns the number of SFNT
/// tables in the font.
///
/// :
/// length ::
/// The length of the SFNT table (or the number of SFNT tables,
/// depending on `tag`).
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Sfnt_Table_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTSfntTableInfo([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "table_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint tableIndex, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint tag, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* length) + { + fixed (uint* ptag = &tag) + { + int ret = FTSfntTableInfoNative(face, tableIndex, (uint*)ptag, length); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Sfnt_Table_Info
///
/// :
/// Return information on an SFNT table.
///
/// :
/// face ::
/// A handle to the source face.
/// table_index ::
/// The index of an SFNT table. The function returns
/// FT_Err_Table_Missing for an invalid value.
///
/// :
/// tag ::
/// The name tag of the SFNT table. If the value is `NULL`,
/// `table_index` is ignored, and `length` returns the number of SFNT
/// tables in the font.
///
/// :
/// length ::
/// The length of the SFNT table (or the number of SFNT tables,
/// depending on `tag`).
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Sfnt_Table_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTSfntTableInfo([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "table_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint tableIndex, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong*")] uint* tag, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint length) + { + fixed (uint* plength = &length) + { + int ret = FTSfntTableInfoNative(face, tableIndex, tag, (uint*)plength); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Sfnt_Table_Info
///
/// :
/// Return information on an SFNT table.
///
/// :
/// face ::
/// A handle to the source face.
/// table_index ::
/// The index of an SFNT table. The function returns
/// FT_Err_Table_Missing for an invalid value.
///
/// :
/// tag ::
/// The name tag of the SFNT table. If the value is `NULL`,
/// `table_index` is ignored, and `length` returns the number of SFNT
/// tables in the font.
///
/// :
/// length ::
/// The length of the SFNT table (or the number of SFNT tables,
/// depending on `tag`).
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Sfnt_Table_Info")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTSfntTableInfo([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "table_index")] [NativeName(NativeNameType.Type, "FT_UInt")] uint tableIndex, [NativeName(NativeNameType.Param, "tag")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint tag, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_ULong*")] ref uint length) + { + fixed (uint* ptag = &tag) + { + fixed (uint* plength = &length) + { + int ret = FTSfntTableInfoNative(face, tableIndex, (uint*)ptag, (uint*)plength); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_CMap_Language_ID
+ ///
+ /// :
+ /// Return cmap language ID as specified in the OpenType standard.
+ /// Definitions of language ID values are in file
+ /// _TRUETYPE_IDS_H.
+ ///
+ /// :
+ /// charmap ::
+ /// The target charmap.
+ ///
+ /// For a format~14 cmap (to access Unicode IVS), the return value is
+ /// 0xFFFFFFFF.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_CMap_Language_ID")] + [return: NativeName(NativeNameType.Type, "FT_ULong")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_CMap_Language_ID")] + internal static extern uint FTGetCMapLanguageIDNative([NativeName(NativeNameType.Param, "charmap")] [NativeName(NativeNameType.Type, "FT_CharMap")] FTCharMap charmap); + + /// /// ************************************************************************
///
/// FT_Get_CMap_Language_ID
///
/// :
/// Return cmap language ID as specified in the OpenType standard.
/// Definitions of language ID values are in file
/// _TRUETYPE_IDS_H.
///
/// :
/// charmap ::
/// The target charmap.
///
/// For a format~14 cmap (to access Unicode IVS), the return value is
/// 0xFFFFFFFF.
///
[NativeName(NativeNameType.Func, "FT_Get_CMap_Language_ID")] + [return: NativeName(NativeNameType.Type, "FT_ULong")] + public static uint FTGetCMapLanguageID([NativeName(NativeNameType.Param, "charmap")] [NativeName(NativeNameType.Type, "FT_CharMap")] FTCharMap charmap) + { + uint ret = FTGetCMapLanguageIDNative(charmap); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_CMap_Format
+ ///
+ /// :
+ /// Return the format of an SFNT 'cmap' table.
+ ///
+ /// :
+ /// charmap ::
+ /// The target charmap.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_CMap_Format")] + [return: NativeName(NativeNameType.Type, "FT_Long")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_CMap_Format")] + internal static extern int FTGetCMapFormatNative([NativeName(NativeNameType.Param, "charmap")] [NativeName(NativeNameType.Type, "FT_CharMap")] FTCharMap charmap); + + /// /// ************************************************************************
///
/// FT_Get_CMap_Format
///
/// :
/// Return the format of an SFNT 'cmap' table.
///
/// :
/// charmap ::
/// The target charmap.
///
///
[NativeName(NativeNameType.Func, "FT_Get_CMap_Format")] + [return: NativeName(NativeNameType.Type, "FT_Long")] + public static int FTGetCMapFormat([NativeName(NativeNameType.Param, "charmap")] [NativeName(NativeNameType.Type, "FT_CharMap")] FTCharMap charmap) + { + int ret = FTGetCMapFormatNative(charmap); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_Sfnt_Name_Count
+ ///
+ /// :
+ /// Retrieve the number of name strings in the SFNT 'name' table.
+ ///
+ /// :
+ /// face ::
+ /// A handle to the source face.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_Sfnt_Name_Count")] + [return: NativeName(NativeNameType.Type, "FT_UInt")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_Sfnt_Name_Count")] + internal static extern uint FTGetSfntNameCountNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face); + + /// /// ************************************************************************
///
/// FT_Get_Sfnt_Name_Count
///
/// :
/// Retrieve the number of name strings in the SFNT 'name' table.
///
/// :
/// face ::
/// A handle to the source face.
///
///
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_Name_Count")] + [return: NativeName(NativeNameType.Type, "FT_UInt")] + public static uint FTGetSfntNameCount([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face) + { + uint ret = FTGetSfntNameCountNative(face); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_Sfnt_Name
+ ///
+ /// :
+ /// Retrieve a string of the SFNT 'name' table for a given index.
+ ///
+ /// :
+ /// face ::
+ /// A handle to the source face.
+ /// idx ::
+ /// The index of the 'name' string.
+ ///
+ /// :
+ /// aname ::
+ /// The indexed
+ /// _SfntName structure.
+ ///
+ ///
+ /// Use
+ /// _Get_Sfnt_Name_Count to get the total number of available
+ /// 'name' table entries, then do a loop until you get the right platform,
+ /// encoding, and name ID.
+ /// 'name' table format~1 entries can use language tags also, see
+ ///
+ /// _Get_Sfnt_LangTag.
+ /// This function always returns an error if the config macro
+ /// `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_Sfnt_Name")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_Sfnt_Name")] + internal static extern int FTGetSfntNameNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "FT_UInt")] uint idx, [NativeName(NativeNameType.Param, "aname")] [NativeName(NativeNameType.Type, "FT_SfntName*")] FTSfntName* aname); + + /// /// ************************************************************************
///
/// FT_Get_Sfnt_Name
///
/// :
/// Retrieve a string of the SFNT 'name' table for a given index.
///
/// :
/// face ::
/// A handle to the source face.
/// idx ::
/// The index of the 'name' string.
///
/// :
/// aname ::
/// The indexed
/// _SfntName structure.
///
///
/// Use
/// _Get_Sfnt_Name_Count to get the total number of available
/// 'name' table entries, then do a loop until you get the right platform,
/// encoding, and name ID.
/// 'name' table format~1 entries can use language tags also, see
///
/// _Get_Sfnt_LangTag.
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_Name")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGetSfntName([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "FT_UInt")] uint idx, [NativeName(NativeNameType.Param, "aname")] [NativeName(NativeNameType.Type, "FT_SfntName*")] FTSfntName* aname) + { + int ret = FTGetSfntNameNative(face, idx, aname); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Sfnt_Name
///
/// :
/// Retrieve a string of the SFNT 'name' table for a given index.
///
/// :
/// face ::
/// A handle to the source face.
/// idx ::
/// The index of the 'name' string.
///
/// :
/// aname ::
/// The indexed
/// _SfntName structure.
///
///
/// Use
/// _Get_Sfnt_Name_Count to get the total number of available
/// 'name' table entries, then do a loop until you get the right platform,
/// encoding, and name ID.
/// 'name' table format~1 entries can use language tags also, see
///
/// _Get_Sfnt_LangTag.
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_Name")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGetSfntName([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "FT_UInt")] uint idx, [NativeName(NativeNameType.Param, "aname")] [NativeName(NativeNameType.Type, "FT_SfntName*")] ref FTSfntName aname) + { + fixed (FTSfntName* paname = &aname) + { + int ret = FTGetSfntNameNative(face, idx, (FTSfntName*)paname); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Get_Sfnt_LangTag
+ ///
+ /// :
+ /// Retrieve the language tag associated with a language ID of an SFNT
+ /// 'name' table entry.
+ ///
+ /// :
+ /// face ::
+ /// A handle to the source face.
+ /// langID ::
+ /// The language ID, as returned by
+ /// _Get_Sfnt_Name. This is always a
+ /// value larger than 0x8000.
+ ///
+ /// :
+ /// alangTag ::
+ /// The language tag associated with the 'name' table entry's language
+ /// ID.
+ ///
+ ///
+ /// Only 'name' table format~1 supports language tags. For format~0
+ /// tables, this function always returns FT_Err_Invalid_Table. For
+ /// invalid format~1 language ID values, FT_Err_Invalid_Argument is
+ /// returned.
+ /// This function always returns an error if the config macro
+ /// `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Get_Sfnt_LangTag")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Get_Sfnt_LangTag")] + internal static extern int FTGetSfntLangTagNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "langID")] [NativeName(NativeNameType.Type, "FT_UInt")] uint langID, [NativeName(NativeNameType.Param, "alangTag")] [NativeName(NativeNameType.Type, "FT_SfntLangTag*")] FTSfntLangTag* alangTag); + + /// /// ************************************************************************
///
/// FT_Get_Sfnt_LangTag
///
/// :
/// Retrieve the language tag associated with a language ID of an SFNT
/// 'name' table entry.
///
/// :
/// face ::
/// A handle to the source face.
/// langID ::
/// The language ID, as returned by
/// _Get_Sfnt_Name. This is always a
/// value larger than 0x8000.
///
/// :
/// alangTag ::
/// The language tag associated with the 'name' table entry's language
/// ID.
///
///
/// Only 'name' table format~1 supports language tags. For format~0
/// tables, this function always returns FT_Err_Invalid_Table. For
/// invalid format~1 language ID values, FT_Err_Invalid_Argument is
/// returned.
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_LangTag")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGetSfntLangTag([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "langID")] [NativeName(NativeNameType.Type, "FT_UInt")] uint langID, [NativeName(NativeNameType.Param, "alangTag")] [NativeName(NativeNameType.Type, "FT_SfntLangTag*")] FTSfntLangTag* alangTag) + { + int ret = FTGetSfntLangTagNative(face, langID, alangTag); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Get_Sfnt_LangTag
///
/// :
/// Retrieve the language tag associated with a language ID of an SFNT
/// 'name' table entry.
///
/// :
/// face ::
/// A handle to the source face.
/// langID ::
/// The language ID, as returned by
/// _Get_Sfnt_Name. This is always a
/// value larger than 0x8000.
///
/// :
/// alangTag ::
/// The language tag associated with the 'name' table entry's language
/// ID.
///
///
/// Only 'name' table format~1 supports language tags. For format~0
/// tables, this function always returns FT_Err_Invalid_Table. For
/// invalid format~1 language ID values, FT_Err_Invalid_Argument is
/// returned.
/// This function always returns an error if the config macro
/// `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`.
///
///
[NativeName(NativeNameType.Func, "FT_Get_Sfnt_LangTag")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGetSfntLangTag([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "FT_Face")] FTFace face, [NativeName(NativeNameType.Param, "langID")] [NativeName(NativeNameType.Type, "FT_UInt")] uint langID, [NativeName(NativeNameType.Param, "alangTag")] [NativeName(NativeNameType.Type, "FT_SfntLangTag*")] ref FTSfntLangTag alangTag) + { + fixed (FTSfntLangTag* palangTag = &alangTag) + { + int ret = FTGetSfntLangTagNative(face, langID, (FTSfntLangTag*)palangTag); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_Get_BBox
+ ///
+ /// :
+ /// Compute the exact bounding box of an outline. This is slower than
+ /// computing the control box. However, it uses an advanced algorithm
+ /// that returns _very_ quickly when the two boxes coincide. Otherwise,
+ /// the outline Bezier arcs are traversed to extract their extrema.
+ ///
+ /// :
+ /// outline ::
+ /// A pointer to the source outline.
+ ///
+ /// :
+ /// abbox ::
+ /// The outline's exact bounding box.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_Get_BBox")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_Get_BBox")] + internal static extern int FTOutlineGetBBoxNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "abbox")] [NativeName(NativeNameType.Type, "FT_BBox*")] FTBBox* abbox); + + /// /// ************************************************************************
///
/// FT_Outline_Get_BBox
///
/// :
/// Compute the exact bounding box of an outline. This is slower than
/// computing the control box. However, it uses an advanced algorithm
/// that returns _very_ quickly when the two boxes coincide. Otherwise,
/// the outline Bezier arcs are traversed to extract their extrema.
///
/// :
/// outline ::
/// A pointer to the source outline.
///
/// :
/// abbox ::
/// The outline's exact bounding box.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_BBox")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineGetBBox([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "abbox")] [NativeName(NativeNameType.Type, "FT_BBox*")] FTBBox* abbox) + { + int ret = FTOutlineGetBBoxNative(outline, abbox); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Outline_Get_BBox
///
/// :
/// Compute the exact bounding box of an outline. This is slower than
/// computing the control box. However, it uses an advanced algorithm
/// that returns _very_ quickly when the two boxes coincide. Otherwise,
/// the outline Bezier arcs are traversed to extract their extrema.
///
/// :
/// outline ::
/// A pointer to the source outline.
///
/// :
/// abbox ::
/// The outline's exact bounding box.
///
///
///
[NativeName(NativeNameType.Func, "FT_Outline_Get_BBox")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTOutlineGetBBox([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "abbox")] [NativeName(NativeNameType.Type, "FT_BBox*")] ref FTBBox abbox) + { + fixed (FTBBox* pabbox = &abbox) + { + int ret = FTOutlineGetBBoxNative(outline, (FTBBox*)pabbox); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_GetInsideBorder
+ ///
+ /// :
+ /// Retrieve the
+ /// _StrokerBorder value corresponding to the 'inside'
+ /// borders of a given outline.
+ ///
+ /// :
+ /// outline ::
+ /// The source outline handle.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_GetInsideBorder")] + [return: NativeName(NativeNameType.Type, "FT_StrokerBorder")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_GetInsideBorder")] + internal static extern FTStrokerBorder FTOutlineGetInsideBorderNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline); + + /// /// ************************************************************************
///
/// FT_Outline_GetInsideBorder
///
/// :
/// Retrieve the
/// _StrokerBorder value corresponding to the 'inside'
/// borders of a given outline.
///
/// :
/// outline ::
/// The source outline handle.
///
///
[NativeName(NativeNameType.Func, "FT_Outline_GetInsideBorder")] + [return: NativeName(NativeNameType.Type, "FT_StrokerBorder")] + public static FTStrokerBorder FTOutlineGetInsideBorder([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline) + { + FTStrokerBorder ret = FTOutlineGetInsideBorderNative(outline); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Outline_GetOutsideBorder
+ ///
+ /// :
+ /// Retrieve the
+ /// _StrokerBorder value corresponding to the 'outside'
+ /// borders of a given outline.
+ ///
+ /// :
+ /// outline ::
+ /// The source outline handle.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Outline_GetOutsideBorder")] + [return: NativeName(NativeNameType.Type, "FT_StrokerBorder")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Outline_GetOutsideBorder")] + internal static extern FTStrokerBorder FTOutlineGetOutsideBorderNative([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline); + + /// /// ************************************************************************
///
/// FT_Outline_GetOutsideBorder
///
/// :
/// Retrieve the
/// _StrokerBorder value corresponding to the 'outside'
/// borders of a given outline.
///
/// :
/// outline ::
/// The source outline handle.
///
///
[NativeName(NativeNameType.Func, "FT_Outline_GetOutsideBorder")] + [return: NativeName(NativeNameType.Type, "FT_StrokerBorder")] + public static FTStrokerBorder FTOutlineGetOutsideBorder([NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline) + { + FTStrokerBorder ret = FTOutlineGetOutsideBorderNative(outline); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_New
+ ///
+ /// :
+ /// Create a new stroker object.
+ ///
+ /// :
+ /// library ::
+ /// FreeType library handle.
+ ///
+ /// :
+ /// astroker ::
+ /// A new stroker object handle. `NULL` in case of error.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_New")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_New")] + internal static extern int FTStrokerNewNative([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "astroker")] [NativeName(NativeNameType.Type, "FT_Stroker*")] FTStroker* astroker); + + /// /// ************************************************************************
///
/// FT_Stroker_New
///
/// :
/// Create a new stroker object.
///
/// :
/// library ::
/// FreeType library handle.
///
/// :
/// astroker ::
/// A new stroker object handle. `NULL` in case of error.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_New")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerNew([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "astroker")] [NativeName(NativeNameType.Type, "FT_Stroker*")] FTStroker* astroker) + { + int ret = FTStrokerNewNative(library, astroker); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_New
///
/// :
/// Create a new stroker object.
///
/// :
/// library ::
/// FreeType library handle.
///
/// :
/// astroker ::
/// A new stroker object handle. `NULL` in case of error.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_New")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerNew([NativeName(NativeNameType.Param, "library")] [NativeName(NativeNameType.Type, "FT_Library")] FTLibrary library, [NativeName(NativeNameType.Param, "astroker")] [NativeName(NativeNameType.Type, "FT_Stroker*")] ref FTStroker astroker) + { + fixed (FTStroker* pastroker = &astroker) + { + int ret = FTStrokerNewNative(library, (FTStroker*)pastroker); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_Set
+ ///
+ /// :
+ /// Reset a stroker object's attributes.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ /// radius ::
+ /// The border radius.
+ /// line_cap ::
+ /// The line cap style.
+ /// line_join ::
+ /// The line join style.
+ /// miter_limit ::
+ /// The maximum reciprocal sine of half-angle at the miter join,
+ /// expressed as 16.16 fixed-point value.
+ ///
+ /// The `miter_limit` multiplied by the `radius` gives the maximum size
+ /// of a miter spike, at which it is clipped for
+ ///
+ /// _STROKER_LINEJOIN_MITER_VARIABLE or replaced with a bevel join for
+ ///
+ /// _STROKER_LINEJOIN_MITER_FIXED.
+ /// This function calls
+ /// _Stroker_Rewind automatically.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_Set")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_Set")] + internal static extern void FTStrokerSetNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "FT_Fixed")] int radius, [NativeName(NativeNameType.Param, "line_cap")] [NativeName(NativeNameType.Type, "FT_Stroker_LineCap")] FTStrokerLineCap lineCap, [NativeName(NativeNameType.Param, "line_join")] [NativeName(NativeNameType.Type, "FT_Stroker_LineJoin")] FTStrokerLineJoin lineJoin, [NativeName(NativeNameType.Param, "miter_limit")] [NativeName(NativeNameType.Type, "FT_Fixed")] int miterLimit); + + /// /// ************************************************************************
///
/// FT_Stroker_Set
///
/// :
/// Reset a stroker object's attributes.
///
/// :
/// stroker ::
/// The target stroker handle.
/// radius ::
/// The border radius.
/// line_cap ::
/// The line cap style.
/// line_join ::
/// The line join style.
/// miter_limit ::
/// The maximum reciprocal sine of half-angle at the miter join,
/// expressed as 16.16 fixed-point value.
///
/// The `miter_limit` multiplied by the `radius` gives the maximum size
/// of a miter spike, at which it is clipped for
///
/// _STROKER_LINEJOIN_MITER_VARIABLE or replaced with a bevel join for
///
/// _STROKER_LINEJOIN_MITER_FIXED.
/// This function calls
/// _Stroker_Rewind automatically.
///
[NativeName(NativeNameType.Func, "FT_Stroker_Set")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTStrokerSet([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "FT_Fixed")] int radius, [NativeName(NativeNameType.Param, "line_cap")] [NativeName(NativeNameType.Type, "FT_Stroker_LineCap")] FTStrokerLineCap lineCap, [NativeName(NativeNameType.Param, "line_join")] [NativeName(NativeNameType.Type, "FT_Stroker_LineJoin")] FTStrokerLineJoin lineJoin, [NativeName(NativeNameType.Param, "miter_limit")] [NativeName(NativeNameType.Type, "FT_Fixed")] int miterLimit) + { + FTStrokerSetNative(stroker, radius, lineCap, lineJoin, miterLimit); + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_Rewind
+ ///
+ /// :
+ /// Reset a stroker object without changing its attributes. You should
+ /// call this function before beginning a new series of calls to
+ ///
+ /// _Stroker_BeginSubPath or
+ /// _Stroker_EndSubPath.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_Rewind")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_Rewind")] + internal static extern void FTStrokerRewindNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker); + + /// /// ************************************************************************
///
/// FT_Stroker_Rewind
///
/// :
/// Reset a stroker object without changing its attributes. You should
/// call this function before beginning a new series of calls to
///
/// _Stroker_BeginSubPath or
/// _Stroker_EndSubPath.
///
/// :
/// stroker ::
/// The target stroker handle.
///
[NativeName(NativeNameType.Func, "FT_Stroker_Rewind")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTStrokerRewind([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker) + { + FTStrokerRewindNative(stroker); + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_ParseOutline
+ ///
+ /// :
+ /// A convenience function used to parse a whole outline with the stroker.
+ /// The resulting outline(s) can be retrieved later by functions like
+ ///
+ /// _Stroker_GetCounts and
+ /// _Stroker_Export.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ /// outline ::
+ /// The source outline.
+ /// opened ::
+ /// A boolean. If~1, the outline is treated as an open path instead of
+ /// a closed one.
+ ///
+ ///
+ /// If `opened` is~1, the outline is processed as an open path, and the
+ /// stroker generates a single 'stroke' outline.
+ /// This function calls
+ /// _Stroker_Rewind automatically.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_ParseOutline")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_ParseOutline")] + internal static extern int FTStrokerParseOutlineNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "opened")] [NativeName(NativeNameType.Type, "FT_Bool")] byte opened); + + /// /// ************************************************************************
///
/// FT_Stroker_ParseOutline
///
/// :
/// A convenience function used to parse a whole outline with the stroker.
/// The resulting outline(s) can be retrieved later by functions like
///
/// _Stroker_GetCounts and
/// _Stroker_Export.
///
/// :
/// stroker ::
/// The target stroker handle.
/// outline ::
/// The source outline.
/// opened ::
/// A boolean. If~1, the outline is treated as an open path instead of
/// a closed one.
///
///
/// If `opened` is~1, the outline is processed as an open path, and the
/// stroker generates a single 'stroke' outline.
/// This function calls
/// _Stroker_Rewind automatically.
///
[NativeName(NativeNameType.Func, "FT_Stroker_ParseOutline")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerParseOutline([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline, [NativeName(NativeNameType.Param, "opened")] [NativeName(NativeNameType.Type, "FT_Bool")] byte opened) + { + int ret = FTStrokerParseOutlineNative(stroker, outline, opened); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_ParseOutline
///
/// :
/// A convenience function used to parse a whole outline with the stroker.
/// The resulting outline(s) can be retrieved later by functions like
///
/// _Stroker_GetCounts and
/// _Stroker_Export.
///
/// :
/// stroker ::
/// The target stroker handle.
/// outline ::
/// The source outline.
/// opened ::
/// A boolean. If~1, the outline is treated as an open path instead of
/// a closed one.
///
///
/// If `opened` is~1, the outline is processed as an open path, and the
/// stroker generates a single 'stroke' outline.
/// This function calls
/// _Stroker_Rewind automatically.
///
[NativeName(NativeNameType.Func, "FT_Stroker_ParseOutline")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerParseOutline([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline, [NativeName(NativeNameType.Param, "opened")] [NativeName(NativeNameType.Type, "FT_Bool")] byte opened) + { + fixed (FTOutline* poutline = &outline) + { + int ret = FTStrokerParseOutlineNative(stroker, (FTOutline*)poutline, opened); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_BeginSubPath
+ ///
+ /// :
+ /// Start a new sub-path in the stroker.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ /// to ::
+ /// A pointer to the start vector.
+ /// open ::
+ /// A boolean. If~1, the sub-path is treated as an open one.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_BeginSubPath")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_BeginSubPath")] + internal static extern int FTStrokerBeginSubPathNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to, [NativeName(NativeNameType.Param, "open")] [NativeName(NativeNameType.Type, "FT_Bool")] byte open); + + /// /// ************************************************************************
///
/// FT_Stroker_BeginSubPath
///
/// :
/// Start a new sub-path in the stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// to ::
/// A pointer to the start vector.
/// open ::
/// A boolean. If~1, the sub-path is treated as an open one.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_BeginSubPath")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerBeginSubPath([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to, [NativeName(NativeNameType.Param, "open")] [NativeName(NativeNameType.Type, "FT_Bool")] byte open) + { + int ret = FTStrokerBeginSubPathNative(stroker, to, open); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_BeginSubPath
///
/// :
/// Start a new sub-path in the stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// to ::
/// A pointer to the start vector.
/// open ::
/// A boolean. If~1, the sub-path is treated as an open one.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_BeginSubPath")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerBeginSubPath([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to, [NativeName(NativeNameType.Param, "open")] [NativeName(NativeNameType.Type, "FT_Bool")] byte open) + { + fixed (FTVector* pto = &to) + { + int ret = FTStrokerBeginSubPathNative(stroker, (FTVector*)pto, open); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_EndSubPath
+ ///
+ /// :
+ /// Close the current sub-path in the stroker.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_EndSubPath")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_EndSubPath")] + internal static extern int FTStrokerEndSubPathNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker); + + /// /// ************************************************************************
///
/// FT_Stroker_EndSubPath
///
/// :
/// Close the current sub-path in the stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_EndSubPath")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerEndSubPath([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker) + { + int ret = FTStrokerEndSubPathNative(stroker); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_LineTo
+ ///
+ /// :
+ /// 'Draw' a single line segment in the stroker's current sub-path, from
+ /// the last position.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ /// to ::
+ /// A pointer to the destination point.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_LineTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_LineTo")] + internal static extern int FTStrokerLineToNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to); + + /// /// ************************************************************************
///
/// FT_Stroker_LineTo
///
/// :
/// 'Draw' a single line segment in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_LineTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerLineTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + int ret = FTStrokerLineToNative(stroker, to); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_LineTo
///
/// :
/// 'Draw' a single line segment in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_LineTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerLineTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pto = &to) + { + int ret = FTStrokerLineToNative(stroker, (FTVector*)pto); + return ret; + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_ConicTo
+ ///
+ /// :
+ /// 'Draw' a single quadratic Bezier in the stroker's current sub-path,
+ /// from the last position.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ /// control ::
+ /// A pointer to a Bezier control point.
+ /// to ::
+ /// A pointer to the destination point.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_ConicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_ConicTo")] + internal static extern int FTStrokerConicToNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to); + + /// /// ************************************************************************
///
/// FT_Stroker_ConicTo
///
/// :
/// 'Draw' a single quadratic Bezier in the stroker's current sub-path,
/// from the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control ::
/// A pointer to a Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_ConicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerConicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + int ret = FTStrokerConicToNative(stroker, control, to); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_ConicTo
///
/// :
/// 'Draw' a single quadratic Bezier in the stroker's current sub-path,
/// from the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control ::
/// A pointer to a Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_ConicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerConicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + fixed (FTVector* pcontrol = &control) + { + int ret = FTStrokerConicToNative(stroker, (FTVector*)pcontrol, to); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_ConicTo
///
/// :
/// 'Draw' a single quadratic Bezier in the stroker's current sub-path,
/// from the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control ::
/// A pointer to a Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_ConicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerConicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pto = &to) + { + int ret = FTStrokerConicToNative(stroker, control, (FTVector*)pto); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_ConicTo
///
/// :
/// 'Draw' a single quadratic Bezier in the stroker's current sub-path,
/// from the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control ::
/// A pointer to a Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_ConicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerConicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pcontrol = &control) + { + fixed (FTVector* pto = &to) + { + int ret = FTStrokerConicToNative(stroker, (FTVector*)pcontrol, (FTVector*)pto); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_CubicTo
+ ///
+ /// :
+ /// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
+ /// the last position.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ /// control1 ::
+ /// A pointer to the first Bezier control point.
+ /// control2 ::
+ /// A pointer to second Bezier control point.
+ /// to ::
+ /// A pointer to the destination point.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_CubicTo")] + internal static extern int FTStrokerCubicToNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to); + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerCubicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + int ret = FTStrokerCubicToNative(stroker, control1, control2, to); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerCubicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + fixed (FTVector* pcontrol1 = &control1) + { + int ret = FTStrokerCubicToNative(stroker, (FTVector*)pcontrol1, control2, to); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerCubicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + fixed (FTVector* pcontrol2 = &control2) + { + int ret = FTStrokerCubicToNative(stroker, control1, (FTVector*)pcontrol2, to); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerCubicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* to) + { + fixed (FTVector* pcontrol1 = &control1) + { + fixed (FTVector* pcontrol2 = &control2) + { + int ret = FTStrokerCubicToNative(stroker, (FTVector*)pcontrol1, (FTVector*)pcontrol2, to); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerCubicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pto = &to) + { + int ret = FTStrokerCubicToNative(stroker, control1, control2, (FTVector*)pto); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerCubicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pcontrol1 = &control1) + { + fixed (FTVector* pto = &to) + { + int ret = FTStrokerCubicToNative(stroker, (FTVector*)pcontrol1, control2, (FTVector*)pto); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerCubicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pcontrol2 = &control2) + { + fixed (FTVector* pto = &to) + { + int ret = FTStrokerCubicToNative(stroker, control1, (FTVector*)pcontrol2, (FTVector*)pto); + return ret; + } + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_CubicTo
///
/// :
/// 'Draw' a single cubic Bezier in the stroker's current sub-path, from
/// the last position.
///
/// :
/// stroker ::
/// The target stroker handle.
/// control1 ::
/// A pointer to the first Bezier control point.
/// control2 ::
/// A pointer to second Bezier control point.
/// to ::
/// A pointer to the destination point.
///
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_CubicTo")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerCubicTo([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "control1")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control1, [NativeName(NativeNameType.Param, "control2")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector control2, [NativeName(NativeNameType.Param, "to")] [NativeName(NativeNameType.Type, "FT_Vector*")] ref FTVector to) + { + fixed (FTVector* pcontrol1 = &control1) + { + fixed (FTVector* pcontrol2 = &control2) + { + fixed (FTVector* pto = &to) + { + int ret = FTStrokerCubicToNative(stroker, (FTVector*)pcontrol1, (FTVector*)pcontrol2, (FTVector*)pto); + return ret; + } + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_GetBorderCounts
+ ///
+ /// :
+ /// Call this function once you have finished parsing your paths with the
+ /// stroker. It returns the number of points and contours necessary to
+ /// export one of the 'border' or 'stroke' outlines generated by the
+ /// stroker.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ /// border ::
+ /// The border index.
+ ///
+ /// :
+ /// anum_points ::
+ /// The number of points.
+ /// anum_contours ::
+ /// The number of contours.
+ ///
+ ///
+ /// When the outline, or a sub-path, is 'opened', the stroker merges the
+ /// 'border' outlines with caps. The 'left' border receives all points,
+ /// while the 'right' border becomes empty.
+ /// Use the function
+ /// _Stroker_GetCounts instead if you want to retrieve
+ /// the counts associated to both borders.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_GetBorderCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_GetBorderCounts")] + internal static extern int FTStrokerGetBorderCountsNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumContours); + + /// /// ************************************************************************
///
/// FT_Stroker_GetBorderCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export one of the 'border' or 'stroke' outlines generated by the
/// stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_GetCounts instead if you want to retrieve
/// the counts associated to both borders.
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetBorderCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerGetBorderCounts([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumContours) + { + int ret = FTStrokerGetBorderCountsNative(stroker, border, anumPoints, anumContours); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetBorderCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export one of the 'border' or 'stroke' outlines generated by the
/// stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_GetCounts instead if you want to retrieve
/// the counts associated to both borders.
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetBorderCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerGetBorderCounts([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumContours) + { + fixed (uint* panumPoints = &anumPoints) + { + int ret = FTStrokerGetBorderCountsNative(stroker, border, (uint*)panumPoints, anumContours); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetBorderCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export one of the 'border' or 'stroke' outlines generated by the
/// stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_GetCounts instead if you want to retrieve
/// the counts associated to both borders.
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetBorderCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerGetBorderCounts([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumContours) + { + fixed (uint* panumContours = &anumContours) + { + int ret = FTStrokerGetBorderCountsNative(stroker, border, anumPoints, (uint*)panumContours); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetBorderCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export one of the 'border' or 'stroke' outlines generated by the
/// stroker.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_GetCounts instead if you want to retrieve
/// the counts associated to both borders.
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetBorderCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerGetBorderCounts([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumContours) + { + fixed (uint* panumPoints = &anumPoints) + { + fixed (uint* panumContours = &anumContours) + { + int ret = FTStrokerGetBorderCountsNative(stroker, border, (uint*)panumPoints, (uint*)panumContours); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_ExportBorder
+ ///
+ /// :
+ /// Call this function after
+ /// _Stroker_GetBorderCounts to export the
+ /// corresponding border to your own
+ /// _Outline structure.
+ /// Note that this function appends the border points and contours to your
+ /// outline, but does not try to resize its arrays.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ /// border ::
+ /// The border index.
+ /// outline ::
+ /// The target outline handle.
+ ///
+ /// When an outline, or a sub-path, is 'closed', the stroker generates two
+ /// independent 'border' outlines, named 'left' and 'right'.
+ /// When the outline, or a sub-path, is 'opened', the stroker merges the
+ /// 'border' outlines with caps. The 'left' border receives all points,
+ /// while the 'right' border becomes empty.
+ /// Use the function
+ /// _Stroker_Export instead if you want to retrieve
+ /// all borders at once.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_ExportBorder")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_ExportBorder")] + internal static extern void FTStrokerExportBorderNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline); + + /// /// ************************************************************************
///
/// FT_Stroker_ExportBorder
///
/// :
/// Call this function after
/// _Stroker_GetBorderCounts to export the
/// corresponding border to your own
/// _Outline structure.
/// Note that this function appends the border points and contours to your
/// outline, but does not try to resize its arrays.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
/// outline ::
/// The target outline handle.
///
/// When an outline, or a sub-path, is 'closed', the stroker generates two
/// independent 'border' outlines, named 'left' and 'right'.
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_Export instead if you want to retrieve
/// all borders at once.
///
[NativeName(NativeNameType.Func, "FT_Stroker_ExportBorder")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTStrokerExportBorder([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline) + { + FTStrokerExportBorderNative(stroker, border, outline); + } + + /// /// ************************************************************************
///
/// FT_Stroker_ExportBorder
///
/// :
/// Call this function after
/// _Stroker_GetBorderCounts to export the
/// corresponding border to your own
/// _Outline structure.
/// Note that this function appends the border points and contours to your
/// outline, but does not try to resize its arrays.
///
/// :
/// stroker ::
/// The target stroker handle.
/// border ::
/// The border index.
/// outline ::
/// The target outline handle.
///
/// When an outline, or a sub-path, is 'closed', the stroker generates two
/// independent 'border' outlines, named 'left' and 'right'.
/// When the outline, or a sub-path, is 'opened', the stroker merges the
/// 'border' outlines with caps. The 'left' border receives all points,
/// while the 'right' border becomes empty.
/// Use the function
/// _Stroker_Export instead if you want to retrieve
/// all borders at once.
///
[NativeName(NativeNameType.Func, "FT_Stroker_ExportBorder")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTStrokerExportBorder([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "FT_StrokerBorder")] FTStrokerBorder border, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline) + { + fixed (FTOutline* poutline = &outline) + { + FTStrokerExportBorderNative(stroker, border, (FTOutline*)poutline); + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_GetCounts
+ ///
+ /// :
+ /// Call this function once you have finished parsing your paths with the
+ /// stroker. It returns the number of points and contours necessary to
+ /// export all points/borders from the stroked outline/path.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ ///
+ /// :
+ /// anum_points ::
+ /// The number of points.
+ /// anum_contours ::
+ /// The number of contours.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_GetCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_GetCounts")] + internal static extern int FTStrokerGetCountsNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumContours); + + /// /// ************************************************************************
///
/// FT_Stroker_GetCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export all points/borders from the stroked outline/path.
///
/// :
/// stroker ::
/// The target stroker handle.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerGetCounts([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumContours) + { + int ret = FTStrokerGetCountsNative(stroker, anumPoints, anumContours); + return ret; + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export all points/borders from the stroked outline/path.
///
/// :
/// stroker ::
/// The target stroker handle.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerGetCounts([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumContours) + { + fixed (uint* panumPoints = &anumPoints) + { + int ret = FTStrokerGetCountsNative(stroker, (uint*)panumPoints, anumContours); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export all points/borders from the stroked outline/path.
///
/// :
/// stroker ::
/// The target stroker handle.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerGetCounts([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] uint* anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumContours) + { + fixed (uint* panumContours = &anumContours) + { + int ret = FTStrokerGetCountsNative(stroker, anumPoints, (uint*)panumContours); + return ret; + } + } + + /// /// ************************************************************************
///
/// FT_Stroker_GetCounts
///
/// :
/// Call this function once you have finished parsing your paths with the
/// stroker. It returns the number of points and contours necessary to
/// export all points/borders from the stroked outline/path.
///
/// :
/// stroker ::
/// The target stroker handle.
///
/// :
/// anum_points ::
/// The number of points.
/// anum_contours ::
/// The number of contours.
///
///
[NativeName(NativeNameType.Func, "FT_Stroker_GetCounts")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTStrokerGetCounts([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "anum_points")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumPoints, [NativeName(NativeNameType.Param, "anum_contours")] [NativeName(NativeNameType.Type, "FT_UInt*")] ref uint anumContours) + { + fixed (uint* panumPoints = &anumPoints) + { + fixed (uint* panumContours = &anumContours) + { + int ret = FTStrokerGetCountsNative(stroker, (uint*)panumPoints, (uint*)panumContours); + return ret; + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_Export
+ ///
+ /// :
+ /// Call this function after
+ /// _Stroker_GetBorderCounts to export all
+ /// borders to your own
+ /// _Outline structure.
+ /// Note that this function appends the border points and contours to your
+ /// outline, but does not try to resize its arrays.
+ ///
+ /// :
+ /// stroker ::
+ /// The target stroker handle.
+ /// outline ::
+ /// The target outline handle.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_Export")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_Export")] + internal static extern void FTStrokerExportNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline); + + /// /// ************************************************************************
///
/// FT_Stroker_Export
///
/// :
/// Call this function after
/// _Stroker_GetBorderCounts to export all
/// borders to your own
/// _Outline structure.
/// Note that this function appends the border points and contours to your
/// outline, but does not try to resize its arrays.
///
/// :
/// stroker ::
/// The target stroker handle.
/// outline ::
/// The target outline handle.
///
[NativeName(NativeNameType.Func, "FT_Stroker_Export")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTStrokerExport([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] FTOutline* outline) + { + FTStrokerExportNative(stroker, outline); + } + + /// /// ************************************************************************
///
/// FT_Stroker_Export
///
/// :
/// Call this function after
/// _Stroker_GetBorderCounts to export all
/// borders to your own
/// _Outline structure.
/// Note that this function appends the border points and contours to your
/// outline, but does not try to resize its arrays.
///
/// :
/// stroker ::
/// The target stroker handle.
/// outline ::
/// The target outline handle.
///
[NativeName(NativeNameType.Func, "FT_Stroker_Export")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTStrokerExport([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "outline")] [NativeName(NativeNameType.Type, "FT_Outline*")] ref FTOutline outline) + { + fixed (FTOutline* poutline = &outline) + { + FTStrokerExportNative(stroker, (FTOutline*)poutline); + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Stroker_Done
+ ///
+ /// :
+ /// Destroy a stroker object.
+ ///
+ /// :
+ /// stroker ::
+ /// A stroker handle. Can be `NULL`.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Stroker_Done")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Stroker_Done")] + internal static extern void FTStrokerDoneNative([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker); + + /// /// ************************************************************************
///
/// FT_Stroker_Done
///
/// :
/// Destroy a stroker object.
///
/// :
/// stroker ::
/// A stroker handle. Can be `NULL`.
///
[NativeName(NativeNameType.Func, "FT_Stroker_Done")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTStrokerDone([NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker) + { + FTStrokerDoneNative(stroker); + } + } +} diff --git a/Hexa.NET.FreeType/Generated/Functions.003.cs b/Hexa.NET.FreeType/Generated/Functions.003.cs new file mode 100644 index 0000000..efc56ca --- /dev/null +++ b/Hexa.NET.FreeType/Generated/Functions.003.cs @@ -0,0 +1,505 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.FreeType +{ + public unsafe partial class FreeType + { + + /// + /// ************************************************************************
+ ///
+ /// FT_Glyph_Stroke
+ ///
+ /// :
+ /// Stroke a given outline glyph object with a given stroker.
+ ///
+ /// :
+ /// pglyph ::
+ /// Source glyph handle on input, new glyph handle on output.
+ ///
+ /// :
+ /// stroker ::
+ /// A stroker handle.
+ /// destroy ::
+ /// A Boolean. If~1, the source glyph object is destroyed on success.
+ ///
+ ///
+ /// Adding stroke may yield a significantly wider and taller glyph
+ /// depending on how large of a radius was used to stroke the glyph. You
+ /// may need to manually adjust horizontal and vertical advance amounts to
+ /// account for this added size.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Glyph_Stroke")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Glyph_Stroke")] + internal static extern int FTGlyphStrokeNative([NativeName(NativeNameType.Param, "pglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* pglyph, [NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "destroy")] [NativeName(NativeNameType.Type, "FT_Bool")] byte destroy); + + /// /// ************************************************************************
///
/// FT_Glyph_Stroke
///
/// :
/// Stroke a given outline glyph object with a given stroker.
///
/// :
/// pglyph ::
/// Source glyph handle on input, new glyph handle on output.
///
/// :
/// stroker ::
/// A stroker handle.
/// destroy ::
/// A Boolean. If~1, the source glyph object is destroyed on success.
///
///
/// Adding stroke may yield a significantly wider and taller glyph
/// depending on how large of a radius was used to stroke the glyph. You
/// may need to manually adjust horizontal and vertical advance amounts to
/// account for this added size.
///
[NativeName(NativeNameType.Func, "FT_Glyph_Stroke")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGlyphStroke([NativeName(NativeNameType.Param, "pglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* pglyph, [NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "destroy")] [NativeName(NativeNameType.Type, "FT_Bool")] byte destroy) + { + int ret = FTGlyphStrokeNative(pglyph, stroker, destroy); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Glyph_StrokeBorder
+ ///
+ /// :
+ /// Stroke a given outline glyph object with a given stroker, but only
+ /// return either its inside or outside border.
+ ///
+ /// :
+ /// pglyph ::
+ /// Source glyph handle on input, new glyph handle on output.
+ ///
+ /// :
+ /// stroker ::
+ /// A stroker handle.
+ /// inside ::
+ /// A Boolean. If~1, return the inside border, otherwise the outside
+ /// border.
+ /// destroy ::
+ /// A Boolean. If~1, the source glyph object is destroyed on success.
+ ///
+ ///
+ /// Adding stroke may yield a significantly wider and taller glyph
+ /// depending on how large of a radius was used to stroke the glyph. You
+ /// may need to manually adjust horizontal and vertical advance amounts to
+ /// account for this added size.
+ ///
+ [NativeName(NativeNameType.Func, "FT_Glyph_StrokeBorder")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Glyph_StrokeBorder")] + internal static extern int FTGlyphStrokeBorderNative([NativeName(NativeNameType.Param, "pglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* pglyph, [NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "inside")] [NativeName(NativeNameType.Type, "FT_Bool")] byte inside, [NativeName(NativeNameType.Param, "destroy")] [NativeName(NativeNameType.Type, "FT_Bool")] byte destroy); + + /// /// ************************************************************************
///
/// FT_Glyph_StrokeBorder
///
/// :
/// Stroke a given outline glyph object with a given stroker, but only
/// return either its inside or outside border.
///
/// :
/// pglyph ::
/// Source glyph handle on input, new glyph handle on output.
///
/// :
/// stroker ::
/// A stroker handle.
/// inside ::
/// A Boolean. If~1, return the inside border, otherwise the outside
/// border.
/// destroy ::
/// A Boolean. If~1, the source glyph object is destroyed on success.
///
///
/// Adding stroke may yield a significantly wider and taller glyph
/// depending on how large of a radius was used to stroke the glyph. You
/// may need to manually adjust horizontal and vertical advance amounts to
/// account for this added size.
///
[NativeName(NativeNameType.Func, "FT_Glyph_StrokeBorder")] + [return: NativeName(NativeNameType.Type, "FT_Error")] + public static int FTGlyphStrokeBorder([NativeName(NativeNameType.Param, "pglyph")] [NativeName(NativeNameType.Type, "FT_Glyph*")] FTGlyph* pglyph, [NativeName(NativeNameType.Param, "stroker")] [NativeName(NativeNameType.Type, "FT_Stroker")] FTStroker stroker, [NativeName(NativeNameType.Param, "inside")] [NativeName(NativeNameType.Type, "FT_Bool")] byte inside, [NativeName(NativeNameType.Param, "destroy")] [NativeName(NativeNameType.Type, "FT_Bool")] byte destroy) + { + int ret = FTGlyphStrokeBorderNative(pglyph, stroker, inside, destroy); + return ret; + } + + /// + /// Embolden a glyph by a 'reasonable' value (which is highly a matter of
+ /// taste). This function is actually a convenience function, providing
+ /// a wrapper for
+ /// _Outline_Embolden and
+ /// _Bitmap_Embolden.
+ ///
+ /// For emboldened outlines the height, width, and advance metrics are
+ /// increased by the strength of the emboldening -- this even affects
+ /// mono-width fonts!
+ ///
+ /// You can also call
+ /// _Outline_Get_CBox to get precise values.
+ ///
+ [NativeName(NativeNameType.Func, "FT_GlyphSlot_Embolden")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_GlyphSlot_Embolden")] + internal static extern void FTGlyphSlotEmboldenNative([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot); + + /// /// Embolden a glyph by a 'reasonable' value (which is highly a matter of
/// taste). This function is actually a convenience function, providing
/// a wrapper for
/// _Outline_Embolden and
/// _Bitmap_Embolden.
///
/// For emboldened outlines the height, width, and advance metrics are
/// increased by the strength of the emboldening -- this even affects
/// mono-width fonts!
///
/// You can also call
/// _Outline_Get_CBox to get precise values.
///
[NativeName(NativeNameType.Func, "FT_GlyphSlot_Embolden")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTGlyphSlotEmbolden([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot) + { + FTGlyphSlotEmboldenNative(slot); + } + + /// + /// Precisely adjust the glyph weight either horizontally or vertically.
+ /// The `xdelta` and `ydelta` values are fractions of the face Em size
+ /// (in fixed-point format). Considering that a regular face would have
+ /// stem widths on the order of 0.1 Em, a delta of 0.05 (0x0CCC) should
+ /// be very noticeable. To increase or decrease the weight, use positive
+ /// or negative values, respectively.
+ ///
+ [NativeName(NativeNameType.Func, "FT_GlyphSlot_AdjustWeight")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_GlyphSlot_AdjustWeight")] + internal static extern void FTGlyphSlotAdjustWeightNative([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot, [NativeName(NativeNameType.Param, "xdelta")] [NativeName(NativeNameType.Type, "FT_Fixed")] int xdelta, [NativeName(NativeNameType.Param, "ydelta")] [NativeName(NativeNameType.Type, "FT_Fixed")] int ydelta); + + /// /// Precisely adjust the glyph weight either horizontally or vertically.
/// The `xdelta` and `ydelta` values are fractions of the face Em size
/// (in fixed-point format). Considering that a regular face would have
/// stem widths on the order of 0.1 Em, a delta of 0.05 (0x0CCC) should
/// be very noticeable. To increase or decrease the weight, use positive
/// or negative values, respectively.
///
[NativeName(NativeNameType.Func, "FT_GlyphSlot_AdjustWeight")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTGlyphSlotAdjustWeight([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot, [NativeName(NativeNameType.Param, "xdelta")] [NativeName(NativeNameType.Type, "FT_Fixed")] int xdelta, [NativeName(NativeNameType.Param, "ydelta")] [NativeName(NativeNameType.Type, "FT_Fixed")] int ydelta) + { + FTGlyphSlotAdjustWeightNative(slot, xdelta, ydelta); + } + + /// + /// Slant an outline glyph to the right by about 12 degrees.
+ ///
+ [NativeName(NativeNameType.Func, "FT_GlyphSlot_Oblique")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_GlyphSlot_Oblique")] + internal static extern void FTGlyphSlotObliqueNative([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot); + + /// /// Slant an outline glyph to the right by about 12 degrees.
///
[NativeName(NativeNameType.Func, "FT_GlyphSlot_Oblique")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTGlyphSlotOblique([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot) + { + FTGlyphSlotObliqueNative(slot); + } + + /// + /// Slant an outline glyph by a given sine of an angle. You can apply
+ /// slant along either x- or y-axis by choosing a corresponding non-zero
+ /// argument. If both slants are non-zero, some affine transformation
+ /// will result.
+ ///
+ [NativeName(NativeNameType.Func, "FT_GlyphSlot_Slant")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_GlyphSlot_Slant")] + internal static extern void FTGlyphSlotSlantNative([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot, [NativeName(NativeNameType.Param, "xslant")] [NativeName(NativeNameType.Type, "FT_Fixed")] int xslant, [NativeName(NativeNameType.Param, "yslant")] [NativeName(NativeNameType.Type, "FT_Fixed")] int yslant); + + /// /// Slant an outline glyph by a given sine of an angle. You can apply
/// slant along either x- or y-axis by choosing a corresponding non-zero
/// argument. If both slants are non-zero, some affine transformation
/// will result.
///
[NativeName(NativeNameType.Func, "FT_GlyphSlot_Slant")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTGlyphSlotSlant([NativeName(NativeNameType.Param, "slot")] [NativeName(NativeNameType.Type, "FT_GlyphSlot")] FTGlyphSlot slot, [NativeName(NativeNameType.Param, "xslant")] [NativeName(NativeNameType.Type, "FT_Fixed")] int xslant, [NativeName(NativeNameType.Param, "yslant")] [NativeName(NativeNameType.Type, "FT_Fixed")] int yslant) + { + FTGlyphSlotSlantNative(slot, xslant, yslant); + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Sin
+ ///
+ /// :
+ /// Return the sinus of a given angle in fixed-point format.
+ ///
+ /// :
+ /// angle ::
+ /// The input angle.
+ ///
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Sin")] + [return: NativeName(NativeNameType.Type, "FT_Fixed")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Sin")] + internal static extern int FTSinNative([NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle); + + /// /// ************************************************************************
///
/// FT_Sin
///
/// :
/// Return the sinus of a given angle in fixed-point format.
///
/// :
/// angle ::
/// The input angle.
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Sin")] + [return: NativeName(NativeNameType.Type, "FT_Fixed")] + public static int FTSin([NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle) + { + int ret = FTSinNative(angle); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Cos
+ ///
+ /// :
+ /// Return the cosinus of a given angle in fixed-point format.
+ ///
+ /// :
+ /// angle ::
+ /// The input angle.
+ ///
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Cos")] + [return: NativeName(NativeNameType.Type, "FT_Fixed")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Cos")] + internal static extern int FTCosNative([NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle); + + /// /// ************************************************************************
///
/// FT_Cos
///
/// :
/// Return the cosinus of a given angle in fixed-point format.
///
/// :
/// angle ::
/// The input angle.
///
///
///
///
[NativeName(NativeNameType.Func, "FT_Cos")] + [return: NativeName(NativeNameType.Type, "FT_Fixed")] + public static int FTCos([NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle) + { + int ret = FTCosNative(angle); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Tan
+ ///
+ /// :
+ /// Return the tangent of a given angle in fixed-point format.
+ ///
+ /// :
+ /// angle ::
+ /// The input angle.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Tan")] + [return: NativeName(NativeNameType.Type, "FT_Fixed")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Tan")] + internal static extern int FTTanNative([NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle); + + /// /// ************************************************************************
///
/// FT_Tan
///
/// :
/// Return the tangent of a given angle in fixed-point format.
///
/// :
/// angle ::
/// The input angle.
///
///
///
[NativeName(NativeNameType.Func, "FT_Tan")] + [return: NativeName(NativeNameType.Type, "FT_Fixed")] + public static int FTTan([NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle) + { + int ret = FTTanNative(angle); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Atan2
+ ///
+ /// :
+ /// Return the arc-tangent corresponding to a given vector (x,y) in the 2d
+ /// plane.
+ ///
+ /// :
+ /// x ::
+ /// The horizontal vector coordinate.
+ /// y ::
+ /// The vertical vector coordinate.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Atan2")] + [return: NativeName(NativeNameType.Type, "FT_Angle")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Atan2")] + internal static extern int FTAtan2Native([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "FT_Fixed")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "FT_Fixed")] int y); + + /// /// ************************************************************************
///
/// FT_Atan2
///
/// :
/// Return the arc-tangent corresponding to a given vector (x,y) in the 2d
/// plane.
///
/// :
/// x ::
/// The horizontal vector coordinate.
/// y ::
/// The vertical vector coordinate.
///
///
///
[NativeName(NativeNameType.Func, "FT_Atan2")] + [return: NativeName(NativeNameType.Type, "FT_Angle")] + public static int FTAtan2([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "FT_Fixed")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "FT_Fixed")] int y) + { + int ret = FTAtan2Native(x, y); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Angle_Diff
+ ///
+ /// :
+ /// Return the difference between two angles. The result is always
+ /// constrained to the ]-PI..PI] interval.
+ ///
+ /// :
+ /// angle1 ::
+ /// First angle.
+ /// angle2 ::
+ /// Second angle.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Angle_Diff")] + [return: NativeName(NativeNameType.Type, "FT_Angle")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Angle_Diff")] + internal static extern int FTAngleDiffNative([NativeName(NativeNameType.Param, "angle1")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle1, [NativeName(NativeNameType.Param, "angle2")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle2); + + /// /// ************************************************************************
///
/// FT_Angle_Diff
///
/// :
/// Return the difference between two angles. The result is always
/// constrained to the ]-PI..PI] interval.
///
/// :
/// angle1 ::
/// First angle.
/// angle2 ::
/// Second angle.
///
///
///
[NativeName(NativeNameType.Func, "FT_Angle_Diff")] + [return: NativeName(NativeNameType.Type, "FT_Angle")] + public static int FTAngleDiff([NativeName(NativeNameType.Param, "angle1")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle1, [NativeName(NativeNameType.Param, "angle2")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle2) + { + int ret = FTAngleDiffNative(angle1, angle2); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Vector_Unit
+ ///
+ /// :
+ /// Return the unit vector corresponding to a given angle. After the
+ /// call, the value of `vec.x` will be `cos(angle)`, and the value of
+ /// `vec.y` will be `sin(angle)`.
+ /// This function is useful to retrieve both the sinus and cosinus of a
+ /// given angle quickly.
+ ///
+ /// :
+ /// vec ::
+ /// The address of target vector.
+ ///
+ /// :
+ /// angle ::
+ /// The input angle.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Vector_Unit")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Vector_Unit")] + internal static extern void FTVectorUnitNative([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec, [NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle); + + /// /// ************************************************************************
///
/// FT_Vector_Unit
///
/// :
/// Return the unit vector corresponding to a given angle. After the
/// call, the value of `vec.x` will be `cos(angle)`, and the value of
/// `vec.y` will be `sin(angle)`.
/// This function is useful to retrieve both the sinus and cosinus of a
/// given angle quickly.
///
/// :
/// vec ::
/// The address of target vector.
///
/// :
/// angle ::
/// The input angle.
///
///
[NativeName(NativeNameType.Func, "FT_Vector_Unit")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTVectorUnit([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec, [NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle) + { + FTVectorUnitNative(vec, angle); + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Vector_Rotate
+ ///
+ /// :
+ /// Rotate a vector by a given angle.
+ ///
+ /// :
+ /// vec ::
+ /// The address of target vector.
+ ///
+ /// :
+ /// angle ::
+ /// The input angle.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Vector_Rotate")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Vector_Rotate")] + internal static extern void FTVectorRotateNative([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec, [NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle); + + /// /// ************************************************************************
///
/// FT_Vector_Rotate
///
/// :
/// Rotate a vector by a given angle.
///
/// :
/// vec ::
/// The address of target vector.
///
/// :
/// angle ::
/// The input angle.
///
///
[NativeName(NativeNameType.Func, "FT_Vector_Rotate")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTVectorRotate([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec, [NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle) + { + FTVectorRotateNative(vec, angle); + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Vector_Length
+ ///
+ /// :
+ /// Return the length of a given vector.
+ ///
+ /// :
+ /// vec ::
+ /// The address of target vector.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Vector_Length")] + [return: NativeName(NativeNameType.Type, "FT_Fixed")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Vector_Length")] + internal static extern int FTVectorLengthNative([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec); + + /// /// ************************************************************************
///
/// FT_Vector_Length
///
/// :
/// Return the length of a given vector.
///
/// :
/// vec ::
/// The address of target vector.
///
///
///
[NativeName(NativeNameType.Func, "FT_Vector_Length")] + [return: NativeName(NativeNameType.Type, "FT_Fixed")] + public static int FTVectorLength([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec) + { + int ret = FTVectorLengthNative(vec); + return ret; + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Vector_Polarize
+ ///
+ /// :
+ /// Compute both the length and angle of a given vector.
+ ///
+ /// :
+ /// vec ::
+ /// The address of source vector.
+ ///
+ /// :
+ /// length ::
+ /// The vector length.
+ /// angle ::
+ /// The vector angle.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Vector_Polarize")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Vector_Polarize")] + internal static extern void FTVectorPolarizeNative([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_Fixed*")] int* length, [NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle*")] int* angle); + + /// /// ************************************************************************
///
/// FT_Vector_Polarize
///
/// :
/// Compute both the length and angle of a given vector.
///
/// :
/// vec ::
/// The address of source vector.
///
/// :
/// length ::
/// The vector length.
/// angle ::
/// The vector angle.
///
///
[NativeName(NativeNameType.Func, "FT_Vector_Polarize")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTVectorPolarize([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_Fixed*")] int* length, [NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle*")] int* angle) + { + FTVectorPolarizeNative(vec, length, angle); + } + + /// /// ************************************************************************
///
/// FT_Vector_Polarize
///
/// :
/// Compute both the length and angle of a given vector.
///
/// :
/// vec ::
/// The address of source vector.
///
/// :
/// length ::
/// The vector length.
/// angle ::
/// The vector angle.
///
///
[NativeName(NativeNameType.Func, "FT_Vector_Polarize")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTVectorPolarize([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_Fixed*")] ref int length, [NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle*")] int* angle) + { + fixed (int* plength = &length) + { + FTVectorPolarizeNative(vec, (int*)plength, angle); + } + } + + /// /// ************************************************************************
///
/// FT_Vector_Polarize
///
/// :
/// Compute both the length and angle of a given vector.
///
/// :
/// vec ::
/// The address of source vector.
///
/// :
/// length ::
/// The vector length.
/// angle ::
/// The vector angle.
///
///
[NativeName(NativeNameType.Func, "FT_Vector_Polarize")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTVectorPolarize([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_Fixed*")] int* length, [NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle*")] ref int angle) + { + fixed (int* pangle = &angle) + { + FTVectorPolarizeNative(vec, length, (int*)pangle); + } + } + + /// /// ************************************************************************
///
/// FT_Vector_Polarize
///
/// :
/// Compute both the length and angle of a given vector.
///
/// :
/// vec ::
/// The address of source vector.
///
/// :
/// length ::
/// The vector length.
/// angle ::
/// The vector angle.
///
///
[NativeName(NativeNameType.Func, "FT_Vector_Polarize")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTVectorPolarize([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_Fixed*")] ref int length, [NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle*")] ref int angle) + { + fixed (int* plength = &length) + { + fixed (int* pangle = &angle) + { + FTVectorPolarizeNative(vec, (int*)plength, (int*)pangle); + } + } + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Vector_From_Polar
+ ///
+ /// :
+ /// Compute vector coordinates from a length and angle.
+ ///
+ /// :
+ /// vec ::
+ /// The address of source vector.
+ ///
+ /// :
+ /// length ::
+ /// The vector length.
+ /// angle ::
+ /// The vector angle.
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "FT_Vector_From_Polar")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "FT_Vector_From_Polar")] + internal static extern void FTVectorFromPolarNative([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_Fixed")] int length, [NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle); + + /// /// ************************************************************************
///
/// FT_Vector_From_Polar
///
/// :
/// Compute vector coordinates from a length and angle.
///
/// :
/// vec ::
/// The address of source vector.
///
/// :
/// length ::
/// The vector length.
/// angle ::
/// The vector angle.
///
///
[NativeName(NativeNameType.Func, "FT_Vector_From_Polar")] + [return: NativeName(NativeNameType.Type, "void")] + public static void FTVectorFromPolar([NativeName(NativeNameType.Param, "vec")] [NativeName(NativeNameType.Type, "FT_Vector*")] FTVector* vec, [NativeName(NativeNameType.Param, "length")] [NativeName(NativeNameType.Type, "FT_Fixed")] int length, [NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "FT_Angle")] int angle) + { + FTVectorFromPolarNative(vec, length, angle); + } + + } +} diff --git a/Hexa.NET.FreeType/Generated/Handles.cs b/Hexa.NET.FreeType/Generated/Handles.cs index 6c13f45..3be08ff 100644 --- a/Hexa.NET.FreeType/Generated/Handles.cs +++ b/Hexa.NET.FreeType/Generated/Handles.cs @@ -734,4 +734,168 @@ namespace Hexa.NET.FreeType private string DebuggerDisplay => string.Format("FTSizeRequest [0x{0}]", Handle.ToString("X")); } + /// + /// ************************************************************************
+ ///
+ /// :
+ /// FT_Glyph
+ ///
+ /// :
+ /// Handle to an object used to model generic glyph images. It is a
+ /// pointer to the
+ /// _GlyphRec structure and can contain a glyph bitmap
+ /// or pointer.
+ ///
+ ///
+ [NativeName(NativeNameType.Typedef, "FT_Glyph")] + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct FTGlyph : IEquatable + { + public FTGlyph(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static FTGlyph Null => new FTGlyph(0); + public static implicit operator FTGlyph(nint handle) => new FTGlyph(handle); + public static bool operator ==(FTGlyph left, FTGlyph right) => left.Handle == right.Handle; + public static bool operator !=(FTGlyph left, FTGlyph right) => left.Handle != right.Handle; + public static bool operator ==(FTGlyph left, nint right) => left.Handle == right; + public static bool operator !=(FTGlyph left, nint right) => left.Handle != right; + public bool Equals(FTGlyph other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is FTGlyph handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("FTGlyph [0x{0}]", Handle.ToString("X")); + } + + /// + /// ************************************************************************
+ ///
+ /// :
+ /// FT_BitmapGlyph
+ ///
+ /// :
+ /// A handle to an object used to model a bitmap glyph image. This is a
+ /// 'sub-class' of
+ /// _Glyph, and a pointer to
+ /// _BitmapGlyphRec.
+ ///
+ [NativeName(NativeNameType.Typedef, "FT_BitmapGlyph")] + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct FTBitmapGlyph : IEquatable + { + public FTBitmapGlyph(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static FTBitmapGlyph Null => new FTBitmapGlyph(0); + public static implicit operator FTBitmapGlyph(nint handle) => new FTBitmapGlyph(handle); + public static bool operator ==(FTBitmapGlyph left, FTBitmapGlyph right) => left.Handle == right.Handle; + public static bool operator !=(FTBitmapGlyph left, FTBitmapGlyph right) => left.Handle != right.Handle; + public static bool operator ==(FTBitmapGlyph left, nint right) => left.Handle == right; + public static bool operator !=(FTBitmapGlyph left, nint right) => left.Handle != right; + public bool Equals(FTBitmapGlyph other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is FTBitmapGlyph handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("FTBitmapGlyph [0x{0}]", Handle.ToString("X")); + } + + /// + /// ************************************************************************
+ ///
+ /// :
+ /// FT_OutlineGlyph
+ ///
+ /// :
+ /// A handle to an object used to model an outline glyph image. This is a
+ /// 'sub-class' of
+ /// _Glyph, and a pointer to
+ /// _OutlineGlyphRec.
+ ///
+ [NativeName(NativeNameType.Typedef, "FT_OutlineGlyph")] + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct FTOutlineGlyph : IEquatable + { + public FTOutlineGlyph(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static FTOutlineGlyph Null => new FTOutlineGlyph(0); + public static implicit operator FTOutlineGlyph(nint handle) => new FTOutlineGlyph(handle); + public static bool operator ==(FTOutlineGlyph left, FTOutlineGlyph right) => left.Handle == right.Handle; + public static bool operator !=(FTOutlineGlyph left, FTOutlineGlyph right) => left.Handle != right.Handle; + public static bool operator ==(FTOutlineGlyph left, nint right) => left.Handle == right; + public static bool operator !=(FTOutlineGlyph left, nint right) => left.Handle != right; + public bool Equals(FTOutlineGlyph other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is FTOutlineGlyph handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("FTOutlineGlyph [0x{0}]", Handle.ToString("X")); + } + + /// + /// ************************************************************************
+ ///
+ /// :
+ /// FT_SvgGlyph
+ ///
+ /// :
+ /// A handle to an object used to model an SVG glyph. This is a
+ /// 'sub-class' of
+ /// _Glyph, and a pointer to
+ /// _SvgGlyphRec.
+ ///
+ ///
+ [NativeName(NativeNameType.Typedef, "FT_SvgGlyph")] + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct FTSvgGlyph : IEquatable + { + public FTSvgGlyph(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static FTSvgGlyph Null => new FTSvgGlyph(0); + public static implicit operator FTSvgGlyph(nint handle) => new FTSvgGlyph(handle); + public static bool operator ==(FTSvgGlyph left, FTSvgGlyph right) => left.Handle == right.Handle; + public static bool operator !=(FTSvgGlyph left, FTSvgGlyph right) => left.Handle != right.Handle; + public static bool operator ==(FTSvgGlyph left, nint right) => left.Handle == right; + public static bool operator !=(FTSvgGlyph left, nint right) => left.Handle != right; + public bool Equals(FTSvgGlyph other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is FTSvgGlyph handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("FTSvgGlyph [0x{0}]", Handle.ToString("X")); + } + + /// + /// ************************************************************************
+ ///
+ /// :
+ /// FT_Stroker
+ ///
+ /// :
+ /// Opaque handle to a path stroker object.
+ ///
+ [NativeName(NativeNameType.Typedef, "FT_Stroker")] + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct FTStroker : IEquatable + { + public FTStroker(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static FTStroker Null => new FTStroker(0); + public static implicit operator FTStroker(nint handle) => new FTStroker(handle); + public static bool operator ==(FTStroker left, FTStroker right) => left.Handle == right.Handle; + public static bool operator !=(FTStroker left, FTStroker right) => left.Handle != right.Handle; + public static bool operator ==(FTStroker left, nint right) => left.Handle == right; + public static bool operator !=(FTStroker left, nint right) => left.Handle != right; + public bool Equals(FTStroker other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is FTStroker handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("FTStroker [0x{0}]", Handle.ToString("X")); + } + } diff --git a/Hexa.NET.FreeType/Generated/Structures.000.cs b/Hexa.NET.FreeType/Generated/Structures.000.cs index 4f3be31..3c123c7 100644 --- a/Hexa.NET.FreeType/Generated/Structures.000.cs +++ b/Hexa.NET.FreeType/Generated/Structures.000.cs @@ -2284,4 +2284,2765 @@ public unsafe FTSizeRequestRec(FTSizeRequestType type = default, int width = def } + [NativeName(NativeNameType.StructOrClass, "FT_Glyph_Class_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTGlyphClass + { + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_GlyphRec
+ ///
+ /// :
+ /// The root glyph structure contains a given glyph image plus its advance
+ /// width in 16.16 fixed-point format.
+ ///
+ /// :
+ /// library ::
+ /// A handle to the FreeType library object.
+ /// clazz ::
+ /// A pointer to the glyph's class. Private.
+ /// format ::
+ /// The format of the glyph's image.
+ /// advance ::
+ /// A 16.16 vector that gives the glyph's advance width.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_GlyphRec_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTGlyphRec + { + [NativeName(NativeNameType.Field, "library")] + [NativeName(NativeNameType.Type, "FT_Library")] + public FTLibrary Library; + [NativeName(NativeNameType.Field, "clazz")] + [NativeName(NativeNameType.Type, "const FT_Glyph_Class*")] + public unsafe FTGlyphClass* Clazz; + [NativeName(NativeNameType.Field, "format")] + [NativeName(NativeNameType.Type, "FT_Glyph_Format")] + public FTGlyphFormat Format; + [NativeName(NativeNameType.Field, "advance")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector Advance; + + public unsafe FTGlyphRec(FTLibrary library = default, FTGlyphClass* clazz = default, FTGlyphFormat format = default, FTVector advance = default) + { + Library = library; + Clazz = clazz; + Format = format; + Advance = advance; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_BitmapGlyphRec
+ ///
+ /// :
+ /// A structure used for bitmap glyph images. This really is a
+ /// 'sub-class' of
+ /// _GlyphRec.
+ ///
+ /// :
+ /// root ::
+ /// The root fields of
+ /// _Glyph.
+ /// left ::
+ /// The left-side bearing, i.e., the horizontal distance from the
+ /// current pen position to the left border of the glyph bitmap.
+ /// top ::
+ /// The top-side bearing, i.e., the vertical distance from the current
+ /// pen position to the top border of the glyph bitmap. This distance
+ /// is positive for upwards~y!
+ /// bitmap ::
+ /// A descriptor for the bitmap.
+ ///
+ /// The corresponding pixel buffer is always owned by
+ /// _BitmapGlyph and
+ /// is thus created and destroyed with it.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_BitmapGlyphRec_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTBitmapGlyphRec + { + [NativeName(NativeNameType.Field, "root")] + [NativeName(NativeNameType.Type, "FT_GlyphRec")] + public FTGlyphRec Root; + [NativeName(NativeNameType.Field, "left")] + [NativeName(NativeNameType.Type, "FT_Int")] + public int Left; + [NativeName(NativeNameType.Field, "top")] + [NativeName(NativeNameType.Type, "FT_Int")] + public int Top; + [NativeName(NativeNameType.Field, "bitmap")] + [NativeName(NativeNameType.Type, "FT_Bitmap")] + public FTBitmap Bitmap; + + public unsafe FTBitmapGlyphRec(FTGlyphRec root = default, int left = default, int top = default, FTBitmap bitmap = default) + { + Root = root; + Left = left; + Top = top; + Bitmap = bitmap; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_OutlineGlyphRec
+ ///
+ /// :
+ /// A structure used for outline (vectorial) glyph images. This really is
+ /// a 'sub-class' of
+ /// _GlyphRec.
+ ///
+ /// :
+ /// root ::
+ /// The root
+ /// _Glyph fields.
+ /// outline ::
+ /// A descriptor for the outline.
+ ///
+ /// As the outline is extracted from a glyph slot, its coordinates are
+ /// expressed normally in 26.6 pixels, unless the flag
+ /// _LOAD_NO_SCALE
+ /// was used in
+ /// _Load_Glyph or
+ /// _Load_Char.
+ /// The outline's tables are always owned by the object and are destroyed
+ /// with it.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_OutlineGlyphRec_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTOutlineGlyphRec + { + [NativeName(NativeNameType.Field, "root")] + [NativeName(NativeNameType.Type, "FT_GlyphRec")] + public FTGlyphRec Root; + [NativeName(NativeNameType.Field, "outline")] + [NativeName(NativeNameType.Type, "FT_Outline")] + public FTOutline Outline; + + public unsafe FTOutlineGlyphRec(FTGlyphRec root = default, FTOutline outline = default) + { + Root = root; + Outline = outline; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_SvgGlyphRec
+ ///
+ /// :
+ /// A structure used for OT-SVG glyphs. This is a 'sub-class' of
+ ///
+ /// _GlyphRec.
+ ///
+ /// :
+ /// root ::
+ /// The root
+ /// _GlyphRec fields.
+ /// svg_document ::
+ /// A pointer to the SVG document.
+ /// svg_document_length ::
+ /// The length of `svg_document`.
+ /// glyph_index ::
+ /// The index of the glyph to be rendered.
+ /// metrics ::
+ /// A metrics object storing the size information.
+ /// units_per_EM ::
+ /// The size of the EM square.
+ /// start_glyph_id ::
+ /// The first glyph ID in the glyph range covered by this document.
+ /// end_glyph_id ::
+ /// The last glyph ID in the glyph range covered by this document.
+ /// transform ::
+ /// A 2x2 transformation matrix to apply to the glyph while rendering
+ /// it.
+ /// delta ::
+ /// Translation to apply to the glyph while rendering.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_SvgGlyphRec_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTSvgGlyphRec + { + [NativeName(NativeNameType.Field, "root")] + [NativeName(NativeNameType.Type, "FT_GlyphRec")] + public FTGlyphRec Root; + [NativeName(NativeNameType.Field, "svg_document")] + [NativeName(NativeNameType.Type, "FT_Byte*")] + public unsafe byte* SvgDocument; + [NativeName(NativeNameType.Field, "svg_document_length")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint SvgDocumentLength; + [NativeName(NativeNameType.Field, "glyph_index")] + [NativeName(NativeNameType.Type, "FT_UInt")] + public uint GlyphIndex; + [NativeName(NativeNameType.Field, "metrics")] + [NativeName(NativeNameType.Type, "FT_Size_Metrics")] + public FTSizeMetrics Metrics; + [NativeName(NativeNameType.Field, "units_per_EM")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UnitsPerEM; + [NativeName(NativeNameType.Field, "start_glyph_id")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort StartGlyphId; + [NativeName(NativeNameType.Field, "end_glyph_id")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort EndGlyphId; + [NativeName(NativeNameType.Field, "transform")] + [NativeName(NativeNameType.Type, "FT_Matrix")] + public FTMatrix Transform; + [NativeName(NativeNameType.Field, "delta")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector Delta; + + public unsafe FTSvgGlyphRec(FTGlyphRec root = default, byte* svgDocument = default, uint svgDocumentLength = default, uint glyphIndex = default, FTSizeMetrics metrics = default, ushort unitsPerEm = default, ushort startGlyphId = default, ushort endGlyphId = default, FTMatrix transform = default, FTVector delta = default) + { + Root = root; + SvgDocument = svgDocument; + SvgDocumentLength = svgDocumentLength; + GlyphIndex = glyphIndex; + Metrics = metrics; + UnitsPerEM = unitsPerEm; + StartGlyphId = startGlyphId; + EndGlyphId = endGlyphId; + Transform = transform; + Delta = delta; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Color
+ ///
+ /// :
+ /// This structure models a BGRA color value of a 'CPAL' palette entry.
+ /// The used color space is sRGB; the colors are not pre-multiplied, and
+ /// alpha values must be explicitly set.
+ ///
+ /// :
+ /// blue ::
+ /// Blue value.
+ /// green ::
+ /// Green value.
+ /// red ::
+ /// Red value.
+ /// alpha ::
+ /// Alpha value, giving the red, green, and blue color's opacity.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_Color_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTColor + { + [NativeName(NativeNameType.Field, "blue")] + [NativeName(NativeNameType.Type, "FT_Byte")] + public byte Blue; + [NativeName(NativeNameType.Field, "green")] + [NativeName(NativeNameType.Type, "FT_Byte")] + public byte Green; + [NativeName(NativeNameType.Field, "red")] + [NativeName(NativeNameType.Type, "FT_Byte")] + public byte Red; + [NativeName(NativeNameType.Field, "alpha")] + [NativeName(NativeNameType.Type, "FT_Byte")] + public byte Alpha; + + public unsafe FTColor(byte blue = default, byte green = default, byte red = default, byte alpha = default) + { + Blue = blue; + Green = green; + Red = red; + Alpha = alpha; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Palette_Data
+ ///
+ /// :
+ /// This structure holds the data of the 'CPAL' table.
+ ///
+ /// :
+ /// num_palettes ::
+ /// The number of palettes.
+ /// palette_name_ids ::
+ /// An optional read-only array of palette name IDs with `num_palettes`
+ /// elements, corresponding to entries like 'dark' or 'light' in the
+ /// font's 'name' table.
+ /// An empty name ID in the 'CPAL' table gets represented as value
+ /// 0xFFFF.
+ /// `NULL` if the font's 'CPAL' table doesn't contain appropriate data.
+ /// palette_flags ::
+ /// An optional read-only array of palette flags with `num_palettes`
+ /// elements. Possible values are an ORed combination of
+ ///
+ /// _PALETTE_FOR_LIGHT_BACKGROUND and
+ ///
+ /// _PALETTE_FOR_DARK_BACKGROUND.
+ /// `NULL` if the font's 'CPAL' table doesn't contain appropriate data.
+ /// num_palette_entries ::
+ /// The number of entries in a single palette. All palettes have the
+ /// same size.
+ /// palette_entry_name_ids ::
+ /// An optional read-only array of palette entry name IDs with
+ /// `num_palette_entries`. In each palette, entries with the same index
+ /// have the same function. For example, index~0 might correspond to
+ /// string 'outline' in the font's 'name' table to indicate that this
+ /// palette entry is used for outlines, index~1 might correspond to
+ /// 'fill' to indicate the filling color palette entry, etc.
+ /// An empty entry name ID in the 'CPAL' table gets represented as value
+ /// 0xFFFF.
+ /// `NULL` if the font's 'CPAL' table doesn't contain appropriate data.
+ ///
+ /// Use function
+ /// _Palette_Select to get the colors associated with a
+ /// palette entry.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_Palette_Data_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaletteData + { + [NativeName(NativeNameType.Field, "num_palettes")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort NumPalettes; + [NativeName(NativeNameType.Field, "palette_name_ids")] + [NativeName(NativeNameType.Type, "const FT_UShort*")] + public unsafe ushort* PaletteNameIds; + [NativeName(NativeNameType.Field, "palette_flags")] + [NativeName(NativeNameType.Type, "const FT_UShort*")] + public unsafe ushort* PaletteFlags; + [NativeName(NativeNameType.Field, "num_palette_entries")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort NumPaletteEntries; + [NativeName(NativeNameType.Field, "palette_entry_name_ids")] + [NativeName(NativeNameType.Type, "const FT_UShort*")] + public unsafe ushort* PaletteEntryNameIds; + + public unsafe FTPaletteData(ushort numPalettes = default, ushort* paletteNameIds = default, ushort* paletteFlags = default, ushort numPaletteEntries = default, ushort* paletteEntryNameIds = default) + { + NumPalettes = numPalettes; + PaletteNameIds = paletteNameIds; + PaletteFlags = paletteFlags; + NumPaletteEntries = numPaletteEntries; + PaletteEntryNameIds = paletteEntryNameIds; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_LayerIterator
+ ///
+ /// :
+ /// This iterator object is needed for
+ /// _Get_Color_Glyph_Layer.
+ ///
+ /// :
+ /// num_layers ::
+ /// The number of glyph layers for the requested glyph index. Will be
+ /// set by
+ /// _Get_Color_Glyph_Layer.
+ /// layer ::
+ /// The current layer. Will be set by
+ /// _Get_Color_Glyph_Layer.
+ /// p ::
+ /// An opaque pointer into 'COLR' table data. The caller must set this
+ /// to `NULL` before the first call of
+ /// _Get_Color_Glyph_Layer.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_LayerIterator_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTLayerIterator + { + [NativeName(NativeNameType.Field, "num_layers")] + [NativeName(NativeNameType.Type, "FT_UInt")] + public uint NumLayers; + [NativeName(NativeNameType.Field, "layer")] + [NativeName(NativeNameType.Type, "FT_UInt")] + public uint Layer; + [NativeName(NativeNameType.Field, "p")] + [NativeName(NativeNameType.Type, "FT_Byte*")] + public unsafe byte* P; + + public unsafe FTLayerIterator(uint numLayers = default, uint layer = default, byte* p = default) + { + NumLayers = numLayers; + Layer = layer; + P = p; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_ColorStopIterator
+ ///
+ /// :
+ /// This iterator object is needed for
+ /// _Get_Colorline_Stops. It keeps
+ /// state while iterating over the stops of an
+ /// _ColorLine, representing
+ /// the `ColorLine` struct of the v1 extensions to 'COLR', see
+ /// 'https://github.com/googlefonts/colr-gradients-spec'. Do not manually
+ /// modify fields of this iterator.
+ ///
+ /// :
+ /// num_color_stops ::
+ /// The number of color stops for the requested glyph index. Set by
+ ///
+ /// _Get_Paint.
+ /// current_color_stop ::
+ /// The current color stop. Set by
+ /// _Get_Colorline_Stops.
+ /// p ::
+ /// An opaque pointer into 'COLR' table data. Set by
+ /// _Get_Paint.
+ /// Updated by
+ /// _Get_Colorline_Stops.
+ /// read_variable ::
+ /// A boolean keeping track of whether variable color lines are to be
+ /// read. Set by
+ /// _Get_Paint.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_ColorStopIterator_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTColorStopIterator + { + [NativeName(NativeNameType.Field, "num_color_stops")] + [NativeName(NativeNameType.Type, "FT_UInt")] + public uint NumColorStops; + [NativeName(NativeNameType.Field, "current_color_stop")] + [NativeName(NativeNameType.Type, "FT_UInt")] + public uint CurrentColorStop; + [NativeName(NativeNameType.Field, "p")] + [NativeName(NativeNameType.Type, "FT_Byte*")] + public unsafe byte* P; + [NativeName(NativeNameType.Field, "read_variable")] + [NativeName(NativeNameType.Type, "FT_Bool")] + public byte ReadVariable; + + public unsafe FTColorStopIterator(uint numColorStops = default, uint currentColorStop = default, byte* p = default, byte readVariable = default) + { + NumColorStops = numColorStops; + CurrentColorStop = currentColorStop; + P = p; + ReadVariable = readVariable; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_ColorIndex
+ ///
+ /// :
+ /// A structure representing a `ColorIndex` value of the 'COLR' v1
+ /// extensions, see 'https://github.com/googlefonts/colr-gradients-spec'.
+ ///
+ /// :
+ /// palette_index ::
+ /// The palette index into a 'CPAL' palette.
+ /// alpha ::
+ /// Alpha transparency value multiplied with the value from 'CPAL'.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_ColorIndex_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTColorIndex + { + [NativeName(NativeNameType.Field, "palette_index")] + [NativeName(NativeNameType.Type, "FT_UInt16")] + public ushort PaletteIndex; + [NativeName(NativeNameType.Field, "alpha")] + [NativeName(NativeNameType.Type, "FT_F2Dot14")] + public short Alpha; + + public unsafe FTColorIndex(ushort paletteIndex = default, short alpha = default) + { + PaletteIndex = paletteIndex; + Alpha = alpha; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_ColorStop
+ ///
+ /// :
+ /// A structure representing a `ColorStop` value of the 'COLR' v1
+ /// extensions, see 'https://github.com/googlefonts/colr-gradients-spec'.
+ ///
+ /// :
+ /// stop_offset ::
+ /// The stop offset along the gradient, expressed as a 16.16 fixed-point
+ /// coordinate.
+ /// color ::
+ /// The color information for this stop, see
+ /// _ColorIndex.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_ColorStop_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTColorStop + { + [NativeName(NativeNameType.Field, "stop_offset")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int StopOffset; + [NativeName(NativeNameType.Field, "color")] + [NativeName(NativeNameType.Type, "FT_ColorIndex")] + public FTColorIndex Color; + + public unsafe FTColorStop(int stopOffset = default, FTColorIndex color = default) + { + StopOffset = stopOffset; + Color = color; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_ColorLine
+ ///
+ /// :
+ /// A structure representing a `ColorLine` value of the 'COLR' v1
+ /// extensions, see 'https://github.com/googlefonts/colr-gradients-spec'.
+ /// It describes a list of color stops along the defined gradient.
+ ///
+ /// :
+ /// extend ::
+ /// The extend mode at the outer boundaries, see
+ /// _PaintExtend.
+ /// color_stop_iterator ::
+ /// The
+ /// _ColorStopIterator used to enumerate and retrieve the
+ /// actual
+ /// _ColorStop's.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_ColorLine_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTColorLine + { + [NativeName(NativeNameType.Field, "extend")] + [NativeName(NativeNameType.Type, "FT_PaintExtend")] + public FTPaintExtend Extend; + [NativeName(NativeNameType.Field, "color_stop_iterator")] + [NativeName(NativeNameType.Type, "FT_ColorStopIterator")] + public FTColorStopIterator ColorStopIterator; + + public unsafe FTColorLine(FTPaintExtend extend = default, FTColorStopIterator colorStopIterator = default) + { + Extend = extend; + ColorStopIterator = colorStopIterator; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_Affine23
+ ///
+ /// :
+ /// A structure used to store a 2x3 matrix. Coefficients are in
+ /// 16.16 fixed-point format. The computation performed is
+ /// ```
+ /// x' = x*xx + y*xy + dx
+ /// y' = x*yx + y*yy + dy
+ /// ```
+ ///
+ /// :
+ /// xx ::
+ /// Matrix coefficient.
+ /// xy ::
+ /// Matrix coefficient.
+ /// dx ::
+ /// x translation.
+ /// yx ::
+ /// Matrix coefficient.
+ /// yy ::
+ /// Matrix coefficient.
+ /// dy ::
+ /// y translation.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_Affine_23_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTAffine23 + { + [NativeName(NativeNameType.Field, "xx")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Xx; + [NativeName(NativeNameType.Field, "xy")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Xy; + [NativeName(NativeNameType.Field, "dx")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Dx; + [NativeName(NativeNameType.Field, "yx")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Yx; + [NativeName(NativeNameType.Field, "yy")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Yy; + [NativeName(NativeNameType.Field, "dy")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Dy; + + public unsafe FTAffine23(int xx = default, int xy = default, int dx = default, int yx = default, int yy = default, int dy = default) + { + Xx = xx; + Xy = xy; + Dx = dx; + Yx = yx; + Yy = yy; + Dy = dy; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_OpaquePaint
+ ///
+ /// :
+ /// A structure representing an offset to a `Paint` value stored in any
+ /// of the paint tables of a 'COLR' v1 font. Compare Offset
+ /// <
+ /// 24> there.
+ /// When 'COLR' v1 paint tables represented by FreeType objects such as
+ ///
+ /// _PaintColrLayers,
+ /// _PaintComposite, or
+ /// _PaintTransform
+ /// reference downstream nested paint tables, we do not immediately
+ /// retrieve them but encapsulate their location in this type. Use
+ ///
+ /// _Get_Paint to retrieve the actual
+ /// _COLR_Paint object that
+ /// describes the details of the respective paint table.
+ ///
+ /// :
+ /// p ::
+ /// An internal offset to a Paint table, needs to be set to NULL before
+ /// passing this struct as an argument to
+ /// _Get_Paint.
+ /// insert_root_transform ::
+ /// An internal boolean to track whether an initial root transform is
+ /// to be provided. Do not set this value.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_Opaque_Paint_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTOpaquePaint + { + [NativeName(NativeNameType.Field, "p")] + [NativeName(NativeNameType.Type, "FT_Byte*")] + public unsafe byte* P; + [NativeName(NativeNameType.Field, "insert_root_transform")] + [NativeName(NativeNameType.Type, "FT_Bool")] + public byte InsertRootTransform; + + public unsafe FTOpaquePaint(byte* p = default, byte insertRootTransform = default) + { + P = p; + InsertRootTransform = insertRootTransform; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintColrLayers
+ ///
+ /// :
+ /// A structure representing a `PaintColrLayers` table of a 'COLR' v1
+ /// font. This table describes a set of layers that are to be composited
+ /// with composite mode `FT_COLR_COMPOSITE_SRC_OVER`. The return value
+ /// of this function is an
+ /// _LayerIterator initialized so that it can
+ /// be used with
+ /// _Get_Paint_Layers to retrieve the
+ /// _OpaquePaint
+ /// objects as references to each layer.
+ ///
+ /// :
+ /// layer_iterator ::
+ /// The layer iterator that describes the layers of this paint.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintColrLayers_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintColrLayers + { + [NativeName(NativeNameType.Field, "layer_iterator")] + [NativeName(NativeNameType.Type, "FT_LayerIterator")] + public FTLayerIterator LayerIterator; + + public unsafe FTPaintColrLayers(FTLayerIterator layerIterator = default) + { + LayerIterator = layerIterator; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintSolid
+ ///
+ /// :
+ /// A structure representing a `PaintSolid` value of the 'COLR' v1
+ /// extensions, see 'https://github.com/googlefonts/colr-gradients-spec'.
+ /// Using a `PaintSolid` value means that the glyph layer filled with
+ /// this paint is solid-colored and does not contain a gradient.
+ ///
+ /// :
+ /// color ::
+ /// The color information for this solid paint, see
+ /// _ColorIndex.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintSolid_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintSolid + { + [NativeName(NativeNameType.Field, "color")] + [NativeName(NativeNameType.Type, "FT_ColorIndex")] + public FTColorIndex Color; + + public unsafe FTPaintSolid(FTColorIndex color = default) + { + Color = color; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintLinearGradient
+ ///
+ /// :
+ /// A structure representing a `PaintLinearGradient` value of the 'COLR'
+ /// v1 extensions, see
+ /// 'https://github.com/googlefonts/colr-gradients-spec'. The glyph
+ /// layer filled with this paint is drawn filled with a linear gradient.
+ ///
+ /// :
+ /// colorline ::
+ /// The
+ /// _ColorLine information for this paint, i.e., the list of
+ /// color stops along the gradient.
+ /// p0 ::
+ /// The starting point of the gradient definition in font units
+ /// represented as a 16.16 fixed-point `FT_Vector`.
+ /// p1 ::
+ /// The end point of the gradient definition in font units
+ /// represented as a 16.16 fixed-point `FT_Vector`.
+ /// p2 ::
+ /// Optional point~p2 to rotate the gradient in font units
+ /// represented as a 16.16 fixed-point `FT_Vector`.
+ /// Otherwise equal to~p0.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintLinearGradient_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintLinearGradient + { + [NativeName(NativeNameType.Field, "colorline")] + [NativeName(NativeNameType.Type, "FT_ColorLine")] + public FTColorLine Colorline; + /// + /// TODO: Potentially expose those as x0, y0 etc.
+ ///
+ [NativeName(NativeNameType.Field, "p0")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector P0; + + [NativeName(NativeNameType.Field, "p1")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector P1; + [NativeName(NativeNameType.Field, "p2")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector P2; + + public unsafe FTPaintLinearGradient(FTColorLine colorline = default, FTVector p0 = default, FTVector p1 = default, FTVector p2 = default) + { + Colorline = colorline; + P0 = p0; + P1 = p1; + P2 = p2; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintRadialGradient
+ ///
+ /// :
+ /// A structure representing a `PaintRadialGradient` value of the 'COLR'
+ /// v1 extensions, see
+ /// 'https://github.com/googlefonts/colr-gradients-spec'. The glyph
+ /// layer filled with this paint is drawn filled with a radial gradient.
+ ///
+ /// :
+ /// colorline ::
+ /// The
+ /// _ColorLine information for this paint, i.e., the list of
+ /// color stops along the gradient.
+ /// c0 ::
+ /// The center of the starting point of the radial gradient in font
+ /// units represented as a 16.16 fixed-point `FT_Vector`.
+ /// r0 ::
+ /// The radius of the starting circle of the radial gradient in font
+ /// units represented as a 16.16 fixed-point value.
+ /// c1 ::
+ /// The center of the end point of the radial gradient in font units
+ /// represented as a 16.16 fixed-point `FT_Vector`.
+ /// r1 ::
+ /// The radius of the end circle of the radial gradient in font
+ /// units represented as a 16.16 fixed-point value.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintRadialGradient_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintRadialGradient + { + [NativeName(NativeNameType.Field, "colorline")] + [NativeName(NativeNameType.Type, "FT_ColorLine")] + public FTColorLine Colorline; + [NativeName(NativeNameType.Field, "c0")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector C0; + [NativeName(NativeNameType.Field, "r0")] + [NativeName(NativeNameType.Type, "FT_Pos")] + public int R0; + [NativeName(NativeNameType.Field, "c1")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector C1; + [NativeName(NativeNameType.Field, "r1")] + [NativeName(NativeNameType.Type, "FT_Pos")] + public int R1; + + public unsafe FTPaintRadialGradient(FTColorLine colorline = default, FTVector c0 = default, int r0 = default, FTVector c1 = default, int r1 = default) + { + Colorline = colorline; + C0 = c0; + R0 = r0; + C1 = c1; + R1 = r1; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintSweepGradient
+ ///
+ /// :
+ /// A structure representing a `PaintSweepGradient` value of the 'COLR'
+ /// v1 extensions, see
+ /// 'https://github.com/googlefonts/colr-gradients-spec'. The glyph
+ /// layer filled with this paint is drawn filled with a sweep gradient
+ /// from `start_angle` to `end_angle`.
+ ///
+ /// :
+ /// colorline ::
+ /// The
+ /// _ColorLine information for this paint, i.e., the list of
+ /// color stops along the gradient.
+ /// center ::
+ /// The center of the sweep gradient in font units represented as a
+ /// vector of 16.16 fixed-point values.
+ /// start_angle ::
+ /// The start angle of the sweep gradient in 16.16 fixed-point
+ /// format specifying degrees divided by 180.0 (as in the
+ /// spec). Multiply by 180.0f to receive degrees value. Values are
+ /// given counter-clockwise, starting from the (positive) y~axis.
+ /// end_angle ::
+ /// The end angle of the sweep gradient in 16.16 fixed-point
+ /// format specifying degrees divided by 180.0 (as in the
+ /// spec). Multiply by 180.0f to receive degrees value. Values are
+ /// given counter-clockwise, starting from the (positive) y~axis.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintSweepGradient_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintSweepGradient + { + [NativeName(NativeNameType.Field, "colorline")] + [NativeName(NativeNameType.Type, "FT_ColorLine")] + public FTColorLine Colorline; + [NativeName(NativeNameType.Field, "center")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector Center; + [NativeName(NativeNameType.Field, "start_angle")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int StartAngle; + [NativeName(NativeNameType.Field, "end_angle")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int EndAngle; + + public unsafe FTPaintSweepGradient(FTColorLine colorline = default, FTVector center = default, int startAngle = default, int endAngle = default) + { + Colorline = colorline; + Center = center; + StartAngle = startAngle; + EndAngle = endAngle; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintGlyph
+ ///
+ /// :
+ /// A structure representing a 'COLR' v1 `PaintGlyph` paint table.
+ ///
+ /// :
+ /// paint ::
+ /// An opaque paint object pointing to a `Paint` table that serves as
+ /// the fill for the glyph ID.
+ /// glyphID ::
+ /// The glyph ID from the 'glyf' table, which serves as the contour
+ /// information that is filled with paint.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintGlyph_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintGlyph + { + [NativeName(NativeNameType.Field, "paint")] + [NativeName(NativeNameType.Type, "FT_OpaquePaint")] + public FTOpaquePaint Paint; + [NativeName(NativeNameType.Field, "glyphID")] + [NativeName(NativeNameType.Type, "FT_UInt")] + public uint GlyphID; + + public unsafe FTPaintGlyph(FTOpaquePaint paint = default, uint glyphID = default) + { + Paint = paint; + GlyphID = glyphID; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintColrGlyph
+ ///
+ /// :
+ /// A structure representing a 'COLR' v1 `PaintColorGlyph` paint table.
+ ///
+ /// :
+ /// glyphID ::
+ /// The glyph ID from the `BaseGlyphV1List` table that is drawn for
+ /// this paint.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintColrGlyph_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintColrGlyph + { + [NativeName(NativeNameType.Field, "glyphID")] + [NativeName(NativeNameType.Type, "FT_UInt")] + public uint GlyphID; + + public unsafe FTPaintColrGlyph(uint glyphID = default) + { + GlyphID = glyphID; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintTransform
+ ///
+ /// :
+ /// A structure representing a 'COLR' v1 `PaintTransform` paint table.
+ ///
+ /// :
+ /// paint ::
+ /// An opaque paint that is subject to being transformed.
+ /// affine ::
+ /// A 2x3 transformation matrix in
+ /// _Affine23 format containing
+ /// 16.16 fixed-point values.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintTransform_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintTransform + { + [NativeName(NativeNameType.Field, "paint")] + [NativeName(NativeNameType.Type, "FT_OpaquePaint")] + public FTOpaquePaint Paint; + [NativeName(NativeNameType.Field, "affine")] + [NativeName(NativeNameType.Type, "FT_Affine23")] + public FTAffine23 Affine; + + public unsafe FTPaintTransform(FTOpaquePaint paint = default, FTAffine23 affine = default) + { + Paint = paint; + Affine = affine; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintTranslate
+ ///
+ /// :
+ /// A structure representing a 'COLR' v1 `PaintTranslate` paint table.
+ /// Used for translating downstream paints by a given x and y~delta.
+ ///
+ /// :
+ /// paint ::
+ /// An
+ /// _OpaquePaint object referencing the paint that is to be
+ /// rotated.
+ /// dx ::
+ /// Translation in x~direction in font units represented as a
+ /// 16.16 fixed-point value.
+ /// dy ::
+ /// Translation in y~direction in font units represented as a
+ /// 16.16 fixed-point value.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintTranslate_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintTranslate + { + [NativeName(NativeNameType.Field, "paint")] + [NativeName(NativeNameType.Type, "FT_OpaquePaint")] + public FTOpaquePaint Paint; + [NativeName(NativeNameType.Field, "dx")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Dx; + [NativeName(NativeNameType.Field, "dy")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Dy; + + public unsafe FTPaintTranslate(FTOpaquePaint paint = default, int dx = default, int dy = default) + { + Paint = paint; + Dx = dx; + Dy = dy; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintScale
+ ///
+ /// :
+ /// A structure representing all of the 'COLR' v1 'PaintScale*' paint
+ /// tables. Used for scaling downstream paints by a given x and y~scale,
+ /// with a given center. This structure is used for all 'PaintScale*'
+ /// types that are part of specification; fields of this structure are
+ /// filled accordingly. If there is a center, the center values are set,
+ /// otherwise they are set to the zero coordinate. If the source font
+ /// file has 'PaintScaleUniform*' set, the scale values are set
+ /// accordingly to the same value.
+ ///
+ /// :
+ /// paint ::
+ /// An
+ /// _OpaquePaint object referencing the paint that is to be
+ /// scaled.
+ /// scale_x ::
+ /// Scale factor in x~direction represented as a
+ /// 16.16 fixed-point value.
+ /// scale_y ::
+ /// Scale factor in y~direction represented as a
+ /// 16.16 fixed-point value.
+ /// center_x ::
+ /// x~coordinate of center point to scale from represented as a
+ /// 16.16 fixed-point value.
+ /// center_y ::
+ /// y~coordinate of center point to scale from represented as a
+ /// 16.16 fixed-point value.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintScale_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintScale + { + [NativeName(NativeNameType.Field, "paint")] + [NativeName(NativeNameType.Type, "FT_OpaquePaint")] + public FTOpaquePaint Paint; + [NativeName(NativeNameType.Field, "scale_x")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int ScaleX; + [NativeName(NativeNameType.Field, "scale_y")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int ScaleY; + [NativeName(NativeNameType.Field, "center_x")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int CenterX; + [NativeName(NativeNameType.Field, "center_y")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int CenterY; + + public unsafe FTPaintScale(FTOpaquePaint paint = default, int scaleX = default, int scaleY = default, int centerX = default, int centerY = default) + { + Paint = paint; + ScaleX = scaleX; + ScaleY = scaleY; + CenterX = centerX; + CenterY = centerY; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintRotate
+ ///
+ /// :
+ /// A structure representing a 'COLR' v1 `PaintRotate` paint table. Used
+ /// for rotating downstream paints with a given center and angle.
+ ///
+ /// :
+ /// paint ::
+ /// An
+ /// _OpaquePaint object referencing the paint that is to be
+ /// rotated.
+ /// angle ::
+ /// The rotation angle that is to be applied in degrees divided by
+ /// 180.0 (as in the spec) represented as a 16.16 fixed-point
+ /// value. Multiply by 180.0f to receive degrees value.
+ /// center_x ::
+ /// The x~coordinate of the pivot point of the rotation in font
+ /// units represented as a 16.16 fixed-point value.
+ /// center_y ::
+ /// The y~coordinate of the pivot point of the rotation in font
+ /// units represented as a 16.16 fixed-point value.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintRotate_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintRotate + { + [NativeName(NativeNameType.Field, "paint")] + [NativeName(NativeNameType.Type, "FT_OpaquePaint")] + public FTOpaquePaint Paint; + [NativeName(NativeNameType.Field, "angle")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Angle; + [NativeName(NativeNameType.Field, "center_x")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int CenterX; + [NativeName(NativeNameType.Field, "center_y")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int CenterY; + + public unsafe FTPaintRotate(FTOpaquePaint paint = default, int angle = default, int centerX = default, int centerY = default) + { + Paint = paint; + Angle = angle; + CenterX = centerX; + CenterY = centerY; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintSkew
+ ///
+ /// :
+ /// A structure representing a 'COLR' v1 `PaintSkew` paint table. Used
+ /// for skewing or shearing downstream paints by a given center and
+ /// angle.
+ ///
+ /// :
+ /// paint ::
+ /// An
+ /// _OpaquePaint object referencing the paint that is to be
+ /// skewed.
+ /// x_skew_angle ::
+ /// The skewing angle in x~direction in degrees divided by 180.0
+ /// (as in the spec) represented as a 16.16 fixed-point
+ /// value. Multiply by 180.0f to receive degrees.
+ /// y_skew_angle ::
+ /// The skewing angle in y~direction in degrees divided by 180.0
+ /// (as in the spec) represented as a 16.16 fixed-point
+ /// value. Multiply by 180.0f to receive degrees.
+ /// center_x ::
+ /// The x~coordinate of the pivot point of the skew in font units
+ /// represented as a 16.16 fixed-point value.
+ /// center_y ::
+ /// The y~coordinate of the pivot point of the skew in font units
+ /// represented as a 16.16 fixed-point value.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintSkew_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintSkew + { + [NativeName(NativeNameType.Field, "paint")] + [NativeName(NativeNameType.Type, "FT_OpaquePaint")] + public FTOpaquePaint Paint; + [NativeName(NativeNameType.Field, "x_skew_angle")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int XSkewAngle; + [NativeName(NativeNameType.Field, "y_skew_angle")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int YSkewAngle; + [NativeName(NativeNameType.Field, "center_x")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int CenterX; + [NativeName(NativeNameType.Field, "center_y")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int CenterY; + + public unsafe FTPaintSkew(FTOpaquePaint paint = default, int xSkewAngle = default, int ySkewAngle = default, int centerX = default, int centerY = default) + { + Paint = paint; + XSkewAngle = xSkewAngle; + YSkewAngle = ySkewAngle; + CenterX = centerX; + CenterY = centerY; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_PaintComposite
+ ///
+ /// :
+ /// A structure representing a 'COLR' v1 `PaintComposite` paint table.
+ /// Used for compositing two paints in a 'COLR' v1 directed acyclic graph.
+ ///
+ /// :
+ /// source_paint ::
+ /// An
+ /// _OpaquePaint object referencing the source that is to be
+ /// composited.
+ /// composite_mode ::
+ /// An
+ /// _Composite_Mode enum value determining the composition
+ /// operation.
+ /// backdrop_paint ::
+ /// An
+ /// _OpaquePaint object referencing the backdrop paint that
+ /// `source_paint` is composited onto.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_PaintComposite_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTPaintComposite + { + [NativeName(NativeNameType.Field, "source_paint")] + [NativeName(NativeNameType.Type, "FT_OpaquePaint")] + public FTOpaquePaint SourcePaint; + [NativeName(NativeNameType.Field, "composite_mode")] + [NativeName(NativeNameType.Type, "FT_Composite_Mode")] + public FTCompositeMode CompositeMode; + [NativeName(NativeNameType.Field, "backdrop_paint")] + [NativeName(NativeNameType.Type, "FT_OpaquePaint")] + public FTOpaquePaint BackdropPaint; + + public unsafe FTPaintComposite(FTOpaquePaint sourcePaint = default, FTCompositeMode compositeMode = default, FTOpaquePaint backdropPaint = default) + { + SourcePaint = sourcePaint; + CompositeMode = compositeMode; + BackdropPaint = backdropPaint; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_COLR_Paint
+ ///
+ /// :
+ /// A union object representing format and details of a paint table of a
+ /// 'COLR' v1 font, see
+ /// 'https://github.com/googlefonts/colr-gradients-spec'. Use
+ ///
+ /// _Get_Paint to retrieve a
+ /// _COLR_Paint for an
+ /// _OpaquePaint
+ /// object.
+ ///
+ /// :
+ /// format ::
+ /// The gradient format for this Paint structure.
+ /// u ::
+ /// Union of all paint table types:
+ /// *
+ /// _PaintColrLayers
+ /// *
+ /// _PaintGlyph
+ /// *
+ /// _PaintSolid
+ /// *
+ /// _PaintLinearGradient
+ /// *
+ /// _PaintRadialGradient
+ /// *
+ /// _PaintSweepGradient
+ /// *
+ /// _PaintTransform
+ /// *
+ /// _PaintTranslate
+ /// *
+ /// _PaintRotate
+ /// *
+ /// _PaintSkew
+ /// *
+ /// _PaintComposite
+ /// *
+ /// _PaintColrGlyph
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_COLR_Paint_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTCOLRPaint + { + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Explicit)] + public partial struct UUnion + { + [NativeName(NativeNameType.Field, "colr_layers")] + [NativeName(NativeNameType.Type, "FT_PaintColrLayers")] + [FieldOffset(0)] + public FTPaintColrLayers ColrLayers; + [NativeName(NativeNameType.Field, "glyph")] + [NativeName(NativeNameType.Type, "FT_PaintGlyph")] + [FieldOffset(0)] + public FTPaintGlyph Glyph; + [NativeName(NativeNameType.Field, "solid")] + [NativeName(NativeNameType.Type, "FT_PaintSolid")] + [FieldOffset(0)] + public FTPaintSolid Solid; + [NativeName(NativeNameType.Field, "linear_gradient")] + [NativeName(NativeNameType.Type, "FT_PaintLinearGradient")] + [FieldOffset(0)] + public FTPaintLinearGradient LinearGradient; + [NativeName(NativeNameType.Field, "radial_gradient")] + [NativeName(NativeNameType.Type, "FT_PaintRadialGradient")] + [FieldOffset(0)] + public FTPaintRadialGradient RadialGradient; + [NativeName(NativeNameType.Field, "sweep_gradient")] + [NativeName(NativeNameType.Type, "FT_PaintSweepGradient")] + [FieldOffset(0)] + public FTPaintSweepGradient SweepGradient; + [NativeName(NativeNameType.Field, "transform")] + [NativeName(NativeNameType.Type, "FT_PaintTransform")] + [FieldOffset(0)] + public FTPaintTransform Transform; + [NativeName(NativeNameType.Field, "translate")] + [NativeName(NativeNameType.Type, "FT_PaintTranslate")] + [FieldOffset(0)] + public FTPaintTranslate Translate; + [NativeName(NativeNameType.Field, "scale")] + [NativeName(NativeNameType.Type, "FT_PaintScale")] + [FieldOffset(0)] + public FTPaintScale Scale; + [NativeName(NativeNameType.Field, "rotate")] + [NativeName(NativeNameType.Type, "FT_PaintRotate")] + [FieldOffset(0)] + public FTPaintRotate Rotate; + [NativeName(NativeNameType.Field, "skew")] + [NativeName(NativeNameType.Type, "FT_PaintSkew")] + [FieldOffset(0)] + public FTPaintSkew Skew; + [NativeName(NativeNameType.Field, "composite")] + [NativeName(NativeNameType.Type, "FT_PaintComposite")] + [FieldOffset(0)] + public FTPaintComposite Composite; + [NativeName(NativeNameType.Field, "colr_glyph")] + [NativeName(NativeNameType.Type, "FT_PaintColrGlyph")] + [FieldOffset(0)] + public FTPaintColrGlyph ColrGlyph; + + public unsafe UUnion(FTPaintColrLayers colrLayers = default, FTPaintGlyph glyph = default, FTPaintSolid solid = default, FTPaintLinearGradient linearGradient = default, FTPaintRadialGradient radialGradient = default, FTPaintSweepGradient sweepGradient = default, FTPaintTransform transform = default, FTPaintTranslate translate = default, FTPaintScale scale = default, FTPaintRotate rotate = default, FTPaintSkew skew = default, FTPaintComposite composite = default, FTPaintColrGlyph colrGlyph = default) + { + ColrLayers = colrLayers; + Glyph = glyph; + Solid = solid; + LinearGradient = linearGradient; + RadialGradient = radialGradient; + SweepGradient = sweepGradient; + Transform = transform; + Translate = translate; + Scale = scale; + Rotate = rotate; + Skew = skew; + Composite = composite; + ColrGlyph = colrGlyph; + } + + + } + + [NativeName(NativeNameType.Field, "format")] + [NativeName(NativeNameType.Type, "FT_PaintFormat")] + public FTPaintFormat Format; + [NativeName(NativeNameType.Field, "u")] + [NativeName(NativeNameType.Type, "")] + public UUnion U; + + public unsafe FTCOLRPaint(FTPaintFormat format = default, UUnion u = default) + { + Format = format; + U = u; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_ClipBox
+ ///
+ /// :
+ /// A structure representing a 'COLR' v1 'ClipBox' table. 'COLR' v1
+ /// glyphs may optionally define a clip box for aiding allocation or
+ /// defining a maximum drawable region. Use
+ /// _Get_Color_Glyph_ClipBox
+ /// to retrieve it.
+ ///
+ /// :
+ /// bottom_left ::
+ /// The bottom left corner of the clip box as an
+ /// _Vector with
+ /// fixed-point coordinates in 26.6 format.
+ /// top_left ::
+ /// The top left corner of the clip box as an
+ /// _Vector with
+ /// fixed-point coordinates in 26.6 format.
+ /// top_right ::
+ /// The top right corner of the clip box as an
+ /// _Vector with
+ /// fixed-point coordinates in 26.6 format.
+ /// bottom_right ::
+ /// The bottom right corner of the clip box as an
+ /// _Vector with
+ /// fixed-point coordinates in 26.6 format.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_ClipBox_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTClipBox + { + [NativeName(NativeNameType.Field, "bottom_left")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector BottomLeft; + [NativeName(NativeNameType.Field, "top_left")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector TopLeft; + [NativeName(NativeNameType.Field, "top_right")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector TopRight; + [NativeName(NativeNameType.Field, "bottom_right")] + [NativeName(NativeNameType.Type, "FT_Vector")] + public FTVector BottomRight; + + public unsafe FTClipBox(FTVector bottomLeft = default, FTVector topLeft = default, FTVector topRight = default, FTVector bottomRight = default) + { + BottomLeft = bottomLeft; + TopLeft = topLeft; + TopRight = topRight; + BottomRight = bottomRight; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// TT_Header
+ ///
+ /// :
+ /// A structure to model a TrueType font header table. All fields follow
+ /// the OpenType specification. The 64-bit timestamps are stored in
+ /// two-element arrays `Created` and `Modified`, first the upper then
+ /// the lower 32~bits.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "TT_Header_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct TTHeader + { + [NativeName(NativeNameType.Field, "Table_Version")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int TableVersion; + [NativeName(NativeNameType.Field, "Font_Revision")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int FontRevision; + [NativeName(NativeNameType.Field, "CheckSum_Adjust")] + [NativeName(NativeNameType.Type, "FT_Long")] + public int CheckSumAdjust; + [NativeName(NativeNameType.Field, "Magic_Number")] + [NativeName(NativeNameType.Type, "FT_Long")] + public int MagicNumber; + [NativeName(NativeNameType.Field, "Flags")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort Flags; + [NativeName(NativeNameType.Field, "Units_Per_EM")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UnitsPerEM; + [NativeName(NativeNameType.Field, "Created")] + [NativeName(NativeNameType.Type, "FT_ULong[2]")] + public uint Created_0; + public uint Created_1; + [NativeName(NativeNameType.Field, "Modified")] + [NativeName(NativeNameType.Type, "FT_ULong[2]")] + public uint Modified_0; + public uint Modified_1; + [NativeName(NativeNameType.Field, "xMin")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short XMin; + [NativeName(NativeNameType.Field, "yMin")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YMin; + [NativeName(NativeNameType.Field, "xMax")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short XMax; + [NativeName(NativeNameType.Field, "yMax")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YMax; + [NativeName(NativeNameType.Field, "Mac_Style")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MacStyle; + [NativeName(NativeNameType.Field, "Lowest_Rec_PPEM")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort LowestRecPPEM; + [NativeName(NativeNameType.Field, "Font_Direction")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short FontDirection; + [NativeName(NativeNameType.Field, "Index_To_Loc_Format")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short IndexToLocFormat; + [NativeName(NativeNameType.Field, "Glyph_Data_Format")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short GlyphDataFormat; + + public unsafe TTHeader(int tableVersion = default, int fontRevision = default, int checksumAdjust = default, int magicNumber = default, ushort flags = default, ushort unitsPerEm = default, uint* created = default, uint* modified = default, short xMin = default, short yMin = default, short xMax = default, short yMax = default, ushort macStyle = default, ushort lowestRecPpem = default, short fontDirection = default, short indexToLocFormat = default, short glyphDataFormat = default) + { + TableVersion = tableVersion; + FontRevision = fontRevision; + CheckSumAdjust = checksumAdjust; + MagicNumber = magicNumber; + Flags = flags; + UnitsPerEM = unitsPerEm; + if (created != default) + { + Created_0 = created[0]; + Created_1 = created[1]; + } + if (modified != default) + { + Modified_0 = modified[0]; + Modified_1 = modified[1]; + } + XMin = xMin; + YMin = yMin; + XMax = xMax; + YMax = yMax; + MacStyle = macStyle; + LowestRecPPEM = lowestRecPpem; + FontDirection = fontDirection; + IndexToLocFormat = indexToLocFormat; + GlyphDataFormat = glyphDataFormat; + } + + public unsafe TTHeader(int tableVersion = default, int fontRevision = default, int checksumAdjust = default, int magicNumber = default, ushort flags = default, ushort unitsPerEm = default, Span created = default, Span modified = default, short xMin = default, short yMin = default, short xMax = default, short yMax = default, ushort macStyle = default, ushort lowestRecPpem = default, short fontDirection = default, short indexToLocFormat = default, short glyphDataFormat = default) + { + TableVersion = tableVersion; + FontRevision = fontRevision; + CheckSumAdjust = checksumAdjust; + MagicNumber = magicNumber; + Flags = flags; + UnitsPerEM = unitsPerEm; + if (created != default) + { + Created_0 = created[0]; + Created_1 = created[1]; + } + if (modified != default) + { + Modified_0 = modified[0]; + Modified_1 = modified[1]; + } + XMin = xMin; + YMin = yMin; + XMax = xMax; + YMax = yMax; + MacStyle = macStyle; + LowestRecPPEM = lowestRecPpem; + FontDirection = fontDirection; + IndexToLocFormat = indexToLocFormat; + GlyphDataFormat = glyphDataFormat; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// TT_HoriHeader
+ ///
+ /// :
+ /// A structure to model a TrueType horizontal header, the 'hhea' table,
+ /// as well as the corresponding horizontal metrics table, 'hmtx'.
+ ///
+ /// :
+ /// Version ::
+ /// The table version.
+ /// Ascender ::
+ /// The font's ascender, i.e., the distance from the baseline to the
+ /// top-most of all glyph points found in the font.
+ /// This value is invalid in many fonts, as it is usually set by the
+ /// font designer, and often reflects only a portion of the glyphs found
+ /// in the font (maybe ASCII).
+ /// You should use the `sTypoAscender` field of the 'OS/2' table instead
+ /// if you want the correct one.
+ /// Descender ::
+ /// The font's descender, i.e., the distance from the baseline to the
+ /// bottom-most of all glyph points found in the font. It is negative.
+ /// This value is invalid in many fonts, as it is usually set by the
+ /// font designer, and often reflects only a portion of the glyphs found
+ /// in the font (maybe ASCII).
+ /// You should use the `sTypoDescender` field of the 'OS/2' table
+ /// instead if you want the correct one.
+ /// Line_Gap ::
+ /// The font's line gap, i.e., the distance to add to the ascender and
+ /// descender to get the BTB, i.e., the baseline-to-baseline distance
+ /// for the font.
+ /// advance_Width_Max ::
+ /// This field is the maximum of all advance widths found in the font.
+ /// It can be used to compute the maximum width of an arbitrary string
+ /// of text.
+ /// min_Left_Side_Bearing ::
+ /// The minimum left side bearing of all glyphs within the font.
+ /// min_Right_Side_Bearing ::
+ /// The minimum right side bearing of all glyphs within the font.
+ /// xMax_Extent ::
+ /// The maximum horizontal extent (i.e., the 'width' of a glyph's
+ /// bounding box) for all glyphs in the font.
+ /// caret_Slope_Rise ::
+ /// The rise coefficient of the cursor's slope of the cursor
+ /// (slope=rise/run).
+ /// caret_Slope_Run ::
+ /// The run coefficient of the cursor's slope.
+ /// caret_Offset ::
+ /// The cursor's offset for slanted fonts.
+ /// Reserved ::
+ /// 8~reserved bytes.
+ /// metric_Data_Format ::
+ /// Always~0.
+ /// number_Of_HMetrics ::
+ /// Number of HMetrics entries in the 'hmtx' table -- this value can be
+ /// smaller than the total number of glyphs in the font.
+ /// long_metrics ::
+ /// A pointer into the 'hmtx' table.
+ /// short_metrics ::
+ /// A pointer into the 'hmtx' table.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "TT_HoriHeader_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct TTHoriHeader + { + [NativeName(NativeNameType.Field, "Version")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Version; + [NativeName(NativeNameType.Field, "Ascender")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short Ascender; + [NativeName(NativeNameType.Field, "Descender")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short Descender; + [NativeName(NativeNameType.Field, "Line_Gap")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short LineGap; + /// + /// advance width maximum
+ ///
+ [NativeName(NativeNameType.Field, "advance_Width_Max")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort AdvanceWidthMax; + + /// + /// minimum left-sb
+ ///
+ [NativeName(NativeNameType.Field, "min_Left_Side_Bearing")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short MinLeftSideBearing; + + /// + /// minimum right-sb
+ ///
+ [NativeName(NativeNameType.Field, "min_Right_Side_Bearing")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short MinRightSideBearing; + + /// + /// xmax extents
+ ///
+ [NativeName(NativeNameType.Field, "xMax_Extent")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short XMaxExtent; + + [NativeName(NativeNameType.Field, "caret_Slope_Rise")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short CaretSlopeRise; + [NativeName(NativeNameType.Field, "caret_Slope_Run")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short CaretSlopeRun; + [NativeName(NativeNameType.Field, "caret_Offset")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short CaretOffset; + [NativeName(NativeNameType.Field, "Reserved")] + [NativeName(NativeNameType.Type, "FT_Short[4]")] + public short Reserved_0; + public short Reserved_1; + public short Reserved_2; + public short Reserved_3; + [NativeName(NativeNameType.Field, "metric_Data_Format")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short MetricDataFormat; + [NativeName(NativeNameType.Field, "number_Of_HMetrics")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort NumberOfHMetrics; + /// + /// The following fields are not defined by the OpenType specification
+ /// but they are used to connect the metrics header to the relevant
+ /// 'hmtx' table.
+ ///
+ [NativeName(NativeNameType.Field, "long_metrics")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* LongMetrics; + + [NativeName(NativeNameType.Field, "short_metrics")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* ShortMetrics; + + public unsafe TTHoriHeader(int version = default, short ascender = default, short descender = default, short lineGap = default, ushort advanceWidthMax = default, short minLeftSideBearing = default, short minRightSideBearing = default, short xmaxExtent = default, short caretSlopeRise = default, short caretSlopeRun = default, short caretOffset = default, short* reserved = default, short metricDataFormat = default, ushort numberOfHmetrics = default, void* longMetrics = default, void* shortMetrics = default) + { + Version = version; + Ascender = ascender; + Descender = descender; + LineGap = lineGap; + AdvanceWidthMax = advanceWidthMax; + MinLeftSideBearing = minLeftSideBearing; + MinRightSideBearing = minRightSideBearing; + XMaxExtent = xmaxExtent; + CaretSlopeRise = caretSlopeRise; + CaretSlopeRun = caretSlopeRun; + CaretOffset = caretOffset; + if (reserved != default) + { + Reserved_0 = reserved[0]; + Reserved_1 = reserved[1]; + Reserved_2 = reserved[2]; + Reserved_3 = reserved[3]; + } + MetricDataFormat = metricDataFormat; + NumberOfHMetrics = numberOfHmetrics; + LongMetrics = longMetrics; + ShortMetrics = shortMetrics; + } + + public unsafe TTHoriHeader(int version = default, short ascender = default, short descender = default, short lineGap = default, ushort advanceWidthMax = default, short minLeftSideBearing = default, short minRightSideBearing = default, short xmaxExtent = default, short caretSlopeRise = default, short caretSlopeRun = default, short caretOffset = default, Span reserved = default, short metricDataFormat = default, ushort numberOfHmetrics = default, void* longMetrics = default, void* shortMetrics = default) + { + Version = version; + Ascender = ascender; + Descender = descender; + LineGap = lineGap; + AdvanceWidthMax = advanceWidthMax; + MinLeftSideBearing = minLeftSideBearing; + MinRightSideBearing = minRightSideBearing; + XMaxExtent = xmaxExtent; + CaretSlopeRise = caretSlopeRise; + CaretSlopeRun = caretSlopeRun; + CaretOffset = caretOffset; + if (reserved != default) + { + Reserved_0 = reserved[0]; + Reserved_1 = reserved[1]; + Reserved_2 = reserved[2]; + Reserved_3 = reserved[3]; + } + MetricDataFormat = metricDataFormat; + NumberOfHMetrics = numberOfHmetrics; + LongMetrics = longMetrics; + ShortMetrics = shortMetrics; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// TT_VertHeader
+ ///
+ /// :
+ /// A structure used to model a TrueType vertical header, the 'vhea'
+ /// table, as well as the corresponding vertical metrics table, 'vmtx'.
+ ///
+ /// :
+ /// Version ::
+ /// The table version.
+ /// Ascender ::
+ /// The font's ascender, i.e., the distance from the baseline to the
+ /// top-most of all glyph points found in the font.
+ /// This value is invalid in many fonts, as it is usually set by the
+ /// font designer, and often reflects only a portion of the glyphs found
+ /// in the font (maybe ASCII).
+ /// You should use the `sTypoAscender` field of the 'OS/2' table instead
+ /// if you want the correct one.
+ /// Descender ::
+ /// The font's descender, i.e., the distance from the baseline to the
+ /// bottom-most of all glyph points found in the font. It is negative.
+ /// This value is invalid in many fonts, as it is usually set by the
+ /// font designer, and often reflects only a portion of the glyphs found
+ /// in the font (maybe ASCII).
+ /// You should use the `sTypoDescender` field of the 'OS/2' table
+ /// instead if you want the correct one.
+ /// Line_Gap ::
+ /// The font's line gap, i.e., the distance to add to the ascender and
+ /// descender to get the BTB, i.e., the baseline-to-baseline distance
+ /// for the font.
+ /// advance_Height_Max ::
+ /// This field is the maximum of all advance heights found in the font.
+ /// It can be used to compute the maximum height of an arbitrary string
+ /// of text.
+ /// min_Top_Side_Bearing ::
+ /// The minimum top side bearing of all glyphs within the font.
+ /// min_Bottom_Side_Bearing ::
+ /// The minimum bottom side bearing of all glyphs within the font.
+ /// yMax_Extent ::
+ /// The maximum vertical extent (i.e., the 'height' of a glyph's
+ /// bounding box) for all glyphs in the font.
+ /// caret_Slope_Rise ::
+ /// The rise coefficient of the cursor's slope of the cursor
+ /// (slope=rise/run).
+ /// caret_Slope_Run ::
+ /// The run coefficient of the cursor's slope.
+ /// caret_Offset ::
+ /// The cursor's offset for slanted fonts.
+ /// Reserved ::
+ /// 8~reserved bytes.
+ /// metric_Data_Format ::
+ /// Always~0.
+ /// number_Of_VMetrics ::
+ /// Number of VMetrics entries in the 'vmtx' table -- this value can be
+ /// smaller than the total number of glyphs in the font.
+ /// long_metrics ::
+ /// A pointer into the 'vmtx' table.
+ /// short_metrics ::
+ /// A pointer into the 'vmtx' table.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "TT_VertHeader_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct TTVertHeader + { + [NativeName(NativeNameType.Field, "Version")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Version; + [NativeName(NativeNameType.Field, "Ascender")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short Ascender; + [NativeName(NativeNameType.Field, "Descender")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short Descender; + [NativeName(NativeNameType.Field, "Line_Gap")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short LineGap; + /// + /// advance height maximum
+ ///
+ [NativeName(NativeNameType.Field, "advance_Height_Max")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort AdvanceHeightMax; + + /// + /// minimum top-sb
+ ///
+ [NativeName(NativeNameType.Field, "min_Top_Side_Bearing")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short MinTopSideBearing; + + /// + /// minimum bottom-sb
+ ///
+ [NativeName(NativeNameType.Field, "min_Bottom_Side_Bearing")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short MinBottomSideBearing; + + /// + /// ymax extents
+ ///
+ [NativeName(NativeNameType.Field, "yMax_Extent")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YMaxExtent; + + [NativeName(NativeNameType.Field, "caret_Slope_Rise")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short CaretSlopeRise; + [NativeName(NativeNameType.Field, "caret_Slope_Run")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short CaretSlopeRun; + [NativeName(NativeNameType.Field, "caret_Offset")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short CaretOffset; + [NativeName(NativeNameType.Field, "Reserved")] + [NativeName(NativeNameType.Type, "FT_Short[4]")] + public short Reserved_0; + public short Reserved_1; + public short Reserved_2; + public short Reserved_3; + [NativeName(NativeNameType.Field, "metric_Data_Format")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short MetricDataFormat; + [NativeName(NativeNameType.Field, "number_Of_VMetrics")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort NumberOfVMetrics; + /// + /// The following fields are not defined by the OpenType specification
+ /// but they are used to connect the metrics header to the relevant
+ /// 'vmtx' table.
+ ///
+ [NativeName(NativeNameType.Field, "long_metrics")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* LongMetrics; + + [NativeName(NativeNameType.Field, "short_metrics")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* ShortMetrics; + + public unsafe TTVertHeader(int version = default, short ascender = default, short descender = default, short lineGap = default, ushort advanceHeightMax = default, short minTopSideBearing = default, short minBottomSideBearing = default, short ymaxExtent = default, short caretSlopeRise = default, short caretSlopeRun = default, short caretOffset = default, short* reserved = default, short metricDataFormat = default, ushort numberOfVmetrics = default, void* longMetrics = default, void* shortMetrics = default) + { + Version = version; + Ascender = ascender; + Descender = descender; + LineGap = lineGap; + AdvanceHeightMax = advanceHeightMax; + MinTopSideBearing = minTopSideBearing; + MinBottomSideBearing = minBottomSideBearing; + YMaxExtent = ymaxExtent; + CaretSlopeRise = caretSlopeRise; + CaretSlopeRun = caretSlopeRun; + CaretOffset = caretOffset; + if (reserved != default) + { + Reserved_0 = reserved[0]; + Reserved_1 = reserved[1]; + Reserved_2 = reserved[2]; + Reserved_3 = reserved[3]; + } + MetricDataFormat = metricDataFormat; + NumberOfVMetrics = numberOfVmetrics; + LongMetrics = longMetrics; + ShortMetrics = shortMetrics; + } + + public unsafe TTVertHeader(int version = default, short ascender = default, short descender = default, short lineGap = default, ushort advanceHeightMax = default, short minTopSideBearing = default, short minBottomSideBearing = default, short ymaxExtent = default, short caretSlopeRise = default, short caretSlopeRun = default, short caretOffset = default, Span reserved = default, short metricDataFormat = default, ushort numberOfVmetrics = default, void* longMetrics = default, void* shortMetrics = default) + { + Version = version; + Ascender = ascender; + Descender = descender; + LineGap = lineGap; + AdvanceHeightMax = advanceHeightMax; + MinTopSideBearing = minTopSideBearing; + MinBottomSideBearing = minBottomSideBearing; + YMaxExtent = ymaxExtent; + CaretSlopeRise = caretSlopeRise; + CaretSlopeRun = caretSlopeRun; + CaretOffset = caretOffset; + if (reserved != default) + { + Reserved_0 = reserved[0]; + Reserved_1 = reserved[1]; + Reserved_2 = reserved[2]; + Reserved_3 = reserved[3]; + } + MetricDataFormat = metricDataFormat; + NumberOfVMetrics = numberOfVmetrics; + LongMetrics = longMetrics; + ShortMetrics = shortMetrics; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// TT_OS2
+ ///
+ /// :
+ /// A structure to model a TrueType 'OS/2' table. All fields comply to
+ /// the OpenType specification.
+ /// Note that we now support old Mac fonts that do not include an 'OS/2'
+ /// table. In this case, the `version` field is always set to 0xFFFF.
+ ///
+ /// Possible values for bits in the `ulUnicodeRangeX` fields are given by
+ /// the
+ /// _UCR_XXX macros.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "TT_OS2_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct TtOs2 + { + /// + /// 0x0001 - more or 0xFFFF
+ ///
+ [NativeName(NativeNameType.Field, "version")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort Version; + + [NativeName(NativeNameType.Field, "xAvgCharWidth")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short XAvgCharWidth; + [NativeName(NativeNameType.Field, "usWeightClass")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UsWeightClass; + [NativeName(NativeNameType.Field, "usWidthClass")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UsWidthClass; + [NativeName(NativeNameType.Field, "fsType")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort FsType; + [NativeName(NativeNameType.Field, "ySubscriptXSize")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YSubscriptXSize; + [NativeName(NativeNameType.Field, "ySubscriptYSize")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YSubscriptYSize; + [NativeName(NativeNameType.Field, "ySubscriptXOffset")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YSubscriptXOffset; + [NativeName(NativeNameType.Field, "ySubscriptYOffset")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YSubscriptYOffset; + [NativeName(NativeNameType.Field, "ySuperscriptXSize")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YSuperscriptXSize; + [NativeName(NativeNameType.Field, "ySuperscriptYSize")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YSuperscriptYSize; + [NativeName(NativeNameType.Field, "ySuperscriptXOffset")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YSuperscriptXOffset; + [NativeName(NativeNameType.Field, "ySuperscriptYOffset")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YSuperscriptYOffset; + [NativeName(NativeNameType.Field, "yStrikeoutSize")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YStrikeoutSize; + [NativeName(NativeNameType.Field, "yStrikeoutPosition")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short YStrikeoutPosition; + [NativeName(NativeNameType.Field, "sFamilyClass")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short SFamilyClass; + [NativeName(NativeNameType.Field, "panose")] + [NativeName(NativeNameType.Type, "FT_Byte[10]")] + public byte Panose_0; + public byte Panose_1; + public byte Panose_2; + public byte Panose_3; + public byte Panose_4; + public byte Panose_5; + public byte Panose_6; + public byte Panose_7; + public byte Panose_8; + public byte Panose_9; + /// + /// Bits 0-31
+ ///
+ [NativeName(NativeNameType.Field, "ulUnicodeRange1")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint UlUnicodeRange1; + + /// + /// Bits 32-63
+ ///
+ [NativeName(NativeNameType.Field, "ulUnicodeRange2")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint UlUnicodeRange2; + + /// + /// Bits 64-95
+ ///
+ [NativeName(NativeNameType.Field, "ulUnicodeRange3")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint UlUnicodeRange3; + + /// + /// Bits 96-127
+ ///
+ [NativeName(NativeNameType.Field, "ulUnicodeRange4")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint UlUnicodeRange4; + + [NativeName(NativeNameType.Field, "achVendID")] + [NativeName(NativeNameType.Type, "FT_Char[4]")] + public byte AchVendID_0; + public byte AchVendID_1; + public byte AchVendID_2; + public byte AchVendID_3; + [NativeName(NativeNameType.Field, "fsSelection")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort FsSelection; + [NativeName(NativeNameType.Field, "usFirstCharIndex")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UsFirstCharIndex; + [NativeName(NativeNameType.Field, "usLastCharIndex")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UsLastCharIndex; + [NativeName(NativeNameType.Field, "sTypoAscender")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short STypoAscender; + [NativeName(NativeNameType.Field, "sTypoDescender")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short STypoDescender; + [NativeName(NativeNameType.Field, "sTypoLineGap")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short STypoLineGap; + [NativeName(NativeNameType.Field, "usWinAscent")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UsWinAscent; + [NativeName(NativeNameType.Field, "usWinDescent")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UsWinDescent; + /// + /// Bits 0-31
+ ///
+ [NativeName(NativeNameType.Field, "ulCodePageRange1")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint UlCodePageRange1; + + /// + /// Bits 32-63
+ ///
+ [NativeName(NativeNameType.Field, "ulCodePageRange2")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint UlCodePageRange2; + + /// + /// only version 2 and higher:
+ ///
+ [NativeName(NativeNameType.Field, "sxHeight")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short SxHeight; + + [NativeName(NativeNameType.Field, "sCapHeight")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short SCapHeight; + [NativeName(NativeNameType.Field, "usDefaultChar")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UsDefaultChar; + [NativeName(NativeNameType.Field, "usBreakChar")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UsBreakChar; + [NativeName(NativeNameType.Field, "usMaxContext")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UsMaxContext; + /// + /// in twips (1/20 points)
+ ///
+ [NativeName(NativeNameType.Field, "usLowerOpticalPointSize")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UsLowerOpticalPointSize; + + /// + /// in twips (1/20 points)
+ ///
+ [NativeName(NativeNameType.Field, "usUpperOpticalPointSize")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort UsUpperOpticalPointSize; + + + public unsafe TtOs2(ushort version = default, short xAvgCharWidth = default, ushort usWeightClass = default, ushort usWidthClass = default, ushort fsType = default, short ySubscriptXSize = default, short ySubscriptYSize = default, short ySubscriptXOffset = default, short ySubscriptYOffset = default, short ySuperscriptXSize = default, short ySuperscriptYSize = default, short ySuperscriptXOffset = default, short ySuperscriptYOffset = default, short yStrikeoutSize = default, short yStrikeoutPosition = default, short sFamilyClass = default, byte* panose = default, uint ulUnicodeRange1 = default, uint ulUnicodeRange2 = default, uint ulUnicodeRange3 = default, uint ulUnicodeRange4 = default, byte* achVendID = default, ushort fsSelection = default, ushort usFirstCharIndex = default, ushort usLastCharIndex = default, short sTypoAscender = default, short sTypoDescender = default, short sTypoLineGap = default, ushort usWinAscent = default, ushort usWinDescent = default, uint ulCodePageRange1 = default, uint ulCodePageRange2 = default, short sxHeight = default, short sCapHeight = default, ushort usDefaultChar = default, ushort usBreakChar = default, ushort usMaxContext = default, ushort usLowerOpticalPointSize = default, ushort usUpperOpticalPointSize = default) + { + Version = version; + XAvgCharWidth = xAvgCharWidth; + UsWeightClass = usWeightClass; + UsWidthClass = usWidthClass; + FsType = fsType; + YSubscriptXSize = ySubscriptXSize; + YSubscriptYSize = ySubscriptYSize; + YSubscriptXOffset = ySubscriptXOffset; + YSubscriptYOffset = ySubscriptYOffset; + YSuperscriptXSize = ySuperscriptXSize; + YSuperscriptYSize = ySuperscriptYSize; + YSuperscriptXOffset = ySuperscriptXOffset; + YSuperscriptYOffset = ySuperscriptYOffset; + YStrikeoutSize = yStrikeoutSize; + YStrikeoutPosition = yStrikeoutPosition; + SFamilyClass = sFamilyClass; + if (panose != default) + { + Panose_0 = panose[0]; + Panose_1 = panose[1]; + Panose_2 = panose[2]; + Panose_3 = panose[3]; + Panose_4 = panose[4]; + Panose_5 = panose[5]; + Panose_6 = panose[6]; + Panose_7 = panose[7]; + Panose_8 = panose[8]; + Panose_9 = panose[9]; + } + UlUnicodeRange1 = ulUnicodeRange1; + UlUnicodeRange2 = ulUnicodeRange2; + UlUnicodeRange3 = ulUnicodeRange3; + UlUnicodeRange4 = ulUnicodeRange4; + if (achVendID != default) + { + AchVendID_0 = achVendID[0]; + AchVendID_1 = achVendID[1]; + AchVendID_2 = achVendID[2]; + AchVendID_3 = achVendID[3]; + } + FsSelection = fsSelection; + UsFirstCharIndex = usFirstCharIndex; + UsLastCharIndex = usLastCharIndex; + STypoAscender = sTypoAscender; + STypoDescender = sTypoDescender; + STypoLineGap = sTypoLineGap; + UsWinAscent = usWinAscent; + UsWinDescent = usWinDescent; + UlCodePageRange1 = ulCodePageRange1; + UlCodePageRange2 = ulCodePageRange2; + SxHeight = sxHeight; + SCapHeight = sCapHeight; + UsDefaultChar = usDefaultChar; + UsBreakChar = usBreakChar; + UsMaxContext = usMaxContext; + UsLowerOpticalPointSize = usLowerOpticalPointSize; + UsUpperOpticalPointSize = usUpperOpticalPointSize; + } + + public unsafe TtOs2(ushort version = default, short xAvgCharWidth = default, ushort usWeightClass = default, ushort usWidthClass = default, ushort fsType = default, short ySubscriptXSize = default, short ySubscriptYSize = default, short ySubscriptXOffset = default, short ySubscriptYOffset = default, short ySuperscriptXSize = default, short ySuperscriptYSize = default, short ySuperscriptXOffset = default, short ySuperscriptYOffset = default, short yStrikeoutSize = default, short yStrikeoutPosition = default, short sFamilyClass = default, Span panose = default, uint ulUnicodeRange1 = default, uint ulUnicodeRange2 = default, uint ulUnicodeRange3 = default, uint ulUnicodeRange4 = default, Span achVendID = default, ushort fsSelection = default, ushort usFirstCharIndex = default, ushort usLastCharIndex = default, short sTypoAscender = default, short sTypoDescender = default, short sTypoLineGap = default, ushort usWinAscent = default, ushort usWinDescent = default, uint ulCodePageRange1 = default, uint ulCodePageRange2 = default, short sxHeight = default, short sCapHeight = default, ushort usDefaultChar = default, ushort usBreakChar = default, ushort usMaxContext = default, ushort usLowerOpticalPointSize = default, ushort usUpperOpticalPointSize = default) + { + Version = version; + XAvgCharWidth = xAvgCharWidth; + UsWeightClass = usWeightClass; + UsWidthClass = usWidthClass; + FsType = fsType; + YSubscriptXSize = ySubscriptXSize; + YSubscriptYSize = ySubscriptYSize; + YSubscriptXOffset = ySubscriptXOffset; + YSubscriptYOffset = ySubscriptYOffset; + YSuperscriptXSize = ySuperscriptXSize; + YSuperscriptYSize = ySuperscriptYSize; + YSuperscriptXOffset = ySuperscriptXOffset; + YSuperscriptYOffset = ySuperscriptYOffset; + YStrikeoutSize = yStrikeoutSize; + YStrikeoutPosition = yStrikeoutPosition; + SFamilyClass = sFamilyClass; + if (panose != default) + { + Panose_0 = panose[0]; + Panose_1 = panose[1]; + Panose_2 = panose[2]; + Panose_3 = panose[3]; + Panose_4 = panose[4]; + Panose_5 = panose[5]; + Panose_6 = panose[6]; + Panose_7 = panose[7]; + Panose_8 = panose[8]; + Panose_9 = panose[9]; + } + UlUnicodeRange1 = ulUnicodeRange1; + UlUnicodeRange2 = ulUnicodeRange2; + UlUnicodeRange3 = ulUnicodeRange3; + UlUnicodeRange4 = ulUnicodeRange4; + if (achVendID != default) + { + AchVendID_0 = achVendID[0]; + AchVendID_1 = achVendID[1]; + AchVendID_2 = achVendID[2]; + AchVendID_3 = achVendID[3]; + } + FsSelection = fsSelection; + UsFirstCharIndex = usFirstCharIndex; + UsLastCharIndex = usLastCharIndex; + STypoAscender = sTypoAscender; + STypoDescender = sTypoDescender; + STypoLineGap = sTypoLineGap; + UsWinAscent = usWinAscent; + UsWinDescent = usWinDescent; + UlCodePageRange1 = ulCodePageRange1; + UlCodePageRange2 = ulCodePageRange2; + SxHeight = sxHeight; + SCapHeight = sCapHeight; + UsDefaultChar = usDefaultChar; + UsBreakChar = usBreakChar; + UsMaxContext = usMaxContext; + UsLowerOpticalPointSize = usLowerOpticalPointSize; + UsUpperOpticalPointSize = usUpperOpticalPointSize; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// TT_Postscript
+ ///
+ /// :
+ /// A structure to model a TrueType 'post' table. All fields comply to
+ /// the OpenType specification. This structure does not reference a
+ /// font's PostScript glyph names; use
+ /// _Get_Glyph_Name to retrieve
+ /// them.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "TT_Postscript_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct TTPostscript + { + [NativeName(NativeNameType.Field, "FormatType")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int FormatType; + [NativeName(NativeNameType.Field, "italicAngle")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int ItalicAngle; + [NativeName(NativeNameType.Field, "underlinePosition")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short UnderlinePosition; + [NativeName(NativeNameType.Field, "underlineThickness")] + [NativeName(NativeNameType.Type, "FT_Short")] + public short UnderlineThickness; + [NativeName(NativeNameType.Field, "isFixedPitch")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint IsFixedPitch; + [NativeName(NativeNameType.Field, "minMemType42")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint MinMemType42; + [NativeName(NativeNameType.Field, "maxMemType42")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint MaxMemType42; + [NativeName(NativeNameType.Field, "minMemType1")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint MinMemType1; + [NativeName(NativeNameType.Field, "maxMemType1")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint MaxMemType1; + + public unsafe TTPostscript(int formatType = default, int italicAngle = default, short underlinePosition = default, short underlineThickness = default, uint isFixedPitch = default, uint minMemType42 = default, uint maxMemType42 = default, uint minMemType1 = default, uint maxMemType1 = default) + { + FormatType = formatType; + ItalicAngle = italicAngle; + UnderlinePosition = underlinePosition; + UnderlineThickness = underlineThickness; + IsFixedPitch = isFixedPitch; + MinMemType42 = minMemType42; + MaxMemType42 = maxMemType42; + MinMemType1 = minMemType1; + MaxMemType1 = maxMemType1; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// TT_PCLT
+ ///
+ /// :
+ /// A structure to model a TrueType 'PCLT' table. All fields comply to
+ /// the OpenType specification.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "TT_PCLT_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct TtPclt + { + [NativeName(NativeNameType.Field, "Version")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Version; + [NativeName(NativeNameType.Field, "FontNumber")] + [NativeName(NativeNameType.Type, "FT_ULong")] + public uint FontNumber; + [NativeName(NativeNameType.Field, "Pitch")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort Pitch; + [NativeName(NativeNameType.Field, "xHeight")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort XHeight; + [NativeName(NativeNameType.Field, "Style")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort Style; + [NativeName(NativeNameType.Field, "TypeFamily")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort TypeFamily; + [NativeName(NativeNameType.Field, "CapHeight")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort CapHeight; + [NativeName(NativeNameType.Field, "SymbolSet")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort SymbolSet; + [NativeName(NativeNameType.Field, "TypeFace")] + [NativeName(NativeNameType.Type, "FT_Char[16]")] + public byte TypeFace_0; + public byte TypeFace_1; + public byte TypeFace_2; + public byte TypeFace_3; + public byte TypeFace_4; + public byte TypeFace_5; + public byte TypeFace_6; + public byte TypeFace_7; + public byte TypeFace_8; + public byte TypeFace_9; + public byte TypeFace_10; + public byte TypeFace_11; + public byte TypeFace_12; + public byte TypeFace_13; + public byte TypeFace_14; + public byte TypeFace_15; + [NativeName(NativeNameType.Field, "CharacterComplement")] + [NativeName(NativeNameType.Type, "FT_Char[8]")] + public byte CharacterComplement_0; + public byte CharacterComplement_1; + public byte CharacterComplement_2; + public byte CharacterComplement_3; + public byte CharacterComplement_4; + public byte CharacterComplement_5; + public byte CharacterComplement_6; + public byte CharacterComplement_7; + [NativeName(NativeNameType.Field, "FileName")] + [NativeName(NativeNameType.Type, "FT_Char[6]")] + public byte FileName_0; + public byte FileName_1; + public byte FileName_2; + public byte FileName_3; + public byte FileName_4; + public byte FileName_5; + [NativeName(NativeNameType.Field, "StrokeWeight")] + [NativeName(NativeNameType.Type, "FT_Char")] + public byte StrokeWeight; + [NativeName(NativeNameType.Field, "WidthType")] + [NativeName(NativeNameType.Type, "FT_Char")] + public byte WidthType; + [NativeName(NativeNameType.Field, "SerifStyle")] + [NativeName(NativeNameType.Type, "FT_Byte")] + public byte SerifStyle; + [NativeName(NativeNameType.Field, "Reserved")] + [NativeName(NativeNameType.Type, "FT_Byte")] + public byte Reserved; + + public unsafe TtPclt(int version = default, uint fontNumber = default, ushort pitch = default, ushort xHeight = default, ushort style = default, ushort typeFamily = default, ushort capHeight = default, ushort symbolSet = default, byte* typeFace = default, byte* characterComplement = default, byte* fileName = default, byte strokeWeight = default, byte widthType = default, byte serifStyle = default, byte reserved = default) + { + Version = version; + FontNumber = fontNumber; + Pitch = pitch; + XHeight = xHeight; + Style = style; + TypeFamily = typeFamily; + CapHeight = capHeight; + SymbolSet = symbolSet; + if (typeFace != default) + { + TypeFace_0 = typeFace[0]; + TypeFace_1 = typeFace[1]; + TypeFace_2 = typeFace[2]; + TypeFace_3 = typeFace[3]; + TypeFace_4 = typeFace[4]; + TypeFace_5 = typeFace[5]; + TypeFace_6 = typeFace[6]; + TypeFace_7 = typeFace[7]; + TypeFace_8 = typeFace[8]; + TypeFace_9 = typeFace[9]; + TypeFace_10 = typeFace[10]; + TypeFace_11 = typeFace[11]; + TypeFace_12 = typeFace[12]; + TypeFace_13 = typeFace[13]; + TypeFace_14 = typeFace[14]; + TypeFace_15 = typeFace[15]; + } + if (characterComplement != default) + { + CharacterComplement_0 = characterComplement[0]; + CharacterComplement_1 = characterComplement[1]; + CharacterComplement_2 = characterComplement[2]; + CharacterComplement_3 = characterComplement[3]; + CharacterComplement_4 = characterComplement[4]; + CharacterComplement_5 = characterComplement[5]; + CharacterComplement_6 = characterComplement[6]; + CharacterComplement_7 = characterComplement[7]; + } + if (fileName != default) + { + FileName_0 = fileName[0]; + FileName_1 = fileName[1]; + FileName_2 = fileName[2]; + FileName_3 = fileName[3]; + FileName_4 = fileName[4]; + FileName_5 = fileName[5]; + } + StrokeWeight = strokeWeight; + WidthType = widthType; + SerifStyle = serifStyle; + Reserved = reserved; + } + + public unsafe TtPclt(int version = default, uint fontNumber = default, ushort pitch = default, ushort xHeight = default, ushort style = default, ushort typeFamily = default, ushort capHeight = default, ushort symbolSet = default, Span typeFace = default, Span characterComplement = default, Span fileName = default, byte strokeWeight = default, byte widthType = default, byte serifStyle = default, byte reserved = default) + { + Version = version; + FontNumber = fontNumber; + Pitch = pitch; + XHeight = xHeight; + Style = style; + TypeFamily = typeFamily; + CapHeight = capHeight; + SymbolSet = symbolSet; + if (typeFace != default) + { + TypeFace_0 = typeFace[0]; + TypeFace_1 = typeFace[1]; + TypeFace_2 = typeFace[2]; + TypeFace_3 = typeFace[3]; + TypeFace_4 = typeFace[4]; + TypeFace_5 = typeFace[5]; + TypeFace_6 = typeFace[6]; + TypeFace_7 = typeFace[7]; + TypeFace_8 = typeFace[8]; + TypeFace_9 = typeFace[9]; + TypeFace_10 = typeFace[10]; + TypeFace_11 = typeFace[11]; + TypeFace_12 = typeFace[12]; + TypeFace_13 = typeFace[13]; + TypeFace_14 = typeFace[14]; + TypeFace_15 = typeFace[15]; + } + if (characterComplement != default) + { + CharacterComplement_0 = characterComplement[0]; + CharacterComplement_1 = characterComplement[1]; + CharacterComplement_2 = characterComplement[2]; + CharacterComplement_3 = characterComplement[3]; + CharacterComplement_4 = characterComplement[4]; + CharacterComplement_5 = characterComplement[5]; + CharacterComplement_6 = characterComplement[6]; + CharacterComplement_7 = characterComplement[7]; + } + if (fileName != default) + { + FileName_0 = fileName[0]; + FileName_1 = fileName[1]; + FileName_2 = fileName[2]; + FileName_3 = fileName[3]; + FileName_4 = fileName[4]; + FileName_5 = fileName[5]; + } + StrokeWeight = strokeWeight; + WidthType = widthType; + SerifStyle = serifStyle; + Reserved = reserved; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// TT_MaxProfile
+ ///
+ /// :
+ /// The maximum profile ('maxp') table contains many max values, which can
+ /// be used to pre-allocate arrays for speeding up glyph loading and
+ /// hinting.
+ ///
+ /// :
+ /// version ::
+ /// The version number.
+ /// numGlyphs ::
+ /// The number of glyphs in this TrueType font.
+ /// maxPoints ::
+ /// The maximum number of points in a non-composite TrueType glyph. See
+ /// also `maxCompositePoints`.
+ /// maxContours ::
+ /// The maximum number of contours in a non-composite TrueType glyph.
+ /// See also `maxCompositeContours`.
+ /// maxCompositePoints ::
+ /// The maximum number of points in a composite TrueType glyph. See
+ /// also `maxPoints`.
+ /// maxCompositeContours ::
+ /// The maximum number of contours in a composite TrueType glyph. See
+ /// also `maxContours`.
+ /// maxZones ::
+ /// The maximum number of zones used for glyph hinting.
+ /// maxTwilightPoints ::
+ /// The maximum number of points in the twilight zone used for glyph
+ /// hinting.
+ /// maxStorage ::
+ /// The maximum number of elements in the storage area used for glyph
+ /// hinting.
+ /// maxFunctionDefs ::
+ /// The maximum number of function definitions in the TrueType bytecode
+ /// for this font.
+ /// maxInstructionDefs ::
+ /// The maximum number of instruction definitions in the TrueType
+ /// bytecode for this font.
+ /// maxStackElements ::
+ /// The maximum number of stack elements used during bytecode
+ /// interpretation.
+ /// maxSizeOfInstructions ::
+ /// The maximum number of TrueType opcodes used for glyph hinting.
+ /// maxComponentElements ::
+ /// The maximum number of simple (i.e., non-composite) glyphs in a
+ /// composite glyph.
+ /// maxComponentDepth ::
+ /// The maximum nesting depth of composite glyphs.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "TT_MaxProfile_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct TTMaxProfile + { + [NativeName(NativeNameType.Field, "version")] + [NativeName(NativeNameType.Type, "FT_Fixed")] + public int Version; + [NativeName(NativeNameType.Field, "numGlyphs")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort NumGlyphs; + [NativeName(NativeNameType.Field, "maxPoints")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxPoints; + [NativeName(NativeNameType.Field, "maxContours")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxContours; + [NativeName(NativeNameType.Field, "maxCompositePoints")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxCompositePoints; + [NativeName(NativeNameType.Field, "maxCompositeContours")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxCompositeContours; + [NativeName(NativeNameType.Field, "maxZones")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxZones; + [NativeName(NativeNameType.Field, "maxTwilightPoints")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxTwilightPoints; + [NativeName(NativeNameType.Field, "maxStorage")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxStorage; + [NativeName(NativeNameType.Field, "maxFunctionDefs")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxFunctionDefs; + [NativeName(NativeNameType.Field, "maxInstructionDefs")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxInstructionDefs; + [NativeName(NativeNameType.Field, "maxStackElements")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxStackElements; + [NativeName(NativeNameType.Field, "maxSizeOfInstructions")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxSizeOfInstructions; + [NativeName(NativeNameType.Field, "maxComponentElements")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxComponentElements; + [NativeName(NativeNameType.Field, "maxComponentDepth")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort MaxComponentDepth; + + public unsafe TTMaxProfile(int version = default, ushort numGlyphs = default, ushort maxPoints = default, ushort maxContours = default, ushort maxCompositePoints = default, ushort maxCompositeContours = default, ushort maxZones = default, ushort maxTwilightPoints = default, ushort maxStorage = default, ushort maxFunctionDefs = default, ushort maxInstructionDefs = default, ushort maxStackElements = default, ushort maxSizeOfInstructions = default, ushort maxComponentElements = default, ushort maxComponentDepth = default) + { + Version = version; + NumGlyphs = numGlyphs; + MaxPoints = maxPoints; + MaxContours = maxContours; + MaxCompositePoints = maxCompositePoints; + MaxCompositeContours = maxCompositeContours; + MaxZones = maxZones; + MaxTwilightPoints = maxTwilightPoints; + MaxStorage = maxStorage; + MaxFunctionDefs = maxFunctionDefs; + MaxInstructionDefs = maxInstructionDefs; + MaxStackElements = maxStackElements; + MaxSizeOfInstructions = maxSizeOfInstructions; + MaxComponentElements = maxComponentElements; + MaxComponentDepth = maxComponentDepth; + } + } } diff --git a/Hexa.NET.FreeType/Generated/Structures.001.cs b/Hexa.NET.FreeType/Generated/Structures.001.cs new file mode 100644 index 0000000..397960a --- /dev/null +++ b/Hexa.NET.FreeType/Generated/Structures.001.cs @@ -0,0 +1,186 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.FreeType +{ + /// + /// ************************************************************************
+ ///
+ /// FT_MemoryRec
+ ///
+ /// :
+ /// A structure used to describe a given memory manager to FreeType~2.
+ ///
+ /// :
+ /// user ::
+ /// A generic typeless pointer for user data.
+ /// alloc ::
+ /// A pointer type to an allocation function.
+ /// free ::
+ /// A pointer type to an memory freeing function.
+ /// realloc ::
+ /// A pointer type to a reallocation function.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_MemoryRec_")] + public partial struct FTMemoryRec + { + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_SfntName
+ ///
+ /// :
+ /// A structure used to model an SFNT 'name' table entry.
+ ///
+ /// :
+ /// platform_id ::
+ /// The platform ID for `string`. See
+ /// _PLATFORM_XXX for possible
+ /// values.
+ /// encoding_id ::
+ /// The encoding ID for `string`. See
+ /// _APPLE_ID_XXX,
+ /// _MAC_ID_XXX,
+ ///
+ /// _ISO_ID_XXX,
+ /// _MS_ID_XXX, and
+ /// _ADOBE_ID_XXX for possible
+ /// values.
+ /// language_id ::
+ /// The language ID for `string`. See
+ /// _MAC_LANGID_XXX and
+ ///
+ /// _MS_LANGID_XXX for possible values.
+ /// Registered OpenType values for `language_id` are always smaller than
+ /// 0x8000; values equal or larger than 0x8000 usually indicate a
+ /// language tag string (introduced in OpenType version 1.6). Use
+ /// function
+ /// _Get_Sfnt_LangTag with `language_id` as its argument to
+ /// retrieve the associated language tag.
+ /// name_id ::
+ /// An identifier for `string`. See
+ /// _NAME_ID_XXX for possible
+ /// values.
+ /// string ::
+ /// The 'name' string. Note that its format differs depending on the
+ /// (platform,encoding) pair, being either a string of bytes (without a
+ /// terminating `NULL` byte) or containing UTF-16BE entities.
+ /// string_len ::
+ /// The length of `string` in bytes.
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_SfntName_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTSfntName + { + [NativeName(NativeNameType.Field, "platform_id")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort PlatformId; + [NativeName(NativeNameType.Field, "encoding_id")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort EncodingId; + [NativeName(NativeNameType.Field, "language_id")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort LanguageId; + [NativeName(NativeNameType.Field, "name_id")] + [NativeName(NativeNameType.Type, "FT_UShort")] + public ushort NameId; + /// + /// this string is *not* null-terminated!
+ ///
+ [NativeName(NativeNameType.Field, "string")] + [NativeName(NativeNameType.Type, "FT_Byte*")] + public unsafe byte* String; + + /// + /// in bytes
+ ///
+ [NativeName(NativeNameType.Field, "string_len")] + [NativeName(NativeNameType.Type, "FT_UInt")] + public uint StringLen; + + + public unsafe FTSfntName(ushort platformId = default, ushort encodingId = default, ushort languageId = default, ushort nameId = default, byte* str = default, uint stringLen = default) + { + PlatformId = platformId; + EncodingId = encodingId; + LanguageId = languageId; + NameId = nameId; + String = str; + StringLen = stringLen; + } + + + } + + /// + /// ************************************************************************
+ ///
+ /// FT_SfntLangTag
+ ///
+ /// :
+ /// A structure to model a language tag entry from an SFNT 'name' table.
+ ///
+ /// :
+ /// string ::
+ /// The language tag string, encoded in UTF-16BE (without trailing
+ /// `NULL` bytes).
+ /// string_len ::
+ /// The length of `string` in **bytes**.
+ ///
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "FT_SfntLangTag_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTSfntLangTag + { + /// + /// this string is *not* null-terminated!
+ ///
+ [NativeName(NativeNameType.Field, "string")] + [NativeName(NativeNameType.Type, "FT_Byte*")] + public unsafe byte* String; + + /// + /// in bytes
+ ///
+ [NativeName(NativeNameType.Field, "string_len")] + [NativeName(NativeNameType.Type, "FT_UInt")] + public uint StringLen; + + + public unsafe FTSfntLangTag(byte* str = default, uint stringLen = default) + { + String = str; + StringLen = stringLen; + } + + + } + + [NativeName(NativeNameType.StructOrClass, "FT_StrokerRec_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct FTStrokerRec + { + + + } + +} diff --git a/Hexa.NET.FreeType/Hexa.NET.FreeType.csproj b/Hexa.NET.FreeType/Hexa.NET.FreeType.csproj index 237a080..2ac7558 100644 --- a/Hexa.NET.FreeType/Hexa.NET.FreeType.csproj +++ b/Hexa.NET.FreeType/Hexa.NET.FreeType.csproj @@ -12,7 +12,7 @@ true 2.13.2 - 1.0.0 + 1.0.1 A .NET Wrapper for FreeType (2.13.2), generated with the HexaGen code generator. HexaGen allows users to access native libraries easily and with high performance. (BINARIES NOT INCLUDED) TrueType FreeType FreeType2 Hexa HexaGen Source Generator C# .NET DotNet Sharp Windows macOS Android Bindings Wrapper Native Juna Meinhold diff --git a/Hexa.NET.ImGui/AssemblyInfo.cs b/Hexa.NET.ImGui/AssemblyInfo.cs new file mode 100644 index 0000000..0a89797 --- /dev/null +++ b/Hexa.NET.ImGui/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using System.Runtime.CompilerServices; + +[assembly: DisableRuntimeMarshalling] \ No newline at end of file diff --git a/Hexa.NET.ImGui/Generated/Constants.cs b/Hexa.NET.ImGui/Generated/Constants.cs index e979d28..68765a9 100644 --- a/Hexa.NET.ImGui/Generated/Constants.cs +++ b/Hexa.NET.ImGui/Generated/Constants.cs @@ -11,26 +11,20 @@ using HexaGen.Runtime; using System.Numerics; -namespace Hexa.NET.ImGuiNET +namespace Hexa.NET.ImGui { public unsafe partial class ImGui { - [NativeName(NativeNameType.Const, "_MSC_VER")] public const int _MSC_VER = 1930; - [NativeName(NativeNameType.Const, "_WIN32")] public const int _WIN32 = 1; - [NativeName(NativeNameType.Const, "_M_AMD64")] public const int _M_AMD64 = 100; - [NativeName(NativeNameType.Const, "_M_X64")] public const int _M_X64 = 100; - [NativeName(NativeNameType.Const, "_WIN64")] public const int _WIN64 = 1; - [NativeName(NativeNameType.Const, "IMGUI_HAS_DOCK")] public const int IMGUI_HAS_DOCK = 1; } diff --git a/Hexa.NET.ImGui/Generated/Delegates.cs b/Hexa.NET.ImGui/Generated/Delegates.cs index 0223c12..f4a14c8 100644 --- a/Hexa.NET.ImGui/Generated/Delegates.cs +++ b/Hexa.NET.ImGui/Generated/Delegates.cs @@ -14,358 +14,270 @@ using HexaGen.Runtime; using System.Numerics; -namespace Hexa.NET.ImGuiNET +namespace Hexa.NET.ImGui { /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "UserCallback")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void UserCallback([NativeName(NativeNameType.Param, "parent_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* parentList, [NativeName(NativeNameType.Param, "cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ImDrawCmd* cmd); + public unsafe delegate void UserCallback(); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "FontBuilder_Build")] - [return: NativeName(NativeNameType.Type, "bool")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate byte FontbuilderBuild([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas); + public unsafe delegate byte FontbuilderBuild(ImFontAtlas* atlas); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "DockNodeWindowMenuHandler")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void DockNodeWindowMenuHandler([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar); + public unsafe delegate void DockNodeWindowMenuHandler(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tabBar); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "GetClipboardTextFn")] - [return: NativeName(NativeNameType.Type, "const char*")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate byte* GetClipboardTextFn([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + public unsafe delegate byte* GetClipboardTextFn(void* userData); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "SetClipboardTextFn")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void SetClipboardTextFn([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text); + public unsafe delegate void SetClipboardTextFn(void* userData, byte* text); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "SetPlatformImeDataFn")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void SetPlatformImeDataFn([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiPlatformImeData*")] ImGuiPlatformImeData* data); + public unsafe delegate void SetPlatformImeDataFn(ImGuiViewport* viewport, ImGuiPlatformImeData* data); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_CreateWindow")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformCreatewindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate void PlatformCreatewindow(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_DestroyWindow")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformDestroywindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate void PlatformDestroywindow(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_ShowWindow")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformShowwindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate void PlatformShowwindow(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_SetWindowPos")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetwindowpos([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos); + public unsafe delegate void PlatformSetwindowpos(ImGuiViewport* vp, Vector2 pos); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_GetWindowPos")] - [return: NativeName(NativeNameType.Type, "ImVec2")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate Vector2 PlatformGetwindowpos([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate Vector2 PlatformGetwindowpos(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_SetWindowSize")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetwindowsize([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size); + public unsafe delegate void PlatformSetwindowsize(ImGuiViewport* vp, Vector2 size); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_GetWindowSize")] - [return: NativeName(NativeNameType.Type, "ImVec2")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate Vector2 PlatformGetwindowsize([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate Vector2 PlatformGetwindowsize(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_SetWindowFocus")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetwindowfocus([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate void PlatformSetwindowfocus(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_GetWindowFocus")] - [return: NativeName(NativeNameType.Type, "bool")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate byte PlatformGetwindowfocus([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate byte PlatformGetwindowfocus(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_GetWindowMinimized")] - [return: NativeName(NativeNameType.Type, "bool")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate byte PlatformGetwindowminimized([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate byte PlatformGetwindowminimized(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_SetWindowTitle")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetwindowtitle([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str); + public unsafe delegate void PlatformSetwindowtitle(ImGuiViewport* vp, byte* str); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_SetWindowAlpha")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSetwindowalpha([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "float")] float alpha); + public unsafe delegate void PlatformSetwindowalpha(ImGuiViewport* vp, float alpha); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_UpdateWindow")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformUpdatewindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate void PlatformUpdatewindow(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_RenderWindow")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformRenderwindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); + public unsafe delegate void PlatformRenderwindow(ImGuiViewport* vp, void* renderArg); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_SwapBuffers")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformSwapbuffers([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); + public unsafe delegate void PlatformSwapbuffers(ImGuiViewport* vp, void* renderArg); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_GetWindowDpiScale")] - [return: NativeName(NativeNameType.Type, "float")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate float PlatformGetwindowdpiscale([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate float PlatformGetwindowdpiscale(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_OnChangedViewport")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void PlatformOnchangedviewport([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate void PlatformOnchangedviewport(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Platform_CreateVkSurface")] - [return: NativeName(NativeNameType.Type, "int")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int PlatformCreatevksurface([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "vk_inst")] [NativeName(NativeNameType.Type, "ImU64")] ulong vkInst, [NativeName(NativeNameType.Param, "vk_allocators")] [NativeName(NativeNameType.Type, "const void*")] void* vkAllocators, [NativeName(NativeNameType.Param, "out_vk_surface")] [NativeName(NativeNameType.Type, "ImU64*")] ulong* outVkSurface); + public unsafe delegate int PlatformCreatevksurface(ImGuiViewport* vp, ulong vkInst, void* vkAllocators, ulong* outVkSurface); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Renderer_CreateWindow")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererCreatewindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate void RendererCreatewindow(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Renderer_DestroyWindow")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererDestroywindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp); + public unsafe delegate void RendererDestroywindow(ImGuiViewport* vp); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Renderer_SetWindowSize")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererSetwindowsize([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size); + public unsafe delegate void RendererSetwindowsize(ImGuiViewport* vp, Vector2 size); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Renderer_RenderWindow")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererRenderwindow([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); + public unsafe delegate void RendererRenderwindow(ImGuiViewport* vp, void* renderArg); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Renderer_SwapBuffers")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void RendererSwapbuffers([NativeName(NativeNameType.Param, "vp")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* vp, [NativeName(NativeNameType.Param, "render_arg")] [NativeName(NativeNameType.Type, "void*")] void* renderArg); + public unsafe delegate void RendererSwapbuffers(ImGuiViewport* vp, void* renderArg); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "SizeCallback")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void SizeCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiSizeCallbackData*")] ImGuiSizeCallbackData* data); + public unsafe delegate void SizeCallback(); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ClearAllFn")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ClearAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler); + public unsafe delegate void ClearAllFn(ImGuiContext* ctx, ImGuiSettingsHandler* handler); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ReadInitFn")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ReadInitFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler); + public unsafe delegate void ReadInitFn(ImGuiContext* ctx, ImGuiSettingsHandler* handler); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ReadOpenFn")] - [return: NativeName(NativeNameType.Type, "void*")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void* ReadOpenFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name); + public unsafe delegate void* ReadOpenFn(ImGuiContext* ctx, ImGuiSettingsHandler* handler, byte* name); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ReadLineFn")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ReadLineFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler, [NativeName(NativeNameType.Param, "entry")] [NativeName(NativeNameType.Type, "void*")] void* entry, [NativeName(NativeNameType.Param, "line")] [NativeName(NativeNameType.Type, "const char*")] byte* line); + public unsafe delegate void ReadLineFn(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, byte* line); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ApplyAllFn")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ApplyAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler); + public unsafe delegate void ApplyAllFn(ImGuiContext* ctx, ImGuiSettingsHandler* handler); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "WriteAllFn")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void WriteAllFn([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler, [NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* outBuf); + public unsafe delegate void WriteAllFn(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* outBuf); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "Callback")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void Callback([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] ImGuiContextHook* hook); + public unsafe delegate void Callback(); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ImDrawCallback")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImDrawCallback([NativeName(NativeNameType.Param, "parent_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* parentList, [NativeName(NativeNameType.Param, "cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ImDrawCmd* cmd); + public unsafe delegate int ImGuiInputTextCallback(ImGuiInputTextCallbackData* data); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ImGuiSizeCallback")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiSizeCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiSizeCallbackData*")] ImGuiSizeCallbackData* data); + public unsafe delegate void ImGuiSizeCallback(ImGuiSizeCallbackData* data); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ImGuiContextHookCallback")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiContextHookCallback([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] ImGuiContextHook* hook); + public unsafe delegate void* ImGuiMemAllocFunc(ulong sz, void* userData); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ImGuiInputTextCallback")] - [return: NativeName(NativeNameType.Type, "int")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate int ImGuiInputTextCallback([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* data); + public unsafe delegate void ImGuiMemFreeFunc(void* ptr, void* userData); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ImGuiMemAllocFunc")] - [return: NativeName(NativeNameType.Type, "void*")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void* ImGuiMemAllocFunc([NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + public unsafe delegate void ImDrawCallback(ImDrawList* parentList, ImDrawCmd* cmd); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ImGuiMemFreeFunc")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiMemFreeFunc([NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "void*")] void* ptr, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + public unsafe delegate void ImGuiErrorLogCallback(void* userData, byte* fmt); /// /// To be documented. /// - [NativeName(NativeNameType.Delegate, "ImGuiErrorLogCallback")] - [return: NativeName(NativeNameType.Type, "void")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate void ImGuiErrorLogCallback([NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); + public unsafe delegate void ImGuiContextHookCallback(ImGuiContext* ctx, ImGuiContextHook* hook); } diff --git a/Hexa.NET.ImGui/Generated/Enumerations.cs b/Hexa.NET.ImGui/Generated/Enumerations.cs index 132a9b1..4f641cf 100644 --- a/Hexa.NET.ImGui/Generated/Enumerations.cs +++ b/Hexa.NET.ImGui/Generated/Enumerations.cs @@ -1,5956 +1,2152 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using System.Numerics; - -namespace Hexa.NET.ImGuiNET -{ - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiMouseSource")] - public enum ImGuiMouseSource - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseSource_Mouse")] - Source = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseSource_TouchScreen")] - TouchScreen = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseSource_Pen")] - Pen = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseSource_COUNT")] - Count = unchecked(3), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiInputEventType")] - public enum ImGuiInputEventType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputEventType_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputEventType_MousePos")] - MousePos = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputEventType_MouseWheel")] - MouseWheel = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputEventType_MouseButton")] - MouseButton = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputEventType_MouseViewport")] - MouseViewport = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputEventType_Key")] - Key = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputEventType_Text")] - Text = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputEventType_Focus")] - Focus = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputEventType_COUNT")] - Count = unchecked(8), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiInputSource")] - public enum ImGuiInputSource - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputSource_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputSource_Mouse")] - Mouse = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputSource_Keyboard")] - Keyboard = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputSource_Gamepad")] - Gamepad = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputSource_Clipboard")] - Clipboard = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputSource_COUNT")] - Count = unchecked(5), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiKey")] - public enum ImGuiKey - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Tab")] - Tab = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_LeftArrow")] - LeftArrow = unchecked(513), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_RightArrow")] - RightArrow = unchecked(514), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_UpArrow")] - UpArrow = unchecked(515), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_DownArrow")] - DownArrow = unchecked(516), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_PageUp")] - PageUp = unchecked(517), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_PageDown")] - PageDown = unchecked(518), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Home")] - Home = unchecked(519), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_End")] - End = unchecked(520), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Insert")] - Insert = unchecked(521), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Delete")] - Delete = unchecked(522), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Backspace")] - Backspace = unchecked(523), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Space")] - Space = unchecked(524), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Enter")] - Enter = unchecked(525), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Escape")] - Escape = unchecked(526), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_LeftCtrl")] - LeftCtrl = unchecked(527), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_LeftShift")] - LeftShift = unchecked(528), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_LeftAlt")] - LeftAlt = unchecked(529), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_LeftSuper")] - LeftSuper = unchecked(530), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_RightCtrl")] - RightCtrl = unchecked(531), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_RightShift")] - RightShift = unchecked(532), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_RightAlt")] - RightAlt = unchecked(533), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_RightSuper")] - RightSuper = unchecked(534), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Menu")] - Menu = unchecked(535), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_0")] - Key0 = unchecked(536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_1")] - Key1 = unchecked(537), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_2")] - Key2 = unchecked(538), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_3")] - Key3 = unchecked(539), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_4")] - Key4 = unchecked(540), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_5")] - Key5 = unchecked(541), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_6")] - Key6 = unchecked(542), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_7")] - Key7 = unchecked(543), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_8")] - Key8 = unchecked(544), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_9")] - Key9 = unchecked(545), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_A")] - Keya = unchecked(546), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_B")] - Keyb = unchecked(547), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_C")] - Keyc = unchecked(548), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_D")] - Keyd = unchecked(549), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_E")] - Keye = unchecked(550), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F")] - Keyf = unchecked(551), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_G")] - Keyg = unchecked(552), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_H")] - Keyh = unchecked(553), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_I")] - Keyi = unchecked(554), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_J")] - Keyj = unchecked(555), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_K")] - Keyk = unchecked(556), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_L")] - Keyl = unchecked(557), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_M")] - Keym = unchecked(558), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_N")] - Keyn = unchecked(559), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_O")] - Keyo = unchecked(560), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_P")] - Keyp = unchecked(561), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Q")] - Keyq = unchecked(562), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_R")] - Keyr = unchecked(563), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_S")] - Keys = unchecked(564), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_T")] - Keyt = unchecked(565), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_U")] - Keyu = unchecked(566), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_V")] - Keyv = unchecked(567), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_W")] - Keyw = unchecked(568), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_X")] - Keyx = unchecked(569), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Y")] - Keyy = unchecked(570), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Z")] - Keyz = unchecked(571), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F1")] - Keyf1 = unchecked(572), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F2")] - Keyf2 = unchecked(573), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F3")] - Keyf3 = unchecked(574), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F4")] - Keyf4 = unchecked(575), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F5")] - Keyf5 = unchecked(576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F6")] - Keyf6 = unchecked(577), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F7")] - Keyf7 = unchecked(578), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F8")] - Keyf8 = unchecked(579), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F9")] - Keyf9 = unchecked(580), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F10")] - Keyf10 = unchecked(581), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F11")] - Keyf11 = unchecked(582), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_F12")] - Keyf12 = unchecked(583), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Apostrophe")] - Apostrophe = unchecked(584), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Comma")] - Comma = unchecked(585), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Minus")] - Minus = unchecked(586), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Period")] - Period = unchecked(587), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Slash")] - Slash = unchecked(588), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Semicolon")] - Semicolon = unchecked(589), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Equal")] - Equal = unchecked(590), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_LeftBracket")] - LeftBracket = unchecked(591), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Backslash")] - Backslash = unchecked(592), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_RightBracket")] - RightBracket = unchecked(593), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GraveAccent")] - GraveAccent = unchecked(594), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_CapsLock")] - CapsLock = unchecked(595), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_ScrollLock")] - ScrollLock = unchecked(596), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_NumLock")] - NumLock = unchecked(597), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_PrintScreen")] - PrintScreen = unchecked(598), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Pause")] - Pause = unchecked(599), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Keypad0")] - Keypad0 = unchecked(600), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Keypad1")] - Keypad1 = unchecked(601), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Keypad2")] - Keypad2 = unchecked(602), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Keypad3")] - Keypad3 = unchecked(603), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Keypad4")] - Keypad4 = unchecked(604), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Keypad5")] - Keypad5 = unchecked(605), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Keypad6")] - Keypad6 = unchecked(606), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Keypad7")] - Keypad7 = unchecked(607), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Keypad8")] - Keypad8 = unchecked(608), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_Keypad9")] - Keypad9 = unchecked(609), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_KeypadDecimal")] - KeypadDecimal = unchecked(610), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_KeypadDivide")] - KeypadDivide = unchecked(611), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_KeypadMultiply")] - KeypadMultiply = unchecked(612), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_KeypadSubtract")] - KeypadSubtract = unchecked(613), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_KeypadAdd")] - KeypadAdd = unchecked(614), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_KeypadEnter")] - KeypadEnter = unchecked(615), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_KeypadEqual")] - KeypadEqual = unchecked(616), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadStart")] - GamepadStart = unchecked(617), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadBack")] - GamepadBack = unchecked(618), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadFaceLeft")] - GamepadFaceLeft = unchecked(619), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadFaceRight")] - GamepadFaceRight = unchecked(620), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadFaceUp")] - GamepadFaceUp = unchecked(621), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadFaceDown")] - GamepadFaceDown = unchecked(622), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadDpadLeft")] - GamepadDpadLeft = unchecked(623), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadDpadRight")] - GamepadDpadRight = unchecked(624), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadDpadUp")] - GamepadDpadUp = unchecked(625), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadDpadDown")] - GamepadDpadDown = unchecked(626), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadL1")] - Gamepadl1 = unchecked(627), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadR1")] - Gamepadr1 = unchecked(628), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadL2")] - Gamepadl2 = unchecked(629), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadR2")] - Gamepadr2 = unchecked(630), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadL3")] - Gamepadl3 = unchecked(631), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadR3")] - Gamepadr3 = unchecked(632), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadLStickLeft")] - GamepadlStickLeft = unchecked(633), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadLStickRight")] - GamepadlStickRight = unchecked(634), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadLStickUp")] - GamepadlStickUp = unchecked(635), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadLStickDown")] - GamepadlStickDown = unchecked(636), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadRStickLeft")] - GamepadrStickLeft = unchecked(637), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadRStickRight")] - GamepadrStickRight = unchecked(638), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadRStickUp")] - GamepadrStickUp = unchecked(639), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_GamepadRStickDown")] - GamepadrStickDown = unchecked(640), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_MouseLeft")] - MouseLeft = unchecked(641), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_MouseRight")] - MouseRight = unchecked(642), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_MouseMiddle")] - MouseMiddle = unchecked(643), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_MouseX1")] - Mousex1 = unchecked(644), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_MouseX2")] - Mousex2 = unchecked(645), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_MouseWheelX")] - MouseWheelx = unchecked(646), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_MouseWheelY")] - MouseWheely = unchecked(647), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_ReservedForModCtrl")] - ReservedForModCtrl = unchecked(648), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_ReservedForModShift")] - ReservedForModShift = unchecked(649), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_ReservedForModAlt")] - ReservedForModAlt = unchecked(650), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_ReservedForModSuper")] - ReservedForModSuper = unchecked(651), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_COUNT")] - Count = unchecked(652), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMod_None")] - ModNone = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMod_Ctrl")] - ModCtrl = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMod_Shift")] - ModShift = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMod_Alt")] - ModAlt = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMod_Super")] - ModSuper = unchecked(32768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMod_Shortcut")] - ModShortcut = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMod_Mask_")] - ModMask = unchecked(63488), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_NamedKey_BEGIN")] - NamedKeyBegin = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_NamedKey_END")] - NamedKeyEnd = Count, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_NamedKey_COUNT")] - NamedKeyCount = unchecked(140), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_KeysData_SIZE")] - KeysDataSize = Count, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiKey_KeysData_OFFSET")] - KeysDataOffset = unchecked(0), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiNavLayer")] - public enum ImGuiNavLayer - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavLayer_Main")] - Main = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavLayer_Menu")] - Menu = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavLayer_COUNT")] - Count = unchecked(2), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiDockNodeState")] - public enum ImGuiDockNodeState - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeState_Unknown")] - Unknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow")] - HostWindowHiddenBecauseSingleWindow = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing")] - HostWindowHiddenBecauseWindowsAreResizing = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeState_HostWindowVisible")] - HostWindowVisible = unchecked(3), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiAxis")] - public enum ImGuiAxis - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiAxis_None")] - None = unchecked(-1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiAxis_X")] - Axisx = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiAxis_Y")] - Axisy = unchecked(1), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiContextHookType")] - public enum ImGuiContextHookType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiContextHookType_NewFramePre")] - NewFramePre = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiContextHookType_NewFramePost")] - NewFramePost = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiContextHookType_EndFramePre")] - EndFramePre = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiContextHookType_EndFramePost")] - EndFramePost = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiContextHookType_RenderPre")] - RenderPre = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiContextHookType_RenderPost")] - RenderPost = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiContextHookType_Shutdown")] - Shutdown = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiContextHookType_PendingRemoval_")] - PendingRemoval = unchecked(7), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiLogType")] - public enum ImGuiLogType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLogType_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLogType_TTY")] - Tty = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLogType_File")] - File = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLogType_Buffer")] - Buffer = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLogType_Clipboard")] - Clipboard = unchecked(4), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiLocKey")] - public enum ImGuiLocKey - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLocKey_VersionStr")] - Version = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLocKey_TableSizeOne")] - TableSizeOne = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLocKey_TableSizeAllFit")] - TableSizeAllFit = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLocKey_TableSizeAllDefault")] - TableSizeAllDefault = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLocKey_TableResetOrder")] - TableResetOrder = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLocKey_WindowingMainMenuBar")] - WindowingMainMenuBar = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLocKey_WindowingPopup")] - WindowingPopup = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLocKey_WindowingUntitled")] - WindowingUntitled = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLocKey_DockingHideTabBar")] - DockingHideTabBar = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLocKey_COUNT")] - Count = unchecked(9), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiWindowFlags_")] - public enum ImGuiWindowFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoTitleBar")] - NoTitleBar = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoResize")] - NoResize = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoMove")] - NoMove = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoScrollbar")] - NoScrollbar = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoScrollWithMouse")] - NoScrollWithMouse = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoCollapse")] - NoCollapse = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_AlwaysAutoResize")] - AlwaysAutoResize = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoBackground")] - NoBackground = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoSavedSettings")] - NoSavedSettings = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoMouseInputs")] - NoMouseInputs = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_MenuBar")] - MenuBar = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_HorizontalScrollbar")] - HorizontalScrollbar = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoFocusOnAppearing")] - NoFocusOnAppearing = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoBringToFrontOnFocus")] - NoBringToFrontOnFocus = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_AlwaysVerticalScrollbar")] - AlwaysVerticalScrollbar = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_AlwaysHorizontalScrollbar")] - AlwaysHorizontalScrollbar = unchecked(32768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_AlwaysUseWindowPadding")] - AlwaysUseWindowPadding = unchecked(65536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoNavInputs")] - NoNavInputs = unchecked(262144), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoNavFocus")] - NoNavFocus = unchecked(524288), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_UnsavedDocument")] - UnsavedDocument = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoDocking")] - NoDocking = unchecked(2097152), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoNav")] - NoNav = unchecked(786432), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoDecoration")] - NoDecoration = unchecked(43), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NoInputs")] - NoInputs = unchecked(786944), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_NavFlattened")] - NavFlattened = unchecked(8388608), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_ChildWindow")] - ChildWindow = unchecked(16777216), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_Tooltip")] - Tooltip = unchecked(33554432), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_Popup")] - Popup = unchecked(67108864), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_Modal")] - Modal = unchecked(134217728), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_ChildMenu")] - ChildMenu = unchecked(268435456), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowFlags_DockNodeHost")] - DockNodeHost = unchecked(536870912), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiInputTextFlags_")] - public enum ImGuiInputTextFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CharsDecimal")] - CharsDecimal = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CharsHexadecimal")] - CharsHexadecimal = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CharsUppercase")] - CharsUppercase = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CharsNoBlank")] - CharsNoBlank = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_AutoSelectAll")] - AutoSelectAll = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_EnterReturnsTrue")] - EnterReturnsTrue = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CallbackCompletion")] - CallbackCompletion = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CallbackHistory")] - CallbackHistory = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CallbackAlways")] - CallbackAlways = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CallbackCharFilter")] - CallbackCharFilter = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_AllowTabInput")] - AllowTabInput = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CtrlEnterForNewLine")] - CtrlEnterForNewLine = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_NoHorizontalScroll")] - NoHorizontalScroll = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_AlwaysOverwrite")] - AlwaysOverwrite = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_ReadOnly")] - ReadOnly = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_Password")] - Password = unchecked(32768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_NoUndoRedo")] - NoUndoRedo = unchecked(65536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CharsScientific")] - CharsScientific = unchecked(131072), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CallbackResize")] - CallbackResize = unchecked(262144), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_CallbackEdit")] - CallbackEdit = unchecked(524288), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_EscapeClearsAll")] - EscapeClearsAll = unchecked(1048576), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTreeNodeFlags_")] - public enum ImGuiTreeNodeFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_Selected")] - Selected = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_Framed")] - Framed = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_AllowOverlap")] - AllowOverlap = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_NoTreePushOnOpen")] - NoTreePushOnOpen = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_NoAutoOpenOnLog")] - NoAutoOpenOnLog = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_DefaultOpen")] - DefaultOpen = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_OpenOnDoubleClick")] - OpenOnDoubleClick = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_OpenOnArrow")] - OpenOnArrow = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_Leaf")] - Leaf = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_Bullet")] - Bullet = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_FramePadding")] - FramePadding = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_SpanAvailWidth")] - SpanAvailWidth = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_SpanFullWidth")] - SpanFullWidth = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_NavLeftJumpsBackHere")] - NavLeftJumpsBackHere = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_CollapsingHeader")] - CollapsingHeader = unchecked(26), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiPopupFlags_")] - public enum ImGuiPopupFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupFlags_MouseButtonLeft")] - MouseButtonLeft = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupFlags_MouseButtonRight")] - MouseButtonRight = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupFlags_MouseButtonMiddle")] - MouseButtonMiddle = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupFlags_MouseButtonMask_")] - MouseButtonMask = unchecked(31), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupFlags_MouseButtonDefault_")] - MouseButtonDefault = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupFlags_NoOpenOverExistingPopup")] - NoOpenOverExistingPopup = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupFlags_NoOpenOverItems")] - NoOpenOverItems = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupFlags_AnyPopupId")] - AnyPopupId = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupFlags_AnyPopupLevel")] - AnyPopupLevel = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupFlags_AnyPopup")] - AnyPopup = unchecked(384), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiSelectableFlags_")] - public enum ImGuiSelectableFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_DontClosePopups")] - DontClosePopups = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_SpanAllColumns")] - SpanAllColumns = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_AllowDoubleClick")] - AllowDoubleClick = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_Disabled")] - Disabled = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_AllowOverlap")] - AllowOverlap = unchecked(16), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiComboFlags_")] - public enum ImGuiComboFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiComboFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiComboFlags_PopupAlignLeft")] - PopupAlignLeft = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiComboFlags_HeightSmall")] - HeightSmall = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiComboFlags_HeightRegular")] - HeightRegular = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiComboFlags_HeightLarge")] - HeightLarge = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiComboFlags_HeightLargest")] - HeightLargest = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiComboFlags_NoArrowButton")] - NoArrowButton = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiComboFlags_NoPreview")] - NoPreview = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiComboFlags_HeightMask_")] - HeightMask = unchecked(30), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTabBarFlags_")] - public enum ImGuiTabBarFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_Reorderable")] - Reorderable = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_AutoSelectNewTabs")] - AutoSelectNewTabs = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_TabListPopupButton")] - ListPopupButton = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_NoCloseWithMiddleMouseButton")] - NoCloseWithMiddleMouseButton = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_NoTabListScrollingButtons")] - NoTabListScrollingButtons = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_NoTooltip")] - NoTooltip = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_FittingPolicyResizeDown")] - FittingPolicyResizeDown = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_FittingPolicyScroll")] - FittingPolicyScroll = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_FittingPolicyMask_")] - FittingPolicyMask = unchecked(192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_FittingPolicyDefault_")] - FittingPolicyDefault = FittingPolicyResizeDown, - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTabItemFlags_")] - public enum ImGuiTabItemFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_UnsavedDocument")] - UnsavedDocument = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_SetSelected")] - SetSelected = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_NoCloseWithMiddleMouseButton")] - NoCloseWithMiddleMouseButton = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_NoPushId")] - NoPushId = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_NoTooltip")] - NoTooltip = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_NoReorder")] - NoReorder = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_Leading")] - Leading = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_Trailing")] - Trailing = unchecked(128), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTableFlags_")] - public enum ImGuiTableFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_Resizable")] - Resizable = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_Reorderable")] - Reorderable = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_Hideable")] - Hideable = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_Sortable")] - Sortable = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_NoSavedSettings")] - NoSavedSettings = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_ContextMenuInBody")] - ContextMenuInBody = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_RowBg")] - RowBg = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_BordersInnerH")] - BordersInnerh = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_BordersOuterH")] - BordersOuterh = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_BordersInnerV")] - BordersInnerv = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_BordersOuterV")] - BordersOuterv = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_BordersH")] - Bordersh = unchecked(384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_BordersV")] - Bordersv = unchecked(1536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_BordersInner")] - BordersInner = unchecked(640), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_BordersOuter")] - BordersOuter = unchecked(1280), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_Borders")] - Borders = unchecked(1920), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_NoBordersInBody")] - NoBordersInBody = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_NoBordersInBodyUntilResize")] - NoBordersInBodyUntilResize = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_SizingFixedFit")] - SizingFixedFit = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_SizingFixedSame")] - SizingFixedSame = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_SizingStretchProp")] - SizingStretchProp = unchecked(24576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_SizingStretchSame")] - SizingStretchSame = unchecked(32768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_NoHostExtendX")] - NoHostExtendx = unchecked(65536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_NoHostExtendY")] - NoHostExtendy = unchecked(131072), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_NoKeepColumnsVisible")] - NoKeepColumnsVisible = unchecked(262144), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_PreciseWidths")] - PreciseWidths = unchecked(524288), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_NoClip")] - NoClip = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_PadOuterX")] - PadOuterx = unchecked(2097152), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_NoPadOuterX")] - NoPadOuterx = unchecked(4194304), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_NoPadInnerX")] - NoPadInnerx = unchecked(8388608), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_ScrollX")] - Scrollx = unchecked(16777216), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_ScrollY")] - Scrolly = unchecked(33554432), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_SortMulti")] - SortMulti = unchecked(67108864), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_SortTristate")] - SortTristate = unchecked(134217728), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableFlags_SizingMask_")] - SizingMask = unchecked(57344), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTableColumnFlags_")] - public enum ImGuiTableColumnFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_Disabled")] - Disabled = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_DefaultHide")] - DefaultHide = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_DefaultSort")] - DefaultSort = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_WidthStretch")] - WidthStretch = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_WidthFixed")] - WidthFixed = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_NoResize")] - NoResize = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_NoReorder")] - NoReorder = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_NoHide")] - NoHide = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_NoClip")] - NoClip = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_NoSort")] - NoSort = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_NoSortAscending")] - NoSortAscending = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_NoSortDescending")] - NoSortDescending = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_NoHeaderLabel")] - NoHeaderLabel = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_NoHeaderWidth")] - NoHeaderWidth = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_PreferSortAscending")] - PreferSortAscending = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_PreferSortDescending")] - PreferSortDescending = unchecked(32768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_IndentEnable")] - IndentEnable = unchecked(65536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_IndentDisable")] - IndentDisable = unchecked(131072), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_IsEnabled")] - IsEnabled = unchecked(16777216), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_IsVisible")] - IsVisible = unchecked(33554432), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_IsSorted")] - IsSorted = unchecked(67108864), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_IsHovered")] - IsHovered = unchecked(134217728), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_WidthMask_")] - WidthMask = unchecked(24), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_IndentMask_")] - IndentMask = unchecked(196608), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_StatusMask_")] - StatusMask = unchecked(251658240), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableColumnFlags_NoDirectResize_")] - NoDirectResize = unchecked(1073741824), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTableRowFlags_")] - public enum ImGuiTableRowFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableRowFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableRowFlags_Headers")] - Headers = unchecked(1), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTableBgTarget_")] - public enum ImGuiTableBgTarget - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableBgTarget_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableBgTarget_RowBg0")] - RowBg0 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableBgTarget_RowBg1")] - RowBg1 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTableBgTarget_CellBg")] - CellBg = unchecked(3), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiFocusedFlags_")] - public enum ImGuiFocusedFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiFocusedFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiFocusedFlags_ChildWindows")] - ChildWindows = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiFocusedFlags_RootWindow")] - RootWindow = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiFocusedFlags_AnyWindow")] - AnyWindow = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiFocusedFlags_NoPopupHierarchy")] - NoPopupHierarchy = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiFocusedFlags_DockHierarchy")] - DockHierarchy = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiFocusedFlags_RootAndChildWindows")] - RootAndChildWindows = unchecked(3), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiHoveredFlags_")] - public enum ImGuiHoveredFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_ChildWindows")] - ChildWindows = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_RootWindow")] - RootWindow = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_AnyWindow")] - AnyWindow = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_NoPopupHierarchy")] - NoPopupHierarchy = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_DockHierarchy")] - DockHierarchy = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_AllowWhenBlockedByPopup")] - AllowWhenBlockedByPopup = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_AllowWhenBlockedByActiveItem")] - AllowWhenBlockedByActiveItem = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_AllowWhenOverlappedByItem")] - AllowWhenOverlappedByItem = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_AllowWhenOverlappedByWindow")] - AllowWhenOverlappedByWindow = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_AllowWhenDisabled")] - AllowWhenDisabled = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_NoNavOverride")] - NoNavOverride = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_AllowWhenOverlapped")] - AllowWhenOverlapped = unchecked(768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_RectOnly")] - RectOnly = unchecked(928), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_RootAndChildWindows")] - RootAndChildWindows = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_ForTooltip")] - ForTooltip = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_Stationary")] - Stationary = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_DelayNone")] - DelayNone = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_DelayShort")] - DelayShort = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_DelayNormal")] - DelayNormal = unchecked(32768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_NoSharedDelay")] - NoSharedDelay = unchecked(65536), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiDockNodeFlags_")] - public enum ImGuiDockNodeFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_KeepAliveOnly")] - KeepAliveOnly = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoDockingInCentralNode")] - NoDockingInCentralNode = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_PassthruCentralNode")] - PassthruCentralNode = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoSplit")] - NoSplit = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoResize")] - NoResize = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_AutoHideTabBar")] - AutoHideTabBar = unchecked(64), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiDragDropFlags_")] - public enum ImGuiDragDropFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDragDropFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDragDropFlags_SourceNoPreviewTooltip")] - SourceNoPreviewTooltip = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDragDropFlags_SourceNoDisableHover")] - SourceNoDisableHover = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDragDropFlags_SourceNoHoldToOpenOthers")] - SourceNoHoldToOpenOthers = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDragDropFlags_SourceAllowNullID")] - SourceAllowNullId = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDragDropFlags_SourceExtern")] - SourceExtern = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDragDropFlags_SourceAutoExpirePayload")] - SourceAutoExpirePayload = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDragDropFlags_AcceptBeforeDelivery")] - AcceptBeforeDelivery = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDragDropFlags_AcceptNoDrawDefaultRect")] - AcceptNoDrawDefaultRect = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDragDropFlags_AcceptNoPreviewTooltip")] - AcceptNoPreviewTooltip = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDragDropFlags_AcceptPeekOnly")] - AcceptPeekOnly = unchecked(3072), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiDataType_")] - public enum ImGuiDataType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_S8")] - Types8 = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_U8")] - Typeu8 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_S16")] - Types16 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_U16")] - Typeu16 = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_S32")] - Types32 = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_U32")] - Typeu32 = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_S64")] - Types64 = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_U64")] - Typeu64 = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_Float")] - Float = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_Double")] - Double = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_COUNT")] - Count = unchecked(10), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiDir_")] - public enum ImGuiDir - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDir_None")] - None = unchecked(-1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDir_Left")] - Left = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDir_Right")] - Right = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDir_Up")] - Up = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDir_Down")] - Down = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDir_COUNT")] - Count = unchecked(4), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiSortDirection_")] - public enum ImGuiSortDirection - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSortDirection_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSortDirection_Ascending")] - Ascending = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSortDirection_Descending")] - Descending = unchecked(2), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiNavInput")] - public enum ImGuiNavInput - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_Activate")] - Activate = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_Cancel")] - Cancel = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_Input")] - Input = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_Menu")] - Menu = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_DpadLeft")] - DpadLeft = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_DpadRight")] - DpadRight = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_DpadUp")] - DpadUp = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_DpadDown")] - DpadDown = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_LStickLeft")] - InputlStickLeft = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_LStickRight")] - InputlStickRight = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_LStickUp")] - InputlStickUp = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_LStickDown")] - InputlStickDown = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_FocusPrev")] - FocusPrev = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_FocusNext")] - FocusNext = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_TweakSlow")] - TweakSlow = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_TweakFast")] - TweakFast = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavInput_COUNT")] - Count = unchecked(16), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiConfigFlags_")] - public enum ImGuiConfigFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_NavEnableKeyboard")] - NavEnableKeyboard = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_NavEnableGamepad")] - NavEnableGamepad = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_NavEnableSetMousePos")] - NavEnableSetMousePos = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_NavNoCaptureKeyboard")] - NavNoCaptureKeyboard = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_NoMouse")] - NoMouse = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_NoMouseCursorChange")] - NoMouseCursorChange = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_DockingEnable")] - DockingEnable = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_ViewportsEnable")] - ViewportsEnable = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_DpiEnableScaleViewports")] - DpiEnableScaleViewports = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_DpiEnableScaleFonts")] - DpiEnableScaleFonts = unchecked(32768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_IsSRGB")] - IsSrgb = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiConfigFlags_IsTouchScreen")] - IsTouchScreen = unchecked(2097152), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiBackendFlags_")] - public enum ImGuiBackendFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiBackendFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiBackendFlags_HasGamepad")] - HasGamepad = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiBackendFlags_HasMouseCursors")] - HasMouseCursors = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiBackendFlags_HasSetMousePos")] - HasSetMousePos = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiBackendFlags_RendererHasVtxOffset")] - RendererHasVtxOffset = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiBackendFlags_PlatformHasViewports")] - PlatformHasViewports = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiBackendFlags_HasMouseHoveredViewport")] - HasMouseHoveredViewport = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiBackendFlags_RendererHasViewports")] - RendererHasViewports = unchecked(4096), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiCol_")] - public enum ImGuiCol - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_Text")] - Text = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TextDisabled")] - TextDisabled = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_WindowBg")] - WindowBg = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_ChildBg")] - ChildBg = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_PopupBg")] - PopupBg = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_Border")] - Border = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_BorderShadow")] - BorderShadow = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_FrameBg")] - FrameBg = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_FrameBgHovered")] - FrameBgHovered = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_FrameBgActive")] - FrameBgActive = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TitleBg")] - TitleBg = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TitleBgActive")] - TitleBgActive = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TitleBgCollapsed")] - TitleBgCollapsed = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_MenuBarBg")] - MenuBarBg = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_ScrollbarBg")] - ScrollbarBg = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_ScrollbarGrab")] - ScrollbarGrab = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_ScrollbarGrabHovered")] - ScrollbarGrabHovered = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_ScrollbarGrabActive")] - ScrollbarGrabActive = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_CheckMark")] - CheckMark = unchecked(18), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_SliderGrab")] - SliderGrab = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_SliderGrabActive")] - SliderGrabActive = unchecked(20), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_Button")] - Button = unchecked(21), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_ButtonHovered")] - ButtonHovered = unchecked(22), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_ButtonActive")] - ButtonActive = unchecked(23), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_Header")] - Header = unchecked(24), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_HeaderHovered")] - HeaderHovered = unchecked(25), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_HeaderActive")] - HeaderActive = unchecked(26), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_Separator")] - Separator = unchecked(27), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_SeparatorHovered")] - SeparatorHovered = unchecked(28), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_SeparatorActive")] - SeparatorActive = unchecked(29), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_ResizeGrip")] - ResizeGrip = unchecked(30), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_ResizeGripHovered")] - ResizeGripHovered = unchecked(31), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_ResizeGripActive")] - ResizeGripActive = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_Tab")] - Tab = unchecked(33), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TabHovered")] - TabHovered = unchecked(34), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TabActive")] - TabActive = unchecked(35), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TabUnfocused")] - TabUnfocused = unchecked(36), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TabUnfocusedActive")] - TabUnfocusedActive = unchecked(37), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_DockingPreview")] - DockingPreview = unchecked(38), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_DockingEmptyBg")] - DockingEmptyBg = unchecked(39), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_PlotLines")] - PlotLines = unchecked(40), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_PlotLinesHovered")] - PlotLinesHovered = unchecked(41), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_PlotHistogram")] - PlotHistogram = unchecked(42), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_PlotHistogramHovered")] - PlotHistogramHovered = unchecked(43), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TableHeaderBg")] - TableHeaderBg = unchecked(44), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TableBorderStrong")] - TableBorderStrong = unchecked(45), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TableBorderLight")] - TableBorderLight = unchecked(46), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TableRowBg")] - TableRowBg = unchecked(47), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TableRowBgAlt")] - TableRowBgAlt = unchecked(48), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_TextSelectedBg")] - TextSelectedBg = unchecked(49), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_DragDropTarget")] - DragDropTarget = unchecked(50), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_NavHighlight")] - NavHighlight = unchecked(51), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_NavWindowingHighlight")] - NavWindowingHighlight = unchecked(52), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_NavWindowingDimBg")] - NavWindowingDimBg = unchecked(53), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_ModalWindowDimBg")] - ModalWindowDimBg = unchecked(54), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCol_COUNT")] - Count = unchecked(55), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiStyleVar_")] - public enum ImGuiStyleVar - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_Alpha")] - Alpha = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_DisabledAlpha")] - DisabledAlpha = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_WindowPadding")] - WindowPadding = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_WindowRounding")] - WindowRounding = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_WindowBorderSize")] - WindowBorderSize = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_WindowMinSize")] - WindowMinSize = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_WindowTitleAlign")] - WindowTitleAlign = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_ChildRounding")] - ChildRounding = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_ChildBorderSize")] - ChildBorderSize = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_PopupRounding")] - PopupRounding = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_PopupBorderSize")] - PopupBorderSize = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_FramePadding")] - FramePadding = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_FrameRounding")] - FrameRounding = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_FrameBorderSize")] - FrameBorderSize = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_ItemSpacing")] - ItemSpacing = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_ItemInnerSpacing")] - ItemInnerSpacing = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_IndentSpacing")] - IndentSpacing = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_CellPadding")] - CellPadding = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_ScrollbarSize")] - ScrollbarSize = unchecked(18), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_ScrollbarRounding")] - ScrollbarRounding = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_GrabMinSize")] - GrabMinSize = unchecked(20), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_GrabRounding")] - GrabRounding = unchecked(21), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_TabRounding")] - TabRounding = unchecked(22), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_ButtonTextAlign")] - ButtonTextAlign = unchecked(23), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_SelectableTextAlign")] - SelectableTextAlign = unchecked(24), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_SeparatorTextBorderSize")] - SeparatorTextBorderSize = unchecked(25), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_SeparatorTextAlign")] - SeparatorTextAlign = unchecked(26), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_SeparatorTextPadding")] - SeparatorTextPadding = unchecked(27), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiStyleVar_COUNT")] - Count = unchecked(28), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiButtonFlags_")] - public enum ImGuiButtonFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_MouseButtonLeft")] - MouseButtonLeft = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_MouseButtonRight")] - MouseButtonRight = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_MouseButtonMiddle")] - MouseButtonMiddle = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_MouseButtonMask_")] - MouseButtonMask = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_MouseButtonDefault_")] - MouseButtonDefault = MouseButtonLeft, - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiColorEditFlags_")] - public enum ImGuiColorEditFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_NoAlpha")] - NoAlpha = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_NoPicker")] - NoPicker = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_NoOptions")] - NoOptions = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_NoSmallPreview")] - NoSmallPreview = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_NoInputs")] - NoInputs = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_NoTooltip")] - NoTooltip = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_NoLabel")] - NoLabel = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_NoSidePreview")] - NoSidePreview = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_NoDragDrop")] - NoDragDrop = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_NoBorder")] - NoBorder = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_AlphaBar")] - AlphaBar = unchecked(65536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_AlphaPreview")] - AlphaPreview = unchecked(131072), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_AlphaPreviewHalf")] - AlphaPreviewHalf = unchecked(262144), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_HDR")] - Hdr = unchecked(524288), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_DisplayRGB")] - DisplayRgb = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_DisplayHSV")] - DisplayHsv = unchecked(2097152), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_DisplayHex")] - DisplayHex = unchecked(4194304), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_Uint8")] - Uint8 = unchecked(8388608), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_Float")] - Float = unchecked(16777216), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_PickerHueBar")] - PickerHueBar = unchecked(33554432), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_PickerHueWheel")] - PickerHueWheel = unchecked(67108864), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_InputRGB")] - InputRgb = unchecked(134217728), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_InputHSV")] - InputHsv = unchecked(268435456), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_DefaultOptions_")] - DefaultOptions = unchecked(177209344), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_DisplayMask_")] - DisplayMask = unchecked(7340032), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_DataTypeMask_")] - DataTypeMask = unchecked(25165824), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_PickerMask_")] - PickerMask = unchecked(100663296), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiColorEditFlags_InputMask_")] - InputMask = unchecked(402653184), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiSliderFlags_")] - public enum ImGuiSliderFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSliderFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSliderFlags_AlwaysClamp")] - AlwaysClamp = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSliderFlags_Logarithmic")] - Logarithmic = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSliderFlags_NoRoundToFormat")] - NoRoundToFormat = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSliderFlags_NoInput")] - NoInput = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSliderFlags_InvalidMask_")] - InvalidMask = unchecked(1879048207), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiMouseButton_")] - public enum ImGuiMouseButton - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseButton_Left")] - Left = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseButton_Right")] - Right = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseButton_Middle")] - Middle = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseButton_COUNT")] - Count = unchecked(5), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiMouseCursor_")] - public enum ImGuiMouseCursor - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseCursor_None")] - None = unchecked(-1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseCursor_Arrow")] - Arrow = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseCursor_TextInput")] - TextInput = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseCursor_ResizeAll")] - ResizeAll = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseCursor_ResizeNS")] - ResizeNs = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseCursor_ResizeEW")] - ResizeEw = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseCursor_ResizeNESW")] - ResizeNesw = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseCursor_ResizeNWSE")] - ResizeNwse = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseCursor_Hand")] - Hand = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseCursor_NotAllowed")] - NotAllowed = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiMouseCursor_COUNT")] - Count = unchecked(9), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiCond_")] - public enum ImGuiCond - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCond_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCond_Always")] - Always = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCond_Once")] - Once = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCond_FirstUseEver")] - FirstUseEver = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiCond_Appearing")] - Appearing = unchecked(8), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImDrawFlags_")] - public enum ImDrawFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_Closed")] - Closed = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersTopLeft")] - RoundCornersTopLeft = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersTopRight")] - RoundCornersTopRight = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersBottomLeft")] - RoundCornersBottomLeft = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersBottomRight")] - RoundCornersBottomRight = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersNone")] - RoundCornersNone = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersTop")] - RoundCornersTop = unchecked(48), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersBottom")] - RoundCornersBottom = unchecked(192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersLeft")] - RoundCornersLeft = unchecked(80), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersRight")] - RoundCornersRight = unchecked(160), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersAll")] - RoundCornersAll = unchecked(240), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersDefault_")] - RoundCornersDefault = RoundCornersAll, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawFlags_RoundCornersMask_")] - RoundCornersMask = unchecked(496), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImDrawListFlags_")] - public enum ImDrawListFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawListFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawListFlags_AntiAliasedLines")] - AntiAliasedLines = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawListFlags_AntiAliasedLinesUseTex")] - AntiAliasedLinesUseTex = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawListFlags_AntiAliasedFill")] - AntiAliasedFill = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImDrawListFlags_AllowVtxOffset")] - AllowVtxOffset = unchecked(8), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImFontAtlasFlags_")] - public enum ImFontAtlasFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImFontAtlasFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImFontAtlasFlags_NoPowerOfTwoHeight")] - NoPowerOfTwoHeight = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImFontAtlasFlags_NoMouseCursors")] - NoMouseCursors = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImFontAtlasFlags_NoBakedLines")] - NoBakedLines = unchecked(4), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiViewportFlags_")] - public enum ImGuiViewportFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_IsPlatformWindow")] - IsPlatformWindow = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_IsPlatformMonitor")] - IsPlatformMonitor = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_OwnedByApp")] - OwnedByApp = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_NoDecoration")] - NoDecoration = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_NoTaskBarIcon")] - NoTaskBarIcon = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_NoFocusOnAppearing")] - NoFocusOnAppearing = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_NoFocusOnClick")] - NoFocusOnClick = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_NoInputs")] - NoInputs = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_NoRendererClear")] - NoRendererClear = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_NoAutoMerge")] - NoAutoMerge = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_TopMost")] - TopMost = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_CanHostOtherWindows")] - CanHostOtherWindows = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_IsMinimized")] - IsMinimized = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiViewportFlags_IsFocused")] - IsFocused = unchecked(8192), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiItemFlags_")] - public enum ImGuiItemFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemFlags_NoTabStop")] - NoTabStop = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemFlags_ButtonRepeat")] - ButtonRepeat = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemFlags_Disabled")] - Disabled = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemFlags_NoNav")] - NoNav = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemFlags_NoNavDefaultFocus")] - NoNavDefaultFocus = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemFlags_SelectableDontClosePopup")] - SelectableDontClosePopup = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemFlags_MixedValue")] - MixedValue = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemFlags_ReadOnly")] - ReadOnly = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemFlags_NoWindowHoverableCheck")] - NoWindowHoverableCheck = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemflags_AllowOverlap")] - ItemflagsAllowOverlap = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemFlags_Inputable")] - Inputable = unchecked(1024), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiItemStatusFlags_")] - public enum ImGuiItemStatusFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemStatusFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemStatusFlags_HoveredRect")] - HoveredRect = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemStatusFlags_HasDisplayRect")] - HasDisplayRect = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemStatusFlags_Edited")] - Edited = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemStatusFlags_ToggledSelection")] - ToggledSelection = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemStatusFlags_ToggledOpen")] - ToggledOpen = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemStatusFlags_HasDeactivated")] - HasDeactivated = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemStatusFlags_Deactivated")] - Deactivated = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemStatusFlags_HoveredWindow")] - HoveredWindow = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemStatusFlags_FocusedByTabbing")] - FocusedByTabbing = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiItemStatusFlags_Visible")] - Visible = unchecked(512), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiHoveredFlagsPrivate_")] - public enum ImGuiHoveredFlagsPrivate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_DelayMask_")] - DelayMask = unchecked(122880), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_AllowedMaskForIsWindowHovered")] - AllowedMaskForIsWindowHovered = unchecked(6335), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiHoveredFlags_AllowedMaskForIsItemHovered")] - AllowedMaskForIsItemHovered = unchecked(130976), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiInputTextFlagsPrivate_")] - public enum ImGuiInputTextFlagsPrivate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_Multiline")] - Multiline = unchecked(67108864), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_NoMarkEdited")] - NoMarkEdited = unchecked(134217728), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputTextFlags_MergedItem")] - MergedItem = unchecked(268435456), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiButtonFlagsPrivate_")] - public enum ImGuiButtonFlagsPrivate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_PressedOnClick")] - PressedOnClick = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_PressedOnClickRelease")] - PressedOnClickRelease = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_PressedOnClickReleaseAnywhere")] - PressedOnClickReleaseAnywhere = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_PressedOnRelease")] - PressedOnRelease = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_PressedOnDoubleClick")] - PressedOnDoubleClick = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_PressedOnDragDropHold")] - PressedOnDragDropHold = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_Repeat")] - Repeat = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_FlattenChildren")] - FlattenChildren = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_AllowOverlap")] - AllowOverlap = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_DontClosePopups")] - DontClosePopups = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_AlignTextBaseLine")] - AlignTextBaseLine = unchecked(32768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_NoKeyModifiers")] - NoKeyModifiers = unchecked(65536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_NoHoldingActiveId")] - NoHoldingActiveId = unchecked(131072), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_NoNavFocus")] - NoNavFocus = unchecked(262144), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_NoHoveredOnFocus")] - NoHoveredOnFocus = unchecked(524288), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_NoSetKeyOwner")] - NoSetKeyOwner = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_NoTestKeyOwner")] - NoTestKeyOwner = unchecked(2097152), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_PressedOnMask_")] - PressedOnMask = unchecked(1008), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiButtonFlags_PressedOnDefault_")] - PressedOnDefault = PressedOnClickRelease, - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiComboFlagsPrivate_")] - public enum ImGuiComboFlagsPrivate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiComboFlags_CustomPreview")] - CustomPreview = unchecked(1048576), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiSliderFlagsPrivate_")] - public enum ImGuiSliderFlagsPrivate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSliderFlags_Vertical")] - Vertical = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSliderFlags_ReadOnly")] - ReadOnly = unchecked(2097152), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiSelectableFlagsPrivate_")] - public enum ImGuiSelectableFlagsPrivate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_NoHoldingActiveID")] - NoHoldingActiveId = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_SelectOnNav")] - SelectOnNav = unchecked(2097152), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_SelectOnClick")] - SelectOnClick = unchecked(4194304), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_SelectOnRelease")] - SelectOnRelease = unchecked(8388608), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_SpanAvailWidth")] - SpanAvailWidth = unchecked(16777216), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_SetNavIdOnHover")] - SetNavIdOnHover = unchecked(33554432), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_NoPadWithHalfSpacing")] - NoPadWithHalfSpacing = unchecked(67108864), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSelectableFlags_NoSetKeyOwner")] - NoSetKeyOwner = unchecked(134217728), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTreeNodeFlagsPrivate_")] - public enum ImGuiTreeNodeFlagsPrivate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_ClipLabelForTrailingButton")] - ClipLabelForTrailingButton = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTreeNodeFlags_UpsideDownArrow")] - UpsideDownArrow = unchecked(2097152), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiSeparatorFlags_")] - public enum ImGuiSeparatorFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSeparatorFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSeparatorFlags_Horizontal")] - Horizontal = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSeparatorFlags_Vertical")] - Vertical = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiSeparatorFlags_SpanAllColumns")] - SpanAllColumns = unchecked(4), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiFocusRequestFlags_")] - public enum ImGuiFocusRequestFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiFocusRequestFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiFocusRequestFlags_RestoreFocusedChild")] - RestoreFocusedChild = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiFocusRequestFlags_UnlessBelowModal")] - UnlessBelowModal = unchecked(2), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTextFlags_")] - public enum ImGuiTextFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTextFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTextFlags_NoWidthForLargeClippedText")] - NoWidthForLargeClippedText = unchecked(1), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTooltipFlags_")] - public enum ImGuiTooltipFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTooltipFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTooltipFlags_OverridePrevious")] - OverridePrevious = unchecked(2), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiLayoutType_")] - public enum ImGuiLayoutType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLayoutType_Horizontal")] - Horizontal = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiLayoutType_Vertical")] - Vertical = unchecked(1), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiPlotType")] - public enum ImGuiPlotType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPlotType_Lines")] - Lines = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPlotType_Histogram")] - Histogram = unchecked(1), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiPopupPositionPolicy")] - public enum ImGuiPopupPositionPolicy - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupPositionPolicy_Default")] - Default = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupPositionPolicy_ComboBox")] - ComboBox = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiPopupPositionPolicy_Tooltip")] - Tooltip = unchecked(2), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiDataTypePrivate_")] - public enum ImGuiDataTypePrivate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_String")] - String = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_Pointer")] - Pointer = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataType_ID")] - Id = unchecked(13), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiNextWindowDataFlags_")] - public enum ImGuiNextWindowDataFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_HasPos")] - HasPos = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_HasSize")] - HasSize = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_HasContentSize")] - HasContentSize = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_HasCollapsed")] - HasCollapsed = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_HasSizeConstraint")] - HasSizeConstraint = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_HasFocus")] - HasFocus = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_HasBgAlpha")] - HasBgAlpha = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_HasScroll")] - HasScroll = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_HasViewport")] - HasViewport = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_HasDock")] - HasDock = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextWindowDataFlags_HasWindowClass")] - HasWindowClass = unchecked(1024), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiNextItemDataFlags_")] - public enum ImGuiNextItemDataFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextItemDataFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextItemDataFlags_HasWidth")] - HasWidth = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNextItemDataFlags_HasOpen")] - HasOpen = unchecked(2), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiInputFlags_")] - public enum ImGuiInputFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_Repeat")] - Repeat = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RepeatRateDefault")] - RepeatRateDefault = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RepeatRateNavMove")] - RepeatRateNavMove = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RepeatRateNavTweak")] - RepeatRateNavTweak = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RepeatRateMask_")] - RepeatRateMask = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_CondHovered")] - CondHovered = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_CondActive")] - CondActive = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_CondDefault_")] - CondDefault = unchecked(48), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_CondMask_")] - CondMask = unchecked(48), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_LockThisFrame")] - LockThisFrame = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_LockUntilRelease")] - LockUntilRelease = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RouteFocused")] - RouteFocused = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RouteGlobalLow")] - RouteGlobalLow = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RouteGlobal")] - RouteGlobal = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RouteGlobalHigh")] - RouteGlobalHigh = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RouteMask_")] - RouteMask = unchecked(3840), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RouteAlways")] - RouteAlways = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RouteUnlessBgFocused")] - RouteUnlessBgFocused = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_RouteExtraMask_")] - RouteExtraMask = unchecked(12288), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_SupportedByIsKeyPressed")] - SupportedByIsKeyPressed = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_SupportedByShortcut")] - SupportedByShortcut = unchecked(16143), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_SupportedBySetKeyOwner")] - SupportedBySetKeyOwner = unchecked(192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiInputFlags_SupportedBySetItemKeyOwner")] - SupportedBySetItemKeyOwner = unchecked(240), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiActivateFlags_")] - public enum ImGuiActivateFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiActivateFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiActivateFlags_PreferInput")] - PreferInput = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiActivateFlags_PreferTweak")] - PreferTweak = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiActivateFlags_TryToPreserveState")] - TryToPreserveState = unchecked(4), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiScrollFlags_")] - public enum ImGuiScrollFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiScrollFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiScrollFlags_KeepVisibleEdgeX")] - KeepVisibleEdgex = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiScrollFlags_KeepVisibleEdgeY")] - KeepVisibleEdgey = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiScrollFlags_KeepVisibleCenterX")] - KeepVisibleCenterx = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiScrollFlags_KeepVisibleCenterY")] - KeepVisibleCentery = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiScrollFlags_AlwaysCenterX")] - AlwaysCenterx = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiScrollFlags_AlwaysCenterY")] - AlwaysCentery = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiScrollFlags_NoScrollParent")] - NoScrollParent = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiScrollFlags_MaskX_")] - Maskx = unchecked(21), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiScrollFlags_MaskY_")] - Masky = unchecked(42), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiNavHighlightFlags_")] - public enum ImGuiNavHighlightFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavHighlightFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavHighlightFlags_TypeDefault")] - TypeDefault = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavHighlightFlags_TypeThin")] - TypeThin = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavHighlightFlags_AlwaysDraw")] - AlwaysDraw = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavHighlightFlags_NoRounding")] - NoRounding = unchecked(8), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiNavMoveFlags_")] - public enum ImGuiNavMoveFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_LoopX")] - Loopx = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_LoopY")] - Loopy = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_WrapX")] - Wrapx = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_WrapY")] - Wrapy = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_WrapMask_")] - WrapMask = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_AllowCurrentNavId")] - AllowCurrentNavId = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_AlsoScoreVisibleSet")] - AlsoScoreVisibleSet = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_ScrollToEdgeY")] - ScrollToEdgey = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_Forwarded")] - Forwarded = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_DebugNoResult")] - DebugNoResult = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_FocusApi")] - FocusApi = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_Tabbing")] - Tabbing = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_Activate")] - Activate = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_NoSelect")] - NoSelect = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiNavMoveFlags_NoSetNavHighlight")] - NoSetNavHighlight = unchecked(8192), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiOldColumnFlags_")] - public enum ImGuiOldColumnFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiOldColumnFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiOldColumnFlags_NoBorder")] - NoBorder = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiOldColumnFlags_NoResize")] - NoResize = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiOldColumnFlags_NoPreserveWidths")] - NoPreserveWidths = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiOldColumnFlags_NoForceWithinWindow")] - NoForceWithinWindow = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiOldColumnFlags_GrowParentContentsSize")] - GrowParentContentsSize = unchecked(16), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiDockNodeFlagsPrivate_")] - public enum ImGuiDockNodeFlagsPrivate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_DockSpace")] - Space = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_CentralNode")] - CentralNode = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoTabBar")] - NoTabBar = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_HiddenTabBar")] - HiddenTabBar = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoWindowMenuButton")] - NoWindowMenuButton = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoCloseButton")] - NoCloseButton = unchecked(32768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoDocking")] - NoDocking = unchecked(65536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoDockingSplitMe")] - NoDockingSplitMe = unchecked(131072), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoDockingSplitOther")] - NoDockingSplitOther = unchecked(262144), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoDockingOverMe")] - NoDockingOverMe = unchecked(524288), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoDockingOverOther")] - NoDockingOverOther = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoDockingOverEmpty")] - NoDockingOverEmpty = unchecked(2097152), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoResizeX")] - NoResizex = unchecked(4194304), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoResizeY")] - NoResizey = unchecked(8388608), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_SharedFlagsInheritMask_")] - SharedFlagsInheritMask = unchecked(-1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_NoResizeFlagsMask_")] - NoResizeFlagsMask = unchecked(12582944), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_LocalFlagsMask_")] - LocalFlagsMask = unchecked(12713072), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_LocalFlagsTransferMask_")] - LocalFlagsTransferMask = unchecked(12712048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDockNodeFlags_SavedFlagsMask_")] - SavedFlagsMask = unchecked(12712992), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiDataAuthority_")] - public enum ImGuiDataAuthority - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataAuthority_Auto")] - Auto = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataAuthority_DockNode")] - DockNode = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDataAuthority_Window")] - Window = unchecked(2), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiWindowDockStyleCol")] - public enum ImGuiWindowDockStyleCol - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowDockStyleCol_Text")] - Text = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowDockStyleCol_Tab")] - Tab = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowDockStyleCol_TabHovered")] - TabHovered = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowDockStyleCol_TabActive")] - TabActive = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowDockStyleCol_TabUnfocused")] - TabUnfocused = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowDockStyleCol_TabUnfocusedActive")] - TabUnfocusedActive = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiWindowDockStyleCol_COUNT")] - Count = unchecked(6), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiDebugLogFlags_")] - public enum ImGuiDebugLogFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_None")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_EventActiveId")] - EventActiveId = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_EventFocus")] - EventFocus = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_EventPopup")] - EventPopup = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_EventNav")] - EventNav = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_EventClipper")] - EventClipper = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_EventSelection")] - EventSelection = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_EventIO")] - EventIo = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_EventDocking")] - EventDocking = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_EventViewport")] - EventViewport = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_EventMask_")] - EventMask = unchecked(511), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiDebugLogFlags_OutputToTTY")] - OutputToTty = unchecked(1024), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTabBarFlagsPrivate_")] - public enum ImGuiTabBarFlagsPrivate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_DockNode")] - DockNode = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_IsFocused")] - IsFocused = unchecked(2097152), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabBarFlags_SaveSettings")] - SaveSettings = unchecked(4194304), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "ImGuiTabItemFlagsPrivate_")] - public enum ImGuiTabItemFlagsPrivate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_SectionMask_")] - SectionMask = unchecked(192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_NoCloseButton")] - NoCloseButton = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_Button")] - Button = unchecked(2097152), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_Unsorted")] - Unsorted = unchecked(4194304), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "ImGuiTabItemFlags_Preview")] - Preview = unchecked(8388608), - - } - -} +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + /// /// To be documented. /// public enum ImGuiMouseSource + { + /// /// Input is coming from an actual mouse.
///
Mouse = unchecked(0), + + /// /// Input is coming from a touch screen (no hovering prior to initial press, less precise initial press aiming, dual-axis wheeling possible).
///
TouchScreen = unchecked(1), + + /// /// Input is coming from a pressuremagnetic pen (often used in conjunction with high-sampling rates).
///
Pen = unchecked(2), + + /// /// To be documented. /// Count = unchecked(3), + + } + + /// /// To be documented. /// public enum ImGuiInputEventType + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// MousePos = unchecked(1), + + /// /// To be documented. /// MouseWheel = unchecked(2), + + /// /// To be documented. /// MouseButton = unchecked(3), + + /// /// To be documented. /// MouseViewport = unchecked(4), + + /// /// To be documented. /// Key = unchecked(5), + + /// /// To be documented. /// Text = unchecked(6), + + /// /// To be documented. /// Focus = unchecked(7), + + /// /// To be documented. /// Count = unchecked(8), + + } + + /// /// To be documented. /// public enum ImGuiInputSource + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// Mouse = unchecked(1), + + /// /// To be documented. /// Keyboard = unchecked(2), + + /// /// To be documented. /// Gamepad = unchecked(3), + + /// /// To be documented. /// Clipboard = unchecked(4), + + /// /// To be documented. /// Count = unchecked(5), + + } + + /// /// To be documented. /// public enum ImGuiKey + { + /// /// To be documented. /// None = unchecked(0), + + /// /// == ImGuiKey_NamedKey_BEGIN
///
Tab = unchecked(512), + + /// /// To be documented. /// LeftArrow = unchecked(513), + + /// /// To be documented. /// RightArrow = unchecked(514), + + /// /// To be documented. /// UpArrow = unchecked(515), + + /// /// To be documented. /// DownArrow = unchecked(516), + + /// /// To be documented. /// PageUp = unchecked(517), + + /// /// To be documented. /// PageDown = unchecked(518), + + /// /// To be documented. /// Home = unchecked(519), + + /// /// To be documented. /// End = unchecked(520), + + /// /// To be documented. /// Insert = unchecked(521), + + /// /// To be documented. /// Delete = unchecked(522), + + /// /// To be documented. /// Backspace = unchecked(523), + + /// /// To be documented. /// Space = unchecked(524), + + /// /// To be documented. /// Enter = unchecked(525), + + /// /// To be documented. /// Escape = unchecked(526), + + /// /// To be documented. /// LeftCtrl = unchecked(527), + + /// /// To be documented. /// LeftShift = unchecked(528), + + /// /// To be documented. /// LeftAlt = unchecked(529), + + /// /// To be documented. /// LeftSuper = unchecked(530), + + /// /// To be documented. /// RightCtrl = unchecked(531), + + /// /// To be documented. /// RightShift = unchecked(532), + + /// /// To be documented. /// RightAlt = unchecked(533), + + /// /// To be documented. /// RightSuper = unchecked(534), + + /// /// To be documented. /// Menu = unchecked(535), + + /// /// To be documented. /// Key0 = unchecked(536), + + /// /// To be documented. /// Key1 = unchecked(537), + + /// /// To be documented. /// Key2 = unchecked(538), + + /// /// To be documented. /// Key3 = unchecked(539), + + /// /// To be documented. /// Key4 = unchecked(540), + + /// /// To be documented. /// Key5 = unchecked(541), + + /// /// To be documented. /// Key6 = unchecked(542), + + /// /// To be documented. /// Key7 = unchecked(543), + + /// /// To be documented. /// Key8 = unchecked(544), + + /// /// To be documented. /// Key9 = unchecked(545), + + /// /// To be documented. /// Keya = unchecked(546), + + /// /// To be documented. /// Keyb = unchecked(547), + + /// /// To be documented. /// Keyc = unchecked(548), + + /// /// To be documented. /// Keyd = unchecked(549), + + /// /// To be documented. /// Keye = unchecked(550), + + /// /// To be documented. /// Keyf = unchecked(551), + + /// /// To be documented. /// Keyg = unchecked(552), + + /// /// To be documented. /// Keyh = unchecked(553), + + /// /// To be documented. /// Keyi = unchecked(554), + + /// /// To be documented. /// Keyj = unchecked(555), + + /// /// To be documented. /// Keyk = unchecked(556), + + /// /// To be documented. /// Keyl = unchecked(557), + + /// /// To be documented. /// Keym = unchecked(558), + + /// /// To be documented. /// Keyn = unchecked(559), + + /// /// To be documented. /// Keyo = unchecked(560), + + /// /// To be documented. /// Keyp = unchecked(561), + + /// /// To be documented. /// Keyq = unchecked(562), + + /// /// To be documented. /// Keyr = unchecked(563), + + /// /// To be documented. /// Keys = unchecked(564), + + /// /// To be documented. /// Keyt = unchecked(565), + + /// /// To be documented. /// Keyu = unchecked(566), + + /// /// To be documented. /// Keyv = unchecked(567), + + /// /// To be documented. /// Keyw = unchecked(568), + + /// /// To be documented. /// Keyx = unchecked(569), + + /// /// To be documented. /// Keyy = unchecked(570), + + /// /// To be documented. /// Keyz = unchecked(571), + + /// /// To be documented. /// Keyf1 = unchecked(572), + + /// /// To be documented. /// Keyf2 = unchecked(573), + + /// /// To be documented. /// Keyf3 = unchecked(574), + + /// /// To be documented. /// Keyf4 = unchecked(575), + + /// /// To be documented. /// Keyf5 = unchecked(576), + + /// /// To be documented. /// Keyf6 = unchecked(577), + + /// /// To be documented. /// Keyf7 = unchecked(578), + + /// /// To be documented. /// Keyf8 = unchecked(579), + + /// /// To be documented. /// Keyf9 = unchecked(580), + + /// /// To be documented. /// Keyf10 = unchecked(581), + + /// /// To be documented. /// Keyf11 = unchecked(582), + + /// /// To be documented. /// Keyf12 = unchecked(583), + + /// /// To be documented. /// Keyf13 = unchecked(584), + + /// /// To be documented. /// Keyf14 = unchecked(585), + + /// /// To be documented. /// Keyf15 = unchecked(586), + + /// /// To be documented. /// Keyf16 = unchecked(587), + + /// /// To be documented. /// Keyf17 = unchecked(588), + + /// /// To be documented. /// Keyf18 = unchecked(589), + + /// /// To be documented. /// Keyf19 = unchecked(590), + + /// /// To be documented. /// Keyf20 = unchecked(591), + + /// /// To be documented. /// Keyf21 = unchecked(592), + + /// /// To be documented. /// Keyf22 = unchecked(593), + + /// /// To be documented. /// Keyf23 = unchecked(594), + + /// /// To be documented. /// Keyf24 = unchecked(595), + + /// /// '
///
Apostrophe = unchecked(596), + + /// /// ,
///
Comma = unchecked(597), + + /// /// -
///
Minus = unchecked(598), + + /// /// .
///
Period = unchecked(599), + + /// /// Slash = unchecked(600), + + /// /// ;
///
Semicolon = unchecked(601), + + /// /// =
///
Equal = unchecked(602), + + /// /// [
///
LeftBracket = unchecked(603), + + /// /// \ (this text inhibit multiline comment caused by backslash)
///
Backslash = unchecked(604), + + /// /// ]
///
RightBracket = unchecked(605), + + /// /// `
///
GraveAccent = unchecked(606), + + /// /// To be documented. /// CapsLock = unchecked(607), + + /// /// To be documented. /// ScrollLock = unchecked(608), + + /// /// To be documented. /// NumLock = unchecked(609), + + /// /// To be documented. /// PrintScreen = unchecked(610), + + /// /// To be documented. /// Pause = unchecked(611), + + /// /// To be documented. /// Keypad0 = unchecked(612), + + /// /// To be documented. /// Keypad1 = unchecked(613), + + /// /// To be documented. /// Keypad2 = unchecked(614), + + /// /// To be documented. /// Keypad3 = unchecked(615), + + /// /// To be documented. /// Keypad4 = unchecked(616), + + /// /// To be documented. /// Keypad5 = unchecked(617), + + /// /// To be documented. /// Keypad6 = unchecked(618), + + /// /// To be documented. /// Keypad7 = unchecked(619), + + /// /// To be documented. /// Keypad8 = unchecked(620), + + /// /// To be documented. /// Keypad9 = unchecked(621), + + /// /// To be documented. /// KeypadDecimal = unchecked(622), + + /// /// To be documented. /// KeypadDivide = unchecked(623), + + /// /// To be documented. /// KeypadMultiply = unchecked(624), + + /// /// To be documented. /// KeypadSubtract = unchecked(625), + + /// /// To be documented. /// KeypadAdd = unchecked(626), + + /// /// To be documented. /// KeypadEnter = unchecked(627), + + /// /// To be documented. /// KeypadEqual = unchecked(628), + + /// /// Available on some keyboardmouses. Often referred as "Browser Back"
///
AppBack = unchecked(629), + + /// /// To be documented. /// AppForward = unchecked(630), + + /// /// Menu (Xbox) + (Switch) StartOptions (PS)
///
GamepadStart = unchecked(631), + + /// /// View (Xbox) - (Switch) Share (PS)
///
GamepadBack = unchecked(632), + + /// /// X (Xbox) Y (Switch) Square (PS) Tap: Toggle Menu. Hold: Windowing mode (FocusMoveResize windows)
///
GamepadFaceLeft = unchecked(633), + + /// /// B (Xbox) A (Switch) Circle (PS) Cancel Close Exit
///
GamepadFaceRight = unchecked(634), + + /// /// Y (Xbox) X (Switch) Triangle (PS) Text Input On-screen Keyboard
///
GamepadFaceUp = unchecked(635), + + /// /// A (Xbox) B (Switch) Cross (PS) Activate Open Toggle Tweak
///
GamepadFaceDown = unchecked(636), + + /// /// D-pad Left Move Tweak Resize Window (in Windowing mode)
///
GamepadDpadLeft = unchecked(637), + + /// /// D-pad Right Move Tweak Resize Window (in Windowing mode)
///
GamepadDpadRight = unchecked(638), + + /// /// D-pad Up Move Tweak Resize Window (in Windowing mode)
///
GamepadDpadUp = unchecked(639), + + /// /// D-pad Down Move Tweak Resize Window (in Windowing mode)
///
GamepadDpadDown = unchecked(640), + + /// /// L Bumper (Xbox) L (Switch) L1 (PS) Tweak Slower Focus Previous (in Windowing mode)
///
Gamepadl1 = unchecked(641), + + /// /// R Bumper (Xbox) R (Switch) R1 (PS) Tweak Faster Focus Next (in Windowing mode)
///
Gamepadr1 = unchecked(642), + + /// /// L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog]
///
Gamepadl2 = unchecked(643), + + /// /// R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog]
///
Gamepadr2 = unchecked(644), + + /// /// L Stick (Xbox) L3 (Switch) L3 (PS)
///
Gamepadl3 = unchecked(645), + + /// /// R Stick (Xbox) R3 (Switch) R3 (PS)
///
Gamepadr3 = unchecked(646), + + /// /// [Analog] Move Window (in Windowing mode)
///
GamepadlStickLeft = unchecked(647), + + /// /// [Analog] Move Window (in Windowing mode)
///
GamepadlStickRight = unchecked(648), + + /// /// [Analog] Move Window (in Windowing mode)
///
GamepadlStickUp = unchecked(649), + + /// /// [Analog] Move Window (in Windowing mode)
///
GamepadlStickDown = unchecked(650), + + /// /// [Analog]
///
GamepadrStickLeft = unchecked(651), + + /// /// [Analog]
///
GamepadrStickRight = unchecked(652), + + /// /// [Analog]
///
GamepadrStickUp = unchecked(653), + + /// /// [Analog]
///
GamepadrStickDown = unchecked(654), + + /// /// To be documented. /// MouseLeft = unchecked(655), + + /// /// To be documented. /// MouseRight = unchecked(656), + + /// /// To be documented. /// MouseMiddle = unchecked(657), + + /// /// To be documented. /// Mousex1 = unchecked(658), + + /// /// To be documented. /// Mousex2 = unchecked(659), + + /// /// To be documented. /// MouseWheelx = unchecked(660), + + /// /// To be documented. /// MouseWheely = unchecked(661), + + /// /// To be documented. /// ReservedForModCtrl = unchecked(662), + + /// /// To be documented. /// ReservedForModShift = unchecked(663), + + /// /// To be documented. /// ReservedForModAlt = unchecked(664), + + /// /// To be documented. /// ReservedForModSuper = unchecked(665), + + /// /// To be documented. /// Count = unchecked(666), + + /// /// To be documented. /// ModNone = unchecked(0), + + /// /// Ctrl
///
ModCtrl = unchecked(4096), + + /// /// Shift
///
ModShift = unchecked(8192), + + /// /// OptionMenu
///
ModAlt = unchecked(16384), + + /// /// CmdSuperWindows
///
ModSuper = unchecked(32768), + + /// /// Alias for Ctrl (non-macOS) _or_ Super (macOS).
///
ModShortcut = unchecked(2048), + + /// /// 5-bits
///
ModMask = unchecked(63488), + + /// /// To be documented. /// NamedKeyBegin = unchecked(512), + + /// /// To be documented. /// NamedKeyEnd = Count, + + /// /// To be documented. /// NamedKeyCount = unchecked(154), + + /// /// Size of KeysData[]: hold legacy 0..512 keycodes + named keys
///
KeysDataSize = Count, + + /// /// Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET) index.
///
KeysDataOffset = unchecked(0), + + } + + /// /// To be documented. /// public enum ImGuiNavLayer + { + /// /// To be documented. /// Main = unchecked(0), + + /// /// To be documented. /// Menu = unchecked(1), + + /// /// To be documented. /// Count = unchecked(2), + + } + + /// /// To be documented. /// public enum ImGuiDockNodeState + { + /// /// To be documented. /// Unknown = unchecked(0), + + /// /// To be documented. /// HostWindowHiddenBecauseSingleWindow = unchecked(1), + + /// /// To be documented. /// HostWindowHiddenBecauseWindowsAreResizing = unchecked(2), + + /// /// To be documented. /// HostWindowVisible = unchecked(3), + + } + + /// /// To be documented. /// public enum ImGuiAxis + { + /// /// To be documented. /// None = unchecked(-1), + + /// /// To be documented. /// Axisx = unchecked(0), + + /// /// To be documented. /// Axisy = unchecked(1), + + } + + /// /// To be documented. /// public enum ImGuiContextHookType + { + /// /// To be documented. /// NewFramePre = unchecked(0), + + /// /// To be documented. /// NewFramePost = unchecked(1), + + /// /// To be documented. /// EndFramePre = unchecked(2), + + /// /// To be documented. /// EndFramePost = unchecked(3), + + /// /// To be documented. /// RenderPre = unchecked(4), + + /// /// To be documented. /// RenderPost = unchecked(5), + + /// /// To be documented. /// Shutdown = unchecked(6), + + /// /// To be documented. /// PendingRemoval = unchecked(7), + + } + + /// /// To be documented. /// public enum ImGuiLogType + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// Tty = unchecked(1), + + /// /// To be documented. /// File = unchecked(2), + + /// /// To be documented. /// Buffer = unchecked(3), + + /// /// To be documented. /// Clipboard = unchecked(4), + + } + + /// /// To be documented. /// public enum ImGuiLocKey + { + /// /// To be documented. /// Version = unchecked(0), + + /// /// To be documented. /// TableSizeOne = unchecked(1), + + /// /// To be documented. /// TableSizeAllFit = unchecked(2), + + /// /// To be documented. /// TableSizeAllDefault = unchecked(3), + + /// /// To be documented. /// TableResetOrder = unchecked(4), + + /// /// To be documented. /// WindowingMainMenuBar = unchecked(5), + + /// /// To be documented. /// WindowingPopup = unchecked(6), + + /// /// To be documented. /// WindowingUntitled = unchecked(7), + + /// /// To be documented. /// DockingHideTabBar = unchecked(8), + + /// /// To be documented. /// DockingHoldShiftToDock = unchecked(9), + + /// /// To be documented. /// DockingDragToUndockOrMoveNode = unchecked(10), + + /// /// To be documented. /// Count = unchecked(11), + + } + + /// /// To be documented. /// public enum ImGuiWindowFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Disable title-bar
///
NoTitleBar = unchecked(1), + + /// /// Disable user resizing with the lower-right grip
///
NoResize = unchecked(2), + + /// /// Disable user moving the window
///
NoMove = unchecked(4), + + /// /// Disable scrollbars (window can still scroll with mouse or programmatically)
///
NoScrollbar = unchecked(8), + + /// /// Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set.
///
NoScrollWithMouse = unchecked(16), + + /// /// Disable user collapsing window by double-clicking on it. Also referred to as Window Menu Button (e.g. within a docking node).
///
NoCollapse = unchecked(32), + + /// /// Resize every window to its content every frame
///
AlwaysAutoResize = unchecked(64), + + /// /// Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f).
///
NoBackground = unchecked(128), + + /// /// Never loadsave settings in .ini file
///
NoSavedSettings = unchecked(256), + + /// /// Disable catching mouse, hovering test with pass through.
///
NoMouseInputs = unchecked(512), + + /// /// Has a menu-bar
///
MenuBar = unchecked(1024), + + /// /// Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section.
///
HorizontalScrollbar = unchecked(2048), + + /// /// Disable taking focus when transitioning from hidden to visible state
///
NoFocusOnAppearing = unchecked(4096), + + /// /// Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus)
///
NoBringToFrontOnFocus = unchecked(8192), + + /// /// Always show vertical scrollbar (even if ContentSize.y < Size.y)
///
AlwaysVerticalScrollbar = unchecked(16384), + + /// /// Always show horizontal scrollbar (even if ContentSize.x < Size.x)
///
AlwaysHorizontalScrollbar = unchecked(32768), + + /// /// Ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windows, because more convenient)
///
AlwaysUseWindowPadding = unchecked(65536), + + /// /// No gamepadkeyboard navigation within the window
///
NoNavInputs = unchecked(262144), + + /// /// No focusing toward this window with gamepadkeyboard navigation (e.g. skipped by CTRL+TAB)
///
NoNavFocus = unchecked(524288), + + /// /// Display a dot next to the title. When used in a tabdocking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar.
///
UnsavedDocument = unchecked(1048576), + + /// /// Disable docking of this window
///
NoDocking = unchecked(2097152), + + /// /// To be documented. /// NoNav = unchecked(786432), + + /// /// To be documented. /// NoDecoration = unchecked(43), + + /// /// To be documented. /// NoInputs = unchecked(786944), + + /// /// [BETA] On child window: allow gamepadkeyboard navigation to cross over parent border to this child or between sibling child windows.
///
NavFlattened = unchecked(8388608), + + /// /// Don't use! For internal use by BeginChild()
///
ChildWindow = unchecked(16777216), + + /// /// Don't use! For internal use by BeginTooltip()
///
Tooltip = unchecked(33554432), + + /// /// Don't use! For internal use by BeginPopup()
///
Popup = unchecked(67108864), + + /// /// Don't use! For internal use by BeginPopupModal()
///
Modal = unchecked(134217728), + + /// /// Don't use! For internal use by BeginMenu()
///
ChildMenu = unchecked(268435456), + + /// /// Don't use! For internal use by Begin()NewFrame()
///
DockNodeHost = unchecked(536870912), + + } + + /// /// To be documented. /// public enum ImGuiInputTextFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Allow 0123456789.+-*
///
CharsDecimal = unchecked(1), + + /// /// Allow 0123456789ABCDEFabcdef
///
CharsHexadecimal = unchecked(2), + + /// /// Turn a..z into A..Z
///
CharsUppercase = unchecked(4), + + /// /// Filter out spaces, tabs
///
CharsNoBlank = unchecked(8), + + /// /// Select entire text when first taking mouse focus
///
AutoSelectAll = unchecked(16), + + /// /// Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function.
///
EnterReturnsTrue = unchecked(32), + + /// /// Callback on pressing TAB (for completion handling)
///
CallbackCompletion = unchecked(64), + + /// /// Callback on pressing UpDown arrows (for history handling)
///
CallbackHistory = unchecked(128), + + /// /// Callback on each iteration. User code may query cursor position, modify text buffer.
///
CallbackAlways = unchecked(256), + + /// /// Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
///
CallbackCharFilter = unchecked(512), + + /// /// Pressing TAB input a '\t' character into the text field
///
AllowTabInput = unchecked(1024), + + /// /// In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter).
///
CtrlEnterForNewLine = unchecked(2048), + + /// /// Disable following the cursor horizontally
///
NoHorizontalScroll = unchecked(4096), + + /// /// Overwrite mode
///
AlwaysOverwrite = unchecked(8192), + + /// /// Read-only mode
///
ReadOnly = unchecked(16384), + + /// /// Password mode, display all characters as '*'
///
Password = unchecked(32768), + + /// /// Disable undoredo. Note that input text owns the text data while active, if you want to provide your own undoredo stack you need e.g. to call ClearActiveID().
///
NoUndoRedo = unchecked(65536), + + /// /// Allow 0123456789.+-*eE (Scientific notation input)
///
CharsScientific = unchecked(131072), + + /// /// Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misccppimgui_stdlib.h for an example of using this)
///
CallbackResize = unchecked(262144), + + /// /// Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active)
///
CallbackEdit = unchecked(524288), + + /// /// Escape key clears content if not empty, and deactivate otherwise (contrast to default behavior of Escape to revert)
///
EscapeClearsAll = unchecked(1048576), + + } + + /// /// To be documented. /// public enum ImGuiTreeNodeFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Draw as selected
///
Selected = unchecked(1), + + /// /// Draw frame with background (e.g. for CollapsingHeader)
///
Framed = unchecked(2), + + /// /// Hit testing to allow subsequent widgets to overlap this one
///
AllowOverlap = unchecked(4), + + /// /// Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack
///
NoTreePushOnOpen = unchecked(8), + + /// /// Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes)
///
NoAutoOpenOnLog = unchecked(16), + + /// /// Default node to be open
///
DefaultOpen = unchecked(32), + + /// /// Need double-click to open node
///
OpenOnDoubleClick = unchecked(64), + + /// /// Only open when clicking on the arrow part. If ImGuiTreeNodeFlags_OpenOnDoubleClick is also set, single-click arrow or double-click all box to open.
///
OpenOnArrow = unchecked(128), + + /// /// No collapsing, no arrow (use as a convenience for leaf nodes).
///
Leaf = unchecked(256), + + /// /// Display a bullet instead of arrow. IMPORTANT: node can still be marked openclose if you don't set the _Leaf flag!
///
Bullet = unchecked(512), + + /// /// Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding().
///
FramePadding = unchecked(1024), + + /// /// Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line. In the future we may refactor the hit system to be front-to-back, allowing natural overlaps and then this can become the default.
///
SpanAvailWidth = unchecked(2048), + + /// /// Extend hit box to the left-most and right-most edges (bypass the indented area).
///
SpanFullWidth = unchecked(4096), + + /// /// Frame will span all columns of its container table (text will still fit in current column)
///
SpanAllColumns = unchecked(8192), + + /// /// (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop)
///
NavLeftJumpsBackHere = unchecked(16384), + + /// /// To be documented. /// CollapsingHeader = unchecked(26), + + } + + /// /// To be documented. /// public enum ImGuiPopupFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left)
///
MouseButtonLeft = unchecked(0), + + /// /// For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right)
///
MouseButtonRight = unchecked(1), + + /// /// For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle)
///
MouseButtonMiddle = unchecked(2), + + /// /// To be documented. /// MouseButtonMask = unchecked(31), + + /// /// To be documented. /// MouseButtonDefault = unchecked(1), + + /// /// For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack
///
NoOpenOverExistingPopup = unchecked(32), + + /// /// For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space
///
NoOpenOverItems = unchecked(64), + + /// /// For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup.
///
AnyPopupId = unchecked(128), + + /// /// For IsPopupOpen(): searchtest at any level of the popup stack (default test in the current level)
///
AnyPopupLevel = unchecked(256), + + /// /// To be documented. /// AnyPopup = unchecked(384), + + } + + /// /// To be documented. /// public enum ImGuiSelectableFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Clicking this doesn't close parent popup window
///
DontClosePopups = unchecked(1), + + /// /// Frame will span all columns of its container table (text will still fit in current column)
///
SpanAllColumns = unchecked(2), + + /// /// Generate press events on double clicks too
///
AllowDoubleClick = unchecked(4), + + /// /// Cannot be selected, display grayed out text
///
Disabled = unchecked(8), + + /// /// (WIP) Hit testing to allow subsequent widgets to overlap this one
///
AllowOverlap = unchecked(16), + + } + + /// /// To be documented. /// public enum ImGuiComboFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Align the popup toward the left by default
///
PopupAlignLeft = unchecked(1), + + /// /// Max ~4 items visible. Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo()
///
HeightSmall = unchecked(2), + + /// /// Max ~8 items visible (default)
///
HeightRegular = unchecked(4), + + /// /// Max ~20 items visible
///
HeightLarge = unchecked(8), + + /// /// As many fitting items as possible
///
HeightLargest = unchecked(16), + + /// /// Display on the preview box without the square arrow button
///
NoArrowButton = unchecked(32), + + /// /// Display only a square arrow button
///
NoPreview = unchecked(64), + + /// /// Width dynamically calculated from preview contents
///
WidthFitPreview = unchecked(128), + + /// /// To be documented. /// HeightMask = unchecked(30), + + } + + /// /// To be documented. /// public enum ImGuiTabBarFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Allow manually dragging tabs to re-order them + New tabs are appended at the end of list
///
Reorderable = unchecked(1), + + /// /// Automatically select new tabs when they appear
///
AutoSelectNewTabs = unchecked(2), + + /// /// Disable buttons to open the tab list popup
///
ListPopupButton = unchecked(4), + + /// /// Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
///
NoCloseWithMiddleMouseButton = unchecked(8), + + /// /// Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll)
///
NoTabListScrollingButtons = unchecked(16), + + /// /// Disable tooltips when hovering a tab
///
NoTooltip = unchecked(32), + + /// /// Resize tabs when they don't fit
///
FittingPolicyResizeDown = unchecked(64), + + /// /// Add scroll buttons when tabs don't fit
///
FittingPolicyScroll = unchecked(128), + + /// /// To be documented. /// FittingPolicyMask = unchecked(192), + + /// /// To be documented. /// FittingPolicyDefault = FittingPolicyResizeDown, + + } + + /// /// To be documented. /// public enum ImGuiTabItemFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Display a dot next to the title + tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar.
///
UnsavedDocument = unchecked(1), + + /// /// Trigger flag to programmatically make the tab selected when calling BeginTabItem()
///
SetSelected = unchecked(2), + + /// /// Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
///
NoCloseWithMiddleMouseButton = unchecked(4), + + /// /// Don't call PushID(tab->ID)PopID() on BeginTabItem()EndTabItem()
///
NoPushId = unchecked(8), + + /// /// Disable tooltip for the given tab
///
NoTooltip = unchecked(16), + + /// /// Disable reordering this tab or having another tab cross over this tab
///
NoReorder = unchecked(32), + + /// /// Enforce the tab position to the left of the tab bar (after the tab list popup button)
///
Leading = unchecked(64), + + /// /// Enforce the tab position to the right of the tab bar (before the scrolling buttons)
///
Trailing = unchecked(128), + + } + + /// /// To be documented. /// public enum ImGuiTableFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Enable resizing columns.
///
Resizable = unchecked(1), + + /// /// Enable reordering columns in header row (need calling TableSetupColumn() + TableHeadersRow() to display headers)
///
Reorderable = unchecked(2), + + /// /// Enable hidingdisabling columns in context menu.
///
Hideable = unchecked(4), + + /// /// Enable sorting. Call TableGetSortSpecs() to obtain sort specs. Also see ImGuiTableFlags_SortMulti and ImGuiTableFlags_SortTristate.
///
Sortable = unchecked(8), + + /// /// Disable persisting columns order, width and sort settings in the .ini file.
///
NoSavedSettings = unchecked(16), + + /// /// Right-click on columns bodycontents will display table context menu. By default it is available in TableHeadersRow().
///
ContextMenuInBody = unchecked(32), + + /// /// Set each RowBg color with ImGuiCol_TableRowBg or ImGuiCol_TableRowBgAlt (equivalent of calling TableSetBgColor with ImGuiTableBgFlags_RowBg0 on each row manually)
///
RowBg = unchecked(64), + + /// /// Draw horizontal borders between rows.
///
BordersInnerh = unchecked(128), + + /// /// Draw horizontal borders at the top and bottom.
///
BordersOuterh = unchecked(256), + + /// /// Draw vertical borders between columns.
///
BordersInnerv = unchecked(512), + + /// /// Draw vertical borders on the left and right sides.
///
BordersOuterv = unchecked(1024), + + /// /// Draw horizontal borders.
///
Bordersh = unchecked(384), + + /// /// Draw vertical borders.
///
Bordersv = unchecked(1536), + + /// /// Draw inner borders.
///
BordersInner = unchecked(640), + + /// /// Draw outer borders.
///
BordersOuter = unchecked(1280), + + /// /// Draw all borders.
///
Borders = unchecked(1920), + + /// /// [ALPHA] Disable vertical borders in columns Body (borders will always appear in Headers). -> May move to style
///
NoBordersInBody = unchecked(2048), + + /// /// [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers). -> May move to style
///
NoBordersInBodyUntilResize = unchecked(4096), + + /// /// Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching contents width.
///
SizingFixedFit = unchecked(8192), + + /// /// Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching the maximum contents width of all columns. Implicitly enable ImGuiTableFlags_NoKeepColumnsVisible.
///
SizingFixedSame = unchecked(16384), + + /// /// Columns default to _WidthStretch with default weights proportional to each columns contents widths.
///
SizingStretchProp = unchecked(24576), + + /// /// Columns default to _WidthStretch with default weights all equal, unless overridden by TableSetupColumn().
///
SizingStretchSame = unchecked(32768), + + /// /// Make outer width auto-fit to columns, overriding outer_size.x value. Only available when ScrollXScrollY are disabled and Stretch columns are not used.
///
NoHostExtendx = unchecked(65536), + + /// /// Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollXScrollY are disabled. Data below the limit will be clipped and not visible.
///
NoHostExtendy = unchecked(131072), + + /// /// Disable keeping column always minimally visible when ScrollX is off and table gets too small. Not recommended if columns are resizable.
///
NoKeepColumnsVisible = unchecked(262144), + + /// /// Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth.
///
PreciseWidths = unchecked(524288), + + /// /// Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with TableSetupScrollFreeze().
///
NoClip = unchecked(1048576), + + /// /// Default if BordersOuterV is on. Enable outermost padding. Generally desirable if you have headers.
///
PadOuterx = unchecked(2097152), + + /// /// Default if BordersOuterV is off. Disable outermost padding.
///
NoPadOuterx = unchecked(4194304), + + /// /// Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off).
///
NoPadInnerx = unchecked(8388608), + + /// /// Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this creates a child window, ScrollY is currently generally recommended when using ScrollX.
///
Scrollx = unchecked(16777216), + + /// /// Enable vertical scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size.
///
Scrolly = unchecked(33554432), + + /// /// Hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1).
///
SortMulti = unchecked(67108864), + + /// /// Allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0).
///
SortTristate = unchecked(134217728), + + /// /// Highlight column headers when hovered (may evolve into a fuller highlight)
///
HighlightHoveredColumn = unchecked(268435456), + + /// /// To be documented. /// SizingMask = unchecked(57344), + + } + + /// /// To be documented. /// public enum ImGuiTableColumnFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Overridingmaster disable flag: hide column, won't show in context menu (unlike calling TableSetColumnEnabled() which manipulates the user accessible state)
///
Disabled = unchecked(1), + + /// /// Default as a hiddendisabled column.
///
DefaultHide = unchecked(2), + + /// /// Default as a sorting column.
///
DefaultSort = unchecked(4), + + /// /// Column will stretch. Preferable with horizontal scrolling disabled (default if table sizing policy is _SizingStretchSame or _SizingStretchProp).
///
WidthStretch = unchecked(8), + + /// /// Column will not stretch. Preferable with horizontal scrolling enabled (default if table sizing policy is _SizingFixedFit and table is resizable).
///
WidthFixed = unchecked(16), + + /// /// Disable manual resizing.
///
NoResize = unchecked(32), + + /// /// Disable manual reordering this column, this will also prevent other columns from crossing over this column.
///
NoReorder = unchecked(64), + + /// /// Disable ability to hidedisable this column.
///
NoHide = unchecked(128), + + /// /// Disable clipping for this column (all NoClip columns will render in a same draw command).
///
NoClip = unchecked(256), + + /// /// Disable ability to sort on this field (even if ImGuiTableFlags_Sortable is set on the table).
///
NoSort = unchecked(512), + + /// /// Disable ability to sort in the ascending direction.
///
NoSortAscending = unchecked(1024), + + /// /// Disable ability to sort in the descending direction.
///
NoSortDescending = unchecked(2048), + + /// /// TableHeadersRow() will not submit horizontal label for this column. Convenient for some small columns. Name will still appear in context menu or in angled headers.
///
NoHeaderLabel = unchecked(4096), + + /// /// Disable header text width contribution to automatic column width.
///
NoHeaderWidth = unchecked(8192), + + /// /// Make the initial sort direction Ascending when first sorting on this column (default).
///
PreferSortAscending = unchecked(16384), + + /// /// Make the initial sort direction Descending when first sorting on this column.
///
PreferSortDescending = unchecked(32768), + + /// /// Use current Indent value when entering cell (default for column 0).
///
IndentEnable = unchecked(65536), + + /// /// Ignore current Indent value when entering cell (default for columns > 0). Indentation changes _within_ the cell will still be honored.
///
IndentDisable = unchecked(131072), + + /// /// TableHeadersRow() will submit an angled header row for this column. Note this will add an extra row.
///
AngledHeader = unchecked(262144), + + /// /// Status: is enabled == not hidden by userapi (referred to as "Hide" in _DefaultHide and _NoHide) flags.
///
IsEnabled = unchecked(16777216), + + /// /// Status: is visible == is enabled AND not clipped by scrolling.
///
IsVisible = unchecked(33554432), + + /// /// Status: is currently part of the sort specs
///
IsSorted = unchecked(67108864), + + /// /// Status: is hovered by mouse
///
IsHovered = unchecked(134217728), + + /// /// To be documented. /// WidthMask = unchecked(24), + + /// /// To be documented. /// IndentMask = unchecked(196608), + + /// /// To be documented. /// StatusMask = unchecked(251658240), + + /// /// [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge)
///
NoDirectResize = unchecked(1073741824), + + } + + /// /// To be documented. /// public enum ImGuiTableRowFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Identify header row (set default background color + width of its contents accounted differently for auto column width)
///
Headers = unchecked(1), + + } + + /// /// To be documented. /// public enum ImGuiTableBgTarget + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used)
///
RowBg0 = unchecked(1), + + /// /// Set row background color 1 (generally used for selection marking)
///
RowBg1 = unchecked(2), + + /// /// Set cell background color (top-most color)
///
CellBg = unchecked(3), + + } + + /// /// To be documented. /// public enum ImGuiFocusedFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Return true if any children of the window is focused
///
ChildWindows = unchecked(1), + + /// /// Test from root window (top most parent of the current hierarchy)
///
RootWindow = unchecked(2), + + /// /// Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ!
///
AnyWindow = unchecked(4), + + /// /// Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow)
///
NoPopupHierarchy = unchecked(8), + + /// /// Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow)
///
DockHierarchy = unchecked(16), + + /// /// To be documented. /// RootAndChildWindows = unchecked(3), + + } + + /// /// To be documented. /// public enum ImGuiHoveredFlags + { + /// /// Return true if directly over the itemwindow, not obstructed by another window, not obstructed by an active popup or modal blocking inputs under them.
///
None = unchecked(0), + + /// /// IsWindowHovered() only: Return true if any children of the window is hovered
///
ChildWindows = unchecked(1), + + /// /// IsWindowHovered() only: Test from root window (top most parent of the current hierarchy)
///
RootWindow = unchecked(2), + + /// /// IsWindowHovered() only: Return true if any window is hovered
///
AnyWindow = unchecked(4), + + /// /// IsWindowHovered() only: Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow)
///
NoPopupHierarchy = unchecked(8), + + /// /// IsWindowHovered() only: Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow)
///
DockHierarchy = unchecked(16), + + /// /// Return true even if a popup window is normally blocking access to this itemwindow
///
AllowWhenBlockedByPopup = unchecked(32), + + /// /// Return true even if an active item is blocking access to this itemwindow. Useful for Drag and Drop patterns.
///
AllowWhenBlockedByActiveItem = unchecked(128), + + /// /// IsItemHovered() only: Return true even if the item uses AllowOverlap mode and is overlapped by another hoverable item.
///
AllowWhenOverlappedByItem = unchecked(256), + + /// /// IsItemHovered() only: Return true even if the position is obstructed or overlapped by another window.
///
AllowWhenOverlappedByWindow = unchecked(512), + + /// /// IsItemHovered() only: Return true even if the item is disabled
///
AllowWhenDisabled = unchecked(1024), + + /// /// IsItemHovered() only: Disable using gamepadkeyboard navigation state when active, always query mouse
///
NoNavOverride = unchecked(2048), + + /// /// To be documented. /// AllowWhenOverlapped = unchecked(768), + + /// /// To be documented. /// RectOnly = unchecked(928), + + /// /// To be documented. /// RootAndChildWindows = unchecked(3), + + /// /// Shortcut for standard flags when using IsItemHovered() + SetTooltip() sequence.
///
ForTooltip = unchecked(4096), + + /// /// Require mouse to be stationary for style.HoverStationaryDelay (~0.15 sec) _at least one time_. After this, can move on same itemwindow. Using the stationary test tends to reduces the need for a long delay.
///
Stationary = unchecked(8192), + + /// /// IsItemHovered() only: Return true immediately (default). As this is the default you generally ignore this.
///
DelayNone = unchecked(16384), + + /// /// IsItemHovered() only: Return true after style.HoverDelayShort elapsed (~0.15 sec) (shared between items) + requires mouse to be stationary for style.HoverStationaryDelay (once per item).
///
DelayShort = unchecked(32768), + + /// /// IsItemHovered() only: Return true after style.HoverDelayNormal elapsed (~0.40 sec) (shared between items) + requires mouse to be stationary for style.HoverStationaryDelay (once per item).
///
DelayNormal = unchecked(65536), + + /// /// IsItemHovered() only: Disable shared delay system where moving from one item to the next keeps the previous timer for a short time (standard for tooltips with long delays)
///
NoSharedDelay = unchecked(131072), + + } + + /// /// To be documented. /// public enum ImGuiDockNodeFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Don't display the dockspace node but keep it alive. Windows docked into this dockspace node won't be undocked.
///
KeepAliveOnly = unchecked(1), + + /// /// Disable docking over the Central Node, which will be always kept empty.
///
NoDockingOverCentralNode = unchecked(4), + + /// /// Enable passthru dockspace: 1) DockSpace() will render a ImGuiCol_WindowBg background covering everything excepted the Central Node when empty. Meaning the host window should probably use SetNextWindowBgAlpha(0.0f) prior to Begin() when using this. 2) When Central Node is empty: let inputs pass-through + won't display a DockingEmptyBg background. See demo for details.
///
PassthruCentralNode = unchecked(8), + + /// /// Disable other windowsnodes from splitting this node.
///
NoDockingSplit = unchecked(16), + + /// /// Saved Disable resizing node using the splitterseparators. Useful with programmatically setup dockspaces.
///
NoResize = unchecked(32), + + /// /// Tab bar will automatically hide when there is a single window in the dock node.
///
AutoHideTabBar = unchecked(64), + + /// /// Disable undocking this node.
///
NoUndocking = unchecked(128), + + } + + /// /// To be documented. /// public enum ImGuiDragDropFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Disable preview tooltip. By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disables this behavior.
///
SourceNoPreviewTooltip = unchecked(1), + + /// /// By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disables this behavior so you can still call IsItemHovered() on the source item.
///
SourceNoDisableHover = unchecked(2), + + /// /// Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item.
///
SourceNoHoldToOpenOthers = unchecked(4), + + /// /// Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit.
///
SourceAllowNullId = unchecked(8), + + /// /// External source (from outside of dear imgui), won't attempt to read current itemwindow info. Will always return true. Only one Extern source can be active simultaneously.
///
SourceExtern = unchecked(16), + + /// /// Automatically expire the payload if the source cease to be submitted (otherwise payloads are persisting while being dragged)
///
SourceAutoExpirePayload = unchecked(32), + + /// /// AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered.
///
AcceptBeforeDelivery = unchecked(1024), + + /// /// Do not draw the default highlight rectangle when hovering over target.
///
AcceptNoDrawDefaultRect = unchecked(2048), + + /// /// Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site.
///
AcceptNoPreviewTooltip = unchecked(4096), + + /// /// For peeking ahead and inspecting the payload before delivery.
///
AcceptPeekOnly = unchecked(3072), + + } + + /// /// To be documented. /// public enum ImGuiDataType + { + /// /// signed char char (with sensible compilers)
///
Types8 = unchecked(0), + + /// /// unsigned char
///
Typeu8 = unchecked(1), + + /// /// short
///
Types16 = unchecked(2), + + /// /// unsigned short
///
Typeu16 = unchecked(3), + + /// /// int
///
Types32 = unchecked(4), + + /// /// unsigned int
///
Typeu32 = unchecked(5), + + /// /// long long __int64
///
Types64 = unchecked(6), + + /// /// unsigned long long unsigned __int64
///
Typeu64 = unchecked(7), + + /// /// float
///
Float = unchecked(8), + + /// /// double
///
Double = unchecked(9), + + /// /// To be documented. /// Count = unchecked(10), + + } + + /// /// To be documented. /// public enum ImGuiDir + { + /// /// To be documented. /// None = unchecked(-1), + + /// /// To be documented. /// Left = unchecked(0), + + /// /// To be documented. /// Right = unchecked(1), + + /// /// To be documented. /// Up = unchecked(2), + + /// /// To be documented. /// Down = unchecked(3), + + /// /// To be documented. /// Count = unchecked(4), + + } + + /// /// To be documented. /// public enum ImGuiSortDirection + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Ascending = 0->9, A->Z etc.
///
Ascending = unchecked(1), + + /// /// Descending = 9->0, Z->A etc.
///
Descending = unchecked(2), + + } + + /// /// To be documented. /// public enum ImGuiNavInput + { + /// /// To be documented. /// Activate = unchecked(0), + + /// /// To be documented. /// Cancel = unchecked(1), + + /// /// To be documented. /// Input = unchecked(2), + + /// /// To be documented. /// Menu = unchecked(3), + + /// /// To be documented. /// DpadLeft = unchecked(4), + + /// /// To be documented. /// DpadRight = unchecked(5), + + /// /// To be documented. /// DpadUp = unchecked(6), + + /// /// To be documented. /// DpadDown = unchecked(7), + + /// /// To be documented. /// InputlStickLeft = unchecked(8), + + /// /// To be documented. /// InputlStickRight = unchecked(9), + + /// /// To be documented. /// InputlStickUp = unchecked(10), + + /// /// To be documented. /// InputlStickDown = unchecked(11), + + /// /// To be documented. /// FocusPrev = unchecked(12), + + /// /// To be documented. /// FocusNext = unchecked(13), + + /// /// To be documented. /// TweakSlow = unchecked(14), + + /// /// To be documented. /// TweakFast = unchecked(15), + + /// /// To be documented. /// Count = unchecked(16), + + } + + /// /// To be documented. /// public enum ImGuiConfigFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Master keyboard navigation enable flag. Enable full Tabbing + directional arrows + spaceenter to activate.
///
NavEnableKeyboard = unchecked(1), + + /// /// Master gamepad navigation enable flag. Backend also needs to set ImGuiBackendFlags_HasGamepad.
///
NavEnableGamepad = unchecked(2), + + /// /// Instruct navigation to move the mouse cursor. May be useful on TVconsole systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your backend, otherwise ImGui will react as if the mouse is jumping around back and forth.
///
NavEnableSetMousePos = unchecked(4), + + /// /// Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set.
///
NavNoCaptureKeyboard = unchecked(8), + + /// /// Instruct imgui to clear mouse positionbuttons in NewFrame(). This allows ignoring the mouse information set by the backend.
///
NoMouse = unchecked(16), + + /// /// Instruct backend to not alter mouse cursor shape and visibility. Use if the backend cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead.
///
NoMouseCursorChange = unchecked(32), + + /// /// Docking enable flags.
///
DockingEnable = unchecked(64), + + /// /// Viewport enable flags (require both ImGuiBackendFlags_PlatformHasViewports + ImGuiBackendFlags_RendererHasViewports set by the respective backends)
///
ViewportsEnable = unchecked(1024), + + /// /// [BETA: Don't use] FIXME-DPI: Reposition and resize imgui windows when the DpiScale of a viewport changed (mostly useful for the main viewport hosting other window). Note that resizing the main window itself is up to your application.
///
DpiEnableScaleViewports = unchecked(16384), + + /// /// [BETA: Don't use] FIXME-DPI: Request bitmap-scaled fonts to match DpiScale. This is a very low-quality workaround. The correct way to handle DPI is _currently_ to replace the atlas andor fonts in the Platform_OnChangedViewport callback, but this is all early work in progress.
///
DpiEnableScaleFonts = unchecked(32768), + + /// /// Application is SRGB-aware.
///
IsSrgb = unchecked(1048576), + + /// /// Application is using a touch screen instead of a mouse.
///
IsTouchScreen = unchecked(2097152), + + } + + /// /// To be documented. /// public enum ImGuiBackendFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Backend Platform supports gamepad and currently has one connected.
///
HasGamepad = unchecked(1), + + /// /// Backend Platform supports honoring GetMouseCursor() value to change the OS cursor shape.
///
HasMouseCursors = unchecked(2), + + /// /// Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if ImGuiConfigFlags_NavEnableSetMousePos is set).
///
HasSetMousePos = unchecked(4), + + /// /// Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices.
///
RendererHasVtxOffset = unchecked(8), + + /// /// Backend Platform supports multiple viewports.
///
PlatformHasViewports = unchecked(1024), + + /// /// Backend Platform supports calling io.AddMouseViewportEvent() with the viewport under the mouse. IF POSSIBLE, ignore viewports with the ImGuiViewportFlags_NoInputs flag (Win32 backend, GLFW 3.30+ backend can do this, SDL backend cannot). If this cannot be done, Dear ImGui needs to use a flawed heuristic to find the viewport under.
///
HasMouseHoveredViewport = unchecked(2048), + + /// /// Backend Renderer supports multiple viewports.
///
RendererHasViewports = unchecked(4096), + + } + + /// /// To be documented. /// public enum ImGuiCol + { + /// /// To be documented. /// Text = unchecked(0), + + /// /// To be documented. /// TextDisabled = unchecked(1), + + /// /// Background of normal windows
///
WindowBg = unchecked(2), + + /// /// Background of child windows
///
ChildBg = unchecked(3), + + /// /// Background of popups, menus, tooltips windows
///
PopupBg = unchecked(4), + + /// /// To be documented. /// Border = unchecked(5), + + /// /// To be documented. /// BorderShadow = unchecked(6), + + /// /// Background of checkbox, radio button, plot, slider, text input
///
FrameBg = unchecked(7), + + /// /// To be documented. /// FrameBgHovered = unchecked(8), + + /// /// To be documented. /// FrameBgActive = unchecked(9), + + /// /// To be documented. /// TitleBg = unchecked(10), + + /// /// To be documented. /// TitleBgActive = unchecked(11), + + /// /// To be documented. /// TitleBgCollapsed = unchecked(12), + + /// /// To be documented. /// MenuBarBg = unchecked(13), + + /// /// To be documented. /// ScrollbarBg = unchecked(14), + + /// /// To be documented. /// ScrollbarGrab = unchecked(15), + + /// /// To be documented. /// ScrollbarGrabHovered = unchecked(16), + + /// /// To be documented. /// ScrollbarGrabActive = unchecked(17), + + /// /// To be documented. /// CheckMark = unchecked(18), + + /// /// To be documented. /// SliderGrab = unchecked(19), + + /// /// To be documented. /// SliderGrabActive = unchecked(20), + + /// /// To be documented. /// Button = unchecked(21), + + /// /// To be documented. /// ButtonHovered = unchecked(22), + + /// /// To be documented. /// ButtonActive = unchecked(23), + + /// /// Header* colors are used for CollapsingHeader, TreeNode, Selectable, MenuItem
///
Header = unchecked(24), + + /// /// To be documented. /// HeaderHovered = unchecked(25), + + /// /// To be documented. /// HeaderActive = unchecked(26), + + /// /// To be documented. /// Separator = unchecked(27), + + /// /// To be documented. /// SeparatorHovered = unchecked(28), + + /// /// To be documented. /// SeparatorActive = unchecked(29), + + /// /// Resize grip in lower-right and lower-left corners of windows.
///
ResizeGrip = unchecked(30), + + /// /// To be documented. /// ResizeGripHovered = unchecked(31), + + /// /// To be documented. /// ResizeGripActive = unchecked(32), + + /// /// TabItem in a TabBar
///
Tab = unchecked(33), + + /// /// To be documented. /// TabHovered = unchecked(34), + + /// /// To be documented. /// TabActive = unchecked(35), + + /// /// To be documented. /// TabUnfocused = unchecked(36), + + /// /// To be documented. /// TabUnfocusedActive = unchecked(37), + + /// /// Preview overlay color when about to docking something
///
DockingPreview = unchecked(38), + + /// /// Background color for empty node (e.g. CentralNode with no window docked into it)
///
DockingEmptyBg = unchecked(39), + + /// /// To be documented. /// PlotLines = unchecked(40), + + /// /// To be documented. /// PlotLinesHovered = unchecked(41), + + /// /// To be documented. /// PlotHistogram = unchecked(42), + + /// /// To be documented. /// PlotHistogramHovered = unchecked(43), + + /// /// Table header background
///
TableHeaderBg = unchecked(44), + + /// /// Table outer and header borders (prefer using Alpha=1.0 here)
///
TableBorderStrong = unchecked(45), + + /// /// Table inner borders (prefer using Alpha=1.0 here)
///
TableBorderLight = unchecked(46), + + /// /// Table row background (even rows)
///
TableRowBg = unchecked(47), + + /// /// Table row background (odd rows)
///
TableRowBgAlt = unchecked(48), + + /// /// To be documented. /// TextSelectedBg = unchecked(49), + + /// /// Rectangle highlighting a drop target
///
DragDropTarget = unchecked(50), + + /// /// Gamepadkeyboard: current highlighted item
///
NavHighlight = unchecked(51), + + /// /// Highlight window when using CTRL+TAB
///
NavWindowingHighlight = unchecked(52), + + /// /// Darkencolorize entire screen behind the CTRL+TAB window list, when active
///
NavWindowingDimBg = unchecked(53), + + /// /// Darkencolorize entire screen behind a modal window, when one is active
///
ModalWindowDimBg = unchecked(54), + + /// /// To be documented. /// Count = unchecked(55), + + } + + /// /// To be documented. /// public enum ImGuiStyleVar + { + /// /// float Alpha
///
Alpha = unchecked(0), + + /// /// float DisabledAlpha
///
DisabledAlpha = unchecked(1), + + /// /// ImVec2 WindowPadding
///
WindowPadding = unchecked(2), + + /// /// float WindowRounding
///
WindowRounding = unchecked(3), + + /// /// float WindowBorderSize
///
WindowBorderSize = unchecked(4), + + /// /// ImVec2 WindowMinSize
///
WindowMinSize = unchecked(5), + + /// /// ImVec2 WindowTitleAlign
///
WindowTitleAlign = unchecked(6), + + /// /// float ChildRounding
///
ChildRounding = unchecked(7), + + /// /// float ChildBorderSize
///
ChildBorderSize = unchecked(8), + + /// /// float PopupRounding
///
PopupRounding = unchecked(9), + + /// /// float PopupBorderSize
///
PopupBorderSize = unchecked(10), + + /// /// ImVec2 FramePadding
///
FramePadding = unchecked(11), + + /// /// float FrameRounding
///
FrameRounding = unchecked(12), + + /// /// float FrameBorderSize
///
FrameBorderSize = unchecked(13), + + /// /// ImVec2 ItemSpacing
///
ItemSpacing = unchecked(14), + + /// /// ImVec2 ItemInnerSpacing
///
ItemInnerSpacing = unchecked(15), + + /// /// float IndentSpacing
///
IndentSpacing = unchecked(16), + + /// /// ImVec2 CellPadding
///
CellPadding = unchecked(17), + + /// /// float ScrollbarSize
///
ScrollbarSize = unchecked(18), + + /// /// float ScrollbarRounding
///
ScrollbarRounding = unchecked(19), + + /// /// float GrabMinSize
///
GrabMinSize = unchecked(20), + + /// /// float GrabRounding
///
GrabRounding = unchecked(21), + + /// /// float TabRounding
///
TabRounding = unchecked(22), + + /// /// float TabBarBorderSize
///
TabBarBorderSize = unchecked(23), + + /// /// ImVec2 ButtonTextAlign
///
ButtonTextAlign = unchecked(24), + + /// /// ImVec2 SelectableTextAlign
///
SelectableTextAlign = unchecked(25), + + /// /// float SeparatorTextBorderSize
///
SeparatorTextBorderSize = unchecked(26), + + /// /// ImVec2 SeparatorTextAlign
///
SeparatorTextAlign = unchecked(27), + + /// /// ImVec2 SeparatorTextPadding
///
SeparatorTextPadding = unchecked(28), + + /// /// float DockingSeparatorSize
///
DockingSeparatorSize = unchecked(29), + + /// /// To be documented. /// Count = unchecked(30), + + } + + /// /// To be documented. /// public enum ImGuiButtonFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// React on left mouse button (default)
///
MouseButtonLeft = unchecked(1), + + /// /// React on right mouse button
///
MouseButtonRight = unchecked(2), + + /// /// React on center mouse button
///
MouseButtonMiddle = unchecked(4), + + /// /// To be documented. /// MouseButtonMask = unchecked(7), + + /// /// To be documented. /// MouseButtonDefault = MouseButtonLeft, + + } + + /// /// To be documented. /// public enum ImGuiColorEditFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer).
///
NoAlpha = unchecked(2), + + /// /// ColorEdit: disable picker when clicking on color square.
///
NoPicker = unchecked(4), + + /// /// ColorEdit: disable toggling options menu when right-clicking on inputssmall preview.
///
NoOptions = unchecked(8), + + /// /// ColorEdit, ColorPicker: disable color square preview next to the inputs. (e.g. to show only the inputs)
///
NoSmallPreview = unchecked(16), + + /// /// ColorEdit, ColorPicker: disable inputs sliderstext widgets (e.g. to show only the small preview color square).
///
NoInputs = unchecked(32), + + /// /// ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview.
///
NoTooltip = unchecked(64), + + /// /// ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker).
///
NoLabel = unchecked(128), + + /// /// ColorPicker: disable bigger color preview on right side of the picker, use small color square preview instead.
///
NoSidePreview = unchecked(256), + + /// /// ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source.
///
NoDragDrop = unchecked(512), + + /// /// ColorButton: disable border (which is enforced by default)
///
NoBorder = unchecked(1024), + + /// /// ColorEdit, ColorPicker: show vertical alpha bargradient in picker.
///
AlphaBar = unchecked(65536), + + /// /// ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque.
///
AlphaPreview = unchecked(131072), + + /// /// ColorEdit, ColorPicker, ColorButton: display half opaque half checkerboard, instead of opaque.
///
AlphaPreviewHalf = unchecked(262144), + + /// /// (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well).
///
Hdr = unchecked(524288), + + /// /// [Display] ColorEdit: override _display_ type among RGBHSVHex. ColorPicker: select any combination using one or more of RGBHSVHex.
///
DisplayRgb = unchecked(1048576), + + /// /// [Display] "
///
DisplayHsv = unchecked(2097152), + + /// /// [Display] "
///
DisplayHex = unchecked(4194304), + + /// /// [DataType] ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0..255.
///
Uint8 = unchecked(8388608), + + /// /// [DataType] ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers.
///
Float = unchecked(16777216), + + /// /// [Picker] ColorPicker: bar for Hue, rectangle for SatValue.
///
PickerHueBar = unchecked(33554432), + + /// /// [Picker] ColorPicker: wheel for Hue, triangle for SatValue.
///
PickerHueWheel = unchecked(67108864), + + /// /// [Input] ColorEdit, ColorPicker: input and output data in RGB format.
///
InputRgb = unchecked(134217728), + + /// /// [Input] ColorEdit, ColorPicker: input and output data in HSV format.
///
InputHsv = unchecked(268435456), + + /// /// To be documented. /// DefaultOptions = unchecked(177209344), + + /// /// To be documented. /// DisplayMask = unchecked(7340032), + + /// /// To be documented. /// DataTypeMask = unchecked(25165824), + + /// /// To be documented. /// PickerMask = unchecked(100663296), + + /// /// To be documented. /// InputMask = unchecked(402653184), + + } + + /// /// To be documented. /// public enum ImGuiSliderFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Clamp value to minmax bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds.
///
AlwaysClamp = unchecked(16), + + /// /// Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits.
///
Logarithmic = unchecked(32), + + /// /// Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits)
///
NoRoundToFormat = unchecked(64), + + /// /// Disable CTRL+Click or Enter key allowing to input text directly into the widget
///
NoInput = unchecked(128), + + /// /// [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed.
///
InvalidMask = unchecked(1879048207), + + } + + /// /// To be documented. /// public enum ImGuiMouseButton + { + /// /// To be documented. /// Left = unchecked(0), + + /// /// To be documented. /// Right = unchecked(1), + + /// /// To be documented. /// Middle = unchecked(2), + + /// /// To be documented. /// Count = unchecked(5), + + } + + /// /// To be documented. /// public enum ImGuiMouseCursor + { + /// /// To be documented. /// None = unchecked(-1), + + /// /// To be documented. /// Arrow = unchecked(0), + + /// /// When hovering over InputText, etc.
///
TextInput = unchecked(1), + + /// /// (Unused by Dear ImGui functions)
///
ResizeAll = unchecked(2), + + /// /// When hovering over a horizontal border
///
ResizeNs = unchecked(3), + + /// /// When hovering over a vertical border or a column
///
ResizeEw = unchecked(4), + + /// /// When hovering over the bottom-left corner of a window
///
ResizeNesw = unchecked(5), + + /// /// When hovering over the bottom-right corner of a window
///
ResizeNwse = unchecked(6), + + /// /// (Unused by Dear ImGui functions. Use for e.g. hyperlinks)
///
Hand = unchecked(7), + + /// /// When hovering something with disallowed interaction. Usually a crossed circle.
///
NotAllowed = unchecked(8), + + /// /// To be documented. /// Count = unchecked(9), + + } + + /// /// To be documented. /// public enum ImGuiCond + { + /// /// No condition (always set the variable), same as _Always
///
None = unchecked(0), + + /// /// No condition (always set the variable), same as _None
///
Always = unchecked(1), + + /// /// Set the variable once per runtime session (only the first call will succeed)
///
Once = unchecked(2), + + /// /// Set the variable if the objectwindow has no persistently saved data (no entry in .ini file)
///
FirstUseEver = unchecked(4), + + /// /// Set the variable if the objectwindow is appearing after being hiddeninactive (or the first time)
///
Appearing = unchecked(8), + + } + + /// /// To be documented. /// public enum ImDrawFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// PathStroke(), AddPolyline(): specify that shape should be closed (Important: this is always == 1 for legacy reason)
///
Closed = unchecked(1), + + /// /// AddRect(), AddRectFilled(), PathRect(): enable rounding top-left corner only (when rounding > 0.0f, we default to all corners). Was 0x01.
///
RoundCornersTopLeft = unchecked(16), + + /// /// AddRect(), AddRectFilled(), PathRect(): enable rounding top-right corner only (when rounding > 0.0f, we default to all corners). Was 0x02.
///
RoundCornersTopRight = unchecked(32), + + /// /// AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-left corner only (when rounding > 0.0f, we default to all corners). Was 0x04.
///
RoundCornersBottomLeft = unchecked(64), + + /// /// AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-right corner only (when rounding > 0.0f, we default to all corners). Wax 0x08.
///
RoundCornersBottomRight = unchecked(128), + + /// /// AddRect(), AddRectFilled(), PathRect(): disable rounding on all corners (when rounding > 0.0f). This is NOT zero, NOT an implicit flag!
///
RoundCornersNone = unchecked(256), + + /// /// To be documented. /// RoundCornersTop = unchecked(48), + + /// /// To be documented. /// RoundCornersBottom = unchecked(192), + + /// /// To be documented. /// RoundCornersLeft = unchecked(80), + + /// /// To be documented. /// RoundCornersRight = unchecked(160), + + /// /// To be documented. /// RoundCornersAll = unchecked(240), + + /// /// Default to ALL corners if none of the _RoundCornersXX flags are specified.
///
RoundCornersDefault = RoundCornersAll, + + /// /// To be documented. /// RoundCornersMask = unchecked(496), + + } + + /// /// To be documented. /// public enum ImDrawListFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Enable anti-aliased linesborders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles)
///
AntiAliasedLines = unchecked(1), + + /// /// Enable anti-aliased linesborders using textures when possible. Require backend to render with bilinear filtering (NOT pointnearest filtering).
///
AntiAliasedLinesUseTex = unchecked(2), + + /// /// Enable anti-aliased edge around filled shapes (rounded rectangles, circles).
///
AntiAliasedFill = unchecked(4), + + /// /// Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled.
///
AllowVtxOffset = unchecked(8), + + } + + /// /// To be documented. /// public enum ImFontAtlasFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Don't round the height to next power of two
///
NoPowerOfTwoHeight = unchecked(1), + + /// /// Don't build software mouse cursors into the atlas (save a little texture memory)
///
NoMouseCursors = unchecked(2), + + /// /// Don't build thick line textures into the atlas (save a little texture memory, allow support for pointnearest filtering). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPUGPU).
///
NoBakedLines = unchecked(4), + + } + + /// /// To be documented. /// public enum ImGuiViewportFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// Represent a Platform Window
///
IsPlatformWindow = unchecked(1), + + /// /// Represent a Platform Monitor (unused yet)
///
IsPlatformMonitor = unchecked(2), + + /// /// Platform Window: Was createdmanaged by the user application? (rather than our backend)
///
OwnedByApp = unchecked(4), + + /// /// Platform Window: Disable platform decorations: title bar, borders, etc. (generally set all windows, but if ImGuiConfigFlags_ViewportsDecoration is set we only set this on popupstooltips)
///
NoDecoration = unchecked(8), + + /// /// Platform Window: Disable platform task bar icon (generally set on popupstooltips, or all windows if ImGuiConfigFlags_ViewportsNoTaskBarIcon is set)
///
NoTaskBarIcon = unchecked(16), + + /// /// Platform Window: Don't take focus when created.
///
NoFocusOnAppearing = unchecked(32), + + /// /// Platform Window: Don't take focus when clicked on.
///
NoFocusOnClick = unchecked(64), + + /// /// Platform Window: Make mouse pass through so we can drag this window while peaking behind it.
///
NoInputs = unchecked(128), + + /// /// Platform Window: Renderer doesn't need to clear the framebuffer ahead (because we will fill it entirely).
///
NoRendererClear = unchecked(256), + + /// /// Platform Window: Avoid merging this window into another host window. This can only be set via ImGuiWindowClass viewport flags override (because we need to now ahead if we are going to create a viewport in the first place!).
///
NoAutoMerge = unchecked(512), + + /// /// Platform Window: Display on top (for tooltips only).
///
TopMost = unchecked(1024), + + /// /// Viewport can host multiple imgui windows (secondary viewports are associated to a single window). FIXME: In practice there's still probably code making the assumption that this is always and only on the MainViewport. Will fix once we add support for "no main viewport".
///
CanHostOtherWindows = unchecked(2048), + + /// /// Platform Window: Window is minimized, can skip render. When minimized we tend to avoid using the viewport possize for clipping window or testing if they are contained in the viewport.
///
IsMinimized = unchecked(4096), + + /// /// Platform Window: Window is focused (last call to Platform_GetWindowFocus() returned true)
///
IsFocused = unchecked(8192), + + } + + /// /// To be documented. /// public enum ImGuiItemFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// NoTabStop = unchecked(1), + + /// /// To be documented. /// ButtonRepeat = unchecked(2), + + /// /// To be documented. /// Disabled = unchecked(4), + + /// /// To be documented. /// NoNav = unchecked(8), + + /// /// To be documented. /// NoNavDefaultFocus = unchecked(16), + + /// /// To be documented. /// SelectableDontClosePopup = unchecked(32), + + /// /// To be documented. /// MixedValue = unchecked(64), + + /// /// To be documented. /// ReadOnly = unchecked(128), + + /// /// To be documented. /// NoWindowHoverableCheck = unchecked(256), + + /// /// To be documented. /// AllowOverlap = unchecked(512), + + /// /// To be documented. /// Inputable = unchecked(1024), + + /// /// To be documented. /// HasSelectionUserData = unchecked(2048), + + } + + /// /// To be documented. /// public enum ImGuiItemStatusFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// HoveredRect = unchecked(1), + + /// /// To be documented. /// HasDisplayRect = unchecked(2), + + /// /// To be documented. /// Edited = unchecked(4), + + /// /// To be documented. /// ToggledSelection = unchecked(8), + + /// /// To be documented. /// ToggledOpen = unchecked(16), + + /// /// To be documented. /// HasDeactivated = unchecked(32), + + /// /// To be documented. /// Deactivated = unchecked(64), + + /// /// To be documented. /// HoveredWindow = unchecked(128), + + /// /// To be documented. /// FocusedByTabbing = unchecked(256), + + /// /// To be documented. /// Visible = unchecked(512), + + } + + /// /// To be documented. /// public enum ImGuiHoveredFlagsPrivate + { + /// /// To be documented. /// DelayMask = unchecked(245760), + + /// /// To be documented. /// AllowedMaskForIsWindowHovered = unchecked(12479), + + /// /// To be documented. /// AllowedMaskForIsItemHovered = unchecked(262048), + + } + + /// /// To be documented. /// public enum ImGuiInputTextFlagsPrivate + { + /// /// To be documented. /// Multiline = unchecked(67108864), + + /// /// To be documented. /// NoMarkEdited = unchecked(134217728), + + /// /// To be documented. /// MergedItem = unchecked(268435456), + + } + + /// /// To be documented. /// public enum ImGuiButtonFlagsPrivate + { + /// /// To be documented. /// PressedOnClick = unchecked(16), + + /// /// To be documented. /// PressedOnClickRelease = unchecked(32), + + /// /// To be documented. /// PressedOnClickReleaseAnywhere = unchecked(64), + + /// /// To be documented. /// PressedOnRelease = unchecked(128), + + /// /// To be documented. /// PressedOnDoubleClick = unchecked(256), + + /// /// To be documented. /// PressedOnDragDropHold = unchecked(512), + + /// /// To be documented. /// Repeat = unchecked(1024), + + /// /// To be documented. /// FlattenChildren = unchecked(2048), + + /// /// To be documented. /// AllowOverlap = unchecked(4096), + + /// /// To be documented. /// DontClosePopups = unchecked(8192), + + /// /// To be documented. /// AlignTextBaseLine = unchecked(32768), + + /// /// To be documented. /// NoKeyModifiers = unchecked(65536), + + /// /// To be documented. /// NoHoldingActiveId = unchecked(131072), + + /// /// To be documented. /// NoNavFocus = unchecked(262144), + + /// /// To be documented. /// NoHoveredOnFocus = unchecked(524288), + + /// /// To be documented. /// NoSetKeyOwner = unchecked(1048576), + + /// /// To be documented. /// NoTestKeyOwner = unchecked(2097152), + + /// /// To be documented. /// PressedOnMask = unchecked(1008), + + /// /// To be documented. /// PressedOnDefault = PressedOnClickRelease, + + } + + /// /// To be documented. /// public enum ImGuiComboFlagsPrivate + { + /// /// To be documented. /// CustomPreview = unchecked(1048576), + + } + + /// /// To be documented. /// public enum ImGuiSliderFlagsPrivate + { + /// /// To be documented. /// Vertical = unchecked(1048576), + + /// /// To be documented. /// ReadOnly = unchecked(2097152), + + } + + /// /// To be documented. /// public enum ImGuiSelectableFlagsPrivate + { + /// /// To be documented. /// NoHoldingActiveId = unchecked(1048576), + + /// /// To be documented. /// SelectOnNav = unchecked(2097152), + + /// /// To be documented. /// SelectOnClick = unchecked(4194304), + + /// /// To be documented. /// SelectOnRelease = unchecked(8388608), + + /// /// To be documented. /// SpanAvailWidth = unchecked(16777216), + + /// /// To be documented. /// SetNavIdOnHover = unchecked(33554432), + + /// /// To be documented. /// NoPadWithHalfSpacing = unchecked(67108864), + + /// /// To be documented. /// NoSetKeyOwner = unchecked(134217728), + + } + + /// /// To be documented. /// public enum ImGuiTreeNodeFlagsPrivate + { + /// /// To be documented. /// ClipLabelForTrailingButton = unchecked(1048576), + + /// /// To be documented. /// UpsideDownArrow = unchecked(2097152), + + } + + /// /// To be documented. /// public enum ImGuiSeparatorFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// Horizontal = unchecked(1), + + /// /// To be documented. /// Vertical = unchecked(2), + + /// /// To be documented. /// SpanAllColumns = unchecked(4), + + } + + /// /// To be documented. /// public enum ImGuiFocusRequestFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// RestoreFocusedChild = unchecked(1), + + /// /// To be documented. /// UnlessBelowModal = unchecked(2), + + } + + /// /// To be documented. /// public enum ImGuiTextFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// NoWidthForLargeClippedText = unchecked(1), + + } + + /// /// To be documented. /// public enum ImGuiTooltipFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// OverridePrevious = unchecked(2), + + } + + /// /// To be documented. /// public enum ImGuiLayoutType + { + /// /// To be documented. /// Horizontal = unchecked(0), + + /// /// To be documented. /// Vertical = unchecked(1), + + } + + /// /// To be documented. /// public enum ImGuiPlotType + { + /// /// To be documented. /// Lines = unchecked(0), + + /// /// To be documented. /// Histogram = unchecked(1), + + } + + /// /// To be documented. /// public enum ImGuiPopupPositionPolicy + { + /// /// To be documented. /// Default = unchecked(0), + + /// /// To be documented. /// ComboBox = unchecked(1), + + /// /// To be documented. /// Tooltip = unchecked(2), + + } + + /// /// To be documented. /// public enum ImGuiDataTypePrivate + { + /// /// To be documented. /// String = unchecked(11), + + /// /// To be documented. /// Pointer = unchecked(12), + + /// /// To be documented. /// Id = unchecked(13), + + } + + /// /// To be documented. /// public enum ImGuiNextWindowDataFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// HasPos = unchecked(1), + + /// /// To be documented. /// HasSize = unchecked(2), + + /// /// To be documented. /// HasContentSize = unchecked(4), + + /// /// To be documented. /// HasCollapsed = unchecked(8), + + /// /// To be documented. /// HasSizeConstraint = unchecked(16), + + /// /// To be documented. /// HasFocus = unchecked(32), + + /// /// To be documented. /// HasBgAlpha = unchecked(64), + + /// /// To be documented. /// HasScroll = unchecked(128), + + /// /// To be documented. /// HasViewport = unchecked(256), + + /// /// To be documented. /// HasDock = unchecked(512), + + /// /// To be documented. /// HasWindowClass = unchecked(1024), + + } + + /// /// To be documented. /// public enum ImGuiNextItemDataFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// HasWidth = unchecked(1), + + /// /// To be documented. /// HasOpen = unchecked(2), + + } + + /// /// To be documented. /// public enum ImGuiInputFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// Repeat = unchecked(1), + + /// /// To be documented. /// RepeatRateDefault = unchecked(2), + + /// /// To be documented. /// RepeatRateNavMove = unchecked(4), + + /// /// To be documented. /// RepeatRateNavTweak = unchecked(8), + + /// /// To be documented. /// RepeatRateMask = unchecked(14), + + /// /// To be documented. /// CondHovered = unchecked(16), + + /// /// To be documented. /// CondActive = unchecked(32), + + /// /// To be documented. /// CondDefault = unchecked(48), + + /// /// To be documented. /// CondMask = unchecked(48), + + /// /// To be documented. /// LockThisFrame = unchecked(64), + + /// /// To be documented. /// LockUntilRelease = unchecked(128), + + /// /// To be documented. /// RouteFocused = unchecked(256), + + /// /// To be documented. /// RouteGlobalLow = unchecked(512), + + /// /// To be documented. /// RouteGlobal = unchecked(1024), + + /// /// To be documented. /// RouteGlobalHigh = unchecked(2048), + + /// /// To be documented. /// RouteMask = unchecked(3840), + + /// /// To be documented. /// RouteAlways = unchecked(4096), + + /// /// To be documented. /// RouteUnlessBgFocused = unchecked(8192), + + /// /// To be documented. /// RouteExtraMask = unchecked(12288), + + /// /// To be documented. /// SupportedByIsKeyPressed = unchecked(15), + + /// /// To be documented. /// SupportedByShortcut = unchecked(16143), + + /// /// To be documented. /// SupportedBySetKeyOwner = unchecked(192), + + /// /// To be documented. /// SupportedBySetItemKeyOwner = unchecked(240), + + } + + /// /// To be documented. /// public enum ImGuiActivateFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// PreferInput = unchecked(1), + + /// /// To be documented. /// PreferTweak = unchecked(2), + + /// /// To be documented. /// TryToPreserveState = unchecked(4), + + } + + /// /// To be documented. /// public enum ImGuiScrollFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// KeepVisibleEdgex = unchecked(1), + + /// /// To be documented. /// KeepVisibleEdgey = unchecked(2), + + /// /// To be documented. /// KeepVisibleCenterx = unchecked(4), + + /// /// To be documented. /// KeepVisibleCentery = unchecked(8), + + /// /// To be documented. /// AlwaysCenterx = unchecked(16), + + /// /// To be documented. /// AlwaysCentery = unchecked(32), + + /// /// To be documented. /// NoScrollParent = unchecked(64), + + /// /// To be documented. /// Maskx = unchecked(21), + + /// /// To be documented. /// Masky = unchecked(42), + + } + + /// /// To be documented. /// public enum ImGuiNavHighlightFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// TypeDefault = unchecked(1), + + /// /// To be documented. /// TypeThin = unchecked(2), + + /// /// To be documented. /// AlwaysDraw = unchecked(4), + + /// /// To be documented. /// NoRounding = unchecked(8), + + } + + /// /// To be documented. /// public enum ImGuiNavMoveFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// Loopx = unchecked(1), + + /// /// To be documented. /// Loopy = unchecked(2), + + /// /// To be documented. /// Wrapx = unchecked(4), + + /// /// To be documented. /// Wrapy = unchecked(8), + + /// /// To be documented. /// WrapMask = unchecked(15), + + /// /// To be documented. /// AllowCurrentNavId = unchecked(16), + + /// /// To be documented. /// AlsoScoreVisibleSet = unchecked(32), + + /// /// To be documented. /// ScrollToEdgey = unchecked(64), + + /// /// To be documented. /// Forwarded = unchecked(128), + + /// /// To be documented. /// DebugNoResult = unchecked(256), + + /// /// To be documented. /// FocusApi = unchecked(512), + + /// /// To be documented. /// IsTabbing = unchecked(1024), + + /// /// To be documented. /// IsPageMove = unchecked(2048), + + /// /// To be documented. /// Activate = unchecked(4096), + + /// /// To be documented. /// NoSelect = unchecked(8192), + + /// /// To be documented. /// NoSetNavHighlight = unchecked(16384), + + } + + /// /// To be documented. /// public enum ImGuiTypingSelectFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// AllowBackspace = unchecked(1), + + /// /// To be documented. /// AllowSingleCharMode = unchecked(2), + + } + + /// /// To be documented. /// public enum ImGuiOldColumnFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// NoBorder = unchecked(1), + + /// /// To be documented. /// NoResize = unchecked(2), + + /// /// To be documented. /// NoPreserveWidths = unchecked(4), + + /// /// To be documented. /// NoForceWithinWindow = unchecked(8), + + /// /// To be documented. /// GrowParentContentsSize = unchecked(16), + + } + + /// /// To be documented. /// public enum ImGuiDockNodeFlagsPrivate + { + /// /// To be documented. /// Space = unchecked(1024), + + /// /// To be documented. /// CentralNode = unchecked(2048), + + /// /// To be documented. /// NoTabBar = unchecked(4096), + + /// /// To be documented. /// HiddenTabBar = unchecked(8192), + + /// /// To be documented. /// NoWindowMenuButton = unchecked(16384), + + /// /// To be documented. /// NoCloseButton = unchecked(32768), + + /// /// To be documented. /// NoResizex = unchecked(65536), + + /// /// To be documented. /// NoResizey = unchecked(131072), + + /// /// To be documented. /// NoDockingSplitOther = unchecked(524288), + + /// /// To be documented. /// NoDockingOverMe = unchecked(1048576), + + /// /// To be documented. /// NoDockingOverOther = unchecked(2097152), + + /// /// To be documented. /// NoDockingOverEmpty = unchecked(4194304), + + /// /// To be documented. /// NoDocking = unchecked(7864336), + + /// /// To be documented. /// SharedFlagsInheritMask = unchecked(-1), + + /// /// To be documented. /// NoResizeFlagsMask = unchecked(196640), + + /// /// To be documented. /// LocalFlagsTransferMask = unchecked(260208), + + /// /// To be documented. /// SavedFlagsMask = unchecked(261152), + + } + + /// /// To be documented. /// public enum ImGuiDataAuthority + { + /// /// To be documented. /// Auto = unchecked(0), + + /// /// To be documented. /// DockNode = unchecked(1), + + /// /// To be documented. /// Window = unchecked(2), + + } + + /// /// To be documented. /// public enum ImGuiWindowDockStyleCol + { + /// /// To be documented. /// Text = unchecked(0), + + /// /// To be documented. /// Tab = unchecked(1), + + /// /// To be documented. /// TabHovered = unchecked(2), + + /// /// To be documented. /// TabActive = unchecked(3), + + /// /// To be documented. /// TabUnfocused = unchecked(4), + + /// /// To be documented. /// TabUnfocusedActive = unchecked(5), + + /// /// To be documented. /// Count = unchecked(6), + + } + + /// /// To be documented. /// public enum ImGuiDebugLogFlags + { + /// /// To be documented. /// None = unchecked(0), + + /// /// To be documented. /// EventActiveId = unchecked(1), + + /// /// To be documented. /// EventFocus = unchecked(2), + + /// /// To be documented. /// EventPopup = unchecked(4), + + /// /// To be documented. /// EventNav = unchecked(8), + + /// /// To be documented. /// EventClipper = unchecked(16), + + /// /// To be documented. /// EventSelection = unchecked(32), + + /// /// To be documented. /// EventIo = unchecked(64), + + /// /// To be documented. /// EventDocking = unchecked(128), + + /// /// To be documented. /// EventViewport = unchecked(256), + + /// /// To be documented. /// EventMask = unchecked(511), + + /// /// To be documented. /// OutputToTty = unchecked(1024), + + /// /// To be documented. /// OutputToTestEngine = unchecked(2048), + + } + + /// /// To be documented. /// public enum ImGuiTabBarFlagsPrivate + { + /// /// To be documented. /// DockNode = unchecked(1048576), + + /// /// To be documented. /// IsFocused = unchecked(2097152), + + /// /// To be documented. /// SaveSettings = unchecked(4194304), + + } + + /// /// To be documented. /// public enum ImGuiTabItemFlagsPrivate + { + /// /// To be documented. /// SectionMask = unchecked(192), + + /// /// To be documented. /// NoCloseButton = unchecked(1048576), + + /// /// To be documented. /// Button = unchecked(2097152), + + /// /// To be documented. /// Unsorted = unchecked(4194304), + + } + +} diff --git a/Hexa.NET.ImGui/Generated/Extensions.cs b/Hexa.NET.ImGui/Generated/Extensions.cs index e6de6f7..5b6e37f 100644 --- a/Hexa.NET.ImGui/Generated/Extensions.cs +++ b/Hexa.NET.ImGui/Generated/Extensions.cs @@ -1,100 +1,78 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; -using System.Numerics; - -namespace Hexa.NET.ImGuiNET -{ - public static unsafe class Extensions - { - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image(this ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol, [NativeName(NativeNameType.Param, "border_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 borderCol) - { - ImGui.ImageNative(userTextureId, size, uv0, uv1, tintCol, borderCol); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image(this ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) - { - ImGui.ImageNative(userTextureId, size, uv0, uv1, tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image(this ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1) - { - ImGui.ImageNative(userTextureId, size, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image(this ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0) - { - ImGui.ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image(this ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - ImGui.ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image(this ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) - { - ImGui.ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image(this ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) - { - ImGui.ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image(this ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol, [NativeName(NativeNameType.Param, "border_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 borderCol) - { - ImGui.ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, borderCol); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image(this ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol, [NativeName(NativeNameType.Param, "border_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 borderCol) - { - ImGui.ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, borderCol); - } - - [NativeName(NativeNameType.Func, "igImFileClose")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Close(this ImFileHandle file) - { - byte ret = ImGui.ImFileCloseNative(file); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igImFileGetSize")] - [return: NativeName(NativeNameType.Type, "ImU64")] - public static ulong GetSize(this ImFileHandle file) - { - ulong ret = ImGui.ImFileGetSizeNative(file); - return ret; - } - - } -} +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public static unsafe class Extensions + { + public static void Image(this ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol) + { + ImGui.ImageNative(userTextureId, size, uv0, uv1, tintCol, borderCol); + } + + public static void Image(this ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol) + { + ImGui.ImageNative(userTextureId, size, uv0, uv1, tintCol, (Vector4)(new Vector4(0,0,0,0))); + } + + public static void Image(this ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1) + { + ImGui.ImageNative(userTextureId, size, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); + } + + public static void Image(this ImTextureID userTextureId, Vector2 size, Vector2 uv0) + { + ImGui.ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); + } + + public static void Image(this ImTextureID userTextureId, Vector2 size) + { + ImGui.ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); + } + + public static void Image(this ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol) + { + ImGui.ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); + } + + public static void Image(this ImTextureID userTextureId, Vector2 size, Vector4 tintCol) + { + ImGui.ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); + } + + public static void Image(this ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector4 tintCol, Vector4 borderCol) + { + ImGui.ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, borderCol); + } + + public static void Image(this ImTextureID userTextureId, Vector2 size, Vector4 tintCol, Vector4 borderCol) + { + ImGui.ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, borderCol); + } + + /// /// To be documented. /// public static bool Close(this ImFileHandle file) + { + byte ret = ImGui.ImFileCloseNative(file); + return ret != 0; + } + + /// /// To be documented. /// public static ulong GetSize(this ImFileHandle file) + { + ulong ret = ImGui.ImFileGetSizeNative(file); + return ret; + } + + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.000.cs b/Hexa.NET.ImGui/Generated/Functions.000.cs new file mode 100644 index 0000000..ae7bbb0 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.000.cs @@ -0,0 +1,5020 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + internal const string LibName = "cimgui"; + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec2_ImVec2_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial Vector2* ImVec2Native(); + + public static Vector2* ImVec2() + { + Vector2* ret = ImVec2Native(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec2_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(Vector2* self); + + public static void Destroy( Vector2* self) + { + DestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec2_ImVec2_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial Vector2* ImVec2Native(float X, float Y); + + public static Vector2* ImVec2( float X, float Y) + { + Vector2* ret = ImVec2Native(X, Y); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec4_ImVec4_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial Vector4* ImVec4Native(); + + public static Vector4* ImVec4() + { + Vector4* ret = ImVec4Native(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec4_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(Vector4* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec4_ImVec4_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial Vector4* ImVec4Native(float X, float Y, float Z, float W); + + public static Vector4* ImVec4( float X, float Y, float Z, float W) + { + Vector4* ret = ImVec4Native(X, Y, Z, W); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCreateContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiContext* CreateContextNative(ImFontAtlas* sharedFontAtlas); + + public static ImGuiContext* CreateContext( ImFontAtlas* sharedFontAtlas) + { + ImGuiContext* ret = CreateContextNative(sharedFontAtlas); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDestroyContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyContextNative(ImGuiContext* ctx); + + public static void DestroyContext( ImGuiContext* ctx) + { + DestroyContextNative(ctx); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCurrentContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiContext* GetCurrentContextNative(); + + public static ImGuiContext* GetCurrentContext() + { + ImGuiContext* ret = GetCurrentContextNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCurrentContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCurrentContextNative(ImGuiContext* ctx); + + public static void SetCurrentContext( ImGuiContext* ctx) + { + SetCurrentContextNative(ctx); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetIO")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiIO* GetIONative(); + + public static ImGuiIO* GetIO() + { + ImGuiIO* ret = GetIONative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetStyle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStyle* GetStyleNative(); + + public static ImGuiStyle* GetStyle() + { + ImGuiStyle* ret = GetStyleNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNewFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NewFrameNative(); + + public static void NewFrame() + { + NewFrameNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndFrameNative(); + + public static void EndFrame() + { + EndFrameNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRender")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderNative(); + + public static void Render() + { + RenderNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetDrawData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawData* GetDrawDataNative(); + + public static ImDrawData* GetDrawData() + { + ImDrawData* ret = GetDrawDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShowDemoWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowDemoWindowNative(byte* pOpen); + + public static void ShowDemoWindow( byte* pOpen) + { + ShowDemoWindowNative(pOpen); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShowMetricsWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowMetricsWindowNative(byte* pOpen); + + public static void ShowMetricsWindow( byte* pOpen) + { + ShowMetricsWindowNative(pOpen); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShowDebugLogWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowDebugLogWindowNative(byte* pOpen); + + public static void ShowDebugLogWindow( byte* pOpen) + { + ShowDebugLogWindowNative(pOpen); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShowIDStackToolWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowIDStackToolWindowNative(byte* pOpen); + + public static void ShowIDStackToolWindow( byte* pOpen) + { + ShowIDStackToolWindowNative(pOpen); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShowAboutWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowAboutWindowNative(byte* pOpen); + + public static void ShowAboutWindow( byte* pOpen) + { + ShowAboutWindowNative(pOpen); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShowStyleEditor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowStyleEditorNative(ImGuiStyle* reference); + + public static void ShowStyleEditor( ImGuiStyle* reference) + { + ShowStyleEditorNative(reference); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShowStyleSelector")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ShowStyleSelectorNative(byte* label); + + public static bool ShowStyleSelector( byte* label) + { + byte ret = ShowStyleSelectorNative(label); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShowFontSelector")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowFontSelectorNative(byte* label); + + public static void ShowFontSelector( byte* label) + { + ShowFontSelectorNative(label); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShowUserGuide")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowUserGuideNative(); + + public static void ShowUserGuide() + { + ShowUserGuideNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetVersion")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetVersionNative(); + + public static byte* GetVersion() + { + byte* ret = GetVersionNative(); + return ret; + } + + public static string GetVersionS() + { + string ret = Utils.DecodeStringUTF8(GetVersionNative()); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igStyleColorsDark")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void StyleColorsDarkNative(ImGuiStyle* dst); + + public static void StyleColorsDark( ImGuiStyle* dst) + { + StyleColorsDarkNative(dst); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igStyleColorsLight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void StyleColorsLightNative(ImGuiStyle* dst); + + public static void StyleColorsLight( ImGuiStyle* dst) + { + StyleColorsLightNative(dst); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igStyleColorsClassic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void StyleColorsClassicNative(ImGuiStyle* dst); + + public static void StyleColorsClassic( ImGuiStyle* dst) + { + StyleColorsClassicNative(dst); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBegin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginNative(byte* name, byte* pOpen, int flags); + + public static bool Begin( byte* name, byte* pOpen, int flags) + { + byte ret = BeginNative(name, pOpen, flags); + return ret != 0; + } + + public static bool Begin( byte* name, byte* pOpen) + { + byte ret = BeginNative(name, pOpen, (int)(0)); + return ret != 0; + } + + public static bool Begin( byte* name) + { + byte ret = BeginNative(name, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool Begin( byte* name, int flags) + { + byte ret = BeginNative(name, (byte*)(default), flags); + return ret != 0; + } + + public static bool Begin( byte* name, ref byte pOpen, int flags) + { + fixed (byte* ppOpen = &pOpen) + { + byte ret = BeginNative(name, (byte*)ppOpen, flags); + return ret != 0; + } + } + + public static bool Begin( byte* name, ref byte pOpen) + { + fixed (byte* ppOpen = &pOpen) + { + byte ret = BeginNative(name, (byte*)ppOpen, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEnd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndNative(); + + public static void End() + { + EndNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginChild_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginChildNative(byte* strId, Vector2 size, byte border, int windowFlags); + + public static bool BeginChild( byte* strId, Vector2 size, bool border, int windowFlags) + { + byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, windowFlags); + return ret != 0; + } + + public static bool BeginChild( byte* strId, Vector2 size, bool border) + { + byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, (int)(0)); + return ret != 0; + } + + public static bool BeginChild( byte* strId, Vector2 size) + { + byte ret = BeginChildNative(strId, size, (byte)(0), (int)(0)); + return ret != 0; + } + + public static bool BeginChild( byte* strId) + { + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), (int)(0)); + return ret != 0; + } + + public static bool BeginChild( byte* strId, bool border) + { + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (int)(0)); + return ret != 0; + } + + public static bool BeginChild( byte* strId, Vector2 size, int windowFlags) + { + byte ret = BeginChildNative(strId, size, (byte)(0), windowFlags); + return ret != 0; + } + + public static bool BeginChild( byte* strId, int windowFlags) + { + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), windowFlags); + return ret != 0; + } + + public static bool BeginChild( byte* strId, bool border, int windowFlags) + { + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, windowFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginChild_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginChildNative(uint id, Vector2 size, byte border, int windowFlags); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndChild")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndChildNative(); + + public static void EndChild() + { + EndChildNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowAppearing")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowAppearingNative(); + + public static bool IsWindowAppearing() + { + byte ret = IsWindowAppearingNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowCollapsed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowCollapsedNative(); + + public static bool IsWindowCollapsed() + { + byte ret = IsWindowCollapsedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowFocused")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowFocusedNative(int flags); + + public static bool IsWindowFocused( int flags) + { + byte ret = IsWindowFocusedNative(flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowHovered")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowHoveredNative(int flags); + + public static bool IsWindowHovered( int flags) + { + byte ret = IsWindowHoveredNative(flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowDrawList")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetWindowDrawListNative(); + + public static ImDrawList* GetWindowDrawList() + { + ImDrawList* ret = GetWindowDrawListNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowDpiScale")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetWindowDpiScaleNative(); + + public static float GetWindowDpiScale() + { + float ret = GetWindowDpiScaleNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWindowPosNative(Vector2* pOut); + + public static void GetWindowPos( Vector2* pOut) + { + GetWindowPosNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWindowSizeNative(Vector2* pOut); + + public static void GetWindowSize( Vector2* pOut) + { + GetWindowSizeNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetWindowWidthNative(); + + public static float GetWindowWidth() + { + float ret = GetWindowWidthNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetWindowHeightNative(); + + public static float GetWindowHeight() + { + float ret = GetWindowHeightNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewport* GetWindowViewportNative(); + + public static ImGuiViewport* GetWindowViewport() + { + ImGuiViewport* ret = GetWindowViewportNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowPosNative(Vector2 pos, int cond, Vector2 pivot); + + public static void SetNextWindowPos( Vector2 pos, int cond, Vector2 pivot) + { + SetNextWindowPosNative(pos, cond, pivot); + } + + public static void SetNextWindowPos( Vector2 pos, int cond) + { + SetNextWindowPosNative(pos, cond, (Vector2)(new Vector2(0,0))); + } + + public static void SetNextWindowPos( Vector2 pos) + { + SetNextWindowPosNative(pos, (int)(0), (Vector2)(new Vector2(0,0))); + } + + public static void SetNextWindowPos( Vector2 pos, Vector2 pivot) + { + SetNextWindowPosNative(pos, (int)(0), pivot); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowSizeNative(Vector2 size, int cond); + + public static void SetNextWindowSize( Vector2 size, int cond) + { + SetNextWindowSizeNative(size, cond); + } + + public static void SetNextWindowSize( Vector2 size) + { + SetNextWindowSizeNative(size, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowSizeConstraints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowSizeConstraintsNative(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData); + + public static void SetNextWindowSizeConstraints( Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) + { + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, customCallbackData); + } + + public static void SetNextWindowSizeConstraints( Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback) + { + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, (void*)(default)); + } + + public static void SetNextWindowSizeConstraints( Vector2 sizeMin, Vector2 sizeMax) + { + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), (void*)(default)); + } + + public static void SetNextWindowSizeConstraints( Vector2 sizeMin, Vector2 sizeMax, void* customCallbackData) + { + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), customCallbackData); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowContentSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowContentSizeNative(Vector2 size); + + public static void SetNextWindowContentSize( Vector2 size) + { + SetNextWindowContentSizeNative(size); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowCollapsed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowCollapsedNative(byte collapsed, int cond); + + public static void SetNextWindowCollapsed( bool collapsed, int cond) + { + SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); + } + + public static void SetNextWindowCollapsed( bool collapsed) + { + SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowFocus")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowFocusNative(); + + public static void SetNextWindowFocus() + { + SetNextWindowFocusNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowScroll")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowScrollNative(Vector2 scroll); + + public static void SetNextWindowScroll( Vector2 scroll) + { + SetNextWindowScrollNative(scroll); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowBgAlpha")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowBgAlphaNative(float alpha); + + public static void SetNextWindowBgAlpha( float alpha) + { + SetNextWindowBgAlphaNative(alpha); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowViewportNative(uint viewportId); + + public static void SetNextWindowViewport( uint viewportId) + { + SetNextWindowViewportNative(viewportId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowPos_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowPosNative(Vector2 pos, int cond); + + public static void SetWindowPos( Vector2 pos, int cond) + { + SetWindowPosNative(pos, cond); + } + + public static void SetWindowPos( Vector2 pos) + { + SetWindowPosNative(pos, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowSize_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowSizeNative(Vector2 size, int cond); + + public static void SetWindowSize( Vector2 size, int cond) + { + SetWindowSizeNative(size, cond); + } + + public static void SetWindowSize( Vector2 size) + { + SetWindowSizeNative(size, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowCollapsed_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowCollapsedNative(byte collapsed, int cond); + + public static void SetWindowCollapsed( bool collapsed, int cond) + { + SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); + } + + public static void SetWindowCollapsed( bool collapsed) + { + SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowFocus_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowFocusNative(); + + public static void SetWindowFocus() + { + SetWindowFocusNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowFontScale")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowFontScaleNative(float scale); + + public static void SetWindowFontScale( float scale) + { + SetWindowFontScaleNative(scale); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowPos_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowPosNative(byte* name, Vector2 pos, int cond); + + public static void SetWindowPos( byte* name, Vector2 pos, int cond) + { + SetWindowPosNative(name, pos, cond); + } + + public static void SetWindowPos( byte* name, Vector2 pos) + { + SetWindowPosNative(name, pos, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowSize_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowSizeNative(byte* name, Vector2 size, int cond); + + public static void SetWindowSize( byte* name, Vector2 size, int cond) + { + SetWindowSizeNative(name, size, cond); + } + + public static void SetWindowSize( byte* name, Vector2 size) + { + SetWindowSizeNative(name, size, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowCollapsed_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowCollapsedNative(byte* name, byte collapsed, int cond); + + public static void SetWindowCollapsed( byte* name, bool collapsed, int cond) + { + SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, cond); + } + + public static void SetWindowCollapsed( byte* name, bool collapsed) + { + SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowFocus_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowFocusNative(byte* name); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetContentRegionAvail")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetContentRegionAvailNative(Vector2* pOut); + + public static void GetContentRegionAvail( Vector2* pOut) + { + GetContentRegionAvailNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetContentRegionMax")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetContentRegionMaxNative(Vector2* pOut); + + public static void GetContentRegionMax( Vector2* pOut) + { + GetContentRegionMaxNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowContentRegionMin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWindowContentRegionMinNative(Vector2* pOut); + + public static void GetWindowContentRegionMin( Vector2* pOut) + { + GetWindowContentRegionMinNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowContentRegionMax")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWindowContentRegionMaxNative(Vector2* pOut); + + public static void GetWindowContentRegionMax( Vector2* pOut) + { + GetWindowContentRegionMaxNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetScrollX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetScrollXNative(); + + public static float GetScrollX() + { + float ret = GetScrollXNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetScrollY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetScrollYNative(); + + public static float GetScrollY() + { + float ret = GetScrollYNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollX_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollXNative(float scrollX); + + public static void SetScrollX( float scrollX) + { + SetScrollXNative(scrollX); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollY_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollYNative(float scrollY); + + public static void SetScrollY( float scrollY) + { + SetScrollYNative(scrollY); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetScrollMaxX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetScrollMaxXNative(); + + public static float GetScrollMaxX() + { + float ret = GetScrollMaxXNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetScrollMaxY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetScrollMaxYNative(); + + public static float GetScrollMaxY() + { + float ret = GetScrollMaxYNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollHereX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollHereXNative(float centerXRatio); + + public static void SetScrollHereX( float centerXRatio) + { + SetScrollHereXNative(centerXRatio); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollHereY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollHereYNative(float centerYRatio); + + public static void SetScrollHereY( float centerYRatio) + { + SetScrollHereYNative(centerYRatio); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollFromPosX_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollFromPosXNative(float localX, float centerXRatio); + + public static void SetScrollFromPosX( float localX, float centerXRatio) + { + SetScrollFromPosXNative(localX, centerXRatio); + } + + public static void SetScrollFromPosX( float localX) + { + SetScrollFromPosXNative(localX, (float)(0.5f)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollFromPosY_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollFromPosYNative(float localY, float centerYRatio); + + public static void SetScrollFromPosY( float localY, float centerYRatio) + { + SetScrollFromPosYNative(localY, centerYRatio); + } + + public static void SetScrollFromPosY( float localY) + { + SetScrollFromPosYNative(localY, (float)(0.5f)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushFontNative(ImFont* font); + + public static void PushFont( ImFont* font) + { + PushFontNative(font); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopFontNative(); + + public static void PopFont() + { + PopFontNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushStyleColor_U32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushStyleColorNative(int idx, uint col); + + public static void PushStyleColor( int idx, uint col) + { + PushStyleColorNative(idx, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushStyleColor_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushStyleColorNative(int idx, Vector4 col); + + public static void PushStyleColor( int idx, Vector4 col) + { + PushStyleColorNative(idx, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopStyleColor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopStyleColorNative(int count); + + public static void PopStyleColor( int count) + { + PopStyleColorNative(count); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushStyleVar_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushStyleVarNative(int idx, float val); + + public static void PushStyleVar( int idx, float val) + { + PushStyleVarNative(idx, val); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushStyleVar_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushStyleVarNative(int idx, Vector2 val); + + public static void PushStyleVar( int idx, Vector2 val) + { + PushStyleVarNative(idx, val); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopStyleVar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopStyleVarNative(int count); + + public static void PopStyleVar( int count) + { + PopStyleVarNative(count); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushTabStop")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushTabStopNative(byte tabStop); + + public static void PushTabStop( bool tabStop) + { + PushTabStopNative(tabStop ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopTabStop")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopTabStopNative(); + + public static void PopTabStop() + { + PopTabStopNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushButtonRepeat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushButtonRepeatNative(byte repeat); + + public static void PushButtonRepeat( bool repeat) + { + PushButtonRepeatNative(repeat ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopButtonRepeat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopButtonRepeatNative(); + + public static void PopButtonRepeat() + { + PopButtonRepeatNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushItemWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushItemWidthNative(float itemWidth); + + public static void PushItemWidth( float itemWidth) + { + PushItemWidthNative(itemWidth); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopItemWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopItemWidthNative(); + + public static void PopItemWidth() + { + PopItemWidthNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextItemWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextItemWidthNative(float itemWidth); + + public static void SetNextItemWidth( float itemWidth) + { + SetNextItemWidthNative(itemWidth); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcItemWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float CalcItemWidthNative(); + + public static float CalcItemWidth() + { + float ret = CalcItemWidthNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushTextWrapPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushTextWrapPosNative(float wrapLocalPosX); + + public static void PushTextWrapPos( float wrapLocalPosX) + { + PushTextWrapPosNative(wrapLocalPosX); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopTextWrapPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopTextWrapPosNative(); + + public static void PopTextWrapPos() + { + PopTextWrapPosNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* GetFontNative(); + + public static ImFont* GetFont() + { + ImFont* ret = GetFontNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFontSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetFontSizeNative(); + + public static float GetFontSize() + { + float ret = GetFontSizeNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFontTexUvWhitePixel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetFontTexUvWhitePixelNative(Vector2* pOut); + + public static void GetFontTexUvWhitePixel( Vector2* pOut) + { + GetFontTexUvWhitePixelNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColorU32_Col")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetColorU32Native(int idx, float alphaMul); + + public static uint GetColorU32( int idx, float alphaMul) + { + uint ret = GetColorU32Native(idx, alphaMul); + return ret; + } + + public static uint GetColorU32( int idx) + { + uint ret = GetColorU32Native(idx, (float)(1.0f)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColorU32_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetColorU32Native(Vector4 col); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColorU32_U32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetColorU32Native(uint col); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetStyleColorVec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial Vector4* GetStyleColorVec4Native(int idx); + + public static Vector4* GetStyleColorVec4( int idx) + { + Vector4* ret = GetStyleColorVec4Native(idx); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCursorScreenPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetCursorScreenPosNative(Vector2* pOut); + + public static void GetCursorScreenPos( Vector2* pOut) + { + GetCursorScreenPosNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCursorScreenPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCursorScreenPosNative(Vector2 pos); + + public static void SetCursorScreenPos( Vector2 pos) + { + SetCursorScreenPosNative(pos); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCursorPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetCursorPosNative(Vector2* pOut); + + public static void GetCursorPos( Vector2* pOut) + { + GetCursorPosNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCursorPosX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetCursorPosXNative(); + + public static float GetCursorPosX() + { + float ret = GetCursorPosXNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCursorPosY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetCursorPosYNative(); + + public static float GetCursorPosY() + { + float ret = GetCursorPosYNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCursorPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCursorPosNative(Vector2 localPos); + + public static void SetCursorPos( Vector2 localPos) + { + SetCursorPosNative(localPos); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCursorPosX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCursorPosXNative(float localX); + + public static void SetCursorPosX( float localX) + { + SetCursorPosXNative(localX); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCursorPosY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCursorPosYNative(float localY); + + public static void SetCursorPosY( float localY) + { + SetCursorPosYNative(localY); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCursorStartPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetCursorStartPosNative(Vector2* pOut); + + public static void GetCursorStartPos( Vector2* pOut) + { + GetCursorStartPosNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSeparator")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SeparatorNative(); + + public static void Separator() + { + SeparatorNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSameLine")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SameLineNative(float offsetFromStartX, float spacing); + + public static void SameLine( float offsetFromStartX, float spacing) + { + SameLineNative(offsetFromStartX, spacing); + } + + public static void SameLine( float offsetFromStartX) + { + SameLineNative(offsetFromStartX, (float)(-1.0f)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNewLine")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NewLineNative(); + + public static void NewLine() + { + NewLineNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSpacing")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpacingNative(); + + public static void Spacing() + { + SpacingNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDummy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DummyNative(Vector2 size); + + public static void Dummy( Vector2 size) + { + DummyNative(size); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIndent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void IndentNative(float indentW); + + public static void Indent( float indentW) + { + IndentNative(indentW); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUnindent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UnindentNative(float indentW); + + public static void Unindent( float indentW) + { + UnindentNative(indentW); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginGroupNative(); + + public static void BeginGroup() + { + BeginGroupNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndGroupNative(); + + public static void EndGroup() + { + EndGroupNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igAlignTextToFramePadding")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AlignTextToFramePaddingNative(); + + public static void AlignTextToFramePadding() + { + AlignTextToFramePaddingNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTextLineHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetTextLineHeightNative(); + + public static float GetTextLineHeight() + { + float ret = GetTextLineHeightNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTextLineHeightWithSpacing")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetTextLineHeightWithSpacingNative(); + + public static float GetTextLineHeightWithSpacing() + { + float ret = GetTextLineHeightWithSpacingNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFrameHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetFrameHeightNative(); + + public static float GetFrameHeight() + { + float ret = GetFrameHeightNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFrameHeightWithSpacing")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetFrameHeightWithSpacingNative(); + + public static float GetFrameHeightWithSpacing() + { + float ret = GetFrameHeightWithSpacingNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushID_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushIDNative(byte* strId); + + public static void PushID( byte* strId) + { + PushIDNative(strId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushID_StrStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushIDNative(byte* strIdBegin, byte* strIdEnd); + + public static void PushID( byte* strIdBegin, byte* strIdEnd) + { + PushIDNative(strIdBegin, strIdEnd); + } + + public static void PushID( byte* strIdBegin, ref byte strIdEnd) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + PushIDNative(strIdBegin, (byte*)pstrIdEnd); + } + } + + public static void PushID( byte* strIdBegin, string strIdEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PushIDNative(strIdBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushID_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushIDNative(void* ptrId); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushID_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushIDNative(int intId); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopIDNative(); + + public static void PopID() + { + PopIDNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetID_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetIDNative(byte* strId); + + public static uint GetID( byte* strId) + { + uint ret = GetIDNative(strId); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetID_StrStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetIDNative(byte* strIdBegin, byte* strIdEnd); + + public static uint GetID( byte* strIdBegin, byte* strIdEnd) + { + uint ret = GetIDNative(strIdBegin, strIdEnd); + return ret; + } + + public static uint GetID( byte* strIdBegin, ref byte strIdEnd) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + uint ret = GetIDNative(strIdBegin, (byte*)pstrIdEnd); + return ret; + } + } + + public static uint GetID( byte* strIdBegin, string strIdEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative(strIdBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetID_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetIDNative(void* ptrId); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTextUnformatted")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextUnformattedNative(byte* text, byte* textEnd); + + public static void TextUnformatted( byte* text, byte* textEnd) + { + TextUnformattedNative(text, textEnd); + } + + public static void TextUnformatted( byte* text) + { + TextUnformattedNative(text, (byte*)(default)); + } + + public static void TextUnformatted( byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + TextUnformattedNative(text, (byte*)ptextEnd); + } + } + + public static void TextUnformatted( byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextUnformattedNative(text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextNative(byte* fmt); + + public static void Text( byte* fmt) + { + TextNative(fmt); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTextV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextVNative(byte* fmt, nuint args); + + public static void TextV( byte* fmt, nuint args) + { + TextVNative(fmt, args); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTextColored")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextColoredNative(Vector4 col, byte* fmt); + + public static void TextColored( Vector4 col, byte* fmt) + { + TextColoredNative(col, fmt); + } + + public static void TextColored( Vector4 col, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + TextColoredNative(col, (byte*)pfmt); + } + } + + public static void TextColored( Vector4 col, string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextColoredNative(col, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTextColoredV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextColoredVNative(Vector4 col, byte* fmt, nuint args); + + public static void TextColoredV( Vector4 col, byte* fmt, nuint args) + { + TextColoredVNative(col, fmt, args); + } + + public static void TextColoredV( Vector4 col, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + TextColoredVNative(col, (byte*)pfmt, args); + } + } + + public static void TextColoredV( Vector4 col, string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextColoredVNative(col, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTextDisabled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextDisabledNative(byte* fmt); + + public static void TextDisabled( byte* fmt) + { + TextDisabledNative(fmt); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTextDisabledV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextDisabledVNative(byte* fmt, nuint args); + + public static void TextDisabledV( byte* fmt, nuint args) + { + TextDisabledVNative(fmt, args); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTextWrapped")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextWrappedNative(byte* fmt); + + public static void TextWrapped( byte* fmt) + { + TextWrappedNative(fmt); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTextWrappedV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextWrappedVNative(byte* fmt, nuint args); + + public static void TextWrappedV( byte* fmt, nuint args) + { + TextWrappedVNative(fmt, args); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLabelText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LabelTextNative(byte* label, byte* fmt); + + public static void LabelText( byte* label, byte* fmt) + { + LabelTextNative(label, fmt); + } + + public static void LabelText( byte* label, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + LabelTextNative(label, (byte*)pfmt); + } + } + + public static void LabelText( byte* label, string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LabelTextNative(label, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLabelTextV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LabelTextVNative(byte* label, byte* fmt, nuint args); + + public static void LabelTextV( byte* label, byte* fmt, nuint args) + { + LabelTextVNative(label, fmt, args); + } + + public static void LabelTextV( byte* label, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + LabelTextVNative(label, (byte*)pfmt, args); + } + } + + public static void LabelTextV( byte* label, string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LabelTextVNative(label, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBulletText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BulletTextNative(byte* fmt); + + public static void BulletText( byte* fmt) + { + BulletTextNative(fmt); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBulletTextV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BulletTextVNative(byte* fmt, nuint args); + + public static void BulletTextV( byte* fmt, nuint args) + { + BulletTextVNative(fmt, args); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSeparatorText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SeparatorTextNative(byte* label); + + public static void SeparatorText( byte* label) + { + SeparatorTextNative(label); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ButtonNative(byte* label, Vector2 size); + + public static bool Button( byte* label, Vector2 size) + { + byte ret = ButtonNative(label, size); + return ret != 0; + } + + public static bool Button( byte* label) + { + byte ret = ButtonNative(label, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSmallButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SmallButtonNative(byte* label); + + public static bool SmallButton( byte* label) + { + byte ret = SmallButtonNative(label); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInvisibleButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InvisibleButtonNative(byte* strId, Vector2 size, int flags); + + public static bool InvisibleButton( byte* strId, Vector2 size, int flags) + { + byte ret = InvisibleButtonNative(strId, size, flags); + return ret != 0; + } + + public static bool InvisibleButton( byte* strId, Vector2 size) + { + byte ret = InvisibleButtonNative(strId, size, (int)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igArrowButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ArrowButtonNative(byte* strId, int dir); + + public static bool ArrowButton( byte* strId, int dir) + { + byte ret = ArrowButtonNative(strId, dir); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCheckbox")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CheckboxNative(byte* label, byte* v); + + public static bool Checkbox( byte* label, byte* v) + { + byte ret = CheckboxNative(label, v); + return ret != 0; + } + + public static bool Checkbox( byte* label, ref byte v) + { + fixed (byte* pv = &v) + { + byte ret = CheckboxNative(label, (byte*)pv); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCheckboxFlags_IntPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CheckboxFlagsNative(byte* label, int* flags, int flagsValue); + + public static bool CheckboxFlags( byte* label, int* flags, int flagsValue) + { + byte ret = CheckboxFlagsNative(label, flags, flagsValue); + return ret != 0; + } + + public static bool CheckboxFlags( byte* label, ref int flags, int flagsValue) + { + fixed (int* pflags = &flags) + { + byte ret = CheckboxFlagsNative(label, (int*)pflags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCheckboxFlags_UintPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CheckboxFlagsNative(byte* label, uint* flags, uint flagsValue); + + public static bool CheckboxFlags( byte* label, uint* flags, uint flagsValue) + { + byte ret = CheckboxFlagsNative(label, flags, flagsValue); + return ret != 0; + } + + public static bool CheckboxFlags( byte* label, ref uint flags, uint flagsValue) + { + fixed (uint* pflags = &flags) + { + byte ret = CheckboxFlagsNative(label, (uint*)pflags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRadioButton_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte RadioButtonNative(byte* label, byte active); + + public static bool RadioButton( byte* label, bool active) + { + byte ret = RadioButtonNative(label, active ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRadioButton_IntPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte RadioButtonNative(byte* label, int* v, int vButton); + + public static bool RadioButton( byte* label, int* v, int vButton) + { + byte ret = RadioButtonNative(label, v, vButton); + return ret != 0; + } + + public static bool RadioButton( byte* label, ref int v, int vButton) + { + fixed (int* pv = &v) + { + byte ret = RadioButtonNative(label, (int*)pv, vButton); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igProgressBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ProgressBarNative(float fraction, Vector2 sizeArg, byte* overlay); + + public static void ProgressBar( float fraction, Vector2 sizeArg, byte* overlay) + { + ProgressBarNative(fraction, sizeArg, overlay); + } + + public static void ProgressBar( float fraction, Vector2 sizeArg) + { + ProgressBarNative(fraction, sizeArg, (byte*)(default)); + } + + public static void ProgressBar( float fraction) + { + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)(default)); + } + + public static void ProgressBar( float fraction, byte* overlay) + { + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), overlay); + } + + public static void ProgressBar( float fraction, Vector2 sizeArg, ref byte overlay) + { + fixed (byte* poverlay = &overlay) + { + ProgressBarNative(fraction, sizeArg, (byte*)poverlay); + } + } + + public static void ProgressBar( float fraction, ref byte overlay) + { + fixed (byte* poverlay = &overlay) + { + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)poverlay); + } + } + + public static void ProgressBar( float fraction, Vector2 sizeArg, string overlay) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlay != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlay); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ProgressBarNative(fraction, sizeArg, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void ProgressBar( float fraction, string overlay) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlay != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlay); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBullet")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BulletNative(); + + public static void Bullet() + { + BulletNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImageNative(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImageButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImageButtonNative(byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol); + + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, uv1, bgCol, tintCol); + return ret != 0; + } + + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1, Vector4 bgCol) + { + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, uv1, bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1) + { + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, uv1, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0) + { + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize) + { + byte ret = ImageButtonNative(strId, userTextureId, imageSize, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector4 bgCol) + { + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, (Vector2)(new Vector2(1,1)), bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector4 bgCol) + { + byte ret = ImageButtonNative(strId, userTextureId, imageSize, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } + + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, (Vector2)(new Vector2(1,1)), bgCol, tintCol); + return ret != 0; + } + + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector4 bgCol, Vector4 tintCol) + { + byte ret = ImageButtonNative(strId, userTextureId, imageSize, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), bgCol, tintCol); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginCombo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginComboNative(byte* label, byte* previewValue, int flags); + + public static bool BeginCombo( byte* label, byte* previewValue, int flags) + { + byte ret = BeginComboNative(label, previewValue, flags); + return ret != 0; + } + + public static bool BeginCombo( byte* label, byte* previewValue) + { + byte ret = BeginComboNative(label, previewValue, (int)(0)); + return ret != 0; + } + + public static bool BeginCombo( byte* label, ref byte previewValue, int flags) + { + fixed (byte* ppreviewValue = &previewValue) + { + byte ret = BeginComboNative(label, (byte*)ppreviewValue, flags); + return ret != 0; + } + } + + public static bool BeginCombo( byte* label, ref byte previewValue) + { + fixed (byte* ppreviewValue = &previewValue) + { + byte ret = BeginComboNative(label, (byte*)ppreviewValue, (int)(0)); + return ret != 0; + } + } + + public static bool BeginCombo( byte* label, string previewValue, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (previewValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(previewValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginComboNative(label, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool BeginCombo( byte* label, string previewValue) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (previewValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(previewValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginComboNative(label, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndCombo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndComboNative(); + + public static void EndCombo() + { + EndComboNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCombo_Str_arr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ComboNative(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems); + + public static bool Combo( byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + byte ret = ComboNative(label, currentItem, items, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + + public static bool Combo( byte* label, int* currentItem, byte** items, int itemsCount) + { + byte ret = ComboNative(label, currentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + + public static bool Combo( byte* label, ref int currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + + public static bool Combo( byte* label, ref int currentItem, byte** items, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + + public static bool Combo( byte* label, int* currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) + { + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArraySize0 > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); + } + else + { + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(label, currentItem, pStrArray0, itemsCount, popupMaxHeightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + + public static bool Combo( byte* label, int* currentItem, string[] items, int itemsCount) + { + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArraySize0 > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); + } + else + { + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(label, currentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + + public static bool Combo( byte* label, ref int currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArraySize0 > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); + } + else + { + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, popupMaxHeightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + } + + public static bool Combo( byte* label, ref int currentItem, string[] items, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArraySize0 > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); + } + else + { + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ComboNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCombo_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ComboNative(byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems); + + public static bool Combo( byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte ret = ComboNative(label, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + + public static bool Combo( byte* label, int* currentItem, byte* itemsSeparatedByZeros) + { + byte ret = ComboNative(label, currentItem, itemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + + public static bool Combo( byte* label, ref int currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + + public static bool Combo( byte* label, ref int currentItem, byte* itemsSeparatedByZeros) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + + public static bool Combo( byte* label, int* currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + + public static bool Combo( byte* label, int* currentItem, ref byte itemsSeparatedByZeros) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + + public static bool Combo( byte* label, int* currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative(label, currentItem, pStr0, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool Combo( byte* label, int* currentItem, string itemsSeparatedByZeros) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative(label, currentItem, pStr0, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool Combo( byte* label, ref int currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } + } + } + + public static bool Combo( byte* label, ref int currentItem, ref byte itemsSeparatedByZeros) + { + fixed (int* pcurrentItem = ¤tItem) + { + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + { + byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } + } + } + + public static bool Combo( byte* label, ref int currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative(label, (int*)pcurrentItem, pStr0, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool Combo( byte* label, ref int currentItem, string itemsSeparatedByZeros) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) + { + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative(label, (int*)pcurrentItem, pStr0, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCombo_FnStrPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ComboNative(byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int popupMaxHeightInItems); + + public static bool Combo( byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int popupMaxHeightInItems) + { + byte ret = ComboNative(label, currentItem, getter, userData, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + + public static bool Combo( byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount) + { + byte ret = ComboNative(label, currentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; + } + + public static bool Combo( byte* label, ref int currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, getter, userData, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + + public static bool Combo( byte* label, ref int currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; + } + } + + public static bool Combo( byte* label, int* currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount, int popupMaxHeightInItems) + { + byte ret = ComboNative(label, currentItem, getter, userData, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + + public static bool Combo( byte* label, int* currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount) + { + byte ret = ComboNative(label, currentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; + } + + public static bool Combo( byte* label, ref int currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount, int popupMaxHeightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, getter, userData, itemsCount, popupMaxHeightInItems); + return ret != 0; + } + } + + public static bool Combo( byte* label, ref int currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragFloatNative(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags); + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloat(label, v, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin) + { + bool ret = DragFloat(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed) + { + bool ret = DragFloat(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat( byte* label, float* v) + { + bool ret = DragFloat(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, byte* format) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, byte* format) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, int flags) + { + bool ret = DragFloat(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, int flags) + { + bool ret = DragFloat(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, int flags) + { + bool ret = DragFloat(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat( byte* label, float* v, int flags) + { + bool ret = DragFloat(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, byte* format, int flags) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, byte* format, int flags) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, byte* format, int flags) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat( byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat( byte* label, ref float v, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat( byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat( byte* label, ref float v, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, string format, int flags) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, string format) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, string format) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, string format) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, string format, int flags) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, string format, int flags) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat( byte* label, ref float v, string format, int flags) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragFloat2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragFloat2Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags); + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloat2(label, v, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin) + { + bool ret = DragFloat2(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed) + { + bool ret = DragFloat2(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat2( byte* label, float* v) + { + bool ret = DragFloat2(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, byte* format) + { + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, byte* format) + { + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, int flags) + { + bool ret = DragFloat2(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, int flags) + { + bool ret = DragFloat2(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, int flags) + { + bool ret = DragFloat2(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat2( byte* label, float* v, int flags) + { + bool ret = DragFloat2(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, byte* format, int flags) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, byte* format, int flags) + { + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, byte* format, int flags) + { + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref float v, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, int flags) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, int flags) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, int flags) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, int flags) + { + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, byte* format, int flags) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, byte* format, int flags) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, byte* format, int flags) + { + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat2( byte* label, float* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat2( byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat2( byte* label, ref float v, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, string format, int flags) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, string format) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, string format) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, string format) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, string format) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, string format, int flags) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, string format, int flags) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat2( byte* label, ref Vector2 v, string format, int flags) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragFloat3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragFloat3Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags); + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloat3(label, v, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin) + { + bool ret = DragFloat3(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed) + { + bool ret = DragFloat3(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat3( byte* label, float* v) + { + bool ret = DragFloat3(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, byte* format) + { + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.001.cs b/Hexa.NET.ImGui/Generated/Functions.001.cs new file mode 100644 index 0000000..d885d9a --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.001.cs @@ -0,0 +1,5027 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + public static bool DragFloat3( byte* label, float* v, byte* format) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, int flags) + { + bool ret = DragFloat3(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, int flags) + { + bool ret = DragFloat3(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, int flags) + { + bool ret = DragFloat3(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, int flags) + { + bool ret = DragFloat3(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, byte* format, int flags) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, byte* format, int flags) + { + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, byte* format, int flags) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref float v, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, int flags) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, int flags) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, int flags) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, int flags) + { + fixed (Vector3* pv = &v) + { + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, byte* format, int flags) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, byte* format, int flags) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, byte* format, int flags) + { + fixed (Vector3* pv = &v) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat3( byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat3( byte* label, ref float v, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, string format, int flags) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, string format) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, string format) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, string format) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, string format) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, string format, int flags) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, string format, int flags) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat3( byte* label, ref Vector3 v, string format, int flags) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragFloat4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragFloat4Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags); + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloat4(label, v, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin) + { + bool ret = DragFloat4(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed) + { + bool ret = DragFloat4(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat4( byte* label, float* v) + { + bool ret = DragFloat4(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, byte* format) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, byte* format) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, int flags) + { + bool ret = DragFloat4(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, int flags) + { + bool ret = DragFloat4(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, int flags) + { + bool ret = DragFloat4(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat4( byte* label, float* v, int flags) + { + bool ret = DragFloat4(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, byte* format, int flags) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, byte* format, int flags) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, byte* format, int flags) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref float v, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, int flags) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, int flags) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, int flags) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, int flags) + { + fixed (Vector4* pv = &v) + { + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, byte* format, int flags) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, byte* format, int flags) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, byte* format, int flags) + { + fixed (Vector4* pv = &v) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat4( byte* label, float* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat4( byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat4( byte* label, ref float v, float vSpeed, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat4( byte* label, ref float v, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, string format, int flags) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, string format) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, string format) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, string format) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, string format) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, string format, int flags) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, string format, int flags) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, ref Vector4 v, string format, int flags) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragFloatRange2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragFloatRange2Native(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, int flags); + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, int flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, int flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, int flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, int flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.002.cs b/Hexa.NET.ImGui/Generated/Functions.002.cs new file mode 100644 index 0000000..8755983 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.002.cs @@ -0,0 +1,5038 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, int flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, int flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, int flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, int flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragIntNative(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags); + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax) + { + bool ret = DragInt(label, v, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin) + { + bool ret = DragInt(label, v, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v, float vSpeed) + { + bool ret = DragInt(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v) + { + bool ret = DragInt(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v, int vMin) + { + bool ret = DragInt(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax) + { + bool ret = DragInt(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, byte* format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, byte* format) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, byte* format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, byte* format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, int flags) + { + bool ret = DragInt(label, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = DragInt(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, byte* format, int flags) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, byte* format, int flags) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, byte* format, int flags) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, byte* format, int flags) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt( byte* label, ref int v) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt( byte* label, ref int v, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.003.cs b/Hexa.NET.ImGui/Generated/Functions.003.cs new file mode 100644 index 0000000..605b7c8 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.003.cs @@ -0,0 +1,5023 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + public static bool DragInt( byte* label, ref int v, int vMin, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragInt2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragInt2Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags); + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax) + { + bool ret = DragInt2(label, v, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin) + { + bool ret = DragInt2(label, v, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed) + { + bool ret = DragInt2(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt2( byte* label, int* v) + { + bool ret = DragInt2(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt2( byte* label, int* v, int vMin) + { + bool ret = DragInt2(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax) + { + bool ret = DragInt2(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, byte* format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, byte* format) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, byte* format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, byte* format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, int flags) + { + bool ret = DragInt2(label, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = DragInt2(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, byte* format, int flags) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, byte* format, int flags) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, byte* format, int flags) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, byte* format, int flags) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragInt3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragInt3Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags); + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax) + { + bool ret = DragInt3(label, v, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin) + { + bool ret = DragInt3(label, v, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed) + { + bool ret = DragInt3(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt3( byte* label, int* v) + { + bool ret = DragInt3(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt3( byte* label, int* v, int vMin) + { + bool ret = DragInt3(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt3( byte* label, int* v, int vMin, int vMax) + { + bool ret = DragInt3(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, byte* format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, byte* format) + { + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, byte* format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, int vMin, byte* format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, int flags) + { + bool ret = DragInt3(label, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = DragInt3(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, byte* format, int flags) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, byte* format, int flags) + { + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, byte* format, int flags) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, int vMin, byte* format, int flags) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt3( byte* label, ref int v) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, int vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, int vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragInt4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragInt4Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags); + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax) + { + bool ret = DragInt4(label, v, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin) + { + bool ret = DragInt4(label, v, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed) + { + bool ret = DragInt4(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt4( byte* label, int* v) + { + bool ret = DragInt4(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt4( byte* label, int* v, int vMin) + { + bool ret = DragInt4(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt4( byte* label, int* v, int vMin, int vMax) + { + bool ret = DragInt4(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, byte* format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, byte* format) + { + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, byte* format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, int vMin, byte* format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, int flags) + { + bool ret = DragInt4(label, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = DragInt4(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, byte* format, int flags) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, byte* format, int flags) + { + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, byte* format, int flags) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, int vMin, byte* format, int flags) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt4( byte* label, ref int v) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, int vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, int vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragIntRange2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragIntRange2Native(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, int flags); + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, int flags) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, int flags) + { + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, int flags) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.004.cs b/Hexa.NET.ImGui/Generated/Functions.004.cs new file mode 100644 index 0000000..c465cb5 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.004.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, int flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, int flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, int flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, int flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, int flags) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.005.cs b/Hexa.NET.ImGui/Generated/Functions.005.cs new file mode 100644 index 0000000..7f6cffe --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.005.cs @@ -0,0 +1,5021 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, int flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragScalar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragScalarNative(byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, int flags); + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, byte* format, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, byte* format, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, byte* format, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, byte* format, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, byte* format, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragScalarN")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragScalarNNative(byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, int flags); + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.006.cs b/Hexa.NET.ImGui/Generated/Functions.006.cs new file mode 100644 index 0000000..0fbd671 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.006.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, byte* format, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, byte* format, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, byte* format, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, byte* format, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, byte* format, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderFloatNative(byte* label, float* v, float vMin, float vMax, byte* format, int flags); + + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, byte* format, int flags) + { + byte ret = SliderFloatNative(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, byte* format) + { + byte ret = SliderFloatNative(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax) + { + bool ret = SliderFloat(label, v, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, int flags) + { + bool ret = SliderFloat(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloatNative(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloatNative(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, string format, int flags) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderFloat2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderFloat2Native(byte* label, float* v, float vMin, float vMax, byte* format, int flags); + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, byte* format, int flags) + { + byte ret = SliderFloat2Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, byte* format) + { + byte ret = SliderFloat2Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax) + { + bool ret = SliderFloat2(label, v, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, int flags) + { + bool ret = SliderFloat2(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax, byte* format, int flags) + { + fixed (Vector2* pv = &v) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax) + { + fixed (Vector2* pv = &v) + { + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax, int flags) + { + fixed (Vector2* pv = &v) + { + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat2Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat2Native(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax, string format, int flags) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax, string format) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderFloat3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderFloat3Native(byte* label, float* v, float vMin, float vMax, byte* format, int flags); + + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, byte* format, int flags) + { + byte ret = SliderFloat3Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, byte* format) + { + byte ret = SliderFloat3Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax) + { + bool ret = SliderFloat3(label, v, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, int flags) + { + bool ret = SliderFloat3(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax, byte* format, int flags) + { + fixed (Vector3* pv = &v) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax) + { + fixed (Vector3* pv = &v) + { + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax, int flags) + { + fixed (Vector3* pv = &v) + { + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat3Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat3Native(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax, string format, int flags) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax, string format) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderFloat4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderFloat4Native(byte* label, float* v, float vMin, float vMax, byte* format, int flags); + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, byte* format, int flags) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, byte* format) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax) + { + bool ret = SliderFloat4(label, v, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, int flags) + { + bool ret = SliderFloat4(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax, byte* format, int flags) + { + fixed (Vector4* pv = &v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax) + { + fixed (Vector4* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax, int flags) + { + fixed (Vector4* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat4Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat4Native(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax, string format, int flags) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax, string format) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderAngle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderAngleNative(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, int flags); + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, int flags) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, format, flags); + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (int)(0)); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (int)(0)); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad) + { + bool ret = SliderAngle(label, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (int)(0)); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, byte* format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), format, (int)(0)); + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, byte* format) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), format, (int)(0)); + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, int flags) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, int flags) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad, int flags) + { + bool ret = SliderAngle(label, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, byte* format, int flags) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), format, flags); + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, byte* format, int flags) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); + return ret != 0; + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format, int flags) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (int)(0)); + return ret; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (int)(0)); + return ret; + } + } + + public static bool SliderAngle( byte* label, ref float vRad) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (int)(0)); + return ret; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, byte* format) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, byte* format) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, int flags) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + return ret; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, int flags) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, int flags) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, byte* format, int flags) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, byte* format, int flags) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format, int flags) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, ref byte format) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool SliderAngle( byte* label, ref float vRad, ref byte format) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, ref byte format, int flags) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool SliderAngle( byte* label, ref float vRad, ref byte format, int flags) + { + fixed (float* pvRad = &vRad) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, string format, int flags) + { + fixed (float* pvRad = &vRad) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, string format) + { + fixed (float* pvRad = &vRad) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, string format) + { + fixed (float* pvRad = &vRad) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, string format) + { + fixed (float* pvRad = &vRad) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, string format, int flags) + { + fixed (float* pvRad = &vRad) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, string format, int flags) + { + fixed (float* pvRad = &vRad) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderIntNative(byte* label, int* v, int vMin, int vMax, byte* format, int flags); + + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = SliderIntNative(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = SliderIntNative(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderInt( byte* label, int* v, int vMin, int vMax) + { + bool ret = SliderInt(label, v, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = SliderInt(label, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = SliderInt(label, (int*)pv, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = SliderInt(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderIntNative(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderIntNative(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderInt2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderInt2Native(byte* label, int* v, int vMin, int vMax, byte* format, int flags); + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax) + { + bool ret = SliderInt2(label, v, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = SliderInt2(label, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt2Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt2Native(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderInt3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderInt3Native(byte* label, int* v, int vMin, int vMax, byte* format, int flags); + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = SliderInt3Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = SliderInt3Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax) + { + bool ret = SliderInt3(label, v, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = SliderInt3(label, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt3Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt3Native(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderInt4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderInt4Native(byte* label, int* v, int vMin, int vMax, byte* format, int flags); + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax) + { + bool ret = SliderInt4(label, v, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = SliderInt4(label, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt4Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt4Native(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderScalar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderScalarNative(byte* label, int dataType, void* pData, void* pMin, void* pMax, byte* format, int flags); + + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, byte* format, int flags) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, format, flags); + return ret != 0; + } + + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, byte* format) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, int flags) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderScalarN")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderScalarNNative(byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, byte* format, int flags); + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, byte* format, int flags) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, format, flags); + return ret != 0; + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, byte* format) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, int flags) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igVSliderFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte VSliderFloatNative(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, int flags); + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, int flags) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax) + { + bool ret = VSliderFloat(label, size, v, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, int flags) + { + bool ret = VSliderFloat(label, size, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = VSliderFloat(label, size, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) + { + bool ret = VSliderFloat(label, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, string format, int flags) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, string format) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igVSliderInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte VSliderIntNative(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, int flags); + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = VSliderIntNative(label, size, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format) + { + byte ret = VSliderIntNative(label, size, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax) + { + bool ret = VSliderInt(label, size, v, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, int flags) + { + bool ret = VSliderInt(label, size, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = VSliderInt(label, size, (int*)pv, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = VSliderInt(label, size, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderIntNative(label, size, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderIntNative(label, size, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, string format) + { + fixed (int* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igVSliderScalar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte VSliderScalarNative(byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, byte* format, int flags); + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, byte* format, int flags) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, format, flags); + return ret != 0; + } + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, byte* format) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, int flags) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputFloatNative(byte* label, float* v, float step, float stepFast, byte* format, int flags); + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, byte* format, int flags) + { + byte ret = InputFloatNative(label, v, step, stepFast, format, flags); + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, byte* format) + { + byte ret = InputFloatNative(label, v, step, stepFast, format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast) + { + bool ret = InputFloat(label, v, step, stepFast, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat( byte* label, float* v, float step) + { + bool ret = InputFloat(label, v, step, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat( byte* label, float* v) + { + bool ret = InputFloat(label, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat( byte* label, float* v, float step, byte* format) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, byte* format) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, int flags) + { + bool ret = InputFloat(label, v, step, stepFast, (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat( byte* label, float* v, float step, int flags) + { + bool ret = InputFloat(label, v, step, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat( byte* label, float* v, int flags) + { + bool ret = InputFloat(label, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat( byte* label, float* v, float step, byte* format, int flags) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, byte* format, int flags) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, format, flags); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, step, stepFast, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool InputFloat( byte* label, ref float v, float step) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, step, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool InputFloat( byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, int flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, step, stepFast, (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, int flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat( byte* label, ref float v, int flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, float step, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, float step, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, v, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, v, step, stepFast, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, float step, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, v, step, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, float step, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, v, step, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool InputFloat( byte* label, ref float v, float step, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool InputFloat( byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool InputFloat( byte* label, ref float v, float step, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool InputFloat( byte* label, ref float v, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, string format, int flags) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, string format) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, string format) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, string format) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, string format, int flags) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, string format, int flags) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputFloat2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputFloat2Native(byte* label, float* v, byte* format, int flags); + + public static bool InputFloat2( byte* label, float* v, byte* format, int flags) + { + byte ret = InputFloat2Native(label, v, format, flags); + return ret != 0; + } + + public static bool InputFloat2( byte* label, float* v, byte* format) + { + byte ret = InputFloat2Native(label, v, format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat2( byte* label, float* v) + { + bool ret = InputFloat2(label, v, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat2( byte* label, float* v, int flags) + { + bool ret = InputFloat2(label, v, (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat2( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloat2Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + public static bool InputFloat2( byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloat2Native(label, (float*)pv, format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat2( byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool InputFloat2( byte* label, ref float v, int flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat2( byte* label, ref Vector2 v, byte* format, int flags) + { + fixed (Vector2* pv = &v) + { + byte ret = InputFloat2Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + public static bool InputFloat2( byte* label, ref Vector2 v, byte* format) + { + fixed (Vector2* pv = &v) + { + byte ret = InputFloat2Native(label, (float*)pv, format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat2( byte* label, ref Vector2 v) + { + fixed (Vector2* pv = &v) + { + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool InputFloat2( byte* label, ref Vector2 v, int flags) + { + fixed (Vector2* pv = &v) + { + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat2( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native(label, v, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputFloat2( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native(label, v, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat2( byte* label, float* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat2Native(label, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat2( byte* label, float* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat2Native(label, v, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat2( byte* label, ref float v, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool InputFloat2( byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool InputFloat2( byte* label, ref Vector2 v, string format, int flags) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat2Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputFloat2( byte* label, ref Vector2 v, string format) + { + fixed (Vector2* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat2Native(label, (float*)pv, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputFloat3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputFloat3Native(byte* label, float* v, byte* format, int flags); + + public static bool InputFloat3( byte* label, float* v, byte* format, int flags) + { + byte ret = InputFloat3Native(label, v, format, flags); + return ret != 0; + } + + public static bool InputFloat3( byte* label, float* v, byte* format) + { + byte ret = InputFloat3Native(label, v, format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat3( byte* label, float* v) + { + bool ret = InputFloat3(label, v, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat3( byte* label, float* v, int flags) + { + bool ret = InputFloat3(label, v, (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat3( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloat3Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + public static bool InputFloat3( byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloat3Native(label, (float*)pv, format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat3( byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool InputFloat3( byte* label, ref float v, int flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat3( byte* label, ref Vector3 v, byte* format, int flags) + { + fixed (Vector3* pv = &v) + { + byte ret = InputFloat3Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + public static bool InputFloat3( byte* label, ref Vector3 v, byte* format) + { + fixed (Vector3* pv = &v) + { + byte ret = InputFloat3Native(label, (float*)pv, format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat3( byte* label, ref Vector3 v) + { + fixed (Vector3* pv = &v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool InputFloat3( byte* label, ref Vector3 v, int flags) + { + fixed (Vector3* pv = &v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat3( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(label, v, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputFloat3( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(label, v, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat3( byte* label, float* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat3Native(label, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat3( byte* label, float* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat3Native(label, v, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat3( byte* label, ref float v, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool InputFloat3( byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool InputFloat3( byte* label, ref Vector3 v, string format, int flags) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat3Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputFloat3( byte* label, ref Vector3 v, string format) + { + fixed (Vector3* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat3Native(label, (float*)pv, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputFloat4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputFloat4Native(byte* label, float* v, byte* format, int flags); + + public static bool InputFloat4( byte* label, float* v, byte* format, int flags) + { + byte ret = InputFloat4Native(label, v, format, flags); + return ret != 0; + } + + public static bool InputFloat4( byte* label, float* v, byte* format) + { + byte ret = InputFloat4Native(label, v, format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat4( byte* label, float* v) + { + bool ret = InputFloat4(label, v, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat4( byte* label, float* v, int flags) + { + bool ret = InputFloat4(label, v, (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat4( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + public static bool InputFloat4( byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat4( byte* label, ref float v) + { + fixed (float* pv = &v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; + } + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.007.cs b/Hexa.NET.ImGui/Generated/Functions.007.cs new file mode 100644 index 0000000..bd495a8 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.007.cs @@ -0,0 +1,5035 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + public static bool InputFloat4( byte* label, ref float v, int flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat4( byte* label, ref Vector4 v, byte* format, int flags) + { + fixed (Vector4* pv = &v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + public static bool InputFloat4( byte* label, ref Vector4 v, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat4( byte* label, ref Vector4 v) + { + fixed (Vector4* pv = &v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool InputFloat4( byte* label, ref Vector4 v, int flags) + { + fixed (Vector4* pv = &v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat4( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(label, v, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputFloat4( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(label, v, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat4( byte* label, float* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat4Native(label, v, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat4( byte* label, float* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat4Native(label, v, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat4( byte* label, ref float v, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool InputFloat4( byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool InputFloat4( byte* label, ref Vector4 v, string format, int flags) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat4Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputFloat4( byte* label, ref Vector4 v, string format) + { + fixed (Vector4* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat4Native(label, (float*)pv, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputIntNative(byte* label, int* v, int step, int stepFast, int flags); + + public static bool InputInt( byte* label, int* v, int step, int stepFast, int flags) + { + byte ret = InputIntNative(label, v, step, stepFast, flags); + return ret != 0; + } + + public static bool InputInt( byte* label, int* v, int step, int stepFast) + { + byte ret = InputIntNative(label, v, step, stepFast, (int)(0)); + return ret != 0; + } + + public static bool InputInt( byte* label, int* v, int step) + { + byte ret = InputIntNative(label, v, step, (int)(100), (int)(0)); + return ret != 0; + } + + public static bool InputInt( byte* label, int* v) + { + byte ret = InputIntNative(label, v, (int)(1), (int)(100), (int)(0)); + return ret != 0; + } + + public static bool InputInt( byte* label, ref int v, int step, int stepFast, int flags) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, step, stepFast, flags); + return ret != 0; + } + } + + public static bool InputInt( byte* label, ref int v, int step, int stepFast) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, step, stepFast, (int)(0)); + return ret != 0; + } + } + + public static bool InputInt( byte* label, ref int v, int step) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, step, (int)(100), (int)(0)); + return ret != 0; + } + } + + public static bool InputInt( byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, (int)(1), (int)(100), (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputInt2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputInt2Native(byte* label, int* v, int flags); + + public static bool InputInt2( byte* label, int* v, int flags) + { + byte ret = InputInt2Native(label, v, flags); + return ret != 0; + } + + public static bool InputInt2( byte* label, int* v) + { + byte ret = InputInt2Native(label, v, (int)(0)); + return ret != 0; + } + + public static bool InputInt2( byte* label, ref int v, int flags) + { + fixed (int* pv = &v) + { + byte ret = InputInt2Native(label, (int*)pv, flags); + return ret != 0; + } + } + + public static bool InputInt2( byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputInt2Native(label, (int*)pv, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputInt3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputInt3Native(byte* label, int* v, int flags); + + public static bool InputInt3( byte* label, int* v, int flags) + { + byte ret = InputInt3Native(label, v, flags); + return ret != 0; + } + + public static bool InputInt3( byte* label, int* v) + { + byte ret = InputInt3Native(label, v, (int)(0)); + return ret != 0; + } + + public static bool InputInt3( byte* label, ref int v, int flags) + { + fixed (int* pv = &v) + { + byte ret = InputInt3Native(label, (int*)pv, flags); + return ret != 0; + } + } + + public static bool InputInt3( byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputInt3Native(label, (int*)pv, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputInt4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputInt4Native(byte* label, int* v, int flags); + + public static bool InputInt4( byte* label, int* v, int flags) + { + byte ret = InputInt4Native(label, v, flags); + return ret != 0; + } + + public static bool InputInt4( byte* label, int* v) + { + byte ret = InputInt4Native(label, v, (int)(0)); + return ret != 0; + } + + public static bool InputInt4( byte* label, ref int v, int flags) + { + fixed (int* pv = &v) + { + byte ret = InputInt4Native(label, (int*)pv, flags); + return ret != 0; + } + } + + public static bool InputInt4( byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputInt4Native(label, (int*)pv, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputDouble")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputDoubleNative(byte* label, double* v, double step, double stepFast, byte* format, int flags); + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, byte* format, int flags) + { + byte ret = InputDoubleNative(label, v, step, stepFast, format, flags); + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, byte* format) + { + byte ret = InputDoubleNative(label, v, step, stepFast, format, (int)(0)); + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast) + { + bool ret = InputDouble(label, v, step, stepFast, (string)"%.6f", (int)(0)); + return ret; + } + + public static bool InputDouble( byte* label, double* v, double step) + { + bool ret = InputDouble(label, v, step, (double)(0.0), (string)"%.6f", (int)(0)); + return ret; + } + + public static bool InputDouble( byte* label, double* v) + { + bool ret = InputDouble(label, v, (double)(0.0), (double)(0.0), (string)"%.6f", (int)(0)); + return ret; + } + + public static bool InputDouble( byte* label, double* v, double step, byte* format) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), format, (int)(0)); + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, byte* format) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), format, (int)(0)); + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, int flags) + { + bool ret = InputDouble(label, v, step, stepFast, (string)"%.6f", flags); + return ret; + } + + public static bool InputDouble( byte* label, double* v, double step, int flags) + { + bool ret = InputDouble(label, v, step, (double)(0.0), (string)"%.6f", flags); + return ret; + } + + public static bool InputDouble( byte* label, double* v, int flags) + { + bool ret = InputDouble(label, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + return ret; + } + + public static bool InputDouble( byte* label, double* v, double step, byte* format, int flags) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), format, flags); + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, byte* format, int flags) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), format, flags); + return ret != 0; + } + + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, byte* format, int flags) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, format, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, byte* format) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, format, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, double stepFast) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, stepFast, (string)"%.6f", (int)(0)); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v, double step) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, (double)(0.0), (string)"%.6f", (int)(0)); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (int)(0)); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, byte* format) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), format, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, byte* format) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), format, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, int flags) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, stepFast, (string)"%.6f", flags); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, int flags) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v, int flags) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, byte* format, int flags) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), format, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, byte* format, int flags) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), format, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, double step, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, double step, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, v, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, v, step, stepFast, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, double step, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, v, step, (double)(0.0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, double step, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, v, step, (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, ref byte format, int flags) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, ref byte format) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool InputDouble( byte* label, ref double v, double step, ref byte format) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool InputDouble( byte* label, ref double v, ref byte format) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool InputDouble( byte* label, ref double v, double step, ref byte format, int flags) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool InputDouble( byte* label, ref double v, ref byte format, int flags) + { + fixed (double* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, string format, int flags) + { + fixed (double* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, string format) + { + fixed (double* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, string format) + { + fixed (double* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, string format) + { + fixed (double* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, string format, int flags) + { + fixed (double* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, string format, int flags) + { + fixed (double* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputScalar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputScalarNative(byte* label, int dataType, void* pData, void* pStep, void* pStepFast, byte* format, int flags); + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, byte* format, int flags) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, format, flags); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, byte* format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, format, (int)(0)); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, byte* format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, byte* format) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, int flags) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)(default), flags); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, int flags) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, int flags) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, byte* format, int flags) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), format, flags); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, byte* format, int flags) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputScalar( byte* label, int dataType, void* pData, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputScalar( byte* label, int dataType, void* pData, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputScalarN")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputScalarNNative(byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, int flags); + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, int flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, format, flags); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, format, (int)(0)); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, byte* format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, byte* format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, int flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, int flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, int flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, byte* format, int flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), format, flags); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, byte* format, int flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorEdit3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ColorEdit3Native(byte* label, float* col, int flags); + + public static bool ColorEdit3( byte* label, float* col, int flags) + { + byte ret = ColorEdit3Native(label, col, flags); + return ret != 0; + } + + public static bool ColorEdit3( byte* label, float* col) + { + byte ret = ColorEdit3Native(label, col, (int)(0)); + return ret != 0; + } + + public static bool ColorEdit3( byte* label, ref float col, int flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + public static bool ColorEdit3( byte* label, ref float col) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit3Native(label, (float*)pcol, (int)(0)); + return ret != 0; + } + } + + public static bool ColorEdit3( byte* label, ref Vector3 col, int flags) + { + fixed (Vector3* pcol = &col) + { + byte ret = ColorEdit3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + public static bool ColorEdit3( byte* label, ref Vector3 col) + { + fixed (Vector3* pcol = &col) + { + byte ret = ColorEdit3Native(label, (float*)pcol, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorEdit4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ColorEdit4Native(byte* label, float* col, int flags); + + public static bool ColorEdit4( byte* label, float* col, int flags) + { + byte ret = ColorEdit4Native(label, col, flags); + return ret != 0; + } + + public static bool ColorEdit4( byte* label, float* col) + { + byte ret = ColorEdit4Native(label, col, (int)(0)); + return ret != 0; + } + + public static bool ColorEdit4( byte* label, ref float col, int flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit4Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + public static bool ColorEdit4( byte* label, ref float col) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit4Native(label, (float*)pcol, (int)(0)); + return ret != 0; + } + } + + public static bool ColorEdit4( byte* label, ref Vector4 col, int flags) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorEdit4Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + public static bool ColorEdit4( byte* label, ref Vector4 col) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorEdit4Native(label, (float*)pcol, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorPicker3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ColorPicker3Native(byte* label, float* col, int flags); + + public static bool ColorPicker3( byte* label, float* col, int flags) + { + byte ret = ColorPicker3Native(label, col, flags); + return ret != 0; + } + + public static bool ColorPicker3( byte* label, float* col) + { + byte ret = ColorPicker3Native(label, col, (int)(0)); + return ret != 0; + } + + public static bool ColorPicker3( byte* label, ref float col, int flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + public static bool ColorPicker3( byte* label, ref float col) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, (int)(0)); + return ret != 0; + } + } + + public static bool ColorPicker3( byte* label, ref Vector3 col, int flags) + { + fixed (Vector3* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + public static bool ColorPicker3( byte* label, ref Vector3 col) + { + fixed (Vector3* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorPicker4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ColorPicker4Native(byte* label, float* col, int flags, float* refCol); + + public static bool ColorPicker4( byte* label, float* col, int flags, float* refCol) + { + byte ret = ColorPicker4Native(label, col, flags, refCol); + return ret != 0; + } + + public static bool ColorPicker4( byte* label, float* col, int flags) + { + byte ret = ColorPicker4Native(label, col, flags, (float*)(default)); + return ret != 0; + } + + public static bool ColorPicker4( byte* label, float* col) + { + byte ret = ColorPicker4Native(label, col, (int)(0), (float*)(default)); + return ret != 0; + } + + public static bool ColorPicker4( byte* label, float* col, float* refCol) + { + byte ret = ColorPicker4Native(label, col, (int)(0), refCol); + return ret != 0; + } + + public static bool ColorPicker4( byte* label, ref float col, int flags, float* refCol) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref float col, int flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref float col) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), (float*)(default)); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref float col, float* refCol) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), refCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref Vector4 col, int flags, float* refCol) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref Vector4 col, int flags) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref Vector4 col) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), (float*)(default)); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref Vector4 col, float* refCol) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), refCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, float* col, int flags, ref float refCol) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, col, flags, (float*)prefCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, float* col, ref float refCol) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, col, (int)(0), (float*)prefCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref float col, int flags, ref float refCol) + { + fixed (float* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); + return ret != 0; + } + } + } + + public static bool ColorPicker4( byte* label, ref float col, ref float refCol) + { + fixed (float* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), (float*)prefCol); + return ret != 0; + } + } + } + + public static bool ColorPicker4( byte* label, ref Vector4 col, int flags, ref float refCol) + { + fixed (Vector4* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); + return ret != 0; + } + } + } + + public static bool ColorPicker4( byte* label, ref Vector4 col, ref float refCol) + { + fixed (Vector4* pcol = &col) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), (float*)prefCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ColorButtonNative(byte* descId, Vector4 col, int flags, Vector2 size); + + public static bool ColorButton( byte* descId, Vector4 col, int flags, Vector2 size) + { + byte ret = ColorButtonNative(descId, col, flags, size); + return ret != 0; + } + + public static bool ColorButton( byte* descId, Vector4 col, int flags) + { + byte ret = ColorButtonNative(descId, col, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + public static bool ColorButton( byte* descId, Vector4 col) + { + byte ret = ColorButtonNative(descId, col, (int)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + public static bool ColorButton( byte* descId, Vector4 col, Vector2 size) + { + byte ret = ColorButtonNative(descId, col, (int)(0), size); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetColorEditOptions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetColorEditOptionsNative(int flags); + + public static void SetColorEditOptions( int flags) + { + SetColorEditOptionsNative(flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNode_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeNative(byte* label); + + public static bool TreeNode( byte* label) + { + byte ret = TreeNodeNative(label); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNode_StrStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeNative(byte* strId, byte* fmt); + + public static bool TreeNode( byte* strId, byte* fmt) + { + byte ret = TreeNodeNative(strId, fmt); + return ret != 0; + } + + public static bool TreeNode( byte* strId, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeNative(strId, (byte*)pfmt); + return ret != 0; + } + } + + public static bool TreeNode( byte* strId, string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeNative(strId, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNode_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeNative(void* ptrId, byte* fmt); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeV_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeVNative(byte* strId, byte* fmt, nuint args); + + public static bool TreeNodeV( byte* strId, byte* fmt, nuint args) + { + byte ret = TreeNodeVNative(strId, fmt, args); + return ret != 0; + } + + public static bool TreeNodeV( byte* strId, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeVNative(strId, (byte*)pfmt, args); + return ret != 0; + } + } + + public static bool TreeNodeV( byte* strId, string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeVNative(strId, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeV_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeVNative(void* ptrId, byte* fmt, nuint args); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeEx_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeExNative(byte* label, int flags); + + public static bool TreeNodeEx( byte* label, int flags) + { + byte ret = TreeNodeExNative(label, flags); + return ret != 0; + } + + public static bool TreeNodeEx( byte* label) + { + byte ret = TreeNodeExNative(label, (int)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeEx_StrStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeExNative(byte* strId, int flags, byte* fmt); + + public static bool TreeNodeEx( byte* strId, int flags, byte* fmt) + { + byte ret = TreeNodeExNative(strId, flags, fmt); + return ret != 0; + } + + public static bool TreeNodeEx( byte* strId, int flags, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExNative(strId, flags, (byte*)pfmt); + return ret != 0; + } + } + + public static bool TreeNodeEx( byte* strId, int flags, string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeExNative(strId, flags, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeEx_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeExNative(void* ptrId, int flags, byte* fmt); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeExV_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeExVNative(byte* strId, int flags, byte* fmt, nuint args); + + public static bool TreeNodeExV( byte* strId, int flags, byte* fmt, nuint args) + { + byte ret = TreeNodeExVNative(strId, flags, fmt, args); + return ret != 0; + } + + public static bool TreeNodeExV( byte* strId, int flags, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeExVNative(strId, flags, (byte*)pfmt, args); + return ret != 0; + } + } + + public static bool TreeNodeExV( byte* strId, int flags, string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeExVNative(strId, flags, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeExV_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeExVNative(void* ptrId, int flags, byte* fmt, nuint args); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreePush_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TreePushNative(byte* strId); + + public static void TreePush( byte* strId) + { + TreePushNative(strId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreePush_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TreePushNative(void* ptrId); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreePop")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TreePopNative(); + + public static void TreePop() + { + TreePopNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTreeNodeToLabelSpacing")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetTreeNodeToLabelSpacingNative(); + + public static float GetTreeNodeToLabelSpacing() + { + float ret = GetTreeNodeToLabelSpacingNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCollapsingHeader_TreeNodeFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CollapsingHeaderNative(byte* label, int flags); + + public static bool CollapsingHeader( byte* label, int flags) + { + byte ret = CollapsingHeaderNative(label, flags); + return ret != 0; + } + + public static bool CollapsingHeader( byte* label) + { + byte ret = CollapsingHeaderNative(label, (int)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCollapsingHeader_BoolPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CollapsingHeaderNative(byte* label, byte* pVisible, int flags); + + public static bool CollapsingHeader( byte* label, byte* pVisible, int flags) + { + byte ret = CollapsingHeaderNative(label, pVisible, flags); + return ret != 0; + } + + public static bool CollapsingHeader( byte* label, byte* pVisible) + { + byte ret = CollapsingHeaderNative(label, pVisible, (int)(0)); + return ret != 0; + } + + public static bool CollapsingHeader( byte* label, ref byte pVisible, int flags) + { + fixed (byte* ppVisible = &pVisible) + { + byte ret = CollapsingHeaderNative(label, (byte*)ppVisible, flags); + return ret != 0; + } + } + + public static bool CollapsingHeader( byte* label, ref byte pVisible) + { + fixed (byte* ppVisible = &pVisible) + { + byte ret = CollapsingHeaderNative(label, (byte*)ppVisible, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextItemOpen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextItemOpenNative(byte isOpen, int cond); + + public static void SetNextItemOpen( bool isOpen, int cond) + { + SetNextItemOpenNative(isOpen ? (byte)1 : (byte)0, cond); + } + + public static void SetNextItemOpen( bool isOpen) + { + SetNextItemOpenNative(isOpen ? (byte)1 : (byte)0, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSelectable_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SelectableNative(byte* label, byte selected, int flags, Vector2 size); + + public static bool Selectable( byte* label, bool selected, int flags, Vector2 size) + { + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, flags, size); + return ret != 0; + } + + public static bool Selectable( byte* label, bool selected, int flags) + { + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + public static bool Selectable( byte* label, bool selected) + { + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, (int)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + public static bool Selectable( byte* label) + { + byte ret = SelectableNative(label, (byte)(0), (int)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + public static bool Selectable( byte* label, int flags) + { + byte ret = SelectableNative(label, (byte)(0), flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + public static bool Selectable( byte* label, bool selected, Vector2 size) + { + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, (int)(0), size); + return ret != 0; + } + + public static bool Selectable( byte* label, Vector2 size) + { + byte ret = SelectableNative(label, (byte)(0), (int)(0), size); + return ret != 0; + } + + public static bool Selectable( byte* label, int flags, Vector2 size) + { + byte ret = SelectableNative(label, (byte)(0), flags, size); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSelectable_BoolPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SelectableNative(byte* label, byte* pSelected, int flags, Vector2 size); + + public static bool Selectable( byte* label, byte* pSelected, int flags, Vector2 size) + { + byte ret = SelectableNative(label, pSelected, flags, size); + return ret != 0; + } + + public static bool Selectable( byte* label, byte* pSelected, int flags) + { + byte ret = SelectableNative(label, pSelected, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + public static bool Selectable( byte* label, byte* pSelected) + { + byte ret = SelectableNative(label, pSelected, (int)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + public static bool Selectable( byte* label, byte* pSelected, Vector2 size) + { + byte ret = SelectableNative(label, pSelected, (int)(0), size); + return ret != 0; + } + + public static bool Selectable( byte* label, ref byte pSelected, int flags, Vector2 size) + { + fixed (byte* ppSelected = &pSelected) + { + byte ret = SelectableNative(label, (byte*)ppSelected, flags, size); + return ret != 0; + } + } + + public static bool Selectable( byte* label, ref byte pSelected, int flags) + { + fixed (byte* ppSelected = &pSelected) + { + byte ret = SelectableNative(label, (byte*)ppSelected, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + public static bool Selectable( byte* label, ref byte pSelected) + { + fixed (byte* ppSelected = &pSelected) + { + byte ret = SelectableNative(label, (byte*)ppSelected, (int)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + } + + public static bool Selectable( byte* label, ref byte pSelected, Vector2 size) + { + fixed (byte* ppSelected = &pSelected) + { + byte ret = SelectableNative(label, (byte*)ppSelected, (int)(0), size); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginListBox")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginListBoxNative(byte* label, Vector2 size); + + public static bool BeginListBox( byte* label, Vector2 size) + { + byte ret = BeginListBoxNative(label, size); + return ret != 0; + } + + public static bool BeginListBox( byte* label) + { + byte ret = BeginListBoxNative(label, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndListBox")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndListBoxNative(); + + public static void EndListBox() + { + EndListBoxNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igListBox_Str_arr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ListBoxNative(byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems); + + public static bool ListBox( byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems) + { + byte ret = ListBoxNative(label, currentItem, items, itemsCount, heightInItems); + return ret != 0; + } + + public static bool ListBox( byte* label, int* currentItem, byte** items, int itemsCount) + { + byte ret = ListBoxNative(label, currentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + + public static bool ListBox( byte* label, ref int currentItem, byte** items, int itemsCount, int heightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(label, (int*)pcurrentItem, items, itemsCount, heightInItems); + return ret != 0; + } + } + + public static bool ListBox( byte* label, ref int currentItem, byte** items, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(label, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + } + + public static bool ListBox( byte* label, int* currentItem, string[] items, int itemsCount, int heightInItems) + { + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArraySize0 > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); + } + else + { + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(label, currentItem, pStrArray0, itemsCount, heightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + + public static bool ListBox( byte* label, int* currentItem, string[] items, int itemsCount) + { + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArraySize0 > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); + } + else + { + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(label, currentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + + public static bool ListBox( byte* label, ref int currentItem, string[] items, int itemsCount, int heightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArraySize0 > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); + } + else + { + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, heightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + } + + public static bool ListBox( byte* label, ref int currentItem, string[] items, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) + { + if (pStrArraySize0 > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); + } + else + { + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; + } + } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igListBox_FnStrPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ListBoxNative(byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int heightInItems); + + public static bool ListBox( byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int heightInItems) + { + byte ret = ListBoxNative(label, currentItem, getter, userData, itemsCount, heightInItems); + return ret != 0; + } + + public static bool ListBox( byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount) + { + byte ret = ListBoxNative(label, currentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; + } + + public static bool ListBox( byte* label, ref int currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int heightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(label, (int*)pcurrentItem, getter, userData, itemsCount, heightInItems); + return ret != 0; + } + } + + public static bool ListBox( byte* label, ref int currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(label, (int*)pcurrentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; + } + } + + public static bool ListBox( byte* label, int* currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount, int heightInItems) + { + byte ret = ListBoxNative(label, currentItem, getter, userData, itemsCount, heightInItems); + return ret != 0; + } + + public static bool ListBox( byte* label, int* currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount) + { + byte ret = ListBoxNative(label, currentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; + } + + public static bool ListBox( byte* label, ref int currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount, int heightInItems) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(label, (int*)pcurrentItem, getter, userData, itemsCount, heightInItems); + return ret != 0; + } + } + + public static bool ListBox( byte* label, ref int currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ListBoxNative(label, (int*)pcurrentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPlotLines_FloatPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PlotLinesNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride); + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.008.cs b/Hexa.NET.ImGui/Generated/Functions.008.cs new file mode 100644 index 0000000..3647839 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.008.cs @@ -0,0 +1,5030 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPlotLines_FnFloatPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PlotLinesNative(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize); + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPlotHistogram_FloatPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PlotHistogramNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride); + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPlotHistogram_FnFloatPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PlotHistogramNative(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize); + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igValue_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ValueNative(byte* prefix, byte b); + + public static void Value( byte* prefix, bool b) + { + ValueNative(prefix, b ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igValue_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ValueNative(byte* prefix, int v); + + public static void Value( byte* prefix, int v) + { + ValueNative(prefix, v); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igValue_Uint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ValueNative(byte* prefix, uint v); + + public static void Value( byte* prefix, uint v) + { + ValueNative(prefix, v); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igValue_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ValueNative(byte* prefix, float v, byte* floatFormat); + + public static void Value( byte* prefix, float v, byte* floatFormat) + { + ValueNative(prefix, v, floatFormat); + } + + public static void Value( byte* prefix, float v) + { + ValueNative(prefix, v, (byte*)(default)); + } + + public static void Value( byte* prefix, float v, ref byte floatFormat) + { + fixed (byte* pfloatFormat = &floatFormat) + { + ValueNative(prefix, v, (byte*)pfloatFormat); + } + } + + public static void Value( byte* prefix, float v, string floatFormat) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (floatFormat != null) + { + pStrSize0 = Utils.GetByteCountUTF8(floatFormat); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(floatFormat, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ValueNative(prefix, v, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginMenuBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginMenuBarNative(); + + public static bool BeginMenuBar() + { + byte ret = BeginMenuBarNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndMenuBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndMenuBarNative(); + + public static void EndMenuBar() + { + EndMenuBarNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginMainMenuBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginMainMenuBarNative(); + + public static bool BeginMainMenuBar() + { + byte ret = BeginMainMenuBarNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndMainMenuBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndMainMenuBarNative(); + + public static void EndMainMenuBar() + { + EndMainMenuBarNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginMenu")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginMenuNative(byte* label, byte enabled); + + public static bool BeginMenu( byte* label, bool enabled) + { + byte ret = BeginMenuNative(label, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool BeginMenu( byte* label) + { + byte ret = BeginMenuNative(label, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndMenu")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndMenuNative(); + + public static void EndMenu() + { + EndMenuNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMenuItem_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte MenuItemNative(byte* label, byte* shortcut, byte selected, byte enabled); + + public static bool MenuItem( byte* label, byte* shortcut, bool selected, bool enabled) + { + byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool MenuItem( byte* label, byte* shortcut, bool selected) + { + byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + + public static bool MenuItem( byte* label, byte* shortcut) + { + byte ret = MenuItemNative(label, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + + public static bool MenuItem( byte* label) + { + byte ret = MenuItemNative(label, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + + public static bool MenuItem( byte* label, bool selected) + { + byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + + public static bool MenuItem( byte* label, bool selected, bool enabled) + { + byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool MenuItem( byte* label, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool MenuItem( byte* label, ref byte shortcut, bool selected) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + } + + public static bool MenuItem( byte* label, ref byte shortcut) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + } + + public static bool MenuItem( byte* label, string shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemNative(label, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool MenuItem( byte* label, string shortcut, bool selected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemNative(label, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool MenuItem( byte* label, string shortcut) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemNative(label, pStr0, (byte)(0), (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMenuItem_BoolPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte MenuItemNative(byte* label, byte* shortcut, byte* pSelected, byte enabled); + + public static bool MenuItem( byte* label, byte* shortcut, byte* pSelected, bool enabled) + { + byte ret = MenuItemNative(label, shortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool MenuItem( byte* label, byte* shortcut, byte* pSelected) + { + byte ret = MenuItemNative(label, shortcut, pSelected, (byte)(1)); + return ret != 0; + } + + public static bool MenuItem( byte* label, ref byte shortcut, byte* pSelected, bool enabled) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool MenuItem( byte* label, ref byte shortcut, byte* pSelected) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, (byte)(1)); + return ret != 0; + } + } + + public static bool MenuItem( byte* label, string shortcut, byte* pSelected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemNative(label, pStr0, pSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool MenuItem( byte* label, string shortcut, byte* pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemNative(label, pStr0, pSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool MenuItem( byte* label, byte* shortcut, ref byte pSelected, bool enabled) + { + fixed (byte* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, shortcut, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool MenuItem( byte* label, byte* shortcut, ref byte pSelected) + { + fixed (byte* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, shortcut, (byte*)ppSelected, (byte)(1)); + return ret != 0; + } + } + + public static bool MenuItem( byte* label, ref byte shortcut, ref byte pSelected, bool enabled) + { + fixed (byte* pshortcut = &shortcut) + { + fixed (byte* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + public static bool MenuItem( byte* label, ref byte shortcut, ref byte pSelected) + { + fixed (byte* pshortcut = &shortcut) + { + fixed (byte* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, (byte*)ppSelected, (byte)(1)); + return ret != 0; + } + } + } + + public static bool MenuItem( byte* label, string shortcut, ref byte pSelected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, pStr0, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool MenuItem( byte* label, string shortcut, ref byte pSelected) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ppSelected = &pSelected) + { + byte ret = MenuItemNative(label, pStr0, (byte*)ppSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTooltipNative(); + + public static bool BeginTooltip() + { + byte ret = BeginTooltipNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndTooltipNative(); + + public static void EndTooltip() + { + EndTooltipNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetTooltipNative(byte* fmt); + + public static void SetTooltip( byte* fmt) + { + SetTooltipNative(fmt); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetTooltipV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetTooltipVNative(byte* fmt, nuint args); + + public static void SetTooltipV( byte* fmt, nuint args) + { + SetTooltipVNative(fmt, args); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginItemTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginItemTooltipNative(); + + public static bool BeginItemTooltip() + { + byte ret = BeginItemTooltipNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetItemTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetItemTooltipNative(byte* fmt); + + public static void SetItemTooltip( byte* fmt) + { + SetItemTooltipNative(fmt); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetItemTooltipV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetItemTooltipVNative(byte* fmt, nuint args); + + public static void SetItemTooltipV( byte* fmt, nuint args) + { + SetItemTooltipVNative(fmt, args); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupNative(byte* strId, int flags); + + public static bool BeginPopup( byte* strId, int flags) + { + byte ret = BeginPopupNative(strId, flags); + return ret != 0; + } + + public static bool BeginPopup( byte* strId) + { + byte ret = BeginPopupNative(strId, (int)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginPopupModal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupModalNative(byte* name, byte* pOpen, int flags); + + public static bool BeginPopupModal( byte* name, byte* pOpen, int flags) + { + byte ret = BeginPopupModalNative(name, pOpen, flags); + return ret != 0; + } + + public static bool BeginPopupModal( byte* name, byte* pOpen) + { + byte ret = BeginPopupModalNative(name, pOpen, (int)(0)); + return ret != 0; + } + + public static bool BeginPopupModal( byte* name) + { + byte ret = BeginPopupModalNative(name, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool BeginPopupModal( byte* name, int flags) + { + byte ret = BeginPopupModalNative(name, (byte*)(default), flags); + return ret != 0; + } + + public static bool BeginPopupModal( byte* name, ref byte pOpen, int flags) + { + fixed (byte* ppOpen = &pOpen) + { + byte ret = BeginPopupModalNative(name, (byte*)ppOpen, flags); + return ret != 0; + } + } + + public static bool BeginPopupModal( byte* name, ref byte pOpen) + { + fixed (byte* ppOpen = &pOpen) + { + byte ret = BeginPopupModalNative(name, (byte*)ppOpen, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndPopupNative(); + + public static void EndPopup() + { + EndPopupNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igOpenPopup_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void OpenPopupNative(byte* strId, int popupFlags); + + public static void OpenPopup( byte* strId, int popupFlags) + { + OpenPopupNative(strId, popupFlags); + } + + public static void OpenPopup( byte* strId) + { + OpenPopupNative(strId, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igOpenPopup_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void OpenPopupNative(uint id, int popupFlags); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igOpenPopupOnItemClick")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void OpenPopupOnItemClickNative(byte* strId, int popupFlags); + + public static void OpenPopupOnItemClick( byte* strId, int popupFlags) + { + OpenPopupOnItemClickNative(strId, popupFlags); + } + + public static void OpenPopupOnItemClick( byte* strId) + { + OpenPopupOnItemClickNative(strId, (int)(1)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCloseCurrentPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CloseCurrentPopupNative(); + + public static void CloseCurrentPopup() + { + CloseCurrentPopupNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginPopupContextItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupContextItemNative(byte* strId, int popupFlags); + + public static bool BeginPopupContextItem( byte* strId, int popupFlags) + { + byte ret = BeginPopupContextItemNative(strId, popupFlags); + return ret != 0; + } + + public static bool BeginPopupContextItem( byte* strId) + { + byte ret = BeginPopupContextItemNative(strId, (int)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginPopupContextWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupContextWindowNative(byte* strId, int popupFlags); + + public static bool BeginPopupContextWindow( byte* strId, int popupFlags) + { + byte ret = BeginPopupContextWindowNative(strId, popupFlags); + return ret != 0; + } + + public static bool BeginPopupContextWindow( byte* strId) + { + byte ret = BeginPopupContextWindowNative(strId, (int)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginPopupContextVoid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupContextVoidNative(byte* strId, int popupFlags); + + public static bool BeginPopupContextVoid( byte* strId, int popupFlags) + { + byte ret = BeginPopupContextVoidNative(strId, popupFlags); + return ret != 0; + } + + public static bool BeginPopupContextVoid( byte* strId) + { + byte ret = BeginPopupContextVoidNative(strId, (int)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsPopupOpen_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsPopupOpenNative(byte* strId, int flags); + + public static bool IsPopupOpen( byte* strId, int flags) + { + byte ret = IsPopupOpenNative(strId, flags); + return ret != 0; + } + + public static bool IsPopupOpen( byte* strId) + { + byte ret = IsPopupOpenNative(strId, (int)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTableNative(byte* strId, int column, int flags, Vector2 outerSize, float innerWidth); + + public static bool BeginTable( byte* strId, int column, int flags, Vector2 outerSize, float innerWidth) + { + byte ret = BeginTableNative(strId, column, flags, outerSize, innerWidth); + return ret != 0; + } + + public static bool BeginTable( byte* strId, int column, int flags, Vector2 outerSize) + { + byte ret = BeginTableNative(strId, column, flags, outerSize, (float)(0.0f)); + return ret != 0; + } + + public static bool BeginTable( byte* strId, int column, int flags) + { + byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + return ret != 0; + } + + public static bool BeginTable( byte* strId, int column) + { + byte ret = BeginTableNative(strId, column, (int)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + return ret != 0; + } + + public static bool BeginTable( byte* strId, int column, Vector2 outerSize) + { + byte ret = BeginTableNative(strId, column, (int)(0), outerSize, (float)(0.0f)); + return ret != 0; + } + + public static bool BeginTable( byte* strId, int column, int flags, float innerWidth) + { + byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + return ret != 0; + } + + public static bool BeginTable( byte* strId, int column, float innerWidth) + { + byte ret = BeginTableNative(strId, column, (int)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + return ret != 0; + } + + public static bool BeginTable( byte* strId, int column, Vector2 outerSize, float innerWidth) + { + byte ret = BeginTableNative(strId, column, (int)(0), outerSize, innerWidth); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndTableNative(); + + public static void EndTable() + { + EndTableNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableNextRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableNextRowNative(int rowFlags, float minRowHeight); + + public static void TableNextRow( int rowFlags, float minRowHeight) + { + TableNextRowNative(rowFlags, minRowHeight); + } + + public static void TableNextRow( int rowFlags) + { + TableNextRowNative(rowFlags, (float)(0.0f)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableNextColumn")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TableNextColumnNative(); + + public static bool TableNextColumn() + { + byte ret = TableNextColumnNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TableSetColumnIndexNative(int columnN); + + public static bool TableSetColumnIndex( int columnN) + { + byte ret = TableSetColumnIndexNative(columnN); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetupColumn")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetupColumnNative(byte* label, int flags, float initWidthOrWeight, uint userId); + + public static void TableSetupColumn( byte* label, int flags, float initWidthOrWeight, uint userId) + { + TableSetupColumnNative(label, flags, initWidthOrWeight, userId); + } + + public static void TableSetupColumn( byte* label, int flags, float initWidthOrWeight) + { + TableSetupColumnNative(label, flags, initWidthOrWeight, (uint)(0)); + } + + public static void TableSetupColumn( byte* label, int flags) + { + TableSetupColumnNative(label, flags, (float)(0.0f), (uint)(0)); + } + + public static void TableSetupColumn( byte* label) + { + TableSetupColumnNative(label, (int)(0), (float)(0.0f), (uint)(0)); + } + + public static void TableSetupColumn( byte* label, float initWidthOrWeight) + { + TableSetupColumnNative(label, (int)(0), initWidthOrWeight, (uint)(0)); + } + + public static void TableSetupColumn( byte* label, int flags, uint userId) + { + TableSetupColumnNative(label, flags, (float)(0.0f), userId); + } + + public static void TableSetupColumn( byte* label, uint userId) + { + TableSetupColumnNative(label, (int)(0), (float)(0.0f), userId); + } + + public static void TableSetupColumn( byte* label, float initWidthOrWeight, uint userId) + { + TableSetupColumnNative(label, (int)(0), initWidthOrWeight, userId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetupScrollFreeze")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetupScrollFreezeNative(int cols, int rows); + + public static void TableSetupScrollFreeze( int cols, int rows) + { + TableSetupScrollFreezeNative(cols, rows); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableHeader")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableHeaderNative(byte* label); + + public static void TableHeader( byte* label) + { + TableHeaderNative(label); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableHeadersRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableHeadersRowNative(); + + public static void TableHeadersRow() + { + TableHeadersRowNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableAngledHeadersRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableAngledHeadersRowNative(); + + public static void TableAngledHeadersRow() + { + TableAngledHeadersRowNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetSortSpecs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSortSpecs* TableGetSortSpecsNative(); + + public static ImGuiTableSortSpecs* TableGetSortSpecs() + { + ImGuiTableSortSpecs* ret = TableGetSortSpecsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetColumnCountNative(); + + public static int TableGetColumnCount() + { + int ret = TableGetColumnCountNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetColumnIndexNative(); + + public static int TableGetColumnIndex() + { + int ret = TableGetColumnIndexNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetRowIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetRowIndexNative(); + + public static int TableGetRowIndex() + { + int ret = TableGetRowIndexNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnName_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* TableGetColumnNameNative(int columnN); + + public static byte* TableGetColumnName( int columnN) + { + byte* ret = TableGetColumnNameNative(columnN); + return ret; + } + + public static string TableGetColumnNameS() + { + string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((int)(-1))); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetColumnFlagsNative(int columnN); + + public static int TableGetColumnFlags( int columnN) + { + int ret = TableGetColumnFlagsNative(columnN); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnEnabled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetColumnEnabledNative(int columnN, byte v); + + public static void TableSetColumnEnabled( int columnN, bool v) + { + TableSetColumnEnabledNative(columnN, v ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetBgColor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetBgColorNative(int target, uint color, int columnN); + + public static void TableSetBgColor( int target, uint color, int columnN) + { + TableSetBgColorNative(target, color, columnN); + } + + public static void TableSetBgColor( int target, uint color) + { + TableSetBgColorNative(target, color, (int)(-1)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColumnsNative(int count, byte* id, byte border); + + public static void Columns( int count, byte* id, bool border) + { + ColumnsNative(count, id, border ? (byte)1 : (byte)0); + } + + public static void Columns( int count, byte* id) + { + ColumnsNative(count, id, (byte)(1)); + } + + public static void Columns( int count) + { + ColumnsNative(count, (byte*)(default), (byte)(1)); + } + + public static void Columns( int count, bool border) + { + ColumnsNative(count, (byte*)(default), border ? (byte)1 : (byte)0); + } + + public static void Columns( int count, ref byte id, bool border) + { + fixed (byte* pid = &id) + { + ColumnsNative(count, (byte*)pid, border ? (byte)1 : (byte)0); + } + } + + public static void Columns( int count, ref byte id) + { + fixed (byte* pid = &id) + { + ColumnsNative(count, (byte*)pid, (byte)(1)); + } + } + + public static void Columns( int count, string id, bool border) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (id != null) + { + pStrSize0 = Utils.GetByteCountUTF8(id); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColumnsNative(count, pStr0, border ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void Columns( int count, string id) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (id != null) + { + pStrSize0 = Utils.GetByteCountUTF8(id); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ColumnsNative(count, pStr0, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNextColumn")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NextColumnNative(); + + public static void NextColumn() + { + NextColumnNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetColumnIndexNative(); + + public static int GetColumnIndex() + { + int ret = GetColumnIndexNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetColumnWidthNative(int columnIndex); + + public static float GetColumnWidth( int columnIndex) + { + float ret = GetColumnWidthNative(columnIndex); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetColumnWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetColumnWidthNative(int columnIndex, float width); + + public static void SetColumnWidth( int columnIndex, float width) + { + SetColumnWidthNative(columnIndex, width); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetColumnOffsetNative(int columnIndex); + + public static float GetColumnOffset( int columnIndex) + { + float ret = GetColumnOffsetNative(columnIndex); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetColumnOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetColumnOffsetNative(int columnIndex, float offsetX); + + public static void SetColumnOffset( int columnIndex, float offsetX) + { + SetColumnOffsetNative(columnIndex, offsetX); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnsCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetColumnsCountNative(); + + public static int GetColumnsCount() + { + int ret = GetColumnsCountNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTabBarNative(byte* strId, int flags); + + public static bool BeginTabBar( byte* strId, int flags) + { + byte ret = BeginTabBarNative(strId, flags); + return ret != 0; + } + + public static bool BeginTabBar( byte* strId) + { + byte ret = BeginTabBarNative(strId, (int)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndTabBarNative(); + + public static void EndTabBar() + { + EndTabBarNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTabItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTabItemNative(byte* label, byte* pOpen, int flags); + + public static bool BeginTabItem( byte* label, byte* pOpen, int flags) + { + byte ret = BeginTabItemNative(label, pOpen, flags); + return ret != 0; + } + + public static bool BeginTabItem( byte* label, byte* pOpen) + { + byte ret = BeginTabItemNative(label, pOpen, (int)(0)); + return ret != 0; + } + + public static bool BeginTabItem( byte* label) + { + byte ret = BeginTabItemNative(label, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool BeginTabItem( byte* label, int flags) + { + byte ret = BeginTabItemNative(label, (byte*)(default), flags); + return ret != 0; + } + + public static bool BeginTabItem( byte* label, ref byte pOpen, int flags) + { + fixed (byte* ppOpen = &pOpen) + { + byte ret = BeginTabItemNative(label, (byte*)ppOpen, flags); + return ret != 0; + } + } + + public static bool BeginTabItem( byte* label, ref byte pOpen) + { + fixed (byte* ppOpen = &pOpen) + { + byte ret = BeginTabItemNative(label, (byte*)ppOpen, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndTabItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndTabItemNative(); + + public static void EndTabItem() + { + EndTabItemNative(); + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.009.cs b/Hexa.NET.ImGui/Generated/Functions.009.cs new file mode 100644 index 0000000..c4e6781 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.009.cs @@ -0,0 +1,5027 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabItemButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TabItemButtonNative(byte* label, int flags); + + public static bool TabItemButton( byte* label, int flags) + { + byte ret = TabItemButtonNative(label, flags); + return ret != 0; + } + + public static bool TabItemButton( byte* label) + { + byte ret = TabItemButtonNative(label, (int)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetTabItemClosed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetTabItemClosedNative(byte* tabOrDockedWindowLabel); + + public static void SetTabItemClosed( byte* tabOrDockedWindowLabel) + { + SetTabItemClosedNative(tabOrDockedWindowLabel); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockSpace")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockSpaceNative(uint id, Vector2 size, int flags, ImGuiWindowClass* windowClass); + + public static uint DockSpace( uint id, Vector2 size, int flags, ImGuiWindowClass* windowClass) + { + uint ret = DockSpaceNative(id, size, flags, windowClass); + return ret; + } + + public static uint DockSpace( uint id, Vector2 size, int flags) + { + uint ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)(default)); + return ret; + } + + public static uint DockSpace( uint id, Vector2 size) + { + uint ret = DockSpaceNative(id, size, (int)(0), (ImGuiWindowClass*)(default)); + return ret; + } + + public static uint DockSpace( uint id) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (int)(0), (ImGuiWindowClass*)(default)); + return ret; + } + + public static uint DockSpace( uint id, int flags) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)(default)); + return ret; + } + + public static uint DockSpace( uint id, Vector2 size, ImGuiWindowClass* windowClass) + { + uint ret = DockSpaceNative(id, size, (int)(0), windowClass); + return ret; + } + + public static uint DockSpace( uint id, ImGuiWindowClass* windowClass) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (int)(0), windowClass); + return ret; + } + + public static uint DockSpace( uint id, int flags, ImGuiWindowClass* windowClass) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, windowClass); + return ret; + } + + public static uint DockSpace( uint id, Vector2 size, int flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + public static uint DockSpace( uint id, Vector2 size, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceNative(id, size, (int)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + public static uint DockSpace( uint id, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (int)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + public static uint DockSpace( uint id, int flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockSpaceOverViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockSpaceOverViewportNative(ImGuiViewport* viewport, int flags, ImGuiWindowClass* windowClass); + + public static uint DockSpaceOverViewport( ImGuiViewport* viewport, int flags, ImGuiWindowClass* windowClass) + { + uint ret = DockSpaceOverViewportNative(viewport, flags, windowClass); + return ret; + } + + public static uint DockSpaceOverViewport( ImGuiViewport* viewport, int flags) + { + uint ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)(default)); + return ret; + } + + public static uint DockSpaceOverViewport( ImGuiViewport* viewport) + { + uint ret = DockSpaceOverViewportNative(viewport, (int)(0), (ImGuiWindowClass*)(default)); + return ret; + } + + public static uint DockSpaceOverViewport( ImGuiViewport* viewport, ImGuiWindowClass* windowClass) + { + uint ret = DockSpaceOverViewportNative(viewport, (int)(0), windowClass); + return ret; + } + + public static uint DockSpaceOverViewport( ImGuiViewport* viewport, int flags, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + public static uint DockSpaceOverViewport( ImGuiViewport* viewport, ref ImGuiWindowClass windowClass) + { + fixed (ImGuiWindowClass* pwindowClass = &windowClass) + { + uint ret = DockSpaceOverViewportNative(viewport, (int)(0), (ImGuiWindowClass*)pwindowClass); + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowDockID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowDockIDNative(uint dockId, int cond); + + public static void SetNextWindowDockID( uint dockId, int cond) + { + SetNextWindowDockIDNative(dockId, cond); + } + + public static void SetNextWindowDockID( uint dockId) + { + SetNextWindowDockIDNative(dockId, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowClass")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowClassNative(ImGuiWindowClass* windowClass); + + public static void SetNextWindowClass( ImGuiWindowClass* windowClass) + { + SetNextWindowClassNative(windowClass); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowDockID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetWindowDockIDNative(); + + public static uint GetWindowDockID() + { + uint ret = GetWindowDockIDNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowDocked")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowDockedNative(); + + public static bool IsWindowDocked() + { + byte ret = IsWindowDockedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogToTTY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogToTTYNative(int autoOpenDepth); + + public static void LogToTTY( int autoOpenDepth) + { + LogToTTYNative(autoOpenDepth); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogToFile")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogToFileNative(int autoOpenDepth, byte* filename); + + public static void LogToFile( int autoOpenDepth, byte* filename) + { + LogToFileNative(autoOpenDepth, filename); + } + + public static void LogToFile( int autoOpenDepth) + { + LogToFileNative(autoOpenDepth, (byte*)(default)); + } + + public static void LogToFile( int autoOpenDepth, ref byte filename) + { + fixed (byte* pfilename = &filename) + { + LogToFileNative(autoOpenDepth, (byte*)pfilename); + } + } + + public static void LogToFile( int autoOpenDepth, string filename) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogToFileNative(autoOpenDepth, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogToClipboard")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogToClipboardNative(int autoOpenDepth); + + public static void LogToClipboard( int autoOpenDepth) + { + LogToClipboardNative(autoOpenDepth); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogFinish")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogFinishNative(); + + public static void LogFinish() + { + LogFinishNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogButtons")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogButtonsNative(); + + public static void LogButtons() + { + LogButtonsNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogTextV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogTextVNative(byte* fmt, nuint args); + + public static void LogTextV( byte* fmt, nuint args) + { + LogTextVNative(fmt, args); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDragDropSource")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginDragDropSourceNative(int flags); + + public static bool BeginDragDropSource( int flags) + { + byte ret = BeginDragDropSourceNative(flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetDragDropPayload")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SetDragDropPayloadNative(byte* type, void* data, ulong sz, int cond); + + public static bool SetDragDropPayload( byte* type, void* data, ulong sz, int cond) + { + byte ret = SetDragDropPayloadNative(type, data, sz, cond); + return ret != 0; + } + + public static bool SetDragDropPayload( byte* type, void* data, ulong sz) + { + byte ret = SetDragDropPayloadNative(type, data, sz, (int)(0)); + return ret != 0; + } + + public static bool SetDragDropPayload( byte* type, void* data, nuint sz, int cond) + { + byte ret = SetDragDropPayloadNative(type, data, sz, cond); + return ret != 0; + } + + public static bool SetDragDropPayload( byte* type, void* data, nuint sz) + { + byte ret = SetDragDropPayloadNative(type, data, sz, (int)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndDragDropSource")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndDragDropSourceNative(); + + public static void EndDragDropSource() + { + EndDragDropSourceNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDragDropTarget")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginDragDropTargetNative(); + + public static bool BeginDragDropTarget() + { + byte ret = BeginDragDropTargetNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igAcceptDragDropPayload")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPayload* AcceptDragDropPayloadNative(byte* type, int flags); + + public static ImGuiPayload* AcceptDragDropPayload( byte* type, int flags) + { + ImGuiPayload* ret = AcceptDragDropPayloadNative(type, flags); + return ret; + } + + public static ImGuiPayload* AcceptDragDropPayload( byte* type) + { + ImGuiPayload* ret = AcceptDragDropPayloadNative(type, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndDragDropTarget")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndDragDropTargetNative(); + + public static void EndDragDropTarget() + { + EndDragDropTargetNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetDragDropPayload")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPayload* GetDragDropPayloadNative(); + + public static ImGuiPayload* GetDragDropPayload() + { + ImGuiPayload* ret = GetDragDropPayloadNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDisabled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginDisabledNative(byte disabled); + + public static void BeginDisabled( bool disabled) + { + BeginDisabledNative(disabled ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndDisabled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndDisabledNative(); + + public static void EndDisabled() + { + EndDisabledNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushClipRectNative(Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect); + + public static void PushClipRect( Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + PushClipRectNative(clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopClipRectNative(); + + public static void PopClipRect() + { + PopClipRectNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetItemDefaultFocus")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetItemDefaultFocusNative(); + + public static void SetItemDefaultFocus() + { + SetItemDefaultFocusNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetKeyboardFocusHere")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetKeyboardFocusHereNative(int offset); + + public static void SetKeyboardFocusHere( int offset) + { + SetKeyboardFocusHereNative(offset); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextItemAllowOverlap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextItemAllowOverlapNative(); + + public static void SetNextItemAllowOverlap() + { + SetNextItemAllowOverlapNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemHovered")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemHoveredNative(int flags); + + public static bool IsItemHovered( int flags) + { + byte ret = IsItemHoveredNative(flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemActive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemActiveNative(); + + public static bool IsItemActive() + { + byte ret = IsItemActiveNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemFocused")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemFocusedNative(); + + public static bool IsItemFocused() + { + byte ret = IsItemFocusedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemClicked")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemClickedNative(int mouseButton); + + public static bool IsItemClicked( int mouseButton) + { + byte ret = IsItemClickedNative(mouseButton); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemVisible")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemVisibleNative(); + + public static bool IsItemVisible() + { + byte ret = IsItemVisibleNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemEdited")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemEditedNative(); + + public static bool IsItemEdited() + { + byte ret = IsItemEditedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemActivated")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemActivatedNative(); + + public static bool IsItemActivated() + { + byte ret = IsItemActivatedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemDeactivated")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemDeactivatedNative(); + + public static bool IsItemDeactivated() + { + byte ret = IsItemDeactivatedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemDeactivatedAfterEdit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemDeactivatedAfterEditNative(); + + public static bool IsItemDeactivatedAfterEdit() + { + byte ret = IsItemDeactivatedAfterEditNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemToggledOpen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemToggledOpenNative(); + + public static bool IsItemToggledOpen() + { + byte ret = IsItemToggledOpenNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsAnyItemHovered")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsAnyItemHoveredNative(); + + public static bool IsAnyItemHovered() + { + byte ret = IsAnyItemHoveredNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsAnyItemActive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsAnyItemActiveNative(); + + public static bool IsAnyItemActive() + { + byte ret = IsAnyItemActiveNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsAnyItemFocused")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsAnyItemFocusedNative(); + + public static bool IsAnyItemFocused() + { + byte ret = IsAnyItemFocusedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetItemID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetItemIDNative(); + + public static uint GetItemID() + { + uint ret = GetItemIDNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetItemRectMin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetItemRectMinNative(Vector2* pOut); + + public static void GetItemRectMin( Vector2* pOut) + { + GetItemRectMinNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetItemRectMax")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetItemRectMaxNative(Vector2* pOut); + + public static void GetItemRectMax( Vector2* pOut) + { + GetItemRectMaxNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetItemRectSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetItemRectSizeNative(Vector2* pOut); + + public static void GetItemRectSize( Vector2* pOut) + { + GetItemRectSizeNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetMainViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewport* GetMainViewportNative(); + + public static ImGuiViewport* GetMainViewport() + { + ImGuiViewport* ret = GetMainViewportNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetBackgroundDrawList_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetBackgroundDrawListNative(); + + public static ImDrawList* GetBackgroundDrawList() + { + ImDrawList* ret = GetBackgroundDrawListNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetForegroundDrawList_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetForegroundDrawListNative(); + + public static ImDrawList* GetForegroundDrawList() + { + ImDrawList* ret = GetForegroundDrawListNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetBackgroundDrawList_ViewportPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetBackgroundDrawListNative(ImGuiViewport* viewport); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetForegroundDrawList_ViewportPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetForegroundDrawListNative(ImGuiViewport* viewport); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsRectVisible_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsRectVisibleNative(Vector2 size); + + public static bool IsRectVisible( Vector2 size) + { + byte ret = IsRectVisibleNative(size); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsRectVisible_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsRectVisibleNative(Vector2 rectMin, Vector2 rectMax); + + public static bool IsRectVisible( Vector2 rectMin, Vector2 rectMax) + { + byte ret = IsRectVisibleNative(rectMin, rectMax); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTime")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double GetTimeNative(); + + public static double GetTime() + { + double ret = GetTimeNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFrameCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetFrameCountNative(); + + public static int GetFrameCount() + { + int ret = GetFrameCountNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetDrawListSharedData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawListSharedData* GetDrawListSharedDataNative(); + + public static ImDrawListSharedData* GetDrawListSharedData() + { + ImDrawListSharedData* ret = GetDrawListSharedDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetStyleColorName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetStyleColorNameNative(int idx); + + public static byte* GetStyleColorName( int idx) + { + byte* ret = GetStyleColorNameNative(idx); + return ret; + } + + public static string GetStyleColorNameS( int idx) + { + string ret = Utils.DecodeStringUTF8(GetStyleColorNameNative(idx)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetStateStorage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetStateStorageNative(ImGuiStorage* storage); + + public static void SetStateStorage( ImGuiStorage* storage) + { + SetStateStorageNative(storage); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetStateStorage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStorage* GetStateStorageNative(); + + public static ImGuiStorage* GetStateStorage() + { + ImGuiStorage* ret = GetStateStorageNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginChildFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginChildFrameNative(uint id, Vector2 size, int flags); + + public static bool BeginChildFrame( uint id, Vector2 size, int flags) + { + byte ret = BeginChildFrameNative(id, size, flags); + return ret != 0; + } + + public static bool BeginChildFrame( uint id, Vector2 size) + { + byte ret = BeginChildFrameNative(id, size, (int)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndChildFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndChildFrameNative(); + + public static void EndChildFrame() + { + EndChildFrameNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcTextSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CalcTextSizeNative(Vector2* pOut, byte* text, byte* textEnd, byte hideTextAfterDoubleHash, float wrapWidth); + + public static void CalcTextSize( Vector2* pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + + public static void CalcTextSize( Vector2* pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash) + { + CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + + public static void CalcTextSize( Vector2* pOut, byte* text, byte* textEnd) + { + CalcTextSizeNative(pOut, text, textEnd, (byte)(0), (float)(-1.0f)); + } + + public static void CalcTextSize( Vector2* pOut, byte* text) + { + CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), (float)(-1.0f)); + } + + public static void CalcTextSize( Vector2* pOut, byte* text, bool hideTextAfterDoubleHash) + { + CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + + public static void CalcTextSize( Vector2* pOut, byte* text, byte* textEnd, float wrapWidth) + { + CalcTextSizeNative(pOut, text, textEnd, (byte)(0), wrapWidth); + } + + public static void CalcTextSize( Vector2* pOut, byte* text, float wrapWidth) + { + CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), wrapWidth); + } + + public static void CalcTextSize( Vector2* pOut, byte* text, bool hideTextAfterDoubleHash, float wrapWidth) + { + CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, float wrapWidth) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + + public static void CalcTextSize( Vector2* pOut, string text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, string text, byte* textEnd, bool hideTextAfterDoubleHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, textEnd, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, string text, bool hideTextAfterDoubleHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, string text, byte* textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, textEnd, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, string text, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, string text, bool hideTextAfterDoubleHash, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + + public static void CalcTextSize( Vector2* pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + + public static void CalcTextSize( Vector2* pOut, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + + public static void CalcTextSize( Vector2* pOut, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + + public static void CalcTextSize( Vector2* pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, text, pStr0, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, byte* text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, text, pStr0, (byte)(0), wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); + } + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); + } + } + } + + public static void CalcTextSize( Vector2* pOut, string text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeNative(pOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, string text, string textEnd, bool hideTextAfterDoubleHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeNative(pOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, string text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeNative(pOut, pStr0, pStr1, (byte)(0), (float)(-1.0f)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSize( Vector2* pOut, string text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeNative(pOut, pStr0, pStr1, (byte)(0), wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorConvertU32ToFloat4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorConvertU32ToFloat4Native(Vector4* pOut, uint input); + + public static void ColorConvertU32ToFloat4( Vector4* pOut, uint input) + { + ColorConvertU32ToFloat4Native(pOut, input); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorConvertFloat4ToU32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ColorConvertFloat4ToU32Native(Vector4 input); + + public static uint ColorConvertFloat4ToU32( Vector4 input) + { + uint ret = ColorConvertFloat4ToU32Native(input); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorConvertRGBtoHSV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorConvertRGBtoHSVNative(float r, float g, float b, float* outH, float* outS, float* outV); + + public static void ColorConvertRGBtoHSV( float r, float g, float b, float* outH, float* outS, float* outV) + { + ColorConvertRGBtoHSVNative(r, g, b, outH, outS, outV); + } + + public static void ColorConvertRGBtoHSV( float r, float g, float b, ref float outH, float* outS, float* outV) + { + fixed (float* poutH = &outH) + { + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, outS, outV); + } + } + + public static void ColorConvertRGBtoHSV( float r, float g, float b, float* outH, ref float outS, float* outV) + { + fixed (float* poutS = &outS) + { + ColorConvertRGBtoHSVNative(r, g, b, outH, (float*)poutS, outV); + } + } + + public static void ColorConvertRGBtoHSV( float r, float g, float b, ref float outH, ref float outS, float* outV) + { + fixed (float* poutH = &outH) + { + fixed (float* poutS = &outS) + { + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, (float*)poutS, outV); + } + } + } + + public static void ColorConvertRGBtoHSV( float r, float g, float b, float* outH, float* outS, ref float outV) + { + fixed (float* poutV = &outV) + { + ColorConvertRGBtoHSVNative(r, g, b, outH, outS, (float*)poutV); + } + } + + public static void ColorConvertRGBtoHSV( float r, float g, float b, ref float outH, float* outS, ref float outV) + { + fixed (float* poutH = &outH) + { + fixed (float* poutV = &outV) + { + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, outS, (float*)poutV); + } + } + } + + public static void ColorConvertRGBtoHSV( float r, float g, float b, float* outH, ref float outS, ref float outV) + { + fixed (float* poutS = &outS) + { + fixed (float* poutV = &outV) + { + ColorConvertRGBtoHSVNative(r, g, b, outH, (float*)poutS, (float*)poutV); + } + } + } + + public static void ColorConvertRGBtoHSV( float r, float g, float b, ref float outH, ref float outS, ref float outV) + { + fixed (float* poutH = &outH) + { + fixed (float* poutS = &outS) + { + fixed (float* poutV = &outV) + { + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, (float*)poutS, (float*)poutV); + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorConvertHSVtoRGB")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorConvertHSVtoRGBNative(float h, float s, float v, float* outR, float* outG, float* outB); + + public static void ColorConvertHSVtoRGB( float h, float s, float v, float* outR, float* outG, float* outB) + { + ColorConvertHSVtoRGBNative(h, s, v, outR, outG, outB); + } + + public static void ColorConvertHSVtoRGB( float h, float s, float v, ref float outR, float* outG, float* outB) + { + fixed (float* poutR = &outR) + { + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, outG, outB); + } + } + + public static void ColorConvertHSVtoRGB( float h, float s, float v, float* outR, ref float outG, float* outB) + { + fixed (float* poutG = &outG) + { + ColorConvertHSVtoRGBNative(h, s, v, outR, (float*)poutG, outB); + } + } + + public static void ColorConvertHSVtoRGB( float h, float s, float v, ref float outR, ref float outG, float* outB) + { + fixed (float* poutR = &outR) + { + fixed (float* poutG = &outG) + { + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, (float*)poutG, outB); + } + } + } + + public static void ColorConvertHSVtoRGB( float h, float s, float v, float* outR, float* outG, ref float outB) + { + fixed (float* poutB = &outB) + { + ColorConvertHSVtoRGBNative(h, s, v, outR, outG, (float*)poutB); + } + } + + public static void ColorConvertHSVtoRGB( float h, float s, float v, ref float outR, float* outG, ref float outB) + { + fixed (float* poutR = &outR) + { + fixed (float* poutB = &outB) + { + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, outG, (float*)poutB); + } + } + } + + public static void ColorConvertHSVtoRGB( float h, float s, float v, float* outR, ref float outG, ref float outB) + { + fixed (float* poutG = &outG) + { + fixed (float* poutB = &outB) + { + ColorConvertHSVtoRGBNative(h, s, v, outR, (float*)poutG, (float*)poutB); + } + } + } + + public static void ColorConvertHSVtoRGB( float h, float s, float v, ref float outR, ref float outG, ref float outB) + { + fixed (float* poutR = &outR) + { + fixed (float* poutG = &outG) + { + fixed (float* poutB = &outB) + { + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, (float*)poutG, (float*)poutB); + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyDown_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyDownNative(ImGuiKey key); + + public static bool IsKeyDown( ImGuiKey key) + { + byte ret = IsKeyDownNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyPressed_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyPressedNative(ImGuiKey key, byte repeat); + + public static bool IsKeyPressed( ImGuiKey key, bool repeat) + { + byte ret = IsKeyPressedNative(key, repeat ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool IsKeyPressed( ImGuiKey key) + { + byte ret = IsKeyPressedNative(key, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyReleased_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyReleasedNative(ImGuiKey key); + + public static bool IsKeyReleased( ImGuiKey key) + { + byte ret = IsKeyReleasedNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyPressedAmount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetKeyPressedAmountNative(ImGuiKey key, float repeatDelay, float rate); + + public static int GetKeyPressedAmount( ImGuiKey key, float repeatDelay, float rate) + { + int ret = GetKeyPressedAmountNative(key, repeatDelay, rate); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetKeyNameNative(ImGuiKey key); + + public static byte* GetKeyName( ImGuiKey key) + { + byte* ret = GetKeyNameNative(key); + return ret; + } + + public static string GetKeyNameS( ImGuiKey key) + { + string ret = Utils.DecodeStringUTF8(GetKeyNameNative(key)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextFrameWantCaptureKeyboard")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextFrameWantCaptureKeyboardNative(byte wantCaptureKeyboard); + + public static void SetNextFrameWantCaptureKeyboard( bool wantCaptureKeyboard) + { + SetNextFrameWantCaptureKeyboardNative(wantCaptureKeyboard ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseDown_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseDownNative(int button); + + public static bool IsMouseDown( int button) + { + byte ret = IsMouseDownNative(button); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseClicked_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseClickedNative(int button, byte repeat); + + public static bool IsMouseClicked( int button, bool repeat) + { + byte ret = IsMouseClickedNative(button, repeat ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool IsMouseClicked( int button) + { + byte ret = IsMouseClickedNative(button, (byte)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseReleased_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseReleasedNative(int button); + + public static bool IsMouseReleased( int button) + { + byte ret = IsMouseReleasedNative(button); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseDoubleClicked")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseDoubleClickedNative(int button); + + public static bool IsMouseDoubleClicked( int button) + { + byte ret = IsMouseDoubleClickedNative(button); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetMouseClickedCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetMouseClickedCountNative(int button); + + public static int GetMouseClickedCount( int button) + { + int ret = GetMouseClickedCountNative(button); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseHoveringRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseHoveringRectNative(Vector2 rMin, Vector2 rMax, byte clip); + + public static bool IsMouseHoveringRect( Vector2 rMin, Vector2 rMax, bool clip) + { + byte ret = IsMouseHoveringRectNative(rMin, rMax, clip ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool IsMouseHoveringRect( Vector2 rMin, Vector2 rMax) + { + byte ret = IsMouseHoveringRectNative(rMin, rMax, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMousePosValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMousePosValidNative(Vector2* mousePos); + + public static bool IsMousePosValid( Vector2* mousePos) + { + byte ret = IsMousePosValidNative(mousePos); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsAnyMouseDown")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsAnyMouseDownNative(); + + public static bool IsAnyMouseDown() + { + byte ret = IsAnyMouseDownNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetMousePos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetMousePosNative(Vector2* pOut); + + public static void GetMousePos( Vector2* pOut) + { + GetMousePosNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetMousePosOnOpeningCurrentPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetMousePosOnOpeningCurrentPopupNative(Vector2* pOut); + + public static void GetMousePosOnOpeningCurrentPopup( Vector2* pOut) + { + GetMousePosOnOpeningCurrentPopupNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseDragging")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseDraggingNative(int button, float lockThreshold); + + public static bool IsMouseDragging( int button, float lockThreshold) + { + byte ret = IsMouseDraggingNative(button, lockThreshold); + return ret != 0; + } + + public static bool IsMouseDragging( int button) + { + byte ret = IsMouseDraggingNative(button, (float)(-1.0f)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetMouseDragDelta")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetMouseDragDeltaNative(Vector2* pOut, int button, float lockThreshold); + + public static void GetMouseDragDelta( Vector2* pOut, int button, float lockThreshold) + { + GetMouseDragDeltaNative(pOut, button, lockThreshold); + } + + public static void GetMouseDragDelta( Vector2* pOut, int button) + { + GetMouseDragDeltaNative(pOut, button, (float)(-1.0f)); + } + + public static void GetMouseDragDelta( Vector2* pOut) + { + GetMouseDragDeltaNative(pOut, (int)(0), (float)(-1.0f)); + } + + public static void GetMouseDragDelta( Vector2* pOut, float lockThreshold) + { + GetMouseDragDeltaNative(pOut, (int)(0), lockThreshold); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igResetMouseDragDelta")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ResetMouseDragDeltaNative(int button); + + public static void ResetMouseDragDelta( int button) + { + ResetMouseDragDeltaNative(button); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetMouseCursor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetMouseCursorNative(); + + public static int GetMouseCursor() + { + int ret = GetMouseCursorNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetMouseCursor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetMouseCursorNative(int cursorType); + + public static void SetMouseCursor( int cursorType) + { + SetMouseCursorNative(cursorType); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextFrameWantCaptureMouse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextFrameWantCaptureMouseNative(byte wantCaptureMouse); + + public static void SetNextFrameWantCaptureMouse( bool wantCaptureMouse) + { + SetNextFrameWantCaptureMouseNative(wantCaptureMouse ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetClipboardText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetClipboardTextNative(); + + public static byte* GetClipboardText() + { + byte* ret = GetClipboardTextNative(); + return ret; + } + + public static string GetClipboardTextS() + { + string ret = Utils.DecodeStringUTF8(GetClipboardTextNative()); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetClipboardText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetClipboardTextNative(byte* text); + + public static void SetClipboardText( byte* text) + { + SetClipboardTextNative(text); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLoadIniSettingsFromDisk")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LoadIniSettingsFromDiskNative(byte* iniFilename); + + public static void LoadIniSettingsFromDisk( byte* iniFilename) + { + LoadIniSettingsFromDiskNative(iniFilename); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLoadIniSettingsFromMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LoadIniSettingsFromMemoryNative(byte* iniData, ulong iniSize); + + public static void LoadIniSettingsFromMemory( byte* iniData, ulong iniSize) + { + LoadIniSettingsFromMemoryNative(iniData, iniSize); + } + + public static void LoadIniSettingsFromMemory( byte* iniData) + { + LoadIniSettingsFromMemoryNative(iniData, (ulong)(0)); + } + + public static void LoadIniSettingsFromMemory( byte* iniData, nuint iniSize) + { + LoadIniSettingsFromMemoryNative(iniData, iniSize); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSaveIniSettingsToDisk")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SaveIniSettingsToDiskNative(byte* iniFilename); + + public static void SaveIniSettingsToDisk( byte* iniFilename) + { + SaveIniSettingsToDiskNative(iniFilename); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSaveIniSettingsToMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SaveIniSettingsToMemoryNative(ulong* outIniSize); + + public static byte* SaveIniSettingsToMemory( ulong* outIniSize) + { + byte* ret = SaveIniSettingsToMemoryNative(outIniSize); + return ret; + } + + public static string SaveIniSettingsToMemoryS() + { + string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative((ulong*)(default))); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugTextEncoding")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugTextEncodingNative(byte* text); + + public static void DebugTextEncoding( byte* text) + { + DebugTextEncodingNative(text); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugCheckVersionAndDataLayout")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DebugCheckVersionAndDataLayoutNative(byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx); + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetAllocatorFunctions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetAllocatorFunctionsNative(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData); + + public static void SetAllocatorFunctions( ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) + { + SetAllocatorFunctionsNative(allocFunc, freeFunc, userData); + } + + public static void SetAllocatorFunctions( ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc) + { + SetAllocatorFunctionsNative(allocFunc, freeFunc, (void*)(default)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetAllocatorFunctions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetAllocatorFunctionsNative(ImGuiMemAllocFunc pAllocFunc, ImGuiMemFreeFunc pFreeFunc, void** pUserData); + + public static void GetAllocatorFunctions( ImGuiMemAllocFunc pAllocFunc, ImGuiMemFreeFunc pFreeFunc, void** pUserData) + { + GetAllocatorFunctionsNative(pAllocFunc, pFreeFunc, pUserData); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMemAlloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* MemAllocNative(ulong size); + + public static void* MemAlloc( ulong size) + { + void* ret = MemAllocNative(size); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMemFree")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void MemFreeNative(void* ptr); + + public static void MemFree( void* ptr) + { + MemFreeNative(ptr); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetPlatformIO")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPlatformIO* GetPlatformIONative(); + + public static ImGuiPlatformIO* GetPlatformIO() + { + ImGuiPlatformIO* ret = GetPlatformIONative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdatePlatformWindows")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdatePlatformWindowsNative(); + + public static void UpdatePlatformWindows() + { + UpdatePlatformWindowsNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderPlatformWindowsDefault")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderPlatformWindowsDefaultNative(void* platformRenderArg, void* rendererRenderArg); + + public static void RenderPlatformWindowsDefault( void* platformRenderArg, void* rendererRenderArg) + { + RenderPlatformWindowsDefaultNative(platformRenderArg, rendererRenderArg); + } + + public static void RenderPlatformWindowsDefault( void* platformRenderArg) + { + RenderPlatformWindowsDefaultNative(platformRenderArg, (void*)(default)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDestroyPlatformWindows")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyPlatformWindowsNative(); + + public static void DestroyPlatformWindows() + { + DestroyPlatformWindowsNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindViewportByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewport* FindViewportByIDNative(uint id); + + public static ImGuiViewport* FindViewportByID( uint id) + { + ImGuiViewport* ret = FindViewportByIDNative(id); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindViewportByPlatformHandle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewport* FindViewportByPlatformHandleNative(void* platformHandle); + + public static ImGuiViewport* FindViewportByPlatformHandle( void* platformHandle) + { + ImGuiViewport* ret = FindViewportByPlatformHandleNative(platformHandle); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyle_ImGuiStyle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStyle* ImGuiStyleNative(); + + public static ImGuiStyle* ImGuiStyle() + { + ImGuiStyle* ret = ImGuiStyleNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyle_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiStyle* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyle_ScaleAllSizes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScaleAllSizesNative(ImGuiStyle* self, float scaleFactor); + + public static void ScaleAllSizes( ImGuiStyle* self, float scaleFactor) + { + ScaleAllSizesNative(self, scaleFactor); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddKeyEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddKeyEventNative(ImGuiIO* self, ImGuiKey key, byte down); + + public static void AddKeyEvent( ImGuiIO* self, ImGuiKey key, bool down) + { + AddKeyEventNative(self, key, down ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddKeyAnalogEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddKeyAnalogEventNative(ImGuiIO* self, ImGuiKey key, byte down, float v); + + public static void AddKeyAnalogEvent( ImGuiIO* self, ImGuiKey key, bool down, float v) + { + AddKeyAnalogEventNative(self, key, down ? (byte)1 : (byte)0, v); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddMousePosEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddMousePosEventNative(ImGuiIO* self, float x, float y); + + public static void AddMousePosEvent( ImGuiIO* self, float x, float y) + { + AddMousePosEventNative(self, x, y); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddMouseButtonEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddMouseButtonEventNative(ImGuiIO* self, int button, byte down); + + public static void AddMouseButtonEvent( ImGuiIO* self, int button, bool down) + { + AddMouseButtonEventNative(self, button, down ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddMouseWheelEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddMouseWheelEventNative(ImGuiIO* self, float wheelX, float wheelY); + + public static void AddMouseWheelEvent( ImGuiIO* self, float wheelX, float wheelY) + { + AddMouseWheelEventNative(self, wheelX, wheelY); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddMouseSourceEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddMouseSourceEventNative(ImGuiIO* self, ImGuiMouseSource source); + + public static void AddMouseSourceEvent( ImGuiIO* self, ImGuiMouseSource source) + { + AddMouseSourceEventNative(self, source); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddMouseViewportEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddMouseViewportEventNative(ImGuiIO* self, uint id); + + public static void AddMouseViewportEvent( ImGuiIO* self, uint id) + { + AddMouseViewportEventNative(self, id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddFocusEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddFocusEventNative(ImGuiIO* self, byte focused); + + public static void AddFocusEvent( ImGuiIO* self, bool focused) + { + AddFocusEventNative(self, focused ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddInputCharacter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddInputCharacterNative(ImGuiIO* self, uint c); + + public static void AddInputCharacter( ImGuiIO* self, uint c) + { + AddInputCharacterNative(self, c); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddInputCharacterUTF16")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddInputCharacterUTF16Native(ImGuiIO* self, ushort c); + + public static void AddInputCharacterUTF16( ImGuiIO* self, ushort c) + { + AddInputCharacterUTF16Native(self, c); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddInputCharactersUTF8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddInputCharactersUTF8Native(ImGuiIO* self, byte* str); + + public static void AddInputCharactersUTF8( ImGuiIO* self, byte* str) + { + AddInputCharactersUTF8Native(self, str); + } + + public static void AddInputCharactersUTF8( ImGuiIO* self, ref byte str) + { + fixed (byte* pstr = &str) + { + AddInputCharactersUTF8Native(self, (byte*)pstr); + } + } + + public static void AddInputCharactersUTF8( ImGuiIO* self, string str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddInputCharactersUTF8Native(self, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_SetKeyEventNativeData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetKeyEventNativeDataNative(ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex); + + public static void SetKeyEventNativeData( ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + } + + public static void SetKeyEventNativeData( ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode) + { + SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, (int)(-1)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_SetAppAcceptingEvents")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetAppAcceptingEventsNative(ImGuiIO* self, byte acceptingEvents); + + public static void SetAppAcceptingEvents( ImGuiIO* self, bool acceptingEvents) + { + SetAppAcceptingEventsNative(self, acceptingEvents ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_ClearEventsQueue")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearEventsQueueNative(ImGuiIO* self); + + public static void ClearEventsQueue( ImGuiIO* self) + { + ClearEventsQueueNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_ClearInputKeys")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearInputKeysNative(ImGuiIO* self); + + public static void ClearInputKeys( ImGuiIO* self) + { + ClearInputKeysNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_ImGuiIO")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiIO* ImGuiIONative(); + + public static ImGuiIO* ImGuiIO() + { + ImGuiIO* ret = ImGuiIONative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiIO* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiInputTextCallbackData* ImGuiInputTextCallbackDataNative(); + + public static ImGuiInputTextCallbackData* ImGuiInputTextCallbackData() + { + ImGuiInputTextCallbackData* ret = ImGuiInputTextCallbackDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiInputTextCallbackData* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_DeleteChars")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DeleteCharsNative(ImGuiInputTextCallbackData* self, int pos, int bytesCount); + + public static void DeleteChars( ImGuiInputTextCallbackData* self, int pos, int bytesCount) + { + DeleteCharsNative(self, pos, bytesCount); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_InsertChars")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void InsertCharsNative(ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd); + + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd) + { + InsertCharsNative(self, pos, text, textEnd); + } + + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, byte* text) + { + InsertCharsNative(self, pos, text, (byte*)(default)); + } + + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + InsertCharsNative(self, pos, (byte*)ptext, textEnd); + } + } + + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, ref byte text) + { + fixed (byte* ptext = &text) + { + InsertCharsNative(self, pos, (byte*)ptext, (byte*)(default)); + } + } + + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative(self, pos, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative(self, pos, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative(self, pos, text, (byte*)ptextEnd); + } + } + + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative(self, pos, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, string text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + InsertCharsNative(self, pos, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_SelectAll")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SelectAllNative(ImGuiInputTextCallbackData* self); + + public static void SelectAll( ImGuiInputTextCallbackData* self) + { + SelectAllNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_ClearSelection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearSelectionNative(ImGuiInputTextCallbackData* self); + + public static void ClearSelection( ImGuiInputTextCallbackData* self) + { + ClearSelectionNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_HasSelection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte HasSelectionNative(ImGuiInputTextCallbackData* self); + + public static bool HasSelection( ImGuiInputTextCallbackData* self) + { + byte ret = HasSelectionNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindowClass_ImGuiWindowClass")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindowClass* ImGuiWindowClassNative(); + + public static ImGuiWindowClass* ImGuiWindowClass() + { + ImGuiWindowClass* ret = ImGuiWindowClassNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindowClass_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiWindowClass* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_ImGuiPayload")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPayload* ImGuiPayloadNative(); + + public static ImGuiPayload* ImGuiPayload() + { + ImGuiPayload* ret = ImGuiPayloadNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiPayload* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImGuiPayload* self); + + public static void Clear( ImGuiPayload* self) + { + ClearNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_IsDataType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsDataTypeNative(ImGuiPayload* self, byte* type); + + public static bool IsDataType( ImGuiPayload* self, byte* type) + { + byte ret = IsDataTypeNative(self, type); + return ret != 0; + } + + public static bool IsDataType( ImGuiPayload* self, ref byte type) + { + fixed (byte* ptype = &type) + { + byte ret = IsDataTypeNative(self, (byte*)ptype); + return ret != 0; + } + } + + public static bool IsDataType( ImGuiPayload* self, string type) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (type != null) + { + pStrSize0 = Utils.GetByteCountUTF8(type); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = IsDataTypeNative(self, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_IsPreview")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsPreviewNative(ImGuiPayload* self); + + public static bool IsPreview( ImGuiPayload* self) + { + byte ret = IsPreviewNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_IsDelivery")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsDeliveryNative(ImGuiPayload* self); + + public static bool IsDelivery( ImGuiPayload* self) + { + byte ret = IsDeliveryNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecsNative(); + + public static ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs() + { + ImGuiTableColumnSortSpecs* ret = ImGuiTableColumnSortSpecsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumnSortSpecs_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiTableColumnSortSpecs* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableSortSpecs_ImGuiTableSortSpecs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSortSpecs* ImGuiTableSortSpecsNative(); + + public static ImGuiTableSortSpecs* ImGuiTableSortSpecs() + { + ImGuiTableSortSpecs* ret = ImGuiTableSortSpecsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableSortSpecs_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiTableSortSpecs* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiOnceUponAFrame* ImGuiOnceUponAFrameNative(); + + public static ImGuiOnceUponAFrame* ImGuiOnceUponAFrame() + { + ImGuiOnceUponAFrame* ret = ImGuiOnceUponAFrameNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiOnceUponAFrame_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiOnceUponAFrame* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_ImGuiTextFilter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTextFilter* ImGuiTextFilterNative(byte* defaultFilter); + + public static ImGuiTextFilter* ImGuiTextFilter( byte* defaultFilter) + { + ImGuiTextFilter* ret = ImGuiTextFilterNative(defaultFilter); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiTextFilter* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_Draw")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DrawNative(ImGuiTextFilter* self, byte* label, float width); + + public static bool Draw( ImGuiTextFilter* self, byte* label, float width) + { + byte ret = DrawNative(self, label, width); + return ret != 0; + } + + public static bool Draw( ImGuiTextFilter* self, byte* label) + { + byte ret = DrawNative(self, label, (float)(0.0f)); + return ret != 0; + } + + public static bool Draw( ImGuiTextFilter* self) + { + bool ret = Draw(self, (string)"Filter(inc,-exc)", (float)(0.0f)); + return ret; + } + + public static bool Draw( ImGuiTextFilter* self, float width) + { + bool ret = Draw(self, (string)"Filter(inc,-exc)", width); + return ret; + } + + public static bool Draw( ImGuiTextFilter* self, ref byte label, float width) + { + fixed (byte* plabel = &label) + { + byte ret = DrawNative(self, (byte*)plabel, width); + return ret != 0; + } + } + + public static bool Draw( ImGuiTextFilter* self, ref byte label) + { + fixed (byte* plabel = &label) + { + byte ret = DrawNative(self, (byte*)plabel, (float)(0.0f)); + return ret != 0; + } + } + + public static bool Draw( ImGuiTextFilter* self, string label, float width) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DrawNative(self, pStr0, width); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool Draw( ImGuiTextFilter* self, string label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DrawNative(self, pStr0, (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_PassFilter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PassFilterNative(ImGuiTextFilter* self, byte* text, byte* textEnd); + + public static bool PassFilter( ImGuiTextFilter* self, byte* text, byte* textEnd) + { + byte ret = PassFilterNative(self, text, textEnd); + return ret != 0; + } + + public static bool PassFilter( ImGuiTextFilter* self, byte* text) + { + byte ret = PassFilterNative(self, text, (byte*)(default)); + return ret != 0; + } + + public static bool PassFilter( ImGuiTextFilter* self, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + byte ret = PassFilterNative(self, (byte*)ptext, textEnd); + return ret != 0; + } + } + + public static bool PassFilter( ImGuiTextFilter* self, ref byte text) + { + fixed (byte* ptext = &text) + { + byte ret = PassFilterNative(self, (byte*)ptext, (byte*)(default)); + return ret != 0; + } + } + + public static bool PassFilter( ImGuiTextFilter* self, string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = PassFilterNative(self, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool PassFilter( ImGuiTextFilter* self, string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = PassFilterNative(self, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool PassFilter( ImGuiTextFilter* self, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = PassFilterNative(self, text, (byte*)ptextEnd); + return ret != 0; + } + } + + public static bool PassFilter( ImGuiTextFilter* self, byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = PassFilterNative(self, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool PassFilter( ImGuiTextFilter* self, ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + + public static bool PassFilter( ImGuiTextFilter* self, string text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = PassFilterNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_Build")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BuildNative(ImGuiTextFilter* self); + + public static void Build( ImGuiTextFilter* self) + { + BuildNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImGuiTextFilter* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_IsActive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsActiveNative(ImGuiTextFilter* self); + + public static bool IsActive( ImGuiTextFilter* self) + { + byte ret = IsActiveNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextRange_ImGuiTextRange_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTextRange* ImGuiTextRangeNative(); + + public static ImGuiTextRange* ImGuiTextRange() + { + ImGuiTextRange* ret = ImGuiTextRangeNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextRange_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiTextRange* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextRange_ImGuiTextRange_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTextRange* ImGuiTextRangeNative(byte* B, byte* E); + + public static ImGuiTextRange* ImGuiTextRange( byte* B, byte* E) + { + ImGuiTextRange* ret = ImGuiTextRangeNative(B, E); + return ret; + } + + public static ImGuiTextRange* ImGuiTextRange( byte* B, ref byte E) + { + fixed (byte* pE = &E) + { + ImGuiTextRange* ret = ImGuiTextRangeNative(B, (byte*)pE); + return ret; + } + } + + public static ImGuiTextRange* ImGuiTextRange( byte* B, string E) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (E != null) + { + pStrSize0 = Utils.GetByteCountUTF8(E); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(E, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiTextRange* ret = ImGuiTextRangeNative(B, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextRange_empty")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte emptyNative(ImGuiTextRange* self); + + public static bool empty( ImGuiTextRange* self) + { + byte ret = emptyNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextRange_split")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void splitNative(ImGuiTextRange* self, byte separator, ImVectorImGuiTextRange* output); + + public static void split( ImGuiTextRange* self, byte separator, ImVectorImGuiTextRange* output) + { + splitNative(self, separator, output); + } + + public static void split( ImGuiTextRange* self, byte separator, ref ImVectorImGuiTextRange output) + { + fixed (ImVectorImGuiTextRange* poutput = &output) + { + splitNative(self, separator, (ImVectorImGuiTextRange*)poutput); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_ImGuiTextBuffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTextBuffer* ImGuiTextBufferNative(); + + public static ImGuiTextBuffer* ImGuiTextBuffer() + { + ImGuiTextBuffer* ret = ImGuiTextBufferNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiTextBuffer* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_begin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* beginNative(ImGuiTextBuffer* self); + + public static byte* begin( ImGuiTextBuffer* self) + { + byte* ret = beginNative(self); + return ret; + } + + public static string beginS( ImGuiTextBuffer* self) + { + string ret = Utils.DecodeStringUTF8(beginNative(self)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_end")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* endNative(ImGuiTextBuffer* self); + + public static byte* end( ImGuiTextBuffer* self) + { + byte* ret = endNative(self); + return ret; + } + + public static string endS( ImGuiTextBuffer* self) + { + string ret = Utils.DecodeStringUTF8(endNative(self)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_size")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int sizeNative(ImGuiTextBuffer* self); + + public static int size( ImGuiTextBuffer* self) + { + int ret = sizeNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_empty")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte emptyNative(ImGuiTextBuffer* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void clearNative(ImGuiTextBuffer* self); + + public static void clear( ImGuiTextBuffer* self) + { + clearNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_reserve")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void reserveNative(ImGuiTextBuffer* self, int capacity); + + public static void reserve( ImGuiTextBuffer* self, int capacity) + { + reserveNative(self, capacity); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_c_str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* c_strNative(ImGuiTextBuffer* self); + + public static byte* c_str( ImGuiTextBuffer* self) + { + byte* ret = c_strNative(self); + return ret; + } + + public static string c_strS( ImGuiTextBuffer* self) + { + string ret = Utils.DecodeStringUTF8(c_strNative(self)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_append")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void appendNative(ImGuiTextBuffer* self, byte* str, byte* strEnd); + + public static void append( ImGuiTextBuffer* self, byte* str, byte* strEnd) + { + appendNative(self, str, strEnd); + } + + public static void append( ImGuiTextBuffer* self, byte* str) + { + appendNative(self, str, (byte*)(default)); + } + + public static void append( ImGuiTextBuffer* self, ref byte str, byte* strEnd) + { + fixed (byte* pstr = &str) + { + appendNative(self, (byte*)pstr, strEnd); + } + } + + public static void append( ImGuiTextBuffer* self, ref byte str) + { + fixed (byte* pstr = &str) + { + appendNative(self, (byte*)pstr, (byte*)(default)); + } + } + + public static void append( ImGuiTextBuffer* self, string str, byte* strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative(self, pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void append( ImGuiTextBuffer* self, string str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative(self, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void append( ImGuiTextBuffer* self, byte* str, ref byte strEnd) + { + fixed (byte* pstrEnd = &strEnd) + { + appendNative(self, str, (byte*)pstrEnd); + } + } + + public static void append( ImGuiTextBuffer* self, byte* str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative(self, str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void append( ImGuiTextBuffer* self, ref byte str, ref byte strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + appendNative(self, (byte*)pstr, (byte*)pstrEnd); + } + } + } + + public static void append( ImGuiTextBuffer* self, string str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (strEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + appendNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_appendfv")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void appendfvNative(ImGuiTextBuffer* self, byte* fmt, nuint args); + + public static void appendfv( ImGuiTextBuffer* self, byte* fmt, nuint args) + { + appendfvNative(self, fmt, args); + } + + public static void appendfv( ImGuiTextBuffer* self, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + appendfvNative(self, (byte*)pfmt, args); + } + } + + public static void appendfv( ImGuiTextBuffer* self, string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendfvNative(self, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStoragePair_ImGuiStoragePair_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStoragePair* ImGuiStoragePairNative(uint Key, int Val); + + public static ImGuiStoragePair* ImGuiStoragePair( uint Key, int Val) + { + ImGuiStoragePair* ret = ImGuiStoragePairNative(Key, Val); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStoragePair_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiStoragePair* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStoragePair_ImGuiStoragePair_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStoragePair* ImGuiStoragePairNative(uint Key, float Val); + + public static ImGuiStoragePair* ImGuiStoragePair( uint Key, float Val) + { + ImGuiStoragePair* ret = ImGuiStoragePairNative(Key, Val); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStoragePair_ImGuiStoragePair_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStoragePair* ImGuiStoragePairNative(uint Key, void* Val); + + public static ImGuiStoragePair* ImGuiStoragePair( uint Key, void* Val) + { + ImGuiStoragePair* ret = ImGuiStoragePairNative(Key, Val); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImGuiStorage* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetIntNative(ImGuiStorage* self, uint key, int defaultVal); + + public static int GetInt( ImGuiStorage* self, uint key, int defaultVal) + { + int ret = GetIntNative(self, key, defaultVal); + return ret; + } + + public static int GetInt( ImGuiStorage* self, uint key) + { + int ret = GetIntNative(self, key, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_SetInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetIntNative(ImGuiStorage* self, uint key, int val); + + public static void SetInt( ImGuiStorage* self, uint key, int val) + { + SetIntNative(self, key, val); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetBool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte GetBoolNative(ImGuiStorage* self, uint key, byte defaultVal); + + public static bool GetBool( ImGuiStorage* self, uint key, bool defaultVal) + { + byte ret = GetBoolNative(self, key, defaultVal ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool GetBool( ImGuiStorage* self, uint key) + { + byte ret = GetBoolNative(self, key, (byte)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_SetBool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetBoolNative(ImGuiStorage* self, uint key, byte val); + + public static void SetBool( ImGuiStorage* self, uint key, bool val) + { + SetBoolNative(self, key, val ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetFloatNative(ImGuiStorage* self, uint key, float defaultVal); + + public static float GetFloat( ImGuiStorage* self, uint key, float defaultVal) + { + float ret = GetFloatNative(self, key, defaultVal); + return ret; + } + + public static float GetFloat( ImGuiStorage* self, uint key) + { + float ret = GetFloatNative(self, key, (float)(0.0f)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_SetFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetFloatNative(ImGuiStorage* self, uint key, float val); + + public static void SetFloat( ImGuiStorage* self, uint key, float val) + { + SetFloatNative(self, key, val); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetVoidPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* GetVoidPtrNative(ImGuiStorage* self, uint key); + + public static void* GetVoidPtr( ImGuiStorage* self, uint key) + { + void* ret = GetVoidPtrNative(self, key); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_SetVoidPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetVoidPtrNative(ImGuiStorage* self, uint key, void* val); + + public static void SetVoidPtr( ImGuiStorage* self, uint key, void* val) + { + SetVoidPtrNative(self, key, val); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetIntRef")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int* GetIntRefNative(ImGuiStorage* self, uint key, int defaultVal); + + public static int* GetIntRef( ImGuiStorage* self, uint key, int defaultVal) + { + int* ret = GetIntRefNative(self, key, defaultVal); + return ret; + } + + public static int* GetIntRef( ImGuiStorage* self, uint key) + { + int* ret = GetIntRefNative(self, key, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetBoolRef")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetBoolRefNative(ImGuiStorage* self, uint key, byte defaultVal); + + public static byte* GetBoolRef( ImGuiStorage* self, uint key, bool defaultVal) + { + byte* ret = GetBoolRefNative(self, key, defaultVal ? (byte)1 : (byte)0); + return ret; + } + + public static byte* GetBoolRef( ImGuiStorage* self, uint key) + { + byte* ret = GetBoolRefNative(self, key, (byte)(0)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetFloatRef")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float* GetFloatRefNative(ImGuiStorage* self, uint key, float defaultVal); + + public static float* GetFloatRef( ImGuiStorage* self, uint key, float defaultVal) + { + float* ret = GetFloatRefNative(self, key, defaultVal); + return ret; + } + + public static float* GetFloatRef( ImGuiStorage* self, uint key) + { + float* ret = GetFloatRefNative(self, key, (float)(0.0f)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetVoidPtrRef")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void** GetVoidPtrRefNative(ImGuiStorage* self, uint key, void* defaultVal); + + public static void** GetVoidPtrRef( ImGuiStorage* self, uint key, void* defaultVal) + { + void** ret = GetVoidPtrRefNative(self, key, defaultVal); + return ret; + } + + public static void** GetVoidPtrRef( ImGuiStorage* self, uint key) + { + void** ret = GetVoidPtrRefNative(self, key, (void*)(default)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_BuildSortByKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BuildSortByKeyNative(ImGuiStorage* self); + + public static void BuildSortByKey( ImGuiStorage* self) + { + BuildSortByKeyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_SetAllInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetAllIntNative(ImGuiStorage* self, int val); + + public static void SetAllInt( ImGuiStorage* self, int val) + { + SetAllIntNative(self, val); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_ImGuiListClipper")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiListClipper* ImGuiListClipperNative(); + + public static ImGuiListClipper* ImGuiListClipper() + { + ImGuiListClipper* ret = ImGuiListClipperNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiListClipper* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_Begin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginNative(ImGuiListClipper* self, int itemsCount, float itemsHeight); + + public static void Begin( ImGuiListClipper* self, int itemsCount, float itemsHeight) + { + BeginNative(self, itemsCount, itemsHeight); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_End")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndNative(ImGuiListClipper* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_Step")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte StepNative(ImGuiListClipper* self); + + public static bool Step( ImGuiListClipper* self) + { + byte ret = StepNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_IncludeItemByIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void IncludeItemByIndexNative(ImGuiListClipper* self, int itemIndex); + + public static void IncludeItemByIndex( ImGuiListClipper* self, int itemIndex) + { + IncludeItemByIndexNative(self, itemIndex); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_IncludeItemsByIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void IncludeItemsByIndexNative(ImGuiListClipper* self, int itemBegin, int itemEnd); + + public static void IncludeItemsByIndex( ImGuiListClipper* self, int itemBegin, int itemEnd) + { + IncludeItemsByIndexNative(self, itemBegin, itemEnd); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImColor_ImColor_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImColor* ImColorNative(); + + public static ImColor* ImColor() + { + ImColor* ret = ImColorNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImColor_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImColor* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImColor_ImColor_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImColor* ImColorNative(float r, float g, float b, float a); + + public static ImColor* ImColor( float r, float g, float b, float a) + { + ImColor* ret = ImColorNative(r, g, b, a); + return ret; + } + + public static ImColor* ImColor( float r, float g, float b) + { + ImColor* ret = ImColorNative(r, g, b, (float)(1.0f)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImColor_ImColor_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImColor* ImColorNative(Vector4 col); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImColor_ImColor_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImColor* ImColorNative(int r, int g, int b, int a); + + public static ImColor* ImColor( int r, int g, int b, int a) + { + ImColor* ret = ImColorNative(r, g, b, a); + return ret; + } + + public static ImColor* ImColor( int r, int g, int b) + { + ImColor* ret = ImColorNative(r, g, b, (int)(255)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImColor_ImColor_U32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImColor* ImColorNative(uint rgba); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImColor_SetHSV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetHSVNative(ImColor* self, float h, float s, float v, float a); + + public static void SetHSV( ImColor* self, float h, float s, float v, float a) + { + SetHSVNative(self, h, s, v, a); + } + + public static void SetHSV( ImColor* self, float h, float s, float v) + { + SetHSVNative(self, h, s, v, (float)(1.0f)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImColor_HSV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void HSVNative(ImColor* pOut, float h, float s, float v, float a); + + public static void HSV( ImColor* pOut, float h, float s, float v, float a) + { + HSVNative(pOut, h, s, v, a); + } + + public static void HSV( ImColor* pOut, float h, float s, float v) + { + HSVNative(pOut, h, s, v, (float)(1.0f)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawCmd_ImDrawCmd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawCmd* ImDrawCmdNative(); + + public static ImDrawCmd* ImDrawCmd() + { + ImDrawCmd* ret = ImDrawCmdNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawCmd_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImDrawCmd* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawCmd_GetTexID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImTextureID GetTexIDNative(ImDrawCmd* self); + + public static ImTextureID GetTexID( ImDrawCmd* self) + { + ImTextureID ret = GetTexIDNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_ImDrawListSplitter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawListSplitter* ImDrawListSplitterNative(); + + public static ImDrawListSplitter* ImDrawListSplitter() + { + ImDrawListSplitter* ret = ImDrawListSplitterNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImDrawListSplitter* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImDrawListSplitter* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_ClearFreeMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearFreeMemoryNative(ImDrawListSplitter* self); + + public static void ClearFreeMemory( ImDrawListSplitter* self) + { + ClearFreeMemoryNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_Split")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SplitNative(ImDrawListSplitter* self, ImDrawList* drawList, int count); + + public static void Split( ImDrawListSplitter* self, ImDrawList* drawList, int count) + { + SplitNative(self, drawList, count); + } + + public static void Split( ImDrawListSplitter* self, ref ImDrawList drawList, int count) + { + fixed (ImDrawList* pdrawList = &drawList) + { + SplitNative(self, (ImDrawList*)pdrawList, count); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_Merge")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void MergeNative(ImDrawListSplitter* self, ImDrawList* drawList); + + public static void Merge( ImDrawListSplitter* self, ImDrawList* drawList) + { + MergeNative(self, drawList); + } + + public static void Merge( ImDrawListSplitter* self, ref ImDrawList drawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + MergeNative(self, (ImDrawList*)pdrawList); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_SetCurrentChannel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCurrentChannelNative(ImDrawListSplitter* self, ImDrawList* drawList, int channelIdx); + + public static void SetCurrentChannel( ImDrawListSplitter* self, ImDrawList* drawList, int channelIdx) + { + SetCurrentChannelNative(self, drawList, channelIdx); + } + + public static void SetCurrentChannel( ImDrawListSplitter* self, ref ImDrawList drawList, int channelIdx) + { + fixed (ImDrawList* pdrawList = &drawList) + { + SetCurrentChannelNative(self, (ImDrawList*)pdrawList, channelIdx); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_ImDrawList")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* ImDrawListNative(ImDrawListSharedData* sharedData); + + public static ImDrawList* ImDrawList( ImDrawListSharedData* sharedData) + { + ImDrawList* ret = ImDrawListNative(sharedData); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImDrawList* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PushClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushClipRectNative(ImDrawList* self, Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect); + + public static void PushClipRect( ImDrawList* self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + PushClipRectNative(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + + public static void PushClipRect( ImDrawList* self, Vector2 clipRectMin, Vector2 clipRectMax) + { + PushClipRectNative(self, clipRectMin, clipRectMax, (byte)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PushClipRectFullScreen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushClipRectFullScreenNative(ImDrawList* self); + + public static void PushClipRectFullScreen( ImDrawList* self) + { + PushClipRectFullScreenNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PopClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopClipRectNative(ImDrawList* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PushTextureID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushTextureIDNative(ImDrawList* self, ImTextureID textureId); + + public static void PushTextureID( ImDrawList* self, ImTextureID textureId) + { + PushTextureIDNative(self, textureId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PopTextureID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopTextureIDNative(ImDrawList* self); + + public static void PopTextureID( ImDrawList* self) + { + PopTextureIDNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_GetClipRectMin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetClipRectMinNative(Vector2* pOut, ImDrawList* self); + + public static void GetClipRectMin( Vector2* pOut, ImDrawList* self) + { + GetClipRectMinNative(pOut, self); + } + + public static void GetClipRectMin( Vector2* pOut, ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + GetClipRectMinNative(pOut, (ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_GetClipRectMax")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetClipRectMaxNative(Vector2* pOut, ImDrawList* self); + + public static void GetClipRectMax( Vector2* pOut, ImDrawList* self) + { + GetClipRectMaxNative(pOut, self); + } + + public static void GetClipRectMax( Vector2* pOut, ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + GetClipRectMaxNative(pOut, (ImDrawList*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddLine")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddLineNative(ImDrawList* self, Vector2 p1, Vector2 p2, uint col, float thickness); + + public static void AddLine( ImDrawList* self, Vector2 p1, Vector2 p2, uint col, float thickness) + { + AddLineNative(self, p1, p2, col, thickness); + } + + public static void AddLine( ImDrawList* self, Vector2 p1, Vector2 p2, uint col) + { + AddLineNative(self, p1, p2, col, (float)(1.0f)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddRectNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags, float thickness); + + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags, float thickness) + { + AddRectNative(self, pMin, pMax, col, rounding, flags, thickness); + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.010.cs b/Hexa.NET.ImGui/Generated/Functions.010.cs new file mode 100644 index 0000000..d6ea128 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.010.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags) + { + AddRectNative(self, pMin, pMax, col, rounding, flags, (float)(1.0f)); + } + + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + AddRectNative(self, pMin, pMax, col, rounding, (int)(0), (float)(1.0f)); + } + + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col) + { + AddRectNative(self, pMin, pMax, col, (float)(0.0f), (int)(0), (float)(1.0f)); + } + + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, int flags) + { + AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); + } + + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) + { + AddRectNative(self, pMin, pMax, col, rounding, (int)(0), thickness); + } + + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, int flags, float thickness) + { + AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, thickness); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddRectFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddRectFilledNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags); + + public static void AddRectFilled( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags) + { + AddRectFilledNative(self, pMin, pMax, col, rounding, flags); + } + + public static void AddRectFilled( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + AddRectFilledNative(self, pMin, pMax, col, rounding, (int)(0)); + } + + public static void AddRectFilled( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col) + { + AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), (int)(0)); + } + + public static void AddRectFilled( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, int flags) + { + AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddRectFilledMultiColor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddRectFilledMultiColorNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft); + + public static void AddRectFilledMultiColor( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + AddRectFilledMultiColorNative(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddQuad")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddQuadNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness); + + public static void AddQuad( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + AddQuadNative(self, p1, p2, p3, p4, col, thickness); + } + + public static void AddQuad( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + AddQuadNative(self, p1, p2, p3, p4, col, (float)(1.0f)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddQuadFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddQuadFilledNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col); + + public static void AddQuadFilled( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + AddQuadFilledNative(self, p1, p2, p3, p4, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddTriangle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddTriangleNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness); + + public static void AddTriangle( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + AddTriangleNative(self, p1, p2, p3, col, thickness); + } + + public static void AddTriangle( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + AddTriangleNative(self, p1, p2, p3, col, (float)(1.0f)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddTriangleFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddTriangleFilledNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col); + + public static void AddTriangleFilled( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + AddTriangleFilledNative(self, p1, p2, p3, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddCircle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddCircleNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness); + + public static void AddCircle( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + AddCircleNative(self, center, radius, col, numSegments, thickness); + } + + public static void AddCircle( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) + { + AddCircleNative(self, center, radius, col, numSegments, (float)(1.0f)); + } + + public static void AddCircle( ImDrawList* self, Vector2 center, float radius, uint col) + { + AddCircleNative(self, center, radius, col, (int)(0), (float)(1.0f)); + } + + public static void AddCircle( ImDrawList* self, Vector2 center, float radius, uint col, float thickness) + { + AddCircleNative(self, center, radius, col, (int)(0), thickness); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddCircleFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddCircleFilledNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments); + + public static void AddCircleFilled( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) + { + AddCircleFilledNative(self, center, radius, col, numSegments); + } + + public static void AddCircleFilled( ImDrawList* self, Vector2 center, float radius, uint col) + { + AddCircleFilledNative(self, center, radius, col, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddNgon")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddNgonNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness); + + public static void AddNgon( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) + { + AddNgonNative(self, center, radius, col, numSegments, thickness); + } + + public static void AddNgon( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) + { + AddNgonNative(self, center, radius, col, numSegments, (float)(1.0f)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddNgonFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddNgonFilledNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments); + + public static void AddNgonFilled( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) + { + AddNgonFilledNative(self, center, radius, col, numSegments); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddEllipse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddEllipseNative(ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments, float thickness); + + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments, float thickness) + { + AddEllipseNative(self, center, radiusX, radiusY, col, rot, numSegments, thickness); + } + + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments) + { + AddEllipseNative(self, center, radiusX, radiusY, col, rot, numSegments, (float)(1.0f)); + } + + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot) + { + AddEllipseNative(self, center, radiusX, radiusY, col, rot, (int)(0), (float)(1.0f)); + } + + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col) + { + AddEllipseNative(self, center, radiusX, radiusY, col, (float)(0.0f), (int)(0), (float)(1.0f)); + } + + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, int numSegments) + { + AddEllipseNative(self, center, radiusX, radiusY, col, (float)(0.0f), numSegments, (float)(1.0f)); + } + + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, float thickness) + { + AddEllipseNative(self, center, radiusX, radiusY, col, rot, (int)(0), thickness); + } + + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, int numSegments, float thickness) + { + AddEllipseNative(self, center, radiusX, radiusY, col, (float)(0.0f), numSegments, thickness); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddEllipseFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddEllipseFilledNative(ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments); + + public static void AddEllipseFilled( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments) + { + AddEllipseFilledNative(self, center, radiusX, radiusY, col, rot, numSegments); + } + + public static void AddEllipseFilled( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot) + { + AddEllipseFilledNative(self, center, radiusX, radiusY, col, rot, (int)(0)); + } + + public static void AddEllipseFilled( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col) + { + AddEllipseFilledNative(self, center, radiusX, radiusY, col, (float)(0.0f), (int)(0)); + } + + public static void AddEllipseFilled( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, int numSegments) + { + AddEllipseFilledNative(self, center, radiusX, radiusY, col, (float)(0.0f), numSegments); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddText_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddTextNative(ImDrawList* self, Vector2 pos, uint col, byte* textBegin, byte* textEnd); + + public static void AddText( ImDrawList* self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + AddTextNative(self, pos, col, textBegin, textEnd); + } + + public static void AddText( ImDrawList* self, Vector2 pos, uint col, byte* textBegin) + { + AddTextNative(self, pos, col, textBegin, (byte*)(default)); + } + + public static void AddText( ImDrawList* self, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, textEnd); + } + } + + public static void AddText( ImDrawList* self, Vector2 pos, uint col, ref byte textBegin) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)(default)); + } + } + + public static void AddText( ImDrawList* self, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pos, col, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, Vector2 pos, uint col, string textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pos, col, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, pos, col, textBegin, (byte*)ptextEnd); + } + } + + public static void AddText( ImDrawList* self, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pos, col, textBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + + public static void AddText( ImDrawList* self, Vector2 pos, uint col, string textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, pos, col, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddText_FontPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddTextNative(ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect); + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddPolyline")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddPolylineNative(ImDrawList* self, Vector2* points, int numPoints, uint col, int flags, float thickness); + + public static void AddPolyline( ImDrawList* self, Vector2* points, int numPoints, uint col, int flags, float thickness) + { + AddPolylineNative(self, points, numPoints, col, flags, thickness); + } + + public static void AddPolyline( ImDrawList* self, ref Vector2 points, int numPoints, uint col, int flags, float thickness) + { + fixed (Vector2* ppoints = &points) + { + AddPolylineNative(self, (Vector2*)ppoints, numPoints, col, flags, thickness); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddConvexPolyFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddConvexPolyFilledNative(ImDrawList* self, Vector2* points, int numPoints, uint col); + + public static void AddConvexPolyFilled( ImDrawList* self, Vector2* points, int numPoints, uint col) + { + AddConvexPolyFilledNative(self, points, numPoints, col); + } + + public static void AddConvexPolyFilled( ImDrawList* self, ref Vector2 points, int numPoints, uint col) + { + fixed (Vector2* ppoints = &points) + { + AddConvexPolyFilledNative(self, (Vector2*)ppoints, numPoints, col); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddBezierCubic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddBezierCubicNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments); + + public static void AddBezierCubic( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, numSegments); + } + + public static void AddBezierCubic( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddBezierQuadratic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddBezierQuadraticNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments); + + public static void AddBezierQuadratic( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, numSegments); + } + + public static void AddBezierQuadratic( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddImage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddImageNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col); + + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col); + } + + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) + { + AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); + } + + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) + { + AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) + { + AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) + { + AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); + } + + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) + { + AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddImageQuad")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddImageQuadNative(ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col); + + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + } + + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); + } + + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); + } + + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddImageRounded")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddImageRoundedNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, int flags); + + public static void AddImageRounded( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, int flags) + { + AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + } + + public static void AddImageRounded( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) + { + AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathClear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathClearNative(ImDrawList* self); + + public static void PathClear( ImDrawList* self) + { + PathClearNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathLineTo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathLineToNative(ImDrawList* self, Vector2 pos); + + public static void PathLineTo( ImDrawList* self, Vector2 pos) + { + PathLineToNative(self, pos); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathLineToMergeDuplicate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathLineToMergeDuplicateNative(ImDrawList* self, Vector2 pos); + + public static void PathLineToMergeDuplicate( ImDrawList* self, Vector2 pos) + { + PathLineToMergeDuplicateNative(self, pos); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathFillConvex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathFillConvexNative(ImDrawList* self, uint col); + + public static void PathFillConvex( ImDrawList* self, uint col) + { + PathFillConvexNative(self, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathStroke")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathStrokeNative(ImDrawList* self, uint col, int flags, float thickness); + + public static void PathStroke( ImDrawList* self, uint col, int flags, float thickness) + { + PathStrokeNative(self, col, flags, thickness); + } + + public static void PathStroke( ImDrawList* self, uint col, int flags) + { + PathStrokeNative(self, col, flags, (float)(1.0f)); + } + + public static void PathStroke( ImDrawList* self, uint col) + { + PathStrokeNative(self, col, (int)(0), (float)(1.0f)); + } + + public static void PathStroke( ImDrawList* self, uint col, float thickness) + { + PathStrokeNative(self, col, (int)(0), thickness); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathArcTo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathArcToNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments); + + public static void PathArcTo( ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + PathArcToNative(self, center, radius, aMin, aMax, numSegments); + } + + public static void PathArcTo( ImDrawList* self, Vector2 center, float radius, float aMin, float aMax) + { + PathArcToNative(self, center, radius, aMin, aMax, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathArcToFast")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathArcToFastNative(ImDrawList* self, Vector2 center, float radius, int aMinOf12, int aMaxOf12); + + public static void PathArcToFast( ImDrawList* self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + PathArcToFastNative(self, center, radius, aMinOf12, aMaxOf12); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathEllipticalArcTo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathEllipticalArcToNative(ImDrawList* self, Vector2 center, float radiusX, float radiusY, float rot, float aMin, float aMax, int numSegments); + + public static void PathEllipticalArcTo( ImDrawList* self, Vector2 center, float radiusX, float radiusY, float rot, float aMin, float aMax, int numSegments) + { + PathEllipticalArcToNative(self, center, radiusX, radiusY, rot, aMin, aMax, numSegments); + } + + public static void PathEllipticalArcTo( ImDrawList* self, Vector2 center, float radiusX, float radiusY, float rot, float aMin, float aMax) + { + PathEllipticalArcToNative(self, center, radiusX, radiusY, rot, aMin, aMax, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathBezierCubicCurveTo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathBezierCubicCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments); + + public static void PathBezierCubicCurveTo( ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + PathBezierCubicCurveToNative(self, p2, p3, p4, numSegments); + } + + public static void PathBezierCubicCurveTo( ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4) + { + PathBezierCubicCurveToNative(self, p2, p3, p4, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathBezierQuadraticCurveTo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathBezierQuadraticCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, int numSegments); + + public static void PathBezierQuadraticCurveTo( ImDrawList* self, Vector2 p2, Vector2 p3, int numSegments) + { + PathBezierQuadraticCurveToNative(self, p2, p3, numSegments); + } + + public static void PathBezierQuadraticCurveTo( ImDrawList* self, Vector2 p2, Vector2 p3) + { + PathBezierQuadraticCurveToNative(self, p2, p3, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathRectNative(ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding, int flags); + + public static void PathRect( ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding, int flags) + { + PathRectNative(self, rectMin, rectMax, rounding, flags); + } + + public static void PathRect( ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding) + { + PathRectNative(self, rectMin, rectMax, rounding, (int)(0)); + } + + public static void PathRect( ImDrawList* self, Vector2 rectMin, Vector2 rectMax) + { + PathRectNative(self, rectMin, rectMax, (float)(0.0f), (int)(0)); + } + + public static void PathRect( ImDrawList* self, Vector2 rectMin, Vector2 rectMax, int flags) + { + PathRectNative(self, rectMin, rectMax, (float)(0.0f), flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddCallbackNative(ImDrawList* self, ImDrawCallback callback, void* callbackData); + + public static void AddCallback( ImDrawList* self, ImDrawCallback callback, void* callbackData) + { + AddCallbackNative(self, callback, callbackData); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddDrawCmd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddDrawCmdNative(ImDrawList* self); + + public static void AddDrawCmd( ImDrawList* self) + { + AddDrawCmdNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_CloneOutput")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* CloneOutputNative(ImDrawList* self); + + public static ImDrawList* CloneOutput( ImDrawList* self) + { + ImDrawList* ret = CloneOutputNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_ChannelsSplit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ChannelsSplitNative(ImDrawList* self, int count); + + public static void ChannelsSplit( ImDrawList* self, int count) + { + ChannelsSplitNative(self, count); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_ChannelsMerge")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ChannelsMergeNative(ImDrawList* self); + + public static void ChannelsMerge( ImDrawList* self) + { + ChannelsMergeNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_ChannelsSetCurrent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ChannelsSetCurrentNative(ImDrawList* self, int n); + + public static void ChannelsSetCurrent( ImDrawList* self, int n) + { + ChannelsSetCurrentNative(self, n); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimReserve")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimReserveNative(ImDrawList* self, int idxCount, int vtxCount); + + public static void PrimReserve( ImDrawList* self, int idxCount, int vtxCount) + { + PrimReserveNative(self, idxCount, vtxCount); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimUnreserve")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimUnreserveNative(ImDrawList* self, int idxCount, int vtxCount); + + public static void PrimUnreserve( ImDrawList* self, int idxCount, int vtxCount) + { + PrimUnreserveNative(self, idxCount, vtxCount); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimRectNative(ImDrawList* self, Vector2 a, Vector2 b, uint col); + + public static void PrimRect( ImDrawList* self, Vector2 a, Vector2 b, uint col) + { + PrimRectNative(self, a, b, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimRectUV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimRectUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col); + + public static void PrimRectUV( ImDrawList* self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + PrimRectUVNative(self, a, b, uvA, uvB, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimQuadUV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimQuadUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col); + + public static void PrimQuadUV( ImDrawList* self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) + { + PrimQuadUVNative(self, a, b, c, d, uvA, uvB, uvC, uvD, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimWriteVtx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimWriteVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col); + + public static void PrimWriteVtx( ImDrawList* self, Vector2 pos, Vector2 uv, uint col) + { + PrimWriteVtxNative(self, pos, uv, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimWriteIdx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimWriteIdxNative(ImDrawList* self, ushort idx); + + public static void PrimWriteIdx( ImDrawList* self, ushort idx) + { + PrimWriteIdxNative(self, idx); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimVtx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col); + + public static void PrimVtx( ImDrawList* self, Vector2 pos, Vector2 uv, uint col) + { + PrimVtxNative(self, pos, uv, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__ResetForNewFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _ResetForNewFrameNative(ImDrawList* self); + + public static void _ResetForNewFrame( ImDrawList* self) + { + _ResetForNewFrameNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__ClearFreeMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _ClearFreeMemoryNative(ImDrawList* self); + + public static void _ClearFreeMemory( ImDrawList* self) + { + _ClearFreeMemoryNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__PopUnusedDrawCmd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _PopUnusedDrawCmdNative(ImDrawList* self); + + public static void _PopUnusedDrawCmd( ImDrawList* self) + { + _PopUnusedDrawCmdNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__TryMergeDrawCmds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _TryMergeDrawCmdsNative(ImDrawList* self); + + public static void _TryMergeDrawCmds( ImDrawList* self) + { + _TryMergeDrawCmdsNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__OnChangedClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _OnChangedClipRectNative(ImDrawList* self); + + public static void _OnChangedClipRect( ImDrawList* self) + { + _OnChangedClipRectNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__OnChangedTextureID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _OnChangedTextureIDNative(ImDrawList* self); + + public static void _OnChangedTextureID( ImDrawList* self) + { + _OnChangedTextureIDNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__OnChangedVtxOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _OnChangedVtxOffsetNative(ImDrawList* self); + + public static void _OnChangedVtxOffset( ImDrawList* self) + { + _OnChangedVtxOffsetNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__CalcCircleAutoSegmentCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int _CalcCircleAutoSegmentCountNative(ImDrawList* self, float radius); + + public static int _CalcCircleAutoSegmentCount( ImDrawList* self, float radius) + { + int ret = _CalcCircleAutoSegmentCountNative(self, radius); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__PathArcToFastEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _PathArcToFastExNative(ImDrawList* self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep); + + public static void _PathArcToFastEx( ImDrawList* self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + _PathArcToFastExNative(self, center, radius, aMinSample, aMaxSample, aStep); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__PathArcToN")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _PathArcToNNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments); + + public static void _PathArcToN( ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + _PathArcToNNative(self, center, radius, aMin, aMax, numSegments); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawData_ImDrawData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawData* ImDrawDataNative(); + + public static ImDrawData* ImDrawData() + { + ImDrawData* ret = ImDrawDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImDrawData* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawData_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImDrawData* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawData_AddDrawList")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddDrawListNative(ImDrawData* self, ImDrawList* drawList); + + public static void AddDrawList( ImDrawData* self, ImDrawList* drawList) + { + AddDrawListNative(self, drawList); + } + + public static void AddDrawList( ImDrawData* self, ref ImDrawList drawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + AddDrawListNative(self, (ImDrawList*)pdrawList); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawData_DeIndexAllBuffers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DeIndexAllBuffersNative(ImDrawData* self); + + public static void DeIndexAllBuffers( ImDrawData* self) + { + DeIndexAllBuffersNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawData_ScaleClipRects")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScaleClipRectsNative(ImDrawData* self, Vector2 fbScale); + + public static void ScaleClipRects( ImDrawData* self, Vector2 fbScale) + { + ScaleClipRectsNative(self, fbScale); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontConfig_ImFontConfig")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontConfig* ImFontConfigNative(); + + public static ImFontConfig* ImFontConfig() + { + ImFontConfig* ret = ImFontConfigNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontConfig_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImFontConfig* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilderNative(); + + public static ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder() + { + ImFontGlyphRangesBuilder* ret = ImFontGlyphRangesBuilderNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImFontGlyphRangesBuilder* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImFontGlyphRangesBuilder* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_GetBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte GetBitNative(ImFontGlyphRangesBuilder* self, ulong n); + + public static bool GetBit( ImFontGlyphRangesBuilder* self, ulong n) + { + byte ret = GetBitNative(self, n); + return ret != 0; + } + + public static bool GetBit( ImFontGlyphRangesBuilder* self, nuint n) + { + byte ret = GetBitNative(self, n); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_SetBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetBitNative(ImFontGlyphRangesBuilder* self, ulong n); + + public static void SetBit( ImFontGlyphRangesBuilder* self, ulong n) + { + SetBitNative(self, n); + } + + public static void SetBit( ImFontGlyphRangesBuilder* self, nuint n) + { + SetBitNative(self, n); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_AddChar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddCharNative(ImFontGlyphRangesBuilder* self, char c); + + public static void AddChar( ImFontGlyphRangesBuilder* self, char c) + { + AddCharNative(self, c); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_AddText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddTextNative(ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd); + + public static void AddText( ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd) + { + AddTextNative(self, text, textEnd); + } + + public static void AddText( ImFontGlyphRangesBuilder* self, byte* text) + { + AddTextNative(self, text, (byte*)(default)); + } + + public static void AddText( ImFontGlyphRangesBuilder* self, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + AddTextNative(self, (byte*)ptext, textEnd); + } + } + + public static void AddText( ImFontGlyphRangesBuilder* self, ref byte text) + { + fixed (byte* ptext = &text) + { + AddTextNative(self, (byte*)ptext, (byte*)(default)); + } + } + + public static void AddText( ImFontGlyphRangesBuilder* self, string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImFontGlyphRangesBuilder* self, string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImFontGlyphRangesBuilder* self, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, text, (byte*)ptextEnd); + } + } + + public static void AddText( ImFontGlyphRangesBuilder* self, byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImFontGlyphRangesBuilder* self, ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + public static void AddText( ImFontGlyphRangesBuilder* self, string text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_AddRanges")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddRangesNative(ImFontGlyphRangesBuilder* self, char* ranges); + + public static void AddRanges( ImFontGlyphRangesBuilder* self, char* ranges) + { + AddRangesNative(self, ranges); + } + + public static void AddRanges( ImFontGlyphRangesBuilder* self, ref char ranges) + { + fixed (char* pranges = &ranges) + { + AddRangesNative(self, (char*)pranges); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_BuildRanges")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BuildRangesNative(ImFontGlyphRangesBuilder* self, ImVectorImWchar* outRanges); + + public static void BuildRanges( ImFontGlyphRangesBuilder* self, ImVectorImWchar* outRanges) + { + BuildRangesNative(self, outRanges); + } + + public static void BuildRanges( ImFontGlyphRangesBuilder* self, ref ImVectorImWchar outRanges) + { + fixed (ImVectorImWchar* poutRanges = &outRanges) + { + BuildRangesNative(self, (ImVectorImWchar*)poutRanges); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlasCustomRect_ImFontAtlasCustomRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontAtlasCustomRect* ImFontAtlasCustomRectNative(); + + public static ImFontAtlasCustomRect* ImFontAtlasCustomRect() + { + ImFontAtlasCustomRect* ret = ImFontAtlasCustomRectNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlasCustomRect_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImFontAtlasCustomRect* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlasCustomRect_IsPacked")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsPackedNative(ImFontAtlasCustomRect* self); + + public static bool IsPacked( ImFontAtlasCustomRect* self) + { + byte ret = IsPackedNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_ImFontAtlas")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontAtlas* ImFontAtlasNative(); + + public static ImFontAtlas* ImFontAtlas() + { + ImFontAtlas* ret = ImFontAtlasNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImFontAtlas* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontNative(ImFontAtlas* self, ImFontConfig* fontCfg); + + public static ImFont* AddFont( ImFontAtlas* self, ImFontConfig* fontCfg) + { + ImFont* ret = AddFontNative(self, fontCfg); + return ret; + } + + public static ImFont* AddFont( ImFontAtlas* self, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontNative(self, (ImFontConfig*)pfontCfg); + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFontDefault")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontDefaultNative(ImFontAtlas* self, ImFontConfig* fontCfg); + + public static ImFont* AddFontDefault( ImFontAtlas* self, ImFontConfig* fontCfg) + { + ImFont* ret = AddFontDefaultNative(self, fontCfg); + return ret; + } + + public static ImFont* AddFontDefault( ImFontAtlas* self) + { + ImFont* ret = AddFontDefaultNative(self, (ImFontConfig*)(default)); + return ret; + } + + public static ImFont* AddFontDefault( ImFontAtlas* self, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontDefaultNative(self, (ImFontConfig*)pfontCfg); + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFontFromFileTTF")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontFromFileTTFNative(ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges); + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, glyphRanges); + return ret; + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, (char*)(default)); + return ret; + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, char* glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + fixed (byte* pfilename = &filename) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ImFontConfig* fontCfg) + { + fixed (byte* pfilename = &filename) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (char*)(default)); + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels) + { + fixed (byte* pfilename = &filename) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, char* glyphRanges) + { + fixed (byte* pfilename = &filename) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ImFontConfig* fontCfg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, char* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ref ImFontConfig fontCfg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ref char glyphRanges) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (byte* pfilename = &filename) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ref char glyphRanges) + { + fixed (byte* pfilename = &filename) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ref char glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFontFromMemoryTTF")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontFromMemoryTTFNative(ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges); + + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, fontCfg, (char*)(default)); + return ret; + } + + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, char* glyphRanges) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ref char glyphRanges) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFontFromMemoryCompressedTTF")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontFromMemoryCompressedTTFNative(ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges); + + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, (char*)(default)); + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, char* glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ref char glyphRanges) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontFromMemoryCompressedBase85TTFNative(ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges); + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, (char*)(default)); + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, char* glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (char*)(default)); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, char* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, char* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ref char glyphRanges) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ref char glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ref char glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_ClearInputData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearInputDataNative(ImFontAtlas* self); + + public static void ClearInputData( ImFontAtlas* self) + { + ClearInputDataNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_ClearTexData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearTexDataNative(ImFontAtlas* self); + + public static void ClearTexData( ImFontAtlas* self) + { + ClearTexDataNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_ClearFonts")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearFontsNative(ImFontAtlas* self); + + public static void ClearFonts( ImFontAtlas* self) + { + ClearFontsNative(self); + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.011.cs b/Hexa.NET.ImGui/Generated/Functions.011.cs new file mode 100644 index 0000000..019c84f --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.011.cs @@ -0,0 +1,4853 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImFontAtlas* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_Build")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BuildNative(ImFontAtlas* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetTexDataAsAlpha8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetTexDataAsAlpha8Native(ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel); + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, outPixels, outWidth, outHeight, outBytesPerPixel); + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight) + { + GetTexDataAsAlpha8Native(self, outPixels, outWidth, outHeight, (int*)(default)); + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetTexDataAsRGBA32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetTexDataAsRGBA32Native(ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel); + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, outPixels, outWidth, outHeight, outBytesPerPixel); + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight) + { + GetTexDataAsRGBA32Native(self, outPixels, outWidth, outHeight, (int*)(default)); + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_IsBuilt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsBuiltNative(ImFontAtlas* self); + + public static bool IsBuilt( ImFontAtlas* self) + { + byte ret = IsBuiltNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_SetTexID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetTexIDNative(ImFontAtlas* self, ImTextureID id); + + public static void SetTexID( ImFontAtlas* self, ImTextureID id) + { + SetTexIDNative(self, id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesDefault")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesDefaultNative(ImFontAtlas* self); + + public static char* GetGlyphRangesDefault( ImFontAtlas* self) + { + char* ret = GetGlyphRangesDefaultNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesGreek")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesGreekNative(ImFontAtlas* self); + + public static char* GetGlyphRangesGreek( ImFontAtlas* self) + { + char* ret = GetGlyphRangesGreekNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesKorean")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesKoreanNative(ImFontAtlas* self); + + public static char* GetGlyphRangesKorean( ImFontAtlas* self) + { + char* ret = GetGlyphRangesKoreanNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesJapanese")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesJapaneseNative(ImFontAtlas* self); + + public static char* GetGlyphRangesJapanese( ImFontAtlas* self) + { + char* ret = GetGlyphRangesJapaneseNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesChineseFull")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesChineseFullNative(ImFontAtlas* self); + + public static char* GetGlyphRangesChineseFull( ImFontAtlas* self) + { + char* ret = GetGlyphRangesChineseFullNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesChineseSimplifiedCommonNative(ImFontAtlas* self); + + public static char* GetGlyphRangesChineseSimplifiedCommon( ImFontAtlas* self) + { + char* ret = GetGlyphRangesChineseSimplifiedCommonNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesCyrillic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesCyrillicNative(ImFontAtlas* self); + + public static char* GetGlyphRangesCyrillic( ImFontAtlas* self) + { + char* ret = GetGlyphRangesCyrillicNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesThai")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesThaiNative(ImFontAtlas* self); + + public static char* GetGlyphRangesThai( ImFontAtlas* self) + { + char* ret = GetGlyphRangesThaiNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesVietnamese")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesVietnameseNative(ImFontAtlas* self); + + public static char* GetGlyphRangesVietnamese( ImFontAtlas* self) + { + char* ret = GetGlyphRangesVietnameseNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddCustomRectRegular")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int AddCustomRectRegularNative(ImFontAtlas* self, int width, int height); + + public static int AddCustomRectRegular( ImFontAtlas* self, int width, int height) + { + int ret = AddCustomRectRegularNative(self, width, height); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddCustomRectFontGlyph")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int AddCustomRectFontGlyphNative(ImFontAtlas* self, ImFont* font, char id, int width, int height, float advanceX, Vector2 offset); + + public static int AddCustomRectFontGlyph( ImFontAtlas* self, ImFont* font, char id, int width, int height, float advanceX, Vector2 offset) + { + int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, offset); + return ret; + } + + public static int AddCustomRectFontGlyph( ImFontAtlas* self, ImFont* font, char id, int width, int height, float advanceX) + { + int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + + public static int AddCustomRectFontGlyph( ImFontAtlas* self, ref ImFont font, char id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFont* pfont = &font) + { + int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, offset); + return ret; + } + } + + public static int AddCustomRectFontGlyph( ImFontAtlas* self, ref ImFont font, char id, int width, int height, float advanceX) + { + fixed (ImFont* pfont = &font) + { + int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetCustomRectByIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontAtlasCustomRect* GetCustomRectByIndexNative(ImFontAtlas* self, int index); + + public static ImFontAtlasCustomRect* GetCustomRectByIndex( ImFontAtlas* self, int index) + { + ImFontAtlasCustomRect* ret = GetCustomRectByIndexNative(self, index); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_CalcCustomRectUV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CalcCustomRectUVNative(ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax); + + public static void CalcCustomRectUV( ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) + { + CalcCustomRectUVNative(self, rect, outUvMin, outUvMax); + } + + public static void CalcCustomRectUV( ImFontAtlas* self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); + } + } + + public static void CalcCustomRectUV( ImFontAtlas* self, ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, outUvMax); + } + } + + public static void CalcCustomRectUV( ImFontAtlas* self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); + } + } + } + + public static void CalcCustomRectUV( ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + CalcCustomRectUVNative(self, rect, outUvMin, (Vector2*)poutUvMax); + } + } + + public static void CalcCustomRectUV( ImFontAtlas* self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); + } + } + } + + public static void CalcCustomRectUV( ImFontAtlas* self, ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + + public static void CalcCustomRectUV( ImFontAtlas* self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetMouseCursorTexData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte GetMouseCursorTexDataNative(ImFontAtlas* self, int cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill); + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, outUvFill); + return ret != 0; + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill) + { + fixed (Vector2* poutOffset = &outOffset) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill); + return ret != 0; + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill); + return ret != 0; + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill); + return ret != 0; + } + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill); + return ret != 0; + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill); + return ret != 0; + } + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill); + return ret != 0; + } + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill); + return ret != 0; + } + } + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_ImFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* ImFontNative(); + + public static ImFont* ImFont() + { + ImFont* ret = ImFontNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImFont* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_FindGlyph")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontGlyph* FindGlyphNative(ImFont* self, char c); + + public static ImFontGlyph* FindGlyph( ImFont* self, char c) + { + ImFontGlyph* ret = FindGlyphNative(self, c); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_FindGlyphNoFallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontGlyph* FindGlyphNoFallbackNative(ImFont* self, char c); + + public static ImFontGlyph* FindGlyphNoFallback( ImFont* self, char c) + { + ImFontGlyph* ret = FindGlyphNoFallbackNative(self, c); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_GetCharAdvance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetCharAdvanceNative(ImFont* self, char c); + + public static float GetCharAdvance( ImFont* self, char c) + { + float ret = GetCharAdvanceNative(self, c); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_IsLoaded")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsLoadedNative(ImFont* self); + + public static bool IsLoaded( ImFont* self) + { + byte ret = IsLoadedNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_GetDebugName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetDebugNameNative(ImFont* self); + + public static byte* GetDebugName( ImFont* self) + { + byte* ret = GetDebugNameNative(self); + return ret; + } + + public static string GetDebugNameS( ImFont* self) + { + string ret = Utils.DecodeStringUTF8(GetDebugNameNative(self)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_CalcTextSizeA")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CalcTextSizeANative(Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining); + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin) + { + fixed (ImFont* pself = &self) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); + } + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); + } + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_CalcWordWrapPositionA")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* CalcWordWrapPositionANative(ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth); + + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth) + { + byte* ret = CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth); + return ret; + } + + public static string CalcWordWrapPositionAS( ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth)); + return ret; + } + + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth); + return ret; + } + } + + public static string CalcWordWrapPositionAS( ImFont* self, float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth)); + return ret; + } + } + + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, string text, byte* textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static string CalcWordWrapPositionAS( ImFont* self, float scale, string text, byte* textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + + public static string CalcWordWrapPositionAS( ImFont* self, float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, byte* text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static string CalcWordWrapPositionAS( ImFont* self, float scale, byte* text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + public static string CalcWordWrapPositionAS( ImFont* self, float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, string text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static string CalcWordWrapPositionAS( ImFont* self, float scale, string text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_RenderChar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderCharNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, char c); + + public static void RenderChar( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, char c) + { + RenderCharNative(self, drawList, size, pos, col, c); + } + + public static void RenderChar( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, char c) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderCharNative(self, (ImDrawList*)pdrawList, size, pos, col, c); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_RenderText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, byte cpuFineClip); + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_BuildLookupTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BuildLookupTableNative(ImFont* self); + + public static void BuildLookupTable( ImFont* self) + { + BuildLookupTableNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_ClearOutputData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearOutputDataNative(ImFont* self); + + public static void ClearOutputData( ImFont* self) + { + ClearOutputDataNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_GrowIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GrowIndexNative(ImFont* self, int newSize); + + public static void GrowIndex( ImFont* self, int newSize) + { + GrowIndexNative(self, newSize); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_AddGlyph")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddGlyphNative(ImFont* self, ImFontConfig* srcCfg, char c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX); + + public static void AddGlyph( ImFont* self, ImFontConfig* srcCfg, char c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) + { + AddGlyphNative(self, srcCfg, c, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + + public static void AddGlyph( ImFont* self, ref ImFontConfig srcCfg, char c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) + { + fixed (ImFontConfig* psrcCfg = &srcCfg) + { + AddGlyphNative(self, (ImFontConfig*)psrcCfg, c, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_AddRemapChar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddRemapCharNative(ImFont* self, char dst, char src, byte overwriteDst); + + public static void AddRemapChar( ImFont* self, char dst, char src, bool overwriteDst) + { + AddRemapCharNative(self, dst, src, overwriteDst ? (byte)1 : (byte)0); + } + + public static void AddRemapChar( ImFont* self, char dst, char src) + { + AddRemapCharNative(self, dst, src, (byte)(1)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_SetGlyphVisible")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetGlyphVisibleNative(ImFont* self, char c, byte visible); + + public static void SetGlyphVisible( ImFont* self, char c, bool visible) + { + SetGlyphVisibleNative(self, c, visible ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_IsGlyphRangeUnused")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsGlyphRangeUnusedNative(ImFont* self, uint cBegin, uint cLast); + + public static bool IsGlyphRangeUnused( ImFont* self, uint cBegin, uint cLast) + { + byte ret = IsGlyphRangeUnusedNative(self, cBegin, cLast); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewport_ImGuiViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewport* ImGuiViewportNative(); + + public static ImGuiViewport* ImGuiViewport() + { + ImGuiViewport* ret = ImGuiViewportNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewport_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiViewport* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewport_GetCenter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetCenterNative(Vector2* pOut, ImGuiViewport* self); + + public static void GetCenter( Vector2* pOut, ImGuiViewport* self) + { + GetCenterNative(pOut, self); + } + + public static void GetCenter( Vector2* pOut, ref ImGuiViewport self) + { + fixed (ImGuiViewport* pself = &self) + { + GetCenterNative(pOut, (ImGuiViewport*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewport_GetWorkCenter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWorkCenterNative(Vector2* pOut, ImGuiViewport* self); + + public static void GetWorkCenter( Vector2* pOut, ImGuiViewport* self) + { + GetWorkCenterNative(pOut, self); + } + + public static void GetWorkCenter( Vector2* pOut, ref ImGuiViewport self) + { + fixed (ImGuiViewport* pself = &self) + { + GetWorkCenterNative(pOut, (ImGuiViewport*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformIO_ImGuiPlatformIO")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPlatformIO* ImGuiPlatformIONative(); + + public static ImGuiPlatformIO* ImGuiPlatformIO() + { + ImGuiPlatformIO* ret = ImGuiPlatformIONative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformIO_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiPlatformIO* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformMonitor_ImGuiPlatformMonitor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPlatformMonitor* ImGuiPlatformMonitorNative(); + + public static ImGuiPlatformMonitor* ImGuiPlatformMonitor() + { + ImGuiPlatformMonitor* ret = ImGuiPlatformMonitorNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformMonitor_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiPlatformMonitor* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformImeData_ImGuiPlatformImeData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPlatformImeData* ImGuiPlatformImeDataNative(); + + public static ImGuiPlatformImeData* ImGuiPlatformImeData() + { + ImGuiPlatformImeData* ret = ImGuiPlatformImeDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformImeData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiPlatformImeData* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKey GetKeyIndexNative(ImGuiKey key); + + public static ImGuiKey GetKeyIndex( ImGuiKey key) + { + ImGuiKey ret = GetKeyIndexNative(key); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImHashData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImHashDataNative(void* data, ulong dataSize, uint seed); + + /// /// To be documented. /// public static uint ImHashData( void* data, ulong dataSize, uint seed) + { + uint ret = ImHashDataNative(data, dataSize, seed); + return ret; + } + + /// /// To be documented. /// public static uint ImHashData( void* data, nuint dataSize, uint seed) + { + uint ret = ImHashDataNative(data, dataSize, seed); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImHashStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImHashNative(byte* data, ulong dataSize, uint seed); + + /// /// To be documented. /// public static uint ImHash( byte* data, ulong dataSize, uint seed) + { + uint ret = ImHashNative(data, dataSize, seed); + return ret; + } + + /// /// To be documented. /// public static uint ImHash( byte* data, nuint dataSize, uint seed) + { + uint ret = ImHashNative(data, dataSize, seed); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImQsort")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImQsortNative(void* baseValue, ulong count, ulong sizeOfElement, delegate*, int> compareFunc); + + /// /// To be documented. /// public static void ImQsort( void* baseValue, ulong count, ulong sizeOfElement, delegate*, int> compareFunc) + { + ImQsortNative(baseValue, count, sizeOfElement, compareFunc); + } + + /// /// To be documented. /// public static void ImQsort( void* baseValue, nuint count, ulong sizeOfElement, delegate*, int> compareFunc) + { + ImQsortNative(baseValue, count, sizeOfElement, compareFunc); + } + + /// /// To be documented. /// public static void ImQsort( void* baseValue, ulong count, nuint sizeOfElement, delegate*, int> compareFunc) + { + ImQsortNative(baseValue, count, sizeOfElement, compareFunc); + } + + /// /// To be documented. /// public static void ImQsort( void* baseValue, nuint count, nuint sizeOfElement, delegate*, int> compareFunc) + { + ImQsortNative(baseValue, count, sizeOfElement, compareFunc); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImAlphaBlendColors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImAlphaBlendColorsNative(uint colA, uint colB); + + /// /// To be documented. /// public static uint ImAlphaBlendColors( uint colA, uint colB) + { + uint ret = ImAlphaBlendColorsNative(colA, colB); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImIsPowerOfTwo_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImIsPowerOfTwoIntNative(int v); + + /// /// To be documented. /// public static bool ImIsPowerOfTwoInt( int v) + { + byte ret = ImIsPowerOfTwoIntNative(v); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImIsPowerOfTwo_U64")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImIsPowerOfTwoU64Native(ulong v); + + /// /// To be documented. /// public static bool ImIsPowerOfTwoU64( ulong v) + { + byte ret = ImIsPowerOfTwoU64Native(v); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImUpperPowerOfTwo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImUpperPowerOfTwoNative(int v); + + /// /// To be documented. /// public static int ImUpperPowerOfTwo( int v) + { + int ret = ImUpperPowerOfTwoNative(v); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStricmp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImStricmpNative(byte* str1, byte* str2); + + /// /// To be documented. /// public static int ImStricmp( byte* str1, byte* str2) + { + int ret = ImStricmpNative(str1, str2); + return ret; + } + + /// /// To be documented. /// public static int ImStricmp( byte* str1, ref byte str2) + { + fixed (byte* pstr2 = &str2) + { + int ret = ImStricmpNative(str1, (byte*)pstr2); + return ret; + } + } + + /// /// To be documented. /// public static int ImStricmp( byte* str1, string str2) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str2 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImStricmpNative(str1, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStrnicmp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImStrnicmpNative(byte* str1, byte* str2, ulong count); + + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, byte* str2, ulong count) + { + int ret = ImStrnicmpNative(str1, str2, count); + return ret; + } + + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, ref byte str2, ulong count) + { + fixed (byte* pstr2 = &str2) + { + int ret = ImStrnicmpNative(str1, (byte*)pstr2, count); + return ret; + } + } + + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, string str2, ulong count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str2 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImStrnicmpNative(str1, pStr0, count); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, byte* str2, nuint count) + { + int ret = ImStrnicmpNative(str1, str2, count); + return ret; + } + + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, ref byte str2, nuint count) + { + fixed (byte* pstr2 = &str2) + { + int ret = ImStrnicmpNative(str1, (byte*)pstr2, count); + return ret; + } + } + + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, string str2, nuint count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str2 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImStrnicmpNative(str1, pStr0, count); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStrncpy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImStrncpyNative(byte* dst, byte* src, ulong count); + + /// /// To be documented. /// public static void ImStrncpy( byte* dst, byte* src, ulong count) + { + ImStrncpyNative(dst, src, count); + } + + /// /// To be documented. /// public static void ImStrncpy( byte* dst, ref byte src, ulong count) + { + fixed (byte* psrc = &src) + { + ImStrncpyNative(dst, (byte*)psrc, count); + } + } + + /// /// To be documented. /// public static void ImStrncpy( byte* dst, string src, ulong count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (src != null) + { + pStrSize0 = Utils.GetByteCountUTF8(src); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(src, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImStrncpyNative(dst, pStr0, count); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void ImStrncpy( byte* dst, byte* src, nuint count) + { + ImStrncpyNative(dst, src, count); + } + + /// /// To be documented. /// public static void ImStrncpy( byte* dst, ref byte src, nuint count) + { + fixed (byte* psrc = &src) + { + ImStrncpyNative(dst, (byte*)psrc, count); + } + } + + /// /// To be documented. /// public static void ImStrncpy( byte* dst, string src, nuint count) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (src != null) + { + pStrSize0 = Utils.GetByteCountUTF8(src); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(src, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImStrncpyNative(dst, pStr0, count); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStrdup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImStrdupNative(byte* str); + + /// /// To be documented. /// public static byte* ImStrdup( byte* str) + { + byte* ret = ImStrdupNative(str); + return ret; + } + + /// /// To be documented. /// public static string ImStrdupS( byte* str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupNative(str)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStrdupcpy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImStrdupcpyNative(byte* dst, ulong* pDstSize, byte* str); + + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ulong* pDstSize, byte* str) + { + byte* ret = ImStrdupcpyNative(dst, pDstSize, str); + return ret; + } + + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ulong* pDstSize, byte* str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, str)); + return ret; + } + + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ref nuint pDstSize, byte* str) + { + fixed (nuint* ppDstSize = &pDstSize) + { + byte* ret = ImStrdupcpyNative(dst, (ulong*)ppDstSize, str); + return ret; + } + } + + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ref nuint pDstSize, byte* str) + { + fixed (nuint* ppDstSize = &pDstSize) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (ulong*)ppDstSize, str)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ulong* pDstSize, ref byte str) + { + fixed (byte* pstr = &str) + { + byte* ret = ImStrdupcpyNative(dst, pDstSize, (byte*)pstr); + return ret; + } + } + + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ulong* pDstSize, ref byte str) + { + fixed (byte* pstr = &str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, (byte*)pstr)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ulong* pDstSize, string str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStrdupcpyNative(dst, pDstSize, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ulong* pDstSize, string str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ref nuint pDstSize, ref byte str) + { + fixed (nuint* ppDstSize = &pDstSize) + { + fixed (byte* pstr = &str) + { + byte* ret = ImStrdupcpyNative(dst, (ulong*)ppDstSize, (byte*)pstr); + return ret; + } + } + } + + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ref nuint pDstSize, ref byte str) + { + fixed (nuint* ppDstSize = &pDstSize) + { + fixed (byte* pstr = &str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (ulong*)ppDstSize, (byte*)pstr)); + return ret; + } + } + } + + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ref nuint pDstSize, string str) + { + fixed (nuint* ppDstSize = &pDstSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStrdupcpyNative(dst, (ulong*)ppDstSize, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ref nuint pDstSize, string str) + { + fixed (nuint* ppDstSize = &pDstSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (ulong*)ppDstSize, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStrchrRange")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImStrchrRangeNative(byte* strBegin, byte* strEnd, byte c); + + /// /// To be documented. /// public static byte* ImStrchrRange( byte* strBegin, byte* strEnd, byte c) + { + byte* ret = ImStrchrRangeNative(strBegin, strEnd, c); + return ret; + } + + /// /// To be documented. /// public static string ImStrchrRangeS( byte* strBegin, byte* strEnd, byte c) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, strEnd, c)); + return ret; + } + + /// /// To be documented. /// public static byte* ImStrchrRange( byte* strBegin, ref byte strEnd, byte c) + { + fixed (byte* pstrEnd = &strEnd) + { + byte* ret = ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c); + return ret; + } + } + + /// /// To be documented. /// public static string ImStrchrRangeS( byte* strBegin, ref byte strEnd, byte c) + { + fixed (byte* pstrEnd = &strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImStrchrRange( byte* strBegin, string strEnd, byte c) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStrchrRangeNative(strBegin, pStr0, c); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImStrchrRangeS( byte* strBegin, string strEnd, byte c) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, pStr0, c)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStreolRange")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImStreolRangeNative(byte* str, byte* strEnd); + + /// /// To be documented. /// public static byte* ImStreolRange( byte* str, byte* strEnd) + { + byte* ret = ImStreolRangeNative(str, strEnd); + return ret; + } + + /// /// To be documented. /// public static string ImStreolRangeS( byte* str, byte* strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, strEnd)); + return ret; + } + + /// /// To be documented. /// public static byte* ImStreolRange( byte* str, ref byte strEnd) + { + fixed (byte* pstrEnd = &strEnd) + { + byte* ret = ImStreolRangeNative(str, (byte*)pstrEnd); + return ret; + } + } + + /// /// To be documented. /// public static string ImStreolRangeS( byte* str, ref byte strEnd) + { + fixed (byte* pstrEnd = &strEnd) + { + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, (byte*)pstrEnd)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImStreolRange( byte* str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStreolRangeNative(str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImStreolRangeS( byte* str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStristr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImStristrNative(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd); + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, needle, needleEnd); + return ret; + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, needleEnd)); + return ret; + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd); + return ret; + } + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, string haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative(haystack, pStr0, needle, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, string haystackEnd, byte* needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, string needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.012.cs b/Hexa.NET.ImGui/Generated/Functions.012.cs new file mode 100644 index 0000000..4734fbc --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.012.cs @@ -0,0 +1,4165 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, string needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } + } + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } + } + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, string haystackEnd, string needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(haystack, pStr0, pStr1, needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, string haystackEnd, string needle, byte* needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, needleEnd)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, byte* needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative(haystack, haystackEnd, needle, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, byte* needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needleEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, string haystackEnd, byte* needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(haystack, pStr0, needle, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, string haystackEnd, byte* needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, string needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, string needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, string haystackEnd, string needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needleEnd != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte* ret = ImStristrNative(haystack, pStr0, pStr1, pStr2); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, string haystackEnd, string needle, string needleEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needleEnd != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, pStr2)); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStrTrimBlanks")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImTrimBlanksNative(byte* str); + + /// /// To be documented. /// public static void ImTrimBlanks( byte* str) + { + ImTrimBlanksNative(str); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStrSkipBlank")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImSkipBlankNative(byte* str); + + /// /// To be documented. /// public static byte* ImSkipBlank( byte* str) + { + byte* ret = ImSkipBlankNative(str); + return ret; + } + + /// /// To be documented. /// public static string ImSkipBlankS( byte* str) + { + string ret = Utils.DecodeStringUTF8(ImSkipBlankNative(str)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStrlenW")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImStrlenWNative(char* str); + + /// /// To be documented. /// public static int ImStrlenW( char* str) + { + int ret = ImStrlenWNative(str); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStrbolW")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* ImStrbolWNative(char* bufMidLine, char* bufBegin); + + /// /// To be documented. /// public static char* ImStrbolW( char* bufMidLine, char* bufBegin) + { + char* ret = ImStrbolWNative(bufMidLine, bufBegin); + return ret; + } + + /// /// To be documented. /// public static char* ImStrbolW( char* bufMidLine, ref char bufBegin) + { + fixed (char* pbufBegin = &bufBegin) + { + char* ret = ImStrbolWNative(bufMidLine, (char*)pbufBegin); + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImToUpper")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImToUpperNative(byte c); + + /// /// To be documented. /// public static byte ImToUpper( byte c) + { + byte ret = ImToUpperNative(c); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImCharIsBlankA")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImCharIsBlankANative(byte c); + + /// /// To be documented. /// public static bool ImCharIsBlankA( byte c) + { + byte ret = ImCharIsBlankANative(c); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImCharIsBlankW")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImCharIsBlankWNative(uint c); + + /// /// To be documented. /// public static bool ImCharIsBlankW( uint c) + { + byte ret = ImCharIsBlankWNative(c); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFormatStringToTempBuffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFormatStringToTempBufferNative(byte** outBuf, byte** outBufEnd, byte* fmt); + + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, byte** outBufEnd, byte* fmt) + { + ImFormatStringToTempBufferNative(outBuf, outBufEnd, fmt); + } + + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, ref byte* outBufEnd, byte* fmt) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, fmt); + } + } + + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, byte** outBufEnd, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferNative(outBuf, outBufEnd, (byte*)pfmt); + } + } + + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, byte** outBufEnd, string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFormatStringToTempBufferNative(outBuf, outBufEnd, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, ref byte* outBufEnd, ref byte fmt) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt); + } + } + } + + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, ref byte* outBufEnd, string fmt) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFormatStringToTempBufferV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFormatStringToTempBufferVNative(byte** outBuf, byte** outBufEnd, byte* fmt, nuint args); + + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, byte** outBufEnd, byte* fmt, nuint args) + { + ImFormatStringToTempBufferVNative(outBuf, outBufEnd, fmt, args); + } + + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, ref byte* outBufEnd, byte* fmt, nuint args) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, fmt, args); + } + } + + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, byte** outBufEnd, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferVNative(outBuf, outBufEnd, (byte*)pfmt, args); + } + } + + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, byte** outBufEnd, string fmt, nuint args) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFormatStringToTempBufferVNative(outBuf, outBufEnd, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, ref byte* outBufEnd, ref byte fmt, nuint args) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt, args); + } + } + } + + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, ref byte* outBufEnd, string fmt, nuint args) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImParseFormatFindStart")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImParseFormatFindStartNative(byte* format); + + /// /// To be documented. /// public static byte* ImParseFormatFindStart( byte* format) + { + byte* ret = ImParseFormatFindStartNative(format); + return ret; + } + + /// /// To be documented. /// public static string ImParseFormatFindStartS( byte* format) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative(format)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImParseFormatFindEnd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImParseFormatFindEndNative(byte* format); + + /// /// To be documented. /// public static byte* ImParseFormatFindEnd( byte* format) + { + byte* ret = ImParseFormatFindEndNative(format); + return ret; + } + + /// /// To be documented. /// public static string ImParseFormatFindEndS( byte* format) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative(format)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImParseFormatSanitizeForPrinting")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImParseFormatSanitizeForPrintingNative(byte* fmtIn, byte* fmtOut, ulong fmtOutSize); + + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, byte* fmtOut, ulong fmtOutSize) + { + ImParseFormatSanitizeForPrintingNative(fmtIn, fmtOut, fmtOutSize); + } + + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, ref byte fmtOut, ulong fmtOutSize) + { + fixed (byte* pfmtOut = &fmtOut) + { + ImParseFormatSanitizeForPrintingNative(fmtIn, (byte*)pfmtOut, fmtOutSize); + } + } + + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, ref string fmtOut, ulong fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImParseFormatSanitizeForPrintingNative(fmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, byte* fmtOut, nuint fmtOutSize) + { + ImParseFormatSanitizeForPrintingNative(fmtIn, fmtOut, fmtOutSize); + } + + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtOut = &fmtOut) + { + ImParseFormatSanitizeForPrintingNative(fmtIn, (byte*)pfmtOut, fmtOutSize); + } + } + + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, ref string fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImParseFormatSanitizeForPrintingNative(fmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImParseFormatSanitizeForScanning")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImParseFormatSanitizeForScanningNative(byte* fmtIn, byte* fmtOut, ulong fmtOutSize); + + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, byte* fmtOut, ulong fmtOutSize) + { + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize); + return ret; + } + + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, byte* fmtOut, ulong fmtOutSize) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize)); + return ret; + } + + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, ref byte fmtOut, ulong fmtOutSize) + { + fixed (byte* pfmtOut = &fmtOut) + { + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize); + return ret; + } + } + + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, ref byte fmtOut, ulong fmtOutSize) + { + fixed (byte* pfmtOut = &fmtOut) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, ref string fmtOut, ulong fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, ref string fmtOut, ulong fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize)); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, byte* fmtOut, nuint fmtOutSize) + { + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize); + return ret; + } + + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, byte* fmtOut, nuint fmtOutSize) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize)); + return ret; + } + + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtOut = &fmtOut) + { + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize); + return ret; + } + } + + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) + { + fixed (byte* pfmtOut = &fmtOut) + { + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, ref string fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, ref string fmtOut, nuint fmtOutSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize)); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImParseFormatPrecision")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImParseFormatPrecisionNative(byte* format, int defaultValue); + + /// /// To be documented. /// public static int ImParseFormatPrecision( byte* format, int defaultValue) + { + int ret = ImParseFormatPrecisionNative(format, defaultValue); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTextCharToUtf8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImTextCharToUtf8Native(byte* outBuf, uint c); + + /// /// To be documented. /// public static byte* ImTextCharToUtf8( byte* outBuf, uint c) + { + byte* ret = ImTextCharToUtf8Native(outBuf, c); + return ret; + } + + /// /// To be documented. /// public static string ImTextCharToUtf8S( byte* outBuf, uint c) + { + string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native(outBuf, c)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTextCharFromUtf8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImTextCharFromUtf8Native(uint* outChar, byte* inText, byte* inTextEnd); + + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, byte* inText, byte* inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, inText, inTextEnd); + return ret; + } + + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, ref byte inText, byte* inTextEnd) + { + fixed (byte* pinText = &inText) + { + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, inTextEnd); + return ret; + } + } + + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, string inText, byte* inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native(outChar, pStr0, inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, byte* inText, ref byte inTextEnd) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, inText, (byte*)pinTextEnd); + return ret; + } + } + + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, byte* inText, string inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native(outChar, inText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, ref byte inText, ref byte inTextEnd) + { + fixed (byte* pinText = &inText) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); + return ret; + } + } + } + + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, string inText, string inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (inTextEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + int ret = ImTextCharFromUtf8Native(outChar, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTextCountCharsFromUtf8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImTextCountCharsFromUtf8Native(byte* inText, byte* inTextEnd); + + /// /// To be documented. /// public static int ImTextCountCharsFromUtf8( byte* inText, byte* inTextEnd) + { + int ret = ImTextCountCharsFromUtf8Native(inText, inTextEnd); + return ret; + } + + /// /// To be documented. /// public static int ImTextCountCharsFromUtf8( byte* inText, ref byte inTextEnd) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCountCharsFromUtf8Native(inText, (byte*)pinTextEnd); + return ret; + } + } + + /// /// To be documented. /// public static int ImTextCountCharsFromUtf8( byte* inText, string inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCountCharsFromUtf8Native(inText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTextCountUtf8BytesFromChar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImTextCountUtf8BytesFromCharNative(byte* inText, byte* inTextEnd); + + /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar( byte* inText, byte* inTextEnd) + { + int ret = ImTextCountUtf8BytesFromCharNative(inText, inTextEnd); + return ret; + } + + /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar( byte* inText, ref byte inTextEnd) + { + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCountUtf8BytesFromCharNative(inText, (byte*)pinTextEnd); + return ret; + } + } + + /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar( byte* inText, string inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCountUtf8BytesFromCharNative(inText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTextCountUtf8BytesFromStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImTextCountUtf8BytesFromNative(char* inText, char* inTextEnd); + + /// /// To be documented. /// public static int ImTextCountUtf8BytesFrom( char* inText, char* inTextEnd) + { + int ret = ImTextCountUtf8BytesFromNative(inText, inTextEnd); + return ret; + } + + /// /// To be documented. /// public static int ImTextCountUtf8BytesFrom( char* inText, ref char inTextEnd) + { + fixed (char* pinTextEnd = &inTextEnd) + { + int ret = ImTextCountUtf8BytesFromNative(inText, (char*)pinTextEnd); + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTextFindPreviousUtf8Codepoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImTextFindPreviousUtf8CodepointNative(byte* inTextStart, byte* inTextCurr); + + /// /// To be documented. /// public static byte* ImTextFindPreviousUtf8Codepoint( byte* inTextStart, byte* inTextCurr) + { + byte* ret = ImTextFindPreviousUtf8CodepointNative(inTextStart, inTextCurr); + return ret; + } + + /// /// To be documented. /// public static string ImTextFindPreviousUtf8CodepointS( byte* inTextStart, byte* inTextCurr) + { + string ret = Utils.DecodeStringUTF8(ImTextFindPreviousUtf8CodepointNative(inTextStart, inTextCurr)); + return ret; + } + + /// /// To be documented. /// public static byte* ImTextFindPreviousUtf8Codepoint( byte* inTextStart, ref byte inTextCurr) + { + fixed (byte* pinTextCurr = &inTextCurr) + { + byte* ret = ImTextFindPreviousUtf8CodepointNative(inTextStart, (byte*)pinTextCurr); + return ret; + } + } + + /// /// To be documented. /// public static string ImTextFindPreviousUtf8CodepointS( byte* inTextStart, ref byte inTextCurr) + { + fixed (byte* pinTextCurr = &inTextCurr) + { + string ret = Utils.DecodeStringUTF8(ImTextFindPreviousUtf8CodepointNative(inTextStart, (byte*)pinTextCurr)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImTextFindPreviousUtf8Codepoint( byte* inTextStart, string inTextCurr) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextCurr != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextCurr); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextCurr, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImTextFindPreviousUtf8CodepointNative(inTextStart, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImTextFindPreviousUtf8CodepointS( byte* inTextStart, string inTextCurr) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextCurr != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextCurr); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextCurr, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImTextFindPreviousUtf8CodepointNative(inTextStart, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFileOpen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFileHandle ImFileOpenNative(byte* filename, byte* mode); + + /// /// To be documented. /// public static ImFileHandle ImFileOpen( byte* filename, byte* mode) + { + ImFileHandle ret = ImFileOpenNative(filename, mode); + return ret; + } + + /// /// To be documented. /// public static ImFileHandle ImFileOpen( byte* filename, ref byte mode) + { + fixed (byte* pmode = &mode) + { + ImFileHandle ret = ImFileOpenNative(filename, (byte*)pmode); + return ret; + } + } + + /// /// To be documented. /// public static ImFileHandle ImFileOpen( byte* filename, string mode) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (mode != null) + { + pStrSize0 = Utils.GetByteCountUTF8(mode); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFileHandle ret = ImFileOpenNative(filename, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFileClose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImFileCloseNative(ImFileHandle file); + + /// /// To be documented. /// public static bool ImFileClose( ImFileHandle file) + { + byte ret = ImFileCloseNative(file); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFileGetSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong ImFileGetSizeNative(ImFileHandle file); + + /// /// To be documented. /// public static ulong ImFileGetSize( ImFileHandle file) + { + ulong ret = ImFileGetSizeNative(file); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFileRead")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong ImFileReadNative(void* data, ulong size, ulong count, ImFileHandle file); + + /// /// To be documented. /// public static ulong ImFileRead( void* data, ulong size, ulong count, ImFileHandle file) + { + ulong ret = ImFileReadNative(data, size, count, file); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFileWrite")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong ImFileWriteNative(void* data, ulong size, ulong count, ImFileHandle file); + + /// /// To be documented. /// public static ulong ImFileWrite( void* data, ulong size, ulong count, ImFileHandle file) + { + ulong ret = ImFileWriteNative(data, size, count, file); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFileLoadToMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* ImFileLoadToMemoryNative(byte* filename, byte* mode, ulong* outFileSize, int paddingBytes); + + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, byte* mode, ulong* outFileSize, int paddingBytes) + { + void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, paddingBytes); + return ret; + } + + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, ref byte mode, ulong* outFileSize, int paddingBytes) + { + fixed (byte* pmode = &mode) + { + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, paddingBytes); + return ret; + } + } + + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, string mode, ulong* outFileSize, int paddingBytes) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (mode != null) + { + pStrSize0 = Utils.GetByteCountUTF8(mode); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = ImFileLoadToMemoryNative(filename, pStr0, outFileSize, paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, byte* mode, ref nuint outFileSize, int paddingBytes) + { + fixed (nuint* poutFileSize = &outFileSize) + { + void* ret = ImFileLoadToMemoryNative(filename, mode, (ulong*)poutFileSize, paddingBytes); + return ret; + } + } + + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, ref byte mode, ref nuint outFileSize, int paddingBytes) + { + fixed (byte* pmode = &mode) + { + fixed (nuint* poutFileSize = &outFileSize) + { + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (ulong*)poutFileSize, paddingBytes); + return ret; + } + } + } + + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, string mode, ref nuint outFileSize, int paddingBytes) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (mode != null) + { + pStrSize0 = Utils.GetByteCountUTF8(mode); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (nuint* poutFileSize = &outFileSize) + { + void* ret = ImFileLoadToMemoryNative(filename, pStr0, (ulong*)poutFileSize, paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImPow_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImPowFloatNative(float x, float y); + + /// /// To be documented. /// public static float ImPowFloat( float x, float y) + { + float ret = ImPowFloatNative(x, y); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImPow_double")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double ImPowDoubleNative(double x, double y); + + /// /// To be documented. /// public static double ImPowDouble( double x, double y) + { + double ret = ImPowDoubleNative(x, y); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLog_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImLogFloatNative(float x); + + /// /// To be documented. /// public static float ImLogFloat( float x) + { + float ret = ImLogFloatNative(x); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLog_double")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double ImLogDoubleNative(double x); + + /// /// To be documented. /// public static double ImLogDouble( double x) + { + double ret = ImLogDoubleNative(x); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImAbs_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImAbsIntNative(int x); + + /// /// To be documented. /// public static int ImAbsInt( int x) + { + int ret = ImAbsIntNative(x); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImAbs_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImAbsFloatNative(float x); + + /// /// To be documented. /// public static float ImAbsFloat( float x) + { + float ret = ImAbsFloatNative(x); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImAbs_double")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double ImAbsDoubleNative(double x); + + /// /// To be documented. /// public static double ImAbsDouble( double x) + { + double ret = ImAbsDoubleNative(x); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImSign_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImSignFloatNative(float x); + + /// /// To be documented. /// public static float ImSignFloat( float x) + { + float ret = ImSignFloatNative(x); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImSign_double")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double ImSignDoubleNative(double x); + + /// /// To be documented. /// public static double ImSignDouble( double x) + { + double ret = ImSignDoubleNative(x); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImRsqrt_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImRsqrtFloatNative(float x); + + /// /// To be documented. /// public static float ImRsqrtFloat( float x) + { + float ret = ImRsqrtFloatNative(x); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImRsqrt_double")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double ImRsqrtDoubleNative(double x); + + /// /// To be documented. /// public static double ImRsqrtDouble( double x) + { + double ret = ImRsqrtDoubleNative(x); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImMin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImMinNative(Vector2* pOut, Vector2 lhs, Vector2 rhs); + + /// /// To be documented. /// public static void ImMin( Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + ImMinNative(pOut, lhs, rhs); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImMax")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImMaxNative(Vector2* pOut, Vector2 lhs, Vector2 rhs); + + /// /// To be documented. /// public static void ImMax( Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + ImMaxNative(pOut, lhs, rhs); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImClamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImClampNative(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx); + + /// /// To be documented. /// public static void ImClamp( Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) + { + ImClampNative(pOut, v, mn, mx); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLerp_Vec2Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImLerpVec2FloatNative(Vector2* pOut, Vector2 a, Vector2 b, float t); + + /// /// To be documented. /// public static void ImLerpVec2Float( Vector2* pOut, Vector2 a, Vector2 b, float t) + { + ImLerpVec2FloatNative(pOut, a, b, t); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLerp_Vec2Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImLerpVec2Vec2Native(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t); + + /// /// To be documented. /// public static void ImLerpVec2Vec2( Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) + { + ImLerpVec2Vec2Native(pOut, a, b, t); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLerp_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImLerpVec4Native(Vector4* pOut, Vector4 a, Vector4 b, float t); + + /// /// To be documented. /// public static void ImLerpVec4( Vector4* pOut, Vector4 a, Vector4 b, float t) + { + ImLerpVec4Native(pOut, a, b, t); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImSaturate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImSaturateNative(float f); + + /// /// To be documented. /// public static float ImSaturate( float f) + { + float ret = ImSaturateNative(f); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLengthSqr_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImLengthSqrVec2Native(Vector2 lhs); + + /// /// To be documented. /// public static float ImLengthSqrVec2( Vector2 lhs) + { + float ret = ImLengthSqrVec2Native(lhs); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLengthSqr_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImLengthSqrVec4Native(Vector4 lhs); + + /// /// To be documented. /// public static float ImLengthSqrVec4( Vector4 lhs) + { + float ret = ImLengthSqrVec4Native(lhs); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImInvLength")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImInvLengthNative(Vector2 lhs, float failValue); + + /// /// To be documented. /// public static float ImInvLength( Vector2 lhs, float failValue) + { + float ret = ImInvLengthNative(lhs, failValue); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTrunc_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImTruncFloatNative(float f); + + /// /// To be documented. /// public static float ImTruncFloat( float f) + { + float ret = ImTruncFloatNative(f); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTrunc_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImTruncVec2Native(Vector2* pOut, Vector2 v); + + /// /// To be documented. /// public static void ImTruncVec2( Vector2* pOut, Vector2 v) + { + ImTruncVec2Native(pOut, v); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFloor_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImFloorFloatNative(float f); + + /// /// To be documented. /// public static float ImFloorFloat( float f) + { + float ret = ImFloorFloatNative(f); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFloor_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFloorVec2Native(Vector2* pOut, Vector2 v); + + /// /// To be documented. /// public static void ImFloorVec2( Vector2* pOut, Vector2 v) + { + ImFloorVec2Native(pOut, v); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImModPositive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImModPositiveNative(int a, int b); + + /// /// To be documented. /// public static int ImModPositive( int a, int b) + { + int ret = ImModPositiveNative(a, b); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImDot")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImDotNative(Vector2 a, Vector2 b); + + /// /// To be documented. /// public static float ImDot( Vector2 a, Vector2 b) + { + float ret = ImDotNative(a, b); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImRotate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRotateNative(Vector2* pOut, Vector2 v, float cosA, float sinA); + + /// /// To be documented. /// public static void ImRotate( Vector2* pOut, Vector2 v, float cosA, float sinA) + { + ImRotateNative(pOut, v, cosA, sinA); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLinearSweep")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImLinearSweepNative(float current, float target, float speed); + + /// /// To be documented. /// public static float ImLinearSweep( float current, float target, float speed) + { + float ret = ImLinearSweepNative(current, target, speed); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImMul")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImMulNative(Vector2* pOut, Vector2 lhs, Vector2 rhs); + + /// /// To be documented. /// public static void ImMul( Vector2* pOut, Vector2 lhs, Vector2 rhs) + { + ImMulNative(pOut, lhs, rhs); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImIsFloatAboveGuaranteedIntegerPrecision")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImIsFloatAboveGuaranteedIntegerPrecisionNative(float f); + + /// /// To be documented. /// public static bool ImIsFloatAboveGuaranteedIntegerPrecision( float f) + { + byte ret = ImIsFloatAboveGuaranteedIntegerPrecisionNative(f); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImExponentialMovingAverage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImExponentialMovingAverageNative(float avg, float sample, int n); + + /// /// To be documented. /// public static float ImExponentialMovingAverage( float avg, float sample, int n) + { + float ret = ImExponentialMovingAverageNative(avg, sample, n); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBezierCubicCalc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBezierCubicCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t); + + /// /// To be documented. /// public static void ImBezierCubicCalc( Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + { + ImBezierCubicCalcNative(pOut, p1, p2, p3, p4, t); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBezierCubicClosestPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBezierCubicClosestPointNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments); + + /// /// To be documented. /// public static void ImBezierCubicClosestPoint( Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) + { + ImBezierCubicClosestPointNative(pOut, p1, p2, p3, p4, p, numSegments); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBezierCubicClosestPointCasteljau")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBezierCubicClosestPointCasteljauNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol); + + /// /// To be documented. /// public static void ImBezierCubicClosestPointCasteljau( Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) + { + ImBezierCubicClosestPointCasteljauNative(pOut, p1, p2, p3, p4, p, tessTol); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBezierQuadraticCalc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBezierQuadraticCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t); + + /// /// To be documented. /// public static void ImBezierQuadraticCalc( Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) + { + ImBezierQuadraticCalcNative(pOut, p1, p2, p3, t); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLineClosestPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImLineClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p); + + /// /// To be documented. /// public static void ImLineClosestPoint( Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) + { + ImLineClosestPointNative(pOut, a, b, p); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTriangleContainsPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImTriangleContainsPointNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p); + + /// /// To be documented. /// public static bool ImTriangleContainsPoint( Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + byte ret = ImTriangleContainsPointNative(a, b, c, p); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTriangleClosestPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImTriangleClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p); + + /// /// To be documented. /// public static void ImTriangleClosestPoint( Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + ImTriangleClosestPointNative(pOut, a, b, c, p); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTriangleBarycentricCoords")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImTriangleBarycentricCoordsNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW); + + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, outW); + } + + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, float* outW) + { + fixed (float* poutU = &outU) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, outW); + } + } + + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, float* outW) + { + fixed (float* poutV = &outV) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, outW); + } + } + + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, float* outW) + { + fixed (float* poutU = &outU) + { + fixed (float* poutV = &outV) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, outW); + } + } + } + + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, ref float outW) + { + fixed (float* poutW = &outW) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, (float*)poutW); + } + } + + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, ref float outW) + { + fixed (float* poutU = &outU) + { + fixed (float* poutW = &outW) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, (float*)poutW); + } + } + } + + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, ref float outW) + { + fixed (float* poutV = &outV) + { + fixed (float* poutW = &outW) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, (float*)poutW); + } + } + } + + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, ref float outW) + { + fixed (float* poutU = &outU) + { + fixed (float* poutV = &outV) + { + fixed (float* poutW = &outW) + { + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, (float*)poutW); + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTriangleArea")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImTriangleAreaNative(Vector2 a, Vector2 b, Vector2 c); + + /// /// To be documented. /// public static float ImTriangleArea( Vector2 a, Vector2 b, Vector2 c) + { + float ret = ImTriangleAreaNative(a, b, c); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec1_ImVec1_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVec1* ImVec1ImVec1NilNative(); + + /// /// To be documented. /// public static ImVec1* ImVec1ImVec1Nil() + { + ImVec1* ret = ImVec1ImVec1NilNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec1_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImVec1DestroyNative(ImVec1* self); + + /// /// To be documented. /// public static void ImVec1Destroy( ImVec1* self) + { + ImVec1DestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec1_ImVec1_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVec1* ImVec1ImVec1FloatNative(float X); + + /// /// To be documented. /// public static ImVec1* ImVec1ImVec1Float( float X) + { + ImVec1* ret = ImVec1ImVec1FloatNative(X); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec2ih_ImVec2ih_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVec2Ih* ImVec2IhImVec2IhNilNative(); + + /// /// To be documented. /// public static ImVec2Ih* ImVec2IhImVec2IhNil() + { + ImVec2Ih* ret = ImVec2IhImVec2IhNilNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec2ih_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImVec2IhDestroyNative(ImVec2Ih* self); + + /// /// To be documented. /// public static void ImVec2IhDestroy( ImVec2Ih* self) + { + ImVec2IhDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec2ih_ImVec2ih_short")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVec2Ih* ImVec2IhImVec2IhShortNative(short X, short Y); + + /// /// To be documented. /// public static ImVec2Ih* ImVec2IhImVec2IhShort( short X, short Y) + { + ImVec2Ih* ret = ImVec2IhImVec2IhShortNative(X, Y); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec2ih_ImVec2ih_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVec2Ih* ImVec2IhImVec2IhVec2Native(Vector2 rhs); + + /// /// To be documented. /// public static ImVec2Ih* ImVec2IhImVec2IhVec2( Vector2 rhs) + { + ImVec2Ih* ret = ImVec2IhImVec2IhVec2Native(rhs); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ImRect_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImRect* ImRectImRectNilNative(); + + /// /// To be documented. /// public static ImRect* ImRectImRectNil() + { + ImRect* ret = ImRectImRectNilNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectDestroyNative(ImRect* self); + + /// /// To be documented. /// public static void ImRectDestroy( ImRect* self) + { + ImRectDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ImRect_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImRect* ImRectImRectVec2Native(Vector2 min, Vector2 max); + + /// /// To be documented. /// public static ImRect* ImRectImRectVec2( Vector2 min, Vector2 max) + { + ImRect* ret = ImRectImRectVec2Native(min, max); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ImRect_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImRect* ImRectImRectVec4Native(Vector4 v); + + /// /// To be documented. /// public static ImRect* ImRectImRectVec4( Vector4 v) + { + ImRect* ret = ImRectImRectVec4Native(v); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ImRect_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImRect* ImRectImRectFloatNative(float x1, float y1, float x2, float y2); + + /// /// To be documented. /// public static ImRect* ImRectImRectFloat( float x1, float y1, float x2, float y2) + { + ImRect* ret = ImRectImRectFloatNative(x1, y1, x2, y2); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetCenter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetCenterNative(Vector2* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectGetCenter( Vector2* pOut, ImRect* self) + { + ImRectGetCenterNative(pOut, self); + } + + /// /// To be documented. /// public static void ImRectGetCenter( Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImRectGetCenterNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetSizeNative(Vector2* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectGetSize( Vector2* pOut, ImRect* self) + { + ImRectGetSizeNative(pOut, self); + } + + /// /// To be documented. /// public static void ImRectGetSize( Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImRectGetSizeNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImRectGetWidthNative(ImRect* self); + + /// /// To be documented. /// public static float ImRectGetWidth( ImRect* self) + { + float ret = ImRectGetWidthNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImRectGetHeightNative(ImRect* self); + + /// /// To be documented. /// public static float ImRectGetHeight( ImRect* self) + { + float ret = ImRectGetHeightNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetArea")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImRectGetAreaNative(ImRect* self); + + /// /// To be documented. /// public static float ImRectGetArea( ImRect* self) + { + float ret = ImRectGetAreaNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetTL")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetTLNative(Vector2* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectGetTL( Vector2* pOut, ImRect* self) + { + ImRectGetTLNative(pOut, self); + } + + /// /// To be documented. /// public static void ImRectGetTL( Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImRectGetTLNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetTR")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetTRNative(Vector2* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectGetTR( Vector2* pOut, ImRect* self) + { + ImRectGetTRNative(pOut, self); + } + + /// /// To be documented. /// public static void ImRectGetTR( Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImRectGetTRNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetBL")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetBLNative(Vector2* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectGetBL( Vector2* pOut, ImRect* self) + { + ImRectGetBLNative(pOut, self); + } + + /// /// To be documented. /// public static void ImRectGetBL( Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImRectGetBLNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetBR")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetBRNative(Vector2* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectGetBR( Vector2* pOut, ImRect* self) + { + ImRectGetBRNative(pOut, self); + } + + /// /// To be documented. /// public static void ImRectGetBR( Vector2* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImRectGetBRNative(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Contains_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImRectContainsVec2Native(ImRect* self, Vector2 p); + + /// /// To be documented. /// public static bool ImRectContainsVec2( ImRect* self, Vector2 p) + { + byte ret = ImRectContainsVec2Native(self, p); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Contains_Rect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImRectContainsRectNative(ImRect* self, ImRect r); + + /// /// To be documented. /// public static bool ImRectContainsRect( ImRect* self, ImRect r) + { + byte ret = ImRectContainsRectNative(self, r); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ContainsWithPad")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImRectContainsWithPadNative(ImRect* self, Vector2 p, Vector2 pad); + + /// /// To be documented. /// public static bool ImRectContainsWithPad( ImRect* self, Vector2 p, Vector2 pad) + { + byte ret = ImRectContainsWithPadNative(self, p, pad); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Overlaps")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImRectOverlapsNative(ImRect* self, ImRect r); + + /// /// To be documented. /// public static bool ImRectOverlaps( ImRect* self, ImRect r) + { + byte ret = ImRectOverlapsNative(self, r); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Add_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectAddVec2Native(ImRect* self, Vector2 p); + + /// /// To be documented. /// public static void ImRectAddVec2( ImRect* self, Vector2 p) + { + ImRectAddVec2Native(self, p); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Add_Rect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectAddRectNative(ImRect* self, ImRect r); + + /// /// To be documented. /// public static void ImRectAddRect( ImRect* self, ImRect r) + { + ImRectAddRectNative(self, r); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Expand_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectExpandFloatNative(ImRect* self, float amount); + + /// /// To be documented. /// public static void ImRectExpandFloat( ImRect* self, float amount) + { + ImRectExpandFloatNative(self, amount); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Expand_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectExpandVec2Native(ImRect* self, Vector2 amount); + + /// /// To be documented. /// public static void ImRectExpandVec2( ImRect* self, Vector2 amount) + { + ImRectExpandVec2Native(self, amount); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Translate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectTranslateNative(ImRect* self, Vector2 d); + + /// /// To be documented. /// public static void ImRectTranslate( ImRect* self, Vector2 d) + { + ImRectTranslateNative(self, d); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_TranslateX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectTranslateXNative(ImRect* self, float dx); + + /// /// To be documented. /// public static void ImRectTranslateX( ImRect* self, float dx) + { + ImRectTranslateXNative(self, dx); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_TranslateY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectTranslateYNative(ImRect* self, float dy); + + /// /// To be documented. /// public static void ImRectTranslateY( ImRect* self, float dy) + { + ImRectTranslateYNative(self, dy); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ClipWith")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectClipWithNative(ImRect* self, ImRect r); + + /// /// To be documented. /// public static void ImRectClipWith( ImRect* self, ImRect r) + { + ImRectClipWithNative(self, r); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ClipWithFull")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectClipWithFullNative(ImRect* self, ImRect r); + + /// /// To be documented. /// public static void ImRectClipWithFull( ImRect* self, ImRect r) + { + ImRectClipWithFullNative(self, r); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Floor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectFloorNative(ImRect* self); + + /// /// To be documented. /// public static void ImRectFloor( ImRect* self) + { + ImRectFloorNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_IsInverted")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImRectIsInvertedNative(ImRect* self); + + /// /// To be documented. /// public static bool ImRectIsInverted( ImRect* self) + { + byte ret = ImRectIsInvertedNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ToVec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectToVec4Native(Vector4* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectToVec4( Vector4* pOut, ImRect* self) + { + ImRectToVec4Native(pOut, self); + } + + /// /// To be documented. /// public static void ImRectToVec4( Vector4* pOut, ref ImRect self) + { + fixed (ImRect* pself = &self) + { + ImRectToVec4Native(pOut, (ImRect*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBitArrayGetStorageSizeInBytes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong ImBitArrayGetStorageSizeInBytesNative(int bitcount); + + /// /// To be documented. /// public static ulong ImBitArrayGetStorageSizeInBytes( int bitcount) + { + ulong ret = ImBitArrayGetStorageSizeInBytesNative(bitcount); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBitArrayClearAllBits")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitArrayClearAllBitsNative(uint* arr, int bitcount); + + /// /// To be documented. /// public static void ImBitArrayClearAllBits( uint* arr, int bitcount) + { + ImBitArrayClearAllBitsNative(arr, bitcount); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBitArrayTestBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImBitArrayTestBitNative(uint* arr, int n); + + /// /// To be documented. /// public static bool ImBitArrayTestBit( uint* arr, int n) + { + byte ret = ImBitArrayTestBitNative(arr, n); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBitArrayClearBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitArrayClearBitNative(uint* arr, int n); + + /// /// To be documented. /// public static void ImBitArrayClearBit( uint* arr, int n) + { + ImBitArrayClearBitNative(arr, n); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBitArraySetBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitArraySetBitNative(uint* arr, int n); + + /// /// To be documented. /// public static void ImBitArraySetBit( uint* arr, int n) + { + ImBitArraySetBitNative(arr, n); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBitArraySetBitRange")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitArraySetBitRangeNative(uint* arr, int n, int n2); + + /// /// To be documented. /// public static void ImBitArraySetBitRange( uint* arr, int n, int n2) + { + ImBitArraySetBitRangeNative(arr, n, n2); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImBitVector_Create")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitVectorCreateNative(ImBitVector* self, int sz); + + /// /// To be documented. /// public static void ImBitVectorCreate( ImBitVector* self, int sz) + { + ImBitVectorCreateNative(self, sz); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImBitVector_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitVectorClearNative(ImBitVector* self); + + /// /// To be documented. /// public static void ImBitVectorClear( ImBitVector* self) + { + ImBitVectorClearNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImBitVector_TestBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImBitVectorTestBitNative(ImBitVector* self, int n); + + /// /// To be documented. /// public static bool ImBitVectorTestBit( ImBitVector* self, int n) + { + byte ret = ImBitVectorTestBitNative(self, n); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImBitVector_SetBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitVectorSetBitNative(ImBitVector* self, int n); + + /// /// To be documented. /// public static void ImBitVectorSetBit( ImBitVector* self, int n) + { + ImBitVectorSetBitNative(self, n); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImBitVector_ClearBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitVectorClearBitNative(ImBitVector* self, int n); + + /// /// To be documented. /// public static void ImBitVectorClearBit( ImBitVector* self, int n) + { + ImBitVectorClearBitNative(self, n); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextIndex_clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTextIndexClearNative(ImGuiTextIndex* self); + + /// /// To be documented. /// public static void ImGuiTextIndexClear( ImGuiTextIndex* self) + { + ImGuiTextIndexClearNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextIndex_size")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiTextIndexSizeNative(ImGuiTextIndex* self); + + /// /// To be documented. /// public static int ImGuiTextIndexSize( ImGuiTextIndex* self) + { + int ret = ImGuiTextIndexSizeNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextIndex_get_line_begin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImGuiTextIndexGetLineBeginNative(ImGuiTextIndex* self, byte* baseValue, int n); + + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineBegin( ImGuiTextIndex* self, byte* baseValue, int n) + { + byte* ret = ImGuiTextIndexGetLineBeginNative(self, baseValue, n); + return ret; + } + + /// /// To be documented. /// public static string ImGuiTextIndexGetLineBeginS( ImGuiTextIndex* self, byte* baseValue, int n) + { + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineBeginNative(self, baseValue, n)); + return ret; + } + + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineBegin( ImGuiTextIndex* self, ref byte baseValue, int n) + { + fixed (byte* pbaseValue = &baseValue) + { + byte* ret = ImGuiTextIndexGetLineBeginNative(self, (byte*)pbaseValue, n); + return ret; + } + } + + /// /// To be documented. /// public static string ImGuiTextIndexGetLineBeginS( ImGuiTextIndex* self, ref byte baseValue, int n) + { + fixed (byte* pbaseValue = &baseValue) + { + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineBeginNative(self, (byte*)pbaseValue, n)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineBegin( ImGuiTextIndex* self, string baseValue, int n) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (baseValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(baseValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImGuiTextIndexGetLineBeginNative(self, pStr0, n); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImGuiTextIndexGetLineBeginS( ImGuiTextIndex* self, string baseValue, int n) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (baseValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(baseValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineBeginNative(self, pStr0, n)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextIndex_get_line_end")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImGuiTextIndexGetLineEndNative(ImGuiTextIndex* self, byte* baseValue, int n); + + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineEnd( ImGuiTextIndex* self, byte* baseValue, int n) + { + byte* ret = ImGuiTextIndexGetLineEndNative(self, baseValue, n); + return ret; + } + + /// /// To be documented. /// public static string ImGuiTextIndexGetLineEndS( ImGuiTextIndex* self, byte* baseValue, int n) + { + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineEndNative(self, baseValue, n)); + return ret; + } + + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineEnd( ImGuiTextIndex* self, ref byte baseValue, int n) + { + fixed (byte* pbaseValue = &baseValue) + { + byte* ret = ImGuiTextIndexGetLineEndNative(self, (byte*)pbaseValue, n); + return ret; + } + } + + /// /// To be documented. /// public static string ImGuiTextIndexGetLineEndS( ImGuiTextIndex* self, ref byte baseValue, int n) + { + fixed (byte* pbaseValue = &baseValue) + { + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineEndNative(self, (byte*)pbaseValue, n)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineEnd( ImGuiTextIndex* self, string baseValue, int n) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (baseValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(baseValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImGuiTextIndexGetLineEndNative(self, pStr0, n); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string ImGuiTextIndexGetLineEndS( ImGuiTextIndex* self, string baseValue, int n) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (baseValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(baseValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineEndNative(self, pStr0, n)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextIndex_append")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTextIndexAppendNative(ImGuiTextIndex* self, byte* baseValue, int oldSize, int newSize); + + /// /// To be documented. /// public static void ImGuiTextIndexAppend( ImGuiTextIndex* self, byte* baseValue, int oldSize, int newSize) + { + ImGuiTextIndexAppendNative(self, baseValue, oldSize, newSize); + } + + /// /// To be documented. /// public static void ImGuiTextIndexAppend( ImGuiTextIndex* self, ref byte baseValue, int oldSize, int newSize) + { + fixed (byte* pbaseValue = &baseValue) + { + ImGuiTextIndexAppendNative(self, (byte*)pbaseValue, oldSize, newSize); + } + } + + /// /// To be documented. /// public static void ImGuiTextIndexAppend( ImGuiTextIndex* self, string baseValue, int oldSize, int newSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (baseValue != null) + { + pStrSize0 = Utils.GetByteCountUTF8(baseValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiTextIndexAppendNative(self, pStr0, oldSize, newSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSharedData_ImDrawListSharedData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawListSharedData* ImDrawListSharedDataImDrawListSharedDataNative(); + + /// /// To be documented. /// public static ImDrawListSharedData* ImDrawListSharedDataImDrawListSharedData() + { + ImDrawListSharedData* ret = ImDrawListSharedDataImDrawListSharedDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSharedData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImDrawListSharedDataDestroyNative(ImDrawListSharedData* self); + + /// /// To be documented. /// public static void ImDrawListSharedDataDestroy( ImDrawListSharedData* self) + { + ImDrawListSharedDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSharedData_SetCircleTessellationMaxError")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImDrawListSharedDataSetCircleTessellationMaxErrorNative(ImDrawListSharedData* self, float maxError); + + /// /// To be documented. /// public static void ImDrawListSharedDataSetCircleTessellationMaxError( ImDrawListSharedData* self, float maxError) + { + ImDrawListSharedDataSetCircleTessellationMaxErrorNative(self, maxError); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawDataBuilder_ImDrawDataBuilder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawDataBuilder* ImDrawDataBuilderImDrawDataBuilderNative(); + + /// /// To be documented. /// public static ImDrawDataBuilder* ImDrawDataBuilderImDrawDataBuilder() + { + ImDrawDataBuilder* ret = ImDrawDataBuilderImDrawDataBuilderNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawDataBuilder_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImDrawDataBuilderDestroyNative(ImDrawDataBuilder* self); + + /// /// To be documented. /// public static void ImDrawDataBuilderDestroy( ImDrawDataBuilder* self) + { + ImDrawDataBuilderDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDataVarInfo_GetVarPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* ImGuiDataVarInfoGetVarPtrNative(ImGuiDataVarInfo* self, void* parent); + + /// /// To be documented. /// public static void* ImGuiDataVarInfoGetVarPtr( ImGuiDataVarInfo* self, void* parent) + { + void* ret = ImGuiDataVarInfoGetVarPtrNative(self, parent); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyleMod_ImGuiStyleMod_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStyleMod* ImGuiStyleModImGuiStyleModIntNative(int idx, int v); + + /// /// To be documented. /// public static ImGuiStyleMod* ImGuiStyleModImGuiStyleModInt( int idx, int v) + { + ImGuiStyleMod* ret = ImGuiStyleModImGuiStyleModIntNative(idx, v); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyleMod_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiStyleModDestroyNative(ImGuiStyleMod* self); + + /// /// To be documented. /// public static void ImGuiStyleModDestroy( ImGuiStyleMod* self) + { + ImGuiStyleModDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyleMod_ImGuiStyleMod_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStyleMod* ImGuiStyleModImGuiStyleModFloatNative(int idx, float v); + + /// /// To be documented. /// public static ImGuiStyleMod* ImGuiStyleModImGuiStyleModFloat( int idx, float v) + { + ImGuiStyleMod* ret = ImGuiStyleModImGuiStyleModFloatNative(idx, v); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyleMod_ImGuiStyleMod_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStyleMod* ImGuiStyleModImGuiStyleModVec2Native(int idx, Vector2 v); + + /// /// To be documented. /// public static ImGuiStyleMod* ImGuiStyleModImGuiStyleModVec2( int idx, Vector2 v) + { + ImGuiStyleMod* ret = ImGuiStyleModImGuiStyleModVec2Native(idx, v); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiComboPreviewData_ImGuiComboPreviewData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiComboPreviewData* ImGuiComboPreviewDataImGuiComboPreviewDataNative(); + + /// /// To be documented. /// public static ImGuiComboPreviewData* ImGuiComboPreviewDataImGuiComboPreviewData() + { + ImGuiComboPreviewData* ret = ImGuiComboPreviewDataImGuiComboPreviewDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiComboPreviewData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiComboPreviewDataDestroyNative(ImGuiComboPreviewData* self); + + /// /// To be documented. /// public static void ImGuiComboPreviewDataDestroy( ImGuiComboPreviewData* self) + { + ImGuiComboPreviewDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiMenuColumns_ImGuiMenuColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiMenuColumns* ImGuiMenuColumnsImGuiMenuColumnsNative(); + + /// /// To be documented. /// public static ImGuiMenuColumns* ImGuiMenuColumnsImGuiMenuColumns() + { + ImGuiMenuColumns* ret = ImGuiMenuColumnsImGuiMenuColumnsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiMenuColumns_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiMenuColumnsDestroyNative(ImGuiMenuColumns* self); + + /// /// To be documented. /// public static void ImGuiMenuColumnsDestroy( ImGuiMenuColumns* self) + { + ImGuiMenuColumnsDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiMenuColumns_Update")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiMenuColumnsUpdateNative(ImGuiMenuColumns* self, float spacing, byte windowReappearing); + + /// /// To be documented. /// public static void ImGuiMenuColumnsUpdate( ImGuiMenuColumns* self, float spacing, bool windowReappearing) + { + ImGuiMenuColumnsUpdateNative(self, spacing, windowReappearing ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiMenuColumns_DeclColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImGuiMenuColumnsDeclColumnsNative(ImGuiMenuColumns* self, float wIcon, float wLabel, float wShortcut, float wMark); + + /// /// To be documented. /// public static float ImGuiMenuColumnsDeclColumns( ImGuiMenuColumns* self, float wIcon, float wLabel, float wShortcut, float wMark) + { + float ret = ImGuiMenuColumnsDeclColumnsNative(self, wIcon, wLabel, wShortcut, wMark); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiMenuColumns_CalcNextTotalWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiMenuColumnsCalcNextTotalWidthNative(ImGuiMenuColumns* self, byte updateOffsets); + + /// /// To be documented. /// public static void ImGuiMenuColumnsCalcNextTotalWidth( ImGuiMenuColumns* self, bool updateOffsets) + { + ImGuiMenuColumnsCalcNextTotalWidthNative(self, updateOffsets ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextDeactivatedState_ImGuiInputTextDeactivatedState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiInputTextDeactivatedState* ImGuiInputTextDeactivatedStateImGuiInputTextDeactivatedStateNative(); + + /// /// To be documented. /// public static ImGuiInputTextDeactivatedState* ImGuiInputTextDeactivatedStateImGuiInputTextDeactivatedState() + { + ImGuiInputTextDeactivatedState* ret = ImGuiInputTextDeactivatedStateImGuiInputTextDeactivatedStateNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextDeactivatedState_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextDeactivatedStateDestroyNative(ImGuiInputTextDeactivatedState* self); + + /// /// To be documented. /// public static void ImGuiInputTextDeactivatedStateDestroy( ImGuiInputTextDeactivatedState* self) + { + ImGuiInputTextDeactivatedStateDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextDeactivatedState_ClearFreeMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextDeactivatedStateClearFreeMemoryNative(ImGuiInputTextDeactivatedState* self); + + /// /// To be documented. /// public static void ImGuiInputTextDeactivatedStateClearFreeMemory( ImGuiInputTextDeactivatedState* self) + { + ImGuiInputTextDeactivatedStateClearFreeMemoryNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_ImGuiInputTextState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiInputTextState* ImGuiInputTextStateImGuiInputTextStateNative(); + + /// /// To be documented. /// public static ImGuiInputTextState* ImGuiInputTextStateImGuiInputTextState() + { + ImGuiInputTextState* ret = ImGuiInputTextStateImGuiInputTextStateNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateDestroyNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateDestroy( ImGuiInputTextState* self) + { + ImGuiInputTextStateDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_ClearText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateClearTextNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateClearText( ImGuiInputTextState* self) + { + ImGuiInputTextStateClearTextNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_ClearFreeMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateClearFreeMemoryNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateClearFreeMemory( ImGuiInputTextState* self) + { + ImGuiInputTextStateClearFreeMemoryNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_GetUndoAvailCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiInputTextStateGetUndoAvailCountNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static int ImGuiInputTextStateGetUndoAvailCount( ImGuiInputTextState* self) + { + int ret = ImGuiInputTextStateGetUndoAvailCountNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_GetRedoAvailCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiInputTextStateGetRedoAvailCountNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static int ImGuiInputTextStateGetRedoAvailCount( ImGuiInputTextState* self) + { + int ret = ImGuiInputTextStateGetRedoAvailCountNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_OnKeyPressed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateOnKeyPressedNative(ImGuiInputTextState* self, int key); + + /// /// To be documented. /// public static void ImGuiInputTextStateOnKeyPressed( ImGuiInputTextState* self, int key) + { + ImGuiInputTextStateOnKeyPressedNative(self, key); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_CursorAnimReset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateCursorAnimResetNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateCursorAnimReset( ImGuiInputTextState* self) + { + ImGuiInputTextStateCursorAnimResetNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_CursorClamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateCursorClampNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateCursorClamp( ImGuiInputTextState* self) + { + ImGuiInputTextStateCursorClampNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_HasSelection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiInputTextStateHasSelectionNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static bool ImGuiInputTextStateHasSelection( ImGuiInputTextState* self) + { + byte ret = ImGuiInputTextStateHasSelectionNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_ClearSelection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateClearSelectionNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateClearSelection( ImGuiInputTextState* self) + { + ImGuiInputTextStateClearSelectionNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_GetCursorPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiInputTextStateGetCursorPosNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static int ImGuiInputTextStateGetCursorPos( ImGuiInputTextState* self) + { + int ret = ImGuiInputTextStateGetCursorPosNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_GetSelectionStart")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiInputTextStateGetSelectionStartNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static int ImGuiInputTextStateGetSelectionStart( ImGuiInputTextState* self) + { + int ret = ImGuiInputTextStateGetSelectionStartNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_GetSelectionEnd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiInputTextStateGetSelectionEndNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static int ImGuiInputTextStateGetSelectionEnd( ImGuiInputTextState* self) + { + int ret = ImGuiInputTextStateGetSelectionEndNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_SelectAll")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateSelectAllNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateSelectAll( ImGuiInputTextState* self) + { + ImGuiInputTextStateSelectAllNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPopupData_ImGuiPopupData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPopupData* ImGuiPopupDataImGuiPopupDataNative(); + + /// /// To be documented. /// public static ImGuiPopupData* ImGuiPopupDataImGuiPopupData() + { + ImGuiPopupData* ret = ImGuiPopupDataImGuiPopupDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPopupData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiPopupDataDestroyNative(ImGuiPopupData* self); + + /// /// To be documented. /// public static void ImGuiPopupDataDestroy( ImGuiPopupData* self) + { + ImGuiPopupDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextWindowData_ImGuiNextWindowData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiNextWindowData* ImGuiNextWindowDataImGuiNextWindowDataNative(); + + /// /// To be documented. /// public static ImGuiNextWindowData* ImGuiNextWindowDataImGuiNextWindowData() + { + ImGuiNextWindowData* ret = ImGuiNextWindowDataImGuiNextWindowDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextWindowData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNextWindowDataDestroyNative(ImGuiNextWindowData* self); + + /// /// To be documented. /// public static void ImGuiNextWindowDataDestroy( ImGuiNextWindowData* self) + { + ImGuiNextWindowDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextWindowData_ClearFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNextWindowDataClearFlagsNative(ImGuiNextWindowData* self); + + /// /// To be documented. /// public static void ImGuiNextWindowDataClearFlags( ImGuiNextWindowData* self) + { + ImGuiNextWindowDataClearFlagsNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextItemData_ImGuiNextItemData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiNextItemData* ImGuiNextItemDataImGuiNextItemDataNative(); + + /// /// To be documented. /// public static ImGuiNextItemData* ImGuiNextItemDataImGuiNextItemData() + { + ImGuiNextItemData* ret = ImGuiNextItemDataImGuiNextItemDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextItemData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNextItemDataDestroyNative(ImGuiNextItemData* self); + + /// /// To be documented. /// public static void ImGuiNextItemDataDestroy( ImGuiNextItemData* self) + { + ImGuiNextItemDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextItemData_ClearFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNextItemDataClearFlagsNative(ImGuiNextItemData* self); + + /// /// To be documented. /// public static void ImGuiNextItemDataClearFlags( ImGuiNextItemData* self) + { + ImGuiNextItemDataClearFlagsNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiLastItemData_ImGuiLastItemData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiLastItemData* ImGuiLastItemDataImGuiLastItemDataNative(); + + /// /// To be documented. /// public static ImGuiLastItemData* ImGuiLastItemDataImGuiLastItemData() + { + ImGuiLastItemData* ret = ImGuiLastItemDataImGuiLastItemDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiLastItemData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiLastItemDataDestroyNative(ImGuiLastItemData* self); + + /// /// To be documented. /// public static void ImGuiLastItemDataDestroy( ImGuiLastItemData* self) + { + ImGuiLastItemDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackSizes_ImGuiStackSizes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStackSizes* ImGuiStackSizesImGuiStackSizesNative(); + + /// /// To be documented. /// public static ImGuiStackSizes* ImGuiStackSizesImGuiStackSizes() + { + ImGuiStackSizes* ret = ImGuiStackSizesImGuiStackSizesNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackSizes_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiStackSizesDestroyNative(ImGuiStackSizes* self); + + /// /// To be documented. /// public static void ImGuiStackSizesDestroy( ImGuiStackSizes* self) + { + ImGuiStackSizesDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackSizes_SetToContextState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiStackSizesSetToContextStateNative(ImGuiStackSizes* self, ImGuiContext* ctx); + + /// /// To be documented. /// public static void ImGuiStackSizesSetToContextState( ImGuiStackSizes* self, ImGuiContext* ctx) + { + ImGuiStackSizesSetToContextStateNative(self, ctx); + } + + /// /// To be documented. /// public static void ImGuiStackSizesSetToContextState( ImGuiStackSizes* self, ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiStackSizesSetToContextStateNative(self, (ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackSizes_CompareWithContextState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiStackSizesCompareWithContextStateNative(ImGuiStackSizes* self, ImGuiContext* ctx); + + /// /// To be documented. /// public static void ImGuiStackSizesCompareWithContextState( ImGuiStackSizes* self, ImGuiContext* ctx) + { + ImGuiStackSizesCompareWithContextStateNative(self, ctx); + } + + /// /// To be documented. /// public static void ImGuiStackSizesCompareWithContextState( ImGuiStackSizes* self, ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) + { + ImGuiStackSizesCompareWithContextStateNative(self, (ImGuiContext*)pctx); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPtrOrIndex* ImGuiPtrOrIndexImGuiPtrOrIndexPtrNative(void* ptr); + + /// /// To be documented. /// public static ImGuiPtrOrIndex* ImGuiPtrOrIndexImGuiPtrOrIndexPtr( void* ptr) + { + ImGuiPtrOrIndex* ret = ImGuiPtrOrIndexImGuiPtrOrIndexPtrNative(ptr); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPtrOrIndex_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiPtrOrIndexDestroyNative(ImGuiPtrOrIndex* self); + + /// /// To be documented. /// public static void ImGuiPtrOrIndexDestroy( ImGuiPtrOrIndex* self) + { + ImGuiPtrOrIndexDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPtrOrIndex* ImGuiPtrOrIndexImGuiPtrOrIndexIntNative(int index); + + /// /// To be documented. /// public static ImGuiPtrOrIndex* ImGuiPtrOrIndexImGuiPtrOrIndexInt( int index) + { + ImGuiPtrOrIndex* ret = ImGuiPtrOrIndexImGuiPtrOrIndexIntNative(index); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputEvent_ImGuiInputEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiInputEvent* ImGuiInputEventImGuiInputEventNative(); + + /// /// To be documented. /// public static ImGuiInputEvent* ImGuiInputEventImGuiInputEvent() + { + ImGuiInputEvent* ret = ImGuiInputEventImGuiInputEventNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputEvent_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputEventDestroyNative(ImGuiInputEvent* self); + + /// /// To be documented. /// public static void ImGuiInputEventDestroy( ImGuiInputEvent* self) + { + ImGuiInputEventDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyRoutingData_ImGuiKeyRoutingData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyRoutingData* ImGuiKeyRoutingDataImGuiKeyRoutingDataNative(); + + /// /// To be documented. /// public static ImGuiKeyRoutingData* ImGuiKeyRoutingDataImGuiKeyRoutingData() + { + ImGuiKeyRoutingData* ret = ImGuiKeyRoutingDataImGuiKeyRoutingDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyRoutingData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiKeyRoutingDataDestroyNative(ImGuiKeyRoutingData* self); + + /// /// To be documented. /// public static void ImGuiKeyRoutingDataDestroy( ImGuiKeyRoutingData* self) + { + ImGuiKeyRoutingDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyRoutingTable* ImGuiKeyRoutingTableImGuiKeyRoutingTableNative(); + + /// /// To be documented. /// public static ImGuiKeyRoutingTable* ImGuiKeyRoutingTableImGuiKeyRoutingTable() + { + ImGuiKeyRoutingTable* ret = ImGuiKeyRoutingTableImGuiKeyRoutingTableNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyRoutingTable_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiKeyRoutingTableDestroyNative(ImGuiKeyRoutingTable* self); + + /// /// To be documented. /// public static void ImGuiKeyRoutingTableDestroy( ImGuiKeyRoutingTable* self) + { + ImGuiKeyRoutingTableDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyRoutingTable_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiKeyRoutingTableClearNative(ImGuiKeyRoutingTable* self); + + /// /// To be documented. /// public static void ImGuiKeyRoutingTableClear( ImGuiKeyRoutingTable* self) + { + ImGuiKeyRoutingTableClearNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyOwnerData_ImGuiKeyOwnerData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyOwnerData* ImGuiKeyOwnerDataImGuiKeyOwnerDataNative(); + + /// /// To be documented. /// public static ImGuiKeyOwnerData* ImGuiKeyOwnerDataImGuiKeyOwnerData() + { + ImGuiKeyOwnerData* ret = ImGuiKeyOwnerDataImGuiKeyOwnerDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyOwnerData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiKeyOwnerDataDestroyNative(ImGuiKeyOwnerData* self); + + /// /// To be documented. /// public static void ImGuiKeyOwnerDataDestroy( ImGuiKeyOwnerData* self) + { + ImGuiKeyOwnerDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipperRange_FromIndices")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiListClipperRange ImGuiListClipperRangeFromIndicesNative(int min, int max); + + /// /// To be documented. /// public static ImGuiListClipperRange ImGuiListClipperRangeFromIndices( int min, int max) + { + ImGuiListClipperRange ret = ImGuiListClipperRangeFromIndicesNative(min, max); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipperRange_FromPositions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiListClipperRange ImGuiListClipperRangeFromPositionsNative(float y1, float y2, int offMin, int offMax); + + /// /// To be documented. /// public static ImGuiListClipperRange ImGuiListClipperRangeFromPositions( float y1, float y2, int offMin, int offMax) + { + ImGuiListClipperRange ret = ImGuiListClipperRangeFromPositionsNative(y1, y2, offMin, offMax); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipperData_ImGuiListClipperData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiListClipperData* ImGuiListClipperDataImGuiListClipperDataNative(); + + /// /// To be documented. /// public static ImGuiListClipperData* ImGuiListClipperDataImGuiListClipperData() + { + ImGuiListClipperData* ret = ImGuiListClipperDataImGuiListClipperDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipperData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiListClipperDataDestroyNative(ImGuiListClipperData* self); + + /// /// To be documented. /// public static void ImGuiListClipperDataDestroy( ImGuiListClipperData* self) + { + ImGuiListClipperDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipperData_Reset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiListClipperDataResetNative(ImGuiListClipperData* self, ImGuiListClipper* clipper); + + /// /// To be documented. /// public static void ImGuiListClipperDataReset( ImGuiListClipperData* self, ImGuiListClipper* clipper) + { + ImGuiListClipperDataResetNative(self, clipper); + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.013.cs b/Hexa.NET.ImGui/Generated/Functions.013.cs new file mode 100644 index 0000000..0384bac --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.013.cs @@ -0,0 +1,4060 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + /// /// To be documented. /// public static void ImGuiListClipperDataReset( ImGuiListClipperData* self, ref ImGuiListClipper clipper) + { + fixed (ImGuiListClipper* pclipper = &clipper) + { + ImGuiListClipperDataResetNative(self, (ImGuiListClipper*)pclipper); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNavItemData_ImGuiNavItemData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiNavItemData* ImGuiNavItemDataImGuiNavItemDataNative(); + + /// /// To be documented. /// public static ImGuiNavItemData* ImGuiNavItemDataImGuiNavItemData() + { + ImGuiNavItemData* ret = ImGuiNavItemDataImGuiNavItemDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNavItemData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNavItemDataDestroyNative(ImGuiNavItemData* self); + + /// /// To be documented. /// public static void ImGuiNavItemDataDestroy( ImGuiNavItemData* self) + { + ImGuiNavItemDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNavItemData_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNavItemDataClearNative(ImGuiNavItemData* self); + + /// /// To be documented. /// public static void ImGuiNavItemDataClear( ImGuiNavItemData* self) + { + ImGuiNavItemDataClearNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTypingSelectState_ImGuiTypingSelectState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTypingSelectState* ImGuiTypingSelectStateImGuiTypingSelectStateNative(); + + /// /// To be documented. /// public static ImGuiTypingSelectState* ImGuiTypingSelectStateImGuiTypingSelectState() + { + ImGuiTypingSelectState* ret = ImGuiTypingSelectStateImGuiTypingSelectStateNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTypingSelectState_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTypingSelectStateDestroyNative(ImGuiTypingSelectState* self); + + /// /// To be documented. /// public static void ImGuiTypingSelectStateDestroy( ImGuiTypingSelectState* self) + { + ImGuiTypingSelectStateDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTypingSelectState_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTypingSelectStateClearNative(ImGuiTypingSelectState* self); + + /// /// To be documented. /// public static void ImGuiTypingSelectStateClear( ImGuiTypingSelectState* self) + { + ImGuiTypingSelectStateClearNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiOldColumnData_ImGuiOldColumnData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiOldColumnData* ImGuiOldColumnDataImGuiOldColumnDataNative(); + + /// /// To be documented. /// public static ImGuiOldColumnData* ImGuiOldColumnDataImGuiOldColumnData() + { + ImGuiOldColumnData* ret = ImGuiOldColumnDataImGuiOldColumnDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiOldColumnData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiOldColumnDataDestroyNative(ImGuiOldColumnData* self); + + /// /// To be documented. /// public static void ImGuiOldColumnDataDestroy( ImGuiOldColumnData* self) + { + ImGuiOldColumnDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiOldColumns_ImGuiOldColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiOldColumns* ImGuiOldColumnsImGuiOldColumnsNative(); + + /// /// To be documented. /// public static ImGuiOldColumns* ImGuiOldColumnsImGuiOldColumns() + { + ImGuiOldColumns* ret = ImGuiOldColumnsImGuiOldColumnsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiOldColumns_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiOldColumnsDestroyNative(ImGuiOldColumns* self); + + /// /// To be documented. /// public static void ImGuiOldColumnsDestroy( ImGuiOldColumns* self) + { + ImGuiOldColumnsDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_ImGuiDockNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* ImGuiDockNodeImGuiDockNodeNative(uint id); + + /// /// To be documented. /// public static ImGuiDockNode* ImGuiDockNodeImGuiDockNode( uint id) + { + ImGuiDockNode* ret = ImGuiDockNodeImGuiDockNodeNative(id); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDockNodeDestroyNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static void ImGuiDockNodeDestroy( ImGuiDockNode* self) + { + ImGuiDockNodeDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsRootNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsRootNodeNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsRootNode( ImGuiDockNode* self) + { + byte ret = ImGuiDockNodeIsRootNodeNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsDockSpace")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsDockSpaceNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsDockSpace( ImGuiDockNode* self) + { + byte ret = ImGuiDockNodeIsDockSpaceNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsFloatingNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsFloatingNodeNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsFloatingNode( ImGuiDockNode* self) + { + byte ret = ImGuiDockNodeIsFloatingNodeNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsCentralNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsCentralNodeNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsCentralNode( ImGuiDockNode* self) + { + byte ret = ImGuiDockNodeIsCentralNodeNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsHiddenTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsHiddenTabBarNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsHiddenTabBar( ImGuiDockNode* self) + { + byte ret = ImGuiDockNodeIsHiddenTabBarNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsNoTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsNoTabBarNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsNoTabBar( ImGuiDockNode* self) + { + byte ret = ImGuiDockNodeIsNoTabBarNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsSplitNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsSplitNodeNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsSplitNode( ImGuiDockNode* self) + { + byte ret = ImGuiDockNodeIsSplitNodeNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsLeafNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsLeafNodeNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsLeafNode( ImGuiDockNode* self) + { + byte ret = ImGuiDockNodeIsLeafNodeNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsEmpty")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsEmptyNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsEmpty( ImGuiDockNode* self) + { + byte ret = ImGuiDockNodeIsEmptyNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_Rect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDockNodeRectNative(ImRect* pOut, ImGuiDockNode* self); + + /// /// To be documented. /// public static void ImGuiDockNodeRect( ImRect* pOut, ImGuiDockNode* self) + { + ImGuiDockNodeRectNative(pOut, self); + } + + /// /// To be documented. /// public static void ImGuiDockNodeRect( ImRect* pOut, ref ImGuiDockNode self) + { + fixed (ImGuiDockNode* pself = &self) + { + ImGuiDockNodeRectNative(pOut, (ImGuiDockNode*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_SetLocalFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDockNodeSetLocalFlagsNative(ImGuiDockNode* self, int flags); + + /// /// To be documented. /// public static void ImGuiDockNodeSetLocalFlags( ImGuiDockNode* self, int flags) + { + ImGuiDockNodeSetLocalFlagsNative(self, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_UpdateMergedFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDockNodeUpdateMergedFlagsNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static void ImGuiDockNodeUpdateMergedFlags( ImGuiDockNode* self) + { + ImGuiDockNodeUpdateMergedFlagsNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockContext_ImGuiDockContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockContext* ImGuiDockContextImGuiDockContextNative(); + + /// /// To be documented. /// public static ImGuiDockContext* ImGuiDockContextImGuiDockContext() + { + ImGuiDockContext* ret = ImGuiDockContextImGuiDockContextNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockContext_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDockContextDestroyNative(ImGuiDockContext* self); + + /// /// To be documented. /// public static void ImGuiDockContextDestroy( ImGuiDockContext* self) + { + ImGuiDockContextDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_ImGuiViewportP")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewportP* ImGuiViewportPImGuiViewportPNative(); + + /// /// To be documented. /// public static ImGuiViewportP* ImGuiViewportPImGuiViewportP() + { + ImGuiViewportP* ret = ImGuiViewportPImGuiViewportPNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPDestroyNative(ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPDestroy( ImGuiViewportP* self) + { + ImGuiViewportPDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_ClearRequestFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPClearRequestFlagsNative(ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPClearRequestFlags( ImGuiViewportP* self) + { + ImGuiViewportPClearRequestFlagsNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_CalcWorkRectPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPCalcWorkRectPosNative(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin); + + /// /// To be documented. /// public static void ImGuiViewportPCalcWorkRectPos( Vector2* pOut, ImGuiViewportP* self, Vector2 offMin) + { + ImGuiViewportPCalcWorkRectPosNative(pOut, self, offMin); + } + + /// /// To be documented. /// public static void ImGuiViewportPCalcWorkRectPos( Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiViewportPCalcWorkRectPosNative(pOut, (ImGuiViewportP*)pself, offMin); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_CalcWorkRectSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPCalcWorkRectSizeNative(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin, Vector2 offMax); + + /// /// To be documented. /// public static void ImGuiViewportPCalcWorkRectSize( Vector2* pOut, ImGuiViewportP* self, Vector2 offMin, Vector2 offMax) + { + ImGuiViewportPCalcWorkRectSizeNative(pOut, self, offMin, offMax); + } + + /// /// To be documented. /// public static void ImGuiViewportPCalcWorkRectSize( Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiViewportPCalcWorkRectSizeNative(pOut, (ImGuiViewportP*)pself, offMin, offMax); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_UpdateWorkRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPUpdateWorkRectNative(ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPUpdateWorkRect( ImGuiViewportP* self) + { + ImGuiViewportPUpdateWorkRectNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_GetMainRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPGetMainRectNative(ImRect* pOut, ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPGetMainRect( ImRect* pOut, ImGuiViewportP* self) + { + ImGuiViewportPGetMainRectNative(pOut, self); + } + + /// /// To be documented. /// public static void ImGuiViewportPGetMainRect( ImRect* pOut, ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiViewportPGetMainRectNative(pOut, (ImGuiViewportP*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_GetWorkRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPGetWorkRectNative(ImRect* pOut, ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPGetWorkRect( ImRect* pOut, ImGuiViewportP* self) + { + ImGuiViewportPGetWorkRectNative(pOut, self); + } + + /// /// To be documented. /// public static void ImGuiViewportPGetWorkRect( ImRect* pOut, ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiViewportPGetWorkRectNative(pOut, (ImGuiViewportP*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_GetBuildWorkRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPGetBuildWorkRectNative(ImRect* pOut, ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPGetBuildWorkRect( ImRect* pOut, ImGuiViewportP* self) + { + ImGuiViewportPGetBuildWorkRectNative(pOut, self); + } + + /// /// To be documented. /// public static void ImGuiViewportPGetBuildWorkRect( ImRect* pOut, ref ImGuiViewportP self) + { + fixed (ImGuiViewportP* pself = &self) + { + ImGuiViewportPGetBuildWorkRectNative(pOut, (ImGuiViewportP*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindowSettings_ImGuiWindowSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindowSettings* ImGuiWindowSettingsImGuiWindowSettingsNative(); + + /// /// To be documented. /// public static ImGuiWindowSettings* ImGuiWindowSettingsImGuiWindowSettings() + { + ImGuiWindowSettings* ret = ImGuiWindowSettingsImGuiWindowSettingsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindowSettings_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiWindowSettingsDestroyNative(ImGuiWindowSettings* self); + + /// /// To be documented. /// public static void ImGuiWindowSettingsDestroy( ImGuiWindowSettings* self) + { + ImGuiWindowSettingsDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindowSettings_GetName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImGuiWindowSettingsGetNameNative(ImGuiWindowSettings* self); + + /// /// To be documented. /// public static byte* ImGuiWindowSettingsGetName( ImGuiWindowSettings* self) + { + byte* ret = ImGuiWindowSettingsGetNameNative(self); + return ret; + } + + /// /// To be documented. /// public static string ImGuiWindowSettingsGetNameS( ImGuiWindowSettings* self) + { + string ret = Utils.DecodeStringUTF8(ImGuiWindowSettingsGetNameNative(self)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiSettingsHandler_ImGuiSettingsHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiSettingsHandler* ImGuiSettingsHandlerImGuiSettingsHandlerNative(); + + /// /// To be documented. /// public static ImGuiSettingsHandler* ImGuiSettingsHandlerImGuiSettingsHandler() + { + ImGuiSettingsHandler* ret = ImGuiSettingsHandlerImGuiSettingsHandlerNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiSettingsHandler_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiSettingsHandlerDestroyNative(ImGuiSettingsHandler* self); + + /// /// To be documented. /// public static void ImGuiSettingsHandlerDestroy( ImGuiSettingsHandler* self) + { + ImGuiSettingsHandlerDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDebugAllocInfo_ImGuiDebugAllocInfo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDebugAllocInfo* ImGuiDebugAllocInfoImGuiDebugAllocInfoNative(); + + /// /// To be documented. /// public static ImGuiDebugAllocInfo* ImGuiDebugAllocInfoImGuiDebugAllocInfo() + { + ImGuiDebugAllocInfo* ret = ImGuiDebugAllocInfoImGuiDebugAllocInfoNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDebugAllocInfo_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDebugAllocInfoDestroyNative(ImGuiDebugAllocInfo* self); + + /// /// To be documented. /// public static void ImGuiDebugAllocInfoDestroy( ImGuiDebugAllocInfo* self) + { + ImGuiDebugAllocInfoDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackLevelInfo_ImGuiStackLevelInfo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStackLevelInfo* ImGuiStackLevelInfoImGuiStackLevelInfoNative(); + + /// /// To be documented. /// public static ImGuiStackLevelInfo* ImGuiStackLevelInfoImGuiStackLevelInfo() + { + ImGuiStackLevelInfo* ret = ImGuiStackLevelInfoImGuiStackLevelInfoNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackLevelInfo_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiStackLevelInfoDestroyNative(ImGuiStackLevelInfo* self); + + /// /// To be documented. /// public static void ImGuiStackLevelInfoDestroy( ImGuiStackLevelInfo* self) + { + ImGuiStackLevelInfoDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIDStackTool_ImGuiIDStackTool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiIDStackTool* ImGuiIDStackToolImGuiIDStackToolNative(); + + /// /// To be documented. /// public static ImGuiIDStackTool* ImGuiIDStackToolImGuiIDStackTool() + { + ImGuiIDStackTool* ret = ImGuiIDStackToolImGuiIDStackToolNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIDStackTool_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiIDStackToolDestroyNative(ImGuiIDStackTool* self); + + /// /// To be documented. /// public static void ImGuiIDStackToolDestroy( ImGuiIDStackTool* self) + { + ImGuiIDStackToolDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiContextHook_ImGuiContextHook")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiContextHook* ImGuiContextHookImGuiContextHookNative(); + + /// /// To be documented. /// public static ImGuiContextHook* ImGuiContextHookImGuiContextHook() + { + ImGuiContextHook* ret = ImGuiContextHookImGuiContextHookNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiContextHook_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiContextHookDestroyNative(ImGuiContextHook* self); + + /// /// To be documented. /// public static void ImGuiContextHookDestroy( ImGuiContextHook* self) + { + ImGuiContextHookDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiContext_ImGuiContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiContext* ImGuiContextImGuiContextNative(ImFontAtlas* sharedFontAtlas); + + /// /// To be documented. /// public static ImGuiContext* ImGuiContextImGuiContext( ImFontAtlas* sharedFontAtlas) + { + ImGuiContext* ret = ImGuiContextImGuiContextNative(sharedFontAtlas); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiContext_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiContextDestroyNative(ImGuiContext* self); + + /// /// To be documented. /// public static void ImGuiContextDestroy( ImGuiContext* self) + { + ImGuiContextDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_ImGuiWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* ImGuiWindowImGuiWindowNative(ImGuiContext* context, byte* name); + + /// /// To be documented. /// public static ImGuiWindow* ImGuiWindowImGuiWindow( ImGuiContext* context, byte* name) + { + ImGuiWindow* ret = ImGuiWindowImGuiWindowNative(context, name); + return ret; + } + + /// /// To be documented. /// public static ImGuiWindow* ImGuiWindowImGuiWindow( ImGuiContext* context, ref byte name) + { + fixed (byte* pname = &name) + { + ImGuiWindow* ret = ImGuiWindowImGuiWindowNative(context, (byte*)pname); + return ret; + } + } + + /// /// To be documented. /// public static ImGuiWindow* ImGuiWindowImGuiWindow( ImGuiContext* context, string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiWindow* ret = ImGuiWindowImGuiWindowNative(context, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiWindowDestroyNative(ImGuiWindow* self); + + /// /// To be documented. /// public static void ImGuiWindowDestroy( ImGuiWindow* self) + { + ImGuiWindowDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_GetID_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImGuiWindowGetIDNative(ImGuiWindow* self, byte* str, byte* strEnd); + + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, byte* str, byte* strEnd) + { + uint ret = ImGuiWindowGetIDNative(self, str, strEnd); + return ret; + } + + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, ref byte str, byte* strEnd) + { + fixed (byte* pstr = &str) + { + uint ret = ImGuiWindowGetIDNative(self, (byte*)pstr, strEnd); + return ret; + } + } + + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, string str, byte* strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = ImGuiWindowGetIDNative(self, pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, byte* str, ref byte strEnd) + { + fixed (byte* pstrEnd = &strEnd) + { + uint ret = ImGuiWindowGetIDNative(self, str, (byte*)pstrEnd); + return ret; + } + } + + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, byte* str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = ImGuiWindowGetIDNative(self, str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, ref byte str, ref byte strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + uint ret = ImGuiWindowGetIDNative(self, (byte*)pstr, (byte*)pstrEnd); + return ret; + } + } + } + + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, string str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (strEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + uint ret = ImGuiWindowGetIDNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_GetID_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImGuiWindowGetIDPtrNative(ImGuiWindow* self, void* ptr); + + /// /// To be documented. /// public static uint ImGuiWindowGetIDPtr( ImGuiWindow* self, void* ptr) + { + uint ret = ImGuiWindowGetIDPtrNative(self, ptr); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_GetID_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImGuiWindowGetIDIntNative(ImGuiWindow* self, int n); + + /// /// To be documented. /// public static uint ImGuiWindowGetIDInt( ImGuiWindow* self, int n) + { + uint ret = ImGuiWindowGetIDIntNative(self, n); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_GetIDFromRectangle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImGuiWindowGetIDFromRectangleNative(ImGuiWindow* self, ImRect rAbs); + + /// /// To be documented. /// public static uint ImGuiWindowGetIDFromRectangle( ImGuiWindow* self, ImRect rAbs) + { + uint ret = ImGuiWindowGetIDFromRectangleNative(self, rAbs); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_Rect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiWindowRectNative(ImRect* pOut, ImGuiWindow* self); + + /// /// To be documented. /// public static void ImGuiWindowRect( ImRect* pOut, ImGuiWindow* self) + { + ImGuiWindowRectNative(pOut, self); + } + + /// /// To be documented. /// public static void ImGuiWindowRect( ImRect* pOut, ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImGuiWindowRectNative(pOut, (ImGuiWindow*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_CalcFontSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImGuiWindowCalcFontSizeNative(ImGuiWindow* self); + + /// /// To be documented. /// public static float ImGuiWindowCalcFontSize( ImGuiWindow* self) + { + float ret = ImGuiWindowCalcFontSizeNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_TitleBarHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImGuiWindowTitleBarHeightNative(ImGuiWindow* self); + + /// /// To be documented. /// public static float ImGuiWindowTitleBarHeight( ImGuiWindow* self) + { + float ret = ImGuiWindowTitleBarHeightNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_TitleBarRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiWindowTitleBarRectNative(ImRect* pOut, ImGuiWindow* self); + + /// /// To be documented. /// public static void ImGuiWindowTitleBarRect( ImRect* pOut, ImGuiWindow* self) + { + ImGuiWindowTitleBarRectNative(pOut, self); + } + + /// /// To be documented. /// public static void ImGuiWindowTitleBarRect( ImRect* pOut, ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImGuiWindowTitleBarRectNative(pOut, (ImGuiWindow*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_MenuBarHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImGuiWindowMenuBarHeightNative(ImGuiWindow* self); + + /// /// To be documented. /// public static float ImGuiWindowMenuBarHeight( ImGuiWindow* self) + { + float ret = ImGuiWindowMenuBarHeightNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_MenuBarRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiWindowMenuBarRectNative(ImRect* pOut, ImGuiWindow* self); + + /// /// To be documented. /// public static void ImGuiWindowMenuBarRect( ImRect* pOut, ImGuiWindow* self) + { + ImGuiWindowMenuBarRectNative(pOut, self); + } + + /// /// To be documented. /// public static void ImGuiWindowMenuBarRect( ImRect* pOut, ref ImGuiWindow self) + { + fixed (ImGuiWindow* pself = &self) + { + ImGuiWindowMenuBarRectNative(pOut, (ImGuiWindow*)pself); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTabItem_ImGuiTabItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabItem* ImGuiTabItemImGuiTabItemNative(); + + /// /// To be documented. /// public static ImGuiTabItem* ImGuiTabItemImGuiTabItem() + { + ImGuiTabItem* ret = ImGuiTabItemImGuiTabItemNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTabItem_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTabItemDestroyNative(ImGuiTabItem* self); + + /// /// To be documented. /// public static void ImGuiTabItemDestroy( ImGuiTabItem* self) + { + ImGuiTabItemDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTabBar_ImGuiTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabBar* ImGuiTabBarImGuiTabBarNative(); + + /// /// To be documented. /// public static ImGuiTabBar* ImGuiTabBarImGuiTabBar() + { + ImGuiTabBar* ret = ImGuiTabBarImGuiTabBarNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTabBar_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTabBarDestroyNative(ImGuiTabBar* self); + + /// /// To be documented. /// public static void ImGuiTabBarDestroy( ImGuiTabBar* self) + { + ImGuiTabBarDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumn_ImGuiTableColumn")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableColumn* ImGuiTableColumnImGuiTableColumnNative(); + + /// /// To be documented. /// public static ImGuiTableColumn* ImGuiTableColumnImGuiTableColumn() + { + ImGuiTableColumn* ret = ImGuiTableColumnImGuiTableColumnNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumn_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableColumnDestroyNative(ImGuiTableColumn* self); + + /// /// To be documented. /// public static void ImGuiTableColumnDestroy( ImGuiTableColumn* self) + { + ImGuiTableColumnDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableInstanceData_ImGuiTableInstanceData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableInstanceData* ImGuiTableInstanceDataImGuiTableInstanceDataNative(); + + /// /// To be documented. /// public static ImGuiTableInstanceData* ImGuiTableInstanceDataImGuiTableInstanceData() + { + ImGuiTableInstanceData* ret = ImGuiTableInstanceDataImGuiTableInstanceDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableInstanceData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableInstanceDataDestroyNative(ImGuiTableInstanceData* self); + + /// /// To be documented. /// public static void ImGuiTableInstanceDataDestroy( ImGuiTableInstanceData* self) + { + ImGuiTableInstanceDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTable_ImGuiTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTable* ImGuiTableImGuiTableNative(); + + /// /// To be documented. /// public static ImGuiTable* ImGuiTableImGuiTable() + { + ImGuiTable* ret = ImGuiTableImGuiTableNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTable_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableDestroyNative(ImGuiTable* self); + + /// /// To be documented. /// public static void ImGuiTableDestroy( ImGuiTable* self) + { + ImGuiTableDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableTempData_ImGuiTableTempData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableTempData* ImGuiTableTempDataImGuiTableTempDataNative(); + + /// /// To be documented. /// public static ImGuiTableTempData* ImGuiTableTempDataImGuiTableTempData() + { + ImGuiTableTempData* ret = ImGuiTableTempDataImGuiTableTempDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableTempData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableTempDataDestroyNative(ImGuiTableTempData* self); + + /// /// To be documented. /// public static void ImGuiTableTempDataDestroy( ImGuiTableTempData* self) + { + ImGuiTableTempDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumnSettings_ImGuiTableColumnSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableColumnSettings* ImGuiTableColumnSettingsImGuiTableColumnSettingsNative(); + + /// /// To be documented. /// public static ImGuiTableColumnSettings* ImGuiTableColumnSettingsImGuiTableColumnSettings() + { + ImGuiTableColumnSettings* ret = ImGuiTableColumnSettingsImGuiTableColumnSettingsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumnSettings_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableColumnSettingsDestroyNative(ImGuiTableColumnSettings* self); + + /// /// To be documented. /// public static void ImGuiTableColumnSettingsDestroy( ImGuiTableColumnSettings* self) + { + ImGuiTableColumnSettingsDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableSettings_ImGuiTableSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSettings* ImGuiTableSettingsImGuiTableSettingsNative(); + + /// /// To be documented. /// public static ImGuiTableSettings* ImGuiTableSettingsImGuiTableSettings() + { + ImGuiTableSettings* ret = ImGuiTableSettingsImGuiTableSettingsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableSettings_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableSettingsDestroyNative(ImGuiTableSettings* self); + + /// /// To be documented. /// public static void ImGuiTableSettingsDestroy( ImGuiTableSettings* self) + { + ImGuiTableSettingsDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableSettings_GetColumnSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableColumnSettings* ImGuiTableSettingsGetColumnSettingsNative(ImGuiTableSettings* self); + + /// /// To be documented. /// public static ImGuiTableColumnSettings* ImGuiTableSettingsGetColumnSettings( ImGuiTableSettings* self) + { + ImGuiTableColumnSettings* ret = ImGuiTableSettingsGetColumnSettingsNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCurrentWindowRead")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* GetCurrentWindowReadNative(); + + /// /// To be documented. /// public static ImGuiWindow* GetCurrentWindowRead() + { + ImGuiWindow* ret = GetCurrentWindowReadNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCurrentWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* GetCurrentWindowNative(); + + /// /// To be documented. /// public static ImGuiWindow* GetCurrentWindow() + { + ImGuiWindow* ret = GetCurrentWindowNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindWindowByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* FindWindowByIDNative(uint id); + + /// /// To be documented. /// public static ImGuiWindow* FindWindowByID( uint id) + { + ImGuiWindow* ret = FindWindowByIDNative(id); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindWindowByName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* FindWindowByNameNative(byte* name); + + /// /// To be documented. /// public static ImGuiWindow* FindWindowByName( byte* name) + { + ImGuiWindow* ret = FindWindowByNameNative(name); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdateWindowParentAndRootLinks")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdateWindowParentAndRootLinksNative(ImGuiWindow* window, int flags, ImGuiWindow* parentWindow); + + /// /// To be documented. /// public static void UpdateWindowParentAndRootLinks( ImGuiWindow* window, int flags, ImGuiWindow* parentWindow) + { + UpdateWindowParentAndRootLinksNative(window, flags, parentWindow); + } + + /// /// To be documented. /// public static void UpdateWindowParentAndRootLinks( ImGuiWindow* window, int flags, ref ImGuiWindow parentWindow) + { + fixed (ImGuiWindow* pparentWindow = &parentWindow) + { + UpdateWindowParentAndRootLinksNative(window, flags, (ImGuiWindow*)pparentWindow); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcWindowNextAutoFitSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CalcWindowNextAutoFitSizeNative(Vector2* pOut, ImGuiWindow* window); + + /// /// To be documented. /// public static void CalcWindowNextAutoFitSize( Vector2* pOut, ImGuiWindow* window) + { + CalcWindowNextAutoFitSizeNative(pOut, window); + } + + /// /// To be documented. /// public static void CalcWindowNextAutoFitSize( Vector2* pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + CalcWindowNextAutoFitSizeNative(pOut, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowChildOf")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowChildOfNative(ImGuiWindow* window, ImGuiWindow* potentialParent, byte popupHierarchy, byte dockHierarchy); + + /// /// To be documented. /// public static bool IsWindowChildOf( ImGuiWindow* window, ImGuiWindow* potentialParent, bool popupHierarchy, bool dockHierarchy) + { + byte ret = IsWindowChildOfNative(window, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; + } + + /// /// To be documented. /// public static bool IsWindowChildOf( ImGuiWindow* window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) + { + fixed (ImGuiWindow* ppotentialParent = &potentialParent) + { + byte ret = IsWindowChildOfNative(window, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowWithinBeginStackOf")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowWithinBeginStackOfNative(ImGuiWindow* window, ImGuiWindow* potentialParent); + + /// /// To be documented. /// public static bool IsWindowWithinBeginStackOf( ImGuiWindow* window, ImGuiWindow* potentialParent) + { + byte ret = IsWindowWithinBeginStackOfNative(window, potentialParent); + return ret != 0; + } + + /// /// To be documented. /// public static bool IsWindowWithinBeginStackOf( ImGuiWindow* window, ref ImGuiWindow potentialParent) + { + fixed (ImGuiWindow* ppotentialParent = &potentialParent) + { + byte ret = IsWindowWithinBeginStackOfNative(window, (ImGuiWindow*)ppotentialParent); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowAbove")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowAboveNative(ImGuiWindow* potentialAbove, ImGuiWindow* potentialBelow); + + /// /// To be documented. /// public static bool IsWindowAbove( ImGuiWindow* potentialAbove, ImGuiWindow* potentialBelow) + { + byte ret = IsWindowAboveNative(potentialAbove, potentialBelow); + return ret != 0; + } + + /// /// To be documented. /// public static bool IsWindowAbove( ImGuiWindow* potentialAbove, ref ImGuiWindow potentialBelow) + { + fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) + { + byte ret = IsWindowAboveNative(potentialAbove, (ImGuiWindow*)ppotentialBelow); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowNavFocusable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowNavFocusableNative(ImGuiWindow* window); + + /// /// To be documented. /// public static bool IsWindowNavFocusable( ImGuiWindow* window) + { + byte ret = IsWindowNavFocusableNative(window); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowPos_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowPosWindowPtrNative(ImGuiWindow* window, Vector2 pos, int cond); + + /// /// To be documented. /// public static void SetWindowPosWindowPtr( ImGuiWindow* window, Vector2 pos, int cond) + { + SetWindowPosWindowPtrNative(window, pos, cond); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowSize_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowSizeWindowPtrNative(ImGuiWindow* window, Vector2 size, int cond); + + /// /// To be documented. /// public static void SetWindowSizeWindowPtr( ImGuiWindow* window, Vector2 size, int cond) + { + SetWindowSizeWindowPtrNative(window, size, cond); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowCollapsed_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowCollapsedWindowPtrNative(ImGuiWindow* window, byte collapsed, int cond); + + /// /// To be documented. /// public static void SetWindowCollapsedWindowPtr( ImGuiWindow* window, bool collapsed, int cond) + { + SetWindowCollapsedWindowPtrNative(window, collapsed ? (byte)1 : (byte)0, cond); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowHitTestHole")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowHitTestHoleNative(ImGuiWindow* window, Vector2 pos, Vector2 size); + + /// /// To be documented. /// public static void SetWindowHitTestHole( ImGuiWindow* window, Vector2 pos, Vector2 size) + { + SetWindowHitTestHoleNative(window, pos, size); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowHiddendAndSkipItemsForCurrentFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowHiddendAndSkipItemsForCurrentFrameNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void SetWindowHiddendAndSkipItemsForCurrentFrame( ImGuiWindow* window) + { + SetWindowHiddendAndSkipItemsForCurrentFrameNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igWindowRectAbsToRel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void WindowRectAbsToRelNative(ImRect* pOut, ImGuiWindow* window, ImRect r); + + /// /// To be documented. /// public static void WindowRectAbsToRel( ImRect* pOut, ImGuiWindow* window, ImRect r) + { + WindowRectAbsToRelNative(pOut, window, r); + } + + /// /// To be documented. /// public static void WindowRectAbsToRel( ImRect* pOut, ref ImGuiWindow window, ImRect r) + { + fixed (ImGuiWindow* pwindow = &window) + { + WindowRectAbsToRelNative(pOut, (ImGuiWindow*)pwindow, r); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igWindowRectRelToAbs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void WindowRectRelToAbsNative(ImRect* pOut, ImGuiWindow* window, ImRect r); + + /// /// To be documented. /// public static void WindowRectRelToAbs( ImRect* pOut, ImGuiWindow* window, ImRect r) + { + WindowRectRelToAbsNative(pOut, window, r); + } + + /// /// To be documented. /// public static void WindowRectRelToAbs( ImRect* pOut, ref ImGuiWindow window, ImRect r) + { + fixed (ImGuiWindow* pwindow = &window) + { + WindowRectRelToAbsNative(pOut, (ImGuiWindow*)pwindow, r); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igWindowPosRelToAbs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void WindowPosRelToAbsNative(Vector2* pOut, ImGuiWindow* window, Vector2 p); + + /// /// To be documented. /// public static void WindowPosRelToAbs( Vector2* pOut, ImGuiWindow* window, Vector2 p) + { + WindowPosRelToAbsNative(pOut, window, p); + } + + /// /// To be documented. /// public static void WindowPosRelToAbs( Vector2* pOut, ref ImGuiWindow window, Vector2 p) + { + fixed (ImGuiWindow* pwindow = &window) + { + WindowPosRelToAbsNative(pOut, (ImGuiWindow*)pwindow, p); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFocusWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void FocusWindowNative(ImGuiWindow* window, int flags); + + /// /// To be documented. /// public static void FocusWindow( ImGuiWindow* window, int flags) + { + FocusWindowNative(window, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFocusTopMostWindowUnderOne")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void FocusTopMostWindowUnderOneNative(ImGuiWindow* underThisWindow, ImGuiWindow* ignoreWindow, ImGuiViewport* filterViewport, int flags); + + /// /// To be documented. /// public static void FocusTopMostWindowUnderOne( ImGuiWindow* underThisWindow, ImGuiWindow* ignoreWindow, ImGuiViewport* filterViewport, int flags) + { + FocusTopMostWindowUnderOneNative(underThisWindow, ignoreWindow, filterViewport, flags); + } + + /// /// To be documented. /// public static void FocusTopMostWindowUnderOne( ImGuiWindow* underThisWindow, ref ImGuiWindow ignoreWindow, ImGuiViewport* filterViewport, int flags) + { + fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) + { + FocusTopMostWindowUnderOneNative(underThisWindow, (ImGuiWindow*)pignoreWindow, filterViewport, flags); + } + } + + /// /// To be documented. /// public static void FocusTopMostWindowUnderOne( ImGuiWindow* underThisWindow, ImGuiWindow* ignoreWindow, ref ImGuiViewport filterViewport, int flags) + { + fixed (ImGuiViewport* pfilterViewport = &filterViewport) + { + FocusTopMostWindowUnderOneNative(underThisWindow, ignoreWindow, (ImGuiViewport*)pfilterViewport, flags); + } + } + + /// /// To be documented. /// public static void FocusTopMostWindowUnderOne( ImGuiWindow* underThisWindow, ref ImGuiWindow ignoreWindow, ref ImGuiViewport filterViewport, int flags) + { + fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) + { + fixed (ImGuiViewport* pfilterViewport = &filterViewport) + { + FocusTopMostWindowUnderOneNative(underThisWindow, (ImGuiWindow*)pignoreWindow, (ImGuiViewport*)pfilterViewport, flags); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBringWindowToFocusFront")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BringWindowToFocusFrontNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void BringWindowToFocusFront( ImGuiWindow* window) + { + BringWindowToFocusFrontNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBringWindowToDisplayFront")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BringWindowToDisplayFrontNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void BringWindowToDisplayFront( ImGuiWindow* window) + { + BringWindowToDisplayFrontNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBringWindowToDisplayBack")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BringWindowToDisplayBackNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void BringWindowToDisplayBack( ImGuiWindow* window) + { + BringWindowToDisplayBackNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBringWindowToDisplayBehind")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BringWindowToDisplayBehindNative(ImGuiWindow* window, ImGuiWindow* aboveWindow); + + /// /// To be documented. /// public static void BringWindowToDisplayBehind( ImGuiWindow* window, ImGuiWindow* aboveWindow) + { + BringWindowToDisplayBehindNative(window, aboveWindow); + } + + /// /// To be documented. /// public static void BringWindowToDisplayBehind( ImGuiWindow* window, ref ImGuiWindow aboveWindow) + { + fixed (ImGuiWindow* paboveWindow = &aboveWindow) + { + BringWindowToDisplayBehindNative(window, (ImGuiWindow*)paboveWindow); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindWindowDisplayIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int FindWindowDisplayIndexNative(ImGuiWindow* window); + + /// /// To be documented. /// public static int FindWindowDisplayIndex( ImGuiWindow* window) + { + int ret = FindWindowDisplayIndexNative(window); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindBottomMostVisibleWindowWithinBeginStack")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStackNative(ImGuiWindow* window); + + /// /// To be documented. /// public static ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack( ImGuiWindow* window) + { + ImGuiWindow* ret = FindBottomMostVisibleWindowWithinBeginStackNative(window); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCurrentFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCurrentFontNative(ImFont* font); + + /// /// To be documented. /// public static void SetCurrentFont( ImFont* font) + { + SetCurrentFontNative(font); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetDefaultFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* GetDefaultFontNative(); + + /// /// To be documented. /// public static ImFont* GetDefaultFont() + { + ImFont* ret = GetDefaultFontNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetForegroundDrawList_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetForegroundDrawListWindowPtrNative(ImGuiWindow* window); + + /// /// To be documented. /// public static ImDrawList* GetForegroundDrawListWindowPtr( ImGuiWindow* window) + { + ImDrawList* ret = GetForegroundDrawListWindowPtrNative(window); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igAddDrawListToDrawDataEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddDrawListToDrawDataExNative(ImDrawData* drawData, ImVectorImDrawListPtr* outList, ImDrawList* drawList); + + /// /// To be documented. /// public static void AddDrawListToDrawDataEx( ImDrawData* drawData, ImVectorImDrawListPtr* outList, ImDrawList* drawList) + { + AddDrawListToDrawDataExNative(drawData, outList, drawList); + } + + /// /// To be documented. /// public static void AddDrawListToDrawDataEx( ImDrawData* drawData, ref ImVectorImDrawListPtr outList, ImDrawList* drawList) + { + fixed (ImVectorImDrawListPtr* poutList = &outList) + { + AddDrawListToDrawDataExNative(drawData, (ImVectorImDrawListPtr*)poutList, drawList); + } + } + + /// /// To be documented. /// public static void AddDrawListToDrawDataEx( ImDrawData* drawData, ImVectorImDrawListPtr* outList, ref ImDrawList drawList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + AddDrawListToDrawDataExNative(drawData, outList, (ImDrawList*)pdrawList); + } + } + + /// /// To be documented. /// public static void AddDrawListToDrawDataEx( ImDrawData* drawData, ref ImVectorImDrawListPtr outList, ref ImDrawList drawList) + { + fixed (ImVectorImDrawListPtr* poutList = &outList) + { + fixed (ImDrawList* pdrawList = &drawList) + { + AddDrawListToDrawDataExNative(drawData, (ImVectorImDrawListPtr*)poutList, (ImDrawList*)pdrawList); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInitialize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void InitializeNative(); + + /// /// To be documented. /// public static void Initialize() + { + InitializeNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShutdown")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShutdownNative(); + + /// /// To be documented. /// public static void Shutdown() + { + ShutdownNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdateInputEvents")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdateInputEventsNative(byte trickleFastInputs); + + /// /// To be documented. /// public static void UpdateInputEvents( bool trickleFastInputs) + { + UpdateInputEventsNative(trickleFastInputs ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdateHoveredWindowAndCaptureFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdateHoveredWindowAndCaptureFlagsNative(); + + /// /// To be documented. /// public static void UpdateHoveredWindowAndCaptureFlags() + { + UpdateHoveredWindowAndCaptureFlagsNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igStartMouseMovingWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void StartMouseMovingWindowNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void StartMouseMovingWindow( ImGuiWindow* window) + { + StartMouseMovingWindowNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igStartMouseMovingWindowOrNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void StartMouseMovingWindowOrNodeNative(ImGuiWindow* window, ImGuiDockNode* node, byte undock); + + /// /// To be documented. /// public static void StartMouseMovingWindowOrNode( ImGuiWindow* window, ImGuiDockNode* node, bool undock) + { + StartMouseMovingWindowOrNodeNative(window, node, undock ? (byte)1 : (byte)0); + } + + /// /// To be documented. /// public static void StartMouseMovingWindowOrNode( ImGuiWindow* window, ref ImGuiDockNode node, bool undock) + { + fixed (ImGuiDockNode* pnode = &node) + { + StartMouseMovingWindowOrNodeNative(window, (ImGuiDockNode*)pnode, undock ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdateMouseMovingWindowNewFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdateMouseMovingWindowNewFrameNative(); + + /// /// To be documented. /// public static void UpdateMouseMovingWindowNewFrame() + { + UpdateMouseMovingWindowNewFrameNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdateMouseMovingWindowEndFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdateMouseMovingWindowEndFrameNative(); + + /// /// To be documented. /// public static void UpdateMouseMovingWindowEndFrame() + { + UpdateMouseMovingWindowEndFrameNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igAddContextHook")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint AddContextHookNative(ImGuiContext* context, ImGuiContextHook* hook); + + /// /// To be documented. /// public static uint AddContextHook( ImGuiContext* context, ImGuiContextHook* hook) + { + uint ret = AddContextHookNative(context, hook); + return ret; + } + + /// /// To be documented. /// public static uint AddContextHook( ImGuiContext* context, ref ImGuiContextHook hook) + { + fixed (ImGuiContextHook* phook = &hook) + { + uint ret = AddContextHookNative(context, (ImGuiContextHook*)phook); + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRemoveContextHook")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RemoveContextHookNative(ImGuiContext* context, uint hookToRemove); + + /// /// To be documented. /// public static void RemoveContextHook( ImGuiContext* context, uint hookToRemove) + { + RemoveContextHookNative(context, hookToRemove); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCallContextHooks")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CallContextHooksNative(ImGuiContext* context, ImGuiContextHookType type); + + /// /// To be documented. /// public static void CallContextHooks( ImGuiContext* context, ImGuiContextHookType type) + { + CallContextHooksNative(context, type); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTranslateWindowsInViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TranslateWindowsInViewportNative(ImGuiViewportP* viewport, Vector2 oldPos, Vector2 newPos); + + /// /// To be documented. /// public static void TranslateWindowsInViewport( ImGuiViewportP* viewport, Vector2 oldPos, Vector2 newPos) + { + TranslateWindowsInViewportNative(viewport, oldPos, newPos); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScaleWindowsInViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScaleWindowsInViewportNative(ImGuiViewportP* viewport, float scale); + + /// /// To be documented. /// public static void ScaleWindowsInViewport( ImGuiViewportP* viewport, float scale) + { + ScaleWindowsInViewportNative(viewport, scale); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDestroyPlatformWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyPlatformWindowNative(ImGuiViewportP* viewport); + + /// /// To be documented. /// public static void DestroyPlatformWindow( ImGuiViewportP* viewport) + { + DestroyPlatformWindowNative(viewport); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowViewportNative(ImGuiWindow* window, ImGuiViewportP* viewport); + + /// /// To be documented. /// public static void SetWindowViewport( ImGuiWindow* window, ImGuiViewportP* viewport) + { + SetWindowViewportNative(window, viewport); + } + + /// /// To be documented. /// public static void SetWindowViewport( ImGuiWindow* window, ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + SetWindowViewportNative(window, (ImGuiViewportP*)pviewport); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCurrentViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCurrentViewportNative(ImGuiWindow* window, ImGuiViewportP* viewport); + + /// /// To be documented. /// public static void SetCurrentViewport( ImGuiWindow* window, ImGuiViewportP* viewport) + { + SetCurrentViewportNative(window, viewport); + } + + /// /// To be documented. /// public static void SetCurrentViewport( ImGuiWindow* window, ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + SetCurrentViewportNative(window, (ImGuiViewportP*)pviewport); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetViewportPlatformMonitor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPlatformMonitor* GetViewportPlatformMonitorNative(ImGuiViewport* viewport); + + /// /// To be documented. /// public static ImGuiPlatformMonitor* GetViewportPlatformMonitor( ImGuiViewport* viewport) + { + ImGuiPlatformMonitor* ret = GetViewportPlatformMonitorNative(viewport); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindHoveredViewportFromPlatformWindowStack")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewportP* FindHoveredViewportFromPlatformWindowStackNative(Vector2 mousePlatformPos); + + /// /// To be documented. /// public static ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack( Vector2 mousePlatformPos) + { + ImGuiViewportP* ret = FindHoveredViewportFromPlatformWindowStackNative(mousePlatformPos); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMarkIniSettingsDirty_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void MarkIniSettingsDirtyNilNative(); + + /// /// To be documented. /// public static void MarkIniSettingsDirtyNil() + { + MarkIniSettingsDirtyNilNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMarkIniSettingsDirty_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void MarkIniSettingsDirtyWindowPtrNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void MarkIniSettingsDirtyWindowPtr( ImGuiWindow* window) + { + MarkIniSettingsDirtyWindowPtrNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClearIniSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearIniSettingsNative(); + + /// /// To be documented. /// public static void ClearIniSettings() + { + ClearIniSettingsNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igAddSettingsHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddSettingsHandlerNative(ImGuiSettingsHandler* handler); + + /// /// To be documented. /// public static void AddSettingsHandler( ImGuiSettingsHandler* handler) + { + AddSettingsHandlerNative(handler); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRemoveSettingsHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RemoveSettingsHandlerNative(byte* typeName); + + /// /// To be documented. /// public static void RemoveSettingsHandler( byte* typeName) + { + RemoveSettingsHandlerNative(typeName); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindSettingsHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiSettingsHandler* FindSettingsHandlerNative(byte* typeName); + + /// /// To be documented. /// public static ImGuiSettingsHandler* FindSettingsHandler( byte* typeName) + { + ImGuiSettingsHandler* ret = FindSettingsHandlerNative(typeName); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCreateNewWindowSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindowSettings* CreateNewWindowSettingsNative(byte* name); + + /// /// To be documented. /// public static ImGuiWindowSettings* CreateNewWindowSettings( byte* name) + { + ImGuiWindowSettings* ret = CreateNewWindowSettingsNative(name); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindWindowSettingsByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindowSettings* FindWindowSettingsByIDNative(uint id); + + /// /// To be documented. /// public static ImGuiWindowSettings* FindWindowSettingsByID( uint id) + { + ImGuiWindowSettings* ret = FindWindowSettingsByIDNative(id); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindWindowSettingsByWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindowSettings* FindWindowSettingsByWindowNative(ImGuiWindow* window); + + /// /// To be documented. /// public static ImGuiWindowSettings* FindWindowSettingsByWindow( ImGuiWindow* window) + { + ImGuiWindowSettings* ret = FindWindowSettingsByWindowNative(window); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClearWindowSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearWindowSettingsNative(byte* name); + + /// /// To be documented. /// public static void ClearWindowSettings( byte* name) + { + ClearWindowSettingsNative(name); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLocalizeRegisterEntries")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LocalizeRegisterEntriesNative(ImGuiLocEntry* entries, int count); + + /// /// To be documented. /// public static void LocalizeRegisterEntries( ImGuiLocEntry* entries, int count) + { + LocalizeRegisterEntriesNative(entries, count); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLocalizeGetMsg")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* LocalizeGetMsgNative(ImGuiLocKey key); + + /// /// To be documented. /// public static byte* LocalizeGetMsg( ImGuiLocKey key) + { + byte* ret = LocalizeGetMsgNative(key); + return ret; + } + + /// /// To be documented. /// public static string LocalizeGetMsgS( ImGuiLocKey key) + { + string ret = Utils.DecodeStringUTF8(LocalizeGetMsgNative(key)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollX_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollXWindowPtrNative(ImGuiWindow* window, float scrollX); + + /// /// To be documented. /// public static void SetScrollXWindowPtr( ImGuiWindow* window, float scrollX) + { + SetScrollXWindowPtrNative(window, scrollX); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollY_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollYWindowPtrNative(ImGuiWindow* window, float scrollY); + + /// /// To be documented. /// public static void SetScrollYWindowPtr( ImGuiWindow* window, float scrollY) + { + SetScrollYWindowPtrNative(window, scrollY); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollFromPosX_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollFromPosXWindowPtrNative(ImGuiWindow* window, float localX, float centerXRatio); + + /// /// To be documented. /// public static void SetScrollFromPosXWindowPtr( ImGuiWindow* window, float localX, float centerXRatio) + { + SetScrollFromPosXWindowPtrNative(window, localX, centerXRatio); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollFromPosY_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollFromPosYWindowPtrNative(ImGuiWindow* window, float localY, float centerYRatio); + + /// /// To be documented. /// public static void SetScrollFromPosYWindowPtr( ImGuiWindow* window, float localY, float centerYRatio) + { + SetScrollFromPosYWindowPtrNative(window, localY, centerYRatio); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollToItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScrollToItemNative(int flags); + + /// /// To be documented. /// public static void ScrollToItem( int flags) + { + ScrollToItemNative(flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollToRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScrollToRectNative(ImGuiWindow* window, ImRect rect, int flags); + + /// /// To be documented. /// public static void ScrollToRect( ImGuiWindow* window, ImRect rect, int flags) + { + ScrollToRectNative(window, rect, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollToRectEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScrollToRectExNative(Vector2* pOut, ImGuiWindow* window, ImRect rect, int flags); + + /// /// To be documented. /// public static void ScrollToRectEx( Vector2* pOut, ImGuiWindow* window, ImRect rect, int flags) + { + ScrollToRectExNative(pOut, window, rect, flags); + } + + /// /// To be documented. /// public static void ScrollToRectEx( Vector2* pOut, ref ImGuiWindow window, ImRect rect, int flags) + { + fixed (ImGuiWindow* pwindow = &window) + { + ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, flags); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollToBringRectIntoView")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScrollToBringRectIntoViewNative(ImGuiWindow* window, ImRect rect); + + /// /// To be documented. /// public static void ScrollToBringRectIntoView( ImGuiWindow* window, ImRect rect) + { + ScrollToBringRectIntoViewNative(window, rect); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetItemStatusFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetItemStatusFlagsNative(); + + /// /// To be documented. /// public static int GetItemStatusFlags() + { + int ret = GetItemStatusFlagsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetItemFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetItemFlagsNative(); + + /// /// To be documented. /// public static int GetItemFlags() + { + int ret = GetItemFlagsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetActiveID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetActiveIDNative(); + + /// /// To be documented. /// public static uint GetActiveID() + { + uint ret = GetActiveIDNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFocusID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetFocusIDNative(); + + /// /// To be documented. /// public static uint GetFocusID() + { + uint ret = GetFocusIDNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetActiveID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetActiveIDNative(uint id, ImGuiWindow* window); + + /// /// To be documented. /// public static void SetActiveID( uint id, ImGuiWindow* window) + { + SetActiveIDNative(id, window); + } + + /// /// To be documented. /// public static void SetActiveID( uint id, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetActiveIDNative(id, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetFocusID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetFocusIDNative(uint id, ImGuiWindow* window); + + /// /// To be documented. /// public static void SetFocusID( uint id, ImGuiWindow* window) + { + SetFocusIDNative(id, window); + } + + /// /// To be documented. /// public static void SetFocusID( uint id, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + SetFocusIDNative(id, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClearActiveID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearActiveIDNative(); + + /// /// To be documented. /// public static void ClearActiveID() + { + ClearActiveIDNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetHoveredID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetHoveredIDNative(); + + /// /// To be documented. /// public static uint GetHoveredID() + { + uint ret = GetHoveredIDNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetHoveredID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetHoveredIDNative(uint id); + + /// /// To be documented. /// public static void SetHoveredID( uint id) + { + SetHoveredIDNative(id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igKeepAliveID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void KeepAliveIDNative(uint id); + + /// /// To be documented. /// public static void KeepAliveID( uint id) + { + KeepAliveIDNative(id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMarkItemEdited")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void MarkItemEditedNative(uint id); + + /// /// To be documented. /// public static void MarkItemEdited( uint id) + { + MarkItemEditedNative(id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushOverrideID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushOverrideIDNative(uint id); + + /// /// To be documented. /// public static void PushOverrideID( uint id) + { + PushOverrideIDNative(id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetIDWithSeed_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetIDWithSeedNative(byte* strIdBegin, byte* strIdEnd, uint seed); + + /// /// To be documented. /// public static uint GetIDWithSeed( byte* strIdBegin, byte* strIdEnd, uint seed) + { + uint ret = GetIDWithSeedNative(strIdBegin, strIdEnd, seed); + return ret; + } + + /// /// To be documented. /// public static uint GetIDWithSeed( byte* strIdBegin, ref byte strIdEnd, uint seed) + { + fixed (byte* pstrIdEnd = &strIdEnd) + { + uint ret = GetIDWithSeedNative(strIdBegin, (byte*)pstrIdEnd, seed); + return ret; + } + } + + /// /// To be documented. /// public static uint GetIDWithSeed( byte* strIdBegin, string strIdEnd, uint seed) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDWithSeedNative(strIdBegin, pStr0, seed); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetIDWithSeed_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetIDWithSeedIntNative(int n, uint seed); + + /// /// To be documented. /// public static uint GetIDWithSeedInt( int n, uint seed) + { + uint ret = GetIDWithSeedIntNative(n, seed); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igItemSize_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ItemSizeVec2Native(Vector2 size, float textBaselineY); + + /// /// To be documented. /// public static void ItemSizeVec2( Vector2 size, float textBaselineY) + { + ItemSizeVec2Native(size, textBaselineY); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igItemSize_Rect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ItemSizeRectNative(ImRect bb, float textBaselineY); + + /// /// To be documented. /// public static void ItemSizeRect( ImRect bb, float textBaselineY) + { + ItemSizeRectNative(bb, textBaselineY); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igItemAdd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ItemAddNative(ImRect bb, uint id, ImRect* navBb, int extraFlags); + + /// /// To be documented. /// public static bool ItemAdd( ImRect bb, uint id, ImRect* navBb, int extraFlags) + { + byte ret = ItemAddNative(bb, id, navBb, extraFlags); + return ret != 0; + } + + /// /// To be documented. /// public static bool ItemAdd( ImRect bb, uint id, ref ImRect navBb, int extraFlags) + { + fixed (ImRect* pnavBb = &navBb) + { + byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, extraFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igItemHoverable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ItemHoverableNative(ImRect bb, uint id, int itemFlags); + + /// /// To be documented. /// public static bool ItemHoverable( ImRect bb, uint id, int itemFlags) + { + byte ret = ItemHoverableNative(bb, id, itemFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowContentHoverable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowContentHoverableNative(ImGuiWindow* window, int flags); + + /// /// To be documented. /// public static bool IsWindowContentHoverable( ImGuiWindow* window, int flags) + { + byte ret = IsWindowContentHoverableNative(window, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsClippedEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsClippedExNative(ImRect bb, uint id); + + /// /// To be documented. /// public static bool IsClippedEx( ImRect bb, uint id) + { + byte ret = IsClippedExNative(bb, id); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetLastItemData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetLastItemDataNative(uint itemId, int inFlags, int statusFlags, ImRect itemRect); + + /// /// To be documented. /// public static void SetLastItemData( uint itemId, int inFlags, int statusFlags, ImRect itemRect) + { + SetLastItemDataNative(itemId, inFlags, statusFlags, itemRect); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcItemSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CalcItemSizeNative(Vector2* pOut, Vector2 size, float defaultW, float defaultH); + + /// /// To be documented. /// public static void CalcItemSize( Vector2* pOut, Vector2 size, float defaultW, float defaultH) + { + CalcItemSizeNative(pOut, size, defaultW, defaultH); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcWrapWidthForPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float CalcWrapWidthForPosNative(Vector2 pos, float wrapPosX); + + /// /// To be documented. /// public static float CalcWrapWidthForPos( Vector2 pos, float wrapPosX) + { + float ret = CalcWrapWidthForPosNative(pos, wrapPosX); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushMultiItemsWidths")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushMultiItemsWidthsNative(int components, float widthFull); + + /// /// To be documented. /// public static void PushMultiItemsWidths( int components, float widthFull) + { + PushMultiItemsWidthsNative(components, widthFull); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemToggledSelection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemToggledSelectionNative(); + + /// /// To be documented. /// public static bool IsItemToggledSelection() + { + byte ret = IsItemToggledSelectionNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetContentRegionMaxAbs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetContentRegionMaxAbsNative(Vector2* pOut); + + /// /// To be documented. /// public static void GetContentRegionMaxAbs( Vector2* pOut) + { + GetContentRegionMaxAbsNative(pOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShrinkWidths")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShrinkWidthsNative(ImGuiShrinkWidthItem* items, int count, float widthExcess); + + /// /// To be documented. /// public static void ShrinkWidths( ImGuiShrinkWidthItem* items, int count, float widthExcess) + { + ShrinkWidthsNative(items, count, widthExcess); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushItemFlag")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushItemFlagNative(int option, byte enabled); + + /// /// To be documented. /// public static void PushItemFlag( int option, bool enabled) + { + PushItemFlagNative(option, enabled ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopItemFlag")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopItemFlagNative(); + + /// /// To be documented. /// public static void PopItemFlag() + { + PopItemFlagNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetStyleVarInfo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDataVarInfo* GetStyleVarInfoNative(int idx); + + /// /// To be documented. /// public static ImGuiDataVarInfo* GetStyleVarInfo( int idx) + { + ImGuiDataVarInfo* ret = GetStyleVarInfoNative(idx); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogBegin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogBeginNative(ImGuiLogType type, int autoOpenDepth); + + /// /// To be documented. /// public static void LogBegin( ImGuiLogType type, int autoOpenDepth) + { + LogBeginNative(type, autoOpenDepth); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogToBuffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogToBufferNative(int autoOpenDepth); + + /// /// To be documented. /// public static void LogToBuffer( int autoOpenDepth) + { + LogToBufferNative(autoOpenDepth); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogRenderedText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogRenderedTextNative(Vector2* refPos, byte* text, byte* textEnd); + + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, byte* text, byte* textEnd) + { + LogRenderedTextNative(refPos, text, textEnd); + } + + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) + { + LogRenderedTextNative(refPos, (byte*)ptext, textEnd); + } + } + + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, string text, byte* textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative(refPos, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + LogRenderedTextNative(refPos, text, (byte*)ptextEnd); + } + } + + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogRenderedTextNative(refPos, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, ref byte text, ref byte textEnd) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, string text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + LogRenderedTextNative(refPos, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogSetNextTextDecoration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogSetNextTextDecorationNative(byte* prefix, byte* suffix); + + /// /// To be documented. /// public static void LogSetNextTextDecoration( byte* prefix, byte* suffix) + { + LogSetNextTextDecorationNative(prefix, suffix); + } + + /// /// To be documented. /// public static void LogSetNextTextDecoration( byte* prefix, ref byte suffix) + { + fixed (byte* psuffix = &suffix) + { + LogSetNextTextDecorationNative(prefix, (byte*)psuffix); + } + } + + /// /// To be documented. /// public static void LogSetNextTextDecoration( byte* prefix, string suffix) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (suffix != null) + { + pStrSize0 = Utils.GetByteCountUTF8(suffix); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LogSetNextTextDecorationNative(prefix, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginChildEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginChildExNative(byte* name, uint id, Vector2 sizeArg, byte border, int windowFlags); + + /// /// To be documented. /// public static bool BeginChildEx( byte* name, uint id, Vector2 sizeArg, bool border, int windowFlags) + { + byte ret = BeginChildExNative(name, id, sizeArg, border ? (byte)1 : (byte)0, windowFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igOpenPopupEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void OpenPopupExNative(uint id, int popupFlags); + + /// /// To be documented. /// public static void OpenPopupEx( uint id, int popupFlags) + { + OpenPopupExNative(id, popupFlags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClosePopupToLevel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClosePopupToLevelNative(int remaining, byte restoreFocusToWindowUnderPopup); + + /// /// To be documented. /// public static void ClosePopupToLevel( int remaining, bool restoreFocusToWindowUnderPopup) + { + ClosePopupToLevelNative(remaining, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClosePopupsOverWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClosePopupsOverWindowNative(ImGuiWindow* refWindow, byte restoreFocusToWindowUnderPopup); + + /// /// To be documented. /// public static void ClosePopupsOverWindow( ImGuiWindow* refWindow, bool restoreFocusToWindowUnderPopup) + { + ClosePopupsOverWindowNative(refWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClosePopupsExceptModals")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClosePopupsExceptModalsNative(); + + /// /// To be documented. /// public static void ClosePopupsExceptModals() + { + ClosePopupsExceptModalsNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsPopupOpen_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsPopupOpenIDNative(uint id, int popupFlags); + + /// /// To be documented. /// public static bool IsPopupOpenID( uint id, int popupFlags) + { + byte ret = IsPopupOpenIDNative(id, popupFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginPopupEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupExNative(uint id, int extraFlags); + + /// /// To be documented. /// public static bool BeginPopupEx( uint id, int extraFlags) + { + byte ret = BeginPopupExNative(id, extraFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTooltipEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTooltipExNative(int tooltipFlags, int extraWindowFlags); + + /// /// To be documented. /// public static bool BeginTooltipEx( int tooltipFlags, int extraWindowFlags) + { + byte ret = BeginTooltipExNative(tooltipFlags, extraWindowFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTooltipHidden")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTooltipHiddenNative(); + + /// /// To be documented. /// public static bool BeginTooltipHidden() + { + byte ret = BeginTooltipHiddenNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetPopupAllowedExtentRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetPopupAllowedExtentRectNative(ImRect* pOut, ImGuiWindow* window); + + /// /// To be documented. /// public static void GetPopupAllowedExtentRect( ImRect* pOut, ImGuiWindow* window) + { + GetPopupAllowedExtentRectNative(pOut, window); + } + + /// /// To be documented. /// public static void GetPopupAllowedExtentRect( ImRect* pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + GetPopupAllowedExtentRectNative(pOut, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTopMostPopupModal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* GetTopMostPopupModalNative(); + + /// /// To be documented. /// public static ImGuiWindow* GetTopMostPopupModal() + { + ImGuiWindow* ret = GetTopMostPopupModalNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTopMostAndVisiblePopupModal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* GetTopMostAndVisiblePopupModalNative(); + + /// /// To be documented. /// public static ImGuiWindow* GetTopMostAndVisiblePopupModal() + { + ImGuiWindow* ret = GetTopMostAndVisiblePopupModalNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindBlockingModal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* FindBlockingModalNative(ImGuiWindow* window); + + /// /// To be documented. /// public static ImGuiWindow* FindBlockingModal( ImGuiWindow* window) + { + ImGuiWindow* ret = FindBlockingModalNative(window); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindBestWindowPosForPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void FindBestWindowPosForPopupNative(Vector2* pOut, ImGuiWindow* window); + + /// /// To be documented. /// public static void FindBestWindowPosForPopup( Vector2* pOut, ImGuiWindow* window) + { + FindBestWindowPosForPopupNative(pOut, window); + } + + /// /// To be documented. /// public static void FindBestWindowPosForPopup( Vector2* pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + FindBestWindowPosForPopupNative(pOut, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindBestWindowPosForPopupEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void FindBestWindowPosForPopupExNative(Vector2* pOut, Vector2 refPos, Vector2 size, int* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy); + + /// /// To be documented. /// public static void FindBestWindowPosForPopupEx( Vector2* pOut, Vector2 refPos, Vector2 size, int* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) + { + FindBestWindowPosForPopupExNative(pOut, refPos, size, lastDir, rOuter, rAvoid, policy); + } + + /// /// To be documented. /// public static void FindBestWindowPosForPopupEx( Vector2* pOut, Vector2 refPos, Vector2 size, ref int lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) + { + fixed (int* plastDir = &lastDir) + { + FindBestWindowPosForPopupExNative(pOut, refPos, size, (int*)plastDir, rOuter, rAvoid, policy); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginViewportSideBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginViewportSideBarNative(byte* name, ImGuiViewport* viewport, int dir, float size, int windowFlags); + + /// /// To be documented. /// public static bool BeginViewportSideBar( byte* name, ImGuiViewport* viewport, int dir, float size, int windowFlags) + { + byte ret = BeginViewportSideBarNative(name, viewport, dir, size, windowFlags); + return ret != 0; + } + + /// /// To be documented. /// public static bool BeginViewportSideBar( byte* name, ref ImGuiViewport viewport, int dir, float size, int windowFlags) + { + fixed (ImGuiViewport* pviewport = &viewport) + { + byte ret = BeginViewportSideBarNative(name, (ImGuiViewport*)pviewport, dir, size, windowFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginMenuEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginMenuExNative(byte* label, byte* icon, byte enabled); + + /// /// To be documented. /// public static bool BeginMenuEx( byte* label, byte* icon, bool enabled) + { + byte ret = BeginMenuExNative(label, icon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + /// /// To be documented. /// public static bool BeginMenuEx( byte* label, ref byte icon, bool enabled) + { + fixed (byte* picon = &icon) + { + byte ret = BeginMenuExNative(label, (byte*)picon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool BeginMenuEx( byte* label, string icon, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginMenuExNative(label, pStr0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMenuItemEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte MenuItemExNative(byte* label, byte* icon, byte* shortcut, byte selected, byte enabled); + + /// /// To be documented. /// public static bool MenuItemEx( byte* label, byte* icon, byte* shortcut, bool selected, bool enabled) + { + byte ret = MenuItemExNative(label, icon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + /// /// To be documented. /// public static bool MenuItemEx( byte* label, ref byte icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* picon = &icon) + { + byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool MenuItemEx( byte* label, string icon, byte* shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// /// To be documented. /// public static bool MenuItemEx( byte* label, byte* icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool MenuItemEx( byte* label, byte* icon, string shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (shortcut != null) + { + pStrSize0 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// /// To be documented. /// public static bool MenuItemEx( byte* label, ref byte icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* picon = &icon) + { + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool MenuItemEx( byte* label, string icon, string shortcut, bool selected, bool enabled) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) + { + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (shortcut != null) + { + pStrSize1 = Utils.GetByteCountUTF8(shortcut); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = MenuItemExNative(label, pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginComboPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginComboPopupNative(uint popupId, ImRect bb, int flags); + + /// /// To be documented. /// public static bool BeginComboPopup( uint popupId, ImRect bb, int flags) + { + byte ret = BeginComboPopupNative(popupId, bb, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginComboPreview")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginComboPreviewNative(); + + /// /// To be documented. /// public static bool BeginComboPreview() + { + byte ret = BeginComboPreviewNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndComboPreview")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndComboPreviewNative(); + + /// /// To be documented. /// public static void EndComboPreview() + { + EndComboPreviewNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavInitWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavInitWindowNative(ImGuiWindow* window, byte forceReinit); + + /// /// To be documented. /// public static void NavInitWindow( ImGuiWindow* window, bool forceReinit) + { + NavInitWindowNative(window, forceReinit ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavInitRequestApplyResult")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavInitRequestApplyResultNative(); + + /// /// To be documented. /// public static void NavInitRequestApplyResult() + { + NavInitRequestApplyResultNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestButNoResultYet")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte NavMoveRequestButNoResultYetNative(); + + /// /// To be documented. /// public static bool NavMoveRequestButNoResultYet() + { + byte ret = NavMoveRequestButNoResultYetNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestSubmit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestSubmitNative(int moveDir, int clipDir, int moveFlags, int scrollFlags); + + /// /// To be documented. /// public static void NavMoveRequestSubmit( int moveDir, int clipDir, int moveFlags, int scrollFlags) + { + NavMoveRequestSubmitNative(moveDir, clipDir, moveFlags, scrollFlags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestForward")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestForwardNative(int moveDir, int clipDir, int moveFlags, int scrollFlags); + + /// /// To be documented. /// public static void NavMoveRequestForward( int moveDir, int clipDir, int moveFlags, int scrollFlags) + { + NavMoveRequestForwardNative(moveDir, clipDir, moveFlags, scrollFlags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestResolveWithLastItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestResolveWithLastItemNative(ImGuiNavItemData* result); + + /// /// To be documented. /// public static void NavMoveRequestResolveWithLastItem( ImGuiNavItemData* result) + { + NavMoveRequestResolveWithLastItemNative(result); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestResolveWithPastTreeNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestResolveWithPastTreeNodeNative(ImGuiNavItemData* result, ImGuiNavTreeNodeData* treeNodeData); + + /// /// To be documented. /// public static void NavMoveRequestResolveWithPastTreeNode( ImGuiNavItemData* result, ImGuiNavTreeNodeData* treeNodeData) + { + NavMoveRequestResolveWithPastTreeNodeNative(result, treeNodeData); + } + + /// /// To be documented. /// public static void NavMoveRequestResolveWithPastTreeNode( ImGuiNavItemData* result, ref ImGuiNavTreeNodeData treeNodeData) + { + fixed (ImGuiNavTreeNodeData* ptreeNodeData = &treeNodeData) + { + NavMoveRequestResolveWithPastTreeNodeNative(result, (ImGuiNavTreeNodeData*)ptreeNodeData); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestCancel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestCancelNative(); + + /// /// To be documented. /// public static void NavMoveRequestCancel() + { + NavMoveRequestCancelNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestApplyResult")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestApplyResultNative(); + + /// /// To be documented. /// public static void NavMoveRequestApplyResult() + { + NavMoveRequestApplyResultNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestTryWrapping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestTryWrappingNative(ImGuiWindow* window, int moveFlags); + + /// /// To be documented. /// public static void NavMoveRequestTryWrapping( ImGuiWindow* window, int moveFlags) + { + NavMoveRequestTryWrappingNative(window, moveFlags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavClearPreferredPosForAxis")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavClearPreferredPosForAxisNative(ImGuiAxis axis); + + /// /// To be documented. /// public static void NavClearPreferredPosForAxis( ImGuiAxis axis) + { + NavClearPreferredPosForAxisNative(axis); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavRestoreHighlightAfterMove")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavRestoreHighlightAfterMoveNative(); + + /// /// To be documented. /// public static void NavRestoreHighlightAfterMove() + { + NavRestoreHighlightAfterMoveNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavUpdateCurrentWindowIsScrollPushableX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavUpdateCurrentWindowIsScrollPushableXNative(); + + /// /// To be documented. /// public static void NavUpdateCurrentWindowIsScrollPushableX() + { + NavUpdateCurrentWindowIsScrollPushableXNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNavWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNavWindowNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void SetNavWindow( ImGuiWindow* window) + { + SetNavWindowNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNavID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNavIDNative(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel); + + /// /// To be documented. /// public static void SetNavID( uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) + { + SetNavIDNative(id, navLayer, focusScopeId, rectRel); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFocusItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void FocusItemNative(); + + /// /// To be documented. /// public static void FocusItem() + { + FocusItemNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igActivateItemByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ActivateItemByIDNative(uint id); + + /// /// To be documented. /// public static void ActivateItemByID( uint id) + { + ActivateItemByIDNative(id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsNamedKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsNamedKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsNamedKey( ImGuiKey key) + { + byte ret = IsNamedKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsNamedKeyOrModKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsNamedKeyOrModKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsNamedKeyOrModKey( ImGuiKey key) + { + byte ret = IsNamedKeyOrModKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsLegacyKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsLegacyKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsLegacyKey( ImGuiKey key) + { + byte ret = IsLegacyKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyboardKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyboardKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsKeyboardKey( ImGuiKey key) + { + byte ret = IsKeyboardKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsGamepadKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsGamepadKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsGamepadKey( ImGuiKey key) + { + byte ret = IsGamepadKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsMouseKey( ImGuiKey key) + { + byte ret = IsMouseKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsAliasKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsAliasKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsAliasKey( ImGuiKey key) + { + byte ret = IsAliasKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igConvertShortcutMod")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ConvertShortcutModNative(int keyChord); + + /// /// To be documented. /// public static int ConvertShortcutMod( int keyChord) + { + int ret = ConvertShortcutModNative(keyChord); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igConvertSingleModFlagToKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKey ConvertSingleModFlagToKeyNative(ImGuiContext* ctx, ImGuiKey key); + + /// /// To be documented. /// public static ImGuiKey ConvertSingleModFlagToKey( ImGuiContext* ctx, ImGuiKey key) + { + ImGuiKey ret = ConvertSingleModFlagToKeyNative(ctx, key); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyData_ContextPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyData* GetKeyDataContextPtrNative(ImGuiContext* ctx, ImGuiKey key); + + /// /// To be documented. /// public static ImGuiKeyData* GetKeyDataContextPtr( ImGuiContext* ctx, ImGuiKey key) + { + ImGuiKeyData* ret = GetKeyDataContextPtrNative(ctx, key); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyData_Key")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyData* GetKeyDataKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static ImGuiKeyData* GetKeyDataKey( ImGuiKey key) + { + ImGuiKeyData* ret = GetKeyDataKeyNative(key); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMouseButtonToKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKey MouseButtonToKeyNative(int button); + + /// /// To be documented. /// public static ImGuiKey MouseButtonToKey( int button) + { + ImGuiKey ret = MouseButtonToKeyNative(button); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseDragPastThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseDragPastThresholdNative(int button, float lockThreshold); + + /// /// To be documented. /// public static bool IsMouseDragPastThreshold( int button, float lockThreshold) + { + byte ret = IsMouseDragPastThresholdNative(button, lockThreshold); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyMagnitude2d")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetKeyMagnitude2DNative(Vector2* pOut, ImGuiKey keyLeft, ImGuiKey keyRight, ImGuiKey keyUp, ImGuiKey keyDown); + + /// /// To be documented. /// public static void GetKeyMagnitude2D( Vector2* pOut, ImGuiKey keyLeft, ImGuiKey keyRight, ImGuiKey keyUp, ImGuiKey keyDown) + { + GetKeyMagnitude2DNative(pOut, keyLeft, keyRight, keyUp, keyDown); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetNavTweakPressedAmount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetNavTweakPressedAmountNative(ImGuiAxis axis); + + /// /// To be documented. /// public static float GetNavTweakPressedAmount( ImGuiAxis axis) + { + float ret = GetNavTweakPressedAmountNative(axis); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcTypematicRepeatAmount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int CalcTypematicRepeatAmountNative(float t0, float t1, float repeatDelay, float repeatRate); + + /// /// To be documented. /// public static int CalcTypematicRepeatAmount( float t0, float t1, float repeatDelay, float repeatRate) + { + int ret = CalcTypematicRepeatAmountNative(t0, t1, repeatDelay, repeatRate); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTypematicRepeatRate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetTypematicRepeatRateNative(int flags, float* repeatDelay, float* repeatRate); + + /// /// To be documented. /// public static void GetTypematicRepeatRate( int flags, float* repeatDelay, float* repeatRate) + { + GetTypematicRepeatRateNative(flags, repeatDelay, repeatRate); + } + + /// /// To be documented. /// public static void GetTypematicRepeatRate( int flags, ref float repeatDelay, float* repeatRate) + { + fixed (float* prepeatDelay = &repeatDelay) + { + GetTypematicRepeatRateNative(flags, (float*)prepeatDelay, repeatRate); + } + } + + /// /// To be documented. /// public static void GetTypematicRepeatRate( int flags, float* repeatDelay, ref float repeatRate) + { + fixed (float* prepeatRate = &repeatRate) + { + GetTypematicRepeatRateNative(flags, repeatDelay, (float*)prepeatRate); + } + } + + /// /// To be documented. /// public static void GetTypematicRepeatRate( int flags, ref float repeatDelay, ref float repeatRate) + { + fixed (float* prepeatDelay = &repeatDelay) + { + fixed (float* prepeatRate = &repeatRate) + { + GetTypematicRepeatRateNative(flags, (float*)prepeatDelay, (float*)prepeatRate); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTeleportMousePos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TeleportMousePosNative(Vector2 pos); + + /// /// To be documented. /// public static void TeleportMousePos( Vector2 pos) + { + TeleportMousePosNative(pos); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetActiveIdUsingAllKeyboardKeys")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetActiveIdUsingAllKeyboardKeysNative(); + + /// /// To be documented. /// public static void SetActiveIdUsingAllKeyboardKeys() + { + SetActiveIdUsingAllKeyboardKeysNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsActiveIdUsingNavDir")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsActiveIdUsingNavDirNative(int dir); + + /// /// To be documented. /// public static bool IsActiveIdUsingNavDir( int dir) + { + byte ret = IsActiveIdUsingNavDirNative(dir); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyOwner")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetKeyOwnerNative(ImGuiKey key); + + /// /// To be documented. /// public static uint GetKeyOwner( ImGuiKey key) + { + uint ret = GetKeyOwnerNative(key); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetKeyOwner")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetKeyOwnerNative(ImGuiKey key, uint ownerId, int flags); + + /// /// To be documented. /// public static void SetKeyOwner( ImGuiKey key, uint ownerId, int flags) + { + SetKeyOwnerNative(key, ownerId, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetKeyOwnersForKeyChord")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetKeyOwnersForKeyChordNative(int key, uint ownerId, int flags); + + /// /// To be documented. /// public static void SetKeyOwnersForKeyChord( int key, uint ownerId, int flags) + { + SetKeyOwnersForKeyChordNative(key, ownerId, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetItemKeyOwner")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetItemKeyOwnerNative(ImGuiKey key, int flags); + + /// /// To be documented. /// public static void SetItemKeyOwner( ImGuiKey key, int flags) + { + SetItemKeyOwnerNative(key, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTestKeyOwner")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TestKeyOwnerNative(ImGuiKey key, uint ownerId); + + /// /// To be documented. /// public static bool TestKeyOwner( ImGuiKey key, uint ownerId) + { + byte ret = TestKeyOwnerNative(key, ownerId); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyOwnerData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyOwnerData* GetKeyOwnerDataNative(ImGuiContext* ctx, ImGuiKey key); + + /// /// To be documented. /// public static ImGuiKeyOwnerData* GetKeyOwnerData( ImGuiContext* ctx, ImGuiKey key) + { + ImGuiKeyOwnerData* ret = GetKeyOwnerDataNative(ctx, key); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyDown_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyDownIDNative(ImGuiKey key, uint ownerId); + + /// /// To be documented. /// public static bool IsKeyDownID( ImGuiKey key, uint ownerId) + { + byte ret = IsKeyDownIDNative(key, ownerId); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyPressed_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyPressedIDNative(ImGuiKey key, uint ownerId, int flags); + + /// /// To be documented. /// public static bool IsKeyPressedID( ImGuiKey key, uint ownerId, int flags) + { + byte ret = IsKeyPressedIDNative(key, ownerId, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyReleased_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyReleasedIDNative(ImGuiKey key, uint ownerId); + + /// /// To be documented. /// public static bool IsKeyReleasedID( ImGuiKey key, uint ownerId) + { + byte ret = IsKeyReleasedIDNative(key, ownerId); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseDown_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseDownIDNative(int button, uint ownerId); + + /// /// To be documented. /// public static bool IsMouseDownID( int button, uint ownerId) + { + byte ret = IsMouseDownIDNative(button, ownerId); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseClicked_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseClickedIDNative(int button, uint ownerId, int flags); + + /// /// To be documented. /// public static bool IsMouseClickedID( int button, uint ownerId, int flags) + { + byte ret = IsMouseClickedIDNative(button, ownerId, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseReleased_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseReleasedIDNative(int button, uint ownerId); + + /// /// To be documented. /// public static bool IsMouseReleasedID( int button, uint ownerId) + { + byte ret = IsMouseReleasedIDNative(button, ownerId); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyChordPressed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyChordPressedNative(int keyChord, uint ownerId, int flags); + + /// /// To be documented. /// public static bool IsKeyChordPressed( int keyChord, uint ownerId, int flags) + { + byte ret = IsKeyChordPressedNative(keyChord, ownerId, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShortcut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ShortcutNative(int keyChord, uint ownerId, int flags); + + /// /// To be documented. /// public static bool Shortcut( int keyChord, uint ownerId, int flags) + { + byte ret = ShortcutNative(keyChord, ownerId, flags); + return ret != 0; + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.014.cs b/Hexa.NET.ImGui/Generated/Functions.014.cs new file mode 100644 index 0000000..843b44c --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.014.cs @@ -0,0 +1,4202 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetShortcutRouting")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SetShortcutRoutingNative(int keyChord, uint ownerId, int flags); + + /// /// To be documented. /// public static bool SetShortcutRouting( int keyChord, uint ownerId, int flags) + { + byte ret = SetShortcutRoutingNative(keyChord, ownerId, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTestShortcutRouting")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TestShortcutRoutingNative(int keyChord, uint ownerId); + + /// /// To be documented. /// public static bool TestShortcutRouting( int keyChord, uint ownerId) + { + byte ret = TestShortcutRoutingNative(keyChord, ownerId); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetShortcutRoutingData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyRoutingData* GetShortcutRoutingDataNative(int keyChord); + + /// /// To be documented. /// public static ImGuiKeyRoutingData* GetShortcutRoutingData( int keyChord) + { + ImGuiKeyRoutingData* ret = GetShortcutRoutingDataNative(keyChord); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextInitialize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextInitializeNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static void DockContextInitialize( ImGuiContext* ctx) + { + DockContextInitializeNative(ctx); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextShutdown")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextShutdownNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static void DockContextShutdown( ImGuiContext* ctx) + { + DockContextShutdownNative(ctx); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextClearNodes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextClearNodesNative(ImGuiContext* ctx, uint rootId, byte clearSettingsRefs); + + /// /// To be documented. /// public static void DockContextClearNodes( ImGuiContext* ctx, uint rootId, bool clearSettingsRefs) + { + DockContextClearNodesNative(ctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextRebuildNodes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextRebuildNodesNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static void DockContextRebuildNodes( ImGuiContext* ctx) + { + DockContextRebuildNodesNative(ctx); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextNewFrameUpdateUndocking")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextNewFrameUpdateUndockingNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static void DockContextNewFrameUpdateUndocking( ImGuiContext* ctx) + { + DockContextNewFrameUpdateUndockingNative(ctx); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextNewFrameUpdateDocking")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextNewFrameUpdateDockingNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static void DockContextNewFrameUpdateDocking( ImGuiContext* ctx) + { + DockContextNewFrameUpdateDockingNative(ctx); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextEndFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextEndFrameNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static void DockContextEndFrame( ImGuiContext* ctx) + { + DockContextEndFrameNative(ctx); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextGenNodeID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockContextGenNodeIDNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static uint DockContextGenNodeID( ImGuiContext* ctx) + { + uint ret = DockContextGenNodeIDNative(ctx); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextQueueDock")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextQueueDockNative(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, int splitDir, float splitRatio, byte splitOuter); + + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, int splitDir, float splitRatio, bool splitOuter) + { + DockContextQueueDockNative(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ref ImGuiWindow target, ImGuiDockNode* targetNode, ImGuiWindow* payload, int splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ptarget = &target) + { + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ImGuiWindow* target, ref ImGuiDockNode targetNode, ImGuiWindow* payload, int splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindow* payload, int splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ref ImGuiWindow payload, int splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative(ctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ref ImGuiWindow target, ImGuiDockNode* targetNode, ref ImGuiWindow payload, int splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ImGuiWindow* target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, int splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, int splitDir, float splitRatio, bool splitOuter) + { + fixed (ImGuiWindow* ptarget = &target) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayload = &payload) + { + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextQueueUndockWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextQueueUndockWindowNative(ImGuiContext* ctx, ImGuiWindow* window); + + /// /// To be documented. /// public static void DockContextQueueUndockWindow( ImGuiContext* ctx, ImGuiWindow* window) + { + DockContextQueueUndockWindowNative(ctx, window); + } + + /// /// To be documented. /// public static void DockContextQueueUndockWindow( ImGuiContext* ctx, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + DockContextQueueUndockWindowNative(ctx, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextQueueUndockNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextQueueUndockNodeNative(ImGuiContext* ctx, ImGuiDockNode* node); + + /// /// To be documented. /// public static void DockContextQueueUndockNode( ImGuiContext* ctx, ImGuiDockNode* node) + { + DockContextQueueUndockNodeNative(ctx, node); + } + + /// /// To be documented. /// public static void DockContextQueueUndockNode( ImGuiContext* ctx, ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + DockContextQueueUndockNodeNative(ctx, (ImGuiDockNode*)pnode); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextProcessUndockWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextProcessUndockWindowNative(ImGuiContext* ctx, ImGuiWindow* window, byte clearPersistentDockingRef); + + /// /// To be documented. /// public static void DockContextProcessUndockWindow( ImGuiContext* ctx, ImGuiWindow* window, bool clearPersistentDockingRef) + { + DockContextProcessUndockWindowNative(ctx, window, clearPersistentDockingRef ? (byte)1 : (byte)0); + } + + /// /// To be documented. /// public static void DockContextProcessUndockWindow( ImGuiContext* ctx, ref ImGuiWindow window, bool clearPersistentDockingRef) + { + fixed (ImGuiWindow* pwindow = &window) + { + DockContextProcessUndockWindowNative(ctx, (ImGuiWindow*)pwindow, clearPersistentDockingRef ? (byte)1 : (byte)0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextProcessUndockNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextProcessUndockNodeNative(ImGuiContext* ctx, ImGuiDockNode* node); + + /// /// To be documented. /// public static void DockContextProcessUndockNode( ImGuiContext* ctx, ImGuiDockNode* node) + { + DockContextProcessUndockNodeNative(ctx, node); + } + + /// /// To be documented. /// public static void DockContextProcessUndockNode( ImGuiContext* ctx, ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) + { + DockContextProcessUndockNodeNative(ctx, (ImGuiDockNode*)pnode); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextCalcDropPosForDocking")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DockContextCalcDropPosForDockingNative(ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payloadWindow, ImGuiDockNode* payloadNode, int splitDir, byte splitOuter, Vector2* outPos); + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, Vector2* outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ImGuiWindow* payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ref ImGuiWindow payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ref ImGuiWindow payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ImGuiWindow* payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ref ImGuiWindow payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + { + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ref ImGuiWindow payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + { + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + } + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ImGuiWindow* payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ref ImGuiWindow payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ref ImGuiWindow payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ImGuiWindow* payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ref ImGuiWindow payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + { + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ref ImGuiWindow payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + { + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + { + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextFindNodeByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* DockContextFindNodeByIDNative(ImGuiContext* ctx, uint id); + + /// /// To be documented. /// public static ImGuiDockNode* DockContextFindNodeByID( ImGuiContext* ctx, uint id) + { + ImGuiDockNode* ret = DockContextFindNodeByIDNative(ctx, id); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockNodeWindowMenuHandler_Default")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockNodeWindowMenuHandlerDefaultNative(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tabBar); + + /// /// To be documented. /// public static void DockNodeWindowMenuHandlerDefault( ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tabBar) + { + DockNodeWindowMenuHandlerDefaultNative(ctx, node, tabBar); + } + + /// /// To be documented. /// public static void DockNodeWindowMenuHandlerDefault( ImGuiContext* ctx, ref ImGuiDockNode node, ImGuiTabBar* tabBar) + { + fixed (ImGuiDockNode* pnode = &node) + { + DockNodeWindowMenuHandlerDefaultNative(ctx, (ImGuiDockNode*)pnode, tabBar); + } + } + + /// /// To be documented. /// public static void DockNodeWindowMenuHandlerDefault( ImGuiContext* ctx, ImGuiDockNode* node, ref ImGuiTabBar tabBar) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + DockNodeWindowMenuHandlerDefaultNative(ctx, node, (ImGuiTabBar*)ptabBar); + } + } + + /// /// To be documented. /// public static void DockNodeWindowMenuHandlerDefault( ImGuiContext* ctx, ref ImGuiDockNode node, ref ImGuiTabBar tabBar) + { + fixed (ImGuiDockNode* pnode = &node) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + DockNodeWindowMenuHandlerDefaultNative(ctx, (ImGuiDockNode*)pnode, (ImGuiTabBar*)ptabBar); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockNodeBeginAmendTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DockNodeBeginAmendTabBarNative(ImGuiDockNode* node); + + /// /// To be documented. /// public static bool DockNodeBeginAmendTabBar( ImGuiDockNode* node) + { + byte ret = DockNodeBeginAmendTabBarNative(node); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockNodeEndAmendTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockNodeEndAmendTabBarNative(); + + /// /// To be documented. /// public static void DockNodeEndAmendTabBar() + { + DockNodeEndAmendTabBarNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockNodeGetRootNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* DockNodeGetRootNodeNative(ImGuiDockNode* node); + + /// /// To be documented. /// public static ImGuiDockNode* DockNodeGetRootNode( ImGuiDockNode* node) + { + ImGuiDockNode* ret = DockNodeGetRootNodeNative(node); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockNodeIsInHierarchyOf")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DockNodeIsInHierarchyOfNative(ImGuiDockNode* node, ImGuiDockNode* parent); + + /// /// To be documented. /// public static bool DockNodeIsInHierarchyOf( ImGuiDockNode* node, ImGuiDockNode* parent) + { + byte ret = DockNodeIsInHierarchyOfNative(node, parent); + return ret != 0; + } + + /// /// To be documented. /// public static bool DockNodeIsInHierarchyOf( ImGuiDockNode* node, ref ImGuiDockNode parent) + { + fixed (ImGuiDockNode* pparent = &parent) + { + byte ret = DockNodeIsInHierarchyOfNative(node, (ImGuiDockNode*)pparent); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockNodeGetDepth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int DockNodeGetDepthNative(ImGuiDockNode* node); + + /// /// To be documented. /// public static int DockNodeGetDepth( ImGuiDockNode* node) + { + int ret = DockNodeGetDepthNative(node); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockNodeGetWindowMenuButtonId")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockNodeGetWindowMenuButtonIdNative(ImGuiDockNode* node); + + /// /// To be documented. /// public static uint DockNodeGetWindowMenuButtonId( ImGuiDockNode* node) + { + uint ret = DockNodeGetWindowMenuButtonIdNative(node); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowDockNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* GetWindowDockNodeNative(); + + /// /// To be documented. /// public static ImGuiDockNode* GetWindowDockNode() + { + ImGuiDockNode* ret = GetWindowDockNodeNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowAlwaysWantOwnTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte GetWindowAlwaysWantOwnTabBarNative(ImGuiWindow* window); + + /// /// To be documented. /// public static bool GetWindowAlwaysWantOwnTabBar( ImGuiWindow* window) + { + byte ret = GetWindowAlwaysWantOwnTabBarNative(window); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDocked")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginDockedNative(ImGuiWindow* window, byte* pOpen); + + /// /// To be documented. /// public static void BeginDocked( ImGuiWindow* window, byte* pOpen) + { + BeginDockedNative(window, pOpen); + } + + /// /// To be documented. /// public static void BeginDocked( ImGuiWindow* window, ref byte pOpen) + { + fixed (byte* ppOpen = &pOpen) + { + BeginDockedNative(window, (byte*)ppOpen); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDockableDragDropSource")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginDockableDragDropSourceNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void BeginDockableDragDropSource( ImGuiWindow* window) + { + BeginDockableDragDropSourceNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDockableDragDropTarget")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginDockableDragDropTargetNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void BeginDockableDragDropTarget( ImGuiWindow* window) + { + BeginDockableDragDropTargetNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowDock")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowDockNative(ImGuiWindow* window, uint dockId, int cond); + + /// /// To be documented. /// public static void SetWindowDock( ImGuiWindow* window, uint dockId, int cond) + { + SetWindowDockNative(window, dockId, cond); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderDockWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderDockWindowNative(byte* windowName, uint nodeId); + + /// /// To be documented. /// public static void DockBuilderDockWindow( byte* windowName, uint nodeId) + { + DockBuilderDockWindowNative(windowName, nodeId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderGetNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* DockBuilderGetNodeNative(uint nodeId); + + /// /// To be documented. /// public static ImGuiDockNode* DockBuilderGetNode( uint nodeId) + { + ImGuiDockNode* ret = DockBuilderGetNodeNative(nodeId); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderGetCentralNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* DockBuilderGetCentralNodeNative(uint nodeId); + + /// /// To be documented. /// public static ImGuiDockNode* DockBuilderGetCentralNode( uint nodeId) + { + ImGuiDockNode* ret = DockBuilderGetCentralNodeNative(nodeId); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderAddNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockBuilderAddNodeNative(uint nodeId, int flags); + + /// /// To be documented. /// public static uint DockBuilderAddNode( uint nodeId, int flags) + { + uint ret = DockBuilderAddNodeNative(nodeId, flags); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderRemoveNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderRemoveNodeNative(uint nodeId); + + /// /// To be documented. /// public static void DockBuilderRemoveNode( uint nodeId) + { + DockBuilderRemoveNodeNative(nodeId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderRemoveNodeDockedWindows")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderRemoveNodeDockedWindowsNative(uint nodeId, byte clearSettingsRefs); + + /// /// To be documented. /// public static void DockBuilderRemoveNodeDockedWindows( uint nodeId, bool clearSettingsRefs) + { + DockBuilderRemoveNodeDockedWindowsNative(nodeId, clearSettingsRefs ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderRemoveNodeChildNodes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderRemoveNodeChildNodesNative(uint nodeId); + + /// /// To be documented. /// public static void DockBuilderRemoveNodeChildNodes( uint nodeId) + { + DockBuilderRemoveNodeChildNodesNative(nodeId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderSetNodePos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderSetNodePosNative(uint nodeId, Vector2 pos); + + /// /// To be documented. /// public static void DockBuilderSetNodePos( uint nodeId, Vector2 pos) + { + DockBuilderSetNodePosNative(nodeId, pos); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderSetNodeSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderSetNodeSizeNative(uint nodeId, Vector2 size); + + /// /// To be documented. /// public static void DockBuilderSetNodeSize( uint nodeId, Vector2 size) + { + DockBuilderSetNodeSizeNative(nodeId, size); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderSplitNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockBuilderSplitNodeNative(uint nodeId, int splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir); + + /// /// To be documented. /// public static uint DockBuilderSplitNode( uint nodeId, int splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) + { + uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); + return ret; + } + + /// /// To be documented. /// public static uint DockBuilderSplitNode( uint nodeId, int splitDir, float sizeRatioForNodeAtDir, ref uint outIdAtDir, uint* outIdAtOppositeDir) + { + fixed (uint* poutIdAtDir = &outIdAtDir) + { + uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, (uint*)poutIdAtDir, outIdAtOppositeDir); + return ret; + } + } + + /// /// To be documented. /// public static uint DockBuilderSplitNode( uint nodeId, int splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, ref uint outIdAtOppositeDir) + { + fixed (uint* poutIdAtOppositeDir = &outIdAtOppositeDir) + { + uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, (uint*)poutIdAtOppositeDir); + return ret; + } + } + + /// /// To be documented. /// public static uint DockBuilderSplitNode( uint nodeId, int splitDir, float sizeRatioForNodeAtDir, ref uint outIdAtDir, ref uint outIdAtOppositeDir) + { + fixed (uint* poutIdAtDir = &outIdAtDir) + { + fixed (uint* poutIdAtOppositeDir = &outIdAtOppositeDir) + { + uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, (uint*)poutIdAtDir, (uint*)poutIdAtOppositeDir); + return ret; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderCopyDockSpace")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderCopyDockSpaceNative(uint srcDockspaceId, uint dstDockspaceId, ImVectorConstCharPtr* inWindowRemapPairs); + + /// /// To be documented. /// public static void DockBuilderCopyDockSpace( uint srcDockspaceId, uint dstDockspaceId, ImVectorConstCharPtr* inWindowRemapPairs) + { + DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); + } + + /// /// To be documented. /// public static void DockBuilderCopyDockSpace( uint srcDockspaceId, uint dstDockspaceId, ref ImVectorConstCharPtr inWindowRemapPairs) + { + fixed (ImVectorConstCharPtr* pinWindowRemapPairs = &inWindowRemapPairs) + { + DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, (ImVectorConstCharPtr*)pinWindowRemapPairs); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderCopyNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderCopyNodeNative(uint srcNodeId, uint dstNodeId, ImVectorImGuiID* outNodeRemapPairs); + + /// /// To be documented. /// public static void DockBuilderCopyNode( uint srcNodeId, uint dstNodeId, ImVectorImGuiID* outNodeRemapPairs) + { + DockBuilderCopyNodeNative(srcNodeId, dstNodeId, outNodeRemapPairs); + } + + /// /// To be documented. /// public static void DockBuilderCopyNode( uint srcNodeId, uint dstNodeId, ref ImVectorImGuiID outNodeRemapPairs) + { + fixed (ImVectorImGuiID* poutNodeRemapPairs = &outNodeRemapPairs) + { + DockBuilderCopyNodeNative(srcNodeId, dstNodeId, (ImVectorImGuiID*)poutNodeRemapPairs); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderCopyWindowSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderCopyWindowSettingsNative(byte* srcName, byte* dstName); + + /// /// To be documented. /// public static void DockBuilderCopyWindowSettings( byte* srcName, byte* dstName) + { + DockBuilderCopyWindowSettingsNative(srcName, dstName); + } + + /// /// To be documented. /// public static void DockBuilderCopyWindowSettings( byte* srcName, ref byte dstName) + { + fixed (byte* pdstName = &dstName) + { + DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName); + } + } + + /// /// To be documented. /// public static void DockBuilderCopyWindowSettings( byte* srcName, string dstName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (dstName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(dstName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DockBuilderCopyWindowSettingsNative(srcName, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderFinish")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderFinishNative(uint nodeId); + + /// /// To be documented. /// public static void DockBuilderFinish( uint nodeId) + { + DockBuilderFinishNative(nodeId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushFocusScope")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushFocusScopeNative(uint id); + + /// /// To be documented. /// public static void PushFocusScope( uint id) + { + PushFocusScopeNative(id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopFocusScope")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopFocusScopeNative(); + + /// /// To be documented. /// public static void PopFocusScope() + { + PopFocusScopeNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCurrentFocusScope")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetCurrentFocusScopeNative(); + + /// /// To be documented. /// public static uint GetCurrentFocusScope() + { + uint ret = GetCurrentFocusScopeNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsDragDropActive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsDragDropActiveNative(); + + /// /// To be documented. /// public static bool IsDragDropActive() + { + byte ret = IsDragDropActiveNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDragDropTargetCustom")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginDragDropTargetCustomNative(ImRect bb, uint id); + + /// /// To be documented. /// public static bool BeginDragDropTargetCustom( ImRect bb, uint id) + { + byte ret = BeginDragDropTargetCustomNative(bb, id); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClearDragDrop")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearDragDropNative(); + + /// /// To be documented. /// public static void ClearDragDrop() + { + ClearDragDropNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsDragDropPayloadBeingAccepted")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsDragDropPayloadBeingAcceptedNative(); + + /// /// To be documented. /// public static bool IsDragDropPayloadBeingAccepted() + { + byte ret = IsDragDropPayloadBeingAcceptedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderDragDropTargetRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderDragDropTargetRectNative(ImRect bb); + + /// /// To be documented. /// public static void RenderDragDropTargetRect( ImRect bb) + { + RenderDragDropTargetRectNative(bb); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTypingSelectRequest")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTypingSelectRequest* GetTypingSelectRequestNative(int flags); + + /// /// To be documented. /// public static ImGuiTypingSelectRequest* GetTypingSelectRequest( int flags) + { + ImGuiTypingSelectRequest* ret = GetTypingSelectRequestNative(flags); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTypingSelectFindMatch")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TypingSelectFindMatchNative(ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, byte*> getItemNameFunc, void* userData, int navItemIdx); + + /// /// To be documented. /// public static int TypingSelectFindMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, byte*> getItemNameFunc, void* userData, int navItemIdx) + { + int ret = TypingSelectFindMatchNative(req, itemsCount, getItemNameFunc, userData, navItemIdx); + return ret; + } + + /// /// To be documented. /// public static int TypingSelectFindMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, ref byte> getItemNameFunc, void* userData, int navItemIdx) + { + int ret = TypingSelectFindMatchNative(req, itemsCount, getItemNameFunc, userData, navItemIdx); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTypingSelectFindNextSingleCharMatch")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TypingSelectFindNextSingleCharMatchNative(ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, byte*> getItemNameFunc, void* userData, int navItemIdx); + + /// /// To be documented. /// public static int TypingSelectFindNextSingleCharMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, byte*> getItemNameFunc, void* userData, int navItemIdx) + { + int ret = TypingSelectFindNextSingleCharMatchNative(req, itemsCount, getItemNameFunc, userData, navItemIdx); + return ret; + } + + /// /// To be documented. /// public static int TypingSelectFindNextSingleCharMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, ref byte> getItemNameFunc, void* userData, int navItemIdx) + { + int ret = TypingSelectFindNextSingleCharMatchNative(req, itemsCount, getItemNameFunc, userData, navItemIdx); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTypingSelectFindBestLeadingMatch")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TypingSelectFindBestLeadingMatchNative(ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, byte*> getItemNameFunc, void* userData); + + /// /// To be documented. /// public static int TypingSelectFindBestLeadingMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, byte*> getItemNameFunc, void* userData) + { + int ret = TypingSelectFindBestLeadingMatchNative(req, itemsCount, getItemNameFunc, userData); + return ret; + } + + /// /// To be documented. /// public static int TypingSelectFindBestLeadingMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, ref byte> getItemNameFunc, void* userData) + { + int ret = TypingSelectFindBestLeadingMatchNative(req, itemsCount, getItemNameFunc, userData); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowClipRectBeforeSetChannel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowClipRectBeforeSetChannelNative(ImGuiWindow* window, ImRect clipRect); + + /// /// To be documented. /// public static void SetWindowClipRectBeforeSetChannel( ImGuiWindow* window, ImRect clipRect) + { + SetWindowClipRectBeforeSetChannelNative(window, clipRect); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginColumnsNative(byte* strId, int count, int flags); + + /// /// To be documented. /// public static void BeginColumns( byte* strId, int count, int flags) + { + BeginColumnsNative(strId, count, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndColumnsNative(); + + /// /// To be documented. /// public static void EndColumns() + { + EndColumnsNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushColumnClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushColumnClipRectNative(int columnIndex); + + /// /// To be documented. /// public static void PushColumnClipRect( int columnIndex) + { + PushColumnClipRectNative(columnIndex); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushColumnsBackground")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushColumnsBackgroundNative(); + + /// /// To be documented. /// public static void PushColumnsBackground() + { + PushColumnsBackgroundNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopColumnsBackground")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopColumnsBackgroundNative(); + + /// /// To be documented. /// public static void PopColumnsBackground() + { + PopColumnsBackgroundNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnsID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetColumnsIDNative(byte* strId, int count); + + /// /// To be documented. /// public static uint GetColumnsID( byte* strId, int count) + { + uint ret = GetColumnsIDNative(strId, count); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindOrCreateColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiOldColumns* FindOrCreateColumnsNative(ImGuiWindow* window, uint id); + + /// /// To be documented. /// public static ImGuiOldColumns* FindOrCreateColumns( ImGuiWindow* window, uint id) + { + ImGuiOldColumns* ret = FindOrCreateColumnsNative(window, id); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnOffsetFromNorm")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetColumnOffsetFromNormNative(ImGuiOldColumns* columns, float offsetNorm); + + /// /// To be documented. /// public static float GetColumnOffsetFromNorm( ImGuiOldColumns* columns, float offsetNorm) + { + float ret = GetColumnOffsetFromNormNative(columns, offsetNorm); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnNormFromOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetColumnNormFromOffsetNative(ImGuiOldColumns* columns, float offset); + + /// /// To be documented. /// public static float GetColumnNormFromOffset( ImGuiOldColumns* columns, float offset) + { + float ret = GetColumnNormFromOffsetNative(columns, offset); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableOpenContextMenu")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableOpenContextMenuNative(int columnN); + + /// /// To be documented. /// public static void TableOpenContextMenu( int columnN) + { + TableOpenContextMenuNative(columnN); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetColumnWidthNative(int columnN, float width); + + /// /// To be documented. /// public static void TableSetColumnWidth( int columnN, float width) + { + TableSetColumnWidthNative(columnN, width); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnSortDirection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetColumnSortDirectionNative(int columnN, int sortDirection, byte appendToSortSpecs); + + /// /// To be documented. /// public static void TableSetColumnSortDirection( int columnN, int sortDirection, bool appendToSortSpecs) + { + TableSetColumnSortDirectionNative(columnN, sortDirection, appendToSortSpecs ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetHoveredColumn")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetHoveredColumnNative(); + + /// /// To be documented. /// public static int TableGetHoveredColumn() + { + int ret = TableGetHoveredColumnNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetHoveredRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetHoveredRowNative(); + + /// /// To be documented. /// public static int TableGetHoveredRow() + { + int ret = TableGetHoveredRowNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetHeaderRowHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float TableGetHeaderRowHeightNative(); + + /// /// To be documented. /// public static float TableGetHeaderRowHeight() + { + float ret = TableGetHeaderRowHeightNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetHeaderAngledMaxLabelWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float TableGetHeaderAngledMaxLabelWidthNative(); + + /// /// To be documented. /// public static float TableGetHeaderAngledMaxLabelWidth() + { + float ret = TableGetHeaderAngledMaxLabelWidthNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTablePushBackgroundChannel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TablePushBackgroundChannelNative(); + + /// /// To be documented. /// public static void TablePushBackgroundChannel() + { + TablePushBackgroundChannelNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTablePopBackgroundChannel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TablePopBackgroundChannelNative(); + + /// /// To be documented. /// public static void TablePopBackgroundChannel() + { + TablePopBackgroundChannelNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableAngledHeadersRowEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableAngledHeadersRowExNative(float angle, float labelWidth); + + /// /// To be documented. /// public static void TableAngledHeadersRowEx( float angle, float labelWidth) + { + TableAngledHeadersRowExNative(angle, labelWidth); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCurrentTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTable* GetCurrentTableNative(); + + /// /// To be documented. /// public static ImGuiTable* GetCurrentTable() + { + ImGuiTable* ret = GetCurrentTableNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableFindByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTable* TableFindByIDNative(uint id); + + /// /// To be documented. /// public static ImGuiTable* TableFindByID( uint id) + { + ImGuiTable* ret = TableFindByIDNative(id); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTableEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTableExNative(byte* name, uint id, int columnsCount, int flags, Vector2 outerSize, float innerWidth); + + /// /// To be documented. /// public static bool BeginTableEx( byte* name, uint id, int columnsCount, int flags, Vector2 outerSize, float innerWidth) + { + byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, innerWidth); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableBeginInitMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableBeginInitMemoryNative(ImGuiTable* table, int columnsCount); + + /// /// To be documented. /// public static void TableBeginInitMemory( ImGuiTable* table, int columnsCount) + { + TableBeginInitMemoryNative(table, columnsCount); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableBeginApplyRequests")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableBeginApplyRequestsNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableBeginApplyRequests( ImGuiTable* table) + { + TableBeginApplyRequestsNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetupDrawChannels")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetupDrawChannelsNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableSetupDrawChannels( ImGuiTable* table) + { + TableSetupDrawChannelsNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableUpdateLayout")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableUpdateLayoutNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableUpdateLayout( ImGuiTable* table) + { + TableUpdateLayoutNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableUpdateBorders")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableUpdateBordersNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableUpdateBorders( ImGuiTable* table) + { + TableUpdateBordersNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableUpdateColumnsWeightFromWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableUpdateColumnsWeightFromWidthNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableUpdateColumnsWeightFromWidth( ImGuiTable* table) + { + TableUpdateColumnsWeightFromWidthNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableDrawBorders")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableDrawBordersNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableDrawBorders( ImGuiTable* table) + { + TableDrawBordersNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableDrawContextMenu")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableDrawContextMenuNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableDrawContextMenu( ImGuiTable* table) + { + TableDrawContextMenuNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableBeginContextMenuPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TableBeginContextMenuPopupNative(ImGuiTable* table); + + /// /// To be documented. /// public static bool TableBeginContextMenuPopup( ImGuiTable* table) + { + byte ret = TableBeginContextMenuPopupNative(table); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableMergeDrawChannels")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableMergeDrawChannelsNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableMergeDrawChannels( ImGuiTable* table) + { + TableMergeDrawChannelsNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetInstanceData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableInstanceData* TableGetInstanceDataNative(ImGuiTable* table, int instanceNo); + + /// /// To be documented. /// public static ImGuiTableInstanceData* TableGetInstanceData( ImGuiTable* table, int instanceNo) + { + ImGuiTableInstanceData* ret = TableGetInstanceDataNative(table, instanceNo); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetInstanceID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint TableGetInstanceIDNative(ImGuiTable* table, int instanceNo); + + /// /// To be documented. /// public static uint TableGetInstanceID( ImGuiTable* table, int instanceNo) + { + uint ret = TableGetInstanceIDNative(table, instanceNo); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSortSpecsSanitize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSortSpecsSanitizeNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableSortSpecsSanitize( ImGuiTable* table) + { + TableSortSpecsSanitizeNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSortSpecsBuild")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSortSpecsBuildNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableSortSpecsBuild( ImGuiTable* table) + { + TableSortSpecsBuildNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnNextSortDirection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetColumnNextSortDirectionNative(ImGuiTableColumn* column); + + /// /// To be documented. /// public static int TableGetColumnNextSortDirection( ImGuiTableColumn* column) + { + int ret = TableGetColumnNextSortDirectionNative(column); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableFixColumnSortDirection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableFixColumnSortDirectionNative(ImGuiTable* table, ImGuiTableColumn* column); + + /// /// To be documented. /// public static void TableFixColumnSortDirection( ImGuiTable* table, ImGuiTableColumn* column) + { + TableFixColumnSortDirectionNative(table, column); + } + + /// /// To be documented. /// public static void TableFixColumnSortDirection( ImGuiTable* table, ref ImGuiTableColumn column) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + TableFixColumnSortDirectionNative(table, (ImGuiTableColumn*)pcolumn); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnWidthAuto")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float TableGetColumnWidthAutoNative(ImGuiTable* table, ImGuiTableColumn* column); + + /// /// To be documented. /// public static float TableGetColumnWidthAuto( ImGuiTable* table, ImGuiTableColumn* column) + { + float ret = TableGetColumnWidthAutoNative(table, column); + return ret; + } + + /// /// To be documented. /// public static float TableGetColumnWidthAuto( ImGuiTable* table, ref ImGuiTableColumn column) + { + fixed (ImGuiTableColumn* pcolumn = &column) + { + float ret = TableGetColumnWidthAutoNative(table, (ImGuiTableColumn*)pcolumn); + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableBeginRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableBeginRowNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableBeginRow( ImGuiTable* table) + { + TableBeginRowNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableEndRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableEndRowNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableEndRow( ImGuiTable* table) + { + TableEndRowNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableBeginCell")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableBeginCellNative(ImGuiTable* table, int columnN); + + /// /// To be documented. /// public static void TableBeginCell( ImGuiTable* table, int columnN) + { + TableBeginCellNative(table, columnN); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableEndCell")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableEndCellNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableEndCell( ImGuiTable* table) + { + TableEndCellNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetCellBgRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableGetCellBgRectNative(ImRect* pOut, ImGuiTable* table, int columnN); + + /// /// To be documented. /// public static void TableGetCellBgRect( ImRect* pOut, ImGuiTable* table, int columnN) + { + TableGetCellBgRectNative(pOut, table, columnN); + } + + /// /// To be documented. /// public static void TableGetCellBgRect( ImRect* pOut, ref ImGuiTable table, int columnN) + { + fixed (ImGuiTable* ptable = &table) + { + TableGetCellBgRectNative(pOut, (ImGuiTable*)ptable, columnN); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnName_TablePtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* TableGetColumnNameTablePtrNative(ImGuiTable* table, int columnN); + + /// /// To be documented. /// public static byte* TableGetColumnNameTablePtr( ImGuiTable* table, int columnN) + { + byte* ret = TableGetColumnNameTablePtrNative(table, columnN); + return ret; + } + + /// /// To be documented. /// public static string TableGetColumnNameTablePtrS( ImGuiTable* table, int columnN) + { + string ret = Utils.DecodeStringUTF8(TableGetColumnNameTablePtrNative(table, columnN)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnResizeID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint TableGetColumnResizeIDNative(ImGuiTable* table, int columnN, int instanceNo); + + /// /// To be documented. /// public static uint TableGetColumnResizeID( ImGuiTable* table, int columnN, int instanceNo) + { + uint ret = TableGetColumnResizeIDNative(table, columnN, instanceNo); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetMaxColumnWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float TableGetMaxColumnWidthNative(ImGuiTable* table, int columnN); + + /// /// To be documented. /// public static float TableGetMaxColumnWidth( ImGuiTable* table, int columnN) + { + float ret = TableGetMaxColumnWidthNative(table, columnN); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnWidthAutoSingle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetColumnWidthAutoSingleNative(ImGuiTable* table, int columnN); + + /// /// To be documented. /// public static void TableSetColumnWidthAutoSingle( ImGuiTable* table, int columnN) + { + TableSetColumnWidthAutoSingleNative(table, columnN); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnWidthAutoAll")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetColumnWidthAutoAllNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableSetColumnWidthAutoAll( ImGuiTable* table) + { + TableSetColumnWidthAutoAllNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableRemove")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableRemoveNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableRemove( ImGuiTable* table) + { + TableRemoveNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGcCompactTransientBuffers_TablePtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableGcCompactTransientBuffersTablePtrNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableGcCompactTransientBuffersTablePtr( ImGuiTable* table) + { + TableGcCompactTransientBuffersTablePtrNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGcCompactTransientBuffers_TableTempDataPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableGcCompactTransientBuffersTableTempDataPtrNative(ImGuiTableTempData* table); + + /// /// To be documented. /// public static void TableGcCompactTransientBuffersTableTempDataPtr( ImGuiTableTempData* table) + { + TableGcCompactTransientBuffersTableTempDataPtrNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGcCompactSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableGcCompactSettingsNative(); + + /// /// To be documented. /// public static void TableGcCompactSettings() + { + TableGcCompactSettingsNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableLoadSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableLoadSettingsNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableLoadSettings( ImGuiTable* table) + { + TableLoadSettingsNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSaveSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSaveSettingsNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableSaveSettings( ImGuiTable* table) + { + TableSaveSettingsNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableResetSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableResetSettingsNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableResetSettings( ImGuiTable* table) + { + TableResetSettingsNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetBoundSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSettings* TableGetBoundSettingsNative(ImGuiTable* table); + + /// /// To be documented. /// public static ImGuiTableSettings* TableGetBoundSettings( ImGuiTable* table) + { + ImGuiTableSettings* ret = TableGetBoundSettingsNative(table); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSettingsAddSettingsHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSettingsAddSettingsHandlerNative(); + + /// /// To be documented. /// public static void TableSettingsAddSettingsHandler() + { + TableSettingsAddSettingsHandlerNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSettingsCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSettings* TableSettingsCreateNative(uint id, int columnsCount); + + /// /// To be documented. /// public static ImGuiTableSettings* TableSettingsCreate( uint id, int columnsCount) + { + ImGuiTableSettings* ret = TableSettingsCreateNative(id, columnsCount); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSettingsFindByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSettings* TableSettingsFindByIDNative(uint id); + + /// /// To be documented. /// public static ImGuiTableSettings* TableSettingsFindByID( uint id) + { + ImGuiTableSettings* ret = TableSettingsFindByIDNative(id); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCurrentTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabBar* GetCurrentTabBarNative(); + + /// /// To be documented. /// public static ImGuiTabBar* GetCurrentTabBar() + { + ImGuiTabBar* ret = GetCurrentTabBarNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTabBarEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTabBarExNative(ImGuiTabBar* tabBar, ImRect bb, int flags); + + /// /// To be documented. /// public static bool BeginTabBarEx( ImGuiTabBar* tabBar, ImRect bb, int flags) + { + byte ret = BeginTabBarExNative(tabBar, bb, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarFindTabByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabItem* TabBarFindTabByIDNative(ImGuiTabBar* tabBar, uint tabId); + + /// /// To be documented. /// public static ImGuiTabItem* TabBarFindTabByID( ImGuiTabBar* tabBar, uint tabId) + { + ImGuiTabItem* ret = TabBarFindTabByIDNative(tabBar, tabId); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarFindTabByOrder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabItem* TabBarFindTabByOrderNative(ImGuiTabBar* tabBar, int order); + + /// /// To be documented. /// public static ImGuiTabItem* TabBarFindTabByOrder( ImGuiTabBar* tabBar, int order) + { + ImGuiTabItem* ret = TabBarFindTabByOrderNative(tabBar, order); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarFindMostRecentlySelectedTabForActiveWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindowNative(ImGuiTabBar* tabBar); + + /// /// To be documented. /// public static ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindow( ImGuiTabBar* tabBar) + { + ImGuiTabItem* ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative(tabBar); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarGetCurrentTab")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabItem* TabBarGetCurrentTabNative(ImGuiTabBar* tabBar); + + /// /// To be documented. /// public static ImGuiTabItem* TabBarGetCurrentTab( ImGuiTabBar* tabBar) + { + ImGuiTabItem* ret = TabBarGetCurrentTabNative(tabBar); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarGetTabOrder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TabBarGetTabOrderNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab); + + /// /// To be documented. /// public static int TabBarGetTabOrder( ImGuiTabBar* tabBar, ImGuiTabItem* tab) + { + int ret = TabBarGetTabOrderNative(tabBar, tab); + return ret; + } + + /// /// To be documented. /// public static int TabBarGetTabOrder( ImGuiTabBar* tabBar, ref ImGuiTabItem tab) + { + fixed (ImGuiTabItem* ptab = &tab) + { + int ret = TabBarGetTabOrderNative(tabBar, (ImGuiTabItem*)ptab); + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarGetTabName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* TabBarGetTabNameNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab); + + /// /// To be documented. /// public static byte* TabBarGetTabName( ImGuiTabBar* tabBar, ImGuiTabItem* tab) + { + byte* ret = TabBarGetTabNameNative(tabBar, tab); + return ret; + } + + /// /// To be documented. /// public static string TabBarGetTabNameS( ImGuiTabBar* tabBar, ImGuiTabItem* tab) + { + string ret = Utils.DecodeStringUTF8(TabBarGetTabNameNative(tabBar, tab)); + return ret; + } + + /// /// To be documented. /// public static byte* TabBarGetTabName( ImGuiTabBar* tabBar, ref ImGuiTabItem tab) + { + fixed (ImGuiTabItem* ptab = &tab) + { + byte* ret = TabBarGetTabNameNative(tabBar, (ImGuiTabItem*)ptab); + return ret; + } + } + + /// /// To be documented. /// public static string TabBarGetTabNameS( ImGuiTabBar* tabBar, ref ImGuiTabItem tab) + { + fixed (ImGuiTabItem* ptab = &tab) + { + string ret = Utils.DecodeStringUTF8(TabBarGetTabNameNative(tabBar, (ImGuiTabItem*)ptab)); + return ret; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarAddTab")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarAddTabNative(ImGuiTabBar* tabBar, int tabFlags, ImGuiWindow* window); + + /// /// To be documented. /// public static void TabBarAddTab( ImGuiTabBar* tabBar, int tabFlags, ImGuiWindow* window) + { + TabBarAddTabNative(tabBar, tabFlags, window); + } + + /// /// To be documented. /// public static void TabBarAddTab( ImGuiTabBar* tabBar, int tabFlags, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + TabBarAddTabNative(tabBar, tabFlags, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarRemoveTab")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarRemoveTabNative(ImGuiTabBar* tabBar, uint tabId); + + /// /// To be documented. /// public static void TabBarRemoveTab( ImGuiTabBar* tabBar, uint tabId) + { + TabBarRemoveTabNative(tabBar, tabId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarCloseTab")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarCloseTabNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab); + + /// /// To be documented. /// public static void TabBarCloseTab( ImGuiTabBar* tabBar, ImGuiTabItem* tab) + { + TabBarCloseTabNative(tabBar, tab); + } + + /// /// To be documented. /// public static void TabBarCloseTab( ImGuiTabBar* tabBar, ref ImGuiTabItem tab) + { + fixed (ImGuiTabItem* ptab = &tab) + { + TabBarCloseTabNative(tabBar, (ImGuiTabItem*)ptab); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarQueueFocus")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarQueueFocusNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab); + + /// /// To be documented. /// public static void TabBarQueueFocus( ImGuiTabBar* tabBar, ImGuiTabItem* tab) + { + TabBarQueueFocusNative(tabBar, tab); + } + + /// /// To be documented. /// public static void TabBarQueueFocus( ImGuiTabBar* tabBar, ref ImGuiTabItem tab) + { + fixed (ImGuiTabItem* ptab = &tab) + { + TabBarQueueFocusNative(tabBar, (ImGuiTabItem*)ptab); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarQueueReorder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarQueueReorderNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, int offset); + + /// /// To be documented. /// public static void TabBarQueueReorder( ImGuiTabBar* tabBar, ImGuiTabItem* tab, int offset) + { + TabBarQueueReorderNative(tabBar, tab, offset); + } + + /// /// To be documented. /// public static void TabBarQueueReorder( ImGuiTabBar* tabBar, ref ImGuiTabItem tab, int offset) + { + fixed (ImGuiTabItem* ptab = &tab) + { + TabBarQueueReorderNative(tabBar, (ImGuiTabItem*)ptab, offset); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarQueueReorderFromMousePos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarQueueReorderFromMousePosNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, Vector2 mousePos); + + /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos( ImGuiTabBar* tabBar, ImGuiTabItem* tab, Vector2 mousePos) + { + TabBarQueueReorderFromMousePosNative(tabBar, tab, mousePos); + } + + /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos( ImGuiTabBar* tabBar, ref ImGuiTabItem tab, Vector2 mousePos) + { + fixed (ImGuiTabItem* ptab = &tab) + { + TabBarQueueReorderFromMousePosNative(tabBar, (ImGuiTabItem*)ptab, mousePos); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarProcessReorder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TabBarProcessReorderNative(ImGuiTabBar* tabBar); + + /// /// To be documented. /// public static bool TabBarProcessReorder( ImGuiTabBar* tabBar) + { + byte ret = TabBarProcessReorderNative(tabBar); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabItemEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TabItemExNative(ImGuiTabBar* tabBar, byte* label, byte* pOpen, int flags, ImGuiWindow* dockedWindow); + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, byte* label, byte* pOpen, int flags, ImGuiWindow* dockedWindow) + { + byte ret = TabItemExNative(tabBar, label, pOpen, flags, dockedWindow); + return ret != 0; + } + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, ref byte label, byte* pOpen, int flags, ImGuiWindow* dockedWindow) + { + fixed (byte* plabel = &label) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, string label, byte* pOpen, int flags, ImGuiWindow* dockedWindow) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, dockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, byte* label, ref byte pOpen, int flags, ImGuiWindow* dockedWindow) + { + fixed (byte* ppOpen = &pOpen) + { + byte ret = TabItemExNative(tabBar, label, (byte*)ppOpen, flags, dockedWindow); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, ref byte label, ref byte pOpen, int flags, ImGuiWindow* dockedWindow) + { + fixed (byte* plabel = &label) + { + fixed (byte* ppOpen = &pOpen) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, (byte*)ppOpen, flags, dockedWindow); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, string label, ref byte pOpen, int flags, ImGuiWindow* dockedWindow) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ppOpen = &pOpen) + { + byte ret = TabItemExNative(tabBar, pStr0, (byte*)ppOpen, flags, dockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, byte* label, byte* pOpen, int flags, ref ImGuiWindow dockedWindow) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, ref byte label, byte* pOpen, int flags, ref ImGuiWindow dockedWindow) + { + fixed (byte* plabel = &label) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, string label, byte* pOpen, int flags, ref ImGuiWindow dockedWindow) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, byte* label, ref byte pOpen, int flags, ref ImGuiWindow dockedWindow) + { + fixed (byte* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, label, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, ref byte label, ref byte pOpen, int flags, ref ImGuiWindow dockedWindow) + { + fixed (byte* plabel = &label) + { + fixed (byte* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } + } + + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, string label, ref byte pOpen, int flags, ref ImGuiWindow dockedWindow) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, pStr0, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabItemCalcSize_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabItemCalcSizeNative(Vector2* pOut, byte* label, byte hasCloseButtonOrUnsavedMarker); + + /// /// To be documented. /// public static void TabItemCalcSize( Vector2* pOut, byte* label, bool hasCloseButtonOrUnsavedMarker) + { + TabItemCalcSizeNative(pOut, label, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); + } + + /// /// To be documented. /// public static void TabItemCalcSize( Vector2* pOut, ref byte label, bool hasCloseButtonOrUnsavedMarker) + { + fixed (byte* plabel = &label) + { + TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); + } + } + + /// /// To be documented. /// public static void TabItemCalcSize( Vector2* pOut, string label, bool hasCloseButtonOrUnsavedMarker) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TabItemCalcSizeNative(pOut, pStr0, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabItemCalcSize_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabItemCalcSizeWindowPtrNative(Vector2* pOut, ImGuiWindow* window); + + /// /// To be documented. /// public static void TabItemCalcSizeWindowPtr( Vector2* pOut, ImGuiWindow* window) + { + TabItemCalcSizeWindowPtrNative(pOut, window); + } + + /// /// To be documented. /// public static void TabItemCalcSizeWindowPtr( Vector2* pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) + { + TabItemCalcSizeWindowPtrNative(pOut, (ImGuiWindow*)pwindow); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabItemBackground")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabItemBackgroundNative(ImDrawList* drawList, ImRect bb, int flags, uint col); + + /// /// To be documented. /// public static void TabItemBackground( ImDrawList* drawList, ImRect bb, int flags, uint col) + { + TabItemBackgroundNative(drawList, bb, flags, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabItemLabelAndCloseButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabItemLabelAndCloseButtonNative(ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, byte isContentsVisible, byte* outJustClosed, byte* outTextClipped); + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, byte* outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); + } + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, byte* outTextClipped) + { + fixed (byte* plabel = &label) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); + } + } + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, byte* outTextClipped) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, byte* outTextClipped) + { + fixed (byte* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); + } + } + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, byte* outTextClipped) + { + fixed (byte* plabel = &label) + { + fixed (byte* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); + } + } + } + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, byte* outTextClipped) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, ref byte outTextClipped) + { + fixed (byte* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); + } + } + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, ref byte outTextClipped) + { + fixed (byte* plabel = &label) + { + fixed (byte* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); + } + } + } + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, ref byte outTextClipped) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, ref byte outTextClipped) + { + fixed (byte* poutJustClosed = &outJustClosed) + { + fixed (byte* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); + } + } + } + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, ref byte outTextClipped) + { + fixed (byte* plabel = &label) + { + fixed (byte* poutJustClosed = &outJustClosed) + { + fixed (byte* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); + } + } + } + } + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, ref byte outTextClipped) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* poutJustClosed = &outJustClosed) + { + fixed (byte* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextNative(Vector2 pos, byte* text, byte* textEnd, byte hideTextAfterHash); + + /// /// To be documented. /// public static void RenderText( Vector2 pos, byte* text, byte* textEnd, bool hideTextAfterHash) + { + RenderTextNative(pos, text, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + + /// /// To be documented. /// public static void RenderText( Vector2 pos, ref byte text, byte* textEnd, bool hideTextAfterHash) + { + fixed (byte* ptext = &text) + { + RenderTextNative(pos, (byte*)ptext, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + } + + /// /// To be documented. /// public static void RenderText( Vector2 pos, string text, byte* textEnd, bool hideTextAfterHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(pos, pStr0, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderText( Vector2 pos, byte* text, ref byte textEnd, bool hideTextAfterHash) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(pos, text, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + } + + /// /// To be documented. /// public static void RenderText( Vector2 pos, byte* text, string textEnd, bool hideTextAfterHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(pos, text, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderText( Vector2 pos, ref byte text, ref byte textEnd, bool hideTextAfterHash) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + } + } + + /// /// To be documented. /// public static void RenderText( Vector2 pos, string text, string textEnd, bool hideTextAfterHash) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(pos, pStr0, pStr1, hideTextAfterHash ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderTextWrapped")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextWrappedNative(Vector2 pos, byte* text, byte* textEnd, float wrapWidth); + + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, byte* text, byte* textEnd, float wrapWidth) + { + RenderTextWrappedNative(pos, text, textEnd, wrapWidth); + } + + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + RenderTextWrappedNative(pos, (byte*)ptext, textEnd, wrapWidth); + } + } + + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, string text, byte* textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextWrappedNative(pos, pStr0, textEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextWrappedNative(pos, text, (byte*)ptextEnd, wrapWidth); + } + } + + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, byte* text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextWrappedNative(pos, text, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + } + } + } + + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, string text, string textEnd, float wrapWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextWrappedNative(pos, pStr0, pStr1, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderTextClipped")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextClippedNative(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect); + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderTextClippedEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextClippedExNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect); + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.015.cs b/Hexa.NET.ImGui/Generated/Functions.015.cs new file mode 100644 index 0000000..8ceea89 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Functions.015.cs @@ -0,0 +1,3132 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + public unsafe partial class ImGui + { + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderTextEllipsis")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextEllipsisNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown); + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, textSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, textSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); + } + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, Vector2* textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, textSizeIfKnown); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown); + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } + } + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, ref Vector2 textSizeIfKnown) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderFrameNative(Vector2 pMin, Vector2 pMax, uint fillCol, byte border, float rounding); + + /// /// To be documented. /// public static void RenderFrame( Vector2 pMin, Vector2 pMax, uint fillCol, bool border, float rounding) + { + RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, rounding); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderFrameBorder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderFrameBorderNative(Vector2 pMin, Vector2 pMax, float rounding); + + /// /// To be documented. /// public static void RenderFrameBorder( Vector2 pMin, Vector2 pMax, float rounding) + { + RenderFrameBorderNative(pMin, pMax, rounding); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderColorRectWithAlphaCheckerboard")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderColorRectWithAlphaCheckerboardNative(ImDrawList* drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, int flags); + + /// /// To be documented. /// public static void RenderColorRectWithAlphaCheckerboard( ImDrawList* drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, int flags) + { + RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderNavHighlight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderNavHighlightNative(ImRect bb, uint id, int flags); + + /// /// To be documented. /// public static void RenderNavHighlight( ImRect bb, uint id, int flags) + { + RenderNavHighlightNative(bb, id, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindRenderedTextEnd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* FindRenderedTextEndNative(byte* text, byte* textEnd); + + /// /// To be documented. /// public static byte* FindRenderedTextEnd( byte* text, byte* textEnd) + { + byte* ret = FindRenderedTextEndNative(text, textEnd); + return ret; + } + + /// /// To be documented. /// public static string FindRenderedTextEndS( byte* text, byte* textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, textEnd)); + return ret; + } + + /// /// To be documented. /// public static byte* FindRenderedTextEnd( byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = FindRenderedTextEndNative(text, (byte*)ptextEnd); + return ret; + } + } + + /// /// To be documented. /// public static string FindRenderedTextEndS( byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)ptextEnd)); + return ret; + } + } + + /// /// To be documented. /// public static byte* FindRenderedTextEnd( byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = FindRenderedTextEndNative(text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static string FindRenderedTextEndS( byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderMouseCursor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderMouseCursorNative(Vector2 pos, float scale, int mouseCursor, uint colFill, uint colBorder, uint colShadow); + + /// /// To be documented. /// public static void RenderMouseCursor( Vector2 pos, float scale, int mouseCursor, uint colFill, uint colBorder, uint colShadow) + { + RenderMouseCursorNative(pos, scale, mouseCursor, colFill, colBorder, colShadow); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderArrow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderArrowNative(ImDrawList* drawList, Vector2 pos, uint col, int dir, float scale); + + /// /// To be documented. /// public static void RenderArrow( ImDrawList* drawList, Vector2 pos, uint col, int dir, float scale) + { + RenderArrowNative(drawList, pos, col, dir, scale); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderBullet")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderBulletNative(ImDrawList* drawList, Vector2 pos, uint col); + + /// /// To be documented. /// public static void RenderBullet( ImDrawList* drawList, Vector2 pos, uint col) + { + RenderBulletNative(drawList, pos, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderCheckMark")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderCheckMarkNative(ImDrawList* drawList, Vector2 pos, uint col, float sz); + + /// /// To be documented. /// public static void RenderCheckMark( ImDrawList* drawList, Vector2 pos, uint col, float sz) + { + RenderCheckMarkNative(drawList, pos, col, sz); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderArrowPointingAt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderArrowPointingAtNative(ImDrawList* drawList, Vector2 pos, Vector2 halfSz, int direction, uint col); + + /// /// To be documented. /// public static void RenderArrowPointingAt( ImDrawList* drawList, Vector2 pos, Vector2 halfSz, int direction, uint col) + { + RenderArrowPointingAtNative(drawList, pos, halfSz, direction, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderArrowDockMenu")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderArrowDockMenuNative(ImDrawList* drawList, Vector2 pMin, float sz, uint col); + + /// /// To be documented. /// public static void RenderArrowDockMenu( ImDrawList* drawList, Vector2 pMin, float sz, uint col) + { + RenderArrowDockMenuNative(drawList, pMin, sz, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderRectFilledRangeH")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderRectFilledRangeHNative(ImDrawList* drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding); + + /// /// To be documented. /// public static void RenderRectFilledRangeH( ImDrawList* drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) + { + RenderRectFilledRangeHNative(drawList, rect, col, xStartNorm, xEndNorm, rounding); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderRectFilledWithHole")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderRectFilledWithHoleNative(ImDrawList* drawList, ImRect outer, ImRect inner, uint col, float rounding); + + /// /// To be documented. /// public static void RenderRectFilledWithHole( ImDrawList* drawList, ImRect outer, ImRect inner, uint col, float rounding) + { + RenderRectFilledWithHoleNative(drawList, outer, inner, col, rounding); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcRoundingFlagsForRectInRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int CalcRoundingFlagsForRectInRectNative(ImRect rIn, ImRect rOuter, float threshold); + + /// /// To be documented. /// public static int CalcRoundingFlagsForRectInRect( ImRect rIn, ImRect rOuter, float threshold) + { + int ret = CalcRoundingFlagsForRectInRectNative(rIn, rOuter, threshold); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTextEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextExNative(byte* text, byte* textEnd, int flags); + + /// /// To be documented. /// public static void TextEx( byte* text, byte* textEnd, int flags) + { + TextExNative(text, textEnd, flags); + } + + /// /// To be documented. /// public static void TextEx( byte* text, ref byte textEnd, int flags) + { + fixed (byte* ptextEnd = &textEnd) + { + TextExNative(text, (byte*)ptextEnd, flags); + } + } + + /// /// To be documented. /// public static void TextEx( byte* text, string textEnd, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextExNative(text, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igButtonEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ButtonExNative(byte* label, Vector2 sizeArg, int flags); + + /// /// To be documented. /// public static bool ButtonEx( byte* label, Vector2 sizeArg, int flags) + { + byte ret = ButtonExNative(label, sizeArg, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igArrowButtonEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ArrowButtonExNative(byte* strId, int dir, Vector2 sizeArg, int flags); + + /// /// To be documented. /// public static bool ArrowButtonEx( byte* strId, int dir, Vector2 sizeArg, int flags) + { + byte ret = ArrowButtonExNative(strId, dir, sizeArg, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImageButtonEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImageButtonExNative(uint id, ImTextureID textureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol, int flags); + + /// /// To be documented. /// public static bool ImageButtonEx( uint id, ImTextureID textureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol, int flags) + { + byte ret = ImageButtonExNative(id, textureId, imageSize, uv0, uv1, bgCol, tintCol, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSeparatorEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SeparatorExNative(int flags, float thickness); + + /// /// To be documented. /// public static void SeparatorEx( int flags, float thickness) + { + SeparatorExNative(flags, thickness); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSeparatorTextEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SeparatorTextExNative(uint id, byte* label, byte* labelEnd, float extraWidth); + + /// /// To be documented. /// public static void SeparatorTextEx( uint id, byte* label, byte* labelEnd, float extraWidth) + { + SeparatorTextExNative(id, label, labelEnd, extraWidth); + } + + /// /// To be documented. /// public static void SeparatorTextEx( uint id, ref byte label, byte* labelEnd, float extraWidth) + { + fixed (byte* plabel = &label) + { + SeparatorTextExNative(id, (byte*)plabel, labelEnd, extraWidth); + } + } + + /// /// To be documented. /// public static void SeparatorTextEx( uint id, string label, byte* labelEnd, float extraWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SeparatorTextExNative(id, pStr0, labelEnd, extraWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void SeparatorTextEx( uint id, byte* label, ref byte labelEnd, float extraWidth) + { + fixed (byte* plabelEnd = &labelEnd) + { + SeparatorTextExNative(id, label, (byte*)plabelEnd, extraWidth); + } + } + + /// /// To be documented. /// public static void SeparatorTextEx( uint id, byte* label, string labelEnd, float extraWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SeparatorTextExNative(id, label, pStr0, extraWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void SeparatorTextEx( uint id, ref byte label, ref byte labelEnd, float extraWidth) + { + fixed (byte* plabel = &label) + { + fixed (byte* plabelEnd = &labelEnd) + { + SeparatorTextExNative(id, (byte*)plabel, (byte*)plabelEnd, extraWidth); + } + } + } + + /// /// To be documented. /// public static void SeparatorTextEx( uint id, string label, string labelEnd, float extraWidth) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + SeparatorTextExNative(id, pStr0, pStr1, extraWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCheckboxFlags_S64Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CheckboxFlagsS64PtrNative(byte* label, long* flags, long flagsValue); + + /// /// To be documented. /// public static bool CheckboxFlagsS64Ptr( byte* label, long* flags, long flagsValue) + { + byte ret = CheckboxFlagsS64PtrNative(label, flags, flagsValue); + return ret != 0; + } + + /// /// To be documented. /// public static bool CheckboxFlagsS64Ptr( byte* label, ref long flags, long flagsValue) + { + fixed (long* pflags = &flags) + { + byte ret = CheckboxFlagsS64PtrNative(label, (long*)pflags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCheckboxFlags_U64Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CheckboxFlagsU64PtrNative(byte* label, ulong* flags, ulong flagsValue); + + /// /// To be documented. /// public static bool CheckboxFlagsU64Ptr( byte* label, ulong* flags, ulong flagsValue) + { + byte ret = CheckboxFlagsU64PtrNative(label, flags, flagsValue); + return ret != 0; + } + + /// /// To be documented. /// public static bool CheckboxFlagsU64Ptr( byte* label, ref ulong flags, ulong flagsValue) + { + fixed (ulong* pflags = &flags) + { + byte ret = CheckboxFlagsU64PtrNative(label, (ulong*)pflags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCloseButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CloseButtonNative(uint id, Vector2 pos); + + /// /// To be documented. /// public static bool CloseButton( uint id, Vector2 pos) + { + byte ret = CloseButtonNative(id, pos); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCollapseButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CollapseButtonNative(uint id, Vector2 pos, ImGuiDockNode* dockNode); + + /// /// To be documented. /// public static bool CollapseButton( uint id, Vector2 pos, ImGuiDockNode* dockNode) + { + byte ret = CollapseButtonNative(id, pos, dockNode); + return ret != 0; + } + + /// /// To be documented. /// public static bool CollapseButton( uint id, Vector2 pos, ref ImGuiDockNode dockNode) + { + fixed (ImGuiDockNode* pdockNode = &dockNode) + { + byte ret = CollapseButtonNative(id, pos, (ImGuiDockNode*)pdockNode); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollbar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScrollbarNative(ImGuiAxis axis); + + /// /// To be documented. /// public static void Scrollbar( ImGuiAxis axis) + { + ScrollbarNative(axis); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollbarEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ScrollbarExNative(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, int flags); + + /// /// To be documented. /// public static bool ScrollbarEx( ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, int flags) + { + byte ret = ScrollbarExNative(bb, id, axis, pScrollV, availV, contentsV, flags); + return ret != 0; + } + + /// /// To be documented. /// public static bool ScrollbarEx( ImRect bb, uint id, ImGuiAxis axis, ref long pScrollV, long availV, long contentsV, int flags) + { + fixed (long* ppScrollV = &pScrollV) + { + byte ret = ScrollbarExNative(bb, id, axis, (long*)ppScrollV, availV, contentsV, flags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowScrollbarRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWindowScrollbarRectNative(ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis); + + /// /// To be documented. /// public static void GetWindowScrollbarRect( ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis) + { + GetWindowScrollbarRectNative(pOut, window, axis); + } + + /// /// To be documented. /// public static void GetWindowScrollbarRect( ImRect* pOut, ref ImGuiWindow window, ImGuiAxis axis) + { + fixed (ImGuiWindow* pwindow = &window) + { + GetWindowScrollbarRectNative(pOut, (ImGuiWindow*)pwindow, axis); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowScrollbarID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetWindowScrollbarIDNative(ImGuiWindow* window, ImGuiAxis axis); + + /// /// To be documented. /// public static uint GetWindowScrollbarID( ImGuiWindow* window, ImGuiAxis axis) + { + uint ret = GetWindowScrollbarIDNative(window, axis); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowResizeCornerID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetWindowResizeCornerIDNative(ImGuiWindow* window, int n); + + /// /// To be documented. /// public static uint GetWindowResizeCornerID( ImGuiWindow* window, int n) + { + uint ret = GetWindowResizeCornerIDNative(window, n); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowResizeBorderID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetWindowResizeBorderIDNative(ImGuiWindow* window, int dir); + + /// /// To be documented. /// public static uint GetWindowResizeBorderID( ImGuiWindow* window, int dir) + { + uint ret = GetWindowResizeBorderIDNative(window, dir); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igButtonBehavior")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ButtonBehaviorNative(ImRect bb, uint id, byte* outHovered, byte* outHeld, int flags); + + /// /// To be documented. /// public static bool ButtonBehavior( ImRect bb, uint id, byte* outHovered, byte* outHeld, int flags) + { + byte ret = ButtonBehaviorNative(bb, id, outHovered, outHeld, flags); + return ret != 0; + } + + /// /// To be documented. /// public static bool ButtonBehavior( ImRect bb, uint id, ref byte outHovered, byte* outHeld, int flags) + { + fixed (byte* poutHovered = &outHovered) + { + byte ret = ButtonBehaviorNative(bb, id, (byte*)poutHovered, outHeld, flags); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool ButtonBehavior( ImRect bb, uint id, byte* outHovered, ref byte outHeld, int flags) + { + fixed (byte* poutHeld = &outHeld) + { + byte ret = ButtonBehaviorNative(bb, id, outHovered, (byte*)poutHeld, flags); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool ButtonBehavior( ImRect bb, uint id, ref byte outHovered, ref byte outHeld, int flags) + { + fixed (byte* poutHovered = &outHovered) + { + fixed (byte* poutHeld = &outHeld) + { + byte ret = ButtonBehaviorNative(bb, id, (byte*)poutHovered, (byte*)poutHeld, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragBehavior")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragBehaviorNative(uint id, int dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, int flags); + + /// /// To be documented. /// public static bool DragBehavior( uint id, int dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, int flags) + { + byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + + /// /// To be documented. /// public static bool DragBehavior( uint id, int dataType, void* pV, float vSpeed, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool DragBehavior( uint id, int dataType, void* pV, float vSpeed, void* pMin, void* pMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderBehavior")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderBehaviorNative(ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, byte* format, int flags, ImRect* outGrabBb); + + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, byte* format, int flags, ImRect* outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, outGrabBb); + return ret != 0; + } + + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, ref byte format, int flags, ImRect* outGrabBb) + { + fixed (byte* pformat = &format) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, outGrabBb); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, string format, int flags, ImRect* outGrabBb) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, outGrabBb); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, byte* format, int flags, ref ImRect outGrabBb) + { + fixed (ImRect* poutGrabBb = &outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, (ImRect*)poutGrabBb); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, ref byte format, int flags, ref ImRect outGrabBb) + { + fixed (byte* pformat = &format) + { + fixed (ImRect* poutGrabBb = &outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, (ImRect*)poutGrabBb); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, string format, int flags, ref ImRect outGrabBb) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* poutGrabBb = &outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, (ImRect*)poutGrabBb); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSplitterBehavior")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SplitterBehaviorNative(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol); + + /// /// To be documented. /// public static bool SplitterBehavior( ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + + /// /// To be documented. /// public static bool SplitterBehavior( ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + fixed (float* psize1 = &size1) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool SplitterBehavior( ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool SplitterBehavior( ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeBehavior")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeBehaviorNative(uint id, int flags, byte* label, byte* labelEnd); + + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, byte* label, byte* labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, label, labelEnd); + return ret != 0; + } + + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, ref byte label, byte* labelEnd) + { + fixed (byte* plabel = &label) + { + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, labelEnd); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, string label, byte* labelEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeBehaviorNative(id, flags, pStr0, labelEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, byte* label, ref byte labelEnd) + { + fixed (byte* plabelEnd = &labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)plabelEnd); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, byte* label, string labelEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (labelEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(labelEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TreeNodeBehaviorNative(id, flags, label, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, ref byte label, ref byte labelEnd) + { + fixed (byte* plabel = &label) + { + fixed (byte* plabelEnd = &labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, string label, string labelEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = TreeNodeBehaviorNative(id, flags, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreePushOverrideID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TreePushOverrideIDNative(uint id); + + /// /// To be documented. /// public static void TreePushOverrideID( uint id) + { + TreePushOverrideIDNative(id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeSetOpen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TreeNodeSetOpenNative(uint id, byte open); + + /// /// To be documented. /// public static void TreeNodeSetOpen( uint id, bool open) + { + TreeNodeSetOpenNative(id, open ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeUpdateNextOpen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeUpdateNextOpenNative(uint id, int flags); + + /// /// To be documented. /// public static bool TreeNodeUpdateNextOpen( uint id, int flags) + { + byte ret = TreeNodeUpdateNextOpenNative(id, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextItemSelectionUserData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextItemSelectionUserDataNative(ImGuiSelectionUserData selectionUserData); + + /// /// To be documented. /// public static void SetNextItemSelectionUserData( ImGuiSelectionUserData selectionUserData) + { + SetNextItemSelectionUserDataNative(selectionUserData); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDataTypeGetInfo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDataTypeInfo* DataTypeGetInfoNative(int dataType); + + /// /// To be documented. /// public static ImGuiDataTypeInfo* DataTypeGetInfo( int dataType) + { + ImGuiDataTypeInfo* ret = DataTypeGetInfoNative(dataType); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDataTypeApplyOp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DataTypeApplyOpNative(int dataType, int op, void* output, void* arg1, void* arg2); + + /// /// To be documented. /// public static void DataTypeApplyOp( int dataType, int op, void* output, void* arg1, void* arg2) + { + DataTypeApplyOpNative(dataType, op, output, arg1, arg2); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDataTypeApplyFromText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DataTypeApplyFromTextNative(byte* buf, int dataType, void* pData, byte* format); + + /// /// To be documented. /// public static bool DataTypeApplyFromText( byte* buf, int dataType, void* pData, byte* format) + { + byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, format); + return ret != 0; + } + + /// /// To be documented. /// public static bool DataTypeApplyFromText( byte* buf, int dataType, void* pData, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, (byte*)pformat); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool DataTypeApplyFromText( byte* buf, int dataType, void* pData, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDataTypeCompare")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int DataTypeCompareNative(int dataType, void* arg1, void* arg2); + + /// /// To be documented. /// public static int DataTypeCompare( int dataType, void* arg1, void* arg2) + { + int ret = DataTypeCompareNative(dataType, arg1, arg2); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDataTypeClamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DataTypeClampNative(int dataType, void* pData, void* pMin, void* pMax); + + /// /// To be documented. /// public static bool DataTypeClamp( int dataType, void* pData, void* pMin, void* pMax) + { + byte ret = DataTypeClampNative(dataType, pData, pMin, pMax); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputTextDeactivateHook")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void InputTextDeactivateHookNative(uint id); + + /// /// To be documented. /// public static void InputTextDeactivateHook( uint id) + { + InputTextDeactivateHookNative(id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTempInputScalar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TempInputScalarNative(ImRect bb, uint id, byte* label, int dataType, void* pData, byte* format, void* pClampMin, void* pClampMax); + + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, byte* label, int dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, pClampMin, pClampMax); + return ret != 0; + } + + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, ref byte label, int dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) + { + fixed (byte* plabel = &label) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, pClampMax); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, string label, int dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, pClampMin, pClampMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, byte* label, int dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, byte* label, int dataType, void* pData, string format, void* pClampMin, void* pClampMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, pClampMin, pClampMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, ref byte label, int dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, string label, int dataType, void* pData, string format, void* pClampMin, void* pClampMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (format != null) + { + pStrSize1 = Utils.GetByteCountUTF8(format); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, pClampMin, pClampMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTempInputIsActive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TempInputIsActiveNative(uint id); + + /// /// To be documented. /// public static bool TempInputIsActive( uint id) + { + byte ret = TempInputIsActiveNative(id); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetInputTextState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiInputTextState* GetInputTextStateNative(uint id); + + /// /// To be documented. /// public static ImGuiInputTextState* GetInputTextState( uint id) + { + ImGuiInputTextState* ret = GetInputTextStateNative(id); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorTooltipNative(byte* text, float* col, int flags); + + /// /// To be documented. /// public static void ColorTooltip( byte* text, float* col, int flags) + { + ColorTooltipNative(text, col, flags); + } + + /// /// To be documented. /// public static void ColorTooltip( byte* text, ref float col, int flags) + { + fixed (float* pcol = &col) + { + ColorTooltipNative(text, (float*)pcol, flags); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorEditOptionsPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorEditOptionsPopupNative(float* col, int flags); + + /// /// To be documented. /// public static void ColorEditOptionsPopup( float* col, int flags) + { + ColorEditOptionsPopupNative(col, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorPickerOptionsPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorPickerOptionsPopupNative(float* refCol, int flags); + + /// /// To be documented. /// public static void ColorPickerOptionsPopup( float* refCol, int flags) + { + ColorPickerOptionsPopupNative(refCol, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPlotEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PlotExNative(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 sizeArg); + + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) + { + int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, sizeArg); + return ret; + } + + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) + { + fixed (byte* plabel = &label) + { + int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, sizeArg); + return ret; + } + } + + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, sizeArg); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) + { + fixed (byte* poverlayText = &overlayText) + { + int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, sizeArg); + return ret; + } + } + + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, sizeArg); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) + { + fixed (byte* plabel = &label) + { + fixed (byte* poverlayText = &overlayText) + { + int ret = PlotExNative(plotType, (byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, sizeArg); + return ret; + } + } + } + + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (overlayText != null) + { + pStrSize1 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + int ret = PlotExNative(plotType, pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, sizeArg); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShadeVertsLinearColorGradientKeepAlpha")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShadeVertsLinearColorGradientKeepAlphaNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1); + + /// /// To be documented. /// public static void ShadeVertsLinearColorGradientKeepAlpha( ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) + { + ShadeVertsLinearColorGradientKeepAlphaNative(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShadeVertsLinearUV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShadeVertsLinearUVNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, byte clamp); + + /// /// To be documented. /// public static void ShadeVertsLinearUV( ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, bool clamp) + { + ShadeVertsLinearUVNative(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShadeVertsTransformPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShadeVertsTransformPosNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 pivotIn, float cosA, float sinA, Vector2 pivotOut); + + /// /// To be documented. /// public static void ShadeVertsTransformPos( ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 pivotIn, float cosA, float sinA, Vector2 pivotOut) + { + ShadeVertsTransformPosNative(drawList, vertStartIdx, vertEndIdx, pivotIn, cosA, sinA, pivotOut); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGcCompactTransientMiscBuffers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GcCompactTransientMiscBuffersNative(); + + /// /// To be documented. /// public static void GcCompactTransientMiscBuffers() + { + GcCompactTransientMiscBuffersNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGcCompactTransientWindowBuffers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GcCompactTransientWindowBuffersNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void GcCompactTransientWindowBuffers( ImGuiWindow* window) + { + GcCompactTransientWindowBuffersNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGcAwakeTransientWindowBuffers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GcAwakeTransientWindowBuffersNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void GcAwakeTransientWindowBuffers( ImGuiWindow* window) + { + GcAwakeTransientWindowBuffersNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugLog")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugLogNative(byte* fmt); + + /// /// To be documented. /// public static void DebugLog( byte* fmt) + { + DebugLogNative(fmt); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugLogV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugLogVNative(byte* fmt, nuint args); + + /// /// To be documented. /// public static void DebugLogV( byte* fmt, nuint args) + { + DebugLogVNative(fmt, args); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugAllocHook")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugAllocHookNative(ImGuiDebugAllocInfo* info, int frameCount, void* ptr, ulong size); + + /// /// To be documented. /// public static void DebugAllocHook( ImGuiDebugAllocInfo* info, int frameCount, void* ptr, ulong size) + { + DebugAllocHookNative(info, frameCount, ptr, size); + } + + /// /// To be documented. /// public static void DebugAllocHook( ImGuiDebugAllocInfo* info, int frameCount, void* ptr, nuint size) + { + DebugAllocHookNative(info, frameCount, ptr, size); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igErrorCheckEndFrameRecover")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ErrorCheckEndFrameRecoverNative(ImGuiErrorLogCallback logCallback, void* userData); + + /// /// To be documented. /// public static void ErrorCheckEndFrameRecover( ImGuiErrorLogCallback logCallback, void* userData) + { + ErrorCheckEndFrameRecoverNative(logCallback, userData); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igErrorCheckEndWindowRecover")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ErrorCheckEndWindowRecoverNative(ImGuiErrorLogCallback logCallback, void* userData); + + /// /// To be documented. /// public static void ErrorCheckEndWindowRecover( ImGuiErrorLogCallback logCallback, void* userData) + { + ErrorCheckEndWindowRecoverNative(logCallback, userData); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igErrorCheckUsingSetCursorPosToExtendParentBoundaries")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ErrorCheckUsingSetCursorPosToExtendParentBoundariesNative(); + + /// /// To be documented. /// public static void ErrorCheckUsingSetCursorPosToExtendParentBoundaries() + { + ErrorCheckUsingSetCursorPosToExtendParentBoundariesNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugDrawCursorPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugDrawCursorPosNative(uint col); + + /// /// To be documented. /// public static void DebugDrawCursorPos( uint col) + { + DebugDrawCursorPosNative(col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugDrawLineExtents")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugDrawLineExtentsNative(uint col); + + /// /// To be documented. /// public static void DebugDrawLineExtents( uint col) + { + DebugDrawLineExtentsNative(col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugDrawItemRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugDrawItemRectNative(uint col); + + /// /// To be documented. /// public static void DebugDrawItemRect( uint col) + { + DebugDrawItemRectNative(col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugLocateItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugLocateItemNative(uint targetId); + + /// /// To be documented. /// public static void DebugLocateItem( uint targetId) + { + DebugLocateItemNative(targetId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugLocateItemOnHover")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugLocateItemOnHoverNative(uint targetId); + + /// /// To be documented. /// public static void DebugLocateItemOnHover( uint targetId) + { + DebugLocateItemOnHoverNative(targetId); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugLocateItemResolveWithLastItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugLocateItemResolveWithLastItemNative(); + + /// /// To be documented. /// public static void DebugLocateItemResolveWithLastItem() + { + DebugLocateItemResolveWithLastItemNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugStartItemPicker")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugStartItemPickerNative(); + + /// /// To be documented. /// public static void DebugStartItemPicker() + { + DebugStartItemPickerNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShowFontAtlas")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowFontAtlasNative(ImFontAtlas* atlas); + + /// /// To be documented. /// public static void ShowFontAtlas( ImFontAtlas* atlas) + { + ShowFontAtlasNative(atlas); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugHookIdInfo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugHookIdInfoNative(uint id, int dataType, void* dataId, void* dataIdEnd); + + /// /// To be documented. /// public static void DebugHookIdInfo( uint id, int dataType, void* dataId, void* dataIdEnd) + { + DebugHookIdInfoNative(id, dataType, dataId, dataIdEnd); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeColumnsNative(ImGuiOldColumns* columns); + + /// /// To be documented. /// public static void DebugNodeColumns( ImGuiOldColumns* columns) + { + DebugNodeColumnsNative(columns); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeDockNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeDockNodeNative(ImGuiDockNode* node, byte* label); + + /// /// To be documented. /// public static void DebugNodeDockNode( ImGuiDockNode* node, byte* label) + { + DebugNodeDockNodeNative(node, label); + } + + /// /// To be documented. /// public static void DebugNodeDockNode( ImGuiDockNode* node, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeDockNodeNative(node, (byte*)plabel); + } + } + + /// /// To be documented. /// public static void DebugNodeDockNode( ImGuiDockNode* node, string label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeDockNodeNative(node, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeDrawList")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeDrawListNative(ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, byte* label); + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, byte* label) + { + DebugNodeDrawListNative(window, viewport, drawList, label); + } + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ImDrawList* drawList, byte* label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, label); + } + } + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ref ImDrawList drawList, byte* label) + { + fixed (ImDrawList* pdrawList = &drawList) + { + DebugNodeDrawListNative(window, viewport, (ImDrawList*)pdrawList, label); + } + } + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ref ImDrawList drawList, byte* label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (ImDrawList* pdrawList = &drawList) + { + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, label); + } + } + } + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative(window, viewport, drawList, (byte*)plabel); + } + } + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, string label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeDrawListNative(window, viewport, drawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ImDrawList* drawList, ref byte label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); + } + } + } + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ImDrawList* drawList, string label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, drawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ref ImDrawList drawList, ref byte label) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative(window, viewport, (ImDrawList*)pdrawList, (byte*)plabel); + } + } + } + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ref ImDrawList drawList, string label) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeDrawListNative(window, viewport, (ImDrawList*)pdrawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ref ImDrawList drawList, ref byte label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* plabel = &label) + { + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, (byte*)plabel); + } + } + } + } + + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ref ImDrawList drawList, string label) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeDrawCmdShowMeshAndBoundingBox")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeDrawCmdShowMeshAndBoundingBoxNative(ImDrawList* outDrawList, ImDrawList* drawList, ImDrawCmd* drawCmd, byte showMesh, byte showAabb); + + /// /// To be documented. /// public static void DebugNodeDrawCmdShowMeshAndBoundingBox( ImDrawList* outDrawList, ImDrawList* drawList, ImDrawCmd* drawCmd, bool showMesh, bool showAabb) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, drawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + + /// /// To be documented. /// public static void DebugNodeDrawCmdShowMeshAndBoundingBox( ImDrawList* outDrawList, ref ImDrawList drawList, ImDrawCmd* drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* pdrawList = &drawList) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, (ImDrawList*)pdrawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + + /// /// To be documented. /// public static void DebugNodeDrawCmdShowMeshAndBoundingBox( ImDrawList* outDrawList, ImDrawList* drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawCmd* pdrawCmd = &drawCmd) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, drawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + + /// /// To be documented. /// public static void DebugNodeDrawCmdShowMeshAndBoundingBox( ImDrawList* outDrawList, ref ImDrawList drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (ImDrawCmd* pdrawCmd = &drawCmd) + { + DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, (ImDrawList*)pdrawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeFontNative(ImFont* font); + + /// /// To be documented. /// public static void DebugNodeFont( ImFont* font) + { + DebugNodeFontNative(font); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeFontGlyph")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeFontGlyphNative(ImFont* font, ImFontGlyph* glyph); + + /// /// To be documented. /// public static void DebugNodeFontGlyph( ImFont* font, ImFontGlyph* glyph) + { + DebugNodeFontGlyphNative(font, glyph); + } + + /// /// To be documented. /// public static void DebugNodeFontGlyph( ImFont* font, ref ImFontGlyph glyph) + { + fixed (ImFontGlyph* pglyph = &glyph) + { + DebugNodeFontGlyphNative(font, (ImFontGlyph*)pglyph); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeStorage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeStorageNative(ImGuiStorage* storage, byte* label); + + /// /// To be documented. /// public static void DebugNodeStorage( ImGuiStorage* storage, byte* label) + { + DebugNodeStorageNative(storage, label); + } + + /// /// To be documented. /// public static void DebugNodeStorage( ImGuiStorage* storage, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeStorageNative(storage, (byte*)plabel); + } + } + + /// /// To be documented. /// public static void DebugNodeStorage( ImGuiStorage* storage, string label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeStorageNative(storage, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeTabBarNative(ImGuiTabBar* tabBar, byte* label); + + /// /// To be documented. /// public static void DebugNodeTabBar( ImGuiTabBar* tabBar, byte* label) + { + DebugNodeTabBarNative(tabBar, label); + } + + /// /// To be documented. /// public static void DebugNodeTabBar( ImGuiTabBar* tabBar, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeTabBarNative(tabBar, (byte*)plabel); + } + } + + /// /// To be documented. /// public static void DebugNodeTabBar( ImGuiTabBar* tabBar, string label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeTabBarNative(tabBar, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeTableNative(ImGuiTable* table); + + /// /// To be documented. /// public static void DebugNodeTable( ImGuiTable* table) + { + DebugNodeTableNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeTableSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeTableSettingsNative(ImGuiTableSettings* settings); + + /// /// To be documented. /// public static void DebugNodeTableSettings( ImGuiTableSettings* settings) + { + DebugNodeTableSettingsNative(settings); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeInputTextState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeInputTextStateNative(ImGuiInputTextState* state); + + /// /// To be documented. /// public static void DebugNodeInputTextState( ImGuiInputTextState* state) + { + DebugNodeInputTextStateNative(state); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeTypingSelectState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeTypingSelectStateNative(ImGuiTypingSelectState* state); + + /// /// To be documented. /// public static void DebugNodeTypingSelectState( ImGuiTypingSelectState* state) + { + DebugNodeTypingSelectStateNative(state); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeWindowNative(ImGuiWindow* window, byte* label); + + /// /// To be documented. /// public static void DebugNodeWindow( ImGuiWindow* window, byte* label) + { + DebugNodeWindowNative(window, label); + } + + /// /// To be documented. /// public static void DebugNodeWindow( ImGuiWindow* window, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeWindowNative(window, (byte*)plabel); + } + } + + /// /// To be documented. /// public static void DebugNodeWindow( ImGuiWindow* window, string label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeWindowNative(window, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeWindowSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeWindowSettingsNative(ImGuiWindowSettings* settings); + + /// /// To be documented. /// public static void DebugNodeWindowSettings( ImGuiWindowSettings* settings) + { + DebugNodeWindowSettingsNative(settings); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeWindowsList")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeWindowsListNative(ImVectorImGuiWindowPtr* windows, byte* label); + + /// /// To be documented. /// public static void DebugNodeWindowsList( ImVectorImGuiWindowPtr* windows, byte* label) + { + DebugNodeWindowsListNative(windows, label); + } + + /// /// To be documented. /// public static void DebugNodeWindowsList( ImVectorImGuiWindowPtr* windows, ref byte label) + { + fixed (byte* plabel = &label) + { + DebugNodeWindowsListNative(windows, (byte*)plabel); + } + } + + /// /// To be documented. /// public static void DebugNodeWindowsList( ImVectorImGuiWindowPtr* windows, string label) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeWindowsListNative(windows, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeWindowsListByBeginStackParent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeWindowsListByBeginStackParentNative(ImGuiWindow** windows, int windowsSize, ImGuiWindow* parentInBeginStack); + + /// /// To be documented. /// public static void DebugNodeWindowsListByBeginStackParent( ImGuiWindow** windows, int windowsSize, ImGuiWindow* parentInBeginStack) + { + DebugNodeWindowsListByBeginStackParentNative(windows, windowsSize, parentInBeginStack); + } + + /// /// To be documented. /// public static void DebugNodeWindowsListByBeginStackParent( ImGuiWindow** windows, int windowsSize, ref ImGuiWindow parentInBeginStack) + { + fixed (ImGuiWindow* pparentInBeginStack = &parentInBeginStack) + { + DebugNodeWindowsListByBeginStackParentNative(windows, windowsSize, (ImGuiWindow*)pparentInBeginStack); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeViewportNative(ImGuiViewportP* viewport); + + /// /// To be documented. /// public static void DebugNodeViewport( ImGuiViewportP* viewport) + { + DebugNodeViewportNative(viewport); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugRenderKeyboardPreview")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugRenderKeyboardPreviewNative(ImDrawList* drawList); + + /// /// To be documented. /// public static void DebugRenderKeyboardPreview( ImDrawList* drawList) + { + DebugRenderKeyboardPreviewNative(drawList); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugRenderViewportThumbnail")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugRenderViewportThumbnailNative(ImDrawList* drawList, ImGuiViewportP* viewport, ImRect bb); + + /// /// To be documented. /// public static void DebugRenderViewportThumbnail( ImDrawList* drawList, ImGuiViewportP* viewport, ImRect bb) + { + DebugRenderViewportThumbnailNative(drawList, viewport, bb); + } + + /// /// To be documented. /// public static void DebugRenderViewportThumbnail( ImDrawList* drawList, ref ImGuiViewportP viewport, ImRect bb) + { + fixed (ImGuiViewportP* pviewport = &viewport) + { + DebugRenderViewportThumbnailNative(drawList, (ImGuiViewportP*)pviewport, bb); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyPressedMap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyPressedMapNative(ImGuiKey key, byte repeat); + + /// /// To be documented. /// public static bool IsKeyPressedMap( ImGuiKey key, bool repeat) + { + byte ret = IsKeyPressedMapNative(key, repeat ? (byte)1 : (byte)0); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFontAtlasGetBuilderForStbTruetype")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetypeNative(); + + /// /// To be documented. /// public static ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype() + { + ImFontBuilderIO* ret = ImFontAtlasGetBuilderForStbTruetypeNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFontAtlasUpdateConfigDataPointers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasUpdateConfigDataPointersNative(ImFontAtlas* atlas); + + /// /// To be documented. /// public static void ImFontAtlasUpdateConfigDataPointers( ImFontAtlas* atlas) + { + ImFontAtlasUpdateConfigDataPointersNative(atlas); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildInit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildInitNative(ImFontAtlas* atlas); + + /// /// To be documented. /// public static void ImFontAtlasBuildInit( ImFontAtlas* atlas) + { + ImFontAtlasBuildInitNative(atlas); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildSetupFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildSetupFontNative(ImFontAtlas* atlas, ImFont* font, ImFontConfig* fontConfig, float ascent, float descent); + + /// /// To be documented. /// public static void ImFontAtlasBuildSetupFont( ImFontAtlas* atlas, ImFont* font, ImFontConfig* fontConfig, float ascent, float descent) + { + ImFontAtlasBuildSetupFontNative(atlas, font, fontConfig, ascent, descent); + } + + /// /// To be documented. /// public static void ImFontAtlasBuildSetupFont( ImFontAtlas* atlas, ref ImFont font, ImFontConfig* fontConfig, float ascent, float descent) + { + fixed (ImFont* pfont = &font) + { + ImFontAtlasBuildSetupFontNative(atlas, (ImFont*)pfont, fontConfig, ascent, descent); + } + } + + /// /// To be documented. /// public static void ImFontAtlasBuildSetupFont( ImFontAtlas* atlas, ImFont* font, ref ImFontConfig fontConfig, float ascent, float descent) + { + fixed (ImFontConfig* pfontConfig = &fontConfig) + { + ImFontAtlasBuildSetupFontNative(atlas, font, (ImFontConfig*)pfontConfig, ascent, descent); + } + } + + /// /// To be documented. /// public static void ImFontAtlasBuildSetupFont( ImFontAtlas* atlas, ref ImFont font, ref ImFontConfig fontConfig, float ascent, float descent) + { + fixed (ImFont* pfont = &font) + { + fixed (ImFontConfig* pfontConfig = &fontConfig) + { + ImFontAtlasBuildSetupFontNative(atlas, (ImFont*)pfont, (ImFontConfig*)pfontConfig, ascent, descent); + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildPackCustomRects")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildPackCustomRectsNative(ImFontAtlas* atlas, void* stbrpContextOpaque); + + /// /// To be documented. /// public static void ImFontAtlasBuildPackCustomRects( ImFontAtlas* atlas, void* stbrpContextOpaque) + { + ImFontAtlasBuildPackCustomRectsNative(atlas, stbrpContextOpaque); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildFinish")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildFinishNative(ImFontAtlas* atlas); + + /// /// To be documented. /// public static void ImFontAtlasBuildFinish( ImFontAtlas* atlas) + { + ImFontAtlasBuildFinishNative(atlas); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildRender8bppRectFromString")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildRender8BppRectFromStringNative(ImFontAtlas* atlas, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue); + + /// /// To be documented. /// public static void ImFontAtlasBuildRender8BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + ImFontAtlasBuildRender8BppRectFromStringNative(atlas, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); + } + + /// /// To be documented. /// public static void ImFontAtlasBuildRender8BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + fixed (byte* pinStr = &inStr) + { + ImFontAtlasBuildRender8BppRectFromStringNative(atlas, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + } + } + + /// /// To be documented. /// public static void ImFontAtlasBuildRender8BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, string inStr, byte inMarkerChar, byte inMarkerPixelValue) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inStr != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inStr); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontAtlasBuildRender8BppRectFromStringNative(atlas, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildRender32bppRectFromString")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildRender32BppRectFromStringNative(ImFontAtlas* atlas, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue); + + /// /// To be documented. /// public static void ImFontAtlasBuildRender32BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + ImFontAtlasBuildRender32BppRectFromStringNative(atlas, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); + } + + /// /// To be documented. /// public static void ImFontAtlasBuildRender32BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + fixed (byte* pinStr = &inStr) + { + ImFontAtlasBuildRender32BppRectFromStringNative(atlas, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + } + } + + /// /// To be documented. /// public static void ImFontAtlasBuildRender32BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, string inStr, byte inMarkerChar, uint inMarkerPixelValue) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inStr != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inStr); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFontAtlasBuildRender32BppRectFromStringNative(atlas, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildMultiplyCalcLookupTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildMultiplyCalcLookupTableNative(byte* outTable, float inMultiplyFactor); + + /// /// To be documented. /// public static void ImFontAtlasBuildMultiplyCalcLookupTable( byte* outTable, float inMultiplyFactor) + { + ImFontAtlasBuildMultiplyCalcLookupTableNative(outTable, inMultiplyFactor); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildMultiplyRectAlpha8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildMultiplyRectAlpha8Native(byte* table, byte* pixels, int x, int y, int w, int h, int stride); + + /// /// To be documented. /// public static void ImFontAtlasBuildMultiplyRectAlpha8( byte* table, byte* pixels, int x, int y, int w, int h, int stride) + { + ImFontAtlasBuildMultiplyRectAlpha8Native(table, pixels, x, y, w, h, stride); + } + + /// /// To be documented. /// public static void ImFontAtlasBuildMultiplyRectAlpha8( byte* table, ref byte pixels, int x, int y, int w, int h, int stride) + { + fixed (byte* ppixels = &pixels) + { + ImFontAtlasBuildMultiplyRectAlpha8Native(table, (byte*)ppixels, x, y, w, h, stride); + } + } + + /// + /// //////////////////////hand written functions
+ /// no LogTextV
+ ///
+ [LibraryImport(LibName, EntryPoint = "igLogText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogTextNative(byte* fmt); + + public static void LogText( byte* fmt) + { + LogTextNative(fmt); + } + + /// + /// no appendfV
+ ///
+ [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_appendf")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void appendfNative(ImGuiTextBuffer* buffer, byte* fmt); + + public static void appendf( ImGuiTextBuffer* buffer, byte* fmt) + { + appendfNative(buffer, fmt); + } + + public static void appendf( ImGuiTextBuffer* buffer, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + appendfNative(buffer, (byte*)pfmt); + } + } + + public static void appendf( ImGuiTextBuffer* buffer, string fmt) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendfNative(buffer, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// for getting FLT_MAX in bindings
+ ///
+ [LibraryImport(LibName, EntryPoint = "igGET_FLT_MAX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GETFLTMAXNative(); + + /// /// for getting FLT_MAX in bindings
///
public static float GETFLTMAX() + { + float ret = GETFLTMAXNative(); + return ret; + } + + /// + /// for getting FLT_MIN in bindings
+ ///
+ [LibraryImport(LibName, EntryPoint = "igGET_FLT_MIN")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GETFLTMINNative(); + + /// /// for getting FLT_MIN in bindings
///
public static float GETFLTMIN() + { + float ret = GETFLTMINNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVector_ImWchar_create")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVectorImWchar* ImVectorImWcharCreateNative(); + + /// /// To be documented. /// public static ImVectorImWchar* ImVectorImWcharCreate() + { + ImVectorImWchar* ret = ImVectorImWcharCreateNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVector_ImWchar_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImVectorImWcharDestroyNative(ImVectorImWchar* self); + + /// /// To be documented. /// public static void ImVectorImWcharDestroy( ImVectorImWchar* self) + { + ImVectorImWcharDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVector_ImWchar_Init")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImVectorImWcharInitNative(ImVectorImWchar* p); + + /// /// To be documented. /// public static void ImVectorImWcharInit( ImVectorImWchar* p) + { + ImVectorImWcharInitNative(p); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVector_ImWchar_UnInit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImVectorImWcharUnInitNative(ImVectorImWchar* p); + + /// /// To be documented. /// public static void ImVectorImWcharUnInit( ImVectorImWchar* p) + { + ImVectorImWcharUnInitNative(p); + } + + } +} diff --git a/Hexa.NET.ImGui/Generated/Functions.cs b/Hexa.NET.ImGui/Generated/Functions.cs index 62feb8f..d826140 100644 --- a/Hexa.NET.ImGui/Generated/Functions.cs +++ b/Hexa.NET.ImGui/Generated/Functions.cs @@ -13,7 +13,7 @@ using HexaGen.Runtime; using System.Numerics; -namespace Hexa.NET.ImGuiNET +namespace Hexa.NET.ImGui { public unsafe partial class ImGui { @@ -22,13 +22,10 @@ public unsafe partial class ImGui /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImVec2_ImVec2_Nil")] - [return: NativeName(NativeNameType.Type, "ImVec2*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec2_ImVec2_Nil")] - internal static extern Vector2* ImVec2Native(); + [LibraryImport(LibName, EntryPoint = "ImVec2_ImVec2_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial Vector2* ImVec2Native(); - [NativeName(NativeNameType.Func, "ImVec2_ImVec2_Nil")] - [return: NativeName(NativeNameType.Type, "ImVec2*")] public static Vector2* ImVec2() { Vector2* ret = ImVec2Native(); @@ -38,39 +35,23 @@ public unsafe partial class ImGui /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImVec2_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec2_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* self); + [LibraryImport(LibName, EntryPoint = "ImVec2_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(Vector2* self); - [NativeName(NativeNameType.Func, "ImVec2_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* self) + public static void Destroy( Vector2* self) { DestroyNative(self); } - [NativeName(NativeNameType.Func, "ImVec2_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 self) - { - fixed (Vector2* pself = &self) - { - DestroyNative((Vector2*)pself); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImVec2_ImVec2_Float")] - [return: NativeName(NativeNameType.Type, "ImVec2*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec2_ImVec2_Float")] - internal static extern Vector2* ImVec2Native([NativeName(NativeNameType.Param, "_x")] [NativeName(NativeNameType.Type, "float")] float X, [NativeName(NativeNameType.Param, "_y")] [NativeName(NativeNameType.Type, "float")] float Y); + [LibraryImport(LibName, EntryPoint = "ImVec2_ImVec2_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial Vector2* ImVec2Native(float X, float Y); - [NativeName(NativeNameType.Func, "ImVec2_ImVec2_Float")] - [return: NativeName(NativeNameType.Type, "ImVec2*")] - public static Vector2* ImVec2([NativeName(NativeNameType.Param, "_x")] [NativeName(NativeNameType.Type, "float")] float X, [NativeName(NativeNameType.Param, "_y")] [NativeName(NativeNameType.Type, "float")] float Y) + public static Vector2* ImVec2( float X, float Y) { Vector2* ret = ImVec2Native(X, Y); return ret; @@ -79,13 +60,10 @@ public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeNam /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImVec4_ImVec4_Nil")] - [return: NativeName(NativeNameType.Type, "ImVec4*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec4_ImVec4_Nil")] - internal static extern Vector4* ImVec4Native(); + [LibraryImport(LibName, EntryPoint = "ImVec4_ImVec4_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial Vector4* ImVec4Native(); - [NativeName(NativeNameType.Func, "ImVec4_ImVec4_Nil")] - [return: NativeName(NativeNameType.Type, "ImVec4*")] public static Vector4* ImVec4() { Vector4* ret = ImVec4Native(); @@ -95,39 +73,18 @@ public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeNam /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImVec4_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec4_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec4*")] Vector4* self); - - [NativeName(NativeNameType.Func, "ImVec4_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec4*")] Vector4* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImVec4_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec4*")] ref Vector4 self) - { - fixed (Vector4* pself = &self) - { - DestroyNative((Vector4*)pself); - } - } + [LibraryImport(LibName, EntryPoint = "ImVec4_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(Vector4* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImVec4_ImVec4_Float")] - [return: NativeName(NativeNameType.Type, "ImVec4*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec4_ImVec4_Float")] - internal static extern Vector4* ImVec4Native([NativeName(NativeNameType.Param, "_x")] [NativeName(NativeNameType.Type, "float")] float X, [NativeName(NativeNameType.Param, "_y")] [NativeName(NativeNameType.Type, "float")] float Y, [NativeName(NativeNameType.Param, "_z")] [NativeName(NativeNameType.Type, "float")] float Z, [NativeName(NativeNameType.Param, "_w")] [NativeName(NativeNameType.Type, "float")] float W); + [LibraryImport(LibName, EntryPoint = "ImVec4_ImVec4_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial Vector4* ImVec4Native(float X, float Y, float Z, float W); - [NativeName(NativeNameType.Func, "ImVec4_ImVec4_Float")] - [return: NativeName(NativeNameType.Type, "ImVec4*")] - public static Vector4* ImVec4([NativeName(NativeNameType.Param, "_x")] [NativeName(NativeNameType.Type, "float")] float X, [NativeName(NativeNameType.Param, "_y")] [NativeName(NativeNameType.Type, "float")] float Y, [NativeName(NativeNameType.Param, "_z")] [NativeName(NativeNameType.Type, "float")] float Z, [NativeName(NativeNameType.Param, "_w")] [NativeName(NativeNameType.Type, "float")] float W) + public static Vector4* ImVec4( float X, float Y, float Z, float W) { Vector4* ret = ImVec4Native(X, Y, Z, W); return ret; @@ -136,80 +93,35 @@ public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeNam /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igCreateContext")] - [return: NativeName(NativeNameType.Type, "ImGuiContext*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCreateContext")] - internal static extern ImGuiContext* CreateContextNative([NativeName(NativeNameType.Param, "shared_font_atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* sharedFontAtlas); + [LibraryImport(LibName, EntryPoint = "igCreateContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiContext* CreateContextNative(ImFontAtlas* sharedFontAtlas); - [NativeName(NativeNameType.Func, "igCreateContext")] - [return: NativeName(NativeNameType.Type, "ImGuiContext*")] - public static ImGuiContext* CreateContext([NativeName(NativeNameType.Param, "shared_font_atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* sharedFontAtlas) + public static ImGuiContext* CreateContext( ImFontAtlas* sharedFontAtlas) { ImGuiContext* ret = CreateContextNative(sharedFontAtlas); return ret; } - [NativeName(NativeNameType.Func, "igCreateContext")] - [return: NativeName(NativeNameType.Type, "ImGuiContext*")] - public static ImGuiContext* CreateContext() - { - ImGuiContext* ret = CreateContextNative((ImFontAtlas*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "igCreateContext")] - [return: NativeName(NativeNameType.Type, "ImGuiContext*")] - public static ImGuiContext* CreateContext([NativeName(NativeNameType.Param, "shared_font_atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas sharedFontAtlas) - { - fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) - { - ImGuiContext* ret = CreateContextNative((ImFontAtlas*)psharedFontAtlas); - return ret; - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDestroyContext")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDestroyContext")] - internal static extern void DestroyContextNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx); + [LibraryImport(LibName, EntryPoint = "igDestroyContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyContextNative(ImGuiContext* ctx); - /// /// NULL = destroy current context /// [NativeName(NativeNameType.Func, "igDestroyContext")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DestroyContext([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) + public static void DestroyContext( ImGuiContext* ctx) { DestroyContextNative(ctx); } - /// /// NULL = destroy current context /// [NativeName(NativeNameType.Func, "igDestroyContext")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DestroyContext() - { - DestroyContextNative((ImGuiContext*)(default)); - } - - /// /// NULL = destroy current context /// [NativeName(NativeNameType.Func, "igDestroyContext")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DestroyContext([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - DestroyContextNative((ImGuiContext*)pctx); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetCurrentContext")] - [return: NativeName(NativeNameType.Type, "ImGuiContext*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetCurrentContext")] - internal static extern ImGuiContext* GetCurrentContextNative(); + [LibraryImport(LibName, EntryPoint = "igGetCurrentContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiContext* GetCurrentContextNative(); - [NativeName(NativeNameType.Func, "igGetCurrentContext")] - [return: NativeName(NativeNameType.Type, "ImGuiContext*")] public static ImGuiContext* GetCurrentContext() { ImGuiContext* ret = GetCurrentContextNative(); @@ -219,38 +131,22 @@ public static void DestroyContext([NativeName(NativeNameType.Param, "ctx")] [Nat /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetCurrentContext")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetCurrentContext")] - internal static extern void SetCurrentContextNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx); + [LibraryImport(LibName, EntryPoint = "igSetCurrentContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCurrentContextNative(ImGuiContext* ctx); - [NativeName(NativeNameType.Func, "igSetCurrentContext")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentContext([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) + public static void SetCurrentContext( ImGuiContext* ctx) { SetCurrentContextNative(ctx); } - [NativeName(NativeNameType.Func, "igSetCurrentContext")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentContext([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) - { - SetCurrentContextNative((ImGuiContext*)pctx); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetIO")] - [return: NativeName(NativeNameType.Type, "ImGuiIO*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetIO")] - internal static extern ImGuiIO* GetIONative(); + [LibraryImport(LibName, EntryPoint = "igGetIO")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiIO* GetIONative(); - /// /// access the IO structure (mousekeyboardgamepad inputs, time, various configuration optionsflags) /// [NativeName(NativeNameType.Func, "igGetIO")] - [return: NativeName(NativeNameType.Type, "ImGuiIO*")] public static ImGuiIO* GetIO() { ImGuiIO* ret = GetIONative(); @@ -260,13 +156,10 @@ public static void SetCurrentContext([NativeName(NativeNameType.Param, "ctx")] [ /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetStyle")] - [return: NativeName(NativeNameType.Type, "ImGuiStyle*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetStyle")] - internal static extern ImGuiStyle* GetStyleNative(); + [LibraryImport(LibName, EntryPoint = "igGetStyle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStyle* GetStyleNative(); - /// /// access the Style structure (colors, sizes). Always use PushStyleCol(), PushStyleVar() to modify style mid-frame! /// [NativeName(NativeNameType.Func, "igGetStyle")] - [return: NativeName(NativeNameType.Type, "ImGuiStyle*")] public static ImGuiStyle* GetStyle() { ImGuiStyle* ret = GetStyleNative(); @@ -276,13 +169,10 @@ public static void SetCurrentContext([NativeName(NativeNameType.Param, "ctx")] [ /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igNewFrame")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNewFrame")] - internal static extern void NewFrameNative(); + [LibraryImport(LibName, EntryPoint = "igNewFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NewFrameNative(); - /// /// start a new Dear ImGui frame, you can submit any command from this point until Render()EndFrame(). /// [NativeName(NativeNameType.Func, "igNewFrame")] - [return: NativeName(NativeNameType.Type, "void")] public static void NewFrame() { NewFrameNative(); @@ -291,13 +181,10 @@ public static void NewFrame() /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igEndFrame")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndFrame")] - internal static extern void EndFrameNative(); + [LibraryImport(LibName, EntryPoint = "igEndFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndFrameNative(); - /// /// ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all! /// [NativeName(NativeNameType.Func, "igEndFrame")] - [return: NativeName(NativeNameType.Type, "void")] public static void EndFrame() { EndFrameNative(); @@ -306,13 +193,10 @@ public static void EndFrame() /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRender")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRender")] - internal static extern void RenderNative(); + [LibraryImport(LibName, EntryPoint = "igRender")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderNative(); - /// /// ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData(). /// [NativeName(NativeNameType.Func, "igRender")] - [return: NativeName(NativeNameType.Type, "void")] public static void Render() { RenderNative(); @@ -321,13 +205,10 @@ public static void Render() /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetDrawData")] - [return: NativeName(NativeNameType.Type, "ImDrawData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetDrawData")] - internal static extern ImDrawData* GetDrawDataNative(); + [LibraryImport(LibName, EntryPoint = "igGetDrawData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawData* GetDrawDataNative(); - /// /// valid after Render() and until the next call to NewFrame(). this is what you have to render. /// [NativeName(NativeNameType.Func, "igGetDrawData")] - [return: NativeName(NativeNameType.Type, "ImDrawData*")] public static ImDrawData* GetDrawData() { ImDrawData* ret = GetDrawDataNative(); @@ -337,314 +218,107 @@ public static void Render() /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShowDemoWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShowDemoWindow")] - internal static extern void ShowDemoWindowNative([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen); + [LibraryImport(LibName, EntryPoint = "igShowDemoWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowDemoWindowNative(byte* pOpen); - /// /// create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! /// [NativeName(NativeNameType.Func, "igShowDemoWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowDemoWindow([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) + public static void ShowDemoWindow( byte* pOpen) { ShowDemoWindowNative(pOpen); } - /// /// create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! /// [NativeName(NativeNameType.Func, "igShowDemoWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowDemoWindow() - { - ShowDemoWindowNative((byte*)(default)); - } - - /// /// create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! /// [NativeName(NativeNameType.Func, "igShowDemoWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowDemoWindow([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) - { - fixed (byte* ppOpen = &pOpen) - { - ShowDemoWindowNative((byte*)ppOpen); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShowMetricsWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShowMetricsWindow")] - internal static extern void ShowMetricsWindowNative([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen); + [LibraryImport(LibName, EntryPoint = "igShowMetricsWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowMetricsWindowNative(byte* pOpen); - /// /// create MetricsDebugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc. /// [NativeName(NativeNameType.Func, "igShowMetricsWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowMetricsWindow([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) + public static void ShowMetricsWindow( byte* pOpen) { ShowMetricsWindowNative(pOpen); } - /// /// create MetricsDebugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc. /// [NativeName(NativeNameType.Func, "igShowMetricsWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowMetricsWindow() - { - ShowMetricsWindowNative((byte*)(default)); - } - - /// /// create MetricsDebugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc. /// [NativeName(NativeNameType.Func, "igShowMetricsWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowMetricsWindow([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) - { - fixed (byte* ppOpen = &pOpen) - { - ShowMetricsWindowNative((byte*)ppOpen); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShowDebugLogWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShowDebugLogWindow")] - internal static extern void ShowDebugLogWindowNative([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen); + [LibraryImport(LibName, EntryPoint = "igShowDebugLogWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowDebugLogWindowNative(byte* pOpen); - /// /// create Debug Log window. display a simplified log of important dear imgui events. /// [NativeName(NativeNameType.Func, "igShowDebugLogWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowDebugLogWindow([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) + public static void ShowDebugLogWindow( byte* pOpen) { ShowDebugLogWindowNative(pOpen); } - /// /// create Debug Log window. display a simplified log of important dear imgui events. /// [NativeName(NativeNameType.Func, "igShowDebugLogWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowDebugLogWindow() - { - ShowDebugLogWindowNative((byte*)(default)); - } - - /// /// create Debug Log window. display a simplified log of important dear imgui events. /// [NativeName(NativeNameType.Func, "igShowDebugLogWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowDebugLogWindow([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) - { - fixed (byte* ppOpen = &pOpen) - { - ShowDebugLogWindowNative((byte*)ppOpen); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShowStackToolWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShowStackToolWindow")] - internal static extern void ShowStackToolWindowNative([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen); - - /// /// create Stack Tool window. hover items with mouse to query information about the source of their unique ID. /// [NativeName(NativeNameType.Func, "igShowStackToolWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowStackToolWindow([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) - { - ShowStackToolWindowNative(pOpen); - } - - /// /// create Stack Tool window. hover items with mouse to query information about the source of their unique ID. /// [NativeName(NativeNameType.Func, "igShowStackToolWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowStackToolWindow() - { - ShowStackToolWindowNative((byte*)(default)); - } + [LibraryImport(LibName, EntryPoint = "igShowIDStackToolWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowIDStackToolWindowNative(byte* pOpen); - /// /// create Stack Tool window. hover items with mouse to query information about the source of their unique ID. /// [NativeName(NativeNameType.Func, "igShowStackToolWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowStackToolWindow([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) + public static void ShowIDStackToolWindow( byte* pOpen) { - fixed (byte* ppOpen = &pOpen) - { - ShowStackToolWindowNative((byte*)ppOpen); - } + ShowIDStackToolWindowNative(pOpen); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShowAboutWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShowAboutWindow")] - internal static extern void ShowAboutWindowNative([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen); + [LibraryImport(LibName, EntryPoint = "igShowAboutWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowAboutWindowNative(byte* pOpen); - /// /// create About window. display Dear ImGui version, credits and buildsystem information. /// [NativeName(NativeNameType.Func, "igShowAboutWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowAboutWindow([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) + public static void ShowAboutWindow( byte* pOpen) { ShowAboutWindowNative(pOpen); } - /// /// create About window. display Dear ImGui version, credits and buildsystem information. /// [NativeName(NativeNameType.Func, "igShowAboutWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowAboutWindow() - { - ShowAboutWindowNative((byte*)(default)); - } - - /// /// create About window. display Dear ImGui version, credits and buildsystem information. /// [NativeName(NativeNameType.Func, "igShowAboutWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowAboutWindow([NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) - { - fixed (byte* ppOpen = &pOpen) - { - ShowAboutWindowNative((byte*)ppOpen); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShowStyleEditor")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShowStyleEditor")] - internal static extern void ShowStyleEditorNative([NativeName(NativeNameType.Param, "ref")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* reference); + [LibraryImport(LibName, EntryPoint = "igShowStyleEditor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowStyleEditorNative(ImGuiStyle* reference); - /// /// add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) /// [NativeName(NativeNameType.Func, "igShowStyleEditor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowStyleEditor([NativeName(NativeNameType.Param, "ref")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* reference) + public static void ShowStyleEditor( ImGuiStyle* reference) { ShowStyleEditorNative(reference); } - /// /// add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) /// [NativeName(NativeNameType.Func, "igShowStyleEditor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowStyleEditor() - { - ShowStyleEditorNative((ImGuiStyle*)(default)); - } - - /// /// add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) /// [NativeName(NativeNameType.Func, "igShowStyleEditor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowStyleEditor([NativeName(NativeNameType.Param, "ref")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ref ImGuiStyle reference) - { - fixed (ImGuiStyle* preference = &reference) - { - ShowStyleEditorNative((ImGuiStyle*)preference); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShowStyleSelector")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShowStyleSelector")] - internal static extern byte ShowStyleSelectorNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); + [LibraryImport(LibName, EntryPoint = "igShowStyleSelector")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ShowStyleSelectorNative(byte* label); - /// /// add style selector block (not a window), essentially a combo listing the default styles. /// [NativeName(NativeNameType.Func, "igShowStyleSelector")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ShowStyleSelector([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + public static bool ShowStyleSelector( byte* label) { byte ret = ShowStyleSelectorNative(label); return ret != 0; } - /// /// add style selector block (not a window), essentially a combo listing the default styles. /// [NativeName(NativeNameType.Func, "igShowStyleSelector")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ShowStyleSelector([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = ShowStyleSelectorNative((byte*)plabel); - return ret != 0; - } - } - - /// /// add style selector block (not a window), essentially a combo listing the default styles. /// [NativeName(NativeNameType.Func, "igShowStyleSelector")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ShowStyleSelector([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ShowStyleSelectorNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShowFontSelector")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShowFontSelector")] - internal static extern void ShowFontSelectorNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); + [LibraryImport(LibName, EntryPoint = "igShowFontSelector")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowFontSelectorNative(byte* label); - /// /// add font selector block (not a window), essentially a combo listing the loaded fonts. /// [NativeName(NativeNameType.Func, "igShowFontSelector")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowFontSelector([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + public static void ShowFontSelector( byte* label) { ShowFontSelectorNative(label); } - /// /// add font selector block (not a window), essentially a combo listing the loaded fonts. /// [NativeName(NativeNameType.Func, "igShowFontSelector")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowFontSelector([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - ShowFontSelectorNative((byte*)plabel); - } - } - - /// /// add font selector block (not a window), essentially a combo listing the loaded fonts. /// [NativeName(NativeNameType.Func, "igShowFontSelector")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowFontSelector([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ShowFontSelectorNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShowUserGuide")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShowUserGuide")] - internal static extern void ShowUserGuideNative(); + [LibraryImport(LibName, EntryPoint = "igShowUserGuide")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowUserGuideNative(); - /// /// add basic helpinfo block (not a window): how to manipulate ImGui as an end-user (mousekeyboard controls). /// [NativeName(NativeNameType.Func, "igShowUserGuide")] - [return: NativeName(NativeNameType.Type, "void")] public static void ShowUserGuide() { ShowUserGuideNative(); @@ -653,21 +327,16 @@ public static void ShowUserGuide() /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetVersion")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetVersion")] - internal static extern byte* GetVersionNative(); + [LibraryImport(LibName, EntryPoint = "igGetVersion")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetVersionNative(); - /// /// get the compiled version string e.g. "1.80 WIP" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp) /// [NativeName(NativeNameType.Func, "igGetVersion")] - [return: NativeName(NativeNameType.Type, "const char*")] public static byte* GetVersion() { byte* ret = GetVersionNative(); return ret; } - /// /// get the compiled version string e.g. "1.80 WIP" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp) /// [NativeName(NativeNameType.Func, "igGetVersion")] - [return: NativeName(NativeNameType.Type, "const char*")] public static string GetVersionS() { string ret = Utils.DecodeStringUTF8(GetVersionNative()); @@ -677,2998 +346,2246 @@ public static string GetVersionS() /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igStyleColorsDark")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igStyleColorsDark")] - internal static extern void StyleColorsDarkNative([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* dst); + [LibraryImport(LibName, EntryPoint = "igStyleColorsDark")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void StyleColorsDarkNative(ImGuiStyle* dst); - /// /// new, recommended style (default) /// [NativeName(NativeNameType.Func, "igStyleColorsDark")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StyleColorsDark([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* dst) + public static void StyleColorsDark( ImGuiStyle* dst) { StyleColorsDarkNative(dst); } - /// /// new, recommended style (default) /// [NativeName(NativeNameType.Func, "igStyleColorsDark")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StyleColorsDark() - { - StyleColorsDarkNative((ImGuiStyle*)(default)); - } - - /// /// new, recommended style (default) /// [NativeName(NativeNameType.Func, "igStyleColorsDark")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StyleColorsDark([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ref ImGuiStyle dst) - { - fixed (ImGuiStyle* pdst = &dst) - { - StyleColorsDarkNative((ImGuiStyle*)pdst); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igStyleColorsLight")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igStyleColorsLight")] - internal static extern void StyleColorsLightNative([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* dst); + [LibraryImport(LibName, EntryPoint = "igStyleColorsLight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void StyleColorsLightNative(ImGuiStyle* dst); - /// /// best used with borders and a custom, thicker font /// [NativeName(NativeNameType.Func, "igStyleColorsLight")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StyleColorsLight([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* dst) + public static void StyleColorsLight( ImGuiStyle* dst) { StyleColorsLightNative(dst); } - /// /// best used with borders and a custom, thicker font /// [NativeName(NativeNameType.Func, "igStyleColorsLight")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StyleColorsLight() - { - StyleColorsLightNative((ImGuiStyle*)(default)); - } - - /// /// best used with borders and a custom, thicker font /// [NativeName(NativeNameType.Func, "igStyleColorsLight")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StyleColorsLight([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ref ImGuiStyle dst) - { - fixed (ImGuiStyle* pdst = &dst) - { - StyleColorsLightNative((ImGuiStyle*)pdst); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igStyleColorsClassic")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igStyleColorsClassic")] - internal static extern void StyleColorsClassicNative([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* dst); + [LibraryImport(LibName, EntryPoint = "igStyleColorsClassic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void StyleColorsClassicNative(ImGuiStyle* dst); - /// /// classic imgui style /// [NativeName(NativeNameType.Func, "igStyleColorsClassic")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StyleColorsClassic([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* dst) + public static void StyleColorsClassic( ImGuiStyle* dst) { StyleColorsClassicNative(dst); } - /// /// classic imgui style /// [NativeName(NativeNameType.Func, "igStyleColorsClassic")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StyleColorsClassic() - { - StyleColorsClassicNative((ImGuiStyle*)(default)); - } - - /// /// classic imgui style /// [NativeName(NativeNameType.Func, "igStyleColorsClassic")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StyleColorsClassic([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ref ImGuiStyle dst) - { - fixed (ImGuiStyle* pdst = &dst) - { - StyleColorsClassicNative((ImGuiStyle*)pdst); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBegin")] - internal static extern byte BeginNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags); + [LibraryImport(LibName, EntryPoint = "igBegin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginNative(byte* name, byte* pOpen, int flags); - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static bool Begin( byte* name, byte* pOpen, int flags) { byte ret = BeginNative(name, pOpen, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) + public static bool Begin( byte* name, byte* pOpen) { - byte ret = BeginNative(name, pOpen, (ImGuiWindowFlags)(0)); + byte ret = BeginNative(name, pOpen, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name) + public static bool Begin( byte* name) { - byte ret = BeginNative(name, (byte*)(default), (ImGuiWindowFlags)(0)); + byte ret = BeginNative(name, (byte*)(default), (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static bool Begin( byte* name, int flags) { byte ret = BeginNative(name, (byte*)(default), flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static bool Begin( byte* name, ref byte pOpen, int flags) { - fixed (byte* pname = &name) + fixed (byte* ppOpen = &pOpen) { - byte ret = BeginNative((byte*)pname, pOpen, flags); + byte ret = BeginNative(name, (byte*)ppOpen, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) + public static bool Begin( byte* name, ref byte pOpen) { - fixed (byte* pname = &name) + fixed (byte* ppOpen = &pOpen) { - byte ret = BeginNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); + byte ret = BeginNative(name, (byte*)ppOpen, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEnd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndNative(); + + public static void End() { - fixed (byte* pname = &name) - { - byte ret = BeginNative((byte*)pname, (byte*)(default), (ImGuiWindowFlags)(0)); - return ret != 0; - } + EndNative(); } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginChild_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginChildNative(byte* strId, Vector2 size, byte border, int windowFlags); + + public static bool BeginChild( byte* strId, Vector2 size, bool border, int windowFlags) { - fixed (byte* pname = &name) - { - byte ret = BeginNative((byte*)pname, (byte*)(default), flags); - return ret != 0; - } + byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, windowFlags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static bool BeginChild( byte* strId, Vector2 size, bool border) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginNative(pStr0, pOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) + public static bool BeginChild( byte* strId, Vector2 size) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginNative(pStr0, pOpen, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = BeginChildNative(strId, size, (byte)(0), (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name) + public static bool BeginChild( byte* strId) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginNative(pStr0, (byte*)(default), (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static bool BeginChild( byte* strId, bool border) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginNative(pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static bool BeginChild( byte* strId, Vector2 size, int windowFlags) { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginNative(name, (byte*)ppOpen, flags); - return ret != 0; - } + byte ret = BeginChildNative(strId, size, (byte)(0), windowFlags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) + public static bool BeginChild( byte* strId, int windowFlags) { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginNative(name, (byte*)ppOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), windowFlags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static bool BeginChild( byte* strId, bool border, int windowFlags) { - fixed (byte* pname = &name) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginNative((byte*)pname, (byte*)ppOpen, flags); - return ret != 0; - } - } + byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, windowFlags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginChild_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginChildNative(uint id, Vector2 size, byte border, int windowFlags); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndChild")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndChildNative(); + + public static void EndChild() { - fixed (byte* pname = &name) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginNative((byte*)pname, (byte*)ppOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } + EndChildNative(); } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowAppearing")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowAppearingNative(); + + public static bool IsWindowAppearing() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginNative(pStr0, (byte*)ppOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = IsWindowAppearingNative(); + return ret != 0; } - [NativeName(NativeNameType.Func, "igBegin")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Begin([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowCollapsed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowCollapsedNative(); + + public static bool IsWindowCollapsed() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginNative(pStr0, (byte*)ppOpen, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = IsWindowCollapsedNative(); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igEnd")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEnd")] - internal static extern void EndNative(); + [LibraryImport(LibName, EntryPoint = "igIsWindowFocused")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowFocusedNative(int flags); - [NativeName(NativeNameType.Func, "igEnd")] - [return: NativeName(NativeNameType.Type, "void")] - public static void End() + public static bool IsWindowFocused( int flags) { - EndNative(); + byte ret = IsWindowFocusedNative(flags); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginChild_Str")] - internal static extern byte BeginChildNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] byte border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags); + [LibraryImport(LibName, EntryPoint = "igIsWindowHovered")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowHoveredNative(int flags); - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static bool IsWindowHovered( int flags) { - byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, flags); + byte ret = IsWindowHoveredNative(flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowDrawList")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetWindowDrawListNative(); + + public static ImDrawList* GetWindowDrawList() { - byte ret = BeginChildNative(strId, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; + ImDrawList* ret = GetWindowDrawListNative(); + return ret; } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowDpiScale")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetWindowDpiScaleNative(); + + public static float GetWindowDpiScale() { - byte ret = BeginChildNative(strId, size, (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; + float ret = GetWindowDpiScaleNative(); + return ret; } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWindowPosNative(Vector2* pOut); + + public static void GetWindowPos( Vector2* pOut) { - byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; + GetWindowPosNative(pOut); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWindowSizeNative(Vector2* pOut); + + public static void GetWindowSize( Vector2* pOut) { - byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; + GetWindowSizeNative(pOut); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetWindowWidthNative(); + + public static float GetWindowWidth() { - byte ret = BeginChildNative(strId, size, (byte)(0), flags); - return ret != 0; + float ret = GetWindowWidthNative(); + return ret; } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetWindowHeightNative(); + + public static float GetWindowHeight() { - byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), (byte)(0), flags); - return ret != 0; + float ret = GetWindowHeightNative(); + return ret; } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewport* GetWindowViewportNative(); + + public static ImGuiViewport* GetWindowViewport() { - byte ret = BeginChildNative(strId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); - return ret != 0; + ImGuiViewport* ret = GetWindowViewportNative(); + return ret; } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowPosNative(Vector2 pos, int cond, Vector2 pivot); + + public static void SetNextWindowPos( Vector2 pos, int cond, Vector2 pivot) { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, flags); - return ret != 0; - } + SetNextWindowPosNative(pos, cond, pivot); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) + public static void SetNextWindowPos( Vector2 pos, int cond) { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; - } + SetNextWindowPosNative(pos, cond, (Vector2)(new Vector2(0,0))); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static void SetNextWindowPos( Vector2 pos) { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; - } + SetNextWindowPosNative(pos, (int)(0), (Vector2)(new Vector2(0,0))); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) + public static void SetNextWindowPos( Vector2 pos, Vector2 pivot) { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; - } + SetNextWindowPosNative(pos, (int)(0), pivot); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowSizeNative(Vector2 size, int cond); + + public static void SetNextWindowSize( Vector2 size, int cond) { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; - } + SetNextWindowSizeNative(size, cond); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static void SetNextWindowSize( Vector2 size) { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, size, (byte)(0), flags); - return ret != 0; - } + SetNextWindowSizeNative(size, (int)(0)); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowSizeConstraints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowSizeConstraintsNative(Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData); + + public static void SetNextWindowSizeConstraints( Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback, void* customCallbackData) { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), (byte)(0), flags); - return ret != 0; - } + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, customCallbackData); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static void SetNextWindowSizeConstraints( Vector2 sizeMin, Vector2 sizeMax, ImGuiSizeCallback customCallback) { - fixed (byte* pstrId = &strId) - { - byte ret = BeginChildNative((byte*)pstrId, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); - return ret != 0; - } + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, (void*)(default)); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static void SetNextWindowSizeConstraints( Vector2 sizeMin, Vector2 sizeMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, size, border ? (byte)1 : (byte)0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), (void*)(default)); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) + public static void SetNextWindowSizeConstraints( Vector2 sizeMin, Vector2 sizeMax, void* customCallbackData) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), customCallbackData); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, size, (byte)(0), (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowContentSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowContentSizeNative(Vector2 size); - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) + public static void SetNextWindowContentSize( Vector2 size) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + SetNextWindowContentSizeNative(size); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowCollapsed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowCollapsedNative(byte collapsed, int cond); + + public static void SetNextWindowCollapsed( bool collapsed, int cond) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static void SetNextWindowCollapsed( bool collapsed) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, size, (byte)(0), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (int)(0)); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowFocus")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowFocusNative(); + + public static void SetNextWindowFocus() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), (byte)(0), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + SetNextWindowFocusNative(); } - [NativeName(NativeNameType.Func, "igBeginChild_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowScroll")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowScrollNative(Vector2 scroll); + + public static void SetNextWindowScroll( Vector2 scroll) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginChildNative(pStr0, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + SetNextWindowScrollNative(scroll); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBeginChild_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginChild_ID")] - internal static extern byte BeginChildNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] byte border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags); + [LibraryImport(LibName, EntryPoint = "igSetNextWindowBgAlpha")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowBgAlphaNative(float alpha); - [NativeName(NativeNameType.Func, "igBeginChild_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static void SetNextWindowBgAlpha( float alpha) { - byte ret = BeginChildNative(id, size, border ? (byte)1 : (byte)0, flags); - return ret != 0; + SetNextWindowBgAlphaNative(alpha); } - [NativeName(NativeNameType.Func, "igBeginChild_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowViewportNative(uint viewportId); + + public static void SetNextWindowViewport( uint viewportId) { - byte ret = BeginChildNative(id, size, border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; + SetNextWindowViewportNative(viewportId); } - [NativeName(NativeNameType.Func, "igBeginChild_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowPos_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowPosNative(Vector2 pos, int cond); + + public static void SetWindowPos( Vector2 pos, int cond) { - byte ret = BeginChildNative(id, size, (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; + SetWindowPosNative(pos, cond); } - [NativeName(NativeNameType.Func, "igBeginChild_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + public static void SetWindowPos( Vector2 pos) { - byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), (byte)(0), (ImGuiWindowFlags)(0)); - return ret != 0; + SetWindowPosNative(pos, (int)(0)); } - [NativeName(NativeNameType.Func, "igBeginChild_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowSize_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowSizeNative(Vector2 size, int cond); + + public static void SetWindowSize( Vector2 size, int cond) { - byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, (ImGuiWindowFlags)(0)); - return ret != 0; + SetWindowSizeNative(size, cond); } - [NativeName(NativeNameType.Func, "igBeginChild_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static void SetWindowSize( Vector2 size) { - byte ret = BeginChildNative(id, size, (byte)(0), flags); - return ret != 0; + SetWindowSizeNative(size, (int)(0)); } - [NativeName(NativeNameType.Func, "igBeginChild_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowCollapsed_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowCollapsedNative(byte collapsed, int cond); + + public static void SetWindowCollapsed( bool collapsed, int cond) { - byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), (byte)(0), flags); - return ret != 0; + SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); } - [NativeName(NativeNameType.Func, "igBeginChild_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChild([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static void SetWindowCollapsed( bool collapsed) { - byte ret = BeginChildNative(id, (Vector2)(new Vector2(0,0)), border ? (byte)1 : (byte)0, flags); - return ret != 0; + SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (int)(0)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igEndChild")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndChild")] - internal static extern void EndChildNative(); + [LibraryImport(LibName, EntryPoint = "igSetWindowFocus_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowFocusNative(); - [NativeName(NativeNameType.Func, "igEndChild")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndChild() + public static void SetWindowFocus() { - EndChildNative(); + SetWindowFocusNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igIsWindowAppearing")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsWindowAppearing")] - internal static extern byte IsWindowAppearingNative(); + [LibraryImport(LibName, EntryPoint = "igSetWindowFontScale")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowFontScaleNative(float scale); - [NativeName(NativeNameType.Func, "igIsWindowAppearing")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowAppearing() + public static void SetWindowFontScale( float scale) { - byte ret = IsWindowAppearingNative(); - return ret != 0; + SetWindowFontScaleNative(scale); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igIsWindowCollapsed")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsWindowCollapsed")] - internal static extern byte IsWindowCollapsedNative(); + [LibraryImport(LibName, EntryPoint = "igSetWindowPos_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowPosNative(byte* name, Vector2 pos, int cond); - [NativeName(NativeNameType.Func, "igIsWindowCollapsed")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowCollapsed() + public static void SetWindowPos( byte* name, Vector2 pos, int cond) { - byte ret = IsWindowCollapsedNative(); - return ret != 0; + SetWindowPosNative(name, pos, cond); + } + + public static void SetWindowPos( byte* name, Vector2 pos) + { + SetWindowPosNative(name, pos, (int)(0)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igIsWindowFocused")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsWindowFocused")] - internal static extern byte IsWindowFocusedNative([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusedFlags")] ImGuiFocusedFlags flags); + [LibraryImport(LibName, EntryPoint = "igSetWindowSize_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowSizeNative(byte* name, Vector2 size, int cond); - /// /// is current window focused? or its rootchild, depending on flags. see flags for options. /// [NativeName(NativeNameType.Func, "igIsWindowFocused")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowFocused([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusedFlags")] ImGuiFocusedFlags flags) + public static void SetWindowSize( byte* name, Vector2 size, int cond) { - byte ret = IsWindowFocusedNative(flags); - return ret != 0; + SetWindowSizeNative(name, size, cond); } - /// /// is current window focused? or its rootchild, depending on flags. see flags for options. /// [NativeName(NativeNameType.Func, "igIsWindowFocused")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowFocused() + public static void SetWindowSize( byte* name, Vector2 size) { - byte ret = IsWindowFocusedNative((ImGuiFocusedFlags)(0)); - return ret != 0; + SetWindowSizeNative(name, size, (int)(0)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igIsWindowHovered")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsWindowHovered")] - internal static extern byte IsWindowHoveredNative([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiHoveredFlags")] ImGuiHoveredFlags flags); + [LibraryImport(LibName, EntryPoint = "igSetWindowCollapsed_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowCollapsedNative(byte* name, byte collapsed, int cond); - /// /// is current window hovered (and typically: not blocked by a popupmodal)? see flags for options. NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! /// [NativeName(NativeNameType.Func, "igIsWindowHovered")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowHovered([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiHoveredFlags")] ImGuiHoveredFlags flags) + public static void SetWindowCollapsed( byte* name, bool collapsed, int cond) { - byte ret = IsWindowHoveredNative(flags); - return ret != 0; + SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, cond); } - /// /// is current window hovered (and typically: not blocked by a popupmodal)? see flags for options. NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! /// [NativeName(NativeNameType.Func, "igIsWindowHovered")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowHovered() + public static void SetWindowCollapsed( byte* name, bool collapsed) { - byte ret = IsWindowHoveredNative((ImGuiHoveredFlags)(0)); - return ret != 0; + SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, (int)(0)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowDrawList")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowDrawList")] - internal static extern ImDrawList* GetWindowDrawListNative(); + [LibraryImport(LibName, EntryPoint = "igSetWindowFocus_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowFocusNative(byte* name); - /// /// get draw list associated to the current window, to append your own drawing primitives /// [NativeName(NativeNameType.Func, "igGetWindowDrawList")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* GetWindowDrawList() + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetContentRegionAvail")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetContentRegionAvailNative(Vector2* pOut); + + public static void GetContentRegionAvail( Vector2* pOut) { - ImDrawList* ret = GetWindowDrawListNative(); - return ret; + GetContentRegionAvailNative(pOut); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowDpiScale")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowDpiScale")] - internal static extern float GetWindowDpiScaleNative(); + [LibraryImport(LibName, EntryPoint = "igGetContentRegionMax")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetContentRegionMaxNative(Vector2* pOut); - /// /// get DPI scale currently associated to the current window's viewport. /// [NativeName(NativeNameType.Func, "igGetWindowDpiScale")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetWindowDpiScale() + public static void GetContentRegionMax( Vector2* pOut) { - float ret = GetWindowDpiScaleNative(); - return ret; + GetContentRegionMaxNative(pOut); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowPos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowPos")] - internal static extern void GetWindowPosNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); + [LibraryImport(LibName, EntryPoint = "igGetWindowContentRegionMin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWindowContentRegionMinNative(Vector2* pOut); - /// /// get current window position in screen space (useful if you want to do your own drawing via the DrawList API) /// [NativeName(NativeNameType.Func, "igGetWindowPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) + public static void GetWindowContentRegionMin( Vector2* pOut) { - GetWindowPosNative(pOut); + GetWindowContentRegionMinNative(pOut); } - /// /// get current window position in screen space (useful if you want to do your own drawing via the DrawList API) /// [NativeName(NativeNameType.Func, "igGetWindowPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowContentRegionMax")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWindowContentRegionMaxNative(Vector2* pOut); + + public static void GetWindowContentRegionMax( Vector2* pOut) { - fixed (Vector2* ppOut = &pOut) - { - GetWindowPosNative((Vector2*)ppOut); - } + GetWindowContentRegionMaxNative(pOut); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowSize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowSize")] - internal static extern void GetWindowSizeNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); + [LibraryImport(LibName, EntryPoint = "igGetScrollX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetScrollXNative(); - /// /// get current window size /// [NativeName(NativeNameType.Func, "igGetWindowSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) + public static float GetScrollX() { - GetWindowSizeNative(pOut); + float ret = GetScrollXNative(); + return ret; } - /// /// get current window size /// [NativeName(NativeNameType.Func, "igGetWindowSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetScrollY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetScrollYNative(); + + public static float GetScrollY() { - fixed (Vector2* ppOut = &pOut) - { - GetWindowSizeNative((Vector2*)ppOut); - } + float ret = GetScrollYNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowWidth")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowWidth")] - internal static extern float GetWindowWidthNative(); + [LibraryImport(LibName, EntryPoint = "igSetScrollX_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollXNative(float scrollX); - /// /// get current window width (shortcut for GetWindowSize().x) /// [NativeName(NativeNameType.Func, "igGetWindowWidth")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetWindowWidth() + public static void SetScrollX( float scrollX) { - float ret = GetWindowWidthNative(); - return ret; + SetScrollXNative(scrollX); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowHeight")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowHeight")] - internal static extern float GetWindowHeightNative(); + [LibraryImport(LibName, EntryPoint = "igSetScrollY_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollYNative(float scrollY); - /// /// get current window height (shortcut for GetWindowSize().y) /// [NativeName(NativeNameType.Func, "igGetWindowHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetWindowHeight() + public static void SetScrollY( float scrollY) { - float ret = GetWindowHeightNative(); - return ret; + SetScrollYNative(scrollY); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiViewport*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowViewport")] - internal static extern ImGuiViewport* GetWindowViewportNative(); + [LibraryImport(LibName, EntryPoint = "igGetScrollMaxX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetScrollMaxXNative(); - /// /// get viewport currently associated to the current window. /// [NativeName(NativeNameType.Func, "igGetWindowViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiViewport*")] - public static ImGuiViewport* GetWindowViewport() + public static float GetScrollMaxX() { - ImGuiViewport* ret = GetWindowViewportNative(); + float ret = GetScrollMaxXNative(); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetNextWindowPos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextWindowPos")] - internal static extern void SetNextWindowPosNative([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond, [NativeName(NativeNameType.Param, "pivot")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pivot); + [LibraryImport(LibName, EntryPoint = "igGetScrollMaxY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetScrollMaxYNative(); - /// /// set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. /// [NativeName(NativeNameType.Func, "igSetNextWindowPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowPos([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond, [NativeName(NativeNameType.Param, "pivot")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pivot) + public static float GetScrollMaxY() { - SetNextWindowPosNative(pos, cond, pivot); + float ret = GetScrollMaxYNative(); + return ret; } - /// /// set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. /// [NativeName(NativeNameType.Func, "igSetNextWindowPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowPos([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) - { - SetNextWindowPosNative(pos, cond, (Vector2)(new Vector2(0,0))); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollHereX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollHereXNative(float centerXRatio); - /// /// set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. /// [NativeName(NativeNameType.Func, "igSetNextWindowPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowPos([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) + public static void SetScrollHereX( float centerXRatio) { - SetNextWindowPosNative(pos, (ImGuiCond)(0), (Vector2)(new Vector2(0,0))); + SetScrollHereXNative(centerXRatio); } - /// /// set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. /// [NativeName(NativeNameType.Func, "igSetNextWindowPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowPos([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "pivot")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pivot) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollHereY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollHereYNative(float centerYRatio); + + public static void SetScrollHereY( float centerYRatio) { - SetNextWindowPosNative(pos, (ImGuiCond)(0), pivot); + SetScrollHereYNative(centerYRatio); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetNextWindowSize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextWindowSize")] - internal static extern void SetNextWindowSizeNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); + [LibraryImport(LibName, EntryPoint = "igSetScrollFromPosX_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollFromPosXNative(float localX, float centerXRatio); - /// /// set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() /// [NativeName(NativeNameType.Func, "igSetNextWindowSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowSize([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static void SetScrollFromPosX( float localX, float centerXRatio) { - SetNextWindowSizeNative(size, cond); + SetScrollFromPosXNative(localX, centerXRatio); } - /// /// set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() /// [NativeName(NativeNameType.Func, "igSetNextWindowSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowSize([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static void SetScrollFromPosX( float localX) { - SetNextWindowSizeNative(size, (ImGuiCond)(0)); + SetScrollFromPosXNative(localX, (float)(0.5f)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetNextWindowSizeConstraints")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextWindowSizeConstraints")] - internal static extern void SetNextWindowSizeConstraintsNative([NativeName(NativeNameType.Param, "size_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeMin, [NativeName(NativeNameType.Param, "size_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeMax, [NativeName(NativeNameType.Param, "custom_callback")] [NativeName(NativeNameType.Type, "ImGuiSizeCallback")] ImGuiSizeCallback customCallback, [NativeName(NativeNameType.Param, "custom_callback_data")] [NativeName(NativeNameType.Type, "void*")] void* customCallbackData); + [LibraryImport(LibName, EntryPoint = "igSetScrollFromPosY_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollFromPosYNative(float localY, float centerYRatio); - /// /// set next window size limits. use -1,-1 on either XY axis to preserve the current size. Sizes will be rounded down. Use callback to apply non-trivial programmatic constraints. /// [NativeName(NativeNameType.Func, "igSetNextWindowSizeConstraints")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowSizeConstraints([NativeName(NativeNameType.Param, "size_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeMin, [NativeName(NativeNameType.Param, "size_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeMax, [NativeName(NativeNameType.Param, "custom_callback")] [NativeName(NativeNameType.Type, "ImGuiSizeCallback")] ImGuiSizeCallback customCallback, [NativeName(NativeNameType.Param, "custom_callback_data")] [NativeName(NativeNameType.Type, "void*")] void* customCallbackData) + public static void SetScrollFromPosY( float localY, float centerYRatio) { - SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, customCallbackData); + SetScrollFromPosYNative(localY, centerYRatio); } - /// /// set next window size limits. use -1,-1 on either XY axis to preserve the current size. Sizes will be rounded down. Use callback to apply non-trivial programmatic constraints. /// [NativeName(NativeNameType.Func, "igSetNextWindowSizeConstraints")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowSizeConstraints([NativeName(NativeNameType.Param, "size_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeMin, [NativeName(NativeNameType.Param, "size_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeMax, [NativeName(NativeNameType.Param, "custom_callback")] [NativeName(NativeNameType.Type, "ImGuiSizeCallback")] ImGuiSizeCallback customCallback) + public static void SetScrollFromPosY( float localY) { - SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, customCallback, (void*)(default)); + SetScrollFromPosYNative(localY, (float)(0.5f)); } - /// /// set next window size limits. use -1,-1 on either XY axis to preserve the current size. Sizes will be rounded down. Use callback to apply non-trivial programmatic constraints. /// [NativeName(NativeNameType.Func, "igSetNextWindowSizeConstraints")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowSizeConstraints([NativeName(NativeNameType.Param, "size_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeMin, [NativeName(NativeNameType.Param, "size_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushFontNative(ImFont* font); + + public static void PushFont( ImFont* font) { - SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), (void*)(default)); + PushFontNative(font); } - /// /// set next window size limits. use -1,-1 on either XY axis to preserve the current size. Sizes will be rounded down. Use callback to apply non-trivial programmatic constraints. /// [NativeName(NativeNameType.Func, "igSetNextWindowSizeConstraints")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowSizeConstraints([NativeName(NativeNameType.Param, "size_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeMin, [NativeName(NativeNameType.Param, "size_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeMax, [NativeName(NativeNameType.Param, "custom_callback_data")] [NativeName(NativeNameType.Type, "void*")] void* customCallbackData) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopFontNative(); + + public static void PopFont() { - SetNextWindowSizeConstraintsNative(sizeMin, sizeMax, (ImGuiSizeCallback)(default), customCallbackData); + PopFontNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetNextWindowContentSize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextWindowContentSize")] - internal static extern void SetNextWindowContentSizeNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size); + [LibraryImport(LibName, EntryPoint = "igPushStyleColor_U32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushStyleColorNative(int idx, uint col); - /// /// set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin() /// [NativeName(NativeNameType.Func, "igSetNextWindowContentSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowContentSize([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static void PushStyleColor( int idx, uint col) { - SetNextWindowContentSizeNative(size); + PushStyleColorNative(idx, col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetNextWindowCollapsed")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextWindowCollapsed")] - internal static extern void SetNextWindowCollapsedNative([NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] byte collapsed, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); + [LibraryImport(LibName, EntryPoint = "igPushStyleColor_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushStyleColorNative(int idx, Vector4 col); - /// /// set next window collapsed state. call before Begin() /// [NativeName(NativeNameType.Func, "igSetNextWindowCollapsed")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowCollapsed([NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static void PushStyleColor( int idx, Vector4 col) { - SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); + PushStyleColorNative(idx, col); } - /// /// set next window collapsed state. call before Begin() /// [NativeName(NativeNameType.Func, "igSetNextWindowCollapsed")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowCollapsed([NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopStyleColor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopStyleColorNative(int count); + + public static void PopStyleColor( int count) { - SetNextWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + PopStyleColorNative(count); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetNextWindowFocus")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextWindowFocus")] - internal static extern void SetNextWindowFocusNative(); + [LibraryImport(LibName, EntryPoint = "igPushStyleVar_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushStyleVarNative(int idx, float val); - /// /// set next window to be focused top-most. call before Begin() /// [NativeName(NativeNameType.Func, "igSetNextWindowFocus")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowFocus() + public static void PushStyleVar( int idx, float val) { - SetNextWindowFocusNative(); + PushStyleVarNative(idx, val); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetNextWindowScroll")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextWindowScroll")] - internal static extern void SetNextWindowScrollNative([NativeName(NativeNameType.Param, "scroll")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 scroll); + [LibraryImport(LibName, EntryPoint = "igPushStyleVar_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushStyleVarNative(int idx, Vector2 val); - /// /// set next window scrolling value (use < 0.0f to not affect a given axis). /// [NativeName(NativeNameType.Func, "igSetNextWindowScroll")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowScroll([NativeName(NativeNameType.Param, "scroll")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 scroll) + public static void PushStyleVar( int idx, Vector2 val) { - SetNextWindowScrollNative(scroll); + PushStyleVarNative(idx, val); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetNextWindowBgAlpha")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextWindowBgAlpha")] - internal static extern void SetNextWindowBgAlphaNative([NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "float")] float alpha); + [LibraryImport(LibName, EntryPoint = "igPopStyleVar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopStyleVarNative(int count); - /// /// set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBgChildBgPopupBg. you may also use ImGuiWindowFlags_NoBackground. /// [NativeName(NativeNameType.Func, "igSetNextWindowBgAlpha")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowBgAlpha([NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "float")] float alpha) + public static void PopStyleVar( int count) { - SetNextWindowBgAlphaNative(alpha); + PopStyleVarNative(count); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetNextWindowViewport")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextWindowViewport")] - internal static extern void SetNextWindowViewportNative([NativeName(NativeNameType.Param, "viewport_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int viewportId); + [LibraryImport(LibName, EntryPoint = "igPushTabStop")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushTabStopNative(byte tabStop); - /// /// set next window viewport /// [NativeName(NativeNameType.Func, "igSetNextWindowViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowViewport([NativeName(NativeNameType.Param, "viewport_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int viewportId) + public static void PushTabStop( bool tabStop) { - SetNextWindowViewportNative(viewportId); + PushTabStopNative(tabStop ? (byte)1 : (byte)0); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowPos_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowPos_Vec2")] - internal static extern void SetWindowPosNative([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); + [LibraryImport(LibName, EntryPoint = "igPopTabStop")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopTabStopNative(); - /// /// (not recommended) set current window position - call within Begin()End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects. /// [NativeName(NativeNameType.Func, "igSetWindowPos_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static void PopTabStop() { - SetWindowPosNative(pos, cond); + PopTabStopNative(); } - /// /// (not recommended) set current window position - call within Begin()End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects. /// [NativeName(NativeNameType.Func, "igSetWindowPos_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushButtonRepeat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushButtonRepeatNative(byte repeat); + + public static void PushButtonRepeat( bool repeat) { - SetWindowPosNative(pos, (ImGuiCond)(0)); + PushButtonRepeatNative(repeat ? (byte)1 : (byte)0); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowSize_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowSize_Vec2")] - internal static extern void SetWindowSizeNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); + [LibraryImport(LibName, EntryPoint = "igPopButtonRepeat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopButtonRepeatNative(); - /// /// (not recommended) set current window size - call within Begin()End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. /// [NativeName(NativeNameType.Func, "igSetWindowSize_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static void PopButtonRepeat() { - SetWindowSizeNative(size, cond); + PopButtonRepeatNative(); } - /// /// (not recommended) set current window size - call within Begin()End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. /// [NativeName(NativeNameType.Func, "igSetWindowSize_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushItemWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushItemWidthNative(float itemWidth); + + public static void PushItemWidth( float itemWidth) { - SetWindowSizeNative(size, (ImGuiCond)(0)); + PushItemWidthNative(itemWidth); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowCollapsed_Bool")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowCollapsed_Bool")] - internal static extern void SetWindowCollapsedNative([NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] byte collapsed, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); + [LibraryImport(LibName, EntryPoint = "igPopItemWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopItemWidthNative(); - /// /// (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). /// [NativeName(NativeNameType.Func, "igSetWindowCollapsed_Bool")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static void PopItemWidth() { - SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, cond); + PopItemWidthNative(); } - /// /// (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). /// [NativeName(NativeNameType.Func, "igSetWindowCollapsed_Bool")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextItemWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextItemWidthNative(float itemWidth); + + public static void SetNextItemWidth( float itemWidth) { - SetWindowCollapsedNative(collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + SetNextItemWidthNative(itemWidth); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowFocus_Nil")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowFocus_Nil")] - internal static extern void SetWindowFocusNative(); + [LibraryImport(LibName, EntryPoint = "igCalcItemWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float CalcItemWidthNative(); - /// /// (not recommended) set current window to be focused top-most. prefer using SetNextWindowFocus(). /// [NativeName(NativeNameType.Func, "igSetWindowFocus_Nil")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowFocus() + public static float CalcItemWidth() { - SetWindowFocusNative(); + float ret = CalcItemWidthNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowFontScale")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowFontScale")] - internal static extern void SetWindowFontScaleNative([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale); + [LibraryImport(LibName, EntryPoint = "igPushTextWrapPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushTextWrapPosNative(float wrapLocalPosX); - /// /// [OBSOLETE] set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes(). /// [NativeName(NativeNameType.Func, "igSetWindowFontScale")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowFontScale([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale) + public static void PushTextWrapPos( float wrapLocalPosX) { - SetWindowFontScaleNative(scale); + PushTextWrapPosNative(wrapLocalPosX); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowPos_Str")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowPos_Str")] - internal static extern void SetWindowPosNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); + [LibraryImport(LibName, EntryPoint = "igPopTextWrapPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopTextWrapPosNative(); - /// /// set named window position. /// [NativeName(NativeNameType.Func, "igSetWindowPos_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static void PopTextWrapPos() { - SetWindowPosNative(name, pos, cond); + PopTextWrapPosNative(); } - /// /// set named window position. /// [NativeName(NativeNameType.Func, "igSetWindowPos_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* GetFontNative(); + + public static ImFont* GetFont() { - SetWindowPosNative(name, pos, (ImGuiCond)(0)); + ImFont* ret = GetFontNative(); + return ret; } - /// /// set named window position. /// [NativeName(NativeNameType.Func, "igSetWindowPos_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFontSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetFontSizeNative(); + + public static float GetFontSize() { - fixed (byte* pname = &name) - { - SetWindowPosNative((byte*)pname, pos, cond); - } + float ret = GetFontSizeNative(); + return ret; } - /// /// set named window position. /// [NativeName(NativeNameType.Func, "igSetWindowPos_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFontTexUvWhitePixel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetFontTexUvWhitePixelNative(Vector2* pOut); + + public static void GetFontTexUvWhitePixel( Vector2* pOut) { - fixed (byte* pname = &name) - { - SetWindowPosNative((byte*)pname, pos, (ImGuiCond)(0)); - } + GetFontTexUvWhitePixelNative(pOut); } - /// /// set named window position. /// [NativeName(NativeNameType.Func, "igSetWindowPos_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColorU32_Col")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetColorU32Native(int idx, float alphaMul); + + public static uint GetColorU32( int idx, float alphaMul) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowPosNative(pStr0, pos, cond); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = GetColorU32Native(idx, alphaMul); + return ret; } - /// /// set named window position. /// [NativeName(NativeNameType.Func, "igSetWindowPos_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) + public static uint GetColorU32( int idx) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowPosNative(pStr0, pos, (ImGuiCond)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = GetColorU32Native(idx, (float)(1.0f)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowSize_Str")] - internal static extern void SetWindowSizeNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); + [LibraryImport(LibName, EntryPoint = "igGetColorU32_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetColorU32Native(Vector4 col); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColorU32_U32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetColorU32Native(uint col); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetStyleColorVec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial Vector4* GetStyleColorVec4Native(int idx); - /// /// set named window size. set axis to 0.0f to force an auto-fit on this axis. /// [NativeName(NativeNameType.Func, "igSetWindowSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static Vector4* GetStyleColorVec4( int idx) { - SetWindowSizeNative(name, size, cond); + Vector4* ret = GetStyleColorVec4Native(idx); + return ret; } - /// /// set named window size. set axis to 0.0f to force an auto-fit on this axis. /// [NativeName(NativeNameType.Func, "igSetWindowSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCursorScreenPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetCursorScreenPosNative(Vector2* pOut); + + public static void GetCursorScreenPos( Vector2* pOut) { - SetWindowSizeNative(name, size, (ImGuiCond)(0)); + GetCursorScreenPosNative(pOut); } - /// /// set named window size. set axis to 0.0f to force an auto-fit on this axis. /// [NativeName(NativeNameType.Func, "igSetWindowSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCursorScreenPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCursorScreenPosNative(Vector2 pos); + + public static void SetCursorScreenPos( Vector2 pos) { - fixed (byte* pname = &name) - { - SetWindowSizeNative((byte*)pname, size, cond); - } + SetCursorScreenPosNative(pos); } - /// /// set named window size. set axis to 0.0f to force an auto-fit on this axis. /// [NativeName(NativeNameType.Func, "igSetWindowSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCursorPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetCursorPosNative(Vector2* pOut); + + public static void GetCursorPos( Vector2* pOut) { - fixed (byte* pname = &name) - { - SetWindowSizeNative((byte*)pname, size, (ImGuiCond)(0)); - } + GetCursorPosNative(pOut); } - /// /// set named window size. set axis to 0.0f to force an auto-fit on this axis. /// [NativeName(NativeNameType.Func, "igSetWindowSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCursorPosX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetCursorPosXNative(); + + public static float GetCursorPosX() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowSizeNative(pStr0, size, cond); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + float ret = GetCursorPosXNative(); + return ret; } - /// /// set named window size. set axis to 0.0f to force an auto-fit on this axis. /// [NativeName(NativeNameType.Func, "igSetWindowSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCursorPosY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetCursorPosYNative(); + + public static float GetCursorPosY() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowSizeNative(pStr0, size, (ImGuiCond)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + float ret = GetCursorPosYNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowCollapsed_Str")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowCollapsed_Str")] - internal static extern void SetWindowCollapsedNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] byte collapsed, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); + [LibraryImport(LibName, EntryPoint = "igSetCursorPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCursorPosNative(Vector2 localPos); - /// /// set named window collapsed state /// [NativeName(NativeNameType.Func, "igSetWindowCollapsed_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static void SetCursorPos( Vector2 localPos) { - SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, cond); + SetCursorPosNative(localPos); } - /// /// set named window collapsed state /// [NativeName(NativeNameType.Func, "igSetWindowCollapsed_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCursorPosX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCursorPosXNative(float localX); + + public static void SetCursorPosX( float localX) { - SetWindowCollapsedNative(name, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + SetCursorPosXNative(localX); } - /// /// set named window collapsed state /// [NativeName(NativeNameType.Func, "igSetWindowCollapsed_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCursorPosY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCursorPosYNative(float localY); + + public static void SetCursorPosY( float localY) { - fixed (byte* pname = &name) - { - SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, cond); - } - } - - /// /// set named window collapsed state /// [NativeName(NativeNameType.Func, "igSetWindowCollapsed_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed) - { - fixed (byte* pname = &name) - { - SetWindowCollapsedNative((byte*)pname, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - } - - /// /// set named window collapsed state /// [NativeName(NativeNameType.Func, "igSetWindowCollapsed_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowCollapsedNative(pStr0, collapsed ? (byte)1 : (byte)0, cond); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// set named window collapsed state /// [NativeName(NativeNameType.Func, "igSetWindowCollapsed_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowCollapsedNative(pStr0, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + SetCursorPosYNative(localY); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowFocus_Str")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowFocus_Str")] - internal static extern void SetWindowFocusNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name); + [LibraryImport(LibName, EntryPoint = "igGetCursorStartPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetCursorStartPosNative(Vector2* pOut); - /// /// set named window to be focused top-most. use NULL to remove focus. /// [NativeName(NativeNameType.Func, "igSetWindowFocus_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowFocus([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name) + public static void GetCursorStartPos( Vector2* pOut) { - SetWindowFocusNative(name); + GetCursorStartPosNative(pOut); } - /// /// set named window to be focused top-most. use NULL to remove focus. /// [NativeName(NativeNameType.Func, "igSetWindowFocus_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowFocus([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name) - { - fixed (byte* pname = &name) - { - SetWindowFocusNative((byte*)pname); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSeparator")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SeparatorNative(); - /// /// set named window to be focused top-most. use NULL to remove focus. /// [NativeName(NativeNameType.Func, "igSetWindowFocus_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowFocus([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name) + public static void Separator() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetWindowFocusNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + SeparatorNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetContentRegionAvail")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetContentRegionAvail")] - internal static extern void GetContentRegionAvailNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); + [LibraryImport(LibName, EntryPoint = "igSameLine")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SameLineNative(float offsetFromStartX, float spacing); - /// /// == GetContentRegionMax() - GetCursorPos() /// [NativeName(NativeNameType.Func, "igGetContentRegionAvail")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetContentRegionAvail([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) + public static void SameLine( float offsetFromStartX, float spacing) { - GetContentRegionAvailNative(pOut); + SameLineNative(offsetFromStartX, spacing); } - /// /// == GetContentRegionMax() - GetCursorPos() /// [NativeName(NativeNameType.Func, "igGetContentRegionAvail")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetContentRegionAvail([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) + public static void SameLine( float offsetFromStartX) { - fixed (Vector2* ppOut = &pOut) - { - GetContentRegionAvailNative((Vector2*)ppOut); - } + SameLineNative(offsetFromStartX, (float)(-1.0f)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetContentRegionMax")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetContentRegionMax")] - internal static extern void GetContentRegionMaxNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - /// /// current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates /// [NativeName(NativeNameType.Func, "igGetContentRegionMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetContentRegionMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) - { - GetContentRegionMaxNative(pOut); - } + [LibraryImport(LibName, EntryPoint = "igNewLine")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NewLineNative(); - /// /// current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates /// [NativeName(NativeNameType.Func, "igGetContentRegionMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetContentRegionMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) + public static void NewLine() { - fixed (Vector2* ppOut = &pOut) - { - GetContentRegionMaxNative((Vector2*)ppOut); - } + NewLineNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowContentRegionMin")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowContentRegionMin")] - internal static extern void GetWindowContentRegionMinNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - /// /// content boundaries min for the full window (roughly (0,0)-Scroll), in window coordinates /// [NativeName(NativeNameType.Func, "igGetWindowContentRegionMin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowContentRegionMin([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) - { - GetWindowContentRegionMinNative(pOut); - } + [LibraryImport(LibName, EntryPoint = "igSpacing")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpacingNative(); - /// /// content boundaries min for the full window (roughly (0,0)-Scroll), in window coordinates /// [NativeName(NativeNameType.Func, "igGetWindowContentRegionMin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowContentRegionMin([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) + public static void Spacing() { - fixed (Vector2* ppOut = &pOut) - { - GetWindowContentRegionMinNative((Vector2*)ppOut); - } + SpacingNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowContentRegionMax")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowContentRegionMax")] - internal static extern void GetWindowContentRegionMaxNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - /// /// content boundaries max for the full window (roughly (0,0)+Size-Scroll) where Size can be overridden with SetNextWindowContentSize(), in window coordinates /// [NativeName(NativeNameType.Func, "igGetWindowContentRegionMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowContentRegionMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) - { - GetWindowContentRegionMaxNative(pOut); - } + [LibraryImport(LibName, EntryPoint = "igDummy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DummyNative(Vector2 size); - /// /// content boundaries max for the full window (roughly (0,0)+Size-Scroll) where Size can be overridden with SetNextWindowContentSize(), in window coordinates /// [NativeName(NativeNameType.Func, "igGetWindowContentRegionMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowContentRegionMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) + public static void Dummy( Vector2 size) { - fixed (Vector2* ppOut = &pOut) - { - GetWindowContentRegionMaxNative((Vector2*)ppOut); - } + DummyNative(size); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetScrollX")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetScrollX")] - internal static extern float GetScrollXNative(); + [LibraryImport(LibName, EntryPoint = "igIndent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void IndentNative(float indentW); - /// /// get scrolling amount [0 .. GetScrollMaxX()] /// [NativeName(NativeNameType.Func, "igGetScrollX")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetScrollX() + public static void Indent( float indentW) { - float ret = GetScrollXNative(); - return ret; + IndentNative(indentW); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetScrollY")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetScrollY")] - internal static extern float GetScrollYNative(); + [LibraryImport(LibName, EntryPoint = "igUnindent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UnindentNative(float indentW); - /// /// get scrolling amount [0 .. GetScrollMaxY()] /// [NativeName(NativeNameType.Func, "igGetScrollY")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetScrollY() + public static void Unindent( float indentW) { - float ret = GetScrollYNative(); - return ret; + UnindentNative(indentW); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetScrollX_Float")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetScrollX_Float")] - internal static extern void SetScrollXNative([NativeName(NativeNameType.Param, "scroll_x")] [NativeName(NativeNameType.Type, "float")] float scrollX); + [LibraryImport(LibName, EntryPoint = "igBeginGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginGroupNative(); - /// /// set scrolling amount [0 .. GetScrollMaxX()] /// [NativeName(NativeNameType.Func, "igSetScrollX_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollX([NativeName(NativeNameType.Param, "scroll_x")] [NativeName(NativeNameType.Type, "float")] float scrollX) + public static void BeginGroup() { - SetScrollXNative(scrollX); + BeginGroupNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetScrollY_Float")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetScrollY_Float")] - internal static extern void SetScrollYNative([NativeName(NativeNameType.Param, "scroll_y")] [NativeName(NativeNameType.Type, "float")] float scrollY); + [LibraryImport(LibName, EntryPoint = "igEndGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndGroupNative(); - /// /// set scrolling amount [0 .. GetScrollMaxY()] /// [NativeName(NativeNameType.Func, "igSetScrollY_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollY([NativeName(NativeNameType.Param, "scroll_y")] [NativeName(NativeNameType.Type, "float")] float scrollY) + public static void EndGroup() { - SetScrollYNative(scrollY); + EndGroupNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetScrollMaxX")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetScrollMaxX")] - internal static extern float GetScrollMaxXNative(); + [LibraryImport(LibName, EntryPoint = "igAlignTextToFramePadding")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AlignTextToFramePaddingNative(); - /// /// get maximum scrolling amount ~~ ContentSize.x - WindowSize.x - DecorationsSize.x /// [NativeName(NativeNameType.Func, "igGetScrollMaxX")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetScrollMaxX() + public static void AlignTextToFramePadding() { - float ret = GetScrollMaxXNative(); - return ret; + AlignTextToFramePaddingNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetScrollMaxY")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetScrollMaxY")] - internal static extern float GetScrollMaxYNative(); + [LibraryImport(LibName, EntryPoint = "igGetTextLineHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetTextLineHeightNative(); - /// /// get maximum scrolling amount ~~ ContentSize.y - WindowSize.y - DecorationsSize.y /// [NativeName(NativeNameType.Func, "igGetScrollMaxY")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetScrollMaxY() + public static float GetTextLineHeight() { - float ret = GetScrollMaxYNative(); + float ret = GetTextLineHeightNative(); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetScrollHereX")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetScrollHereX")] - internal static extern void SetScrollHereXNative([NativeName(NativeNameType.Param, "center_x_ratio")] [NativeName(NativeNameType.Type, "float")] float centerXRatio); - - /// /// adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. When using to make a "defaultcurrent item" visible, consider using SetItemDefaultFocus() instead. /// [NativeName(NativeNameType.Func, "igSetScrollHereX")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollHereX([NativeName(NativeNameType.Param, "center_x_ratio")] [NativeName(NativeNameType.Type, "float")] float centerXRatio) - { - SetScrollHereXNative(centerXRatio); - } + [LibraryImport(LibName, EntryPoint = "igGetTextLineHeightWithSpacing")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetTextLineHeightWithSpacingNative(); - /// /// adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. When using to make a "defaultcurrent item" visible, consider using SetItemDefaultFocus() instead. /// [NativeName(NativeNameType.Func, "igSetScrollHereX")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollHereX() + public static float GetTextLineHeightWithSpacing() { - SetScrollHereXNative((float)(0.5f)); + float ret = GetTextLineHeightWithSpacingNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetScrollHereY")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetScrollHereY")] - internal static extern void SetScrollHereYNative([NativeName(NativeNameType.Param, "center_y_ratio")] [NativeName(NativeNameType.Type, "float")] float centerYRatio); + [LibraryImport(LibName, EntryPoint = "igGetFrameHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetFrameHeightNative(); - /// /// adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "defaultcurrent item" visible, consider using SetItemDefaultFocus() instead. /// [NativeName(NativeNameType.Func, "igSetScrollHereY")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollHereY([NativeName(NativeNameType.Param, "center_y_ratio")] [NativeName(NativeNameType.Type, "float")] float centerYRatio) - { - SetScrollHereYNative(centerYRatio); - } - - /// /// adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "defaultcurrent item" visible, consider using SetItemDefaultFocus() instead. /// [NativeName(NativeNameType.Func, "igSetScrollHereY")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollHereY() + public static float GetFrameHeight() { - SetScrollHereYNative((float)(0.5f)); + float ret = GetFrameHeightNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetScrollFromPosX_Float")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetScrollFromPosX_Float")] - internal static extern void SetScrollFromPosXNative([NativeName(NativeNameType.Param, "local_x")] [NativeName(NativeNameType.Type, "float")] float localX, [NativeName(NativeNameType.Param, "center_x_ratio")] [NativeName(NativeNameType.Type, "float")] float centerXRatio); - - /// /// adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. /// [NativeName(NativeNameType.Func, "igSetScrollFromPosX_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollFromPosX([NativeName(NativeNameType.Param, "local_x")] [NativeName(NativeNameType.Type, "float")] float localX, [NativeName(NativeNameType.Param, "center_x_ratio")] [NativeName(NativeNameType.Type, "float")] float centerXRatio) - { - SetScrollFromPosXNative(localX, centerXRatio); - } + [LibraryImport(LibName, EntryPoint = "igGetFrameHeightWithSpacing")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetFrameHeightWithSpacingNative(); - /// /// adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. /// [NativeName(NativeNameType.Func, "igSetScrollFromPosX_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollFromPosX([NativeName(NativeNameType.Param, "local_x")] [NativeName(NativeNameType.Type, "float")] float localX) + public static float GetFrameHeightWithSpacing() { - SetScrollFromPosXNative(localX, (float)(0.5f)); + float ret = GetFrameHeightWithSpacingNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetScrollFromPosY_Float")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetScrollFromPosY_Float")] - internal static extern void SetScrollFromPosYNative([NativeName(NativeNameType.Param, "local_y")] [NativeName(NativeNameType.Type, "float")] float localY, [NativeName(NativeNameType.Param, "center_y_ratio")] [NativeName(NativeNameType.Type, "float")] float centerYRatio); - - /// /// adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. /// [NativeName(NativeNameType.Func, "igSetScrollFromPosY_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollFromPosY([NativeName(NativeNameType.Param, "local_y")] [NativeName(NativeNameType.Type, "float")] float localY, [NativeName(NativeNameType.Param, "center_y_ratio")] [NativeName(NativeNameType.Type, "float")] float centerYRatio) - { - SetScrollFromPosYNative(localY, centerYRatio); - } + [LibraryImport(LibName, EntryPoint = "igPushID_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushIDNative(byte* strId); - /// /// adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. /// [NativeName(NativeNameType.Func, "igSetScrollFromPosY_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollFromPosY([NativeName(NativeNameType.Param, "local_y")] [NativeName(NativeNameType.Type, "float")] float localY) + public static void PushID( byte* strId) { - SetScrollFromPosYNative(localY, (float)(0.5f)); + PushIDNative(strId); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPushFont")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushFont")] - internal static extern void PushFontNative([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font); + [LibraryImport(LibName, EntryPoint = "igPushID_StrStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushIDNative(byte* strIdBegin, byte* strIdEnd); - /// /// use NULL as a shortcut to push default font /// [NativeName(NativeNameType.Func, "igPushFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushFont([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font) + public static void PushID( byte* strIdBegin, byte* strIdEnd) { - PushFontNative(font); + PushIDNative(strIdBegin, strIdEnd); } - /// /// use NULL as a shortcut to push default font /// [NativeName(NativeNameType.Func, "igPushFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushFont([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font) + public static void PushID( byte* strIdBegin, ref byte strIdEnd) { - fixed (ImFont* pfont = &font) + fixed (byte* pstrIdEnd = &strIdEnd) + { + PushIDNative(strIdBegin, (byte*)pstrIdEnd); + } + } + + public static void PushID( byte* strIdBegin, string strIdEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PushIDNative(strIdBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - PushFontNative((ImFont*)pfont); + Utils.Free(pStr0); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPopFont")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopFont")] - internal static extern void PopFontNative(); + [LibraryImport(LibName, EntryPoint = "igPushID_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushIDNative(void* ptrId); - [NativeName(NativeNameType.Func, "igPopFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopFont() - { - PopFontNative(); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushID_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushIDNative(int intId); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPushStyleColor_U32")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushStyleColor_U32")] - internal static extern void PushStyleColorNative([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); + [LibraryImport(LibName, EntryPoint = "igPopID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopIDNative(); - /// /// modify a style color. always use this if you modify the style after NewFrame(). /// [NativeName(NativeNameType.Func, "igPushStyleColor_U32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushStyleColor([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public static void PopID() { - PushStyleColorNative(idx, col); + PopIDNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPushStyleColor_Vec4")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushStyleColor_Vec4")] - internal static extern void PushStyleColorNative([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col); + [LibraryImport(LibName, EntryPoint = "igGetID_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetIDNative(byte* strId); - [NativeName(NativeNameType.Func, "igPushStyleColor_Vec4")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushStyleColor([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col) + public static uint GetID( byte* strId) { - PushStyleColorNative(idx, col); + uint ret = GetIDNative(strId); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPopStyleColor")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopStyleColor")] - internal static extern void PopStyleColorNative([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count); + [LibraryImport(LibName, EntryPoint = "igGetID_StrStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetIDNative(byte* strIdBegin, byte* strIdEnd); - [NativeName(NativeNameType.Func, "igPopStyleColor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopStyleColor([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + public static uint GetID( byte* strIdBegin, byte* strIdEnd) { - PopStyleColorNative(count); + uint ret = GetIDNative(strIdBegin, strIdEnd); + return ret; } - [NativeName(NativeNameType.Func, "igPopStyleColor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopStyleColor() + public static uint GetID( byte* strIdBegin, ref byte strIdEnd) { - PopStyleColorNative((int)(1)); + fixed (byte* pstrIdEnd = &strIdEnd) + { + uint ret = GetIDNative(strIdBegin, (byte*)pstrIdEnd); + return ret; + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPushStyleVar_Float")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushStyleVar_Float")] - internal static extern void PushStyleVarNative([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "float")] float val); - - /// /// modify a style float variable. always use this if you modify the style after NewFrame(). /// [NativeName(NativeNameType.Func, "igPushStyleVar_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushStyleVar([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "float")] float val) + public static uint GetID( byte* strIdBegin, string strIdEnd) { - PushStyleVarNative(idx, val); + byte* pStr0 = null; + int pStrSize0 = 0; + if (strIdEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = GetIDNative(strIdBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPushStyleVar_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushStyleVar_Vec2")] - internal static extern void PushStyleVarNative([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 val); - - /// /// modify a style ImVec2 variable. always use this if you modify the style after NewFrame(). /// [NativeName(NativeNameType.Func, "igPushStyleVar_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushStyleVar([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 val) - { - PushStyleVarNative(idx, val); - } + [LibraryImport(LibName, EntryPoint = "igGetID_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetIDNative(void* ptrId); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPopStyleVar")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopStyleVar")] - internal static extern void PopStyleVarNative([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count); + [LibraryImport(LibName, EntryPoint = "igTextUnformatted")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextUnformattedNative(byte* text, byte* textEnd); - [NativeName(NativeNameType.Func, "igPopStyleVar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopStyleVar([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + public static void TextUnformatted( byte* text, byte* textEnd) { - PopStyleVarNative(count); + TextUnformattedNative(text, textEnd); } - [NativeName(NativeNameType.Func, "igPopStyleVar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopStyleVar() + public static void TextUnformatted( byte* text) { - PopStyleVarNative((int)(1)); + TextUnformattedNative(text, (byte*)(default)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPushTabStop")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushTabStop")] - internal static extern void PushTabStopNative([NativeName(NativeNameType.Param, "tab_stop")] [NativeName(NativeNameType.Type, "bool")] byte tabStop); + public static void TextUnformatted( byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + TextUnformattedNative(text, (byte*)ptextEnd); + } + } - /// /// == tab stop enable. Allow focusing using TABShift-TAB, enabled by default but you can disable it for certain widgets /// [NativeName(NativeNameType.Func, "igPushTabStop")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushTabStop([NativeName(NativeNameType.Param, "tab_stop")] [NativeName(NativeNameType.Type, "bool")] bool tabStop) + public static void TextUnformatted( byte* text, string textEnd) { - PushTabStopNative(tabStop ? (byte)1 : (byte)0); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextUnformattedNative(text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPopTabStop")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopTabStop")] - internal static extern void PopTabStopNative(); + [LibraryImport(LibName, EntryPoint = "igText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextNative(byte* fmt); - [NativeName(NativeNameType.Func, "igPopTabStop")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopTabStop() + public static void Text( byte* fmt) { - PopTabStopNative(); + TextNative(fmt); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPushButtonRepeat")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushButtonRepeat")] - internal static extern void PushButtonRepeatNative([NativeName(NativeNameType.Param, "repeat")] [NativeName(NativeNameType.Type, "bool")] byte repeat); + [LibraryImport(LibName, EntryPoint = "igTextV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextVNative(byte* fmt, nuint args); - /// /// in 'repeat' mode, Button*() functions return repeated true in a typematic manner (using io.KeyRepeatDelayio.KeyRepeatRate setting). Note that you can call IsItemActive() after any Button() to tell if the button is held in the current frame. /// [NativeName(NativeNameType.Func, "igPushButtonRepeat")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushButtonRepeat([NativeName(NativeNameType.Param, "repeat")] [NativeName(NativeNameType.Type, "bool")] bool repeat) + public static void TextV( byte* fmt, nuint args) { - PushButtonRepeatNative(repeat ? (byte)1 : (byte)0); + TextVNative(fmt, args); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPopButtonRepeat")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopButtonRepeat")] - internal static extern void PopButtonRepeatNative(); + [LibraryImport(LibName, EntryPoint = "igTextColored")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextColoredNative(Vector4 col, byte* fmt); - [NativeName(NativeNameType.Func, "igPopButtonRepeat")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopButtonRepeat() + public static void TextColored( Vector4 col, byte* fmt) { - PopButtonRepeatNative(); + TextColoredNative(col, fmt); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPushItemWidth")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushItemWidth")] - internal static extern void PushItemWidthNative([NativeName(NativeNameType.Param, "item_width")] [NativeName(NativeNameType.Type, "float")] float itemWidth); + public static void TextColored( Vector4 col, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + TextColoredNative(col, (byte*)pfmt); + } + } - /// /// push width of items for common large "item+label" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side). /// [NativeName(NativeNameType.Func, "igPushItemWidth")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushItemWidth([NativeName(NativeNameType.Param, "item_width")] [NativeName(NativeNameType.Type, "float")] float itemWidth) + public static void TextColored( Vector4 col, string fmt) { - PushItemWidthNative(itemWidth); + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextColoredNative(col, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPopItemWidth")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopItemWidth")] - internal static extern void PopItemWidthNative(); + [LibraryImport(LibName, EntryPoint = "igTextColoredV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextColoredVNative(Vector4 col, byte* fmt, nuint args); - [NativeName(NativeNameType.Func, "igPopItemWidth")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopItemWidth() + public static void TextColoredV( Vector4 col, byte* fmt, nuint args) { - PopItemWidthNative(); + TextColoredVNative(col, fmt, args); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetNextItemWidth")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextItemWidth")] - internal static extern void SetNextItemWidthNative([NativeName(NativeNameType.Param, "item_width")] [NativeName(NativeNameType.Type, "float")] float itemWidth); + public static void TextColoredV( Vector4 col, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + TextColoredVNative(col, (byte*)pfmt, args); + } + } - /// /// set width of the _next_ common large "item+label" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side) /// [NativeName(NativeNameType.Func, "igSetNextItemWidth")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextItemWidth([NativeName(NativeNameType.Param, "item_width")] [NativeName(NativeNameType.Type, "float")] float itemWidth) + public static void TextColoredV( Vector4 col, string fmt, nuint args) { - SetNextItemWidthNative(itemWidth); + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + TextColoredVNative(col, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igCalcItemWidth")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCalcItemWidth")] - internal static extern float CalcItemWidthNative(); + [LibraryImport(LibName, EntryPoint = "igTextDisabled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextDisabledNative(byte* fmt); - /// /// width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions. /// [NativeName(NativeNameType.Func, "igCalcItemWidth")] - [return: NativeName(NativeNameType.Type, "float")] - public static float CalcItemWidth() + public static void TextDisabled( byte* fmt) { - float ret = CalcItemWidthNative(); - return ret; + TextDisabledNative(fmt); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPushTextWrapPos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushTextWrapPos")] - internal static extern void PushTextWrapPosNative([NativeName(NativeNameType.Param, "wrap_local_pos_x")] [NativeName(NativeNameType.Type, "float")] float wrapLocalPosX); - - /// /// push word-wrapping position for Text*() commands. < 0.0f: no wrapping; 0.0f: wrap to end of window (or column); > 0.0f: wrap at 'wrap_pos_x' position in window local space /// [NativeName(NativeNameType.Func, "igPushTextWrapPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushTextWrapPos([NativeName(NativeNameType.Param, "wrap_local_pos_x")] [NativeName(NativeNameType.Type, "float")] float wrapLocalPosX) - { - PushTextWrapPosNative(wrapLocalPosX); - } + [LibraryImport(LibName, EntryPoint = "igTextDisabledV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextDisabledVNative(byte* fmt, nuint args); - /// /// push word-wrapping position for Text*() commands. < 0.0f: no wrapping; 0.0f: wrap to end of window (or column); > 0.0f: wrap at 'wrap_pos_x' position in window local space /// [NativeName(NativeNameType.Func, "igPushTextWrapPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushTextWrapPos() + public static void TextDisabledV( byte* fmt, nuint args) { - PushTextWrapPosNative((float)(0.0f)); + TextDisabledVNative(fmt, args); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPopTextWrapPos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopTextWrapPos")] - internal static extern void PopTextWrapPosNative(); + [LibraryImport(LibName, EntryPoint = "igTextWrapped")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextWrappedNative(byte* fmt); - [NativeName(NativeNameType.Func, "igPopTextWrapPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopTextWrapPos() + public static void TextWrapped( byte* fmt) { - PopTextWrapPosNative(); + TextWrappedNative(fmt); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetFont")] - internal static extern ImFont* GetFontNative(); + [LibraryImport(LibName, EntryPoint = "igTextWrappedV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextWrappedVNative(byte* fmt, nuint args); - /// /// get current font /// [NativeName(NativeNameType.Func, "igGetFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* GetFont() + public static void TextWrappedV( byte* fmt, nuint args) { - ImFont* ret = GetFontNative(); - return ret; + TextWrappedVNative(fmt, args); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetFontSize")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetFontSize")] - internal static extern float GetFontSizeNative(); + [LibraryImport(LibName, EntryPoint = "igLabelText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LabelTextNative(byte* label, byte* fmt); - /// /// get current font size (= height in pixels) of current font with current scale applied /// [NativeName(NativeNameType.Func, "igGetFontSize")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetFontSize() + public static void LabelText( byte* label, byte* fmt) { - float ret = GetFontSizeNative(); - return ret; + LabelTextNative(label, fmt); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetFontTexUvWhitePixel")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetFontTexUvWhitePixel")] - internal static extern void GetFontTexUvWhitePixelNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - /// /// get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API /// [NativeName(NativeNameType.Func, "igGetFontTexUvWhitePixel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetFontTexUvWhitePixel([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) + public static void LabelText( byte* label, ref byte fmt) { - GetFontTexUvWhitePixelNative(pOut); + fixed (byte* pfmt = &fmt) + { + LabelTextNative(label, (byte*)pfmt); + } } - /// /// get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API /// [NativeName(NativeNameType.Func, "igGetFontTexUvWhitePixel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetFontTexUvWhitePixel([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) + public static void LabelText( byte* label, string fmt) { - fixed (Vector2* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LabelTextNative(label, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - GetFontTexUvWhitePixelNative((Vector2*)ppOut); + Utils.Free(pStr0); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetColorU32_Col")] - [return: NativeName(NativeNameType.Type, "ImU32")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetColorU32_Col")] - internal static extern uint GetColorU32Native([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx, [NativeName(NativeNameType.Param, "alpha_mul")] [NativeName(NativeNameType.Type, "float")] float alphaMul); + [LibraryImport(LibName, EntryPoint = "igLabelTextV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LabelTextVNative(byte* label, byte* fmt, nuint args); - /// /// retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList /// [NativeName(NativeNameType.Func, "igGetColorU32_Col")] - [return: NativeName(NativeNameType.Type, "ImU32")] - public static uint GetColorU32([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx, [NativeName(NativeNameType.Param, "alpha_mul")] [NativeName(NativeNameType.Type, "float")] float alphaMul) + public static void LabelTextV( byte* label, byte* fmt, nuint args) { - uint ret = GetColorU32Native(idx, alphaMul); - return ret; + LabelTextVNative(label, fmt, args); } - /// /// retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList /// [NativeName(NativeNameType.Func, "igGetColorU32_Col")] - [return: NativeName(NativeNameType.Type, "ImU32")] - public static uint GetColorU32([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx) + public static void LabelTextV( byte* label, ref byte fmt, nuint args) { - uint ret = GetColorU32Native(idx, (float)(1.0f)); - return ret; + fixed (byte* pfmt = &fmt) + { + LabelTextVNative(label, (byte*)pfmt, args); + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetColorU32_Vec4")] - [return: NativeName(NativeNameType.Type, "ImU32")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetColorU32_Vec4")] - internal static extern uint GetColorU32Native([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col); - - /// /// retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList /// [NativeName(NativeNameType.Func, "igGetColorU32_Vec4")] - [return: NativeName(NativeNameType.Type, "ImU32")] - public static uint GetColorU32([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col) + public static void LabelTextV( byte* label, string fmt, nuint args) { - uint ret = GetColorU32Native(col); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + LabelTextVNative(label, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetColorU32_U32")] - [return: NativeName(NativeNameType.Type, "ImU32")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetColorU32_U32")] - internal static extern uint GetColorU32Native([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); + [LibraryImport(LibName, EntryPoint = "igBulletText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BulletTextNative(byte* fmt); - /// /// retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList /// [NativeName(NativeNameType.Func, "igGetColorU32_U32")] - [return: NativeName(NativeNameType.Type, "ImU32")] - public static uint GetColorU32([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public static void BulletText( byte* fmt) { - uint ret = GetColorU32Native(col); - return ret; + BulletTextNative(fmt); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetStyleColorVec4")] - [return: NativeName(NativeNameType.Type, "const ImVec4*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetStyleColorVec4")] - internal static extern Vector4* GetStyleColorVec4Native([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx); + [LibraryImport(LibName, EntryPoint = "igBulletTextV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BulletTextVNative(byte* fmt, nuint args); - /// /// retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), otherwise use GetColorU32() to get style color with style alpha baked in. /// [NativeName(NativeNameType.Func, "igGetStyleColorVec4")] - [return: NativeName(NativeNameType.Type, "const ImVec4*")] - public static Vector4* GetStyleColorVec4([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx) + public static void BulletTextV( byte* fmt, nuint args) { - Vector4* ret = GetStyleColorVec4Native(idx); - return ret; + BulletTextVNative(fmt, args); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSeparator")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSeparator")] - internal static extern void SeparatorNative(); + [LibraryImport(LibName, EntryPoint = "igSeparatorText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SeparatorTextNative(byte* label); - /// /// separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator. /// [NativeName(NativeNameType.Func, "igSeparator")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Separator() + public static void SeparatorText( byte* label) { - SeparatorNative(); + SeparatorTextNative(label); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSameLine")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSameLine")] - internal static extern void SameLineNative([NativeName(NativeNameType.Param, "offset_from_start_x")] [NativeName(NativeNameType.Type, "float")] float offsetFromStartX, [NativeName(NativeNameType.Param, "spacing")] [NativeName(NativeNameType.Type, "float")] float spacing); - - /// /// call between widgets or groups to layout them horizontally. X position given in window coordinates. /// [NativeName(NativeNameType.Func, "igSameLine")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SameLine([NativeName(NativeNameType.Param, "offset_from_start_x")] [NativeName(NativeNameType.Type, "float")] float offsetFromStartX, [NativeName(NativeNameType.Param, "spacing")] [NativeName(NativeNameType.Type, "float")] float spacing) - { - SameLineNative(offsetFromStartX, spacing); - } + [LibraryImport(LibName, EntryPoint = "igButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ButtonNative(byte* label, Vector2 size); - /// /// call between widgets or groups to layout them horizontally. X position given in window coordinates. /// [NativeName(NativeNameType.Func, "igSameLine")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SameLine([NativeName(NativeNameType.Param, "offset_from_start_x")] [NativeName(NativeNameType.Type, "float")] float offsetFromStartX) + public static bool Button( byte* label, Vector2 size) { - SameLineNative(offsetFromStartX, (float)(-1.0f)); + byte ret = ButtonNative(label, size); + return ret != 0; } - /// /// call between widgets or groups to layout them horizontally. X position given in window coordinates. /// [NativeName(NativeNameType.Func, "igSameLine")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SameLine() + public static bool Button( byte* label) { - SameLineNative((float)(0.0f), (float)(-1.0f)); + byte ret = ButtonNative(label, (Vector2)(new Vector2(0,0))); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igNewLine")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNewLine")] - internal static extern void NewLineNative(); + [LibraryImport(LibName, EntryPoint = "igSmallButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SmallButtonNative(byte* label); - /// /// undo a SameLine() or force a new line when in a horizontal-layout context. /// [NativeName(NativeNameType.Func, "igNewLine")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NewLine() + public static bool SmallButton( byte* label) { - NewLineNative(); + byte ret = SmallButtonNative(label); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSpacing")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSpacing")] - internal static extern void SpacingNative(); + [LibraryImport(LibName, EntryPoint = "igInvisibleButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InvisibleButtonNative(byte* strId, Vector2 size, int flags); - /// /// add vertical spacing. /// [NativeName(NativeNameType.Func, "igSpacing")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Spacing() + public static bool InvisibleButton( byte* strId, Vector2 size, int flags) { - SpacingNative(); + byte ret = InvisibleButtonNative(strId, size, flags); + return ret != 0; + } + + public static bool InvisibleButton( byte* strId, Vector2 size) + { + byte ret = InvisibleButtonNative(strId, size, (int)(0)); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDummy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDummy")] - internal static extern void DummyNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size); + [LibraryImport(LibName, EntryPoint = "igArrowButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ArrowButtonNative(byte* strId, int dir); - /// /// add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into. /// [NativeName(NativeNameType.Func, "igDummy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Dummy([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static bool ArrowButton( byte* strId, int dir) { - DummyNative(size); + byte ret = ArrowButtonNative(strId, dir); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igIndent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIndent")] - internal static extern void IndentNative([NativeName(NativeNameType.Param, "indent_w")] [NativeName(NativeNameType.Type, "float")] float indentW); + [LibraryImport(LibName, EntryPoint = "igCheckbox")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CheckboxNative(byte* label, byte* v); - /// /// move content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0 /// [NativeName(NativeNameType.Func, "igIndent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Indent([NativeName(NativeNameType.Param, "indent_w")] [NativeName(NativeNameType.Type, "float")] float indentW) + public static bool Checkbox( byte* label, byte* v) { - IndentNative(indentW); + byte ret = CheckboxNative(label, v); + return ret != 0; } - /// /// move content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0 /// [NativeName(NativeNameType.Func, "igIndent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Indent() + public static bool Checkbox( byte* label, ref byte v) { - IndentNative((float)(0.0f)); + fixed (byte* pv = &v) + { + byte ret = CheckboxNative(label, (byte*)pv); + return ret != 0; + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igUnindent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igUnindent")] - internal static extern void UnindentNative([NativeName(NativeNameType.Param, "indent_w")] [NativeName(NativeNameType.Type, "float")] float indentW); + [LibraryImport(LibName, EntryPoint = "igCheckboxFlags_IntPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CheckboxFlagsNative(byte* label, int* flags, int flagsValue); - /// /// move content position back to the left, by indent_w, or style.IndentSpacing if indent_w <= 0 /// [NativeName(NativeNameType.Func, "igUnindent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Unindent([NativeName(NativeNameType.Param, "indent_w")] [NativeName(NativeNameType.Type, "float")] float indentW) + public static bool CheckboxFlags( byte* label, int* flags, int flagsValue) { - UnindentNative(indentW); + byte ret = CheckboxFlagsNative(label, flags, flagsValue); + return ret != 0; } - /// /// move content position back to the left, by indent_w, or style.IndentSpacing if indent_w <= 0 /// [NativeName(NativeNameType.Func, "igUnindent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Unindent() + public static bool CheckboxFlags( byte* label, ref int flags, int flagsValue) { - UnindentNative((float)(0.0f)); + fixed (int* pflags = &flags) + { + byte ret = CheckboxFlagsNative(label, (int*)pflags, flagsValue); + return ret != 0; + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBeginGroup")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginGroup")] - internal static extern void BeginGroupNative(); + [LibraryImport(LibName, EntryPoint = "igCheckboxFlags_UintPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CheckboxFlagsNative(byte* label, uint* flags, uint flagsValue); - /// /// lock horizontal starting position /// [NativeName(NativeNameType.Func, "igBeginGroup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginGroup() + public static bool CheckboxFlags( byte* label, uint* flags, uint flagsValue) { - BeginGroupNative(); + byte ret = CheckboxFlagsNative(label, flags, flagsValue); + return ret != 0; + } + + public static bool CheckboxFlags( byte* label, ref uint flags, uint flagsValue) + { + fixed (uint* pflags = &flags) + { + byte ret = CheckboxFlagsNative(label, (uint*)pflags, flagsValue); + return ret != 0; + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igEndGroup")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndGroup")] - internal static extern void EndGroupNative(); + [LibraryImport(LibName, EntryPoint = "igRadioButton_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte RadioButtonNative(byte* label, byte active); - /// /// unlock horizontal starting position + capture the whole group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) /// [NativeName(NativeNameType.Func, "igEndGroup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndGroup() + public static bool RadioButton( byte* label, bool active) { - EndGroupNative(); + byte ret = RadioButtonNative(label, active ? (byte)1 : (byte)0); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetCursorPos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetCursorPos")] - internal static extern void GetCursorPosNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); + [LibraryImport(LibName, EntryPoint = "igRadioButton_IntPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte RadioButtonNative(byte* label, int* v, int vButton); - /// /// cursor position in window coordinates (relative to window position) /// [NativeName(NativeNameType.Func, "igGetCursorPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCursorPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) + public static bool RadioButton( byte* label, int* v, int vButton) { - GetCursorPosNative(pOut); + byte ret = RadioButtonNative(label, v, vButton); + return ret != 0; } - /// /// cursor position in window coordinates (relative to window position) /// [NativeName(NativeNameType.Func, "igGetCursorPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCursorPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) + public static bool RadioButton( byte* label, ref int v, int vButton) { - fixed (Vector2* ppOut = &pOut) + fixed (int* pv = &v) { - GetCursorPosNative((Vector2*)ppOut); + byte ret = RadioButtonNative(label, (int*)pv, vButton); + return ret != 0; } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetCursorPosX")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetCursorPosX")] - internal static extern float GetCursorPosXNative(); + [LibraryImport(LibName, EntryPoint = "igProgressBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ProgressBarNative(float fraction, Vector2 sizeArg, byte* overlay); - /// /// (some functions are using window-relative coordinates, such as: GetCursorPos, GetCursorStartPos, GetContentRegionMax, GetWindowContentRegion* etc. /// [NativeName(NativeNameType.Func, "igGetCursorPosX")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetCursorPosX() + public static void ProgressBar( float fraction, Vector2 sizeArg, byte* overlay) { - float ret = GetCursorPosXNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetCursorPosY")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetCursorPosY")] - internal static extern float GetCursorPosYNative(); - - /// /// other functions such as GetCursorScreenPos or everything in ImDrawList:: /// [NativeName(NativeNameType.Func, "igGetCursorPosY")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetCursorPosY() - { - float ret = GetCursorPosYNative(); - return ret; + ProgressBarNative(fraction, sizeArg, overlay); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetCursorPos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetCursorPos")] - internal static extern void SetCursorPosNative([NativeName(NativeNameType.Param, "local_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 localPos); - - /// /// are using the main, absolute coordinate system. /// [NativeName(NativeNameType.Func, "igSetCursorPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCursorPos([NativeName(NativeNameType.Param, "local_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 localPos) + public static void ProgressBar( float fraction, Vector2 sizeArg) { - SetCursorPosNative(localPos); + ProgressBarNative(fraction, sizeArg, (byte*)(default)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetCursorPosX")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetCursorPosX")] - internal static extern void SetCursorPosXNative([NativeName(NativeNameType.Param, "local_x")] [NativeName(NativeNameType.Type, "float")] float localX); - - /// /// GetWindowPos() + GetCursorPos() == GetCursorScreenPos() etc.) /// [NativeName(NativeNameType.Func, "igSetCursorPosX")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCursorPosX([NativeName(NativeNameType.Param, "local_x")] [NativeName(NativeNameType.Type, "float")] float localX) + public static void ProgressBar( float fraction) { - SetCursorPosXNative(localX); + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)(default)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetCursorPosY")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetCursorPosY")] - internal static extern void SetCursorPosYNative([NativeName(NativeNameType.Param, "local_y")] [NativeName(NativeNameType.Type, "float")] float localY); - - /// /// [NativeName(NativeNameType.Func, "igSetCursorPosY")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCursorPosY([NativeName(NativeNameType.Param, "local_y")] [NativeName(NativeNameType.Type, "float")] float localY) + public static void ProgressBar( float fraction, byte* overlay) { - SetCursorPosYNative(localY); + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), overlay); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetCursorStartPos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetCursorStartPos")] - internal static extern void GetCursorStartPosNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - /// /// initial cursor position in window coordinates /// [NativeName(NativeNameType.Func, "igGetCursorStartPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCursorStartPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) + public static void ProgressBar( float fraction, Vector2 sizeArg, ref byte overlay) { - GetCursorStartPosNative(pOut); + fixed (byte* poverlay = &overlay) + { + ProgressBarNative(fraction, sizeArg, (byte*)poverlay); + } } - /// /// initial cursor position in window coordinates /// [NativeName(NativeNameType.Func, "igGetCursorStartPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCursorStartPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) + public static void ProgressBar( float fraction, ref byte overlay) { - fixed (Vector2* ppOut = &pOut) + fixed (byte* poverlay = &overlay) { - GetCursorStartPosNative((Vector2*)ppOut); + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)poverlay); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetCursorScreenPos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetCursorScreenPos")] - internal static extern void GetCursorScreenPosNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - /// /// cursor position in absolute coordinates (useful to work with ImDrawList API). generally top-left == GetMainViewport()->Pos == (0,0) in single viewport mode, and bottom-right == GetMainViewport()->Pos+Size == io.DisplaySize in single-viewport mode. /// [NativeName(NativeNameType.Func, "igGetCursorScreenPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCursorScreenPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) + public static void ProgressBar( float fraction, Vector2 sizeArg, string overlay) { - GetCursorScreenPosNative(pOut); + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlay != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlay); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ProgressBarNative(fraction, sizeArg, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - /// /// cursor position in absolute coordinates (useful to work with ImDrawList API). generally top-left == GetMainViewport()->Pos == (0,0) in single viewport mode, and bottom-right == GetMainViewport()->Pos+Size == io.DisplaySize in single-viewport mode. /// [NativeName(NativeNameType.Func, "igGetCursorScreenPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCursorScreenPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) + public static void ProgressBar( float fraction, string overlay) { - fixed (Vector2* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlay != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlay); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - GetCursorScreenPosNative((Vector2*)ppOut); + Utils.Free(pStr0); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetCursorScreenPos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetCursorScreenPos")] - internal static extern void SetCursorScreenPosNative([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos); + [LibraryImport(LibName, EntryPoint = "igBullet")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BulletNative(); - /// /// cursor position in absolute coordinates /// [NativeName(NativeNameType.Func, "igSetCursorScreenPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCursorScreenPos([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) + public static void Bullet() { - SetCursorScreenPosNative(pos); + BulletNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igAlignTextToFramePadding")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igAlignTextToFramePadding")] - internal static extern void AlignTextToFramePaddingNative(); - - /// /// vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item) /// [NativeName(NativeNameType.Func, "igAlignTextToFramePadding")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AlignTextToFramePadding() - { - AlignTextToFramePaddingNative(); - } + [LibraryImport(LibName, EntryPoint = "igImage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImageNative(ImTextureID userTextureId, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tintCol, Vector4 borderCol); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetTextLineHeight")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetTextLineHeight")] - internal static extern float GetTextLineHeightNative(); + [LibraryImport(LibName, EntryPoint = "igImageButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImageButtonNative(byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol); - /// /// ~ FontSize /// [NativeName(NativeNameType.Func, "igGetTextLineHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetTextLineHeight() + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol) { - float ret = GetTextLineHeightNative(); - return ret; + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, uv1, bgCol, tintCol); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetTextLineHeightWithSpacing")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetTextLineHeightWithSpacing")] - internal static extern float GetTextLineHeightWithSpacingNative(); - - /// /// ~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text) /// [NativeName(NativeNameType.Func, "igGetTextLineHeightWithSpacing")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetTextLineHeightWithSpacing() + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1, Vector4 bgCol) { - float ret = GetTextLineHeightWithSpacingNative(); - return ret; + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, uv1, bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetFrameHeight")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetFrameHeight")] - internal static extern float GetFrameHeightNative(); - - /// /// ~ FontSize + style.FramePadding.y * 2 /// [NativeName(NativeNameType.Func, "igGetFrameHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetFrameHeight() + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1) { - float ret = GetFrameHeightNative(); - return ret; + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, uv1, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetFrameHeightWithSpacing")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetFrameHeightWithSpacing")] - internal static extern float GetFrameHeightWithSpacingNative(); + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0) + { + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } - /// /// ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) /// [NativeName(NativeNameType.Func, "igGetFrameHeightWithSpacing")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetFrameHeightWithSpacing() + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize) { - float ret = GetFrameHeightWithSpacingNative(); - return ret; + byte ret = ImageButtonNative(strId, userTextureId, imageSize, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPushID_Str")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushID_Str")] - internal static extern void PushIDNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId); + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector4 bgCol) + { + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, (Vector2)(new Vector2(1,1)), bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; + } - /// /// push string into the ID stack (will hash string). /// [NativeName(NativeNameType.Func, "igPushID_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector4 bgCol) { - PushIDNative(strId); + byte ret = ImageButtonNative(strId, userTextureId, imageSize, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), bgCol, (Vector4)(new Vector4(1,1,1,1))); + return ret != 0; } - /// /// push string into the ID stack (will hash string). /// [NativeName(NativeNameType.Func, "igPushID_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector2 uv0, Vector4 bgCol, Vector4 tintCol) { - fixed (byte* pstrId = &strId) - { - PushIDNative((byte*)pstrId); - } + byte ret = ImageButtonNative(strId, userTextureId, imageSize, uv0, (Vector2)(new Vector2(1,1)), bgCol, tintCol); + return ret != 0; } - /// /// push string into the ID stack (will hash string). /// [NativeName(NativeNameType.Func, "igPushID_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) + public static bool ImageButton( byte* strId, ImTextureID userTextureId, Vector2 imageSize, Vector4 bgCol, Vector4 tintCol) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PushIDNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = ImageButtonNative(strId, userTextureId, imageSize, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), bgCol, tintCol); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPushID_StrStr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushID_StrStr")] - internal static extern void PushIDNative([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd); + [LibraryImport(LibName, EntryPoint = "igBeginCombo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginComboNative(byte* label, byte* previewValue, int flags); - /// /// push string into the ID stack (will hash string). /// [NativeName(NativeNameType.Func, "igPushID_StrStr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd) + public static bool BeginCombo( byte* label, byte* previewValue, int flags) { - PushIDNative(strIdBegin, strIdEnd); + byte ret = BeginComboNative(label, previewValue, flags); + return ret != 0; } - /// /// push string into the ID stack (will hash string). /// [NativeName(NativeNameType.Func, "igPushID_StrStr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd) + public static bool BeginCombo( byte* label, byte* previewValue) { - fixed (byte* pstrIdBegin = &strIdBegin) - { - PushIDNative((byte*)pstrIdBegin, strIdEnd); - } + byte ret = BeginComboNative(label, previewValue, (int)(0)); + return ret != 0; } - /// /// push string into the ID stack (will hash string). /// [NativeName(NativeNameType.Func, "igPushID_StrStr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] string strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd) + public static bool BeginCombo( byte* label, ref byte previewValue, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PushIDNative(pStr0, strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ppreviewValue = &previewValue) { - Utils.Free(pStr0); + byte ret = BeginComboNative(label, (byte*)ppreviewValue, flags); + return ret != 0; } } - /// /// push string into the ID stack (will hash string). /// [NativeName(NativeNameType.Func, "igPushID_StrStr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdEnd) + public static bool BeginCombo( byte* label, ref byte previewValue) { - fixed (byte* pstrIdEnd = &strIdEnd) + fixed (byte* ppreviewValue = &previewValue) { - PushIDNative(strIdBegin, (byte*)pstrIdEnd); + byte ret = BeginComboNative(label, (byte*)ppreviewValue, (int)(0)); + return ret != 0; } } - /// /// push string into the ID stack (will hash string). /// [NativeName(NativeNameType.Func, "igPushID_StrStr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] string strIdEnd) + public static bool BeginCombo( byte* label, string previewValue, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (strIdEnd != null) + if (previewValue != null) { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); + pStrSize0 = Utils.GetByteCountUTF8(previewValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3678,38 +2595,24 @@ public static void PushID([NativeName(NativeNameType.Param, "str_id_begin")] [Na byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - PushIDNative(strIdBegin, pStr0); + byte ret = BeginComboNative(label, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - /// /// push string into the ID stack (will hash string). /// [NativeName(NativeNameType.Func, "igPushID_StrStr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdEnd) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - fixed (byte* pstrIdEnd = &strIdEnd) - { - PushIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); - } - } - } - - /// /// push string into the ID stack (will hash string). /// [NativeName(NativeNameType.Func, "igPushID_StrStr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] string strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] string strIdEnd) + public static bool BeginCombo( byte* label, string previewValue) { byte* pStr0 = null; int pStrSize0 = 0; - if (strIdBegin != null) + if (previewValue != null) { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); + pStrSize0 = Utils.GetByteCountUTF8(previewValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -3719,365 +2622,262 @@ public static void PushID([NativeName(NativeNameType.Param, "str_id_begin")] [Na byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strIdEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strIdEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PushIDNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = BeginComboNative(label, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPushID_Ptr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushID_Ptr")] - internal static extern void PushIDNative([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId); + [LibraryImport(LibName, EntryPoint = "igEndCombo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndComboNative(); - /// /// push pointer into the ID stack (will hash pointer). /// [NativeName(NativeNameType.Func, "igPushID_Ptr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId) + public static void EndCombo() { - PushIDNative(ptrId); + EndComboNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPushID_Int")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushID_Int")] - internal static extern void PushIDNative([NativeName(NativeNameType.Param, "int_id")] [NativeName(NativeNameType.Type, "int")] int intId); + [LibraryImport(LibName, EntryPoint = "igCombo_Str_arr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ComboNative(byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems); - /// /// push integer into the ID stack (will hash integer). /// [NativeName(NativeNameType.Func, "igPushID_Int")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushID([NativeName(NativeNameType.Param, "int_id")] [NativeName(NativeNameType.Type, "int")] int intId) + public static bool Combo( byte* label, int* currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) { - PushIDNative(intId); + byte ret = ComboNative(label, currentItem, items, itemsCount, popupMaxHeightInItems); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPopID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopID")] - internal static extern void PopIDNative(); - - /// /// pop from the ID stack. /// [NativeName(NativeNameType.Func, "igPopID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopID() + public static bool Combo( byte* label, int* currentItem, byte** items, int itemsCount) { - PopIDNative(); + byte ret = ComboNative(label, currentItem, items, itemsCount, (int)(-1)); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetID_Str")] - internal static extern int GetIDNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId); - - /// /// calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself /// [NativeName(NativeNameType.Func, "igGetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) + public static bool Combo( byte* label, ref int currentItem, byte** items, int itemsCount, int popupMaxHeightInItems) { - int ret = GetIDNative(strId); - return ret; + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); + return ret != 0; + } } - /// /// calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself /// [NativeName(NativeNameType.Func, "igGetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) + public static bool Combo( byte* label, ref int currentItem, byte** items, int itemsCount) { - fixed (byte* pstrId = &strId) + fixed (int* pcurrentItem = ¤tItem) { - int ret = GetIDNative((byte*)pstrId); - return ret; + byte ret = ComboNative(label, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + return ret != 0; } } - /// /// calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself /// [NativeName(NativeNameType.Func, "igGetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) + public static bool Combo( byte* label, int* currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArraySize0 > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - int ret = GetIDNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < items.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetID_StrStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetID_StrStr")] - internal static extern int GetIDNative([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd); - - [NativeName(NativeNameType.Func, "igGetID_StrStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd) - { - int ret = GetIDNative(strIdBegin, strIdEnd); - return ret; - } - - [NativeName(NativeNameType.Func, "igGetID_StrStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd) - { - fixed (byte* pstrIdBegin = &strIdBegin) + byte ret = ComboNative(label, currentItem, pStrArray0, itemsCount, popupMaxHeightInItems); + for (int i = 0; i < items.Length; i++) { - int ret = GetIDNative((byte*)pstrIdBegin, strIdEnd); - return ret; + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igGetID_StrStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] string strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd) + public static bool Combo( byte* label, int* currentItem, string[] items, int itemsCount) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArraySize0 > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - int ret = GetIDNative(pStr0, strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) + for (int i = 0; i < items.Length; i++) { - Utils.Free(pStr0); + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); } - return ret; - } - - [NativeName(NativeNameType.Func, "igGetID_StrStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdEnd) - { - fixed (byte* pstrIdEnd = &strIdEnd) + byte ret = ComboNative(label, currentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) { - int ret = GetIDNative(strIdBegin, (byte*)pstrIdEnd); - return ret; + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igGetID_StrStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] string strIdEnd) + public static bool Combo( byte* label, ref int currentItem, string[] items, int itemsCount, int popupMaxHeightInItems) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdEnd != null) + fixed (int* pcurrentItem = ¤tItem) { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + if (pStrArraySize0 > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); + } + else + { + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; + } } - else + for (int i = 0; i < items.Length; i++) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = GetIDNative(strIdBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igGetID_StrStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdEnd) - { - fixed (byte* pstrIdBegin = &strIdBegin) - { - fixed (byte* pstrIdEnd = &strIdEnd) + byte ret = ComboNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, popupMaxHeightInItems); + for (int i = 0; i < items.Length; i++) { - int ret = GetIDNative((byte*)pstrIdBegin, (byte*)pstrIdEnd); - return ret; + Utils.Free(pStrArray0[i]); } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igGetID_StrStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] string strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] string strIdEnd) + public static bool Combo( byte* label, ref int currentItem, string[] items, int itemsCount) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strIdBegin != null) + fixed (int* pcurrentItem = ¤tItem) { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + if (pStrArraySize0 > Utils.MaxStackallocSize) + { + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); + } + else + { + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; + } } - else + for (int i = 0; i < items.Length; i++) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strIdEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte ret = ComboNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStrArray0[i]); } - else + if (pStrArraySize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStrArray0); } - int pStrOffset1 = Utils.EncodeStringUTF8(strIdEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = GetIDNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetID_Ptr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetID_Ptr")] - internal static extern int GetIDNative([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId); + [LibraryImport(LibName, EntryPoint = "igCombo_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ComboNative(byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems); - [NativeName(NativeNameType.Func, "igGetID_Ptr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId) + public static bool Combo( byte* label, int* currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) { - int ret = GetIDNative(ptrId); - return ret; + byte ret = ComboNative(label, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTextUnformatted")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTextUnformatted")] - internal static extern void TextUnformattedNative([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd); + public static bool Combo( byte* label, int* currentItem, byte* itemsSeparatedByZeros) + { + byte ret = ComboNative(label, currentItem, itemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } - /// /// raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. /// [NativeName(NativeNameType.Func, "igTextUnformatted")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public static bool Combo( byte* label, ref int currentItem, byte* itemsSeparatedByZeros, int popupMaxHeightInItems) { - TextUnformattedNative(text, textEnd); + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; + } } - /// /// raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. /// [NativeName(NativeNameType.Func, "igTextUnformatted")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) + public static bool Combo( byte* label, ref int currentItem, byte* itemsSeparatedByZeros) { - TextUnformattedNative(text, (byte*)(default)); + fixed (int* pcurrentItem = ¤tItem) + { + byte ret = ComboNative(label, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); + return ret != 0; + } } - /// /// raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. /// [NativeName(NativeNameType.Func, "igTextUnformatted")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public static bool Combo( byte* label, int* currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) { - fixed (byte* ptext = &text) + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) { - TextUnformattedNative((byte*)ptext, textEnd); + byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; } } - /// /// raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. /// [NativeName(NativeNameType.Func, "igTextUnformatted")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) + public static bool Combo( byte* label, int* currentItem, ref byte itemsSeparatedByZeros) { - fixed (byte* ptext = &text) + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) { - TextUnformattedNative((byte*)ptext, (byte*)(default)); + byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; } } - /// /// raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. /// [NativeName(NativeNameType.Func, "igTextUnformatted")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public static bool Combo( byte* label, int* currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (itemsSeparatedByZeros != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4087,25 +2887,24 @@ public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - TextUnformattedNative(pStr0, textEnd); + byte ret = ComboNative(label, currentItem, pStr0, popupMaxHeightInItems); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - /// /// raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. /// [NativeName(NativeNameType.Func, "igTextUnformatted")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) + public static bool Combo( byte* label, int* currentItem, string itemsSeparatedByZeros) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (itemsSeparatedByZeros != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4115,521 +2914,494 @@ public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - TextUnformattedNative(pStr0, (byte*)(default)); + byte ret = ComboNative(label, currentItem, pStr0, (int)(-1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - /// /// raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. /// [NativeName(NativeNameType.Func, "igTextUnformatted")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - TextUnformattedNative(text, (byte*)ptextEnd); - } - } - - /// /// raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. /// [NativeName(NativeNameType.Func, "igTextUnformatted")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public static bool Combo( byte* label, ref int currentItem, ref byte itemsSeparatedByZeros, int popupMaxHeightInItems) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) + fixed (int* pcurrentItem = ¤tItem) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextUnformattedNative(text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } - /// /// raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. /// [NativeName(NativeNameType.Func, "igTextUnformatted")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public static bool Combo( byte* label, ref int currentItem, ref byte itemsSeparatedByZeros) { - fixed (byte* ptext = &text) + fixed (int* pcurrentItem = ¤tItem) { - fixed (byte* ptextEnd = &textEnd) + fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) { - TextUnformattedNative((byte*)ptext, (byte*)ptextEnd); + byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + return ret != 0; } } } - /// /// raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. /// [NativeName(NativeNameType.Func, "igTextUnformatted")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextUnformatted([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public static bool Combo( byte* label, ref int currentItem, string itemsSeparatedByZeros, int popupMaxHeightInItems) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) + fixed (int* pcurrentItem = ¤tItem) { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ComboNative(label, (int*)pcurrentItem, pStr0, popupMaxHeightInItems); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) + } + + public static bool Combo( byte* label, ref int currentItem, string itemsSeparatedByZeros) + { + fixed (int* pcurrentItem = ¤tItem) { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (itemsSeparatedByZeros != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = ComboNative(label, (int*)pcurrentItem, pStr0, (int)(-1)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - TextUnformattedNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igText")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igText")] - internal static extern void TextNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); + [LibraryImport(LibName, EntryPoint = "igCombo_FnStrPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ComboNative(byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int popupMaxHeightInItems); - /// /// formatted text /// [NativeName(NativeNameType.Func, "igText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Text([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static bool Combo( byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int popupMaxHeightInItems) { - TextNative(fmt); + byte ret = ComboNative(label, currentItem, getter, userData, itemsCount, popupMaxHeightInItems); + return ret != 0; } - /// /// formatted text /// [NativeName(NativeNameType.Func, "igText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Text([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + public static bool Combo( byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount) { - fixed (byte* pfmt = &fmt) - { - TextNative((byte*)pfmt); - } + byte ret = ComboNative(label, currentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; } - /// /// formatted text /// [NativeName(NativeNameType.Func, "igText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Text([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static bool Combo( byte* label, ref int currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int popupMaxHeightInItems) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) + fixed (int* pcurrentItem = ¤tItem) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = ComboNative(label, (int*)pcurrentItem, getter, userData, itemsCount, popupMaxHeightInItems); + return ret != 0; } - TextNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool Combo( byte* label, ref int currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount) + { + fixed (int* pcurrentItem = ¤tItem) { - Utils.Free(pStr0); + byte ret = ComboNative(label, (int*)pcurrentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTextV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTextV")] - internal static extern void TextVNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); + public static bool Combo( byte* label, int* currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount, int popupMaxHeightInItems) + { + byte ret = ComboNative(label, currentItem, getter, userData, itemsCount, popupMaxHeightInItems); + return ret != 0; + } - [NativeName(NativeNameType.Func, "igTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool Combo( byte* label, int* currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount) { - TextVNative(fmt, args); + byte ret = ComboNative(label, currentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool Combo( byte* label, ref int currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount, int popupMaxHeightInItems) { - fixed (byte* pfmt = &fmt) + fixed (int* pcurrentItem = ¤tItem) { - TextVNative((byte*)pfmt, args); + byte ret = ComboNative(label, (int*)pcurrentItem, getter, userData, itemsCount, popupMaxHeightInItems); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool Combo( byte* label, ref int currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* pcurrentItem = ¤tItem) { - Utils.Free(pStr0); + byte ret = ComboNative(label, (int*)pcurrentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTextColored")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTextColored")] - internal static extern void TextColoredNative([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); + [LibraryImport(LibName, EntryPoint = "igDragFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragFloatNative(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags); - /// /// shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor(); /// [NativeName(NativeNameType.Func, "igTextColored")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextColored([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags) { - TextColoredNative(col, fmt); + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; } - /// /// shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor(); /// [NativeName(NativeNameType.Func, "igTextColored")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextColored([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) { - fixed (byte* pfmt = &fmt) + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloat(label, v, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin) + { + bool ret = DragFloat(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed) + { + bool ret = DragFloat(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat( byte* label, float* v) + { + bool ret = DragFloat(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, byte* format) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, byte* format) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, int flags) + { + bool ret = DragFloat(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, int flags) + { + bool ret = DragFloat(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, int flags) + { + bool ret = DragFloat(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat( byte* label, float* v, int flags) + { + bool ret = DragFloat(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, byte* format, int flags) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, float vSpeed, byte* format, int flags) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat( byte* label, float* v, byte* format, int flags) + { + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) { - TextColoredNative(col, (byte*)pfmt); + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; } } - /// /// shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor(); /// [NativeName(NativeNameType.Func, "igTextColored")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextColored([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; } - TextColoredNative(col, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax) + { + fixed (float* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTextColoredV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTextColoredV")] - internal static extern void TextColoredVNative([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "igTextColoredV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextColoredV([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin) { - TextColoredVNative(col, fmt, args); + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } } - [NativeName(NativeNameType.Func, "igTextColoredV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextColoredV([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, ref float v, float vSpeed) { - fixed (byte* pfmt = &fmt) + fixed (float* pv = &v) { - TextColoredVNative(col, (byte*)pfmt, args); + bool ret = DragFloat(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igTextColoredV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextColoredV([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, ref float v) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - TextColoredVNative(col, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = &v) { - Utils.Free(pStr0); + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTextDisabled")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTextDisabled")] - internal static extern void TextDisabledNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); - - /// /// shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor(); /// [NativeName(NativeNameType.Func, "igTextDisabled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextDisabled([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static bool DragFloat( byte* label, ref float v, float vSpeed, byte* format) { - TextDisabledNative(fmt); + fixed (float* pv = &v) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } } - /// /// shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor(); /// [NativeName(NativeNameType.Func, "igTextDisabled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextDisabled([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + public static bool DragFloat( byte* label, ref float v, byte* format) { - fixed (byte* pfmt = &fmt) + fixed (float* pv = &v) { - TextDisabledNative((byte*)pfmt); + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; } } - /// /// shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor(); /// [NativeName(NativeNameType.Func, "igTextDisabled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextDisabled([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; } - TextDisabledNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, int flags) + { + fixed (float* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTextDisabledV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTextDisabledV")] - internal static extern void TextDisabledVNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); + public static bool DragFloat( byte* label, ref float v, float vSpeed, int flags) + { + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } - [NativeName(NativeNameType.Func, "igTextDisabledV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextDisabledV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, ref float v, int flags) { - TextDisabledVNative(fmt, args); + fixed (float* pv = &v) + { + bool ret = DragFloat(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } } - [NativeName(NativeNameType.Func, "igTextDisabledV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextDisabledV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, byte* format, int flags) { - fixed (byte* pfmt = &fmt) + fixed (float* pv = &v) { - TextDisabledVNative((byte*)pfmt, args); + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igTextDisabledV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextDisabledV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, ref float v, float vSpeed, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; } - TextDisabledVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) { - Utils.Free(pStr0); + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTextWrapped")] - internal static extern void TextWrappedNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } - /// /// shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize(). /// [NativeName(NativeNameType.Func, "igTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextWrapped([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) { - TextWrappedNative(fmt); + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } } - /// /// shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize(). /// [NativeName(NativeNameType.Func, "igTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextWrapped([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, ref byte format) { - fixed (byte* pfmt = &fmt) + fixed (byte* pformat = &format) { - TextWrappedNative((byte*)pfmt); + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; } } - /// /// shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize(). /// [NativeName(NativeNameType.Func, "igTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextWrapped([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static bool DragFloat( byte* label, float* v, float vSpeed, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; } - TextWrappedNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTextWrappedV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTextWrappedV")] - internal static extern void TextWrappedVNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } - [NativeName(NativeNameType.Func, "igTextWrappedV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextWrappedV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, float* v, float vSpeed, ref byte format, int flags) { - TextWrappedVNative(fmt, args); + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } } - [NativeName(NativeNameType.Func, "igTextWrappedV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextWrappedV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, float* v, ref byte format, int flags) { - fixed (byte* pfmt = &fmt) + fixed (byte* pformat = &format) { - TextWrappedVNative((byte*)pfmt, args); + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igTextWrappedV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextWrappedV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmt != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4639,50 +3411,24 @@ public static void TextWrappedV([NativeName(NativeNameType.Param, "fmt")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - TextWrappedVNative(pStr0, args); + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLabelText")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLabelText")] - internal static extern void LabelTextNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); - - /// /// display text+label aligned the same way as value+label widgets /// [NativeName(NativeNameType.Func, "igLabelText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - LabelTextNative(label, fmt); - } - - /// /// display text+label aligned the same way as value+label widgets /// [NativeName(NativeNameType.Func, "igLabelText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - fixed (byte* plabel = &label) - { - LabelTextNative((byte*)plabel, fmt); - } - } - - /// /// display text+label aligned the same way as value+label widgets /// [NativeName(NativeNameType.Func, "igLabelText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, float vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4692,35 +3438,24 @@ public static void LabelText([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - LabelTextNative(pStr0, fmt); + byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - /// /// display text+label aligned the same way as value+label widgets /// [NativeName(NativeNameType.Func, "igLabelText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - LabelTextNative(label, (byte*)pfmt); - } - } - - /// /// display text+label aligned the same way as value+label widgets /// [NativeName(NativeNameType.Func, "igLabelText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmt != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4730,38 +3465,24 @@ public static void LabelText([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - LabelTextNative(label, pStr0); + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - /// /// display text+label aligned the same way as value+label widgets /// [NativeName(NativeNameType.Func, "igLabelText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* plabel = &label) - { - fixed (byte* pfmt = &fmt) - { - LabelTextNative((byte*)plabel, (byte*)pfmt); - } - } - } - - /// /// display text+label aligned the same way as value+label widgets /// [NativeName(NativeNameType.Func, "igLabelText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static bool DragFloat( byte* label, float* v, float vSpeed, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4771,71 +3492,24 @@ public static void LabelText([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - LabelTextNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLabelTextV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLabelTextV")] - internal static extern void LabelTextVNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "igLabelTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelTextV([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - LabelTextVNative(label, fmt, args); - } - - [NativeName(NativeNameType.Func, "igLabelTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelTextV([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* plabel = &label) - { - LabelTextVNative((byte*)plabel, fmt, args); - } - } - - [NativeName(NativeNameType.Func, "igLabelTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelTextV([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, float* v, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4845,35 +3519,24 @@ public static void LabelTextV([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - LabelTextVNative(pStr0, fmt, args); + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igLabelTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelTextV([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, float* v, float vSpeed, float vMin, string format, int flags) { - fixed (byte* pfmt = &fmt) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - LabelTextVNative(label, (byte*)pfmt, args); - } - } - - [NativeName(NativeNameType.Func, "igLabelTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelTextV([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4883,38 +3546,24 @@ public static void LabelTextV([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - LabelTextVNative(label, pStr0, args); + byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igLabelTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelTextV([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* plabel = &label) - { - fixed (byte* pfmt = &fmt) - { - LabelTextVNative((byte*)plabel, (byte*)pfmt, args); - } - } - } - - [NativeName(NativeNameType.Func, "igLabelTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LabelTextV([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, float* v, float vSpeed, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4924,71 +3573,24 @@ public static void LabelTextV([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - LabelTextVNative(pStr0, pStr1, args); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBulletText")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBulletText")] - internal static extern void BulletTextNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); - - /// /// shortcut for Bullet()+Text() /// [NativeName(NativeNameType.Func, "igBulletText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BulletText([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - BulletTextNative(fmt); - } - - /// /// shortcut for Bullet()+Text() /// [NativeName(NativeNameType.Func, "igBulletText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BulletText([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - BulletTextNative((byte*)pfmt); - } - } - - /// /// shortcut for Bullet()+Text() /// [NativeName(NativeNameType.Func, "igBulletText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BulletText([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static bool DragFloat( byte* label, float* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmt != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -4998,1336 +3600,823 @@ public static void BulletText([NativeName(NativeNameType.Param, "fmt")] [NativeN byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - BulletTextNative(pStr0); + byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBulletTextV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBulletTextV")] - internal static extern void BulletTextVNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "igBulletTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BulletTextV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - BulletTextVNative(fmt, args); - } - - [NativeName(NativeNameType.Func, "igBulletTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BulletTextV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, int flags) { - fixed (byte* pfmt = &fmt) + fixed (float* pv = &v) { - BulletTextVNative((byte*)pfmt, args); + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igBulletTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BulletTextV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - BulletTextVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSeparatorText")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSeparatorText")] - internal static extern void SeparatorTextNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); - - /// /// currently: formatted text with an horizontal line /// [NativeName(NativeNameType.Func, "igSeparatorText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - SeparatorTextNative(label); - } - - /// /// currently: formatted text with an horizontal line /// [NativeName(NativeNameType.Func, "igSeparatorText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, ref byte format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - SeparatorTextNative((byte*)plabel); + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } } } - /// /// currently: formatted text with an horizontal line /// [NativeName(NativeNameType.Func, "igSeparatorText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + public static bool DragFloat( byte* label, ref float v, float vSpeed, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SeparatorTextNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igButton")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igButton")] - internal static extern byte ButtonNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size); - - /// /// button /// [NativeName(NativeNameType.Func, "igButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Button([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static bool DragFloat( byte* label, ref float v, ref byte format) { - byte ret = ButtonNative(label, size); - return ret != 0; + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } } - /// /// button /// [NativeName(NativeNameType.Func, "igButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Button([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, ref byte format, int flags) { - byte ret = ButtonNative(label, (Vector2)(new Vector2(0,0))); - return ret != 0; + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } } - /// /// button /// [NativeName(NativeNameType.Func, "igButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Button([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static bool DragFloat( byte* label, ref float v, float vSpeed, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = ButtonNative((byte*)plabel, size); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } } } - /// /// button /// [NativeName(NativeNameType.Func, "igButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Button([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + public static bool DragFloat( byte* label, ref float v, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = ButtonNative((byte*)plabel, (Vector2)(new Vector2(0,0))); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } } } - /// /// button /// [NativeName(NativeNameType.Func, "igButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Button([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonNative(pStr0, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - /// /// button /// [NativeName(NativeNameType.Func, "igButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Button([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, float vMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonNative(pStr0, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSmallButton")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSmallButton")] - internal static extern byte SmallButtonNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); - - /// /// button with FramePadding=(0,0) to easily embed within text /// [NativeName(NativeNameType.Func, "igSmallButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SmallButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = SmallButtonNative(label); - return ret != 0; } - /// /// button with FramePadding=(0,0) to easily embed within text /// [NativeName(NativeNameType.Func, "igSmallButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SmallButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, string format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = SmallButtonNative((byte*)plabel); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - /// /// button with FramePadding=(0,0) to easily embed within text /// [NativeName(NativeNameType.Func, "igSmallButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SmallButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + public static bool DragFloat( byte* label, ref float v, float vSpeed, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SmallButtonNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInvisibleButton")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInvisibleButton")] - internal static extern byte InvisibleButtonNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags); - - /// /// flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) /// [NativeName(NativeNameType.Func, "igInvisibleButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InvisibleButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) - { - byte ret = InvisibleButtonNative(strId, size, flags); - return ret != 0; - } - - /// /// flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) /// [NativeName(NativeNameType.Func, "igInvisibleButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InvisibleButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = InvisibleButtonNative(strId, size, (ImGuiButtonFlags)(0)); - return ret != 0; - } - - /// /// flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) /// [NativeName(NativeNameType.Func, "igInvisibleButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InvisibleButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + public static bool DragFloat( byte* label, ref float v, string format) { - fixed (byte* pstrId = &strId) + fixed (float* pv = &v) { - byte ret = InvisibleButtonNative((byte*)pstrId, size, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - /// /// flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) /// [NativeName(NativeNameType.Func, "igInvisibleButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InvisibleButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static bool DragFloat( byte* label, ref float v, float vSpeed, float vMin, string format, int flags) { - fixed (byte* pstrId = &strId) + fixed (float* pv = &v) { - byte ret = InvisibleButtonNative((byte*)pstrId, size, (ImGuiButtonFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - /// /// flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) /// [NativeName(NativeNameType.Func, "igInvisibleButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InvisibleButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + public static bool DragFloat( byte* label, ref float v, float vSpeed, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InvisibleButtonNative(pStr0, size, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - /// /// flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) /// [NativeName(NativeNameType.Func, "igInvisibleButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InvisibleButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static bool DragFloat( byte* label, ref float v, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InvisibleButtonNative(pStr0, size, (ImGuiButtonFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igArrowButton")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igArrowButton")] - internal static extern byte ArrowButtonNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir); + [LibraryImport(LibName, EntryPoint = "igDragFloat2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragFloat2Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags); - /// /// square button with an arrow shape /// [NativeName(NativeNameType.Func, "igArrowButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ArrowButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags) { - byte ret = ArrowButtonNative(strId, dir); + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, format, flags); return ret != 0; } - /// /// square button with an arrow shape /// [NativeName(NativeNameType.Func, "igArrowButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ArrowButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) { - fixed (byte* pstrId = &strId) - { - byte ret = ArrowButtonNative((byte*)pstrId, dir); - return ret != 0; - } + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; } - /// /// square button with an arrow shape /// [NativeName(NativeNameType.Func, "igArrowButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ArrowButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ArrowButtonNative(pStr0, dir); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + bool ret = DragFloat2(label, v, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCheckbox")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCheckbox")] - internal static extern byte CheckboxNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "bool*")] byte* v); + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin) + { + bool ret = DragFloat2(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } - [NativeName(NativeNameType.Func, "igCheckbox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Checkbox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "bool*")] byte* v) + public static bool DragFloat2( byte* label, float* v, float vSpeed) { - byte ret = CheckboxNative(label, v); - return ret != 0; + bool ret = DragFloat2(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igCheckbox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Checkbox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "bool*")] byte* v) + public static bool DragFloat2( byte* label, float* v) { - fixed (byte* plabel = &label) - { - byte ret = CheckboxNative((byte*)plabel, v); - return ret != 0; - } + bool ret = DragFloat2(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igCheckbox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Checkbox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "bool*")] byte* v) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CheckboxNative(pStr0, v); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), format, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igCheckbox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Checkbox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "bool*")] ref byte v) + public static bool DragFloat2( byte* label, float* v, float vSpeed, byte* format) { - fixed (byte* pv = &v) - { - byte ret = CheckboxNative(label, (byte*)pv); - return ret != 0; - } + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igCheckbox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Checkbox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "bool*")] ref byte v) + public static bool DragFloat2( byte* label, float* v, byte* format) { - fixed (byte* plabel = &label) - { - fixed (byte* pv = &v) - { - byte ret = CheckboxNative((byte*)plabel, (byte*)pv); - return ret != 0; - } - } + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igCheckbox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Checkbox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "bool*")] ref byte v) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* pv = &v) - { - byte ret = CheckboxNative(pStr0, (byte*)pv); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + bool ret = DragFloat2(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCheckboxFlags_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCheckboxFlags_IntPtr")] - internal static extern byte CheckboxFlagsNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "int*")] int* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "int")] int flagsValue); + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, int flags) + { + bool ret = DragFloat2(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } - [NativeName(NativeNameType.Func, "igCheckboxFlags_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "int*")] int* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "int")] int flagsValue) + public static bool DragFloat2( byte* label, float* v, float vSpeed, int flags) { - byte ret = CheckboxFlagsNative(label, flags, flagsValue); - return ret != 0; + bool ret = DragFloat2(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; } - [NativeName(NativeNameType.Func, "igCheckboxFlags_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "int*")] int* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "int")] int flagsValue) + public static bool DragFloat2( byte* label, float* v, int flags) { - fixed (byte* plabel = &label) - { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); - return ret != 0; - } + bool ret = DragFloat2(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; } - [NativeName(NativeNameType.Func, "igCheckboxFlags_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "int*")] int* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "int")] int flagsValue) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igCheckboxFlags_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "int*")] ref int flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "int")] int flagsValue) + public static bool DragFloat2( byte* label, float* v, float vSpeed, byte* format, int flags) { - fixed (int* pflags = &flags) - { - byte ret = CheckboxFlagsNative(label, (int*)pflags, flagsValue); - return ret != 0; - } + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igCheckboxFlags_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "int*")] ref int flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "int")] int flagsValue) + public static bool DragFloat2( byte* label, float* v, byte* format, int flags) { - fixed (byte* plabel = &label) - { - fixed (int* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (int*)pflags, flagsValue); - return ret != 0; - } - } + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igCheckboxFlags_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "int*")] ref int flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "int")] int flagsValue) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pflags = &flags) + fixed (float* pv = &v) { - byte ret = CheckboxFlagsNative(pStr0, (int*)pflags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); return ret != 0; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCheckboxFlags_UintPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCheckboxFlags_UintPtr")] - internal static extern byte CheckboxFlagsNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint flagsValue); - - [NativeName(NativeNameType.Func, "igCheckboxFlags_UintPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint flagsValue) - { - byte ret = CheckboxFlagsNative(label, flags, flagsValue); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igCheckboxFlags_UintPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint flagsValue) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igCheckboxFlags_UintPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint flagsValue) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igCheckboxFlags_UintPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint flagsValue) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin) { - fixed (uint* pflags = &flags) + fixed (float* pv = &v) { - byte ret = CheckboxFlagsNative(label, (uint*)pflags, flagsValue); - return ret != 0; + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igCheckboxFlags_UintPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint flagsValue) + public static bool DragFloat2( byte* label, ref float v, float vSpeed) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (uint* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (uint*)pflags, flagsValue); - return ret != 0; - } + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igCheckboxFlags_UintPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint flagsValue) + public static bool DragFloat2( byte* label, ref float v) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - fixed (uint* pflags = &flags) + } + + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, byte* format) + { + fixed (float* pv = &v) { - byte ret = CheckboxFlagsNative(pStr0, (uint*)pflags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); return ret != 0; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igRadioButton_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRadioButton_Bool")] - internal static extern byte RadioButtonNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "active")] [NativeName(NativeNameType.Type, "bool")] byte active); - - /// /// use with e.g. if (RadioButton("one", my_value==1)) my_value = 1; /// [NativeName(NativeNameType.Func, "igRadioButton_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool RadioButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "active")] [NativeName(NativeNameType.Type, "bool")] bool active) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, byte* format) { - byte ret = RadioButtonNative(label, active ? (byte)1 : (byte)0); - return ret != 0; + fixed (float* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } } - /// /// use with e.g. if (RadioButton("one", my_value==1)) my_value = 1; /// [NativeName(NativeNameType.Func, "igRadioButton_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool RadioButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "active")] [NativeName(NativeNameType.Type, "bool")] bool active) + public static bool DragFloat2( byte* label, ref float v, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = RadioButtonNative((byte*)plabel, active ? (byte)1 : (byte)0); + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); return ret != 0; } } - /// /// use with e.g. if (RadioButton("one", my_value==1)) my_value = 1; /// [NativeName(NativeNameType.Func, "igRadioButton_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool RadioButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "active")] [NativeName(NativeNameType.Type, "bool")] bool active) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = RadioButtonNative(pStr0, active ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; } - return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igRadioButton_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRadioButton_IntPtr")] - internal static extern byte RadioButtonNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_button")] [NativeName(NativeNameType.Type, "int")] int vButton); - - /// /// shortcut to handle the above pattern when value is an integer /// [NativeName(NativeNameType.Func, "igRadioButton_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool RadioButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_button")] [NativeName(NativeNameType.Type, "int")] int vButton) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, int flags) { - byte ret = RadioButtonNative(label, v, vButton); - return ret != 0; + fixed (float* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } } - /// /// shortcut to handle the above pattern when value is an integer /// [NativeName(NativeNameType.Func, "igRadioButton_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool RadioButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_button")] [NativeName(NativeNameType.Type, "int")] int vButton) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = RadioButtonNative((byte*)plabel, v, vButton); - return ret != 0; + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; } } - /// /// shortcut to handle the above pattern when value is an integer /// [NativeName(NativeNameType.Func, "igRadioButton_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool RadioButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_button")] [NativeName(NativeNameType.Type, "int")] int vButton) + public static bool DragFloat2( byte* label, ref float v, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = RadioButtonNative(pStr0, v, vButton); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; } - return ret != 0; } - /// /// shortcut to handle the above pattern when value is an integer /// [NativeName(NativeNameType.Func, "igRadioButton_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool RadioButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_button")] [NativeName(NativeNameType.Type, "int")] int vButton) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, byte* format, int flags) { - fixed (int* pv = &v) + fixed (float* pv = &v) { - byte ret = RadioButtonNative(label, (int*)pv, vButton); + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); return ret != 0; } } - /// /// shortcut to handle the above pattern when value is an integer /// [NativeName(NativeNameType.Func, "igRadioButton_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool RadioButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_button")] [NativeName(NativeNameType.Type, "int")] int vButton) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (int* pv = &v) - { - byte ret = RadioButtonNative((byte*)plabel, (int*)pv, vButton); - return ret != 0; - } + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; } } - /// /// shortcut to handle the above pattern when value is an integer /// [NativeName(NativeNameType.Func, "igRadioButton_IntPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool RadioButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_button")] [NativeName(NativeNameType.Type, "int")] int vButton) + public static bool DragFloat2( byte* label, ref float v, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) + fixed (float* pv = &v) { - byte ret = RadioButtonNative(pStr0, (int*)pv, vButton); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); return ret != 0; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igProgressBar")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igProgressBar")] - internal static extern void ProgressBarNative([NativeName(NativeNameType.Param, "fraction")] [NativeName(NativeNameType.Type, "float")] float fraction, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "overlay")] [NativeName(NativeNameType.Type, "const char*")] byte* overlay); - - [NativeName(NativeNameType.Func, "igProgressBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ProgressBar([NativeName(NativeNameType.Param, "fraction")] [NativeName(NativeNameType.Type, "float")] float fraction, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "overlay")] [NativeName(NativeNameType.Type, "const char*")] byte* overlay) - { - ProgressBarNative(fraction, sizeArg, overlay); - } - - [NativeName(NativeNameType.Func, "igProgressBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ProgressBar([NativeName(NativeNameType.Param, "fraction")] [NativeName(NativeNameType.Type, "float")] float fraction, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg) - { - ProgressBarNative(fraction, sizeArg, (byte*)(default)); - } - - [NativeName(NativeNameType.Func, "igProgressBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ProgressBar([NativeName(NativeNameType.Param, "fraction")] [NativeName(NativeNameType.Type, "float")] float fraction) - { - ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)(default)); - } - - [NativeName(NativeNameType.Func, "igProgressBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ProgressBar([NativeName(NativeNameType.Param, "fraction")] [NativeName(NativeNameType.Type, "float")] float fraction, [NativeName(NativeNameType.Param, "overlay")] [NativeName(NativeNameType.Type, "const char*")] byte* overlay) - { - ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), overlay); - } - - [NativeName(NativeNameType.Func, "igProgressBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ProgressBar([NativeName(NativeNameType.Param, "fraction")] [NativeName(NativeNameType.Type, "float")] float fraction, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "overlay")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlay) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, byte* format, int flags) { - fixed (byte* poverlay = &overlay) + fixed (Vector2* pv = &v) { - ProgressBarNative(fraction, sizeArg, (byte*)poverlay); + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igProgressBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ProgressBar([NativeName(NativeNameType.Param, "fraction")] [NativeName(NativeNameType.Type, "float")] float fraction, [NativeName(NativeNameType.Param, "overlay")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlay) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, byte* format) { - fixed (byte* poverlay = &overlay) + fixed (Vector2* pv = &v) { - ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), (byte*)poverlay); + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igProgressBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ProgressBar([NativeName(NativeNameType.Param, "fraction")] [NativeName(NativeNameType.Type, "float")] float fraction, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "overlay")] [NativeName(NativeNameType.Type, "const char*")] string overlay) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlay != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlay); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ProgressBarNative(fraction, sizeArg, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector2* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igProgressBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ProgressBar([NativeName(NativeNameType.Param, "fraction")] [NativeName(NativeNameType.Type, "float")] float fraction, [NativeName(NativeNameType.Param, "overlay")] [NativeName(NativeNameType.Type, "const char*")] string overlay) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlay != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlay); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlay, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ProgressBarNative(fraction, (Vector2)(new Vector2(-float.MinValue,0)), pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector2* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBullet")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBullet")] - internal static extern void BulletNative(); - - /// /// draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses /// [NativeName(NativeNameType.Func, "igBullet")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Bullet() - { - BulletNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImage")] - internal static extern void ImageNative([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol, [NativeName(NativeNameType.Param, "border_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 borderCol); - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol, [NativeName(NativeNameType.Param, "border_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 borderCol) - { - ImageNative(userTextureId, size, uv0, uv1, tintCol, borderCol); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) - { - ImageNative(userTextureId, size, uv0, uv1, tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1) - { - ImageNative(userTextureId, size, uv0, uv1, (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0) - { - ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(1,1,1,1)), (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) - { - ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) - { - ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, (Vector4)(new Vector4(0,0,0,0))); - } - - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol, [NativeName(NativeNameType.Param, "border_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 borderCol) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed) { - ImageNative(userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), tintCol, borderCol); + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } } - [NativeName(NativeNameType.Func, "igImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Image([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol, [NativeName(NativeNameType.Param, "border_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 borderCol) + public static bool DragFloat2( byte* label, ref Vector2 v) { - ImageNative(userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), tintCol, borderCol); + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImageButton")] - internal static extern byte ImageButtonNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol); - - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, byte* format) { - byte ret = ImageButtonNative(strId, userTextureId, size, uv0, uv1, bgCol, tintCol); - return ret != 0; + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; + } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, byte* format) { - byte ret = ImageButtonNative(strId, userTextureId, size, uv0, uv1, bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1) + public static bool DragFloat2( byte* label, ref Vector2 v, byte* format) { - byte ret = ImageButtonNative(strId, userTextureId, size, uv0, uv1, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, int flags) { - byte ret = ImageButtonNative(strId, userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, int flags) { - byte ret = ImageButtonNative(strId, userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, int flags) { - byte ret = ImageButtonNative(strId, userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol) + public static bool DragFloat2( byte* label, ref Vector2 v, int flags) { - byte ret = ImageButtonNative(strId, userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), bgCol, (Vector4)(new Vector4(1,1,1,1))); - return ret != 0; + fixed (Vector2* pv = &v) + { + bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, byte* format, int flags) { - byte ret = ImageButtonNative(strId, userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), bgCol, tintCol); - return ret != 0; + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, byte* format, int flags) { - byte ret = ImageButtonNative(strId, userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), bgCol, tintCol); - return ret != 0; + fixed (Vector2* pv = &v) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) + public static bool DragFloat2( byte* label, ref Vector2 v, byte* format, int flags) { - fixed (byte* pstrId = &strId) + fixed (Vector2* pv = &v) { - byte ret = ImageButtonNative((byte*)pstrId, userTextureId, size, uv0, uv1, bgCol, tintCol); + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, int flags) { - fixed (byte* pstrId = &strId) + fixed (byte* pformat = &format) { - byte ret = ImageButtonNative((byte*)pstrId, userTextureId, size, uv0, uv1, bgCol, (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) { - fixed (byte* pstrId = &strId) + fixed (byte* pformat = &format) { - byte ret = ImageButtonNative((byte*)pstrId, userTextureId, size, uv0, uv1, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, ref byte format) { - fixed (byte* pstrId = &strId) + fixed (byte* pformat = &format) { - byte ret = ImageButtonNative((byte*)pstrId, userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static bool DragFloat2( byte* label, float* v, float vSpeed, ref byte format) { - fixed (byte* pstrId = &strId) + fixed (byte* pformat = &format) { - byte ret = ImageButtonNative((byte*)pstrId, userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol) + public static bool DragFloat2( byte* label, float* v, ref byte format) { - fixed (byte* pstrId = &strId) + fixed (byte* pformat = &format) { - byte ret = ImageButtonNative((byte*)pstrId, userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), bgCol, (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, ref byte format, int flags) { - fixed (byte* pstrId = &strId) + fixed (byte* pformat = &format) { - byte ret = ImageButtonNative((byte*)pstrId, userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), bgCol, (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) + public static bool DragFloat2( byte* label, float* v, float vSpeed, ref byte format, int flags) { - fixed (byte* pstrId = &strId) + fixed (byte* pformat = &format) { - byte ret = ImageButtonNative((byte*)pstrId, userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), bgCol, tintCol); + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) + public static bool DragFloat2( byte* label, float* v, ref byte format, int flags) { - fixed (byte* pstrId = &strId) + fixed (byte* pformat = &format) { - byte ret = ImageButtonNative((byte*)pstrId, userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), bgCol, tintCol); + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (strId != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -6337,10 +4426,10 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ImageButtonNative(pStr0, userTextureId, size, uv0, uv1, bgCol, tintCol); + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -6348,15 +4437,13 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, float vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (strId != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -6366,10 +4453,10 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ImageButtonNative(pStr0, userTextureId, size, uv0, uv1, bgCol, (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -6377,15 +4464,13 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (strId != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -6395,10 +4480,10 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ImageButtonNative(pStr0, userTextureId, size, uv0, uv1, (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -6406,15 +4491,13 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0) + public static bool DragFloat2( byte* label, float* v, float vSpeed, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (strId != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -6424,10 +4507,10 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ImageButtonNative(pStr0, userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -6435,15 +4518,13 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static bool DragFloat2( byte* label, float* v, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (strId != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -6453,10 +4534,10 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ImageButtonNative(pStr0, userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (Vector4)(new Vector4(0,0,0,0)), (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -6464,15 +4545,13 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol) + public static bool DragFloat2( byte* label, float* v, float vSpeed, float vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (strId != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -6482,10 +4561,10 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ImageButtonNative(pStr0, userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), bgCol, (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -6493,15 +4572,13 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol) + public static bool DragFloat2( byte* label, float* v, float vSpeed, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (strId != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -6511,10 +4588,10 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ImageButtonNative(pStr0, userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), bgCol, (Vector4)(new Vector4(1,1,1,1))); + byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -6522,15 +4599,13 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) + public static bool DragFloat2( byte* label, float* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (strId != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -6540,10 +4615,10 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ImageButtonNative(pStr0, userTextureId, size, uv0, (Vector2)(new Vector2(1,1)), bgCol, tintCol); + byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -6551,1003 +4626,812 @@ public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igImageButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButton([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ImageButtonNative(pStr0, userTextureId, size, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), bgCol, tintCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginCombo")] - internal static extern byte BeginComboNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] byte* previewValue, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiComboFlags")] ImGuiComboFlags flags); - - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] byte* previewValue, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiComboFlags")] ImGuiComboFlags flags) - { - byte ret = BeginComboNative(label, previewValue, flags); - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] byte* previewValue) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) { - byte ret = BeginComboNative(label, previewValue, (ImGuiComboFlags)(0)); - return ret != 0; + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] byte* previewValue, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiComboFlags")] ImGuiComboFlags flags) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, ref byte format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = BeginComboNative((byte*)plabel, previewValue, flags); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] byte* previewValue) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, ref byte format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = BeginComboNative((byte*)plabel, previewValue, (ImGuiComboFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] byte* previewValue, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiComboFlags")] ImGuiComboFlags flags) + public static bool DragFloat2( byte* label, ref float v, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = BeginComboNative(pStr0, previewValue, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] byte* previewValue) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, float vMin, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginComboNative(pStr0, previewValue, (ImGuiComboFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] ref byte previewValue, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiComboFlags")] ImGuiComboFlags flags) + public static bool DragFloat2( byte* label, ref float v, float vSpeed, ref byte format, int flags) { - fixed (byte* ppreviewValue = &previewValue) + fixed (float* pv = &v) { - byte ret = BeginComboNative(label, (byte*)ppreviewValue, flags); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] ref byte previewValue) + public static bool DragFloat2( byte* label, ref float v, ref byte format, int flags) { - fixed (byte* ppreviewValue = &previewValue) + fixed (float* pv = &v) { - byte ret = BeginComboNative(label, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] string previewValue, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiComboFlags")] ImGuiComboFlags flags) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (previewValue != null) + fixed (Vector2* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginComboNative(label, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] string previewValue) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, float vMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (previewValue != null) + fixed (Vector2* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(previewValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginComboNative(label, pStr0, (ImGuiComboFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] ref byte previewValue, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiComboFlags")] ImGuiComboFlags flags) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, string format) { - fixed (byte* plabel = &label) + fixed (Vector2* pv = &v) { - fixed (byte* ppreviewValue = &previewValue) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] ref byte previewValue) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, string format) { - fixed (byte* plabel = &label) + fixed (Vector2* pv = &v) { - fixed (byte* ppreviewValue = &previewValue) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = BeginComboNative((byte*)plabel, (byte*)ppreviewValue, (ImGuiComboFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] string previewValue, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiComboFlags")] ImGuiComboFlags flags) + public static bool DragFloat2( byte* label, ref Vector2 v, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector2* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (previewValue != null) + } + + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, float vMin, string format, int flags) + { + fixed (Vector2* pv = &v) { - pStrSize1 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(previewValue, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = BeginComboNative(pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginCombo")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginCombo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "preview_value")] [NativeName(NativeNameType.Type, "const char*")] string previewValue) + public static bool DragFloat2( byte* label, ref Vector2 v, float vSpeed, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector2* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (previewValue != null) + } + + public static bool DragFloat2( byte* label, ref Vector2 v, string format, int flags) + { + fixed (Vector2* pv = &v) { - pStrSize1 = Utils.GetByteCountUTF8(previewValue); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(previewValue, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = BeginComboNative(pStr0, pStr1, (ImGuiComboFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igEndCombo")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndCombo")] - internal static extern void EndComboNative(); + [LibraryImport(LibName, EntryPoint = "igDragFloat3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragFloat3Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags); - /// /// only call EndCombo() if BeginCombo() returns true! /// [NativeName(NativeNameType.Func, "igEndCombo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndCombo() + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags) { - EndComboNative(); + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCombo_Str_arr")] - internal static extern byte ComboNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems); + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax) { - byte ret = ComboNative(label, currentItem, items, itemsCount, popupMaxHeightInItems); + bool ret = DragFloat3(label, v, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin) + { + bool ret = DragFloat3(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed) + { + bool ret = DragFloat3(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat3( byte* label, float* v) + { + bool ret = DragFloat3(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), format, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public static bool DragFloat3( byte* label, float* v, float vSpeed, byte* format) { - byte ret = ComboNative(label, currentItem, items, itemsCount, (int)(-1)); + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, float* v, byte* format) { - fixed (byte* plabel = &label) + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, int flags) + { + bool ret = DragFloat3(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, int flags) + { + bool ret = DragFloat3(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, int flags) + { + bool ret = DragFloat3(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, int flags) + { + bool ret = DragFloat3(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, byte* format, int flags) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, byte* format, int flags) + { + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat3( byte* label, float* v, byte* format, int flags) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) { - byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, popupMaxHeightInItems); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = ComboNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } - byte ret = ComboNative(pStr0, currentItem, items, itemsCount, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin) + { + fixed (float* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public static bool DragFloat3( byte* label, ref float v, float vSpeed) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - byte ret = ComboNative(pStr0, currentItem, items, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat3( byte* label, ref float v) + { + fixed (float* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, byte* format) { - fixed (int* pcurrentItem = ¤tItem) + fixed (float* pv = &v) { - byte ret = ComboNative(label, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public static bool DragFloat3( byte* label, ref float v, float vSpeed, byte* format) { - fixed (int* pcurrentItem = ¤tItem) + fixed (float* pv = &v) { - byte ret = ComboNative(label, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref float v, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); - return ret != 0; - } + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; } } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; } - fixed (int* pcurrentItem = ¤tItem) + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, int flags) + { + fixed (float* pv = &v) { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, items, itemsCount, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; } } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public static bool DragFloat3( byte* label, ref float v, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; } - fixed (int* pcurrentItem = ¤tItem) + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, byte* format, int flags) + { + fixed (float* pv = &v) { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref float v, float vSpeed, byte* format, int flags) { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(label, currentItem, pStrArray0, itemsCount, popupMaxHeightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) + fixed (float* pv = &v) { - Utils.Free(pStrArray0); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public static bool DragFloat3( byte* label, ref float v, byte* format, int flags) { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) + fixed (float* pv = &v) { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; } - byte ret = ComboNative(label, currentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (Vector3* pv = &v) { - Utils.Free(pStrArray0[i]); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; } - if (pStrArraySize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (Vector3* pv = &v) { - Utils.Free(pStrArray0); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector3* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin) + { + fixed (Vector3* pv = &v) { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - for (int i = 0; i < items.Length; i++) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed) + { + fixed (Vector3* pv = &v) { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - byte ret = ComboNative(pStr0, currentItem, pStrArray0, itemsCount, popupMaxHeightInItems); - for (int i = 0; i < items.Length; i++) + } + + public static bool DragFloat3( byte* label, ref Vector3 v) + { + fixed (Vector3* pv = &v) { - Utils.Free(pStrArray0[i]); + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - if (pStrArraySize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, byte* format) + { + fixed (Vector3* pv = &v) { - Utils.Free(pStrArray0); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, byte* format) + { + fixed (Vector3* pv = &v) { - Utils.Free(pStr0); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public static bool DragFloat3( byte* label, ref Vector3 v, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector3* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; } - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, int flags) + { + fixed (Vector3* pv = &v) { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; } - for (int i = 0; i < items.Length; i++) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, int flags) + { + fixed (Vector3* pv = &v) { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; } - byte ret = ComboNative(pStr0, currentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, int flags) + { + fixed (Vector3* pv = &v) { - Utils.Free(pStrArray0[i]); + bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; } - if (pStrArraySize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, int flags) + { + fixed (Vector3* pv = &v) { - Utils.Free(pStrArray0); + bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, byte* format, int flags) + { + fixed (Vector3* pv = &v) { - Utils.Free(pStr0); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, byte* format, int flags) { - fixed (int* pcurrentItem = ¤tItem) + fixed (Vector3* pv = &v) { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, popupMaxHeightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public static bool DragFloat3( byte* label, ref Vector3 v, byte* format, int flags) { - fixed (int* pcurrentItem = ¤tItem) + fixed (Vector3* pv = &v) { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } - fixed (int* pcurrentItem = ¤tItem) + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, popupMaxHeightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igCombo_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; } - fixed (int* pcurrentItem = ¤tItem) + } + + public static bool DragFloat3( byte* label, float* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); return ret != 0; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCombo_Str")] - internal static extern byte ComboNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems); - - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, float* v, ref byte format) { - byte ret = ComboNative(label, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros) + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, ref byte format, int flags) { - byte ret = ComboNative(label, currentItem, itemsSeparatedByZeros, (int)(-1)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, float* v, float vSpeed, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - byte ret = ComboNative((byte*)plabel, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); return ret != 0; } } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros) + public static bool DragFloat3( byte* label, float* v, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - byte ret = ComboNative((byte*)plabel, currentItem, itemsSeparatedByZeros, (int)(-1)); + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); return ret != 0; } } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -7557,10 +5441,10 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ComboNative(pStr0, currentItem, itemsSeparatedByZeros, popupMaxHeightInItems); + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -7568,15 +5452,13 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName return ret != 0; } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros) + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, float vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -7586,10 +5468,10 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ComboNative(pStr0, currentItem, itemsSeparatedByZeros, (int)(-1)); + byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -7597,65 +5479,40 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName return ret != 0; } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(label, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; - } - } - - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(label, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); - return ret != 0; - } - } - - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, string format) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (int* pcurrentItem = ¤tItem) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) + else { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); - return ret != 0; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, float* v, float vSpeed, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -7665,29 +5522,24 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pcurrentItem = ¤tItem) + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsSeparatedByZeros, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] byte* itemsSeparatedByZeros) + public static bool DragFloat3( byte* label, float* v, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -7697,51 +5549,51 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (int* pcurrentItem = ¤tItem) + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsSeparatedByZeros, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] ref byte itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, float* v, float vSpeed, float vMin, string format, int flags) { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] ref byte itemsSeparatedByZeros) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = ComboNative(label, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] string itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, float* v, float vSpeed, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -7751,10 +5603,10 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ComboNative(label, currentItem, pStr0, popupMaxHeightInItems); + byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -7762,15 +5614,13 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName return ret != 0; } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] string itemsSeparatedByZeros) + public static bool DragFloat3( byte* label, float* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -7780,10 +5630,10 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ComboNative(label, currentItem, pStr0, (int)(-1)); + byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -7791,173 +5641,111 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName return ret != 0; } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] ref byte itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + fixed (byte* pformat = &format) { - byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); return ret != 0; } } } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] ref byte itemsSeparatedByZeros) + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + fixed (byte* pformat = &format) { - byte ret = ComboNative((byte*)plabel, currentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] string itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (itemsSeparatedByZeros != null) + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, ref byte format) + { + fixed (float* pv = &v) { - pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ComboNative(pStr0, currentItem, pStr1, popupMaxHeightInItems); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] string itemsSeparatedByZeros) + public static bool DragFloat3( byte* label, ref float v, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (itemsSeparatedByZeros != null) + } + + public static bool DragFloat3( byte* label, ref float v, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (float* pv = &v) { - pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; } - int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ComboNative(pStr0, currentItem, pStr1, (int)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] ref byte itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref float v, float vSpeed, ref byte format, int flags) { - fixed (int* pcurrentItem = ¤tItem) + fixed (float* pv = &v) { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + fixed (byte* pformat = &format) { - byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); return ret != 0; } } } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] ref byte itemsSeparatedByZeros) + public static bool DragFloat3( byte* label, ref float v, ref byte format, int flags) { - fixed (int* pcurrentItem = ¤tItem) + fixed (float* pv = &v) { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + fixed (byte* pformat = &format) { - byte ret = ComboNative(label, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); return ret != 0; } } } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] string itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, string format, int flags) { - fixed (int* pcurrentItem = ¤tItem) + fixed (Vector3* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -7967,10 +5755,10 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ComboNative(label, (int*)pcurrentItem, pStr0, popupMaxHeightInItems); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -7979,17 +5767,15 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName } } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] string itemsSeparatedByZeros) + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, float vMax, string format) { - fixed (int* pcurrentItem = ¤tItem) + fixed (Vector3* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; - if (itemsSeparatedByZeros != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -7999,10 +5785,10 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = ComboNative(label, (int*)pcurrentItem, pStr0, (int)(-1)); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -8011,85 +5797,58 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName } } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] ref byte itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, string format) { - fixed (byte* plabel = &label) + fixed (Vector3* pv = &v) { - fixed (int* pcurrentItem = ¤tItem) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, popupMaxHeightInItems); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] ref byte itemsSeparatedByZeros) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - fixed (byte* pitemsSeparatedByZeros = &itemsSeparatedByZeros) + else { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, (byte*)pitemsSeparatedByZeros, (int)(-1)); - return ret != 0; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] string itemsSeparatedByZeros, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - fixed (int* pcurrentItem = ¤tItem) + } + + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, string format) + { + fixed (Vector3* pv = &v) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (itemsSeparatedByZeros != null) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStr1, popupMaxHeightInItems); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -8098,51 +5857,28 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName } } - /// /// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" /// [NativeName(NativeNameType.Func, "igCombo_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_separated_by_zeros")] [NativeName(NativeNameType.Type, "const char*")] string itemsSeparatedByZeros) + public static bool DragFloat3( byte* label, ref Vector3 v, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) + fixed (Vector3* pv = &v) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (itemsSeparatedByZeros != null) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(itemsSeparatedByZeros); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(itemsSeparatedByZeros, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = ComboNative(pStr0, (int*)pcurrentItem, pStr1, (int)(-1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -8151,184 +5887,58 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCombo_FnBoolPtr")] - internal static extern byte ComboNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems); - - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) - { - byte ret = ComboNative(label, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - byte ret = ComboNative(label, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - byte ret = ComboNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - fixed (byte* plabel = &label) - { - byte ret = ComboNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, float vMin, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector3* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(pStr0, currentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ComboNative(pStr0, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "popup_max_height_in_items")] [NativeName(NativeNameType.Type, "int")] int popupMaxHeightInItems) + public static bool DragFloat3( byte* label, ref Vector3 v, float vSpeed, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector3* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, popupMaxHeightInItems); + byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -8337,30 +5947,28 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName } } - [NativeName(NativeNameType.Func, "igCombo_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int popup_max_height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public static bool DragFloat3( byte* label, ref Vector3 v, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector3* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ComboNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); + byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -8372,556 +5980,473 @@ public static bool Combo([NativeName(NativeNameType.Param, "label")] [NativeName /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragFloat")] - internal static extern byte DragFloatNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); + [LibraryImport(LibName, EntryPoint = "igDragFloat4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragFloat4Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags); - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, int flags) { - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, format, flags); + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, format, flags); return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format) { - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax) { - bool ret = DragFloat(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragFloat4(label, v, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin) { - bool ret = DragFloat(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragFloat4(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloat4( byte* label, float* v, float vSpeed) { - bool ret = DragFloat(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragFloat4(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v) + public static bool DragFloat4( byte* label, float* v) { - bool ret = DragFloat(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragFloat4(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, byte* format) { - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), format, (int)(0)); return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, float* v, float vSpeed, byte* format) { - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, float* v, byte* format) { - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, int flags) { - bool ret = DragFloat(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + bool ret = DragFloat4(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, int flags) { - bool ret = DragFloat(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + bool ret = DragFloat4(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, float vSpeed, int flags) { - bool ret = DragFloat(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + bool ret = DragFloat4(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, int flags) { - bool ret = DragFloat(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + bool ret = DragFloat4(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, byte* format, int flags) { - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, float vSpeed, byte* format, int flags) { - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, byte* format, int flags) { - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloat4( byte* label, ref float v, float vSpeed) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - bool ret = DragFloat((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v) + public static bool DragFloat4( byte* label, ref float v) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - bool ret = DragFloat((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, ref float v, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - bool ret = DragFloat((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - bool ret = DragFloat((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref float v, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - bool ret = DragFloat((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref float v, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector4* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (Vector4* pv = &v) { - Utils.Free(pStr0); + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; } - return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector4* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin) + { + fixed (Vector4* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector4* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - bool ret = DragFloat(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat4( byte* label, ref Vector4 v) + { + fixed (Vector4* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } - return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector4* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (int)(0)); + return ret != 0; } - bool ret = DragFloat(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, byte* format) + { + fixed (Vector4* pv = &v) { - Utils.Free(pStr0); + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; } - return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloat4( byte* label, ref Vector4 v, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector4* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; } - bool ret = DragFloat(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, int flags) + { + fixed (Vector4* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + return ret; } - return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector4* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + return ret; } - bool ret = DragFloat(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, int flags) + { + fixed (Vector4* pv = &v) { - Utils.Free(pStr0); + bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; } - return ret; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, ref Vector4 v, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector4* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, byte* format, int flags) + { + fixed (Vector4* pv = &v) { - Utils.Free(pStr0); + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + return ret != 0; } - return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector4* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; } - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloat4( byte* label, ref Vector4 v, byte* format, int flags) + { + fixed (Vector4* pv = &v) { - Utils.Free(pStr0); + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragFloat4( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; } - return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8931,10 +6456,10 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -8942,15 +6467,13 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, float vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8960,26 +6483,24 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8989,26 +6510,24 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, float vSpeed, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -9018,26 +6537,24 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -9047,26 +6564,24 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, float vSpeed, float vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -9076,10 +6591,10 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); + byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -9087,15 +6602,13 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, float vSpeed, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -9105,10 +6618,10 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -9116,15 +6629,13 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, float* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -9134,10 +6645,10 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -9145,1009 +6656,1358 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format, int flags) { fixed (float* pv = &v) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, float vMax, ref byte format) { fixed (float* pv = &v) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, ref byte format) { fixed (float* pv = &v) { - bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, ref byte format) { fixed (float* pv = &v) { - bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloat4( byte* label, ref float v, ref byte format) { fixed (float* pv = &v) { - bool ret = DragFloat(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, float vMin, ref byte format, int flags) { fixed (float* pv = &v) { - bool ret = DragFloat(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, ref float v, float vSpeed, ref byte format, int flags) { fixed (float* pv = &v) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, ref float v, ref byte format, int flags) { fixed (float* pv = &v) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, string format, int flags) { - fixed (float* pv = &v) + fixed (Vector4* pv = &v) { - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, float vMax, string format) { - fixed (float* pv = &v) + fixed (Vector4* pv = &v) { - bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, string format) { - fixed (float* pv = &v) + fixed (Vector4* pv = &v) { - bool ret = DragFloat(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, string format) { - fixed (float* pv = &v) + fixed (Vector4* pv = &v) { - bool ret = DragFloat(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref Vector4 v, string format) { - fixed (float* pv = &v) + fixed (Vector4* pv = &v) { - bool ret = DragFloat(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, float vMin, string format, int flags) { - fixed (float* pv = &v) + fixed (Vector4* pv = &v) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref Vector4 v, float vSpeed, string format, int flags) { - fixed (float* pv = &v) + fixed (Vector4* pv = &v) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloat4( byte* label, ref Vector4 v, string format, int flags) { - fixed (float* pv = &v) + fixed (Vector4* pv = &v) { - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragFloatRange2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragFloatRange2Native(byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, int flags); + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, int flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, int flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, int flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, int flags) + { + bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, int flags) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (int)(0)); + return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - bool ret = DragFloat((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloat(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (int)(0)); return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; } - else + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; } - return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (int)(0)); + return ret; } - else + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; } - return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (int)(0)); + return ret; } - else + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; } - return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (int)(0)); + return ret != 0; } - else + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; } - return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (int)(0)); + return ret != 0; } - else + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + return ret; } - return ret; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; } - else + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + return ret; } - return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; } - else + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + return ret != 0; } - return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + return ret != 0; } - else + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + return ret != 0; } + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -10166,7 +8026,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, pStr0, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10174,9 +8034,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -10195,7 +8053,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10203,9 +8061,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -10224,7 +8080,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10232,9 +8088,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -10253,7 +8107,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10261,9 +8115,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -10282,7 +8134,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10290,9 +8142,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -10311,7 +8161,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10319,9 +8169,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -10340,7 +8188,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10348,9 +8196,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -10369,7 +8215,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10377,127 +8223,67 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformat = &format) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) + else { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, int flags) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformat = &format) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -10507,31 +8293,10 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10539,15 +8304,13 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -10557,31 +8320,10 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10589,15 +8331,13 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -10607,31 +8347,10 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10639,15 +8358,13 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -10657,31 +8374,10 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10689,15 +8385,13 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -10707,31 +8401,10 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10739,15 +8412,13 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format, byte* formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -10757,31 +8428,10 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -10789,223 +8439,201 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - else + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - else + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte ret = DragFloatNative(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - Utils.Free(pStr1); + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - Utils.Free(pStr0); + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } } - return ret != 0; } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); return ret != 0; } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); return ret != 0; } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); return ret != 0; } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); return ret != 0; } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); return ret != 0; } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); return ret != 0; } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); return ret != 0; } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, byte* formatMax, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); return ret != 0; } } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -11024,7 +8652,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11033,11 +8661,9 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -11056,7 +8682,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11065,11 +8691,9 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -11088,7 +8712,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11097,11 +8721,9 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -11120,7 +8742,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11129,11 +8751,9 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -11152,7 +8772,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11161,11 +8781,9 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -11184,7 +8802,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11193,11 +8811,9 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -11216,7 +8832,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11225,11 +8841,9 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -11248,7 +8862,7 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatNative(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11257,187 +8871,238 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformat = &format) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) + else { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } + Utils.Free(pStr0); } + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformat = &format) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformat = &format) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformat = &format) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformat = &format) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformat = &format) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatNative((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - byte* pStr1 = null; - int pStrSize1 = 0; + byte* pStr0 = null; + int pStrSize0 = 0; if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11446,210 +9111,220 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (byte* pformat = &format) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr1); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - else + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (byte* pformat = &format) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr1); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - else + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (byte* pformat = &format) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr1); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; } - return ret != 0; } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; } - else + } + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStr1 = null; - int pStrSize1 = 0; + byte* pStr0 = null; + int pStrSize0 = 0; if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11658,51 +9333,58 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStr1 = null; - int pStrSize1 = 0; + byte* pStr0 = null; + int pStrSize0 = 0; if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11711,51 +9393,58 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStr1 = null; - int pStrSize1 = 0; + byte* pStr0 = null; + int pStrSize0 = 0; if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11764,51 +9453,58 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - fixed (float* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStr1 = null; - int pStrSize1 = 0; + byte* pStr0 = null; + int pStrSize0 = 0; if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatNative(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -11817,1382 +9513,1480 @@ public static bool DragFloat([NativeName(NativeNameType.Param, "label")] [Native } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragFloat2")] - internal static extern byte DragFloat2Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - bool ret = DragFloat2(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) - { - bool ret = DragFloat2(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - bool ret = DragFloat2(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v) - { - bool ret = DragFloat2(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloat2(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloat2(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloat2(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloat2(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloat2((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat2((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat2((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - bool ret = DragFloat2(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - bool ret = DragFloat2(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - Utils.Free(pStr0); + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragFloat2(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - Utils.Free(pStr0); + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, byte* formatMax, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, byte* formatMax, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, int flags) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, int flags) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) { - fixed (Vector2* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, int flags) { - fixed (Vector2* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) - { - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, int flags) { - fixed (Vector2* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v) - { - fixed (Vector2* pv = &v) + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) { - fixed (Vector2* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (Vector2* pv = &v) + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) { - fixed (Vector2* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) { - fixed (Vector2* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - bool ret = DragFloat2(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloat2(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax) { - fixed (Vector2* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - bool ret = DragFloat2(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, int flags) { - fixed (Vector2* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - fixed (float* pv = &v) + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) + else { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (byte* plabel = &label) + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, byte* format, string formatMax, int flags) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - fixed (float* pv = &v) + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) + else { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v) - { - fixed (byte* plabel = &label) + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pv = &v) - { - bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - bool ret = DragFloat2((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - bool ret = DragFloat2((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - fixed (float* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -13201,30 +10995,28 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -13233,158 +11025,148 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, byte* format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -13393,222 +11175,184 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (Vector2* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (Vector2* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (Vector2* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; } - return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (Vector2* pv = &v) + } + + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, int flags) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; } - return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = DragFloat2(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -13617,30 +11361,28 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -13649,30 +11391,28 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -13681,447 +11421,583 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (float* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (float* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (float* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, ref byte formatMax) { - fixed (byte* pformat = &format) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax) { - fixed (byte* pformat = &format) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax) { - fixed (byte* pformat = &format) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax) { - fixed (byte* pformat = &format) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, ref byte formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, ref byte formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloat2Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - Utils.Free(pStr0); + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, byte* format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (float* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - else + } + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, byte* format, string formatMax, int flags) + { + fixed (float* pvCurrentMin = &vCurrentMin) { - Utils.Free(pStr0); + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -14131,14 +12007,14 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -14148,10 +12024,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -14163,15 +12039,13 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -14181,14 +12055,14 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -14198,10 +12072,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -14213,15 +12087,13 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -14231,14 +12103,14 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -14248,10 +12120,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -14263,15 +12135,13 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -14281,14 +12151,14 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -14298,10 +12168,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -14313,15 +12183,13 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -14331,14 +12199,14 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -14348,10 +12216,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -14363,15 +12231,13 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -14381,14 +12247,14 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -14398,10 +12264,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -14413,15 +12279,13 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -14431,14 +12295,14 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -14448,10 +12312,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -14463,15 +12327,13 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, float* vCurrentMax, string format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -14481,14 +12343,14 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -14498,10 +12360,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -14513,123 +12375,129 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, ref byte format, ref byte formatMax, int flags) { - fixed (float* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { fixed (byte* pformat = &format) { - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, int flags) { - fixed (Vector2* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -14648,7 +12516,28 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -14657,11 +12546,9 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) { - fixed (Vector2* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -14680,7 +12567,28 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -14689,11 +12597,9 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax) { - fixed (Vector2* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -14712,7 +12618,28 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -14721,11 +12648,9 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax) { - fixed (Vector2* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -14744,7 +12669,28 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -14753,11 +12699,9 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax) { - fixed (Vector2* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -14776,7 +12720,28 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -14785,11 +12750,9 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, float vMin, string format, string formatMax, int flags) { - fixed (Vector2* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -14808,7 +12771,28 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -14817,11 +12801,9 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, float vSpeed, string format, string formatMax, int flags) { - fixed (Vector2* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -14840,7 +12822,28 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -14849,11 +12852,9 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, float* vCurrentMax, string format, string formatMax, int flags) { - fixed (Vector2* pv = &v) + fixed (float* pvCurrentMin = &vCurrentMin) { byte* pStr0 = null; int pStrSize0 = 0; @@ -14872,7 +12873,28 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat2Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -14881,170 +12903,152 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMax = &vCurrentMax) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloat2Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -15054,10 +13058,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -15070,34 +13074,32 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -15107,10 +13109,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -15123,34 +13125,32 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -15160,10 +13160,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -15176,34 +13176,32 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -15213,10 +13211,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -15229,34 +13227,32 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -15266,10 +13262,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -15282,34 +13278,32 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -15319,10 +13313,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -15335,34 +13329,32 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -15372,10 +13364,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -15388,34 +13380,32 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, float* vCurrentMin, ref float vCurrentMax, string format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -15425,10 +13415,10 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloat2Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); + byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -15441,572 +13431,1017 @@ public static bool DragFloat2([NativeName(NativeNameType.Param, "label")] [Nativ } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragFloat3")] - internal static extern byte DragFloat3Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - bool ret = DragFloat3(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) - { - bool ret = DragFloat3(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - bool ret = DragFloat3(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v) - { - bool ret = DragFloat3(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloat3(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloat3(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloat3(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloat3(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax, int flags) { - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat3((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, float vMax, string format, string formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat3((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, float vMin, string format, string formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloat3((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, float vSpeed, string format, string formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragFloatRange2( byte* label, ref float vCurrentMin, ref float vCurrentMax, string format, string formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pvCurrentMin = &vCurrentMin) + { + fixed (float* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragIntNative(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags); + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax) + { + bool ret = DragInt(label, v, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin) + { + bool ret = DragInt(label, v, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v, float vSpeed) + { + bool ret = DragInt(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v) + { + bool ret = DragInt(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v, int vMin) + { + bool ret = DragInt(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax) + { + bool ret = DragInt(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, byte* format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, byte* format) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, byte* format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, byte* format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, int flags) + { + bool ret = DragInt(label, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = DragInt(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, byte* format, int flags) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, float vSpeed, byte* format, int flags) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, byte* format, int flags) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, byte* format, int flags) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragInt(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin) + { + fixed (int* pv = &v) { - Utils.Free(pStr0); + bool ret = DragInt(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, float vSpeed) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragInt(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt( byte* label, ref int v) + { + fixed (int* pv = &v) { - Utils.Free(pStr0); + bool ret = DragInt(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragInt( byte* label, ref int v, int vMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; } - bool ret = DragFloat3(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) { - Utils.Free(pStr0); + bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; } - bool ret = DragFloat3(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, byte* format) + { + fixed (int* pv = &v) { - Utils.Free(pStr0); + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragInt( byte* label, ref int v, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; } - bool ret = DragFloat3(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt( byte* label, ref int v, int vMin, byte* format) + { + fixed (int* pv = &v) { - Utils.Free(pStr0); + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v) + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; } - bool ret = DragFloat3(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) { - Utils.Free(pStr0); + bool ret = DragInt(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) { - Utils.Free(pStr0); + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, float vSpeed, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; } - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt( byte* label, ref int v, byte* format, int flags) + { + fixed (int* pv = &v) { - Utils.Free(pStr0); + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, int vMin, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, int vMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else { byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -16014,15 +14449,13 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -16032,26 +14465,24 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat3(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -16061,26 +14492,24 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat3(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, int* v, float vSpeed, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -16090,26 +14519,24 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat3(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, int* v, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -16119,26 +14546,24 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat3(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, int* v, int vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -16148,10 +14573,10 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -16159,15 +14584,13 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, int* v, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -16177,10 +14600,10 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -16188,15 +14611,13 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, int* v, float vSpeed, int vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -16206,10 +14627,10 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -16217,606 +14638,340 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, int* v, float vSpeed, string format, int flags) { - fixed (float* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v) - { - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (Vector3* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) + byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, int* v, string format, int flags) { - fixed (Vector3* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - bool ret = DragFloat3(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) + byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloat3(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, int* v, int vMin, string format, int flags) { - fixed (Vector3* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - bool ret = DragFloat3(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, int* v, int vMin, int vMax, string format, int flags) { - fixed (Vector3* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) + byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragInt( byte* label, ref int v, float vSpeed, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragInt( byte* label, ref int v, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v) + public static bool DragInt( byte* label, ref int v, int vMin, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, float vSpeed, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, ref int v, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, ref int v, int vMin, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + fixed (byte* pformat = &format) { - bool ret = DragFloat3((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - bool ret = DragFloat3((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -16825,30 +14980,28 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, float vSpeed, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -16857,158 +15010,148 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragInt( byte* label, ref int v, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragInt( byte* label, ref int v, int vMin, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v) + public static bool DragInt( byte* label, ref int v, float vSpeed, int vMin, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, float vSpeed, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17017,30 +15160,28 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17049,30 +15190,28 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt( byte* label, ref int v, int vMin, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17081,321 +15220,452 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt( byte* label, ref int v, int vMin, int vMax, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); + byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragInt2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragInt2Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags); + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = DragFloat3(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + bool ret = DragInt2(label, v, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + bool ret = DragInt2(label, v, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, float vSpeed) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragInt2(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt2( byte* label, int* v) + { + bool ret = DragInt2(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt2( byte* label, int* v, int vMin) + { + bool ret = DragInt2(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax) + { + bool ret = DragInt2(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, byte* format) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, byte* format) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, byte* format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, byte* format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, int flags) + { + bool ret = DragInt2(label, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = DragInt2(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, byte* format, int flags) + { + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, byte* format, int flags) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, byte* format, int flags) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, byte* format, int flags) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; } - fixed (Vector3* pv = &v) + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) { - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; } - fixed (Vector3* pv = &v) + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin) + { + fixed (int* pv = &v) { - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, int flags) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, ref byte format) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt2( byte* label, int* v, float vSpeed, ref byte format) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt2( byte* label, int* v, ref byte format) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, int vMin, ref byte format) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, ref byte format) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, ref byte format, int flags) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -17414,7 +15684,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17422,9 +15692,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -17443,7 +15711,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17451,9 +15719,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -17472,7 +15738,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17480,9 +15746,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, int* v, float vSpeed, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -17501,7 +15765,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17509,9 +15773,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, int* v, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -17530,7 +15792,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17538,9 +15800,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, int vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -17559,7 +15819,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17567,9 +15827,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -17588,7 +15846,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17596,9 +15854,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, float vSpeed, int vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -17617,7 +15873,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17625,127 +15881,13 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, int* v, float vSpeed, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -17755,31 +15897,10 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17787,15 +15908,13 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, int* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -17805,31 +15924,10 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17837,15 +15935,13 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, int* v, int vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -17855,31 +15951,10 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17887,15 +15962,13 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, int* v, int vMin, int vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -17905,31 +15978,10 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -17937,323 +15989,153 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } - else + } + } + + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, ref int v, float vSpeed, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (int* pv = &v) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, ref int v, ref byte format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt2( byte* label, ref int v, int vMin, ref byte format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, ref byte format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt2( byte* label, ref int v, float vSpeed, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, ref int v, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, ref int v, int vMin, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, int flags) { - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -18272,7 +16154,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18281,11 +16163,9 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) { - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -18304,7 +16184,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18313,11 +16193,9 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, string format) { - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -18336,7 +16214,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18345,11 +16223,9 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, ref int v, float vSpeed, string format) { - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -18368,7 +16244,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18377,11 +16253,9 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, ref int v, string format) { - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -18400,7 +16274,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18409,11 +16283,9 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, ref int v, int vMin, string format) { - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -18432,7 +16304,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18441,11 +16313,9 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, string format) { - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -18464,7 +16334,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18473,11 +16343,9 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, ref int v, float vSpeed, int vMin, string format, int flags) { - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -18496,7 +16364,7 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat3Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18505,187 +16373,28 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat3Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt2( byte* label, ref int v, float vSpeed, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { - byte* pStr1 = null; - int pStrSize1 = 0; + byte* pStr0 = null; + int pStrSize0 = 0; if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18694,51 +16403,28 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, ref int v, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { - byte* pStr1 = null; - int pStrSize1 = 0; + byte* pStr0 = null; + int pStrSize0 = 0; if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18747,51 +16433,28 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, ref int v, int vMin, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { - byte* pStr1 = null; - int pStrSize1 = 0; + byte* pStr0 = null; + int pStrSize0 = 0; if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18800,51 +16463,28 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt2( byte* label, ref int v, int vMin, int vMax, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) + fixed (int* pv = &v) { - byte* pStr1 = null; - int pStrSize1 = 0; + byte* pStr0 = null; + int pStrSize0 = 0; if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -18853,655 +16493,428 @@ public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragInt3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragInt3Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags); + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + bool ret = DragInt3(label, v, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat3Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + bool ret = DragInt3(label, v, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragFloat4")] - internal static extern byte DragFloat4Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, float vSpeed) { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; + bool ret = DragInt3(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, int* v) { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; + bool ret = DragInt3(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragInt3( byte* label, int* v, int vMin) { - bool ret = DragFloat4(label, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragInt3(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragInt3( byte* label, int* v, int vMin, int vMax) { - bool ret = DragFloat4(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragInt3(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, byte* format) { - bool ret = DragFloat4(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v) + public static bool DragInt3( byte* label, int* v, float vSpeed, byte* format) { - bool ret = DragFloat4(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, int* v, byte* format) { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, int* v, int vMin, byte* format) { - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), format, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, byte* format) { - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, format, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, int flags) { - bool ret = DragFloat4(label, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + bool ret = DragInt3(label, v, vSpeed, vMin, vMax, (string)"%d", flags); return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, int flags) { - bool ret = DragFloat4(label, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + bool ret = DragInt3(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, byte* format, int flags) { - bool ret = DragFloat4(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, float vSpeed, byte* format, int flags) { - bool ret = DragFloat4(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, byte* format, int flags) { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), format, flags); + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, int vMin, byte* format, int flags) { - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, byte* format, int flags) { - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, format, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (int)(0)); return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragInt3( byte* label, ref int v, float vSpeed) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v) + public static bool DragInt3( byte* label, ref int v) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - bool ret = DragFloat4((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, int vMin) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, byte* format) + { + fixed (int* pv = &v) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, float vSpeed, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, int vMin, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - bool ret = DragFloat4((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - bool ret = DragFloat4((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, flags); + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, float vSpeed, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, int vMin, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) { - Utils.Free(pStr0); + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; } - bool ret = DragFloat4(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragInt3( byte* label, int* v, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; } - bool ret = DragFloat4(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragInt3( byte* label, int* v, int vMin, ref byte format) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19511,26 +16924,24 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat4(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19540,26 +16951,24 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat4(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19569,10 +16978,10 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -19580,15 +16989,13 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, int* v, float vSpeed, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19598,10 +17005,10 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -19609,15 +17016,13 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, int* v, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19627,10 +17032,10 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -19638,15 +17043,13 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, int vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19656,26 +17059,24 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat4(pStr0, v, vSpeed, vMin, vMax, (string)"%.3f", flags); + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19685,26 +17086,24 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat4(pStr0, v, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, float vSpeed, int vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19714,26 +17113,24 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat4(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, float vSpeed, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19743,26 +17140,24 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - bool ret = DragFloat4(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19772,10 +17167,10 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), format, flags); + byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -19783,15 +17178,13 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, int vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19801,10 +17194,10 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -19812,15 +17205,13 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, int* v, int vMin, int vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -19830,10 +17221,10 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -19841,975 +17232,932 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, ref byte format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragInt3( byte* label, ref int v, float vSpeed, ref byte format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragInt3( byte* label, ref int v, ref byte format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v) + public static bool DragInt3( byte* label, ref int v, int vMin, ref byte format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, ref byte format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, float vSpeed, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, int vMin, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, string format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt3( byte* label, ref int v, float vSpeed, string format) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, string format) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragInt3( byte* label, ref int v, int vMin, string format) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, string format) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragInt3( byte* label, ref int v, float vSpeed, int vMin, string format, int flags) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { - bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v) + public static bool DragInt3( byte* label, ref int v, float vSpeed, string format, int flags) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { - bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, string format, int flags) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, int vMin, string format, int flags) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt3( byte* label, ref int v, int vMin, int vMax, string format, int flags) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragInt4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragInt4Native(byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags); + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format, int flags) { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, byte* format) { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax) { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } + bool ret = DragInt4(label, v, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin) { - fixed (Vector4* pv = &v) - { - bool ret = DragFloat4(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } + bool ret = DragInt4(label, v, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, float vSpeed) { - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } + bool ret = DragInt4(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v) { - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } + bool ret = DragInt4(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, int vMin) { - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } + bool ret = DragInt4(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, int vMin, int vMax) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } + bool ret = DragInt4(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, byte* format) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragInt4( byte* label, int* v, float vSpeed, byte* format) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragInt4( byte* label, int* v, byte* format) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragInt4( byte* label, int* v, int vMin, byte* format) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v) + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, byte* format) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, int flags) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + bool ret = DragInt4(label, v, vSpeed, vMin, vMax, (string)"%d", flags); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, int flags) { - fixed (byte* plabel = &label) + bool ret = DragInt4(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, byte* format, int flags) + { + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, byte* format, int flags) + { + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, byte* format, int flags) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, int vMin, byte* format, int flags) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; + } + + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - return ret; - } + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - return ret; - } + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, float vSpeed) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } + bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) - { - bool ret = DragFloat4((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, int vMin) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - return ret != 0; - } + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, float vSpeed, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt4( byte* label, ref int v, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (int)(0)); + return ret != 0; } - fixed (Vector4* pv = &v) + } + + public static bool DragInt4( byte* label, ref int v, int vMin, byte* format) + { + fixed (int* pv = &v) { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (int)(0)); + return ret != 0; } - fixed (Vector4* pv = &v) + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); return ret; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); + return ret; } - fixed (Vector4* pv = &v) + } + + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, byte* format, int flags) + { + fixed (int* pv = &v) { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragInt4( byte* label, ref int v, float vSpeed, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); + return ret != 0; } - fixed (Vector4* pv = &v) + } + + public static bool DragInt4( byte* label, ref int v, byte* format, int flags) + { + fixed (int* pv = &v) { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v) + public static bool DragInt4( byte* label, ref int v, int vMin, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); + return ret != 0; } - fixed (Vector4* pv = &v) + } + + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) { - bool ret = DragFloat4(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } - fixed (Vector4* pv = &v) + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; } - fixed (Vector4* pv = &v) + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragInt4( byte* label, int* v, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); + return ret != 0; } - fixed (Vector4* pv = &v) + } + + public static bool DragInt4( byte* label, int* v, int vMin, ref byte format) + { + fixed (byte* pformat = &format) { - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } - fixed (Vector4* pv = &v) + } + + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, float vSpeed, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; } - fixed (Vector4* pv = &v) + } + + public static bool DragInt4( byte* label, int* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, int vMin, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); + return ret != 0; } - fixed (Vector4* pv = &v) + } + + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) { - bool ret = DragFloat4(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -20819,29 +18167,24 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (Vector4* pv = &v) + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloat4(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -20851,29 +18194,24 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (Vector4* pv = &v) + byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -20883,29 +18221,24 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (Vector4* pv = &v) + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, float vSpeed, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -20915,111 +18248,18 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (Vector4* pv = &v) - { - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21038,7 +18278,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, pStr0, flags); + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -21046,9 +18286,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt4( byte* label, int* v, int vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21067,7 +18305,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -21075,9 +18313,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21096,7 +18332,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -21104,9 +18340,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt4( byte* label, int* v, float vSpeed, int vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21125,7 +18359,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -21133,9 +18367,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt4( byte* label, int* v, float vSpeed, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21154,7 +18386,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -21162,9 +18394,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21183,7 +18413,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, v, vSpeed, vMin, (float)(0.0f), pStr0, flags); + byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -21191,9 +18421,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, int vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21212,7 +18440,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -21220,9 +18448,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, int* v, int vMin, int vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21241,7 +18467,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -21249,635 +18475,243 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt4( byte* label, ref int v, float vSpeed, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt4( byte* label, ref int v, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, int vMin, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat4Native((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat4Native((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, float vSpeed, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragInt4( byte* label, ref int v, ref byte format, int flags) + { + fixed (int* pv = &v) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); + return ret != 0; } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, int vMin, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { fixed (byte* pformat = &format) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format, int flags) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, int vMax, string format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, string format) { - fixed (float* pv = &v) + fixed (int* pv = &v) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, float vSpeed, string format) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21896,7 +18730,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, flags); + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -21905,11 +18739,9 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt4( byte* label, ref int v, string format) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21928,7 +18760,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -21937,11 +18769,9 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt4( byte* label, ref int v, int vMin, string format) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21960,7 +18790,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -21969,11 +18799,9 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, string format) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -21992,7 +18820,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -22001,11 +18829,9 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragInt4( byte* label, ref int v, float vSpeed, int vMin, string format, int flags) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -22024,7 +18850,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (ImGuiSliderFlags)(0)); + byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -22033,11 +18859,9 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, float vSpeed, string format, int flags) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -22056,7 +18880,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr0, flags); + byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -22065,11 +18889,9 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, string format, int flags) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -22088,7 +18910,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -22097,11 +18919,9 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, int vMin, string format, int flags) { - fixed (Vector4* pv = &v) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -22120,7 +18940,7 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloat4Native(label, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, flags); + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -22129,2335 +18949,1418 @@ public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [Nativ } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragInt4( byte* label, ref int v, int vMin, int vMax, string format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pv = &v) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformat = &format) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragIntRange2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragIntRange2Native(byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, int flags); + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, vMin, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax) { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloat4Native((byte*)plabel, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, vMin, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloat4Native(pStr0, (float*)pv, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragFloatRange2")] - internal static extern byte DragFloatRange2Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (int)(0)); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, int flags) { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, int flags) { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, int flags) { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, int flags) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, int flags) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, int flags) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, int flags) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, int flags) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragFloatRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, int flags) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, int flags) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, int flags) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, int flags) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, int flags) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; + } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; } - bool ret = DragFloatRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); + return ret != 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (int)(0)); + return ret; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (int)(0)); + return ret; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + fixed (int* pvCurrentMax = &vCurrentMax) + { + bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); + return ret; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, byte* formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, byte* formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24467,29 +20370,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24499,29 +20397,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24531,29 +20424,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24563,29 +20451,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24595,29 +20478,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24627,29 +20505,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24659,29 +20532,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24691,29 +20559,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24723,29 +20586,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24755,29 +20613,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24787,29 +20640,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24819,29 +20667,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24851,29 +20694,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24883,29 +20721,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24915,29 +20748,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24947,29 +20775,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -24979,29 +20802,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -25011,29 +20829,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -25043,29 +20856,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -25075,29 +20883,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -25107,29 +20910,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format, byte* formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -25139,29 +20937,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -25171,29 +20964,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -25203,644 +20991,657 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - bool ret = DragFloatRange2(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, byte* formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - bool ret = DragFloatRange2((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -25849,30 +21650,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -25881,30 +21680,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -25913,158 +21710,148 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -26073,30 +21860,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -26105,30 +21890,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -26137,30 +21920,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -26169,30 +21950,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -26201,30 +21980,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -26233,1373 +22010,1398 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } - return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - bool ret = DragFloatRange2(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); - return ret; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - bool ret = DragFloatRange2((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); - return ret; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); + return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (int)(0)); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (int)(0)); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (int)(0)); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - return ret; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); + return ret != 0; } - return ret; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; } - return ret; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); + return ret != 0; } - return ret; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, byte* formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformat = &format) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -27609,32 +23411,30 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -27644,32 +23444,30 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -27679,32 +23477,30 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -27714,32 +23510,30 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -27749,32 +23543,30 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -27784,32 +23576,30 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -27819,172 +23609,162 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%.3f", (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - bool ret = DragFloatRange2(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -27994,32 +23774,30 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28029,32 +23807,30 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28064,32 +23840,63 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, formatMax, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28099,32 +23906,63 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, formatMax, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28134,32 +23972,63 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, byte* formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, formatMax, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28169,191 +24038,253 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, byte* formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, byte* formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, byte* formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, byte* formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (int* pvCurrentMax = &vCurrentMax) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, int flags) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28363,10 +24294,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28374,15 +24305,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28392,10 +24321,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28403,15 +24332,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28421,10 +24348,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28432,15 +24359,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28450,10 +24375,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28461,15 +24386,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28479,10 +24402,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28490,15 +24413,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28508,10 +24429,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28519,15 +24440,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28537,10 +24456,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28548,15 +24467,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28566,10 +24483,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28577,15 +24494,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28595,10 +24510,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28606,15 +24521,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, byte* format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28624,10 +24537,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28635,15 +24548,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28653,10 +24564,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28664,15 +24575,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -28682,10 +24591,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -28693,2163 +24602,1981 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (byte* pformatMax = &formatMax) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, byte* format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; } - else + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr1); + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; } - else + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; } - else + } + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr1); + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - Utils.Free(pStr0); + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, int flags) + { + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - Utils.Free(pStr1); + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) { - Utils.Free(pStr0); + fixed (int* pvCurrentMax = &vCurrentMax) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, ref byte formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (int* pvCurrentMax = &vCurrentMax) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, byte* format, string formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, byte* format, string formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, byte* format, string formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, byte* format, string formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, byte* format, string formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, byte* format, string formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + fixed (int* pvCurrentMax = &vCurrentMax) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (formatMax != null) + { + pStrSize0 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformatMax = &formatMax) { - Utils.Free(pStr0); + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - return ret != 0; + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - return ret != 0; + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMin = &vCurrentMin) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) + else { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - fixed (float* pvCurrentMin = &vCurrentMin) + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } + pStr1 = Utils.Alloc(pStrSize1 + 1); } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) + else { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + Utils.Free(pStr1); } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMin = &vCurrentMin) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) + else { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - fixed (float* pvCurrentMin = &vCurrentMin) + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + pStr1 = Utils.Alloc(pStrSize1 + 1); } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) + else { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } + Utils.Free(pStr1); } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMin = &vCurrentMin) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) + else { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - fixed (float* pvCurrentMin = &vCurrentMin) + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } + pStr1 = Utils.Alloc(pStrSize1 + 1); } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) + else { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -30859,50 +26586,45 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr1 = Utils.Alloc(pStrSize1 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - return ret != 0; + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -30912,50 +26634,45 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr1 = Utils.Alloc(pStrSize1 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - return ret != 0; + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -30965,50 +26682,45 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr1 = Utils.Alloc(pStrSize1 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - return ret != 0; + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -31018,50 +26730,45 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr1 = Utils.Alloc(pStrSize1 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - return ret != 0; + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, string format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -31071,50 +26778,45 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr1 = Utils.Alloc(pStrSize1 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - return ret != 0; + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -31124,50 +26826,45 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr1 = Utils.Alloc(pStrSize1 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - return ret != 0; + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -31177,69 +26874,244 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr1); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - if (pStrSize0 >= Utils.MaxStackallocSize) + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } - else + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + fixed (byte* pformat = &format) + { + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } + } + } + } + + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, int flags) + { + fixed (int* pvCurrentMin = &vCurrentMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -31249,10 +27121,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -31265,34 +27137,32 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -31302,10 +27172,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -31318,34 +27188,32 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -31355,10 +27223,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -31371,34 +27239,32 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -31408,10 +27274,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -31424,34 +27290,32 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -31461,10 +27325,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -31477,34 +27341,32 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -31514,10 +27376,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -31530,34 +27392,32 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -31567,10 +27427,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -31583,34 +27443,32 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, int vMin, string format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -31620,10 +27478,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -31636,34 +27494,32 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, float vSpeed, string format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (formatMax != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(formatMax); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -31673,10 +27529,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -31689,235 +27545,342 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, string format, string formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, string format, string formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, int* vCurrentMax, int vMin, int vMax, string format, string formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -31936,39 +27899,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStr1 = Utils.Alloc(pStrSize1 + 1); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -31977,11 +27929,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -32000,7 +27950,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -32009,11 +27980,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -32032,7 +28001,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -32041,11 +28031,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -32064,7 +28052,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -32073,11 +28082,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -32096,7 +28103,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -32105,11 +28133,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -32128,7 +28154,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -32137,11 +28184,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -32160,7 +28205,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -32169,11 +28235,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -32192,7 +28256,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -32201,11 +28286,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -32224,7 +28307,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -32233,11 +28337,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, string format, string formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -32256,7 +28358,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -32265,11 +28388,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -32288,7 +28409,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -32297,11 +28439,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, int* vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -32320,71 +28460,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStr1 = Utils.Alloc(pStrSize1 + 1); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + Utils.Free(pStr1); } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -32393,796 +28490,1136 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (int)(0)); + return ret != 0; + } } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, ref byte format, ref byte formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; + fixed (byte* pformatMax = &formatMax) + { + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); + return ret != 0; + } } } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, int vMax, string format, string formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax) { - fixed (byte* plabel = &label) + fixed (int* pvCurrentMin = &vCurrentMin) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMax = &vCurrentMax) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (int)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pvCurrentMin = &vCurrentMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (int)(0)); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, int vMin, string format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, float vSpeed, string format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, string format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, string format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragIntRange2( byte* label, ref int vCurrentMin, ref int vCurrentMax, int vMin, int vMax, string format, string formatMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pvCurrentMin = &vCurrentMin) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + fixed (int* pvCurrentMax = &vCurrentMax) { - pStrSize1 = Utils.GetByteCountUTF8(format); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (formatMax != null) + { + pStrSize1 = Utils.GetByteCountUTF8(formatMax); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragScalar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragScalarNative(byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, int flags); + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, byte* format, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, byte* format, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, byte* format, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, byte* format, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, byte* format, int flags) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); + return ret != 0; + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -33192,50 +29629,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, void* pMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -33245,50 +29656,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -33298,50 +29683,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -33351,50 +29710,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalar( byte* label, int dataType, void* pData, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -33404,50 +29737,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -33457,50 +29764,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -33510,1426 +29791,1086 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, void* pMin, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) + else { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragScalar( byte* label, int dataType, void* pData, float vSpeed, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragScalar( byte* label, int dataType, void* pData, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool DragScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragScalarN")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragScalarNNative(byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, int flags); + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, byte* format) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, byte* format, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, byte* format, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, byte* format, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, byte* format, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, byte* format, int flags) + { + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); + return ret != 0; + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, void* pMax, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, void* pMin, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, float vSpeed, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool DragScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderFloatNative(byte* label, float* v, float vMin, float vMax, byte* format, int flags); + + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, byte* format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } + byte ret = SliderFloatNative(label, v, vMin, vMax, format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, byte* format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } + byte ret = SliderFloatNative(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } + bool ret = SliderFloat(label, v, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, int flags) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } + bool ret = SliderFloat(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + bool ret = SliderFloat(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + bool ret = SliderFloat(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, string format, int flags) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMin = &vCurrentMin) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloatNative(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool SliderFloat( byte* label, float* v, float vMin, float vMax, string format) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMin = &vCurrentMin) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = SliderFloatNative(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, string format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat( byte* label, ref float v, float vMin, float vMax, string format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderFloat2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderFloat2Native(byte* label, float* v, float vMin, float vMax, byte* format, int flags); + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, byte* format, int flags) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } + byte ret = SliderFloat2Native(label, v, vMin, vMax, format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, byte* format) { - fixed (byte* plabel = &label) + byte ret = SliderFloat2Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax) + { + bool ret = SliderFloat2(label, v, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, int flags) + { + bool ret = SliderFloat2(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector2* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax, byte* format) + { + fixed (Vector2* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector2* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax, int flags) + { + fixed (Vector2* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -34939,53 +30880,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = SliderFloat2Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static bool SliderFloat2( byte* label, float* v, float vMin, float vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -34995,701 +30907,229 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = SliderFloat2Native(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMax = &vCurrentMax) + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool SliderFloat2( byte* label, ref float v, float vMin, float vMax, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax, string format, int flags) + { + fixed (Vector2* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) + public static bool SliderFloat2( byte* label, ref Vector2 v, float vMin, float vMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector2* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); + byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderFloat3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderFloat3Native(byte* label, float* v, float vMin, float vMax, byte* format, int flags); + + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } + byte ret = SliderFloat3Native(label, v, vMin, vMax, format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } + byte ret = SliderFloat3Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } + bool ret = SliderFloat3(label, v, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } + bool ret = SliderFloat3(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax, byte* format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax) { - fixed (byte* pformatMax = &formatMax) + fixed (float* pv = &v) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax, int flags) { - fixed (byte* pformatMax = &formatMax) + fixed (float* pv = &v) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax, byte* format, int flags) { - fixed (byte* pformatMax = &formatMax) + fixed (Vector3* pv = &v) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax, byte* format) { - fixed (byte* pformatMax = &formatMax) + fixed (Vector3* pv = &v) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax) { - fixed (byte* pformatMax = &formatMax) + fixed (Vector3* pv = &v) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax, int flags) { - fixed (byte* pformatMax = &formatMax) + fixed (Vector3* pv = &v) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; + bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, ref byte format, int flags) { - fixed (byte* pformatMax = &formatMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, ref byte format) { - fixed (byte* pformatMax = &formatMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -35699,10 +31139,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + byte ret = SliderFloat3Native(label, v, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -35710,15 +31150,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderFloat3( byte* label, float* v, float vMin, float vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -35728,10 +31166,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + byte ret = SliderFloat3Native(label, v, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -35739,131 +31177,218 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderFloat3( byte* label, ref float v, float vMin, float vMax, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) + fixed (Vector3* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat3( byte* label, ref Vector3 v, float vMin, float vMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) + fixed (Vector3* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderFloat4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderFloat4Native(byte* label, float* v, float vMin, float vMax, byte* format, int flags); + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, byte* format, int flags) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, byte* format) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax) + { + bool ret = SliderFloat4(label, v, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, int flags) + { + bool ret = SliderFloat4(label, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) { - Utils.Free(pStr0); + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax, byte* format, int flags) + { + fixed (Vector4* pv = &v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax) + { + fixed (Vector4* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax, int flags) + { + fixed (Vector4* pv = &v) + { + bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -35873,10 +31398,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + byte ret = SliderFloat4Native(label, v, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -35884,15 +31409,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat4( byte* label, float* v, float vMin, float vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -35902,10 +31425,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + byte ret = SliderFloat4Native(label, v, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -35913,127 +31436,338 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (byte* pformatMax = &formatMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderFloat4( byte* label, ref float v, float vMin, float vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (byte* pformatMax = &formatMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax, string format, int flags) { - fixed (byte* plabel = &label) + fixed (Vector4* pv = &v) { - fixed (byte* pformatMax = &formatMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderFloat4( byte* label, ref Vector4 v, float vMin, float vMax, string format) { - fixed (byte* plabel = &label) + fixed (Vector4* pv = &v) { - fixed (byte* pformatMax = &formatMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderAngle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderAngleNative(byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, int flags); + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format, int flags) { - fixed (byte* plabel = &label) + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, format, flags); + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, byte* format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (int)(0)); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (int)(0)); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad) + { + bool ret = SliderAngle(label, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (int)(0)); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, byte* format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), format, (int)(0)); + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, byte* format) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), format, (int)(0)); + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, int flags) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, int flags) + { + bool ret = SliderAngle(label, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad, int flags) + { + bool ret = SliderAngle(label, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, byte* format, int flags) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), format, flags); + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, byte* format, int flags) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); + return ret != 0; + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format, int flags) + { + fixed (float* pvRad = &vRad) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pvRad = &vRad) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax) { - fixed (byte* plabel = &label) + fixed (float* pvRad = &vRad) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin) { - fixed (byte* plabel = &label) + fixed (float* pvRad = &vRad) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (int)(0)); + return ret; + } + } + + public static bool SliderAngle( byte* label, ref float vRad) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (int)(0)); + return ret; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, byte* format) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, byte* format) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, int flags) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); + return ret; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, int flags) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, int flags) + { + fixed (float* pvRad = &vRad) + { + bool ret = SliderAngle(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); + return ret; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, byte* format, int flags) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, ref float vRad, byte* format, int flags) + { + fixed (float* pvRad = &vRad) + { + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderAngle( byte* label, float* vRad, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36043,31 +31777,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -36075,15 +31788,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, float vDegreesMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36093,31 +31804,37 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) + byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -36125,15 +31842,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderAngle( byte* label, float* vRad, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36143,181 +31858,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -36325,15 +31869,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderAngle( byte* label, float* vRad, float vDegreesMin, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36343,31 +31885,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -36375,15 +31896,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderAngle( byte* label, float* vRad, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36393,31 +31912,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -36425,129 +31923,87 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { - fixed (byte* pformatMax = &formatMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { - fixed (byte* pformatMax = &formatMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { - fixed (byte* pformatMax = &formatMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderAngle( byte* label, ref float vRad, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { - fixed (byte* pformatMax = &formatMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { - fixed (byte* pformatMax = &formatMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderAngle( byte* label, ref float vRad, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { - fixed (byte* pformatMax = &formatMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36557,10 +32013,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -36569,17 +32025,15 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, float vDegreesMax, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36589,10 +32043,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -36601,17 +32055,15 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36621,10 +32073,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -36633,17 +32085,15 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderAngle( byte* label, ref float vRad, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36653,10 +32103,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -36665,17 +32115,15 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderAngle( byte* label, ref float vRad, float vDegreesMin, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36685,10 +32133,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -36697,17 +32145,15 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderAngle( byte* label, ref float vRad, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pvRad = &vRad) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36717,10 +32163,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); + byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -36729,215 +32175,98 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderIntNative(byte* label, int* v, int vMin, int vMax, byte* format, int flags); + + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, byte* format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = SliderIntNative(label, v, vMin, vMax, format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, byte* format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = SliderIntNative(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt( byte* label, int* v, int vMin, int vMax) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } + bool ret = SliderInt(label, v, vMin, vMax, (string)"%d", (int)(0)); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, int flags) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + bool ret = SliderInt(label, v, vMin, vMax, (string)"%d", flags); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, byte* format) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + bool ret = SliderInt(label, (int*)pv, vMin, vMax, (string)"%d", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, int flags) { - fixed (byte* plabel = &label) + fixed (int* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } + bool ret = SliderInt(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -36947,50 +32276,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = SliderIntNative(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderInt( byte* label, int* v, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -37000,86 +32303,63 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = SliderIntNative(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } - else + } + } + + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -37088,51 +32368,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderInt( byte* label, ref int v, int vMin, int vMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pv = &v) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -37141,15 +32398,98 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderInt2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderInt2Native(byte* label, int* v, int vMin, int vMax, byte* format, int flags); + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax) + { + bool ret = SliderInt2(label, v, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = SliderInt2(label, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -37159,50 +32499,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = SliderInt2Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt2( byte* label, int* v, int vMin, int vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -37212,86 +32526,63 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = SliderInt2Native(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } - else + } + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, string format, int flags) + { + fixed (int* pv = &v) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -37300,51 +32591,28 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt2( byte* label, ref int v, int vMin, int vMax, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pv = &v) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -37353,161 +32621,178 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderInt3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderInt3Native(byte* label, int* v, int vMin, int vMax, byte* format, int flags); + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = SliderInt3Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, byte* format) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = SliderInt3Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax) + { + bool ret = SliderInt3(label, v, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = SliderInt3(label, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, byte* format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pv = &v) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pv = &v) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pv = &v) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, ref byte format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - fixed (byte* pformatMax = &formatMax) + byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt3Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt3( byte* label, int* v, int vMin, int vMax, string format) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformatMax = &formatMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt3Native(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pv = &v) { - fixed (byte* pformatMax = &formatMax) + fixed (byte* pformat = &format) { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, ref byte format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pv = &v) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, string format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -37517,10 +32802,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -37529,17 +32814,15 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderInt3( byte* label, ref int v, int vMin, int vMax, string format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -37549,10 +32832,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); + byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -37561,113 +32844,178 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (float* pvCurrentMax = &vCurrentMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderInt4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderInt4Native(byte* label, int* v, int vMin, int vMax, byte* format, int flags); + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, byte* format) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax) + { + bool ret = SliderInt4(label, v, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, int flags) + { + bool ret = SliderInt4(label, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, flags); + return ret != 0; + } + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, byte* format) + { + fixed (int* pv = &v) + { + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax) + { + fixed (int* pv = &v) + { + bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, int flags) + { + fixed (int* pv = &v) + { + bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; + } + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, string format, int flags) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt4Native(label, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderInt4( byte* label, int* v, int vMin, int vMax, string format) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = SliderInt4Native(label, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, ref byte format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pv = &v) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + } + + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, ref byte format) + { + fixed (int* pv = &v) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, string format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -37677,10 +33025,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -37689,17 +33037,15 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderInt4( byte* label, ref int v, int vMin, int vMax, string format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (int* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; - if (formatMax != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -37709,10 +33055,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); + byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -37721,151 +33067,62 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderScalar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderScalarNative(byte* label, int dataType, void* pData, void* pMin, void* pMax, byte* format, int flags); - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, byte* format, int flags) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, byte* format) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, int flags) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)(default), flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, ref byte format) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -37875,50 +33132,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderScalar( byte* label, int dataType, void* pData, void* pMin, void* pMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -37928,103 +33159,73 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderScalarN")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderScalarNNative(byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, byte* format, int flags); + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, format, flags); + return ret != 0; + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, byte* format) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, int flags) + { + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); + return ret != 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + } + + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, ref byte format) + { + fixed (byte* pformat = &format) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38034,50 +33235,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool SliderScalarN( byte* label, int dataType, void* pData, int components, void* pMin, void* pMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38087,103 +33262,109 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igVSliderFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte VSliderFloatNative(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, int flags); + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax) + { + bool ret = VSliderFloat(label, size, v, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, int flags) + { + bool ret = VSliderFloat(label, size, v, vMin, vMax, (string)"%.3f", flags); + return ret; + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, format, flags); + return ret != 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, byte* format) + { + fixed (float* pv = &v) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax) + { + fixed (float* pv = &v) + { + bool ret = VSliderFloat(label, size, (float*)pv, vMin, vMax, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, int flags) + { + fixed (float* pv = &v) + { + bool ret = VSliderFloat(label, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); + return ret; + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38193,50 +33374,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool VSliderFloat( byte* label, Vector2 size, float* v, float vMin, float vMax, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38246,33 +33401,63 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = VSliderFloatNative(label, size, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); + return ret != 0; + } + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + } + + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, string format, int flags) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -38281,591 +33466,610 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool VSliderFloat( byte* label, Vector2 size, ref float v, float vMin, float vMax, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (float* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformatMax = &formatMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igVSliderInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte VSliderIntNative(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, int flags); + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, int flags) + { + byte ret = VSliderIntNative(label, size, v, vMin, vMax, format, flags); + return ret != 0; + } + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = VSliderIntNative(label, size, v, vMin, vMax, format, (int)(0)); + return ret != 0; + } + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax) + { + bool ret = VSliderInt(label, size, v, vMin, vMax, (string)"%d", (int)(0)); + return ret; + } + + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, int flags) + { + bool ret = VSliderInt(label, size, v, vMin, vMax, (string)"%d", flags); + return ret; + } + + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, byte* format, int flags) + { + fixed (int* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, byte* format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + bool ret = VSliderInt(label, size, (int*)pv, vMin, vMax, (string)"%d", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + bool ret = VSliderInt(label, size, (int*)pv, vMin, vMax, (string)"%d", flags); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderIntNative(label, size, v, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool VSliderInt( byte* label, Vector2 size, int* v, int vMin, int vMax, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderIntNative(label, size, v, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool VSliderInt( byte* label, Vector2 size, ref int v, int vMin, int vMax, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (int* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igVSliderScalar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte VSliderScalarNative(byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, byte* format, int flags); + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, byte* format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, format, flags); + return ret != 0; + } + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, byte* format) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, format, (int)(0)); + return ret != 0; + } + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, int flags) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)(default), flags); + return ret != 0; + } + + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMax = &vCurrentMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool VSliderScalar( byte* label, Vector2 size, int dataType, void* pData, void* pMin, void* pMax, string format) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (float* pvCurrentMin = &vCurrentMin) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputFloatNative(byte* label, float* v, float step, float stepFast, byte* format, int flags); + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, byte* format, int flags) { - fixed (byte* plabel = &label) + byte ret = InputFloatNative(label, v, step, stepFast, format, flags); + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, byte* format) + { + byte ret = InputFloatNative(label, v, step, stepFast, format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast) + { + bool ret = InputFloat(label, v, step, stepFast, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat( byte* label, float* v, float step) + { + bool ret = InputFloat(label, v, step, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat( byte* label, float* v) + { + bool ret = InputFloat(label, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat( byte* label, float* v, float step, byte* format) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, byte* format) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, int flags) + { + bool ret = InputFloat(label, v, step, stepFast, (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat( byte* label, float* v, float step, int flags) + { + bool ret = InputFloat(label, v, step, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat( byte* label, float* v, int flags) + { + bool ret = InputFloat(label, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat( byte* label, float* v, float step, byte* format, int flags) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, byte* format, int flags) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, byte* format, int flags) + { + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputFloat( byte* label, ref float v, float step, float stepFast) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + bool ret = InputFloat(label, (float*)pv, step, stepFast, (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputFloat( byte* label, ref float v, float step) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + bool ret = InputFloat(label, (float*)pv, step, (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat( byte* label, ref float v) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } + bool ret = InputFloat(label, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat( byte* label, ref float v, float step, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat( byte* label, ref float v, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, int flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, step, stepFast, (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, int flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat( byte* label, ref float v, int flags) + { + fixed (float* pv = &v) + { + bool ret = InputFloat(label, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat( byte* label, ref float v, float step, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) + { + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat( byte* label, float* v, float step, float stepFast, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, float step, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, float step, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputFloat( byte* label, float* v, float step, float stepFast, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38875,53 +34079,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = InputFloatNative(label, v, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputFloat( byte* label, float* v, float step, float stepFast, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38931,53 +34106,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = InputFloatNative(label, v, step, stepFast, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputFloat( byte* label, float* v, float step, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -38987,53 +34133,51 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = InputFloatNative(label, v, step, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMax = &vCurrentMax) + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat( byte* label, float* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputFloat( byte* label, float* v, float step, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -39043,53 +34187,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = InputFloatNative(label, v, step, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputFloat( byte* label, float* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -39099,377 +34214,391 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (float* pvCurrentMax = &vCurrentMax) + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, flags); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, (int)(0)); + return ret != 0; } - else + } + } + + public static bool InputFloat( byte* label, ref float v, float step, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool InputFloat( byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (int)(0)); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat( byte* label, ref float v, float step, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pformat = &format) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); + return ret != 0; } - else + } + } + + public static bool InputFloat( byte* label, ref float v, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, string format, int flags) + { + fixed (float* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat( byte* label, ref float v, float step, float stepFast, string format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = InputFloatNative(label, (float*)pv, step, stepFast, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool InputFloat( byte* label, ref float v, float step, string format) + { + fixed (float* pv = &v) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr1); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public static bool InputFloat( byte* label, ref float v, string format) + { + fixed (float* pv = &v) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - return ret != 0; + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat( byte* label, ref float v, float step, string format, int flags) { - fixed (byte* pformat = &format) + fixed (float* pv = &v) { - fixed (byte* pformatMax = &formatMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputFloat( byte* label, ref float v, string format, int flags) { - fixed (byte* pformat = &format) + fixed (float* pv = &v) { - fixed (byte* pformatMax = &formatMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputFloat2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputFloat2Native(byte* label, float* v, byte* format, int flags); + + public static bool InputFloat2( byte* label, float* v, byte* format, int flags) { - fixed (byte* pformat = &format) + byte ret = InputFloat2Native(label, v, format, flags); + return ret != 0; + } + + public static bool InputFloat2( byte* label, float* v, byte* format) + { + byte ret = InputFloat2Native(label, v, format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat2( byte* label, float* v) + { + bool ret = InputFloat2(label, v, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat2( byte* label, float* v, int flags) + { + bool ret = InputFloat2(label, v, (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat2( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = InputFloat2Native(label, (float*)pv, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputFloat2( byte* label, ref float v, byte* format) { - fixed (byte* pformat = &format) + fixed (float* pv = &v) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = InputFloat2Native(label, (float*)pv, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputFloat2( byte* label, ref float v) { - fixed (byte* pformat = &format) + fixed (float* pv = &v) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat2( byte* label, ref float v, int flags) { - fixed (byte* pformat = &format) + fixed (float* pv = &v) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat2( byte* label, ref Vector2 v, byte* format, int flags) { - fixed (byte* pformat = &format) + fixed (Vector2* pv = &v) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } + byte ret = InputFloat2Native(label, (float*)pv, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat2( byte* label, ref Vector2 v, byte* format) { - fixed (byte* pformat = &format) + fixed (Vector2* pv = &v) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } + byte ret = InputFloat2Native(label, (float*)pv, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat2( byte* label, ref Vector2 v) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (Vector2* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) + } + + public static bool InputFloat2( byte* label, ref Vector2 v, int flags) + { + fixed (Vector2* pv = &v) { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); + return ret; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static bool InputFloat2( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr1); + byte ret = InputFloat2Native(label, v, (byte*)pformat, flags); + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool InputFloat2( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) { - Utils.Free(pStr0); + byte ret = InputFloat2Native(label, v, (byte*)pformat, (int)(0)); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputFloat2( byte* label, float* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -39488,28 +34617,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputFloat2Native(label, v, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -39517,9 +34625,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputFloat2( byte* label, float* v, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -39538,28 +34644,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputFloat2Native(label, v, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -39567,159 +34652,212 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputFloat2( byte* label, ref float v, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) + } + + public static bool InputFloat2( byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (byte* pformat = &format) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputFloat2( byte* label, ref Vector2 v, string format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (Vector2* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = InputFloat2Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret != 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) + } + + public static bool InputFloat2( byte* label, ref Vector2 v, string format) + { + fixed (Vector2* pv = &v) { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = InputFloat2Native(label, (float*)pv, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + return ret != 0; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputFloat3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputFloat3Native(byte* label, float* v, byte* format, int flags); + + public static bool InputFloat3( byte* label, float* v, byte* format, int flags) + { + byte ret = InputFloat3Native(label, v, format, flags); + return ret != 0; + } + + public static bool InputFloat3( byte* label, float* v, byte* format) + { + byte ret = InputFloat3Native(label, v, format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat3( byte* label, float* v) + { + bool ret = InputFloat3(label, v, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat3( byte* label, float* v, int flags) + { + bool ret = InputFloat3(label, v, (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat3( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) { - Utils.Free(pStr1); + byte ret = InputFloat3Native(label, (float*)pv, format, flags); + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool InputFloat3( byte* label, ref float v, byte* format) + { + fixed (float* pv = &v) { - Utils.Free(pStr0); + byte ret = InputFloat3Native(label, (float*)pv, format, (int)(0)); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat3( byte* label, ref float v) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) + fixed (float* pv = &v) { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) + } + + public static bool InputFloat3( byte* label, ref float v, int flags) + { + fixed (float* pv = &v) { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); + return ret; } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static bool InputFloat3( byte* label, ref Vector3 v, byte* format, int flags) + { + fixed (Vector3* pv = &v) { - Utils.Free(pStr1); + byte ret = InputFloat3Native(label, (float*)pv, format, flags); + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool InputFloat3( byte* label, ref Vector3 v, byte* format) + { + fixed (Vector3* pv = &v) { - Utils.Free(pStr0); + byte ret = InputFloat3Native(label, (float*)pv, format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat3( byte* label, ref Vector3 v) + { + fixed (Vector3* pv = &v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool InputFloat3( byte* label, ref Vector3 v, int flags) + { + fixed (Vector3* pv = &v) + { + bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat3( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(label, v, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputFloat3( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat3Native(label, v, (byte*)pformat, (int)(0)); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat3( byte* label, float* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; @@ -39738,28 +34876,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputFloat3Native(label, v, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -39767,9 +34884,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat3( byte* label, float* v, string format) { byte* pStr0 = null; int pStrSize0 = 0; @@ -39788,28 +34903,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputFloat3Native(label, v, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -39817,151 +34911,218 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat3( byte* label, ref float v, ref byte format, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { fixed (byte* pformat = &format) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } + byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputFloat3( byte* label, ref float v, ref byte format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { fixed (byte* pformat = &format) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, (int)(0)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputFloat3( byte* label, ref Vector3 v, string format, int flags) { - fixed (byte* plabel = &label) + fixed (Vector3* pv = &v) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformatMax = &formatMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat3Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputFloat3( byte* label, ref Vector3 v, string format) { - fixed (byte* plabel = &label) + fixed (Vector3* pv = &v) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - fixed (byte* pformatMax = &formatMax) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat3Native(label, (float*)pv, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputFloat4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputFloat4Native(byte* label, float* v, byte* format, int flags); + + public static bool InputFloat4( byte* label, float* v, byte* format, int flags) + { + byte ret = InputFloat4Native(label, v, format, flags); + return ret != 0; + } + + public static bool InputFloat4( byte* label, float* v, byte* format) { - fixed (byte* plabel = &label) + byte ret = InputFloat4Native(label, v, format, (int)(0)); + return ret != 0; + } + + public static bool InputFloat4( byte* label, float* v) + { + bool ret = InputFloat4(label, v, (string)"%.3f", (int)(0)); + return ret; + } + + public static bool InputFloat4( byte* label, float* v, int flags) + { + bool ret = InputFloat4(label, v, (string)"%.3f", flags); + return ret; + } + + public static bool InputFloat4( byte* label, ref float v, byte* format, int flags) + { + fixed (float* pv = &v) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = InputFloat4Native(label, (float*)pv, format, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat4( byte* label, ref float v, byte* format) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = InputFloat4Native(label, (float*)pv, format, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat4( byte* label, ref float v) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat4( byte* label, ref float v, int flags) { - fixed (byte* plabel = &label) + fixed (float* pv = &v) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat4( byte* label, ref Vector4 v, byte* format, int flags) + { + fixed (Vector4* pv = &v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, flags); + return ret != 0; + } + } + + public static bool InputFloat4( byte* label, ref Vector4 v, byte* format) + { + fixed (Vector4* pv = &v) + { + byte ret = InputFloat4Native(label, (float*)pv, format, (int)(0)); + return ret != 0; + } + } + + public static bool InputFloat4( byte* label, ref Vector4 v) + { + fixed (Vector4* pv = &v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (int)(0)); + return ret; + } + } + + public static bool InputFloat4( byte* label, ref Vector4 v, int flags) + { + fixed (Vector4* pv = &v) + { + bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); + return ret; + } + } + + public static bool InputFloat4( byte* label, float* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(label, v, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputFloat4( byte* label, float* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputFloat4Native(label, v, (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputFloat4( byte* label, float* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -39971,52 +35132,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputFloat4Native(label, v, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -40024,15 +35143,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputFloat4( byte* label, float* v, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -40042,68 +35159,527 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + byte ret = InputFloat4Native(label, v, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + return ret != 0; + } + + public static bool InputFloat4( byte* label, ref float v, ref byte format, int flags) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, flags); + return ret != 0; } - else + } + } + + public static bool InputFloat4( byte* label, ref float v, ref byte format) + { + fixed (float* pv = &v) + { + fixed (byte* pformat = &format) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, (int)(0)); + return ret != 0; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) + } + + public static bool InputFloat4( byte* label, ref Vector4 v, string format, int flags) + { + fixed (Vector4* pv = &v) { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + byte ret = InputFloat4Native(label, (float*)pv, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + Utils.Free(pStr0); } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; + return ret != 0; } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) + } + + public static bool InputFloat4( byte* label, ref Vector4 v, string format) + { + fixed (Vector4* pv = &v) { - Utils.Free(pStr2); + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputFloat4Native(label, (float*)pv, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputIntNative(byte* label, int* v, int step, int stepFast, int flags); + + public static bool InputInt( byte* label, int* v, int step, int stepFast, int flags) + { + byte ret = InputIntNative(label, v, step, stepFast, flags); + return ret != 0; + } + + public static bool InputInt( byte* label, int* v, int step, int stepFast) + { + byte ret = InputIntNative(label, v, step, stepFast, (int)(0)); + return ret != 0; + } + + public static bool InputInt( byte* label, int* v, int step) + { + byte ret = InputIntNative(label, v, step, (int)(100), (int)(0)); + return ret != 0; + } + + public static bool InputInt( byte* label, int* v) + { + byte ret = InputIntNative(label, v, (int)(1), (int)(100), (int)(0)); + return ret != 0; + } + + public static bool InputInt( byte* label, ref int v, int step, int stepFast, int flags) + { + fixed (int* pv = &v) { - Utils.Free(pStr1); + byte ret = InputIntNative(label, (int*)pv, step, stepFast, flags); + return ret != 0; } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool InputInt( byte* label, ref int v, int step, int stepFast) + { + fixed (int* pv = &v) { - Utils.Free(pStr0); + byte ret = InputIntNative(label, (int*)pv, step, stepFast, (int)(0)); + return ret != 0; + } + } + + public static bool InputInt( byte* label, ref int v, int step) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, step, (int)(100), (int)(0)); + return ret != 0; + } + } + + public static bool InputInt( byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputIntNative(label, (int*)pv, (int)(1), (int)(100), (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputInt2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputInt2Native(byte* label, int* v, int flags); + + public static bool InputInt2( byte* label, int* v, int flags) + { + byte ret = InputInt2Native(label, v, flags); + return ret != 0; + } + + public static bool InputInt2( byte* label, int* v) + { + byte ret = InputInt2Native(label, v, (int)(0)); + return ret != 0; + } + + public static bool InputInt2( byte* label, ref int v, int flags) + { + fixed (int* pv = &v) + { + byte ret = InputInt2Native(label, (int*)pv, flags); + return ret != 0; + } + } + + public static bool InputInt2( byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputInt2Native(label, (int*)pv, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputInt3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputInt3Native(byte* label, int* v, int flags); + + public static bool InputInt3( byte* label, int* v, int flags) + { + byte ret = InputInt3Native(label, v, flags); + return ret != 0; + } + + public static bool InputInt3( byte* label, int* v) + { + byte ret = InputInt3Native(label, v, (int)(0)); + return ret != 0; + } + + public static bool InputInt3( byte* label, ref int v, int flags) + { + fixed (int* pv = &v) + { + byte ret = InputInt3Native(label, (int*)pv, flags); + return ret != 0; + } + } + + public static bool InputInt3( byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputInt3Native(label, (int*)pv, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputInt4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputInt4Native(byte* label, int* v, int flags); + + public static bool InputInt4( byte* label, int* v, int flags) + { + byte ret = InputInt4Native(label, v, flags); + return ret != 0; + } + + public static bool InputInt4( byte* label, int* v) + { + byte ret = InputInt4Native(label, v, (int)(0)); + return ret != 0; + } + + public static bool InputInt4( byte* label, ref int v, int flags) + { + fixed (int* pv = &v) + { + byte ret = InputInt4Native(label, (int*)pv, flags); + return ret != 0; + } + } + + public static bool InputInt4( byte* label, ref int v) + { + fixed (int* pv = &v) + { + byte ret = InputInt4Native(label, (int*)pv, (int)(0)); + return ret != 0; } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputDouble")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputDoubleNative(byte* label, double* v, double step, double stepFast, byte* format, int flags); + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, byte* format, int flags) + { + byte ret = InputDoubleNative(label, v, step, stepFast, format, flags); + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, byte* format) + { + byte ret = InputDoubleNative(label, v, step, stepFast, format, (int)(0)); + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast) + { + bool ret = InputDouble(label, v, step, stepFast, (string)"%.6f", (int)(0)); + return ret; + } + + public static bool InputDouble( byte* label, double* v, double step) + { + bool ret = InputDouble(label, v, step, (double)(0.0), (string)"%.6f", (int)(0)); + return ret; + } + + public static bool InputDouble( byte* label, double* v) + { + bool ret = InputDouble(label, v, (double)(0.0), (double)(0.0), (string)"%.6f", (int)(0)); + return ret; + } + + public static bool InputDouble( byte* label, double* v, double step, byte* format) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), format, (int)(0)); + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, byte* format) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), format, (int)(0)); + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, int flags) + { + bool ret = InputDouble(label, v, step, stepFast, (string)"%.6f", flags); + return ret; + } + + public static bool InputDouble( byte* label, double* v, double step, int flags) + { + bool ret = InputDouble(label, v, step, (double)(0.0), (string)"%.6f", flags); + return ret; + } + + public static bool InputDouble( byte* label, double* v, int flags) + { + bool ret = InputDouble(label, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + return ret; + } + + public static bool InputDouble( byte* label, double* v, double step, byte* format, int flags) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), format, flags); + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, byte* format, int flags) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), format, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, byte* format, int flags) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, format, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, byte* format) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, format, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, double stepFast) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, stepFast, (string)"%.6f", (int)(0)); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v, double step) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, (double)(0.0), (string)"%.6f", (int)(0)); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (int)(0)); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, byte* format) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), format, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, byte* format) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), format, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, int flags) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, stepFast, (string)"%.6f", flags); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, int flags) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v, int flags) + { + fixed (double* pv = &v) + { + bool ret = InputDouble(label, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); + return ret; + } + } + + public static bool InputDouble( byte* label, ref double v, double step, byte* format, int flags) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), format, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, ref double v, byte* format, int flags) + { + fixed (double* pv = &v) + { + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), format, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, double step, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, ref byte format) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, (int)(0)); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, double step, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, ref byte format, int flags) + { + fixed (byte* pformat = &format) + { + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; + } + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -40113,52 +35689,37 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + byte ret = InputDoubleNative(label, v, step, stepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + Utils.Free(pStr0); } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, double step, double stepFast, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = InputDoubleNative(label, v, step, stepFast, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -40166,15 +35727,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputDouble( byte* label, double* v, double step, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -40184,52 +35743,37 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) + byte ret = InputDoubleNative(label, v, step, (double)(0.0), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + Utils.Free(pStr0); } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) + return ret != 0; + } + + public static bool InputDouble( byte* label, double* v, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -40237,15 +35781,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputDouble( byte* label, double* v, double step, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -40255,123 +35797,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputDoubleNative(label, v, step, (double)(0.0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -40379,86 +35808,13 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputDouble( byte* label, double* v, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; if (format != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -40468,52 +35824,10 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -40521,147 +35835,81 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { fixed (byte* pformat = &format) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { fixed (byte* pformat = &format) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, (int)(0)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputDouble( byte* label, ref double v, double step, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { fixed (byte* pformat = &format) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, (int)(0)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputDouble( byte* label, ref double v, ref byte format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { fixed (byte* pformat = &format) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (int)(0)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputDouble( byte* label, ref double v, double step, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { fixed (byte* pformat = &format) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputDouble( byte* label, ref double v, ref byte format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { fixed (byte* pformat = &format) { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -40680,28 +35928,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -40710,11 +35937,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputDouble( byte* label, ref double v, double step, double stepFast, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -40733,28 +35958,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -40763,11 +35967,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputDouble( byte* label, ref double v, double step, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -40786,28 +35988,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -40816,11 +35997,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputDouble( byte* label, ref double v, string format) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -40839,28 +36018,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), pStr0, (int)(0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -40869,11 +36027,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputDouble( byte* label, ref double v, double step, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -40892,28 +36048,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -40922,11 +36057,9 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputDouble( byte* label, ref double v, string format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (double* pv = &v) { byte* pStr0 = null; int pStrSize0 = 0; @@ -40945,28 +36078,7 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -40975,429 +36087,146 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputScalar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputScalarNative(byte* label, int dataType, void* pData, void* pStep, void* pStepFast, byte* format, int flags); + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, byte* format, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, byte* format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)(default), (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputScalar( byte* label, int dataType, void* pData) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, byte* format) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputScalar( byte* label, int dataType, void* pData, byte* format) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, int flags) { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)(default), flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, int flags) { - fixed (byte* plabel = &label) + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, int flags) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, byte* format, int flags) + { + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), format, flags); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, byte* format, int flags) + { + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, ref byte format, int flags) + { + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, ref byte format) { - fixed (byte* plabel = &label) + fixed (byte* pformat = &format) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, ref byte format) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool InputScalar( byte* label, int dataType, void* pData, ref byte format) + { + fixed (byte* pformat = &format) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, ref byte format, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* pformat = &format) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + } + + public static bool InputScalar( byte* label, int dataType, void* pData, ref byte format, int flags) + { + fixed (byte* pformat = &format) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -41407,71 +36236,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, void* pStepFast, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -41481,71 +36263,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -41555,71 +36290,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalar( byte* label, int dataType, void* pData, string format) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -41629,71 +36317,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalar( byte* label, int dataType, void* pData, void* pStep, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -41703,71 +36344,24 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalar( byte* label, int dataType, void* pData, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -41777,791 +36371,731 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, vCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputScalarN")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte InputScalarNNative(byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, int flags); + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, format, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, byte* format) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, format, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, byte* format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, byte* format) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), format, (int)(0)); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, int flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, int flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, int flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, byte* format, int flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), format, flags); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, byte* format, int flags) + { + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), format, flags); + return ret != 0; + } + + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format, int flags) + { + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, ref byte format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, ref byte format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, ref byte format) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, ref byte format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, ref byte format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, string format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, void* pStepFast, string format) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, string format) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, string format) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), pStr0, (int)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, void* pStep, string format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool InputScalarN( byte* label, int dataType, void* pData, int components, string format, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret != 0; + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), pStr0, flags); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorEdit3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ColorEdit3Native(byte* label, float* col, int flags); + + public static bool ColorEdit3( byte* label, float* col, int flags) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = ColorEdit3Native(label, col, flags); + return ret != 0; + } + + public static bool ColorEdit3( byte* label, float* col) + { + byte ret = ColorEdit3Native(label, col, (int)(0)); + return ret != 0; + } + + public static bool ColorEdit3( byte* label, ref float col, int flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit3Native(label, (float*)pcol, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool ColorEdit3( byte* label, ref float col) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (float* pcol = &col) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = ColorEdit3Native(label, (float*)pcol, (int)(0)); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool ColorEdit3( byte* label, ref Vector3 col, int flags) { - fixed (byte* plabel = &label) + fixed (Vector3* pcol = &col) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } + byte ret = ColorEdit3Native(label, (float*)pcol, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool ColorEdit3( byte* label, ref Vector3 col) { - fixed (byte* plabel = &label) + fixed (Vector3* pcol = &col) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = ColorEdit3Native(label, (float*)pcol, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorEdit4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ColorEdit4Native(byte* label, float* col, int flags); + + public static bool ColorEdit4( byte* label, float* col, int flags) + { + byte ret = ColorEdit4Native(label, col, flags); + return ret != 0; + } + + public static bool ColorEdit4( byte* label, float* col) + { + byte ret = ColorEdit4Native(label, col, (int)(0)); + return ret != 0; + } + + public static bool ColorEdit4( byte* label, ref float col, int flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorEdit4Native(label, (float*)pcol, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool ColorEdit4( byte* label, ref float col) { - fixed (byte* plabel = &label) + fixed (float* pcol = &col) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = ColorEdit4Native(label, (float*)pcol, (int)(0)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool ColorEdit4( byte* label, ref Vector4 col, int flags) { - fixed (byte* plabel = &label) + fixed (Vector4* pcol = &col) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } + byte ret = ColorEdit4Native(label, (float*)pcol, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool ColorEdit4( byte* label, ref Vector4 col) { - fixed (byte* plabel = &label) + fixed (Vector4* pcol = &col) { - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = ColorEdit4Native(label, (float*)pcol, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorPicker3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ColorPicker3Native(byte* label, float* col, int flags); + + public static bool ColorPicker3( byte* label, float* col, int flags) + { + byte ret = ColorPicker3Native(label, col, flags); + return ret != 0; + } + + public static bool ColorPicker3( byte* label, float* col) + { + byte ret = ColorPicker3Native(label, col, (int)(0)); + return ret != 0; + } + + public static bool ColorPicker3( byte* label, ref float col, int flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + public static bool ColorPicker3( byte* label, ref float col) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, (int)(0)); + return ret != 0; + } + } + + public static bool ColorPicker3( byte* label, ref Vector3 col, int flags) + { + fixed (Vector3* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, flags); + return ret != 0; + } + } + + public static bool ColorPicker3( byte* label, ref Vector3 col) + { + fixed (Vector3* pcol = &col) + { + byte ret = ColorPicker3Native(label, (float*)pcol, (int)(0)); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorPicker4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ColorPicker4Native(byte* label, float* col, int flags, float* refCol); + + public static bool ColorPicker4( byte* label, float* col, int flags, float* refCol) + { + byte ret = ColorPicker4Native(label, col, flags, refCol); + return ret != 0; + } + + public static bool ColorPicker4( byte* label, float* col, int flags) + { + byte ret = ColorPicker4Native(label, col, flags, (float*)(default)); + return ret != 0; + } + + public static bool ColorPicker4( byte* label, float* col) + { + byte ret = ColorPicker4Native(label, col, (int)(0), (float*)(default)); + return ret != 0; + } + + public static bool ColorPicker4( byte* label, float* col, float* refCol) + { + byte ret = ColorPicker4Native(label, col, (int)(0), refCol); + return ret != 0; + } + + public static bool ColorPicker4( byte* label, ref float col, int flags, float* refCol) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref float col, int flags) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref float col) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), (float*)(default)); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref float col, float* refCol) + { + fixed (float* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), refCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref Vector4 col, int flags, float* refCol) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref Vector4 col, int flags) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref Vector4 col) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), (float*)(default)); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref Vector4 col, float* refCol) + { + fixed (Vector4* pcol = &col) + { + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), refCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, float* col, int flags, ref float refCol) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, col, flags, (float*)prefCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, float* col, ref float refCol) + { + fixed (float* prefCol = &refCol) + { + byte ret = ColorPicker4Native(label, col, (int)(0), (float*)prefCol); + return ret != 0; + } + } + + public static bool ColorPicker4( byte* label, ref float col, int flags, ref float refCol) + { + fixed (float* pcol = &col) + { + fixed (float* prefCol = &refCol) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool ColorPicker4( byte* label, ref float col, ref float refCol) { - fixed (byte* plabel = &label) + fixed (float* pcol = &col) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (float* prefCol = &refCol) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), (float*)prefCol); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool ColorPicker4( byte* label, ref Vector4 col, int flags, ref float refCol) { - fixed (byte* plabel = &label) + fixed (Vector4* pcol = &col) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (float* prefCol = &refCol) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool ColorPicker4( byte* label, ref Vector4 col, ref float refCol) { - fixed (byte* plabel = &label) + fixed (Vector4* pcol = &col) { - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (float* prefCol = &refCol) { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } + byte ret = ColorPicker4Native(label, (float*)pcol, (int)(0), (float*)prefCol); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ColorButtonNative(byte* descId, Vector4 col, int flags, Vector2 size); + + public static bool ColorButton( byte* descId, Vector4 col, int flags, Vector2 size) + { + byte ret = ColorButtonNative(descId, col, flags, size); + return ret != 0; + } + + public static bool ColorButton( byte* descId, Vector4 col, int flags) + { + byte ret = ColorButtonNative(descId, col, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + public static bool ColorButton( byte* descId, Vector4 col) + { + byte ret = ColorButtonNative(descId, col, (int)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; + } + + public static bool ColorButton( byte* descId, Vector4 col, Vector2 size) + { + byte ret = ColorButtonNative(descId, col, (int)(0), size); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetColorEditOptions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetColorEditOptionsNative(int flags); + + public static void SetColorEditOptions( int flags) + { + SetColorEditOptionsNative(flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNode_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeNative(byte* label); + + public static bool TreeNode( byte* label) + { + byte ret = TreeNodeNative(label); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNode_StrStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeNative(byte* strId, byte* fmt); + + public static bool TreeNode( byte* strId, byte* fmt) + { + byte ret = TreeNodeNative(strId, fmt); + return ret != 0; + } + + public static bool TreeNode( byte* strId, ref byte fmt) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeNative(strId, (byte*)pfmt); + return ret != 0; + } + } + + public static bool TreeNode( byte* strId, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -42571,71 +37105,53 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = TreeNodeNative(strId, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); + } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNode_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeNative(void* ptrId, byte* fmt); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeV_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeVNative(byte* strId, byte* fmt, nuint args); + + public static bool TreeNodeV( byte* strId, byte* fmt, nuint args) + { + byte ret = TreeNodeVNative(strId, fmt, args); + return ret != 0; + } + + public static bool TreeNodeV( byte* strId, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + byte ret = TreeNodeVNative(strId, (byte*)pfmt, args); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool TreeNodeV( byte* strId, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -42645,293 +37161,72 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = TreeNodeVNative(strId, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeV_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeVNative(void* ptrId, byte* fmt, nuint args); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeEx_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeExNative(byte* label, int flags); + + public static bool TreeNodeEx( byte* label, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = TreeNodeExNative(label, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + public static bool TreeNodeEx( byte* label) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = TreeNodeExNative(label, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeEx_StrStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeExNative(byte* strId, int flags, byte* fmt); + + public static bool TreeNodeEx( byte* strId, int flags, byte* fmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = TreeNodeExNative(strId, flags, fmt); + return ret != 0; + } + + public static bool TreeNodeEx( byte* strId, int flags, ref byte fmt) + { + fixed (byte* pfmt = &fmt) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = TreeNodeExNative(strId, flags, (byte*)pfmt); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool TreeNodeEx( byte* strId, int flags, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -42941,145 +37236,53 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = TreeNodeExNative(strId, flags, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeEx_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeExNative(void* ptrId, int flags, byte* fmt); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeExV_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeExVNative(byte* strId, int flags, byte* fmt, nuint args); + + public static bool TreeNodeExV( byte* strId, int flags, byte* fmt, nuint args) + { + byte ret = TreeNodeExVNative(strId, flags, fmt, args); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool TreeNodeExV( byte* strId, int flags, ref byte fmt, nuint args) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMax = &vCurrentMax) + fixed (byte* pfmt = &fmt) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = TreeNodeExVNative(strId, flags, (byte*)pfmt, args); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] float* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool TreeNodeExV( byte* strId, int flags, string fmt, nuint args) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (fmt != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(fmt); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -43089,156146 +37292,1349 @@ public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (float* pvCurrentMax = &vCurrentMax) + byte ret = TreeNodeExVNative(strId, flags, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, vCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeExV_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeExVNative(void* ptrId, int flags, byte* fmt, nuint args); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreePush_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TreePushNative(byte* strId); + + public static void TreePush( byte* strId) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } + TreePushNative(strId); } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreePush_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TreePushNative(void* ptrId); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreePop")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TreePopNative(); + + public static void TreePop() { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } + TreePopNative(); } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTreeNodeToLabelSpacing")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetTreeNodeToLabelSpacingNative(); + + public static float GetTreeNodeToLabelSpacing() { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } + float ret = GetTreeNodeToLabelSpacingNative(); + return ret; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCollapsingHeader_TreeNodeFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CollapsingHeaderNative(byte* label, int flags); + + public static bool CollapsingHeader( byte* label, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } + byte ret = CollapsingHeaderNative(label, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) + public static bool CollapsingHeader( byte* label) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } + byte ret = CollapsingHeaderNative(label, (int)(0)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCollapsingHeader_BoolPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CollapsingHeaderNative(byte* label, byte* pVisible, int flags); + + public static bool CollapsingHeader( byte* label, byte* pVisible, int flags) { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } + byte ret = CollapsingHeaderNative(label, pVisible, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool CollapsingHeader( byte* label, byte* pVisible) { - fixed (float* pvCurrentMin = &vCurrentMin) + byte ret = CollapsingHeaderNative(label, pVisible, (int)(0)); + return ret != 0; + } + + public static bool CollapsingHeader( byte* label, ref byte pVisible, int flags) + { + fixed (byte* ppVisible = &pVisible) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } + byte ret = CollapsingHeaderNative(label, (byte*)ppVisible, flags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + public static bool CollapsingHeader( byte* label, ref byte pVisible) { - fixed (float* pvCurrentMin = &vCurrentMin) + fixed (byte* ppVisible = &pVisible) { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragFloatRange2Native(label, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragFloatRange2Native((byte*)plabel, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, vMin, (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, vSpeed, (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragFloatRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragFloatRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "float*")] ref float vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvCurrentMin = &vCurrentMin) - { - fixed (float* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragFloatRange2Native(pStr0, (float*)pvCurrentMin, (float*)pvCurrentMax, (float)(1.0f), (float)(0.0f), (float)(0.0f), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragInt")] - internal static extern byte DragIntNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = DragInt(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - bool ret = DragInt(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - bool ret = DragInt(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v) - { - bool ret = DragInt(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - bool ret = DragInt(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = DragInt(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntNative(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntNative((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// If v_min >= v_max we have no bound /// [NativeName(NativeNameType.Func, "igDragInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntNative(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragInt2")] - internal static extern byte DragInt2Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = DragInt2(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - bool ret = DragInt2(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - bool ret = DragInt2(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v) - { - bool ret = DragInt2(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - bool ret = DragInt2(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = DragInt2(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt2(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt2((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt2(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt2(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt2((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt2(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt2Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt2Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt2Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragInt3")] - internal static extern byte DragInt3Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = DragInt3(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - bool ret = DragInt3(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - bool ret = DragInt3(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v) - { - bool ret = DragInt3(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - bool ret = DragInt3(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = DragInt3(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt3(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt3((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt3(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt3(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt3((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt3(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt3Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt3Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt3Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragInt4")] - internal static extern byte DragInt4Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = DragInt4(label, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - bool ret = DragInt4(label, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - bool ret = DragInt4(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v) - { - bool ret = DragInt4(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - bool ret = DragInt4(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = DragInt4(label, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragInt4(label, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragInt4((byte*)plabel, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragInt4(pStr0, v, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = DragInt4(label, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = DragInt4((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = DragInt4(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, v, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, v, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, v, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, vSpeed, (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragInt4Native(label, (int*)pv, (float)(1.0f), vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, vSpeed, (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, (int)(0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = DragInt4Native((byte*)plabel, (int*)pv, (float)(1.0f), vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, vSpeed, (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), (int)(0), (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, (int)(0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragInt4Native(pStr0, (int*)pv, (float)(1.0f), vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragIntRange2")] - internal static extern byte DragIntRange2Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = DragIntRange2(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = DragIntRange2(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - bool ret = DragIntRange2(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (string)"%d", (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, formatMax, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)(default), flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, formatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, (byte*)(default), flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] byte* formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, formatMax, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (formatMax != null) - { - pStrSize0 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(formatMax, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, format, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, vCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] int* vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, vCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (formatMax != null) - { - pStrSize1 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(formatMax, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragIntRange2Native(label, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] ref byte formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - fixed (byte* pformat = &format) - { - fixed (byte* pformatMax = &formatMax) - { - byte ret = DragIntRange2Native((byte*)plabel, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, (byte*)pformat, (byte*)pformatMax, flags); - return ret != 0; - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, (ImGuiSliderFlags)(0)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, vSpeed, (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), (int)(0), (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, (int)(0), pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragIntRange2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragIntRange2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_current_min")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMin, [NativeName(NativeNameType.Param, "v_current_max")] [NativeName(NativeNameType.Type, "int*")] ref int vCurrentMax, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "format_max")] [NativeName(NativeNameType.Type, "const char*")] string formatMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pvCurrentMin = &vCurrentMin) - { - fixed (int* pvCurrentMax = &vCurrentMax) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (formatMax != null) - { - pStrSize2 = Utils.GetByteCountUTF8(formatMax); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(formatMax, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = DragIntRange2Native(pStr0, (int*)pvCurrentMin, (int*)pvCurrentMax, (float)(1.0f), vMin, vMax, pStr1, pStr2, flags); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragScalar")] - internal static extern byte DragScalarNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNative(label, dataType, pData, (float)(1.0f), pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNative((byte*)plabel, dataType, pData, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, pMin, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, vSpeed, (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNative(pStr0, dataType, pData, (float)(1.0f), pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragScalarN")] - internal static extern byte DragScalarNNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DragScalarNNative(label, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = DragScalarNNative((byte*)plabel, dataType, pData, components, (float)(1.0f), pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, pMin, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, vSpeed, (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDragScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = DragScalarNNative(pStr0, dataType, pData, components, (float)(1.0f), pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderFloat")] - internal static extern byte SliderFloatNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderFloatNative(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderFloatNative(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - bool ret = SliderFloat(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = SliderFloat(label, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat(pStr0, v, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = SliderFloat(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = SliderFloat(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloatNative(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloatNative(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloatNative((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. /// [NativeName(NativeNameType.Func, "igSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloatNative(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderFloat2")] - internal static extern byte SliderFloat2Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderFloat2Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderFloat2Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - bool ret = SliderFloat2(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = SliderFloat2(label, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat2((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat2((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat2(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat2(pStr0, v, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (Vector2* pv = &v) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (Vector2* pv = &v) - { - bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - bool ret = SliderFloat2(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat2((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = SliderFloat2(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = SliderFloat2(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat2Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat2Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat2Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat2Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderFloat3")] - internal static extern byte SliderFloat3Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderFloat3Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderFloat3Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - bool ret = SliderFloat3(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = SliderFloat3(label, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat3((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat3((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat3(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat3(pStr0, v, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (Vector3* pv = &v) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (Vector3* pv = &v) - { - bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - bool ret = SliderFloat3(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat3((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = SliderFloat3(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = SliderFloat3(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat3Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat3Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat3Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat3Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderFloat4")] - internal static extern byte SliderFloat4Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderFloat4Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderFloat4Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - bool ret = SliderFloat4(label, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = SliderFloat4(label, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat4((byte*)plabel, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderFloat4((byte*)plabel, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat4(pStr0, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderFloat4(pStr0, v, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (Vector4* pv = &v) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (Vector4* pv = &v) - { - bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - bool ret = SliderFloat4(label, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = SliderFloat4((byte*)plabel, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = SliderFloat4(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = SliderFloat4(pStr0, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat4Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderFloat4Native(label, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderFloat4Native((byte*)plabel, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderFloat4Native(pStr0, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderAngle")] - internal static extern byte SliderAngleNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax) - { - bool ret = SliderAngle(label, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin) - { - bool ret = SliderAngle(label, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad) - { - bool ret = SliderAngle(label, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = SliderAngle(label, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = SliderAngle(label, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = SliderAngle(label, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderAngle((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderAngle(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - bool ret = SliderAngle(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (string)"%.0f deg", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, vDegreesMin, (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, vRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, vRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, vDegreesMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, vDegreesMin, (float)(+360.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] float* vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, vRad, (float)(-360.0f), (float)(+360.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, vDegreesMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pvRad = &vRad) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderAngleNative(label, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, vDegreesMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, vDegreesMin, (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pvRad = &vRad) - { - fixed (byte* pformat = &format) - { - byte ret = SliderAngleNative((byte*)plabel, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "v_degrees_max")] [NativeName(NativeNameType.Type, "float")] float vDegreesMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, vDegreesMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "v_degrees_min")] [NativeName(NativeNameType.Type, "float")] float vDegreesMin, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, vDegreesMin, (float)(+360.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderAngle")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderAngle([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v_rad")] [NativeName(NativeNameType.Type, "float*")] ref float vRad, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvRad = &vRad) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderAngleNative(pStr0, (float*)pvRad, (float)(-360.0f), (float)(+360.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderInt")] - internal static extern byte SliderIntNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderIntNative(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderIntNative(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = SliderInt(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = SliderInt(label, v, vMin, vMax, (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt(pStr0, v, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = SliderInt(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = SliderInt(label, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderIntNative(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderIntNative(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderIntNative(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderIntNative((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderIntNative(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderInt2")] - internal static extern byte SliderInt2Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderInt2Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderInt2Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = SliderInt2(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = SliderInt2(label, v, vMin, vMax, (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt2((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt2((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt2(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt2(pStr0, v, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = SliderInt2(label, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt2((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt2(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt2(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt2Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt2Native(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt2Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt2Native(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderInt3")] - internal static extern byte SliderInt3Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderInt3Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderInt3Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = SliderInt3(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = SliderInt3(label, v, vMin, vMax, (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt3((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt3((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt3(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt3(pStr0, v, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = SliderInt3(label, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt3((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt3(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt3(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt3Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt3Native(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt3Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt3Native(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderInt4")] - internal static extern byte SliderInt4Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderInt4Native(label, v, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderInt4Native(label, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = SliderInt4(label, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = SliderInt4(label, v, vMin, vMax, (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt4((byte*)plabel, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = SliderInt4((byte*)plabel, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt4(pStr0, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = SliderInt4(pStr0, v, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = SliderInt4(label, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = SliderInt4((byte*)plabel, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt4(pStr0, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = SliderInt4(pStr0, (int*)pv, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(label, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(label, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(label, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt4Native(pStr0, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderInt4Native(label, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = SliderInt4Native((byte*)plabel, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderInt4Native(pStr0, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderScalar")] - internal static extern byte SliderScalarNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNative(label, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNative((byte*)plabel, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderScalarNative(pStr0, dataType, pData, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderScalarN")] - internal static extern byte SliderScalarNNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SliderScalarNNative(label, dataType, pData, components, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = SliderScalarNNative((byte*)plabel, dataType, pData, components, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSliderScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = SliderScalarNNative(pStr0, dataType, pData, components, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igVSliderFloat")] - internal static extern byte VSliderFloatNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - bool ret = VSliderFloat(label, size, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = VSliderFloat(label, size, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (byte* plabel = &label) - { - bool ret = VSliderFloat((byte*)plabel, size, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = VSliderFloat((byte*)plabel, size, v, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = VSliderFloat(pStr0, size, v, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = VSliderFloat(pStr0, size, v, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (float* pv = &v) - { - bool ret = VSliderFloat(label, size, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - bool ret = VSliderFloat(label, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = VSliderFloat((byte*)plabel, size, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = VSliderFloat((byte*)plabel, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = VSliderFloat(pStr0, size, (float*)pv, vMin, vMax, (string)"%.3f", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = VSliderFloat(pStr0, size, (float*)pv, vMin, vMax, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(label, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderFloatNative(label, size, (float*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderFloatNative((byte*)plabel, size, (float*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "float")] float vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "float")] float vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderFloatNative(pStr0, size, (float*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igVSliderInt")] - internal static extern byte VSliderIntNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = VSliderIntNative(label, size, v, vMin, vMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = VSliderIntNative(label, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - bool ret = VSliderInt(label, size, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - bool ret = VSliderInt(label, size, v, vMin, vMax, (string)"%d", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - bool ret = VSliderInt((byte*)plabel, size, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = VSliderInt((byte*)plabel, size, v, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = VSliderInt(pStr0, size, v, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = VSliderInt(pStr0, size, v, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (int* pv = &v) - { - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (int* pv = &v) - { - bool ret = VSliderInt(label, size, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - bool ret = VSliderInt(label, size, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = VSliderInt((byte*)plabel, size, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - bool ret = VSliderInt((byte*)plabel, size, (int*)pv, vMin, vMax, (string)"%d", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = VSliderInt(pStr0, size, (int*)pv, vMin, vMax, (string)"%d", (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - bool ret = VSliderInt(pStr0, size, (int*)pv, vMin, vMax, (string)"%d", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(label, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(label, size, v, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(label, size, v, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, v, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderIntNative(pStr0, size, v, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (int* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderIntNative(label, size, (int*)pv, vMin, vMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderIntNative((byte*)plabel, size, (int*)pv, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "v_min")] [NativeName(NativeNameType.Type, "int")] int vMin, [NativeName(NativeNameType.Param, "v_max")] [NativeName(NativeNameType.Type, "int")] int vMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderIntNative(pStr0, size, (int*)pv, vMin, vMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igVSliderScalar")] - internal static extern byte VSliderScalarNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, format, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)(default), (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = VSliderScalarNative(label, size, dataType, pData, pMin, pMax, pStr0, (ImGuiSliderFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = VSliderScalarNative((byte*)plabel, size, dataType, pData, pMin, pMax, (byte*)pformat, (ImGuiSliderFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igVSliderScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool VSliderScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = VSliderScalarNative(pStr0, size, dataType, pData, pMin, pMax, pStr1, (ImGuiSliderFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputText")] - internal static extern byte InputTextNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, flags, callback, userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte ret = InputTextNative(label, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputTextNative(label, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextNative(label, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextNative((byte*)plabel, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative(label, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextNative(label, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextNative((byte*)plabel, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputText([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextNative(pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputTextMultiline")] - internal static extern byte InputTextMultilineNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, callback, userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextMultilineNative(label, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextMultilineNative((byte*)plabel, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(pStr0, buf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative(label, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextMultilineNative(label, pStr0, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextMultilineNative((byte*)plabel, (byte*)pbuf, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, size, (ImGuiInputTextFlags)(0), callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), (ImGuiInputTextFlags)(0), callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextMultiline")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextMultiline([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextMultilineNative(pStr0, pStr1, bufSize, (Vector2)(new Vector2(0,0)), flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputTextWithHint")] - internal static extern byte InputTextWithHintNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextWithHintNative(label, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, buf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextWithHintNative(label, hint, pStr0, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, hint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(pStr0, hint, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative(label, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) - { - pStrSize0 = Utils.GetByteCountUTF8(hint); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextWithHintNative(label, pStr0, pStr1, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, userData); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, callback, (void*)(default)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextWithHintNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextWithHint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextWithHint([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextWithHintNative(pStr0, pStr1, pStr2, bufSize, (ImGuiInputTextFlags)(0), callback, userData); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputFloat")] - internal static extern byte InputFloatNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputFloatNative(label, v, step, stepFast, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputFloatNative(label, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast) - { - bool ret = InputFloat(label, v, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step) - { - bool ret = InputFloat(label, v, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v) - { - bool ret = InputFloat(label, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputFloatNative(label, v, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - bool ret = InputFloat(label, v, step, stepFast, (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - bool ret = InputFloat(label, v, step, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - bool ret = InputFloat(label, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputFloatNative(label, v, step, (float)(0.0f), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, step, stepFast, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, step, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, stepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, step, stepFast, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, step, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat(pStr0, v, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, step, stepFast, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat(label, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, stepFast, (string)"%.3f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, step, stepFast, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, step, (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, step, stepFast, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, step, (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - bool ret = InputFloat(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, step, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, v, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, v, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, stepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, step, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, v, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, step, (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloatNative(label, (float*)pv, (float)(0.0f), (float)(0.0f), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, step, (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloatNative((byte*)plabel, (float*)pv, (float)(0.0f), (float)(0.0f), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "float")] float stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "float")] float step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, step, (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float*")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloatNative(pStr0, (float*)pv, (float)(0.0f), (float)(0.0f), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputFloat2")] - internal static extern byte InputFloat2Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputFloat2Native(label, v, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputFloat2Native(label, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v) - { - bool ret = InputFloat2(label, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - bool ret = InputFloat2(label, v, (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat2Native((byte*)plabel, v, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat2Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat2((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat2((byte*)plabel, v, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(pStr0, v, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(pStr0, v, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat2(pStr0, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat2(pStr0, v, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloat2Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloat2Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v) - { - fixed (float* pv = &v) - { - bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (Vector2* pv = &v) - { - byte ret = InputFloat2Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (Vector2* pv = &v) - { - byte ret = InputFloat2Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v) - { - fixed (Vector2* pv = &v) - { - bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (Vector2* pv = &v) - { - bool ret = InputFloat2(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat2((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = InputFloat2Native(pStr0, (float*)pv, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte ret = InputFloat2Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = InputFloat2(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - bool ret = InputFloat2(pStr0, (float*)pv, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(label, v, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(label, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(label, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat2Native(pStr0, v, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat2Native(pStr0, v, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(label, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (Vector2* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat2Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat2Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat2Native(pStr0, (float*)pv, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[2]")] ref Vector2 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat2Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputFloat3")] - internal static extern byte InputFloat3Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputFloat3Native(label, v, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputFloat3Native(label, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v) - { - bool ret = InputFloat3(label, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - bool ret = InputFloat3(label, v, (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat3Native((byte*)plabel, v, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat3Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat3((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat3((byte*)plabel, v, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(pStr0, v, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(pStr0, v, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat3(pStr0, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat3(pStr0, v, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloat3Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloat3Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v) - { - fixed (float* pv = &v) - { - bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (Vector3* pv = &v) - { - byte ret = InputFloat3Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (Vector3* pv = &v) - { - byte ret = InputFloat3Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v) - { - fixed (Vector3* pv = &v) - { - bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (Vector3* pv = &v) - { - bool ret = InputFloat3(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat3((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = InputFloat3Native(pStr0, (float*)pv, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte ret = InputFloat3Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = InputFloat3(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - bool ret = InputFloat3(pStr0, (float*)pv, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(label, v, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(label, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(label, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat3Native(pStr0, v, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat3Native(pStr0, v, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(label, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (Vector3* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat3Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat3Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat3Native(pStr0, (float*)pv, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat3Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputFloat4")] - internal static extern byte InputFloat4Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputFloat4Native(label, v, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputFloat4Native(label, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v) - { - bool ret = InputFloat4(label, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - bool ret = InputFloat4(label, v, (string)"%.3f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat4Native((byte*)plabel, v, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputFloat4Native((byte*)plabel, v, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat4((byte*)plabel, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputFloat4((byte*)plabel, v, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(pStr0, v, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(pStr0, v, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat4(pStr0, v, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputFloat4(pStr0, v, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - byte ret = InputFloat4Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (float* pv = &v) - { - byte ret = InputFloat4Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v) - { - fixed (float* pv = &v) - { - bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (Vector4* pv = &v) - { - byte ret = InputFloat4Native(label, (float*)pv, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (Vector4* pv = &v) - { - byte ret = InputFloat4Native(label, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v) - { - fixed (Vector4* pv = &v) - { - bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (Vector4* pv = &v) - { - bool ret = InputFloat4(label, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - bool ret = InputFloat4((byte*)plabel, (float*)pv, (string)"%.3f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = InputFloat4Native(pStr0, (float*)pv, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte ret = InputFloat4Native(pStr0, (float*)pv, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = InputFloat4(pStr0, (float*)pv, (string)"%.3f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - bool ret = InputFloat4(pStr0, (float*)pv, (string)"%.3f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(label, v, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(label, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(label, v, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(label, v, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, v, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat4Native(pStr0, v, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] float* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat4Native(pStr0, v, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native(label, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(label, (float*)pv, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (Vector4* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputFloat4Native(label, (float*)pv, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref float v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (float* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputFloat4Native((byte*)plabel, (float*)pv, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat4Native(pStr0, (float*)pv, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputFloat4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputFloat4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputFloat4Native(pStr0, (float*)pv, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputInt")] - internal static extern byte InputIntNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputIntNative(label, v, step, stepFast, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast) - { - byte ret = InputIntNative(label, v, step, stepFast, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step) - { - byte ret = InputIntNative(label, v, step, (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v) - { - byte ret = InputIntNative(label, v, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputIntNative(label, v, step, (int)(100), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputIntNative(label, v, (int)(1), (int)(100), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, step, stepFast, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, step, stepFast, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, step, (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, step, (int)(100), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputIntNative((byte*)plabel, v, (int)(1), (int)(100), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, step, stepFast, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, step, stepFast, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, step, (int)(100), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, step, (int)(100), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputIntNative(pStr0, v, (int)(1), (int)(100), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, step, stepFast, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, step, stepFast, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, step, (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, step, (int)(100), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative(label, (int*)pv, (int)(1), (int)(100), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, stepFast, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, stepFast, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, step, (int)(100), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputIntNative((byte*)plabel, (int*)pv, (int)(1), (int)(100), flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, step, stepFast, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "int")] int stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, step, stepFast, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, step, (int)(100), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, (int)(1), (int)(100), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "int")] int step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, step, (int)(100), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int*")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputIntNative(pStr0, (int*)pv, (int)(1), (int)(100), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputInt2")] - internal static extern byte InputInt2Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputInt2Native(label, v, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v) - { - byte ret = InputInt2Native(label, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt2Native((byte*)plabel, v, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt2Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt2Native(pStr0, v, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt2Native(pStr0, v, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputInt2Native(label, (int*)pv, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v) - { - fixed (int* pv = &v) - { - byte ret = InputInt2Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt2Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt2Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt2Native(pStr0, (int*)pv, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt2([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[2]")] ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt2Native(pStr0, (int*)pv, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputInt3")] - internal static extern byte InputInt3Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputInt3Native(label, v, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v) - { - byte ret = InputInt3Native(label, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt3Native((byte*)plabel, v, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt3Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt3Native(pStr0, v, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt3Native(pStr0, v, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputInt3Native(label, (int*)pv, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v) - { - fixed (int* pv = &v) - { - byte ret = InputInt3Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt3Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt3Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt3Native(pStr0, (int*)pv, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[3]")] ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt3Native(pStr0, (int*)pv, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputInt4")] - internal static extern byte InputInt4Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputInt4Native(label, v, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v) - { - byte ret = InputInt4Native(label, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt4Native((byte*)plabel, v, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v) - { - fixed (byte* plabel = &label) - { - byte ret = InputInt4Native((byte*)plabel, v, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt4Native(pStr0, v, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] int* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputInt4Native(pStr0, v, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (int* pv = &v) - { - byte ret = InputInt4Native(label, (int*)pv, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v) - { - fixed (int* pv = &v) - { - byte ret = InputInt4Native(label, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt4Native((byte*)plabel, (int*)pv, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v) - { - fixed (byte* plabel = &label) - { - fixed (int* pv = &v) - { - byte ret = InputInt4Native((byte*)plabel, (int*)pv, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt4Native(pStr0, (int*)pv, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputInt4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputInt4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int[4]")] ref int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pv = &v) - { - byte ret = InputInt4Native(pStr0, (int*)pv, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputDouble")] - internal static extern byte InputDoubleNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputDoubleNative(label, v, step, stepFast, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputDoubleNative(label, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast) - { - bool ret = InputDouble(label, v, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step) - { - bool ret = InputDouble(label, v, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v) - { - bool ret = InputDouble(label, v, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputDoubleNative(label, v, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - bool ret = InputDouble(label, v, step, stepFast, (string)"%.6f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - bool ret = InputDouble(label, v, step, (double)(0.0), (string)"%.6f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - bool ret = InputDouble(label, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputDoubleNative(label, v, step, (double)(0.0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, step, stepFast, (string)"%.6f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, step, (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - bool ret = InputDouble((byte*)plabel, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, stepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, stepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, step, stepFast, (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, step, (double)(0.0), (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - bool ret = InputDouble(pStr0, v, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, step, stepFast, (string)"%.6f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - bool ret = InputDouble(label, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, stepFast, (string)"%.6f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - bool ret = InputDouble((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), format, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, step, stepFast, (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, step, (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, step, stepFast, (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, step, (double)(0.0), (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - bool ret = InputDouble(pStr0, (double*)pv, (double)(0.0), (double)(0.0), (string)"%.6f", flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, step, (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, v, (double)(0.0), (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, v, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, stepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, step, (double)(0.0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] double* v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, v, (double)(0.0), (double)(0.0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, step, stepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, step, (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (double* pv = &v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputDoubleNative(label, (double*)pv, (double)(0.0), (double)(0.0), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, stepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, step, (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (double* pv = &v) - { - fixed (byte* pformat = &format) - { - byte ret = InputDoubleNative((byte*)plabel, (double*)pv, (double)(0.0), (double)(0.0), (byte*)pformat, flags); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "step_fast")] [NativeName(NativeNameType.Type, "double")] double stepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, step, stepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "step")] [NativeName(NativeNameType.Type, "double")] double step, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, step, (double)(0.0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputDouble")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputDouble([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "double*")] ref double v, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (double* pv = &v) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputDoubleNative(pStr0, (double*)pv, (double)(0.0), (double)(0.0), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputScalar")] - internal static extern byte InputScalarNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, pStep, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNative(label, dataType, pData, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNative((byte*)plabel, dataType, pData, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, pStepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, pStep, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalar([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNative(pStr0, dataType, pData, (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputScalarN")] - internal static extern byte InputScalarNNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), format, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), format, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), format, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, pStepFast, pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), pStr0, (ImGuiInputTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, pStep, (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputScalarNNative(label, dataType, pData, components, (void*)(default), (void*)(default), pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, pStepFast, (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, (ImGuiInputTextFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, pStep, (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = InputScalarNNative((byte*)plabel, dataType, pData, components, (void*)(default), (void*)(default), (byte*)pformat, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "p_step_fast")] [NativeName(NativeNameType.Type, "const void*")] void* pStepFast, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, pStepFast, pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), pStr1, (ImGuiInputTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "p_step")] [NativeName(NativeNameType.Type, "const void*")] void* pStep, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, pStep, (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputScalarN")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputScalarN([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputScalarNNative(pStr0, dataType, pData, components, (void*)(default), (void*)(default), pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorEdit3")] - internal static extern byte ColorEdit3Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags); - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte ret = ColorEdit3Native(label, col, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col) - { - byte ret = ColorEdit3Native(label, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ColorEdit3Native((byte*)plabel, col, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col) - { - fixed (byte* plabel = &label) - { - byte ret = ColorEdit3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorEdit3Native(pStr0, col, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorEdit3Native(pStr0, col, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref float col) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (Vector3* pcol = &col) - { - byte ret = ColorEdit3Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 col) - { - fixed (Vector3* pcol = &col) - { - byte ret = ColorEdit3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref float col) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pcol = &col) - { - byte ret = ColorEdit3Native(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pcol = &col) - { - byte ret = ColorEdit3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorEdit4")] - internal static extern byte ColorEdit4Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags); - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte ret = ColorEdit4Native(label, col, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col) - { - byte ret = ColorEdit4Native(label, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ColorEdit4Native((byte*)plabel, col, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col) - { - fixed (byte* plabel = &label) - { - byte ret = ColorEdit4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorEdit4Native(pStr0, col, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorEdit4Native(pStr0, col, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorEdit4Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorEdit4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorEdit4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorEdit4Native(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorEdit4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorEdit4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorEdit4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorPicker3")] - internal static extern byte ColorPicker3Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags); - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte ret = ColorPicker3Native(label, col, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col) - { - byte ret = ColorPicker3Native(label, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker3Native((byte*)plabel, col, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker3Native((byte*)plabel, col, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker3Native(pStr0, col, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] float* col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker3Native(pStr0, col, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref float col) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (Vector3* pcol = &col) - { - byte ret = ColorPicker3Native(label, (float*)pcol, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 col) - { - fixed (Vector3* pcol = &col) - { - byte ret = ColorPicker3Native(label, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, flags); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref float col) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker3Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pcol = &col) - { - byte ret = ColorPicker3Native(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker3")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker3([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[3]")] ref Vector3 col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector3* pcol = &col) - { - byte ret = ColorPicker3Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorPicker4")] - internal static extern byte ColorPicker4Native([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol); - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - byte ret = ColorPicker4Native(label, col, flags, refCol); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte ret = ColorPicker4Native(label, col, flags, (float*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col) - { - byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, flags, refCol); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - fixed (byte* plabel = &label) - { - byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker4Native(pStr0, col, flags, refCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker4Native(pStr0, col, flags, (float*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), (float*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), refCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, refCol); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, refCol); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, refCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), refCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, col, flags, (float*)prefCol); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, col, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, col, flags, (float*)prefCol); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, col, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(pStr0, col, flags, (float*)prefCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] float* col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(pStr0, col, (ImGuiColorEditFlags)(0), (float*)prefCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - fixed (Vector4* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, (float*)pcol, flags, (float*)prefCol); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - fixed (Vector4* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(label, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, flags, (float*)prefCol); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref float col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - fixed (byte* plabel = &label) - { - fixed (float* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native((byte*)plabel, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, flags, (float*)prefCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igColorPicker4")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorPicker4([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "float[4]")] ref Vector4 col, [NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcol = &col) - { - fixed (float* prefCol = &refCol) - { - byte ret = ColorPicker4Native(pStr0, (float*)pcol, (ImGuiColorEditFlags)(0), (float*)prefCol); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorButton")] - internal static extern byte ColorButtonNative([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] byte* descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size); - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] byte* descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = ColorButtonNative(descId, col, flags, size); - return ret != 0; - } - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] byte* descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte ret = ColorButtonNative(descId, col, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] byte* descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col) - { - byte ret = ColorButtonNative(descId, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] byte* descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = ColorButtonNative(descId, col, (ImGuiColorEditFlags)(0), size); - return ret != 0; - } - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* pdescId = &descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, flags, size); - return ret != 0; - } - } - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (byte* pdescId = &descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col) - { - fixed (byte* pdescId = &descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* pdescId = &descId) - { - byte ret = ColorButtonNative((byte*)pdescId, col, (ImGuiColorEditFlags)(0), size); - return ret != 0; - } - } - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] string descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (descId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(descId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorButtonNative(pStr0, col, flags, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] string descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (descId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(descId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorButtonNative(pStr0, col, flags, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] string descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (descId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(descId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorButtonNative(pStr0, col, (ImGuiColorEditFlags)(0), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// display a color squarebutton, hover for details, return true when pressed. /// [NativeName(NativeNameType.Func, "igColorButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ColorButton([NativeName(NativeNameType.Param, "desc_id")] [NativeName(NativeNameType.Type, "const char*")] string descId, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (descId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(descId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(descId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ColorButtonNative(pStr0, col, (ImGuiColorEditFlags)(0), size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetColorEditOptions")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetColorEditOptions")] - internal static extern void SetColorEditOptionsNative([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags); - - /// /// initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls. /// [NativeName(NativeNameType.Func, "igSetColorEditOptions")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetColorEditOptions([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - SetColorEditOptionsNative(flags); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNode_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNode_Str")] - internal static extern byte TreeNodeNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); - - [NativeName(NativeNameType.Func, "igTreeNode_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = TreeNodeNative(label); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNode_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = TreeNodeNative((byte*)plabel); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNode_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNode_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNode_StrStr")] - internal static extern byte TreeNodeNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); - - /// /// helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). /// [NativeName(NativeNameType.Func, "igTreeNode_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - byte ret = TreeNodeNative(strId, fmt); - return ret != 0; - } - - /// /// helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). /// [NativeName(NativeNameType.Func, "igTreeNode_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - fixed (byte* pstrId = &strId) - { - byte ret = TreeNodeNative((byte*)pstrId, fmt); - return ret != 0; - } - } - - /// /// helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). /// [NativeName(NativeNameType.Func, "igTreeNode_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeNative(pStr0, fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). /// [NativeName(NativeNameType.Func, "igTreeNode_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeNative(strId, (byte*)pfmt); - return ret != 0; - } - } - - /// /// helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). /// [NativeName(NativeNameType.Func, "igTreeNode_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeNative(strId, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). /// [NativeName(NativeNameType.Func, "igTreeNode_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeNative((byte*)pstrId, (byte*)pfmt); - return ret != 0; - } - } - } - - /// /// helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). /// [NativeName(NativeNameType.Func, "igTreeNode_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TreeNodeNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNode_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNode_Ptr")] - internal static extern byte TreeNodeNative([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); - - /// /// " /// [NativeName(NativeNameType.Func, "igTreeNode_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - byte ret = TreeNodeNative(ptrId, fmt); - return ret != 0; - } - - /// /// " /// [NativeName(NativeNameType.Func, "igTreeNode_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeNative(ptrId, (byte*)pfmt); - return ret != 0; - } - } - - /// /// " /// [NativeName(NativeNameType.Func, "igTreeNode_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNode([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeNative(ptrId, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNodeV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNodeV_Str")] - internal static extern byte TreeNodeVNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "igTreeNodeV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte ret = TreeNodeVNative(strId, fmt, args); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pstrId = &strId) - { - byte ret = TreeNodeVNative((byte*)pstrId, fmt, args); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeVNative(pStr0, fmt, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeVNative(strId, (byte*)pfmt, args); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeVNative(strId, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeVNative((byte*)pstrId, (byte*)pfmt, args); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TreeNodeVNative(pStr0, pStr1, args); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNodeV_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNodeV_Ptr")] - internal static extern byte TreeNodeVNative([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "igTreeNodeV_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeV([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte ret = TreeNodeVNative(ptrId, fmt, args); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeV_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeV([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeVNative(ptrId, (byte*)pfmt, args); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeV_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeV([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeVNative(ptrId, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNodeEx_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNodeEx_Str")] - internal static extern byte TreeNodeExNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags); - - [NativeName(NativeNameType.Func, "igTreeNodeEx_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - byte ret = TreeNodeExNative(label, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = TreeNodeExNative(label, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = TreeNodeExNative((byte*)plabel, flags); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = TreeNodeExNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative(pStr0, (ImGuiTreeNodeFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNodeEx_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNodeEx_StrStr")] - internal static extern byte TreeNodeExNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); - - [NativeName(NativeNameType.Func, "igTreeNodeEx_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - byte ret = TreeNodeExNative(strId, flags, fmt); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - fixed (byte* pstrId = &strId) - { - byte ret = TreeNodeExNative((byte*)pstrId, flags, fmt); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative(pStr0, flags, fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExNative(strId, flags, (byte*)pfmt); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative(strId, flags, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExNative((byte*)pstrId, flags, (byte*)pfmt); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_StrStr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TreeNodeExNative(pStr0, flags, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNodeEx_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNodeEx_Ptr")] - internal static extern byte TreeNodeExNative([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); - - [NativeName(NativeNameType.Func, "igTreeNodeEx_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - byte ret = TreeNodeExNative(ptrId, flags, fmt); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExNative(ptrId, flags, (byte*)pfmt); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeEx_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeEx([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExNative(ptrId, flags, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNodeExV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNodeExV_Str")] - internal static extern byte TreeNodeExVNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "igTreeNodeExV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeExV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte ret = TreeNodeExVNative(strId, flags, fmt, args); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeExV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeExV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pstrId = &strId) - { - byte ret = TreeNodeExVNative((byte*)pstrId, flags, fmt, args); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeExV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeExV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExVNative(pStr0, flags, fmt, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeExV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeExV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExVNative(strId, flags, (byte*)pfmt, args); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeExV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeExV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExVNative(strId, flags, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeExV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeExV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pstrId = &strId) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExVNative((byte*)pstrId, flags, (byte*)pfmt, args); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeExV_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeExV([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TreeNodeExVNative(pStr0, flags, pStr1, args); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNodeExV_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNodeExV_Ptr")] - internal static extern byte TreeNodeExVNative([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "igTreeNodeExV_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeExV([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte ret = TreeNodeExVNative(ptrId, flags, fmt, args); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeExV_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeExV([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pfmt = &fmt) - { - byte ret = TreeNodeExVNative(ptrId, flags, (byte*)pfmt, args); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igTreeNodeExV_Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeExV([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TreeNodeExVNative(ptrId, flags, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreePush_Str")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreePush_Str")] - internal static extern void TreePushNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId); - - /// /// ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePushTreePop yourself if desired. /// [NativeName(NativeNameType.Func, "igTreePush_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TreePush([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) - { - TreePushNative(strId); - } - - /// /// ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePushTreePop yourself if desired. /// [NativeName(NativeNameType.Func, "igTreePush_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TreePush([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) - { - fixed (byte* pstrId = &strId) - { - TreePushNative((byte*)pstrId); - } - } - - /// /// ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePushTreePop yourself if desired. /// [NativeName(NativeNameType.Func, "igTreePush_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TreePush([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TreePushNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreePush_Ptr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreePush_Ptr")] - internal static extern void TreePushNative([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId); - - /// /// " /// [NativeName(NativeNameType.Func, "igTreePush_Ptr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TreePush([NativeName(NativeNameType.Param, "ptr_id")] [NativeName(NativeNameType.Type, "const void*")] void* ptrId) - { - TreePushNative(ptrId); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreePop")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreePop")] - internal static extern void TreePopNative(); - - /// /// ~ Unindent()+PopId() /// [NativeName(NativeNameType.Func, "igTreePop")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TreePop() - { - TreePopNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetTreeNodeToLabelSpacing")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetTreeNodeToLabelSpacing")] - internal static extern float GetTreeNodeToLabelSpacingNative(); - - /// /// horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode /// [NativeName(NativeNameType.Func, "igGetTreeNodeToLabelSpacing")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetTreeNodeToLabelSpacing() - { - float ret = GetTreeNodeToLabelSpacingNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCollapsingHeader_TreeNodeFlags")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCollapsingHeader_TreeNodeFlags")] - internal static extern byte CollapsingHeaderNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags); - - /// /// if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). /// [NativeName(NativeNameType.Func, "igCollapsingHeader_TreeNodeFlags")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - byte ret = CollapsingHeaderNative(label, flags); - return ret != 0; - } - - /// /// if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). /// [NativeName(NativeNameType.Func, "igCollapsingHeader_TreeNodeFlags")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = CollapsingHeaderNative(label, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - - /// /// if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). /// [NativeName(NativeNameType.Func, "igCollapsingHeader_TreeNodeFlags")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, flags); - return ret != 0; - } - } - - /// /// if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). /// [NativeName(NativeNameType.Func, "igCollapsingHeader_TreeNodeFlags")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - - /// /// if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). /// [NativeName(NativeNameType.Func, "igCollapsingHeader_TreeNodeFlags")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CollapsingHeaderNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). /// [NativeName(NativeNameType.Func, "igCollapsingHeader_TreeNodeFlags")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CollapsingHeaderNative(pStr0, (ImGuiTreeNodeFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCollapsingHeader_BoolPtr")] - internal static extern byte CollapsingHeaderNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] byte* pVisible, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags); - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] byte* pVisible, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - byte ret = CollapsingHeaderNative(label, pVisible, flags); - return ret != 0; - } - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] byte* pVisible) - { - byte ret = CollapsingHeaderNative(label, pVisible, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] byte* pVisible, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, pVisible, flags); - return ret != 0; - } - } - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] byte* pVisible) - { - fixed (byte* plabel = &label) - { - byte ret = CollapsingHeaderNative((byte*)plabel, pVisible, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] byte* pVisible, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CollapsingHeaderNative(pStr0, pVisible, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] byte* pVisible) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CollapsingHeaderNative(pStr0, pVisible, (ImGuiTreeNodeFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] ref byte pVisible, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - fixed (byte* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative(label, (byte*)ppVisible, flags); - return ret != 0; - } - } - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] ref byte pVisible) - { - fixed (byte* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative(label, (byte*)ppVisible, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] ref byte pVisible, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative((byte*)plabel, (byte*)ppVisible, flags); - return ret != 0; - } - } - } - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] ref byte pVisible) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative((byte*)plabel, (byte*)ppVisible, (ImGuiTreeNodeFlags)(0)); - return ret != 0; - } - } - } - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] ref byte pVisible, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative(pStr0, (byte*)ppVisible, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. /// [NativeName(NativeNameType.Func, "igCollapsingHeader_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapsingHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_visible")] [NativeName(NativeNameType.Type, "bool*")] ref byte pVisible) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppVisible = &pVisible) - { - byte ret = CollapsingHeaderNative(pStr0, (byte*)ppVisible, (ImGuiTreeNodeFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetNextItemOpen")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextItemOpen")] - internal static extern void SetNextItemOpenNative([NativeName(NativeNameType.Param, "is_open")] [NativeName(NativeNameType.Type, "bool")] byte isOpen, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); - - /// /// set next TreeNodeCollapsingHeader open state. /// [NativeName(NativeNameType.Func, "igSetNextItemOpen")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextItemOpen([NativeName(NativeNameType.Param, "is_open")] [NativeName(NativeNameType.Type, "bool")] bool isOpen, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) - { - SetNextItemOpenNative(isOpen ? (byte)1 : (byte)0, cond); - } - - /// /// set next TreeNodeCollapsingHeader open state. /// [NativeName(NativeNameType.Func, "igSetNextItemOpen")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextItemOpen([NativeName(NativeNameType.Param, "is_open")] [NativeName(NativeNameType.Type, "bool")] bool isOpen) - { - SetNextItemOpenNative(isOpen ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSelectable_Bool")] - internal static extern byte SelectableNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] byte selected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size); - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, flags, size); - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = SelectableNative(label, (byte)(0), (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - byte ret = SelectableNative(label, (byte)(0), flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = SelectableNative(label, (byte)(0), (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = SelectableNative(label, (byte)(0), flags, size); - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, flags, size); - return ret != 0; - } - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, (byte)(0), flags, size); - return ret != 0; - } - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, flags, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, (byte)(0), (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, (byte)(0), flags, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, selected ? (byte)1 : (byte)0, (ImGuiSelectableFlags)(0), size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, (byte)(0), (ImGuiSelectableFlags)(0), size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height /// [NativeName(NativeNameType.Func, "igSelectable_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, (byte)(0), flags, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSelectable_BoolPtr")] - internal static extern byte SelectableNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size); - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = SelectableNative(label, pSelected, flags, size); - return ret != 0; - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - byte ret = SelectableNative(label, pSelected, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected) - { - byte ret = SelectableNative(label, pSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = SelectableNative(label, pSelected, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, flags, size); - return ret != 0; - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = SelectableNative((byte*)plabel, pSelected, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, pSelected, flags, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, pSelected, flags, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, pSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SelectableNative(pStr0, pSelected, (ImGuiSelectableFlags)(0), size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative(label, (byte*)ppSelected, flags, size); - return ret != 0; - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative(label, (byte*)ppSelected, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative(label, (byte*)ppSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative(label, (byte*)ppSelected, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (byte*)ppSelected, flags, size); - return ret != 0; - } - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (byte*)ppSelected, flags, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (byte*)ppSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative((byte*)plabel, (byte*)ppSelected, (ImGuiSelectableFlags)(0), size); - return ret != 0; - } - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative(pStr0, (byte*)ppSelected, flags, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSelectableFlags")] ImGuiSelectableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative(pStr0, (byte*)ppSelected, flags, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative(pStr0, (byte*)ppSelected, (ImGuiSelectableFlags)(0), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// "bool* p_selected" point to the selection state (read-write), as a convenient helper. /// [NativeName(NativeNameType.Func, "igSelectable_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Selectable([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppSelected = &pSelected) - { - byte ret = SelectableNative(pStr0, (byte*)ppSelected, (ImGuiSelectableFlags)(0), size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginListBox")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginListBox")] - internal static extern byte BeginListBoxNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size); - - /// /// open a framed scrolling region /// [NativeName(NativeNameType.Func, "igBeginListBox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = BeginListBoxNative(label, size); - return ret != 0; - } - - /// /// open a framed scrolling region /// [NativeName(NativeNameType.Func, "igBeginListBox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = BeginListBoxNative(label, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - - /// /// open a framed scrolling region /// [NativeName(NativeNameType.Func, "igBeginListBox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - fixed (byte* plabel = &label) - { - byte ret = BeginListBoxNative((byte*)plabel, size); - return ret != 0; - } - } - - /// /// open a framed scrolling region /// [NativeName(NativeNameType.Func, "igBeginListBox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = BeginListBoxNative((byte*)plabel, (Vector2)(new Vector2(0,0))); - return ret != 0; - } - } - - /// /// open a framed scrolling region /// [NativeName(NativeNameType.Func, "igBeginListBox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginListBoxNative(pStr0, size); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// open a framed scrolling region /// [NativeName(NativeNameType.Func, "igBeginListBox")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginListBoxNative(pStr0, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndListBox")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndListBox")] - internal static extern void EndListBoxNative(); - - /// /// only call EndListBox() if BeginListBox() returned true! /// [NativeName(NativeNameType.Func, "igEndListBox")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndListBox() - { - EndListBoxNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igListBox_Str_arr")] - internal static extern byte ListBoxNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems); - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - byte ret = ListBoxNative(label, currentItem, items, itemsCount, heightInItems); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - byte ret = ListBoxNative(label, currentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - fixed (byte* plabel = &label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, items, itemsCount, heightInItems); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - fixed (byte* plabel = &label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ListBoxNative(pStr0, currentItem, items, itemsCount, heightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ListBoxNative(pStr0, currentItem, items, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(label, (int*)pcurrentItem, items, itemsCount, heightInItems); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(label, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, heightInItems); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, items, itemsCount, heightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] byte** items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, items, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(label, currentItem, pStrArray0, itemsCount, heightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(label, currentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(pStr0, currentItem, pStrArray0, itemsCount, heightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(pStr0, currentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, heightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, heightInItems); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_Str_arr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "const const char*[-1]")] string[] items, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte** pStrArray0 = null; - int pStrArraySize0 = Utils.GetByteCountArray(items); - if (items != null) - { - if (pStrArraySize0 > Utils.MaxStackallocSize) - { - pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); - } - else - { - byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; - pStrArray0 = (byte**)pStrArrayStack0; - } - } - for (int i = 0; i < items.Length; i++) - { - pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); - } - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); - for (int i = 0; i < items.Length; i++) - { - Utils.Free(pStrArray0[i]); - } - if (pStrArraySize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStrArray0); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igListBox_FnBoolPtr")] - internal static extern byte ListBoxNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems); - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - byte ret = ListBoxNative(label, currentItem, itemsGetter, data, itemsCount, heightInItems); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - byte ret = ListBoxNative(label, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - fixed (byte* plabel = &label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, heightInItems); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - fixed (byte* plabel = &label) - { - byte ret = ListBoxNative((byte*)plabel, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ListBoxNative(pStr0, currentItem, itemsGetter, data, itemsCount, heightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] int* currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ListBoxNative(pStr0, currentItem, itemsGetter, data, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, heightInItems); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(label, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, heightInItems); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - fixed (byte* plabel = &label) - { - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative((byte*)plabel, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "height_in_items")] [NativeName(NativeNameType.Type, "int")] int heightInItems) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, heightInItems); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igListBox_FnBoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ListBox([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "current_item")] [NativeName(NativeNameType.Type, "int*")] ref int currentItem, [NativeName(NativeNameType.Param, "items_getter")] [NativeName(NativeNameType.Type, "bool (*)(const char* label, int* current_item, bool (*)(void* data, int idx, const char** out_text)* items_getter, void* data, int items_count, int height_in_items)*")] delegate*, void*, int, int> itemsGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (int* pcurrentItem = ¤tItem) - { - byte ret = ListBoxNative(pStr0, (int*)pcurrentItem, itemsGetter, data, itemsCount, (int)(-1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPlotLines_FloatPtr")] - internal static extern void PlotLinesNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride); - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPlotLines_FnFloatPtr")] - internal static extern void PlotLinesNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize); - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotLinesNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotLines_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotLines([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotLinesNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPlotHistogram_FloatPtr")] - internal static extern void PlotHistogramNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride); - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] float* values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, values, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (float* pvalues = &values) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* plabel = &label) - { - fixed (float* pvalues = &values) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); - } - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const float*")] ref float values, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pvalues = &values) - { - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, (float*)pvalues, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize, stride); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPlotHistogram_FnFloatPtr")] - internal static extern void PlotHistogramNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize); - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (overlayText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - fixed (byte* plabel = &label) - { - fixed (byte* poverlayText = &overlayText) - { - PlotHistogramNative((byte*)plabel, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); - } - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, valuesOffset, pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, (float)(float.MaxValue), graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igPlotHistogram_FnFloatPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PlotHistogram([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "graph_size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 graphSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (overlayText != null) - { - pStrSize1 = Utils.GetByteCountUTF8(overlayText); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(overlayText, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - PlotHistogramNative(pStr0, valuesGetter, data, valuesCount, (int)(0), pStr1, scaleMin, scaleMax, graphSize); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igValue_Bool")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igValue_Bool")] - internal static extern void ValueNative([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "bool")] byte b); - - [NativeName(NativeNameType.Func, "igValue_Bool")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "bool")] bool b) - { - ValueNative(prefix, b ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "igValue_Bool")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] ref byte prefix, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "bool")] bool b) - { - fixed (byte* pprefix = &prefix) - { - ValueNative((byte*)pprefix, b ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "igValue_Bool")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] string prefix, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "bool")] bool b) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(pStr0, b ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igValue_Int")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igValue_Int")] - internal static extern void ValueNative([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int")] int v); - - [NativeName(NativeNameType.Func, "igValue_Int")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int")] int v) - { - ValueNative(prefix, v); - } - - [NativeName(NativeNameType.Func, "igValue_Int")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] ref byte prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int")] int v) - { - fixed (byte* pprefix = &prefix) - { - ValueNative((byte*)pprefix, v); - } - } - - [NativeName(NativeNameType.Func, "igValue_Int")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] string prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int")] int v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(pStr0, v); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igValue_Uint")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igValue_Uint")] - internal static extern void ValueNative([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "unsigned int")] uint v); - - [NativeName(NativeNameType.Func, "igValue_Uint")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "unsigned int")] uint v) - { - ValueNative(prefix, v); - } - - [NativeName(NativeNameType.Func, "igValue_Uint")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] ref byte prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "unsigned int")] uint v) - { - fixed (byte* pprefix = &prefix) - { - ValueNative((byte*)pprefix, v); - } - } - - [NativeName(NativeNameType.Func, "igValue_Uint")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] string prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "unsigned int")] uint v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(pStr0, v); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igValue_Float")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igValue_Float")] - internal static extern void ValueNative([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "float_format")] [NativeName(NativeNameType.Type, "const char*")] byte* floatFormat); - - [NativeName(NativeNameType.Func, "igValue_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "float_format")] [NativeName(NativeNameType.Type, "const char*")] byte* floatFormat) - { - ValueNative(prefix, v, floatFormat); - } - - [NativeName(NativeNameType.Func, "igValue_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) - { - ValueNative(prefix, v, (byte*)(default)); - } - - [NativeName(NativeNameType.Func, "igValue_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] ref byte prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "float_format")] [NativeName(NativeNameType.Type, "const char*")] byte* floatFormat) - { - fixed (byte* pprefix = &prefix) - { - ValueNative((byte*)pprefix, v, floatFormat); - } - } - - [NativeName(NativeNameType.Func, "igValue_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] ref byte prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) - { - fixed (byte* pprefix = &prefix) - { - ValueNative((byte*)pprefix, v, (byte*)(default)); - } - } - - [NativeName(NativeNameType.Func, "igValue_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] string prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "float_format")] [NativeName(NativeNameType.Type, "const char*")] byte* floatFormat) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(pStr0, v, floatFormat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igValue_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] string prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(pStr0, v, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igValue_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "float_format")] [NativeName(NativeNameType.Type, "const char*")] ref byte floatFormat) - { - fixed (byte* pfloatFormat = &floatFormat) - { - ValueNative(prefix, v, (byte*)pfloatFormat); - } - } - - [NativeName(NativeNameType.Func, "igValue_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "float_format")] [NativeName(NativeNameType.Type, "const char*")] string floatFormat) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (floatFormat != null) - { - pStrSize0 = Utils.GetByteCountUTF8(floatFormat); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(floatFormat, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ValueNative(prefix, v, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igValue_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] ref byte prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "float_format")] [NativeName(NativeNameType.Type, "const char*")] ref byte floatFormat) - { - fixed (byte* pprefix = &prefix) - { - fixed (byte* pfloatFormat = &floatFormat) - { - ValueNative((byte*)pprefix, v, (byte*)pfloatFormat); - } - } - } - - [NativeName(NativeNameType.Func, "igValue_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Value([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] string prefix, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "float_format")] [NativeName(NativeNameType.Type, "const char*")] string floatFormat) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (prefix != null) - { - pStrSize0 = Utils.GetByteCountUTF8(prefix); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (floatFormat != null) - { - pStrSize1 = Utils.GetByteCountUTF8(floatFormat); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(floatFormat, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ValueNative(pStr0, v, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginMenuBar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginMenuBar")] - internal static extern byte BeginMenuBarNative(); - - /// /// append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window). /// [NativeName(NativeNameType.Func, "igBeginMenuBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuBar() - { - byte ret = BeginMenuBarNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndMenuBar")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndMenuBar")] - internal static extern void EndMenuBarNative(); - - /// /// only call EndMenuBar() if BeginMenuBar() returns true! /// [NativeName(NativeNameType.Func, "igEndMenuBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndMenuBar() - { - EndMenuBarNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginMainMenuBar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginMainMenuBar")] - internal static extern byte BeginMainMenuBarNative(); - - /// /// create and append to a full screen menu-bar. /// [NativeName(NativeNameType.Func, "igBeginMainMenuBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMainMenuBar() - { - byte ret = BeginMainMenuBarNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndMainMenuBar")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndMainMenuBar")] - internal static extern void EndMainMenuBarNative(); - - /// /// only call EndMainMenuBar() if BeginMainMenuBar() returns true! /// [NativeName(NativeNameType.Func, "igEndMainMenuBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndMainMenuBar() - { - EndMainMenuBarNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginMenu")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginMenu")] - internal static extern byte BeginMenuNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] byte enabled); - - /// /// create a sub-menu entry. only call EndMenu() if this returns true! /// [NativeName(NativeNameType.Func, "igBeginMenu")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenu([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte ret = BeginMenuNative(label, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - /// /// create a sub-menu entry. only call EndMenu() if this returns true! /// [NativeName(NativeNameType.Func, "igBeginMenu")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenu([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = BeginMenuNative(label, (byte)(1)); - return ret != 0; - } - - /// /// create a sub-menu entry. only call EndMenu() if this returns true! /// [NativeName(NativeNameType.Func, "igBeginMenu")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenu([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* plabel = &label) - { - byte ret = BeginMenuNative((byte*)plabel, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// /// create a sub-menu entry. only call EndMenu() if this returns true! /// [NativeName(NativeNameType.Func, "igBeginMenu")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenu([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = BeginMenuNative((byte*)plabel, (byte)(1)); - return ret != 0; - } - } - - /// /// create a sub-menu entry. only call EndMenu() if this returns true! /// [NativeName(NativeNameType.Func, "igBeginMenu")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenu([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuNative(pStr0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// create a sub-menu entry. only call EndMenu() if this returns true! /// [NativeName(NativeNameType.Func, "igBeginMenu")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenu([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuNative(pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndMenu")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndMenu")] - internal static extern void EndMenuNative(); - - /// /// only call EndMenu() if BeginMenu() returns true! /// [NativeName(NativeNameType.Func, "igEndMenu")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndMenu() - { - EndMenuNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igMenuItem_Bool")] - internal static extern byte MenuItemNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] byte selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] byte enabled); - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut) - { - byte ret = MenuItemNative(label, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = MenuItemNative(label, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(label, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(label, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(label, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; - } - } - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemNative(pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemNative(pStr0, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated. /// [NativeName(NativeNameType.Func, "igMenuItem_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemNative(pStr0, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igMenuItem_BoolPtr")] - internal static extern byte MenuItemNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] byte enabled); - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte ret = MenuItemNative(label, shortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected) - { - byte ret = MenuItemNative(label, shortcut, pSelected, (byte)(1)); - return ret != 0; - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected) - { - fixed (byte* plabel = &label) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, pSelected, (byte)(1)); - return ret != 0; - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, shortcut, pSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(pStr0, shortcut, pSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, (byte)(1)); - return ret != 0; - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(label, pStr0, pSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemNative(label, pStr0, pSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, pSelected, (byte)(1)); - return ret != 0; - } - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemNative(pStr0, pStr1, pSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] byte* pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemNative(pStr0, pStr1, pSelected, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, shortcut, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, shortcut, (byte*)ppSelected, (byte)(1)); - return ret != 0; - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, shortcut, (byte*)ppSelected, (byte)(1)); - return ret != 0; - } - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, shortcut, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, shortcut, (byte*)ppSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* pshortcut = &shortcut) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected) - { - fixed (byte* pshortcut = &shortcut) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, (byte*)pshortcut, (byte*)ppSelected, (byte)(1)); - return ret != 0; - } - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, pStr0, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative(label, pStr0, (byte*)ppSelected, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - } - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected) - { - fixed (byte* plabel = &label) - { - fixed (byte* pshortcut = &shortcut) - { - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative((byte*)plabel, (byte*)pshortcut, (byte*)ppSelected, (byte)(1)); - return ret != 0; - } - } - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, pStr1, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// return true when activated + toggle (*p_selected) if p_selected != NULL /// [NativeName(NativeNameType.Func, "igMenuItem_BoolPtr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "p_selected")] [NativeName(NativeNameType.Type, "bool*")] ref byte pSelected) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte* ppSelected = &pSelected) - { - byte ret = MenuItemNative(pStr0, pStr1, (byte*)ppSelected, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginTooltip")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginTooltip")] - internal static extern byte BeginTooltipNative(); - - /// /// beginappend a tooltip window. /// [NativeName(NativeNameType.Func, "igBeginTooltip")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTooltip() - { - byte ret = BeginTooltipNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndTooltip")] - internal static extern void EndTooltipNative(); - - /// /// only call EndTooltip() if BeginTooltip()BeginItemTooltip() returns true! /// [NativeName(NativeNameType.Func, "igEndTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndTooltip() - { - EndTooltipNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetTooltip")] - internal static extern void SetTooltipNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); - - /// /// set a text-only tooltip. Often used after a ImGui::IsItemHovered() check. Override any previous call to SetTooltip(). /// [NativeName(NativeNameType.Func, "igSetTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetTooltip([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - SetTooltipNative(fmt); - } - - /// /// set a text-only tooltip. Often used after a ImGui::IsItemHovered() check. Override any previous call to SetTooltip(). /// [NativeName(NativeNameType.Func, "igSetTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetTooltip([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - SetTooltipNative((byte*)pfmt); - } - } - - /// /// set a text-only tooltip. Often used after a ImGui::IsItemHovered() check. Override any previous call to SetTooltip(). /// [NativeName(NativeNameType.Func, "igSetTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetTooltip([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetTooltipNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetTooltipV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetTooltipV")] - internal static extern void SetTooltipVNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "igSetTooltipV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetTooltipV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - SetTooltipVNative(fmt, args); - } - - [NativeName(NativeNameType.Func, "igSetTooltipV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetTooltipV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pfmt = &fmt) - { - SetTooltipVNative((byte*)pfmt, args); - } - } - - [NativeName(NativeNameType.Func, "igSetTooltipV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetTooltipV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetTooltipVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginItemTooltip")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginItemTooltip")] - internal static extern byte BeginItemTooltipNative(); - - /// /// beginappend a tooltip window if preceding item was hovered. /// [NativeName(NativeNameType.Func, "igBeginItemTooltip")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginItemTooltip() - { - byte ret = BeginItemTooltipNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetItemTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetItemTooltip")] - internal static extern void SetItemTooltipNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); - - /// /// set a text-only tooltip if preceeding item was hovered. override any previous call to SetTooltip(). /// [NativeName(NativeNameType.Func, "igSetItemTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetItemTooltip([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - SetItemTooltipNative(fmt); - } - - /// /// set a text-only tooltip if preceeding item was hovered. override any previous call to SetTooltip(). /// [NativeName(NativeNameType.Func, "igSetItemTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetItemTooltip([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - SetItemTooltipNative((byte*)pfmt); - } - } - - /// /// set a text-only tooltip if preceeding item was hovered. override any previous call to SetTooltip(). /// [NativeName(NativeNameType.Func, "igSetItemTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetItemTooltip([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetItemTooltipNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetItemTooltipV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetItemTooltipV")] - internal static extern void SetItemTooltipVNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "igSetItemTooltipV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetItemTooltipV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - SetItemTooltipVNative(fmt, args); - } - - [NativeName(NativeNameType.Func, "igSetItemTooltipV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetItemTooltipV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pfmt = &fmt) - { - SetItemTooltipVNative((byte*)pfmt, args); - } - } - - [NativeName(NativeNameType.Func, "igSetItemTooltipV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetItemTooltipV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetItemTooltipVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginPopup")] - internal static extern byte BeginPopupNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags); - - /// /// return true if the popup is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - byte ret = BeginPopupNative(strId, flags); - return ret != 0; - } - - /// /// return true if the popup is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) - { - byte ret = BeginPopupNative(strId, (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// /// return true if the popup is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupNative((byte*)pstrId, flags); - return ret != 0; - } - } - - /// /// return true if the popup is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupNative((byte*)pstrId, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// /// return true if the popup is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true if the popup is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupNative(pStr0, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginPopupModal")] - internal static extern byte BeginPopupModalNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags); - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - byte ret = BeginPopupModalNative(name, pOpen, flags); - return ret != 0; - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) - { - byte ret = BeginPopupModalNative(name, pOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name) - { - byte ret = BeginPopupModalNative(name, (byte*)(default), (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - byte ret = BeginPopupModalNative(name, (byte*)(default), flags); - return ret != 0; - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - fixed (byte* pname = &name) - { - byte ret = BeginPopupModalNative((byte*)pname, pOpen, flags); - return ret != 0; - } - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) - { - fixed (byte* pname = &name) - { - byte ret = BeginPopupModalNative((byte*)pname, pOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name) - { - fixed (byte* pname = &name) - { - byte ret = BeginPopupModalNative((byte*)pname, (byte*)(default), (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - fixed (byte* pname = &name) - { - byte ret = BeginPopupModalNative((byte*)pname, (byte*)(default), flags); - return ret != 0; - } - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupModalNative(pStr0, pOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupModalNative(pStr0, pOpen, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupModalNative(pStr0, (byte*)(default), (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupModalNative(pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative(name, (byte*)ppOpen, flags); - return ret != 0; - } - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative(name, (byte*)ppOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - fixed (byte* pname = &name) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative((byte*)pname, (byte*)ppOpen, flags); - return ret != 0; - } - } - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) - { - fixed (byte* pname = &name) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative((byte*)pname, (byte*)ppOpen, (ImGuiWindowFlags)(0)); - return ret != 0; - } - } - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative(pStr0, (byte*)ppOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// return true if the modal is open, and you can start outputting to it. /// [NativeName(NativeNameType.Func, "igBeginPopupModal")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupModal([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) - { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginPopupModalNative(pStr0, (byte*)ppOpen, (ImGuiWindowFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndPopup")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndPopup")] - internal static extern void EndPopupNative(); - - /// /// only call EndPopup() if BeginPopupXXX() returns true! /// [NativeName(NativeNameType.Func, "igEndPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndPopup() - { - EndPopupNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igOpenPopup_Str")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igOpenPopup_Str")] - internal static extern void OpenPopupNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags); - - /// /// call to mark popup as open (don't call every frame!). /// [NativeName(NativeNameType.Func, "igOpenPopup_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - OpenPopupNative(strId, popupFlags); - } - - /// /// call to mark popup as open (don't call every frame!). /// [NativeName(NativeNameType.Func, "igOpenPopup_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) - { - OpenPopupNative(strId, (ImGuiPopupFlags)(0)); - } - - /// /// call to mark popup as open (don't call every frame!). /// [NativeName(NativeNameType.Func, "igOpenPopup_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = &strId) - { - OpenPopupNative((byte*)pstrId, popupFlags); - } - } - - /// /// call to mark popup as open (don't call every frame!). /// [NativeName(NativeNameType.Func, "igOpenPopup_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) - { - fixed (byte* pstrId = &strId) - { - OpenPopupNative((byte*)pstrId, (ImGuiPopupFlags)(0)); - } - } - - /// /// call to mark popup as open (don't call every frame!). /// [NativeName(NativeNameType.Func, "igOpenPopup_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - OpenPopupNative(pStr0, popupFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// call to mark popup as open (don't call every frame!). /// [NativeName(NativeNameType.Func, "igOpenPopup_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopup([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - OpenPopupNative(pStr0, (ImGuiPopupFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igOpenPopup_ID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igOpenPopup_ID")] - internal static extern void OpenPopupNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags); - - /// /// id overload to facilitate calling from nested stacks /// [NativeName(NativeNameType.Func, "igOpenPopup_ID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopup([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - OpenPopupNative(id, popupFlags); - } - - /// /// id overload to facilitate calling from nested stacks /// [NativeName(NativeNameType.Func, "igOpenPopup_ID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopup([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - OpenPopupNative(id, (ImGuiPopupFlags)(0)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igOpenPopupOnItemClick")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igOpenPopupOnItemClick")] - internal static extern void OpenPopupOnItemClickNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags); - - /// /// helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) /// [NativeName(NativeNameType.Func, "igOpenPopupOnItemClick")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopupOnItemClick([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - OpenPopupOnItemClickNative(strId, popupFlags); - } - - /// /// helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) /// [NativeName(NativeNameType.Func, "igOpenPopupOnItemClick")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopupOnItemClick([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) - { - OpenPopupOnItemClickNative(strId, (ImGuiPopupFlags)(1)); - } - - /// /// helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) /// [NativeName(NativeNameType.Func, "igOpenPopupOnItemClick")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopupOnItemClick() - { - OpenPopupOnItemClickNative((byte*)(default), (ImGuiPopupFlags)(1)); - } - - /// /// helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) /// [NativeName(NativeNameType.Func, "igOpenPopupOnItemClick")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopupOnItemClick([NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - OpenPopupOnItemClickNative((byte*)(default), popupFlags); - } - - /// /// helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) /// [NativeName(NativeNameType.Func, "igOpenPopupOnItemClick")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopupOnItemClick([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = &strId) - { - OpenPopupOnItemClickNative((byte*)pstrId, popupFlags); - } - } - - /// /// helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) /// [NativeName(NativeNameType.Func, "igOpenPopupOnItemClick")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopupOnItemClick([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) - { - fixed (byte* pstrId = &strId) - { - OpenPopupOnItemClickNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - } - } - - /// /// helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) /// [NativeName(NativeNameType.Func, "igOpenPopupOnItemClick")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopupOnItemClick([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - OpenPopupOnItemClickNative(pStr0, popupFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) /// [NativeName(NativeNameType.Func, "igOpenPopupOnItemClick")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopupOnItemClick([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - OpenPopupOnItemClickNative(pStr0, (ImGuiPopupFlags)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCloseCurrentPopup")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCloseCurrentPopup")] - internal static extern void CloseCurrentPopupNative(); - - /// /// manually close the popup we have begin-ed into. /// [NativeName(NativeNameType.Func, "igCloseCurrentPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CloseCurrentPopup() - { - CloseCurrentPopupNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginPopupContextItem")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginPopupContextItem")] - internal static extern byte BeginPopupContextItemNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags); - - /// /// open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! /// [NativeName(NativeNameType.Func, "igBeginPopupContextItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextItem([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextItemNative(strId, popupFlags); - return ret != 0; - } - - /// /// open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! /// [NativeName(NativeNameType.Func, "igBeginPopupContextItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextItem([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) - { - byte ret = BeginPopupContextItemNative(strId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// /// open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! /// [NativeName(NativeNameType.Func, "igBeginPopupContextItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextItem() - { - byte ret = BeginPopupContextItemNative((byte*)(default), (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// /// open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! /// [NativeName(NativeNameType.Func, "igBeginPopupContextItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextItem([NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextItemNative((byte*)(default), popupFlags); - return ret != 0; - } - - /// /// open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! /// [NativeName(NativeNameType.Func, "igBeginPopupContextItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextItem([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextItemNative((byte*)pstrId, popupFlags); - return ret != 0; - } - } - - /// /// open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! /// [NativeName(NativeNameType.Func, "igBeginPopupContextItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextItem([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextItemNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - } - - /// /// open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! /// [NativeName(NativeNameType.Func, "igBeginPopupContextItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextItem([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextItemNative(pStr0, popupFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! /// [NativeName(NativeNameType.Func, "igBeginPopupContextItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextItem([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextItemNative(pStr0, (ImGuiPopupFlags)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginPopupContextWindow")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginPopupContextWindow")] - internal static extern byte BeginPopupContextWindowNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags); - - /// /// open+begin popup when clicked on current window. /// [NativeName(NativeNameType.Func, "igBeginPopupContextWindow")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextWindow([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextWindowNative(strId, popupFlags); - return ret != 0; - } - - /// /// open+begin popup when clicked on current window. /// [NativeName(NativeNameType.Func, "igBeginPopupContextWindow")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextWindow([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) - { - byte ret = BeginPopupContextWindowNative(strId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// /// open+begin popup when clicked on current window. /// [NativeName(NativeNameType.Func, "igBeginPopupContextWindow")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextWindow() - { - byte ret = BeginPopupContextWindowNative((byte*)(default), (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// /// open+begin popup when clicked on current window. /// [NativeName(NativeNameType.Func, "igBeginPopupContextWindow")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextWindow([NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextWindowNative((byte*)(default), popupFlags); - return ret != 0; - } - - /// /// open+begin popup when clicked on current window. /// [NativeName(NativeNameType.Func, "igBeginPopupContextWindow")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextWindow([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextWindowNative((byte*)pstrId, popupFlags); - return ret != 0; - } - } - - /// /// open+begin popup when clicked on current window. /// [NativeName(NativeNameType.Func, "igBeginPopupContextWindow")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextWindow([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextWindowNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - } - - /// /// open+begin popup when clicked on current window. /// [NativeName(NativeNameType.Func, "igBeginPopupContextWindow")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextWindow([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextWindowNative(pStr0, popupFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// open+begin popup when clicked on current window. /// [NativeName(NativeNameType.Func, "igBeginPopupContextWindow")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextWindow([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextWindowNative(pStr0, (ImGuiPopupFlags)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginPopupContextVoid")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginPopupContextVoid")] - internal static extern byte BeginPopupContextVoidNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags); - - /// /// open+begin popup when clicked in void (where there are no windows). /// [NativeName(NativeNameType.Func, "igBeginPopupContextVoid")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextVoid([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextVoidNative(strId, popupFlags); - return ret != 0; - } - - /// /// open+begin popup when clicked in void (where there are no windows). /// [NativeName(NativeNameType.Func, "igBeginPopupContextVoid")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextVoid([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) - { - byte ret = BeginPopupContextVoidNative(strId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// /// open+begin popup when clicked in void (where there are no windows). /// [NativeName(NativeNameType.Func, "igBeginPopupContextVoid")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextVoid() - { - byte ret = BeginPopupContextVoidNative((byte*)(default), (ImGuiPopupFlags)(1)); - return ret != 0; - } - - /// /// open+begin popup when clicked in void (where there are no windows). /// [NativeName(NativeNameType.Func, "igBeginPopupContextVoid")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextVoid([NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte ret = BeginPopupContextVoidNative((byte*)(default), popupFlags); - return ret != 0; - } - - /// /// open+begin popup when clicked in void (where there are no windows). /// [NativeName(NativeNameType.Func, "igBeginPopupContextVoid")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextVoid([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextVoidNative((byte*)pstrId, popupFlags); - return ret != 0; - } - } - - /// /// open+begin popup when clicked in void (where there are no windows). /// [NativeName(NativeNameType.Func, "igBeginPopupContextVoid")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextVoid([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginPopupContextVoidNative((byte*)pstrId, (ImGuiPopupFlags)(1)); - return ret != 0; - } - } - - /// /// open+begin popup when clicked in void (where there are no windows). /// [NativeName(NativeNameType.Func, "igBeginPopupContextVoid")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextVoid([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextVoidNative(pStr0, popupFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// open+begin popup when clicked in void (where there are no windows). /// [NativeName(NativeNameType.Func, "igBeginPopupContextVoid")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupContextVoid([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginPopupContextVoidNative(pStr0, (ImGuiPopupFlags)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsPopupOpen_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsPopupOpen_Str")] - internal static extern byte IsPopupOpenNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags flags); - - /// /// return true if the popup is open. /// [NativeName(NativeNameType.Func, "igIsPopupOpen_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsPopupOpen([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags flags) - { - byte ret = IsPopupOpenNative(strId, flags); - return ret != 0; - } - - /// /// return true if the popup is open. /// [NativeName(NativeNameType.Func, "igIsPopupOpen_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsPopupOpen([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) - { - byte ret = IsPopupOpenNative(strId, (ImGuiPopupFlags)(0)); - return ret != 0; - } - - /// /// return true if the popup is open. /// [NativeName(NativeNameType.Func, "igIsPopupOpen_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsPopupOpen([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = IsPopupOpenNative((byte*)pstrId, flags); - return ret != 0; - } - } - - /// /// return true if the popup is open. /// [NativeName(NativeNameType.Func, "igIsPopupOpen_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsPopupOpen([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = IsPopupOpenNative((byte*)pstrId, (ImGuiPopupFlags)(0)); - return ret != 0; - } - } - - /// /// return true if the popup is open. /// [NativeName(NativeNameType.Func, "igIsPopupOpen_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsPopupOpen([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsPopupOpenNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// return true if the popup is open. /// [NativeName(NativeNameType.Func, "igIsPopupOpen_Str")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsPopupOpen([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsPopupOpenNative(pStr0, (ImGuiPopupFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginTable")] - internal static extern byte BeginTableNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth); - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte ret = BeginTableNative(strId, column, flags, outerSize, innerWidth); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) - { - byte ret = BeginTableNative(strId, column, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags) - { - byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column) - { - byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) - { - byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte ret = BeginTableNative(strId, column, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, innerWidth); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTableNative((byte*)pstrId, column, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, flags, outerSize, innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, flags, outerSize, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTable([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "int")] int column, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTableNative(pStr0, column, (ImGuiTableFlags)(0), outerSize, innerWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndTable")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndTable")] - internal static extern void EndTableNative(); - - /// /// only call EndTable() if BeginTable() returns true! /// [NativeName(NativeNameType.Func, "igEndTable")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndTable() - { - EndTableNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableNextRow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableNextRow")] - internal static extern void TableNextRowNative([NativeName(NativeNameType.Param, "row_flags")] [NativeName(NativeNameType.Type, "ImGuiTableRowFlags")] ImGuiTableRowFlags rowFlags, [NativeName(NativeNameType.Param, "min_row_height")] [NativeName(NativeNameType.Type, "float")] float minRowHeight); - - /// /// append into the first cell of a new row. /// [NativeName(NativeNameType.Func, "igTableNextRow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableNextRow([NativeName(NativeNameType.Param, "row_flags")] [NativeName(NativeNameType.Type, "ImGuiTableRowFlags")] ImGuiTableRowFlags rowFlags, [NativeName(NativeNameType.Param, "min_row_height")] [NativeName(NativeNameType.Type, "float")] float minRowHeight) - { - TableNextRowNative(rowFlags, minRowHeight); - } - - /// /// append into the first cell of a new row. /// [NativeName(NativeNameType.Func, "igTableNextRow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableNextRow([NativeName(NativeNameType.Param, "row_flags")] [NativeName(NativeNameType.Type, "ImGuiTableRowFlags")] ImGuiTableRowFlags rowFlags) - { - TableNextRowNative(rowFlags, (float)(0.0f)); - } - - /// /// append into the first cell of a new row. /// [NativeName(NativeNameType.Func, "igTableNextRow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableNextRow() - { - TableNextRowNative((ImGuiTableRowFlags)(0), (float)(0.0f)); - } - - /// /// append into the first cell of a new row. /// [NativeName(NativeNameType.Func, "igTableNextRow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableNextRow([NativeName(NativeNameType.Param, "min_row_height")] [NativeName(NativeNameType.Type, "float")] float minRowHeight) - { - TableNextRowNative((ImGuiTableRowFlags)(0), minRowHeight); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableNextColumn")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableNextColumn")] - internal static extern byte TableNextColumnNative(); - - /// /// append into the next column (or first column of next row if currently in last column). Return true when column is visible. /// [NativeName(NativeNameType.Func, "igTableNextColumn")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TableNextColumn() - { - byte ret = TableNextColumnNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableSetColumnIndex")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSetColumnIndex")] - internal static extern byte TableSetColumnIndexNative([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN); - - /// /// append into the specified column. Return true when column is visible. /// [NativeName(NativeNameType.Func, "igTableSetColumnIndex")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TableSetColumnIndex([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) - { - byte ret = TableSetColumnIndexNative(columnN); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSetupColumn")] - internal static extern void TableSetupColumnNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId); - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - TableSetupColumnNative(label, flags, initWidthOrWeight, userId); - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight) - { - TableSetupColumnNative(label, flags, initWidthOrWeight, (int)(0)); - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags) - { - TableSetupColumnNative(label, flags, (float)(0.0f), (int)(0)); - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), (float)(0.0f), (int)(0)); - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight) - { - TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (int)(0)); - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - TableSetupColumnNative(label, flags, (float)(0.0f), userId); - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - TableSetupColumnNative(label, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, userId); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, flags, initWidthOrWeight, (int)(0)); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), (int)(0)); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), (int)(0)); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (int)(0)); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, flags, (float)(0.0f), userId); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - fixed (byte* plabel = &label) - { - TableSetupColumnNative((byte*)plabel, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, flags, initWidthOrWeight, userId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, flags, initWidthOrWeight, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, flags, (float)(0.0f), (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), (float)(0.0f), (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), initWidthOrWeight, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] ImGuiTableColumnFlags flags, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, flags, (float)(0.0f), userId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), (float)(0.0f), userId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igTableSetupColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupColumn([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "init_width_or_weight")] [NativeName(NativeNameType.Type, "float")] float initWidthOrWeight, [NativeName(NativeNameType.Param, "user_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int userId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableSetupColumnNative(pStr0, (ImGuiTableColumnFlags)(0), initWidthOrWeight, userId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableSetupScrollFreeze")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSetupScrollFreeze")] - internal static extern void TableSetupScrollFreezeNative([NativeName(NativeNameType.Param, "cols")] [NativeName(NativeNameType.Type, "int")] int cols, [NativeName(NativeNameType.Param, "rows")] [NativeName(NativeNameType.Type, "int")] int rows); - - /// /// lock columnsrows so they stay visible when scrolled. /// [NativeName(NativeNameType.Func, "igTableSetupScrollFreeze")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupScrollFreeze([NativeName(NativeNameType.Param, "cols")] [NativeName(NativeNameType.Type, "int")] int cols, [NativeName(NativeNameType.Param, "rows")] [NativeName(NativeNameType.Type, "int")] int rows) - { - TableSetupScrollFreezeNative(cols, rows); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableHeadersRow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableHeadersRow")] - internal static extern void TableHeadersRowNative(); - - /// /// submit all headers cells based on data provided to TableSetupColumn() + submit context menu /// [NativeName(NativeNameType.Func, "igTableHeadersRow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableHeadersRow() - { - TableHeadersRowNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableHeader")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableHeader")] - internal static extern void TableHeaderNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); - - /// /// submit one header cell manually (rarely used) /// [NativeName(NativeNameType.Func, "igTableHeader")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - TableHeaderNative(label); - } - - /// /// submit one header cell manually (rarely used) /// [NativeName(NativeNameType.Func, "igTableHeader")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - TableHeaderNative((byte*)plabel); - } - } - - /// /// submit one header cell manually (rarely used) /// [NativeName(NativeNameType.Func, "igTableHeader")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableHeader([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TableHeaderNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetSortSpecs")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSortSpecs*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetSortSpecs")] - internal static extern ImGuiTableSortSpecs* TableGetSortSpecsNative(); - - /// /// get latest sort specs for the table (NULL if not sorting). Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable(). /// [NativeName(NativeNameType.Func, "igTableGetSortSpecs")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSortSpecs*")] - public static ImGuiTableSortSpecs* TableGetSortSpecs() - { - ImGuiTableSortSpecs* ret = TableGetSortSpecsNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetColumnCount")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetColumnCount")] - internal static extern int TableGetColumnCountNative(); - - /// /// return number of columns (value passed to BeginTable) /// [NativeName(NativeNameType.Func, "igTableGetColumnCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int TableGetColumnCount() - { - int ret = TableGetColumnCountNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetColumnIndex")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetColumnIndex")] - internal static extern int TableGetColumnIndexNative(); - - /// /// return current column index. /// [NativeName(NativeNameType.Func, "igTableGetColumnIndex")] - [return: NativeName(NativeNameType.Type, "int")] - public static int TableGetColumnIndex() - { - int ret = TableGetColumnIndexNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetRowIndex")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetRowIndex")] - internal static extern int TableGetRowIndexNative(); - - /// /// return current row index. /// [NativeName(NativeNameType.Func, "igTableGetRowIndex")] - [return: NativeName(NativeNameType.Type, "int")] - public static int TableGetRowIndex() - { - int ret = TableGetRowIndexNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetColumnName_Int")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetColumnName_Int")] - internal static extern byte* TableGetColumnNameNative([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN); - - /// /// return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column. /// [NativeName(NativeNameType.Func, "igTableGetColumnName_Int")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* TableGetColumnName([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) - { - byte* ret = TableGetColumnNameNative(columnN); - return ret; - } - - /// /// return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column. /// [NativeName(NativeNameType.Func, "igTableGetColumnName_Int")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* TableGetColumnName() - { - byte* ret = TableGetColumnNameNative((int)(-1)); - return ret; - } - - /// /// return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column. /// [NativeName(NativeNameType.Func, "igTableGetColumnName_Int")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string TableGetColumnNameS() - { - string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((int)(-1))); - return ret; - } - - /// /// return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column. /// [NativeName(NativeNameType.Func, "igTableGetColumnName_Int")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string TableGetColumnNameS([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) - { - string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative(columnN)); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetColumnFlags")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetColumnFlags")] - internal static extern ImGuiTableColumnFlags TableGetColumnFlagsNative([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN); - - /// /// return column flags so you can query their EnabledVisibleSortedHovered status flags. Pass -1 to use current column. /// [NativeName(NativeNameType.Func, "igTableGetColumnFlags")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] - public static ImGuiTableColumnFlags TableGetColumnFlags([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) - { - ImGuiTableColumnFlags ret = TableGetColumnFlagsNative(columnN); - return ret; - } - - /// /// return column flags so you can query their EnabledVisibleSortedHovered status flags. Pass -1 to use current column. /// [NativeName(NativeNameType.Func, "igTableGetColumnFlags")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] - public static ImGuiTableColumnFlags TableGetColumnFlags() - { - ImGuiTableColumnFlags ret = TableGetColumnFlagsNative((int)(-1)); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableSetColumnEnabled")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSetColumnEnabled")] - internal static extern void TableSetColumnEnabledNative([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "bool")] byte v); - - /// /// change user accessible enableddisabled state of a column. Set to false to hide the column. User can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody) /// [NativeName(NativeNameType.Func, "igTableSetColumnEnabled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetColumnEnabled([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "bool")] bool v) - { - TableSetColumnEnabledNative(columnN, v ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableSetBgColor")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSetBgColor")] - internal static extern void TableSetBgColorNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiTableBgTarget")] ImGuiTableBgTarget target, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "ImU32")] uint color, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN); - - /// /// change the color of a cell, row, or column. See ImGuiTableBgTarget_ flags for details. /// [NativeName(NativeNameType.Func, "igTableSetBgColor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetBgColor([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiTableBgTarget")] ImGuiTableBgTarget target, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "ImU32")] uint color, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) - { - TableSetBgColorNative(target, color, columnN); - } - - /// /// change the color of a cell, row, or column. See ImGuiTableBgTarget_ flags for details. /// [NativeName(NativeNameType.Func, "igTableSetBgColor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetBgColor([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiTableBgTarget")] ImGuiTableBgTarget target, [NativeName(NativeNameType.Param, "color")] [NativeName(NativeNameType.Type, "ImU32")] uint color) - { - TableSetBgColorNative(target, color, (int)(-1)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColumns")] - internal static extern void ColumnsNative([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] byte* id, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] byte border); - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] byte* id, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) - { - ColumnsNative(count, id, border ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] byte* id) - { - ColumnsNative(count, id, (byte)(1)); - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) - { - ColumnsNative(count, (byte*)(default), (byte)(1)); - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns() - { - ColumnsNative((int)(1), (byte*)(default), (byte)(1)); - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] byte* id) - { - ColumnsNative((int)(1), id, (byte)(1)); - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) - { - ColumnsNative(count, (byte*)(default), border ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) - { - ColumnsNative((int)(1), (byte*)(default), border ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] byte* id, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) - { - ColumnsNative((int)(1), id, border ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] ref byte id, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) - { - fixed (byte* pid = &id) - { - ColumnsNative(count, (byte*)pid, border ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] ref byte id) - { - fixed (byte* pid = &id) - { - ColumnsNative(count, (byte*)pid, (byte)(1)); - } - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] ref byte id) - { - fixed (byte* pid = &id) - { - ColumnsNative((int)(1), (byte*)pid, (byte)(1)); - } - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] ref byte id, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) - { - fixed (byte* pid = &id) - { - ColumnsNative((int)(1), (byte*)pid, border ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] string id, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColumnsNative(count, pStr0, border ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] string id) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColumnsNative(count, pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] string id) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColumnsNative((int)(1), pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Columns([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "const char*")] string id, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (id != null) - { - pStrSize0 = Utils.GetByteCountUTF8(id); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColumnsNative((int)(1), pStr0, border ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNextColumn")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNextColumn")] - internal static extern void NextColumnNative(); - - /// /// next column, defaults to current row or next row if the current row is finished /// [NativeName(NativeNameType.Func, "igNextColumn")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NextColumn() - { - NextColumnNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetColumnIndex")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetColumnIndex")] - internal static extern int GetColumnIndexNative(); - - /// /// get current column index /// [NativeName(NativeNameType.Func, "igGetColumnIndex")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetColumnIndex() - { - int ret = GetColumnIndexNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetColumnWidth")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetColumnWidth")] - internal static extern float GetColumnWidthNative([NativeName(NativeNameType.Param, "column_index")] [NativeName(NativeNameType.Type, "int")] int columnIndex); - - /// /// get column width (in pixels). pass -1 to use current column /// [NativeName(NativeNameType.Func, "igGetColumnWidth")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetColumnWidth([NativeName(NativeNameType.Param, "column_index")] [NativeName(NativeNameType.Type, "int")] int columnIndex) - { - float ret = GetColumnWidthNative(columnIndex); - return ret; - } - - /// /// get column width (in pixels). pass -1 to use current column /// [NativeName(NativeNameType.Func, "igGetColumnWidth")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetColumnWidth() - { - float ret = GetColumnWidthNative((int)(-1)); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetColumnWidth")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetColumnWidth")] - internal static extern void SetColumnWidthNative([NativeName(NativeNameType.Param, "column_index")] [NativeName(NativeNameType.Type, "int")] int columnIndex, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width); - - /// /// set column width (in pixels). pass -1 to use current column /// [NativeName(NativeNameType.Func, "igSetColumnWidth")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetColumnWidth([NativeName(NativeNameType.Param, "column_index")] [NativeName(NativeNameType.Type, "int")] int columnIndex, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) - { - SetColumnWidthNative(columnIndex, width); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetColumnOffset")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetColumnOffset")] - internal static extern float GetColumnOffsetNative([NativeName(NativeNameType.Param, "column_index")] [NativeName(NativeNameType.Type, "int")] int columnIndex); - - /// /// get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f /// [NativeName(NativeNameType.Func, "igGetColumnOffset")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetColumnOffset([NativeName(NativeNameType.Param, "column_index")] [NativeName(NativeNameType.Type, "int")] int columnIndex) - { - float ret = GetColumnOffsetNative(columnIndex); - return ret; - } - - /// /// get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f /// [NativeName(NativeNameType.Func, "igGetColumnOffset")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetColumnOffset() - { - float ret = GetColumnOffsetNative((int)(-1)); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetColumnOffset")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetColumnOffset")] - internal static extern void SetColumnOffsetNative([NativeName(NativeNameType.Param, "column_index")] [NativeName(NativeNameType.Type, "int")] int columnIndex, [NativeName(NativeNameType.Param, "offset_x")] [NativeName(NativeNameType.Type, "float")] float offsetX); - - /// /// set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column /// [NativeName(NativeNameType.Func, "igSetColumnOffset")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetColumnOffset([NativeName(NativeNameType.Param, "column_index")] [NativeName(NativeNameType.Type, "int")] int columnIndex, [NativeName(NativeNameType.Param, "offset_x")] [NativeName(NativeNameType.Type, "float")] float offsetX) - { - SetColumnOffsetNative(columnIndex, offsetX); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetColumnsCount")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetColumnsCount")] - internal static extern int GetColumnsCountNative(); - - [NativeName(NativeNameType.Func, "igGetColumnsCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetColumnsCount() - { - int ret = GetColumnsCountNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginTabBar")] - internal static extern byte BeginTabBarNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabBarFlags")] ImGuiTabBarFlags flags); - - /// /// create and append into a TabBar /// [NativeName(NativeNameType.Func, "igBeginTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabBar([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabBarFlags")] ImGuiTabBarFlags flags) - { - byte ret = BeginTabBarNative(strId, flags); - return ret != 0; - } - - /// /// create and append into a TabBar /// [NativeName(NativeNameType.Func, "igBeginTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabBar([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId) - { - byte ret = BeginTabBarNative(strId, (ImGuiTabBarFlags)(0)); - return ret != 0; - } - - /// /// create and append into a TabBar /// [NativeName(NativeNameType.Func, "igBeginTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabBar([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabBarFlags")] ImGuiTabBarFlags flags) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTabBarNative((byte*)pstrId, flags); - return ret != 0; - } - } - - /// /// create and append into a TabBar /// [NativeName(NativeNameType.Func, "igBeginTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabBar([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId) - { - fixed (byte* pstrId = &strId) - { - byte ret = BeginTabBarNative((byte*)pstrId, (ImGuiTabBarFlags)(0)); - return ret != 0; - } - } - - /// /// create and append into a TabBar /// [NativeName(NativeNameType.Func, "igBeginTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabBar([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabBarFlags")] ImGuiTabBarFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabBarNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// create and append into a TabBar /// [NativeName(NativeNameType.Func, "igBeginTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabBar([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabBarNative(pStr0, (ImGuiTabBarFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndTabBar")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndTabBar")] - internal static extern void EndTabBarNative(); - - /// /// only call EndTabBar() if BeginTabBar() returns true! /// [NativeName(NativeNameType.Func, "igEndTabBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndTabBar() - { - EndTabBarNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginTabItem")] - internal static extern byte BeginTabItemNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags); - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - byte ret = BeginTabItemNative(label, pOpen, flags); - return ret != 0; - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) - { - byte ret = BeginTabItemNative(label, pOpen, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = BeginTabItemNative(label, (byte*)(default), (ImGuiTabItemFlags)(0)); - return ret != 0; - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - byte ret = BeginTabItemNative(label, (byte*)(default), flags); - return ret != 0; - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = BeginTabItemNative((byte*)plabel, pOpen, flags); - return ret != 0; - } - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) - { - fixed (byte* plabel = &label) - { - byte ret = BeginTabItemNative((byte*)plabel, pOpen, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = BeginTabItemNative((byte*)plabel, (byte*)(default), (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = BeginTabItemNative((byte*)plabel, (byte*)(default), flags); - return ret != 0; - } - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabItemNative(pStr0, pOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabItemNative(pStr0, pOpen, (ImGuiTabItemFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabItemNative(pStr0, (byte*)(default), (ImGuiTabItemFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginTabItemNative(pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative(label, (byte*)ppOpen, flags); - return ret != 0; - } - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative(label, (byte*)ppOpen, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative((byte*)plabel, (byte*)ppOpen, flags); - return ret != 0; - } - } - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative((byte*)plabel, (byte*)ppOpen, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative(pStr0, (byte*)ppOpen, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// create a Tab. Returns true if the Tab is selected. /// [NativeName(NativeNameType.Func, "igBeginTabItem")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabItem([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppOpen = &pOpen) - { - byte ret = BeginTabItemNative(pStr0, (byte*)ppOpen, (ImGuiTabItemFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndTabItem")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndTabItem")] - internal static extern void EndTabItemNative(); - - /// /// only call EndTabItem() if BeginTabItem() returns true! /// [NativeName(NativeNameType.Func, "igEndTabItem")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndTabItem() - { - EndTabItemNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTabItemButton")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabItemButton")] - internal static extern byte TabItemButtonNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags); - - /// /// create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. /// [NativeName(NativeNameType.Func, "igTabItemButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - byte ret = TabItemButtonNative(label, flags); - return ret != 0; - } - - /// /// create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. /// [NativeName(NativeNameType.Func, "igTabItemButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = TabItemButtonNative(label, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - - /// /// create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. /// [NativeName(NativeNameType.Func, "igTabItemButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - fixed (byte* plabel = &label) - { - byte ret = TabItemButtonNative((byte*)plabel, flags); - return ret != 0; - } - } - - /// /// create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. /// [NativeName(NativeNameType.Func, "igTabItemButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = TabItemButtonNative((byte*)plabel, (ImGuiTabItemFlags)(0)); - return ret != 0; - } - } - - /// /// create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. /// [NativeName(NativeNameType.Func, "igTabItemButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TabItemButtonNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. /// [NativeName(NativeNameType.Func, "igTabItemButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemButton([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TabItemButtonNative(pStr0, (ImGuiTabItemFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetTabItemClosed")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetTabItemClosed")] - internal static extern void SetTabItemClosedNative([NativeName(NativeNameType.Param, "tab_or_docked_window_label")] [NativeName(NativeNameType.Type, "const char*")] byte* tabOrDockedWindowLabel); - - /// /// notify TabBar or Docking system of a closed tabwindow ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name. /// [NativeName(NativeNameType.Func, "igSetTabItemClosed")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetTabItemClosed([NativeName(NativeNameType.Param, "tab_or_docked_window_label")] [NativeName(NativeNameType.Type, "const char*")] byte* tabOrDockedWindowLabel) - { - SetTabItemClosedNative(tabOrDockedWindowLabel); - } - - /// /// notify TabBar or Docking system of a closed tabwindow ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name. /// [NativeName(NativeNameType.Func, "igSetTabItemClosed")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetTabItemClosed([NativeName(NativeNameType.Param, "tab_or_docked_window_label")] [NativeName(NativeNameType.Type, "const char*")] ref byte tabOrDockedWindowLabel) - { - fixed (byte* ptabOrDockedWindowLabel = &tabOrDockedWindowLabel) - { - SetTabItemClosedNative((byte*)ptabOrDockedWindowLabel); - } - } - - /// /// notify TabBar or Docking system of a closed tabwindow ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name. /// [NativeName(NativeNameType.Func, "igSetTabItemClosed")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetTabItemClosed([NativeName(NativeNameType.Param, "tab_or_docked_window_label")] [NativeName(NativeNameType.Type, "const char*")] string tabOrDockedWindowLabel) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (tabOrDockedWindowLabel != null) - { - pStrSize0 = Utils.GetByteCountUTF8(tabOrDockedWindowLabel); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(tabOrDockedWindowLabel, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetTabItemClosedNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockSpace")] - internal static extern int DockSpaceNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass); - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass) - { - int ret = DockSpaceNative(id, size, flags, windowClass); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags) - { - int ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - int ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - int ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags) - { - int ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass) - { - int ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass) - { - int ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass) - { - int ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, windowClass); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - int ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - int ret = DockSpaceNative(id, size, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - int ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDockSpace")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpace([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - int ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockSpaceOverViewport")] - internal static extern int DockSpaceOverViewportNative([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass); - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass) - { - int ret = DockSpaceOverViewportNative(viewport, flags, windowClass); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags) - { - int ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ImGuiViewport* viewport) - { - int ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport() - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags) - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass) - { - int ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass) - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass) - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, windowClass); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ref ImGuiViewport viewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, windowClass); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ref ImGuiViewport viewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)(default)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)(default)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ref ImGuiViewport viewport, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), windowClass); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - int ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - int ret = DockSpaceOverViewportNative(viewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)(default), flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ref ImGuiViewport viewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ref ImGuiWindowClass windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, flags, (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igDockSpaceOverViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockSpaceOverViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const ImGuiViewport*")] ref ImGuiViewport viewport, [NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ref ImGuiWindowClass windowClass) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - int ret = DockSpaceOverViewportNative((ImGuiViewport*)pviewport, (ImGuiDockNodeFlags)(0), (ImGuiWindowClass*)pwindowClass); - return ret; - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetNextWindowDockID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextWindowDockID")] - internal static extern void SetNextWindowDockIDNative([NativeName(NativeNameType.Param, "dock_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dockId, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); - - /// /// set next window dock id /// [NativeName(NativeNameType.Func, "igSetNextWindowDockID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowDockID([NativeName(NativeNameType.Param, "dock_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dockId, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) - { - SetNextWindowDockIDNative(dockId, cond); - } - - /// /// set next window dock id /// [NativeName(NativeNameType.Func, "igSetNextWindowDockID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowDockID([NativeName(NativeNameType.Param, "dock_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dockId) - { - SetNextWindowDockIDNative(dockId, (ImGuiCond)(0)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetNextWindowClass")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextWindowClass")] - internal static extern void SetNextWindowClassNative([NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass); - - /// /// set next window class (control docking compatibility + provide hints to platform backend via custom viewport flags and platform parentchild relationship) /// [NativeName(NativeNameType.Func, "igSetNextWindowClass")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowClass([NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ImGuiWindowClass* windowClass) - { - SetNextWindowClassNative(windowClass); - } - - /// /// set next window class (control docking compatibility + provide hints to platform backend via custom viewport flags and platform parentchild relationship) /// [NativeName(NativeNameType.Func, "igSetNextWindowClass")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextWindowClass([NativeName(NativeNameType.Param, "window_class")] [NativeName(NativeNameType.Type, "const ImGuiWindowClass*")] ref ImGuiWindowClass windowClass) - { - fixed (ImGuiWindowClass* pwindowClass = &windowClass) - { - SetNextWindowClassNative((ImGuiWindowClass*)pwindowClass); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetWindowDockID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowDockID")] - internal static extern int GetWindowDockIDNative(); - - [NativeName(NativeNameType.Func, "igGetWindowDockID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetWindowDockID() - { - int ret = GetWindowDockIDNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsWindowDocked")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsWindowDocked")] - internal static extern byte IsWindowDockedNative(); - - /// /// is current window docked into another window? /// [NativeName(NativeNameType.Func, "igIsWindowDocked")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowDocked() - { - byte ret = IsWindowDockedNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLogToTTY")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLogToTTY")] - internal static extern void LogToTTYNative([NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth); - - /// /// start logging to tty (stdout) /// [NativeName(NativeNameType.Func, "igLogToTTY")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToTTY([NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth) - { - LogToTTYNative(autoOpenDepth); - } - - /// /// start logging to tty (stdout) /// [NativeName(NativeNameType.Func, "igLogToTTY")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToTTY() - { - LogToTTYNative((int)(-1)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLogToFile")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLogToFile")] - internal static extern void LogToFileNative([NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename); - - /// /// start logging to file /// [NativeName(NativeNameType.Func, "igLogToFile")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToFile([NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename) - { - LogToFileNative(autoOpenDepth, filename); - } - - /// /// start logging to file /// [NativeName(NativeNameType.Func, "igLogToFile")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToFile([NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth) - { - LogToFileNative(autoOpenDepth, (byte*)(default)); - } - - /// /// start logging to file /// [NativeName(NativeNameType.Func, "igLogToFile")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToFile() - { - LogToFileNative((int)(-1), (byte*)(default)); - } - - /// /// start logging to file /// [NativeName(NativeNameType.Func, "igLogToFile")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToFile([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename) - { - LogToFileNative((int)(-1), filename); - } - - /// /// start logging to file /// [NativeName(NativeNameType.Func, "igLogToFile")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToFile([NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename) - { - fixed (byte* pfilename = &filename) - { - LogToFileNative(autoOpenDepth, (byte*)pfilename); - } - } - - /// /// start logging to file /// [NativeName(NativeNameType.Func, "igLogToFile")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToFile([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename) - { - fixed (byte* pfilename = &filename) - { - LogToFileNative((int)(-1), (byte*)pfilename); - } - } - - /// /// start logging to file /// [NativeName(NativeNameType.Func, "igLogToFile")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToFile([NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogToFileNative(autoOpenDepth, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// start logging to file /// [NativeName(NativeNameType.Func, "igLogToFile")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToFile([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogToFileNative((int)(-1), pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLogToClipboard")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLogToClipboard")] - internal static extern void LogToClipboardNative([NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth); - - /// /// start logging to OS clipboard /// [NativeName(NativeNameType.Func, "igLogToClipboard")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToClipboard([NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth) - { - LogToClipboardNative(autoOpenDepth); - } - - /// /// start logging to OS clipboard /// [NativeName(NativeNameType.Func, "igLogToClipboard")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToClipboard() - { - LogToClipboardNative((int)(-1)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLogFinish")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLogFinish")] - internal static extern void LogFinishNative(); - - /// /// stop logging (close file, etc.) /// [NativeName(NativeNameType.Func, "igLogFinish")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogFinish() - { - LogFinishNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLogButtons")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLogButtons")] - internal static extern void LogButtonsNative(); - - /// /// helper to display buttons for logging to ttyfileclipboard /// [NativeName(NativeNameType.Func, "igLogButtons")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogButtons() - { - LogButtonsNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLogTextV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLogTextV")] - internal static extern void LogTextVNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "igLogTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogTextV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - LogTextVNative(fmt, args); - } - - [NativeName(NativeNameType.Func, "igLogTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogTextV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pfmt = &fmt) - { - LogTextVNative((byte*)pfmt, args); - } - } - - [NativeName(NativeNameType.Func, "igLogTextV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogTextV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogTextVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginDragDropSource")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginDragDropSource")] - internal static extern byte BeginDragDropSourceNative([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDragDropFlags")] ImGuiDragDropFlags flags); - - /// /// call after submitting an item which may be dragged. when this return true, you can call SetDragDropPayload() + EndDragDropSource() /// [NativeName(NativeNameType.Func, "igBeginDragDropSource")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginDragDropSource([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDragDropFlags")] ImGuiDragDropFlags flags) - { - byte ret = BeginDragDropSourceNative(flags); - return ret != 0; - } - - /// /// call after submitting an item which may be dragged. when this return true, you can call SetDragDropPayload() + EndDragDropSource() /// [NativeName(NativeNameType.Func, "igBeginDragDropSource")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginDragDropSource() - { - byte ret = BeginDragDropSourceNative((ImGuiDragDropFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetDragDropPayload")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetDragDropPayload")] - internal static extern byte SetDragDropPayloadNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] byte* type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); - - /// /// type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. /// [NativeName(NativeNameType.Func, "igSetDragDropPayload")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SetDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] byte* type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) - { - byte ret = SetDragDropPayloadNative(type, data, sz, cond); - return ret != 0; - } - - /// /// type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. /// [NativeName(NativeNameType.Func, "igSetDragDropPayload")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SetDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] byte* type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz) - { - byte ret = SetDragDropPayloadNative(type, data, sz, (ImGuiCond)(0)); - return ret != 0; - } - - /// /// type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. /// [NativeName(NativeNameType.Func, "igSetDragDropPayload")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SetDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] ref byte type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) - { - fixed (byte* ptype = &type) - { - byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, cond); - return ret != 0; - } - } - - /// /// type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. /// [NativeName(NativeNameType.Func, "igSetDragDropPayload")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SetDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] ref byte type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz) - { - fixed (byte* ptype = &type) - { - byte ret = SetDragDropPayloadNative((byte*)ptype, data, sz, (ImGuiCond)(0)); - return ret != 0; - } - } - - /// /// type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. /// [NativeName(NativeNameType.Func, "igSetDragDropPayload")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SetDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] string type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SetDragDropPayloadNative(pStr0, data, sz, cond); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. /// [NativeName(NativeNameType.Func, "igSetDragDropPayload")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SetDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] string type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "size_t")] nuint sz) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = SetDragDropPayloadNative(pStr0, data, sz, (ImGuiCond)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndDragDropSource")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndDragDropSource")] - internal static extern void EndDragDropSourceNative(); - - /// /// only call EndDragDropSource() if BeginDragDropSource() returns true! /// [NativeName(NativeNameType.Func, "igEndDragDropSource")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndDragDropSource() - { - EndDragDropSourceNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginDragDropTarget")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginDragDropTarget")] - internal static extern byte BeginDragDropTargetNative(); - - /// /// call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget() /// [NativeName(NativeNameType.Func, "igBeginDragDropTarget")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginDragDropTarget() - { - byte ret = BeginDragDropTargetNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igAcceptDragDropPayload")] - [return: NativeName(NativeNameType.Type, "const ImGuiPayload*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igAcceptDragDropPayload")] - internal static extern ImGuiPayload* AcceptDragDropPayloadNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] byte* type, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDragDropFlags")] ImGuiDragDropFlags flags); - - /// /// accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. /// [NativeName(NativeNameType.Func, "igAcceptDragDropPayload")] - [return: NativeName(NativeNameType.Type, "const ImGuiPayload*")] - public static ImGuiPayload* AcceptDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] byte* type, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDragDropFlags")] ImGuiDragDropFlags flags) - { - ImGuiPayload* ret = AcceptDragDropPayloadNative(type, flags); - return ret; - } - - /// /// accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. /// [NativeName(NativeNameType.Func, "igAcceptDragDropPayload")] - [return: NativeName(NativeNameType.Type, "const ImGuiPayload*")] - public static ImGuiPayload* AcceptDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] byte* type) - { - ImGuiPayload* ret = AcceptDragDropPayloadNative(type, (ImGuiDragDropFlags)(0)); - return ret; - } - - /// /// accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. /// [NativeName(NativeNameType.Func, "igAcceptDragDropPayload")] - [return: NativeName(NativeNameType.Type, "const ImGuiPayload*")] - public static ImGuiPayload* AcceptDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] ref byte type, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDragDropFlags")] ImGuiDragDropFlags flags) - { - fixed (byte* ptype = &type) - { - ImGuiPayload* ret = AcceptDragDropPayloadNative((byte*)ptype, flags); - return ret; - } - } - - /// /// accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. /// [NativeName(NativeNameType.Func, "igAcceptDragDropPayload")] - [return: NativeName(NativeNameType.Type, "const ImGuiPayload*")] - public static ImGuiPayload* AcceptDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] ref byte type) - { - fixed (byte* ptype = &type) - { - ImGuiPayload* ret = AcceptDragDropPayloadNative((byte*)ptype, (ImGuiDragDropFlags)(0)); - return ret; - } - } - - /// /// accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. /// [NativeName(NativeNameType.Func, "igAcceptDragDropPayload")] - [return: NativeName(NativeNameType.Type, "const ImGuiPayload*")] - public static ImGuiPayload* AcceptDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] string type, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDragDropFlags")] ImGuiDragDropFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiPayload* ret = AcceptDragDropPayloadNative(pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. /// [NativeName(NativeNameType.Func, "igAcceptDragDropPayload")] - [return: NativeName(NativeNameType.Type, "const ImGuiPayload*")] - public static ImGuiPayload* AcceptDragDropPayload([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] string type) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiPayload* ret = AcceptDragDropPayloadNative(pStr0, (ImGuiDragDropFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndDragDropTarget")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndDragDropTarget")] - internal static extern void EndDragDropTargetNative(); - - /// /// only call EndDragDropTarget() if BeginDragDropTarget() returns true! /// [NativeName(NativeNameType.Func, "igEndDragDropTarget")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndDragDropTarget() - { - EndDragDropTargetNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetDragDropPayload")] - [return: NativeName(NativeNameType.Type, "const ImGuiPayload*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetDragDropPayload")] - internal static extern ImGuiPayload* GetDragDropPayloadNative(); - - /// /// peek directly into the current payload from anywhere. may return NULL. use ImGuiPayload::IsDataType() to test for the payload type. /// [NativeName(NativeNameType.Func, "igGetDragDropPayload")] - [return: NativeName(NativeNameType.Type, "const ImGuiPayload*")] - public static ImGuiPayload* GetDragDropPayload() - { - ImGuiPayload* ret = GetDragDropPayloadNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginDisabled")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginDisabled")] - internal static extern void BeginDisabledNative([NativeName(NativeNameType.Param, "disabled")] [NativeName(NativeNameType.Type, "bool")] byte disabled); - - [NativeName(NativeNameType.Func, "igBeginDisabled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginDisabled([NativeName(NativeNameType.Param, "disabled")] [NativeName(NativeNameType.Type, "bool")] bool disabled) - { - BeginDisabledNative(disabled ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "igBeginDisabled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginDisabled() - { - BeginDisabledNative((byte)(1)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndDisabled")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndDisabled")] - internal static extern void EndDisabledNative(); - - [NativeName(NativeNameType.Func, "igEndDisabled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndDisabled() - { - EndDisabledNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPushClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushClipRect")] - internal static extern void PushClipRectNative([NativeName(NativeNameType.Param, "clip_rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMin, [NativeName(NativeNameType.Param, "clip_rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMax, [NativeName(NativeNameType.Param, "intersect_with_current_clip_rect")] [NativeName(NativeNameType.Type, "bool")] byte intersectWithCurrentClipRect); - - [NativeName(NativeNameType.Func, "igPushClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushClipRect([NativeName(NativeNameType.Param, "clip_rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMin, [NativeName(NativeNameType.Param, "clip_rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMax, [NativeName(NativeNameType.Param, "intersect_with_current_clip_rect")] [NativeName(NativeNameType.Type, "bool")] bool intersectWithCurrentClipRect) - { - PushClipRectNative(clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPopClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopClipRect")] - internal static extern void PopClipRectNative(); - - [NativeName(NativeNameType.Func, "igPopClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopClipRect() - { - PopClipRectNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetItemDefaultFocus")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetItemDefaultFocus")] - internal static extern void SetItemDefaultFocusNative(); - - /// /// make last item the default focused item of a window. /// [NativeName(NativeNameType.Func, "igSetItemDefaultFocus")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetItemDefaultFocus() - { - SetItemDefaultFocusNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetKeyboardFocusHere")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetKeyboardFocusHere")] - internal static extern void SetKeyboardFocusHereNative([NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "int")] int offset); - - /// /// focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. /// [NativeName(NativeNameType.Func, "igSetKeyboardFocusHere")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetKeyboardFocusHere([NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "int")] int offset) - { - SetKeyboardFocusHereNative(offset); - } - - /// /// focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. /// [NativeName(NativeNameType.Func, "igSetKeyboardFocusHere")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetKeyboardFocusHere() - { - SetKeyboardFocusHereNative((int)(0)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetNextItemAllowOverlap")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextItemAllowOverlap")] - internal static extern void SetNextItemAllowOverlapNative(); - - /// /// allow next item to be overlapped by a subsequent item. Useful with invisible buttons, selectable, treenode covering an area where subsequent items may need to be added. Note that both Selectable() and TreeNode() have dedicated flags doing this. /// [NativeName(NativeNameType.Func, "igSetNextItemAllowOverlap")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextItemAllowOverlap() - { - SetNextItemAllowOverlapNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsItemHovered")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsItemHovered")] - internal static extern byte IsItemHoveredNative([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiHoveredFlags")] ImGuiHoveredFlags flags); - - /// /// is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. /// [NativeName(NativeNameType.Func, "igIsItemHovered")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemHovered([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiHoveredFlags")] ImGuiHoveredFlags flags) - { - byte ret = IsItemHoveredNative(flags); - return ret != 0; - } - - /// /// is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. /// [NativeName(NativeNameType.Func, "igIsItemHovered")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemHovered() - { - byte ret = IsItemHoveredNative((ImGuiHoveredFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsItemActive")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsItemActive")] - internal static extern byte IsItemActiveNative(); - - /// /// is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false) /// [NativeName(NativeNameType.Func, "igIsItemActive")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemActive() - { - byte ret = IsItemActiveNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsItemFocused")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsItemFocused")] - internal static extern byte IsItemFocusedNative(); - - /// /// is the last item focused for keyboardgamepad navigation? /// [NativeName(NativeNameType.Func, "igIsItemFocused")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemFocused() - { - byte ret = IsItemFocusedNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsItemClicked")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsItemClicked")] - internal static extern byte IsItemClickedNative([NativeName(NativeNameType.Param, "mouse_button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton mouseButton); - - /// /// is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this is NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. /// [NativeName(NativeNameType.Func, "igIsItemClicked")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemClicked([NativeName(NativeNameType.Param, "mouse_button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton mouseButton) - { - byte ret = IsItemClickedNative(mouseButton); - return ret != 0; - } - - /// /// is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this is NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. /// [NativeName(NativeNameType.Func, "igIsItemClicked")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemClicked() - { - byte ret = IsItemClickedNative((ImGuiMouseButton)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsItemVisible")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsItemVisible")] - internal static extern byte IsItemVisibleNative(); - - /// /// is the last item visible? (items may be out of sight because of clippingscrolling) /// [NativeName(NativeNameType.Func, "igIsItemVisible")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemVisible() - { - byte ret = IsItemVisibleNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsItemEdited")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsItemEdited")] - internal static extern byte IsItemEditedNative(); - - /// /// did the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets. /// [NativeName(NativeNameType.Func, "igIsItemEdited")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemEdited() - { - byte ret = IsItemEditedNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsItemActivated")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsItemActivated")] - internal static extern byte IsItemActivatedNative(); - - /// /// was the last item just made active (item was previously inactive). /// [NativeName(NativeNameType.Func, "igIsItemActivated")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemActivated() - { - byte ret = IsItemActivatedNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsItemDeactivated")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsItemDeactivated")] - internal static extern byte IsItemDeactivatedNative(); - - /// /// was the last item just made inactive (item was previously active). Useful for UndoRedo patterns with widgets that require continuous editing. /// [NativeName(NativeNameType.Func, "igIsItemDeactivated")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemDeactivated() - { - byte ret = IsItemDeactivatedNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsItemDeactivatedAfterEdit")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsItemDeactivatedAfterEdit")] - internal static extern byte IsItemDeactivatedAfterEditNative(); - - /// /// was the last item just made inactive and made a value change when it was active? (e.g. SliderDrag moved). Useful for UndoRedo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()ListBox()Selectable() will return true even when clicking an already selected item). /// [NativeName(NativeNameType.Func, "igIsItemDeactivatedAfterEdit")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemDeactivatedAfterEdit() - { - byte ret = IsItemDeactivatedAfterEditNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsItemToggledOpen")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsItemToggledOpen")] - internal static extern byte IsItemToggledOpenNative(); - - /// /// was the last item open state toggled? set by TreeNode(). /// [NativeName(NativeNameType.Func, "igIsItemToggledOpen")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemToggledOpen() - { - byte ret = IsItemToggledOpenNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsAnyItemHovered")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsAnyItemHovered")] - internal static extern byte IsAnyItemHoveredNative(); - - /// /// is any item hovered? /// [NativeName(NativeNameType.Func, "igIsAnyItemHovered")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsAnyItemHovered() - { - byte ret = IsAnyItemHoveredNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsAnyItemActive")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsAnyItemActive")] - internal static extern byte IsAnyItemActiveNative(); - - /// /// is any item active? /// [NativeName(NativeNameType.Func, "igIsAnyItemActive")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsAnyItemActive() - { - byte ret = IsAnyItemActiveNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsAnyItemFocused")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsAnyItemFocused")] - internal static extern byte IsAnyItemFocusedNative(); - - /// /// is any item focused? /// [NativeName(NativeNameType.Func, "igIsAnyItemFocused")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsAnyItemFocused() - { - byte ret = IsAnyItemFocusedNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetItemID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetItemID")] - internal static extern int GetItemIDNative(); - - /// /// get ID of last item (~~ often same ImGui::GetID(label) beforehand) /// [NativeName(NativeNameType.Func, "igGetItemID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetItemID() - { - int ret = GetItemIDNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetItemRectMin")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetItemRectMin")] - internal static extern void GetItemRectMinNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - /// /// get upper-left bounding rectangle of the last item (screen space) /// [NativeName(NativeNameType.Func, "igGetItemRectMin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetItemRectMin([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) - { - GetItemRectMinNative(pOut); - } - - /// /// get upper-left bounding rectangle of the last item (screen space) /// [NativeName(NativeNameType.Func, "igGetItemRectMin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetItemRectMin([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetItemRectMinNative((Vector2*)ppOut); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetItemRectMax")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetItemRectMax")] - internal static extern void GetItemRectMaxNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - /// /// get lower-right bounding rectangle of the last item (screen space) /// [NativeName(NativeNameType.Func, "igGetItemRectMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetItemRectMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) - { - GetItemRectMaxNative(pOut); - } - - /// /// get lower-right bounding rectangle of the last item (screen space) /// [NativeName(NativeNameType.Func, "igGetItemRectMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetItemRectMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetItemRectMaxNative((Vector2*)ppOut); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetItemRectSize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetItemRectSize")] - internal static extern void GetItemRectSizeNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - /// /// get size of last item /// [NativeName(NativeNameType.Func, "igGetItemRectSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetItemRectSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) - { - GetItemRectSizeNative(pOut); - } - - /// /// get size of last item /// [NativeName(NativeNameType.Func, "igGetItemRectSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetItemRectSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetItemRectSizeNative((Vector2*)ppOut); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetMainViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiViewport*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetMainViewport")] - internal static extern ImGuiViewport* GetMainViewportNative(); - - /// /// return primarydefault viewport. This can never be NULL. /// [NativeName(NativeNameType.Func, "igGetMainViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiViewport*")] - public static ImGuiViewport* GetMainViewport() - { - ImGuiViewport* ret = GetMainViewportNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetBackgroundDrawList_Nil")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetBackgroundDrawList_Nil")] - internal static extern ImDrawList* GetBackgroundDrawListNative(); - - /// /// get background draw list for the viewport associated to the current window. this draw list will be the first rendering one. Useful to quickly draw shapestext behind dear imgui contents. /// [NativeName(NativeNameType.Func, "igGetBackgroundDrawList_Nil")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* GetBackgroundDrawList() - { - ImDrawList* ret = GetBackgroundDrawListNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetForegroundDrawList_Nil")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetForegroundDrawList_Nil")] - internal static extern ImDrawList* GetForegroundDrawListNative(); - - /// /// get foreground draw list for the viewport associated to the current window. this draw list will be the last rendered one. Useful to quickly draw shapestext over dear imgui contents. /// [NativeName(NativeNameType.Func, "igGetForegroundDrawList_Nil")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* GetForegroundDrawList() - { - ImDrawList* ret = GetForegroundDrawListNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetBackgroundDrawList_ViewportPtr")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetBackgroundDrawList_ViewportPtr")] - internal static extern ImDrawList* GetBackgroundDrawListNative([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport); - - /// /// get background draw list for the given viewport. this draw list will be the first rendering one. Useful to quickly draw shapestext behind dear imgui contents. /// [NativeName(NativeNameType.Func, "igGetBackgroundDrawList_ViewportPtr")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* GetBackgroundDrawList([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport) - { - ImDrawList* ret = GetBackgroundDrawListNative(viewport); - return ret; - } - - /// /// get background draw list for the given viewport. this draw list will be the first rendering one. Useful to quickly draw shapestext behind dear imgui contents. /// [NativeName(NativeNameType.Func, "igGetBackgroundDrawList_ViewportPtr")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* GetBackgroundDrawList([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - ImDrawList* ret = GetBackgroundDrawListNative((ImGuiViewport*)pviewport); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetForegroundDrawList_ViewportPtr")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetForegroundDrawList_ViewportPtr")] - internal static extern ImDrawList* GetForegroundDrawListNative([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport); - - /// /// get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapestext over dear imgui contents. /// [NativeName(NativeNameType.Func, "igGetForegroundDrawList_ViewportPtr")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* GetForegroundDrawList([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport) - { - ImDrawList* ret = GetForegroundDrawListNative(viewport); - return ret; - } - - /// /// get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapestext over dear imgui contents. /// [NativeName(NativeNameType.Func, "igGetForegroundDrawList_ViewportPtr")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* GetForegroundDrawList([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - ImDrawList* ret = GetForegroundDrawListNative((ImGuiViewport*)pviewport); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsRectVisible_Nil")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsRectVisible_Nil")] - internal static extern byte IsRectVisibleNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size); - - /// /// test if rectangle (of given size, starting from cursor position) is visible not clipped. /// [NativeName(NativeNameType.Func, "igIsRectVisible_Nil")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsRectVisible([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = IsRectVisibleNative(size); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsRectVisible_Vec2")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsRectVisible_Vec2")] - internal static extern byte IsRectVisibleNative([NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax); - - /// /// test if rectangle (in screen space) is visible not clipped. to perform coarse clipping on user's side. /// [NativeName(NativeNameType.Func, "igIsRectVisible_Vec2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsRectVisible([NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax) - { - byte ret = IsRectVisibleNative(rectMin, rectMax); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetTime")] - [return: NativeName(NativeNameType.Type, "double")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetTime")] - internal static extern double GetTimeNative(); - - /// /// get global imgui time. incremented by io.DeltaTime every frame. /// [NativeName(NativeNameType.Func, "igGetTime")] - [return: NativeName(NativeNameType.Type, "double")] - public static double GetTime() - { - double ret = GetTimeNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetFrameCount")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetFrameCount")] - internal static extern int GetFrameCountNative(); - - /// /// get global imgui frame count. incremented by 1 every frame. /// [NativeName(NativeNameType.Func, "igGetFrameCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetFrameCount() - { - int ret = GetFrameCountNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetDrawListSharedData")] - [return: NativeName(NativeNameType.Type, "ImDrawListSharedData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetDrawListSharedData")] - internal static extern ImDrawListSharedData* GetDrawListSharedDataNative(); - - /// /// you may use this when creating your own ImDrawList instances. /// [NativeName(NativeNameType.Func, "igGetDrawListSharedData")] - [return: NativeName(NativeNameType.Type, "ImDrawListSharedData*")] - public static ImDrawListSharedData* GetDrawListSharedData() - { - ImDrawListSharedData* ret = GetDrawListSharedDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetStyleColorName")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetStyleColorName")] - internal static extern byte* GetStyleColorNameNative([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx); - - /// /// get a string corresponding to the enum value (for display, saving, etc.). /// [NativeName(NativeNameType.Func, "igGetStyleColorName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* GetStyleColorName([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx) - { - byte* ret = GetStyleColorNameNative(idx); - return ret; - } - - /// /// get a string corresponding to the enum value (for display, saving, etc.). /// [NativeName(NativeNameType.Func, "igGetStyleColorName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string GetStyleColorNameS([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiCol")] ImGuiCol idx) - { - string ret = Utils.DecodeStringUTF8(GetStyleColorNameNative(idx)); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetStateStorage")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetStateStorage")] - internal static extern void SetStateStorageNative([NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* storage); - - /// /// replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it) /// [NativeName(NativeNameType.Func, "igSetStateStorage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetStateStorage([NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* storage) - { - SetStateStorageNative(storage); - } - - /// /// replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it) /// [NativeName(NativeNameType.Func, "igSetStateStorage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetStateStorage([NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage storage) - { - fixed (ImGuiStorage* pstorage = &storage) - { - SetStateStorageNative((ImGuiStorage*)pstorage); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetStateStorage")] - [return: NativeName(NativeNameType.Type, "ImGuiStorage*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetStateStorage")] - internal static extern ImGuiStorage* GetStateStorageNative(); - - [NativeName(NativeNameType.Func, "igGetStateStorage")] - [return: NativeName(NativeNameType.Type, "ImGuiStorage*")] - public static ImGuiStorage* GetStateStorage() - { - ImGuiStorage* ret = GetStateStorageNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginChildFrame")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginChildFrame")] - internal static extern byte BeginChildFrameNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags); - - /// /// helper to create a child window scrolling region that looks like a normal widget frame /// [NativeName(NativeNameType.Func, "igBeginChildFrame")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChildFrame([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) - { - byte ret = BeginChildFrameNative(id, size, flags); - return ret != 0; - } - - /// /// helper to create a child window scrolling region that looks like a normal widget frame /// [NativeName(NativeNameType.Func, "igBeginChildFrame")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChildFrame([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - byte ret = BeginChildFrameNative(id, size, (ImGuiWindowFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndChildFrame")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndChildFrame")] - internal static extern void EndChildFrameNative(); - - /// /// always call EndChildFrame() regardless of BeginChildFrame() return values (which indicates a collapsedclipped window) /// [NativeName(NativeNameType.Func, "igEndChildFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndChildFrame() - { - EndChildFrameNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCalcTextSize")] - internal static extern void CalcTextSizeNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] byte hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth); - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - CalcTextSizeNative(pOut, text, textEnd, (byte)(0), (float)(-1.0f)); - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) - { - CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), (float)(-1.0f)); - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - CalcTextSizeNative(pOut, text, textEnd, (byte)(0), wrapWidth); - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), wrapWidth); - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, textEnd, (byte)(0), (float)(-1.0f)); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), (byte)(0), (float)(-1.0f)); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, textEnd, (byte)(0), wrapWidth); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), (byte)(0), wrapWidth); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, textEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, textEnd, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, textEnd, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, text, pStr0, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative(pOut, text, pStr0, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, text, pStr0, (byte)(0), (float)(-1.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, text, pStr0, (byte)(0), wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative(pOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative(pOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative(pOut, pStr0, pStr1, (byte)(0), (float)(-1.0f)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative(pOut, pStr0, pStr1, (byte)(0), wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - } - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - } - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); - } - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeNative((Vector2*)ppOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); - } - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "hide_text_after_double_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterDoubleHash) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, (byte)(0), (float)(-1.0f)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igCalcTextSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeNative((Vector2*)ppOut, pStr0, pStr1, (byte)(0), wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igColorConvertU32ToFloat4")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorConvertU32ToFloat4")] - internal static extern void ColorConvertU32ToFloat4Native([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec4*")] Vector4* pOut, [NativeName(NativeNameType.Param, "in")] [NativeName(NativeNameType.Type, "ImU32")] uint input); - - [NativeName(NativeNameType.Func, "igColorConvertU32ToFloat4")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertU32ToFloat4([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec4*")] Vector4* pOut, [NativeName(NativeNameType.Param, "in")] [NativeName(NativeNameType.Type, "ImU32")] uint input) - { - ColorConvertU32ToFloat4Native(pOut, input); - } - - [NativeName(NativeNameType.Func, "igColorConvertU32ToFloat4")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertU32ToFloat4([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec4*")] ref Vector4 pOut, [NativeName(NativeNameType.Param, "in")] [NativeName(NativeNameType.Type, "ImU32")] uint input) - { - fixed (Vector4* ppOut = &pOut) - { - ColorConvertU32ToFloat4Native((Vector4*)ppOut, input); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igColorConvertFloat4ToU32")] - [return: NativeName(NativeNameType.Type, "ImU32")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorConvertFloat4ToU32")] - internal static extern uint ColorConvertFloat4ToU32Native([NativeName(NativeNameType.Param, "in")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 input); - - [NativeName(NativeNameType.Func, "igColorConvertFloat4ToU32")] - [return: NativeName(NativeNameType.Type, "ImU32")] - public static uint ColorConvertFloat4ToU32([NativeName(NativeNameType.Param, "in")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 input) - { - uint ret = ColorConvertFloat4ToU32Native(input); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igColorConvertRGBtoHSV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorConvertRGBtoHSV")] - internal static extern void ColorConvertRGBtoHSVNative([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b, [NativeName(NativeNameType.Param, "out_h")] [NativeName(NativeNameType.Type, "float*")] float* outH, [NativeName(NativeNameType.Param, "out_s")] [NativeName(NativeNameType.Type, "float*")] float* outS, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] float* outV); - - [NativeName(NativeNameType.Func, "igColorConvertRGBtoHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertRGBtoHSV([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b, [NativeName(NativeNameType.Param, "out_h")] [NativeName(NativeNameType.Type, "float*")] float* outH, [NativeName(NativeNameType.Param, "out_s")] [NativeName(NativeNameType.Type, "float*")] float* outS, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] float* outV) - { - ColorConvertRGBtoHSVNative(r, g, b, outH, outS, outV); - } - - [NativeName(NativeNameType.Func, "igColorConvertRGBtoHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertRGBtoHSV([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b, [NativeName(NativeNameType.Param, "out_h")] [NativeName(NativeNameType.Type, "float*")] ref float outH, [NativeName(NativeNameType.Param, "out_s")] [NativeName(NativeNameType.Type, "float*")] float* outS, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] float* outV) - { - fixed (float* poutH = &outH) - { - ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, outS, outV); - } - } - - [NativeName(NativeNameType.Func, "igColorConvertRGBtoHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertRGBtoHSV([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b, [NativeName(NativeNameType.Param, "out_h")] [NativeName(NativeNameType.Type, "float*")] float* outH, [NativeName(NativeNameType.Param, "out_s")] [NativeName(NativeNameType.Type, "float*")] ref float outS, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] float* outV) - { - fixed (float* poutS = &outS) - { - ColorConvertRGBtoHSVNative(r, g, b, outH, (float*)poutS, outV); - } - } - - [NativeName(NativeNameType.Func, "igColorConvertRGBtoHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertRGBtoHSV([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b, [NativeName(NativeNameType.Param, "out_h")] [NativeName(NativeNameType.Type, "float*")] ref float outH, [NativeName(NativeNameType.Param, "out_s")] [NativeName(NativeNameType.Type, "float*")] ref float outS, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] float* outV) - { - fixed (float* poutH = &outH) - { - fixed (float* poutS = &outS) - { - ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, (float*)poutS, outV); - } - } - } - - [NativeName(NativeNameType.Func, "igColorConvertRGBtoHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertRGBtoHSV([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b, [NativeName(NativeNameType.Param, "out_h")] [NativeName(NativeNameType.Type, "float*")] float* outH, [NativeName(NativeNameType.Param, "out_s")] [NativeName(NativeNameType.Type, "float*")] float* outS, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] ref float outV) - { - fixed (float* poutV = &outV) - { - ColorConvertRGBtoHSVNative(r, g, b, outH, outS, (float*)poutV); - } - } - - [NativeName(NativeNameType.Func, "igColorConvertRGBtoHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertRGBtoHSV([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b, [NativeName(NativeNameType.Param, "out_h")] [NativeName(NativeNameType.Type, "float*")] ref float outH, [NativeName(NativeNameType.Param, "out_s")] [NativeName(NativeNameType.Type, "float*")] float* outS, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] ref float outV) - { - fixed (float* poutH = &outH) - { - fixed (float* poutV = &outV) - { - ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, outS, (float*)poutV); - } - } - } - - [NativeName(NativeNameType.Func, "igColorConvertRGBtoHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertRGBtoHSV([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b, [NativeName(NativeNameType.Param, "out_h")] [NativeName(NativeNameType.Type, "float*")] float* outH, [NativeName(NativeNameType.Param, "out_s")] [NativeName(NativeNameType.Type, "float*")] ref float outS, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] ref float outV) - { - fixed (float* poutS = &outS) - { - fixed (float* poutV = &outV) - { - ColorConvertRGBtoHSVNative(r, g, b, outH, (float*)poutS, (float*)poutV); - } - } - } - - [NativeName(NativeNameType.Func, "igColorConvertRGBtoHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertRGBtoHSV([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b, [NativeName(NativeNameType.Param, "out_h")] [NativeName(NativeNameType.Type, "float*")] ref float outH, [NativeName(NativeNameType.Param, "out_s")] [NativeName(NativeNameType.Type, "float*")] ref float outS, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] ref float outV) - { - fixed (float* poutH = &outH) - { - fixed (float* poutS = &outS) - { - fixed (float* poutV = &outV) - { - ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, (float*)poutS, (float*)poutV); - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igColorConvertHSVtoRGB")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorConvertHSVtoRGB")] - internal static extern void ColorConvertHSVtoRGBNative([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "out_r")] [NativeName(NativeNameType.Type, "float*")] float* outR, [NativeName(NativeNameType.Param, "out_g")] [NativeName(NativeNameType.Type, "float*")] float* outG, [NativeName(NativeNameType.Param, "out_b")] [NativeName(NativeNameType.Type, "float*")] float* outB); - - [NativeName(NativeNameType.Func, "igColorConvertHSVtoRGB")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertHSVtoRGB([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "out_r")] [NativeName(NativeNameType.Type, "float*")] float* outR, [NativeName(NativeNameType.Param, "out_g")] [NativeName(NativeNameType.Type, "float*")] float* outG, [NativeName(NativeNameType.Param, "out_b")] [NativeName(NativeNameType.Type, "float*")] float* outB) - { - ColorConvertHSVtoRGBNative(h, s, v, outR, outG, outB); - } - - [NativeName(NativeNameType.Func, "igColorConvertHSVtoRGB")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertHSVtoRGB([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "out_r")] [NativeName(NativeNameType.Type, "float*")] ref float outR, [NativeName(NativeNameType.Param, "out_g")] [NativeName(NativeNameType.Type, "float*")] float* outG, [NativeName(NativeNameType.Param, "out_b")] [NativeName(NativeNameType.Type, "float*")] float* outB) - { - fixed (float* poutR = &outR) - { - ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, outG, outB); - } - } - - [NativeName(NativeNameType.Func, "igColorConvertHSVtoRGB")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertHSVtoRGB([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "out_r")] [NativeName(NativeNameType.Type, "float*")] float* outR, [NativeName(NativeNameType.Param, "out_g")] [NativeName(NativeNameType.Type, "float*")] ref float outG, [NativeName(NativeNameType.Param, "out_b")] [NativeName(NativeNameType.Type, "float*")] float* outB) - { - fixed (float* poutG = &outG) - { - ColorConvertHSVtoRGBNative(h, s, v, outR, (float*)poutG, outB); - } - } - - [NativeName(NativeNameType.Func, "igColorConvertHSVtoRGB")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertHSVtoRGB([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "out_r")] [NativeName(NativeNameType.Type, "float*")] ref float outR, [NativeName(NativeNameType.Param, "out_g")] [NativeName(NativeNameType.Type, "float*")] ref float outG, [NativeName(NativeNameType.Param, "out_b")] [NativeName(NativeNameType.Type, "float*")] float* outB) - { - fixed (float* poutR = &outR) - { - fixed (float* poutG = &outG) - { - ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, (float*)poutG, outB); - } - } - } - - [NativeName(NativeNameType.Func, "igColorConvertHSVtoRGB")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertHSVtoRGB([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "out_r")] [NativeName(NativeNameType.Type, "float*")] float* outR, [NativeName(NativeNameType.Param, "out_g")] [NativeName(NativeNameType.Type, "float*")] float* outG, [NativeName(NativeNameType.Param, "out_b")] [NativeName(NativeNameType.Type, "float*")] ref float outB) - { - fixed (float* poutB = &outB) - { - ColorConvertHSVtoRGBNative(h, s, v, outR, outG, (float*)poutB); - } - } - - [NativeName(NativeNameType.Func, "igColorConvertHSVtoRGB")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertHSVtoRGB([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "out_r")] [NativeName(NativeNameType.Type, "float*")] ref float outR, [NativeName(NativeNameType.Param, "out_g")] [NativeName(NativeNameType.Type, "float*")] float* outG, [NativeName(NativeNameType.Param, "out_b")] [NativeName(NativeNameType.Type, "float*")] ref float outB) - { - fixed (float* poutR = &outR) - { - fixed (float* poutB = &outB) - { - ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, outG, (float*)poutB); - } - } - } - - [NativeName(NativeNameType.Func, "igColorConvertHSVtoRGB")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertHSVtoRGB([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "out_r")] [NativeName(NativeNameType.Type, "float*")] float* outR, [NativeName(NativeNameType.Param, "out_g")] [NativeName(NativeNameType.Type, "float*")] ref float outG, [NativeName(NativeNameType.Param, "out_b")] [NativeName(NativeNameType.Type, "float*")] ref float outB) - { - fixed (float* poutG = &outG) - { - fixed (float* poutB = &outB) - { - ColorConvertHSVtoRGBNative(h, s, v, outR, (float*)poutG, (float*)poutB); - } - } - } - - [NativeName(NativeNameType.Func, "igColorConvertHSVtoRGB")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorConvertHSVtoRGB([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "out_r")] [NativeName(NativeNameType.Type, "float*")] ref float outR, [NativeName(NativeNameType.Param, "out_g")] [NativeName(NativeNameType.Type, "float*")] ref float outG, [NativeName(NativeNameType.Param, "out_b")] [NativeName(NativeNameType.Type, "float*")] ref float outB) - { - fixed (float* poutR = &outR) - { - fixed (float* poutG = &outG) - { - fixed (float* poutB = &outB) - { - ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, (float*)poutG, (float*)poutB); - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsKeyDown_Nil")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsKeyDown_Nil")] - internal static extern byte IsKeyDownNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - /// /// is key being held. /// [NativeName(NativeNameType.Func, "igIsKeyDown_Nil")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsKeyDown([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte ret = IsKeyDownNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsKeyPressed_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsKeyPressed_Bool")] - internal static extern byte IsKeyPressedNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "repeat")] [NativeName(NativeNameType.Type, "bool")] byte repeat); - - /// /// was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay KeyRepeatRate /// [NativeName(NativeNameType.Func, "igIsKeyPressed_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsKeyPressed([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "repeat")] [NativeName(NativeNameType.Type, "bool")] bool repeat) - { - byte ret = IsKeyPressedNative(key, repeat ? (byte)1 : (byte)0); - return ret != 0; - } - - /// /// was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay KeyRepeatRate /// [NativeName(NativeNameType.Func, "igIsKeyPressed_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsKeyPressed([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte ret = IsKeyPressedNative(key, (byte)(1)); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsKeyReleased_Nil")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsKeyReleased_Nil")] - internal static extern byte IsKeyReleasedNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - /// /// was key released (went from Down to !Down)? /// [NativeName(NativeNameType.Func, "igIsKeyReleased_Nil")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsKeyReleased([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte ret = IsKeyReleasedNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetKeyPressedAmount")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetKeyPressedAmount")] - internal static extern int GetKeyPressedAmountNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "repeat_delay")] [NativeName(NativeNameType.Type, "float")] float repeatDelay, [NativeName(NativeNameType.Param, "rate")] [NativeName(NativeNameType.Type, "float")] float rate); - - /// /// uses provided repeat ratedelay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate /// [NativeName(NativeNameType.Func, "igGetKeyPressedAmount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetKeyPressedAmount([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "repeat_delay")] [NativeName(NativeNameType.Type, "float")] float repeatDelay, [NativeName(NativeNameType.Param, "rate")] [NativeName(NativeNameType.Type, "float")] float rate) - { - int ret = GetKeyPressedAmountNative(key, repeatDelay, rate); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetKeyName")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetKeyName")] - internal static extern byte* GetKeyNameNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - /// /// [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared. /// [NativeName(NativeNameType.Func, "igGetKeyName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* GetKeyName([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte* ret = GetKeyNameNative(key); - return ret; - } - - /// /// [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared. /// [NativeName(NativeNameType.Func, "igGetKeyName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string GetKeyNameS([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - string ret = Utils.DecodeStringUTF8(GetKeyNameNative(key)); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetNextFrameWantCaptureKeyboard")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextFrameWantCaptureKeyboard")] - internal static extern void SetNextFrameWantCaptureKeyboardNative([NativeName(NativeNameType.Param, "want_capture_keyboard")] [NativeName(NativeNameType.Type, "bool")] byte wantCaptureKeyboard); - - /// /// Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard"; after the next NewFrame() call. /// [NativeName(NativeNameType.Func, "igSetNextFrameWantCaptureKeyboard")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextFrameWantCaptureKeyboard([NativeName(NativeNameType.Param, "want_capture_keyboard")] [NativeName(NativeNameType.Type, "bool")] bool wantCaptureKeyboard) - { - SetNextFrameWantCaptureKeyboardNative(wantCaptureKeyboard ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMouseDown_Nil")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMouseDown_Nil")] - internal static extern byte IsMouseDownNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button); - - /// /// is mouse button held? /// [NativeName(NativeNameType.Func, "igIsMouseDown_Nil")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseDown([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button) - { - byte ret = IsMouseDownNative(button); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMouseClicked_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMouseClicked_Bool")] - internal static extern byte IsMouseClickedNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "repeat")] [NativeName(NativeNameType.Type, "bool")] byte repeat); - - /// /// did mouse button clicked? (went from !Down to Down). Same as GetMouseClickedCount() == 1. /// [NativeName(NativeNameType.Func, "igIsMouseClicked_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseClicked([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "repeat")] [NativeName(NativeNameType.Type, "bool")] bool repeat) - { - byte ret = IsMouseClickedNative(button, repeat ? (byte)1 : (byte)0); - return ret != 0; - } - - /// /// did mouse button clicked? (went from !Down to Down). Same as GetMouseClickedCount() == 1. /// [NativeName(NativeNameType.Func, "igIsMouseClicked_Bool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseClicked([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button) - { - byte ret = IsMouseClickedNative(button, (byte)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMouseReleased_Nil")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMouseReleased_Nil")] - internal static extern byte IsMouseReleasedNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button); - - /// /// did mouse button released? (went from Down to !Down) /// [NativeName(NativeNameType.Func, "igIsMouseReleased_Nil")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseReleased([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button) - { - byte ret = IsMouseReleasedNative(button); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMouseDoubleClicked")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMouseDoubleClicked")] - internal static extern byte IsMouseDoubleClickedNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button); - - /// /// did mouse button double-clicked? Same as GetMouseClickedCount() == 2. (note that a double-click will also report IsMouseClicked() == true) /// [NativeName(NativeNameType.Func, "igIsMouseDoubleClicked")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseDoubleClicked([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button) - { - byte ret = IsMouseDoubleClickedNative(button); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetMouseClickedCount")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetMouseClickedCount")] - internal static extern int GetMouseClickedCountNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button); - - /// /// return the number of successive mouse-clicks at the time where a click happen (otherwise 0). /// [NativeName(NativeNameType.Func, "igGetMouseClickedCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetMouseClickedCount([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button) - { - int ret = GetMouseClickedCountNative(button); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMouseHoveringRect")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMouseHoveringRect")] - internal static extern byte IsMouseHoveringRectNative([NativeName(NativeNameType.Param, "r_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rMin, [NativeName(NativeNameType.Param, "r_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rMax, [NativeName(NativeNameType.Param, "clip")] [NativeName(NativeNameType.Type, "bool")] byte clip); - - /// /// is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focuswindow orderingpopup-block. /// [NativeName(NativeNameType.Func, "igIsMouseHoveringRect")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseHoveringRect([NativeName(NativeNameType.Param, "r_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rMin, [NativeName(NativeNameType.Param, "r_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rMax, [NativeName(NativeNameType.Param, "clip")] [NativeName(NativeNameType.Type, "bool")] bool clip) - { - byte ret = IsMouseHoveringRectNative(rMin, rMax, clip ? (byte)1 : (byte)0); - return ret != 0; - } - - /// /// is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focuswindow orderingpopup-block. /// [NativeName(NativeNameType.Func, "igIsMouseHoveringRect")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseHoveringRect([NativeName(NativeNameType.Param, "r_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rMin, [NativeName(NativeNameType.Param, "r_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rMax) - { - byte ret = IsMouseHoveringRectNative(rMin, rMax, (byte)(1)); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMousePosValid")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMousePosValid")] - internal static extern byte IsMousePosValidNative([NativeName(NativeNameType.Param, "mouse_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* mousePos); - - /// /// by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available /// [NativeName(NativeNameType.Func, "igIsMousePosValid")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMousePosValid([NativeName(NativeNameType.Param, "mouse_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* mousePos) - { - byte ret = IsMousePosValidNative(mousePos); - return ret != 0; - } - - /// /// by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available /// [NativeName(NativeNameType.Func, "igIsMousePosValid")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMousePosValid() - { - byte ret = IsMousePosValidNative((Vector2*)(default)); - return ret != 0; - } - - /// /// by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available /// [NativeName(NativeNameType.Func, "igIsMousePosValid")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMousePosValid([NativeName(NativeNameType.Param, "mouse_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 mousePos) - { - fixed (Vector2* pmousePos = &mousePos) - { - byte ret = IsMousePosValidNative((Vector2*)pmousePos); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsAnyMouseDown")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsAnyMouseDown")] - internal static extern byte IsAnyMouseDownNative(); - - /// /// [WILL OBSOLETE] is any mouse button held? This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. /// [NativeName(NativeNameType.Func, "igIsAnyMouseDown")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsAnyMouseDown() - { - byte ret = IsAnyMouseDownNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetMousePos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetMousePos")] - internal static extern void GetMousePosNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - /// /// shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls /// [NativeName(NativeNameType.Func, "igGetMousePos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMousePos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) - { - GetMousePosNative(pOut); - } - - /// /// shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls /// [NativeName(NativeNameType.Func, "igGetMousePos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMousePos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetMousePosNative((Vector2*)ppOut); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetMousePosOnOpeningCurrentPopup")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetMousePosOnOpeningCurrentPopup")] - internal static extern void GetMousePosOnOpeningCurrentPopupNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - /// /// retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves) /// [NativeName(NativeNameType.Func, "igGetMousePosOnOpeningCurrentPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMousePosOnOpeningCurrentPopup([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) - { - GetMousePosOnOpeningCurrentPopupNative(pOut); - } - - /// /// retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves) /// [NativeName(NativeNameType.Func, "igGetMousePosOnOpeningCurrentPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMousePosOnOpeningCurrentPopup([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetMousePosOnOpeningCurrentPopupNative((Vector2*)ppOut); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMouseDragging")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMouseDragging")] - internal static extern byte IsMouseDraggingNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "lock_threshold")] [NativeName(NativeNameType.Type, "float")] float lockThreshold); - - /// /// is mouse dragging? (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) /// [NativeName(NativeNameType.Func, "igIsMouseDragging")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseDragging([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "lock_threshold")] [NativeName(NativeNameType.Type, "float")] float lockThreshold) - { - byte ret = IsMouseDraggingNative(button, lockThreshold); - return ret != 0; - } - - /// /// is mouse dragging? (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) /// [NativeName(NativeNameType.Func, "igIsMouseDragging")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseDragging([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button) - { - byte ret = IsMouseDraggingNative(button, (float)(-1.0f)); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetMouseDragDelta")] - internal static extern void GetMouseDragDeltaNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "lock_threshold")] [NativeName(NativeNameType.Type, "float")] float lockThreshold); - - /// /// return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) /// [NativeName(NativeNameType.Func, "igGetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMouseDragDelta([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "lock_threshold")] [NativeName(NativeNameType.Type, "float")] float lockThreshold) - { - GetMouseDragDeltaNative(pOut, button, lockThreshold); - } - - /// /// return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) /// [NativeName(NativeNameType.Func, "igGetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMouseDragDelta([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button) - { - GetMouseDragDeltaNative(pOut, button, (float)(-1.0f)); - } - - /// /// return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) /// [NativeName(NativeNameType.Func, "igGetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMouseDragDelta([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) - { - GetMouseDragDeltaNative(pOut, (ImGuiMouseButton)(0), (float)(-1.0f)); - } - - /// /// return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) /// [NativeName(NativeNameType.Func, "igGetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMouseDragDelta([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "lock_threshold")] [NativeName(NativeNameType.Type, "float")] float lockThreshold) - { - GetMouseDragDeltaNative(pOut, (ImGuiMouseButton)(0), lockThreshold); - } - - /// /// return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) /// [NativeName(NativeNameType.Func, "igGetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMouseDragDelta([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "lock_threshold")] [NativeName(NativeNameType.Type, "float")] float lockThreshold) - { - fixed (Vector2* ppOut = &pOut) - { - GetMouseDragDeltaNative((Vector2*)ppOut, button, lockThreshold); - } - } - - /// /// return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) /// [NativeName(NativeNameType.Func, "igGetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMouseDragDelta([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button) - { - fixed (Vector2* ppOut = &pOut) - { - GetMouseDragDeltaNative((Vector2*)ppOut, button, (float)(-1.0f)); - } - } - - /// /// return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) /// [NativeName(NativeNameType.Func, "igGetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMouseDragDelta([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) - { - fixed (Vector2* ppOut = &pOut) - { - GetMouseDragDeltaNative((Vector2*)ppOut, (ImGuiMouseButton)(0), (float)(-1.0f)); - } - } - - /// /// return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) /// [NativeName(NativeNameType.Func, "igGetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMouseDragDelta([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "lock_threshold")] [NativeName(NativeNameType.Type, "float")] float lockThreshold) - { - fixed (Vector2* ppOut = &pOut) - { - GetMouseDragDeltaNative((Vector2*)ppOut, (ImGuiMouseButton)(0), lockThreshold); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igResetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igResetMouseDragDelta")] - internal static extern void ResetMouseDragDeltaNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button); - - /// /// [NativeName(NativeNameType.Func, "igResetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ResetMouseDragDelta([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button) - { - ResetMouseDragDeltaNative(button); - } - - /// /// [NativeName(NativeNameType.Func, "igResetMouseDragDelta")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ResetMouseDragDelta() - { - ResetMouseDragDeltaNative((ImGuiMouseButton)(0)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetMouseCursor")] - [return: NativeName(NativeNameType.Type, "ImGuiMouseCursor")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetMouseCursor")] - internal static extern ImGuiMouseCursor GetMouseCursorNative(); - - /// /// get desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you /// [NativeName(NativeNameType.Func, "igGetMouseCursor")] - [return: NativeName(NativeNameType.Type, "ImGuiMouseCursor")] - public static ImGuiMouseCursor GetMouseCursor() - { - ImGuiMouseCursor ret = GetMouseCursorNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetMouseCursor")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetMouseCursor")] - internal static extern void SetMouseCursorNative([NativeName(NativeNameType.Param, "cursor_type")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursorType); - - /// /// set desired mouse cursor shape /// [NativeName(NativeNameType.Func, "igSetMouseCursor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetMouseCursor([NativeName(NativeNameType.Param, "cursor_type")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursorType) - { - SetMouseCursorNative(cursorType); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetNextFrameWantCaptureMouse")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNextFrameWantCaptureMouse")] - internal static extern void SetNextFrameWantCaptureMouseNative([NativeName(NativeNameType.Param, "want_capture_mouse")] [NativeName(NativeNameType.Type, "bool")] byte wantCaptureMouse); - - /// /// Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instucts your app to ignore inputs). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse;" after the next NewFrame() call. /// [NativeName(NativeNameType.Func, "igSetNextFrameWantCaptureMouse")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNextFrameWantCaptureMouse([NativeName(NativeNameType.Param, "want_capture_mouse")] [NativeName(NativeNameType.Type, "bool")] bool wantCaptureMouse) - { - SetNextFrameWantCaptureMouseNative(wantCaptureMouse ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetClipboardText")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetClipboardText")] - internal static extern byte* GetClipboardTextNative(); - - [NativeName(NativeNameType.Func, "igGetClipboardText")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* GetClipboardText() - { - byte* ret = GetClipboardTextNative(); - return ret; - } - - [NativeName(NativeNameType.Func, "igGetClipboardText")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string GetClipboardTextS() - { - string ret = Utils.DecodeStringUTF8(GetClipboardTextNative()); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetClipboardText")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetClipboardText")] - internal static extern void SetClipboardTextNative([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text); - - [NativeName(NativeNameType.Func, "igSetClipboardText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetClipboardText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) - { - SetClipboardTextNative(text); - } - - [NativeName(NativeNameType.Func, "igSetClipboardText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetClipboardText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (byte* ptext = &text) - { - SetClipboardTextNative((byte*)ptext); - } - } - - [NativeName(NativeNameType.Func, "igSetClipboardText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetClipboardText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SetClipboardTextNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLoadIniSettingsFromDisk")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLoadIniSettingsFromDisk")] - internal static extern void LoadIniSettingsFromDiskNative([NativeName(NativeNameType.Param, "ini_filename")] [NativeName(NativeNameType.Type, "const char*")] byte* iniFilename); - - /// /// call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename). /// [NativeName(NativeNameType.Func, "igLoadIniSettingsFromDisk")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LoadIniSettingsFromDisk([NativeName(NativeNameType.Param, "ini_filename")] [NativeName(NativeNameType.Type, "const char*")] byte* iniFilename) - { - LoadIniSettingsFromDiskNative(iniFilename); - } - - /// /// call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename). /// [NativeName(NativeNameType.Func, "igLoadIniSettingsFromDisk")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LoadIniSettingsFromDisk([NativeName(NativeNameType.Param, "ini_filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte iniFilename) - { - fixed (byte* piniFilename = &iniFilename) - { - LoadIniSettingsFromDiskNative((byte*)piniFilename); - } - } - - /// /// call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename). /// [NativeName(NativeNameType.Func, "igLoadIniSettingsFromDisk")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LoadIniSettingsFromDisk([NativeName(NativeNameType.Param, "ini_filename")] [NativeName(NativeNameType.Type, "const char*")] string iniFilename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (iniFilename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(iniFilename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(iniFilename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LoadIniSettingsFromDiskNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLoadIniSettingsFromMemory")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLoadIniSettingsFromMemory")] - internal static extern void LoadIniSettingsFromMemoryNative([NativeName(NativeNameType.Param, "ini_data")] [NativeName(NativeNameType.Type, "const char*")] byte* iniData, [NativeName(NativeNameType.Param, "ini_size")] [NativeName(NativeNameType.Type, "size_t")] nuint iniSize); - - /// /// call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. /// [NativeName(NativeNameType.Func, "igLoadIniSettingsFromMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LoadIniSettingsFromMemory([NativeName(NativeNameType.Param, "ini_data")] [NativeName(NativeNameType.Type, "const char*")] byte* iniData, [NativeName(NativeNameType.Param, "ini_size")] [NativeName(NativeNameType.Type, "size_t")] nuint iniSize) - { - LoadIniSettingsFromMemoryNative(iniData, iniSize); - } - - /// /// call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. /// [NativeName(NativeNameType.Func, "igLoadIniSettingsFromMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LoadIniSettingsFromMemory([NativeName(NativeNameType.Param, "ini_data")] [NativeName(NativeNameType.Type, "const char*")] byte* iniData) - { - LoadIniSettingsFromMemoryNative(iniData, (nuint)(0)); - } - - /// /// call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. /// [NativeName(NativeNameType.Func, "igLoadIniSettingsFromMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LoadIniSettingsFromMemory([NativeName(NativeNameType.Param, "ini_data")] [NativeName(NativeNameType.Type, "const char*")] ref byte iniData, [NativeName(NativeNameType.Param, "ini_size")] [NativeName(NativeNameType.Type, "size_t")] nuint iniSize) - { - fixed (byte* piniData = &iniData) - { - LoadIniSettingsFromMemoryNative((byte*)piniData, iniSize); - } - } - - /// /// call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. /// [NativeName(NativeNameType.Func, "igLoadIniSettingsFromMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LoadIniSettingsFromMemory([NativeName(NativeNameType.Param, "ini_data")] [NativeName(NativeNameType.Type, "const char*")] ref byte iniData) - { - fixed (byte* piniData = &iniData) - { - LoadIniSettingsFromMemoryNative((byte*)piniData, (nuint)(0)); - } - } - - /// /// call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. /// [NativeName(NativeNameType.Func, "igLoadIniSettingsFromMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LoadIniSettingsFromMemory([NativeName(NativeNameType.Param, "ini_data")] [NativeName(NativeNameType.Type, "const char*")] string iniData, [NativeName(NativeNameType.Param, "ini_size")] [NativeName(NativeNameType.Type, "size_t")] nuint iniSize) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (iniData != null) - { - pStrSize0 = Utils.GetByteCountUTF8(iniData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(iniData, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LoadIniSettingsFromMemoryNative(pStr0, iniSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. /// [NativeName(NativeNameType.Func, "igLoadIniSettingsFromMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LoadIniSettingsFromMemory([NativeName(NativeNameType.Param, "ini_data")] [NativeName(NativeNameType.Type, "const char*")] string iniData) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (iniData != null) - { - pStrSize0 = Utils.GetByteCountUTF8(iniData); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(iniData, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LoadIniSettingsFromMemoryNative(pStr0, (nuint)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSaveIniSettingsToDisk")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSaveIniSettingsToDisk")] - internal static extern void SaveIniSettingsToDiskNative([NativeName(NativeNameType.Param, "ini_filename")] [NativeName(NativeNameType.Type, "const char*")] byte* iniFilename); - - /// /// this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext). /// [NativeName(NativeNameType.Func, "igSaveIniSettingsToDisk")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SaveIniSettingsToDisk([NativeName(NativeNameType.Param, "ini_filename")] [NativeName(NativeNameType.Type, "const char*")] byte* iniFilename) - { - SaveIniSettingsToDiskNative(iniFilename); - } - - /// /// this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext). /// [NativeName(NativeNameType.Func, "igSaveIniSettingsToDisk")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SaveIniSettingsToDisk([NativeName(NativeNameType.Param, "ini_filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte iniFilename) - { - fixed (byte* piniFilename = &iniFilename) - { - SaveIniSettingsToDiskNative((byte*)piniFilename); - } - } - - /// /// this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext). /// [NativeName(NativeNameType.Func, "igSaveIniSettingsToDisk")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SaveIniSettingsToDisk([NativeName(NativeNameType.Param, "ini_filename")] [NativeName(NativeNameType.Type, "const char*")] string iniFilename) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (iniFilename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(iniFilename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(iniFilename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SaveIniSettingsToDiskNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSaveIniSettingsToMemory")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSaveIniSettingsToMemory")] - internal static extern byte* SaveIniSettingsToMemoryNative([NativeName(NativeNameType.Param, "out_ini_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outIniSize); - - /// /// return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. /// [NativeName(NativeNameType.Func, "igSaveIniSettingsToMemory")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* SaveIniSettingsToMemory([NativeName(NativeNameType.Param, "out_ini_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outIniSize) - { - byte* ret = SaveIniSettingsToMemoryNative(outIniSize); - return ret; - } - - /// /// return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. /// [NativeName(NativeNameType.Func, "igSaveIniSettingsToMemory")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* SaveIniSettingsToMemory() - { - byte* ret = SaveIniSettingsToMemoryNative((nuint*)(default)); - return ret; - } - - /// /// return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. /// [NativeName(NativeNameType.Func, "igSaveIniSettingsToMemory")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string SaveIniSettingsToMemoryS() - { - string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative((nuint*)(default))); - return ret; - } - - /// /// return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. /// [NativeName(NativeNameType.Func, "igSaveIniSettingsToMemory")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string SaveIniSettingsToMemoryS([NativeName(NativeNameType.Param, "out_ini_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outIniSize) - { - string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative(outIniSize)); - return ret; - } - - /// /// return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. /// [NativeName(NativeNameType.Func, "igSaveIniSettingsToMemory")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* SaveIniSettingsToMemory([NativeName(NativeNameType.Param, "out_ini_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outIniSize) - { - fixed (nuint* poutIniSize = &outIniSize) - { - byte* ret = SaveIniSettingsToMemoryNative((nuint*)poutIniSize); - return ret; - } - } - - /// /// return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. /// [NativeName(NativeNameType.Func, "igSaveIniSettingsToMemory")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string SaveIniSettingsToMemoryS([NativeName(NativeNameType.Param, "out_ini_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outIniSize) - { - fixed (nuint* poutIniSize = &outIniSize) - { - string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative((nuint*)poutIniSize)); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDebugTextEncoding")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugTextEncoding")] - internal static extern void DebugTextEncodingNative([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text); - - [NativeName(NativeNameType.Func, "igDebugTextEncoding")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugTextEncoding([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) - { - DebugTextEncodingNative(text); - } - - [NativeName(NativeNameType.Func, "igDebugTextEncoding")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugTextEncoding([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (byte* ptext = &text) - { - DebugTextEncodingNative((byte*)ptext); - } - } - - [NativeName(NativeNameType.Func, "igDebugTextEncoding")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugTextEncoding([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugTextEncodingNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDebugCheckVersionAndDataLayout")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugCheckVersionAndDataLayout")] - internal static extern byte DebugCheckVersionAndDataLayoutNative([NativeName(NativeNameType.Param, "version_str")] [NativeName(NativeNameType.Type, "const char*")] byte* versionStr, [NativeName(NativeNameType.Param, "sz_io")] [NativeName(NativeNameType.Type, "size_t")] nuint szIo, [NativeName(NativeNameType.Param, "sz_style")] [NativeName(NativeNameType.Type, "size_t")] nuint szStyle, [NativeName(NativeNameType.Param, "sz_vec2")] [NativeName(NativeNameType.Type, "size_t")] nuint szVec2, [NativeName(NativeNameType.Param, "sz_vec4")] [NativeName(NativeNameType.Type, "size_t")] nuint szVec4, [NativeName(NativeNameType.Param, "sz_drawvert")] [NativeName(NativeNameType.Type, "size_t")] nuint szDrawvert, [NativeName(NativeNameType.Param, "sz_drawidx")] [NativeName(NativeNameType.Type, "size_t")] nuint szDrawidx); - - /// /// This is called by IMGUI_CHECKVERSION() macro. /// [NativeName(NativeNameType.Func, "igDebugCheckVersionAndDataLayout")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DebugCheckVersionAndDataLayout([NativeName(NativeNameType.Param, "version_str")] [NativeName(NativeNameType.Type, "const char*")] byte* versionStr, [NativeName(NativeNameType.Param, "sz_io")] [NativeName(NativeNameType.Type, "size_t")] nuint szIo, [NativeName(NativeNameType.Param, "sz_style")] [NativeName(NativeNameType.Type, "size_t")] nuint szStyle, [NativeName(NativeNameType.Param, "sz_vec2")] [NativeName(NativeNameType.Type, "size_t")] nuint szVec2, [NativeName(NativeNameType.Param, "sz_vec4")] [NativeName(NativeNameType.Type, "size_t")] nuint szVec4, [NativeName(NativeNameType.Param, "sz_drawvert")] [NativeName(NativeNameType.Type, "size_t")] nuint szDrawvert, [NativeName(NativeNameType.Param, "sz_drawidx")] [NativeName(NativeNameType.Type, "size_t")] nuint szDrawidx) - { - byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szVec2, szVec4, szDrawvert, szDrawidx); - return ret != 0; - } - - /// /// This is called by IMGUI_CHECKVERSION() macro. /// [NativeName(NativeNameType.Func, "igDebugCheckVersionAndDataLayout")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DebugCheckVersionAndDataLayout([NativeName(NativeNameType.Param, "version_str")] [NativeName(NativeNameType.Type, "const char*")] ref byte versionStr, [NativeName(NativeNameType.Param, "sz_io")] [NativeName(NativeNameType.Type, "size_t")] nuint szIo, [NativeName(NativeNameType.Param, "sz_style")] [NativeName(NativeNameType.Type, "size_t")] nuint szStyle, [NativeName(NativeNameType.Param, "sz_vec2")] [NativeName(NativeNameType.Type, "size_t")] nuint szVec2, [NativeName(NativeNameType.Param, "sz_vec4")] [NativeName(NativeNameType.Type, "size_t")] nuint szVec4, [NativeName(NativeNameType.Param, "sz_drawvert")] [NativeName(NativeNameType.Type, "size_t")] nuint szDrawvert, [NativeName(NativeNameType.Param, "sz_drawidx")] [NativeName(NativeNameType.Type, "size_t")] nuint szDrawidx) - { - fixed (byte* pversionStr = &versionStr) - { - byte ret = DebugCheckVersionAndDataLayoutNative((byte*)pversionStr, szIo, szStyle, szVec2, szVec4, szDrawvert, szDrawidx); - return ret != 0; - } - } - - /// /// This is called by IMGUI_CHECKVERSION() macro. /// [NativeName(NativeNameType.Func, "igDebugCheckVersionAndDataLayout")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DebugCheckVersionAndDataLayout([NativeName(NativeNameType.Param, "version_str")] [NativeName(NativeNameType.Type, "const char*")] string versionStr, [NativeName(NativeNameType.Param, "sz_io")] [NativeName(NativeNameType.Type, "size_t")] nuint szIo, [NativeName(NativeNameType.Param, "sz_style")] [NativeName(NativeNameType.Type, "size_t")] nuint szStyle, [NativeName(NativeNameType.Param, "sz_vec2")] [NativeName(NativeNameType.Type, "size_t")] nuint szVec2, [NativeName(NativeNameType.Param, "sz_vec4")] [NativeName(NativeNameType.Type, "size_t")] nuint szVec4, [NativeName(NativeNameType.Param, "sz_drawvert")] [NativeName(NativeNameType.Type, "size_t")] nuint szDrawvert, [NativeName(NativeNameType.Param, "sz_drawidx")] [NativeName(NativeNameType.Type, "size_t")] nuint szDrawidx) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (versionStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(versionStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(versionStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DebugCheckVersionAndDataLayoutNative(pStr0, szIo, szStyle, szVec2, szVec4, szDrawvert, szDrawidx); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetAllocatorFunctions")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetAllocatorFunctions")] - internal static extern void SetAllocatorFunctionsNative([NativeName(NativeNameType.Param, "alloc_func")] [NativeName(NativeNameType.Type, "ImGuiMemAllocFunc")] ImGuiMemAllocFunc allocFunc, [NativeName(NativeNameType.Param, "free_func")] [NativeName(NativeNameType.Type, "ImGuiMemFreeFunc")] ImGuiMemFreeFunc freeFunc, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - [NativeName(NativeNameType.Func, "igSetAllocatorFunctions")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetAllocatorFunctions([NativeName(NativeNameType.Param, "alloc_func")] [NativeName(NativeNameType.Type, "ImGuiMemAllocFunc")] ImGuiMemAllocFunc allocFunc, [NativeName(NativeNameType.Param, "free_func")] [NativeName(NativeNameType.Type, "ImGuiMemFreeFunc")] ImGuiMemFreeFunc freeFunc, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - SetAllocatorFunctionsNative(allocFunc, freeFunc, userData); - } - - [NativeName(NativeNameType.Func, "igSetAllocatorFunctions")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetAllocatorFunctions([NativeName(NativeNameType.Param, "alloc_func")] [NativeName(NativeNameType.Type, "ImGuiMemAllocFunc")] ImGuiMemAllocFunc allocFunc, [NativeName(NativeNameType.Param, "free_func")] [NativeName(NativeNameType.Type, "ImGuiMemFreeFunc")] ImGuiMemFreeFunc freeFunc) - { - SetAllocatorFunctionsNative(allocFunc, freeFunc, (void*)(default)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetAllocatorFunctions")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetAllocatorFunctions")] - internal static extern void GetAllocatorFunctionsNative([NativeName(NativeNameType.Param, "p_alloc_func")] [NativeName(NativeNameType.Type, "ImGuiMemAllocFunc*")] ImGuiMemAllocFunc pAllocFunc, [NativeName(NativeNameType.Param, "p_free_func")] [NativeName(NativeNameType.Type, "ImGuiMemFreeFunc*")] ImGuiMemFreeFunc pFreeFunc, [NativeName(NativeNameType.Param, "p_user_data")] [NativeName(NativeNameType.Type, "void**")] void** pUserData); - - [NativeName(NativeNameType.Func, "igGetAllocatorFunctions")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetAllocatorFunctions([NativeName(NativeNameType.Param, "p_alloc_func")] [NativeName(NativeNameType.Type, "ImGuiMemAllocFunc*")] ImGuiMemAllocFunc pAllocFunc, [NativeName(NativeNameType.Param, "p_free_func")] [NativeName(NativeNameType.Type, "ImGuiMemFreeFunc*")] ImGuiMemFreeFunc pFreeFunc, [NativeName(NativeNameType.Param, "p_user_data")] [NativeName(NativeNameType.Type, "void**")] void** pUserData) - { - GetAllocatorFunctionsNative(pAllocFunc, pFreeFunc, pUserData); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igMemAlloc")] - [return: NativeName(NativeNameType.Type, "void*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igMemAlloc")] - internal static extern void* MemAllocNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size); - - [NativeName(NativeNameType.Func, "igMemAlloc")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* MemAlloc([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size) - { - void* ret = MemAllocNative(size); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igMemFree")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igMemFree")] - internal static extern void MemFreeNative([NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "void*")] void* ptr); - - [NativeName(NativeNameType.Func, "igMemFree")] - [return: NativeName(NativeNameType.Type, "void")] - public static void MemFree([NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "void*")] void* ptr) - { - MemFreeNative(ptr); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetPlatformIO")] - [return: NativeName(NativeNameType.Type, "ImGuiPlatformIO*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetPlatformIO")] - internal static extern ImGuiPlatformIO* GetPlatformIONative(); - - /// /// platformrenderer functions, for backend to setup + viewports list. /// [NativeName(NativeNameType.Func, "igGetPlatformIO")] - [return: NativeName(NativeNameType.Type, "ImGuiPlatformIO*")] - public static ImGuiPlatformIO* GetPlatformIO() - { - ImGuiPlatformIO* ret = GetPlatformIONative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igUpdatePlatformWindows")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igUpdatePlatformWindows")] - internal static extern void UpdatePlatformWindowsNative(); - - /// /// call in main loop. will call CreateWindowResizeWindowetc. platform functions for each secondary viewport, and DestroyWindow for each inactive viewport. /// [NativeName(NativeNameType.Func, "igUpdatePlatformWindows")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdatePlatformWindows() - { - UpdatePlatformWindowsNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igRenderPlatformWindowsDefault")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderPlatformWindowsDefault")] - internal static extern void RenderPlatformWindowsDefaultNative([NativeName(NativeNameType.Param, "platform_render_arg")] [NativeName(NativeNameType.Type, "void*")] void* platformRenderArg, [NativeName(NativeNameType.Param, "renderer_render_arg")] [NativeName(NativeNameType.Type, "void*")] void* rendererRenderArg); - - /// /// call in main loop. will call RenderWindowSwapBuffers platform functions for each secondary viewport which doesn't have the ImGuiViewportFlags_Minimized flag set. May be reimplemented by user for custom rendering needs. /// [NativeName(NativeNameType.Func, "igRenderPlatformWindowsDefault")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderPlatformWindowsDefault([NativeName(NativeNameType.Param, "platform_render_arg")] [NativeName(NativeNameType.Type, "void*")] void* platformRenderArg, [NativeName(NativeNameType.Param, "renderer_render_arg")] [NativeName(NativeNameType.Type, "void*")] void* rendererRenderArg) - { - RenderPlatformWindowsDefaultNative(platformRenderArg, rendererRenderArg); - } - - /// /// call in main loop. will call RenderWindowSwapBuffers platform functions for each secondary viewport which doesn't have the ImGuiViewportFlags_Minimized flag set. May be reimplemented by user for custom rendering needs. /// [NativeName(NativeNameType.Func, "igRenderPlatformWindowsDefault")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderPlatformWindowsDefault([NativeName(NativeNameType.Param, "platform_render_arg")] [NativeName(NativeNameType.Type, "void*")] void* platformRenderArg) - { - RenderPlatformWindowsDefaultNative(platformRenderArg, (void*)(default)); - } - - /// /// call in main loop. will call RenderWindowSwapBuffers platform functions for each secondary viewport which doesn't have the ImGuiViewportFlags_Minimized flag set. May be reimplemented by user for custom rendering needs. /// [NativeName(NativeNameType.Func, "igRenderPlatformWindowsDefault")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderPlatformWindowsDefault() - { - RenderPlatformWindowsDefaultNative((void*)(default), (void*)(default)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDestroyPlatformWindows")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDestroyPlatformWindows")] - internal static extern void DestroyPlatformWindowsNative(); - - /// /// call DestroyWindow platform functions for all viewports. call from backend Shutdown() if you need to close platform windows before imgui shutdown. otherwise will be called by DestroyContext(). /// [NativeName(NativeNameType.Func, "igDestroyPlatformWindows")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DestroyPlatformWindows() - { - DestroyPlatformWindowsNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFindViewportByID")] - [return: NativeName(NativeNameType.Type, "ImGuiViewport*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindViewportByID")] - internal static extern ImGuiViewport* FindViewportByIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - /// /// this is a helper for backends. /// [NativeName(NativeNameType.Func, "igFindViewportByID")] - [return: NativeName(NativeNameType.Type, "ImGuiViewport*")] - public static ImGuiViewport* FindViewportByID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - ImGuiViewport* ret = FindViewportByIDNative(id); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFindViewportByPlatformHandle")] - [return: NativeName(NativeNameType.Type, "ImGuiViewport*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindViewportByPlatformHandle")] - internal static extern ImGuiViewport* FindViewportByPlatformHandleNative([NativeName(NativeNameType.Param, "platform_handle")] [NativeName(NativeNameType.Type, "void*")] void* platformHandle); - - /// /// this is a helper for backends. the type platform_handle is decided by the backend (e.g. HWND, MyWindow*, GLFWwindow* etc.) /// [NativeName(NativeNameType.Func, "igFindViewportByPlatformHandle")] - [return: NativeName(NativeNameType.Type, "ImGuiViewport*")] - public static ImGuiViewport* FindViewportByPlatformHandle([NativeName(NativeNameType.Param, "platform_handle")] [NativeName(NativeNameType.Type, "void*")] void* platformHandle) - { - ImGuiViewport* ret = FindViewportByPlatformHandleNative(platformHandle); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStyle_ImGuiStyle")] - [return: NativeName(NativeNameType.Type, "ImGuiStyle*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStyle_ImGuiStyle")] - internal static extern ImGuiStyle* ImGuiStyleNative(); - - [NativeName(NativeNameType.Func, "ImGuiStyle_ImGuiStyle")] - [return: NativeName(NativeNameType.Type, "ImGuiStyle*")] - public static ImGuiStyle* ImGuiStyle() - { - ImGuiStyle* ret = ImGuiStyleNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStyle_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStyle_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* self); - - [NativeName(NativeNameType.Func, "ImGuiStyle_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiStyle_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ref ImGuiStyle self) - { - fixed (ImGuiStyle* pself = &self) - { - DestroyNative((ImGuiStyle*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStyle_ScaleAllSizes")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStyle_ScaleAllSizes")] - internal static extern void ScaleAllSizesNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* self, [NativeName(NativeNameType.Param, "scale_factor")] [NativeName(NativeNameType.Type, "float")] float scaleFactor); - - [NativeName(NativeNameType.Func, "ImGuiStyle_ScaleAllSizes")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScaleAllSizes([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ImGuiStyle* self, [NativeName(NativeNameType.Param, "scale_factor")] [NativeName(NativeNameType.Type, "float")] float scaleFactor) - { - ScaleAllSizesNative(self, scaleFactor); - } - - [NativeName(NativeNameType.Func, "ImGuiStyle_ScaleAllSizes")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScaleAllSizes([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStyle*")] ref ImGuiStyle self, [NativeName(NativeNameType.Param, "scale_factor")] [NativeName(NativeNameType.Type, "float")] float scaleFactor) - { - fixed (ImGuiStyle* pself = &self) - { - ScaleAllSizesNative((ImGuiStyle*)pself, scaleFactor); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_AddKeyEvent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_AddKeyEvent")] - internal static extern void AddKeyEventNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] byte down); - - /// /// Queue a new key downup event. Key should be "translated" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddKeyEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddKeyEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] bool down) - { - AddKeyEventNative(self, key, down ? (byte)1 : (byte)0); - } - - /// /// Queue a new key downup event. Key should be "translated" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddKeyEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddKeyEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] bool down) - { - fixed (ImGuiIO* pself = &self) - { - AddKeyEventNative((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_AddKeyAnalogEvent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_AddKeyAnalogEvent")] - internal static extern void AddKeyAnalogEventNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] byte down, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v); - - /// /// Queue a new key downup event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend. /// [NativeName(NativeNameType.Func, "ImGuiIO_AddKeyAnalogEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddKeyAnalogEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] bool down, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) - { - AddKeyAnalogEventNative(self, key, down ? (byte)1 : (byte)0, v); - } - - /// /// Queue a new key downup event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend. /// [NativeName(NativeNameType.Func, "ImGuiIO_AddKeyAnalogEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddKeyAnalogEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] bool down, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) - { - fixed (ImGuiIO* pself = &self) - { - AddKeyAnalogEventNative((ImGuiIO*)pself, key, down ? (byte)1 : (byte)0, v); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_AddMousePosEvent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_AddMousePosEvent")] - internal static extern void AddMousePosEventNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "float")] float y); - - /// /// Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMousePosEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddMousePosEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "float")] float y) - { - AddMousePosEventNative(self, x, y); - } - - /// /// Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMousePosEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddMousePosEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "float")] float y) - { - fixed (ImGuiIO* pself = &self) - { - AddMousePosEventNative((ImGuiIO*)pself, x, y); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseButtonEvent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_AddMouseButtonEvent")] - internal static extern void AddMouseButtonEventNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "int")] int button, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] byte down); - - /// /// Queue a mouse button change /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseButtonEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddMouseButtonEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "int")] int button, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] bool down) - { - AddMouseButtonEventNative(self, button, down ? (byte)1 : (byte)0); - } - - /// /// Queue a mouse button change /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseButtonEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddMouseButtonEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "int")] int button, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] bool down) - { - fixed (ImGuiIO* pself = &self) - { - AddMouseButtonEventNative((ImGuiIO*)pself, button, down ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseWheelEvent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_AddMouseWheelEvent")] - internal static extern void AddMouseWheelEventNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "wheel_x")] [NativeName(NativeNameType.Type, "float")] float wheelX, [NativeName(NativeNameType.Param, "wheel_y")] [NativeName(NativeNameType.Type, "float")] float wheelY); - - /// /// Queue a mouse wheel update. wheel_y<0: scroll down, wheel_y>0: scroll up, wheel_x<0: scroll right, wheel_x>0: scroll left. /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseWheelEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddMouseWheelEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "wheel_x")] [NativeName(NativeNameType.Type, "float")] float wheelX, [NativeName(NativeNameType.Param, "wheel_y")] [NativeName(NativeNameType.Type, "float")] float wheelY) - { - AddMouseWheelEventNative(self, wheelX, wheelY); - } - - /// /// Queue a mouse wheel update. wheel_y<0: scroll down, wheel_y>0: scroll up, wheel_x<0: scroll right, wheel_x>0: scroll left. /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseWheelEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddMouseWheelEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "wheel_x")] [NativeName(NativeNameType.Type, "float")] float wheelX, [NativeName(NativeNameType.Param, "wheel_y")] [NativeName(NativeNameType.Type, "float")] float wheelY) - { - fixed (ImGuiIO* pself = &self) - { - AddMouseWheelEventNative((ImGuiIO*)pself, wheelX, wheelY); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseSourceEvent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_AddMouseSourceEvent")] - internal static extern void AddMouseSourceEventNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "ImGuiMouseSource")] ImGuiMouseSource source); - - /// /// Queue a mouse source change (MouseTouchScreenPen) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseSourceEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddMouseSourceEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "ImGuiMouseSource")] ImGuiMouseSource source) - { - AddMouseSourceEventNative(self, source); - } - - /// /// Queue a mouse source change (MouseTouchScreenPen) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseSourceEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddMouseSourceEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "ImGuiMouseSource")] ImGuiMouseSource source) - { - fixed (ImGuiIO* pself = &self) - { - AddMouseSourceEventNative((ImGuiIO*)pself, source); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseViewportEvent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_AddMouseViewportEvent")] - internal static extern void AddMouseViewportEventNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - /// /// Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to call this (for multi-viewport support). /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseViewportEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddMouseViewportEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - AddMouseViewportEventNative(self, id); - } - - /// /// Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to call this (for multi-viewport support). /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseViewportEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddMouseViewportEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - fixed (ImGuiIO* pself = &self) - { - AddMouseViewportEventNative((ImGuiIO*)pself, id); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_AddFocusEvent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_AddFocusEvent")] - internal static extern void AddFocusEventNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "focused")] [NativeName(NativeNameType.Type, "bool")] byte focused); - - /// /// Queue a gainloss of focus for the application (generally based on OSplatform focus of your window) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddFocusEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddFocusEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "focused")] [NativeName(NativeNameType.Type, "bool")] bool focused) - { - AddFocusEventNative(self, focused ? (byte)1 : (byte)0); - } - - /// /// Queue a gainloss of focus for the application (generally based on OSplatform focus of your window) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddFocusEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddFocusEvent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "focused")] [NativeName(NativeNameType.Type, "bool")] bool focused) - { - fixed (ImGuiIO* pself = &self) - { - AddFocusEventNative((ImGuiIO*)pself, focused ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharacter")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_AddInputCharacter")] - internal static extern void AddInputCharacterNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "unsigned int")] uint c); - - /// /// Queue a new character input /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharacter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddInputCharacter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "unsigned int")] uint c) - { - AddInputCharacterNative(self, c); - } - - /// /// Queue a new character input /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharacter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddInputCharacter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "unsigned int")] uint c) - { - fixed (ImGuiIO* pself = &self) - { - AddInputCharacterNative((ImGuiIO*)pself, c); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharacterUTF16")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_AddInputCharacterUTF16")] - internal static extern void AddInputCharacterUTF16Native([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar16")] char c); - - /// /// Queue a new character input from a UTF-16 character, it can be a surrogate /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharacterUTF16")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddInputCharacterUTF16([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar16")] char c) - { - AddInputCharacterUTF16Native(self, c); - } - - /// /// Queue a new character input from a UTF-16 character, it can be a surrogate /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharacterUTF16")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddInputCharacterUTF16([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar16")] char c) - { - fixed (ImGuiIO* pself = &self) - { - AddInputCharacterUTF16Native((ImGuiIO*)pself, c); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharactersUTF8")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_AddInputCharactersUTF8")] - internal static extern void AddInputCharactersUTF8Native([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str); - - /// /// Queue a new characters input from a UTF-8 string /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharactersUTF8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) - { - AddInputCharactersUTF8Native(self, str); - } - - /// /// Queue a new characters input from a UTF-8 string /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharactersUTF8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) - { - fixed (ImGuiIO* pself = &self) - { - AddInputCharactersUTF8Native((ImGuiIO*)pself, str); - } - } - - /// /// Queue a new characters input from a UTF-8 string /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharactersUTF8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) - { - fixed (byte* pstr = &str) - { - AddInputCharactersUTF8Native(self, (byte*)pstr); - } - } - - /// /// Queue a new characters input from a UTF-8 string /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharactersUTF8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddInputCharactersUTF8Native(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// Queue a new characters input from a UTF-8 string /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharactersUTF8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) - { - fixed (ImGuiIO* pself = &self) - { - fixed (byte* pstr = &str) - { - AddInputCharactersUTF8Native((ImGuiIO*)pself, (byte*)pstr); - } - } - } - - /// /// Queue a new characters input from a UTF-8 string /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharactersUTF8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) - { - fixed (ImGuiIO* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddInputCharactersUTF8Native((ImGuiIO*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_SetKeyEventNativeData")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_SetKeyEventNativeData")] - internal static extern void SetKeyEventNativeDataNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "native_keycode")] [NativeName(NativeNameType.Type, "int")] int nativeKeycode, [NativeName(NativeNameType.Param, "native_scancode")] [NativeName(NativeNameType.Type, "int")] int nativeScancode, [NativeName(NativeNameType.Param, "native_legacy_index")] [NativeName(NativeNameType.Type, "int")] int nativeLegacyIndex); - - /// /// [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. /// [NativeName(NativeNameType.Func, "ImGuiIO_SetKeyEventNativeData")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetKeyEventNativeData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "native_keycode")] [NativeName(NativeNameType.Type, "int")] int nativeKeycode, [NativeName(NativeNameType.Param, "native_scancode")] [NativeName(NativeNameType.Type, "int")] int nativeScancode, [NativeName(NativeNameType.Param, "native_legacy_index")] [NativeName(NativeNameType.Type, "int")] int nativeLegacyIndex) - { - SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - - /// /// [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. /// [NativeName(NativeNameType.Func, "ImGuiIO_SetKeyEventNativeData")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetKeyEventNativeData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "native_keycode")] [NativeName(NativeNameType.Type, "int")] int nativeKeycode, [NativeName(NativeNameType.Param, "native_scancode")] [NativeName(NativeNameType.Type, "int")] int nativeScancode) - { - SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, (int)(-1)); - } - - /// /// [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. /// [NativeName(NativeNameType.Func, "ImGuiIO_SetKeyEventNativeData")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetKeyEventNativeData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "native_keycode")] [NativeName(NativeNameType.Type, "int")] int nativeKeycode, [NativeName(NativeNameType.Param, "native_scancode")] [NativeName(NativeNameType.Type, "int")] int nativeScancode, [NativeName(NativeNameType.Param, "native_legacy_index")] [NativeName(NativeNameType.Type, "int")] int nativeLegacyIndex) - { - fixed (ImGuiIO* pself = &self) - { - SetKeyEventNativeDataNative((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, nativeLegacyIndex); - } - } - - /// /// [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. /// [NativeName(NativeNameType.Func, "ImGuiIO_SetKeyEventNativeData")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetKeyEventNativeData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "native_keycode")] [NativeName(NativeNameType.Type, "int")] int nativeKeycode, [NativeName(NativeNameType.Param, "native_scancode")] [NativeName(NativeNameType.Type, "int")] int nativeScancode) - { - fixed (ImGuiIO* pself = &self) - { - SetKeyEventNativeDataNative((ImGuiIO*)pself, key, nativeKeycode, nativeScancode, (int)(-1)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_SetAppAcceptingEvents")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_SetAppAcceptingEvents")] - internal static extern void SetAppAcceptingEventsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "accepting_events")] [NativeName(NativeNameType.Type, "bool")] byte acceptingEvents); - - /// /// Set master flag for accepting keymousetext events (default to true). Useful if you have native dialog boxes that are interrupting your application looprefresh, and you want to disable events being queued while your app is frozen. /// [NativeName(NativeNameType.Func, "ImGuiIO_SetAppAcceptingEvents")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetAppAcceptingEvents([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self, [NativeName(NativeNameType.Param, "accepting_events")] [NativeName(NativeNameType.Type, "bool")] bool acceptingEvents) - { - SetAppAcceptingEventsNative(self, acceptingEvents ? (byte)1 : (byte)0); - } - - /// /// Set master flag for accepting keymousetext events (default to true). Useful if you have native dialog boxes that are interrupting your application looprefresh, and you want to disable events being queued while your app is frozen. /// [NativeName(NativeNameType.Func, "ImGuiIO_SetAppAcceptingEvents")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetAppAcceptingEvents([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self, [NativeName(NativeNameType.Param, "accepting_events")] [NativeName(NativeNameType.Type, "bool")] bool acceptingEvents) - { - fixed (ImGuiIO* pself = &self) - { - SetAppAcceptingEventsNative((ImGuiIO*)pself, acceptingEvents ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_ClearInputCharacters")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_ClearInputCharacters")] - internal static extern void ClearInputCharactersNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self); - - /// /// [Internal] Clear the text input buffer manually /// [NativeName(NativeNameType.Func, "ImGuiIO_ClearInputCharacters")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearInputCharacters([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self) - { - ClearInputCharactersNative(self); - } - - /// /// [Internal] Clear the text input buffer manually /// [NativeName(NativeNameType.Func, "ImGuiIO_ClearInputCharacters")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearInputCharacters([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - ClearInputCharactersNative((ImGuiIO*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_ClearInputKeys")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_ClearInputKeys")] - internal static extern void ClearInputKeysNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self); - - /// /// [Internal] Release all keys /// [NativeName(NativeNameType.Func, "ImGuiIO_ClearInputKeys")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearInputKeys([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self) - { - ClearInputKeysNative(self); - } - - /// /// [Internal] Release all keys /// [NativeName(NativeNameType.Func, "ImGuiIO_ClearInputKeys")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearInputKeys([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - ClearInputKeysNative((ImGuiIO*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_ImGuiIO")] - [return: NativeName(NativeNameType.Type, "ImGuiIO*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_ImGuiIO")] - internal static extern ImGuiIO* ImGuiIONative(); - - [NativeName(NativeNameType.Func, "ImGuiIO_ImGuiIO")] - [return: NativeName(NativeNameType.Type, "ImGuiIO*")] - public static ImGuiIO* ImGuiIO() - { - ImGuiIO* ret = ImGuiIONative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiIO_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiIO_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self); - - [NativeName(NativeNameType.Func, "ImGuiIO_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ImGuiIO* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiIO_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiIO*")] ref ImGuiIO self) - { - fixed (ImGuiIO* pself = &self) - { - DestroyNative((ImGuiIO*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData")] - [return: NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData")] - internal static extern ImGuiInputTextCallbackData* ImGuiInputTextCallbackDataNative(); - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData")] - [return: NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] - public static ImGuiInputTextCallbackData* ImGuiInputTextCallbackData() - { - ImGuiInputTextCallbackData* ret = ImGuiInputTextCallbackDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextCallbackData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self); - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - DestroyNative((ImGuiInputTextCallbackData*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_DeleteChars")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextCallbackData_DeleteChars")] - internal static extern void DeleteCharsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "bytes_count")] [NativeName(NativeNameType.Type, "int")] int bytesCount); - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_DeleteChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DeleteChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "bytes_count")] [NativeName(NativeNameType.Type, "int")] int bytesCount) - { - DeleteCharsNative(self, pos, bytesCount); - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_DeleteChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DeleteChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "bytes_count")] [NativeName(NativeNameType.Type, "int")] int bytesCount) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - DeleteCharsNative((ImGuiInputTextCallbackData*)pself, pos, bytesCount); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextCallbackData_InsertChars")] - internal static extern void InsertCharsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd); - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - InsertCharsNative(self, pos, text, textEnd); - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) - { - InsertCharsNative(self, pos, text, (byte*)(default)); - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, textEnd); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (byte* ptext = &text) - { - InsertCharsNative(self, pos, (byte*)ptext, textEnd); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (byte* ptext = &text) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, textEnd); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative(self, pos, text, (byte*)ptextEnd); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative(self, pos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, (byte*)ptextEnd); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - InsertCharsNative(self, pos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InsertChars([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - InsertCharsNative((ImGuiInputTextCallbackData*)pself, pos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_SelectAll")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextCallbackData_SelectAll")] - internal static extern void SelectAllNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self); - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_SelectAll")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SelectAll([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self) - { - SelectAllNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_SelectAll")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SelectAll([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - SelectAllNative((ImGuiInputTextCallbackData*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_ClearSelection")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextCallbackData_ClearSelection")] - internal static extern void ClearSelectionNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self); - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_ClearSelection")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearSelection([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self) - { - ClearSelectionNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_ClearSelection")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearSelection([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - ClearSelectionNative((ImGuiInputTextCallbackData*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_HasSelection")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextCallbackData_HasSelection")] - internal static extern byte HasSelectionNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self); - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_HasSelection")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool HasSelection([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ImGuiInputTextCallbackData* self) - { - byte ret = HasSelectionNative(self); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_HasSelection")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool HasSelection([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallbackData*")] ref ImGuiInputTextCallbackData self) - { - fixed (ImGuiInputTextCallbackData* pself = &self) - { - byte ret = HasSelectionNative((ImGuiInputTextCallbackData*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindowClass_ImGuiWindowClass")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowClass*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindowClass_ImGuiWindowClass")] - internal static extern ImGuiWindowClass* ImGuiWindowClassNative(); - - [NativeName(NativeNameType.Func, "ImGuiWindowClass_ImGuiWindowClass")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowClass*")] - public static ImGuiWindowClass* ImGuiWindowClass() - { - ImGuiWindowClass* ret = ImGuiWindowClassNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindowClass_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindowClass_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindowClass*")] ImGuiWindowClass* self); - - [NativeName(NativeNameType.Func, "ImGuiWindowClass_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindowClass*")] ImGuiWindowClass* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiWindowClass_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindowClass*")] ref ImGuiWindowClass self) - { - fixed (ImGuiWindowClass* pself = &self) - { - DestroyNative((ImGuiWindowClass*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPayload_ImGuiPayload")] - [return: NativeName(NativeNameType.Type, "ImGuiPayload*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPayload_ImGuiPayload")] - internal static extern ImGuiPayload* ImGuiPayloadNative(); - - [NativeName(NativeNameType.Func, "ImGuiPayload_ImGuiPayload")] - [return: NativeName(NativeNameType.Type, "ImGuiPayload*")] - public static ImGuiPayload* ImGuiPayload() - { - ImGuiPayload* ret = ImGuiPayloadNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPayload_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPayload_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self); - - [NativeName(NativeNameType.Func, "ImGuiPayload_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiPayload_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - DestroyNative((ImGuiPayload*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPayload_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPayload_Clear")] - internal static extern void ClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self); - - [NativeName(NativeNameType.Func, "ImGuiPayload_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self) - { - ClearNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiPayload_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - ClearNative((ImGuiPayload*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDataType")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPayload_IsDataType")] - internal static extern byte IsDataTypeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] byte* type); - - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDataType")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDataType([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] byte* type) - { - byte ret = IsDataTypeNative(self, type); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDataType")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDataType([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ref ImGuiPayload self, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] byte* type) - { - fixed (ImGuiPayload* pself = &self) - { - byte ret = IsDataTypeNative((ImGuiPayload*)pself, type); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDataType")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDataType([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] ref byte type) - { - fixed (byte* ptype = &type) - { - byte ret = IsDataTypeNative(self, (byte*)ptype); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDataType")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDataType([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] string type) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsDataTypeNative(self, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDataType")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDataType([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ref ImGuiPayload self, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] ref byte type) - { - fixed (ImGuiPayload* pself = &self) - { - fixed (byte* ptype = &type) - { - byte ret = IsDataTypeNative((ImGuiPayload*)pself, (byte*)ptype); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDataType")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDataType([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ref ImGuiPayload self, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] string type) - { - fixed (ImGuiPayload* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (type != null) - { - pStrSize0 = Utils.GetByteCountUTF8(type); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = IsDataTypeNative((ImGuiPayload*)pself, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPayload_IsPreview")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPayload_IsPreview")] - internal static extern byte IsPreviewNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self); - - [NativeName(NativeNameType.Func, "ImGuiPayload_IsPreview")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsPreview([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self) - { - byte ret = IsPreviewNative(self); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiPayload_IsPreview")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsPreview([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - byte ret = IsPreviewNative((ImGuiPayload*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDelivery")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPayload_IsDelivery")] - internal static extern byte IsDeliveryNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self); - - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDelivery")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDelivery([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ImGuiPayload* self) - { - byte ret = IsDeliveryNative(self); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDelivery")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDelivery([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPayload*")] ref ImGuiPayload self) - { - fixed (ImGuiPayload* pself = &self) - { - byte ret = IsDeliveryNative((ImGuiPayload*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumnSortSpecs*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs")] - internal static extern ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecsNative(); - - [NativeName(NativeNameType.Func, "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumnSortSpecs*")] - public static ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs() - { - ImGuiTableColumnSortSpecs* ret = ImGuiTableColumnSortSpecsNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableColumnSortSpecs_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableColumnSortSpecs_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableColumnSortSpecs*")] ImGuiTableColumnSortSpecs* self); - - [NativeName(NativeNameType.Func, "ImGuiTableColumnSortSpecs_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableColumnSortSpecs*")] ImGuiTableColumnSortSpecs* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTableColumnSortSpecs_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableColumnSortSpecs*")] ref ImGuiTableColumnSortSpecs self) - { - fixed (ImGuiTableColumnSortSpecs* pself = &self) - { - DestroyNative((ImGuiTableColumnSortSpecs*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableSortSpecs_ImGuiTableSortSpecs")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSortSpecs*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableSortSpecs_ImGuiTableSortSpecs")] - internal static extern ImGuiTableSortSpecs* ImGuiTableSortSpecsNative(); - - [NativeName(NativeNameType.Func, "ImGuiTableSortSpecs_ImGuiTableSortSpecs")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSortSpecs*")] - public static ImGuiTableSortSpecs* ImGuiTableSortSpecs() - { - ImGuiTableSortSpecs* ret = ImGuiTableSortSpecsNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableSortSpecs_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableSortSpecs_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableSortSpecs*")] ImGuiTableSortSpecs* self); - - [NativeName(NativeNameType.Func, "ImGuiTableSortSpecs_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableSortSpecs*")] ImGuiTableSortSpecs* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTableSortSpecs_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableSortSpecs*")] ref ImGuiTableSortSpecs self) - { - fixed (ImGuiTableSortSpecs* pself = &self) - { - DestroyNative((ImGuiTableSortSpecs*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame")] - [return: NativeName(NativeNameType.Type, "ImGuiOnceUponAFrame*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame")] - internal static extern ImGuiOnceUponAFrame* ImGuiOnceUponAFrameNative(); - - [NativeName(NativeNameType.Func, "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame")] - [return: NativeName(NativeNameType.Type, "ImGuiOnceUponAFrame*")] - public static ImGuiOnceUponAFrame* ImGuiOnceUponAFrame() - { - ImGuiOnceUponAFrame* ret = ImGuiOnceUponAFrameNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiOnceUponAFrame_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiOnceUponAFrame_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiOnceUponAFrame*")] ImGuiOnceUponAFrame* self); - - [NativeName(NativeNameType.Func, "ImGuiOnceUponAFrame_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiOnceUponAFrame*")] ImGuiOnceUponAFrame* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiOnceUponAFrame_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiOnceUponAFrame*")] ref ImGuiOnceUponAFrame self) - { - fixed (ImGuiOnceUponAFrame* pself = &self) - { - DestroyNative((ImGuiOnceUponAFrame*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextFilter_ImGuiTextFilter")] - [return: NativeName(NativeNameType.Type, "ImGuiTextFilter*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextFilter_ImGuiTextFilter")] - internal static extern ImGuiTextFilter* ImGuiTextFilterNative([NativeName(NativeNameType.Param, "default_filter")] [NativeName(NativeNameType.Type, "const char*")] byte* defaultFilter); - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_ImGuiTextFilter")] - [return: NativeName(NativeNameType.Type, "ImGuiTextFilter*")] - public static ImGuiTextFilter* ImGuiTextFilter([NativeName(NativeNameType.Param, "default_filter")] [NativeName(NativeNameType.Type, "const char*")] byte* defaultFilter) - { - ImGuiTextFilter* ret = ImGuiTextFilterNative(defaultFilter); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_ImGuiTextFilter")] - [return: NativeName(NativeNameType.Type, "ImGuiTextFilter*")] - public static ImGuiTextFilter* ImGuiTextFilter() - { - ImGuiTextFilter* ret = ImGuiTextFilter((string)""); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_ImGuiTextFilter")] - [return: NativeName(NativeNameType.Type, "ImGuiTextFilter*")] - public static ImGuiTextFilter* ImGuiTextFilter([NativeName(NativeNameType.Param, "default_filter")] [NativeName(NativeNameType.Type, "const char*")] ref byte defaultFilter) - { - fixed (byte* pdefaultFilter = &defaultFilter) - { - ImGuiTextFilter* ret = ImGuiTextFilterNative((byte*)pdefaultFilter); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_ImGuiTextFilter")] - [return: NativeName(NativeNameType.Type, "ImGuiTextFilter*")] - public static ImGuiTextFilter* ImGuiTextFilter([NativeName(NativeNameType.Param, "default_filter")] [NativeName(NativeNameType.Type, "const char*")] string defaultFilter) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (defaultFilter != null) - { - pStrSize0 = Utils.GetByteCountUTF8(defaultFilter); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(defaultFilter, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiTextFilter* ret = ImGuiTextFilterNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextFilter_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextFilter_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self); - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - DestroyNative((ImGuiTextFilter*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextFilter_Draw")] - internal static extern byte DrawNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width); - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) - { - byte ret = DrawNative(self, label, width); - return ret != 0; - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = DrawNative(self, label, (float)(0.0f)); - return ret != 0; - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self) - { - bool ret = Draw(self, (string)"Filter(inc,-exc)", (float)(0.0f)); - return ret; - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) - { - bool ret = Draw(self, (string)"Filter(inc,-exc)", width); - return ret; - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, label, width); - return ret != 0; - } - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, label, (float)(0.0f)); - return ret != 0; - } - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - bool ret = Draw((ImGuiTextFilter*)pself, (string)"Filter(inc,-exc)", (float)(0.0f)); - return ret; - } - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - bool ret = Draw((ImGuiTextFilter*)pself, (string)"Filter(inc,-exc)", width); - return ret; - } - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative(self, (byte*)plabel, width); - return ret != 0; - } - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative(self, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative(self, pStr0, width); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative(self, pStr0, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, width); - return ret != 0; - } - } - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* plabel = &label) - { - byte ret = DrawNative((ImGuiTextFilter*)pself, (byte*)plabel, (float)(0.0f)); - return ret != 0; - } - } - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative((ImGuiTextFilter*)pself, pStr0, width); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Draw([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = DrawNative((ImGuiTextFilter*)pself, pStr0, (float)(0.0f)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextFilter_PassFilter")] - internal static extern byte PassFilterNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd); - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - byte ret = PassFilterNative(self, text, textEnd); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) - { - byte ret = PassFilterNative(self, text, (byte*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, textEnd); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative(self, (byte*)ptext, textEnd); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, textEnd); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)(default)); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative(self, text, (byte*)ptextEnd); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative(self, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, (byte*)ptextEnd); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = PassFilterNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte ret = PassFilterNative((ImGuiTextFilter*)pself, (byte*)ptext, (byte*)ptextEnd); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool PassFilter([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = PassFilterNative((ImGuiTextFilter*)pself, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextFilter_Build")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextFilter_Build")] - internal static extern void BuildNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self); - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_Build")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Build([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self) - { - BuildNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_Build")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Build([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - BuildNative((ImGuiTextFilter*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextFilter_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextFilter_Clear")] - internal static extern void ClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self); - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self) - { - ClearNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - ClearNative((ImGuiTextFilter*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextFilter_IsActive")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextFilter_IsActive")] - internal static extern byte IsActiveNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self); - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_IsActive")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsActive([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ImGuiTextFilter* self) - { - byte ret = IsActiveNative(self); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiTextFilter_IsActive")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsActive([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextFilter*")] ref ImGuiTextFilter self) - { - fixed (ImGuiTextFilter* pself = &self) - { - byte ret = IsActiveNative((ImGuiTextFilter*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextRange_ImGuiTextRange_Nil")] - [return: NativeName(NativeNameType.Type, "ImGuiTextRange*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextRange_ImGuiTextRange_Nil")] - internal static extern ImGuiTextRange* ImGuiTextRangeNative(); - - [NativeName(NativeNameType.Func, "ImGuiTextRange_ImGuiTextRange_Nil")] - [return: NativeName(NativeNameType.Type, "ImGuiTextRange*")] - public static ImGuiTextRange* ImGuiTextRange() - { - ImGuiTextRange* ret = ImGuiTextRangeNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextRange_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextRange_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextRange*")] ImGuiTextRange* self); - - [NativeName(NativeNameType.Func, "ImGuiTextRange_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextRange*")] ImGuiTextRange* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTextRange_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextRange*")] ref ImGuiTextRange self) - { - fixed (ImGuiTextRange* pself = &self) - { - DestroyNative((ImGuiTextRange*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextRange_ImGuiTextRange_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiTextRange*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextRange_ImGuiTextRange_Str")] - internal static extern ImGuiTextRange* ImGuiTextRangeNative([NativeName(NativeNameType.Param, "_b")] [NativeName(NativeNameType.Type, "const char*")] byte* B, [NativeName(NativeNameType.Param, "_e")] [NativeName(NativeNameType.Type, "const char*")] byte* E); - - [NativeName(NativeNameType.Func, "ImGuiTextRange_ImGuiTextRange_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiTextRange*")] - public static ImGuiTextRange* ImGuiTextRange([NativeName(NativeNameType.Param, "_b")] [NativeName(NativeNameType.Type, "const char*")] byte* B, [NativeName(NativeNameType.Param, "_e")] [NativeName(NativeNameType.Type, "const char*")] byte* E) - { - ImGuiTextRange* ret = ImGuiTextRangeNative(B, E); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextRange_ImGuiTextRange_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiTextRange*")] - public static ImGuiTextRange* ImGuiTextRange([NativeName(NativeNameType.Param, "_b")] [NativeName(NativeNameType.Type, "const char*")] ref byte B, [NativeName(NativeNameType.Param, "_e")] [NativeName(NativeNameType.Type, "const char*")] byte* E) - { - fixed (byte* pB = &B) - { - ImGuiTextRange* ret = ImGuiTextRangeNative((byte*)pB, E); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextRange_ImGuiTextRange_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiTextRange*")] - public static ImGuiTextRange* ImGuiTextRange([NativeName(NativeNameType.Param, "_b")] [NativeName(NativeNameType.Type, "const char*")] string B, [NativeName(NativeNameType.Param, "_e")] [NativeName(NativeNameType.Type, "const char*")] byte* E) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (B != null) - { - pStrSize0 = Utils.GetByteCountUTF8(B); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(B, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiTextRange* ret = ImGuiTextRangeNative(pStr0, E); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextRange_ImGuiTextRange_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiTextRange*")] - public static ImGuiTextRange* ImGuiTextRange([NativeName(NativeNameType.Param, "_b")] [NativeName(NativeNameType.Type, "const char*")] byte* B, [NativeName(NativeNameType.Param, "_e")] [NativeName(NativeNameType.Type, "const char*")] ref byte E) - { - fixed (byte* pE = &E) - { - ImGuiTextRange* ret = ImGuiTextRangeNative(B, (byte*)pE); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextRange_ImGuiTextRange_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiTextRange*")] - public static ImGuiTextRange* ImGuiTextRange([NativeName(NativeNameType.Param, "_b")] [NativeName(NativeNameType.Type, "const char*")] byte* B, [NativeName(NativeNameType.Param, "_e")] [NativeName(NativeNameType.Type, "const char*")] string E) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (E != null) - { - pStrSize0 = Utils.GetByteCountUTF8(E); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(E, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGuiTextRange* ret = ImGuiTextRangeNative(B, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextRange_ImGuiTextRange_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiTextRange*")] - public static ImGuiTextRange* ImGuiTextRange([NativeName(NativeNameType.Param, "_b")] [NativeName(NativeNameType.Type, "const char*")] ref byte B, [NativeName(NativeNameType.Param, "_e")] [NativeName(NativeNameType.Type, "const char*")] ref byte E) - { - fixed (byte* pB = &B) - { - fixed (byte* pE = &E) - { - ImGuiTextRange* ret = ImGuiTextRangeNative((byte*)pB, (byte*)pE); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextRange_ImGuiTextRange_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiTextRange*")] - public static ImGuiTextRange* ImGuiTextRange([NativeName(NativeNameType.Param, "_b")] [NativeName(NativeNameType.Type, "const char*")] string B, [NativeName(NativeNameType.Param, "_e")] [NativeName(NativeNameType.Type, "const char*")] string E) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (B != null) - { - pStrSize0 = Utils.GetByteCountUTF8(B); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(B, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (E != null) - { - pStrSize1 = Utils.GetByteCountUTF8(E); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(E, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImGuiTextRange* ret = ImGuiTextRangeNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextRange_empty")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextRange_empty")] - internal static extern byte emptyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextRange*")] ImGuiTextRange* self); - - [NativeName(NativeNameType.Func, "ImGuiTextRange_empty")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool empty([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextRange*")] ImGuiTextRange* self) - { - byte ret = emptyNative(self); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiTextRange_empty")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool empty([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextRange*")] ref ImGuiTextRange self) - { - fixed (ImGuiTextRange* pself = &self) - { - byte ret = emptyNative((ImGuiTextRange*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextRange_split")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextRange_split")] - internal static extern void splitNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextRange*")] ImGuiTextRange* self, [NativeName(NativeNameType.Param, "separator")] [NativeName(NativeNameType.Type, "char")] byte separator, [NativeName(NativeNameType.Param, "out")] [NativeName(NativeNameType.Type, "ImVector_ImGuiTextRange*")] ImVectorImGuiTextRange* output); - - [NativeName(NativeNameType.Func, "ImGuiTextRange_split")] - [return: NativeName(NativeNameType.Type, "void")] - public static void split([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextRange*")] ImGuiTextRange* self, [NativeName(NativeNameType.Param, "separator")] [NativeName(NativeNameType.Type, "char")] byte separator, [NativeName(NativeNameType.Param, "out")] [NativeName(NativeNameType.Type, "ImVector_ImGuiTextRange*")] ImVectorImGuiTextRange* output) - { - splitNative(self, separator, output); - } - - [NativeName(NativeNameType.Func, "ImGuiTextRange_split")] - [return: NativeName(NativeNameType.Type, "void")] - public static void split([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextRange*")] ref ImGuiTextRange self, [NativeName(NativeNameType.Param, "separator")] [NativeName(NativeNameType.Type, "char")] byte separator, [NativeName(NativeNameType.Param, "out")] [NativeName(NativeNameType.Type, "ImVector_ImGuiTextRange*")] ImVectorImGuiTextRange* output) - { - fixed (ImGuiTextRange* pself = &self) - { - splitNative((ImGuiTextRange*)pself, separator, output); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextRange_split")] - [return: NativeName(NativeNameType.Type, "void")] - public static void split([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextRange*")] ImGuiTextRange* self, [NativeName(NativeNameType.Param, "separator")] [NativeName(NativeNameType.Type, "char")] byte separator, [NativeName(NativeNameType.Param, "out")] [NativeName(NativeNameType.Type, "ImVector_ImGuiTextRange*")] ref ImVectorImGuiTextRange output) - { - fixed (ImVectorImGuiTextRange* poutput = &output) - { - splitNative(self, separator, (ImVectorImGuiTextRange*)poutput); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextRange_split")] - [return: NativeName(NativeNameType.Type, "void")] - public static void split([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextRange*")] ref ImGuiTextRange self, [NativeName(NativeNameType.Param, "separator")] [NativeName(NativeNameType.Type, "char")] byte separator, [NativeName(NativeNameType.Param, "out")] [NativeName(NativeNameType.Type, "ImVector_ImGuiTextRange*")] ref ImVectorImGuiTextRange output) - { - fixed (ImGuiTextRange* pself = &self) - { - fixed (ImVectorImGuiTextRange* poutput = &output) - { - splitNative((ImGuiTextRange*)pself, separator, (ImVectorImGuiTextRange*)poutput); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_ImGuiTextBuffer")] - [return: NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_ImGuiTextBuffer")] - internal static extern ImGuiTextBuffer* ImGuiTextBufferNative(); - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_ImGuiTextBuffer")] - [return: NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] - public static ImGuiTextBuffer* ImGuiTextBuffer() - { - ImGuiTextBuffer* ret = ImGuiTextBufferNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self); - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - DestroyNative((ImGuiTextBuffer*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_begin")] - internal static extern byte* beginNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self); - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self) - { - byte* ret = beginNative(self); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string beginS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self) - { - string ret = Utils.DecodeStringUTF8(beginNative(self)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* ret = beginNative((ImGuiTextBuffer*)pself); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string beginS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - string ret = Utils.DecodeStringUTF8(beginNative((ImGuiTextBuffer*)pself)); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_end")] - internal static extern byte* endNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self); - - /// /// Buf is zero-terminated, so end() will point on the zero-terminator /// [NativeName(NativeNameType.Func, "ImGuiTextBuffer_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* end([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self) - { - byte* ret = endNative(self); - return ret; - } - - /// /// Buf is zero-terminated, so end() will point on the zero-terminator /// [NativeName(NativeNameType.Func, "ImGuiTextBuffer_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string endS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self) - { - string ret = Utils.DecodeStringUTF8(endNative(self)); - return ret; - } - - /// /// Buf is zero-terminated, so end() will point on the zero-terminator /// [NativeName(NativeNameType.Func, "ImGuiTextBuffer_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* end([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* ret = endNative((ImGuiTextBuffer*)pself); - return ret; - } - } - - /// /// Buf is zero-terminated, so end() will point on the zero-terminator /// [NativeName(NativeNameType.Func, "ImGuiTextBuffer_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string endS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - string ret = Utils.DecodeStringUTF8(endNative((ImGuiTextBuffer*)pself)); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_size")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_size")] - internal static extern int sizeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self); - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_size")] - [return: NativeName(NativeNameType.Type, "int")] - public static int size([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self) - { - int ret = sizeNative(self); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_size")] - [return: NativeName(NativeNameType.Type, "int")] - public static int size([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - int ret = sizeNative((ImGuiTextBuffer*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_empty")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_empty")] - internal static extern byte emptyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self); - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_empty")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool empty([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self) - { - byte ret = emptyNative(self); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_empty")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool empty([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte ret = emptyNative((ImGuiTextBuffer*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_clear")] - internal static extern void clearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self); - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self) - { - clearNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - clearNative((ImGuiTextBuffer*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_reserve")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_reserve")] - internal static extern void reserveNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "capacity")] [NativeName(NativeNameType.Type, "int")] int capacity); - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_reserve")] - [return: NativeName(NativeNameType.Type, "void")] - public static void reserve([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "capacity")] [NativeName(NativeNameType.Type, "int")] int capacity) - { - reserveNative(self, capacity); - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_reserve")] - [return: NativeName(NativeNameType.Type, "void")] - public static void reserve([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "capacity")] [NativeName(NativeNameType.Type, "int")] int capacity) - { - fixed (ImGuiTextBuffer* pself = &self) - { - reserveNative((ImGuiTextBuffer*)pself, capacity); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_c_str")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_c_str")] - internal static extern byte* c_strNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self); - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_c_str")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* c_str([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self) - { - byte* ret = c_strNative(self); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_c_str")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string c_strS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self) - { - string ret = Utils.DecodeStringUTF8(c_strNative(self)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_c_str")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* c_str([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* ret = c_strNative((ImGuiTextBuffer*)pself); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_c_str")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string c_strS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self) - { - fixed (ImGuiTextBuffer* pself = &self) - { - string ret = Utils.DecodeStringUTF8(c_strNative((ImGuiTextBuffer*)pself)); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_append")] - internal static extern void appendNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd); - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - appendNative(self, str, strEnd); - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) - { - appendNative(self, str, (byte*)(default)); - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - appendNative((ImGuiTextBuffer*)pself, str, strEnd); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) - { - fixed (ImGuiTextBuffer* pself = &self) - { - appendNative((ImGuiTextBuffer*)pself, str, (byte*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - fixed (byte* pstr = &str) - { - appendNative(self, (byte*)pstr, strEnd); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) - { - fixed (byte* pstr = &str) - { - appendNative(self, (byte*)pstr, (byte*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, strEnd); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative(self, str, (byte*)pstrEnd); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative(self, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative((ImGuiTextBuffer*)pself, str, (byte*)pstrEnd); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendNative((ImGuiTextBuffer*)pself, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative(self, (byte*)pstr, (byte*)pstrEnd); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - appendNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - appendNative((ImGuiTextBuffer*)pself, (byte*)pstr, (byte*)pstrEnd); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - appendNative((ImGuiTextBuffer*)pself, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendfv")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_appendfv")] - internal static extern void appendfvNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendfv")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendfv([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - appendfvNative(self, fmt, args); - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendfv")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendfv([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (ImGuiTextBuffer* pself = &self) - { - appendfvNative((ImGuiTextBuffer*)pself, fmt, args); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendfv")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendfv([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (byte* pfmt = &fmt) - { - appendfvNative(self, (byte*)pfmt, args); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendfv")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendfv([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* self, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendfvNative(self, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendfv")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendfv([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (ImGuiTextBuffer* pself = &self) - { - fixed (byte* pfmt = &fmt) - { - appendfvNative((ImGuiTextBuffer*)pself, (byte*)pfmt, args); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendfv")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendfv([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer self, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - fixed (ImGuiTextBuffer* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendfvNative((ImGuiTextBuffer*)pself, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStoragePair_ImGuiStoragePair_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiStoragePair*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStoragePair_ImGuiStoragePair_Int")] - internal static extern ImGuiStoragePair* ImGuiStoragePairNative([NativeName(NativeNameType.Param, "_key")] [NativeName(NativeNameType.Type, "ImGuiID")] int Key, [NativeName(NativeNameType.Param, "_val_i")] [NativeName(NativeNameType.Type, "int")] int ValI); - - [NativeName(NativeNameType.Func, "ImGuiStoragePair_ImGuiStoragePair_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiStoragePair*")] - public static ImGuiStoragePair* ImGuiStoragePair([NativeName(NativeNameType.Param, "_key")] [NativeName(NativeNameType.Type, "ImGuiID")] int Key, [NativeName(NativeNameType.Param, "_val_i")] [NativeName(NativeNameType.Type, "int")] int ValI) - { - ImGuiStoragePair* ret = ImGuiStoragePairNative(Key, ValI); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStoragePair_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStoragePair_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStoragePair*")] ImGuiStoragePair* self); - - [NativeName(NativeNameType.Func, "ImGuiStoragePair_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStoragePair*")] ImGuiStoragePair* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiStoragePair_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStoragePair*")] ref ImGuiStoragePair self) - { - fixed (ImGuiStoragePair* pself = &self) - { - DestroyNative((ImGuiStoragePair*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStoragePair_ImGuiStoragePair_Float")] - [return: NativeName(NativeNameType.Type, "ImGuiStoragePair*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStoragePair_ImGuiStoragePair_Float")] - internal static extern ImGuiStoragePair* ImGuiStoragePairNative([NativeName(NativeNameType.Param, "_key")] [NativeName(NativeNameType.Type, "ImGuiID")] int Key, [NativeName(NativeNameType.Param, "_val_f")] [NativeName(NativeNameType.Type, "float")] float ValF); - - [NativeName(NativeNameType.Func, "ImGuiStoragePair_ImGuiStoragePair_Float")] - [return: NativeName(NativeNameType.Type, "ImGuiStoragePair*")] - public static ImGuiStoragePair* ImGuiStoragePair([NativeName(NativeNameType.Param, "_key")] [NativeName(NativeNameType.Type, "ImGuiID")] int Key, [NativeName(NativeNameType.Param, "_val_f")] [NativeName(NativeNameType.Type, "float")] float ValF) - { - ImGuiStoragePair* ret = ImGuiStoragePairNative(Key, ValF); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStoragePair_ImGuiStoragePair_Ptr")] - [return: NativeName(NativeNameType.Type, "ImGuiStoragePair*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStoragePair_ImGuiStoragePair_Ptr")] - internal static extern ImGuiStoragePair* ImGuiStoragePairNative([NativeName(NativeNameType.Param, "_key")] [NativeName(NativeNameType.Type, "ImGuiID")] int Key, [NativeName(NativeNameType.Param, "_val_p")] [NativeName(NativeNameType.Type, "void*")] void* ValP); - - [NativeName(NativeNameType.Func, "ImGuiStoragePair_ImGuiStoragePair_Ptr")] - [return: NativeName(NativeNameType.Type, "ImGuiStoragePair*")] - public static ImGuiStoragePair* ImGuiStoragePair([NativeName(NativeNameType.Param, "_key")] [NativeName(NativeNameType.Type, "ImGuiID")] int Key, [NativeName(NativeNameType.Param, "_val_p")] [NativeName(NativeNameType.Type, "void*")] void* ValP) - { - ImGuiStoragePair* ret = ImGuiStoragePairNative(Key, ValP); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_Clear")] - internal static extern void ClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self); - - [NativeName(NativeNameType.Func, "ImGuiStorage_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self) - { - ClearNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self) - { - fixed (ImGuiStorage* pself = &self) - { - ClearNative((ImGuiStorage*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_GetInt")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_GetInt")] - internal static extern int GetIntNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "int")] int defaultVal); - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetInt")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetInt([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "int")] int defaultVal) - { - int ret = GetIntNative(self, key, defaultVal); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetInt")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetInt([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - int ret = GetIntNative(self, key, (int)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetInt")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetInt([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "int")] int defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - int ret = GetIntNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetInt")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetInt([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - fixed (ImGuiStorage* pself = &self) - { - int ret = GetIntNative((ImGuiStorage*)pself, key, (int)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_SetInt")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_SetInt")] - internal static extern void SetIntNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "int")] int val); - - [NativeName(NativeNameType.Func, "ImGuiStorage_SetInt")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetInt([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "int")] int val) - { - SetIntNative(self, key, val); - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_SetInt")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetInt([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "int")] int val) - { - fixed (ImGuiStorage* pself = &self) - { - SetIntNative((ImGuiStorage*)pself, key, val); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBool")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_GetBool")] - internal static extern byte GetBoolNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "bool")] byte defaultVal); - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetBool([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "bool")] bool defaultVal) - { - byte ret = GetBoolNative(self, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetBool([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - byte ret = GetBoolNative(self, key, (byte)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetBool([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "bool")] bool defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - byte ret = GetBoolNative((ImGuiStorage*)pself, key, defaultVal ? (byte)1 : (byte)0); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBool")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetBool([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - fixed (ImGuiStorage* pself = &self) - { - byte ret = GetBoolNative((ImGuiStorage*)pself, key, (byte)(0)); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_SetBool")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_SetBool")] - internal static extern void SetBoolNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "bool")] byte val); - - [NativeName(NativeNameType.Func, "ImGuiStorage_SetBool")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetBool([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "bool")] bool val) - { - SetBoolNative(self, key, val ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_SetBool")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetBool([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "bool")] bool val) - { - fixed (ImGuiStorage* pself = &self) - { - SetBoolNative((ImGuiStorage*)pself, key, val ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloat")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_GetFloat")] - internal static extern float GetFloatNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "float")] float defaultVal); - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloat")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetFloat([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "float")] float defaultVal) - { - float ret = GetFloatNative(self, key, defaultVal); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloat")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetFloat([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - float ret = GetFloatNative(self, key, (float)(0.0f)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloat")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetFloat([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "float")] float defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - float ret = GetFloatNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloat")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetFloat([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - fixed (ImGuiStorage* pself = &self) - { - float ret = GetFloatNative((ImGuiStorage*)pself, key, (float)(0.0f)); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_SetFloat")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_SetFloat")] - internal static extern void SetFloatNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "float")] float val); - - [NativeName(NativeNameType.Func, "ImGuiStorage_SetFloat")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetFloat([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "float")] float val) - { - SetFloatNative(self, key, val); - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_SetFloat")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetFloat([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "float")] float val) - { - fixed (ImGuiStorage* pself = &self) - { - SetFloatNative((ImGuiStorage*)pself, key, val); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_GetVoidPtr")] - [return: NativeName(NativeNameType.Type, "void*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_GetVoidPtr")] - internal static extern void* GetVoidPtrNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key); - - /// /// default_val is NULL /// [NativeName(NativeNameType.Func, "ImGuiStorage_GetVoidPtr")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* GetVoidPtr([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - void* ret = GetVoidPtrNative(self, key); - return ret; - } - - /// /// default_val is NULL /// [NativeName(NativeNameType.Func, "ImGuiStorage_GetVoidPtr")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* GetVoidPtr([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - fixed (ImGuiStorage* pself = &self) - { - void* ret = GetVoidPtrNative((ImGuiStorage*)pself, key); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_SetVoidPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_SetVoidPtr")] - internal static extern void SetVoidPtrNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "void*")] void* val); - - [NativeName(NativeNameType.Func, "ImGuiStorage_SetVoidPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetVoidPtr([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "void*")] void* val) - { - SetVoidPtrNative(self, key, val); - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_SetVoidPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetVoidPtr([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "void*")] void* val) - { - fixed (ImGuiStorage* pself = &self) - { - SetVoidPtrNative((ImGuiStorage*)pself, key, val); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_GetIntRef")] - [return: NativeName(NativeNameType.Type, "int*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_GetIntRef")] - internal static extern int* GetIntRefNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "int")] int defaultVal); - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetIntRef")] - [return: NativeName(NativeNameType.Type, "int*")] - public static int* GetIntRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "int")] int defaultVal) - { - int* ret = GetIntRefNative(self, key, defaultVal); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetIntRef")] - [return: NativeName(NativeNameType.Type, "int*")] - public static int* GetIntRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - int* ret = GetIntRefNative(self, key, (int)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetIntRef")] - [return: NativeName(NativeNameType.Type, "int*")] - public static int* GetIntRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "int")] int defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - int* ret = GetIntRefNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetIntRef")] - [return: NativeName(NativeNameType.Type, "int*")] - public static int* GetIntRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - fixed (ImGuiStorage* pself = &self) - { - int* ret = GetIntRefNative((ImGuiStorage*)pself, key, (int)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBoolRef")] - [return: NativeName(NativeNameType.Type, "bool*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_GetBoolRef")] - internal static extern byte* GetBoolRefNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "bool")] byte defaultVal); - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBoolRef")] - [return: NativeName(NativeNameType.Type, "bool*")] - public static byte* GetBoolRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "bool")] bool defaultVal) - { - byte* ret = GetBoolRefNative(self, key, defaultVal ? (byte)1 : (byte)0); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBoolRef")] - [return: NativeName(NativeNameType.Type, "bool*")] - public static byte* GetBoolRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - byte* ret = GetBoolRefNative(self, key, (byte)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBoolRef")] - [return: NativeName(NativeNameType.Type, "bool*")] - public static byte* GetBoolRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "bool")] bool defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - byte* ret = GetBoolRefNative((ImGuiStorage*)pself, key, defaultVal ? (byte)1 : (byte)0); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBoolRef")] - [return: NativeName(NativeNameType.Type, "bool*")] - public static byte* GetBoolRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - fixed (ImGuiStorage* pself = &self) - { - byte* ret = GetBoolRefNative((ImGuiStorage*)pself, key, (byte)(0)); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloatRef")] - [return: NativeName(NativeNameType.Type, "float*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_GetFloatRef")] - internal static extern float* GetFloatRefNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "float")] float defaultVal); - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloatRef")] - [return: NativeName(NativeNameType.Type, "float*")] - public static float* GetFloatRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "float")] float defaultVal) - { - float* ret = GetFloatRefNative(self, key, defaultVal); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloatRef")] - [return: NativeName(NativeNameType.Type, "float*")] - public static float* GetFloatRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - float* ret = GetFloatRefNative(self, key, (float)(0.0f)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloatRef")] - [return: NativeName(NativeNameType.Type, "float*")] - public static float* GetFloatRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "float")] float defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - float* ret = GetFloatRefNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloatRef")] - [return: NativeName(NativeNameType.Type, "float*")] - public static float* GetFloatRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - fixed (ImGuiStorage* pself = &self) - { - float* ret = GetFloatRefNative((ImGuiStorage*)pself, key, (float)(0.0f)); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_GetVoidPtrRef")] - [return: NativeName(NativeNameType.Type, "void**")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_GetVoidPtrRef")] - internal static extern void** GetVoidPtrRefNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "void*")] void* defaultVal); - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetVoidPtrRef")] - [return: NativeName(NativeNameType.Type, "void**")] - public static void** GetVoidPtrRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "void*")] void* defaultVal) - { - void** ret = GetVoidPtrRefNative(self, key, defaultVal); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetVoidPtrRef")] - [return: NativeName(NativeNameType.Type, "void**")] - public static void** GetVoidPtrRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - void** ret = GetVoidPtrRefNative(self, key, (void*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetVoidPtrRef")] - [return: NativeName(NativeNameType.Type, "void**")] - public static void** GetVoidPtrRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "void*")] void* defaultVal) - { - fixed (ImGuiStorage* pself = &self) - { - void** ret = GetVoidPtrRefNative((ImGuiStorage*)pself, key, defaultVal); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_GetVoidPtrRef")] - [return: NativeName(NativeNameType.Type, "void**")] - public static void** GetVoidPtrRef([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) - { - fixed (ImGuiStorage* pself = &self) - { - void** ret = GetVoidPtrRefNative((ImGuiStorage*)pself, key, (void*)(default)); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_SetAllInt")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_SetAllInt")] - internal static extern void SetAllIntNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "int")] int val); - - [NativeName(NativeNameType.Func, "ImGuiStorage_SetAllInt")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetAllInt([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "int")] int val) - { - SetAllIntNative(self, val); - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_SetAllInt")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetAllInt([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "int")] int val) - { - fixed (ImGuiStorage* pself = &self) - { - SetAllIntNative((ImGuiStorage*)pself, val); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStorage_BuildSortByKey")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStorage_BuildSortByKey")] - internal static extern void BuildSortByKeyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self); - - [NativeName(NativeNameType.Func, "ImGuiStorage_BuildSortByKey")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BuildSortByKey([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* self) - { - BuildSortByKeyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiStorage_BuildSortByKey")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BuildSortByKey([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage self) - { - fixed (ImGuiStorage* pself = &self) - { - BuildSortByKeyNative((ImGuiStorage*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiListClipper_ImGuiListClipper")] - [return: NativeName(NativeNameType.Type, "ImGuiListClipper*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiListClipper_ImGuiListClipper")] - internal static extern ImGuiListClipper* ImGuiListClipperNative(); - - [NativeName(NativeNameType.Func, "ImGuiListClipper_ImGuiListClipper")] - [return: NativeName(NativeNameType.Type, "ImGuiListClipper*")] - public static ImGuiListClipper* ImGuiListClipper() - { - ImGuiListClipper* ret = ImGuiListClipperNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiListClipper_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiListClipper_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* self); - - [NativeName(NativeNameType.Func, "ImGuiListClipper_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiListClipper_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - DestroyNative((ImGuiListClipper*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiListClipper_Begin")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiListClipper_Begin")] - internal static extern void BeginNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* self, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "items_height")] [NativeName(NativeNameType.Type, "float")] float itemsHeight); - - [NativeName(NativeNameType.Func, "ImGuiListClipper_Begin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* self, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "items_height")] [NativeName(NativeNameType.Type, "float")] float itemsHeight) - { - BeginNative(self, itemsCount, itemsHeight); - } - - [NativeName(NativeNameType.Func, "ImGuiListClipper_Begin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* self, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - BeginNative(self, itemsCount, (float)(-1.0f)); - } - - [NativeName(NativeNameType.Func, "ImGuiListClipper_Begin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ref ImGuiListClipper self, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "items_height")] [NativeName(NativeNameType.Type, "float")] float itemsHeight) - { - fixed (ImGuiListClipper* pself = &self) - { - BeginNative((ImGuiListClipper*)pself, itemsCount, itemsHeight); - } - } - - [NativeName(NativeNameType.Func, "ImGuiListClipper_Begin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ref ImGuiListClipper self, [NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) - { - fixed (ImGuiListClipper* pself = &self) - { - BeginNative((ImGuiListClipper*)pself, itemsCount, (float)(-1.0f)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiListClipper_End")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiListClipper_End")] - internal static extern void EndNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* self); - - /// /// Automatically called on the last call of Step() that returns false. /// [NativeName(NativeNameType.Func, "ImGuiListClipper_End")] - [return: NativeName(NativeNameType.Type, "void")] - public static void End([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* self) - { - EndNative(self); - } - - /// /// Automatically called on the last call of Step() that returns false. /// [NativeName(NativeNameType.Func, "ImGuiListClipper_End")] - [return: NativeName(NativeNameType.Type, "void")] - public static void End([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - EndNative((ImGuiListClipper*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiListClipper_Step")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiListClipper_Step")] - internal static extern byte StepNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* self); - - /// /// Call until it returns false. The DisplayStartDisplayEnd fields will be set and you can processdraw those items. /// [NativeName(NativeNameType.Func, "ImGuiListClipper_Step")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Step([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* self) - { - byte ret = StepNative(self); - return ret != 0; - } - - /// /// Call until it returns false. The DisplayStartDisplayEnd fields will be set and you can processdraw those items. /// [NativeName(NativeNameType.Func, "ImGuiListClipper_Step")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Step([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ref ImGuiListClipper self) - { - fixed (ImGuiListClipper* pself = &self) - { - byte ret = StepNative((ImGuiListClipper*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiListClipper_IncludeRangeByIndices")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiListClipper_IncludeRangeByIndices")] - internal static extern void IncludeRangeByIndicesNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* self, [NativeName(NativeNameType.Param, "item_begin")] [NativeName(NativeNameType.Type, "int")] int itemBegin, [NativeName(NativeNameType.Param, "item_end")] [NativeName(NativeNameType.Type, "int")] int itemEnd); - - /// /// item_end is exclusive e.g. use (42, 42+1) to make item 42 never clipped. /// [NativeName(NativeNameType.Func, "ImGuiListClipper_IncludeRangeByIndices")] - [return: NativeName(NativeNameType.Type, "void")] - public static void IncludeRangeByIndices([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* self, [NativeName(NativeNameType.Param, "item_begin")] [NativeName(NativeNameType.Type, "int")] int itemBegin, [NativeName(NativeNameType.Param, "item_end")] [NativeName(NativeNameType.Type, "int")] int itemEnd) - { - IncludeRangeByIndicesNative(self, itemBegin, itemEnd); - } - - /// /// item_end is exclusive e.g. use (42, 42+1) to make item 42 never clipped. /// [NativeName(NativeNameType.Func, "ImGuiListClipper_IncludeRangeByIndices")] - [return: NativeName(NativeNameType.Type, "void")] - public static void IncludeRangeByIndices([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ref ImGuiListClipper self, [NativeName(NativeNameType.Param, "item_begin")] [NativeName(NativeNameType.Type, "int")] int itemBegin, [NativeName(NativeNameType.Param, "item_end")] [NativeName(NativeNameType.Type, "int")] int itemEnd) - { - fixed (ImGuiListClipper* pself = &self) - { - IncludeRangeByIndicesNative((ImGuiListClipper*)pself, itemBegin, itemEnd); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImColor_ImColor_Nil")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImColor_ImColor_Nil")] - internal static extern ImColor* ImColorNative(); - - [NativeName(NativeNameType.Func, "ImColor_ImColor_Nil")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - public static ImColor* ImColor() - { - ImColor* ret = ImColorNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImColor_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImColor_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImColor*")] ImColor* self); - - [NativeName(NativeNameType.Func, "ImColor_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImColor*")] ImColor* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImColor_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImColor*")] ref ImColor self) - { - fixed (ImColor* pself = &self) - { - DestroyNative((ImColor*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImColor_ImColor_Float")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImColor_ImColor_Float")] - internal static extern ImColor* ImColorNative([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "float")] float a); - - [NativeName(NativeNameType.Func, "ImColor_ImColor_Float")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - public static ImColor* ImColor([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "float")] float a) - { - ImColor* ret = ImColorNative(r, g, b, a); - return ret; - } - - [NativeName(NativeNameType.Func, "ImColor_ImColor_Float")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - public static ImColor* ImColor([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "float")] float r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "float")] float g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "float")] float b) - { - ImColor* ret = ImColorNative(r, g, b, (float)(1.0f)); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImColor_ImColor_Vec4")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImColor_ImColor_Vec4")] - internal static extern ImColor* ImColorNative([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col); - - [NativeName(NativeNameType.Func, "ImColor_ImColor_Vec4")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - public static ImColor* ImColor([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 col) - { - ImColor* ret = ImColorNative(col); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImColor_ImColor_Int")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImColor_ImColor_Int")] - internal static extern ImColor* ImColorNative([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "int")] int r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "int")] int g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "int")] int b, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "int")] int a); - - [NativeName(NativeNameType.Func, "ImColor_ImColor_Int")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - public static ImColor* ImColor([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "int")] int r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "int")] int g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "int")] int b, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "int")] int a) - { - ImColor* ret = ImColorNative(r, g, b, a); - return ret; - } - - [NativeName(NativeNameType.Func, "ImColor_ImColor_Int")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - public static ImColor* ImColor([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "int")] int r, [NativeName(NativeNameType.Param, "g")] [NativeName(NativeNameType.Type, "int")] int g, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "int")] int b) - { - ImColor* ret = ImColorNative(r, g, b, (int)(255)); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImColor_ImColor_U32")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImColor_ImColor_U32")] - internal static extern ImColor* ImColorNative([NativeName(NativeNameType.Param, "rgba")] [NativeName(NativeNameType.Type, "ImU32")] uint rgba); - - [NativeName(NativeNameType.Func, "ImColor_ImColor_U32")] - [return: NativeName(NativeNameType.Type, "ImColor*")] - public static ImColor* ImColor([NativeName(NativeNameType.Param, "rgba")] [NativeName(NativeNameType.Type, "ImU32")] uint rgba) - { - ImColor* ret = ImColorNative(rgba); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImColor_SetHSV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImColor_SetHSV")] - internal static extern void SetHSVNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImColor*")] ImColor* self, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "float")] float a); - - [NativeName(NativeNameType.Func, "ImColor_SetHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetHSV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImColor*")] ImColor* self, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "float")] float a) - { - SetHSVNative(self, h, s, v, a); - } - - [NativeName(NativeNameType.Func, "ImColor_SetHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetHSV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImColor*")] ImColor* self, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) - { - SetHSVNative(self, h, s, v, (float)(1.0f)); - } - - [NativeName(NativeNameType.Func, "ImColor_SetHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetHSV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImColor*")] ref ImColor self, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "float")] float a) - { - fixed (ImColor* pself = &self) - { - SetHSVNative((ImColor*)pself, h, s, v, a); - } - } - - [NativeName(NativeNameType.Func, "ImColor_SetHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetHSV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImColor*")] ref ImColor self, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) - { - fixed (ImColor* pself = &self) - { - SetHSVNative((ImColor*)pself, h, s, v, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImColor_HSV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImColor_HSV")] - internal static extern void HSVNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImColor*")] ImColor* pOut, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "float")] float a); - - [NativeName(NativeNameType.Func, "ImColor_HSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void HSV([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImColor*")] ImColor* pOut, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "float")] float a) - { - HSVNative(pOut, h, s, v, a); - } - - [NativeName(NativeNameType.Func, "ImColor_HSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void HSV([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImColor*")] ImColor* pOut, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) - { - HSVNative(pOut, h, s, v, (float)(1.0f)); - } - - [NativeName(NativeNameType.Func, "ImColor_HSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void HSV([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImColor*")] ref ImColor pOut, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "float")] float a) - { - fixed (ImColor* ppOut = &pOut) - { - HSVNative((ImColor*)ppOut, h, s, v, a); - } - } - - [NativeName(NativeNameType.Func, "ImColor_HSV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void HSV([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImColor*")] ref ImColor pOut, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) - { - fixed (ImColor* ppOut = &pOut) - { - HSVNative((ImColor*)ppOut, h, s, v, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawCmd_ImDrawCmd")] - [return: NativeName(NativeNameType.Type, "ImDrawCmd*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawCmd_ImDrawCmd")] - internal static extern ImDrawCmd* ImDrawCmdNative(); - - /// /// Also ensure our padding fields are zeroed /// [NativeName(NativeNameType.Func, "ImDrawCmd_ImDrawCmd")] - [return: NativeName(NativeNameType.Type, "ImDrawCmd*")] - public static ImDrawCmd* ImDrawCmd() - { - ImDrawCmd* ret = ImDrawCmdNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawCmd_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawCmd_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawCmd*")] ImDrawCmd* self); - - [NativeName(NativeNameType.Func, "ImDrawCmd_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawCmd*")] ImDrawCmd* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawCmd_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawCmd*")] ref ImDrawCmd self) - { - fixed (ImDrawCmd* pself = &self) - { - DestroyNative((ImDrawCmd*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawCmd_GetTexID")] - [return: NativeName(NativeNameType.Type, "ImTextureID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawCmd_GetTexID")] - internal static extern ImTextureID GetTexIDNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawCmd*")] ImDrawCmd* self); - - [NativeName(NativeNameType.Func, "ImDrawCmd_GetTexID")] - [return: NativeName(NativeNameType.Type, "ImTextureID")] - public static ImTextureID GetTexID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawCmd*")] ImDrawCmd* self) - { - ImTextureID ret = GetTexIDNative(self); - return ret; - } - - [NativeName(NativeNameType.Func, "ImDrawCmd_GetTexID")] - [return: NativeName(NativeNameType.Type, "ImTextureID")] - public static ImTextureID GetTexID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawCmd*")] ref ImDrawCmd self) - { - fixed (ImDrawCmd* pself = &self) - { - ImTextureID ret = GetTexIDNative((ImDrawCmd*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawListSplitter_ImDrawListSplitter")] - [return: NativeName(NativeNameType.Type, "ImDrawListSplitter*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawListSplitter_ImDrawListSplitter")] - internal static extern ImDrawListSplitter* ImDrawListSplitterNative(); - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_ImDrawListSplitter")] - [return: NativeName(NativeNameType.Type, "ImDrawListSplitter*")] - public static ImDrawListSplitter* ImDrawListSplitter() - { - ImDrawListSplitter* ret = ImDrawListSplitterNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawListSplitter_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawListSplitter_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self); - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - DestroyNative((ImDrawListSplitter*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawListSplitter_Clear")] - internal static extern void ClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self); - - /// /// Do not clear Channels[] so our allocations are reused next frame /// [NativeName(NativeNameType.Func, "ImDrawListSplitter_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self) - { - ClearNative(self); - } - - /// /// Do not clear Channels[] so our allocations are reused next frame /// [NativeName(NativeNameType.Func, "ImDrawListSplitter_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - ClearNative((ImDrawListSplitter*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawListSplitter_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawListSplitter_ClearFreeMemory")] - internal static extern void ClearFreeMemoryNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self); - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFreeMemory([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self) - { - ClearFreeMemoryNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFreeMemory([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ref ImDrawListSplitter self) - { - fixed (ImDrawListSplitter* pself = &self) - { - ClearFreeMemoryNative((ImDrawListSplitter*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Split")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawListSplitter_Split")] - internal static extern void SplitNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count); - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Split")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Split([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) - { - SplitNative(self, drawList, count); - } - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Split")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Split([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ref ImDrawListSplitter self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) - { - fixed (ImDrawListSplitter* pself = &self) - { - SplitNative((ImDrawListSplitter*)pself, drawList, count); - } - } - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Split")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Split([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SplitNative(self, (ImDrawList*)pdrawList, count); - } - } - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Split")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Split([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ref ImDrawListSplitter self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SplitNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, count); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Merge")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawListSplitter_Merge")] - internal static extern void MergeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList); - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Merge")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Merge([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList) - { - MergeNative(self, drawList); - } - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Merge")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Merge([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ref ImDrawListSplitter self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList) - { - fixed (ImDrawListSplitter* pself = &self) - { - MergeNative((ImDrawListSplitter*)pself, drawList); - } - } - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Merge")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Merge([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - MergeNative(self, (ImDrawList*)pdrawList); - } - } - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Merge")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Merge([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ref ImDrawListSplitter self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - MergeNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawListSplitter_SetCurrentChannel")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawListSplitter_SetCurrentChannel")] - internal static extern void SetCurrentChannelNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "channel_idx")] [NativeName(NativeNameType.Type, "int")] int channelIdx); - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_SetCurrentChannel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentChannel([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "channel_idx")] [NativeName(NativeNameType.Type, "int")] int channelIdx) - { - SetCurrentChannelNative(self, drawList, channelIdx); - } - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_SetCurrentChannel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentChannel([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ref ImDrawListSplitter self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "channel_idx")] [NativeName(NativeNameType.Type, "int")] int channelIdx) - { - fixed (ImDrawListSplitter* pself = &self) - { - SetCurrentChannelNative((ImDrawListSplitter*)pself, drawList, channelIdx); - } - } - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_SetCurrentChannel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentChannel([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ImDrawListSplitter* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "channel_idx")] [NativeName(NativeNameType.Type, "int")] int channelIdx) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SetCurrentChannelNative(self, (ImDrawList*)pdrawList, channelIdx); - } - } - - [NativeName(NativeNameType.Func, "ImDrawListSplitter_SetCurrentChannel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentChannel([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] ref ImDrawListSplitter self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "channel_idx")] [NativeName(NativeNameType.Type, "int")] int channelIdx) - { - fixed (ImDrawListSplitter* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - SetCurrentChannelNative((ImDrawListSplitter*)pself, (ImDrawList*)pdrawList, channelIdx); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_ImDrawList")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_ImDrawList")] - internal static extern ImDrawList* ImDrawListNative([NativeName(NativeNameType.Param, "shared_data")] [NativeName(NativeNameType.Type, "ImDrawListSharedData*")] ImDrawListSharedData* sharedData); - - [NativeName(NativeNameType.Func, "ImDrawList_ImDrawList")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* ImDrawList([NativeName(NativeNameType.Param, "shared_data")] [NativeName(NativeNameType.Type, "ImDrawListSharedData*")] ImDrawListSharedData* sharedData) - { - ImDrawList* ret = ImDrawListNative(sharedData); - return ret; - } - - [NativeName(NativeNameType.Func, "ImDrawList_ImDrawList")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* ImDrawList([NativeName(NativeNameType.Param, "shared_data")] [NativeName(NativeNameType.Type, "ImDrawListSharedData*")] ref ImDrawListSharedData sharedData) - { - fixed (ImDrawListSharedData* psharedData = &sharedData) - { - ImDrawList* ret = ImDrawListNative((ImDrawListSharedData*)psharedData); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - DestroyNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PushClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PushClipRect")] - internal static extern void PushClipRectNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "clip_rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMin, [NativeName(NativeNameType.Param, "clip_rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMax, [NativeName(NativeNameType.Param, "intersect_with_current_clip_rect")] [NativeName(NativeNameType.Type, "bool")] byte intersectWithCurrentClipRect); - - /// /// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) /// [NativeName(NativeNameType.Func, "ImDrawList_PushClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushClipRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "clip_rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMin, [NativeName(NativeNameType.Param, "clip_rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMax, [NativeName(NativeNameType.Param, "intersect_with_current_clip_rect")] [NativeName(NativeNameType.Type, "bool")] bool intersectWithCurrentClipRect) - { - PushClipRectNative(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - - /// /// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) /// [NativeName(NativeNameType.Func, "ImDrawList_PushClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushClipRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "clip_rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMin, [NativeName(NativeNameType.Param, "clip_rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMax) - { - PushClipRectNative(self, clipRectMin, clipRectMax, (byte)(0)); - } - - /// /// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) /// [NativeName(NativeNameType.Func, "ImDrawList_PushClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushClipRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "clip_rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMin, [NativeName(NativeNameType.Param, "clip_rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMax, [NativeName(NativeNameType.Param, "intersect_with_current_clip_rect")] [NativeName(NativeNameType.Type, "bool")] bool intersectWithCurrentClipRect) - { - fixed (ImDrawList* pself = &self) - { - PushClipRectNative((ImDrawList*)pself, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); - } - } - - /// /// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) /// [NativeName(NativeNameType.Func, "ImDrawList_PushClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushClipRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "clip_rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMin, [NativeName(NativeNameType.Param, "clip_rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMax) - { - fixed (ImDrawList* pself = &self) - { - PushClipRectNative((ImDrawList*)pself, clipRectMin, clipRectMax, (byte)(0)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PushClipRectFullScreen")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PushClipRectFullScreen")] - internal static extern void PushClipRectFullScreenNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList_PushClipRectFullScreen")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushClipRectFullScreen([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - PushClipRectFullScreenNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PushClipRectFullScreen")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushClipRectFullScreen([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PushClipRectFullScreenNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PopClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PopClipRect")] - internal static extern void PopClipRectNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList_PopClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopClipRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - PopClipRectNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PopClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopClipRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PopClipRectNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PushTextureID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PushTextureID")] - internal static extern void PushTextureIDNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID textureId); - - [NativeName(NativeNameType.Func, "ImDrawList_PushTextureID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushTextureID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID textureId) - { - PushTextureIDNative(self, textureId); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PushTextureID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushTextureID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID textureId) - { - fixed (ImDrawList* pself = &self) - { - PushTextureIDNative((ImDrawList*)pself, textureId); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PopTextureID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PopTextureID")] - internal static extern void PopTextureIDNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList_PopTextureID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopTextureID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - PopTextureIDNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PopTextureID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopTextureID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PopTextureIDNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_GetClipRectMin")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_GetClipRectMin")] - internal static extern void GetClipRectMinNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList_GetClipRectMin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetClipRectMin([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - GetClipRectMinNative(pOut, self); - } - - [NativeName(NativeNameType.Func, "ImDrawList_GetClipRectMin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetClipRectMin([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - fixed (Vector2* ppOut = &pOut) - { - GetClipRectMinNative((Vector2*)ppOut, self); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_GetClipRectMin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetClipRectMin([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMinNative(pOut, (ImDrawList*)pself); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_GetClipRectMin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetClipRectMin([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMinNative((Vector2*)ppOut, (ImDrawList*)pself); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_GetClipRectMax")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_GetClipRectMax")] - internal static extern void GetClipRectMaxNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList_GetClipRectMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetClipRectMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - GetClipRectMaxNative(pOut, self); - } - - [NativeName(NativeNameType.Func, "ImDrawList_GetClipRectMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetClipRectMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - fixed (Vector2* ppOut = &pOut) - { - GetClipRectMaxNative((Vector2*)ppOut, self); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_GetClipRectMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetClipRectMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMaxNative(pOut, (ImDrawList*)pself); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_GetClipRectMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetClipRectMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImDrawList* pself = &self) - { - GetClipRectMaxNative((Vector2*)ppOut, (ImDrawList*)pself); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddLine")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddLine")] - internal static extern void AddLineNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness); - - [NativeName(NativeNameType.Func, "ImDrawList_AddLine")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddLine([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddLineNative(self, p1, p2, col, thickness); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddLine")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddLine([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddLineNative(self, p1, p2, col, (float)(1.0f)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddLine")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddLine([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddLineNative((ImDrawList*)pself, p1, p2, col, thickness); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddLine")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddLine([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddLineNative((ImDrawList*)pself, p1, p2, col, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddRect")] - internal static extern void AddRectNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness); - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddRectNative(self, pMin, pMax, col, rounding, flags, thickness); - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - AddRectNative(self, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) - { - AddRectNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddRectNative(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddRectNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags, thickness); - } - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags, (float)(1.0f)); - } - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); - } - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); - } - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); - } - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); - } - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddRectNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags, thickness); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddRectFilled")] - internal static extern void AddRectFilledNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags); - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRectFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - AddRectFilledNative(self, pMin, pMax, col, rounding, flags); - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRectFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) - { - AddRectFilledNative(self, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRectFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRectFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), flags); - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRectFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, rounding, flags); - } - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRectFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, rounding, (ImDrawFlags)(0)); - } - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRectFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); - } - } - - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRectFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledNative((ImDrawList*)pself, pMin, pMax, col, (float)(0.0f), flags); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilledMultiColor")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddRectFilledMultiColor")] - internal static extern void AddRectFilledMultiColorNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col_upr_left")] [NativeName(NativeNameType.Type, "ImU32")] uint colUprLeft, [NativeName(NativeNameType.Param, "col_upr_right")] [NativeName(NativeNameType.Type, "ImU32")] uint colUprRight, [NativeName(NativeNameType.Param, "col_bot_right")] [NativeName(NativeNameType.Type, "ImU32")] uint colBotRight, [NativeName(NativeNameType.Param, "col_bot_left")] [NativeName(NativeNameType.Type, "ImU32")] uint colBotLeft); - - [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilledMultiColor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRectFilledMultiColor([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col_upr_left")] [NativeName(NativeNameType.Type, "ImU32")] uint colUprLeft, [NativeName(NativeNameType.Param, "col_upr_right")] [NativeName(NativeNameType.Type, "ImU32")] uint colUprRight, [NativeName(NativeNameType.Param, "col_bot_right")] [NativeName(NativeNameType.Type, "ImU32")] uint colBotRight, [NativeName(NativeNameType.Param, "col_bot_left")] [NativeName(NativeNameType.Type, "ImU32")] uint colBotLeft) - { - AddRectFilledMultiColorNative(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilledMultiColor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRectFilledMultiColor([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col_upr_left")] [NativeName(NativeNameType.Type, "ImU32")] uint colUprLeft, [NativeName(NativeNameType.Param, "col_upr_right")] [NativeName(NativeNameType.Type, "ImU32")] uint colUprRight, [NativeName(NativeNameType.Param, "col_bot_right")] [NativeName(NativeNameType.Type, "ImU32")] uint colBotRight, [NativeName(NativeNameType.Param, "col_bot_left")] [NativeName(NativeNameType.Type, "ImU32")] uint colBotLeft) - { - fixed (ImDrawList* pself = &self) - { - AddRectFilledMultiColorNative((ImDrawList*)pself, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddQuad")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddQuad")] - internal static extern void AddQuadNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness); - - [NativeName(NativeNameType.Func, "ImDrawList_AddQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddQuadNative(self, p1, p2, p3, p4, col, thickness); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddQuadNative(self, p1, p2, p3, p4, col, (float)(1.0f)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddQuadNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddQuadNative((ImDrawList*)pself, p1, p2, p3, p4, col, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddQuadFilled")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddQuadFilled")] - internal static extern void AddQuadFilledNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); - - [NativeName(NativeNameType.Func, "ImDrawList_AddQuadFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddQuadFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddQuadFilledNative(self, p1, p2, p3, p4, col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddQuadFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddQuadFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddQuadFilledNative((ImDrawList*)pself, p1, p2, p3, p4, col); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddTriangle")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddTriangle")] - internal static extern void AddTriangleNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness); - - [NativeName(NativeNameType.Func, "ImDrawList_AddTriangle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddTriangle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddTriangleNative(self, p1, p2, p3, col, thickness); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddTriangle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddTriangle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddTriangleNative(self, p1, p2, p3, col, (float)(1.0f)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddTriangle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddTriangle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddTriangleNative((ImDrawList*)pself, p1, p2, p3, col, thickness); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddTriangle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddTriangle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddTriangleNative((ImDrawList*)pself, p1, p2, p3, col, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddTriangleFilled")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddTriangleFilled")] - internal static extern void AddTriangleFilledNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); - - [NativeName(NativeNameType.Func, "ImDrawList_AddTriangleFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddTriangleFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddTriangleFilledNative(self, p1, p2, p3, col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddTriangleFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddTriangleFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddTriangleFilledNative((ImDrawList*)pself, p1, p2, p3, col); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddCircle")] - internal static extern void AddCircleNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness); - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddCircleNative(self, center, radius, col, numSegments, thickness); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - AddCircleNative(self, center, radius, col, numSegments, (float)(1.0f)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddCircleNative(self, center, radius, col, (int)(0), (float)(1.0f)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddCircleNative(self, center, radius, col, (int)(0), thickness); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, numSegments, thickness); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, (int)(0), (float)(1.0f)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddCircleNative((ImDrawList*)pself, center, radius, col, (int)(0), thickness); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddCircleFilled")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddCircleFilled")] - internal static extern void AddCircleFilledNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments); - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircleFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircleFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - AddCircleFilledNative(self, center, radius, col, numSegments); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircleFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircleFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddCircleFilledNative(self, center, radius, col, (int)(0)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircleFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircleFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddCircleFilledNative((ImDrawList*)pself, center, radius, col, numSegments); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddCircleFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCircleFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddCircleFilledNative((ImDrawList*)pself, center, radius, col, (int)(0)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddNgon")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddNgon")] - internal static extern void AddNgonNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness); - - [NativeName(NativeNameType.Func, "ImDrawList_AddNgon")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddNgon([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddNgonNative(self, center, radius, col, numSegments, thickness); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddNgon")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddNgon([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - AddNgonNative(self, center, radius, col, numSegments, (float)(1.0f)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddNgon")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddNgon([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddNgonNative((ImDrawList*)pself, center, radius, col, numSegments, thickness); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddNgon")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddNgon([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddNgonNative((ImDrawList*)pself, center, radius, col, numSegments, (float)(1.0f)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddNgonFilled")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddNgonFilled")] - internal static extern void AddNgonFilledNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments); - - [NativeName(NativeNameType.Func, "ImDrawList_AddNgonFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddNgonFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - AddNgonFilledNative(self, center, radius, col, numSegments); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddNgonFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddNgonFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddNgonFilledNative((ImDrawList*)pself, center, radius, col, numSegments); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddText_Vec2")] - internal static extern void AddTextNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd); - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - AddTextNative(self, pos, col, textBegin, textEnd); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) - { - AddTextNative(self, pos, col, textBegin, (byte*)(default)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, pos, col, textBegin, textEnd); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, pos, col, textBegin, (byte*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, textEnd); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pos, col, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, textEnd); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, pos, col, textBegin, (byte*)ptextEnd); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pos, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, pos, col, textBegin, (byte*)ptextEnd); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, textBegin, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, pos, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, pos, col, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddText_FontPtr")] - internal static extern void AddTextNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect); - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); - } - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) - { - fixed (ImDrawList* pself = &self) - { - fixed (ImFont* pfont = &font) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) - { - AddTextNative((ImDrawList*)pself, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddPolyline")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddPolyline")] - internal static extern void AddPolylineNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness); - - [NativeName(NativeNameType.Func, "ImDrawList_AddPolyline")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddPolyline([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddPolylineNative(self, points, numPoints, col, flags, thickness); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddPolyline")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddPolyline([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddPolylineNative((ImDrawList*)pself, points, numPoints, col, flags, thickness); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddPolyline")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddPolyline([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (Vector2* ppoints = &points) - { - AddPolylineNative(self, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddPolyline")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddPolyline([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector2* ppoints = &points) - { - AddPolylineNative((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col, flags, thickness); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddConvexPolyFilled")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddConvexPolyFilled")] - internal static extern void AddConvexPolyFilledNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); - - [NativeName(NativeNameType.Func, "ImDrawList_AddConvexPolyFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddConvexPolyFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddConvexPolyFilledNative(self, points, numPoints, col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddConvexPolyFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddConvexPolyFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddConvexPolyFilledNative((ImDrawList*)pself, points, numPoints, col); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddConvexPolyFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddConvexPolyFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (Vector2* ppoints = &points) - { - AddConvexPolyFilledNative(self, (Vector2*)ppoints, numPoints, col); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddConvexPolyFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddConvexPolyFilled([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - fixed (Vector2* ppoints = &points) - { - AddConvexPolyFilledNative((ImDrawList*)pself, (Vector2*)ppoints, numPoints, col); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddBezierCubic")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddBezierCubic")] - internal static extern void AddBezierCubicNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments); - - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierCubic")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddBezierCubic([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, numSegments); - } - - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierCubic")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddBezierCubic([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, (int)(0)); - } - - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierCubic")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddBezierCubic([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddBezierCubicNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, numSegments); - } - } - - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierCubic")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddBezierCubic([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddBezierCubicNative((ImDrawList*)pself, p1, p2, p3, p4, col, thickness, (int)(0)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddBezierQuadratic")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddBezierQuadratic")] - internal static extern void AddBezierQuadraticNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments); - - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierQuadratic")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddBezierQuadratic([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, numSegments); - } - - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierQuadratic")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddBezierQuadratic([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, (int)(0)); - } - - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierQuadratic")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddBezierQuadratic([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - fixed (ImDrawList* pself = &self) - { - AddBezierQuadraticNative((ImDrawList*)pself, p1, p2, p3, col, thickness, numSegments); - } - } - - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierQuadratic")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddBezierQuadratic([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - AddBezierQuadraticNative((ImDrawList*)pself, p1, p2, p3, col, thickness, (int)(0)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddImage")] - internal static extern void AddImageNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax) - { - AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImage([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageNative((ImDrawList*)pself, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddImageQuad")] - internal static extern void AddImageQuadNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3, [NativeName(NativeNameType.Param, "uv4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3, [NativeName(NativeNameType.Param, "uv4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3, [NativeName(NativeNameType.Param, "uv4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv4) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3, [NativeName(NativeNameType.Param, "uv4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3, [NativeName(NativeNameType.Param, "uv4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv4) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageQuad([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - AddImageQuadNative((ImDrawList*)pself, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddImageRounded")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddImageRounded")] - internal static extern void AddImageRoundedNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags); - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageRounded")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageRounded([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageRounded")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageRounded([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) - { - AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageRounded")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageRounded([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - AddImageRoundedNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_AddImageRounded")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddImageRounded([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) - { - fixed (ImDrawList* pself = &self) - { - AddImageRoundedNative((ImDrawList*)pself, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PathClear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PathClear")] - internal static extern void PathClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList_PathClear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathClear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - PathClearNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathClear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathClear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - PathClearNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PathLineTo")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PathLineTo")] - internal static extern void PathLineToNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos); - - [NativeName(NativeNameType.Func, "ImDrawList_PathLineTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathLineTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) - { - PathLineToNative(self, pos); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathLineTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathLineTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) - { - fixed (ImDrawList* pself = &self) - { - PathLineToNative((ImDrawList*)pself, pos); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PathLineToMergeDuplicate")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PathLineToMergeDuplicate")] - internal static extern void PathLineToMergeDuplicateNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos); - - [NativeName(NativeNameType.Func, "ImDrawList_PathLineToMergeDuplicate")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathLineToMergeDuplicate([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) - { - PathLineToMergeDuplicateNative(self, pos); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathLineToMergeDuplicate")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathLineToMergeDuplicate([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) - { - fixed (ImDrawList* pself = &self) - { - PathLineToMergeDuplicateNative((ImDrawList*)pself, pos); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PathFillConvex")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PathFillConvex")] - internal static extern void PathFillConvexNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); - - [NativeName(NativeNameType.Func, "ImDrawList_PathFillConvex")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathFillConvex([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - PathFillConvexNative(self, col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathFillConvex")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathFillConvex([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - PathFillConvexNative((ImDrawList*)pself, col); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PathStroke")] - internal static extern void PathStrokeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness); - - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathStroke([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - PathStrokeNative(self, col, flags, thickness); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathStroke([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - PathStrokeNative(self, col, flags, (float)(1.0f)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathStroke([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - PathStrokeNative(self, col, (ImDrawFlags)(0), (float)(1.0f)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathStroke([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - PathStrokeNative(self, col, (ImDrawFlags)(0), thickness); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathStroke([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, flags, thickness); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathStroke([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, flags, (float)(1.0f)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathStroke([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, (ImDrawFlags)(0), (float)(1.0f)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathStroke([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) - { - fixed (ImDrawList* pself = &self) - { - PathStrokeNative((ImDrawList*)pself, col, (ImDrawFlags)(0), thickness); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PathArcTo")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PathArcTo")] - internal static extern void PathArcToNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min")] [NativeName(NativeNameType.Type, "float")] float aMin, [NativeName(NativeNameType.Param, "a_max")] [NativeName(NativeNameType.Type, "float")] float aMax, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments); - - [NativeName(NativeNameType.Func, "ImDrawList_PathArcTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathArcTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min")] [NativeName(NativeNameType.Type, "float")] float aMin, [NativeName(NativeNameType.Param, "a_max")] [NativeName(NativeNameType.Type, "float")] float aMax, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - PathArcToNative(self, center, radius, aMin, aMax, numSegments); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathArcTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathArcTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min")] [NativeName(NativeNameType.Type, "float")] float aMin, [NativeName(NativeNameType.Param, "a_max")] [NativeName(NativeNameType.Type, "float")] float aMax) - { - PathArcToNative(self, center, radius, aMin, aMax, (int)(0)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathArcTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathArcTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min")] [NativeName(NativeNameType.Type, "float")] float aMin, [NativeName(NativeNameType.Param, "a_max")] [NativeName(NativeNameType.Type, "float")] float aMax, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - fixed (ImDrawList* pself = &self) - { - PathArcToNative((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathArcTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathArcTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min")] [NativeName(NativeNameType.Type, "float")] float aMin, [NativeName(NativeNameType.Param, "a_max")] [NativeName(NativeNameType.Type, "float")] float aMax) - { - fixed (ImDrawList* pself = &self) - { - PathArcToNative((ImDrawList*)pself, center, radius, aMin, aMax, (int)(0)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PathArcToFast")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PathArcToFast")] - internal static extern void PathArcToFastNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min_of_12")] [NativeName(NativeNameType.Type, "int")] int aMinOf12, [NativeName(NativeNameType.Param, "a_max_of_12")] [NativeName(NativeNameType.Type, "int")] int aMaxOf12); - - /// /// Use precomputed angles for a 12 steps circle /// [NativeName(NativeNameType.Func, "ImDrawList_PathArcToFast")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathArcToFast([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min_of_12")] [NativeName(NativeNameType.Type, "int")] int aMinOf12, [NativeName(NativeNameType.Param, "a_max_of_12")] [NativeName(NativeNameType.Type, "int")] int aMaxOf12) - { - PathArcToFastNative(self, center, radius, aMinOf12, aMaxOf12); - } - - /// /// Use precomputed angles for a 12 steps circle /// [NativeName(NativeNameType.Func, "ImDrawList_PathArcToFast")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathArcToFast([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min_of_12")] [NativeName(NativeNameType.Type, "int")] int aMinOf12, [NativeName(NativeNameType.Param, "a_max_of_12")] [NativeName(NativeNameType.Type, "int")] int aMaxOf12) - { - fixed (ImDrawList* pself = &self) - { - PathArcToFastNative((ImDrawList*)pself, center, radius, aMinOf12, aMaxOf12); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PathBezierCubicCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PathBezierCubicCurveTo")] - internal static extern void PathBezierCubicCurveToNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments); - - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierCubicCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathBezierCubicCurveTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - PathBezierCubicCurveToNative(self, p2, p3, p4, numSegments); - } - - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierCubicCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathBezierCubicCurveTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4) - { - PathBezierCubicCurveToNative(self, p2, p3, p4, (int)(0)); - } - - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierCubicCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathBezierCubicCurveTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - fixed (ImDrawList* pself = &self) - { - PathBezierCubicCurveToNative((ImDrawList*)pself, p2, p3, p4, numSegments); - } - } - - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierCubicCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathBezierCubicCurveTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4) - { - fixed (ImDrawList* pself = &self) - { - PathBezierCubicCurveToNative((ImDrawList*)pself, p2, p3, p4, (int)(0)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PathBezierQuadraticCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PathBezierQuadraticCurveTo")] - internal static extern void PathBezierQuadraticCurveToNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments); - - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierQuadraticCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathBezierQuadraticCurveTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - PathBezierQuadraticCurveToNative(self, p2, p3, numSegments); - } - - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierQuadraticCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathBezierQuadraticCurveTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3) - { - PathBezierQuadraticCurveToNative(self, p2, p3, (int)(0)); - } - - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierQuadraticCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathBezierQuadraticCurveTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - fixed (ImDrawList* pself = &self) - { - PathBezierQuadraticCurveToNative((ImDrawList*)pself, p2, p3, numSegments); - } - } - - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierQuadraticCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathBezierQuadraticCurveTo([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3) - { - fixed (ImDrawList* pself = &self) - { - PathBezierQuadraticCurveToNative((ImDrawList*)pself, p2, p3, (int)(0)); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PathRect")] - internal static extern void PathRectNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags); - - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - PathRectNative(self, rectMin, rectMax, rounding, flags); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) - { - PathRectNative(self, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax) - { - PathRectNative(self, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - PathRectNative(self, rectMin, rectMax, (float)(0.0f), flags); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, rounding, flags); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, rounding, (ImDrawFlags)(0)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); - } - } - - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PathRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) - { - fixed (ImDrawList* pself = &self) - { - PathRectNative((ImDrawList*)pself, rectMin, rectMax, (float)(0.0f), flags); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddCallback")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddCallback")] - internal static extern void AddCallbackNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImDrawCallback")] ImDrawCallback callback, [NativeName(NativeNameType.Param, "callback_data")] [NativeName(NativeNameType.Type, "void*")] void* callbackData); - - /// /// Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. /// [NativeName(NativeNameType.Func, "ImDrawList_AddCallback")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCallback([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImDrawCallback")] ImDrawCallback callback, [NativeName(NativeNameType.Param, "callback_data")] [NativeName(NativeNameType.Type, "void*")] void* callbackData) - { - AddCallbackNative(self, callback, callbackData); - } - - /// /// Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. /// [NativeName(NativeNameType.Func, "ImDrawList_AddCallback")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddCallback([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImDrawCallback")] ImDrawCallback callback, [NativeName(NativeNameType.Param, "callback_data")] [NativeName(NativeNameType.Type, "void*")] void* callbackData) - { - fixed (ImDrawList* pself = &self) - { - AddCallbackNative((ImDrawList*)pself, callback, callbackData); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_AddDrawCmd")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_AddDrawCmd")] - internal static extern void AddDrawCmdNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - /// /// This is useful if you need to forcefully create a new draw call (to allow for dependent rendering blending). Otherwise primitives are merged into the same draw-call as much as possible /// [NativeName(NativeNameType.Func, "ImDrawList_AddDrawCmd")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddDrawCmd([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - AddDrawCmdNative(self); - } - - /// /// This is useful if you need to forcefully create a new draw call (to allow for dependent rendering blending). Otherwise primitives are merged into the same draw-call as much as possible /// [NativeName(NativeNameType.Func, "ImDrawList_AddDrawCmd")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddDrawCmd([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - AddDrawCmdNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_CloneOutput")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_CloneOutput")] - internal static extern ImDrawList* CloneOutputNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - /// /// Create a clone of the CmdBufferIdxBufferVtxBuffer. /// [NativeName(NativeNameType.Func, "ImDrawList_CloneOutput")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* CloneOutput([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - ImDrawList* ret = CloneOutputNative(self); - return ret; - } - - /// /// Create a clone of the CmdBufferIdxBufferVtxBuffer. /// [NativeName(NativeNameType.Func, "ImDrawList_CloneOutput")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* CloneOutput([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ImDrawList* ret = CloneOutputNative((ImDrawList*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsSplit")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_ChannelsSplit")] - internal static extern void ChannelsSplitNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count); - - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsSplit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ChannelsSplit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) - { - ChannelsSplitNative(self, count); - } - - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsSplit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ChannelsSplit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) - { - fixed (ImDrawList* pself = &self) - { - ChannelsSplitNative((ImDrawList*)pself, count); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsMerge")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_ChannelsMerge")] - internal static extern void ChannelsMergeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsMerge")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ChannelsMerge([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - ChannelsMergeNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsMerge")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ChannelsMerge([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - ChannelsMergeNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsSetCurrent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_ChannelsSetCurrent")] - internal static extern void ChannelsSetCurrentNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); - - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsSetCurrent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ChannelsSetCurrent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - ChannelsSetCurrentNative(self, n); - } - - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsSetCurrent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ChannelsSetCurrent([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImDrawList* pself = &self) - { - ChannelsSetCurrentNative((ImDrawList*)pself, n); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PrimReserve")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PrimReserve")] - internal static extern void PrimReserveNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "idx_count")] [NativeName(NativeNameType.Type, "int")] int idxCount, [NativeName(NativeNameType.Param, "vtx_count")] [NativeName(NativeNameType.Type, "int")] int vtxCount); - - [NativeName(NativeNameType.Func, "ImDrawList_PrimReserve")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimReserve([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "idx_count")] [NativeName(NativeNameType.Type, "int")] int idxCount, [NativeName(NativeNameType.Param, "vtx_count")] [NativeName(NativeNameType.Type, "int")] int vtxCount) - { - PrimReserveNative(self, idxCount, vtxCount); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PrimReserve")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimReserve([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "idx_count")] [NativeName(NativeNameType.Type, "int")] int idxCount, [NativeName(NativeNameType.Param, "vtx_count")] [NativeName(NativeNameType.Type, "int")] int vtxCount) - { - fixed (ImDrawList* pself = &self) - { - PrimReserveNative((ImDrawList*)pself, idxCount, vtxCount); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PrimUnreserve")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PrimUnreserve")] - internal static extern void PrimUnreserveNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "idx_count")] [NativeName(NativeNameType.Type, "int")] int idxCount, [NativeName(NativeNameType.Param, "vtx_count")] [NativeName(NativeNameType.Type, "int")] int vtxCount); - - [NativeName(NativeNameType.Func, "ImDrawList_PrimUnreserve")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimUnreserve([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "idx_count")] [NativeName(NativeNameType.Type, "int")] int idxCount, [NativeName(NativeNameType.Param, "vtx_count")] [NativeName(NativeNameType.Type, "int")] int vtxCount) - { - PrimUnreserveNative(self, idxCount, vtxCount); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PrimUnreserve")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimUnreserve([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "idx_count")] [NativeName(NativeNameType.Type, "int")] int idxCount, [NativeName(NativeNameType.Param, "vtx_count")] [NativeName(NativeNameType.Type, "int")] int vtxCount) - { - fixed (ImDrawList* pself = &self) - { - PrimUnreserveNative((ImDrawList*)pself, idxCount, vtxCount); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PrimRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PrimRect")] - internal static extern void PrimRectNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); - - /// /// Axis aligned rectangle (composed of two triangles) /// [NativeName(NativeNameType.Func, "ImDrawList_PrimRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - PrimRectNative(self, a, b, col); - } - - /// /// Axis aligned rectangle (composed of two triangles) /// [NativeName(NativeNameType.Func, "ImDrawList_PrimRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimRectNative((ImDrawList*)pself, a, b, col); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PrimRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PrimRectUV")] - internal static extern void PrimRectUVNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "uv_a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvA, [NativeName(NativeNameType.Param, "uv_b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvB, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); - - [NativeName(NativeNameType.Func, "ImDrawList_PrimRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "uv_a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvA, [NativeName(NativeNameType.Param, "uv_b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvB, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - PrimRectUVNative(self, a, b, uvA, uvB, col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PrimRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "uv_a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvA, [NativeName(NativeNameType.Param, "uv_b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvB, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimRectUVNative((ImDrawList*)pself, a, b, uvA, uvB, col); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PrimQuadUV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PrimQuadUV")] - internal static extern void PrimQuadUVNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 d, [NativeName(NativeNameType.Param, "uv_a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvA, [NativeName(NativeNameType.Param, "uv_b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvB, [NativeName(NativeNameType.Param, "uv_c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvC, [NativeName(NativeNameType.Param, "uv_d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvD, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); - - [NativeName(NativeNameType.Func, "ImDrawList_PrimQuadUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimQuadUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 d, [NativeName(NativeNameType.Param, "uv_a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvA, [NativeName(NativeNameType.Param, "uv_b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvB, [NativeName(NativeNameType.Param, "uv_c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvC, [NativeName(NativeNameType.Param, "uv_d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvD, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - PrimQuadUVNative(self, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PrimQuadUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimQuadUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 d, [NativeName(NativeNameType.Param, "uv_a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvA, [NativeName(NativeNameType.Param, "uv_b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvB, [NativeName(NativeNameType.Param, "uv_c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvC, [NativeName(NativeNameType.Param, "uv_d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvD, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimQuadUVNative((ImDrawList*)pself, a, b, c, d, uvA, uvB, uvC, uvD, col); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PrimWriteVtx")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PrimWriteVtx")] - internal static extern void PrimWriteVtxNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "uv")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); - - [NativeName(NativeNameType.Func, "ImDrawList_PrimWriteVtx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimWriteVtx([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "uv")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - PrimWriteVtxNative(self, pos, uv, col); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PrimWriteVtx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimWriteVtx([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "uv")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimWriteVtxNative((ImDrawList*)pself, pos, uv, col); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PrimWriteIdx")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PrimWriteIdx")] - internal static extern void PrimWriteIdxNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImDrawIdx")] ushort idx); - - [NativeName(NativeNameType.Func, "ImDrawList_PrimWriteIdx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimWriteIdx([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImDrawIdx")] ushort idx) - { - PrimWriteIdxNative(self, idx); - } - - [NativeName(NativeNameType.Func, "ImDrawList_PrimWriteIdx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimWriteIdx([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImDrawIdx")] ushort idx) - { - fixed (ImDrawList* pself = &self) - { - PrimWriteIdxNative((ImDrawList*)pself, idx); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList_PrimVtx")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList_PrimVtx")] - internal static extern void PrimVtxNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "uv")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); - - /// /// Write vertex with unique index /// [NativeName(NativeNameType.Func, "ImDrawList_PrimVtx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimVtx([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "uv")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - PrimVtxNative(self, pos, uv, col); - } - - /// /// Write vertex with unique index /// [NativeName(NativeNameType.Func, "ImDrawList_PrimVtx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PrimVtx([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "uv")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) - { - fixed (ImDrawList* pself = &self) - { - PrimVtxNative((ImDrawList*)pself, pos, uv, col); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList__ResetForNewFrame")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList__ResetForNewFrame")] - internal static extern void _ResetForNewFrameNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList__ResetForNewFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _ResetForNewFrame([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - _ResetForNewFrameNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList__ResetForNewFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _ResetForNewFrame([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _ResetForNewFrameNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList__ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList__ClearFreeMemory")] - internal static extern void _ClearFreeMemoryNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList__ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _ClearFreeMemory([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - _ClearFreeMemoryNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList__ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _ClearFreeMemory([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _ClearFreeMemoryNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList__PopUnusedDrawCmd")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList__PopUnusedDrawCmd")] - internal static extern void _PopUnusedDrawCmdNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList__PopUnusedDrawCmd")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _PopUnusedDrawCmd([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - _PopUnusedDrawCmdNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList__PopUnusedDrawCmd")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _PopUnusedDrawCmd([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _PopUnusedDrawCmdNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList__TryMergeDrawCmds")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList__TryMergeDrawCmds")] - internal static extern void _TryMergeDrawCmdsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList__TryMergeDrawCmds")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _TryMergeDrawCmds([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - _TryMergeDrawCmdsNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList__TryMergeDrawCmds")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _TryMergeDrawCmds([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _TryMergeDrawCmdsNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList__OnChangedClipRect")] - internal static extern void _OnChangedClipRectNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _OnChangedClipRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - _OnChangedClipRectNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _OnChangedClipRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _OnChangedClipRectNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedTextureID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList__OnChangedTextureID")] - internal static extern void _OnChangedTextureIDNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedTextureID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _OnChangedTextureID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - _OnChangedTextureIDNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedTextureID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _OnChangedTextureID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _OnChangedTextureIDNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedVtxOffset")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList__OnChangedVtxOffset")] - internal static extern void _OnChangedVtxOffsetNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self); - - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedVtxOffset")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _OnChangedVtxOffset([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self) - { - _OnChangedVtxOffsetNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedVtxOffset")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _OnChangedVtxOffset([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self) - { - fixed (ImDrawList* pself = &self) - { - _OnChangedVtxOffsetNative((ImDrawList*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList__CalcCircleAutoSegmentCount")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList__CalcCircleAutoSegmentCount")] - internal static extern int _CalcCircleAutoSegmentCountNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius); - - [NativeName(NativeNameType.Func, "ImDrawList__CalcCircleAutoSegmentCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int _CalcCircleAutoSegmentCount([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius) - { - int ret = _CalcCircleAutoSegmentCountNative(self, radius); - return ret; - } - - [NativeName(NativeNameType.Func, "ImDrawList__CalcCircleAutoSegmentCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int _CalcCircleAutoSegmentCount([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius) - { - fixed (ImDrawList* pself = &self) - { - int ret = _CalcCircleAutoSegmentCountNative((ImDrawList*)pself, radius); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList__PathArcToFastEx")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList__PathArcToFastEx")] - internal static extern void _PathArcToFastExNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min_sample")] [NativeName(NativeNameType.Type, "int")] int aMinSample, [NativeName(NativeNameType.Param, "a_max_sample")] [NativeName(NativeNameType.Type, "int")] int aMaxSample, [NativeName(NativeNameType.Param, "a_step")] [NativeName(NativeNameType.Type, "int")] int aStep); - - [NativeName(NativeNameType.Func, "ImDrawList__PathArcToFastEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _PathArcToFastEx([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min_sample")] [NativeName(NativeNameType.Type, "int")] int aMinSample, [NativeName(NativeNameType.Param, "a_max_sample")] [NativeName(NativeNameType.Type, "int")] int aMaxSample, [NativeName(NativeNameType.Param, "a_step")] [NativeName(NativeNameType.Type, "int")] int aStep) - { - _PathArcToFastExNative(self, center, radius, aMinSample, aMaxSample, aStep); - } - - [NativeName(NativeNameType.Func, "ImDrawList__PathArcToFastEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _PathArcToFastEx([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min_sample")] [NativeName(NativeNameType.Type, "int")] int aMinSample, [NativeName(NativeNameType.Param, "a_max_sample")] [NativeName(NativeNameType.Type, "int")] int aMaxSample, [NativeName(NativeNameType.Param, "a_step")] [NativeName(NativeNameType.Type, "int")] int aStep) - { - fixed (ImDrawList* pself = &self) - { - _PathArcToFastExNative((ImDrawList*)pself, center, radius, aMinSample, aMaxSample, aStep); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawList__PathArcToN")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawList__PathArcToN")] - internal static extern void _PathArcToNNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min")] [NativeName(NativeNameType.Type, "float")] float aMin, [NativeName(NativeNameType.Param, "a_max")] [NativeName(NativeNameType.Type, "float")] float aMax, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments); - - [NativeName(NativeNameType.Func, "ImDrawList__PathArcToN")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _PathArcToN([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min")] [NativeName(NativeNameType.Type, "float")] float aMin, [NativeName(NativeNameType.Param, "a_max")] [NativeName(NativeNameType.Type, "float")] float aMax, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - _PathArcToNNative(self, center, radius, aMin, aMax, numSegments); - } - - [NativeName(NativeNameType.Func, "ImDrawList__PathArcToN")] - [return: NativeName(NativeNameType.Type, "void")] - public static void _PathArcToN([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList self, [NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min")] [NativeName(NativeNameType.Type, "float")] float aMin, [NativeName(NativeNameType.Param, "a_max")] [NativeName(NativeNameType.Type, "float")] float aMax, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) - { - fixed (ImDrawList* pself = &self) - { - _PathArcToNNative((ImDrawList*)pself, center, radius, aMin, aMax, numSegments); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawData_ImDrawData")] - [return: NativeName(NativeNameType.Type, "ImDrawData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawData_ImDrawData")] - internal static extern ImDrawData* ImDrawDataNative(); - - [NativeName(NativeNameType.Func, "ImDrawData_ImDrawData")] - [return: NativeName(NativeNameType.Type, "ImDrawData*")] - public static ImDrawData* ImDrawData() - { - ImDrawData* ret = ImDrawDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ImDrawData* self); - - [NativeName(NativeNameType.Func, "ImDrawData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ImDrawData* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - DestroyNative((ImDrawData*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawData_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawData_Clear")] - internal static extern void ClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ImDrawData* self); - - /// /// The ImDrawList are owned by ImGuiContext! /// [NativeName(NativeNameType.Func, "ImDrawData_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ImDrawData* self) - { - ClearNative(self); - } - - /// /// The ImDrawList are owned by ImGuiContext! /// [NativeName(NativeNameType.Func, "ImDrawData_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - ClearNative((ImDrawData*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawData_DeIndexAllBuffers")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawData_DeIndexAllBuffers")] - internal static extern void DeIndexAllBuffersNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ImDrawData* self); - - /// /// Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! /// [NativeName(NativeNameType.Func, "ImDrawData_DeIndexAllBuffers")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DeIndexAllBuffers([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ImDrawData* self) - { - DeIndexAllBuffersNative(self); - } - - /// /// Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! /// [NativeName(NativeNameType.Func, "ImDrawData_DeIndexAllBuffers")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DeIndexAllBuffers([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ref ImDrawData self) - { - fixed (ImDrawData* pself = &self) - { - DeIndexAllBuffersNative((ImDrawData*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawData_ScaleClipRects")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawData_ScaleClipRects")] - internal static extern void ScaleClipRectsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ImDrawData* self, [NativeName(NativeNameType.Param, "fb_scale")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 fbScale); - - /// /// Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution. /// [NativeName(NativeNameType.Func, "ImDrawData_ScaleClipRects")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScaleClipRects([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ImDrawData* self, [NativeName(NativeNameType.Param, "fb_scale")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 fbScale) - { - ScaleClipRectsNative(self, fbScale); - } - - /// /// Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution. /// [NativeName(NativeNameType.Func, "ImDrawData_ScaleClipRects")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScaleClipRects([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawData*")] ref ImDrawData self, [NativeName(NativeNameType.Param, "fb_scale")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 fbScale) - { - fixed (ImDrawData* pself = &self) - { - ScaleClipRectsNative((ImDrawData*)pself, fbScale); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontConfig_ImFontConfig")] - [return: NativeName(NativeNameType.Type, "ImFontConfig*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontConfig_ImFontConfig")] - internal static extern ImFontConfig* ImFontConfigNative(); - - [NativeName(NativeNameType.Func, "ImFontConfig_ImFontConfig")] - [return: NativeName(NativeNameType.Type, "ImFontConfig*")] - public static ImFontConfig* ImFontConfig() - { - ImFontConfig* ret = ImFontConfigNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontConfig_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontConfig_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ImFontConfig* self); - - [NativeName(NativeNameType.Func, "ImFontConfig_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ImFontConfig* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImFontConfig_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ref ImFontConfig self) - { - fixed (ImFontConfig* pself = &self) - { - DestroyNative((ImFontConfig*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder")] - [return: NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder")] - internal static extern ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilderNative(); - - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder")] - [return: NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] - public static ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder() - { - ImFontGlyphRangesBuilder* ret = ImFontGlyphRangesBuilderNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontGlyphRangesBuilder_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self); - - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - DestroyNative((ImFontGlyphRangesBuilder*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontGlyphRangesBuilder_Clear")] - internal static extern void ClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self); - - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self) - { - ClearNative(self); - } - - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - ClearNative((ImFontGlyphRangesBuilder*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_GetBit")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontGlyphRangesBuilder_GetBit")] - internal static extern byte GetBitNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "size_t")] nuint n); - - /// /// Get bit n in the array /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_GetBit")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetBit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "size_t")] nuint n) - { - byte ret = GetBitNative(self, n); - return ret != 0; - } - - /// /// Get bit n in the array /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_GetBit")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetBit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "size_t")] nuint n) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte ret = GetBitNative((ImFontGlyphRangesBuilder*)pself, n); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_SetBit")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontGlyphRangesBuilder_SetBit")] - internal static extern void SetBitNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "size_t")] nuint n); - - /// /// Set bit n in the array /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_SetBit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetBit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "size_t")] nuint n) - { - SetBitNative(self, n); - } - - /// /// Set bit n in the array /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_SetBit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetBit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "size_t")] nuint n) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - SetBitNative((ImFontGlyphRangesBuilder*)pself, n); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddChar")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontGlyphRangesBuilder_AddChar")] - internal static extern void AddCharNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c); - - /// /// Add character /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddChar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddChar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - AddCharNative(self, c); - } - - /// /// Add character /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddChar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddChar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - AddCharNative((ImFontGlyphRangesBuilder*)pself, c); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontGlyphRangesBuilder_AddText")] - internal static extern void AddTextNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd); - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - AddTextNative(self, text, textEnd); - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) - { - AddTextNative(self, text, (byte*)(default)); - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, textEnd); - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)(default)); - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (byte* ptext = &text) - { - AddTextNative(self, (byte*)ptext, textEnd); - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (byte* ptext = &text) - { - AddTextNative(self, (byte*)ptext, (byte*)(default)); - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = &text) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, textEnd); - } - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = &text) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)(default)); - } - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, text, (byte*)ptextEnd); - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative(self, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, (byte*)ptextEnd); - } - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); - } - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - AddTextNative((ImFontGlyphRangesBuilder*)pself, (byte*)ptext, (byte*)ptextEnd); - } - } - } - } - - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - AddTextNative((ImFontGlyphRangesBuilder*)pself, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddRanges")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontGlyphRangesBuilder_AddRanges")] - internal static extern void AddRangesNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* ranges); - - /// /// Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCIILatin+Ext /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRanges([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* ranges) - { - AddRangesNative(self, ranges); - } - - /// /// Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCIILatin+Ext /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRanges([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* ranges) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - AddRangesNative((ImFontGlyphRangesBuilder*)pself, ranges); - } - } - - /// /// Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCIILatin+Ext /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRanges([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char ranges) - { - fixed (char* pranges = &ranges) - { - AddRangesNative(self, (char*)pranges); - } - } - - /// /// Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCIILatin+Ext /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRanges([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char ranges) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (char* pranges = &ranges) - { - AddRangesNative((ImFontGlyphRangesBuilder*)pself, (char*)pranges); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_BuildRanges")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontGlyphRangesBuilder_BuildRanges")] - internal static extern void BuildRangesNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "out_ranges")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ImVectorImWchar* outRanges); - - /// /// Output new ranges /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_BuildRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BuildRanges([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "out_ranges")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ImVectorImWchar* outRanges) - { - BuildRangesNative(self, outRanges); - } - - /// /// Output new ranges /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_BuildRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BuildRanges([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "out_ranges")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ImVectorImWchar* outRanges) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - BuildRangesNative((ImFontGlyphRangesBuilder*)pself, outRanges); - } - } - - /// /// Output new ranges /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_BuildRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BuildRanges([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ImFontGlyphRangesBuilder* self, [NativeName(NativeNameType.Param, "out_ranges")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ref ImVectorImWchar outRanges) - { - fixed (ImVectorImWchar* poutRanges = &outRanges) - { - BuildRangesNative(self, (ImVectorImWchar*)poutRanges); - } - } - - /// /// Output new ranges /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_BuildRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BuildRanges([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontGlyphRangesBuilder*")] ref ImFontGlyphRangesBuilder self, [NativeName(NativeNameType.Param, "out_ranges")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ref ImVectorImWchar outRanges) - { - fixed (ImFontGlyphRangesBuilder* pself = &self) - { - fixed (ImVectorImWchar* poutRanges = &outRanges) - { - BuildRangesNative((ImFontGlyphRangesBuilder*)pself, (ImVectorImWchar*)poutRanges); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlasCustomRect_ImFontAtlasCustomRect")] - [return: NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlasCustomRect_ImFontAtlasCustomRect")] - internal static extern ImFontAtlasCustomRect* ImFontAtlasCustomRectNative(); - - [NativeName(NativeNameType.Func, "ImFontAtlasCustomRect_ImFontAtlasCustomRect")] - [return: NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] - public static ImFontAtlasCustomRect* ImFontAtlasCustomRect() - { - ImFontAtlasCustomRect* ret = ImFontAtlasCustomRectNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlasCustomRect_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlasCustomRect_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* self); - - [NativeName(NativeNameType.Func, "ImFontAtlasCustomRect_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImFontAtlasCustomRect_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect self) - { - fixed (ImFontAtlasCustomRect* pself = &self) - { - DestroyNative((ImFontAtlasCustomRect*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlasCustomRect_IsPacked")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlasCustomRect_IsPacked")] - internal static extern byte IsPackedNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* self); - - [NativeName(NativeNameType.Func, "ImFontAtlasCustomRect_IsPacked")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsPacked([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* self) - { - byte ret = IsPackedNative(self); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImFontAtlasCustomRect_IsPacked")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsPacked([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect self) - { - fixed (ImFontAtlasCustomRect* pself = &self) - { - byte ret = IsPackedNative((ImFontAtlasCustomRect*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_ImFontAtlas")] - [return: NativeName(NativeNameType.Type, "ImFontAtlas*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_ImFontAtlas")] - internal static extern ImFontAtlas* ImFontAtlasNative(); - - [NativeName(NativeNameType.Func, "ImFontAtlas_ImFontAtlas")] - [return: NativeName(NativeNameType.Type, "ImFontAtlas*")] - public static ImFontAtlas* ImFontAtlas() - { - ImFontAtlas* ret = ImFontAtlasNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - [NativeName(NativeNameType.Func, "ImFontAtlas_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - DestroyNative((ImFontAtlas*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_AddFont")] - internal static extern ImFont* AddFontNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg); - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFont([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - ImFont* ret = AddFontNative(self, fontCfg); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFont([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontNative((ImFontAtlas*)pself, fontCfg); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFont([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontNative(self, (ImFontConfig*)pfontCfg); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFont([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontNative((ImFontAtlas*)pself, (ImFontConfig*)pfontCfg); - return ret; - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontDefault")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_AddFontDefault")] - internal static extern ImFont* AddFontDefaultNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg); - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontDefault")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontDefault([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - ImFont* ret = AddFontDefaultNative(self, fontCfg); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontDefault")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontDefault([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - ImFont* ret = AddFontDefaultNative(self, (ImFontConfig*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontDefault")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontDefault([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontDefaultNative((ImFontAtlas*)pself, fontCfg); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontDefault")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontDefault([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontDefaultNative((ImFontAtlas*)pself, (ImFontConfig*)(default)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontDefault")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontDefault([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontDefaultNative(self, (ImFontConfig*)pfontCfg); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontDefault")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontDefault([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontDefaultNative((ImFontAtlas*)pself, (ImFontConfig*)pfontCfg); - return ret; - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_AddFontFromFileTTF")] - internal static extern ImFont* AddFontFromFileTTFNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges); - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, glyphRanges); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, (char*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, fontCfg, (char*)(default)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (byte* pfilename = &filename) - { - ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (char*)(default)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - fixed (byte* pfilename = &filename) - { - ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (char*)(default)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, filename, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pfilename = &filename) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromFileTTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_AddFontFromMemoryTTF")] - internal static extern ImFont* AddFontFromMemoryTTFNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges); - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, (char*)(default)); - return ret; - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, (char*)(default)); - return ret; - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryTTFNative((ImFontAtlas*)pself, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - internal static extern ImFont* AddFontFromMemoryCompressedTTFNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges); - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, (char*)(default)); - return ret; - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, (char*)(default)); - return ret; - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedTTFNative((ImFontAtlas*)pself, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - internal static extern ImFont* AddFontFromMemoryCompressedBase85TTFNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges); - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDataBase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDataBase85, sizePixels, fontCfg, (char*)(default)); - return ret; - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDataBase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDataBase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDataBase85, sizePixels, fontCfg, (char*)(default)); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDataBase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDataBase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDataBase85, sizePixels, fontCfg, (char*)(default)); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDataBase85, sizePixels, fontCfg, glyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDataBase85, sizePixels, fontCfg, (char*)(default)); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)(default), glyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - return ret; - } - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - return ret; - } - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDataBase85, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDataBase85, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDataBase85, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDataBase85, sizePixels, fontCfg, (char*)pglyphRanges); - return ret; - } - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - return ret; - } - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, fontCfg, (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, compressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) - { - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - return ret; - } - } - } - } - } - - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) - { - fixed (ImFontAtlas* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (compressedFontDataBase85 != null) - { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImFontConfig* pfontCfg = &fontCfg) - { - fixed (char* pglyphRanges = &glyphRanges) - { - ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative((ImFontAtlas*)pself, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_ClearInputData")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_ClearInputData")] - internal static extern void ClearInputDataNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts. /// [NativeName(NativeNameType.Func, "ImFontAtlas_ClearInputData")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearInputData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - ClearInputDataNative(self); - } - - /// /// Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts. /// [NativeName(NativeNameType.Func, "ImFontAtlas_ClearInputData")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearInputData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearInputDataNative((ImFontAtlas*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_ClearTexData")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_ClearTexData")] - internal static extern void ClearTexDataNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory. /// [NativeName(NativeNameType.Func, "ImFontAtlas_ClearTexData")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - ClearTexDataNative(self); - } - - /// /// Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory. /// [NativeName(NativeNameType.Func, "ImFontAtlas_ClearTexData")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearTexDataNative((ImFontAtlas*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_ClearFonts")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_ClearFonts")] - internal static extern void ClearFontsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Clear output font data (glyphs storage, UV coordinates). /// [NativeName(NativeNameType.Func, "ImFontAtlas_ClearFonts")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFonts([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - ClearFontsNative(self); - } - - /// /// Clear output font data (glyphs storage, UV coordinates). /// [NativeName(NativeNameType.Func, "ImFontAtlas_ClearFonts")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFonts([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearFontsNative((ImFontAtlas*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_Clear")] - internal static extern void ClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Clear all input and output. /// [NativeName(NativeNameType.Func, "ImFontAtlas_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - ClearNative(self); - } - - /// /// Clear all input and output. /// [NativeName(NativeNameType.Func, "ImFontAtlas_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - ClearNative((ImFontAtlas*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_Build")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_Build")] - internal static extern byte BuildNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Build pixels data. This is called automatically for you by the GetTexData*** functions. /// [NativeName(NativeNameType.Func, "ImFontAtlas_Build")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Build([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - byte ret = BuildNative(self); - return ret != 0; - } - - /// /// Build pixels data. This is called automatically for you by the GetTexData*** functions. /// [NativeName(NativeNameType.Func, "ImFontAtlas_Build")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Build([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - byte ret = BuildNative((ImFontAtlas*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetTexDataAsAlpha8")] - internal static extern void GetTexDataAsAlpha8Native([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel); - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, outPixels, outWidth, outHeight, outBytesPerPixel); - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - GetTexDataAsAlpha8Native(self, outPixels, outWidth, outHeight, (int*)(default)); - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsAlpha8Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetTexDataAsRGBA32")] - internal static extern void GetTexDataAsRGBA32Native([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel); - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, outPixels, outWidth, outHeight, outBytesPerPixel); - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - GetTexDataAsRGBA32Native(self, outPixels, outWidth, outHeight, (int*)(default)); - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); - } - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); - } - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (byte** poutPixels = &outPixels) - { - fixed (int* poutWidth = &outWidth) - { - fixed (int* poutHeight = &outHeight) - { - fixed (int* poutBytesPerPixel = &outBytesPerPixel) - { - GetTexDataAsRGBA32Native((ImFontAtlas*)pself, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); - } - } - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_IsBuilt")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_IsBuilt")] - internal static extern byte IsBuiltNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent... /// [NativeName(NativeNameType.Func, "ImFontAtlas_IsBuilt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsBuilt([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - byte ret = IsBuiltNative(self); - return ret != 0; - } - - /// /// Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent... /// [NativeName(NativeNameType.Func, "ImFontAtlas_IsBuilt")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsBuilt([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - byte ret = IsBuiltNative((ImFontAtlas*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_SetTexID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_SetTexID")] - internal static extern void SetTexIDNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID id); - - [NativeName(NativeNameType.Func, "ImFontAtlas_SetTexID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetTexID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID id) - { - SetTexIDNative(self, id); - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_SetTexID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetTexID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID id) - { - fixed (ImFontAtlas* pself = &self) - { - SetTexIDNative((ImFontAtlas*)pself, id); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesDefault")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetGlyphRangesDefault")] - internal static extern char* GetGlyphRangesDefaultNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Basic Latin, Extended Latin /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesDefault")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesDefault([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - char* ret = GetGlyphRangesDefaultNative(self); - return ret; - } - - /// /// Basic Latin, Extended Latin /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesDefault")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesDefault([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - char* ret = GetGlyphRangesDefaultNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesGreek")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetGlyphRangesGreek")] - internal static extern char* GetGlyphRangesGreekNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Default + Greek and Coptic /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesGreek")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesGreek([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - char* ret = GetGlyphRangesGreekNative(self); - return ret; - } - - /// /// Default + Greek and Coptic /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesGreek")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesGreek([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - char* ret = GetGlyphRangesGreekNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesKorean")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetGlyphRangesKorean")] - internal static extern char* GetGlyphRangesKoreanNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Default + Korean characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesKorean")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesKorean([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - char* ret = GetGlyphRangesKoreanNative(self); - return ret; - } - - /// /// Default + Korean characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesKorean")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesKorean([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - char* ret = GetGlyphRangesKoreanNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesJapanese")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetGlyphRangesJapanese")] - internal static extern char* GetGlyphRangesJapaneseNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesJapanese")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesJapanese([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - char* ret = GetGlyphRangesJapaneseNative(self); - return ret; - } - - /// /// Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesJapanese")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesJapanese([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - char* ret = GetGlyphRangesJapaneseNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesChineseFull")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetGlyphRangesChineseFull")] - internal static extern char* GetGlyphRangesChineseFullNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Default + Half-Width + Japanese HiraganaKatakana + full set of about 21000 CJK Unified Ideographs /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesChineseFull")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesChineseFull([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - char* ret = GetGlyphRangesChineseFullNative(self); - return ret; - } - - /// /// Default + Half-Width + Japanese HiraganaKatakana + full set of about 21000 CJK Unified Ideographs /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesChineseFull")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesChineseFull([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - char* ret = GetGlyphRangesChineseFullNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon")] - internal static extern char* GetGlyphRangesChineseSimplifiedCommonNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Default + Half-Width + Japanese HiraganaKatakana + set of 2500 CJK Unified Ideographs for common simplified Chinese /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesChineseSimplifiedCommon([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - char* ret = GetGlyphRangesChineseSimplifiedCommonNative(self); - return ret; - } - - /// /// Default + Half-Width + Japanese HiraganaKatakana + set of 2500 CJK Unified Ideographs for common simplified Chinese /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesChineseSimplifiedCommon([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - char* ret = GetGlyphRangesChineseSimplifiedCommonNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesCyrillic")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetGlyphRangesCyrillic")] - internal static extern char* GetGlyphRangesCyrillicNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Default + about 400 Cyrillic characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesCyrillic")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesCyrillic([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - char* ret = GetGlyphRangesCyrillicNative(self); - return ret; - } - - /// /// Default + about 400 Cyrillic characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesCyrillic")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesCyrillic([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - char* ret = GetGlyphRangesCyrillicNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesThai")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetGlyphRangesThai")] - internal static extern char* GetGlyphRangesThaiNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Default + Thai characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesThai")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesThai([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - char* ret = GetGlyphRangesThaiNative(self); - return ret; - } - - /// /// Default + Thai characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesThai")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesThai([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - char* ret = GetGlyphRangesThaiNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesVietnamese")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetGlyphRangesVietnamese")] - internal static extern char* GetGlyphRangesVietnameseNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self); - - /// /// Default + Vietnamese characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesVietnamese")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesVietnamese([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self) - { - char* ret = GetGlyphRangesVietnameseNative(self); - return ret; - } - - /// /// Default + Vietnamese characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesVietnamese")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* GetGlyphRangesVietnamese([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self) - { - fixed (ImFontAtlas* pself = &self) - { - char* ret = GetGlyphRangesVietnameseNative((ImFontAtlas*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectRegular")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_AddCustomRectRegular")] - internal static extern int AddCustomRectRegularNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height); - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectRegular")] - [return: NativeName(NativeNameType.Type, "int")] - public static int AddCustomRectRegular([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height) - { - int ret = AddCustomRectRegularNative(self, width, height); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectRegular")] - [return: NativeName(NativeNameType.Type, "int")] - public static int AddCustomRectRegular([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = AddCustomRectRegularNative((ImFontAtlas*)pself, width, height); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_AddCustomRectFontGlyph")] - internal static extern int AddCustomRectFontGlyphNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offset); - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public static int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offset) - { - int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, offset); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public static int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) - { - int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public static int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offset) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, font, id, width, height, advanceX, offset); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public static int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) - { - fixed (ImFontAtlas* pself = &self) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public static int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offset) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public static int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public static int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offset) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, offset); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public static int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFont* pfont = &font) - { - int ret = AddCustomRectFontGlyphNative((ImFontAtlas*)pself, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); - return ret; - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetCustomRectByIndex")] - [return: NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetCustomRectByIndex")] - internal static extern ImFontAtlasCustomRect* GetCustomRectByIndexNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "int")] int index); - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetCustomRectByIndex")] - [return: NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] - public static ImFontAtlasCustomRect* GetCustomRectByIndex([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "int")] int index) - { - ImFontAtlasCustomRect* ret = GetCustomRectByIndexNative(self, index); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetCustomRectByIndex")] - [return: NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] - public static ImFontAtlasCustomRect* GetCustomRectByIndex([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "int")] int index) - { - fixed (ImFontAtlas* pself = &self) - { - ImFontAtlasCustomRect* ret = GetCustomRectByIndexNative((ImFontAtlas*)pself, index); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_CalcCustomRectUV")] - internal static extern void CalcCustomRectUVNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax); - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) - { - CalcCustomRectUVNative(self, rect, outUvMin, outUvMax); - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, outUvMin, outUvMax); - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, outUvMax); - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, outUvMax); - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, rect, outUvMin, (Vector2*)poutUvMax); - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, outUvMin, (Vector2*)poutUvMax); - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcCustomRectUV([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (ImFontAtlasCustomRect* prect = &rect) - { - fixed (Vector2* poutUvMin = &outUvMin) - { - fixed (Vector2* poutUvMax = &outUvMax) - { - CalcCustomRectUVNative((ImFontAtlas*)pself, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); - } - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFontAtlas_GetMouseCursorTexData")] - internal static extern byte GetMouseCursorTexDataNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill); - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, outUvFill); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, outUvFill); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas self, [NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) - { - fixed (ImFontAtlas* pself = &self) - { - fixed (Vector2* poutOffset = &outOffset) - { - fixed (Vector2* poutSize = &outSize) - { - fixed (Vector2* poutUvBorder = &outUvBorder) - { - fixed (Vector2* poutUvFill = &outUvFill) - { - byte ret = GetMouseCursorTexDataNative((ImFontAtlas*)pself, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); - return ret != 0; - } - } - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_ImFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_ImFont")] - internal static extern ImFont* ImFontNative(); - - [NativeName(NativeNameType.Func, "ImFont_ImFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* ImFont() - { - ImFont* ret = ImFontNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self); - - [NativeName(NativeNameType.Func, "ImFont_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImFont_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self) - { - fixed (ImFont* pself = &self) - { - DestroyNative((ImFont*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_FindGlyph")] - [return: NativeName(NativeNameType.Type, "const ImFontGlyph*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_FindGlyph")] - internal static extern ImFontGlyph* FindGlyphNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c); - - [NativeName(NativeNameType.Func, "ImFont_FindGlyph")] - [return: NativeName(NativeNameType.Type, "const ImFontGlyph*")] - public static ImFontGlyph* FindGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - ImFontGlyph* ret = FindGlyphNative(self, c); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_FindGlyph")] - [return: NativeName(NativeNameType.Type, "const ImFontGlyph*")] - public static ImFontGlyph* FindGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - fixed (ImFont* pself = &self) - { - ImFontGlyph* ret = FindGlyphNative((ImFont*)pself, c); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_FindGlyphNoFallback")] - [return: NativeName(NativeNameType.Type, "const ImFontGlyph*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_FindGlyphNoFallback")] - internal static extern ImFontGlyph* FindGlyphNoFallbackNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c); - - [NativeName(NativeNameType.Func, "ImFont_FindGlyphNoFallback")] - [return: NativeName(NativeNameType.Type, "const ImFontGlyph*")] - public static ImFontGlyph* FindGlyphNoFallback([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - ImFontGlyph* ret = FindGlyphNoFallbackNative(self, c); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_FindGlyphNoFallback")] - [return: NativeName(NativeNameType.Type, "const ImFontGlyph*")] - public static ImFontGlyph* FindGlyphNoFallback([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - fixed (ImFont* pself = &self) - { - ImFontGlyph* ret = FindGlyphNoFallbackNative((ImFont*)pself, c); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_GetCharAdvance")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_GetCharAdvance")] - internal static extern float GetCharAdvanceNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c); - - [NativeName(NativeNameType.Func, "ImFont_GetCharAdvance")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetCharAdvance([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - float ret = GetCharAdvanceNative(self, c); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_GetCharAdvance")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetCharAdvance([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - fixed (ImFont* pself = &self) - { - float ret = GetCharAdvanceNative((ImFont*)pself, c); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_IsLoaded")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_IsLoaded")] - internal static extern byte IsLoadedNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self); - - [NativeName(NativeNameType.Func, "ImFont_IsLoaded")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsLoaded([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self) - { - byte ret = IsLoadedNative(self); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "ImFont_IsLoaded")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsLoaded([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self) - { - fixed (ImFont* pself = &self) - { - byte ret = IsLoadedNative((ImFont*)pself); - return ret != 0; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_GetDebugName")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_GetDebugName")] - internal static extern byte* GetDebugNameNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self); - - [NativeName(NativeNameType.Func, "ImFont_GetDebugName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* GetDebugName([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self) - { - byte* ret = GetDebugNameNative(self); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_GetDebugName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string GetDebugNameS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self) - { - string ret = Utils.DecodeStringUTF8(GetDebugNameNative(self)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_GetDebugName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* GetDebugName([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self) - { - fixed (ImFont* pself = &self) - { - byte* ret = GetDebugNameNative((ImFont*)pself); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_GetDebugName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string GetDebugNameS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self) - { - fixed (ImFont* pself = &self) - { - string ret = Utils.DecodeStringUTF8(GetDebugNameNative((ImFont*)pself)); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_CalcTextSizeA")] - internal static extern void CalcTextSizeANative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining); - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); - } - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); - } - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); - } - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); - } - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); - } - } - } - } - } - } - - /// /// utf8 /// [NativeName(NativeNameType.Func, "ImFont_CalcTextSizeA")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcTextSizeA([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "max_width")] [NativeName(NativeNameType.Type, "float")] float maxWidth, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* remaining) - { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** premaining = &remaining) - { - CalcTextSizeANative((Vector2*)ppOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_CalcWordWrapPositionA")] - internal static extern byte* CalcWordWrapPositionANative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth); - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* ret = CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth)); - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, textEnd, wrapWidth); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, textEnd, wrapWidth)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptext = &text) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, textEnd, wrapWidth)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, textEnd, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, textEnd, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, text, pStr0, wrapWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, text, pStr0, wrapWidth)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, pStr1, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative((ImFont*)pself, scale, pStr0, pStr1, wrapWidth)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_RenderChar")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_RenderChar")] - internal static extern void RenderCharNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c); - - [NativeName(NativeNameType.Func, "ImFont_RenderChar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderChar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - RenderCharNative(self, drawList, size, pos, col, c); - } - - [NativeName(NativeNameType.Func, "ImFont_RenderChar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderChar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - fixed (ImFont* pself = &self) - { - RenderCharNative((ImFont*)pself, drawList, size, pos, col, c); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderChar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderChar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderCharNative(self, (ImDrawList*)pdrawList, size, pos, col, c); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderChar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderChar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderCharNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, c); - } - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_RenderText")] - internal static extern void RenderTextNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] byte cpuFineClip); - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImFont* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = CollapsingHeaderNative(label, (byte*)ppVisible, (int)(0)); + return ret != 0; } } - - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextItemOpen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextItemOpenNative(byte isOpen, int cond); + + public static void SetNextItemOpen( bool isOpen, int cond) + { + SetNextItemOpenNative(isOpen ? (byte)1 : (byte)0, cond); } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static void SetNextItemOpen( bool isOpen) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + SetNextItemOpenNative(isOpen ? (byte)1 : (byte)0, (int)(0)); } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSelectable_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SelectableNative(byte* label, byte selected, int flags, Vector2 size); + + public static bool Selectable( byte* label, bool selected, int flags, Vector2 size) { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, flags, size); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public static bool Selectable( byte* label, bool selected, int flags) { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public static bool Selectable( byte* label, bool selected) { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, (int)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static bool Selectable( byte* label) { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } + byte ret = SelectableNative(label, (byte)(0), (int)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static bool Selectable( byte* label, int flags) { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + byte ret = SelectableNative(label, (byte)(0), flags, (Vector2)(new Vector2(0,0))); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public static bool Selectable( byte* label, bool selected, Vector2 size) { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + byte ret = SelectableNative(label, selected ? (byte)1 : (byte)0, (int)(0), size); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public static bool Selectable( byte* label, Vector2 size) { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + byte ret = SelectableNative(label, (byte)(0), (int)(0), size); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static bool Selectable( byte* label, int flags, Vector2 size) { - fixed (ImFont* pself = &self) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + byte ret = SelectableNative(label, (byte)(0), flags, size); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSelectable_BoolPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SelectableNative(byte* label, byte* pSelected, int flags, Vector2 size); + + public static bool Selectable( byte* label, byte* pSelected, int flags, Vector2 size) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } + byte ret = SelectableNative(label, pSelected, flags, size); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public static bool Selectable( byte* label, byte* pSelected, int flags) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } + byte ret = SelectableNative(label, pSelected, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public static bool Selectable( byte* label, byte* pSelected) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } + byte ret = SelectableNative(label, pSelected, (int)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static bool Selectable( byte* label, byte* pSelected, Vector2 size) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } + byte ret = SelectableNative(label, pSelected, (int)(0), size); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static bool Selectable( byte* label, ref byte pSelected, int flags, Vector2 size) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ppSelected = &pSelected) { - Utils.Free(pStr0); + byte ret = SelectableNative(label, (byte*)ppSelected, flags, size); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public static bool Selectable( byte* label, ref byte pSelected, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ppSelected = &pSelected) { - Utils.Free(pStr0); + byte ret = SelectableNative(label, (byte*)ppSelected, flags, (Vector2)(new Vector2(0,0))); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public static bool Selectable( byte* label, ref byte pSelected) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ppSelected = &pSelected) { - Utils.Free(pStr0); + byte ret = SelectableNative(label, (byte*)ppSelected, (int)(0), (Vector2)(new Vector2(0,0))); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static bool Selectable( byte* label, ref byte pSelected, Vector2 size) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ppSelected = &pSelected) { - Utils.Free(pStr0); + byte ret = SelectableNative(label, (byte*)ppSelected, (int)(0), size); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginListBox")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginListBoxNative(byte* label, Vector2 size); + + public static bool BeginListBox( byte* label, Vector2 size) { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } + byte ret = BeginListBoxNative(label, size); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public static bool BeginListBox( byte* label) { - fixed (ImFont* pself = &self) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } + byte ret = BeginListBoxNative(label, (Vector2)(new Vector2(0,0))); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndListBox")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndListBoxNative(); + + public static void EndListBox() { - fixed (ImFont* pself = &self) + EndListBoxNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igListBox_Str_arr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ListBoxNative(byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems); + + public static bool ListBox( byte* label, int* currentItem, byte** items, int itemsCount, int heightInItems) + { + byte ret = ListBoxNative(label, currentItem, items, itemsCount, heightInItems); + return ret != 0; + } + + public static bool ListBox( byte* label, int* currentItem, byte** items, int itemsCount) + { + byte ret = ListBoxNative(label, currentItem, items, itemsCount, (int)(-1)); + return ret != 0; + } + + public static bool ListBox( byte* label, ref int currentItem, byte** items, int itemsCount, int heightInItems) + { + fixed (int* pcurrentItem = ¤tItem) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } + byte ret = ListBoxNative(label, (int*)pcurrentItem, items, itemsCount, heightInItems); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static bool ListBox( byte* label, ref int currentItem, byte** items, int itemsCount) { - fixed (ImFont* pself = &self) + fixed (int* pcurrentItem = ¤tItem) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } + byte ret = ListBoxNative(label, (int*)pcurrentItem, items, itemsCount, (int)(-1)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static bool ListBox( byte* label, int* currentItem, string[] items, int itemsCount, int heightInItems) { - fixed (ImFont* pself = &self) + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) + if (pStrArraySize0 > Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; } } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(label, currentItem, pStrArray0, itemsCount, heightInItems); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public static bool ListBox( byte* label, int* currentItem, string[] items, int itemsCount) { - fixed (ImFont* pself = &self) + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + if (pStrArraySize0 > Utils.MaxStackallocSize) { - Utils.Free(pStr1); + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); } - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; } } + for (int i = 0; i < items.Length; i++) + { + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); + } + byte ret = ListBoxNative(label, currentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) + { + Utils.Free(pStrArray0[i]); + } + if (pStrArraySize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStrArray0); + } + return ret != 0; } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public static bool ListBox( byte* label, ref int currentItem, string[] items, int itemsCount, int heightInItems) { - fixed (ImFont* pself = &self) + fixed (int* pcurrentItem = ¤tItem) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArraySize0 > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) + for (int i = 0; i < items.Length; i++) { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte ret = ListBoxNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, heightInItems); + for (int i = 0; i < items.Length; i++) { - Utils.Free(pStr1); + Utils.Free(pStrArray0[i]); } - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArraySize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + Utils.Free(pStrArray0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static bool ListBox( byte* label, ref int currentItem, string[] items, int itemsCount) { - fixed (ImFont* pself = &self) + fixed (int* pcurrentItem = ¤tItem) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) + byte** pStrArray0 = null; + int pStrArraySize0 = Utils.GetByteCountArray(items); + if (items != null) { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArraySize0 > Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrArray0 = (byte**)Utils.Alloc(pStrArraySize0); } else { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte* pStrArrayStack0 = stackalloc byte[pStrArraySize0]; + pStrArray0 = (byte**)pStrArrayStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) + for (int i = 0; i < items.Length; i++) { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + pStrArray0[i] = (byte*)Utils.StringToUTF8Ptr(items[i]); } - RenderTextNative((ImFont*)pself, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte ret = ListBoxNative(label, (int*)pcurrentItem, pStrArray0, itemsCount, (int)(-1)); + for (int i = 0; i < items.Length; i++) { - Utils.Free(pStr1); + Utils.Free(pStrArray0[i]); } - if (pStrSize0 >= Utils.MaxStackallocSize) + if (pStrArraySize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); + Utils.Free(pStrArray0); } + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igListBox_FnStrPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ListBoxNative(byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int heightInItems); + + public static bool ListBox( byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int heightInItems) { - fixed (ImDrawList* pdrawList = &drawList) + byte ret = ListBoxNative(label, currentItem, getter, userData, itemsCount, heightInItems); + return ret != 0; + } + + public static bool ListBox( byte* label, int* currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount) + { + byte ret = ListBoxNative(label, currentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; + } + + public static bool ListBox( byte* label, ref int currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount, int heightInItems) + { + fixed (int* pcurrentItem = ¤tItem) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } + byte ret = ListBoxNative(label, (int*)pcurrentItem, getter, userData, itemsCount, heightInItems); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public static bool ListBox( byte* label, ref int currentItem, delegate*, void*, int, int, byte*> getter, void* userData, int itemsCount) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (int* pcurrentItem = ¤tItem) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } + byte ret = ListBoxNative(label, (int*)pcurrentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public static bool ListBox( byte* label, int* currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount, int heightInItems) { - fixed (ImDrawList* pdrawList = &drawList) + byte ret = ListBoxNative(label, currentItem, getter, userData, itemsCount, heightInItems); + return ret != 0; + } + + public static bool ListBox( byte* label, int* currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount) + { + byte ret = ListBoxNative(label, currentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; + } + + public static bool ListBox( byte* label, ref int currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount, int heightInItems) + { + fixed (int* pcurrentItem = ¤tItem) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } + byte ret = ListBoxNative(label, (int*)pcurrentItem, getter, userData, itemsCount, heightInItems); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static bool ListBox( byte* label, ref int currentItem, delegate*, void*, int, int, ref byte> getter, void* userData, int itemsCount) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (int* pcurrentItem = ¤tItem) { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } + byte ret = ListBoxNative(label, (int*)pcurrentItem, getter, userData, itemsCount, (int)(-1)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPlotLines_FloatPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PlotLinesNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride); + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (ImDrawList* pdrawList = &drawList) + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotLines( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + PlotLinesNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (float* pvalues = &values) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (float* pvalues = &values) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (float* pvalues = &values) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - } - } - } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public static void PlotLines( byte* label, ref float values, int valuesCount) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); - } - } - } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); - } - } - } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextBegin = &textBegin) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - } - } - } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textBegin != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textBegin); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative((ImFont*)pself, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_BuildLookupTable")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_BuildLookupTable")] - internal static extern void BuildLookupTableNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self); - - [NativeName(NativeNameType.Func, "ImFont_BuildLookupTable")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BuildLookupTable([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self) + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) { - BuildLookupTableNative(self); + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } } - [NativeName(NativeNameType.Func, "ImFont_BuildLookupTable")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BuildLookupTable([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - BuildLookupTableNative((ImFont*)pself); + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_ClearOutputData")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_ClearOutputData")] - internal static extern void ClearOutputDataNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self); + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } - [NativeName(NativeNameType.Func, "ImFont_ClearOutputData")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearOutputData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) { - ClearOutputDataNative(self); + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } } - [NativeName(NativeNameType.Func, "ImFont_ClearOutputData")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearOutputData([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self) + public static void PlotLines( byte* label, ref float values, int valuesCount, Vector2 graphSize) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - ClearOutputDataNative((ImFont*)pself); + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_GrowIndex")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_GrowIndex")] - internal static extern void GrowIndexNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize); + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } - [NativeName(NativeNameType.Func, "ImFont_GrowIndex")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GrowIndex([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) { - GrowIndexNative(self, newSize); + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } } - [NativeName(NativeNameType.Func, "ImFont_GrowIndex")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GrowIndex([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - GrowIndexNative((ImFont*)pself, newSize); + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_AddGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_AddGlyph")] - internal static extern void AddGlyphNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "src_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* srcCfg, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c, [NativeName(NativeNameType.Param, "x0")] [NativeName(NativeNameType.Type, "float")] float x0, [NativeName(NativeNameType.Param, "y0")] [NativeName(NativeNameType.Type, "float")] float y0, [NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "float")] float x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "float")] float y1, [NativeName(NativeNameType.Param, "u0")] [NativeName(NativeNameType.Type, "float")] float u0, [NativeName(NativeNameType.Param, "v0")] [NativeName(NativeNameType.Type, "float")] float v0, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "float")] float u1, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "float")] float v1, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX); + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } - [NativeName(NativeNameType.Func, "ImFont_AddGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "src_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* srcCfg, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c, [NativeName(NativeNameType.Param, "x0")] [NativeName(NativeNameType.Type, "float")] float x0, [NativeName(NativeNameType.Param, "y0")] [NativeName(NativeNameType.Type, "float")] float y0, [NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "float")] float x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "float")] float y1, [NativeName(NativeNameType.Param, "u0")] [NativeName(NativeNameType.Type, "float")] float u0, [NativeName(NativeNameType.Param, "v0")] [NativeName(NativeNameType.Type, "float")] float v0, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "float")] float u1, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "float")] float v1, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) { - AddGlyphNative(self, srcCfg, c, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } } - [NativeName(NativeNameType.Func, "ImFont_AddGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "src_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* srcCfg, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c, [NativeName(NativeNameType.Param, "x0")] [NativeName(NativeNameType.Type, "float")] float x0, [NativeName(NativeNameType.Param, "y0")] [NativeName(NativeNameType.Type, "float")] float y0, [NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "float")] float x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "float")] float y1, [NativeName(NativeNameType.Param, "u0")] [NativeName(NativeNameType.Type, "float")] float u0, [NativeName(NativeNameType.Param, "v0")] [NativeName(NativeNameType.Type, "float")] float v0, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "float")] float u1, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "float")] float v1, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - AddGlyphNative((ImFont*)pself, srcCfg, c, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_AddGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "src_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig srcCfg, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c, [NativeName(NativeNameType.Param, "x0")] [NativeName(NativeNameType.Type, "float")] float x0, [NativeName(NativeNameType.Param, "y0")] [NativeName(NativeNameType.Type, "float")] float y0, [NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "float")] float x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "float")] float y1, [NativeName(NativeNameType.Param, "u0")] [NativeName(NativeNameType.Type, "float")] float u0, [NativeName(NativeNameType.Param, "v0")] [NativeName(NativeNameType.Type, "float")] float v0, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "float")] float u1, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "float")] float v1, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (ImFontConfig* psrcCfg = &srcCfg) + fixed (float* pvalues = &values) { - AddGlyphNative(self, (ImFontConfig*)psrcCfg, c, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImFont_AddGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddGlyph([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "src_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig srcCfg, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c, [NativeName(NativeNameType.Param, "x0")] [NativeName(NativeNameType.Type, "float")] float x0, [NativeName(NativeNameType.Param, "y0")] [NativeName(NativeNameType.Type, "float")] float y0, [NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "float")] float x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "float")] float y1, [NativeName(NativeNameType.Param, "u0")] [NativeName(NativeNameType.Type, "float")] float u0, [NativeName(NativeNameType.Param, "v0")] [NativeName(NativeNameType.Type, "float")] float v0, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "float")] float u1, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "float")] float v1, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - fixed (ImFontConfig* psrcCfg = &srcCfg) - { - AddGlyphNative((ImFont*)pself, (ImFontConfig*)psrcCfg, c, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); - } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_AddRemapChar")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_AddRemapChar")] - internal static extern void AddRemapCharNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImWchar")] char dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "ImWchar")] char src, [NativeName(NativeNameType.Param, "overwrite_dst")] [NativeName(NativeNameType.Type, "bool")] byte overwriteDst); + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } - /// /// Makes 'dst' characterglyph points to 'src' characterglyph. Currently needs to be called AFTER fonts have been built. /// [NativeName(NativeNameType.Func, "ImFont_AddRemapChar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRemapChar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImWchar")] char dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "ImWchar")] char src, [NativeName(NativeNameType.Param, "overwrite_dst")] [NativeName(NativeNameType.Type, "bool")] bool overwriteDst) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) { - AddRemapCharNative(self, dst, src, overwriteDst ? (byte)1 : (byte)0); + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } } - /// /// Makes 'dst' characterglyph points to 'src' characterglyph. Currently needs to be called AFTER fonts have been built. /// [NativeName(NativeNameType.Func, "ImFont_AddRemapChar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRemapChar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImWchar")] char dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "ImWchar")] char src) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, int stride) { - AddRemapCharNative(self, dst, src, (byte)(1)); + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } } - /// /// Makes 'dst' characterglyph points to 'src' characterglyph. Currently needs to be called AFTER fonts have been built. /// [NativeName(NativeNameType.Func, "ImFont_AddRemapChar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRemapChar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImWchar")] char dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "ImWchar")] char src, [NativeName(NativeNameType.Param, "overwrite_dst")] [NativeName(NativeNameType.Type, "bool")] bool overwriteDst) + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, int stride) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - AddRemapCharNative((ImFont*)pself, dst, src, overwriteDst ? (byte)1 : (byte)0); + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } } - /// /// Makes 'dst' characterglyph points to 'src' characterglyph. Currently needs to be called AFTER fonts have been built. /// [NativeName(NativeNameType.Func, "ImFont_AddRemapChar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddRemapChar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImWchar")] char dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "ImWchar")] char src) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - AddRemapCharNative((ImFont*)pself, dst, src, (byte)(1)); + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_SetGlyphVisible")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_SetGlyphVisible")] - internal static extern void SetGlyphVisibleNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c, [NativeName(NativeNameType.Param, "visible")] [NativeName(NativeNameType.Type, "bool")] byte visible); + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + } - [NativeName(NativeNameType.Func, "ImFont_SetGlyphVisible")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetGlyphVisible([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c, [NativeName(NativeNameType.Param, "visible")] [NativeName(NativeNameType.Type, "bool")] bool visible) + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) { - SetGlyphVisibleNative(self, c, visible ? (byte)1 : (byte)0); + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } } - [NativeName(NativeNameType.Func, "ImFont_SetGlyphVisible")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetGlyphVisible([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c, [NativeName(NativeNameType.Param, "visible")] [NativeName(NativeNameType.Type, "bool")] bool visible) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - SetGlyphVisibleNative((ImFont*)pself, c, visible ? (byte)1 : (byte)0); + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImFont_IsGlyphRangeUnused")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImFont_IsGlyphRangeUnused")] - internal static extern byte IsGlyphRangeUnusedNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "c_begin")] [NativeName(NativeNameType.Type, "unsigned int")] uint cBegin, [NativeName(NativeNameType.Param, "c_last")] [NativeName(NativeNameType.Type, "unsigned int")] uint cLast); + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } - [NativeName(NativeNameType.Func, "ImFont_IsGlyphRangeUnused")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsGlyphRangeUnused([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* self, [NativeName(NativeNameType.Param, "c_begin")] [NativeName(NativeNameType.Type, "unsigned int")] uint cBegin, [NativeName(NativeNameType.Param, "c_last")] [NativeName(NativeNameType.Type, "unsigned int")] uint cLast) + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) { - byte ret = IsGlyphRangeUnusedNative(self, cBegin, cLast); - return ret != 0; + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } } - [NativeName(NativeNameType.Func, "ImFont_IsGlyphRangeUnused")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsGlyphRangeUnused([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont self, [NativeName(NativeNameType.Param, "c_begin")] [NativeName(NativeNameType.Type, "unsigned int")] uint cBegin, [NativeName(NativeNameType.Param, "c_last")] [NativeName(NativeNameType.Type, "unsigned int")] uint cLast) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) { - fixed (ImFont* pself = &self) + fixed (float* pvalues = &values) { - byte ret = IsGlyphRangeUnusedNative((ImFont*)pself, cBegin, cLast); - return ret != 0; + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewport_ImGuiViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiViewport*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewport_ImGuiViewport")] - internal static extern ImGuiViewport* ImGuiViewportNative(); + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } - [NativeName(NativeNameType.Func, "ImGuiViewport_ImGuiViewport")] - [return: NativeName(NativeNameType.Type, "ImGuiViewport*")] - public static ImGuiViewport* ImGuiViewport() + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) { - ImGuiViewport* ret = ImGuiViewportNative(); - return ret; + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewport_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewport_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* self); + public static void PlotLines( byte* label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } - [NativeName(NativeNameType.Func, "ImGuiViewport_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* self) + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) { - DestroyNative(self); + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } } - [NativeName(NativeNameType.Func, "ImGuiViewport_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport self) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) { - fixed (ImGuiViewport* pself = &self) + fixed (float* pvalues = &values) { - DestroyNative((ImGuiViewport*)pself); + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewport_GetCenter")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewport_GetCenter")] - internal static extern void GetCenterNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* self); + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } - [NativeName(NativeNameType.Func, "ImGuiViewport_GetCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* self) + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) { - GetCenterNative(pOut, self); + fixed (float* pvalues = &values) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } } - [NativeName(NativeNameType.Func, "ImGuiViewport_GetCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* self) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (Vector2* ppOut = &pOut) + fixed (float* pvalues = &values) { - GetCenterNative((Vector2*)ppOut, self); + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); } } - [NativeName(NativeNameType.Func, "ImGuiViewport_GetCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport self) + public static void PlotLines( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (ImGuiViewport* pself = &self) + fixed (float* pvalues = &values) { - GetCenterNative(pOut, (ImGuiViewport*)pself); + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); } } - [NativeName(NativeNameType.Func, "ImGuiViewport_GetCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport self) + public static void PlotLines( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (Vector2* ppOut = &pOut) + fixed (float* pvalues = &values) { - fixed (ImGuiViewport* pself = &self) - { - GetCenterNative((Vector2*)ppOut, (ImGuiViewport*)pself); - } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewport_GetWorkCenter")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewport_GetWorkCenter")] - internal static extern void GetWorkCenterNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* self); + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } - [NativeName(NativeNameType.Func, "ImGuiViewport_GetWorkCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWorkCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* self) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - GetWorkCenterNative(pOut, self); + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } } - [NativeName(NativeNameType.Func, "ImGuiViewport_GetWorkCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWorkCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* self) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) { - fixed (Vector2* ppOut = &pOut) + fixed (byte* poverlayText = &overlayText) { - GetWorkCenterNative((Vector2*)ppOut, self); + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImGuiViewport_GetWorkCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWorkCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport self) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) { - fixed (ImGuiViewport* pself = &self) + fixed (byte* poverlayText = &overlayText) { - GetWorkCenterNative(pOut, (ImGuiViewport*)pself); + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "ImGuiViewport_GetWorkCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWorkCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport self) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) { - fixed (Vector2* ppOut = &pOut) + fixed (byte* poverlayText = &overlayText) { - fixed (ImGuiViewport* pself = &self) - { - GetWorkCenterNative((Vector2*)ppOut, (ImGuiViewport*)pself); - } + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPlatformIO_ImGuiPlatformIO")] - [return: NativeName(NativeNameType.Type, "ImGuiPlatformIO*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPlatformIO_ImGuiPlatformIO")] - internal static extern ImGuiPlatformIO* ImGuiPlatformIONative(); - - /// /// Zero clear /// [NativeName(NativeNameType.Func, "ImGuiPlatformIO_ImGuiPlatformIO")] - [return: NativeName(NativeNameType.Type, "ImGuiPlatformIO*")] - public static ImGuiPlatformIO* ImGuiPlatformIO() - { - ImGuiPlatformIO* ret = ImGuiPlatformIONative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPlatformIO_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPlatformIO_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPlatformIO*")] ImGuiPlatformIO* self); - - [NativeName(NativeNameType.Func, "ImGuiPlatformIO_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPlatformIO*")] ImGuiPlatformIO* self) + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText) { - DestroyNative(self); + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } } - [NativeName(NativeNameType.Func, "ImGuiPlatformIO_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPlatformIO*")] ref ImGuiPlatformIO self) + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin) { - fixed (ImGuiPlatformIO* pself = &self) + fixed (byte* poverlayText = &overlayText) { - DestroyNative((ImGuiPlatformIO*)pself); + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPlatformMonitor_ImGuiPlatformMonitor")] - [return: NativeName(NativeNameType.Type, "ImGuiPlatformMonitor*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPlatformMonitor_ImGuiPlatformMonitor")] - internal static extern ImGuiPlatformMonitor* ImGuiPlatformMonitorNative(); - - [NativeName(NativeNameType.Func, "ImGuiPlatformMonitor_ImGuiPlatformMonitor")] - [return: NativeName(NativeNameType.Type, "ImGuiPlatformMonitor*")] - public static ImGuiPlatformMonitor* ImGuiPlatformMonitor() + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) { - ImGuiPlatformMonitor* ret = ImGuiPlatformMonitorNative(); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPlatformMonitor_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPlatformMonitor_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPlatformMonitor*")] ImGuiPlatformMonitor* self); - - [NativeName(NativeNameType.Func, "ImGuiPlatformMonitor_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPlatformMonitor*")] ImGuiPlatformMonitor* self) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) { - DestroyNative(self); + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } } - [NativeName(NativeNameType.Func, "ImGuiPlatformMonitor_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPlatformMonitor*")] ref ImGuiPlatformMonitor self) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) { - fixed (ImGuiPlatformMonitor* pself = &self) + fixed (byte* poverlayText = &overlayText) { - DestroyNative((ImGuiPlatformMonitor*)pself); + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPlatformImeData_ImGuiPlatformImeData")] - [return: NativeName(NativeNameType.Type, "ImGuiPlatformImeData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPlatformImeData_ImGuiPlatformImeData")] - internal static extern ImGuiPlatformImeData* ImGuiPlatformImeDataNative(); - - [NativeName(NativeNameType.Func, "ImGuiPlatformImeData_ImGuiPlatformImeData")] - [return: NativeName(NativeNameType.Type, "ImGuiPlatformImeData*")] - public static ImGuiPlatformImeData* ImGuiPlatformImeData() + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) { - ImGuiPlatformImeData* ret = ImGuiPlatformImeDataNative(); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiPlatformImeData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPlatformImeData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPlatformImeData*")] ImGuiPlatformImeData* self); - - [NativeName(NativeNameType.Func, "ImGuiPlatformImeData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPlatformImeData*")] ImGuiPlatformImeData* self) + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) { - DestroyNative(self); + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } } - [NativeName(NativeNameType.Func, "ImGuiPlatformImeData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPlatformImeData*")] ref ImGuiPlatformImeData self) + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (ImGuiPlatformImeData* pself = &self) + fixed (byte* poverlayText = &overlayText) { - DestroyNative((ImGuiPlatformImeData*)pself); + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetKeyIndex")] - [return: NativeName(NativeNameType.Type, "ImGuiKey")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetKeyIndex")] - internal static extern ImGuiKey GetKeyIndexNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - /// /// map ImGuiKey_* values into legacy native key index. == io.KeyMap[key] /// [NativeName(NativeNameType.Func, "igGetKeyIndex")] - [return: NativeName(NativeNameType.Type, "ImGuiKey")] - public static ImGuiKey GetKeyIndex([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) { - ImGuiKey ret = GetKeyIndexNative(key); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImHashData")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImHashData")] - internal static extern int ImHashDataNative([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "data_size")] [NativeName(NativeNameType.Type, "size_t")] nuint dataSize, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed); - - [NativeName(NativeNameType.Func, "igImHashData")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashData([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "data_size")] [NativeName(NativeNameType.Type, "size_t")] nuint dataSize, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) { - int ret = ImHashDataNative(data, dataSize, seed); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } } - [NativeName(NativeNameType.Func, "igImHashData")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashData([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "data_size")] [NativeName(NativeNameType.Type, "size_t")] nuint dataSize) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) { - int ret = ImHashDataNative(data, dataSize, (int)(0)); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImHashStr")] - internal static extern int ImHashStrNative([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] byte* data, [NativeName(NativeNameType.Param, "data_size")] [NativeName(NativeNameType.Type, "size_t")] nuint dataSize, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed); - - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] byte* data, [NativeName(NativeNameType.Param, "data_size")] [NativeName(NativeNameType.Type, "size_t")] nuint dataSize, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, int stride) { - int ret = ImHashStrNative(data, dataSize, seed); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } } - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] byte* data, [NativeName(NativeNameType.Param, "data_size")] [NativeName(NativeNameType.Type, "size_t")] nuint dataSize) + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) { - int ret = ImHashStrNative(data, dataSize, (int)(0)); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } } - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] byte* data) + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) { - int ret = ImHashStrNative(data, (nuint)(0), (int)(0)); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } } - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] byte* data, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) { - int ret = ImHashStrNative(data, (nuint)(0), seed); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } } - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] ref byte data, [NativeName(NativeNameType.Param, "data_size")] [NativeName(NativeNameType.Type, "size_t")] nuint dataSize, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) { - fixed (byte* pdata = &data) + fixed (byte* poverlayText = &overlayText) { - int ret = ImHashStrNative((byte*)pdata, dataSize, seed); - return ret; + PlotLinesNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); } } - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] ref byte data, [NativeName(NativeNameType.Param, "data_size")] [NativeName(NativeNameType.Type, "size_t")] nuint dataSize) + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) { - fixed (byte* pdata = &data) + fixed (byte* poverlayText = &overlayText) { - int ret = ImHashStrNative((byte*)pdata, dataSize, (int)(0)); - return ret; + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); } } - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] ref byte data) + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) { - fixed (byte* pdata = &data) + fixed (byte* poverlayText = &overlayText) { - int ret = ImHashStrNative((byte*)pdata, (nuint)(0), (int)(0)); - return ret; + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); } } - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] ref byte data, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static void PlotLines( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (byte* pdata = &data) + fixed (byte* poverlayText = &overlayText) { - int ret = ImHashStrNative((byte*)pdata, (nuint)(0), seed); - return ret; + PlotLinesNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); } } - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] string data, [NativeName(NativeNameType.Param, "data_size")] [NativeName(NativeNameType.Type, "size_t")] nuint dataSize, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { byte* pStr0 = null; int pStrSize0 = 0; - if (data != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(data); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199238,26 +38644,23 @@ public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeNa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = ImHashStrNative(pStr0, dataSize, seed); + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] string data, [NativeName(NativeNameType.Param, "data_size")] [NativeName(NativeNameType.Type, "size_t")] nuint dataSize) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (data != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(data); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199267,26 +38670,23 @@ public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeNa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = ImHashStrNative(pStr0, dataSize, (int)(0)); + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] string data) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (data != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(data); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199296,26 +38696,23 @@ public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeNa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = ImHashStrNative(pStr0, (nuint)(0), (int)(0)); + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImHashStr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const char*")] string data, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; - if (data != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(data); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199325,132 +38722,49 @@ public static int ImHashStr([NativeName(NativeNameType.Param, "data")] [NativeNa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(data, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = ImHashStrNative(pStr0, (nuint)(0), seed); + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImQsort")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImQsort")] - internal static extern void ImQsortNative([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "void*")] void* baseValue, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count, [NativeName(NativeNameType.Param, "size_of_element")] [NativeName(NativeNameType.Type, "size_t")] nuint sizeOfElement, [NativeName(NativeNameType.Param, "compare_func")] [NativeName(NativeNameType.Type, "int (*)(void* base, size_t count, size_t size_of_element, int (*)(const void*, const void*)* compare_func)*")] delegate*> compareFunc); - - [NativeName(NativeNameType.Func, "igImQsort")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImQsort([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "void*")] void* baseValue, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count, [NativeName(NativeNameType.Param, "size_of_element")] [NativeName(NativeNameType.Type, "size_t")] nuint sizeOfElement, [NativeName(NativeNameType.Param, "compare_func")] [NativeName(NativeNameType.Type, "int (*)(void* base, size_t count, size_t size_of_element, int (*)(const void*, const void*)* compare_func)*")] delegate*> compareFunc) - { - ImQsortNative(baseValue, count, sizeOfElement, compareFunc); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImAlphaBlendColors")] - [return: NativeName(NativeNameType.Type, "ImU32")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImAlphaBlendColors")] - internal static extern uint ImAlphaBlendColorsNative([NativeName(NativeNameType.Param, "col_a")] [NativeName(NativeNameType.Type, "ImU32")] uint colA, [NativeName(NativeNameType.Param, "col_b")] [NativeName(NativeNameType.Type, "ImU32")] uint colB); - - [NativeName(NativeNameType.Func, "igImAlphaBlendColors")] - [return: NativeName(NativeNameType.Type, "ImU32")] - public static uint ImAlphaBlendColors([NativeName(NativeNameType.Param, "col_a")] [NativeName(NativeNameType.Type, "ImU32")] uint colA, [NativeName(NativeNameType.Param, "col_b")] [NativeName(NativeNameType.Type, "ImU32")] uint colB) - { - uint ret = ImAlphaBlendColorsNative(colA, colB); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImIsPowerOfTwo_Int")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImIsPowerOfTwo_Int")] - internal static extern byte ImIsPowerOfTwoNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int")] int v); - - [NativeName(NativeNameType.Func, "igImIsPowerOfTwo_Int")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImIsPowerOfTwo([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int")] int v) - { - byte ret = ImIsPowerOfTwoNative(v); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImIsPowerOfTwo_U64")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImIsPowerOfTwo_U64")] - internal static extern byte ImIsPowerOfTwoNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "ImU64")] ulong v); - - [NativeName(NativeNameType.Func, "igImIsPowerOfTwo_U64")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImIsPowerOfTwo([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "ImU64")] ulong v) - { - byte ret = ImIsPowerOfTwoNative(v); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImUpperPowerOfTwo")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImUpperPowerOfTwo")] - internal static extern int ImUpperPowerOfTwoNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int")] int v); - - [NativeName(NativeNameType.Func, "igImUpperPowerOfTwo")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImUpperPowerOfTwo([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int")] int v) - { - int ret = ImUpperPowerOfTwoNative(v); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImStricmp")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStricmp")] - internal static extern int ImStricmpNative([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] byte* str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] byte* str2); - - [NativeName(NativeNameType.Func, "igImStricmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStricmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] byte* str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] byte* str2) - { - int ret = ImStricmpNative(str1, str2); - return ret; } - [NativeName(NativeNameType.Func, "igImStricmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStricmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] ref byte str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] byte* str2) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText) { - fixed (byte* pstr1 = &str1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - int ret = ImStricmpNative((byte*)pstr1, str2); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStricmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStricmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] string str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] byte* str2) + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText) { byte* pStr0 = null; int pStrSize0 = 0; - if (str1 != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199460,37 +38774,49 @@ public static int ImStricmp([NativeName(NativeNameType.Param, "str1")] [NativeNa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = ImStricmpNative(pStr0, str2); + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStricmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStricmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] byte* str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] ref byte str2) + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin) { - fixed (byte* pstr2 = &str2) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - int ret = ImStricmpNative(str1, (byte*)pstr2); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStricmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStricmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] byte* str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] string str2) + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (str2 != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str2); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199500,40 +38826,49 @@ public static int ImStricmp([NativeName(NativeNameType.Param, "str1")] [NativeNa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = ImStricmpNative(str1, pStr0); + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStricmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStricmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] ref byte str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] ref byte str2) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) { - fixed (byte* pstr1 = &str1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - fixed (byte* pstr2 = &str2) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - int ret = ImStricmpNative((byte*)pstr1, (byte*)pstr2); - return ret; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStricmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStricmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] string str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] string str2) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (str1 != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199543,74 +38878,75 @@ public static int ImStricmp([NativeName(NativeNameType.Param, "str1")] [NativeNa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (str2 != null) + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(str2); - if (pStrSize1 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(str2, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImStricmpNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImStrnicmp")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStrnicmp")] - internal static extern int ImStrnicmpNative([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] byte* str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] byte* str2, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count); - - [NativeName(NativeNameType.Func, "igImStrnicmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStrnicmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] byte* str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] byte* str2, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) - { - int ret = ImStrnicmpNative(str1, str2, count); - return ret; } - [NativeName(NativeNameType.Func, "igImStrnicmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStrnicmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] ref byte str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] byte* str2, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) { - fixed (byte* pstr1 = &str1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - int ret = ImStrnicmpNative((byte*)pstr1, str2, count); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStrnicmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStrnicmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] string str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] byte* str2, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (str1 != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199620,37 +38956,49 @@ public static int ImStrnicmp([NativeName(NativeNameType.Param, "str1")] [NativeN byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = ImStrnicmpNative(pStr0, str2, count); + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStrnicmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStrnicmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] byte* str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] ref byte str2, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) { - fixed (byte* pstr2 = &str2) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - int ret = ImStrnicmpNative(str1, (byte*)pstr2, count); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStrnicmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStrnicmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] byte* str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] string str2, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) { byte* pStr0 = null; int pStrSize0 = 0; - if (str2 != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str2); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199660,40 +39008,49 @@ public static int ImStrnicmp([NativeName(NativeNameType.Param, "str1")] [NativeN byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = ImStrnicmpNative(str1, pStr0, count); + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStrnicmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStrnicmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] ref byte str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] ref byte str2, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) { - fixed (byte* pstr1 = &str1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - fixed (byte* pstr2 = &str2) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - int ret = ImStrnicmpNative((byte*)pstr1, (byte*)pstr2, count); - return ret; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStrnicmp")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStrnicmp([NativeName(NativeNameType.Param, "str1")] [NativeName(NativeNameType.Type, "const char*")] string str1, [NativeName(NativeNameType.Param, "str2")] [NativeName(NativeNameType.Type, "const char*")] string str2, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, int stride) { byte* pStr0 = null; int pStrSize0 = 0; - if (str1 != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199703,72 +39060,75 @@ public static int ImStrnicmp([NativeName(NativeNameType.Param, "str1")] [NativeN byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (str2 != null) + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(str2); - if (pStrSize1 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + } + + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(str2, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImStrnicmpNative(pStr0, pStr1, count); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImStrncpy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStrncpy")] - internal static extern void ImStrncpyNative([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "const char*")] byte* src, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count); - - [NativeName(NativeNameType.Func, "igImStrncpy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImStrncpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "const char*")] byte* src, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) - { - ImStrncpyNative(dst, src, count); } - [NativeName(NativeNameType.Func, "igImStrncpy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImStrncpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref byte dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "const char*")] byte* src, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) { - fixed (byte* pdst = &dst) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - ImStrncpyNative((byte*)pdst, src, count); + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStrncpy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImStrncpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref string dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "const char*")] byte* src, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) { byte* pStr0 = null; int pStrSize0 = 0; - if (dst != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(dst); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199778,36 +39138,49 @@ public static void ImStrncpy([NativeName(NativeNameType.Param, "dst")] [NativeNa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImStrncpyNative(pStr0, src, count); - dst = Utils.DecodeStringUTF8(pStr0); + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStrncpy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImStrncpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "const char*")] ref byte src, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) { - fixed (byte* psrc = &src) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - ImStrncpyNative(dst, (byte*)psrc, count); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStrncpy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImStrncpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "const char*")] string src, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) { byte* pStr0 = null; int pStrSize0 = 0; - if (src != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(src); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199817,38 +39190,49 @@ public static void ImStrncpy([NativeName(NativeNameType.Param, "dst")] [NativeNa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(src, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImStrncpyNative(dst, pStr0, count); + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStrncpy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImStrncpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref byte dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "const char*")] ref byte src, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) { - fixed (byte* pdst = &dst) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - fixed (byte* psrc = &src) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else { - ImStrncpyNative((byte*)pdst, (byte*)psrc, count); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStrncpy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImStrncpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref string dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "const char*")] string src, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) + public static void PlotLines( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { byte* pStr0 = null; int pStrSize0 = 0; - if (dst != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(dst); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -199858,613 +39242,753 @@ public static void ImStrncpy([NativeName(NativeNameType.Param, "dst")] [NativeNa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (src != null) - { - pStrSize1 = Utils.GetByteCountUTF8(src); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(src, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImStrncpyNative(pStr0, pStr1, count); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + PlotLinesNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImStrdup")] - [return: NativeName(NativeNameType.Type, "char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStrdup")] - internal static extern byte* ImStrdupNative([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str); - - [NativeName(NativeNameType.Func, "igImStrdup")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdup([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - byte* ret = ImStrdupNative(str); - return ret; + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } + } } - [NativeName(NativeNameType.Func, "igImStrdup")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - string ret = Utils.DecodeStringUTF8(ImStrdupNative(str)); - return ret; + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + } } - [NativeName(NativeNameType.Func, "igImStrdup")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdup([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) { - fixed (byte* pstr = &str) + fixed (float* pvalues = &values) { - byte* ret = ImStrdupNative((byte*)pstr); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } } } - [NativeName(NativeNameType.Func, "igImStrdup")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) { - fixed (byte* pstr = &str) + fixed (float* pvalues = &values) { - string ret = Utils.DecodeStringUTF8(ImStrdupNative((byte*)pstr)); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } } } - [NativeName(NativeNameType.Func, "igImStrdup")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdup([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* poverlayText = &overlayText) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - else + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* ret = ImStrdupNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } } - return ret; } - [NativeName(NativeNameType.Func, "igImStrdup")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* poverlayText = &overlayText) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - else + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImStrdupNative(pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } } - return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStrdupcpy")] - internal static extern byte* ImStrdupcpyNative([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str); - - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) { - byte* ret = ImStrdupcpyNative(dst, pDstSize, str); - return ret; + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, str)); - return ret; + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref byte dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (byte* pdst = &dst) + fixed (float* pvalues = &values) { - byte* ret = ImStrdupcpyNative((byte*)pdst, pDstSize, str); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref byte dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) { - fixed (byte* pdst = &dst) + fixed (float* pvalues = &values) { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, pDstSize, str)); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref string dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* poverlayText = &overlayText) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - else + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* ret = ImStrdupcpyNative(pStr0, pDstSize, str); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } } - return ret; } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref string dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* poverlayText = &overlayText) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - else + } + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, pDstSize, str)); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } } - return ret; } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) { - fixed (nuint* ppDstSize = &pDstSize) + fixed (float* pvalues = &values) { - byte* ret = ImStrdupcpyNative(dst, (nuint*)ppDstSize, str); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) { - fixed (nuint* ppDstSize = &pDstSize) + fixed (float* pvalues = &values) { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (nuint*)ppDstSize, str)); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref byte dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) { - fixed (byte* pdst = &dst) + fixed (float* pvalues = &values) { - fixed (nuint* ppDstSize = &pDstSize) + fixed (byte* poverlayText = &overlayText) { - byte* ret = ImStrdupcpyNative((byte*)pdst, (nuint*)ppDstSize, str); - return ret; + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref byte dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (byte* pdst = &dst) + fixed (float* pvalues = &values) { - fixed (nuint* ppDstSize = &pDstSize) + fixed (byte* poverlayText = &overlayText) { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, (nuint*)ppDstSize, str)); - return ret; + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref string dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (nuint* ppDstSize = &pDstSize) + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) { - byte* ret = ImStrdupcpyNative(pStr0, (nuint*)ppDstSize, str); - dst = Utils.DecodeStringUTF8(pStr0); + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref string dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (nuint* ppDstSize = &pDstSize) + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + fixed (float* pvalues = &values) { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, (nuint*)ppDstSize, str)); - dst = Utils.DecodeStringUTF8(pStr0); + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText) { - fixed (byte* pstr = &str) + fixed (float* pvalues = &values) { - byte* ret = ImStrdupcpyNative(dst, pDstSize, (byte*)pstr); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText) { - fixed (byte* pstr = &str) + fixed (float* pvalues = &values) { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, (byte*)pstr)); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStrdupcpyNative(dst, pDstSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref byte dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) { - fixed (byte* pdst = &dst) + fixed (float* pvalues = &values) { - fixed (byte* pstr = &str) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - byte* ret = ImStrdupcpyNative((byte*)pdst, pDstSize, (byte*)pstr); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref byte dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) { - fixed (byte* pdst = &dst) + fixed (float* pvalues = &values) { - fixed (byte* pstr = &str) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, pDstSize, (byte*)pstr)); - return ret; + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref string dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (str != null) + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) { - pStrSize1 = Utils.GetByteCountUTF8(str); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(str, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStrdupcpyNative(pStr0, pDstSize, pStr1); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref string dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (str != null) + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) { - pStrSize1 = Utils.GetByteCountUTF8(str); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(str, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, pDstSize, pStr1)); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) { - fixed (nuint* ppDstSize = &pDstSize) + fixed (float* pvalues = &values) { - fixed (byte* pstr = &str) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - byte* ret = ImStrdupcpyNative(dst, (nuint*)ppDstSize, (byte*)pstr); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) { - fixed (nuint* ppDstSize = &pDstSize) + fixed (float* pvalues = &values) { - fixed (byte* pstr = &str) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (nuint*)ppDstSize, (byte*)pstr)); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, int stride) { - fixed (nuint* ppDstSize = &pDstSize) + fixed (float* pvalues = &values) { byte* pStr0 = null; int pStrSize0 = 0; - if (str != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -200474,29 +39998,26 @@ public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = ImStrdupcpyNative(dst, (nuint*)ppDstSize, pStr0); + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] byte* dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) { - fixed (nuint* ppDstSize = &pDstSize) + fixed (float* pvalues = &values) { byte* pStr0 = null; int pStrSize0 = 0; - if (str != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -200506,215 +40027,421 @@ public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (nuint*)ppDstSize, pStr0)); + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref byte dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) { - fixed (byte* pdst = &dst) + fixed (float* pvalues = &values) { - fixed (nuint* ppDstSize = &pDstSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - fixed (byte* pstr = &str) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* ret = ImStrdupcpyNative((byte*)pdst, (nuint*)ppDstSize, (byte*)pstr); - return ret; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref byte dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) { - fixed (byte* pdst = &dst) + fixed (float* pvalues = &values) { - fixed (nuint* ppDstSize = &pDstSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - fixed (byte* pstr = &str) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative((byte*)pdst, (nuint*)ppDstSize, (byte*)pstr)); - return ret; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* ImStrdupcpy([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref string dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotLines( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotLinesNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (nuint* ppDstSize = &pDstSize) + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (str != null) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStrSize1 = Utils.GetByteCountUTF8(str); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(str, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStrdupcpyNative(pStr0, (nuint*)ppDstSize, pStr1); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } } - [NativeName(NativeNameType.Func, "igImStrdupcpy")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string ImStrdupcpyS([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "char*")] ref string dst, [NativeName(NativeNameType.Param, "p_dst_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint pDstSize, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (dst != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(dst); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (nuint* ppDstSize = &pDstSize) + } + + public static void PlotLines( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) { - byte* pStr1 = null; - int pStrSize1 = 0; - if (str != null) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStrSize1 = Utils.GetByteCountUTF8(str); - if (pStrSize1 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(str, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(pStr0, (nuint*)ppDstSize, pStr1)); - dst = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotLinesNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStrchrRange")] - internal static extern byte* ImStrchrRangeNative([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c); - - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStrchrRange([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPlotLines_FnFloatPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PlotLinesNative(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize); + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); + } + } + + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) { - byte* ret = ImStrchrRangeNative(strBegin, strEnd, c); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } } - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, strEnd, c)); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } } - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStrchrRange([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) { - fixed (byte* pstrBegin = &strBegin) + fixed (byte* poverlayText = &overlayText) { - byte* ret = ImStrchrRangeNative((byte*)pstrBegin, strEnd, c); - return ret; + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); } } - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (byte* pstrBegin = &strBegin) + fixed (byte* poverlayText = &overlayText) { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, strEnd, c)); - return ret; + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); } } - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStrchrRange([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] string strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (strBegin != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -200724,26 +40451,23 @@ public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = ImStrchrRangeNative(pStr0, strEnd, c); + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] string strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (strBegin != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -200753,48 +40477,23 @@ public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(pStr0, strEnd, c)); + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStrchrRange([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) - { - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) - { - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c)); - return ret; - } } - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStrchrRange([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; - if (strEnd != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -200804,26 +40503,23 @@ public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = ImStrchrRangeNative(strBegin, pStr0, c); + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) { byte* pStr0 = null; int pStrSize0 = 0; - if (strEnd != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -200833,54 +40529,23 @@ public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, pStr0, c)); + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStrchrRange([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) - { - fixed (byte* pstrBegin = &strBegin) - { - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) - { - fixed (byte* pstrBegin = &strBegin) - { - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative((byte*)pstrBegin, (byte*)pstrEnd, c)); - return ret; - } - } } - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStrchrRange([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] string strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) { byte* pStr0 = null; int pStrSize0 = 0; - if (strBegin != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -200890,47 +40555,23 @@ public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStrchrRangeNative(pStr0, pStr1, c); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStrchrRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin")] [NativeName(NativeNameType.Type, "const char*")] string strBegin, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) { byte* pStr0 = null; int pStrSize0 = 0; - if (strBegin != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(strBegin); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -200940,120 +40581,23 @@ public static string ImStrchrRangeS([NativeName(NativeNameType.Param, "str_begin byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strBegin, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(pStr0, pStr1, c)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImStrlenW")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStrlenW")] - internal static extern int ImStrlenWNative([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* str); - - [NativeName(NativeNameType.Func, "igImStrlenW")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStrlenW([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* str) - { - int ret = ImStrlenWNative(str); - return ret; - } - - [NativeName(NativeNameType.Func, "igImStrlenW")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImStrlenW([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char str) - { - fixed (char* pstr = &str) - { - int ret = ImStrlenWNative((char*)pstr); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStreolRange")] - internal static extern byte* ImStreolRangeNative([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd); - - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStreolRange([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - byte* ret = ImStreolRangeNative(str, strEnd); - return ret; - } - - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, strEnd)); - return ret; - } - - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStreolRange([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - fixed (byte* pstr = &str) - { - byte* ret = ImStreolRangeNative((byte*)pstr, strEnd); - return ret; - } - } - - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - fixed (byte* pstr = &str) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, strEnd)); - return ret; - } } - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStreolRange([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (str != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -201063,26 +40607,23 @@ public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = ImStreolRangeNative(pStr0, strEnd); + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (str != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -201092,48 +40633,23 @@ public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, strEnd)); + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStreolRange([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStreolRangeNative(str, (byte*)pstrEnd); - return ret; - } - } - - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, (byte*)pstrEnd)); - return ret; - } } - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStreolRange([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (strEnd != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -201143,26 +40659,23 @@ public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = ImStreolRangeNative(str, pStr0); + PlotLinesNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (strEnd != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -201172,54 +40685,23 @@ public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, pStr0)); + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStreolRange([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - byte* ret = ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative((byte*)pstr, (byte*)pstrEnd)); - return ret; - } - } } - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStreolRange([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (str != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -201229,47 +40711,23 @@ public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStreolRangeNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - /// /// End end-of-line /// [NativeName(NativeNameType.Func, "igImStreolRange")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) + public static void PlotLines( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (str != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(str); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -201279,1463 +40737,833 @@ public static string ImStreolRangeS([NativeName(NativeNameType.Param, "str")] [N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + PlotLinesNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImStrbolW")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStrbolW")] - internal static extern char* ImStrbolWNative([NativeName(NativeNameType.Param, "buf_mid_line")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* bufMidLine, [NativeName(NativeNameType.Param, "buf_begin")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* bufBegin); + [LibraryImport(LibName, EntryPoint = "igPlotHistogram_FloatPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PlotHistogramNative(byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride); - /// /// Find beginning-of-line /// [NativeName(NativeNameType.Func, "igImStrbolW")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* ImStrbolW([NativeName(NativeNameType.Param, "buf_mid_line")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* bufMidLine, [NativeName(NativeNameType.Param, "buf_begin")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* bufBegin) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - char* ret = ImStrbolWNative(bufMidLine, bufBegin); - return ret; + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); } - /// /// Find beginning-of-line /// [NativeName(NativeNameType.Func, "igImStrbolW")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* ImStrbolW([NativeName(NativeNameType.Param, "buf_mid_line")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char bufMidLine, [NativeName(NativeNameType.Param, "buf_begin")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* bufBegin) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (char* pbufMidLine = &bufMidLine) - { - char* ret = ImStrbolWNative((char*)pbufMidLine, bufBegin); - return ret; - } + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); } - /// /// Find beginning-of-line /// [NativeName(NativeNameType.Func, "igImStrbolW")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* ImStrbolW([NativeName(NativeNameType.Param, "buf_mid_line")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* bufMidLine, [NativeName(NativeNameType.Param, "buf_begin")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char bufBegin) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) { - fixed (char* pbufBegin = &bufBegin) - { - char* ret = ImStrbolWNative(bufMidLine, (char*)pbufBegin); - return ret; - } + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - /// /// Find beginning-of-line /// [NativeName(NativeNameType.Func, "igImStrbolW")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] - public static char* ImStrbolW([NativeName(NativeNameType.Param, "buf_mid_line")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char bufMidLine, [NativeName(NativeNameType.Param, "buf_begin")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char bufBegin) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) { - fixed (char* pbufMidLine = &bufMidLine) - { - fixed (char* pbufBegin = &bufBegin) - { - char* ret = ImStrbolWNative((char*)pbufMidLine, (char*)pbufBegin); - return ret; - } - } + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStristr")] - internal static extern byte* ImStristrNative([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd); + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset) { - byte* ret = ImStristrNative(haystack, haystackEnd, needle, needleEnd); - return ret; + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount) { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, needleEnd)); - return ret; + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText) { - fixed (byte* phaystack = &haystack) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd); - return ret; - } + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin) { - fixed (byte* phaystack = &haystack) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, needleEnd)); - return ret; - } + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(pStr0, haystackEnd, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (byte* phaystackEnd = &haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, needle, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + PlotHistogramNative(label, values, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (byte* phaystack = &haystack) + fixed (float* pvalues = &values) { - fixed (byte* phaystackEnd = &haystackEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd); - return ret; - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (byte* phaystack = &haystack) + fixed (float* pvalues = &values) { - fixed (byte* phaystackEnd = &haystackEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd)); - return ret; - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, pStr1, needle, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText) { - fixed (byte* pneedle = &needle) + fixed (float* pvalues = &values) { - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset) { - fixed (byte* pneedle = &needle) + fixed (float* pvalues = &values) { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needle != null) - { - pStrSize0 = Utils.GetByteCountUTF8(needle); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, needleEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin) { - fixed (byte* phaystack = &haystack) + fixed (float* pvalues = &values) { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd); - return ret; - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin) { - fixed (byte* phaystack = &haystack) + fixed (float* pvalues = &values) { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(pStr0, haystackEnd, pStr1, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, pStr1, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax) { - fixed (byte* phaystackEnd = &haystackEnd) + fixed (float* pvalues = &values) { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) { - fixed (byte* phaystackEnd = &haystackEnd) + fixed (float* pvalues = &values) { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, pStr1, needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) - { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, needleEnd)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize) { - fixed (byte* phaystack = &haystack) + fixed (float* pvalues = &values) { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); - return ret; - } - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, Vector2 graphSize) { - fixed (byte* phaystack = &haystack) + fixed (float* pvalues = &values) { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); - return ret; - } - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) - { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) + fixed (float* pvalues = &values) { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } - byte* ret = ImStristrNative(pStr0, pStr1, pStr2, needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr2); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr1); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] byte* needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, (int)(sizeof(float))); } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, pStr2, needleEnd)); - if (pStrSize2 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr2); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); } - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr1); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, int stride) { - fixed (byte* pneedleEnd = &needleEnd) + fixed (float* pvalues = &values) { - byte* ret = ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd); - return ret; + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, int stride) { - fixed (byte* pneedleEnd = &needleEnd) + fixed (float* pvalues = &values) { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd)); - return ret; + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - byte* ret = ImStristrNative(haystack, haystackEnd, needle, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (needleEnd != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, int stride) { - fixed (byte* phaystack = &haystack) + fixed (float* pvalues = &values) { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd); - return ret; - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, int stride) { - fixed (byte* phaystack = &haystack) + fixed (float* pvalues = &values) { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); } - byte* ret = ImStristrNative(pStr0, haystackEnd, needle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr1); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, Vector2 graphSize, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, needle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr1); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize, stride); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (byte* phaystackEnd = &haystackEnd) + fixed (float* pvalues = &values) { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize, stride); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (byte* phaystackEnd = &haystackEnd) + fixed (float* pvalues = &values) { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize, stride); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize, stride); } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); } - byte* ret = ImStristrNative(haystack, pStr0, needle, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) { - Utils.Free(pStr1); + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) { - Utils.Free(pStr0); + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystackEnd != null) + fixed (byte* poverlayText = &overlayText) { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText) + { + fixed (byte* poverlayText = &overlayText) { - Utils.Free(pStr1); + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (byte* poverlayText = &overlayText) { - Utils.Free(pStr0); + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) { - fixed (byte* phaystack = &haystack) + fixed (byte* poverlayText = &overlayText) { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); - return ret; - } - } + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) { - fixed (byte* phaystack = &haystack) + fixed (byte* poverlayText = &overlayText) { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); - return ret; - } - } + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) + fixed (byte* poverlayText = &overlayText) { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); } - byte* ret = ImStristrNative(pStr0, pStr1, needle, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) { - Utils.Free(pStr2); + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); } - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = &overlayText) { - Utils.Free(pStr1); + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = &overlayText) { - Utils.Free(pStr0); + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] byte* needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (haystack != null) + fixed (byte* poverlayText = &overlayText) { - pStrSize0 = Utils.GetByteCountUTF8(haystack); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, int stride) + { + fixed (byte* poverlayText = &overlayText) { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (byte* poverlayText = &overlayText) { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, needle, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (byte* poverlayText = &overlayText) { - Utils.Free(pStr2); + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); } - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) { - Utils.Free(pStr1); + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) { - Utils.Free(pStr0); + PlotHistogramNative(label, values, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) { - fixed (byte* pneedle = &needle) + fixed (byte* poverlayText = &overlayText) { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (byte* pneedle = &needle) + fixed (byte* poverlayText = &overlayText) { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } + PlotHistogramNative(label, values, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { byte* pStr0 = null; int pStrSize0 = 0; - if (needle != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(needle); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -202745,47 +41573,49 @@ public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (needle != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(needle); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -202795,81 +41625,75 @@ public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needleEnd != null) + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText) { - fixed (byte* phaystack = &haystack) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - fixed (byte* pneedle = &needle) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) - { - fixed (byte* phaystack = &haystack) - { - fixed (byte* pneedle = &needle) + else { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText) { byte* pStr0 = null; int pStrSize0 = 0; - if (haystack != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(haystack); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -202879,68 +41703,49 @@ public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + Utils.Free(pStr0); } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(pStr0, haystackEnd, pStr1, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] byte* haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (haystack != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(haystack); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -202950,102 +41755,75 @@ public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + Utils.Free(pStr0); } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, haystackEnd, pStr1, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) { - fixed (byte* phaystackEnd = &haystackEnd) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - fixed (byte* pneedle = &needle) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } - } - } - - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) - { - fixed (byte* phaystackEnd = &haystackEnd) - { - fixed (byte* pneedle = &needle) + else { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (haystackEnd != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -203055,68 +41833,49 @@ public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + Utils.Free(pStr0); } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte* ret = ImStristrNative(haystack, pStr0, pStr1, pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] byte* haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (haystackEnd != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -203126,108 +41885,101 @@ public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (needle != null) + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(needle); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + Utils.Free(pStr0); } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needleEnd != null) + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStrSize2 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize2 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, pStr2)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) { - fixed (byte* phaystack = &haystack) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - fixed (byte* phaystackEnd = &haystackEnd) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - byte* ret = ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); - return ret; - } - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] ref byte needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, int stride) { - fixed (byte* phaystack = &haystack) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - fixed (byte* phaystackEnd = &haystackEnd) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pneedle = &needle) - { - fixed (byte* pneedleEnd = &needleEnd) - { - string ret = Utils.DecodeStringUTF8(ImStristrNative((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); - return ret; - } - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStristr([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, int stride) { byte* pStr0 = null; int pStrSize0 = 0; - if (haystack != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(haystack); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -203237,89 +41989,101 @@ public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - byte* pStr3 = null; - int pStrSize3 = 0; - if (needleEnd != null) + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStrSize3 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize3 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr3 = Utils.Alloc(pStrSize3 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack3 = stackalloc byte[pStrSize3 + 1]; - pStr3 = pStrStack3; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset3 = Utils.EncodeStringUTF8(needleEnd, pStr3, pStrSize3); - pStr3[pStrOffset3] = 0; - } - byte* ret = ImStristrNative(pStr0, pStr1, pStr2, pStr3); - if (pStrSize3 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr3); - } - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImStristr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [NativeName(NativeNameType.Type, "const char*")] string haystack, [NativeName(NativeNameType.Param, "haystack_end")] [NativeName(NativeNameType.Type, "const char*")] string haystackEnd, [NativeName(NativeNameType.Param, "needle")] [NativeName(NativeNameType.Type, "const char*")] string needle, [NativeName(NativeNameType.Param, "needle_end")] [NativeName(NativeNameType.Type, "const char*")] string needleEnd) + public static void PlotHistogram( byte* label, float* values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) { byte* pStr0 = null; int pStrSize0 = 0; - if (haystack != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(haystack); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -203329,720 +42093,976 @@ public static string ImStristrS([NativeName(NativeNameType.Param, "haystack")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (haystackEnd != null) + PlotHistogramNative(label, values, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(haystackEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (needle != null) + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize2 = Utils.GetByteCountUTF8(needle); - if (pStrSize2 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - byte* pStr3 = null; - int pStrSize3 = 0; - if (needleEnd != null) + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PlotHistogram( byte* label, float* values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStrSize3 = Utils.GetByteCountUTF8(needleEnd); - if (pStrSize3 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr3 = Utils.Alloc(pStrSize3 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack3 = stackalloc byte[pStrSize3 + 1]; - pStr3 = pStrStack3; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset3 = Utils.EncodeStringUTF8(needleEnd, pStr3, pStrSize3); - pStr3[pStrOffset3] = 0; + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImStristrNative(pStr0, pStr1, pStr2, pStr3)); - if (pStrSize3 >= Utils.MaxStackallocSize) + PlotHistogramNative(label, values, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr3); + Utils.Free(pStr0); } - if (pStrSize2 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr2); + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } } - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr1); + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + } } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } } - return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImStrTrimBlanks")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStrTrimBlanks")] - internal static extern void ImStrTrimBlanksNative([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "char*")] byte* str); - - [NativeName(NativeNameType.Func, "igImStrTrimBlanks")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImStrTrimBlanks([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "char*")] byte* str) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) { - ImStrTrimBlanksNative(str); + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } + } } - [NativeName(NativeNameType.Func, "igImStrTrimBlanks")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImStrTrimBlanks([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "char*")] ref byte str) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText) { - fixed (byte* pstr = &str) + fixed (float* pvalues = &values) { - ImStrTrimBlanksNative((byte*)pstr); + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } } } - [NativeName(NativeNameType.Func, "igImStrTrimBlanks")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImStrTrimBlanks([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "char*")] ref string str) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* poverlayText = &overlayText) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - else + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - ImStrTrimBlanksNative(pStr0); - str = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImStrSkipBlank")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImStrSkipBlank")] - internal static extern byte* ImStrSkipBlankNative([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str); - - [NativeName(NativeNameType.Func, "igImStrSkipBlank")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStrSkipBlank([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) { - byte* ret = ImStrSkipBlankNative(str); - return ret; + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } } - [NativeName(NativeNameType.Func, "igImStrSkipBlank")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStrSkipBlankS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) { - string ret = Utils.DecodeStringUTF8(ImStrSkipBlankNative(str)); - return ret; + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } + } } - [NativeName(NativeNameType.Func, "igImStrSkipBlank")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStrSkipBlank([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize) { - fixed (byte* pstr = &str) + fixed (float* pvalues = &values) { - byte* ret = ImStrSkipBlankNative((byte*)pstr); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } } } - [NativeName(NativeNameType.Func, "igImStrSkipBlank")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStrSkipBlankS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) { - fixed (byte* pstr = &str) + fixed (float* pvalues = &values) { - string ret = Utils.DecodeStringUTF8(ImStrSkipBlankNative((byte*)pstr)); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + } } } - [NativeName(NativeNameType.Func, "igImStrSkipBlank")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImStrSkipBlank([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* poverlayText = &overlayText) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); } - else + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* ret = ImStrSkipBlankNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } } - return ret; } - [NativeName(NativeNameType.Func, "igImStrSkipBlank")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImStrSkipBlankS([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* poverlayText = &overlayText) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - else + } + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImStrSkipBlankNative(pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + } } - return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImToUpper")] - [return: NativeName(NativeNameType.Type, "char")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImToUpper")] - internal static extern byte ImToUpperNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c); - - [NativeName(NativeNameType.Func, "igImToUpper")] - [return: NativeName(NativeNameType.Type, "char")] - public static byte ImToUpper([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, int stride) { - byte ret = ImToUpperNative(c); - return ret; + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + } + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImCharIsBlankA")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImCharIsBlankA")] - internal static extern byte ImCharIsBlankANative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c); - - [NativeName(NativeNameType.Func, "igImCharIsBlankA")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImCharIsBlankA([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "char")] byte c) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) { - byte ret = ImCharIsBlankANative(c); - return ret != 0; + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImCharIsBlankW")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImCharIsBlankW")] - internal static extern byte ImCharIsBlankWNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "unsigned int")] uint c); - - [NativeName(NativeNameType.Func, "igImCharIsBlankW")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImCharIsBlankW([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "unsigned int")] uint c) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize, int stride) { - byte ret = ImCharIsBlankWNative(c); - return ret != 0; + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFormatString")] - internal static extern int ImFormatStringNative([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, Vector2 graphSize, int stride) + { + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + } + } + } - [NativeName(NativeNameType.Func, "igImFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize, int stride) { - int ret = ImFormatStringNative(buf, bufSize, fmt); - return ret; + fixed (float* pvalues = &values) + { + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize, stride); + } + } } - [NativeName(NativeNameType.Func, "igImFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (byte* pbuf = &buf) + fixed (float* pvalues = &values) { - int ret = ImFormatStringNative((byte*)pbuf, bufSize, fmt); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize, stride); + } } } - [NativeName(NativeNameType.Func, "igImFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - int ret = ImFormatStringNative(pStr0, bufSize, fmt); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - return ret; } - [NativeName(NativeNameType.Func, "igImFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) { - fixed (byte* pfmt = &fmt) + fixed (float* pvalues = &values) { - int ret = ImFormatStringNative(buf, bufSize, (byte*)pfmt); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igImFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - int ret = ImFormatStringNative(buf, bufSize, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText) + { + fixed (float* pvalues = &values) { - Utils.Free(pStr0); + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - return ret; } - [NativeName(NativeNameType.Func, "igImFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText) { - fixed (byte* pbuf = &buf) + fixed (float* pvalues = &values) { - fixed (byte* pfmt = &fmt) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - int ret = ImFormatStringNative((byte*)pbuf, bufSize, (byte*)pfmt); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igImFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax) + { + fixed (float* pvalues = &values) { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - int ret = ImFormatStringNative(pStr0, bufSize, pStr1); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImFormatStringV")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFormatStringV")] - internal static extern int ImFormatStringVNative([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); - - [NativeName(NativeNameType.Func, "igImFormatStringV")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatStringV([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) - { - int ret = ImFormatStringVNative(buf, bufSize, fmt, args); - return ret; } - [NativeName(NativeNameType.Func, "igImFormatStringV")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatStringV([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) { - fixed (byte* pbuf = &buf) + fixed (float* pvalues = &values) { - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, fmt, args); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igImFormatStringV")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatStringV([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImFormatStringVNative(pStr0, bufSize, fmt, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFormatStringV")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatStringV([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize) { - fixed (byte* pfmt = &fmt) + fixed (float* pvalues = &values) { - int ret = ImFormatStringVNative(buf, bufSize, (byte*)pfmt, args); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igImFormatStringV")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatStringV([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - int ret = ImFormatStringVNative(buf, bufSize, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; } - [NativeName(NativeNameType.Func, "igImFormatStringV")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatStringV([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (byte* pbuf = &buf) + fixed (float* pvalues = &values) { - fixed (byte* pfmt = &fmt) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - int ret = ImFormatStringVNative((byte*)pbuf, bufSize, (byte*)pfmt, args); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, (int)(sizeof(float))); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igImFormatStringV")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImFormatStringV([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmt != null) + } + + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, int stride) + { + fixed (float* pvalues = &values) { - pStrSize1 = Utils.GetByteCountUTF8(fmt); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(fmt, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImFormatStringVNative(pStr0, bufSize, pStr1, args); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFormatStringToTempBuffer")] - internal static extern void ImFormatStringToTempBufferNative([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); - - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - ImFormatStringToTempBufferNative(outBuf, outBufEnd, fmt); } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, int stride) { - fixed (byte** poutBuf = &outBuf) + fixed (float* pvalues = &values) { - ImFormatStringToTempBufferNative((byte**)poutBuf, outBufEnd, fmt); + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, int stride) { - fixed (byte** poutBufEnd = &outBufEnd) + fixed (float* pvalues = &values) { - ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, fmt); + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, int stride) { - fixed (byte** poutBuf = &outBuf) + fixed (float* pvalues = &values) { - fixed (byte** poutBufEnd = &outBufEnd) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - ImFormatStringToTempBufferNative((byte**)poutBuf, (byte**)poutBufEnd, fmt); + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, int stride) { - fixed (byte* pfmt = &fmt) + fixed (float* pvalues = &values) { - ImFormatStringToTempBufferNative(outBuf, outBufEnd, (byte*)pfmt); + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0)), stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize, int stride) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) + fixed (float* pvalues = &values) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferNative(outBuf, outBufEnd, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize, int stride) { - fixed (byte** poutBuf = &outBuf) + fixed (float* pvalues = &values) { - fixed (byte* pfmt = &fmt) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) { - ImFormatStringToTempBufferNative((byte**)poutBuf, outBufEnd, (byte*)pfmt); + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, Vector2 graphSize, int stride) { - fixed (byte** poutBuf = &outBuf) + fixed (float* pvalues = &values) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmt != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204052,10 +43072,10 @@ public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImFormatStringToTempBufferNative((byte**)poutBuf, outBufEnd, pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -204063,30 +43083,44 @@ public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize, int stride) { - fixed (byte** poutBufEnd = &outBufEnd) + fixed (float* pvalues = &values) { - fixed (byte* pfmt = &fmt) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize, stride); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static void PlotHistogram( byte* label, ref float values, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize, int stride) { - fixed (byte** poutBufEnd = &outBufEnd) + fixed (float* pvalues = &values) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmt != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204096,10 +43130,10 @@ public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, pStr0); + PlotHistogramNative(label, (float*)pvalues, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize, stride); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -204107,335 +43141,236 @@ public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPlotHistogram_FnFloatPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PlotHistogramNative(byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize); + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, Vector2 graphSize) { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferNative((byte**)poutBuf, (byte**)poutBufEnd, (byte*)pfmt); - } - } - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, (float)(float.MaxValue), graphSize); } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBuffer([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, Vector2 graphSize) { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferNative((byte**)poutBuf, (byte**)poutBufEnd, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFormatStringToTempBufferV")] - internal static extern void ImFormatStringToTempBufferVNative([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, Vector2 graphSize) { - ImFormatStringToTempBufferVNative(outBuf, outBufEnd, fmt, args); + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), (float)(float.MaxValue), (float)(float.MaxValue), graphSize); } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, Vector2 graphSize) { - fixed (byte** poutBuf = &outBuf) - { - ImFormatStringToTempBufferVNative((byte**)poutBuf, outBufEnd, fmt, args); - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, Vector2 graphSize) { - fixed (byte** poutBufEnd = &outBufEnd) - { - ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, fmt, args); - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, Vector2 graphSize) { - fixed (byte** poutBuf = &outBuf) - { - fixed (byte** poutBufEnd = &outBufEnd) - { - ImFormatStringToTempBufferVNative((byte**)poutBuf, (byte**)poutBufEnd, fmt, args); - } - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, (float)(float.MaxValue), graphSize); } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, Vector2 graphSize) { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferVNative(outBuf, outBufEnd, (byte*)pfmt, args); - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, (float)(float.MaxValue), graphSize); } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, Vector2 graphSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)(default), scaleMin, scaleMax, graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)(default), scaleMin, scaleMax, graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, byte* overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), overlayText, scaleMin, scaleMax, graphSize); + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) + { + fixed (byte* poverlayText = &overlayText) { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, graphSize); } - ImFormatStringToTempBufferVNative(outBuf, outBufEnd, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax) + { + fixed (byte* poverlayText = &overlayText) { - Utils.Free(pStr0); + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin) { - fixed (byte** poutBuf = &outBuf) + fixed (byte* poverlayText = &overlayText) { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferVNative((byte**)poutBuf, outBufEnd, (byte*)pfmt, args); - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] byte** outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText) { - fixed (byte** poutBuf = &outBuf) + fixed (byte* poverlayText = &overlayText) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferVNative((byte**)poutBuf, outBufEnd, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText) { - fixed (byte** poutBufEnd = &outBufEnd) + fixed (byte* poverlayText = &overlayText) { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt, args); - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] byte** outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin) { - fixed (byte** poutBufEnd = &outBufEnd) + fixed (byte* poverlayText = &overlayText) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax) { - fixed (byte** poutBuf = &outBuf) + fixed (byte* poverlayText = &overlayText) { - fixed (byte** poutBufEnd = &outBufEnd) - { - fixed (byte* pfmt = &fmt) - { - ImFormatStringToTempBufferVNative((byte**)poutBuf, (byte**)poutBufEnd, (byte*)pfmt, args); - } - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); } } - [NativeName(NativeNameType.Func, "igImFormatStringToTempBufferV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFormatStringToTempBufferV([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_end")] [NativeName(NativeNameType.Type, "const char**")] ref byte* outBufEnd, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, Vector2 graphSize) { - fixed (byte** poutBuf = &outBuf) + fixed (byte* poverlayText = &overlayText) { - fixed (byte** poutBufEnd = &outBufEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFormatStringToTempBufferVNative((byte**)poutBuf, (byte**)poutBufEnd, pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImParseFormatFindStart")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImParseFormatFindStart")] - internal static extern byte* ImParseFormatFindStartNative([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format); - - [NativeName(NativeNameType.Func, "igImParseFormatFindStart")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatFindStart([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, Vector2 graphSize) { - byte* ret = ImParseFormatFindStartNative(format); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } } - [NativeName(NativeNameType.Func, "igImParseFormatFindStart")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatFindStartS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, Vector2 graphSize) { - string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative(format)); - return ret; + fixed (byte* poverlayText = &overlayText) + { + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + } } - [NativeName(NativeNameType.Func, "igImParseFormatFindStart")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatFindStart([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, Vector2 graphSize) { - fixed (byte* pformat = &format) + fixed (byte* poverlayText = &overlayText) { - byte* ret = ImParseFormatFindStartNative((byte*)pformat); - return ret; + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, (float)(float.MaxValue), graphSize); } } - [NativeName(NativeNameType.Func, "igImParseFormatFindStart")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatFindStartS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, ref byte overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (byte* pformat = &format) + fixed (byte* poverlayText = &overlayText) { - string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative((byte*)pformat)); - return ret; + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), (byte*)poverlayText, scaleMin, scaleMax, graphSize); } } - [NativeName(NativeNameType.Func, "igImParseFormatFindStart")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatFindStart([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204445,26 +43380,23 @@ public static string ImParseFormatFindStartS([NativeName(NativeNameType.Param, " byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = ImParseFormatFindStartNative(pStr0); + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, graphSize); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatFindStart")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatFindStartS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204474,72 +43406,49 @@ public static string ImParseFormatFindStartS([NativeName(NativeNameType.Param, " byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative(pStr0)); + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImParseFormatFindEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImParseFormatFindEnd")] - internal static extern byte* ImParseFormatFindEndNative([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format); - - [NativeName(NativeNameType.Func, "igImParseFormatFindEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatFindEnd([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - byte* ret = ImParseFormatFindEndNative(format); - return ret; - } - - [NativeName(NativeNameType.Func, "igImParseFormatFindEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatFindEndS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative(format)); - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatFindEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatFindEnd([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - byte* ret = ImParseFormatFindEndNative((byte*)pformat); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igImParseFormatFindEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatFindEndS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) - { - fixed (byte* pformat = &format) + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative((byte*)pformat)); - return ret; + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImParseFormatFindEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatFindEnd([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204549,26 +43458,23 @@ public static string ImParseFormatFindEndS([NativeName(NativeNameType.Param, "fo byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = ImParseFormatFindEndNative(pStr0); + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatFindEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatFindEndS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204578,72 +43484,49 @@ public static string ImParseFormatFindEndS([NativeName(NativeNameType.Param, "fo byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative(pStr0)); + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImParseFormatTrimDecorations")] - internal static extern byte* ImParseFormatTrimDecorationsNative([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize); - - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatTrimDecorations([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - byte* ret = ImParseFormatTrimDecorationsNative(format, buf, bufSize); - return ret; - } - - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, buf, bufSize)); - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatTrimDecorations([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* pformat = &format) + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), (Vector2)(new Vector2(0,0))); + if (pStrSize0 >= Utils.MaxStackallocSize) { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, buf, bufSize)); - return ret; + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatTrimDecorations([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204653,26 +43536,23 @@ public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Pa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = ImParseFormatTrimDecorationsNative(pStr0, buf, bufSize); + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, (Vector2)(new Vector2(0,0))); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204682,48 +43562,49 @@ public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Pa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, buf, bufSize)); + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, scaleMin, (float)(float.MaxValue), graphSize); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatTrimDecorations([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, Vector2 graphSize) { - fixed (byte* pbuf = &buf) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - byte* ret = ImParseFormatTrimDecorationsNative(format, (byte*)pbuf, bufSize); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) - { - fixed (byte* pbuf = &buf) + PlotHistogramNative(label, valuesGetter, data, valuesCount, valuesOffset, pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, (byte*)pbuf, bufSize)); - return ret; + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatTrimDecorations([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (buf != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(buf); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204733,27 +43614,23 @@ public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Pa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = ImParseFormatTrimDecorationsNative(format, pStr0, bufSize); - buf = Utils.DecodeStringUTF8(pStr0); + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, (float)(float.MaxValue), (float)(float.MaxValue), graphSize); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, Vector2 graphSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (buf != null) + if (overlayText != null) { - pStrSize0 = Utils.GetByteCountUTF8(buf); + pStrSize0 = Utils.GetByteCountUTF8(overlayText); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204763,55 +43640,110 @@ public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Pa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(format, pStr0, bufSize)); - buf = Utils.DecodeStringUTF8(pStr0); + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, (float)(float.MaxValue), graphSize); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatTrimDecorations([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) + public static void PlotHistogram( byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, string overlayText, float scaleMin, float scaleMax, Vector2 graphSize) { - fixed (byte* pformat = &format) + byte* pStr0 = null; + int pStrSize0 = 0; + if (overlayText != null) { - fixed (byte* pbuf = &buf) + pStrSize0 = Utils.GetByteCountUTF8(overlayText); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* ret = ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize); - return ret; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(overlayText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PlotHistogramNative(label, valuesGetter, data, valuesCount, (int)(0), pStr0, scaleMin, scaleMax, graphSize); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igValue_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ValueNative(byte* prefix, byte b); + + public static void Value( byte* prefix, bool b) + { + ValueNative(prefix, b ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igValue_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ValueNative(byte* prefix, int v); + + public static void Value( byte* prefix, int v) { - fixed (byte* pformat = &format) + ValueNative(prefix, v); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igValue_Uint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ValueNative(byte* prefix, uint v); + + public static void Value( byte* prefix, uint v) + { + ValueNative(prefix, v); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igValue_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ValueNative(byte* prefix, float v, byte* floatFormat); + + public static void Value( byte* prefix, float v, byte* floatFormat) + { + ValueNative(prefix, v, floatFormat); + } + + public static void Value( byte* prefix, float v) + { + ValueNative(prefix, v, (byte*)(default)); + } + + public static void Value( byte* prefix, float v, ref byte floatFormat) + { + fixed (byte* pfloatFormat = &floatFormat) { - fixed (byte* pbuf = &buf) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative((byte*)pformat, (byte*)pbuf, bufSize)); - return ret; - } + ValueNative(prefix, v, (byte*)pfloatFormat); } } - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatTrimDecorations([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) + public static void Value( byte* prefix, float v, string floatFormat) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (floatFormat != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(floatFormat); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204821,124 +43753,174 @@ public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Pa byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(floatFormat, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImParseFormatTrimDecorationsNative(pStr0, pStr1, bufSize); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + ValueNative(prefix, v, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatTrimDecorations")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatTrimDecorationsS([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "size_t")] nuint bufSize) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginMenuBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginMenuBarNative(); + + public static bool BeginMenuBar() + { + byte ret = BeginMenuBarNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndMenuBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndMenuBarNative(); + + public static void EndMenuBar() + { + EndMenuBarNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginMainMenuBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginMainMenuBarNative(); + + public static bool BeginMainMenuBar() + { + byte ret = BeginMainMenuBarNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndMainMenuBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndMainMenuBarNative(); + + public static void EndMainMenuBar() + { + EndMainMenuBarNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginMenu")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginMenuNative(byte* label, byte enabled); + + public static bool BeginMenu( byte* label, bool enabled) + { + byte ret = BeginMenuNative(label, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool BeginMenu( byte* label) + { + byte ret = BeginMenuNative(label, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndMenu")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndMenuNative(); + + public static void EndMenu() + { + EndMenuNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMenuItem_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte MenuItemNative(byte* label, byte* shortcut, byte selected, byte enabled); + + public static bool MenuItem( byte* label, byte* shortcut, bool selected, bool enabled) + { + byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool MenuItem( byte* label, byte* shortcut, bool selected) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatTrimDecorationsNative(pStr0, pStr1, bufSize)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + byte ret = MenuItemNative(label, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + + public static bool MenuItem( byte* label, byte* shortcut) + { + byte ret = MenuItemNative(label, shortcut, (byte)(0), (byte)(1)); + return ret != 0; + } + + public static bool MenuItem( byte* label) + { + byte ret = MenuItemNative(label, (byte*)(default), (byte)(0), (byte)(1)); + return ret != 0; + } + + public static bool MenuItem( byte* label, bool selected) + { + byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } + + public static bool MenuItem( byte* label, bool selected, bool enabled) + { + byte ret = MenuItemNative(label, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool MenuItem( byte* label, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* pshortcut = &shortcut) { - Utils.Free(pStr0); + byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; } - return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForPrinting")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImParseFormatSanitizeForPrinting")] - internal static extern void ImParseFormatSanitizeForPrintingNative([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] byte* fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] byte* fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize); - - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForPrinting")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImParseFormatSanitizeForPrinting([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] byte* fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] byte* fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, ref byte shortcut, bool selected) { - ImParseFormatSanitizeForPrintingNative(fmtIn, fmtOut, fmtOutSize); + fixed (byte* pshortcut = &shortcut) + { + byte ret = MenuItemNative(label, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); + return ret != 0; + } } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForPrinting")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImParseFormatSanitizeForPrinting([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] byte* fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, ref byte shortcut) { - fixed (byte* pfmtIn = &fmtIn) + fixed (byte* pshortcut = &shortcut) { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, fmtOut, fmtOutSize); + byte ret = MenuItemNative(label, (byte*)pshortcut, (byte)(0), (byte)(1)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForPrinting")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImParseFormatSanitizeForPrinting([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] string fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] byte* fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, string shortcut, bool selected, bool enabled) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmtIn != null) + if (shortcut != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204948,35 +43930,24 @@ public static void ImParseFormatSanitizeForPrinting([NativeName(NativeNameType.P byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImParseFormatSanitizeForPrintingNative(pStr0, fmtOut, fmtOutSize); + byte ret = MenuItemNative(label, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForPrinting")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImParseFormatSanitizeForPrinting([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] byte* fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref byte fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative(fmtIn, (byte*)pfmtOut, fmtOutSize); - } - } - - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForPrinting")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImParseFormatSanitizeForPrinting([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] byte* fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref string fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, string shortcut, bool selected) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmtOut != null) + if (shortcut != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -204986,39 +43957,24 @@ public static void ImParseFormatSanitizeForPrinting([NativeName(NativeNameType.P byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImParseFormatSanitizeForPrintingNative(fmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); + byte ret = MenuItemNative(label, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForPrinting")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImParseFormatSanitizeForPrinting([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref byte fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) - { - fixed (byte* pfmtIn = &fmtIn) - { - fixed (byte* pfmtOut = &fmtOut) - { - ImParseFormatSanitizeForPrintingNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - } - } - } - - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForPrinting")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImParseFormatSanitizeForPrinting([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] string fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref string fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, string shortcut) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmtIn != null) + if (shortcut != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -205028,93 +43984,61 @@ public static void ImParseFormatSanitizeForPrinting([NativeName(NativeNameType.P byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImParseFormatSanitizeForPrintingNative(pStr0, pStr1, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = MenuItemNative(label, pStr0, (byte)(0), (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImParseFormatSanitizeForScanning")] - internal static extern byte* ImParseFormatSanitizeForScanningNative([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] byte* fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] byte* fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize); + [LibraryImport(LibName, EntryPoint = "igMenuItem_BoolPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte MenuItemNative(byte* label, byte* shortcut, byte* pSelected, byte enabled); - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatSanitizeForScanning([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] byte* fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] byte* fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, byte* shortcut, byte* pSelected, bool enabled) { - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize); - return ret; + byte ret = MenuItemNative(label, shortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatSanitizeForScanningS([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] byte* fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] byte* fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, byte* shortcut, byte* pSelected) { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize)); - return ret; + byte ret = MenuItemNative(label, shortcut, pSelected, (byte)(1)); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatSanitizeForScanning([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] byte* fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, ref byte shortcut, byte* pSelected, bool enabled) { - fixed (byte* pfmtIn = &fmtIn) + fixed (byte* pshortcut = &shortcut) { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize); - return ret; + byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatSanitizeForScanningS([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] byte* fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, ref byte shortcut, byte* pSelected) { - fixed (byte* pfmtIn = &fmtIn) + fixed (byte* pshortcut = &shortcut) { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, fmtOut, fmtOutSize)); - return ret; + byte ret = MenuItemNative(label, (byte*)pshortcut, pSelected, (byte)(1)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatSanitizeForScanning([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] string fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] byte* fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, string shortcut, byte* pSelected, bool enabled) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmtIn != null) + if (shortcut != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -205124,26 +44048,24 @@ public static string ImParseFormatSanitizeForScanningS([NativeName(NativeNameTyp byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, fmtOut, fmtOutSize); + byte ret = MenuItemNative(label, pStr0, pSelected, enabled ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatSanitizeForScanningS([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] string fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] byte* fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, string shortcut, byte* pSelected) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmtIn != null) + if (shortcut != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -205153,136 +44075,66 @@ public static string ImParseFormatSanitizeForScanningS([NativeName(NativeNameTyp byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, fmtOut, fmtOutSize)); + byte ret = MenuItemNative(label, pStr0, pSelected, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatSanitizeForScanning([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] byte* fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref byte fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatSanitizeForScanningS([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] byte* fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref byte fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) - { - fixed (byte* pfmtOut = &fmtOut) - { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize)); - return ret; - } + return ret != 0; } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatSanitizeForScanning([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] byte* fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref string fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, byte* shortcut, ref byte pSelected, bool enabled) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ppSelected = &pSelected) { - Utils.Free(pStr0); + byte ret = MenuItemNative(label, shortcut, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatSanitizeForScanningS([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] byte* fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref string fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, byte* shortcut, ref byte pSelected) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmtOut != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ppSelected = &pSelected) { - Utils.Free(pStr0); + byte ret = MenuItemNative(label, shortcut, (byte*)ppSelected, (byte)(1)); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatSanitizeForScanning([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref byte fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, ref byte shortcut, ref byte pSelected, bool enabled) { - fixed (byte* pfmtIn = &fmtIn) + fixed (byte* pshortcut = &shortcut) { - fixed (byte* pfmtOut = &fmtOut) + fixed (byte* ppSelected = &pSelected) { - byte* ret = ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize); - return ret; + byte ret = MenuItemNative(label, (byte*)pshortcut, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatSanitizeForScanningS([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref byte fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, ref byte shortcut, ref byte pSelected) { - fixed (byte* pfmtIn = &fmtIn) + fixed (byte* pshortcut = &shortcut) { - fixed (byte* pfmtOut = &fmtOut) + fixed (byte* ppSelected = &pSelected) { - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative((byte*)pfmtIn, (byte*)pfmtOut, fmtOutSize)); - return ret; + byte ret = MenuItemNative(label, (byte*)pshortcut, (byte*)ppSelected, (byte)(1)); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImParseFormatSanitizeForScanning([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] string fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref string fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, string shortcut, ref byte pSelected, bool enabled) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmtIn != null) + if (shortcut != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -205292,48 +44144,27 @@ public static string ImParseFormatSanitizeForScanningS([NativeName(NativeNameTyp byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) + fixed (byte* ppSelected = &pSelected) { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + byte ret = MenuItemNative(label, pStr0, (byte*)ppSelected, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = ImParseFormatSanitizeForScanningNative(pStr0, pStr1, fmtOutSize); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret; } - [NativeName(NativeNameType.Func, "igImParseFormatSanitizeForScanning")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImParseFormatSanitizeForScanningS([NativeName(NativeNameType.Param, "fmt_in")] [NativeName(NativeNameType.Type, "const char*")] string fmtIn, [NativeName(NativeNameType.Param, "fmt_out")] [NativeName(NativeNameType.Type, "char*")] ref string fmtOut, [NativeName(NativeNameType.Param, "fmt_out_size")] [NativeName(NativeNameType.Type, "size_t")] nuint fmtOutSize) + public static bool MenuItem( byte* label, string shortcut, ref byte pSelected) { byte* pStr0 = null; int pStrSize0 = 0; - if (fmtIn != null) + if (shortcut != null) { - pStrSize0 = Utils.GetByteCountUTF8(fmtIn); + pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -205343,963 +44174,683 @@ public static string ImParseFormatSanitizeForScanningS([NativeName(NativeNameTyp byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(fmtIn, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (fmtOut != null) + fixed (byte* ppSelected = &pSelected) { - pStrSize1 = Utils.GetByteCountUTF8(fmtOut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + byte ret = MenuItemNative(label, pStr0, (byte*)ppSelected, (byte)(1)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(fmtOut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(pStr0, pStr1, fmtOutSize)); - fmtOut = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret != 0; } - return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImParseFormatPrecision")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImParseFormatPrecision")] - internal static extern int ImParseFormatPrecisionNative([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "default_value")] [NativeName(NativeNameType.Type, "int")] int defaultValue); + [LibraryImport(LibName, EntryPoint = "igBeginTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTooltipNative(); - [NativeName(NativeNameType.Func, "igImParseFormatPrecision")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImParseFormatPrecision([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "default_value")] [NativeName(NativeNameType.Type, "int")] int defaultValue) + public static bool BeginTooltip() { - int ret = ImParseFormatPrecisionNative(format, defaultValue); - return ret; + byte ret = BeginTooltipNative(); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImParseFormatPrecision")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImParseFormatPrecision([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "default_value")] [NativeName(NativeNameType.Type, "int")] int defaultValue) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndTooltipNative(); + + public static void EndTooltip() { - fixed (byte* pformat = &format) - { - int ret = ImParseFormatPrecisionNative((byte*)pformat, defaultValue); - return ret; - } + EndTooltipNative(); } - [NativeName(NativeNameType.Func, "igImParseFormatPrecision")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImParseFormatPrecision([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "default_value")] [NativeName(NativeNameType.Type, "int")] int defaultValue) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetTooltipNative(byte* fmt); + + public static void SetTooltip( byte* fmt) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (format != null) - { - pStrSize0 = Utils.GetByteCountUTF8(format); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImParseFormatPrecisionNative(pStr0, defaultValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + SetTooltipNative(fmt); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImTextCharToUtf8")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImTextCharToUtf8")] - internal static extern byte* ImTextCharToUtf8Native([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char[5]")] byte* outBuf, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "unsigned int")] uint c); + [LibraryImport(LibName, EntryPoint = "igSetTooltipV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetTooltipVNative(byte* fmt, nuint args); - /// /// return out_buf /// [NativeName(NativeNameType.Func, "igImTextCharToUtf8")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImTextCharToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char[5]")] byte* outBuf, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "unsigned int")] uint c) + public static void SetTooltipV( byte* fmt, nuint args) { - byte* ret = ImTextCharToUtf8Native(outBuf, c); - return ret; + SetTooltipVNative(fmt, args); } - /// /// return out_buf /// [NativeName(NativeNameType.Func, "igImTextCharToUtf8")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImTextCharToUtf8S([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char[5]")] byte* outBuf, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "unsigned int")] uint c) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginItemTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginItemTooltipNative(); + + public static bool BeginItemTooltip() { - string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native(outBuf, c)); - return ret; + byte ret = BeginItemTooltipNative(); + return ret != 0; } - /// /// return out_buf /// [NativeName(NativeNameType.Func, "igImTextCharToUtf8")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* ImTextCharToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char[5]")] ref byte outBuf, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "unsigned int")] uint c) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetItemTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetItemTooltipNative(byte* fmt); + + public static void SetItemTooltip( byte* fmt) { - fixed (byte* poutBuf = &outBuf) - { - byte* ret = ImTextCharToUtf8Native((byte*)poutBuf, c); - return ret; - } + SetItemTooltipNative(fmt); } - /// /// return out_buf /// [NativeName(NativeNameType.Func, "igImTextCharToUtf8")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string ImTextCharToUtf8S([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char[5]")] ref byte outBuf, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "unsigned int")] uint c) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetItemTooltipV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetItemTooltipVNative(byte* fmt, nuint args); + + public static void SetItemTooltipV( byte* fmt, nuint args) { - fixed (byte* poutBuf = &outBuf) - { - string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native((byte*)poutBuf, c)); - return ret; - } + SetItemTooltipVNative(fmt, args); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImTextStrToUtf8")] - internal static extern int ImTextStrToUtf8Native([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inTextEnd); + [LibraryImport(LibName, EntryPoint = "igBeginPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupNative(byte* strId, int flags); - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inTextEnd) + public static bool BeginPopup( byte* strId, int flags) { - int ret = ImTextStrToUtf8Native(outBuf, outBufSize, inText, inTextEnd); - return ret; + byte ret = BeginPopupNative(strId, flags); + return ret != 0; } - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] ref byte outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inTextEnd) + public static bool BeginPopup( byte* strId) { - fixed (byte* poutBuf = &outBuf) - { - int ret = ImTextStrToUtf8Native((byte*)poutBuf, outBufSize, inText, inTextEnd); - return ret; - } + byte ret = BeginPopupNative(strId, (int)(0)); + return ret != 0; } - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] ref string outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginPopupModal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupModalNative(byte* name, byte* pOpen, int flags); + + public static bool BeginPopupModal( byte* name, byte* pOpen, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (outBuf != null) + byte ret = BeginPopupModalNative(name, pOpen, flags); + return ret != 0; + } + + public static bool BeginPopupModal( byte* name, byte* pOpen) + { + byte ret = BeginPopupModalNative(name, pOpen, (int)(0)); + return ret != 0; + } + + public static bool BeginPopupModal( byte* name) + { + byte ret = BeginPopupModalNative(name, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool BeginPopupModal( byte* name, int flags) + { + byte ret = BeginPopupModalNative(name, (byte*)(default), flags); + return ret != 0; + } + + public static bool BeginPopupModal( byte* name, ref byte pOpen, int flags) + { + fixed (byte* ppOpen = &pOpen) { - pStrSize0 = Utils.GetByteCountUTF8(outBuf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(outBuf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = BeginPopupModalNative(name, (byte*)ppOpen, flags); + return ret != 0; } - int ret = ImTextStrToUtf8Native(pStr0, outBufSize, inText, inTextEnd); - outBuf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool BeginPopupModal( byte* name, ref byte pOpen) + { + fixed (byte* ppOpen = &pOpen) { - Utils.Free(pStr0); + byte ret = BeginPopupModalNative(name, (byte*)ppOpen, (int)(0)); + return ret != 0; } - return ret; } - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndPopupNative(); + + public static void EndPopup() + { + EndPopupNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igOpenPopup_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void OpenPopupNative(byte* strId, int popupFlags); + + public static void OpenPopup( byte* strId, int popupFlags) + { + OpenPopupNative(strId, popupFlags); + } + + public static void OpenPopup( byte* strId) + { + OpenPopupNative(strId, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igOpenPopup_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void OpenPopupNative(uint id, int popupFlags); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igOpenPopupOnItemClick")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void OpenPopupOnItemClickNative(byte* strId, int popupFlags); + + public static void OpenPopupOnItemClick( byte* strId, int popupFlags) + { + OpenPopupOnItemClickNative(strId, popupFlags); + } + + public static void OpenPopupOnItemClick( byte* strId) + { + OpenPopupOnItemClickNative(strId, (int)(1)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCloseCurrentPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CloseCurrentPopupNative(); + + public static void CloseCurrentPopup() + { + CloseCurrentPopupNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginPopupContextItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupContextItemNative(byte* strId, int popupFlags); + + public static bool BeginPopupContextItem( byte* strId, int popupFlags) + { + byte ret = BeginPopupContextItemNative(strId, popupFlags); + return ret != 0; + } + + public static bool BeginPopupContextItem( byte* strId) + { + byte ret = BeginPopupContextItemNative(strId, (int)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginPopupContextWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupContextWindowNative(byte* strId, int popupFlags); + + public static bool BeginPopupContextWindow( byte* strId, int popupFlags) + { + byte ret = BeginPopupContextWindowNative(strId, popupFlags); + return ret != 0; + } + + public static bool BeginPopupContextWindow( byte* strId) + { + byte ret = BeginPopupContextWindowNative(strId, (int)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginPopupContextVoid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupContextVoidNative(byte* strId, int popupFlags); + + public static bool BeginPopupContextVoid( byte* strId, int popupFlags) + { + byte ret = BeginPopupContextVoidNative(strId, popupFlags); + return ret != 0; + } + + public static bool BeginPopupContextVoid( byte* strId) + { + byte ret = BeginPopupContextVoidNative(strId, (int)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsPopupOpen_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsPopupOpenNative(byte* strId, int flags); + + public static bool IsPopupOpen( byte* strId, int flags) + { + byte ret = IsPopupOpenNative(strId, flags); + return ret != 0; + } + + public static bool IsPopupOpen( byte* strId) { - fixed (char* pinText = &inText) - { - int ret = ImTextStrToUtf8Native(outBuf, outBufSize, (char*)pinText, inTextEnd); - return ret; - } + byte ret = IsPopupOpenNative(strId, (int)(0)); + return ret != 0; } - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] ref byte outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTableNative(byte* strId, int column, int flags, Vector2 outerSize, float innerWidth); + + public static bool BeginTable( byte* strId, int column, int flags, Vector2 outerSize, float innerWidth) { - fixed (byte* poutBuf = &outBuf) - { - fixed (char* pinText = &inText) - { - int ret = ImTextStrToUtf8Native((byte*)poutBuf, outBufSize, (char*)pinText, inTextEnd); - return ret; - } - } + byte ret = BeginTableNative(strId, column, flags, outerSize, innerWidth); + return ret != 0; } - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] ref string outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inTextEnd) + public static bool BeginTable( byte* strId, int column, int flags, Vector2 outerSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (outBuf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(outBuf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(outBuf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (char* pinText = &inText) - { - int ret = ImTextStrToUtf8Native(pStr0, outBufSize, (char*)pinText, inTextEnd); - outBuf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + byte ret = BeginTableNative(strId, column, flags, outerSize, (float)(0.0f)); + return ret != 0; } - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inTextEnd) + public static bool BeginTable( byte* strId, int column, int flags) { - fixed (char* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native(outBuf, outBufSize, inText, (char*)pinTextEnd); - return ret; - } + byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + return ret != 0; } - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] ref byte outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inTextEnd) + public static bool BeginTable( byte* strId, int column) { - fixed (byte* poutBuf = &outBuf) - { - fixed (char* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native((byte*)poutBuf, outBufSize, inText, (char*)pinTextEnd); - return ret; - } - } + byte ret = BeginTableNative(strId, column, (int)(0), (Vector2)(new Vector2(0.0f,0.0f)), (float)(0.0f)); + return ret != 0; } - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] ref string outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inTextEnd) + public static bool BeginTable( byte* strId, int column, Vector2 outerSize) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (outBuf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(outBuf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(outBuf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (char* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native(pStr0, outBufSize, inText, (char*)pinTextEnd); - outBuf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + byte ret = BeginTableNative(strId, column, (int)(0), outerSize, (float)(0.0f)); + return ret != 0; } - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inTextEnd) + public static bool BeginTable( byte* strId, int column, int flags, float innerWidth) { - fixed (char* pinText = &inText) - { - fixed (char* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native(outBuf, outBufSize, (char*)pinText, (char*)pinTextEnd); - return ret; - } - } + byte ret = BeginTableNative(strId, column, flags, (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + return ret != 0; } - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] ref byte outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inTextEnd) + public static bool BeginTable( byte* strId, int column, float innerWidth) { - fixed (byte* poutBuf = &outBuf) - { - fixed (char* pinText = &inText) - { - fixed (char* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native((byte*)poutBuf, outBufSize, (char*)pinText, (char*)pinTextEnd); - return ret; - } - } - } + byte ret = BeginTableNative(strId, column, (int)(0), (Vector2)(new Vector2(0.0f,0.0f)), innerWidth); + return ret != 0; } - /// /// return output UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrToUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrToUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] ref string outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inTextEnd) + public static bool BeginTable( byte* strId, int column, Vector2 outerSize, float innerWidth) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (outBuf != null) - { - pStrSize0 = Utils.GetByteCountUTF8(outBuf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(outBuf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (char* pinText = &inText) - { - fixed (char* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrToUtf8Native(pStr0, outBufSize, (char*)pinText, (char*)pinTextEnd); - outBuf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } + byte ret = BeginTableNative(strId, column, (int)(0), outerSize, innerWidth); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImTextCharFromUtf8")] - internal static extern int ImTextCharFromUtf8Native([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd); + [LibraryImport(LibName, EntryPoint = "igEndTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndTableNative(); - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + public static void EndTable() { - int ret = ImTextCharFromUtf8Native(outChar, inText, inTextEnd); - return ret; + EndTableNative(); } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableNextRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableNextRowNative(int rowFlags, float minRowHeight); + + public static void TableNextRow( int rowFlags, float minRowHeight) { - fixed (uint* poutChar = &outChar) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, inTextEnd); - return ret; - } + TableNextRowNative(rowFlags, minRowHeight); } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + public static void TableNextRow( int rowFlags) { - fixed (byte* pinText = &inText) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, inTextEnd); - return ret; - } + TableNextRowNative(rowFlags, (float)(0.0f)); } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableNextColumn")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TableNextColumnNative(); + + public static bool TableNextColumn() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, pStr0, inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + byte ret = TableNextColumnNative(); + return ret != 0; } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TableSetColumnIndexNative(int columnN); + + public static bool TableSetColumnIndex( int columnN) { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, inTextEnd); - return ret; - } - } + byte ret = TableSetColumnIndexNative(columnN); + return ret != 0; } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetupColumn")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetupColumnNative(byte* label, int flags, float initWidthOrWeight, uint userId); + + public static void TableSetupColumn( byte* label, int flags, float initWidthOrWeight, uint userId) { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + TableSetupColumnNative(label, flags, initWidthOrWeight, userId); } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + public static void TableSetupColumn( byte* label, int flags, float initWidthOrWeight) { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, inText, (byte*)pinTextEnd); - return ret; - } + TableSetupColumnNative(label, flags, initWidthOrWeight, (uint)(0)); } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + public static void TableSetupColumn( byte* label, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, inText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + TableSetupColumnNative(label, flags, (float)(0.0f), (uint)(0)); } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + public static void TableSetupColumn( byte* label) { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, (byte*)pinTextEnd); - return ret; - } - } + TableSetupColumnNative(label, (int)(0), (float)(0.0f), (uint)(0)); } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + public static void TableSetupColumn( byte* label, float initWidthOrWeight) { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, inText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + TableSetupColumnNative(label, (int)(0), initWidthOrWeight, (uint)(0)); } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + public static void TableSetupColumn( byte* label, int flags, uint userId) { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } + TableSetupColumnNative(label, flags, (float)(0.0f), userId); } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + public static void TableSetupColumn( byte* label, uint userId) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextCharFromUtf8Native(outChar, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + TableSetupColumnNative(label, (int)(0), (float)(0.0f), userId); } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + public static void TableSetupColumn( byte* label, float initWidthOrWeight, uint userId) { - fixed (uint* poutChar = &outChar) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCharFromUtf8Native((uint*)poutChar, (byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } - } + TableSetupColumnNative(label, (int)(0), initWidthOrWeight, userId); } - /// /// read one character. return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextCharFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCharFromUtf8([NativeName(NativeNameType.Param, "out_char")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint outChar, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetupScrollFreeze")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetupScrollFreezeNative(int cols, int rows); + + public static void TableSetupScrollFreeze( int cols, int rows) { - fixed (uint* poutChar = &outChar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextCharFromUtf8Native((uint*)poutChar, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + TableSetupScrollFreezeNative(cols, rows); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImTextStrFromUtf8")] - internal static extern int ImTextStrFromUtf8Native([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining); + [LibraryImport(LibName, EntryPoint = "igTableHeader")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableHeaderNative(byte* label); - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + public static void TableHeader( byte* label) { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, inRemaining); - return ret; + TableHeaderNative(label); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableHeadersRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableHeadersRowNative(); + + public static void TableHeadersRow() + { + TableHeadersRowNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableAngledHeadersRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableAngledHeadersRowNative(); + + public static void TableAngledHeadersRow() + { + TableAngledHeadersRowNative(); } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetSortSpecs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSortSpecs* TableGetSortSpecsNative(); + + public static ImGuiTableSortSpecs* TableGetSortSpecs() { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, (byte**)(default)); + ImGuiTableSortSpecs* ret = TableGetSortSpecsNative(); return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetColumnCountNative(); + + public static int TableGetColumnCount() { - fixed (char* poutBuf = &outBuf) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, inText, inTextEnd, inRemaining); - return ret; - } + int ret = TableGetColumnCountNative(); + return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetColumnIndexNative(); + + public static int TableGetColumnIndex() { - fixed (char* poutBuf = &outBuf) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, inText, inTextEnd, (byte**)(default)); - return ret; - } + int ret = TableGetColumnIndexNative(); + return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetRowIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetRowIndexNative(); + + public static int TableGetRowIndex() { - fixed (byte* pinText = &inText) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, inRemaining); - return ret; - } + int ret = TableGetRowIndexNative(); + return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnName_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* TableGetColumnNameNative(int columnN); + + public static byte* TableGetColumnName( int columnN) { - fixed (byte* pinText = &inText) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)(default)); - return ret; - } + byte* ret = TableGetColumnNameNative(columnN); + return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + public static string TableGetColumnNameS() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((int)(-1))); return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetColumnFlagsNative(int columnN); + + public static int TableGetColumnFlags( int columnN) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + int ret = TableGetColumnFlagsNative(columnN); return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnEnabled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetColumnEnabledNative(int columnN, byte v); + + public static void TableSetColumnEnabled( int columnN, bool v) { - fixed (char* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, (byte*)pinText, inTextEnd, inRemaining); - return ret; - } - } + TableSetColumnEnabledNative(columnN, v ? (byte)1 : (byte)0); } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetBgColor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetBgColorNative(int target, uint color, int columnN); + + public static void TableSetBgColor( int target, uint color, int columnN) { - fixed (char* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)(default)); - return ret; - } - } + TableSetBgColorNative(target, color, columnN); } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + public static void TableSetBgColor( int target, uint color) { - fixed (char* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, pStr0, inTextEnd, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + TableSetBgColorNative(target, color, (int)(-1)); } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColumnsNative(int count, byte* id, byte border); + + public static void Columns( int count, byte* id, bool border) { - fixed (char* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, pStr0, inTextEnd, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + ColumnsNative(count, id, border ? (byte)1 : (byte)0); } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + public static void Columns( int count, byte* id) { - fixed (byte* pinTextEnd = &inTextEnd) + ColumnsNative(count, id, (byte)(1)); + } + + public static void Columns( int count) + { + ColumnsNative(count, (byte*)(default), (byte)(1)); + } + + public static void Columns( int count, bool border) + { + ColumnsNative(count, (byte*)(default), border ? (byte)1 : (byte)0); + } + + public static void Columns( int count, ref byte id, bool border) + { + fixed (byte* pid = &id) { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, inRemaining); - return ret; + ColumnsNative(count, (byte*)pid, border ? (byte)1 : (byte)0); } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + public static void Columns( int count, ref byte id) { - fixed (byte* pinTextEnd = &inTextEnd) + fixed (byte* pid = &id) { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)(default)); - return ret; + ColumnsNative(count, (byte*)pid, (byte)(1)); } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + public static void Columns( int count, string id, bool border) { byte* pStr0 = null; int pStrSize0 = 0; - if (inTextEnd != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -206309,26 +44860,23 @@ public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf") byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, inRemaining); + ColumnsNative(count, pStr0, border ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + public static void Columns( int count, string id) { byte* pStr0 = null; int pStrSize0 = 0; - if (inTextEnd != null) + if (id != null) { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + pStrSize0 = Utils.GetByteCountUTF8(id); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -206338,425 +44886,466 @@ public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf") byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(id, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, (byte**)(default)); + ColumnsNative(count, pStr0, (byte)(1)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNextColumn")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NextColumnNative(); + + public static void NextColumn() + { + NextColumnNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetColumnIndexNative(); + + public static int GetColumnIndex() + { + int ret = GetColumnIndexNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetColumnWidthNative(int columnIndex); + + public static float GetColumnWidth( int columnIndex) + { + float ret = GetColumnWidthNative(columnIndex); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetColumnWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetColumnWidthNative(int columnIndex, float width); + + public static void SetColumnWidth( int columnIndex, float width) + { + SetColumnWidthNative(columnIndex, width); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetColumnOffsetNative(int columnIndex); + + public static float GetColumnOffset( int columnIndex) + { + float ret = GetColumnOffsetNative(columnIndex); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetColumnOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetColumnOffsetNative(int columnIndex, float offsetX); + + public static void SetColumnOffset( int columnIndex, float offsetX) + { + SetColumnOffsetNative(columnIndex, offsetX); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnsCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetColumnsCountNative(); + + public static int GetColumnsCount() + { + int ret = GetColumnsCountNative(); return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTabBarNative(byte* strId, int flags); + + public static bool BeginTabBar( byte* strId, int flags) + { + byte ret = BeginTabBarNative(strId, flags); + return ret != 0; + } + + public static bool BeginTabBar( byte* strId) + { + byte ret = BeginTabBarNative(strId, (int)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndTabBarNative(); + + public static void EndTabBar() + { + EndTabBarNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTabItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTabItemNative(byte* label, byte* pOpen, int flags); + + public static bool BeginTabItem( byte* label, byte* pOpen, int flags) + { + byte ret = BeginTabItemNative(label, pOpen, flags); + return ret != 0; + } + + public static bool BeginTabItem( byte* label, byte* pOpen) + { + byte ret = BeginTabItemNative(label, pOpen, (int)(0)); + return ret != 0; + } + + public static bool BeginTabItem( byte* label) + { + byte ret = BeginTabItemNative(label, (byte*)(default), (int)(0)); + return ret != 0; + } + + public static bool BeginTabItem( byte* label, int flags) + { + byte ret = BeginTabItemNative(label, (byte*)(default), flags); + return ret != 0; + } + + public static bool BeginTabItem( byte* label, ref byte pOpen, int flags) { - fixed (char* poutBuf = &outBuf) + fixed (byte* ppOpen = &pOpen) { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, inText, (byte*)pinTextEnd, inRemaining); - return ret; - } + byte ret = BeginTabItemNative(label, (byte*)ppOpen, flags); + return ret != 0; } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + public static bool BeginTabItem( byte* label, ref byte pOpen) { - fixed (char* poutBuf = &outBuf) + fixed (byte* ppOpen = &pOpen) { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } + byte ret = BeginTabItemNative(label, (byte*)ppOpen, (int)(0)); + return ret != 0; } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndTabItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndTabItemNative(); + + public static void EndTabItem() + { + EndTabItemNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabItemButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TabItemButtonNative(byte* label, int flags); + + public static bool TabItemButton( byte* label, int flags) + { + byte ret = TabItemButtonNative(label, flags); + return ret != 0; + } + + public static bool TabItemButton( byte* label) + { + byte ret = TabItemButtonNative(label, (int)(0)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetTabItemClosed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetTabItemClosedNative(byte* tabOrDockedWindowLabel); + + public static void SetTabItemClosed( byte* tabOrDockedWindowLabel) + { + SetTabItemClosedNative(tabOrDockedWindowLabel); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockSpace")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockSpaceNative(uint id, Vector2 size, int flags, ImGuiWindowClass* windowClass); + + public static uint DockSpace( uint id, Vector2 size, int flags, ImGuiWindowClass* windowClass) + { + uint ret = DockSpaceNative(id, size, flags, windowClass); + return ret; + } + + public static uint DockSpace( uint id, Vector2 size, int flags) + { + uint ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)(default)); + return ret; + } + + public static uint DockSpace( uint id, Vector2 size) + { + uint ret = DockSpaceNative(id, size, (int)(0), (ImGuiWindowClass*)(default)); + return ret; + } + + public static uint DockSpace( uint id) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (int)(0), (ImGuiWindowClass*)(default)); + return ret; + } + + public static uint DockSpace( uint id, int flags) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)(default)); + return ret; + } + + public static uint DockSpace( uint id, Vector2 size, ImGuiWindowClass* windowClass) + { + uint ret = DockSpaceNative(id, size, (int)(0), windowClass); + return ret; + } + + public static uint DockSpace( uint id, ImGuiWindowClass* windowClass) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (int)(0), windowClass); + return ret; + } + + public static uint DockSpace( uint id, int flags, ImGuiWindowClass* windowClass) + { + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, windowClass); + return ret; + } + + public static uint DockSpace( uint id, Vector2 size, int flags, ref ImGuiWindowClass windowClass) { - fixed (char* poutBuf = &outBuf) + fixed (ImGuiWindowClass* pwindowClass = &windowClass) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, inText, pStr0, inRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = DockSpaceNative(id, size, flags, (ImGuiWindowClass*)pwindowClass); return ret; } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + public static uint DockSpace( uint id, Vector2 size, ref ImGuiWindowClass windowClass) { - fixed (char* poutBuf = &outBuf) + fixed (ImGuiWindowClass* pwindowClass = &windowClass) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, inText, pStr0, (byte**)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = DockSpaceNative(id, size, (int)(0), (ImGuiWindowClass*)pwindowClass); return ret; } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + public static uint DockSpace( uint id, ref ImGuiWindowClass windowClass) { - fixed (byte* pinText = &inText) + fixed (ImGuiWindowClass* pwindowClass = &windowClass) { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), (int)(0), (ImGuiWindowClass*)pwindowClass); + return ret; } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + public static uint DockSpace( uint id, int flags, ref ImGuiWindowClass windowClass) { - fixed (byte* pinText = &inText) + fixed (ImGuiWindowClass* pwindowClass = &windowClass) { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } + uint ret = DockSpaceNative(id, (Vector2)(new Vector2(0,0)), flags, (ImGuiWindowClass*)pwindowClass); + return ret; } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockSpaceOverViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockSpaceOverViewportNative(ImGuiViewport* viewport, int flags, ImGuiWindowClass* windowClass); + + public static uint DockSpaceOverViewport( ImGuiViewport* viewport, int flags, ImGuiWindowClass* windowClass) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, inRemaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = DockSpaceOverViewportNative(viewport, flags, windowClass); return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + public static uint DockSpaceOverViewport( ImGuiViewport* viewport, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)(default)); return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + public static uint DockSpaceOverViewport( ImGuiViewport* viewport) { - fixed (char* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, inRemaining); - return ret; - } - } - } + uint ret = DockSpaceOverViewportNative(viewport, (int)(0), (ImGuiWindowClass*)(default)); + return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + public static uint DockSpaceOverViewport( ImGuiViewport* viewport, ImGuiWindowClass* windowClass) { - fixed (char* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)(default)); - return ret; - } - } - } + uint ret = DockSpaceOverViewportNative(viewport, (int)(0), windowClass); + return ret; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] byte** inRemaining) + public static uint DockSpaceOverViewport( ImGuiViewport* viewport, int flags, ref ImGuiWindowClass windowClass) { - fixed (char* poutBuf = &outBuf) + fixed (ImGuiWindowClass* pwindowClass = &windowClass) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, pStr0, pStr1, inRemaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = DockSpaceOverViewportNative(viewport, flags, (ImGuiWindowClass*)pwindowClass); return ret; } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + public static uint DockSpaceOverViewport( ImGuiViewport* viewport, ref ImGuiWindowClass windowClass) { - fixed (char* poutBuf = &outBuf) + fixed (ImGuiWindowClass* pwindowClass = &windowClass) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, pStr0, pStr1, (byte**)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = DockSpaceOverViewportNative(viewport, (int)(0), (ImGuiWindowClass*)pwindowClass); return ret; } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowDockID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowDockIDNative(uint dockId, int cond); + + public static void SetNextWindowDockID( uint dockId, int cond) + { + SetNextWindowDockIDNative(dockId, cond); + } + + public static void SetNextWindowDockID( uint dockId) + { + SetNextWindowDockIDNative(dockId, (int)(0)); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextWindowClass")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextWindowClassNative(ImGuiWindowClass* windowClass); + + public static void SetNextWindowClass( ImGuiWindowClass* windowClass) + { + SetNextWindowClassNative(windowClass); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowDockID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetWindowDockIDNative(); + + public static uint GetWindowDockID() + { + uint ret = GetWindowDockIDNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowDocked")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowDockedNative(); + + public static bool IsWindowDocked() + { + byte ret = IsWindowDockedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogToTTY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogToTTYNative(int autoOpenDepth); + + public static void LogToTTY( int autoOpenDepth) { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, inTextEnd, (byte**)pinRemaining); - return ret; - } + LogToTTYNative(autoOpenDepth); } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogToFile")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogToFileNative(int autoOpenDepth, byte* filename); + + public static void LogToFile( int autoOpenDepth, byte* filename) { - fixed (char* poutBuf = &outBuf) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, inText, inTextEnd, (byte**)pinRemaining); - return ret; - } - } + LogToFileNative(autoOpenDepth, filename); } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + public static void LogToFile( int autoOpenDepth) { - fixed (byte* pinText = &inText) + LogToFileNative(autoOpenDepth, (byte*)(default)); + } + + public static void LogToFile( int autoOpenDepth, ref byte filename) + { + fixed (byte* pfilename = &filename) { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)pinRemaining); - return ret; - } + LogToFileNative(autoOpenDepth, (byte*)pfilename); } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + public static void LogToFile( int autoOpenDepth, string filename) { byte* pStr0 = null; int pStrSize0 = 0; - if (inText != null) + if (filename != null) { - pStrSize0 = Utils.GetByteCountUTF8(inText); + pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -206766,807 +45355,790 @@ public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf") byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (byte** pinRemaining = &inRemaining) + LogToFileNative(autoOpenDepth, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, inTextEnd, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + Utils.Free(pStr0); } } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogToClipboard")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogToClipboardNative(int autoOpenDepth); + + public static void LogToClipboard( int autoOpenDepth) { - fixed (char* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, (byte*)pinText, inTextEnd, (byte**)pinRemaining); - return ret; - } - } - } + LogToClipboardNative(autoOpenDepth); } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogFinish")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogFinishNative(); + + public static void LogFinish() { - fixed (char* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, pStr0, inTextEnd, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } + LogFinishNative(); } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogButtons")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogButtonsNative(); + + public static void LogButtons() { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } + LogButtonsNative(); } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogTextV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogTextVNative(byte* fmt, nuint args); + + public static void LogTextV( byte* fmt, nuint args) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, inText, pStr0, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + LogTextVNative(fmt, args); } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDragDropSource")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginDragDropSourceNative(int flags); + + public static bool BeginDragDropSource( int flags) { - fixed (char* poutBuf = &outBuf) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, inText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } + byte ret = BeginDragDropSourceNative(flags); + return ret != 0; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetDragDropPayload")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SetDragDropPayloadNative(byte* type, void* data, ulong sz, int cond); + + public static bool SetDragDropPayload( byte* type, void* data, ulong sz, int cond) { - fixed (char* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, inText, pStr0, (byte**)pinRemaining); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } + byte ret = SetDragDropPayloadNative(type, data, sz, cond); + return ret != 0; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + public static bool SetDragDropPayload( byte* type, void* data, ulong sz) { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } + byte ret = SetDragDropPayloadNative(type, data, sz, (int)(0)); + return ret != 0; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] char* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + public static bool SetDragDropPayload( byte* type, void* data, nuint sz, int cond) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native(outBuf, outBufSize, pStr0, pStr1, (byte**)pinRemaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + byte ret = SetDragDropPayloadNative(type, data, sz, cond); + return ret != 0; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + public static bool SetDragDropPayload( byte* type, void* data, nuint sz) { - fixed (char* poutBuf = &outBuf) - { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, (byte*)pinText, (byte*)pinTextEnd, (byte**)pinRemaining); - return ret; - } - } - } - } + byte ret = SetDragDropPayloadNative(type, data, sz, (int)(0)); + return ret != 0; } - /// /// return input UTF-8 bytes count /// [NativeName(NativeNameType.Func, "igImTextStrFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextStrFromUtf8([NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "ImWchar*")] ref char outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize, [NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd, [NativeName(NativeNameType.Param, "in_remaining")] [NativeName(NativeNameType.Type, "const char**")] ref byte* inRemaining) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndDragDropSource")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndDragDropSourceNative(); + + public static void EndDragDropSource() { - fixed (char* poutBuf = &outBuf) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (byte** pinRemaining = &inRemaining) - { - int ret = ImTextStrFromUtf8Native((char*)poutBuf, outBufSize, pStr0, pStr1, (byte**)pinRemaining); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } + EndDragDropSourceNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDragDropTarget")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginDragDropTargetNative(); + + public static bool BeginDragDropTarget() + { + byte ret = BeginDragDropTargetNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igAcceptDragDropPayload")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPayload* AcceptDragDropPayloadNative(byte* type, int flags); + + public static ImGuiPayload* AcceptDragDropPayload( byte* type, int flags) + { + ImGuiPayload* ret = AcceptDragDropPayloadNative(type, flags); + return ret; + } + + public static ImGuiPayload* AcceptDragDropPayload( byte* type) + { + ImGuiPayload* ret = AcceptDragDropPayloadNative(type, (int)(0)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndDragDropTarget")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndDragDropTargetNative(); + + public static void EndDragDropTarget() + { + EndDragDropTargetNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetDragDropPayload")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPayload* GetDragDropPayloadNative(); + + public static ImGuiPayload* GetDragDropPayload() + { + ImGuiPayload* ret = GetDragDropPayloadNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDisabled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginDisabledNative(byte disabled); + + public static void BeginDisabled( bool disabled) + { + BeginDisabledNative(disabled ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndDisabled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndDisabledNative(); + + public static void EndDisabled() + { + EndDisabledNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushClipRectNative(Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect); + + public static void PushClipRect( Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + PushClipRectNative(clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopClipRectNative(); + + public static void PopClipRect() + { + PopClipRectNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetItemDefaultFocus")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetItemDefaultFocusNative(); + + public static void SetItemDefaultFocus() + { + SetItemDefaultFocusNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetKeyboardFocusHere")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetKeyboardFocusHereNative(int offset); + + public static void SetKeyboardFocusHere( int offset) + { + SetKeyboardFocusHereNative(offset); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextItemAllowOverlap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextItemAllowOverlapNative(); + + public static void SetNextItemAllowOverlap() + { + SetNextItemAllowOverlapNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemHovered")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemHoveredNative(int flags); + + public static bool IsItemHovered( int flags) + { + byte ret = IsItemHoveredNative(flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemActive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemActiveNative(); + + public static bool IsItemActive() + { + byte ret = IsItemActiveNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemFocused")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemFocusedNative(); + + public static bool IsItemFocused() + { + byte ret = IsItemFocusedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemClicked")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemClickedNative(int mouseButton); + + public static bool IsItemClicked( int mouseButton) + { + byte ret = IsItemClickedNative(mouseButton); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemVisible")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemVisibleNative(); + + public static bool IsItemVisible() + { + byte ret = IsItemVisibleNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemEdited")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemEditedNative(); + + public static bool IsItemEdited() + { + byte ret = IsItemEditedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemActivated")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemActivatedNative(); + + public static bool IsItemActivated() + { + byte ret = IsItemActivatedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemDeactivated")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemDeactivatedNative(); + + public static bool IsItemDeactivated() + { + byte ret = IsItemDeactivatedNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemDeactivatedAfterEdit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemDeactivatedAfterEditNative(); + + public static bool IsItemDeactivatedAfterEdit() + { + byte ret = IsItemDeactivatedAfterEditNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemToggledOpen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemToggledOpenNative(); + + public static bool IsItemToggledOpen() + { + byte ret = IsItemToggledOpenNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsAnyItemHovered")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsAnyItemHoveredNative(); + + public static bool IsAnyItemHovered() + { + byte ret = IsAnyItemHoveredNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsAnyItemActive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsAnyItemActiveNative(); + + public static bool IsAnyItemActive() + { + byte ret = IsAnyItemActiveNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsAnyItemFocused")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsAnyItemFocusedNative(); + + public static bool IsAnyItemFocused() + { + byte ret = IsAnyItemFocusedNative(); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImTextCountCharsFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImTextCountCharsFromUtf8")] - internal static extern int ImTextCountCharsFromUtf8Native([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd); + [LibraryImport(LibName, EntryPoint = "igGetItemID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetItemIDNative(); - /// /// return number of UTF-8 code-points (NOT bytes count) /// [NativeName(NativeNameType.Func, "igImTextCountCharsFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountCharsFromUtf8([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + public static uint GetItemID() { - int ret = ImTextCountCharsFromUtf8Native(inText, inTextEnd); + uint ret = GetItemIDNative(); return ret; } - /// /// return number of UTF-8 code-points (NOT bytes count) /// [NativeName(NativeNameType.Func, "igImTextCountCharsFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountCharsFromUtf8([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetItemRectMin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetItemRectMinNative(Vector2* pOut); + + public static void GetItemRectMin( Vector2* pOut) { - fixed (byte* pinText = &inText) - { - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, inTextEnd); - return ret; - } + GetItemRectMinNative(pOut); } - /// /// return number of UTF-8 code-points (NOT bytes count) /// [NativeName(NativeNameType.Func, "igImTextCountCharsFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountCharsFromUtf8([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetItemRectMax")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetItemRectMaxNative(Vector2* pOut); + + public static void GetItemRectMax( Vector2* pOut) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountCharsFromUtf8Native(pStr0, inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + GetItemRectMaxNative(pOut); } - /// /// return number of UTF-8 code-points (NOT bytes count) /// [NativeName(NativeNameType.Func, "igImTextCountCharsFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountCharsFromUtf8([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetItemRectSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetItemRectSizeNative(Vector2* pOut); + + public static void GetItemRectSize( Vector2* pOut) { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native(inText, (byte*)pinTextEnd); - return ret; - } + GetItemRectSizeNative(pOut); } - /// /// return number of UTF-8 code-points (NOT bytes count) /// [NativeName(NativeNameType.Func, "igImTextCountCharsFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountCharsFromUtf8([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetMainViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewport* GetMainViewportNative(); + + public static ImGuiViewport* GetMainViewport() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountCharsFromUtf8Native(inText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiViewport* ret = GetMainViewportNative(); return ret; } - /// /// return number of UTF-8 code-points (NOT bytes count) /// [NativeName(NativeNameType.Func, "igImTextCountCharsFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountCharsFromUtf8([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetBackgroundDrawList_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetBackgroundDrawListNative(); + + public static ImDrawList* GetBackgroundDrawList() { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountCharsFromUtf8Native((byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } + ImDrawList* ret = GetBackgroundDrawListNative(); + return ret; } - /// /// return number of UTF-8 code-points (NOT bytes count) /// [NativeName(NativeNameType.Func, "igImTextCountCharsFromUtf8")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountCharsFromUtf8([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetForegroundDrawList_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetForegroundDrawListNative(); + + public static ImDrawList* GetForegroundDrawList() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextCountCharsFromUtf8Native(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImDrawList* ret = GetForegroundDrawListNative(); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromChar")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImTextCountUtf8BytesFromChar")] - internal static extern int ImTextCountUtf8BytesFromCharNative([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd); + [LibraryImport(LibName, EntryPoint = "igGetBackgroundDrawList_ViewportPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetBackgroundDrawListNative(ImGuiViewport* viewport); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetForegroundDrawList_ViewportPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetForegroundDrawListNative(ImGuiViewport* viewport); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsRectVisible_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsRectVisibleNative(Vector2 size); - /// /// return number of bytes to express one char in UTF-8 /// [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromChar")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountUtf8BytesFromChar([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + public static bool IsRectVisible( Vector2 size) { - int ret = ImTextCountUtf8BytesFromCharNative(inText, inTextEnd); - return ret; + byte ret = IsRectVisibleNative(size); + return ret != 0; } - /// /// return number of bytes to express one char in UTF-8 /// [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromChar")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountUtf8BytesFromChar([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsRectVisible_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsRectVisibleNative(Vector2 rectMin, Vector2 rectMax); + + public static bool IsRectVisible( Vector2 rectMin, Vector2 rectMax) { - fixed (byte* pinText = &inText) - { - int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, inTextEnd); - return ret; - } + byte ret = IsRectVisibleNative(rectMin, rectMax); + return ret != 0; } - /// /// return number of bytes to express one char in UTF-8 /// [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromChar")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountUtf8BytesFromChar([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTime")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double GetTimeNative(); + + public static double GetTime() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountUtf8BytesFromCharNative(pStr0, inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + double ret = GetTimeNative(); return ret; } - /// /// return number of bytes to express one char in UTF-8 /// [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromChar")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountUtf8BytesFromChar([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFrameCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetFrameCountNative(); + + public static int GetFrameCount() { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountUtf8BytesFromCharNative(inText, (byte*)pinTextEnd); - return ret; - } + int ret = GetFrameCountNative(); + return ret; } - /// /// return number of bytes to express one char in UTF-8 /// [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromChar")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountUtf8BytesFromChar([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] byte* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetDrawListSharedData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawListSharedData* GetDrawListSharedDataNative(); + + public static ImDrawListSharedData* GetDrawListSharedData() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inTextEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImTextCountUtf8BytesFromCharNative(inText, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImDrawListSharedData* ret = GetDrawListSharedDataNative(); return ret; } - /// /// return number of bytes to express one char in UTF-8 /// [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromChar")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountUtf8BytesFromChar([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetStyleColorName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetStyleColorNameNative(int idx); + + public static byte* GetStyleColorName( int idx) { - fixed (byte* pinText = &inText) - { - fixed (byte* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountUtf8BytesFromCharNative((byte*)pinText, (byte*)pinTextEnd); - return ret; - } - } + byte* ret = GetStyleColorNameNative(idx); + return ret; } - /// /// return number of bytes to express one char in UTF-8 /// [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromChar")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountUtf8BytesFromChar([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const char*")] string inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const char*")] string inTextEnd) + public static string GetStyleColorNameS( int idx) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inText != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inText); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (inTextEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImTextCountUtf8BytesFromCharNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + string ret = Utils.DecodeStringUTF8(GetStyleColorNameNative(idx)); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromStr")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImTextCountUtf8BytesFromStr")] - internal static extern int ImTextCountUtf8BytesFromStrNative([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inTextEnd); + [LibraryImport(LibName, EntryPoint = "igSetStateStorage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetStateStorageNative(ImGuiStorage* storage); + + public static void SetStateStorage( ImGuiStorage* storage) + { + SetStateStorageNative(storage); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetStateStorage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStorage* GetStateStorageNative(); - /// /// return number of bytes to express string in UTF-8 /// [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromStr")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountUtf8BytesFromStr([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inTextEnd) + public static ImGuiStorage* GetStateStorage() { - int ret = ImTextCountUtf8BytesFromStrNative(inText, inTextEnd); + ImGuiStorage* ret = GetStateStorageNative(); return ret; } - /// /// return number of bytes to express string in UTF-8 /// [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromStr")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountUtf8BytesFromStr([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginChildFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginChildFrameNative(uint id, Vector2 size, int flags); + + public static bool BeginChildFrame( uint id, Vector2 size, int flags) { - fixed (char* pinText = &inText) - { - int ret = ImTextCountUtf8BytesFromStrNative((char*)pinText, inTextEnd); - return ret; - } + byte ret = BeginChildFrameNative(id, size, flags); + return ret != 0; } - /// /// return number of bytes to express string in UTF-8 /// [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromStr")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountUtf8BytesFromStr([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inTextEnd) + public static bool BeginChildFrame( uint id, Vector2 size) { - fixed (char* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountUtf8BytesFromStrNative(inText, (char*)pinTextEnd); - return ret; - } + byte ret = BeginChildFrameNative(id, size, (int)(0)); + return ret != 0; } - /// /// return number of bytes to express string in UTF-8 /// [NativeName(NativeNameType.Func, "igImTextCountUtf8BytesFromStr")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImTextCountUtf8BytesFromStr([NativeName(NativeNameType.Param, "in_text")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inText, [NativeName(NativeNameType.Param, "in_text_end")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char inTextEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndChildFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndChildFrameNative(); + + public static void EndChildFrame() { - fixed (char* pinText = &inText) - { - fixed (char* pinTextEnd = &inTextEnd) - { - int ret = ImTextCountUtf8BytesFromStrNative((char*)pinText, (char*)pinTextEnd); - return ret; - } - } + EndChildFrameNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFileOpen")] - [return: NativeName(NativeNameType.Type, "ImFileHandle")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFileOpen")] - internal static extern ImFileHandle ImFileOpenNative([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode); + [LibraryImport(LibName, EntryPoint = "igCalcTextSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CalcTextSizeNative(Vector2* pOut, byte* text, byte* textEnd, byte hideTextAfterDoubleHash, float wrapWidth); - [NativeName(NativeNameType.Func, "igImFileOpen")] - [return: NativeName(NativeNameType.Type, "ImFileHandle")] - public static ImFileHandle ImFileOpen([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode) + public static void CalcTextSize( Vector2* pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) { - ImFileHandle ret = ImFileOpenNative(filename, mode); - return ret; + CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); } - [NativeName(NativeNameType.Func, "igImFileOpen")] - [return: NativeName(NativeNameType.Type, "ImFileHandle")] - public static ImFileHandle ImFileOpen([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode) + public static void CalcTextSize( Vector2* pOut, byte* text, byte* textEnd, bool hideTextAfterDoubleHash) { - fixed (byte* pfilename = &filename) + CalcTextSizeNative(pOut, text, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + + public static void CalcTextSize( Vector2* pOut, byte* text, byte* textEnd) + { + CalcTextSizeNative(pOut, text, textEnd, (byte)(0), (float)(-1.0f)); + } + + public static void CalcTextSize( Vector2* pOut, byte* text) + { + CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), (float)(-1.0f)); + } + + public static void CalcTextSize( Vector2* pOut, byte* text, bool hideTextAfterDoubleHash) + { + CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + } + + public static void CalcTextSize( Vector2* pOut, byte* text, byte* textEnd, float wrapWidth) + { + CalcTextSizeNative(pOut, text, textEnd, (byte)(0), wrapWidth); + } + + public static void CalcTextSize( Vector2* pOut, byte* text, float wrapWidth) + { + CalcTextSizeNative(pOut, text, (byte*)(default), (byte)(0), wrapWidth); + } + + public static void CalcTextSize( Vector2* pOut, byte* text, bool hideTextAfterDoubleHash, float wrapWidth) + { + CalcTextSizeNative(pOut, text, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) { - ImFileHandle ret = ImFileOpenNative((byte*)pfilename, mode); - return ret; + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); } } - [NativeName(NativeNameType.Func, "igImFileOpen")] - [return: NativeName(NativeNameType.Type, "ImFileHandle")] - public static ImFileHandle ImFileOpen([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode) + public static void CalcTextSize( Vector2* pOut, ref byte text, byte* textEnd, bool hideTextAfterDoubleHash) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) + fixed (byte* ptext = &text) { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); } - ImFileHandle ret = ImFileOpenNative(pStr0, mode); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) { - Utils.Free(pStr0); + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), (float)(-1.0f)); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileOpen")] - [return: NativeName(NativeNameType.Type, "ImFileHandle")] - public static ImFileHandle ImFileOpen([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode) + public static void CalcTextSize( Vector2* pOut, ref byte text) { - fixed (byte* pmode = &mode) + fixed (byte* ptext = &text) { - ImFileHandle ret = ImFileOpenNative(filename, (byte*)pmode); - return ret; + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), (float)(-1.0f)); } } - [NativeName(NativeNameType.Func, "igImFileOpen")] - [return: NativeName(NativeNameType.Type, "ImFileHandle")] - public static ImFileHandle ImFileOpen([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode) + public static void CalcTextSize( Vector2* pOut, ref byte text, bool hideTextAfterDoubleHash) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) + fixed (byte* ptext = &text) { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); } - ImFileHandle ret = ImFileOpenNative(filename, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (byte* ptext = &text) { - Utils.Free(pStr0); + CalcTextSizeNative(pOut, (byte*)ptext, textEnd, (byte)(0), wrapWidth); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileOpen")] - [return: NativeName(NativeNameType.Type, "ImFileHandle")] - public static ImFileHandle ImFileOpen([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode) + public static void CalcTextSize( Vector2* pOut, ref byte text, float wrapWidth) { - fixed (byte* pfilename = &filename) + fixed (byte* ptext = &text) { - fixed (byte* pmode = &mode) - { - ImFileHandle ret = ImFileOpenNative((byte*)pfilename, (byte*)pmode); - return ret; - } + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), (byte)(0), wrapWidth); + } + } + + public static void CalcTextSize( Vector2* pOut, ref byte text, bool hideTextAfterDoubleHash, float wrapWidth) + { + fixed (byte* ptext = &text) + { + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); } } - [NativeName(NativeNameType.Func, "igImFileOpen")] - [return: NativeName(NativeNameType.Type, "ImFileHandle")] - public static ImFileHandle ImFileOpen([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode) + public static void CalcTextSize( Vector2* pOut, string text, byte* textEnd, bool hideTextAfterDoubleHash, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (filename != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(filename); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -207576,195 +46148,101 @@ public static ImFileHandle ImFileOpen([NativeName(NativeNameType.Param, "filenam byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (mode != null) - { - pStrSize1 = Utils.GetByteCountUTF8(mode); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - ImFileHandle ret = ImFileOpenNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + CalcTextSizeNative(pOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); - } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImFileClose")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFileClose")] - internal static extern byte ImFileCloseNative([NativeName(NativeNameType.Param, "file")] [NativeName(NativeNameType.Type, "ImFileHandle")] ImFileHandle file); - - [NativeName(NativeNameType.Func, "igImFileClose")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImFileClose([NativeName(NativeNameType.Param, "file")] [NativeName(NativeNameType.Type, "ImFileHandle")] ImFileHandle file) - { - byte ret = ImFileCloseNative(file); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImFileGetSize")] - [return: NativeName(NativeNameType.Type, "ImU64")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFileGetSize")] - internal static extern ulong ImFileGetSizeNative([NativeName(NativeNameType.Param, "file")] [NativeName(NativeNameType.Type, "ImFileHandle")] ImFileHandle file); - - [NativeName(NativeNameType.Func, "igImFileGetSize")] - [return: NativeName(NativeNameType.Type, "ImU64")] - public static ulong ImFileGetSize([NativeName(NativeNameType.Param, "file")] [NativeName(NativeNameType.Type, "ImFileHandle")] ImFileHandle file) - { - ulong ret = ImFileGetSizeNative(file); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImFileRead")] - [return: NativeName(NativeNameType.Type, "ImU64")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFileRead")] - internal static extern ulong ImFileReadNative([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImU64")] ulong size, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "ImU64")] ulong count, [NativeName(NativeNameType.Param, "file")] [NativeName(NativeNameType.Type, "ImFileHandle")] ImFileHandle file); - - [NativeName(NativeNameType.Func, "igImFileRead")] - [return: NativeName(NativeNameType.Type, "ImU64")] - public static ulong ImFileRead([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImU64")] ulong size, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "ImU64")] ulong count, [NativeName(NativeNameType.Param, "file")] [NativeName(NativeNameType.Type, "ImFileHandle")] ImFileHandle file) - { - ulong ret = ImFileReadNative(data, size, count, file); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImFileWrite")] - [return: NativeName(NativeNameType.Type, "ImU64")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFileWrite")] - internal static extern ulong ImFileWriteNative([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImU64")] ulong size, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "ImU64")] ulong count, [NativeName(NativeNameType.Param, "file")] [NativeName(NativeNameType.Type, "ImFileHandle")] ImFileHandle file); - - [NativeName(NativeNameType.Func, "igImFileWrite")] - [return: NativeName(NativeNameType.Type, "ImU64")] - public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImU64")] ulong size, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "ImU64")] ulong count, [NativeName(NativeNameType.Param, "file")] [NativeName(NativeNameType.Type, "ImFileHandle")] ImFileHandle file) - { - ulong ret = ImFileWriteNative(data, size, count, file); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFileLoadToMemory")] - internal static extern void* ImFileLoadToMemoryNative([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes); - - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) - { - void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, paddingBytes); - return ret; - } - - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, (int)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode) - { - void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)(default), (int)(0)); - return ret; - } - - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) - { - void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)(default), paddingBytes); - return ret; - } - - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) - { - fixed (byte* pfilename = &filename) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, paddingBytes); - return ret; + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize) + public static void CalcTextSize( Vector2* pOut, string text, byte* textEnd, bool hideTextAfterDoubleHash) { - fixed (byte* pfilename = &filename) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, outFileSize, (int)(0)); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, textEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode) + public static void CalcTextSize( Vector2* pOut, string text, byte* textEnd) { - fixed (byte* pfilename = &filename) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), (int)(0)); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, textEnd, (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void CalcTextSize( Vector2* pOut, string text) { - fixed (byte* pfilename = &filename) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)(default), paddingBytes); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), (float)(-1.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void CalcTextSize( Vector2* pOut, string text, bool hideTextAfterDoubleHash) { byte* pStr0 = null; int pStrSize0 = 0; - if (filename != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(filename); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -207774,26 +46252,23 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, mode, outFileSize, paddingBytes); + CalcTextSizeNative(pOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize) + public static void CalcTextSize( Vector2* pOut, string text, byte* textEnd, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (filename != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(filename); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -207803,26 +46278,23 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, mode, outFileSize, (int)(0)); + CalcTextSizeNative(pOut, pStr0, textEnd, (byte)(0), wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode) + public static void CalcTextSize( Vector2* pOut, string text, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (filename != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(filename); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -207832,26 +46304,23 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)(default), (int)(0)); + CalcTextSizeNative(pOut, pStr0, (byte*)(default), (byte)(0), wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void CalcTextSize( Vector2* pOut, string text, bool hideTextAfterDoubleHash, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (filename != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(filename); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -207861,70 +46330,55 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)(default), paddingBytes); + CalcTextSizeNative(pOut, pStr0, (byte*)(default), hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void CalcTextSize( Vector2* pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) { - fixed (byte* pmode = &mode) + fixed (byte* ptextEnd = &textEnd) { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, paddingBytes); - return ret; + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize) + public static void CalcTextSize( Vector2* pOut, byte* text, ref byte textEnd, bool hideTextAfterDoubleHash) { - fixed (byte* pmode = &mode) + fixed (byte* ptextEnd = &textEnd) { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, (int)(0)); - return ret; + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode) + public static void CalcTextSize( Vector2* pOut, byte* text, ref byte textEnd) { - fixed (byte* pmode = &mode) + fixed (byte* ptextEnd = &textEnd) { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), (int)(0)); - return ret; + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void CalcTextSize( Vector2* pOut, byte* text, ref byte textEnd, float wrapWidth) { - fixed (byte* pmode = &mode) + fixed (byte* ptextEnd = &textEnd) { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)(default), paddingBytes); - return ret; + CalcTextSizeNative(pOut, text, (byte*)ptextEnd, (byte)(0), wrapWidth); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void CalcTextSize( Vector2* pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (mode != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(mode); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -207934,26 +46388,23 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(filename, pStr0, outFileSize, paddingBytes); + CalcTextSizeNative(pOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize) + public static void CalcTextSize( Vector2* pOut, byte* text, string textEnd, bool hideTextAfterDoubleHash) { byte* pStr0 = null; int pStrSize0 = 0; - if (mode != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(mode); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -207963,26 +46414,23 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(filename, pStr0, outFileSize, (int)(0)); + CalcTextSizeNative(pOut, text, pStr0, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode) + public static void CalcTextSize( Vector2* pOut, byte* text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (mode != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(mode); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -207992,26 +46440,23 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)(default), (int)(0)); + CalcTextSizeNative(pOut, text, pStr0, (byte)(0), (float)(-1.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void CalcTextSize( Vector2* pOut, byte* text, string textEnd, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (mode != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(mode); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -208021,82 +46466,67 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)(default), paddingBytes); + CalcTextSizeNative(pOut, text, pStr0, (byte)(0), wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void CalcTextSize( Vector2* pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash, float wrapWidth) { - fixed (byte* pfilename = &filename) + fixed (byte* ptext = &text) { - fixed (byte* pmode = &mode) + fixed (byte* ptextEnd = &textEnd) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, paddingBytes); - return ret; + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); } } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize) + public static void CalcTextSize( Vector2* pOut, ref byte text, ref byte textEnd, bool hideTextAfterDoubleHash) { - fixed (byte* pfilename = &filename) + fixed (byte* ptext = &text) { - fixed (byte* pmode = &mode) + fixed (byte* ptextEnd = &textEnd) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, outFileSize, (int)(0)); - return ret; + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); } } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode) + public static void CalcTextSize( Vector2* pOut, ref byte text, ref byte textEnd) { - fixed (byte* pfilename = &filename) + fixed (byte* ptext = &text) { - fixed (byte* pmode = &mode) + fixed (byte* ptextEnd = &textEnd) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), (int)(0)); - return ret; + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), (float)(-1.0f)); } } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void CalcTextSize( Vector2* pOut, ref byte text, ref byte textEnd, float wrapWidth) { - fixed (byte* pfilename = &filename) + fixed (byte* ptext = &text) { - fixed (byte* pmode = &mode) + fixed (byte* ptextEnd = &textEnd) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)(default), paddingBytes); - return ret; + CalcTextSizeNative(pOut, (byte*)ptext, (byte*)ptextEnd, (byte)(0), wrapWidth); } } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void CalcTextSize( Vector2* pOut, string text, string textEnd, bool hideTextAfterDoubleHash, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (filename != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(filename); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -208106,14 +46536,14 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (mode != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(mode); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -208123,10 +46553,10 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, outFileSize, paddingBytes); + CalcTextSizeNative(pOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, wrapWidth); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -208135,18 +46565,15 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* outFileSize) + public static void CalcTextSize( Vector2* pOut, string text, string textEnd, bool hideTextAfterDoubleHash) { byte* pStr0 = null; int pStrSize0 = 0; - if (filename != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(filename); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -208156,14 +46583,14 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (mode != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(mode); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -208173,10 +46600,10 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, outFileSize, (int)(0)); + CalcTextSizeNative(pOut, pStr0, pStr1, hideTextAfterDoubleHash ? (byte)1 : (byte)0, (float)(-1.0f)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -208185,18 +46612,15 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode) + public static void CalcTextSize( Vector2* pOut, string text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (filename != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(filename); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -208206,14 +46630,14 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (mode != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(mode); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -208223,10 +46647,10 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)(default), (int)(0)); + CalcTextSizeNative(pOut, pStr0, pStr1, (byte)(0), (float)(-1.0f)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -208235,18 +46659,15 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void CalcTextSize( Vector2* pOut, string text, string textEnd, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (filename != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(filename); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -208256,14 +46677,14 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (mode != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(mode); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -208273,10 +46694,10 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)(default), paddingBytes); + CalcTextSizeNative(pOut, pStr0, pStr1, (byte)(0), wrapWidth); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -208285,2632 +46706,1936 @@ public static ulong ImFileWrite([NativeName(NativeNameType.Param, "data")] [Nati { Utils.Free(pStr0); } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorConvertU32ToFloat4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorConvertU32ToFloat4Native(Vector4* pOut, uint input); + + public static void ColorConvertU32ToFloat4( Vector4* pOut, uint input) + { + ColorConvertU32ToFloat4Native(pOut, input); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorConvertFloat4ToU32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ColorConvertFloat4ToU32Native(Vector4 input); + + public static uint ColorConvertFloat4ToU32( Vector4 input) + { + uint ret = ColorConvertFloat4ToU32Native(input); return ret; } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorConvertRGBtoHSV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorConvertRGBtoHSVNative(float r, float g, float b, float* outH, float* outS, float* outV); + + public static void ColorConvertRGBtoHSV( float r, float g, float b, float* outH, float* outS, float* outV) { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)poutFileSize, paddingBytes); - return ret; - } + ColorConvertRGBtoHSVNative(r, g, b, outH, outS, outV); } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize) + public static void ColorConvertRGBtoHSV( float r, float g, float b, ref float outH, float* outS, float* outV) { - fixed (nuint* poutFileSize = &outFileSize) + fixed (float* poutH = &outH) { - void* ret = ImFileLoadToMemoryNative(filename, mode, (nuint*)poutFileSize, (int)(0)); - return ret; + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, outS, outV); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void ColorConvertRGBtoHSV( float r, float g, float b, float* outH, ref float outS, float* outV) { - fixed (byte* pfilename = &filename) + fixed (float* poutS = &outS) { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)poutFileSize, paddingBytes); - return ret; - } + ColorConvertRGBtoHSVNative(r, g, b, outH, (float*)poutS, outV); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize) + public static void ColorConvertRGBtoHSV( float r, float g, float b, ref float outH, ref float outS, float* outV) { - fixed (byte* pfilename = &filename) + fixed (float* poutH = &outH) { - fixed (nuint* poutFileSize = &outFileSize) + fixed (float* poutS = &outS) { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, mode, (nuint*)poutFileSize, (int)(0)); - return ret; + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, (float*)poutS, outV); } } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void ColorConvertRGBtoHSV( float r, float g, float b, float* outH, float* outS, ref float outV) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) + fixed (float* poutV = &outV) { - void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)poutFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + ColorConvertRGBtoHSVNative(r, g, b, outH, outS, (float*)poutV); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] byte* mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize) + public static void ColorConvertRGBtoHSV( float r, float g, float b, ref float outH, float* outS, ref float outV) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) + fixed (float* poutH = &outH) { - void* ret = ImFileLoadToMemoryNative(pStr0, mode, (nuint*)poutFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* poutV = &outV) { - Utils.Free(pStr0); + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, outS, (float*)poutV); } - return ret; } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void ColorConvertRGBtoHSV( float r, float g, float b, float* outH, ref float outS, ref float outV) { - fixed (byte* pmode = &mode) + fixed (float* poutS = &outS) { - fixed (nuint* poutFileSize = &outFileSize) + fixed (float* poutV = &outV) { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)poutFileSize, paddingBytes); - return ret; + ColorConvertRGBtoHSVNative(r, g, b, outH, (float*)poutS, (float*)poutV); } } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize) + public static void ColorConvertRGBtoHSV( float r, float g, float b, ref float outH, ref float outS, ref float outV) { - fixed (byte* pmode = &mode) + fixed (float* poutH = &outH) { - fixed (nuint* poutFileSize = &outFileSize) + fixed (float* poutS = &outS) { - void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (nuint*)poutFileSize, (int)(0)); - return ret; + fixed (float* poutV = &outV) + { + ColorConvertRGBtoHSVNative(r, g, b, (float*)poutH, (float*)poutS, (float*)poutV); + } } } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igColorConvertHSVtoRGB")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorConvertHSVtoRGBNative(float h, float s, float v, float* outR, float* outG, float* outB); + + public static void ColorConvertHSVtoRGB( float h, float s, float v, float* outR, float* outG, float* outB) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)poutFileSize, paddingBytes); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + ColorConvertHSVtoRGBNative(h, s, v, outR, outG, outB); } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize) + public static void ColorConvertHSVtoRGB( float h, float s, float v, ref float outR, float* outG, float* outB) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (mode != null) - { - pStrSize0 = Utils.GetByteCountUTF8(mode); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) + fixed (float* poutR = &outR) { - void* ret = ImFileLoadToMemoryNative(filename, pStr0, (nuint*)poutFileSize, (int)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, outG, outB); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void ColorConvertHSVtoRGB( float h, float s, float v, float* outR, ref float outG, float* outB) { - fixed (byte* pfilename = &filename) + fixed (float* poutG = &outG) { - fixed (byte* pmode = &mode) - { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)poutFileSize, paddingBytes); - return ret; - } - } + ColorConvertHSVtoRGBNative(h, s, v, outR, (float*)poutG, outB); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] ref byte mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize) + public static void ColorConvertHSVtoRGB( float h, float s, float v, ref float outR, ref float outG, float* outB) { - fixed (byte* pfilename = &filename) + fixed (float* poutR = &outR) { - fixed (byte* pmode = &mode) + fixed (float* poutG = &outG) { - fixed (nuint* poutFileSize = &outFileSize) - { - void* ret = ImFileLoadToMemoryNative((byte*)pfilename, (byte*)pmode, (nuint*)poutFileSize, (int)(0)); - return ret; - } + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, (float*)poutG, outB); } } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize, [NativeName(NativeNameType.Param, "padding_bytes")] [NativeName(NativeNameType.Type, "int")] int paddingBytes) + public static void ColorConvertHSVtoRGB( float h, float s, float v, float* outR, float* outG, ref float outB) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) - { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (mode != null) - { - pStrSize1 = Utils.GetByteCountUTF8(mode); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (nuint* poutFileSize = &outFileSize) + fixed (float* poutB = &outB) { - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)poutFileSize, paddingBytes); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + ColorConvertHSVtoRGBNative(h, s, v, outR, outG, (float*)poutB); } } - [NativeName(NativeNameType.Func, "igImFileLoadToMemory")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* ImFileLoadToMemory([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "const char*")] string mode, [NativeName(NativeNameType.Param, "out_file_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint outFileSize) + public static void ColorConvertHSVtoRGB( float h, float s, float v, ref float outR, float* outG, ref float outB) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (filename != null) + fixed (float* poutR = &outR) { - pStrSize0 = Utils.GetByteCountUTF8(filename); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (float* poutB = &outB) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, outG, (float*)poutB); } - int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (mode != null) + } + + public static void ColorConvertHSVtoRGB( float h, float s, float v, float* outR, ref float outG, ref float outB) + { + fixed (float* poutG = &outG) { - pStrSize1 = Utils.GetByteCountUTF8(mode); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (float* poutB = &outB) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + ColorConvertHSVtoRGBNative(h, s, v, outR, (float*)poutG, (float*)poutB); } - int pStrOffset1 = Utils.EncodeStringUTF8(mode, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - fixed (nuint* poutFileSize = &outFileSize) + } + + public static void ColorConvertHSVtoRGB( float h, float s, float v, ref float outR, ref float outG, ref float outB) + { + fixed (float* poutR = &outR) { - void* ret = ImFileLoadToMemoryNative(pStr0, pStr1, (nuint*)poutFileSize, (int)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* poutG = &outG) { - Utils.Free(pStr0); + fixed (float* poutB = &outB) + { + ColorConvertHSVtoRGBNative(h, s, v, (float*)poutR, (float*)poutG, (float*)poutB); + } } - return ret; } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImPow_Float")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImPow_Float")] - internal static extern float ImPowNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "float")] float y); + [LibraryImport(LibName, EntryPoint = "igIsKeyDown_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyDownNative(ImGuiKey key); - /// /// DragBehaviorTSliderBehaviorT uses ImPow with either floatdouble and need the precision /// [NativeName(NativeNameType.Func, "igImPow_Float")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImPow([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "float")] float y) + public static bool IsKeyDown( ImGuiKey key) { - float ret = ImPowNative(x, y); - return ret; + byte ret = IsKeyDownNative(key); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImPow_double")] - [return: NativeName(NativeNameType.Type, "double")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImPow_double")] - internal static extern double ImPowNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "double")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "double")] double y); + [LibraryImport(LibName, EntryPoint = "igIsKeyPressed_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyPressedNative(ImGuiKey key, byte repeat); - [NativeName(NativeNameType.Func, "igImPow_double")] - [return: NativeName(NativeNameType.Type, "double")] - public static double ImPow([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "double")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "double")] double y) + public static bool IsKeyPressed( ImGuiKey key, bool repeat) { - double ret = ImPowNative(x, y); - return ret; + byte ret = IsKeyPressedNative(key, repeat ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool IsKeyPressed( ImGuiKey key) + { + byte ret = IsKeyPressedNative(key, (byte)(1)); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyReleased_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyReleasedNative(ImGuiKey key); + + public static bool IsKeyReleased( ImGuiKey key) + { + byte ret = IsKeyReleasedNative(key); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImLog_Float")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImLog_Float")] - internal static extern float ImLogNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x); + [LibraryImport(LibName, EntryPoint = "igGetKeyPressedAmount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetKeyPressedAmountNative(ImGuiKey key, float repeatDelay, float rate); - /// /// DragBehaviorTSliderBehaviorT uses ImLog with either floatdouble and need the precision /// [NativeName(NativeNameType.Func, "igImLog_Float")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImLog([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x) + public static int GetKeyPressedAmount( ImGuiKey key, float repeatDelay, float rate) { - float ret = ImLogNative(x); + int ret = GetKeyPressedAmountNative(key, repeatDelay, rate); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImLog_double")] - [return: NativeName(NativeNameType.Type, "double")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImLog_double")] - internal static extern double ImLogNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "double")] double x); + [LibraryImport(LibName, EntryPoint = "igGetKeyName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetKeyNameNative(ImGuiKey key); + + public static byte* GetKeyName( ImGuiKey key) + { + byte* ret = GetKeyNameNative(key); + return ret; + } - [NativeName(NativeNameType.Func, "igImLog_double")] - [return: NativeName(NativeNameType.Type, "double")] - public static double ImLog([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "double")] double x) + public static string GetKeyNameS( ImGuiKey key) { - double ret = ImLogNative(x); + string ret = Utils.DecodeStringUTF8(GetKeyNameNative(key)); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImAbs_Int")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImAbs_Int")] - internal static extern int ImAbsNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x); + [LibraryImport(LibName, EntryPoint = "igSetNextFrameWantCaptureKeyboard")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextFrameWantCaptureKeyboardNative(byte wantCaptureKeyboard); - [NativeName(NativeNameType.Func, "igImAbs_Int")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImAbs([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x) + public static void SetNextFrameWantCaptureKeyboard( bool wantCaptureKeyboard) { - int ret = ImAbsNative(x); - return ret; + SetNextFrameWantCaptureKeyboardNative(wantCaptureKeyboard ? (byte)1 : (byte)0); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImAbs_Float")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImAbs_Float")] - internal static extern float ImAbsNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x); + [LibraryImport(LibName, EntryPoint = "igIsMouseDown_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseDownNative(int button); - [NativeName(NativeNameType.Func, "igImAbs_Float")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImAbs([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x) + public static bool IsMouseDown( int button) { - float ret = ImAbsNative(x); - return ret; + byte ret = IsMouseDownNative(button); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImAbs_double")] - [return: NativeName(NativeNameType.Type, "double")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImAbs_double")] - internal static extern double ImAbsNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "double")] double x); + [LibraryImport(LibName, EntryPoint = "igIsMouseClicked_Bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseClickedNative(int button, byte repeat); - [NativeName(NativeNameType.Func, "igImAbs_double")] - [return: NativeName(NativeNameType.Type, "double")] - public static double ImAbs([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "double")] double x) + public static bool IsMouseClicked( int button, bool repeat) { - double ret = ImAbsNative(x); - return ret; + byte ret = IsMouseClickedNative(button, repeat ? (byte)1 : (byte)0); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImSign_Float")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImSign_Float")] - internal static extern float ImSignNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x); - - /// /// Sign operator - returns -1, 0 or 1 based on sign of argument /// [NativeName(NativeNameType.Func, "igImSign_Float")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImSign([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x) + public static bool IsMouseClicked( int button) { - float ret = ImSignNative(x); - return ret; + byte ret = IsMouseClickedNative(button, (byte)(0)); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImSign_double")] - [return: NativeName(NativeNameType.Type, "double")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImSign_double")] - internal static extern double ImSignNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "double")] double x); + [LibraryImport(LibName, EntryPoint = "igIsMouseReleased_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseReleasedNative(int button); - [NativeName(NativeNameType.Func, "igImSign_double")] - [return: NativeName(NativeNameType.Type, "double")] - public static double ImSign([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "double")] double x) + public static bool IsMouseReleased( int button) { - double ret = ImSignNative(x); - return ret; + byte ret = IsMouseReleasedNative(button); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImRsqrt_Float")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImRsqrt_Float")] - internal static extern float ImRsqrtNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x); + [LibraryImport(LibName, EntryPoint = "igIsMouseDoubleClicked")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseDoubleClickedNative(int button); - [NativeName(NativeNameType.Func, "igImRsqrt_Float")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImRsqrt([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x) + public static bool IsMouseDoubleClicked( int button) { - float ret = ImRsqrtNative(x); - return ret; + byte ret = IsMouseDoubleClickedNative(button); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImRsqrt_double")] - [return: NativeName(NativeNameType.Type, "double")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImRsqrt_double")] - internal static extern double ImRsqrtNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "double")] double x); + [LibraryImport(LibName, EntryPoint = "igGetMouseClickedCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetMouseClickedCountNative(int button); - [NativeName(NativeNameType.Func, "igImRsqrt_double")] - [return: NativeName(NativeNameType.Type, "double")] - public static double ImRsqrt([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "double")] double x) + public static int GetMouseClickedCount( int button) { - double ret = ImRsqrtNative(x); + int ret = GetMouseClickedCountNative(button); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImMin")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImMin")] - internal static extern void ImMinNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs, [NativeName(NativeNameType.Param, "rhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rhs); + [LibraryImport(LibName, EntryPoint = "igIsMouseHoveringRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseHoveringRectNative(Vector2 rMin, Vector2 rMax, byte clip); - [NativeName(NativeNameType.Func, "igImMin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImMin([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs, [NativeName(NativeNameType.Param, "rhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rhs) + public static bool IsMouseHoveringRect( Vector2 rMin, Vector2 rMax, bool clip) { - ImMinNative(pOut, lhs, rhs); + byte ret = IsMouseHoveringRectNative(rMin, rMax, clip ? (byte)1 : (byte)0); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImMin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImMin([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs, [NativeName(NativeNameType.Param, "rhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rhs) + public static bool IsMouseHoveringRect( Vector2 rMin, Vector2 rMax) { - fixed (Vector2* ppOut = &pOut) - { - ImMinNative((Vector2*)ppOut, lhs, rhs); - } + byte ret = IsMouseHoveringRectNative(rMin, rMax, (byte)(1)); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImMax")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImMax")] - internal static extern void ImMaxNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs, [NativeName(NativeNameType.Param, "rhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rhs); + [LibraryImport(LibName, EntryPoint = "igIsMousePosValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMousePosValidNative(Vector2* mousePos); - [NativeName(NativeNameType.Func, "igImMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs, [NativeName(NativeNameType.Param, "rhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rhs) + public static bool IsMousePosValid( Vector2* mousePos) { - ImMaxNative(pOut, lhs, rhs); + byte ret = IsMousePosValidNative(mousePos); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImMax")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImMax([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs, [NativeName(NativeNameType.Param, "rhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rhs) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsAnyMouseDown")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsAnyMouseDownNative(); + + public static bool IsAnyMouseDown() { - fixed (Vector2* ppOut = &pOut) - { - ImMaxNative((Vector2*)ppOut, lhs, rhs); - } + byte ret = IsAnyMouseDownNative(); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImClamp")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImClamp")] - internal static extern void ImClampNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v, [NativeName(NativeNameType.Param, "mn")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 mn, [NativeName(NativeNameType.Param, "mx")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 mx); + [LibraryImport(LibName, EntryPoint = "igGetMousePos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetMousePosNative(Vector2* pOut); - [NativeName(NativeNameType.Func, "igImClamp")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImClamp([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v, [NativeName(NativeNameType.Param, "mn")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 mn, [NativeName(NativeNameType.Param, "mx")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 mx) + public static void GetMousePos( Vector2* pOut) { - ImClampNative(pOut, v, mn, mx); + GetMousePosNative(pOut); } - [NativeName(NativeNameType.Func, "igImClamp")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImClamp([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v, [NativeName(NativeNameType.Param, "mn")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 mn, [NativeName(NativeNameType.Param, "mx")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 mx) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetMousePosOnOpeningCurrentPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetMousePosOnOpeningCurrentPopupNative(Vector2* pOut); + + public static void GetMousePosOnOpeningCurrentPopup( Vector2* pOut) { - fixed (Vector2* ppOut = &pOut) - { - ImClampNative((Vector2*)ppOut, v, mn, mx); - } + GetMousePosOnOpeningCurrentPopupNative(pOut); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImLerp_Vec2Float")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImLerp_Vec2Float")] - internal static extern void ImLerpNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t); + [LibraryImport(LibName, EntryPoint = "igIsMouseDragging")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseDraggingNative(int button, float lockThreshold); - [NativeName(NativeNameType.Func, "igImLerp_Vec2Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImLerp([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t) + public static bool IsMouseDragging( int button, float lockThreshold) { - ImLerpNative(pOut, a, b, t); + byte ret = IsMouseDraggingNative(button, lockThreshold); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImLerp_Vec2Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImLerp([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t) + public static bool IsMouseDragging( int button) { - fixed (Vector2* ppOut = &pOut) - { - ImLerpNative((Vector2*)ppOut, a, b, t); - } + byte ret = IsMouseDraggingNative(button, (float)(-1.0f)); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImLerp_Vec2Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImLerp_Vec2Vec2")] - internal static extern void ImLerpNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 t); + [LibraryImport(LibName, EntryPoint = "igGetMouseDragDelta")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetMouseDragDeltaNative(Vector2* pOut, int button, float lockThreshold); - [NativeName(NativeNameType.Func, "igImLerp_Vec2Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImLerp([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 t) + public static void GetMouseDragDelta( Vector2* pOut, int button, float lockThreshold) { - ImLerpNative(pOut, a, b, t); + GetMouseDragDeltaNative(pOut, button, lockThreshold); } - [NativeName(NativeNameType.Func, "igImLerp_Vec2Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImLerp([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 t) + public static void GetMouseDragDelta( Vector2* pOut, int button) { - fixed (Vector2* ppOut = &pOut) - { - ImLerpNative((Vector2*)ppOut, a, b, t); - } + GetMouseDragDeltaNative(pOut, button, (float)(-1.0f)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImLerp_Vec4")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImLerp_Vec4")] - internal static extern void ImLerpNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec4*")] Vector4* pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 b, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t); - - [NativeName(NativeNameType.Func, "igImLerp_Vec4")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImLerp([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec4*")] Vector4* pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 b, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t) + public static void GetMouseDragDelta( Vector2* pOut) { - ImLerpNative(pOut, a, b, t); + GetMouseDragDeltaNative(pOut, (int)(0), (float)(-1.0f)); } - [NativeName(NativeNameType.Func, "igImLerp_Vec4")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImLerp([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec4*")] ref Vector4 pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 b, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t) + public static void GetMouseDragDelta( Vector2* pOut, float lockThreshold) { - fixed (Vector4* ppOut = &pOut) - { - ImLerpNative((Vector4*)ppOut, a, b, t); - } + GetMouseDragDeltaNative(pOut, (int)(0), lockThreshold); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImSaturate")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImSaturate")] - internal static extern float ImSaturateNative([NativeName(NativeNameType.Param, "f")] [NativeName(NativeNameType.Type, "float")] float f); + [LibraryImport(LibName, EntryPoint = "igResetMouseDragDelta")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ResetMouseDragDeltaNative(int button); - [NativeName(NativeNameType.Func, "igImSaturate")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImSaturate([NativeName(NativeNameType.Param, "f")] [NativeName(NativeNameType.Type, "float")] float f) + public static void ResetMouseDragDelta( int button) { - float ret = ImSaturateNative(f); - return ret; + ResetMouseDragDeltaNative(button); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImLengthSqr_Vec2")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImLengthSqr_Vec2")] - internal static extern float ImLengthSqrNative([NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs); + [LibraryImport(LibName, EntryPoint = "igGetMouseCursor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetMouseCursorNative(); - [NativeName(NativeNameType.Func, "igImLengthSqr_Vec2")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImLengthSqr([NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs) + public static int GetMouseCursor() { - float ret = ImLengthSqrNative(lhs); + int ret = GetMouseCursorNative(); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImLengthSqr_Vec4")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImLengthSqr_Vec4")] - internal static extern float ImLengthSqrNative([NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 lhs); + [LibraryImport(LibName, EntryPoint = "igSetMouseCursor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetMouseCursorNative(int cursorType); - [NativeName(NativeNameType.Func, "igImLengthSqr_Vec4")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImLengthSqr([NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 lhs) + public static void SetMouseCursor( int cursorType) { - float ret = ImLengthSqrNative(lhs); - return ret; + SetMouseCursorNative(cursorType); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImInvLength")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImInvLength")] - internal static extern float ImInvLengthNative([NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs, [NativeName(NativeNameType.Param, "fail_value")] [NativeName(NativeNameType.Type, "float")] float failValue); + [LibraryImport(LibName, EntryPoint = "igSetNextFrameWantCaptureMouse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextFrameWantCaptureMouseNative(byte wantCaptureMouse); - [NativeName(NativeNameType.Func, "igImInvLength")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImInvLength([NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs, [NativeName(NativeNameType.Param, "fail_value")] [NativeName(NativeNameType.Type, "float")] float failValue) + public static void SetNextFrameWantCaptureMouse( bool wantCaptureMouse) { - float ret = ImInvLengthNative(lhs, failValue); - return ret; + SetNextFrameWantCaptureMouseNative(wantCaptureMouse ? (byte)1 : (byte)0); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFloor_Float")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFloor_Float")] - internal static extern float ImFloorNative([NativeName(NativeNameType.Param, "f")] [NativeName(NativeNameType.Type, "float")] float f); + [LibraryImport(LibName, EntryPoint = "igGetClipboardText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetClipboardTextNative(); - [NativeName(NativeNameType.Func, "igImFloor_Float")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImFloor([NativeName(NativeNameType.Param, "f")] [NativeName(NativeNameType.Type, "float")] float f) + public static byte* GetClipboardText() { - float ret = ImFloorNative(f); + byte* ret = GetClipboardTextNative(); return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImFloorSigned_Float")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFloorSigned_Float")] - internal static extern float ImFloorSignedNative([NativeName(NativeNameType.Param, "f")] [NativeName(NativeNameType.Type, "float")] float f); - - /// /// Decent replacement for floorf() /// [NativeName(NativeNameType.Func, "igImFloorSigned_Float")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImFloorSigned([NativeName(NativeNameType.Param, "f")] [NativeName(NativeNameType.Type, "float")] float f) + public static string GetClipboardTextS() { - float ret = ImFloorSignedNative(f); + string ret = Utils.DecodeStringUTF8(GetClipboardTextNative()); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFloor_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFloor_Vec2")] - internal static extern void ImFloorNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v); + [LibraryImport(LibName, EntryPoint = "igSetClipboardText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetClipboardTextNative(byte* text); - [NativeName(NativeNameType.Func, "igImFloor_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFloor([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v) + public static void SetClipboardText( byte* text) { - ImFloorNative(pOut, v); + SetClipboardTextNative(text); } - [NativeName(NativeNameType.Func, "igImFloor_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFloor([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLoadIniSettingsFromDisk")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LoadIniSettingsFromDiskNative(byte* iniFilename); + + public static void LoadIniSettingsFromDisk( byte* iniFilename) { - fixed (Vector2* ppOut = &pOut) - { - ImFloorNative((Vector2*)ppOut, v); - } + LoadIniSettingsFromDiskNative(iniFilename); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFloorSigned_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFloorSigned_Vec2")] - internal static extern void ImFloorSignedNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v); + [LibraryImport(LibName, EntryPoint = "igLoadIniSettingsFromMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LoadIniSettingsFromMemoryNative(byte* iniData, ulong iniSize); - [NativeName(NativeNameType.Func, "igImFloorSigned_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFloorSigned([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v) + public static void LoadIniSettingsFromMemory( byte* iniData, ulong iniSize) { - ImFloorSignedNative(pOut, v); + LoadIniSettingsFromMemoryNative(iniData, iniSize); } - [NativeName(NativeNameType.Func, "igImFloorSigned_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFloorSigned([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v) + public static void LoadIniSettingsFromMemory( byte* iniData) { - fixed (Vector2* ppOut = &pOut) - { - ImFloorSignedNative((Vector2*)ppOut, v); - } + LoadIniSettingsFromMemoryNative(iniData, (ulong)(0)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImModPositive")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImModPositive")] - internal static extern int ImModPositiveNative([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "int")] int a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "int")] int b); - - [NativeName(NativeNameType.Func, "igImModPositive")] - [return: NativeName(NativeNameType.Type, "int")] - public static int ImModPositive([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "int")] int a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "int")] int b) + public static void LoadIniSettingsFromMemory( byte* iniData, nuint iniSize) { - int ret = ImModPositiveNative(a, b); - return ret; + LoadIniSettingsFromMemoryNative(iniData, iniSize); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImDot")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImDot")] - internal static extern float ImDotNative([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b); + [LibraryImport(LibName, EntryPoint = "igSaveIniSettingsToDisk")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SaveIniSettingsToDiskNative(byte* iniFilename); - [NativeName(NativeNameType.Func, "igImDot")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImDot([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b) + public static void SaveIniSettingsToDisk( byte* iniFilename) { - float ret = ImDotNative(a, b); - return ret; + SaveIniSettingsToDiskNative(iniFilename); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImRotate")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImRotate")] - internal static extern void ImRotateNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v, [NativeName(NativeNameType.Param, "cos_a")] [NativeName(NativeNameType.Type, "float")] float cosA, [NativeName(NativeNameType.Param, "sin_a")] [NativeName(NativeNameType.Type, "float")] float sinA); + [LibraryImport(LibName, EntryPoint = "igSaveIniSettingsToMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SaveIniSettingsToMemoryNative(ulong* outIniSize); - [NativeName(NativeNameType.Func, "igImRotate")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImRotate([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v, [NativeName(NativeNameType.Param, "cos_a")] [NativeName(NativeNameType.Type, "float")] float cosA, [NativeName(NativeNameType.Param, "sin_a")] [NativeName(NativeNameType.Type, "float")] float sinA) + public static byte* SaveIniSettingsToMemory( ulong* outIniSize) { - ImRotateNative(pOut, v, cosA, sinA); + byte* ret = SaveIniSettingsToMemoryNative(outIniSize); + return ret; } - [NativeName(NativeNameType.Func, "igImRotate")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImRotate([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 v, [NativeName(NativeNameType.Param, "cos_a")] [NativeName(NativeNameType.Type, "float")] float cosA, [NativeName(NativeNameType.Param, "sin_a")] [NativeName(NativeNameType.Type, "float")] float sinA) + public static string SaveIniSettingsToMemoryS() { - fixed (Vector2* ppOut = &pOut) - { - ImRotateNative((Vector2*)ppOut, v, cosA, sinA); - } + string ret = Utils.DecodeStringUTF8(SaveIniSettingsToMemoryNative((ulong*)(default))); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImLinearSweep")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImLinearSweep")] - internal static extern float ImLinearSweepNative([NativeName(NativeNameType.Param, "current")] [NativeName(NativeNameType.Type, "float")] float current, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "float")] float target, [NativeName(NativeNameType.Param, "speed")] [NativeName(NativeNameType.Type, "float")] float speed); + [LibraryImport(LibName, EntryPoint = "igDebugTextEncoding")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugTextEncodingNative(byte* text); - [NativeName(NativeNameType.Func, "igImLinearSweep")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImLinearSweep([NativeName(NativeNameType.Param, "current")] [NativeName(NativeNameType.Type, "float")] float current, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "float")] float target, [NativeName(NativeNameType.Param, "speed")] [NativeName(NativeNameType.Type, "float")] float speed) + public static void DebugTextEncoding( byte* text) { - float ret = ImLinearSweepNative(current, target, speed); - return ret; + DebugTextEncodingNative(text); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImMul")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImMul")] - internal static extern void ImMulNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs, [NativeName(NativeNameType.Param, "rhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rhs); + [LibraryImport(LibName, EntryPoint = "igDebugCheckVersionAndDataLayout")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DebugCheckVersionAndDataLayoutNative(byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx); - [NativeName(NativeNameType.Func, "igImMul")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImMul([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs, [NativeName(NativeNameType.Param, "rhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rhs) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) { - ImMulNative(pOut, lhs, rhs); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImMul")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImMul([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "lhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 lhs, [NativeName(NativeNameType.Param, "rhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rhs) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) { - fixed (Vector2* ppOut = &pOut) - { - ImMulNative((Vector2*)ppOut, lhs, rhs); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImIsFloatAboveGuaranteedIntegerPrecision")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImIsFloatAboveGuaranteedIntegerPrecision")] - internal static extern byte ImIsFloatAboveGuaranteedIntegerPrecisionNative([NativeName(NativeNameType.Param, "f")] [NativeName(NativeNameType.Type, "float")] float f); - - [NativeName(NativeNameType.Func, "igImIsFloatAboveGuaranteedIntegerPrecision")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImIsFloatAboveGuaranteedIntegerPrecision([NativeName(NativeNameType.Param, "f")] [NativeName(NativeNameType.Type, "float")] float f) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) { - byte ret = ImIsFloatAboveGuaranteedIntegerPrecisionNative(f); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImExponentialMovingAverage")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImExponentialMovingAverage")] - internal static extern float ImExponentialMovingAverageNative([NativeName(NativeNameType.Param, "avg")] [NativeName(NativeNameType.Type, "float")] float avg, [NativeName(NativeNameType.Param, "sample")] [NativeName(NativeNameType.Type, "float")] float sample, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); - - [NativeName(NativeNameType.Func, "igImExponentialMovingAverage")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImExponentialMovingAverage([NativeName(NativeNameType.Param, "avg")] [NativeName(NativeNameType.Type, "float")] float avg, [NativeName(NativeNameType.Param, "sample")] [NativeName(NativeNameType.Type, "float")] float sample, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) { - float ret = ImExponentialMovingAverageNative(avg, sample, n); - return ret; + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImBezierCubicCalc")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImBezierCubicCalc")] - internal static extern void ImBezierCubicCalcNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t); - - [NativeName(NativeNameType.Func, "igImBezierCubicCalc")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBezierCubicCalc([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) { - ImBezierCubicCalcNative(pOut, p1, p2, p3, p4, t); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImBezierCubicCalc")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBezierCubicCalc([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) { - fixed (Vector2* ppOut = &pOut) - { - ImBezierCubicCalcNative((Vector2*)ppOut, p1, p2, p3, p4, t); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImBezierCubicClosestPoint")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImBezierCubicClosestPoint")] - internal static extern void ImBezierCubicClosestPointNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments); - - /// /// For curves with explicit number of segments /// [NativeName(NativeNameType.Func, "igImBezierCubicClosestPoint")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBezierCubicClosestPoint([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) { - ImBezierCubicClosestPointNative(pOut, p1, p2, p3, p4, p, numSegments); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// /// For curves with explicit number of segments /// [NativeName(NativeNameType.Func, "igImBezierCubicClosestPoint")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBezierCubicClosestPoint([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, ulong szDrawidx) { - fixed (Vector2* ppOut = &pOut) - { - ImBezierCubicClosestPointNative((Vector2*)ppOut, p1, p2, p3, p4, p, numSegments); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImBezierCubicClosestPointCasteljau")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImBezierCubicClosestPointCasteljau")] - internal static extern void ImBezierCubicClosestPointCasteljauNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "tess_tol")] [NativeName(NativeNameType.Type, "float")] float tessTol); - - /// /// For auto-tessellated curves you can use tess_tol = style.CurveTessellationTol /// [NativeName(NativeNameType.Func, "igImBezierCubicClosestPointCasteljau")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBezierCubicClosestPointCasteljau([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "tess_tol")] [NativeName(NativeNameType.Type, "float")] float tessTol) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) { - ImBezierCubicClosestPointCasteljauNative(pOut, p1, p2, p3, p4, p, tessTol); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// /// For auto-tessellated curves you can use tess_tol = style.CurveTessellationTol /// [NativeName(NativeNameType.Func, "igImBezierCubicClosestPointCasteljau")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBezierCubicClosestPointCasteljau([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "tess_tol")] [NativeName(NativeNameType.Type, "float")] float tessTol) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) { - fixed (Vector2* ppOut = &pOut) - { - ImBezierCubicClosestPointCasteljauNative((Vector2*)ppOut, p1, p2, p3, p4, p, tessTol); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImBezierQuadraticCalc")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImBezierQuadraticCalc")] - internal static extern void ImBezierQuadraticCalcNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t); - - [NativeName(NativeNameType.Func, "igImBezierQuadraticCalc")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBezierQuadraticCalc([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) { - ImBezierQuadraticCalcNative(pOut, p1, p2, p3, t); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImBezierQuadraticCalc")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBezierQuadraticCalc([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "float")] float t) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) { - fixed (Vector2* ppOut = &pOut) - { - ImBezierQuadraticCalcNative((Vector2*)ppOut, p1, p2, p3, t); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImLineClosestPoint")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImLineClosestPoint")] - internal static extern void ImLineClosestPointNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p); - - [NativeName(NativeNameType.Func, "igImLineClosestPoint")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImLineClosestPoint([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) { - ImLineClosestPointNative(pOut, a, b, p); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImLineClosestPoint")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImLineClosestPoint([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) { - fixed (Vector2* ppOut = &pOut) - { - ImLineClosestPointNative((Vector2*)ppOut, a, b, p); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImTriangleContainsPoint")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImTriangleContainsPoint")] - internal static extern byte ImTriangleContainsPointNative([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p); - - [NativeName(NativeNameType.Func, "igImTriangleContainsPoint")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImTriangleContainsPoint([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) { - byte ret = ImTriangleContainsPointNative(a, b, c, p); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImTriangleClosestPoint")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImTriangleClosestPoint")] - internal static extern void ImTriangleClosestPointNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p); - - [NativeName(NativeNameType.Func, "igImTriangleClosestPoint")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImTriangleClosestPoint([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, ulong szDrawidx) { - ImTriangleClosestPointNative(pOut, a, b, c, p); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImTriangleClosestPoint")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImTriangleClosestPoint([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) { - fixed (Vector2* ppOut = &pOut) - { - ImTriangleClosestPointNative((Vector2*)ppOut, a, b, c, p); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImTriangleBarycentricCoords")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImTriangleBarycentricCoords")] - internal static extern void ImTriangleBarycentricCoordsNative([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "out_u")] [NativeName(NativeNameType.Type, "float*")] float* outU, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] float* outV, [NativeName(NativeNameType.Param, "out_w")] [NativeName(NativeNameType.Type, "float*")] float* outW); - - [NativeName(NativeNameType.Func, "igImTriangleBarycentricCoords")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImTriangleBarycentricCoords([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "out_u")] [NativeName(NativeNameType.Type, "float*")] float* outU, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] float* outV, [NativeName(NativeNameType.Param, "out_w")] [NativeName(NativeNameType.Type, "float*")] float* outW) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, outW); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImTriangleBarycentricCoords")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImTriangleBarycentricCoords([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "out_u")] [NativeName(NativeNameType.Type, "float*")] ref float outU, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] float* outV, [NativeName(NativeNameType.Param, "out_w")] [NativeName(NativeNameType.Type, "float*")] float* outW) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) { - fixed (float* poutU = &outU) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, outW); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImTriangleBarycentricCoords")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImTriangleBarycentricCoords([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "out_u")] [NativeName(NativeNameType.Type, "float*")] float* outU, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] ref float outV, [NativeName(NativeNameType.Param, "out_w")] [NativeName(NativeNameType.Type, "float*")] float* outW) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) { - fixed (float* poutV = &outV) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, outW); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImTriangleBarycentricCoords")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImTriangleBarycentricCoords([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "out_u")] [NativeName(NativeNameType.Type, "float*")] ref float outU, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] ref float outV, [NativeName(NativeNameType.Param, "out_w")] [NativeName(NativeNameType.Type, "float*")] float* outW) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) { - fixed (float* poutU = &outU) - { - fixed (float* poutV = &outV) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, outW); - } - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImTriangleBarycentricCoords")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImTriangleBarycentricCoords([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "out_u")] [NativeName(NativeNameType.Type, "float*")] float* outU, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] float* outV, [NativeName(NativeNameType.Param, "out_w")] [NativeName(NativeNameType.Type, "float*")] ref float outW) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, (float*)poutW); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImTriangleBarycentricCoords")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImTriangleBarycentricCoords([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "out_u")] [NativeName(NativeNameType.Type, "float*")] ref float outU, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] float* outV, [NativeName(NativeNameType.Param, "out_w")] [NativeName(NativeNameType.Type, "float*")] ref float outW) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) { - fixed (float* poutU = &outU) - { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, (float*)poutW); - } - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImTriangleBarycentricCoords")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImTriangleBarycentricCoords([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "out_u")] [NativeName(NativeNameType.Type, "float*")] float* outU, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] ref float outV, [NativeName(NativeNameType.Param, "out_w")] [NativeName(NativeNameType.Type, "float*")] ref float outW) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, ulong szDrawidx) { - fixed (float* poutV = &outV) - { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, (float*)poutW); - } - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "igImTriangleBarycentricCoords")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImTriangleBarycentricCoords([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p, [NativeName(NativeNameType.Param, "out_u")] [NativeName(NativeNameType.Type, "float*")] ref float outU, [NativeName(NativeNameType.Param, "out_v")] [NativeName(NativeNameType.Type, "float*")] ref float outV, [NativeName(NativeNameType.Param, "out_w")] [NativeName(NativeNameType.Type, "float*")] ref float outW) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) { - fixed (float* poutU = &outU) - { - fixed (float* poutV = &outV) - { - fixed (float* poutW = &outW) - { - ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, (float*)poutW); - } - } - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igImTriangleArea")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImTriangleArea")] - internal static extern float ImTriangleAreaNative([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "igImTriangleArea")] - [return: NativeName(NativeNameType.Type, "float")] - public static float ImTriangleArea([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) { - float ret = ImTriangleAreaNative(a, b, c); - return ret; + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImVec1_ImVec1_Nil")] - [return: NativeName(NativeNameType.Type, "ImVec1*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec1_ImVec1_Nil")] - internal static extern ImVec1* ImVec1Native(); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImVec1_ImVec1_Nil")] - [return: NativeName(NativeNameType.Type, "ImVec1*")] - public static ImVec1* ImVec1() + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) { - ImVec1* ret = ImVec1Native(); - return ret; + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImVec1_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec1_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec1*")] ImVec1* self); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImVec1_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec1*")] ImVec1* self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) { - DestroyNative(self); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImVec1_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec1*")] ref ImVec1 self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, ulong szDrawidx) { - fixed (ImVec1* pself = &self) - { - DestroyNative((ImVec1*)pself); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImVec1_ImVec1_Float")] - [return: NativeName(NativeNameType.Type, "ImVec1*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec1_ImVec1_Float")] - internal static extern ImVec1* ImVec1Native([NativeName(NativeNameType.Param, "_x")] [NativeName(NativeNameType.Type, "float")] float X); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImVec1_ImVec1_Float")] - [return: NativeName(NativeNameType.Type, "ImVec1*")] - public static ImVec1* ImVec1([NativeName(NativeNameType.Param, "_x")] [NativeName(NativeNameType.Type, "float")] float X) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) { - ImVec1* ret = ImVec1Native(X); - return ret; + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImVec2ih_ImVec2ih_Nil")] - [return: NativeName(NativeNameType.Type, "ImVec2ih*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec2ih_ImVec2ih_Nil")] - internal static extern ImVec2Ih* ImVec2ihNative(); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImVec2ih_ImVec2ih_Nil")] - [return: NativeName(NativeNameType.Type, "ImVec2ih*")] - public static ImVec2Ih* ImVec2ih() + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) { - ImVec2Ih* ret = ImVec2ihNative(); - return ret; + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImVec2ih_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec2ih_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec2ih*")] ImVec2Ih* self); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImVec2ih_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec2ih*")] ImVec2Ih* self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) { - DestroyNative(self); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImVec2ih_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVec2ih*")] ref ImVec2Ih self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) { - fixed (ImVec2Ih* pself = &self) - { - DestroyNative((ImVec2Ih*)pself); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImVec2ih_ImVec2ih_short")] - [return: NativeName(NativeNameType.Type, "ImVec2ih*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec2ih_ImVec2ih_short")] - internal static extern ImVec2Ih* ImVec2ihNative([NativeName(NativeNameType.Param, "_x")] [NativeName(NativeNameType.Type, "short")] short X, [NativeName(NativeNameType.Param, "_y")] [NativeName(NativeNameType.Type, "short")] short Y); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImVec2ih_ImVec2ih_short")] - [return: NativeName(NativeNameType.Type, "ImVec2ih*")] - public static ImVec2Ih* ImVec2ih([NativeName(NativeNameType.Param, "_x")] [NativeName(NativeNameType.Type, "short")] short X, [NativeName(NativeNameType.Param, "_y")] [NativeName(NativeNameType.Type, "short")] short Y) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) { - ImVec2Ih* ret = ImVec2ihNative(X, Y); - return ret; + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImVec2ih_ImVec2ih_Vec2")] - [return: NativeName(NativeNameType.Type, "ImVec2ih*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVec2ih_ImVec2ih_Vec2")] - internal static extern ImVec2Ih* ImVec2ihNative([NativeName(NativeNameType.Param, "rhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rhs); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImVec2ih_ImVec2ih_Vec2")] - [return: NativeName(NativeNameType.Type, "ImVec2ih*")] - public static ImVec2Ih* ImVec2ih([NativeName(NativeNameType.Param, "rhs")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rhs) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) { - ImVec2Ih* ret = ImVec2ihNative(rhs); - return ret; + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImRect_ImRect_Nil")] - [return: NativeName(NativeNameType.Type, "ImRect*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_ImRect_Nil")] - internal static extern ImRect* ImRectNative(); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImRect_ImRect_Nil")] - [return: NativeName(NativeNameType.Type, "ImRect*")] - public static ImRect* ImRect() + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) { - ImRect* ret = ImRectNative(); - return ret; + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImRect_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImRect_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) { - DestroyNative(self); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImRect_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, ulong szDrawvert, nuint szDrawidx) { - fixed (ImRect* pself = &self) - { - DestroyNative((ImRect*)pself); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImRect_ImRect_Vec2")] - [return: NativeName(NativeNameType.Type, "ImRect*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_ImRect_Vec2")] - internal static extern ImRect* ImRectNative([NativeName(NativeNameType.Param, "min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 min, [NativeName(NativeNameType.Param, "max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 max); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImRect_ImRect_Vec2")] - [return: NativeName(NativeNameType.Type, "ImRect*")] - public static ImRect* ImRect([NativeName(NativeNameType.Param, "min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 min, [NativeName(NativeNameType.Param, "max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 max) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) { - ImRect* ret = ImRectNative(min, max); - return ret; + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImRect_ImRect_Vec4")] - [return: NativeName(NativeNameType.Type, "ImRect*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_ImRect_Vec4")] - internal static extern ImRect* ImRectNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 v); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImRect_ImRect_Vec4")] - [return: NativeName(NativeNameType.Type, "ImRect*")] - public static ImRect* ImRect([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 v) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) { - ImRect* ret = ImRectNative(v); - return ret; + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImRect_ImRect_Float")] - [return: NativeName(NativeNameType.Type, "ImRect*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_ImRect_Float")] - internal static extern ImRect* ImRectNative([NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "float")] float x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "float")] float y1, [NativeName(NativeNameType.Param, "x2")] [NativeName(NativeNameType.Type, "float")] float x2, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "float")] float y2); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImRect_ImRect_Float")] - [return: NativeName(NativeNameType.Type, "ImRect*")] - public static ImRect* ImRect([NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "float")] float x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "float")] float y1, [NativeName(NativeNameType.Param, "x2")] [NativeName(NativeNameType.Type, "float")] float x2, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "float")] float y2) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) { - ImRect* ret = ImRectNative(x1, y1, x2, y2); - return ret; + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImRect_GetCenter")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_GetCenter")] - internal static extern void GetCenterNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImRect_GetCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, ulong szvec4, nuint szDrawvert, nuint szDrawidx) { - GetCenterNative(pOut, self); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImRect_GetCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { - fixed (Vector2* ppOut = &pOut) - { - GetCenterNative((Vector2*)ppOut, self); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImRect_GetCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { - fixed (ImRect* pself = &self) - { - GetCenterNative(pOut, (ImRect*)pself); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImRect_GetCenter")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetCenter([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetCenterNative((Vector2*)ppOut, (ImRect*)pself); - } - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImRect_GetSize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_GetSize")] - internal static extern void GetSizeNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, ulong szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) + { + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; + } - [NativeName(NativeNameType.Func, "ImRect_GetSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { - GetSizeNative(pOut, self); + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImRect_GetSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, ulong szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { - fixed (Vector2* ppOut = &pOut) - { - GetSizeNative((Vector2*)ppOut, self); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImRect_GetSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, ulong szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { - fixed (ImRect* pself = &self) - { - GetSizeNative(pOut, (ImRect*)pself); - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImRect_GetSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static bool DebugCheckVersionAndDataLayout( byte* versionStr, nuint szIo, nuint szStyle, nuint szvec2, nuint szvec4, nuint szDrawvert, nuint szDrawidx) { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetSizeNative((Vector2*)ppOut, (ImRect*)pself); - } - } + byte ret = DebugCheckVersionAndDataLayoutNative(versionStr, szIo, szStyle, szvec2, szvec4, szDrawvert, szDrawidx); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_GetWidth")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_GetWidth")] - internal static extern float GetWidthNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + [LibraryImport(LibName, EntryPoint = "igSetAllocatorFunctions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetAllocatorFunctionsNative(ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData); - [NativeName(NativeNameType.Func, "ImRect_GetWidth")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetWidth([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static void SetAllocatorFunctions( ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc, void* userData) { - float ret = GetWidthNative(self); - return ret; + SetAllocatorFunctionsNative(allocFunc, freeFunc, userData); } - [NativeName(NativeNameType.Func, "ImRect_GetWidth")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetWidth([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static void SetAllocatorFunctions( ImGuiMemAllocFunc allocFunc, ImGuiMemFreeFunc freeFunc) { - fixed (ImRect* pself = &self) - { - float ret = GetWidthNative((ImRect*)pself); - return ret; - } + SetAllocatorFunctionsNative(allocFunc, freeFunc, (void*)(default)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_GetHeight")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_GetHeight")] - internal static extern float GetHeightNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + [LibraryImport(LibName, EntryPoint = "igGetAllocatorFunctions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetAllocatorFunctionsNative(ImGuiMemAllocFunc pAllocFunc, ImGuiMemFreeFunc pFreeFunc, void** pUserData); - [NativeName(NativeNameType.Func, "ImRect_GetHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetHeight([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static void GetAllocatorFunctions( ImGuiMemAllocFunc pAllocFunc, ImGuiMemFreeFunc pFreeFunc, void** pUserData) { - float ret = GetHeightNative(self); - return ret; - } - - [NativeName(NativeNameType.Func, "ImRect_GetHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetHeight([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) - { - fixed (ImRect* pself = &self) - { - float ret = GetHeightNative((ImRect*)pself); - return ret; - } + GetAllocatorFunctionsNative(pAllocFunc, pFreeFunc, pUserData); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_GetArea")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_GetArea")] - internal static extern float GetAreaNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + [LibraryImport(LibName, EntryPoint = "igMemAlloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* MemAllocNative(ulong size); - [NativeName(NativeNameType.Func, "ImRect_GetArea")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetArea([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static void* MemAlloc( ulong size) { - float ret = GetAreaNative(self); + void* ret = MemAllocNative(size); return ret; } - [NativeName(NativeNameType.Func, "ImRect_GetArea")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetArea([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) - { - fixed (ImRect* pself = &self) - { - float ret = GetAreaNative((ImRect*)pself); - return ret; - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_GetTL")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_GetTL")] - internal static extern void GetTLNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + [LibraryImport(LibName, EntryPoint = "igMemFree")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void MemFreeNative(void* ptr); - /// /// Top-left /// [NativeName(NativeNameType.Func, "ImRect_GetTL")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTL([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static void MemFree( void* ptr) { - GetTLNative(pOut, self); + MemFreeNative(ptr); } - /// /// Top-left /// [NativeName(NativeNameType.Func, "ImRect_GetTL")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTL([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) - { - fixed (Vector2* ppOut = &pOut) - { - GetTLNative((Vector2*)ppOut, self); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetPlatformIO")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPlatformIO* GetPlatformIONative(); - /// /// Top-left /// [NativeName(NativeNameType.Func, "ImRect_GetTL")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTL([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static ImGuiPlatformIO* GetPlatformIO() { - fixed (ImRect* pself = &self) - { - GetTLNative(pOut, (ImRect*)pself); - } + ImGuiPlatformIO* ret = GetPlatformIONative(); + return ret; } - /// /// Top-left /// [NativeName(NativeNameType.Func, "ImRect_GetTL")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTL([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdatePlatformWindows")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdatePlatformWindowsNative(); + + public static void UpdatePlatformWindows() { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetTLNative((Vector2*)ppOut, (ImRect*)pself); - } - } + UpdatePlatformWindowsNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_GetTR")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_GetTR")] - internal static extern void GetTRNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + [LibraryImport(LibName, EntryPoint = "igRenderPlatformWindowsDefault")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderPlatformWindowsDefaultNative(void* platformRenderArg, void* rendererRenderArg); - /// /// Top-right /// [NativeName(NativeNameType.Func, "ImRect_GetTR")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTR([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static void RenderPlatformWindowsDefault( void* platformRenderArg, void* rendererRenderArg) { - GetTRNative(pOut, self); + RenderPlatformWindowsDefaultNative(platformRenderArg, rendererRenderArg); } - /// /// Top-right /// [NativeName(NativeNameType.Func, "ImRect_GetTR")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTR([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static void RenderPlatformWindowsDefault( void* platformRenderArg) { - fixed (Vector2* ppOut = &pOut) - { - GetTRNative((Vector2*)ppOut, self); - } + RenderPlatformWindowsDefaultNative(platformRenderArg, (void*)(default)); } - /// /// Top-right /// [NativeName(NativeNameType.Func, "ImRect_GetTR")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTR([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetTRNative(pOut, (ImRect*)pself); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDestroyPlatformWindows")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyPlatformWindowsNative(); - /// /// Top-right /// [NativeName(NativeNameType.Func, "ImRect_GetTR")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTR([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static void DestroyPlatformWindows() { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetTRNative((Vector2*)ppOut, (ImRect*)pself); - } - } + DestroyPlatformWindowsNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_GetBL")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_GetBL")] - internal static extern void GetBLNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + [LibraryImport(LibName, EntryPoint = "igFindViewportByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewport* FindViewportByIDNative(uint id); - /// /// Bottom-left /// [NativeName(NativeNameType.Func, "ImRect_GetBL")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBL([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static ImGuiViewport* FindViewportByID( uint id) { - GetBLNative(pOut, self); + ImGuiViewport* ret = FindViewportByIDNative(id); + return ret; } - /// /// Bottom-left /// [NativeName(NativeNameType.Func, "ImRect_GetBL")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBL([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) - { - fixed (Vector2* ppOut = &pOut) - { - GetBLNative((Vector2*)ppOut, self); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindViewportByPlatformHandle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewport* FindViewportByPlatformHandleNative(void* platformHandle); - /// /// Bottom-left /// [NativeName(NativeNameType.Func, "ImRect_GetBL")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBL([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static ImGuiViewport* FindViewportByPlatformHandle( void* platformHandle) { - fixed (ImRect* pself = &self) - { - GetBLNative(pOut, (ImRect*)pself); - } + ImGuiViewport* ret = FindViewportByPlatformHandleNative(platformHandle); + return ret; } - /// /// Bottom-left /// [NativeName(NativeNameType.Func, "ImRect_GetBL")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBL([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyle_ImGuiStyle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStyle* ImGuiStyleNative(); + + public static ImGuiStyle* ImGuiStyle() { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetBLNative((Vector2*)ppOut, (ImRect*)pself); - } - } + ImGuiStyle* ret = ImGuiStyleNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_GetBR")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_GetBR")] - internal static extern void GetBRNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + [LibraryImport(LibName, EntryPoint = "ImGuiStyle_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiStyle* self); - /// /// Bottom-right /// [NativeName(NativeNameType.Func, "ImRect_GetBR")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBR([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) - { - GetBRNative(pOut, self); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyle_ScaleAllSizes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScaleAllSizesNative(ImGuiStyle* self, float scaleFactor); - /// /// Bottom-right /// [NativeName(NativeNameType.Func, "ImRect_GetBR")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBR([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static void ScaleAllSizes( ImGuiStyle* self, float scaleFactor) { - fixed (Vector2* ppOut = &pOut) - { - GetBRNative((Vector2*)ppOut, self); - } + ScaleAllSizesNative(self, scaleFactor); } - /// /// Bottom-right /// [NativeName(NativeNameType.Func, "ImRect_GetBR")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBR([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) - { - fixed (ImRect* pself = &self) - { - GetBRNative(pOut, (ImRect*)pself); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddKeyEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddKeyEventNative(ImGuiIO* self, ImGuiKey key, byte down); - /// /// Bottom-right /// [NativeName(NativeNameType.Func, "ImRect_GetBR")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBR([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static void AddKeyEvent( ImGuiIO* self, ImGuiKey key, bool down) { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImRect* pself = &self) - { - GetBRNative((Vector2*)ppOut, (ImRect*)pself); - } - } + AddKeyEventNative(self, key, down ? (byte)1 : (byte)0); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_Contains_Vec2")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_Contains_Vec2")] - internal static extern byte ContainsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p); - - [NativeName(NativeNameType.Func, "ImRect_Contains_Vec2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Contains([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) - { - byte ret = ContainsNative(self, p); - return ret != 0; - } + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddKeyAnalogEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddKeyAnalogEventNative(ImGuiIO* self, ImGuiKey key, byte down, float v); - [NativeName(NativeNameType.Func, "ImRect_Contains_Vec2")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Contains([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) + public static void AddKeyAnalogEvent( ImGuiIO* self, ImGuiKey key, bool down, float v) { - fixed (ImRect* pself = &self) - { - byte ret = ContainsNative((ImRect*)pself, p); - return ret != 0; - } + AddKeyAnalogEventNative(self, key, down ? (byte)1 : (byte)0, v); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_Contains_Rect")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_Contains_Rect")] - internal static extern byte ContainsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r); + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddMousePosEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddMousePosEventNative(ImGuiIO* self, float x, float y); - [NativeName(NativeNameType.Func, "ImRect_Contains_Rect")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Contains([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void AddMousePosEvent( ImGuiIO* self, float x, float y) { - byte ret = ContainsNative(self, r); - return ret != 0; + AddMousePosEventNative(self, x, y); } - [NativeName(NativeNameType.Func, "ImRect_Contains_Rect")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Contains([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddMouseButtonEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddMouseButtonEventNative(ImGuiIO* self, int button, byte down); + + public static void AddMouseButtonEvent( ImGuiIO* self, int button, bool down) { - fixed (ImRect* pself = &self) - { - byte ret = ContainsNative((ImRect*)pself, r); - return ret != 0; - } + AddMouseButtonEventNative(self, button, down ? (byte)1 : (byte)0); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_Overlaps")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_Overlaps")] - internal static extern byte OverlapsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r); + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddMouseWheelEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddMouseWheelEventNative(ImGuiIO* self, float wheelX, float wheelY); - [NativeName(NativeNameType.Func, "ImRect_Overlaps")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Overlaps([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void AddMouseWheelEvent( ImGuiIO* self, float wheelX, float wheelY) { - byte ret = OverlapsNative(self, r); - return ret != 0; + AddMouseWheelEventNative(self, wheelX, wheelY); } - [NativeName(NativeNameType.Func, "ImRect_Overlaps")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Overlaps([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddMouseSourceEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddMouseSourceEventNative(ImGuiIO* self, ImGuiMouseSource source); + + public static void AddMouseSourceEvent( ImGuiIO* self, ImGuiMouseSource source) { - fixed (ImRect* pself = &self) - { - byte ret = OverlapsNative((ImRect*)pself, r); - return ret != 0; - } + AddMouseSourceEventNative(self, source); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_Add_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_Add_Vec2")] - internal static extern void AddNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p); + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddMouseViewportEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddMouseViewportEventNative(ImGuiIO* self, uint id); - [NativeName(NativeNameType.Func, "ImRect_Add_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Add([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) + public static void AddMouseViewportEvent( ImGuiIO* self, uint id) { - AddNative(self, p); + AddMouseViewportEventNative(self, id); } - [NativeName(NativeNameType.Func, "ImRect_Add_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Add([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddFocusEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddFocusEventNative(ImGuiIO* self, byte focused); + + public static void AddFocusEvent( ImGuiIO* self, bool focused) { - fixed (ImRect* pself = &self) - { - AddNative((ImRect*)pself, p); - } + AddFocusEventNative(self, focused ? (byte)1 : (byte)0); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_Add_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_Add_Rect")] - internal static extern void AddNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r); + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddInputCharacter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddInputCharacterNative(ImGuiIO* self, uint c); - [NativeName(NativeNameType.Func, "ImRect_Add_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Add([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void AddInputCharacter( ImGuiIO* self, uint c) { - AddNative(self, r); + AddInputCharacterNative(self, c); } - [NativeName(NativeNameType.Func, "ImRect_Add_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Add([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddInputCharacterUTF16")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddInputCharacterUTF16Native(ImGuiIO* self, ushort c); + + public static void AddInputCharacterUTF16( ImGuiIO* self, ushort c) { - fixed (ImRect* pself = &self) - { - AddNative((ImRect*)pself, r); - } + AddInputCharacterUTF16Native(self, c); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_Expand_Float")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_Expand_Float")] - internal static extern void ExpandNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "amount")] [NativeName(NativeNameType.Type, "const float")] float amount); + [LibraryImport(LibName, EntryPoint = "ImGuiIO_AddInputCharactersUTF8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddInputCharactersUTF8Native(ImGuiIO* self, byte* str); - [NativeName(NativeNameType.Func, "ImRect_Expand_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Expand([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "amount")] [NativeName(NativeNameType.Type, "const float")] float amount) + public static void AddInputCharactersUTF8( ImGuiIO* self, byte* str) { - ExpandNative(self, amount); + AddInputCharactersUTF8Native(self, str); } - [NativeName(NativeNameType.Func, "ImRect_Expand_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Expand([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "amount")] [NativeName(NativeNameType.Type, "const float")] float amount) + public static void AddInputCharactersUTF8( ImGuiIO* self, ref byte str) { - fixed (ImRect* pself = &self) + fixed (byte* pstr = &str) { - ExpandNative((ImRect*)pself, amount); + AddInputCharactersUTF8Native(self, (byte*)pstr); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImRect_Expand_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_Expand_Vec2")] - internal static extern void ExpandNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "amount")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 amount); - - [NativeName(NativeNameType.Func, "ImRect_Expand_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Expand([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "amount")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 amount) - { - ExpandNative(self, amount); - } - - [NativeName(NativeNameType.Func, "ImRect_Expand_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Expand([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "amount")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 amount) + public static void AddInputCharactersUTF8( ImGuiIO* self, string str) { - fixed (ImRect* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddInputCharactersUTF8Native(self, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - ExpandNative((ImRect*)pself, amount); + Utils.Free(pStr0); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_Translate")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_Translate")] - internal static extern void TranslateNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 d); + [LibraryImport(LibName, EntryPoint = "ImGuiIO_SetKeyEventNativeData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetKeyEventNativeDataNative(ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex); - [NativeName(NativeNameType.Func, "ImRect_Translate")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Translate([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 d) + public static void SetKeyEventNativeData( ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) { - TranslateNative(self, d); + SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, nativeLegacyIndex); } - [NativeName(NativeNameType.Func, "ImRect_Translate")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Translate([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 d) + public static void SetKeyEventNativeData( ImGuiIO* self, ImGuiKey key, int nativeKeycode, int nativeScancode) { - fixed (ImRect* pself = &self) - { - TranslateNative((ImRect*)pself, d); - } + SetKeyEventNativeDataNative(self, key, nativeKeycode, nativeScancode, (int)(-1)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_TranslateX")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_TranslateX")] - internal static extern void TranslateXNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "dx")] [NativeName(NativeNameType.Type, "float")] float dx); + [LibraryImport(LibName, EntryPoint = "ImGuiIO_SetAppAcceptingEvents")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetAppAcceptingEventsNative(ImGuiIO* self, byte acceptingEvents); - [NativeName(NativeNameType.Func, "ImRect_TranslateX")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TranslateX([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "dx")] [NativeName(NativeNameType.Type, "float")] float dx) + public static void SetAppAcceptingEvents( ImGuiIO* self, bool acceptingEvents) { - TranslateXNative(self, dx); + SetAppAcceptingEventsNative(self, acceptingEvents ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "ImRect_TranslateX")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TranslateX([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "dx")] [NativeName(NativeNameType.Type, "float")] float dx) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_ClearEventsQueue")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearEventsQueueNative(ImGuiIO* self); + + public static void ClearEventsQueue( ImGuiIO* self) { - fixed (ImRect* pself = &self) - { - TranslateXNative((ImRect*)pself, dx); - } + ClearEventsQueueNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_TranslateY")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_TranslateY")] - internal static extern void TranslateYNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "dy")] [NativeName(NativeNameType.Type, "float")] float dy); + [LibraryImport(LibName, EntryPoint = "ImGuiIO_ClearInputKeys")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearInputKeysNative(ImGuiIO* self); - [NativeName(NativeNameType.Func, "ImRect_TranslateY")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TranslateY([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "dy")] [NativeName(NativeNameType.Type, "float")] float dy) + public static void ClearInputKeys( ImGuiIO* self) { - TranslateYNative(self, dy); + ClearInputKeysNative(self); } - [NativeName(NativeNameType.Func, "ImRect_TranslateY")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TranslateY([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "dy")] [NativeName(NativeNameType.Type, "float")] float dy) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIO_ImGuiIO")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiIO* ImGuiIONative(); + + public static ImGuiIO* ImGuiIO() { - fixed (ImRect* pself = &self) - { - TranslateYNative((ImRect*)pself, dy); - } + ImGuiIO* ret = ImGuiIONative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_ClipWith")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_ClipWith")] - internal static extern void ClipWithNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r); + [LibraryImport(LibName, EntryPoint = "ImGuiIO_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiIO* self); - /// /// Simple version, may lead to an inverted rectangle, which is fine for ContainsOverlaps test but not for display. /// [NativeName(NativeNameType.Func, "ImRect_ClipWith")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClipWith([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) - { - ClipWithNative(self, r); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiInputTextCallbackData* ImGuiInputTextCallbackDataNative(); - /// /// Simple version, may lead to an inverted rectangle, which is fine for ContainsOverlaps test but not for display. /// [NativeName(NativeNameType.Func, "ImRect_ClipWith")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClipWith([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static ImGuiInputTextCallbackData* ImGuiInputTextCallbackData() { - fixed (ImRect* pself = &self) - { - ClipWithNative((ImRect*)pself, r); - } + ImGuiInputTextCallbackData* ret = ImGuiInputTextCallbackDataNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_ClipWithFull")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_ClipWithFull")] - internal static extern void ClipWithFullNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r); + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiInputTextCallbackData* self); - /// /// Full version, ensure both points are fully clipped. /// [NativeName(NativeNameType.Func, "ImRect_ClipWithFull")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClipWithFull([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) - { - ClipWithFullNative(self, r); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_DeleteChars")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DeleteCharsNative(ImGuiInputTextCallbackData* self, int pos, int bytesCount); - /// /// Full version, ensure both points are fully clipped. /// [NativeName(NativeNameType.Func, "ImRect_ClipWithFull")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClipWithFull([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void DeleteChars( ImGuiInputTextCallbackData* self, int pos, int bytesCount) { - fixed (ImRect* pself = &self) - { - ClipWithFullNative((ImRect*)pself, r); - } + DeleteCharsNative(self, pos, bytesCount); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImRect_Floor")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_Floor")] - internal static extern void FloorNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_InsertChars")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void InsertCharsNative(ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd); - [NativeName(NativeNameType.Func, "ImRect_Floor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Floor([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, byte* text, byte* textEnd) { - FloorNative(self); + InsertCharsNative(self, pos, text, textEnd); } - [NativeName(NativeNameType.Func, "ImRect_Floor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Floor([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, byte* text) { - fixed (ImRect* pself = &self) + InsertCharsNative(self, pos, text, (byte*)(default)); + } + + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, ref byte text, byte* textEnd) + { + fixed (byte* ptext = &text) { - FloorNative((ImRect*)pself); + InsertCharsNative(self, pos, (byte*)ptext, textEnd); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImRect_IsInverted")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_IsInverted")] - internal static extern byte IsInvertedNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); - - [NativeName(NativeNameType.Func, "ImRect_IsInverted")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsInverted([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, ref byte text) { - byte ret = IsInvertedNative(self); - return ret != 0; + fixed (byte* ptext = &text) + { + InsertCharsNative(self, pos, (byte*)ptext, (byte*)(default)); + } } - [NativeName(NativeNameType.Func, "ImRect_IsInverted")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsInverted([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, string text, byte* textEnd) { - fixed (ImRect* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) { - byte ret = IsInvertedNative((ImRect*)pself); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative(self, pos, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImRect_ToVec4")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImRect_ToVec4")] - internal static extern void ToVec4Native([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec4*")] Vector4* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self); + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, string text) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative(self, pos, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } - [NativeName(NativeNameType.Func, "ImRect_ToVec4")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ToVec4([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec4*")] Vector4* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, byte* text, ref byte textEnd) { - ToVec4Native(pOut, self); + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative(self, pos, text, (byte*)ptextEnd); + } } - [NativeName(NativeNameType.Func, "ImRect_ToVec4")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ToVec4([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec4*")] ref Vector4 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* self) + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, byte* text, string textEnd) { - fixed (Vector4* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + InsertCharsNative(self, pos, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - ToVec4Native((Vector4*)ppOut, self); + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "ImRect_ToVec4")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ToVec4([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec4*")] Vector4* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, ref byte text, ref byte textEnd) { - fixed (ImRect* pself = &self) + fixed (byte* ptext = &text) { - ToVec4Native(pOut, (ImRect*)pself); + fixed (byte* ptextEnd = &textEnd) + { + InsertCharsNative(self, pos, (byte*)ptext, (byte*)ptextEnd); + } } } - [NativeName(NativeNameType.Func, "ImRect_ToVec4")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ToVec4([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec4*")] ref Vector4 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect self) + public static void InsertChars( ImGuiInputTextCallbackData* self, int pos, string text, string textEnd) { - fixed (Vector4* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - fixed (ImRect* pself = &self) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else { - ToVec4Native((Vector4*)ppOut, (ImRect*)pself); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + InsertCharsNative(self, pos, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImBitArrayGetStorageSizeInBytes")] - [return: NativeName(NativeNameType.Type, "size_t")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImBitArrayGetStorageSizeInBytes")] - internal static extern nuint ImBitArrayGetStorageSizeInBytesNative([NativeName(NativeNameType.Param, "bitcount")] [NativeName(NativeNameType.Type, "int")] int bitcount); + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_SelectAll")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SelectAllNative(ImGuiInputTextCallbackData* self); - [NativeName(NativeNameType.Func, "igImBitArrayGetStorageSizeInBytes")] - [return: NativeName(NativeNameType.Type, "size_t")] - public static nuint ImBitArrayGetStorageSizeInBytes([NativeName(NativeNameType.Param, "bitcount")] [NativeName(NativeNameType.Type, "int")] int bitcount) + public static void SelectAll( ImGuiInputTextCallbackData* self) { - nuint ret = ImBitArrayGetStorageSizeInBytesNative(bitcount); - return ret; + SelectAllNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImBitArrayClearAllBits")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImBitArrayClearAllBits")] - internal static extern void ImBitArrayClearAllBitsNative([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] uint* arr, [NativeName(NativeNameType.Param, "bitcount")] [NativeName(NativeNameType.Type, "int")] int bitcount); - - [NativeName(NativeNameType.Func, "igImBitArrayClearAllBits")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBitArrayClearAllBits([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] uint* arr, [NativeName(NativeNameType.Param, "bitcount")] [NativeName(NativeNameType.Type, "int")] int bitcount) - { - ImBitArrayClearAllBitsNative(arr, bitcount); - } + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_ClearSelection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearSelectionNative(ImGuiInputTextCallbackData* self); - [NativeName(NativeNameType.Func, "igImBitArrayClearAllBits")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBitArrayClearAllBits([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] ref uint arr, [NativeName(NativeNameType.Param, "bitcount")] [NativeName(NativeNameType.Type, "int")] int bitcount) + public static void ClearSelection( ImGuiInputTextCallbackData* self) { - fixed (uint* parr = &arr) - { - ImBitArrayClearAllBitsNative((uint*)parr, bitcount); - } + ClearSelectionNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImBitArrayTestBit")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImBitArrayTestBit")] - internal static extern byte ImBitArrayTestBitNative([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "const ImU32*")] uint* arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextCallbackData_HasSelection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte HasSelectionNative(ImGuiInputTextCallbackData* self); - [NativeName(NativeNameType.Func, "igImBitArrayTestBit")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImBitArrayTestBit([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "const ImU32*")] uint* arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool HasSelection( ImGuiInputTextCallbackData* self) { - byte ret = ImBitArrayTestBitNative(arr, n); + byte ret = HasSelectionNative(self); return ret != 0; } - [NativeName(NativeNameType.Func, "igImBitArrayTestBit")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImBitArrayTestBit([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "const ImU32*")] ref uint arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (uint* parr = &arr) - { - byte ret = ImBitArrayTestBitNative((uint*)parr, n); - return ret != 0; - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImBitArrayClearBit")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImBitArrayClearBit")] - internal static extern void ImBitArrayClearBitNative([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] uint* arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); - - [NativeName(NativeNameType.Func, "igImBitArrayClearBit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBitArrayClearBit([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] uint* arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - ImBitArrayClearBitNative(arr, n); - } + [LibraryImport(LibName, EntryPoint = "ImGuiWindowClass_ImGuiWindowClass")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindowClass* ImGuiWindowClassNative(); - [NativeName(NativeNameType.Func, "igImBitArrayClearBit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBitArrayClearBit([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] ref uint arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static ImGuiWindowClass* ImGuiWindowClass() { - fixed (uint* parr = &arr) - { - ImBitArrayClearBitNative((uint*)parr, n); - } + ImGuiWindowClass* ret = ImGuiWindowClassNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImBitArraySetBit")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImBitArraySetBit")] - internal static extern void ImBitArraySetBitNative([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] uint* arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); + [LibraryImport(LibName, EntryPoint = "ImGuiWindowClass_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiWindowClass* self); - [NativeName(NativeNameType.Func, "igImBitArraySetBit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBitArraySetBit([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] uint* arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - ImBitArraySetBitNative(arr, n); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_ImGuiPayload")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPayload* ImGuiPayloadNative(); - [NativeName(NativeNameType.Func, "igImBitArraySetBit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBitArraySetBit([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] ref uint arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static ImGuiPayload* ImGuiPayload() { - fixed (uint* parr = &arr) - { - ImBitArraySetBitNative((uint*)parr, n); - } + ImGuiPayload* ret = ImGuiPayloadNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImBitArraySetBitRange")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImBitArraySetBitRange")] - internal static extern void ImBitArraySetBitRangeNative([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] uint* arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n, [NativeName(NativeNameType.Param, "n2")] [NativeName(NativeNameType.Type, "int")] int n2); + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiPayload* self); - [NativeName(NativeNameType.Func, "igImBitArraySetBitRange")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBitArraySetBitRange([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] uint* arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n, [NativeName(NativeNameType.Param, "n2")] [NativeName(NativeNameType.Type, "int")] int n2) - { - ImBitArraySetBitRangeNative(arr, n, n2); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImGuiPayload* self); - [NativeName(NativeNameType.Func, "igImBitArraySetBitRange")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImBitArraySetBitRange([NativeName(NativeNameType.Param, "arr")] [NativeName(NativeNameType.Type, "ImU32*")] ref uint arr, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n, [NativeName(NativeNameType.Param, "n2")] [NativeName(NativeNameType.Type, "int")] int n2) + public static void Clear( ImGuiPayload* self) { - fixed (uint* parr = &arr) - { - ImBitArraySetBitRangeNative((uint*)parr, n, n2); - } + ClearNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImBitVector_Create")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImBitVector_Create")] - internal static extern void CreateNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ImBitVector* self, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "int")] int sz); + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_IsDataType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsDataTypeNative(ImGuiPayload* self, byte* type); - [NativeName(NativeNameType.Func, "ImBitVector_Create")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Create([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ImBitVector* self, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "int")] int sz) + public static bool IsDataType( ImGuiPayload* self, byte* type) { - CreateNative(self, sz); + byte ret = IsDataTypeNative(self, type); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImBitVector_Create")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Create([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ref ImBitVector self, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "int")] int sz) + public static bool IsDataType( ImGuiPayload* self, ref byte type) { - fixed (ImBitVector* pself = &self) + fixed (byte* ptype = &type) { - CreateNative((ImBitVector*)pself, sz); + byte ret = IsDataTypeNative(self, (byte*)ptype); + return ret != 0; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImBitVector_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImBitVector_Clear")] - internal static extern void ClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ImBitVector* self); - - [NativeName(NativeNameType.Func, "ImBitVector_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ImBitVector* self) - { - ClearNative(self); - } - - [NativeName(NativeNameType.Func, "ImBitVector_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ref ImBitVector self) + public static bool IsDataType( ImGuiPayload* self, string type) { - fixed (ImBitVector* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (type != null) + { + pStrSize0 = Utils.GetByteCountUTF8(type); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = IsDataTypeNative(self, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - ClearNative((ImBitVector*)pself); + Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImBitVector_TestBit")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImBitVector_TestBit")] - internal static extern byte TestBitNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ImBitVector* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_IsPreview")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsPreviewNative(ImGuiPayload* self); - [NativeName(NativeNameType.Func, "ImBitVector_TestBit")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TestBit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ImBitVector* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool IsPreview( ImGuiPayload* self) { - byte ret = TestBitNative(self, n); + byte ret = IsPreviewNative(self); return ret != 0; } - [NativeName(NativeNameType.Func, "ImBitVector_TestBit")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TestBit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ref ImBitVector self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPayload_IsDelivery")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsDeliveryNative(ImGuiPayload* self); + + public static bool IsDelivery( ImGuiPayload* self) { - fixed (ImBitVector* pself = &self) - { - byte ret = TestBitNative((ImBitVector*)pself, n); - return ret != 0; - } + byte ret = IsDeliveryNative(self); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImBitVector_SetBit")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImBitVector_SetBit")] - internal static extern void SetBitNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ImBitVector* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecsNative(); - [NativeName(NativeNameType.Func, "ImBitVector_SetBit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetBit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ImBitVector* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs() { - SetBitNative(self, n); + ImGuiTableColumnSortSpecs* ret = ImGuiTableColumnSortSpecsNative(); + return ret; } - [NativeName(NativeNameType.Func, "ImBitVector_SetBit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetBit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ref ImBitVector self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImBitVector* pself = &self) - { - SetBitNative((ImBitVector*)pself, n); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumnSortSpecs_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiTableColumnSortSpecs* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImBitVector_ClearBit")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImBitVector_ClearBit")] - internal static extern void ClearBitNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ImBitVector* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); + [LibraryImport(LibName, EntryPoint = "ImGuiTableSortSpecs_ImGuiTableSortSpecs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSortSpecs* ImGuiTableSortSpecsNative(); - [NativeName(NativeNameType.Func, "ImBitVector_ClearBit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearBit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ImBitVector* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static ImGuiTableSortSpecs* ImGuiTableSortSpecs() { - ClearBitNative(self, n); + ImGuiTableSortSpecs* ret = ImGuiTableSortSpecsNative(); + return ret; } - [NativeName(NativeNameType.Func, "ImBitVector_ClearBit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearBit([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImBitVector*")] ref ImBitVector self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImBitVector* pself = &self) - { - ClearBitNative((ImBitVector*)pself, n); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableSortSpecs_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiTableSortSpecs* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiTextIndex_clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextIndex_clear")] - internal static extern void clearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self); + [LibraryImport(LibName, EntryPoint = "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiOnceUponAFrame* ImGuiOnceUponAFrameNative(); - [NativeName(NativeNameType.Func, "ImGuiTextIndex_clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self) + public static ImGuiOnceUponAFrame* ImGuiOnceUponAFrame() { - clearNative(self); + ImGuiOnceUponAFrame* ret = ImGuiOnceUponAFrameNative(); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self) - { - fixed (ImGuiTextIndex* pself = &self) - { - clearNative((ImGuiTextIndex*)pself); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiOnceUponAFrame_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiOnceUponAFrame* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiTextIndex_size")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextIndex_size")] - internal static extern int sizeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self); + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_ImGuiTextFilter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTextFilter* ImGuiTextFilterNative(byte* defaultFilter); - [NativeName(NativeNameType.Func, "ImGuiTextIndex_size")] - [return: NativeName(NativeNameType.Type, "int")] - public static int size([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self) + public static ImGuiTextFilter* ImGuiTextFilter( byte* defaultFilter) { - int ret = sizeNative(self); + ImGuiTextFilter* ret = ImGuiTextFilterNative(defaultFilter); return ret; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_size")] - [return: NativeName(NativeNameType.Type, "int")] - public static int size([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self) - { - fixed (ImGuiTextIndex* pself = &self) - { - int ret = sizeNative((ImGuiTextIndex*)pself); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiTextFilter* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextIndex_get_line_begin")] - internal static extern byte* get_line_beginNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_Draw")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DrawNative(ImGuiTextFilter* self, byte* label, float width); - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool Draw( ImGuiTextFilter* self, byte* label, float width) { - byte* ret = get_line_beginNative(self, baseValue, n); - return ret; + byte ret = DrawNative(self, label, width); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_beginS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool Draw( ImGuiTextFilter* self, byte* label) { - string ret = Utils.DecodeStringUTF8(get_line_beginNative(self, baseValue, n)); - return ret; + byte ret = DrawNative(self, label, (float)(0.0f)); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool Draw( ImGuiTextFilter* self) { - fixed (ImGuiTextIndex* pself = &self) - { - byte* ret = get_line_beginNative((ImGuiTextIndex*)pself, baseValue, n); - return ret; - } + bool ret = Draw(self, (string)"Filter(inc,-exc)", (float)(0.0f)); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_beginS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool Draw( ImGuiTextFilter* self, float width) { - fixed (ImGuiTextIndex* pself = &self) - { - string ret = Utils.DecodeStringUTF8(get_line_beginNative((ImGuiTextIndex*)pself, baseValue, n)); - return ret; - } + bool ret = Draw(self, (string)"Filter(inc,-exc)", width); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool Draw( ImGuiTextFilter* self, ref byte label, float width) { - fixed (byte* pbaseValue = &baseValue) + fixed (byte* plabel = &label) { - byte* ret = get_line_beginNative(self, (byte*)pbaseValue, n); - return ret; + byte ret = DrawNative(self, (byte*)plabel, width); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_beginS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool Draw( ImGuiTextFilter* self, ref byte label) { - fixed (byte* pbaseValue = &baseValue) + fixed (byte* plabel = &label) { - string ret = Utils.DecodeStringUTF8(get_line_beginNative(self, (byte*)pbaseValue, n)); - return ret; + byte ret = DrawNative(self, (byte*)plabel, (float)(0.0f)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool Draw( ImGuiTextFilter* self, string label, float width) { byte* pStr0 = null; int pStrSize0 = 0; - if (baseValue != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -210920,26 +48645,24 @@ public static string get_line_beginS([NativeName(NativeNameType.Param, "self")] byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = get_line_beginNative(self, pStr0, n); + byte ret = DrawNative(self, pStr0, width); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_beginS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool Draw( ImGuiTextFilter* self, string label) { byte* pStr0 = null; int pStrSize0 = 0; - if (baseValue != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -210949,186 +48672,61 @@ public static string get_line_beginS([NativeName(NativeNameType.Param, "self")] byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(get_line_beginNative(self, pStr0, n)); + byte ret = DrawNative(self, pStr0, (float)(0.0f)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* pself = &self) - { - fixed (byte* pbaseValue = &baseValue) - { - byte* ret = get_line_beginNative((ImGuiTextIndex*)pself, (byte*)pbaseValue, n); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_beginS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* pself = &self) - { - fixed (byte* pbaseValue = &baseValue) - { - string ret = Utils.DecodeStringUTF8(get_line_beginNative((ImGuiTextIndex*)pself, (byte*)pbaseValue, n)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_begin([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (baseValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = get_line_beginNative((ImGuiTextIndex*)pself, pStr0, n); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_beginS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (baseValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(get_line_beginNative((ImGuiTextIndex*)pself, pStr0, n)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextIndex_get_line_end")] - internal static extern byte* get_line_endNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_end([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - byte* ret = get_line_endNative(self, baseValue, n); - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_endS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - string ret = Utils.DecodeStringUTF8(get_line_endNative(self, baseValue, n)); - return ret; - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_PassFilter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PassFilterNative(ImGuiTextFilter* self, byte* text, byte* textEnd); - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_end([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool PassFilter( ImGuiTextFilter* self, byte* text, byte* textEnd) { - fixed (ImGuiTextIndex* pself = &self) - { - byte* ret = get_line_endNative((ImGuiTextIndex*)pself, baseValue, n); - return ret; - } + byte ret = PassFilterNative(self, text, textEnd); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_endS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool PassFilter( ImGuiTextFilter* self, byte* text) { - fixed (ImGuiTextIndex* pself = &self) - { - string ret = Utils.DecodeStringUTF8(get_line_endNative((ImGuiTextIndex*)pself, baseValue, n)); - return ret; - } + byte ret = PassFilterNative(self, text, (byte*)(default)); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_end([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool PassFilter( ImGuiTextFilter* self, ref byte text, byte* textEnd) { - fixed (byte* pbaseValue = &baseValue) + fixed (byte* ptext = &text) { - byte* ret = get_line_endNative(self, (byte*)pbaseValue, n); - return ret; + byte ret = PassFilterNative(self, (byte*)ptext, textEnd); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_endS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool PassFilter( ImGuiTextFilter* self, ref byte text) { - fixed (byte* pbaseValue = &baseValue) + fixed (byte* ptext = &text) { - string ret = Utils.DecodeStringUTF8(get_line_endNative(self, (byte*)pbaseValue, n)); - return ret; + byte ret = PassFilterNative(self, (byte*)ptext, (byte*)(default)); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_end([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool PassFilter( ImGuiTextFilter* self, string text, byte* textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (baseValue != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -211138,26 +48736,24 @@ public static string get_line_endS([NativeName(NativeNameType.Param, "self")] [N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* ret = get_line_endNative(self, pStr0, n); + byte ret = PassFilterNative(self, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; + return ret != 0; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_endS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool PassFilter( ImGuiTextFilter* self, string text) { byte* pStr0 = null; int pStrSize0 = 0; - if (baseValue != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -211167,153 +48763,72 @@ public static string get_line_endS([NativeName(NativeNameType.Param, "self")] [N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - string ret = Utils.DecodeStringUTF8(get_line_endNative(self, pStr0, n)); + byte ret = PassFilterNative(self, pStr0, (byte*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_end([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* pself = &self) - { - fixed (byte* pbaseValue = &baseValue) - { - byte* ret = get_line_endNative((ImGuiTextIndex*)pself, (byte*)pbaseValue, n); - return ret; - } - } + return ret != 0; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_endS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool PassFilter( ImGuiTextFilter* self, byte* text, ref byte textEnd) { - fixed (ImGuiTextIndex* pself = &self) + fixed (byte* ptextEnd = &textEnd) { - fixed (byte* pbaseValue = &baseValue) - { - string ret = Utils.DecodeStringUTF8(get_line_endNative((ImGuiTextIndex*)pself, (byte*)pbaseValue, n)); - return ret; - } + byte ret = PassFilterNative(self, text, (byte*)ptextEnd); + return ret != 0; } } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* get_line_end([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static bool PassFilter( ImGuiTextFilter* self, byte* text, string textEnd) { - fixed (ImGuiTextIndex* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (baseValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = get_line_endNative((ImGuiTextIndex*)pself, pStr0, n); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string get_line_endS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* pself = &self) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (baseValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - string ret = Utils.DecodeStringUTF8(get_line_endNative((ImGuiTextIndex*)pself, pStr0, n)); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - return ret; + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTextIndex_append")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextIndex_append")] - internal static extern void appendNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "old_size")] [NativeName(NativeNameType.Type, "int")] int oldSize, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize); - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "old_size")] [NativeName(NativeNameType.Type, "int")] int oldSize, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) - { - appendNative(self, baseValue, oldSize, newSize); - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "old_size")] [NativeName(NativeNameType.Type, "int")] int oldSize, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) - { - fixed (ImGuiTextIndex* pself = &self) + byte ret = PassFilterNative(self, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - appendNative((ImGuiTextIndex*)pself, baseValue, oldSize, newSize); + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "old_size")] [NativeName(NativeNameType.Type, "int")] int oldSize, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) + public static bool PassFilter( ImGuiTextFilter* self, ref byte text, ref byte textEnd) { - fixed (byte* pbaseValue = &baseValue) + fixed (byte* ptext = &text) { - appendNative(self, (byte*)pbaseValue, oldSize, newSize); + fixed (byte* ptextEnd = &textEnd) + { + byte ret = PassFilterNative(self, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ImGuiTextIndex* self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "old_size")] [NativeName(NativeNameType.Type, "int")] int oldSize, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) + public static bool PassFilter( ImGuiTextFilter* self, string text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (baseValue != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -211323,2901 +48838,2516 @@ public static void append([NativeName(NativeNameType.Param, "self")] [NativeName byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - appendNative(self, pStr0, oldSize, newSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "old_size")] [NativeName(NativeNameType.Type, "int")] int oldSize, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) - { - fixed (ImGuiTextIndex* pself = &self) - { - fixed (byte* pbaseValue = &baseValue) - { - appendNative((ImGuiTextIndex*)pself, (byte*)pbaseValue, oldSize, newSize); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_append")] - [return: NativeName(NativeNameType.Type, "void")] - public static void append([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTextIndex*")] ref ImGuiTextIndex self, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "old_size")] [NativeName(NativeNameType.Type, "int")] int oldSize, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) - { - fixed (ImGuiTextIndex* pself = &self) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (baseValue != null) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); } - appendNative((ImGuiTextIndex*)pself, pStr0, oldSize, newSize); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = PassFilterNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImDrawListSharedData_ImDrawListSharedData")] - [return: NativeName(NativeNameType.Type, "ImDrawListSharedData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawListSharedData_ImDrawListSharedData")] - internal static extern ImDrawListSharedData* ImDrawListSharedDataNative(); + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_Build")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BuildNative(ImGuiTextFilter* self); - [NativeName(NativeNameType.Func, "ImDrawListSharedData_ImDrawListSharedData")] - [return: NativeName(NativeNameType.Type, "ImDrawListSharedData*")] - public static ImDrawListSharedData* ImDrawListSharedData() + public static void Build( ImGuiTextFilter* self) { - ImDrawListSharedData* ret = ImDrawListSharedDataNative(); - return ret; + BuildNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImDrawListSharedData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawListSharedData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSharedData*")] ImDrawListSharedData* self); + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImGuiTextFilter* self); - [NativeName(NativeNameType.Func, "ImDrawListSharedData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSharedData*")] ImDrawListSharedData* self) - { - DestroyNative(self); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextFilter_IsActive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsActiveNative(ImGuiTextFilter* self); - [NativeName(NativeNameType.Func, "ImDrawListSharedData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSharedData*")] ref ImDrawListSharedData self) + public static bool IsActive( ImGuiTextFilter* self) { - fixed (ImDrawListSharedData* pself = &self) - { - DestroyNative((ImDrawListSharedData*)pself); - } + byte ret = IsActiveNative(self); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImDrawListSharedData_SetCircleTessellationMaxError")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawListSharedData_SetCircleTessellationMaxError")] - internal static extern void SetCircleTessellationMaxErrorNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSharedData*")] ImDrawListSharedData* self, [NativeName(NativeNameType.Param, "max_error")] [NativeName(NativeNameType.Type, "float")] float maxError); + [LibraryImport(LibName, EntryPoint = "ImGuiTextRange_ImGuiTextRange_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTextRange* ImGuiTextRangeNative(); - [NativeName(NativeNameType.Func, "ImDrawListSharedData_SetCircleTessellationMaxError")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCircleTessellationMaxError([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSharedData*")] ImDrawListSharedData* self, [NativeName(NativeNameType.Param, "max_error")] [NativeName(NativeNameType.Type, "float")] float maxError) + public static ImGuiTextRange* ImGuiTextRange() { - SetCircleTessellationMaxErrorNative(self, maxError); + ImGuiTextRange* ret = ImGuiTextRangeNative(); + return ret; } - [NativeName(NativeNameType.Func, "ImDrawListSharedData_SetCircleTessellationMaxError")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCircleTessellationMaxError([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawListSharedData*")] ref ImDrawListSharedData self, [NativeName(NativeNameType.Param, "max_error")] [NativeName(NativeNameType.Type, "float")] float maxError) - { - fixed (ImDrawListSharedData* pself = &self) - { - SetCircleTessellationMaxErrorNative((ImDrawListSharedData*)pself, maxError); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextRange_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiTextRange* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawDataBuilder_Clear")] - internal static extern void ClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ImDrawDataBuilder* self); + [LibraryImport(LibName, EntryPoint = "ImGuiTextRange_ImGuiTextRange_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTextRange* ImGuiTextRangeNative(byte* B, byte* E); - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ImDrawDataBuilder* self) + public static ImGuiTextRange* ImGuiTextRange( byte* B, byte* E) { - ClearNative(self); + ImGuiTextRange* ret = ImGuiTextRangeNative(B, E); + return ret; } - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ref ImDrawDataBuilder self) + public static ImGuiTextRange* ImGuiTextRange( byte* B, ref byte E) { - fixed (ImDrawDataBuilder* pself = &self) + fixed (byte* pE = &E) { - ClearNative((ImDrawDataBuilder*)pself); + ImGuiTextRange* ret = ImGuiTextRangeNative(B, (byte*)pE); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawDataBuilder_ClearFreeMemory")] - internal static extern void ClearFreeMemoryNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ImDrawDataBuilder* self); - - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFreeMemory([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ImDrawDataBuilder* self) - { - ClearFreeMemoryNative(self); - } - - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFreeMemory([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ref ImDrawDataBuilder self) + public static ImGuiTextRange* ImGuiTextRange( byte* B, string E) { - fixed (ImDrawDataBuilder* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (E != null) + { + pStrSize0 = Utils.GetByteCountUTF8(E); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(E, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGuiTextRange* ret = ImGuiTextRangeNative(B, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - ClearFreeMemoryNative((ImDrawDataBuilder*)pself); + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_GetDrawListCount")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawDataBuilder_GetDrawListCount")] - internal static extern int GetDrawListCountNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ImDrawDataBuilder* self); - - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_GetDrawListCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetDrawListCount([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ImDrawDataBuilder* self) - { - int ret = GetDrawListCountNative(self); - return ret; - } + [LibraryImport(LibName, EntryPoint = "ImGuiTextRange_empty")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte emptyNative(ImGuiTextRange* self); - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_GetDrawListCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetDrawListCount([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ref ImDrawDataBuilder self) + public static bool empty( ImGuiTextRange* self) { - fixed (ImDrawDataBuilder* pself = &self) - { - int ret = GetDrawListCountNative((ImDrawDataBuilder*)pself); - return ret; - } + byte ret = emptyNative(self); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_FlattenIntoSingleLayer")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImDrawDataBuilder_FlattenIntoSingleLayer")] - internal static extern void FlattenIntoSingleLayerNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ImDrawDataBuilder* self); + [LibraryImport(LibName, EntryPoint = "ImGuiTextRange_split")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void splitNative(ImGuiTextRange* self, byte separator, ImVectorImGuiTextRange* output); - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_FlattenIntoSingleLayer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FlattenIntoSingleLayer([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ImDrawDataBuilder* self) + public static void split( ImGuiTextRange* self, byte separator, ImVectorImGuiTextRange* output) { - FlattenIntoSingleLayerNative(self); + splitNative(self, separator, output); } - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_FlattenIntoSingleLayer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FlattenIntoSingleLayer([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImDrawDataBuilder*")] ref ImDrawDataBuilder self) + public static void split( ImGuiTextRange* self, byte separator, ref ImVectorImGuiTextRange output) { - fixed (ImDrawDataBuilder* pself = &self) + fixed (ImVectorImGuiTextRange* poutput = &output) { - FlattenIntoSingleLayerNative((ImDrawDataBuilder*)pself); + splitNative(self, separator, (ImVectorImGuiTextRange*)poutput); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiDataVarInfo_GetVarPtr")] - [return: NativeName(NativeNameType.Type, "void*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDataVarInfo_GetVarPtr")] - internal static extern void* GetVarPtrNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDataVarInfo*")] ImGuiDataVarInfo* self, [NativeName(NativeNameType.Param, "parent")] [NativeName(NativeNameType.Type, "void*")] void* parent); + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_ImGuiTextBuffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTextBuffer* ImGuiTextBufferNative(); - [NativeName(NativeNameType.Func, "ImGuiDataVarInfo_GetVarPtr")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* GetVarPtr([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDataVarInfo*")] ImGuiDataVarInfo* self, [NativeName(NativeNameType.Param, "parent")] [NativeName(NativeNameType.Type, "void*")] void* parent) + public static ImGuiTextBuffer* ImGuiTextBuffer() { - void* ret = GetVarPtrNative(self, parent); + ImGuiTextBuffer* ret = ImGuiTextBufferNative(); return ret; } - [NativeName(NativeNameType.Func, "ImGuiDataVarInfo_GetVarPtr")] - [return: NativeName(NativeNameType.Type, "void*")] - public static void* GetVarPtr([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDataVarInfo*")] ref ImGuiDataVarInfo self, [NativeName(NativeNameType.Param, "parent")] [NativeName(NativeNameType.Type, "void*")] void* parent) - { - fixed (ImGuiDataVarInfo* pself = &self) - { - void* ret = GetVarPtrNative((ImGuiDataVarInfo*)pself, parent); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiTextBuffer* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiStyleMod_ImGuiStyleMod_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiStyleMod*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStyleMod_ImGuiStyleMod_Int")] - internal static extern ImGuiStyleMod* ImGuiStyleModNative([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int")] int v); + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_begin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* beginNative(ImGuiTextBuffer* self); + + public static byte* begin( ImGuiTextBuffer* self) + { + byte* ret = beginNative(self); + return ret; + } - [NativeName(NativeNameType.Func, "ImGuiStyleMod_ImGuiStyleMod_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiStyleMod*")] - public static ImGuiStyleMod* ImGuiStyleMod([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "int")] int v) + public static string beginS( ImGuiTextBuffer* self) { - ImGuiStyleMod* ret = ImGuiStyleModNative(idx, v); + string ret = Utils.DecodeStringUTF8(beginNative(self)); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiStyleMod_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStyleMod_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStyleMod*")] ImGuiStyleMod* self); + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_end")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* endNative(ImGuiTextBuffer* self); - [NativeName(NativeNameType.Func, "ImGuiStyleMod_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStyleMod*")] ImGuiStyleMod* self) + public static byte* end( ImGuiTextBuffer* self) { - DestroyNative(self); + byte* ret = endNative(self); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiStyleMod_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStyleMod*")] ref ImGuiStyleMod self) + public static string endS( ImGuiTextBuffer* self) { - fixed (ImGuiStyleMod* pself = &self) - { - DestroyNative((ImGuiStyleMod*)pself); - } + string ret = Utils.DecodeStringUTF8(endNative(self)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiStyleMod_ImGuiStyleMod_Float")] - [return: NativeName(NativeNameType.Type, "ImGuiStyleMod*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStyleMod_ImGuiStyleMod_Float")] - internal static extern ImGuiStyleMod* ImGuiStyleModNative([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v); + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_size")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int sizeNative(ImGuiTextBuffer* self); - [NativeName(NativeNameType.Func, "ImGuiStyleMod_ImGuiStyleMod_Float")] - [return: NativeName(NativeNameType.Type, "ImGuiStyleMod*")] - public static ImGuiStyleMod* ImGuiStyleMod([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) + public static int size( ImGuiTextBuffer* self) { - ImGuiStyleMod* ret = ImGuiStyleModNative(idx, v); + int ret = sizeNative(self); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiStyleMod_ImGuiStyleMod_Vec2")] - [return: NativeName(NativeNameType.Type, "ImGuiStyleMod*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStyleMod_ImGuiStyleMod_Vec2")] - internal static extern ImGuiStyleMod* ImGuiStyleModNative([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 v); + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_empty")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte emptyNative(ImGuiTextBuffer* self); - [NativeName(NativeNameType.Func, "ImGuiStyleMod_ImGuiStyleMod_Vec2")] - [return: NativeName(NativeNameType.Type, "ImGuiStyleMod*")] - public static ImGuiStyleMod* ImGuiStyleMod([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 v) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void clearNative(ImGuiTextBuffer* self); + + public static void clear( ImGuiTextBuffer* self) { - ImGuiStyleMod* ret = ImGuiStyleModNative(idx, v); - return ret; + clearNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiComboPreviewData_ImGuiComboPreviewData")] - [return: NativeName(NativeNameType.Type, "ImGuiComboPreviewData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiComboPreviewData_ImGuiComboPreviewData")] - internal static extern ImGuiComboPreviewData* ImGuiComboPreviewDataNative(); + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_reserve")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void reserveNative(ImGuiTextBuffer* self, int capacity); - [NativeName(NativeNameType.Func, "ImGuiComboPreviewData_ImGuiComboPreviewData")] - [return: NativeName(NativeNameType.Type, "ImGuiComboPreviewData*")] - public static ImGuiComboPreviewData* ImGuiComboPreviewData() + public static void reserve( ImGuiTextBuffer* self, int capacity) { - ImGuiComboPreviewData* ret = ImGuiComboPreviewDataNative(); - return ret; + reserveNative(self, capacity); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiComboPreviewData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiComboPreviewData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiComboPreviewData*")] ImGuiComboPreviewData* self); + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_c_str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* c_strNative(ImGuiTextBuffer* self); - [NativeName(NativeNameType.Func, "ImGuiComboPreviewData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiComboPreviewData*")] ImGuiComboPreviewData* self) + public static byte* c_str( ImGuiTextBuffer* self) { - DestroyNative(self); + byte* ret = c_strNative(self); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiComboPreviewData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiComboPreviewData*")] ref ImGuiComboPreviewData self) + public static string c_strS( ImGuiTextBuffer* self) { - fixed (ImGuiComboPreviewData* pself = &self) - { - DestroyNative((ImGuiComboPreviewData*)pself); - } + string ret = Utils.DecodeStringUTF8(c_strNative(self)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_ImGuiMenuColumns")] - [return: NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiMenuColumns_ImGuiMenuColumns")] - internal static extern ImGuiMenuColumns* ImGuiMenuColumnsNative(); + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_append")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void appendNative(ImGuiTextBuffer* self, byte* str, byte* strEnd); - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_ImGuiMenuColumns")] - [return: NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] - public static ImGuiMenuColumns* ImGuiMenuColumns() + public static void append( ImGuiTextBuffer* self, byte* str, byte* strEnd) { - ImGuiMenuColumns* ret = ImGuiMenuColumnsNative(); - return ret; + appendNative(self, str, strEnd); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiMenuColumns_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ImGuiMenuColumns* self); + public static void append( ImGuiTextBuffer* self, byte* str) + { + appendNative(self, str, (byte*)(default)); + } - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ImGuiMenuColumns* self) + public static void append( ImGuiTextBuffer* self, ref byte str, byte* strEnd) { - DestroyNative(self); + fixed (byte* pstr = &str) + { + appendNative(self, (byte*)pstr, strEnd); + } } - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ref ImGuiMenuColumns self) + public static void append( ImGuiTextBuffer* self, ref byte str) { - fixed (ImGuiMenuColumns* pself = &self) + fixed (byte* pstr = &str) { - DestroyNative((ImGuiMenuColumns*)pself); + appendNative(self, (byte*)pstr, (byte*)(default)); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_Update")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiMenuColumns_Update")] - internal static extern void UpdateNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ImGuiMenuColumns* self, [NativeName(NativeNameType.Param, "spacing")] [NativeName(NativeNameType.Type, "float")] float spacing, [NativeName(NativeNameType.Param, "window_reappearing")] [NativeName(NativeNameType.Type, "bool")] byte windowReappearing); + public static void append( ImGuiTextBuffer* self, string str, byte* strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative(self, pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_Update")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Update([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ImGuiMenuColumns* self, [NativeName(NativeNameType.Param, "spacing")] [NativeName(NativeNameType.Type, "float")] float spacing, [NativeName(NativeNameType.Param, "window_reappearing")] [NativeName(NativeNameType.Type, "bool")] bool windowReappearing) + public static void append( ImGuiTextBuffer* self, string str) { - UpdateNative(self, spacing, windowReappearing ? (byte)1 : (byte)0); + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative(self, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_Update")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Update([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ref ImGuiMenuColumns self, [NativeName(NativeNameType.Param, "spacing")] [NativeName(NativeNameType.Type, "float")] float spacing, [NativeName(NativeNameType.Param, "window_reappearing")] [NativeName(NativeNameType.Type, "bool")] bool windowReappearing) + public static void append( ImGuiTextBuffer* self, byte* str, ref byte strEnd) { - fixed (ImGuiMenuColumns* pself = &self) + fixed (byte* pstrEnd = &strEnd) { - UpdateNative((ImGuiMenuColumns*)pself, spacing, windowReappearing ? (byte)1 : (byte)0); + appendNative(self, str, (byte*)pstrEnd); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_DeclColumns")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiMenuColumns_DeclColumns")] - internal static extern float DeclColumnsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ImGuiMenuColumns* self, [NativeName(NativeNameType.Param, "w_icon")] [NativeName(NativeNameType.Type, "float")] float wIcon, [NativeName(NativeNameType.Param, "w_label")] [NativeName(NativeNameType.Type, "float")] float wLabel, [NativeName(NativeNameType.Param, "w_shortcut")] [NativeName(NativeNameType.Type, "float")] float wShortcut, [NativeName(NativeNameType.Param, "w_mark")] [NativeName(NativeNameType.Type, "float")] float wMark); + public static void append( ImGuiTextBuffer* self, byte* str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendNative(self, str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_DeclColumns")] - [return: NativeName(NativeNameType.Type, "float")] - public static float DeclColumns([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ImGuiMenuColumns* self, [NativeName(NativeNameType.Param, "w_icon")] [NativeName(NativeNameType.Type, "float")] float wIcon, [NativeName(NativeNameType.Param, "w_label")] [NativeName(NativeNameType.Type, "float")] float wLabel, [NativeName(NativeNameType.Param, "w_shortcut")] [NativeName(NativeNameType.Type, "float")] float wShortcut, [NativeName(NativeNameType.Param, "w_mark")] [NativeName(NativeNameType.Type, "float")] float wMark) + public static void append( ImGuiTextBuffer* self, ref byte str, ref byte strEnd) { - float ret = DeclColumnsNative(self, wIcon, wLabel, wShortcut, wMark); - return ret; + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + appendNative(self, (byte*)pstr, (byte*)pstrEnd); + } + } } - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_DeclColumns")] - [return: NativeName(NativeNameType.Type, "float")] - public static float DeclColumns([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ref ImGuiMenuColumns self, [NativeName(NativeNameType.Param, "w_icon")] [NativeName(NativeNameType.Type, "float")] float wIcon, [NativeName(NativeNameType.Param, "w_label")] [NativeName(NativeNameType.Type, "float")] float wLabel, [NativeName(NativeNameType.Param, "w_shortcut")] [NativeName(NativeNameType.Type, "float")] float wShortcut, [NativeName(NativeNameType.Param, "w_mark")] [NativeName(NativeNameType.Type, "float")] float wMark) + public static void append( ImGuiTextBuffer* self, string str, string strEnd) { - fixed (ImGuiMenuColumns* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) { - float ret = DeclColumnsNative((ImGuiMenuColumns*)pself, wIcon, wLabel, wShortcut, wMark); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (strEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + appendNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_CalcNextTotalWidth")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiMenuColumns_CalcNextTotalWidth")] - internal static extern void CalcNextTotalWidthNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ImGuiMenuColumns* self, [NativeName(NativeNameType.Param, "update_offsets")] [NativeName(NativeNameType.Type, "bool")] byte updateOffsets); + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_appendfv")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void appendfvNative(ImGuiTextBuffer* self, byte* fmt, nuint args); + + public static void appendfv( ImGuiTextBuffer* self, byte* fmt, nuint args) + { + appendfvNative(self, fmt, args); + } - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_CalcNextTotalWidth")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcNextTotalWidth([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ImGuiMenuColumns* self, [NativeName(NativeNameType.Param, "update_offsets")] [NativeName(NativeNameType.Type, "bool")] bool updateOffsets) + public static void appendfv( ImGuiTextBuffer* self, ref byte fmt, nuint args) { - CalcNextTotalWidthNative(self, updateOffsets ? (byte)1 : (byte)0); + fixed (byte* pfmt = &fmt) + { + appendfvNative(self, (byte*)pfmt, args); + } } - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_CalcNextTotalWidth")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcNextTotalWidth([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiMenuColumns*")] ref ImGuiMenuColumns self, [NativeName(NativeNameType.Param, "update_offsets")] [NativeName(NativeNameType.Type, "bool")] bool updateOffsets) + public static void appendfv( ImGuiTextBuffer* self, string fmt, nuint args) { - fixed (ImGuiMenuColumns* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + appendfvNative(self, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) { - CalcNextTotalWidthNative((ImGuiMenuColumns*)pself, updateOffsets ? (byte)1 : (byte)0); + Utils.Free(pStr0); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextDeactivatedState_ImGuiInputTextDeactivatedState")] - [return: NativeName(NativeNameType.Type, "ImGuiInputTextDeactivatedState*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextDeactivatedState_ImGuiInputTextDeactivatedState")] - internal static extern ImGuiInputTextDeactivatedState* ImGuiInputTextDeactivatedStateNative(); + [LibraryImport(LibName, EntryPoint = "ImGuiStoragePair_ImGuiStoragePair_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStoragePair* ImGuiStoragePairNative(uint Key, int Val); - [NativeName(NativeNameType.Func, "ImGuiInputTextDeactivatedState_ImGuiInputTextDeactivatedState")] - [return: NativeName(NativeNameType.Type, "ImGuiInputTextDeactivatedState*")] - public static ImGuiInputTextDeactivatedState* ImGuiInputTextDeactivatedState() + public static ImGuiStoragePair* ImGuiStoragePair( uint Key, int Val) { - ImGuiInputTextDeactivatedState* ret = ImGuiInputTextDeactivatedStateNative(); + ImGuiStoragePair* ret = ImGuiStoragePairNative(Key, Val); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextDeactivatedState_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextDeactivatedState_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextDeactivatedState*")] ImGuiInputTextDeactivatedState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiStoragePair_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiStoragePair* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStoragePair_ImGuiStoragePair_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStoragePair* ImGuiStoragePairNative(uint Key, float Val); - [NativeName(NativeNameType.Func, "ImGuiInputTextDeactivatedState_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextDeactivatedState*")] ImGuiInputTextDeactivatedState* self) + public static ImGuiStoragePair* ImGuiStoragePair( uint Key, float Val) { - DestroyNative(self); + ImGuiStoragePair* ret = ImGuiStoragePairNative(Key, Val); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiInputTextDeactivatedState_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextDeactivatedState*")] ref ImGuiInputTextDeactivatedState self) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStoragePair_ImGuiStoragePair_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStoragePair* ImGuiStoragePairNative(uint Key, void* Val); + + public static ImGuiStoragePair* ImGuiStoragePair( uint Key, void* Val) { - fixed (ImGuiInputTextDeactivatedState* pself = &self) - { - DestroyNative((ImGuiInputTextDeactivatedState*)pself); - } + ImGuiStoragePair* ret = ImGuiStoragePairNative(Key, Val); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextDeactivatedState_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextDeactivatedState_ClearFreeMemory")] - internal static extern void ClearFreeMemoryNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextDeactivatedState*")] ImGuiInputTextDeactivatedState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImGuiStorage* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetIntNative(ImGuiStorage* self, uint key, int defaultVal); - [NativeName(NativeNameType.Func, "ImGuiInputTextDeactivatedState_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFreeMemory([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextDeactivatedState*")] ImGuiInputTextDeactivatedState* self) + public static int GetInt( ImGuiStorage* self, uint key, int defaultVal) { - ClearFreeMemoryNative(self); + int ret = GetIntNative(self, key, defaultVal); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiInputTextDeactivatedState_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFreeMemory([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextDeactivatedState*")] ref ImGuiInputTextDeactivatedState self) + public static int GetInt( ImGuiStorage* self, uint key) { - fixed (ImGuiInputTextDeactivatedState* pself = &self) - { - ClearFreeMemoryNative((ImGuiInputTextDeactivatedState*)pself); - } + int ret = GetIntNative(self, key, (int)(0)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ImGuiInputTextState")] - [return: NativeName(NativeNameType.Type, "ImGuiInputTextState*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_ImGuiInputTextState")] - internal static extern ImGuiInputTextState* ImGuiInputTextStateNative(); + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_SetInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetIntNative(ImGuiStorage* self, uint key, int val); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ImGuiInputTextState")] - [return: NativeName(NativeNameType.Type, "ImGuiInputTextState*")] - public static ImGuiInputTextState* ImGuiInputTextState() + public static void SetInt( ImGuiStorage* self, uint key, int val) { - ImGuiInputTextState* ret = ImGuiInputTextStateNative(); - return ret; + SetIntNative(self, key, val); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetBool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte GetBoolNative(ImGuiStorage* self, uint key, byte defaultVal); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) + public static bool GetBool( ImGuiStorage* self, uint key, bool defaultVal) { - DestroyNative(self); + byte ret = GetBoolNative(self, key, defaultVal ? (byte)1 : (byte)0); + return ret != 0; } - [NativeName(NativeNameType.Func, "ImGuiInputTextState_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) + public static bool GetBool( ImGuiStorage* self, uint key) { - fixed (ImGuiInputTextState* pself = &self) - { - DestroyNative((ImGuiInputTextState*)pself); - } + byte ret = GetBoolNative(self, key, (byte)(0)); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearText")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_ClearText")] - internal static extern void ClearTextNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) - { - ClearTextNative(self); - } + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_SetBool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetBoolNative(ImGuiStorage* self, uint key, byte val); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearText([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) + public static void SetBool( ImGuiStorage* self, uint key, bool val) { - fixed (ImGuiInputTextState* pself = &self) - { - ClearTextNative((ImGuiInputTextState*)pself); - } + SetBoolNative(self, key, val ? (byte)1 : (byte)0); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_ClearFreeMemory")] - internal static extern void ClearFreeMemoryNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetFloatNative(ImGuiStorage* self, uint key, float defaultVal); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFreeMemory([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) + public static float GetFloat( ImGuiStorage* self, uint key, float defaultVal) { - ClearFreeMemoryNative(self); + float ret = GetFloatNative(self, key, defaultVal); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFreeMemory([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) + public static float GetFloat( ImGuiStorage* self, uint key) { - fixed (ImGuiInputTextState* pself = &self) - { - ClearFreeMemoryNative((ImGuiInputTextState*)pself); - } + float ret = GetFloatNative(self, key, (float)(0.0f)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetUndoAvailCount")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_GetUndoAvailCount")] - internal static extern int GetUndoAvailCountNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_SetFloat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetFloatNative(ImGuiStorage* self, uint key, float val); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetUndoAvailCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetUndoAvailCount([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) + public static void SetFloat( ImGuiStorage* self, uint key, float val) { - int ret = GetUndoAvailCountNative(self); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetUndoAvailCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetUndoAvailCount([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = GetUndoAvailCountNative((ImGuiInputTextState*)pself); - return ret; - } + SetFloatNative(self, key, val); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetRedoAvailCount")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_GetRedoAvailCount")] - internal static extern int GetRedoAvailCountNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetVoidPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* GetVoidPtrNative(ImGuiStorage* self, uint key); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetRedoAvailCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetRedoAvailCount([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) + public static void* GetVoidPtr( ImGuiStorage* self, uint key) { - int ret = GetRedoAvailCountNative(self); + void* ret = GetVoidPtrNative(self, key); return ret; } - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetRedoAvailCount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetRedoAvailCount([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = GetRedoAvailCountNative((ImGuiInputTextState*)pself); - return ret; - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_OnKeyPressed")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_OnKeyPressed")] - internal static extern void OnKeyPressedNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "int")] int key); - - /// /// Cannot be inline because we call in code in stb_textedit.h implementation /// [NativeName(NativeNameType.Func, "ImGuiInputTextState_OnKeyPressed")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OnKeyPressed([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "int")] int key) - { - OnKeyPressedNative(self, key); - } + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_SetVoidPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetVoidPtrNative(ImGuiStorage* self, uint key, void* val); - /// /// Cannot be inline because we call in code in stb_textedit.h implementation /// [NativeName(NativeNameType.Func, "ImGuiInputTextState_OnKeyPressed")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OnKeyPressed([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "int")] int key) + public static void SetVoidPtr( ImGuiStorage* self, uint key, void* val) { - fixed (ImGuiInputTextState* pself = &self) - { - OnKeyPressedNative((ImGuiInputTextState*)pself, key); - } + SetVoidPtrNative(self, key, val); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_CursorAnimReset")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_CursorAnimReset")] - internal static extern void CursorAnimResetNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetIntRef")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int* GetIntRefNative(ImGuiStorage* self, uint key, int defaultVal); - /// /// After a user-input the cursor stays on for a while without blinking /// [NativeName(NativeNameType.Func, "ImGuiInputTextState_CursorAnimReset")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CursorAnimReset([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) + public static int* GetIntRef( ImGuiStorage* self, uint key, int defaultVal) { - CursorAnimResetNative(self); + int* ret = GetIntRefNative(self, key, defaultVal); + return ret; } - /// /// After a user-input the cursor stays on for a while without blinking /// [NativeName(NativeNameType.Func, "ImGuiInputTextState_CursorAnimReset")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CursorAnimReset([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) + public static int* GetIntRef( ImGuiStorage* self, uint key) { - fixed (ImGuiInputTextState* pself = &self) - { - CursorAnimResetNative((ImGuiInputTextState*)pself); - } + int* ret = GetIntRefNative(self, key, (int)(0)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_CursorClamp")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_CursorClamp")] - internal static extern void CursorClampNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetBoolRef")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetBoolRefNative(ImGuiStorage* self, uint key, byte defaultVal); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_CursorClamp")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CursorClamp([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) + public static byte* GetBoolRef( ImGuiStorage* self, uint key, bool defaultVal) { - CursorClampNative(self); + byte* ret = GetBoolRefNative(self, key, defaultVal ? (byte)1 : (byte)0); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiInputTextState_CursorClamp")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CursorClamp([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) + public static byte* GetBoolRef( ImGuiStorage* self, uint key) { - fixed (ImGuiInputTextState* pself = &self) - { - CursorClampNative((ImGuiInputTextState*)pself); - } + byte* ret = GetBoolRefNative(self, key, (byte)(0)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_HasSelection")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_HasSelection")] - internal static extern byte HasSelectionNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetFloatRef")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float* GetFloatRefNative(ImGuiStorage* self, uint key, float defaultVal); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_HasSelection")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool HasSelection([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) + public static float* GetFloatRef( ImGuiStorage* self, uint key, float defaultVal) { - byte ret = HasSelectionNative(self); - return ret != 0; + float* ret = GetFloatRefNative(self, key, defaultVal); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiInputTextState_HasSelection")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool HasSelection([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) + public static float* GetFloatRef( ImGuiStorage* self, uint key) { - fixed (ImGuiInputTextState* pself = &self) - { - byte ret = HasSelectionNative((ImGuiInputTextState*)pself); - return ret != 0; - } + float* ret = GetFloatRefNative(self, key, (float)(0.0f)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearSelection")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_ClearSelection")] - internal static extern void ClearSelectionNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_GetVoidPtrRef")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void** GetVoidPtrRefNative(ImGuiStorage* self, uint key, void* defaultVal); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearSelection")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearSelection([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) + public static void** GetVoidPtrRef( ImGuiStorage* self, uint key, void* defaultVal) { - ClearSelectionNative(self); + void** ret = GetVoidPtrRefNative(self, key, defaultVal); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearSelection")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearSelection([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) + public static void** GetVoidPtrRef( ImGuiStorage* self, uint key) { - fixed (ImGuiInputTextState* pself = &self) - { - ClearSelectionNative((ImGuiInputTextState*)pself); - } + void** ret = GetVoidPtrRefNative(self, key, (void*)(default)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetCursorPos")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_GetCursorPos")] - internal static extern int GetCursorPosNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetCursorPos")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetCursorPos([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) - { - int ret = GetCursorPosNative(self); - return ret; - } + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_BuildSortByKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BuildSortByKeyNative(ImGuiStorage* self); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetCursorPos")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetCursorPos([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) + public static void BuildSortByKey( ImGuiStorage* self) { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = GetCursorPosNative((ImGuiInputTextState*)pself); - return ret; - } + BuildSortByKeyNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetSelectionStart")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_GetSelectionStart")] - internal static extern int GetSelectionStartNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetSelectionStart")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetSelectionStart([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) - { - int ret = GetSelectionStartNative(self); - return ret; - } + [LibraryImport(LibName, EntryPoint = "ImGuiStorage_SetAllInt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetAllIntNative(ImGuiStorage* self, int val); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetSelectionStart")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetSelectionStart([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) + public static void SetAllInt( ImGuiStorage* self, int val) { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = GetSelectionStartNative((ImGuiInputTextState*)pself); - return ret; - } + SetAllIntNative(self, val); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetSelectionEnd")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_GetSelectionEnd")] - internal static extern int GetSelectionEndNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_ImGuiListClipper")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiListClipper* ImGuiListClipperNative(); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetSelectionEnd")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetSelectionEnd([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) + public static ImGuiListClipper* ImGuiListClipper() { - int ret = GetSelectionEndNative(self); + ImGuiListClipper* ret = ImGuiListClipperNative(); return ret; } - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetSelectionEnd")] - [return: NativeName(NativeNameType.Type, "int")] - public static int GetSelectionEnd([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - int ret = GetSelectionEndNative((ImGuiInputTextState*)pself); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiListClipper* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputTextState_SelectAll")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputTextState_SelectAll")] - internal static extern void SelectAllNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self); + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_Begin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginNative(ImGuiListClipper* self, int itemsCount, float itemsHeight); - [NativeName(NativeNameType.Func, "ImGuiInputTextState_SelectAll")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SelectAll([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* self) + public static void Begin( ImGuiListClipper* self, int itemsCount, float itemsHeight) { - SelectAllNative(self); + BeginNative(self, itemsCount, itemsHeight); } - [NativeName(NativeNameType.Func, "ImGuiInputTextState_SelectAll")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SelectAll([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState self) - { - fixed (ImGuiInputTextState* pself = &self) - { - SelectAllNative((ImGuiInputTextState*)pself); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_End")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndNative(ImGuiListClipper* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiPopupData_ImGuiPopupData")] - [return: NativeName(NativeNameType.Type, "ImGuiPopupData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPopupData_ImGuiPopupData")] - internal static extern ImGuiPopupData* ImGuiPopupDataNative(); + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_Step")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte StepNative(ImGuiListClipper* self); - [NativeName(NativeNameType.Func, "ImGuiPopupData_ImGuiPopupData")] - [return: NativeName(NativeNameType.Type, "ImGuiPopupData*")] - public static ImGuiPopupData* ImGuiPopupData() + public static bool Step( ImGuiListClipper* self) { - ImGuiPopupData* ret = ImGuiPopupDataNative(); - return ret; + byte ret = StepNative(self); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiPopupData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPopupData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPopupData*")] ImGuiPopupData* self); + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_IncludeItemByIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void IncludeItemByIndexNative(ImGuiListClipper* self, int itemIndex); - [NativeName(NativeNameType.Func, "ImGuiPopupData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPopupData*")] ImGuiPopupData* self) + public static void IncludeItemByIndex( ImGuiListClipper* self, int itemIndex) { - DestroyNative(self); + IncludeItemByIndexNative(self, itemIndex); } - [NativeName(NativeNameType.Func, "ImGuiPopupData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPopupData*")] ref ImGuiPopupData self) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipper_IncludeItemsByIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void IncludeItemsByIndexNative(ImGuiListClipper* self, int itemBegin, int itemEnd); + + public static void IncludeItemsByIndex( ImGuiListClipper* self, int itemBegin, int itemEnd) { - fixed (ImGuiPopupData* pself = &self) - { - DestroyNative((ImGuiPopupData*)pself); - } + IncludeItemsByIndexNative(self, itemBegin, itemEnd); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiNextWindowData_ImGuiNextWindowData")] - [return: NativeName(NativeNameType.Type, "ImGuiNextWindowData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiNextWindowData_ImGuiNextWindowData")] - internal static extern ImGuiNextWindowData* ImGuiNextWindowDataNative(); + [LibraryImport(LibName, EntryPoint = "ImColor_ImColor_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImColor* ImColorNative(); - [NativeName(NativeNameType.Func, "ImGuiNextWindowData_ImGuiNextWindowData")] - [return: NativeName(NativeNameType.Type, "ImGuiNextWindowData*")] - public static ImGuiNextWindowData* ImGuiNextWindowData() + public static ImColor* ImColor() { - ImGuiNextWindowData* ret = ImGuiNextWindowDataNative(); + ImColor* ret = ImColorNative(); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiNextWindowData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiNextWindowData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextWindowData*")] ImGuiNextWindowData* self); + [LibraryImport(LibName, EntryPoint = "ImColor_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImColor* self); - [NativeName(NativeNameType.Func, "ImGuiNextWindowData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextWindowData*")] ImGuiNextWindowData* self) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImColor_ImColor_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImColor* ImColorNative(float r, float g, float b, float a); + + public static ImColor* ImColor( float r, float g, float b, float a) { - DestroyNative(self); + ImColor* ret = ImColorNative(r, g, b, a); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiNextWindowData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextWindowData*")] ref ImGuiNextWindowData self) + public static ImColor* ImColor( float r, float g, float b) { - fixed (ImGuiNextWindowData* pself = &self) - { - DestroyNative((ImGuiNextWindowData*)pself); - } + ImColor* ret = ImColorNative(r, g, b, (float)(1.0f)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiNextWindowData_ClearFlags")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiNextWindowData_ClearFlags")] - internal static extern void ClearFlagsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextWindowData*")] ImGuiNextWindowData* self); + [LibraryImport(LibName, EntryPoint = "ImColor_ImColor_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImColor* ImColorNative(Vector4 col); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImColor_ImColor_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImColor* ImColorNative(int r, int g, int b, int a); - [NativeName(NativeNameType.Func, "ImGuiNextWindowData_ClearFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFlags([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextWindowData*")] ImGuiNextWindowData* self) + public static ImColor* ImColor( int r, int g, int b, int a) { - ClearFlagsNative(self); + ImColor* ret = ImColorNative(r, g, b, a); + return ret; } - [NativeName(NativeNameType.Func, "ImGuiNextWindowData_ClearFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFlags([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextWindowData*")] ref ImGuiNextWindowData self) + public static ImColor* ImColor( int r, int g, int b) { - fixed (ImGuiNextWindowData* pself = &self) - { - ClearFlagsNative((ImGuiNextWindowData*)pself); - } + ImColor* ret = ImColorNative(r, g, b, (int)(255)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiNextItemData_ImGuiNextItemData")] - [return: NativeName(NativeNameType.Type, "ImGuiNextItemData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiNextItemData_ImGuiNextItemData")] - internal static extern ImGuiNextItemData* ImGuiNextItemDataNative(); - - [NativeName(NativeNameType.Func, "ImGuiNextItemData_ImGuiNextItemData")] - [return: NativeName(NativeNameType.Type, "ImGuiNextItemData*")] - public static ImGuiNextItemData* ImGuiNextItemData() - { - ImGuiNextItemData* ret = ImGuiNextItemDataNative(); - return ret; - } + [LibraryImport(LibName, EntryPoint = "ImColor_ImColor_U32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImColor* ImColorNative(uint rgba); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiNextItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiNextItemData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextItemData*")] ImGuiNextItemData* self); + [LibraryImport(LibName, EntryPoint = "ImColor_SetHSV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetHSVNative(ImColor* self, float h, float s, float v, float a); - [NativeName(NativeNameType.Func, "ImGuiNextItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextItemData*")] ImGuiNextItemData* self) + public static void SetHSV( ImColor* self, float h, float s, float v, float a) { - DestroyNative(self); + SetHSVNative(self, h, s, v, a); } - [NativeName(NativeNameType.Func, "ImGuiNextItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextItemData*")] ref ImGuiNextItemData self) + public static void SetHSV( ImColor* self, float h, float s, float v) { - fixed (ImGuiNextItemData* pself = &self) - { - DestroyNative((ImGuiNextItemData*)pself); - } + SetHSVNative(self, h, s, v, (float)(1.0f)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiNextItemData_ClearFlags")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiNextItemData_ClearFlags")] - internal static extern void ClearFlagsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextItemData*")] ImGuiNextItemData* self); + [LibraryImport(LibName, EntryPoint = "ImColor_HSV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void HSVNative(ImColor* pOut, float h, float s, float v, float a); - /// /// Also cleared manually by ItemAdd()! /// [NativeName(NativeNameType.Func, "ImGuiNextItemData_ClearFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFlags([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextItemData*")] ImGuiNextItemData* self) + public static void HSV( ImColor* pOut, float h, float s, float v, float a) { - ClearFlagsNative(self); + HSVNative(pOut, h, s, v, a); } - /// /// Also cleared manually by ItemAdd()! /// [NativeName(NativeNameType.Func, "ImGuiNextItemData_ClearFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearFlags([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNextItemData*")] ref ImGuiNextItemData self) + public static void HSV( ImColor* pOut, float h, float s, float v) { - fixed (ImGuiNextItemData* pself = &self) - { - ClearFlagsNative((ImGuiNextItemData*)pself); - } + HSVNative(pOut, h, s, v, (float)(1.0f)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiLastItemData_ImGuiLastItemData")] - [return: NativeName(NativeNameType.Type, "ImGuiLastItemData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiLastItemData_ImGuiLastItemData")] - internal static extern ImGuiLastItemData* ImGuiLastItemDataNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawCmd_ImDrawCmd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawCmd* ImDrawCmdNative(); - [NativeName(NativeNameType.Func, "ImGuiLastItemData_ImGuiLastItemData")] - [return: NativeName(NativeNameType.Type, "ImGuiLastItemData*")] - public static ImGuiLastItemData* ImGuiLastItemData() + public static ImDrawCmd* ImDrawCmd() { - ImGuiLastItemData* ret = ImGuiLastItemDataNative(); + ImDrawCmd* ret = ImDrawCmdNative(); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiLastItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiLastItemData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiLastItemData*")] ImGuiLastItemData* self); + [LibraryImport(LibName, EntryPoint = "ImDrawCmd_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImDrawCmd* self); - [NativeName(NativeNameType.Func, "ImGuiLastItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiLastItemData*")] ImGuiLastItemData* self) - { - DestroyNative(self); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawCmd_GetTexID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImTextureID GetTexIDNative(ImDrawCmd* self); - [NativeName(NativeNameType.Func, "ImGuiLastItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiLastItemData*")] ref ImGuiLastItemData self) + public static ImTextureID GetTexID( ImDrawCmd* self) { - fixed (ImGuiLastItemData* pself = &self) - { - DestroyNative((ImGuiLastItemData*)pself); - } + ImTextureID ret = GetTexIDNative(self); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiStackSizes_ImGuiStackSizes")] - [return: NativeName(NativeNameType.Type, "ImGuiStackSizes*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStackSizes_ImGuiStackSizes")] - internal static extern ImGuiStackSizes* ImGuiStackSizesNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_ImDrawListSplitter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawListSplitter* ImDrawListSplitterNative(); - [NativeName(NativeNameType.Func, "ImGuiStackSizes_ImGuiStackSizes")] - [return: NativeName(NativeNameType.Type, "ImGuiStackSizes*")] - public static ImGuiStackSizes* ImGuiStackSizes() + public static ImDrawListSplitter* ImDrawListSplitter() { - ImGuiStackSizes* ret = ImGuiStackSizesNative(); + ImDrawListSplitter* ret = ImDrawListSplitterNative(); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiStackSizes_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStackSizes_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ImGuiStackSizes* self); + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImDrawListSplitter* self); - [NativeName(NativeNameType.Func, "ImGuiStackSizes_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ImGuiStackSizes* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiStackSizes_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ref ImGuiStackSizes self) - { - fixed (ImGuiStackSizes* pself = &self) - { - DestroyNative((ImGuiStackSizes*)pself); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImDrawListSplitter* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiStackSizes_SetToContextState")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStackSizes_SetToContextState")] - internal static extern void SetToContextStateNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ImGuiStackSizes* self, [NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx); + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_ClearFreeMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearFreeMemoryNative(ImDrawListSplitter* self); - [NativeName(NativeNameType.Func, "ImGuiStackSizes_SetToContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetToContextState([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ImGuiStackSizes* self, [NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) + public static void ClearFreeMemory( ImDrawListSplitter* self) { - SetToContextStateNative(self, ctx); + ClearFreeMemoryNative(self); } - [NativeName(NativeNameType.Func, "ImGuiStackSizes_SetToContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetToContextState([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ref ImGuiStackSizes self, [NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) - { - fixed (ImGuiStackSizes* pself = &self) - { - SetToContextStateNative((ImGuiStackSizes*)pself, ctx); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_Split")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SplitNative(ImDrawListSplitter* self, ImDrawList* drawList, int count); - [NativeName(NativeNameType.Func, "ImGuiStackSizes_SetToContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetToContextState([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ImGuiStackSizes* self, [NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) + public static void Split( ImDrawListSplitter* self, ImDrawList* drawList, int count) { - fixed (ImGuiContext* pctx = &ctx) - { - SetToContextStateNative(self, (ImGuiContext*)pctx); - } + SplitNative(self, drawList, count); } - [NativeName(NativeNameType.Func, "ImGuiStackSizes_SetToContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetToContextState([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ref ImGuiStackSizes self, [NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) + public static void Split( ImDrawListSplitter* self, ref ImDrawList drawList, int count) { - fixed (ImGuiStackSizes* pself = &self) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiContext* pctx = &ctx) - { - SetToContextStateNative((ImGuiStackSizes*)pself, (ImGuiContext*)pctx); - } + SplitNative(self, (ImDrawList*)pdrawList, count); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiStackSizes_CompareWithContextState")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStackSizes_CompareWithContextState")] - internal static extern void CompareWithContextStateNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ImGuiStackSizes* self, [NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx); + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_Merge")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void MergeNative(ImDrawListSplitter* self, ImDrawList* drawList); - [NativeName(NativeNameType.Func, "ImGuiStackSizes_CompareWithContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CompareWithContextState([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ImGuiStackSizes* self, [NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) + public static void Merge( ImDrawListSplitter* self, ImDrawList* drawList) { - CompareWithContextStateNative(self, ctx); + MergeNative(self, drawList); } - [NativeName(NativeNameType.Func, "ImGuiStackSizes_CompareWithContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CompareWithContextState([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ref ImGuiStackSizes self, [NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) + public static void Merge( ImDrawListSplitter* self, ref ImDrawList drawList) { - fixed (ImGuiStackSizes* pself = &self) + fixed (ImDrawList* pdrawList = &drawList) { - CompareWithContextStateNative((ImGuiStackSizes*)pself, ctx); + MergeNative(self, (ImDrawList*)pdrawList); } } - [NativeName(NativeNameType.Func, "ImGuiStackSizes_CompareWithContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CompareWithContextState([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ImGuiStackSizes* self, [NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSplitter_SetCurrentChannel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCurrentChannelNative(ImDrawListSplitter* self, ImDrawList* drawList, int channelIdx); + + public static void SetCurrentChannel( ImDrawListSplitter* self, ImDrawList* drawList, int channelIdx) { - fixed (ImGuiContext* pctx = &ctx) - { - CompareWithContextStateNative(self, (ImGuiContext*)pctx); - } + SetCurrentChannelNative(self, drawList, channelIdx); } - [NativeName(NativeNameType.Func, "ImGuiStackSizes_CompareWithContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CompareWithContextState([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackSizes*")] ref ImGuiStackSizes self, [NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) + public static void SetCurrentChannel( ImDrawListSplitter* self, ref ImDrawList drawList, int channelIdx) { - fixed (ImGuiStackSizes* pself = &self) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiContext* pctx = &ctx) - { - CompareWithContextStateNative((ImGuiStackSizes*)pself, (ImGuiContext*)pctx); - } + SetCurrentChannelNative(self, (ImDrawList*)pdrawList, channelIdx); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr")] - [return: NativeName(NativeNameType.Type, "ImGuiPtrOrIndex*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr")] - internal static extern ImGuiPtrOrIndex* ImGuiPtrOrIndexNative([NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "void*")] void* ptr); + [LibraryImport(LibName, EntryPoint = "ImDrawList_ImDrawList")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* ImDrawListNative(ImDrawListSharedData* sharedData); - [NativeName(NativeNameType.Func, "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr")] - [return: NativeName(NativeNameType.Type, "ImGuiPtrOrIndex*")] - public static ImGuiPtrOrIndex* ImGuiPtrOrIndex([NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "void*")] void* ptr) + public static ImDrawList* ImDrawList( ImDrawListSharedData* sharedData) { - ImGuiPtrOrIndex* ret = ImGuiPtrOrIndexNative(ptr); + ImDrawList* ret = ImDrawListNative(sharedData); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiPtrOrIndex_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPtrOrIndex_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPtrOrIndex*")] ImGuiPtrOrIndex* self); + [LibraryImport(LibName, EntryPoint = "ImDrawList_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImDrawList* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PushClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushClipRectNative(ImDrawList* self, Vector2 clipRectMin, Vector2 clipRectMax, byte intersectWithCurrentClipRect); - [NativeName(NativeNameType.Func, "ImGuiPtrOrIndex_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPtrOrIndex*")] ImGuiPtrOrIndex* self) + public static void PushClipRect( ImDrawList* self, Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) { - DestroyNative(self); + PushClipRectNative(self, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "ImGuiPtrOrIndex_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiPtrOrIndex*")] ref ImGuiPtrOrIndex self) + public static void PushClipRect( ImDrawList* self, Vector2 clipRectMin, Vector2 clipRectMax) { - fixed (ImGuiPtrOrIndex* pself = &self) - { - DestroyNative((ImGuiPtrOrIndex*)pself); - } + PushClipRectNative(self, clipRectMin, clipRectMax, (byte)(0)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiPtrOrIndex*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int")] - internal static extern ImGuiPtrOrIndex* ImGuiPtrOrIndexNative([NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "int")] int index); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PushClipRectFullScreen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushClipRectFullScreenNative(ImDrawList* self); - [NativeName(NativeNameType.Func, "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiPtrOrIndex*")] - public static ImGuiPtrOrIndex* ImGuiPtrOrIndex([NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "int")] int index) + public static void PushClipRectFullScreen( ImDrawList* self) { - ImGuiPtrOrIndex* ret = ImGuiPtrOrIndexNative(index); - return ret; + PushClipRectFullScreenNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputEvent_ImGuiInputEvent")] - [return: NativeName(NativeNameType.Type, "ImGuiInputEvent*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputEvent_ImGuiInputEvent")] - internal static extern ImGuiInputEvent* ImGuiInputEventNative(); - - [NativeName(NativeNameType.Func, "ImGuiInputEvent_ImGuiInputEvent")] - [return: NativeName(NativeNameType.Type, "ImGuiInputEvent*")] - public static ImGuiInputEvent* ImGuiInputEvent() - { - ImGuiInputEvent* ret = ImGuiInputEventNative(); - return ret; - } + [LibraryImport(LibName, EntryPoint = "ImDrawList_PopClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopClipRectNative(ImDrawList* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiInputEvent_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiInputEvent_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputEvent*")] ImGuiInputEvent* self); - - [NativeName(NativeNameType.Func, "ImGuiInputEvent_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputEvent*")] ImGuiInputEvent* self) - { - DestroyNative(self); - } + [LibraryImport(LibName, EntryPoint = "ImDrawList_PushTextureID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushTextureIDNative(ImDrawList* self, ImTextureID textureId); - [NativeName(NativeNameType.Func, "ImGuiInputEvent_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiInputEvent*")] ref ImGuiInputEvent self) + public static void PushTextureID( ImDrawList* self, ImTextureID textureId) { - fixed (ImGuiInputEvent* pself = &self) - { - DestroyNative((ImGuiInputEvent*)pself); - } + PushTextureIDNative(self, textureId); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingData_ImGuiKeyRoutingData")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyRoutingData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiKeyRoutingData_ImGuiKeyRoutingData")] - internal static extern ImGuiKeyRoutingData* ImGuiKeyRoutingDataNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PopTextureID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopTextureIDNative(ImDrawList* self); - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingData_ImGuiKeyRoutingData")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyRoutingData*")] - public static ImGuiKeyRoutingData* ImGuiKeyRoutingData() + public static void PopTextureID( ImDrawList* self) { - ImGuiKeyRoutingData* ret = ImGuiKeyRoutingDataNative(); - return ret; + PopTextureIDNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiKeyRoutingData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyRoutingData*")] ImGuiKeyRoutingData* self); + [LibraryImport(LibName, EntryPoint = "ImDrawList_GetClipRectMin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetClipRectMinNative(Vector2* pOut, ImDrawList* self); - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyRoutingData*")] ImGuiKeyRoutingData* self) + public static void GetClipRectMin( Vector2* pOut, ImDrawList* self) { - DestroyNative(self); + GetClipRectMinNative(pOut, self); } - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyRoutingData*")] ref ImGuiKeyRoutingData self) + public static void GetClipRectMin( Vector2* pOut, ref ImDrawList self) { - fixed (ImGuiKeyRoutingData* pself = &self) + fixed (ImDrawList* pself = &self) { - DestroyNative((ImGuiKeyRoutingData*)pself); + GetClipRectMinNative(pOut, (ImDrawList*)pself); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyRoutingTable*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable")] - internal static extern ImGuiKeyRoutingTable* ImGuiKeyRoutingTableNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList_GetClipRectMax")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetClipRectMaxNative(Vector2* pOut, ImDrawList* self); - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyRoutingTable*")] - public static ImGuiKeyRoutingTable* ImGuiKeyRoutingTable() + public static void GetClipRectMax( Vector2* pOut, ImDrawList* self) { - ImGuiKeyRoutingTable* ret = ImGuiKeyRoutingTableNative(); - return ret; + GetClipRectMaxNative(pOut, self); + } + + public static void GetClipRectMax( Vector2* pOut, ref ImDrawList self) + { + fixed (ImDrawList* pself = &self) + { + GetClipRectMaxNative(pOut, (ImDrawList*)pself); + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingTable_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiKeyRoutingTable_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyRoutingTable*")] ImGuiKeyRoutingTable* self); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddLine")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddLineNative(ImDrawList* self, Vector2 p1, Vector2 p2, uint col, float thickness); - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingTable_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyRoutingTable*")] ImGuiKeyRoutingTable* self) + public static void AddLine( ImDrawList* self, Vector2 p1, Vector2 p2, uint col, float thickness) { - DestroyNative(self); + AddLineNative(self, p1, p2, col, thickness); } - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingTable_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyRoutingTable*")] ref ImGuiKeyRoutingTable self) + public static void AddLine( ImDrawList* self, Vector2 p1, Vector2 p2, uint col) { - fixed (ImGuiKeyRoutingTable* pself = &self) - { - DestroyNative((ImGuiKeyRoutingTable*)pself); - } + AddLineNative(self, p1, p2, col, (float)(1.0f)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingTable_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiKeyRoutingTable_Clear")] - internal static extern void ClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyRoutingTable*")] ImGuiKeyRoutingTable* self); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddRectNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags, float thickness); - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingTable_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyRoutingTable*")] ImGuiKeyRoutingTable* self) + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags, float thickness) { - ClearNative(self); + AddRectNative(self, pMin, pMax, col, rounding, flags, thickness); } - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingTable_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyRoutingTable*")] ref ImGuiKeyRoutingTable self) + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags) { - fixed (ImGuiKeyRoutingTable* pself = &self) - { - ClearNative((ImGuiKeyRoutingTable*)pself); - } + AddRectNative(self, pMin, pMax, col, rounding, flags, (float)(1.0f)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiKeyOwnerData_ImGuiKeyOwnerData")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyOwnerData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiKeyOwnerData_ImGuiKeyOwnerData")] - internal static extern ImGuiKeyOwnerData* ImGuiKeyOwnerDataNative(); + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + AddRectNative(self, pMin, pMax, col, rounding, (int)(0), (float)(1.0f)); + } - [NativeName(NativeNameType.Func, "ImGuiKeyOwnerData_ImGuiKeyOwnerData")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyOwnerData*")] - public static ImGuiKeyOwnerData* ImGuiKeyOwnerData() + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col) { - ImGuiKeyOwnerData* ret = ImGuiKeyOwnerDataNative(); - return ret; + AddRectNative(self, pMin, pMax, col, (float)(0.0f), (int)(0), (float)(1.0f)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiKeyOwnerData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiKeyOwnerData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyOwnerData*")] ImGuiKeyOwnerData* self); + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, int flags) + { + AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); + } - [NativeName(NativeNameType.Func, "ImGuiKeyOwnerData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyOwnerData*")] ImGuiKeyOwnerData* self) + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) { - DestroyNative(self); + AddRectNative(self, pMin, pMax, col, rounding, (int)(0), thickness); } - [NativeName(NativeNameType.Func, "ImGuiKeyOwnerData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiKeyOwnerData*")] ref ImGuiKeyOwnerData self) + public static void AddRect( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, int flags, float thickness) { - fixed (ImGuiKeyOwnerData* pself = &self) - { - DestroyNative((ImGuiKeyOwnerData*)pself); - } + AddRectNative(self, pMin, pMax, col, (float)(0.0f), flags, thickness); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiListClipperRange_FromIndices")] - [return: NativeName(NativeNameType.Type, "ImGuiListClipperRange")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiListClipperRange_FromIndices")] - internal static extern ImGuiListClipperRange FromIndicesNative([NativeName(NativeNameType.Param, "min")] [NativeName(NativeNameType.Type, "int")] int min, [NativeName(NativeNameType.Param, "max")] [NativeName(NativeNameType.Type, "int")] int max); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddRectFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddRectFilledNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags); - [NativeName(NativeNameType.Func, "ImGuiListClipperRange_FromIndices")] - [return: NativeName(NativeNameType.Type, "ImGuiListClipperRange")] - public static ImGuiListClipperRange FromIndices([NativeName(NativeNameType.Param, "min")] [NativeName(NativeNameType.Type, "int")] int min, [NativeName(NativeNameType.Param, "max")] [NativeName(NativeNameType.Type, "int")] int max) + public static void AddRectFilled( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags) { - ImGuiListClipperRange ret = FromIndicesNative(min, max); - return ret; + AddRectFilledNative(self, pMin, pMax, col, rounding, flags); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiListClipperRange_FromPositions")] - [return: NativeName(NativeNameType.Type, "ImGuiListClipperRange")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiListClipperRange_FromPositions")] - internal static extern ImGuiListClipperRange FromPositionsNative([NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "float")] float y1, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "float")] float y2, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "int")] int offMin, [NativeName(NativeNameType.Param, "off_max")] [NativeName(NativeNameType.Type, "int")] int offMax); + public static void AddRectFilled( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + AddRectFilledNative(self, pMin, pMax, col, rounding, (int)(0)); + } - [NativeName(NativeNameType.Func, "ImGuiListClipperRange_FromPositions")] - [return: NativeName(NativeNameType.Type, "ImGuiListClipperRange")] - public static ImGuiListClipperRange FromPositions([NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "float")] float y1, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "float")] float y2, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "int")] int offMin, [NativeName(NativeNameType.Param, "off_max")] [NativeName(NativeNameType.Type, "int")] int offMax) + public static void AddRectFilled( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col) { - ImGuiListClipperRange ret = FromPositionsNative(y1, y2, offMin, offMax); - return ret; + AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), (int)(0)); + } + + public static void AddRectFilled( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint col, int flags) + { + AddRectFilledNative(self, pMin, pMax, col, (float)(0.0f), flags); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiListClipperData_ImGuiListClipperData")] - [return: NativeName(NativeNameType.Type, "ImGuiListClipperData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiListClipperData_ImGuiListClipperData")] - internal static extern ImGuiListClipperData* ImGuiListClipperDataNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddRectFilledMultiColor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddRectFilledMultiColorNative(ImDrawList* self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft); - [NativeName(NativeNameType.Func, "ImGuiListClipperData_ImGuiListClipperData")] - [return: NativeName(NativeNameType.Type, "ImGuiListClipperData*")] - public static ImGuiListClipperData* ImGuiListClipperData() + public static void AddRectFilledMultiColor( ImDrawList* self, Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) { - ImGuiListClipperData* ret = ImGuiListClipperDataNative(); - return ret; + AddRectFilledMultiColorNative(self, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiListClipperData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiListClipperData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipperData*")] ImGuiListClipperData* self); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddQuad")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddQuadNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness); - [NativeName(NativeNameType.Func, "ImGuiListClipperData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipperData*")] ImGuiListClipperData* self) + public static void AddQuad( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) { - DestroyNative(self); + AddQuadNative(self, p1, p2, p3, p4, col, thickness); } - [NativeName(NativeNameType.Func, "ImGuiListClipperData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipperData*")] ref ImGuiListClipperData self) + public static void AddQuad( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) { - fixed (ImGuiListClipperData* pself = &self) - { - DestroyNative((ImGuiListClipperData*)pself); - } + AddQuadNative(self, p1, p2, p3, p4, col, (float)(1.0f)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiListClipperData_Reset")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiListClipperData_Reset")] - internal static extern void ResetNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipperData*")] ImGuiListClipperData* self, [NativeName(NativeNameType.Param, "clipper")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* clipper); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddQuadFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddQuadFilledNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col); - [NativeName(NativeNameType.Func, "ImGuiListClipperData_Reset")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Reset([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipperData*")] ImGuiListClipperData* self, [NativeName(NativeNameType.Param, "clipper")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* clipper) + public static void AddQuadFilled( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) { - ResetNative(self, clipper); + AddQuadFilledNative(self, p1, p2, p3, p4, col); } - [NativeName(NativeNameType.Func, "ImGuiListClipperData_Reset")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Reset([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipperData*")] ref ImGuiListClipperData self, [NativeName(NativeNameType.Param, "clipper")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* clipper) - { - fixed (ImGuiListClipperData* pself = &self) - { - ResetNative((ImGuiListClipperData*)pself, clipper); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddTriangle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddTriangleNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness); - [NativeName(NativeNameType.Func, "ImGuiListClipperData_Reset")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Reset([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipperData*")] ImGuiListClipperData* self, [NativeName(NativeNameType.Param, "clipper")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ref ImGuiListClipper clipper) + public static void AddTriangle( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) { - fixed (ImGuiListClipper* pclipper = &clipper) - { - ResetNative(self, (ImGuiListClipper*)pclipper); - } + AddTriangleNative(self, p1, p2, p3, col, thickness); } - [NativeName(NativeNameType.Func, "ImGuiListClipperData_Reset")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Reset([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiListClipperData*")] ref ImGuiListClipperData self, [NativeName(NativeNameType.Param, "clipper")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ref ImGuiListClipper clipper) + public static void AddTriangle( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) { - fixed (ImGuiListClipperData* pself = &self) - { - fixed (ImGuiListClipper* pclipper = &clipper) - { - ResetNative((ImGuiListClipperData*)pself, (ImGuiListClipper*)pclipper); - } - } + AddTriangleNative(self, p1, p2, p3, col, (float)(1.0f)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiNavItemData_ImGuiNavItemData")] - [return: NativeName(NativeNameType.Type, "ImGuiNavItemData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiNavItemData_ImGuiNavItemData")] - internal static extern ImGuiNavItemData* ImGuiNavItemDataNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddTriangleFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddTriangleFilledNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col); - [NativeName(NativeNameType.Func, "ImGuiNavItemData_ImGuiNavItemData")] - [return: NativeName(NativeNameType.Type, "ImGuiNavItemData*")] - public static ImGuiNavItemData* ImGuiNavItemData() + public static void AddTriangleFilled( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col) { - ImGuiNavItemData* ret = ImGuiNavItemDataNative(); - return ret; + AddTriangleFilledNative(self, p1, p2, p3, col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiNavItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiNavItemData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNavItemData*")] ImGuiNavItemData* self); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddCircle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddCircleNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness); - [NativeName(NativeNameType.Func, "ImGuiNavItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNavItemData*")] ImGuiNavItemData* self) + public static void AddCircle( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) { - DestroyNative(self); + AddCircleNative(self, center, radius, col, numSegments, thickness); } - [NativeName(NativeNameType.Func, "ImGuiNavItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNavItemData*")] ref ImGuiNavItemData self) + public static void AddCircle( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) { - fixed (ImGuiNavItemData* pself = &self) - { - DestroyNative((ImGuiNavItemData*)pself); - } + AddCircleNative(self, center, radius, col, numSegments, (float)(1.0f)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiNavItemData_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiNavItemData_Clear")] - internal static extern void ClearNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNavItemData*")] ImGuiNavItemData* self); - - [NativeName(NativeNameType.Func, "ImGuiNavItemData_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNavItemData*")] ImGuiNavItemData* self) + public static void AddCircle( ImDrawList* self, Vector2 center, float radius, uint col) { - ClearNative(self); + AddCircleNative(self, center, radius, col, (int)(0), (float)(1.0f)); } - [NativeName(NativeNameType.Func, "ImGuiNavItemData_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Clear([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiNavItemData*")] ref ImGuiNavItemData self) + public static void AddCircle( ImDrawList* self, Vector2 center, float radius, uint col, float thickness) { - fixed (ImGuiNavItemData* pself = &self) - { - ClearNative((ImGuiNavItemData*)pself); - } + AddCircleNative(self, center, radius, col, (int)(0), thickness); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiOldColumnData_ImGuiOldColumnData")] - [return: NativeName(NativeNameType.Type, "ImGuiOldColumnData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiOldColumnData_ImGuiOldColumnData")] - internal static extern ImGuiOldColumnData* ImGuiOldColumnDataNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddCircleFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddCircleFilledNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments); - [NativeName(NativeNameType.Func, "ImGuiOldColumnData_ImGuiOldColumnData")] - [return: NativeName(NativeNameType.Type, "ImGuiOldColumnData*")] - public static ImGuiOldColumnData* ImGuiOldColumnData() + public static void AddCircleFilled( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) { - ImGuiOldColumnData* ret = ImGuiOldColumnDataNative(); - return ret; + AddCircleFilledNative(self, center, radius, col, numSegments); + } + + public static void AddCircleFilled( ImDrawList* self, Vector2 center, float radius, uint col) + { + AddCircleFilledNative(self, center, radius, col, (int)(0)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiOldColumnData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiOldColumnData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiOldColumnData*")] ImGuiOldColumnData* self); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddNgon")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddNgonNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness); - [NativeName(NativeNameType.Func, "ImGuiOldColumnData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiOldColumnData*")] ImGuiOldColumnData* self) + public static void AddNgon( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments, float thickness) { - DestroyNative(self); + AddNgonNative(self, center, radius, col, numSegments, thickness); } - [NativeName(NativeNameType.Func, "ImGuiOldColumnData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiOldColumnData*")] ref ImGuiOldColumnData self) + public static void AddNgon( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) { - fixed (ImGuiOldColumnData* pself = &self) - { - DestroyNative((ImGuiOldColumnData*)pself); - } + AddNgonNative(self, center, radius, col, numSegments, (float)(1.0f)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiOldColumns_ImGuiOldColumns")] - [return: NativeName(NativeNameType.Type, "ImGuiOldColumns*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiOldColumns_ImGuiOldColumns")] - internal static extern ImGuiOldColumns* ImGuiOldColumnsNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddNgonFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddNgonFilledNative(ImDrawList* self, Vector2 center, float radius, uint col, int numSegments); - [NativeName(NativeNameType.Func, "ImGuiOldColumns_ImGuiOldColumns")] - [return: NativeName(NativeNameType.Type, "ImGuiOldColumns*")] - public static ImGuiOldColumns* ImGuiOldColumns() + public static void AddNgonFilled( ImDrawList* self, Vector2 center, float radius, uint col, int numSegments) { - ImGuiOldColumns* ret = ImGuiOldColumnsNative(); - return ret; + AddNgonFilledNative(self, center, radius, col, numSegments); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiOldColumns_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiOldColumns_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiOldColumns*")] ImGuiOldColumns* self); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddEllipse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddEllipseNative(ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments, float thickness); - [NativeName(NativeNameType.Func, "ImGuiOldColumns_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiOldColumns*")] ImGuiOldColumns* self) + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments, float thickness) { - DestroyNative(self); + AddEllipseNative(self, center, radiusX, radiusY, col, rot, numSegments, thickness); } - [NativeName(NativeNameType.Func, "ImGuiOldColumns_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiOldColumns*")] ref ImGuiOldColumns self) + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments) { - fixed (ImGuiOldColumns* pself = &self) - { - DestroyNative((ImGuiOldColumns*)pself); - } + AddEllipseNative(self, center, radiusX, radiusY, col, rot, numSegments, (float)(1.0f)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_ImGuiDockNode")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_ImGuiDockNode")] - internal static extern ImGuiDockNode* ImGuiDockNodeNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot) + { + AddEllipseNative(self, center, radiusX, radiusY, col, rot, (int)(0), (float)(1.0f)); + } - [NativeName(NativeNameType.Func, "ImGuiDockNode_ImGuiDockNode")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - public static ImGuiDockNode* ImGuiDockNode([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col) { - ImGuiDockNode* ret = ImGuiDockNodeNative(id); - return ret; + AddEllipseNative(self, center, radiusX, radiusY, col, (float)(0.0f), (int)(0), (float)(1.0f)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, int numSegments) + { + AddEllipseNative(self, center, radiusX, radiusY, col, (float)(0.0f), numSegments, (float)(1.0f)); + } - [NativeName(NativeNameType.Func, "ImGuiDockNode_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, float thickness) { - DestroyNative(self); + AddEllipseNative(self, center, radiusX, radiusY, col, rot, (int)(0), thickness); } - [NativeName(NativeNameType.Func, "ImGuiDockNode_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddEllipse( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, int numSegments, float thickness) { - fixed (ImGuiDockNode* pself = &self) - { - DestroyNative((ImGuiDockNode*)pself); - } + AddEllipseNative(self, center, radiusX, radiusY, col, (float)(0.0f), numSegments, thickness); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsRootNode")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_IsRootNode")] - internal static extern byte IsRootNodeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddEllipseFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddEllipseFilledNative(ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments); - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsRootNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsRootNode([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddEllipseFilled( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments) { - byte ret = IsRootNodeNative(self); - return ret != 0; + AddEllipseFilledNative(self, center, radiusX, radiusY, col, rot, numSegments); } - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsRootNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsRootNode([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddEllipseFilled( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, float rot) { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsRootNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } + AddEllipseFilledNative(self, center, radiusX, radiusY, col, rot, (int)(0)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsDockSpace")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_IsDockSpace")] - internal static extern byte IsDockSpaceNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); - - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsDockSpace")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDockSpace([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddEllipseFilled( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col) { - byte ret = IsDockSpaceNative(self); - return ret != 0; + AddEllipseFilledNative(self, center, radiusX, radiusY, col, (float)(0.0f), (int)(0)); } - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsDockSpace")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDockSpace([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddEllipseFilled( ImDrawList* self, Vector2 center, float radiusX, float radiusY, uint col, int numSegments) { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsDockSpaceNative((ImGuiDockNode*)pself); - return ret != 0; - } + AddEllipseFilledNative(self, center, radiusX, radiusY, col, (float)(0.0f), numSegments); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsFloatingNode")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_IsFloatingNode")] - internal static extern byte IsFloatingNodeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddText_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddTextNative(ImDrawList* self, Vector2 pos, uint col, byte* textBegin, byte* textEnd); - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsFloatingNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsFloatingNode([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddText( ImDrawList* self, Vector2 pos, uint col, byte* textBegin, byte* textEnd) { - byte ret = IsFloatingNodeNative(self); - return ret != 0; + AddTextNative(self, pos, col, textBegin, textEnd); } - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsFloatingNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsFloatingNode([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddText( ImDrawList* self, Vector2 pos, uint col, byte* textBegin) { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsFloatingNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } + AddTextNative(self, pos, col, textBegin, (byte*)(default)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsCentralNode")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_IsCentralNode")] - internal static extern byte IsCentralNodeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); - - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsCentralNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsCentralNode([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddText( ImDrawList* self, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) { - byte ret = IsCentralNodeNative(self); - return ret != 0; + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, textEnd); + } } - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsCentralNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsCentralNode([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddText( ImDrawList* self, Vector2 pos, uint col, ref byte textBegin) { - fixed (ImGuiDockNode* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - byte ret = IsCentralNodeNative((ImGuiDockNode*)pself); - return ret != 0; + AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)(default)); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsHiddenTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_IsHiddenTabBar")] - internal static extern byte IsHiddenTabBarNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); - - /// /// Hidden tab bar can be shown back by clicking the small triangle /// [NativeName(NativeNameType.Func, "ImGuiDockNode_IsHiddenTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsHiddenTabBar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddText( ImDrawList* self, Vector2 pos, uint col, string textBegin, byte* textEnd) { - byte ret = IsHiddenTabBarNative(self); - return ret != 0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pos, col, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - /// /// Hidden tab bar can be shown back by clicking the small triangle /// [NativeName(NativeNameType.Func, "ImGuiDockNode_IsHiddenTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsHiddenTabBar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddText( ImDrawList* self, Vector2 pos, uint col, string textBegin) { - fixed (ImGuiDockNode* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - byte ret = IsHiddenTabBarNative((ImGuiDockNode*)pself); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pos, col, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsNoTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_IsNoTabBar")] - internal static extern byte IsNoTabBarNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); - - /// /// Never show a tab bar /// [NativeName(NativeNameType.Func, "ImGuiDockNode_IsNoTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsNoTabBar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddText( ImDrawList* self, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) { - byte ret = IsNoTabBarNative(self); - return ret != 0; + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, pos, col, textBegin, (byte*)ptextEnd); + } } - /// /// Never show a tab bar /// [NativeName(NativeNameType.Func, "ImGuiDockNode_IsNoTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsNoTabBar([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddText( ImDrawList* self, Vector2 pos, uint col, byte* textBegin, string textEnd) { - fixed (ImGuiDockNode* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - byte ret = IsNoTabBarNative((ImGuiDockNode*)pself); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, pos, col, textBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsSplitNode")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_IsSplitNode")] - internal static extern byte IsSplitNodeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); - - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsSplitNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsSplitNode([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddText( ImDrawList* self, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) { - byte ret = IsSplitNodeNative(self); - return ret != 0; + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } } - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsSplitNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsSplitNode([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddText( ImDrawList* self, Vector2 pos, uint col, string textBegin, string textEnd) { - fixed (ImGuiDockNode* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - byte ret = IsSplitNodeNative((ImGuiDockNode*)pself); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, pos, col, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsLeafNode")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_IsLeafNode")] - internal static extern byte IsLeafNodeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddText_FontPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddTextNative(ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect); - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsLeafNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsLeafNode([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - byte ret = IsLeafNodeNative(self); - return ret != 0; + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); } - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsLeafNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsLeafNode([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsLeafNodeNative((ImGuiDockNode*)pself); - return ret != 0; - } + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsEmpty")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_IsEmpty")] - internal static extern byte IsEmptyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); - - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsEmpty")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsEmpty([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) { - byte ret = IsEmptyNative(self); - return ret != 0; + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); } - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsEmpty")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsEmpty([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin) { - fixed (ImGuiDockNode* pself = &self) - { - byte ret = IsEmptyNative((ImGuiDockNode*)pself); - return ret != 0; - } + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_Rect")] - internal static extern void RectNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } - [NativeName(NativeNameType.Func, "ImGuiDockNode_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Rect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) { - RectNative(pOut, self); + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); } - [NativeName(NativeNameType.Func, "ImGuiDockNode_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Rect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) { - fixed (ImRect* ppOut = &pOut) - { - RectNative((ImRect*)ppOut, self); - } + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); } - [NativeName(NativeNameType.Func, "ImGuiDockNode_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Rect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImGuiDockNode* pself = &self) - { - RectNative(pOut, (ImGuiDockNode*)pself); - } + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); } - [NativeName(NativeNameType.Func, "ImGuiDockNode_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Rect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImRect* ppOut = &pOut) + fixed (ImFont* pfont = &font) { - fixed (ImGuiDockNode* pself = &self) - { - RectNative((ImRect*)ppOut, (ImGuiDockNode*)pself); - } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_SetLocalFlags")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_SetLocalFlags")] - internal static extern void SetLocalFlagsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags); - - [NativeName(NativeNameType.Func, "ImGuiDockNode_SetLocalFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetLocalFlags([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) { - SetLocalFlagsNative(self, flags); + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } } - [NativeName(NativeNameType.Func, "ImGuiDockNode_SetLocalFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetLocalFlags([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) { - fixed (ImGuiDockNode* pself = &self) + fixed (ImFont* pfont = &font) { - SetLocalFlagsNative((ImGuiDockNode*)pself, flags); + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_UpdateMergedFlags")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockNode_UpdateMergedFlags")] - internal static extern void UpdateMergedFlagsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self); - - [NativeName(NativeNameType.Func, "ImGuiDockNode_UpdateMergedFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateMergedFlags([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) { - UpdateMergedFlagsNative(self); + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } } - [NativeName(NativeNameType.Func, "ImGuiDockNode_UpdateMergedFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateMergedFlags([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) { - fixed (ImGuiDockNode* pself = &self) + fixed (ImFont* pfont = &font) { - UpdateMergedFlagsNative((ImGuiDockNode*)pself); + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockContext_ImGuiDockContext")] - [return: NativeName(NativeNameType.Type, "ImGuiDockContext*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockContext_ImGuiDockContext")] - internal static extern ImGuiDockContext* ImGuiDockContextNative(); - - [NativeName(NativeNameType.Func, "ImGuiDockContext_ImGuiDockContext")] - [return: NativeName(NativeNameType.Type, "ImGuiDockContext*")] - public static ImGuiDockContext* ImGuiDockContext() + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) { - ImGuiDockContext* ret = ImGuiDockContextNative(); - return ret; + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiDockContext_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiDockContext_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockContext*")] ImGuiDockContext* self); - - [NativeName(NativeNameType.Func, "ImGuiDockContext_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockContext*")] ImGuiDockContext* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) { - DestroyNative(self); + fixed (ImFont* pfont = &font) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } } - [NativeName(NativeNameType.Func, "ImGuiDockContext_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiDockContext*")] ref ImGuiDockContext self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImGuiDockContext* pself = &self) + fixed (ImFont* pfont = &font) { - DestroyNative((ImGuiDockContext*)pself); + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewportP_ImGuiViewportP")] - [return: NativeName(NativeNameType.Type, "ImGuiViewportP*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewportP_ImGuiViewportP")] - internal static extern ImGuiViewportP* ImGuiViewportPNative(); - - [NativeName(NativeNameType.Func, "ImGuiViewportP_ImGuiViewportP")] - [return: NativeName(NativeNameType.Type, "ImGuiViewportP*")] - public static ImGuiViewportP* ImGuiViewportP() + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - ImGuiViewportP* ret = ImGuiViewportPNative(); - return ret; + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewportP_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewportP_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self); - - [NativeName(NativeNameType.Func, "ImGuiViewportP_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) { - DestroyNative(self); + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) { - fixed (ImGuiViewportP* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - DestroyNative((ImGuiViewportP*)pself); + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewportP_ClearRequestFlags")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewportP_ClearRequestFlags")] - internal static extern void ClearRequestFlagsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self); - - [NativeName(NativeNameType.Func, "ImGuiViewportP_ClearRequestFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearRequestFlags([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin) { - ClearRequestFlagsNative(self); + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_ClearRequestFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearRequestFlags([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) { - fixed (ImGuiViewportP* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - ClearRequestFlagsNative((ImGuiViewportP*)pself); + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewportP_CalcWorkRectPos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewportP_CalcWorkRectPos")] - internal static extern void CalcWorkRectPosNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMin); - - [NativeName(NativeNameType.Func, "ImGuiViewportP_CalcWorkRectPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWorkRectPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMin) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) { - CalcWorkRectPosNative(pOut, self, offMin); + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_CalcWorkRectPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWorkRectPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMin) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) { - fixed (Vector2* ppOut = &pOut) + fixed (byte* ptextBegin = &textBegin) { - CalcWorkRectPosNative((Vector2*)ppOut, self, offMin); + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_CalcWorkRectPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWorkRectPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMin) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImGuiViewportP* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - CalcWorkRectPosNative(pOut, (ImGuiViewportP*)pself, offMin); + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_CalcWorkRectPos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWorkRectPos([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMin) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (Vector2* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiViewportP* pself = &self) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else { - CalcWorkRectPosNative((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewportP_CalcWorkRectSize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewportP_CalcWorkRectSize")] - internal static extern void CalcWorkRectSizeNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMin, [NativeName(NativeNameType.Param, "off_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMax); - - [NativeName(NativeNameType.Func, "ImGuiViewportP_CalcWorkRectSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWorkRectSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMin, [NativeName(NativeNameType.Param, "off_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMax) - { - CalcWorkRectSizeNative(pOut, self, offMin, offMax); - } - - [NativeName(NativeNameType.Func, "ImGuiViewportP_CalcWorkRectSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWorkRectSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMin, [NativeName(NativeNameType.Param, "off_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMax) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) { - fixed (Vector2* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - CalcWorkRectSizeNative((Vector2*)ppOut, self, offMin, offMax); + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_CalcWorkRectSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWorkRectSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMin, [NativeName(NativeNameType.Param, "off_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMax) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) { - fixed (ImGuiViewportP* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - CalcWorkRectSizeNative(pOut, (ImGuiViewportP*)pself, offMin, offMax); + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_CalcWorkRectSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWorkRectSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self, [NativeName(NativeNameType.Param, "off_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMin, [NativeName(NativeNameType.Param, "off_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offMax) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin) { - fixed (Vector2* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiViewportP* pself = &self) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - CalcWorkRectSizeNative((Vector2*)ppOut, (ImGuiViewportP*)pself, offMin, offMax); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewportP_UpdateWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewportP_UpdateWorkRect")] - internal static extern void UpdateWorkRectNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self); - - /// /// Update public fields /// [NativeName(NativeNameType.Func, "ImGuiViewportP_UpdateWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateWorkRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) { - UpdateWorkRectNative(self); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - /// /// Update public fields /// [NativeName(NativeNameType.Func, "ImGuiViewportP_UpdateWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateWorkRect([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) { - fixed (ImGuiViewportP* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) { - UpdateWorkRectNative((ImGuiViewportP*)pself); + Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetMainRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewportP_GetMainRect")] - internal static extern void GetMainRectNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self); - - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetMainRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMainRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) { - GetMainRectNative(pOut, self); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetMainRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMainRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImRect* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) { - GetMainRectNative((ImRect*)ppOut, self); + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetMainRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMainRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImGuiViewportP* pself = &self) + fixed (ImFont* pfont = &font) { - GetMainRectNative(pOut, (ImGuiViewportP*)pself); + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetMainRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetMainRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) { - fixed (ImRect* ppOut = &pOut) + fixed (ImFont* pfont = &font) { - fixed (ImGuiViewportP* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - GetMainRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewportP_GetWorkRect")] - internal static extern void GetWorkRectNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self); - - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWorkRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) { - GetWorkRectNative(pOut, self); + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWorkRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) { - fixed (ImRect* ppOut = &pOut) + fixed (ImFont* pfont = &font) { - GetWorkRectNative((ImRect*)ppOut, self); + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWorkRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) { - fixed (ImGuiViewportP* pself = &self) + fixed (ImFont* pfont = &font) { - GetWorkRectNative(pOut, (ImGuiViewportP*)pself); + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWorkRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) { - fixed (ImRect* ppOut = &pOut) + fixed (ImFont* pfont = &font) { - fixed (ImGuiViewportP* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - GetWorkRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetBuildWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiViewportP_GetBuildWorkRect")] - internal static extern void GetBuildWorkRectNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self); - - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetBuildWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBuildWorkRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) { - GetBuildWorkRectNative(pOut, self); + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetBuildWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBuildWorkRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImRect* ppOut = &pOut) + fixed (ImFont* pfont = &font) { - GetBuildWorkRectNative((ImRect*)ppOut, self); + fixed (byte* ptextBegin = &textBegin) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetBuildWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBuildWorkRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImGuiViewportP* pself = &self) + fixed (ImFont* pfont = &font) { - GetBuildWorkRectNative(pOut, (ImGuiViewportP*)pself); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "ImGuiViewportP_GetBuildWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetBuildWorkRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) { - fixed (ImRect* ppOut = &pOut) + fixed (ImFont* pfont = &font) { - fixed (ImGuiViewportP* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - GetBuildWorkRectNative((ImRect*)ppOut, (ImGuiViewportP*)pself); + Utils.Free(pStr0); } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_ImGuiWindowSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindowSettings_ImGuiWindowSettings")] - internal static extern ImGuiWindowSettings* ImGuiWindowSettingsNative(); - - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_ImGuiWindowSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] - public static ImGuiWindowSettings* ImGuiWindowSettings() + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) { - ImGuiWindowSettings* ret = ImGuiWindowSettingsNative(); - return ret; + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindowSettings_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] ImGuiWindowSettings* self); - - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] ImGuiWindowSettings* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) { - DestroyNative(self); + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] ref ImGuiWindowSettings self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) { - fixed (ImGuiWindowSettings* pself = &self) + fixed (ImFont* pfont = &font) { - DestroyNative((ImGuiWindowSettings*)pself); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_GetName")] - [return: NativeName(NativeNameType.Type, "char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindowSettings_GetName")] - internal static extern byte* GetNameNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] ImGuiWindowSettings* self); - - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_GetName")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* GetName([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] ImGuiWindowSettings* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) { - byte* ret = GetNameNative(self); - return ret; + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_GetName")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string GetNameS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] ImGuiWindowSettings* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) { - string ret = Utils.DecodeStringUTF8(GetNameNative(self)); - return ret; + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_GetName")] - [return: NativeName(NativeNameType.Type, "char*")] - public static byte* GetName([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] ref ImGuiWindowSettings self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImGuiWindowSettings* pself = &self) + fixed (ImFont* pfont = &font) { - byte* ret = GetNameNative((ImGuiWindowSettings*)pself); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_GetName")] - [return: NativeName(NativeNameType.Type, "char*")] - public static string GetNameS([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] ref ImGuiWindowSettings self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImGuiWindowSettings* pself = &self) + fixed (byte* ptextEnd = &textEnd) { - string ret = Utils.DecodeStringUTF8(GetNameNative((ImGuiWindowSettings*)pself)); - return ret; + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiSettingsHandler_ImGuiSettingsHandler")] - [return: NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiSettingsHandler_ImGuiSettingsHandler")] - internal static extern ImGuiSettingsHandler* ImGuiSettingsHandlerNative(); - - [NativeName(NativeNameType.Func, "ImGuiSettingsHandler_ImGuiSettingsHandler")] - [return: NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] - public static ImGuiSettingsHandler* ImGuiSettingsHandler() - { - ImGuiSettingsHandler* ret = ImGuiSettingsHandlerNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiSettingsHandler_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiSettingsHandler_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* self); - - [NativeName(NativeNameType.Func, "ImGuiSettingsHandler_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ImGuiSettingsHandler* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiSettingsHandler_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] ref ImGuiSettingsHandler self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) { - fixed (ImGuiSettingsHandler* pself = &self) + fixed (byte* ptextEnd = &textEnd) { - DestroyNative((ImGuiSettingsHandler*)pself); + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStackLevelInfo_ImGuiStackLevelInfo")] - [return: NativeName(NativeNameType.Type, "ImGuiStackLevelInfo*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStackLevelInfo_ImGuiStackLevelInfo")] - internal static extern ImGuiStackLevelInfo* ImGuiStackLevelInfoNative(); - - [NativeName(NativeNameType.Func, "ImGuiStackLevelInfo_ImGuiStackLevelInfo")] - [return: NativeName(NativeNameType.Type, "ImGuiStackLevelInfo*")] - public static ImGuiStackLevelInfo* ImGuiStackLevelInfo() - { - ImGuiStackLevelInfo* ret = ImGuiStackLevelInfoNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStackLevelInfo_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStackLevelInfo_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackLevelInfo*")] ImGuiStackLevelInfo* self); - - [NativeName(NativeNameType.Func, "ImGuiStackLevelInfo_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackLevelInfo*")] ImGuiStackLevelInfo* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiStackLevelInfo_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackLevelInfo*")] ref ImGuiStackLevelInfo self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) { - fixed (ImGuiStackLevelInfo* pself = &self) + fixed (byte* ptextEnd = &textEnd) { - DestroyNative((ImGuiStackLevelInfo*)pself); + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStackTool_ImGuiStackTool")] - [return: NativeName(NativeNameType.Type, "ImGuiStackTool*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStackTool_ImGuiStackTool")] - internal static extern ImGuiStackTool* ImGuiStackToolNative(); - - [NativeName(NativeNameType.Func, "ImGuiStackTool_ImGuiStackTool")] - [return: NativeName(NativeNameType.Type, "ImGuiStackTool*")] - public static ImGuiStackTool* ImGuiStackTool() - { - ImGuiStackTool* ret = ImGuiStackToolNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiStackTool_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiStackTool_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackTool*")] ImGuiStackTool* self); - - [NativeName(NativeNameType.Func, "ImGuiStackTool_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackTool*")] ImGuiStackTool* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiStackTool_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiStackTool*")] ref ImGuiStackTool self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) { - fixed (ImGuiStackTool* pself = &self) + fixed (byte* ptextEnd = &textEnd) { - DestroyNative((ImGuiStackTool*)pself); + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiContextHook_ImGuiContextHook")] - [return: NativeName(NativeNameType.Type, "ImGuiContextHook*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiContextHook_ImGuiContextHook")] - internal static extern ImGuiContextHook* ImGuiContextHookNative(); - - [NativeName(NativeNameType.Func, "ImGuiContextHook_ImGuiContextHook")] - [return: NativeName(NativeNameType.Type, "ImGuiContextHook*")] - public static ImGuiContextHook* ImGuiContextHook() - { - ImGuiContextHook* ret = ImGuiContextHookNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiContextHook_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiContextHook_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] ImGuiContextHook* self); - - [NativeName(NativeNameType.Func, "ImGuiContextHook_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] ImGuiContextHook* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiContextHook_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiContextHook*")] ref ImGuiContextHook self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImGuiContextHook* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - DestroyNative((ImGuiContextHook*)pself); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiContext_ImGuiContext")] - [return: NativeName(NativeNameType.Type, "ImGuiContext*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiContext_ImGuiContext")] - internal static extern ImGuiContext* ImGuiContextNative([NativeName(NativeNameType.Param, "shared_font_atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* sharedFontAtlas); - - /// /// Different to ensure initial submission /// PlatformImeViewport = 0; /// PlatformLocaleDecimalPoint = '.'; /// DockNodeWindowMenuHandler = ((void *)0) ; /// SettingsLoaded = false; /// SettingsDirtyTimer = 0.0f; /// HookIdNext = 0; /// memset(LocalizationTable, 0, sizeof(LocalizationTable)); /// LogEnabled = false; /// LogType = ImGuiLogType_None; /// LogNextPrefix = LogNextSuffix = ((void *)0) ; /// LogFile = ((void *)0) ; /// LogLinePosY = 3.40282346638528859811704183484516925e+38F; /// LogLineFirstItem = false; /// LogDepthRef = 0; /// LogDepthToExpand = LogDepthToExpandDefault = 2; /// DebugLogFlags = ImGuiDebugLogFlags_OutputToTTY; /// DebugLocateId = 0; /// DebugLogClipperAutoDisableFrames = 0; /// DebugLocateFrames = 0; /// DebugBeginReturnValueCullDepth = -1; /// DebugItemPickerActive = false; /// DebugItemPickerMouseButton = ImGuiMouseButton_Left; /// DebugItemPickerBreakId = 0; /// DebugHoveredDockNode = ((void *)0) ; /// memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame)); /// FramerateSecPerFrameIdx = FramerateSecPerFrameCount = 0; /// FramerateSecPerFrameAccum = 0.0f; /// WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1; /// } /// [NativeName(NativeNameType.Func, "ImGuiContext_ImGuiContext")] - [return: NativeName(NativeNameType.Type, "ImGuiContext*")] - public static ImGuiContext* ImGuiContext([NativeName(NativeNameType.Param, "shared_font_atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* sharedFontAtlas) - { - ImGuiContext* ret = ImGuiContextNative(sharedFontAtlas); - return ret; - } - - /// /// Different to ensure initial submission /// PlatformImeViewport = 0; /// PlatformLocaleDecimalPoint = '.'; /// DockNodeWindowMenuHandler = ((void *)0) ; /// SettingsLoaded = false; /// SettingsDirtyTimer = 0.0f; /// HookIdNext = 0; /// memset(LocalizationTable, 0, sizeof(LocalizationTable)); /// LogEnabled = false; /// LogType = ImGuiLogType_None; /// LogNextPrefix = LogNextSuffix = ((void *)0) ; /// LogFile = ((void *)0) ; /// LogLinePosY = 3.40282346638528859811704183484516925e+38F; /// LogLineFirstItem = false; /// LogDepthRef = 0; /// LogDepthToExpand = LogDepthToExpandDefault = 2; /// DebugLogFlags = ImGuiDebugLogFlags_OutputToTTY; /// DebugLocateId = 0; /// DebugLogClipperAutoDisableFrames = 0; /// DebugLocateFrames = 0; /// DebugBeginReturnValueCullDepth = -1; /// DebugItemPickerActive = false; /// DebugItemPickerMouseButton = ImGuiMouseButton_Left; /// DebugItemPickerBreakId = 0; /// DebugHoveredDockNode = ((void *)0) ; /// memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame)); /// FramerateSecPerFrameIdx = FramerateSecPerFrameCount = 0; /// FramerateSecPerFrameAccum = 0.0f; /// WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1; /// } /// [NativeName(NativeNameType.Func, "ImGuiContext_ImGuiContext")] - [return: NativeName(NativeNameType.Type, "ImGuiContext*")] - public static ImGuiContext* ImGuiContext([NativeName(NativeNameType.Param, "shared_font_atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas sharedFontAtlas) - { - fixed (ImFontAtlas* psharedFontAtlas = &sharedFontAtlas) + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) { - ImGuiContext* ret = ImGuiContextNative((ImFontAtlas*)psharedFontAtlas); - return ret; + Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiContext_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiContext_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* self); - - [NativeName(NativeNameType.Func, "ImGuiContext_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiContext_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) { - fixed (ImGuiContext* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - DestroyNative((ImGuiContext*)pself); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_ImGuiWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_ImGuiWindow")] - internal static extern ImGuiWindow* ImGuiWindowNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* context, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name); - - [NativeName(NativeNameType.Func, "ImGuiWindow_ImGuiWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* ImGuiWindow([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* context, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name) - { - ImGuiWindow* ret = ImGuiWindowNative(context, name); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_ImGuiWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* ImGuiWindow([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext context, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name) - { - fixed (ImGuiContext* pcontext = &context) + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - ImGuiWindow* ret = ImGuiWindowNative((ImGuiContext*)pcontext, name); - return ret; + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "ImGuiWindow_ImGuiWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* ImGuiWindow([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* context, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) { - fixed (byte* pname = &name) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - ImGuiWindow* ret = ImGuiWindowNative(context, (byte*)pname); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "ImGuiWindow_ImGuiWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* ImGuiWindow([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* context, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -214227,42 +51357,69 @@ public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeNam byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImGuiWindow* ret = ImGuiWindowNative(context, pStr0); + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "ImGuiWindow_ImGuiWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* ImGuiWindow([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext context, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImGuiContext* pcontext = &context) + fixed (ImFont* pfont = &font) { - fixed (byte* pname = &name) + fixed (byte* ptextEnd = &textEnd) { - ImGuiWindow* ret = ImGuiWindowNative((ImGuiContext*)pcontext, (byte*)pname); - return ret; + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); } } } - [NativeName(NativeNameType.Func, "ImGuiWindow_ImGuiWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* ImGuiWindow([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext context, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImGuiContext* pcontext = &context) + fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -214272,120 +51429,249 @@ public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeNam byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImGuiWindow* ret = ImGuiWindowNative((ImGuiContext*)pcontext, pStr0); + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self); - - [NativeName(NativeNameType.Func, "ImGuiWindow_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) { - DestroyNative(self); + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } - [NativeName(NativeNameType.Func, "ImGuiWindow_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) { - fixed (ImGuiWindow* pself = &self) + fixed (ImFont* pfont = &font) { - DestroyNative((ImGuiWindow*)pself); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_GetID_Str")] - internal static extern int GetIDNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd); + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - int ret = GetIDNative(self, str, strEnd); - return ret; + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) { - int ret = GetIDNative(self, str, (byte*)(default)); - return ret; + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) { - fixed (ImGuiWindow* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - int ret = GetIDNative((ImGuiWindow*)pself, str, strEnd); - return ret; + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) { - fixed (ImGuiWindow* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - int ret = GetIDNative((ImGuiWindow*)pself, str, (byte*)(default)); - return ret; + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (byte* pstr = &str) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - int ret = GetIDNative(self, (byte*)pstr, strEnd); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) { - fixed (byte* pstr = &str) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - int ret = GetIDNative(self, (byte*)pstr, (byte*)(default)); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (str != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(str); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -214395,26 +51681,44 @@ public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = GetIDNative(self, pStr0, strEnd); + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (str != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(str); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -214424,56 +51728,102 @@ public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = GetIDNative(self, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* pfont = &font) { - Utils.Free(pStr0); + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } } - return ret; } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) { - fixed (ImGuiWindow* pself = &self) + fixed (ImFont* pfont = &font) { - fixed (byte* pstr = &str) + fixed (byte* ptextBegin = &textBegin) { - int ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, strEnd); - return ret; + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } } } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) { - fixed (ImGuiWindow* pself = &self) + fixed (ImFont* pfont = &font) { - fixed (byte* pstr = &str) + fixed (byte* ptextBegin = &textBegin) { - int ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)(default)); - return ret; + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } } } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) { - fixed (ImGuiWindow* pself = &self) + fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; - if (str != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(str); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -214483,29 +51833,47 @@ public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = GetIDNative((ImGuiWindow*)pself, pStr0, strEnd); + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) { - fixed (ImGuiWindow* pself = &self) + fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; - if (str != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(str); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -214515,83 +51883,47 @@ public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = GetIDNative((ImGuiWindow*)pself, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (byte* pstrEnd = &strEnd) - { - int ret = GetIDNative(self, str, (byte*)pstrEnd); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - else + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr1); } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = GetIDNative(self, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstrEnd = &strEnd) + if (pStrSize0 >= Utils.MaxStackallocSize) { - int ret = GetIDNative((ImGuiWindow*)pself, str, (byte*)pstrEnd); - return ret; + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) { - fixed (ImGuiWindow* pself = &self) + fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; - if (strEnd != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -214601,110 +51933,47 @@ public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = GetIDNative((ImGuiWindow*)pself, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - int ret = GetIDNative(self, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr1); } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = GetIDNative(self, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (ImGuiWindow* pself = &self) - { - fixed (byte* pstr = &str) + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pstrEnd = &strEnd) - { - int ret = GetIDNative((ImGuiWindow*)pself, (byte*)pstr, (byte*)pstrEnd); - return ret; - } + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) { - fixed (ImGuiWindow* pself = &self) + fixed (ImFont* pfont = &font) { byte* pStr0 = null; int pStrSize0 = 0; - if (str != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(str); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -214714,14 +51983,14 @@ public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(N byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (strEnd != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -214731,10 +52000,10 @@ public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(N byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - int ret = GetIDNative((ImGuiWindow*)pself, pStr0, pStr1); + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -214743,755 +52012,458 @@ public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(N { Utils.Free(pStr0); } - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Ptr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_GetID_Ptr")] - internal static extern int GetIDNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "const void*")] void* ptr); - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Ptr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "const void*")] void* ptr) - { - int ret = GetIDNative(self, ptr); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Ptr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "const void*")] void* ptr) - { - fixed (ImGuiWindow* pself = &self) - { - int ret = GetIDNative((ImGuiWindow*)pself, ptr); - return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_GetID_Int")] - internal static extern int GetIDNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - int ret = GetIDNative(self, n); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetID([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pself = &self) + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - int ret = GetIDNative((ImGuiWindow*)pself, n); - return ret; + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_GetIDFromRectangle")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_GetIDFromRectangle")] - internal static extern int GetIDFromRectangleNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "r_abs")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rAbs); - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetIDFromRectangle")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetIDFromRectangle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self, [NativeName(NativeNameType.Param, "r_abs")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rAbs) - { - int ret = GetIDFromRectangleNative(self, rAbs); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetIDFromRectangle")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetIDFromRectangle([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self, [NativeName(NativeNameType.Param, "r_abs")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rAbs) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pself = &self) + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - int ret = GetIDFromRectangleNative((ImGuiWindow*)pself, rAbs); - return ret; + AddTextNative(self, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_Rect")] - internal static extern void RectNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self); - - [NativeName(NativeNameType.Func, "ImGuiWindow_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Rect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self) - { - RectNative(pOut, self); - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Rect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) { - fixed (ImRect* ppOut = &pOut) + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - RectNative((ImRect*)ppOut, self); + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); } } - [NativeName(NativeNameType.Func, "ImGuiWindow_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Rect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pself = &self) + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - RectNative(pOut, (ImGuiWindow*)pself); + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); } } - [NativeName(NativeNameType.Func, "ImGuiWindow_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Rect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImRect* ppOut = &pOut) + fixed (ImFont* pfont = &font) { - fixed (ImGuiWindow* pself = &self) + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - RectNative((ImRect*)ppOut, (ImGuiWindow*)pself); + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_CalcFontSize")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_CalcFontSize")] - internal static extern float CalcFontSizeNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self); - - [NativeName(NativeNameType.Func, "ImGuiWindow_CalcFontSize")] - [return: NativeName(NativeNameType.Type, "float")] - public static float CalcFontSize([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self) - { - float ret = CalcFontSizeNative(self); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_CalcFontSize")] - [return: NativeName(NativeNameType.Type, "float")] - public static float CalcFontSize([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = CalcFontSizeNative((ImGuiWindow*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_TitleBarHeight")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_TitleBarHeight")] - internal static extern float TitleBarHeightNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self); - - [NativeName(NativeNameType.Func, "ImGuiWindow_TitleBarHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public static float TitleBarHeight([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self) - { - float ret = TitleBarHeightNative(self); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_TitleBarHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public static float TitleBarHeight([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = TitleBarHeightNative((ImGuiWindow*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_TitleBarRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_TitleBarRect")] - internal static extern void TitleBarRectNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self); - - [NativeName(NativeNameType.Func, "ImGuiWindow_TitleBarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TitleBarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self) - { - TitleBarRectNative(pOut, self); - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_TitleBarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TitleBarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self) - { - fixed (ImRect* ppOut = &pOut) - { - TitleBarRectNative((ImRect*)ppOut, self); - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_TitleBarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TitleBarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - TitleBarRectNative(pOut, (ImGuiWindow*)pself); - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_TitleBarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TitleBarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { - fixed (ImRect* ppOut = &pOut) + fixed (ImFont* pfont = &font) { - fixed (ImGuiWindow* pself = &self) + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - TitleBarRectNative((ImRect*)ppOut, (ImGuiWindow*)pself); + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_MenuBarHeight")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_MenuBarHeight")] - internal static extern float MenuBarHeightNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self); - - [NativeName(NativeNameType.Func, "ImGuiWindow_MenuBarHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public static float MenuBarHeight([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self) - { - float ret = MenuBarHeightNative(self); - return ret; - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_MenuBarHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public static float MenuBarHeight([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self) - { - fixed (ImGuiWindow* pself = &self) - { - float ret = MenuBarHeightNative((ImGuiWindow*)pself); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiWindow_MenuBarRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiWindow_MenuBarRect")] - internal static extern void MenuBarRectNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self); - - [NativeName(NativeNameType.Func, "ImGuiWindow_MenuBarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void MenuBarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self) - { - MenuBarRectNative(pOut, self); - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_MenuBarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void MenuBarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) { - fixed (ImRect* ppOut = &pOut) + fixed (ImFont* pfont = &font) { - MenuBarRectNative((ImRect*)ppOut, self); + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } } } - [NativeName(NativeNameType.Func, "ImGuiWindow_MenuBarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void MenuBarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pself = &self) + fixed (ImFont* pfont = &font) { - MenuBarRectNative(pOut, (ImGuiWindow*)pself); + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } } } - [NativeName(NativeNameType.Func, "ImGuiWindow_MenuBarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void MenuBarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImRect* ppOut = &pOut) + fixed (byte* ptextBegin = &textBegin) { - fixed (ImGuiWindow* pself = &self) + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - MenuBarRectNative((ImRect*)ppOut, (ImGuiWindow*)pself); + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTabItem_ImGuiTabItem")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTabItem_ImGuiTabItem")] - internal static extern ImGuiTabItem* ImGuiTabItemNative(); - - [NativeName(NativeNameType.Func, "ImGuiTabItem_ImGuiTabItem")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - public static ImGuiTabItem* ImGuiTabItem() - { - ImGuiTabItem* ret = ImGuiTabItemNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTabItem_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTabItem_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* self); - - [NativeName(NativeNameType.Func, "ImGuiTabItem_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTabItem_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { - fixed (ImGuiTabItem* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - DestroyNative((ImGuiTabItem*)pself); + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTabBar_ImGuiTabBar")] - [return: NativeName(NativeNameType.Type, "ImGuiTabBar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTabBar_ImGuiTabBar")] - internal static extern ImGuiTabBar* ImGuiTabBarNative(); - - [NativeName(NativeNameType.Func, "ImGuiTabBar_ImGuiTabBar")] - [return: NativeName(NativeNameType.Type, "ImGuiTabBar*")] - public static ImGuiTabBar* ImGuiTabBar() - { - ImGuiTabBar* ret = ImGuiTabBarNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTabBar_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTabBar_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* self); - - [NativeName(NativeNameType.Func, "ImGuiTabBar_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTabBar_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) { - fixed (ImGuiTabBar* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - DestroyNative((ImGuiTabBar*)pself); + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableColumn_ImGuiTableColumn")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumn*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableColumn_ImGuiTableColumn")] - internal static extern ImGuiTableColumn* ImGuiTableColumnNative(); - - [NativeName(NativeNameType.Func, "ImGuiTableColumn_ImGuiTableColumn")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumn*")] - public static ImGuiTableColumn* ImGuiTableColumn() - { - ImGuiTableColumn* ret = ImGuiTableColumnNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableColumn_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableColumn_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ImGuiTableColumn* self); - - [NativeName(NativeNameType.Func, "ImGuiTableColumn_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ImGuiTableColumn* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTableColumn_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ref ImGuiTableColumn self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImGuiTableColumn* pself = &self) + fixed (byte* ptextBegin = &textBegin) { - DestroyNative((ImGuiTableColumn*)pself); + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableInstanceData_ImGuiTableInstanceData")] - [return: NativeName(NativeNameType.Type, "ImGuiTableInstanceData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableInstanceData_ImGuiTableInstanceData")] - internal static extern ImGuiTableInstanceData* ImGuiTableInstanceDataNative(); - - [NativeName(NativeNameType.Func, "ImGuiTableInstanceData_ImGuiTableInstanceData")] - [return: NativeName(NativeNameType.Type, "ImGuiTableInstanceData*")] - public static ImGuiTableInstanceData* ImGuiTableInstanceData() - { - ImGuiTableInstanceData* ret = ImGuiTableInstanceDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableInstanceData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableInstanceData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableInstanceData*")] ImGuiTableInstanceData* self); - - [NativeName(NativeNameType.Func, "ImGuiTableInstanceData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableInstanceData*")] ImGuiTableInstanceData* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTableInstanceData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableInstanceData*")] ref ImGuiTableInstanceData self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImGuiTableInstanceData* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - DestroyNative((ImGuiTableInstanceData*)pself); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTable_ImGuiTable")] - [return: NativeName(NativeNameType.Type, "ImGuiTable*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTable_ImGuiTable")] - internal static extern ImGuiTable* ImGuiTableNative(); - - [NativeName(NativeNameType.Func, "ImGuiTable_ImGuiTable")] - [return: NativeName(NativeNameType.Type, "ImGuiTable*")] - public static ImGuiTable* ImGuiTable() - { - ImGuiTable* ret = ImGuiTableNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTable_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTable_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* self); - - [NativeName(NativeNameType.Func, "ImGuiTable_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* self) - { - DestroyNative(self); - } - - [NativeName(NativeNameType.Func, "ImGuiTable_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable self) - { - fixed (ImGuiTable* pself = &self) + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - DestroyNative((ImGuiTable*)pself); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableTempData_ImGuiTableTempData")] - [return: NativeName(NativeNameType.Type, "ImGuiTableTempData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableTempData_ImGuiTableTempData")] - internal static extern ImGuiTableTempData* ImGuiTableTempDataNative(); - - [NativeName(NativeNameType.Func, "ImGuiTableTempData_ImGuiTableTempData")] - [return: NativeName(NativeNameType.Type, "ImGuiTableTempData*")] - public static ImGuiTableTempData* ImGuiTableTempData() - { - ImGuiTableTempData* ret = ImGuiTableTempDataNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableTempData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableTempData_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableTempData*")] ImGuiTableTempData* self); - - [NativeName(NativeNameType.Func, "ImGuiTableTempData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableTempData*")] ImGuiTableTempData* self) - { - DestroyNative(self); + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } - [NativeName(NativeNameType.Func, "ImGuiTableTempData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableTempData*")] ref ImGuiTableTempData self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { - fixed (ImGuiTableTempData* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - DestroyNative((ImGuiTableTempData*)pself); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableColumnSettings_ImGuiTableColumnSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumnSettings*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableColumnSettings_ImGuiTableColumnSettings")] - internal static extern ImGuiTableColumnSettings* ImGuiTableColumnSettingsNative(); - - [NativeName(NativeNameType.Func, "ImGuiTableColumnSettings_ImGuiTableColumnSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumnSettings*")] - public static ImGuiTableColumnSettings* ImGuiTableColumnSettings() - { - ImGuiTableColumnSettings* ret = ImGuiTableColumnSettingsNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableColumnSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableColumnSettings_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableColumnSettings*")] ImGuiTableColumnSettings* self); - - [NativeName(NativeNameType.Func, "ImGuiTableColumnSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableColumnSettings*")] ImGuiTableColumnSettings* self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) { - DestroyNative(self); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } - [NativeName(NativeNameType.Func, "ImGuiTableColumnSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableColumnSettings*")] ref ImGuiTableColumnSettings self) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImGuiTableColumnSettings* pself = &self) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - DestroyNative((ImGuiTableColumnSettings*)pself); + AddTextNative(self, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableSettings_ImGuiTableSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSettings*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableSettings_ImGuiTableSettings")] - internal static extern ImGuiTableSettings* ImGuiTableSettingsNative(); - - [NativeName(NativeNameType.Func, "ImGuiTableSettings_ImGuiTableSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSettings*")] - public static ImGuiTableSettings* ImGuiTableSettings() + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - ImGuiTableSettings* ret = ImGuiTableSettingsNative(); - return ret; + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableSettings_destroy")] - internal static extern void DestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableSettings*")] ImGuiTableSettings* self); - - [NativeName(NativeNameType.Func, "ImGuiTableSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableSettings*")] ImGuiTableSettings* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { - DestroyNative(self); + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } } - [NativeName(NativeNameType.Func, "ImGuiTableSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableSettings*")] ref ImGuiTableSettings self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) { - fixed (ImGuiTableSettings* pself = &self) + fixed (ImFont* pfont = &font) { - DestroyNative((ImGuiTableSettings*)pself); + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiTableSettings_GetColumnSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumnSettings*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTableSettings_GetColumnSettings")] - internal static extern ImGuiTableColumnSettings* GetColumnSettingsNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableSettings*")] ImGuiTableSettings* self); - - [NativeName(NativeNameType.Func, "ImGuiTableSettings_GetColumnSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumnSettings*")] - public static ImGuiTableColumnSettings* GetColumnSettings([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableSettings*")] ImGuiTableSettings* self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { - ImGuiTableColumnSettings* ret = GetColumnSettingsNative(self); - return ret; + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } } - [NativeName(NativeNameType.Func, "ImGuiTableSettings_GetColumnSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumnSettings*")] - public static ImGuiTableColumnSettings* GetColumnSettings([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImGuiTableSettings*")] ref ImGuiTableSettings self) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImGuiTableSettings* pself = &self) + fixed (ImFont* pfont = &font) { - ImGuiTableColumnSettings* ret = GetColumnSettingsNative((ImGuiTableSettings*)pself); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetCurrentWindowRead")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetCurrentWindowRead")] - internal static extern ImGuiWindow* GetCurrentWindowReadNative(); - - [NativeName(NativeNameType.Func, "igGetCurrentWindowRead")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* GetCurrentWindowRead() + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { - ImGuiWindow* ret = GetCurrentWindowReadNative(); - return ret; + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetCurrentWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetCurrentWindow")] - internal static extern ImGuiWindow* GetCurrentWindowNative(); - - [NativeName(NativeNameType.Func, "igGetCurrentWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* GetCurrentWindow() + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) { - ImGuiWindow* ret = GetCurrentWindowNative(); - return ret; + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFindWindowByID")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindWindowByID")] - internal static extern ImGuiWindow* FindWindowByIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - [NativeName(NativeNameType.Func, "igFindWindowByID")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* FindWindowByID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { - ImGuiWindow* ret = FindWindowByIDNative(id); - return ret; + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFindWindowByName")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindWindowByName")] - internal static extern ImGuiWindow* FindWindowByNameNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name); - - [NativeName(NativeNameType.Func, "igFindWindowByName")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* FindWindowByName([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - ImGuiWindow* ret = FindWindowByNameNative(name); - return ret; + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } } - [NativeName(NativeNameType.Func, "igFindWindowByName")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* FindWindowByName([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { - fixed (byte* pname = &name) + fixed (byte* ptextEnd = &textEnd) { - ImGuiWindow* ret = FindWindowByNameNative((byte*)pname); - return ret; + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } } } - [NativeName(NativeNameType.Func, "igFindWindowByName")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* FindWindowByName([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -215501,213 +52473,404 @@ public static void Destroy([NativeName(NativeNameType.Param, "self")] [NativeNam byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImGuiWindow* ret = FindWindowByNameNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - Utils.Free(pStr0); + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igUpdateWindowParentAndRootLinks")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igUpdateWindowParentAndRootLinks")] - internal static extern void UpdateWindowParentAndRootLinksNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags, [NativeName(NativeNameType.Param, "parent_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* parentWindow); - - [NativeName(NativeNameType.Func, "igUpdateWindowParentAndRootLinks")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateWindowParentAndRootLinks([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags, [NativeName(NativeNameType.Param, "parent_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* parentWindow) - { - UpdateWindowParentAndRootLinksNative(window, flags, parentWindow); } - [NativeName(NativeNameType.Func, "igUpdateWindowParentAndRootLinks")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateWindowParentAndRootLinks([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags, [NativeName(NativeNameType.Param, "parent_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* parentWindow) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pwindow = &window) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - UpdateWindowParentAndRootLinksNative((ImGuiWindow*)pwindow, flags, parentWindow); + AddTextNative(self, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igUpdateWindowParentAndRootLinks")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateWindowParentAndRootLinks([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags, [NativeName(NativeNameType.Param, "parent_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow parentWindow) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pparentWindow = &parentWindow) + fixed (ImFont* pfont = &font) { - UpdateWindowParentAndRootLinksNative(window, flags, (ImGuiWindow*)pparentWindow); + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } } } - [NativeName(NativeNameType.Func, "igUpdateWindowParentAndRootLinks")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateWindowParentAndRootLinks([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags, [NativeName(NativeNameType.Param, "parent_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow parentWindow) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pwindow = &window) + fixed (ImFont* pfont = &font) { - fixed (ImGuiWindow* pparentWindow = &parentWindow) + fixed (byte* ptextEnd = &textEnd) { - UpdateWindowParentAndRootLinksNative((ImGuiWindow*)pwindow, flags, (ImGuiWindow*)pparentWindow); + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCalcWindowNextAutoFitSize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCalcWindowNextAutoFitSize")] - internal static extern void CalcWindowNextAutoFitSizeNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); - - [NativeName(NativeNameType.Func, "igCalcWindowNextAutoFitSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWindowNextAutoFitSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - CalcWindowNextAutoFitSizeNative(pOut, window); + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } } - [NativeName(NativeNameType.Func, "igCalcWindowNextAutoFitSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWindowNextAutoFitSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) { - fixed (Vector2* ppOut = &pOut) + fixed (ImFont* pfont = &font) { - CalcWindowNextAutoFitSizeNative((Vector2*)ppOut, window); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } - [NativeName(NativeNameType.Func, "igCalcWindowNextAutoFitSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWindowNextAutoFitSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pwindow = &window) + fixed (byte* ptextBegin = &textBegin) { - CalcWindowNextAutoFitSizeNative(pOut, (ImGuiWindow*)pwindow); + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } } } - [NativeName(NativeNameType.Func, "igCalcWindowNextAutoFitSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcWindowNextAutoFitSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { - fixed (Vector2* ppOut = &pOut) + fixed (byte* ptextBegin = &textBegin) { - fixed (ImGuiWindow* pwindow = &window) + fixed (byte* ptextEnd = &textEnd) { - CalcWindowNextAutoFitSizeNative((Vector2*)ppOut, (ImGuiWindow*)pwindow); + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsWindowChildOf")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsWindowChildOf")] - internal static extern byte IsWindowChildOfNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "potential_parent")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialParent, [NativeName(NativeNameType.Param, "popup_hierarchy")] [NativeName(NativeNameType.Type, "bool")] byte popupHierarchy, [NativeName(NativeNameType.Param, "dock_hierarchy")] [NativeName(NativeNameType.Type, "bool")] byte dockHierarchy); - - [NativeName(NativeNameType.Func, "igIsWindowChildOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowChildOf([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "potential_parent")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialParent, [NativeName(NativeNameType.Param, "popup_hierarchy")] [NativeName(NativeNameType.Type, "bool")] bool popupHierarchy, [NativeName(NativeNameType.Param, "dock_hierarchy")] [NativeName(NativeNameType.Type, "bool")] bool dockHierarchy) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - byte ret = IsWindowChildOfNative(window, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } - [NativeName(NativeNameType.Func, "igIsWindowChildOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowChildOf([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "potential_parent")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialParent, [NativeName(NativeNameType.Param, "popup_hierarchy")] [NativeName(NativeNameType.Type, "bool")] bool popupHierarchy, [NativeName(NativeNameType.Param, "dock_hierarchy")] [NativeName(NativeNameType.Type, "bool")] bool dockHierarchy) + public static void AddText( ImDrawList* self, ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pwindow = &window) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - byte ret = IsWindowChildOfNative((ImGuiWindow*)pwindow, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - } - - [NativeName(NativeNameType.Func, "igIsWindowChildOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowChildOf([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "potential_parent")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow potentialParent, [NativeName(NativeNameType.Param, "popup_hierarchy")] [NativeName(NativeNameType.Type, "bool")] bool popupHierarchy, [NativeName(NativeNameType.Param, "dock_hierarchy")] [NativeName(NativeNameType.Type, "bool")] bool dockHierarchy) - { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) { - byte ret = IsWindowChildOfNative(window, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; + AddTextNative(self, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igIsWindowChildOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowChildOf([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "potential_parent")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow potentialParent, [NativeName(NativeNameType.Param, "popup_hierarchy")] [NativeName(NativeNameType.Type, "bool")] bool popupHierarchy, [NativeName(NativeNameType.Param, "dock_hierarchy")] [NativeName(NativeNameType.Type, "bool")] bool dockHierarchy) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pwindow = &window) + fixed (ImFont* pfont = &font) { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) + fixed (byte* ptextBegin = &textBegin) { - byte ret = IsWindowChildOfNative((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); - return ret != 0; + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsWindowWithinBeginStackOf")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsWindowWithinBeginStackOf")] - internal static extern byte IsWindowWithinBeginStackOfNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "potential_parent")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialParent); - - [NativeName(NativeNameType.Func, "igIsWindowWithinBeginStackOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowWithinBeginStackOf([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "potential_parent")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialParent) - { - byte ret = IsWindowWithinBeginStackOfNative(window, potentialParent); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igIsWindowWithinBeginStackOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowWithinBeginStackOf([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "potential_parent")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialParent) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pwindow = &window) + fixed (ImFont* pfont = &font) { - byte ret = IsWindowWithinBeginStackOfNative((ImGuiWindow*)pwindow, potentialParent); - return ret != 0; + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } } } - [NativeName(NativeNameType.Func, "igIsWindowWithinBeginStackOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowWithinBeginStackOf([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "potential_parent")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow potentialParent) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) + fixed (ImFont* pfont = &font) { - byte ret = IsWindowWithinBeginStackOfNative(window, (ImGuiWindow*)ppotentialParent); - return ret != 0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } } - [NativeName(NativeNameType.Func, "igIsWindowWithinBeginStackOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowWithinBeginStackOf([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "potential_parent")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow potentialParent) + public static void AddText( ImDrawList* self, ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) { - fixed (ImGuiWindow* pwindow = &window) + fixed (ImFont* pfont = &font) { - fixed (ImGuiWindow* ppotentialParent = &potentialParent) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - byte ret = IsWindowWithinBeginStackOfNative((ImGuiWindow*)pwindow, (ImGuiWindow*)ppotentialParent); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + AddTextNative(self, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } @@ -215715,1382 +52878,866 @@ public static bool IsWindowWithinBeginStackOf([NativeName(NativeNameType.Param, /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igIsWindowAbove")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsWindowAbove")] - internal static extern byte IsWindowAboveNative([NativeName(NativeNameType.Param, "potential_above")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialAbove, [NativeName(NativeNameType.Param, "potential_below")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialBelow); - - [NativeName(NativeNameType.Func, "igIsWindowAbove")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowAbove([NativeName(NativeNameType.Param, "potential_above")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialAbove, [NativeName(NativeNameType.Param, "potential_below")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialBelow) - { - byte ret = IsWindowAboveNative(potentialAbove, potentialBelow); - return ret != 0; - } + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddPolyline")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddPolylineNative(ImDrawList* self, Vector2* points, int numPoints, uint col, int flags, float thickness); - [NativeName(NativeNameType.Func, "igIsWindowAbove")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowAbove([NativeName(NativeNameType.Param, "potential_above")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow potentialAbove, [NativeName(NativeNameType.Param, "potential_below")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialBelow) + public static void AddPolyline( ImDrawList* self, Vector2* points, int numPoints, uint col, int flags, float thickness) { - fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) - { - byte ret = IsWindowAboveNative((ImGuiWindow*)ppotentialAbove, potentialBelow); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igIsWindowAbove")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowAbove([NativeName(NativeNameType.Param, "potential_above")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* potentialAbove, [NativeName(NativeNameType.Param, "potential_below")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow potentialBelow) - { - fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) - { - byte ret = IsWindowAboveNative(potentialAbove, (ImGuiWindow*)ppotentialBelow); - return ret != 0; - } + AddPolylineNative(self, points, numPoints, col, flags, thickness); } - [NativeName(NativeNameType.Func, "igIsWindowAbove")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowAbove([NativeName(NativeNameType.Param, "potential_above")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow potentialAbove, [NativeName(NativeNameType.Param, "potential_below")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow potentialBelow) + public static void AddPolyline( ImDrawList* self, ref Vector2 points, int numPoints, uint col, int flags, float thickness) { - fixed (ImGuiWindow* ppotentialAbove = &potentialAbove) + fixed (Vector2* ppoints = &points) { - fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) - { - byte ret = IsWindowAboveNative((ImGuiWindow*)ppotentialAbove, (ImGuiWindow*)ppotentialBelow); - return ret != 0; - } + AddPolylineNative(self, (Vector2*)ppoints, numPoints, col, flags, thickness); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igIsWindowNavFocusable")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsWindowNavFocusable")] - internal static extern byte IsWindowNavFocusableNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddConvexPolyFilled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddConvexPolyFilledNative(ImDrawList* self, Vector2* points, int numPoints, uint col); - [NativeName(NativeNameType.Func, "igIsWindowNavFocusable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowNavFocusable([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void AddConvexPolyFilled( ImDrawList* self, Vector2* points, int numPoints, uint col) { - byte ret = IsWindowNavFocusableNative(window); - return ret != 0; + AddConvexPolyFilledNative(self, points, numPoints, col); } - [NativeName(NativeNameType.Func, "igIsWindowNavFocusable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowNavFocusable([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void AddConvexPolyFilled( ImDrawList* self, ref Vector2 points, int numPoints, uint col) { - fixed (ImGuiWindow* pwindow = &window) + fixed (Vector2* ppoints = &points) { - byte ret = IsWindowNavFocusableNative((ImGuiWindow*)pwindow); - return ret != 0; + AddConvexPolyFilledNative(self, (Vector2*)ppoints, numPoints, col); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowPos_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowPos_WindowPtr")] - internal static extern void SetWindowPosNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddBezierCubic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddBezierCubicNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments); - [NativeName(NativeNameType.Func, "igSetWindowPos_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static void AddBezierCubic( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) { - SetWindowPosNative(window, pos, cond); - } - - [NativeName(NativeNameType.Func, "igSetWindowPos_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) - { - SetWindowPosNative(window, pos, (ImGuiCond)(0)); - } - - [NativeName(NativeNameType.Func, "igSetWindowPos_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowPosNative((ImGuiWindow*)pwindow, pos, cond); - } + AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, numSegments); } - [NativeName(NativeNameType.Func, "igSetWindowPos_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowPos([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) + public static void AddBezierCubic( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowPosNative((ImGuiWindow*)pwindow, pos, (ImGuiCond)(0)); - } + AddBezierCubicNative(self, p1, p2, p3, p4, col, thickness, (int)(0)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowSize_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowSize_WindowPtr")] - internal static extern void SetWindowSizeNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); - - [NativeName(NativeNameType.Func, "igSetWindowSize_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) - { - SetWindowSizeNative(window, size, cond); - } - - [NativeName(NativeNameType.Func, "igSetWindowSize_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) - { - SetWindowSizeNative(window, size, (ImGuiCond)(0)); - } + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddBezierQuadratic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddBezierQuadraticNative(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments); - [NativeName(NativeNameType.Func, "igSetWindowSize_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static void AddBezierQuadratic( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowSizeNative((ImGuiWindow*)pwindow, size, cond); - } + AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, numSegments); } - [NativeName(NativeNameType.Func, "igSetWindowSize_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowSize([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static void AddBezierQuadratic( ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowSizeNative((ImGuiWindow*)pwindow, size, (ImGuiCond)(0)); - } + AddBezierQuadraticNative(self, p1, p2, p3, col, thickness, (int)(0)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowCollapsed_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowCollapsed_WindowPtr")] - internal static extern void SetWindowCollapsedNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] byte collapsed, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddImage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddImageNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col); - [NativeName(NativeNameType.Func, "igSetWindowCollapsed_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) { - SetWindowCollapsedNative(window, collapsed ? (byte)1 : (byte)0, cond); + AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col); } - [NativeName(NativeNameType.Func, "igSetWindowCollapsed_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed) + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) { - SetWindowCollapsedNative(window, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); + AddImageNative(self, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); } - [NativeName(NativeNameType.Func, "igSetWindowCollapsed_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowCollapsedNative((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, cond); - } + AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); } - [NativeName(NativeNameType.Func, "igSetWindowCollapsed_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowCollapsed([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "collapsed")] [NativeName(NativeNameType.Type, "bool")] bool collapsed) + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowCollapsedNative((ImGuiWindow*)pwindow, collapsed ? (byte)1 : (byte)0, (ImGuiCond)(0)); - } + AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetWindowHitTestHole")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowHitTestHole")] - internal static extern void SetWindowHitTestHoleNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size); - - [NativeName(NativeNameType.Func, "igSetWindowHitTestHole")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowHitTestHole([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) { - SetWindowHitTestHoleNative(window, pos, size); + AddImageNative(self, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); } - [NativeName(NativeNameType.Func, "igSetWindowHitTestHole")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowHitTestHole([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static void AddImage( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowHitTestHoleNative((ImGuiWindow*)pwindow, pos, size); - } + AddImageNative(self, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowHiddendAndSkipItemsForCurrentFrame")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowHiddendAndSkipItemsForCurrentFrame")] - internal static extern void SetWindowHiddendAndSkipItemsForCurrentFrameNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddImageQuad")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddImageQuadNative(ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col); - [NativeName(NativeNameType.Func, "igSetWindowHiddendAndSkipItemsForCurrentFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowHiddendAndSkipItemsForCurrentFrame([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) { - SetWindowHiddendAndSkipItemsForCurrentFrameNative(window); + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); } - [NativeName(NativeNameType.Func, "igSetWindowHiddendAndSkipItemsForCurrentFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowHiddendAndSkipItemsForCurrentFrame([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowHiddendAndSkipItemsForCurrentFrameNative((ImGuiWindow*)pwindow); - } + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igWindowRectAbsToRel")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igWindowRectAbsToRel")] - internal static extern void WindowRectAbsToRelNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r); - - [NativeName(NativeNameType.Func, "igWindowRectAbsToRel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowRectAbsToRel([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) { - WindowRectAbsToRelNative(pOut, window, r); + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } - [NativeName(NativeNameType.Func, "igWindowRectAbsToRel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowRectAbsToRel([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) { - fixed (ImRect* ppOut = &pOut) - { - WindowRectAbsToRelNative((ImRect*)ppOut, window, r); - } + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } - [NativeName(NativeNameType.Func, "igWindowRectAbsToRel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowRectAbsToRel([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) { - fixed (ImGuiWindow* pwindow = &window) - { - WindowRectAbsToRelNative(pOut, (ImGuiWindow*)pwindow, r); - } + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } - [NativeName(NativeNameType.Func, "igWindowRectAbsToRel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowRectAbsToRel([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - WindowRectAbsToRelNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); - } - } + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igWindowRectRelToAbs")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igWindowRectRelToAbs")] - internal static extern void WindowRectRelToAbsNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r); - - [NativeName(NativeNameType.Func, "igWindowRectRelToAbs")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowRectRelToAbs([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) { - WindowRectRelToAbsNative(pOut, window, r); + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); } - [NativeName(NativeNameType.Func, "igWindowRectRelToAbs")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowRectRelToAbs([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) { - fixed (ImRect* ppOut = &pOut) - { - WindowRectRelToAbsNative((ImRect*)ppOut, window, r); - } + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); } - [NativeName(NativeNameType.Func, "igWindowRectRelToAbs")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowRectRelToAbs([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) { - fixed (ImGuiWindow* pwindow = &window) - { - WindowRectRelToAbsNative(pOut, (ImGuiWindow*)pwindow, r); - } + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); } - [NativeName(NativeNameType.Func, "igWindowRectRelToAbs")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowRectRelToAbs([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) + public static void AddImageQuad( ImDrawList* self, ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) { - fixed (ImRect* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - WindowRectRelToAbsNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, r); - } - } + AddImageQuadNative(self, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igWindowPosRelToAbs")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igWindowPosRelToAbs")] - internal static extern void WindowPosRelToAbsNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddImageRounded")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddImageRoundedNative(ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, int flags); - [NativeName(NativeNameType.Func, "igWindowPosRelToAbs")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowPosRelToAbs([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) + public static void AddImageRounded( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, int flags) { - WindowPosRelToAbsNative(pOut, window, p); + AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); } - [NativeName(NativeNameType.Func, "igWindowPosRelToAbs")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowPosRelToAbs([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) + public static void AddImageRounded( ImDrawList* self, ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) { - fixed (Vector2* ppOut = &pOut) - { - WindowPosRelToAbsNative((Vector2*)ppOut, window, p); - } + AddImageRoundedNative(self, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (int)(0)); } - [NativeName(NativeNameType.Func, "igWindowPosRelToAbs")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowPosRelToAbs([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) - { - fixed (ImGuiWindow* pwindow = &window) - { - WindowPosRelToAbsNative(pOut, (ImGuiWindow*)pwindow, p); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathClear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathClearNative(ImDrawList* self); - [NativeName(NativeNameType.Func, "igWindowPosRelToAbs")] - [return: NativeName(NativeNameType.Type, "void")] - public static void WindowPosRelToAbs([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) + public static void PathClear( ImDrawList* self) { - fixed (Vector2* ppOut = &pOut) - { - fixed (ImGuiWindow* pwindow = &window) - { - WindowPosRelToAbsNative((Vector2*)ppOut, (ImGuiWindow*)pwindow, p); - } - } + PathClearNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igFocusWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFocusWindow")] - internal static extern void FocusWindowNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathLineTo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathLineToNative(ImDrawList* self, Vector2 pos); - [NativeName(NativeNameType.Func, "igFocusWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags) + public static void PathLineTo( ImDrawList* self, Vector2 pos) { - FocusWindowNative(window, flags); + PathLineToNative(self, pos); } - [NativeName(NativeNameType.Func, "igFocusWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) - { - FocusWindowNative(window, (ImGuiFocusRequestFlags)(0)); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathLineToMergeDuplicate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathLineToMergeDuplicateNative(ImDrawList* self, Vector2 pos); - [NativeName(NativeNameType.Func, "igFocusWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags) + public static void PathLineToMergeDuplicate( ImDrawList* self, Vector2 pos) { - fixed (ImGuiWindow* pwindow = &window) - { - FocusWindowNative((ImGuiWindow*)pwindow, flags); - } + PathLineToMergeDuplicateNative(self, pos); } - [NativeName(NativeNameType.Func, "igFocusWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathFillConvex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathFillConvexNative(ImDrawList* self, uint col); + + public static void PathFillConvex( ImDrawList* self, uint col) { - fixed (ImGuiWindow* pwindow = &window) - { - FocusWindowNative((ImGuiWindow*)pwindow, (ImGuiFocusRequestFlags)(0)); - } + PathFillConvexNative(self, col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igFocusTopMostWindowUnderOne")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFocusTopMostWindowUnderOne")] - internal static extern void FocusTopMostWindowUnderOneNative([NativeName(NativeNameType.Param, "under_this_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* underThisWindow, [NativeName(NativeNameType.Param, "ignore_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* ignoreWindow, [NativeName(NativeNameType.Param, "filter_viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* filterViewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathStroke")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathStrokeNative(ImDrawList* self, uint col, int flags, float thickness); - [NativeName(NativeNameType.Func, "igFocusTopMostWindowUnderOne")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusTopMostWindowUnderOne([NativeName(NativeNameType.Param, "under_this_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* underThisWindow, [NativeName(NativeNameType.Param, "ignore_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* ignoreWindow, [NativeName(NativeNameType.Param, "filter_viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* filterViewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags) + public static void PathStroke( ImDrawList* self, uint col, int flags, float thickness) { - FocusTopMostWindowUnderOneNative(underThisWindow, ignoreWindow, filterViewport, flags); + PathStrokeNative(self, col, flags, thickness); } - [NativeName(NativeNameType.Func, "igFocusTopMostWindowUnderOne")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusTopMostWindowUnderOne([NativeName(NativeNameType.Param, "under_this_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow underThisWindow, [NativeName(NativeNameType.Param, "ignore_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* ignoreWindow, [NativeName(NativeNameType.Param, "filter_viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* filterViewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags) + public static void PathStroke( ImDrawList* self, uint col, int flags) { - fixed (ImGuiWindow* punderThisWindow = &underThisWindow) - { - FocusTopMostWindowUnderOneNative((ImGuiWindow*)punderThisWindow, ignoreWindow, filterViewport, flags); - } + PathStrokeNative(self, col, flags, (float)(1.0f)); } - [NativeName(NativeNameType.Func, "igFocusTopMostWindowUnderOne")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusTopMostWindowUnderOne([NativeName(NativeNameType.Param, "under_this_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* underThisWindow, [NativeName(NativeNameType.Param, "ignore_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow ignoreWindow, [NativeName(NativeNameType.Param, "filter_viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* filterViewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags) + public static void PathStroke( ImDrawList* self, uint col) { - fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) - { - FocusTopMostWindowUnderOneNative(underThisWindow, (ImGuiWindow*)pignoreWindow, filterViewport, flags); - } + PathStrokeNative(self, col, (int)(0), (float)(1.0f)); } - [NativeName(NativeNameType.Func, "igFocusTopMostWindowUnderOne")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusTopMostWindowUnderOne([NativeName(NativeNameType.Param, "under_this_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow underThisWindow, [NativeName(NativeNameType.Param, "ignore_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow ignoreWindow, [NativeName(NativeNameType.Param, "filter_viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* filterViewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags) + public static void PathStroke( ImDrawList* self, uint col, float thickness) { - fixed (ImGuiWindow* punderThisWindow = &underThisWindow) - { - fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) - { - FocusTopMostWindowUnderOneNative((ImGuiWindow*)punderThisWindow, (ImGuiWindow*)pignoreWindow, filterViewport, flags); - } - } + PathStrokeNative(self, col, (int)(0), thickness); } - [NativeName(NativeNameType.Func, "igFocusTopMostWindowUnderOne")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusTopMostWindowUnderOne([NativeName(NativeNameType.Param, "under_this_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* underThisWindow, [NativeName(NativeNameType.Param, "ignore_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* ignoreWindow, [NativeName(NativeNameType.Param, "filter_viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport filterViewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags) - { - fixed (ImGuiViewport* pfilterViewport = &filterViewport) - { - FocusTopMostWindowUnderOneNative(underThisWindow, ignoreWindow, (ImGuiViewport*)pfilterViewport, flags); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathArcTo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathArcToNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments); - [NativeName(NativeNameType.Func, "igFocusTopMostWindowUnderOne")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusTopMostWindowUnderOne([NativeName(NativeNameType.Param, "under_this_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow underThisWindow, [NativeName(NativeNameType.Param, "ignore_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* ignoreWindow, [NativeName(NativeNameType.Param, "filter_viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport filterViewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags) + public static void PathArcTo( ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) { - fixed (ImGuiWindow* punderThisWindow = &underThisWindow) - { - fixed (ImGuiViewport* pfilterViewport = &filterViewport) - { - FocusTopMostWindowUnderOneNative((ImGuiWindow*)punderThisWindow, ignoreWindow, (ImGuiViewport*)pfilterViewport, flags); - } - } + PathArcToNative(self, center, radius, aMin, aMax, numSegments); } - [NativeName(NativeNameType.Func, "igFocusTopMostWindowUnderOne")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusTopMostWindowUnderOne([NativeName(NativeNameType.Param, "under_this_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* underThisWindow, [NativeName(NativeNameType.Param, "ignore_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow ignoreWindow, [NativeName(NativeNameType.Param, "filter_viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport filterViewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags) + public static void PathArcTo( ImDrawList* self, Vector2 center, float radius, float aMin, float aMax) { - fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) - { - fixed (ImGuiViewport* pfilterViewport = &filterViewport) - { - FocusTopMostWindowUnderOneNative(underThisWindow, (ImGuiWindow*)pignoreWindow, (ImGuiViewport*)pfilterViewport, flags); - } - } + PathArcToNative(self, center, radius, aMin, aMax, (int)(0)); } - [NativeName(NativeNameType.Func, "igFocusTopMostWindowUnderOne")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusTopMostWindowUnderOne([NativeName(NativeNameType.Param, "under_this_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow underThisWindow, [NativeName(NativeNameType.Param, "ignore_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow ignoreWindow, [NativeName(NativeNameType.Param, "filter_viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport filterViewport, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiFocusRequestFlags")] ImGuiFocusRequestFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathArcToFast")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathArcToFastNative(ImDrawList* self, Vector2 center, float radius, int aMinOf12, int aMaxOf12); + + public static void PathArcToFast( ImDrawList* self, Vector2 center, float radius, int aMinOf12, int aMaxOf12) { - fixed (ImGuiWindow* punderThisWindow = &underThisWindow) - { - fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) - { - fixed (ImGuiViewport* pfilterViewport = &filterViewport) - { - FocusTopMostWindowUnderOneNative((ImGuiWindow*)punderThisWindow, (ImGuiWindow*)pignoreWindow, (ImGuiViewport*)pfilterViewport, flags); - } - } - } + PathArcToFastNative(self, center, radius, aMinOf12, aMaxOf12); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBringWindowToFocusFront")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBringWindowToFocusFront")] - internal static extern void BringWindowToFocusFrontNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathEllipticalArcTo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathEllipticalArcToNative(ImDrawList* self, Vector2 center, float radiusX, float radiusY, float rot, float aMin, float aMax, int numSegments); - [NativeName(NativeNameType.Func, "igBringWindowToFocusFront")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BringWindowToFocusFront([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void PathEllipticalArcTo( ImDrawList* self, Vector2 center, float radiusX, float radiusY, float rot, float aMin, float aMax, int numSegments) { - BringWindowToFocusFrontNative(window); + PathEllipticalArcToNative(self, center, radiusX, radiusY, rot, aMin, aMax, numSegments); } - [NativeName(NativeNameType.Func, "igBringWindowToFocusFront")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BringWindowToFocusFront([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void PathEllipticalArcTo( ImDrawList* self, Vector2 center, float radiusX, float radiusY, float rot, float aMin, float aMax) { - fixed (ImGuiWindow* pwindow = &window) - { - BringWindowToFocusFrontNative((ImGuiWindow*)pwindow); - } + PathEllipticalArcToNative(self, center, radiusX, radiusY, rot, aMin, aMax, (int)(0)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBringWindowToDisplayFront")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBringWindowToDisplayFront")] - internal static extern void BringWindowToDisplayFrontNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathBezierCubicCurveTo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathBezierCubicCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments); - [NativeName(NativeNameType.Func, "igBringWindowToDisplayFront")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BringWindowToDisplayFront([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void PathBezierCubicCurveTo( ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) { - BringWindowToDisplayFrontNative(window); + PathBezierCubicCurveToNative(self, p2, p3, p4, numSegments); } - [NativeName(NativeNameType.Func, "igBringWindowToDisplayFront")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BringWindowToDisplayFront([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void PathBezierCubicCurveTo( ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4) { - fixed (ImGuiWindow* pwindow = &window) - { - BringWindowToDisplayFrontNative((ImGuiWindow*)pwindow); - } + PathBezierCubicCurveToNative(self, p2, p3, p4, (int)(0)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBringWindowToDisplayBack")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBringWindowToDisplayBack")] - internal static extern void BringWindowToDisplayBackNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathBezierQuadraticCurveTo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathBezierQuadraticCurveToNative(ImDrawList* self, Vector2 p2, Vector2 p3, int numSegments); - [NativeName(NativeNameType.Func, "igBringWindowToDisplayBack")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BringWindowToDisplayBack([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void PathBezierQuadraticCurveTo( ImDrawList* self, Vector2 p2, Vector2 p3, int numSegments) { - BringWindowToDisplayBackNative(window); + PathBezierQuadraticCurveToNative(self, p2, p3, numSegments); } - [NativeName(NativeNameType.Func, "igBringWindowToDisplayBack")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BringWindowToDisplayBack([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void PathBezierQuadraticCurveTo( ImDrawList* self, Vector2 p2, Vector2 p3) { - fixed (ImGuiWindow* pwindow = &window) - { - BringWindowToDisplayBackNative((ImGuiWindow*)pwindow); - } + PathBezierQuadraticCurveToNative(self, p2, p3, (int)(0)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBringWindowToDisplayBehind")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBringWindowToDisplayBehind")] - internal static extern void BringWindowToDisplayBehindNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "above_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* aboveWindow); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PathRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PathRectNative(ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding, int flags); - [NativeName(NativeNameType.Func, "igBringWindowToDisplayBehind")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BringWindowToDisplayBehind([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "above_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* aboveWindow) + public static void PathRect( ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding, int flags) { - BringWindowToDisplayBehindNative(window, aboveWindow); + PathRectNative(self, rectMin, rectMax, rounding, flags); } - [NativeName(NativeNameType.Func, "igBringWindowToDisplayBehind")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BringWindowToDisplayBehind([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "above_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* aboveWindow) + public static void PathRect( ImDrawList* self, Vector2 rectMin, Vector2 rectMax, float rounding) { - fixed (ImGuiWindow* pwindow = &window) - { - BringWindowToDisplayBehindNative((ImGuiWindow*)pwindow, aboveWindow); - } + PathRectNative(self, rectMin, rectMax, rounding, (int)(0)); } - [NativeName(NativeNameType.Func, "igBringWindowToDisplayBehind")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BringWindowToDisplayBehind([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "above_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow aboveWindow) + public static void PathRect( ImDrawList* self, Vector2 rectMin, Vector2 rectMax) { - fixed (ImGuiWindow* paboveWindow = &aboveWindow) - { - BringWindowToDisplayBehindNative(window, (ImGuiWindow*)paboveWindow); - } + PathRectNative(self, rectMin, rectMax, (float)(0.0f), (int)(0)); } - [NativeName(NativeNameType.Func, "igBringWindowToDisplayBehind")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BringWindowToDisplayBehind([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "above_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow aboveWindow) + public static void PathRect( ImDrawList* self, Vector2 rectMin, Vector2 rectMax, int flags) { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiWindow* paboveWindow = &aboveWindow) - { - BringWindowToDisplayBehindNative((ImGuiWindow*)pwindow, (ImGuiWindow*)paboveWindow); - } - } + PathRectNative(self, rectMin, rectMax, (float)(0.0f), flags); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igFindWindowDisplayIndex")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindWindowDisplayIndex")] - internal static extern int FindWindowDisplayIndexNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddCallbackNative(ImDrawList* self, ImDrawCallback callback, void* callbackData); - [NativeName(NativeNameType.Func, "igFindWindowDisplayIndex")] - [return: NativeName(NativeNameType.Type, "int")] - public static int FindWindowDisplayIndex([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void AddCallback( ImDrawList* self, ImDrawCallback callback, void* callbackData) { - int ret = FindWindowDisplayIndexNative(window); - return ret; + AddCallbackNative(self, callback, callbackData); } - [NativeName(NativeNameType.Func, "igFindWindowDisplayIndex")] - [return: NativeName(NativeNameType.Type, "int")] - public static int FindWindowDisplayIndex([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_AddDrawCmd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddDrawCmdNative(ImDrawList* self); + + public static void AddDrawCmd( ImDrawList* self) { - fixed (ImGuiWindow* pwindow = &window) - { - int ret = FindWindowDisplayIndexNative((ImGuiWindow*)pwindow); - return ret; - } + AddDrawCmdNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igFindBottomMostVisibleWindowWithinBeginStack")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindBottomMostVisibleWindowWithinBeginStack")] - internal static extern ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStackNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "ImDrawList_CloneOutput")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* CloneOutputNative(ImDrawList* self); - [NativeName(NativeNameType.Func, "igFindBottomMostVisibleWindowWithinBeginStack")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static ImDrawList* CloneOutput( ImDrawList* self) { - ImGuiWindow* ret = FindBottomMostVisibleWindowWithinBeginStackNative(window); + ImDrawList* ret = CloneOutputNative(self); return ret; } - [NativeName(NativeNameType.Func, "igFindBottomMostVisibleWindowWithinBeginStack")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiWindow* ret = FindBottomMostVisibleWindowWithinBeginStackNative((ImGuiWindow*)pwindow); - return ret; - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetCurrentFont")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetCurrentFont")] - internal static extern void SetCurrentFontNative([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font); - - [NativeName(NativeNameType.Func, "igSetCurrentFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentFont([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font) - { - SetCurrentFontNative(font); - } + [LibraryImport(LibName, EntryPoint = "ImDrawList_ChannelsSplit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ChannelsSplitNative(ImDrawList* self, int count); - [NativeName(NativeNameType.Func, "igSetCurrentFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentFont([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font) + public static void ChannelsSplit( ImDrawList* self, int count) { - fixed (ImFont* pfont = &font) - { - SetCurrentFontNative((ImFont*)pfont); - } + ChannelsSplitNative(self, count); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetDefaultFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetDefaultFont")] - internal static extern ImFont* GetDefaultFontNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList_ChannelsMerge")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ChannelsMergeNative(ImDrawList* self); - [NativeName(NativeNameType.Func, "igGetDefaultFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public static ImFont* GetDefaultFont() + public static void ChannelsMerge( ImDrawList* self) { - ImFont* ret = GetDefaultFontNative(); - return ret; + ChannelsMergeNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetForegroundDrawList_WindowPtr")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetForegroundDrawList_WindowPtr")] - internal static extern ImDrawList* GetForegroundDrawListNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); - - [NativeName(NativeNameType.Func, "igGetForegroundDrawList_WindowPtr")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* GetForegroundDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) - { - ImDrawList* ret = GetForegroundDrawListNative(window); - return ret; - } + [LibraryImport(LibName, EntryPoint = "ImDrawList_ChannelsSetCurrent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ChannelsSetCurrentNative(ImDrawList* self, int n); - [NativeName(NativeNameType.Func, "igGetForegroundDrawList_WindowPtr")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] - public static ImDrawList* GetForegroundDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void ChannelsSetCurrent( ImDrawList* self, int n) { - fixed (ImGuiWindow* pwindow = &window) - { - ImDrawList* ret = GetForegroundDrawListNative((ImGuiWindow*)pwindow); - return ret; - } + ChannelsSetCurrentNative(self, n); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igInitialize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInitialize")] - internal static extern void InitializeNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimReserve")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimReserveNative(ImDrawList* self, int idxCount, int vtxCount); - [NativeName(NativeNameType.Func, "igInitialize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Initialize() + public static void PrimReserve( ImDrawList* self, int idxCount, int vtxCount) { - InitializeNative(); + PrimReserveNative(self, idxCount, vtxCount); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShutdown")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShutdown")] - internal static extern void ShutdownNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimUnreserve")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimUnreserveNative(ImDrawList* self, int idxCount, int vtxCount); - /// /// Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext(). /// [NativeName(NativeNameType.Func, "igShutdown")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Shutdown() + public static void PrimUnreserve( ImDrawList* self, int idxCount, int vtxCount) { - ShutdownNative(); + PrimUnreserveNative(self, idxCount, vtxCount); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igUpdateInputEvents")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igUpdateInputEvents")] - internal static extern void UpdateInputEventsNative([NativeName(NativeNameType.Param, "trickle_fast_inputs")] [NativeName(NativeNameType.Type, "bool")] byte trickleFastInputs); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimRectNative(ImDrawList* self, Vector2 a, Vector2 b, uint col); - [NativeName(NativeNameType.Func, "igUpdateInputEvents")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateInputEvents([NativeName(NativeNameType.Param, "trickle_fast_inputs")] [NativeName(NativeNameType.Type, "bool")] bool trickleFastInputs) + public static void PrimRect( ImDrawList* self, Vector2 a, Vector2 b, uint col) { - UpdateInputEventsNative(trickleFastInputs ? (byte)1 : (byte)0); + PrimRectNative(self, a, b, col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igUpdateHoveredWindowAndCaptureFlags")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igUpdateHoveredWindowAndCaptureFlags")] - internal static extern void UpdateHoveredWindowAndCaptureFlagsNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimRectUV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimRectUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col); - [NativeName(NativeNameType.Func, "igUpdateHoveredWindowAndCaptureFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateHoveredWindowAndCaptureFlags() + public static void PrimRectUV( ImDrawList* self, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) { - UpdateHoveredWindowAndCaptureFlagsNative(); + PrimRectUVNative(self, a, b, uvA, uvB, col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igStartMouseMovingWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igStartMouseMovingWindow")] - internal static extern void StartMouseMovingWindowNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimQuadUV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimQuadUVNative(ImDrawList* self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col); - [NativeName(NativeNameType.Func, "igStartMouseMovingWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StartMouseMovingWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void PrimQuadUV( ImDrawList* self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) { - StartMouseMovingWindowNative(window); - } - - [NativeName(NativeNameType.Func, "igStartMouseMovingWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StartMouseMovingWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - StartMouseMovingWindowNative((ImGuiWindow*)pwindow); - } + PrimQuadUVNative(self, a, b, c, d, uvA, uvB, uvC, uvD, col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igStartMouseMovingWindowOrNode")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igStartMouseMovingWindowOrNode")] - internal static extern void StartMouseMovingWindowOrNodeNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "undock_floating_node")] [NativeName(NativeNameType.Type, "bool")] byte undockFloatingNode); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimWriteVtx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimWriteVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col); - [NativeName(NativeNameType.Func, "igStartMouseMovingWindowOrNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StartMouseMovingWindowOrNode([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "undock_floating_node")] [NativeName(NativeNameType.Type, "bool")] bool undockFloatingNode) + public static void PrimWriteVtx( ImDrawList* self, Vector2 pos, Vector2 uv, uint col) { - StartMouseMovingWindowOrNodeNative(window, node, undockFloatingNode ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "igStartMouseMovingWindowOrNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StartMouseMovingWindowOrNode([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "undock_floating_node")] [NativeName(NativeNameType.Type, "bool")] bool undockFloatingNode) - { - fixed (ImGuiWindow* pwindow = &window) - { - StartMouseMovingWindowOrNodeNative((ImGuiWindow*)pwindow, node, undockFloatingNode ? (byte)1 : (byte)0); - } + PrimWriteVtxNative(self, pos, uv, col); } - [NativeName(NativeNameType.Func, "igStartMouseMovingWindowOrNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StartMouseMovingWindowOrNode([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node, [NativeName(NativeNameType.Param, "undock_floating_node")] [NativeName(NativeNameType.Type, "bool")] bool undockFloatingNode) - { - fixed (ImGuiDockNode* pnode = &node) - { - StartMouseMovingWindowOrNodeNative(window, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimWriteIdx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimWriteIdxNative(ImDrawList* self, ushort idx); - [NativeName(NativeNameType.Func, "igStartMouseMovingWindowOrNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void StartMouseMovingWindowOrNode([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node, [NativeName(NativeNameType.Param, "undock_floating_node")] [NativeName(NativeNameType.Type, "bool")] bool undockFloatingNode) + public static void PrimWriteIdx( ImDrawList* self, ushort idx) { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiDockNode* pnode = &node) - { - StartMouseMovingWindowOrNodeNative((ImGuiWindow*)pwindow, (ImGuiDockNode*)pnode, undockFloatingNode ? (byte)1 : (byte)0); - } - } + PrimWriteIdxNative(self, idx); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igUpdateMouseMovingWindowNewFrame")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igUpdateMouseMovingWindowNewFrame")] - internal static extern void UpdateMouseMovingWindowNewFrameNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList_PrimVtx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PrimVtxNative(ImDrawList* self, Vector2 pos, Vector2 uv, uint col); - [NativeName(NativeNameType.Func, "igUpdateMouseMovingWindowNewFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateMouseMovingWindowNewFrame() + public static void PrimVtx( ImDrawList* self, Vector2 pos, Vector2 uv, uint col) { - UpdateMouseMovingWindowNewFrameNative(); + PrimVtxNative(self, pos, uv, col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igUpdateMouseMovingWindowEndFrame")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igUpdateMouseMovingWindowEndFrame")] - internal static extern void UpdateMouseMovingWindowEndFrameNative(); + [LibraryImport(LibName, EntryPoint = "ImDrawList__ResetForNewFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _ResetForNewFrameNative(ImDrawList* self); - [NativeName(NativeNameType.Func, "igUpdateMouseMovingWindowEndFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void UpdateMouseMovingWindowEndFrame() + public static void _ResetForNewFrame( ImDrawList* self) { - UpdateMouseMovingWindowEndFrameNative(); + _ResetForNewFrameNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igAddContextHook")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igAddContextHook")] - internal static extern int AddContextHookNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* context, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "const ImGuiContextHook*")] ImGuiContextHook* hook); - - [NativeName(NativeNameType.Func, "igAddContextHook")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int AddContextHook([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* context, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "const ImGuiContextHook*")] ImGuiContextHook* hook) - { - int ret = AddContextHookNative(context, hook); - return ret; - } + [LibraryImport(LibName, EntryPoint = "ImDrawList__ClearFreeMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _ClearFreeMemoryNative(ImDrawList* self); - [NativeName(NativeNameType.Func, "igAddContextHook")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int AddContextHook([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext context, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "const ImGuiContextHook*")] ImGuiContextHook* hook) + public static void _ClearFreeMemory( ImDrawList* self) { - fixed (ImGuiContext* pcontext = &context) - { - int ret = AddContextHookNative((ImGuiContext*)pcontext, hook); - return ret; - } + _ClearFreeMemoryNative(self); } - [NativeName(NativeNameType.Func, "igAddContextHook")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int AddContextHook([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* context, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "const ImGuiContextHook*")] ref ImGuiContextHook hook) - { - fixed (ImGuiContextHook* phook = &hook) - { - int ret = AddContextHookNative(context, (ImGuiContextHook*)phook); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__PopUnusedDrawCmd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _PopUnusedDrawCmdNative(ImDrawList* self); - [NativeName(NativeNameType.Func, "igAddContextHook")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int AddContextHook([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext context, [NativeName(NativeNameType.Param, "hook")] [NativeName(NativeNameType.Type, "const ImGuiContextHook*")] ref ImGuiContextHook hook) + public static void _PopUnusedDrawCmd( ImDrawList* self) { - fixed (ImGuiContext* pcontext = &context) - { - fixed (ImGuiContextHook* phook = &hook) - { - int ret = AddContextHookNative((ImGuiContext*)pcontext, (ImGuiContextHook*)phook); - return ret; - } - } + _PopUnusedDrawCmdNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRemoveContextHook")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRemoveContextHook")] - internal static extern void RemoveContextHookNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* context, [NativeName(NativeNameType.Param, "hook_to_remove")] [NativeName(NativeNameType.Type, "ImGuiID")] int hookToRemove); + [LibraryImport(LibName, EntryPoint = "ImDrawList__TryMergeDrawCmds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _TryMergeDrawCmdsNative(ImDrawList* self); - [NativeName(NativeNameType.Func, "igRemoveContextHook")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RemoveContextHook([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* context, [NativeName(NativeNameType.Param, "hook_to_remove")] [NativeName(NativeNameType.Type, "ImGuiID")] int hookToRemove) + public static void _TryMergeDrawCmds( ImDrawList* self) { - RemoveContextHookNative(context, hookToRemove); - } - - [NativeName(NativeNameType.Func, "igRemoveContextHook")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RemoveContextHook([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext context, [NativeName(NativeNameType.Param, "hook_to_remove")] [NativeName(NativeNameType.Type, "ImGuiID")] int hookToRemove) - { - fixed (ImGuiContext* pcontext = &context) - { - RemoveContextHookNative((ImGuiContext*)pcontext, hookToRemove); - } + _TryMergeDrawCmdsNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igCallContextHooks")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCallContextHooks")] - internal static extern void CallContextHooksNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* context, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "ImGuiContextHookType")] ImGuiContextHookType type); - - [NativeName(NativeNameType.Func, "igCallContextHooks")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CallContextHooks([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* context, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "ImGuiContextHookType")] ImGuiContextHookType type) - { - CallContextHooksNative(context, type); - } + [LibraryImport(LibName, EntryPoint = "ImDrawList__OnChangedClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _OnChangedClipRectNative(ImDrawList* self); - [NativeName(NativeNameType.Func, "igCallContextHooks")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CallContextHooks([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext context, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "ImGuiContextHookType")] ImGuiContextHookType type) + public static void _OnChangedClipRect( ImDrawList* self) { - fixed (ImGuiContext* pcontext = &context) - { - CallContextHooksNative((ImGuiContext*)pcontext, type); - } + _OnChangedClipRectNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTranslateWindowsInViewport")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTranslateWindowsInViewport")] - internal static extern void TranslateWindowsInViewportNative([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "old_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 oldPos, [NativeName(NativeNameType.Param, "new_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 newPos); + [LibraryImport(LibName, EntryPoint = "ImDrawList__OnChangedTextureID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _OnChangedTextureIDNative(ImDrawList* self); - [NativeName(NativeNameType.Func, "igTranslateWindowsInViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TranslateWindowsInViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "old_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 oldPos, [NativeName(NativeNameType.Param, "new_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 newPos) + public static void _OnChangedTextureID( ImDrawList* self) { - TranslateWindowsInViewportNative(viewport, oldPos, newPos); + _OnChangedTextureIDNative(self); } - [NativeName(NativeNameType.Func, "igTranslateWindowsInViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TranslateWindowsInViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "old_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 oldPos, [NativeName(NativeNameType.Param, "new_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 newPos) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - TranslateWindowsInViewportNative((ImGuiViewportP*)pviewport, oldPos, newPos); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__OnChangedVtxOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _OnChangedVtxOffsetNative(ImDrawList* self); + + public static void _OnChangedVtxOffset( ImDrawList* self) + { + _OnChangedVtxOffsetNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igScaleWindowsInViewport")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igScaleWindowsInViewport")] - internal static extern void ScaleWindowsInViewportNative([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale); + [LibraryImport(LibName, EntryPoint = "ImDrawList__CalcCircleAutoSegmentCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int _CalcCircleAutoSegmentCountNative(ImDrawList* self, float radius); - [NativeName(NativeNameType.Func, "igScaleWindowsInViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScaleWindowsInViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale) + public static int _CalcCircleAutoSegmentCount( ImDrawList* self, float radius) { - ScaleWindowsInViewportNative(viewport, scale); + int ret = _CalcCircleAutoSegmentCountNative(self, radius); + return ret; } - [NativeName(NativeNameType.Func, "igScaleWindowsInViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScaleWindowsInViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawList__PathArcToFastEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _PathArcToFastExNative(ImDrawList* self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep); + + public static void _PathArcToFastEx( ImDrawList* self, Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) { - fixed (ImGuiViewportP* pviewport = &viewport) - { - ScaleWindowsInViewportNative((ImGuiViewportP*)pviewport, scale); - } + _PathArcToFastExNative(self, center, radius, aMinSample, aMaxSample, aStep); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDestroyPlatformWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDestroyPlatformWindow")] - internal static extern void DestroyPlatformWindowNative([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport); + [LibraryImport(LibName, EntryPoint = "ImDrawList__PathArcToN")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void _PathArcToNNative(ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments); - [NativeName(NativeNameType.Func, "igDestroyPlatformWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DestroyPlatformWindow([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport) + public static void _PathArcToN( ImDrawList* self, Vector2 center, float radius, float aMin, float aMax, int numSegments) { - DestroyPlatformWindowNative(viewport); + _PathArcToNNative(self, center, radius, aMin, aMax, numSegments); } - [NativeName(NativeNameType.Func, "igDestroyPlatformWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DestroyPlatformWindow([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawData_ImDrawData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawData* ImDrawDataNative(); + + public static ImDrawData* ImDrawData() { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DestroyPlatformWindowNative((ImGuiViewportP*)pviewport); - } + ImDrawData* ret = ImDrawDataNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowViewport")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowViewport")] - internal static extern void SetWindowViewportNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport); + [LibraryImport(LibName, EntryPoint = "ImDrawData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImDrawData* self); - [NativeName(NativeNameType.Func, "igSetWindowViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowViewport([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport) - { - SetWindowViewportNative(window, viewport); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawData_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImDrawData* self); - [NativeName(NativeNameType.Func, "igSetWindowViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowViewport([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowViewportNative((ImGuiWindow*)pwindow, viewport); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawData_AddDrawList")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddDrawListNative(ImDrawData* self, ImDrawList* drawList); - [NativeName(NativeNameType.Func, "igSetWindowViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowViewport([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport) + public static void AddDrawList( ImDrawData* self, ImDrawList* drawList) { - fixed (ImGuiViewportP* pviewport = &viewport) - { - SetWindowViewportNative(window, (ImGuiViewportP*)pviewport); - } + AddDrawListNative(self, drawList); } - [NativeName(NativeNameType.Func, "igSetWindowViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowViewport([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport) + public static void AddDrawList( ImDrawData* self, ref ImDrawList drawList) { - fixed (ImGuiWindow* pwindow = &window) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiViewportP* pviewport = &viewport) - { - SetWindowViewportNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); - } + AddDrawListNative(self, (ImDrawList*)pdrawList); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetCurrentViewport")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetCurrentViewport")] - internal static extern void SetCurrentViewportNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport); - - [NativeName(NativeNameType.Func, "igSetCurrentViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentViewport([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport) - { - SetCurrentViewportNative(window, viewport); - } + [LibraryImport(LibName, EntryPoint = "ImDrawData_DeIndexAllBuffers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DeIndexAllBuffersNative(ImDrawData* self); - [NativeName(NativeNameType.Func, "igSetCurrentViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentViewport([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport) + public static void DeIndexAllBuffers( ImDrawData* self) { - fixed (ImGuiWindow* pwindow = &window) - { - SetCurrentViewportNative((ImGuiWindow*)pwindow, viewport); - } + DeIndexAllBuffersNative(self); } - [NativeName(NativeNameType.Func, "igSetCurrentViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentViewport([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - SetCurrentViewportNative(window, (ImGuiViewportP*)pviewport); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawData_ScaleClipRects")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScaleClipRectsNative(ImDrawData* self, Vector2 fbScale); - [NativeName(NativeNameType.Func, "igSetCurrentViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetCurrentViewport([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport) + public static void ScaleClipRects( ImDrawData* self, Vector2 fbScale) { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - SetCurrentViewportNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport); - } - } + ScaleClipRectsNative(self, fbScale); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetViewportPlatformMonitor")] - [return: NativeName(NativeNameType.Type, "const ImGuiPlatformMonitor*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetViewportPlatformMonitor")] - internal static extern ImGuiPlatformMonitor* GetViewportPlatformMonitorNative([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport); + [LibraryImport(LibName, EntryPoint = "ImFontConfig_ImFontConfig")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontConfig* ImFontConfigNative(); - [NativeName(NativeNameType.Func, "igGetViewportPlatformMonitor")] - [return: NativeName(NativeNameType.Type, "const ImGuiPlatformMonitor*")] - public static ImGuiPlatformMonitor* GetViewportPlatformMonitor([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport) + public static ImFontConfig* ImFontConfig() { - ImGuiPlatformMonitor* ret = GetViewportPlatformMonitorNative(viewport); + ImFontConfig* ret = ImFontConfigNative(); return ret; } - [NativeName(NativeNameType.Func, "igGetViewportPlatformMonitor")] - [return: NativeName(NativeNameType.Type, "const ImGuiPlatformMonitor*")] - public static ImGuiPlatformMonitor* GetViewportPlatformMonitor([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport viewport) - { - fixed (ImGuiViewport* pviewport = &viewport) - { - ImGuiPlatformMonitor* ret = GetViewportPlatformMonitorNative((ImGuiViewport*)pviewport); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontConfig_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImFontConfig* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igFindHoveredViewportFromPlatformWindowStack")] - [return: NativeName(NativeNameType.Type, "ImGuiViewportP*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindHoveredViewportFromPlatformWindowStack")] - internal static extern ImGuiViewportP* FindHoveredViewportFromPlatformWindowStackNative([NativeName(NativeNameType.Param, "mouse_platform_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 mousePlatformPos); + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilderNative(); - [NativeName(NativeNameType.Func, "igFindHoveredViewportFromPlatformWindowStack")] - [return: NativeName(NativeNameType.Type, "ImGuiViewportP*")] - public static ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack([NativeName(NativeNameType.Param, "mouse_platform_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 mousePlatformPos) + public static ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder() { - ImGuiViewportP* ret = FindHoveredViewportFromPlatformWindowStackNative(mousePlatformPos); + ImFontGlyphRangesBuilder* ret = ImFontGlyphRangesBuilderNative(); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igMarkIniSettingsDirty_Nil")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igMarkIniSettingsDirty_Nil")] - internal static extern void MarkIniSettingsDirtyNative(); + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImFontGlyphRangesBuilder* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImFontGlyphRangesBuilder* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_GetBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte GetBitNative(ImFontGlyphRangesBuilder* self, ulong n); + + public static bool GetBit( ImFontGlyphRangesBuilder* self, ulong n) + { + byte ret = GetBitNative(self, n); + return ret != 0; + } - [NativeName(NativeNameType.Func, "igMarkIniSettingsDirty_Nil")] - [return: NativeName(NativeNameType.Type, "void")] - public static void MarkIniSettingsDirty() + public static bool GetBit( ImFontGlyphRangesBuilder* self, nuint n) { - MarkIniSettingsDirtyNative(); + byte ret = GetBitNative(self, n); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igMarkIniSettingsDirty_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igMarkIniSettingsDirty_WindowPtr")] - internal static extern void MarkIniSettingsDirtyNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_SetBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetBitNative(ImFontGlyphRangesBuilder* self, ulong n); - [NativeName(NativeNameType.Func, "igMarkIniSettingsDirty_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void MarkIniSettingsDirty([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void SetBit( ImFontGlyphRangesBuilder* self, ulong n) { - MarkIniSettingsDirtyNative(window); + SetBitNative(self, n); } - [NativeName(NativeNameType.Func, "igMarkIniSettingsDirty_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void MarkIniSettingsDirty([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void SetBit( ImFontGlyphRangesBuilder* self, nuint n) { - fixed (ImGuiWindow* pwindow = &window) - { - MarkIniSettingsDirtyNative((ImGuiWindow*)pwindow); - } + SetBitNative(self, n); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igClearIniSettings")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igClearIniSettings")] - internal static extern void ClearIniSettingsNative(); + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_AddChar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddCharNative(ImFontGlyphRangesBuilder* self, char c); - [NativeName(NativeNameType.Func, "igClearIniSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearIniSettings() + public static void AddChar( ImFontGlyphRangesBuilder* self, char c) { - ClearIniSettingsNative(); + AddCharNative(self, c); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igAddSettingsHandler")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igAddSettingsHandler")] - internal static extern void AddSettingsHandlerNative([NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "const ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler); + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_AddText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddTextNative(ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd); - [NativeName(NativeNameType.Func, "igAddSettingsHandler")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddSettingsHandler([NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "const ImGuiSettingsHandler*")] ImGuiSettingsHandler* handler) + public static void AddText( ImFontGlyphRangesBuilder* self, byte* text, byte* textEnd) { - AddSettingsHandlerNative(handler); + AddTextNative(self, text, textEnd); } - [NativeName(NativeNameType.Func, "igAddSettingsHandler")] - [return: NativeName(NativeNameType.Type, "void")] - public static void AddSettingsHandler([NativeName(NativeNameType.Param, "handler")] [NativeName(NativeNameType.Type, "const ImGuiSettingsHandler*")] ref ImGuiSettingsHandler handler) + public static void AddText( ImFontGlyphRangesBuilder* self, byte* text) { - fixed (ImGuiSettingsHandler* phandler = &handler) - { - AddSettingsHandlerNative((ImGuiSettingsHandler*)phandler); - } + AddTextNative(self, text, (byte*)(default)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igRemoveSettingsHandler")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRemoveSettingsHandler")] - internal static extern void RemoveSettingsHandlerNative([NativeName(NativeNameType.Param, "type_name")] [NativeName(NativeNameType.Type, "const char*")] byte* typeName); - - [NativeName(NativeNameType.Func, "igRemoveSettingsHandler")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RemoveSettingsHandler([NativeName(NativeNameType.Param, "type_name")] [NativeName(NativeNameType.Type, "const char*")] byte* typeName) + public static void AddText( ImFontGlyphRangesBuilder* self, ref byte text, byte* textEnd) { - RemoveSettingsHandlerNative(typeName); + fixed (byte* ptext = &text) + { + AddTextNative(self, (byte*)ptext, textEnd); + } } - [NativeName(NativeNameType.Func, "igRemoveSettingsHandler")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RemoveSettingsHandler([NativeName(NativeNameType.Param, "type_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte typeName) + public static void AddText( ImFontGlyphRangesBuilder* self, ref byte text) { - fixed (byte* ptypeName = &typeName) + fixed (byte* ptext = &text) { - RemoveSettingsHandlerNative((byte*)ptypeName); + AddTextNative(self, (byte*)ptext, (byte*)(default)); } } - [NativeName(NativeNameType.Func, "igRemoveSettingsHandler")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RemoveSettingsHandler([NativeName(NativeNameType.Param, "type_name")] [NativeName(NativeNameType.Type, "const char*")] string typeName) + public static void AddText( ImFontGlyphRangesBuilder* self, string text, byte* textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (typeName != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(typeName); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -217100,52 +53747,23 @@ public static void RemoveSettingsHandler([NativeName(NativeNameType.Param, "type byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - RemoveSettingsHandlerNative(pStr0); + AddTextNative(self, pStr0, textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFindSettingsHandler")] - [return: NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindSettingsHandler")] - internal static extern ImGuiSettingsHandler* FindSettingsHandlerNative([NativeName(NativeNameType.Param, "type_name")] [NativeName(NativeNameType.Type, "const char*")] byte* typeName); - - [NativeName(NativeNameType.Func, "igFindSettingsHandler")] - [return: NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] - public static ImGuiSettingsHandler* FindSettingsHandler([NativeName(NativeNameType.Param, "type_name")] [NativeName(NativeNameType.Type, "const char*")] byte* typeName) - { - ImGuiSettingsHandler* ret = FindSettingsHandlerNative(typeName); - return ret; - } - - [NativeName(NativeNameType.Func, "igFindSettingsHandler")] - [return: NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] - public static ImGuiSettingsHandler* FindSettingsHandler([NativeName(NativeNameType.Param, "type_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte typeName) - { - fixed (byte* ptypeName = &typeName) - { - ImGuiSettingsHandler* ret = FindSettingsHandlerNative((byte*)ptypeName); - return ret; - } - } - - [NativeName(NativeNameType.Func, "igFindSettingsHandler")] - [return: NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] - public static ImGuiSettingsHandler* FindSettingsHandler([NativeName(NativeNameType.Param, "type_name")] [NativeName(NativeNameType.Type, "const char*")] string typeName) + public static void AddText( ImFontGlyphRangesBuilder* self, string text) { byte* pStr0 = null; int pStrSize0 = 0; - if (typeName != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(typeName); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -217155,53 +53773,31 @@ public static void RemoveSettingsHandler([NativeName(NativeNameType.Param, "type byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImGuiSettingsHandler* ret = FindSettingsHandlerNative(pStr0); + AddTextNative(self, pStr0, (byte*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCreateNewWindowSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCreateNewWindowSettings")] - internal static extern ImGuiWindowSettings* CreateNewWindowSettingsNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name); - - [NativeName(NativeNameType.Func, "igCreateNewWindowSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] - public static ImGuiWindowSettings* CreateNewWindowSettings([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name) - { - ImGuiWindowSettings* ret = CreateNewWindowSettingsNative(name); - return ret; } - [NativeName(NativeNameType.Func, "igCreateNewWindowSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] - public static ImGuiWindowSettings* CreateNewWindowSettings([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name) + public static void AddText( ImFontGlyphRangesBuilder* self, byte* text, ref byte textEnd) { - fixed (byte* pname = &name) + fixed (byte* ptextEnd = &textEnd) { - ImGuiWindowSettings* ret = CreateNewWindowSettingsNative((byte*)pname); - return ret; + AddTextNative(self, text, (byte*)ptextEnd); } } - [NativeName(NativeNameType.Func, "igCreateNewWindowSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] - public static ImGuiWindowSettings* CreateNewWindowSettings([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name) + public static void AddText( ImFontGlyphRangesBuilder* self, byte* text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -217211,94 +53807,34 @@ public static void RemoveSettingsHandler([NativeName(NativeNameType.Param, "type byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImGuiWindowSettings* ret = CreateNewWindowSettingsNative(pStr0); + AddTextNative(self, text, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFindWindowSettingsByID")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindWindowSettingsByID")] - internal static extern ImGuiWindowSettings* FindWindowSettingsByIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - [NativeName(NativeNameType.Func, "igFindWindowSettingsByID")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] - public static ImGuiWindowSettings* FindWindowSettingsByID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - ImGuiWindowSettings* ret = FindWindowSettingsByIDNative(id); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFindWindowSettingsByWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindWindowSettingsByWindow")] - internal static extern ImGuiWindowSettings* FindWindowSettingsByWindowNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); - - [NativeName(NativeNameType.Func, "igFindWindowSettingsByWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] - public static ImGuiWindowSettings* FindWindowSettingsByWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) - { - ImGuiWindowSettings* ret = FindWindowSettingsByWindowNative(window); - return ret; - } - - [NativeName(NativeNameType.Func, "igFindWindowSettingsByWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] - public static ImGuiWindowSettings* FindWindowSettingsByWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - ImGuiWindowSettings* ret = FindWindowSettingsByWindowNative((ImGuiWindow*)pwindow); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igClearWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igClearWindowSettings")] - internal static extern void ClearWindowSettingsNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name); - - [NativeName(NativeNameType.Func, "igClearWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearWindowSettings([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name) - { - ClearWindowSettingsNative(name); } - [NativeName(NativeNameType.Func, "igClearWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearWindowSettings([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name) + public static void AddText( ImFontGlyphRangesBuilder* self, ref byte text, ref byte textEnd) { - fixed (byte* pname = &name) + fixed (byte* ptext = &text) { - ClearWindowSettingsNative((byte*)pname); + fixed (byte* ptextEnd = &textEnd) + { + AddTextNative(self, (byte*)ptext, (byte*)ptextEnd); + } } } - [NativeName(NativeNameType.Func, "igClearWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearWindowSettings([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name) + public static void AddText( ImFontGlyphRangesBuilder* self, string text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -217308,10 +53844,31 @@ public static void ClearWindowSettings([NativeName(NativeNameType.Param, "name") byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ClearWindowSettingsNative(pStr0); + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + AddTextNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -217321,570 +53878,301 @@ public static void ClearWindowSettings([NativeName(NativeNameType.Param, "name") /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igLocalizeRegisterEntries")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLocalizeRegisterEntries")] - internal static extern void LocalizeRegisterEntriesNative([NativeName(NativeNameType.Param, "entries")] [NativeName(NativeNameType.Type, "const ImGuiLocEntry*")] ImGuiLocEntry* entries, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count); + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_AddRanges")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddRangesNative(ImFontGlyphRangesBuilder* self, char* ranges); - [NativeName(NativeNameType.Func, "igLocalizeRegisterEntries")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LocalizeRegisterEntries([NativeName(NativeNameType.Param, "entries")] [NativeName(NativeNameType.Type, "const ImGuiLocEntry*")] ImGuiLocEntry* entries, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + public static void AddRanges( ImFontGlyphRangesBuilder* self, char* ranges) { - LocalizeRegisterEntriesNative(entries, count); + AddRangesNative(self, ranges); } - [NativeName(NativeNameType.Func, "igLocalizeRegisterEntries")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LocalizeRegisterEntries([NativeName(NativeNameType.Param, "entries")] [NativeName(NativeNameType.Type, "const ImGuiLocEntry*")] ref ImGuiLocEntry entries, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + public static void AddRanges( ImFontGlyphRangesBuilder* self, ref char ranges) { - fixed (ImGuiLocEntry* pentries = &entries) + fixed (char* pranges = &ranges) { - LocalizeRegisterEntriesNative((ImGuiLocEntry*)pentries, count); + AddRangesNative(self, (char*)pranges); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igLocalizeGetMsg")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLocalizeGetMsg")] - internal static extern byte* LocalizeGetMsgNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiLocKey")] ImGuiLocKey key); + [LibraryImport(LibName, EntryPoint = "ImFontGlyphRangesBuilder_BuildRanges")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BuildRangesNative(ImFontGlyphRangesBuilder* self, ImVectorImWchar* outRanges); - [NativeName(NativeNameType.Func, "igLocalizeGetMsg")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* LocalizeGetMsg([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiLocKey")] ImGuiLocKey key) + public static void BuildRanges( ImFontGlyphRangesBuilder* self, ImVectorImWchar* outRanges) { - byte* ret = LocalizeGetMsgNative(key); - return ret; + BuildRangesNative(self, outRanges); } - [NativeName(NativeNameType.Func, "igLocalizeGetMsg")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string LocalizeGetMsgS([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiLocKey")] ImGuiLocKey key) + public static void BuildRanges( ImFontGlyphRangesBuilder* self, ref ImVectorImWchar outRanges) { - string ret = Utils.DecodeStringUTF8(LocalizeGetMsgNative(key)); - return ret; + fixed (ImVectorImWchar* poutRanges = &outRanges) + { + BuildRangesNative(self, (ImVectorImWchar*)poutRanges); + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetScrollX_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetScrollX_WindowPtr")] - internal static extern void SetScrollXNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "scroll_x")] [NativeName(NativeNameType.Type, "float")] float scrollX); + [LibraryImport(LibName, EntryPoint = "ImFontAtlasCustomRect_ImFontAtlasCustomRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontAtlasCustomRect* ImFontAtlasCustomRectNative(); - [NativeName(NativeNameType.Func, "igSetScrollX_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollX([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "scroll_x")] [NativeName(NativeNameType.Type, "float")] float scrollX) - { - SetScrollXNative(window, scrollX); - } - - [NativeName(NativeNameType.Func, "igSetScrollX_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollX([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "scroll_x")] [NativeName(NativeNameType.Type, "float")] float scrollX) + public static ImFontAtlasCustomRect* ImFontAtlasCustomRect() { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollXNative((ImGuiWindow*)pwindow, scrollX); - } + ImFontAtlasCustomRect* ret = ImFontAtlasCustomRectNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetScrollY_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetScrollY_WindowPtr")] - internal static extern void SetScrollYNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "scroll_y")] [NativeName(NativeNameType.Type, "float")] float scrollY); - - [NativeName(NativeNameType.Func, "igSetScrollY_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollY([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "scroll_y")] [NativeName(NativeNameType.Type, "float")] float scrollY) - { - SetScrollYNative(window, scrollY); - } - - [NativeName(NativeNameType.Func, "igSetScrollY_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollY([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "scroll_y")] [NativeName(NativeNameType.Type, "float")] float scrollY) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollYNative((ImGuiWindow*)pwindow, scrollY); - } - } + [LibraryImport(LibName, EntryPoint = "ImFontAtlasCustomRect_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImFontAtlasCustomRect* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetScrollFromPosX_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetScrollFromPosX_WindowPtr")] - internal static extern void SetScrollFromPosXNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "local_x")] [NativeName(NativeNameType.Type, "float")] float localX, [NativeName(NativeNameType.Param, "center_x_ratio")] [NativeName(NativeNameType.Type, "float")] float centerXRatio); - - [NativeName(NativeNameType.Func, "igSetScrollFromPosX_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollFromPosX([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "local_x")] [NativeName(NativeNameType.Type, "float")] float localX, [NativeName(NativeNameType.Param, "center_x_ratio")] [NativeName(NativeNameType.Type, "float")] float centerXRatio) - { - SetScrollFromPosXNative(window, localX, centerXRatio); - } + [LibraryImport(LibName, EntryPoint = "ImFontAtlasCustomRect_IsPacked")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsPackedNative(ImFontAtlasCustomRect* self); - [NativeName(NativeNameType.Func, "igSetScrollFromPosX_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollFromPosX([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "local_x")] [NativeName(NativeNameType.Type, "float")] float localX, [NativeName(NativeNameType.Param, "center_x_ratio")] [NativeName(NativeNameType.Type, "float")] float centerXRatio) + public static bool IsPacked( ImFontAtlasCustomRect* self) { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollFromPosXNative((ImGuiWindow*)pwindow, localX, centerXRatio); - } + byte ret = IsPackedNative(self); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetScrollFromPosY_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetScrollFromPosY_WindowPtr")] - internal static extern void SetScrollFromPosYNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "local_y")] [NativeName(NativeNameType.Type, "float")] float localY, [NativeName(NativeNameType.Param, "center_y_ratio")] [NativeName(NativeNameType.Type, "float")] float centerYRatio); + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_ImFontAtlas")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontAtlas* ImFontAtlasNative(); - [NativeName(NativeNameType.Func, "igSetScrollFromPosY_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollFromPosY([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "local_y")] [NativeName(NativeNameType.Type, "float")] float localY, [NativeName(NativeNameType.Param, "center_y_ratio")] [NativeName(NativeNameType.Type, "float")] float centerYRatio) + public static ImFontAtlas* ImFontAtlas() { - SetScrollFromPosYNative(window, localY, centerYRatio); + ImFontAtlas* ret = ImFontAtlasNative(); + return ret; } - [NativeName(NativeNameType.Func, "igSetScrollFromPosY_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetScrollFromPosY([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "local_y")] [NativeName(NativeNameType.Type, "float")] float localY, [NativeName(NativeNameType.Param, "center_y_ratio")] [NativeName(NativeNameType.Type, "float")] float centerYRatio) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetScrollFromPosYNative((ImGuiWindow*)pwindow, localY, centerYRatio); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImFontAtlas* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igScrollToItem")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igScrollToItem")] - internal static extern void ScrollToItemNative([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags flags); + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontNative(ImFontAtlas* self, ImFontConfig* fontCfg); - [NativeName(NativeNameType.Func, "igScrollToItem")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToItem([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags flags) + public static ImFont* AddFont( ImFontAtlas* self, ImFontConfig* fontCfg) { - ScrollToItemNative(flags); + ImFont* ret = AddFontNative(self, fontCfg); + return ret; } - [NativeName(NativeNameType.Func, "igScrollToItem")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToItem() + public static ImFont* AddFont( ImFontAtlas* self, ref ImFontConfig fontCfg) { - ScrollToItemNative((ImGuiScrollFlags)(0)); + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontNative(self, (ImFontConfig*)pfontCfg); + return ret; + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igScrollToRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igScrollToRect")] - internal static extern void ScrollToRectNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags flags); - - [NativeName(NativeNameType.Func, "igScrollToRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRect([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags flags) - { - ScrollToRectNative(window, rect, flags); - } + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFontDefault")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontDefaultNative(ImFontAtlas* self, ImFontConfig* fontCfg); - [NativeName(NativeNameType.Func, "igScrollToRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRect([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect) + public static ImFont* AddFontDefault( ImFontAtlas* self, ImFontConfig* fontCfg) { - ScrollToRectNative(window, rect, (ImGuiScrollFlags)(0)); + ImFont* ret = AddFontDefaultNative(self, fontCfg); + return ret; } - [NativeName(NativeNameType.Func, "igScrollToRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRect([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags flags) + public static ImFont* AddFontDefault( ImFontAtlas* self) { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectNative((ImGuiWindow*)pwindow, rect, flags); - } + ImFont* ret = AddFontDefaultNative(self, (ImFontConfig*)(default)); + return ret; } - [NativeName(NativeNameType.Func, "igScrollToRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRect([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect) + public static ImFont* AddFontDefault( ImFontAtlas* self, ref ImFontConfig fontCfg) { - fixed (ImGuiWindow* pwindow = &window) + fixed (ImFontConfig* pfontCfg = &fontCfg) { - ScrollToRectNative((ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); + ImFont* ret = AddFontDefaultNative(self, (ImFontConfig*)pfontCfg); + return ret; } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igScrollToRectEx")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igScrollToRectEx")] - internal static extern void ScrollToRectExNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags flags); + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFontFromFileTTF")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontFromFileTTFNative(ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges); - [NativeName(NativeNameType.Func, "igScrollToRectEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRectEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags flags) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { - ScrollToRectExNative(pOut, window, rect, flags); + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, glyphRanges); + return ret; + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, (char*)(default)); + return ret; } - [NativeName(NativeNameType.Func, "igScrollToRectEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRectEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels) { - ScrollToRectExNative(pOut, window, rect, (ImGuiScrollFlags)(0)); + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; } - [NativeName(NativeNameType.Func, "igScrollToRectEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRectEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags flags) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, char* glyphRanges) { - fixed (Vector2* ppOut = &pOut) - { - ScrollToRectExNative((Vector2*)ppOut, window, rect, flags); - } + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; } - [NativeName(NativeNameType.Func, "igScrollToRectEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRectEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { - fixed (Vector2* ppOut = &pOut) + fixed (byte* pfilename = &filename) { - ScrollToRectExNative((Vector2*)ppOut, window, rect, (ImGuiScrollFlags)(0)); + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); + return ret; } } - [NativeName(NativeNameType.Func, "igScrollToRectEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRectEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags flags) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ImFontConfig* fontCfg) { - fixed (ImGuiWindow* pwindow = &window) + fixed (byte* pfilename = &filename) { - ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, flags); + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (char*)(default)); + return ret; } } - [NativeName(NativeNameType.Func, "igScrollToRectEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRectEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels) { - fixed (ImGuiWindow* pwindow = &window) + fixed (byte* pfilename = &filename) { - ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; } } - [NativeName(NativeNameType.Func, "igScrollToRectEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRectEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags flags) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, char* glyphRanges) { - fixed (Vector2* ppOut = &pOut) + fixed (byte* pfilename = &filename) { - fixed (ImGuiWindow* pwindow = &window) - { - ScrollToRectExNative((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, flags); - } + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; } } - [NativeName(NativeNameType.Func, "igScrollToRectEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToRectEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { - fixed (Vector2* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) { - fixed (ImGuiWindow* pwindow = &window) + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) { - ScrollToRectExNative((Vector2*)ppOut, (ImGuiWindow*)pwindow, rect, (ImGuiScrollFlags)(0)); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igScrollToBringRectIntoView")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igScrollToBringRectIntoView")] - internal static extern void ScrollToBringRectIntoViewNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect); - - [NativeName(NativeNameType.Func, "igScrollToBringRectIntoView")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToBringRectIntoView([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect) - { - ScrollToBringRectIntoViewNative(window, rect); - } - - [NativeName(NativeNameType.Func, "igScrollToBringRectIntoView")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ScrollToBringRectIntoView([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect) - { - fixed (ImGuiWindow* pwindow = &window) + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) { - ScrollToBringRectIntoViewNative((ImGuiWindow*)pwindow, rect); + Utils.Free(pStr0); } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetItemStatusFlags")] - [return: NativeName(NativeNameType.Type, "ImGuiItemStatusFlags")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetItemStatusFlags")] - internal static extern ImGuiItemStatusFlags GetItemStatusFlagsNative(); - - [NativeName(NativeNameType.Func, "igGetItemStatusFlags")] - [return: NativeName(NativeNameType.Type, "ImGuiItemStatusFlags")] - public static ImGuiItemStatusFlags GetItemStatusFlags() - { - ImGuiItemStatusFlags ret = GetItemStatusFlagsNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetItemFlags")] - [return: NativeName(NativeNameType.Type, "ImGuiItemFlags")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetItemFlags")] - internal static extern ImGuiItemFlags GetItemFlagsNative(); - - [NativeName(NativeNameType.Func, "igGetItemFlags")] - [return: NativeName(NativeNameType.Type, "ImGuiItemFlags")] - public static ImGuiItemFlags GetItemFlags() - { - ImGuiItemFlags ret = GetItemFlagsNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetActiveID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetActiveID")] - internal static extern int GetActiveIDNative(); - - [NativeName(NativeNameType.Func, "igGetActiveID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetActiveID() - { - int ret = GetActiveIDNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetFocusID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetFocusID")] - internal static extern int GetFocusIDNative(); - - [NativeName(NativeNameType.Func, "igGetFocusID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetFocusID() - { - int ret = GetFocusIDNative(); return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetActiveID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetActiveID")] - internal static extern void SetActiveIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); - - [NativeName(NativeNameType.Func, "igSetActiveID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetActiveID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) - { - SetActiveIDNative(id, window); - } - - [NativeName(NativeNameType.Func, "igSetActiveID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetActiveID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ImFontConfig* fontCfg) { - fixed (ImGuiWindow* pwindow = &window) + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) { - SetActiveIDNative(id, (ImGuiWindow*)pwindow); + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetFocusID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetFocusID")] - internal static extern void SetFocusIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); - - [NativeName(NativeNameType.Func, "igSetFocusID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetFocusID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) - { - SetFocusIDNative(id, window); - } - - [NativeName(NativeNameType.Func, "igSetFocusID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetFocusID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - SetFocusIDNative(id, (ImGuiWindow*)pwindow); + Utils.Free(pStr0); } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igClearActiveID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igClearActiveID")] - internal static extern void ClearActiveIDNative(); - - [NativeName(NativeNameType.Func, "igClearActiveID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearActiveID() - { - ClearActiveIDNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetHoveredID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetHoveredID")] - internal static extern int GetHoveredIDNative(); - - [NativeName(NativeNameType.Func, "igGetHoveredID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetHoveredID() - { - int ret = GetHoveredIDNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetHoveredID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetHoveredID")] - internal static extern void SetHoveredIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - [NativeName(NativeNameType.Func, "igSetHoveredID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetHoveredID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - SetHoveredIDNative(id); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igKeepAliveID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igKeepAliveID")] - internal static extern void KeepAliveIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - [NativeName(NativeNameType.Func, "igKeepAliveID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void KeepAliveID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - KeepAliveIDNative(id); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igMarkItemEdited")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igMarkItemEdited")] - internal static extern void MarkItemEditedNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - /// /// Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function. /// [NativeName(NativeNameType.Func, "igMarkItemEdited")] - [return: NativeName(NativeNameType.Type, "void")] - public static void MarkItemEdited([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - MarkItemEditedNative(id); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPushOverrideID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushOverrideID")] - internal static extern void PushOverrideIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - /// /// Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes) /// [NativeName(NativeNameType.Func, "igPushOverrideID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushOverrideID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - PushOverrideIDNative(id); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetIDWithSeed_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetIDWithSeed_Str")] - internal static extern int GetIDWithSeedNative([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed); - - [NativeName(NativeNameType.Func, "igGetIDWithSeed_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetIDWithSeed([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) - { - int ret = GetIDWithSeedNative(strIdBegin, strIdEnd, seed); return ret; } - [NativeName(NativeNameType.Func, "igGetIDWithSeed_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetIDWithSeed([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels) { - fixed (byte* pstrIdBegin = &strIdBegin) + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - int ret = GetIDWithSeedNative((byte*)pstrIdBegin, strIdEnd, seed); - return ret; + Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igGetIDWithSeed_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetIDWithSeed([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] string strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdEnd, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, char* glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; - if (strIdBegin != null) + if (filename != null) { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); + pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -217894,10 +54182,10 @@ public static int GetIDWithSeed([NativeName(NativeNameType.Param, "str_id_begin" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = GetIDWithSeedNative(pStr0, strIdEnd, seed); + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -217905,26 +54193,55 @@ public static int GetIDWithSeed([NativeName(NativeNameType.Param, "str_id_begin" return ret; } - [NativeName(NativeNameType.Func, "igGetIDWithSeed_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetIDWithSeed([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdEnd, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { - fixed (byte* pstrIdEnd = &strIdEnd) + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) { - int ret = GetIDWithSeedNative(strIdBegin, (byte*)pstrIdEnd, seed); + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); return ret; } } - [NativeName(NativeNameType.Func, "igGetIDWithSeed_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetIDWithSeed([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] string strIdEnd, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + } + + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; - if (strIdEnd != null) + if (filename != null) { - pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); + pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -217934,40 +54251,27 @@ public static int GetIDWithSeed([NativeName(NativeNameType.Param, "str_id_begin" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = GetIDWithSeedNative(strIdBegin, pStr0, seed); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - - [NativeName(NativeNameType.Func, "igGetIDWithSeed_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetIDWithSeed([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strIdEnd, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) - { - fixed (byte* pstrIdBegin = &strIdBegin) + fixed (ImFontConfig* pfontCfg = &fontCfg) { - fixed (byte* pstrIdEnd = &strIdEnd) + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) { - int ret = GetIDWithSeedNative((byte*)pstrIdBegin, (byte*)pstrIdEnd, seed); - return ret; + Utils.Free(pStr0); } + return ret; } } - [NativeName(NativeNameType.Func, "igGetIDWithSeed_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetIDWithSeed([NativeName(NativeNameType.Param, "str_id_begin")] [NativeName(NativeNameType.Type, "const char*")] string strIdBegin, [NativeName(NativeNameType.Param, "str_id_end")] [NativeName(NativeNameType.Type, "const char*")] string strIdEnd, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ref ImFontConfig fontCfg) { byte* pStr0 = null; int pStrSize0 = 0; - if (strIdBegin != null) + if (filename != null) { - pStrSize0 = Utils.GetByteCountUTF8(strIdBegin); + pStrSize0 = Utils.GetByteCountUTF8(filename); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -217977,529 +54281,414 @@ public static int GetIDWithSeed([NativeName(NativeNameType.Param, "str_id_begin" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strIdBegin, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strIdEnd != null) + fixed (ImFontConfig* pfontCfg = &fontCfg) { - pStrSize1 = Utils.GetByteCountUTF8(strIdEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(strIdEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = GetIDWithSeedNative(pStr0, pStr1, seed); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret; } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetIDWithSeed_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetIDWithSeed_Int")] - internal static extern int GetIDWithSeedNative([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed); - - [NativeName(NativeNameType.Func, "igGetIDWithSeed_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetIDWithSeed([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n, [NativeName(NativeNameType.Param, "seed")] [NativeName(NativeNameType.Type, "ImGuiID")] int seed) - { - int ret = GetIDWithSeedNative(n, seed); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igItemSize_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igItemSize_Vec2")] - internal static extern void ItemSizeNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "text_baseline_y")] [NativeName(NativeNameType.Type, "float")] float textBaselineY); - - [NativeName(NativeNameType.Func, "igItemSize_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ItemSize([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "text_baseline_y")] [NativeName(NativeNameType.Type, "float")] float textBaselineY) - { - ItemSizeNative(size, textBaselineY); } - [NativeName(NativeNameType.Func, "igItemSize_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ItemSize([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { - ItemSizeNative(size, (float)(-1.0f)); + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igItemSize_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igItemSize_Rect")] - internal static extern void ItemSizeNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "text_baseline_y")] [NativeName(NativeNameType.Type, "float")] float textBaselineY); - - /// /// FIXME: This is a misleading API since we expect CursorPos to be bb.Min. /// [NativeName(NativeNameType.Func, "igItemSize_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ItemSize([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "text_baseline_y")] [NativeName(NativeNameType.Type, "float")] float textBaselineY) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ref char glyphRanges) { - ItemSizeNative(bb, textBaselineY); + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } } - /// /// FIXME: This is a misleading API since we expect CursorPos to be bb.Min. /// [NativeName(NativeNameType.Func, "igItemSize_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ItemSize([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { - ItemSizeNative(bb, (float)(-1.0f)); + fixed (byte* pfilename = &filename) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igItemAdd")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igItemAdd")] - internal static extern byte ItemAddNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "nav_bb")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* navBb, [NativeName(NativeNameType.Param, "extra_flags")] [NativeName(NativeNameType.Type, "ImGuiItemFlags")] ImGuiItemFlags extraFlags); - - [NativeName(NativeNameType.Func, "igItemAdd")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ItemAdd([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "nav_bb")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* navBb, [NativeName(NativeNameType.Param, "extra_flags")] [NativeName(NativeNameType.Type, "ImGuiItemFlags")] ImGuiItemFlags extraFlags) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ref char glyphRanges) { - byte ret = ItemAddNative(bb, id, navBb, extraFlags); - return ret != 0; + fixed (byte* pfilename = &filename) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } } - [NativeName(NativeNameType.Func, "igItemAdd")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ItemAdd([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "nav_bb")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* navBb) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { - byte ret = ItemAddNative(bb, id, navBb, (ImGuiItemFlags)(0)); - return ret != 0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, fontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } } - [NativeName(NativeNameType.Func, "igItemAdd")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ItemAdd([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ref char glyphRanges) { - byte ret = ItemAddNative(bb, id, (ImRect*)(default), (ImGuiItemFlags)(0)); - return ret != 0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } } - [NativeName(NativeNameType.Func, "igItemAdd")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ItemAdd([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "extra_flags")] [NativeName(NativeNameType.Type, "ImGuiItemFlags")] ImGuiItemFlags extraFlags) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, byte* filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { - byte ret = ItemAddNative(bb, id, (ImRect*)(default), extraFlags); - return ret != 0; + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, filename, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } } - [NativeName(NativeNameType.Func, "igItemAdd")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ItemAdd([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "nav_bb")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect navBb, [NativeName(NativeNameType.Param, "extra_flags")] [NativeName(NativeNameType.Type, "ImGuiItemFlags")] ImGuiItemFlags extraFlags) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { - fixed (ImRect* pnavBb = &navBb) + fixed (byte* pfilename = &filename) { - byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, extraFlags); - return ret != 0; + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } } } - [NativeName(NativeNameType.Func, "igItemAdd")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ItemAdd([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "nav_bb")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect navBb) + public static ImFont* AddFontFromFileTTF( ImFontAtlas* self, string filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { - fixed (ImRect* pnavBb = &navBb) + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) { - byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, (ImGuiItemFlags)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromFileTTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igItemHoverable")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igItemHoverable")] - internal static extern byte ItemHoverableNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "item_flags")] [NativeName(NativeNameType.Type, "ImGuiItemFlags")] ImGuiItemFlags itemFlags); + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFontFromMemoryTTF")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontFromMemoryTTFNative(ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges); - [NativeName(NativeNameType.Func, "igItemHoverable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ItemHoverable([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "item_flags")] [NativeName(NativeNameType.Type, "ImGuiItemFlags")] ImGuiItemFlags itemFlags) + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { - byte ret = ItemHoverableNative(bb, id, itemFlags); - return ret != 0; + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, fontCfg, glyphRanges); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsWindowContentHoverable")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsWindowContentHoverable")] - internal static extern byte IsWindowContentHoverableNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiHoveredFlags")] ImGuiHoveredFlags flags); - - [NativeName(NativeNameType.Func, "igIsWindowContentHoverable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowContentHoverable([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiHoveredFlags")] ImGuiHoveredFlags flags) + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg) { - byte ret = IsWindowContentHoverableNative(window, flags); - return ret != 0; + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, fontCfg, (char*)(default)); + return ret; } - [NativeName(NativeNameType.Func, "igIsWindowContentHoverable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowContentHoverable([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels) { - byte ret = IsWindowContentHoverableNative(window, (ImGuiHoveredFlags)(0)); - return ret != 0; + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; } - [NativeName(NativeNameType.Func, "igIsWindowContentHoverable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowContentHoverable([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiHoveredFlags")] ImGuiHoveredFlags flags) + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, char* glyphRanges) { - fixed (ImGuiWindow* pwindow = &window) - { - byte ret = IsWindowContentHoverableNative((ImGuiWindow*)pwindow, flags); - return ret != 0; - } + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; } - [NativeName(NativeNameType.Func, "igIsWindowContentHoverable")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsWindowContentHoverable([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { - fixed (ImGuiWindow* pwindow = &window) + fixed (ImFontConfig* pfontCfg = &fontCfg) { - byte ret = IsWindowContentHoverableNative((ImGuiWindow*)pwindow, (ImGuiHoveredFlags)(0)); - return ret != 0; + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsClippedEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsClippedEx")] - internal static extern byte IsClippedExNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - [NativeName(NativeNameType.Func, "igIsClippedEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsClippedEx([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg) { - byte ret = IsClippedExNative(bb, id); - return ret != 0; + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetLastItemData")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetLastItemData")] - internal static extern void SetLastItemDataNative([NativeName(NativeNameType.Param, "item_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int itemId, [NativeName(NativeNameType.Param, "in_flags")] [NativeName(NativeNameType.Type, "ImGuiItemFlags")] ImGuiItemFlags inFlags, [NativeName(NativeNameType.Param, "status_flags")] [NativeName(NativeNameType.Type, "ImGuiItemStatusFlags")] ImGuiItemStatusFlags statusFlags, [NativeName(NativeNameType.Param, "item_rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect itemRect); - - [NativeName(NativeNameType.Func, "igSetLastItemData")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetLastItemData([NativeName(NativeNameType.Param, "item_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int itemId, [NativeName(NativeNameType.Param, "in_flags")] [NativeName(NativeNameType.Type, "ImGuiItemFlags")] ImGuiItemFlags inFlags, [NativeName(NativeNameType.Param, "status_flags")] [NativeName(NativeNameType.Type, "ImGuiItemStatusFlags")] ImGuiItemStatusFlags statusFlags, [NativeName(NativeNameType.Param, "item_rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect itemRect) + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { - SetLastItemDataNative(itemId, inFlags, statusFlags, itemRect); + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCalcItemSize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCalcItemSize")] - internal static extern void CalcItemSizeNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "default_w")] [NativeName(NativeNameType.Type, "float")] float defaultW, [NativeName(NativeNameType.Param, "default_h")] [NativeName(NativeNameType.Type, "float")] float defaultH); - - [NativeName(NativeNameType.Func, "igCalcItemSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcItemSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "default_w")] [NativeName(NativeNameType.Type, "float")] float defaultW, [NativeName(NativeNameType.Param, "default_h")] [NativeName(NativeNameType.Type, "float")] float defaultH) + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ref char glyphRanges) { - CalcItemSizeNative(pOut, size, defaultW, defaultH); + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } } - [NativeName(NativeNameType.Func, "igCalcItemSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void CalcItemSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "default_w")] [NativeName(NativeNameType.Type, "float")] float defaultW, [NativeName(NativeNameType.Param, "default_h")] [NativeName(NativeNameType.Type, "float")] float defaultH) + public static ImFont* AddFontFromMemoryTTF( ImFontAtlas* self, void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { - fixed (Vector2* ppOut = &pOut) + fixed (ImFontConfig* pfontCfg = &fontCfg) { - CalcItemSizeNative((Vector2*)ppOut, size, defaultW, defaultH); + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryTTFNative(self, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igCalcWrapWidthForPos")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCalcWrapWidthForPos")] - internal static extern float CalcWrapWidthForPosNative([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "wrap_pos_x")] [NativeName(NativeNameType.Type, "float")] float wrapPosX); + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFontFromMemoryCompressedTTF")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontFromMemoryCompressedTTFNative(ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges); - [NativeName(NativeNameType.Func, "igCalcWrapWidthForPos")] - [return: NativeName(NativeNameType.Type, "float")] - public static float CalcWrapWidthForPos([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "wrap_pos_x")] [NativeName(NativeNameType.Type, "float")] float wrapPosX) + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { - float ret = CalcWrapWidthForPosNative(pos, wrapPosX); + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, glyphRanges); return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPushMultiItemsWidths")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushMultiItemsWidths")] - internal static extern void PushMultiItemsWidthsNative([NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "width_full")] [NativeName(NativeNameType.Type, "float")] float widthFull); - - [NativeName(NativeNameType.Func, "igPushMultiItemsWidths")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushMultiItemsWidths([NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "int")] int components, [NativeName(NativeNameType.Param, "width_full")] [NativeName(NativeNameType.Type, "float")] float widthFull) + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg) { - PushMultiItemsWidthsNative(components, widthFull); + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, (char*)(default)); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsItemToggledSelection")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsItemToggledSelection")] - internal static extern byte IsItemToggledSelectionNative(); - - /// /// Was the last item selection toggled? (after Selectable(), TreeNode() etc. We only returns toggle _event_ in order to handle clipping correctly) /// [NativeName(NativeNameType.Func, "igIsItemToggledSelection")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsItemToggledSelection() + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels) { - byte ret = IsItemToggledSelectionNative(); - return ret != 0; + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetContentRegionMaxAbs")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetContentRegionMaxAbs")] - internal static extern void GetContentRegionMaxAbsNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut); - - [NativeName(NativeNameType.Func, "igGetContentRegionMaxAbs")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetContentRegionMaxAbs([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut) + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, char* glyphRanges) { - GetContentRegionMaxAbsNative(pOut); + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; } - [NativeName(NativeNameType.Func, "igGetContentRegionMaxAbs")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetContentRegionMaxAbs([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut) + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { - fixed (Vector2* ppOut = &pOut) + fixed (ImFontConfig* pfontCfg = &fontCfg) { - GetContentRegionMaxAbsNative((Vector2*)ppOut); + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igShrinkWidths")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShrinkWidths")] - internal static extern void ShrinkWidthsNative([NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "ImGuiShrinkWidthItem*")] ImGuiShrinkWidthItem* items, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "width_excess")] [NativeName(NativeNameType.Type, "float")] float widthExcess); - - [NativeName(NativeNameType.Func, "igShrinkWidths")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShrinkWidths([NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "ImGuiShrinkWidthItem*")] ImGuiShrinkWidthItem* items, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "width_excess")] [NativeName(NativeNameType.Type, "float")] float widthExcess) + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg) { - ShrinkWidthsNative(items, count, widthExcess); + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } } - [NativeName(NativeNameType.Func, "igShrinkWidths")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShrinkWidths([NativeName(NativeNameType.Param, "items")] [NativeName(NativeNameType.Type, "ImGuiShrinkWidthItem*")] ref ImGuiShrinkWidthItem items, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "width_excess")] [NativeName(NativeNameType.Type, "float")] float widthExcess) + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { - fixed (ImGuiShrinkWidthItem* pitems = &items) + fixed (char* pglyphRanges = &glyphRanges) { - ShrinkWidthsNative((ImGuiShrinkWidthItem*)pitems, count, widthExcess); + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPushItemFlag")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushItemFlag")] - internal static extern void PushItemFlagNative([NativeName(NativeNameType.Param, "option")] [NativeName(NativeNameType.Type, "ImGuiItemFlags")] ImGuiItemFlags option, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] byte enabled); - - [NativeName(NativeNameType.Func, "igPushItemFlag")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushItemFlag([NativeName(NativeNameType.Param, "option")] [NativeName(NativeNameType.Type, "ImGuiItemFlags")] ImGuiItemFlags option, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ref char glyphRanges) { - PushItemFlagNative(option, enabled ? (byte)1 : (byte)0); + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPopItemFlag")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopItemFlag")] - internal static extern void PopItemFlagNative(); - - [NativeName(NativeNameType.Func, "igPopItemFlag")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopItemFlag() + public static ImFont* AddFontFromMemoryCompressedTTF( ImFontAtlas* self, void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { - PopItemFlagNative(); + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedTTFNative(self, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetStyleVarInfo")] - [return: NativeName(NativeNameType.Type, "const ImGuiDataVarInfo*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetStyleVarInfo")] - internal static extern ImGuiDataVarInfo* GetStyleVarInfoNative([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx); + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* AddFontFromMemoryCompressedBase85TTFNative(ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges); - [NativeName(NativeNameType.Func, "igGetStyleVarInfo")] - [return: NativeName(NativeNameType.Type, "const ImGuiDataVarInfo*")] - public static ImGuiDataVarInfo* GetStyleVarInfo([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImGuiStyleVar")] ImGuiStyleVar idx) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { - ImGuiDataVarInfo* ret = GetStyleVarInfoNative(idx); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLogBegin")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLogBegin")] - internal static extern void LogBeginNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "ImGuiLogType")] ImGuiLogType type, [NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth); - - /// /// -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name. /// [NativeName(NativeNameType.Func, "igLogBegin")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogBegin([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "ImGuiLogType")] ImGuiLogType type, [NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth) - { - LogBeginNative(type, autoOpenDepth); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLogToBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLogToBuffer")] - internal static extern void LogToBufferNative([NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth); - - /// /// Start loggingcapturing to internal buffer /// [NativeName(NativeNameType.Func, "igLogToBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToBuffer([NativeName(NativeNameType.Param, "auto_open_depth")] [NativeName(NativeNameType.Type, "int")] int autoOpenDepth) - { - LogToBufferNative(autoOpenDepth); - } - - /// /// Start loggingcapturing to internal buffer /// [NativeName(NativeNameType.Func, "igLogToBuffer")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogToBuffer() + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) { - LogToBufferNative((int)(-1)); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, (char*)(default)); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLogRenderedText")] - internal static extern void LogRenderedTextNative([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd); - - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels) { - LogRenderedTextNative(refPos, text, textEnd); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; } - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, char* glyphRanges) { - LogRenderedTextNative(refPos, text, (byte*)(default)); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; } - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { - fixed (Vector2* prefPos = &refPos) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { - LogRenderedTextNative((Vector2*)prefPos, text, textEnd); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; } } - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) { - fixed (Vector2* prefPos = &refPos) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { - LogRenderedTextNative((Vector2*)prefPos, text, (byte*)(default)); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (char*)(default)); + return ret; } } - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels) { - fixed (byte* ptext = &text) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { - LogRenderedTextNative(refPos, (byte*)ptext, textEnd); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; } } - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, char* glyphRanges) { - fixed (byte* ptext = &text) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)(default)); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; } } - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -218509,25 +54698,24 @@ public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - LogRenderedTextNative(refPos, pStr0, textEnd); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -218537,123 +54725,24 @@ public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - LogRenderedTextNative(refPos, pStr0, (byte*)(default)); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (char*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, textEnd); - } - } - } - - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptext = &text) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)(default)); - } - } - } - - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative(refPos, text, (byte*)ptextEnd); - } - } - - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels) { byte* pStr0 = null; int pStrSize0 = 0; - if (textEnd != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -218663,82 +54752,24 @@ public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - LogRenderedTextNative(refPos, text, pStr0); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, text, (byte*)ptextEnd); - } - } - } - - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) - { - fixed (Vector2* prefPos = &refPos) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogRenderedTextNative((Vector2*)prefPos, text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); - } + Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, char* glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -218748,139 +54779,96 @@ public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + Utils.Free(pStr0); } - LogRenderedTextNative(refPos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) + return ret; + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) { - Utils.Free(pStr1); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) { - Utils.Free(pStr0); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; } } - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { - fixed (Vector2* prefPos = &refPos) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { - fixed (byte* ptext = &text) + fixed (ImFontConfig* pfontCfg = &fontCfg) { - fixed (byte* ptextEnd = &textEnd) - { - LogRenderedTextNative((Vector2*)prefPos, (byte*)ptext, (byte*)ptextEnd); - } + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; } } } - [NativeName(NativeNameType.Func, "igLogRenderedText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogRenderedText([NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 refPos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { - fixed (Vector2* prefPos = &refPos) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) + fixed (ImFontConfig* pfontCfg = &fontCfg) { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - LogRenderedTextNative((Vector2*)prefPos, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr1); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igLogSetNextTextDecoration")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLogSetNextTextDecoration")] - internal static extern void LogSetNextTextDecorationNative([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] byte* suffix); - - [NativeName(NativeNameType.Func, "igLogSetNextTextDecoration")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogSetNextTextDecoration([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] byte* suffix) - { - LogSetNextTextDecorationNative(prefix, suffix); - } - - [NativeName(NativeNameType.Func, "igLogSetNextTextDecoration")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogSetNextTextDecoration([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] ref byte prefix, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] byte* suffix) - { - fixed (byte* pprefix = &prefix) - { - LogSetNextTextDecorationNative((byte*)pprefix, suffix); - } - } - - [NativeName(NativeNameType.Func, "igLogSetNextTextDecoration")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogSetNextTextDecoration([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] string prefix, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] byte* suffix) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { byte* pStr0 = null; int pStrSize0 = 0; - if (prefix != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(prefix); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -218890,35 +54878,69 @@ public static void LogSetNextTextDecoration([NativeName(NativeNameType.Param, "p byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - LogSetNextTextDecorationNative(pStr0, suffix); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImFontConfig* pfontCfg = &fontCfg) { - Utils.Free(pStr0); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } - [NativeName(NativeNameType.Func, "igLogSetNextTextDecoration")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogSetNextTextDecoration([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] ref byte suffix) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { - fixed (byte* psuffix = &suffix) + fixed (char* pglyphRanges = &glyphRanges) { - LogSetNextTextDecorationNative(prefix, (byte*)psuffix); + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ref char glyphRanges) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + } + + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ref char glyphRanges) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } } } - [NativeName(NativeNameType.Func, "igLogSetNextTextDecoration")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogSetNextTextDecoration([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] byte* prefix, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] string suffix) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; - if (suffix != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(suffix); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -218928,38 +54950,27 @@ public static void LogSetNextTextDecoration([NativeName(NativeNameType.Param, "p byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - LogSetNextTextDecorationNative(prefix, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igLogSetNextTextDecoration")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogSetNextTextDecoration([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] ref byte prefix, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] ref byte suffix) - { - fixed (byte* pprefix = &prefix) + fixed (char* pglyphRanges = &glyphRanges) { - fixed (byte* psuffix = &suffix) + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, fontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) { - LogSetNextTextDecorationNative((byte*)pprefix, (byte*)psuffix); + Utils.Free(pStr0); } + return ret; } } - [NativeName(NativeNameType.Func, "igLogSetNextTextDecoration")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogSetNextTextDecoration([NativeName(NativeNameType.Param, "prefix")] [NativeName(NativeNameType.Type, "const char*")] string prefix, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] string suffix) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ref char glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; - if (prefix != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(prefix); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -218969,73 +54980,54 @@ public static void LogSetNextTextDecoration([NativeName(NativeNameType.Param, "p byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(prefix, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (suffix != null) + fixed (char* pglyphRanges = &glyphRanges) { - pStrSize1 = Utils.GetByteCountUTF8(suffix); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(suffix, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - LogSetNextTextDecorationNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginChildEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginChildEx")] - internal static extern byte BeginChildExNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] byte border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags); - - [NativeName(NativeNameType.Func, "igBeginChildEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChildEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { - byte ret = BeginChildExNative(name, id, sizeArg, border ? (byte)1 : (byte)0, flags); - return ret != 0; + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } } - [NativeName(NativeNameType.Func, "igBeginChildEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChildEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { - fixed (byte* pname = &name) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { - byte ret = BeginChildExNative((byte*)pname, id, sizeArg, border ? (byte)1 : (byte)0, flags); - return ret != 0; + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } } } - [NativeName(NativeNameType.Func, "igBeginChildEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginChildEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags flags) + public static ImFont* AddFontFromMemoryCompressedBase85TTF( ImFontAtlas* self, string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -219045,341 +55037,328 @@ public static bool BeginChildEx([NativeName(NativeNameType.Param, "name")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = BeginChildExNative(pStr0, id, sizeArg, border ? (byte)1 : (byte)0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImFontConfig* pfontCfg = &fontCfg) { - Utils.Free(pStr0); + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = AddFontFromMemoryCompressedBase85TTFNative(self, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } } - return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igOpenPopupEx")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igOpenPopupEx")] - internal static extern void OpenPopupExNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags); - - [NativeName(NativeNameType.Func, "igOpenPopupEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopupEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - OpenPopupExNative(id, popupFlags); - } + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_ClearInputData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearInputDataNative(ImFontAtlas* self); - [NativeName(NativeNameType.Func, "igOpenPopupEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void OpenPopupEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + public static void ClearInputData( ImFontAtlas* self) { - OpenPopupExNative(id, (ImGuiPopupFlags)(ImGuiPopupFlags.None)); + ClearInputDataNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igClosePopupToLevel")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igClosePopupToLevel")] - internal static extern void ClosePopupToLevelNative([NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "int")] int remaining, [NativeName(NativeNameType.Param, "restore_focus_to_window_under_popup")] [NativeName(NativeNameType.Type, "bool")] byte restoreFocusToWindowUnderPopup); + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_ClearTexData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearTexDataNative(ImFontAtlas* self); - [NativeName(NativeNameType.Func, "igClosePopupToLevel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClosePopupToLevel([NativeName(NativeNameType.Param, "remaining")] [NativeName(NativeNameType.Type, "int")] int remaining, [NativeName(NativeNameType.Param, "restore_focus_to_window_under_popup")] [NativeName(NativeNameType.Type, "bool")] bool restoreFocusToWindowUnderPopup) + public static void ClearTexData( ImFontAtlas* self) { - ClosePopupToLevelNative(remaining, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); + ClearTexDataNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igClosePopupsOverWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igClosePopupsOverWindow")] - internal static extern void ClosePopupsOverWindowNative([NativeName(NativeNameType.Param, "ref_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* refWindow, [NativeName(NativeNameType.Param, "restore_focus_to_window_under_popup")] [NativeName(NativeNameType.Type, "bool")] byte restoreFocusToWindowUnderPopup); - - [NativeName(NativeNameType.Func, "igClosePopupsOverWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClosePopupsOverWindow([NativeName(NativeNameType.Param, "ref_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* refWindow, [NativeName(NativeNameType.Param, "restore_focus_to_window_under_popup")] [NativeName(NativeNameType.Type, "bool")] bool restoreFocusToWindowUnderPopup) - { - ClosePopupsOverWindowNative(refWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); - } + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_ClearFonts")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearFontsNative(ImFontAtlas* self); - [NativeName(NativeNameType.Func, "igClosePopupsOverWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClosePopupsOverWindow([NativeName(NativeNameType.Param, "ref_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow refWindow, [NativeName(NativeNameType.Param, "restore_focus_to_window_under_popup")] [NativeName(NativeNameType.Type, "bool")] bool restoreFocusToWindowUnderPopup) + public static void ClearFonts( ImFontAtlas* self) { - fixed (ImGuiWindow* prefWindow = &refWindow) - { - ClosePopupsOverWindowNative((ImGuiWindow*)prefWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); - } + ClearFontsNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igClosePopupsExceptModals")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igClosePopupsExceptModals")] - internal static extern void ClosePopupsExceptModalsNative(); - - [NativeName(NativeNameType.Func, "igClosePopupsExceptModals")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClosePopupsExceptModals() - { - ClosePopupsExceptModalsNative(); - } + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearNative(ImFontAtlas* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igIsPopupOpen_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsPopupOpen_ID")] - internal static extern byte IsPopupOpenNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags); - - [NativeName(NativeNameType.Func, "igIsPopupOpen_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsPopupOpen([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "popup_flags")] [NativeName(NativeNameType.Type, "ImGuiPopupFlags")] ImGuiPopupFlags popupFlags) - { - byte ret = IsPopupOpenNative(id, popupFlags); - return ret != 0; - } + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_Build")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BuildNative(ImFontAtlas* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBeginPopupEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginPopupEx")] - internal static extern byte BeginPopupExNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "extra_flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags extraFlags); + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetTexDataAsAlpha8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetTexDataAsAlpha8Native(ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel); - [NativeName(NativeNameType.Func, "igBeginPopupEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginPopupEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "extra_flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags extraFlags) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { - byte ret = BeginPopupExNative(id, extraFlags); - return ret != 0; + GetTexDataAsAlpha8Native(self, outPixels, outWidth, outHeight, outBytesPerPixel); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginTooltipEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginTooltipEx")] - internal static extern byte BeginTooltipExNative([NativeName(NativeNameType.Param, "tooltip_flags")] [NativeName(NativeNameType.Type, "ImGuiTooltipFlags")] ImGuiTooltipFlags tooltipFlags, [NativeName(NativeNameType.Param, "extra_window_flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags extraWindowFlags); - - [NativeName(NativeNameType.Func, "igBeginTooltipEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTooltipEx([NativeName(NativeNameType.Param, "tooltip_flags")] [NativeName(NativeNameType.Type, "ImGuiTooltipFlags")] ImGuiTooltipFlags tooltipFlags, [NativeName(NativeNameType.Param, "extra_window_flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags extraWindowFlags) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight) { - byte ret = BeginTooltipExNative(tooltipFlags, extraWindowFlags); - return ret != 0; + GetTexDataAsAlpha8Native(self, outPixels, outWidth, outHeight, (int*)(default)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetPopupAllowedExtentRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetPopupAllowedExtentRect")] - internal static extern void GetPopupAllowedExtentRectNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } - [NativeName(NativeNameType.Func, "igGetPopupAllowedExtentRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetPopupAllowedExtentRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight) { - GetPopupAllowedExtentRectNative(pOut, window); + fixed (byte** poutPixels = &outPixels) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } } - [NativeName(NativeNameType.Func, "igGetPopupAllowedExtentRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetPopupAllowedExtentRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { - fixed (ImRect* ppOut = &pOut) + fixed (int* poutWidth = &outWidth) { - GetPopupAllowedExtentRectNative((ImRect*)ppOut, window); + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } } - [NativeName(NativeNameType.Func, "igGetPopupAllowedExtentRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetPopupAllowedExtentRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight) { - fixed (ImGuiWindow* pwindow = &window) + fixed (int* poutWidth = &outWidth) { - GetPopupAllowedExtentRectNative(pOut, (ImGuiWindow*)pwindow); + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, outHeight, (int*)(default)); } } - [NativeName(NativeNameType.Func, "igGetPopupAllowedExtentRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetPopupAllowedExtentRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { - fixed (ImRect* ppOut = &pOut) + fixed (byte** poutPixels = &outPixels) { - fixed (ImGuiWindow* pwindow = &window) + fixed (int* poutWidth = &outWidth) { - GetPopupAllowedExtentRectNative((ImRect*)ppOut, (ImGuiWindow*)pwindow); + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetTopMostPopupModal")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetTopMostPopupModal")] - internal static extern ImGuiWindow* GetTopMostPopupModalNative(); + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } - [NativeName(NativeNameType.Func, "igGetTopMostPopupModal")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* GetTopMostPopupModal() + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { - ImGuiWindow* ret = GetTopMostPopupModalNative(); - return ret; + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetTopMostAndVisiblePopupModal")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetTopMostAndVisiblePopupModal")] - internal static extern ImGuiWindow* GetTopMostAndVisiblePopupModalNative(); + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } - [NativeName(NativeNameType.Func, "igGetTopMostAndVisiblePopupModal")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* GetTopMostAndVisiblePopupModal() + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { - ImGuiWindow* ret = GetTopMostAndVisiblePopupModalNative(); - return ret; + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFindBlockingModal")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindBlockingModal")] - internal static extern ImGuiWindow* FindBlockingModalNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } - [NativeName(NativeNameType.Func, "igFindBlockingModal")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* FindBlockingModal([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { - ImGuiWindow* ret = FindBlockingModalNative(window); - return ret; + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } } - [NativeName(NativeNameType.Func, "igFindBlockingModal")] - [return: NativeName(NativeNameType.Type, "ImGuiWindow*")] - public static ImGuiWindow* FindBlockingModal([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight) { - fixed (ImGuiWindow* pwindow = &window) + fixed (int* poutWidth = &outWidth) { - ImGuiWindow* ret = FindBlockingModalNative((ImGuiWindow*)pwindow); - return ret; + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFindBestWindowPosForPopup")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindBestWindowPosForPopup")] - internal static extern void FindBestWindowPosForPopupNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } - [NativeName(NativeNameType.Func, "igFindBestWindowPosForPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FindBestWindowPosForPopup([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight) { - FindBestWindowPosForPopupNative(pOut, window); + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } } - [NativeName(NativeNameType.Func, "igFindBestWindowPosForPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FindBestWindowPosForPopup([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { - fixed (Vector2* ppOut = &pOut) + fixed (int* poutBytesPerPixel = &outBytesPerPixel) { - FindBestWindowPosForPopupNative((Vector2*)ppOut, window); + GetTexDataAsAlpha8Native(self, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); } } - [NativeName(NativeNameType.Func, "igFindBestWindowPosForPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FindBestWindowPosForPopup([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { - fixed (ImGuiWindow* pwindow = &window) + fixed (byte** poutPixels = &outPixels) { - FindBestWindowPosForPopupNative(pOut, (ImGuiWindow*)pwindow); + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } } } - [NativeName(NativeNameType.Func, "igFindBestWindowPosForPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FindBestWindowPosForPopup([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { - fixed (Vector2* ppOut = &pOut) + fixed (int* poutWidth = &outWidth) { - fixed (ImGuiWindow* pwindow = &window) + fixed (int* poutBytesPerPixel = &outBytesPerPixel) { - FindBestWindowPosForPopupNative((Vector2*)ppOut, (ImGuiWindow*)pwindow); + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFindBestWindowPosForPopupEx")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindBestWindowPosForPopupEx")] - internal static extern void FindBestWindowPosForPopupExNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 refPos, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "last_dir")] [NativeName(NativeNameType.Type, "ImGuiDir*")] ImGuiDir* lastDir, [NativeName(NativeNameType.Param, "r_outer")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rOuter, [NativeName(NativeNameType.Param, "r_avoid")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rAvoid, [NativeName(NativeNameType.Param, "policy")] [NativeName(NativeNameType.Type, "ImGuiPopupPositionPolicy")] ImGuiPopupPositionPolicy policy); + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } - [NativeName(NativeNameType.Func, "igFindBestWindowPosForPopupEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FindBestWindowPosForPopupEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 refPos, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "last_dir")] [NativeName(NativeNameType.Type, "ImGuiDir*")] ImGuiDir* lastDir, [NativeName(NativeNameType.Param, "r_outer")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rOuter, [NativeName(NativeNameType.Param, "r_avoid")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rAvoid, [NativeName(NativeNameType.Param, "policy")] [NativeName(NativeNameType.Type, "ImGuiPopupPositionPolicy")] ImGuiPopupPositionPolicy policy) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { - FindBestWindowPosForPopupExNative(pOut, refPos, size, lastDir, rOuter, rAvoid, policy); + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } } - [NativeName(NativeNameType.Func, "igFindBestWindowPosForPopupEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FindBestWindowPosForPopupEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 refPos, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "last_dir")] [NativeName(NativeNameType.Type, "ImGuiDir*")] ImGuiDir* lastDir, [NativeName(NativeNameType.Param, "r_outer")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rOuter, [NativeName(NativeNameType.Param, "r_avoid")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rAvoid, [NativeName(NativeNameType.Param, "policy")] [NativeName(NativeNameType.Type, "ImGuiPopupPositionPolicy")] ImGuiPopupPositionPolicy policy) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { - fixed (Vector2* ppOut = &pOut) + fixed (byte** poutPixels = &outPixels) { - FindBestWindowPosForPopupExNative((Vector2*)ppOut, refPos, size, lastDir, rOuter, rAvoid, policy); + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } } } - [NativeName(NativeNameType.Func, "igFindBestWindowPosForPopupEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FindBestWindowPosForPopupEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 refPos, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "last_dir")] [NativeName(NativeNameType.Type, "ImGuiDir*")] ref ImGuiDir lastDir, [NativeName(NativeNameType.Param, "r_outer")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rOuter, [NativeName(NativeNameType.Param, "r_avoid")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rAvoid, [NativeName(NativeNameType.Param, "policy")] [NativeName(NativeNameType.Type, "ImGuiPopupPositionPolicy")] ImGuiPopupPositionPolicy policy) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { - fixed (ImGuiDir* plastDir = &lastDir) + fixed (int* poutWidth = &outWidth) { - FindBestWindowPosForPopupExNative(pOut, refPos, size, (ImGuiDir*)plastDir, rOuter, rAvoid, policy); + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } } } - [NativeName(NativeNameType.Func, "igFindBestWindowPosForPopupEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FindBestWindowPosForPopupEx([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "ref_pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 refPos, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "last_dir")] [NativeName(NativeNameType.Type, "ImGuiDir*")] ref ImGuiDir lastDir, [NativeName(NativeNameType.Param, "r_outer")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rOuter, [NativeName(NativeNameType.Param, "r_avoid")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rAvoid, [NativeName(NativeNameType.Param, "policy")] [NativeName(NativeNameType.Type, "ImGuiPopupPositionPolicy")] ImGuiPopupPositionPolicy policy) + public static void GetTexDataAsAlpha8( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { - fixed (Vector2* ppOut = &pOut) + fixed (byte** poutPixels = &outPixels) { - fixed (ImGuiDir* plastDir = &lastDir) + fixed (int* poutWidth = &outWidth) { - FindBestWindowPosForPopupExNative((Vector2*)ppOut, refPos, size, (ImGuiDir*)plastDir, rOuter, rAvoid, policy); + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsAlpha8Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } } } } @@ -219387,1057 +55366,938 @@ public static void FindBestWindowPosForPopupEx([NativeName(NativeNameType.Param, /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBeginViewportSideBar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginViewportSideBar")] - internal static extern byte BeginViewportSideBarNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "window_flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags windowFlags); + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetTexDataAsRGBA32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetTexDataAsRGBA32Native(ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel); - [NativeName(NativeNameType.Func, "igBeginViewportSideBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginViewportSideBar([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "window_flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags windowFlags) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { - byte ret = BeginViewportSideBarNative(name, viewport, dir, size, windowFlags); - return ret != 0; + GetTexDataAsRGBA32Native(self, outPixels, outWidth, outHeight, outBytesPerPixel); } - [NativeName(NativeNameType.Func, "igBeginViewportSideBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginViewportSideBar([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "window_flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags windowFlags) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight) { - fixed (byte* pname = &name) - { - byte ret = BeginViewportSideBarNative((byte*)pname, viewport, dir, size, windowFlags); - return ret != 0; - } + GetTexDataAsRGBA32Native(self, outPixels, outWidth, outHeight, (int*)(default)); } - [NativeName(NativeNameType.Func, "igBeginViewportSideBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginViewportSideBar([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ImGuiViewport* viewport, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "window_flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags windowFlags) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) + fixed (byte** poutPixels = &outPixels) { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); } - byte ret = BeginViewportSideBarNative(pStr0, viewport, dir, size, windowFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) { - Utils.Free(pStr0); + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginViewportSideBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginViewportSideBar([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport viewport, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "window_flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags windowFlags) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { - fixed (ImGuiViewport* pviewport = &viewport) + fixed (int* poutWidth = &outWidth) { - byte ret = BeginViewportSideBarNative(name, (ImGuiViewport*)pviewport, dir, size, windowFlags); - return ret != 0; + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } } - [NativeName(NativeNameType.Func, "igBeginViewportSideBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginViewportSideBar([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport viewport, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "window_flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags windowFlags) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight) { - fixed (byte* pname = &name) + fixed (int* poutWidth = &outWidth) { - fixed (ImGuiViewport* pviewport = &viewport) - { - byte ret = BeginViewportSideBarNative((byte*)pname, (ImGuiViewport*)pviewport, dir, size, windowFlags); - return ret != 0; - } + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, outHeight, (int*)(default)); } } - [NativeName(NativeNameType.Func, "igBeginViewportSideBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginViewportSideBar([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewport*")] ref ImGuiViewport viewport, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "window_flags")] [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] ImGuiWindowFlags windowFlags) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (name != null) + fixed (byte** poutPixels = &outPixels) { - pStrSize0 = Utils.GetByteCountUTF8(name); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* poutWidth = &outWidth) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (ImGuiViewport* pviewport = &viewport) + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (byte** poutPixels = &outPixels) { - byte ret = BeginViewportSideBarNative(pStr0, (ImGuiViewport*)pviewport, dir, size, windowFlags); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (int* poutWidth = &outWidth) { - Utils.Free(pStr0); + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); } - return ret != 0; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginMenuEx")] - internal static extern byte BeginMenuExNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] byte enabled); - - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - byte ret = BeginMenuExNative(label, icon, enabled ? (byte)1 : (byte)0); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { - byte ret = BeginMenuExNative(label, icon, (byte)(1)); - return ret != 0; + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight) { - fixed (byte* plabel = &label) + fixed (int* poutHeight = &outHeight) { - byte ret = BeginMenuExNative((byte*)plabel, icon, enabled ? (byte)1 : (byte)0); - return ret != 0; + GetTexDataAsRGBA32Native(self, outPixels, outWidth, (int*)poutHeight, (int*)(default)); } } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { - fixed (byte* plabel = &label) + fixed (byte** poutPixels = &outPixels) { - byte ret = BeginMenuExNative((byte*)plabel, icon, (byte)(1)); - return ret != 0; + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } } } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte** poutPixels = &outPixels) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* poutHeight = &outHeight) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuExNative(pStr0, icon, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* poutWidth = &outWidth) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* poutHeight = &outHeight) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuExNative(pStr0, icon, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight) { - fixed (byte* picon = &icon) + fixed (int* poutWidth = &outWidth) { - byte ret = BeginMenuExNative(label, (byte*)picon, enabled ? (byte)1 : (byte)0); - return ret != 0; + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } } } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { - fixed (byte* picon = &icon) + fixed (byte** poutPixels = &outPixels) { - byte ret = BeginMenuExNative(label, (byte*)picon, (byte)(1)); - return ret != 0; + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } } } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) + fixed (byte** poutPixels = &outPixels) { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* poutWidth = &outWidth) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (int* poutHeight = &outHeight) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = BeginMenuExNative(label, pStr0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) { - Utils.Free(pStr0); + GetTexDataAsRGBA32Native(self, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) + fixed (byte** poutPixels = &outPixels) { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* poutBytesPerPixel = &outBytesPerPixel) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = BeginMenuExNative(label, pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { - fixed (byte* plabel = &label) + fixed (int* poutWidth = &outWidth) { - fixed (byte* picon = &icon) + fixed (int* poutBytesPerPixel = &outBytesPerPixel) { - byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, enabled ? (byte)1 : (byte)0); - return ret != 0; + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); } } } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { - fixed (byte* plabel = &label) + fixed (byte** poutPixels = &outPixels) { - fixed (byte* picon = &icon) + fixed (int* poutWidth = &outWidth) { - byte ret = BeginMenuExNative((byte*)plabel, (byte*)picon, (byte)(1)); - return ret != 0; + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } } } } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* poutHeight = &outHeight) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* poutBytesPerPixel = &outBytesPerPixel) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + GetTexDataAsRGBA32Native(self, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (int* poutHeight = &outHeight) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = BeginMenuExNative(pStr0, pStr1, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igBeginMenuEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginMenuEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon) + public static void GetTexDataAsRGBA32( ImFontAtlas* self, byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (int* poutWidth = &outWidth) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (int* poutHeight = &outHeight) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) + } + + public static void GetTexDataAsRGBA32( ImFontAtlas* self, ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (byte** poutPixels = &outPixels) { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (int* poutWidth = &outWidth) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + GetTexDataAsRGBA32Native(self, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = BeginMenuExNative(pStr0, pStr1, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igMenuItemEx")] - internal static extern byte MenuItemExNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] byte selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] byte enabled); + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_IsBuilt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsBuiltNative(ImFontAtlas* self); - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static bool IsBuilt( ImFontAtlas* self) { - byte ret = MenuItemExNative(label, icon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + byte ret = IsBuiltNative(self); return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_SetTexID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetTexIDNative(ImFontAtlas* self, ImTextureID id); + + public static void SetTexID( ImFontAtlas* self, ImTextureID id) { - byte ret = MenuItemExNative(label, icon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; + SetTexIDNative(self, id); } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesDefault")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesDefaultNative(ImFontAtlas* self); + + public static char* GetGlyphRangesDefault( ImFontAtlas* self) { - byte ret = MenuItemExNative(label, icon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; + char* ret = GetGlyphRangesDefaultNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesGreek")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesGreekNative(ImFontAtlas* self); + + public static char* GetGlyphRangesGreek( ImFontAtlas* self) { - byte ret = MenuItemExNative(label, icon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; + char* ret = GetGlyphRangesGreekNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesKorean")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesKoreanNative(ImFontAtlas* self); + + public static char* GetGlyphRangesKorean( ImFontAtlas* self) { - byte ret = MenuItemExNative(label, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; + char* ret = GetGlyphRangesKoreanNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesJapanese")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesJapaneseNative(ImFontAtlas* self); + + public static char* GetGlyphRangesJapanese( ImFontAtlas* self) { - byte ret = MenuItemExNative(label, icon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; + char* ret = GetGlyphRangesJapaneseNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesChineseFull")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesChineseFullNative(ImFontAtlas* self); + + public static char* GetGlyphRangesChineseFull( ImFontAtlas* self) { - fixed (byte* plabel = &label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } + char* ret = GetGlyphRangesChineseFullNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesChineseSimplifiedCommonNative(ImFontAtlas* self); + + public static char* GetGlyphRangesChineseSimplifiedCommon( ImFontAtlas* self) { - fixed (byte* plabel = &label) - { - byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } + char* ret = GetGlyphRangesChineseSimplifiedCommonNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesCyrillic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesCyrillicNative(ImFontAtlas* self); + + public static char* GetGlyphRangesCyrillic( ImFontAtlas* self) { - fixed (byte* plabel = &label) + char* ret = GetGlyphRangesCyrillicNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesThai")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesThaiNative(ImFontAtlas* self); + + public static char* GetGlyphRangesThai( ImFontAtlas* self) + { + char* ret = GetGlyphRangesThaiNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetGlyphRangesVietnamese")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* GetGlyphRangesVietnameseNative(ImFontAtlas* self); + + public static char* GetGlyphRangesVietnamese( ImFontAtlas* self) + { + char* ret = GetGlyphRangesVietnameseNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddCustomRectRegular")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int AddCustomRectRegularNative(ImFontAtlas* self, int width, int height); + + public static int AddCustomRectRegular( ImFontAtlas* self, int width, int height) + { + int ret = AddCustomRectRegularNative(self, width, height); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_AddCustomRectFontGlyph")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int AddCustomRectFontGlyphNative(ImFontAtlas* self, ImFont* font, char id, int width, int height, float advanceX, Vector2 offset); + + public static int AddCustomRectFontGlyph( ImFontAtlas* self, ImFont* font, char id, int width, int height, float advanceX, Vector2 offset) + { + int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, offset); + return ret; + } + + public static int AddCustomRectFontGlyph( ImFontAtlas* self, ImFont* font, char id, int width, int height, float advanceX) + { + int ret = AddCustomRectFontGlyphNative(self, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + + public static int AddCustomRectFontGlyph( ImFontAtlas* self, ref ImFont font, char id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFont* pfont = &font) { - byte ret = MenuItemExNative((byte*)plabel, icon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; + int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, offset); + return ret; } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon) + public static int AddCustomRectFontGlyph( ImFontAtlas* self, ref ImFont font, char id, int width, int height, float advanceX) { - fixed (byte* plabel = &label) + fixed (ImFont* pfont = &font) { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; + int ret = AddCustomRectFontGlyphNative(self, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetCustomRectByIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontAtlasCustomRect* GetCustomRectByIndexNative(ImFontAtlas* self, int index); + + public static ImFontAtlasCustomRect* GetCustomRectByIndex( ImFontAtlas* self, int index) { - fixed (byte* plabel = &label) + ImFontAtlasCustomRect* ret = GetCustomRectByIndexNative(self, index); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_CalcCustomRectUV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CalcCustomRectUVNative(ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax); + + public static void CalcCustomRectUV( ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) + { + CalcCustomRectUVNative(self, rect, outUvMin, outUvMax); + } + + public static void CalcCustomRectUV( ImFontAtlas* self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlasCustomRect* prect = &rect) { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcCustomRectUV( ImFontAtlas* self, ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) { - fixed (byte* plabel = &label) + fixed (Vector2* poutUvMin = &outUvMin) { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; + CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, outUvMax); } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcCustomRectUV( ImFontAtlas* self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (ImFontAtlasCustomRect* prect = &rect) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* poutUvMin = &outUvMin) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = MenuItemExNative(pStr0, icon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void CalcCustomRectUV( ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (Vector2* poutUvMax = &outUvMax) { - Utils.Free(pStr0); + CalcCustomRectUVNative(self, rect, outUvMin, (Vector2*)poutUvMax); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcCustomRectUV( ImFontAtlas* self, ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (ImFontAtlasCustomRect* prect = &rect) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* poutUvMax = &outUvMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = MenuItemExNative(pStr0, icon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut) + public static void CalcCustomRectUV( ImFontAtlas* self, ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector2* poutUvMin = &outUvMin) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* poutUvMax = &outUvMax) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + CalcCustomRectUVNative(self, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon) + public static void CalcCustomRectUV( ImFontAtlas* self, ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (ImFontAtlasCustomRect* prect = &rect) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* poutUvMin = &outUvMin) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (Vector2* poutUvMax = &outUvMax) + { + CalcCustomRectUVNative(self, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFontAtlas_GetMouseCursorTexData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte GetMouseCursorTexDataNative(ImFontAtlas* self, int cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill); + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, outUvFill); return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector2* poutOffset = &outOffset) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill); + return ret != 0; } - byte ret = MenuItemExNative(pStr0, icon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill) + { + fixed (Vector2* poutSize = &outSize) { - Utils.Free(pStr0); + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill); + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (Vector2* poutOffset = &outOffset) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* poutSize = &outSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(pStr0, icon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill); + return ret != 0; + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill) { - fixed (byte* picon = &icon) + fixed (Vector2* poutUvBorder = &outUvBorder) { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill); return ret != 0; } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill) { - fixed (byte* picon = &icon) + fixed (Vector2* poutOffset = &outOffset) { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill) { - fixed (byte* picon = &icon) + fixed (Vector2* poutSize = &outSize) { - byte ret = MenuItemExNative(label, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill) { - fixed (byte* picon = &icon) + fixed (Vector2* poutOffset = &outOffset) { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill); + return ret != 0; + } + } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill) { - fixed (byte* picon = &icon) + fixed (Vector2* poutUvFill = &outUvFill) { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill); return ret != 0; } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill) { - fixed (byte* picon = &icon) + fixed (Vector2* poutOffset = &outOffset) { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) + fixed (Vector2* poutSize = &outSize) { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* poutUvFill = &outUvFill) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) + fixed (Vector2* poutOffset = &outOffset) { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* poutSize = &outSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) + fixed (Vector2* poutUvBorder = &outUvBorder) { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* poutUvFill = &outUvFill) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = MenuItemExNative(label, pStr0, shortcut, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) + fixed (Vector2* poutOffset = &outOffset) { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* poutUvBorder = &outUvBorder) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = MenuItemExNative(label, pStr0, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) + fixed (Vector2* poutSize = &outSize) { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* poutUvBorder = &outUvBorder) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = MenuItemExNative(label, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static bool GetMouseCursorTexData( ImFontAtlas* self, int cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) + { + fixed (Vector2* poutOffset = &outOffset) { - Utils.Free(pStr0); + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = GetMouseCursorTexDataNative(self, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_ImFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* ImFontNative(); + + public static ImFont* ImFont() + { + ImFont* ret = ImFontNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImFont* self); + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_FindGlyph")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontGlyph* FindGlyphNative(ImFont* self, char c); + + public static ImFontGlyph* FindGlyph( ImFont* self, char c) + { + ImFontGlyph* ret = FindGlyphNative(self, c); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_FindGlyphNoFallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontGlyph* FindGlyphNoFallbackNative(ImFont* self, char c); + + public static ImFontGlyph* FindGlyphNoFallback( ImFont* self, char c) + { + ImFontGlyph* ret = FindGlyphNoFallbackNative(self, c); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_GetCharAdvance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetCharAdvanceNative(ImFont* self, char c); + + public static float GetCharAdvance( ImFont* self, char c) + { + float ret = GetCharAdvanceNative(self, c); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_IsLoaded")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsLoadedNative(ImFont* self); + + public static bool IsLoaded( ImFont* self) + { + byte ret = IsLoadedNative(self); return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_GetDebugName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* GetDebugNameNative(ImFont* self); + + public static byte* GetDebugName( ImFont* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) + byte* ret = GetDebugNameNative(self); + return ret; + } + + public static string GetDebugNameS( ImFont* self) + { + string ret = Utils.DecodeStringUTF8(GetDebugNameNative(self)); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_CalcTextSizeA")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CalcTextSizeANative(Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining); + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, remaining); } - byte ret = MenuItemExNative(label, pStr0, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) { - Utils.Free(pStr0); + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)(default)); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin) { - fixed (byte* plabel = &label) + fixed (ImFont* pself = &self) { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)(default)); } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte** remaining) { - fixed (byte* plabel = &label) + fixed (ImFont* pself = &self) { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), remaining); } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) { - fixed (byte* plabel = &label) + fixed (byte* ptextBegin = &textBegin) { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, shortcut, (byte)(0), (byte)(1)); - return ret != 0; - } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) { - fixed (byte* plabel = &label) + fixed (byte* ptextBegin = &textBegin) { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), (byte)(0), (byte)(1)); - return ret != 0; - } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin) { - fixed (byte* plabel = &label) + fixed (byte* ptextBegin = &textBegin) { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; - } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) { - fixed (byte* plabel = &label) + fixed (byte* ptextBegin = &textBegin) { - fixed (byte* picon = &icon) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -220447,47 +56307,23 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -220497,47 +56333,23 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, shortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] byte* shortcut) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -220547,47 +56359,23 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) - { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, shortcut, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -220597,180 +56385,199 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, remaining); } - else + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)(default)); } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin) + { + fixed (ImFont* pself = &self) { - Utils.Free(pStr1); + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)(default)); + } } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) { - Utils.Free(pStr0); + fixed (byte* ptextBegin = &textBegin) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), remaining); + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, byte** remaining) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (ImFont* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd) + { + fixed (ImFont* pself = &self) { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (ImFont* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte** remaining) + { + fixed (ImFont* pself = &self) { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, (byte*)(default), selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) { - fixed (byte* pshortcut = &shortcut) + fixed (byte* ptextEnd = &textEnd) { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) { - fixed (byte* pshortcut = &shortcut) + fixed (byte* ptextEnd = &textEnd) { - byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) { byte* pStr0 = null; int pStrSize0 = 0; - if (shortcut != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -220780,26 +56587,23 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = MenuItemExNative(label, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (shortcut != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -220809,97 +56613,125 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = MenuItemExNative(label, icon, pStr0, selected ? (byte)1 : (byte)0, (byte)(1)); + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, byte** remaining) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (shortcut != null) + fixed (ImFont* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ptextEnd = &textEnd) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, remaining); } - else + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)(default)); } - int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = MenuItemExNative(label, icon, pStr0, (byte)(0), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) { - Utils.Free(pStr0); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, remaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd) { - fixed (byte* plabel = &label) + fixed (ImFont* pself = &self) { - fixed (byte* pshortcut = &shortcut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) { - fixed (byte* plabel = &label) + fixed (byte* ptextBegin = &textBegin) { - fixed (byte* pshortcut = &shortcut) + fixed (byte* ptextEnd = &textEnd) { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) { - fixed (byte* plabel = &label) + fixed (byte* ptextBegin = &textBegin) { - fixed (byte* pshortcut = &shortcut) + fixed (byte* ptextEnd = &textEnd) { - byte ret = MenuItemExNative((byte*)plabel, icon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -220909,14 +56741,14 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (shortcut != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -220926,10 +56758,10 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = MenuItemExNative(pStr0, icon, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -220938,18 +56770,15 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -220959,14 +56788,14 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (shortcut != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -220976,10 +56805,10 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = MenuItemExNative(pStr0, icon, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -220988,160 +56817,203 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] byte* icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, byte** remaining) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (ImFont* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ptextBegin = &textBegin) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, remaining); + } } - else + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextBegin = &textBegin) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + fixed (byte* ptextEnd = &textEnd) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)(default)); + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, byte** remaining) + { + fixed (ImFont* pself = &self) { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, remaining); if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte ret = MenuItemExNative(pStr0, icon, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd) + { + fixed (ImFont* pself = &self) { - Utils.Free(pStr1); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) + { + fixed (byte** premaining = &remaining) { - Utils.Free(pStr0); + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) { - fixed (byte* picon = &icon) + fixed (byte** premaining = &remaining) { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, byte* textEnd, ref byte* remaining) { - fixed (byte* picon = &icon) + fixed (ImFont* pself = &self) { - fixed (byte* pshortcut = &shortcut) + fixed (byte** premaining = &remaining) { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, textEnd, (byte**)premaining); } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte* remaining) { - fixed (byte* picon = &icon) + fixed (ImFont* pself = &self) { - fixed (byte* pshortcut = &shortcut) + fixed (byte** premaining = &remaining) { - byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)(default), (byte**)premaining); } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (icon != null) + fixed (byte* ptextBegin = &textBegin) { - pStrSize0 = Utils.GetByteCountUTF8(icon); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (byte** premaining = &remaining) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (byte** premaining = &remaining) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(label, pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) { byte* pStr0 = null; int pStrSize0 = 0; - if (icon != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(icon); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -221151,47 +57023,26 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) + fixed (byte** premaining = &remaining) { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(label, pStr0, pStr1, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) { byte* pStr0 = null; int pStrSize0 = 0; - if (icon != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(icon); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -221201,169 +57052,129 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (shortcut != null) - { - pStrSize1 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = MenuItemExNative(label, pStr0, pStr1, (byte)(0), (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) - { - fixed (byte* plabel = &label) + fixed (byte** premaining = &remaining) { - fixed (byte* picon = &icon) + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pshortcut = &shortcut) - { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - return ret != 0; - } + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, byte* textEnd, ref byte* remaining) { - fixed (byte* plabel = &label) + fixed (ImFont* pself = &self) { - fixed (byte* picon = &icon) + fixed (byte* ptextBegin = &textBegin) { - fixed (byte* pshortcut = &shortcut) + fixed (byte** premaining = &remaining) { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, (byte)(1)); - return ret != 0; + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, textEnd, (byte**)premaining); } } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] ref byte icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] ref byte shortcut) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte* remaining) { - fixed (byte* plabel = &label) + fixed (ImFont* pself = &self) { - fixed (byte* picon = &icon) + fixed (byte* ptextBegin = &textBegin) { - fixed (byte* pshortcut = &shortcut) + fixed (byte** premaining = &remaining) { - byte ret = MenuItemExNative((byte*)plabel, (byte*)picon, (byte*)pshortcut, (byte)(0), (byte)(1)); - return ret != 0; + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)(default), (byte**)premaining); } } } } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected, [NativeName(NativeNameType.Param, "enabled")] [NativeName(NativeNameType.Type, "bool")] bool enabled) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, byte* textEnd, ref byte* remaining) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (ImFont* pself = &self) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + fixed (byte** premaining = &remaining) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, textEnd, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, ref byte* remaining) + { + fixed (ImFont* pself = &self) { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + fixed (byte** premaining = &remaining) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, (byte*)(default), (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (shortcut != null) + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (byte* ptextEnd = &textEnd) { - pStrSize2 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else + fixed (byte** premaining = &remaining) { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); } - int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, pStr2, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut, [NativeName(NativeNameType.Param, "selected")] [NativeName(NativeNameType.Type, "bool")] bool selected) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -221373,68 +57184,86 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (icon != null) + fixed (byte** premaining = &remaining) { - pStrSize1 = Utils.GetByteCountUTF8(icon); - if (pStrSize1 >= Utils.MaxStackallocSize) + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + Utils.Free(pStr0); } - else + } + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) + { + fixed (byte* ptextEnd = &textEnd) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, (byte*)ptextEnd, (byte**)premaining); + } } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (shortcut != null) + } + + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, byte* textBegin, string textEnd, ref byte* remaining) + { + fixed (ImFont* pself = &self) { - pStrSize2 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize2 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + fixed (byte** premaining = &remaining) { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, textBegin, pStr0, (byte**)premaining); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, pStr2, selected ? (byte)1 : (byte)0, (byte)(1)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) + { + fixed (byte* ptextBegin = &textBegin) { - Utils.Free(pStr0); + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igMenuItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "icon")] [NativeName(NativeNameType.Type, "const char*")] string icon, [NativeName(NativeNameType.Param, "shortcut")] [NativeName(NativeNameType.Type, "const char*")] string shortcut) + public static void CalcTextSizeA( Vector2* pOut, ImFont* self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textBegin != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textBegin); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -221444,14 +57273,14 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (icon != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(icon); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -221461,587 +57290,164 @@ public static bool MenuItemEx([NativeName(NativeNameType.Param, "label")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(icon, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (shortcut != null) + fixed (byte** premaining = &remaining) { - pStrSize2 = Utils.GetByteCountUTF8(shortcut); - if (pStrSize2 >= Utils.MaxStackallocSize) + CalcTextSizeANative(pOut, self, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); + if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + Utils.Free(pStr0); } - int pStrOffset2 = Utils.EncodeStringUTF8(shortcut, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = MenuItemExNative(pStr0, pStr1, pStr2, (byte)(0), (byte)(1)); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginComboPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginComboPopup")] - internal static extern byte BeginComboPopupNative([NativeName(NativeNameType.Param, "popup_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int popupId, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiComboFlags")] ImGuiComboFlags flags); - - [NativeName(NativeNameType.Func, "igBeginComboPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginComboPopup([NativeName(NativeNameType.Param, "popup_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int popupId, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiComboFlags")] ImGuiComboFlags flags) - { - byte ret = BeginComboPopupNative(popupId, bb, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginComboPreview")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginComboPreview")] - internal static extern byte BeginComboPreviewNative(); - - [NativeName(NativeNameType.Func, "igBeginComboPreview")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginComboPreview() - { - byte ret = BeginComboPreviewNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igEndComboPreview")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndComboPreview")] - internal static extern void EndComboPreviewNative(); - - [NativeName(NativeNameType.Func, "igEndComboPreview")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndComboPreview() - { - EndComboPreviewNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNavInitWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNavInitWindow")] - internal static extern void NavInitWindowNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "force_reinit")] [NativeName(NativeNameType.Type, "bool")] byte forceReinit); - - [NativeName(NativeNameType.Func, "igNavInitWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavInitWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "force_reinit")] [NativeName(NativeNameType.Type, "bool")] bool forceReinit) - { - NavInitWindowNative(window, forceReinit ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "igNavInitWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavInitWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "force_reinit")] [NativeName(NativeNameType.Type, "bool")] bool forceReinit) - { - fixed (ImGuiWindow* pwindow = &window) - { - NavInitWindowNative((ImGuiWindow*)pwindow, forceReinit ? (byte)1 : (byte)0); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNavInitRequestApplyResult")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNavInitRequestApplyResult")] - internal static extern void NavInitRequestApplyResultNative(); - - [NativeName(NativeNameType.Func, "igNavInitRequestApplyResult")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavInitRequestApplyResult() - { - NavInitRequestApplyResultNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNavMoveRequestButNoResultYet")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNavMoveRequestButNoResultYet")] - internal static extern byte NavMoveRequestButNoResultYetNative(); - - [NativeName(NativeNameType.Func, "igNavMoveRequestButNoResultYet")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool NavMoveRequestButNoResultYet() - { - byte ret = NavMoveRequestButNoResultYetNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNavMoveRequestSubmit")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNavMoveRequestSubmit")] - internal static extern void NavMoveRequestSubmitNative([NativeName(NativeNameType.Param, "move_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir moveDir, [NativeName(NativeNameType.Param, "clip_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir clipDir, [NativeName(NativeNameType.Param, "move_flags")] [NativeName(NativeNameType.Type, "ImGuiNavMoveFlags")] ImGuiNavMoveFlags moveFlags, [NativeName(NativeNameType.Param, "scroll_flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags scrollFlags); - - [NativeName(NativeNameType.Func, "igNavMoveRequestSubmit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavMoveRequestSubmit([NativeName(NativeNameType.Param, "move_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir moveDir, [NativeName(NativeNameType.Param, "clip_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir clipDir, [NativeName(NativeNameType.Param, "move_flags")] [NativeName(NativeNameType.Type, "ImGuiNavMoveFlags")] ImGuiNavMoveFlags moveFlags, [NativeName(NativeNameType.Param, "scroll_flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags scrollFlags) - { - NavMoveRequestSubmitNative(moveDir, clipDir, moveFlags, scrollFlags); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNavMoveRequestForward")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNavMoveRequestForward")] - internal static extern void NavMoveRequestForwardNative([NativeName(NativeNameType.Param, "move_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir moveDir, [NativeName(NativeNameType.Param, "clip_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir clipDir, [NativeName(NativeNameType.Param, "move_flags")] [NativeName(NativeNameType.Type, "ImGuiNavMoveFlags")] ImGuiNavMoveFlags moveFlags, [NativeName(NativeNameType.Param, "scroll_flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags scrollFlags); - - [NativeName(NativeNameType.Func, "igNavMoveRequestForward")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavMoveRequestForward([NativeName(NativeNameType.Param, "move_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir moveDir, [NativeName(NativeNameType.Param, "clip_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir clipDir, [NativeName(NativeNameType.Param, "move_flags")] [NativeName(NativeNameType.Type, "ImGuiNavMoveFlags")] ImGuiNavMoveFlags moveFlags, [NativeName(NativeNameType.Param, "scroll_flags")] [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] ImGuiScrollFlags scrollFlags) - { - NavMoveRequestForwardNative(moveDir, clipDir, moveFlags, scrollFlags); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNavMoveRequestResolveWithLastItem")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNavMoveRequestResolveWithLastItem")] - internal static extern void NavMoveRequestResolveWithLastItemNative([NativeName(NativeNameType.Param, "result")] [NativeName(NativeNameType.Type, "ImGuiNavItemData*")] ImGuiNavItemData* result); - - [NativeName(NativeNameType.Func, "igNavMoveRequestResolveWithLastItem")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavMoveRequestResolveWithLastItem([NativeName(NativeNameType.Param, "result")] [NativeName(NativeNameType.Type, "ImGuiNavItemData*")] ImGuiNavItemData* result) - { - NavMoveRequestResolveWithLastItemNative(result); - } - - [NativeName(NativeNameType.Func, "igNavMoveRequestResolveWithLastItem")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavMoveRequestResolveWithLastItem([NativeName(NativeNameType.Param, "result")] [NativeName(NativeNameType.Type, "ImGuiNavItemData*")] ref ImGuiNavItemData result) - { - fixed (ImGuiNavItemData* presult = &result) - { - NavMoveRequestResolveWithLastItemNative((ImGuiNavItemData*)presult); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNavMoveRequestCancel")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNavMoveRequestCancel")] - internal static extern void NavMoveRequestCancelNative(); - - [NativeName(NativeNameType.Func, "igNavMoveRequestCancel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavMoveRequestCancel() - { - NavMoveRequestCancelNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNavMoveRequestApplyResult")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNavMoveRequestApplyResult")] - internal static extern void NavMoveRequestApplyResultNative(); - - [NativeName(NativeNameType.Func, "igNavMoveRequestApplyResult")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavMoveRequestApplyResult() - { - NavMoveRequestApplyResultNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNavMoveRequestTryWrapping")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNavMoveRequestTryWrapping")] - internal static extern void NavMoveRequestTryWrappingNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "move_flags")] [NativeName(NativeNameType.Type, "ImGuiNavMoveFlags")] ImGuiNavMoveFlags moveFlags); - - [NativeName(NativeNameType.Func, "igNavMoveRequestTryWrapping")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavMoveRequestTryWrapping([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "move_flags")] [NativeName(NativeNameType.Type, "ImGuiNavMoveFlags")] ImGuiNavMoveFlags moveFlags) - { - NavMoveRequestTryWrappingNative(window, moveFlags); - } - - [NativeName(NativeNameType.Func, "igNavMoveRequestTryWrapping")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavMoveRequestTryWrapping([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "move_flags")] [NativeName(NativeNameType.Type, "ImGuiNavMoveFlags")] ImGuiNavMoveFlags moveFlags) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, ref byte textBegin, ref byte textEnd, ref byte* remaining) { - fixed (ImGuiWindow* pwindow = &window) + fixed (ImFont* pself = &self) { - NavMoveRequestTryWrappingNative((ImGuiWindow*)pwindow, moveFlags); + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, (byte*)ptextBegin, (byte*)ptextEnd, (byte**)premaining); + } + } + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNavClearPreferredPosForAxis")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNavClearPreferredPosForAxis")] - internal static extern void NavClearPreferredPosForAxisNative([NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis); - - [NativeName(NativeNameType.Func, "igNavClearPreferredPosForAxis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavClearPreferredPosForAxis([NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis) - { - NavClearPreferredPosForAxisNative(axis); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igNavUpdateCurrentWindowIsScrollPushableX")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igNavUpdateCurrentWindowIsScrollPushableX")] - internal static extern void NavUpdateCurrentWindowIsScrollPushableXNative(); - - [NativeName(NativeNameType.Func, "igNavUpdateCurrentWindowIsScrollPushableX")] - [return: NativeName(NativeNameType.Type, "void")] - public static void NavUpdateCurrentWindowIsScrollPushableX() - { - NavUpdateCurrentWindowIsScrollPushableXNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetNavWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNavWindow")] - internal static extern void SetNavWindowNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); - - [NativeName(NativeNameType.Func, "igSetNavWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNavWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) - { - SetNavWindowNative(window); - } - - [NativeName(NativeNameType.Func, "igSetNavWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNavWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void CalcTextSizeA( Vector2* pOut, ref ImFont self, float size, float maxWidth, float wrapWidth, string textBegin, string textEnd, ref byte* remaining) { - fixed (ImGuiWindow* pwindow = &window) + fixed (ImFont* pself = &self) { - SetNavWindowNative((ImGuiWindow*)pwindow); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetNavID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetNavID")] - internal static extern void SetNavIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "nav_layer")] [NativeName(NativeNameType.Type, "ImGuiNavLayer")] ImGuiNavLayer navLayer, [NativeName(NativeNameType.Param, "focus_scope_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int focusScopeId, [NativeName(NativeNameType.Param, "rect_rel")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rectRel); - - [NativeName(NativeNameType.Func, "igSetNavID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetNavID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "nav_layer")] [NativeName(NativeNameType.Type, "ImGuiNavLayer")] ImGuiNavLayer navLayer, [NativeName(NativeNameType.Param, "focus_scope_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int focusScopeId, [NativeName(NativeNameType.Param, "rect_rel")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rectRel) - { - SetNavIDNative(id, navLayer, focusScopeId, rectRel); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFocusItem")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFocusItem")] - internal static extern void FocusItemNative(); - - /// /// Focus last item (no selectionactivation). /// [NativeName(NativeNameType.Func, "igFocusItem")] - [return: NativeName(NativeNameType.Type, "void")] - public static void FocusItem() - { - FocusItemNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igActivateItemByID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igActivateItemByID")] - internal static extern void ActivateItemByIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - /// /// Activate an item by ID (button, checkbox, tree node etc.). Activation is queued and processed on the next frame when the item is encountered again. /// [NativeName(NativeNameType.Func, "igActivateItemByID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ActivateItemByID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - ActivateItemByIDNative(id); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsNamedKey")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsNamedKey")] - internal static extern byte IsNamedKeyNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igIsNamedKey")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsNamedKey([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte ret = IsNamedKeyNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsNamedKeyOrModKey")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsNamedKeyOrModKey")] - internal static extern byte IsNamedKeyOrModKeyNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igIsNamedKeyOrModKey")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsNamedKeyOrModKey([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte ret = IsNamedKeyOrModKeyNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsLegacyKey")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsLegacyKey")] - internal static extern byte IsLegacyKeyNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igIsLegacyKey")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsLegacyKey([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte ret = IsLegacyKeyNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsKeyboardKey")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsKeyboardKey")] - internal static extern byte IsKeyboardKeyNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igIsKeyboardKey")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsKeyboardKey([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte ret = IsKeyboardKeyNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsGamepadKey")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsGamepadKey")] - internal static extern byte IsGamepadKeyNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igIsGamepadKey")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsGamepadKey([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte ret = IsGamepadKeyNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMouseKey")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMouseKey")] - internal static extern byte IsMouseKeyNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igIsMouseKey")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseKey([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte ret = IsMouseKeyNative(key); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsAliasKey")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsAliasKey")] - internal static extern byte IsAliasKeyNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igIsAliasKey")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsAliasKey([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte ret = IsAliasKeyNative(key); - return ret != 0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (byte** premaining = &remaining) + { + CalcTextSizeANative(pOut, (ImFont*)pself, size, maxWidth, wrapWidth, pStr0, pStr1, (byte**)premaining); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igConvertShortcutMod")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyChord")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igConvertShortcutMod")] - internal static extern int ConvertShortcutModNative([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord); + [LibraryImport(LibName, EntryPoint = "ImFont_CalcWordWrapPositionA")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* CalcWordWrapPositionANative(ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth); - [NativeName(NativeNameType.Func, "igConvertShortcutMod")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyChord")] - public static int ConvertShortcutMod([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord) + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth) { - int ret = ConvertShortcutModNative(keyChord); + byte* ret = CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth); return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igConvertSingleModFlagToKey")] - [return: NativeName(NativeNameType.Type, "ImGuiKey")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igConvertSingleModFlagToKey")] - internal static extern ImGuiKey ConvertSingleModFlagToKeyNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igConvertSingleModFlagToKey")] - [return: NativeName(NativeNameType.Type, "ImGuiKey")] - public static ImGuiKey ConvertSingleModFlagToKey([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) + public static string CalcWordWrapPositionAS( ImFont* self, float scale, byte* text, byte* textEnd, float wrapWidth) { - ImGuiKey ret = ConvertSingleModFlagToKeyNative(ctx, key); + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, textEnd, wrapWidth)); return ret; } - [NativeName(NativeNameType.Func, "igConvertSingleModFlagToKey")] - [return: NativeName(NativeNameType.Type, "ImGuiKey")] - public static ImGuiKey ConvertSingleModFlagToKey([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, ref byte text, byte* textEnd, float wrapWidth) { - fixed (ImGuiContext* pctx = &ctx) + fixed (byte* ptext = &text) { - ImGuiKey ret = ConvertSingleModFlagToKeyNative((ImGuiContext*)pctx, key); + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth); return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetKeyData_ContextPtr")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetKeyData_ContextPtr")] - internal static extern ImGuiKeyData* GetKeyDataNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igGetKeyData_ContextPtr")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyData*")] - public static ImGuiKeyData* GetKeyData([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - ImGuiKeyData* ret = GetKeyDataNative(ctx, key); - return ret; - } - - [NativeName(NativeNameType.Func, "igGetKeyData_ContextPtr")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyData*")] - public static ImGuiKeyData* GetKeyData([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) + public static string CalcWordWrapPositionAS( ImFont* self, float scale, ref byte text, byte* textEnd, float wrapWidth) { - fixed (ImGuiContext* pctx = &ctx) + fixed (byte* ptext = &text) { - ImGuiKeyData* ret = GetKeyDataNative((ImGuiContext*)pctx, key); + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, textEnd, wrapWidth)); return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetKeyData_Key")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetKeyData_Key")] - internal static extern ImGuiKeyData* GetKeyDataNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igGetKeyData_Key")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyData*")] - public static ImGuiKeyData* GetKeyData([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - ImGuiKeyData* ret = GetKeyDataNative(key); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetKeyChordName")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetKeyChordName")] - internal static extern void GetKeyChordNameNative([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize); - - [NativeName(NativeNameType.Func, "igGetKeyChordName")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetKeyChordName([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] byte* outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize) - { - GetKeyChordNameNative(keyChord, outBuf, outBufSize); - } - - [NativeName(NativeNameType.Func, "igGetKeyChordName")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetKeyChordName([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] ref byte outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize) + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, string text, byte* textEnd, float wrapWidth) { - fixed (byte* poutBuf = &outBuf) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) { - GetKeyChordNameNative(keyChord, (byte*)poutBuf, outBufSize); + Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igGetKeyChordName")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetKeyChordName([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "out_buf")] [NativeName(NativeNameType.Type, "char*")] ref string outBuf, [NativeName(NativeNameType.Param, "out_buf_size")] [NativeName(NativeNameType.Type, "int")] int outBufSize) + public static string CalcWordWrapPositionAS( ImFont* self, float scale, string text, byte* textEnd, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (outBuf != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(outBuf); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -222051,1692 +57457,1364 @@ public static void GetKeyChordName([NativeName(NativeNameType.Param, "key_chord" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(outBuf, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - GetKeyChordNameNative(keyChord, pStr0, outBufSize); - outBuf = Utils.DecodeStringUTF8(pStr0); + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, textEnd, wrapWidth)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igMouseButtonToKey")] - [return: NativeName(NativeNameType.Type, "ImGuiKey")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igMouseButtonToKey")] - internal static extern ImGuiKey MouseButtonToKeyNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button); - - [NativeName(NativeNameType.Func, "igMouseButtonToKey")] - [return: NativeName(NativeNameType.Type, "ImGuiKey")] - public static ImGuiKey MouseButtonToKey([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button) - { - ImGuiKey ret = MouseButtonToKeyNative(button); return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMouseDragPastThreshold")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMouseDragPastThreshold")] - internal static extern byte IsMouseDragPastThresholdNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "lock_threshold")] [NativeName(NativeNameType.Type, "float")] float lockThreshold); - - [NativeName(NativeNameType.Func, "igIsMouseDragPastThreshold")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseDragPastThreshold([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "lock_threshold")] [NativeName(NativeNameType.Type, "float")] float lockThreshold) - { - byte ret = IsMouseDragPastThresholdNative(button, lockThreshold); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igIsMouseDragPastThreshold")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseDragPastThreshold([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button) - { - byte ret = IsMouseDragPastThresholdNative(button, (float)(-1.0f)); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetKeyMagnitude2d")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetKeyMagnitude2d")] - internal static extern void GetKeyMagnitude2dNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "key_left")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyLeft, [NativeName(NativeNameType.Param, "key_right")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyRight, [NativeName(NativeNameType.Param, "key_up")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyUp, [NativeName(NativeNameType.Param, "key_down")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyDown); - - [NativeName(NativeNameType.Func, "igGetKeyMagnitude2d")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetKeyMagnitude2d([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "key_left")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyLeft, [NativeName(NativeNameType.Param, "key_right")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyRight, [NativeName(NativeNameType.Param, "key_up")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyUp, [NativeName(NativeNameType.Param, "key_down")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyDown) + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, byte* text, ref byte textEnd, float wrapWidth) { - GetKeyMagnitude2dNative(pOut, keyLeft, keyRight, keyUp, keyDown); + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth); + return ret; + } } - [NativeName(NativeNameType.Func, "igGetKeyMagnitude2d")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetKeyMagnitude2d([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "key_left")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyLeft, [NativeName(NativeNameType.Param, "key_right")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyRight, [NativeName(NativeNameType.Param, "key_up")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyUp, [NativeName(NativeNameType.Param, "key_down")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey keyDown) + public static string CalcWordWrapPositionAS( ImFont* self, float scale, byte* text, ref byte textEnd, float wrapWidth) { - fixed (Vector2* ppOut = &pOut) + fixed (byte* ptextEnd = &textEnd) { - GetKeyMagnitude2dNative((Vector2*)ppOut, keyLeft, keyRight, keyUp, keyDown); + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, (byte*)ptextEnd, wrapWidth)); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetNavTweakPressedAmount")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetNavTweakPressedAmount")] - internal static extern float GetNavTweakPressedAmountNative([NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis); - - [NativeName(NativeNameType.Func, "igGetNavTweakPressedAmount")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetNavTweakPressedAmount([NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis) + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, byte* text, string textEnd, float wrapWidth) { - float ret = GetNavTweakPressedAmountNative(axis); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igCalcTypematicRepeatAmount")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCalcTypematicRepeatAmount")] - internal static extern int CalcTypematicRepeatAmountNative([NativeName(NativeNameType.Param, "t0")] [NativeName(NativeNameType.Type, "float")] float t0, [NativeName(NativeNameType.Param, "t1")] [NativeName(NativeNameType.Type, "float")] float t1, [NativeName(NativeNameType.Param, "repeat_delay")] [NativeName(NativeNameType.Type, "float")] float repeatDelay, [NativeName(NativeNameType.Param, "repeat_rate")] [NativeName(NativeNameType.Type, "float")] float repeatRate); - - [NativeName(NativeNameType.Func, "igCalcTypematicRepeatAmount")] - [return: NativeName(NativeNameType.Type, "int")] - public static int CalcTypematicRepeatAmount([NativeName(NativeNameType.Param, "t0")] [NativeName(NativeNameType.Type, "float")] float t0, [NativeName(NativeNameType.Param, "t1")] [NativeName(NativeNameType.Type, "float")] float t1, [NativeName(NativeNameType.Param, "repeat_delay")] [NativeName(NativeNameType.Type, "float")] float repeatDelay, [NativeName(NativeNameType.Param, "repeat_rate")] [NativeName(NativeNameType.Type, "float")] float repeatRate) + public static string CalcWordWrapPositionAS( ImFont* self, float scale, byte* text, string textEnd, float wrapWidth) { - int ret = CalcTypematicRepeatAmountNative(t0, t1, repeatDelay, repeatRate); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, text, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetTypematicRepeatRate")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetTypematicRepeatRate")] - internal static extern void GetTypematicRepeatRateNative([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags, [NativeName(NativeNameType.Param, "repeat_delay")] [NativeName(NativeNameType.Type, "float*")] float* repeatDelay, [NativeName(NativeNameType.Param, "repeat_rate")] [NativeName(NativeNameType.Type, "float*")] float* repeatRate); - - [NativeName(NativeNameType.Func, "igGetTypematicRepeatRate")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTypematicRepeatRate([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags, [NativeName(NativeNameType.Param, "repeat_delay")] [NativeName(NativeNameType.Type, "float*")] float* repeatDelay, [NativeName(NativeNameType.Param, "repeat_rate")] [NativeName(NativeNameType.Type, "float*")] float* repeatRate) - { - GetTypematicRepeatRateNative(flags, repeatDelay, repeatRate); - } - - [NativeName(NativeNameType.Func, "igGetTypematicRepeatRate")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTypematicRepeatRate([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags, [NativeName(NativeNameType.Param, "repeat_delay")] [NativeName(NativeNameType.Type, "float*")] ref float repeatDelay, [NativeName(NativeNameType.Param, "repeat_rate")] [NativeName(NativeNameType.Type, "float*")] float* repeatRate) + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, ref byte text, ref byte textEnd, float wrapWidth) { - fixed (float* prepeatDelay = &repeatDelay) + fixed (byte* ptext = &text) { - GetTypematicRepeatRateNative(flags, (float*)prepeatDelay, repeatRate); + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } } } - [NativeName(NativeNameType.Func, "igGetTypematicRepeatRate")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTypematicRepeatRate([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags, [NativeName(NativeNameType.Param, "repeat_delay")] [NativeName(NativeNameType.Type, "float*")] float* repeatDelay, [NativeName(NativeNameType.Param, "repeat_rate")] [NativeName(NativeNameType.Type, "float*")] ref float repeatRate) + public static string CalcWordWrapPositionAS( ImFont* self, float scale, ref byte text, ref byte textEnd, float wrapWidth) { - fixed (float* prepeatRate = &repeatRate) + fixed (byte* ptext = &text) { - GetTypematicRepeatRateNative(flags, repeatDelay, (float*)prepeatRate); + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } } } - [NativeName(NativeNameType.Func, "igGetTypematicRepeatRate")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetTypematicRepeatRate([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags, [NativeName(NativeNameType.Param, "repeat_delay")] [NativeName(NativeNameType.Type, "float*")] ref float repeatDelay, [NativeName(NativeNameType.Param, "repeat_rate")] [NativeName(NativeNameType.Type, "float*")] ref float repeatRate) + public static byte* CalcWordWrapPositionA( ImFont* self, float scale, string text, string textEnd, float wrapWidth) { - fixed (float* prepeatDelay = &repeatDelay) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) { - fixed (float* prepeatRate = &repeatRate) + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) { - GetTypematicRepeatRateNative(flags, (float*)prepeatDelay, (float*)prepeatRate); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetActiveIdUsingAllKeyboardKeys")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetActiveIdUsingAllKeyboardKeys")] - internal static extern void SetActiveIdUsingAllKeyboardKeysNative(); - - [NativeName(NativeNameType.Func, "igSetActiveIdUsingAllKeyboardKeys")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetActiveIdUsingAllKeyboardKeys() - { - SetActiveIdUsingAllKeyboardKeysNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsActiveIdUsingNavDir")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsActiveIdUsingNavDir")] - internal static extern byte IsActiveIdUsingNavDirNative([NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir); - - [NativeName(NativeNameType.Func, "igIsActiveIdUsingNavDir")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsActiveIdUsingNavDir([NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir) - { - byte ret = IsActiveIdUsingNavDirNative(dir); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetKeyOwner")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetKeyOwner")] - internal static extern int GetKeyOwnerNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igGetKeyOwner")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetKeyOwner([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - int ret = GetKeyOwnerNative(key); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetKeyOwner")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetKeyOwner")] - internal static extern void SetKeyOwnerNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags); - - [NativeName(NativeNameType.Func, "igSetKeyOwner")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetKeyOwner([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags) - { - SetKeyOwnerNative(key, ownerId, flags); - } - - [NativeName(NativeNameType.Func, "igSetKeyOwner")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetKeyOwner([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - SetKeyOwnerNative(key, ownerId, (ImGuiInputFlags)(0)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetKeyOwnersForKeyChord")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetKeyOwnersForKeyChord")] - internal static extern void SetKeyOwnersForKeyChordNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags); - - [NativeName(NativeNameType.Func, "igSetKeyOwnersForKeyChord")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetKeyOwnersForKeyChord([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags) - { - SetKeyOwnersForKeyChordNative(key, ownerId, flags); - } - - [NativeName(NativeNameType.Func, "igSetKeyOwnersForKeyChord")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetKeyOwnersForKeyChord([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - SetKeyOwnersForKeyChordNative(key, ownerId, (ImGuiInputFlags)(0)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetItemKeyOwner")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetItemKeyOwner")] - internal static extern void SetItemKeyOwnerNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags); - - /// /// Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) SetKeyOwner(key, GetItemID());'. /// [NativeName(NativeNameType.Func, "igSetItemKeyOwner")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetItemKeyOwner([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags) - { - SetItemKeyOwnerNative(key, flags); - } - - /// /// Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) SetKeyOwner(key, GetItemID());'. /// [NativeName(NativeNameType.Func, "igSetItemKeyOwner")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetItemKeyOwner([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - SetItemKeyOwnerNative(key, (ImGuiInputFlags)(0)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTestKeyOwner")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTestKeyOwner")] - internal static extern byte TestKeyOwnerNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId); - - /// /// Test that key is either not owned, either owned by 'owner_id' /// [NativeName(NativeNameType.Func, "igTestKeyOwner")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TestKeyOwner([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - byte ret = TestKeyOwnerNative(key, ownerId); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetKeyOwnerData")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyOwnerData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetKeyOwnerData")] - internal static extern ImGuiKeyOwnerData* GetKeyOwnerDataNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key); - - [NativeName(NativeNameType.Func, "igGetKeyOwnerData")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyOwnerData*")] - public static ImGuiKeyOwnerData* GetKeyOwnerData([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - ImGuiKeyOwnerData* ret = GetKeyOwnerDataNative(ctx, key); - return ret; - } - - [NativeName(NativeNameType.Func, "igGetKeyOwnerData")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyOwnerData*")] - public static ImGuiKeyOwnerData* GetKeyOwnerData([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - fixed (ImGuiContext* pctx = &ctx) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - ImGuiKeyOwnerData* ret = GetKeyOwnerDataNative((ImGuiContext*)pctx, key); - return ret; + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsKeyDown_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsKeyDown_ID")] - internal static extern byte IsKeyDownNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId); - - [NativeName(NativeNameType.Func, "igIsKeyDown_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsKeyDown([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - byte ret = IsKeyDownNative(key, ownerId); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsKeyPressed_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsKeyPressed_ID")] - internal static extern byte IsKeyPressedNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags); - - /// /// Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so would default to repeat. New API requiress explicit ImGuiInputFlags_Repeat. /// [NativeName(NativeNameType.Func, "igIsKeyPressed_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsKeyPressed([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags) - { - byte ret = IsKeyPressedNative(key, ownerId, flags); - return ret != 0; - } - - /// /// Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so would default to repeat. New API requiress explicit ImGuiInputFlags_Repeat. /// [NativeName(NativeNameType.Func, "igIsKeyPressed_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsKeyPressed([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - byte ret = IsKeyPressedNative(key, ownerId, (ImGuiInputFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsKeyReleased_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsKeyReleased_ID")] - internal static extern byte IsKeyReleasedNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId); - - [NativeName(NativeNameType.Func, "igIsKeyReleased_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsKeyReleased([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - byte ret = IsKeyReleasedNative(key, ownerId); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMouseDown_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMouseDown_ID")] - internal static extern byte IsMouseDownNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId); - - [NativeName(NativeNameType.Func, "igIsMouseDown_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseDown([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - byte ret = IsMouseDownNative(button, ownerId); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMouseClicked_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMouseClicked_ID")] - internal static extern byte IsMouseClickedNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags); - - [NativeName(NativeNameType.Func, "igIsMouseClicked_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseClicked([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags) - { - byte ret = IsMouseClickedNative(button, ownerId, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igIsMouseClicked_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseClicked([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - byte ret = IsMouseClickedNative(button, ownerId, (ImGuiInputFlags)(0)); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsMouseReleased_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsMouseReleased_ID")] - internal static extern byte IsMouseReleasedNative([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId); - - [NativeName(NativeNameType.Func, "igIsMouseReleased_ID")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsMouseReleased([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "ImGuiMouseButton")] ImGuiMouseButton button, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - byte ret = IsMouseReleasedNative(button, ownerId); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igShortcut")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShortcut")] - internal static extern byte ShortcutNative([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags); - - [NativeName(NativeNameType.Func, "igShortcut")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Shortcut([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags) - { - byte ret = ShortcutNative(keyChord, ownerId, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igShortcut")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Shortcut([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - byte ret = ShortcutNative(keyChord, ownerId, (ImGuiInputFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igShortcut")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Shortcut([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord) - { - byte ret = ShortcutNative(keyChord, (int)(0), (ImGuiInputFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igShortcut")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool Shortcut([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags) - { - byte ret = ShortcutNative(keyChord, (int)(0), flags); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetShortcutRouting")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetShortcutRouting")] - internal static extern byte SetShortcutRoutingNative([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags); - - [NativeName(NativeNameType.Func, "igSetShortcutRouting")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SetShortcutRouting([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags) - { - byte ret = SetShortcutRoutingNative(keyChord, ownerId, flags); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSetShortcutRouting")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SetShortcutRouting([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - byte ret = SetShortcutRoutingNative(keyChord, ownerId, (ImGuiInputFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSetShortcutRouting")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SetShortcutRouting([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord) - { - byte ret = SetShortcutRoutingNative(keyChord, (int)(0), (ImGuiInputFlags)(0)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSetShortcutRouting")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SetShortcutRouting([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputFlags")] ImGuiInputFlags flags) - { - byte ret = SetShortcutRoutingNative(keyChord, (int)(0), flags); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTestShortcutRouting")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTestShortcutRouting")] - internal static extern byte TestShortcutRoutingNative([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId); - - [NativeName(NativeNameType.Func, "igTestShortcutRouting")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TestShortcutRouting([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord, [NativeName(NativeNameType.Param, "owner_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int ownerId) - { - byte ret = TestShortcutRoutingNative(keyChord, ownerId); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetShortcutRoutingData")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyRoutingData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetShortcutRoutingData")] - internal static extern ImGuiKeyRoutingData* GetShortcutRoutingDataNative([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord); - - [NativeName(NativeNameType.Func, "igGetShortcutRoutingData")] - [return: NativeName(NativeNameType.Type, "ImGuiKeyRoutingData*")] - public static ImGuiKeyRoutingData* GetShortcutRoutingData([NativeName(NativeNameType.Param, "key_chord")] [NativeName(NativeNameType.Type, "ImGuiKeyChord")] int keyChord) - { - ImGuiKeyRoutingData* ret = GetShortcutRoutingDataNative(keyChord); return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextInitialize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextInitialize")] - internal static extern void DockContextInitializeNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx); - - [NativeName(NativeNameType.Func, "igDockContextInitialize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextInitialize([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) - { - DockContextInitializeNative(ctx); - } - - [NativeName(NativeNameType.Func, "igDockContextInitialize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextInitialize([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) + public static string CalcWordWrapPositionAS( ImFont* self, float scale, string text, string textEnd, float wrapWidth) { - fixed (ImGuiContext* pctx = &ctx) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) { - DockContextInitializeNative((ImGuiContext*)pctx); + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextShutdown")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextShutdown")] - internal static extern void DockContextShutdownNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx); - - [NativeName(NativeNameType.Func, "igDockContextShutdown")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextShutdown([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) - { - DockContextShutdownNative(ctx); - } - - [NativeName(NativeNameType.Func, "igDockContextShutdown")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextShutdown([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) - { - fixed (ImGuiContext* pctx = &ctx) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - DockContextShutdownNative((ImGuiContext*)pctx); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextClearNodes")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextClearNodes")] - internal static extern void DockContextClearNodesNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "root_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int rootId, [NativeName(NativeNameType.Param, "clear_settings_refs")] [NativeName(NativeNameType.Type, "bool")] byte clearSettingsRefs); - - /// /// Use root_id==0 to clear all /// [NativeName(NativeNameType.Func, "igDockContextClearNodes")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextClearNodes([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "root_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int rootId, [NativeName(NativeNameType.Param, "clear_settings_refs")] [NativeName(NativeNameType.Type, "bool")] bool clearSettingsRefs) - { - DockContextClearNodesNative(ctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); - } - - /// /// Use root_id==0 to clear all /// [NativeName(NativeNameType.Func, "igDockContextClearNodes")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextClearNodes([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "root_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int rootId, [NativeName(NativeNameType.Param, "clear_settings_refs")] [NativeName(NativeNameType.Type, "bool")] bool clearSettingsRefs) - { - fixed (ImGuiContext* pctx = &ctx) + string ret = Utils.DecodeStringUTF8(CalcWordWrapPositionANative(self, scale, pStr0, pStr1, wrapWidth)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) { - DockContextClearNodesNative((ImGuiContext*)pctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockContextRebuildNodes")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextRebuildNodes")] - internal static extern void DockContextRebuildNodesNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx); + [LibraryImport(LibName, EntryPoint = "ImFont_RenderChar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderCharNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, char c); - [NativeName(NativeNameType.Func, "igDockContextRebuildNodes")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextRebuildNodes([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) + public static void RenderChar( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, char c) { - DockContextRebuildNodesNative(ctx); + RenderCharNative(self, drawList, size, pos, col, c); } - [NativeName(NativeNameType.Func, "igDockContextRebuildNodes")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextRebuildNodes([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) + public static void RenderChar( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, char c) { - fixed (ImGuiContext* pctx = &ctx) + fixed (ImDrawList* pdrawList = &drawList) { - DockContextRebuildNodesNative((ImGuiContext*)pctx); + RenderCharNative(self, (ImDrawList*)pdrawList, size, pos, col, c); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockContextNewFrameUpdateUndocking")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextNewFrameUpdateUndocking")] - internal static extern void DockContextNewFrameUpdateUndockingNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx); + [LibraryImport(LibName, EntryPoint = "ImFont_RenderText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextNative(ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, byte cpuFineClip); - [NativeName(NativeNameType.Func, "igDockContextNewFrameUpdateUndocking")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextNewFrameUpdateUndocking([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { - DockContextNewFrameUpdateUndockingNative(ctx); + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "igDockContextNewFrameUpdateUndocking")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextNewFrameUpdateUndocking([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextNewFrameUpdateUndockingNative((ImGuiContext*)pctx); - } + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextNewFrameUpdateDocking")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextNewFrameUpdateDocking")] - internal static extern void DockContextNewFrameUpdateDockingNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx); + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } - [NativeName(NativeNameType.Func, "igDockContextNewFrameUpdateDocking")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextNewFrameUpdateDocking([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) { - DockContextNewFrameUpdateDockingNative(ctx); + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "igDockContextNewFrameUpdateDocking")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextNewFrameUpdateDocking([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiContext* pctx = &ctx) + fixed (ImDrawList* pdrawList = &drawList) { - DockContextNewFrameUpdateDockingNative((ImGuiContext*)pctx); + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextEndFrame")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextEndFrame")] - internal static extern void DockContextEndFrameNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx); - - [NativeName(NativeNameType.Func, "igDockContextEndFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextEndFrame([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) { - DockContextEndFrameNative(ctx); + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } } - [NativeName(NativeNameType.Func, "igDockContextEndFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextEndFrame([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) { - fixed (ImGuiContext* pctx = &ctx) + fixed (ImDrawList* pdrawList = &drawList) { - DockContextEndFrameNative((ImGuiContext*)pctx); + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextGenNodeID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextGenNodeID")] - internal static extern int DockContextGenNodeIDNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx); - - [NativeName(NativeNameType.Func, "igDockContextGenNodeID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockContextGenNodeID([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) { - int ret = DockContextGenNodeIDNative(ctx); - return ret; + fixed (ImDrawList* pdrawList = &drawList) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } } - [NativeName(NativeNameType.Func, "igDockContextGenNodeID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockContextGenNodeID([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiContext* pctx = &ctx) + fixed (byte* ptextBegin = &textBegin) { - int ret = DockContextGenNodeIDNative((ImGuiContext*)pctx); - return ret; + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextQueueDock")] - internal static extern void DockContextQueueDockNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] byte splitOuter); - - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) { - DockContextQueueDockNative(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + fixed (byte* ptextBegin = &textBegin) + { + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) { - fixed (ImGuiContext* pctx = &ctx) + fixed (byte* ptextBegin = &textBegin) { - DockContextQueueDockNative((ImGuiContext*)pctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) { - fixed (ImGuiWindow* ptarget = &target) + fixed (byte* ptextBegin = &textBegin) { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiContext* pctx = &ctx) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiWindow* ptarget = &target) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) { - fixed (ImGuiContext* pctx = &ctx) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else { - DockContextQueueDockNative((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) { - fixed (ImGuiWindow* ptarget = &target) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) { - fixed (ImGuiContext* pctx = &ctx) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiWindow* ptarget = &target) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) - { - fixed (ImGuiWindow* ppayload = &payload) + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - DockContextQueueDockNative(ctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiContext* pctx = &ctx) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiWindow* ppayload = &payload) + fixed (byte* ptextBegin = &textBegin) { - DockContextQueueDockNative((ImGuiContext*)pctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) { - fixed (ImGuiWindow* ptarget = &target) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiWindow* ppayload = &payload) + fixed (byte* ptextBegin = &textBegin) { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); } } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) { - fixed (ImGuiContext* pctx = &ctx) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiWindow* ptarget = &target) + fixed (byte* ptextBegin = &textBegin) { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); } } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiWindow* ppayload = &payload) + fixed (byte* ptextBegin = &textBegin) { - DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); } } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiContext* pctx = &ctx) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiWindow* ppayload = &payload) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else { - DockContextQueueDockNative((ImGuiContext*)pctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) { - fixed (ImGuiWindow* ptarget = &target) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiWindow* ppayload = &payload) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igDockContextQueueDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueDock([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payload, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_ratio")] [NativeName(NativeNameType.Type, "float")] float splitRatio, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) { - fixed (ImGuiContext* pctx = &ctx) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiWindow* ptarget = &target) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ImGuiWindow* ppayload = &payload) - { - DockContextQueueDockNative((ImGuiContext*)pctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextQueueUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextQueueUndockWindow")] - internal static extern void DockContextQueueUndockWindowNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); - - [NativeName(NativeNameType.Func, "igDockContextQueueUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) - { - DockContextQueueUndockWindowNative(ctx, window); - } - - [NativeName(NativeNameType.Func, "igDockContextQueueUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) { - fixed (ImGuiContext* pctx = &ctx) + fixed (ImDrawList* pdrawList = &drawList) { - DockContextQueueUndockWindowNative((ImGuiContext*)pctx, window); + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igDockContextQueueUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiWindow* pwindow = &window) + fixed (byte* ptextEnd = &textEnd) { - DockContextQueueUndockWindowNative(ctx, (ImGuiWindow*)pwindow); + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } - [NativeName(NativeNameType.Func, "igDockContextQueueUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) { - fixed (ImGuiContext* pctx = &ctx) + fixed (byte* ptextEnd = &textEnd) { - fixed (ImGuiWindow* pwindow = &window) - { - DockContextQueueUndockWindowNative((ImGuiContext*)pctx, (ImGuiWindow*)pwindow); - } + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextQueueUndockNode")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextQueueUndockNode")] - internal static extern void DockContextQueueUndockNodeNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node); - - [NativeName(NativeNameType.Func, "igDockContextQueueUndockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueUndockNode([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node) - { - DockContextQueueUndockNodeNative(ctx, node); - } - - [NativeName(NativeNameType.Func, "igDockContextQueueUndockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueUndockNode([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) { - fixed (ImGuiContext* pctx = &ctx) + fixed (byte* ptextEnd = &textEnd) { - DockContextQueueUndockNodeNative((ImGuiContext*)pctx, node); + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); } } - [NativeName(NativeNameType.Func, "igDockContextQueueUndockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueUndockNode([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) { - fixed (ImGuiDockNode* pnode = &node) + fixed (byte* ptextEnd = &textEnd) { - DockContextQueueUndockNodeNative(ctx, (ImGuiDockNode*)pnode); + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); } } - [NativeName(NativeNameType.Func, "igDockContextQueueUndockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextQueueUndockNode([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiContext* pctx = &ctx) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - fixed (ImGuiDockNode* pnode = &node) + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) { - DockContextQueueUndockNodeNative((ImGuiContext*)pctx, (ImGuiDockNode*)pnode); + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextProcessUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextProcessUndockWindow")] - internal static extern void DockContextProcessUndockWindowNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "clear_persistent_docking_ref")] [NativeName(NativeNameType.Type, "bool")] byte clearPersistentDockingRef); - - [NativeName(NativeNameType.Func, "igDockContextProcessUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "clear_persistent_docking_ref")] [NativeName(NativeNameType.Type, "bool")] bool clearPersistentDockingRef) - { - DockContextProcessUndockWindowNative(ctx, window, clearPersistentDockingRef ? (byte)1 : (byte)0); - } - - [NativeName(NativeNameType.Func, "igDockContextProcessUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) - { - DockContextProcessUndockWindowNative(ctx, window, (byte)(1)); - } - - [NativeName(NativeNameType.Func, "igDockContextProcessUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "clear_persistent_docking_ref")] [NativeName(NativeNameType.Type, "bool")] bool clearPersistentDockingRef) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockContextProcessUndockWindowNative((ImGuiContext*)pctx, window, clearPersistentDockingRef ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "igDockContextProcessUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) - { - fixed (ImGuiContext* pctx = &ctx) + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - DockContextProcessUndockWindowNative((ImGuiContext*)pctx, window, (byte)(1)); + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextProcessUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "clear_persistent_docking_ref")] [NativeName(NativeNameType.Type, "bool")] bool clearPersistentDockingRef) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) { - fixed (ImGuiWindow* pwindow = &window) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - DockContextProcessUndockWindowNative(ctx, (ImGuiWindow*)pwindow, clearPersistentDockingRef ? (byte)1 : (byte)0); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDockContextProcessUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - DockContextProcessUndockWindowNative(ctx, (ImGuiWindow*)pwindow, (byte)(1)); + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextProcessUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "clear_persistent_docking_ref")] [NativeName(NativeNameType.Type, "bool")] bool clearPersistentDockingRef) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) { - fixed (ImGuiContext* pctx = &ctx) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - fixed (ImGuiWindow* pwindow = &window) + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) { - DockContextProcessUndockWindowNative((ImGuiContext*)pctx, (ImGuiWindow*)pwindow, clearPersistentDockingRef ? (byte)1 : (byte)0); + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextProcessUndockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockWindow([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) { - fixed (ImGuiContext* pctx = &ctx) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - fixed (ImGuiWindow* pwindow = &window) + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else { - DockContextProcessUndockWindowNative((ImGuiContext*)pctx, (ImGuiWindow*)pwindow, (byte)(1)); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextProcessUndockNode")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextProcessUndockNode")] - internal static extern void DockContextProcessUndockNodeNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node); - - [NativeName(NativeNameType.Func, "igDockContextProcessUndockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockNode([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node) - { - DockContextProcessUndockNodeNative(ctx, node); - } - - [NativeName(NativeNameType.Func, "igDockContextProcessUndockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockNode([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node) - { - fixed (ImGuiContext* pctx = &ctx) + RenderTextNative(self, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - DockContextProcessUndockNodeNative((ImGuiContext*)pctx, node); + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextProcessUndockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockNode([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiDockNode* pnode = &node) + fixed (ImDrawList* pdrawList = &drawList) { - DockContextProcessUndockNodeNative(ctx, (ImGuiDockNode*)pnode); + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } } } - [NativeName(NativeNameType.Func, "igDockContextProcessUndockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockContextProcessUndockNode([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) { - fixed (ImGuiContext* pctx = &ctx) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiDockNode* pnode = &node) + fixed (byte* ptextEnd = &textEnd) { - DockContextProcessUndockNodeNative((ImGuiContext*)pctx, (ImGuiDockNode*)pnode); + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextCalcDropPosForDocking")] - internal static extern byte DockContextCalcDropPosForDockingNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] byte splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos); - - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) { - fixed (ImGuiWindow* ptarget = &target) + fixed (ImDrawList* pdrawList = &drawList) { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + fixed (ImDrawList* pdrawList = &drawList) { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiWindow* ptarget = &target) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + fixed (ImDrawList* pdrawList = &drawList) { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) { - fixed (ImGuiWindow* ptarget = &target) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiWindow* ptarget = &target) + fixed (byte* ptextBegin = &textBegin) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + fixed (byte* ptextEnd = &textEnd) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) - { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) - { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) { - fixed (ImGuiWindow* ptarget = &target) + fixed (byte* ptextBegin = &textBegin) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + fixed (byte* ptextEnd = &textEnd) { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + fixed (byte* ptextBegin = &textBegin) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + fixed (byte* ptextEnd = &textEnd) { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) { - fixed (ImGuiWindow* ptarget = &target) + fixed (byte* ptextBegin = &textBegin) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + fixed (byte* ptextEnd = &textEnd) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } + RenderTextNative(self, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) - { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outPos) - { - fixed (ImGuiWindow* ptarget = &target) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) - { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); - return ret != 0; - } - } + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - } - - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) - { - fixed (Vector2* poutPos = &outPos) + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) { - fixed (ImGuiWindow* ptarget = &target) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (Vector2* poutPos = &outPos) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - fixed (Vector2* poutPos = &outPos) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) + public static void RenderText( ImFont* self, ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) { - fixed (ImGuiWindow* ptarget = &target) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) - { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - fixed (Vector2* poutPos = &outPos) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiWindow* ptarget = &target) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + fixed (byte* ptextBegin = &textBegin) { - fixed (Vector2* poutPos = &outPos) + fixed (byte* ptextEnd = &textEnd) { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); } } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + fixed (byte* ptextBegin = &textBegin) { - fixed (Vector2* poutPos = &outPos) + fixed (byte* ptextEnd = &textEnd) { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); } } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) { - fixed (ImGuiWindow* ptarget = &target) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + fixed (byte* ptextBegin = &textBegin) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + fixed (byte* ptextEnd = &textEnd) { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); } } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (Vector2* poutPos = &outPos) + fixed (byte* ptextBegin = &textBegin) { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; + fixed (byte* ptextEnd = &textEnd) + { + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { - fixed (ImGuiWindow* ptarget = &target) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (Vector2* poutPos = &outPos) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - fixed (Vector2* poutPos = &outPos) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) { - fixed (ImGuiWindow* ptarget = &target) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) - { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) - { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - fixed (Vector2* poutPos = &outPos) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) { - fixed (ImGuiWindow* ptarget = &target) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - } - - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) - { - fixed (ImGuiDockNode* ptargetNode = &targetNode) - { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igDockContextCalcDropPosForDocking")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow target, [NativeName(NativeNameType.Param, "target_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode targetNode, [NativeName(NativeNameType.Param, "payload_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow payloadWindow, [NativeName(NativeNameType.Param, "payload_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode payloadNode, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "split_outer")] [NativeName(NativeNameType.Type, "bool")] bool splitOuter, [NativeName(NativeNameType.Param, "out_pos")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outPos) + public static void RenderText( ImFont* self, ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) { - fixed (ImGuiWindow* ptarget = &target) + fixed (ImDrawList* pdrawList = &drawList) { - fixed (ImGuiDockNode* ptargetNode = &targetNode) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) { - fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ImGuiDockNode* ppayloadNode = &payloadNode) - { - fixed (Vector2* poutPos = &outPos) - { - byte ret = DockContextCalcDropPosForDockingNative((ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); - return ret != 0; - } - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + RenderTextNative(self, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -223744,505 +58822,380 @@ public static bool DockContextCalcDropPosForDocking([NativeName(NativeNameType.P /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockContextFindNodeByID")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockContextFindNodeByID")] - internal static extern ImGuiDockNode* DockContextFindNodeByIDNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - [NativeName(NativeNameType.Func, "igDockContextFindNodeByID")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - public static ImGuiDockNode* DockContextFindNodeByID([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - ImGuiDockNode* ret = DockContextFindNodeByIDNative(ctx, id); - return ret; - } - - [NativeName(NativeNameType.Func, "igDockContextFindNodeByID")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - public static ImGuiDockNode* DockContextFindNodeByID([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGuiDockNode* ret = DockContextFindNodeByIDNative((ImGuiContext*)pctx, id); - return ret; - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockNodeWindowMenuHandler_Default")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockNodeWindowMenuHandler_Default")] - internal static extern void DockNodeWindowMenuHandler_DefaultNative([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar); - - [NativeName(NativeNameType.Func, "igDockNodeWindowMenuHandler_Default")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockNodeWindowMenuHandler_Default([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar) - { - DockNodeWindowMenuHandler_DefaultNative(ctx, node, tabBar); - } - - [NativeName(NativeNameType.Func, "igDockNodeWindowMenuHandler_Default")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockNodeWindowMenuHandler_Default([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar) - { - fixed (ImGuiContext* pctx = &ctx) - { - DockNodeWindowMenuHandler_DefaultNative((ImGuiContext*)pctx, node, tabBar); - } - } - - [NativeName(NativeNameType.Func, "igDockNodeWindowMenuHandler_Default")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockNodeWindowMenuHandler_Default([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node, [NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar) - { - fixed (ImGuiDockNode* pnode = &node) - { - DockNodeWindowMenuHandler_DefaultNative(ctx, (ImGuiDockNode*)pnode, tabBar); - } - } + [LibraryImport(LibName, EntryPoint = "ImFont_BuildLookupTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BuildLookupTableNative(ImFont* self); - [NativeName(NativeNameType.Func, "igDockNodeWindowMenuHandler_Default")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockNodeWindowMenuHandler_Default([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node, [NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar) - { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiDockNode* pnode = &node) - { - DockNodeWindowMenuHandler_DefaultNative((ImGuiContext*)pctx, (ImGuiDockNode*)pnode, tabBar); - } - } + public static void BuildLookupTable( ImFont* self) + { + BuildLookupTableNative(self); } - [NativeName(NativeNameType.Func, "igDockNodeWindowMenuHandler_Default")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockNodeWindowMenuHandler_Default([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_ClearOutputData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearOutputDataNative(ImFont* self); + + public static void ClearOutputData( ImFont* self) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - DockNodeWindowMenuHandler_DefaultNative(ctx, node, (ImGuiTabBar*)ptabBar); - } + ClearOutputDataNative(self); } - [NativeName(NativeNameType.Func, "igDockNodeWindowMenuHandler_Default")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockNodeWindowMenuHandler_Default([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_GrowIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GrowIndexNative(ImFont* self, int newSize); + + public static void GrowIndex( ImFont* self, int newSize) { - fixed (ImGuiContext* pctx = &ctx) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - DockNodeWindowMenuHandler_DefaultNative((ImGuiContext*)pctx, node, (ImGuiTabBar*)ptabBar); - } - } + GrowIndexNative(self, newSize); } - [NativeName(NativeNameType.Func, "igDockNodeWindowMenuHandler_Default")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockNodeWindowMenuHandler_Default([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node, [NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImFont_AddGlyph")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddGlyphNative(ImFont* self, ImFontConfig* srcCfg, char c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX); + + public static void AddGlyph( ImFont* self, ImFontConfig* srcCfg, char c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) { - fixed (ImGuiDockNode* pnode = &node) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - DockNodeWindowMenuHandler_DefaultNative(ctx, (ImGuiDockNode*)pnode, (ImGuiTabBar*)ptabBar); - } - } + AddGlyphNative(self, srcCfg, c, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); } - [NativeName(NativeNameType.Func, "igDockNodeWindowMenuHandler_Default")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockNodeWindowMenuHandler_Default([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx, [NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node, [NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar) + public static void AddGlyph( ImFont* self, ref ImFontConfig srcCfg, char c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) { - fixed (ImGuiContext* pctx = &ctx) + fixed (ImFontConfig* psrcCfg = &srcCfg) { - fixed (ImGuiDockNode* pnode = &node) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - DockNodeWindowMenuHandler_DefaultNative((ImGuiContext*)pctx, (ImGuiDockNode*)pnode, (ImGuiTabBar*)ptabBar); - } - } + AddGlyphNative(self, (ImFontConfig*)psrcCfg, c, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockNodeBeginAmendTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockNodeBeginAmendTabBar")] - internal static extern byte DockNodeBeginAmendTabBarNative([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node); + [LibraryImport(LibName, EntryPoint = "ImFont_AddRemapChar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddRemapCharNative(ImFont* self, char dst, char src, byte overwriteDst); - [NativeName(NativeNameType.Func, "igDockNodeBeginAmendTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockNodeBeginAmendTabBar([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node) + public static void AddRemapChar( ImFont* self, char dst, char src, bool overwriteDst) { - byte ret = DockNodeBeginAmendTabBarNative(node); - return ret != 0; + AddRemapCharNative(self, dst, src, overwriteDst ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "igDockNodeBeginAmendTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockNodeBeginAmendTabBar([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node) + public static void AddRemapChar( ImFont* self, char dst, char src) { - fixed (ImGuiDockNode* pnode = &node) - { - byte ret = DockNodeBeginAmendTabBarNative((ImGuiDockNode*)pnode); - return ret != 0; - } + AddRemapCharNative(self, dst, src, (byte)(1)); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockNodeEndAmendTabBar")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockNodeEndAmendTabBar")] - internal static extern void DockNodeEndAmendTabBarNative(); + [LibraryImport(LibName, EntryPoint = "ImFont_SetGlyphVisible")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetGlyphVisibleNative(ImFont* self, char c, byte visible); - [NativeName(NativeNameType.Func, "igDockNodeEndAmendTabBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockNodeEndAmendTabBar() + public static void SetGlyphVisible( ImFont* self, char c, bool visible) { - DockNodeEndAmendTabBarNative(); + SetGlyphVisibleNative(self, c, visible ? (byte)1 : (byte)0); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockNodeGetRootNode")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockNodeGetRootNode")] - internal static extern ImGuiDockNode* DockNodeGetRootNodeNative([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node); + [LibraryImport(LibName, EntryPoint = "ImFont_IsGlyphRangeUnused")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsGlyphRangeUnusedNative(ImFont* self, uint cBegin, uint cLast); - [NativeName(NativeNameType.Func, "igDockNodeGetRootNode")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - public static ImGuiDockNode* DockNodeGetRootNode([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node) + public static bool IsGlyphRangeUnused( ImFont* self, uint cBegin, uint cLast) { - ImGuiDockNode* ret = DockNodeGetRootNodeNative(node); - return ret; + byte ret = IsGlyphRangeUnusedNative(self, cBegin, cLast); + return ret != 0; } - [NativeName(NativeNameType.Func, "igDockNodeGetRootNode")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - public static ImGuiDockNode* DockNodeGetRootNode([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewport_ImGuiViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewport* ImGuiViewportNative(); + + public static ImGuiViewport* ImGuiViewport() { - fixed (ImGuiDockNode* pnode = &node) - { - ImGuiDockNode* ret = DockNodeGetRootNodeNative((ImGuiDockNode*)pnode); - return ret; - } + ImGuiViewport* ret = ImGuiViewportNative(); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockNodeIsInHierarchyOf")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockNodeIsInHierarchyOf")] - internal static extern byte DockNodeIsInHierarchyOfNative([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "parent")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* parent); + [LibraryImport(LibName, EntryPoint = "ImGuiViewport_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiViewport* self); - [NativeName(NativeNameType.Func, "igDockNodeIsInHierarchyOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockNodeIsInHierarchyOf([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "parent")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* parent) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewport_GetCenter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetCenterNative(Vector2* pOut, ImGuiViewport* self); + + public static void GetCenter( Vector2* pOut, ImGuiViewport* self) { - byte ret = DockNodeIsInHierarchyOfNative(node, parent); - return ret != 0; + GetCenterNative(pOut, self); } - [NativeName(NativeNameType.Func, "igDockNodeIsInHierarchyOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockNodeIsInHierarchyOf([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node, [NativeName(NativeNameType.Param, "parent")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* parent) + public static void GetCenter( Vector2* pOut, ref ImGuiViewport self) { - fixed (ImGuiDockNode* pnode = &node) + fixed (ImGuiViewport* pself = &self) { - byte ret = DockNodeIsInHierarchyOfNative((ImGuiDockNode*)pnode, parent); - return ret != 0; + GetCenterNative(pOut, (ImGuiViewport*)pself); } } - [NativeName(NativeNameType.Func, "igDockNodeIsInHierarchyOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockNodeIsInHierarchyOf([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "parent")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode parent) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewport_GetWorkCenter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWorkCenterNative(Vector2* pOut, ImGuiViewport* self); + + public static void GetWorkCenter( Vector2* pOut, ImGuiViewport* self) { - fixed (ImGuiDockNode* pparent = &parent) - { - byte ret = DockNodeIsInHierarchyOfNative(node, (ImGuiDockNode*)pparent); - return ret != 0; - } + GetWorkCenterNative(pOut, self); } - [NativeName(NativeNameType.Func, "igDockNodeIsInHierarchyOf")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DockNodeIsInHierarchyOf([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node, [NativeName(NativeNameType.Param, "parent")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode parent) + public static void GetWorkCenter( Vector2* pOut, ref ImGuiViewport self) { - fixed (ImGuiDockNode* pnode = &node) + fixed (ImGuiViewport* pself = &self) { - fixed (ImGuiDockNode* pparent = &parent) - { - byte ret = DockNodeIsInHierarchyOfNative((ImGuiDockNode*)pnode, (ImGuiDockNode*)pparent); - return ret != 0; - } + GetWorkCenterNative(pOut, (ImGuiViewport*)pself); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockNodeGetDepth")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockNodeGetDepth")] - internal static extern int DockNodeGetDepthNative([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "const ImGuiDockNode*")] ImGuiDockNode* node); + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformIO_ImGuiPlatformIO")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPlatformIO* ImGuiPlatformIONative(); - [NativeName(NativeNameType.Func, "igDockNodeGetDepth")] - [return: NativeName(NativeNameType.Type, "int")] - public static int DockNodeGetDepth([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "const ImGuiDockNode*")] ImGuiDockNode* node) + public static ImGuiPlatformIO* ImGuiPlatformIO() { - int ret = DockNodeGetDepthNative(node); + ImGuiPlatformIO* ret = ImGuiPlatformIONative(); return ret; } - [NativeName(NativeNameType.Func, "igDockNodeGetDepth")] - [return: NativeName(NativeNameType.Type, "int")] - public static int DockNodeGetDepth([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "const ImGuiDockNode*")] ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - int ret = DockNodeGetDepthNative((ImGuiDockNode*)pnode); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformIO_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiPlatformIO* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockNodeGetWindowMenuButtonId")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockNodeGetWindowMenuButtonId")] - internal static extern int DockNodeGetWindowMenuButtonIdNative([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "const ImGuiDockNode*")] ImGuiDockNode* node); + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformMonitor_ImGuiPlatformMonitor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPlatformMonitor* ImGuiPlatformMonitorNative(); - [NativeName(NativeNameType.Func, "igDockNodeGetWindowMenuButtonId")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockNodeGetWindowMenuButtonId([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "const ImGuiDockNode*")] ImGuiDockNode* node) + public static ImGuiPlatformMonitor* ImGuiPlatformMonitor() { - int ret = DockNodeGetWindowMenuButtonIdNative(node); + ImGuiPlatformMonitor* ret = ImGuiPlatformMonitorNative(); return ret; } - [NativeName(NativeNameType.Func, "igDockNodeGetWindowMenuButtonId")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockNodeGetWindowMenuButtonId([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "const ImGuiDockNode*")] ref ImGuiDockNode node) - { - fixed (ImGuiDockNode* pnode = &node) - { - int ret = DockNodeGetWindowMenuButtonIdNative((ImGuiDockNode*)pnode); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformMonitor_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiPlatformMonitor* self); /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowDockNode")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowDockNode")] - internal static extern ImGuiDockNode* GetWindowDockNodeNative(); + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformImeData_ImGuiPlatformImeData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPlatformImeData* ImGuiPlatformImeDataNative(); - [NativeName(NativeNameType.Func, "igGetWindowDockNode")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - public static ImGuiDockNode* GetWindowDockNode() + public static ImGuiPlatformImeData* ImGuiPlatformImeData() { - ImGuiDockNode* ret = GetWindowDockNodeNative(); + ImGuiPlatformImeData* ret = ImGuiPlatformImeDataNative(); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowAlwaysWantOwnTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowAlwaysWantOwnTabBar")] - internal static extern byte GetWindowAlwaysWantOwnTabBarNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "ImGuiPlatformImeData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyNative(ImGuiPlatformImeData* self); - [NativeName(NativeNameType.Func, "igGetWindowAlwaysWantOwnTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetWindowAlwaysWantOwnTabBar([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) - { - byte ret = GetWindowAlwaysWantOwnTabBarNative(window); - return ret != 0; - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKey GetKeyIndexNative(ImGuiKey key); - [NativeName(NativeNameType.Func, "igGetWindowAlwaysWantOwnTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool GetWindowAlwaysWantOwnTabBar([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + public static ImGuiKey GetKeyIndex( ImGuiKey key) { - fixed (ImGuiWindow* pwindow = &window) - { - byte ret = GetWindowAlwaysWantOwnTabBarNative((ImGuiWindow*)pwindow); - return ret != 0; - } + ImGuiKey ret = GetKeyIndexNative(key); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBeginDocked")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginDocked")] - internal static extern void BeginDockedNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen); + [LibraryImport(LibName, EntryPoint = "igImHashData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImHashDataNative(void* data, ulong dataSize, uint seed); - [NativeName(NativeNameType.Func, "igBeginDocked")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginDocked([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) + /// /// To be documented. /// public static uint ImHashData( void* data, ulong dataSize, uint seed) { - BeginDockedNative(window, pOpen); + uint ret = ImHashDataNative(data, dataSize, seed); + return ret; } - [NativeName(NativeNameType.Func, "igBeginDocked")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginDocked([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen) + /// /// To be documented. /// public static uint ImHashData( void* data, nuint dataSize, uint seed) { - fixed (ImGuiWindow* pwindow = &window) - { - BeginDockedNative((ImGuiWindow*)pwindow, pOpen); - } + uint ret = ImHashDataNative(data, dataSize, seed); + return ret; } - [NativeName(NativeNameType.Func, "igBeginDocked")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginDocked([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImHashStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImHashNative(byte* data, ulong dataSize, uint seed); + + /// /// To be documented. /// public static uint ImHash( byte* data, ulong dataSize, uint seed) { - fixed (byte* ppOpen = &pOpen) - { - BeginDockedNative(window, (byte*)ppOpen); - } + uint ret = ImHashNative(data, dataSize, seed); + return ret; } - [NativeName(NativeNameType.Func, "igBeginDocked")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginDocked([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen) + /// /// To be documented. /// public static uint ImHash( byte* data, nuint dataSize, uint seed) { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (byte* ppOpen = &pOpen) - { - BeginDockedNative((ImGuiWindow*)pwindow, (byte*)ppOpen); - } - } + uint ret = ImHashNative(data, dataSize, seed); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBeginDockableDragDropSource")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginDockableDragDropSource")] - internal static extern void BeginDockableDragDropSourceNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "igImQsort")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImQsortNative(void* baseValue, ulong count, ulong sizeOfElement, delegate*, int> compareFunc); - [NativeName(NativeNameType.Func, "igBeginDockableDragDropSource")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginDockableDragDropSource([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + /// /// To be documented. /// public static void ImQsort( void* baseValue, ulong count, ulong sizeOfElement, delegate*, int> compareFunc) { - BeginDockableDragDropSourceNative(window); + ImQsortNative(baseValue, count, sizeOfElement, compareFunc); } - [NativeName(NativeNameType.Func, "igBeginDockableDragDropSource")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginDockableDragDropSource([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + /// /// To be documented. /// public static void ImQsort( void* baseValue, nuint count, ulong sizeOfElement, delegate*, int> compareFunc) { - fixed (ImGuiWindow* pwindow = &window) - { - BeginDockableDragDropSourceNative((ImGuiWindow*)pwindow); - } + ImQsortNative(baseValue, count, sizeOfElement, compareFunc); + } + + /// /// To be documented. /// public static void ImQsort( void* baseValue, ulong count, nuint sizeOfElement, delegate*, int> compareFunc) + { + ImQsortNative(baseValue, count, sizeOfElement, compareFunc); + } + + /// /// To be documented. /// public static void ImQsort( void* baseValue, nuint count, nuint sizeOfElement, delegate*, int> compareFunc) + { + ImQsortNative(baseValue, count, sizeOfElement, compareFunc); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBeginDockableDragDropTarget")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginDockableDragDropTarget")] - internal static extern void BeginDockableDragDropTargetNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "igImAlphaBlendColors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImAlphaBlendColorsNative(uint colA, uint colB); - [NativeName(NativeNameType.Func, "igBeginDockableDragDropTarget")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginDockableDragDropTarget([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + /// /// To be documented. /// public static uint ImAlphaBlendColors( uint colA, uint colB) { - BeginDockableDragDropTargetNative(window); + uint ret = ImAlphaBlendColorsNative(colA, colB); + return ret; } - [NativeName(NativeNameType.Func, "igBeginDockableDragDropTarget")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginDockableDragDropTarget([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImIsPowerOfTwo_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImIsPowerOfTwoIntNative(int v); + + /// /// To be documented. /// public static bool ImIsPowerOfTwoInt( int v) { - fixed (ImGuiWindow* pwindow = &window) - { - BeginDockableDragDropTargetNative((ImGuiWindow*)pwindow); - } + byte ret = ImIsPowerOfTwoIntNative(v); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSetWindowDock")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowDock")] - internal static extern void SetWindowDockNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "dock_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dockId, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond); + [LibraryImport(LibName, EntryPoint = "igImIsPowerOfTwo_U64")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImIsPowerOfTwoU64Native(ulong v); - [NativeName(NativeNameType.Func, "igSetWindowDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowDock([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "dock_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dockId, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + /// /// To be documented. /// public static bool ImIsPowerOfTwoU64( ulong v) { - SetWindowDockNative(window, dockId, cond); + byte ret = ImIsPowerOfTwoU64Native(v); + return ret != 0; } - [NativeName(NativeNameType.Func, "igSetWindowDock")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowDock([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "dock_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dockId, [NativeName(NativeNameType.Param, "cond")] [NativeName(NativeNameType.Type, "ImGuiCond")] ImGuiCond cond) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImUpperPowerOfTwo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImUpperPowerOfTwoNative(int v); + + /// /// To be documented. /// public static int ImUpperPowerOfTwo( int v) { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowDockNative((ImGuiWindow*)pwindow, dockId, cond); - } + int ret = ImUpperPowerOfTwoNative(v); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockBuilderDockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderDockWindow")] - internal static extern void DockBuilderDockWindowNative([NativeName(NativeNameType.Param, "window_name")] [NativeName(NativeNameType.Type, "const char*")] byte* windowName, [NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId); + [LibraryImport(LibName, EntryPoint = "igImStricmp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImStricmpNative(byte* str1, byte* str2); - [NativeName(NativeNameType.Func, "igDockBuilderDockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderDockWindow([NativeName(NativeNameType.Param, "window_name")] [NativeName(NativeNameType.Type, "const char*")] byte* windowName, [NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId) + /// /// To be documented. /// public static int ImStricmp( byte* str1, byte* str2) { - DockBuilderDockWindowNative(windowName, nodeId); + int ret = ImStricmpNative(str1, str2); + return ret; } - [NativeName(NativeNameType.Func, "igDockBuilderDockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderDockWindow([NativeName(NativeNameType.Param, "window_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte windowName, [NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId) + /// /// To be documented. /// public static int ImStricmp( byte* str1, ref byte str2) { - fixed (byte* pwindowName = &windowName) + fixed (byte* pstr2 = &str2) { - DockBuilderDockWindowNative((byte*)pwindowName, nodeId); + int ret = ImStricmpNative(str1, (byte*)pstr2); + return ret; } } - [NativeName(NativeNameType.Func, "igDockBuilderDockWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderDockWindow([NativeName(NativeNameType.Param, "window_name")] [NativeName(NativeNameType.Type, "const char*")] string windowName, [NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId) + /// /// To be documented. /// public static int ImStricmp( byte* str1, string str2) { byte* pStr0 = null; int pStrSize0 = 0; - if (windowName != null) + if (str2 != null) { - pStrSize0 = Utils.GetByteCountUTF8(windowName); + pStrSize0 = Utils.GetByteCountUTF8(str2); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -224252,344 +59205,449 @@ public static void DockBuilderDockWindow([NativeName(NativeNameType.Param, "wind byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(windowName, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - DockBuilderDockWindowNative(pStr0, nodeId); + int ret = ImStricmpNative(str1, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockBuilderGetNode")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderGetNode")] - internal static extern ImGuiDockNode* DockBuilderGetNodeNative([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId); + [LibraryImport(LibName, EntryPoint = "igImStrnicmp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImStrnicmpNative(byte* str1, byte* str2, ulong count); - [NativeName(NativeNameType.Func, "igDockBuilderGetNode")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - public static ImGuiDockNode* DockBuilderGetNode([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId) + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, byte* str2, ulong count) { - ImGuiDockNode* ret = DockBuilderGetNodeNative(nodeId); + int ret = ImStrnicmpNative(str1, str2, count); return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockBuilderGetCentralNode")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderGetCentralNode")] - internal static extern ImGuiDockNode* DockBuilderGetCentralNodeNative([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId); - - [NativeName(NativeNameType.Func, "igDockBuilderGetCentralNode")] - [return: NativeName(NativeNameType.Type, "ImGuiDockNode*")] - public static ImGuiDockNode* DockBuilderGetCentralNode([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId) + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, ref byte str2, ulong count) { - ImGuiDockNode* ret = DockBuilderGetCentralNodeNative(nodeId); - return ret; + fixed (byte* pstr2 = &str2) + { + int ret = ImStrnicmpNative(str1, (byte*)pstr2, count); + return ret; + } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockBuilderAddNode")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderAddNode")] - internal static extern int DockBuilderAddNodeNative([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags); - - [NativeName(NativeNameType.Func, "igDockBuilderAddNode")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockBuilderAddNode([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags) + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, string str2, ulong count) { - int ret = DockBuilderAddNodeNative(nodeId, flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (str2 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImStrnicmpNative(str1, pStr0, count); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } - [NativeName(NativeNameType.Func, "igDockBuilderAddNode")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockBuilderAddNode([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId) + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, byte* str2, nuint count) { - int ret = DockBuilderAddNodeNative(nodeId, (ImGuiDockNodeFlags)(0)); + int ret = ImStrnicmpNative(str1, str2, count); return ret; } - [NativeName(NativeNameType.Func, "igDockBuilderAddNode")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockBuilderAddNode() + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, ref byte str2, nuint count) { - int ret = DockBuilderAddNodeNative((int)(0), (ImGuiDockNodeFlags)(0)); - return ret; + fixed (byte* pstr2 = &str2) + { + int ret = ImStrnicmpNative(str1, (byte*)pstr2, count); + return ret; + } } - [NativeName(NativeNameType.Func, "igDockBuilderAddNode")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockBuilderAddNode([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags) + /// /// To be documented. /// public static int ImStrnicmp( byte* str1, string str2, nuint count) { - int ret = DockBuilderAddNodeNative((int)(0), flags); + byte* pStr0 = null; + int pStrSize0 = 0; + if (str2 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImStrnicmpNative(str1, pStr0, count); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockBuilderRemoveNode")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderRemoveNode")] - internal static extern void DockBuilderRemoveNodeNative([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId); + [LibraryImport(LibName, EntryPoint = "igImStrncpy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImStrncpyNative(byte* dst, byte* src, ulong count); - /// /// Remove node and all its child, undock all windows /// [NativeName(NativeNameType.Func, "igDockBuilderRemoveNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderRemoveNode([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId) + /// /// To be documented. /// public static void ImStrncpy( byte* dst, byte* src, ulong count) { - DockBuilderRemoveNodeNative(nodeId); + ImStrncpyNative(dst, src, count); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockBuilderRemoveNodeDockedWindows")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderRemoveNodeDockedWindows")] - internal static extern void DockBuilderRemoveNodeDockedWindowsNative([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "clear_settings_refs")] [NativeName(NativeNameType.Type, "bool")] byte clearSettingsRefs); + /// /// To be documented. /// public static void ImStrncpy( byte* dst, ref byte src, ulong count) + { + fixed (byte* psrc = &src) + { + ImStrncpyNative(dst, (byte*)psrc, count); + } + } - [NativeName(NativeNameType.Func, "igDockBuilderRemoveNodeDockedWindows")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderRemoveNodeDockedWindows([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "clear_settings_refs")] [NativeName(NativeNameType.Type, "bool")] bool clearSettingsRefs) + /// /// To be documented. /// public static void ImStrncpy( byte* dst, string src, ulong count) { - DockBuilderRemoveNodeDockedWindowsNative(nodeId, clearSettingsRefs ? (byte)1 : (byte)0); + byte* pStr0 = null; + int pStrSize0 = 0; + if (src != null) + { + pStrSize0 = Utils.GetByteCountUTF8(src); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(src, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImStrncpyNative(dst, pStr0, count); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - [NativeName(NativeNameType.Func, "igDockBuilderRemoveNodeDockedWindows")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderRemoveNodeDockedWindows([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId) + /// /// To be documented. /// public static void ImStrncpy( byte* dst, byte* src, nuint count) { - DockBuilderRemoveNodeDockedWindowsNative(nodeId, (byte)(1)); + ImStrncpyNative(dst, src, count); } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockBuilderRemoveNodeChildNodes")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderRemoveNodeChildNodes")] - internal static extern void DockBuilderRemoveNodeChildNodesNative([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId); + /// /// To be documented. /// public static void ImStrncpy( byte* dst, ref byte src, nuint count) + { + fixed (byte* psrc = &src) + { + ImStrncpyNative(dst, (byte*)psrc, count); + } + } - /// /// Remove all splithierarchy. All remaining docked windows will be re-docked to the remaining root node (node_id). /// [NativeName(NativeNameType.Func, "igDockBuilderRemoveNodeChildNodes")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderRemoveNodeChildNodes([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId) + /// /// To be documented. /// public static void ImStrncpy( byte* dst, string src, nuint count) { - DockBuilderRemoveNodeChildNodesNative(nodeId); + byte* pStr0 = null; + int pStrSize0 = 0; + if (src != null) + { + pStrSize0 = Utils.GetByteCountUTF8(src); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(src, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImStrncpyNative(dst, pStr0, count); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockBuilderSetNodePos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderSetNodePos")] - internal static extern void DockBuilderSetNodePosNative([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos); + [LibraryImport(LibName, EntryPoint = "igImStrdup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImStrdupNative(byte* str); - [NativeName(NativeNameType.Func, "igDockBuilderSetNodePos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderSetNodePos([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos) + /// /// To be documented. /// public static byte* ImStrdup( byte* str) { - DockBuilderSetNodePosNative(nodeId, pos); + byte* ret = ImStrdupNative(str); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockBuilderSetNodeSize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderSetNodeSize")] - internal static extern void DockBuilderSetNodeSizeNative([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size); - - [NativeName(NativeNameType.Func, "igDockBuilderSetNodeSize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderSetNodeSize([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 size) + /// /// To be documented. /// public static string ImStrdupS( byte* str) { - DockBuilderSetNodeSizeNative(nodeId, size); + string ret = Utils.DecodeStringUTF8(ImStrdupNative(str)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDockBuilderSplitNode")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderSplitNode")] - internal static extern int DockBuilderSplitNodeNative([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "size_ratio_for_node_at_dir")] [NativeName(NativeNameType.Type, "float")] float sizeRatioForNodeAtDir, [NativeName(NativeNameType.Param, "out_id_at_dir")] [NativeName(NativeNameType.Type, "ImGuiID*")] int* outIdAtDir, [NativeName(NativeNameType.Param, "out_id_at_opposite_dir")] [NativeName(NativeNameType.Type, "ImGuiID*")] int* outIdAtOppositeDir); + [LibraryImport(LibName, EntryPoint = "igImStrdupcpy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImStrdupcpyNative(byte* dst, ulong* pDstSize, byte* str); - /// /// Create 2 child nodes in this parent node. /// [NativeName(NativeNameType.Func, "igDockBuilderSplitNode")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockBuilderSplitNode([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "size_ratio_for_node_at_dir")] [NativeName(NativeNameType.Type, "float")] float sizeRatioForNodeAtDir, [NativeName(NativeNameType.Param, "out_id_at_dir")] [NativeName(NativeNameType.Type, "ImGuiID*")] int* outIdAtDir, [NativeName(NativeNameType.Param, "out_id_at_opposite_dir")] [NativeName(NativeNameType.Type, "ImGuiID*")] int* outIdAtOppositeDir) + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ulong* pDstSize, byte* str) { - int ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); + byte* ret = ImStrdupcpyNative(dst, pDstSize, str); + return ret; + } + + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ulong* pDstSize, byte* str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, str)); return ret; } - /// /// Create 2 child nodes in this parent node. /// [NativeName(NativeNameType.Func, "igDockBuilderSplitNode")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockBuilderSplitNode([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "size_ratio_for_node_at_dir")] [NativeName(NativeNameType.Type, "float")] float sizeRatioForNodeAtDir, [NativeName(NativeNameType.Param, "out_id_at_dir")] [NativeName(NativeNameType.Type, "ImGuiID*")] ref int outIdAtDir, [NativeName(NativeNameType.Param, "out_id_at_opposite_dir")] [NativeName(NativeNameType.Type, "ImGuiID*")] int* outIdAtOppositeDir) + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ref nuint pDstSize, byte* str) { - fixed (int* poutIdAtDir = &outIdAtDir) + fixed (nuint* ppDstSize = &pDstSize) { - int ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, (int*)poutIdAtDir, outIdAtOppositeDir); + byte* ret = ImStrdupcpyNative(dst, (ulong*)ppDstSize, str); return ret; } } - /// /// Create 2 child nodes in this parent node. /// [NativeName(NativeNameType.Func, "igDockBuilderSplitNode")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockBuilderSplitNode([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "size_ratio_for_node_at_dir")] [NativeName(NativeNameType.Type, "float")] float sizeRatioForNodeAtDir, [NativeName(NativeNameType.Param, "out_id_at_dir")] [NativeName(NativeNameType.Type, "ImGuiID*")] int* outIdAtDir, [NativeName(NativeNameType.Param, "out_id_at_opposite_dir")] [NativeName(NativeNameType.Type, "ImGuiID*")] ref int outIdAtOppositeDir) + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ref nuint pDstSize, byte* str) { - fixed (int* poutIdAtOppositeDir = &outIdAtOppositeDir) + fixed (nuint* ppDstSize = &pDstSize) { - int ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, (int*)poutIdAtOppositeDir); + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (ulong*)ppDstSize, str)); return ret; } } - /// /// Create 2 child nodes in this parent node. /// [NativeName(NativeNameType.Func, "igDockBuilderSplitNode")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int DockBuilderSplitNode([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId, [NativeName(NativeNameType.Param, "split_dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir splitDir, [NativeName(NativeNameType.Param, "size_ratio_for_node_at_dir")] [NativeName(NativeNameType.Type, "float")] float sizeRatioForNodeAtDir, [NativeName(NativeNameType.Param, "out_id_at_dir")] [NativeName(NativeNameType.Type, "ImGuiID*")] ref int outIdAtDir, [NativeName(NativeNameType.Param, "out_id_at_opposite_dir")] [NativeName(NativeNameType.Type, "ImGuiID*")] ref int outIdAtOppositeDir) + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ulong* pDstSize, ref byte str) { - fixed (int* poutIdAtDir = &outIdAtDir) + fixed (byte* pstr = &str) { - fixed (int* poutIdAtOppositeDir = &outIdAtOppositeDir) - { - int ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, (int*)poutIdAtDir, (int*)poutIdAtOppositeDir); - return ret; - } + byte* ret = ImStrdupcpyNative(dst, pDstSize, (byte*)pstr); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockBuilderCopyDockSpace")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderCopyDockSpace")] - internal static extern void DockBuilderCopyDockSpaceNative([NativeName(NativeNameType.Param, "src_dockspace_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int srcDockspaceId, [NativeName(NativeNameType.Param, "dst_dockspace_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dstDockspaceId, [NativeName(NativeNameType.Param, "in_window_remap_pairs")] [NativeName(NativeNameType.Type, "ImVector_const_charPtr*")] ImVectorConstCharPtr* inWindowRemapPairs); - - [NativeName(NativeNameType.Func, "igDockBuilderCopyDockSpace")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderCopyDockSpace([NativeName(NativeNameType.Param, "src_dockspace_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int srcDockspaceId, [NativeName(NativeNameType.Param, "dst_dockspace_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dstDockspaceId, [NativeName(NativeNameType.Param, "in_window_remap_pairs")] [NativeName(NativeNameType.Type, "ImVector_const_charPtr*")] ImVectorConstCharPtr* inWindowRemapPairs) + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ulong* pDstSize, ref byte str) { - DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); + fixed (byte* pstr = &str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, (byte*)pstr)); + return ret; + } } - [NativeName(NativeNameType.Func, "igDockBuilderCopyDockSpace")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderCopyDockSpace([NativeName(NativeNameType.Param, "src_dockspace_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int srcDockspaceId, [NativeName(NativeNameType.Param, "dst_dockspace_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dstDockspaceId, [NativeName(NativeNameType.Param, "in_window_remap_pairs")] [NativeName(NativeNameType.Type, "ImVector_const_charPtr*")] ref ImVectorConstCharPtr inWindowRemapPairs) + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ulong* pDstSize, string str) { - fixed (ImVectorConstCharPtr* pinWindowRemapPairs = &inWindowRemapPairs) + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) { - DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, (ImVectorConstCharPtr*)pinWindowRemapPairs); + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStrdupcpyNative(dst, pDstSize, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockBuilderCopyNode")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderCopyNode")] - internal static extern void DockBuilderCopyNodeNative([NativeName(NativeNameType.Param, "src_node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int srcNodeId, [NativeName(NativeNameType.Param, "dst_node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dstNodeId, [NativeName(NativeNameType.Param, "out_node_remap_pairs")] [NativeName(NativeNameType.Type, "ImVector_ImGuiID*")] ImVectorImGuiID* outNodeRemapPairs); - - [NativeName(NativeNameType.Func, "igDockBuilderCopyNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderCopyNode([NativeName(NativeNameType.Param, "src_node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int srcNodeId, [NativeName(NativeNameType.Param, "dst_node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dstNodeId, [NativeName(NativeNameType.Param, "out_node_remap_pairs")] [NativeName(NativeNameType.Type, "ImVector_ImGuiID*")] ImVectorImGuiID* outNodeRemapPairs) + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ulong* pDstSize, string str) { - DockBuilderCopyNodeNative(srcNodeId, dstNodeId, outNodeRemapPairs); + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, pDstSize, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } - [NativeName(NativeNameType.Func, "igDockBuilderCopyNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderCopyNode([NativeName(NativeNameType.Param, "src_node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int srcNodeId, [NativeName(NativeNameType.Param, "dst_node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int dstNodeId, [NativeName(NativeNameType.Param, "out_node_remap_pairs")] [NativeName(NativeNameType.Type, "ImVector_ImGuiID*")] ref ImVectorImGuiID outNodeRemapPairs) + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ref nuint pDstSize, ref byte str) { - fixed (ImVectorImGuiID* poutNodeRemapPairs = &outNodeRemapPairs) + fixed (nuint* ppDstSize = &pDstSize) { - DockBuilderCopyNodeNative(srcNodeId, dstNodeId, (ImVectorImGuiID*)poutNodeRemapPairs); + fixed (byte* pstr = &str) + { + byte* ret = ImStrdupcpyNative(dst, (ulong*)ppDstSize, (byte*)pstr); + return ret; + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockBuilderCopyWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderCopyWindowSettings")] - internal static extern void DockBuilderCopyWindowSettingsNative([NativeName(NativeNameType.Param, "src_name")] [NativeName(NativeNameType.Type, "const char*")] byte* srcName, [NativeName(NativeNameType.Param, "dst_name")] [NativeName(NativeNameType.Type, "const char*")] byte* dstName); - - [NativeName(NativeNameType.Func, "igDockBuilderCopyWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderCopyWindowSettings([NativeName(NativeNameType.Param, "src_name")] [NativeName(NativeNameType.Type, "const char*")] byte* srcName, [NativeName(NativeNameType.Param, "dst_name")] [NativeName(NativeNameType.Type, "const char*")] byte* dstName) + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ref nuint pDstSize, ref byte str) { - DockBuilderCopyWindowSettingsNative(srcName, dstName); + fixed (nuint* ppDstSize = &pDstSize) + { + fixed (byte* pstr = &str) + { + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (ulong*)ppDstSize, (byte*)pstr)); + return ret; + } + } } - [NativeName(NativeNameType.Func, "igDockBuilderCopyWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderCopyWindowSettings([NativeName(NativeNameType.Param, "src_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte srcName, [NativeName(NativeNameType.Param, "dst_name")] [NativeName(NativeNameType.Type, "const char*")] byte* dstName) + /// /// To be documented. /// public static byte* ImStrdupcpy( byte* dst, ref nuint pDstSize, string str) { - fixed (byte* psrcName = &srcName) + fixed (nuint* ppDstSize = &pDstSize) { - DockBuilderCopyWindowSettingsNative((byte*)psrcName, dstName); + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStrdupcpyNative(dst, (ulong*)ppDstSize, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } } - [NativeName(NativeNameType.Func, "igDockBuilderCopyWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderCopyWindowSettings([NativeName(NativeNameType.Param, "src_name")] [NativeName(NativeNameType.Type, "const char*")] string srcName, [NativeName(NativeNameType.Param, "dst_name")] [NativeName(NativeNameType.Type, "const char*")] byte* dstName) + /// /// To be documented. /// public static string ImStrdupcpyS( byte* dst, ref nuint pDstSize, string str) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (srcName != null) + fixed (nuint* ppDstSize = &pDstSize) { - pStrSize0 = Utils.GetByteCountUTF8(srcName); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - else + string ret = Utils.DecodeStringUTF8(ImStrdupcpyNative(dst, (ulong*)ppDstSize, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + Utils.Free(pStr0); } - int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + return ret; } - DockBuilderCopyWindowSettingsNative(pStr0, dstName); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImStrchrRange")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImStrchrRangeNative(byte* strBegin, byte* strEnd, byte c); + + /// /// To be documented. /// public static byte* ImStrchrRange( byte* strBegin, byte* strEnd, byte c) + { + byte* ret = ImStrchrRangeNative(strBegin, strEnd, c); + return ret; + } + + /// /// To be documented. /// public static string ImStrchrRangeS( byte* strBegin, byte* strEnd, byte c) + { + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, strEnd, c)); + return ret; + } + + /// /// To be documented. /// public static byte* ImStrchrRange( byte* strBegin, ref byte strEnd, byte c) + { + fixed (byte* pstrEnd = &strEnd) { - Utils.Free(pStr0); + byte* ret = ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c); + return ret; } } - [NativeName(NativeNameType.Func, "igDockBuilderCopyWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderCopyWindowSettings([NativeName(NativeNameType.Param, "src_name")] [NativeName(NativeNameType.Type, "const char*")] byte* srcName, [NativeName(NativeNameType.Param, "dst_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte dstName) + /// /// To be documented. /// public static string ImStrchrRangeS( byte* strBegin, ref byte strEnd, byte c) { - fixed (byte* pdstName = &dstName) + fixed (byte* pstrEnd = &strEnd) { - DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName); + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, (byte*)pstrEnd, c)); + return ret; } } - [NativeName(NativeNameType.Func, "igDockBuilderCopyWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderCopyWindowSettings([NativeName(NativeNameType.Param, "src_name")] [NativeName(NativeNameType.Type, "const char*")] byte* srcName, [NativeName(NativeNameType.Param, "dst_name")] [NativeName(NativeNameType.Type, "const char*")] string dstName) + /// /// To be documented. /// public static byte* ImStrchrRange( byte* strBegin, string strEnd, byte c) { byte* pStr0 = null; int pStrSize0 = 0; - if (dstName != null) + if (strEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(dstName); + pStrSize0 = Utils.GetByteCountUTF8(strEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -224599,38 +59657,24 @@ public static void DockBuilderCopyWindowSettings([NativeName(NativeNameType.Para byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - DockBuilderCopyWindowSettingsNative(srcName, pStr0); + byte* ret = ImStrchrRangeNative(strBegin, pStr0, c); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igDockBuilderCopyWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderCopyWindowSettings([NativeName(NativeNameType.Param, "src_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte srcName, [NativeName(NativeNameType.Param, "dst_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte dstName) - { - fixed (byte* psrcName = &srcName) - { - fixed (byte* pdstName = &dstName) - { - DockBuilderCopyWindowSettingsNative((byte*)psrcName, (byte*)pdstName); - } - } - } - - [NativeName(NativeNameType.Func, "igDockBuilderCopyWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderCopyWindowSettings([NativeName(NativeNameType.Param, "src_name")] [NativeName(NativeNameType.Type, "const char*")] string srcName, [NativeName(NativeNameType.Param, "dst_name")] [NativeName(NativeNameType.Type, "const char*")] string dstName) + /// /// To be documented. /// public static string ImStrchrRangeS( byte* strBegin, string strEnd, byte c) { byte* pStr0 = null; int pStrSize0 = 0; - if (srcName != null) + if (strEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(srcName); + pStrSize0 = Utils.GetByteCountUTF8(strEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -224640,252 +59684,61 @@ public static void DockBuilderCopyWindowSettings([NativeName(NativeNameType.Para byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(srcName, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (dstName != null) - { - pStrSize1 = Utils.GetByteCountUTF8(dstName); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(dstName, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - DockBuilderCopyWindowSettingsNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + string ret = Utils.DecodeStringUTF8(ImStrchrRangeNative(strBegin, pStr0, c)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDockBuilderFinish")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDockBuilderFinish")] - internal static extern void DockBuilderFinishNative([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId); - - [NativeName(NativeNameType.Func, "igDockBuilderFinish")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DockBuilderFinish([NativeName(NativeNameType.Param, "node_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int nodeId) - { - DockBuilderFinishNative(nodeId); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPushFocusScope")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushFocusScope")] - internal static extern void PushFocusScopeNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - [NativeName(NativeNameType.Func, "igPushFocusScope")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushFocusScope([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - PushFocusScopeNative(id); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPopFocusScope")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopFocusScope")] - internal static extern void PopFocusScopeNative(); - - [NativeName(NativeNameType.Func, "igPopFocusScope")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopFocusScope() - { - PopFocusScopeNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetCurrentFocusScope")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetCurrentFocusScope")] - internal static extern int GetCurrentFocusScopeNative(); - - /// /// Focus scope we are outputting into, set by PushFocusScope() /// [NativeName(NativeNameType.Func, "igGetCurrentFocusScope")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetCurrentFocusScope() - { - int ret = GetCurrentFocusScopeNative(); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igIsDragDropActive")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsDragDropActive")] - internal static extern byte IsDragDropActiveNative(); - - [NativeName(NativeNameType.Func, "igIsDragDropActive")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDragDropActive() - { - byte ret = IsDragDropActiveNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginDragDropTargetCustom")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginDragDropTargetCustom")] - internal static extern byte BeginDragDropTargetCustomNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - [NativeName(NativeNameType.Func, "igBeginDragDropTargetCustom")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginDragDropTargetCustom([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - byte ret = BeginDragDropTargetCustomNative(bb, id); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igClearDragDrop")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igClearDragDrop")] - internal static extern void ClearDragDropNative(); - - [NativeName(NativeNameType.Func, "igClearDragDrop")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ClearDragDrop() - { - ClearDragDropNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igIsDragDropPayloadBeingAccepted")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsDragDropPayloadBeingAccepted")] - internal static extern byte IsDragDropPayloadBeingAcceptedNative(); - - [NativeName(NativeNameType.Func, "igIsDragDropPayloadBeingAccepted")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsDragDropPayloadBeingAccepted() - { - byte ret = IsDragDropPayloadBeingAcceptedNative(); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igRenderDragDropTargetRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderDragDropTargetRect")] - internal static extern void RenderDragDropTargetRectNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb); - - [NativeName(NativeNameType.Func, "igRenderDragDropTargetRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderDragDropTargetRect([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb) - { - RenderDragDropTargetRectNative(bb); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSetWindowClipRectBeforeSetChannel")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSetWindowClipRectBeforeSetChannel")] - internal static extern void SetWindowClipRectBeforeSetChannelNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect clipRect); - - [NativeName(NativeNameType.Func, "igSetWindowClipRectBeforeSetChannel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowClipRectBeforeSetChannel([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect clipRect) - { - SetWindowClipRectBeforeSetChannelNative(window, clipRect); - } - - [NativeName(NativeNameType.Func, "igSetWindowClipRectBeforeSetChannel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SetWindowClipRectBeforeSetChannel([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect clipRect) - { - fixed (ImGuiWindow* pwindow = &window) - { - SetWindowClipRectBeforeSetChannelNative((ImGuiWindow*)pwindow, clipRect); - } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginColumns")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginColumns")] - internal static extern void BeginColumnsNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiOldColumnFlags")] ImGuiOldColumnFlags flags); + [LibraryImport(LibName, EntryPoint = "igImStreolRange")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImStreolRangeNative(byte* str, byte* strEnd); - /// /// setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). /// [NativeName(NativeNameType.Func, "igBeginColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginColumns([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiOldColumnFlags")] ImGuiOldColumnFlags flags) + /// /// To be documented. /// public static byte* ImStreolRange( byte* str, byte* strEnd) { - BeginColumnsNative(strId, count, flags); + byte* ret = ImStreolRangeNative(str, strEnd); + return ret; } - /// /// setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). /// [NativeName(NativeNameType.Func, "igBeginColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginColumns([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + /// /// To be documented. /// public static string ImStreolRangeS( byte* str, byte* strEnd) { - BeginColumnsNative(strId, count, (ImGuiOldColumnFlags)(0)); + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, strEnd)); + return ret; } - /// /// setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). /// [NativeName(NativeNameType.Func, "igBeginColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginColumns([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiOldColumnFlags")] ImGuiOldColumnFlags flags) + /// /// To be documented. /// public static byte* ImStreolRange( byte* str, ref byte strEnd) { - fixed (byte* pstrId = &strId) + fixed (byte* pstrEnd = &strEnd) { - BeginColumnsNative((byte*)pstrId, count, flags); + byte* ret = ImStreolRangeNative(str, (byte*)pstrEnd); + return ret; } } - /// /// setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). /// [NativeName(NativeNameType.Func, "igBeginColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginColumns([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + /// /// To be documented. /// public static string ImStreolRangeS( byte* str, ref byte strEnd) { - fixed (byte* pstrId = &strId) + fixed (byte* pstrEnd = &strEnd) { - BeginColumnsNative((byte*)pstrId, count, (ImGuiOldColumnFlags)(0)); + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, (byte*)pstrEnd)); + return ret; } } - /// /// setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). /// [NativeName(NativeNameType.Func, "igBeginColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginColumns([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiOldColumnFlags")] ImGuiOldColumnFlags flags) + /// /// To be documented. /// public static byte* ImStreolRange( byte* str, string strEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (strId != null) + if (strEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); + pStrSize0 = Utils.GetByteCountUTF8(strEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -224895,25 +59748,24 @@ public static void BeginColumns([NativeName(NativeNameType.Param, "str_id")] [Na byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - BeginColumnsNative(pStr0, count, flags); + byte* ret = ImStreolRangeNative(str, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } - /// /// setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). /// [NativeName(NativeNameType.Func, "igBeginColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void BeginColumns([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + /// /// To be documented. /// public static string ImStreolRangeS( byte* str, string strEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (strId != null) + if (strEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); + pStrSize0 = Utils.GetByteCountUTF8(strEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -224923,112 +59775,61 @@ public static void BeginColumns([NativeName(NativeNameType.Param, "str_id")] [Na byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - BeginColumnsNative(pStr0, count, (ImGuiOldColumnFlags)(0)); + string ret = Utils.DecodeStringUTF8(ImStreolRangeNative(str, pStr0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igEndColumns")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igEndColumns")] - internal static extern void EndColumnsNative(); - - /// /// close columns /// [NativeName(NativeNameType.Func, "igEndColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void EndColumns() - { - EndColumnsNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPushColumnClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushColumnClipRect")] - internal static extern void PushColumnClipRectNative([NativeName(NativeNameType.Param, "column_index")] [NativeName(NativeNameType.Type, "int")] int columnIndex); - - [NativeName(NativeNameType.Func, "igPushColumnClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushColumnClipRect([NativeName(NativeNameType.Param, "column_index")] [NativeName(NativeNameType.Type, "int")] int columnIndex) - { - PushColumnClipRectNative(columnIndex); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPushColumnsBackground")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPushColumnsBackground")] - internal static extern void PushColumnsBackgroundNative(); + [LibraryImport(LibName, EntryPoint = "igImStristr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImStristrNative(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd); - [NativeName(NativeNameType.Func, "igPushColumnsBackground")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PushColumnsBackground() + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) { - PushColumnsBackgroundNative(); + byte* ret = ImStristrNative(haystack, haystackEnd, needle, needleEnd); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igPopColumnsBackground")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPopColumnsBackground")] - internal static extern void PopColumnsBackgroundNative(); - - [NativeName(NativeNameType.Func, "igPopColumnsBackground")] - [return: NativeName(NativeNameType.Type, "void")] - public static void PopColumnsBackground() + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd) { - PopColumnsBackgroundNative(); + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, needleEnd)); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetColumnsID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetColumnsID")] - internal static extern int GetColumnsIDNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count); - - [NativeName(NativeNameType.Func, "igGetColumnsID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetColumnsID([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) { - int ret = GetColumnsIDNative(strId, count); - return ret; + fixed (byte* phaystackEnd = &haystackEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd); + return ret; + } } - [NativeName(NativeNameType.Func, "igGetColumnsID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetColumnsID([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + /// /// To be documented. /// public static string ImStristrS( byte* haystack, ref byte haystackEnd, byte* needle, byte* needleEnd) { - fixed (byte* pstrId = &strId) + fixed (byte* phaystackEnd = &haystackEnd) { - int ret = GetColumnsIDNative((byte*)pstrId, count); + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, needleEnd)); return ret; } } - [NativeName(NativeNameType.Func, "igGetColumnsID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetColumnsID([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, string haystackEnd, byte* needle, byte* needleEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (strId != null) + if (haystackEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(strId); + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -225038,10 +59839,10 @@ public static int GetColumnsID([NativeName(NativeNameType.Param, "str_id")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = GetColumnsIDNative(pStr0, count); + byte* ret = ImStristrNative(haystack, pStr0, needle, needleEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -225049,402 +59850,250 @@ public static int GetColumnsID([NativeName(NativeNameType.Param, "str_id")] [Nat return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igFindOrCreateColumns")] - [return: NativeName(NativeNameType.Type, "ImGuiOldColumns*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindOrCreateColumns")] - internal static extern ImGuiOldColumns* FindOrCreateColumnsNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - [NativeName(NativeNameType.Func, "igFindOrCreateColumns")] - [return: NativeName(NativeNameType.Type, "ImGuiOldColumns*")] - public static ImGuiOldColumns* FindOrCreateColumns([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - ImGuiOldColumns* ret = FindOrCreateColumnsNative(window, id); - return ret; - } - - [NativeName(NativeNameType.Func, "igFindOrCreateColumns")] - [return: NativeName(NativeNameType.Type, "ImGuiOldColumns*")] - public static ImGuiOldColumns* FindOrCreateColumns([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + /// /// To be documented. /// public static string ImStristrS( byte* haystack, string haystackEnd, byte* needle, byte* needleEnd) { - fixed (ImGuiWindow* pwindow = &window) + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) { - ImGuiOldColumns* ret = FindOrCreateColumnsNative((ImGuiWindow*)pwindow, id); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetColumnOffsetFromNorm")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetColumnOffsetFromNorm")] - internal static extern float GetColumnOffsetFromNormNative([NativeName(NativeNameType.Param, "columns")] [NativeName(NativeNameType.Type, "const ImGuiOldColumns*")] ImGuiOldColumns* columns, [NativeName(NativeNameType.Param, "offset_norm")] [NativeName(NativeNameType.Type, "float")] float offsetNorm); - - [NativeName(NativeNameType.Func, "igGetColumnOffsetFromNorm")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetColumnOffsetFromNorm([NativeName(NativeNameType.Param, "columns")] [NativeName(NativeNameType.Type, "const ImGuiOldColumns*")] ImGuiOldColumns* columns, [NativeName(NativeNameType.Param, "offset_norm")] [NativeName(NativeNameType.Type, "float")] float offsetNorm) - { - float ret = GetColumnOffsetFromNormNative(columns, offsetNorm); return ret; } - [NativeName(NativeNameType.Func, "igGetColumnOffsetFromNorm")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetColumnOffsetFromNorm([NativeName(NativeNameType.Param, "columns")] [NativeName(NativeNameType.Type, "const ImGuiOldColumns*")] ref ImGuiOldColumns columns, [NativeName(NativeNameType.Param, "offset_norm")] [NativeName(NativeNameType.Type, "float")] float offsetNorm) + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) { - fixed (ImGuiOldColumns* pcolumns = &columns) + fixed (byte* pneedle = &needle) { - float ret = GetColumnOffsetFromNormNative((ImGuiOldColumns*)pcolumns, offsetNorm); + byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd); return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetColumnNormFromOffset")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetColumnNormFromOffset")] - internal static extern float GetColumnNormFromOffsetNative([NativeName(NativeNameType.Param, "columns")] [NativeName(NativeNameType.Type, "const ImGuiOldColumns*")] ImGuiOldColumns* columns, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "float")] float offset); - - [NativeName(NativeNameType.Func, "igGetColumnNormFromOffset")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetColumnNormFromOffset([NativeName(NativeNameType.Param, "columns")] [NativeName(NativeNameType.Type, "const ImGuiOldColumns*")] ImGuiOldColumns* columns, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "float")] float offset) - { - float ret = GetColumnNormFromOffsetNative(columns, offset); - return ret; - } - - [NativeName(NativeNameType.Func, "igGetColumnNormFromOffset")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GetColumnNormFromOffset([NativeName(NativeNameType.Param, "columns")] [NativeName(NativeNameType.Type, "const ImGuiOldColumns*")] ref ImGuiOldColumns columns, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "float")] float offset) + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, ref byte needle, byte* needleEnd) { - fixed (ImGuiOldColumns* pcolumns = &columns) + fixed (byte* pneedle = &needle) { - float ret = GetColumnNormFromOffsetNative((ImGuiOldColumns*)pcolumns, offset); + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, needleEnd)); return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableOpenContextMenu")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableOpenContextMenu")] - internal static extern void TableOpenContextMenuNative([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN); - - [NativeName(NativeNameType.Func, "igTableOpenContextMenu")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableOpenContextMenu([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) - { - TableOpenContextMenuNative(columnN); - } - - [NativeName(NativeNameType.Func, "igTableOpenContextMenu")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableOpenContextMenu() - { - TableOpenContextMenuNative((int)(-1)); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableSetColumnWidth")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSetColumnWidth")] - internal static extern void TableSetColumnWidthNative([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width); - - [NativeName(NativeNameType.Func, "igTableSetColumnWidth")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetColumnWidth([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) - { - TableSetColumnWidthNative(columnN, width); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableSetColumnSortDirection")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSetColumnSortDirection")] - internal static extern void TableSetColumnSortDirectionNative([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN, [NativeName(NativeNameType.Param, "sort_direction")] [NativeName(NativeNameType.Type, "ImGuiSortDirection")] ImGuiSortDirection sortDirection, [NativeName(NativeNameType.Param, "append_to_sort_specs")] [NativeName(NativeNameType.Type, "bool")] byte appendToSortSpecs); - - [NativeName(NativeNameType.Func, "igTableSetColumnSortDirection")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetColumnSortDirection([NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN, [NativeName(NativeNameType.Param, "sort_direction")] [NativeName(NativeNameType.Type, "ImGuiSortDirection")] ImGuiSortDirection sortDirection, [NativeName(NativeNameType.Param, "append_to_sort_specs")] [NativeName(NativeNameType.Type, "bool")] bool appendToSortSpecs) - { - TableSetColumnSortDirectionNative(columnN, sortDirection, appendToSortSpecs ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetHoveredColumn")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetHoveredColumn")] - internal static extern int TableGetHoveredColumnNative(); - - /// /// May use (TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) instead. Return hovered column. return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. /// [NativeName(NativeNameType.Func, "igTableGetHoveredColumn")] - [return: NativeName(NativeNameType.Type, "int")] - public static int TableGetHoveredColumn() - { - int ret = TableGetHoveredColumnNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetHeaderRowHeight")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetHeaderRowHeight")] - internal static extern float TableGetHeaderRowHeightNative(); - - [NativeName(NativeNameType.Func, "igTableGetHeaderRowHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public static float TableGetHeaderRowHeight() - { - float ret = TableGetHeaderRowHeightNative(); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTablePushBackgroundChannel")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTablePushBackgroundChannel")] - internal static extern void TablePushBackgroundChannelNative(); - - [NativeName(NativeNameType.Func, "igTablePushBackgroundChannel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TablePushBackgroundChannel() - { - TablePushBackgroundChannelNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTablePopBackgroundChannel")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTablePopBackgroundChannel")] - internal static extern void TablePopBackgroundChannelNative(); - - [NativeName(NativeNameType.Func, "igTablePopBackgroundChannel")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TablePopBackgroundChannel() - { - TablePopBackgroundChannelNative(); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igGetCurrentTable")] - [return: NativeName(NativeNameType.Type, "ImGuiTable*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetCurrentTable")] - internal static extern ImGuiTable* GetCurrentTableNative(); - - [NativeName(NativeNameType.Func, "igGetCurrentTable")] - [return: NativeName(NativeNameType.Type, "ImGuiTable*")] - public static ImGuiTable* GetCurrentTable() + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, string needle, byte* needleEnd) { - ImGuiTable* ret = GetCurrentTableNative(); + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, needleEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableFindByID")] - [return: NativeName(NativeNameType.Type, "ImGuiTable*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableFindByID")] - internal static extern ImGuiTable* TableFindByIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - [NativeName(NativeNameType.Func, "igTableFindByID")] - [return: NativeName(NativeNameType.Type, "ImGuiTable*")] - public static ImGuiTable* TableFindByID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, string needle, byte* needleEnd) { - ImGuiTable* ret = TableFindByIDNative(id); + byte* pStr0 = null; + int pStrSize0 = 0; + if (needle != null) + { + pStrSize0 = Utils.GetByteCountUTF8(needle); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, needleEnd)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginTableEx")] - internal static extern byte BeginTableExNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth); - - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, innerWidth); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, (float)(0.0f)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) - { - byte ret = BeginTableExNative(name, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) { - fixed (byte* pname = &name) + fixed (byte* phaystackEnd = &haystackEnd) { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, innerWidth); - return ret != 0; + fixed (byte* pneedle = &needle) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd); + return ret; + } } } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) + /// /// To be documented. /// public static string ImStristrS( byte* haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd) { - fixed (byte* pname = &name) + fixed (byte* phaystackEnd = &haystackEnd) { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, outerSize, (float)(0.0f)); - return ret != 0; + fixed (byte* pneedle = &needle) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd)); + return ret; + } } } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags) + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, string haystackEnd, string needle, byte* needleEnd) { - fixed (byte* pname = &name) + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount) - { - fixed (byte* pname = &name) + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); - return ret != 0; + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - } - - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) - { - fixed (byte* pname = &name) + byte* ret = ImStristrNative(haystack, pStr0, pStr1, needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); - return ret != 0; + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) + /// /// To be documented. /// public static string ImStristrS( byte* haystack, string haystackEnd, string needle, byte* needleEnd) { - fixed (byte* pname = &name) + byte* pStr0 = null; + int pStrSize0 = 0; + if (haystackEnd != null) { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, needleEnd)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) { - fixed (byte* pname = &name) + fixed (byte* pneedleEnd = &needleEnd) { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); - return ret != 0; + byte* ret = ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd); + return ret; } } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, byte* needle, ref byte needleEnd) { - fixed (byte* pname = &name) + fixed (byte* pneedleEnd = &needleEnd) { - byte ret = BeginTableExNative((byte*)pname, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); - return ret != 0; + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, (byte*)pneedleEnd)); + return ret; } } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, byte* needle, string needleEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (needleEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -225454,26 +60103,24 @@ public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, innerWidth); + byte* ret = ImStristrNative(haystack, haystackEnd, needle, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, byte* needle, string needleEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (needleEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(needleEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -225483,26 +60130,48 @@ public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, outerSize, (float)(0.0f)); + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, needle, pStr0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd)); + return ret; + } + } } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags) + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, string haystackEnd, byte* needle, string needleEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (haystackEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -225512,26 +60181,45 @@ public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), (float)(0.0f)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(haystack, pStr0, needle, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount) + /// /// To be documented. /// public static string ImStristrS( byte* haystack, string haystackEnd, byte* needle, string needleEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (haystackEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -225541,26 +60229,69 @@ public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), (float)(0.0f)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, needle, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize) + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, byte* haystackEnd, string needle, string needleEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (needle != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(needle); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -225570,26 +60301,45 @@ public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, (float)(0.0f)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImStristrNative(haystack, haystackEnd, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTableFlags")] ImGuiTableFlags flags, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) + /// /// To be documented. /// public static string ImStristrS( byte* haystack, byte* haystackEnd, string needle, string needleEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (needle != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(needle); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -225599,26 +60349,75 @@ public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = BeginTableExNative(pStr0, id, columnsCount, flags, (Vector2)(new Vector2(0,0)), innerWidth); + byte* pStr1 = null; + int pStrSize1 = 0; + if (needleEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, haystackEnd, pStr0, pStr1)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; + } + + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + byte* ret = ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd); + return ret; + } + } + } + } + + /// /// To be documented. /// public static string ImStristrS( byte* haystack, ref byte haystackEnd, ref byte needle, ref byte needleEnd) + { + fixed (byte* phaystackEnd = &haystackEnd) + { + fixed (byte* pneedle = &needle) + { + fixed (byte* pneedleEnd = &needleEnd) + { + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, (byte*)phaystackEnd, (byte*)pneedle, (byte*)pneedleEnd)); + return ret; + } + } + } } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) + /// /// To be documented. /// public static byte* ImStristr( byte* haystack, string haystackEnd, string needle, string needleEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (haystackEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -225628,26 +60427,66 @@ public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), (Vector2)(new Vector2(0,0)), innerWidth); + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needleEnd != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + byte* ret = ImStristrNative(haystack, pStr0, pStr1, pStr2); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; } - [NativeName(NativeNameType.Func, "igBeginTableEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount, [NativeName(NativeNameType.Param, "outer_size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 outerSize, [NativeName(NativeNameType.Param, "inner_width")] [NativeName(NativeNameType.Type, "float")] float innerWidth) + /// /// To be documented. /// public static string ImStristrS( byte* haystack, string haystackEnd, string needle, string needleEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (name != null) + if (haystackEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(name); + pStrSize0 = Utils.GetByteCountUTF8(haystackEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -225657,1147 +60496,1241 @@ public static bool BeginTableEx([NativeName(NativeNameType.Param, "name")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = BeginTableExNative(pStr0, id, columnsCount, (ImGuiTableFlags)(0), outerSize, innerWidth); + byte* pStr1 = null; + int pStrSize1 = 0; + if (needle != null) + { + pStrSize1 = Utils.GetByteCountUTF8(needle); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* pStr2 = null; + int pStrSize2 = 0; + if (needleEnd != null) + { + pStrSize2 = Utils.GetByteCountUTF8(needleEnd); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + pStr2 = Utils.Alloc(pStrSize2 + 1); + } + else + { + byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; + pStr2 = pStrStack2; + } + int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2); + pStr2[pStrOffset2] = 0; + } + string ret = Utils.DecodeStringUTF8(ImStristrNative(haystack, pStr0, pStr1, pStr2)); + if (pStrSize2 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr2); + } + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableBeginInitMemory")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableBeginInitMemory")] - internal static extern void TableBeginInitMemoryNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount); - - [NativeName(NativeNameType.Func, "igTableBeginInitMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableBeginInitMemory([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount) - { - TableBeginInitMemoryNative(table, columnsCount); - } + [LibraryImport(LibName, EntryPoint = "igImStrTrimBlanks")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImTrimBlanksNative(byte* str); - [NativeName(NativeNameType.Func, "igTableBeginInitMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableBeginInitMemory([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount) + /// /// To be documented. /// public static void ImTrimBlanks( byte* str) { - fixed (ImGuiTable* ptable = &table) - { - TableBeginInitMemoryNative((ImGuiTable*)ptable, columnsCount); - } + ImTrimBlanksNative(str); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableBeginApplyRequests")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableBeginApplyRequests")] - internal static extern void TableBeginApplyRequestsNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); + [LibraryImport(LibName, EntryPoint = "igImStrSkipBlank")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImSkipBlankNative(byte* str); - [NativeName(NativeNameType.Func, "igTableBeginApplyRequests")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableBeginApplyRequests([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static byte* ImSkipBlank( byte* str) { - TableBeginApplyRequestsNative(table); + byte* ret = ImSkipBlankNative(str); + return ret; } - [NativeName(NativeNameType.Func, "igTableBeginApplyRequests")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableBeginApplyRequests([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static string ImSkipBlankS( byte* str) { - fixed (ImGuiTable* ptable = &table) - { - TableBeginApplyRequestsNative((ImGuiTable*)ptable); - } + string ret = Utils.DecodeStringUTF8(ImSkipBlankNative(str)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableSetupDrawChannels")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSetupDrawChannels")] - internal static extern void TableSetupDrawChannelsNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); - - [NativeName(NativeNameType.Func, "igTableSetupDrawChannels")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupDrawChannels([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) - { - TableSetupDrawChannelsNative(table); - } + [LibraryImport(LibName, EntryPoint = "igImStrlenW")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImStrlenWNative(char* str); - [NativeName(NativeNameType.Func, "igTableSetupDrawChannels")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetupDrawChannels([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static int ImStrlenW( char* str) { - fixed (ImGuiTable* ptable = &table) - { - TableSetupDrawChannelsNative((ImGuiTable*)ptable); - } + int ret = ImStrlenWNative(str); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableUpdateLayout")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableUpdateLayout")] - internal static extern void TableUpdateLayoutNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); + [LibraryImport(LibName, EntryPoint = "igImStrbolW")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial char* ImStrbolWNative(char* bufMidLine, char* bufBegin); - [NativeName(NativeNameType.Func, "igTableUpdateLayout")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableUpdateLayout([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static char* ImStrbolW( char* bufMidLine, char* bufBegin) { - TableUpdateLayoutNative(table); + char* ret = ImStrbolWNative(bufMidLine, bufBegin); + return ret; } - [NativeName(NativeNameType.Func, "igTableUpdateLayout")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableUpdateLayout([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static char* ImStrbolW( char* bufMidLine, ref char bufBegin) { - fixed (ImGuiTable* ptable = &table) + fixed (char* pbufBegin = &bufBegin) { - TableUpdateLayoutNative((ImGuiTable*)ptable); + char* ret = ImStrbolWNative(bufMidLine, (char*)pbufBegin); + return ret; } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableUpdateBorders")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableUpdateBorders")] - internal static extern void TableUpdateBordersNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); - - [NativeName(NativeNameType.Func, "igTableUpdateBorders")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableUpdateBorders([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) - { - TableUpdateBordersNative(table); - } + [LibraryImport(LibName, EntryPoint = "igImToUpper")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImToUpperNative(byte c); - [NativeName(NativeNameType.Func, "igTableUpdateBorders")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableUpdateBorders([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static byte ImToUpper( byte c) { - fixed (ImGuiTable* ptable = &table) - { - TableUpdateBordersNative((ImGuiTable*)ptable); - } + byte ret = ImToUpperNative(c); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableUpdateColumnsWeightFromWidth")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableUpdateColumnsWeightFromWidth")] - internal static extern void TableUpdateColumnsWeightFromWidthNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); + [LibraryImport(LibName, EntryPoint = "igImCharIsBlankA")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImCharIsBlankANative(byte c); - [NativeName(NativeNameType.Func, "igTableUpdateColumnsWeightFromWidth")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableUpdateColumnsWeightFromWidth([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static bool ImCharIsBlankA( byte c) { - TableUpdateColumnsWeightFromWidthNative(table); + byte ret = ImCharIsBlankANative(c); + return ret != 0; } - [NativeName(NativeNameType.Func, "igTableUpdateColumnsWeightFromWidth")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableUpdateColumnsWeightFromWidth([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImCharIsBlankW")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImCharIsBlankWNative(uint c); + + /// /// To be documented. /// public static bool ImCharIsBlankW( uint c) { - fixed (ImGuiTable* ptable = &table) - { - TableUpdateColumnsWeightFromWidthNative((ImGuiTable*)ptable); - } + byte ret = ImCharIsBlankWNative(c); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableDrawBorders")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableDrawBorders")] - internal static extern void TableDrawBordersNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); + [LibraryImport(LibName, EntryPoint = "igImFormatStringToTempBuffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFormatStringToTempBufferNative(byte** outBuf, byte** outBufEnd, byte* fmt); - [NativeName(NativeNameType.Func, "igTableDrawBorders")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableDrawBorders([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, byte** outBufEnd, byte* fmt) { - TableDrawBordersNative(table); + ImFormatStringToTempBufferNative(outBuf, outBufEnd, fmt); } - [NativeName(NativeNameType.Func, "igTableDrawBorders")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableDrawBorders([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, ref byte* outBufEnd, byte* fmt) { - fixed (ImGuiTable* ptable = &table) + fixed (byte** poutBufEnd = &outBufEnd) { - TableDrawBordersNative((ImGuiTable*)ptable); + ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, fmt); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableDrawContextMenu")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableDrawContextMenu")] - internal static extern void TableDrawContextMenuNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); - - [NativeName(NativeNameType.Func, "igTableDrawContextMenu")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableDrawContextMenu([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, byte** outBufEnd, ref byte fmt) { - TableDrawContextMenuNative(table); + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferNative(outBuf, outBufEnd, (byte*)pfmt); + } } - [NativeName(NativeNameType.Func, "igTableDrawContextMenu")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableDrawContextMenu([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, byte** outBufEnd, string fmt) { - fixed (ImGuiTable* ptable = &table) + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFormatStringToTempBufferNative(outBuf, outBufEnd, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - TableDrawContextMenuNative((ImGuiTable*)ptable); + Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableBeginContextMenuPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableBeginContextMenuPopup")] - internal static extern byte TableBeginContextMenuPopupNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); - - [NativeName(NativeNameType.Func, "igTableBeginContextMenuPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TableBeginContextMenuPopup([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, ref byte* outBufEnd, ref byte fmt) { - byte ret = TableBeginContextMenuPopupNative(table); - return ret != 0; + fixed (byte** poutBufEnd = &outBufEnd) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt); + } + } } - [NativeName(NativeNameType.Func, "igTableBeginContextMenuPopup")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TableBeginContextMenuPopup([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static void ImFormatStringToTempBuffer( byte** outBuf, ref byte* outBufEnd, string fmt) { - fixed (ImGuiTable* ptable = &table) + fixed (byte** poutBufEnd = &outBufEnd) { - byte ret = TableBeginContextMenuPopupNative((ImGuiTable*)ptable); - return ret != 0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFormatStringToTempBufferNative(outBuf, (byte**)poutBufEnd, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableMergeDrawChannels")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableMergeDrawChannels")] - internal static extern void TableMergeDrawChannelsNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); + [LibraryImport(LibName, EntryPoint = "igImFormatStringToTempBufferV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFormatStringToTempBufferVNative(byte** outBuf, byte** outBufEnd, byte* fmt, nuint args); - [NativeName(NativeNameType.Func, "igTableMergeDrawChannels")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableMergeDrawChannels([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, byte** outBufEnd, byte* fmt, nuint args) { - TableMergeDrawChannelsNative(table); + ImFormatStringToTempBufferVNative(outBuf, outBufEnd, fmt, args); } - [NativeName(NativeNameType.Func, "igTableMergeDrawChannels")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableMergeDrawChannels([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, ref byte* outBufEnd, byte* fmt, nuint args) { - fixed (ImGuiTable* ptable = &table) + fixed (byte** poutBufEnd = &outBufEnd) { - TableMergeDrawChannelsNative((ImGuiTable*)ptable); + ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, fmt, args); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetInstanceData")] - [return: NativeName(NativeNameType.Type, "ImGuiTableInstanceData*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetInstanceData")] - internal static extern ImGuiTableInstanceData* TableGetInstanceDataNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "instance_no")] [NativeName(NativeNameType.Type, "int")] int instanceNo); + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, byte** outBufEnd, ref byte fmt, nuint args) + { + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferVNative(outBuf, outBufEnd, (byte*)pfmt, args); + } + } - [NativeName(NativeNameType.Func, "igTableGetInstanceData")] - [return: NativeName(NativeNameType.Type, "ImGuiTableInstanceData*")] - public static ImGuiTableInstanceData* TableGetInstanceData([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "instance_no")] [NativeName(NativeNameType.Type, "int")] int instanceNo) + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, byte** outBufEnd, string fmt, nuint args) { - ImGuiTableInstanceData* ret = TableGetInstanceDataNative(table, instanceNo); - return ret; + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFormatStringToTempBufferVNative(outBuf, outBufEnd, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - [NativeName(NativeNameType.Func, "igTableGetInstanceData")] - [return: NativeName(NativeNameType.Type, "ImGuiTableInstanceData*")] - public static ImGuiTableInstanceData* TableGetInstanceData([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "instance_no")] [NativeName(NativeNameType.Type, "int")] int instanceNo) + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, ref byte* outBufEnd, ref byte fmt, nuint args) { - fixed (ImGuiTable* ptable = &table) + fixed (byte** poutBufEnd = &outBufEnd) { - ImGuiTableInstanceData* ret = TableGetInstanceDataNative((ImGuiTable*)ptable, instanceNo); - return ret; + fixed (byte* pfmt = &fmt) + { + ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, (byte*)pfmt, args); + } + } + } + + /// /// To be documented. /// public static void ImFormatStringToTempBufferV( byte** outBuf, ref byte* outBufEnd, string fmt, nuint args) + { + fixed (byte** poutBufEnd = &outBufEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFormatStringToTempBufferVNative(outBuf, (byte**)poutBufEnd, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableGetInstanceID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetInstanceID")] - internal static extern int TableGetInstanceIDNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "instance_no")] [NativeName(NativeNameType.Type, "int")] int instanceNo); + [LibraryImport(LibName, EntryPoint = "igImParseFormatFindStart")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImParseFormatFindStartNative(byte* format); - [NativeName(NativeNameType.Func, "igTableGetInstanceID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int TableGetInstanceID([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "instance_no")] [NativeName(NativeNameType.Type, "int")] int instanceNo) + /// /// To be documented. /// public static byte* ImParseFormatFindStart( byte* format) { - int ret = TableGetInstanceIDNative(table, instanceNo); + byte* ret = ImParseFormatFindStartNative(format); return ret; } - [NativeName(NativeNameType.Func, "igTableGetInstanceID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int TableGetInstanceID([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "instance_no")] [NativeName(NativeNameType.Type, "int")] int instanceNo) + /// /// To be documented. /// public static string ImParseFormatFindStartS( byte* format) { - fixed (ImGuiTable* ptable = &table) - { - int ret = TableGetInstanceIDNative((ImGuiTable*)ptable, instanceNo); - return ret; - } + string ret = Utils.DecodeStringUTF8(ImParseFormatFindStartNative(format)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableSortSpecsSanitize")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSortSpecsSanitize")] - internal static extern void TableSortSpecsSanitizeNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); + [LibraryImport(LibName, EntryPoint = "igImParseFormatFindEnd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImParseFormatFindEndNative(byte* format); - [NativeName(NativeNameType.Func, "igTableSortSpecsSanitize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSortSpecsSanitize([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static byte* ImParseFormatFindEnd( byte* format) { - TableSortSpecsSanitizeNative(table); + byte* ret = ImParseFormatFindEndNative(format); + return ret; } - [NativeName(NativeNameType.Func, "igTableSortSpecsSanitize")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSortSpecsSanitize([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static string ImParseFormatFindEndS( byte* format) { - fixed (ImGuiTable* ptable = &table) - { - TableSortSpecsSanitizeNative((ImGuiTable*)ptable); - } + string ret = Utils.DecodeStringUTF8(ImParseFormatFindEndNative(format)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableSortSpecsBuild")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSortSpecsBuild")] - internal static extern void TableSortSpecsBuildNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); + [LibraryImport(LibName, EntryPoint = "igImParseFormatSanitizeForPrinting")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImParseFormatSanitizeForPrintingNative(byte* fmtIn, byte* fmtOut, ulong fmtOutSize); - [NativeName(NativeNameType.Func, "igTableSortSpecsBuild")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSortSpecsBuild([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, byte* fmtOut, ulong fmtOutSize) { - TableSortSpecsBuildNative(table); + ImParseFormatSanitizeForPrintingNative(fmtIn, fmtOut, fmtOutSize); } - [NativeName(NativeNameType.Func, "igTableSortSpecsBuild")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSortSpecsBuild([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, ref byte fmtOut, ulong fmtOutSize) { - fixed (ImGuiTable* ptable = &table) + fixed (byte* pfmtOut = &fmtOut) { - TableSortSpecsBuildNative((ImGuiTable*)ptable); + ImParseFormatSanitizeForPrintingNative(fmtIn, (byte*)pfmtOut, fmtOutSize); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetColumnNextSortDirection")] - [return: NativeName(NativeNameType.Type, "ImGuiSortDirection")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetColumnNextSortDirection")] - internal static extern ImGuiSortDirection TableGetColumnNextSortDirectionNative([NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ImGuiTableColumn* column); - - [NativeName(NativeNameType.Func, "igTableGetColumnNextSortDirection")] - [return: NativeName(NativeNameType.Type, "ImGuiSortDirection")] - public static ImGuiSortDirection TableGetColumnNextSortDirection([NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ImGuiTableColumn* column) - { - ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative(column); - return ret; - } - - [NativeName(NativeNameType.Func, "igTableGetColumnNextSortDirection")] - [return: NativeName(NativeNameType.Type, "ImGuiSortDirection")] - public static ImGuiSortDirection TableGetColumnNextSortDirection([NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ref ImGuiTableColumn column) + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, ref string fmtOut, ulong fmtOutSize) { - fixed (ImGuiTableColumn* pcolumn = &column) + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) { - ImGuiSortDirection ret = TableGetColumnNextSortDirectionNative((ImGuiTableColumn*)pcolumn); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImParseFormatSanitizeForPrintingNative(fmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableFixColumnSortDirection")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableFixColumnSortDirection")] - internal static extern void TableFixColumnSortDirectionNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ImGuiTableColumn* column); - - [NativeName(NativeNameType.Func, "igTableFixColumnSortDirection")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableFixColumnSortDirection([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ImGuiTableColumn* column) - { - TableFixColumnSortDirectionNative(table, column); - } - - [NativeName(NativeNameType.Func, "igTableFixColumnSortDirection")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableFixColumnSortDirection([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ImGuiTableColumn* column) + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, byte* fmtOut, nuint fmtOutSize) { - fixed (ImGuiTable* ptable = &table) - { - TableFixColumnSortDirectionNative((ImGuiTable*)ptable, column); - } + ImParseFormatSanitizeForPrintingNative(fmtIn, fmtOut, fmtOutSize); } - [NativeName(NativeNameType.Func, "igTableFixColumnSortDirection")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableFixColumnSortDirection([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ref ImGuiTableColumn column) + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) { - fixed (ImGuiTableColumn* pcolumn = &column) + fixed (byte* pfmtOut = &fmtOut) { - TableFixColumnSortDirectionNative(table, (ImGuiTableColumn*)pcolumn); + ImParseFormatSanitizeForPrintingNative(fmtIn, (byte*)pfmtOut, fmtOutSize); } } - [NativeName(NativeNameType.Func, "igTableFixColumnSortDirection")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableFixColumnSortDirection([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ref ImGuiTableColumn column) + /// /// To be documented. /// public static void ImParseFormatSanitizeForPrinting( byte* fmtIn, ref string fmtOut, nuint fmtOutSize) { - fixed (ImGuiTable* ptable = &table) + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) { - fixed (ImGuiTableColumn* pcolumn = &column) + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else { - TableFixColumnSortDirectionNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImParseFormatSanitizeForPrintingNative(fmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableGetColumnWidthAuto")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetColumnWidthAuto")] - internal static extern float TableGetColumnWidthAutoNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ImGuiTableColumn* column); + [LibraryImport(LibName, EntryPoint = "igImParseFormatSanitizeForScanning")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImParseFormatSanitizeForScanningNative(byte* fmtIn, byte* fmtOut, ulong fmtOutSize); - [NativeName(NativeNameType.Func, "igTableGetColumnWidthAuto")] - [return: NativeName(NativeNameType.Type, "float")] - public static float TableGetColumnWidthAuto([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ImGuiTableColumn* column) + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, byte* fmtOut, ulong fmtOutSize) { - float ret = TableGetColumnWidthAutoNative(table, column); + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize); return ret; } - [NativeName(NativeNameType.Func, "igTableGetColumnWidthAuto")] - [return: NativeName(NativeNameType.Type, "float")] - public static float TableGetColumnWidthAuto([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ImGuiTableColumn* column) + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, byte* fmtOut, ulong fmtOutSize) { - fixed (ImGuiTable* ptable = &table) + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize)); + return ret; + } + + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, ref byte fmtOut, ulong fmtOutSize) + { + fixed (byte* pfmtOut = &fmtOut) { - float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, column); + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize); return ret; } } - [NativeName(NativeNameType.Func, "igTableGetColumnWidthAuto")] - [return: NativeName(NativeNameType.Type, "float")] - public static float TableGetColumnWidthAuto([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ref ImGuiTableColumn column) + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, ref byte fmtOut, ulong fmtOutSize) { - fixed (ImGuiTableColumn* pcolumn = &column) + fixed (byte* pfmtOut = &fmtOut) { - float ret = TableGetColumnWidthAutoNative(table, (ImGuiTableColumn*)pcolumn); + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize)); return ret; } } - [NativeName(NativeNameType.Func, "igTableGetColumnWidthAuto")] - [return: NativeName(NativeNameType.Type, "float")] - public static float TableGetColumnWidthAuto([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] ref ImGuiTableColumn column) + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, ref string fmtOut, ulong fmtOutSize) { - fixed (ImGuiTable* ptable = &table) + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) { - fixed (ImGuiTableColumn* pcolumn = &column) + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) { - float ret = TableGetColumnWidthAutoNative((ImGuiTable*)ptable, (ImGuiTableColumn*)pcolumn); - return ret; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableBeginRow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableBeginRow")] - internal static extern void TableBeginRowNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); - - [NativeName(NativeNameType.Func, "igTableBeginRow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableBeginRow([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) - { - TableBeginRowNative(table); - } - - [NativeName(NativeNameType.Func, "igTableBeginRow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableBeginRow([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - TableBeginRowNative((ImGuiTable*)ptable); + Utils.Free(pStr0); } + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableEndRow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableEndRow")] - internal static extern void TableEndRowNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); - - [NativeName(NativeNameType.Func, "igTableEndRow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableEndRow([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) - { - TableEndRowNative(table); - } - - [NativeName(NativeNameType.Func, "igTableEndRow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableEndRow([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, ref string fmtOut, ulong fmtOutSize) { - fixed (ImGuiTable* ptable = &table) + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) { - TableEndRowNative((ImGuiTable*)ptable); + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableBeginCell")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableBeginCell")] - internal static extern void TableBeginCellNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN); - - [NativeName(NativeNameType.Func, "igTableBeginCell")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableBeginCell([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) - { - TableBeginCellNative(table, columnN); - } - - [NativeName(NativeNameType.Func, "igTableBeginCell")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableBeginCell([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) - { - fixed (ImGuiTable* ptable = &table) + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize)); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - TableBeginCellNative((ImGuiTable*)ptable, columnN); + Utils.Free(pStr0); } + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableEndCell")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableEndCell")] - internal static extern void TableEndCellNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); - - [NativeName(NativeNameType.Func, "igTableEndCell")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableEndCell([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, byte* fmtOut, nuint fmtOutSize) { - TableEndCellNative(table); + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize); + return ret; } - [NativeName(NativeNameType.Func, "igTableEndCell")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableEndCell([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, byte* fmtOut, nuint fmtOutSize) { - fixed (ImGuiTable* ptable = &table) - { - TableEndCellNative((ImGuiTable*)ptable); - } + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, fmtOut, fmtOutSize)); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetCellBgRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetCellBgRect")] - internal static extern void TableGetCellBgRectNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN); - - [NativeName(NativeNameType.Func, "igTableGetCellBgRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableGetCellBgRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) { - TableGetCellBgRectNative(pOut, table, columnN); + fixed (byte* pfmtOut = &fmtOut) + { + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize); + return ret; + } } - [NativeName(NativeNameType.Func, "igTableGetCellBgRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableGetCellBgRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, ref byte fmtOut, nuint fmtOutSize) { - fixed (ImRect* ppOut = &pOut) + fixed (byte* pfmtOut = &fmtOut) { - TableGetCellBgRectNative((ImRect*)ppOut, table, columnN); + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, (byte*)pfmtOut, fmtOutSize)); + return ret; } } - [NativeName(NativeNameType.Func, "igTableGetCellBgRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableGetCellBgRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static byte* ImParseFormatSanitizeForScanning( byte* fmtIn, ref string fmtOut, nuint fmtOutSize) { - fixed (ImGuiTable* ptable = &table) + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) { - TableGetCellBgRectNative(pOut, (ImGuiTable*)ptable, columnN); + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igTableGetCellBgRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableGetCellBgRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static string ImParseFormatSanitizeForScanningS( byte* fmtIn, ref string fmtOut, nuint fmtOutSize) { - fixed (ImRect* ppOut = &pOut) + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmtOut != null) { - fixed (ImGuiTable* ptable = &table) + pStrSize0 = Utils.GetByteCountUTF8(fmtOut); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else { - TableGetCellBgRectNative((ImRect*)ppOut, (ImGuiTable*)ptable, columnN); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(fmtOut, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImParseFormatSanitizeForScanningNative(fmtIn, pStr0, fmtOutSize)); + fmtOut = Utils.DecodeStringUTF8(pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableGetColumnName_TablePtr")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetColumnName_TablePtr")] - internal static extern byte* TableGetColumnNameNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN); + [LibraryImport(LibName, EntryPoint = "igImParseFormatPrecision")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImParseFormatPrecisionNative(byte* format, int defaultValue); - [NativeName(NativeNameType.Func, "igTableGetColumnName_TablePtr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* TableGetColumnName([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static int ImParseFormatPrecision( byte* format, int defaultValue) { - byte* ret = TableGetColumnNameNative(table, columnN); + int ret = ImParseFormatPrecisionNative(format, defaultValue); return ret; } - [NativeName(NativeNameType.Func, "igTableGetColumnName_TablePtr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string TableGetColumnNameS([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) - { - string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative(table, columnN)); - return ret; - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTextCharToUtf8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImTextCharToUtf8Native(byte* outBuf, uint c); - [NativeName(NativeNameType.Func, "igTableGetColumnName_TablePtr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* TableGetColumnName([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static byte* ImTextCharToUtf8( byte* outBuf, uint c) { - fixed (ImGuiTable* ptable = &table) - { - byte* ret = TableGetColumnNameNative((ImGuiTable*)ptable, columnN); - return ret; - } + byte* ret = ImTextCharToUtf8Native(outBuf, c); + return ret; } - [NativeName(NativeNameType.Func, "igTableGetColumnName_TablePtr")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string TableGetColumnNameS([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static string ImTextCharToUtf8S( byte* outBuf, uint c) { - fixed (ImGuiTable* ptable = &table) - { - string ret = Utils.DecodeStringUTF8(TableGetColumnNameNative((ImGuiTable*)ptable, columnN)); - return ret; - } + string ret = Utils.DecodeStringUTF8(ImTextCharToUtf8Native(outBuf, c)); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableGetColumnResizeID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetColumnResizeID")] - internal static extern int TableGetColumnResizeIDNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN, [NativeName(NativeNameType.Param, "instance_no")] [NativeName(NativeNameType.Type, "int")] int instanceNo); + [LibraryImport(LibName, EntryPoint = "igImTextCharFromUtf8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImTextCharFromUtf8Native(uint* outChar, byte* inText, byte* inTextEnd); - [NativeName(NativeNameType.Func, "igTableGetColumnResizeID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int TableGetColumnResizeID([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN, [NativeName(NativeNameType.Param, "instance_no")] [NativeName(NativeNameType.Type, "int")] int instanceNo) + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, byte* inText, byte* inTextEnd) { - int ret = TableGetColumnResizeIDNative(table, columnN, instanceNo); + int ret = ImTextCharFromUtf8Native(outChar, inText, inTextEnd); return ret; } - [NativeName(NativeNameType.Func, "igTableGetColumnResizeID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int TableGetColumnResizeID([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, ref byte inText, byte* inTextEnd) { - int ret = TableGetColumnResizeIDNative(table, columnN, (int)(0)); - return ret; + fixed (byte* pinText = &inText) + { + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, inTextEnd); + return ret; + } } - [NativeName(NativeNameType.Func, "igTableGetColumnResizeID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int TableGetColumnResizeID([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN, [NativeName(NativeNameType.Param, "instance_no")] [NativeName(NativeNameType.Type, "int")] int instanceNo) + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, string inText, byte* inTextEnd) { - fixed (ImGuiTable* ptable = &table) + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) { - int ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, instanceNo); - return ret; + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native(outChar, pStr0, inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igTableGetColumnResizeID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int TableGetColumnResizeID([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, byte* inText, ref byte inTextEnd) { - fixed (ImGuiTable* ptable = &table) + fixed (byte* pinTextEnd = &inTextEnd) { - int ret = TableGetColumnResizeIDNative((ImGuiTable*)ptable, columnN, (int)(0)); + int ret = ImTextCharFromUtf8Native(outChar, inText, (byte*)pinTextEnd); return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableGetMaxColumnWidth")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetMaxColumnWidth")] - internal static extern float TableGetMaxColumnWidthNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN); - - [NativeName(NativeNameType.Func, "igTableGetMaxColumnWidth")] - [return: NativeName(NativeNameType.Type, "float")] - public static float TableGetMaxColumnWidth([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, byte* inText, string inTextEnd) { - float ret = TableGetMaxColumnWidthNative(table, columnN); + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCharFromUtf8Native(outChar, inText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } - [NativeName(NativeNameType.Func, "igTableGetMaxColumnWidth")] - [return: NativeName(NativeNameType.Type, "float")] - public static float TableGetMaxColumnWidth([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, ref byte inText, ref byte inTextEnd) { - fixed (ImGuiTable* ptable = &table) + fixed (byte* pinText = &inText) { - float ret = TableGetMaxColumnWidthNative((ImGuiTable*)ptable, columnN); - return ret; + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCharFromUtf8Native(outChar, (byte*)pinText, (byte*)pinTextEnd); + return ret; + } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableSetColumnWidthAutoSingle")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSetColumnWidthAutoSingle")] - internal static extern void TableSetColumnWidthAutoSingleNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN); - - [NativeName(NativeNameType.Func, "igTableSetColumnWidthAutoSingle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetColumnWidthAutoSingle([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) - { - TableSetColumnWidthAutoSingleNative(table, columnN); - } - - [NativeName(NativeNameType.Func, "igTableSetColumnWidthAutoSingle")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetColumnWidthAutoSingle([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table, [NativeName(NativeNameType.Param, "column_n")] [NativeName(NativeNameType.Type, "int")] int columnN) + /// /// To be documented. /// public static int ImTextCharFromUtf8( uint* outChar, string inText, string inTextEnd) { - fixed (ImGuiTable* ptable = &table) + byte* pStr0 = null; + int pStrSize0 = 0; + if (inText != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inText); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inText, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (inTextEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(inTextEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + int ret = ImTextCharFromUtf8Native(outChar, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) { - TableSetColumnWidthAutoSingleNative((ImGuiTable*)ptable, columnN); + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableSetColumnWidthAutoAll")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSetColumnWidthAutoAll")] - internal static extern void TableSetColumnWidthAutoAllNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); + [LibraryImport(LibName, EntryPoint = "igImTextCountCharsFromUtf8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImTextCountCharsFromUtf8Native(byte* inText, byte* inTextEnd); - [NativeName(NativeNameType.Func, "igTableSetColumnWidthAutoAll")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetColumnWidthAutoAll([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static int ImTextCountCharsFromUtf8( byte* inText, byte* inTextEnd) { - TableSetColumnWidthAutoAllNative(table); + int ret = ImTextCountCharsFromUtf8Native(inText, inTextEnd); + return ret; } - [NativeName(NativeNameType.Func, "igTableSetColumnWidthAutoAll")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSetColumnWidthAutoAll([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static int ImTextCountCharsFromUtf8( byte* inText, ref byte inTextEnd) { - fixed (ImGuiTable* ptable = &table) + fixed (byte* pinTextEnd = &inTextEnd) { - TableSetColumnWidthAutoAllNative((ImGuiTable*)ptable); + int ret = ImTextCountCharsFromUtf8Native(inText, (byte*)pinTextEnd); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableRemove")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableRemove")] - internal static extern void TableRemoveNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); - - [NativeName(NativeNameType.Func, "igTableRemove")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableRemove([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) - { - TableRemoveNative(table); - } - - [NativeName(NativeNameType.Func, "igTableRemove")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableRemove([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static int ImTextCountCharsFromUtf8( byte* inText, string inTextEnd) { - fixed (ImGuiTable* ptable = &table) + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCountCharsFromUtf8Native(inText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - TableRemoveNative((ImGuiTable*)ptable); + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableGcCompactTransientBuffers_TablePtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGcCompactTransientBuffers_TablePtr")] - internal static extern void TableGcCompactTransientBuffersNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); + [LibraryImport(LibName, EntryPoint = "igImTextCountUtf8BytesFromChar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImTextCountUtf8BytesFromCharNative(byte* inText, byte* inTextEnd); - [NativeName(NativeNameType.Func, "igTableGcCompactTransientBuffers_TablePtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableGcCompactTransientBuffers([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar( byte* inText, byte* inTextEnd) { - TableGcCompactTransientBuffersNative(table); + int ret = ImTextCountUtf8BytesFromCharNative(inText, inTextEnd); + return ret; } - [NativeName(NativeNameType.Func, "igTableGcCompactTransientBuffers_TablePtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableGcCompactTransientBuffers([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar( byte* inText, ref byte inTextEnd) { - fixed (ImGuiTable* ptable = &table) + fixed (byte* pinTextEnd = &inTextEnd) + { + int ret = ImTextCountUtf8BytesFromCharNative(inText, (byte*)pinTextEnd); + return ret; + } + } + + /// /// To be documented. /// public static int ImTextCountUtf8BytesFromChar( byte* inText, string inTextEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + int ret = ImTextCountUtf8BytesFromCharNative(inText, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - TableGcCompactTransientBuffersNative((ImGuiTable*)ptable); + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableGcCompactTransientBuffers_TableTempDataPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGcCompactTransientBuffers_TableTempDataPtr")] - internal static extern void TableGcCompactTransientBuffersNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTableTempData*")] ImGuiTableTempData* table); + [LibraryImport(LibName, EntryPoint = "igImTextCountUtf8BytesFromStr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImTextCountUtf8BytesFromNative(char* inText, char* inTextEnd); - [NativeName(NativeNameType.Func, "igTableGcCompactTransientBuffers_TableTempDataPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableGcCompactTransientBuffers([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTableTempData*")] ImGuiTableTempData* table) + /// /// To be documented. /// public static int ImTextCountUtf8BytesFrom( char* inText, char* inTextEnd) { - TableGcCompactTransientBuffersNative(table); + int ret = ImTextCountUtf8BytesFromNative(inText, inTextEnd); + return ret; } - [NativeName(NativeNameType.Func, "igTableGcCompactTransientBuffers_TableTempDataPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableGcCompactTransientBuffers([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTableTempData*")] ref ImGuiTableTempData table) + /// /// To be documented. /// public static int ImTextCountUtf8BytesFrom( char* inText, ref char inTextEnd) { - fixed (ImGuiTableTempData* ptable = &table) + fixed (char* pinTextEnd = &inTextEnd) { - TableGcCompactTransientBuffersNative((ImGuiTableTempData*)ptable); + int ret = ImTextCountUtf8BytesFromNative(inText, (char*)pinTextEnd); + return ret; } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableGcCompactSettings")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGcCompactSettings")] - internal static extern void TableGcCompactSettingsNative(); + [LibraryImport(LibName, EntryPoint = "igImTextFindPreviousUtf8Codepoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImTextFindPreviousUtf8CodepointNative(byte* inTextStart, byte* inTextCurr); - [NativeName(NativeNameType.Func, "igTableGcCompactSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableGcCompactSettings() + /// /// To be documented. /// public static byte* ImTextFindPreviousUtf8Codepoint( byte* inTextStart, byte* inTextCurr) { - TableGcCompactSettingsNative(); + byte* ret = ImTextFindPreviousUtf8CodepointNative(inTextStart, inTextCurr); + return ret; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableLoadSettings")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableLoadSettings")] - internal static extern void TableLoadSettingsNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); - - [NativeName(NativeNameType.Func, "igTableLoadSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableLoadSettings([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static string ImTextFindPreviousUtf8CodepointS( byte* inTextStart, byte* inTextCurr) { - TableLoadSettingsNative(table); + string ret = Utils.DecodeStringUTF8(ImTextFindPreviousUtf8CodepointNative(inTextStart, inTextCurr)); + return ret; } - [NativeName(NativeNameType.Func, "igTableLoadSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableLoadSettings([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static byte* ImTextFindPreviousUtf8Codepoint( byte* inTextStart, ref byte inTextCurr) { - fixed (ImGuiTable* ptable = &table) + fixed (byte* pinTextCurr = &inTextCurr) { - TableLoadSettingsNative((ImGuiTable*)ptable); + byte* ret = ImTextFindPreviousUtf8CodepointNative(inTextStart, (byte*)pinTextCurr); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableSaveSettings")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSaveSettings")] - internal static extern void TableSaveSettingsNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); - - [NativeName(NativeNameType.Func, "igTableSaveSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSaveSettings([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) - { - TableSaveSettingsNative(table); - } - - [NativeName(NativeNameType.Func, "igTableSaveSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSaveSettings([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static string ImTextFindPreviousUtf8CodepointS( byte* inTextStart, ref byte inTextCurr) { - fixed (ImGuiTable* ptable = &table) + fixed (byte* pinTextCurr = &inTextCurr) { - TableSaveSettingsNative((ImGuiTable*)ptable); + string ret = Utils.DecodeStringUTF8(ImTextFindPreviousUtf8CodepointNative(inTextStart, (byte*)pinTextCurr)); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTableResetSettings")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableResetSettings")] - internal static extern void TableResetSettingsNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); - - [NativeName(NativeNameType.Func, "igTableResetSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableResetSettings([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static byte* ImTextFindPreviousUtf8Codepoint( byte* inTextStart, string inTextCurr) { - TableResetSettingsNative(table); + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextCurr != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextCurr); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextCurr, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImTextFindPreviousUtf8CodepointNative(inTextStart, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; } - [NativeName(NativeNameType.Func, "igTableResetSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableResetSettings([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static string ImTextFindPreviousUtf8CodepointS( byte* inTextStart, string inTextCurr) { - fixed (ImGuiTable* ptable = &table) + byte* pStr0 = null; + int pStrSize0 = 0; + if (inTextCurr != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inTextCurr); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inTextCurr, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImTextFindPreviousUtf8CodepointNative(inTextStart, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) { - TableResetSettingsNative((ImGuiTable*)ptable); + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableGetBoundSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSettings*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableGetBoundSettings")] - internal static extern ImGuiTableSettings* TableGetBoundSettingsNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); + [LibraryImport(LibName, EntryPoint = "igImFileOpen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFileHandle ImFileOpenNative(byte* filename, byte* mode); - [NativeName(NativeNameType.Func, "igTableGetBoundSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSettings*")] - public static ImGuiTableSettings* TableGetBoundSettings([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static ImFileHandle ImFileOpen( byte* filename, byte* mode) { - ImGuiTableSettings* ret = TableGetBoundSettingsNative(table); + ImFileHandle ret = ImFileOpenNative(filename, mode); return ret; } - [NativeName(NativeNameType.Func, "igTableGetBoundSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSettings*")] - public static ImGuiTableSettings* TableGetBoundSettings([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) + /// /// To be documented. /// public static ImFileHandle ImFileOpen( byte* filename, ref byte mode) { - fixed (ImGuiTable* ptable = &table) + fixed (byte* pmode = &mode) { - ImGuiTableSettings* ret = TableGetBoundSettingsNative((ImGuiTable*)ptable); + ImFileHandle ret = ImFileOpenNative(filename, (byte*)pmode); return ret; } } + /// /// To be documented. /// public static ImFileHandle ImFileOpen( byte* filename, string mode) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (mode != null) + { + pStrSize0 = Utils.GetByteCountUTF8(mode); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFileHandle ret = ImFileOpenNative(filename, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableSettingsAddSettingsHandler")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSettingsAddSettingsHandler")] - internal static extern void TableSettingsAddSettingsHandlerNative(); + [LibraryImport(LibName, EntryPoint = "igImFileClose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImFileCloseNative(ImFileHandle file); - [NativeName(NativeNameType.Func, "igTableSettingsAddSettingsHandler")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TableSettingsAddSettingsHandler() + /// /// To be documented. /// public static bool ImFileClose( ImFileHandle file) { - TableSettingsAddSettingsHandlerNative(); + byte ret = ImFileCloseNative(file); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableSettingsCreate")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSettings*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSettingsCreate")] - internal static extern ImGuiTableSettings* TableSettingsCreateNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount); + [LibraryImport(LibName, EntryPoint = "igImFileGetSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong ImFileGetSizeNative(ImFileHandle file); - [NativeName(NativeNameType.Func, "igTableSettingsCreate")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSettings*")] - public static ImGuiTableSettings* TableSettingsCreate([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "columns_count")] [NativeName(NativeNameType.Type, "int")] int columnsCount) + /// /// To be documented. /// public static ulong ImFileGetSize( ImFileHandle file) { - ImGuiTableSettings* ret = TableSettingsCreateNative(id, columnsCount); + ulong ret = ImFileGetSizeNative(file); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTableSettingsFindByID")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSettings*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTableSettingsFindByID")] - internal static extern ImGuiTableSettings* TableSettingsFindByIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); + [LibraryImport(LibName, EntryPoint = "igImFileRead")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong ImFileReadNative(void* data, ulong size, ulong count, ImFileHandle file); - [NativeName(NativeNameType.Func, "igTableSettingsFindByID")] - [return: NativeName(NativeNameType.Type, "ImGuiTableSettings*")] - public static ImGuiTableSettings* TableSettingsFindByID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + /// /// To be documented. /// public static ulong ImFileRead( void* data, ulong size, ulong count, ImFileHandle file) { - ImGuiTableSettings* ret = TableSettingsFindByIDNative(id); + ulong ret = ImFileReadNative(data, size, count, file); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetCurrentTabBar")] - [return: NativeName(NativeNameType.Type, "ImGuiTabBar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetCurrentTabBar")] - internal static extern ImGuiTabBar* GetCurrentTabBarNative(); + [LibraryImport(LibName, EntryPoint = "igImFileWrite")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong ImFileWriteNative(void* data, ulong size, ulong count, ImFileHandle file); - [NativeName(NativeNameType.Func, "igGetCurrentTabBar")] - [return: NativeName(NativeNameType.Type, "ImGuiTabBar*")] - public static ImGuiTabBar* GetCurrentTabBar() + /// /// To be documented. /// public static ulong ImFileWrite( void* data, ulong size, ulong count, ImFileHandle file) { - ImGuiTabBar* ret = GetCurrentTabBarNative(); + ulong ret = ImFileWriteNative(data, size, count, file); return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igBeginTabBarEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igBeginTabBarEx")] - internal static extern byte BeginTabBarExNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabBarFlags")] ImGuiTabBarFlags flags, [NativeName(NativeNameType.Param, "dock_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* dockNode); + [LibraryImport(LibName, EntryPoint = "igImFileLoadToMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* ImFileLoadToMemoryNative(byte* filename, byte* mode, ulong* outFileSize, int paddingBytes); - [NativeName(NativeNameType.Func, "igBeginTabBarEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabBarEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabBarFlags")] ImGuiTabBarFlags flags, [NativeName(NativeNameType.Param, "dock_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* dockNode) + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, byte* mode, ulong* outFileSize, int paddingBytes) { - byte ret = BeginTabBarExNative(tabBar, bb, flags, dockNode); - return ret != 0; + void* ret = ImFileLoadToMemoryNative(filename, mode, outFileSize, paddingBytes); + return ret; } - [NativeName(NativeNameType.Func, "igBeginTabBarEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabBarEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabBarFlags")] ImGuiTabBarFlags flags, [NativeName(NativeNameType.Param, "dock_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* dockNode) + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, ref byte mode, ulong* outFileSize, int paddingBytes) { - fixed (ImGuiTabBar* ptabBar = &tabBar) + fixed (byte* pmode = &mode) { - byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, dockNode); - return ret != 0; + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, outFileSize, paddingBytes); + return ret; } } - [NativeName(NativeNameType.Func, "igBeginTabBarEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabBarEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabBarFlags")] ImGuiTabBarFlags flags, [NativeName(NativeNameType.Param, "dock_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode dockNode) + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, string mode, ulong* outFileSize, int paddingBytes) { - fixed (ImGuiDockNode* pdockNode = &dockNode) + byte* pStr0 = null; + int pStrSize0 = 0; + if (mode != null) { - byte ret = BeginTabBarExNative(tabBar, bb, flags, (ImGuiDockNode*)pdockNode); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(mode); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = ImFileLoadToMemoryNative(filename, pStr0, outFileSize, paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igBeginTabBarEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool BeginTabBarEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabBarFlags")] ImGuiTabBarFlags flags, [NativeName(NativeNameType.Param, "dock_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode dockNode) + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, byte* mode, ref nuint outFileSize, int paddingBytes) { - fixed (ImGuiTabBar* ptabBar = &tabBar) + fixed (nuint* poutFileSize = &outFileSize) { - fixed (ImGuiDockNode* pdockNode = &dockNode) - { - byte ret = BeginTabBarExNative((ImGuiTabBar*)ptabBar, bb, flags, (ImGuiDockNode*)pdockNode); - return ret != 0; - } + void* ret = ImFileLoadToMemoryNative(filename, mode, (ulong*)poutFileSize, paddingBytes); + return ret; } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTabBarFindTabByID")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarFindTabByID")] - internal static extern ImGuiTabItem* TabBarFindTabByIDNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId); - - [NativeName(NativeNameType.Func, "igTabBarFindTabByID")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - public static ImGuiTabItem* TabBarFindTabByID([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId) + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, ref byte mode, ref nuint outFileSize, int paddingBytes) { - ImGuiTabItem* ret = TabBarFindTabByIDNative(tabBar, tabId); - return ret; + fixed (byte* pmode = &mode) + { + fixed (nuint* poutFileSize = &outFileSize) + { + void* ret = ImFileLoadToMemoryNative(filename, (byte*)pmode, (ulong*)poutFileSize, paddingBytes); + return ret; + } + } } - [NativeName(NativeNameType.Func, "igTabBarFindTabByID")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - public static ImGuiTabItem* TabBarFindTabByID([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId) + /// /// To be documented. /// public static void* ImFileLoadToMemory( byte* filename, string mode, ref nuint outFileSize, int paddingBytes) { - fixed (ImGuiTabBar* ptabBar = &tabBar) + byte* pStr0 = null; + int pStrSize0 = 0; + if (mode != null) + { + pStrSize0 = Utils.GetByteCountUTF8(mode); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(mode, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (nuint* poutFileSize = &outFileSize) { - ImGuiTabItem* ret = TabBarFindTabByIDNative((ImGuiTabBar*)ptabBar, tabId); + void* ret = ImFileLoadToMemoryNative(filename, pStr0, (ulong*)poutFileSize, paddingBytes); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } return ret; } } @@ -226805,1979 +61738,1311 @@ public static bool BeginTabBarEx([NativeName(NativeNameType.Param, "tab_bar")] [ /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarFindTabByOrder")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarFindTabByOrder")] - internal static extern ImGuiTabItem* TabBarFindTabByOrderNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "int")] int order); + [LibraryImport(LibName, EntryPoint = "igImPow_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImPowFloatNative(float x, float y); - [NativeName(NativeNameType.Func, "igTabBarFindTabByOrder")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - public static ImGuiTabItem* TabBarFindTabByOrder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "int")] int order) + /// /// To be documented. /// public static float ImPowFloat( float x, float y) { - ImGuiTabItem* ret = TabBarFindTabByOrderNative(tabBar, order); + float ret = ImPowFloatNative(x, y); return ret; } - [NativeName(NativeNameType.Func, "igTabBarFindTabByOrder")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - public static ImGuiTabItem* TabBarFindTabByOrder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "int")] int order) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiTabItem* ret = TabBarFindTabByOrderNative((ImGuiTabBar*)ptabBar, order); - return ret; - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarFindMostRecentlySelectedTabForActiveWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarFindMostRecentlySelectedTabForActiveWindow")] - internal static extern ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindowNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar); + [LibraryImport(LibName, EntryPoint = "igImPow_double")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double ImPowDoubleNative(double x, double y); - [NativeName(NativeNameType.Func, "igTabBarFindMostRecentlySelectedTabForActiveWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - public static ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindow([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar) + /// /// To be documented. /// public static double ImPowDouble( double x, double y) { - ImGuiTabItem* ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative(tabBar); + double ret = ImPowDoubleNative(x, y); return ret; } - [NativeName(NativeNameType.Func, "igTabBarFindMostRecentlySelectedTabForActiveWindow")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - public static ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindow([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLog_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImLogFloatNative(float x); + + /// /// To be documented. /// public static float ImLogFloat( float x) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiTabItem* ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative((ImGuiTabBar*)ptabBar); - return ret; - } + float ret = ImLogFloatNative(x); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarGetCurrentTab")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarGetCurrentTab")] - internal static extern ImGuiTabItem* TabBarGetCurrentTabNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar); + [LibraryImport(LibName, EntryPoint = "igImLog_double")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double ImLogDoubleNative(double x); - [NativeName(NativeNameType.Func, "igTabBarGetCurrentTab")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - public static ImGuiTabItem* TabBarGetCurrentTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar) + /// /// To be documented. /// public static double ImLogDouble( double x) { - ImGuiTabItem* ret = TabBarGetCurrentTabNative(tabBar); + double ret = ImLogDoubleNative(x); return ret; } - [NativeName(NativeNameType.Func, "igTabBarGetCurrentTab")] - [return: NativeName(NativeNameType.Type, "ImGuiTabItem*")] - public static ImGuiTabItem* TabBarGetCurrentTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImAbs_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImAbsIntNative(int x); + + /// /// To be documented. /// public static int ImAbsInt( int x) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - ImGuiTabItem* ret = TabBarGetCurrentTabNative((ImGuiTabBar*)ptabBar); - return ret; - } + int ret = ImAbsIntNative(x); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarGetTabOrder")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarGetTabOrder")] - internal static extern int TabBarGetTabOrderNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab); + [LibraryImport(LibName, EntryPoint = "igImAbs_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImAbsFloatNative(float x); - [NativeName(NativeNameType.Func, "igTabBarGetTabOrder")] - [return: NativeName(NativeNameType.Type, "int")] - public static int TabBarGetTabOrder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab) + /// /// To be documented. /// public static float ImAbsFloat( float x) { - int ret = TabBarGetTabOrderNative(tabBar, tab); + float ret = ImAbsFloatNative(x); return ret; } - [NativeName(NativeNameType.Func, "igTabBarGetTabOrder")] - [return: NativeName(NativeNameType.Type, "int")] - public static int TabBarGetTabOrder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - int ret = TabBarGetTabOrderNative((ImGuiTabBar*)ptabBar, tab); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImAbs_double")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double ImAbsDoubleNative(double x); - [NativeName(NativeNameType.Func, "igTabBarGetTabOrder")] - [return: NativeName(NativeNameType.Type, "int")] - public static int TabBarGetTabOrder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab) + /// /// To be documented. /// public static double ImAbsDouble( double x) { - fixed (ImGuiTabItem* ptab = &tab) - { - int ret = TabBarGetTabOrderNative(tabBar, (ImGuiTabItem*)ptab); - return ret; - } + double ret = ImAbsDoubleNative(x); + return ret; } - [NativeName(NativeNameType.Func, "igTabBarGetTabOrder")] - [return: NativeName(NativeNameType.Type, "int")] - public static int TabBarGetTabOrder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImSign_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImSignFloatNative(float x); + + /// /// To be documented. /// public static float ImSignFloat( float x) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - int ret = TabBarGetTabOrderNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab); - return ret; - } - } + float ret = ImSignFloatNative(x); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarGetTabName")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarGetTabName")] - internal static extern byte* TabBarGetTabNameNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab); + [LibraryImport(LibName, EntryPoint = "igImSign_double")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double ImSignDoubleNative(double x); - [NativeName(NativeNameType.Func, "igTabBarGetTabName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* TabBarGetTabName([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab) + /// /// To be documented. /// public static double ImSignDouble( double x) { - byte* ret = TabBarGetTabNameNative(tabBar, tab); + double ret = ImSignDoubleNative(x); return ret; } - [NativeName(NativeNameType.Func, "igTabBarGetTabName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string TabBarGetTabNameS([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImRsqrt_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImRsqrtFloatNative(float x); + + /// /// To be documented. /// public static float ImRsqrtFloat( float x) { - string ret = Utils.DecodeStringUTF8(TabBarGetTabNameNative(tabBar, tab)); + float ret = ImRsqrtFloatNative(x); return ret; } - [NativeName(NativeNameType.Func, "igTabBarGetTabName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* TabBarGetTabName([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* ret = TabBarGetTabNameNative((ImGuiTabBar*)ptabBar, tab); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImRsqrt_double")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double ImRsqrtDoubleNative(double x); - [NativeName(NativeNameType.Func, "igTabBarGetTabName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string TabBarGetTabNameS([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab) + /// /// To be documented. /// public static double ImRsqrtDouble( double x) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - string ret = Utils.DecodeStringUTF8(TabBarGetTabNameNative((ImGuiTabBar*)ptabBar, tab)); - return ret; - } + double ret = ImRsqrtDoubleNative(x); + return ret; } - [NativeName(NativeNameType.Func, "igTabBarGetTabName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* TabBarGetTabName([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab) - { - fixed (ImGuiTabItem* ptab = &tab) - { - byte* ret = TabBarGetTabNameNative(tabBar, (ImGuiTabItem*)ptab); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImMin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImMinNative(Vector2* pOut, Vector2 lhs, Vector2 rhs); - [NativeName(NativeNameType.Func, "igTabBarGetTabName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string TabBarGetTabNameS([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab) + /// /// To be documented. /// public static void ImMin( Vector2* pOut, Vector2 lhs, Vector2 rhs) { - fixed (ImGuiTabItem* ptab = &tab) - { - string ret = Utils.DecodeStringUTF8(TabBarGetTabNameNative(tabBar, (ImGuiTabItem*)ptab)); - return ret; - } + ImMinNative(pOut, lhs, rhs); } - [NativeName(NativeNameType.Func, "igTabBarGetTabName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* TabBarGetTabName([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - byte* ret = TabBarGetTabNameNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab); - return ret; - } - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImMax")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImMaxNative(Vector2* pOut, Vector2 lhs, Vector2 rhs); - [NativeName(NativeNameType.Func, "igTabBarGetTabName")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string TabBarGetTabNameS([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab) + /// /// To be documented. /// public static void ImMax( Vector2* pOut, Vector2 lhs, Vector2 rhs) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - string ret = Utils.DecodeStringUTF8(TabBarGetTabNameNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab)); - return ret; - } - } + ImMaxNative(pOut, lhs, rhs); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarAddTab")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarAddTab")] - internal static extern void TabBarAddTabNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab_flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags tabFlags, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "igImClamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImClampNative(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx); - [NativeName(NativeNameType.Func, "igTabBarAddTab")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarAddTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab_flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags tabFlags, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + /// /// To be documented. /// public static void ImClamp( Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx) { - TabBarAddTabNative(tabBar, tabFlags, window); + ImClampNative(pOut, v, mn, mx); } - [NativeName(NativeNameType.Func, "igTabBarAddTab")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarAddTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab_flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags tabFlags, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, window); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLerp_Vec2Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImLerpVec2FloatNative(Vector2* pOut, Vector2 a, Vector2 b, float t); - [NativeName(NativeNameType.Func, "igTabBarAddTab")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarAddTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab_flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags tabFlags, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + /// /// To be documented. /// public static void ImLerpVec2Float( Vector2* pOut, Vector2 a, Vector2 b, float t) { - fixed (ImGuiWindow* pwindow = &window) - { - TabBarAddTabNative(tabBar, tabFlags, (ImGuiWindow*)pwindow); - } + ImLerpVec2FloatNative(pOut, a, b, t); } - [NativeName(NativeNameType.Func, "igTabBarAddTab")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarAddTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab_flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags tabFlags, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLerp_Vec2Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImLerpVec2Vec2Native(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t); + + /// /// To be documented. /// public static void ImLerpVec2Vec2( Vector2* pOut, Vector2 a, Vector2 b, Vector2 t) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiWindow* pwindow = &window) - { - TabBarAddTabNative((ImGuiTabBar*)ptabBar, tabFlags, (ImGuiWindow*)pwindow); - } - } + ImLerpVec2Vec2Native(pOut, a, b, t); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarRemoveTab")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarRemoveTab")] - internal static extern void TabBarRemoveTabNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId); + [LibraryImport(LibName, EntryPoint = "igImLerp_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImLerpVec4Native(Vector4* pOut, Vector4 a, Vector4 b, float t); - [NativeName(NativeNameType.Func, "igTabBarRemoveTab")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarRemoveTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId) + /// /// To be documented. /// public static void ImLerpVec4( Vector4* pOut, Vector4 a, Vector4 b, float t) { - TabBarRemoveTabNative(tabBar, tabId); + ImLerpVec4Native(pOut, a, b, t); } - [NativeName(NativeNameType.Func, "igTabBarRemoveTab")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarRemoveTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImSaturate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImSaturateNative(float f); + + /// /// To be documented. /// public static float ImSaturate( float f) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarRemoveTabNative((ImGuiTabBar*)ptabBar, tabId); - } + float ret = ImSaturateNative(f); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarCloseTab")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarCloseTab")] - internal static extern void TabBarCloseTabNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab); + [LibraryImport(LibName, EntryPoint = "igImLengthSqr_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImLengthSqrVec2Native(Vector2 lhs); - [NativeName(NativeNameType.Func, "igTabBarCloseTab")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarCloseTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab) + /// /// To be documented. /// public static float ImLengthSqrVec2( Vector2 lhs) { - TabBarCloseTabNative(tabBar, tab); + float ret = ImLengthSqrVec2Native(lhs); + return ret; } - [NativeName(NativeNameType.Func, "igTabBarCloseTab")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarCloseTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarCloseTabNative((ImGuiTabBar*)ptabBar, tab); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLengthSqr_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImLengthSqrVec4Native(Vector4 lhs); - [NativeName(NativeNameType.Func, "igTabBarCloseTab")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarCloseTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab) + /// /// To be documented. /// public static float ImLengthSqrVec4( Vector4 lhs) { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarCloseTabNative(tabBar, (ImGuiTabItem*)ptab); - } + float ret = ImLengthSqrVec4Native(lhs); + return ret; } - [NativeName(NativeNameType.Func, "igTabBarCloseTab")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarCloseTab([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImInvLength")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImInvLengthNative(Vector2 lhs, float failValue); + + /// /// To be documented. /// public static float ImInvLength( Vector2 lhs, float failValue) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarCloseTabNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab); - } - } + float ret = ImInvLengthNative(lhs, failValue); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarQueueFocus")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarQueueFocus")] - internal static extern void TabBarQueueFocusNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab); + [LibraryImport(LibName, EntryPoint = "igImTrunc_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImTruncFloatNative(float f); - [NativeName(NativeNameType.Func, "igTabBarQueueFocus")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueFocus([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab) + /// /// To be documented. /// public static float ImTruncFloat( float f) { - TabBarQueueFocusNative(tabBar, tab); + float ret = ImTruncFloatNative(f); + return ret; } - [NativeName(NativeNameType.Func, "igTabBarQueueFocus")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueFocus([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarQueueFocusNative((ImGuiTabBar*)ptabBar, tab); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTrunc_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImTruncVec2Native(Vector2* pOut, Vector2 v); - [NativeName(NativeNameType.Func, "igTabBarQueueFocus")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueFocus([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab) + /// /// To be documented. /// public static void ImTruncVec2( Vector2* pOut, Vector2 v) { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueFocusNative(tabBar, (ImGuiTabItem*)ptab); - } + ImTruncVec2Native(pOut, v); } - [NativeName(NativeNameType.Func, "igTabBarQueueFocus")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueFocus([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFloor_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImFloorFloatNative(float f); + + /// /// To be documented. /// public static float ImFloorFloat( float f) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueFocusNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab); - } - } + float ret = ImFloorFloatNative(f); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarQueueReorder")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarQueueReorder")] - internal static extern void TabBarQueueReorderNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "int")] int offset); + [LibraryImport(LibName, EntryPoint = "igImFloor_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFloorVec2Native(Vector2* pOut, Vector2 v); - [NativeName(NativeNameType.Func, "igTabBarQueueReorder")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueReorder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "int")] int offset) + /// /// To be documented. /// public static void ImFloorVec2( Vector2* pOut, Vector2 v) { - TabBarQueueReorderNative(tabBar, tab, offset); + ImFloorVec2Native(pOut, v); } - [NativeName(NativeNameType.Func, "igTabBarQueueReorder")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueReorder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "int")] int offset) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, tab, offset); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImModPositive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImModPositiveNative(int a, int b); - [NativeName(NativeNameType.Func, "igTabBarQueueReorder")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueReorder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "int")] int offset) + /// /// To be documented. /// public static int ImModPositive( int a, int b) { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderNative(tabBar, (ImGuiTabItem*)ptab, offset); - } + int ret = ImModPositiveNative(a, b); + return ret; } - [NativeName(NativeNameType.Func, "igTabBarQueueReorder")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueReorder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "int")] int offset) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImDot")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImDotNative(Vector2 a, Vector2 b); + + /// /// To be documented. /// public static float ImDot( Vector2 a, Vector2 b) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, offset); - } - } + float ret = ImDotNative(a, b); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarQueueReorderFromMousePos")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarQueueReorderFromMousePos")] - internal static extern void TabBarQueueReorderFromMousePosNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab, [NativeName(NativeNameType.Param, "mouse_pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 mousePos); + [LibraryImport(LibName, EntryPoint = "igImRotate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRotateNative(Vector2* pOut, Vector2 v, float cosA, float sinA); - [NativeName(NativeNameType.Func, "igTabBarQueueReorderFromMousePos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueReorderFromMousePos([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab, [NativeName(NativeNameType.Param, "mouse_pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 mousePos) + /// /// To be documented. /// public static void ImRotate( Vector2* pOut, Vector2 v, float cosA, float sinA) { - TabBarQueueReorderFromMousePosNative(tabBar, tab, mousePos); + ImRotateNative(pOut, v, cosA, sinA); } - [NativeName(NativeNameType.Func, "igTabBarQueueReorderFromMousePos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueReorderFromMousePos([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ImGuiTabItem* tab, [NativeName(NativeNameType.Param, "mouse_pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 mousePos) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, tab, mousePos); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLinearSweep")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImLinearSweepNative(float current, float target, float speed); - [NativeName(NativeNameType.Func, "igTabBarQueueReorderFromMousePos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueReorderFromMousePos([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab, [NativeName(NativeNameType.Param, "mouse_pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 mousePos) + /// /// To be documented. /// public static float ImLinearSweep( float current, float target, float speed) { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderFromMousePosNative(tabBar, (ImGuiTabItem*)ptab, mousePos); - } + float ret = ImLinearSweepNative(current, target, speed); + return ret; } - [NativeName(NativeNameType.Func, "igTabBarQueueReorderFromMousePos")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabBarQueueReorderFromMousePos([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "tab")] [NativeName(NativeNameType.Type, "ImGuiTabItem*")] ref ImGuiTabItem tab, [NativeName(NativeNameType.Param, "mouse_pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 mousePos) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImMul")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImMulNative(Vector2* pOut, Vector2 lhs, Vector2 rhs); + + /// /// To be documented. /// public static void ImMul( Vector2* pOut, Vector2 lhs, Vector2 rhs) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (ImGuiTabItem* ptab = &tab) - { - TabBarQueueReorderFromMousePosNative((ImGuiTabBar*)ptabBar, (ImGuiTabItem*)ptab, mousePos); - } - } + ImMulNative(pOut, lhs, rhs); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabBarProcessReorder")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabBarProcessReorder")] - internal static extern byte TabBarProcessReorderNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar); + [LibraryImport(LibName, EntryPoint = "igImIsFloatAboveGuaranteedIntegerPrecision")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImIsFloatAboveGuaranteedIntegerPrecisionNative(float f); - [NativeName(NativeNameType.Func, "igTabBarProcessReorder")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabBarProcessReorder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar) + /// /// To be documented. /// public static bool ImIsFloatAboveGuaranteedIntegerPrecision( float f) { - byte ret = TabBarProcessReorderNative(tabBar); + byte ret = ImIsFloatAboveGuaranteedIntegerPrecisionNative(f); return ret != 0; } - [NativeName(NativeNameType.Func, "igTabBarProcessReorder")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabBarProcessReorder([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImExponentialMovingAverage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImExponentialMovingAverageNative(float avg, float sample, int n); + + /// /// To be documented. /// public static float ImExponentialMovingAverage( float avg, float sample, int n) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte ret = TabBarProcessReorderNative((ImGuiTabBar*)ptabBar); - return ret != 0; - } + float ret = ImExponentialMovingAverageNative(avg, sample, n); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabItemEx")] - internal static extern byte TabItemExNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow); + [LibraryImport(LibName, EntryPoint = "igImBezierCubicCalc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBezierCubicCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t); - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) + /// /// To be documented. /// public static void ImBezierCubicCalc( Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) { - byte ret = TabItemExNative(tabBar, label, pOpen, flags, dockedWindow); - return ret != 0; + ImBezierCubicCalcNative(pOut, p1, p2, p3, p4, t); } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, dockedWindow); - return ret != 0; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBezierCubicClosestPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBezierCubicClosestPointNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments); - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) + /// /// To be documented. /// public static void ImBezierCubicClosestPoint( Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int numSegments) { - fixed (byte* plabel = &label) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); - return ret != 0; - } + ImBezierCubicClosestPointNative(pOut, p1, p2, p3, p4, p, numSegments); } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBezierCubicClosestPointCasteljau")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBezierCubicClosestPointCasteljauNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol); - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) + /// /// To be documented. /// public static void ImBezierCubicClosestPointCasteljau( Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tessTol) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, dockedWindow); - return ret != 0; - } - } + ImBezierCubicClosestPointCasteljauNative(pOut, p1, p2, p3, p4, p, tessTol); } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBezierQuadraticCalc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBezierQuadraticCalcNative(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t); - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) + /// /// To be documented. /// public static void ImBezierQuadraticCalc( Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t) { - fixed (byte* ppOpen = &pOpen) - { - byte ret = TabItemExNative(tabBar, label, (byte*)ppOpen, flags, dockedWindow); - return ret != 0; - } + ImBezierQuadraticCalcNative(pOut, p1, p2, p3, t); } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (byte*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImLineClosestPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImLineClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p); - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) + /// /// To be documented. /// public static void ImLineClosestPoint( Vector2* pOut, Vector2 a, Vector2 b, Vector2 p) { - fixed (byte* plabel = &label) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, (byte*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } + ImLineClosestPointNative(pOut, a, b, p); } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppOpen = &pOpen) - { - byte ret = TabItemExNative(tabBar, pStr0, (byte*)ppOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTriangleContainsPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImTriangleContainsPointNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p); + + /// /// To be documented. /// public static bool ImTriangleContainsPoint( Vector2 a, Vector2 b, Vector2 c, Vector2 p) + { + byte ret = ImTriangleContainsPointNative(a, b, c, p); + return ret != 0; } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTriangleClosestPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImTriangleClosestPointNative(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p); + + /// /// To be documented. /// public static void ImTriangleClosestPoint( Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppOpen = &pOpen) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (byte*)ppOpen, flags, dockedWindow); - return ret != 0; - } - } - } + ImTriangleClosestPointNative(pOut, a, b, c, p); } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* dockedWindow) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTriangleBarycentricCoords")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImTriangleBarycentricCoordsNative(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW); + + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, float* outW) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppOpen = &pOpen) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (byte*)ppOpen, flags, dockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, outW); } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, float* outW) { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + fixed (float* poutU = &outU) { - byte ret = TabItemExNative(tabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, outW); } } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, float* outW) { - fixed (ImGuiTabBar* ptabBar = &tabBar) + fixed (float* poutV = &outV) { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, outW); } } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, float* outW) { - fixed (byte* plabel = &label) + fixed (float* poutU = &outU) { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + fixed (float* poutV = &outV) { - byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, outW); } } } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, float* outV, ref float outW) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (float* poutW = &outW) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, outV, (float*)poutW); } - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + } + + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, float* outV, ref float outW) + { + fixed (float* poutU = &outU) { - byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* poutW = &outW) { - Utils.Free(pStr0); + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, outV, (float*)poutW); } - return ret != 0; } } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* outU, ref float outV, ref float outW) { - fixed (ImGuiTabBar* ptabBar = &tabBar) + fixed (float* poutV = &outV) { - fixed (byte* plabel = &label) + fixed (float* poutW = &outW) { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } + ImTriangleBarycentricCoordsNative(a, b, c, p, outU, (float*)poutV, (float*)poutW); } } } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] byte* pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// /// To be documented. /// public static void ImTriangleBarycentricCoords( Vector2 a, Vector2 b, Vector2 c, Vector2 p, ref float outU, ref float outV, ref float outW) { - fixed (ImGuiTabBar* ptabBar = &tabBar) + fixed (float* poutU = &outU) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + fixed (float* poutV = &outV) { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (float* poutW = &outW) { - Utils.Free(pStr0); + ImTriangleBarycentricCoordsNative(a, b, c, p, (float*)poutU, (float*)poutV, (float*)poutW); } - return ret != 0; } } } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImTriangleArea")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImTriangleAreaNative(Vector2 a, Vector2 b, Vector2 c); + + /// /// To be documented. /// public static float ImTriangleArea( Vector2 a, Vector2 b, Vector2 c) { - fixed (byte* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, label, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } + float ret = ImTriangleAreaNative(a, b, c); + return ret; } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec1_ImVec1_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVec1* ImVec1ImVec1NilNative(); + + /// /// To be documented. /// public static ImVec1* ImVec1ImVec1Nil() { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, label, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } + ImVec1* ret = ImVec1ImVec1NilNative(); + return ret; } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec1_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImVec1DestroyNative(ImVec1* self); + + /// /// To be documented. /// public static void ImVec1Destroy( ImVec1* self) { - fixed (byte* plabel = &label) - { - fixed (byte* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, (byte*)plabel, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } + ImVec1DestroyNative(self); } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec1_ImVec1_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVec1* ImVec1ImVec1FloatNative(float X); + + /// /// To be documented. /// public static ImVec1* ImVec1ImVec1Float( float X) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative(tabBar, pStr0, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } + ImVec1* ret = ImVec1ImVec1FloatNative(X); + return ret; } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec2ih_ImVec2ih_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVec2Ih* ImVec2IhImVec2IhNilNative(); + + /// /// To be documented. /// public static ImVec2Ih* ImVec2IhImVec2IhNil() { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - fixed (byte* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, (byte*)plabel, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - return ret != 0; - } - } - } - } + ImVec2Ih* ret = ImVec2IhImVec2IhNilNative(); + return ret; } - [NativeName(NativeNameType.Func, "igTabItemEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TabItemEx([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "p_open")] [NativeName(NativeNameType.Type, "bool*")] ref byte pOpen, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "docked_window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow dockedWindow) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec2ih_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImVec2IhDestroyNative(ImVec2Ih* self); + + /// /// To be documented. /// public static void ImVec2IhDestroy( ImVec2Ih* self) { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* ppOpen = &pOpen) - { - fixed (ImGuiWindow* pdockedWindow = &dockedWindow) - { - byte ret = TabItemExNative((ImGuiTabBar*)ptabBar, pStr0, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - } - } + ImVec2IhDestroyNative(self); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabItemCalcSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabItemCalcSize_Str")] - internal static extern void TabItemCalcSizeNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "has_close_button_or_unsaved_marker")] [NativeName(NativeNameType.Type, "bool")] byte hasCloseButtonOrUnsavedMarker); + [LibraryImport(LibName, EntryPoint = "ImVec2ih_ImVec2ih_short")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVec2Ih* ImVec2IhImVec2IhShortNative(short X, short Y); - [NativeName(NativeNameType.Func, "igTabItemCalcSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemCalcSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "has_close_button_or_unsaved_marker")] [NativeName(NativeNameType.Type, "bool")] bool hasCloseButtonOrUnsavedMarker) + /// /// To be documented. /// public static ImVec2Ih* ImVec2IhImVec2IhShort( short X, short Y) { - TabItemCalcSizeNative(pOut, label, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); + ImVec2Ih* ret = ImVec2IhImVec2IhShortNative(X, Y); + return ret; } - [NativeName(NativeNameType.Func, "igTabItemCalcSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemCalcSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "has_close_button_or_unsaved_marker")] [NativeName(NativeNameType.Type, "bool")] bool hasCloseButtonOrUnsavedMarker) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImVec2ih_ImVec2ih_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVec2Ih* ImVec2IhImVec2IhVec2Native(Vector2 rhs); + + /// /// To be documented. /// public static ImVec2Ih* ImVec2IhImVec2IhVec2( Vector2 rhs) { - fixed (Vector2* ppOut = &pOut) - { - TabItemCalcSizeNative((Vector2*)ppOut, label, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); - } + ImVec2Ih* ret = ImVec2IhImVec2IhVec2Native(rhs); + return ret; } - [NativeName(NativeNameType.Func, "igTabItemCalcSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemCalcSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "has_close_button_or_unsaved_marker")] [NativeName(NativeNameType.Type, "bool")] bool hasCloseButtonOrUnsavedMarker) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ImRect_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImRect* ImRectImRectNilNative(); + + /// /// To be documented. /// public static ImRect* ImRectImRectNil() { - fixed (byte* plabel = &label) - { - TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); - } + ImRect* ret = ImRectImRectNilNative(); + return ret; } - [NativeName(NativeNameType.Func, "igTabItemCalcSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemCalcSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "has_close_button_or_unsaved_marker")] [NativeName(NativeNameType.Type, "bool")] bool hasCloseButtonOrUnsavedMarker) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectDestroyNative(ImRect* self); + + /// /// To be documented. /// public static void ImRectDestroy( ImRect* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TabItemCalcSizeNative(pOut, pStr0, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImRectDestroyNative(self); } - [NativeName(NativeNameType.Func, "igTabItemCalcSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemCalcSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "has_close_button_or_unsaved_marker")] [NativeName(NativeNameType.Type, "bool")] bool hasCloseButtonOrUnsavedMarker) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ImRect_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImRect* ImRectImRectVec2Native(Vector2 min, Vector2 max); + + /// /// To be documented. /// public static ImRect* ImRectImRectVec2( Vector2 min, Vector2 max) { - fixed (Vector2* ppOut = &pOut) - { - fixed (byte* plabel = &label) - { - TabItemCalcSizeNative((Vector2*)ppOut, (byte*)plabel, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); - } - } + ImRect* ret = ImRectImRectVec2Native(min, max); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ImRect_Vec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImRect* ImRectImRectVec4Native(Vector4 v); + + /// /// To be documented. /// public static ImRect* ImRectImRectVec4( Vector4 v) + { + ImRect* ret = ImRectImRectVec4Native(v); + return ret; } - [NativeName(NativeNameType.Func, "igTabItemCalcSize_Str")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemCalcSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "has_close_button_or_unsaved_marker")] [NativeName(NativeNameType.Type, "bool")] bool hasCloseButtonOrUnsavedMarker) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ImRect_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImRect* ImRectImRectFloatNative(float x1, float y1, float x2, float y2); + + /// /// To be documented. /// public static ImRect* ImRectImRectFloat( float x1, float y1, float x2, float y2) { - fixed (Vector2* ppOut = &pOut) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TabItemCalcSizeNative((Vector2*)ppOut, pStr0, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImRect* ret = ImRectImRectFloatNative(x1, y1, x2, y2); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabItemCalcSize_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabItemCalcSize_WindowPtr")] - internal static extern void TabItemCalcSizeNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "ImRect_GetCenter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetCenterNative(Vector2* pOut, ImRect* self); - [NativeName(NativeNameType.Func, "igTabItemCalcSize_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemCalcSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + /// /// To be documented. /// public static void ImRectGetCenter( Vector2* pOut, ImRect* self) { - TabItemCalcSizeNative(pOut, window); + ImRectGetCenterNative(pOut, self); } - [NativeName(NativeNameType.Func, "igTabItemCalcSize_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemCalcSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + /// /// To be documented. /// public static void ImRectGetCenter( Vector2* pOut, ref ImRect self) { - fixed (Vector2* ppOut = &pOut) + fixed (ImRect* pself = &self) { - TabItemCalcSizeNative((Vector2*)ppOut, window); + ImRectGetCenterNative(pOut, (ImRect*)pself); } } - [NativeName(NativeNameType.Func, "igTabItemCalcSize_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemCalcSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetSizeNative(Vector2* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectGetSize( Vector2* pOut, ImRect* self) { - fixed (ImGuiWindow* pwindow = &window) - { - TabItemCalcSizeNative(pOut, (ImGuiWindow*)pwindow); - } + ImRectGetSizeNative(pOut, self); } - [NativeName(NativeNameType.Func, "igTabItemCalcSize_WindowPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemCalcSize([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) + /// /// To be documented. /// public static void ImRectGetSize( Vector2* pOut, ref ImRect self) { - fixed (Vector2* ppOut = &pOut) + fixed (ImRect* pself = &self) { - fixed (ImGuiWindow* pwindow = &window) - { - TabItemCalcSizeNative((Vector2*)ppOut, (ImGuiWindow*)pwindow); - } + ImRectGetSizeNative(pOut, (ImRect*)pself); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabItemBackground")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabItemBackground")] - internal static extern void TabItemBackgroundNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); + [LibraryImport(LibName, EntryPoint = "ImRect_GetWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImRectGetWidthNative(ImRect* self); - [NativeName(NativeNameType.Func, "igTabItemBackground")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemBackground([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + /// /// To be documented. /// public static float ImRectGetWidth( ImRect* self) { - TabItemBackgroundNative(drawList, bb, flags, col); + float ret = ImRectGetWidthNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igTabItemBackground")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemBackground([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImRectGetHeightNative(ImRect* self); + + /// /// To be documented. /// public static float ImRectGetHeight( ImRect* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - TabItemBackgroundNative((ImDrawList*)pdrawList, bb, flags, col); - } + float ret = ImRectGetHeightNative(self); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTabItemLabelAndCloseButton")] - internal static extern void TabItemLabelAndCloseButtonNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] byte isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped); + [LibraryImport(LibName, EntryPoint = "ImRect_GetArea")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImRectGetAreaNative(ImRect* self); - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// /// To be documented. /// public static float ImRectGetArea( ImRect* self) { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); + float ret = ImRectGetAreaNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetTL")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetTLNative(Vector2* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectGetTL( Vector2* pOut, ImRect* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - } + ImRectGetTLNative(pOut, self); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// /// To be documented. /// public static void ImRectGetTL( Vector2* pOut, ref ImRect self) { - fixed (byte* plabel = &label) + fixed (ImRect* pself = &self) { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); + ImRectGetTLNative(pOut, (ImRect*)pself); } } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetTR")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetTRNative(Vector2* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectGetTR( Vector2* pOut, ImRect* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImRectGetTRNative(pOut, self); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// /// To be documented. /// public static void ImRectGetTR( Vector2* pOut, ref ImRect self) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImRect* pself = &self) { - fixed (byte* plabel = &label) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - } + ImRectGetTRNative(pOut, (ImRect*)pself); } } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetBL")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetBLNative(Vector2* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectGetBL( Vector2* pOut, ImRect* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImRectGetBLNative(pOut, self); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// /// To be documented. /// public static void ImRectGetBL( Vector2* pOut, ref ImRect self) { - fixed (byte* poutJustClosed = &outJustClosed) + fixed (ImRect* pself = &self) { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); + ImRectGetBLNative(pOut, (ImRect*)pself); } } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_GetBR")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectGetBRNative(Vector2* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectGetBR( Vector2* pOut, ImRect* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); - } - } + ImRectGetBRNative(pOut, self); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// /// To be documented. /// public static void ImRectGetBR( Vector2* pOut, ref ImRect self) { - fixed (byte* plabel = &label) + fixed (ImRect* pself = &self) { - fixed (byte* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); - } + ImRectGetBRNative(pOut, (ImRect*)pself); } } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Contains_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImRectContainsVec2Native(ImRect* self, Vector2 p); + + /// /// To be documented. /// public static bool ImRectContainsVec2( ImRect* self, Vector2 p) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + byte ret = ImRectContainsVec2Native(self, p); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Contains_Rect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImRectContainsRectNative(ImRect* self, ImRect r); + + /// /// To be documented. /// public static bool ImRectContainsRect( ImRect* self, ImRect r) + { + byte ret = ImRectContainsRectNative(self, r); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ContainsWithPad")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImRectContainsWithPadNative(ImRect* self, Vector2 p, Vector2 pad); + + /// /// To be documented. /// public static bool ImRectContainsWithPad( ImRect* self, Vector2 p, Vector2 pad) + { + byte ret = ImRectContainsWithPadNative(self, p, pad); + return ret != 0; } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Overlaps")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImRectOverlapsNative(ImRect* self, ImRect r); + + /// /// To be documented. /// public static bool ImRectOverlaps( ImRect* self, ImRect r) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - fixed (byte* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); - } - } - } + byte ret = ImRectOverlapsNative(self, r); + return ret != 0; } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] byte* outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Add_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectAddVec2Native(ImRect* self, Vector2 p); + + /// /// To be documented. /// public static void ImRectAddVec2( ImRect* self, Vector2 p) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poutJustClosed = &outJustClosed) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ImRectAddVec2Native(self, p); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Add_Rect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectAddRectNative(ImRect* self, ImRect r); + + /// /// To be documented. /// public static void ImRectAddRect( ImRect* self, ImRect r) { - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); - } + ImRectAddRectNative(self, r); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Expand_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectExpandFloatNative(ImRect* self, float amount); + + /// /// To be documented. /// public static void ImRectExpandFloat( ImRect* self, float amount) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); - } - } + ImRectExpandFloatNative(self, amount); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Expand_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectExpandVec2Native(ImRect* self, Vector2 amount); + + /// /// To be documented. /// public static void ImRectExpandVec2( ImRect* self, Vector2 amount) { - fixed (byte* plabel = &label) - { - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); - } - } + ImRectExpandVec2Native(self, amount); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Translate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectTranslateNative(ImRect* self, Vector2 d); + + /// /// To be documented. /// public static void ImRectTranslate( ImRect* self, Vector2 d) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImRectTranslateNative(self, d); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_TranslateX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectTranslateXNative(ImRect* self, float dx); + + /// /// To be documented. /// public static void ImRectTranslateX( ImRect* self, float dx) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); - } - } - } + ImRectTranslateXNative(self, dx); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] byte* outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_TranslateY")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectTranslateYNative(ImRect* self, float dy); + + /// /// To be documented. /// public static void ImRectTranslateY( ImRect* self, float dy) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ImRectTranslateYNative(self, dy); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ClipWith")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectClipWithNative(ImRect* self, ImRect r); + + /// /// To be documented. /// public static void ImRectClipWith( ImRect* self, ImRect r) { - fixed (byte* poutJustClosed = &outJustClosed) - { - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); - } - } + ImRectClipWithNative(self, r); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ClipWithFull")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectClipWithFullNative(ImRect* self, ImRect r); + + /// /// To be documented. /// public static void ImRectClipWithFull( ImRect* self, ImRect r) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* poutJustClosed = &outJustClosed) - { - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); - } - } - } + ImRectClipWithFullNative(self, r); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_Floor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectFloorNative(ImRect* self); + + /// /// To be documented. /// public static void ImRectFloor( ImRect* self) { - fixed (byte* plabel = &label) - { - fixed (byte* poutJustClosed = &outJustClosed) - { - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); - } - } - } + ImRectFloorNative(self); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_IsInverted")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImRectIsInvertedNative(ImRect* self); + + /// /// To be documented. /// public static bool ImRectIsInverted( ImRect* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poutJustClosed = &outJustClosed) - { - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + byte ret = ImRectIsInvertedNative(self); + return ret != 0; } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImRect_ToVec4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImRectToVec4Native(Vector4* pOut, ImRect* self); + + /// /// To be documented. /// public static void ImRectToVec4( Vector4* pOut, ImRect* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - fixed (byte* poutJustClosed = &outJustClosed) - { - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); - } - } - } - } + ImRectToVec4Native(pOut, self); } - [NativeName(NativeNameType.Func, "igTabItemLabelAndCloseButton")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TabItemLabelAndCloseButton([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] ImGuiTabItemFlags flags, [NativeName(NativeNameType.Param, "frame_padding")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 framePadding, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "tab_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int tabId, [NativeName(NativeNameType.Param, "close_button_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int closeButtonId, [NativeName(NativeNameType.Param, "is_contents_visible")] [NativeName(NativeNameType.Type, "bool")] bool isContentsVisible, [NativeName(NativeNameType.Param, "out_just_closed")] [NativeName(NativeNameType.Type, "bool*")] ref byte outJustClosed, [NativeName(NativeNameType.Param, "out_text_clipped")] [NativeName(NativeNameType.Type, "bool*")] ref byte outTextClipped) + /// /// To be documented. /// public static void ImRectToVec4( Vector4* pOut, ref ImRect self) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImRect* pself = &self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (byte* poutJustClosed = &outJustClosed) - { - fixed (byte* poutTextClipped = &outTextClipped) - { - TabItemLabelAndCloseButtonNative((ImDrawList*)pdrawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ImRectToVec4Native(pOut, (ImRect*)pself); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderText")] - internal static extern void RenderTextNative([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_hash")] [NativeName(NativeNameType.Type, "bool")] byte hideTextAfterHash); + [LibraryImport(LibName, EntryPoint = "igImBitArrayGetStorageSizeInBytes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong ImBitArrayGetStorageSizeInBytesNative(int bitcount); - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterHash) + /// /// To be documented. /// public static ulong ImBitArrayGetStorageSizeInBytes( int bitcount) { - RenderTextNative(pos, text, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); + ulong ret = ImBitArrayGetStorageSizeInBytesNative(bitcount); + return ret; } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - RenderTextNative(pos, text, textEnd, (byte)(1)); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBitArrayClearAllBits")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitArrayClearAllBitsNative(uint* arr, int bitcount); - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) + /// /// To be documented. /// public static void ImBitArrayClearAllBits( uint* arr, int bitcount) { - RenderTextNative(pos, text, (byte*)(default), (byte)(1)); + ImBitArrayClearAllBitsNative(arr, bitcount); } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "hide_text_after_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterHash) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBitArrayTestBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImBitArrayTestBitNative(uint* arr, int n); + + /// /// To be documented. /// public static bool ImBitArrayTestBit( uint* arr, int n) { - RenderTextNative(pos, text, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); + byte ret = ImBitArrayTestBitNative(arr, n); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterHash) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBitArrayClearBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitArrayClearBitNative(uint* arr, int n); + + /// /// To be documented. /// public static void ImBitArrayClearBit( uint* arr, int n) { - fixed (byte* ptext = &text) - { - RenderTextNative(pos, (byte*)ptext, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } + ImBitArrayClearBitNative(arr, n); } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBitArraySetBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitArraySetBitNative(uint* arr, int n); + + /// /// To be documented. /// public static void ImBitArraySetBit( uint* arr, int n) { - fixed (byte* ptext = &text) - { - RenderTextNative(pos, (byte*)ptext, textEnd, (byte)(1)); - } + ImBitArraySetBitNative(arr, n); } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImBitArraySetBitRange")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitArraySetBitRangeNative(uint* arr, int n, int n2); + + /// /// To be documented. /// public static void ImBitArraySetBitRange( uint* arr, int n, int n2) { - fixed (byte* ptext = &text) - { - RenderTextNative(pos, (byte*)ptext, (byte*)(default), (byte)(1)); - } + ImBitArraySetBitRangeNative(arr, n, n2); } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "hide_text_after_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterHash) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImBitVector_Create")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitVectorCreateNative(ImBitVector* self, int sz); + + /// /// To be documented. /// public static void ImBitVectorCreate( ImBitVector* self, int sz) { - fixed (byte* ptext = &text) - { - RenderTextNative(pos, (byte*)ptext, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); - } + ImBitVectorCreateNative(self, sz); } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "hide_text_after_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterHash) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImBitVector_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitVectorClearNative(ImBitVector* self); + + /// /// To be documented. /// public static void ImBitVectorClear( ImBitVector* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, pStr0, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImBitVectorClearNative(self); } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImBitVector_TestBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImBitVectorTestBitNative(ImBitVector* self, int n); + + /// /// To be documented. /// public static bool ImBitVectorTestBit( ImBitVector* self, int n) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, pStr0, textEnd, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = ImBitVectorTestBitNative(self, n); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImBitVector_SetBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitVectorSetBitNative(ImBitVector* self, int n); + + /// /// To be documented. /// public static void ImBitVectorSetBit( ImBitVector* self, int n) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, pStr0, (byte*)(default), (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImBitVectorSetBitNative(self, n); } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "hide_text_after_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterHash) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImBitVector_ClearBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImBitVectorClearBitNative(ImBitVector* self, int n); + + /// /// To be documented. /// public static void ImBitVectorClearBit( ImBitVector* self, int n) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, pStr0, (byte*)(default), hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImBitVectorClearBitNative(self, n); } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "hide_text_after_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterHash) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextIndex_clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTextIndexClearNative(ImGuiTextIndex* self); + + /// /// To be documented. /// public static void ImGuiTextIndexClear( ImGuiTextIndex* self) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, text, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } + ImGuiTextIndexClearNative(self); } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextIndex_size")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiTextIndexSizeNative(ImGuiTextIndex* self); + + /// /// To be documented. /// public static int ImGuiTextIndexSize( ImGuiTextIndex* self) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, text, (byte*)ptextEnd, (byte)(1)); - } + int ret = ImGuiTextIndexSizeNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "hide_text_after_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterHash) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextIndex_get_line_begin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImGuiTextIndexGetLineBeginNative(ImGuiTextIndex* self, byte* baseValue, int n); + + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineBegin( ImGuiTextIndex* self, byte* baseValue, int n) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, text, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte* ret = ImGuiTextIndexGetLineBeginNative(self, baseValue, n); + return ret; } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + /// /// To be documented. /// public static string ImGuiTextIndexGetLineBeginS( ImGuiTextIndex* self, byte* baseValue, int n) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextNative(pos, text, pStr0, (byte)(1)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineBeginNative(self, baseValue, n)); + return ret; } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "hide_text_after_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterHash) + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineBegin( ImGuiTextIndex* self, ref byte baseValue, int n) { - fixed (byte* ptext = &text) + fixed (byte* pbaseValue = &baseValue) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); - } + byte* ret = ImGuiTextIndexGetLineBeginNative(self, (byte*)pbaseValue, n); + return ret; } } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + /// /// To be documented. /// public static string ImGuiTextIndexGetLineBeginS( ImGuiTextIndex* self, ref byte baseValue, int n) { - fixed (byte* ptext = &text) + fixed (byte* pbaseValue = &baseValue) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, (byte)(1)); - } + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineBeginNative(self, (byte*)pbaseValue, n)); + return ret; } } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "hide_text_after_hash")] [NativeName(NativeNameType.Type, "bool")] bool hideTextAfterHash) + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineBegin( ImGuiTextIndex* self, string baseValue, int n) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (baseValue != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(baseValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -228787,46 +63052,24 @@ public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeN byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(pos, pStr0, pStr1, hideTextAfterHash ? (byte)1 : (byte)0); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + byte* ret = ImGuiTextIndexGetLineBeginNative(self, pStr0, n); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igRenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + /// /// To be documented. /// public static string ImGuiTextIndexGetLineBeginS( ImGuiTextIndex* self, string baseValue, int n) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (baseValue != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(baseValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -228836,71 +63079,61 @@ public static void RenderText([NativeName(NativeNameType.Param, "pos")] [NativeN byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextNative(pos, pStr0, pStr1, (byte)(1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineBeginNative(self, pStr0, n)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderTextWrapped")] - internal static extern void RenderTextWrappedNative([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth); + [LibraryImport(LibName, EntryPoint = "ImGuiTextIndex_get_line_end")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImGuiTextIndexGetLineEndNative(ImGuiTextIndex* self, byte* baseValue, int n); - [NativeName(NativeNameType.Func, "igRenderTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextWrapped([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineEnd( ImGuiTextIndex* self, byte* baseValue, int n) { - RenderTextWrappedNative(pos, text, textEnd, wrapWidth); + byte* ret = ImGuiTextIndexGetLineEndNative(self, baseValue, n); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextWrapped([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + /// /// To be documented. /// public static string ImGuiTextIndexGetLineEndS( ImGuiTextIndex* self, byte* baseValue, int n) { - fixed (byte* ptext = &text) + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineEndNative(self, baseValue, n)); + return ret; + } + + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineEnd( ImGuiTextIndex* self, ref byte baseValue, int n) + { + fixed (byte* pbaseValue = &baseValue) { - RenderTextWrappedNative(pos, (byte*)ptext, textEnd, wrapWidth); + byte* ret = ImGuiTextIndexGetLineEndNative(self, (byte*)pbaseValue, n); + return ret; } } - [NativeName(NativeNameType.Func, "igRenderTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextWrapped([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + /// /// To be documented. /// public static string ImGuiTextIndexGetLineEndS( ImGuiTextIndex* self, ref byte baseValue, int n) + { + fixed (byte* pbaseValue = &baseValue) + { + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineEndNative(self, (byte*)pbaseValue, n)); + return ret; + } + } + + /// /// To be documented. /// public static byte* ImGuiTextIndexGetLineEnd( ImGuiTextIndex* self, string baseValue, int n) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (baseValue != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(baseValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -228910,35 +63143,24 @@ public static void RenderTextWrapped([NativeName(NativeNameType.Param, "pos")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - RenderTextWrappedNative(pos, pStr0, textEnd, wrapWidth); + byte* ret = ImGuiTextIndexGetLineEndNative(self, pStr0, n); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextWrapped([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextWrappedNative(pos, text, (byte*)ptextEnd, wrapWidth); - } - } - - [NativeName(NativeNameType.Func, "igRenderTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextWrapped([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + /// /// To be documented. /// public static string ImGuiTextIndexGetLineEndS( ImGuiTextIndex* self, string baseValue, int n) { byte* pStr0 = null; int pStrSize0 = 0; - if (textEnd != null) + if (baseValue != null) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); + pStrSize0 = Utils.GetByteCountUTF8(baseValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -228948,38 +63170,44 @@ public static void RenderTextWrapped([NativeName(NativeNameType.Param, "pos")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - RenderTextWrappedNative(pos, text, pStr0, wrapWidth); + string ret = Utils.DecodeStringUTF8(ImGuiTextIndexGetLineEndNative(self, pStr0, n)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTextIndex_append")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTextIndexAppendNative(ImGuiTextIndex* self, byte* baseValue, int oldSize, int newSize); + + /// /// To be documented. /// public static void ImGuiTextIndexAppend( ImGuiTextIndex* self, byte* baseValue, int oldSize, int newSize) + { + ImGuiTextIndexAppendNative(self, baseValue, oldSize, newSize); } - [NativeName(NativeNameType.Func, "igRenderTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextWrapped([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + /// /// To be documented. /// public static void ImGuiTextIndexAppend( ImGuiTextIndex* self, ref byte baseValue, int oldSize, int newSize) { - fixed (byte* ptext = &text) + fixed (byte* pbaseValue = &baseValue) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); - } + ImGuiTextIndexAppendNative(self, (byte*)pbaseValue, oldSize, newSize); } } - [NativeName(NativeNameType.Func, "igRenderTextWrapped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextWrapped([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + /// /// To be documented. /// public static void ImGuiTextIndexAppend( ImGuiTextIndex* self, string baseValue, int oldSize, int newSize) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (baseValue != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(baseValue); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -228989,1822 +63217,1570 @@ public static void RenderTextWrapped([NativeName(NativeNameType.Param, "pos")] [ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) + ImGuiTextIndexAppendNative(self, pStr0, oldSize, newSize); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + Utils.Free(pStr0); } - RenderTextWrappedNative(pos, pStr0, pStr1, wrapWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSharedData_ImDrawListSharedData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawListSharedData* ImDrawListSharedDataImDrawListSharedDataNative(); + + /// /// To be documented. /// public static ImDrawListSharedData* ImDrawListSharedDataImDrawListSharedData() + { + ImDrawListSharedData* ret = ImDrawListSharedDataImDrawListSharedDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSharedData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImDrawListSharedDataDestroyNative(ImDrawListSharedData* self); + + /// /// To be documented. /// public static void ImDrawListSharedDataDestroy( ImDrawListSharedData* self) + { + ImDrawListSharedDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawListSharedData_SetCircleTessellationMaxError")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImDrawListSharedDataSetCircleTessellationMaxErrorNative(ImDrawListSharedData* self, float maxError); + + /// /// To be documented. /// public static void ImDrawListSharedDataSetCircleTessellationMaxError( ImDrawListSharedData* self, float maxError) + { + ImDrawListSharedDataSetCircleTessellationMaxErrorNative(self, maxError); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawDataBuilder_ImDrawDataBuilder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawDataBuilder* ImDrawDataBuilderImDrawDataBuilderNative(); + + /// /// To be documented. /// public static ImDrawDataBuilder* ImDrawDataBuilderImDrawDataBuilder() + { + ImDrawDataBuilder* ret = ImDrawDataBuilderImDrawDataBuilderNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImDrawDataBuilder_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImDrawDataBuilderDestroyNative(ImDrawDataBuilder* self); + + /// /// To be documented. /// public static void ImDrawDataBuilderDestroy( ImDrawDataBuilder* self) + { + ImDrawDataBuilderDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDataVarInfo_GetVarPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* ImGuiDataVarInfoGetVarPtrNative(ImGuiDataVarInfo* self, void* parent); + + /// /// To be documented. /// public static void* ImGuiDataVarInfoGetVarPtr( ImGuiDataVarInfo* self, void* parent) + { + void* ret = ImGuiDataVarInfoGetVarPtrNative(self, parent); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyleMod_ImGuiStyleMod_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStyleMod* ImGuiStyleModImGuiStyleModIntNative(int idx, int v); + + /// /// To be documented. /// public static ImGuiStyleMod* ImGuiStyleModImGuiStyleModInt( int idx, int v) + { + ImGuiStyleMod* ret = ImGuiStyleModImGuiStyleModIntNative(idx, v); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyleMod_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiStyleModDestroyNative(ImGuiStyleMod* self); + + /// /// To be documented. /// public static void ImGuiStyleModDestroy( ImGuiStyleMod* self) + { + ImGuiStyleModDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyleMod_ImGuiStyleMod_Float")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStyleMod* ImGuiStyleModImGuiStyleModFloatNative(int idx, float v); + + /// /// To be documented. /// public static ImGuiStyleMod* ImGuiStyleModImGuiStyleModFloat( int idx, float v) + { + ImGuiStyleMod* ret = ImGuiStyleModImGuiStyleModFloatNative(idx, v); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStyleMod_ImGuiStyleMod_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStyleMod* ImGuiStyleModImGuiStyleModVec2Native(int idx, Vector2 v); + + /// /// To be documented. /// public static ImGuiStyleMod* ImGuiStyleModImGuiStyleModVec2( int idx, Vector2 v) + { + ImGuiStyleMod* ret = ImGuiStyleModImGuiStyleModVec2Native(idx, v); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiComboPreviewData_ImGuiComboPreviewData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiComboPreviewData* ImGuiComboPreviewDataImGuiComboPreviewDataNative(); + + /// /// To be documented. /// public static ImGuiComboPreviewData* ImGuiComboPreviewDataImGuiComboPreviewData() + { + ImGuiComboPreviewData* ret = ImGuiComboPreviewDataImGuiComboPreviewDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiComboPreviewData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiComboPreviewDataDestroyNative(ImGuiComboPreviewData* self); + + /// /// To be documented. /// public static void ImGuiComboPreviewDataDestroy( ImGuiComboPreviewData* self) + { + ImGuiComboPreviewDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiMenuColumns_ImGuiMenuColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiMenuColumns* ImGuiMenuColumnsImGuiMenuColumnsNative(); + + /// /// To be documented. /// public static ImGuiMenuColumns* ImGuiMenuColumnsImGuiMenuColumns() + { + ImGuiMenuColumns* ret = ImGuiMenuColumnsImGuiMenuColumnsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiMenuColumns_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiMenuColumnsDestroyNative(ImGuiMenuColumns* self); + + /// /// To be documented. /// public static void ImGuiMenuColumnsDestroy( ImGuiMenuColumns* self) + { + ImGuiMenuColumnsDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiMenuColumns_Update")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiMenuColumnsUpdateNative(ImGuiMenuColumns* self, float spacing, byte windowReappearing); + + /// /// To be documented. /// public static void ImGuiMenuColumnsUpdate( ImGuiMenuColumns* self, float spacing, bool windowReappearing) + { + ImGuiMenuColumnsUpdateNative(self, spacing, windowReappearing ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiMenuColumns_DeclColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImGuiMenuColumnsDeclColumnsNative(ImGuiMenuColumns* self, float wIcon, float wLabel, float wShortcut, float wMark); + + /// /// To be documented. /// public static float ImGuiMenuColumnsDeclColumns( ImGuiMenuColumns* self, float wIcon, float wLabel, float wShortcut, float wMark) + { + float ret = ImGuiMenuColumnsDeclColumnsNative(self, wIcon, wLabel, wShortcut, wMark); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiMenuColumns_CalcNextTotalWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiMenuColumnsCalcNextTotalWidthNative(ImGuiMenuColumns* self, byte updateOffsets); + + /// /// To be documented. /// public static void ImGuiMenuColumnsCalcNextTotalWidth( ImGuiMenuColumns* self, bool updateOffsets) + { + ImGuiMenuColumnsCalcNextTotalWidthNative(self, updateOffsets ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextDeactivatedState_ImGuiInputTextDeactivatedState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiInputTextDeactivatedState* ImGuiInputTextDeactivatedStateImGuiInputTextDeactivatedStateNative(); + + /// /// To be documented. /// public static ImGuiInputTextDeactivatedState* ImGuiInputTextDeactivatedStateImGuiInputTextDeactivatedState() + { + ImGuiInputTextDeactivatedState* ret = ImGuiInputTextDeactivatedStateImGuiInputTextDeactivatedStateNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextDeactivatedState_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextDeactivatedStateDestroyNative(ImGuiInputTextDeactivatedState* self); + + /// /// To be documented. /// public static void ImGuiInputTextDeactivatedStateDestroy( ImGuiInputTextDeactivatedState* self) + { + ImGuiInputTextDeactivatedStateDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextDeactivatedState_ClearFreeMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextDeactivatedStateClearFreeMemoryNative(ImGuiInputTextDeactivatedState* self); + + /// /// To be documented. /// public static void ImGuiInputTextDeactivatedStateClearFreeMemory( ImGuiInputTextDeactivatedState* self) + { + ImGuiInputTextDeactivatedStateClearFreeMemoryNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_ImGuiInputTextState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiInputTextState* ImGuiInputTextStateImGuiInputTextStateNative(); + + /// /// To be documented. /// public static ImGuiInputTextState* ImGuiInputTextStateImGuiInputTextState() + { + ImGuiInputTextState* ret = ImGuiInputTextStateImGuiInputTextStateNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateDestroyNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateDestroy( ImGuiInputTextState* self) + { + ImGuiInputTextStateDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_ClearText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateClearTextNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateClearText( ImGuiInputTextState* self) + { + ImGuiInputTextStateClearTextNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_ClearFreeMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateClearFreeMemoryNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateClearFreeMemory( ImGuiInputTextState* self) + { + ImGuiInputTextStateClearFreeMemoryNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_GetUndoAvailCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiInputTextStateGetUndoAvailCountNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static int ImGuiInputTextStateGetUndoAvailCount( ImGuiInputTextState* self) + { + int ret = ImGuiInputTextStateGetUndoAvailCountNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_GetRedoAvailCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiInputTextStateGetRedoAvailCountNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static int ImGuiInputTextStateGetRedoAvailCount( ImGuiInputTextState* self) + { + int ret = ImGuiInputTextStateGetRedoAvailCountNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_OnKeyPressed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateOnKeyPressedNative(ImGuiInputTextState* self, int key); + + /// /// To be documented. /// public static void ImGuiInputTextStateOnKeyPressed( ImGuiInputTextState* self, int key) + { + ImGuiInputTextStateOnKeyPressedNative(self, key); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_CursorAnimReset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateCursorAnimResetNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateCursorAnimReset( ImGuiInputTextState* self) + { + ImGuiInputTextStateCursorAnimResetNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_CursorClamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateCursorClampNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateCursorClamp( ImGuiInputTextState* self) + { + ImGuiInputTextStateCursorClampNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_HasSelection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiInputTextStateHasSelectionNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static bool ImGuiInputTextStateHasSelection( ImGuiInputTextState* self) + { + byte ret = ImGuiInputTextStateHasSelectionNative(self); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_ClearSelection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateClearSelectionNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateClearSelection( ImGuiInputTextState* self) + { + ImGuiInputTextStateClearSelectionNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_GetCursorPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiInputTextStateGetCursorPosNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static int ImGuiInputTextStateGetCursorPos( ImGuiInputTextState* self) + { + int ret = ImGuiInputTextStateGetCursorPosNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_GetSelectionStart")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiInputTextStateGetSelectionStartNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static int ImGuiInputTextStateGetSelectionStart( ImGuiInputTextState* self) + { + int ret = ImGuiInputTextStateGetSelectionStartNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_GetSelectionEnd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ImGuiInputTextStateGetSelectionEndNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static int ImGuiInputTextStateGetSelectionEnd( ImGuiInputTextState* self) + { + int ret = ImGuiInputTextStateGetSelectionEndNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputTextState_SelectAll")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputTextStateSelectAllNative(ImGuiInputTextState* self); + + /// /// To be documented. /// public static void ImGuiInputTextStateSelectAll( ImGuiInputTextState* self) + { + ImGuiInputTextStateSelectAllNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPopupData_ImGuiPopupData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPopupData* ImGuiPopupDataImGuiPopupDataNative(); + + /// /// To be documented. /// public static ImGuiPopupData* ImGuiPopupDataImGuiPopupData() + { + ImGuiPopupData* ret = ImGuiPopupDataImGuiPopupDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPopupData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiPopupDataDestroyNative(ImGuiPopupData* self); + + /// /// To be documented. /// public static void ImGuiPopupDataDestroy( ImGuiPopupData* self) + { + ImGuiPopupDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextWindowData_ImGuiNextWindowData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiNextWindowData* ImGuiNextWindowDataImGuiNextWindowDataNative(); + + /// /// To be documented. /// public static ImGuiNextWindowData* ImGuiNextWindowDataImGuiNextWindowData() + { + ImGuiNextWindowData* ret = ImGuiNextWindowDataImGuiNextWindowDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextWindowData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNextWindowDataDestroyNative(ImGuiNextWindowData* self); + + /// /// To be documented. /// public static void ImGuiNextWindowDataDestroy( ImGuiNextWindowData* self) + { + ImGuiNextWindowDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextWindowData_ClearFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNextWindowDataClearFlagsNative(ImGuiNextWindowData* self); + + /// /// To be documented. /// public static void ImGuiNextWindowDataClearFlags( ImGuiNextWindowData* self) + { + ImGuiNextWindowDataClearFlagsNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextItemData_ImGuiNextItemData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiNextItemData* ImGuiNextItemDataImGuiNextItemDataNative(); + + /// /// To be documented. /// public static ImGuiNextItemData* ImGuiNextItemDataImGuiNextItemData() + { + ImGuiNextItemData* ret = ImGuiNextItemDataImGuiNextItemDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextItemData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNextItemDataDestroyNative(ImGuiNextItemData* self); + + /// /// To be documented. /// public static void ImGuiNextItemDataDestroy( ImGuiNextItemData* self) + { + ImGuiNextItemDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNextItemData_ClearFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNextItemDataClearFlagsNative(ImGuiNextItemData* self); + + /// /// To be documented. /// public static void ImGuiNextItemDataClearFlags( ImGuiNextItemData* self) + { + ImGuiNextItemDataClearFlagsNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiLastItemData_ImGuiLastItemData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiLastItemData* ImGuiLastItemDataImGuiLastItemDataNative(); + + /// /// To be documented. /// public static ImGuiLastItemData* ImGuiLastItemDataImGuiLastItemData() + { + ImGuiLastItemData* ret = ImGuiLastItemDataImGuiLastItemDataNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiLastItemData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiLastItemDataDestroyNative(ImGuiLastItemData* self); + + /// /// To be documented. /// public static void ImGuiLastItemDataDestroy( ImGuiLastItemData* self) + { + ImGuiLastItemDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackSizes_ImGuiStackSizes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStackSizes* ImGuiStackSizesImGuiStackSizesNative(); + + /// /// To be documented. /// public static ImGuiStackSizes* ImGuiStackSizesImGuiStackSizes() + { + ImGuiStackSizes* ret = ImGuiStackSizesImGuiStackSizesNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackSizes_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiStackSizesDestroyNative(ImGuiStackSizes* self); + + /// /// To be documented. /// public static void ImGuiStackSizesDestroy( ImGuiStackSizes* self) + { + ImGuiStackSizesDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackSizes_SetToContextState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiStackSizesSetToContextStateNative(ImGuiStackSizes* self, ImGuiContext* ctx); + + /// /// To be documented. /// public static void ImGuiStackSizesSetToContextState( ImGuiStackSizes* self, ImGuiContext* ctx) + { + ImGuiStackSizesSetToContextStateNative(self, ctx); + } + + /// /// To be documented. /// public static void ImGuiStackSizesSetToContextState( ImGuiStackSizes* self, ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) { - Utils.Free(pStr1); + ImGuiStackSizesSetToContextStateNative(self, (ImGuiContext*)pctx); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackSizes_CompareWithContextState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiStackSizesCompareWithContextStateNative(ImGuiStackSizes* self, ImGuiContext* ctx); + + /// /// To be documented. /// public static void ImGuiStackSizesCompareWithContextState( ImGuiStackSizes* self, ImGuiContext* ctx) + { + ImGuiStackSizesCompareWithContextStateNative(self, ctx); + } + + /// /// To be documented. /// public static void ImGuiStackSizesCompareWithContextState( ImGuiStackSizes* self, ref ImGuiContext ctx) + { + fixed (ImGuiContext* pctx = &ctx) { - Utils.Free(pStr0); + ImGuiStackSizesCompareWithContextStateNative(self, (ImGuiContext*)pctx); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderTextClipped")] - internal static extern void RenderTextClippedNative([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect); + [LibraryImport(LibName, EntryPoint = "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPtrOrIndex* ImGuiPtrOrIndexImGuiPtrOrIndexPtrNative(void* ptr); + + /// /// To be documented. /// public static ImGuiPtrOrIndex* ImGuiPtrOrIndexImGuiPtrOrIndexPtr( void* ptr) + { + ImGuiPtrOrIndex* ret = ImGuiPtrOrIndexImGuiPtrOrIndexPtrNative(ptr); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPtrOrIndex_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiPtrOrIndexDestroyNative(ImGuiPtrOrIndex* self); + + /// /// To be documented. /// public static void ImGuiPtrOrIndexDestroy( ImGuiPtrOrIndex* self) + { + ImGuiPtrOrIndexDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPtrOrIndex* ImGuiPtrOrIndexImGuiPtrOrIndexIntNative(int index); + + /// /// To be documented. /// public static ImGuiPtrOrIndex* ImGuiPtrOrIndexImGuiPtrOrIndexInt( int index) + { + ImGuiPtrOrIndex* ret = ImGuiPtrOrIndexImGuiPtrOrIndexIntNative(index); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputEvent_ImGuiInputEvent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiInputEvent* ImGuiInputEventImGuiInputEventNative(); + + /// /// To be documented. /// public static ImGuiInputEvent* ImGuiInputEventImGuiInputEvent() + { + ImGuiInputEvent* ret = ImGuiInputEventImGuiInputEventNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiInputEvent_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiInputEventDestroyNative(ImGuiInputEvent* self); - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void ImGuiInputEventDestroy( ImGuiInputEvent* self) { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + ImGuiInputEventDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyRoutingData_ImGuiKeyRoutingData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyRoutingData* ImGuiKeyRoutingDataImGuiKeyRoutingDataNative(); - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static ImGuiKeyRoutingData* ImGuiKeyRoutingDataImGuiKeyRoutingData() { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + ImGuiKeyRoutingData* ret = ImGuiKeyRoutingDataImGuiKeyRoutingDataNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyRoutingData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiKeyRoutingDataDestroyNative(ImGuiKeyRoutingData* self); - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void ImGuiKeyRoutingDataDestroy( ImGuiKeyRoutingData* self) { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); - } + ImGuiKeyRoutingDataDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) - { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyRoutingTable* ImGuiKeyRoutingTableImGuiKeyRoutingTableNative(); - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static ImGuiKeyRoutingTable* ImGuiKeyRoutingTableImGuiKeyRoutingTable() { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } + ImGuiKeyRoutingTable* ret = ImGuiKeyRoutingTableImGuiKeyRoutingTableNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) - { - fixed (byte* ptext = &text) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyRoutingTable_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiKeyRoutingTableDestroyNative(ImGuiKeyRoutingTable* self); - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void ImGuiKeyRoutingTableDestroy( ImGuiKeyRoutingTable* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiKeyRoutingTableDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyRoutingTable_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiKeyRoutingTableClearNative(ImGuiKeyRoutingTable* self); - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void ImGuiKeyRoutingTableClear( ImGuiKeyRoutingTable* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiKeyRoutingTableClearNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyOwnerData_ImGuiKeyOwnerData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyOwnerData* ImGuiKeyOwnerDataImGuiKeyOwnerDataNative(); - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static ImGuiKeyOwnerData* ImGuiKeyOwnerDataImGuiKeyOwnerData() { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } + ImGuiKeyOwnerData* ret = ImGuiKeyOwnerDataImGuiKeyOwnerDataNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiKeyOwnerData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiKeyOwnerDataDestroyNative(ImGuiKeyOwnerData* self); - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void ImGuiKeyOwnerDataDestroy( ImGuiKeyOwnerData* self) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } + ImGuiKeyOwnerDataDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipperRange_FromIndices")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiListClipperRange ImGuiListClipperRangeFromIndicesNative(int min, int max); - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static ImGuiListClipperRange ImGuiListClipperRangeFromIndices( int min, int max) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiListClipperRange ret = ImGuiListClipperRangeFromIndicesNative(min, max); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipperRange_FromPositions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiListClipperRange ImGuiListClipperRangeFromPositionsNative(float y1, float y2, int offMin, int offMax); + + /// /// To be documented. /// public static ImGuiListClipperRange ImGuiListClipperRangeFromPositions( float y1, float y2, int offMin, int offMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiListClipperRange ret = ImGuiListClipperRangeFromPositionsNative(y1, y2, offMin, offMax); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipperData_ImGuiListClipperData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiListClipperData* ImGuiListClipperDataImGuiListClipperDataNative(); + + /// /// To be documented. /// public static ImGuiListClipperData* ImGuiListClipperDataImGuiListClipperData() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiListClipperData* ret = ImGuiListClipperDataImGuiListClipperDataNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipperData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiListClipperDataDestroyNative(ImGuiListClipperData* self); + + /// /// To be documented. /// public static void ImGuiListClipperDataDestroy( ImGuiListClipperData* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiListClipperDataDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiListClipperData_Reset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiListClipperDataResetNative(ImGuiListClipperData* self, ImGuiListClipper* clipper); + + /// /// To be documented. /// public static void ImGuiListClipperDataReset( ImGuiListClipperData* self, ImGuiListClipper* clipper) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } + ImGuiListClipperDataResetNative(self, clipper); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// /// To be documented. /// public static void ImGuiListClipperDataReset( ImGuiListClipperData* self, ref ImGuiListClipper clipper) { - fixed (byte* ptext = &text) + fixed (ImGuiListClipper* pclipper = &clipper) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } + ImGuiListClipperDataResetNative(self, (ImGuiListClipper*)pclipper); } } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNavItemData_ImGuiNavItemData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiNavItemData* ImGuiNavItemDataImGuiNavItemDataNative(); + + /// /// To be documented. /// public static ImGuiNavItemData* ImGuiNavItemDataImGuiNavItemData() { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } + ImGuiNavItemData* ret = ImGuiNavItemDataImGuiNavItemDataNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNavItemData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNavItemDataDestroyNative(ImGuiNavItemData* self); + + /// /// To be documented. /// public static void ImGuiNavItemDataDestroy( ImGuiNavItemData* self) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } + ImGuiNavItemDataDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiNavItemData_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiNavItemDataClearNative(ImGuiNavItemData* self); + + /// /// To be documented. /// public static void ImGuiNavItemDataClear( ImGuiNavItemData* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiNavItemDataClearNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTypingSelectState_ImGuiTypingSelectState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTypingSelectState* ImGuiTypingSelectStateImGuiTypingSelectStateNative(); + + /// /// To be documented. /// public static ImGuiTypingSelectState* ImGuiTypingSelectStateImGuiTypingSelectState() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiTypingSelectState* ret = ImGuiTypingSelectStateImGuiTypingSelectStateNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTypingSelectState_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTypingSelectStateDestroyNative(ImGuiTypingSelectState* self); + + /// /// To be documented. /// public static void ImGuiTypingSelectStateDestroy( ImGuiTypingSelectState* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiTypingSelectStateDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTypingSelectState_Clear")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTypingSelectStateClearNative(ImGuiTypingSelectState* self); + + /// /// To be documented. /// public static void ImGuiTypingSelectStateClear( ImGuiTypingSelectState* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiTypingSelectStateClearNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiOldColumnData_ImGuiOldColumnData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiOldColumnData* ImGuiOldColumnDataImGuiOldColumnDataNative(); + + /// /// To be documented. /// public static ImGuiOldColumnData* ImGuiOldColumnDataImGuiOldColumnData() { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } + ImGuiOldColumnData* ret = ImGuiOldColumnDataImGuiOldColumnDataNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiOldColumnData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiOldColumnDataDestroyNative(ImGuiOldColumnData* self); + + /// /// To be documented. /// public static void ImGuiOldColumnDataDestroy( ImGuiOldColumnData* self) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } + ImGuiOldColumnDataDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiOldColumns_ImGuiOldColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiOldColumns* ImGuiOldColumnsImGuiOldColumnsNative(); + + /// /// To be documented. /// public static ImGuiOldColumns* ImGuiOldColumnsImGuiOldColumns() { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } + ImGuiOldColumns* ret = ImGuiOldColumnsImGuiOldColumnsNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiOldColumns_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiOldColumnsDestroyNative(ImGuiOldColumns* self); + + /// /// To be documented. /// public static void ImGuiOldColumnsDestroy( ImGuiOldColumns* self) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } + ImGuiOldColumnsDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_ImGuiDockNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* ImGuiDockNodeImGuiDockNodeNative(uint id); + + /// /// To be documented. /// public static ImGuiDockNode* ImGuiDockNodeImGuiDockNode( uint id) { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } + ImGuiDockNode* ret = ImGuiDockNodeImGuiDockNodeNative(id); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDockNodeDestroyNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static void ImGuiDockNodeDestroy( ImGuiDockNode* self) { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } + ImGuiDockNodeDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsRootNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsRootNodeNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsRootNode( ImGuiDockNode* self) { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } + byte ret = ImGuiDockNodeIsRootNodeNative(self); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsDockSpace")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsDockSpaceNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsDockSpace( ImGuiDockNode* self) { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } + byte ret = ImGuiDockNodeIsDockSpaceNative(self); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsFloatingNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsFloatingNodeNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsFloatingNode( ImGuiDockNode* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + byte ret = ImGuiDockNodeIsFloatingNodeNative(self); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsCentralNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsCentralNodeNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsCentralNode( ImGuiDockNode* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + byte ret = ImGuiDockNodeIsCentralNodeNative(self); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsHiddenTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsHiddenTabBarNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsHiddenTabBar( ImGuiDockNode* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + byte ret = ImGuiDockNodeIsHiddenTabBarNative(self); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsNoTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsNoTabBarNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsNoTabBar( ImGuiDockNode* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + byte ret = ImGuiDockNodeIsNoTabBarNative(self); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsSplitNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsSplitNodeNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsSplitNode( ImGuiDockNode* self) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } + byte ret = ImGuiDockNodeIsSplitNodeNative(self); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsLeafNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsLeafNodeNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsLeafNode( ImGuiDockNode* self) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } + byte ret = ImGuiDockNodeIsLeafNodeNative(self); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_IsEmpty")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImGuiDockNodeIsEmptyNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static bool ImGuiDockNodeIsEmpty( ImGuiDockNode* self) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } + byte ret = ImGuiDockNodeIsEmptyNative(self); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_Rect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDockNodeRectNative(ImRect* pOut, ImGuiDockNode* self); + + /// /// To be documented. /// public static void ImGuiDockNodeRect( ImRect* pOut, ImGuiDockNode* self) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } + ImGuiDockNodeRectNative(pOut, self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void ImGuiDockNodeRect( ImRect* pOut, ref ImGuiDockNode self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (ImGuiDockNode* pself = &self) { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiDockNodeRectNative(pOut, (ImGuiDockNode*)pself); } } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_SetLocalFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDockNodeSetLocalFlagsNative(ImGuiDockNode* self, int flags); + + /// /// To be documented. /// public static void ImGuiDockNodeSetLocalFlags( ImGuiDockNode* self, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiDockNodeSetLocalFlagsNative(self, flags); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockNode_UpdateMergedFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDockNodeUpdateMergedFlagsNative(ImGuiDockNode* self); + + /// /// To be documented. /// public static void ImGuiDockNodeUpdateMergedFlags( ImGuiDockNode* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiDockNodeUpdateMergedFlagsNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockContext_ImGuiDockContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockContext* ImGuiDockContextImGuiDockContextNative(); + + /// /// To be documented. /// public static ImGuiDockContext* ImGuiDockContextImGuiDockContext() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiDockContext* ret = ImGuiDockContextImGuiDockContextNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDockContext_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDockContextDestroyNative(ImGuiDockContext* self); + + /// /// To be documented. /// public static void ImGuiDockContextDestroy( ImGuiDockContext* self) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } + ImGuiDockContextDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_ImGuiViewportP")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewportP* ImGuiViewportPImGuiViewportPNative(); + + /// /// To be documented. /// public static ImGuiViewportP* ImGuiViewportPImGuiViewportP() { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } + ImGuiViewportP* ret = ImGuiViewportPImGuiViewportPNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPDestroyNative(ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPDestroy( ImGuiViewportP* self) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } + ImGuiViewportPDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_ClearRequestFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPClearRequestFlagsNative(ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPClearRequestFlags( ImGuiViewportP* self) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } + ImGuiViewportPClearRequestFlagsNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_CalcWorkRectPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPCalcWorkRectPosNative(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin); + + /// /// To be documented. /// public static void ImGuiViewportPCalcWorkRectPos( Vector2* pOut, ImGuiViewportP* self, Vector2 offMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiViewportPCalcWorkRectPosNative(pOut, self, offMin); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// /// To be documented. /// public static void ImGuiViewportPCalcWorkRectPos( Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (ImGuiViewportP* pself = &self) { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiViewportPCalcWorkRectPosNative(pOut, (ImGuiViewportP*)pself, offMin); } } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_CalcWorkRectSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPCalcWorkRectSizeNative(Vector2* pOut, ImGuiViewportP* self, Vector2 offMin, Vector2 offMax); + + /// /// To be documented. /// public static void ImGuiViewportPCalcWorkRectSize( Vector2* pOut, ImGuiViewportP* self, Vector2 offMin, Vector2 offMax) + { + ImGuiViewportPCalcWorkRectSizeNative(pOut, self, offMin, offMax); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void ImGuiViewportPCalcWorkRectSize( Vector2* pOut, ref ImGuiViewportP self, Vector2 offMin, Vector2 offMax) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (ImGuiViewportP* pself = &self) { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiViewportPCalcWorkRectSizeNative(pOut, (ImGuiViewportP*)pself, offMin, offMax); } } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_UpdateWorkRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPUpdateWorkRectNative(ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPUpdateWorkRect( ImGuiViewportP* self) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } + ImGuiViewportPUpdateWorkRectNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_GetMainRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPGetMainRectNative(ImRect* pOut, ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPGetMainRect( ImRect* pOut, ImGuiViewportP* self) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } + ImGuiViewportPGetMainRectNative(pOut, self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void ImGuiViewportPGetMainRect( ImRect* pOut, ref ImGuiViewportP self) { - fixed (byte* ptext = &text) + fixed (ImGuiViewportP* pself = &self) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } + ImGuiViewportPGetMainRectNative(pOut, (ImGuiViewportP*)pself); } } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_GetWorkRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPGetWorkRectNative(ImRect* pOut, ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPGetWorkRect( ImRect* pOut, ImGuiViewportP* self) { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } + ImGuiViewportPGetWorkRectNative(pOut, self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void ImGuiViewportPGetWorkRect( ImRect* pOut, ref ImGuiViewportP self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) + fixed (ImGuiViewportP* pself = &self) { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiViewportPGetWorkRectNative(pOut, (ImGuiViewportP*)pself); } } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiViewportP_GetBuildWorkRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiViewportPGetBuildWorkRectNative(ImRect* pOut, ImGuiViewportP* self); + + /// /// To be documented. /// public static void ImGuiViewportPGetBuildWorkRect( ImRect* pOut, ImGuiViewportP* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiViewportPGetBuildWorkRectNative(pOut, self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void ImGuiViewportPGetBuildWorkRect( ImRect* pOut, ref ImGuiViewportP self) { - fixed (byte* ptextEnd = &textEnd) + fixed (ImGuiViewportP* pself = &self) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } + ImGuiViewportPGetBuildWorkRectNative(pOut, (ImGuiViewportP*)pself); } } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindowSettings_ImGuiWindowSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindowSettings* ImGuiWindowSettingsImGuiWindowSettingsNative(); + + /// /// To be documented. /// public static ImGuiWindowSettings* ImGuiWindowSettingsImGuiWindowSettings() { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } + ImGuiWindowSettings* ret = ImGuiWindowSettingsImGuiWindowSettingsNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindowSettings_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiWindowSettingsDestroyNative(ImGuiWindowSettings* self); + + /// /// To be documented. /// public static void ImGuiWindowSettingsDestroy( ImGuiWindowSettings* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiWindowSettingsDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindowSettings_GetName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* ImGuiWindowSettingsGetNameNative(ImGuiWindowSettings* self); + + /// /// To be documented. /// public static byte* ImGuiWindowSettingsGetName( ImGuiWindowSettings* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + byte* ret = ImGuiWindowSettingsGetNameNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static string ImGuiWindowSettingsGetNameS( ImGuiWindowSettings* self) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } + string ret = Utils.DecodeStringUTF8(ImGuiWindowSettingsGetNameNative(self)); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiSettingsHandler_ImGuiSettingsHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiSettingsHandler* ImGuiSettingsHandlerImGuiSettingsHandlerNative(); + + /// /// To be documented. /// public static ImGuiSettingsHandler* ImGuiSettingsHandlerImGuiSettingsHandler() { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } + ImGuiSettingsHandler* ret = ImGuiSettingsHandlerImGuiSettingsHandlerNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiSettingsHandler_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiSettingsHandlerDestroyNative(ImGuiSettingsHandler* self); + + /// /// To be documented. /// public static void ImGuiSettingsHandlerDestroy( ImGuiSettingsHandler* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiSettingsHandlerDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDebugAllocInfo_ImGuiDebugAllocInfo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDebugAllocInfo* ImGuiDebugAllocInfoImGuiDebugAllocInfoNative(); + + /// /// To be documented. /// public static ImGuiDebugAllocInfo* ImGuiDebugAllocInfoImGuiDebugAllocInfo() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiDebugAllocInfo* ret = ImGuiDebugAllocInfoImGuiDebugAllocInfoNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiDebugAllocInfo_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiDebugAllocInfoDestroyNative(ImGuiDebugAllocInfo* self); + + /// /// To be documented. /// public static void ImGuiDebugAllocInfoDestroy( ImGuiDebugAllocInfo* self) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } + ImGuiDebugAllocInfoDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackLevelInfo_ImGuiStackLevelInfo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiStackLevelInfo* ImGuiStackLevelInfoImGuiStackLevelInfoNative(); + + /// /// To be documented. /// public static ImGuiStackLevelInfo* ImGuiStackLevelInfoImGuiStackLevelInfo() { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } + ImGuiStackLevelInfo* ret = ImGuiStackLevelInfoImGuiStackLevelInfoNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiStackLevelInfo_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiStackLevelInfoDestroyNative(ImGuiStackLevelInfo* self); + + /// /// To be documented. /// public static void ImGuiStackLevelInfoDestroy( ImGuiStackLevelInfo* self) { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } + ImGuiStackLevelInfoDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIDStackTool_ImGuiIDStackTool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiIDStackTool* ImGuiIDStackToolImGuiIDStackToolNative(); + + /// /// To be documented. /// public static ImGuiIDStackTool* ImGuiIDStackToolImGuiIDStackTool() { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } + ImGuiIDStackTool* ret = ImGuiIDStackToolImGuiIDStackToolNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiIDStackTool_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiIDStackToolDestroyNative(ImGuiIDStackTool* self); + + /// /// To be documented. /// public static void ImGuiIDStackToolDestroy( ImGuiIDStackTool* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ImGuiIDStackToolDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiContextHook_ImGuiContextHook")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiContextHook* ImGuiContextHookImGuiContextHookNative(); + + /// /// To be documented. /// public static ImGuiContextHook* ImGuiContextHookImGuiContextHook() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ImGuiContextHook* ret = ImGuiContextHookImGuiContextHookNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiContextHook_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiContextHookDestroyNative(ImGuiContextHook* self); + + /// /// To be documented. /// public static void ImGuiContextHookDestroy( ImGuiContextHook* self) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } + ImGuiContextHookDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiContext_ImGuiContext")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiContext* ImGuiContextImGuiContextNative(ImFontAtlas* sharedFontAtlas); + + /// /// To be documented. /// public static ImGuiContext* ImGuiContextImGuiContext( ImFontAtlas* sharedFontAtlas) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } + ImGuiContext* ret = ImGuiContextImGuiContextNative(sharedFontAtlas); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiContext_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiContextDestroyNative(ImGuiContext* self); + + /// /// To be documented. /// public static void ImGuiContextDestroy( ImGuiContext* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiContextDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_ImGuiWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* ImGuiWindowImGuiWindowNative(ImGuiContext* context, byte* name); + + /// /// To be documented. /// public static ImGuiWindow* ImGuiWindowImGuiWindow( ImGuiContext* context, byte* name) + { + ImGuiWindow* ret = ImGuiWindowImGuiWindowNative(context, name); + return ret; + } + + /// /// To be documented. /// public static ImGuiWindow* ImGuiWindowImGuiWindow( ImGuiContext* context, ref byte name) + { + fixed (byte* pname = &name) + { + ImGuiWindow* ret = ImGuiWindowImGuiWindowNative(context, (byte*)pname); + return ret; } } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static ImGuiWindow* ImGuiWindowImGuiWindow( ImGuiContext* context, string name) { byte* pStr0 = null; int pStrSize0 = 0; - if (textEnd != null) + if (name != null) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); + pStrSize0 = Utils.GetByteCountUTF8(name); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -230814,69 +64790,58 @@ public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + ImGuiWindow* ret = ImGuiWindowImGuiWindowNative(context, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiWindowDestroyNative(ImGuiWindow* self); + + /// /// To be documented. /// public static void ImGuiWindowDestroy( ImGuiWindow* self) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } + ImGuiWindowDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_GetID_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImGuiWindowGetIDNative(ImGuiWindow* self, byte* str, byte* strEnd); + + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, byte* str, byte* strEnd) + { + uint ret = ImGuiWindowGetIDNative(self, str, strEnd); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, ref byte str, byte* strEnd) { - fixed (byte* ptext = &text) + fixed (byte* pstr = &str) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } + uint ret = ImGuiWindowGetIDNative(self, (byte*)pstr, strEnd); + return ret; } } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, string str, byte* strEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (str != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(str); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -230886,52 +64851,72 @@ public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) + uint ret = ImGuiWindowGetIDNative(self, pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, byte* str, ref byte strEnd) + { + fixed (byte* pstrEnd = &strEnd) + { + uint ret = ImGuiWindowGetIDNative(self, str, (byte*)pstrEnd); + return ret; + } + } + + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, byte* str, string strEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr1 = Utils.Alloc(pStrSize1 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + uint ret = ImGuiWindowGetIDNative(self, str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ImRect* pclipRect = &clipRect) + Utils.Free(pStr0); + } + return ret; + } + + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, ref byte str, ref byte strEnd) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = ImGuiWindowGetIDNative(self, (byte*)pstr, (byte*)pstrEnd); + return ret; } } } - [NativeName(NativeNameType.Func, "igRenderTextClipped")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static uint ImGuiWindowGetID( ImGuiWindow* self, string str, string strEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (str != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(str); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -230941,14 +64926,14 @@ public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (textEnd != null) + if (strEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); + pStrSize1 = Utils.GetByteCountUTF8(strEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -230958,2351 +64943,1578 @@ public static void RenderTextClipped([NativeName(NativeNameType.Param, "pos_min" byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + uint ret = ImGuiWindowGetIDNative(self, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderTextClippedEx")] - internal static extern void RenderTextClippedExNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect); + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_GetID_Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImGuiWindowGetIDPtrNative(ImGuiWindow* self, void* ptr); - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static uint ImGuiWindowGetIDPtr( ImGuiWindow* self, void* ptr) { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + uint ret = ImGuiWindowGetIDPtrNative(self, ptr); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_GetID_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImGuiWindowGetIDIntNative(ImGuiWindow* self, int n); + + /// /// To be documented. /// public static uint ImGuiWindowGetIDInt( ImGuiWindow* self, int n) { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)(default)); + uint ret = ImGuiWindowGetIDIntNative(self, n); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_GetIDFromRectangle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint ImGuiWindowGetIDFromRectangleNative(ImGuiWindow* self, ImRect rAbs); + + /// /// To be documented. /// public static uint ImGuiWindowGetIDFromRectangle( ImGuiWindow* self, ImRect rAbs) { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + uint ret = ImGuiWindowGetIDFromRectangleNative(self, rAbs); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_Rect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiWindowRectNative(ImRect* pOut, ImGuiWindow* self); + + /// /// To be documented. /// public static void ImGuiWindowRect( ImRect* pOut, ImGuiWindow* self) { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + ImGuiWindowRectNative(pOut, self); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void ImGuiWindowRect( ImRect* pOut, ref ImGuiWindow self) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiWindow* pself = &self) { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + ImGuiWindowRectNative(pOut, (ImGuiWindow*)pself); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_CalcFontSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImGuiWindowCalcFontSizeNative(ImGuiWindow* self); + + /// /// To be documented. /// public static float ImGuiWindowCalcFontSize( ImGuiWindow* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } + float ret = ImGuiWindowCalcFontSizeNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_TitleBarHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImGuiWindowTitleBarHeightNative(ImGuiWindow* self); + + /// /// To be documented. /// public static float ImGuiWindowTitleBarHeight( ImGuiWindow* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } + float ret = ImGuiWindowTitleBarHeightNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_TitleBarRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiWindowTitleBarRectNative(ImRect* pOut, ImGuiWindow* self); + + /// /// To be documented. /// public static void ImGuiWindowTitleBarRect( ImRect* pOut, ImGuiWindow* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } + ImGuiWindowTitleBarRectNative(pOut, self); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void ImGuiWindowTitleBarRect( ImRect* pOut, ref ImGuiWindow self) { - fixed (byte* ptext = &text) + fixed (ImGuiWindow* pself = &self) { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); + ImGuiWindowTitleBarRectNative(pOut, (ImGuiWindow*)pself); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_MenuBarHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float ImGuiWindowMenuBarHeightNative(ImGuiWindow* self); + + /// /// To be documented. /// public static float ImGuiWindowMenuBarHeight( ImGuiWindow* self) { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } + float ret = ImGuiWindowMenuBarHeightNative(self); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiWindow_MenuBarRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiWindowMenuBarRectNative(ImRect* pOut, ImGuiWindow* self); + + /// /// To be documented. /// public static void ImGuiWindowMenuBarRect( ImRect* pOut, ImGuiWindow* self) { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } + ImGuiWindowMenuBarRectNative(pOut, self); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void ImGuiWindowMenuBarRect( ImRect* pOut, ref ImGuiWindow self) { - fixed (byte* ptext = &text) + fixed (ImGuiWindow* pself = &self) { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); + ImGuiWindowMenuBarRectNative(pOut, (ImGuiWindow*)pself); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTabItem_ImGuiTabItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabItem* ImGuiTabItemImGuiTabItemNative(); + + /// /// To be documented. /// public static ImGuiTabItem* ImGuiTabItemImGuiTabItem() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiTabItem* ret = ImGuiTabItemImGuiTabItemNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTabItem_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTabItemDestroyNative(ImGuiTabItem* self); + + /// /// To be documented. /// public static void ImGuiTabItemDestroy( ImGuiTabItem* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiTabItemDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTabBar_ImGuiTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabBar* ImGuiTabBarImGuiTabBarNative(); + + /// /// To be documented. /// public static ImGuiTabBar* ImGuiTabBarImGuiTabBar() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiTabBar* ret = ImGuiTabBarImGuiTabBarNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTabBar_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTabBarDestroyNative(ImGuiTabBar* self); + + /// /// To be documented. /// public static void ImGuiTabBarDestroy( ImGuiTabBar* self) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ImGuiTabBarDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumn_ImGuiTableColumn")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableColumn* ImGuiTableColumnImGuiTableColumnNative(); + + /// /// To be documented. /// public static ImGuiTableColumn* ImGuiTableColumnImGuiTableColumn() { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); - } - } + ImGuiTableColumn* ret = ImGuiTableColumnImGuiTableColumnNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumn_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableColumnDestroyNative(ImGuiTableColumn* self); + + /// /// To be documented. /// public static void ImGuiTableColumnDestroy( ImGuiTableColumn* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } + ImGuiTableColumnDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableInstanceData_ImGuiTableInstanceData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableInstanceData* ImGuiTableInstanceDataImGuiTableInstanceDataNative(); + + /// /// To be documented. /// public static ImGuiTableInstanceData* ImGuiTableInstanceDataImGuiTableInstanceData() { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } + ImGuiTableInstanceData* ret = ImGuiTableInstanceDataImGuiTableInstanceDataNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableInstanceData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableInstanceDataDestroyNative(ImGuiTableInstanceData* self); + + /// /// To be documented. /// public static void ImGuiTableInstanceDataDestroy( ImGuiTableInstanceData* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } + ImGuiTableInstanceDataDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTable_ImGuiTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTable* ImGuiTableImGuiTableNative(); + + /// /// To be documented. /// public static ImGuiTable* ImGuiTableImGuiTable() { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiTable* ret = ImGuiTableImGuiTableNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTable_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableDestroyNative(ImGuiTable* self); + + /// /// To be documented. /// public static void ImGuiTableDestroy( ImGuiTable* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiTableDestroyNative(self); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableTempData_ImGuiTableTempData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableTempData* ImGuiTableTempDataImGuiTableTempDataNative(); + + /// /// To be documented. /// public static ImGuiTableTempData* ImGuiTableTempDataImGuiTableTempData() { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiTableTempData* ret = ImGuiTableTempDataImGuiTableTempDataNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableTempData_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableTempDataDestroyNative(ImGuiTableTempData* self); + + /// /// To be documented. /// public static void ImGuiTableTempDataDestroy( ImGuiTableTempData* self) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ImGuiTableTempDataDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumnSettings_ImGuiTableColumnSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableColumnSettings* ImGuiTableColumnSettingsImGuiTableColumnSettingsNative(); + + /// /// To be documented. /// public static ImGuiTableColumnSettings* ImGuiTableColumnSettingsImGuiTableColumnSettings() + { + ImGuiTableColumnSettings* ret = ImGuiTableColumnSettingsImGuiTableColumnSettingsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableColumnSettings_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableColumnSettingsDestroyNative(ImGuiTableColumnSettings* self); + + /// /// To be documented. /// public static void ImGuiTableColumnSettingsDestroy( ImGuiTableColumnSettings* self) + { + ImGuiTableColumnSettingsDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableSettings_ImGuiTableSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSettings* ImGuiTableSettingsImGuiTableSettingsNative(); + + /// /// To be documented. /// public static ImGuiTableSettings* ImGuiTableSettingsImGuiTableSettings() + { + ImGuiTableSettings* ret = ImGuiTableSettingsImGuiTableSettingsNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableSettings_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImGuiTableSettingsDestroyNative(ImGuiTableSettings* self); + + /// /// To be documented. /// public static void ImGuiTableSettingsDestroy( ImGuiTableSettings* self) + { + ImGuiTableSettingsDestroyNative(self); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "ImGuiTableSettings_GetColumnSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableColumnSettings* ImGuiTableSettingsGetColumnSettingsNative(ImGuiTableSettings* self); + + /// /// To be documented. /// public static ImGuiTableColumnSettings* ImGuiTableSettingsGetColumnSettings( ImGuiTableSettings* self) + { + ImGuiTableColumnSettings* ret = ImGuiTableSettingsGetColumnSettingsNative(self); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCurrentWindowRead")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* GetCurrentWindowReadNative(); + + /// /// To be documented. /// public static ImGuiWindow* GetCurrentWindowRead() + { + ImGuiWindow* ret = GetCurrentWindowReadNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCurrentWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* GetCurrentWindowNative(); + + /// /// To be documented. /// public static ImGuiWindow* GetCurrentWindow() + { + ImGuiWindow* ret = GetCurrentWindowNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindWindowByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* FindWindowByIDNative(uint id); + + /// /// To be documented. /// public static ImGuiWindow* FindWindowByID( uint id) + { + ImGuiWindow* ret = FindWindowByIDNative(id); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindWindowByName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* FindWindowByNameNative(byte* name); + + /// /// To be documented. /// public static ImGuiWindow* FindWindowByName( byte* name) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } + ImGuiWindow* ret = FindWindowByNameNative(name); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdateWindowParentAndRootLinks")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdateWindowParentAndRootLinksNative(ImGuiWindow* window, int flags, ImGuiWindow* parentWindow); + + /// /// To be documented. /// public static void UpdateWindowParentAndRootLinks( ImGuiWindow* window, int flags, ImGuiWindow* parentWindow) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } + UpdateWindowParentAndRootLinksNative(window, flags, parentWindow); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void UpdateWindowParentAndRootLinks( ImGuiWindow* window, int flags, ref ImGuiWindow parentWindow) { - fixed (byte* ptextEnd = &textEnd) + fixed (ImGuiWindow* pparentWindow = &parentWindow) { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); + UpdateWindowParentAndRootLinksNative(window, flags, (ImGuiWindow*)pparentWindow); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcWindowNextAutoFitSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CalcWindowNextAutoFitSizeNative(Vector2* pOut, ImGuiWindow* window); + + /// /// To be documented. /// public static void CalcWindowNextAutoFitSize( Vector2* pOut, ImGuiWindow* window) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } + CalcWindowNextAutoFitSizeNative(pOut, window); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void CalcWindowNextAutoFitSize( Vector2* pOut, ref ImGuiWindow window) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImGuiWindow* pwindow = &window) { - Utils.Free(pStr0); + CalcWindowNextAutoFitSizeNative(pOut, (ImGuiWindow*)pwindow); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowChildOf")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowChildOfNative(ImGuiWindow* window, ImGuiWindow* potentialParent, byte popupHierarchy, byte dockHierarchy); + + /// /// To be documented. /// public static bool IsWindowChildOf( ImGuiWindow* window, ImGuiWindow* potentialParent, bool popupHierarchy, bool dockHierarchy) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = IsWindowChildOfNative(window, potentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static bool IsWindowChildOf( ImGuiWindow* window, ref ImGuiWindow potentialParent, bool popupHierarchy, bool dockHierarchy) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImGuiWindow* ppotentialParent = &potentialParent) { - Utils.Free(pStr0); + byte ret = IsWindowChildOfNative(window, (ImGuiWindow*)ppotentialParent, popupHierarchy ? (byte)1 : (byte)0, dockHierarchy ? (byte)1 : (byte)0); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowWithinBeginStackOf")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowWithinBeginStackOfNative(ImGuiWindow* window, ImGuiWindow* potentialParent); + + /// /// To be documented. /// public static bool IsWindowWithinBeginStackOf( ImGuiWindow* window, ImGuiWindow* potentialParent) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = IsWindowWithinBeginStackOfNative(window, potentialParent); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static bool IsWindowWithinBeginStackOf( ImGuiWindow* window, ref ImGuiWindow potentialParent) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiWindow* ppotentialParent = &potentialParent) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } + byte ret = IsWindowWithinBeginStackOfNative(window, (ImGuiWindow*)ppotentialParent); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowAbove")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowAboveNative(ImGuiWindow* potentialAbove, ImGuiWindow* potentialBelow); + + /// /// To be documented. /// public static bool IsWindowAbove( ImGuiWindow* potentialAbove, ImGuiWindow* potentialBelow) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } + byte ret = IsWindowAboveNative(potentialAbove, potentialBelow); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static bool IsWindowAbove( ImGuiWindow* potentialAbove, ref ImGuiWindow potentialBelow) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiWindow* ppotentialBelow = &potentialBelow) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } + byte ret = IsWindowAboveNative(potentialAbove, (ImGuiWindow*)ppotentialBelow); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowNavFocusable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowNavFocusableNative(ImGuiWindow* window); + + /// /// To be documented. /// public static bool IsWindowNavFocusable( ImGuiWindow* window) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } + byte ret = IsWindowNavFocusableNative(window); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowPos_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowPosWindowPtrNative(ImGuiWindow* window, Vector2 pos, int cond); + + /// /// To be documented. /// public static void SetWindowPosWindowPtr( ImGuiWindow* window, Vector2 pos, int cond) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + SetWindowPosWindowPtrNative(window, pos, cond); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowSize_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowSizeWindowPtrNative(ImGuiWindow* window, Vector2 size, int cond); + + /// /// To be documented. /// public static void SetWindowSizeWindowPtr( ImGuiWindow* window, Vector2 size, int cond) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + SetWindowSizeWindowPtrNative(window, size, cond); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowCollapsed_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowCollapsedWindowPtrNative(ImGuiWindow* window, byte collapsed, int cond); + + /// /// To be documented. /// public static void SetWindowCollapsedWindowPtr( ImGuiWindow* window, bool collapsed, int cond) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + SetWindowCollapsedWindowPtrNative(window, collapsed ? (byte)1 : (byte)0, cond); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowHitTestHole")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowHitTestHoleNative(ImGuiWindow* window, Vector2 pos, Vector2 size); + + /// /// To be documented. /// public static void SetWindowHitTestHole( ImGuiWindow* window, Vector2 pos, Vector2 size) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + SetWindowHitTestHoleNative(window, pos, size); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowHiddendAndSkipItemsForCurrentFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowHiddendAndSkipItemsForCurrentFrameNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void SetWindowHiddendAndSkipItemsForCurrentFrame( ImGuiWindow* window) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } + SetWindowHiddendAndSkipItemsForCurrentFrameNative(window); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igWindowRectAbsToRel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void WindowRectAbsToRelNative(ImRect* pOut, ImGuiWindow* window, ImRect r); + + /// /// To be documented. /// public static void WindowRectAbsToRel( ImRect* pOut, ImGuiWindow* window, ImRect r) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } + WindowRectAbsToRelNative(pOut, window, r); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void WindowRectAbsToRel( ImRect* pOut, ref ImGuiWindow window, ImRect r) { - fixed (byte* ptext = &text) + fixed (ImGuiWindow* pwindow = &window) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } + WindowRectAbsToRelNative(pOut, (ImGuiWindow*)pwindow, r); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igWindowRectRelToAbs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void WindowRectRelToAbsNative(ImRect* pOut, ImGuiWindow* window, ImRect r); + + /// /// To be documented. /// public static void WindowRectRelToAbs( ImRect* pOut, ImGuiWindow* window, ImRect r) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } + WindowRectRelToAbsNative(pOut, window, r); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void WindowRectRelToAbs( ImRect* pOut, ref ImGuiWindow window, ImRect r) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImGuiWindow* pwindow = &window) { - Utils.Free(pStr0); + WindowRectRelToAbsNative(pOut, (ImGuiWindow*)pwindow, r); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igWindowPosRelToAbs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void WindowPosRelToAbsNative(Vector2* pOut, ImGuiWindow* window, Vector2 p); + + /// /// To be documented. /// public static void WindowPosRelToAbs( Vector2* pOut, ImGuiWindow* window, Vector2 p) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + WindowPosRelToAbsNative(pOut, window, p); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void WindowPosRelToAbs( Vector2* pOut, ref ImGuiWindow window, Vector2 p) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImGuiWindow* pwindow = &window) { - Utils.Free(pStr0); + WindowPosRelToAbsNative(pOut, (ImGuiWindow*)pwindow, p); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFocusWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void FocusWindowNative(ImGuiWindow* window, int flags); + + /// /// To be documented. /// public static void FocusWindow( ImGuiWindow* window, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + FocusWindowNative(window, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFocusTopMostWindowUnderOne")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void FocusTopMostWindowUnderOneNative(ImGuiWindow* underThisWindow, ImGuiWindow* ignoreWindow, ImGuiViewport* filterViewport, int flags); + + /// /// To be documented. /// public static void FocusTopMostWindowUnderOne( ImGuiWindow* underThisWindow, ImGuiWindow* ignoreWindow, ImGuiViewport* filterViewport, int flags) + { + FocusTopMostWindowUnderOneNative(underThisWindow, ignoreWindow, filterViewport, flags); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void FocusTopMostWindowUnderOne( ImGuiWindow* underThisWindow, ref ImGuiWindow ignoreWindow, ImGuiViewport* filterViewport, int flags) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); - } - } + FocusTopMostWindowUnderOneNative(underThisWindow, (ImGuiWindow*)pignoreWindow, filterViewport, flags); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// /// To be documented. /// public static void FocusTopMostWindowUnderOne( ImGuiWindow* underThisWindow, ImGuiWindow* ignoreWindow, ref ImGuiViewport filterViewport, int flags) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiViewport* pfilterViewport = &filterViewport) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)(default)); - } - } + FocusTopMostWindowUnderOneNative(underThisWindow, ignoreWindow, (ImGuiViewport*)pfilterViewport, flags); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void FocusTopMostWindowUnderOne( ImGuiWindow* underThisWindow, ref ImGuiWindow ignoreWindow, ref ImGuiViewport filterViewport, int flags) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiWindow* pignoreWindow = &ignoreWindow) { - fixed (byte* ptext = &text) + fixed (ImGuiViewport* pfilterViewport = &filterViewport) { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } + FocusTopMostWindowUnderOneNative(underThisWindow, (ImGuiWindow*)pignoreWindow, (ImGuiViewport*)pfilterViewport, flags); } } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBringWindowToFocusFront")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BringWindowToFocusFrontNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void BringWindowToFocusFront( ImGuiWindow* window) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } + BringWindowToFocusFrontNative(window); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBringWindowToDisplayFront")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BringWindowToDisplayFrontNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void BringWindowToDisplayFront( ImGuiWindow* window) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + BringWindowToDisplayFrontNative(window); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBringWindowToDisplayBack")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BringWindowToDisplayBackNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void BringWindowToDisplayBack( ImGuiWindow* window) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + BringWindowToDisplayBackNative(window); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBringWindowToDisplayBehind")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BringWindowToDisplayBehindNative(ImGuiWindow* window, ImGuiWindow* aboveWindow); + + /// /// To be documented. /// public static void BringWindowToDisplayBehind( ImGuiWindow* window, ImGuiWindow* aboveWindow) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + BringWindowToDisplayBehindNative(window, aboveWindow); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void BringWindowToDisplayBehind( ImGuiWindow* window, ref ImGuiWindow aboveWindow) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiWindow* paboveWindow = &aboveWindow) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + BringWindowToDisplayBehindNative(window, (ImGuiWindow*)paboveWindow); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindWindowDisplayIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int FindWindowDisplayIndexNative(ImGuiWindow* window); + + /// /// To be documented. /// public static int FindWindowDisplayIndex( ImGuiWindow* window) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } + int ret = FindWindowDisplayIndexNative(window); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindBottomMostVisibleWindowWithinBeginStack")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStackNative(ImGuiWindow* window); + + /// /// To be documented. /// public static ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack( ImGuiWindow* window) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } + ImGuiWindow* ret = FindBottomMostVisibleWindowWithinBeginStackNative(window); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCurrentFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCurrentFontNative(ImFont* font); + + /// /// To be documented. /// public static void SetCurrentFont( ImFont* font) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } + SetCurrentFontNative(font); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetDefaultFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFont* GetDefaultFontNative(); + + /// /// To be documented. /// public static ImFont* GetDefaultFont() { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } + ImFont* ret = GetDefaultFontNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetForegroundDrawList_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImDrawList* GetForegroundDrawListWindowPtrNative(ImGuiWindow* window); + + /// /// To be documented. /// public static ImDrawList* GetForegroundDrawListWindowPtr( ImGuiWindow* window) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } + ImDrawList* ret = GetForegroundDrawListWindowPtrNative(window); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igAddDrawListToDrawDataEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddDrawListToDrawDataExNative(ImDrawData* drawData, ImVectorImDrawListPtr* outList, ImDrawList* drawList); + + /// /// To be documented. /// public static void AddDrawListToDrawDataEx( ImDrawData* drawData, ImVectorImDrawListPtr* outList, ImDrawList* drawList) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } + AddDrawListToDrawDataExNative(drawData, outList, drawList); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static void AddDrawListToDrawDataEx( ImDrawData* drawData, ref ImVectorImDrawListPtr outList, ImDrawList* drawList) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImVectorImDrawListPtr* poutList = &outList) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } + AddDrawListToDrawDataExNative(drawData, (ImVectorImDrawListPtr*)poutList, drawList); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void AddDrawListToDrawDataEx( ImDrawData* drawData, ImVectorImDrawListPtr* outList, ref ImDrawList drawList) { fixed (ImDrawList* pdrawList = &drawList) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } + AddDrawListToDrawDataExNative(drawData, outList, (ImDrawList*)pdrawList); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static void AddDrawListToDrawDataEx( ImDrawData* drawData, ref ImVectorImDrawListPtr outList, ref ImDrawList drawList) { - fixed (byte* ptext = &text) + fixed (ImVectorImDrawListPtr* poutList = &outList) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (ImDrawList* pdrawList = &drawList) { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + AddDrawListToDrawDataExNative(drawData, (ImVectorImDrawListPtr*)poutList, (ImDrawList*)pdrawList); } } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInitialize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void InitializeNative(); + + /// /// To be documented. /// public static void Initialize() { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } + InitializeNative(); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShutdown")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShutdownNative(); + + /// /// To be documented. /// public static void Shutdown() { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } + ShutdownNative(); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdateInputEvents")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdateInputEventsNative(byte trickleFastInputs); + + /// /// To be documented. /// public static void UpdateInputEvents( bool trickleFastInputs) { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } + UpdateInputEventsNative(trickleFastInputs ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdateHoveredWindowAndCaptureFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdateHoveredWindowAndCaptureFlagsNative(); + + /// /// To be documented. /// public static void UpdateHoveredWindowAndCaptureFlags() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) + UpdateHoveredWindowAndCaptureFlagsNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igStartMouseMovingWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void StartMouseMovingWindowNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void StartMouseMovingWindow( ImGuiWindow* window) + { + StartMouseMovingWindowNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igStartMouseMovingWindowOrNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void StartMouseMovingWindowOrNodeNative(ImGuiWindow* window, ImGuiDockNode* node, byte undock); + + /// /// To be documented. /// public static void StartMouseMovingWindowOrNode( ImGuiWindow* window, ImGuiDockNode* node, bool undock) + { + StartMouseMovingWindowOrNodeNative(window, node, undock ? (byte)1 : (byte)0); + } + + /// /// To be documented. /// public static void StartMouseMovingWindowOrNode( ImGuiWindow* window, ref ImGuiDockNode node, bool undock) + { + fixed (ImGuiDockNode* pnode = &node) { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + StartMouseMovingWindowOrNodeNative(window, (ImGuiDockNode*)pnode, undock ? (byte)1 : (byte)0); } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdateMouseMovingWindowNewFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdateMouseMovingWindowNewFrameNative(); + + /// /// To be documented. /// public static void UpdateMouseMovingWindowNewFrame() + { + UpdateMouseMovingWindowNewFrameNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igUpdateMouseMovingWindowEndFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void UpdateMouseMovingWindowEndFrameNative(); + + /// /// To be documented. /// public static void UpdateMouseMovingWindowEndFrame() + { + UpdateMouseMovingWindowEndFrameNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igAddContextHook")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint AddContextHookNative(ImGuiContext* context, ImGuiContextHook* hook); + + /// /// To be documented. /// public static uint AddContextHook( ImGuiContext* context, ImGuiContextHook* hook) + { + uint ret = AddContextHookNative(context, hook); + return ret; + } + + /// /// To be documented. /// public static uint AddContextHook( ImGuiContext* context, ref ImGuiContextHook hook) + { + fixed (ImGuiContextHook* phook = &hook) { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = AddContextHookNative(context, (ImGuiContextHook*)phook); + return ret; } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRemoveContextHook")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RemoveContextHookNative(ImGuiContext* context, uint hookToRemove); + + /// /// To be documented. /// public static void RemoveContextHook( ImGuiContext* context, uint hookToRemove) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) + RemoveContextHookNative(context, hookToRemove); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCallContextHooks")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CallContextHooksNative(ImGuiContext* context, ImGuiContextHookType type); + + /// /// To be documented. /// public static void CallContextHooks( ImGuiContext* context, ImGuiContextHookType type) + { + CallContextHooksNative(context, type); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTranslateWindowsInViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TranslateWindowsInViewportNative(ImGuiViewportP* viewport, Vector2 oldPos, Vector2 newPos); + + /// /// To be documented. /// public static void TranslateWindowsInViewport( ImGuiViewportP* viewport, Vector2 oldPos, Vector2 newPos) + { + TranslateWindowsInViewportNative(viewport, oldPos, newPos); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScaleWindowsInViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScaleWindowsInViewportNative(ImGuiViewportP* viewport, float scale); + + /// /// To be documented. /// public static void ScaleWindowsInViewport( ImGuiViewportP* viewport, float scale) + { + ScaleWindowsInViewportNative(viewport, scale); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDestroyPlatformWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DestroyPlatformWindowNative(ImGuiViewportP* viewport); + + /// /// To be documented. /// public static void DestroyPlatformWindow( ImGuiViewportP* viewport) + { + DestroyPlatformWindowNative(viewport); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetWindowViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowViewportNative(ImGuiWindow* window, ImGuiViewportP* viewport); + + /// /// To be documented. /// public static void SetWindowViewport( ImGuiWindow* window, ImGuiViewportP* viewport) + { + SetWindowViewportNative(window, viewport); + } + + /// /// To be documented. /// public static void SetWindowViewport( ImGuiWindow* window, ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + SetWindowViewportNative(window, (ImGuiViewportP*)pviewport); } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetCurrentViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetCurrentViewportNative(ImGuiWindow* window, ImGuiViewportP* viewport); + + /// /// To be documented. /// public static void SetCurrentViewport( ImGuiWindow* window, ImGuiViewportP* viewport) + { + SetCurrentViewportNative(window, viewport); + } + + /// /// To be documented. /// public static void SetCurrentViewport( ImGuiWindow* window, ref ImGuiViewportP viewport) + { + fixed (ImGuiViewportP* pviewport = &viewport) { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + SetCurrentViewportNative(window, (ImGuiViewportP*)pviewport); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetViewportPlatformMonitor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiPlatformMonitor* GetViewportPlatformMonitorNative(ImGuiViewport* viewport); + + /// /// To be documented. /// public static ImGuiPlatformMonitor* GetViewportPlatformMonitor( ImGuiViewport* viewport) + { + ImGuiPlatformMonitor* ret = GetViewportPlatformMonitorNative(viewport); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindHoveredViewportFromPlatformWindowStack")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiViewportP* FindHoveredViewportFromPlatformWindowStackNative(Vector2 mousePlatformPos); + + /// /// To be documented. /// public static ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack( Vector2 mousePlatformPos) + { + ImGuiViewportP* ret = FindHoveredViewportFromPlatformWindowStackNative(mousePlatformPos); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMarkIniSettingsDirty_Nil")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void MarkIniSettingsDirtyNilNative(); + + /// /// To be documented. /// public static void MarkIniSettingsDirtyNil() + { + MarkIniSettingsDirtyNilNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMarkIniSettingsDirty_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void MarkIniSettingsDirtyWindowPtrNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void MarkIniSettingsDirtyWindowPtr( ImGuiWindow* window) + { + MarkIniSettingsDirtyWindowPtrNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClearIniSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearIniSettingsNative(); + + /// /// To be documented. /// public static void ClearIniSettings() + { + ClearIniSettingsNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igAddSettingsHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void AddSettingsHandlerNative(ImGuiSettingsHandler* handler); + + /// /// To be documented. /// public static void AddSettingsHandler( ImGuiSettingsHandler* handler) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + AddSettingsHandlerNative(handler); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRemoveSettingsHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RemoveSettingsHandlerNative(byte* typeName); + + /// /// To be documented. /// public static void RemoveSettingsHandler( byte* typeName) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + RemoveSettingsHandlerNative(typeName); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindSettingsHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiSettingsHandler* FindSettingsHandlerNative(byte* typeName); + + /// /// To be documented. /// public static ImGuiSettingsHandler* FindSettingsHandler( byte* typeName) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } + ImGuiSettingsHandler* ret = FindSettingsHandlerNative(typeName); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCreateNewWindowSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindowSettings* CreateNewWindowSettingsNative(byte* name); + + /// /// To be documented. /// public static ImGuiWindowSettings* CreateNewWindowSettings( byte* name) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } + ImGuiWindowSettings* ret = CreateNewWindowSettingsNative(name); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindWindowSettingsByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindowSettings* FindWindowSettingsByIDNative(uint id); + + /// /// To be documented. /// public static ImGuiWindowSettings* FindWindowSettingsByID( uint id) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } + ImGuiWindowSettings* ret = FindWindowSettingsByIDNative(id); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindWindowSettingsByWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindowSettings* FindWindowSettingsByWindowNative(ImGuiWindow* window); + + /// /// To be documented. /// public static ImGuiWindowSettings* FindWindowSettingsByWindow( ImGuiWindow* window) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } + ImGuiWindowSettings* ret = FindWindowSettingsByWindowNative(window); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClearWindowSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearWindowSettingsNative(byte* name); + + /// /// To be documented. /// public static void ClearWindowSettings( byte* name) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ClearWindowSettingsNative(name); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLocalizeRegisterEntries")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LocalizeRegisterEntriesNative(ImGuiLocEntry* entries, int count); + + /// /// To be documented. /// public static void LocalizeRegisterEntries( ImGuiLocEntry* entries, int count) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + LocalizeRegisterEntriesNative(entries, count); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLocalizeGetMsg")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* LocalizeGetMsgNative(ImGuiLocKey key); + + /// /// To be documented. /// public static byte* LocalizeGetMsg( ImGuiLocKey key) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + byte* ret = LocalizeGetMsgNative(key); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static string LocalizeGetMsgS( ImGuiLocKey key) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + string ret = Utils.DecodeStringUTF8(LocalizeGetMsgNative(key)); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollX_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollXWindowPtrNative(ImGuiWindow* window, float scrollX); + + /// /// To be documented. /// public static void SetScrollXWindowPtr( ImGuiWindow* window, float scrollX) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } + SetScrollXWindowPtrNative(window, scrollX); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollY_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollYWindowPtrNative(ImGuiWindow* window, float scrollY); + + /// /// To be documented. /// public static void SetScrollYWindowPtr( ImGuiWindow* window, float scrollY) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } + SetScrollYWindowPtrNative(window, scrollY); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollFromPosX_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollFromPosXWindowPtrNative(ImGuiWindow* window, float localX, float centerXRatio); + + /// /// To be documented. /// public static void SetScrollFromPosXWindowPtr( ImGuiWindow* window, float localX, float centerXRatio) + { + SetScrollFromPosXWindowPtrNative(window, localX, centerXRatio); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetScrollFromPosY_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetScrollFromPosYWindowPtrNative(ImGuiWindow* window, float localY, float centerYRatio); + + /// /// To be documented. /// public static void SetScrollFromPosYWindowPtr( ImGuiWindow* window, float localY, float centerYRatio) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } + SetScrollFromPosYWindowPtrNative(window, localY, centerYRatio); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollToItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScrollToItemNative(int flags); + + /// /// To be documented. /// public static void ScrollToItem( int flags) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } + ScrollToItemNative(flags); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollToRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScrollToRectNative(ImGuiWindow* window, ImRect rect, int flags); + + /// /// To be documented. /// public static void ScrollToRect( ImGuiWindow* window, ImRect rect, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ScrollToRectNative(window, rect, flags); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollToRectEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScrollToRectExNative(Vector2* pOut, ImGuiWindow* window, ImRect rect, int flags); + + /// /// To be documented. /// public static void ScrollToRectEx( Vector2* pOut, ImGuiWindow* window, ImRect rect, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ScrollToRectExNative(pOut, window, rect, flags); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static void ScrollToRectEx( Vector2* pOut, ref ImGuiWindow window, ImRect rect, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (ImGuiWindow* pwindow = &window) { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + ScrollToRectExNative(pOut, (ImGuiWindow*)pwindow, rect, flags); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollToBringRectIntoView")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScrollToBringRectIntoViewNative(ImGuiWindow* window, ImRect rect); + + /// /// To be documented. /// public static void ScrollToBringRectIntoView( ImGuiWindow* window, ImRect rect) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + ScrollToBringRectIntoViewNative(window, rect); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetItemStatusFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetItemStatusFlagsNative(); + + /// /// To be documented. /// public static int GetItemStatusFlags() { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } + int ret = GetItemStatusFlagsNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetItemFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int GetItemFlagsNative(); + + /// /// To be documented. /// public static int GetItemFlags() { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } + int ret = GetItemFlagsNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetActiveID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetActiveIDNative(); + + /// /// To be documented. /// public static uint GetActiveID() { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } + uint ret = GetActiveIDNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetFocusID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetFocusIDNative(); + + /// /// To be documented. /// public static uint GetFocusID() { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } + uint ret = GetFocusIDNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetActiveID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetActiveIDNative(uint id, ImGuiWindow* window); + + /// /// To be documented. /// public static void SetActiveID( uint id, ImGuiWindow* window) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + SetActiveIDNative(id, window); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// /// To be documented. /// public static void SetActiveID( uint id, ref ImGuiWindow window) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiWindow* pwindow = &window) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + SetActiveIDNative(id, (ImGuiWindow*)pwindow); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetFocusID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetFocusIDNative(uint id, ImGuiWindow* window); + + /// /// To be documented. /// public static void SetFocusID( uint id, ImGuiWindow* window) + { + SetFocusIDNative(id, window); + } + + /// /// To be documented. /// public static void SetFocusID( uint id, ref ImGuiWindow window) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiWindow* pwindow = &window) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + SetFocusIDNative(id, (ImGuiWindow*)pwindow); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClearActiveID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearActiveIDNative(); + + /// /// To be documented. /// public static void ClearActiveID() { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ClearActiveIDNative(); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetHoveredID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetHoveredIDNative(); + + /// /// To be documented. /// public static uint GetHoveredID() { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } + uint ret = GetHoveredIDNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetHoveredID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetHoveredIDNative(uint id); + + /// /// To be documented. /// public static void SetHoveredID( uint id) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } + SetHoveredIDNative(id); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igKeepAliveID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void KeepAliveIDNative(uint id); + + /// /// To be documented. /// public static void KeepAliveID( uint id) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } + KeepAliveIDNative(id); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMarkItemEdited")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void MarkItemEditedNative(uint id); + + /// /// To be documented. /// public static void MarkItemEdited( uint id) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } + MarkItemEditedNative(id); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushOverrideID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushOverrideIDNative(uint id); + + /// /// To be documented. /// public static void PushOverrideID( uint id) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + PushOverrideIDNative(id); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetIDWithSeed_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetIDWithSeedNative(byte* strIdBegin, byte* strIdEnd, uint seed); + + /// /// To be documented. /// public static uint GetIDWithSeed( byte* strIdBegin, byte* strIdEnd, uint seed) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + uint ret = GetIDWithSeedNative(strIdBegin, strIdEnd, seed); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static uint GetIDWithSeed( byte* strIdBegin, ref byte strIdEnd, uint seed) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (byte* pstrIdEnd = &strIdEnd) { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = GetIDWithSeedNative(strIdBegin, (byte*)pstrIdEnd, seed); + return ret; } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static uint GetIDWithSeed( byte* strIdBegin, string strIdEnd, uint seed) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (strIdEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(strIdEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -233312,411 +66524,283 @@ public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_l byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(strIdEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + uint ret = GetIDWithSeedNative(strIdBegin, pStr0, seed); + if (pStrSize0 >= Utils.MaxStackallocSize) { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetIDWithSeed_Int")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetIDWithSeedIntNative(int n, uint seed); + + /// /// To be documented. /// public static uint GetIDWithSeedInt( int n, uint seed) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); - } - } - } - } + uint ret = GetIDWithSeedIntNative(n, seed); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igItemSize_Vec2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ItemSizeVec2Native(Vector2 size, float textBaselineY); + + /// /// To be documented. /// public static void ItemSizeVec2( Vector2 size, float textBaselineY) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - } - } - } - } + ItemSizeVec2Native(size, textBaselineY); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igItemSize_Rect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ItemSizeRectNative(ImRect bb, float textBaselineY); + + /// /// To be documented. /// public static void ItemSizeRect( ImRect bb, float textBaselineY) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - } - } - } - } + ItemSizeRectNative(bb, textBaselineY); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igItemAdd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ItemAddNative(ImRect bb, uint id, ImRect* navBb, int extraFlags); + + /// /// To be documented. /// public static bool ItemAdd( ImRect bb, uint id, ImRect* navBb, int extraFlags) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - } - } - } - } + byte ret = ItemAddNative(bb, id, navBb, extraFlags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// /// To be documented. /// public static bool ItemAdd( ImRect bb, uint id, ref ImRect navBb, int extraFlags) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImRect* pnavBb = &navBb) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + byte ret = ItemAddNative(bb, id, (ImRect*)pnavBb, extraFlags); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igItemHoverable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ItemHoverableNative(ImRect bb, uint id, int itemFlags); + + /// /// To be documented. /// public static bool ItemHoverable( ImRect bb, uint id, int itemFlags) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + byte ret = ItemHoverableNative(bb, id, itemFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsWindowContentHoverable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsWindowContentHoverableNative(ImGuiWindow* window, int flags); + + /// /// To be documented. /// public static bool IsWindowContentHoverable( ImGuiWindow* window, int flags) + { + byte ret = IsWindowContentHoverableNative(window, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsClippedEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsClippedExNative(ImRect bb, uint id); + + /// /// To be documented. /// public static bool IsClippedEx( ImRect bb, uint id) + { + byte ret = IsClippedExNative(bb, id); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetLastItemData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetLastItemDataNative(uint itemId, int inFlags, int statusFlags, ImRect itemRect); + + /// /// To be documented. /// public static void SetLastItemData( uint itemId, int inFlags, int statusFlags, ImRect itemRect) + { + SetLastItemDataNative(itemId, inFlags, statusFlags, itemRect); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcItemSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void CalcItemSizeNative(Vector2* pOut, Vector2 size, float defaultW, float defaultH); + + /// /// To be documented. /// public static void CalcItemSize( Vector2* pOut, Vector2 size, float defaultW, float defaultH) + { + CalcItemSizeNative(pOut, size, defaultW, defaultH); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcWrapWidthForPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float CalcWrapWidthForPosNative(Vector2 pos, float wrapPosX); + + /// /// To be documented. /// public static float CalcWrapWidthForPos( Vector2 pos, float wrapPosX) + { + float ret = CalcWrapWidthForPosNative(pos, wrapPosX); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushMultiItemsWidths")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushMultiItemsWidthsNative(int components, float widthFull); + + /// /// To be documented. /// public static void PushMultiItemsWidths( int components, float widthFull) + { + PushMultiItemsWidthsNative(components, widthFull); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsItemToggledSelection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsItemToggledSelectionNative(); + + /// /// To be documented. /// public static bool IsItemToggledSelection() + { + byte ret = IsItemToggledSelectionNative(); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetContentRegionMaxAbs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetContentRegionMaxAbsNative(Vector2* pOut); + + /// /// To be documented. /// public static void GetContentRegionMaxAbs( Vector2* pOut) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + GetContentRegionMaxAbsNative(pOut); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ImRect* clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShrinkWidths")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShrinkWidthsNative(ImGuiShrinkWidthItem* items, int count, float widthExcess); + + /// /// To be documented. /// public static void ShrinkWidths( ImGuiShrinkWidthItem* items, int count, float widthExcess) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), clipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ShrinkWidthsNative(items, count, widthExcess); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushItemFlag")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushItemFlagNative(int option, byte enabled); + + /// /// To be documented. /// public static void PushItemFlag( int option, bool enabled) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } + PushItemFlagNative(option, enabled ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopItemFlag")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopItemFlagNative(); + + /// /// To be documented. /// public static void PopItemFlag() { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } + PopItemFlagNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetStyleVarInfo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDataVarInfo* GetStyleVarInfoNative(int idx); + + /// /// To be documented. /// public static ImGuiDataVarInfo* GetStyleVarInfo( int idx) + { + ImGuiDataVarInfo* ret = GetStyleVarInfoNative(idx); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogBegin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogBeginNative(ImGuiLogType type, int autoOpenDepth); + + /// /// To be documented. /// public static void LogBegin( ImGuiLogType type, int autoOpenDepth) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } + LogBeginNative(type, autoOpenDepth); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogToBuffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogToBufferNative(int autoOpenDepth); + + /// /// To be documented. /// public static void LogToBuffer( int autoOpenDepth) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } + LogToBufferNative(autoOpenDepth); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogRenderedText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogRenderedTextNative(Vector2* refPos, byte* text, byte* textEnd); + + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, byte* text, byte* textEnd) { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } + LogRenderedTextNative(refPos, text, textEnd); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, ref byte text, byte* textEnd) { fixed (byte* ptext = &text) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } + LogRenderedTextNative(refPos, (byte*)ptext, textEnd); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, string text, byte* textEnd) { byte* pStr0 = null; int pStrSize0 = 0; @@ -233735,25 +66819,28 @@ public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_l int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ImRect* pclipRect = &clipRect) + LogRenderedTextNative(refPos, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); + } + } + + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) + { + LogRenderedTextNative(refPos, text, (byte*)ptextEnd); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, byte* text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -233763,154 +66850,101 @@ public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_l byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) + LogRenderedTextNative(refPos, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* ptext = &text) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, ref byte text, ref byte textEnd) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (byte* ptext = &text) { - fixed (byte* ptext = &text) + fixed (byte* ptextEnd = &textEnd) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } + LogRenderedTextNative(refPos, (byte*)ptext, (byte*)ptextEnd); } } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void LogRenderedText( Vector2* refPos, string text, string textEnd) { - fixed (ImDrawList* pdrawList = &drawList) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - fixed (ImRect* pclipRect = &clipRect) + else { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) - { - fixed (ImDrawList* pdrawList = &drawList) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); } - fixed (ImRect* pclipRect = &clipRect) + else { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + LogRenderedTextNative(refPos, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igLogSetNextTextDecoration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogSetNextTextDecorationNative(byte* prefix, byte* suffix); + + /// /// To be documented. /// public static void LogSetNextTextDecoration( byte* prefix, byte* suffix) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } + LogSetNextTextDecorationNative(prefix, suffix); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void LogSetNextTextDecoration( byte* prefix, ref byte suffix) { - fixed (byte* ptextEnd = &textEnd) + fixed (byte* psuffix = &suffix) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } + LogSetNextTextDecorationNative(prefix, (byte*)psuffix); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void LogSetNextTextDecoration( byte* prefix, string suffix) { byte* pStr0 = null; int pStrSize0 = 0; - if (textEnd != null) + if (suffix != null) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); + pStrSize0 = Utils.GetByteCountUTF8(suffix); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -233920,191 +66954,364 @@ public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_l byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(suffix, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ImRect* pclipRect = &clipRect) + LogSetNextTextDecorationNative(prefix, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginChildEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginChildExNative(byte* name, uint id, Vector2 sizeArg, byte border, int windowFlags); + + /// /// To be documented. /// public static bool BeginChildEx( byte* name, uint id, Vector2 sizeArg, bool border, int windowFlags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) + byte ret = BeginChildExNative(name, id, sizeArg, border ? (byte)1 : (byte)0, windowFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igOpenPopupEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void OpenPopupExNative(uint id, int popupFlags); + + /// /// To be documented. /// public static void OpenPopupEx( uint id, int popupFlags) + { + OpenPopupExNative(id, popupFlags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClosePopupToLevel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClosePopupToLevelNative(int remaining, byte restoreFocusToWindowUnderPopup); + + /// /// To be documented. /// public static void ClosePopupToLevel( int remaining, bool restoreFocusToWindowUnderPopup) + { + ClosePopupToLevelNative(remaining, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClosePopupsOverWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClosePopupsOverWindowNative(ImGuiWindow* refWindow, byte restoreFocusToWindowUnderPopup); + + /// /// To be documented. /// public static void ClosePopupsOverWindow( ImGuiWindow* refWindow, bool restoreFocusToWindowUnderPopup) + { + ClosePopupsOverWindowNative(refWindow, restoreFocusToWindowUnderPopup ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClosePopupsExceptModals")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClosePopupsExceptModalsNative(); + + /// /// To be documented. /// public static void ClosePopupsExceptModals() + { + ClosePopupsExceptModalsNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsPopupOpen_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsPopupOpenIDNative(uint id, int popupFlags); + + /// /// To be documented. /// public static bool IsPopupOpenID( uint id, int popupFlags) + { + byte ret = IsPopupOpenIDNative(id, popupFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginPopupEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginPopupExNative(uint id, int extraFlags); + + /// /// To be documented. /// public static bool BeginPopupEx( uint id, int extraFlags) + { + byte ret = BeginPopupExNative(id, extraFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTooltipEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTooltipExNative(int tooltipFlags, int extraWindowFlags); + + /// /// To be documented. /// public static bool BeginTooltipEx( int tooltipFlags, int extraWindowFlags) + { + byte ret = BeginTooltipExNative(tooltipFlags, extraWindowFlags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTooltipHidden")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTooltipHiddenNative(); + + /// /// To be documented. /// public static bool BeginTooltipHidden() + { + byte ret = BeginTooltipHiddenNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetPopupAllowedExtentRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetPopupAllowedExtentRectNative(ImRect* pOut, ImGuiWindow* window); + + /// /// To be documented. /// public static void GetPopupAllowedExtentRect( ImRect* pOut, ImGuiWindow* window) + { + GetPopupAllowedExtentRectNative(pOut, window); + } + + /// /// To be documented. /// public static void GetPopupAllowedExtentRect( ImRect* pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + GetPopupAllowedExtentRectNative(pOut, (ImGuiWindow*)pwindow); } - fixed (ImRect* pclipRect = &clipRect) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTopMostPopupModal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* GetTopMostPopupModalNative(); + + /// /// To be documented. /// public static ImGuiWindow* GetTopMostPopupModal() + { + ImGuiWindow* ret = GetTopMostPopupModalNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTopMostAndVisiblePopupModal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* GetTopMostAndVisiblePopupModalNative(); + + /// /// To be documented. /// public static ImGuiWindow* GetTopMostAndVisiblePopupModal() + { + ImGuiWindow* ret = GetTopMostAndVisiblePopupModalNative(); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindBlockingModal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiWindow* FindBlockingModalNative(ImGuiWindow* window); + + /// /// To be documented. /// public static ImGuiWindow* FindBlockingModal( ImGuiWindow* window) + { + ImGuiWindow* ret = FindBlockingModalNative(window); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindBestWindowPosForPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void FindBestWindowPosForPopupNative(Vector2* pOut, ImGuiWindow* window); + + /// /// To be documented. /// public static void FindBestWindowPosForPopup( Vector2* pOut, ImGuiWindow* window) + { + FindBestWindowPosForPopupNative(pOut, window); + } + + /// /// To be documented. /// public static void FindBestWindowPosForPopup( Vector2* pOut, ref ImGuiWindow window) + { + fixed (ImGuiWindow* pwindow = &window) { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + FindBestWindowPosForPopupNative(pOut, (ImGuiWindow*)pwindow); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindBestWindowPosForPopupEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void FindBestWindowPosForPopupExNative(Vector2* pOut, Vector2 refPos, Vector2 size, int* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy); + + /// /// To be documented. /// public static void FindBestWindowPosForPopupEx( Vector2* pOut, Vector2 refPos, Vector2 size, int* lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) { - fixed (ImDrawList* pdrawList = &drawList) + FindBestWindowPosForPopupExNative(pOut, refPos, size, lastDir, rOuter, rAvoid, policy); + } + + /// /// To be documented. /// public static void FindBestWindowPosForPopupEx( Vector2* pOut, Vector2 refPos, Vector2 size, ref int lastDir, ImRect rOuter, ImRect rAvoid, ImGuiPopupPositionPolicy policy) + { + fixed (int* plastDir = &lastDir) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } + FindBestWindowPosForPopupExNative(pOut, refPos, size, (int*)plastDir, rOuter, rAvoid, policy); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginViewportSideBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginViewportSideBarNative(byte* name, ImGuiViewport* viewport, int dir, float size, int windowFlags); + + /// /// To be documented. /// public static bool BeginViewportSideBar( byte* name, ImGuiViewport* viewport, int dir, float size, int windowFlags) { - fixed (ImDrawList* pdrawList = &drawList) + byte ret = BeginViewportSideBarNative(name, viewport, dir, size, windowFlags); + return ret != 0; + } + + /// /// To be documented. /// public static bool BeginViewportSideBar( byte* name, ref ImGuiViewport viewport, int dir, float size, int windowFlags) + { + fixed (ImGuiViewport* pviewport = &viewport) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } + byte ret = BeginViewportSideBarNative(name, (ImGuiViewport*)pviewport, dir, size, windowFlags); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginMenuEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginMenuExNative(byte* label, byte* icon, byte enabled); + + /// /// To be documented. /// public static bool BeginMenuEx( byte* label, byte* icon, bool enabled) + { + byte ret = BeginMenuExNative(label, icon, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + /// /// To be documented. /// public static bool BeginMenuEx( byte* label, ref byte icon, bool enabled) + { + fixed (byte* picon = &icon) + { + byte ret = BeginMenuExNative(label, (byte*)picon, enabled ? (byte)1 : (byte)0); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static bool BeginMenuEx( byte* label, string icon, bool enabled) { - fixed (ImDrawList* pdrawList = &drawList) + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - fixed (ImRect* pclipRect = &clipRect) + else { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = BeginMenuExNative(label, pStr0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMenuItemEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte MenuItemExNative(byte* label, byte* icon, byte* shortcut, byte selected, byte enabled); + + /// /// To be documented. /// public static bool MenuItemEx( byte* label, byte* icon, byte* shortcut, bool selected, bool enabled) { - fixed (ImDrawList* pdrawList = &drawList) + byte ret = MenuItemExNative(label, icon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; + } + + /// /// To be documented. /// public static bool MenuItemEx( byte* label, ref byte icon, byte* shortcut, bool selected, bool enabled) + { + fixed (byte* picon = &icon) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + byte ret = MenuItemExNative(label, (byte*)picon, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static bool MenuItemEx( byte* label, string icon, byte* shortcut, bool selected, bool enabled) { - fixed (byte* ptext = &text) + byte* pStr0 = null; + int pStrSize0 = 0; + if (icon != null) { - fixed (byte* ptextEnd = &textEnd) + pStrSize0 = Utils.GetByteCountUTF8(icon); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = MenuItemExNative(label, pStr0, shortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static bool MenuItemEx( byte* label, byte* icon, ref byte shortcut, bool selected, bool enabled) { - fixed (byte* ptext = &text) + fixed (byte* pshortcut = &shortcut) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } + byte ret = MenuItemExNative(label, icon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static bool MenuItemEx( byte* label, byte* icon, string shortcut, bool selected, bool enabled) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (shortcut != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(shortcut); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -234114,49 +67321,36 @@ public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_l byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(shortcut, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) + byte ret = MenuItemExNative(label, icon, pStr0, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + Utils.Free(pStr0); } - fixed (ImRect* pclipRect = &clipRect) + return ret != 0; + } + + /// /// To be documented. /// public static bool MenuItemEx( byte* label, ref byte icon, ref byte shortcut, bool selected, bool enabled) + { + fixed (byte* picon = &icon) { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* pshortcut = &shortcut) { - Utils.Free(pStr0); + byte ret = MenuItemExNative(label, (byte*)picon, (byte*)pshortcut, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static bool MenuItemEx( byte* label, string icon, string shortcut, bool selected, bool enabled) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (icon != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(icon); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -234166,14 +67360,14 @@ public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_l byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(icon, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (textEnd != null) + if (shortcut != null) { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); + pStrSize1 = Utils.GetByteCountUTF8(shortcut); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -234183,2156 +67377,1673 @@ public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_l byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(shortcut, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - fixed (ImRect* pclipRect = &clipRect) + byte ret = MenuItemExNative(label, pStr0, pStr1, selected ? (byte)1 : (byte)0, enabled ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginComboPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginComboPopupNative(uint popupId, ImRect bb, int flags); + + /// /// To be documented. /// public static bool BeginComboPopup( uint popupId, ImRect bb, int flags) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } + byte ret = BeginComboPopupNative(popupId, bb, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginComboPreview")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginComboPreviewNative(); + + /// /// To be documented. /// public static bool BeginComboPreview() { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } + byte ret = BeginComboPreviewNative(); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igEndComboPreview")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndComboPreviewNative(); + + /// /// To be documented. /// public static void EndComboPreview() { - fixed (ImDrawList* pdrawList = &drawList) + EndComboPreviewNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavInitWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavInitWindowNative(ImGuiWindow* window, byte forceReinit); + + /// /// To be documented. /// public static void NavInitWindow( ImGuiWindow* window, bool forceReinit) + { + NavInitWindowNative(window, forceReinit ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavInitRequestApplyResult")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavInitRequestApplyResultNative(); + + /// /// To be documented. /// public static void NavInitRequestApplyResult() + { + NavInitRequestApplyResultNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestButNoResultYet")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte NavMoveRequestButNoResultYetNative(); + + /// /// To be documented. /// public static bool NavMoveRequestButNoResultYet() + { + byte ret = NavMoveRequestButNoResultYetNative(); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestSubmit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestSubmitNative(int moveDir, int clipDir, int moveFlags, int scrollFlags); + + /// /// To be documented. /// public static void NavMoveRequestSubmit( int moveDir, int clipDir, int moveFlags, int scrollFlags) + { + NavMoveRequestSubmitNative(moveDir, clipDir, moveFlags, scrollFlags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestForward")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestForwardNative(int moveDir, int clipDir, int moveFlags, int scrollFlags); + + /// /// To be documented. /// public static void NavMoveRequestForward( int moveDir, int clipDir, int moveFlags, int scrollFlags) + { + NavMoveRequestForwardNative(moveDir, clipDir, moveFlags, scrollFlags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestResolveWithLastItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestResolveWithLastItemNative(ImGuiNavItemData* result); + + /// /// To be documented. /// public static void NavMoveRequestResolveWithLastItem( ImGuiNavItemData* result) + { + NavMoveRequestResolveWithLastItemNative(result); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestResolveWithPastTreeNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestResolveWithPastTreeNodeNative(ImGuiNavItemData* result, ImGuiNavTreeNodeData* treeNodeData); + + /// /// To be documented. /// public static void NavMoveRequestResolveWithPastTreeNode( ImGuiNavItemData* result, ImGuiNavTreeNodeData* treeNodeData) + { + NavMoveRequestResolveWithPastTreeNodeNative(result, treeNodeData); + } + + /// /// To be documented. /// public static void NavMoveRequestResolveWithPastTreeNode( ImGuiNavItemData* result, ref ImGuiNavTreeNodeData treeNodeData) + { + fixed (ImGuiNavTreeNodeData* ptreeNodeData = &treeNodeData) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } + NavMoveRequestResolveWithPastTreeNodeNative(result, (ImGuiNavTreeNodeData*)ptreeNodeData); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestCancel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestCancelNative(); + + /// /// To be documented. /// public static void NavMoveRequestCancel() + { + NavMoveRequestCancelNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestApplyResult")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestApplyResultNative(); + + /// /// To be documented. /// public static void NavMoveRequestApplyResult() + { + NavMoveRequestApplyResultNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavMoveRequestTryWrapping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavMoveRequestTryWrappingNative(ImGuiWindow* window, int moveFlags); + + /// /// To be documented. /// public static void NavMoveRequestTryWrapping( ImGuiWindow* window, int moveFlags) + { + NavMoveRequestTryWrappingNative(window, moveFlags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavClearPreferredPosForAxis")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavClearPreferredPosForAxisNative(ImGuiAxis axis); + + /// /// To be documented. /// public static void NavClearPreferredPosForAxis( ImGuiAxis axis) + { + NavClearPreferredPosForAxisNative(axis); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavRestoreHighlightAfterMove")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavRestoreHighlightAfterMoveNative(); + + /// /// To be documented. /// public static void NavRestoreHighlightAfterMove() + { + NavRestoreHighlightAfterMoveNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igNavUpdateCurrentWindowIsScrollPushableX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void NavUpdateCurrentWindowIsScrollPushableXNative(); + + /// /// To be documented. /// public static void NavUpdateCurrentWindowIsScrollPushableX() + { + NavUpdateCurrentWindowIsScrollPushableXNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNavWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNavWindowNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void SetNavWindow( ImGuiWindow* window) + { + SetNavWindowNative(window); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNavID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNavIDNative(uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel); + + /// /// To be documented. /// public static void SetNavID( uint id, ImGuiNavLayer navLayer, uint focusScopeId, ImRect rectRel) + { + SetNavIDNative(id, navLayer, focusScopeId, rectRel); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFocusItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void FocusItemNative(); + + /// /// To be documented. /// public static void FocusItem() + { + FocusItemNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igActivateItemByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ActivateItemByIDNative(uint id); + + /// /// To be documented. /// public static void ActivateItemByID( uint id) + { + ActivateItemByIDNative(id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsNamedKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsNamedKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsNamedKey( ImGuiKey key) + { + byte ret = IsNamedKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsNamedKeyOrModKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsNamedKeyOrModKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsNamedKeyOrModKey( ImGuiKey key) + { + byte ret = IsNamedKeyOrModKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsLegacyKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsLegacyKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsLegacyKey( ImGuiKey key) + { + byte ret = IsLegacyKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyboardKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyboardKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsKeyboardKey( ImGuiKey key) + { + byte ret = IsKeyboardKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsGamepadKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsGamepadKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsGamepadKey( ImGuiKey key) + { + byte ret = IsGamepadKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsMouseKey( ImGuiKey key) + { + byte ret = IsMouseKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsAliasKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsAliasKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static bool IsAliasKey( ImGuiKey key) + { + byte ret = IsAliasKeyNative(key); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igConvertShortcutMod")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int ConvertShortcutModNative(int keyChord); + + /// /// To be documented. /// public static int ConvertShortcutMod( int keyChord) + { + int ret = ConvertShortcutModNative(keyChord); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igConvertSingleModFlagToKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKey ConvertSingleModFlagToKeyNative(ImGuiContext* ctx, ImGuiKey key); + + /// /// To be documented. /// public static ImGuiKey ConvertSingleModFlagToKey( ImGuiContext* ctx, ImGuiKey key) + { + ImGuiKey ret = ConvertSingleModFlagToKeyNative(ctx, key); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyData_ContextPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyData* GetKeyDataContextPtrNative(ImGuiContext* ctx, ImGuiKey key); + + /// /// To be documented. /// public static ImGuiKeyData* GetKeyDataContextPtr( ImGuiContext* ctx, ImGuiKey key) + { + ImGuiKeyData* ret = GetKeyDataContextPtrNative(ctx, key); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyData_Key")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyData* GetKeyDataKeyNative(ImGuiKey key); + + /// /// To be documented. /// public static ImGuiKeyData* GetKeyDataKey( ImGuiKey key) + { + ImGuiKeyData* ret = GetKeyDataKeyNative(key); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igMouseButtonToKey")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKey MouseButtonToKeyNative(int button); + + /// /// To be documented. /// public static ImGuiKey MouseButtonToKey( int button) + { + ImGuiKey ret = MouseButtonToKeyNative(button); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseDragPastThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseDragPastThresholdNative(int button, float lockThreshold); + + /// /// To be documented. /// public static bool IsMouseDragPastThreshold( int button, float lockThreshold) + { + byte ret = IsMouseDragPastThresholdNative(button, lockThreshold); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyMagnitude2d")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetKeyMagnitude2DNative(Vector2* pOut, ImGuiKey keyLeft, ImGuiKey keyRight, ImGuiKey keyUp, ImGuiKey keyDown); + + /// /// To be documented. /// public static void GetKeyMagnitude2D( Vector2* pOut, ImGuiKey keyLeft, ImGuiKey keyRight, ImGuiKey keyUp, ImGuiKey keyDown) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + GetKeyMagnitude2DNative(pOut, keyLeft, keyRight, keyUp, keyDown); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetNavTweakPressedAmount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetNavTweakPressedAmountNative(ImGuiAxis axis); + + /// /// To be documented. /// public static float GetNavTweakPressedAmount( ImGuiAxis axis) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } + float ret = GetNavTweakPressedAmountNative(axis); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcTypematicRepeatAmount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int CalcTypematicRepeatAmountNative(float t0, float t1, float repeatDelay, float repeatRate); + + /// /// To be documented. /// public static int CalcTypematicRepeatAmount( float t0, float t1, float repeatDelay, float repeatRate) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } + int ret = CalcTypematicRepeatAmountNative(t0, t1, repeatDelay, repeatRate); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetTypematicRepeatRate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetTypematicRepeatRateNative(int flags, float* repeatDelay, float* repeatRate); + + /// /// To be documented. /// public static void GetTypematicRepeatRate( int flags, float* repeatDelay, float* repeatRate) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } + GetTypematicRepeatRateNative(flags, repeatDelay, repeatRate); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void GetTypematicRepeatRate( int flags, ref float repeatDelay, float* repeatRate) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (float* prepeatDelay = &repeatDelay) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } + GetTypematicRepeatRateNative(flags, (float*)prepeatDelay, repeatRate); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void GetTypematicRepeatRate( int flags, float* repeatDelay, ref float repeatRate) { - fixed (byte* ptext = &text) + fixed (float* prepeatRate = &repeatRate) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } + GetTypematicRepeatRateNative(flags, repeatDelay, (float*)prepeatRate); } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// /// To be documented. /// public static void GetTypematicRepeatRate( int flags, ref float repeatDelay, ref float repeatRate) { - fixed (byte* ptext = &text) + fixed (float* prepeatDelay = &repeatDelay) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (float* prepeatRate = &repeatRate) { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } + GetTypematicRepeatRateNative(flags, (float*)prepeatDelay, (float*)prepeatRate); } } } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTeleportMousePos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TeleportMousePosNative(Vector2 pos); + + /// /// To be documented. /// public static void TeleportMousePos( Vector2 pos) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + TeleportMousePosNative(pos); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetActiveIdUsingAllKeyboardKeys")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetActiveIdUsingAllKeyboardKeysNative(); + + /// /// To be documented. /// public static void SetActiveIdUsingAllKeyboardKeys() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + SetActiveIdUsingAllKeyboardKeysNative(); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsActiveIdUsingNavDir")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsActiveIdUsingNavDirNative(int dir); + + /// /// To be documented. /// public static bool IsActiveIdUsingNavDir( int dir) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } + byte ret = IsActiveIdUsingNavDirNative(dir); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyOwner")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetKeyOwnerNative(ImGuiKey key); + + /// /// To be documented. /// public static uint GetKeyOwner( ImGuiKey key) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } + uint ret = GetKeyOwnerNative(key); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetKeyOwner")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetKeyOwnerNative(ImGuiKey key, uint ownerId, int flags); + + /// /// To be documented. /// public static void SetKeyOwner( ImGuiKey key, uint ownerId, int flags) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + SetKeyOwnerNative(key, ownerId, flags); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetKeyOwnersForKeyChord")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetKeyOwnersForKeyChordNative(int key, uint ownerId, int flags); + + /// /// To be documented. /// public static void SetKeyOwnersForKeyChord( int key, uint ownerId, int flags) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + SetKeyOwnersForKeyChordNative(key, ownerId, flags); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetItemKeyOwner")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetItemKeyOwnerNative(ImGuiKey key, int flags); + + /// /// To be documented. /// public static void SetItemKeyOwner( ImGuiKey key, int flags) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } + SetItemKeyOwnerNative(key, flags); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTestKeyOwner")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TestKeyOwnerNative(ImGuiKey key, uint ownerId); + + /// /// To be documented. /// public static bool TestKeyOwner( ImGuiKey key, uint ownerId) { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } + byte ret = TestKeyOwnerNative(key, ownerId); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetKeyOwnerData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyOwnerData* GetKeyOwnerDataNative(ImGuiContext* ctx, ImGuiKey key); + + /// /// To be documented. /// public static ImGuiKeyOwnerData* GetKeyOwnerData( ImGuiContext* ctx, ImGuiKey key) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ImGuiKeyOwnerData* ret = GetKeyOwnerDataNative(ctx, key); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyDown_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyDownIDNative(ImGuiKey key, uint ownerId); + + /// /// To be documented. /// public static bool IsKeyDownID( ImGuiKey key, uint ownerId) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + byte ret = IsKeyDownIDNative(key, ownerId); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyPressed_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyPressedIDNative(ImGuiKey key, uint ownerId, int flags); + + /// /// To be documented. /// public static bool IsKeyPressedID( ImGuiKey key, uint ownerId, int flags) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } + byte ret = IsKeyPressedIDNative(key, ownerId, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyReleased_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyReleasedIDNative(ImGuiKey key, uint ownerId); + + /// /// To be documented. /// public static bool IsKeyReleasedID( ImGuiKey key, uint ownerId) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } + byte ret = IsKeyReleasedIDNative(key, ownerId); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseDown_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseDownIDNative(int button, uint ownerId); + + /// /// To be documented. /// public static bool IsMouseDownID( int button, uint ownerId) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + byte ret = IsMouseDownIDNative(button, ownerId); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseClicked_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseClickedIDNative(int button, uint ownerId, int flags); + + /// /// To be documented. /// public static bool IsMouseClickedID( int button, uint ownerId, int flags) + { + byte ret = IsMouseClickedIDNative(button, ownerId, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsMouseReleased_ID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsMouseReleasedIDNative(int button, uint ownerId); + + /// /// To be documented. /// public static bool IsMouseReleasedID( int button, uint ownerId) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + byte ret = IsMouseReleasedIDNative(button, ownerId); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsKeyChordPressed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyChordPressedNative(int keyChord, uint ownerId, int flags); + + /// /// To be documented. /// public static bool IsKeyChordPressed( int keyChord, uint ownerId, int flags) + { + byte ret = IsKeyChordPressedNative(keyChord, ownerId, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShortcut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ShortcutNative(int keyChord, uint ownerId, int flags); + + /// /// To be documented. /// public static bool Shortcut( int keyChord, uint ownerId, int flags) + { + byte ret = ShortcutNative(keyChord, ownerId, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetShortcutRouting")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SetShortcutRoutingNative(int keyChord, uint ownerId, int flags); + + /// /// To be documented. /// public static bool SetShortcutRouting( int keyChord, uint ownerId, int flags) + { + byte ret = SetShortcutRoutingNative(keyChord, ownerId, flags); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTestShortcutRouting")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TestShortcutRoutingNative(int keyChord, uint ownerId); + + /// /// To be documented. /// public static bool TestShortcutRouting( int keyChord, uint ownerId) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } + byte ret = TestShortcutRoutingNative(keyChord, ownerId); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetShortcutRoutingData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiKeyRoutingData* GetShortcutRoutingDataNative(int keyChord); + + /// /// To be documented. /// public static ImGuiKeyRoutingData* GetShortcutRoutingData( int keyChord) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } + ImGuiKeyRoutingData* ret = GetShortcutRoutingDataNative(keyChord); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextInitialize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextInitializeNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static void DockContextInitialize( ImGuiContext* ctx) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + DockContextInitializeNative(ctx); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextShutdown")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextShutdownNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static void DockContextShutdown( ImGuiContext* ctx) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + DockContextShutdownNative(ctx); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextClearNodes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextClearNodesNative(ImGuiContext* ctx, uint rootId, byte clearSettingsRefs); + + /// /// To be documented. /// public static void DockContextClearNodes( ImGuiContext* ctx, uint rootId, bool clearSettingsRefs) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - } - } - } - } - } + DockContextClearNodesNative(ctx, rootId, clearSettingsRefs ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextRebuildNodes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextRebuildNodesNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static void DockContextRebuildNodes( ImGuiContext* ctx) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - } - } - } - } - } + DockContextRebuildNodesNative(ctx); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "align")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 align, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextNewFrameUpdateUndocking")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextNewFrameUpdateUndockingNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static void DockContextNewFrameUpdateUndocking( ImGuiContext* ctx) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + DockContextNewFrameUpdateUndockingNative(ctx); } - [NativeName(NativeNameType.Func, "igRenderTextClippedEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextClippedEx([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImRect*")] ref ImRect clipRect) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextNewFrameUpdateDocking")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextNewFrameUpdateDockingNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static void DockContextNewFrameUpdateDocking( ImGuiContext* ctx) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - fixed (ImRect* pclipRect = &clipRect) - { - RenderTextClippedExNative((ImDrawList*)pdrawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, (Vector2)(new Vector2(0,0)), (ImRect*)pclipRect); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } + DockContextNewFrameUpdateDockingNative(ctx); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderTextEllipsis")] - internal static extern void RenderTextEllipsisNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown); + [LibraryImport(LibName, EntryPoint = "igDockContextEndFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextEndFrameNative(ImGuiContext* ctx); - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void DockContextEndFrame( ImGuiContext* ctx) { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); + DockContextEndFrameNative(ctx); } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextGenNodeID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockContextGenNodeIDNative(ImGuiContext* ctx); + + /// /// To be documented. /// public static uint DockContextGenNodeID( ImGuiContext* ctx) { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); - } + uint ret = DockContextGenNodeIDNative(ctx); + return ret; } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextQueueDock")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextQueueDockNative(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, int splitDir, float splitRatio, byte splitOuter); + + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payload, int splitDir, float splitRatio, bool splitOuter) { - fixed (byte* ptext = &text) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); - } + DockContextQueueDockNative(ctx, target, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ref ImGuiWindow target, ImGuiDockNode* targetNode, ImGuiWindow* payload, int splitDir, float splitRatio, bool splitOuter) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImGuiWindow* ptarget = &target) { - Utils.Free(pStr0); + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ImGuiWindow* target, ref ImGuiDockNode targetNode, ImGuiWindow* payload, int splitDir, float splitRatio, bool splitOuter) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiDockNode* ptargetNode = &targetNode) { - fixed (byte* ptext = &text) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); - } + DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ImGuiWindow* payload, int splitDir, float splitRatio, bool splitOuter) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiWindow* ptarget = &target) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImGuiDockNode* ptargetNode = &targetNode) { - Utils.Free(pStr0); + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, payload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* targetNode, ref ImGuiWindow payload, int splitDir, float splitRatio, bool splitOuter) { - fixed (byte* ptextEnd = &textEnd) + fixed (ImGuiWindow* ppayload = &payload) { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); + DockContextQueueDockNative(ctx, target, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ref ImGuiWindow target, ImGuiDockNode* targetNode, ref ImGuiWindow payload, int splitDir, float splitRatio, bool splitOuter) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) + fixed (ImGuiWindow* ptarget = &target) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (ImGuiWindow* ppayload = &payload) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, targetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ImGuiWindow* target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, int splitDir, float splitRatio, bool splitOuter) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiDockNode* ptargetNode = &targetNode) { - fixed (byte* ptextEnd = &textEnd) + fixed (ImGuiWindow* ppayload = &payload) { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); + DockContextQueueDockNative(ctx, target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void DockContextQueueDock( ImGuiContext* ctx, ref ImGuiWindow target, ref ImGuiDockNode targetNode, ref ImGuiWindow payload, int splitDir, float splitRatio, bool splitOuter) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiWindow* ptarget = &target) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) + fixed (ImGuiDockNode* ptargetNode = &targetNode) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (ImGuiWindow* ppayload = &payload) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + DockContextQueueDockNative(ctx, (ImGuiWindow*)ptarget, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayload, splitDir, splitRatio, splitOuter ? (byte)1 : (byte)0); } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, textSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextQueueUndockWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextQueueUndockWindowNative(ImGuiContext* ctx, ImGuiWindow* window); + + /// /// To be documented. /// public static void DockContextQueueUndockWindow( ImGuiContext* ctx, ImGuiWindow* window) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); - } - } + DockContextQueueUndockWindowNative(ctx, window); } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void DockContextQueueUndockWindow( ImGuiContext* ctx, ref ImGuiWindow window) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, textSizeIfKnown); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImGuiWindow* pwindow = &window) { - Utils.Free(pStr0); + DockContextQueueUndockWindowNative(ctx, (ImGuiWindow*)pwindow); } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextQueueUndockNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextQueueUndockNodeNative(ImGuiContext* ctx, ImGuiDockNode* node); + + /// /// To be documented. /// public static void DockContextQueueUndockNode( ImGuiContext* ctx, ImGuiDockNode* node) { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); - } - } - } + DockContextQueueUndockNodeNative(ctx, node); } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* textSizeIfKnown) + /// /// To be documented. /// public static void DockContextQueueUndockNode( ImGuiContext* ctx, ref ImGuiDockNode node) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiDockNode* pnode = &node) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, textSizeIfKnown); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + DockContextQueueUndockNodeNative(ctx, (ImGuiDockNode*)pnode); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextProcessUndockWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextProcessUndockWindowNative(ImGuiContext* ctx, ImGuiWindow* window, byte clearPersistentDockingRef); + + /// /// To be documented. /// public static void DockContextProcessUndockWindow( ImGuiContext* ctx, ImGuiWindow* window, bool clearPersistentDockingRef) + { + DockContextProcessUndockWindowNative(ctx, window, clearPersistentDockingRef ? (byte)1 : (byte)0); + } + + /// /// To be documented. /// public static void DockContextProcessUndockWindow( ImGuiContext* ctx, ref ImGuiWindow window, bool clearPersistentDockingRef) + { + fixed (ImGuiWindow* pwindow = &window) + { + DockContextProcessUndockWindowNative(ctx, (ImGuiWindow*)pwindow, clearPersistentDockingRef ? (byte)1 : (byte)0); } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextProcessUndockNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockContextProcessUndockNodeNative(ImGuiContext* ctx, ImGuiDockNode* node); + + /// /// To be documented. /// public static void DockContextProcessUndockNode( ImGuiContext* ctx, ImGuiDockNode* node) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + DockContextProcessUndockNodeNative(ctx, node); + } + + /// /// To be documented. /// public static void DockContextProcessUndockNode( ImGuiContext* ctx, ref ImGuiDockNode node) + { + fixed (ImGuiDockNode* pnode = &node) { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown); + DockContextProcessUndockNodeNative(ctx, (ImGuiDockNode*)pnode); } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextCalcDropPosForDocking")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DockContextCalcDropPosForDockingNative(ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payloadWindow, ImGuiDockNode* payloadNode, int splitDir, byte splitOuter, Vector2* outPos); + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, Vector2* outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ImGuiWindow* payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, Vector2* outPos) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiDockNode* ptargetNode = &targetNode) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown); - } + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ref ImGuiWindow payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, Vector2* outPos) { - fixed (byte* ptext = &text) + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); - } + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ref ImGuiWindow payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, Vector2* outPos) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) + fixed (ImGuiDockNode* ptargetNode = &targetNode) { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ImGuiWindow* payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, Vector2* outPos) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiDockNode* ptargetNode = &targetNode) { - fixed (byte* ptext = &text) + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); - } + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ref ImGuiWindow payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, Vector2* outPos) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + } + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ref ImGuiWindow payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, Vector2* outPos) + { + fixed (ImGuiDockNode* ptargetNode = &targetNode) + { + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) { - Utils.Free(pStr0); + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, outPos); + return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) { - fixed (byte* ptextEnd = &textEnd) + fixed (Vector2* poutPos = &outPos) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); - } + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ImGuiWindow* payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) + fixed (ImGuiDockNode* ptargetNode = &targetNode) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* poutPos = &outPos) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + } + + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ref ImGuiWindow payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) + { + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector2* poutPos = &outPos) { - Utils.Free(pStr0); + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ref ImGuiWindow payloadWindow, ImGuiDockNode* payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiDockNode* ptargetNode = &targetNode) { - fixed (byte* ptextEnd = &textEnd) + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (Vector2* poutPos = &outPos) { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, payloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ImGuiWindow* payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (Vector2* poutPos = &outPos) { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; } } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ImGuiWindow* payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) { - fixed (byte* ptext = &text) + fixed (ImGuiDockNode* ptargetNode = &targetNode) { - fixed (byte* ptextEnd = &textEnd) + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (Vector2* poutPos = &outPos) { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, payloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; } } } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ImGuiDockNode* targetNode, ref ImGuiWindow payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) { - RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) { - Utils.Free(pStr0); + fixed (Vector2* poutPos = &outPos) + { + byte ret = DockContextCalcDropPosForDockingNative(target, targetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; + } } } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// /// To be documented. /// public static bool DockContextCalcDropPosForDocking( ImGuiWindow* target, ref ImGuiDockNode targetNode, ref ImGuiWindow payloadWindow, ref ImGuiDockNode payloadNode, int splitDir, bool splitOuter, ref Vector2 outPos) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (ImGuiDockNode* ptargetNode = &targetNode) { - fixed (byte* ptext = &text) + fixed (ImGuiWindow* ppayloadWindow = &payloadWindow) { - fixed (byte* ptextEnd = &textEnd) + fixed (ImGuiDockNode* ppayloadNode = &payloadNode) { - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + fixed (Vector2* poutPos = &outPos) { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + byte ret = DockContextCalcDropPosForDockingNative(target, (ImGuiDockNode*)ptargetNode, (ImGuiWindow*)ppayloadWindow, (ImGuiDockNode*)ppayloadNode, splitDir, splitOuter ? (byte)1 : (byte)0, (Vector2*)poutPos); + return ret != 0; } } } } } - [NativeName(NativeNameType.Func, "igRenderTextEllipsis")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderTextEllipsis([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMin, [NativeName(NativeNameType.Param, "pos_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 posMax, [NativeName(NativeNameType.Param, "clip_max_x")] [NativeName(NativeNameType.Type, "float")] float clipMaxX, [NativeName(NativeNameType.Param, "ellipsis_max_x")] [NativeName(NativeNameType.Type, "float")] float ellipsisMaxX, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "text_size_if_known")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 textSizeIfKnown) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockContextFindNodeByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* DockContextFindNodeByIDNative(ImGuiContext* ctx, uint id); + + /// /// To be documented. /// public static ImGuiDockNode* DockContextFindNodeByID( ImGuiContext* ctx, uint id) { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) - { - RenderTextEllipsisNative((ImDrawList*)pdrawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } + ImGuiDockNode* ret = DockContextFindNodeByIDNative(ctx, id); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderFrame")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderFrame")] - internal static extern void RenderFrameNative([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] byte border, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding); + [LibraryImport(LibName, EntryPoint = "igDockNodeWindowMenuHandler_Default")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockNodeWindowMenuHandlerDefaultNative(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tabBar); - [NativeName(NativeNameType.Func, "igRenderFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderFrame([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + /// /// To be documented. /// public static void DockNodeWindowMenuHandlerDefault( ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tabBar) { - RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, rounding); + DockNodeWindowMenuHandlerDefaultNative(ctx, node, tabBar); } - [NativeName(NativeNameType.Func, "igRenderFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderFrame([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "bool")] bool border) + /// /// To be documented. /// public static void DockNodeWindowMenuHandlerDefault( ImGuiContext* ctx, ref ImGuiDockNode node, ImGuiTabBar* tabBar) { - RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, (float)(0.0f)); + fixed (ImGuiDockNode* pnode = &node) + { + DockNodeWindowMenuHandlerDefaultNative(ctx, (ImGuiDockNode*)pnode, tabBar); + } } - [NativeName(NativeNameType.Func, "igRenderFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderFrame([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol) + /// /// To be documented. /// public static void DockNodeWindowMenuHandlerDefault( ImGuiContext* ctx, ImGuiDockNode* node, ref ImGuiTabBar tabBar) { - RenderFrameNative(pMin, pMax, fillCol, (byte)(1), (float)(0.0f)); + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + DockNodeWindowMenuHandlerDefaultNative(ctx, node, (ImGuiTabBar*)ptabBar); + } } - [NativeName(NativeNameType.Func, "igRenderFrame")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderFrame([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + /// /// To be documented. /// public static void DockNodeWindowMenuHandlerDefault( ImGuiContext* ctx, ref ImGuiDockNode node, ref ImGuiTabBar tabBar) { - RenderFrameNative(pMin, pMax, fillCol, (byte)(1), rounding); + fixed (ImGuiDockNode* pnode = &node) + { + fixed (ImGuiTabBar* ptabBar = &tabBar) + { + DockNodeWindowMenuHandlerDefaultNative(ctx, (ImGuiDockNode*)pnode, (ImGuiTabBar*)ptabBar); + } + } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderFrameBorder")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderFrameBorder")] - internal static extern void RenderFrameBorderNative([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding); + [LibraryImport(LibName, EntryPoint = "igDockNodeBeginAmendTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DockNodeBeginAmendTabBarNative(ImGuiDockNode* node); - [NativeName(NativeNameType.Func, "igRenderFrameBorder")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderFrameBorder([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + /// /// To be documented. /// public static bool DockNodeBeginAmendTabBar( ImGuiDockNode* node) { - RenderFrameBorderNative(pMin, pMax, rounding); + byte ret = DockNodeBeginAmendTabBarNative(node); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockNodeEndAmendTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockNodeEndAmendTabBarNative(); + + /// /// To be documented. /// public static void DockNodeEndAmendTabBar() + { + DockNodeEndAmendTabBarNative(); } - [NativeName(NativeNameType.Func, "igRenderFrameBorder")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderFrameBorder([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockNodeGetRootNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* DockNodeGetRootNodeNative(ImGuiDockNode* node); + + /// /// To be documented. /// public static ImGuiDockNode* DockNodeGetRootNode( ImGuiDockNode* node) { - RenderFrameBorderNative(pMin, pMax, (float)(0.0f)); + ImGuiDockNode* ret = DockNodeGetRootNodeNative(node); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderColorRectWithAlphaCheckerboard")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderColorRectWithAlphaCheckerboard")] - internal static extern void RenderColorRectWithAlphaCheckerboardNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "grid_step")] [NativeName(NativeNameType.Type, "float")] float gridStep, [NativeName(NativeNameType.Param, "grid_off")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gridOff, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags); + [LibraryImport(LibName, EntryPoint = "igDockNodeIsInHierarchyOf")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DockNodeIsInHierarchyOfNative(ImGuiDockNode* node, ImGuiDockNode* parent); - [NativeName(NativeNameType.Func, "igRenderColorRectWithAlphaCheckerboard")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderColorRectWithAlphaCheckerboard([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "grid_step")] [NativeName(NativeNameType.Type, "float")] float gridStep, [NativeName(NativeNameType.Param, "grid_off")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gridOff, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + /// /// To be documented. /// public static bool DockNodeIsInHierarchyOf( ImGuiDockNode* node, ImGuiDockNode* parent) { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); + byte ret = DockNodeIsInHierarchyOfNative(node, parent); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderColorRectWithAlphaCheckerboard")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderColorRectWithAlphaCheckerboard([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "grid_step")] [NativeName(NativeNameType.Type, "float")] float gridStep, [NativeName(NativeNameType.Param, "grid_off")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gridOff, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + /// /// To be documented. /// public static bool DockNodeIsInHierarchyOf( ImGuiDockNode* node, ref ImGuiDockNode parent) { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); + fixed (ImGuiDockNode* pparent = &parent) + { + byte ret = DockNodeIsInHierarchyOfNative(node, (ImGuiDockNode*)pparent); + return ret != 0; + } } - [NativeName(NativeNameType.Func, "igRenderColorRectWithAlphaCheckerboard")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderColorRectWithAlphaCheckerboard([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "grid_step")] [NativeName(NativeNameType.Type, "float")] float gridStep, [NativeName(NativeNameType.Param, "grid_off")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gridOff) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockNodeGetDepth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int DockNodeGetDepthNative(ImGuiDockNode* node); + + /// /// To be documented. /// public static int DockNodeGetDepth( ImGuiDockNode* node) { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); + int ret = DockNodeGetDepthNative(node); + return ret; } - [NativeName(NativeNameType.Func, "igRenderColorRectWithAlphaCheckerboard")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderColorRectWithAlphaCheckerboard([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "grid_step")] [NativeName(NativeNameType.Type, "float")] float gridStep, [NativeName(NativeNameType.Param, "grid_off")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gridOff, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockNodeGetWindowMenuButtonId")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockNodeGetWindowMenuButtonIdNative(ImGuiDockNode* node); + + /// /// To be documented. /// public static uint DockNodeGetWindowMenuButtonId( ImGuiDockNode* node) { - RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); + uint ret = DockNodeGetWindowMenuButtonIdNative(node); + return ret; } - [NativeName(NativeNameType.Func, "igRenderColorRectWithAlphaCheckerboard")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderColorRectWithAlphaCheckerboard([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "grid_step")] [NativeName(NativeNameType.Type, "float")] float gridStep, [NativeName(NativeNameType.Param, "grid_off")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gridOff, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowDockNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* GetWindowDockNodeNative(); + + /// /// To be documented. /// public static ImGuiDockNode* GetWindowDockNode() { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); - } + ImGuiDockNode* ret = GetWindowDockNodeNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderColorRectWithAlphaCheckerboard")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderColorRectWithAlphaCheckerboard([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "grid_step")] [NativeName(NativeNameType.Type, "float")] float gridStep, [NativeName(NativeNameType.Param, "grid_off")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gridOff, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowAlwaysWantOwnTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte GetWindowAlwaysWantOwnTabBarNative(ImGuiWindow* window); + + /// /// To be documented. /// public static bool GetWindowAlwaysWantOwnTabBar( ImGuiWindow* window) { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, (ImDrawFlags)(0)); - } + byte ret = GetWindowAlwaysWantOwnTabBarNative(window); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderColorRectWithAlphaCheckerboard")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderColorRectWithAlphaCheckerboard([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "grid_step")] [NativeName(NativeNameType.Type, "float")] float gridStep, [NativeName(NativeNameType.Param, "grid_off")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gridOff) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDocked")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginDockedNative(ImGuiWindow* window, byte* pOpen); + + /// /// To be documented. /// public static void BeginDocked( ImGuiWindow* window, byte* pOpen) { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), (ImDrawFlags)(0)); - } + BeginDockedNative(window, pOpen); } - [NativeName(NativeNameType.Func, "igRenderColorRectWithAlphaCheckerboard")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderColorRectWithAlphaCheckerboard([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "fill_col")] [NativeName(NativeNameType.Type, "ImU32")] uint fillCol, [NativeName(NativeNameType.Param, "grid_step")] [NativeName(NativeNameType.Type, "float")] float gridStep, [NativeName(NativeNameType.Param, "grid_off")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gridOff, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + /// /// To be documented. /// public static void BeginDocked( ImGuiWindow* window, ref byte pOpen) { - fixed (ImDrawList* pdrawList = &drawList) + fixed (byte* ppOpen = &pOpen) { - RenderColorRectWithAlphaCheckerboardNative((ImDrawList*)pdrawList, pMin, pMax, fillCol, gridStep, gridOff, (float)(0.0f), flags); + BeginDockedNative(window, (byte*)ppOpen); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderNavHighlight")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderNavHighlight")] - internal static extern void RenderNavHighlightNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiNavHighlightFlags")] ImGuiNavHighlightFlags flags); + [LibraryImport(LibName, EntryPoint = "igBeginDockableDragDropSource")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginDockableDragDropSourceNative(ImGuiWindow* window); - /// /// Navigation highlight /// [NativeName(NativeNameType.Func, "igRenderNavHighlight")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderNavHighlight([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiNavHighlightFlags")] ImGuiNavHighlightFlags flags) + /// /// To be documented. /// public static void BeginDockableDragDropSource( ImGuiWindow* window) { - RenderNavHighlightNative(bb, id, flags); + BeginDockableDragDropSourceNative(window); } - /// /// Navigation highlight /// [NativeName(NativeNameType.Func, "igRenderNavHighlight")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderNavHighlight([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginDockableDragDropTarget")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginDockableDragDropTargetNative(ImGuiWindow* window); + + /// /// To be documented. /// public static void BeginDockableDragDropTarget( ImGuiWindow* window) { - RenderNavHighlightNative(bb, id, (ImGuiNavHighlightFlags)(ImGuiNavHighlightFlags.TypeDefault)); + BeginDockableDragDropTargetNative(window); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igFindRenderedTextEnd")] - internal static extern byte* FindRenderedTextEndNative([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd); + [LibraryImport(LibName, EntryPoint = "igSetWindowDock")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowDockNative(ImGuiWindow* window, uint dockId, int cond); - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* FindRenderedTextEnd([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + /// /// To be documented. /// public static void SetWindowDock( ImGuiWindow* window, uint dockId, int cond) { - byte* ret = FindRenderedTextEndNative(text, textEnd); - return ret; + SetWindowDockNative(window, dockId, cond); } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* FindRenderedTextEnd([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderDockWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderDockWindowNative(byte* windowName, uint nodeId); + + /// /// To be documented. /// public static void DockBuilderDockWindow( byte* windowName, uint nodeId) { - byte* ret = FindRenderedTextEndNative(text, (byte*)(default)); - return ret; + DockBuilderDockWindowNative(windowName, nodeId); } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string FindRenderedTextEndS([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderGetNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* DockBuilderGetNodeNative(uint nodeId); + + /// /// To be documented. /// public static ImGuiDockNode* DockBuilderGetNode( uint nodeId) { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)(default))); + ImGuiDockNode* ret = DockBuilderGetNodeNative(nodeId); return ret; } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string FindRenderedTextEndS([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderGetCentralNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDockNode* DockBuilderGetCentralNodeNative(uint nodeId); + + /// /// To be documented. /// public static ImGuiDockNode* DockBuilderGetCentralNode( uint nodeId) { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, textEnd)); + ImGuiDockNode* ret = DockBuilderGetCentralNodeNative(nodeId); return ret; } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* FindRenderedTextEnd([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) - { - fixed (byte* ptext = &text) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, textEnd); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderAddNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockBuilderAddNodeNative(uint nodeId, int flags); - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* FindRenderedTextEnd([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) + /// /// To be documented. /// public static uint DockBuilderAddNode( uint nodeId, int flags) { - fixed (byte* ptext = &text) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)(default)); - return ret; - } + uint ret = DockBuilderAddNodeNative(nodeId, flags); + return ret; } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string FindRenderedTextEndS([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) - { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)(default))); - return ret; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderRemoveNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderRemoveNodeNative(uint nodeId); - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string FindRenderedTextEndS([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + /// /// To be documented. /// public static void DockBuilderRemoveNode( uint nodeId) { - fixed (byte* ptext = &text) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, textEnd)); - return ret; - } + DockBuilderRemoveNodeNative(nodeId); } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* FindRenderedTextEnd([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderRemoveNodeDockedWindows")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderRemoveNodeDockedWindowsNative(uint nodeId, byte clearSettingsRefs); + + /// /// To be documented. /// public static void DockBuilderRemoveNodeDockedWindows( uint nodeId, bool clearSettingsRefs) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative(pStr0, textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + DockBuilderRemoveNodeDockedWindowsNative(nodeId, clearSettingsRefs ? (byte)1 : (byte)0); } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* FindRenderedTextEnd([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderRemoveNodeChildNodes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderRemoveNodeChildNodesNative(uint nodeId); + + /// /// To be documented. /// public static void DockBuilderRemoveNodeChildNodes( uint nodeId) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative(pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + DockBuilderRemoveNodeChildNodesNative(nodeId); } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string FindRenderedTextEndS([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderSetNodePos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderSetNodePosNative(uint nodeId, Vector2 pos); + + /// /// To be documented. /// public static void DockBuilderSetNodePos( uint nodeId, Vector2 pos) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, (byte*)(default))); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + DockBuilderSetNodePosNative(nodeId, pos); } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string FindRenderedTextEndS([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderSetNodeSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderSetNodeSizeNative(uint nodeId, Vector2 size); + + /// /// To be documented. /// public static void DockBuilderSetNodeSize( uint nodeId, Vector2 size) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, textEnd)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + DockBuilderSetNodeSizeNative(nodeId, size); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderSplitNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint DockBuilderSplitNodeNative(uint nodeId, int splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir); + + /// /// To be documented. /// public static uint DockBuilderSplitNode( uint nodeId, int splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, uint* outIdAtOppositeDir) + { + uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, outIdAtOppositeDir); return ret; } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* FindRenderedTextEnd([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + /// /// To be documented. /// public static uint DockBuilderSplitNode( uint nodeId, int splitDir, float sizeRatioForNodeAtDir, ref uint outIdAtDir, uint* outIdAtOppositeDir) { - fixed (byte* ptextEnd = &textEnd) + fixed (uint* poutIdAtDir = &outIdAtDir) { - byte* ret = FindRenderedTextEndNative(text, (byte*)ptextEnd); + uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, (uint*)poutIdAtDir, outIdAtOppositeDir); return ret; } } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string FindRenderedTextEndS([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + /// /// To be documented. /// public static uint DockBuilderSplitNode( uint nodeId, int splitDir, float sizeRatioForNodeAtDir, uint* outIdAtDir, ref uint outIdAtOppositeDir) { - fixed (byte* ptextEnd = &textEnd) + fixed (uint* poutIdAtOppositeDir = &outIdAtOppositeDir) { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)ptextEnd)); + uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, outIdAtDir, (uint*)poutIdAtOppositeDir); return ret; } } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* FindRenderedTextEnd([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + /// /// To be documented. /// public static uint DockBuilderSplitNode( uint nodeId, int splitDir, float sizeRatioForNodeAtDir, ref uint outIdAtDir, ref uint outIdAtOppositeDir) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) + fixed (uint* poutIdAtDir = &outIdAtDir) { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (uint* poutIdAtOppositeDir = &outIdAtOppositeDir) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + uint ret = DockBuilderSplitNodeNative(nodeId, splitDir, sizeRatioForNodeAtDir, (uint*)poutIdAtDir, (uint*)poutIdAtOppositeDir); + return ret; } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = FindRenderedTextEndNative(text, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret; } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string FindRenderedTextEndS([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderCopyDockSpace")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderCopyDockSpaceNative(uint srcDockspaceId, uint dstDockspaceId, ImVectorConstCharPtr* inWindowRemapPairs); + + /// /// To be documented. /// public static void DockBuilderCopyDockSpace( uint srcDockspaceId, uint dstDockspaceId, ImVectorConstCharPtr* inWindowRemapPairs) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, pStr0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; + DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, inWindowRemapPairs); } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* FindRenderedTextEnd([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + /// /// To be documented. /// public static void DockBuilderCopyDockSpace( uint srcDockspaceId, uint dstDockspaceId, ref ImVectorConstCharPtr inWindowRemapPairs) { - fixed (byte* ptext = &text) + fixed (ImVectorConstCharPtr* pinWindowRemapPairs = &inWindowRemapPairs) { - fixed (byte* ptextEnd = &textEnd) - { - byte* ret = FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd); - return ret; - } + DockBuilderCopyDockSpaceNative(srcDockspaceId, dstDockspaceId, (ImVectorConstCharPtr*)pinWindowRemapPairs); } } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string FindRenderedTextEndS([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderCopyNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderCopyNodeNative(uint srcNodeId, uint dstNodeId, ImVectorImGuiID* outNodeRemapPairs); + + /// /// To be documented. /// public static void DockBuilderCopyNode( uint srcNodeId, uint dstNodeId, ImVectorImGuiID* outNodeRemapPairs) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative((byte*)ptext, (byte*)ptextEnd)); - return ret; - } - } + DockBuilderCopyNodeNative(srcNodeId, dstNodeId, outNodeRemapPairs); } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* FindRenderedTextEnd([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + /// /// To be documented. /// public static void DockBuilderCopyNode( uint srcNodeId, uint dstNodeId, ref ImVectorImGuiID outNodeRemapPairs) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* ret = FindRenderedTextEndNative(pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (ImVectorImGuiID* poutNodeRemapPairs = &outNodeRemapPairs) { - Utils.Free(pStr1); + DockBuilderCopyNodeNative(srcNodeId, dstNodeId, (ImVectorImGuiID*)poutNodeRemapPairs); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDockBuilderCopyWindowSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderCopyWindowSettingsNative(byte* srcName, byte* dstName); + + /// /// To be documented. /// public static void DockBuilderCopyWindowSettings( byte* srcName, byte* dstName) + { + DockBuilderCopyWindowSettingsNative(srcName, dstName); + } + + /// /// To be documented. /// public static void DockBuilderCopyWindowSettings( byte* srcName, ref byte dstName) + { + fixed (byte* pdstName = &dstName) { - Utils.Free(pStr0); + DockBuilderCopyWindowSettingsNative(srcName, (byte*)pdstName); } - return ret; } - /// /// Find the optional ## from which we stop displaying text. /// [NativeName(NativeNameType.Func, "igFindRenderedTextEnd")] - [return: NativeName(NativeNameType.Type, "const char*")] - public static string FindRenderedTextEndS([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + /// /// To be documented. /// public static void DockBuilderCopyWindowSettings( byte* srcName, string dstName) { byte* pStr0 = null; int pStrSize0 = 0; - if (text != null) + if (dstName != null) { - pStrSize0 = Utils.GetByteCountUTF8(text); + pStrSize0 = Utils.GetByteCountUTF8(dstName); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -236342,1724 +69053,1274 @@ public static string FindRenderedTextEndS([NativeName(NativeNameType.Param, "tex byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(dstName, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(pStr0, pStr1)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + DockBuilderCopyWindowSettingsNative(srcName, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderMouseCursor")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderMouseCursor")] - internal static extern void RenderMouseCursorNative([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "mouse_cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor mouseCursor, [NativeName(NativeNameType.Param, "col_fill")] [NativeName(NativeNameType.Type, "ImU32")] uint colFill, [NativeName(NativeNameType.Param, "col_border")] [NativeName(NativeNameType.Type, "ImU32")] uint colBorder, [NativeName(NativeNameType.Param, "col_shadow")] [NativeName(NativeNameType.Type, "ImU32")] uint colShadow); + [LibraryImport(LibName, EntryPoint = "igDockBuilderFinish")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DockBuilderFinishNative(uint nodeId); - [NativeName(NativeNameType.Func, "igRenderMouseCursor")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderMouseCursor([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "mouse_cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor mouseCursor, [NativeName(NativeNameType.Param, "col_fill")] [NativeName(NativeNameType.Type, "ImU32")] uint colFill, [NativeName(NativeNameType.Param, "col_border")] [NativeName(NativeNameType.Type, "ImU32")] uint colBorder, [NativeName(NativeNameType.Param, "col_shadow")] [NativeName(NativeNameType.Type, "ImU32")] uint colShadow) + /// /// To be documented. /// public static void DockBuilderFinish( uint nodeId) { - RenderMouseCursorNative(pos, scale, mouseCursor, colFill, colBorder, colShadow); + DockBuilderFinishNative(nodeId); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderArrow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderArrow")] - internal static extern void RenderArrowNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale); + [LibraryImport(LibName, EntryPoint = "igPushFocusScope")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushFocusScopeNative(uint id); - [NativeName(NativeNameType.Func, "igRenderArrow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderArrow([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale) + /// /// To be documented. /// public static void PushFocusScope( uint id) { - RenderArrowNative(drawList, pos, col, dir, scale); + PushFocusScopeNative(id); } - [NativeName(NativeNameType.Func, "igRenderArrow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderArrow([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopFocusScope")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopFocusScopeNative(); + + /// /// To be documented. /// public static void PopFocusScope() { - RenderArrowNative(drawList, pos, col, dir, (float)(1.0f)); + PopFocusScopeNative(); } - [NativeName(NativeNameType.Func, "igRenderArrow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderArrow([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCurrentFocusScope")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetCurrentFocusScopeNative(); + + /// /// To be documented. /// public static uint GetCurrentFocusScope() { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowNative((ImDrawList*)pdrawList, pos, col, dir, scale); - } + uint ret = GetCurrentFocusScopeNative(); + return ret; } - [NativeName(NativeNameType.Func, "igRenderArrow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderArrow([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igIsDragDropActive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsDragDropActiveNative(); + + /// /// To be documented. /// public static bool IsDragDropActive() { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowNative((ImDrawList*)pdrawList, pos, col, dir, (float)(1.0f)); - } + byte ret = IsDragDropActiveNative(); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderBullet")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderBullet")] - internal static extern void RenderBulletNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); + [LibraryImport(LibName, EntryPoint = "igBeginDragDropTargetCustom")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginDragDropTargetCustomNative(ImRect bb, uint id); - [NativeName(NativeNameType.Func, "igRenderBullet")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderBullet([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + /// /// To be documented. /// public static bool BeginDragDropTargetCustom( ImRect bb, uint id) { - RenderBulletNative(drawList, pos, col); + byte ret = BeginDragDropTargetCustomNative(bb, id); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderBullet")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderBullet([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igClearDragDrop")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ClearDragDropNative(); + + /// /// To be documented. /// public static void ClearDragDrop() { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderBulletNative((ImDrawList*)pdrawList, pos, col); - } + ClearDragDropNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderCheckMark")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderCheckMark")] - internal static extern void RenderCheckMarkNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "float")] float sz); + [LibraryImport(LibName, EntryPoint = "igIsDragDropPayloadBeingAccepted")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsDragDropPayloadBeingAcceptedNative(); - [NativeName(NativeNameType.Func, "igRenderCheckMark")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderCheckMark([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "float")] float sz) + /// /// To be documented. /// public static bool IsDragDropPayloadBeingAccepted() { - RenderCheckMarkNative(drawList, pos, col, sz); + byte ret = IsDragDropPayloadBeingAcceptedNative(); + return ret != 0; } - [NativeName(NativeNameType.Func, "igRenderCheckMark")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderCheckMark([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "float")] float sz) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderDragDropTargetRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderDragDropTargetRectNative(ImRect bb); + + /// /// To be documented. /// public static void RenderDragDropTargetRect( ImRect bb) { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderCheckMarkNative((ImDrawList*)pdrawList, pos, col, sz); - } + RenderDragDropTargetRectNative(bb); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderArrowPointingAt")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderArrowPointingAt")] - internal static extern void RenderArrowPointingAtNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "half_sz")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 halfSz, [NativeName(NativeNameType.Param, "direction")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir direction, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); + [LibraryImport(LibName, EntryPoint = "igGetTypingSelectRequest")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTypingSelectRequest* GetTypingSelectRequestNative(int flags); - [NativeName(NativeNameType.Func, "igRenderArrowPointingAt")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderArrowPointingAt([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "half_sz")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 halfSz, [NativeName(NativeNameType.Param, "direction")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir direction, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + /// /// To be documented. /// public static ImGuiTypingSelectRequest* GetTypingSelectRequest( int flags) { - RenderArrowPointingAtNative(drawList, pos, halfSz, direction, col); + ImGuiTypingSelectRequest* ret = GetTypingSelectRequestNative(flags); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTypingSelectFindMatch")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TypingSelectFindMatchNative(ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, byte*> getItemNameFunc, void* userData, int navItemIdx); + + /// /// To be documented. /// public static int TypingSelectFindMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, byte*> getItemNameFunc, void* userData, int navItemIdx) + { + int ret = TypingSelectFindMatchNative(req, itemsCount, getItemNameFunc, userData, navItemIdx); + return ret; } - [NativeName(NativeNameType.Func, "igRenderArrowPointingAt")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderArrowPointingAt([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "half_sz")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 halfSz, [NativeName(NativeNameType.Param, "direction")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir direction, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + /// /// To be documented. /// public static int TypingSelectFindMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, ref byte> getItemNameFunc, void* userData, int navItemIdx) { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowPointingAtNative((ImDrawList*)pdrawList, pos, halfSz, direction, col); - } + int ret = TypingSelectFindMatchNative(req, itemsCount, getItemNameFunc, userData, navItemIdx); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderArrowDockMenu")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderArrowDockMenu")] - internal static extern void RenderArrowDockMenuNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "float")] float sz, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); + [LibraryImport(LibName, EntryPoint = "igTypingSelectFindNextSingleCharMatch")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TypingSelectFindNextSingleCharMatchNative(ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, byte*> getItemNameFunc, void* userData, int navItemIdx); - [NativeName(NativeNameType.Func, "igRenderArrowDockMenu")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderArrowDockMenu([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "float")] float sz, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + /// /// To be documented. /// public static int TypingSelectFindNextSingleCharMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, byte*> getItemNameFunc, void* userData, int navItemIdx) { - RenderArrowDockMenuNative(drawList, pMin, sz, col); + int ret = TypingSelectFindNextSingleCharMatchNative(req, itemsCount, getItemNameFunc, userData, navItemIdx); + return ret; } - [NativeName(NativeNameType.Func, "igRenderArrowDockMenu")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderArrowDockMenu([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "float")] float sz, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + /// /// To be documented. /// public static int TypingSelectFindNextSingleCharMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, int, ref byte> getItemNameFunc, void* userData, int navItemIdx) { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderArrowDockMenuNative((ImDrawList*)pdrawList, pMin, sz, col); - } + int ret = TypingSelectFindNextSingleCharMatchNative(req, itemsCount, getItemNameFunc, userData, navItemIdx); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderRectFilledRangeH")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderRectFilledRangeH")] - internal static extern void RenderRectFilledRangeHNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "x_start_norm")] [NativeName(NativeNameType.Type, "float")] float xStartNorm, [NativeName(NativeNameType.Param, "x_end_norm")] [NativeName(NativeNameType.Type, "float")] float xEndNorm, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding); + [LibraryImport(LibName, EntryPoint = "igTypingSelectFindBestLeadingMatch")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TypingSelectFindBestLeadingMatchNative(ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, byte*> getItemNameFunc, void* userData); - [NativeName(NativeNameType.Func, "igRenderRectFilledRangeH")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderRectFilledRangeH([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "x_start_norm")] [NativeName(NativeNameType.Type, "float")] float xStartNorm, [NativeName(NativeNameType.Param, "x_end_norm")] [NativeName(NativeNameType.Type, "float")] float xEndNorm, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + /// /// To be documented. /// public static int TypingSelectFindBestLeadingMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, byte*> getItemNameFunc, void* userData) { - RenderRectFilledRangeHNative(drawList, rect, col, xStartNorm, xEndNorm, rounding); + int ret = TypingSelectFindBestLeadingMatchNative(req, itemsCount, getItemNameFunc, userData); + return ret; } - [NativeName(NativeNameType.Func, "igRenderRectFilledRangeH")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderRectFilledRangeH([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rect, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "x_start_norm")] [NativeName(NativeNameType.Type, "float")] float xStartNorm, [NativeName(NativeNameType.Param, "x_end_norm")] [NativeName(NativeNameType.Type, "float")] float xEndNorm, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + /// /// To be documented. /// public static int TypingSelectFindBestLeadingMatch( ImGuiTypingSelectRequest* req, int itemsCount, delegate*, void*, ref byte> getItemNameFunc, void* userData) { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderRectFilledRangeHNative((ImDrawList*)pdrawList, rect, col, xStartNorm, xEndNorm, rounding); - } + int ret = TypingSelectFindBestLeadingMatchNative(req, itemsCount, getItemNameFunc, userData); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igRenderRectFilledWithHole")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igRenderRectFilledWithHole")] - internal static extern void RenderRectFilledWithHoleNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "outer")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect outer, [NativeName(NativeNameType.Param, "inner")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect inner, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding); + [LibraryImport(LibName, EntryPoint = "igSetWindowClipRectBeforeSetChannel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetWindowClipRectBeforeSetChannelNative(ImGuiWindow* window, ImRect clipRect); - [NativeName(NativeNameType.Func, "igRenderRectFilledWithHole")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderRectFilledWithHole([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "outer")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect outer, [NativeName(NativeNameType.Param, "inner")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect inner, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + /// /// To be documented. /// public static void SetWindowClipRectBeforeSetChannel( ImGuiWindow* window, ImRect clipRect) { - RenderRectFilledWithHoleNative(drawList, outer, inner, col, rounding); + SetWindowClipRectBeforeSetChannelNative(window, clipRect); } - [NativeName(NativeNameType.Func, "igRenderRectFilledWithHole")] - [return: NativeName(NativeNameType.Type, "void")] - public static void RenderRectFilledWithHole([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "outer")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect outer, [NativeName(NativeNameType.Param, "inner")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect inner, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void BeginColumnsNative(byte* strId, int count, int flags); + + /// /// To be documented. /// public static void BeginColumns( byte* strId, int count, int flags) { - fixed (ImDrawList* pdrawList = &drawList) - { - RenderRectFilledWithHoleNative((ImDrawList*)pdrawList, outer, inner, col, rounding); - } + BeginColumnsNative(strId, count, flags); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igCalcRoundingFlagsForRectInRect")] - [return: NativeName(NativeNameType.Type, "ImDrawFlags")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCalcRoundingFlagsForRectInRect")] - internal static extern ImDrawFlags CalcRoundingFlagsForRectInRectNative([NativeName(NativeNameType.Param, "r_in")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rIn, [NativeName(NativeNameType.Param, "r_outer")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rOuter, [NativeName(NativeNameType.Param, "threshold")] [NativeName(NativeNameType.Type, "float")] float threshold); + [LibraryImport(LibName, EntryPoint = "igEndColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void EndColumnsNative(); - [NativeName(NativeNameType.Func, "igCalcRoundingFlagsForRectInRect")] - [return: NativeName(NativeNameType.Type, "ImDrawFlags")] - public static ImDrawFlags CalcRoundingFlagsForRectInRect([NativeName(NativeNameType.Param, "r_in")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rIn, [NativeName(NativeNameType.Param, "r_outer")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rOuter, [NativeName(NativeNameType.Param, "threshold")] [NativeName(NativeNameType.Type, "float")] float threshold) + /// /// To be documented. /// public static void EndColumns() { - ImDrawFlags ret = CalcRoundingFlagsForRectInRectNative(rIn, rOuter, threshold); - return ret; + EndColumnsNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTextEx")] - internal static extern void TextExNative([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTextFlags")] ImGuiTextFlags flags); + [LibraryImport(LibName, EntryPoint = "igPushColumnClipRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushColumnClipRectNative(int columnIndex); - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTextFlags")] ImGuiTextFlags flags) + /// /// To be documented. /// public static void PushColumnClipRect( int columnIndex) { - TextExNative(text, textEnd, flags); + PushColumnClipRectNative(columnIndex); } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPushColumnsBackground")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PushColumnsBackgroundNative(); + + /// /// To be documented. /// public static void PushColumnsBackground() { - TextExNative(text, textEnd, (ImGuiTextFlags)(0)); + PushColumnsBackgroundNative(); } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igPopColumnsBackground")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PopColumnsBackgroundNative(); + + /// /// To be documented. /// public static void PopColumnsBackground() { - TextExNative(text, (byte*)(default), (ImGuiTextFlags)(0)); + PopColumnsBackgroundNative(); } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTextFlags")] ImGuiTextFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnsID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetColumnsIDNative(byte* strId, int count); + + /// /// To be documented. /// public static uint GetColumnsID( byte* strId, int count) { - TextExNative(text, (byte*)(default), flags); + uint ret = GetColumnsIDNative(strId, count); + return ret; } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTextFlags")] ImGuiTextFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindOrCreateColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiOldColumns* FindOrCreateColumnsNative(ImGuiWindow* window, uint id); + + /// /// To be documented. /// public static ImGuiOldColumns* FindOrCreateColumns( ImGuiWindow* window, uint id) { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, textEnd, flags); - } + ImGuiOldColumns* ret = FindOrCreateColumnsNative(window, id); + return ret; } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnOffsetFromNorm")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetColumnOffsetFromNormNative(ImGuiOldColumns* columns, float offsetNorm); + + /// /// To be documented. /// public static float GetColumnOffsetFromNorm( ImGuiOldColumns* columns, float offsetNorm) { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, textEnd, (ImGuiTextFlags)(0)); - } + float ret = GetColumnOffsetFromNormNative(columns, offsetNorm); + return ret; } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetColumnNormFromOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GetColumnNormFromOffsetNative(ImGuiOldColumns* columns, float offset); + + /// /// To be documented. /// public static float GetColumnNormFromOffset( ImGuiOldColumns* columns, float offset) { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, (byte*)(default), (ImGuiTextFlags)(0)); - } + float ret = GetColumnNormFromOffsetNative(columns, offset); + return ret; } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTextFlags")] ImGuiTextFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableOpenContextMenu")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableOpenContextMenuNative(int columnN); + + /// /// To be documented. /// public static void TableOpenContextMenu( int columnN) { - fixed (byte* ptext = &text) - { - TextExNative((byte*)ptext, (byte*)(default), flags); - } + TableOpenContextMenuNative(columnN); } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTextFlags")] ImGuiTextFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetColumnWidthNative(int columnN, float width); + + /// /// To be documented. /// public static void TableSetColumnWidth( int columnN, float width) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, textEnd, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + TableSetColumnWidthNative(columnN, width); } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnSortDirection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetColumnSortDirectionNative(int columnN, int sortDirection, byte appendToSortSpecs); + + /// /// To be documented. /// public static void TableSetColumnSortDirection( int columnN, int sortDirection, bool appendToSortSpecs) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, textEnd, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + TableSetColumnSortDirectionNative(columnN, sortDirection, appendToSortSpecs ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetHoveredColumn")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetHoveredColumnNative(); + + /// /// To be documented. /// public static int TableGetHoveredColumn() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, (byte*)(default), (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + int ret = TableGetHoveredColumnNative(); + return ret; } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTextFlags")] ImGuiTextFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetHoveredRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetHoveredRowNative(); + + /// /// To be documented. /// public static int TableGetHoveredRow() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(pStr0, (byte*)(default), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + int ret = TableGetHoveredRowNative(); + return ret; } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTextFlags")] ImGuiTextFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetHeaderRowHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float TableGetHeaderRowHeightNative(); + + /// /// To be documented. /// public static float TableGetHeaderRowHeight() { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative(text, (byte*)ptextEnd, flags); - } + float ret = TableGetHeaderRowHeightNative(); + return ret; } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetHeaderAngledMaxLabelWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float TableGetHeaderAngledMaxLabelWidthNative(); + + /// /// To be documented. /// public static float TableGetHeaderAngledMaxLabelWidth() { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative(text, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } + float ret = TableGetHeaderAngledMaxLabelWidthNative(); + return ret; } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTextFlags")] ImGuiTextFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTablePushBackgroundChannel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TablePushBackgroundChannelNative(); + + /// /// To be documented. /// public static void TablePushBackgroundChannel() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(text, pStr0, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + TablePushBackgroundChannelNative(); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTablePopBackgroundChannel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TablePopBackgroundChannelNative(); + + /// /// To be documented. /// public static void TablePopBackgroundChannel() + { + TablePopBackgroundChannelNative(); } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableAngledHeadersRowEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableAngledHeadersRowExNative(float angle, float labelWidth); + + /// /// To be documented. /// public static void TableAngledHeadersRowEx( float angle, float labelWidth) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (textEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - TextExNative(text, pStr0, (ImGuiTextFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + TableAngledHeadersRowExNative(angle, labelWidth); } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTextFlags")] ImGuiTextFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCurrentTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTable* GetCurrentTableNative(); + + /// /// To be documented. /// public static ImGuiTable* GetCurrentTable() { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, flags); - } - } + ImGuiTable* ret = GetCurrentTableNative(); + return ret; } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableFindByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTable* TableFindByIDNative(uint id); + + /// /// To be documented. /// public static ImGuiTable* TableFindByID( uint id) { - fixed (byte* ptext = &text) - { - fixed (byte* ptextEnd = &textEnd) - { - TextExNative((byte*)ptext, (byte*)ptextEnd, (ImGuiTextFlags)(0)); - } - } + ImGuiTable* ret = TableFindByIDNative(id); + return ret; } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTextFlags")] ImGuiTextFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTableEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTableExNative(byte* name, uint id, int columnsCount, int flags, Vector2 outerSize, float innerWidth); + + /// /// To be documented. /// public static bool BeginTableEx( byte* name, uint id, int columnsCount, int flags, Vector2 outerSize, float innerWidth) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - TextExNative(pStr0, pStr1, flags); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte ret = BeginTableExNative(name, id, columnsCount, flags, outerSize, innerWidth); + return ret != 0; } - [NativeName(NativeNameType.Func, "igTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TextEx([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableBeginInitMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableBeginInitMemoryNative(ImGuiTable* table, int columnsCount); + + /// /// To be documented. /// public static void TableBeginInitMemory( ImGuiTable* table, int columnsCount) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (textEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(textEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - TextExNative(pStr0, pStr1, (ImGuiTextFlags)(0)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + TableBeginInitMemoryNative(table, columnsCount); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igButtonEx")] - internal static extern byte ButtonExNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags); + [LibraryImport(LibName, EntryPoint = "igTableBeginApplyRequests")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableBeginApplyRequestsNative(ImGuiTable* table); - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// /// To be documented. /// public static void TableBeginApplyRequests( ImGuiTable* table) { - byte ret = ButtonExNative(label, sizeArg, flags); - return ret != 0; + TableBeginApplyRequestsNative(table); } - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetupDrawChannels")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetupDrawChannelsNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableSetupDrawChannels( ImGuiTable* table) { - byte ret = ButtonExNative(label, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; + TableSetupDrawChannelsNative(table); } - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableUpdateLayout")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableUpdateLayoutNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableUpdateLayout( ImGuiTable* table) { - byte ret = ButtonExNative(label, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); - return ret != 0; + TableUpdateLayoutNative(table); } - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableUpdateBorders")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableUpdateBordersNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableUpdateBorders( ImGuiTable* table) { - byte ret = ButtonExNative(label, (Vector2)(new Vector2(0,0)), flags); - return ret != 0; + TableUpdateBordersNative(table); } - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableUpdateColumnsWeightFromWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableUpdateColumnsWeightFromWidthNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableUpdateColumnsWeightFromWidth( ImGuiTable* table) { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, sizeArg, flags); - return ret != 0; - } + TableUpdateColumnsWeightFromWidthNative(table); } - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableDrawBorders")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableDrawBordersNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableDrawBorders( ImGuiTable* table) { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; - } + TableDrawBordersNative(table); } - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableDrawContextMenu")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableDrawContextMenuNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableDrawContextMenu( ImGuiTable* table) { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); - return ret != 0; - } + TableDrawContextMenuNative(table); } - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableBeginContextMenuPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TableBeginContextMenuPopupNative(ImGuiTable* table); + + /// /// To be documented. /// public static bool TableBeginContextMenuPopup( ImGuiTable* table) { - fixed (byte* plabel = &label) - { - byte ret = ButtonExNative((byte*)plabel, (Vector2)(new Vector2(0,0)), flags); - return ret != 0; - } + byte ret = TableBeginContextMenuPopupNative(table); + return ret != 0; } - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableMergeDrawChannels")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableMergeDrawChannelsNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableMergeDrawChannels( ImGuiTable* table) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonExNative(pStr0, sizeArg, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + TableMergeDrawChannelsNative(table); } - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetInstanceData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableInstanceData* TableGetInstanceDataNative(ImGuiTable* table, int instanceNo); + + /// /// To be documented. /// public static ImGuiTableInstanceData* TableGetInstanceData( ImGuiTable* table, int instanceNo) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonExNative(pStr0, sizeArg, (ImGuiButtonFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + ImGuiTableInstanceData* ret = TableGetInstanceDataNative(table, instanceNo); + return ret; } - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetInstanceID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint TableGetInstanceIDNative(ImGuiTable* table, int instanceNo); + + /// /// To be documented. /// public static uint TableGetInstanceID( ImGuiTable* table, int instanceNo) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonExNative(pStr0, (Vector2)(new Vector2(0,0)), (ImGuiButtonFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + uint ret = TableGetInstanceIDNative(table, instanceNo); + return ret; } - [NativeName(NativeNameType.Func, "igButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSortSpecsSanitize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSortSpecsSanitizeNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableSortSpecsSanitize( ImGuiTable* table) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ButtonExNative(pStr0, (Vector2)(new Vector2(0,0)), flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + TableSortSpecsSanitizeNative(table); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igArrowButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igArrowButtonEx")] - internal static extern byte ArrowButtonExNative([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags); + [LibraryImport(LibName, EntryPoint = "igTableSortSpecsBuild")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSortSpecsBuildNative(ImGuiTable* table); - [NativeName(NativeNameType.Func, "igArrowButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ArrowButtonEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// /// To be documented. /// public static void TableSortSpecsBuild( ImGuiTable* table) { - byte ret = ArrowButtonExNative(strId, dir, sizeArg, flags); - return ret != 0; + TableSortSpecsBuildNative(table); } - [NativeName(NativeNameType.Func, "igArrowButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ArrowButtonEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] byte* strId, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 sizeArg) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnNextSortDirection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TableGetColumnNextSortDirectionNative(ImGuiTableColumn* column); + + /// /// To be documented. /// public static int TableGetColumnNextSortDirection( ImGuiTableColumn* column) { - byte ret = ArrowButtonExNative(strId, dir, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; + int ret = TableGetColumnNextSortDirectionNative(column); + return ret; } - [NativeName(NativeNameType.Func, "igArrowButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ArrowButtonEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableFixColumnSortDirection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableFixColumnSortDirectionNative(ImGuiTable* table, ImGuiTableColumn* column); + + /// /// To be documented. /// public static void TableFixColumnSortDirection( ImGuiTable* table, ImGuiTableColumn* column) { - fixed (byte* pstrId = &strId) - { - byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, flags); - return ret != 0; - } + TableFixColumnSortDirectionNative(table, column); } - [NativeName(NativeNameType.Func, "igArrowButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ArrowButtonEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] ref byte strId, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 sizeArg) + /// /// To be documented. /// public static void TableFixColumnSortDirection( ImGuiTable* table, ref ImGuiTableColumn column) { - fixed (byte* pstrId = &strId) + fixed (ImGuiTableColumn* pcolumn = &column) { - byte ret = ArrowButtonExNative((byte*)pstrId, dir, sizeArg, (ImGuiButtonFlags)(0)); - return ret != 0; + TableFixColumnSortDirectionNative(table, (ImGuiTableColumn*)pcolumn); } } - [NativeName(NativeNameType.Func, "igArrowButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ArrowButtonEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnWidthAuto")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float TableGetColumnWidthAutoNative(ImGuiTable* table, ImGuiTableColumn* column); + + /// /// To be documented. /// public static float TableGetColumnWidthAuto( ImGuiTable* table, ImGuiTableColumn* column) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ArrowButtonExNative(pStr0, dir, sizeArg, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + float ret = TableGetColumnWidthAutoNative(table, column); + return ret; } - [NativeName(NativeNameType.Func, "igArrowButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ArrowButtonEx([NativeName(NativeNameType.Param, "str_id")] [NativeName(NativeNameType.Type, "const char*")] string strId, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 sizeArg) + /// /// To be documented. /// public static float TableGetColumnWidthAuto( ImGuiTable* table, ref ImGuiTableColumn column) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strId != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strId); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strId, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = ArrowButtonExNative(pStr0, dir, sizeArg, (ImGuiButtonFlags)(0)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImGuiTableColumn* pcolumn = &column) { - Utils.Free(pStr0); + float ret = TableGetColumnWidthAutoNative(table, (ImGuiTableColumn*)pcolumn); + return ret; } - return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImageButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImageButtonEx")] - internal static extern byte ImageButtonExNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID textureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags); + [LibraryImport(LibName, EntryPoint = "igTableBeginRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableBeginRowNative(ImGuiTable* table); - [NativeName(NativeNameType.Func, "igImageButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButtonEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID textureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// /// To be documented. /// public static void TableBeginRow( ImGuiTable* table) { - byte ret = ImageButtonExNative(id, textureId, size, uv0, uv1, bgCol, tintCol, flags); - return ret != 0; + TableBeginRowNative(table); } - [NativeName(NativeNameType.Func, "igImageButtonEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ImageButtonEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID textureId, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 size, [NativeName(NativeNameType.Param, "uv0")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv0, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 bgCol, [NativeName(NativeNameType.Param, "tint_col")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 tintCol) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableEndRow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableEndRowNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableEndRow( ImGuiTable* table) { - byte ret = ImageButtonExNative(id, textureId, size, uv0, uv1, bgCol, tintCol, (ImGuiButtonFlags)(0)); - return ret != 0; + TableEndRowNative(table); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSeparatorEx")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSeparatorEx")] - internal static extern void SeparatorExNative([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSeparatorFlags")] ImGuiSeparatorFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness); + [LibraryImport(LibName, EntryPoint = "igTableBeginCell")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableBeginCellNative(ImGuiTable* table, int columnN); - [NativeName(NativeNameType.Func, "igSeparatorEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorEx([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSeparatorFlags")] ImGuiSeparatorFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + /// /// To be documented. /// public static void TableBeginCell( ImGuiTable* table, int columnN) { - SeparatorExNative(flags, thickness); + TableBeginCellNative(table, columnN); } - [NativeName(NativeNameType.Func, "igSeparatorEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorEx([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSeparatorFlags")] ImGuiSeparatorFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableEndCell")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableEndCellNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableEndCell( ImGuiTable* table) { - SeparatorExNative(flags, (float)(1.0f)); + TableEndCellNative(table); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igSeparatorTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSeparatorTextEx")] - internal static extern void SeparatorTextExNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] byte* labelEnd, [NativeName(NativeNameType.Param, "extra_width")] [NativeName(NativeNameType.Type, "float")] float extraWidth); + [LibraryImport(LibName, EntryPoint = "igTableGetCellBgRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableGetCellBgRectNative(ImRect* pOut, ImGuiTable* table, int columnN); - [NativeName(NativeNameType.Func, "igSeparatorTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorTextEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] byte* labelEnd, [NativeName(NativeNameType.Param, "extra_width")] [NativeName(NativeNameType.Type, "float")] float extraWidth) + /// /// To be documented. /// public static void TableGetCellBgRect( ImRect* pOut, ImGuiTable* table, int columnN) { - SeparatorTextExNative(id, label, labelEnd, extraWidth); + TableGetCellBgRectNative(pOut, table, columnN); } - [NativeName(NativeNameType.Func, "igSeparatorTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorTextEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] byte* labelEnd, [NativeName(NativeNameType.Param, "extra_width")] [NativeName(NativeNameType.Type, "float")] float extraWidth) + /// /// To be documented. /// public static void TableGetCellBgRect( ImRect* pOut, ref ImGuiTable table, int columnN) { - fixed (byte* plabel = &label) + fixed (ImGuiTable* ptable = &table) { - SeparatorTextExNative(id, (byte*)plabel, labelEnd, extraWidth); + TableGetCellBgRectNative(pOut, (ImGuiTable*)ptable, columnN); } } - [NativeName(NativeNameType.Func, "igSeparatorTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorTextEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] byte* labelEnd, [NativeName(NativeNameType.Param, "extra_width")] [NativeName(NativeNameType.Type, "float")] float extraWidth) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnName_TablePtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* TableGetColumnNameTablePtrNative(ImGuiTable* table, int columnN); + + /// /// To be documented. /// public static byte* TableGetColumnNameTablePtr( ImGuiTable* table, int columnN) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SeparatorTextExNative(id, pStr0, labelEnd, extraWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + byte* ret = TableGetColumnNameTablePtrNative(table, columnN); + return ret; } - [NativeName(NativeNameType.Func, "igSeparatorTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorTextEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte labelEnd, [NativeName(NativeNameType.Param, "extra_width")] [NativeName(NativeNameType.Type, "float")] float extraWidth) + /// /// To be documented. /// public static string TableGetColumnNameTablePtrS( ImGuiTable* table, int columnN) { - fixed (byte* plabelEnd = &labelEnd) - { - SeparatorTextExNative(id, label, (byte*)plabelEnd, extraWidth); - } + string ret = Utils.DecodeStringUTF8(TableGetColumnNameTablePtrNative(table, columnN)); + return ret; } - [NativeName(NativeNameType.Func, "igSeparatorTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorTextEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] string labelEnd, [NativeName(NativeNameType.Param, "extra_width")] [NativeName(NativeNameType.Type, "float")] float extraWidth) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetColumnResizeID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint TableGetColumnResizeIDNative(ImGuiTable* table, int columnN, int instanceNo); + + /// /// To be documented. /// public static uint TableGetColumnResizeID( ImGuiTable* table, int columnN, int instanceNo) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (labelEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(labelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - SeparatorTextExNative(id, label, pStr0, extraWidth); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + uint ret = TableGetColumnResizeIDNative(table, columnN, instanceNo); + return ret; } - [NativeName(NativeNameType.Func, "igSeparatorTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorTextEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte labelEnd, [NativeName(NativeNameType.Param, "extra_width")] [NativeName(NativeNameType.Type, "float")] float extraWidth) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGetMaxColumnWidth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float TableGetMaxColumnWidthNative(ImGuiTable* table, int columnN); + + /// /// To be documented. /// public static float TableGetMaxColumnWidth( ImGuiTable* table, int columnN) { - fixed (byte* plabel = &label) - { - fixed (byte* plabelEnd = &labelEnd) - { - SeparatorTextExNative(id, (byte*)plabel, (byte*)plabelEnd, extraWidth); - } - } + float ret = TableGetMaxColumnWidthNative(table, columnN); + return ret; } - [NativeName(NativeNameType.Func, "igSeparatorTextEx")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SeparatorTextEx([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] string labelEnd, [NativeName(NativeNameType.Param, "extra_width")] [NativeName(NativeNameType.Type, "float")] float extraWidth) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnWidthAutoSingle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetColumnWidthAutoSingleNative(ImGuiTable* table, int columnN); + + /// /// To be documented. /// public static void TableSetColumnWidthAutoSingle( ImGuiTable* table, int columnN) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (labelEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(labelEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(labelEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - SeparatorTextExNative(id, pStr0, pStr1, extraWidth); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + TableSetColumnWidthAutoSingleNative(table, columnN); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSetColumnWidthAutoAll")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSetColumnWidthAutoAllNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableSetColumnWidthAutoAll( ImGuiTable* table) + { + TableSetColumnWidthAutoAllNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableRemove")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableRemoveNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableRemove( ImGuiTable* table) + { + TableRemoveNative(table); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGcCompactTransientBuffers_TablePtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableGcCompactTransientBuffersTablePtrNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableGcCompactTransientBuffersTablePtr( ImGuiTable* table) + { + TableGcCompactTransientBuffersTablePtrNative(table); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igCheckboxFlags_S64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCheckboxFlags_S64Ptr")] - internal static extern byte CheckboxFlagsNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImS64*")] long* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImS64")] long flagsValue); + [LibraryImport(LibName, EntryPoint = "igTableGcCompactTransientBuffers_TableTempDataPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableGcCompactTransientBuffersTableTempDataPtrNative(ImGuiTableTempData* table); - [NativeName(NativeNameType.Func, "igCheckboxFlags_S64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImS64*")] long* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImS64")] long flagsValue) + /// /// To be documented. /// public static void TableGcCompactTransientBuffersTableTempDataPtr( ImGuiTableTempData* table) { - byte ret = CheckboxFlagsNative(label, flags, flagsValue); - return ret != 0; + TableGcCompactTransientBuffersTableTempDataPtrNative(table); } - [NativeName(NativeNameType.Func, "igCheckboxFlags_S64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImS64*")] long* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImS64")] long flagsValue) - { - fixed (byte* plabel = &label) - { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); - return ret != 0; - } - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableGcCompactSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableGcCompactSettingsNative(); - [NativeName(NativeNameType.Func, "igCheckboxFlags_S64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImS64*")] long* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImS64")] long flagsValue) + /// /// To be documented. /// public static void TableGcCompactSettings() { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + TableGcCompactSettingsNative(); } - [NativeName(NativeNameType.Func, "igCheckboxFlags_S64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImS64*")] ref long flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImS64")] long flagsValue) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableLoadSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableLoadSettingsNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableLoadSettings( ImGuiTable* table) { - fixed (long* pflags = &flags) - { - byte ret = CheckboxFlagsNative(label, (long*)pflags, flagsValue); - return ret != 0; - } + TableLoadSettingsNative(table); } - [NativeName(NativeNameType.Func, "igCheckboxFlags_S64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImS64*")] ref long flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImS64")] long flagsValue) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSaveSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSaveSettingsNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableSaveSettings( ImGuiTable* table) { - fixed (byte* plabel = &label) - { - fixed (long* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (long*)pflags, flagsValue); - return ret != 0; - } - } + TableSaveSettingsNative(table); } - [NativeName(NativeNameType.Func, "igCheckboxFlags_S64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImS64*")] ref long flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImS64")] long flagsValue) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableResetSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableResetSettingsNative(ImGuiTable* table); + + /// /// To be documented. /// public static void TableResetSettings( ImGuiTable* table) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (long* pflags = &flags) - { - byte ret = CheckboxFlagsNative(pStr0, (long*)pflags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + TableResetSettingsNative(table); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igCheckboxFlags_U64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCheckboxFlags_U64Ptr")] - internal static extern byte CheckboxFlagsNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImU64*")] ulong* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImU64")] ulong flagsValue); + [LibraryImport(LibName, EntryPoint = "igTableGetBoundSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSettings* TableGetBoundSettingsNative(ImGuiTable* table); - [NativeName(NativeNameType.Func, "igCheckboxFlags_U64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImU64*")] ulong* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImU64")] ulong flagsValue) + /// /// To be documented. /// public static ImGuiTableSettings* TableGetBoundSettings( ImGuiTable* table) { - byte ret = CheckboxFlagsNative(label, flags, flagsValue); - return ret != 0; + ImGuiTableSettings* ret = TableGetBoundSettingsNative(table); + return ret; } - [NativeName(NativeNameType.Func, "igCheckboxFlags_U64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImU64*")] ulong* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImU64")] ulong flagsValue) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSettingsAddSettingsHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TableSettingsAddSettingsHandlerNative(); + + /// /// To be documented. /// public static void TableSettingsAddSettingsHandler() { - fixed (byte* plabel = &label) - { - byte ret = CheckboxFlagsNative((byte*)plabel, flags, flagsValue); - return ret != 0; - } + TableSettingsAddSettingsHandlerNative(); } - [NativeName(NativeNameType.Func, "igCheckboxFlags_U64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImU64*")] ulong* flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImU64")] ulong flagsValue) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSettingsCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSettings* TableSettingsCreateNative(uint id, int columnsCount); + + /// /// To be documented. /// public static ImGuiTableSettings* TableSettingsCreate( uint id, int columnsCount) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = CheckboxFlagsNative(pStr0, flags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; + ImGuiTableSettings* ret = TableSettingsCreateNative(id, columnsCount); + return ret; } - [NativeName(NativeNameType.Func, "igCheckboxFlags_U64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImU64*")] ref ulong flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImU64")] ulong flagsValue) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTableSettingsFindByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTableSettings* TableSettingsFindByIDNative(uint id); + + /// /// To be documented. /// public static ImGuiTableSettings* TableSettingsFindByID( uint id) { - fixed (ulong* pflags = &flags) - { - byte ret = CheckboxFlagsNative(label, (ulong*)pflags, flagsValue); - return ret != 0; - } + ImGuiTableSettings* ret = TableSettingsFindByIDNative(id); + return ret; } - [NativeName(NativeNameType.Func, "igCheckboxFlags_U64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImU64*")] ref ulong flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImU64")] ulong flagsValue) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetCurrentTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabBar* GetCurrentTabBarNative(); + + /// /// To be documented. /// public static ImGuiTabBar* GetCurrentTabBar() { - fixed (byte* plabel = &label) - { - fixed (ulong* pflags = &flags) - { - byte ret = CheckboxFlagsNative((byte*)plabel, (ulong*)pflags, flagsValue); - return ret != 0; - } - } + ImGuiTabBar* ret = GetCurrentTabBarNative(); + return ret; } - [NativeName(NativeNameType.Func, "igCheckboxFlags_U64Ptr")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CheckboxFlags([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImU64*")] ref ulong flags, [NativeName(NativeNameType.Param, "flags_value")] [NativeName(NativeNameType.Type, "ImU64")] ulong flagsValue) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igBeginTabBarEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte BeginTabBarExNative(ImGuiTabBar* tabBar, ImRect bb, int flags); + + /// /// To be documented. /// public static bool BeginTabBarEx( ImGuiTabBar* tabBar, ImRect bb, int flags) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (ulong* pflags = &flags) - { - byte ret = CheckboxFlagsNative(pStr0, (ulong*)pflags, flagsValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } + byte ret = BeginTabBarExNative(tabBar, bb, flags); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igCloseButton")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCloseButton")] - internal static extern byte CloseButtonNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos); + [LibraryImport(LibName, EntryPoint = "igTabBarFindTabByID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabItem* TabBarFindTabByIDNative(ImGuiTabBar* tabBar, uint tabId); - [NativeName(NativeNameType.Func, "igCloseButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CloseButton([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) + /// /// To be documented. /// public static ImGuiTabItem* TabBarFindTabByID( ImGuiTabBar* tabBar, uint tabId) { - byte ret = CloseButtonNative(id, pos); - return ret != 0; + ImGuiTabItem* ret = TabBarFindTabByIDNative(tabBar, tabId); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igCollapseButton")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igCollapseButton")] - internal static extern byte CollapseButtonNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "dock_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* dockNode); + [LibraryImport(LibName, EntryPoint = "igTabBarFindTabByOrder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabItem* TabBarFindTabByOrderNative(ImGuiTabBar* tabBar, int order); - [NativeName(NativeNameType.Func, "igCollapseButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapseButton([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "dock_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* dockNode) + /// /// To be documented. /// public static ImGuiTabItem* TabBarFindTabByOrder( ImGuiTabBar* tabBar, int order) { - byte ret = CollapseButtonNative(id, pos, dockNode); - return ret != 0; + ImGuiTabItem* ret = TabBarFindTabByOrderNative(tabBar, order); + return ret; } - [NativeName(NativeNameType.Func, "igCollapseButton")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool CollapseButton([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "dock_node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode dockNode) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarFindMostRecentlySelectedTabForActiveWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindowNative(ImGuiTabBar* tabBar); + + /// /// To be documented. /// public static ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindow( ImGuiTabBar* tabBar) { - fixed (ImGuiDockNode* pdockNode = &dockNode) - { - byte ret = CollapseButtonNative(id, pos, (ImGuiDockNode*)pdockNode); - return ret != 0; - } + ImGuiTabItem* ret = TabBarFindMostRecentlySelectedTabForActiveWindowNative(tabBar); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igScrollbar")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igScrollbar")] - internal static extern void ScrollbarNative([NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis); + [LibraryImport(LibName, EntryPoint = "igTabBarGetCurrentTab")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiTabItem* TabBarGetCurrentTabNative(ImGuiTabBar* tabBar); - [NativeName(NativeNameType.Func, "igScrollbar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void Scrollbar([NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis) + /// /// To be documented. /// public static ImGuiTabItem* TabBarGetCurrentTab( ImGuiTabBar* tabBar) { - ScrollbarNative(axis); + ImGuiTabItem* ret = TabBarGetCurrentTabNative(tabBar); + return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igScrollbarEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igScrollbarEx")] - internal static extern byte ScrollbarExNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "p_scroll_v")] [NativeName(NativeNameType.Type, "ImS64*")] long* pScrollV, [NativeName(NativeNameType.Param, "avail_v")] [NativeName(NativeNameType.Type, "ImS64")] long availV, [NativeName(NativeNameType.Param, "contents_v")] [NativeName(NativeNameType.Type, "ImS64")] long contentsV, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags); + [LibraryImport(LibName, EntryPoint = "igTabBarGetTabOrder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int TabBarGetTabOrderNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab); - [NativeName(NativeNameType.Func, "igScrollbarEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ScrollbarEx([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "p_scroll_v")] [NativeName(NativeNameType.Type, "ImS64*")] long* pScrollV, [NativeName(NativeNameType.Param, "avail_v")] [NativeName(NativeNameType.Type, "ImS64")] long availV, [NativeName(NativeNameType.Param, "contents_v")] [NativeName(NativeNameType.Type, "ImS64")] long contentsV, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + /// /// To be documented. /// public static int TabBarGetTabOrder( ImGuiTabBar* tabBar, ImGuiTabItem* tab) { - byte ret = ScrollbarExNative(bb, id, axis, pScrollV, availV, contentsV, flags); - return ret != 0; + int ret = TabBarGetTabOrderNative(tabBar, tab); + return ret; } - [NativeName(NativeNameType.Func, "igScrollbarEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ScrollbarEx([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "p_scroll_v")] [NativeName(NativeNameType.Type, "ImS64*")] ref long pScrollV, [NativeName(NativeNameType.Param, "avail_v")] [NativeName(NativeNameType.Type, "ImS64")] long availV, [NativeName(NativeNameType.Param, "contents_v")] [NativeName(NativeNameType.Type, "ImS64")] long contentsV, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + /// /// To be documented. /// public static int TabBarGetTabOrder( ImGuiTabBar* tabBar, ref ImGuiTabItem tab) { - fixed (long* ppScrollV = &pScrollV) + fixed (ImGuiTabItem* ptab = &tab) { - byte ret = ScrollbarExNative(bb, id, axis, (long*)ppScrollV, availV, contentsV, flags); - return ret != 0; + int ret = TabBarGetTabOrderNative(tabBar, (ImGuiTabItem*)ptab); + return ret; } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowScrollbarRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowScrollbarRect")] - internal static extern void GetWindowScrollbarRectNative([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis); + [LibraryImport(LibName, EntryPoint = "igTabBarGetTabName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* TabBarGetTabNameNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab); - [NativeName(NativeNameType.Func, "igGetWindowScrollbarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowScrollbarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis) + /// /// To be documented. /// public static byte* TabBarGetTabName( ImGuiTabBar* tabBar, ImGuiTabItem* tab) { - GetWindowScrollbarRectNative(pOut, window, axis); + byte* ret = TabBarGetTabNameNative(tabBar, tab); + return ret; } - [NativeName(NativeNameType.Func, "igGetWindowScrollbarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowScrollbarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis) + /// /// To be documented. /// public static string TabBarGetTabNameS( ImGuiTabBar* tabBar, ImGuiTabItem* tab) { - fixed (ImRect* ppOut = &pOut) - { - GetWindowScrollbarRectNative((ImRect*)ppOut, window, axis); - } + string ret = Utils.DecodeStringUTF8(TabBarGetTabNameNative(tabBar, tab)); + return ret; } - [NativeName(NativeNameType.Func, "igGetWindowScrollbarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowScrollbarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis) + /// /// To be documented. /// public static byte* TabBarGetTabName( ImGuiTabBar* tabBar, ref ImGuiTabItem tab) { - fixed (ImGuiWindow* pwindow = &window) + fixed (ImGuiTabItem* ptab = &tab) { - GetWindowScrollbarRectNative(pOut, (ImGuiWindow*)pwindow, axis); + byte* ret = TabBarGetTabNameNative(tabBar, (ImGuiTabItem*)ptab); + return ret; } } - [NativeName(NativeNameType.Func, "igGetWindowScrollbarRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GetWindowScrollbarRect([NativeName(NativeNameType.Param, "pOut")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect pOut, [NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis) + /// /// To be documented. /// public static string TabBarGetTabNameS( ImGuiTabBar* tabBar, ref ImGuiTabItem tab) { - fixed (ImRect* ppOut = &pOut) + fixed (ImGuiTabItem* ptab = &tab) { - fixed (ImGuiWindow* pwindow = &window) - { - GetWindowScrollbarRectNative((ImRect*)ppOut, (ImGuiWindow*)pwindow, axis); - } + string ret = Utils.DecodeStringUTF8(TabBarGetTabNameNative(tabBar, (ImGuiTabItem*)ptab)); + return ret; } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowScrollbarID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowScrollbarID")] - internal static extern int GetWindowScrollbarIDNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis); + [LibraryImport(LibName, EntryPoint = "igTabBarAddTab")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarAddTabNative(ImGuiTabBar* tabBar, int tabFlags, ImGuiWindow* window); - [NativeName(NativeNameType.Func, "igGetWindowScrollbarID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetWindowScrollbarID([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis) + /// /// To be documented. /// public static void TabBarAddTab( ImGuiTabBar* tabBar, int tabFlags, ImGuiWindow* window) { - int ret = GetWindowScrollbarIDNative(window, axis); - return ret; + TabBarAddTabNative(tabBar, tabFlags, window); } - [NativeName(NativeNameType.Func, "igGetWindowScrollbarID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetWindowScrollbarID([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis) + /// /// To be documented. /// public static void TabBarAddTab( ImGuiTabBar* tabBar, int tabFlags, ref ImGuiWindow window) { fixed (ImGuiWindow* pwindow = &window) { - int ret = GetWindowScrollbarIDNative((ImGuiWindow*)pwindow, axis); - return ret; + TabBarAddTabNative(tabBar, tabFlags, (ImGuiWindow*)pwindow); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowResizeCornerID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowResizeCornerID")] - internal static extern int GetWindowResizeCornerIDNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n); - - /// /// 0..3: corners /// [NativeName(NativeNameType.Func, "igGetWindowResizeCornerID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetWindowResizeCornerID([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - int ret = GetWindowResizeCornerIDNative(window, n); - return ret; - } + [LibraryImport(LibName, EntryPoint = "igTabBarRemoveTab")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarRemoveTabNative(ImGuiTabBar* tabBar, uint tabId); - /// /// 0..3: corners /// [NativeName(NativeNameType.Func, "igGetWindowResizeCornerID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetWindowResizeCornerID([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + /// /// To be documented. /// public static void TabBarRemoveTab( ImGuiTabBar* tabBar, uint tabId) { - fixed (ImGuiWindow* pwindow = &window) - { - int ret = GetWindowResizeCornerIDNative((ImGuiWindow*)pwindow, n); - return ret; - } + TabBarRemoveTabNative(tabBar, tabId); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetWindowResizeBorderID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetWindowResizeBorderID")] - internal static extern int GetWindowResizeBorderIDNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir); + [LibraryImport(LibName, EntryPoint = "igTabBarCloseTab")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarCloseTabNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab); - [NativeName(NativeNameType.Func, "igGetWindowResizeBorderID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetWindowResizeBorderID([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir) + /// /// To be documented. /// public static void TabBarCloseTab( ImGuiTabBar* tabBar, ImGuiTabItem* tab) { - int ret = GetWindowResizeBorderIDNative(window, dir); - return ret; + TabBarCloseTabNative(tabBar, tab); } - [NativeName(NativeNameType.Func, "igGetWindowResizeBorderID")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public static int GetWindowResizeBorderID([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "dir")] [NativeName(NativeNameType.Type, "ImGuiDir")] ImGuiDir dir) + /// /// To be documented. /// public static void TabBarCloseTab( ImGuiTabBar* tabBar, ref ImGuiTabItem tab) { - fixed (ImGuiWindow* pwindow = &window) + fixed (ImGuiTabItem* ptab = &tab) { - int ret = GetWindowResizeBorderIDNative((ImGuiWindow*)pwindow, dir); - return ret; + TabBarCloseTabNative(tabBar, (ImGuiTabItem*)ptab); } } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igButtonBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igButtonBehavior")] - internal static extern byte ButtonBehaviorNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "out_hovered")] [NativeName(NativeNameType.Type, "bool*")] byte* outHovered, [NativeName(NativeNameType.Param, "out_held")] [NativeName(NativeNameType.Type, "bool*")] byte* outHeld, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags); - - [NativeName(NativeNameType.Func, "igButtonBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "out_hovered")] [NativeName(NativeNameType.Type, "bool*")] byte* outHovered, [NativeName(NativeNameType.Param, "out_held")] [NativeName(NativeNameType.Type, "bool*")] byte* outHeld, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) - { - byte ret = ButtonBehaviorNative(bb, id, outHovered, outHeld, flags); - return ret != 0; - } + [LibraryImport(LibName, EntryPoint = "igTabBarQueueFocus")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarQueueFocusNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab); - [NativeName(NativeNameType.Func, "igButtonBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "out_hovered")] [NativeName(NativeNameType.Type, "bool*")] byte* outHovered, [NativeName(NativeNameType.Param, "out_held")] [NativeName(NativeNameType.Type, "bool*")] byte* outHeld) + /// /// To be documented. /// public static void TabBarQueueFocus( ImGuiTabBar* tabBar, ImGuiTabItem* tab) { - byte ret = ButtonBehaviorNative(bb, id, outHovered, outHeld, (ImGuiButtonFlags)(0)); - return ret != 0; + TabBarQueueFocusNative(tabBar, tab); } - [NativeName(NativeNameType.Func, "igButtonBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "out_hovered")] [NativeName(NativeNameType.Type, "bool*")] ref byte outHovered, [NativeName(NativeNameType.Param, "out_held")] [NativeName(NativeNameType.Type, "bool*")] byte* outHeld, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// /// To be documented. /// public static void TabBarQueueFocus( ImGuiTabBar* tabBar, ref ImGuiTabItem tab) { - fixed (byte* poutHovered = &outHovered) + fixed (ImGuiTabItem* ptab = &tab) { - byte ret = ButtonBehaviorNative(bb, id, (byte*)poutHovered, outHeld, flags); - return ret != 0; + TabBarQueueFocusNative(tabBar, (ImGuiTabItem*)ptab); } } - [NativeName(NativeNameType.Func, "igButtonBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "out_hovered")] [NativeName(NativeNameType.Type, "bool*")] ref byte outHovered, [NativeName(NativeNameType.Param, "out_held")] [NativeName(NativeNameType.Type, "bool*")] byte* outHeld) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarQueueReorder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarQueueReorderNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, int offset); + + /// /// To be documented. /// public static void TabBarQueueReorder( ImGuiTabBar* tabBar, ImGuiTabItem* tab, int offset) { - fixed (byte* poutHovered = &outHovered) - { - byte ret = ButtonBehaviorNative(bb, id, (byte*)poutHovered, outHeld, (ImGuiButtonFlags)(0)); - return ret != 0; - } + TabBarQueueReorderNative(tabBar, tab, offset); } - [NativeName(NativeNameType.Func, "igButtonBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "out_hovered")] [NativeName(NativeNameType.Type, "bool*")] byte* outHovered, [NativeName(NativeNameType.Param, "out_held")] [NativeName(NativeNameType.Type, "bool*")] ref byte outHeld, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// /// To be documented. /// public static void TabBarQueueReorder( ImGuiTabBar* tabBar, ref ImGuiTabItem tab, int offset) { - fixed (byte* poutHeld = &outHeld) + fixed (ImGuiTabItem* ptab = &tab) { - byte ret = ButtonBehaviorNative(bb, id, outHovered, (byte*)poutHeld, flags); - return ret != 0; + TabBarQueueReorderNative(tabBar, (ImGuiTabItem*)ptab, offset); } } - [NativeName(NativeNameType.Func, "igButtonBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "out_hovered")] [NativeName(NativeNameType.Type, "bool*")] byte* outHovered, [NativeName(NativeNameType.Param, "out_held")] [NativeName(NativeNameType.Type, "bool*")] ref byte outHeld) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarQueueReorderFromMousePos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabBarQueueReorderFromMousePosNative(ImGuiTabBar* tabBar, ImGuiTabItem* tab, Vector2 mousePos); + + /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos( ImGuiTabBar* tabBar, ImGuiTabItem* tab, Vector2 mousePos) { - fixed (byte* poutHeld = &outHeld) - { - byte ret = ButtonBehaviorNative(bb, id, outHovered, (byte*)poutHeld, (ImGuiButtonFlags)(0)); - return ret != 0; - } + TabBarQueueReorderFromMousePosNative(tabBar, tab, mousePos); } - [NativeName(NativeNameType.Func, "igButtonBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "out_hovered")] [NativeName(NativeNameType.Type, "bool*")] ref byte outHovered, [NativeName(NativeNameType.Param, "out_held")] [NativeName(NativeNameType.Type, "bool*")] ref byte outHeld, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiButtonFlags")] ImGuiButtonFlags flags) + /// /// To be documented. /// public static void TabBarQueueReorderFromMousePos( ImGuiTabBar* tabBar, ref ImGuiTabItem tab, Vector2 mousePos) { - fixed (byte* poutHovered = &outHovered) + fixed (ImGuiTabItem* ptab = &tab) { - fixed (byte* poutHeld = &outHeld) - { - byte ret = ButtonBehaviorNative(bb, id, (byte*)poutHovered, (byte*)poutHeld, flags); - return ret != 0; - } + TabBarQueueReorderFromMousePosNative(tabBar, (ImGuiTabItem*)ptab, mousePos); } } - [NativeName(NativeNameType.Func, "igButtonBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool ButtonBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "out_hovered")] [NativeName(NativeNameType.Type, "bool*")] ref byte outHovered, [NativeName(NativeNameType.Param, "out_held")] [NativeName(NativeNameType.Type, "bool*")] ref byte outHeld) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabBarProcessReorder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TabBarProcessReorderNative(ImGuiTabBar* tabBar); + + /// /// To be documented. /// public static bool TabBarProcessReorder( ImGuiTabBar* tabBar) { - fixed (byte* poutHovered = &outHovered) - { - fixed (byte* poutHeld = &outHeld) - { - byte ret = ButtonBehaviorNative(bb, id, (byte*)poutHovered, (byte*)poutHeld, (ImGuiButtonFlags)(0)); - return ret != 0; - } - } + byte ret = TabBarProcessReorderNative(tabBar); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDragBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDragBehavior")] - internal static extern byte DragBehaviorNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_v")] [NativeName(NativeNameType.Type, "void*")] void* pV, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags); + [LibraryImport(LibName, EntryPoint = "igTabItemEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TabItemExNative(ImGuiTabBar* tabBar, byte* label, byte* pOpen, int flags, ImGuiWindow* dockedWindow); - [NativeName(NativeNameType.Func, "igDragBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_v")] [NativeName(NativeNameType.Type, "void*")] void* pV, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, byte* label, byte* pOpen, int flags, ImGuiWindow* dockedWindow) { - byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, format, flags); + byte ret = TabItemExNative(tabBar, label, pOpen, flags, dockedWindow); return ret != 0; } - [NativeName(NativeNameType.Func, "igDragBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_v")] [NativeName(NativeNameType.Type, "void*")] void* pV, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, ref byte label, byte* pOpen, int flags, ImGuiWindow* dockedWindow) { - fixed (byte* pformat = &format) + fixed (byte* plabel = &label) { - byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, (byte*)pformat, flags); + byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, dockedWindow); return ret != 0; } } - [NativeName(NativeNameType.Func, "igDragBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DragBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_v")] [NativeName(NativeNameType.Type, "void*")] void* pV, [NativeName(NativeNameType.Param, "v_speed")] [NativeName(NativeNameType.Type, "float")] float vSpeed, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, string label, byte* pOpen, int flags, ImGuiWindow* dockedWindow) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -238069,10 +70330,10 @@ public static bool DragBehavior([NativeName(NativeNameType.Param, "id")] [Native byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, pStr0, flags); + byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, dockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -238080,42 +70341,34 @@ public static bool DragBehavior([NativeName(NativeNameType.Param, "id")] [Native return ret != 0; } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSliderBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSliderBehavior")] - internal static extern byte SliderBehaviorNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_v")] [NativeName(NativeNameType.Type, "void*")] void* pV, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags, [NativeName(NativeNameType.Param, "out_grab_bb")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* outGrabBb); - - [NativeName(NativeNameType.Func, "igSliderBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_v")] [NativeName(NativeNameType.Type, "void*")] void* pV, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags, [NativeName(NativeNameType.Param, "out_grab_bb")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* outGrabBb) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, byte* label, ref byte pOpen, int flags, ImGuiWindow* dockedWindow) { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, outGrabBb); - return ret != 0; + fixed (byte* ppOpen = &pOpen) + { + byte ret = TabItemExNative(tabBar, label, (byte*)ppOpen, flags, dockedWindow); + return ret != 0; + } } - [NativeName(NativeNameType.Func, "igSliderBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_v")] [NativeName(NativeNameType.Type, "void*")] void* pV, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags, [NativeName(NativeNameType.Param, "out_grab_bb")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* outGrabBb) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, ref byte label, ref byte pOpen, int flags, ImGuiWindow* dockedWindow) { - fixed (byte* pformat = &format) + fixed (byte* plabel = &label) { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, outGrabBb); - return ret != 0; + fixed (byte* ppOpen = &pOpen) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, (byte*)ppOpen, flags, dockedWindow); + return ret != 0; + } } } - [NativeName(NativeNameType.Func, "igSliderBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_v")] [NativeName(NativeNameType.Type, "void*")] void* pV, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags, [NativeName(NativeNameType.Param, "out_grab_bb")] [NativeName(NativeNameType.Type, "ImRect*")] ImRect* outGrabBb) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, string label, ref byte pOpen, int flags, ImGuiWindow* dockedWindow) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -238125,51 +70378,48 @@ public static bool SliderBehavior([NativeName(NativeNameType.Param, "bb")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, outGrabBb); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* ppOpen = &pOpen) { - Utils.Free(pStr0); + byte ret = TabItemExNative(tabBar, pStr0, (byte*)ppOpen, flags, dockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igSliderBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_v")] [NativeName(NativeNameType.Type, "void*")] void* pV, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags, [NativeName(NativeNameType.Param, "out_grab_bb")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect outGrabBb) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, byte* label, byte* pOpen, int flags, ref ImGuiWindow dockedWindow) { - fixed (ImRect* poutGrabBb = &outGrabBb) + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, (ImRect*)poutGrabBb); + byte ret = TabItemExNative(tabBar, label, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } - [NativeName(NativeNameType.Func, "igSliderBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_v")] [NativeName(NativeNameType.Type, "void*")] void* pV, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags, [NativeName(NativeNameType.Param, "out_grab_bb")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect outGrabBb) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, ref byte label, byte* pOpen, int flags, ref ImGuiWindow dockedWindow) { - fixed (byte* pformat = &format) + fixed (byte* plabel = &label) { - fixed (ImRect* poutGrabBb = &outGrabBb) + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, (ImRect*)poutGrabBb); + byte ret = TabItemExNative(tabBar, (byte*)plabel, pOpen, flags, (ImGuiWindow*)pdockedWindow); return ret != 0; } } } - [NativeName(NativeNameType.Func, "igSliderBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SliderBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_v")] [NativeName(NativeNameType.Type, "void*")] void* pV, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiSliderFlags")] ImGuiSliderFlags flags, [NativeName(NativeNameType.Param, "out_grab_bb")] [NativeName(NativeNameType.Type, "ImRect*")] ref ImRect outGrabBb) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, string label, byte* pOpen, int flags, ref ImGuiWindow dockedWindow) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -238179,12 +70429,12 @@ public static bool SliderBehavior([NativeName(NativeNameType.Param, "bb")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - fixed (ImRect* poutGrabBb = &outGrabBb) + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) { - byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, (ImRect*)poutGrabBb); + byte ret = TabItemExNative(tabBar, pStr0, pOpen, flags, (ImGuiWindow*)pdockedWindow); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -238193,327 +70443,312 @@ public static bool SliderBehavior([NativeName(NativeNameType.Param, "bb")] [Nati } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igSplitterBehavior")] - internal static extern byte SplitterBehaviorNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "hover_visibility_delay")] [NativeName(NativeNameType.Type, "float")] float hoverVisibilityDelay, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol); - - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "hover_visibility_delay")] [NativeName(NativeNameType.Type, "float")] float hoverVisibilityDelay, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minSize1, minSize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "hover_visibility_delay")] [NativeName(NativeNameType.Type, "float")] float hoverVisibilityDelay) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, byte* label, ref byte pOpen, int flags, ref ImGuiWindow dockedWindow) { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minSize1, minSize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; + fixed (byte* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, label, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, ref byte label, ref byte pOpen, int flags, ref ImGuiWindow dockedWindow) { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minSize1, minSize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; + fixed (byte* plabel = &label) + { + fixed (byte* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, (byte*)plabel, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + return ret != 0; + } + } + } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2) + /// /// To be documented. /// public static bool TabItemEx( ImGuiTabBar* tabBar, string label, ref byte pOpen, int flags, ref ImGuiWindow dockedWindow) { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minSize1, minSize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (byte* ppOpen = &pOpen) + { + fixed (ImGuiWindow* pdockedWindow = &dockedWindow) + { + byte ret = TabItemExNative(tabBar, pStr0, (byte*)ppOpen, flags, (ImGuiWindow*)pdockedWindow); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minSize1, minSize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; - } + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabItemCalcSize_Str")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabItemCalcSizeNative(Vector2* pOut, byte* label, byte hasCloseButtonOrUnsavedMarker); - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) + /// /// To be documented. /// public static void TabItemCalcSize( Vector2* pOut, byte* label, bool hasCloseButtonOrUnsavedMarker) { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minSize1, minSize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; + TabItemCalcSizeNative(pOut, label, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "hover_visibility_delay")] [NativeName(NativeNameType.Type, "float")] float hoverVisibilityDelay, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) + /// /// To be documented. /// public static void TabItemCalcSize( Vector2* pOut, ref byte label, bool hasCloseButtonOrUnsavedMarker) { - fixed (float* psize1 = &size1) + fixed (byte* plabel = &label) { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minSize1, minSize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; + TabItemCalcSizeNative(pOut, (byte*)plabel, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "hover_visibility_delay")] [NativeName(NativeNameType.Type, "float")] float hoverVisibilityDelay) + /// /// To be documented. /// public static void TabItemCalcSize( Vector2* pOut, string label, bool hasCloseButtonOrUnsavedMarker) { - fixed (float* psize1 = &size1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minSize1, minSize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend) - { - fixed (float* psize1 = &size1) + TabItemCalcSizeNative(pOut, pStr0, hasCloseButtonOrUnsavedMarker ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minSize1, minSize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabItemCalcSize_WindowPtr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabItemCalcSizeWindowPtrNative(Vector2* pOut, ImGuiWindow* window); + + /// /// To be documented. /// public static void TabItemCalcSizeWindowPtr( Vector2* pOut, ImGuiWindow* window) { - fixed (float* psize1 = &size1) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minSize1, minSize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; - } + TabItemCalcSizeWindowPtrNative(pOut, window); } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) + /// /// To be documented. /// public static void TabItemCalcSizeWindowPtr( Vector2* pOut, ref ImGuiWindow window) { - fixed (float* psize1 = &size1) + fixed (ImGuiWindow* pwindow = &window) { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minSize1, minSize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; + TabItemCalcSizeWindowPtrNative(pOut, (ImGuiWindow*)pwindow); } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] float* size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabItemBackground")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabItemBackgroundNative(ImDrawList* drawList, ImRect bb, int flags, uint col); + + /// /// To be documented. /// public static void TabItemBackground( ImDrawList* drawList, ImRect bb, int flags, uint col) { - fixed (float* psize1 = &size1) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minSize1, minSize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; - } + TabItemBackgroundNative(drawList, bb, flags, col); } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "hover_visibility_delay")] [NativeName(NativeNameType.Type, "float")] float hoverVisibilityDelay, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTabItemLabelAndCloseButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TabItemLabelAndCloseButtonNative(ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, byte isContentsVisible, byte* outJustClosed, byte* outTextClipped); + + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, byte* outTextClipped) { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minSize1, minSize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; - } + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "hover_visibility_delay")] [NativeName(NativeNameType.Type, "float")] float hoverVisibilityDelay) + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, byte* outTextClipped) { - fixed (float* psize2 = &size2) + fixed (byte* plabel = &label) { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minSize1, minSize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend) + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, byte* outTextClipped) { - fixed (float* psize2 = &size2) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minSize1, minSize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2) - { - fixed (float* psize2 = &size2) + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, outTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minSize1, minSize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; + Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, byte* outTextClipped) { - fixed (float* psize2 = &size2) + fixed (byte* poutJustClosed = &outJustClosed) { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minSize1, minSize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] float* size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, byte* outTextClipped) { - fixed (float* psize2 = &size2) + fixed (byte* plabel = &label) { - byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minSize1, minSize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; + fixed (byte* poutJustClosed = &outJustClosed) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); + } } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "hover_visibility_delay")] [NativeName(NativeNameType.Type, "float")] float hoverVisibilityDelay, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, byte* outTextClipped) { - fixed (float* psize1 = &size1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (float* psize2 = &size2) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minSize1, minSize2, hoverExtend, hoverVisibilityDelay, bgCol); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "hover_visibility_delay")] [NativeName(NativeNameType.Type, "float")] float hoverVisibilityDelay) - { - fixed (float* psize1 = &size1) + fixed (byte* poutJustClosed = &outJustClosed) { - fixed (float* psize2 = &size2) + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, outTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minSize1, minSize2, hoverExtend, hoverVisibilityDelay, (uint)(0)); - return ret != 0; + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend) + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, ref byte outTextClipped) { - fixed (float* psize1 = &size1) + fixed (byte* poutTextClipped = &outTextClipped) { - fixed (float* psize2 = &size2) - { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minSize1, minSize2, hoverExtend, (float)(0.0f), (uint)(0)); - return ret != 0; - } + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2) + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, ref byte outTextClipped) { - fixed (float* psize1 = &size1) + fixed (byte* plabel = &label) { - fixed (float* psize2 = &size2) + fixed (byte* poutTextClipped = &outTextClipped) { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minSize1, minSize2, (float)(0.0f), (float)(0.0f), (uint)(0)); - return ret != 0; + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); } } } - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "hover_extend")] [NativeName(NativeNameType.Type, "float")] float hoverExtend, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, byte* outJustClosed, ref byte outTextClipped) { - fixed (float* psize1 = &size1) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - fixed (float* psize2 = &size2) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minSize1, minSize2, hoverExtend, (float)(0.0f), bgCol); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igSplitterBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool SplitterBehavior([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "axis")] [NativeName(NativeNameType.Type, "ImGuiAxis")] ImGuiAxis axis, [NativeName(NativeNameType.Param, "size1")] [NativeName(NativeNameType.Type, "float*")] ref float size1, [NativeName(NativeNameType.Param, "size2")] [NativeName(NativeNameType.Type, "float*")] ref float size2, [NativeName(NativeNameType.Param, "min_size1")] [NativeName(NativeNameType.Type, "float")] float minSize1, [NativeName(NativeNameType.Param, "min_size2")] [NativeName(NativeNameType.Type, "float")] float minSize2, [NativeName(NativeNameType.Param, "bg_col")] [NativeName(NativeNameType.Type, "ImU32")] uint bgCol) - { - fixed (float* psize1 = &size1) + fixed (byte* poutTextClipped = &outTextClipped) { - fixed (float* psize2 = &size2) + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, outJustClosed, (byte*)poutTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minSize1, minSize2, (float)(0.0f), (float)(0.0f), bgCol); - return ret != 0; + Utils.Free(pStr0); } } } - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNodeBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNodeBehavior")] - internal static extern byte TreeNodeBehaviorNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] byte* labelEnd); - - [NativeName(NativeNameType.Func, "igTreeNodeBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] byte* labelEnd) - { - byte ret = TreeNodeBehaviorNative(id, flags, label, labelEnd); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igTreeNodeBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] byte* labelEnd) + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, byte* label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, ref byte outTextClipped) { - fixed (byte* plabel = &label) + fixed (byte* poutJustClosed = &outJustClosed) { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, labelEnd); - return ret != 0; + fixed (byte* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, label, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); + } } } - [NativeName(NativeNameType.Func, "igTreeNodeBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, ref byte label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, ref byte outTextClipped) { fixed (byte* plabel = &label) { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)(default)); - return ret != 0; + fixed (byte* poutJustClosed = &outJustClosed) + { + fixed (byte* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, (byte*)plabel, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); + } + } } } - [NativeName(NativeNameType.Func, "igTreeNodeBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] byte* labelEnd) + /// /// To be documented. /// public static void TabItemLabelAndCloseButton( ImDrawList* drawList, ImRect bb, int flags, Vector2 framePadding, string label, uint tabId, uint closeButtonId, bool isContentsVisible, ref byte outJustClosed, ref byte outTextClipped) { byte* pStr0 = null; int pStrSize0 = 0; @@ -238532,23 +70767,46 @@ public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [Na int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = TreeNodeBehaviorNative(id, flags, pStr0, labelEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (byte* poutJustClosed = &outJustClosed) { - Utils.Free(pStr0); + fixed (byte* poutTextClipped = &outTextClipped) + { + TabItemLabelAndCloseButtonNative(drawList, bb, flags, framePadding, pStr0, tabId, closeButtonId, isContentsVisible ? (byte)1 : (byte)0, (byte*)poutJustClosed, (byte*)poutTextClipped); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextNative(Vector2 pos, byte* text, byte* textEnd, byte hideTextAfterHash); + + /// /// To be documented. /// public static void RenderText( Vector2 pos, byte* text, byte* textEnd, bool hideTextAfterHash) + { + RenderTextNative(pos, text, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); + } + + /// /// To be documented. /// public static void RenderText( Vector2 pos, ref byte text, byte* textEnd, bool hideTextAfterHash) + { + fixed (byte* ptext = &text) + { + RenderTextNative(pos, (byte*)ptext, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igTreeNodeBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + /// /// To be documented. /// public static void RenderText( Vector2 pos, string text, byte* textEnd, bool hideTextAfterHash) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -238558,37 +70816,31 @@ public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [Na byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = TreeNodeBehaviorNative(id, flags, pStr0, (byte*)(default)); + RenderTextNative(pos, pStr0, textEnd, hideTextAfterHash ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igTreeNodeBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte labelEnd) + /// /// To be documented. /// public static void RenderText( Vector2 pos, byte* text, ref byte textEnd, bool hideTextAfterHash) { - fixed (byte* plabelEnd = &labelEnd) + fixed (byte* ptextEnd = &textEnd) { - byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)plabelEnd); - return ret != 0; + RenderTextNative(pos, text, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); } } - [NativeName(NativeNameType.Func, "igTreeNodeBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] string labelEnd) + /// /// To be documented. /// public static void RenderText( Vector2 pos, byte* text, string textEnd, bool hideTextAfterHash) { byte* pStr0 = null; int pStrSize0 = 0; - if (labelEnd != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(labelEnd); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -238598,40 +70850,34 @@ public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [Na byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = TreeNodeBehaviorNative(id, flags, label, pStr0); + RenderTextNative(pos, text, pStr0, hideTextAfterHash ? (byte)1 : (byte)0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igTreeNodeBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte labelEnd) + /// /// To be documented. /// public static void RenderText( Vector2 pos, ref byte text, ref byte textEnd, bool hideTextAfterHash) { - fixed (byte* plabel = &label) + fixed (byte* ptext = &text) { - fixed (byte* plabelEnd = &labelEnd) + fixed (byte* ptextEnd = &textEnd) { - byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd); - return ret != 0; + RenderTextNative(pos, (byte*)ptext, (byte*)ptextEnd, hideTextAfterHash ? (byte)1 : (byte)0); } } } - [NativeName(NativeNameType.Func, "igTreeNodeBehavior")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "label_end")] [NativeName(NativeNameType.Type, "const char*")] string labelEnd) + /// /// To be documented. /// public static void RenderText( Vector2 pos, string text, string textEnd, bool hideTextAfterHash) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -238641,14 +70887,14 @@ public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [Na byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (labelEnd != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(labelEnd); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -238658,10 +70904,10 @@ public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [Na byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(labelEnd, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = TreeNodeBehaviorNative(id, flags, pStr0, pStr1); + RenderTextNative(pos, pStr0, pStr1, hideTextAfterHash ? (byte)1 : (byte)0); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -238670,107 +70916,35 @@ public static bool TreeNodeBehavior([NativeName(NativeNameType.Param, "id")] [Na { Utils.Free(pStr0); } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreePushOverrideID")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreePushOverrideID")] - internal static extern void TreePushOverrideIDNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); - - [NativeName(NativeNameType.Func, "igTreePushOverrideID")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TreePushOverrideID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) - { - TreePushOverrideIDNative(id); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNodeSetOpen")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNodeSetOpen")] - internal static extern void TreeNodeSetOpenNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "open")] [NativeName(NativeNameType.Type, "bool")] byte open); - - [NativeName(NativeNameType.Func, "igTreeNodeSetOpen")] - [return: NativeName(NativeNameType.Type, "void")] - public static void TreeNodeSetOpen([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "open")] [NativeName(NativeNameType.Type, "bool")] bool open) - { - TreeNodeSetOpenNative(id, open ? (byte)1 : (byte)0); - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igTreeNodeUpdateNextOpen")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTreeNodeUpdateNextOpen")] - internal static extern byte TreeNodeUpdateNextOpenNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags); - - /// /// Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging. /// [NativeName(NativeNameType.Func, "igTreeNodeUpdateNextOpen")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TreeNodeUpdateNextOpen([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiTreeNodeFlags")] ImGuiTreeNodeFlags flags) - { - byte ret = TreeNodeUpdateNextOpenNative(id, flags); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDataTypeGetInfo")] - [return: NativeName(NativeNameType.Type, "const ImGuiDataTypeInfo*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDataTypeGetInfo")] - internal static extern ImGuiDataTypeInfo* DataTypeGetInfoNative([NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType); - - [NativeName(NativeNameType.Func, "igDataTypeGetInfo")] - [return: NativeName(NativeNameType.Type, "const ImGuiDataTypeInfo*")] - public static ImGuiDataTypeInfo* DataTypeGetInfo([NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType) - { - ImGuiDataTypeInfo* ret = DataTypeGetInfoNative(dataType); - return ret; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDataTypeFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDataTypeFormatString")] - internal static extern int DataTypeFormatStringNative([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "const void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format); + [LibraryImport(LibName, EntryPoint = "igRenderTextWrapped")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextWrappedNative(Vector2 pos, byte* text, byte* textEnd, float wrapWidth); - [NativeName(NativeNameType.Func, "igDataTypeFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "const void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, byte* text, byte* textEnd, float wrapWidth) { - int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, format); - return ret; + RenderTextWrappedNative(pos, text, textEnd, wrapWidth); } - [NativeName(NativeNameType.Func, "igDataTypeFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "const void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, ref byte text, byte* textEnd, float wrapWidth) { - fixed (byte* pbuf = &buf) + fixed (byte* ptext = &text) { - int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, format); - return ret; + RenderTextWrappedNative(pos, (byte*)ptext, textEnd, wrapWidth); } } - [NativeName(NativeNameType.Func, "igDataTypeFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "const void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, string text, byte* textEnd, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (buf != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(buf); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -238780,38 +70954,31 @@ public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, format); - buf = Utils.DecodeStringUTF8(pStr0); + RenderTextWrappedNative(pos, pStr0, textEnd, wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igDataTypeFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "const void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, byte* text, ref byte textEnd, float wrapWidth) { - fixed (byte* pformat = &format) + fixed (byte* ptextEnd = &textEnd) { - int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, (byte*)pformat); - return ret; + RenderTextWrappedNative(pos, text, (byte*)ptextEnd, wrapWidth); } } - [NativeName(NativeNameType.Func, "igDataTypeFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "const void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, byte* text, string textEnd, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -238821,40 +70988,34 @@ public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - int ret = DataTypeFormatStringNative(buf, bufSize, dataType, pData, pStr0); + RenderTextWrappedNative(pos, text, pStr0, wrapWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret; } - [NativeName(NativeNameType.Func, "igDataTypeFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "const void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, ref byte text, ref byte textEnd, float wrapWidth) { - fixed (byte* pbuf = &buf) + fixed (byte* ptext = &text) { - fixed (byte* pformat = &format) + fixed (byte* ptextEnd = &textEnd) { - int ret = DataTypeFormatStringNative((byte*)pbuf, bufSize, dataType, pData, (byte*)pformat); - return ret; + RenderTextWrappedNative(pos, (byte*)ptext, (byte*)ptextEnd, wrapWidth); } } } - [NativeName(NativeNameType.Func, "igDataTypeFormatString")] - [return: NativeName(NativeNameType.Type, "int")] - public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "const void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + /// /// To be documented. /// public static void RenderTextWrapped( Vector2 pos, string text, string textEnd, float wrapWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (buf != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(buf); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -238864,14 +71025,14 @@ public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -238881,11 +71042,10 @@ public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - int ret = DataTypeFormatStringNative(pStr0, bufSize, dataType, pData, pStr1); - buf = Utils.DecodeStringUTF8(pStr0); + RenderTextWrappedNative(pos, pStr0, pStr1, wrapWidth); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -238894,60 +71054,35 @@ public static int DataTypeFormatString([NativeName(NativeNameType.Param, "buf")] { Utils.Free(pStr0); } - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDataTypeApplyOp")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDataTypeApplyOp")] - internal static extern void DataTypeApplyOpNative([NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "op")] [NativeName(NativeNameType.Type, "int")] int op, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "void*")] void* output, [NativeName(NativeNameType.Param, "arg_1")] [NativeName(NativeNameType.Type, "const void*")] void* arg1, [NativeName(NativeNameType.Param, "arg_2")] [NativeName(NativeNameType.Type, "const void*")] void* arg2); - - [NativeName(NativeNameType.Func, "igDataTypeApplyOp")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DataTypeApplyOp([NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "op")] [NativeName(NativeNameType.Type, "int")] int op, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "void*")] void* output, [NativeName(NativeNameType.Param, "arg_1")] [NativeName(NativeNameType.Type, "const void*")] void* arg1, [NativeName(NativeNameType.Param, "arg_2")] [NativeName(NativeNameType.Type, "const void*")] void* arg2) - { - DataTypeApplyOpNative(dataType, op, output, arg1, arg2); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDataTypeApplyFromText")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDataTypeApplyFromText")] - internal static extern byte DataTypeApplyFromTextNative([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "const char*")] byte* buf, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format); + [LibraryImport(LibName, EntryPoint = "igRenderTextClipped")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextClippedNative(Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect); - [NativeName(NativeNameType.Func, "igDataTypeApplyFromText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "const char*")] byte* buf, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) { - byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, format); - return ret != 0; + RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); } - [NativeName(NativeNameType.Func, "igDataTypeApplyFromText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "const char*")] ref byte buf, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) { - fixed (byte* pbuf = &buf) + fixed (byte* ptext = &text) { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, format); - return ret != 0; + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); } } - [NativeName(NativeNameType.Func, "igDataTypeApplyFromText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "const char*")] string buf, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (buf != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(buf); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -238957,37 +71092,31 @@ public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, format); + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDataTypeApplyFromText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "const char*")] byte* buf, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) { - fixed (byte* pformat = &format) + fixed (byte* ptextEnd = &textEnd) { - byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, (byte*)pformat); - return ret != 0; + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); } } - [NativeName(NativeNameType.Func, "igDataTypeApplyFromText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "const char*")] byte* buf, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -238997,40 +71126,34 @@ public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, pStr0); + RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igDataTypeApplyFromText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "const char*")] ref byte buf, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) { - fixed (byte* pbuf = &buf) + fixed (byte* ptext = &text) { - fixed (byte* pformat = &format) + fixed (byte* ptextEnd = &textEnd) { - byte ret = DataTypeApplyFromTextNative((byte*)pbuf, dataType, pData, (byte*)pformat); - return ret != 0; + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); } } } - [NativeName(NativeNameType.Func, "igDataTypeApplyFromText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "const char*")] string buf, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (buf != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(buf); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239040,14 +71163,14 @@ public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (format != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(format); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -239057,10 +71180,10 @@ public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf" byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = DataTypeApplyFromTextNative(pStr0, dataType, pData, pStr1); + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -239069,134 +71192,34 @@ public static bool DataTypeApplyFromText([NativeName(NativeNameType.Param, "buf" { Utils.Free(pStr0); } - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDataTypeCompare")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDataTypeCompare")] - internal static extern int DataTypeCompareNative([NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "arg_1")] [NativeName(NativeNameType.Type, "const void*")] void* arg1, [NativeName(NativeNameType.Param, "arg_2")] [NativeName(NativeNameType.Type, "const void*")] void* arg2); - - [NativeName(NativeNameType.Func, "igDataTypeCompare")] - [return: NativeName(NativeNameType.Type, "int")] - public static int DataTypeCompare([NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "arg_1")] [NativeName(NativeNameType.Type, "const void*")] void* arg1, [NativeName(NativeNameType.Param, "arg_2")] [NativeName(NativeNameType.Type, "const void*")] void* arg2) - { - int ret = DataTypeCompareNative(dataType, arg1, arg2); - return ret; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igDataTypeClamp")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDataTypeClamp")] - internal static extern byte DataTypeClampNative([NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax); - - [NativeName(NativeNameType.Func, "igDataTypeClamp")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool DataTypeClamp([NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const void*")] void* pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const void*")] void* pMax) - { - byte ret = DataTypeClampNative(dataType, pData, pMin, pMax); - return ret != 0; - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputTextEx")] - internal static extern byte InputTextExNative([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - byte ret = InputTextExNative(label, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) - { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { - fixed (byte* plabel = &label) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { - fixed (byte* plabel = &label) + fixed (byte* ptext = &text) { - byte ret = InputTextExNative((byte*)plabel, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239206,55 +71229,37 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - Utils.Free(pStr0); + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + fixed (byte* ptextEnd = &textEnd) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239264,26 +71269,40 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - Utils.Free(pStr0); + RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239293,70 +71312,106 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextExNative(pStr0, hint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - Utils.Free(pStr0); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* phint = &hint) + fixed (ImRect* pclipRect = &clipRect) { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; + RenderTextClippedNative(posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* phint = &hint) + fixed (byte* ptext = &text) { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* phint = &hint) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* phint = &hint) + fixed (byte* ptextEnd = &textEnd) { - byte ret = InputTextExNative(label, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239366,26 +71421,40 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImRect* pclipRect = &clipRect) { - Utils.Free(pStr0); + RenderTextClippedNative(posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239395,55 +71464,72 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - Utils.Free(pStr0); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (hint != null) + fixed (ImRect* pclipRect = &clipRect) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr0 = Utils.Alloc(pStrSize0 + 1); + Utils.Free(pStr0); } - else + } + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + RenderTextClippedNative(posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) { - Utils.Free(pStr0); + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239453,82 +71539,92 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextExNative(label, pStr0, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - Utils.Free(pStr0); + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* plabel = &label) + fixed (byte* ptextEnd = &textEnd) { - fixed (byte* phint = &hint) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - fixed (byte* phint = &hint) + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* plabel = &label) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - fixed (byte* phint = &hint) + fixed (ImRect* pclipRect = &clipRect) { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + RenderTextClippedNative(posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* plabel = &label) + fixed (byte* ptext = &text) { - fixed (byte* phint = &hint) + fixed (byte* ptextEnd = &textEnd) { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClipped( Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239538,14 +71634,14 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (hint != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(hint); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -239555,30 +71651,53 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, callback, userData); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - Utils.Free(pStr1); + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedNative(posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderTextClippedEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextClippedExNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect); + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, clipRect); + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) { - Utils.Free(pStr0); + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, clipRect); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239588,47 +71707,31 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, callback, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, clipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239638,47 +71741,34 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, clipRect); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, clipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239688,14 +71778,14 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (hint != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(hint); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -239705,10 +71795,10 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextExNative(pStr0, pStr1, buf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, clipRect); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -239717,62 +71807,34 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati { Utils.Free(pStr0); } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { - fixed (byte* pbuf = &buf) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { - fixed (byte* pbuf = &buf) + fixed (byte* ptext = &text) { - byte ret = InputTextExNative(label, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (buf != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(buf); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239782,57 +71844,37 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - Utils.Free(pStr0); + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (buf != null) + fixed (byte* ptextEnd = &textEnd) { - pStrSize0 = Utils.GetByteCountUTF8(buf); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (buf != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(buf); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239842,27 +71884,40 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - Utils.Free(pStr0); + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, clipRect); + } + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ImRect* clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (buf != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(buf); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239872,83 +71927,66 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = InputTextExNative(label, hint, pStr0, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) - { - fixed (byte* plabel = &label) + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) { - fixed (byte* pbuf = &buf) + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; } - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) - { - fixed (byte* plabel = &label) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - fixed (byte* pbuf = &buf) + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, clipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* plabel = &label) + fixed (ImRect* pclipRect = &clipRect) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* plabel = &label) + fixed (byte* ptext = &text) { - fixed (byte* pbuf = &buf) + fixed (ImRect* pclipRect = &clipRect) { - byte ret = InputTextExNative((byte*)plabel, hint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -239958,48 +71996,37 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) + fixed (ImRect* pclipRect = &clipRect) { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptextEnd = &textEnd) { - Utils.Free(pStr0); + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240009,48 +72036,40 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) + fixed (ImRect* pclipRect = &clipRect) { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) { - Utils.Free(pStr0); + fixed (byte* ptextEnd = &textEnd) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown, align, (ImRect*)pclipRect); + } + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, Vector2* textSizeIfKnown, Vector2 align, ref ImRect clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240060,14 +72079,14 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (buf != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(buf); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -240077,31 +72096,55 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (ImRect* pclipRect = &clipRect) { - Utils.Free(pStr1); + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, textSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - Utils.Free(pStr0); + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } + } + + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) + { + fixed (byte* ptext = &text) + { + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] byte* hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, byte* textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240111,104 +72154,92 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + fixed (ImRect* pclipRect = &clipRect) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, textEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(pStr0, hint, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* phint = &hint) + fixed (byte* ptextEnd = &textEnd) { - fixed (byte* pbuf = &buf) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, byte* text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* phint = &hint) + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - fixed (byte* pbuf = &buf) + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } - } - - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) - { - fixed (byte* phint = &hint) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - fixed (byte* pbuf = &buf) + fixed (ImRect* pclipRect = &clipRect) { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; + RenderTextClippedExNative(drawList, posMin, posMax, text, pStr0, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) { - fixed (byte* phint = &hint) + fixed (byte* ptext = &text) { - fixed (byte* pbuf = &buf) + fixed (byte* ptextEnd = &textEnd) { - byte ret = InputTextExNative(label, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + } + } } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextClippedEx( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, string text, string textEnd, ref Vector2 textSizeIfKnown, Vector2 align, ref ImRect clipRect) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240218,14 +72249,14 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (buf != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(buf); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -240235,31 +72266,53 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - Utils.Free(pStr1); + fixed (ImRect* pclipRect = &clipRect) + { + RenderTextClippedExNative(drawList, posMin, posMax, pStr0, pStr1, (Vector2*)ptextSizeIfKnown, align, (ImRect*)pclipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderTextEllipsis")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderTextEllipsisNative(ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown); + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, Vector2* textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, textSizeIfKnown); + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) { - Utils.Free(pStr0); + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, textSizeIfKnown); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, Vector2* textSizeIfKnown) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240269,48 +72322,31 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, textSizeIfKnown); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, textSizeIfKnown); + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, Vector2* textSizeIfKnown) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240320,48 +72356,34 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (buf != null) - { - pStrSize1 = Utils.GetByteCountUTF8(buf); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, textSizeIfKnown); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, Vector2* textSizeIfKnown) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, textSizeIfKnown); + } + } + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, Vector2* textSizeIfKnown) { byte* pStr0 = null; int pStrSize0 = 0; - if (hint != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(hint); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240371,14 +72393,14 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(hint, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (buf != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(buf); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -240388,11 +72410,10 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = InputTextExNative(label, pStr0, pStr1, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr1); + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, textSizeIfKnown); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -240401,86 +72422,74 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, byte* textEnd, ref Vector2 textSizeIfKnown) { - fixed (byte* plabel = &label) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - fixed (byte* phint = &hint) - { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, userData); - return ret != 0; - } - } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, textEnd, (Vector2*)ptextSizeIfKnown); } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, byte* textEnd, ref Vector2 textSizeIfKnown) { - fixed (byte* plabel = &label) + fixed (byte* ptext = &text) { - fixed (byte* phint = &hint) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, callback, (void*)(default)); - return ret != 0; - } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, textEnd, (Vector2*)ptextSizeIfKnown); } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, byte* textEnd, ref Vector2 textSizeIfKnown) { - fixed (byte* plabel = &label) + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) { - fixed (byte* phint = &hint) + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - return ret != 0; - } + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, textEnd, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] ref byte hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, ref byte textEnd, ref Vector2 textSizeIfKnown) { - fixed (byte* plabel = &label) + fixed (byte* ptextEnd = &textEnd) { - fixed (byte* phint = &hint) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - fixed (byte* pbuf = &buf) - { - byte ret = InputTextExNative((byte*)plabel, (byte*)phint, (byte*)pbuf, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - return ret != 0; - } + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); } } } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, byte* text, string textEnd, ref Vector2 textSizeIfKnown) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240490,69 +72499,40 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, text, pStr0, (Vector2*)ptextSizeIfKnown); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; + Utils.Free(pStr0); } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) + } + + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, ref byte text, ref byte textEnd, ref Vector2 textSizeIfKnown) + { + fixed (byte* ptext = &text) { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else + fixed (byte* ptextEnd = &textEnd) { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) + { + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, (byte*)ptext, (byte*)ptextEnd, (Vector2*)ptextSizeIfKnown); + } } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, callback, userData); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImGuiInputTextCallback")] ImGuiInputTextCallback callback) + /// /// To be documented. /// public static void RenderTextEllipsis( ImDrawList* drawList, Vector2 posMin, Vector2 posMax, float clipMaxX, float ellipsisMaxX, string text, string textEnd, ref Vector2 textSizeIfKnown) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (text != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(text); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240562,14 +72542,14 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } byte* pStr1 = null; int pStrSize1 = 0; - if (hint != null) + if (textEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(hint); + pStrSize1 = Utils.GetByteCountUTF8(textEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -240579,52 +72559,115 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) + fixed (Vector2* ptextSizeIfKnown = &textSizeIfKnown) { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) + RenderTextEllipsisNative(drawList, posMin, posMax, clipMaxX, ellipsisMaxX, pStr0, pStr1, (Vector2*)ptextSizeIfKnown); + if (pStrSize1 >= Utils.MaxStackallocSize) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + Utils.Free(pStr1); } - else + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + Utils.Free(pStr0); } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, callback, (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderFrameNative(Vector2 pMin, Vector2 pMax, uint fillCol, byte border, float rounding); + + /// /// To be documented. /// public static void RenderFrame( Vector2 pMin, Vector2 pMax, uint fillCol, bool border, float rounding) + { + RenderFrameNative(pMin, pMax, fillCol, border ? (byte)1 : (byte)0, rounding); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderFrameBorder")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderFrameBorderNative(Vector2 pMin, Vector2 pMax, float rounding); + + /// /// To be documented. /// public static void RenderFrameBorder( Vector2 pMin, Vector2 pMax, float rounding) + { + RenderFrameBorderNative(pMin, pMax, rounding); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderColorRectWithAlphaCheckerboard")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderColorRectWithAlphaCheckerboardNative(ImDrawList* drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, int flags); + + /// /// To be documented. /// public static void RenderColorRectWithAlphaCheckerboard( ImDrawList* drawList, Vector2 pMin, Vector2 pMax, uint fillCol, float gridStep, Vector2 gridOff, float rounding, int flags) + { + RenderColorRectWithAlphaCheckerboardNative(drawList, pMin, pMax, fillCol, gridStep, gridOff, rounding, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderNavHighlight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderNavHighlightNative(ImRect bb, uint id, int flags); + + /// /// To be documented. /// public static void RenderNavHighlight( ImRect bb, uint id, int flags) + { + RenderNavHighlightNative(bb, id, flags); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igFindRenderedTextEnd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* FindRenderedTextEndNative(byte* text, byte* textEnd); + + /// /// To be documented. /// public static byte* FindRenderedTextEnd( byte* text, byte* textEnd) + { + byte* ret = FindRenderedTextEndNative(text, textEnd); + return ret; + } + + /// /// To be documented. /// public static string FindRenderedTextEndS( byte* text, byte* textEnd) + { + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, textEnd)); + return ret; + } + + /// /// To be documented. /// public static byte* FindRenderedTextEnd( byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) { - Utils.Free(pStr1); + byte* ret = FindRenderedTextEndNative(text, (byte*)ptextEnd); + return ret; } - if (pStrSize0 >= Utils.MaxStackallocSize) + } + + /// /// To be documented. /// public static string FindRenderedTextEndS( byte* text, ref byte textEnd) + { + fixed (byte* ptextEnd = &textEnd) { - Utils.Free(pStr0); + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, (byte*)ptextEnd)); + return ret; } - return ret != 0; } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static byte* FindRenderedTextEnd( byte* text, string textEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240634,69 +72677,180 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) + byte* ret = FindRenderedTextEndNative(text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; + Utils.Free(pStr0); } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) + return ret; + } + + /// /// To be documented. /// public static string FindRenderedTextEndS( byte* text, string textEnd) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStr2 = Utils.Alloc(pStrSize2 + 1); + pStr0 = Utils.Alloc(pStrSize0 + 1); } else { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), (void*)(default)); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; } + string ret = Utils.DecodeStringUTF8(FindRenderedTextEndNative(text, pStr0)); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderMouseCursor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderMouseCursorNative(Vector2 pos, float scale, int mouseCursor, uint colFill, uint colBorder, uint colShadow); + + /// /// To be documented. /// public static void RenderMouseCursor( Vector2 pos, float scale, int mouseCursor, uint colFill, uint colBorder, uint colShadow) + { + RenderMouseCursorNative(pos, scale, mouseCursor, colFill, colBorder, colShadow); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderArrow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderArrowNative(ImDrawList* drawList, Vector2 pos, uint col, int dir, float scale); + + /// /// To be documented. /// public static void RenderArrow( ImDrawList* drawList, Vector2 pos, uint col, int dir, float scale) + { + RenderArrowNative(drawList, pos, col, dir, scale); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderBullet")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderBulletNative(ImDrawList* drawList, Vector2 pos, uint col); + + /// /// To be documented. /// public static void RenderBullet( ImDrawList* drawList, Vector2 pos, uint col) + { + RenderBulletNative(drawList, pos, col); } - [NativeName(NativeNameType.Func, "igInputTextEx")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "hint")] [NativeName(NativeNameType.Type, "const char*")] string hint, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderCheckMark")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderCheckMarkNative(ImDrawList* drawList, Vector2 pos, uint col, float sz); + + /// /// To be documented. /// public static void RenderCheckMark( ImDrawList* drawList, Vector2 pos, uint col, float sz) + { + RenderCheckMarkNative(drawList, pos, col, sz); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderArrowPointingAt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderArrowPointingAtNative(ImDrawList* drawList, Vector2 pos, Vector2 halfSz, int direction, uint col); + + /// /// To be documented. /// public static void RenderArrowPointingAt( ImDrawList* drawList, Vector2 pos, Vector2 halfSz, int direction, uint col) + { + RenderArrowPointingAtNative(drawList, pos, halfSz, direction, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderArrowDockMenu")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderArrowDockMenuNative(ImDrawList* drawList, Vector2 pMin, float sz, uint col); + + /// /// To be documented. /// public static void RenderArrowDockMenu( ImDrawList* drawList, Vector2 pMin, float sz, uint col) + { + RenderArrowDockMenuNative(drawList, pMin, sz, col); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderRectFilledRangeH")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderRectFilledRangeHNative(ImDrawList* drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding); + + /// /// To be documented. /// public static void RenderRectFilledRangeH( ImDrawList* drawList, ImRect rect, uint col, float xStartNorm, float xEndNorm, float rounding) + { + RenderRectFilledRangeHNative(drawList, rect, col, xStartNorm, xEndNorm, rounding); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igRenderRectFilledWithHole")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void RenderRectFilledWithHoleNative(ImDrawList* drawList, ImRect outer, ImRect inner, uint col, float rounding); + + /// /// To be documented. /// public static void RenderRectFilledWithHole( ImDrawList* drawList, ImRect outer, ImRect inner, uint col, float rounding) + { + RenderRectFilledWithHoleNative(drawList, outer, inner, col, rounding); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCalcRoundingFlagsForRectInRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int CalcRoundingFlagsForRectInRectNative(ImRect rIn, ImRect rOuter, float threshold); + + /// /// To be documented. /// public static int CalcRoundingFlagsForRectInRect( ImRect rIn, ImRect rOuter, float threshold) + { + int ret = CalcRoundingFlagsForRectInRectNative(rIn, rOuter, threshold); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTextEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TextExNative(byte* text, byte* textEnd, int flags); + + /// /// To be documented. /// public static void TextEx( byte* text, byte* textEnd, int flags) + { + TextExNative(text, textEnd, flags); + } + + /// /// To be documented. /// public static void TextEx( byte* text, ref byte textEnd, int flags) + { + fixed (byte* ptextEnd = &textEnd) + { + TextExNative(text, (byte*)ptextEnd, flags); + } + } + + /// /// To be documented. /// public static void TextEx( byte* text, string textEnd, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (textEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(textEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240706,105 +72860,88 @@ public static bool InputTextEx([NativeName(NativeNameType.Param, "label")] [Nati byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (hint != null) - { - pStrSize1 = Utils.GetByteCountUTF8(hint); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(hint, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte* pStr2 = null; - int pStrSize2 = 0; - if (buf != null) - { - pStrSize2 = Utils.GetByteCountUTF8(buf); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - pStr2 = Utils.Alloc(pStrSize2 + 1); - } - else - { - byte* pStrStack2 = stackalloc byte[pStrSize2 + 1]; - pStr2 = pStrStack2; - } - int pStrOffset2 = Utils.EncodeStringUTF8(buf, pStr2, pStrSize2); - pStr2[pStrOffset2] = 0; - } - byte ret = InputTextExNative(pStr0, pStr1, pStr2, bufSize, sizeArg, flags, (ImGuiInputTextCallback)(default), userData); - buf = Utils.DecodeStringUTF8(pStr2); - if (pStrSize2 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr2); - } - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + TextExNative(text, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igButtonEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ButtonExNative(byte* label, Vector2 sizeArg, int flags); + + /// /// To be documented. /// public static bool ButtonEx( byte* label, Vector2 sizeArg, int flags) + { + byte ret = ButtonExNative(label, sizeArg, flags); return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igInputTextDeactivateHook")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igInputTextDeactivateHook")] - internal static extern void InputTextDeactivateHookNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); + [LibraryImport(LibName, EntryPoint = "igArrowButtonEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ArrowButtonExNative(byte* strId, int dir, Vector2 sizeArg, int flags); - [NativeName(NativeNameType.Func, "igInputTextDeactivateHook")] - [return: NativeName(NativeNameType.Type, "void")] - public static void InputTextDeactivateHook([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + /// /// To be documented. /// public static bool ArrowButtonEx( byte* strId, int dir, Vector2 sizeArg, int flags) { - InputTextDeactivateHookNative(id); + byte ret = ArrowButtonExNative(strId, dir, sizeArg, flags); + return ret != 0; } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTempInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTempInputText")] - internal static extern byte TempInputTextNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags); + [LibraryImport(LibName, EntryPoint = "igImageButtonEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ImageButtonExNative(uint id, ImTextureID textureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol, int flags); - [NativeName(NativeNameType.Func, "igTempInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static bool ImageButtonEx( uint id, ImTextureID textureId, Vector2 imageSize, Vector2 uv0, Vector2 uv1, Vector4 bgCol, Vector4 tintCol, int flags) { - byte ret = TempInputTextNative(bb, id, label, buf, bufSize, flags); + byte ret = ImageButtonExNative(id, textureId, imageSize, uv0, uv1, bgCol, tintCol, flags); return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSeparatorEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SeparatorExNative(int flags, float thickness); + + /// /// To be documented. /// public static void SeparatorEx( int flags, float thickness) + { + SeparatorExNative(flags, thickness); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSeparatorTextEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SeparatorTextExNative(uint id, byte* label, byte* labelEnd, float extraWidth); + + /// /// To be documented. /// public static void SeparatorTextEx( uint id, byte* label, byte* labelEnd, float extraWidth) + { + SeparatorTextExNative(id, label, labelEnd, extraWidth); + } + + /// /// To be documented. /// public static void SeparatorTextEx( uint id, ref byte label, byte* labelEnd, float extraWidth) { fixed (byte* plabel = &label) { - byte ret = TempInputTextNative(bb, id, (byte*)plabel, buf, bufSize, flags); - return ret != 0; + SeparatorTextExNative(id, (byte*)plabel, labelEnd, extraWidth); } } - [NativeName(NativeNameType.Func, "igTempInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] byte* buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void SeparatorTextEx( uint id, string label, byte* labelEnd, float extraWidth) { byte* pStr0 = null; int pStrSize0 = 0; @@ -240823,34 +72960,28 @@ public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [Nativ int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = TempInputTextNative(bb, id, pStr0, buf, bufSize, flags); + SeparatorTextExNative(id, pStr0, labelEnd, extraWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void SeparatorTextEx( uint id, byte* label, ref byte labelEnd, float extraWidth) { - fixed (byte* pbuf = &buf) + fixed (byte* plabelEnd = &labelEnd) { - byte ret = TempInputTextNative(bb, id, label, (byte*)pbuf, bufSize, flags); - return ret != 0; + SeparatorTextExNative(id, label, (byte*)plabelEnd, extraWidth); } } - [NativeName(NativeNameType.Func, "igTempInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void SeparatorTextEx( uint id, byte* label, string labelEnd, float extraWidth) { byte* pStr0 = null; int pStrSize0 = 0; - if (buf != null) + if (labelEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(buf); + pStrSize0 = Utils.GetByteCountUTF8(labelEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -240860,35 +72991,28 @@ public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [Nativ byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(buf, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = TempInputTextNative(bb, id, label, pStr0, bufSize, flags); - buf = Utils.DecodeStringUTF8(pStr0); + SeparatorTextExNative(id, label, pStr0, extraWidth); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } - return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref byte buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void SeparatorTextEx( uint id, ref byte label, ref byte labelEnd, float extraWidth) { fixed (byte* plabel = &label) { - fixed (byte* pbuf = &buf) + fixed (byte* plabelEnd = &labelEnd) { - byte ret = TempInputTextNative(bb, id, (byte*)plabel, (byte*)pbuf, bufSize, flags); - return ret != 0; + SeparatorTextExNative(id, (byte*)plabel, (byte*)plabelEnd, extraWidth); } } } - [NativeName(NativeNameType.Func, "igTempInputText")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "buf")] [NativeName(NativeNameType.Type, "char*")] ref string buf, [NativeName(NativeNameType.Param, "buf_size")] [NativeName(NativeNameType.Type, "int")] int bufSize, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] ImGuiInputTextFlags flags) + /// /// To be documented. /// public static void SeparatorTextEx( uint id, string label, string labelEnd, float extraWidth) { byte* pStr0 = null; int pStrSize0 = 0; @@ -240909,9 +73033,9 @@ public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [Nativ } byte* pStr1 = null; int pStrSize1 = 0; - if (buf != null) + if (labelEnd != null) { - pStrSize1 = Utils.GetByteCountUTF8(buf); + pStrSize1 = Utils.GetByteCountUTF8(labelEnd); if (pStrSize1 >= Utils.MaxStackallocSize) { pStr1 = Utils.Alloc(pStrSize1 + 1); @@ -240921,11 +73045,10 @@ public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [Nativ byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; pStr1 = pStrStack1; } - int pStrOffset1 = Utils.EncodeStringUTF8(buf, pStr1, pStrSize1); + int pStrOffset1 = Utils.EncodeStringUTF8(labelEnd, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = TempInputTextNative(bb, id, pStr0, pStr1, bufSize, flags); - buf = Utils.DecodeStringUTF8(pStr1); + SeparatorTextExNative(id, pStr0, pStr1, extraWidth); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -240934,83 +73057,252 @@ public static bool TempInputText([NativeName(NativeNameType.Param, "bb")] [Nativ { Utils.Free(pStr0); } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCheckboxFlags_S64Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CheckboxFlagsS64PtrNative(byte* label, long* flags, long flagsValue); + + /// /// To be documented. /// public static bool CheckboxFlagsS64Ptr( byte* label, long* flags, long flagsValue) + { + byte ret = CheckboxFlagsS64PtrNative(label, flags, flagsValue); return ret != 0; } + /// /// To be documented. /// public static bool CheckboxFlagsS64Ptr( byte* label, ref long flags, long flagsValue) + { + fixed (long* pflags = &flags) + { + byte ret = CheckboxFlagsS64PtrNative(label, (long*)pflags, flagsValue); + return ret != 0; + } + } + /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTempInputScalar")] - internal static extern byte TempInputScalarNative([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin, [NativeName(NativeNameType.Param, "p_clamp_max")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMax); + [LibraryImport(LibName, EntryPoint = "igCheckboxFlags_U64Ptr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CheckboxFlagsU64PtrNative(byte* label, ulong* flags, ulong flagsValue); - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin, [NativeName(NativeNameType.Param, "p_clamp_max")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMax) + /// /// To be documented. /// public static bool CheckboxFlagsU64Ptr( byte* label, ulong* flags, ulong flagsValue) { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, pClampMin, pClampMax); + byte ret = CheckboxFlagsU64PtrNative(label, flags, flagsValue); return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin) + /// /// To be documented. /// public static bool CheckboxFlagsU64Ptr( byte* label, ref ulong flags, ulong flagsValue) + { + fixed (ulong* pflags = &flags) + { + byte ret = CheckboxFlagsU64PtrNative(label, (ulong*)pflags, flagsValue); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCloseButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CloseButtonNative(uint id, Vector2 pos); + + /// /// To be documented. /// public static bool CloseButton( uint id, Vector2 pos) { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, pClampMin, (void*)(default)); + byte ret = CloseButtonNative(id, pos); return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igCollapseButton")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte CollapseButtonNative(uint id, Vector2 pos, ImGuiDockNode* dockNode); + + /// /// To be documented. /// public static bool CollapseButton( uint id, Vector2 pos, ImGuiDockNode* dockNode) { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, (void*)(default), (void*)(default)); + byte ret = CollapseButtonNative(id, pos, dockNode); return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin, [NativeName(NativeNameType.Param, "p_clamp_max")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMax) + /// /// To be documented. /// public static bool CollapseButton( uint id, Vector2 pos, ref ImGuiDockNode dockNode) { - fixed (byte* plabel = &label) + fixed (ImGuiDockNode* pdockNode = &dockNode) { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, pClampMax); + byte ret = CollapseButtonNative(id, pos, (ImGuiDockNode*)pdockNode); + return ret != 0; + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollbar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ScrollbarNative(ImGuiAxis axis); + + /// /// To be documented. /// public static void Scrollbar( ImGuiAxis axis) + { + ScrollbarNative(axis); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igScrollbarEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ScrollbarExNative(ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, int flags); + + /// /// To be documented. /// public static bool ScrollbarEx( ImRect bb, uint id, ImGuiAxis axis, long* pScrollV, long availV, long contentsV, int flags) + { + byte ret = ScrollbarExNative(bb, id, axis, pScrollV, availV, contentsV, flags); + return ret != 0; + } + + /// /// To be documented. /// public static bool ScrollbarEx( ImRect bb, uint id, ImGuiAxis axis, ref long pScrollV, long availV, long contentsV, int flags) + { + fixed (long* ppScrollV = &pScrollV) + { + byte ret = ScrollbarExNative(bb, id, axis, (long*)ppScrollV, availV, contentsV, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowScrollbarRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GetWindowScrollbarRectNative(ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis); + + /// /// To be documented. /// public static void GetWindowScrollbarRect( ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis) + { + GetWindowScrollbarRectNative(pOut, window, axis); + } + + /// /// To be documented. /// public static void GetWindowScrollbarRect( ImRect* pOut, ref ImGuiWindow window, ImGuiAxis axis) { - fixed (byte* plabel = &label) + fixed (ImGuiWindow* pwindow = &window) + { + GetWindowScrollbarRectNative(pOut, (ImGuiWindow*)pwindow, axis); + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowScrollbarID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetWindowScrollbarIDNative(ImGuiWindow* window, ImGuiAxis axis); + + /// /// To be documented. /// public static uint GetWindowScrollbarID( ImGuiWindow* window, ImGuiAxis axis) + { + uint ret = GetWindowScrollbarIDNative(window, axis); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowResizeCornerID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetWindowResizeCornerIDNative(ImGuiWindow* window, int n); + + /// /// To be documented. /// public static uint GetWindowResizeCornerID( ImGuiWindow* window, int n) + { + uint ret = GetWindowResizeCornerIDNative(window, n); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igGetWindowResizeBorderID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint GetWindowResizeBorderIDNative(ImGuiWindow* window, int dir); + + /// /// To be documented. /// public static uint GetWindowResizeBorderID( ImGuiWindow* window, int dir) + { + uint ret = GetWindowResizeBorderIDNative(window, dir); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igButtonBehavior")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte ButtonBehaviorNative(ImRect bb, uint id, byte* outHovered, byte* outHeld, int flags); + + /// /// To be documented. /// public static bool ButtonBehavior( ImRect bb, uint id, byte* outHovered, byte* outHeld, int flags) + { + byte ret = ButtonBehaviorNative(bb, id, outHovered, outHeld, flags); + return ret != 0; + } + + /// /// To be documented. /// public static bool ButtonBehavior( ImRect bb, uint id, ref byte outHovered, byte* outHeld, int flags) + { + fixed (byte* poutHovered = &outHovered) { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, (void*)(default)); + byte ret = ButtonBehaviorNative(bb, id, (byte*)poutHovered, outHeld, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + /// /// To be documented. /// public static bool ButtonBehavior( ImRect bb, uint id, byte* outHovered, ref byte outHeld, int flags) { - fixed (byte* plabel = &label) + fixed (byte* poutHeld = &outHeld) + { + byte ret = ButtonBehaviorNative(bb, id, outHovered, (byte*)poutHeld, flags); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool ButtonBehavior( ImRect bb, uint id, ref byte outHovered, ref byte outHeld, int flags) + { + fixed (byte* poutHovered = &outHovered) + { + fixed (byte* poutHeld = &outHeld) + { + byte ret = ButtonBehaviorNative(bb, id, (byte*)poutHovered, (byte*)poutHeld, flags); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDragBehavior")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DragBehaviorNative(uint id, int dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, int flags); + + /// /// To be documented. /// public static bool DragBehavior( uint id, int dataType, void* pV, float vSpeed, void* pMin, void* pMax, byte* format, int flags) + { + byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, format, flags); + return ret != 0; + } + + /// /// To be documented. /// public static bool DragBehavior( uint id, int dataType, void* pV, float vSpeed, void* pMin, void* pMax, ref byte format, int flags) + { + fixed (byte* pformat = &format) { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, (void*)(default), (void*)(default)); + byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, (byte*)pformat, flags); return ret != 0; } } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin, [NativeName(NativeNameType.Param, "p_clamp_max")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMax) + /// /// To be documented. /// public static bool DragBehavior( uint id, int dataType, void* pV, float vSpeed, void* pMin, void* pMax, string format, int flags) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -241020,10 +73312,10 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, pClampMin, pClampMax); + byte ret = DragBehaviorNative(id, dataType, pV, vSpeed, pMin, pMax, pStr0, flags); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -241031,15 +73323,35 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSliderBehavior")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SliderBehaviorNative(ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, byte* format, int flags, ImRect* outGrabBb); + + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, byte* format, int flags, ImRect* outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, outGrabBb); + return ret != 0; + } + + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, ref byte format, int flags, ImRect* outGrabBb) + { + fixed (byte* pformat = &format) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, outGrabBb); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, string format, int flags, ImRect* outGrabBb) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -241049,10 +73361,10 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, pClampMin, (void*)(default)); + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, outGrabBb); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -241060,15 +73372,34 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] byte* format) + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, byte* format, int flags, ref ImRect outGrabBb) + { + fixed (ImRect* poutGrabBb = &outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, format, flags, (ImRect*)poutGrabBb); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, ref byte format, int flags, ref ImRect outGrabBb) + { + fixed (byte* pformat = &format) + { + fixed (ImRect* poutGrabBb = &outGrabBb) + { + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, (byte*)pformat, flags, (ImRect*)poutGrabBb); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool SliderBehavior( ImRect bb, uint id, int dataType, void* pV, void* pMin, void* pMax, string format, int flags, ref ImRect outGrabBb) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -241078,59 +73409,92 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, (void*)(default), (void*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) + fixed (ImRect* poutGrabBb = &outGrabBb) { - Utils.Free(pStr0); + byte ret = SliderBehaviorNative(bb, id, dataType, pV, pMin, pMax, pStr0, flags, (ImRect*)poutGrabBb); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSplitterBehavior")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SplitterBehaviorNative(ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol); + + /// /// To be documented. /// public static bool SplitterBehavior( ImRect bb, uint id, ImGuiAxis axis, float* size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) + { + byte ret = SplitterBehaviorNative(bb, id, axis, size1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin, [NativeName(NativeNameType.Param, "p_clamp_max")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMax) + /// /// To be documented. /// public static bool SplitterBehavior( ImRect bb, uint id, ImGuiAxis axis, ref float size1, float* size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) { - fixed (byte* pformat = &format) + fixed (float* psize1 = &size1) { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, size2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); return ret != 0; } } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin) + /// /// To be documented. /// public static bool SplitterBehavior( ImRect bb, uint id, ImGuiAxis axis, float* size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) { - fixed (byte* pformat = &format) + fixed (float* psize2 = &size2) { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); + byte ret = SplitterBehaviorNative(bb, id, axis, size1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); return ret != 0; } } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + /// /// To be documented. /// public static bool SplitterBehavior( ImRect bb, uint id, ImGuiAxis axis, ref float size1, ref float size2, float minsize1, float minsize2, float hoverExtend, float hoverVisibilityDelay, uint bgCol) { - fixed (byte* pformat = &format) + fixed (float* psize1 = &size1) + { + fixed (float* psize2 = &size2) + { + byte ret = SplitterBehaviorNative(bb, id, axis, (float*)psize1, (float*)psize2, minsize1, minsize2, hoverExtend, hoverVisibilityDelay, bgCol); + return ret != 0; + } + } + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeBehavior")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeBehaviorNative(uint id, int flags, byte* label, byte* labelEnd); + + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, byte* label, byte* labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, label, labelEnd); + return ret != 0; + } + + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, ref byte label, byte* labelEnd) + { + fixed (byte* plabel = &label) { - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, labelEnd); return ret != 0; } } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin, [NativeName(NativeNameType.Param, "p_clamp_max")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMax) + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, string label, byte* labelEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -241140,10 +73504,10 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, pClampMin, pClampMax); + byte ret = TreeNodeBehaviorNative(id, flags, pStr0, labelEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -241151,15 +73515,22 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin) + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, byte* label, ref byte labelEnd) + { + fixed (byte* plabelEnd = &labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, label, (byte*)plabelEnd); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, byte* label, string labelEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (labelEnd != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(labelEnd); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -241169,10 +73540,10 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(labelEnd, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, pClampMin, (void*)(default)); + byte ret = TreeNodeBehaviorNative(id, flags, label, pStr0); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -241180,15 +73551,25 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, ref byte label, ref byte labelEnd) + { + fixed (byte* plabel = &label) + { + fixed (byte* plabelEnd = &labelEnd) + { + byte ret = TreeNodeBehaviorNative(id, flags, (byte*)plabel, (byte*)plabelEnd); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool TreeNodeBehavior( uint id, int flags, string label, string labelEnd) { byte* pStr0 = null; int pStrSize0 = 0; - if (format != null) + if (label != null) { - pStrSize0 = Utils.GetByteCountUTF8(format); + pStrSize0 = Utils.GetByteCountUTF8(label); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -241198,10 +73579,31 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, (void*)(default), (void*)(default)); + byte* pStr1 = null; + int pStrSize1 = 0; + if (labelEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(labelEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(labelEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = TreeNodeBehaviorNative(id, flags, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -241209,51 +73611,190 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin, [NativeName(NativeNameType.Param, "p_clamp_max")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMax) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreePushOverrideID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TreePushOverrideIDNative(uint id); + + /// /// To be documented. /// public static void TreePushOverrideID( uint id) { - fixed (byte* plabel = &label) + TreePushOverrideIDNative(id); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeSetOpen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void TreeNodeSetOpenNative(uint id, byte open); + + /// /// To be documented. /// public static void TreeNodeSetOpen( uint id, bool open) + { + TreeNodeSetOpenNative(id, open ? (byte)1 : (byte)0); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTreeNodeUpdateNextOpen")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TreeNodeUpdateNextOpenNative(uint id, int flags); + + /// /// To be documented. /// public static bool TreeNodeUpdateNextOpen( uint id, int flags) + { + byte ret = TreeNodeUpdateNextOpenNative(id, flags); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igSetNextItemSelectionUserData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SetNextItemSelectionUserDataNative(ImGuiSelectionUserData selectionUserData); + + /// /// To be documented. /// public static void SetNextItemSelectionUserData( ImGuiSelectionUserData selectionUserData) + { + SetNextItemSelectionUserDataNative(selectionUserData); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDataTypeGetInfo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiDataTypeInfo* DataTypeGetInfoNative(int dataType); + + /// /// To be documented. /// public static ImGuiDataTypeInfo* DataTypeGetInfo( int dataType) + { + ImGuiDataTypeInfo* ret = DataTypeGetInfoNative(dataType); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDataTypeApplyOp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DataTypeApplyOpNative(int dataType, int op, void* output, void* arg1, void* arg2); + + /// /// To be documented. /// public static void DataTypeApplyOp( int dataType, int op, void* output, void* arg1, void* arg2) + { + DataTypeApplyOpNative(dataType, op, output, arg1, arg2); + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDataTypeApplyFromText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DataTypeApplyFromTextNative(byte* buf, int dataType, void* pData, byte* format); + + /// /// To be documented. /// public static bool DataTypeApplyFromText( byte* buf, int dataType, void* pData, byte* format) + { + byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, format); + return ret != 0; + } + + /// /// To be documented. /// public static bool DataTypeApplyFromText( byte* buf, int dataType, void* pData, ref byte format) + { + fixed (byte* pformat = &format) { - fixed (byte* pformat = &format) + byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, (byte*)pformat); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool DataTypeApplyFromText( byte* buf, int dataType, void* pData, string format) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (format != null) + { + pStrSize0 = Utils.GetByteCountUTF8(format); + if (pStrSize0 >= Utils.MaxStackallocSize) { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); - return ret != 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = DataTypeApplyFromTextNative(buf, dataType, pData, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDataTypeCompare")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int DataTypeCompareNative(int dataType, void* arg1, void* arg2); + + /// /// To be documented. /// public static int DataTypeCompare( int dataType, void* arg1, void* arg2) + { + int ret = DataTypeCompareNative(dataType, arg1, arg2); + return ret; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDataTypeClamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte DataTypeClampNative(int dataType, void* pData, void* pMin, void* pMax); + + /// /// To be documented. /// public static bool DataTypeClamp( int dataType, void* pData, void* pMin, void* pMax) + { + byte ret = DataTypeClampNative(dataType, pData, pMin, pMax); + return ret != 0; + } + + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igInputTextDeactivateHook")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void InputTextDeactivateHookNative(uint id); + + /// /// To be documented. /// public static void InputTextDeactivateHook( uint id) + { + InputTextDeactivateHookNative(id); } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igTempInputScalar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TempInputScalarNative(ImRect bb, uint id, byte* label, int dataType, void* pData, byte* format, void* pClampMin, void* pClampMax); + + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, byte* label, int dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) { - fixed (byte* plabel = &label) - { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, (void*)(default)); - return ret != 0; - } - } + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, format, pClampMin, pClampMax); + return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] ref byte format) + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, ref byte label, int dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) { fixed (byte* plabel = &label) { - fixed (byte* pformat = &format) - { - byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, (void*)(default), (void*)(default)); - return ret != 0; - } + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, format, pClampMin, pClampMax); + return ret != 0; } } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin, [NativeName(NativeNameType.Param, "p_clamp_max")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMax) + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, string label, int dataType, void* pData, byte* format, void* pClampMin, void* pClampMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -241272,28 +73813,7 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, pClampMin, pClampMax); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, format, pClampMin, pClampMax); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -241301,15 +73821,22 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format, [NativeName(NativeNameType.Param, "p_clamp_min")] [NativeName(NativeNameType.Type, "const void*")] void* pClampMin) + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, byte* label, int dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + return ret != 0; + } + } + + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, byte* label, int dataType, void* pData, string format, void* pClampMin, void* pClampMax) { byte* pStr0 = null; int pStrSize0 = 0; - if (label != null) + if (format != null) { - pStrSize0 = Utils.GetByteCountUTF8(label); + pStrSize0 = Utils.GetByteCountUTF8(format); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -241319,31 +73846,10 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(format, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - byte* pStr1 = null; - int pStrSize1 = 0; - if (format != null) - { - pStrSize1 = Utils.GetByteCountUTF8(format); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, pClampMin, (void*)(default)); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } + byte ret = TempInputScalarNative(bb, id, label, dataType, pData, pStr0, pClampMin, pClampMax); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); @@ -241351,9 +73857,19 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat return ret != 0; } - [NativeName(NativeNameType.Func, "igTempInputScalar")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "p_data")] [NativeName(NativeNameType.Type, "void*")] void* pData, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "const char*")] string format) + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, ref byte label, int dataType, void* pData, ref byte format, void* pClampMin, void* pClampMax) + { + fixed (byte* plabel = &label) + { + fixed (byte* pformat = &format) + { + byte ret = TempInputScalarNative(bb, id, (byte*)plabel, dataType, pData, (byte*)pformat, pClampMin, pClampMax); + return ret != 0; + } + } + } + + /// /// To be documented. /// public static bool TempInputScalar( ImRect bb, uint id, string label, int dataType, void* pData, string format, void* pClampMin, void* pClampMax) { byte* pStr0 = null; int pStrSize0 = 0; @@ -241389,7 +73905,7 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat int pStrOffset1 = Utils.EncodeStringUTF8(format, pStr1, pStrSize1); pStr1[pStrOffset1] = 0; } - byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, (void*)(default), (void*)(default)); + byte ret = TempInputScalarNative(bb, id, pStr0, dataType, pData, pStr1, pClampMin, pClampMax); if (pStrSize1 >= Utils.MaxStackallocSize) { Utils.Free(pStr1); @@ -241404,14 +73920,11 @@ public static bool TempInputScalar([NativeName(NativeNameType.Param, "bb")] [Nat /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igTempInputIsActive")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igTempInputIsActive")] - internal static extern byte TempInputIsActiveNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); + [LibraryImport(LibName, EntryPoint = "igTempInputIsActive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte TempInputIsActiveNative(uint id); - [NativeName(NativeNameType.Func, "igTempInputIsActive")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool TempInputIsActive([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + /// /// To be documented. /// public static bool TempInputIsActive( uint id) { byte ret = TempInputIsActiveNative(id); return ret != 0; @@ -241420,14 +73933,11 @@ public static bool TempInputIsActive([NativeName(NativeNameType.Param, "id")] [N /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGetInputTextState")] - [return: NativeName(NativeNameType.Type, "ImGuiInputTextState*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGetInputTextState")] - internal static extern ImGuiInputTextState* GetInputTextStateNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id); + [LibraryImport(LibName, EntryPoint = "igGetInputTextState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImGuiInputTextState* GetInputTextStateNative(uint id); - /// /// Get input text state if active /// [NativeName(NativeNameType.Func, "igGetInputTextState")] - [return: NativeName(NativeNameType.Type, "ImGuiInputTextState*")] - public static ImGuiInputTextState* GetInputTextState([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + /// /// To be documented. /// public static ImGuiInputTextState* GetInputTextState( uint id) { ImGuiInputTextState* ret = GetInputTextStateNative(id); return ret; @@ -241436,59 +73946,16 @@ public static bool TempInputIsActive([NativeName(NativeNameType.Param, "id")] [N /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igColorTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorTooltip")] - internal static extern void ColorTooltipNative([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const float*")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags); + [LibraryImport(LibName, EntryPoint = "igColorTooltip")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorTooltipNative(byte* text, float* col, int flags); - [NativeName(NativeNameType.Func, "igColorTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorTooltip([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const float*")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) + /// /// To be documented. /// public static void ColorTooltip( byte* text, float* col, int flags) { ColorTooltipNative(text, col, flags); } - [NativeName(NativeNameType.Func, "igColorTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorTooltip([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const float*")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (byte* ptext = &text) - { - ColorTooltipNative((byte*)ptext, col, flags); - } - } - - [NativeName(NativeNameType.Func, "igColorTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorTooltip([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const float*")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ColorTooltipNative(pStr0, col, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - - [NativeName(NativeNameType.Func, "igColorTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorTooltip([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const float*")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) + /// /// To be documented. /// public static void ColorTooltip( byte* text, ref float col, int flags) { fixed (float* pcol = &col) { @@ -241496,119 +73963,44 @@ public static void ColorTooltip([NativeName(NativeNameType.Param, "text")] [Nati } } - [NativeName(NativeNameType.Func, "igColorTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorTooltip([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const float*")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (byte* ptext = &text) - { - fixed (float* pcol = &col) - { - ColorTooltipNative((byte*)ptext, (float*)pcol, flags); - } - } - } - - [NativeName(NativeNameType.Func, "igColorTooltip")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorTooltip([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const float*")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (text != null) - { - pStrSize0 = Utils.GetByteCountUTF8(text); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - fixed (float* pcol = &col) - { - ColorTooltipNative(pStr0, (float*)pcol, flags); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igColorEditOptionsPopup")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorEditOptionsPopup")] - internal static extern void ColorEditOptionsPopupNative([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const float*")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags); + [LibraryImport(LibName, EntryPoint = "igColorEditOptionsPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorEditOptionsPopupNative(float* col, int flags); - [NativeName(NativeNameType.Func, "igColorEditOptionsPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorEditOptionsPopup([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const float*")] float* col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) + /// /// To be documented. /// public static void ColorEditOptionsPopup( float* col, int flags) { ColorEditOptionsPopupNative(col, flags); } - [NativeName(NativeNameType.Func, "igColorEditOptionsPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorEditOptionsPopup([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "const float*")] ref float col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (float* pcol = &col) - { - ColorEditOptionsPopupNative((float*)pcol, flags); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igColorPickerOptionsPopup")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igColorPickerOptionsPopup")] - internal static extern void ColorPickerOptionsPopupNative([NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags); + [LibraryImport(LibName, EntryPoint = "igColorPickerOptionsPopup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ColorPickerOptionsPopupNative(float* refCol, int flags); - [NativeName(NativeNameType.Func, "igColorPickerOptionsPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorPickerOptionsPopup([NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] float* refCol, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) + /// /// To be documented. /// public static void ColorPickerOptionsPopup( float* refCol, int flags) { ColorPickerOptionsPopupNative(refCol, flags); } - [NativeName(NativeNameType.Func, "igColorPickerOptionsPopup")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ColorPickerOptionsPopup([NativeName(NativeNameType.Param, "ref_col")] [NativeName(NativeNameType.Type, "const float*")] ref float refCol, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] ImGuiColorEditFlags flags) - { - fixed (float* prefCol = &refCol) - { - ColorPickerOptionsPopupNative((float*)prefCol, flags); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igPlotEx")] - [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igPlotEx")] - internal static extern int PlotExNative([NativeName(NativeNameType.Param, "plot_type")] [NativeName(NativeNameType.Type, "ImGuiPlotType")] ImGuiPlotType plotType, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(ImGuiPlotType plot_type, const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2 size_arg)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg); + [LibraryImport(LibName, EntryPoint = "igPlotEx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PlotExNative(ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 sizeArg); - [NativeName(NativeNameType.Func, "igPlotEx")] - [return: NativeName(NativeNameType.Type, "int")] - public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [NativeName(NativeNameType.Type, "ImGuiPlotType")] ImGuiPlotType plotType, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(ImGuiPlotType plot_type, const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2 size_arg)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg) + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) { int ret = PlotExNative(plotType, label, valuesGetter, data, valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, sizeArg); return ret; } - [NativeName(NativeNameType.Func, "igPlotEx")] - [return: NativeName(NativeNameType.Type, "int")] - public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [NativeName(NativeNameType.Type, "ImGuiPlotType")] ImGuiPlotType plotType, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(ImGuiPlotType plot_type, const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2 size_arg)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg) + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) { fixed (byte* plabel = &label) { @@ -241617,9 +74009,7 @@ public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [Native } } - [NativeName(NativeNameType.Func, "igPlotEx")] - [return: NativeName(NativeNameType.Type, "int")] - public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [NativeName(NativeNameType.Type, "ImGuiPlotType")] ImGuiPlotType plotType, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(ImGuiPlotType plot_type, const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2 size_arg)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] byte* overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg) + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, byte* overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) { byte* pStr0 = null; int pStrSize0 = 0; @@ -241646,9 +74036,7 @@ public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [Native return ret; } - [NativeName(NativeNameType.Func, "igPlotEx")] - [return: NativeName(NativeNameType.Type, "int")] - public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [NativeName(NativeNameType.Type, "ImGuiPlotType")] ImGuiPlotType plotType, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(ImGuiPlotType plot_type, const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2 size_arg)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg) + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) { fixed (byte* poverlayText = &overlayText) { @@ -241657,9 +74045,7 @@ public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [Native } } - [NativeName(NativeNameType.Func, "igPlotEx")] - [return: NativeName(NativeNameType.Type, "int")] - public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [NativeName(NativeNameType.Type, "ImGuiPlotType")] ImGuiPlotType plotType, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(ImGuiPlotType plot_type, const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2 size_arg)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg) + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, byte* label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) { byte* pStr0 = null; int pStrSize0 = 0; @@ -241686,9 +74072,7 @@ public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [Native return ret; } - [NativeName(NativeNameType.Func, "igPlotEx")] - [return: NativeName(NativeNameType.Type, "int")] - public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [NativeName(NativeNameType.Type, "ImGuiPlotType")] ImGuiPlotType plotType, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(ImGuiPlotType plot_type, const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2 size_arg)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] ref byte overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg) + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, ref byte label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, ref byte overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) { fixed (byte* plabel = &label) { @@ -241700,9 +74084,7 @@ public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [Native } } - [NativeName(NativeNameType.Func, "igPlotEx")] - [return: NativeName(NativeNameType.Type, "int")] - public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [NativeName(NativeNameType.Type, "ImGuiPlotType")] ImGuiPlotType plotType, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "values_getter")] [NativeName(NativeNameType.Type, "float (*)(ImGuiPlotType plot_type, const char* label, float (*)(void* data, int idx)* values_getter, void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2 size_arg)*")] delegate*, void*, int, int, byte*, float, float, Vector2> valuesGetter, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data, [NativeName(NativeNameType.Param, "values_count")] [NativeName(NativeNameType.Type, "int")] int valuesCount, [NativeName(NativeNameType.Param, "values_offset")] [NativeName(NativeNameType.Type, "int")] int valuesOffset, [NativeName(NativeNameType.Param, "overlay_text")] [NativeName(NativeNameType.Type, "const char*")] string overlayText, [NativeName(NativeNameType.Param, "scale_min")] [NativeName(NativeNameType.Type, "float")] float scaleMin, [NativeName(NativeNameType.Param, "scale_max")] [NativeName(NativeNameType.Type, "float")] float scaleMax, [NativeName(NativeNameType.Param, "size_arg")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 sizeArg) + /// /// To be documented. /// public static int PlotEx( ImGuiPlotType plotType, string label, delegate*, void*, int, int, byte*, float, float, Vector2, float> valuesGetter, void* data, int valuesCount, int valuesOffset, string overlayText, float scaleMin, float scaleMax, Vector2 sizeArg) { byte* pStr0 = null; int pStrSize0 = 0; @@ -241753,64 +74135,47 @@ public static int PlotEx([NativeName(NativeNameType.Param, "plot_type")] [Native /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShadeVertsLinearColorGradientKeepAlpha")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShadeVertsLinearColorGradientKeepAlpha")] - internal static extern void ShadeVertsLinearColorGradientKeepAlphaNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "vert_start_idx")] [NativeName(NativeNameType.Type, "int")] int vertStartIdx, [NativeName(NativeNameType.Param, "vert_end_idx")] [NativeName(NativeNameType.Type, "int")] int vertEndIdx, [NativeName(NativeNameType.Param, "gradient_p0")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gradientP0, [NativeName(NativeNameType.Param, "gradient_p1")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gradientP1, [NativeName(NativeNameType.Param, "col0")] [NativeName(NativeNameType.Type, "ImU32")] uint col0, [NativeName(NativeNameType.Param, "col1")] [NativeName(NativeNameType.Type, "ImU32")] uint col1); - - [NativeName(NativeNameType.Func, "igShadeVertsLinearColorGradientKeepAlpha")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShadeVertsLinearColorGradientKeepAlpha([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "vert_start_idx")] [NativeName(NativeNameType.Type, "int")] int vertStartIdx, [NativeName(NativeNameType.Param, "vert_end_idx")] [NativeName(NativeNameType.Type, "int")] int vertEndIdx, [NativeName(NativeNameType.Param, "gradient_p0")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gradientP0, [NativeName(NativeNameType.Param, "gradient_p1")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gradientP1, [NativeName(NativeNameType.Param, "col0")] [NativeName(NativeNameType.Type, "ImU32")] uint col0, [NativeName(NativeNameType.Param, "col1")] [NativeName(NativeNameType.Type, "ImU32")] uint col1) - { - ShadeVertsLinearColorGradientKeepAlphaNative(drawList, vertStartIdx, vertEndIdx, gradientP0, gradientP1, col0, col1); - } + [LibraryImport(LibName, EntryPoint = "igShadeVertsLinearColorGradientKeepAlpha")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShadeVertsLinearColorGradientKeepAlphaNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1); - [NativeName(NativeNameType.Func, "igShadeVertsLinearColorGradientKeepAlpha")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShadeVertsLinearColorGradientKeepAlpha([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "vert_start_idx")] [NativeName(NativeNameType.Type, "int")] int vertStartIdx, [NativeName(NativeNameType.Param, "vert_end_idx")] [NativeName(NativeNameType.Type, "int")] int vertEndIdx, [NativeName(NativeNameType.Param, "gradient_p0")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gradientP0, [NativeName(NativeNameType.Param, "gradient_p1")] [NativeName(NativeNameType.Type, "ImVec2")] Vector2 gradientP1, [NativeName(NativeNameType.Param, "col0")] [NativeName(NativeNameType.Type, "ImU32")] uint col0, [NativeName(NativeNameType.Param, "col1")] [NativeName(NativeNameType.Type, "ImU32")] uint col1) + /// /// To be documented. /// public static void ShadeVertsLinearColorGradientKeepAlpha( ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 gradientp0, Vector2 gradientp1, uint col0, uint col1) { - fixed (ImDrawList* pdrawList = &drawList) - { - ShadeVertsLinearColorGradientKeepAlphaNative((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, gradientP0, gradientP1, col0, col1); - } + ShadeVertsLinearColorGradientKeepAlphaNative(drawList, vertStartIdx, vertEndIdx, gradientp0, gradientp1, col0, col1); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShadeVertsLinearUV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShadeVertsLinearUV")] - internal static extern void ShadeVertsLinearUVNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "vert_start_idx")] [NativeName(NativeNameType.Type, "int")] int vertStartIdx, [NativeName(NativeNameType.Param, "vert_end_idx")] [NativeName(NativeNameType.Type, "int")] int vertEndIdx, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "uv_a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvA, [NativeName(NativeNameType.Param, "uv_b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvB, [NativeName(NativeNameType.Param, "clamp")] [NativeName(NativeNameType.Type, "bool")] byte clamp); + [LibraryImport(LibName, EntryPoint = "igShadeVertsLinearUV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShadeVertsLinearUVNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, byte clamp); - [NativeName(NativeNameType.Func, "igShadeVertsLinearUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShadeVertsLinearUV([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "vert_start_idx")] [NativeName(NativeNameType.Type, "int")] int vertStartIdx, [NativeName(NativeNameType.Param, "vert_end_idx")] [NativeName(NativeNameType.Type, "int")] int vertEndIdx, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "uv_a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvA, [NativeName(NativeNameType.Param, "uv_b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvB, [NativeName(NativeNameType.Param, "clamp")] [NativeName(NativeNameType.Type, "bool")] bool clamp) + /// /// To be documented. /// public static void ShadeVertsLinearUV( ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, bool clamp) { ShadeVertsLinearUVNative(drawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "igShadeVertsLinearUV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShadeVertsLinearUV([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "vert_start_idx")] [NativeName(NativeNameType.Type, "int")] int vertStartIdx, [NativeName(NativeNameType.Param, "vert_end_idx")] [NativeName(NativeNameType.Type, "int")] int vertEndIdx, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "uv_a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvA, [NativeName(NativeNameType.Param, "uv_b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvB, [NativeName(NativeNameType.Param, "clamp")] [NativeName(NativeNameType.Type, "bool")] bool clamp) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igShadeVertsTransformPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShadeVertsTransformPosNative(ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 pivotIn, float cosA, float sinA, Vector2 pivotOut); + + /// /// To be documented. /// public static void ShadeVertsTransformPos( ImDrawList* drawList, int vertStartIdx, int vertEndIdx, Vector2 pivotIn, float cosA, float sinA, Vector2 pivotOut) { - fixed (ImDrawList* pdrawList = &drawList) - { - ShadeVertsLinearUVNative((ImDrawList*)pdrawList, vertStartIdx, vertEndIdx, a, b, uvA, uvB, clamp ? (byte)1 : (byte)0); - } + ShadeVertsTransformPosNative(drawList, vertStartIdx, vertEndIdx, pivotIn, cosA, sinA, pivotOut); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGcCompactTransientMiscBuffers")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGcCompactTransientMiscBuffers")] - internal static extern void GcCompactTransientMiscBuffersNative(); + [LibraryImport(LibName, EntryPoint = "igGcCompactTransientMiscBuffers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GcCompactTransientMiscBuffersNative(); - [NativeName(NativeNameType.Func, "igGcCompactTransientMiscBuffers")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GcCompactTransientMiscBuffers() + /// /// To be documented. /// public static void GcCompactTransientMiscBuffers() { GcCompactTransientMiscBuffersNative(); } @@ -241818,296 +74183,184 @@ public static void GcCompactTransientMiscBuffers() /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGcCompactTransientWindowBuffers")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGcCompactTransientWindowBuffers")] - internal static extern void GcCompactTransientWindowBuffersNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "igGcCompactTransientWindowBuffers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GcCompactTransientWindowBuffersNative(ImGuiWindow* window); - [NativeName(NativeNameType.Func, "igGcCompactTransientWindowBuffers")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GcCompactTransientWindowBuffers([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + /// /// To be documented. /// public static void GcCompactTransientWindowBuffers( ImGuiWindow* window) { GcCompactTransientWindowBuffersNative(window); } - [NativeName(NativeNameType.Func, "igGcCompactTransientWindowBuffers")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GcCompactTransientWindowBuffers([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - GcCompactTransientWindowBuffersNative((ImGuiWindow*)pwindow); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igGcAwakeTransientWindowBuffers")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGcAwakeTransientWindowBuffers")] - internal static extern void GcAwakeTransientWindowBuffersNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window); + [LibraryImport(LibName, EntryPoint = "igGcAwakeTransientWindowBuffers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void GcAwakeTransientWindowBuffersNative(ImGuiWindow* window); - [NativeName(NativeNameType.Func, "igGcAwakeTransientWindowBuffers")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GcAwakeTransientWindowBuffers([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window) + /// /// To be documented. /// public static void GcAwakeTransientWindowBuffers( ImGuiWindow* window) { GcAwakeTransientWindowBuffersNative(window); } - [NativeName(NativeNameType.Func, "igGcAwakeTransientWindowBuffers")] - [return: NativeName(NativeNameType.Type, "void")] - public static void GcAwakeTransientWindowBuffers([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window) - { - fixed (ImGuiWindow* pwindow = &window) - { - GcAwakeTransientWindowBuffersNative((ImGuiWindow*)pwindow); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugLog")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugLog")] - internal static extern void DebugLogNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); + [LibraryImport(LibName, EntryPoint = "igDebugLog")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugLogNative(byte* fmt); - [NativeName(NativeNameType.Func, "igDebugLog")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugLog([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + /// /// To be documented. /// public static void DebugLog( byte* fmt) { DebugLogNative(fmt); } - [NativeName(NativeNameType.Func, "igDebugLog")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugLog([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - DebugLogNative((byte*)pfmt); - } - } - - [NativeName(NativeNameType.Func, "igDebugLog")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugLog([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugLogNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugLogV")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugLogV")] - internal static extern void DebugLogVNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args); + [LibraryImport(LibName, EntryPoint = "igDebugLogV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugLogVNative(byte* fmt, nuint args); - [NativeName(NativeNameType.Func, "igDebugLogV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugLogV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + /// /// To be documented. /// public static void DebugLogV( byte* fmt, nuint args) { DebugLogVNative(fmt, args); } - [NativeName(NativeNameType.Func, "igDebugLogV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugLogV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugAllocHook")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugAllocHookNative(ImGuiDebugAllocInfo* info, int frameCount, void* ptr, ulong size); + + /// /// To be documented. /// public static void DebugAllocHook( ImGuiDebugAllocInfo* info, int frameCount, void* ptr, ulong size) { - fixed (byte* pfmt = &fmt) - { - DebugLogVNative((byte*)pfmt, args); - } + DebugAllocHookNative(info, frameCount, ptr, size); } - [NativeName(NativeNameType.Func, "igDebugLogV")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugLogV([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + /// /// To be documented. /// public static void DebugAllocHook( ImGuiDebugAllocInfo* info, int frameCount, void* ptr, nuint size) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugLogVNative(pStr0, args); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } + DebugAllocHookNative(info, frameCount, ptr, size); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igErrorCheckEndFrameRecover")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igErrorCheckEndFrameRecover")] - internal static extern void ErrorCheckEndFrameRecoverNative([NativeName(NativeNameType.Param, "log_callback")] [NativeName(NativeNameType.Type, "ImGuiErrorLogCallback")] ImGuiErrorLogCallback logCallback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + [LibraryImport(LibName, EntryPoint = "igErrorCheckEndFrameRecover")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ErrorCheckEndFrameRecoverNative(ImGuiErrorLogCallback logCallback, void* userData); - [NativeName(NativeNameType.Func, "igErrorCheckEndFrameRecover")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ErrorCheckEndFrameRecover([NativeName(NativeNameType.Param, "log_callback")] [NativeName(NativeNameType.Type, "ImGuiErrorLogCallback")] ImGuiErrorLogCallback logCallback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void ErrorCheckEndFrameRecover( ImGuiErrorLogCallback logCallback, void* userData) { ErrorCheckEndFrameRecoverNative(logCallback, userData); } - [NativeName(NativeNameType.Func, "igErrorCheckEndFrameRecover")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ErrorCheckEndFrameRecover([NativeName(NativeNameType.Param, "log_callback")] [NativeName(NativeNameType.Type, "ImGuiErrorLogCallback")] ImGuiErrorLogCallback logCallback) - { - ErrorCheckEndFrameRecoverNative(logCallback, (void*)(default)); - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igErrorCheckEndWindowRecover")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igErrorCheckEndWindowRecover")] - internal static extern void ErrorCheckEndWindowRecoverNative([NativeName(NativeNameType.Param, "log_callback")] [NativeName(NativeNameType.Type, "ImGuiErrorLogCallback")] ImGuiErrorLogCallback logCallback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData); + [LibraryImport(LibName, EntryPoint = "igErrorCheckEndWindowRecover")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ErrorCheckEndWindowRecoverNative(ImGuiErrorLogCallback logCallback, void* userData); - [NativeName(NativeNameType.Func, "igErrorCheckEndWindowRecover")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ErrorCheckEndWindowRecover([NativeName(NativeNameType.Param, "log_callback")] [NativeName(NativeNameType.Type, "ImGuiErrorLogCallback")] ImGuiErrorLogCallback logCallback, [NativeName(NativeNameType.Param, "user_data")] [NativeName(NativeNameType.Type, "void*")] void* userData) + /// /// To be documented. /// public static void ErrorCheckEndWindowRecover( ImGuiErrorLogCallback logCallback, void* userData) { ErrorCheckEndWindowRecoverNative(logCallback, userData); } - [NativeName(NativeNameType.Func, "igErrorCheckEndWindowRecover")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ErrorCheckEndWindowRecover([NativeName(NativeNameType.Param, "log_callback")] [NativeName(NativeNameType.Type, "ImGuiErrorLogCallback")] ImGuiErrorLogCallback logCallback) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igErrorCheckUsingSetCursorPosToExtendParentBoundaries")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ErrorCheckUsingSetCursorPosToExtendParentBoundariesNative(); + + /// /// To be documented. /// public static void ErrorCheckUsingSetCursorPosToExtendParentBoundaries() { - ErrorCheckEndWindowRecoverNative(logCallback, (void*)(default)); + ErrorCheckUsingSetCursorPosToExtendParentBoundariesNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igErrorCheckUsingSetCursorPosToExtendParentBoundaries")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igErrorCheckUsingSetCursorPosToExtendParentBoundaries")] - internal static extern void ErrorCheckUsingSetCursorPosToExtendParentBoundariesNative(); + [LibraryImport(LibName, EntryPoint = "igDebugDrawCursorPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugDrawCursorPosNative(uint col); - [NativeName(NativeNameType.Func, "igErrorCheckUsingSetCursorPosToExtendParentBoundaries")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ErrorCheckUsingSetCursorPosToExtendParentBoundaries() + /// /// To be documented. /// public static void DebugDrawCursorPos( uint col) { - ErrorCheckUsingSetCursorPosToExtendParentBoundariesNative(); + DebugDrawCursorPosNative(col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugLocateItem")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugLocateItem")] - internal static extern void DebugLocateItemNative([NativeName(NativeNameType.Param, "target_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int targetId); + [LibraryImport(LibName, EntryPoint = "igDebugDrawLineExtents")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugDrawLineExtentsNative(uint col); - /// /// Call sparingly: only 1 at the same time! /// [NativeName(NativeNameType.Func, "igDebugLocateItem")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugLocateItem([NativeName(NativeNameType.Param, "target_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int targetId) + /// /// To be documented. /// public static void DebugDrawLineExtents( uint col) { - DebugLocateItemNative(targetId); + DebugDrawLineExtentsNative(col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugLocateItemOnHover")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugLocateItemOnHover")] - internal static extern void DebugLocateItemOnHoverNative([NativeName(NativeNameType.Param, "target_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int targetId); + [LibraryImport(LibName, EntryPoint = "igDebugDrawItemRect")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugDrawItemRectNative(uint col); - /// /// Only call on reaction to a mouse Hover: because only 1 at the same time! /// [NativeName(NativeNameType.Func, "igDebugLocateItemOnHover")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugLocateItemOnHover([NativeName(NativeNameType.Param, "target_id")] [NativeName(NativeNameType.Type, "ImGuiID")] int targetId) + /// /// To be documented. /// public static void DebugDrawItemRect( uint col) { - DebugLocateItemOnHoverNative(targetId); + DebugDrawItemRectNative(col); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugLocateItemResolveWithLastItem")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugLocateItemResolveWithLastItem")] - internal static extern void DebugLocateItemResolveWithLastItemNative(); + [LibraryImport(LibName, EntryPoint = "igDebugLocateItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugLocateItemNative(uint targetId); - [NativeName(NativeNameType.Func, "igDebugLocateItemResolveWithLastItem")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugLocateItemResolveWithLastItem() + /// /// To be documented. /// public static void DebugLocateItem( uint targetId) { - DebugLocateItemResolveWithLastItemNative(); + DebugLocateItemNative(targetId); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugDrawItemRect")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugDrawItemRect")] - internal static extern void DebugDrawItemRectNative([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col); + [LibraryImport(LibName, EntryPoint = "igDebugLocateItemOnHover")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugLocateItemOnHoverNative(uint targetId); - [NativeName(NativeNameType.Func, "igDebugDrawItemRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugDrawItemRect([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + /// /// To be documented. /// public static void DebugLocateItemOnHover( uint targetId) { - DebugDrawItemRectNative(col); + DebugLocateItemOnHoverNative(targetId); } - [NativeName(NativeNameType.Func, "igDebugDrawItemRect")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugDrawItemRect() + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugLocateItemResolveWithLastItem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugLocateItemResolveWithLastItemNative(); + + /// /// To be documented. /// public static void DebugLocateItemResolveWithLastItem() { - DebugDrawItemRectNative((uint)(4278190335)); + DebugLocateItemResolveWithLastItemNative(); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugStartItemPicker")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugStartItemPicker")] - internal static extern void DebugStartItemPickerNative(); + [LibraryImport(LibName, EntryPoint = "igDebugStartItemPicker")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugStartItemPickerNative(); - [NativeName(NativeNameType.Func, "igDebugStartItemPicker")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugStartItemPicker() + /// /// To be documented. /// public static void DebugStartItemPicker() { DebugStartItemPickerNative(); } @@ -242115,39 +74368,23 @@ public static void DebugStartItemPicker() /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igShowFontAtlas")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igShowFontAtlas")] - internal static extern void ShowFontAtlasNative([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas); + [LibraryImport(LibName, EntryPoint = "igShowFontAtlas")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ShowFontAtlasNative(ImFontAtlas* atlas); - [NativeName(NativeNameType.Func, "igShowFontAtlas")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowFontAtlas([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas) + /// /// To be documented. /// public static void ShowFontAtlas( ImFontAtlas* atlas) { ShowFontAtlasNative(atlas); } - [NativeName(NativeNameType.Func, "igShowFontAtlas")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ShowFontAtlas([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ShowFontAtlasNative((ImFontAtlas*)patlas); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugHookIdInfo")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugHookIdInfo")] - internal static extern void DebugHookIdInfoNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "data_id")] [NativeName(NativeNameType.Type, "const void*")] void* dataId, [NativeName(NativeNameType.Param, "data_id_end")] [NativeName(NativeNameType.Type, "const void*")] void* dataIdEnd); + [LibraryImport(LibName, EntryPoint = "igDebugHookIdInfo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugHookIdInfoNative(uint id, int dataType, void* dataId, void* dataIdEnd); - [NativeName(NativeNameType.Func, "igDebugHookIdInfo")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugHookIdInfo([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id, [NativeName(NativeNameType.Param, "data_type")] [NativeName(NativeNameType.Type, "ImGuiDataType")] ImGuiDataType dataType, [NativeName(NativeNameType.Param, "data_id")] [NativeName(NativeNameType.Type, "const void*")] void* dataId, [NativeName(NativeNameType.Param, "data_id_end")] [NativeName(NativeNameType.Type, "const void*")] void* dataIdEnd) + /// /// To be documented. /// public static void DebugHookIdInfo( uint id, int dataType, void* dataId, void* dataIdEnd) { DebugHookIdInfoNative(id, dataType, dataId, dataIdEnd); } @@ -242155,56 +74392,28 @@ public static void DebugHookIdInfo([NativeName(NativeNameType.Param, "id")] [Nat /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeColumns")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeColumns")] - internal static extern void DebugNodeColumnsNative([NativeName(NativeNameType.Param, "columns")] [NativeName(NativeNameType.Type, "ImGuiOldColumns*")] ImGuiOldColumns* columns); + [LibraryImport(LibName, EntryPoint = "igDebugNodeColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeColumnsNative(ImGuiOldColumns* columns); - [NativeName(NativeNameType.Func, "igDebugNodeColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeColumns([NativeName(NativeNameType.Param, "columns")] [NativeName(NativeNameType.Type, "ImGuiOldColumns*")] ImGuiOldColumns* columns) + /// /// To be documented. /// public static void DebugNodeColumns( ImGuiOldColumns* columns) { DebugNodeColumnsNative(columns); } - [NativeName(NativeNameType.Func, "igDebugNodeColumns")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeColumns([NativeName(NativeNameType.Param, "columns")] [NativeName(NativeNameType.Type, "ImGuiOldColumns*")] ref ImGuiOldColumns columns) - { - fixed (ImGuiOldColumns* pcolumns = &columns) - { - DebugNodeColumnsNative((ImGuiOldColumns*)pcolumns); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeDockNode")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeDockNode")] - internal static extern void DebugNodeDockNodeNative([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); + [LibraryImport(LibName, EntryPoint = "igDebugNodeDockNode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeDockNodeNative(ImGuiDockNode* node, byte* label); - [NativeName(NativeNameType.Func, "igDebugNodeDockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDockNode([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + /// /// To be documented. /// public static void DebugNodeDockNode( ImGuiDockNode* node, byte* label) { DebugNodeDockNodeNative(node, label); } - [NativeName(NativeNameType.Func, "igDebugNodeDockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDockNode([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - fixed (ImGuiDockNode* pnode = &node) - { - DebugNodeDockNodeNative((ImGuiDockNode*)pnode, label); - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDockNode([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + /// /// To be documented. /// public static void DebugNodeDockNode( ImGuiDockNode* node, ref byte label) { fixed (byte* plabel = &label) { @@ -242212,9 +74421,7 @@ public static void DebugNodeDockNode([NativeName(NativeNameType.Param, "node")] } } - [NativeName(NativeNameType.Func, "igDebugNodeDockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDockNode([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ImGuiDockNode* node, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + /// /// To be documented. /// public static void DebugNodeDockNode( ImGuiDockNode* node, string label) { byte* pStr0 = null; int pStrSize0 = 0; @@ -242240,78 +74447,19 @@ public static void DebugNodeDockNode([NativeName(NativeNameType.Param, "node")] } } - [NativeName(NativeNameType.Func, "igDebugNodeDockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDockNode([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (ImGuiDockNode* pnode = &node) - { - fixed (byte* plabel = &label) - { - DebugNodeDockNodeNative((ImGuiDockNode*)pnode, (byte*)plabel); - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDockNode")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDockNode([NativeName(NativeNameType.Param, "node")] [NativeName(NativeNameType.Type, "ImGuiDockNode*")] ref ImGuiDockNode node, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - fixed (ImGuiDockNode* pnode = &node) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDockNodeNative((ImGuiDockNode*)pnode, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeDrawList")] - internal static extern void DebugNodeDrawListNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); + [LibraryImport(LibName, EntryPoint = "igDebugNodeDrawList")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeDrawListNative(ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, byte* label); - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, byte* label) { DebugNodeDrawListNative(window, viewport, drawList, label); } - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, label); - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ImDrawList* drawList, byte* label) { fixed (ImGuiViewportP* pviewport = &viewport) { @@ -242319,22 +74467,7 @@ public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window") } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, drawList, label); - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ref ImDrawList drawList, byte* label) { fixed (ImDrawList* pdrawList = &drawList) { @@ -242342,22 +74475,7 @@ public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window") } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, (ImDrawList*)pdrawList, label); - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ref ImDrawList drawList, byte* label) { fixed (ImGuiViewportP* pviewport = &viewport) { @@ -242368,25 +74486,7 @@ public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window") } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, label); - } - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, ref byte label) { fixed (byte* plabel = &label) { @@ -242394,9 +74494,7 @@ public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window") } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ImDrawList* drawList, string label) { byte* pStr0 = null; int pStrSize0 = 0; @@ -242422,53 +74520,7 @@ public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window") } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, (byte*)plabel); - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, drawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ImDrawList* drawList, ref byte label) { fixed (ImGuiViewportP* pviewport = &viewport) { @@ -242479,9 +74531,7 @@ public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window") } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ImDrawList* drawList, string label) { fixed (ImGuiViewportP* pviewport = &viewport) { @@ -242510,59 +74560,7 @@ public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window") } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, drawList, (byte*)plabel); - } - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, drawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ref ImDrawList drawList, ref byte label) { fixed (ImDrawList* pdrawList = &drawList) { @@ -242573,9 +74571,7 @@ public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window") } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ImGuiViewportP* viewport, ref ImDrawList drawList, string label) { fixed (ImDrawList* pdrawList = &drawList) { @@ -242604,59 +74600,7 @@ public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window") } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, (ImDrawList*)pdrawList, (byte*)plabel); - } - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImDrawList* pdrawList = &drawList) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative((ImGuiWindow*)pwindow, viewport, (ImDrawList*)pdrawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ref ImDrawList drawList, ref byte label) { fixed (ImGuiViewportP* pviewport = &viewport) { @@ -242670,91 +74614,33 @@ public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window") } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + /// /// To be documented. /// public static void DebugNodeDrawList( ImGuiWindow* window, ref ImGuiViewportP viewport, ref ImDrawList drawList, string label) { fixed (ImGuiViewportP* pviewport = &viewport) { fixed (ImDrawList* pdrawList = &drawList) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (byte* plabel = &label) - { - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, (byte*)plabel); - } - } - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - fixed (ImDrawList* pdrawList = &drawList) + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; + pStr0 = Utils.Alloc(pStrSize0 + 1); } - DebugNodeDrawListNative((ImGuiWindow*)pwindow, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) + else { - Utils.Free(pStr0); + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + DebugNodeDrawListNative(window, (ImGuiViewportP*)pviewport, (ImDrawList*)pdrawList, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); } } } @@ -242763,31 +74649,16 @@ public static void DebugNodeDrawList([NativeName(NativeNameType.Param, "window") /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeDrawCmdShowMeshAndBoundingBox")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeDrawCmdShowMeshAndBoundingBox")] - internal static extern void DebugNodeDrawCmdShowMeshAndBoundingBoxNative([NativeName(NativeNameType.Param, "out_draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* outDrawList, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "draw_cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ImDrawCmd* drawCmd, [NativeName(NativeNameType.Param, "show_mesh")] [NativeName(NativeNameType.Type, "bool")] byte showMesh, [NativeName(NativeNameType.Param, "show_aabb")] [NativeName(NativeNameType.Type, "bool")] byte showAabb); + [LibraryImport(LibName, EntryPoint = "igDebugNodeDrawCmdShowMeshAndBoundingBox")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeDrawCmdShowMeshAndBoundingBoxNative(ImDrawList* outDrawList, ImDrawList* drawList, ImDrawCmd* drawCmd, byte showMesh, byte showAabb); - [NativeName(NativeNameType.Func, "igDebugNodeDrawCmdShowMeshAndBoundingBox")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawCmdShowMeshAndBoundingBox([NativeName(NativeNameType.Param, "out_draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* outDrawList, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "draw_cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ImDrawCmd* drawCmd, [NativeName(NativeNameType.Param, "show_mesh")] [NativeName(NativeNameType.Type, "bool")] bool showMesh, [NativeName(NativeNameType.Param, "show_aabb")] [NativeName(NativeNameType.Type, "bool")] bool showAabb) + /// /// To be documented. /// public static void DebugNodeDrawCmdShowMeshAndBoundingBox( ImDrawList* outDrawList, ImDrawList* drawList, ImDrawCmd* drawCmd, bool showMesh, bool showAabb) { DebugNodeDrawCmdShowMeshAndBoundingBoxNative(outDrawList, drawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); } - [NativeName(NativeNameType.Func, "igDebugNodeDrawCmdShowMeshAndBoundingBox")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawCmdShowMeshAndBoundingBox([NativeName(NativeNameType.Param, "out_draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList outDrawList, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "draw_cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ImDrawCmd* drawCmd, [NativeName(NativeNameType.Param, "show_mesh")] [NativeName(NativeNameType.Type, "bool")] bool showMesh, [NativeName(NativeNameType.Param, "show_aabb")] [NativeName(NativeNameType.Type, "bool")] bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, drawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawCmdShowMeshAndBoundingBox")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawCmdShowMeshAndBoundingBox([NativeName(NativeNameType.Param, "out_draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* outDrawList, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "draw_cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ImDrawCmd* drawCmd, [NativeName(NativeNameType.Param, "show_mesh")] [NativeName(NativeNameType.Type, "bool")] bool showMesh, [NativeName(NativeNameType.Param, "show_aabb")] [NativeName(NativeNameType.Type, "bool")] bool showAabb) + /// /// To be documented. /// public static void DebugNodeDrawCmdShowMeshAndBoundingBox( ImDrawList* outDrawList, ref ImDrawList drawList, ImDrawCmd* drawCmd, bool showMesh, bool showAabb) { fixed (ImDrawList* pdrawList = &drawList) { @@ -242795,22 +74666,7 @@ public static void DebugNodeDrawCmdShowMeshAndBoundingBox([NativeName(NativeName } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawCmdShowMeshAndBoundingBox")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawCmdShowMeshAndBoundingBox([NativeName(NativeNameType.Param, "out_draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList outDrawList, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "draw_cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ImDrawCmd* drawCmd, [NativeName(NativeNameType.Param, "show_mesh")] [NativeName(NativeNameType.Type, "bool")] bool showMesh, [NativeName(NativeNameType.Param, "show_aabb")] [NativeName(NativeNameType.Type, "bool")] bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, (ImDrawList*)pdrawList, drawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawCmdShowMeshAndBoundingBox")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawCmdShowMeshAndBoundingBox([NativeName(NativeNameType.Param, "out_draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* outDrawList, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "draw_cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ref ImDrawCmd drawCmd, [NativeName(NativeNameType.Param, "show_mesh")] [NativeName(NativeNameType.Type, "bool")] bool showMesh, [NativeName(NativeNameType.Param, "show_aabb")] [NativeName(NativeNameType.Type, "bool")] bool showAabb) + /// /// To be documented. /// public static void DebugNodeDrawCmdShowMeshAndBoundingBox( ImDrawList* outDrawList, ImDrawList* drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) { fixed (ImDrawCmd* pdrawCmd = &drawCmd) { @@ -242818,22 +74674,7 @@ public static void DebugNodeDrawCmdShowMeshAndBoundingBox([NativeName(NativeName } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawCmdShowMeshAndBoundingBox")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawCmdShowMeshAndBoundingBox([NativeName(NativeNameType.Param, "out_draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList outDrawList, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "draw_cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ref ImDrawCmd drawCmd, [NativeName(NativeNameType.Param, "show_mesh")] [NativeName(NativeNameType.Type, "bool")] bool showMesh, [NativeName(NativeNameType.Param, "show_aabb")] [NativeName(NativeNameType.Type, "bool")] bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - fixed (ImDrawCmd* pdrawCmd = &drawCmd) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, drawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeDrawCmdShowMeshAndBoundingBox")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawCmdShowMeshAndBoundingBox([NativeName(NativeNameType.Param, "out_draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* outDrawList, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "draw_cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ref ImDrawCmd drawCmd, [NativeName(NativeNameType.Param, "show_mesh")] [NativeName(NativeNameType.Type, "bool")] bool showMesh, [NativeName(NativeNameType.Param, "show_aabb")] [NativeName(NativeNameType.Type, "bool")] bool showAabb) + /// /// To be documented. /// public static void DebugNodeDrawCmdShowMeshAndBoundingBox( ImDrawList* outDrawList, ref ImDrawList drawList, ref ImDrawCmd drawCmd, bool showMesh, bool showAabb) { fixed (ImDrawList* pdrawList = &drawList) { @@ -242844,75 +74685,31 @@ public static void DebugNodeDrawCmdShowMeshAndBoundingBox([NativeName(NativeName } } - [NativeName(NativeNameType.Func, "igDebugNodeDrawCmdShowMeshAndBoundingBox")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeDrawCmdShowMeshAndBoundingBox([NativeName(NativeNameType.Param, "out_draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList outDrawList, [NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "const ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "draw_cmd")] [NativeName(NativeNameType.Type, "const ImDrawCmd*")] ref ImDrawCmd drawCmd, [NativeName(NativeNameType.Param, "show_mesh")] [NativeName(NativeNameType.Type, "bool")] bool showMesh, [NativeName(NativeNameType.Param, "show_aabb")] [NativeName(NativeNameType.Type, "bool")] bool showAabb) - { - fixed (ImDrawList* poutDrawList = &outDrawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImDrawCmd* pdrawCmd = &drawCmd) - { - DebugNodeDrawCmdShowMeshAndBoundingBoxNative((ImDrawList*)poutDrawList, (ImDrawList*)pdrawList, (ImDrawCmd*)pdrawCmd, showMesh ? (byte)1 : (byte)0, showAabb ? (byte)1 : (byte)0); - } - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeFont")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeFont")] - internal static extern void DebugNodeFontNative([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font); + [LibraryImport(LibName, EntryPoint = "igDebugNodeFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeFontNative(ImFont* font); - [NativeName(NativeNameType.Func, "igDebugNodeFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeFont([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font) + /// /// To be documented. /// public static void DebugNodeFont( ImFont* font) { DebugNodeFontNative(font); } - [NativeName(NativeNameType.Func, "igDebugNodeFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeFont([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font) - { - fixed (ImFont* pfont = &font) - { - DebugNodeFontNative((ImFont*)pfont); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeFontGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeFontGlyph")] - internal static extern void DebugNodeFontGlyphNative([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "const ImFontGlyph*")] ImFontGlyph* glyph); + [LibraryImport(LibName, EntryPoint = "igDebugNodeFontGlyph")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeFontGlyphNative(ImFont* font, ImFontGlyph* glyph); - [NativeName(NativeNameType.Func, "igDebugNodeFontGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeFontGlyph([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "const ImFontGlyph*")] ImFontGlyph* glyph) + /// /// To be documented. /// public static void DebugNodeFontGlyph( ImFont* font, ImFontGlyph* glyph) { DebugNodeFontGlyphNative(font, glyph); } - [NativeName(NativeNameType.Func, "igDebugNodeFontGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeFontGlyph([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "const ImFontGlyph*")] ImFontGlyph* glyph) - { - fixed (ImFont* pfont = &font) - { - DebugNodeFontGlyphNative((ImFont*)pfont, glyph); - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeFontGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeFontGlyph([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "const ImFontGlyph*")] ref ImFontGlyph glyph) + /// /// To be documented. /// public static void DebugNodeFontGlyph( ImFont* font, ref ImFontGlyph glyph) { fixed (ImFontGlyph* pglyph = &glyph) { @@ -242920,47 +74717,19 @@ public static void DebugNodeFontGlyph([NativeName(NativeNameType.Param, "font")] } } - [NativeName(NativeNameType.Func, "igDebugNodeFontGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeFontGlyph([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "glyph")] [NativeName(NativeNameType.Type, "const ImFontGlyph*")] ref ImFontGlyph glyph) - { - fixed (ImFont* pfont = &font) - { - fixed (ImFontGlyph* pglyph = &glyph) - { - DebugNodeFontGlyphNative((ImFont*)pfont, (ImFontGlyph*)pglyph); - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeStorage")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeStorage")] - internal static extern void DebugNodeStorageNative([NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* storage, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); + [LibraryImport(LibName, EntryPoint = "igDebugNodeStorage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeStorageNative(ImGuiStorage* storage, byte* label); - [NativeName(NativeNameType.Func, "igDebugNodeStorage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeStorage([NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* storage, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + /// /// To be documented. /// public static void DebugNodeStorage( ImGuiStorage* storage, byte* label) { DebugNodeStorageNative(storage, label); } - [NativeName(NativeNameType.Func, "igDebugNodeStorage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeStorage([NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage storage, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - fixed (ImGuiStorage* pstorage = &storage) - { - DebugNodeStorageNative((ImGuiStorage*)pstorage, label); - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeStorage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeStorage([NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* storage, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + /// /// To be documented. /// public static void DebugNodeStorage( ImGuiStorage* storage, ref byte label) { fixed (byte* plabel = &label) { @@ -242968,9 +74737,7 @@ public static void DebugNodeStorage([NativeName(NativeNameType.Param, "storage") } } - [NativeName(NativeNameType.Func, "igDebugNodeStorage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeStorage([NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ImGuiStorage* storage, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + /// /// To be documented. /// public static void DebugNodeStorage( ImGuiStorage* storage, string label) { byte* pStr0 = null; int pStrSize0 = 0; @@ -242996,78 +74763,19 @@ public static void DebugNodeStorage([NativeName(NativeNameType.Param, "storage") } } - [NativeName(NativeNameType.Func, "igDebugNodeStorage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeStorage([NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage storage, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (ImGuiStorage* pstorage = &storage) - { - fixed (byte* plabel = &label) - { - DebugNodeStorageNative((ImGuiStorage*)pstorage, (byte*)plabel); - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeStorage")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeStorage([NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "ImGuiStorage*")] ref ImGuiStorage storage, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - fixed (ImGuiStorage* pstorage = &storage) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeStorageNative((ImGuiStorage*)pstorage, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeTabBar")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeTabBar")] - internal static extern void DebugNodeTabBarNative([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); + [LibraryImport(LibName, EntryPoint = "igDebugNodeTabBar")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeTabBarNative(ImGuiTabBar* tabBar, byte* label); - [NativeName(NativeNameType.Func, "igDebugNodeTabBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeTabBar([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + /// /// To be documented. /// public static void DebugNodeTabBar( ImGuiTabBar* tabBar, byte* label) { DebugNodeTabBarNative(tabBar, label); } - [NativeName(NativeNameType.Func, "igDebugNodeTabBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeTabBar([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - DebugNodeTabBarNative((ImGuiTabBar*)ptabBar, label); - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeTabBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeTabBar([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + /// /// To be documented. /// public static void DebugNodeTabBar( ImGuiTabBar* tabBar, ref byte label) { fixed (byte* plabel = &label) { @@ -243075,9 +74783,7 @@ public static void DebugNodeTabBar([NativeName(NativeNameType.Param, "tab_bar")] } } - [NativeName(NativeNameType.Func, "igDebugNodeTabBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeTabBar([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ImGuiTabBar* tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + /// /// To be documented. /// public static void DebugNodeTabBar( ImGuiTabBar* tabBar, string label) { byte* pStr0 = null; int pStrSize0 = 0; @@ -243103,153 +74809,67 @@ public static void DebugNodeTabBar([NativeName(NativeNameType.Param, "tab_bar")] } } - [NativeName(NativeNameType.Func, "igDebugNodeTabBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeTabBar([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - fixed (byte* plabel = &label) - { - DebugNodeTabBarNative((ImGuiTabBar*)ptabBar, (byte*)plabel); - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeTabBar")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeTabBar([NativeName(NativeNameType.Param, "tab_bar")] [NativeName(NativeNameType.Type, "ImGuiTabBar*")] ref ImGuiTabBar tabBar, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - fixed (ImGuiTabBar* ptabBar = &tabBar) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeTabBarNative((ImGuiTabBar*)ptabBar, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeTable")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeTable")] - internal static extern void DebugNodeTableNative([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table); + [LibraryImport(LibName, EntryPoint = "igDebugNodeTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeTableNative(ImGuiTable* table); - [NativeName(NativeNameType.Func, "igDebugNodeTable")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeTable([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ImGuiTable* table) + /// /// To be documented. /// public static void DebugNodeTable( ImGuiTable* table) { DebugNodeTableNative(table); } - [NativeName(NativeNameType.Func, "igDebugNodeTable")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeTable([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "ImGuiTable*")] ref ImGuiTable table) - { - fixed (ImGuiTable* ptable = &table) - { - DebugNodeTableNative((ImGuiTable*)ptable); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeTableSettings")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeTableSettings")] - internal static extern void DebugNodeTableSettingsNative([NativeName(NativeNameType.Param, "settings")] [NativeName(NativeNameType.Type, "ImGuiTableSettings*")] ImGuiTableSettings* settings); + [LibraryImport(LibName, EntryPoint = "igDebugNodeTableSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeTableSettingsNative(ImGuiTableSettings* settings); - [NativeName(NativeNameType.Func, "igDebugNodeTableSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeTableSettings([NativeName(NativeNameType.Param, "settings")] [NativeName(NativeNameType.Type, "ImGuiTableSettings*")] ImGuiTableSettings* settings) + /// /// To be documented. /// public static void DebugNodeTableSettings( ImGuiTableSettings* settings) { DebugNodeTableSettingsNative(settings); } - [NativeName(NativeNameType.Func, "igDebugNodeTableSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeTableSettings([NativeName(NativeNameType.Param, "settings")] [NativeName(NativeNameType.Type, "ImGuiTableSettings*")] ref ImGuiTableSettings settings) - { - fixed (ImGuiTableSettings* psettings = &settings) - { - DebugNodeTableSettingsNative((ImGuiTableSettings*)psettings); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeInputTextState")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeInputTextState")] - internal static extern void DebugNodeInputTextStateNative([NativeName(NativeNameType.Param, "state")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* state); + [LibraryImport(LibName, EntryPoint = "igDebugNodeInputTextState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeInputTextStateNative(ImGuiInputTextState* state); - [NativeName(NativeNameType.Func, "igDebugNodeInputTextState")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeInputTextState([NativeName(NativeNameType.Param, "state")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ImGuiInputTextState* state) + /// /// To be documented. /// public static void DebugNodeInputTextState( ImGuiInputTextState* state) { DebugNodeInputTextStateNative(state); } - [NativeName(NativeNameType.Func, "igDebugNodeInputTextState")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeInputTextState([NativeName(NativeNameType.Param, "state")] [NativeName(NativeNameType.Type, "ImGuiInputTextState*")] ref ImGuiInputTextState state) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igDebugNodeTypingSelectState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeTypingSelectStateNative(ImGuiTypingSelectState* state); + + /// /// To be documented. /// public static void DebugNodeTypingSelectState( ImGuiTypingSelectState* state) { - fixed (ImGuiInputTextState* pstate = &state) - { - DebugNodeInputTextStateNative((ImGuiInputTextState*)pstate); - } + DebugNodeTypingSelectStateNative(state); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeWindow")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeWindow")] - internal static extern void DebugNodeWindowNative([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); + [LibraryImport(LibName, EntryPoint = "igDebugNodeWindow")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeWindowNative(ImGuiWindow* window, byte* label); - [NativeName(NativeNameType.Func, "igDebugNodeWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + /// /// To be documented. /// public static void DebugNodeWindow( ImGuiWindow* window, byte* label) { DebugNodeWindowNative(window, label); } - [NativeName(NativeNameType.Func, "igDebugNodeWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - fixed (ImGuiWindow* pwindow = &window) - { - DebugNodeWindowNative((ImGuiWindow*)pwindow, label); - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + /// /// To be documented. /// public static void DebugNodeWindow( ImGuiWindow* window, ref byte label) { fixed (byte* plabel = &label) { @@ -243257,9 +74877,7 @@ public static void DebugNodeWindow([NativeName(NativeNameType.Param, "window")] } } - [NativeName(NativeNameType.Func, "igDebugNodeWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* window, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + /// /// To be documented. /// public static void DebugNodeWindow( ImGuiWindow* window, string label) { byte* pStr0 = null; int pStrSize0 = 0; @@ -243285,103 +74903,31 @@ public static void DebugNodeWindow([NativeName(NativeNameType.Param, "window")] } } - [NativeName(NativeNameType.Func, "igDebugNodeWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (ImGuiWindow* pwindow = &window) - { - fixed (byte* plabel = &label) - { - DebugNodeWindowNative((ImGuiWindow*)pwindow, (byte*)plabel); - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeWindow")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindow([NativeName(NativeNameType.Param, "window")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow window, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - fixed (ImGuiWindow* pwindow = &window) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeWindowNative((ImGuiWindow*)pwindow, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeWindowSettings")] - internal static extern void DebugNodeWindowSettingsNative([NativeName(NativeNameType.Param, "settings")] [NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] ImGuiWindowSettings* settings); + [LibraryImport(LibName, EntryPoint = "igDebugNodeWindowSettings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeWindowSettingsNative(ImGuiWindowSettings* settings); - [NativeName(NativeNameType.Func, "igDebugNodeWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowSettings([NativeName(NativeNameType.Param, "settings")] [NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] ImGuiWindowSettings* settings) + /// /// To be documented. /// public static void DebugNodeWindowSettings( ImGuiWindowSettings* settings) { DebugNodeWindowSettingsNative(settings); } - [NativeName(NativeNameType.Func, "igDebugNodeWindowSettings")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowSettings([NativeName(NativeNameType.Param, "settings")] [NativeName(NativeNameType.Type, "ImGuiWindowSettings*")] ref ImGuiWindowSettings settings) - { - fixed (ImGuiWindowSettings* psettings = &settings) - { - DebugNodeWindowSettingsNative((ImGuiWindowSettings*)psettings); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeWindowsList")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeWindowsList")] - internal static extern void DebugNodeWindowsListNative([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr*")] ImVectorImGuiWindowPtr* windows, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label); + [LibraryImport(LibName, EntryPoint = "igDebugNodeWindowsList")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeWindowsListNative(ImVectorImGuiWindowPtr* windows, byte* label); - [NativeName(NativeNameType.Func, "igDebugNodeWindowsList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowsList([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr*")] ImVectorImGuiWindowPtr* windows, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + /// /// To be documented. /// public static void DebugNodeWindowsList( ImVectorImGuiWindowPtr* windows, byte* label) { DebugNodeWindowsListNative(windows, label); } - [NativeName(NativeNameType.Func, "igDebugNodeWindowsList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowsList([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr*")] ref ImVectorImGuiWindowPtr windows, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) - { - fixed (ImVectorImGuiWindowPtr* pwindows = &windows) - { - DebugNodeWindowsListNative((ImVectorImGuiWindowPtr*)pwindows, label); - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeWindowsList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowsList([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr*")] ImVectorImGuiWindowPtr* windows, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + /// /// To be documented. /// public static void DebugNodeWindowsList( ImVectorImGuiWindowPtr* windows, ref byte label) { fixed (byte* plabel = &label) { @@ -243389,9 +74935,7 @@ public static void DebugNodeWindowsList([NativeName(NativeNameType.Param, "windo } } - [NativeName(NativeNameType.Func, "igDebugNodeWindowsList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowsList([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr*")] ImVectorImGuiWindowPtr* windows, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + /// /// To be documented. /// public static void DebugNodeWindowsList( ImVectorImGuiWindowPtr* windows, string label) { byte* pStr0 = null; int pStrSize0 = 0; @@ -243417,78 +74961,19 @@ public static void DebugNodeWindowsList([NativeName(NativeNameType.Param, "windo } } - [NativeName(NativeNameType.Func, "igDebugNodeWindowsList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowsList([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr*")] ref ImVectorImGuiWindowPtr windows, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) - { - fixed (ImVectorImGuiWindowPtr* pwindows = &windows) - { - fixed (byte* plabel = &label) - { - DebugNodeWindowsListNative((ImVectorImGuiWindowPtr*)pwindows, (byte*)plabel); - } - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeWindowsList")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowsList([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr*")] ref ImVectorImGuiWindowPtr windows, [NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) - { - fixed (ImVectorImGuiWindowPtr* pwindows = &windows) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (label != null) - { - pStrSize0 = Utils.GetByteCountUTF8(label); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - DebugNodeWindowsListNative((ImVectorImGuiWindowPtr*)pwindows, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeWindowsListByBeginStackParent")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeWindowsListByBeginStackParent")] - internal static extern void DebugNodeWindowsListByBeginStackParentNative([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImGuiWindow**")] ImGuiWindow** windows, [NativeName(NativeNameType.Param, "windows_size")] [NativeName(NativeNameType.Type, "int")] int windowsSize, [NativeName(NativeNameType.Param, "parent_in_begin_stack")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* parentInBeginStack); + [LibraryImport(LibName, EntryPoint = "igDebugNodeWindowsListByBeginStackParent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeWindowsListByBeginStackParentNative(ImGuiWindow** windows, int windowsSize, ImGuiWindow* parentInBeginStack); - [NativeName(NativeNameType.Func, "igDebugNodeWindowsListByBeginStackParent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowsListByBeginStackParent([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImGuiWindow**")] ImGuiWindow** windows, [NativeName(NativeNameType.Param, "windows_size")] [NativeName(NativeNameType.Type, "int")] int windowsSize, [NativeName(NativeNameType.Param, "parent_in_begin_stack")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* parentInBeginStack) + /// /// To be documented. /// public static void DebugNodeWindowsListByBeginStackParent( ImGuiWindow** windows, int windowsSize, ImGuiWindow* parentInBeginStack) { DebugNodeWindowsListByBeginStackParentNative(windows, windowsSize, parentInBeginStack); } - [NativeName(NativeNameType.Func, "igDebugNodeWindowsListByBeginStackParent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowsListByBeginStackParent([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImGuiWindow**")] ref ImGuiWindow* windows, [NativeName(NativeNameType.Param, "windows_size")] [NativeName(NativeNameType.Type, "int")] int windowsSize, [NativeName(NativeNameType.Param, "parent_in_begin_stack")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ImGuiWindow* parentInBeginStack) - { - fixed (ImGuiWindow** pwindows = &windows) - { - DebugNodeWindowsListByBeginStackParentNative((ImGuiWindow**)pwindows, windowsSize, parentInBeginStack); - } - } - - [NativeName(NativeNameType.Func, "igDebugNodeWindowsListByBeginStackParent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowsListByBeginStackParent([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImGuiWindow**")] ImGuiWindow** windows, [NativeName(NativeNameType.Param, "windows_size")] [NativeName(NativeNameType.Type, "int")] int windowsSize, [NativeName(NativeNameType.Param, "parent_in_begin_stack")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow parentInBeginStack) + /// /// To be documented. /// public static void DebugNodeWindowsListByBeginStackParent( ImGuiWindow** windows, int windowsSize, ref ImGuiWindow parentInBeginStack) { fixed (ImGuiWindow* pparentInBeginStack = &parentInBeginStack) { @@ -243496,97 +74981,43 @@ public static void DebugNodeWindowsListByBeginStackParent([NativeName(NativeName } } - [NativeName(NativeNameType.Func, "igDebugNodeWindowsListByBeginStackParent")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeWindowsListByBeginStackParent([NativeName(NativeNameType.Param, "windows")] [NativeName(NativeNameType.Type, "ImGuiWindow**")] ref ImGuiWindow* windows, [NativeName(NativeNameType.Param, "windows_size")] [NativeName(NativeNameType.Type, "int")] int windowsSize, [NativeName(NativeNameType.Param, "parent_in_begin_stack")] [NativeName(NativeNameType.Type, "ImGuiWindow*")] ref ImGuiWindow parentInBeginStack) - { - fixed (ImGuiWindow** pwindows = &windows) - { - fixed (ImGuiWindow* pparentInBeginStack = &parentInBeginStack) - { - DebugNodeWindowsListByBeginStackParentNative((ImGuiWindow**)pwindows, windowsSize, (ImGuiWindow*)pparentInBeginStack); - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugNodeViewport")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugNodeViewport")] - internal static extern void DebugNodeViewportNative([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport); + [LibraryImport(LibName, EntryPoint = "igDebugNodeViewport")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugNodeViewportNative(ImGuiViewportP* viewport); - [NativeName(NativeNameType.Func, "igDebugNodeViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport) + /// /// To be documented. /// public static void DebugNodeViewport( ImGuiViewportP* viewport) { DebugNodeViewportNative(viewport); } - [NativeName(NativeNameType.Func, "igDebugNodeViewport")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugNodeViewport([NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DebugNodeViewportNative((ImGuiViewportP*)pviewport); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugRenderKeyboardPreview")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugRenderKeyboardPreview")] - internal static extern void DebugRenderKeyboardPreviewNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList); + [LibraryImport(LibName, EntryPoint = "igDebugRenderKeyboardPreview")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugRenderKeyboardPreviewNative(ImDrawList* drawList); - [NativeName(NativeNameType.Func, "igDebugRenderKeyboardPreview")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugRenderKeyboardPreview([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList) + /// /// To be documented. /// public static void DebugRenderKeyboardPreview( ImDrawList* drawList) { DebugRenderKeyboardPreviewNative(drawList); } - [NativeName(NativeNameType.Func, "igDebugRenderKeyboardPreview")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugRenderKeyboardPreview([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugRenderKeyboardPreviewNative((ImDrawList*)pdrawList); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igDebugRenderViewportThumbnail")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igDebugRenderViewportThumbnail")] - internal static extern void DebugRenderViewportThumbnailNative([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb); + [LibraryImport(LibName, EntryPoint = "igDebugRenderViewportThumbnail")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void DebugRenderViewportThumbnailNative(ImDrawList* drawList, ImGuiViewportP* viewport, ImRect bb); - [NativeName(NativeNameType.Func, "igDebugRenderViewportThumbnail")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugRenderViewportThumbnail([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb) + /// /// To be documented. /// public static void DebugRenderViewportThumbnail( ImDrawList* drawList, ImGuiViewportP* viewport, ImRect bb) { DebugRenderViewportThumbnailNative(drawList, viewport, bb); } - [NativeName(NativeNameType.Func, "igDebugRenderViewportThumbnail")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugRenderViewportThumbnail([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ImGuiViewportP* viewport, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb) - { - fixed (ImDrawList* pdrawList = &drawList) - { - DebugRenderViewportThumbnailNative((ImDrawList*)pdrawList, viewport, bb); - } - } - - [NativeName(NativeNameType.Func, "igDebugRenderViewportThumbnail")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugRenderViewportThumbnail([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb) + /// /// To be documented. /// public static void DebugRenderViewportThumbnail( ImDrawList* drawList, ref ImGuiViewportP viewport, ImRect bb) { fixed (ImGuiViewportP* pviewport = &viewport) { @@ -243594,54 +75025,27 @@ public static void DebugRenderViewportThumbnail([NativeName(NativeNameType.Param } } - [NativeName(NativeNameType.Func, "igDebugRenderViewportThumbnail")] - [return: NativeName(NativeNameType.Type, "void")] - public static void DebugRenderViewportThumbnail([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "ImGuiViewportP*")] ref ImGuiViewportP viewport, [NativeName(NativeNameType.Param, "bb")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect bb) - { - fixed (ImDrawList* pdrawList = &drawList) - { - fixed (ImGuiViewportP* pviewport = &viewport) - { - DebugRenderViewportThumbnailNative((ImDrawList*)pdrawList, (ImGuiViewportP*)pviewport, bb); - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igIsKeyPressedMap")] - [return: NativeName(NativeNameType.Type, "bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igIsKeyPressedMap")] - internal static extern byte IsKeyPressedMapNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "repeat")] [NativeName(NativeNameType.Type, "bool")] byte repeat); + [LibraryImport(LibName, EntryPoint = "igIsKeyPressedMap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte IsKeyPressedMapNative(ImGuiKey key, byte repeat); - /// /// Removed in 1.87: Mapping from named key is always identity! /// [NativeName(NativeNameType.Func, "igIsKeyPressedMap")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsKeyPressedMap([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "repeat")] [NativeName(NativeNameType.Type, "bool")] bool repeat) + /// /// To be documented. /// public static bool IsKeyPressedMap( ImGuiKey key, bool repeat) { byte ret = IsKeyPressedMapNative(key, repeat ? (byte)1 : (byte)0); return ret != 0; } - /// /// Removed in 1.87: Mapping from named key is always identity! /// [NativeName(NativeNameType.Func, "igIsKeyPressedMap")] - [return: NativeName(NativeNameType.Type, "bool")] - public static bool IsKeyPressedMap([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key) - { - byte ret = IsKeyPressedMapNative(key, (byte)(1)); - return ret != 0; - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFontAtlasGetBuilderForStbTruetype")] - [return: NativeName(NativeNameType.Type, "const ImFontBuilderIO*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFontAtlasGetBuilderForStbTruetype")] - internal static extern ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetypeNative(); + [LibraryImport(LibName, EntryPoint = "igImFontAtlasGetBuilderForStbTruetype")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetypeNative(); - [NativeName(NativeNameType.Func, "igImFontAtlasGetBuilderForStbTruetype")] - [return: NativeName(NativeNameType.Type, "const ImFontBuilderIO*")] - public static ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype() + /// /// To be documented. /// public static ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype() { ImFontBuilderIO* ret = ImFontAtlasGetBuilderForStbTruetypeNative(); return ret; @@ -243650,56 +75054,40 @@ public static bool IsKeyPressedMap([NativeName(NativeNameType.Param, "key")] [Na /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFontAtlasBuildInit")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFontAtlasBuildInit")] - internal static extern void ImFontAtlasBuildInitNative([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas); + [LibraryImport(LibName, EntryPoint = "igImFontAtlasUpdateConfigDataPointers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasUpdateConfigDataPointersNative(ImFontAtlas* atlas); - [NativeName(NativeNameType.Func, "igImFontAtlasBuildInit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildInit([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas) + /// /// To be documented. /// public static void ImFontAtlasUpdateConfigDataPointers( ImFontAtlas* atlas) { - ImFontAtlasBuildInitNative(atlas); + ImFontAtlasUpdateConfigDataPointersNative(atlas); } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildInit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildInit([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas) + /// + /// To be documented. + /// + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildInit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildInitNative(ImFontAtlas* atlas); + + /// /// To be documented. /// public static void ImFontAtlasBuildInit( ImFontAtlas* atlas) { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildInitNative((ImFontAtlas*)patlas); - } + ImFontAtlasBuildInitNative(atlas); } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFontAtlasBuildSetupFont")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFontAtlasBuildSetupFont")] - internal static extern void ImFontAtlasBuildSetupFontNative([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_config")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ImFontConfig* fontConfig, [NativeName(NativeNameType.Param, "ascent")] [NativeName(NativeNameType.Type, "float")] float ascent, [NativeName(NativeNameType.Param, "descent")] [NativeName(NativeNameType.Type, "float")] float descent); + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildSetupFont")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildSetupFontNative(ImFontAtlas* atlas, ImFont* font, ImFontConfig* fontConfig, float ascent, float descent); - [NativeName(NativeNameType.Func, "igImFontAtlasBuildSetupFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildSetupFont([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_config")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ImFontConfig* fontConfig, [NativeName(NativeNameType.Param, "ascent")] [NativeName(NativeNameType.Type, "float")] float ascent, [NativeName(NativeNameType.Param, "descent")] [NativeName(NativeNameType.Type, "float")] float descent) + /// /// To be documented. /// public static void ImFontAtlasBuildSetupFont( ImFontAtlas* atlas, ImFont* font, ImFontConfig* fontConfig, float ascent, float descent) { ImFontAtlasBuildSetupFontNative(atlas, font, fontConfig, ascent, descent); } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildSetupFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildSetupFont([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_config")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ImFontConfig* fontConfig, [NativeName(NativeNameType.Param, "ascent")] [NativeName(NativeNameType.Type, "float")] float ascent, [NativeName(NativeNameType.Param, "descent")] [NativeName(NativeNameType.Type, "float")] float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, font, fontConfig, ascent, descent); - } - } - - [NativeName(NativeNameType.Func, "igImFontAtlasBuildSetupFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildSetupFont([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_config")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ImFontConfig* fontConfig, [NativeName(NativeNameType.Param, "ascent")] [NativeName(NativeNameType.Type, "float")] float ascent, [NativeName(NativeNameType.Param, "descent")] [NativeName(NativeNameType.Type, "float")] float descent) + /// /// To be documented. /// public static void ImFontAtlasBuildSetupFont( ImFontAtlas* atlas, ref ImFont font, ImFontConfig* fontConfig, float ascent, float descent) { fixed (ImFont* pfont = &font) { @@ -243707,22 +75095,7 @@ public static void ImFontAtlasBuildSetupFont([NativeName(NativeNameType.Param, " } } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildSetupFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildSetupFont([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_config")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ImFontConfig* fontConfig, [NativeName(NativeNameType.Param, "ascent")] [NativeName(NativeNameType.Type, "float")] float ascent, [NativeName(NativeNameType.Param, "descent")] [NativeName(NativeNameType.Type, "float")] float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (ImFont* pfont = &font) - { - ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, (ImFont*)pfont, fontConfig, ascent, descent); - } - } - } - - [NativeName(NativeNameType.Func, "igImFontAtlasBuildSetupFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildSetupFont([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_config")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ref ImFontConfig fontConfig, [NativeName(NativeNameType.Param, "ascent")] [NativeName(NativeNameType.Type, "float")] float ascent, [NativeName(NativeNameType.Param, "descent")] [NativeName(NativeNameType.Type, "float")] float descent) + /// /// To be documented. /// public static void ImFontAtlasBuildSetupFont( ImFontAtlas* atlas, ImFont* font, ref ImFontConfig fontConfig, float ascent, float descent) { fixed (ImFontConfig* pfontConfig = &fontConfig) { @@ -243730,22 +75103,7 @@ public static void ImFontAtlasBuildSetupFont([NativeName(NativeNameType.Param, " } } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildSetupFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildSetupFont([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_config")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ref ImFontConfig fontConfig, [NativeName(NativeNameType.Param, "ascent")] [NativeName(NativeNameType.Type, "float")] float ascent, [NativeName(NativeNameType.Param, "descent")] [NativeName(NativeNameType.Type, "float")] float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (ImFontConfig* pfontConfig = &fontConfig) - { - ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, font, (ImFontConfig*)pfontConfig, ascent, descent); - } - } - } - - [NativeName(NativeNameType.Func, "igImFontAtlasBuildSetupFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildSetupFont([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_config")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ref ImFontConfig fontConfig, [NativeName(NativeNameType.Param, "ascent")] [NativeName(NativeNameType.Type, "float")] float ascent, [NativeName(NativeNameType.Param, "descent")] [NativeName(NativeNameType.Type, "float")] float descent) + /// /// To be documented. /// public static void ImFontAtlasBuildSetupFont( ImFontAtlas* atlas, ref ImFont font, ref ImFontConfig fontConfig, float ascent, float descent) { fixed (ImFont* pfont = &font) { @@ -243756,110 +75114,51 @@ public static void ImFontAtlasBuildSetupFont([NativeName(NativeNameType.Param, " } } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildSetupFont")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildSetupFont([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas, [NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_config")] [NativeName(NativeNameType.Type, "ImFontConfig*")] ref ImFontConfig fontConfig, [NativeName(NativeNameType.Param, "ascent")] [NativeName(NativeNameType.Type, "float")] float ascent, [NativeName(NativeNameType.Param, "descent")] [NativeName(NativeNameType.Type, "float")] float descent) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (ImFont* pfont = &font) - { - fixed (ImFontConfig* pfontConfig = &fontConfig) - { - ImFontAtlasBuildSetupFontNative((ImFontAtlas*)patlas, (ImFont*)pfont, (ImFontConfig*)pfontConfig, ascent, descent); - } - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFontAtlasBuildPackCustomRects")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFontAtlasBuildPackCustomRects")] - internal static extern void ImFontAtlasBuildPackCustomRectsNative([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "stbrp_context_opaque")] [NativeName(NativeNameType.Type, "void*")] void* stbrpContextOpaque); + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildPackCustomRects")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildPackCustomRectsNative(ImFontAtlas* atlas, void* stbrpContextOpaque); - [NativeName(NativeNameType.Func, "igImFontAtlasBuildPackCustomRects")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildPackCustomRects([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "stbrp_context_opaque")] [NativeName(NativeNameType.Type, "void*")] void* stbrpContextOpaque) + /// /// To be documented. /// public static void ImFontAtlasBuildPackCustomRects( ImFontAtlas* atlas, void* stbrpContextOpaque) { ImFontAtlasBuildPackCustomRectsNative(atlas, stbrpContextOpaque); } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildPackCustomRects")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildPackCustomRects([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas, [NativeName(NativeNameType.Param, "stbrp_context_opaque")] [NativeName(NativeNameType.Type, "void*")] void* stbrpContextOpaque) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildPackCustomRectsNative((ImFontAtlas*)patlas, stbrpContextOpaque); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFontAtlasBuildFinish")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFontAtlasBuildFinish")] - internal static extern void ImFontAtlasBuildFinishNative([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas); + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildFinish")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildFinishNative(ImFontAtlas* atlas); - [NativeName(NativeNameType.Func, "igImFontAtlasBuildFinish")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildFinish([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas) + /// /// To be documented. /// public static void ImFontAtlasBuildFinish( ImFontAtlas* atlas) { ImFontAtlasBuildFinishNative(atlas); } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildFinish")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildFinish([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildFinishNative((ImFontAtlas*)patlas); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender8bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFontAtlasBuildRender8bppRectFromString")] - internal static extern void ImFontAtlasBuildRender8bppRectFromStringNative([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] byte* inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned char")] byte inMarkerPixelValue); - - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender8bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender8bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] byte* inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned char")] byte inMarkerPixelValue) - { - ImFontAtlasBuildRender8bppRectFromStringNative(atlas, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - } + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildRender8bppRectFromString")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildRender8BppRectFromStringNative(ImFontAtlas* atlas, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue); - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender8bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender8bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] byte* inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned char")] byte inMarkerPixelValue) + /// /// To be documented. /// public static void ImFontAtlasBuildRender8BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, byte inMarkerPixelValue) { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - } + ImFontAtlasBuildRender8BppRectFromStringNative(atlas, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender8bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender8bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] ref byte inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned char")] byte inMarkerPixelValue) + /// /// To be documented. /// public static void ImFontAtlasBuildRender8BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, byte inMarkerPixelValue) { fixed (byte* pinStr = &inStr) { - ImFontAtlasBuildRender8bppRectFromStringNative(atlas, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + ImFontAtlasBuildRender8BppRectFromStringNative(atlas, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); } } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender8bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender8bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] string inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned char")] byte inMarkerPixelValue) + /// /// To be documented. /// public static void ImFontAtlasBuildRender8BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, string inStr, byte inMarkerChar, byte inMarkerPixelValue) { byte* pStr0 = null; int pStrSize0 = 0; @@ -243878,95 +75177,34 @@ public static void ImFontAtlasBuildRender8bppRectFromString([NativeName(NativeNa int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImFontAtlasBuildRender8bppRectFromStringNative(atlas, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); + ImFontAtlasBuildRender8BppRectFromStringNative(atlas, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender8bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender8bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] ref byte inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned char")] byte inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (byte* pinStr = &inStr) - { - ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - } - - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender8bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender8bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] string inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned char")] byte inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontAtlasBuildRender8bppRectFromStringNative((ImFontAtlas*)patlas, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender32bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFontAtlasBuildRender32bppRectFromString")] - internal static extern void ImFontAtlasBuildRender32bppRectFromStringNative([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] byte* inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint inMarkerPixelValue); + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildRender32bppRectFromString")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildRender32BppRectFromStringNative(ImFontAtlas* atlas, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue); - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender32bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender32bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] byte* inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint inMarkerPixelValue) + /// /// To be documented. /// public static void ImFontAtlasBuildRender32BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, byte* inStr, byte inMarkerChar, uint inMarkerPixelValue) { - ImFontAtlasBuildRender32bppRectFromStringNative(atlas, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); + ImFontAtlasBuildRender32BppRectFromStringNative(atlas, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender32bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender32bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] byte* inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, x, y, w, h, inStr, inMarkerChar, inMarkerPixelValue); - } - } - - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender32bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender32bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] ref byte inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint inMarkerPixelValue) + /// /// To be documented. /// public static void ImFontAtlasBuildRender32BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, ref byte inStr, byte inMarkerChar, uint inMarkerPixelValue) { fixed (byte* pinStr = &inStr) { - ImFontAtlasBuildRender32bppRectFromStringNative(atlas, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); + ImFontAtlasBuildRender32BppRectFromStringNative(atlas, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); } } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender32bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender32bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ImFontAtlas* atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] string inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint inMarkerPixelValue) + /// /// To be documented. /// public static void ImFontAtlasBuildRender32BppRectFromString( ImFontAtlas* atlas, int x, int y, int w, int h, string inStr, byte inMarkerChar, uint inMarkerPixelValue) { byte* pStr0 = null; int pStrSize0 = 0; @@ -243985,110 +75223,38 @@ public static void ImFontAtlasBuildRender32bppRectFromString([NativeName(NativeN int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } - ImFontAtlasBuildRender32bppRectFromStringNative(atlas, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); + ImFontAtlasBuildRender32BppRectFromStringNative(atlas, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); if (pStrSize0 >= Utils.MaxStackallocSize) { Utils.Free(pStr0); } } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender32bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender32bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] ref byte inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - fixed (byte* pinStr = &inStr) - { - ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, x, y, w, h, (byte*)pinStr, inMarkerChar, inMarkerPixelValue); - } - } - } - - [NativeName(NativeNameType.Func, "igImFontAtlasBuildRender32bppRectFromString")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildRender32bppRectFromString([NativeName(NativeNameType.Param, "atlas")] [NativeName(NativeNameType.Type, "ImFontAtlas*")] ref ImFontAtlas atlas, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "in_str")] [NativeName(NativeNameType.Type, "const char*")] string inStr, [NativeName(NativeNameType.Param, "in_marker_char")] [NativeName(NativeNameType.Type, "char")] byte inMarkerChar, [NativeName(NativeNameType.Param, "in_marker_pixel_value")] [NativeName(NativeNameType.Type, "unsigned int")] uint inMarkerPixelValue) - { - fixed (ImFontAtlas* patlas = &atlas) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (inStr != null) - { - pStrSize0 = Utils.GetByteCountUTF8(inStr); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(inStr, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImFontAtlasBuildRender32bppRectFromStringNative((ImFontAtlas*)patlas, x, y, w, h, pStr0, inMarkerChar, inMarkerPixelValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFontAtlasBuildMultiplyCalcLookupTable")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFontAtlasBuildMultiplyCalcLookupTable")] - internal static extern void ImFontAtlasBuildMultiplyCalcLookupTableNative([NativeName(NativeNameType.Param, "out_table")] [NativeName(NativeNameType.Type, "unsigned char[256]")] byte* outTable, [NativeName(NativeNameType.Param, "in_multiply_factor")] [NativeName(NativeNameType.Type, "float")] float inMultiplyFactor); + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildMultiplyCalcLookupTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildMultiplyCalcLookupTableNative(byte* outTable, float inMultiplyFactor); - [NativeName(NativeNameType.Func, "igImFontAtlasBuildMultiplyCalcLookupTable")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildMultiplyCalcLookupTable([NativeName(NativeNameType.Param, "out_table")] [NativeName(NativeNameType.Type, "unsigned char[256]")] byte* outTable, [NativeName(NativeNameType.Param, "in_multiply_factor")] [NativeName(NativeNameType.Type, "float")] float inMultiplyFactor) + /// /// To be documented. /// public static void ImFontAtlasBuildMultiplyCalcLookupTable( byte* outTable, float inMultiplyFactor) { ImFontAtlasBuildMultiplyCalcLookupTableNative(outTable, inMultiplyFactor); } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildMultiplyCalcLookupTable")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildMultiplyCalcLookupTable([NativeName(NativeNameType.Param, "out_table")] [NativeName(NativeNameType.Type, "unsigned char[256]")] ref byte outTable, [NativeName(NativeNameType.Param, "in_multiply_factor")] [NativeName(NativeNameType.Type, "float")] float inMultiplyFactor) - { - fixed (byte* poutTable = &outTable) - { - ImFontAtlasBuildMultiplyCalcLookupTableNative((byte*)poutTable, inMultiplyFactor); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "igImFontAtlasBuildMultiplyRectAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igImFontAtlasBuildMultiplyRectAlpha8")] - internal static extern void ImFontAtlasBuildMultiplyRectAlpha8Native([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const unsigned char[256]")] byte* table, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "unsigned char*")] byte* pixels, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride); + [LibraryImport(LibName, EntryPoint = "igImFontAtlasBuildMultiplyRectAlpha8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImFontAtlasBuildMultiplyRectAlpha8Native(byte* table, byte* pixels, int x, int y, int w, int h, int stride); - [NativeName(NativeNameType.Func, "igImFontAtlasBuildMultiplyRectAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildMultiplyRectAlpha8([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const unsigned char[256]")] byte* table, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "unsigned char*")] byte* pixels, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) + /// /// To be documented. /// public static void ImFontAtlasBuildMultiplyRectAlpha8( byte* table, byte* pixels, int x, int y, int w, int h, int stride) { ImFontAtlasBuildMultiplyRectAlpha8Native(table, pixels, x, y, w, h, stride); } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildMultiplyRectAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildMultiplyRectAlpha8([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const unsigned char[256]")] ref byte table, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "unsigned char*")] byte* pixels, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* ptable = &table) - { - ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, pixels, x, y, w, h, stride); - } - } - - [NativeName(NativeNameType.Func, "igImFontAtlasBuildMultiplyRectAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildMultiplyRectAlpha8([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const unsigned char[256]")] byte* table, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "unsigned char*")] ref byte pixels, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) + /// /// To be documented. /// public static void ImFontAtlasBuildMultiplyRectAlpha8( byte* table, ref byte pixels, int x, int y, int w, int h, int stride) { fixed (byte* ppixels = &pixels) { @@ -244096,101 +75262,32 @@ public static void ImFontAtlasBuildMultiplyRectAlpha8([NativeName(NativeNameType } } - [NativeName(NativeNameType.Func, "igImFontAtlasBuildMultiplyRectAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImFontAtlasBuildMultiplyRectAlpha8([NativeName(NativeNameType.Param, "table")] [NativeName(NativeNameType.Type, "const unsigned char[256]")] ref byte table, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "unsigned char*")] ref byte pixels, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "int")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "int")] int y, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "int")] int w, [NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "int")] int h, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "int")] int stride) - { - fixed (byte* ptable = &table) - { - fixed (byte* ppixels = &pixels) - { - ImFontAtlasBuildMultiplyRectAlpha8Native((byte*)ptable, (byte*)ppixels, x, y, w, h, stride); - } - } - } - /// /// //////////////////////hand written functions
/// no LogTextV
///
- [NativeName(NativeNameType.Func, "igLogText")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igLogText")] - internal static extern void LogTextNative([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); + [LibraryImport(LibName, EntryPoint = "igLogText")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void LogTextNative(byte* fmt); - /// /// pass text data straight to log (without being displayed) /// [NativeName(NativeNameType.Func, "igLogText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogText([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static void LogText( byte* fmt) { LogTextNative(fmt); } - /// /// pass text data straight to log (without being displayed) /// [NativeName(NativeNameType.Func, "igLogText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogText([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (byte* pfmt = &fmt) - { - LogTextNative((byte*)pfmt); - } - } - - /// /// pass text data straight to log (without being displayed) /// [NativeName(NativeNameType.Func, "igLogText")] - [return: NativeName(NativeNameType.Type, "void")] - public static void LogText([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - LogTextNative(pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - /// /// no appendfV
///
- [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendf")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImGuiTextBuffer_appendf")] - internal static extern void appendfNative([NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* buffer, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt); + [LibraryImport(LibName, EntryPoint = "ImGuiTextBuffer_appendf")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void appendfNative(ImGuiTextBuffer* buffer, byte* fmt); - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendf")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendf([NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* buffer, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public static void appendf( ImGuiTextBuffer* buffer, byte* fmt) { appendfNative(buffer, fmt); } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendf")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendf([NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer buffer, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) - { - fixed (ImGuiTextBuffer* pbuffer = &buffer) - { - appendfNative((ImGuiTextBuffer*)pbuffer, fmt); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendf")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendf([NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* buffer, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + public static void appendf( ImGuiTextBuffer* buffer, ref byte fmt) { fixed (byte* pfmt = &fmt) { @@ -244198,9 +75295,7 @@ public static void appendf([NativeName(NativeNameType.Param, "buffer")] [NativeN } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendf")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendf([NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ImGuiTextBuffer* buffer, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public static void appendf( ImGuiTextBuffer* buffer, string fmt) { byte* pStr0 = null; int pStrSize0 = 0; @@ -244226,61 +75321,14 @@ public static void appendf([NativeName(NativeNameType.Param, "buffer")] [NativeN } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendf")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendf([NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer buffer, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) - { - fixed (ImGuiTextBuffer* pbuffer = &buffer) - { - fixed (byte* pfmt = &fmt) - { - appendfNative((ImGuiTextBuffer*)pbuffer, (byte*)pfmt); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendf")] - [return: NativeName(NativeNameType.Type, "void")] - public static void appendf([NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "ImGuiTextBuffer*")] ref ImGuiTextBuffer buffer, [NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) - { - fixed (ImGuiTextBuffer* pbuffer = &buffer) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (fmt != null) - { - pStrSize0 = Utils.GetByteCountUTF8(fmt); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - appendfNative((ImGuiTextBuffer*)pbuffer, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - /// /// for getting FLT_MAX in bindings
///
- [NativeName(NativeNameType.Func, "igGET_FLT_MAX")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGET_FLT_MAX")] - internal static extern float GETFLTMAXNative(); + [LibraryImport(LibName, EntryPoint = "igGET_FLT_MAX")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GETFLTMAXNative(); - /// /// for getting FLT_MAX in bindings
///
[NativeName(NativeNameType.Func, "igGET_FLT_MAX")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GETFLTMAX() + /// /// for getting FLT_MAX in bindings
///
public static float GETFLTMAX() { float ret = GETFLTMAXNative(); return ret; @@ -244289,14 +75337,11 @@ public static float GETFLTMAX() /// /// for getting FLT_MIN in bindings
///
- [NativeName(NativeNameType.Func, "igGET_FLT_MIN")] - [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "igGET_FLT_MIN")] - internal static extern float GETFLTMINNative(); + [LibraryImport(LibName, EntryPoint = "igGET_FLT_MIN")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float GETFLTMINNative(); - /// /// for getting FLT_MIN in bindings
///
[NativeName(NativeNameType.Func, "igGET_FLT_MIN")] - [return: NativeName(NativeNameType.Type, "float")] - public static float GETFLTMIN() + /// /// for getting FLT_MIN in bindings
///
public static float GETFLTMIN() { float ret = GETFLTMINNative(); return ret; @@ -244305,14 +75350,11 @@ public static float GETFLTMIN() /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImVector_ImWchar_create")] - [return: NativeName(NativeNameType.Type, "ImVector_ImWchar*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVector_ImWchar_create")] - internal static extern ImVectorImWchar* ImVectorImWcharCreateNative(); + [LibraryImport(LibName, EntryPoint = "ImVector_ImWchar_create")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ImVectorImWchar* ImVectorImWcharCreateNative(); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "ImVector_ImWchar_create")] - [return: NativeName(NativeNameType.Type, "ImVector_ImWchar*")] - public static ImVectorImWchar* ImVectorImWcharCreate() + /// /// To be documented. /// public static ImVectorImWchar* ImVectorImWcharCreate() { ImVectorImWchar* ret = ImVectorImWcharCreateNative(); return ret; @@ -244321,77 +75363,38 @@ public static float GETFLTMIN() /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImVector_ImWchar_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVector_ImWchar_destroy")] - internal static extern void ImVectorImWcharDestroyNative([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ImVectorImWchar* self); + [LibraryImport(LibName, EntryPoint = "ImVector_ImWchar_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImVectorImWcharDestroyNative(ImVectorImWchar* self); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "ImVector_ImWchar_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImVectorImWcharDestroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ImVectorImWchar* self) + /// /// To be documented. /// public static void ImVectorImWcharDestroy( ImVectorImWchar* self) { ImVectorImWcharDestroyNative(self); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "ImVector_ImWchar_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImVectorImWcharDestroy([NativeName(NativeNameType.Param, "self")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ref ImVectorImWchar self) - { - fixed (ImVectorImWchar* pself = &self) - { - ImVectorImWcharDestroyNative((ImVectorImWchar*)pself); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImVector_ImWchar_Init")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVector_ImWchar_Init")] - internal static extern void ImVectorImWcharInitNative([NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ImVectorImWchar* p); + [LibraryImport(LibName, EntryPoint = "ImVector_ImWchar_Init")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImVectorImWcharInitNative(ImVectorImWchar* p); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "ImVector_ImWchar_Init")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImVectorImWcharInit([NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ImVectorImWchar* p) + /// /// To be documented. /// public static void ImVectorImWcharInit( ImVectorImWchar* p) { ImVectorImWcharInitNative(p); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "ImVector_ImWchar_Init")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImVectorImWcharInit([NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ref ImVectorImWchar p) - { - fixed (ImVectorImWchar* pp = &p) - { - ImVectorImWcharInitNative((ImVectorImWchar*)pp); - } - } - /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImVector_ImWchar_UnInit")] - [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "ImVector_ImWchar_UnInit")] - internal static extern void ImVectorImWcharUnInitNative([NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ImVectorImWchar* p); + [LibraryImport(LibName, EntryPoint = "ImVector_ImWchar_UnInit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void ImVectorImWcharUnInitNative(ImVectorImWchar* p); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "ImVector_ImWchar_UnInit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImVectorImWcharUnInit([NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ImVectorImWchar* p) + /// /// To be documented. /// public static void ImVectorImWcharUnInit( ImVectorImWchar* p) { ImVectorImWcharUnInitNative(p); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "ImVector_ImWchar_UnInit")] - [return: NativeName(NativeNameType.Type, "void")] - public static void ImVectorImWcharUnInit([NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ref ImVectorImWchar p) - { - fixed (ImVectorImWchar* pp = &p) - { - ImVectorImWcharUnInitNative((ImVectorImWchar*)pp); - } - } - } } diff --git a/Hexa.NET.ImGui/Generated/Handles.cs b/Hexa.NET.ImGui/Generated/Handles.cs index f0257a3..a854879 100644 --- a/Hexa.NET.ImGui/Generated/Handles.cs +++ b/Hexa.NET.ImGui/Generated/Handles.cs @@ -13,12 +13,11 @@ using HexaGen.Runtime; using System.Numerics; -namespace Hexa.NET.ImGuiNET +namespace Hexa.NET.ImGui { /// /// To be documented. /// - [NativeName(NativeNameType.Typedef, "ImTextureID")] [DebuggerDisplay("{DebuggerDisplay,nq}")] public readonly partial struct ImTextureID : IEquatable { @@ -42,49 +41,47 @@ namespace Hexa.NET.ImGuiNET /// /// To be documented. /// - [NativeName(NativeNameType.Typedef, "ImBitArrayPtr")] [DebuggerDisplay("{DebuggerDisplay,nq}")] - public readonly partial struct ImBitArrayPtr : IEquatable + public readonly partial struct ImFileHandle : IEquatable { - public ImBitArrayPtr(nint handle) { Handle = handle; } + public ImFileHandle(nint handle) { Handle = handle; } public nint Handle { get; } public bool IsNull => Handle == 0; - public static ImBitArrayPtr Null => new ImBitArrayPtr(0); - public static implicit operator ImBitArrayPtr(nint handle) => new ImBitArrayPtr(handle); - public static bool operator ==(ImBitArrayPtr left, ImBitArrayPtr right) => left.Handle == right.Handle; - public static bool operator !=(ImBitArrayPtr left, ImBitArrayPtr right) => left.Handle != right.Handle; - public static bool operator ==(ImBitArrayPtr left, nint right) => left.Handle == right; - public static bool operator !=(ImBitArrayPtr left, nint right) => left.Handle != right; - public bool Equals(ImBitArrayPtr other) => Handle == other.Handle; + public static ImFileHandle Null => new ImFileHandle(0); + public static implicit operator ImFileHandle(nint handle) => new ImFileHandle(handle); + public static bool operator ==(ImFileHandle left, ImFileHandle right) => left.Handle == right.Handle; + public static bool operator !=(ImFileHandle left, ImFileHandle right) => left.Handle != right.Handle; + public static bool operator ==(ImFileHandle left, nint right) => left.Handle == right; + public static bool operator !=(ImFileHandle left, nint right) => left.Handle != right; + public bool Equals(ImFileHandle other) => Handle == other.Handle; /// - public override bool Equals(object obj) => obj is ImBitArrayPtr handle && Equals(handle); + public override bool Equals(object obj) => obj is ImFileHandle handle && Equals(handle); /// public override int GetHashCode() => Handle.GetHashCode(); - private string DebuggerDisplay => string.Format("ImBitArrayPtr [0x{0}]", Handle.ToString("X")); + private string DebuggerDisplay => string.Format("ImFileHandle [0x{0}]", Handle.ToString("X")); } /// /// To be documented. /// - [NativeName(NativeNameType.Typedef, "ImFileHandle")] [DebuggerDisplay("{DebuggerDisplay,nq}")] - public readonly partial struct ImFileHandle : IEquatable + public readonly partial struct ImBitArrayPtr : IEquatable { - public ImFileHandle(nint handle) { Handle = handle; } + public ImBitArrayPtr(nint handle) { Handle = handle; } public nint Handle { get; } public bool IsNull => Handle == 0; - public static ImFileHandle Null => new ImFileHandle(0); - public static implicit operator ImFileHandle(nint handle) => new ImFileHandle(handle); - public static bool operator ==(ImFileHandle left, ImFileHandle right) => left.Handle == right.Handle; - public static bool operator !=(ImFileHandle left, ImFileHandle right) => left.Handle != right.Handle; - public static bool operator ==(ImFileHandle left, nint right) => left.Handle == right; - public static bool operator !=(ImFileHandle left, nint right) => left.Handle != right; - public bool Equals(ImFileHandle other) => Handle == other.Handle; + public static ImBitArrayPtr Null => new ImBitArrayPtr(0); + public static implicit operator ImBitArrayPtr(nint handle) => new ImBitArrayPtr(handle); + public static bool operator ==(ImBitArrayPtr left, ImBitArrayPtr right) => left.Handle == right.Handle; + public static bool operator !=(ImBitArrayPtr left, ImBitArrayPtr right) => left.Handle != right.Handle; + public static bool operator ==(ImBitArrayPtr left, nint right) => left.Handle == right; + public static bool operator !=(ImBitArrayPtr left, nint right) => left.Handle != right; + public bool Equals(ImBitArrayPtr other) => Handle == other.Handle; /// - public override bool Equals(object obj) => obj is ImFileHandle handle && Equals(handle); + public override bool Equals(object obj) => obj is ImBitArrayPtr handle && Equals(handle); /// public override int GetHashCode() => Handle.GetHashCode(); - private string DebuggerDisplay => string.Format("ImFileHandle [0x{0}]", Handle.ToString("X")); + private string DebuggerDisplay => string.Format("ImBitArrayPtr [0x{0}]", Handle.ToString("X")); } } diff --git a/Hexa.NET.ImGui/Generated/Structures.000.cs b/Hexa.NET.ImGui/Generated/Structures.000.cs new file mode 100644 index 0000000..268e5b1 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Structures.000.cs @@ -0,0 +1,4982 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawChannel + { + /// + /// To be documented. + /// + public ImVectorImDrawCmd CmdBuffer; + + /// + /// To be documented. + /// + public ImVectorImDrawIdx IdxBuffer; + + + /// /// To be documented. /// public unsafe ImDrawChannel(ImVectorImDrawCmd Cmdbuffer = default, ImVectorImDrawIdx Idxbuffer = default) + { + CmdBuffer = Cmdbuffer; + IdxBuffer = Idxbuffer; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImDrawCmd + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImDrawCmd* Data; + + + /// /// To be documented. /// public unsafe ImVectorImDrawCmd(int size = default, int capacity = default, ImDrawCmd* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawCmd + { + /// + /// To be documented. + /// + public Vector4 ClipRect; + + /// + /// To be documented. + /// + public unsafe void* TextureId; + + /// + /// To be documented. + /// + public uint VtxOffset; + + /// + /// To be documented. + /// + public uint IdxOffset; + + /// + /// To be documented. + /// + public uint ElemCount; + + /// + /// To be documented. + /// + public unsafe void* UserCallback; + + /// + /// To be documented. + /// + public unsafe void* UserCallbackData; + + + + /// /// To be documented. /// public unsafe ImDrawCmd(Vector4 clipRect = default, void* textureId = default, uint vtxOffset = default, uint idxOffset = default, uint elemCount = default, delegate* userCallback = default, void* userCallbackData = default) + { + ClipRect = clipRect; + TextureId = textureId; + VtxOffset = vtxOffset; + IdxOffset = idxOffset; + ElemCount = elemCount; + UserCallback = (void*)userCallback; + UserCallbackData = userCallbackData; + } + + + public unsafe void Destroy() + { + fixed (ImDrawCmd* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe ImTextureID GetTexID() + { + fixed (ImDrawCmd* @this = &this) + { + ImTextureID ret = ImGui.GetTexIDNative(@this); + return ret; + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImDrawIdx + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ushort* Data; + + + /// /// To be documented. /// public unsafe ImVectorImDrawIdx(int size = default, int capacity = default, ushort* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawData + { + /// + /// To be documented. + /// + public byte Valid; + + /// + /// To be documented. + /// + public int CmdListsCount; + + /// + /// To be documented. + /// + public int TotalIdxCount; + + /// + /// To be documented. + /// + public int TotalVtxCount; + + /// + /// To be documented. + /// + public ImVectorImDrawListPtr CmdLists; + + /// + /// To be documented. + /// + public Vector2 DisplayPos; + + /// + /// To be documented. + /// + public Vector2 DisplaySize; + + /// + /// To be documented. + /// + public Vector2 FramebufferScale; + + /// + /// To be documented. + /// + public unsafe ImGuiViewport* OwnerViewport; + + + + /// /// To be documented. /// public unsafe ImDrawData(bool valid = default, int cmdListsCount = default, int totalIdxCount = default, int totalVtxCount = default, ImVectorImDrawListPtr cmdLists = default, Vector2 displayPos = default, Vector2 displaySize = default, Vector2 framebufferScale = default, ImGuiViewport* ownerViewport = default) + { + Valid = valid ? (byte)1 : (byte)0; + CmdListsCount = cmdListsCount; + TotalIdxCount = totalIdxCount; + TotalVtxCount = totalVtxCount; + CmdLists = cmdLists; + DisplayPos = displayPos; + DisplaySize = displaySize; + FramebufferScale = framebufferScale; + OwnerViewport = ownerViewport; + } + + + public unsafe void AddDrawList( ImDrawList* drawList) + { + fixed (ImDrawData* @this = &this) + { + ImGui.AddDrawListNative(@this, drawList); + } + } + + public unsafe void AddDrawList( ref ImDrawList drawList) + { + fixed (ImDrawData* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.AddDrawListNative(@this, (ImDrawList*)pdrawList); + } + } + } + + public unsafe void Clear() + { + fixed (ImDrawData* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + public unsafe void DeIndexAllBuffers() + { + fixed (ImDrawData* @this = &this) + { + ImGui.DeIndexAllBuffersNative(@this); + } + } + + public unsafe void Destroy() + { + fixed (ImDrawData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe void ScaleClipRects( Vector2 fbScale) + { + fixed (ImDrawData* @this = &this) + { + ImGui.ScaleClipRectsNative(@this, fbScale); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImDrawListPtr + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImDrawList** Data; + + + /// /// To be documented. /// public unsafe ImVectorImDrawListPtr(int size = default, int capacity = default, ImDrawList** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawList + { + /// + /// To be documented. + /// + public ImVectorImDrawCmd CmdBuffer; + + /// + /// To be documented. + /// + public ImVectorImDrawIdx IdxBuffer; + + /// + /// To be documented. + /// + public ImVectorImDrawVert VtxBuffer; + + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public uint VtxCurrentIdx; + + /// + /// To be documented. + /// + public unsafe ImDrawListSharedData* Data; + + /// + /// To be documented. + /// + public unsafe byte* OwnerName; + + /// + /// To be documented. + /// + public unsafe ImDrawVert* VtxWritePtr; + + /// + /// To be documented. + /// + public unsafe ushort* IdxWritePtr; + + /// + /// To be documented. + /// + public ImVectorImVec4 ClipRectStack; + + /// + /// To be documented. + /// + public ImVectorImTextureID TextureIdStack; + + /// + /// To be documented. + /// + public ImVectorImVec2 Path; + + /// + /// To be documented. + /// + public ImDrawCmdHeader CmdHeader; + + /// + /// To be documented. + /// + public ImDrawListSplitter Splitter; + + /// + /// To be documented. + /// + public float FringeScale; + + + + /// /// To be documented. /// public unsafe ImDrawList(ImVectorImDrawCmd cmdBuffer = default, ImVectorImDrawIdx idxBuffer = default, ImVectorImDrawVert vtxBuffer = default, int flags = default, uint Vtxcurrentidx = default, ImDrawListSharedData* Data = default, byte* Ownername = default, ImDrawVert* Vtxwriteptr = default, ushort* Idxwriteptr = default, ImVectorImVec4 Cliprectstack = default, ImVectorImTextureID Textureidstack = default, ImVectorImVec2 Path = default, ImDrawCmdHeader Cmdheader = default, ImDrawListSplitter Splitter = default, float Fringescale = default) + { + CmdBuffer = cmdBuffer; + IdxBuffer = idxBuffer; + VtxBuffer = vtxBuffer; + Flags = flags; + VtxCurrentIdx = Vtxcurrentidx; + this.Data = Data; + OwnerName = Ownername; + VtxWritePtr = Vtxwriteptr; + IdxWritePtr = Idxwriteptr; + ClipRectStack = Cliprectstack; + TextureIdStack = Textureidstack; + this.Path = Path; + CmdHeader = Cmdheader; + this.Splitter = Splitter; + FringeScale = Fringescale; + } + + + public unsafe int _CalcCircleAutoSegmentCount( float radius) + { + fixed (ImDrawList* @this = &this) + { + int ret = ImGui._CalcCircleAutoSegmentCountNative(@this, radius); + return ret; + } + } + + public unsafe void _ClearFreeMemory() + { + fixed (ImDrawList* @this = &this) + { + ImGui._ClearFreeMemoryNative(@this); + } + } + + public unsafe void _OnChangedClipRect() + { + fixed (ImDrawList* @this = &this) + { + ImGui._OnChangedClipRectNative(@this); + } + } + + public unsafe void _OnChangedTextureID() + { + fixed (ImDrawList* @this = &this) + { + ImGui._OnChangedTextureIDNative(@this); + } + } + + public unsafe void _OnChangedVtxOffset() + { + fixed (ImDrawList* @this = &this) + { + ImGui._OnChangedVtxOffsetNative(@this); + } + } + + public unsafe void _PathArcToFastEx( Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) + { + fixed (ImDrawList* @this = &this) + { + ImGui._PathArcToFastExNative(@this, center, radius, aMinSample, aMaxSample, aStep); + } + } + + public unsafe void _PathArcToN( Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui._PathArcToNNative(@this, center, radius, aMin, aMax, numSegments); + } + } + + public unsafe void _PopUnusedDrawCmd() + { + fixed (ImDrawList* @this = &this) + { + ImGui._PopUnusedDrawCmdNative(@this); + } + } + + public unsafe void _ResetForNewFrame() + { + fixed (ImDrawList* @this = &this) + { + ImGui._ResetForNewFrameNative(@this); + } + } + + public unsafe void _TryMergeDrawCmds() + { + fixed (ImDrawList* @this = &this) + { + ImGui._TryMergeDrawCmdsNative(@this); + } + } + + public unsafe void AddBezierCubic( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddBezierCubicNative(@this, p1, p2, p3, p4, col, thickness, numSegments); + } + } + + public unsafe void AddBezierCubic( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddBezierCubicNative(@this, p1, p2, p3, p4, col, thickness, (int)(0)); + } + } + + public unsafe void AddBezierQuadratic( Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddBezierQuadraticNative(@this, p1, p2, p3, col, thickness, numSegments); + } + } + + public unsafe void AddBezierQuadratic( Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddBezierQuadraticNative(@this, p1, p2, p3, col, thickness, (int)(0)); + } + } + + public unsafe void AddCallback( ImDrawCallback callback, void* callbackData) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCallbackNative(@this, callback, callbackData); + } + } + + public unsafe void AddCircle( Vector2 center, float radius, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleNative(@this, center, radius, col, numSegments, thickness); + } + } + + public unsafe void AddCircle( Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleNative(@this, center, radius, col, numSegments, (float)(1.0f)); + } + } + + public unsafe void AddCircle( Vector2 center, float radius, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleNative(@this, center, radius, col, (int)(0), (float)(1.0f)); + } + } + + public unsafe void AddCircle( Vector2 center, float radius, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleNative(@this, center, radius, col, (int)(0), thickness); + } + } + + public unsafe void AddCircleFilled( Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleFilledNative(@this, center, radius, col, numSegments); + } + } + + public unsafe void AddCircleFilled( Vector2 center, float radius, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddCircleFilledNative(@this, center, radius, col, (int)(0)); + } + } + + public unsafe void AddConvexPolyFilled( Vector2* points, int numPoints, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddConvexPolyFilledNative(@this, points, numPoints, col); + } + } + + public unsafe void AddConvexPolyFilled( ref Vector2 points, int numPoints, uint col) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector2* ppoints = &points) + { + ImGui.AddConvexPolyFilledNative(@this, (Vector2*)ppoints, numPoints, col); + } + } + } + + public unsafe void AddDrawCmd() + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddDrawCmdNative(@this); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, rot, numSegments, thickness); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, rot, numSegments, (float)(1.0f)); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, float rot) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, rot, (int)(0), (float)(1.0f)); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, (float)(0.0f), (int)(0), (float)(1.0f)); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, (float)(0.0f), numSegments, (float)(1.0f)); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, float rot, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, rot, (int)(0), thickness); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, (float)(0.0f), numSegments, thickness); + } + } + + public unsafe void AddEllipseFilled( Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseFilledNative(@this, center, radiusX, radiusY, col, rot, numSegments); + } + } + + public unsafe void AddEllipseFilled( Vector2 center, float radiusX, float radiusY, uint col, float rot) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseFilledNative(@this, center, radiusX, radiusY, col, rot, (int)(0)); + } + } + + public unsafe void AddEllipseFilled( Vector2 center, float radiusX, float radiusY, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseFilledNative(@this, center, radiusX, radiusY, col, (float)(0.0f), (int)(0)); + } + } + + public unsafe void AddEllipseFilled( Vector2 center, float radiusX, float radiusY, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseFilledNative(@this, center, radiusX, radiusY, col, (float)(0.0f), numSegments); + } + } + + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, col); + } + } + + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, (uint)(4294967295)); + } + } + + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + } + + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), (uint)(4294967295)); + } + } + + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, uvMin, (Vector2)(new Vector2(1,1)), col); + } + } + + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageNative(@this, userTextureId, pMin, pMax, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,1)), col); + } + } + + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + } + } + + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, uv4, (uint)(4294967295)); + } + } + + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), (uint)(4294967295)); + } + } + + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, uv3, (Vector2)(new Vector2(0,1)), col); + } + } + + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, uv2, (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + } + + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, uv1, (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + } + + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageQuadNative(@this, userTextureId, p1, p2, p3, p4, (Vector2)(new Vector2(0,0)), (Vector2)(new Vector2(1,0)), (Vector2)(new Vector2(1,1)), (Vector2)(new Vector2(0,1)), col); + } + } + + public unsafe void AddImageRounded( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, int flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageRoundedNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, flags); + } + } + + public unsafe void AddImageRounded( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddImageRoundedNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (int)(0)); + } + } + + public unsafe void AddLine( Vector2 p1, Vector2 p2, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddLineNative(@this, p1, p2, col, thickness); + } + } + + public unsafe void AddLine( Vector2 p1, Vector2 p2, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddLineNative(@this, p1, p2, col, (float)(1.0f)); + } + } + + public unsafe void AddNgon( Vector2 center, float radius, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddNgonNative(@this, center, radius, col, numSegments, thickness); + } + } + + public unsafe void AddNgon( Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddNgonNative(@this, center, radius, col, numSegments, (float)(1.0f)); + } + } + + public unsafe void AddNgonFilled( Vector2 center, float radius, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddNgonFilledNative(@this, center, radius, col, numSegments); + } + } + + public unsafe void AddPolyline( Vector2* points, int numPoints, uint col, int flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddPolylineNative(@this, points, numPoints, col, flags, thickness); + } + } + + public unsafe void AddPolyline( ref Vector2 points, int numPoints, uint col, int flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector2* ppoints = &points) + { + ImGui.AddPolylineNative(@this, (Vector2*)ppoints, numPoints, col, flags, thickness); + } + } + } + + public unsafe void AddQuad( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddQuadNative(@this, p1, p2, p3, p4, col, thickness); + } + } + + public unsafe void AddQuad( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddQuadNative(@this, p1, p2, p3, p4, col, (float)(1.0f)); + } + } + + public unsafe void AddQuadFilled( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddQuadFilledNative(@this, p1, p2, p3, p4, col); + } + } + + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, rounding, flags, thickness); + } + } + + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, rounding, flags, (float)(1.0f)); + } + } + + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, rounding, (int)(0), (float)(1.0f)); + } + } + + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, (float)(0.0f), (int)(0), (float)(1.0f)); + } + } + + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, int flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, (float)(0.0f), flags, (float)(1.0f)); + } + } + + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, rounding, (int)(0), thickness); + } + } + + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, int flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectNative(@this, pMin, pMax, col, (float)(0.0f), flags, thickness); + } + } + + public unsafe void AddRectFilled( Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectFilledNative(@this, pMin, pMax, col, rounding, flags); + } + } + + public unsafe void AddRectFilled( Vector2 pMin, Vector2 pMax, uint col, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectFilledNative(@this, pMin, pMax, col, rounding, (int)(0)); + } + } + + public unsafe void AddRectFilled( Vector2 pMin, Vector2 pMax, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectFilledNative(@this, pMin, pMax, col, (float)(0.0f), (int)(0)); + } + } + + public unsafe void AddRectFilled( Vector2 pMin, Vector2 pMax, uint col, int flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectFilledNative(@this, pMin, pMax, col, (float)(0.0f), flags); + } + } + + public unsafe void AddRectFilledMultiColor( Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddRectFilledMultiColorNative(@this, pMin, pMax, colUprLeft, colUprRight, colBotRight, colBotLeft); + } + } + + public unsafe void AddText( Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, pos, col, textBegin, textEnd); + } + } + + public unsafe void AddText( Vector2 pos, uint col, byte* textBegin) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, pos, col, textBegin, (byte*)(default)); + } + } + + public unsafe void AddText( Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, textEnd); + } + } + } + + public unsafe void AddText( Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)(default)); + } + } + } + + public unsafe void AddText( Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, pos, col, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( Vector2 pos, uint col, string textBegin) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, pos, col, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, pos, col, textBegin, (byte*)ptextEnd); + } + } + } + + public unsafe void AddText( Vector2 pos, uint col, byte* textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, pos, col, textBegin, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, pos, col, (byte*)ptextBegin, (byte*)ptextEnd); + } + } + } + } + + public unsafe void AddText( Vector2 pos, uint col, string textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.AddTextNative(@this, pos, col, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)(default)); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), cpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, cpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), cpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClipRect); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)(default)); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)(default)); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClipRect); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)(default)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), cpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, textEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, (byte*)(default), wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, textBegin, pStr0, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, font, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (Vector4*)pcpuFineClipRect); + } + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, wrapWidth, (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) + { + fixed (ImDrawList* @this = &this) + { + fixed (ImFont* pfont = &font) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (Vector4* pcpuFineClipRect = &cpuFineClipRect) + { + ImGui.AddTextNative(@this, (ImFont*)pfont, fontSize, pos, col, pStr0, pStr1, (float)(0.0f), (Vector4*)pcpuFineClipRect); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + public unsafe void AddTriangle( Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTriangleNative(@this, p1, p2, p3, col, thickness); + } + } + + public unsafe void AddTriangle( Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTriangleNative(@this, p1, p2, p3, col, (float)(1.0f)); + } + } + + public unsafe void AddTriangleFilled( Vector2 p1, Vector2 p2, Vector2 p3, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddTriangleFilledNative(@this, p1, p2, p3, col); + } + } + + public unsafe void ChannelsMerge() + { + fixed (ImDrawList* @this = &this) + { + ImGui.ChannelsMergeNative(@this); + } + } + + public unsafe void ChannelsSetCurrent( int n) + { + fixed (ImDrawList* @this = &this) + { + ImGui.ChannelsSetCurrentNative(@this, n); + } + } + + public unsafe void ChannelsSplit( int count) + { + fixed (ImDrawList* @this = &this) + { + ImGui.ChannelsSplitNative(@this, count); + } + } + + public unsafe ImDrawList* CloneOutput() + { + fixed (ImDrawList* @this = &this) + { + ImDrawList* ret = ImGui.CloneOutputNative(@this); + return ret; + } + } + + public unsafe void Destroy() + { + fixed (ImDrawList* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe void PathArcTo( Vector2 center, float radius, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathArcToNative(@this, center, radius, aMin, aMax, numSegments); + } + } + + public unsafe void PathArcTo( Vector2 center, float radius, float aMin, float aMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathArcToNative(@this, center, radius, aMin, aMax, (int)(0)); + } + } + + public unsafe void PathArcToFast( Vector2 center, float radius, int aMinOf12, int aMaxOf12) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathArcToFastNative(@this, center, radius, aMinOf12, aMaxOf12); + } + } + + public unsafe void PathBezierCubicCurveTo( Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathBezierCubicCurveToNative(@this, p2, p3, p4, numSegments); + } + } + + public unsafe void PathBezierCubicCurveTo( Vector2 p2, Vector2 p3, Vector2 p4) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathBezierCubicCurveToNative(@this, p2, p3, p4, (int)(0)); + } + } + + public unsafe void PathBezierQuadraticCurveTo( Vector2 p2, Vector2 p3, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathBezierQuadraticCurveToNative(@this, p2, p3, numSegments); + } + } + + public unsafe void PathBezierQuadraticCurveTo( Vector2 p2, Vector2 p3) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathBezierQuadraticCurveToNative(@this, p2, p3, (int)(0)); + } + } + + public unsafe void PathClear() + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathClearNative(@this); + } + } + + public unsafe void PathEllipticalArcTo( Vector2 center, float radiusX, float radiusY, float rot, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathEllipticalArcToNative(@this, center, radiusX, radiusY, rot, aMin, aMax, numSegments); + } + } + + public unsafe void PathEllipticalArcTo( Vector2 center, float radiusX, float radiusY, float rot, float aMin, float aMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathEllipticalArcToNative(@this, center, radiusX, radiusY, rot, aMin, aMax, (int)(0)); + } + } + + public unsafe void PathFillConvex( uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathFillConvexNative(@this, col); + } + } + + public unsafe void PathLineTo( Vector2 pos) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathLineToNative(@this, pos); + } + } + + public unsafe void PathLineToMergeDuplicate( Vector2 pos) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathLineToMergeDuplicateNative(@this, pos); + } + } + + public unsafe void PathRect( Vector2 rectMin, Vector2 rectMax, float rounding, int flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathRectNative(@this, rectMin, rectMax, rounding, flags); + } + } + + public unsafe void PathRect( Vector2 rectMin, Vector2 rectMax, float rounding) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathRectNative(@this, rectMin, rectMax, rounding, (int)(0)); + } + } + + public unsafe void PathRect( Vector2 rectMin, Vector2 rectMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathRectNative(@this, rectMin, rectMax, (float)(0.0f), (int)(0)); + } + } + + public unsafe void PathRect( Vector2 rectMin, Vector2 rectMax, int flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathRectNative(@this, rectMin, rectMax, (float)(0.0f), flags); + } + } + + public unsafe void PathStroke( uint col, int flags, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathStrokeNative(@this, col, flags, thickness); + } + } + + public unsafe void PathStroke( uint col, int flags) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathStrokeNative(@this, col, flags, (float)(1.0f)); + } + } + + public unsafe void PathStroke( uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathStrokeNative(@this, col, (int)(0), (float)(1.0f)); + } + } + + public unsafe void PathStroke( uint col, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathStrokeNative(@this, col, (int)(0), thickness); + } + } + + public unsafe void PopClipRect() + { + fixed (ImDrawList* @this = &this) + { + ImGui.PopClipRectNative(@this); + } + } + + public unsafe void PopTextureID() + { + fixed (ImDrawList* @this = &this) + { + ImGui.PopTextureIDNative(@this); + } + } + + public unsafe void PrimQuadUV( Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimQuadUVNative(@this, a, b, c, d, uvA, uvB, uvC, uvD, col); + } + } + + public unsafe void PrimRect( Vector2 a, Vector2 b, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimRectNative(@this, a, b, col); + } + } + + public unsafe void PrimRectUV( Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimRectUVNative(@this, a, b, uvA, uvB, col); + } + } + + public unsafe void PrimReserve( int idxCount, int vtxCount) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimReserveNative(@this, idxCount, vtxCount); + } + } + + public unsafe void PrimUnreserve( int idxCount, int vtxCount) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimUnreserveNative(@this, idxCount, vtxCount); + } + } + + public unsafe void PrimVtx( Vector2 pos, Vector2 uv, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimVtxNative(@this, pos, uv, col); + } + } + + public unsafe void PrimWriteIdx( ushort idx) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimWriteIdxNative(@this, idx); + } + } + + public unsafe void PrimWriteVtx( Vector2 pos, Vector2 uv, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PrimWriteVtxNative(@this, pos, uv, col); + } + } + + public unsafe void PushClipRect( Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PushClipRectNative(@this, clipRectMin, clipRectMax, intersectWithCurrentClipRect ? (byte)1 : (byte)0); + } + } + + public unsafe void PushClipRect( Vector2 clipRectMin, Vector2 clipRectMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PushClipRectNative(@this, clipRectMin, clipRectMax, (byte)(0)); + } + } + + public unsafe void PushClipRectFullScreen() + { + fixed (ImDrawList* @this = &this) + { + ImGui.PushClipRectFullScreenNative(@this); + } + } + + public unsafe void PushTextureID( ImTextureID textureId) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PushTextureIDNative(@this, textureId); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImDrawVert + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImDrawVert* Data; + + + /// /// To be documented. /// public unsafe ImVectorImDrawVert(int size = default, int capacity = default, ImDrawVert* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawVert + { + /// + /// To be documented. + /// + public Vector2 Pos; + + /// + /// To be documented. + /// + public Vector2 Uv; + + /// + /// To be documented. + /// + public uint Col; + + + /// /// To be documented. /// public unsafe ImDrawVert(Vector2 pos = default, Vector2 uv = default, uint col = default) + { + Pos = pos; + Uv = uv; + Col = col; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawListSharedData + { + /// + /// To be documented. + /// + public Vector2 TexUvWhitePixel; + + /// + /// To be documented. + /// + public unsafe ImFont* Font; + + /// + /// To be documented. + /// + public float FontSize; + + /// + /// To be documented. + /// + public float CurveTessellationTol; + + /// + /// To be documented. + /// + public float CircleSegmentMaxError; + + /// + /// To be documented. + /// + public Vector4 ClipRectFullscreen; + + /// + /// To be documented. + /// + public int InitialFlags; + + /// + /// To be documented. + /// + public ImVectorImVec2 TempBuffer; + + /// + /// To be documented. + /// + public Vector2 ArcFastVtx_0; + public Vector2 ArcFastVtx_1; + public Vector2 ArcFastVtx_2; + public Vector2 ArcFastVtx_3; + public Vector2 ArcFastVtx_4; + public Vector2 ArcFastVtx_5; + public Vector2 ArcFastVtx_6; + public Vector2 ArcFastVtx_7; + public Vector2 ArcFastVtx_8; + public Vector2 ArcFastVtx_9; + public Vector2 ArcFastVtx_10; + public Vector2 ArcFastVtx_11; + public Vector2 ArcFastVtx_12; + public Vector2 ArcFastVtx_13; + public Vector2 ArcFastVtx_14; + public Vector2 ArcFastVtx_15; + public Vector2 ArcFastVtx_16; + public Vector2 ArcFastVtx_17; + public Vector2 ArcFastVtx_18; + public Vector2 ArcFastVtx_19; + public Vector2 ArcFastVtx_20; + public Vector2 ArcFastVtx_21; + public Vector2 ArcFastVtx_22; + public Vector2 ArcFastVtx_23; + public Vector2 ArcFastVtx_24; + public Vector2 ArcFastVtx_25; + public Vector2 ArcFastVtx_26; + public Vector2 ArcFastVtx_27; + public Vector2 ArcFastVtx_28; + public Vector2 ArcFastVtx_29; + public Vector2 ArcFastVtx_30; + public Vector2 ArcFastVtx_31; + public Vector2 ArcFastVtx_32; + public Vector2 ArcFastVtx_33; + public Vector2 ArcFastVtx_34; + public Vector2 ArcFastVtx_35; + public Vector2 ArcFastVtx_36; + public Vector2 ArcFastVtx_37; + public Vector2 ArcFastVtx_38; + public Vector2 ArcFastVtx_39; + public Vector2 ArcFastVtx_40; + public Vector2 ArcFastVtx_41; + public Vector2 ArcFastVtx_42; + public Vector2 ArcFastVtx_43; + public Vector2 ArcFastVtx_44; + public Vector2 ArcFastVtx_45; + public Vector2 ArcFastVtx_46; + public Vector2 ArcFastVtx_47; + + /// + /// To be documented. + /// + public float ArcFastRadiusCutoff; + + /// + /// To be documented. + /// + public byte CircleSegmentCounts_0; + public byte CircleSegmentCounts_1; + public byte CircleSegmentCounts_2; + public byte CircleSegmentCounts_3; + public byte CircleSegmentCounts_4; + public byte CircleSegmentCounts_5; + public byte CircleSegmentCounts_6; + public byte CircleSegmentCounts_7; + public byte CircleSegmentCounts_8; + public byte CircleSegmentCounts_9; + public byte CircleSegmentCounts_10; + public byte CircleSegmentCounts_11; + public byte CircleSegmentCounts_12; + public byte CircleSegmentCounts_13; + public byte CircleSegmentCounts_14; + public byte CircleSegmentCounts_15; + public byte CircleSegmentCounts_16; + public byte CircleSegmentCounts_17; + public byte CircleSegmentCounts_18; + public byte CircleSegmentCounts_19; + public byte CircleSegmentCounts_20; + public byte CircleSegmentCounts_21; + public byte CircleSegmentCounts_22; + public byte CircleSegmentCounts_23; + public byte CircleSegmentCounts_24; + public byte CircleSegmentCounts_25; + public byte CircleSegmentCounts_26; + public byte CircleSegmentCounts_27; + public byte CircleSegmentCounts_28; + public byte CircleSegmentCounts_29; + public byte CircleSegmentCounts_30; + public byte CircleSegmentCounts_31; + public byte CircleSegmentCounts_32; + public byte CircleSegmentCounts_33; + public byte CircleSegmentCounts_34; + public byte CircleSegmentCounts_35; + public byte CircleSegmentCounts_36; + public byte CircleSegmentCounts_37; + public byte CircleSegmentCounts_38; + public byte CircleSegmentCounts_39; + public byte CircleSegmentCounts_40; + public byte CircleSegmentCounts_41; + public byte CircleSegmentCounts_42; + public byte CircleSegmentCounts_43; + public byte CircleSegmentCounts_44; + public byte CircleSegmentCounts_45; + public byte CircleSegmentCounts_46; + public byte CircleSegmentCounts_47; + public byte CircleSegmentCounts_48; + public byte CircleSegmentCounts_49; + public byte CircleSegmentCounts_50; + public byte CircleSegmentCounts_51; + public byte CircleSegmentCounts_52; + public byte CircleSegmentCounts_53; + public byte CircleSegmentCounts_54; + public byte CircleSegmentCounts_55; + public byte CircleSegmentCounts_56; + public byte CircleSegmentCounts_57; + public byte CircleSegmentCounts_58; + public byte CircleSegmentCounts_59; + public byte CircleSegmentCounts_60; + public byte CircleSegmentCounts_61; + public byte CircleSegmentCounts_62; + public byte CircleSegmentCounts_63; + + /// + /// To be documented. + /// + public unsafe Vector4* TexUvLines; + + + /// /// To be documented. /// public unsafe ImDrawListSharedData(Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, int initialFlags = default, ImVectorImVec2 tempBuffer = default, Vector2* arcFastVtx = default, float arcFastRadiusCutoff = default, byte* circleSegmentCounts = default, Vector4* texUvLines = default) + { + TexUvWhitePixel = texUvWhitePixel; + Font = font; + FontSize = fontSize; + CurveTessellationTol = curveTessellationTol; + CircleSegmentMaxError = circleSegmentMaxError; + ClipRectFullscreen = clipRectFullscreen; + InitialFlags = initialFlags; + TempBuffer = tempBuffer; + if (arcFastVtx != default) + { + ArcFastVtx_0 = arcFastVtx[0]; + ArcFastVtx_1 = arcFastVtx[1]; + ArcFastVtx_2 = arcFastVtx[2]; + ArcFastVtx_3 = arcFastVtx[3]; + ArcFastVtx_4 = arcFastVtx[4]; + ArcFastVtx_5 = arcFastVtx[5]; + ArcFastVtx_6 = arcFastVtx[6]; + ArcFastVtx_7 = arcFastVtx[7]; + ArcFastVtx_8 = arcFastVtx[8]; + ArcFastVtx_9 = arcFastVtx[9]; + ArcFastVtx_10 = arcFastVtx[10]; + ArcFastVtx_11 = arcFastVtx[11]; + ArcFastVtx_12 = arcFastVtx[12]; + ArcFastVtx_13 = arcFastVtx[13]; + ArcFastVtx_14 = arcFastVtx[14]; + ArcFastVtx_15 = arcFastVtx[15]; + ArcFastVtx_16 = arcFastVtx[16]; + ArcFastVtx_17 = arcFastVtx[17]; + ArcFastVtx_18 = arcFastVtx[18]; + ArcFastVtx_19 = arcFastVtx[19]; + ArcFastVtx_20 = arcFastVtx[20]; + ArcFastVtx_21 = arcFastVtx[21]; + ArcFastVtx_22 = arcFastVtx[22]; + ArcFastVtx_23 = arcFastVtx[23]; + ArcFastVtx_24 = arcFastVtx[24]; + ArcFastVtx_25 = arcFastVtx[25]; + ArcFastVtx_26 = arcFastVtx[26]; + ArcFastVtx_27 = arcFastVtx[27]; + ArcFastVtx_28 = arcFastVtx[28]; + ArcFastVtx_29 = arcFastVtx[29]; + ArcFastVtx_30 = arcFastVtx[30]; + ArcFastVtx_31 = arcFastVtx[31]; + ArcFastVtx_32 = arcFastVtx[32]; + ArcFastVtx_33 = arcFastVtx[33]; + ArcFastVtx_34 = arcFastVtx[34]; + ArcFastVtx_35 = arcFastVtx[35]; + ArcFastVtx_36 = arcFastVtx[36]; + ArcFastVtx_37 = arcFastVtx[37]; + ArcFastVtx_38 = arcFastVtx[38]; + ArcFastVtx_39 = arcFastVtx[39]; + ArcFastVtx_40 = arcFastVtx[40]; + ArcFastVtx_41 = arcFastVtx[41]; + ArcFastVtx_42 = arcFastVtx[42]; + ArcFastVtx_43 = arcFastVtx[43]; + ArcFastVtx_44 = arcFastVtx[44]; + ArcFastVtx_45 = arcFastVtx[45]; + ArcFastVtx_46 = arcFastVtx[46]; + ArcFastVtx_47 = arcFastVtx[47]; + } + ArcFastRadiusCutoff = arcFastRadiusCutoff; + if (circleSegmentCounts != default) + { + CircleSegmentCounts_0 = circleSegmentCounts[0]; + CircleSegmentCounts_1 = circleSegmentCounts[1]; + CircleSegmentCounts_2 = circleSegmentCounts[2]; + CircleSegmentCounts_3 = circleSegmentCounts[3]; + CircleSegmentCounts_4 = circleSegmentCounts[4]; + CircleSegmentCounts_5 = circleSegmentCounts[5]; + CircleSegmentCounts_6 = circleSegmentCounts[6]; + CircleSegmentCounts_7 = circleSegmentCounts[7]; + CircleSegmentCounts_8 = circleSegmentCounts[8]; + CircleSegmentCounts_9 = circleSegmentCounts[9]; + CircleSegmentCounts_10 = circleSegmentCounts[10]; + CircleSegmentCounts_11 = circleSegmentCounts[11]; + CircleSegmentCounts_12 = circleSegmentCounts[12]; + CircleSegmentCounts_13 = circleSegmentCounts[13]; + CircleSegmentCounts_14 = circleSegmentCounts[14]; + CircleSegmentCounts_15 = circleSegmentCounts[15]; + CircleSegmentCounts_16 = circleSegmentCounts[16]; + CircleSegmentCounts_17 = circleSegmentCounts[17]; + CircleSegmentCounts_18 = circleSegmentCounts[18]; + CircleSegmentCounts_19 = circleSegmentCounts[19]; + CircleSegmentCounts_20 = circleSegmentCounts[20]; + CircleSegmentCounts_21 = circleSegmentCounts[21]; + CircleSegmentCounts_22 = circleSegmentCounts[22]; + CircleSegmentCounts_23 = circleSegmentCounts[23]; + CircleSegmentCounts_24 = circleSegmentCounts[24]; + CircleSegmentCounts_25 = circleSegmentCounts[25]; + CircleSegmentCounts_26 = circleSegmentCounts[26]; + CircleSegmentCounts_27 = circleSegmentCounts[27]; + CircleSegmentCounts_28 = circleSegmentCounts[28]; + CircleSegmentCounts_29 = circleSegmentCounts[29]; + CircleSegmentCounts_30 = circleSegmentCounts[30]; + CircleSegmentCounts_31 = circleSegmentCounts[31]; + CircleSegmentCounts_32 = circleSegmentCounts[32]; + CircleSegmentCounts_33 = circleSegmentCounts[33]; + CircleSegmentCounts_34 = circleSegmentCounts[34]; + CircleSegmentCounts_35 = circleSegmentCounts[35]; + CircleSegmentCounts_36 = circleSegmentCounts[36]; + CircleSegmentCounts_37 = circleSegmentCounts[37]; + CircleSegmentCounts_38 = circleSegmentCounts[38]; + CircleSegmentCounts_39 = circleSegmentCounts[39]; + CircleSegmentCounts_40 = circleSegmentCounts[40]; + CircleSegmentCounts_41 = circleSegmentCounts[41]; + CircleSegmentCounts_42 = circleSegmentCounts[42]; + CircleSegmentCounts_43 = circleSegmentCounts[43]; + CircleSegmentCounts_44 = circleSegmentCounts[44]; + CircleSegmentCounts_45 = circleSegmentCounts[45]; + CircleSegmentCounts_46 = circleSegmentCounts[46]; + CircleSegmentCounts_47 = circleSegmentCounts[47]; + CircleSegmentCounts_48 = circleSegmentCounts[48]; + CircleSegmentCounts_49 = circleSegmentCounts[49]; + CircleSegmentCounts_50 = circleSegmentCounts[50]; + CircleSegmentCounts_51 = circleSegmentCounts[51]; + CircleSegmentCounts_52 = circleSegmentCounts[52]; + CircleSegmentCounts_53 = circleSegmentCounts[53]; + CircleSegmentCounts_54 = circleSegmentCounts[54]; + CircleSegmentCounts_55 = circleSegmentCounts[55]; + CircleSegmentCounts_56 = circleSegmentCounts[56]; + CircleSegmentCounts_57 = circleSegmentCounts[57]; + CircleSegmentCounts_58 = circleSegmentCounts[58]; + CircleSegmentCounts_59 = circleSegmentCounts[59]; + CircleSegmentCounts_60 = circleSegmentCounts[60]; + CircleSegmentCounts_61 = circleSegmentCounts[61]; + CircleSegmentCounts_62 = circleSegmentCounts[62]; + CircleSegmentCounts_63 = circleSegmentCounts[63]; + } + TexUvLines = texUvLines; + } + + /// /// To be documented. /// public unsafe ImDrawListSharedData(Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, int initialFlags = default, ImVectorImVec2 tempBuffer = default, Span arcFastVtx = default, float arcFastRadiusCutoff = default, Span circleSegmentCounts = default, Vector4* texUvLines = default) + { + TexUvWhitePixel = texUvWhitePixel; + Font = font; + FontSize = fontSize; + CurveTessellationTol = curveTessellationTol; + CircleSegmentMaxError = circleSegmentMaxError; + ClipRectFullscreen = clipRectFullscreen; + InitialFlags = initialFlags; + TempBuffer = tempBuffer; + if (arcFastVtx != default) + { + ArcFastVtx_0 = arcFastVtx[0]; + ArcFastVtx_1 = arcFastVtx[1]; + ArcFastVtx_2 = arcFastVtx[2]; + ArcFastVtx_3 = arcFastVtx[3]; + ArcFastVtx_4 = arcFastVtx[4]; + ArcFastVtx_5 = arcFastVtx[5]; + ArcFastVtx_6 = arcFastVtx[6]; + ArcFastVtx_7 = arcFastVtx[7]; + ArcFastVtx_8 = arcFastVtx[8]; + ArcFastVtx_9 = arcFastVtx[9]; + ArcFastVtx_10 = arcFastVtx[10]; + ArcFastVtx_11 = arcFastVtx[11]; + ArcFastVtx_12 = arcFastVtx[12]; + ArcFastVtx_13 = arcFastVtx[13]; + ArcFastVtx_14 = arcFastVtx[14]; + ArcFastVtx_15 = arcFastVtx[15]; + ArcFastVtx_16 = arcFastVtx[16]; + ArcFastVtx_17 = arcFastVtx[17]; + ArcFastVtx_18 = arcFastVtx[18]; + ArcFastVtx_19 = arcFastVtx[19]; + ArcFastVtx_20 = arcFastVtx[20]; + ArcFastVtx_21 = arcFastVtx[21]; + ArcFastVtx_22 = arcFastVtx[22]; + ArcFastVtx_23 = arcFastVtx[23]; + ArcFastVtx_24 = arcFastVtx[24]; + ArcFastVtx_25 = arcFastVtx[25]; + ArcFastVtx_26 = arcFastVtx[26]; + ArcFastVtx_27 = arcFastVtx[27]; + ArcFastVtx_28 = arcFastVtx[28]; + ArcFastVtx_29 = arcFastVtx[29]; + ArcFastVtx_30 = arcFastVtx[30]; + ArcFastVtx_31 = arcFastVtx[31]; + ArcFastVtx_32 = arcFastVtx[32]; + ArcFastVtx_33 = arcFastVtx[33]; + ArcFastVtx_34 = arcFastVtx[34]; + ArcFastVtx_35 = arcFastVtx[35]; + ArcFastVtx_36 = arcFastVtx[36]; + ArcFastVtx_37 = arcFastVtx[37]; + ArcFastVtx_38 = arcFastVtx[38]; + ArcFastVtx_39 = arcFastVtx[39]; + ArcFastVtx_40 = arcFastVtx[40]; + ArcFastVtx_41 = arcFastVtx[41]; + ArcFastVtx_42 = arcFastVtx[42]; + ArcFastVtx_43 = arcFastVtx[43]; + ArcFastVtx_44 = arcFastVtx[44]; + ArcFastVtx_45 = arcFastVtx[45]; + ArcFastVtx_46 = arcFastVtx[46]; + ArcFastVtx_47 = arcFastVtx[47]; + } + ArcFastRadiusCutoff = arcFastRadiusCutoff; + if (circleSegmentCounts != default) + { + CircleSegmentCounts_0 = circleSegmentCounts[0]; + CircleSegmentCounts_1 = circleSegmentCounts[1]; + CircleSegmentCounts_2 = circleSegmentCounts[2]; + CircleSegmentCounts_3 = circleSegmentCounts[3]; + CircleSegmentCounts_4 = circleSegmentCounts[4]; + CircleSegmentCounts_5 = circleSegmentCounts[5]; + CircleSegmentCounts_6 = circleSegmentCounts[6]; + CircleSegmentCounts_7 = circleSegmentCounts[7]; + CircleSegmentCounts_8 = circleSegmentCounts[8]; + CircleSegmentCounts_9 = circleSegmentCounts[9]; + CircleSegmentCounts_10 = circleSegmentCounts[10]; + CircleSegmentCounts_11 = circleSegmentCounts[11]; + CircleSegmentCounts_12 = circleSegmentCounts[12]; + CircleSegmentCounts_13 = circleSegmentCounts[13]; + CircleSegmentCounts_14 = circleSegmentCounts[14]; + CircleSegmentCounts_15 = circleSegmentCounts[15]; + CircleSegmentCounts_16 = circleSegmentCounts[16]; + CircleSegmentCounts_17 = circleSegmentCounts[17]; + CircleSegmentCounts_18 = circleSegmentCounts[18]; + CircleSegmentCounts_19 = circleSegmentCounts[19]; + CircleSegmentCounts_20 = circleSegmentCounts[20]; + CircleSegmentCounts_21 = circleSegmentCounts[21]; + CircleSegmentCounts_22 = circleSegmentCounts[22]; + CircleSegmentCounts_23 = circleSegmentCounts[23]; + CircleSegmentCounts_24 = circleSegmentCounts[24]; + CircleSegmentCounts_25 = circleSegmentCounts[25]; + CircleSegmentCounts_26 = circleSegmentCounts[26]; + CircleSegmentCounts_27 = circleSegmentCounts[27]; + CircleSegmentCounts_28 = circleSegmentCounts[28]; + CircleSegmentCounts_29 = circleSegmentCounts[29]; + CircleSegmentCounts_30 = circleSegmentCounts[30]; + CircleSegmentCounts_31 = circleSegmentCounts[31]; + CircleSegmentCounts_32 = circleSegmentCounts[32]; + CircleSegmentCounts_33 = circleSegmentCounts[33]; + CircleSegmentCounts_34 = circleSegmentCounts[34]; + CircleSegmentCounts_35 = circleSegmentCounts[35]; + CircleSegmentCounts_36 = circleSegmentCounts[36]; + CircleSegmentCounts_37 = circleSegmentCounts[37]; + CircleSegmentCounts_38 = circleSegmentCounts[38]; + CircleSegmentCounts_39 = circleSegmentCounts[39]; + CircleSegmentCounts_40 = circleSegmentCounts[40]; + CircleSegmentCounts_41 = circleSegmentCounts[41]; + CircleSegmentCounts_42 = circleSegmentCounts[42]; + CircleSegmentCounts_43 = circleSegmentCounts[43]; + CircleSegmentCounts_44 = circleSegmentCounts[44]; + CircleSegmentCounts_45 = circleSegmentCounts[45]; + CircleSegmentCounts_46 = circleSegmentCounts[46]; + CircleSegmentCounts_47 = circleSegmentCounts[47]; + CircleSegmentCounts_48 = circleSegmentCounts[48]; + CircleSegmentCounts_49 = circleSegmentCounts[49]; + CircleSegmentCounts_50 = circleSegmentCounts[50]; + CircleSegmentCounts_51 = circleSegmentCounts[51]; + CircleSegmentCounts_52 = circleSegmentCounts[52]; + CircleSegmentCounts_53 = circleSegmentCounts[53]; + CircleSegmentCounts_54 = circleSegmentCounts[54]; + CircleSegmentCounts_55 = circleSegmentCounts[55]; + CircleSegmentCounts_56 = circleSegmentCounts[56]; + CircleSegmentCounts_57 = circleSegmentCounts[57]; + CircleSegmentCounts_58 = circleSegmentCounts[58]; + CircleSegmentCounts_59 = circleSegmentCounts[59]; + CircleSegmentCounts_60 = circleSegmentCounts[60]; + CircleSegmentCounts_61 = circleSegmentCounts[61]; + CircleSegmentCounts_62 = circleSegmentCounts[62]; + CircleSegmentCounts_63 = circleSegmentCounts[63]; + } + TexUvLines = texUvLines; + } + + + /// + /// To be documented. + /// + public unsafe Span ArcFastVtx + + { + get + { + fixed (Vector2* p = &this.ArcFastVtx_0) + { + return new Span(p, 48); + } + } + } + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFont + { + /// + /// To be documented. + /// + public ImVectorFloat IndexAdvanceX; + + /// + /// To be documented. + /// + public float FallbackAdvanceX; + + /// + /// To be documented. + /// + public float FontSize; + + /// + /// To be documented. + /// + public ImVectorImWchar IndexLookup; + + /// + /// To be documented. + /// + public ImVectorImFontGlyph Glyphs; + + /// + /// To be documented. + /// + public unsafe ImFontGlyph* FallbackGlyph; + + /// + /// To be documented. + /// + public unsafe ImFontAtlas* ContainerAtlas; + + /// + /// To be documented. + /// + public unsafe ImFontConfig* ConfigData; + + /// + /// To be documented. + /// + public short ConfigDataCount; + + /// + /// To be documented. + /// + public ushort FallbackChar; + + /// + /// To be documented. + /// + public ushort EllipsisChar; + + /// + /// To be documented. + /// + public short EllipsisCharCount; + + /// + /// To be documented. + /// + public float EllipsisWidth; + + /// + /// To be documented. + /// + public float EllipsisCharStep; + + /// + /// To be documented. + /// + public byte DirtyLookupTables; + + /// + /// To be documented. + /// + public float Scale; + + /// + /// To be documented. + /// + public float Ascent; + + /// + /// To be documented. + /// + public float Descent; + + /// + /// To be documented. + /// + public int MetricsTotalSurface; + + /// + /// To be documented. + /// + public byte Used4kPagesMap_0; + public byte Used4kPagesMap_1; + + + + /// /// To be documented. /// public unsafe ImFont(ImVectorFloat indexAdvanceX = default, float fallbackAdvanceX = default, float fontSize = default, ImVectorImWchar indexLookup = default, ImVectorImFontGlyph glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, ushort fallbackChar = default, ushort ellipsisChar = default, short ellipsisCharCount = default, float ellipsisWidth = default, float ellipsisCharStep = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, byte* used4KPagesMap = default) + { + IndexAdvanceX = indexAdvanceX; + FallbackAdvanceX = fallbackAdvanceX; + FontSize = fontSize; + IndexLookup = indexLookup; + Glyphs = glyphs; + FallbackGlyph = fallbackGlyph; + ContainerAtlas = containerAtlas; + ConfigData = configData; + ConfigDataCount = configDataCount; + FallbackChar = fallbackChar; + EllipsisChar = ellipsisChar; + EllipsisCharCount = ellipsisCharCount; + EllipsisWidth = ellipsisWidth; + EllipsisCharStep = ellipsisCharStep; + DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; + Scale = scale; + Ascent = ascent; + Descent = descent; + MetricsTotalSurface = metricsTotalSurface; + if (used4KPagesMap != default) + { + Used4kPagesMap_0 = used4KPagesMap[0]; + Used4kPagesMap_1 = used4KPagesMap[1]; + } + } + + /// /// To be documented. /// public unsafe ImFont(ImVectorFloat indexAdvanceX = default, float fallbackAdvanceX = default, float fontSize = default, ImVectorImWchar indexLookup = default, ImVectorImFontGlyph glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, ushort fallbackChar = default, ushort ellipsisChar = default, short ellipsisCharCount = default, float ellipsisWidth = default, float ellipsisCharStep = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, Span used4KPagesMap = default) + { + IndexAdvanceX = indexAdvanceX; + FallbackAdvanceX = fallbackAdvanceX; + FontSize = fontSize; + IndexLookup = indexLookup; + Glyphs = glyphs; + FallbackGlyph = fallbackGlyph; + ContainerAtlas = containerAtlas; + ConfigData = configData; + ConfigDataCount = configDataCount; + FallbackChar = fallbackChar; + EllipsisChar = ellipsisChar; + EllipsisCharCount = ellipsisCharCount; + EllipsisWidth = ellipsisWidth; + EllipsisCharStep = ellipsisCharStep; + DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; + Scale = scale; + Ascent = ascent; + Descent = descent; + MetricsTotalSurface = metricsTotalSurface; + if (used4KPagesMap != default) + { + Used4kPagesMap_0 = used4KPagesMap[0]; + Used4kPagesMap_1 = used4KPagesMap[1]; + } + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Structures.001.cs b/Hexa.NET.ImGui/Generated/Structures.001.cs new file mode 100644 index 0000000..c51b191 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Structures.001.cs @@ -0,0 +1,5014 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawChannel + { + + + /// + /// To be documented. + /// + public unsafe void AddGlyph( ImFontConfig* srcCfg, char c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) + { + fixed (ImFont* @this = &this) + { + ImGui.AddGlyphNative(@this, srcCfg, c, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + + public unsafe void AddGlyph( ref ImFontConfig srcCfg, char c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) + { + fixed (ImFont* @this = &this) + { + fixed (ImFontConfig* psrcCfg = &srcCfg) + { + ImGui.AddGlyphNative(@this, (ImFontConfig*)psrcCfg, c, x0, y0, x1, y1, u0, v0, u1, v1, advanceX); + } + } + } + + public unsafe void AddRemapChar( char dst, char src, bool overwriteDst) + { + fixed (ImFont* @this = &this) + { + ImGui.AddRemapCharNative(@this, dst, src, overwriteDst ? (byte)1 : (byte)0); + } + } + + public unsafe void AddRemapChar( char dst, char src) + { + fixed (ImFont* @this = &this) + { + ImGui.AddRemapCharNative(@this, dst, src, (byte)(1)); + } + } + + public unsafe void BuildLookupTable() + { + fixed (ImFont* @this = &this) + { + ImGui.BuildLookupTableNative(@this); + } + } + + public unsafe byte* CalcWordWrapPositionA( float scale, byte* text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, text, textEnd, wrapWidth); + return ret; + } + } + + public unsafe string CalcWordWrapPositionAS( float scale, byte* text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, text, textEnd, wrapWidth)); + return ret; + } + } + + public unsafe byte* CalcWordWrapPositionA( float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = &text) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, textEnd, wrapWidth); + return ret; + } + } + } + + public unsafe string CalcWordWrapPositionAS( float scale, ref byte text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = &text) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, textEnd, wrapWidth)); + return ret; + } + } + } + + public unsafe byte* CalcWordWrapPositionA( float scale, string text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, textEnd, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe string CalcWordWrapPositionAS( float scale, string text, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, textEnd, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe byte* CalcWordWrapPositionA( float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, text, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + + public unsafe string CalcWordWrapPositionAS( float scale, byte* text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, text, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + + public unsafe byte* CalcWordWrapPositionA( float scale, byte* text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, text, pStr0, wrapWidth); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe string CalcWordWrapPositionAS( float scale, byte* text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, text, pStr0, wrapWidth)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe byte* CalcWordWrapPositionA( float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth); + return ret; + } + } + } + } + + public unsafe string CalcWordWrapPositionAS( float scale, ref byte text, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, (byte*)ptext, (byte*)ptextEnd, wrapWidth)); + return ret; + } + } + } + } + + public unsafe byte* CalcWordWrapPositionA( float scale, string text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte* ret = ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, pStr1, wrapWidth); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe string CalcWordWrapPositionAS( float scale, string text, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + string ret = Utils.DecodeStringUTF8(ImGui.CalcWordWrapPositionANative(@this, scale, pStr0, pStr1, wrapWidth)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe void ClearOutputData() + { + fixed (ImFont* @this = &this) + { + ImGui.ClearOutputDataNative(@this); + } + } + + public unsafe void Destroy() + { + fixed (ImFont* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe ImFontGlyph* FindGlyph( char c) + { + fixed (ImFont* @this = &this) + { + ImFontGlyph* ret = ImGui.FindGlyphNative(@this, c); + return ret; + } + } + + public unsafe ImFontGlyph* FindGlyphNoFallback( char c) + { + fixed (ImFont* @this = &this) + { + ImFontGlyph* ret = ImGui.FindGlyphNoFallbackNative(@this, c); + return ret; + } + } + + public unsafe float GetCharAdvance( char c) + { + fixed (ImFont* @this = &this) + { + float ret = ImGui.GetCharAdvanceNative(@this, c); + return ret; + } + } + + public unsafe byte* GetDebugName() + { + fixed (ImFont* @this = &this) + { + byte* ret = ImGui.GetDebugNameNative(@this); + return ret; + } + } + + public unsafe string GetDebugNameS() + { + fixed (ImFont* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImGui.GetDebugNameNative(@this)); + return ret; + } + } + + public unsafe void GrowIndex( int newSize) + { + fixed (ImFont* @this = &this) + { + ImGui.GrowIndexNative(@this, newSize); + } + } + + public unsafe bool IsGlyphRangeUnused( uint cBegin, uint cLast) + { + fixed (ImFont* @this = &this) + { + byte ret = ImGui.IsGlyphRangeUnusedNative(@this, cBegin, cLast); + return ret != 0; + } + } + + public unsafe bool IsLoaded() + { + fixed (ImFont* @this = &this) + { + byte ret = ImGui.IsLoadedNative(@this); + return ret != 0; + } + } + + public unsafe void RenderChar( ImDrawList* drawList, float size, Vector2 pos, uint col, char c) + { + fixed (ImFont* @this = &this) + { + ImGui.RenderCharNative(@this, drawList, size, pos, col, c); + } + } + + public unsafe void RenderChar( ref ImDrawList drawList, float size, Vector2 pos, uint col, char c) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderCharNative(@this, (ImDrawList*)pdrawList, size, pos, col, c); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, wrapWidth, (byte)(0)); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, textEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, wrapWidth, (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), (byte)(0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, textBegin, pStr0, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.RenderTextNative(@this, drawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, wrapWidth, (byte)(0)); + } + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), (byte)(0)); + } + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + fixed (byte* ptextBegin = &textBegin) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, (byte*)ptextBegin, (byte*)ptextEnd, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + } + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, wrapWidth, (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), (byte)(0)); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) + { + fixed (ImFont* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textBegin != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textBegin); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textBegin, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.RenderTextNative(@this, (ImDrawList*)pdrawList, size, pos, col, clipRect, pStr0, pStr1, (float)(0.0f), cpuFineClip ? (byte)1 : (byte)0); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public unsafe void SetGlyphVisible( char c, bool visible) + { + fixed (ImFont* @this = &this) + { + ImGui.SetGlyphVisibleNative(@this, c, visible ? (byte)1 : (byte)0); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorFloat + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe float* Data; + + + /// /// To be documented. /// public unsafe ImVectorFloat(int size = default, int capacity = default, float* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImWchar + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ushort* Data; + + + /// /// To be documented. /// public unsafe ImVectorImWchar(int size = default, int capacity = default, ushort* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImFontGlyph + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImFontGlyph* Data; + + + /// /// To be documented. /// public unsafe ImVectorImFontGlyph(int size = default, int capacity = default, ImFontGlyph* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontGlyph + { + /// + /// To be documented. + /// + public uint Colored; + + /// + /// To be documented. + /// + public uint Visible; + + /// + /// To be documented. + /// + public uint Codepoint; + + /// + /// To be documented. + /// + public float AdvanceX; + + /// + /// To be documented. + /// + public float X0; + + /// + /// To be documented. + /// + public float Y0; + + /// + /// To be documented. + /// + public float X1; + + /// + /// To be documented. + /// + public float Y1; + + /// + /// To be documented. + /// + public float U0; + + /// + /// To be documented. + /// + public float V0; + + /// + /// To be documented. + /// + public float U1; + + /// + /// To be documented. + /// + public float V1; + + + /// /// To be documented. /// public unsafe ImFontGlyph(uint colored = default, uint visible = default, uint codepoint = default, float advanceX = default, float x0 = default, float y0 = default, float x1 = default, float y1 = default, float u0 = default, float v0 = default, float u1 = default, float v1 = default) + { + Colored = colored; + Visible = visible; + Codepoint = codepoint; + AdvanceX = advanceX; + X0 = x0; + Y0 = y0; + X1 = x1; + Y1 = y1; + U0 = u0; + V0 = v0; + U1 = u1; + V1 = v1; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontAtlas + { + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public unsafe void* TexID; + + /// + /// To be documented. + /// + public int TexDesiredWidth; + + /// + /// To be documented. + /// + public int TexGlyphPadding; + + /// + /// To be documented. + /// + public byte Locked; + + /// + /// To be documented. + /// + public unsafe void* UserData; + + /// + /// To be documented. + /// + public byte TexReady; + + /// + /// To be documented. + /// + public byte TexPixelsUseColors; + + /// + /// To be documented. + /// + public unsafe byte* TexPixelsAlpha8; + + /// + /// To be documented. + /// + public unsafe uint* TexPixelsRGBA32; + + /// + /// To be documented. + /// + public int TexWidth; + + /// + /// To be documented. + /// + public int TexHeight; + + /// + /// To be documented. + /// + public Vector2 TexUvScale; + + /// + /// To be documented. + /// + public Vector2 TexUvWhitePixel; + + /// + /// To be documented. + /// + public ImVectorImFontPtr Fonts; + + /// + /// To be documented. + /// + public ImVectorImFontAtlasCustomRect CustomRects; + + /// + /// To be documented. + /// + public ImVectorImFontConfig ConfigData; + + /// + /// To be documented. + /// + public Vector4 TexUvLines_0; + public Vector4 TexUvLines_1; + public Vector4 TexUvLines_2; + public Vector4 TexUvLines_3; + public Vector4 TexUvLines_4; + public Vector4 TexUvLines_5; + public Vector4 TexUvLines_6; + public Vector4 TexUvLines_7; + public Vector4 TexUvLines_8; + public Vector4 TexUvLines_9; + public Vector4 TexUvLines_10; + public Vector4 TexUvLines_11; + public Vector4 TexUvLines_12; + public Vector4 TexUvLines_13; + public Vector4 TexUvLines_14; + public Vector4 TexUvLines_15; + public Vector4 TexUvLines_16; + public Vector4 TexUvLines_17; + public Vector4 TexUvLines_18; + public Vector4 TexUvLines_19; + public Vector4 TexUvLines_20; + public Vector4 TexUvLines_21; + public Vector4 TexUvLines_22; + public Vector4 TexUvLines_23; + public Vector4 TexUvLines_24; + public Vector4 TexUvLines_25; + public Vector4 TexUvLines_26; + public Vector4 TexUvLines_27; + public Vector4 TexUvLines_28; + public Vector4 TexUvLines_29; + public Vector4 TexUvLines_30; + public Vector4 TexUvLines_31; + public Vector4 TexUvLines_32; + public Vector4 TexUvLines_33; + public Vector4 TexUvLines_34; + public Vector4 TexUvLines_35; + public Vector4 TexUvLines_36; + public Vector4 TexUvLines_37; + public Vector4 TexUvLines_38; + public Vector4 TexUvLines_39; + public Vector4 TexUvLines_40; + public Vector4 TexUvLines_41; + public Vector4 TexUvLines_42; + public Vector4 TexUvLines_43; + public Vector4 TexUvLines_44; + public Vector4 TexUvLines_45; + public Vector4 TexUvLines_46; + public Vector4 TexUvLines_47; + public Vector4 TexUvLines_48; + public Vector4 TexUvLines_49; + public Vector4 TexUvLines_50; + public Vector4 TexUvLines_51; + public Vector4 TexUvLines_52; + public Vector4 TexUvLines_53; + public Vector4 TexUvLines_54; + public Vector4 TexUvLines_55; + public Vector4 TexUvLines_56; + public Vector4 TexUvLines_57; + public Vector4 TexUvLines_58; + public Vector4 TexUvLines_59; + public Vector4 TexUvLines_60; + public Vector4 TexUvLines_61; + public Vector4 TexUvLines_62; + public Vector4 TexUvLines_63; + + /// + /// To be documented. + /// + public unsafe ImFontBuilderIO* FontBuilderIO; + + /// + /// To be documented. + /// + public uint FontBuilderFlags; + + /// + /// To be documented. + /// + public int PackIdMouseCursors; + + /// + /// To be documented. + /// + public int PackIdLines; + + + + /// /// To be documented. /// public unsafe ImFontAtlas(int flags = default, void* texId = default, int texDesiredWidth = default, int texGlyphPadding = default, bool locked = default, void* userData = default, bool texReady = default, bool texPixelsUseColors = default, byte* texPixelsAlpha8 = default, uint* texPixelsRgba32 = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVectorImFontPtr fonts = default, ImVectorImFontAtlasCustomRect customRects = default, ImVectorImFontConfig configData = default, Vector4* texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int packIdMouseCursors = default, int packIdLines = default) + { + Flags = flags; + TexID = texId; + TexDesiredWidth = texDesiredWidth; + TexGlyphPadding = texGlyphPadding; + Locked = locked ? (byte)1 : (byte)0; + UserData = userData; + TexReady = texReady ? (byte)1 : (byte)0; + TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; + TexPixelsAlpha8 = texPixelsAlpha8; + TexPixelsRGBA32 = texPixelsRgba32; + TexWidth = texWidth; + TexHeight = texHeight; + TexUvScale = texUvScale; + TexUvWhitePixel = texUvWhitePixel; + Fonts = fonts; + CustomRects = customRects; + ConfigData = configData; + if (texUvLines != default) + { + TexUvLines_0 = texUvLines[0]; + TexUvLines_1 = texUvLines[1]; + TexUvLines_2 = texUvLines[2]; + TexUvLines_3 = texUvLines[3]; + TexUvLines_4 = texUvLines[4]; + TexUvLines_5 = texUvLines[5]; + TexUvLines_6 = texUvLines[6]; + TexUvLines_7 = texUvLines[7]; + TexUvLines_8 = texUvLines[8]; + TexUvLines_9 = texUvLines[9]; + TexUvLines_10 = texUvLines[10]; + TexUvLines_11 = texUvLines[11]; + TexUvLines_12 = texUvLines[12]; + TexUvLines_13 = texUvLines[13]; + TexUvLines_14 = texUvLines[14]; + TexUvLines_15 = texUvLines[15]; + TexUvLines_16 = texUvLines[16]; + TexUvLines_17 = texUvLines[17]; + TexUvLines_18 = texUvLines[18]; + TexUvLines_19 = texUvLines[19]; + TexUvLines_20 = texUvLines[20]; + TexUvLines_21 = texUvLines[21]; + TexUvLines_22 = texUvLines[22]; + TexUvLines_23 = texUvLines[23]; + TexUvLines_24 = texUvLines[24]; + TexUvLines_25 = texUvLines[25]; + TexUvLines_26 = texUvLines[26]; + TexUvLines_27 = texUvLines[27]; + TexUvLines_28 = texUvLines[28]; + TexUvLines_29 = texUvLines[29]; + TexUvLines_30 = texUvLines[30]; + TexUvLines_31 = texUvLines[31]; + TexUvLines_32 = texUvLines[32]; + TexUvLines_33 = texUvLines[33]; + TexUvLines_34 = texUvLines[34]; + TexUvLines_35 = texUvLines[35]; + TexUvLines_36 = texUvLines[36]; + TexUvLines_37 = texUvLines[37]; + TexUvLines_38 = texUvLines[38]; + TexUvLines_39 = texUvLines[39]; + TexUvLines_40 = texUvLines[40]; + TexUvLines_41 = texUvLines[41]; + TexUvLines_42 = texUvLines[42]; + TexUvLines_43 = texUvLines[43]; + TexUvLines_44 = texUvLines[44]; + TexUvLines_45 = texUvLines[45]; + TexUvLines_46 = texUvLines[46]; + TexUvLines_47 = texUvLines[47]; + TexUvLines_48 = texUvLines[48]; + TexUvLines_49 = texUvLines[49]; + TexUvLines_50 = texUvLines[50]; + TexUvLines_51 = texUvLines[51]; + TexUvLines_52 = texUvLines[52]; + TexUvLines_53 = texUvLines[53]; + TexUvLines_54 = texUvLines[54]; + TexUvLines_55 = texUvLines[55]; + TexUvLines_56 = texUvLines[56]; + TexUvLines_57 = texUvLines[57]; + TexUvLines_58 = texUvLines[58]; + TexUvLines_59 = texUvLines[59]; + TexUvLines_60 = texUvLines[60]; + TexUvLines_61 = texUvLines[61]; + TexUvLines_62 = texUvLines[62]; + TexUvLines_63 = texUvLines[63]; + } + FontBuilderIO = fontBuilderIo; + FontBuilderFlags = fontBuilderFlags; + PackIdMouseCursors = packIdMouseCursors; + PackIdLines = packIdLines; + } + + /// /// To be documented. /// public unsafe ImFontAtlas(int flags = default, void* texId = default, int texDesiredWidth = default, int texGlyphPadding = default, bool locked = default, void* userData = default, bool texReady = default, bool texPixelsUseColors = default, byte* texPixelsAlpha8 = default, uint* texPixelsRgba32 = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVectorImFontPtr fonts = default, ImVectorImFontAtlasCustomRect customRects = default, ImVectorImFontConfig configData = default, Span texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int packIdMouseCursors = default, int packIdLines = default) + { + Flags = flags; + TexID = texId; + TexDesiredWidth = texDesiredWidth; + TexGlyphPadding = texGlyphPadding; + Locked = locked ? (byte)1 : (byte)0; + UserData = userData; + TexReady = texReady ? (byte)1 : (byte)0; + TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; + TexPixelsAlpha8 = texPixelsAlpha8; + TexPixelsRGBA32 = texPixelsRgba32; + TexWidth = texWidth; + TexHeight = texHeight; + TexUvScale = texUvScale; + TexUvWhitePixel = texUvWhitePixel; + Fonts = fonts; + CustomRects = customRects; + ConfigData = configData; + if (texUvLines != default) + { + TexUvLines_0 = texUvLines[0]; + TexUvLines_1 = texUvLines[1]; + TexUvLines_2 = texUvLines[2]; + TexUvLines_3 = texUvLines[3]; + TexUvLines_4 = texUvLines[4]; + TexUvLines_5 = texUvLines[5]; + TexUvLines_6 = texUvLines[6]; + TexUvLines_7 = texUvLines[7]; + TexUvLines_8 = texUvLines[8]; + TexUvLines_9 = texUvLines[9]; + TexUvLines_10 = texUvLines[10]; + TexUvLines_11 = texUvLines[11]; + TexUvLines_12 = texUvLines[12]; + TexUvLines_13 = texUvLines[13]; + TexUvLines_14 = texUvLines[14]; + TexUvLines_15 = texUvLines[15]; + TexUvLines_16 = texUvLines[16]; + TexUvLines_17 = texUvLines[17]; + TexUvLines_18 = texUvLines[18]; + TexUvLines_19 = texUvLines[19]; + TexUvLines_20 = texUvLines[20]; + TexUvLines_21 = texUvLines[21]; + TexUvLines_22 = texUvLines[22]; + TexUvLines_23 = texUvLines[23]; + TexUvLines_24 = texUvLines[24]; + TexUvLines_25 = texUvLines[25]; + TexUvLines_26 = texUvLines[26]; + TexUvLines_27 = texUvLines[27]; + TexUvLines_28 = texUvLines[28]; + TexUvLines_29 = texUvLines[29]; + TexUvLines_30 = texUvLines[30]; + TexUvLines_31 = texUvLines[31]; + TexUvLines_32 = texUvLines[32]; + TexUvLines_33 = texUvLines[33]; + TexUvLines_34 = texUvLines[34]; + TexUvLines_35 = texUvLines[35]; + TexUvLines_36 = texUvLines[36]; + TexUvLines_37 = texUvLines[37]; + TexUvLines_38 = texUvLines[38]; + TexUvLines_39 = texUvLines[39]; + TexUvLines_40 = texUvLines[40]; + TexUvLines_41 = texUvLines[41]; + TexUvLines_42 = texUvLines[42]; + TexUvLines_43 = texUvLines[43]; + TexUvLines_44 = texUvLines[44]; + TexUvLines_45 = texUvLines[45]; + TexUvLines_46 = texUvLines[46]; + TexUvLines_47 = texUvLines[47]; + TexUvLines_48 = texUvLines[48]; + TexUvLines_49 = texUvLines[49]; + TexUvLines_50 = texUvLines[50]; + TexUvLines_51 = texUvLines[51]; + TexUvLines_52 = texUvLines[52]; + TexUvLines_53 = texUvLines[53]; + TexUvLines_54 = texUvLines[54]; + TexUvLines_55 = texUvLines[55]; + TexUvLines_56 = texUvLines[56]; + TexUvLines_57 = texUvLines[57]; + TexUvLines_58 = texUvLines[58]; + TexUvLines_59 = texUvLines[59]; + TexUvLines_60 = texUvLines[60]; + TexUvLines_61 = texUvLines[61]; + TexUvLines_62 = texUvLines[62]; + TexUvLines_63 = texUvLines[63]; + } + FontBuilderIO = fontBuilderIo; + FontBuilderFlags = fontBuilderFlags; + PackIdMouseCursors = packIdMouseCursors; + PackIdLines = packIdLines; + } + + + /// + /// To be documented. + /// + public unsafe Span TexUvLines + + { + get + { + fixed (Vector4* p = &this.TexUvLines_0) + { + return new Span(p, 64); + } + } + } + public unsafe int AddCustomRectFontGlyph( ImFont* font, char id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFontAtlas* @this = &this) + { + int ret = ImGui.AddCustomRectFontGlyphNative(@this, font, id, width, height, advanceX, offset); + return ret; + } + } + + public unsafe int AddCustomRectFontGlyph( ImFont* font, char id, int width, int height, float advanceX) + { + fixed (ImFontAtlas* @this = &this) + { + int ret = ImGui.AddCustomRectFontGlyphNative(@this, font, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + + public unsafe int AddCustomRectFontGlyph( ref ImFont font, char id, int width, int height, float advanceX, Vector2 offset) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGui.AddCustomRectFontGlyphNative(@this, (ImFont*)pfont, id, width, height, advanceX, offset); + return ret; + } + } + } + + public unsafe int AddCustomRectFontGlyph( ref ImFont font, char id, int width, int height, float advanceX) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFont* pfont = &font) + { + int ret = ImGui.AddCustomRectFontGlyphNative(@this, (ImFont*)pfont, id, width, height, advanceX, (Vector2)(new Vector2(0,0))); + return ret; + } + } + } + + public unsafe int AddCustomRectRegular( int width, int height) + { + fixed (ImFontAtlas* @this = &this) + { + int ret = ImGui.AddCustomRectRegularNative(@this, width, height); + return ret; + } + } + + public unsafe ImFont* AddFont( ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontNative(@this, fontCfg); + return ret; + } + } + + public unsafe ImFont* AddFont( ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontNative(@this, (ImFontConfig*)pfontCfg); + return ret; + } + } + } + + public unsafe ImFont* AddFontDefault( ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontDefaultNative(@this, fontCfg); + return ret; + } + } + + public unsafe ImFont* AddFontDefault() + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontDefaultNative(@this, (ImFontConfig*)(default)); + return ret; + } + } + + public unsafe ImFont* AddFontDefault( ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontDefaultNative(@this, (ImFontConfig*)pfontCfg); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, fontCfg, (char*)(default)); + return ret; + } + } + + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + } + + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, (char*)(default)); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, fontCfg, (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, fontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, filename, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pfilename = &filename) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, (byte*)pfilename, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + } + } + + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromFileTTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, fontCfg, (char*)(default)); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (char*)(default)); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, fontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, fontCfg, (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, fontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (compressedFontDatabase85 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, (char*)(default)); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + } + + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, fontCfg, glyphRanges); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, fontCfg, (char*)(default)); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + return ret; + } + } + + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, fontCfg, (char*)pglyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + return ret; + } + } + } + + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontConfig* pfontCfg = &fontCfg) + { + fixed (char* pglyphRanges = &glyphRanges) + { + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + return ret; + } + } + } + } + + public unsafe bool Build() + { + fixed (ImFontAtlas* @this = &this) + { + byte ret = ImGui.BuildNative(@this); + return ret != 0; + } + } + + public unsafe void CalcCustomRectUV( ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.CalcCustomRectUVNative(@this, rect, outUvMin, outUvMax); + } + } + + public unsafe void CalcCustomRectUV( ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, outUvMin, outUvMax); + } + } + } + + public unsafe void CalcCustomRectUV( ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGui.CalcCustomRectUVNative(@this, rect, (Vector2*)poutUvMin, outUvMax); + } + } + } + + public unsafe void CalcCustomRectUV( ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, outUvMax); + } + } + } + } + + public unsafe void CalcCustomRectUV( ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(@this, rect, outUvMin, (Vector2*)poutUvMax); + } + } + } + + public unsafe void CalcCustomRectUV( ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, outUvMin, (Vector2*)poutUvMax); + } + } + } + } + + public unsafe void CalcCustomRectUV( ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(@this, rect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + + public unsafe void CalcCustomRectUV( ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (ImFontAtlasCustomRect* prect = &rect) + { + fixed (Vector2* poutUvMin = &outUvMin) + { + fixed (Vector2* poutUvMax = &outUvMax) + { + ImGui.CalcCustomRectUVNative(@this, (ImFontAtlasCustomRect*)prect, (Vector2*)poutUvMin, (Vector2*)poutUvMax); + } + } + } + } + } + + public unsafe void Clear() + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + public unsafe void ClearFonts() + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.ClearFontsNative(@this); + } + } + + public unsafe void ClearInputData() + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.ClearInputDataNative(@this); + } + } + + public unsafe void ClearTexData() + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.ClearTexDataNative(@this); + } + } + + public unsafe void Destroy() + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe ImFontAtlasCustomRect* GetCustomRectByIndex( int index) + { + fixed (ImFontAtlas* @this = &this) + { + ImFontAtlasCustomRect* ret = ImGui.GetCustomRectByIndexNative(@this, index); + return ret; + } + } + + public unsafe char* GetGlyphRangesChineseFull() + { + fixed (ImFontAtlas* @this = &this) + { + char* ret = ImGui.GetGlyphRangesChineseFullNative(@this); + return ret; + } + } + + public unsafe char* GetGlyphRangesChineseSimplifiedCommon() + { + fixed (ImFontAtlas* @this = &this) + { + char* ret = ImGui.GetGlyphRangesChineseSimplifiedCommonNative(@this); + return ret; + } + } + + public unsafe char* GetGlyphRangesCyrillic() + { + fixed (ImFontAtlas* @this = &this) + { + char* ret = ImGui.GetGlyphRangesCyrillicNative(@this); + return ret; + } + } + + public unsafe char* GetGlyphRangesDefault() + { + fixed (ImFontAtlas* @this = &this) + { + char* ret = ImGui.GetGlyphRangesDefaultNative(@this); + return ret; + } + } + + public unsafe char* GetGlyphRangesGreek() + { + fixed (ImFontAtlas* @this = &this) + { + char* ret = ImGui.GetGlyphRangesGreekNative(@this); + return ret; + } + } + + public unsafe char* GetGlyphRangesJapanese() + { + fixed (ImFontAtlas* @this = &this) + { + char* ret = ImGui.GetGlyphRangesJapaneseNative(@this); + return ret; + } + } + + public unsafe char* GetGlyphRangesKorean() + { + fixed (ImFontAtlas* @this = &this) + { + char* ret = ImGui.GetGlyphRangesKoreanNative(@this); + return ret; + } + } + + public unsafe char* GetGlyphRangesThai() + { + fixed (ImFontAtlas* @this = &this) + { + char* ret = ImGui.GetGlyphRangesThaiNative(@this); + return ret; + } + } + + public unsafe char* GetGlyphRangesVietnamese() + { + fixed (ImFontAtlas* @this = &this) + { + char* ret = ImGui.GetGlyphRangesVietnameseNative(@this); + return ret; + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, outUvFill); + return ret != 0; + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, outUvFill); + return ret != 0; + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, outUvFill); + return ret != 0; + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, outUvFill); + return ret != 0; + } + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, outUvFill); + return ret != 0; + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, outUvFill); + return ret != 0; + } + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill); + return ret != 0; + } + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, outUvFill); + return ret != 0; + } + } + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, outUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, outUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, outUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, outSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, outOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + } + } + + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (Vector2* poutOffset = &outOffset) + { + fixed (Vector2* poutSize = &outSize) + { + fixed (Vector2* poutUvBorder = &outUvBorder) + { + fixed (Vector2* poutUvFill = &outUvFill) + { + byte ret = ImGui.GetMouseCursorTexDataNative(@this, cursor, (Vector2*)poutOffset, (Vector2*)poutSize, (Vector2*)poutUvBorder, (Vector2*)poutUvFill); + return ret != 0; + } + } + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, outWidth, outHeight, (int*)(default)); + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsAlpha8Native(@this, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, outWidth, outHeight, outBytesPerPixel); + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, outWidth, outHeight, (int*)(default)); + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, outWidth, outHeight, outBytesPerPixel); + } + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, outWidth, outHeight, (int*)(default)); + } + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, (int*)poutWidth, outHeight, outBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, int* outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)(default)); + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, outWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, outBytesPerPixel); + } + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, ref int outHeight) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)(default)); + } + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, outWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, (int*)poutWidth, outHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, outWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, outPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) + { + fixed (ImFontAtlas* @this = &this) + { + fixed (byte** poutPixels = &outPixels) + { + fixed (int* poutWidth = &outWidth) + { + fixed (int* poutHeight = &outHeight) + { + fixed (int* poutBytesPerPixel = &outBytesPerPixel) + { + ImGui.GetTexDataAsRGBA32Native(@this, (byte**)poutPixels, (int*)poutWidth, (int*)poutHeight, (int*)poutBytesPerPixel); + } + } + } + } + } + } + + public unsafe bool IsBuilt() + { + fixed (ImFontAtlas* @this = &this) + { + byte ret = ImGui.IsBuiltNative(@this); + return ret != 0; + } + } + + public unsafe void SetTexID( ImTextureID id) + { + fixed (ImFontAtlas* @this = &this) + { + ImGui.SetTexIDNative(@this, id); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImFontPtr + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImFont** Data; + + + /// /// To be documented. /// public unsafe ImVectorImFontPtr(int size = default, int capacity = default, ImFont** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImFontAtlasCustomRect + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImFontAtlasCustomRect* Data; + + + /// /// To be documented. /// public unsafe ImVectorImFontAtlasCustomRect(int size = default, int capacity = default, ImFontAtlasCustomRect* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontAtlasCustomRect + { + /// + /// To be documented. + /// + public ushort Width; + + /// + /// To be documented. + /// + public ushort Height; + + /// + /// To be documented. + /// + public ushort X; + + /// + /// To be documented. + /// + public ushort Y; + + /// + /// To be documented. + /// + public uint GlyphID; + + /// + /// To be documented. + /// + public float GlyphAdvanceX; + + /// + /// To be documented. + /// + public Vector2 GlyphOffset; + + /// + /// To be documented. + /// + public unsafe ImFont* Font; + + + + /// /// To be documented. /// public unsafe ImFontAtlasCustomRect(ushort width = default, ushort height = default, ushort x = default, ushort y = default, uint glyphId = default, float glyphAdvanceX = default, Vector2 glyphOffset = default, ImFont* font = default) + { + Width = width; + Height = height; + X = x; + Y = y; + GlyphID = glyphId; + GlyphAdvanceX = glyphAdvanceX; + GlyphOffset = glyphOffset; + Font = font; + } + + + public unsafe void Destroy() + { + fixed (ImFontAtlasCustomRect* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe bool IsPacked() + { + fixed (ImFontAtlasCustomRect* @this = &this) + { + byte ret = ImGui.IsPackedNative(@this); + return ret != 0; + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImFontConfig + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImFontConfig* Data; + + + /// /// To be documented. /// public unsafe ImVectorImFontConfig(int size = default, int capacity = default, ImFontConfig* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Structures.002.cs b/Hexa.NET.ImGui/Generated/Structures.002.cs new file mode 100644 index 0000000..1d60d56 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Structures.002.cs @@ -0,0 +1,8571 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawChannel + { + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontConfig + { + /// + /// To be documented. + /// + public unsafe void* FontData; + + /// + /// To be documented. + /// + public int FontDataSize; + + /// + /// To be documented. + /// + public byte FontDataOwnedByAtlas; + + /// + /// To be documented. + /// + public int FontNo; + + /// + /// To be documented. + /// + public float SizePixels; + + /// + /// To be documented. + /// + public int OversampleH; + + /// + /// To be documented. + /// + public int OversampleV; + + /// + /// To be documented. + /// + public byte PixelSnapH; + + /// + /// To be documented. + /// + public Vector2 GlyphExtraSpacing; + + /// + /// To be documented. + /// + public Vector2 GlyphOffset; + + /// + /// To be documented. + /// + public unsafe ushort* GlyphRanges; + + /// + /// To be documented. + /// + public float GlyphMinAdvanceX; + + /// + /// To be documented. + /// + public float GlyphMaxAdvanceX; + + /// + /// To be documented. + /// + public byte MergeMode; + + /// + /// To be documented. + /// + public uint FontBuilderFlags; + + /// + /// To be documented. + /// + public float RasterizerMultiply; + + /// + /// To be documented. + /// + public ushort EllipsisChar; + + /// + /// To be documented. + /// + public byte Name_0; + public byte Name_1; + public byte Name_2; + public byte Name_3; + public byte Name_4; + public byte Name_5; + public byte Name_6; + public byte Name_7; + public byte Name_8; + public byte Name_9; + public byte Name_10; + public byte Name_11; + public byte Name_12; + public byte Name_13; + public byte Name_14; + public byte Name_15; + public byte Name_16; + public byte Name_17; + public byte Name_18; + public byte Name_19; + public byte Name_20; + public byte Name_21; + public byte Name_22; + public byte Name_23; + public byte Name_24; + public byte Name_25; + public byte Name_26; + public byte Name_27; + public byte Name_28; + public byte Name_29; + public byte Name_30; + public byte Name_31; + public byte Name_32; + public byte Name_33; + public byte Name_34; + public byte Name_35; + public byte Name_36; + public byte Name_37; + public byte Name_38; + public byte Name_39; + + /// + /// To be documented. + /// + public unsafe ImFont* DstFont; + + + + /// /// To be documented. /// public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, ushort* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, ushort ellipsisChar = default, byte* name = default, ImFont* dstFont = default) + { + FontData = fontData; + FontDataSize = fontDataSize; + FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; + FontNo = fontNo; + SizePixels = sizePixels; + OversampleH = oversampleH; + OversampleV = oversampleV; + PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; + GlyphExtraSpacing = glyphExtraSpacing; + GlyphOffset = glyphOffset; + GlyphRanges = glyphRanges; + GlyphMinAdvanceX = glyphMinAdvanceX; + GlyphMaxAdvanceX = glyphMaxAdvanceX; + MergeMode = mergeMode ? (byte)1 : (byte)0; + FontBuilderFlags = fontBuilderFlags; + RasterizerMultiply = rasterizerMultiply; + EllipsisChar = ellipsisChar; + if (name != default) + { + Name_0 = name[0]; + Name_1 = name[1]; + Name_2 = name[2]; + Name_3 = name[3]; + Name_4 = name[4]; + Name_5 = name[5]; + Name_6 = name[6]; + Name_7 = name[7]; + Name_8 = name[8]; + Name_9 = name[9]; + Name_10 = name[10]; + Name_11 = name[11]; + Name_12 = name[12]; + Name_13 = name[13]; + Name_14 = name[14]; + Name_15 = name[15]; + Name_16 = name[16]; + Name_17 = name[17]; + Name_18 = name[18]; + Name_19 = name[19]; + Name_20 = name[20]; + Name_21 = name[21]; + Name_22 = name[22]; + Name_23 = name[23]; + Name_24 = name[24]; + Name_25 = name[25]; + Name_26 = name[26]; + Name_27 = name[27]; + Name_28 = name[28]; + Name_29 = name[29]; + Name_30 = name[30]; + Name_31 = name[31]; + Name_32 = name[32]; + Name_33 = name[33]; + Name_34 = name[34]; + Name_35 = name[35]; + Name_36 = name[36]; + Name_37 = name[37]; + Name_38 = name[38]; + Name_39 = name[39]; + } + DstFont = dstFont; + } + + /// /// To be documented. /// public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, ushort* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, ushort ellipsisChar = default, Span name = default, ImFont* dstFont = default) + { + FontData = fontData; + FontDataSize = fontDataSize; + FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; + FontNo = fontNo; + SizePixels = sizePixels; + OversampleH = oversampleH; + OversampleV = oversampleV; + PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; + GlyphExtraSpacing = glyphExtraSpacing; + GlyphOffset = glyphOffset; + GlyphRanges = glyphRanges; + GlyphMinAdvanceX = glyphMinAdvanceX; + GlyphMaxAdvanceX = glyphMaxAdvanceX; + MergeMode = mergeMode ? (byte)1 : (byte)0; + FontBuilderFlags = fontBuilderFlags; + RasterizerMultiply = rasterizerMultiply; + EllipsisChar = ellipsisChar; + if (name != default) + { + Name_0 = name[0]; + Name_1 = name[1]; + Name_2 = name[2]; + Name_3 = name[3]; + Name_4 = name[4]; + Name_5 = name[5]; + Name_6 = name[6]; + Name_7 = name[7]; + Name_8 = name[8]; + Name_9 = name[9]; + Name_10 = name[10]; + Name_11 = name[11]; + Name_12 = name[12]; + Name_13 = name[13]; + Name_14 = name[14]; + Name_15 = name[15]; + Name_16 = name[16]; + Name_17 = name[17]; + Name_18 = name[18]; + Name_19 = name[19]; + Name_20 = name[20]; + Name_21 = name[21]; + Name_22 = name[22]; + Name_23 = name[23]; + Name_24 = name[24]; + Name_25 = name[25]; + Name_26 = name[26]; + Name_27 = name[27]; + Name_28 = name[28]; + Name_29 = name[29]; + Name_30 = name[30]; + Name_31 = name[31]; + Name_32 = name[32]; + Name_33 = name[33]; + Name_34 = name[34]; + Name_35 = name[35]; + Name_36 = name[36]; + Name_37 = name[37]; + Name_38 = name[38]; + Name_39 = name[39]; + } + DstFont = dstFont; + } + + + /// + /// To be documented. + /// + public unsafe void Destroy() + { + fixed (ImFontConfig* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontBuilderIO + { + /// + /// To be documented. + /// + public unsafe void* FontBuilderBuild; + + + /// /// To be documented. /// public unsafe ImFontBuilderIO(delegate* fontbuilderBuild = default) + { + FontBuilderBuild = (void*)fontbuilderBuild; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImVec2 + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe Vector2* Data; + + + /// /// To be documented. /// public unsafe ImVectorImVec2(int size = default, int capacity = default, Vector2* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImVec4 + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe Vector4* Data; + + + /// /// To be documented. /// public unsafe ImVectorImVec4(int size = default, int capacity = default, Vector4* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImTextureID + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe void** Data; + + + /// /// To be documented. /// public unsafe ImVectorImTextureID(int size = default, int capacity = default, void** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawCmdHeader + { + /// + /// To be documented. + /// + public Vector4 ClipRect; + + /// + /// To be documented. + /// + public unsafe void* TextureId; + + /// + /// To be documented. + /// + public uint VtxOffset; + + + /// /// To be documented. /// public unsafe ImDrawCmdHeader(Vector4 clipRect = default, void* textureId = default, uint vtxOffset = default) + { + ClipRect = clipRect; + TextureId = textureId; + VtxOffset = vtxOffset; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawListSplitter + { + /// + /// To be documented. + /// + public int Current; + + /// + /// To be documented. + /// + public int Count; + + /// + /// To be documented. + /// + public ImVectorImDrawChannel Channels; + + + + /// /// To be documented. /// public unsafe ImDrawListSplitter(int Current = default, int Count = default, ImVectorImDrawChannel Channels = default) + { + this.Current = Current; + this.Count = Count; + this.Channels = Channels; + } + + + public unsafe void Clear() + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + public unsafe void ClearFreeMemory() + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.ClearFreeMemoryNative(@this); + } + } + + public unsafe void Destroy() + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe void Merge( ImDrawList* drawList) + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.MergeNative(@this, drawList); + } + } + + public unsafe void Merge( ref ImDrawList drawList) + { + fixed (ImDrawListSplitter* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.MergeNative(@this, (ImDrawList*)pdrawList); + } + } + } + + public unsafe void SetCurrentChannel( ImDrawList* drawList, int channelIdx) + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.SetCurrentChannelNative(@this, drawList, channelIdx); + } + } + + public unsafe void SetCurrentChannel( ref ImDrawList drawList, int channelIdx) + { + fixed (ImDrawListSplitter* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.SetCurrentChannelNative(@this, (ImDrawList*)pdrawList, channelIdx); + } + } + } + + public unsafe void Split( ImDrawList* drawList, int count) + { + fixed (ImDrawListSplitter* @this = &this) + { + ImGui.SplitNative(@this, drawList, count); + } + } + + public unsafe void Split( ref ImDrawList drawList, int count) + { + fixed (ImDrawListSplitter* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.SplitNative(@this, (ImDrawList*)pdrawList, count); + } + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImDrawChannel + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImDrawChannel* Data; + + + /// /// To be documented. /// public unsafe ImVectorImDrawChannel(int size = default, int capacity = default, ImDrawChannel* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiViewport + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public Vector2 Pos; + + /// + /// To be documented. + /// + public Vector2 Size; + + /// + /// To be documented. + /// + public Vector2 WorkPos; + + /// + /// To be documented. + /// + public Vector2 WorkSize; + + /// + /// To be documented. + /// + public float DpiScale; + + /// + /// To be documented. + /// + public uint ParentViewportId; + + /// + /// To be documented. + /// + public unsafe ImDrawData* DrawData; + + /// + /// To be documented. + /// + public unsafe void* RendererUserData; + + /// + /// To be documented. + /// + public unsafe void* PlatformUserData; + + /// + /// To be documented. + /// + public unsafe void* PlatformHandle; + + /// + /// To be documented. + /// + public unsafe void* PlatformHandleRaw; + + /// + /// To be documented. + /// + public byte PlatformWindowCreated; + + /// + /// To be documented. + /// + public byte PlatformRequestMove; + + /// + /// To be documented. + /// + public byte PlatformRequestResize; + + /// + /// To be documented. + /// + public byte PlatformRequestClose; + + + + /// /// To be documented. /// public unsafe ImGuiViewport(uint id = default, int flags = default, Vector2 pos = default, Vector2 size = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default, uint parentViewportId = default, ImDrawData* drawData = default, void* rendererUserData = default, void* platformUserData = default, void* platformHandle = default, void* platformHandleRaw = default, bool platformWindowCreated = default, bool platformRequestMove = default, bool platformRequestResize = default, bool platformRequestClose = default) + { + ID = id; + Flags = flags; + Pos = pos; + Size = size; + WorkPos = workPos; + WorkSize = workSize; + DpiScale = dpiScale; + ParentViewportId = parentViewportId; + DrawData = drawData; + RendererUserData = rendererUserData; + PlatformUserData = platformUserData; + PlatformHandle = platformHandle; + PlatformHandleRaw = platformHandleRaw; + PlatformWindowCreated = platformWindowCreated ? (byte)1 : (byte)0; + PlatformRequestMove = platformRequestMove ? (byte)1 : (byte)0; + PlatformRequestResize = platformRequestResize ? (byte)1 : (byte)0; + PlatformRequestClose = platformRequestClose ? (byte)1 : (byte)0; + } + + + public unsafe void Destroy() + { + fixed (ImGuiViewport* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImFontGlyphRangesBuilder + { + /// + /// To be documented. + /// + public ImVectorImU32 UsedChars; + + + + /// /// To be documented. /// public unsafe ImFontGlyphRangesBuilder(ImVectorImU32 usedChars = default) + { + UsedChars = usedChars; + } + + + public unsafe void AddChar( char c) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.AddCharNative(@this, c); + } + } + + public unsafe void AddRanges( char* ranges) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.AddRangesNative(@this, ranges); + } + } + + public unsafe void AddRanges( ref char ranges) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (char* pranges = &ranges) + { + ImGui.AddRangesNative(@this, (char*)pranges); + } + } + } + + public unsafe void AddText( byte* text, byte* textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.AddTextNative(@this, text, textEnd); + } + } + + public unsafe void AddText( byte* text) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.AddTextNative(@this, text, (byte*)(default)); + } + } + + public unsafe void AddText( ref byte text, byte* textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptext = &text) + { + ImGui.AddTextNative(@this, (byte*)ptext, textEnd); + } + } + } + + public unsafe void AddText( ref byte text) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptext = &text) + { + ImGui.AddTextNative(@this, (byte*)ptext, (byte*)(default)); + } + } + } + + public unsafe void AddText( string text, byte* textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( string text) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( byte* text, ref byte textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, text, (byte*)ptextEnd); + } + } + } + + public unsafe void AddText( byte* text, string textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddTextNative(@this, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddText( ref byte text, ref byte textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.AddTextNative(@this, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + public unsafe void AddText( string text, string textEnd) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.AddTextNative(@this, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void BuildRanges( ImVectorImWchar* outRanges) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.BuildRangesNative(@this, outRanges); + } + } + + public unsafe void BuildRanges( ref ImVectorImWchar outRanges) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + fixed (ImVectorImWchar* poutRanges = &outRanges) + { + ImGui.BuildRangesNative(@this, (ImVectorImWchar*)poutRanges); + } + } + } + + public unsafe void Clear() + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + public unsafe void Destroy() + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe bool GetBit( ulong n) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte ret = ImGui.GetBitNative(@this, n); + return ret != 0; + } + } + + public unsafe bool GetBit( nuint n) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte ret = ImGui.GetBitNative(@this, n); + return ret != 0; + } + } + + public unsafe void SetBit( ulong n) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.SetBitNative(@this, n); + } + } + + public unsafe void SetBit( nuint n) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.SetBitNative(@this, n); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImU32 + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe uint* Data; + + + /// /// To be documented. /// public unsafe ImVectorImU32(int size = default, int capacity = default, uint* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImColor + { + /// + /// To be documented. + /// + public Vector4 Value; + + + + /// /// To be documented. /// public unsafe ImColor(Vector4 value = default) + { + Value = value; + } + + + public unsafe void Destroy() + { + fixed (ImColor* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe void HSV( float h, float s, float v, float a) + { + fixed (ImColor* @this = &this) + { + ImGui.HSVNative(@this, h, s, v, a); + } + } + + public unsafe void HSV( float h, float s, float v) + { + fixed (ImColor* @this = &this) + { + ImGui.HSVNative(@this, h, s, v, (float)(1.0f)); + } + } + + public unsafe void SetHSV( float h, float s, float v, float a) + { + fixed (ImColor* @this = &this) + { + ImGui.SetHSVNative(@this, h, s, v, a); + } + } + + public unsafe void SetHSV( float h, float s, float v) + { + fixed (ImColor* @this = &this) + { + ImGui.SetHSVNative(@this, h, s, v, (float)(1.0f)); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiContext + { + /// + /// To be documented. + /// + public byte Initialized; + + /// + /// To be documented. + /// + public byte FontAtlasOwnedByContext; + + /// + /// To be documented. + /// + public ImGuiIO IO; + + /// + /// To be documented. + /// + public ImGuiPlatformIO PlatformIO; + + /// + /// To be documented. + /// + public ImGuiStyle Style; + + /// + /// To be documented. + /// + public int ConfigFlagsCurrFrame; + + /// + /// To be documented. + /// + public int ConfigFlagsLastFrame; + + /// + /// To be documented. + /// + public unsafe ImFont* Font; + + /// + /// To be documented. + /// + public float FontSize; + + /// + /// To be documented. + /// + public float FontBaseSize; + + /// + /// To be documented. + /// + public ImDrawListSharedData DrawListSharedData; + + /// + /// To be documented. + /// + public double Time; + + /// + /// To be documented. + /// + public int FrameCount; + + /// + /// To be documented. + /// + public int FrameCountEnded; + + /// + /// To be documented. + /// + public int FrameCountPlatformEnded; + + /// + /// To be documented. + /// + public int FrameCountRendered; + + /// + /// To be documented. + /// + public byte WithinFrameScope; + + /// + /// To be documented. + /// + public byte WithinFrameScopeWithImplicitWindow; + + /// + /// To be documented. + /// + public byte WithinEndChild; + + /// + /// To be documented. + /// + public byte GcCompactAll; + + /// + /// To be documented. + /// + public byte TestEngineHookItems; + + /// + /// To be documented. + /// + public unsafe void* TestEngine; + + /// + /// To be documented. + /// + public ImVectorImGuiInputEvent InputEventsQueue; + + /// + /// To be documented. + /// + public ImVectorImGuiInputEvent InputEventsTrail; + + /// + /// To be documented. + /// + public ImGuiMouseSource InputEventsNextMouseSource; + + /// + /// To be documented. + /// + public uint InputEventsNextEventId; + + /// + /// To be documented. + /// + public ImVectorImGuiWindowPtr Windows; + + /// + /// To be documented. + /// + public ImVectorImGuiWindowPtr WindowsFocusOrder; + + /// + /// To be documented. + /// + public ImVectorImGuiWindowPtr WindowsTempSortBuffer; + + /// + /// To be documented. + /// + public ImVectorImGuiWindowStackData CurrentWindowStack; + + /// + /// To be documented. + /// + public ImGuiStorage WindowsById; + + /// + /// To be documented. + /// + public int WindowsActiveCount; + + /// + /// To be documented. + /// + public Vector2 WindowsHoverPadding; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* CurrentWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* HoveredWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* HoveredWindowUnderMovingWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* MovingWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* WheelingWindow; + + /// + /// To be documented. + /// + public Vector2 WheelingWindowRefMousePos; + + /// + /// To be documented. + /// + public int WheelingWindowStartFrame; + + /// + /// To be documented. + /// + public float WheelingWindowReleaseTimer; + + /// + /// To be documented. + /// + public Vector2 WheelingWindowWheelRemainder; + + /// + /// To be documented. + /// + public Vector2 WheelingAxisAvg; + + /// + /// To be documented. + /// + public uint DebugHookIdInfo; + + /// + /// To be documented. + /// + public uint HoveredId; + + /// + /// To be documented. + /// + public uint HoveredIdPreviousFrame; + + /// + /// To be documented. + /// + public byte HoveredIdAllowOverlap; + + /// + /// To be documented. + /// + public byte HoveredIdDisabled; + + /// + /// To be documented. + /// + public float HoveredIdTimer; + + /// + /// To be documented. + /// + public float HoveredIdNotActiveTimer; + + /// + /// To be documented. + /// + public uint ActiveId; + + /// + /// To be documented. + /// + public uint ActiveIdIsAlive; + + /// + /// To be documented. + /// + public float ActiveIdTimer; + + /// + /// To be documented. + /// + public byte ActiveIdIsJustActivated; + + /// + /// To be documented. + /// + public byte ActiveIdAllowOverlap; + + /// + /// To be documented. + /// + public byte ActiveIdNoClearOnFocusLoss; + + /// + /// To be documented. + /// + public byte ActiveIdHasBeenPressedBefore; + + /// + /// To be documented. + /// + public byte ActiveIdHasBeenEditedBefore; + + /// + /// To be documented. + /// + public byte ActiveIdHasBeenEditedThisFrame; + + /// + /// To be documented. + /// + public Vector2 ActiveIdClickOffset; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* ActiveIdWindow; + + /// + /// To be documented. + /// + public ImGuiInputSource ActiveIdSource; + + /// + /// To be documented. + /// + public int ActiveIdMouseButton; + + /// + /// To be documented. + /// + public uint ActiveIdPreviousFrame; + + /// + /// To be documented. + /// + public byte ActiveIdPreviousFrameIsAlive; + + /// + /// To be documented. + /// + public byte ActiveIdPreviousFrameHasBeenEditedBefore; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* ActiveIdPreviousFrameWindow; + + /// + /// To be documented. + /// + public uint LastActiveId; + + /// + /// To be documented. + /// + public float LastActiveIdTimer; + + /// + /// To be documented. + /// + public ImGuiKeyOwnerData KeysOwnerData_0; + public ImGuiKeyOwnerData KeysOwnerData_1; + public ImGuiKeyOwnerData KeysOwnerData_2; + public ImGuiKeyOwnerData KeysOwnerData_3; + public ImGuiKeyOwnerData KeysOwnerData_4; + public ImGuiKeyOwnerData KeysOwnerData_5; + public ImGuiKeyOwnerData KeysOwnerData_6; + public ImGuiKeyOwnerData KeysOwnerData_7; + public ImGuiKeyOwnerData KeysOwnerData_8; + public ImGuiKeyOwnerData KeysOwnerData_9; + public ImGuiKeyOwnerData KeysOwnerData_10; + public ImGuiKeyOwnerData KeysOwnerData_11; + public ImGuiKeyOwnerData KeysOwnerData_12; + public ImGuiKeyOwnerData KeysOwnerData_13; + public ImGuiKeyOwnerData KeysOwnerData_14; + public ImGuiKeyOwnerData KeysOwnerData_15; + public ImGuiKeyOwnerData KeysOwnerData_16; + public ImGuiKeyOwnerData KeysOwnerData_17; + public ImGuiKeyOwnerData KeysOwnerData_18; + public ImGuiKeyOwnerData KeysOwnerData_19; + public ImGuiKeyOwnerData KeysOwnerData_20; + public ImGuiKeyOwnerData KeysOwnerData_21; + public ImGuiKeyOwnerData KeysOwnerData_22; + public ImGuiKeyOwnerData KeysOwnerData_23; + public ImGuiKeyOwnerData KeysOwnerData_24; + public ImGuiKeyOwnerData KeysOwnerData_25; + public ImGuiKeyOwnerData KeysOwnerData_26; + public ImGuiKeyOwnerData KeysOwnerData_27; + public ImGuiKeyOwnerData KeysOwnerData_28; + public ImGuiKeyOwnerData KeysOwnerData_29; + public ImGuiKeyOwnerData KeysOwnerData_30; + public ImGuiKeyOwnerData KeysOwnerData_31; + public ImGuiKeyOwnerData KeysOwnerData_32; + public ImGuiKeyOwnerData KeysOwnerData_33; + public ImGuiKeyOwnerData KeysOwnerData_34; + public ImGuiKeyOwnerData KeysOwnerData_35; + public ImGuiKeyOwnerData KeysOwnerData_36; + public ImGuiKeyOwnerData KeysOwnerData_37; + public ImGuiKeyOwnerData KeysOwnerData_38; + public ImGuiKeyOwnerData KeysOwnerData_39; + public ImGuiKeyOwnerData KeysOwnerData_40; + public ImGuiKeyOwnerData KeysOwnerData_41; + public ImGuiKeyOwnerData KeysOwnerData_42; + public ImGuiKeyOwnerData KeysOwnerData_43; + public ImGuiKeyOwnerData KeysOwnerData_44; + public ImGuiKeyOwnerData KeysOwnerData_45; + public ImGuiKeyOwnerData KeysOwnerData_46; + public ImGuiKeyOwnerData KeysOwnerData_47; + public ImGuiKeyOwnerData KeysOwnerData_48; + public ImGuiKeyOwnerData KeysOwnerData_49; + public ImGuiKeyOwnerData KeysOwnerData_50; + public ImGuiKeyOwnerData KeysOwnerData_51; + public ImGuiKeyOwnerData KeysOwnerData_52; + public ImGuiKeyOwnerData KeysOwnerData_53; + public ImGuiKeyOwnerData KeysOwnerData_54; + public ImGuiKeyOwnerData KeysOwnerData_55; + public ImGuiKeyOwnerData KeysOwnerData_56; + public ImGuiKeyOwnerData KeysOwnerData_57; + public ImGuiKeyOwnerData KeysOwnerData_58; + public ImGuiKeyOwnerData KeysOwnerData_59; + public ImGuiKeyOwnerData KeysOwnerData_60; + public ImGuiKeyOwnerData KeysOwnerData_61; + public ImGuiKeyOwnerData KeysOwnerData_62; + public ImGuiKeyOwnerData KeysOwnerData_63; + public ImGuiKeyOwnerData KeysOwnerData_64; + public ImGuiKeyOwnerData KeysOwnerData_65; + public ImGuiKeyOwnerData KeysOwnerData_66; + public ImGuiKeyOwnerData KeysOwnerData_67; + public ImGuiKeyOwnerData KeysOwnerData_68; + public ImGuiKeyOwnerData KeysOwnerData_69; + public ImGuiKeyOwnerData KeysOwnerData_70; + public ImGuiKeyOwnerData KeysOwnerData_71; + public ImGuiKeyOwnerData KeysOwnerData_72; + public ImGuiKeyOwnerData KeysOwnerData_73; + public ImGuiKeyOwnerData KeysOwnerData_74; + public ImGuiKeyOwnerData KeysOwnerData_75; + public ImGuiKeyOwnerData KeysOwnerData_76; + public ImGuiKeyOwnerData KeysOwnerData_77; + public ImGuiKeyOwnerData KeysOwnerData_78; + public ImGuiKeyOwnerData KeysOwnerData_79; + public ImGuiKeyOwnerData KeysOwnerData_80; + public ImGuiKeyOwnerData KeysOwnerData_81; + public ImGuiKeyOwnerData KeysOwnerData_82; + public ImGuiKeyOwnerData KeysOwnerData_83; + public ImGuiKeyOwnerData KeysOwnerData_84; + public ImGuiKeyOwnerData KeysOwnerData_85; + public ImGuiKeyOwnerData KeysOwnerData_86; + public ImGuiKeyOwnerData KeysOwnerData_87; + public ImGuiKeyOwnerData KeysOwnerData_88; + public ImGuiKeyOwnerData KeysOwnerData_89; + public ImGuiKeyOwnerData KeysOwnerData_90; + public ImGuiKeyOwnerData KeysOwnerData_91; + public ImGuiKeyOwnerData KeysOwnerData_92; + public ImGuiKeyOwnerData KeysOwnerData_93; + public ImGuiKeyOwnerData KeysOwnerData_94; + public ImGuiKeyOwnerData KeysOwnerData_95; + public ImGuiKeyOwnerData KeysOwnerData_96; + public ImGuiKeyOwnerData KeysOwnerData_97; + public ImGuiKeyOwnerData KeysOwnerData_98; + public ImGuiKeyOwnerData KeysOwnerData_99; + public ImGuiKeyOwnerData KeysOwnerData_100; + public ImGuiKeyOwnerData KeysOwnerData_101; + public ImGuiKeyOwnerData KeysOwnerData_102; + public ImGuiKeyOwnerData KeysOwnerData_103; + public ImGuiKeyOwnerData KeysOwnerData_104; + public ImGuiKeyOwnerData KeysOwnerData_105; + public ImGuiKeyOwnerData KeysOwnerData_106; + public ImGuiKeyOwnerData KeysOwnerData_107; + public ImGuiKeyOwnerData KeysOwnerData_108; + public ImGuiKeyOwnerData KeysOwnerData_109; + public ImGuiKeyOwnerData KeysOwnerData_110; + public ImGuiKeyOwnerData KeysOwnerData_111; + public ImGuiKeyOwnerData KeysOwnerData_112; + public ImGuiKeyOwnerData KeysOwnerData_113; + public ImGuiKeyOwnerData KeysOwnerData_114; + public ImGuiKeyOwnerData KeysOwnerData_115; + public ImGuiKeyOwnerData KeysOwnerData_116; + public ImGuiKeyOwnerData KeysOwnerData_117; + public ImGuiKeyOwnerData KeysOwnerData_118; + public ImGuiKeyOwnerData KeysOwnerData_119; + public ImGuiKeyOwnerData KeysOwnerData_120; + public ImGuiKeyOwnerData KeysOwnerData_121; + public ImGuiKeyOwnerData KeysOwnerData_122; + public ImGuiKeyOwnerData KeysOwnerData_123; + public ImGuiKeyOwnerData KeysOwnerData_124; + public ImGuiKeyOwnerData KeysOwnerData_125; + public ImGuiKeyOwnerData KeysOwnerData_126; + public ImGuiKeyOwnerData KeysOwnerData_127; + public ImGuiKeyOwnerData KeysOwnerData_128; + public ImGuiKeyOwnerData KeysOwnerData_129; + public ImGuiKeyOwnerData KeysOwnerData_130; + public ImGuiKeyOwnerData KeysOwnerData_131; + public ImGuiKeyOwnerData KeysOwnerData_132; + public ImGuiKeyOwnerData KeysOwnerData_133; + public ImGuiKeyOwnerData KeysOwnerData_134; + public ImGuiKeyOwnerData KeysOwnerData_135; + public ImGuiKeyOwnerData KeysOwnerData_136; + public ImGuiKeyOwnerData KeysOwnerData_137; + public ImGuiKeyOwnerData KeysOwnerData_138; + public ImGuiKeyOwnerData KeysOwnerData_139; + public ImGuiKeyOwnerData KeysOwnerData_140; + public ImGuiKeyOwnerData KeysOwnerData_141; + public ImGuiKeyOwnerData KeysOwnerData_142; + public ImGuiKeyOwnerData KeysOwnerData_143; + public ImGuiKeyOwnerData KeysOwnerData_144; + public ImGuiKeyOwnerData KeysOwnerData_145; + public ImGuiKeyOwnerData KeysOwnerData_146; + public ImGuiKeyOwnerData KeysOwnerData_147; + public ImGuiKeyOwnerData KeysOwnerData_148; + public ImGuiKeyOwnerData KeysOwnerData_149; + public ImGuiKeyOwnerData KeysOwnerData_150; + public ImGuiKeyOwnerData KeysOwnerData_151; + public ImGuiKeyOwnerData KeysOwnerData_152; + public ImGuiKeyOwnerData KeysOwnerData_153; + + /// + /// To be documented. + /// + public ImGuiKeyRoutingTable KeysRoutingTable; + + /// + /// To be documented. + /// + public uint ActiveIdUsingNavDirMask; + + /// + /// To be documented. + /// + public byte ActiveIdUsingAllKeyboardKeys; + + /// + /// To be documented. + /// + public uint ActiveIdUsingNavInputMask; + + /// + /// To be documented. + /// + public uint CurrentFocusScopeId; + + /// + /// To be documented. + /// + public int CurrentItemFlags; + + /// + /// To be documented. + /// + public uint DebugLocateId; + + /// + /// To be documented. + /// + public ImGuiNextItemData NextItemData; + + /// + /// To be documented. + /// + public ImGuiLastItemData LastItemData; + + /// + /// To be documented. + /// + public ImGuiNextWindowData NextWindowData; + + /// + /// To be documented. + /// + public byte DebugShowGroupRects; + + /// + /// To be documented. + /// + public ImVectorImGuiColorMod ColorStack; + + /// + /// To be documented. + /// + public ImVectorImGuiStyleMod StyleVarStack; + + /// + /// To be documented. + /// + public ImVectorImFontPtr FontStack; + + /// + /// To be documented. + /// + public ImVectorImGuiID FocusScopeStack; + + /// + /// To be documented. + /// + public ImVectorImGuiItemFlags ItemFlagsStack; + + /// + /// To be documented. + /// + public ImVectorImGuiGroupData GroupStack; + + /// + /// To be documented. + /// + public ImVectorImGuiPopupData OpenPopupStack; + + /// + /// To be documented. + /// + public ImVectorImGuiPopupData BeginPopupStack; + + /// + /// To be documented. + /// + public ImVectorImGuiNavTreeNodeData NavTreeNodeStack; + + /// + /// To be documented. + /// + public int BeginMenuCount; + + /// + /// To be documented. + /// + public ImVectorImGuiViewportPPtr Viewports; + + /// + /// To be documented. + /// + public float CurrentDpiScale; + + /// + /// To be documented. + /// + public unsafe ImGuiViewportP* CurrentViewport; + + /// + /// To be documented. + /// + public unsafe ImGuiViewportP* MouseViewport; + + /// + /// To be documented. + /// + public unsafe ImGuiViewportP* MouseLastHoveredViewport; + + /// + /// To be documented. + /// + public uint PlatformLastFocusedViewportId; + + /// + /// To be documented. + /// + public ImGuiPlatformMonitor FallbackMonitor; + + /// + /// To be documented. + /// + public int ViewportCreatedCount; + + /// + /// To be documented. + /// + public int PlatformWindowsCreatedCount; + + /// + /// To be documented. + /// + public int ViewportFocusedStampCount; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* NavWindow; + + /// + /// To be documented. + /// + public uint NavId; + + /// + /// To be documented. + /// + public uint NavFocusScopeId; + + /// + /// To be documented. + /// + public uint NavActivateId; + + /// + /// To be documented. + /// + public uint NavActivateDownId; + + /// + /// To be documented. + /// + public uint NavActivatePressedId; + + /// + /// To be documented. + /// + public int NavActivateFlags; + + /// + /// To be documented. + /// + public uint NavJustMovedToId; + + /// + /// To be documented. + /// + public uint NavJustMovedToFocusScopeId; + + /// + /// To be documented. + /// + public int NavJustMovedToKeyMods; + + /// + /// To be documented. + /// + public uint NavNextActivateId; + + /// + /// To be documented. + /// + public int NavNextActivateFlags; + + /// + /// To be documented. + /// + public ImGuiInputSource NavInputSource; + + /// + /// To be documented. + /// + public ImGuiNavLayer NavLayer; + + /// + /// To be documented. + /// + public long NavLastValidSelectionUserData; + + /// + /// To be documented. + /// + public byte NavIdIsAlive; + + /// + /// To be documented. + /// + public byte NavMousePosDirty; + + /// + /// To be documented. + /// + public byte NavDisableHighlight; + + /// + /// To be documented. + /// + public byte NavDisableMouseHover; + + /// + /// To be documented. + /// + public byte NavAnyRequest; + + /// + /// To be documented. + /// + public byte NavInitRequest; + + /// + /// To be documented. + /// + public byte NavInitRequestFromMove; + + /// + /// To be documented. + /// + public ImGuiNavItemData NavInitResult; + + /// + /// To be documented. + /// + public byte NavMoveSubmitted; + + /// + /// To be documented. + /// + public byte NavMoveScoringItems; + + /// + /// To be documented. + /// + public byte NavMoveForwardToNextFrame; + + /// + /// To be documented. + /// + public int NavMoveFlags; + + /// + /// To be documented. + /// + public int NavMoveScrollFlags; + + /// + /// To be documented. + /// + public int NavMoveKeyMods; + + /// + /// To be documented. + /// + public int NavMoveDir; + + /// + /// To be documented. + /// + public int NavMoveDirForDebug; + + /// + /// To be documented. + /// + public int NavMoveClipDir; + + /// + /// To be documented. + /// + public ImRect NavScoringRect; + + /// + /// To be documented. + /// + public ImRect NavScoringNoClipRect; + + /// + /// To be documented. + /// + public int NavScoringDebugCount; + + /// + /// To be documented. + /// + public int NavTabbingDir; + + /// + /// To be documented. + /// + public int NavTabbingCounter; + + /// + /// To be documented. + /// + public ImGuiNavItemData NavMoveResultLocal; + + /// + /// To be documented. + /// + public ImGuiNavItemData NavMoveResultLocalVisible; + + /// + /// To be documented. + /// + public ImGuiNavItemData NavMoveResultOther; + + /// + /// To be documented. + /// + public ImGuiNavItemData NavTabbingResultFirst; + + /// + /// To be documented. + /// + public int ConfigNavWindowingKeyNext; + + /// + /// To be documented. + /// + public int ConfigNavWindowingKeyPrev; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* NavWindowingTarget; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* NavWindowingTargetAnim; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* NavWindowingListWindow; + + /// + /// To be documented. + /// + public float NavWindowingTimer; + + /// + /// To be documented. + /// + public float NavWindowingHighlightAlpha; + + /// + /// To be documented. + /// + public byte NavWindowingToggleLayer; + + /// + /// To be documented. + /// + public Vector2 NavWindowingAccumDeltaPos; + + /// + /// To be documented. + /// + public Vector2 NavWindowingAccumDeltaSize; + + /// + /// To be documented. + /// + public float DimBgRatio; + + /// + /// To be documented. + /// + public byte DragDropActive; + + /// + /// To be documented. + /// + public byte DragDropWithinSource; + + /// + /// To be documented. + /// + public byte DragDropWithinTarget; + + /// + /// To be documented. + /// + public int DragDropSourceFlags; + + /// + /// To be documented. + /// + public int DragDropSourceFrameCount; + + /// + /// To be documented. + /// + public int DragDropMouseButton; + + /// + /// To be documented. + /// + public ImGuiPayload DragDropPayload; + + /// + /// To be documented. + /// + public ImRect DragDropTargetRect; + + /// + /// To be documented. + /// + public uint DragDropTargetId; + + /// + /// To be documented. + /// + public int DragDropAcceptFlags; + + /// + /// To be documented. + /// + public float DragDropAcceptIdCurrRectSurface; + + /// + /// To be documented. + /// + public uint DragDropAcceptIdCurr; + + /// + /// To be documented. + /// + public uint DragDropAcceptIdPrev; + + /// + /// To be documented. + /// + public int DragDropAcceptFrameCount; + + /// + /// To be documented. + /// + public uint DragDropHoldJustPressedId; + + /// + /// To be documented. + /// + public ImVectorUnsignedChar DragDropPayloadBufHeap; + + /// + /// To be documented. + /// + public byte DragDropPayloadBufLocal_0; + public byte DragDropPayloadBufLocal_1; + public byte DragDropPayloadBufLocal_2; + public byte DragDropPayloadBufLocal_3; + public byte DragDropPayloadBufLocal_4; + public byte DragDropPayloadBufLocal_5; + public byte DragDropPayloadBufLocal_6; + public byte DragDropPayloadBufLocal_7; + public byte DragDropPayloadBufLocal_8; + public byte DragDropPayloadBufLocal_9; + public byte DragDropPayloadBufLocal_10; + public byte DragDropPayloadBufLocal_11; + public byte DragDropPayloadBufLocal_12; + public byte DragDropPayloadBufLocal_13; + public byte DragDropPayloadBufLocal_14; + public byte DragDropPayloadBufLocal_15; + + /// + /// To be documented. + /// + public int ClipperTempDataStacked; + + /// + /// To be documented. + /// + public ImVectorImGuiListClipperData ClipperTempData; + + /// + /// To be documented. + /// + public unsafe ImGuiTable* CurrentTable; + + /// + /// To be documented. + /// + public int TablesTempDataStacked; + + /// + /// To be documented. + /// + public ImVectorImGuiTableTempData TablesTempData; + + /// + /// To be documented. + /// + public ImPoolImGuiTable Tables; + + /// + /// To be documented. + /// + public ImVectorFloat TablesLastTimeActive; + + /// + /// To be documented. + /// + public ImVectorImDrawChannel DrawChannelsTempMergeBuffer; + + /// + /// To be documented. + /// + public unsafe ImGuiTabBar* CurrentTabBar; + + /// + /// To be documented. + /// + public ImPoolImGuiTabBar TabBars; + + /// + /// To be documented. + /// + public ImVectorImGuiPtrOrIndex CurrentTabBarStack; + + /// + /// To be documented. + /// + public ImVectorImGuiShrinkWidthItem ShrinkWidthBuffer; + + /// + /// To be documented. + /// + public uint HoverItemDelayId; + + /// + /// To be documented. + /// + public uint HoverItemDelayIdPreviousFrame; + + /// + /// To be documented. + /// + public float HoverItemDelayTimer; + + /// + /// To be documented. + /// + public float HoverItemDelayClearTimer; + + /// + /// To be documented. + /// + public uint HoverItemUnlockedStationaryId; + + /// + /// To be documented. + /// + public uint HoverWindowUnlockedStationaryId; + + /// + /// To be documented. + /// + public int MouseCursor; + + /// + /// To be documented. + /// + public float MouseStationaryTimer; + + /// + /// To be documented. + /// + public Vector2 MouseLastValidPos; + + /// + /// To be documented. + /// + public ImGuiInputTextState InputTextState; + + /// + /// To be documented. + /// + public ImGuiInputTextDeactivatedState InputTextDeactivatedState; + + /// + /// To be documented. + /// + public ImFont InputTextPasswordFont; + + /// + /// To be documented. + /// + public uint TempInputId; + + /// + /// To be documented. + /// + public int ColorEditOptions; + + /// + /// To be documented. + /// + public uint ColorEditCurrentID; + + /// + /// To be documented. + /// + public uint ColorEditSavedID; + + /// + /// To be documented. + /// + public float ColorEditSavedHue; + + /// + /// To be documented. + /// + public float ColorEditSavedSat; + + /// + /// To be documented. + /// + public uint ColorEditSavedColor; + + /// + /// To be documented. + /// + public Vector4 ColorPickerRef; + + /// + /// To be documented. + /// + public ImGuiComboPreviewData ComboPreviewData; + + /// + /// To be documented. + /// + public float SliderGrabClickOffset; + + /// + /// To be documented. + /// + public float SliderCurrentAccum; + + /// + /// To be documented. + /// + public byte SliderCurrentAccumDirty; + + /// + /// To be documented. + /// + public byte DragCurrentAccumDirty; + + /// + /// To be documented. + /// + public float DragCurrentAccum; + + /// + /// To be documented. + /// + public float DragSpeedDefaultRatio; + + /// + /// To be documented. + /// + public float ScrollbarClickDeltaToGrabCenter; + + /// + /// To be documented. + /// + public float DisabledAlphaBackup; + + /// + /// To be documented. + /// + public short DisabledStackSize; + + /// + /// To be documented. + /// + public short LockMarkEdited; + + /// + /// To be documented. + /// + public short TooltipOverrideCount; + + /// + /// To be documented. + /// + public ImVectorChar ClipboardHandlerData; + + /// + /// To be documented. + /// + public ImVectorImGuiID MenusIdSubmittedThisFrame; + + /// + /// To be documented. + /// + public ImGuiTypingSelectState TypingSelectState; + + /// + /// To be documented. + /// + public ImGuiPlatformImeData PlatformImeData; + + /// + /// To be documented. + /// + public ImGuiPlatformImeData PlatformImeDataPrev; + + /// + /// To be documented. + /// + public uint PlatformImeViewport; + + /// + /// To be documented. + /// + public ImGuiDockContext DockContext; + + /// + /// To be documented. + /// + public unsafe void* DockNodeWindowMenuHandler; + + /// + /// To be documented. + /// + public byte SettingsLoaded; + + /// + /// To be documented. + /// + public float SettingsDirtyTimer; + + /// + /// To be documented. + /// + public ImGuiTextBuffer SettingsIniData; + + /// + /// To be documented. + /// + public ImVectorImGuiSettingsHandler SettingsHandlers; + + /// + /// To be documented. + /// + public ImChunkStreamImGuiWindowSettings SettingsWindows; + + /// + /// To be documented. + /// + public ImChunkStreamImGuiTableSettings SettingsTables; + + /// + /// To be documented. + /// + public ImVectorImGuiContextHook Hooks; + + /// + /// To be documented. + /// + public uint HookIdNext; + + /// + /// To be documented. + /// + public unsafe byte* LocalizationTable_0; + public unsafe byte* LocalizationTable_1; + public unsafe byte* LocalizationTable_2; + public unsafe byte* LocalizationTable_3; + public unsafe byte* LocalizationTable_4; + public unsafe byte* LocalizationTable_5; + public unsafe byte* LocalizationTable_6; + public unsafe byte* LocalizationTable_7; + public unsafe byte* LocalizationTable_8; + public unsafe byte* LocalizationTable_9; + public unsafe byte* LocalizationTable_10; + + /// + /// To be documented. + /// + public byte LogEnabled; + + /// + /// To be documented. + /// + public ImGuiLogType LogType; + + /// + /// To be documented. + /// + public unsafe Iobuf* LogFile; + + /// + /// To be documented. + /// + public ImGuiTextBuffer LogBuffer; + + /// + /// To be documented. + /// + public unsafe byte* LogNextPrefix; + + /// + /// To be documented. + /// + public unsafe byte* LogNextSuffix; + + /// + /// To be documented. + /// + public float LogLinePosY; + + /// + /// To be documented. + /// + public byte LogLineFirstItem; + + /// + /// To be documented. + /// + public int LogDepthRef; + + /// + /// To be documented. + /// + public int LogDepthToExpand; + + /// + /// To be documented. + /// + public int LogDepthToExpandDefault; + + /// + /// To be documented. + /// + public int DebugLogFlags; + + /// + /// To be documented. + /// + public ImGuiTextBuffer DebugLogBuf; + + /// + /// To be documented. + /// + public ImGuiTextIndex DebugLogIndex; + + /// + /// To be documented. + /// + public byte DebugLogClipperAutoDisableFrames; + + /// + /// To be documented. + /// + public byte DebugLocateFrames; + + /// + /// To be documented. + /// + public byte DebugBeginReturnValueCullDepth; + + /// + /// To be documented. + /// + public byte DebugItemPickerActive; + + /// + /// To be documented. + /// + public byte DebugItemPickerMouseButton; + + /// + /// To be documented. + /// + public uint DebugItemPickerBreakId; + + /// + /// To be documented. + /// + public ImGuiMetricsConfig DebugMetricsConfig; + + /// + /// To be documented. + /// + public ImGuiIDStackTool DebugIDStackTool; + + /// + /// To be documented. + /// + public ImGuiDebugAllocInfo DebugAllocInfo; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* DebugHoveredDockNode; + + /// + /// To be documented. + /// + public float FramerateSecPerFrame_0; + public float FramerateSecPerFrame_1; + public float FramerateSecPerFrame_2; + public float FramerateSecPerFrame_3; + public float FramerateSecPerFrame_4; + public float FramerateSecPerFrame_5; + public float FramerateSecPerFrame_6; + public float FramerateSecPerFrame_7; + public float FramerateSecPerFrame_8; + public float FramerateSecPerFrame_9; + public float FramerateSecPerFrame_10; + public float FramerateSecPerFrame_11; + public float FramerateSecPerFrame_12; + public float FramerateSecPerFrame_13; + public float FramerateSecPerFrame_14; + public float FramerateSecPerFrame_15; + public float FramerateSecPerFrame_16; + public float FramerateSecPerFrame_17; + public float FramerateSecPerFrame_18; + public float FramerateSecPerFrame_19; + public float FramerateSecPerFrame_20; + public float FramerateSecPerFrame_21; + public float FramerateSecPerFrame_22; + public float FramerateSecPerFrame_23; + public float FramerateSecPerFrame_24; + public float FramerateSecPerFrame_25; + public float FramerateSecPerFrame_26; + public float FramerateSecPerFrame_27; + public float FramerateSecPerFrame_28; + public float FramerateSecPerFrame_29; + public float FramerateSecPerFrame_30; + public float FramerateSecPerFrame_31; + public float FramerateSecPerFrame_32; + public float FramerateSecPerFrame_33; + public float FramerateSecPerFrame_34; + public float FramerateSecPerFrame_35; + public float FramerateSecPerFrame_36; + public float FramerateSecPerFrame_37; + public float FramerateSecPerFrame_38; + public float FramerateSecPerFrame_39; + public float FramerateSecPerFrame_40; + public float FramerateSecPerFrame_41; + public float FramerateSecPerFrame_42; + public float FramerateSecPerFrame_43; + public float FramerateSecPerFrame_44; + public float FramerateSecPerFrame_45; + public float FramerateSecPerFrame_46; + public float FramerateSecPerFrame_47; + public float FramerateSecPerFrame_48; + public float FramerateSecPerFrame_49; + public float FramerateSecPerFrame_50; + public float FramerateSecPerFrame_51; + public float FramerateSecPerFrame_52; + public float FramerateSecPerFrame_53; + public float FramerateSecPerFrame_54; + public float FramerateSecPerFrame_55; + public float FramerateSecPerFrame_56; + public float FramerateSecPerFrame_57; + public float FramerateSecPerFrame_58; + public float FramerateSecPerFrame_59; + + /// + /// To be documented. + /// + public int FramerateSecPerFrameIdx; + + /// + /// To be documented. + /// + public int FramerateSecPerFrameCount; + + /// + /// To be documented. + /// + public float FramerateSecPerFrameAccum; + + /// + /// To be documented. + /// + public int WantCaptureMouseNextFrame; + + /// + /// To be documented. + /// + public int WantCaptureKeyboardNextFrame; + + /// + /// To be documented. + /// + public int WantTextInputNextFrame; + + /// + /// To be documented. + /// + public ImVectorChar TempBuffer; + + + /// /// To be documented. /// public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImGuiStyle style = default, int configFlagsCurrFrame = default, int configFlagsLastFrame = default, ImFont* font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVectorImGuiInputEvent inputEventsQueue = default, ImVectorImGuiInputEvent inputEventsTrail = default, ImGuiMouseSource inputEventsNextMouseSource = default, uint inputEventsNextEventId = default, ImVectorImGuiWindowPtr windows = default, ImVectorImGuiWindowPtr windowsFocusOrder = default, ImVectorImGuiWindowPtr windowsTempSortBuffer = default, ImVectorImGuiWindowStackData currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, int wheelingWindowStartFrame = default, float wheelingWindowReleaseTimer = default, Vector2 wheelingWindowWheelRemainder = default, Vector2 wheelingAxisAvg = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, ImGuiKeyOwnerData* keysOwnerData = default, ImGuiKeyRoutingTable keysRoutingTable = default, uint activeIdUsingNavDirMask = default, bool activeIdUsingAllKeyboardKeys = default, uint activeIdUsingNavInputMask = default, uint currentFocusScopeId = default, int currentItemFlags = default, uint debugLocateId = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, bool debugShowGroupRects = default, ImVectorImGuiColorMod colorStack = default, ImVectorImGuiStyleMod styleVarStack = default, ImVectorImFontPtr fontStack = default, ImVectorImGuiID focusScopeStack = default, ImVectorImGuiItemFlags itemFlagsStack = default, ImVectorImGuiGroupData groupStack = default, ImVectorImGuiPopupData openPopupStack = default, ImVectorImGuiPopupData beginPopupStack = default, ImVectorImGuiNavTreeNodeData navTreeNodeStack = default, int beginMenuCount = default, ImVectorImGuiViewportPPtr viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportCreatedCount = default, int platformWindowsCreatedCount = default, int viewportFocusedStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, int navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, int navJustMovedToKeyMods = default, uint navNextActivateId = default, int navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, long navLastValidSelectionUserData = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, ImGuiNavItemData navInitResult = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, int navMoveFlags = default, int navMoveScrollFlags = default, int navMoveKeyMods = default, int navMoveDir = default, int navMoveDirForDebug = default, int navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, int configNavWindowingKeyNext = default, int configNavWindowingKeyPrev = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, Vector2 navWindowingAccumDeltaPos = default, Vector2 navWindowingAccumDeltaSize = default, float dimBgRatio = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, int dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, int dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVectorUnsignedChar dragDropPayloadBufHeap = default, byte* dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVectorImGuiListClipperData clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVectorImGuiTableTempData tablesTempData = default, ImPoolImGuiTable tables = default, ImVectorFloat tablesLastTimeActive = default, ImVectorImDrawChannel drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVectorImGuiPtrOrIndex currentTabBarStack = default, ImVectorImGuiShrinkWidthItem shrinkWidthBuffer = default, uint hoverItemDelayId = default, uint hoverItemDelayIdPreviousFrame = default, float hoverItemDelayTimer = default, float hoverItemDelayClearTimer = default, uint hoverItemUnlockedStationaryId = default, uint hoverWindowUnlockedStationaryId = default, int mouseCursor = default, float mouseStationaryTimer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImGuiInputTextDeactivatedState inputTextDeactivatedState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, int colorEditOptions = default, uint colorEditCurrentId = default, uint colorEditSavedId = default, float colorEditSavedHue = default, float colorEditSavedSat = default, uint colorEditSavedColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short lockMarkEdited = default, short tooltipOverrideCount = default, ImVectorChar clipboardHandlerData = default, ImVectorImGuiID menusIdSubmittedThisFrame = default, ImGuiTypingSelectState typingSelectState = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, ImGuiDockContext dockContext = default, delegate* dockNodeWindowMenuHandler = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVectorImGuiSettingsHandler settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVectorImGuiContextHook hooks = default, uint hookIdNext = default, byte** localizationTable = default, bool logEnabled = default, ImGuiLogType logType = default, Iobuf* logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, int debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, ImGuiTextIndex debugLogIndex = default, byte debugLogClipperAutoDisableFrames = default, byte debugLocateFrames = default, byte debugBeginReturnValueCullDepth = default, bool debugItemPickerActive = default, byte debugItemPickerMouseButton = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiIDStackTool debugIdStackTool = default, ImGuiDebugAllocInfo debugAllocInfo = default, ImGuiDockNode* debugHoveredDockNode = default, float* framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVectorChar tempBuffer = default) + { + Initialized = initialized ? (byte)1 : (byte)0; + FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; + IO = io; + PlatformIO = platformIo; + Style = style; + ConfigFlagsCurrFrame = configFlagsCurrFrame; + ConfigFlagsLastFrame = configFlagsLastFrame; + Font = font; + FontSize = fontSize; + FontBaseSize = fontBaseSize; + DrawListSharedData = drawListSharedData; + Time = time; + FrameCount = frameCount; + FrameCountEnded = frameCountEnded; + FrameCountPlatformEnded = frameCountPlatformEnded; + FrameCountRendered = frameCountRendered; + WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; + WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; + WithinEndChild = withinEndChild ? (byte)1 : (byte)0; + GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; + TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; + TestEngine = testEngine; + InputEventsQueue = inputEventsQueue; + InputEventsTrail = inputEventsTrail; + InputEventsNextMouseSource = inputEventsNextMouseSource; + InputEventsNextEventId = inputEventsNextEventId; + Windows = windows; + WindowsFocusOrder = windowsFocusOrder; + WindowsTempSortBuffer = windowsTempSortBuffer; + CurrentWindowStack = currentWindowStack; + WindowsById = windowsById; + WindowsActiveCount = windowsActiveCount; + WindowsHoverPadding = windowsHoverPadding; + CurrentWindow = currentWindow; + HoveredWindow = hoveredWindow; + HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; + MovingWindow = movingWindow; + WheelingWindow = wheelingWindow; + WheelingWindowRefMousePos = wheelingWindowRefMousePos; + WheelingWindowStartFrame = wheelingWindowStartFrame; + WheelingWindowReleaseTimer = wheelingWindowReleaseTimer; + WheelingWindowWheelRemainder = wheelingWindowWheelRemainder; + WheelingAxisAvg = wheelingAxisAvg; + DebugHookIdInfo = debugHookIdInfo; + HoveredId = hoveredId; + HoveredIdPreviousFrame = hoveredIdPreviousFrame; + HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; + HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; + HoveredIdTimer = hoveredIdTimer; + HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; + ActiveId = activeId; + ActiveIdIsAlive = activeIdIsAlive; + ActiveIdTimer = activeIdTimer; + ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; + ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; + ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; + ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; + ActiveIdClickOffset = activeIdClickOffset; + ActiveIdWindow = activeIdWindow; + ActiveIdSource = activeIdSource; + ActiveIdMouseButton = activeIdMouseButton; + ActiveIdPreviousFrame = activeIdPreviousFrame; + ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; + LastActiveId = lastActiveId; + LastActiveIdTimer = lastActiveIdTimer; + if (keysOwnerData != default) + { + KeysOwnerData_0 = keysOwnerData[0]; + KeysOwnerData_1 = keysOwnerData[1]; + KeysOwnerData_2 = keysOwnerData[2]; + KeysOwnerData_3 = keysOwnerData[3]; + KeysOwnerData_4 = keysOwnerData[4]; + KeysOwnerData_5 = keysOwnerData[5]; + KeysOwnerData_6 = keysOwnerData[6]; + KeysOwnerData_7 = keysOwnerData[7]; + KeysOwnerData_8 = keysOwnerData[8]; + KeysOwnerData_9 = keysOwnerData[9]; + KeysOwnerData_10 = keysOwnerData[10]; + KeysOwnerData_11 = keysOwnerData[11]; + KeysOwnerData_12 = keysOwnerData[12]; + KeysOwnerData_13 = keysOwnerData[13]; + KeysOwnerData_14 = keysOwnerData[14]; + KeysOwnerData_15 = keysOwnerData[15]; + KeysOwnerData_16 = keysOwnerData[16]; + KeysOwnerData_17 = keysOwnerData[17]; + KeysOwnerData_18 = keysOwnerData[18]; + KeysOwnerData_19 = keysOwnerData[19]; + KeysOwnerData_20 = keysOwnerData[20]; + KeysOwnerData_21 = keysOwnerData[21]; + KeysOwnerData_22 = keysOwnerData[22]; + KeysOwnerData_23 = keysOwnerData[23]; + KeysOwnerData_24 = keysOwnerData[24]; + KeysOwnerData_25 = keysOwnerData[25]; + KeysOwnerData_26 = keysOwnerData[26]; + KeysOwnerData_27 = keysOwnerData[27]; + KeysOwnerData_28 = keysOwnerData[28]; + KeysOwnerData_29 = keysOwnerData[29]; + KeysOwnerData_30 = keysOwnerData[30]; + KeysOwnerData_31 = keysOwnerData[31]; + KeysOwnerData_32 = keysOwnerData[32]; + KeysOwnerData_33 = keysOwnerData[33]; + KeysOwnerData_34 = keysOwnerData[34]; + KeysOwnerData_35 = keysOwnerData[35]; + KeysOwnerData_36 = keysOwnerData[36]; + KeysOwnerData_37 = keysOwnerData[37]; + KeysOwnerData_38 = keysOwnerData[38]; + KeysOwnerData_39 = keysOwnerData[39]; + KeysOwnerData_40 = keysOwnerData[40]; + KeysOwnerData_41 = keysOwnerData[41]; + KeysOwnerData_42 = keysOwnerData[42]; + KeysOwnerData_43 = keysOwnerData[43]; + KeysOwnerData_44 = keysOwnerData[44]; + KeysOwnerData_45 = keysOwnerData[45]; + KeysOwnerData_46 = keysOwnerData[46]; + KeysOwnerData_47 = keysOwnerData[47]; + KeysOwnerData_48 = keysOwnerData[48]; + KeysOwnerData_49 = keysOwnerData[49]; + KeysOwnerData_50 = keysOwnerData[50]; + KeysOwnerData_51 = keysOwnerData[51]; + KeysOwnerData_52 = keysOwnerData[52]; + KeysOwnerData_53 = keysOwnerData[53]; + KeysOwnerData_54 = keysOwnerData[54]; + KeysOwnerData_55 = keysOwnerData[55]; + KeysOwnerData_56 = keysOwnerData[56]; + KeysOwnerData_57 = keysOwnerData[57]; + KeysOwnerData_58 = keysOwnerData[58]; + KeysOwnerData_59 = keysOwnerData[59]; + KeysOwnerData_60 = keysOwnerData[60]; + KeysOwnerData_61 = keysOwnerData[61]; + KeysOwnerData_62 = keysOwnerData[62]; + KeysOwnerData_63 = keysOwnerData[63]; + KeysOwnerData_64 = keysOwnerData[64]; + KeysOwnerData_65 = keysOwnerData[65]; + KeysOwnerData_66 = keysOwnerData[66]; + KeysOwnerData_67 = keysOwnerData[67]; + KeysOwnerData_68 = keysOwnerData[68]; + KeysOwnerData_69 = keysOwnerData[69]; + KeysOwnerData_70 = keysOwnerData[70]; + KeysOwnerData_71 = keysOwnerData[71]; + KeysOwnerData_72 = keysOwnerData[72]; + KeysOwnerData_73 = keysOwnerData[73]; + KeysOwnerData_74 = keysOwnerData[74]; + KeysOwnerData_75 = keysOwnerData[75]; + KeysOwnerData_76 = keysOwnerData[76]; + KeysOwnerData_77 = keysOwnerData[77]; + KeysOwnerData_78 = keysOwnerData[78]; + KeysOwnerData_79 = keysOwnerData[79]; + KeysOwnerData_80 = keysOwnerData[80]; + KeysOwnerData_81 = keysOwnerData[81]; + KeysOwnerData_82 = keysOwnerData[82]; + KeysOwnerData_83 = keysOwnerData[83]; + KeysOwnerData_84 = keysOwnerData[84]; + KeysOwnerData_85 = keysOwnerData[85]; + KeysOwnerData_86 = keysOwnerData[86]; + KeysOwnerData_87 = keysOwnerData[87]; + KeysOwnerData_88 = keysOwnerData[88]; + KeysOwnerData_89 = keysOwnerData[89]; + KeysOwnerData_90 = keysOwnerData[90]; + KeysOwnerData_91 = keysOwnerData[91]; + KeysOwnerData_92 = keysOwnerData[92]; + KeysOwnerData_93 = keysOwnerData[93]; + KeysOwnerData_94 = keysOwnerData[94]; + KeysOwnerData_95 = keysOwnerData[95]; + KeysOwnerData_96 = keysOwnerData[96]; + KeysOwnerData_97 = keysOwnerData[97]; + KeysOwnerData_98 = keysOwnerData[98]; + KeysOwnerData_99 = keysOwnerData[99]; + KeysOwnerData_100 = keysOwnerData[100]; + KeysOwnerData_101 = keysOwnerData[101]; + KeysOwnerData_102 = keysOwnerData[102]; + KeysOwnerData_103 = keysOwnerData[103]; + KeysOwnerData_104 = keysOwnerData[104]; + KeysOwnerData_105 = keysOwnerData[105]; + KeysOwnerData_106 = keysOwnerData[106]; + KeysOwnerData_107 = keysOwnerData[107]; + KeysOwnerData_108 = keysOwnerData[108]; + KeysOwnerData_109 = keysOwnerData[109]; + KeysOwnerData_110 = keysOwnerData[110]; + KeysOwnerData_111 = keysOwnerData[111]; + KeysOwnerData_112 = keysOwnerData[112]; + KeysOwnerData_113 = keysOwnerData[113]; + KeysOwnerData_114 = keysOwnerData[114]; + KeysOwnerData_115 = keysOwnerData[115]; + KeysOwnerData_116 = keysOwnerData[116]; + KeysOwnerData_117 = keysOwnerData[117]; + KeysOwnerData_118 = keysOwnerData[118]; + KeysOwnerData_119 = keysOwnerData[119]; + KeysOwnerData_120 = keysOwnerData[120]; + KeysOwnerData_121 = keysOwnerData[121]; + KeysOwnerData_122 = keysOwnerData[122]; + KeysOwnerData_123 = keysOwnerData[123]; + KeysOwnerData_124 = keysOwnerData[124]; + KeysOwnerData_125 = keysOwnerData[125]; + KeysOwnerData_126 = keysOwnerData[126]; + KeysOwnerData_127 = keysOwnerData[127]; + KeysOwnerData_128 = keysOwnerData[128]; + KeysOwnerData_129 = keysOwnerData[129]; + KeysOwnerData_130 = keysOwnerData[130]; + KeysOwnerData_131 = keysOwnerData[131]; + KeysOwnerData_132 = keysOwnerData[132]; + KeysOwnerData_133 = keysOwnerData[133]; + KeysOwnerData_134 = keysOwnerData[134]; + KeysOwnerData_135 = keysOwnerData[135]; + KeysOwnerData_136 = keysOwnerData[136]; + KeysOwnerData_137 = keysOwnerData[137]; + KeysOwnerData_138 = keysOwnerData[138]; + KeysOwnerData_139 = keysOwnerData[139]; + KeysOwnerData_140 = keysOwnerData[140]; + KeysOwnerData_141 = keysOwnerData[141]; + KeysOwnerData_142 = keysOwnerData[142]; + KeysOwnerData_143 = keysOwnerData[143]; + KeysOwnerData_144 = keysOwnerData[144]; + KeysOwnerData_145 = keysOwnerData[145]; + KeysOwnerData_146 = keysOwnerData[146]; + KeysOwnerData_147 = keysOwnerData[147]; + KeysOwnerData_148 = keysOwnerData[148]; + KeysOwnerData_149 = keysOwnerData[149]; + KeysOwnerData_150 = keysOwnerData[150]; + KeysOwnerData_151 = keysOwnerData[151]; + KeysOwnerData_152 = keysOwnerData[152]; + KeysOwnerData_153 = keysOwnerData[153]; + } + KeysRoutingTable = keysRoutingTable; + ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; + ActiveIdUsingAllKeyboardKeys = activeIdUsingAllKeyboardKeys ? (byte)1 : (byte)0; + ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; + CurrentFocusScopeId = currentFocusScopeId; + CurrentItemFlags = currentItemFlags; + DebugLocateId = debugLocateId; + NextItemData = nextItemData; + LastItemData = lastItemData; + NextWindowData = nextWindowData; + DebugShowGroupRects = debugShowGroupRects ? (byte)1 : (byte)0; + ColorStack = colorStack; + StyleVarStack = styleVarStack; + FontStack = fontStack; + FocusScopeStack = focusScopeStack; + ItemFlagsStack = itemFlagsStack; + GroupStack = groupStack; + OpenPopupStack = openPopupStack; + BeginPopupStack = beginPopupStack; + NavTreeNodeStack = navTreeNodeStack; + BeginMenuCount = beginMenuCount; + Viewports = viewports; + CurrentDpiScale = currentDpiScale; + CurrentViewport = currentViewport; + MouseViewport = mouseViewport; + MouseLastHoveredViewport = mouseLastHoveredViewport; + PlatformLastFocusedViewportId = platformLastFocusedViewportId; + FallbackMonitor = fallbackMonitor; + ViewportCreatedCount = viewportCreatedCount; + PlatformWindowsCreatedCount = platformWindowsCreatedCount; + ViewportFocusedStampCount = viewportFocusedStampCount; + NavWindow = navWindow; + NavId = navId; + NavFocusScopeId = navFocusScopeId; + NavActivateId = navActivateId; + NavActivateDownId = navActivateDownId; + NavActivatePressedId = navActivatePressedId; + NavActivateFlags = navActivateFlags; + NavJustMovedToId = navJustMovedToId; + NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; + NavJustMovedToKeyMods = navJustMovedToKeyMods; + NavNextActivateId = navNextActivateId; + NavNextActivateFlags = navNextActivateFlags; + NavInputSource = navInputSource; + NavLayer = navLayer; + NavLastValidSelectionUserData = navLastValidSelectionUserData; + NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; + NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; + NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; + NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; + NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; + NavInitRequest = navInitRequest ? (byte)1 : (byte)0; + NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; + NavInitResult = navInitResult; + NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; + NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; + NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; + NavMoveFlags = navMoveFlags; + NavMoveScrollFlags = navMoveScrollFlags; + NavMoveKeyMods = navMoveKeyMods; + NavMoveDir = navMoveDir; + NavMoveDirForDebug = navMoveDirForDebug; + NavMoveClipDir = navMoveClipDir; + NavScoringRect = navScoringRect; + NavScoringNoClipRect = navScoringNoClipRect; + NavScoringDebugCount = navScoringDebugCount; + NavTabbingDir = navTabbingDir; + NavTabbingCounter = navTabbingCounter; + NavMoveResultLocal = navMoveResultLocal; + NavMoveResultLocalVisible = navMoveResultLocalVisible; + NavMoveResultOther = navMoveResultOther; + NavTabbingResultFirst = navTabbingResultFirst; + ConfigNavWindowingKeyNext = configNavWindowingKeyNext; + ConfigNavWindowingKeyPrev = configNavWindowingKeyPrev; + NavWindowingTarget = navWindowingTarget; + NavWindowingTargetAnim = navWindowingTargetAnim; + NavWindowingListWindow = navWindowingListWindow; + NavWindowingTimer = navWindowingTimer; + NavWindowingHighlightAlpha = navWindowingHighlightAlpha; + NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; + NavWindowingAccumDeltaPos = navWindowingAccumDeltaPos; + NavWindowingAccumDeltaSize = navWindowingAccumDeltaSize; + DimBgRatio = dimBgRatio; + DragDropActive = dragDropActive ? (byte)1 : (byte)0; + DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; + DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; + DragDropSourceFlags = dragDropSourceFlags; + DragDropSourceFrameCount = dragDropSourceFrameCount; + DragDropMouseButton = dragDropMouseButton; + DragDropPayload = dragDropPayload; + DragDropTargetRect = dragDropTargetRect; + DragDropTargetId = dragDropTargetId; + DragDropAcceptFlags = dragDropAcceptFlags; + DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; + DragDropAcceptIdCurr = dragDropAcceptIdCurr; + DragDropAcceptIdPrev = dragDropAcceptIdPrev; + DragDropAcceptFrameCount = dragDropAcceptFrameCount; + DragDropHoldJustPressedId = dragDropHoldJustPressedId; + DragDropPayloadBufHeap = dragDropPayloadBufHeap; + if (dragDropPayloadBufLocal != default) + { + DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; + DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; + DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; + DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; + DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; + DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; + DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; + DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; + DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; + DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; + DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; + DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; + DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; + DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; + DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; + DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; + } + ClipperTempDataStacked = clipperTempDataStacked; + ClipperTempData = clipperTempData; + CurrentTable = currentTable; + TablesTempDataStacked = tablesTempDataStacked; + TablesTempData = tablesTempData; + Tables = tables; + TablesLastTimeActive = tablesLastTimeActive; + DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; + CurrentTabBar = currentTabBar; + TabBars = tabBars; + CurrentTabBarStack = currentTabBarStack; + ShrinkWidthBuffer = shrinkWidthBuffer; + HoverItemDelayId = hoverItemDelayId; + HoverItemDelayIdPreviousFrame = hoverItemDelayIdPreviousFrame; + HoverItemDelayTimer = hoverItemDelayTimer; + HoverItemDelayClearTimer = hoverItemDelayClearTimer; + HoverItemUnlockedStationaryId = hoverItemUnlockedStationaryId; + HoverWindowUnlockedStationaryId = hoverWindowUnlockedStationaryId; + MouseCursor = mouseCursor; + MouseStationaryTimer = mouseStationaryTimer; + MouseLastValidPos = mouseLastValidPos; + InputTextState = inputTextState; + InputTextDeactivatedState = inputTextDeactivatedState; + InputTextPasswordFont = inputTextPasswordFont; + TempInputId = tempInputId; + ColorEditOptions = colorEditOptions; + ColorEditCurrentID = colorEditCurrentId; + ColorEditSavedID = colorEditSavedId; + ColorEditSavedHue = colorEditSavedHue; + ColorEditSavedSat = colorEditSavedSat; + ColorEditSavedColor = colorEditSavedColor; + ColorPickerRef = colorPickerRef; + ComboPreviewData = comboPreviewData; + SliderGrabClickOffset = sliderGrabClickOffset; + SliderCurrentAccum = sliderCurrentAccum; + SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccum = dragCurrentAccum; + DragSpeedDefaultRatio = dragSpeedDefaultRatio; + ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; + DisabledAlphaBackup = disabledAlphaBackup; + DisabledStackSize = disabledStackSize; + LockMarkEdited = lockMarkEdited; + TooltipOverrideCount = tooltipOverrideCount; + ClipboardHandlerData = clipboardHandlerData; + MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; + TypingSelectState = typingSelectState; + PlatformImeData = platformImeData; + PlatformImeDataPrev = platformImeDataPrev; + PlatformImeViewport = platformImeViewport; + DockContext = dockContext; + DockNodeWindowMenuHandler = (void*)dockNodeWindowMenuHandler; + SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; + SettingsDirtyTimer = settingsDirtyTimer; + SettingsIniData = settingsIniData; + SettingsHandlers = settingsHandlers; + SettingsWindows = settingsWindows; + SettingsTables = settingsTables; + Hooks = hooks; + HookIdNext = hookIdNext; + if (localizationTable != default) + { + LocalizationTable_0 = localizationTable[0]; + LocalizationTable_1 = localizationTable[1]; + LocalizationTable_2 = localizationTable[2]; + LocalizationTable_3 = localizationTable[3]; + LocalizationTable_4 = localizationTable[4]; + LocalizationTable_5 = localizationTable[5]; + LocalizationTable_6 = localizationTable[6]; + LocalizationTable_7 = localizationTable[7]; + LocalizationTable_8 = localizationTable[8]; + LocalizationTable_9 = localizationTable[9]; + LocalizationTable_10 = localizationTable[10]; + } + LogEnabled = logEnabled ? (byte)1 : (byte)0; + LogType = logType; + LogFile = logFile; + LogBuffer = logBuffer; + LogNextPrefix = logNextPrefix; + LogNextSuffix = logNextSuffix; + LogLinePosY = logLinePosY; + LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; + LogDepthRef = logDepthRef; + LogDepthToExpand = logDepthToExpand; + LogDepthToExpandDefault = logDepthToExpandDefault; + DebugLogFlags = debugLogFlags; + DebugLogBuf = debugLogBuf; + DebugLogIndex = debugLogIndex; + DebugLogClipperAutoDisableFrames = debugLogClipperAutoDisableFrames; + DebugLocateFrames = debugLocateFrames; + DebugBeginReturnValueCullDepth = debugBeginReturnValueCullDepth; + DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; + DebugItemPickerMouseButton = debugItemPickerMouseButton; + DebugItemPickerBreakId = debugItemPickerBreakId; + DebugMetricsConfig = debugMetricsConfig; + DebugIDStackTool = debugIdStackTool; + DebugAllocInfo = debugAllocInfo; + DebugHoveredDockNode = debugHoveredDockNode; + if (framerateSecPerFrame != default) + { + FramerateSecPerFrame_0 = framerateSecPerFrame[0]; + FramerateSecPerFrame_1 = framerateSecPerFrame[1]; + FramerateSecPerFrame_2 = framerateSecPerFrame[2]; + FramerateSecPerFrame_3 = framerateSecPerFrame[3]; + FramerateSecPerFrame_4 = framerateSecPerFrame[4]; + FramerateSecPerFrame_5 = framerateSecPerFrame[5]; + FramerateSecPerFrame_6 = framerateSecPerFrame[6]; + FramerateSecPerFrame_7 = framerateSecPerFrame[7]; + FramerateSecPerFrame_8 = framerateSecPerFrame[8]; + FramerateSecPerFrame_9 = framerateSecPerFrame[9]; + FramerateSecPerFrame_10 = framerateSecPerFrame[10]; + FramerateSecPerFrame_11 = framerateSecPerFrame[11]; + FramerateSecPerFrame_12 = framerateSecPerFrame[12]; + FramerateSecPerFrame_13 = framerateSecPerFrame[13]; + FramerateSecPerFrame_14 = framerateSecPerFrame[14]; + FramerateSecPerFrame_15 = framerateSecPerFrame[15]; + FramerateSecPerFrame_16 = framerateSecPerFrame[16]; + FramerateSecPerFrame_17 = framerateSecPerFrame[17]; + FramerateSecPerFrame_18 = framerateSecPerFrame[18]; + FramerateSecPerFrame_19 = framerateSecPerFrame[19]; + FramerateSecPerFrame_20 = framerateSecPerFrame[20]; + FramerateSecPerFrame_21 = framerateSecPerFrame[21]; + FramerateSecPerFrame_22 = framerateSecPerFrame[22]; + FramerateSecPerFrame_23 = framerateSecPerFrame[23]; + FramerateSecPerFrame_24 = framerateSecPerFrame[24]; + FramerateSecPerFrame_25 = framerateSecPerFrame[25]; + FramerateSecPerFrame_26 = framerateSecPerFrame[26]; + FramerateSecPerFrame_27 = framerateSecPerFrame[27]; + FramerateSecPerFrame_28 = framerateSecPerFrame[28]; + FramerateSecPerFrame_29 = framerateSecPerFrame[29]; + FramerateSecPerFrame_30 = framerateSecPerFrame[30]; + FramerateSecPerFrame_31 = framerateSecPerFrame[31]; + FramerateSecPerFrame_32 = framerateSecPerFrame[32]; + FramerateSecPerFrame_33 = framerateSecPerFrame[33]; + FramerateSecPerFrame_34 = framerateSecPerFrame[34]; + FramerateSecPerFrame_35 = framerateSecPerFrame[35]; + FramerateSecPerFrame_36 = framerateSecPerFrame[36]; + FramerateSecPerFrame_37 = framerateSecPerFrame[37]; + FramerateSecPerFrame_38 = framerateSecPerFrame[38]; + FramerateSecPerFrame_39 = framerateSecPerFrame[39]; + FramerateSecPerFrame_40 = framerateSecPerFrame[40]; + FramerateSecPerFrame_41 = framerateSecPerFrame[41]; + FramerateSecPerFrame_42 = framerateSecPerFrame[42]; + FramerateSecPerFrame_43 = framerateSecPerFrame[43]; + FramerateSecPerFrame_44 = framerateSecPerFrame[44]; + FramerateSecPerFrame_45 = framerateSecPerFrame[45]; + FramerateSecPerFrame_46 = framerateSecPerFrame[46]; + FramerateSecPerFrame_47 = framerateSecPerFrame[47]; + FramerateSecPerFrame_48 = framerateSecPerFrame[48]; + FramerateSecPerFrame_49 = framerateSecPerFrame[49]; + FramerateSecPerFrame_50 = framerateSecPerFrame[50]; + FramerateSecPerFrame_51 = framerateSecPerFrame[51]; + FramerateSecPerFrame_52 = framerateSecPerFrame[52]; + FramerateSecPerFrame_53 = framerateSecPerFrame[53]; + FramerateSecPerFrame_54 = framerateSecPerFrame[54]; + FramerateSecPerFrame_55 = framerateSecPerFrame[55]; + FramerateSecPerFrame_56 = framerateSecPerFrame[56]; + FramerateSecPerFrame_57 = framerateSecPerFrame[57]; + FramerateSecPerFrame_58 = framerateSecPerFrame[58]; + FramerateSecPerFrame_59 = framerateSecPerFrame[59]; + } + FramerateSecPerFrameIdx = framerateSecPerFrameIdx; + FramerateSecPerFrameCount = framerateSecPerFrameCount; + FramerateSecPerFrameAccum = framerateSecPerFrameAccum; + WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; + WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; + WantTextInputNextFrame = wantTextInputNextFrame; + TempBuffer = tempBuffer; + } + + /// /// To be documented. /// public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImGuiStyle style = default, int configFlagsCurrFrame = default, int configFlagsLastFrame = default, ImFont* font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVectorImGuiInputEvent inputEventsQueue = default, ImVectorImGuiInputEvent inputEventsTrail = default, ImGuiMouseSource inputEventsNextMouseSource = default, uint inputEventsNextEventId = default, ImVectorImGuiWindowPtr windows = default, ImVectorImGuiWindowPtr windowsFocusOrder = default, ImVectorImGuiWindowPtr windowsTempSortBuffer = default, ImVectorImGuiWindowStackData currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, int wheelingWindowStartFrame = default, float wheelingWindowReleaseTimer = default, Vector2 wheelingWindowWheelRemainder = default, Vector2 wheelingAxisAvg = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, Span keysOwnerData = default, ImGuiKeyRoutingTable keysRoutingTable = default, uint activeIdUsingNavDirMask = default, bool activeIdUsingAllKeyboardKeys = default, uint activeIdUsingNavInputMask = default, uint currentFocusScopeId = default, int currentItemFlags = default, uint debugLocateId = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, bool debugShowGroupRects = default, ImVectorImGuiColorMod colorStack = default, ImVectorImGuiStyleMod styleVarStack = default, ImVectorImFontPtr fontStack = default, ImVectorImGuiID focusScopeStack = default, ImVectorImGuiItemFlags itemFlagsStack = default, ImVectorImGuiGroupData groupStack = default, ImVectorImGuiPopupData openPopupStack = default, ImVectorImGuiPopupData beginPopupStack = default, ImVectorImGuiNavTreeNodeData navTreeNodeStack = default, int beginMenuCount = default, ImVectorImGuiViewportPPtr viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportCreatedCount = default, int platformWindowsCreatedCount = default, int viewportFocusedStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, int navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, int navJustMovedToKeyMods = default, uint navNextActivateId = default, int navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, long navLastValidSelectionUserData = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, ImGuiNavItemData navInitResult = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, int navMoveFlags = default, int navMoveScrollFlags = default, int navMoveKeyMods = default, int navMoveDir = default, int navMoveDirForDebug = default, int navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, int configNavWindowingKeyNext = default, int configNavWindowingKeyPrev = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, Vector2 navWindowingAccumDeltaPos = default, Vector2 navWindowingAccumDeltaSize = default, float dimBgRatio = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, int dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, int dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVectorUnsignedChar dragDropPayloadBufHeap = default, Span dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVectorImGuiListClipperData clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVectorImGuiTableTempData tablesTempData = default, ImPoolImGuiTable tables = default, ImVectorFloat tablesLastTimeActive = default, ImVectorImDrawChannel drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVectorImGuiPtrOrIndex currentTabBarStack = default, ImVectorImGuiShrinkWidthItem shrinkWidthBuffer = default, uint hoverItemDelayId = default, uint hoverItemDelayIdPreviousFrame = default, float hoverItemDelayTimer = default, float hoverItemDelayClearTimer = default, uint hoverItemUnlockedStationaryId = default, uint hoverWindowUnlockedStationaryId = default, int mouseCursor = default, float mouseStationaryTimer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImGuiInputTextDeactivatedState inputTextDeactivatedState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, int colorEditOptions = default, uint colorEditCurrentId = default, uint colorEditSavedId = default, float colorEditSavedHue = default, float colorEditSavedSat = default, uint colorEditSavedColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short lockMarkEdited = default, short tooltipOverrideCount = default, ImVectorChar clipboardHandlerData = default, ImVectorImGuiID menusIdSubmittedThisFrame = default, ImGuiTypingSelectState typingSelectState = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, ImGuiDockContext dockContext = default, delegate* dockNodeWindowMenuHandler = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVectorImGuiSettingsHandler settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVectorImGuiContextHook hooks = default, uint hookIdNext = default, Span> localizationTable = default, bool logEnabled = default, ImGuiLogType logType = default, Iobuf* logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, int debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, ImGuiTextIndex debugLogIndex = default, byte debugLogClipperAutoDisableFrames = default, byte debugLocateFrames = default, byte debugBeginReturnValueCullDepth = default, bool debugItemPickerActive = default, byte debugItemPickerMouseButton = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiIDStackTool debugIdStackTool = default, ImGuiDebugAllocInfo debugAllocInfo = default, ImGuiDockNode* debugHoveredDockNode = default, Span framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVectorChar tempBuffer = default) + { + Initialized = initialized ? (byte)1 : (byte)0; + FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; + IO = io; + PlatformIO = platformIo; + Style = style; + ConfigFlagsCurrFrame = configFlagsCurrFrame; + ConfigFlagsLastFrame = configFlagsLastFrame; + Font = font; + FontSize = fontSize; + FontBaseSize = fontBaseSize; + DrawListSharedData = drawListSharedData; + Time = time; + FrameCount = frameCount; + FrameCountEnded = frameCountEnded; + FrameCountPlatformEnded = frameCountPlatformEnded; + FrameCountRendered = frameCountRendered; + WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; + WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; + WithinEndChild = withinEndChild ? (byte)1 : (byte)0; + GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; + TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; + TestEngine = testEngine; + InputEventsQueue = inputEventsQueue; + InputEventsTrail = inputEventsTrail; + InputEventsNextMouseSource = inputEventsNextMouseSource; + InputEventsNextEventId = inputEventsNextEventId; + Windows = windows; + WindowsFocusOrder = windowsFocusOrder; + WindowsTempSortBuffer = windowsTempSortBuffer; + CurrentWindowStack = currentWindowStack; + WindowsById = windowsById; + WindowsActiveCount = windowsActiveCount; + WindowsHoverPadding = windowsHoverPadding; + CurrentWindow = currentWindow; + HoveredWindow = hoveredWindow; + HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; + MovingWindow = movingWindow; + WheelingWindow = wheelingWindow; + WheelingWindowRefMousePos = wheelingWindowRefMousePos; + WheelingWindowStartFrame = wheelingWindowStartFrame; + WheelingWindowReleaseTimer = wheelingWindowReleaseTimer; + WheelingWindowWheelRemainder = wheelingWindowWheelRemainder; + WheelingAxisAvg = wheelingAxisAvg; + DebugHookIdInfo = debugHookIdInfo; + HoveredId = hoveredId; + HoveredIdPreviousFrame = hoveredIdPreviousFrame; + HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; + HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; + HoveredIdTimer = hoveredIdTimer; + HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; + ActiveId = activeId; + ActiveIdIsAlive = activeIdIsAlive; + ActiveIdTimer = activeIdTimer; + ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; + ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; + ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; + ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; + ActiveIdClickOffset = activeIdClickOffset; + ActiveIdWindow = activeIdWindow; + ActiveIdSource = activeIdSource; + ActiveIdMouseButton = activeIdMouseButton; + ActiveIdPreviousFrame = activeIdPreviousFrame; + ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; + LastActiveId = lastActiveId; + LastActiveIdTimer = lastActiveIdTimer; + if (keysOwnerData != default) + { + KeysOwnerData_0 = keysOwnerData[0]; + KeysOwnerData_1 = keysOwnerData[1]; + KeysOwnerData_2 = keysOwnerData[2]; + KeysOwnerData_3 = keysOwnerData[3]; + KeysOwnerData_4 = keysOwnerData[4]; + KeysOwnerData_5 = keysOwnerData[5]; + KeysOwnerData_6 = keysOwnerData[6]; + KeysOwnerData_7 = keysOwnerData[7]; + KeysOwnerData_8 = keysOwnerData[8]; + KeysOwnerData_9 = keysOwnerData[9]; + KeysOwnerData_10 = keysOwnerData[10]; + KeysOwnerData_11 = keysOwnerData[11]; + KeysOwnerData_12 = keysOwnerData[12]; + KeysOwnerData_13 = keysOwnerData[13]; + KeysOwnerData_14 = keysOwnerData[14]; + KeysOwnerData_15 = keysOwnerData[15]; + KeysOwnerData_16 = keysOwnerData[16]; + KeysOwnerData_17 = keysOwnerData[17]; + KeysOwnerData_18 = keysOwnerData[18]; + KeysOwnerData_19 = keysOwnerData[19]; + KeysOwnerData_20 = keysOwnerData[20]; + KeysOwnerData_21 = keysOwnerData[21]; + KeysOwnerData_22 = keysOwnerData[22]; + KeysOwnerData_23 = keysOwnerData[23]; + KeysOwnerData_24 = keysOwnerData[24]; + KeysOwnerData_25 = keysOwnerData[25]; + KeysOwnerData_26 = keysOwnerData[26]; + KeysOwnerData_27 = keysOwnerData[27]; + KeysOwnerData_28 = keysOwnerData[28]; + KeysOwnerData_29 = keysOwnerData[29]; + KeysOwnerData_30 = keysOwnerData[30]; + KeysOwnerData_31 = keysOwnerData[31]; + KeysOwnerData_32 = keysOwnerData[32]; + KeysOwnerData_33 = keysOwnerData[33]; + KeysOwnerData_34 = keysOwnerData[34]; + KeysOwnerData_35 = keysOwnerData[35]; + KeysOwnerData_36 = keysOwnerData[36]; + KeysOwnerData_37 = keysOwnerData[37]; + KeysOwnerData_38 = keysOwnerData[38]; + KeysOwnerData_39 = keysOwnerData[39]; + KeysOwnerData_40 = keysOwnerData[40]; + KeysOwnerData_41 = keysOwnerData[41]; + KeysOwnerData_42 = keysOwnerData[42]; + KeysOwnerData_43 = keysOwnerData[43]; + KeysOwnerData_44 = keysOwnerData[44]; + KeysOwnerData_45 = keysOwnerData[45]; + KeysOwnerData_46 = keysOwnerData[46]; + KeysOwnerData_47 = keysOwnerData[47]; + KeysOwnerData_48 = keysOwnerData[48]; + KeysOwnerData_49 = keysOwnerData[49]; + KeysOwnerData_50 = keysOwnerData[50]; + KeysOwnerData_51 = keysOwnerData[51]; + KeysOwnerData_52 = keysOwnerData[52]; + KeysOwnerData_53 = keysOwnerData[53]; + KeysOwnerData_54 = keysOwnerData[54]; + KeysOwnerData_55 = keysOwnerData[55]; + KeysOwnerData_56 = keysOwnerData[56]; + KeysOwnerData_57 = keysOwnerData[57]; + KeysOwnerData_58 = keysOwnerData[58]; + KeysOwnerData_59 = keysOwnerData[59]; + KeysOwnerData_60 = keysOwnerData[60]; + KeysOwnerData_61 = keysOwnerData[61]; + KeysOwnerData_62 = keysOwnerData[62]; + KeysOwnerData_63 = keysOwnerData[63]; + KeysOwnerData_64 = keysOwnerData[64]; + KeysOwnerData_65 = keysOwnerData[65]; + KeysOwnerData_66 = keysOwnerData[66]; + KeysOwnerData_67 = keysOwnerData[67]; + KeysOwnerData_68 = keysOwnerData[68]; + KeysOwnerData_69 = keysOwnerData[69]; + KeysOwnerData_70 = keysOwnerData[70]; + KeysOwnerData_71 = keysOwnerData[71]; + KeysOwnerData_72 = keysOwnerData[72]; + KeysOwnerData_73 = keysOwnerData[73]; + KeysOwnerData_74 = keysOwnerData[74]; + KeysOwnerData_75 = keysOwnerData[75]; + KeysOwnerData_76 = keysOwnerData[76]; + KeysOwnerData_77 = keysOwnerData[77]; + KeysOwnerData_78 = keysOwnerData[78]; + KeysOwnerData_79 = keysOwnerData[79]; + KeysOwnerData_80 = keysOwnerData[80]; + KeysOwnerData_81 = keysOwnerData[81]; + KeysOwnerData_82 = keysOwnerData[82]; + KeysOwnerData_83 = keysOwnerData[83]; + KeysOwnerData_84 = keysOwnerData[84]; + KeysOwnerData_85 = keysOwnerData[85]; + KeysOwnerData_86 = keysOwnerData[86]; + KeysOwnerData_87 = keysOwnerData[87]; + KeysOwnerData_88 = keysOwnerData[88]; + KeysOwnerData_89 = keysOwnerData[89]; + KeysOwnerData_90 = keysOwnerData[90]; + KeysOwnerData_91 = keysOwnerData[91]; + KeysOwnerData_92 = keysOwnerData[92]; + KeysOwnerData_93 = keysOwnerData[93]; + KeysOwnerData_94 = keysOwnerData[94]; + KeysOwnerData_95 = keysOwnerData[95]; + KeysOwnerData_96 = keysOwnerData[96]; + KeysOwnerData_97 = keysOwnerData[97]; + KeysOwnerData_98 = keysOwnerData[98]; + KeysOwnerData_99 = keysOwnerData[99]; + KeysOwnerData_100 = keysOwnerData[100]; + KeysOwnerData_101 = keysOwnerData[101]; + KeysOwnerData_102 = keysOwnerData[102]; + KeysOwnerData_103 = keysOwnerData[103]; + KeysOwnerData_104 = keysOwnerData[104]; + KeysOwnerData_105 = keysOwnerData[105]; + KeysOwnerData_106 = keysOwnerData[106]; + KeysOwnerData_107 = keysOwnerData[107]; + KeysOwnerData_108 = keysOwnerData[108]; + KeysOwnerData_109 = keysOwnerData[109]; + KeysOwnerData_110 = keysOwnerData[110]; + KeysOwnerData_111 = keysOwnerData[111]; + KeysOwnerData_112 = keysOwnerData[112]; + KeysOwnerData_113 = keysOwnerData[113]; + KeysOwnerData_114 = keysOwnerData[114]; + KeysOwnerData_115 = keysOwnerData[115]; + KeysOwnerData_116 = keysOwnerData[116]; + KeysOwnerData_117 = keysOwnerData[117]; + KeysOwnerData_118 = keysOwnerData[118]; + KeysOwnerData_119 = keysOwnerData[119]; + KeysOwnerData_120 = keysOwnerData[120]; + KeysOwnerData_121 = keysOwnerData[121]; + KeysOwnerData_122 = keysOwnerData[122]; + KeysOwnerData_123 = keysOwnerData[123]; + KeysOwnerData_124 = keysOwnerData[124]; + KeysOwnerData_125 = keysOwnerData[125]; + KeysOwnerData_126 = keysOwnerData[126]; + KeysOwnerData_127 = keysOwnerData[127]; + KeysOwnerData_128 = keysOwnerData[128]; + KeysOwnerData_129 = keysOwnerData[129]; + KeysOwnerData_130 = keysOwnerData[130]; + KeysOwnerData_131 = keysOwnerData[131]; + KeysOwnerData_132 = keysOwnerData[132]; + KeysOwnerData_133 = keysOwnerData[133]; + KeysOwnerData_134 = keysOwnerData[134]; + KeysOwnerData_135 = keysOwnerData[135]; + KeysOwnerData_136 = keysOwnerData[136]; + KeysOwnerData_137 = keysOwnerData[137]; + KeysOwnerData_138 = keysOwnerData[138]; + KeysOwnerData_139 = keysOwnerData[139]; + KeysOwnerData_140 = keysOwnerData[140]; + KeysOwnerData_141 = keysOwnerData[141]; + KeysOwnerData_142 = keysOwnerData[142]; + KeysOwnerData_143 = keysOwnerData[143]; + KeysOwnerData_144 = keysOwnerData[144]; + KeysOwnerData_145 = keysOwnerData[145]; + KeysOwnerData_146 = keysOwnerData[146]; + KeysOwnerData_147 = keysOwnerData[147]; + KeysOwnerData_148 = keysOwnerData[148]; + KeysOwnerData_149 = keysOwnerData[149]; + KeysOwnerData_150 = keysOwnerData[150]; + KeysOwnerData_151 = keysOwnerData[151]; + KeysOwnerData_152 = keysOwnerData[152]; + KeysOwnerData_153 = keysOwnerData[153]; + } + KeysRoutingTable = keysRoutingTable; + ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; + ActiveIdUsingAllKeyboardKeys = activeIdUsingAllKeyboardKeys ? (byte)1 : (byte)0; + ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; + CurrentFocusScopeId = currentFocusScopeId; + CurrentItemFlags = currentItemFlags; + DebugLocateId = debugLocateId; + NextItemData = nextItemData; + LastItemData = lastItemData; + NextWindowData = nextWindowData; + DebugShowGroupRects = debugShowGroupRects ? (byte)1 : (byte)0; + ColorStack = colorStack; + StyleVarStack = styleVarStack; + FontStack = fontStack; + FocusScopeStack = focusScopeStack; + ItemFlagsStack = itemFlagsStack; + GroupStack = groupStack; + OpenPopupStack = openPopupStack; + BeginPopupStack = beginPopupStack; + NavTreeNodeStack = navTreeNodeStack; + BeginMenuCount = beginMenuCount; + Viewports = viewports; + CurrentDpiScale = currentDpiScale; + CurrentViewport = currentViewport; + MouseViewport = mouseViewport; + MouseLastHoveredViewport = mouseLastHoveredViewport; + PlatformLastFocusedViewportId = platformLastFocusedViewportId; + FallbackMonitor = fallbackMonitor; + ViewportCreatedCount = viewportCreatedCount; + PlatformWindowsCreatedCount = platformWindowsCreatedCount; + ViewportFocusedStampCount = viewportFocusedStampCount; + NavWindow = navWindow; + NavId = navId; + NavFocusScopeId = navFocusScopeId; + NavActivateId = navActivateId; + NavActivateDownId = navActivateDownId; + NavActivatePressedId = navActivatePressedId; + NavActivateFlags = navActivateFlags; + NavJustMovedToId = navJustMovedToId; + NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; + NavJustMovedToKeyMods = navJustMovedToKeyMods; + NavNextActivateId = navNextActivateId; + NavNextActivateFlags = navNextActivateFlags; + NavInputSource = navInputSource; + NavLayer = navLayer; + NavLastValidSelectionUserData = navLastValidSelectionUserData; + NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; + NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; + NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; + NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; + NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; + NavInitRequest = navInitRequest ? (byte)1 : (byte)0; + NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; + NavInitResult = navInitResult; + NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; + NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; + NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; + NavMoveFlags = navMoveFlags; + NavMoveScrollFlags = navMoveScrollFlags; + NavMoveKeyMods = navMoveKeyMods; + NavMoveDir = navMoveDir; + NavMoveDirForDebug = navMoveDirForDebug; + NavMoveClipDir = navMoveClipDir; + NavScoringRect = navScoringRect; + NavScoringNoClipRect = navScoringNoClipRect; + NavScoringDebugCount = navScoringDebugCount; + NavTabbingDir = navTabbingDir; + NavTabbingCounter = navTabbingCounter; + NavMoveResultLocal = navMoveResultLocal; + NavMoveResultLocalVisible = navMoveResultLocalVisible; + NavMoveResultOther = navMoveResultOther; + NavTabbingResultFirst = navTabbingResultFirst; + ConfigNavWindowingKeyNext = configNavWindowingKeyNext; + ConfigNavWindowingKeyPrev = configNavWindowingKeyPrev; + NavWindowingTarget = navWindowingTarget; + NavWindowingTargetAnim = navWindowingTargetAnim; + NavWindowingListWindow = navWindowingListWindow; + NavWindowingTimer = navWindowingTimer; + NavWindowingHighlightAlpha = navWindowingHighlightAlpha; + NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; + NavWindowingAccumDeltaPos = navWindowingAccumDeltaPos; + NavWindowingAccumDeltaSize = navWindowingAccumDeltaSize; + DimBgRatio = dimBgRatio; + DragDropActive = dragDropActive ? (byte)1 : (byte)0; + DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; + DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; + DragDropSourceFlags = dragDropSourceFlags; + DragDropSourceFrameCount = dragDropSourceFrameCount; + DragDropMouseButton = dragDropMouseButton; + DragDropPayload = dragDropPayload; + DragDropTargetRect = dragDropTargetRect; + DragDropTargetId = dragDropTargetId; + DragDropAcceptFlags = dragDropAcceptFlags; + DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; + DragDropAcceptIdCurr = dragDropAcceptIdCurr; + DragDropAcceptIdPrev = dragDropAcceptIdPrev; + DragDropAcceptFrameCount = dragDropAcceptFrameCount; + DragDropHoldJustPressedId = dragDropHoldJustPressedId; + DragDropPayloadBufHeap = dragDropPayloadBufHeap; + if (dragDropPayloadBufLocal != default) + { + DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; + DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; + DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; + DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; + DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; + DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; + DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; + DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; + DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; + DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; + DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; + DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; + DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; + DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; + DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; + DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; + } + ClipperTempDataStacked = clipperTempDataStacked; + ClipperTempData = clipperTempData; + CurrentTable = currentTable; + TablesTempDataStacked = tablesTempDataStacked; + TablesTempData = tablesTempData; + Tables = tables; + TablesLastTimeActive = tablesLastTimeActive; + DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; + CurrentTabBar = currentTabBar; + TabBars = tabBars; + CurrentTabBarStack = currentTabBarStack; + ShrinkWidthBuffer = shrinkWidthBuffer; + HoverItemDelayId = hoverItemDelayId; + HoverItemDelayIdPreviousFrame = hoverItemDelayIdPreviousFrame; + HoverItemDelayTimer = hoverItemDelayTimer; + HoverItemDelayClearTimer = hoverItemDelayClearTimer; + HoverItemUnlockedStationaryId = hoverItemUnlockedStationaryId; + HoverWindowUnlockedStationaryId = hoverWindowUnlockedStationaryId; + MouseCursor = mouseCursor; + MouseStationaryTimer = mouseStationaryTimer; + MouseLastValidPos = mouseLastValidPos; + InputTextState = inputTextState; + InputTextDeactivatedState = inputTextDeactivatedState; + InputTextPasswordFont = inputTextPasswordFont; + TempInputId = tempInputId; + ColorEditOptions = colorEditOptions; + ColorEditCurrentID = colorEditCurrentId; + ColorEditSavedID = colorEditSavedId; + ColorEditSavedHue = colorEditSavedHue; + ColorEditSavedSat = colorEditSavedSat; + ColorEditSavedColor = colorEditSavedColor; + ColorPickerRef = colorPickerRef; + ComboPreviewData = comboPreviewData; + SliderGrabClickOffset = sliderGrabClickOffset; + SliderCurrentAccum = sliderCurrentAccum; + SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccum = dragCurrentAccum; + DragSpeedDefaultRatio = dragSpeedDefaultRatio; + ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; + DisabledAlphaBackup = disabledAlphaBackup; + DisabledStackSize = disabledStackSize; + LockMarkEdited = lockMarkEdited; + TooltipOverrideCount = tooltipOverrideCount; + ClipboardHandlerData = clipboardHandlerData; + MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; + TypingSelectState = typingSelectState; + PlatformImeData = platformImeData; + PlatformImeDataPrev = platformImeDataPrev; + PlatformImeViewport = platformImeViewport; + DockContext = dockContext; + DockNodeWindowMenuHandler = (void*)dockNodeWindowMenuHandler; + SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; + SettingsDirtyTimer = settingsDirtyTimer; + SettingsIniData = settingsIniData; + SettingsHandlers = settingsHandlers; + SettingsWindows = settingsWindows; + SettingsTables = settingsTables; + Hooks = hooks; + HookIdNext = hookIdNext; + if (localizationTable != default) + { + LocalizationTable_0 = localizationTable[0]; + LocalizationTable_1 = localizationTable[1]; + LocalizationTable_2 = localizationTable[2]; + LocalizationTable_3 = localizationTable[3]; + LocalizationTable_4 = localizationTable[4]; + LocalizationTable_5 = localizationTable[5]; + LocalizationTable_6 = localizationTable[6]; + LocalizationTable_7 = localizationTable[7]; + LocalizationTable_8 = localizationTable[8]; + LocalizationTable_9 = localizationTable[9]; + LocalizationTable_10 = localizationTable[10]; + } + LogEnabled = logEnabled ? (byte)1 : (byte)0; + LogType = logType; + LogFile = logFile; + LogBuffer = logBuffer; + LogNextPrefix = logNextPrefix; + LogNextSuffix = logNextSuffix; + LogLinePosY = logLinePosY; + LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; + LogDepthRef = logDepthRef; + LogDepthToExpand = logDepthToExpand; + LogDepthToExpandDefault = logDepthToExpandDefault; + DebugLogFlags = debugLogFlags; + DebugLogBuf = debugLogBuf; + DebugLogIndex = debugLogIndex; + DebugLogClipperAutoDisableFrames = debugLogClipperAutoDisableFrames; + DebugLocateFrames = debugLocateFrames; + DebugBeginReturnValueCullDepth = debugBeginReturnValueCullDepth; + DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; + DebugItemPickerMouseButton = debugItemPickerMouseButton; + DebugItemPickerBreakId = debugItemPickerBreakId; + DebugMetricsConfig = debugMetricsConfig; + DebugIDStackTool = debugIdStackTool; + DebugAllocInfo = debugAllocInfo; + DebugHoveredDockNode = debugHoveredDockNode; + if (framerateSecPerFrame != default) + { + FramerateSecPerFrame_0 = framerateSecPerFrame[0]; + FramerateSecPerFrame_1 = framerateSecPerFrame[1]; + FramerateSecPerFrame_2 = framerateSecPerFrame[2]; + FramerateSecPerFrame_3 = framerateSecPerFrame[3]; + FramerateSecPerFrame_4 = framerateSecPerFrame[4]; + FramerateSecPerFrame_5 = framerateSecPerFrame[5]; + FramerateSecPerFrame_6 = framerateSecPerFrame[6]; + FramerateSecPerFrame_7 = framerateSecPerFrame[7]; + FramerateSecPerFrame_8 = framerateSecPerFrame[8]; + FramerateSecPerFrame_9 = framerateSecPerFrame[9]; + FramerateSecPerFrame_10 = framerateSecPerFrame[10]; + FramerateSecPerFrame_11 = framerateSecPerFrame[11]; + FramerateSecPerFrame_12 = framerateSecPerFrame[12]; + FramerateSecPerFrame_13 = framerateSecPerFrame[13]; + FramerateSecPerFrame_14 = framerateSecPerFrame[14]; + FramerateSecPerFrame_15 = framerateSecPerFrame[15]; + FramerateSecPerFrame_16 = framerateSecPerFrame[16]; + FramerateSecPerFrame_17 = framerateSecPerFrame[17]; + FramerateSecPerFrame_18 = framerateSecPerFrame[18]; + FramerateSecPerFrame_19 = framerateSecPerFrame[19]; + FramerateSecPerFrame_20 = framerateSecPerFrame[20]; + FramerateSecPerFrame_21 = framerateSecPerFrame[21]; + FramerateSecPerFrame_22 = framerateSecPerFrame[22]; + FramerateSecPerFrame_23 = framerateSecPerFrame[23]; + FramerateSecPerFrame_24 = framerateSecPerFrame[24]; + FramerateSecPerFrame_25 = framerateSecPerFrame[25]; + FramerateSecPerFrame_26 = framerateSecPerFrame[26]; + FramerateSecPerFrame_27 = framerateSecPerFrame[27]; + FramerateSecPerFrame_28 = framerateSecPerFrame[28]; + FramerateSecPerFrame_29 = framerateSecPerFrame[29]; + FramerateSecPerFrame_30 = framerateSecPerFrame[30]; + FramerateSecPerFrame_31 = framerateSecPerFrame[31]; + FramerateSecPerFrame_32 = framerateSecPerFrame[32]; + FramerateSecPerFrame_33 = framerateSecPerFrame[33]; + FramerateSecPerFrame_34 = framerateSecPerFrame[34]; + FramerateSecPerFrame_35 = framerateSecPerFrame[35]; + FramerateSecPerFrame_36 = framerateSecPerFrame[36]; + FramerateSecPerFrame_37 = framerateSecPerFrame[37]; + FramerateSecPerFrame_38 = framerateSecPerFrame[38]; + FramerateSecPerFrame_39 = framerateSecPerFrame[39]; + FramerateSecPerFrame_40 = framerateSecPerFrame[40]; + FramerateSecPerFrame_41 = framerateSecPerFrame[41]; + FramerateSecPerFrame_42 = framerateSecPerFrame[42]; + FramerateSecPerFrame_43 = framerateSecPerFrame[43]; + FramerateSecPerFrame_44 = framerateSecPerFrame[44]; + FramerateSecPerFrame_45 = framerateSecPerFrame[45]; + FramerateSecPerFrame_46 = framerateSecPerFrame[46]; + FramerateSecPerFrame_47 = framerateSecPerFrame[47]; + FramerateSecPerFrame_48 = framerateSecPerFrame[48]; + FramerateSecPerFrame_49 = framerateSecPerFrame[49]; + FramerateSecPerFrame_50 = framerateSecPerFrame[50]; + FramerateSecPerFrame_51 = framerateSecPerFrame[51]; + FramerateSecPerFrame_52 = framerateSecPerFrame[52]; + FramerateSecPerFrame_53 = framerateSecPerFrame[53]; + FramerateSecPerFrame_54 = framerateSecPerFrame[54]; + FramerateSecPerFrame_55 = framerateSecPerFrame[55]; + FramerateSecPerFrame_56 = framerateSecPerFrame[56]; + FramerateSecPerFrame_57 = framerateSecPerFrame[57]; + FramerateSecPerFrame_58 = framerateSecPerFrame[58]; + FramerateSecPerFrame_59 = framerateSecPerFrame[59]; + } + FramerateSecPerFrameIdx = framerateSecPerFrameIdx; + FramerateSecPerFrameCount = framerateSecPerFrameCount; + FramerateSecPerFrameAccum = framerateSecPerFrameAccum; + WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; + WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; + WantTextInputNextFrame = wantTextInputNextFrame; + TempBuffer = tempBuffer; + } + + + /// + /// To be documented. + /// + public unsafe Span KeysOwnerData + + { + get + { + fixed (ImGuiKeyOwnerData* p = &this.KeysOwnerData_0) + { + return new Span(p, 154); + } + } + } + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiIO + { + /// + /// To be documented. + /// + public int ConfigFlags; + + /// + /// To be documented. + /// + public int BackendFlags; + + /// + /// To be documented. + /// + public Vector2 DisplaySize; + + /// + /// To be documented. + /// + public float DeltaTime; + + /// + /// To be documented. + /// + public float IniSavingRate; + + /// + /// To be documented. + /// + public unsafe byte* IniFilename; + + /// + /// To be documented. + /// + public unsafe byte* LogFilename; + + /// + /// To be documented. + /// + public unsafe void* UserData; + + /// + /// To be documented. + /// + public unsafe ImFontAtlas* Fonts; + + /// + /// To be documented. + /// + public float FontGlobalScale; + + /// + /// To be documented. + /// + public byte FontAllowUserScaling; + + /// + /// To be documented. + /// + public unsafe ImFont* FontDefault; + + /// + /// To be documented. + /// + public Vector2 DisplayFramebufferScale; + + /// + /// To be documented. + /// + public byte ConfigDockingNoSplit; + + /// + /// To be documented. + /// + public byte ConfigDockingWithShift; + + /// + /// To be documented. + /// + public byte ConfigDockingAlwaysTabBar; + + /// + /// To be documented. + /// + public byte ConfigDockingTransparentPayload; + + /// + /// To be documented. + /// + public byte ConfigViewportsNoAutoMerge; + + /// + /// To be documented. + /// + public byte ConfigViewportsNoTaskBarIcon; + + /// + /// To be documented. + /// + public byte ConfigViewportsNoDecoration; + + /// + /// To be documented. + /// + public byte ConfigViewportsNoDefaultParent; + + /// + /// To be documented. + /// + public byte MouseDrawCursor; + + /// + /// To be documented. + /// + public byte ConfigMacOSXBehaviors; + + /// + /// To be documented. + /// + public byte ConfigInputTrickleEventQueue; + + /// + /// To be documented. + /// + public byte ConfigInputTextCursorBlink; + + /// + /// To be documented. + /// + public byte ConfigInputTextEnterKeepActive; + + /// + /// To be documented. + /// + public byte ConfigDragClickToInputText; + + /// + /// To be documented. + /// + public byte ConfigWindowsResizeFromEdges; + + /// + /// To be documented. + /// + public byte ConfigWindowsMoveFromTitleBarOnly; + + /// + /// To be documented. + /// + public float ConfigMemoryCompactTimer; + + /// + /// To be documented. + /// + public float MouseDoubleClickTime; + + /// + /// To be documented. + /// + public float MouseDoubleClickMaxDist; + + /// + /// To be documented. + /// + public float MouseDragThreshold; + + /// + /// To be documented. + /// + public float KeyRepeatDelay; + + /// + /// To be documented. + /// + public float KeyRepeatRate; + + /// + /// To be documented. + /// + public byte ConfigDebugBeginReturnValueOnce; + + /// + /// To be documented. + /// + public byte ConfigDebugBeginReturnValueLoop; + + /// + /// To be documented. + /// + public byte ConfigDebugIgnoreFocusLoss; + + /// + /// To be documented. + /// + public byte ConfigDebugIniSettings; + + /// + /// To be documented. + /// + public unsafe byte* BackendPlatformName; + + /// + /// To be documented. + /// + public unsafe byte* BackendRendererName; + + /// + /// To be documented. + /// + public unsafe void* BackendPlatformUserData; + + /// + /// To be documented. + /// + public unsafe void* BackendRendererUserData; + + /// + /// To be documented. + /// + public unsafe void* BackendLanguageUserData; + + /// + /// To be documented. + /// + public unsafe void* GetClipboardTextFn; + + /// + /// To be documented. + /// + public unsafe void* SetClipboardTextFn; + + /// + /// To be documented. + /// + public unsafe void* ClipboardUserData; + + /// + /// To be documented. + /// + public unsafe void* SetPlatformImeDataFn; + + /// + /// To be documented. + /// + public ushort PlatformLocaleDecimalPoint; + + /// + /// To be documented. + /// + public byte WantCaptureMouse; + + /// + /// To be documented. + /// + public byte WantCaptureKeyboard; + + /// + /// To be documented. + /// + public byte WantTextInput; + + /// + /// To be documented. + /// + public byte WantSetMousePos; + + /// + /// To be documented. + /// + public byte WantSaveIniSettings; + + /// + /// To be documented. + /// + public byte NavActive; + + /// + /// To be documented. + /// + public byte NavVisible; + + /// + /// To be documented. + /// + public float Framerate; + + /// + /// To be documented. + /// + public int MetricsRenderVertices; + + /// + /// To be documented. + /// + public int MetricsRenderIndices; + + /// + /// To be documented. + /// + public int MetricsRenderWindows; + + /// + /// To be documented. + /// + public int MetricsActiveWindows; + + /// + /// To be documented. + /// + public Vector2 MouseDelta; + + /// + /// To be documented. + /// + public int KeyMap_0; + public int KeyMap_1; + public int KeyMap_2; + public int KeyMap_3; + public int KeyMap_4; + public int KeyMap_5; + public int KeyMap_6; + public int KeyMap_7; + public int KeyMap_8; + public int KeyMap_9; + public int KeyMap_10; + public int KeyMap_11; + public int KeyMap_12; + public int KeyMap_13; + public int KeyMap_14; + public int KeyMap_15; + public int KeyMap_16; + public int KeyMap_17; + public int KeyMap_18; + public int KeyMap_19; + public int KeyMap_20; + public int KeyMap_21; + public int KeyMap_22; + public int KeyMap_23; + public int KeyMap_24; + public int KeyMap_25; + public int KeyMap_26; + public int KeyMap_27; + public int KeyMap_28; + public int KeyMap_29; + public int KeyMap_30; + public int KeyMap_31; + public int KeyMap_32; + public int KeyMap_33; + public int KeyMap_34; + public int KeyMap_35; + public int KeyMap_36; + public int KeyMap_37; + public int KeyMap_38; + public int KeyMap_39; + public int KeyMap_40; + public int KeyMap_41; + public int KeyMap_42; + public int KeyMap_43; + public int KeyMap_44; + public int KeyMap_45; + public int KeyMap_46; + public int KeyMap_47; + public int KeyMap_48; + public int KeyMap_49; + public int KeyMap_50; + public int KeyMap_51; + public int KeyMap_52; + public int KeyMap_53; + public int KeyMap_54; + public int KeyMap_55; + public int KeyMap_56; + public int KeyMap_57; + public int KeyMap_58; + public int KeyMap_59; + public int KeyMap_60; + public int KeyMap_61; + public int KeyMap_62; + public int KeyMap_63; + public int KeyMap_64; + public int KeyMap_65; + public int KeyMap_66; + public int KeyMap_67; + public int KeyMap_68; + public int KeyMap_69; + public int KeyMap_70; + public int KeyMap_71; + public int KeyMap_72; + public int KeyMap_73; + public int KeyMap_74; + public int KeyMap_75; + public int KeyMap_76; + public int KeyMap_77; + public int KeyMap_78; + public int KeyMap_79; + public int KeyMap_80; + public int KeyMap_81; + public int KeyMap_82; + public int KeyMap_83; + public int KeyMap_84; + public int KeyMap_85; + public int KeyMap_86; + public int KeyMap_87; + public int KeyMap_88; + public int KeyMap_89; + public int KeyMap_90; + public int KeyMap_91; + public int KeyMap_92; + public int KeyMap_93; + public int KeyMap_94; + public int KeyMap_95; + public int KeyMap_96; + public int KeyMap_97; + public int KeyMap_98; + public int KeyMap_99; + public int KeyMap_100; + public int KeyMap_101; + public int KeyMap_102; + public int KeyMap_103; + public int KeyMap_104; + public int KeyMap_105; + public int KeyMap_106; + public int KeyMap_107; + public int KeyMap_108; + public int KeyMap_109; + public int KeyMap_110; + public int KeyMap_111; + public int KeyMap_112; + public int KeyMap_113; + public int KeyMap_114; + public int KeyMap_115; + public int KeyMap_116; + public int KeyMap_117; + public int KeyMap_118; + public int KeyMap_119; + public int KeyMap_120; + public int KeyMap_121; + public int KeyMap_122; + public int KeyMap_123; + public int KeyMap_124; + public int KeyMap_125; + public int KeyMap_126; + public int KeyMap_127; + public int KeyMap_128; + public int KeyMap_129; + public int KeyMap_130; + public int KeyMap_131; + public int KeyMap_132; + public int KeyMap_133; + public int KeyMap_134; + public int KeyMap_135; + public int KeyMap_136; + public int KeyMap_137; + public int KeyMap_138; + public int KeyMap_139; + public int KeyMap_140; + public int KeyMap_141; + public int KeyMap_142; + public int KeyMap_143; + public int KeyMap_144; + public int KeyMap_145; + public int KeyMap_146; + public int KeyMap_147; + public int KeyMap_148; + public int KeyMap_149; + public int KeyMap_150; + public int KeyMap_151; + public int KeyMap_152; + public int KeyMap_153; + public int KeyMap_154; + public int KeyMap_155; + public int KeyMap_156; + public int KeyMap_157; + public int KeyMap_158; + public int KeyMap_159; + public int KeyMap_160; + public int KeyMap_161; + public int KeyMap_162; + public int KeyMap_163; + public int KeyMap_164; + public int KeyMap_165; + public int KeyMap_166; + public int KeyMap_167; + public int KeyMap_168; + public int KeyMap_169; + public int KeyMap_170; + public int KeyMap_171; + public int KeyMap_172; + public int KeyMap_173; + public int KeyMap_174; + public int KeyMap_175; + public int KeyMap_176; + public int KeyMap_177; + public int KeyMap_178; + public int KeyMap_179; + public int KeyMap_180; + public int KeyMap_181; + public int KeyMap_182; + public int KeyMap_183; + public int KeyMap_184; + public int KeyMap_185; + public int KeyMap_186; + public int KeyMap_187; + public int KeyMap_188; + public int KeyMap_189; + public int KeyMap_190; + public int KeyMap_191; + public int KeyMap_192; + public int KeyMap_193; + public int KeyMap_194; + public int KeyMap_195; + public int KeyMap_196; + public int KeyMap_197; + public int KeyMap_198; + public int KeyMap_199; + public int KeyMap_200; + public int KeyMap_201; + public int KeyMap_202; + public int KeyMap_203; + public int KeyMap_204; + public int KeyMap_205; + public int KeyMap_206; + public int KeyMap_207; + public int KeyMap_208; + public int KeyMap_209; + public int KeyMap_210; + public int KeyMap_211; + public int KeyMap_212; + public int KeyMap_213; + public int KeyMap_214; + public int KeyMap_215; + public int KeyMap_216; + public int KeyMap_217; + public int KeyMap_218; + public int KeyMap_219; + public int KeyMap_220; + public int KeyMap_221; + public int KeyMap_222; + public int KeyMap_223; + public int KeyMap_224; + public int KeyMap_225; + public int KeyMap_226; + public int KeyMap_227; + public int KeyMap_228; + public int KeyMap_229; + public int KeyMap_230; + public int KeyMap_231; + public int KeyMap_232; + public int KeyMap_233; + public int KeyMap_234; + public int KeyMap_235; + public int KeyMap_236; + public int KeyMap_237; + public int KeyMap_238; + public int KeyMap_239; + public int KeyMap_240; + public int KeyMap_241; + public int KeyMap_242; + public int KeyMap_243; + public int KeyMap_244; + public int KeyMap_245; + public int KeyMap_246; + public int KeyMap_247; + public int KeyMap_248; + public int KeyMap_249; + public int KeyMap_250; + public int KeyMap_251; + public int KeyMap_252; + public int KeyMap_253; + public int KeyMap_254; + public int KeyMap_255; + public int KeyMap_256; + public int KeyMap_257; + public int KeyMap_258; + public int KeyMap_259; + public int KeyMap_260; + public int KeyMap_261; + public int KeyMap_262; + public int KeyMap_263; + public int KeyMap_264; + public int KeyMap_265; + public int KeyMap_266; + public int KeyMap_267; + public int KeyMap_268; + public int KeyMap_269; + public int KeyMap_270; + public int KeyMap_271; + public int KeyMap_272; + public int KeyMap_273; + public int KeyMap_274; + public int KeyMap_275; + public int KeyMap_276; + public int KeyMap_277; + public int KeyMap_278; + public int KeyMap_279; + public int KeyMap_280; + public int KeyMap_281; + public int KeyMap_282; + public int KeyMap_283; + public int KeyMap_284; + public int KeyMap_285; + public int KeyMap_286; + public int KeyMap_287; + public int KeyMap_288; + public int KeyMap_289; + public int KeyMap_290; + public int KeyMap_291; + public int KeyMap_292; + public int KeyMap_293; + public int KeyMap_294; + public int KeyMap_295; + public int KeyMap_296; + public int KeyMap_297; + public int KeyMap_298; + public int KeyMap_299; + public int KeyMap_300; + public int KeyMap_301; + public int KeyMap_302; + public int KeyMap_303; + public int KeyMap_304; + public int KeyMap_305; + public int KeyMap_306; + public int KeyMap_307; + public int KeyMap_308; + public int KeyMap_309; + public int KeyMap_310; + public int KeyMap_311; + public int KeyMap_312; + public int KeyMap_313; + public int KeyMap_314; + public int KeyMap_315; + public int KeyMap_316; + public int KeyMap_317; + public int KeyMap_318; + public int KeyMap_319; + public int KeyMap_320; + public int KeyMap_321; + public int KeyMap_322; + public int KeyMap_323; + public int KeyMap_324; + public int KeyMap_325; + public int KeyMap_326; + public int KeyMap_327; + public int KeyMap_328; + public int KeyMap_329; + public int KeyMap_330; + public int KeyMap_331; + public int KeyMap_332; + public int KeyMap_333; + public int KeyMap_334; + public int KeyMap_335; + public int KeyMap_336; + public int KeyMap_337; + public int KeyMap_338; + public int KeyMap_339; + public int KeyMap_340; + public int KeyMap_341; + public int KeyMap_342; + public int KeyMap_343; + public int KeyMap_344; + public int KeyMap_345; + public int KeyMap_346; + public int KeyMap_347; + public int KeyMap_348; + public int KeyMap_349; + public int KeyMap_350; + public int KeyMap_351; + public int KeyMap_352; + public int KeyMap_353; + public int KeyMap_354; + public int KeyMap_355; + public int KeyMap_356; + public int KeyMap_357; + public int KeyMap_358; + public int KeyMap_359; + public int KeyMap_360; + public int KeyMap_361; + public int KeyMap_362; + public int KeyMap_363; + public int KeyMap_364; + public int KeyMap_365; + public int KeyMap_366; + public int KeyMap_367; + public int KeyMap_368; + public int KeyMap_369; + public int KeyMap_370; + public int KeyMap_371; + public int KeyMap_372; + public int KeyMap_373; + public int KeyMap_374; + public int KeyMap_375; + public int KeyMap_376; + public int KeyMap_377; + public int KeyMap_378; + public int KeyMap_379; + public int KeyMap_380; + public int KeyMap_381; + public int KeyMap_382; + public int KeyMap_383; + public int KeyMap_384; + public int KeyMap_385; + public int KeyMap_386; + public int KeyMap_387; + public int KeyMap_388; + public int KeyMap_389; + public int KeyMap_390; + public int KeyMap_391; + public int KeyMap_392; + public int KeyMap_393; + public int KeyMap_394; + public int KeyMap_395; + public int KeyMap_396; + public int KeyMap_397; + public int KeyMap_398; + public int KeyMap_399; + public int KeyMap_400; + public int KeyMap_401; + public int KeyMap_402; + public int KeyMap_403; + public int KeyMap_404; + public int KeyMap_405; + public int KeyMap_406; + public int KeyMap_407; + public int KeyMap_408; + public int KeyMap_409; + public int KeyMap_410; + public int KeyMap_411; + public int KeyMap_412; + public int KeyMap_413; + public int KeyMap_414; + public int KeyMap_415; + public int KeyMap_416; + public int KeyMap_417; + public int KeyMap_418; + public int KeyMap_419; + public int KeyMap_420; + public int KeyMap_421; + public int KeyMap_422; + public int KeyMap_423; + public int KeyMap_424; + public int KeyMap_425; + public int KeyMap_426; + public int KeyMap_427; + public int KeyMap_428; + public int KeyMap_429; + public int KeyMap_430; + public int KeyMap_431; + public int KeyMap_432; + public int KeyMap_433; + public int KeyMap_434; + public int KeyMap_435; + public int KeyMap_436; + public int KeyMap_437; + public int KeyMap_438; + public int KeyMap_439; + public int KeyMap_440; + public int KeyMap_441; + public int KeyMap_442; + public int KeyMap_443; + public int KeyMap_444; + public int KeyMap_445; + public int KeyMap_446; + public int KeyMap_447; + public int KeyMap_448; + public int KeyMap_449; + public int KeyMap_450; + public int KeyMap_451; + public int KeyMap_452; + public int KeyMap_453; + public int KeyMap_454; + public int KeyMap_455; + public int KeyMap_456; + public int KeyMap_457; + public int KeyMap_458; + public int KeyMap_459; + public int KeyMap_460; + public int KeyMap_461; + public int KeyMap_462; + public int KeyMap_463; + public int KeyMap_464; + public int KeyMap_465; + public int KeyMap_466; + public int KeyMap_467; + public int KeyMap_468; + public int KeyMap_469; + public int KeyMap_470; + public int KeyMap_471; + public int KeyMap_472; + public int KeyMap_473; + public int KeyMap_474; + public int KeyMap_475; + public int KeyMap_476; + public int KeyMap_477; + public int KeyMap_478; + public int KeyMap_479; + public int KeyMap_480; + public int KeyMap_481; + public int KeyMap_482; + public int KeyMap_483; + public int KeyMap_484; + public int KeyMap_485; + public int KeyMap_486; + public int KeyMap_487; + public int KeyMap_488; + public int KeyMap_489; + public int KeyMap_490; + public int KeyMap_491; + public int KeyMap_492; + public int KeyMap_493; + public int KeyMap_494; + public int KeyMap_495; + public int KeyMap_496; + public int KeyMap_497; + public int KeyMap_498; + public int KeyMap_499; + public int KeyMap_500; + public int KeyMap_501; + public int KeyMap_502; + public int KeyMap_503; + public int KeyMap_504; + public int KeyMap_505; + public int KeyMap_506; + public int KeyMap_507; + public int KeyMap_508; + public int KeyMap_509; + public int KeyMap_510; + public int KeyMap_511; + public int KeyMap_512; + public int KeyMap_513; + public int KeyMap_514; + public int KeyMap_515; + public int KeyMap_516; + public int KeyMap_517; + public int KeyMap_518; + public int KeyMap_519; + public int KeyMap_520; + public int KeyMap_521; + public int KeyMap_522; + public int KeyMap_523; + public int KeyMap_524; + public int KeyMap_525; + public int KeyMap_526; + public int KeyMap_527; + public int KeyMap_528; + public int KeyMap_529; + public int KeyMap_530; + public int KeyMap_531; + public int KeyMap_532; + public int KeyMap_533; + public int KeyMap_534; + public int KeyMap_535; + public int KeyMap_536; + public int KeyMap_537; + public int KeyMap_538; + public int KeyMap_539; + public int KeyMap_540; + public int KeyMap_541; + public int KeyMap_542; + public int KeyMap_543; + public int KeyMap_544; + public int KeyMap_545; + public int KeyMap_546; + public int KeyMap_547; + public int KeyMap_548; + public int KeyMap_549; + public int KeyMap_550; + public int KeyMap_551; + public int KeyMap_552; + public int KeyMap_553; + public int KeyMap_554; + public int KeyMap_555; + public int KeyMap_556; + public int KeyMap_557; + public int KeyMap_558; + public int KeyMap_559; + public int KeyMap_560; + public int KeyMap_561; + public int KeyMap_562; + public int KeyMap_563; + public int KeyMap_564; + public int KeyMap_565; + public int KeyMap_566; + public int KeyMap_567; + public int KeyMap_568; + public int KeyMap_569; + public int KeyMap_570; + public int KeyMap_571; + public int KeyMap_572; + public int KeyMap_573; + public int KeyMap_574; + public int KeyMap_575; + public int KeyMap_576; + public int KeyMap_577; + public int KeyMap_578; + public int KeyMap_579; + public int KeyMap_580; + public int KeyMap_581; + public int KeyMap_582; + public int KeyMap_583; + public int KeyMap_584; + public int KeyMap_585; + public int KeyMap_586; + public int KeyMap_587; + public int KeyMap_588; + public int KeyMap_589; + public int KeyMap_590; + public int KeyMap_591; + public int KeyMap_592; + public int KeyMap_593; + public int KeyMap_594; + public int KeyMap_595; + public int KeyMap_596; + public int KeyMap_597; + public int KeyMap_598; + public int KeyMap_599; + public int KeyMap_600; + public int KeyMap_601; + public int KeyMap_602; + public int KeyMap_603; + public int KeyMap_604; + public int KeyMap_605; + public int KeyMap_606; + public int KeyMap_607; + public int KeyMap_608; + public int KeyMap_609; + public int KeyMap_610; + public int KeyMap_611; + public int KeyMap_612; + public int KeyMap_613; + public int KeyMap_614; + public int KeyMap_615; + public int KeyMap_616; + public int KeyMap_617; + public int KeyMap_618; + public int KeyMap_619; + public int KeyMap_620; + public int KeyMap_621; + public int KeyMap_622; + public int KeyMap_623; + public int KeyMap_624; + public int KeyMap_625; + public int KeyMap_626; + public int KeyMap_627; + public int KeyMap_628; + public int KeyMap_629; + public int KeyMap_630; + public int KeyMap_631; + public int KeyMap_632; + public int KeyMap_633; + public int KeyMap_634; + public int KeyMap_635; + public int KeyMap_636; + public int KeyMap_637; + public int KeyMap_638; + public int KeyMap_639; + public int KeyMap_640; + public int KeyMap_641; + public int KeyMap_642; + public int KeyMap_643; + public int KeyMap_644; + public int KeyMap_645; + public int KeyMap_646; + public int KeyMap_647; + public int KeyMap_648; + public int KeyMap_649; + public int KeyMap_650; + public int KeyMap_651; + public int KeyMap_652; + public int KeyMap_653; + public int KeyMap_654; + public int KeyMap_655; + public int KeyMap_656; + public int KeyMap_657; + public int KeyMap_658; + public int KeyMap_659; + public int KeyMap_660; + public int KeyMap_661; + public int KeyMap_662; + public int KeyMap_663; + public int KeyMap_664; + public int KeyMap_665; + + /// + /// To be documented. + /// + public bool KeysDown_0; + public bool KeysDown_1; + public bool KeysDown_2; + public bool KeysDown_3; + public bool KeysDown_4; + public bool KeysDown_5; + public bool KeysDown_6; + public bool KeysDown_7; + public bool KeysDown_8; + public bool KeysDown_9; + public bool KeysDown_10; + public bool KeysDown_11; + public bool KeysDown_12; + public bool KeysDown_13; + public bool KeysDown_14; + public bool KeysDown_15; + public bool KeysDown_16; + public bool KeysDown_17; + public bool KeysDown_18; + public bool KeysDown_19; + public bool KeysDown_20; + public bool KeysDown_21; + public bool KeysDown_22; + public bool KeysDown_23; + public bool KeysDown_24; + public bool KeysDown_25; + public bool KeysDown_26; + public bool KeysDown_27; + public bool KeysDown_28; + public bool KeysDown_29; + public bool KeysDown_30; + public bool KeysDown_31; + public bool KeysDown_32; + public bool KeysDown_33; + public bool KeysDown_34; + public bool KeysDown_35; + public bool KeysDown_36; + public bool KeysDown_37; + public bool KeysDown_38; + public bool KeysDown_39; + public bool KeysDown_40; + public bool KeysDown_41; + public bool KeysDown_42; + public bool KeysDown_43; + public bool KeysDown_44; + public bool KeysDown_45; + public bool KeysDown_46; + public bool KeysDown_47; + public bool KeysDown_48; + public bool KeysDown_49; + public bool KeysDown_50; + public bool KeysDown_51; + public bool KeysDown_52; + public bool KeysDown_53; + public bool KeysDown_54; + public bool KeysDown_55; + public bool KeysDown_56; + public bool KeysDown_57; + public bool KeysDown_58; + public bool KeysDown_59; + public bool KeysDown_60; + public bool KeysDown_61; + public bool KeysDown_62; + public bool KeysDown_63; + public bool KeysDown_64; + public bool KeysDown_65; + public bool KeysDown_66; + public bool KeysDown_67; + public bool KeysDown_68; + public bool KeysDown_69; + public bool KeysDown_70; + public bool KeysDown_71; + public bool KeysDown_72; + public bool KeysDown_73; + public bool KeysDown_74; + public bool KeysDown_75; + public bool KeysDown_76; + public bool KeysDown_77; + public bool KeysDown_78; + public bool KeysDown_79; + public bool KeysDown_80; + public bool KeysDown_81; + public bool KeysDown_82; + public bool KeysDown_83; + public bool KeysDown_84; + public bool KeysDown_85; + public bool KeysDown_86; + public bool KeysDown_87; + public bool KeysDown_88; + public bool KeysDown_89; + public bool KeysDown_90; + public bool KeysDown_91; + public bool KeysDown_92; + public bool KeysDown_93; + public bool KeysDown_94; + public bool KeysDown_95; + public bool KeysDown_96; + public bool KeysDown_97; + public bool KeysDown_98; + public bool KeysDown_99; + public bool KeysDown_100; + public bool KeysDown_101; + public bool KeysDown_102; + public bool KeysDown_103; + public bool KeysDown_104; + public bool KeysDown_105; + public bool KeysDown_106; + public bool KeysDown_107; + public bool KeysDown_108; + public bool KeysDown_109; + public bool KeysDown_110; + public bool KeysDown_111; + public bool KeysDown_112; + public bool KeysDown_113; + public bool KeysDown_114; + public bool KeysDown_115; + public bool KeysDown_116; + public bool KeysDown_117; + public bool KeysDown_118; + public bool KeysDown_119; + public bool KeysDown_120; + public bool KeysDown_121; + public bool KeysDown_122; + public bool KeysDown_123; + public bool KeysDown_124; + public bool KeysDown_125; + public bool KeysDown_126; + public bool KeysDown_127; + public bool KeysDown_128; + public bool KeysDown_129; + public bool KeysDown_130; + public bool KeysDown_131; + public bool KeysDown_132; + public bool KeysDown_133; + public bool KeysDown_134; + public bool KeysDown_135; + public bool KeysDown_136; + public bool KeysDown_137; + public bool KeysDown_138; + public bool KeysDown_139; + public bool KeysDown_140; + public bool KeysDown_141; + public bool KeysDown_142; + public bool KeysDown_143; + public bool KeysDown_144; + public bool KeysDown_145; + public bool KeysDown_146; + public bool KeysDown_147; + public bool KeysDown_148; + public bool KeysDown_149; + public bool KeysDown_150; + public bool KeysDown_151; + public bool KeysDown_152; + public bool KeysDown_153; + public bool KeysDown_154; + public bool KeysDown_155; + public bool KeysDown_156; + public bool KeysDown_157; + public bool KeysDown_158; + public bool KeysDown_159; + public bool KeysDown_160; + public bool KeysDown_161; + public bool KeysDown_162; + public bool KeysDown_163; + public bool KeysDown_164; + public bool KeysDown_165; + public bool KeysDown_166; + public bool KeysDown_167; + public bool KeysDown_168; + public bool KeysDown_169; + public bool KeysDown_170; + public bool KeysDown_171; + public bool KeysDown_172; + public bool KeysDown_173; + public bool KeysDown_174; + public bool KeysDown_175; + public bool KeysDown_176; + public bool KeysDown_177; + public bool KeysDown_178; + public bool KeysDown_179; + public bool KeysDown_180; + public bool KeysDown_181; + public bool KeysDown_182; + public bool KeysDown_183; + public bool KeysDown_184; + public bool KeysDown_185; + public bool KeysDown_186; + public bool KeysDown_187; + public bool KeysDown_188; + public bool KeysDown_189; + public bool KeysDown_190; + public bool KeysDown_191; + public bool KeysDown_192; + public bool KeysDown_193; + public bool KeysDown_194; + public bool KeysDown_195; + public bool KeysDown_196; + public bool KeysDown_197; + public bool KeysDown_198; + public bool KeysDown_199; + public bool KeysDown_200; + public bool KeysDown_201; + public bool KeysDown_202; + public bool KeysDown_203; + public bool KeysDown_204; + public bool KeysDown_205; + public bool KeysDown_206; + public bool KeysDown_207; + public bool KeysDown_208; + public bool KeysDown_209; + public bool KeysDown_210; + public bool KeysDown_211; + public bool KeysDown_212; + public bool KeysDown_213; + public bool KeysDown_214; + public bool KeysDown_215; + public bool KeysDown_216; + public bool KeysDown_217; + public bool KeysDown_218; + public bool KeysDown_219; + public bool KeysDown_220; + public bool KeysDown_221; + public bool KeysDown_222; + public bool KeysDown_223; + public bool KeysDown_224; + public bool KeysDown_225; + public bool KeysDown_226; + public bool KeysDown_227; + public bool KeysDown_228; + public bool KeysDown_229; + public bool KeysDown_230; + public bool KeysDown_231; + public bool KeysDown_232; + public bool KeysDown_233; + public bool KeysDown_234; + public bool KeysDown_235; + public bool KeysDown_236; + public bool KeysDown_237; + public bool KeysDown_238; + public bool KeysDown_239; + public bool KeysDown_240; + public bool KeysDown_241; + public bool KeysDown_242; + public bool KeysDown_243; + public bool KeysDown_244; + public bool KeysDown_245; + public bool KeysDown_246; + public bool KeysDown_247; + public bool KeysDown_248; + public bool KeysDown_249; + public bool KeysDown_250; + public bool KeysDown_251; + public bool KeysDown_252; + public bool KeysDown_253; + public bool KeysDown_254; + public bool KeysDown_255; + public bool KeysDown_256; + public bool KeysDown_257; + public bool KeysDown_258; + public bool KeysDown_259; + public bool KeysDown_260; + public bool KeysDown_261; + public bool KeysDown_262; + public bool KeysDown_263; + public bool KeysDown_264; + public bool KeysDown_265; + public bool KeysDown_266; + public bool KeysDown_267; + public bool KeysDown_268; + public bool KeysDown_269; + public bool KeysDown_270; + public bool KeysDown_271; + public bool KeysDown_272; + public bool KeysDown_273; + public bool KeysDown_274; + public bool KeysDown_275; + public bool KeysDown_276; + public bool KeysDown_277; + public bool KeysDown_278; + public bool KeysDown_279; + public bool KeysDown_280; + public bool KeysDown_281; + public bool KeysDown_282; + public bool KeysDown_283; + public bool KeysDown_284; + public bool KeysDown_285; + public bool KeysDown_286; + public bool KeysDown_287; + public bool KeysDown_288; + public bool KeysDown_289; + public bool KeysDown_290; + public bool KeysDown_291; + public bool KeysDown_292; + public bool KeysDown_293; + public bool KeysDown_294; + public bool KeysDown_295; + public bool KeysDown_296; + public bool KeysDown_297; + public bool KeysDown_298; + public bool KeysDown_299; + public bool KeysDown_300; + public bool KeysDown_301; + public bool KeysDown_302; + public bool KeysDown_303; + public bool KeysDown_304; + public bool KeysDown_305; + public bool KeysDown_306; + public bool KeysDown_307; + public bool KeysDown_308; + public bool KeysDown_309; + public bool KeysDown_310; + public bool KeysDown_311; + public bool KeysDown_312; + public bool KeysDown_313; + public bool KeysDown_314; + public bool KeysDown_315; + public bool KeysDown_316; + public bool KeysDown_317; + public bool KeysDown_318; + public bool KeysDown_319; + public bool KeysDown_320; + public bool KeysDown_321; + public bool KeysDown_322; + public bool KeysDown_323; + public bool KeysDown_324; + public bool KeysDown_325; + public bool KeysDown_326; + public bool KeysDown_327; + public bool KeysDown_328; + public bool KeysDown_329; + public bool KeysDown_330; + public bool KeysDown_331; + public bool KeysDown_332; + public bool KeysDown_333; + public bool KeysDown_334; + public bool KeysDown_335; + public bool KeysDown_336; + public bool KeysDown_337; + public bool KeysDown_338; + public bool KeysDown_339; + public bool KeysDown_340; + public bool KeysDown_341; + public bool KeysDown_342; + public bool KeysDown_343; + public bool KeysDown_344; + public bool KeysDown_345; + public bool KeysDown_346; + public bool KeysDown_347; + public bool KeysDown_348; + public bool KeysDown_349; + public bool KeysDown_350; + public bool KeysDown_351; + public bool KeysDown_352; + public bool KeysDown_353; + public bool KeysDown_354; + public bool KeysDown_355; + public bool KeysDown_356; + public bool KeysDown_357; + public bool KeysDown_358; + public bool KeysDown_359; + public bool KeysDown_360; + public bool KeysDown_361; + public bool KeysDown_362; + public bool KeysDown_363; + public bool KeysDown_364; + public bool KeysDown_365; + public bool KeysDown_366; + public bool KeysDown_367; + public bool KeysDown_368; + public bool KeysDown_369; + public bool KeysDown_370; + public bool KeysDown_371; + public bool KeysDown_372; + public bool KeysDown_373; + public bool KeysDown_374; + public bool KeysDown_375; + public bool KeysDown_376; + public bool KeysDown_377; + public bool KeysDown_378; + public bool KeysDown_379; + public bool KeysDown_380; + public bool KeysDown_381; + public bool KeysDown_382; + public bool KeysDown_383; + public bool KeysDown_384; + public bool KeysDown_385; + public bool KeysDown_386; + public bool KeysDown_387; + public bool KeysDown_388; + public bool KeysDown_389; + public bool KeysDown_390; + public bool KeysDown_391; + public bool KeysDown_392; + public bool KeysDown_393; + public bool KeysDown_394; + public bool KeysDown_395; + public bool KeysDown_396; + public bool KeysDown_397; + public bool KeysDown_398; + public bool KeysDown_399; + public bool KeysDown_400; + public bool KeysDown_401; + public bool KeysDown_402; + public bool KeysDown_403; + public bool KeysDown_404; + public bool KeysDown_405; + public bool KeysDown_406; + public bool KeysDown_407; + public bool KeysDown_408; + public bool KeysDown_409; + public bool KeysDown_410; + public bool KeysDown_411; + public bool KeysDown_412; + public bool KeysDown_413; + public bool KeysDown_414; + public bool KeysDown_415; + public bool KeysDown_416; + public bool KeysDown_417; + public bool KeysDown_418; + public bool KeysDown_419; + public bool KeysDown_420; + public bool KeysDown_421; + public bool KeysDown_422; + public bool KeysDown_423; + public bool KeysDown_424; + public bool KeysDown_425; + public bool KeysDown_426; + public bool KeysDown_427; + public bool KeysDown_428; + public bool KeysDown_429; + public bool KeysDown_430; + public bool KeysDown_431; + public bool KeysDown_432; + public bool KeysDown_433; + public bool KeysDown_434; + public bool KeysDown_435; + public bool KeysDown_436; + public bool KeysDown_437; + public bool KeysDown_438; + public bool KeysDown_439; + public bool KeysDown_440; + public bool KeysDown_441; + public bool KeysDown_442; + public bool KeysDown_443; + public bool KeysDown_444; + public bool KeysDown_445; + public bool KeysDown_446; + public bool KeysDown_447; + public bool KeysDown_448; + public bool KeysDown_449; + public bool KeysDown_450; + public bool KeysDown_451; + public bool KeysDown_452; + public bool KeysDown_453; + public bool KeysDown_454; + public bool KeysDown_455; + public bool KeysDown_456; + public bool KeysDown_457; + public bool KeysDown_458; + public bool KeysDown_459; + public bool KeysDown_460; + public bool KeysDown_461; + public bool KeysDown_462; + public bool KeysDown_463; + public bool KeysDown_464; + public bool KeysDown_465; + public bool KeysDown_466; + public bool KeysDown_467; + public bool KeysDown_468; + public bool KeysDown_469; + public bool KeysDown_470; + public bool KeysDown_471; + public bool KeysDown_472; + public bool KeysDown_473; + public bool KeysDown_474; + public bool KeysDown_475; + public bool KeysDown_476; + public bool KeysDown_477; + public bool KeysDown_478; + public bool KeysDown_479; + public bool KeysDown_480; + public bool KeysDown_481; + public bool KeysDown_482; + public bool KeysDown_483; + public bool KeysDown_484; + public bool KeysDown_485; + public bool KeysDown_486; + public bool KeysDown_487; + public bool KeysDown_488; + public bool KeysDown_489; + public bool KeysDown_490; + public bool KeysDown_491; + public bool KeysDown_492; + public bool KeysDown_493; + public bool KeysDown_494; + public bool KeysDown_495; + public bool KeysDown_496; + public bool KeysDown_497; + public bool KeysDown_498; + public bool KeysDown_499; + public bool KeysDown_500; + public bool KeysDown_501; + public bool KeysDown_502; + public bool KeysDown_503; + public bool KeysDown_504; + public bool KeysDown_505; + public bool KeysDown_506; + public bool KeysDown_507; + public bool KeysDown_508; + public bool KeysDown_509; + public bool KeysDown_510; + public bool KeysDown_511; + public bool KeysDown_512; + public bool KeysDown_513; + public bool KeysDown_514; + public bool KeysDown_515; + public bool KeysDown_516; + public bool KeysDown_517; + public bool KeysDown_518; + public bool KeysDown_519; + public bool KeysDown_520; + public bool KeysDown_521; + public bool KeysDown_522; + public bool KeysDown_523; + public bool KeysDown_524; + public bool KeysDown_525; + public bool KeysDown_526; + public bool KeysDown_527; + public bool KeysDown_528; + public bool KeysDown_529; + public bool KeysDown_530; + public bool KeysDown_531; + public bool KeysDown_532; + public bool KeysDown_533; + public bool KeysDown_534; + public bool KeysDown_535; + public bool KeysDown_536; + public bool KeysDown_537; + public bool KeysDown_538; + public bool KeysDown_539; + public bool KeysDown_540; + public bool KeysDown_541; + public bool KeysDown_542; + public bool KeysDown_543; + public bool KeysDown_544; + public bool KeysDown_545; + public bool KeysDown_546; + public bool KeysDown_547; + public bool KeysDown_548; + public bool KeysDown_549; + public bool KeysDown_550; + public bool KeysDown_551; + public bool KeysDown_552; + public bool KeysDown_553; + public bool KeysDown_554; + public bool KeysDown_555; + public bool KeysDown_556; + public bool KeysDown_557; + public bool KeysDown_558; + public bool KeysDown_559; + public bool KeysDown_560; + public bool KeysDown_561; + public bool KeysDown_562; + public bool KeysDown_563; + public bool KeysDown_564; + public bool KeysDown_565; + public bool KeysDown_566; + public bool KeysDown_567; + public bool KeysDown_568; + public bool KeysDown_569; + public bool KeysDown_570; + public bool KeysDown_571; + public bool KeysDown_572; + public bool KeysDown_573; + public bool KeysDown_574; + public bool KeysDown_575; + public bool KeysDown_576; + public bool KeysDown_577; + public bool KeysDown_578; + public bool KeysDown_579; + public bool KeysDown_580; + public bool KeysDown_581; + public bool KeysDown_582; + public bool KeysDown_583; + public bool KeysDown_584; + public bool KeysDown_585; + public bool KeysDown_586; + public bool KeysDown_587; + public bool KeysDown_588; + public bool KeysDown_589; + public bool KeysDown_590; + public bool KeysDown_591; + public bool KeysDown_592; + public bool KeysDown_593; + public bool KeysDown_594; + public bool KeysDown_595; + public bool KeysDown_596; + public bool KeysDown_597; + public bool KeysDown_598; + public bool KeysDown_599; + public bool KeysDown_600; + public bool KeysDown_601; + public bool KeysDown_602; + public bool KeysDown_603; + public bool KeysDown_604; + public bool KeysDown_605; + public bool KeysDown_606; + public bool KeysDown_607; + public bool KeysDown_608; + public bool KeysDown_609; + public bool KeysDown_610; + public bool KeysDown_611; + public bool KeysDown_612; + public bool KeysDown_613; + public bool KeysDown_614; + public bool KeysDown_615; + public bool KeysDown_616; + public bool KeysDown_617; + public bool KeysDown_618; + public bool KeysDown_619; + public bool KeysDown_620; + public bool KeysDown_621; + public bool KeysDown_622; + public bool KeysDown_623; + public bool KeysDown_624; + public bool KeysDown_625; + public bool KeysDown_626; + public bool KeysDown_627; + public bool KeysDown_628; + public bool KeysDown_629; + public bool KeysDown_630; + public bool KeysDown_631; + public bool KeysDown_632; + public bool KeysDown_633; + public bool KeysDown_634; + public bool KeysDown_635; + public bool KeysDown_636; + public bool KeysDown_637; + public bool KeysDown_638; + public bool KeysDown_639; + public bool KeysDown_640; + public bool KeysDown_641; + public bool KeysDown_642; + public bool KeysDown_643; + public bool KeysDown_644; + public bool KeysDown_645; + public bool KeysDown_646; + public bool KeysDown_647; + public bool KeysDown_648; + public bool KeysDown_649; + public bool KeysDown_650; + public bool KeysDown_651; + public bool KeysDown_652; + public bool KeysDown_653; + public bool KeysDown_654; + public bool KeysDown_655; + public bool KeysDown_656; + public bool KeysDown_657; + public bool KeysDown_658; + public bool KeysDown_659; + public bool KeysDown_660; + public bool KeysDown_661; + public bool KeysDown_662; + public bool KeysDown_663; + public bool KeysDown_664; + public bool KeysDown_665; + + /// + /// To be documented. + /// + public float NavInputs_0; + public float NavInputs_1; + public float NavInputs_2; + public float NavInputs_3; + public float NavInputs_4; + public float NavInputs_5; + public float NavInputs_6; + public float NavInputs_7; + public float NavInputs_8; + public float NavInputs_9; + public float NavInputs_10; + public float NavInputs_11; + public float NavInputs_12; + public float NavInputs_13; + public float NavInputs_14; + public float NavInputs_15; + + /// + /// To be documented. + /// + public unsafe void* UnusedPadding; + + /// + /// To be documented. + /// + public unsafe ImGuiContext* Ctx; + + /// + /// To be documented. + /// + public Vector2 MousePos; + + /// + /// To be documented. + /// + public bool MouseDown_0; + public bool MouseDown_1; + public bool MouseDown_2; + public bool MouseDown_3; + public bool MouseDown_4; + + /// + /// To be documented. + /// + public float MouseWheel; + + /// + /// To be documented. + /// + public float MouseWheelH; + + /// + /// To be documented. + /// + public ImGuiMouseSource MouseSource; + + /// + /// To be documented. + /// + public uint MouseHoveredViewport; + + /// + /// To be documented. + /// + public byte KeyCtrl; + + /// + /// To be documented. + /// + public byte KeyShift; + + /// + /// To be documented. + /// + public byte KeyAlt; + + /// + /// To be documented. + /// + public byte KeySuper; + + /// + /// To be documented. + /// + public int KeyMods; + + /// + /// To be documented. + /// + public ImGuiKeyData KeysData_0; + public ImGuiKeyData KeysData_1; + public ImGuiKeyData KeysData_2; + public ImGuiKeyData KeysData_3; + public ImGuiKeyData KeysData_4; + public ImGuiKeyData KeysData_5; + public ImGuiKeyData KeysData_6; + public ImGuiKeyData KeysData_7; + public ImGuiKeyData KeysData_8; + public ImGuiKeyData KeysData_9; + public ImGuiKeyData KeysData_10; + public ImGuiKeyData KeysData_11; + public ImGuiKeyData KeysData_12; + public ImGuiKeyData KeysData_13; + public ImGuiKeyData KeysData_14; + public ImGuiKeyData KeysData_15; + public ImGuiKeyData KeysData_16; + public ImGuiKeyData KeysData_17; + public ImGuiKeyData KeysData_18; + public ImGuiKeyData KeysData_19; + public ImGuiKeyData KeysData_20; + public ImGuiKeyData KeysData_21; + public ImGuiKeyData KeysData_22; + public ImGuiKeyData KeysData_23; + public ImGuiKeyData KeysData_24; + public ImGuiKeyData KeysData_25; + public ImGuiKeyData KeysData_26; + public ImGuiKeyData KeysData_27; + public ImGuiKeyData KeysData_28; + public ImGuiKeyData KeysData_29; + public ImGuiKeyData KeysData_30; + public ImGuiKeyData KeysData_31; + public ImGuiKeyData KeysData_32; + public ImGuiKeyData KeysData_33; + public ImGuiKeyData KeysData_34; + public ImGuiKeyData KeysData_35; + public ImGuiKeyData KeysData_36; + public ImGuiKeyData KeysData_37; + public ImGuiKeyData KeysData_38; + public ImGuiKeyData KeysData_39; + public ImGuiKeyData KeysData_40; + public ImGuiKeyData KeysData_41; + public ImGuiKeyData KeysData_42; + public ImGuiKeyData KeysData_43; + public ImGuiKeyData KeysData_44; + public ImGuiKeyData KeysData_45; + public ImGuiKeyData KeysData_46; + public ImGuiKeyData KeysData_47; + public ImGuiKeyData KeysData_48; + public ImGuiKeyData KeysData_49; + public ImGuiKeyData KeysData_50; + public ImGuiKeyData KeysData_51; + public ImGuiKeyData KeysData_52; + public ImGuiKeyData KeysData_53; + public ImGuiKeyData KeysData_54; + public ImGuiKeyData KeysData_55; + public ImGuiKeyData KeysData_56; + public ImGuiKeyData KeysData_57; + public ImGuiKeyData KeysData_58; + public ImGuiKeyData KeysData_59; + public ImGuiKeyData KeysData_60; + public ImGuiKeyData KeysData_61; + public ImGuiKeyData KeysData_62; + public ImGuiKeyData KeysData_63; + public ImGuiKeyData KeysData_64; + public ImGuiKeyData KeysData_65; + public ImGuiKeyData KeysData_66; + public ImGuiKeyData KeysData_67; + public ImGuiKeyData KeysData_68; + public ImGuiKeyData KeysData_69; + public ImGuiKeyData KeysData_70; + public ImGuiKeyData KeysData_71; + public ImGuiKeyData KeysData_72; + public ImGuiKeyData KeysData_73; + public ImGuiKeyData KeysData_74; + public ImGuiKeyData KeysData_75; + public ImGuiKeyData KeysData_76; + public ImGuiKeyData KeysData_77; + public ImGuiKeyData KeysData_78; + public ImGuiKeyData KeysData_79; + public ImGuiKeyData KeysData_80; + public ImGuiKeyData KeysData_81; + public ImGuiKeyData KeysData_82; + public ImGuiKeyData KeysData_83; + public ImGuiKeyData KeysData_84; + public ImGuiKeyData KeysData_85; + public ImGuiKeyData KeysData_86; + public ImGuiKeyData KeysData_87; + public ImGuiKeyData KeysData_88; + public ImGuiKeyData KeysData_89; + public ImGuiKeyData KeysData_90; + public ImGuiKeyData KeysData_91; + public ImGuiKeyData KeysData_92; + public ImGuiKeyData KeysData_93; + public ImGuiKeyData KeysData_94; + public ImGuiKeyData KeysData_95; + public ImGuiKeyData KeysData_96; + public ImGuiKeyData KeysData_97; + public ImGuiKeyData KeysData_98; + public ImGuiKeyData KeysData_99; + public ImGuiKeyData KeysData_100; + public ImGuiKeyData KeysData_101; + public ImGuiKeyData KeysData_102; + public ImGuiKeyData KeysData_103; + public ImGuiKeyData KeysData_104; + public ImGuiKeyData KeysData_105; + public ImGuiKeyData KeysData_106; + public ImGuiKeyData KeysData_107; + public ImGuiKeyData KeysData_108; + public ImGuiKeyData KeysData_109; + public ImGuiKeyData KeysData_110; + public ImGuiKeyData KeysData_111; + public ImGuiKeyData KeysData_112; + public ImGuiKeyData KeysData_113; + public ImGuiKeyData KeysData_114; + public ImGuiKeyData KeysData_115; + public ImGuiKeyData KeysData_116; + public ImGuiKeyData KeysData_117; + public ImGuiKeyData KeysData_118; + public ImGuiKeyData KeysData_119; + public ImGuiKeyData KeysData_120; + public ImGuiKeyData KeysData_121; + public ImGuiKeyData KeysData_122; + public ImGuiKeyData KeysData_123; + public ImGuiKeyData KeysData_124; + public ImGuiKeyData KeysData_125; + public ImGuiKeyData KeysData_126; + public ImGuiKeyData KeysData_127; + public ImGuiKeyData KeysData_128; + public ImGuiKeyData KeysData_129; + public ImGuiKeyData KeysData_130; + public ImGuiKeyData KeysData_131; + public ImGuiKeyData KeysData_132; + public ImGuiKeyData KeysData_133; + public ImGuiKeyData KeysData_134; + public ImGuiKeyData KeysData_135; + public ImGuiKeyData KeysData_136; + public ImGuiKeyData KeysData_137; + public ImGuiKeyData KeysData_138; + public ImGuiKeyData KeysData_139; + public ImGuiKeyData KeysData_140; + public ImGuiKeyData KeysData_141; + public ImGuiKeyData KeysData_142; + public ImGuiKeyData KeysData_143; + public ImGuiKeyData KeysData_144; + public ImGuiKeyData KeysData_145; + public ImGuiKeyData KeysData_146; + public ImGuiKeyData KeysData_147; + public ImGuiKeyData KeysData_148; + public ImGuiKeyData KeysData_149; + public ImGuiKeyData KeysData_150; + public ImGuiKeyData KeysData_151; + public ImGuiKeyData KeysData_152; + public ImGuiKeyData KeysData_153; + public ImGuiKeyData KeysData_154; + public ImGuiKeyData KeysData_155; + public ImGuiKeyData KeysData_156; + public ImGuiKeyData KeysData_157; + public ImGuiKeyData KeysData_158; + public ImGuiKeyData KeysData_159; + public ImGuiKeyData KeysData_160; + public ImGuiKeyData KeysData_161; + public ImGuiKeyData KeysData_162; + public ImGuiKeyData KeysData_163; + public ImGuiKeyData KeysData_164; + public ImGuiKeyData KeysData_165; + public ImGuiKeyData KeysData_166; + public ImGuiKeyData KeysData_167; + public ImGuiKeyData KeysData_168; + public ImGuiKeyData KeysData_169; + public ImGuiKeyData KeysData_170; + public ImGuiKeyData KeysData_171; + public ImGuiKeyData KeysData_172; + public ImGuiKeyData KeysData_173; + public ImGuiKeyData KeysData_174; + public ImGuiKeyData KeysData_175; + public ImGuiKeyData KeysData_176; + public ImGuiKeyData KeysData_177; + public ImGuiKeyData KeysData_178; + public ImGuiKeyData KeysData_179; + public ImGuiKeyData KeysData_180; + public ImGuiKeyData KeysData_181; + public ImGuiKeyData KeysData_182; + public ImGuiKeyData KeysData_183; + public ImGuiKeyData KeysData_184; + public ImGuiKeyData KeysData_185; + public ImGuiKeyData KeysData_186; + public ImGuiKeyData KeysData_187; + public ImGuiKeyData KeysData_188; + public ImGuiKeyData KeysData_189; + public ImGuiKeyData KeysData_190; + public ImGuiKeyData KeysData_191; + public ImGuiKeyData KeysData_192; + public ImGuiKeyData KeysData_193; + public ImGuiKeyData KeysData_194; + public ImGuiKeyData KeysData_195; + public ImGuiKeyData KeysData_196; + public ImGuiKeyData KeysData_197; + public ImGuiKeyData KeysData_198; + public ImGuiKeyData KeysData_199; + public ImGuiKeyData KeysData_200; + public ImGuiKeyData KeysData_201; + public ImGuiKeyData KeysData_202; + public ImGuiKeyData KeysData_203; + public ImGuiKeyData KeysData_204; + public ImGuiKeyData KeysData_205; + public ImGuiKeyData KeysData_206; + public ImGuiKeyData KeysData_207; + public ImGuiKeyData KeysData_208; + public ImGuiKeyData KeysData_209; + public ImGuiKeyData KeysData_210; + public ImGuiKeyData KeysData_211; + public ImGuiKeyData KeysData_212; + public ImGuiKeyData KeysData_213; + public ImGuiKeyData KeysData_214; + public ImGuiKeyData KeysData_215; + public ImGuiKeyData KeysData_216; + public ImGuiKeyData KeysData_217; + public ImGuiKeyData KeysData_218; + public ImGuiKeyData KeysData_219; + public ImGuiKeyData KeysData_220; + public ImGuiKeyData KeysData_221; + public ImGuiKeyData KeysData_222; + public ImGuiKeyData KeysData_223; + public ImGuiKeyData KeysData_224; + public ImGuiKeyData KeysData_225; + public ImGuiKeyData KeysData_226; + public ImGuiKeyData KeysData_227; + public ImGuiKeyData KeysData_228; + public ImGuiKeyData KeysData_229; + public ImGuiKeyData KeysData_230; + public ImGuiKeyData KeysData_231; + public ImGuiKeyData KeysData_232; + public ImGuiKeyData KeysData_233; + public ImGuiKeyData KeysData_234; + public ImGuiKeyData KeysData_235; + public ImGuiKeyData KeysData_236; + public ImGuiKeyData KeysData_237; + public ImGuiKeyData KeysData_238; + public ImGuiKeyData KeysData_239; + public ImGuiKeyData KeysData_240; + public ImGuiKeyData KeysData_241; + public ImGuiKeyData KeysData_242; + public ImGuiKeyData KeysData_243; + public ImGuiKeyData KeysData_244; + public ImGuiKeyData KeysData_245; + public ImGuiKeyData KeysData_246; + public ImGuiKeyData KeysData_247; + public ImGuiKeyData KeysData_248; + public ImGuiKeyData KeysData_249; + public ImGuiKeyData KeysData_250; + public ImGuiKeyData KeysData_251; + public ImGuiKeyData KeysData_252; + public ImGuiKeyData KeysData_253; + public ImGuiKeyData KeysData_254; + public ImGuiKeyData KeysData_255; + public ImGuiKeyData KeysData_256; + public ImGuiKeyData KeysData_257; + public ImGuiKeyData KeysData_258; + public ImGuiKeyData KeysData_259; + public ImGuiKeyData KeysData_260; + public ImGuiKeyData KeysData_261; + public ImGuiKeyData KeysData_262; + public ImGuiKeyData KeysData_263; + public ImGuiKeyData KeysData_264; + public ImGuiKeyData KeysData_265; + public ImGuiKeyData KeysData_266; + public ImGuiKeyData KeysData_267; + public ImGuiKeyData KeysData_268; + public ImGuiKeyData KeysData_269; + public ImGuiKeyData KeysData_270; + public ImGuiKeyData KeysData_271; + public ImGuiKeyData KeysData_272; + public ImGuiKeyData KeysData_273; + public ImGuiKeyData KeysData_274; + public ImGuiKeyData KeysData_275; + public ImGuiKeyData KeysData_276; + public ImGuiKeyData KeysData_277; + public ImGuiKeyData KeysData_278; + public ImGuiKeyData KeysData_279; + public ImGuiKeyData KeysData_280; + public ImGuiKeyData KeysData_281; + public ImGuiKeyData KeysData_282; + public ImGuiKeyData KeysData_283; + public ImGuiKeyData KeysData_284; + public ImGuiKeyData KeysData_285; + public ImGuiKeyData KeysData_286; + public ImGuiKeyData KeysData_287; + public ImGuiKeyData KeysData_288; + public ImGuiKeyData KeysData_289; + public ImGuiKeyData KeysData_290; + public ImGuiKeyData KeysData_291; + public ImGuiKeyData KeysData_292; + public ImGuiKeyData KeysData_293; + public ImGuiKeyData KeysData_294; + public ImGuiKeyData KeysData_295; + public ImGuiKeyData KeysData_296; + public ImGuiKeyData KeysData_297; + public ImGuiKeyData KeysData_298; + public ImGuiKeyData KeysData_299; + public ImGuiKeyData KeysData_300; + public ImGuiKeyData KeysData_301; + public ImGuiKeyData KeysData_302; + public ImGuiKeyData KeysData_303; + public ImGuiKeyData KeysData_304; + public ImGuiKeyData KeysData_305; + public ImGuiKeyData KeysData_306; + public ImGuiKeyData KeysData_307; + public ImGuiKeyData KeysData_308; + public ImGuiKeyData KeysData_309; + public ImGuiKeyData KeysData_310; + public ImGuiKeyData KeysData_311; + public ImGuiKeyData KeysData_312; + public ImGuiKeyData KeysData_313; + public ImGuiKeyData KeysData_314; + public ImGuiKeyData KeysData_315; + public ImGuiKeyData KeysData_316; + public ImGuiKeyData KeysData_317; + public ImGuiKeyData KeysData_318; + public ImGuiKeyData KeysData_319; + public ImGuiKeyData KeysData_320; + public ImGuiKeyData KeysData_321; + public ImGuiKeyData KeysData_322; + public ImGuiKeyData KeysData_323; + public ImGuiKeyData KeysData_324; + public ImGuiKeyData KeysData_325; + public ImGuiKeyData KeysData_326; + public ImGuiKeyData KeysData_327; + public ImGuiKeyData KeysData_328; + public ImGuiKeyData KeysData_329; + public ImGuiKeyData KeysData_330; + public ImGuiKeyData KeysData_331; + public ImGuiKeyData KeysData_332; + public ImGuiKeyData KeysData_333; + public ImGuiKeyData KeysData_334; + public ImGuiKeyData KeysData_335; + public ImGuiKeyData KeysData_336; + public ImGuiKeyData KeysData_337; + public ImGuiKeyData KeysData_338; + public ImGuiKeyData KeysData_339; + public ImGuiKeyData KeysData_340; + public ImGuiKeyData KeysData_341; + public ImGuiKeyData KeysData_342; + public ImGuiKeyData KeysData_343; + public ImGuiKeyData KeysData_344; + public ImGuiKeyData KeysData_345; + public ImGuiKeyData KeysData_346; + public ImGuiKeyData KeysData_347; + public ImGuiKeyData KeysData_348; + public ImGuiKeyData KeysData_349; + public ImGuiKeyData KeysData_350; + public ImGuiKeyData KeysData_351; + public ImGuiKeyData KeysData_352; + public ImGuiKeyData KeysData_353; + public ImGuiKeyData KeysData_354; + public ImGuiKeyData KeysData_355; + public ImGuiKeyData KeysData_356; + public ImGuiKeyData KeysData_357; + public ImGuiKeyData KeysData_358; + public ImGuiKeyData KeysData_359; + public ImGuiKeyData KeysData_360; + public ImGuiKeyData KeysData_361; + public ImGuiKeyData KeysData_362; + public ImGuiKeyData KeysData_363; + public ImGuiKeyData KeysData_364; + public ImGuiKeyData KeysData_365; + public ImGuiKeyData KeysData_366; + public ImGuiKeyData KeysData_367; + public ImGuiKeyData KeysData_368; + public ImGuiKeyData KeysData_369; + public ImGuiKeyData KeysData_370; + public ImGuiKeyData KeysData_371; + public ImGuiKeyData KeysData_372; + public ImGuiKeyData KeysData_373; + public ImGuiKeyData KeysData_374; + public ImGuiKeyData KeysData_375; + public ImGuiKeyData KeysData_376; + public ImGuiKeyData KeysData_377; + public ImGuiKeyData KeysData_378; + public ImGuiKeyData KeysData_379; + public ImGuiKeyData KeysData_380; + public ImGuiKeyData KeysData_381; + public ImGuiKeyData KeysData_382; + public ImGuiKeyData KeysData_383; + public ImGuiKeyData KeysData_384; + public ImGuiKeyData KeysData_385; + public ImGuiKeyData KeysData_386; + public ImGuiKeyData KeysData_387; + public ImGuiKeyData KeysData_388; + public ImGuiKeyData KeysData_389; + public ImGuiKeyData KeysData_390; + public ImGuiKeyData KeysData_391; + public ImGuiKeyData KeysData_392; + public ImGuiKeyData KeysData_393; + public ImGuiKeyData KeysData_394; + public ImGuiKeyData KeysData_395; + public ImGuiKeyData KeysData_396; + public ImGuiKeyData KeysData_397; + public ImGuiKeyData KeysData_398; + public ImGuiKeyData KeysData_399; + public ImGuiKeyData KeysData_400; + public ImGuiKeyData KeysData_401; + public ImGuiKeyData KeysData_402; + public ImGuiKeyData KeysData_403; + public ImGuiKeyData KeysData_404; + public ImGuiKeyData KeysData_405; + public ImGuiKeyData KeysData_406; + public ImGuiKeyData KeysData_407; + public ImGuiKeyData KeysData_408; + public ImGuiKeyData KeysData_409; + public ImGuiKeyData KeysData_410; + public ImGuiKeyData KeysData_411; + public ImGuiKeyData KeysData_412; + public ImGuiKeyData KeysData_413; + public ImGuiKeyData KeysData_414; + public ImGuiKeyData KeysData_415; + public ImGuiKeyData KeysData_416; + public ImGuiKeyData KeysData_417; + public ImGuiKeyData KeysData_418; + public ImGuiKeyData KeysData_419; + public ImGuiKeyData KeysData_420; + public ImGuiKeyData KeysData_421; + public ImGuiKeyData KeysData_422; + public ImGuiKeyData KeysData_423; + public ImGuiKeyData KeysData_424; + public ImGuiKeyData KeysData_425; + public ImGuiKeyData KeysData_426; + public ImGuiKeyData KeysData_427; + public ImGuiKeyData KeysData_428; + public ImGuiKeyData KeysData_429; + public ImGuiKeyData KeysData_430; + public ImGuiKeyData KeysData_431; + public ImGuiKeyData KeysData_432; + public ImGuiKeyData KeysData_433; + public ImGuiKeyData KeysData_434; + public ImGuiKeyData KeysData_435; + public ImGuiKeyData KeysData_436; + public ImGuiKeyData KeysData_437; + public ImGuiKeyData KeysData_438; + public ImGuiKeyData KeysData_439; + public ImGuiKeyData KeysData_440; + public ImGuiKeyData KeysData_441; + public ImGuiKeyData KeysData_442; + public ImGuiKeyData KeysData_443; + public ImGuiKeyData KeysData_444; + public ImGuiKeyData KeysData_445; + public ImGuiKeyData KeysData_446; + public ImGuiKeyData KeysData_447; + public ImGuiKeyData KeysData_448; + public ImGuiKeyData KeysData_449; + public ImGuiKeyData KeysData_450; + public ImGuiKeyData KeysData_451; + public ImGuiKeyData KeysData_452; + public ImGuiKeyData KeysData_453; + public ImGuiKeyData KeysData_454; + public ImGuiKeyData KeysData_455; + public ImGuiKeyData KeysData_456; + public ImGuiKeyData KeysData_457; + public ImGuiKeyData KeysData_458; + public ImGuiKeyData KeysData_459; + public ImGuiKeyData KeysData_460; + public ImGuiKeyData KeysData_461; + public ImGuiKeyData KeysData_462; + public ImGuiKeyData KeysData_463; + public ImGuiKeyData KeysData_464; + public ImGuiKeyData KeysData_465; + public ImGuiKeyData KeysData_466; + public ImGuiKeyData KeysData_467; + public ImGuiKeyData KeysData_468; + public ImGuiKeyData KeysData_469; + public ImGuiKeyData KeysData_470; + public ImGuiKeyData KeysData_471; + public ImGuiKeyData KeysData_472; + public ImGuiKeyData KeysData_473; + public ImGuiKeyData KeysData_474; + public ImGuiKeyData KeysData_475; + public ImGuiKeyData KeysData_476; + public ImGuiKeyData KeysData_477; + public ImGuiKeyData KeysData_478; + public ImGuiKeyData KeysData_479; + public ImGuiKeyData KeysData_480; + public ImGuiKeyData KeysData_481; + public ImGuiKeyData KeysData_482; + public ImGuiKeyData KeysData_483; + public ImGuiKeyData KeysData_484; + public ImGuiKeyData KeysData_485; + public ImGuiKeyData KeysData_486; + public ImGuiKeyData KeysData_487; + public ImGuiKeyData KeysData_488; + public ImGuiKeyData KeysData_489; + public ImGuiKeyData KeysData_490; + public ImGuiKeyData KeysData_491; + public ImGuiKeyData KeysData_492; + public ImGuiKeyData KeysData_493; + public ImGuiKeyData KeysData_494; + public ImGuiKeyData KeysData_495; + public ImGuiKeyData KeysData_496; + public ImGuiKeyData KeysData_497; + public ImGuiKeyData KeysData_498; + public ImGuiKeyData KeysData_499; + public ImGuiKeyData KeysData_500; + public ImGuiKeyData KeysData_501; + public ImGuiKeyData KeysData_502; + public ImGuiKeyData KeysData_503; + public ImGuiKeyData KeysData_504; + public ImGuiKeyData KeysData_505; + public ImGuiKeyData KeysData_506; + public ImGuiKeyData KeysData_507; + public ImGuiKeyData KeysData_508; + public ImGuiKeyData KeysData_509; + public ImGuiKeyData KeysData_510; + public ImGuiKeyData KeysData_511; + public ImGuiKeyData KeysData_512; + public ImGuiKeyData KeysData_513; + public ImGuiKeyData KeysData_514; + public ImGuiKeyData KeysData_515; + public ImGuiKeyData KeysData_516; + public ImGuiKeyData KeysData_517; + public ImGuiKeyData KeysData_518; + public ImGuiKeyData KeysData_519; + public ImGuiKeyData KeysData_520; + public ImGuiKeyData KeysData_521; + public ImGuiKeyData KeysData_522; + public ImGuiKeyData KeysData_523; + public ImGuiKeyData KeysData_524; + public ImGuiKeyData KeysData_525; + public ImGuiKeyData KeysData_526; + public ImGuiKeyData KeysData_527; + public ImGuiKeyData KeysData_528; + public ImGuiKeyData KeysData_529; + public ImGuiKeyData KeysData_530; + public ImGuiKeyData KeysData_531; + public ImGuiKeyData KeysData_532; + public ImGuiKeyData KeysData_533; + public ImGuiKeyData KeysData_534; + public ImGuiKeyData KeysData_535; + public ImGuiKeyData KeysData_536; + public ImGuiKeyData KeysData_537; + public ImGuiKeyData KeysData_538; + public ImGuiKeyData KeysData_539; + public ImGuiKeyData KeysData_540; + public ImGuiKeyData KeysData_541; + public ImGuiKeyData KeysData_542; + public ImGuiKeyData KeysData_543; + public ImGuiKeyData KeysData_544; + public ImGuiKeyData KeysData_545; + public ImGuiKeyData KeysData_546; + public ImGuiKeyData KeysData_547; + public ImGuiKeyData KeysData_548; + public ImGuiKeyData KeysData_549; + public ImGuiKeyData KeysData_550; + public ImGuiKeyData KeysData_551; + public ImGuiKeyData KeysData_552; + public ImGuiKeyData KeysData_553; + public ImGuiKeyData KeysData_554; + public ImGuiKeyData KeysData_555; + public ImGuiKeyData KeysData_556; + public ImGuiKeyData KeysData_557; + public ImGuiKeyData KeysData_558; + public ImGuiKeyData KeysData_559; + public ImGuiKeyData KeysData_560; + public ImGuiKeyData KeysData_561; + public ImGuiKeyData KeysData_562; + public ImGuiKeyData KeysData_563; + public ImGuiKeyData KeysData_564; + public ImGuiKeyData KeysData_565; + public ImGuiKeyData KeysData_566; + public ImGuiKeyData KeysData_567; + public ImGuiKeyData KeysData_568; + public ImGuiKeyData KeysData_569; + public ImGuiKeyData KeysData_570; + public ImGuiKeyData KeysData_571; + public ImGuiKeyData KeysData_572; + public ImGuiKeyData KeysData_573; + public ImGuiKeyData KeysData_574; + public ImGuiKeyData KeysData_575; + public ImGuiKeyData KeysData_576; + public ImGuiKeyData KeysData_577; + public ImGuiKeyData KeysData_578; + public ImGuiKeyData KeysData_579; + public ImGuiKeyData KeysData_580; + public ImGuiKeyData KeysData_581; + public ImGuiKeyData KeysData_582; + public ImGuiKeyData KeysData_583; + public ImGuiKeyData KeysData_584; + public ImGuiKeyData KeysData_585; + public ImGuiKeyData KeysData_586; + public ImGuiKeyData KeysData_587; + public ImGuiKeyData KeysData_588; + public ImGuiKeyData KeysData_589; + public ImGuiKeyData KeysData_590; + public ImGuiKeyData KeysData_591; + public ImGuiKeyData KeysData_592; + public ImGuiKeyData KeysData_593; + public ImGuiKeyData KeysData_594; + public ImGuiKeyData KeysData_595; + public ImGuiKeyData KeysData_596; + public ImGuiKeyData KeysData_597; + public ImGuiKeyData KeysData_598; + public ImGuiKeyData KeysData_599; + public ImGuiKeyData KeysData_600; + public ImGuiKeyData KeysData_601; + public ImGuiKeyData KeysData_602; + public ImGuiKeyData KeysData_603; + public ImGuiKeyData KeysData_604; + public ImGuiKeyData KeysData_605; + public ImGuiKeyData KeysData_606; + public ImGuiKeyData KeysData_607; + public ImGuiKeyData KeysData_608; + public ImGuiKeyData KeysData_609; + public ImGuiKeyData KeysData_610; + public ImGuiKeyData KeysData_611; + public ImGuiKeyData KeysData_612; + public ImGuiKeyData KeysData_613; + public ImGuiKeyData KeysData_614; + public ImGuiKeyData KeysData_615; + public ImGuiKeyData KeysData_616; + public ImGuiKeyData KeysData_617; + public ImGuiKeyData KeysData_618; + public ImGuiKeyData KeysData_619; + public ImGuiKeyData KeysData_620; + public ImGuiKeyData KeysData_621; + public ImGuiKeyData KeysData_622; + public ImGuiKeyData KeysData_623; + public ImGuiKeyData KeysData_624; + public ImGuiKeyData KeysData_625; + public ImGuiKeyData KeysData_626; + public ImGuiKeyData KeysData_627; + public ImGuiKeyData KeysData_628; + public ImGuiKeyData KeysData_629; + public ImGuiKeyData KeysData_630; + public ImGuiKeyData KeysData_631; + public ImGuiKeyData KeysData_632; + public ImGuiKeyData KeysData_633; + public ImGuiKeyData KeysData_634; + public ImGuiKeyData KeysData_635; + public ImGuiKeyData KeysData_636; + public ImGuiKeyData KeysData_637; + public ImGuiKeyData KeysData_638; + public ImGuiKeyData KeysData_639; + public ImGuiKeyData KeysData_640; + public ImGuiKeyData KeysData_641; + public ImGuiKeyData KeysData_642; + public ImGuiKeyData KeysData_643; + public ImGuiKeyData KeysData_644; + public ImGuiKeyData KeysData_645; + public ImGuiKeyData KeysData_646; + public ImGuiKeyData KeysData_647; + public ImGuiKeyData KeysData_648; + public ImGuiKeyData KeysData_649; + public ImGuiKeyData KeysData_650; + public ImGuiKeyData KeysData_651; + public ImGuiKeyData KeysData_652; + public ImGuiKeyData KeysData_653; + public ImGuiKeyData KeysData_654; + public ImGuiKeyData KeysData_655; + public ImGuiKeyData KeysData_656; + public ImGuiKeyData KeysData_657; + public ImGuiKeyData KeysData_658; + public ImGuiKeyData KeysData_659; + public ImGuiKeyData KeysData_660; + public ImGuiKeyData KeysData_661; + public ImGuiKeyData KeysData_662; + public ImGuiKeyData KeysData_663; + public ImGuiKeyData KeysData_664; + public ImGuiKeyData KeysData_665; + + /// + /// To be documented. + /// + public byte WantCaptureMouseUnlessPopupClose; + + /// + /// To be documented. + /// + public Vector2 MousePosPrev; + + /// + /// To be documented. + /// + public Vector2 MouseClickedPos_0; + public Vector2 MouseClickedPos_1; + public Vector2 MouseClickedPos_2; + public Vector2 MouseClickedPos_3; + public Vector2 MouseClickedPos_4; + + /// + /// To be documented. + /// + public double MouseClickedTime_0; + public double MouseClickedTime_1; + public double MouseClickedTime_2; + public double MouseClickedTime_3; + public double MouseClickedTime_4; + + /// + /// To be documented. + /// + public bool MouseClicked_0; + public bool MouseClicked_1; + public bool MouseClicked_2; + public bool MouseClicked_3; + public bool MouseClicked_4; + + /// + /// To be documented. + /// + public bool MouseDoubleClicked_0; + public bool MouseDoubleClicked_1; + public bool MouseDoubleClicked_2; + public bool MouseDoubleClicked_3; + public bool MouseDoubleClicked_4; + + /// + /// To be documented. + /// + public ushort MouseClickedCount_0; + public ushort MouseClickedCount_1; + public ushort MouseClickedCount_2; + public ushort MouseClickedCount_3; + public ushort MouseClickedCount_4; + + /// + /// To be documented. + /// + public ushort MouseClickedLastCount_0; + public ushort MouseClickedLastCount_1; + public ushort MouseClickedLastCount_2; + public ushort MouseClickedLastCount_3; + public ushort MouseClickedLastCount_4; + + /// + /// To be documented. + /// + public bool MouseReleased_0; + public bool MouseReleased_1; + public bool MouseReleased_2; + public bool MouseReleased_3; + public bool MouseReleased_4; + + /// + /// To be documented. + /// + public bool MouseDownOwned_0; + public bool MouseDownOwned_1; + public bool MouseDownOwned_2; + public bool MouseDownOwned_3; + public bool MouseDownOwned_4; + + /// + /// To be documented. + /// + public bool MouseDownOwnedUnlessPopupClose_0; + public bool MouseDownOwnedUnlessPopupClose_1; + public bool MouseDownOwnedUnlessPopupClose_2; + public bool MouseDownOwnedUnlessPopupClose_3; + public bool MouseDownOwnedUnlessPopupClose_4; + + /// + /// To be documented. + /// + public byte MouseWheelRequestAxisSwap; + + /// + /// To be documented. + /// + public float MouseDownDuration_0; + public float MouseDownDuration_1; + public float MouseDownDuration_2; + public float MouseDownDuration_3; + public float MouseDownDuration_4; + + /// + /// To be documented. + /// + public float MouseDownDurationPrev_0; + public float MouseDownDurationPrev_1; + public float MouseDownDurationPrev_2; + public float MouseDownDurationPrev_3; + public float MouseDownDurationPrev_4; + + /// + /// To be documented. + /// + public Vector2 MouseDragMaxDistanceAbs_0; + public Vector2 MouseDragMaxDistanceAbs_1; + public Vector2 MouseDragMaxDistanceAbs_2; + public Vector2 MouseDragMaxDistanceAbs_3; + public Vector2 MouseDragMaxDistanceAbs_4; + + /// + /// To be documented. + /// + public float MouseDragMaxDistanceSqr_0; + public float MouseDragMaxDistanceSqr_1; + public float MouseDragMaxDistanceSqr_2; + public float MouseDragMaxDistanceSqr_3; + public float MouseDragMaxDistanceSqr_4; + + /// + /// To be documented. + /// + public float PenPressure; + + /// + /// To be documented. + /// + public byte AppFocusLost; + + /// + /// To be documented. + /// + public byte AppAcceptingEvents; + + /// + /// To be documented. + /// + public byte BackendUsingLegacyKeyArrays; + + /// + /// To be documented. + /// + public byte BackendUsingLegacyNavInputArray; + + /// + /// To be documented. + /// + public ushort InputQueueSurrogate; + + /// + /// To be documented. + /// + public ImVectorImWchar InputQueueCharacters; + + + + /// /// To be documented. /// public unsafe ImGuiIO(int configFlags = default, int backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, void* userData = default, ImFontAtlas* fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFont* fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configInputTextEnterKeepActive = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, bool configDebugBeginReturnValueOnce = default, bool configDebugBeginReturnValueLoop = default, bool configDebugIgnoreFocusLoss = default, bool configDebugIniSettings = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate* getClipboardTextFn = default, delegate* setClipboardTextFn = default, void* clipboardUserData = default, delegate* setPlatformImeDataFn = default, ushort platformLocaleDecimalPoint = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, Vector2 mouseDelta = default, int* keyMap = default, bool* keysDown = default, float* navInputs = default, void* Unusedpadding = default, ImGuiContext* ctx = default, Vector2 mousePos = default, bool* mouseDown = default, float mouseWheel = default, float mouseWheelH = default, ImGuiMouseSource mouseSource = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, int keyMods = default, ImGuiKeyData* keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Vector2* mouseClickedPos = default, double* mouseClickedTime = default, bool* mouseClicked = default, bool* mouseDoubleClicked = default, ushort* mouseClickedCount = default, ushort* mouseClickedLastCount = default, bool* mouseReleased = default, bool* mouseDownOwned = default, bool* mouseDownOwnedUnlessPopupClose = default, bool mouseWheelRequestAxisSwap = default, float* mouseDownDuration = default, float* mouseDownDurationPrev = default, Vector2* mouseDragMaxDistanceAbs = default, float* mouseDragMaxDistanceSqr = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, byte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVectorImWchar inputQueueCharacters = default) + { + ConfigFlags = configFlags; + BackendFlags = backendFlags; + DisplaySize = displaySize; + DeltaTime = deltaTime; + IniSavingRate = iniSavingRate; + IniFilename = iniFilename; + LogFilename = logFilename; + UserData = userData; + Fonts = fonts; + FontGlobalScale = fontGlobalScale; + FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; + FontDefault = fontDefault; + DisplayFramebufferScale = displayFramebufferScale; + ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; + ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; + ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; + ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; + ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; + ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; + ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; + ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; + MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; + ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; + ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; + ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; + ConfigInputTextEnterKeepActive = configInputTextEnterKeepActive ? (byte)1 : (byte)0; + ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; + ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; + ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; + ConfigMemoryCompactTimer = configMemoryCompactTimer; + MouseDoubleClickTime = mouseDoubleClickTime; + MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; + MouseDragThreshold = mouseDragThreshold; + KeyRepeatDelay = keyRepeatDelay; + KeyRepeatRate = keyRepeatRate; + ConfigDebugBeginReturnValueOnce = configDebugBeginReturnValueOnce ? (byte)1 : (byte)0; + ConfigDebugBeginReturnValueLoop = configDebugBeginReturnValueLoop ? (byte)1 : (byte)0; + ConfigDebugIgnoreFocusLoss = configDebugIgnoreFocusLoss ? (byte)1 : (byte)0; + ConfigDebugIniSettings = configDebugIniSettings ? (byte)1 : (byte)0; + BackendPlatformName = backendPlatformName; + BackendRendererName = backendRendererName; + BackendPlatformUserData = backendPlatformUserData; + BackendRendererUserData = backendRendererUserData; + BackendLanguageUserData = backendLanguageUserData; + GetClipboardTextFn = (void*)getClipboardTextFn; + SetClipboardTextFn = (void*)setClipboardTextFn; + ClipboardUserData = clipboardUserData; + SetPlatformImeDataFn = (void*)setPlatformImeDataFn; + PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; + WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; + WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; + WantTextInput = wantTextInput ? (byte)1 : (byte)0; + WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; + WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; + NavActive = navActive ? (byte)1 : (byte)0; + NavVisible = navVisible ? (byte)1 : (byte)0; + Framerate = framerate; + MetricsRenderVertices = metricsRenderVertices; + MetricsRenderIndices = metricsRenderIndices; + MetricsRenderWindows = metricsRenderWindows; + MetricsActiveWindows = metricsActiveWindows; + MouseDelta = mouseDelta; + if (keyMap != default) + { + KeyMap_0 = keyMap[0]; + KeyMap_1 = keyMap[1]; + KeyMap_2 = keyMap[2]; + KeyMap_3 = keyMap[3]; + KeyMap_4 = keyMap[4]; + KeyMap_5 = keyMap[5]; + KeyMap_6 = keyMap[6]; + KeyMap_7 = keyMap[7]; + KeyMap_8 = keyMap[8]; + KeyMap_9 = keyMap[9]; + KeyMap_10 = keyMap[10]; + KeyMap_11 = keyMap[11]; + KeyMap_12 = keyMap[12]; + KeyMap_13 = keyMap[13]; + KeyMap_14 = keyMap[14]; + KeyMap_15 = keyMap[15]; + KeyMap_16 = keyMap[16]; + KeyMap_17 = keyMap[17]; + KeyMap_18 = keyMap[18]; + KeyMap_19 = keyMap[19]; + KeyMap_20 = keyMap[20]; + KeyMap_21 = keyMap[21]; + KeyMap_22 = keyMap[22]; + KeyMap_23 = keyMap[23]; + KeyMap_24 = keyMap[24]; + KeyMap_25 = keyMap[25]; + KeyMap_26 = keyMap[26]; + KeyMap_27 = keyMap[27]; + KeyMap_28 = keyMap[28]; + KeyMap_29 = keyMap[29]; + KeyMap_30 = keyMap[30]; + KeyMap_31 = keyMap[31]; + KeyMap_32 = keyMap[32]; + KeyMap_33 = keyMap[33]; + KeyMap_34 = keyMap[34]; + KeyMap_35 = keyMap[35]; + KeyMap_36 = keyMap[36]; + KeyMap_37 = keyMap[37]; + KeyMap_38 = keyMap[38]; + KeyMap_39 = keyMap[39]; + KeyMap_40 = keyMap[40]; + KeyMap_41 = keyMap[41]; + KeyMap_42 = keyMap[42]; + KeyMap_43 = keyMap[43]; + KeyMap_44 = keyMap[44]; + KeyMap_45 = keyMap[45]; + KeyMap_46 = keyMap[46]; + KeyMap_47 = keyMap[47]; + KeyMap_48 = keyMap[48]; + KeyMap_49 = keyMap[49]; + KeyMap_50 = keyMap[50]; + KeyMap_51 = keyMap[51]; + KeyMap_52 = keyMap[52]; + KeyMap_53 = keyMap[53]; + KeyMap_54 = keyMap[54]; + KeyMap_55 = keyMap[55]; + KeyMap_56 = keyMap[56]; + KeyMap_57 = keyMap[57]; + KeyMap_58 = keyMap[58]; + KeyMap_59 = keyMap[59]; + KeyMap_60 = keyMap[60]; + KeyMap_61 = keyMap[61]; + KeyMap_62 = keyMap[62]; + KeyMap_63 = keyMap[63]; + KeyMap_64 = keyMap[64]; + KeyMap_65 = keyMap[65]; + KeyMap_66 = keyMap[66]; + KeyMap_67 = keyMap[67]; + KeyMap_68 = keyMap[68]; + KeyMap_69 = keyMap[69]; + KeyMap_70 = keyMap[70]; + KeyMap_71 = keyMap[71]; + KeyMap_72 = keyMap[72]; + KeyMap_73 = keyMap[73]; + KeyMap_74 = keyMap[74]; + KeyMap_75 = keyMap[75]; + KeyMap_76 = keyMap[76]; + KeyMap_77 = keyMap[77]; + KeyMap_78 = keyMap[78]; + KeyMap_79 = keyMap[79]; + KeyMap_80 = keyMap[80]; + KeyMap_81 = keyMap[81]; + KeyMap_82 = keyMap[82]; + KeyMap_83 = keyMap[83]; + KeyMap_84 = keyMap[84]; + KeyMap_85 = keyMap[85]; + KeyMap_86 = keyMap[86]; + KeyMap_87 = keyMap[87]; + KeyMap_88 = keyMap[88]; + KeyMap_89 = keyMap[89]; + KeyMap_90 = keyMap[90]; + KeyMap_91 = keyMap[91]; + KeyMap_92 = keyMap[92]; + KeyMap_93 = keyMap[93]; + KeyMap_94 = keyMap[94]; + KeyMap_95 = keyMap[95]; + KeyMap_96 = keyMap[96]; + KeyMap_97 = keyMap[97]; + KeyMap_98 = keyMap[98]; + KeyMap_99 = keyMap[99]; + KeyMap_100 = keyMap[100]; + KeyMap_101 = keyMap[101]; + KeyMap_102 = keyMap[102]; + KeyMap_103 = keyMap[103]; + KeyMap_104 = keyMap[104]; + KeyMap_105 = keyMap[105]; + KeyMap_106 = keyMap[106]; + KeyMap_107 = keyMap[107]; + KeyMap_108 = keyMap[108]; + KeyMap_109 = keyMap[109]; + KeyMap_110 = keyMap[110]; + KeyMap_111 = keyMap[111]; + KeyMap_112 = keyMap[112]; + KeyMap_113 = keyMap[113]; + KeyMap_114 = keyMap[114]; + KeyMap_115 = keyMap[115]; + KeyMap_116 = keyMap[116]; + KeyMap_117 = keyMap[117]; + KeyMap_118 = keyMap[118]; + KeyMap_119 = keyMap[119]; + KeyMap_120 = keyMap[120]; + KeyMap_121 = keyMap[121]; + KeyMap_122 = keyMap[122]; + KeyMap_123 = keyMap[123]; + KeyMap_124 = keyMap[124]; + KeyMap_125 = keyMap[125]; + KeyMap_126 = keyMap[126]; + KeyMap_127 = keyMap[127]; + KeyMap_128 = keyMap[128]; + KeyMap_129 = keyMap[129]; + KeyMap_130 = keyMap[130]; + KeyMap_131 = keyMap[131]; + KeyMap_132 = keyMap[132]; + KeyMap_133 = keyMap[133]; + KeyMap_134 = keyMap[134]; + KeyMap_135 = keyMap[135]; + KeyMap_136 = keyMap[136]; + KeyMap_137 = keyMap[137]; + KeyMap_138 = keyMap[138]; + KeyMap_139 = keyMap[139]; + KeyMap_140 = keyMap[140]; + KeyMap_141 = keyMap[141]; + KeyMap_142 = keyMap[142]; + KeyMap_143 = keyMap[143]; + KeyMap_144 = keyMap[144]; + KeyMap_145 = keyMap[145]; + KeyMap_146 = keyMap[146]; + KeyMap_147 = keyMap[147]; + KeyMap_148 = keyMap[148]; + KeyMap_149 = keyMap[149]; + KeyMap_150 = keyMap[150]; + KeyMap_151 = keyMap[151]; + KeyMap_152 = keyMap[152]; + KeyMap_153 = keyMap[153]; + KeyMap_154 = keyMap[154]; + KeyMap_155 = keyMap[155]; + KeyMap_156 = keyMap[156]; + KeyMap_157 = keyMap[157]; + KeyMap_158 = keyMap[158]; + KeyMap_159 = keyMap[159]; + KeyMap_160 = keyMap[160]; + KeyMap_161 = keyMap[161]; + KeyMap_162 = keyMap[162]; + KeyMap_163 = keyMap[163]; + KeyMap_164 = keyMap[164]; + KeyMap_165 = keyMap[165]; + KeyMap_166 = keyMap[166]; + KeyMap_167 = keyMap[167]; + KeyMap_168 = keyMap[168]; + KeyMap_169 = keyMap[169]; + KeyMap_170 = keyMap[170]; + KeyMap_171 = keyMap[171]; + KeyMap_172 = keyMap[172]; + KeyMap_173 = keyMap[173]; + KeyMap_174 = keyMap[174]; + KeyMap_175 = keyMap[175]; + KeyMap_176 = keyMap[176]; + KeyMap_177 = keyMap[177]; + KeyMap_178 = keyMap[178]; + KeyMap_179 = keyMap[179]; + KeyMap_180 = keyMap[180]; + KeyMap_181 = keyMap[181]; + KeyMap_182 = keyMap[182]; + KeyMap_183 = keyMap[183]; + KeyMap_184 = keyMap[184]; + KeyMap_185 = keyMap[185]; + KeyMap_186 = keyMap[186]; + KeyMap_187 = keyMap[187]; + KeyMap_188 = keyMap[188]; + KeyMap_189 = keyMap[189]; + KeyMap_190 = keyMap[190]; + KeyMap_191 = keyMap[191]; + KeyMap_192 = keyMap[192]; + KeyMap_193 = keyMap[193]; + KeyMap_194 = keyMap[194]; + KeyMap_195 = keyMap[195]; + KeyMap_196 = keyMap[196]; + KeyMap_197 = keyMap[197]; + KeyMap_198 = keyMap[198]; + KeyMap_199 = keyMap[199]; + KeyMap_200 = keyMap[200]; + KeyMap_201 = keyMap[201]; + KeyMap_202 = keyMap[202]; + KeyMap_203 = keyMap[203]; + KeyMap_204 = keyMap[204]; + KeyMap_205 = keyMap[205]; + KeyMap_206 = keyMap[206]; + KeyMap_207 = keyMap[207]; + KeyMap_208 = keyMap[208]; + KeyMap_209 = keyMap[209]; + KeyMap_210 = keyMap[210]; + KeyMap_211 = keyMap[211]; + KeyMap_212 = keyMap[212]; + KeyMap_213 = keyMap[213]; + KeyMap_214 = keyMap[214]; + KeyMap_215 = keyMap[215]; + KeyMap_216 = keyMap[216]; + KeyMap_217 = keyMap[217]; + KeyMap_218 = keyMap[218]; + KeyMap_219 = keyMap[219]; + KeyMap_220 = keyMap[220]; + KeyMap_221 = keyMap[221]; + KeyMap_222 = keyMap[222]; + KeyMap_223 = keyMap[223]; + KeyMap_224 = keyMap[224]; + KeyMap_225 = keyMap[225]; + KeyMap_226 = keyMap[226]; + KeyMap_227 = keyMap[227]; + KeyMap_228 = keyMap[228]; + KeyMap_229 = keyMap[229]; + KeyMap_230 = keyMap[230]; + KeyMap_231 = keyMap[231]; + KeyMap_232 = keyMap[232]; + KeyMap_233 = keyMap[233]; + KeyMap_234 = keyMap[234]; + KeyMap_235 = keyMap[235]; + KeyMap_236 = keyMap[236]; + KeyMap_237 = keyMap[237]; + KeyMap_238 = keyMap[238]; + KeyMap_239 = keyMap[239]; + KeyMap_240 = keyMap[240]; + KeyMap_241 = keyMap[241]; + KeyMap_242 = keyMap[242]; + KeyMap_243 = keyMap[243]; + KeyMap_244 = keyMap[244]; + KeyMap_245 = keyMap[245]; + KeyMap_246 = keyMap[246]; + KeyMap_247 = keyMap[247]; + KeyMap_248 = keyMap[248]; + KeyMap_249 = keyMap[249]; + KeyMap_250 = keyMap[250]; + KeyMap_251 = keyMap[251]; + KeyMap_252 = keyMap[252]; + KeyMap_253 = keyMap[253]; + KeyMap_254 = keyMap[254]; + KeyMap_255 = keyMap[255]; + KeyMap_256 = keyMap[256]; + KeyMap_257 = keyMap[257]; + KeyMap_258 = keyMap[258]; + KeyMap_259 = keyMap[259]; + KeyMap_260 = keyMap[260]; + KeyMap_261 = keyMap[261]; + KeyMap_262 = keyMap[262]; + KeyMap_263 = keyMap[263]; + KeyMap_264 = keyMap[264]; + KeyMap_265 = keyMap[265]; + KeyMap_266 = keyMap[266]; + KeyMap_267 = keyMap[267]; + KeyMap_268 = keyMap[268]; + KeyMap_269 = keyMap[269]; + KeyMap_270 = keyMap[270]; + KeyMap_271 = keyMap[271]; + KeyMap_272 = keyMap[272]; + KeyMap_273 = keyMap[273]; + KeyMap_274 = keyMap[274]; + KeyMap_275 = keyMap[275]; + KeyMap_276 = keyMap[276]; + KeyMap_277 = keyMap[277]; + KeyMap_278 = keyMap[278]; + KeyMap_279 = keyMap[279]; + KeyMap_280 = keyMap[280]; + KeyMap_281 = keyMap[281]; + KeyMap_282 = keyMap[282]; + KeyMap_283 = keyMap[283]; + KeyMap_284 = keyMap[284]; + KeyMap_285 = keyMap[285]; + KeyMap_286 = keyMap[286]; + KeyMap_287 = keyMap[287]; + KeyMap_288 = keyMap[288]; + KeyMap_289 = keyMap[289]; + KeyMap_290 = keyMap[290]; + KeyMap_291 = keyMap[291]; + KeyMap_292 = keyMap[292]; + KeyMap_293 = keyMap[293]; + KeyMap_294 = keyMap[294]; + KeyMap_295 = keyMap[295]; + KeyMap_296 = keyMap[296]; + KeyMap_297 = keyMap[297]; + KeyMap_298 = keyMap[298]; + KeyMap_299 = keyMap[299]; + KeyMap_300 = keyMap[300]; + KeyMap_301 = keyMap[301]; + KeyMap_302 = keyMap[302]; + KeyMap_303 = keyMap[303]; + KeyMap_304 = keyMap[304]; + KeyMap_305 = keyMap[305]; + KeyMap_306 = keyMap[306]; + KeyMap_307 = keyMap[307]; + KeyMap_308 = keyMap[308]; + KeyMap_309 = keyMap[309]; + KeyMap_310 = keyMap[310]; + KeyMap_311 = keyMap[311]; + KeyMap_312 = keyMap[312]; + KeyMap_313 = keyMap[313]; + KeyMap_314 = keyMap[314]; + KeyMap_315 = keyMap[315]; + KeyMap_316 = keyMap[316]; + KeyMap_317 = keyMap[317]; + KeyMap_318 = keyMap[318]; + KeyMap_319 = keyMap[319]; + KeyMap_320 = keyMap[320]; + KeyMap_321 = keyMap[321]; + KeyMap_322 = keyMap[322]; + KeyMap_323 = keyMap[323]; + KeyMap_324 = keyMap[324]; + KeyMap_325 = keyMap[325]; + KeyMap_326 = keyMap[326]; + KeyMap_327 = keyMap[327]; + KeyMap_328 = keyMap[328]; + KeyMap_329 = keyMap[329]; + KeyMap_330 = keyMap[330]; + KeyMap_331 = keyMap[331]; + KeyMap_332 = keyMap[332]; + KeyMap_333 = keyMap[333]; + KeyMap_334 = keyMap[334]; + KeyMap_335 = keyMap[335]; + KeyMap_336 = keyMap[336]; + KeyMap_337 = keyMap[337]; + KeyMap_338 = keyMap[338]; + KeyMap_339 = keyMap[339]; + KeyMap_340 = keyMap[340]; + KeyMap_341 = keyMap[341]; + KeyMap_342 = keyMap[342]; + KeyMap_343 = keyMap[343]; + KeyMap_344 = keyMap[344]; + KeyMap_345 = keyMap[345]; + KeyMap_346 = keyMap[346]; + KeyMap_347 = keyMap[347]; + KeyMap_348 = keyMap[348]; + KeyMap_349 = keyMap[349]; + KeyMap_350 = keyMap[350]; + KeyMap_351 = keyMap[351]; + KeyMap_352 = keyMap[352]; + KeyMap_353 = keyMap[353]; + KeyMap_354 = keyMap[354]; + KeyMap_355 = keyMap[355]; + KeyMap_356 = keyMap[356]; + KeyMap_357 = keyMap[357]; + KeyMap_358 = keyMap[358]; + KeyMap_359 = keyMap[359]; + KeyMap_360 = keyMap[360]; + KeyMap_361 = keyMap[361]; + KeyMap_362 = keyMap[362]; + KeyMap_363 = keyMap[363]; + KeyMap_364 = keyMap[364]; + KeyMap_365 = keyMap[365]; + KeyMap_366 = keyMap[366]; + KeyMap_367 = keyMap[367]; + KeyMap_368 = keyMap[368]; + KeyMap_369 = keyMap[369]; + KeyMap_370 = keyMap[370]; + KeyMap_371 = keyMap[371]; + KeyMap_372 = keyMap[372]; + KeyMap_373 = keyMap[373]; + KeyMap_374 = keyMap[374]; + KeyMap_375 = keyMap[375]; + KeyMap_376 = keyMap[376]; + KeyMap_377 = keyMap[377]; + KeyMap_378 = keyMap[378]; + KeyMap_379 = keyMap[379]; + KeyMap_380 = keyMap[380]; + KeyMap_381 = keyMap[381]; + KeyMap_382 = keyMap[382]; + KeyMap_383 = keyMap[383]; + KeyMap_384 = keyMap[384]; + KeyMap_385 = keyMap[385]; + KeyMap_386 = keyMap[386]; + KeyMap_387 = keyMap[387]; + KeyMap_388 = keyMap[388]; + KeyMap_389 = keyMap[389]; + KeyMap_390 = keyMap[390]; + KeyMap_391 = keyMap[391]; + KeyMap_392 = keyMap[392]; + KeyMap_393 = keyMap[393]; + KeyMap_394 = keyMap[394]; + KeyMap_395 = keyMap[395]; + KeyMap_396 = keyMap[396]; + KeyMap_397 = keyMap[397]; + KeyMap_398 = keyMap[398]; + KeyMap_399 = keyMap[399]; + KeyMap_400 = keyMap[400]; + KeyMap_401 = keyMap[401]; + KeyMap_402 = keyMap[402]; + KeyMap_403 = keyMap[403]; + KeyMap_404 = keyMap[404]; + KeyMap_405 = keyMap[405]; + KeyMap_406 = keyMap[406]; + KeyMap_407 = keyMap[407]; + KeyMap_408 = keyMap[408]; + KeyMap_409 = keyMap[409]; + KeyMap_410 = keyMap[410]; + KeyMap_411 = keyMap[411]; + KeyMap_412 = keyMap[412]; + KeyMap_413 = keyMap[413]; + KeyMap_414 = keyMap[414]; + KeyMap_415 = keyMap[415]; + KeyMap_416 = keyMap[416]; + KeyMap_417 = keyMap[417]; + KeyMap_418 = keyMap[418]; + KeyMap_419 = keyMap[419]; + KeyMap_420 = keyMap[420]; + KeyMap_421 = keyMap[421]; + KeyMap_422 = keyMap[422]; + KeyMap_423 = keyMap[423]; + KeyMap_424 = keyMap[424]; + KeyMap_425 = keyMap[425]; + KeyMap_426 = keyMap[426]; + KeyMap_427 = keyMap[427]; + KeyMap_428 = keyMap[428]; + KeyMap_429 = keyMap[429]; + KeyMap_430 = keyMap[430]; + KeyMap_431 = keyMap[431]; + KeyMap_432 = keyMap[432]; + KeyMap_433 = keyMap[433]; + KeyMap_434 = keyMap[434]; + KeyMap_435 = keyMap[435]; + KeyMap_436 = keyMap[436]; + KeyMap_437 = keyMap[437]; + KeyMap_438 = keyMap[438]; + KeyMap_439 = keyMap[439]; + KeyMap_440 = keyMap[440]; + KeyMap_441 = keyMap[441]; + KeyMap_442 = keyMap[442]; + KeyMap_443 = keyMap[443]; + KeyMap_444 = keyMap[444]; + KeyMap_445 = keyMap[445]; + KeyMap_446 = keyMap[446]; + KeyMap_447 = keyMap[447]; + KeyMap_448 = keyMap[448]; + KeyMap_449 = keyMap[449]; + KeyMap_450 = keyMap[450]; + KeyMap_451 = keyMap[451]; + KeyMap_452 = keyMap[452]; + KeyMap_453 = keyMap[453]; + KeyMap_454 = keyMap[454]; + KeyMap_455 = keyMap[455]; + KeyMap_456 = keyMap[456]; + KeyMap_457 = keyMap[457]; + KeyMap_458 = keyMap[458]; + KeyMap_459 = keyMap[459]; + KeyMap_460 = keyMap[460]; + KeyMap_461 = keyMap[461]; + KeyMap_462 = keyMap[462]; + KeyMap_463 = keyMap[463]; + KeyMap_464 = keyMap[464]; + KeyMap_465 = keyMap[465]; + KeyMap_466 = keyMap[466]; + KeyMap_467 = keyMap[467]; + KeyMap_468 = keyMap[468]; + KeyMap_469 = keyMap[469]; + KeyMap_470 = keyMap[470]; + KeyMap_471 = keyMap[471]; + KeyMap_472 = keyMap[472]; + KeyMap_473 = keyMap[473]; + KeyMap_474 = keyMap[474]; + KeyMap_475 = keyMap[475]; + KeyMap_476 = keyMap[476]; + KeyMap_477 = keyMap[477]; + KeyMap_478 = keyMap[478]; + KeyMap_479 = keyMap[479]; + KeyMap_480 = keyMap[480]; + KeyMap_481 = keyMap[481]; + KeyMap_482 = keyMap[482]; + KeyMap_483 = keyMap[483]; + KeyMap_484 = keyMap[484]; + KeyMap_485 = keyMap[485]; + KeyMap_486 = keyMap[486]; + KeyMap_487 = keyMap[487]; + KeyMap_488 = keyMap[488]; + KeyMap_489 = keyMap[489]; + KeyMap_490 = keyMap[490]; + KeyMap_491 = keyMap[491]; + KeyMap_492 = keyMap[492]; + KeyMap_493 = keyMap[493]; + KeyMap_494 = keyMap[494]; + KeyMap_495 = keyMap[495]; + KeyMap_496 = keyMap[496]; + KeyMap_497 = keyMap[497]; + KeyMap_498 = keyMap[498]; + KeyMap_499 = keyMap[499]; + KeyMap_500 = keyMap[500]; + KeyMap_501 = keyMap[501]; + KeyMap_502 = keyMap[502]; + KeyMap_503 = keyMap[503]; + KeyMap_504 = keyMap[504]; + KeyMap_505 = keyMap[505]; + KeyMap_506 = keyMap[506]; + KeyMap_507 = keyMap[507]; + KeyMap_508 = keyMap[508]; + KeyMap_509 = keyMap[509]; + KeyMap_510 = keyMap[510]; + KeyMap_511 = keyMap[511]; + KeyMap_512 = keyMap[512]; + KeyMap_513 = keyMap[513]; + KeyMap_514 = keyMap[514]; + KeyMap_515 = keyMap[515]; + KeyMap_516 = keyMap[516]; + KeyMap_517 = keyMap[517]; + KeyMap_518 = keyMap[518]; + KeyMap_519 = keyMap[519]; + KeyMap_520 = keyMap[520]; + KeyMap_521 = keyMap[521]; + KeyMap_522 = keyMap[522]; + KeyMap_523 = keyMap[523]; + KeyMap_524 = keyMap[524]; + KeyMap_525 = keyMap[525]; + KeyMap_526 = keyMap[526]; + KeyMap_527 = keyMap[527]; + KeyMap_528 = keyMap[528]; + KeyMap_529 = keyMap[529]; + KeyMap_530 = keyMap[530]; + KeyMap_531 = keyMap[531]; + KeyMap_532 = keyMap[532]; + KeyMap_533 = keyMap[533]; + KeyMap_534 = keyMap[534]; + KeyMap_535 = keyMap[535]; + KeyMap_536 = keyMap[536]; + KeyMap_537 = keyMap[537]; + KeyMap_538 = keyMap[538]; + KeyMap_539 = keyMap[539]; + KeyMap_540 = keyMap[540]; + KeyMap_541 = keyMap[541]; + KeyMap_542 = keyMap[542]; + KeyMap_543 = keyMap[543]; + KeyMap_544 = keyMap[544]; + KeyMap_545 = keyMap[545]; + KeyMap_546 = keyMap[546]; + KeyMap_547 = keyMap[547]; + KeyMap_548 = keyMap[548]; + KeyMap_549 = keyMap[549]; + KeyMap_550 = keyMap[550]; + KeyMap_551 = keyMap[551]; + KeyMap_552 = keyMap[552]; + KeyMap_553 = keyMap[553]; + KeyMap_554 = keyMap[554]; + KeyMap_555 = keyMap[555]; + KeyMap_556 = keyMap[556]; + KeyMap_557 = keyMap[557]; + KeyMap_558 = keyMap[558]; + KeyMap_559 = keyMap[559]; + KeyMap_560 = keyMap[560]; + KeyMap_561 = keyMap[561]; + KeyMap_562 = keyMap[562]; + KeyMap_563 = keyMap[563]; + KeyMap_564 = keyMap[564]; + KeyMap_565 = keyMap[565]; + KeyMap_566 = keyMap[566]; + KeyMap_567 = keyMap[567]; + KeyMap_568 = keyMap[568]; + KeyMap_569 = keyMap[569]; + KeyMap_570 = keyMap[570]; + KeyMap_571 = keyMap[571]; + KeyMap_572 = keyMap[572]; + KeyMap_573 = keyMap[573]; + KeyMap_574 = keyMap[574]; + KeyMap_575 = keyMap[575]; + KeyMap_576 = keyMap[576]; + KeyMap_577 = keyMap[577]; + KeyMap_578 = keyMap[578]; + KeyMap_579 = keyMap[579]; + KeyMap_580 = keyMap[580]; + KeyMap_581 = keyMap[581]; + KeyMap_582 = keyMap[582]; + KeyMap_583 = keyMap[583]; + KeyMap_584 = keyMap[584]; + KeyMap_585 = keyMap[585]; + KeyMap_586 = keyMap[586]; + KeyMap_587 = keyMap[587]; + KeyMap_588 = keyMap[588]; + KeyMap_589 = keyMap[589]; + KeyMap_590 = keyMap[590]; + KeyMap_591 = keyMap[591]; + KeyMap_592 = keyMap[592]; + KeyMap_593 = keyMap[593]; + KeyMap_594 = keyMap[594]; + KeyMap_595 = keyMap[595]; + KeyMap_596 = keyMap[596]; + KeyMap_597 = keyMap[597]; + KeyMap_598 = keyMap[598]; + KeyMap_599 = keyMap[599]; + KeyMap_600 = keyMap[600]; + KeyMap_601 = keyMap[601]; + KeyMap_602 = keyMap[602]; + KeyMap_603 = keyMap[603]; + KeyMap_604 = keyMap[604]; + KeyMap_605 = keyMap[605]; + KeyMap_606 = keyMap[606]; + KeyMap_607 = keyMap[607]; + KeyMap_608 = keyMap[608]; + KeyMap_609 = keyMap[609]; + KeyMap_610 = keyMap[610]; + KeyMap_611 = keyMap[611]; + KeyMap_612 = keyMap[612]; + KeyMap_613 = keyMap[613]; + KeyMap_614 = keyMap[614]; + KeyMap_615 = keyMap[615]; + KeyMap_616 = keyMap[616]; + KeyMap_617 = keyMap[617]; + KeyMap_618 = keyMap[618]; + KeyMap_619 = keyMap[619]; + KeyMap_620 = keyMap[620]; + KeyMap_621 = keyMap[621]; + KeyMap_622 = keyMap[622]; + KeyMap_623 = keyMap[623]; + KeyMap_624 = keyMap[624]; + KeyMap_625 = keyMap[625]; + KeyMap_626 = keyMap[626]; + KeyMap_627 = keyMap[627]; + KeyMap_628 = keyMap[628]; + KeyMap_629 = keyMap[629]; + KeyMap_630 = keyMap[630]; + KeyMap_631 = keyMap[631]; + KeyMap_632 = keyMap[632]; + KeyMap_633 = keyMap[633]; + KeyMap_634 = keyMap[634]; + KeyMap_635 = keyMap[635]; + KeyMap_636 = keyMap[636]; + KeyMap_637 = keyMap[637]; + KeyMap_638 = keyMap[638]; + KeyMap_639 = keyMap[639]; + KeyMap_640 = keyMap[640]; + KeyMap_641 = keyMap[641]; + KeyMap_642 = keyMap[642]; + KeyMap_643 = keyMap[643]; + KeyMap_644 = keyMap[644]; + KeyMap_645 = keyMap[645]; + KeyMap_646 = keyMap[646]; + KeyMap_647 = keyMap[647]; + KeyMap_648 = keyMap[648]; + KeyMap_649 = keyMap[649]; + KeyMap_650 = keyMap[650]; + KeyMap_651 = keyMap[651]; + KeyMap_652 = keyMap[652]; + KeyMap_653 = keyMap[653]; + KeyMap_654 = keyMap[654]; + KeyMap_655 = keyMap[655]; + KeyMap_656 = keyMap[656]; + KeyMap_657 = keyMap[657]; + KeyMap_658 = keyMap[658]; + KeyMap_659 = keyMap[659]; + KeyMap_660 = keyMap[660]; + KeyMap_661 = keyMap[661]; + KeyMap_662 = keyMap[662]; + KeyMap_663 = keyMap[663]; + KeyMap_664 = keyMap[664]; + KeyMap_665 = keyMap[665]; + } + if (keysDown != default) + { + KeysDown_0 = keysDown[0]; + KeysDown_1 = keysDown[1]; + KeysDown_2 = keysDown[2]; + KeysDown_3 = keysDown[3]; + KeysDown_4 = keysDown[4]; + KeysDown_5 = keysDown[5]; + KeysDown_6 = keysDown[6]; + KeysDown_7 = keysDown[7]; + KeysDown_8 = keysDown[8]; + KeysDown_9 = keysDown[9]; + KeysDown_10 = keysDown[10]; + KeysDown_11 = keysDown[11]; + KeysDown_12 = keysDown[12]; + KeysDown_13 = keysDown[13]; + KeysDown_14 = keysDown[14]; + KeysDown_15 = keysDown[15]; + KeysDown_16 = keysDown[16]; + KeysDown_17 = keysDown[17]; + KeysDown_18 = keysDown[18]; + KeysDown_19 = keysDown[19]; + KeysDown_20 = keysDown[20]; + KeysDown_21 = keysDown[21]; + KeysDown_22 = keysDown[22]; + KeysDown_23 = keysDown[23]; + KeysDown_24 = keysDown[24]; + KeysDown_25 = keysDown[25]; + KeysDown_26 = keysDown[26]; + KeysDown_27 = keysDown[27]; + KeysDown_28 = keysDown[28]; + KeysDown_29 = keysDown[29]; + KeysDown_30 = keysDown[30]; + KeysDown_31 = keysDown[31]; + KeysDown_32 = keysDown[32]; + KeysDown_33 = keysDown[33]; + KeysDown_34 = keysDown[34]; + KeysDown_35 = keysDown[35]; + KeysDown_36 = keysDown[36]; + KeysDown_37 = keysDown[37]; + KeysDown_38 = keysDown[38]; + KeysDown_39 = keysDown[39]; + KeysDown_40 = keysDown[40]; + KeysDown_41 = keysDown[41]; + KeysDown_42 = keysDown[42]; + KeysDown_43 = keysDown[43]; + KeysDown_44 = keysDown[44]; + KeysDown_45 = keysDown[45]; + KeysDown_46 = keysDown[46]; + KeysDown_47 = keysDown[47]; + KeysDown_48 = keysDown[48]; + KeysDown_49 = keysDown[49]; + KeysDown_50 = keysDown[50]; + KeysDown_51 = keysDown[51]; + KeysDown_52 = keysDown[52]; + KeysDown_53 = keysDown[53]; + KeysDown_54 = keysDown[54]; + KeysDown_55 = keysDown[55]; + KeysDown_56 = keysDown[56]; + KeysDown_57 = keysDown[57]; + KeysDown_58 = keysDown[58]; + KeysDown_59 = keysDown[59]; + KeysDown_60 = keysDown[60]; + KeysDown_61 = keysDown[61]; + KeysDown_62 = keysDown[62]; + KeysDown_63 = keysDown[63]; + KeysDown_64 = keysDown[64]; + KeysDown_65 = keysDown[65]; + KeysDown_66 = keysDown[66]; + KeysDown_67 = keysDown[67]; + KeysDown_68 = keysDown[68]; + KeysDown_69 = keysDown[69]; + KeysDown_70 = keysDown[70]; + KeysDown_71 = keysDown[71]; + KeysDown_72 = keysDown[72]; + KeysDown_73 = keysDown[73]; + KeysDown_74 = keysDown[74]; + KeysDown_75 = keysDown[75]; + KeysDown_76 = keysDown[76]; + KeysDown_77 = keysDown[77]; + KeysDown_78 = keysDown[78]; + KeysDown_79 = keysDown[79]; + KeysDown_80 = keysDown[80]; + KeysDown_81 = keysDown[81]; + KeysDown_82 = keysDown[82]; + KeysDown_83 = keysDown[83]; + KeysDown_84 = keysDown[84]; + KeysDown_85 = keysDown[85]; + KeysDown_86 = keysDown[86]; + KeysDown_87 = keysDown[87]; + KeysDown_88 = keysDown[88]; + KeysDown_89 = keysDown[89]; + KeysDown_90 = keysDown[90]; + KeysDown_91 = keysDown[91]; + KeysDown_92 = keysDown[92]; + KeysDown_93 = keysDown[93]; + KeysDown_94 = keysDown[94]; + KeysDown_95 = keysDown[95]; + KeysDown_96 = keysDown[96]; + KeysDown_97 = keysDown[97]; + KeysDown_98 = keysDown[98]; + KeysDown_99 = keysDown[99]; + KeysDown_100 = keysDown[100]; + KeysDown_101 = keysDown[101]; + KeysDown_102 = keysDown[102]; + KeysDown_103 = keysDown[103]; + KeysDown_104 = keysDown[104]; + KeysDown_105 = keysDown[105]; + KeysDown_106 = keysDown[106]; + KeysDown_107 = keysDown[107]; + KeysDown_108 = keysDown[108]; + KeysDown_109 = keysDown[109]; + KeysDown_110 = keysDown[110]; + KeysDown_111 = keysDown[111]; + KeysDown_112 = keysDown[112]; + KeysDown_113 = keysDown[113]; + KeysDown_114 = keysDown[114]; + KeysDown_115 = keysDown[115]; + KeysDown_116 = keysDown[116]; + KeysDown_117 = keysDown[117]; + KeysDown_118 = keysDown[118]; + KeysDown_119 = keysDown[119]; + KeysDown_120 = keysDown[120]; + KeysDown_121 = keysDown[121]; + KeysDown_122 = keysDown[122]; + KeysDown_123 = keysDown[123]; + KeysDown_124 = keysDown[124]; + KeysDown_125 = keysDown[125]; + KeysDown_126 = keysDown[126]; + KeysDown_127 = keysDown[127]; + KeysDown_128 = keysDown[128]; + KeysDown_129 = keysDown[129]; + KeysDown_130 = keysDown[130]; + KeysDown_131 = keysDown[131]; + KeysDown_132 = keysDown[132]; + KeysDown_133 = keysDown[133]; + KeysDown_134 = keysDown[134]; + KeysDown_135 = keysDown[135]; + KeysDown_136 = keysDown[136]; + KeysDown_137 = keysDown[137]; + KeysDown_138 = keysDown[138]; + KeysDown_139 = keysDown[139]; + KeysDown_140 = keysDown[140]; + KeysDown_141 = keysDown[141]; + KeysDown_142 = keysDown[142]; + KeysDown_143 = keysDown[143]; + KeysDown_144 = keysDown[144]; + KeysDown_145 = keysDown[145]; + KeysDown_146 = keysDown[146]; + KeysDown_147 = keysDown[147]; + KeysDown_148 = keysDown[148]; + KeysDown_149 = keysDown[149]; + KeysDown_150 = keysDown[150]; + KeysDown_151 = keysDown[151]; + KeysDown_152 = keysDown[152]; + KeysDown_153 = keysDown[153]; + KeysDown_154 = keysDown[154]; + KeysDown_155 = keysDown[155]; + KeysDown_156 = keysDown[156]; + KeysDown_157 = keysDown[157]; + KeysDown_158 = keysDown[158]; + KeysDown_159 = keysDown[159]; + KeysDown_160 = keysDown[160]; + KeysDown_161 = keysDown[161]; + KeysDown_162 = keysDown[162]; + KeysDown_163 = keysDown[163]; + KeysDown_164 = keysDown[164]; + KeysDown_165 = keysDown[165]; + KeysDown_166 = keysDown[166]; + KeysDown_167 = keysDown[167]; + KeysDown_168 = keysDown[168]; + KeysDown_169 = keysDown[169]; + KeysDown_170 = keysDown[170]; + KeysDown_171 = keysDown[171]; + KeysDown_172 = keysDown[172]; + KeysDown_173 = keysDown[173]; + KeysDown_174 = keysDown[174]; + KeysDown_175 = keysDown[175]; + KeysDown_176 = keysDown[176]; + KeysDown_177 = keysDown[177]; + KeysDown_178 = keysDown[178]; + KeysDown_179 = keysDown[179]; + KeysDown_180 = keysDown[180]; + KeysDown_181 = keysDown[181]; + KeysDown_182 = keysDown[182]; + KeysDown_183 = keysDown[183]; + KeysDown_184 = keysDown[184]; + KeysDown_185 = keysDown[185]; + KeysDown_186 = keysDown[186]; + KeysDown_187 = keysDown[187]; + KeysDown_188 = keysDown[188]; + KeysDown_189 = keysDown[189]; + KeysDown_190 = keysDown[190]; + KeysDown_191 = keysDown[191]; + KeysDown_192 = keysDown[192]; + KeysDown_193 = keysDown[193]; + KeysDown_194 = keysDown[194]; + KeysDown_195 = keysDown[195]; + KeysDown_196 = keysDown[196]; + KeysDown_197 = keysDown[197]; + KeysDown_198 = keysDown[198]; + KeysDown_199 = keysDown[199]; + KeysDown_200 = keysDown[200]; + KeysDown_201 = keysDown[201]; + KeysDown_202 = keysDown[202]; + KeysDown_203 = keysDown[203]; + KeysDown_204 = keysDown[204]; + KeysDown_205 = keysDown[205]; + KeysDown_206 = keysDown[206]; + KeysDown_207 = keysDown[207]; + KeysDown_208 = keysDown[208]; + KeysDown_209 = keysDown[209]; + KeysDown_210 = keysDown[210]; + KeysDown_211 = keysDown[211]; + KeysDown_212 = keysDown[212]; + KeysDown_213 = keysDown[213]; + KeysDown_214 = keysDown[214]; + KeysDown_215 = keysDown[215]; + KeysDown_216 = keysDown[216]; + KeysDown_217 = keysDown[217]; + KeysDown_218 = keysDown[218]; + KeysDown_219 = keysDown[219]; + KeysDown_220 = keysDown[220]; + KeysDown_221 = keysDown[221]; + KeysDown_222 = keysDown[222]; + KeysDown_223 = keysDown[223]; + KeysDown_224 = keysDown[224]; + KeysDown_225 = keysDown[225]; + KeysDown_226 = keysDown[226]; + KeysDown_227 = keysDown[227]; + KeysDown_228 = keysDown[228]; + KeysDown_229 = keysDown[229]; + KeysDown_230 = keysDown[230]; + KeysDown_231 = keysDown[231]; + KeysDown_232 = keysDown[232]; + KeysDown_233 = keysDown[233]; + KeysDown_234 = keysDown[234]; + KeysDown_235 = keysDown[235]; + KeysDown_236 = keysDown[236]; + KeysDown_237 = keysDown[237]; + KeysDown_238 = keysDown[238]; + KeysDown_239 = keysDown[239]; + KeysDown_240 = keysDown[240]; + KeysDown_241 = keysDown[241]; + KeysDown_242 = keysDown[242]; + KeysDown_243 = keysDown[243]; + KeysDown_244 = keysDown[244]; + KeysDown_245 = keysDown[245]; + KeysDown_246 = keysDown[246]; + KeysDown_247 = keysDown[247]; + KeysDown_248 = keysDown[248]; + KeysDown_249 = keysDown[249]; + KeysDown_250 = keysDown[250]; + KeysDown_251 = keysDown[251]; + KeysDown_252 = keysDown[252]; + KeysDown_253 = keysDown[253]; + KeysDown_254 = keysDown[254]; + KeysDown_255 = keysDown[255]; + KeysDown_256 = keysDown[256]; + KeysDown_257 = keysDown[257]; + KeysDown_258 = keysDown[258]; + KeysDown_259 = keysDown[259]; + KeysDown_260 = keysDown[260]; + KeysDown_261 = keysDown[261]; + KeysDown_262 = keysDown[262]; + KeysDown_263 = keysDown[263]; + KeysDown_264 = keysDown[264]; + KeysDown_265 = keysDown[265]; + KeysDown_266 = keysDown[266]; + KeysDown_267 = keysDown[267]; + KeysDown_268 = keysDown[268]; + KeysDown_269 = keysDown[269]; + KeysDown_270 = keysDown[270]; + KeysDown_271 = keysDown[271]; + KeysDown_272 = keysDown[272]; + KeysDown_273 = keysDown[273]; + KeysDown_274 = keysDown[274]; + KeysDown_275 = keysDown[275]; + KeysDown_276 = keysDown[276]; + KeysDown_277 = keysDown[277]; + KeysDown_278 = keysDown[278]; + KeysDown_279 = keysDown[279]; + KeysDown_280 = keysDown[280]; + KeysDown_281 = keysDown[281]; + KeysDown_282 = keysDown[282]; + KeysDown_283 = keysDown[283]; + KeysDown_284 = keysDown[284]; + KeysDown_285 = keysDown[285]; + KeysDown_286 = keysDown[286]; + KeysDown_287 = keysDown[287]; + KeysDown_288 = keysDown[288]; + KeysDown_289 = keysDown[289]; + KeysDown_290 = keysDown[290]; + KeysDown_291 = keysDown[291]; + KeysDown_292 = keysDown[292]; + KeysDown_293 = keysDown[293]; + KeysDown_294 = keysDown[294]; + KeysDown_295 = keysDown[295]; + KeysDown_296 = keysDown[296]; + KeysDown_297 = keysDown[297]; + KeysDown_298 = keysDown[298]; + KeysDown_299 = keysDown[299]; + KeysDown_300 = keysDown[300]; + KeysDown_301 = keysDown[301]; + KeysDown_302 = keysDown[302]; + KeysDown_303 = keysDown[303]; + KeysDown_304 = keysDown[304]; + KeysDown_305 = keysDown[305]; + KeysDown_306 = keysDown[306]; + KeysDown_307 = keysDown[307]; + KeysDown_308 = keysDown[308]; + KeysDown_309 = keysDown[309]; + KeysDown_310 = keysDown[310]; + KeysDown_311 = keysDown[311]; + KeysDown_312 = keysDown[312]; + KeysDown_313 = keysDown[313]; + KeysDown_314 = keysDown[314]; + KeysDown_315 = keysDown[315]; + KeysDown_316 = keysDown[316]; + KeysDown_317 = keysDown[317]; + KeysDown_318 = keysDown[318]; + KeysDown_319 = keysDown[319]; + KeysDown_320 = keysDown[320]; + KeysDown_321 = keysDown[321]; + KeysDown_322 = keysDown[322]; + KeysDown_323 = keysDown[323]; + KeysDown_324 = keysDown[324]; + KeysDown_325 = keysDown[325]; + KeysDown_326 = keysDown[326]; + KeysDown_327 = keysDown[327]; + KeysDown_328 = keysDown[328]; + KeysDown_329 = keysDown[329]; + KeysDown_330 = keysDown[330]; + KeysDown_331 = keysDown[331]; + KeysDown_332 = keysDown[332]; + KeysDown_333 = keysDown[333]; + KeysDown_334 = keysDown[334]; + KeysDown_335 = keysDown[335]; + KeysDown_336 = keysDown[336]; + KeysDown_337 = keysDown[337]; + KeysDown_338 = keysDown[338]; + KeysDown_339 = keysDown[339]; + KeysDown_340 = keysDown[340]; + KeysDown_341 = keysDown[341]; + KeysDown_342 = keysDown[342]; + KeysDown_343 = keysDown[343]; + KeysDown_344 = keysDown[344]; + KeysDown_345 = keysDown[345]; + KeysDown_346 = keysDown[346]; + KeysDown_347 = keysDown[347]; + KeysDown_348 = keysDown[348]; + KeysDown_349 = keysDown[349]; + KeysDown_350 = keysDown[350]; + KeysDown_351 = keysDown[351]; + KeysDown_352 = keysDown[352]; + KeysDown_353 = keysDown[353]; + KeysDown_354 = keysDown[354]; + KeysDown_355 = keysDown[355]; + KeysDown_356 = keysDown[356]; + KeysDown_357 = keysDown[357]; + KeysDown_358 = keysDown[358]; + KeysDown_359 = keysDown[359]; + KeysDown_360 = keysDown[360]; + KeysDown_361 = keysDown[361]; + KeysDown_362 = keysDown[362]; + KeysDown_363 = keysDown[363]; + KeysDown_364 = keysDown[364]; + KeysDown_365 = keysDown[365]; + KeysDown_366 = keysDown[366]; + KeysDown_367 = keysDown[367]; + KeysDown_368 = keysDown[368]; + KeysDown_369 = keysDown[369]; + KeysDown_370 = keysDown[370]; + KeysDown_371 = keysDown[371]; + KeysDown_372 = keysDown[372]; + KeysDown_373 = keysDown[373]; + KeysDown_374 = keysDown[374]; + KeysDown_375 = keysDown[375]; + KeysDown_376 = keysDown[376]; + KeysDown_377 = keysDown[377]; + KeysDown_378 = keysDown[378]; + KeysDown_379 = keysDown[379]; + KeysDown_380 = keysDown[380]; + KeysDown_381 = keysDown[381]; + KeysDown_382 = keysDown[382]; + KeysDown_383 = keysDown[383]; + KeysDown_384 = keysDown[384]; + KeysDown_385 = keysDown[385]; + KeysDown_386 = keysDown[386]; + KeysDown_387 = keysDown[387]; + KeysDown_388 = keysDown[388]; + KeysDown_389 = keysDown[389]; + KeysDown_390 = keysDown[390]; + KeysDown_391 = keysDown[391]; + KeysDown_392 = keysDown[392]; + KeysDown_393 = keysDown[393]; + KeysDown_394 = keysDown[394]; + KeysDown_395 = keysDown[395]; + KeysDown_396 = keysDown[396]; + KeysDown_397 = keysDown[397]; + KeysDown_398 = keysDown[398]; + KeysDown_399 = keysDown[399]; + KeysDown_400 = keysDown[400]; + KeysDown_401 = keysDown[401]; + KeysDown_402 = keysDown[402]; + KeysDown_403 = keysDown[403]; + KeysDown_404 = keysDown[404]; + KeysDown_405 = keysDown[405]; + KeysDown_406 = keysDown[406]; + KeysDown_407 = keysDown[407]; + KeysDown_408 = keysDown[408]; + KeysDown_409 = keysDown[409]; + KeysDown_410 = keysDown[410]; + KeysDown_411 = keysDown[411]; + KeysDown_412 = keysDown[412]; + KeysDown_413 = keysDown[413]; + KeysDown_414 = keysDown[414]; + KeysDown_415 = keysDown[415]; + KeysDown_416 = keysDown[416]; + KeysDown_417 = keysDown[417]; + KeysDown_418 = keysDown[418]; + KeysDown_419 = keysDown[419]; + KeysDown_420 = keysDown[420]; + KeysDown_421 = keysDown[421]; + KeysDown_422 = keysDown[422]; + KeysDown_423 = keysDown[423]; + KeysDown_424 = keysDown[424]; + KeysDown_425 = keysDown[425]; + KeysDown_426 = keysDown[426]; + KeysDown_427 = keysDown[427]; + KeysDown_428 = keysDown[428]; + KeysDown_429 = keysDown[429]; + KeysDown_430 = keysDown[430]; + KeysDown_431 = keysDown[431]; + KeysDown_432 = keysDown[432]; + KeysDown_433 = keysDown[433]; + KeysDown_434 = keysDown[434]; + KeysDown_435 = keysDown[435]; + KeysDown_436 = keysDown[436]; + KeysDown_437 = keysDown[437]; + KeysDown_438 = keysDown[438]; + KeysDown_439 = keysDown[439]; + KeysDown_440 = keysDown[440]; + KeysDown_441 = keysDown[441]; + KeysDown_442 = keysDown[442]; + KeysDown_443 = keysDown[443]; + KeysDown_444 = keysDown[444]; + KeysDown_445 = keysDown[445]; + KeysDown_446 = keysDown[446]; + KeysDown_447 = keysDown[447]; + KeysDown_448 = keysDown[448]; + KeysDown_449 = keysDown[449]; + KeysDown_450 = keysDown[450]; + KeysDown_451 = keysDown[451]; + KeysDown_452 = keysDown[452]; + KeysDown_453 = keysDown[453]; + KeysDown_454 = keysDown[454]; + KeysDown_455 = keysDown[455]; + KeysDown_456 = keysDown[456]; + KeysDown_457 = keysDown[457]; + KeysDown_458 = keysDown[458]; + KeysDown_459 = keysDown[459]; + KeysDown_460 = keysDown[460]; + KeysDown_461 = keysDown[461]; + KeysDown_462 = keysDown[462]; + KeysDown_463 = keysDown[463]; + KeysDown_464 = keysDown[464]; + KeysDown_465 = keysDown[465]; + KeysDown_466 = keysDown[466]; + KeysDown_467 = keysDown[467]; + KeysDown_468 = keysDown[468]; + KeysDown_469 = keysDown[469]; + KeysDown_470 = keysDown[470]; + KeysDown_471 = keysDown[471]; + KeysDown_472 = keysDown[472]; + KeysDown_473 = keysDown[473]; + KeysDown_474 = keysDown[474]; + KeysDown_475 = keysDown[475]; + KeysDown_476 = keysDown[476]; + KeysDown_477 = keysDown[477]; + KeysDown_478 = keysDown[478]; + KeysDown_479 = keysDown[479]; + KeysDown_480 = keysDown[480]; + KeysDown_481 = keysDown[481]; + KeysDown_482 = keysDown[482]; + KeysDown_483 = keysDown[483]; + KeysDown_484 = keysDown[484]; + KeysDown_485 = keysDown[485]; + KeysDown_486 = keysDown[486]; + KeysDown_487 = keysDown[487]; + KeysDown_488 = keysDown[488]; + KeysDown_489 = keysDown[489]; + KeysDown_490 = keysDown[490]; + KeysDown_491 = keysDown[491]; + KeysDown_492 = keysDown[492]; + KeysDown_493 = keysDown[493]; + KeysDown_494 = keysDown[494]; + KeysDown_495 = keysDown[495]; + KeysDown_496 = keysDown[496]; + KeysDown_497 = keysDown[497]; + KeysDown_498 = keysDown[498]; + KeysDown_499 = keysDown[499]; + KeysDown_500 = keysDown[500]; + KeysDown_501 = keysDown[501]; + KeysDown_502 = keysDown[502]; + KeysDown_503 = keysDown[503]; + KeysDown_504 = keysDown[504]; + KeysDown_505 = keysDown[505]; + KeysDown_506 = keysDown[506]; + KeysDown_507 = keysDown[507]; + KeysDown_508 = keysDown[508]; + KeysDown_509 = keysDown[509]; + KeysDown_510 = keysDown[510]; + KeysDown_511 = keysDown[511]; + KeysDown_512 = keysDown[512]; + KeysDown_513 = keysDown[513]; + KeysDown_514 = keysDown[514]; + KeysDown_515 = keysDown[515]; + KeysDown_516 = keysDown[516]; + KeysDown_517 = keysDown[517]; + KeysDown_518 = keysDown[518]; + KeysDown_519 = keysDown[519]; + KeysDown_520 = keysDown[520]; + KeysDown_521 = keysDown[521]; + KeysDown_522 = keysDown[522]; + KeysDown_523 = keysDown[523]; + KeysDown_524 = keysDown[524]; + KeysDown_525 = keysDown[525]; + KeysDown_526 = keysDown[526]; + KeysDown_527 = keysDown[527]; + KeysDown_528 = keysDown[528]; + KeysDown_529 = keysDown[529]; + KeysDown_530 = keysDown[530]; + KeysDown_531 = keysDown[531]; + KeysDown_532 = keysDown[532]; + KeysDown_533 = keysDown[533]; + KeysDown_534 = keysDown[534]; + KeysDown_535 = keysDown[535]; + KeysDown_536 = keysDown[536]; + KeysDown_537 = keysDown[537]; + KeysDown_538 = keysDown[538]; + KeysDown_539 = keysDown[539]; + KeysDown_540 = keysDown[540]; + KeysDown_541 = keysDown[541]; + KeysDown_542 = keysDown[542]; + KeysDown_543 = keysDown[543]; + KeysDown_544 = keysDown[544]; + KeysDown_545 = keysDown[545]; + KeysDown_546 = keysDown[546]; + KeysDown_547 = keysDown[547]; + KeysDown_548 = keysDown[548]; + KeysDown_549 = keysDown[549]; + KeysDown_550 = keysDown[550]; + KeysDown_551 = keysDown[551]; + KeysDown_552 = keysDown[552]; + KeysDown_553 = keysDown[553]; + KeysDown_554 = keysDown[554]; + KeysDown_555 = keysDown[555]; + KeysDown_556 = keysDown[556]; + KeysDown_557 = keysDown[557]; + KeysDown_558 = keysDown[558]; + KeysDown_559 = keysDown[559]; + KeysDown_560 = keysDown[560]; + KeysDown_561 = keysDown[561]; + KeysDown_562 = keysDown[562]; + KeysDown_563 = keysDown[563]; + KeysDown_564 = keysDown[564]; + KeysDown_565 = keysDown[565]; + KeysDown_566 = keysDown[566]; + KeysDown_567 = keysDown[567]; + KeysDown_568 = keysDown[568]; + KeysDown_569 = keysDown[569]; + KeysDown_570 = keysDown[570]; + KeysDown_571 = keysDown[571]; + KeysDown_572 = keysDown[572]; + KeysDown_573 = keysDown[573]; + KeysDown_574 = keysDown[574]; + KeysDown_575 = keysDown[575]; + KeysDown_576 = keysDown[576]; + KeysDown_577 = keysDown[577]; + KeysDown_578 = keysDown[578]; + KeysDown_579 = keysDown[579]; + KeysDown_580 = keysDown[580]; + KeysDown_581 = keysDown[581]; + KeysDown_582 = keysDown[582]; + KeysDown_583 = keysDown[583]; + KeysDown_584 = keysDown[584]; + KeysDown_585 = keysDown[585]; + KeysDown_586 = keysDown[586]; + KeysDown_587 = keysDown[587]; + KeysDown_588 = keysDown[588]; + KeysDown_589 = keysDown[589]; + KeysDown_590 = keysDown[590]; + KeysDown_591 = keysDown[591]; + KeysDown_592 = keysDown[592]; + KeysDown_593 = keysDown[593]; + KeysDown_594 = keysDown[594]; + KeysDown_595 = keysDown[595]; + KeysDown_596 = keysDown[596]; + KeysDown_597 = keysDown[597]; + KeysDown_598 = keysDown[598]; + KeysDown_599 = keysDown[599]; + KeysDown_600 = keysDown[600]; + KeysDown_601 = keysDown[601]; + KeysDown_602 = keysDown[602]; + KeysDown_603 = keysDown[603]; + KeysDown_604 = keysDown[604]; + KeysDown_605 = keysDown[605]; + KeysDown_606 = keysDown[606]; + KeysDown_607 = keysDown[607]; + KeysDown_608 = keysDown[608]; + KeysDown_609 = keysDown[609]; + KeysDown_610 = keysDown[610]; + KeysDown_611 = keysDown[611]; + KeysDown_612 = keysDown[612]; + KeysDown_613 = keysDown[613]; + KeysDown_614 = keysDown[614]; + KeysDown_615 = keysDown[615]; + KeysDown_616 = keysDown[616]; + KeysDown_617 = keysDown[617]; + KeysDown_618 = keysDown[618]; + KeysDown_619 = keysDown[619]; + KeysDown_620 = keysDown[620]; + KeysDown_621 = keysDown[621]; + KeysDown_622 = keysDown[622]; + KeysDown_623 = keysDown[623]; + KeysDown_624 = keysDown[624]; + KeysDown_625 = keysDown[625]; + KeysDown_626 = keysDown[626]; + KeysDown_627 = keysDown[627]; + KeysDown_628 = keysDown[628]; + KeysDown_629 = keysDown[629]; + KeysDown_630 = keysDown[630]; + KeysDown_631 = keysDown[631]; + KeysDown_632 = keysDown[632]; + KeysDown_633 = keysDown[633]; + KeysDown_634 = keysDown[634]; + KeysDown_635 = keysDown[635]; + KeysDown_636 = keysDown[636]; + KeysDown_637 = keysDown[637]; + KeysDown_638 = keysDown[638]; + KeysDown_639 = keysDown[639]; + KeysDown_640 = keysDown[640]; + KeysDown_641 = keysDown[641]; + KeysDown_642 = keysDown[642]; + KeysDown_643 = keysDown[643]; + KeysDown_644 = keysDown[644]; + KeysDown_645 = keysDown[645]; + KeysDown_646 = keysDown[646]; + KeysDown_647 = keysDown[647]; + KeysDown_648 = keysDown[648]; + KeysDown_649 = keysDown[649]; + KeysDown_650 = keysDown[650]; + KeysDown_651 = keysDown[651]; + KeysDown_652 = keysDown[652]; + KeysDown_653 = keysDown[653]; + KeysDown_654 = keysDown[654]; + KeysDown_655 = keysDown[655]; + KeysDown_656 = keysDown[656]; + KeysDown_657 = keysDown[657]; + KeysDown_658 = keysDown[658]; + KeysDown_659 = keysDown[659]; + KeysDown_660 = keysDown[660]; + KeysDown_661 = keysDown[661]; + KeysDown_662 = keysDown[662]; + KeysDown_663 = keysDown[663]; + KeysDown_664 = keysDown[664]; + KeysDown_665 = keysDown[665]; + } + if (navInputs != default) + { + NavInputs_0 = navInputs[0]; + NavInputs_1 = navInputs[1]; + NavInputs_2 = navInputs[2]; + NavInputs_3 = navInputs[3]; + NavInputs_4 = navInputs[4]; + NavInputs_5 = navInputs[5]; + NavInputs_6 = navInputs[6]; + NavInputs_7 = navInputs[7]; + NavInputs_8 = navInputs[8]; + NavInputs_9 = navInputs[9]; + NavInputs_10 = navInputs[10]; + NavInputs_11 = navInputs[11]; + NavInputs_12 = navInputs[12]; + NavInputs_13 = navInputs[13]; + NavInputs_14 = navInputs[14]; + NavInputs_15 = navInputs[15]; + } + UnusedPadding = Unusedpadding; + Ctx = ctx; + MousePos = mousePos; + if (mouseDown != default) + { + MouseDown_0 = mouseDown[0]; + MouseDown_1 = mouseDown[1]; + MouseDown_2 = mouseDown[2]; + MouseDown_3 = mouseDown[3]; + MouseDown_4 = mouseDown[4]; + } + MouseWheel = mouseWheel; + MouseWheelH = mouseWheelH; + MouseSource = mouseSource; + MouseHoveredViewport = mouseHoveredViewport; + KeyCtrl = keyCtrl ? (byte)1 : (byte)0; + KeyShift = keyShift ? (byte)1 : (byte)0; + KeyAlt = keyAlt ? (byte)1 : (byte)0; + KeySuper = keySuper ? (byte)1 : (byte)0; + KeyMods = keyMods; + if (keysData != default) + { + KeysData_0 = keysData[0]; + KeysData_1 = keysData[1]; + KeysData_2 = keysData[2]; + KeysData_3 = keysData[3]; + KeysData_4 = keysData[4]; + KeysData_5 = keysData[5]; + KeysData_6 = keysData[6]; + KeysData_7 = keysData[7]; + KeysData_8 = keysData[8]; + KeysData_9 = keysData[9]; + KeysData_10 = keysData[10]; + KeysData_11 = keysData[11]; + KeysData_12 = keysData[12]; + KeysData_13 = keysData[13]; + KeysData_14 = keysData[14]; + KeysData_15 = keysData[15]; + KeysData_16 = keysData[16]; + KeysData_17 = keysData[17]; + KeysData_18 = keysData[18]; + KeysData_19 = keysData[19]; + KeysData_20 = keysData[20]; + KeysData_21 = keysData[21]; + KeysData_22 = keysData[22]; + KeysData_23 = keysData[23]; + KeysData_24 = keysData[24]; + KeysData_25 = keysData[25]; + KeysData_26 = keysData[26]; + KeysData_27 = keysData[27]; + KeysData_28 = keysData[28]; + KeysData_29 = keysData[29]; + KeysData_30 = keysData[30]; + KeysData_31 = keysData[31]; + KeysData_32 = keysData[32]; + KeysData_33 = keysData[33]; + KeysData_34 = keysData[34]; + KeysData_35 = keysData[35]; + KeysData_36 = keysData[36]; + KeysData_37 = keysData[37]; + KeysData_38 = keysData[38]; + KeysData_39 = keysData[39]; + KeysData_40 = keysData[40]; + KeysData_41 = keysData[41]; + KeysData_42 = keysData[42]; + KeysData_43 = keysData[43]; + KeysData_44 = keysData[44]; + KeysData_45 = keysData[45]; + KeysData_46 = keysData[46]; + KeysData_47 = keysData[47]; + KeysData_48 = keysData[48]; + KeysData_49 = keysData[49]; + KeysData_50 = keysData[50]; + KeysData_51 = keysData[51]; + KeysData_52 = keysData[52]; + KeysData_53 = keysData[53]; + KeysData_54 = keysData[54]; + KeysData_55 = keysData[55]; + KeysData_56 = keysData[56]; + KeysData_57 = keysData[57]; + KeysData_58 = keysData[58]; + KeysData_59 = keysData[59]; + KeysData_60 = keysData[60]; + KeysData_61 = keysData[61]; + KeysData_62 = keysData[62]; + KeysData_63 = keysData[63]; + KeysData_64 = keysData[64]; + KeysData_65 = keysData[65]; + KeysData_66 = keysData[66]; + KeysData_67 = keysData[67]; + KeysData_68 = keysData[68]; + KeysData_69 = keysData[69]; + KeysData_70 = keysData[70]; + KeysData_71 = keysData[71]; + KeysData_72 = keysData[72]; + KeysData_73 = keysData[73]; + KeysData_74 = keysData[74]; + KeysData_75 = keysData[75]; + KeysData_76 = keysData[76]; + KeysData_77 = keysData[77]; + KeysData_78 = keysData[78]; + KeysData_79 = keysData[79]; + KeysData_80 = keysData[80]; + KeysData_81 = keysData[81]; + KeysData_82 = keysData[82]; + KeysData_83 = keysData[83]; + KeysData_84 = keysData[84]; + KeysData_85 = keysData[85]; + KeysData_86 = keysData[86]; + KeysData_87 = keysData[87]; + KeysData_88 = keysData[88]; + KeysData_89 = keysData[89]; + KeysData_90 = keysData[90]; + KeysData_91 = keysData[91]; + KeysData_92 = keysData[92]; + KeysData_93 = keysData[93]; + KeysData_94 = keysData[94]; + KeysData_95 = keysData[95]; + KeysData_96 = keysData[96]; + KeysData_97 = keysData[97]; + KeysData_98 = keysData[98]; + KeysData_99 = keysData[99]; + KeysData_100 = keysData[100]; + KeysData_101 = keysData[101]; + KeysData_102 = keysData[102]; + KeysData_103 = keysData[103]; + KeysData_104 = keysData[104]; + KeysData_105 = keysData[105]; + KeysData_106 = keysData[106]; + KeysData_107 = keysData[107]; + KeysData_108 = keysData[108]; + KeysData_109 = keysData[109]; + KeysData_110 = keysData[110]; + KeysData_111 = keysData[111]; + KeysData_112 = keysData[112]; + KeysData_113 = keysData[113]; + KeysData_114 = keysData[114]; + KeysData_115 = keysData[115]; + KeysData_116 = keysData[116]; + KeysData_117 = keysData[117]; + KeysData_118 = keysData[118]; + KeysData_119 = keysData[119]; + KeysData_120 = keysData[120]; + KeysData_121 = keysData[121]; + KeysData_122 = keysData[122]; + KeysData_123 = keysData[123]; + KeysData_124 = keysData[124]; + KeysData_125 = keysData[125]; + KeysData_126 = keysData[126]; + KeysData_127 = keysData[127]; + KeysData_128 = keysData[128]; + KeysData_129 = keysData[129]; + KeysData_130 = keysData[130]; + KeysData_131 = keysData[131]; + KeysData_132 = keysData[132]; + KeysData_133 = keysData[133]; + KeysData_134 = keysData[134]; + KeysData_135 = keysData[135]; + KeysData_136 = keysData[136]; + KeysData_137 = keysData[137]; + KeysData_138 = keysData[138]; + KeysData_139 = keysData[139]; + KeysData_140 = keysData[140]; + KeysData_141 = keysData[141]; + KeysData_142 = keysData[142]; + KeysData_143 = keysData[143]; + KeysData_144 = keysData[144]; + KeysData_145 = keysData[145]; + KeysData_146 = keysData[146]; + KeysData_147 = keysData[147]; + KeysData_148 = keysData[148]; + KeysData_149 = keysData[149]; + KeysData_150 = keysData[150]; + KeysData_151 = keysData[151]; + KeysData_152 = keysData[152]; + KeysData_153 = keysData[153]; + KeysData_154 = keysData[154]; + KeysData_155 = keysData[155]; + KeysData_156 = keysData[156]; + KeysData_157 = keysData[157]; + KeysData_158 = keysData[158]; + KeysData_159 = keysData[159]; + KeysData_160 = keysData[160]; + KeysData_161 = keysData[161]; + KeysData_162 = keysData[162]; + KeysData_163 = keysData[163]; + KeysData_164 = keysData[164]; + KeysData_165 = keysData[165]; + KeysData_166 = keysData[166]; + KeysData_167 = keysData[167]; + KeysData_168 = keysData[168]; + KeysData_169 = keysData[169]; + KeysData_170 = keysData[170]; + KeysData_171 = keysData[171]; + KeysData_172 = keysData[172]; + KeysData_173 = keysData[173]; + KeysData_174 = keysData[174]; + KeysData_175 = keysData[175]; + KeysData_176 = keysData[176]; + KeysData_177 = keysData[177]; + KeysData_178 = keysData[178]; + KeysData_179 = keysData[179]; + KeysData_180 = keysData[180]; + KeysData_181 = keysData[181]; + KeysData_182 = keysData[182]; + KeysData_183 = keysData[183]; + KeysData_184 = keysData[184]; + KeysData_185 = keysData[185]; + KeysData_186 = keysData[186]; + KeysData_187 = keysData[187]; + KeysData_188 = keysData[188]; + KeysData_189 = keysData[189]; + KeysData_190 = keysData[190]; + KeysData_191 = keysData[191]; + KeysData_192 = keysData[192]; + KeysData_193 = keysData[193]; + KeysData_194 = keysData[194]; + KeysData_195 = keysData[195]; + KeysData_196 = keysData[196]; + KeysData_197 = keysData[197]; + KeysData_198 = keysData[198]; + KeysData_199 = keysData[199]; + KeysData_200 = keysData[200]; + KeysData_201 = keysData[201]; + KeysData_202 = keysData[202]; + KeysData_203 = keysData[203]; + KeysData_204 = keysData[204]; + KeysData_205 = keysData[205]; + KeysData_206 = keysData[206]; + KeysData_207 = keysData[207]; + KeysData_208 = keysData[208]; + KeysData_209 = keysData[209]; + KeysData_210 = keysData[210]; + KeysData_211 = keysData[211]; + KeysData_212 = keysData[212]; + KeysData_213 = keysData[213]; + KeysData_214 = keysData[214]; + KeysData_215 = keysData[215]; + KeysData_216 = keysData[216]; + KeysData_217 = keysData[217]; + KeysData_218 = keysData[218]; + KeysData_219 = keysData[219]; + KeysData_220 = keysData[220]; + KeysData_221 = keysData[221]; + KeysData_222 = keysData[222]; + KeysData_223 = keysData[223]; + KeysData_224 = keysData[224]; + KeysData_225 = keysData[225]; + KeysData_226 = keysData[226]; + KeysData_227 = keysData[227]; + KeysData_228 = keysData[228]; + KeysData_229 = keysData[229]; + KeysData_230 = keysData[230]; + KeysData_231 = keysData[231]; + KeysData_232 = keysData[232]; + KeysData_233 = keysData[233]; + KeysData_234 = keysData[234]; + KeysData_235 = keysData[235]; + KeysData_236 = keysData[236]; + KeysData_237 = keysData[237]; + KeysData_238 = keysData[238]; + KeysData_239 = keysData[239]; + KeysData_240 = keysData[240]; + KeysData_241 = keysData[241]; + KeysData_242 = keysData[242]; + KeysData_243 = keysData[243]; + KeysData_244 = keysData[244]; + KeysData_245 = keysData[245]; + KeysData_246 = keysData[246]; + KeysData_247 = keysData[247]; + KeysData_248 = keysData[248]; + KeysData_249 = keysData[249]; + KeysData_250 = keysData[250]; + KeysData_251 = keysData[251]; + KeysData_252 = keysData[252]; + KeysData_253 = keysData[253]; + KeysData_254 = keysData[254]; + KeysData_255 = keysData[255]; + KeysData_256 = keysData[256]; + KeysData_257 = keysData[257]; + KeysData_258 = keysData[258]; + KeysData_259 = keysData[259]; + KeysData_260 = keysData[260]; + KeysData_261 = keysData[261]; + KeysData_262 = keysData[262]; + KeysData_263 = keysData[263]; + KeysData_264 = keysData[264]; + KeysData_265 = keysData[265]; + KeysData_266 = keysData[266]; + KeysData_267 = keysData[267]; + KeysData_268 = keysData[268]; + KeysData_269 = keysData[269]; + KeysData_270 = keysData[270]; + KeysData_271 = keysData[271]; + KeysData_272 = keysData[272]; + KeysData_273 = keysData[273]; + KeysData_274 = keysData[274]; + KeysData_275 = keysData[275]; + KeysData_276 = keysData[276]; + KeysData_277 = keysData[277]; + KeysData_278 = keysData[278]; + KeysData_279 = keysData[279]; + KeysData_280 = keysData[280]; + KeysData_281 = keysData[281]; + KeysData_282 = keysData[282]; + KeysData_283 = keysData[283]; + KeysData_284 = keysData[284]; + KeysData_285 = keysData[285]; + KeysData_286 = keysData[286]; + KeysData_287 = keysData[287]; + KeysData_288 = keysData[288]; + KeysData_289 = keysData[289]; + KeysData_290 = keysData[290]; + KeysData_291 = keysData[291]; + KeysData_292 = keysData[292]; + KeysData_293 = keysData[293]; + KeysData_294 = keysData[294]; + KeysData_295 = keysData[295]; + KeysData_296 = keysData[296]; + KeysData_297 = keysData[297]; + KeysData_298 = keysData[298]; + KeysData_299 = keysData[299]; + KeysData_300 = keysData[300]; + KeysData_301 = keysData[301]; + KeysData_302 = keysData[302]; + KeysData_303 = keysData[303]; + KeysData_304 = keysData[304]; + KeysData_305 = keysData[305]; + KeysData_306 = keysData[306]; + KeysData_307 = keysData[307]; + KeysData_308 = keysData[308]; + KeysData_309 = keysData[309]; + KeysData_310 = keysData[310]; + KeysData_311 = keysData[311]; + KeysData_312 = keysData[312]; + KeysData_313 = keysData[313]; + KeysData_314 = keysData[314]; + KeysData_315 = keysData[315]; + KeysData_316 = keysData[316]; + KeysData_317 = keysData[317]; + KeysData_318 = keysData[318]; + KeysData_319 = keysData[319]; + KeysData_320 = keysData[320]; + KeysData_321 = keysData[321]; + KeysData_322 = keysData[322]; + KeysData_323 = keysData[323]; + KeysData_324 = keysData[324]; + KeysData_325 = keysData[325]; + KeysData_326 = keysData[326]; + KeysData_327 = keysData[327]; + KeysData_328 = keysData[328]; + KeysData_329 = keysData[329]; + KeysData_330 = keysData[330]; + KeysData_331 = keysData[331]; + KeysData_332 = keysData[332]; + KeysData_333 = keysData[333]; + KeysData_334 = keysData[334]; + KeysData_335 = keysData[335]; + KeysData_336 = keysData[336]; + KeysData_337 = keysData[337]; + KeysData_338 = keysData[338]; + KeysData_339 = keysData[339]; + KeysData_340 = keysData[340]; + KeysData_341 = keysData[341]; + KeysData_342 = keysData[342]; + KeysData_343 = keysData[343]; + KeysData_344 = keysData[344]; + KeysData_345 = keysData[345]; + KeysData_346 = keysData[346]; + KeysData_347 = keysData[347]; + KeysData_348 = keysData[348]; + KeysData_349 = keysData[349]; + KeysData_350 = keysData[350]; + KeysData_351 = keysData[351]; + KeysData_352 = keysData[352]; + KeysData_353 = keysData[353]; + KeysData_354 = keysData[354]; + KeysData_355 = keysData[355]; + KeysData_356 = keysData[356]; + KeysData_357 = keysData[357]; + KeysData_358 = keysData[358]; + KeysData_359 = keysData[359]; + KeysData_360 = keysData[360]; + KeysData_361 = keysData[361]; + KeysData_362 = keysData[362]; + KeysData_363 = keysData[363]; + KeysData_364 = keysData[364]; + KeysData_365 = keysData[365]; + KeysData_366 = keysData[366]; + KeysData_367 = keysData[367]; + KeysData_368 = keysData[368]; + KeysData_369 = keysData[369]; + KeysData_370 = keysData[370]; + KeysData_371 = keysData[371]; + KeysData_372 = keysData[372]; + KeysData_373 = keysData[373]; + KeysData_374 = keysData[374]; + KeysData_375 = keysData[375]; + KeysData_376 = keysData[376]; + KeysData_377 = keysData[377]; + KeysData_378 = keysData[378]; + KeysData_379 = keysData[379]; + KeysData_380 = keysData[380]; + KeysData_381 = keysData[381]; + KeysData_382 = keysData[382]; + KeysData_383 = keysData[383]; + KeysData_384 = keysData[384]; + KeysData_385 = keysData[385]; + KeysData_386 = keysData[386]; + KeysData_387 = keysData[387]; + KeysData_388 = keysData[388]; + KeysData_389 = keysData[389]; + KeysData_390 = keysData[390]; + KeysData_391 = keysData[391]; + KeysData_392 = keysData[392]; + KeysData_393 = keysData[393]; + KeysData_394 = keysData[394]; + KeysData_395 = keysData[395]; + KeysData_396 = keysData[396]; + KeysData_397 = keysData[397]; + KeysData_398 = keysData[398]; + KeysData_399 = keysData[399]; + KeysData_400 = keysData[400]; + KeysData_401 = keysData[401]; + KeysData_402 = keysData[402]; + KeysData_403 = keysData[403]; + KeysData_404 = keysData[404]; + KeysData_405 = keysData[405]; + KeysData_406 = keysData[406]; + KeysData_407 = keysData[407]; + KeysData_408 = keysData[408]; + KeysData_409 = keysData[409]; + KeysData_410 = keysData[410]; + KeysData_411 = keysData[411]; + KeysData_412 = keysData[412]; + KeysData_413 = keysData[413]; + KeysData_414 = keysData[414]; + KeysData_415 = keysData[415]; + KeysData_416 = keysData[416]; + KeysData_417 = keysData[417]; + KeysData_418 = keysData[418]; + KeysData_419 = keysData[419]; + KeysData_420 = keysData[420]; + KeysData_421 = keysData[421]; + KeysData_422 = keysData[422]; + KeysData_423 = keysData[423]; + KeysData_424 = keysData[424]; + KeysData_425 = keysData[425]; + KeysData_426 = keysData[426]; + KeysData_427 = keysData[427]; + KeysData_428 = keysData[428]; + KeysData_429 = keysData[429]; + KeysData_430 = keysData[430]; + KeysData_431 = keysData[431]; + KeysData_432 = keysData[432]; + KeysData_433 = keysData[433]; + KeysData_434 = keysData[434]; + KeysData_435 = keysData[435]; + KeysData_436 = keysData[436]; + KeysData_437 = keysData[437]; + KeysData_438 = keysData[438]; + KeysData_439 = keysData[439]; + KeysData_440 = keysData[440]; + KeysData_441 = keysData[441]; + KeysData_442 = keysData[442]; + KeysData_443 = keysData[443]; + KeysData_444 = keysData[444]; + KeysData_445 = keysData[445]; + KeysData_446 = keysData[446]; + KeysData_447 = keysData[447]; + KeysData_448 = keysData[448]; + KeysData_449 = keysData[449]; + KeysData_450 = keysData[450]; + KeysData_451 = keysData[451]; + KeysData_452 = keysData[452]; + KeysData_453 = keysData[453]; + KeysData_454 = keysData[454]; + KeysData_455 = keysData[455]; + KeysData_456 = keysData[456]; + KeysData_457 = keysData[457]; + KeysData_458 = keysData[458]; + KeysData_459 = keysData[459]; + KeysData_460 = keysData[460]; + KeysData_461 = keysData[461]; + KeysData_462 = keysData[462]; + KeysData_463 = keysData[463]; + KeysData_464 = keysData[464]; + KeysData_465 = keysData[465]; + KeysData_466 = keysData[466]; + KeysData_467 = keysData[467]; + KeysData_468 = keysData[468]; + KeysData_469 = keysData[469]; + KeysData_470 = keysData[470]; + KeysData_471 = keysData[471]; + KeysData_472 = keysData[472]; + KeysData_473 = keysData[473]; + KeysData_474 = keysData[474]; + KeysData_475 = keysData[475]; + KeysData_476 = keysData[476]; + KeysData_477 = keysData[477]; + KeysData_478 = keysData[478]; + KeysData_479 = keysData[479]; + KeysData_480 = keysData[480]; + KeysData_481 = keysData[481]; + KeysData_482 = keysData[482]; + KeysData_483 = keysData[483]; + KeysData_484 = keysData[484]; + KeysData_485 = keysData[485]; + KeysData_486 = keysData[486]; + KeysData_487 = keysData[487]; + KeysData_488 = keysData[488]; + KeysData_489 = keysData[489]; + KeysData_490 = keysData[490]; + KeysData_491 = keysData[491]; + KeysData_492 = keysData[492]; + KeysData_493 = keysData[493]; + KeysData_494 = keysData[494]; + KeysData_495 = keysData[495]; + KeysData_496 = keysData[496]; + KeysData_497 = keysData[497]; + KeysData_498 = keysData[498]; + KeysData_499 = keysData[499]; + KeysData_500 = keysData[500]; + KeysData_501 = keysData[501]; + KeysData_502 = keysData[502]; + KeysData_503 = keysData[503]; + KeysData_504 = keysData[504]; + KeysData_505 = keysData[505]; + KeysData_506 = keysData[506]; + KeysData_507 = keysData[507]; + KeysData_508 = keysData[508]; + KeysData_509 = keysData[509]; + KeysData_510 = keysData[510]; + KeysData_511 = keysData[511]; + KeysData_512 = keysData[512]; + KeysData_513 = keysData[513]; + KeysData_514 = keysData[514]; + KeysData_515 = keysData[515]; + KeysData_516 = keysData[516]; + KeysData_517 = keysData[517]; + KeysData_518 = keysData[518]; + KeysData_519 = keysData[519]; + KeysData_520 = keysData[520]; + KeysData_521 = keysData[521]; + KeysData_522 = keysData[522]; + KeysData_523 = keysData[523]; + KeysData_524 = keysData[524]; + KeysData_525 = keysData[525]; + KeysData_526 = keysData[526]; + KeysData_527 = keysData[527]; + KeysData_528 = keysData[528]; + KeysData_529 = keysData[529]; + KeysData_530 = keysData[530]; + KeysData_531 = keysData[531]; + KeysData_532 = keysData[532]; + KeysData_533 = keysData[533]; + KeysData_534 = keysData[534]; + KeysData_535 = keysData[535]; + KeysData_536 = keysData[536]; + KeysData_537 = keysData[537]; + KeysData_538 = keysData[538]; + KeysData_539 = keysData[539]; + KeysData_540 = keysData[540]; + KeysData_541 = keysData[541]; + KeysData_542 = keysData[542]; + KeysData_543 = keysData[543]; + KeysData_544 = keysData[544]; + KeysData_545 = keysData[545]; + KeysData_546 = keysData[546]; + KeysData_547 = keysData[547]; + KeysData_548 = keysData[548]; + KeysData_549 = keysData[549]; + KeysData_550 = keysData[550]; + KeysData_551 = keysData[551]; + KeysData_552 = keysData[552]; + KeysData_553 = keysData[553]; + KeysData_554 = keysData[554]; + KeysData_555 = keysData[555]; + KeysData_556 = keysData[556]; + KeysData_557 = keysData[557]; + KeysData_558 = keysData[558]; + KeysData_559 = keysData[559]; + KeysData_560 = keysData[560]; + KeysData_561 = keysData[561]; + KeysData_562 = keysData[562]; + KeysData_563 = keysData[563]; + KeysData_564 = keysData[564]; + KeysData_565 = keysData[565]; + KeysData_566 = keysData[566]; + KeysData_567 = keysData[567]; + KeysData_568 = keysData[568]; + KeysData_569 = keysData[569]; + KeysData_570 = keysData[570]; + KeysData_571 = keysData[571]; + KeysData_572 = keysData[572]; + KeysData_573 = keysData[573]; + KeysData_574 = keysData[574]; + KeysData_575 = keysData[575]; + KeysData_576 = keysData[576]; + KeysData_577 = keysData[577]; + KeysData_578 = keysData[578]; + KeysData_579 = keysData[579]; + KeysData_580 = keysData[580]; + KeysData_581 = keysData[581]; + KeysData_582 = keysData[582]; + KeysData_583 = keysData[583]; + KeysData_584 = keysData[584]; + KeysData_585 = keysData[585]; + KeysData_586 = keysData[586]; + KeysData_587 = keysData[587]; + KeysData_588 = keysData[588]; + KeysData_589 = keysData[589]; + KeysData_590 = keysData[590]; + KeysData_591 = keysData[591]; + KeysData_592 = keysData[592]; + KeysData_593 = keysData[593]; + KeysData_594 = keysData[594]; + KeysData_595 = keysData[595]; + KeysData_596 = keysData[596]; + KeysData_597 = keysData[597]; + KeysData_598 = keysData[598]; + KeysData_599 = keysData[599]; + KeysData_600 = keysData[600]; + KeysData_601 = keysData[601]; + KeysData_602 = keysData[602]; + KeysData_603 = keysData[603]; + KeysData_604 = keysData[604]; + KeysData_605 = keysData[605]; + KeysData_606 = keysData[606]; + KeysData_607 = keysData[607]; + KeysData_608 = keysData[608]; + KeysData_609 = keysData[609]; + KeysData_610 = keysData[610]; + KeysData_611 = keysData[611]; + KeysData_612 = keysData[612]; + KeysData_613 = keysData[613]; + KeysData_614 = keysData[614]; + KeysData_615 = keysData[615]; + KeysData_616 = keysData[616]; + KeysData_617 = keysData[617]; + KeysData_618 = keysData[618]; + KeysData_619 = keysData[619]; + KeysData_620 = keysData[620]; + KeysData_621 = keysData[621]; + KeysData_622 = keysData[622]; + KeysData_623 = keysData[623]; + KeysData_624 = keysData[624]; + KeysData_625 = keysData[625]; + KeysData_626 = keysData[626]; + KeysData_627 = keysData[627]; + KeysData_628 = keysData[628]; + KeysData_629 = keysData[629]; + KeysData_630 = keysData[630]; + KeysData_631 = keysData[631]; + KeysData_632 = keysData[632]; + KeysData_633 = keysData[633]; + KeysData_634 = keysData[634]; + KeysData_635 = keysData[635]; + KeysData_636 = keysData[636]; + KeysData_637 = keysData[637]; + KeysData_638 = keysData[638]; + KeysData_639 = keysData[639]; + KeysData_640 = keysData[640]; + KeysData_641 = keysData[641]; + KeysData_642 = keysData[642]; + KeysData_643 = keysData[643]; + KeysData_644 = keysData[644]; + KeysData_645 = keysData[645]; + KeysData_646 = keysData[646]; + KeysData_647 = keysData[647]; + KeysData_648 = keysData[648]; + KeysData_649 = keysData[649]; + KeysData_650 = keysData[650]; + KeysData_651 = keysData[651]; + KeysData_652 = keysData[652]; + KeysData_653 = keysData[653]; + KeysData_654 = keysData[654]; + KeysData_655 = keysData[655]; + KeysData_656 = keysData[656]; + KeysData_657 = keysData[657]; + KeysData_658 = keysData[658]; + KeysData_659 = keysData[659]; + KeysData_660 = keysData[660]; + KeysData_661 = keysData[661]; + KeysData_662 = keysData[662]; + KeysData_663 = keysData[663]; + KeysData_664 = keysData[664]; + KeysData_665 = keysData[665]; + } + WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; + MousePosPrev = mousePosPrev; + if (mouseClickedPos != default) + { + MouseClickedPos_0 = mouseClickedPos[0]; + MouseClickedPos_1 = mouseClickedPos[1]; + MouseClickedPos_2 = mouseClickedPos[2]; + MouseClickedPos_3 = mouseClickedPos[3]; + MouseClickedPos_4 = mouseClickedPos[4]; + } + if (mouseClickedTime != default) + { + MouseClickedTime_0 = mouseClickedTime[0]; + MouseClickedTime_1 = mouseClickedTime[1]; + MouseClickedTime_2 = mouseClickedTime[2]; + MouseClickedTime_3 = mouseClickedTime[3]; + MouseClickedTime_4 = mouseClickedTime[4]; + } + if (mouseClicked != default) + { + MouseClicked_0 = mouseClicked[0]; + MouseClicked_1 = mouseClicked[1]; + MouseClicked_2 = mouseClicked[2]; + MouseClicked_3 = mouseClicked[3]; + MouseClicked_4 = mouseClicked[4]; + } + if (mouseDoubleClicked != default) + { + MouseDoubleClicked_0 = mouseDoubleClicked[0]; + MouseDoubleClicked_1 = mouseDoubleClicked[1]; + MouseDoubleClicked_2 = mouseDoubleClicked[2]; + MouseDoubleClicked_3 = mouseDoubleClicked[3]; + MouseDoubleClicked_4 = mouseDoubleClicked[4]; + } + if (mouseClickedCount != default) + { + MouseClickedCount_0 = mouseClickedCount[0]; + MouseClickedCount_1 = mouseClickedCount[1]; + MouseClickedCount_2 = mouseClickedCount[2]; + MouseClickedCount_3 = mouseClickedCount[3]; + MouseClickedCount_4 = mouseClickedCount[4]; + } + if (mouseClickedLastCount != default) + { + MouseClickedLastCount_0 = mouseClickedLastCount[0]; + MouseClickedLastCount_1 = mouseClickedLastCount[1]; + MouseClickedLastCount_2 = mouseClickedLastCount[2]; + MouseClickedLastCount_3 = mouseClickedLastCount[3]; + MouseClickedLastCount_4 = mouseClickedLastCount[4]; + } + if (mouseReleased != default) + { + MouseReleased_0 = mouseReleased[0]; + MouseReleased_1 = mouseReleased[1]; + MouseReleased_2 = mouseReleased[2]; + MouseReleased_3 = mouseReleased[3]; + MouseReleased_4 = mouseReleased[4]; + } + if (mouseDownOwned != default) + { + MouseDownOwned_0 = mouseDownOwned[0]; + MouseDownOwned_1 = mouseDownOwned[1]; + MouseDownOwned_2 = mouseDownOwned[2]; + MouseDownOwned_3 = mouseDownOwned[3]; + MouseDownOwned_4 = mouseDownOwned[4]; + } + if (mouseDownOwnedUnlessPopupClose != default) + { + MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; + MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; + MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; + MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; + MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; + } + MouseWheelRequestAxisSwap = mouseWheelRequestAxisSwap ? (byte)1 : (byte)0; + if (mouseDownDuration != default) + { + MouseDownDuration_0 = mouseDownDuration[0]; + MouseDownDuration_1 = mouseDownDuration[1]; + MouseDownDuration_2 = mouseDownDuration[2]; + MouseDownDuration_3 = mouseDownDuration[3]; + MouseDownDuration_4 = mouseDownDuration[4]; + } + if (mouseDownDurationPrev != default) + { + MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; + MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; + MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; + MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; + MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; + } + if (mouseDragMaxDistanceAbs != default) + { + MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; + MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; + MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; + MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; + MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; + } + if (mouseDragMaxDistanceSqr != default) + { + MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; + MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; + MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; + MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; + MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; + } + PenPressure = penPressure; + AppFocusLost = appFocusLost ? (byte)1 : (byte)0; + AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; + BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; + BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; + InputQueueSurrogate = inputQueueSurrogate; + InputQueueCharacters = inputQueueCharacters; + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Structures.003.cs b/Hexa.NET.ImGui/Generated/Structures.003.cs new file mode 100644 index 0000000..ef44ea1 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Structures.003.cs @@ -0,0 +1,4959 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawChannel + { + + /// /// To be documented. /// public unsafe ImGuiIO(int configFlags = default, int backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, void* userData = default, ImFontAtlas* fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFont* fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configInputTextEnterKeepActive = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, bool configDebugBeginReturnValueOnce = default, bool configDebugBeginReturnValueLoop = default, bool configDebugIgnoreFocusLoss = default, bool configDebugIniSettings = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate* getClipboardTextFn = default, delegate* setClipboardTextFn = default, void* clipboardUserData = default, delegate* setPlatformImeDataFn = default, ushort platformLocaleDecimalPoint = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, Vector2 mouseDelta = default, Span keyMap = default, Span keysDown = default, Span navInputs = default, void* Unusedpadding = default, ImGuiContext* ctx = default, Vector2 mousePos = default, Span mouseDown = default, float mouseWheel = default, float mouseWheelH = default, ImGuiMouseSource mouseSource = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, int keyMods = default, Span keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Span mouseClickedPos = default, Span mouseClickedTime = default, Span mouseClicked = default, Span mouseDoubleClicked = default, Span mouseClickedCount = default, Span mouseClickedLastCount = default, Span mouseReleased = default, Span mouseDownOwned = default, Span mouseDownOwnedUnlessPopupClose = default, bool mouseWheelRequestAxisSwap = default, Span mouseDownDuration = default, Span mouseDownDurationPrev = default, Span mouseDragMaxDistanceAbs = default, Span mouseDragMaxDistanceSqr = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, byte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVectorImWchar inputQueueCharacters = default) + { + ConfigFlags = configFlags; + BackendFlags = backendFlags; + DisplaySize = displaySize; + DeltaTime = deltaTime; + IniSavingRate = iniSavingRate; + IniFilename = iniFilename; + LogFilename = logFilename; + UserData = userData; + Fonts = fonts; + FontGlobalScale = fontGlobalScale; + FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; + FontDefault = fontDefault; + DisplayFramebufferScale = displayFramebufferScale; + ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; + ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; + ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; + ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; + ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; + ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; + ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; + ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; + MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; + ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; + ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; + ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; + ConfigInputTextEnterKeepActive = configInputTextEnterKeepActive ? (byte)1 : (byte)0; + ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; + ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; + ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; + ConfigMemoryCompactTimer = configMemoryCompactTimer; + MouseDoubleClickTime = mouseDoubleClickTime; + MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; + MouseDragThreshold = mouseDragThreshold; + KeyRepeatDelay = keyRepeatDelay; + KeyRepeatRate = keyRepeatRate; + ConfigDebugBeginReturnValueOnce = configDebugBeginReturnValueOnce ? (byte)1 : (byte)0; + ConfigDebugBeginReturnValueLoop = configDebugBeginReturnValueLoop ? (byte)1 : (byte)0; + ConfigDebugIgnoreFocusLoss = configDebugIgnoreFocusLoss ? (byte)1 : (byte)0; + ConfigDebugIniSettings = configDebugIniSettings ? (byte)1 : (byte)0; + BackendPlatformName = backendPlatformName; + BackendRendererName = backendRendererName; + BackendPlatformUserData = backendPlatformUserData; + BackendRendererUserData = backendRendererUserData; + BackendLanguageUserData = backendLanguageUserData; + GetClipboardTextFn = (void*)getClipboardTextFn; + SetClipboardTextFn = (void*)setClipboardTextFn; + ClipboardUserData = clipboardUserData; + SetPlatformImeDataFn = (void*)setPlatformImeDataFn; + PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; + WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; + WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; + WantTextInput = wantTextInput ? (byte)1 : (byte)0; + WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; + WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; + NavActive = navActive ? (byte)1 : (byte)0; + NavVisible = navVisible ? (byte)1 : (byte)0; + Framerate = framerate; + MetricsRenderVertices = metricsRenderVertices; + MetricsRenderIndices = metricsRenderIndices; + MetricsRenderWindows = metricsRenderWindows; + MetricsActiveWindows = metricsActiveWindows; + MouseDelta = mouseDelta; + if (keyMap != default) + { + KeyMap_0 = keyMap[0]; + KeyMap_1 = keyMap[1]; + KeyMap_2 = keyMap[2]; + KeyMap_3 = keyMap[3]; + KeyMap_4 = keyMap[4]; + KeyMap_5 = keyMap[5]; + KeyMap_6 = keyMap[6]; + KeyMap_7 = keyMap[7]; + KeyMap_8 = keyMap[8]; + KeyMap_9 = keyMap[9]; + KeyMap_10 = keyMap[10]; + KeyMap_11 = keyMap[11]; + KeyMap_12 = keyMap[12]; + KeyMap_13 = keyMap[13]; + KeyMap_14 = keyMap[14]; + KeyMap_15 = keyMap[15]; + KeyMap_16 = keyMap[16]; + KeyMap_17 = keyMap[17]; + KeyMap_18 = keyMap[18]; + KeyMap_19 = keyMap[19]; + KeyMap_20 = keyMap[20]; + KeyMap_21 = keyMap[21]; + KeyMap_22 = keyMap[22]; + KeyMap_23 = keyMap[23]; + KeyMap_24 = keyMap[24]; + KeyMap_25 = keyMap[25]; + KeyMap_26 = keyMap[26]; + KeyMap_27 = keyMap[27]; + KeyMap_28 = keyMap[28]; + KeyMap_29 = keyMap[29]; + KeyMap_30 = keyMap[30]; + KeyMap_31 = keyMap[31]; + KeyMap_32 = keyMap[32]; + KeyMap_33 = keyMap[33]; + KeyMap_34 = keyMap[34]; + KeyMap_35 = keyMap[35]; + KeyMap_36 = keyMap[36]; + KeyMap_37 = keyMap[37]; + KeyMap_38 = keyMap[38]; + KeyMap_39 = keyMap[39]; + KeyMap_40 = keyMap[40]; + KeyMap_41 = keyMap[41]; + KeyMap_42 = keyMap[42]; + KeyMap_43 = keyMap[43]; + KeyMap_44 = keyMap[44]; + KeyMap_45 = keyMap[45]; + KeyMap_46 = keyMap[46]; + KeyMap_47 = keyMap[47]; + KeyMap_48 = keyMap[48]; + KeyMap_49 = keyMap[49]; + KeyMap_50 = keyMap[50]; + KeyMap_51 = keyMap[51]; + KeyMap_52 = keyMap[52]; + KeyMap_53 = keyMap[53]; + KeyMap_54 = keyMap[54]; + KeyMap_55 = keyMap[55]; + KeyMap_56 = keyMap[56]; + KeyMap_57 = keyMap[57]; + KeyMap_58 = keyMap[58]; + KeyMap_59 = keyMap[59]; + KeyMap_60 = keyMap[60]; + KeyMap_61 = keyMap[61]; + KeyMap_62 = keyMap[62]; + KeyMap_63 = keyMap[63]; + KeyMap_64 = keyMap[64]; + KeyMap_65 = keyMap[65]; + KeyMap_66 = keyMap[66]; + KeyMap_67 = keyMap[67]; + KeyMap_68 = keyMap[68]; + KeyMap_69 = keyMap[69]; + KeyMap_70 = keyMap[70]; + KeyMap_71 = keyMap[71]; + KeyMap_72 = keyMap[72]; + KeyMap_73 = keyMap[73]; + KeyMap_74 = keyMap[74]; + KeyMap_75 = keyMap[75]; + KeyMap_76 = keyMap[76]; + KeyMap_77 = keyMap[77]; + KeyMap_78 = keyMap[78]; + KeyMap_79 = keyMap[79]; + KeyMap_80 = keyMap[80]; + KeyMap_81 = keyMap[81]; + KeyMap_82 = keyMap[82]; + KeyMap_83 = keyMap[83]; + KeyMap_84 = keyMap[84]; + KeyMap_85 = keyMap[85]; + KeyMap_86 = keyMap[86]; + KeyMap_87 = keyMap[87]; + KeyMap_88 = keyMap[88]; + KeyMap_89 = keyMap[89]; + KeyMap_90 = keyMap[90]; + KeyMap_91 = keyMap[91]; + KeyMap_92 = keyMap[92]; + KeyMap_93 = keyMap[93]; + KeyMap_94 = keyMap[94]; + KeyMap_95 = keyMap[95]; + KeyMap_96 = keyMap[96]; + KeyMap_97 = keyMap[97]; + KeyMap_98 = keyMap[98]; + KeyMap_99 = keyMap[99]; + KeyMap_100 = keyMap[100]; + KeyMap_101 = keyMap[101]; + KeyMap_102 = keyMap[102]; + KeyMap_103 = keyMap[103]; + KeyMap_104 = keyMap[104]; + KeyMap_105 = keyMap[105]; + KeyMap_106 = keyMap[106]; + KeyMap_107 = keyMap[107]; + KeyMap_108 = keyMap[108]; + KeyMap_109 = keyMap[109]; + KeyMap_110 = keyMap[110]; + KeyMap_111 = keyMap[111]; + KeyMap_112 = keyMap[112]; + KeyMap_113 = keyMap[113]; + KeyMap_114 = keyMap[114]; + KeyMap_115 = keyMap[115]; + KeyMap_116 = keyMap[116]; + KeyMap_117 = keyMap[117]; + KeyMap_118 = keyMap[118]; + KeyMap_119 = keyMap[119]; + KeyMap_120 = keyMap[120]; + KeyMap_121 = keyMap[121]; + KeyMap_122 = keyMap[122]; + KeyMap_123 = keyMap[123]; + KeyMap_124 = keyMap[124]; + KeyMap_125 = keyMap[125]; + KeyMap_126 = keyMap[126]; + KeyMap_127 = keyMap[127]; + KeyMap_128 = keyMap[128]; + KeyMap_129 = keyMap[129]; + KeyMap_130 = keyMap[130]; + KeyMap_131 = keyMap[131]; + KeyMap_132 = keyMap[132]; + KeyMap_133 = keyMap[133]; + KeyMap_134 = keyMap[134]; + KeyMap_135 = keyMap[135]; + KeyMap_136 = keyMap[136]; + KeyMap_137 = keyMap[137]; + KeyMap_138 = keyMap[138]; + KeyMap_139 = keyMap[139]; + KeyMap_140 = keyMap[140]; + KeyMap_141 = keyMap[141]; + KeyMap_142 = keyMap[142]; + KeyMap_143 = keyMap[143]; + KeyMap_144 = keyMap[144]; + KeyMap_145 = keyMap[145]; + KeyMap_146 = keyMap[146]; + KeyMap_147 = keyMap[147]; + KeyMap_148 = keyMap[148]; + KeyMap_149 = keyMap[149]; + KeyMap_150 = keyMap[150]; + KeyMap_151 = keyMap[151]; + KeyMap_152 = keyMap[152]; + KeyMap_153 = keyMap[153]; + KeyMap_154 = keyMap[154]; + KeyMap_155 = keyMap[155]; + KeyMap_156 = keyMap[156]; + KeyMap_157 = keyMap[157]; + KeyMap_158 = keyMap[158]; + KeyMap_159 = keyMap[159]; + KeyMap_160 = keyMap[160]; + KeyMap_161 = keyMap[161]; + KeyMap_162 = keyMap[162]; + KeyMap_163 = keyMap[163]; + KeyMap_164 = keyMap[164]; + KeyMap_165 = keyMap[165]; + KeyMap_166 = keyMap[166]; + KeyMap_167 = keyMap[167]; + KeyMap_168 = keyMap[168]; + KeyMap_169 = keyMap[169]; + KeyMap_170 = keyMap[170]; + KeyMap_171 = keyMap[171]; + KeyMap_172 = keyMap[172]; + KeyMap_173 = keyMap[173]; + KeyMap_174 = keyMap[174]; + KeyMap_175 = keyMap[175]; + KeyMap_176 = keyMap[176]; + KeyMap_177 = keyMap[177]; + KeyMap_178 = keyMap[178]; + KeyMap_179 = keyMap[179]; + KeyMap_180 = keyMap[180]; + KeyMap_181 = keyMap[181]; + KeyMap_182 = keyMap[182]; + KeyMap_183 = keyMap[183]; + KeyMap_184 = keyMap[184]; + KeyMap_185 = keyMap[185]; + KeyMap_186 = keyMap[186]; + KeyMap_187 = keyMap[187]; + KeyMap_188 = keyMap[188]; + KeyMap_189 = keyMap[189]; + KeyMap_190 = keyMap[190]; + KeyMap_191 = keyMap[191]; + KeyMap_192 = keyMap[192]; + KeyMap_193 = keyMap[193]; + KeyMap_194 = keyMap[194]; + KeyMap_195 = keyMap[195]; + KeyMap_196 = keyMap[196]; + KeyMap_197 = keyMap[197]; + KeyMap_198 = keyMap[198]; + KeyMap_199 = keyMap[199]; + KeyMap_200 = keyMap[200]; + KeyMap_201 = keyMap[201]; + KeyMap_202 = keyMap[202]; + KeyMap_203 = keyMap[203]; + KeyMap_204 = keyMap[204]; + KeyMap_205 = keyMap[205]; + KeyMap_206 = keyMap[206]; + KeyMap_207 = keyMap[207]; + KeyMap_208 = keyMap[208]; + KeyMap_209 = keyMap[209]; + KeyMap_210 = keyMap[210]; + KeyMap_211 = keyMap[211]; + KeyMap_212 = keyMap[212]; + KeyMap_213 = keyMap[213]; + KeyMap_214 = keyMap[214]; + KeyMap_215 = keyMap[215]; + KeyMap_216 = keyMap[216]; + KeyMap_217 = keyMap[217]; + KeyMap_218 = keyMap[218]; + KeyMap_219 = keyMap[219]; + KeyMap_220 = keyMap[220]; + KeyMap_221 = keyMap[221]; + KeyMap_222 = keyMap[222]; + KeyMap_223 = keyMap[223]; + KeyMap_224 = keyMap[224]; + KeyMap_225 = keyMap[225]; + KeyMap_226 = keyMap[226]; + KeyMap_227 = keyMap[227]; + KeyMap_228 = keyMap[228]; + KeyMap_229 = keyMap[229]; + KeyMap_230 = keyMap[230]; + KeyMap_231 = keyMap[231]; + KeyMap_232 = keyMap[232]; + KeyMap_233 = keyMap[233]; + KeyMap_234 = keyMap[234]; + KeyMap_235 = keyMap[235]; + KeyMap_236 = keyMap[236]; + KeyMap_237 = keyMap[237]; + KeyMap_238 = keyMap[238]; + KeyMap_239 = keyMap[239]; + KeyMap_240 = keyMap[240]; + KeyMap_241 = keyMap[241]; + KeyMap_242 = keyMap[242]; + KeyMap_243 = keyMap[243]; + KeyMap_244 = keyMap[244]; + KeyMap_245 = keyMap[245]; + KeyMap_246 = keyMap[246]; + KeyMap_247 = keyMap[247]; + KeyMap_248 = keyMap[248]; + KeyMap_249 = keyMap[249]; + KeyMap_250 = keyMap[250]; + KeyMap_251 = keyMap[251]; + KeyMap_252 = keyMap[252]; + KeyMap_253 = keyMap[253]; + KeyMap_254 = keyMap[254]; + KeyMap_255 = keyMap[255]; + KeyMap_256 = keyMap[256]; + KeyMap_257 = keyMap[257]; + KeyMap_258 = keyMap[258]; + KeyMap_259 = keyMap[259]; + KeyMap_260 = keyMap[260]; + KeyMap_261 = keyMap[261]; + KeyMap_262 = keyMap[262]; + KeyMap_263 = keyMap[263]; + KeyMap_264 = keyMap[264]; + KeyMap_265 = keyMap[265]; + KeyMap_266 = keyMap[266]; + KeyMap_267 = keyMap[267]; + KeyMap_268 = keyMap[268]; + KeyMap_269 = keyMap[269]; + KeyMap_270 = keyMap[270]; + KeyMap_271 = keyMap[271]; + KeyMap_272 = keyMap[272]; + KeyMap_273 = keyMap[273]; + KeyMap_274 = keyMap[274]; + KeyMap_275 = keyMap[275]; + KeyMap_276 = keyMap[276]; + KeyMap_277 = keyMap[277]; + KeyMap_278 = keyMap[278]; + KeyMap_279 = keyMap[279]; + KeyMap_280 = keyMap[280]; + KeyMap_281 = keyMap[281]; + KeyMap_282 = keyMap[282]; + KeyMap_283 = keyMap[283]; + KeyMap_284 = keyMap[284]; + KeyMap_285 = keyMap[285]; + KeyMap_286 = keyMap[286]; + KeyMap_287 = keyMap[287]; + KeyMap_288 = keyMap[288]; + KeyMap_289 = keyMap[289]; + KeyMap_290 = keyMap[290]; + KeyMap_291 = keyMap[291]; + KeyMap_292 = keyMap[292]; + KeyMap_293 = keyMap[293]; + KeyMap_294 = keyMap[294]; + KeyMap_295 = keyMap[295]; + KeyMap_296 = keyMap[296]; + KeyMap_297 = keyMap[297]; + KeyMap_298 = keyMap[298]; + KeyMap_299 = keyMap[299]; + KeyMap_300 = keyMap[300]; + KeyMap_301 = keyMap[301]; + KeyMap_302 = keyMap[302]; + KeyMap_303 = keyMap[303]; + KeyMap_304 = keyMap[304]; + KeyMap_305 = keyMap[305]; + KeyMap_306 = keyMap[306]; + KeyMap_307 = keyMap[307]; + KeyMap_308 = keyMap[308]; + KeyMap_309 = keyMap[309]; + KeyMap_310 = keyMap[310]; + KeyMap_311 = keyMap[311]; + KeyMap_312 = keyMap[312]; + KeyMap_313 = keyMap[313]; + KeyMap_314 = keyMap[314]; + KeyMap_315 = keyMap[315]; + KeyMap_316 = keyMap[316]; + KeyMap_317 = keyMap[317]; + KeyMap_318 = keyMap[318]; + KeyMap_319 = keyMap[319]; + KeyMap_320 = keyMap[320]; + KeyMap_321 = keyMap[321]; + KeyMap_322 = keyMap[322]; + KeyMap_323 = keyMap[323]; + KeyMap_324 = keyMap[324]; + KeyMap_325 = keyMap[325]; + KeyMap_326 = keyMap[326]; + KeyMap_327 = keyMap[327]; + KeyMap_328 = keyMap[328]; + KeyMap_329 = keyMap[329]; + KeyMap_330 = keyMap[330]; + KeyMap_331 = keyMap[331]; + KeyMap_332 = keyMap[332]; + KeyMap_333 = keyMap[333]; + KeyMap_334 = keyMap[334]; + KeyMap_335 = keyMap[335]; + KeyMap_336 = keyMap[336]; + KeyMap_337 = keyMap[337]; + KeyMap_338 = keyMap[338]; + KeyMap_339 = keyMap[339]; + KeyMap_340 = keyMap[340]; + KeyMap_341 = keyMap[341]; + KeyMap_342 = keyMap[342]; + KeyMap_343 = keyMap[343]; + KeyMap_344 = keyMap[344]; + KeyMap_345 = keyMap[345]; + KeyMap_346 = keyMap[346]; + KeyMap_347 = keyMap[347]; + KeyMap_348 = keyMap[348]; + KeyMap_349 = keyMap[349]; + KeyMap_350 = keyMap[350]; + KeyMap_351 = keyMap[351]; + KeyMap_352 = keyMap[352]; + KeyMap_353 = keyMap[353]; + KeyMap_354 = keyMap[354]; + KeyMap_355 = keyMap[355]; + KeyMap_356 = keyMap[356]; + KeyMap_357 = keyMap[357]; + KeyMap_358 = keyMap[358]; + KeyMap_359 = keyMap[359]; + KeyMap_360 = keyMap[360]; + KeyMap_361 = keyMap[361]; + KeyMap_362 = keyMap[362]; + KeyMap_363 = keyMap[363]; + KeyMap_364 = keyMap[364]; + KeyMap_365 = keyMap[365]; + KeyMap_366 = keyMap[366]; + KeyMap_367 = keyMap[367]; + KeyMap_368 = keyMap[368]; + KeyMap_369 = keyMap[369]; + KeyMap_370 = keyMap[370]; + KeyMap_371 = keyMap[371]; + KeyMap_372 = keyMap[372]; + KeyMap_373 = keyMap[373]; + KeyMap_374 = keyMap[374]; + KeyMap_375 = keyMap[375]; + KeyMap_376 = keyMap[376]; + KeyMap_377 = keyMap[377]; + KeyMap_378 = keyMap[378]; + KeyMap_379 = keyMap[379]; + KeyMap_380 = keyMap[380]; + KeyMap_381 = keyMap[381]; + KeyMap_382 = keyMap[382]; + KeyMap_383 = keyMap[383]; + KeyMap_384 = keyMap[384]; + KeyMap_385 = keyMap[385]; + KeyMap_386 = keyMap[386]; + KeyMap_387 = keyMap[387]; + KeyMap_388 = keyMap[388]; + KeyMap_389 = keyMap[389]; + KeyMap_390 = keyMap[390]; + KeyMap_391 = keyMap[391]; + KeyMap_392 = keyMap[392]; + KeyMap_393 = keyMap[393]; + KeyMap_394 = keyMap[394]; + KeyMap_395 = keyMap[395]; + KeyMap_396 = keyMap[396]; + KeyMap_397 = keyMap[397]; + KeyMap_398 = keyMap[398]; + KeyMap_399 = keyMap[399]; + KeyMap_400 = keyMap[400]; + KeyMap_401 = keyMap[401]; + KeyMap_402 = keyMap[402]; + KeyMap_403 = keyMap[403]; + KeyMap_404 = keyMap[404]; + KeyMap_405 = keyMap[405]; + KeyMap_406 = keyMap[406]; + KeyMap_407 = keyMap[407]; + KeyMap_408 = keyMap[408]; + KeyMap_409 = keyMap[409]; + KeyMap_410 = keyMap[410]; + KeyMap_411 = keyMap[411]; + KeyMap_412 = keyMap[412]; + KeyMap_413 = keyMap[413]; + KeyMap_414 = keyMap[414]; + KeyMap_415 = keyMap[415]; + KeyMap_416 = keyMap[416]; + KeyMap_417 = keyMap[417]; + KeyMap_418 = keyMap[418]; + KeyMap_419 = keyMap[419]; + KeyMap_420 = keyMap[420]; + KeyMap_421 = keyMap[421]; + KeyMap_422 = keyMap[422]; + KeyMap_423 = keyMap[423]; + KeyMap_424 = keyMap[424]; + KeyMap_425 = keyMap[425]; + KeyMap_426 = keyMap[426]; + KeyMap_427 = keyMap[427]; + KeyMap_428 = keyMap[428]; + KeyMap_429 = keyMap[429]; + KeyMap_430 = keyMap[430]; + KeyMap_431 = keyMap[431]; + KeyMap_432 = keyMap[432]; + KeyMap_433 = keyMap[433]; + KeyMap_434 = keyMap[434]; + KeyMap_435 = keyMap[435]; + KeyMap_436 = keyMap[436]; + KeyMap_437 = keyMap[437]; + KeyMap_438 = keyMap[438]; + KeyMap_439 = keyMap[439]; + KeyMap_440 = keyMap[440]; + KeyMap_441 = keyMap[441]; + KeyMap_442 = keyMap[442]; + KeyMap_443 = keyMap[443]; + KeyMap_444 = keyMap[444]; + KeyMap_445 = keyMap[445]; + KeyMap_446 = keyMap[446]; + KeyMap_447 = keyMap[447]; + KeyMap_448 = keyMap[448]; + KeyMap_449 = keyMap[449]; + KeyMap_450 = keyMap[450]; + KeyMap_451 = keyMap[451]; + KeyMap_452 = keyMap[452]; + KeyMap_453 = keyMap[453]; + KeyMap_454 = keyMap[454]; + KeyMap_455 = keyMap[455]; + KeyMap_456 = keyMap[456]; + KeyMap_457 = keyMap[457]; + KeyMap_458 = keyMap[458]; + KeyMap_459 = keyMap[459]; + KeyMap_460 = keyMap[460]; + KeyMap_461 = keyMap[461]; + KeyMap_462 = keyMap[462]; + KeyMap_463 = keyMap[463]; + KeyMap_464 = keyMap[464]; + KeyMap_465 = keyMap[465]; + KeyMap_466 = keyMap[466]; + KeyMap_467 = keyMap[467]; + KeyMap_468 = keyMap[468]; + KeyMap_469 = keyMap[469]; + KeyMap_470 = keyMap[470]; + KeyMap_471 = keyMap[471]; + KeyMap_472 = keyMap[472]; + KeyMap_473 = keyMap[473]; + KeyMap_474 = keyMap[474]; + KeyMap_475 = keyMap[475]; + KeyMap_476 = keyMap[476]; + KeyMap_477 = keyMap[477]; + KeyMap_478 = keyMap[478]; + KeyMap_479 = keyMap[479]; + KeyMap_480 = keyMap[480]; + KeyMap_481 = keyMap[481]; + KeyMap_482 = keyMap[482]; + KeyMap_483 = keyMap[483]; + KeyMap_484 = keyMap[484]; + KeyMap_485 = keyMap[485]; + KeyMap_486 = keyMap[486]; + KeyMap_487 = keyMap[487]; + KeyMap_488 = keyMap[488]; + KeyMap_489 = keyMap[489]; + KeyMap_490 = keyMap[490]; + KeyMap_491 = keyMap[491]; + KeyMap_492 = keyMap[492]; + KeyMap_493 = keyMap[493]; + KeyMap_494 = keyMap[494]; + KeyMap_495 = keyMap[495]; + KeyMap_496 = keyMap[496]; + KeyMap_497 = keyMap[497]; + KeyMap_498 = keyMap[498]; + KeyMap_499 = keyMap[499]; + KeyMap_500 = keyMap[500]; + KeyMap_501 = keyMap[501]; + KeyMap_502 = keyMap[502]; + KeyMap_503 = keyMap[503]; + KeyMap_504 = keyMap[504]; + KeyMap_505 = keyMap[505]; + KeyMap_506 = keyMap[506]; + KeyMap_507 = keyMap[507]; + KeyMap_508 = keyMap[508]; + KeyMap_509 = keyMap[509]; + KeyMap_510 = keyMap[510]; + KeyMap_511 = keyMap[511]; + KeyMap_512 = keyMap[512]; + KeyMap_513 = keyMap[513]; + KeyMap_514 = keyMap[514]; + KeyMap_515 = keyMap[515]; + KeyMap_516 = keyMap[516]; + KeyMap_517 = keyMap[517]; + KeyMap_518 = keyMap[518]; + KeyMap_519 = keyMap[519]; + KeyMap_520 = keyMap[520]; + KeyMap_521 = keyMap[521]; + KeyMap_522 = keyMap[522]; + KeyMap_523 = keyMap[523]; + KeyMap_524 = keyMap[524]; + KeyMap_525 = keyMap[525]; + KeyMap_526 = keyMap[526]; + KeyMap_527 = keyMap[527]; + KeyMap_528 = keyMap[528]; + KeyMap_529 = keyMap[529]; + KeyMap_530 = keyMap[530]; + KeyMap_531 = keyMap[531]; + KeyMap_532 = keyMap[532]; + KeyMap_533 = keyMap[533]; + KeyMap_534 = keyMap[534]; + KeyMap_535 = keyMap[535]; + KeyMap_536 = keyMap[536]; + KeyMap_537 = keyMap[537]; + KeyMap_538 = keyMap[538]; + KeyMap_539 = keyMap[539]; + KeyMap_540 = keyMap[540]; + KeyMap_541 = keyMap[541]; + KeyMap_542 = keyMap[542]; + KeyMap_543 = keyMap[543]; + KeyMap_544 = keyMap[544]; + KeyMap_545 = keyMap[545]; + KeyMap_546 = keyMap[546]; + KeyMap_547 = keyMap[547]; + KeyMap_548 = keyMap[548]; + KeyMap_549 = keyMap[549]; + KeyMap_550 = keyMap[550]; + KeyMap_551 = keyMap[551]; + KeyMap_552 = keyMap[552]; + KeyMap_553 = keyMap[553]; + KeyMap_554 = keyMap[554]; + KeyMap_555 = keyMap[555]; + KeyMap_556 = keyMap[556]; + KeyMap_557 = keyMap[557]; + KeyMap_558 = keyMap[558]; + KeyMap_559 = keyMap[559]; + KeyMap_560 = keyMap[560]; + KeyMap_561 = keyMap[561]; + KeyMap_562 = keyMap[562]; + KeyMap_563 = keyMap[563]; + KeyMap_564 = keyMap[564]; + KeyMap_565 = keyMap[565]; + KeyMap_566 = keyMap[566]; + KeyMap_567 = keyMap[567]; + KeyMap_568 = keyMap[568]; + KeyMap_569 = keyMap[569]; + KeyMap_570 = keyMap[570]; + KeyMap_571 = keyMap[571]; + KeyMap_572 = keyMap[572]; + KeyMap_573 = keyMap[573]; + KeyMap_574 = keyMap[574]; + KeyMap_575 = keyMap[575]; + KeyMap_576 = keyMap[576]; + KeyMap_577 = keyMap[577]; + KeyMap_578 = keyMap[578]; + KeyMap_579 = keyMap[579]; + KeyMap_580 = keyMap[580]; + KeyMap_581 = keyMap[581]; + KeyMap_582 = keyMap[582]; + KeyMap_583 = keyMap[583]; + KeyMap_584 = keyMap[584]; + KeyMap_585 = keyMap[585]; + KeyMap_586 = keyMap[586]; + KeyMap_587 = keyMap[587]; + KeyMap_588 = keyMap[588]; + KeyMap_589 = keyMap[589]; + KeyMap_590 = keyMap[590]; + KeyMap_591 = keyMap[591]; + KeyMap_592 = keyMap[592]; + KeyMap_593 = keyMap[593]; + KeyMap_594 = keyMap[594]; + KeyMap_595 = keyMap[595]; + KeyMap_596 = keyMap[596]; + KeyMap_597 = keyMap[597]; + KeyMap_598 = keyMap[598]; + KeyMap_599 = keyMap[599]; + KeyMap_600 = keyMap[600]; + KeyMap_601 = keyMap[601]; + KeyMap_602 = keyMap[602]; + KeyMap_603 = keyMap[603]; + KeyMap_604 = keyMap[604]; + KeyMap_605 = keyMap[605]; + KeyMap_606 = keyMap[606]; + KeyMap_607 = keyMap[607]; + KeyMap_608 = keyMap[608]; + KeyMap_609 = keyMap[609]; + KeyMap_610 = keyMap[610]; + KeyMap_611 = keyMap[611]; + KeyMap_612 = keyMap[612]; + KeyMap_613 = keyMap[613]; + KeyMap_614 = keyMap[614]; + KeyMap_615 = keyMap[615]; + KeyMap_616 = keyMap[616]; + KeyMap_617 = keyMap[617]; + KeyMap_618 = keyMap[618]; + KeyMap_619 = keyMap[619]; + KeyMap_620 = keyMap[620]; + KeyMap_621 = keyMap[621]; + KeyMap_622 = keyMap[622]; + KeyMap_623 = keyMap[623]; + KeyMap_624 = keyMap[624]; + KeyMap_625 = keyMap[625]; + KeyMap_626 = keyMap[626]; + KeyMap_627 = keyMap[627]; + KeyMap_628 = keyMap[628]; + KeyMap_629 = keyMap[629]; + KeyMap_630 = keyMap[630]; + KeyMap_631 = keyMap[631]; + KeyMap_632 = keyMap[632]; + KeyMap_633 = keyMap[633]; + KeyMap_634 = keyMap[634]; + KeyMap_635 = keyMap[635]; + KeyMap_636 = keyMap[636]; + KeyMap_637 = keyMap[637]; + KeyMap_638 = keyMap[638]; + KeyMap_639 = keyMap[639]; + KeyMap_640 = keyMap[640]; + KeyMap_641 = keyMap[641]; + KeyMap_642 = keyMap[642]; + KeyMap_643 = keyMap[643]; + KeyMap_644 = keyMap[644]; + KeyMap_645 = keyMap[645]; + KeyMap_646 = keyMap[646]; + KeyMap_647 = keyMap[647]; + KeyMap_648 = keyMap[648]; + KeyMap_649 = keyMap[649]; + KeyMap_650 = keyMap[650]; + KeyMap_651 = keyMap[651]; + KeyMap_652 = keyMap[652]; + KeyMap_653 = keyMap[653]; + KeyMap_654 = keyMap[654]; + KeyMap_655 = keyMap[655]; + KeyMap_656 = keyMap[656]; + KeyMap_657 = keyMap[657]; + KeyMap_658 = keyMap[658]; + KeyMap_659 = keyMap[659]; + KeyMap_660 = keyMap[660]; + KeyMap_661 = keyMap[661]; + KeyMap_662 = keyMap[662]; + KeyMap_663 = keyMap[663]; + KeyMap_664 = keyMap[664]; + KeyMap_665 = keyMap[665]; + } + if (keysDown != default) + { + KeysDown_0 = keysDown[0]; + KeysDown_1 = keysDown[1]; + KeysDown_2 = keysDown[2]; + KeysDown_3 = keysDown[3]; + KeysDown_4 = keysDown[4]; + KeysDown_5 = keysDown[5]; + KeysDown_6 = keysDown[6]; + KeysDown_7 = keysDown[7]; + KeysDown_8 = keysDown[8]; + KeysDown_9 = keysDown[9]; + KeysDown_10 = keysDown[10]; + KeysDown_11 = keysDown[11]; + KeysDown_12 = keysDown[12]; + KeysDown_13 = keysDown[13]; + KeysDown_14 = keysDown[14]; + KeysDown_15 = keysDown[15]; + KeysDown_16 = keysDown[16]; + KeysDown_17 = keysDown[17]; + KeysDown_18 = keysDown[18]; + KeysDown_19 = keysDown[19]; + KeysDown_20 = keysDown[20]; + KeysDown_21 = keysDown[21]; + KeysDown_22 = keysDown[22]; + KeysDown_23 = keysDown[23]; + KeysDown_24 = keysDown[24]; + KeysDown_25 = keysDown[25]; + KeysDown_26 = keysDown[26]; + KeysDown_27 = keysDown[27]; + KeysDown_28 = keysDown[28]; + KeysDown_29 = keysDown[29]; + KeysDown_30 = keysDown[30]; + KeysDown_31 = keysDown[31]; + KeysDown_32 = keysDown[32]; + KeysDown_33 = keysDown[33]; + KeysDown_34 = keysDown[34]; + KeysDown_35 = keysDown[35]; + KeysDown_36 = keysDown[36]; + KeysDown_37 = keysDown[37]; + KeysDown_38 = keysDown[38]; + KeysDown_39 = keysDown[39]; + KeysDown_40 = keysDown[40]; + KeysDown_41 = keysDown[41]; + KeysDown_42 = keysDown[42]; + KeysDown_43 = keysDown[43]; + KeysDown_44 = keysDown[44]; + KeysDown_45 = keysDown[45]; + KeysDown_46 = keysDown[46]; + KeysDown_47 = keysDown[47]; + KeysDown_48 = keysDown[48]; + KeysDown_49 = keysDown[49]; + KeysDown_50 = keysDown[50]; + KeysDown_51 = keysDown[51]; + KeysDown_52 = keysDown[52]; + KeysDown_53 = keysDown[53]; + KeysDown_54 = keysDown[54]; + KeysDown_55 = keysDown[55]; + KeysDown_56 = keysDown[56]; + KeysDown_57 = keysDown[57]; + KeysDown_58 = keysDown[58]; + KeysDown_59 = keysDown[59]; + KeysDown_60 = keysDown[60]; + KeysDown_61 = keysDown[61]; + KeysDown_62 = keysDown[62]; + KeysDown_63 = keysDown[63]; + KeysDown_64 = keysDown[64]; + KeysDown_65 = keysDown[65]; + KeysDown_66 = keysDown[66]; + KeysDown_67 = keysDown[67]; + KeysDown_68 = keysDown[68]; + KeysDown_69 = keysDown[69]; + KeysDown_70 = keysDown[70]; + KeysDown_71 = keysDown[71]; + KeysDown_72 = keysDown[72]; + KeysDown_73 = keysDown[73]; + KeysDown_74 = keysDown[74]; + KeysDown_75 = keysDown[75]; + KeysDown_76 = keysDown[76]; + KeysDown_77 = keysDown[77]; + KeysDown_78 = keysDown[78]; + KeysDown_79 = keysDown[79]; + KeysDown_80 = keysDown[80]; + KeysDown_81 = keysDown[81]; + KeysDown_82 = keysDown[82]; + KeysDown_83 = keysDown[83]; + KeysDown_84 = keysDown[84]; + KeysDown_85 = keysDown[85]; + KeysDown_86 = keysDown[86]; + KeysDown_87 = keysDown[87]; + KeysDown_88 = keysDown[88]; + KeysDown_89 = keysDown[89]; + KeysDown_90 = keysDown[90]; + KeysDown_91 = keysDown[91]; + KeysDown_92 = keysDown[92]; + KeysDown_93 = keysDown[93]; + KeysDown_94 = keysDown[94]; + KeysDown_95 = keysDown[95]; + KeysDown_96 = keysDown[96]; + KeysDown_97 = keysDown[97]; + KeysDown_98 = keysDown[98]; + KeysDown_99 = keysDown[99]; + KeysDown_100 = keysDown[100]; + KeysDown_101 = keysDown[101]; + KeysDown_102 = keysDown[102]; + KeysDown_103 = keysDown[103]; + KeysDown_104 = keysDown[104]; + KeysDown_105 = keysDown[105]; + KeysDown_106 = keysDown[106]; + KeysDown_107 = keysDown[107]; + KeysDown_108 = keysDown[108]; + KeysDown_109 = keysDown[109]; + KeysDown_110 = keysDown[110]; + KeysDown_111 = keysDown[111]; + KeysDown_112 = keysDown[112]; + KeysDown_113 = keysDown[113]; + KeysDown_114 = keysDown[114]; + KeysDown_115 = keysDown[115]; + KeysDown_116 = keysDown[116]; + KeysDown_117 = keysDown[117]; + KeysDown_118 = keysDown[118]; + KeysDown_119 = keysDown[119]; + KeysDown_120 = keysDown[120]; + KeysDown_121 = keysDown[121]; + KeysDown_122 = keysDown[122]; + KeysDown_123 = keysDown[123]; + KeysDown_124 = keysDown[124]; + KeysDown_125 = keysDown[125]; + KeysDown_126 = keysDown[126]; + KeysDown_127 = keysDown[127]; + KeysDown_128 = keysDown[128]; + KeysDown_129 = keysDown[129]; + KeysDown_130 = keysDown[130]; + KeysDown_131 = keysDown[131]; + KeysDown_132 = keysDown[132]; + KeysDown_133 = keysDown[133]; + KeysDown_134 = keysDown[134]; + KeysDown_135 = keysDown[135]; + KeysDown_136 = keysDown[136]; + KeysDown_137 = keysDown[137]; + KeysDown_138 = keysDown[138]; + KeysDown_139 = keysDown[139]; + KeysDown_140 = keysDown[140]; + KeysDown_141 = keysDown[141]; + KeysDown_142 = keysDown[142]; + KeysDown_143 = keysDown[143]; + KeysDown_144 = keysDown[144]; + KeysDown_145 = keysDown[145]; + KeysDown_146 = keysDown[146]; + KeysDown_147 = keysDown[147]; + KeysDown_148 = keysDown[148]; + KeysDown_149 = keysDown[149]; + KeysDown_150 = keysDown[150]; + KeysDown_151 = keysDown[151]; + KeysDown_152 = keysDown[152]; + KeysDown_153 = keysDown[153]; + KeysDown_154 = keysDown[154]; + KeysDown_155 = keysDown[155]; + KeysDown_156 = keysDown[156]; + KeysDown_157 = keysDown[157]; + KeysDown_158 = keysDown[158]; + KeysDown_159 = keysDown[159]; + KeysDown_160 = keysDown[160]; + KeysDown_161 = keysDown[161]; + KeysDown_162 = keysDown[162]; + KeysDown_163 = keysDown[163]; + KeysDown_164 = keysDown[164]; + KeysDown_165 = keysDown[165]; + KeysDown_166 = keysDown[166]; + KeysDown_167 = keysDown[167]; + KeysDown_168 = keysDown[168]; + KeysDown_169 = keysDown[169]; + KeysDown_170 = keysDown[170]; + KeysDown_171 = keysDown[171]; + KeysDown_172 = keysDown[172]; + KeysDown_173 = keysDown[173]; + KeysDown_174 = keysDown[174]; + KeysDown_175 = keysDown[175]; + KeysDown_176 = keysDown[176]; + KeysDown_177 = keysDown[177]; + KeysDown_178 = keysDown[178]; + KeysDown_179 = keysDown[179]; + KeysDown_180 = keysDown[180]; + KeysDown_181 = keysDown[181]; + KeysDown_182 = keysDown[182]; + KeysDown_183 = keysDown[183]; + KeysDown_184 = keysDown[184]; + KeysDown_185 = keysDown[185]; + KeysDown_186 = keysDown[186]; + KeysDown_187 = keysDown[187]; + KeysDown_188 = keysDown[188]; + KeysDown_189 = keysDown[189]; + KeysDown_190 = keysDown[190]; + KeysDown_191 = keysDown[191]; + KeysDown_192 = keysDown[192]; + KeysDown_193 = keysDown[193]; + KeysDown_194 = keysDown[194]; + KeysDown_195 = keysDown[195]; + KeysDown_196 = keysDown[196]; + KeysDown_197 = keysDown[197]; + KeysDown_198 = keysDown[198]; + KeysDown_199 = keysDown[199]; + KeysDown_200 = keysDown[200]; + KeysDown_201 = keysDown[201]; + KeysDown_202 = keysDown[202]; + KeysDown_203 = keysDown[203]; + KeysDown_204 = keysDown[204]; + KeysDown_205 = keysDown[205]; + KeysDown_206 = keysDown[206]; + KeysDown_207 = keysDown[207]; + KeysDown_208 = keysDown[208]; + KeysDown_209 = keysDown[209]; + KeysDown_210 = keysDown[210]; + KeysDown_211 = keysDown[211]; + KeysDown_212 = keysDown[212]; + KeysDown_213 = keysDown[213]; + KeysDown_214 = keysDown[214]; + KeysDown_215 = keysDown[215]; + KeysDown_216 = keysDown[216]; + KeysDown_217 = keysDown[217]; + KeysDown_218 = keysDown[218]; + KeysDown_219 = keysDown[219]; + KeysDown_220 = keysDown[220]; + KeysDown_221 = keysDown[221]; + KeysDown_222 = keysDown[222]; + KeysDown_223 = keysDown[223]; + KeysDown_224 = keysDown[224]; + KeysDown_225 = keysDown[225]; + KeysDown_226 = keysDown[226]; + KeysDown_227 = keysDown[227]; + KeysDown_228 = keysDown[228]; + KeysDown_229 = keysDown[229]; + KeysDown_230 = keysDown[230]; + KeysDown_231 = keysDown[231]; + KeysDown_232 = keysDown[232]; + KeysDown_233 = keysDown[233]; + KeysDown_234 = keysDown[234]; + KeysDown_235 = keysDown[235]; + KeysDown_236 = keysDown[236]; + KeysDown_237 = keysDown[237]; + KeysDown_238 = keysDown[238]; + KeysDown_239 = keysDown[239]; + KeysDown_240 = keysDown[240]; + KeysDown_241 = keysDown[241]; + KeysDown_242 = keysDown[242]; + KeysDown_243 = keysDown[243]; + KeysDown_244 = keysDown[244]; + KeysDown_245 = keysDown[245]; + KeysDown_246 = keysDown[246]; + KeysDown_247 = keysDown[247]; + KeysDown_248 = keysDown[248]; + KeysDown_249 = keysDown[249]; + KeysDown_250 = keysDown[250]; + KeysDown_251 = keysDown[251]; + KeysDown_252 = keysDown[252]; + KeysDown_253 = keysDown[253]; + KeysDown_254 = keysDown[254]; + KeysDown_255 = keysDown[255]; + KeysDown_256 = keysDown[256]; + KeysDown_257 = keysDown[257]; + KeysDown_258 = keysDown[258]; + KeysDown_259 = keysDown[259]; + KeysDown_260 = keysDown[260]; + KeysDown_261 = keysDown[261]; + KeysDown_262 = keysDown[262]; + KeysDown_263 = keysDown[263]; + KeysDown_264 = keysDown[264]; + KeysDown_265 = keysDown[265]; + KeysDown_266 = keysDown[266]; + KeysDown_267 = keysDown[267]; + KeysDown_268 = keysDown[268]; + KeysDown_269 = keysDown[269]; + KeysDown_270 = keysDown[270]; + KeysDown_271 = keysDown[271]; + KeysDown_272 = keysDown[272]; + KeysDown_273 = keysDown[273]; + KeysDown_274 = keysDown[274]; + KeysDown_275 = keysDown[275]; + KeysDown_276 = keysDown[276]; + KeysDown_277 = keysDown[277]; + KeysDown_278 = keysDown[278]; + KeysDown_279 = keysDown[279]; + KeysDown_280 = keysDown[280]; + KeysDown_281 = keysDown[281]; + KeysDown_282 = keysDown[282]; + KeysDown_283 = keysDown[283]; + KeysDown_284 = keysDown[284]; + KeysDown_285 = keysDown[285]; + KeysDown_286 = keysDown[286]; + KeysDown_287 = keysDown[287]; + KeysDown_288 = keysDown[288]; + KeysDown_289 = keysDown[289]; + KeysDown_290 = keysDown[290]; + KeysDown_291 = keysDown[291]; + KeysDown_292 = keysDown[292]; + KeysDown_293 = keysDown[293]; + KeysDown_294 = keysDown[294]; + KeysDown_295 = keysDown[295]; + KeysDown_296 = keysDown[296]; + KeysDown_297 = keysDown[297]; + KeysDown_298 = keysDown[298]; + KeysDown_299 = keysDown[299]; + KeysDown_300 = keysDown[300]; + KeysDown_301 = keysDown[301]; + KeysDown_302 = keysDown[302]; + KeysDown_303 = keysDown[303]; + KeysDown_304 = keysDown[304]; + KeysDown_305 = keysDown[305]; + KeysDown_306 = keysDown[306]; + KeysDown_307 = keysDown[307]; + KeysDown_308 = keysDown[308]; + KeysDown_309 = keysDown[309]; + KeysDown_310 = keysDown[310]; + KeysDown_311 = keysDown[311]; + KeysDown_312 = keysDown[312]; + KeysDown_313 = keysDown[313]; + KeysDown_314 = keysDown[314]; + KeysDown_315 = keysDown[315]; + KeysDown_316 = keysDown[316]; + KeysDown_317 = keysDown[317]; + KeysDown_318 = keysDown[318]; + KeysDown_319 = keysDown[319]; + KeysDown_320 = keysDown[320]; + KeysDown_321 = keysDown[321]; + KeysDown_322 = keysDown[322]; + KeysDown_323 = keysDown[323]; + KeysDown_324 = keysDown[324]; + KeysDown_325 = keysDown[325]; + KeysDown_326 = keysDown[326]; + KeysDown_327 = keysDown[327]; + KeysDown_328 = keysDown[328]; + KeysDown_329 = keysDown[329]; + KeysDown_330 = keysDown[330]; + KeysDown_331 = keysDown[331]; + KeysDown_332 = keysDown[332]; + KeysDown_333 = keysDown[333]; + KeysDown_334 = keysDown[334]; + KeysDown_335 = keysDown[335]; + KeysDown_336 = keysDown[336]; + KeysDown_337 = keysDown[337]; + KeysDown_338 = keysDown[338]; + KeysDown_339 = keysDown[339]; + KeysDown_340 = keysDown[340]; + KeysDown_341 = keysDown[341]; + KeysDown_342 = keysDown[342]; + KeysDown_343 = keysDown[343]; + KeysDown_344 = keysDown[344]; + KeysDown_345 = keysDown[345]; + KeysDown_346 = keysDown[346]; + KeysDown_347 = keysDown[347]; + KeysDown_348 = keysDown[348]; + KeysDown_349 = keysDown[349]; + KeysDown_350 = keysDown[350]; + KeysDown_351 = keysDown[351]; + KeysDown_352 = keysDown[352]; + KeysDown_353 = keysDown[353]; + KeysDown_354 = keysDown[354]; + KeysDown_355 = keysDown[355]; + KeysDown_356 = keysDown[356]; + KeysDown_357 = keysDown[357]; + KeysDown_358 = keysDown[358]; + KeysDown_359 = keysDown[359]; + KeysDown_360 = keysDown[360]; + KeysDown_361 = keysDown[361]; + KeysDown_362 = keysDown[362]; + KeysDown_363 = keysDown[363]; + KeysDown_364 = keysDown[364]; + KeysDown_365 = keysDown[365]; + KeysDown_366 = keysDown[366]; + KeysDown_367 = keysDown[367]; + KeysDown_368 = keysDown[368]; + KeysDown_369 = keysDown[369]; + KeysDown_370 = keysDown[370]; + KeysDown_371 = keysDown[371]; + KeysDown_372 = keysDown[372]; + KeysDown_373 = keysDown[373]; + KeysDown_374 = keysDown[374]; + KeysDown_375 = keysDown[375]; + KeysDown_376 = keysDown[376]; + KeysDown_377 = keysDown[377]; + KeysDown_378 = keysDown[378]; + KeysDown_379 = keysDown[379]; + KeysDown_380 = keysDown[380]; + KeysDown_381 = keysDown[381]; + KeysDown_382 = keysDown[382]; + KeysDown_383 = keysDown[383]; + KeysDown_384 = keysDown[384]; + KeysDown_385 = keysDown[385]; + KeysDown_386 = keysDown[386]; + KeysDown_387 = keysDown[387]; + KeysDown_388 = keysDown[388]; + KeysDown_389 = keysDown[389]; + KeysDown_390 = keysDown[390]; + KeysDown_391 = keysDown[391]; + KeysDown_392 = keysDown[392]; + KeysDown_393 = keysDown[393]; + KeysDown_394 = keysDown[394]; + KeysDown_395 = keysDown[395]; + KeysDown_396 = keysDown[396]; + KeysDown_397 = keysDown[397]; + KeysDown_398 = keysDown[398]; + KeysDown_399 = keysDown[399]; + KeysDown_400 = keysDown[400]; + KeysDown_401 = keysDown[401]; + KeysDown_402 = keysDown[402]; + KeysDown_403 = keysDown[403]; + KeysDown_404 = keysDown[404]; + KeysDown_405 = keysDown[405]; + KeysDown_406 = keysDown[406]; + KeysDown_407 = keysDown[407]; + KeysDown_408 = keysDown[408]; + KeysDown_409 = keysDown[409]; + KeysDown_410 = keysDown[410]; + KeysDown_411 = keysDown[411]; + KeysDown_412 = keysDown[412]; + KeysDown_413 = keysDown[413]; + KeysDown_414 = keysDown[414]; + KeysDown_415 = keysDown[415]; + KeysDown_416 = keysDown[416]; + KeysDown_417 = keysDown[417]; + KeysDown_418 = keysDown[418]; + KeysDown_419 = keysDown[419]; + KeysDown_420 = keysDown[420]; + KeysDown_421 = keysDown[421]; + KeysDown_422 = keysDown[422]; + KeysDown_423 = keysDown[423]; + KeysDown_424 = keysDown[424]; + KeysDown_425 = keysDown[425]; + KeysDown_426 = keysDown[426]; + KeysDown_427 = keysDown[427]; + KeysDown_428 = keysDown[428]; + KeysDown_429 = keysDown[429]; + KeysDown_430 = keysDown[430]; + KeysDown_431 = keysDown[431]; + KeysDown_432 = keysDown[432]; + KeysDown_433 = keysDown[433]; + KeysDown_434 = keysDown[434]; + KeysDown_435 = keysDown[435]; + KeysDown_436 = keysDown[436]; + KeysDown_437 = keysDown[437]; + KeysDown_438 = keysDown[438]; + KeysDown_439 = keysDown[439]; + KeysDown_440 = keysDown[440]; + KeysDown_441 = keysDown[441]; + KeysDown_442 = keysDown[442]; + KeysDown_443 = keysDown[443]; + KeysDown_444 = keysDown[444]; + KeysDown_445 = keysDown[445]; + KeysDown_446 = keysDown[446]; + KeysDown_447 = keysDown[447]; + KeysDown_448 = keysDown[448]; + KeysDown_449 = keysDown[449]; + KeysDown_450 = keysDown[450]; + KeysDown_451 = keysDown[451]; + KeysDown_452 = keysDown[452]; + KeysDown_453 = keysDown[453]; + KeysDown_454 = keysDown[454]; + KeysDown_455 = keysDown[455]; + KeysDown_456 = keysDown[456]; + KeysDown_457 = keysDown[457]; + KeysDown_458 = keysDown[458]; + KeysDown_459 = keysDown[459]; + KeysDown_460 = keysDown[460]; + KeysDown_461 = keysDown[461]; + KeysDown_462 = keysDown[462]; + KeysDown_463 = keysDown[463]; + KeysDown_464 = keysDown[464]; + KeysDown_465 = keysDown[465]; + KeysDown_466 = keysDown[466]; + KeysDown_467 = keysDown[467]; + KeysDown_468 = keysDown[468]; + KeysDown_469 = keysDown[469]; + KeysDown_470 = keysDown[470]; + KeysDown_471 = keysDown[471]; + KeysDown_472 = keysDown[472]; + KeysDown_473 = keysDown[473]; + KeysDown_474 = keysDown[474]; + KeysDown_475 = keysDown[475]; + KeysDown_476 = keysDown[476]; + KeysDown_477 = keysDown[477]; + KeysDown_478 = keysDown[478]; + KeysDown_479 = keysDown[479]; + KeysDown_480 = keysDown[480]; + KeysDown_481 = keysDown[481]; + KeysDown_482 = keysDown[482]; + KeysDown_483 = keysDown[483]; + KeysDown_484 = keysDown[484]; + KeysDown_485 = keysDown[485]; + KeysDown_486 = keysDown[486]; + KeysDown_487 = keysDown[487]; + KeysDown_488 = keysDown[488]; + KeysDown_489 = keysDown[489]; + KeysDown_490 = keysDown[490]; + KeysDown_491 = keysDown[491]; + KeysDown_492 = keysDown[492]; + KeysDown_493 = keysDown[493]; + KeysDown_494 = keysDown[494]; + KeysDown_495 = keysDown[495]; + KeysDown_496 = keysDown[496]; + KeysDown_497 = keysDown[497]; + KeysDown_498 = keysDown[498]; + KeysDown_499 = keysDown[499]; + KeysDown_500 = keysDown[500]; + KeysDown_501 = keysDown[501]; + KeysDown_502 = keysDown[502]; + KeysDown_503 = keysDown[503]; + KeysDown_504 = keysDown[504]; + KeysDown_505 = keysDown[505]; + KeysDown_506 = keysDown[506]; + KeysDown_507 = keysDown[507]; + KeysDown_508 = keysDown[508]; + KeysDown_509 = keysDown[509]; + KeysDown_510 = keysDown[510]; + KeysDown_511 = keysDown[511]; + KeysDown_512 = keysDown[512]; + KeysDown_513 = keysDown[513]; + KeysDown_514 = keysDown[514]; + KeysDown_515 = keysDown[515]; + KeysDown_516 = keysDown[516]; + KeysDown_517 = keysDown[517]; + KeysDown_518 = keysDown[518]; + KeysDown_519 = keysDown[519]; + KeysDown_520 = keysDown[520]; + KeysDown_521 = keysDown[521]; + KeysDown_522 = keysDown[522]; + KeysDown_523 = keysDown[523]; + KeysDown_524 = keysDown[524]; + KeysDown_525 = keysDown[525]; + KeysDown_526 = keysDown[526]; + KeysDown_527 = keysDown[527]; + KeysDown_528 = keysDown[528]; + KeysDown_529 = keysDown[529]; + KeysDown_530 = keysDown[530]; + KeysDown_531 = keysDown[531]; + KeysDown_532 = keysDown[532]; + KeysDown_533 = keysDown[533]; + KeysDown_534 = keysDown[534]; + KeysDown_535 = keysDown[535]; + KeysDown_536 = keysDown[536]; + KeysDown_537 = keysDown[537]; + KeysDown_538 = keysDown[538]; + KeysDown_539 = keysDown[539]; + KeysDown_540 = keysDown[540]; + KeysDown_541 = keysDown[541]; + KeysDown_542 = keysDown[542]; + KeysDown_543 = keysDown[543]; + KeysDown_544 = keysDown[544]; + KeysDown_545 = keysDown[545]; + KeysDown_546 = keysDown[546]; + KeysDown_547 = keysDown[547]; + KeysDown_548 = keysDown[548]; + KeysDown_549 = keysDown[549]; + KeysDown_550 = keysDown[550]; + KeysDown_551 = keysDown[551]; + KeysDown_552 = keysDown[552]; + KeysDown_553 = keysDown[553]; + KeysDown_554 = keysDown[554]; + KeysDown_555 = keysDown[555]; + KeysDown_556 = keysDown[556]; + KeysDown_557 = keysDown[557]; + KeysDown_558 = keysDown[558]; + KeysDown_559 = keysDown[559]; + KeysDown_560 = keysDown[560]; + KeysDown_561 = keysDown[561]; + KeysDown_562 = keysDown[562]; + KeysDown_563 = keysDown[563]; + KeysDown_564 = keysDown[564]; + KeysDown_565 = keysDown[565]; + KeysDown_566 = keysDown[566]; + KeysDown_567 = keysDown[567]; + KeysDown_568 = keysDown[568]; + KeysDown_569 = keysDown[569]; + KeysDown_570 = keysDown[570]; + KeysDown_571 = keysDown[571]; + KeysDown_572 = keysDown[572]; + KeysDown_573 = keysDown[573]; + KeysDown_574 = keysDown[574]; + KeysDown_575 = keysDown[575]; + KeysDown_576 = keysDown[576]; + KeysDown_577 = keysDown[577]; + KeysDown_578 = keysDown[578]; + KeysDown_579 = keysDown[579]; + KeysDown_580 = keysDown[580]; + KeysDown_581 = keysDown[581]; + KeysDown_582 = keysDown[582]; + KeysDown_583 = keysDown[583]; + KeysDown_584 = keysDown[584]; + KeysDown_585 = keysDown[585]; + KeysDown_586 = keysDown[586]; + KeysDown_587 = keysDown[587]; + KeysDown_588 = keysDown[588]; + KeysDown_589 = keysDown[589]; + KeysDown_590 = keysDown[590]; + KeysDown_591 = keysDown[591]; + KeysDown_592 = keysDown[592]; + KeysDown_593 = keysDown[593]; + KeysDown_594 = keysDown[594]; + KeysDown_595 = keysDown[595]; + KeysDown_596 = keysDown[596]; + KeysDown_597 = keysDown[597]; + KeysDown_598 = keysDown[598]; + KeysDown_599 = keysDown[599]; + KeysDown_600 = keysDown[600]; + KeysDown_601 = keysDown[601]; + KeysDown_602 = keysDown[602]; + KeysDown_603 = keysDown[603]; + KeysDown_604 = keysDown[604]; + KeysDown_605 = keysDown[605]; + KeysDown_606 = keysDown[606]; + KeysDown_607 = keysDown[607]; + KeysDown_608 = keysDown[608]; + KeysDown_609 = keysDown[609]; + KeysDown_610 = keysDown[610]; + KeysDown_611 = keysDown[611]; + KeysDown_612 = keysDown[612]; + KeysDown_613 = keysDown[613]; + KeysDown_614 = keysDown[614]; + KeysDown_615 = keysDown[615]; + KeysDown_616 = keysDown[616]; + KeysDown_617 = keysDown[617]; + KeysDown_618 = keysDown[618]; + KeysDown_619 = keysDown[619]; + KeysDown_620 = keysDown[620]; + KeysDown_621 = keysDown[621]; + KeysDown_622 = keysDown[622]; + KeysDown_623 = keysDown[623]; + KeysDown_624 = keysDown[624]; + KeysDown_625 = keysDown[625]; + KeysDown_626 = keysDown[626]; + KeysDown_627 = keysDown[627]; + KeysDown_628 = keysDown[628]; + KeysDown_629 = keysDown[629]; + KeysDown_630 = keysDown[630]; + KeysDown_631 = keysDown[631]; + KeysDown_632 = keysDown[632]; + KeysDown_633 = keysDown[633]; + KeysDown_634 = keysDown[634]; + KeysDown_635 = keysDown[635]; + KeysDown_636 = keysDown[636]; + KeysDown_637 = keysDown[637]; + KeysDown_638 = keysDown[638]; + KeysDown_639 = keysDown[639]; + KeysDown_640 = keysDown[640]; + KeysDown_641 = keysDown[641]; + KeysDown_642 = keysDown[642]; + KeysDown_643 = keysDown[643]; + KeysDown_644 = keysDown[644]; + KeysDown_645 = keysDown[645]; + KeysDown_646 = keysDown[646]; + KeysDown_647 = keysDown[647]; + KeysDown_648 = keysDown[648]; + KeysDown_649 = keysDown[649]; + KeysDown_650 = keysDown[650]; + KeysDown_651 = keysDown[651]; + KeysDown_652 = keysDown[652]; + KeysDown_653 = keysDown[653]; + KeysDown_654 = keysDown[654]; + KeysDown_655 = keysDown[655]; + KeysDown_656 = keysDown[656]; + KeysDown_657 = keysDown[657]; + KeysDown_658 = keysDown[658]; + KeysDown_659 = keysDown[659]; + KeysDown_660 = keysDown[660]; + KeysDown_661 = keysDown[661]; + KeysDown_662 = keysDown[662]; + KeysDown_663 = keysDown[663]; + KeysDown_664 = keysDown[664]; + KeysDown_665 = keysDown[665]; + } + if (navInputs != default) + { + NavInputs_0 = navInputs[0]; + NavInputs_1 = navInputs[1]; + NavInputs_2 = navInputs[2]; + NavInputs_3 = navInputs[3]; + NavInputs_4 = navInputs[4]; + NavInputs_5 = navInputs[5]; + NavInputs_6 = navInputs[6]; + NavInputs_7 = navInputs[7]; + NavInputs_8 = navInputs[8]; + NavInputs_9 = navInputs[9]; + NavInputs_10 = navInputs[10]; + NavInputs_11 = navInputs[11]; + NavInputs_12 = navInputs[12]; + NavInputs_13 = navInputs[13]; + NavInputs_14 = navInputs[14]; + NavInputs_15 = navInputs[15]; + } + UnusedPadding = Unusedpadding; + Ctx = ctx; + MousePos = mousePos; + if (mouseDown != default) + { + MouseDown_0 = mouseDown[0]; + MouseDown_1 = mouseDown[1]; + MouseDown_2 = mouseDown[2]; + MouseDown_3 = mouseDown[3]; + MouseDown_4 = mouseDown[4]; + } + MouseWheel = mouseWheel; + MouseWheelH = mouseWheelH; + MouseSource = mouseSource; + MouseHoveredViewport = mouseHoveredViewport; + KeyCtrl = keyCtrl ? (byte)1 : (byte)0; + KeyShift = keyShift ? (byte)1 : (byte)0; + KeyAlt = keyAlt ? (byte)1 : (byte)0; + KeySuper = keySuper ? (byte)1 : (byte)0; + KeyMods = keyMods; + if (keysData != default) + { + KeysData_0 = keysData[0]; + KeysData_1 = keysData[1]; + KeysData_2 = keysData[2]; + KeysData_3 = keysData[3]; + KeysData_4 = keysData[4]; + KeysData_5 = keysData[5]; + KeysData_6 = keysData[6]; + KeysData_7 = keysData[7]; + KeysData_8 = keysData[8]; + KeysData_9 = keysData[9]; + KeysData_10 = keysData[10]; + KeysData_11 = keysData[11]; + KeysData_12 = keysData[12]; + KeysData_13 = keysData[13]; + KeysData_14 = keysData[14]; + KeysData_15 = keysData[15]; + KeysData_16 = keysData[16]; + KeysData_17 = keysData[17]; + KeysData_18 = keysData[18]; + KeysData_19 = keysData[19]; + KeysData_20 = keysData[20]; + KeysData_21 = keysData[21]; + KeysData_22 = keysData[22]; + KeysData_23 = keysData[23]; + KeysData_24 = keysData[24]; + KeysData_25 = keysData[25]; + KeysData_26 = keysData[26]; + KeysData_27 = keysData[27]; + KeysData_28 = keysData[28]; + KeysData_29 = keysData[29]; + KeysData_30 = keysData[30]; + KeysData_31 = keysData[31]; + KeysData_32 = keysData[32]; + KeysData_33 = keysData[33]; + KeysData_34 = keysData[34]; + KeysData_35 = keysData[35]; + KeysData_36 = keysData[36]; + KeysData_37 = keysData[37]; + KeysData_38 = keysData[38]; + KeysData_39 = keysData[39]; + KeysData_40 = keysData[40]; + KeysData_41 = keysData[41]; + KeysData_42 = keysData[42]; + KeysData_43 = keysData[43]; + KeysData_44 = keysData[44]; + KeysData_45 = keysData[45]; + KeysData_46 = keysData[46]; + KeysData_47 = keysData[47]; + KeysData_48 = keysData[48]; + KeysData_49 = keysData[49]; + KeysData_50 = keysData[50]; + KeysData_51 = keysData[51]; + KeysData_52 = keysData[52]; + KeysData_53 = keysData[53]; + KeysData_54 = keysData[54]; + KeysData_55 = keysData[55]; + KeysData_56 = keysData[56]; + KeysData_57 = keysData[57]; + KeysData_58 = keysData[58]; + KeysData_59 = keysData[59]; + KeysData_60 = keysData[60]; + KeysData_61 = keysData[61]; + KeysData_62 = keysData[62]; + KeysData_63 = keysData[63]; + KeysData_64 = keysData[64]; + KeysData_65 = keysData[65]; + KeysData_66 = keysData[66]; + KeysData_67 = keysData[67]; + KeysData_68 = keysData[68]; + KeysData_69 = keysData[69]; + KeysData_70 = keysData[70]; + KeysData_71 = keysData[71]; + KeysData_72 = keysData[72]; + KeysData_73 = keysData[73]; + KeysData_74 = keysData[74]; + KeysData_75 = keysData[75]; + KeysData_76 = keysData[76]; + KeysData_77 = keysData[77]; + KeysData_78 = keysData[78]; + KeysData_79 = keysData[79]; + KeysData_80 = keysData[80]; + KeysData_81 = keysData[81]; + KeysData_82 = keysData[82]; + KeysData_83 = keysData[83]; + KeysData_84 = keysData[84]; + KeysData_85 = keysData[85]; + KeysData_86 = keysData[86]; + KeysData_87 = keysData[87]; + KeysData_88 = keysData[88]; + KeysData_89 = keysData[89]; + KeysData_90 = keysData[90]; + KeysData_91 = keysData[91]; + KeysData_92 = keysData[92]; + KeysData_93 = keysData[93]; + KeysData_94 = keysData[94]; + KeysData_95 = keysData[95]; + KeysData_96 = keysData[96]; + KeysData_97 = keysData[97]; + KeysData_98 = keysData[98]; + KeysData_99 = keysData[99]; + KeysData_100 = keysData[100]; + KeysData_101 = keysData[101]; + KeysData_102 = keysData[102]; + KeysData_103 = keysData[103]; + KeysData_104 = keysData[104]; + KeysData_105 = keysData[105]; + KeysData_106 = keysData[106]; + KeysData_107 = keysData[107]; + KeysData_108 = keysData[108]; + KeysData_109 = keysData[109]; + KeysData_110 = keysData[110]; + KeysData_111 = keysData[111]; + KeysData_112 = keysData[112]; + KeysData_113 = keysData[113]; + KeysData_114 = keysData[114]; + KeysData_115 = keysData[115]; + KeysData_116 = keysData[116]; + KeysData_117 = keysData[117]; + KeysData_118 = keysData[118]; + KeysData_119 = keysData[119]; + KeysData_120 = keysData[120]; + KeysData_121 = keysData[121]; + KeysData_122 = keysData[122]; + KeysData_123 = keysData[123]; + KeysData_124 = keysData[124]; + KeysData_125 = keysData[125]; + KeysData_126 = keysData[126]; + KeysData_127 = keysData[127]; + KeysData_128 = keysData[128]; + KeysData_129 = keysData[129]; + KeysData_130 = keysData[130]; + KeysData_131 = keysData[131]; + KeysData_132 = keysData[132]; + KeysData_133 = keysData[133]; + KeysData_134 = keysData[134]; + KeysData_135 = keysData[135]; + KeysData_136 = keysData[136]; + KeysData_137 = keysData[137]; + KeysData_138 = keysData[138]; + KeysData_139 = keysData[139]; + KeysData_140 = keysData[140]; + KeysData_141 = keysData[141]; + KeysData_142 = keysData[142]; + KeysData_143 = keysData[143]; + KeysData_144 = keysData[144]; + KeysData_145 = keysData[145]; + KeysData_146 = keysData[146]; + KeysData_147 = keysData[147]; + KeysData_148 = keysData[148]; + KeysData_149 = keysData[149]; + KeysData_150 = keysData[150]; + KeysData_151 = keysData[151]; + KeysData_152 = keysData[152]; + KeysData_153 = keysData[153]; + KeysData_154 = keysData[154]; + KeysData_155 = keysData[155]; + KeysData_156 = keysData[156]; + KeysData_157 = keysData[157]; + KeysData_158 = keysData[158]; + KeysData_159 = keysData[159]; + KeysData_160 = keysData[160]; + KeysData_161 = keysData[161]; + KeysData_162 = keysData[162]; + KeysData_163 = keysData[163]; + KeysData_164 = keysData[164]; + KeysData_165 = keysData[165]; + KeysData_166 = keysData[166]; + KeysData_167 = keysData[167]; + KeysData_168 = keysData[168]; + KeysData_169 = keysData[169]; + KeysData_170 = keysData[170]; + KeysData_171 = keysData[171]; + KeysData_172 = keysData[172]; + KeysData_173 = keysData[173]; + KeysData_174 = keysData[174]; + KeysData_175 = keysData[175]; + KeysData_176 = keysData[176]; + KeysData_177 = keysData[177]; + KeysData_178 = keysData[178]; + KeysData_179 = keysData[179]; + KeysData_180 = keysData[180]; + KeysData_181 = keysData[181]; + KeysData_182 = keysData[182]; + KeysData_183 = keysData[183]; + KeysData_184 = keysData[184]; + KeysData_185 = keysData[185]; + KeysData_186 = keysData[186]; + KeysData_187 = keysData[187]; + KeysData_188 = keysData[188]; + KeysData_189 = keysData[189]; + KeysData_190 = keysData[190]; + KeysData_191 = keysData[191]; + KeysData_192 = keysData[192]; + KeysData_193 = keysData[193]; + KeysData_194 = keysData[194]; + KeysData_195 = keysData[195]; + KeysData_196 = keysData[196]; + KeysData_197 = keysData[197]; + KeysData_198 = keysData[198]; + KeysData_199 = keysData[199]; + KeysData_200 = keysData[200]; + KeysData_201 = keysData[201]; + KeysData_202 = keysData[202]; + KeysData_203 = keysData[203]; + KeysData_204 = keysData[204]; + KeysData_205 = keysData[205]; + KeysData_206 = keysData[206]; + KeysData_207 = keysData[207]; + KeysData_208 = keysData[208]; + KeysData_209 = keysData[209]; + KeysData_210 = keysData[210]; + KeysData_211 = keysData[211]; + KeysData_212 = keysData[212]; + KeysData_213 = keysData[213]; + KeysData_214 = keysData[214]; + KeysData_215 = keysData[215]; + KeysData_216 = keysData[216]; + KeysData_217 = keysData[217]; + KeysData_218 = keysData[218]; + KeysData_219 = keysData[219]; + KeysData_220 = keysData[220]; + KeysData_221 = keysData[221]; + KeysData_222 = keysData[222]; + KeysData_223 = keysData[223]; + KeysData_224 = keysData[224]; + KeysData_225 = keysData[225]; + KeysData_226 = keysData[226]; + KeysData_227 = keysData[227]; + KeysData_228 = keysData[228]; + KeysData_229 = keysData[229]; + KeysData_230 = keysData[230]; + KeysData_231 = keysData[231]; + KeysData_232 = keysData[232]; + KeysData_233 = keysData[233]; + KeysData_234 = keysData[234]; + KeysData_235 = keysData[235]; + KeysData_236 = keysData[236]; + KeysData_237 = keysData[237]; + KeysData_238 = keysData[238]; + KeysData_239 = keysData[239]; + KeysData_240 = keysData[240]; + KeysData_241 = keysData[241]; + KeysData_242 = keysData[242]; + KeysData_243 = keysData[243]; + KeysData_244 = keysData[244]; + KeysData_245 = keysData[245]; + KeysData_246 = keysData[246]; + KeysData_247 = keysData[247]; + KeysData_248 = keysData[248]; + KeysData_249 = keysData[249]; + KeysData_250 = keysData[250]; + KeysData_251 = keysData[251]; + KeysData_252 = keysData[252]; + KeysData_253 = keysData[253]; + KeysData_254 = keysData[254]; + KeysData_255 = keysData[255]; + KeysData_256 = keysData[256]; + KeysData_257 = keysData[257]; + KeysData_258 = keysData[258]; + KeysData_259 = keysData[259]; + KeysData_260 = keysData[260]; + KeysData_261 = keysData[261]; + KeysData_262 = keysData[262]; + KeysData_263 = keysData[263]; + KeysData_264 = keysData[264]; + KeysData_265 = keysData[265]; + KeysData_266 = keysData[266]; + KeysData_267 = keysData[267]; + KeysData_268 = keysData[268]; + KeysData_269 = keysData[269]; + KeysData_270 = keysData[270]; + KeysData_271 = keysData[271]; + KeysData_272 = keysData[272]; + KeysData_273 = keysData[273]; + KeysData_274 = keysData[274]; + KeysData_275 = keysData[275]; + KeysData_276 = keysData[276]; + KeysData_277 = keysData[277]; + KeysData_278 = keysData[278]; + KeysData_279 = keysData[279]; + KeysData_280 = keysData[280]; + KeysData_281 = keysData[281]; + KeysData_282 = keysData[282]; + KeysData_283 = keysData[283]; + KeysData_284 = keysData[284]; + KeysData_285 = keysData[285]; + KeysData_286 = keysData[286]; + KeysData_287 = keysData[287]; + KeysData_288 = keysData[288]; + KeysData_289 = keysData[289]; + KeysData_290 = keysData[290]; + KeysData_291 = keysData[291]; + KeysData_292 = keysData[292]; + KeysData_293 = keysData[293]; + KeysData_294 = keysData[294]; + KeysData_295 = keysData[295]; + KeysData_296 = keysData[296]; + KeysData_297 = keysData[297]; + KeysData_298 = keysData[298]; + KeysData_299 = keysData[299]; + KeysData_300 = keysData[300]; + KeysData_301 = keysData[301]; + KeysData_302 = keysData[302]; + KeysData_303 = keysData[303]; + KeysData_304 = keysData[304]; + KeysData_305 = keysData[305]; + KeysData_306 = keysData[306]; + KeysData_307 = keysData[307]; + KeysData_308 = keysData[308]; + KeysData_309 = keysData[309]; + KeysData_310 = keysData[310]; + KeysData_311 = keysData[311]; + KeysData_312 = keysData[312]; + KeysData_313 = keysData[313]; + KeysData_314 = keysData[314]; + KeysData_315 = keysData[315]; + KeysData_316 = keysData[316]; + KeysData_317 = keysData[317]; + KeysData_318 = keysData[318]; + KeysData_319 = keysData[319]; + KeysData_320 = keysData[320]; + KeysData_321 = keysData[321]; + KeysData_322 = keysData[322]; + KeysData_323 = keysData[323]; + KeysData_324 = keysData[324]; + KeysData_325 = keysData[325]; + KeysData_326 = keysData[326]; + KeysData_327 = keysData[327]; + KeysData_328 = keysData[328]; + KeysData_329 = keysData[329]; + KeysData_330 = keysData[330]; + KeysData_331 = keysData[331]; + KeysData_332 = keysData[332]; + KeysData_333 = keysData[333]; + KeysData_334 = keysData[334]; + KeysData_335 = keysData[335]; + KeysData_336 = keysData[336]; + KeysData_337 = keysData[337]; + KeysData_338 = keysData[338]; + KeysData_339 = keysData[339]; + KeysData_340 = keysData[340]; + KeysData_341 = keysData[341]; + KeysData_342 = keysData[342]; + KeysData_343 = keysData[343]; + KeysData_344 = keysData[344]; + KeysData_345 = keysData[345]; + KeysData_346 = keysData[346]; + KeysData_347 = keysData[347]; + KeysData_348 = keysData[348]; + KeysData_349 = keysData[349]; + KeysData_350 = keysData[350]; + KeysData_351 = keysData[351]; + KeysData_352 = keysData[352]; + KeysData_353 = keysData[353]; + KeysData_354 = keysData[354]; + KeysData_355 = keysData[355]; + KeysData_356 = keysData[356]; + KeysData_357 = keysData[357]; + KeysData_358 = keysData[358]; + KeysData_359 = keysData[359]; + KeysData_360 = keysData[360]; + KeysData_361 = keysData[361]; + KeysData_362 = keysData[362]; + KeysData_363 = keysData[363]; + KeysData_364 = keysData[364]; + KeysData_365 = keysData[365]; + KeysData_366 = keysData[366]; + KeysData_367 = keysData[367]; + KeysData_368 = keysData[368]; + KeysData_369 = keysData[369]; + KeysData_370 = keysData[370]; + KeysData_371 = keysData[371]; + KeysData_372 = keysData[372]; + KeysData_373 = keysData[373]; + KeysData_374 = keysData[374]; + KeysData_375 = keysData[375]; + KeysData_376 = keysData[376]; + KeysData_377 = keysData[377]; + KeysData_378 = keysData[378]; + KeysData_379 = keysData[379]; + KeysData_380 = keysData[380]; + KeysData_381 = keysData[381]; + KeysData_382 = keysData[382]; + KeysData_383 = keysData[383]; + KeysData_384 = keysData[384]; + KeysData_385 = keysData[385]; + KeysData_386 = keysData[386]; + KeysData_387 = keysData[387]; + KeysData_388 = keysData[388]; + KeysData_389 = keysData[389]; + KeysData_390 = keysData[390]; + KeysData_391 = keysData[391]; + KeysData_392 = keysData[392]; + KeysData_393 = keysData[393]; + KeysData_394 = keysData[394]; + KeysData_395 = keysData[395]; + KeysData_396 = keysData[396]; + KeysData_397 = keysData[397]; + KeysData_398 = keysData[398]; + KeysData_399 = keysData[399]; + KeysData_400 = keysData[400]; + KeysData_401 = keysData[401]; + KeysData_402 = keysData[402]; + KeysData_403 = keysData[403]; + KeysData_404 = keysData[404]; + KeysData_405 = keysData[405]; + KeysData_406 = keysData[406]; + KeysData_407 = keysData[407]; + KeysData_408 = keysData[408]; + KeysData_409 = keysData[409]; + KeysData_410 = keysData[410]; + KeysData_411 = keysData[411]; + KeysData_412 = keysData[412]; + KeysData_413 = keysData[413]; + KeysData_414 = keysData[414]; + KeysData_415 = keysData[415]; + KeysData_416 = keysData[416]; + KeysData_417 = keysData[417]; + KeysData_418 = keysData[418]; + KeysData_419 = keysData[419]; + KeysData_420 = keysData[420]; + KeysData_421 = keysData[421]; + KeysData_422 = keysData[422]; + KeysData_423 = keysData[423]; + KeysData_424 = keysData[424]; + KeysData_425 = keysData[425]; + KeysData_426 = keysData[426]; + KeysData_427 = keysData[427]; + KeysData_428 = keysData[428]; + KeysData_429 = keysData[429]; + KeysData_430 = keysData[430]; + KeysData_431 = keysData[431]; + KeysData_432 = keysData[432]; + KeysData_433 = keysData[433]; + KeysData_434 = keysData[434]; + KeysData_435 = keysData[435]; + KeysData_436 = keysData[436]; + KeysData_437 = keysData[437]; + KeysData_438 = keysData[438]; + KeysData_439 = keysData[439]; + KeysData_440 = keysData[440]; + KeysData_441 = keysData[441]; + KeysData_442 = keysData[442]; + KeysData_443 = keysData[443]; + KeysData_444 = keysData[444]; + KeysData_445 = keysData[445]; + KeysData_446 = keysData[446]; + KeysData_447 = keysData[447]; + KeysData_448 = keysData[448]; + KeysData_449 = keysData[449]; + KeysData_450 = keysData[450]; + KeysData_451 = keysData[451]; + KeysData_452 = keysData[452]; + KeysData_453 = keysData[453]; + KeysData_454 = keysData[454]; + KeysData_455 = keysData[455]; + KeysData_456 = keysData[456]; + KeysData_457 = keysData[457]; + KeysData_458 = keysData[458]; + KeysData_459 = keysData[459]; + KeysData_460 = keysData[460]; + KeysData_461 = keysData[461]; + KeysData_462 = keysData[462]; + KeysData_463 = keysData[463]; + KeysData_464 = keysData[464]; + KeysData_465 = keysData[465]; + KeysData_466 = keysData[466]; + KeysData_467 = keysData[467]; + KeysData_468 = keysData[468]; + KeysData_469 = keysData[469]; + KeysData_470 = keysData[470]; + KeysData_471 = keysData[471]; + KeysData_472 = keysData[472]; + KeysData_473 = keysData[473]; + KeysData_474 = keysData[474]; + KeysData_475 = keysData[475]; + KeysData_476 = keysData[476]; + KeysData_477 = keysData[477]; + KeysData_478 = keysData[478]; + KeysData_479 = keysData[479]; + KeysData_480 = keysData[480]; + KeysData_481 = keysData[481]; + KeysData_482 = keysData[482]; + KeysData_483 = keysData[483]; + KeysData_484 = keysData[484]; + KeysData_485 = keysData[485]; + KeysData_486 = keysData[486]; + KeysData_487 = keysData[487]; + KeysData_488 = keysData[488]; + KeysData_489 = keysData[489]; + KeysData_490 = keysData[490]; + KeysData_491 = keysData[491]; + KeysData_492 = keysData[492]; + KeysData_493 = keysData[493]; + KeysData_494 = keysData[494]; + KeysData_495 = keysData[495]; + KeysData_496 = keysData[496]; + KeysData_497 = keysData[497]; + KeysData_498 = keysData[498]; + KeysData_499 = keysData[499]; + KeysData_500 = keysData[500]; + KeysData_501 = keysData[501]; + KeysData_502 = keysData[502]; + KeysData_503 = keysData[503]; + KeysData_504 = keysData[504]; + KeysData_505 = keysData[505]; + KeysData_506 = keysData[506]; + KeysData_507 = keysData[507]; + KeysData_508 = keysData[508]; + KeysData_509 = keysData[509]; + KeysData_510 = keysData[510]; + KeysData_511 = keysData[511]; + KeysData_512 = keysData[512]; + KeysData_513 = keysData[513]; + KeysData_514 = keysData[514]; + KeysData_515 = keysData[515]; + KeysData_516 = keysData[516]; + KeysData_517 = keysData[517]; + KeysData_518 = keysData[518]; + KeysData_519 = keysData[519]; + KeysData_520 = keysData[520]; + KeysData_521 = keysData[521]; + KeysData_522 = keysData[522]; + KeysData_523 = keysData[523]; + KeysData_524 = keysData[524]; + KeysData_525 = keysData[525]; + KeysData_526 = keysData[526]; + KeysData_527 = keysData[527]; + KeysData_528 = keysData[528]; + KeysData_529 = keysData[529]; + KeysData_530 = keysData[530]; + KeysData_531 = keysData[531]; + KeysData_532 = keysData[532]; + KeysData_533 = keysData[533]; + KeysData_534 = keysData[534]; + KeysData_535 = keysData[535]; + KeysData_536 = keysData[536]; + KeysData_537 = keysData[537]; + KeysData_538 = keysData[538]; + KeysData_539 = keysData[539]; + KeysData_540 = keysData[540]; + KeysData_541 = keysData[541]; + KeysData_542 = keysData[542]; + KeysData_543 = keysData[543]; + KeysData_544 = keysData[544]; + KeysData_545 = keysData[545]; + KeysData_546 = keysData[546]; + KeysData_547 = keysData[547]; + KeysData_548 = keysData[548]; + KeysData_549 = keysData[549]; + KeysData_550 = keysData[550]; + KeysData_551 = keysData[551]; + KeysData_552 = keysData[552]; + KeysData_553 = keysData[553]; + KeysData_554 = keysData[554]; + KeysData_555 = keysData[555]; + KeysData_556 = keysData[556]; + KeysData_557 = keysData[557]; + KeysData_558 = keysData[558]; + KeysData_559 = keysData[559]; + KeysData_560 = keysData[560]; + KeysData_561 = keysData[561]; + KeysData_562 = keysData[562]; + KeysData_563 = keysData[563]; + KeysData_564 = keysData[564]; + KeysData_565 = keysData[565]; + KeysData_566 = keysData[566]; + KeysData_567 = keysData[567]; + KeysData_568 = keysData[568]; + KeysData_569 = keysData[569]; + KeysData_570 = keysData[570]; + KeysData_571 = keysData[571]; + KeysData_572 = keysData[572]; + KeysData_573 = keysData[573]; + KeysData_574 = keysData[574]; + KeysData_575 = keysData[575]; + KeysData_576 = keysData[576]; + KeysData_577 = keysData[577]; + KeysData_578 = keysData[578]; + KeysData_579 = keysData[579]; + KeysData_580 = keysData[580]; + KeysData_581 = keysData[581]; + KeysData_582 = keysData[582]; + KeysData_583 = keysData[583]; + KeysData_584 = keysData[584]; + KeysData_585 = keysData[585]; + KeysData_586 = keysData[586]; + KeysData_587 = keysData[587]; + KeysData_588 = keysData[588]; + KeysData_589 = keysData[589]; + KeysData_590 = keysData[590]; + KeysData_591 = keysData[591]; + KeysData_592 = keysData[592]; + KeysData_593 = keysData[593]; + KeysData_594 = keysData[594]; + KeysData_595 = keysData[595]; + KeysData_596 = keysData[596]; + KeysData_597 = keysData[597]; + KeysData_598 = keysData[598]; + KeysData_599 = keysData[599]; + KeysData_600 = keysData[600]; + KeysData_601 = keysData[601]; + KeysData_602 = keysData[602]; + KeysData_603 = keysData[603]; + KeysData_604 = keysData[604]; + KeysData_605 = keysData[605]; + KeysData_606 = keysData[606]; + KeysData_607 = keysData[607]; + KeysData_608 = keysData[608]; + KeysData_609 = keysData[609]; + KeysData_610 = keysData[610]; + KeysData_611 = keysData[611]; + KeysData_612 = keysData[612]; + KeysData_613 = keysData[613]; + KeysData_614 = keysData[614]; + KeysData_615 = keysData[615]; + KeysData_616 = keysData[616]; + KeysData_617 = keysData[617]; + KeysData_618 = keysData[618]; + KeysData_619 = keysData[619]; + KeysData_620 = keysData[620]; + KeysData_621 = keysData[621]; + KeysData_622 = keysData[622]; + KeysData_623 = keysData[623]; + KeysData_624 = keysData[624]; + KeysData_625 = keysData[625]; + KeysData_626 = keysData[626]; + KeysData_627 = keysData[627]; + KeysData_628 = keysData[628]; + KeysData_629 = keysData[629]; + KeysData_630 = keysData[630]; + KeysData_631 = keysData[631]; + KeysData_632 = keysData[632]; + KeysData_633 = keysData[633]; + KeysData_634 = keysData[634]; + KeysData_635 = keysData[635]; + KeysData_636 = keysData[636]; + KeysData_637 = keysData[637]; + KeysData_638 = keysData[638]; + KeysData_639 = keysData[639]; + KeysData_640 = keysData[640]; + KeysData_641 = keysData[641]; + KeysData_642 = keysData[642]; + KeysData_643 = keysData[643]; + KeysData_644 = keysData[644]; + KeysData_645 = keysData[645]; + KeysData_646 = keysData[646]; + KeysData_647 = keysData[647]; + KeysData_648 = keysData[648]; + KeysData_649 = keysData[649]; + KeysData_650 = keysData[650]; + KeysData_651 = keysData[651]; + KeysData_652 = keysData[652]; + KeysData_653 = keysData[653]; + KeysData_654 = keysData[654]; + KeysData_655 = keysData[655]; + KeysData_656 = keysData[656]; + KeysData_657 = keysData[657]; + KeysData_658 = keysData[658]; + KeysData_659 = keysData[659]; + KeysData_660 = keysData[660]; + KeysData_661 = keysData[661]; + KeysData_662 = keysData[662]; + KeysData_663 = keysData[663]; + KeysData_664 = keysData[664]; + KeysData_665 = keysData[665]; + } + WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; + MousePosPrev = mousePosPrev; + if (mouseClickedPos != default) + { + MouseClickedPos_0 = mouseClickedPos[0]; + MouseClickedPos_1 = mouseClickedPos[1]; + MouseClickedPos_2 = mouseClickedPos[2]; + MouseClickedPos_3 = mouseClickedPos[3]; + MouseClickedPos_4 = mouseClickedPos[4]; + } + if (mouseClickedTime != default) + { + MouseClickedTime_0 = mouseClickedTime[0]; + MouseClickedTime_1 = mouseClickedTime[1]; + MouseClickedTime_2 = mouseClickedTime[2]; + MouseClickedTime_3 = mouseClickedTime[3]; + MouseClickedTime_4 = mouseClickedTime[4]; + } + if (mouseClicked != default) + { + MouseClicked_0 = mouseClicked[0]; + MouseClicked_1 = mouseClicked[1]; + MouseClicked_2 = mouseClicked[2]; + MouseClicked_3 = mouseClicked[3]; + MouseClicked_4 = mouseClicked[4]; + } + if (mouseDoubleClicked != default) + { + MouseDoubleClicked_0 = mouseDoubleClicked[0]; + MouseDoubleClicked_1 = mouseDoubleClicked[1]; + MouseDoubleClicked_2 = mouseDoubleClicked[2]; + MouseDoubleClicked_3 = mouseDoubleClicked[3]; + MouseDoubleClicked_4 = mouseDoubleClicked[4]; + } + if (mouseClickedCount != default) + { + MouseClickedCount_0 = mouseClickedCount[0]; + MouseClickedCount_1 = mouseClickedCount[1]; + MouseClickedCount_2 = mouseClickedCount[2]; + MouseClickedCount_3 = mouseClickedCount[3]; + MouseClickedCount_4 = mouseClickedCount[4]; + } + if (mouseClickedLastCount != default) + { + MouseClickedLastCount_0 = mouseClickedLastCount[0]; + MouseClickedLastCount_1 = mouseClickedLastCount[1]; + MouseClickedLastCount_2 = mouseClickedLastCount[2]; + MouseClickedLastCount_3 = mouseClickedLastCount[3]; + MouseClickedLastCount_4 = mouseClickedLastCount[4]; + } + if (mouseReleased != default) + { + MouseReleased_0 = mouseReleased[0]; + MouseReleased_1 = mouseReleased[1]; + MouseReleased_2 = mouseReleased[2]; + MouseReleased_3 = mouseReleased[3]; + MouseReleased_4 = mouseReleased[4]; + } + if (mouseDownOwned != default) + { + MouseDownOwned_0 = mouseDownOwned[0]; + MouseDownOwned_1 = mouseDownOwned[1]; + MouseDownOwned_2 = mouseDownOwned[2]; + MouseDownOwned_3 = mouseDownOwned[3]; + MouseDownOwned_4 = mouseDownOwned[4]; + } + if (mouseDownOwnedUnlessPopupClose != default) + { + MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; + MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; + MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; + MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; + MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; + } + MouseWheelRequestAxisSwap = mouseWheelRequestAxisSwap ? (byte)1 : (byte)0; + if (mouseDownDuration != default) + { + MouseDownDuration_0 = mouseDownDuration[0]; + MouseDownDuration_1 = mouseDownDuration[1]; + MouseDownDuration_2 = mouseDownDuration[2]; + MouseDownDuration_3 = mouseDownDuration[3]; + MouseDownDuration_4 = mouseDownDuration[4]; + } + if (mouseDownDurationPrev != default) + { + MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; + MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; + MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; + MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; + MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; + } + if (mouseDragMaxDistanceAbs != default) + { + MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; + MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; + MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; + MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; + MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; + } + if (mouseDragMaxDistanceSqr != default) + { + MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; + MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; + MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; + MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; + MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; + } + PenPressure = penPressure; + AppFocusLost = appFocusLost ? (byte)1 : (byte)0; + AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; + BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; + BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; + InputQueueSurrogate = inputQueueSurrogate; + InputQueueCharacters = inputQueueCharacters; + } + + + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + public unsafe Span KeysData + + { + get + { + fixed (ImGuiKeyData* p = &this.KeysData_0) + { + return new Span(p, 666); + } + } + } + /// + /// To be documented. + /// + public unsafe Span MouseClickedPos + + { + get + { + fixed (Vector2* p = &this.MouseClickedPos_0) + { + return new Span(p, 5); + } + } + } + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + public unsafe Span MouseDragMaxDistanceAbs + + { + get + { + fixed (Vector2* p = &this.MouseDragMaxDistanceAbs_0) + { + return new Span(p, 5); + } + } + } + /// + /// To be documented. + /// + public unsafe void AddFocusEvent( bool focused) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddFocusEventNative(@this, focused ? (byte)1 : (byte)0); + } + } + + public unsafe void AddInputCharacter( uint c) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddInputCharacterNative(@this, c); + } + } + + public unsafe void AddInputCharactersUTF8( byte* str) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddInputCharactersUTF8Native(@this, str); + } + } + + public unsafe void AddInputCharactersUTF8( ref byte str) + { + fixed (ImGuiIO* @this = &this) + { + fixed (byte* pstr = &str) + { + ImGui.AddInputCharactersUTF8Native(@this, (byte*)pstr); + } + } + } + + public unsafe void AddInputCharactersUTF8( string str) + { + fixed (ImGuiIO* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.AddInputCharactersUTF8Native(@this, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void AddInputCharacterUTF16( ushort c) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddInputCharacterUTF16Native(@this, c); + } + } + + public unsafe void AddKeyAnalogEvent( ImGuiKey key, bool down, float v) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddKeyAnalogEventNative(@this, key, down ? (byte)1 : (byte)0, v); + } + } + + public unsafe void AddKeyEvent( ImGuiKey key, bool down) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddKeyEventNative(@this, key, down ? (byte)1 : (byte)0); + } + } + + public unsafe void AddMouseButtonEvent( int button, bool down) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddMouseButtonEventNative(@this, button, down ? (byte)1 : (byte)0); + } + } + + public unsafe void AddMousePosEvent( float x, float y) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddMousePosEventNative(@this, x, y); + } + } + + public unsafe void AddMouseSourceEvent( ImGuiMouseSource source) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddMouseSourceEventNative(@this, source); + } + } + + public unsafe void AddMouseViewportEvent( uint id) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddMouseViewportEventNative(@this, id); + } + } + + public unsafe void AddMouseWheelEvent( float wheelX, float wheelY) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.AddMouseWheelEventNative(@this, wheelX, wheelY); + } + } + + public unsafe void ClearEventsQueue() + { + fixed (ImGuiIO* @this = &this) + { + ImGui.ClearEventsQueueNative(@this); + } + } + + public unsafe void ClearInputKeys() + { + fixed (ImGuiIO* @this = &this) + { + ImGui.ClearInputKeysNative(@this); + } + } + + public unsafe void Destroy() + { + fixed (ImGuiIO* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe void SetAppAcceptingEvents( bool acceptingEvents) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.SetAppAcceptingEventsNative(@this, acceptingEvents ? (byte)1 : (byte)0); + } + } + + public unsafe void SetKeyEventNativeData( ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.SetKeyEventNativeDataNative(@this, key, nativeKeycode, nativeScancode, nativeLegacyIndex); + } + } + + public unsafe void SetKeyEventNativeData( ImGuiKey key, int nativeKeycode, int nativeScancode) + { + fixed (ImGuiIO* @this = &this) + { + ImGui.SetKeyEventNativeDataNative(@this, key, nativeKeycode, nativeScancode, (int)(-1)); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPlatformImeData + { + /// + /// To be documented. + /// + public byte WantVisible; + + /// + /// To be documented. + /// + public Vector2 InputPos; + + /// + /// To be documented. + /// + public float InputLineHeight; + + + + /// /// To be documented. /// public unsafe ImGuiPlatformImeData(bool wantVisible = default, Vector2 inputPos = default, float inputLineHeight = default) + { + WantVisible = wantVisible ? (byte)1 : (byte)0; + InputPos = inputPos; + InputLineHeight = inputLineHeight; + } + + + public unsafe void Destroy() + { + fixed (ImGuiPlatformImeData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiKeyData + { + /// + /// To be documented. + /// + public byte Down; + + /// + /// To be documented. + /// + public float DownDuration; + + /// + /// To be documented. + /// + public float DownDurationPrev; + + /// + /// To be documented. + /// + public float AnalogValue; + + + /// /// To be documented. /// public unsafe ImGuiKeyData(bool down = default, float downDuration = default, float downDurationPrev = default, float analogValue = default) + { + Down = down ? (byte)1 : (byte)0; + DownDuration = downDuration; + DownDurationPrev = downDurationPrev; + AnalogValue = analogValue; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPlatformIO + { + /// + /// To be documented. + /// + public unsafe void* PlatformCreateWindow; + + /// + /// To be documented. + /// + public unsafe void* PlatformDestroyWindow; + + /// + /// To be documented. + /// + public unsafe void* PlatformShowWindow; + + /// + /// To be documented. + /// + public unsafe void* PlatformSetWindowPos; + + /// + /// To be documented. + /// + public unsafe void* PlatformGetWindowPos; + + /// + /// To be documented. + /// + public unsafe void* PlatformSetWindowSize; + + /// + /// To be documented. + /// + public unsafe void* PlatformGetWindowSize; + + /// + /// To be documented. + /// + public unsafe void* PlatformSetWindowFocus; + + /// + /// To be documented. + /// + public unsafe void* PlatformGetWindowFocus; + + /// + /// To be documented. + /// + public unsafe void* PlatformGetWindowMinimized; + + /// + /// To be documented. + /// + public unsafe void* PlatformSetWindowTitle; + + /// + /// To be documented. + /// + public unsafe void* PlatformSetWindowAlpha; + + /// + /// To be documented. + /// + public unsafe void* PlatformUpdateWindow; + + /// + /// To be documented. + /// + public unsafe void* PlatformRenderWindow; + + /// + /// To be documented. + /// + public unsafe void* PlatformSwapBuffers; + + /// + /// To be documented. + /// + public unsafe void* PlatformGetWindowDpiScale; + + /// + /// To be documented. + /// + public unsafe void* PlatformOnChangedViewport; + + /// + /// To be documented. + /// + public unsafe void* PlatformCreateVkSurface; + + /// + /// To be documented. + /// + public unsafe void* RendererCreateWindow; + + /// + /// To be documented. + /// + public unsafe void* RendererDestroyWindow; + + /// + /// To be documented. + /// + public unsafe void* RendererSetWindowSize; + + /// + /// To be documented. + /// + public unsafe void* RendererRenderWindow; + + /// + /// To be documented. + /// + public unsafe void* RendererSwapBuffers; + + /// + /// To be documented. + /// + public ImVectorImGuiPlatformMonitor Monitors; + + /// + /// To be documented. + /// + public ImVectorImGuiViewportPtr Viewports; + + + + /// /// To be documented. /// public unsafe ImGuiPlatformIO(delegate* platformCreatewindow = default, delegate* platformDestroywindow = default, delegate* platformShowwindow = default, delegate* platformSetwindowpos = default, delegate* platformGetwindowpos = default, delegate* platformSetwindowsize = default, delegate* platformGetwindowsize = default, delegate* platformSetwindowfocus = default, delegate* platformGetwindowfocus = default, delegate* platformGetwindowminimized = default, delegate* platformSetwindowtitle = default, delegate* platformSetwindowalpha = default, delegate* platformUpdatewindow = default, delegate* platformRenderwindow = default, delegate* platformSwapbuffers = default, delegate* platformGetwindowdpiscale = default, delegate* platformOnchangedviewport = default, delegate* platformCreatevksurface = default, delegate* rendererCreatewindow = default, delegate* rendererDestroywindow = default, delegate* rendererSetwindowsize = default, delegate* rendererRenderwindow = default, delegate* rendererSwapbuffers = default, ImVectorImGuiPlatformMonitor monitors = default, ImVectorImGuiViewportPtr viewports = default) + { + PlatformCreateWindow = (void*)platformCreatewindow; + PlatformDestroyWindow = (void*)platformDestroywindow; + PlatformShowWindow = (void*)platformShowwindow; + PlatformSetWindowPos = (void*)platformSetwindowpos; + PlatformGetWindowPos = (void*)platformGetwindowpos; + PlatformSetWindowSize = (void*)platformSetwindowsize; + PlatformGetWindowSize = (void*)platformGetwindowsize; + PlatformSetWindowFocus = (void*)platformSetwindowfocus; + PlatformGetWindowFocus = (void*)platformGetwindowfocus; + PlatformGetWindowMinimized = (void*)platformGetwindowminimized; + PlatformSetWindowTitle = (void*)platformSetwindowtitle; + PlatformSetWindowAlpha = (void*)platformSetwindowalpha; + PlatformUpdateWindow = (void*)platformUpdatewindow; + PlatformRenderWindow = (void*)platformRenderwindow; + PlatformSwapBuffers = (void*)platformSwapbuffers; + PlatformGetWindowDpiScale = (void*)platformGetwindowdpiscale; + PlatformOnChangedViewport = (void*)platformOnchangedviewport; + PlatformCreateVkSurface = (void*)platformCreatevksurface; + RendererCreateWindow = (void*)rendererCreatewindow; + RendererDestroyWindow = (void*)rendererDestroywindow; + RendererSetWindowSize = (void*)rendererSetwindowsize; + RendererRenderWindow = (void*)rendererRenderwindow; + RendererSwapBuffers = (void*)rendererSwapbuffers; + Monitors = monitors; + Viewports = viewports; + } + + + public unsafe void Destroy() + { + fixed (ImGuiPlatformIO* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiPlatformMonitor + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiPlatformMonitor* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiPlatformMonitor(int size = default, int capacity = default, ImGuiPlatformMonitor* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPlatformMonitor + { + /// + /// To be documented. + /// + public Vector2 MainPos; + + /// + /// To be documented. + /// + public Vector2 MainSize; + + /// + /// To be documented. + /// + public Vector2 WorkPos; + + /// + /// To be documented. + /// + public Vector2 WorkSize; + + /// + /// To be documented. + /// + public float DpiScale; + + /// + /// To be documented. + /// + public unsafe void* PlatformHandle; + + + + /// /// To be documented. /// public unsafe ImGuiPlatformMonitor(Vector2 mainPos = default, Vector2 mainSize = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default, void* platformHandle = default) + { + MainPos = mainPos; + MainSize = mainSize; + WorkPos = workPos; + WorkSize = workSize; + DpiScale = dpiScale; + PlatformHandle = platformHandle; + } + + + public unsafe void Destroy() + { + fixed (ImGuiPlatformMonitor* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiViewportPtr + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiViewport** Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiViewportPtr(int size = default, int capacity = default, ImGuiViewport** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStyle + { + /// + /// To be documented. + /// + public float Alpha; + + /// + /// To be documented. + /// + public float DisabledAlpha; + + /// + /// To be documented. + /// + public Vector2 WindowPadding; + + /// + /// To be documented. + /// + public float WindowRounding; + + /// + /// To be documented. + /// + public float WindowBorderSize; + + /// + /// To be documented. + /// + public Vector2 WindowMinSize; + + /// + /// To be documented. + /// + public Vector2 WindowTitleAlign; + + /// + /// To be documented. + /// + public int WindowMenuButtonPosition; + + /// + /// To be documented. + /// + public float ChildRounding; + + /// + /// To be documented. + /// + public float ChildBorderSize; + + /// + /// To be documented. + /// + public float PopupRounding; + + /// + /// To be documented. + /// + public float PopupBorderSize; + + /// + /// To be documented. + /// + public Vector2 FramePadding; + + /// + /// To be documented. + /// + public float FrameRounding; + + /// + /// To be documented. + /// + public float FrameBorderSize; + + /// + /// To be documented. + /// + public Vector2 ItemSpacing; + + /// + /// To be documented. + /// + public Vector2 ItemInnerSpacing; + + /// + /// To be documented. + /// + public Vector2 CellPadding; + + /// + /// To be documented. + /// + public Vector2 TouchExtraPadding; + + /// + /// To be documented. + /// + public float IndentSpacing; + + /// + /// To be documented. + /// + public float ColumnsMinSpacing; + + /// + /// To be documented. + /// + public float ScrollbarSize; + + /// + /// To be documented. + /// + public float ScrollbarRounding; + + /// + /// To be documented. + /// + public float GrabMinSize; + + /// + /// To be documented. + /// + public float GrabRounding; + + /// + /// To be documented. + /// + public float LogSliderDeadzone; + + /// + /// To be documented. + /// + public float TabRounding; + + /// + /// To be documented. + /// + public float TabBorderSize; + + /// + /// To be documented. + /// + public float TabMinWidthForCloseButton; + + /// + /// To be documented. + /// + public float TabBarBorderSize; + + /// + /// To be documented. + /// + public float TableAngledHeadersAngle; + + /// + /// To be documented. + /// + public int ColorButtonPosition; + + /// + /// To be documented. + /// + public Vector2 ButtonTextAlign; + + /// + /// To be documented. + /// + public Vector2 SelectableTextAlign; + + /// + /// To be documented. + /// + public float SeparatorTextBorderSize; + + /// + /// To be documented. + /// + public Vector2 SeparatorTextAlign; + + /// + /// To be documented. + /// + public Vector2 SeparatorTextPadding; + + /// + /// To be documented. + /// + public Vector2 DisplayWindowPadding; + + /// + /// To be documented. + /// + public Vector2 DisplaySafeAreaPadding; + + /// + /// To be documented. + /// + public float DockingSeparatorSize; + + /// + /// To be documented. + /// + public float MouseCursorScale; + + /// + /// To be documented. + /// + public byte AntiAliasedLines; + + /// + /// To be documented. + /// + public byte AntiAliasedLinesUseTex; + + /// + /// To be documented. + /// + public byte AntiAliasedFill; + + /// + /// To be documented. + /// + public float CurveTessellationTol; + + /// + /// To be documented. + /// + public float CircleTessellationMaxError; + + /// + /// To be documented. + /// + public Vector4 Colors_0; + public Vector4 Colors_1; + public Vector4 Colors_2; + public Vector4 Colors_3; + public Vector4 Colors_4; + public Vector4 Colors_5; + public Vector4 Colors_6; + public Vector4 Colors_7; + public Vector4 Colors_8; + public Vector4 Colors_9; + public Vector4 Colors_10; + public Vector4 Colors_11; + public Vector4 Colors_12; + public Vector4 Colors_13; + public Vector4 Colors_14; + public Vector4 Colors_15; + public Vector4 Colors_16; + public Vector4 Colors_17; + public Vector4 Colors_18; + public Vector4 Colors_19; + public Vector4 Colors_20; + public Vector4 Colors_21; + public Vector4 Colors_22; + public Vector4 Colors_23; + public Vector4 Colors_24; + public Vector4 Colors_25; + public Vector4 Colors_26; + public Vector4 Colors_27; + public Vector4 Colors_28; + public Vector4 Colors_29; + public Vector4 Colors_30; + public Vector4 Colors_31; + public Vector4 Colors_32; + public Vector4 Colors_33; + public Vector4 Colors_34; + public Vector4 Colors_35; + public Vector4 Colors_36; + public Vector4 Colors_37; + public Vector4 Colors_38; + public Vector4 Colors_39; + public Vector4 Colors_40; + public Vector4 Colors_41; + public Vector4 Colors_42; + public Vector4 Colors_43; + public Vector4 Colors_44; + public Vector4 Colors_45; + public Vector4 Colors_46; + public Vector4 Colors_47; + public Vector4 Colors_48; + public Vector4 Colors_49; + public Vector4 Colors_50; + public Vector4 Colors_51; + public Vector4 Colors_52; + public Vector4 Colors_53; + public Vector4 Colors_54; + + /// + /// To be documented. + /// + public float HoverStationaryDelay; + + /// + /// To be documented. + /// + public float HoverDelayShort; + + /// + /// To be documented. + /// + public float HoverDelayNormal; + + /// + /// To be documented. + /// + public int HoverFlagsForTooltipMouse; + + /// + /// To be documented. + /// + public int HoverFlagsForTooltipNav; + + + + /// /// To be documented. /// public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, int windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, float tabBarBorderSize = default, float tableAngledHeadersAngle = default, int colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, float separatorTextBorderSize = default, Vector2 separatorTextAlign = default, Vector2 separatorTextPadding = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float dockingSeparatorSize = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Vector4* colors = default, float hoverStationaryDelay = default, float hoverDelayShort = default, float hoverDelayNormal = default, int hoverFlagsForTooltipMouse = default, int hoverFlagsForTooltipNav = default) + { + Alpha = alpha; + DisabledAlpha = disabledAlpha; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + WindowMinSize = windowMinSize; + WindowTitleAlign = windowTitleAlign; + WindowMenuButtonPosition = windowMenuButtonPosition; + ChildRounding = childRounding; + ChildBorderSize = childBorderSize; + PopupRounding = popupRounding; + PopupBorderSize = popupBorderSize; + FramePadding = framePadding; + FrameRounding = frameRounding; + FrameBorderSize = frameBorderSize; + ItemSpacing = itemSpacing; + ItemInnerSpacing = itemInnerSpacing; + CellPadding = cellPadding; + TouchExtraPadding = touchExtraPadding; + IndentSpacing = indentSpacing; + ColumnsMinSpacing = columnsMinSpacing; + ScrollbarSize = scrollbarSize; + ScrollbarRounding = scrollbarRounding; + GrabMinSize = grabMinSize; + GrabRounding = grabRounding; + LogSliderDeadzone = logSliderDeadzone; + TabRounding = tabRounding; + TabBorderSize = tabBorderSize; + TabMinWidthForCloseButton = tabMinWidthForCloseButton; + TabBarBorderSize = tabBarBorderSize; + TableAngledHeadersAngle = tableAngledHeadersAngle; + ColorButtonPosition = colorButtonPosition; + ButtonTextAlign = buttonTextAlign; + SelectableTextAlign = selectableTextAlign; + SeparatorTextBorderSize = separatorTextBorderSize; + SeparatorTextAlign = separatorTextAlign; + SeparatorTextPadding = separatorTextPadding; + DisplayWindowPadding = displayWindowPadding; + DisplaySafeAreaPadding = displaySafeAreaPadding; + DockingSeparatorSize = dockingSeparatorSize; + MouseCursorScale = mouseCursorScale; + AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; + AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; + AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; + CurveTessellationTol = curveTessellationTol; + CircleTessellationMaxError = circleTessellationMaxError; + if (colors != default) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + Colors_6 = colors[6]; + Colors_7 = colors[7]; + Colors_8 = colors[8]; + Colors_9 = colors[9]; + Colors_10 = colors[10]; + Colors_11 = colors[11]; + Colors_12 = colors[12]; + Colors_13 = colors[13]; + Colors_14 = colors[14]; + Colors_15 = colors[15]; + Colors_16 = colors[16]; + Colors_17 = colors[17]; + Colors_18 = colors[18]; + Colors_19 = colors[19]; + Colors_20 = colors[20]; + Colors_21 = colors[21]; + Colors_22 = colors[22]; + Colors_23 = colors[23]; + Colors_24 = colors[24]; + Colors_25 = colors[25]; + Colors_26 = colors[26]; + Colors_27 = colors[27]; + Colors_28 = colors[28]; + Colors_29 = colors[29]; + Colors_30 = colors[30]; + Colors_31 = colors[31]; + Colors_32 = colors[32]; + Colors_33 = colors[33]; + Colors_34 = colors[34]; + Colors_35 = colors[35]; + Colors_36 = colors[36]; + Colors_37 = colors[37]; + Colors_38 = colors[38]; + Colors_39 = colors[39]; + Colors_40 = colors[40]; + Colors_41 = colors[41]; + Colors_42 = colors[42]; + Colors_43 = colors[43]; + Colors_44 = colors[44]; + Colors_45 = colors[45]; + Colors_46 = colors[46]; + Colors_47 = colors[47]; + Colors_48 = colors[48]; + Colors_49 = colors[49]; + Colors_50 = colors[50]; + Colors_51 = colors[51]; + Colors_52 = colors[52]; + Colors_53 = colors[53]; + Colors_54 = colors[54]; + } + HoverStationaryDelay = hoverStationaryDelay; + HoverDelayShort = hoverDelayShort; + HoverDelayNormal = hoverDelayNormal; + HoverFlagsForTooltipMouse = hoverFlagsForTooltipMouse; + HoverFlagsForTooltipNav = hoverFlagsForTooltipNav; + } + + /// /// To be documented. /// public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, int windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, float tabBarBorderSize = default, float tableAngledHeadersAngle = default, int colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, float separatorTextBorderSize = default, Vector2 separatorTextAlign = default, Vector2 separatorTextPadding = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float dockingSeparatorSize = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Span colors = default, float hoverStationaryDelay = default, float hoverDelayShort = default, float hoverDelayNormal = default, int hoverFlagsForTooltipMouse = default, int hoverFlagsForTooltipNav = default) + { + Alpha = alpha; + DisabledAlpha = disabledAlpha; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + WindowMinSize = windowMinSize; + WindowTitleAlign = windowTitleAlign; + WindowMenuButtonPosition = windowMenuButtonPosition; + ChildRounding = childRounding; + ChildBorderSize = childBorderSize; + PopupRounding = popupRounding; + PopupBorderSize = popupBorderSize; + FramePadding = framePadding; + FrameRounding = frameRounding; + FrameBorderSize = frameBorderSize; + ItemSpacing = itemSpacing; + ItemInnerSpacing = itemInnerSpacing; + CellPadding = cellPadding; + TouchExtraPadding = touchExtraPadding; + IndentSpacing = indentSpacing; + ColumnsMinSpacing = columnsMinSpacing; + ScrollbarSize = scrollbarSize; + ScrollbarRounding = scrollbarRounding; + GrabMinSize = grabMinSize; + GrabRounding = grabRounding; + LogSliderDeadzone = logSliderDeadzone; + TabRounding = tabRounding; + TabBorderSize = tabBorderSize; + TabMinWidthForCloseButton = tabMinWidthForCloseButton; + TabBarBorderSize = tabBarBorderSize; + TableAngledHeadersAngle = tableAngledHeadersAngle; + ColorButtonPosition = colorButtonPosition; + ButtonTextAlign = buttonTextAlign; + SelectableTextAlign = selectableTextAlign; + SeparatorTextBorderSize = separatorTextBorderSize; + SeparatorTextAlign = separatorTextAlign; + SeparatorTextPadding = separatorTextPadding; + DisplayWindowPadding = displayWindowPadding; + DisplaySafeAreaPadding = displaySafeAreaPadding; + DockingSeparatorSize = dockingSeparatorSize; + MouseCursorScale = mouseCursorScale; + AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; + AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; + AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; + CurveTessellationTol = curveTessellationTol; + CircleTessellationMaxError = circleTessellationMaxError; + if (colors != default) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + Colors_6 = colors[6]; + Colors_7 = colors[7]; + Colors_8 = colors[8]; + Colors_9 = colors[9]; + Colors_10 = colors[10]; + Colors_11 = colors[11]; + Colors_12 = colors[12]; + Colors_13 = colors[13]; + Colors_14 = colors[14]; + Colors_15 = colors[15]; + Colors_16 = colors[16]; + Colors_17 = colors[17]; + Colors_18 = colors[18]; + Colors_19 = colors[19]; + Colors_20 = colors[20]; + Colors_21 = colors[21]; + Colors_22 = colors[22]; + Colors_23 = colors[23]; + Colors_24 = colors[24]; + Colors_25 = colors[25]; + Colors_26 = colors[26]; + Colors_27 = colors[27]; + Colors_28 = colors[28]; + Colors_29 = colors[29]; + Colors_30 = colors[30]; + Colors_31 = colors[31]; + Colors_32 = colors[32]; + Colors_33 = colors[33]; + Colors_34 = colors[34]; + Colors_35 = colors[35]; + Colors_36 = colors[36]; + Colors_37 = colors[37]; + Colors_38 = colors[38]; + Colors_39 = colors[39]; + Colors_40 = colors[40]; + Colors_41 = colors[41]; + Colors_42 = colors[42]; + Colors_43 = colors[43]; + Colors_44 = colors[44]; + Colors_45 = colors[45]; + Colors_46 = colors[46]; + Colors_47 = colors[47]; + Colors_48 = colors[48]; + Colors_49 = colors[49]; + Colors_50 = colors[50]; + Colors_51 = colors[51]; + Colors_52 = colors[52]; + Colors_53 = colors[53]; + Colors_54 = colors[54]; + } + HoverStationaryDelay = hoverStationaryDelay; + HoverDelayShort = hoverDelayShort; + HoverDelayNormal = hoverDelayNormal; + HoverFlagsForTooltipMouse = hoverFlagsForTooltipMouse; + HoverFlagsForTooltipNav = hoverFlagsForTooltipNav; + } + + + /// + /// To be documented. + /// + public unsafe Span Colors + + { + get + { + fixed (Vector4* p = &this.Colors_0) + { + return new Span(p, 55); + } + } + } + public unsafe void Destroy() + { + fixed (ImGuiStyle* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe void ScaleAllSizes( float scaleFactor) + { + fixed (ImGuiStyle* @this = &this) + { + ImGui.ScaleAllSizesNative(@this, scaleFactor); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiInputEvent + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiInputEvent* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiInputEvent(int size = default, int capacity = default, ImGuiInputEvent* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEvent + { + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Explicit)] + public partial struct ImGuiInputEventUnion + { + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventMousePos MousePos; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventMouseWheel MouseWheel; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventMouseButton MouseButton; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventMouseViewport MouseViewport; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventKey Key; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventText Text; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public ImGuiInputEventAppFocused AppFocused; + + + /// /// To be documented. /// public unsafe ImGuiInputEventUnion(ImGuiInputEventMousePos mousePos = default, ImGuiInputEventMouseWheel mouseWheel = default, ImGuiInputEventMouseButton mouseButton = default, ImGuiInputEventMouseViewport mouseViewport = default, ImGuiInputEventKey key = default, ImGuiInputEventText text = default, ImGuiInputEventAppFocused appFocused = default) + { + MousePos = mousePos; + MouseWheel = mouseWheel; + MouseButton = mouseButton; + MouseViewport = mouseViewport; + Key = key; + Text = text; + AppFocused = appFocused; + } + + + } + + /// + /// To be documented. + /// + public ImGuiInputEventType Type; + + /// + /// To be documented. + /// + public ImGuiInputSource Source; + + /// + /// To be documented. + /// + public uint EventId; + + /// + /// To be documented. + /// + public ; + + /// + /// To be documented. + /// + public byte AddedByTestEngine; + + + /// /// To be documented. /// public unsafe ImGuiInputEvent(ImGuiInputEventType type = default, ImGuiInputSource source = default, uint eventId = default, = default, bool addedByTestEngine = default) + { + Type = type; + Source = source; + EventId = eventId; + this. = ; + AddedByTestEngine = addedByTestEngine ? (byte)1 : (byte)0; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMousePos + { + /// + /// To be documented. + /// + public float PosX; + + /// + /// To be documented. + /// + public float PosY; + + /// + /// To be documented. + /// + public ImGuiMouseSource MouseSource; + + + /// /// To be documented. /// public unsafe ImGuiInputEventMousePos(float posX = default, float posY = default, ImGuiMouseSource mouseSource = default) + { + PosX = posX; + PosY = posY; + MouseSource = mouseSource; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMouseWheel + { + /// + /// To be documented. + /// + public float WheelX; + + /// + /// To be documented. + /// + public float WheelY; + + /// + /// To be documented. + /// + public ImGuiMouseSource MouseSource; + + + /// /// To be documented. /// public unsafe ImGuiInputEventMouseWheel(float wheelX = default, float wheelY = default, ImGuiMouseSource mouseSource = default) + { + WheelX = wheelX; + WheelY = wheelY; + MouseSource = mouseSource; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMouseButton + { + /// + /// To be documented. + /// + public int Button; + + /// + /// To be documented. + /// + public byte Down; + + /// + /// To be documented. + /// + public ImGuiMouseSource MouseSource; + + + /// /// To be documented. /// public unsafe ImGuiInputEventMouseButton(int button = default, bool down = default, ImGuiMouseSource mouseSource = default) + { + Button = button; + Down = down ? (byte)1 : (byte)0; + MouseSource = mouseSource; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventMouseViewport + { + /// + /// To be documented. + /// + public uint HoveredViewportID; + + + /// /// To be documented. /// public unsafe ImGuiInputEventMouseViewport(uint hoveredViewportId = default) + { + HoveredViewportID = hoveredViewportId; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventKey + { + /// + /// To be documented. + /// + public ImGuiKey Key; + + /// + /// To be documented. + /// + public byte Down; + + /// + /// To be documented. + /// + public float AnalogValue; + + + /// /// To be documented. /// public unsafe ImGuiInputEventKey(ImGuiKey key = default, bool down = default, float analogValue = default) + { + Key = key; + Down = down ? (byte)1 : (byte)0; + AnalogValue = analogValue; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventText + { + /// + /// To be documented. + /// + public uint Char; + + + /// /// To be documented. /// public unsafe ImGuiInputEventText(uint @char = default) + { + Char = @char; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputEventAppFocused + { + /// + /// To be documented. + /// + public byte Focused; + + + /// /// To be documented. /// public unsafe ImGuiInputEventAppFocused(bool focused = default) + { + Focused = focused ? (byte)1 : (byte)0; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiWindowPtr + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow** Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiWindowPtr(int size = default, int capacity = default, ImGuiWindow** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindow + { + /// + /// To be documented. + /// + public unsafe ImGuiContext* Ctx; + + /// + /// To be documented. + /// + public unsafe byte* Name; + + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public int FlagsPreviousFrame; + + /// + /// To be documented. + /// + public ImGuiWindowClass WindowClass; + + /// + /// To be documented. + /// + public unsafe ImGuiViewportP* Viewport; + + /// + /// To be documented. + /// + public uint ViewportId; + + /// + /// To be documented. + /// + public Vector2 ViewportPos; + + /// + /// To be documented. + /// + public int ViewportAllowPlatformMonitorExtend; + + /// + /// To be documented. + /// + public Vector2 Pos; + + /// + /// To be documented. + /// + public Vector2 Size; + + /// + /// To be documented. + /// + public Vector2 SizeFull; + + /// + /// To be documented. + /// + public Vector2 ContentSize; + + /// + /// To be documented. + /// + public Vector2 ContentSizeIdeal; + + /// + /// To be documented. + /// + public Vector2 ContentSizeExplicit; + + /// + /// To be documented. + /// + public Vector2 WindowPadding; + + /// + /// To be documented. + /// + public float WindowRounding; + + /// + /// To be documented. + /// + public float WindowBorderSize; + + /// + /// To be documented. + /// + public float DecoOuterSizeX1; + + /// + /// To be documented. + /// + public float DecoOuterSizeY1; + + /// + /// To be documented. + /// + public float DecoOuterSizeX2; + + /// + /// To be documented. + /// + public float DecoOuterSizeY2; + + /// + /// To be documented. + /// + public float DecoInnerSizeX1; + + /// + /// To be documented. + /// + public float DecoInnerSizeY1; + + /// + /// To be documented. + /// + public int NameBufLen; + + /// + /// To be documented. + /// + public uint MoveId; + + /// + /// To be documented. + /// + public uint TabId; + + /// + /// To be documented. + /// + public uint ChildId; + + /// + /// To be documented. + /// + public Vector2 Scroll; + + /// + /// To be documented. + /// + public Vector2 ScrollMax; + + /// + /// To be documented. + /// + public Vector2 ScrollTarget; + + /// + /// To be documented. + /// + public Vector2 ScrollTargetCenterRatio; + + /// + /// To be documented. + /// + public Vector2 ScrollTargetEdgeSnapDist; + + /// + /// To be documented. + /// + public Vector2 ScrollbarSizes; + + /// + /// To be documented. + /// + public byte ScrollbarX; + + /// + /// To be documented. + /// + public byte ScrollbarY; + + /// + /// To be documented. + /// + public byte ViewportOwned; + + /// + /// To be documented. + /// + public byte Active; + + /// + /// To be documented. + /// + public byte WasActive; + + /// + /// To be documented. + /// + public byte WriteAccessed; + + /// + /// To be documented. + /// + public byte Collapsed; + + /// + /// To be documented. + /// + public byte WantCollapseToggle; + + /// + /// To be documented. + /// + public byte SkipItems; + + /// + /// To be documented. + /// + public byte Appearing; + + /// + /// To be documented. + /// + public byte Hidden; + + /// + /// To be documented. + /// + public byte IsFallbackWindow; + + /// + /// To be documented. + /// + public byte IsExplicitChild; + + /// + /// To be documented. + /// + public byte HasCloseButton; + + /// + /// To be documented. + /// + public byte ResizeBorderHeld; + + /// + /// To be documented. + /// + public short BeginCount; + + /// + /// To be documented. + /// + public short BeginCountPreviousFrame; + + /// + /// To be documented. + /// + public short BeginOrderWithinParent; + + /// + /// To be documented. + /// + public short BeginOrderWithinContext; + + /// + /// To be documented. + /// + public short FocusOrder; + + /// + /// To be documented. + /// + public uint PopupId; + + /// + /// To be documented. + /// + public byte AutoFitFramesX; + + /// + /// To be documented. + /// + public byte AutoFitFramesY; + + /// + /// To be documented. + /// + public byte AutoFitOnlyGrows; + + /// + /// To be documented. + /// + public int AutoPosLastDirection; + + /// + /// To be documented. + /// + public byte HiddenFramesCanSkipItems; + + /// + /// To be documented. + /// + public byte HiddenFramesCannotSkipItems; + + /// + /// To be documented. + /// + public byte HiddenFramesForRenderOnly; + + /// + /// To be documented. + /// + public byte DisableInputsFrames; + + /// + /// To be documented. + /// + public int SetWindowPosAllowFlags; + + /// + /// To be documented. + /// + public int SetWindowSizeAllowFlags; + + /// + /// To be documented. + /// + public int SetWindowCollapsedAllowFlags; + + /// + /// To be documented. + /// + public int SetWindowDockAllowFlags; + + /// + /// To be documented. + /// + public Vector2 SetWindowPosVal; + + /// + /// To be documented. + /// + public Vector2 SetWindowPosPivot; + + /// + /// To be documented. + /// + public ImVectorImGuiID IDStack; + + /// + /// To be documented. + /// + public ImGuiWindowTempData DC; + + /// + /// To be documented. + /// + public ImRect OuterRectClipped; + + /// + /// To be documented. + /// + public ImRect InnerRect; + + /// + /// To be documented. + /// + public ImRect InnerClipRect; + + /// + /// To be documented. + /// + public ImRect WorkRect; + + /// + /// To be documented. + /// + public ImRect ParentWorkRect; + + /// + /// To be documented. + /// + public ImRect ClipRect; + + /// + /// To be documented. + /// + public ImRect ContentRegionRect; + + /// + /// To be documented. + /// + public ImVec2Ih HitTestHoleSize; + + /// + /// To be documented. + /// + public ImVec2Ih HitTestHoleOffset; + + /// + /// To be documented. + /// + public int LastFrameActive; + + /// + /// To be documented. + /// + public int LastFrameJustFocused; + + /// + /// To be documented. + /// + public float LastTimeActive; + + /// + /// To be documented. + /// + public float ItemWidthDefault; + + /// + /// To be documented. + /// + public ImGuiStorage StateStorage; + + /// + /// To be documented. + /// + public ImVectorImGuiOldColumns ColumnsStorage; + + /// + /// To be documented. + /// + public float FontWindowScale; + + /// + /// To be documented. + /// + public float FontDpiScale; + + /// + /// To be documented. + /// + public int SettingsOffset; + + /// + /// To be documented. + /// + public unsafe ImDrawList* DrawList; + + /// + /// To be documented. + /// + public ImDrawList DrawListInst; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* ParentWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* ParentWindowInBeginStack; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* RootWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* RootWindowPopupTree; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* RootWindowDockTree; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* RootWindowForTitleBarHighlight; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* RootWindowForNav; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* NavLastChildNavWindow; + + /// + /// To be documented. + /// + public uint NavLastIds_0; + public uint NavLastIds_1; + + /// + /// To be documented. + /// + public ImRect NavRectRel_0; + public ImRect NavRectRel_1; + + /// + /// To be documented. + /// + public Vector2 NavPreferredScoringPosRel_0; + public Vector2 NavPreferredScoringPosRel_1; + + /// + /// To be documented. + /// + public uint NavRootFocusScopeId; + + /// + /// To be documented. + /// + public int MemoryDrawListIdxCapacity; + + /// + /// To be documented. + /// + public int MemoryDrawListVtxCapacity; + + /// + /// To be documented. + /// + public byte MemoryCompacted; + + /// + /// To be documented. + /// + public byte DockIsActive; + + /// + /// To be documented. + /// + public byte DockNodeIsVisible; + + /// + /// To be documented. + /// + public byte DockTabIsVisible; + + /// + /// To be documented. + /// + public byte DockTabWantClose; + + /// + /// To be documented. + /// + public short DockOrder; + + /// + /// To be documented. + /// + public ImGuiWindowDockStyle DockStyle; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* DockNode; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* DockNodeAsHost; + + /// + /// To be documented. + /// + public uint DockId; + + /// + /// To be documented. + /// + public int DockTabItemStatusFlags; + + /// + /// To be documented. + /// + public ImRect DockTabItemRect; + + + /// /// To be documented. /// public unsafe ImGuiWindow(ImGuiContext* ctx = default, byte* name = default, uint id = default, int flags = default, int flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, float decoOuterSizeX1 = default, float decoOuterSizeY1 = default, float decoOuterSizeX2 = default, float decoOuterSizeY2 = default, float decoInnerSizeX1 = default, float decoInnerSizeY1 = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginCountPreviousFrame = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, byte autoFitFramesX = default, byte autoFitFramesY = default, bool autoFitOnlyGrows = default, int autoPosLastDirection = default, byte hiddenFramesCanSkipItems = default, byte hiddenFramesCannotSkipItems = default, byte hiddenFramesForRenderOnly = default, byte disableInputsFrames = default, int setWindowPosAllowFlags = default, int setWindowSizeAllowFlags = default, int setWindowCollapsedAllowFlags = default, int setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVectorImGuiID idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVectorImGuiOldColumns columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawList* drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, uint* navLastIds = default, ImRect* navRectRel = default, Vector2* navPreferredScoringPosRel = default, uint navRootFocusScopeId = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, int dockTabItemStatusFlags = default, ImRect dockTabItemRect = default) + { + Ctx = ctx; + Name = name; + ID = id; + Flags = flags; + FlagsPreviousFrame = flagsPreviousFrame; + WindowClass = windowClass; + Viewport = viewport; + ViewportId = viewportId; + ViewportPos = viewportPos; + ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; + Pos = pos; + Size = size; + SizeFull = sizeFull; + ContentSize = contentSize; + ContentSizeIdeal = contentSizeIdeal; + ContentSizeExplicit = contentSizeExplicit; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + DecoOuterSizeX1 = decoOuterSizeX1; + DecoOuterSizeY1 = decoOuterSizeY1; + DecoOuterSizeX2 = decoOuterSizeX2; + DecoOuterSizeY2 = decoOuterSizeY2; + DecoInnerSizeX1 = decoInnerSizeX1; + DecoInnerSizeY1 = decoInnerSizeY1; + NameBufLen = nameBufLen; + MoveId = moveId; + TabId = tabId; + ChildId = childId; + Scroll = scroll; + ScrollMax = scrollMax; + ScrollTarget = scrollTarget; + ScrollTargetCenterRatio = scrollTargetCenterRatio; + ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; + ScrollbarSizes = scrollbarSizes; + ScrollbarX = scrollbarX ? (byte)1 : (byte)0; + ScrollbarY = scrollbarY ? (byte)1 : (byte)0; + ViewportOwned = viewportOwned ? (byte)1 : (byte)0; + Active = active ? (byte)1 : (byte)0; + WasActive = wasActive ? (byte)1 : (byte)0; + WriteAccessed = writeAccessed ? (byte)1 : (byte)0; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; + SkipItems = skipItems ? (byte)1 : (byte)0; + Appearing = appearing ? (byte)1 : (byte)0; + Hidden = hidden ? (byte)1 : (byte)0; + IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; + IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + ResizeBorderHeld = resizeBorderHeld; + BeginCount = beginCount; + BeginCountPreviousFrame = beginCountPreviousFrame; + BeginOrderWithinParent = beginOrderWithinParent; + BeginOrderWithinContext = beginOrderWithinContext; + FocusOrder = focusOrder; + PopupId = popupId; + AutoFitFramesX = autoFitFramesX; + AutoFitFramesY = autoFitFramesY; + AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; + AutoPosLastDirection = autoPosLastDirection; + HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; + HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; + HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; + DisableInputsFrames = disableInputsFrames; + SetWindowPosAllowFlags = setWindowPosAllowFlags; + SetWindowSizeAllowFlags = setWindowSizeAllowFlags; + SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; + SetWindowDockAllowFlags = setWindowDockAllowFlags; + SetWindowPosVal = setWindowPosVal; + SetWindowPosPivot = setWindowPosPivot; + IDStack = idStack; + DC = dc; + OuterRectClipped = outerRectClipped; + InnerRect = innerRect; + InnerClipRect = innerClipRect; + WorkRect = workRect; + ParentWorkRect = parentWorkRect; + ClipRect = clipRect; + ContentRegionRect = contentRegionRect; + HitTestHoleSize = hitTestHoleSize; + HitTestHoleOffset = hitTestHoleOffset; + LastFrameActive = lastFrameActive; + LastFrameJustFocused = lastFrameJustFocused; + LastTimeActive = lastTimeActive; + ItemWidthDefault = itemWidthDefault; + StateStorage = stateStorage; + ColumnsStorage = columnsStorage; + FontWindowScale = fontWindowScale; + FontDpiScale = fontDpiScale; + SettingsOffset = settingsOffset; + DrawList = drawList; + DrawListInst = drawListInst; + ParentWindow = parentWindow; + ParentWindowInBeginStack = parentWindowInBeginStack; + RootWindow = rootWindow; + RootWindowPopupTree = rootWindowPopupTree; + RootWindowDockTree = rootWindowDockTree; + RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; + RootWindowForNav = rootWindowForNav; + NavLastChildNavWindow = navLastChildNavWindow; + if (navLastIds != default) + { + NavLastIds_0 = navLastIds[0]; + NavLastIds_1 = navLastIds[1]; + } + if (navRectRel != default) + { + NavRectRel_0 = navRectRel[0]; + NavRectRel_1 = navRectRel[1]; + } + if (navPreferredScoringPosRel != default) + { + NavPreferredScoringPosRel_0 = navPreferredScoringPosRel[0]; + NavPreferredScoringPosRel_1 = navPreferredScoringPosRel[1]; + } + NavRootFocusScopeId = navRootFocusScopeId; + MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; + MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + DockIsActive = dockIsActive ? (byte)1 : (byte)0; + DockNodeIsVisible = dockNodeIsVisible ? (byte)1 : (byte)0; + DockTabIsVisible = dockTabIsVisible ? (byte)1 : (byte)0; + DockTabWantClose = dockTabWantClose ? (byte)1 : (byte)0; + DockOrder = dockOrder; + DockStyle = dockStyle; + DockNode = dockNode; + DockNodeAsHost = dockNodeAsHost; + DockId = dockId; + DockTabItemStatusFlags = dockTabItemStatusFlags; + DockTabItemRect = dockTabItemRect; + } + + /// /// To be documented. /// public unsafe ImGuiWindow(ImGuiContext* ctx = default, byte* name = default, uint id = default, int flags = default, int flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, float decoOuterSizeX1 = default, float decoOuterSizeY1 = default, float decoOuterSizeX2 = default, float decoOuterSizeY2 = default, float decoInnerSizeX1 = default, float decoInnerSizeY1 = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginCountPreviousFrame = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, byte autoFitFramesX = default, byte autoFitFramesY = default, bool autoFitOnlyGrows = default, int autoPosLastDirection = default, byte hiddenFramesCanSkipItems = default, byte hiddenFramesCannotSkipItems = default, byte hiddenFramesForRenderOnly = default, byte disableInputsFrames = default, int setWindowPosAllowFlags = default, int setWindowSizeAllowFlags = default, int setWindowCollapsedAllowFlags = default, int setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVectorImGuiID idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVectorImGuiOldColumns columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawList* drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, Span navLastIds = default, Span navRectRel = default, Span navPreferredScoringPosRel = default, uint navRootFocusScopeId = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, int dockTabItemStatusFlags = default, ImRect dockTabItemRect = default) + { + Ctx = ctx; + Name = name; + ID = id; + Flags = flags; + FlagsPreviousFrame = flagsPreviousFrame; + WindowClass = windowClass; + Viewport = viewport; + ViewportId = viewportId; + ViewportPos = viewportPos; + ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; + Pos = pos; + Size = size; + SizeFull = sizeFull; + ContentSize = contentSize; + ContentSizeIdeal = contentSizeIdeal; + ContentSizeExplicit = contentSizeExplicit; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + DecoOuterSizeX1 = decoOuterSizeX1; + DecoOuterSizeY1 = decoOuterSizeY1; + DecoOuterSizeX2 = decoOuterSizeX2; + DecoOuterSizeY2 = decoOuterSizeY2; + DecoInnerSizeX1 = decoInnerSizeX1; + DecoInnerSizeY1 = decoInnerSizeY1; + NameBufLen = nameBufLen; + MoveId = moveId; + TabId = tabId; + ChildId = childId; + Scroll = scroll; + ScrollMax = scrollMax; + ScrollTarget = scrollTarget; + ScrollTargetCenterRatio = scrollTargetCenterRatio; + ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; + ScrollbarSizes = scrollbarSizes; + ScrollbarX = scrollbarX ? (byte)1 : (byte)0; + ScrollbarY = scrollbarY ? (byte)1 : (byte)0; + ViewportOwned = viewportOwned ? (byte)1 : (byte)0; + Active = active ? (byte)1 : (byte)0; + WasActive = wasActive ? (byte)1 : (byte)0; + WriteAccessed = writeAccessed ? (byte)1 : (byte)0; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; + SkipItems = skipItems ? (byte)1 : (byte)0; + Appearing = appearing ? (byte)1 : (byte)0; + Hidden = hidden ? (byte)1 : (byte)0; + IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; + IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + ResizeBorderHeld = resizeBorderHeld; + BeginCount = beginCount; + BeginCountPreviousFrame = beginCountPreviousFrame; + BeginOrderWithinParent = beginOrderWithinParent; + BeginOrderWithinContext = beginOrderWithinContext; + FocusOrder = focusOrder; + PopupId = popupId; + AutoFitFramesX = autoFitFramesX; + AutoFitFramesY = autoFitFramesY; + AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; + AutoPosLastDirection = autoPosLastDirection; + HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; + HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; + HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; + DisableInputsFrames = disableInputsFrames; + SetWindowPosAllowFlags = setWindowPosAllowFlags; + SetWindowSizeAllowFlags = setWindowSizeAllowFlags; + SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; + SetWindowDockAllowFlags = setWindowDockAllowFlags; + SetWindowPosVal = setWindowPosVal; + SetWindowPosPivot = setWindowPosPivot; + IDStack = idStack; + DC = dc; + OuterRectClipped = outerRectClipped; + InnerRect = innerRect; + InnerClipRect = innerClipRect; + WorkRect = workRect; + ParentWorkRect = parentWorkRect; + ClipRect = clipRect; + ContentRegionRect = contentRegionRect; + HitTestHoleSize = hitTestHoleSize; + HitTestHoleOffset = hitTestHoleOffset; + LastFrameActive = lastFrameActive; + LastFrameJustFocused = lastFrameJustFocused; + LastTimeActive = lastTimeActive; + ItemWidthDefault = itemWidthDefault; + StateStorage = stateStorage; + ColumnsStorage = columnsStorage; + FontWindowScale = fontWindowScale; + FontDpiScale = fontDpiScale; + SettingsOffset = settingsOffset; + DrawList = drawList; + DrawListInst = drawListInst; + ParentWindow = parentWindow; + ParentWindowInBeginStack = parentWindowInBeginStack; + RootWindow = rootWindow; + RootWindowPopupTree = rootWindowPopupTree; + RootWindowDockTree = rootWindowDockTree; + RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; + RootWindowForNav = rootWindowForNav; + NavLastChildNavWindow = navLastChildNavWindow; + if (navLastIds != default) + { + NavLastIds_0 = navLastIds[0]; + NavLastIds_1 = navLastIds[1]; + } + if (navRectRel != default) + { + NavRectRel_0 = navRectRel[0]; + NavRectRel_1 = navRectRel[1]; + } + if (navPreferredScoringPosRel != default) + { + NavPreferredScoringPosRel_0 = navPreferredScoringPosRel[0]; + NavPreferredScoringPosRel_1 = navPreferredScoringPosRel[1]; + } + NavRootFocusScopeId = navRootFocusScopeId; + MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; + MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + DockIsActive = dockIsActive ? (byte)1 : (byte)0; + DockNodeIsVisible = dockNodeIsVisible ? (byte)1 : (byte)0; + DockTabIsVisible = dockTabIsVisible ? (byte)1 : (byte)0; + DockTabWantClose = dockTabWantClose ? (byte)1 : (byte)0; + DockOrder = dockOrder; + DockStyle = dockStyle; + DockNode = dockNode; + DockNodeAsHost = dockNodeAsHost; + DockId = dockId; + DockTabItemStatusFlags = dockTabItemStatusFlags; + DockTabItemRect = dockTabItemRect; + } + + + /// + /// To be documented. + /// + /// + /// To be documented. + /// + public unsafe Span NavRectRel + + { + get + { + fixed (ImRect* p = &this.NavRectRel_0) + { + return new Span(p, 2); + } + } + } + /// + /// To be documented. + /// + public unsafe Span NavPreferredScoringPosRel + + { + get + { + fixed (Vector2* p = &this.NavPreferredScoringPosRel_0) + { + return new Span(p, 2); + } + } + } + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowClass + { + /// + /// To be documented. + /// + public uint ClassId; + + /// + /// To be documented. + /// + public uint ParentViewportId; + + /// + /// To be documented. + /// + public int ViewportFlagsOverrideSet; + + /// + /// To be documented. + /// + public int ViewportFlagsOverrideClear; + + /// + /// To be documented. + /// + public int TabItemFlagsOverrideSet; + + /// + /// To be documented. + /// + public int DockNodeFlagsOverrideSet; + + /// + /// To be documented. + /// + public byte DockingAlwaysTabBar; + + /// + /// To be documented. + /// + public byte DockingAllowUnclassed; + + + + /// /// To be documented. /// public unsafe ImGuiWindowClass(uint classId = default, uint parentViewportId = default, int viewportFlagsOverrideSet = default, int viewportFlagsOverrideClear = default, int tabItemFlagsOverrideSet = default, int dockNodeFlagsOverrideSet = default, bool dockingAlwaysTabBar = default, bool dockingAllowUnclassed = default) + { + ClassId = classId; + ParentViewportId = parentViewportId; + ViewportFlagsOverrideSet = viewportFlagsOverrideSet; + ViewportFlagsOverrideClear = viewportFlagsOverrideClear; + TabItemFlagsOverrideSet = tabItemFlagsOverrideSet; + DockNodeFlagsOverrideSet = dockNodeFlagsOverrideSet; + DockingAlwaysTabBar = dockingAlwaysTabBar ? (byte)1 : (byte)0; + DockingAllowUnclassed = dockingAllowUnclassed ? (byte)1 : (byte)0; + } + + + public unsafe void Destroy() + { + fixed (ImGuiWindowClass* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiViewportP + { + /// + /// To be documented. + /// + public ImGuiViewport ImGuiViewport; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* Window; + + /// + /// To be documented. + /// + public int Idx; + + /// + /// To be documented. + /// + public int LastFrameActive; + + /// + /// To be documented. + /// + public int LastFocusedStampCount; + + /// + /// To be documented. + /// + public uint LastNameHash; + + /// + /// To be documented. + /// + public Vector2 LastPos; + + /// + /// To be documented. + /// + public float Alpha; + + /// + /// To be documented. + /// + public float LastAlpha; + + /// + /// To be documented. + /// + public byte LastFocusedHadNavWindow; + + /// + /// To be documented. + /// + public short PlatformMonitor; + + /// + /// To be documented. + /// + public int BgFgDrawListsLastFrame_0; + public int BgFgDrawListsLastFrame_1; + + /// + /// To be documented. + /// + public unsafe ImDrawList* BgFgDrawLists_0; + public unsafe ImDrawList* BgFgDrawLists_1; + + /// + /// To be documented. + /// + public ImDrawData DrawDataP; + + /// + /// To be documented. + /// + public ImDrawDataBuilder DrawDataBuilder; + + /// + /// To be documented. + /// + public Vector2 LastPlatformPos; + + /// + /// To be documented. + /// + public Vector2 LastPlatformSize; + + /// + /// To be documented. + /// + public Vector2 LastRendererSize; + + /// + /// To be documented. + /// + public Vector2 WorkOffsetMin; + + /// + /// To be documented. + /// + public Vector2 WorkOffsetMax; + + /// + /// To be documented. + /// + public Vector2 BuildWorkOffsetMin; + + /// + /// To be documented. + /// + public Vector2 BuildWorkOffsetMax; + + + /// /// To be documented. /// public unsafe ImGuiViewportP(ImGuiViewport Imguiviewport = default, ImGuiWindow* window = default, int idx = default, int lastFrameActive = default, int lastFocusedStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, bool lastFocusedHadNavWindow = default, short platformMonitor = default, int* bgFgDrawListsLastFrame = default, ImDrawList** bgFgDrawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) + { + ImGuiViewport = Imguiviewport; + Window = window; + Idx = idx; + LastFrameActive = lastFrameActive; + LastFocusedStampCount = lastFocusedStampCount; + LastNameHash = lastNameHash; + LastPos = lastPos; + Alpha = alpha; + LastAlpha = lastAlpha; + LastFocusedHadNavWindow = lastFocusedHadNavWindow ? (byte)1 : (byte)0; + PlatformMonitor = platformMonitor; + if (bgFgDrawListsLastFrame != default) + { + BgFgDrawListsLastFrame_0 = bgFgDrawListsLastFrame[0]; + BgFgDrawListsLastFrame_1 = bgFgDrawListsLastFrame[1]; + } + if (bgFgDrawLists != default) + { + BgFgDrawLists_0 = bgFgDrawLists[0]; + BgFgDrawLists_1 = bgFgDrawLists[1]; + } + DrawDataP = drawDataP; + DrawDataBuilder = drawDataBuilder; + LastPlatformPos = lastPlatformPos; + LastPlatformSize = lastPlatformSize; + LastRendererSize = lastRendererSize; + WorkOffsetMin = workOffsetMin; + WorkOffsetMax = workOffsetMax; + BuildWorkOffsetMin = buildWorkOffsetMin; + BuildWorkOffsetMax = buildWorkOffsetMax; + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Structures.004.cs b/Hexa.NET.ImGui/Generated/Structures.004.cs new file mode 100644 index 0000000..8c0f172 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Structures.004.cs @@ -0,0 +1,5046 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawChannel + { + + /// /// To be documented. /// public unsafe ImGuiViewportP(ImGuiViewport Imguiviewport = default, ImGuiWindow* window = default, int idx = default, int lastFrameActive = default, int lastFocusedStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, bool lastFocusedHadNavWindow = default, short platformMonitor = default, Span bgFgDrawListsLastFrame = default, Span> bgFgDrawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) + { + ImGuiViewport = Imguiviewport; + Window = window; + Idx = idx; + LastFrameActive = lastFrameActive; + LastFocusedStampCount = lastFocusedStampCount; + LastNameHash = lastNameHash; + LastPos = lastPos; + Alpha = alpha; + LastAlpha = lastAlpha; + LastFocusedHadNavWindow = lastFocusedHadNavWindow ? (byte)1 : (byte)0; + PlatformMonitor = platformMonitor; + if (bgFgDrawListsLastFrame != default) + { + BgFgDrawListsLastFrame_0 = bgFgDrawListsLastFrame[0]; + BgFgDrawListsLastFrame_1 = bgFgDrawListsLastFrame[1]; + } + if (bgFgDrawLists != default) + { + BgFgDrawLists_0 = bgFgDrawLists[0]; + BgFgDrawLists_1 = bgFgDrawLists[1]; + } + DrawDataP = drawDataP; + DrawDataBuilder = drawDataBuilder; + LastPlatformPos = lastPlatformPos; + LastPlatformSize = lastPlatformSize; + LastRendererSize = lastRendererSize; + WorkOffsetMin = workOffsetMin; + WorkOffsetMax = workOffsetMax; + BuildWorkOffsetMin = buildWorkOffsetMin; + BuildWorkOffsetMax = buildWorkOffsetMax; + } + + + /// + /// To be documented. + /// + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawDataBuilder + { + /// + /// To be documented. + /// + public unsafe ImVectorImDrawListPtr* Layers_0; + public unsafe ImVectorImDrawListPtr* Layers_1; + + /// + /// To be documented. + /// + public ImVectorImDrawListPtr LayerData1; + + + /// /// To be documented. /// public unsafe ImDrawDataBuilder(ImVectorImDrawListPtr** layers = default, ImVectorImDrawListPtr layerData1 = default) + { + if (layers != default) + { + Layers_0 = layers[0]; + Layers_1 = layers[1]; + } + LayerData1 = layerData1; + } + + /// /// To be documented. /// public unsafe ImDrawDataBuilder(Span> layers = default, ImVectorImDrawListPtr layerData1 = default) + { + if (layers != default) + { + Layers_0 = layers[0]; + Layers_1 = layers[1]; + } + LayerData1 = layerData1; + } + + + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiID + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe uint* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiID(int size = default, int capacity = default, uint* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowTempData + { + /// + /// To be documented. + /// + public Vector2 CursorPos; + + /// + /// To be documented. + /// + public Vector2 CursorPosPrevLine; + + /// + /// To be documented. + /// + public Vector2 CursorStartPos; + + /// + /// To be documented. + /// + public Vector2 CursorMaxPos; + + /// + /// To be documented. + /// + public Vector2 IdealMaxPos; + + /// + /// To be documented. + /// + public Vector2 CurrLineSize; + + /// + /// To be documented. + /// + public Vector2 PrevLineSize; + + /// + /// To be documented. + /// + public float CurrLineTextBaseOffset; + + /// + /// To be documented. + /// + public float PrevLineTextBaseOffset; + + /// + /// To be documented. + /// + public byte IsSameLine; + + /// + /// To be documented. + /// + public byte IsSetPos; + + /// + /// To be documented. + /// + public ImVec1 Indent; + + /// + /// To be documented. + /// + public ImVec1 ColumnsOffset; + + /// + /// To be documented. + /// + public ImVec1 GroupOffset; + + /// + /// To be documented. + /// + public Vector2 CursorStartPosLossyness; + + /// + /// To be documented. + /// + public ImGuiNavLayer NavLayerCurrent; + + /// + /// To be documented. + /// + public short NavLayersActiveMask; + + /// + /// To be documented. + /// + public short NavLayersActiveMaskNext; + + /// + /// To be documented. + /// + public byte NavIsScrollPushableX; + + /// + /// To be documented. + /// + public byte NavHideHighlightOneFrame; + + /// + /// To be documented. + /// + public byte NavWindowHasScrollY; + + /// + /// To be documented. + /// + public byte MenuBarAppending; + + /// + /// To be documented. + /// + public Vector2 MenuBarOffset; + + /// + /// To be documented. + /// + public ImGuiMenuColumns MenuColumns; + + /// + /// To be documented. + /// + public int TreeDepth; + + /// + /// To be documented. + /// + public uint TreeJumpToParentOnPopMask; + + /// + /// To be documented. + /// + public ImVectorImGuiWindowPtr ChildWindows; + + /// + /// To be documented. + /// + public unsafe ImGuiStorage* StateStorage; + + /// + /// To be documented. + /// + public unsafe ImGuiOldColumns* CurrentColumns; + + /// + /// To be documented. + /// + public int CurrentTableIdx; + + /// + /// To be documented. + /// + public int LayoutType; + + /// + /// To be documented. + /// + public int ParentLayoutType; + + /// + /// To be documented. + /// + public float ItemWidth; + + /// + /// To be documented. + /// + public float TextWrapPos; + + /// + /// To be documented. + /// + public ImVectorFloat ItemWidthStack; + + /// + /// To be documented. + /// + public ImVectorFloat TextWrapPosStack; + + + /// /// To be documented. /// public unsafe ImGuiWindowTempData(Vector2 cursorPos = default, Vector2 cursorPosPrevLine = default, Vector2 cursorStartPos = default, Vector2 cursorMaxPos = default, Vector2 idealMaxPos = default, Vector2 currLineSize = default, Vector2 prevLineSize = default, float currLineTextBaseOffset = default, float prevLineTextBaseOffset = default, bool isSameLine = default, bool isSetPos = default, ImVec1 indent = default, ImVec1 columnsOffset = default, ImVec1 groupOffset = default, Vector2 cursorStartPosLossyness = default, ImGuiNavLayer navLayerCurrent = default, short navLayersActiveMask = default, short navLayersActiveMaskNext = default, bool navIsScrollPushableX = default, bool navHideHighlightOneFrame = default, bool navWindowHasScrollY = default, bool menuBarAppending = default, Vector2 menuBarOffset = default, ImGuiMenuColumns menuColumns = default, int treeDepth = default, uint treeJumpToParentOnPopMask = default, ImVectorImGuiWindowPtr childWindows = default, ImGuiStorage* stateStorage = default, ImGuiOldColumns* currentColumns = default, int currentTableIdx = default, int layoutType = default, int parentLayoutType = default, float itemWidth = default, float textWrapPos = default, ImVectorFloat itemWidthStack = default, ImVectorFloat textWrapPosStack = default) + { + CursorPos = cursorPos; + CursorPosPrevLine = cursorPosPrevLine; + CursorStartPos = cursorStartPos; + CursorMaxPos = cursorMaxPos; + IdealMaxPos = idealMaxPos; + CurrLineSize = currLineSize; + PrevLineSize = prevLineSize; + CurrLineTextBaseOffset = currLineTextBaseOffset; + PrevLineTextBaseOffset = prevLineTextBaseOffset; + IsSameLine = isSameLine ? (byte)1 : (byte)0; + IsSetPos = isSetPos ? (byte)1 : (byte)0; + Indent = indent; + ColumnsOffset = columnsOffset; + GroupOffset = groupOffset; + CursorStartPosLossyness = cursorStartPosLossyness; + NavLayerCurrent = navLayerCurrent; + NavLayersActiveMask = navLayersActiveMask; + NavLayersActiveMaskNext = navLayersActiveMaskNext; + NavIsScrollPushableX = navIsScrollPushableX ? (byte)1 : (byte)0; + NavHideHighlightOneFrame = navHideHighlightOneFrame ? (byte)1 : (byte)0; + NavWindowHasScrollY = navWindowHasScrollY ? (byte)1 : (byte)0; + MenuBarAppending = menuBarAppending ? (byte)1 : (byte)0; + MenuBarOffset = menuBarOffset; + MenuColumns = menuColumns; + TreeDepth = treeDepth; + TreeJumpToParentOnPopMask = treeJumpToParentOnPopMask; + ChildWindows = childWindows; + StateStorage = stateStorage; + CurrentColumns = currentColumns; + CurrentTableIdx = currentTableIdx; + LayoutType = layoutType; + ParentLayoutType = parentLayoutType; + ItemWidth = itemWidth; + TextWrapPos = textWrapPos; + ItemWidthStack = itemWidthStack; + TextWrapPosStack = textWrapPosStack; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVec1 + { + /// + /// To be documented. + /// + public float X; + + + /// /// To be documented. /// public unsafe ImVec1(float x = default) + { + X = x; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiMenuColumns + { + /// + /// To be documented. + /// + public uint TotalWidth; + + /// + /// To be documented. + /// + public uint NextTotalWidth; + + /// + /// To be documented. + /// + public ushort Spacing; + + /// + /// To be documented. + /// + public ushort OffsetIcon; + + /// + /// To be documented. + /// + public ushort OffsetLabel; + + /// + /// To be documented. + /// + public ushort OffsetShortcut; + + /// + /// To be documented. + /// + public ushort OffsetMark; + + /// + /// To be documented. + /// + public ushort Widths_0; + public ushort Widths_1; + public ushort Widths_2; + public ushort Widths_3; + + + /// /// To be documented. /// public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, ushort* widths = default) + { + TotalWidth = totalWidth; + NextTotalWidth = nextTotalWidth; + Spacing = spacing; + OffsetIcon = offsetIcon; + OffsetLabel = offsetLabel; + OffsetShortcut = offsetShortcut; + OffsetMark = offsetMark; + if (widths != default) + { + Widths_0 = widths[0]; + Widths_1 = widths[1]; + Widths_2 = widths[2]; + Widths_3 = widths[3]; + } + } + + /// /// To be documented. /// public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, Span widths = default) + { + TotalWidth = totalWidth; + NextTotalWidth = nextTotalWidth; + Spacing = spacing; + OffsetIcon = offsetIcon; + OffsetLabel = offsetLabel; + OffsetShortcut = offsetShortcut; + OffsetMark = offsetMark; + if (widths != default) + { + Widths_0 = widths[0]; + Widths_1 = widths[1]; + Widths_2 = widths[2]; + Widths_3 = widths[3]; + } + } + + + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStorage + { + /// + /// To be documented. + /// + public ImVectorImGuiStoragePair Data; + + + /// /// To be documented. /// public unsafe ImGuiStorage(ImVectorImGuiStoragePair data = default) + { + Data = data; + } + + + public unsafe void BuildSortByKey() + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.BuildSortByKeyNative(@this); + } + } + + public unsafe void Clear() + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + public unsafe bool GetBool( uint key, bool defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + byte ret = ImGui.GetBoolNative(@this, key, defaultVal ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public unsafe bool GetBool( uint key) + { + fixed (ImGuiStorage* @this = &this) + { + byte ret = ImGui.GetBoolNative(@this, key, (byte)(0)); + return ret != 0; + } + } + + public unsafe byte* GetBoolRef( uint key, bool defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + byte* ret = ImGui.GetBoolRefNative(@this, key, defaultVal ? (byte)1 : (byte)0); + return ret; + } + } + + public unsafe byte* GetBoolRef( uint key) + { + fixed (ImGuiStorage* @this = &this) + { + byte* ret = ImGui.GetBoolRefNative(@this, key, (byte)(0)); + return ret; + } + } + + public unsafe float GetFloat( uint key, float defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + float ret = ImGui.GetFloatNative(@this, key, defaultVal); + return ret; + } + } + + public unsafe float GetFloat( uint key) + { + fixed (ImGuiStorage* @this = &this) + { + float ret = ImGui.GetFloatNative(@this, key, (float)(0.0f)); + return ret; + } + } + + public unsafe float* GetFloatRef( uint key, float defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + float* ret = ImGui.GetFloatRefNative(@this, key, defaultVal); + return ret; + } + } + + public unsafe float* GetFloatRef( uint key) + { + fixed (ImGuiStorage* @this = &this) + { + float* ret = ImGui.GetFloatRefNative(@this, key, (float)(0.0f)); + return ret; + } + } + + public unsafe int GetInt( uint key, int defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + int ret = ImGui.GetIntNative(@this, key, defaultVal); + return ret; + } + } + + public unsafe int GetInt( uint key) + { + fixed (ImGuiStorage* @this = &this) + { + int ret = ImGui.GetIntNative(@this, key, (int)(0)); + return ret; + } + } + + public unsafe int* GetIntRef( uint key, int defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + int* ret = ImGui.GetIntRefNative(@this, key, defaultVal); + return ret; + } + } + + public unsafe int* GetIntRef( uint key) + { + fixed (ImGuiStorage* @this = &this) + { + int* ret = ImGui.GetIntRefNative(@this, key, (int)(0)); + return ret; + } + } + + public unsafe void* GetVoidPtr( uint key) + { + fixed (ImGuiStorage* @this = &this) + { + void* ret = ImGui.GetVoidPtrNative(@this, key); + return ret; + } + } + + public unsafe void** GetVoidPtrRef( uint key, void* defaultVal) + { + fixed (ImGuiStorage* @this = &this) + { + void** ret = ImGui.GetVoidPtrRefNative(@this, key, defaultVal); + return ret; + } + } + + public unsafe void** GetVoidPtrRef( uint key) + { + fixed (ImGuiStorage* @this = &this) + { + void** ret = ImGui.GetVoidPtrRefNative(@this, key, (void*)(default)); + return ret; + } + } + + public unsafe void SetAllInt( int val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.SetAllIntNative(@this, val); + } + } + + public unsafe void SetBool( uint key, bool val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.SetBoolNative(@this, key, val ? (byte)1 : (byte)0); + } + } + + public unsafe void SetFloat( uint key, float val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.SetFloatNative(@this, key, val); + } + } + + public unsafe void SetInt( uint key, int val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.SetIntNative(@this, key, val); + } + } + + public unsafe void SetVoidPtr( uint key, void* val) + { + fixed (ImGuiStorage* @this = &this) + { + ImGui.SetVoidPtrNative(@this, key, val); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiStoragePair + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiStoragePair* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiStoragePair(int size = default, int capacity = default, ImGuiStoragePair* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStoragePair + { + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Explicit)] + public partial struct ImGuiStoragePairUnion + { + /// + /// To be documented. + /// + [FieldOffset(0)] + public int ValI; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public float ValF; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public unsafe void* ValP; + + + /// /// To be documented. /// public unsafe ImGuiStoragePairUnion(int valI = default, float valF = default, void* valP = default) + { + ValI = valI; + ValF = valF; + ValP = valP; + } + + + } + + /// + /// To be documented. + /// + public uint Key; + + /// + /// To be documented. + /// + public ; + + + + /// /// To be documented. /// public unsafe ImGuiStoragePair(uint key = default, = default) + { + Key = key; + this. = ; + } + + + public unsafe void Destroy() + { + fixed (ImGuiStoragePair* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiOldColumns + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public byte IsFirstFrame; + + /// + /// To be documented. + /// + public byte IsBeingResized; + + /// + /// To be documented. + /// + public int Current; + + /// + /// To be documented. + /// + public int Count; + + /// + /// To be documented. + /// + public float OffMinX; + + /// + /// To be documented. + /// + public float OffMaxX; + + /// + /// To be documented. + /// + public float LineMinY; + + /// + /// To be documented. + /// + public float LineMaxY; + + /// + /// To be documented. + /// + public float HostCursorPosY; + + /// + /// To be documented. + /// + public float HostCursorMaxPosX; + + /// + /// To be documented. + /// + public ImRect HostInitialClipRect; + + /// + /// To be documented. + /// + public ImRect HostBackupClipRect; + + /// + /// To be documented. + /// + public ImRect HostBackupParentWorkRect; + + /// + /// To be documented. + /// + public ImVectorImGuiOldColumnData Columns; + + /// + /// To be documented. + /// + public ImDrawListSplitter Splitter; + + + /// /// To be documented. /// public unsafe ImGuiOldColumns(uint id = default, int flags = default, bool isFirstFrame = default, bool isBeingResized = default, int current = default, int count = default, float offMinX = default, float offMaxX = default, float lineMinY = default, float lineMaxY = default, float hostCursorPosY = default, float hostCursorMaxPosX = default, ImRect hostInitialClipRect = default, ImRect hostBackupClipRect = default, ImRect hostBackupParentWorkRect = default, ImVectorImGuiOldColumnData columns = default, ImDrawListSplitter splitter = default) + { + ID = id; + Flags = flags; + IsFirstFrame = isFirstFrame ? (byte)1 : (byte)0; + IsBeingResized = isBeingResized ? (byte)1 : (byte)0; + Current = current; + Count = count; + OffMinX = offMinX; + OffMaxX = offMaxX; + LineMinY = lineMinY; + LineMaxY = lineMaxY; + HostCursorPosY = hostCursorPosY; + HostCursorMaxPosX = hostCursorMaxPosX; + HostInitialClipRect = hostInitialClipRect; + HostBackupClipRect = hostBackupClipRect; + HostBackupParentWorkRect = hostBackupParentWorkRect; + Columns = columns; + Splitter = splitter; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImRect + { + /// + /// To be documented. + /// + public Vector2 Min; + + /// + /// To be documented. + /// + public Vector2 Max; + + + /// /// To be documented. /// public unsafe ImRect(Vector2 min = default, Vector2 max = default) + { + Min = min; + Max = max; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiOldColumnData + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiOldColumnData* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiOldColumnData(int size = default, int capacity = default, ImGuiOldColumnData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiOldColumnData + { + /// + /// To be documented. + /// + public float OffsetNorm; + + /// + /// To be documented. + /// + public float OffsetNormBeforeResize; + + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public ImRect ClipRect; + + + /// /// To be documented. /// public unsafe ImGuiOldColumnData(float offsetNorm = default, float offsetNormBeforeResize = default, int flags = default, ImRect clipRect = default) + { + OffsetNorm = offsetNorm; + OffsetNormBeforeResize = offsetNormBeforeResize; + Flags = flags; + ClipRect = clipRect; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVec2Ih + { + /// + /// To be documented. + /// + public short X; + + /// + /// To be documented. + /// + public short Y; + + + /// /// To be documented. /// public unsafe ImVec2Ih(short x = default, short y = default) + { + X = x; + Y = y; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiOldColumns + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiOldColumns* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiOldColumns(int size = default, int capacity = default, ImGuiOldColumns* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowDockStyle + { + /// + /// To be documented. + /// + public uint Colors_0; + public uint Colors_1; + public uint Colors_2; + public uint Colors_3; + public uint Colors_4; + public uint Colors_5; + + + /// /// To be documented. /// public unsafe ImGuiWindowDockStyle(uint* colors = default) + { + if (colors != default) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + } + } + + /// /// To be documented. /// public unsafe ImGuiWindowDockStyle(Span colors = default) + { + if (colors != default) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + } + } + + + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockNode + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int SharedFlags; + + /// + /// To be documented. + /// + public int LocalFlags; + + /// + /// To be documented. + /// + public int LocalFlagsInWindows; + + /// + /// To be documented. + /// + public int MergedFlags; + + /// + /// To be documented. + /// + public ImGuiDockNodeState State; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* ParentNode; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* ChildNodes_0; + public unsafe ImGuiDockNode* ChildNodes_1; + + /// + /// To be documented. + /// + public ImVectorImGuiWindowPtr Windows; + + /// + /// To be documented. + /// + public unsafe ImGuiTabBar* TabBar; + + /// + /// To be documented. + /// + public Vector2 Pos; + + /// + /// To be documented. + /// + public Vector2 Size; + + /// + /// To be documented. + /// + public Vector2 SizeRef; + + /// + /// To be documented. + /// + public ImGuiAxis SplitAxis; + + /// + /// To be documented. + /// + public ImGuiWindowClass WindowClass; + + /// + /// To be documented. + /// + public uint LastBgColor; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* HostWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* VisibleWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* CentralNode; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNode* OnlyNodeWithWindows; + + /// + /// To be documented. + /// + public int CountNodeWithWindows; + + /// + /// To be documented. + /// + public int LastFrameAlive; + + /// + /// To be documented. + /// + public int LastFrameActive; + + /// + /// To be documented. + /// + public int LastFrameFocused; + + /// + /// To be documented. + /// + public uint LastFocusedNodeId; + + /// + /// To be documented. + /// + public uint SelectedTabId; + + /// + /// To be documented. + /// + public uint WantCloseTabId; + + /// + /// To be documented. + /// + public uint RefViewportId; + + /// + /// To be documented. + /// + public int AuthorityForPos; + + /// + /// To be documented. + /// + public int AuthorityForSize; + + /// + /// To be documented. + /// + public int AuthorityForViewport; + + /// + /// To be documented. + /// + public byte IsVisible; + + /// + /// To be documented. + /// + public byte IsFocused; + + /// + /// To be documented. + /// + public byte IsBgDrawnThisFrame; + + /// + /// To be documented. + /// + public byte HasCloseButton; + + /// + /// To be documented. + /// + public byte HasWindowMenuButton; + + /// + /// To be documented. + /// + public byte HasCentralNodeChild; + + /// + /// To be documented. + /// + public byte WantCloseAll; + + /// + /// To be documented. + /// + public byte WantLockSizeOnce; + + /// + /// To be documented. + /// + public byte WantMouseMove; + + /// + /// To be documented. + /// + public byte WantHiddenTabBarUpdate; + + /// + /// To be documented. + /// + public byte WantHiddenTabBarToggle; + + + /// /// To be documented. /// public unsafe ImGuiDockNode(uint id = default, int sharedFlags = default, int localFlags = default, int localFlagsInWindows = default, int mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, ImGuiDockNode** childNodes = default, ImVectorImGuiWindowPtr windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindow* hostWindow = default, ImGuiWindow* visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, uint refViewportId = default, int authorityForPos = default, int authorityForSize = default, int authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) + { + ID = id; + SharedFlags = sharedFlags; + LocalFlags = localFlags; + LocalFlagsInWindows = localFlagsInWindows; + MergedFlags = mergedFlags; + State = state; + ParentNode = parentNode; + if (childNodes != default) + { + ChildNodes_0 = childNodes[0]; + ChildNodes_1 = childNodes[1]; + } + Windows = windows; + TabBar = tabBar; + Pos = pos; + Size = size; + SizeRef = sizeRef; + SplitAxis = splitAxis; + WindowClass = windowClass; + LastBgColor = lastBgColor; + HostWindow = hostWindow; + VisibleWindow = visibleWindow; + CentralNode = centralNode; + OnlyNodeWithWindows = onlyNodeWithWindows; + CountNodeWithWindows = countNodeWithWindows; + LastFrameAlive = lastFrameAlive; + LastFrameActive = lastFrameActive; + LastFrameFocused = lastFrameFocused; + LastFocusedNodeId = lastFocusedNodeId; + SelectedTabId = selectedTabId; + WantCloseTabId = wantCloseTabId; + RefViewportId = refViewportId; + AuthorityForPos = authorityForPos; + AuthorityForSize = authorityForSize; + AuthorityForViewport = authorityForViewport; + IsVisible = isVisible ? (byte)1 : (byte)0; + IsFocused = isFocused ? (byte)1 : (byte)0; + IsBgDrawnThisFrame = isBgDrawnThisFrame ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + HasWindowMenuButton = hasWindowMenuButton ? (byte)1 : (byte)0; + HasCentralNodeChild = hasCentralNodeChild ? (byte)1 : (byte)0; + WantCloseAll = wantCloseAll ? (byte)1 : (byte)0; + WantLockSizeOnce = wantLockSizeOnce ? (byte)1 : (byte)0; + WantMouseMove = wantMouseMove ? (byte)1 : (byte)0; + WantHiddenTabBarUpdate = wantHiddenTabBarUpdate ? (byte)1 : (byte)0; + WantHiddenTabBarToggle = wantHiddenTabBarToggle ? (byte)1 : (byte)0; + } + + /// /// To be documented. /// public unsafe ImGuiDockNode(uint id = default, int sharedFlags = default, int localFlags = default, int localFlagsInWindows = default, int mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, Span> childNodes = default, ImVectorImGuiWindowPtr windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindow* hostWindow = default, ImGuiWindow* visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, uint refViewportId = default, int authorityForPos = default, int authorityForSize = default, int authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) + { + ID = id; + SharedFlags = sharedFlags; + LocalFlags = localFlags; + LocalFlagsInWindows = localFlagsInWindows; + MergedFlags = mergedFlags; + State = state; + ParentNode = parentNode; + if (childNodes != default) + { + ChildNodes_0 = childNodes[0]; + ChildNodes_1 = childNodes[1]; + } + Windows = windows; + TabBar = tabBar; + Pos = pos; + Size = size; + SizeRef = sizeRef; + SplitAxis = splitAxis; + WindowClass = windowClass; + LastBgColor = lastBgColor; + HostWindow = hostWindow; + VisibleWindow = visibleWindow; + CentralNode = centralNode; + OnlyNodeWithWindows = onlyNodeWithWindows; + CountNodeWithWindows = countNodeWithWindows; + LastFrameAlive = lastFrameAlive; + LastFrameActive = lastFrameActive; + LastFrameFocused = lastFrameFocused; + LastFocusedNodeId = lastFocusedNodeId; + SelectedTabId = selectedTabId; + WantCloseTabId = wantCloseTabId; + RefViewportId = refViewportId; + AuthorityForPos = authorityForPos; + AuthorityForSize = authorityForSize; + AuthorityForViewport = authorityForViewport; + IsVisible = isVisible ? (byte)1 : (byte)0; + IsFocused = isFocused ? (byte)1 : (byte)0; + IsBgDrawnThisFrame = isBgDrawnThisFrame ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + HasWindowMenuButton = hasWindowMenuButton ? (byte)1 : (byte)0; + HasCentralNodeChild = hasCentralNodeChild ? (byte)1 : (byte)0; + WantCloseAll = wantCloseAll ? (byte)1 : (byte)0; + WantLockSizeOnce = wantLockSizeOnce ? (byte)1 : (byte)0; + WantMouseMove = wantMouseMove ? (byte)1 : (byte)0; + WantHiddenTabBarUpdate = wantHiddenTabBarUpdate ? (byte)1 : (byte)0; + WantHiddenTabBarToggle = wantHiddenTabBarToggle ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTabBar + { + /// + /// To be documented. + /// + public ImVectorImGuiTabItem Tabs; + + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public uint SelectedTabId; + + /// + /// To be documented. + /// + public uint NextSelectedTabId; + + /// + /// To be documented. + /// + public uint VisibleTabId; + + /// + /// To be documented. + /// + public int CurrFrameVisible; + + /// + /// To be documented. + /// + public int PrevFrameVisible; + + /// + /// To be documented. + /// + public ImRect BarRect; + + /// + /// To be documented. + /// + public float CurrTabsContentsHeight; + + /// + /// To be documented. + /// + public float PrevTabsContentsHeight; + + /// + /// To be documented. + /// + public float WidthAllTabs; + + /// + /// To be documented. + /// + public float WidthAllTabsIdeal; + + /// + /// To be documented. + /// + public float ScrollingAnim; + + /// + /// To be documented. + /// + public float ScrollingTarget; + + /// + /// To be documented. + /// + public float ScrollingTargetDistToVisibility; + + /// + /// To be documented. + /// + public float ScrollingSpeed; + + /// + /// To be documented. + /// + public float ScrollingRectMinX; + + /// + /// To be documented. + /// + public float ScrollingRectMaxX; + + /// + /// To be documented. + /// + public float SeparatorMinX; + + /// + /// To be documented. + /// + public float SeparatorMaxX; + + /// + /// To be documented. + /// + public uint ReorderRequestTabId; + + /// + /// To be documented. + /// + public short ReorderRequestOffset; + + /// + /// To be documented. + /// + public byte BeginCount; + + /// + /// To be documented. + /// + public byte WantLayout; + + /// + /// To be documented. + /// + public byte VisibleTabWasSubmitted; + + /// + /// To be documented. + /// + public byte TabsAddedNew; + + /// + /// To be documented. + /// + public short TabsActiveCount; + + /// + /// To be documented. + /// + public short LastTabItemIdx; + + /// + /// To be documented. + /// + public float ItemSpacingY; + + /// + /// To be documented. + /// + public Vector2 FramePadding; + + /// + /// To be documented. + /// + public Vector2 BackupCursorPos; + + /// + /// To be documented. + /// + public ImGuiTextBuffer TabsNames; + + + /// /// To be documented. /// public unsafe ImGuiTabBar(ImVectorImGuiTabItem tabs = default, int flags = default, uint id = default, uint selectedTabId = default, uint nextSelectedTabId = default, uint visibleTabId = default, int currFrameVisible = default, int prevFrameVisible = default, ImRect barRect = default, float currTabsContentsHeight = default, float prevTabsContentsHeight = default, float widthAllTabs = default, float widthAllTabsIdeal = default, float scrollingAnim = default, float scrollingTarget = default, float scrollingTargetDistToVisibility = default, float scrollingSpeed = default, float scrollingRectMinX = default, float scrollingRectMaxX = default, float separatorMinX = default, float separatorMaxX = default, uint reorderRequestTabId = default, short reorderRequestOffset = default, byte beginCount = default, bool wantLayout = default, bool visibleTabWasSubmitted = default, bool tabsAddedNew = default, short tabsActiveCount = default, short lastTabItemIdx = default, float itemSpacingY = default, Vector2 framePadding = default, Vector2 backupCursorPos = default, ImGuiTextBuffer tabsNames = default) + { + Tabs = tabs; + Flags = flags; + ID = id; + SelectedTabId = selectedTabId; + NextSelectedTabId = nextSelectedTabId; + VisibleTabId = visibleTabId; + CurrFrameVisible = currFrameVisible; + PrevFrameVisible = prevFrameVisible; + BarRect = barRect; + CurrTabsContentsHeight = currTabsContentsHeight; + PrevTabsContentsHeight = prevTabsContentsHeight; + WidthAllTabs = widthAllTabs; + WidthAllTabsIdeal = widthAllTabsIdeal; + ScrollingAnim = scrollingAnim; + ScrollingTarget = scrollingTarget; + ScrollingTargetDistToVisibility = scrollingTargetDistToVisibility; + ScrollingSpeed = scrollingSpeed; + ScrollingRectMinX = scrollingRectMinX; + ScrollingRectMaxX = scrollingRectMaxX; + SeparatorMinX = separatorMinX; + SeparatorMaxX = separatorMaxX; + ReorderRequestTabId = reorderRequestTabId; + ReorderRequestOffset = reorderRequestOffset; + BeginCount = beginCount; + WantLayout = wantLayout ? (byte)1 : (byte)0; + VisibleTabWasSubmitted = visibleTabWasSubmitted ? (byte)1 : (byte)0; + TabsAddedNew = tabsAddedNew ? (byte)1 : (byte)0; + TabsActiveCount = tabsActiveCount; + LastTabItemIdx = lastTabItemIdx; + ItemSpacingY = itemSpacingY; + FramePadding = framePadding; + BackupCursorPos = backupCursorPos; + TabsNames = tabsNames; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiTabItem + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiTabItem* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiTabItem(int size = default, int capacity = default, ImGuiTabItem* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTabItem + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* Window; + + /// + /// To be documented. + /// + public int LastFrameVisible; + + /// + /// To be documented. + /// + public int LastFrameSelected; + + /// + /// To be documented. + /// + public float Offset; + + /// + /// To be documented. + /// + public float Width; + + /// + /// To be documented. + /// + public float ContentWidth; + + /// + /// To be documented. + /// + public float RequestedWidth; + + /// + /// To be documented. + /// + public int NameOffset; + + /// + /// To be documented. + /// + public short BeginOrder; + + /// + /// To be documented. + /// + public short IndexDuringLayout; + + /// + /// To be documented. + /// + public byte WantClose; + + + /// /// To be documented. /// public unsafe ImGuiTabItem(uint id = default, int flags = default, ImGuiWindow* window = default, int lastFrameVisible = default, int lastFrameSelected = default, float offset = default, float width = default, float contentWidth = default, float requestedWidth = default, int nameOffset = default, short beginOrder = default, short indexDuringLayout = default, bool wantClose = default) + { + ID = id; + Flags = flags; + Window = window; + LastFrameVisible = lastFrameVisible; + LastFrameSelected = lastFrameSelected; + Offset = offset; + Width = width; + ContentWidth = contentWidth; + RequestedWidth = requestedWidth; + NameOffset = nameOffset; + BeginOrder = beginOrder; + IndexDuringLayout = indexDuringLayout; + WantClose = wantClose ? (byte)1 : (byte)0; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTextBuffer + { + /// + /// To be documented. + /// + public ImVectorChar Buf; + + + + /// /// To be documented. /// public unsafe ImGuiTextBuffer(ImVectorChar buf = default) + { + Buf = buf; + } + + + public unsafe void append( byte* str, byte* strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.appendNative(@this, str, strEnd); + } + } + + public unsafe void append( byte* str) + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.appendNative(@this, str, (byte*)(default)); + } + } + + public unsafe void append( ref byte str, byte* strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstr = &str) + { + ImGui.appendNative(@this, (byte*)pstr, strEnd); + } + } + } + + public unsafe void append( ref byte str) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstr = &str) + { + ImGui.appendNative(@this, (byte*)pstr, (byte*)(default)); + } + } + } + + public unsafe void append( string str, byte* strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.appendNative(@this, pStr0, strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void append( string str) + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.appendNative(@this, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void append( byte* str, ref byte strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstrEnd = &strEnd) + { + ImGui.appendNative(@this, str, (byte*)pstrEnd); + } + } + } + + public unsafe void append( byte* str, string strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (strEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.appendNative(@this, str, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void append( ref byte str, ref byte strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pstr = &str) + { + fixed (byte* pstrEnd = &strEnd) + { + ImGui.appendNative(@this, (byte*)pstr, (byte*)pstrEnd); + } + } + } + } + + public unsafe void append( string str, string strEnd) + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (strEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(strEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.appendNative(@this, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void appendf( byte* fmt) + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.appendfNative(@this, fmt); + } + } + + public unsafe void appendf( ref byte fmt) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pfmt = &fmt) + { + ImGui.appendfNative(@this, (byte*)pfmt); + } + } + } + + public unsafe void appendf( string fmt) + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.appendfNative(@this, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void appendfv( byte* fmt, nuint args) + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.appendfvNative(@this, fmt, args); + } + } + + public unsafe void appendfv( ref byte fmt, nuint args) + { + fixed (ImGuiTextBuffer* @this = &this) + { + fixed (byte* pfmt = &fmt) + { + ImGui.appendfvNative(@this, (byte*)pfmt, args); + } + } + } + + public unsafe void appendfv( string fmt, nuint args) + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (fmt != null) + { + pStrSize0 = Utils.GetByteCountUTF8(fmt); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(fmt, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.appendfvNative(@this, pStr0, args); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe byte* begin() + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* ret = ImGui.beginNative(@this); + return ret; + } + } + + public unsafe string beginS() + { + fixed (ImGuiTextBuffer* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImGui.beginNative(@this)); + return ret; + } + } + + public unsafe byte* c_str() + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* ret = ImGui.c_strNative(@this); + return ret; + } + } + + public unsafe string c_strS() + { + fixed (ImGuiTextBuffer* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImGui.c_strNative(@this)); + return ret; + } + } + + public unsafe void clear() + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.clearNative(@this); + } + } + + public unsafe void Destroy() + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe bool empty() + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte ret = ImGui.emptyNative(@this); + return ret != 0; + } + } + + public unsafe byte* end() + { + fixed (ImGuiTextBuffer* @this = &this) + { + byte* ret = ImGui.endNative(@this); + return ret; + } + } + + public unsafe string endS() + { + fixed (ImGuiTextBuffer* @this = &this) + { + string ret = Utils.DecodeStringUTF8(ImGui.endNative(@this)); + return ret; + } + } + + public unsafe void reserve( int capacity) + { + fixed (ImGuiTextBuffer* @this = &this) + { + ImGui.reserveNative(@this, capacity); + } + } + + public unsafe int size() + { + fixed (ImGuiTextBuffer* @this = &this) + { + int ret = ImGui.sizeNative(@this); + return ret; + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorChar + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe byte* Data; + + + /// /// To be documented. /// public unsafe ImVectorChar(int size = default, int capacity = default, byte* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiWindowStackData + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiWindowStackData* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiWindowStackData(int size = default, int capacity = default, ImGuiWindowStackData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowStackData + { + /// + /// To be documented. + /// + public unsafe ImGuiWindow* Window; + + /// + /// To be documented. + /// + public ImGuiLastItemData ParentLastItemDataBackup; + + /// + /// To be documented. + /// + public ImGuiStackSizes StackSizesOnBegin; + + + /// /// To be documented. /// public unsafe ImGuiWindowStackData(ImGuiWindow* window = default, ImGuiLastItemData parentLastItemDataBackup = default, ImGuiStackSizes stackSizesOnBegin = default) + { + Window = window; + ParentLastItemDataBackup = parentLastItemDataBackup; + StackSizesOnBegin = stackSizesOnBegin; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiLastItemData + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int InFlags; + + /// + /// To be documented. + /// + public int StatusFlags; + + /// + /// To be documented. + /// + public ImRect Rect; + + /// + /// To be documented. + /// + public ImRect NavRect; + + /// + /// To be documented. + /// + public ImRect DisplayRect; + + + /// /// To be documented. /// public unsafe ImGuiLastItemData(uint id = default, int inFlags = default, int statusFlags = default, ImRect rect = default, ImRect navRect = default, ImRect displayRect = default) + { + ID = id; + InFlags = inFlags; + StatusFlags = statusFlags; + Rect = rect; + NavRect = navRect; + DisplayRect = displayRect; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStackSizes + { + /// + /// To be documented. + /// + public short SizeOfIDStack; + + /// + /// To be documented. + /// + public short SizeOfColorStack; + + /// + /// To be documented. + /// + public short SizeOfStyleVarStack; + + /// + /// To be documented. + /// + public short SizeOfFontStack; + + /// + /// To be documented. + /// + public short SizeOfFocusScopeStack; + + /// + /// To be documented. + /// + public short SizeOfGroupStack; + + /// + /// To be documented. + /// + public short SizeOfItemFlagsStack; + + /// + /// To be documented. + /// + public short SizeOfBeginPopupStack; + + /// + /// To be documented. + /// + public short SizeOfDisabledStack; + + + /// /// To be documented. /// public unsafe ImGuiStackSizes(short sizeOfIdStack = default, short sizeOfColorStack = default, short sizeOfStyleVarStack = default, short sizeOfFontStack = default, short sizeOfFocusScopeStack = default, short sizeOfGroupStack = default, short sizeOfItemFlagsStack = default, short sizeOfBeginPopupStack = default, short sizeOfDisabledStack = default) + { + SizeOfIDStack = sizeOfIdStack; + SizeOfColorStack = sizeOfColorStack; + SizeOfStyleVarStack = sizeOfStyleVarStack; + SizeOfFontStack = sizeOfFontStack; + SizeOfFocusScopeStack = sizeOfFocusScopeStack; + SizeOfGroupStack = sizeOfGroupStack; + SizeOfItemFlagsStack = sizeOfItemFlagsStack; + SizeOfBeginPopupStack = sizeOfBeginPopupStack; + SizeOfDisabledStack = sizeOfDisabledStack; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiKeyOwnerData + { + /// + /// To be documented. + /// + public uint OwnerCurr; + + /// + /// To be documented. + /// + public uint OwnerNext; + + /// + /// To be documented. + /// + public byte LockThisFrame; + + /// + /// To be documented. + /// + public byte LockUntilRelease; + + + /// /// To be documented. /// public unsafe ImGuiKeyOwnerData(uint ownerCurr = default, uint ownerNext = default, bool lockThisFrame = default, bool lockUntilRelease = default) + { + OwnerCurr = ownerCurr; + OwnerNext = ownerNext; + LockThisFrame = lockThisFrame ? (byte)1 : (byte)0; + LockUntilRelease = lockUntilRelease ? (byte)1 : (byte)0; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiKeyRoutingTable + { + /// + /// To be documented. + /// + public short Index_0; + public short Index_1; + public short Index_2; + public short Index_3; + public short Index_4; + public short Index_5; + public short Index_6; + public short Index_7; + public short Index_8; + public short Index_9; + public short Index_10; + public short Index_11; + public short Index_12; + public short Index_13; + public short Index_14; + public short Index_15; + public short Index_16; + public short Index_17; + public short Index_18; + public short Index_19; + public short Index_20; + public short Index_21; + public short Index_22; + public short Index_23; + public short Index_24; + public short Index_25; + public short Index_26; + public short Index_27; + public short Index_28; + public short Index_29; + public short Index_30; + public short Index_31; + public short Index_32; + public short Index_33; + public short Index_34; + public short Index_35; + public short Index_36; + public short Index_37; + public short Index_38; + public short Index_39; + public short Index_40; + public short Index_41; + public short Index_42; + public short Index_43; + public short Index_44; + public short Index_45; + public short Index_46; + public short Index_47; + public short Index_48; + public short Index_49; + public short Index_50; + public short Index_51; + public short Index_52; + public short Index_53; + public short Index_54; + public short Index_55; + public short Index_56; + public short Index_57; + public short Index_58; + public short Index_59; + public short Index_60; + public short Index_61; + public short Index_62; + public short Index_63; + public short Index_64; + public short Index_65; + public short Index_66; + public short Index_67; + public short Index_68; + public short Index_69; + public short Index_70; + public short Index_71; + public short Index_72; + public short Index_73; + public short Index_74; + public short Index_75; + public short Index_76; + public short Index_77; + public short Index_78; + public short Index_79; + public short Index_80; + public short Index_81; + public short Index_82; + public short Index_83; + public short Index_84; + public short Index_85; + public short Index_86; + public short Index_87; + public short Index_88; + public short Index_89; + public short Index_90; + public short Index_91; + public short Index_92; + public short Index_93; + public short Index_94; + public short Index_95; + public short Index_96; + public short Index_97; + public short Index_98; + public short Index_99; + public short Index_100; + public short Index_101; + public short Index_102; + public short Index_103; + public short Index_104; + public short Index_105; + public short Index_106; + public short Index_107; + public short Index_108; + public short Index_109; + public short Index_110; + public short Index_111; + public short Index_112; + public short Index_113; + public short Index_114; + public short Index_115; + public short Index_116; + public short Index_117; + public short Index_118; + public short Index_119; + public short Index_120; + public short Index_121; + public short Index_122; + public short Index_123; + public short Index_124; + public short Index_125; + public short Index_126; + public short Index_127; + public short Index_128; + public short Index_129; + public short Index_130; + public short Index_131; + public short Index_132; + public short Index_133; + public short Index_134; + public short Index_135; + public short Index_136; + public short Index_137; + public short Index_138; + public short Index_139; + public short Index_140; + public short Index_141; + public short Index_142; + public short Index_143; + public short Index_144; + public short Index_145; + public short Index_146; + public short Index_147; + public short Index_148; + public short Index_149; + public short Index_150; + public short Index_151; + public short Index_152; + public short Index_153; + + /// + /// To be documented. + /// + public ImVectorImGuiKeyRoutingData Entries; + + /// + /// To be documented. + /// + public ImVectorImGuiKeyRoutingData EntriesNext; + + + /// /// To be documented. /// public unsafe ImGuiKeyRoutingTable(short* index = default, ImVectorImGuiKeyRoutingData entries = default, ImVectorImGuiKeyRoutingData entriesNext = default) + { + if (index != default) + { + Index_0 = index[0]; + Index_1 = index[1]; + Index_2 = index[2]; + Index_3 = index[3]; + Index_4 = index[4]; + Index_5 = index[5]; + Index_6 = index[6]; + Index_7 = index[7]; + Index_8 = index[8]; + Index_9 = index[9]; + Index_10 = index[10]; + Index_11 = index[11]; + Index_12 = index[12]; + Index_13 = index[13]; + Index_14 = index[14]; + Index_15 = index[15]; + Index_16 = index[16]; + Index_17 = index[17]; + Index_18 = index[18]; + Index_19 = index[19]; + Index_20 = index[20]; + Index_21 = index[21]; + Index_22 = index[22]; + Index_23 = index[23]; + Index_24 = index[24]; + Index_25 = index[25]; + Index_26 = index[26]; + Index_27 = index[27]; + Index_28 = index[28]; + Index_29 = index[29]; + Index_30 = index[30]; + Index_31 = index[31]; + Index_32 = index[32]; + Index_33 = index[33]; + Index_34 = index[34]; + Index_35 = index[35]; + Index_36 = index[36]; + Index_37 = index[37]; + Index_38 = index[38]; + Index_39 = index[39]; + Index_40 = index[40]; + Index_41 = index[41]; + Index_42 = index[42]; + Index_43 = index[43]; + Index_44 = index[44]; + Index_45 = index[45]; + Index_46 = index[46]; + Index_47 = index[47]; + Index_48 = index[48]; + Index_49 = index[49]; + Index_50 = index[50]; + Index_51 = index[51]; + Index_52 = index[52]; + Index_53 = index[53]; + Index_54 = index[54]; + Index_55 = index[55]; + Index_56 = index[56]; + Index_57 = index[57]; + Index_58 = index[58]; + Index_59 = index[59]; + Index_60 = index[60]; + Index_61 = index[61]; + Index_62 = index[62]; + Index_63 = index[63]; + Index_64 = index[64]; + Index_65 = index[65]; + Index_66 = index[66]; + Index_67 = index[67]; + Index_68 = index[68]; + Index_69 = index[69]; + Index_70 = index[70]; + Index_71 = index[71]; + Index_72 = index[72]; + Index_73 = index[73]; + Index_74 = index[74]; + Index_75 = index[75]; + Index_76 = index[76]; + Index_77 = index[77]; + Index_78 = index[78]; + Index_79 = index[79]; + Index_80 = index[80]; + Index_81 = index[81]; + Index_82 = index[82]; + Index_83 = index[83]; + Index_84 = index[84]; + Index_85 = index[85]; + Index_86 = index[86]; + Index_87 = index[87]; + Index_88 = index[88]; + Index_89 = index[89]; + Index_90 = index[90]; + Index_91 = index[91]; + Index_92 = index[92]; + Index_93 = index[93]; + Index_94 = index[94]; + Index_95 = index[95]; + Index_96 = index[96]; + Index_97 = index[97]; + Index_98 = index[98]; + Index_99 = index[99]; + Index_100 = index[100]; + Index_101 = index[101]; + Index_102 = index[102]; + Index_103 = index[103]; + Index_104 = index[104]; + Index_105 = index[105]; + Index_106 = index[106]; + Index_107 = index[107]; + Index_108 = index[108]; + Index_109 = index[109]; + Index_110 = index[110]; + Index_111 = index[111]; + Index_112 = index[112]; + Index_113 = index[113]; + Index_114 = index[114]; + Index_115 = index[115]; + Index_116 = index[116]; + Index_117 = index[117]; + Index_118 = index[118]; + Index_119 = index[119]; + Index_120 = index[120]; + Index_121 = index[121]; + Index_122 = index[122]; + Index_123 = index[123]; + Index_124 = index[124]; + Index_125 = index[125]; + Index_126 = index[126]; + Index_127 = index[127]; + Index_128 = index[128]; + Index_129 = index[129]; + Index_130 = index[130]; + Index_131 = index[131]; + Index_132 = index[132]; + Index_133 = index[133]; + Index_134 = index[134]; + Index_135 = index[135]; + Index_136 = index[136]; + Index_137 = index[137]; + Index_138 = index[138]; + Index_139 = index[139]; + Index_140 = index[140]; + Index_141 = index[141]; + Index_142 = index[142]; + Index_143 = index[143]; + Index_144 = index[144]; + Index_145 = index[145]; + Index_146 = index[146]; + Index_147 = index[147]; + Index_148 = index[148]; + Index_149 = index[149]; + Index_150 = index[150]; + Index_151 = index[151]; + Index_152 = index[152]; + Index_153 = index[153]; + } + Entries = entries; + EntriesNext = entriesNext; + } + + /// /// To be documented. /// public unsafe ImGuiKeyRoutingTable(Span index = default, ImVectorImGuiKeyRoutingData entries = default, ImVectorImGuiKeyRoutingData entriesNext = default) + { + if (index != default) + { + Index_0 = index[0]; + Index_1 = index[1]; + Index_2 = index[2]; + Index_3 = index[3]; + Index_4 = index[4]; + Index_5 = index[5]; + Index_6 = index[6]; + Index_7 = index[7]; + Index_8 = index[8]; + Index_9 = index[9]; + Index_10 = index[10]; + Index_11 = index[11]; + Index_12 = index[12]; + Index_13 = index[13]; + Index_14 = index[14]; + Index_15 = index[15]; + Index_16 = index[16]; + Index_17 = index[17]; + Index_18 = index[18]; + Index_19 = index[19]; + Index_20 = index[20]; + Index_21 = index[21]; + Index_22 = index[22]; + Index_23 = index[23]; + Index_24 = index[24]; + Index_25 = index[25]; + Index_26 = index[26]; + Index_27 = index[27]; + Index_28 = index[28]; + Index_29 = index[29]; + Index_30 = index[30]; + Index_31 = index[31]; + Index_32 = index[32]; + Index_33 = index[33]; + Index_34 = index[34]; + Index_35 = index[35]; + Index_36 = index[36]; + Index_37 = index[37]; + Index_38 = index[38]; + Index_39 = index[39]; + Index_40 = index[40]; + Index_41 = index[41]; + Index_42 = index[42]; + Index_43 = index[43]; + Index_44 = index[44]; + Index_45 = index[45]; + Index_46 = index[46]; + Index_47 = index[47]; + Index_48 = index[48]; + Index_49 = index[49]; + Index_50 = index[50]; + Index_51 = index[51]; + Index_52 = index[52]; + Index_53 = index[53]; + Index_54 = index[54]; + Index_55 = index[55]; + Index_56 = index[56]; + Index_57 = index[57]; + Index_58 = index[58]; + Index_59 = index[59]; + Index_60 = index[60]; + Index_61 = index[61]; + Index_62 = index[62]; + Index_63 = index[63]; + Index_64 = index[64]; + Index_65 = index[65]; + Index_66 = index[66]; + Index_67 = index[67]; + Index_68 = index[68]; + Index_69 = index[69]; + Index_70 = index[70]; + Index_71 = index[71]; + Index_72 = index[72]; + Index_73 = index[73]; + Index_74 = index[74]; + Index_75 = index[75]; + Index_76 = index[76]; + Index_77 = index[77]; + Index_78 = index[78]; + Index_79 = index[79]; + Index_80 = index[80]; + Index_81 = index[81]; + Index_82 = index[82]; + Index_83 = index[83]; + Index_84 = index[84]; + Index_85 = index[85]; + Index_86 = index[86]; + Index_87 = index[87]; + Index_88 = index[88]; + Index_89 = index[89]; + Index_90 = index[90]; + Index_91 = index[91]; + Index_92 = index[92]; + Index_93 = index[93]; + Index_94 = index[94]; + Index_95 = index[95]; + Index_96 = index[96]; + Index_97 = index[97]; + Index_98 = index[98]; + Index_99 = index[99]; + Index_100 = index[100]; + Index_101 = index[101]; + Index_102 = index[102]; + Index_103 = index[103]; + Index_104 = index[104]; + Index_105 = index[105]; + Index_106 = index[106]; + Index_107 = index[107]; + Index_108 = index[108]; + Index_109 = index[109]; + Index_110 = index[110]; + Index_111 = index[111]; + Index_112 = index[112]; + Index_113 = index[113]; + Index_114 = index[114]; + Index_115 = index[115]; + Index_116 = index[116]; + Index_117 = index[117]; + Index_118 = index[118]; + Index_119 = index[119]; + Index_120 = index[120]; + Index_121 = index[121]; + Index_122 = index[122]; + Index_123 = index[123]; + Index_124 = index[124]; + Index_125 = index[125]; + Index_126 = index[126]; + Index_127 = index[127]; + Index_128 = index[128]; + Index_129 = index[129]; + Index_130 = index[130]; + Index_131 = index[131]; + Index_132 = index[132]; + Index_133 = index[133]; + Index_134 = index[134]; + Index_135 = index[135]; + Index_136 = index[136]; + Index_137 = index[137]; + Index_138 = index[138]; + Index_139 = index[139]; + Index_140 = index[140]; + Index_141 = index[141]; + Index_142 = index[142]; + Index_143 = index[143]; + Index_144 = index[144]; + Index_145 = index[145]; + Index_146 = index[146]; + Index_147 = index[147]; + Index_148 = index[148]; + Index_149 = index[149]; + Index_150 = index[150]; + Index_151 = index[151]; + Index_152 = index[152]; + Index_153 = index[153]; + } + Entries = entries; + EntriesNext = entriesNext; + } + + + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiKeyRoutingData + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiKeyRoutingData* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiKeyRoutingData(int size = default, int capacity = default, ImGuiKeyRoutingData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiKeyRoutingData + { + /// + /// To be documented. + /// + public short NextEntryIndex; + + /// + /// To be documented. + /// + public ushort Mods; + + /// + /// To be documented. + /// + public byte RoutingNextScore; + + /// + /// To be documented. + /// + public uint RoutingCurr; + + /// + /// To be documented. + /// + public uint RoutingNext; + + + /// /// To be documented. /// public unsafe ImGuiKeyRoutingData(short nextEntryIndex = default, ushort mods = default, byte routingNextScore = default, uint routingCurr = default, uint routingNext = default) + { + NextEntryIndex = nextEntryIndex; + Mods = mods; + RoutingNextScore = routingNextScore; + RoutingCurr = routingCurr; + RoutingNext = routingNext; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiNextItemData + { + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public int ItemFlags; + + /// + /// To be documented. + /// + public float Width; + + /// + /// To be documented. + /// + public long SelectionUserData; + + /// + /// To be documented. + /// + public int OpenCond; + + /// + /// To be documented. + /// + public byte OpenVal; + + + /// /// To be documented. /// public unsafe ImGuiNextItemData(int flags = default, int itemFlags = default, float width = default, long selectionUserData = default, int openCond = default, bool openVal = default) + { + Flags = flags; + ItemFlags = itemFlags; + Width = width; + SelectionUserData = selectionUserData; + OpenCond = openCond; + OpenVal = openVal ? (byte)1 : (byte)0; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiNextWindowData + { + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public int PosCond; + + /// + /// To be documented. + /// + public int SizeCond; + + /// + /// To be documented. + /// + public int CollapsedCond; + + /// + /// To be documented. + /// + public int DockCond; + + /// + /// To be documented. + /// + public Vector2 PosVal; + + /// + /// To be documented. + /// + public Vector2 PosPivotVal; + + /// + /// To be documented. + /// + public Vector2 SizeVal; + + /// + /// To be documented. + /// + public Vector2 ContentSizeVal; + + /// + /// To be documented. + /// + public Vector2 ScrollVal; + + /// + /// To be documented. + /// + public byte PosUndock; + + /// + /// To be documented. + /// + public byte CollapsedVal; + + /// + /// To be documented. + /// + public ImRect SizeConstraintRect; + + /// + /// To be documented. + /// + public unsafe void* SizeCallback; + + /// + /// To be documented. + /// + public unsafe void* SizeCallbackUserData; + + /// + /// To be documented. + /// + public float BgAlphaVal; + + /// + /// To be documented. + /// + public uint ViewportId; + + /// + /// To be documented. + /// + public uint DockId; + + /// + /// To be documented. + /// + public ImGuiWindowClass WindowClass; + + /// + /// To be documented. + /// + public Vector2 MenuBarOffsetMinVal; + + + /// /// To be documented. /// public unsafe ImGuiNextWindowData(int flags = default, int posCond = default, int sizeCond = default, int collapsedCond = default, int dockCond = default, Vector2 posVal = default, Vector2 posPivotVal = default, Vector2 sizeVal = default, Vector2 contentSizeVal = default, Vector2 scrollVal = default, bool posUndock = default, bool collapsedVal = default, ImRect sizeConstraintRect = default, delegate* sizeCallback = default, void* sizeCallbackUserData = default, float bgAlphaVal = default, uint viewportId = default, uint dockId = default, ImGuiWindowClass windowClass = default, Vector2 menuBarOffsetMinVal = default) + { + Flags = flags; + PosCond = posCond; + SizeCond = sizeCond; + CollapsedCond = collapsedCond; + DockCond = dockCond; + PosVal = posVal; + PosPivotVal = posPivotVal; + SizeVal = sizeVal; + ContentSizeVal = contentSizeVal; + ScrollVal = scrollVal; + PosUndock = posUndock ? (byte)1 : (byte)0; + CollapsedVal = collapsedVal ? (byte)1 : (byte)0; + SizeConstraintRect = sizeConstraintRect; + SizeCallback = (void*)sizeCallback; + SizeCallbackUserData = sizeCallbackUserData; + BgAlphaVal = bgAlphaVal; + ViewportId = viewportId; + DockId = dockId; + WindowClass = windowClass; + MenuBarOffsetMinVal = menuBarOffsetMinVal; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiColorMod + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiColorMod* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiColorMod(int size = default, int capacity = default, ImGuiColorMod* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiColorMod + { + /// + /// To be documented. + /// + public int Col; + + /// + /// To be documented. + /// + public Vector4 BackupValue; + + + /// /// To be documented. /// public unsafe ImGuiColorMod(int col = default, Vector4 backupValue = default) + { + Col = col; + BackupValue = backupValue; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiStyleMod + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiStyleMod* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiStyleMod(int size = default, int capacity = default, ImGuiStyleMod* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStyleMod + { + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Explicit)] + public partial struct ImGuiStyleModUnion + { + /// + /// To be documented. + /// + [FieldOffset(0)] + public int BackupInt_0; + [FieldOffset(8)] + public int BackupInt_1; + + /// + /// To be documented. + /// + [FieldOffset(0)] + public float BackupFloat_0; + [FieldOffset(8)] + public float BackupFloat_1; + + + /// /// To be documented. /// public unsafe ImGuiStyleModUnion(int* backupInt = default, float* backupFloat = default) + { + if (backupInt != default) + { + BackupInt_0 = backupInt[0]; + BackupInt_1 = backupInt[1]; + } + if (backupFloat != default) + { + BackupFloat_0 = backupFloat[0]; + BackupFloat_1 = backupFloat[1]; + } + } + + /// /// To be documented. /// public unsafe ImGuiStyleModUnion(Span backupInt = default, Span backupFloat = default) + { + if (backupInt != default) + { + BackupInt_0 = backupInt[0]; + BackupInt_1 = backupInt[1]; + } + if (backupFloat != default) + { + BackupFloat_0 = backupFloat[0]; + BackupFloat_1 = backupFloat[1]; + } + } + + + /// + /// To be documented. + /// + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + public int VarIdx; + + /// + /// To be documented. + /// + public ; + + + /// /// To be documented. /// public unsafe ImGuiStyleMod(int varIdx = default, = default) + { + VarIdx = varIdx; + this. = ; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiItemFlags + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe int* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiItemFlags(int size = default, int capacity = default, int* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiGroupData + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiGroupData* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiGroupData(int size = default, int capacity = default, ImGuiGroupData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiGroupData + { + /// + /// To be documented. + /// + public uint WindowID; + + /// + /// To be documented. + /// + public Vector2 BackupCursorPos; + + /// + /// To be documented. + /// + public Vector2 BackupCursorMaxPos; + + /// + /// To be documented. + /// + public Vector2 BackupCursorPosPrevLine; + + /// + /// To be documented. + /// + public ImVec1 BackupIndent; + + /// + /// To be documented. + /// + public ImVec1 BackupGroupOffset; + + /// + /// To be documented. + /// + public Vector2 BackupCurrLineSize; + + /// + /// To be documented. + /// + public float BackupCurrLineTextBaseOffset; + + /// + /// To be documented. + /// + public uint BackupActiveIdIsAlive; + + /// + /// To be documented. + /// + public byte BackupActiveIdPreviousFrameIsAlive; + + /// + /// To be documented. + /// + public byte BackupHoveredIdIsAlive; + + /// + /// To be documented. + /// + public byte BackupIsSameLine; + + /// + /// To be documented. + /// + public byte EmitItem; + + + /// /// To be documented. /// public unsafe ImGuiGroupData(uint windowId = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, Vector2 backupCursorPosPrevLine = default, ImVec1 backupIndent = default, ImVec1 backupGroupOffset = default, Vector2 backupCurrLineSize = default, float backupCurrLineTextBaseOffset = default, uint backupActiveIdIsAlive = default, bool backupActiveIdPreviousFrameIsAlive = default, bool backupHoveredIdIsAlive = default, bool backupIsSameLine = default, bool emitItem = default) + { + WindowID = windowId; + BackupCursorPos = backupCursorPos; + BackupCursorMaxPos = backupCursorMaxPos; + BackupCursorPosPrevLine = backupCursorPosPrevLine; + BackupIndent = backupIndent; + BackupGroupOffset = backupGroupOffset; + BackupCurrLineSize = backupCurrLineSize; + BackupCurrLineTextBaseOffset = backupCurrLineTextBaseOffset; + BackupActiveIdIsAlive = backupActiveIdIsAlive; + BackupActiveIdPreviousFrameIsAlive = backupActiveIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + BackupHoveredIdIsAlive = backupHoveredIdIsAlive ? (byte)1 : (byte)0; + BackupIsSameLine = backupIsSameLine ? (byte)1 : (byte)0; + EmitItem = emitItem ? (byte)1 : (byte)0; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiPopupData + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiPopupData* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiPopupData(int size = default, int capacity = default, ImGuiPopupData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPopupData + { + /// + /// To be documented. + /// + public uint PopupId; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* Window; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* BackupNavWindow; + + /// + /// To be documented. + /// + public int ParentNavLayer; + + /// + /// To be documented. + /// + public int OpenFrameCount; + + /// + /// To be documented. + /// + public uint OpenParentId; + + /// + /// To be documented. + /// + public Vector2 OpenPopupPos; + + /// + /// To be documented. + /// + public Vector2 OpenMousePos; + + + /// /// To be documented. /// public unsafe ImGuiPopupData(uint popupId = default, ImGuiWindow* window = default, ImGuiWindow* backupNavWindow = default, int parentNavLayer = default, int openFrameCount = default, uint openParentId = default, Vector2 openPopupPos = default, Vector2 openMousePos = default) + { + PopupId = popupId; + Window = window; + BackupNavWindow = backupNavWindow; + ParentNavLayer = parentNavLayer; + OpenFrameCount = openFrameCount; + OpenParentId = openParentId; + OpenPopupPos = openPopupPos; + OpenMousePos = openMousePos; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiNavTreeNodeData + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiNavTreeNodeData* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiNavTreeNodeData(int size = default, int capacity = default, ImGuiNavTreeNodeData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiNavTreeNodeData + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int InFlags; + + /// + /// To be documented. + /// + public ImRect NavRect; + + + /// /// To be documented. /// public unsafe ImGuiNavTreeNodeData(uint id = default, int inFlags = default, ImRect navRect = default) + { + ID = id; + InFlags = inFlags; + NavRect = navRect; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiViewportPPtr + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiViewportP** Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiViewportPPtr(int size = default, int capacity = default, ImGuiViewportP** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiNavItemData + { + /// + /// To be documented. + /// + public unsafe ImGuiWindow* Window; + + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public uint FocusScopeId; + + /// + /// To be documented. + /// + public ImRect RectRel; + + /// + /// To be documented. + /// + public int InFlags; + + /// + /// To be documented. + /// + public long SelectionUserData; + + /// + /// To be documented. + /// + public float DistBox; + + /// + /// To be documented. + /// + public float DistCenter; + + /// + /// To be documented. + /// + public float DistAxial; + + + /// /// To be documented. /// public unsafe ImGuiNavItemData(ImGuiWindow* window = default, uint id = default, uint focusScopeId = default, ImRect rectRel = default, int inFlags = default, long selectionUserData = default, float distBox = default, float distCenter = default, float distAxial = default) + { + Window = window; + ID = id; + FocusScopeId = focusScopeId; + RectRel = rectRel; + InFlags = inFlags; + SelectionUserData = selectionUserData; + DistBox = distBox; + DistCenter = distCenter; + DistAxial = distAxial; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPayload + { + /// + /// To be documented. + /// + public unsafe void* Data; + + /// + /// To be documented. + /// + public int DataSize; + + /// + /// To be documented. + /// + public uint SourceId; + + /// + /// To be documented. + /// + public uint SourceParentId; + + /// + /// To be documented. + /// + public int DataFrameCount; + + /// + /// To be documented. + /// + public byte DataType_0; + public byte DataType_1; + public byte DataType_2; + public byte DataType_3; + public byte DataType_4; + public byte DataType_5; + public byte DataType_6; + public byte DataType_7; + public byte DataType_8; + public byte DataType_9; + public byte DataType_10; + public byte DataType_11; + public byte DataType_12; + public byte DataType_13; + public byte DataType_14; + public byte DataType_15; + public byte DataType_16; + public byte DataType_17; + public byte DataType_18; + public byte DataType_19; + public byte DataType_20; + public byte DataType_21; + public byte DataType_22; + public byte DataType_23; + public byte DataType_24; + public byte DataType_25; + public byte DataType_26; + public byte DataType_27; + public byte DataType_28; + public byte DataType_29; + public byte DataType_30; + public byte DataType_31; + public byte DataType_32; + + /// + /// To be documented. + /// + public byte Preview; + + /// + /// To be documented. + /// + public byte Delivery; + + + + /// /// To be documented. /// public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, byte* dataType = default, bool preview = default, bool delivery = default) + { + Data = data; + DataSize = dataSize; + SourceId = sourceId; + SourceParentId = sourceParentId; + DataFrameCount = dataFrameCount; + if (dataType != default) + { + DataType_0 = dataType[0]; + DataType_1 = dataType[1]; + DataType_2 = dataType[2]; + DataType_3 = dataType[3]; + DataType_4 = dataType[4]; + DataType_5 = dataType[5]; + DataType_6 = dataType[6]; + DataType_7 = dataType[7]; + DataType_8 = dataType[8]; + DataType_9 = dataType[9]; + DataType_10 = dataType[10]; + DataType_11 = dataType[11]; + DataType_12 = dataType[12]; + DataType_13 = dataType[13]; + DataType_14 = dataType[14]; + DataType_15 = dataType[15]; + DataType_16 = dataType[16]; + DataType_17 = dataType[17]; + DataType_18 = dataType[18]; + DataType_19 = dataType[19]; + DataType_20 = dataType[20]; + DataType_21 = dataType[21]; + DataType_22 = dataType[22]; + DataType_23 = dataType[23]; + DataType_24 = dataType[24]; + DataType_25 = dataType[25]; + DataType_26 = dataType[26]; + DataType_27 = dataType[27]; + DataType_28 = dataType[28]; + DataType_29 = dataType[29]; + DataType_30 = dataType[30]; + DataType_31 = dataType[31]; + DataType_32 = dataType[32]; + } + Preview = preview ? (byte)1 : (byte)0; + Delivery = delivery ? (byte)1 : (byte)0; + } + + /// /// To be documented. /// public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, Span dataType = default, bool preview = default, bool delivery = default) + { + Data = data; + DataSize = dataSize; + SourceId = sourceId; + SourceParentId = sourceParentId; + DataFrameCount = dataFrameCount; + if (dataType != default) + { + DataType_0 = dataType[0]; + DataType_1 = dataType[1]; + DataType_2 = dataType[2]; + DataType_3 = dataType[3]; + DataType_4 = dataType[4]; + DataType_5 = dataType[5]; + DataType_6 = dataType[6]; + DataType_7 = dataType[7]; + DataType_8 = dataType[8]; + DataType_9 = dataType[9]; + DataType_10 = dataType[10]; + DataType_11 = dataType[11]; + DataType_12 = dataType[12]; + DataType_13 = dataType[13]; + DataType_14 = dataType[14]; + DataType_15 = dataType[15]; + DataType_16 = dataType[16]; + DataType_17 = dataType[17]; + DataType_18 = dataType[18]; + DataType_19 = dataType[19]; + DataType_20 = dataType[20]; + DataType_21 = dataType[21]; + DataType_22 = dataType[22]; + DataType_23 = dataType[23]; + DataType_24 = dataType[24]; + DataType_25 = dataType[25]; + DataType_26 = dataType[26]; + DataType_27 = dataType[27]; + DataType_28 = dataType[28]; + DataType_29 = dataType[29]; + DataType_30 = dataType[30]; + DataType_31 = dataType[31]; + DataType_32 = dataType[32]; + } + Preview = preview ? (byte)1 : (byte)0; + Delivery = delivery ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + public unsafe void Clear() + { + fixed (ImGuiPayload* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + public unsafe void Destroy() + { + fixed (ImGuiPayload* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe bool IsDataType( byte* type) + { + fixed (ImGuiPayload* @this = &this) + { + byte ret = ImGui.IsDataTypeNative(@this, type); + return ret != 0; + } + } + + public unsafe bool IsDataType( ref byte type) + { + fixed (ImGuiPayload* @this = &this) + { + fixed (byte* ptype = &type) + { + byte ret = ImGui.IsDataTypeNative(@this, (byte*)ptype); + return ret != 0; + } + } + } + + public unsafe bool IsDataType( string type) + { + fixed (ImGuiPayload* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (type != null) + { + pStrSize0 = Utils.GetByteCountUTF8(type); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(type, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ImGui.IsDataTypeNative(@this, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public unsafe bool IsDelivery() + { + fixed (ImGuiPayload* @this = &this) + { + byte ret = ImGui.IsDeliveryNative(@this); + return ret != 0; + } + } + + public unsafe bool IsPreview() + { + fixed (ImGuiPayload* @this = &this) + { + byte ret = ImGui.IsPreviewNative(@this); + return ret != 0; + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorUnsignedChar + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe byte* Data; + + + /// /// To be documented. /// public unsafe ImVectorUnsignedChar(int size = default, int capacity = default, byte* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiListClipperData + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiListClipperData* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiListClipperData(int size = default, int capacity = default, ImGuiListClipperData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiListClipperData + { + /// + /// To be documented. + /// + public unsafe ImGuiListClipper* ListClipper; + + /// + /// To be documented. + /// + public float LossynessOffset; + + /// + /// To be documented. + /// + public int StepNo; + + /// + /// To be documented. + /// + public int ItemsFrozen; + + /// + /// To be documented. + /// + public ImVectorImGuiListClipperRange Ranges; + + + /// /// To be documented. /// public unsafe ImGuiListClipperData(ImGuiListClipper* listClipper = default, float lossynessOffset = default, int stepNo = default, int itemsFrozen = default, ImVectorImGuiListClipperRange ranges = default) + { + ListClipper = listClipper; + LossynessOffset = lossynessOffset; + StepNo = stepNo; + ItemsFrozen = itemsFrozen; + Ranges = ranges; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiListClipper + { + /// + /// To be documented. + /// + public unsafe ImGuiContext* Ctx; + + /// + /// To be documented. + /// + public int DisplayStart; + + /// + /// To be documented. + /// + public int DisplayEnd; + + /// + /// To be documented. + /// + public int ItemsCount; + + /// + /// To be documented. + /// + public float ItemsHeight; + + /// + /// To be documented. + /// + public float StartPosY; + + /// + /// To be documented. + /// + public unsafe void* TempData; + + + + /// /// To be documented. /// public unsafe ImGuiListClipper(ImGuiContext* ctx = default, int displayStart = default, int displayEnd = default, int itemsCount = default, float itemsHeight = default, float startPosY = default, void* tempData = default) + { + Ctx = ctx; + DisplayStart = displayStart; + DisplayEnd = displayEnd; + ItemsCount = itemsCount; + ItemsHeight = itemsHeight; + StartPosY = startPosY; + TempData = tempData; + } + + + public unsafe void Begin( int itemsCount, float itemsHeight) + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.BeginNative(@this, itemsCount, itemsHeight); + } + } + + public unsafe void Begin( int itemsCount) + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.BeginNative(@this, itemsCount, (float)(-1.0f)); + } + } + + public unsafe void Destroy() + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe void End() + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.EndNative(@this); + } + } + + public unsafe void IncludeItemByIndex( int itemIndex) + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.IncludeItemByIndexNative(@this, itemIndex); + } + } + + public unsafe void IncludeItemsByIndex( int itemBegin, int itemEnd) + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.IncludeItemsByIndexNative(@this, itemBegin, itemEnd); + } + } + + public unsafe bool Step() + { + fixed (ImGuiListClipper* @this = &this) + { + byte ret = ImGui.StepNative(@this); + return ret != 0; + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiListClipperRange + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiListClipperRange* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiListClipperRange(int size = default, int capacity = default, ImGuiListClipperRange* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiListClipperRange + { + /// + /// To be documented. + /// + public int Min; + + /// + /// To be documented. + /// + public int Max; + + /// + /// To be documented. + /// + public byte PosToIndexConvert; + + /// + /// To be documented. + /// + public byte PosToIndexOffsetMin; + + /// + /// To be documented. + /// + public byte PosToIndexOffsetMax; + + + /// /// To be documented. /// public unsafe ImGuiListClipperRange(int min = default, int max = default, bool posToIndexConvert = default, byte posToIndexOffsetMin = default, byte posToIndexOffsetMax = default) + { + Min = min; + Max = max; + PosToIndexConvert = posToIndexConvert ? (byte)1 : (byte)0; + PosToIndexOffsetMin = posToIndexOffsetMin; + PosToIndexOffsetMax = posToIndexOffsetMax; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTable + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public unsafe void* RawData; + + /// + /// To be documented. + /// + public unsafe ImGuiTableTempData* TempData; + + /// + /// To be documented. + /// + public ImSpanImGuiTableColumn Columns; + + /// + /// To be documented. + /// + public ImSpanImGuiTableColumnIdx DisplayOrderToIndex; + + /// + /// To be documented. + /// + public ImSpanImGuiTableCellData RowCellData; + + /// + /// To be documented. + /// + public unsafe uint* EnabledMaskByDisplayOrder; + + /// + /// To be documented. + /// + public unsafe uint* EnabledMaskByIndex; + + /// + /// To be documented. + /// + public unsafe uint* VisibleMaskByIndex; + + /// + /// To be documented. + /// + public int SettingsLoadedFlags; + + /// + /// To be documented. + /// + public int SettingsOffset; + + /// + /// To be documented. + /// + public int LastFrameActive; + + /// + /// To be documented. + /// + public int ColumnsCount; + + /// + /// To be documented. + /// + public int CurrentRow; + + /// + /// To be documented. + /// + public int CurrentColumn; + + /// + /// To be documented. + /// + public short InstanceCurrent; + + /// + /// To be documented. + /// + public short InstanceInteracted; + + /// + /// To be documented. + /// + public float RowPosY1; + + /// + /// To be documented. + /// + public float RowPosY2; + + /// + /// To be documented. + /// + public float RowMinHeight; + + /// + /// To be documented. + /// + public float RowCellPaddingY; + + /// + /// To be documented. + /// + public float RowTextBaseline; + + /// + /// To be documented. + /// + public float RowIndentOffsetX; + + /// + /// To be documented. + /// + public int RowFlags; + + /// + /// To be documented. + /// + public int LastRowFlags; + + /// + /// To be documented. + /// + public int RowBgColorCounter; + + /// + /// To be documented. + /// + public uint RowBgColor_0; + public uint RowBgColor_1; + + /// + /// To be documented. + /// + public uint BorderColorStrong; + + /// + /// To be documented. + /// + public uint BorderColorLight; + + /// + /// To be documented. + /// + public float BorderX1; + + /// + /// To be documented. + /// + public float BorderX2; + + /// + /// To be documented. + /// + public float HostIndentX; + + /// + /// To be documented. + /// + public float MinColumnWidth; + + /// + /// To be documented. + /// + public float OuterPaddingX; + + /// + /// To be documented. + /// + public float CellPaddingX; + + /// + /// To be documented. + /// + public float CellSpacingX1; + + /// + /// To be documented. + /// + public float CellSpacingX2; + + /// + /// To be documented. + /// + public float InnerWidth; + + /// + /// To be documented. + /// + public float ColumnsGivenWidth; + + /// + /// To be documented. + /// + public float ColumnsAutoFitWidth; + + /// + /// To be documented. + /// + public float ColumnsStretchSumWeights; + + /// + /// To be documented. + /// + public float ResizedColumnNextWidth; + + /// + /// To be documented. + /// + public float ResizeLockMinContentsX2; + + /// + /// To be documented. + /// + public float RefScale; + + /// + /// To be documented. + /// + public float AngledHeadersHeight; + + /// + /// To be documented. + /// + public float AngledHeadersSlope; + + /// + /// To be documented. + /// + public ImRect OuterRect; + + /// + /// To be documented. + /// + public ImRect InnerRect; + + /// + /// To be documented. + /// + public ImRect WorkRect; + + /// + /// To be documented. + /// + public ImRect InnerClipRect; + + /// + /// To be documented. + /// + public ImRect BgClipRect; + + /// + /// To be documented. + /// + public ImRect Bg0ClipRectForDrawCmd; + + /// + /// To be documented. + /// + public ImRect Bg2ClipRectForDrawCmd; + + /// + /// To be documented. + /// + public ImRect HostClipRect; + + /// + /// To be documented. + /// + public ImRect HostBackupInnerClipRect; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* OuterWindow; + + /// + /// To be documented. + /// + public unsafe ImGuiWindow* InnerWindow; + + /// + /// To be documented. + /// + public ImGuiTextBuffer ColumnsNames; + + /// + /// To be documented. + /// + public unsafe ImDrawListSplitter* DrawSplitter; + + /// + /// To be documented. + /// + public ImGuiTableInstanceData InstanceDataFirst; + + /// + /// To be documented. + /// + public ImVectorImGuiTableInstanceData InstanceDataExtra; + + /// + /// To be documented. + /// + public ImGuiTableColumnSortSpecs SortSpecsSingle; + + /// + /// To be documented. + /// + public ImVectorImGuiTableColumnSortSpecs SortSpecsMulti; + + /// + /// To be documented. + /// + public ImGuiTableSortSpecs SortSpecs; + + /// + /// To be documented. + /// + public short SortSpecsCount; + + /// + /// To be documented. + /// + public short ColumnsEnabledCount; + + /// + /// To be documented. + /// + public short ColumnsEnabledFixedCount; + + /// + /// To be documented. + /// + public short DeclColumnsCount; + + /// + /// To be documented. + /// + public short AngledHeadersCount; + + /// + /// To be documented. + /// + public short HoveredColumnBody; + + /// + /// To be documented. + /// + public short HoveredColumnBorder; + + /// + /// To be documented. + /// + public short HighlightColumnHeader; + + /// + /// To be documented. + /// + public short AutoFitSingleColumn; + + /// + /// To be documented. + /// + public short ResizedColumn; + + /// + /// To be documented. + /// + public short LastResizedColumn; + + /// + /// To be documented. + /// + public short HeldHeaderColumn; + + /// + /// To be documented. + /// + public short ReorderColumn; + + /// + /// To be documented. + /// + public short ReorderColumnDir; + + /// + /// To be documented. + /// + public short LeftMostEnabledColumn; + + /// + /// To be documented. + /// + public short RightMostEnabledColumn; + + /// + /// To be documented. + /// + public short LeftMostStretchedColumn; + + /// + /// To be documented. + /// + public short RightMostStretchedColumn; + + /// + /// To be documented. + /// + public short ContextPopupColumn; + + /// + /// To be documented. + /// + public short FreezeRowsRequest; + + /// + /// To be documented. + /// + public short FreezeRowsCount; + + /// + /// To be documented. + /// + public short FreezeColumnsRequest; + + /// + /// To be documented. + /// + public short FreezeColumnsCount; + + /// + /// To be documented. + /// + public short RowCellDataCurrent; + + /// + /// To be documented. + /// + public ushort DummyDrawChannel; + + /// + /// To be documented. + /// + public ushort Bg2DrawChannelCurrent; + + /// + /// To be documented. + /// + public ushort Bg2DrawChannelUnfrozen; + + /// + /// To be documented. + /// + public byte IsLayoutLocked; + + /// + /// To be documented. + /// + public byte IsInsideRow; + + /// + /// To be documented. + /// + public byte IsInitializing; + + /// + /// To be documented. + /// + public byte IsSortSpecsDirty; + + /// + /// To be documented. + /// + public byte IsUsingHeaders; + + /// + /// To be documented. + /// + public byte IsContextPopupOpen; + + /// + /// To be documented. + /// + public byte IsSettingsRequestLoad; + + /// + /// To be documented. + /// + public byte IsSettingsDirty; + + /// + /// To be documented. + /// + public byte IsDefaultDisplayOrder; + + /// + /// To be documented. + /// + public byte IsResetAllRequest; + + /// + /// To be documented. + /// + public byte IsResetDisplayOrderRequest; + + /// + /// To be documented. + /// + public byte IsUnfrozenRows; + + /// + /// To be documented. + /// + public byte IsDefaultSizingPolicy; + + /// + /// To be documented. + /// + public byte IsActiveIdAliveBeforeTable; + + /// + /// To be documented. + /// + public byte IsActiveIdInTable; + + /// + /// To be documented. + /// + public byte HasScrollbarYCurr; + + /// + /// To be documented. + /// + public byte HasScrollbarYPrev; + + /// + /// To be documented. + /// + public byte MemoryCompacted; + + /// + /// To be documented. + /// + public byte HostSkipItems; + + + /// /// To be documented. /// public unsafe ImGuiTable(uint id = default, int flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, uint* enabledMaskByDisplayOrder = default, uint* enabledMaskByIndex = default, uint* visibleMaskByIndex = default, int settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowCellPaddingY = default, float rowTextBaseline = default, float rowIndentOffsetX = default, int rowFlags = default, int lastRowFlags = default, int rowBgColorCounter = default, uint* rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, float angledHeadersHeight = default, float angledHeadersSlope = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindow* outerWindow = default, ImGuiWindow* innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitter* drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVectorImGuiTableInstanceData instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVectorImGuiTableColumnSortSpecs sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, short sortSpecsCount = default, short columnsEnabledCount = default, short columnsEnabledFixedCount = default, short declColumnsCount = default, short angledHeadersCount = default, short hoveredColumnBody = default, short hoveredColumnBorder = default, short highlightColumnHeader = default, short autoFitSingleColumn = default, short resizedColumn = default, short lastResizedColumn = default, short heldHeaderColumn = default, short reorderColumn = default, short reorderColumnDir = default, short leftMostEnabledColumn = default, short rightMostEnabledColumn = default, short leftMostStretchedColumn = default, short rightMostStretchedColumn = default, short contextPopupColumn = default, short freezeRowsRequest = default, short freezeRowsCount = default, short freezeColumnsRequest = default, short freezeColumnsCount = default, short rowCellDataCurrent = default, ushort dummyDrawChannel = default, ushort bg2DrawChannelCurrent = default, ushort bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool isActiveIdAliveBeforeTable = default, bool isActiveIdInTable = default, bool hasScrollbarYCurr = default, bool hasScrollbarYPrev = default, bool memoryCompacted = default, bool hostSkipItems = default) + { + ID = id; + Flags = flags; + RawData = rawData; + TempData = tempData; + Columns = columns; + DisplayOrderToIndex = displayOrderToIndex; + RowCellData = rowCellData; + EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; + EnabledMaskByIndex = enabledMaskByIndex; + VisibleMaskByIndex = visibleMaskByIndex; + SettingsLoadedFlags = settingsLoadedFlags; + SettingsOffset = settingsOffset; + LastFrameActive = lastFrameActive; + ColumnsCount = columnsCount; + CurrentRow = currentRow; + CurrentColumn = currentColumn; + InstanceCurrent = instanceCurrent; + InstanceInteracted = instanceInteracted; + RowPosY1 = rowPosY1; + RowPosY2 = rowPosY2; + RowMinHeight = rowMinHeight; + RowCellPaddingY = rowCellPaddingY; + RowTextBaseline = rowTextBaseline; + RowIndentOffsetX = rowIndentOffsetX; + RowFlags = rowFlags; + LastRowFlags = lastRowFlags; + RowBgColorCounter = rowBgColorCounter; + if (rowBgColor != default) + { + RowBgColor_0 = rowBgColor[0]; + RowBgColor_1 = rowBgColor[1]; + } + BorderColorStrong = borderColorStrong; + BorderColorLight = borderColorLight; + BorderX1 = borderX1; + BorderX2 = borderX2; + HostIndentX = hostIndentX; + MinColumnWidth = minColumnWidth; + OuterPaddingX = outerPaddingX; + CellPaddingX = cellPaddingX; + CellSpacingX1 = cellSpacingX1; + CellSpacingX2 = cellSpacingX2; + InnerWidth = innerWidth; + ColumnsGivenWidth = columnsGivenWidth; + ColumnsAutoFitWidth = columnsAutoFitWidth; + ColumnsStretchSumWeights = columnsStretchSumWeights; + ResizedColumnNextWidth = resizedColumnNextWidth; + ResizeLockMinContentsX2 = resizeLockMinContentsX2; + RefScale = refScale; + AngledHeadersHeight = angledHeadersHeight; + AngledHeadersSlope = angledHeadersSlope; + OuterRect = outerRect; + InnerRect = innerRect; + WorkRect = workRect; + InnerClipRect = innerClipRect; + BgClipRect = bgClipRect; + Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; + Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; + HostClipRect = hostClipRect; + HostBackupInnerClipRect = hostBackupInnerClipRect; + OuterWindow = outerWindow; + InnerWindow = innerWindow; + ColumnsNames = columnsNames; + DrawSplitter = drawSplitter; + InstanceDataFirst = instanceDataFirst; + InstanceDataExtra = instanceDataExtra; + SortSpecsSingle = sortSpecsSingle; + SortSpecsMulti = sortSpecsMulti; + SortSpecs = sortSpecs; + SortSpecsCount = sortSpecsCount; + ColumnsEnabledCount = columnsEnabledCount; + ColumnsEnabledFixedCount = columnsEnabledFixedCount; + DeclColumnsCount = declColumnsCount; + AngledHeadersCount = angledHeadersCount; + HoveredColumnBody = hoveredColumnBody; + HoveredColumnBorder = hoveredColumnBorder; + HighlightColumnHeader = highlightColumnHeader; + AutoFitSingleColumn = autoFitSingleColumn; + ResizedColumn = resizedColumn; + LastResizedColumn = lastResizedColumn; + HeldHeaderColumn = heldHeaderColumn; + ReorderColumn = reorderColumn; + ReorderColumnDir = reorderColumnDir; + LeftMostEnabledColumn = leftMostEnabledColumn; + RightMostEnabledColumn = rightMostEnabledColumn; + LeftMostStretchedColumn = leftMostStretchedColumn; + RightMostStretchedColumn = rightMostStretchedColumn; + ContextPopupColumn = contextPopupColumn; + FreezeRowsRequest = freezeRowsRequest; + FreezeRowsCount = freezeRowsCount; + FreezeColumnsRequest = freezeColumnsRequest; + FreezeColumnsCount = freezeColumnsCount; + RowCellDataCurrent = rowCellDataCurrent; + DummyDrawChannel = dummyDrawChannel; + Bg2DrawChannelCurrent = bg2DrawChannelCurrent; + Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; + IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; + IsInsideRow = isInsideRow ? (byte)1 : (byte)0; + IsInitializing = isInitializing ? (byte)1 : (byte)0; + IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; + IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; + IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; + IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; + IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; + IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; + IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; + IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; + IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; + IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; + IsActiveIdAliveBeforeTable = isActiveIdAliveBeforeTable ? (byte)1 : (byte)0; + IsActiveIdInTable = isActiveIdInTable ? (byte)1 : (byte)0; + HasScrollbarYCurr = hasScrollbarYCurr ? (byte)1 : (byte)0; + HasScrollbarYPrev = hasScrollbarYPrev ? (byte)1 : (byte)0; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Structures.005.cs b/Hexa.NET.ImGui/Generated/Structures.005.cs new file mode 100644 index 0000000..f4bde05 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Structures.005.cs @@ -0,0 +1,4978 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawChannel + { + + /// /// To be documented. /// public unsafe ImGuiTable(uint id = default, int flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, uint* enabledMaskByDisplayOrder = default, uint* enabledMaskByIndex = default, uint* visibleMaskByIndex = default, int settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowCellPaddingY = default, float rowTextBaseline = default, float rowIndentOffsetX = default, int rowFlags = default, int lastRowFlags = default, int rowBgColorCounter = default, Span rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, float angledHeadersHeight = default, float angledHeadersSlope = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindow* outerWindow = default, ImGuiWindow* innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitter* drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVectorImGuiTableInstanceData instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVectorImGuiTableColumnSortSpecs sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, short sortSpecsCount = default, short columnsEnabledCount = default, short columnsEnabledFixedCount = default, short declColumnsCount = default, short angledHeadersCount = default, short hoveredColumnBody = default, short hoveredColumnBorder = default, short highlightColumnHeader = default, short autoFitSingleColumn = default, short resizedColumn = default, short lastResizedColumn = default, short heldHeaderColumn = default, short reorderColumn = default, short reorderColumnDir = default, short leftMostEnabledColumn = default, short rightMostEnabledColumn = default, short leftMostStretchedColumn = default, short rightMostStretchedColumn = default, short contextPopupColumn = default, short freezeRowsRequest = default, short freezeRowsCount = default, short freezeColumnsRequest = default, short freezeColumnsCount = default, short rowCellDataCurrent = default, ushort dummyDrawChannel = default, ushort bg2DrawChannelCurrent = default, ushort bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool isActiveIdAliveBeforeTable = default, bool isActiveIdInTable = default, bool hasScrollbarYCurr = default, bool hasScrollbarYPrev = default, bool memoryCompacted = default, bool hostSkipItems = default) + { + ID = id; + Flags = flags; + RawData = rawData; + TempData = tempData; + Columns = columns; + DisplayOrderToIndex = displayOrderToIndex; + RowCellData = rowCellData; + EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; + EnabledMaskByIndex = enabledMaskByIndex; + VisibleMaskByIndex = visibleMaskByIndex; + SettingsLoadedFlags = settingsLoadedFlags; + SettingsOffset = settingsOffset; + LastFrameActive = lastFrameActive; + ColumnsCount = columnsCount; + CurrentRow = currentRow; + CurrentColumn = currentColumn; + InstanceCurrent = instanceCurrent; + InstanceInteracted = instanceInteracted; + RowPosY1 = rowPosY1; + RowPosY2 = rowPosY2; + RowMinHeight = rowMinHeight; + RowCellPaddingY = rowCellPaddingY; + RowTextBaseline = rowTextBaseline; + RowIndentOffsetX = rowIndentOffsetX; + RowFlags = rowFlags; + LastRowFlags = lastRowFlags; + RowBgColorCounter = rowBgColorCounter; + if (rowBgColor != default) + { + RowBgColor_0 = rowBgColor[0]; + RowBgColor_1 = rowBgColor[1]; + } + BorderColorStrong = borderColorStrong; + BorderColorLight = borderColorLight; + BorderX1 = borderX1; + BorderX2 = borderX2; + HostIndentX = hostIndentX; + MinColumnWidth = minColumnWidth; + OuterPaddingX = outerPaddingX; + CellPaddingX = cellPaddingX; + CellSpacingX1 = cellSpacingX1; + CellSpacingX2 = cellSpacingX2; + InnerWidth = innerWidth; + ColumnsGivenWidth = columnsGivenWidth; + ColumnsAutoFitWidth = columnsAutoFitWidth; + ColumnsStretchSumWeights = columnsStretchSumWeights; + ResizedColumnNextWidth = resizedColumnNextWidth; + ResizeLockMinContentsX2 = resizeLockMinContentsX2; + RefScale = refScale; + AngledHeadersHeight = angledHeadersHeight; + AngledHeadersSlope = angledHeadersSlope; + OuterRect = outerRect; + InnerRect = innerRect; + WorkRect = workRect; + InnerClipRect = innerClipRect; + BgClipRect = bgClipRect; + Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; + Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; + HostClipRect = hostClipRect; + HostBackupInnerClipRect = hostBackupInnerClipRect; + OuterWindow = outerWindow; + InnerWindow = innerWindow; + ColumnsNames = columnsNames; + DrawSplitter = drawSplitter; + InstanceDataFirst = instanceDataFirst; + InstanceDataExtra = instanceDataExtra; + SortSpecsSingle = sortSpecsSingle; + SortSpecsMulti = sortSpecsMulti; + SortSpecs = sortSpecs; + SortSpecsCount = sortSpecsCount; + ColumnsEnabledCount = columnsEnabledCount; + ColumnsEnabledFixedCount = columnsEnabledFixedCount; + DeclColumnsCount = declColumnsCount; + AngledHeadersCount = angledHeadersCount; + HoveredColumnBody = hoveredColumnBody; + HoveredColumnBorder = hoveredColumnBorder; + HighlightColumnHeader = highlightColumnHeader; + AutoFitSingleColumn = autoFitSingleColumn; + ResizedColumn = resizedColumn; + LastResizedColumn = lastResizedColumn; + HeldHeaderColumn = heldHeaderColumn; + ReorderColumn = reorderColumn; + ReorderColumnDir = reorderColumnDir; + LeftMostEnabledColumn = leftMostEnabledColumn; + RightMostEnabledColumn = rightMostEnabledColumn; + LeftMostStretchedColumn = leftMostStretchedColumn; + RightMostStretchedColumn = rightMostStretchedColumn; + ContextPopupColumn = contextPopupColumn; + FreezeRowsRequest = freezeRowsRequest; + FreezeRowsCount = freezeRowsCount; + FreezeColumnsRequest = freezeColumnsRequest; + FreezeColumnsCount = freezeColumnsCount; + RowCellDataCurrent = rowCellDataCurrent; + DummyDrawChannel = dummyDrawChannel; + Bg2DrawChannelCurrent = bg2DrawChannelCurrent; + Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; + IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; + IsInsideRow = isInsideRow ? (byte)1 : (byte)0; + IsInitializing = isInitializing ? (byte)1 : (byte)0; + IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; + IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; + IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; + IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; + IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; + IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; + IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; + IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; + IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; + IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; + IsActiveIdAliveBeforeTable = isActiveIdAliveBeforeTable ? (byte)1 : (byte)0; + IsActiveIdInTable = isActiveIdInTable ? (byte)1 : (byte)0; + HasScrollbarYCurr = hasScrollbarYCurr ? (byte)1 : (byte)0; + HasScrollbarYPrev = hasScrollbarYPrev ? (byte)1 : (byte)0; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableTempData + { + /// + /// To be documented. + /// + public int TableIndex; + + /// + /// To be documented. + /// + public float LastTimeActive; + + /// + /// To be documented. + /// + public float AngledheadersExtraWidth; + + /// + /// To be documented. + /// + public Vector2 UserOuterSize; + + /// + /// To be documented. + /// + public ImDrawListSplitter DrawSplitter; + + /// + /// To be documented. + /// + public ImRect HostBackupWorkRect; + + /// + /// To be documented. + /// + public ImRect HostBackupParentWorkRect; + + /// + /// To be documented. + /// + public Vector2 HostBackupPrevLineSize; + + /// + /// To be documented. + /// + public Vector2 HostBackupCurrLineSize; + + /// + /// To be documented. + /// + public Vector2 HostBackupCursorMaxPos; + + /// + /// To be documented. + /// + public ImVec1 HostBackupColumnsOffset; + + /// + /// To be documented. + /// + public float HostBackupItemWidth; + + /// + /// To be documented. + /// + public int HostBackupItemWidthStackSize; + + + /// /// To be documented. /// public unsafe ImGuiTableTempData(int tableIndex = default, float lastTimeActive = default, float angledheadersExtraWidth = default, Vector2 userOuterSize = default, ImDrawListSplitter drawSplitter = default, ImRect hostBackupWorkRect = default, ImRect hostBackupParentWorkRect = default, Vector2 hostBackupPrevLineSize = default, Vector2 hostBackupCurrLineSize = default, Vector2 hostBackupCursorMaxPos = default, ImVec1 hostBackupColumnsOffset = default, float hostBackupItemWidth = default, int hostBackupItemWidthStackSize = default) + { + TableIndex = tableIndex; + LastTimeActive = lastTimeActive; + AngledheadersExtraWidth = angledheadersExtraWidth; + UserOuterSize = userOuterSize; + DrawSplitter = drawSplitter; + HostBackupWorkRect = hostBackupWorkRect; + HostBackupParentWorkRect = hostBackupParentWorkRect; + HostBackupPrevLineSize = hostBackupPrevLineSize; + HostBackupCurrLineSize = hostBackupCurrLineSize; + HostBackupCursorMaxPos = hostBackupCursorMaxPos; + HostBackupColumnsOffset = hostBackupColumnsOffset; + HostBackupItemWidth = hostBackupItemWidth; + HostBackupItemWidthStackSize = hostBackupItemWidthStackSize; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImSpanImGuiTableColumn + { + /// + /// To be documented. + /// + public unsafe ImGuiTableColumn* Data; + + /// + /// To be documented. + /// + public unsafe ImGuiTableColumn* DataEnd; + + + /// /// To be documented. /// public unsafe ImSpanImGuiTableColumn(ImGuiTableColumn* data = default, ImGuiTableColumn* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumn + { + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public float WidthGiven; + + /// + /// To be documented. + /// + public float MinX; + + /// + /// To be documented. + /// + public float MaxX; + + /// + /// To be documented. + /// + public float WidthRequest; + + /// + /// To be documented. + /// + public float WidthAuto; + + /// + /// To be documented. + /// + public float StretchWeight; + + /// + /// To be documented. + /// + public float InitStretchWeightOrWidth; + + /// + /// To be documented. + /// + public ImRect ClipRect; + + /// + /// To be documented. + /// + public uint UserID; + + /// + /// To be documented. + /// + public float WorkMinX; + + /// + /// To be documented. + /// + public float WorkMaxX; + + /// + /// To be documented. + /// + public float ItemWidth; + + /// + /// To be documented. + /// + public float ContentMaxXFrozen; + + /// + /// To be documented. + /// + public float ContentMaxXUnfrozen; + + /// + /// To be documented. + /// + public float ContentMaxXHeadersUsed; + + /// + /// To be documented. + /// + public float ContentMaxXHeadersIdeal; + + /// + /// To be documented. + /// + public short NameOffset; + + /// + /// To be documented. + /// + public short DisplayOrder; + + /// + /// To be documented. + /// + public short IndexWithinEnabledSet; + + /// + /// To be documented. + /// + public short PrevEnabledColumn; + + /// + /// To be documented. + /// + public short NextEnabledColumn; + + /// + /// To be documented. + /// + public short SortOrder; + + /// + /// To be documented. + /// + public ushort DrawChannelCurrent; + + /// + /// To be documented. + /// + public ushort DrawChannelFrozen; + + /// + /// To be documented. + /// + public ushort DrawChannelUnfrozen; + + /// + /// To be documented. + /// + public byte IsEnabled; + + /// + /// To be documented. + /// + public byte IsUserEnabled; + + /// + /// To be documented. + /// + public byte IsUserEnabledNextFrame; + + /// + /// To be documented. + /// + public byte IsVisibleX; + + /// + /// To be documented. + /// + public byte IsVisibleY; + + /// + /// To be documented. + /// + public byte IsRequestOutput; + + /// + /// To be documented. + /// + public byte IsSkipItems; + + /// + /// To be documented. + /// + public byte IsPreserveWidthAuto; + + /// + /// To be documented. + /// + public byte NavLayerCurrent; + + /// + /// To be documented. + /// + public byte AutoFitQueue; + + /// + /// To be documented. + /// + public byte CannotSkipItemsQueue; + + /// + /// To be documented. + /// + public byte SortDirection; + + /// + /// To be documented. + /// + public byte SortDirectionsAvailCount; + + /// + /// To be documented. + /// + public byte SortDirectionsAvailMask; + + /// + /// To be documented. + /// + public byte SortDirectionsAvailList; + + + /// /// To be documented. /// public unsafe ImGuiTableColumn(int flags = default, float widthGiven = default, float minX = default, float maxX = default, float widthRequest = default, float widthAuto = default, float stretchWeight = default, float initStretchWeightOrWidth = default, ImRect clipRect = default, uint userId = default, float workMinX = default, float workMaxX = default, float itemWidth = default, float contentMaxXFrozen = default, float contentMaxXUnfrozen = default, float contentMaxXHeadersUsed = default, float contentMaxXHeadersIdeal = default, short nameOffset = default, short displayOrder = default, short indexWithinEnabledSet = default, short prevEnabledColumn = default, short nextEnabledColumn = default, short sortOrder = default, ushort drawChannelCurrent = default, ushort drawChannelFrozen = default, ushort drawChannelUnfrozen = default, bool isEnabled = default, bool isUserEnabled = default, bool isUserEnabledNextFrame = default, bool isVisibleX = default, bool isVisibleY = default, bool isRequestOutput = default, bool isSkipItems = default, bool isPreserveWidthAuto = default, byte navLayerCurrent = default, byte autoFitQueue = default, byte cannotSkipItemsQueue = default, byte sortDirection = default, byte sortDirectionsAvailCount = default, byte sortDirectionsAvailMask = default, byte sortDirectionsAvailList = default) + { + Flags = flags; + WidthGiven = widthGiven; + MinX = minX; + MaxX = maxX; + WidthRequest = widthRequest; + WidthAuto = widthAuto; + StretchWeight = stretchWeight; + InitStretchWeightOrWidth = initStretchWeightOrWidth; + ClipRect = clipRect; + UserID = userId; + WorkMinX = workMinX; + WorkMaxX = workMaxX; + ItemWidth = itemWidth; + ContentMaxXFrozen = contentMaxXFrozen; + ContentMaxXUnfrozen = contentMaxXUnfrozen; + ContentMaxXHeadersUsed = contentMaxXHeadersUsed; + ContentMaxXHeadersIdeal = contentMaxXHeadersIdeal; + NameOffset = nameOffset; + DisplayOrder = displayOrder; + IndexWithinEnabledSet = indexWithinEnabledSet; + PrevEnabledColumn = prevEnabledColumn; + NextEnabledColumn = nextEnabledColumn; + SortOrder = sortOrder; + DrawChannelCurrent = drawChannelCurrent; + DrawChannelFrozen = drawChannelFrozen; + DrawChannelUnfrozen = drawChannelUnfrozen; + IsEnabled = isEnabled ? (byte)1 : (byte)0; + IsUserEnabled = isUserEnabled ? (byte)1 : (byte)0; + IsUserEnabledNextFrame = isUserEnabledNextFrame ? (byte)1 : (byte)0; + IsVisibleX = isVisibleX ? (byte)1 : (byte)0; + IsVisibleY = isVisibleY ? (byte)1 : (byte)0; + IsRequestOutput = isRequestOutput ? (byte)1 : (byte)0; + IsSkipItems = isSkipItems ? (byte)1 : (byte)0; + IsPreserveWidthAuto = isPreserveWidthAuto ? (byte)1 : (byte)0; + NavLayerCurrent = navLayerCurrent; + AutoFitQueue = autoFitQueue; + CannotSkipItemsQueue = cannotSkipItemsQueue; + SortDirection = sortDirection; + SortDirectionsAvailCount = sortDirectionsAvailCount; + SortDirectionsAvailMask = sortDirectionsAvailMask; + SortDirectionsAvailList = sortDirectionsAvailList; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImSpanImGuiTableColumnIdx + { + /// + /// To be documented. + /// + public unsafe short* Data; + + /// + /// To be documented. + /// + public unsafe short* DataEnd; + + + /// /// To be documented. /// public unsafe ImSpanImGuiTableColumnIdx(short* data = default, short* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImSpanImGuiTableCellData + { + /// + /// To be documented. + /// + public unsafe ImGuiTableCellData* Data; + + /// + /// To be documented. + /// + public unsafe ImGuiTableCellData* DataEnd; + + + /// /// To be documented. /// public unsafe ImSpanImGuiTableCellData(ImGuiTableCellData* data = default, ImGuiTableCellData* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableCellData + { + /// + /// To be documented. + /// + public uint BgColor; + + /// + /// To be documented. + /// + public short Column; + + + /// /// To be documented. /// public unsafe ImGuiTableCellData(uint bgColor = default, short column = default) + { + BgColor = bgColor; + Column = column; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableInstanceData + { + /// + /// To be documented. + /// + public uint TableInstanceID; + + /// + /// To be documented. + /// + public float LastOuterHeight; + + /// + /// To be documented. + /// + public float LastTopHeadersRowHeight; + + /// + /// To be documented. + /// + public float LastFrozenHeight; + + /// + /// To be documented. + /// + public int HoveredRowLast; + + /// + /// To be documented. + /// + public int HoveredRowNext; + + + /// /// To be documented. /// public unsafe ImGuiTableInstanceData(uint tableInstanceId = default, float lastOuterHeight = default, float lastTopHeadersRowHeight = default, float lastFrozenHeight = default, int hoveredRowLast = default, int hoveredRowNext = default) + { + TableInstanceID = tableInstanceId; + LastOuterHeight = lastOuterHeight; + LastTopHeadersRowHeight = lastTopHeadersRowHeight; + LastFrozenHeight = lastFrozenHeight; + HoveredRowLast = hoveredRowLast; + HoveredRowNext = hoveredRowNext; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiTableInstanceData + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiTableInstanceData* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiTableInstanceData(int size = default, int capacity = default, ImGuiTableInstanceData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumnSortSpecs + { + /// + /// To be documented. + /// + public uint ColumnUserID; + + /// + /// To be documented. + /// + public short ColumnIndex; + + /// + /// To be documented. + /// + public short SortOrder; + + /// + /// To be documented. + /// + public int SortDirection; + + + + /// /// To be documented. /// public unsafe ImGuiTableColumnSortSpecs(uint columnUserId = default, short columnIndex = default, short sortOrder = default, int sortDirection = default) + { + ColumnUserID = columnUserId; + ColumnIndex = columnIndex; + SortOrder = sortOrder; + SortDirection = sortDirection; + } + + + public unsafe void Destroy() + { + fixed (ImGuiTableColumnSortSpecs* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiTableColumnSortSpecs + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiTableColumnSortSpecs* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiTableColumnSortSpecs(int size = default, int capacity = default, ImGuiTableColumnSortSpecs* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableSortSpecs + { + /// + /// To be documented. + /// + public unsafe ImGuiTableColumnSortSpecs* Specs; + + /// + /// To be documented. + /// + public int SpecsCount; + + /// + /// To be documented. + /// + public byte SpecsDirty; + + + + /// /// To be documented. /// public unsafe ImGuiTableSortSpecs(ImGuiTableColumnSortSpecs* specs = default, int specsCount = default, bool specsDirty = default) + { + Specs = specs; + SpecsCount = specsCount; + SpecsDirty = specsDirty ? (byte)1 : (byte)0; + } + + + public unsafe void Destroy() + { + fixed (ImGuiTableSortSpecs* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiTableTempData + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiTableTempData* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiTableTempData(int size = default, int capacity = default, ImGuiTableTempData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPoolImGuiTable + { + /// + /// To be documented. + /// + public ImVectorImGuiTable Buf; + + /// + /// To be documented. + /// + public ImGuiStorage Map; + + /// + /// To be documented. + /// + public int FreeIdx; + + /// + /// To be documented. + /// + public int AliveCount; + + + /// /// To be documented. /// public unsafe ImPoolImGuiTable(ImVectorImGuiTable buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiTable + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiTable* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiTable(int size = default, int capacity = default, ImGuiTable* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImPoolImGuiTabBar + { + /// + /// To be documented. + /// + public ImVectorImGuiTabBar Buf; + + /// + /// To be documented. + /// + public ImGuiStorage Map; + + /// + /// To be documented. + /// + public int FreeIdx; + + /// + /// To be documented. + /// + public int AliveCount; + + + /// /// To be documented. /// public unsafe ImPoolImGuiTabBar(ImVectorImGuiTabBar buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiTabBar + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiTabBar* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiTabBar(int size = default, int capacity = default, ImGuiTabBar* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiPtrOrIndex + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiPtrOrIndex* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiPtrOrIndex(int size = default, int capacity = default, ImGuiPtrOrIndex* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiPtrOrIndex + { + /// + /// To be documented. + /// + public unsafe void* Ptr; + + /// + /// To be documented. + /// + public int Index; + + + /// /// To be documented. /// public unsafe ImGuiPtrOrIndex(void* ptr = default, int index = default) + { + Ptr = ptr; + Index = index; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiShrinkWidthItem + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiShrinkWidthItem* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiShrinkWidthItem(int size = default, int capacity = default, ImGuiShrinkWidthItem* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiShrinkWidthItem + { + /// + /// To be documented. + /// + public int Index; + + /// + /// To be documented. + /// + public float Width; + + /// + /// To be documented. + /// + public float InitialWidth; + + + /// /// To be documented. /// public unsafe ImGuiShrinkWidthItem(int index = default, float width = default, float initialWidth = default) + { + Index = index; + Width = width; + InitialWidth = initialWidth; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputTextState + { + /// + /// To be documented. + /// + public unsafe ImGuiContext* Ctx; + + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int CurLenW; + + /// + /// To be documented. + /// + public int CurLenA; + + /// + /// To be documented. + /// + public ImVectorImWchar TextW; + + /// + /// To be documented. + /// + public ImVectorChar TextA; + + /// + /// To be documented. + /// + public ImVectorChar InitialTextA; + + /// + /// To be documented. + /// + public byte TextAIsValid; + + /// + /// To be documented. + /// + public int BufCapacityA; + + /// + /// To be documented. + /// + public float ScrollX; + + /// + /// To be documented. + /// + public STBTexteditState Stb; + + /// + /// To be documented. + /// + public float CursorAnim; + + /// + /// To be documented. + /// + public byte CursorFollow; + + /// + /// To be documented. + /// + public byte SelectedAllMouseLock; + + /// + /// To be documented. + /// + public byte Edited; + + /// + /// To be documented. + /// + public int Flags; + + + /// /// To be documented. /// public unsafe ImGuiInputTextState(ImGuiContext* ctx = default, uint id = default, int curLenW = default, int curLenA = default, ImVectorImWchar textW = default, ImVectorChar textA = default, ImVectorChar initialTextA = default, bool textAIsValid = default, int bufCapacityA = default, float scrollX = default, STBTexteditState stb = default, float cursorAnim = default, bool cursorFollow = default, bool selectedAllMouseLock = default, bool edited = default, int flags = default) + { + Ctx = ctx; + ID = id; + CurLenW = curLenW; + CurLenA = curLenA; + TextW = textW; + TextA = textA; + InitialTextA = initialTextA; + TextAIsValid = textAIsValid ? (byte)1 : (byte)0; + BufCapacityA = bufCapacityA; + ScrollX = scrollX; + Stb = stb; + CursorAnim = cursorAnim; + CursorFollow = cursorFollow ? (byte)1 : (byte)0; + SelectedAllMouseLock = selectedAllMouseLock ? (byte)1 : (byte)0; + Edited = edited ? (byte)1 : (byte)0; + Flags = flags; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct STBTexteditState + { + /// + /// To be documented. + /// + public int Cursor; + + /// + /// To be documented. + /// + public int SelectStart; + + /// + /// To be documented. + /// + public int SelectEnd; + + /// + /// To be documented. + /// + public byte InsertMode; + + /// + /// To be documented. + /// + public int RowCountPerPage; + + /// + /// To be documented. + /// + public byte CursorAtEndOfLine; + + /// + /// To be documented. + /// + public byte Initialized; + + /// + /// To be documented. + /// + public byte HasPreferredX; + + /// + /// To be documented. + /// + public byte SingleLine; + + /// + /// To be documented. + /// + public byte Padding1; + + /// + /// To be documented. + /// + public byte Padding2; + + /// + /// To be documented. + /// + public byte Padding3; + + /// + /// To be documented. + /// + public float PreferredX; + + /// + /// To be documented. + /// + public StbUndoState Undostate; + + + /// /// To be documented. /// public unsafe STBTexteditState(int cursor = default, int selectStart = default, int selectEnd = default, byte insertMode = default, int rowCountPerPage = default, byte cursorAtEndOfLine = default, byte initialized = default, byte hasPreferredX = default, byte singleLine = default, byte padding1 = default, byte padding2 = default, byte padding3 = default, float preferredX = default, StbUndoState undostate = default) + { + Cursor = cursor; + SelectStart = selectStart; + SelectEnd = selectEnd; + InsertMode = insertMode; + RowCountPerPage = rowCountPerPage; + CursorAtEndOfLine = cursorAtEndOfLine; + Initialized = initialized; + HasPreferredX = hasPreferredX; + SingleLine = singleLine; + Padding1 = padding1; + Padding2 = padding2; + Padding3 = padding3; + PreferredX = preferredX; + Undostate = undostate; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct StbUndoState + { + /// + /// To be documented. + /// + public StbUndoRecord UndoRec_0; + public StbUndoRecord UndoRec_1; + public StbUndoRecord UndoRec_2; + public StbUndoRecord UndoRec_3; + public StbUndoRecord UndoRec_4; + public StbUndoRecord UndoRec_5; + public StbUndoRecord UndoRec_6; + public StbUndoRecord UndoRec_7; + public StbUndoRecord UndoRec_8; + public StbUndoRecord UndoRec_9; + public StbUndoRecord UndoRec_10; + public StbUndoRecord UndoRec_11; + public StbUndoRecord UndoRec_12; + public StbUndoRecord UndoRec_13; + public StbUndoRecord UndoRec_14; + public StbUndoRecord UndoRec_15; + public StbUndoRecord UndoRec_16; + public StbUndoRecord UndoRec_17; + public StbUndoRecord UndoRec_18; + public StbUndoRecord UndoRec_19; + public StbUndoRecord UndoRec_20; + public StbUndoRecord UndoRec_21; + public StbUndoRecord UndoRec_22; + public StbUndoRecord UndoRec_23; + public StbUndoRecord UndoRec_24; + public StbUndoRecord UndoRec_25; + public StbUndoRecord UndoRec_26; + public StbUndoRecord UndoRec_27; + public StbUndoRecord UndoRec_28; + public StbUndoRecord UndoRec_29; + public StbUndoRecord UndoRec_30; + public StbUndoRecord UndoRec_31; + public StbUndoRecord UndoRec_32; + public StbUndoRecord UndoRec_33; + public StbUndoRecord UndoRec_34; + public StbUndoRecord UndoRec_35; + public StbUndoRecord UndoRec_36; + public StbUndoRecord UndoRec_37; + public StbUndoRecord UndoRec_38; + public StbUndoRecord UndoRec_39; + public StbUndoRecord UndoRec_40; + public StbUndoRecord UndoRec_41; + public StbUndoRecord UndoRec_42; + public StbUndoRecord UndoRec_43; + public StbUndoRecord UndoRec_44; + public StbUndoRecord UndoRec_45; + public StbUndoRecord UndoRec_46; + public StbUndoRecord UndoRec_47; + public StbUndoRecord UndoRec_48; + public StbUndoRecord UndoRec_49; + public StbUndoRecord UndoRec_50; + public StbUndoRecord UndoRec_51; + public StbUndoRecord UndoRec_52; + public StbUndoRecord UndoRec_53; + public StbUndoRecord UndoRec_54; + public StbUndoRecord UndoRec_55; + public StbUndoRecord UndoRec_56; + public StbUndoRecord UndoRec_57; + public StbUndoRecord UndoRec_58; + public StbUndoRecord UndoRec_59; + public StbUndoRecord UndoRec_60; + public StbUndoRecord UndoRec_61; + public StbUndoRecord UndoRec_62; + public StbUndoRecord UndoRec_63; + public StbUndoRecord UndoRec_64; + public StbUndoRecord UndoRec_65; + public StbUndoRecord UndoRec_66; + public StbUndoRecord UndoRec_67; + public StbUndoRecord UndoRec_68; + public StbUndoRecord UndoRec_69; + public StbUndoRecord UndoRec_70; + public StbUndoRecord UndoRec_71; + public StbUndoRecord UndoRec_72; + public StbUndoRecord UndoRec_73; + public StbUndoRecord UndoRec_74; + public StbUndoRecord UndoRec_75; + public StbUndoRecord UndoRec_76; + public StbUndoRecord UndoRec_77; + public StbUndoRecord UndoRec_78; + public StbUndoRecord UndoRec_79; + public StbUndoRecord UndoRec_80; + public StbUndoRecord UndoRec_81; + public StbUndoRecord UndoRec_82; + public StbUndoRecord UndoRec_83; + public StbUndoRecord UndoRec_84; + public StbUndoRecord UndoRec_85; + public StbUndoRecord UndoRec_86; + public StbUndoRecord UndoRec_87; + public StbUndoRecord UndoRec_88; + public StbUndoRecord UndoRec_89; + public StbUndoRecord UndoRec_90; + public StbUndoRecord UndoRec_91; + public StbUndoRecord UndoRec_92; + public StbUndoRecord UndoRec_93; + public StbUndoRecord UndoRec_94; + public StbUndoRecord UndoRec_95; + public StbUndoRecord UndoRec_96; + public StbUndoRecord UndoRec_97; + public StbUndoRecord UndoRec_98; + + /// + /// To be documented. + /// + public ushort UndoChar_0; + public ushort UndoChar_1; + public ushort UndoChar_2; + public ushort UndoChar_3; + public ushort UndoChar_4; + public ushort UndoChar_5; + public ushort UndoChar_6; + public ushort UndoChar_7; + public ushort UndoChar_8; + public ushort UndoChar_9; + public ushort UndoChar_10; + public ushort UndoChar_11; + public ushort UndoChar_12; + public ushort UndoChar_13; + public ushort UndoChar_14; + public ushort UndoChar_15; + public ushort UndoChar_16; + public ushort UndoChar_17; + public ushort UndoChar_18; + public ushort UndoChar_19; + public ushort UndoChar_20; + public ushort UndoChar_21; + public ushort UndoChar_22; + public ushort UndoChar_23; + public ushort UndoChar_24; + public ushort UndoChar_25; + public ushort UndoChar_26; + public ushort UndoChar_27; + public ushort UndoChar_28; + public ushort UndoChar_29; + public ushort UndoChar_30; + public ushort UndoChar_31; + public ushort UndoChar_32; + public ushort UndoChar_33; + public ushort UndoChar_34; + public ushort UndoChar_35; + public ushort UndoChar_36; + public ushort UndoChar_37; + public ushort UndoChar_38; + public ushort UndoChar_39; + public ushort UndoChar_40; + public ushort UndoChar_41; + public ushort UndoChar_42; + public ushort UndoChar_43; + public ushort UndoChar_44; + public ushort UndoChar_45; + public ushort UndoChar_46; + public ushort UndoChar_47; + public ushort UndoChar_48; + public ushort UndoChar_49; + public ushort UndoChar_50; + public ushort UndoChar_51; + public ushort UndoChar_52; + public ushort UndoChar_53; + public ushort UndoChar_54; + public ushort UndoChar_55; + public ushort UndoChar_56; + public ushort UndoChar_57; + public ushort UndoChar_58; + public ushort UndoChar_59; + public ushort UndoChar_60; + public ushort UndoChar_61; + public ushort UndoChar_62; + public ushort UndoChar_63; + public ushort UndoChar_64; + public ushort UndoChar_65; + public ushort UndoChar_66; + public ushort UndoChar_67; + public ushort UndoChar_68; + public ushort UndoChar_69; + public ushort UndoChar_70; + public ushort UndoChar_71; + public ushort UndoChar_72; + public ushort UndoChar_73; + public ushort UndoChar_74; + public ushort UndoChar_75; + public ushort UndoChar_76; + public ushort UndoChar_77; + public ushort UndoChar_78; + public ushort UndoChar_79; + public ushort UndoChar_80; + public ushort UndoChar_81; + public ushort UndoChar_82; + public ushort UndoChar_83; + public ushort UndoChar_84; + public ushort UndoChar_85; + public ushort UndoChar_86; + public ushort UndoChar_87; + public ushort UndoChar_88; + public ushort UndoChar_89; + public ushort UndoChar_90; + public ushort UndoChar_91; + public ushort UndoChar_92; + public ushort UndoChar_93; + public ushort UndoChar_94; + public ushort UndoChar_95; + public ushort UndoChar_96; + public ushort UndoChar_97; + public ushort UndoChar_98; + public ushort UndoChar_99; + public ushort UndoChar_100; + public ushort UndoChar_101; + public ushort UndoChar_102; + public ushort UndoChar_103; + public ushort UndoChar_104; + public ushort UndoChar_105; + public ushort UndoChar_106; + public ushort UndoChar_107; + public ushort UndoChar_108; + public ushort UndoChar_109; + public ushort UndoChar_110; + public ushort UndoChar_111; + public ushort UndoChar_112; + public ushort UndoChar_113; + public ushort UndoChar_114; + public ushort UndoChar_115; + public ushort UndoChar_116; + public ushort UndoChar_117; + public ushort UndoChar_118; + public ushort UndoChar_119; + public ushort UndoChar_120; + public ushort UndoChar_121; + public ushort UndoChar_122; + public ushort UndoChar_123; + public ushort UndoChar_124; + public ushort UndoChar_125; + public ushort UndoChar_126; + public ushort UndoChar_127; + public ushort UndoChar_128; + public ushort UndoChar_129; + public ushort UndoChar_130; + public ushort UndoChar_131; + public ushort UndoChar_132; + public ushort UndoChar_133; + public ushort UndoChar_134; + public ushort UndoChar_135; + public ushort UndoChar_136; + public ushort UndoChar_137; + public ushort UndoChar_138; + public ushort UndoChar_139; + public ushort UndoChar_140; + public ushort UndoChar_141; + public ushort UndoChar_142; + public ushort UndoChar_143; + public ushort UndoChar_144; + public ushort UndoChar_145; + public ushort UndoChar_146; + public ushort UndoChar_147; + public ushort UndoChar_148; + public ushort UndoChar_149; + public ushort UndoChar_150; + public ushort UndoChar_151; + public ushort UndoChar_152; + public ushort UndoChar_153; + public ushort UndoChar_154; + public ushort UndoChar_155; + public ushort UndoChar_156; + public ushort UndoChar_157; + public ushort UndoChar_158; + public ushort UndoChar_159; + public ushort UndoChar_160; + public ushort UndoChar_161; + public ushort UndoChar_162; + public ushort UndoChar_163; + public ushort UndoChar_164; + public ushort UndoChar_165; + public ushort UndoChar_166; + public ushort UndoChar_167; + public ushort UndoChar_168; + public ushort UndoChar_169; + public ushort UndoChar_170; + public ushort UndoChar_171; + public ushort UndoChar_172; + public ushort UndoChar_173; + public ushort UndoChar_174; + public ushort UndoChar_175; + public ushort UndoChar_176; + public ushort UndoChar_177; + public ushort UndoChar_178; + public ushort UndoChar_179; + public ushort UndoChar_180; + public ushort UndoChar_181; + public ushort UndoChar_182; + public ushort UndoChar_183; + public ushort UndoChar_184; + public ushort UndoChar_185; + public ushort UndoChar_186; + public ushort UndoChar_187; + public ushort UndoChar_188; + public ushort UndoChar_189; + public ushort UndoChar_190; + public ushort UndoChar_191; + public ushort UndoChar_192; + public ushort UndoChar_193; + public ushort UndoChar_194; + public ushort UndoChar_195; + public ushort UndoChar_196; + public ushort UndoChar_197; + public ushort UndoChar_198; + public ushort UndoChar_199; + public ushort UndoChar_200; + public ushort UndoChar_201; + public ushort UndoChar_202; + public ushort UndoChar_203; + public ushort UndoChar_204; + public ushort UndoChar_205; + public ushort UndoChar_206; + public ushort UndoChar_207; + public ushort UndoChar_208; + public ushort UndoChar_209; + public ushort UndoChar_210; + public ushort UndoChar_211; + public ushort UndoChar_212; + public ushort UndoChar_213; + public ushort UndoChar_214; + public ushort UndoChar_215; + public ushort UndoChar_216; + public ushort UndoChar_217; + public ushort UndoChar_218; + public ushort UndoChar_219; + public ushort UndoChar_220; + public ushort UndoChar_221; + public ushort UndoChar_222; + public ushort UndoChar_223; + public ushort UndoChar_224; + public ushort UndoChar_225; + public ushort UndoChar_226; + public ushort UndoChar_227; + public ushort UndoChar_228; + public ushort UndoChar_229; + public ushort UndoChar_230; + public ushort UndoChar_231; + public ushort UndoChar_232; + public ushort UndoChar_233; + public ushort UndoChar_234; + public ushort UndoChar_235; + public ushort UndoChar_236; + public ushort UndoChar_237; + public ushort UndoChar_238; + public ushort UndoChar_239; + public ushort UndoChar_240; + public ushort UndoChar_241; + public ushort UndoChar_242; + public ushort UndoChar_243; + public ushort UndoChar_244; + public ushort UndoChar_245; + public ushort UndoChar_246; + public ushort UndoChar_247; + public ushort UndoChar_248; + public ushort UndoChar_249; + public ushort UndoChar_250; + public ushort UndoChar_251; + public ushort UndoChar_252; + public ushort UndoChar_253; + public ushort UndoChar_254; + public ushort UndoChar_255; + public ushort UndoChar_256; + public ushort UndoChar_257; + public ushort UndoChar_258; + public ushort UndoChar_259; + public ushort UndoChar_260; + public ushort UndoChar_261; + public ushort UndoChar_262; + public ushort UndoChar_263; + public ushort UndoChar_264; + public ushort UndoChar_265; + public ushort UndoChar_266; + public ushort UndoChar_267; + public ushort UndoChar_268; + public ushort UndoChar_269; + public ushort UndoChar_270; + public ushort UndoChar_271; + public ushort UndoChar_272; + public ushort UndoChar_273; + public ushort UndoChar_274; + public ushort UndoChar_275; + public ushort UndoChar_276; + public ushort UndoChar_277; + public ushort UndoChar_278; + public ushort UndoChar_279; + public ushort UndoChar_280; + public ushort UndoChar_281; + public ushort UndoChar_282; + public ushort UndoChar_283; + public ushort UndoChar_284; + public ushort UndoChar_285; + public ushort UndoChar_286; + public ushort UndoChar_287; + public ushort UndoChar_288; + public ushort UndoChar_289; + public ushort UndoChar_290; + public ushort UndoChar_291; + public ushort UndoChar_292; + public ushort UndoChar_293; + public ushort UndoChar_294; + public ushort UndoChar_295; + public ushort UndoChar_296; + public ushort UndoChar_297; + public ushort UndoChar_298; + public ushort UndoChar_299; + public ushort UndoChar_300; + public ushort UndoChar_301; + public ushort UndoChar_302; + public ushort UndoChar_303; + public ushort UndoChar_304; + public ushort UndoChar_305; + public ushort UndoChar_306; + public ushort UndoChar_307; + public ushort UndoChar_308; + public ushort UndoChar_309; + public ushort UndoChar_310; + public ushort UndoChar_311; + public ushort UndoChar_312; + public ushort UndoChar_313; + public ushort UndoChar_314; + public ushort UndoChar_315; + public ushort UndoChar_316; + public ushort UndoChar_317; + public ushort UndoChar_318; + public ushort UndoChar_319; + public ushort UndoChar_320; + public ushort UndoChar_321; + public ushort UndoChar_322; + public ushort UndoChar_323; + public ushort UndoChar_324; + public ushort UndoChar_325; + public ushort UndoChar_326; + public ushort UndoChar_327; + public ushort UndoChar_328; + public ushort UndoChar_329; + public ushort UndoChar_330; + public ushort UndoChar_331; + public ushort UndoChar_332; + public ushort UndoChar_333; + public ushort UndoChar_334; + public ushort UndoChar_335; + public ushort UndoChar_336; + public ushort UndoChar_337; + public ushort UndoChar_338; + public ushort UndoChar_339; + public ushort UndoChar_340; + public ushort UndoChar_341; + public ushort UndoChar_342; + public ushort UndoChar_343; + public ushort UndoChar_344; + public ushort UndoChar_345; + public ushort UndoChar_346; + public ushort UndoChar_347; + public ushort UndoChar_348; + public ushort UndoChar_349; + public ushort UndoChar_350; + public ushort UndoChar_351; + public ushort UndoChar_352; + public ushort UndoChar_353; + public ushort UndoChar_354; + public ushort UndoChar_355; + public ushort UndoChar_356; + public ushort UndoChar_357; + public ushort UndoChar_358; + public ushort UndoChar_359; + public ushort UndoChar_360; + public ushort UndoChar_361; + public ushort UndoChar_362; + public ushort UndoChar_363; + public ushort UndoChar_364; + public ushort UndoChar_365; + public ushort UndoChar_366; + public ushort UndoChar_367; + public ushort UndoChar_368; + public ushort UndoChar_369; + public ushort UndoChar_370; + public ushort UndoChar_371; + public ushort UndoChar_372; + public ushort UndoChar_373; + public ushort UndoChar_374; + public ushort UndoChar_375; + public ushort UndoChar_376; + public ushort UndoChar_377; + public ushort UndoChar_378; + public ushort UndoChar_379; + public ushort UndoChar_380; + public ushort UndoChar_381; + public ushort UndoChar_382; + public ushort UndoChar_383; + public ushort UndoChar_384; + public ushort UndoChar_385; + public ushort UndoChar_386; + public ushort UndoChar_387; + public ushort UndoChar_388; + public ushort UndoChar_389; + public ushort UndoChar_390; + public ushort UndoChar_391; + public ushort UndoChar_392; + public ushort UndoChar_393; + public ushort UndoChar_394; + public ushort UndoChar_395; + public ushort UndoChar_396; + public ushort UndoChar_397; + public ushort UndoChar_398; + public ushort UndoChar_399; + public ushort UndoChar_400; + public ushort UndoChar_401; + public ushort UndoChar_402; + public ushort UndoChar_403; + public ushort UndoChar_404; + public ushort UndoChar_405; + public ushort UndoChar_406; + public ushort UndoChar_407; + public ushort UndoChar_408; + public ushort UndoChar_409; + public ushort UndoChar_410; + public ushort UndoChar_411; + public ushort UndoChar_412; + public ushort UndoChar_413; + public ushort UndoChar_414; + public ushort UndoChar_415; + public ushort UndoChar_416; + public ushort UndoChar_417; + public ushort UndoChar_418; + public ushort UndoChar_419; + public ushort UndoChar_420; + public ushort UndoChar_421; + public ushort UndoChar_422; + public ushort UndoChar_423; + public ushort UndoChar_424; + public ushort UndoChar_425; + public ushort UndoChar_426; + public ushort UndoChar_427; + public ushort UndoChar_428; + public ushort UndoChar_429; + public ushort UndoChar_430; + public ushort UndoChar_431; + public ushort UndoChar_432; + public ushort UndoChar_433; + public ushort UndoChar_434; + public ushort UndoChar_435; + public ushort UndoChar_436; + public ushort UndoChar_437; + public ushort UndoChar_438; + public ushort UndoChar_439; + public ushort UndoChar_440; + public ushort UndoChar_441; + public ushort UndoChar_442; + public ushort UndoChar_443; + public ushort UndoChar_444; + public ushort UndoChar_445; + public ushort UndoChar_446; + public ushort UndoChar_447; + public ushort UndoChar_448; + public ushort UndoChar_449; + public ushort UndoChar_450; + public ushort UndoChar_451; + public ushort UndoChar_452; + public ushort UndoChar_453; + public ushort UndoChar_454; + public ushort UndoChar_455; + public ushort UndoChar_456; + public ushort UndoChar_457; + public ushort UndoChar_458; + public ushort UndoChar_459; + public ushort UndoChar_460; + public ushort UndoChar_461; + public ushort UndoChar_462; + public ushort UndoChar_463; + public ushort UndoChar_464; + public ushort UndoChar_465; + public ushort UndoChar_466; + public ushort UndoChar_467; + public ushort UndoChar_468; + public ushort UndoChar_469; + public ushort UndoChar_470; + public ushort UndoChar_471; + public ushort UndoChar_472; + public ushort UndoChar_473; + public ushort UndoChar_474; + public ushort UndoChar_475; + public ushort UndoChar_476; + public ushort UndoChar_477; + public ushort UndoChar_478; + public ushort UndoChar_479; + public ushort UndoChar_480; + public ushort UndoChar_481; + public ushort UndoChar_482; + public ushort UndoChar_483; + public ushort UndoChar_484; + public ushort UndoChar_485; + public ushort UndoChar_486; + public ushort UndoChar_487; + public ushort UndoChar_488; + public ushort UndoChar_489; + public ushort UndoChar_490; + public ushort UndoChar_491; + public ushort UndoChar_492; + public ushort UndoChar_493; + public ushort UndoChar_494; + public ushort UndoChar_495; + public ushort UndoChar_496; + public ushort UndoChar_497; + public ushort UndoChar_498; + public ushort UndoChar_499; + public ushort UndoChar_500; + public ushort UndoChar_501; + public ushort UndoChar_502; + public ushort UndoChar_503; + public ushort UndoChar_504; + public ushort UndoChar_505; + public ushort UndoChar_506; + public ushort UndoChar_507; + public ushort UndoChar_508; + public ushort UndoChar_509; + public ushort UndoChar_510; + public ushort UndoChar_511; + public ushort UndoChar_512; + public ushort UndoChar_513; + public ushort UndoChar_514; + public ushort UndoChar_515; + public ushort UndoChar_516; + public ushort UndoChar_517; + public ushort UndoChar_518; + public ushort UndoChar_519; + public ushort UndoChar_520; + public ushort UndoChar_521; + public ushort UndoChar_522; + public ushort UndoChar_523; + public ushort UndoChar_524; + public ushort UndoChar_525; + public ushort UndoChar_526; + public ushort UndoChar_527; + public ushort UndoChar_528; + public ushort UndoChar_529; + public ushort UndoChar_530; + public ushort UndoChar_531; + public ushort UndoChar_532; + public ushort UndoChar_533; + public ushort UndoChar_534; + public ushort UndoChar_535; + public ushort UndoChar_536; + public ushort UndoChar_537; + public ushort UndoChar_538; + public ushort UndoChar_539; + public ushort UndoChar_540; + public ushort UndoChar_541; + public ushort UndoChar_542; + public ushort UndoChar_543; + public ushort UndoChar_544; + public ushort UndoChar_545; + public ushort UndoChar_546; + public ushort UndoChar_547; + public ushort UndoChar_548; + public ushort UndoChar_549; + public ushort UndoChar_550; + public ushort UndoChar_551; + public ushort UndoChar_552; + public ushort UndoChar_553; + public ushort UndoChar_554; + public ushort UndoChar_555; + public ushort UndoChar_556; + public ushort UndoChar_557; + public ushort UndoChar_558; + public ushort UndoChar_559; + public ushort UndoChar_560; + public ushort UndoChar_561; + public ushort UndoChar_562; + public ushort UndoChar_563; + public ushort UndoChar_564; + public ushort UndoChar_565; + public ushort UndoChar_566; + public ushort UndoChar_567; + public ushort UndoChar_568; + public ushort UndoChar_569; + public ushort UndoChar_570; + public ushort UndoChar_571; + public ushort UndoChar_572; + public ushort UndoChar_573; + public ushort UndoChar_574; + public ushort UndoChar_575; + public ushort UndoChar_576; + public ushort UndoChar_577; + public ushort UndoChar_578; + public ushort UndoChar_579; + public ushort UndoChar_580; + public ushort UndoChar_581; + public ushort UndoChar_582; + public ushort UndoChar_583; + public ushort UndoChar_584; + public ushort UndoChar_585; + public ushort UndoChar_586; + public ushort UndoChar_587; + public ushort UndoChar_588; + public ushort UndoChar_589; + public ushort UndoChar_590; + public ushort UndoChar_591; + public ushort UndoChar_592; + public ushort UndoChar_593; + public ushort UndoChar_594; + public ushort UndoChar_595; + public ushort UndoChar_596; + public ushort UndoChar_597; + public ushort UndoChar_598; + public ushort UndoChar_599; + public ushort UndoChar_600; + public ushort UndoChar_601; + public ushort UndoChar_602; + public ushort UndoChar_603; + public ushort UndoChar_604; + public ushort UndoChar_605; + public ushort UndoChar_606; + public ushort UndoChar_607; + public ushort UndoChar_608; + public ushort UndoChar_609; + public ushort UndoChar_610; + public ushort UndoChar_611; + public ushort UndoChar_612; + public ushort UndoChar_613; + public ushort UndoChar_614; + public ushort UndoChar_615; + public ushort UndoChar_616; + public ushort UndoChar_617; + public ushort UndoChar_618; + public ushort UndoChar_619; + public ushort UndoChar_620; + public ushort UndoChar_621; + public ushort UndoChar_622; + public ushort UndoChar_623; + public ushort UndoChar_624; + public ushort UndoChar_625; + public ushort UndoChar_626; + public ushort UndoChar_627; + public ushort UndoChar_628; + public ushort UndoChar_629; + public ushort UndoChar_630; + public ushort UndoChar_631; + public ushort UndoChar_632; + public ushort UndoChar_633; + public ushort UndoChar_634; + public ushort UndoChar_635; + public ushort UndoChar_636; + public ushort UndoChar_637; + public ushort UndoChar_638; + public ushort UndoChar_639; + public ushort UndoChar_640; + public ushort UndoChar_641; + public ushort UndoChar_642; + public ushort UndoChar_643; + public ushort UndoChar_644; + public ushort UndoChar_645; + public ushort UndoChar_646; + public ushort UndoChar_647; + public ushort UndoChar_648; + public ushort UndoChar_649; + public ushort UndoChar_650; + public ushort UndoChar_651; + public ushort UndoChar_652; + public ushort UndoChar_653; + public ushort UndoChar_654; + public ushort UndoChar_655; + public ushort UndoChar_656; + public ushort UndoChar_657; + public ushort UndoChar_658; + public ushort UndoChar_659; + public ushort UndoChar_660; + public ushort UndoChar_661; + public ushort UndoChar_662; + public ushort UndoChar_663; + public ushort UndoChar_664; + public ushort UndoChar_665; + public ushort UndoChar_666; + public ushort UndoChar_667; + public ushort UndoChar_668; + public ushort UndoChar_669; + public ushort UndoChar_670; + public ushort UndoChar_671; + public ushort UndoChar_672; + public ushort UndoChar_673; + public ushort UndoChar_674; + public ushort UndoChar_675; + public ushort UndoChar_676; + public ushort UndoChar_677; + public ushort UndoChar_678; + public ushort UndoChar_679; + public ushort UndoChar_680; + public ushort UndoChar_681; + public ushort UndoChar_682; + public ushort UndoChar_683; + public ushort UndoChar_684; + public ushort UndoChar_685; + public ushort UndoChar_686; + public ushort UndoChar_687; + public ushort UndoChar_688; + public ushort UndoChar_689; + public ushort UndoChar_690; + public ushort UndoChar_691; + public ushort UndoChar_692; + public ushort UndoChar_693; + public ushort UndoChar_694; + public ushort UndoChar_695; + public ushort UndoChar_696; + public ushort UndoChar_697; + public ushort UndoChar_698; + public ushort UndoChar_699; + public ushort UndoChar_700; + public ushort UndoChar_701; + public ushort UndoChar_702; + public ushort UndoChar_703; + public ushort UndoChar_704; + public ushort UndoChar_705; + public ushort UndoChar_706; + public ushort UndoChar_707; + public ushort UndoChar_708; + public ushort UndoChar_709; + public ushort UndoChar_710; + public ushort UndoChar_711; + public ushort UndoChar_712; + public ushort UndoChar_713; + public ushort UndoChar_714; + public ushort UndoChar_715; + public ushort UndoChar_716; + public ushort UndoChar_717; + public ushort UndoChar_718; + public ushort UndoChar_719; + public ushort UndoChar_720; + public ushort UndoChar_721; + public ushort UndoChar_722; + public ushort UndoChar_723; + public ushort UndoChar_724; + public ushort UndoChar_725; + public ushort UndoChar_726; + public ushort UndoChar_727; + public ushort UndoChar_728; + public ushort UndoChar_729; + public ushort UndoChar_730; + public ushort UndoChar_731; + public ushort UndoChar_732; + public ushort UndoChar_733; + public ushort UndoChar_734; + public ushort UndoChar_735; + public ushort UndoChar_736; + public ushort UndoChar_737; + public ushort UndoChar_738; + public ushort UndoChar_739; + public ushort UndoChar_740; + public ushort UndoChar_741; + public ushort UndoChar_742; + public ushort UndoChar_743; + public ushort UndoChar_744; + public ushort UndoChar_745; + public ushort UndoChar_746; + public ushort UndoChar_747; + public ushort UndoChar_748; + public ushort UndoChar_749; + public ushort UndoChar_750; + public ushort UndoChar_751; + public ushort UndoChar_752; + public ushort UndoChar_753; + public ushort UndoChar_754; + public ushort UndoChar_755; + public ushort UndoChar_756; + public ushort UndoChar_757; + public ushort UndoChar_758; + public ushort UndoChar_759; + public ushort UndoChar_760; + public ushort UndoChar_761; + public ushort UndoChar_762; + public ushort UndoChar_763; + public ushort UndoChar_764; + public ushort UndoChar_765; + public ushort UndoChar_766; + public ushort UndoChar_767; + public ushort UndoChar_768; + public ushort UndoChar_769; + public ushort UndoChar_770; + public ushort UndoChar_771; + public ushort UndoChar_772; + public ushort UndoChar_773; + public ushort UndoChar_774; + public ushort UndoChar_775; + public ushort UndoChar_776; + public ushort UndoChar_777; + public ushort UndoChar_778; + public ushort UndoChar_779; + public ushort UndoChar_780; + public ushort UndoChar_781; + public ushort UndoChar_782; + public ushort UndoChar_783; + public ushort UndoChar_784; + public ushort UndoChar_785; + public ushort UndoChar_786; + public ushort UndoChar_787; + public ushort UndoChar_788; + public ushort UndoChar_789; + public ushort UndoChar_790; + public ushort UndoChar_791; + public ushort UndoChar_792; + public ushort UndoChar_793; + public ushort UndoChar_794; + public ushort UndoChar_795; + public ushort UndoChar_796; + public ushort UndoChar_797; + public ushort UndoChar_798; + public ushort UndoChar_799; + public ushort UndoChar_800; + public ushort UndoChar_801; + public ushort UndoChar_802; + public ushort UndoChar_803; + public ushort UndoChar_804; + public ushort UndoChar_805; + public ushort UndoChar_806; + public ushort UndoChar_807; + public ushort UndoChar_808; + public ushort UndoChar_809; + public ushort UndoChar_810; + public ushort UndoChar_811; + public ushort UndoChar_812; + public ushort UndoChar_813; + public ushort UndoChar_814; + public ushort UndoChar_815; + public ushort UndoChar_816; + public ushort UndoChar_817; + public ushort UndoChar_818; + public ushort UndoChar_819; + public ushort UndoChar_820; + public ushort UndoChar_821; + public ushort UndoChar_822; + public ushort UndoChar_823; + public ushort UndoChar_824; + public ushort UndoChar_825; + public ushort UndoChar_826; + public ushort UndoChar_827; + public ushort UndoChar_828; + public ushort UndoChar_829; + public ushort UndoChar_830; + public ushort UndoChar_831; + public ushort UndoChar_832; + public ushort UndoChar_833; + public ushort UndoChar_834; + public ushort UndoChar_835; + public ushort UndoChar_836; + public ushort UndoChar_837; + public ushort UndoChar_838; + public ushort UndoChar_839; + public ushort UndoChar_840; + public ushort UndoChar_841; + public ushort UndoChar_842; + public ushort UndoChar_843; + public ushort UndoChar_844; + public ushort UndoChar_845; + public ushort UndoChar_846; + public ushort UndoChar_847; + public ushort UndoChar_848; + public ushort UndoChar_849; + public ushort UndoChar_850; + public ushort UndoChar_851; + public ushort UndoChar_852; + public ushort UndoChar_853; + public ushort UndoChar_854; + public ushort UndoChar_855; + public ushort UndoChar_856; + public ushort UndoChar_857; + public ushort UndoChar_858; + public ushort UndoChar_859; + public ushort UndoChar_860; + public ushort UndoChar_861; + public ushort UndoChar_862; + public ushort UndoChar_863; + public ushort UndoChar_864; + public ushort UndoChar_865; + public ushort UndoChar_866; + public ushort UndoChar_867; + public ushort UndoChar_868; + public ushort UndoChar_869; + public ushort UndoChar_870; + public ushort UndoChar_871; + public ushort UndoChar_872; + public ushort UndoChar_873; + public ushort UndoChar_874; + public ushort UndoChar_875; + public ushort UndoChar_876; + public ushort UndoChar_877; + public ushort UndoChar_878; + public ushort UndoChar_879; + public ushort UndoChar_880; + public ushort UndoChar_881; + public ushort UndoChar_882; + public ushort UndoChar_883; + public ushort UndoChar_884; + public ushort UndoChar_885; + public ushort UndoChar_886; + public ushort UndoChar_887; + public ushort UndoChar_888; + public ushort UndoChar_889; + public ushort UndoChar_890; + public ushort UndoChar_891; + public ushort UndoChar_892; + public ushort UndoChar_893; + public ushort UndoChar_894; + public ushort UndoChar_895; + public ushort UndoChar_896; + public ushort UndoChar_897; + public ushort UndoChar_898; + public ushort UndoChar_899; + public ushort UndoChar_900; + public ushort UndoChar_901; + public ushort UndoChar_902; + public ushort UndoChar_903; + public ushort UndoChar_904; + public ushort UndoChar_905; + public ushort UndoChar_906; + public ushort UndoChar_907; + public ushort UndoChar_908; + public ushort UndoChar_909; + public ushort UndoChar_910; + public ushort UndoChar_911; + public ushort UndoChar_912; + public ushort UndoChar_913; + public ushort UndoChar_914; + public ushort UndoChar_915; + public ushort UndoChar_916; + public ushort UndoChar_917; + public ushort UndoChar_918; + public ushort UndoChar_919; + public ushort UndoChar_920; + public ushort UndoChar_921; + public ushort UndoChar_922; + public ushort UndoChar_923; + public ushort UndoChar_924; + public ushort UndoChar_925; + public ushort UndoChar_926; + public ushort UndoChar_927; + public ushort UndoChar_928; + public ushort UndoChar_929; + public ushort UndoChar_930; + public ushort UndoChar_931; + public ushort UndoChar_932; + public ushort UndoChar_933; + public ushort UndoChar_934; + public ushort UndoChar_935; + public ushort UndoChar_936; + public ushort UndoChar_937; + public ushort UndoChar_938; + public ushort UndoChar_939; + public ushort UndoChar_940; + public ushort UndoChar_941; + public ushort UndoChar_942; + public ushort UndoChar_943; + public ushort UndoChar_944; + public ushort UndoChar_945; + public ushort UndoChar_946; + public ushort UndoChar_947; + public ushort UndoChar_948; + public ushort UndoChar_949; + public ushort UndoChar_950; + public ushort UndoChar_951; + public ushort UndoChar_952; + public ushort UndoChar_953; + public ushort UndoChar_954; + public ushort UndoChar_955; + public ushort UndoChar_956; + public ushort UndoChar_957; + public ushort UndoChar_958; + public ushort UndoChar_959; + public ushort UndoChar_960; + public ushort UndoChar_961; + public ushort UndoChar_962; + public ushort UndoChar_963; + public ushort UndoChar_964; + public ushort UndoChar_965; + public ushort UndoChar_966; + public ushort UndoChar_967; + public ushort UndoChar_968; + public ushort UndoChar_969; + public ushort UndoChar_970; + public ushort UndoChar_971; + public ushort UndoChar_972; + public ushort UndoChar_973; + public ushort UndoChar_974; + public ushort UndoChar_975; + public ushort UndoChar_976; + public ushort UndoChar_977; + public ushort UndoChar_978; + public ushort UndoChar_979; + public ushort UndoChar_980; + public ushort UndoChar_981; + public ushort UndoChar_982; + public ushort UndoChar_983; + public ushort UndoChar_984; + public ushort UndoChar_985; + public ushort UndoChar_986; + public ushort UndoChar_987; + public ushort UndoChar_988; + public ushort UndoChar_989; + public ushort UndoChar_990; + public ushort UndoChar_991; + public ushort UndoChar_992; + public ushort UndoChar_993; + public ushort UndoChar_994; + public ushort UndoChar_995; + public ushort UndoChar_996; + public ushort UndoChar_997; + public ushort UndoChar_998; + + /// + /// To be documented. + /// + public short UndoPoint; + + /// + /// To be documented. + /// + public short RedoPoint; + + /// + /// To be documented. + /// + public int UndoCharPoint; + + /// + /// To be documented. + /// + public int RedoCharPoint; + + + /// /// To be documented. /// public unsafe StbUndoState(StbUndoRecord* undoRec = default, ushort* undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) + { + if (undoRec != default) + { + UndoRec_0 = undoRec[0]; + UndoRec_1 = undoRec[1]; + UndoRec_2 = undoRec[2]; + UndoRec_3 = undoRec[3]; + UndoRec_4 = undoRec[4]; + UndoRec_5 = undoRec[5]; + UndoRec_6 = undoRec[6]; + UndoRec_7 = undoRec[7]; + UndoRec_8 = undoRec[8]; + UndoRec_9 = undoRec[9]; + UndoRec_10 = undoRec[10]; + UndoRec_11 = undoRec[11]; + UndoRec_12 = undoRec[12]; + UndoRec_13 = undoRec[13]; + UndoRec_14 = undoRec[14]; + UndoRec_15 = undoRec[15]; + UndoRec_16 = undoRec[16]; + UndoRec_17 = undoRec[17]; + UndoRec_18 = undoRec[18]; + UndoRec_19 = undoRec[19]; + UndoRec_20 = undoRec[20]; + UndoRec_21 = undoRec[21]; + UndoRec_22 = undoRec[22]; + UndoRec_23 = undoRec[23]; + UndoRec_24 = undoRec[24]; + UndoRec_25 = undoRec[25]; + UndoRec_26 = undoRec[26]; + UndoRec_27 = undoRec[27]; + UndoRec_28 = undoRec[28]; + UndoRec_29 = undoRec[29]; + UndoRec_30 = undoRec[30]; + UndoRec_31 = undoRec[31]; + UndoRec_32 = undoRec[32]; + UndoRec_33 = undoRec[33]; + UndoRec_34 = undoRec[34]; + UndoRec_35 = undoRec[35]; + UndoRec_36 = undoRec[36]; + UndoRec_37 = undoRec[37]; + UndoRec_38 = undoRec[38]; + UndoRec_39 = undoRec[39]; + UndoRec_40 = undoRec[40]; + UndoRec_41 = undoRec[41]; + UndoRec_42 = undoRec[42]; + UndoRec_43 = undoRec[43]; + UndoRec_44 = undoRec[44]; + UndoRec_45 = undoRec[45]; + UndoRec_46 = undoRec[46]; + UndoRec_47 = undoRec[47]; + UndoRec_48 = undoRec[48]; + UndoRec_49 = undoRec[49]; + UndoRec_50 = undoRec[50]; + UndoRec_51 = undoRec[51]; + UndoRec_52 = undoRec[52]; + UndoRec_53 = undoRec[53]; + UndoRec_54 = undoRec[54]; + UndoRec_55 = undoRec[55]; + UndoRec_56 = undoRec[56]; + UndoRec_57 = undoRec[57]; + UndoRec_58 = undoRec[58]; + UndoRec_59 = undoRec[59]; + UndoRec_60 = undoRec[60]; + UndoRec_61 = undoRec[61]; + UndoRec_62 = undoRec[62]; + UndoRec_63 = undoRec[63]; + UndoRec_64 = undoRec[64]; + UndoRec_65 = undoRec[65]; + UndoRec_66 = undoRec[66]; + UndoRec_67 = undoRec[67]; + UndoRec_68 = undoRec[68]; + UndoRec_69 = undoRec[69]; + UndoRec_70 = undoRec[70]; + UndoRec_71 = undoRec[71]; + UndoRec_72 = undoRec[72]; + UndoRec_73 = undoRec[73]; + UndoRec_74 = undoRec[74]; + UndoRec_75 = undoRec[75]; + UndoRec_76 = undoRec[76]; + UndoRec_77 = undoRec[77]; + UndoRec_78 = undoRec[78]; + UndoRec_79 = undoRec[79]; + UndoRec_80 = undoRec[80]; + UndoRec_81 = undoRec[81]; + UndoRec_82 = undoRec[82]; + UndoRec_83 = undoRec[83]; + UndoRec_84 = undoRec[84]; + UndoRec_85 = undoRec[85]; + UndoRec_86 = undoRec[86]; + UndoRec_87 = undoRec[87]; + UndoRec_88 = undoRec[88]; + UndoRec_89 = undoRec[89]; + UndoRec_90 = undoRec[90]; + UndoRec_91 = undoRec[91]; + UndoRec_92 = undoRec[92]; + UndoRec_93 = undoRec[93]; + UndoRec_94 = undoRec[94]; + UndoRec_95 = undoRec[95]; + UndoRec_96 = undoRec[96]; + UndoRec_97 = undoRec[97]; + UndoRec_98 = undoRec[98]; + } + if (undoChar != default) + { + UndoChar_0 = undoChar[0]; + UndoChar_1 = undoChar[1]; + UndoChar_2 = undoChar[2]; + UndoChar_3 = undoChar[3]; + UndoChar_4 = undoChar[4]; + UndoChar_5 = undoChar[5]; + UndoChar_6 = undoChar[6]; + UndoChar_7 = undoChar[7]; + UndoChar_8 = undoChar[8]; + UndoChar_9 = undoChar[9]; + UndoChar_10 = undoChar[10]; + UndoChar_11 = undoChar[11]; + UndoChar_12 = undoChar[12]; + UndoChar_13 = undoChar[13]; + UndoChar_14 = undoChar[14]; + UndoChar_15 = undoChar[15]; + UndoChar_16 = undoChar[16]; + UndoChar_17 = undoChar[17]; + UndoChar_18 = undoChar[18]; + UndoChar_19 = undoChar[19]; + UndoChar_20 = undoChar[20]; + UndoChar_21 = undoChar[21]; + UndoChar_22 = undoChar[22]; + UndoChar_23 = undoChar[23]; + UndoChar_24 = undoChar[24]; + UndoChar_25 = undoChar[25]; + UndoChar_26 = undoChar[26]; + UndoChar_27 = undoChar[27]; + UndoChar_28 = undoChar[28]; + UndoChar_29 = undoChar[29]; + UndoChar_30 = undoChar[30]; + UndoChar_31 = undoChar[31]; + UndoChar_32 = undoChar[32]; + UndoChar_33 = undoChar[33]; + UndoChar_34 = undoChar[34]; + UndoChar_35 = undoChar[35]; + UndoChar_36 = undoChar[36]; + UndoChar_37 = undoChar[37]; + UndoChar_38 = undoChar[38]; + UndoChar_39 = undoChar[39]; + UndoChar_40 = undoChar[40]; + UndoChar_41 = undoChar[41]; + UndoChar_42 = undoChar[42]; + UndoChar_43 = undoChar[43]; + UndoChar_44 = undoChar[44]; + UndoChar_45 = undoChar[45]; + UndoChar_46 = undoChar[46]; + UndoChar_47 = undoChar[47]; + UndoChar_48 = undoChar[48]; + UndoChar_49 = undoChar[49]; + UndoChar_50 = undoChar[50]; + UndoChar_51 = undoChar[51]; + UndoChar_52 = undoChar[52]; + UndoChar_53 = undoChar[53]; + UndoChar_54 = undoChar[54]; + UndoChar_55 = undoChar[55]; + UndoChar_56 = undoChar[56]; + UndoChar_57 = undoChar[57]; + UndoChar_58 = undoChar[58]; + UndoChar_59 = undoChar[59]; + UndoChar_60 = undoChar[60]; + UndoChar_61 = undoChar[61]; + UndoChar_62 = undoChar[62]; + UndoChar_63 = undoChar[63]; + UndoChar_64 = undoChar[64]; + UndoChar_65 = undoChar[65]; + UndoChar_66 = undoChar[66]; + UndoChar_67 = undoChar[67]; + UndoChar_68 = undoChar[68]; + UndoChar_69 = undoChar[69]; + UndoChar_70 = undoChar[70]; + UndoChar_71 = undoChar[71]; + UndoChar_72 = undoChar[72]; + UndoChar_73 = undoChar[73]; + UndoChar_74 = undoChar[74]; + UndoChar_75 = undoChar[75]; + UndoChar_76 = undoChar[76]; + UndoChar_77 = undoChar[77]; + UndoChar_78 = undoChar[78]; + UndoChar_79 = undoChar[79]; + UndoChar_80 = undoChar[80]; + UndoChar_81 = undoChar[81]; + UndoChar_82 = undoChar[82]; + UndoChar_83 = undoChar[83]; + UndoChar_84 = undoChar[84]; + UndoChar_85 = undoChar[85]; + UndoChar_86 = undoChar[86]; + UndoChar_87 = undoChar[87]; + UndoChar_88 = undoChar[88]; + UndoChar_89 = undoChar[89]; + UndoChar_90 = undoChar[90]; + UndoChar_91 = undoChar[91]; + UndoChar_92 = undoChar[92]; + UndoChar_93 = undoChar[93]; + UndoChar_94 = undoChar[94]; + UndoChar_95 = undoChar[95]; + UndoChar_96 = undoChar[96]; + UndoChar_97 = undoChar[97]; + UndoChar_98 = undoChar[98]; + UndoChar_99 = undoChar[99]; + UndoChar_100 = undoChar[100]; + UndoChar_101 = undoChar[101]; + UndoChar_102 = undoChar[102]; + UndoChar_103 = undoChar[103]; + UndoChar_104 = undoChar[104]; + UndoChar_105 = undoChar[105]; + UndoChar_106 = undoChar[106]; + UndoChar_107 = undoChar[107]; + UndoChar_108 = undoChar[108]; + UndoChar_109 = undoChar[109]; + UndoChar_110 = undoChar[110]; + UndoChar_111 = undoChar[111]; + UndoChar_112 = undoChar[112]; + UndoChar_113 = undoChar[113]; + UndoChar_114 = undoChar[114]; + UndoChar_115 = undoChar[115]; + UndoChar_116 = undoChar[116]; + UndoChar_117 = undoChar[117]; + UndoChar_118 = undoChar[118]; + UndoChar_119 = undoChar[119]; + UndoChar_120 = undoChar[120]; + UndoChar_121 = undoChar[121]; + UndoChar_122 = undoChar[122]; + UndoChar_123 = undoChar[123]; + UndoChar_124 = undoChar[124]; + UndoChar_125 = undoChar[125]; + UndoChar_126 = undoChar[126]; + UndoChar_127 = undoChar[127]; + UndoChar_128 = undoChar[128]; + UndoChar_129 = undoChar[129]; + UndoChar_130 = undoChar[130]; + UndoChar_131 = undoChar[131]; + UndoChar_132 = undoChar[132]; + UndoChar_133 = undoChar[133]; + UndoChar_134 = undoChar[134]; + UndoChar_135 = undoChar[135]; + UndoChar_136 = undoChar[136]; + UndoChar_137 = undoChar[137]; + UndoChar_138 = undoChar[138]; + UndoChar_139 = undoChar[139]; + UndoChar_140 = undoChar[140]; + UndoChar_141 = undoChar[141]; + UndoChar_142 = undoChar[142]; + UndoChar_143 = undoChar[143]; + UndoChar_144 = undoChar[144]; + UndoChar_145 = undoChar[145]; + UndoChar_146 = undoChar[146]; + UndoChar_147 = undoChar[147]; + UndoChar_148 = undoChar[148]; + UndoChar_149 = undoChar[149]; + UndoChar_150 = undoChar[150]; + UndoChar_151 = undoChar[151]; + UndoChar_152 = undoChar[152]; + UndoChar_153 = undoChar[153]; + UndoChar_154 = undoChar[154]; + UndoChar_155 = undoChar[155]; + UndoChar_156 = undoChar[156]; + UndoChar_157 = undoChar[157]; + UndoChar_158 = undoChar[158]; + UndoChar_159 = undoChar[159]; + UndoChar_160 = undoChar[160]; + UndoChar_161 = undoChar[161]; + UndoChar_162 = undoChar[162]; + UndoChar_163 = undoChar[163]; + UndoChar_164 = undoChar[164]; + UndoChar_165 = undoChar[165]; + UndoChar_166 = undoChar[166]; + UndoChar_167 = undoChar[167]; + UndoChar_168 = undoChar[168]; + UndoChar_169 = undoChar[169]; + UndoChar_170 = undoChar[170]; + UndoChar_171 = undoChar[171]; + UndoChar_172 = undoChar[172]; + UndoChar_173 = undoChar[173]; + UndoChar_174 = undoChar[174]; + UndoChar_175 = undoChar[175]; + UndoChar_176 = undoChar[176]; + UndoChar_177 = undoChar[177]; + UndoChar_178 = undoChar[178]; + UndoChar_179 = undoChar[179]; + UndoChar_180 = undoChar[180]; + UndoChar_181 = undoChar[181]; + UndoChar_182 = undoChar[182]; + UndoChar_183 = undoChar[183]; + UndoChar_184 = undoChar[184]; + UndoChar_185 = undoChar[185]; + UndoChar_186 = undoChar[186]; + UndoChar_187 = undoChar[187]; + UndoChar_188 = undoChar[188]; + UndoChar_189 = undoChar[189]; + UndoChar_190 = undoChar[190]; + UndoChar_191 = undoChar[191]; + UndoChar_192 = undoChar[192]; + UndoChar_193 = undoChar[193]; + UndoChar_194 = undoChar[194]; + UndoChar_195 = undoChar[195]; + UndoChar_196 = undoChar[196]; + UndoChar_197 = undoChar[197]; + UndoChar_198 = undoChar[198]; + UndoChar_199 = undoChar[199]; + UndoChar_200 = undoChar[200]; + UndoChar_201 = undoChar[201]; + UndoChar_202 = undoChar[202]; + UndoChar_203 = undoChar[203]; + UndoChar_204 = undoChar[204]; + UndoChar_205 = undoChar[205]; + UndoChar_206 = undoChar[206]; + UndoChar_207 = undoChar[207]; + UndoChar_208 = undoChar[208]; + UndoChar_209 = undoChar[209]; + UndoChar_210 = undoChar[210]; + UndoChar_211 = undoChar[211]; + UndoChar_212 = undoChar[212]; + UndoChar_213 = undoChar[213]; + UndoChar_214 = undoChar[214]; + UndoChar_215 = undoChar[215]; + UndoChar_216 = undoChar[216]; + UndoChar_217 = undoChar[217]; + UndoChar_218 = undoChar[218]; + UndoChar_219 = undoChar[219]; + UndoChar_220 = undoChar[220]; + UndoChar_221 = undoChar[221]; + UndoChar_222 = undoChar[222]; + UndoChar_223 = undoChar[223]; + UndoChar_224 = undoChar[224]; + UndoChar_225 = undoChar[225]; + UndoChar_226 = undoChar[226]; + UndoChar_227 = undoChar[227]; + UndoChar_228 = undoChar[228]; + UndoChar_229 = undoChar[229]; + UndoChar_230 = undoChar[230]; + UndoChar_231 = undoChar[231]; + UndoChar_232 = undoChar[232]; + UndoChar_233 = undoChar[233]; + UndoChar_234 = undoChar[234]; + UndoChar_235 = undoChar[235]; + UndoChar_236 = undoChar[236]; + UndoChar_237 = undoChar[237]; + UndoChar_238 = undoChar[238]; + UndoChar_239 = undoChar[239]; + UndoChar_240 = undoChar[240]; + UndoChar_241 = undoChar[241]; + UndoChar_242 = undoChar[242]; + UndoChar_243 = undoChar[243]; + UndoChar_244 = undoChar[244]; + UndoChar_245 = undoChar[245]; + UndoChar_246 = undoChar[246]; + UndoChar_247 = undoChar[247]; + UndoChar_248 = undoChar[248]; + UndoChar_249 = undoChar[249]; + UndoChar_250 = undoChar[250]; + UndoChar_251 = undoChar[251]; + UndoChar_252 = undoChar[252]; + UndoChar_253 = undoChar[253]; + UndoChar_254 = undoChar[254]; + UndoChar_255 = undoChar[255]; + UndoChar_256 = undoChar[256]; + UndoChar_257 = undoChar[257]; + UndoChar_258 = undoChar[258]; + UndoChar_259 = undoChar[259]; + UndoChar_260 = undoChar[260]; + UndoChar_261 = undoChar[261]; + UndoChar_262 = undoChar[262]; + UndoChar_263 = undoChar[263]; + UndoChar_264 = undoChar[264]; + UndoChar_265 = undoChar[265]; + UndoChar_266 = undoChar[266]; + UndoChar_267 = undoChar[267]; + UndoChar_268 = undoChar[268]; + UndoChar_269 = undoChar[269]; + UndoChar_270 = undoChar[270]; + UndoChar_271 = undoChar[271]; + UndoChar_272 = undoChar[272]; + UndoChar_273 = undoChar[273]; + UndoChar_274 = undoChar[274]; + UndoChar_275 = undoChar[275]; + UndoChar_276 = undoChar[276]; + UndoChar_277 = undoChar[277]; + UndoChar_278 = undoChar[278]; + UndoChar_279 = undoChar[279]; + UndoChar_280 = undoChar[280]; + UndoChar_281 = undoChar[281]; + UndoChar_282 = undoChar[282]; + UndoChar_283 = undoChar[283]; + UndoChar_284 = undoChar[284]; + UndoChar_285 = undoChar[285]; + UndoChar_286 = undoChar[286]; + UndoChar_287 = undoChar[287]; + UndoChar_288 = undoChar[288]; + UndoChar_289 = undoChar[289]; + UndoChar_290 = undoChar[290]; + UndoChar_291 = undoChar[291]; + UndoChar_292 = undoChar[292]; + UndoChar_293 = undoChar[293]; + UndoChar_294 = undoChar[294]; + UndoChar_295 = undoChar[295]; + UndoChar_296 = undoChar[296]; + UndoChar_297 = undoChar[297]; + UndoChar_298 = undoChar[298]; + UndoChar_299 = undoChar[299]; + UndoChar_300 = undoChar[300]; + UndoChar_301 = undoChar[301]; + UndoChar_302 = undoChar[302]; + UndoChar_303 = undoChar[303]; + UndoChar_304 = undoChar[304]; + UndoChar_305 = undoChar[305]; + UndoChar_306 = undoChar[306]; + UndoChar_307 = undoChar[307]; + UndoChar_308 = undoChar[308]; + UndoChar_309 = undoChar[309]; + UndoChar_310 = undoChar[310]; + UndoChar_311 = undoChar[311]; + UndoChar_312 = undoChar[312]; + UndoChar_313 = undoChar[313]; + UndoChar_314 = undoChar[314]; + UndoChar_315 = undoChar[315]; + UndoChar_316 = undoChar[316]; + UndoChar_317 = undoChar[317]; + UndoChar_318 = undoChar[318]; + UndoChar_319 = undoChar[319]; + UndoChar_320 = undoChar[320]; + UndoChar_321 = undoChar[321]; + UndoChar_322 = undoChar[322]; + UndoChar_323 = undoChar[323]; + UndoChar_324 = undoChar[324]; + UndoChar_325 = undoChar[325]; + UndoChar_326 = undoChar[326]; + UndoChar_327 = undoChar[327]; + UndoChar_328 = undoChar[328]; + UndoChar_329 = undoChar[329]; + UndoChar_330 = undoChar[330]; + UndoChar_331 = undoChar[331]; + UndoChar_332 = undoChar[332]; + UndoChar_333 = undoChar[333]; + UndoChar_334 = undoChar[334]; + UndoChar_335 = undoChar[335]; + UndoChar_336 = undoChar[336]; + UndoChar_337 = undoChar[337]; + UndoChar_338 = undoChar[338]; + UndoChar_339 = undoChar[339]; + UndoChar_340 = undoChar[340]; + UndoChar_341 = undoChar[341]; + UndoChar_342 = undoChar[342]; + UndoChar_343 = undoChar[343]; + UndoChar_344 = undoChar[344]; + UndoChar_345 = undoChar[345]; + UndoChar_346 = undoChar[346]; + UndoChar_347 = undoChar[347]; + UndoChar_348 = undoChar[348]; + UndoChar_349 = undoChar[349]; + UndoChar_350 = undoChar[350]; + UndoChar_351 = undoChar[351]; + UndoChar_352 = undoChar[352]; + UndoChar_353 = undoChar[353]; + UndoChar_354 = undoChar[354]; + UndoChar_355 = undoChar[355]; + UndoChar_356 = undoChar[356]; + UndoChar_357 = undoChar[357]; + UndoChar_358 = undoChar[358]; + UndoChar_359 = undoChar[359]; + UndoChar_360 = undoChar[360]; + UndoChar_361 = undoChar[361]; + UndoChar_362 = undoChar[362]; + UndoChar_363 = undoChar[363]; + UndoChar_364 = undoChar[364]; + UndoChar_365 = undoChar[365]; + UndoChar_366 = undoChar[366]; + UndoChar_367 = undoChar[367]; + UndoChar_368 = undoChar[368]; + UndoChar_369 = undoChar[369]; + UndoChar_370 = undoChar[370]; + UndoChar_371 = undoChar[371]; + UndoChar_372 = undoChar[372]; + UndoChar_373 = undoChar[373]; + UndoChar_374 = undoChar[374]; + UndoChar_375 = undoChar[375]; + UndoChar_376 = undoChar[376]; + UndoChar_377 = undoChar[377]; + UndoChar_378 = undoChar[378]; + UndoChar_379 = undoChar[379]; + UndoChar_380 = undoChar[380]; + UndoChar_381 = undoChar[381]; + UndoChar_382 = undoChar[382]; + UndoChar_383 = undoChar[383]; + UndoChar_384 = undoChar[384]; + UndoChar_385 = undoChar[385]; + UndoChar_386 = undoChar[386]; + UndoChar_387 = undoChar[387]; + UndoChar_388 = undoChar[388]; + UndoChar_389 = undoChar[389]; + UndoChar_390 = undoChar[390]; + UndoChar_391 = undoChar[391]; + UndoChar_392 = undoChar[392]; + UndoChar_393 = undoChar[393]; + UndoChar_394 = undoChar[394]; + UndoChar_395 = undoChar[395]; + UndoChar_396 = undoChar[396]; + UndoChar_397 = undoChar[397]; + UndoChar_398 = undoChar[398]; + UndoChar_399 = undoChar[399]; + UndoChar_400 = undoChar[400]; + UndoChar_401 = undoChar[401]; + UndoChar_402 = undoChar[402]; + UndoChar_403 = undoChar[403]; + UndoChar_404 = undoChar[404]; + UndoChar_405 = undoChar[405]; + UndoChar_406 = undoChar[406]; + UndoChar_407 = undoChar[407]; + UndoChar_408 = undoChar[408]; + UndoChar_409 = undoChar[409]; + UndoChar_410 = undoChar[410]; + UndoChar_411 = undoChar[411]; + UndoChar_412 = undoChar[412]; + UndoChar_413 = undoChar[413]; + UndoChar_414 = undoChar[414]; + UndoChar_415 = undoChar[415]; + UndoChar_416 = undoChar[416]; + UndoChar_417 = undoChar[417]; + UndoChar_418 = undoChar[418]; + UndoChar_419 = undoChar[419]; + UndoChar_420 = undoChar[420]; + UndoChar_421 = undoChar[421]; + UndoChar_422 = undoChar[422]; + UndoChar_423 = undoChar[423]; + UndoChar_424 = undoChar[424]; + UndoChar_425 = undoChar[425]; + UndoChar_426 = undoChar[426]; + UndoChar_427 = undoChar[427]; + UndoChar_428 = undoChar[428]; + UndoChar_429 = undoChar[429]; + UndoChar_430 = undoChar[430]; + UndoChar_431 = undoChar[431]; + UndoChar_432 = undoChar[432]; + UndoChar_433 = undoChar[433]; + UndoChar_434 = undoChar[434]; + UndoChar_435 = undoChar[435]; + UndoChar_436 = undoChar[436]; + UndoChar_437 = undoChar[437]; + UndoChar_438 = undoChar[438]; + UndoChar_439 = undoChar[439]; + UndoChar_440 = undoChar[440]; + UndoChar_441 = undoChar[441]; + UndoChar_442 = undoChar[442]; + UndoChar_443 = undoChar[443]; + UndoChar_444 = undoChar[444]; + UndoChar_445 = undoChar[445]; + UndoChar_446 = undoChar[446]; + UndoChar_447 = undoChar[447]; + UndoChar_448 = undoChar[448]; + UndoChar_449 = undoChar[449]; + UndoChar_450 = undoChar[450]; + UndoChar_451 = undoChar[451]; + UndoChar_452 = undoChar[452]; + UndoChar_453 = undoChar[453]; + UndoChar_454 = undoChar[454]; + UndoChar_455 = undoChar[455]; + UndoChar_456 = undoChar[456]; + UndoChar_457 = undoChar[457]; + UndoChar_458 = undoChar[458]; + UndoChar_459 = undoChar[459]; + UndoChar_460 = undoChar[460]; + UndoChar_461 = undoChar[461]; + UndoChar_462 = undoChar[462]; + UndoChar_463 = undoChar[463]; + UndoChar_464 = undoChar[464]; + UndoChar_465 = undoChar[465]; + UndoChar_466 = undoChar[466]; + UndoChar_467 = undoChar[467]; + UndoChar_468 = undoChar[468]; + UndoChar_469 = undoChar[469]; + UndoChar_470 = undoChar[470]; + UndoChar_471 = undoChar[471]; + UndoChar_472 = undoChar[472]; + UndoChar_473 = undoChar[473]; + UndoChar_474 = undoChar[474]; + UndoChar_475 = undoChar[475]; + UndoChar_476 = undoChar[476]; + UndoChar_477 = undoChar[477]; + UndoChar_478 = undoChar[478]; + UndoChar_479 = undoChar[479]; + UndoChar_480 = undoChar[480]; + UndoChar_481 = undoChar[481]; + UndoChar_482 = undoChar[482]; + UndoChar_483 = undoChar[483]; + UndoChar_484 = undoChar[484]; + UndoChar_485 = undoChar[485]; + UndoChar_486 = undoChar[486]; + UndoChar_487 = undoChar[487]; + UndoChar_488 = undoChar[488]; + UndoChar_489 = undoChar[489]; + UndoChar_490 = undoChar[490]; + UndoChar_491 = undoChar[491]; + UndoChar_492 = undoChar[492]; + UndoChar_493 = undoChar[493]; + UndoChar_494 = undoChar[494]; + UndoChar_495 = undoChar[495]; + UndoChar_496 = undoChar[496]; + UndoChar_497 = undoChar[497]; + UndoChar_498 = undoChar[498]; + UndoChar_499 = undoChar[499]; + UndoChar_500 = undoChar[500]; + UndoChar_501 = undoChar[501]; + UndoChar_502 = undoChar[502]; + UndoChar_503 = undoChar[503]; + UndoChar_504 = undoChar[504]; + UndoChar_505 = undoChar[505]; + UndoChar_506 = undoChar[506]; + UndoChar_507 = undoChar[507]; + UndoChar_508 = undoChar[508]; + UndoChar_509 = undoChar[509]; + UndoChar_510 = undoChar[510]; + UndoChar_511 = undoChar[511]; + UndoChar_512 = undoChar[512]; + UndoChar_513 = undoChar[513]; + UndoChar_514 = undoChar[514]; + UndoChar_515 = undoChar[515]; + UndoChar_516 = undoChar[516]; + UndoChar_517 = undoChar[517]; + UndoChar_518 = undoChar[518]; + UndoChar_519 = undoChar[519]; + UndoChar_520 = undoChar[520]; + UndoChar_521 = undoChar[521]; + UndoChar_522 = undoChar[522]; + UndoChar_523 = undoChar[523]; + UndoChar_524 = undoChar[524]; + UndoChar_525 = undoChar[525]; + UndoChar_526 = undoChar[526]; + UndoChar_527 = undoChar[527]; + UndoChar_528 = undoChar[528]; + UndoChar_529 = undoChar[529]; + UndoChar_530 = undoChar[530]; + UndoChar_531 = undoChar[531]; + UndoChar_532 = undoChar[532]; + UndoChar_533 = undoChar[533]; + UndoChar_534 = undoChar[534]; + UndoChar_535 = undoChar[535]; + UndoChar_536 = undoChar[536]; + UndoChar_537 = undoChar[537]; + UndoChar_538 = undoChar[538]; + UndoChar_539 = undoChar[539]; + UndoChar_540 = undoChar[540]; + UndoChar_541 = undoChar[541]; + UndoChar_542 = undoChar[542]; + UndoChar_543 = undoChar[543]; + UndoChar_544 = undoChar[544]; + UndoChar_545 = undoChar[545]; + UndoChar_546 = undoChar[546]; + UndoChar_547 = undoChar[547]; + UndoChar_548 = undoChar[548]; + UndoChar_549 = undoChar[549]; + UndoChar_550 = undoChar[550]; + UndoChar_551 = undoChar[551]; + UndoChar_552 = undoChar[552]; + UndoChar_553 = undoChar[553]; + UndoChar_554 = undoChar[554]; + UndoChar_555 = undoChar[555]; + UndoChar_556 = undoChar[556]; + UndoChar_557 = undoChar[557]; + UndoChar_558 = undoChar[558]; + UndoChar_559 = undoChar[559]; + UndoChar_560 = undoChar[560]; + UndoChar_561 = undoChar[561]; + UndoChar_562 = undoChar[562]; + UndoChar_563 = undoChar[563]; + UndoChar_564 = undoChar[564]; + UndoChar_565 = undoChar[565]; + UndoChar_566 = undoChar[566]; + UndoChar_567 = undoChar[567]; + UndoChar_568 = undoChar[568]; + UndoChar_569 = undoChar[569]; + UndoChar_570 = undoChar[570]; + UndoChar_571 = undoChar[571]; + UndoChar_572 = undoChar[572]; + UndoChar_573 = undoChar[573]; + UndoChar_574 = undoChar[574]; + UndoChar_575 = undoChar[575]; + UndoChar_576 = undoChar[576]; + UndoChar_577 = undoChar[577]; + UndoChar_578 = undoChar[578]; + UndoChar_579 = undoChar[579]; + UndoChar_580 = undoChar[580]; + UndoChar_581 = undoChar[581]; + UndoChar_582 = undoChar[582]; + UndoChar_583 = undoChar[583]; + UndoChar_584 = undoChar[584]; + UndoChar_585 = undoChar[585]; + UndoChar_586 = undoChar[586]; + UndoChar_587 = undoChar[587]; + UndoChar_588 = undoChar[588]; + UndoChar_589 = undoChar[589]; + UndoChar_590 = undoChar[590]; + UndoChar_591 = undoChar[591]; + UndoChar_592 = undoChar[592]; + UndoChar_593 = undoChar[593]; + UndoChar_594 = undoChar[594]; + UndoChar_595 = undoChar[595]; + UndoChar_596 = undoChar[596]; + UndoChar_597 = undoChar[597]; + UndoChar_598 = undoChar[598]; + UndoChar_599 = undoChar[599]; + UndoChar_600 = undoChar[600]; + UndoChar_601 = undoChar[601]; + UndoChar_602 = undoChar[602]; + UndoChar_603 = undoChar[603]; + UndoChar_604 = undoChar[604]; + UndoChar_605 = undoChar[605]; + UndoChar_606 = undoChar[606]; + UndoChar_607 = undoChar[607]; + UndoChar_608 = undoChar[608]; + UndoChar_609 = undoChar[609]; + UndoChar_610 = undoChar[610]; + UndoChar_611 = undoChar[611]; + UndoChar_612 = undoChar[612]; + UndoChar_613 = undoChar[613]; + UndoChar_614 = undoChar[614]; + UndoChar_615 = undoChar[615]; + UndoChar_616 = undoChar[616]; + UndoChar_617 = undoChar[617]; + UndoChar_618 = undoChar[618]; + UndoChar_619 = undoChar[619]; + UndoChar_620 = undoChar[620]; + UndoChar_621 = undoChar[621]; + UndoChar_622 = undoChar[622]; + UndoChar_623 = undoChar[623]; + UndoChar_624 = undoChar[624]; + UndoChar_625 = undoChar[625]; + UndoChar_626 = undoChar[626]; + UndoChar_627 = undoChar[627]; + UndoChar_628 = undoChar[628]; + UndoChar_629 = undoChar[629]; + UndoChar_630 = undoChar[630]; + UndoChar_631 = undoChar[631]; + UndoChar_632 = undoChar[632]; + UndoChar_633 = undoChar[633]; + UndoChar_634 = undoChar[634]; + UndoChar_635 = undoChar[635]; + UndoChar_636 = undoChar[636]; + UndoChar_637 = undoChar[637]; + UndoChar_638 = undoChar[638]; + UndoChar_639 = undoChar[639]; + UndoChar_640 = undoChar[640]; + UndoChar_641 = undoChar[641]; + UndoChar_642 = undoChar[642]; + UndoChar_643 = undoChar[643]; + UndoChar_644 = undoChar[644]; + UndoChar_645 = undoChar[645]; + UndoChar_646 = undoChar[646]; + UndoChar_647 = undoChar[647]; + UndoChar_648 = undoChar[648]; + UndoChar_649 = undoChar[649]; + UndoChar_650 = undoChar[650]; + UndoChar_651 = undoChar[651]; + UndoChar_652 = undoChar[652]; + UndoChar_653 = undoChar[653]; + UndoChar_654 = undoChar[654]; + UndoChar_655 = undoChar[655]; + UndoChar_656 = undoChar[656]; + UndoChar_657 = undoChar[657]; + UndoChar_658 = undoChar[658]; + UndoChar_659 = undoChar[659]; + UndoChar_660 = undoChar[660]; + UndoChar_661 = undoChar[661]; + UndoChar_662 = undoChar[662]; + UndoChar_663 = undoChar[663]; + UndoChar_664 = undoChar[664]; + UndoChar_665 = undoChar[665]; + UndoChar_666 = undoChar[666]; + UndoChar_667 = undoChar[667]; + UndoChar_668 = undoChar[668]; + UndoChar_669 = undoChar[669]; + UndoChar_670 = undoChar[670]; + UndoChar_671 = undoChar[671]; + UndoChar_672 = undoChar[672]; + UndoChar_673 = undoChar[673]; + UndoChar_674 = undoChar[674]; + UndoChar_675 = undoChar[675]; + UndoChar_676 = undoChar[676]; + UndoChar_677 = undoChar[677]; + UndoChar_678 = undoChar[678]; + UndoChar_679 = undoChar[679]; + UndoChar_680 = undoChar[680]; + UndoChar_681 = undoChar[681]; + UndoChar_682 = undoChar[682]; + UndoChar_683 = undoChar[683]; + UndoChar_684 = undoChar[684]; + UndoChar_685 = undoChar[685]; + UndoChar_686 = undoChar[686]; + UndoChar_687 = undoChar[687]; + UndoChar_688 = undoChar[688]; + UndoChar_689 = undoChar[689]; + UndoChar_690 = undoChar[690]; + UndoChar_691 = undoChar[691]; + UndoChar_692 = undoChar[692]; + UndoChar_693 = undoChar[693]; + UndoChar_694 = undoChar[694]; + UndoChar_695 = undoChar[695]; + UndoChar_696 = undoChar[696]; + UndoChar_697 = undoChar[697]; + UndoChar_698 = undoChar[698]; + UndoChar_699 = undoChar[699]; + UndoChar_700 = undoChar[700]; + UndoChar_701 = undoChar[701]; + UndoChar_702 = undoChar[702]; + UndoChar_703 = undoChar[703]; + UndoChar_704 = undoChar[704]; + UndoChar_705 = undoChar[705]; + UndoChar_706 = undoChar[706]; + UndoChar_707 = undoChar[707]; + UndoChar_708 = undoChar[708]; + UndoChar_709 = undoChar[709]; + UndoChar_710 = undoChar[710]; + UndoChar_711 = undoChar[711]; + UndoChar_712 = undoChar[712]; + UndoChar_713 = undoChar[713]; + UndoChar_714 = undoChar[714]; + UndoChar_715 = undoChar[715]; + UndoChar_716 = undoChar[716]; + UndoChar_717 = undoChar[717]; + UndoChar_718 = undoChar[718]; + UndoChar_719 = undoChar[719]; + UndoChar_720 = undoChar[720]; + UndoChar_721 = undoChar[721]; + UndoChar_722 = undoChar[722]; + UndoChar_723 = undoChar[723]; + UndoChar_724 = undoChar[724]; + UndoChar_725 = undoChar[725]; + UndoChar_726 = undoChar[726]; + UndoChar_727 = undoChar[727]; + UndoChar_728 = undoChar[728]; + UndoChar_729 = undoChar[729]; + UndoChar_730 = undoChar[730]; + UndoChar_731 = undoChar[731]; + UndoChar_732 = undoChar[732]; + UndoChar_733 = undoChar[733]; + UndoChar_734 = undoChar[734]; + UndoChar_735 = undoChar[735]; + UndoChar_736 = undoChar[736]; + UndoChar_737 = undoChar[737]; + UndoChar_738 = undoChar[738]; + UndoChar_739 = undoChar[739]; + UndoChar_740 = undoChar[740]; + UndoChar_741 = undoChar[741]; + UndoChar_742 = undoChar[742]; + UndoChar_743 = undoChar[743]; + UndoChar_744 = undoChar[744]; + UndoChar_745 = undoChar[745]; + UndoChar_746 = undoChar[746]; + UndoChar_747 = undoChar[747]; + UndoChar_748 = undoChar[748]; + UndoChar_749 = undoChar[749]; + UndoChar_750 = undoChar[750]; + UndoChar_751 = undoChar[751]; + UndoChar_752 = undoChar[752]; + UndoChar_753 = undoChar[753]; + UndoChar_754 = undoChar[754]; + UndoChar_755 = undoChar[755]; + UndoChar_756 = undoChar[756]; + UndoChar_757 = undoChar[757]; + UndoChar_758 = undoChar[758]; + UndoChar_759 = undoChar[759]; + UndoChar_760 = undoChar[760]; + UndoChar_761 = undoChar[761]; + UndoChar_762 = undoChar[762]; + UndoChar_763 = undoChar[763]; + UndoChar_764 = undoChar[764]; + UndoChar_765 = undoChar[765]; + UndoChar_766 = undoChar[766]; + UndoChar_767 = undoChar[767]; + UndoChar_768 = undoChar[768]; + UndoChar_769 = undoChar[769]; + UndoChar_770 = undoChar[770]; + UndoChar_771 = undoChar[771]; + UndoChar_772 = undoChar[772]; + UndoChar_773 = undoChar[773]; + UndoChar_774 = undoChar[774]; + UndoChar_775 = undoChar[775]; + UndoChar_776 = undoChar[776]; + UndoChar_777 = undoChar[777]; + UndoChar_778 = undoChar[778]; + UndoChar_779 = undoChar[779]; + UndoChar_780 = undoChar[780]; + UndoChar_781 = undoChar[781]; + UndoChar_782 = undoChar[782]; + UndoChar_783 = undoChar[783]; + UndoChar_784 = undoChar[784]; + UndoChar_785 = undoChar[785]; + UndoChar_786 = undoChar[786]; + UndoChar_787 = undoChar[787]; + UndoChar_788 = undoChar[788]; + UndoChar_789 = undoChar[789]; + UndoChar_790 = undoChar[790]; + UndoChar_791 = undoChar[791]; + UndoChar_792 = undoChar[792]; + UndoChar_793 = undoChar[793]; + UndoChar_794 = undoChar[794]; + UndoChar_795 = undoChar[795]; + UndoChar_796 = undoChar[796]; + UndoChar_797 = undoChar[797]; + UndoChar_798 = undoChar[798]; + UndoChar_799 = undoChar[799]; + UndoChar_800 = undoChar[800]; + UndoChar_801 = undoChar[801]; + UndoChar_802 = undoChar[802]; + UndoChar_803 = undoChar[803]; + UndoChar_804 = undoChar[804]; + UndoChar_805 = undoChar[805]; + UndoChar_806 = undoChar[806]; + UndoChar_807 = undoChar[807]; + UndoChar_808 = undoChar[808]; + UndoChar_809 = undoChar[809]; + UndoChar_810 = undoChar[810]; + UndoChar_811 = undoChar[811]; + UndoChar_812 = undoChar[812]; + UndoChar_813 = undoChar[813]; + UndoChar_814 = undoChar[814]; + UndoChar_815 = undoChar[815]; + UndoChar_816 = undoChar[816]; + UndoChar_817 = undoChar[817]; + UndoChar_818 = undoChar[818]; + UndoChar_819 = undoChar[819]; + UndoChar_820 = undoChar[820]; + UndoChar_821 = undoChar[821]; + UndoChar_822 = undoChar[822]; + UndoChar_823 = undoChar[823]; + UndoChar_824 = undoChar[824]; + UndoChar_825 = undoChar[825]; + UndoChar_826 = undoChar[826]; + UndoChar_827 = undoChar[827]; + UndoChar_828 = undoChar[828]; + UndoChar_829 = undoChar[829]; + UndoChar_830 = undoChar[830]; + UndoChar_831 = undoChar[831]; + UndoChar_832 = undoChar[832]; + UndoChar_833 = undoChar[833]; + UndoChar_834 = undoChar[834]; + UndoChar_835 = undoChar[835]; + UndoChar_836 = undoChar[836]; + UndoChar_837 = undoChar[837]; + UndoChar_838 = undoChar[838]; + UndoChar_839 = undoChar[839]; + UndoChar_840 = undoChar[840]; + UndoChar_841 = undoChar[841]; + UndoChar_842 = undoChar[842]; + UndoChar_843 = undoChar[843]; + UndoChar_844 = undoChar[844]; + UndoChar_845 = undoChar[845]; + UndoChar_846 = undoChar[846]; + UndoChar_847 = undoChar[847]; + UndoChar_848 = undoChar[848]; + UndoChar_849 = undoChar[849]; + UndoChar_850 = undoChar[850]; + UndoChar_851 = undoChar[851]; + UndoChar_852 = undoChar[852]; + UndoChar_853 = undoChar[853]; + UndoChar_854 = undoChar[854]; + UndoChar_855 = undoChar[855]; + UndoChar_856 = undoChar[856]; + UndoChar_857 = undoChar[857]; + UndoChar_858 = undoChar[858]; + UndoChar_859 = undoChar[859]; + UndoChar_860 = undoChar[860]; + UndoChar_861 = undoChar[861]; + UndoChar_862 = undoChar[862]; + UndoChar_863 = undoChar[863]; + UndoChar_864 = undoChar[864]; + UndoChar_865 = undoChar[865]; + UndoChar_866 = undoChar[866]; + UndoChar_867 = undoChar[867]; + UndoChar_868 = undoChar[868]; + UndoChar_869 = undoChar[869]; + UndoChar_870 = undoChar[870]; + UndoChar_871 = undoChar[871]; + UndoChar_872 = undoChar[872]; + UndoChar_873 = undoChar[873]; + UndoChar_874 = undoChar[874]; + UndoChar_875 = undoChar[875]; + UndoChar_876 = undoChar[876]; + UndoChar_877 = undoChar[877]; + UndoChar_878 = undoChar[878]; + UndoChar_879 = undoChar[879]; + UndoChar_880 = undoChar[880]; + UndoChar_881 = undoChar[881]; + UndoChar_882 = undoChar[882]; + UndoChar_883 = undoChar[883]; + UndoChar_884 = undoChar[884]; + UndoChar_885 = undoChar[885]; + UndoChar_886 = undoChar[886]; + UndoChar_887 = undoChar[887]; + UndoChar_888 = undoChar[888]; + UndoChar_889 = undoChar[889]; + UndoChar_890 = undoChar[890]; + UndoChar_891 = undoChar[891]; + UndoChar_892 = undoChar[892]; + UndoChar_893 = undoChar[893]; + UndoChar_894 = undoChar[894]; + UndoChar_895 = undoChar[895]; + UndoChar_896 = undoChar[896]; + UndoChar_897 = undoChar[897]; + UndoChar_898 = undoChar[898]; + UndoChar_899 = undoChar[899]; + UndoChar_900 = undoChar[900]; + UndoChar_901 = undoChar[901]; + UndoChar_902 = undoChar[902]; + UndoChar_903 = undoChar[903]; + UndoChar_904 = undoChar[904]; + UndoChar_905 = undoChar[905]; + UndoChar_906 = undoChar[906]; + UndoChar_907 = undoChar[907]; + UndoChar_908 = undoChar[908]; + UndoChar_909 = undoChar[909]; + UndoChar_910 = undoChar[910]; + UndoChar_911 = undoChar[911]; + UndoChar_912 = undoChar[912]; + UndoChar_913 = undoChar[913]; + UndoChar_914 = undoChar[914]; + UndoChar_915 = undoChar[915]; + UndoChar_916 = undoChar[916]; + UndoChar_917 = undoChar[917]; + UndoChar_918 = undoChar[918]; + UndoChar_919 = undoChar[919]; + UndoChar_920 = undoChar[920]; + UndoChar_921 = undoChar[921]; + UndoChar_922 = undoChar[922]; + UndoChar_923 = undoChar[923]; + UndoChar_924 = undoChar[924]; + UndoChar_925 = undoChar[925]; + UndoChar_926 = undoChar[926]; + UndoChar_927 = undoChar[927]; + UndoChar_928 = undoChar[928]; + UndoChar_929 = undoChar[929]; + UndoChar_930 = undoChar[930]; + UndoChar_931 = undoChar[931]; + UndoChar_932 = undoChar[932]; + UndoChar_933 = undoChar[933]; + UndoChar_934 = undoChar[934]; + UndoChar_935 = undoChar[935]; + UndoChar_936 = undoChar[936]; + UndoChar_937 = undoChar[937]; + UndoChar_938 = undoChar[938]; + UndoChar_939 = undoChar[939]; + UndoChar_940 = undoChar[940]; + UndoChar_941 = undoChar[941]; + UndoChar_942 = undoChar[942]; + UndoChar_943 = undoChar[943]; + UndoChar_944 = undoChar[944]; + UndoChar_945 = undoChar[945]; + UndoChar_946 = undoChar[946]; + UndoChar_947 = undoChar[947]; + UndoChar_948 = undoChar[948]; + UndoChar_949 = undoChar[949]; + UndoChar_950 = undoChar[950]; + UndoChar_951 = undoChar[951]; + UndoChar_952 = undoChar[952]; + UndoChar_953 = undoChar[953]; + UndoChar_954 = undoChar[954]; + UndoChar_955 = undoChar[955]; + UndoChar_956 = undoChar[956]; + UndoChar_957 = undoChar[957]; + UndoChar_958 = undoChar[958]; + UndoChar_959 = undoChar[959]; + UndoChar_960 = undoChar[960]; + UndoChar_961 = undoChar[961]; + UndoChar_962 = undoChar[962]; + UndoChar_963 = undoChar[963]; + UndoChar_964 = undoChar[964]; + UndoChar_965 = undoChar[965]; + UndoChar_966 = undoChar[966]; + UndoChar_967 = undoChar[967]; + UndoChar_968 = undoChar[968]; + UndoChar_969 = undoChar[969]; + UndoChar_970 = undoChar[970]; + UndoChar_971 = undoChar[971]; + UndoChar_972 = undoChar[972]; + UndoChar_973 = undoChar[973]; + UndoChar_974 = undoChar[974]; + UndoChar_975 = undoChar[975]; + UndoChar_976 = undoChar[976]; + UndoChar_977 = undoChar[977]; + UndoChar_978 = undoChar[978]; + UndoChar_979 = undoChar[979]; + UndoChar_980 = undoChar[980]; + UndoChar_981 = undoChar[981]; + UndoChar_982 = undoChar[982]; + UndoChar_983 = undoChar[983]; + UndoChar_984 = undoChar[984]; + UndoChar_985 = undoChar[985]; + UndoChar_986 = undoChar[986]; + UndoChar_987 = undoChar[987]; + UndoChar_988 = undoChar[988]; + UndoChar_989 = undoChar[989]; + UndoChar_990 = undoChar[990]; + UndoChar_991 = undoChar[991]; + UndoChar_992 = undoChar[992]; + UndoChar_993 = undoChar[993]; + UndoChar_994 = undoChar[994]; + UndoChar_995 = undoChar[995]; + UndoChar_996 = undoChar[996]; + UndoChar_997 = undoChar[997]; + UndoChar_998 = undoChar[998]; + } + UndoPoint = undoPoint; + RedoPoint = redoPoint; + UndoCharPoint = undoCharPoint; + RedoCharPoint = redoCharPoint; + } + + /// /// To be documented. /// public unsafe StbUndoState(Span undoRec = default, Span undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) + { + if (undoRec != default) + { + UndoRec_0 = undoRec[0]; + UndoRec_1 = undoRec[1]; + UndoRec_2 = undoRec[2]; + UndoRec_3 = undoRec[3]; + UndoRec_4 = undoRec[4]; + UndoRec_5 = undoRec[5]; + UndoRec_6 = undoRec[6]; + UndoRec_7 = undoRec[7]; + UndoRec_8 = undoRec[8]; + UndoRec_9 = undoRec[9]; + UndoRec_10 = undoRec[10]; + UndoRec_11 = undoRec[11]; + UndoRec_12 = undoRec[12]; + UndoRec_13 = undoRec[13]; + UndoRec_14 = undoRec[14]; + UndoRec_15 = undoRec[15]; + UndoRec_16 = undoRec[16]; + UndoRec_17 = undoRec[17]; + UndoRec_18 = undoRec[18]; + UndoRec_19 = undoRec[19]; + UndoRec_20 = undoRec[20]; + UndoRec_21 = undoRec[21]; + UndoRec_22 = undoRec[22]; + UndoRec_23 = undoRec[23]; + UndoRec_24 = undoRec[24]; + UndoRec_25 = undoRec[25]; + UndoRec_26 = undoRec[26]; + UndoRec_27 = undoRec[27]; + UndoRec_28 = undoRec[28]; + UndoRec_29 = undoRec[29]; + UndoRec_30 = undoRec[30]; + UndoRec_31 = undoRec[31]; + UndoRec_32 = undoRec[32]; + UndoRec_33 = undoRec[33]; + UndoRec_34 = undoRec[34]; + UndoRec_35 = undoRec[35]; + UndoRec_36 = undoRec[36]; + UndoRec_37 = undoRec[37]; + UndoRec_38 = undoRec[38]; + UndoRec_39 = undoRec[39]; + UndoRec_40 = undoRec[40]; + UndoRec_41 = undoRec[41]; + UndoRec_42 = undoRec[42]; + UndoRec_43 = undoRec[43]; + UndoRec_44 = undoRec[44]; + UndoRec_45 = undoRec[45]; + UndoRec_46 = undoRec[46]; + UndoRec_47 = undoRec[47]; + UndoRec_48 = undoRec[48]; + UndoRec_49 = undoRec[49]; + UndoRec_50 = undoRec[50]; + UndoRec_51 = undoRec[51]; + UndoRec_52 = undoRec[52]; + UndoRec_53 = undoRec[53]; + UndoRec_54 = undoRec[54]; + UndoRec_55 = undoRec[55]; + UndoRec_56 = undoRec[56]; + UndoRec_57 = undoRec[57]; + UndoRec_58 = undoRec[58]; + UndoRec_59 = undoRec[59]; + UndoRec_60 = undoRec[60]; + UndoRec_61 = undoRec[61]; + UndoRec_62 = undoRec[62]; + UndoRec_63 = undoRec[63]; + UndoRec_64 = undoRec[64]; + UndoRec_65 = undoRec[65]; + UndoRec_66 = undoRec[66]; + UndoRec_67 = undoRec[67]; + UndoRec_68 = undoRec[68]; + UndoRec_69 = undoRec[69]; + UndoRec_70 = undoRec[70]; + UndoRec_71 = undoRec[71]; + UndoRec_72 = undoRec[72]; + UndoRec_73 = undoRec[73]; + UndoRec_74 = undoRec[74]; + UndoRec_75 = undoRec[75]; + UndoRec_76 = undoRec[76]; + UndoRec_77 = undoRec[77]; + UndoRec_78 = undoRec[78]; + UndoRec_79 = undoRec[79]; + UndoRec_80 = undoRec[80]; + UndoRec_81 = undoRec[81]; + UndoRec_82 = undoRec[82]; + UndoRec_83 = undoRec[83]; + UndoRec_84 = undoRec[84]; + UndoRec_85 = undoRec[85]; + UndoRec_86 = undoRec[86]; + UndoRec_87 = undoRec[87]; + UndoRec_88 = undoRec[88]; + UndoRec_89 = undoRec[89]; + UndoRec_90 = undoRec[90]; + UndoRec_91 = undoRec[91]; + UndoRec_92 = undoRec[92]; + UndoRec_93 = undoRec[93]; + UndoRec_94 = undoRec[94]; + UndoRec_95 = undoRec[95]; + UndoRec_96 = undoRec[96]; + UndoRec_97 = undoRec[97]; + UndoRec_98 = undoRec[98]; + } + if (undoChar != default) + { + UndoChar_0 = undoChar[0]; + UndoChar_1 = undoChar[1]; + UndoChar_2 = undoChar[2]; + UndoChar_3 = undoChar[3]; + UndoChar_4 = undoChar[4]; + UndoChar_5 = undoChar[5]; + UndoChar_6 = undoChar[6]; + UndoChar_7 = undoChar[7]; + UndoChar_8 = undoChar[8]; + UndoChar_9 = undoChar[9]; + UndoChar_10 = undoChar[10]; + UndoChar_11 = undoChar[11]; + UndoChar_12 = undoChar[12]; + UndoChar_13 = undoChar[13]; + UndoChar_14 = undoChar[14]; + UndoChar_15 = undoChar[15]; + UndoChar_16 = undoChar[16]; + UndoChar_17 = undoChar[17]; + UndoChar_18 = undoChar[18]; + UndoChar_19 = undoChar[19]; + UndoChar_20 = undoChar[20]; + UndoChar_21 = undoChar[21]; + UndoChar_22 = undoChar[22]; + UndoChar_23 = undoChar[23]; + UndoChar_24 = undoChar[24]; + UndoChar_25 = undoChar[25]; + UndoChar_26 = undoChar[26]; + UndoChar_27 = undoChar[27]; + UndoChar_28 = undoChar[28]; + UndoChar_29 = undoChar[29]; + UndoChar_30 = undoChar[30]; + UndoChar_31 = undoChar[31]; + UndoChar_32 = undoChar[32]; + UndoChar_33 = undoChar[33]; + UndoChar_34 = undoChar[34]; + UndoChar_35 = undoChar[35]; + UndoChar_36 = undoChar[36]; + UndoChar_37 = undoChar[37]; + UndoChar_38 = undoChar[38]; + UndoChar_39 = undoChar[39]; + UndoChar_40 = undoChar[40]; + UndoChar_41 = undoChar[41]; + UndoChar_42 = undoChar[42]; + UndoChar_43 = undoChar[43]; + UndoChar_44 = undoChar[44]; + UndoChar_45 = undoChar[45]; + UndoChar_46 = undoChar[46]; + UndoChar_47 = undoChar[47]; + UndoChar_48 = undoChar[48]; + UndoChar_49 = undoChar[49]; + UndoChar_50 = undoChar[50]; + UndoChar_51 = undoChar[51]; + UndoChar_52 = undoChar[52]; + UndoChar_53 = undoChar[53]; + UndoChar_54 = undoChar[54]; + UndoChar_55 = undoChar[55]; + UndoChar_56 = undoChar[56]; + UndoChar_57 = undoChar[57]; + UndoChar_58 = undoChar[58]; + UndoChar_59 = undoChar[59]; + UndoChar_60 = undoChar[60]; + UndoChar_61 = undoChar[61]; + UndoChar_62 = undoChar[62]; + UndoChar_63 = undoChar[63]; + UndoChar_64 = undoChar[64]; + UndoChar_65 = undoChar[65]; + UndoChar_66 = undoChar[66]; + UndoChar_67 = undoChar[67]; + UndoChar_68 = undoChar[68]; + UndoChar_69 = undoChar[69]; + UndoChar_70 = undoChar[70]; + UndoChar_71 = undoChar[71]; + UndoChar_72 = undoChar[72]; + UndoChar_73 = undoChar[73]; + UndoChar_74 = undoChar[74]; + UndoChar_75 = undoChar[75]; + UndoChar_76 = undoChar[76]; + UndoChar_77 = undoChar[77]; + UndoChar_78 = undoChar[78]; + UndoChar_79 = undoChar[79]; + UndoChar_80 = undoChar[80]; + UndoChar_81 = undoChar[81]; + UndoChar_82 = undoChar[82]; + UndoChar_83 = undoChar[83]; + UndoChar_84 = undoChar[84]; + UndoChar_85 = undoChar[85]; + UndoChar_86 = undoChar[86]; + UndoChar_87 = undoChar[87]; + UndoChar_88 = undoChar[88]; + UndoChar_89 = undoChar[89]; + UndoChar_90 = undoChar[90]; + UndoChar_91 = undoChar[91]; + UndoChar_92 = undoChar[92]; + UndoChar_93 = undoChar[93]; + UndoChar_94 = undoChar[94]; + UndoChar_95 = undoChar[95]; + UndoChar_96 = undoChar[96]; + UndoChar_97 = undoChar[97]; + UndoChar_98 = undoChar[98]; + UndoChar_99 = undoChar[99]; + UndoChar_100 = undoChar[100]; + UndoChar_101 = undoChar[101]; + UndoChar_102 = undoChar[102]; + UndoChar_103 = undoChar[103]; + UndoChar_104 = undoChar[104]; + UndoChar_105 = undoChar[105]; + UndoChar_106 = undoChar[106]; + UndoChar_107 = undoChar[107]; + UndoChar_108 = undoChar[108]; + UndoChar_109 = undoChar[109]; + UndoChar_110 = undoChar[110]; + UndoChar_111 = undoChar[111]; + UndoChar_112 = undoChar[112]; + UndoChar_113 = undoChar[113]; + UndoChar_114 = undoChar[114]; + UndoChar_115 = undoChar[115]; + UndoChar_116 = undoChar[116]; + UndoChar_117 = undoChar[117]; + UndoChar_118 = undoChar[118]; + UndoChar_119 = undoChar[119]; + UndoChar_120 = undoChar[120]; + UndoChar_121 = undoChar[121]; + UndoChar_122 = undoChar[122]; + UndoChar_123 = undoChar[123]; + UndoChar_124 = undoChar[124]; + UndoChar_125 = undoChar[125]; + UndoChar_126 = undoChar[126]; + UndoChar_127 = undoChar[127]; + UndoChar_128 = undoChar[128]; + UndoChar_129 = undoChar[129]; + UndoChar_130 = undoChar[130]; + UndoChar_131 = undoChar[131]; + UndoChar_132 = undoChar[132]; + UndoChar_133 = undoChar[133]; + UndoChar_134 = undoChar[134]; + UndoChar_135 = undoChar[135]; + UndoChar_136 = undoChar[136]; + UndoChar_137 = undoChar[137]; + UndoChar_138 = undoChar[138]; + UndoChar_139 = undoChar[139]; + UndoChar_140 = undoChar[140]; + UndoChar_141 = undoChar[141]; + UndoChar_142 = undoChar[142]; + UndoChar_143 = undoChar[143]; + UndoChar_144 = undoChar[144]; + UndoChar_145 = undoChar[145]; + UndoChar_146 = undoChar[146]; + UndoChar_147 = undoChar[147]; + UndoChar_148 = undoChar[148]; + UndoChar_149 = undoChar[149]; + UndoChar_150 = undoChar[150]; + UndoChar_151 = undoChar[151]; + UndoChar_152 = undoChar[152]; + UndoChar_153 = undoChar[153]; + UndoChar_154 = undoChar[154]; + UndoChar_155 = undoChar[155]; + UndoChar_156 = undoChar[156]; + UndoChar_157 = undoChar[157]; + UndoChar_158 = undoChar[158]; + UndoChar_159 = undoChar[159]; + UndoChar_160 = undoChar[160]; + UndoChar_161 = undoChar[161]; + UndoChar_162 = undoChar[162]; + UndoChar_163 = undoChar[163]; + UndoChar_164 = undoChar[164]; + UndoChar_165 = undoChar[165]; + UndoChar_166 = undoChar[166]; + UndoChar_167 = undoChar[167]; + UndoChar_168 = undoChar[168]; + UndoChar_169 = undoChar[169]; + UndoChar_170 = undoChar[170]; + UndoChar_171 = undoChar[171]; + UndoChar_172 = undoChar[172]; + UndoChar_173 = undoChar[173]; + UndoChar_174 = undoChar[174]; + UndoChar_175 = undoChar[175]; + UndoChar_176 = undoChar[176]; + UndoChar_177 = undoChar[177]; + UndoChar_178 = undoChar[178]; + UndoChar_179 = undoChar[179]; + UndoChar_180 = undoChar[180]; + UndoChar_181 = undoChar[181]; + UndoChar_182 = undoChar[182]; + UndoChar_183 = undoChar[183]; + UndoChar_184 = undoChar[184]; + UndoChar_185 = undoChar[185]; + UndoChar_186 = undoChar[186]; + UndoChar_187 = undoChar[187]; + UndoChar_188 = undoChar[188]; + UndoChar_189 = undoChar[189]; + UndoChar_190 = undoChar[190]; + UndoChar_191 = undoChar[191]; + UndoChar_192 = undoChar[192]; + UndoChar_193 = undoChar[193]; + UndoChar_194 = undoChar[194]; + UndoChar_195 = undoChar[195]; + UndoChar_196 = undoChar[196]; + UndoChar_197 = undoChar[197]; + UndoChar_198 = undoChar[198]; + UndoChar_199 = undoChar[199]; + UndoChar_200 = undoChar[200]; + UndoChar_201 = undoChar[201]; + UndoChar_202 = undoChar[202]; + UndoChar_203 = undoChar[203]; + UndoChar_204 = undoChar[204]; + UndoChar_205 = undoChar[205]; + UndoChar_206 = undoChar[206]; + UndoChar_207 = undoChar[207]; + UndoChar_208 = undoChar[208]; + UndoChar_209 = undoChar[209]; + UndoChar_210 = undoChar[210]; + UndoChar_211 = undoChar[211]; + UndoChar_212 = undoChar[212]; + UndoChar_213 = undoChar[213]; + UndoChar_214 = undoChar[214]; + UndoChar_215 = undoChar[215]; + UndoChar_216 = undoChar[216]; + UndoChar_217 = undoChar[217]; + UndoChar_218 = undoChar[218]; + UndoChar_219 = undoChar[219]; + UndoChar_220 = undoChar[220]; + UndoChar_221 = undoChar[221]; + UndoChar_222 = undoChar[222]; + UndoChar_223 = undoChar[223]; + UndoChar_224 = undoChar[224]; + UndoChar_225 = undoChar[225]; + UndoChar_226 = undoChar[226]; + UndoChar_227 = undoChar[227]; + UndoChar_228 = undoChar[228]; + UndoChar_229 = undoChar[229]; + UndoChar_230 = undoChar[230]; + UndoChar_231 = undoChar[231]; + UndoChar_232 = undoChar[232]; + UndoChar_233 = undoChar[233]; + UndoChar_234 = undoChar[234]; + UndoChar_235 = undoChar[235]; + UndoChar_236 = undoChar[236]; + UndoChar_237 = undoChar[237]; + UndoChar_238 = undoChar[238]; + UndoChar_239 = undoChar[239]; + UndoChar_240 = undoChar[240]; + UndoChar_241 = undoChar[241]; + UndoChar_242 = undoChar[242]; + UndoChar_243 = undoChar[243]; + UndoChar_244 = undoChar[244]; + UndoChar_245 = undoChar[245]; + UndoChar_246 = undoChar[246]; + UndoChar_247 = undoChar[247]; + UndoChar_248 = undoChar[248]; + UndoChar_249 = undoChar[249]; + UndoChar_250 = undoChar[250]; + UndoChar_251 = undoChar[251]; + UndoChar_252 = undoChar[252]; + UndoChar_253 = undoChar[253]; + UndoChar_254 = undoChar[254]; + UndoChar_255 = undoChar[255]; + UndoChar_256 = undoChar[256]; + UndoChar_257 = undoChar[257]; + UndoChar_258 = undoChar[258]; + UndoChar_259 = undoChar[259]; + UndoChar_260 = undoChar[260]; + UndoChar_261 = undoChar[261]; + UndoChar_262 = undoChar[262]; + UndoChar_263 = undoChar[263]; + UndoChar_264 = undoChar[264]; + UndoChar_265 = undoChar[265]; + UndoChar_266 = undoChar[266]; + UndoChar_267 = undoChar[267]; + UndoChar_268 = undoChar[268]; + UndoChar_269 = undoChar[269]; + UndoChar_270 = undoChar[270]; + UndoChar_271 = undoChar[271]; + UndoChar_272 = undoChar[272]; + UndoChar_273 = undoChar[273]; + UndoChar_274 = undoChar[274]; + UndoChar_275 = undoChar[275]; + UndoChar_276 = undoChar[276]; + UndoChar_277 = undoChar[277]; + UndoChar_278 = undoChar[278]; + UndoChar_279 = undoChar[279]; + UndoChar_280 = undoChar[280]; + UndoChar_281 = undoChar[281]; + UndoChar_282 = undoChar[282]; + UndoChar_283 = undoChar[283]; + UndoChar_284 = undoChar[284]; + UndoChar_285 = undoChar[285]; + UndoChar_286 = undoChar[286]; + UndoChar_287 = undoChar[287]; + UndoChar_288 = undoChar[288]; + UndoChar_289 = undoChar[289]; + UndoChar_290 = undoChar[290]; + UndoChar_291 = undoChar[291]; + UndoChar_292 = undoChar[292]; + UndoChar_293 = undoChar[293]; + UndoChar_294 = undoChar[294]; + UndoChar_295 = undoChar[295]; + UndoChar_296 = undoChar[296]; + UndoChar_297 = undoChar[297]; + UndoChar_298 = undoChar[298]; + UndoChar_299 = undoChar[299]; + UndoChar_300 = undoChar[300]; + UndoChar_301 = undoChar[301]; + UndoChar_302 = undoChar[302]; + UndoChar_303 = undoChar[303]; + UndoChar_304 = undoChar[304]; + UndoChar_305 = undoChar[305]; + UndoChar_306 = undoChar[306]; + UndoChar_307 = undoChar[307]; + UndoChar_308 = undoChar[308]; + UndoChar_309 = undoChar[309]; + UndoChar_310 = undoChar[310]; + UndoChar_311 = undoChar[311]; + UndoChar_312 = undoChar[312]; + UndoChar_313 = undoChar[313]; + UndoChar_314 = undoChar[314]; + UndoChar_315 = undoChar[315]; + UndoChar_316 = undoChar[316]; + UndoChar_317 = undoChar[317]; + UndoChar_318 = undoChar[318]; + UndoChar_319 = undoChar[319]; + UndoChar_320 = undoChar[320]; + UndoChar_321 = undoChar[321]; + UndoChar_322 = undoChar[322]; + UndoChar_323 = undoChar[323]; + UndoChar_324 = undoChar[324]; + UndoChar_325 = undoChar[325]; + UndoChar_326 = undoChar[326]; + UndoChar_327 = undoChar[327]; + UndoChar_328 = undoChar[328]; + UndoChar_329 = undoChar[329]; + UndoChar_330 = undoChar[330]; + UndoChar_331 = undoChar[331]; + UndoChar_332 = undoChar[332]; + UndoChar_333 = undoChar[333]; + UndoChar_334 = undoChar[334]; + UndoChar_335 = undoChar[335]; + UndoChar_336 = undoChar[336]; + UndoChar_337 = undoChar[337]; + UndoChar_338 = undoChar[338]; + UndoChar_339 = undoChar[339]; + UndoChar_340 = undoChar[340]; + UndoChar_341 = undoChar[341]; + UndoChar_342 = undoChar[342]; + UndoChar_343 = undoChar[343]; + UndoChar_344 = undoChar[344]; + UndoChar_345 = undoChar[345]; + UndoChar_346 = undoChar[346]; + UndoChar_347 = undoChar[347]; + UndoChar_348 = undoChar[348]; + UndoChar_349 = undoChar[349]; + UndoChar_350 = undoChar[350]; + UndoChar_351 = undoChar[351]; + UndoChar_352 = undoChar[352]; + UndoChar_353 = undoChar[353]; + UndoChar_354 = undoChar[354]; + UndoChar_355 = undoChar[355]; + UndoChar_356 = undoChar[356]; + UndoChar_357 = undoChar[357]; + UndoChar_358 = undoChar[358]; + UndoChar_359 = undoChar[359]; + UndoChar_360 = undoChar[360]; + UndoChar_361 = undoChar[361]; + UndoChar_362 = undoChar[362]; + UndoChar_363 = undoChar[363]; + UndoChar_364 = undoChar[364]; + UndoChar_365 = undoChar[365]; + UndoChar_366 = undoChar[366]; + UndoChar_367 = undoChar[367]; + UndoChar_368 = undoChar[368]; + UndoChar_369 = undoChar[369]; + UndoChar_370 = undoChar[370]; + UndoChar_371 = undoChar[371]; + UndoChar_372 = undoChar[372]; + UndoChar_373 = undoChar[373]; + UndoChar_374 = undoChar[374]; + UndoChar_375 = undoChar[375]; + UndoChar_376 = undoChar[376]; + UndoChar_377 = undoChar[377]; + UndoChar_378 = undoChar[378]; + UndoChar_379 = undoChar[379]; + UndoChar_380 = undoChar[380]; + UndoChar_381 = undoChar[381]; + UndoChar_382 = undoChar[382]; + UndoChar_383 = undoChar[383]; + UndoChar_384 = undoChar[384]; + UndoChar_385 = undoChar[385]; + UndoChar_386 = undoChar[386]; + UndoChar_387 = undoChar[387]; + UndoChar_388 = undoChar[388]; + UndoChar_389 = undoChar[389]; + UndoChar_390 = undoChar[390]; + UndoChar_391 = undoChar[391]; + UndoChar_392 = undoChar[392]; + UndoChar_393 = undoChar[393]; + UndoChar_394 = undoChar[394]; + UndoChar_395 = undoChar[395]; + UndoChar_396 = undoChar[396]; + UndoChar_397 = undoChar[397]; + UndoChar_398 = undoChar[398]; + UndoChar_399 = undoChar[399]; + UndoChar_400 = undoChar[400]; + UndoChar_401 = undoChar[401]; + UndoChar_402 = undoChar[402]; + UndoChar_403 = undoChar[403]; + UndoChar_404 = undoChar[404]; + UndoChar_405 = undoChar[405]; + UndoChar_406 = undoChar[406]; + UndoChar_407 = undoChar[407]; + UndoChar_408 = undoChar[408]; + UndoChar_409 = undoChar[409]; + UndoChar_410 = undoChar[410]; + UndoChar_411 = undoChar[411]; + UndoChar_412 = undoChar[412]; + UndoChar_413 = undoChar[413]; + UndoChar_414 = undoChar[414]; + UndoChar_415 = undoChar[415]; + UndoChar_416 = undoChar[416]; + UndoChar_417 = undoChar[417]; + UndoChar_418 = undoChar[418]; + UndoChar_419 = undoChar[419]; + UndoChar_420 = undoChar[420]; + UndoChar_421 = undoChar[421]; + UndoChar_422 = undoChar[422]; + UndoChar_423 = undoChar[423]; + UndoChar_424 = undoChar[424]; + UndoChar_425 = undoChar[425]; + UndoChar_426 = undoChar[426]; + UndoChar_427 = undoChar[427]; + UndoChar_428 = undoChar[428]; + UndoChar_429 = undoChar[429]; + UndoChar_430 = undoChar[430]; + UndoChar_431 = undoChar[431]; + UndoChar_432 = undoChar[432]; + UndoChar_433 = undoChar[433]; + UndoChar_434 = undoChar[434]; + UndoChar_435 = undoChar[435]; + UndoChar_436 = undoChar[436]; + UndoChar_437 = undoChar[437]; + UndoChar_438 = undoChar[438]; + UndoChar_439 = undoChar[439]; + UndoChar_440 = undoChar[440]; + UndoChar_441 = undoChar[441]; + UndoChar_442 = undoChar[442]; + UndoChar_443 = undoChar[443]; + UndoChar_444 = undoChar[444]; + UndoChar_445 = undoChar[445]; + UndoChar_446 = undoChar[446]; + UndoChar_447 = undoChar[447]; + UndoChar_448 = undoChar[448]; + UndoChar_449 = undoChar[449]; + UndoChar_450 = undoChar[450]; + UndoChar_451 = undoChar[451]; + UndoChar_452 = undoChar[452]; + UndoChar_453 = undoChar[453]; + UndoChar_454 = undoChar[454]; + UndoChar_455 = undoChar[455]; + UndoChar_456 = undoChar[456]; + UndoChar_457 = undoChar[457]; + UndoChar_458 = undoChar[458]; + UndoChar_459 = undoChar[459]; + UndoChar_460 = undoChar[460]; + UndoChar_461 = undoChar[461]; + UndoChar_462 = undoChar[462]; + UndoChar_463 = undoChar[463]; + UndoChar_464 = undoChar[464]; + UndoChar_465 = undoChar[465]; + UndoChar_466 = undoChar[466]; + UndoChar_467 = undoChar[467]; + UndoChar_468 = undoChar[468]; + UndoChar_469 = undoChar[469]; + UndoChar_470 = undoChar[470]; + UndoChar_471 = undoChar[471]; + UndoChar_472 = undoChar[472]; + UndoChar_473 = undoChar[473]; + UndoChar_474 = undoChar[474]; + UndoChar_475 = undoChar[475]; + UndoChar_476 = undoChar[476]; + UndoChar_477 = undoChar[477]; + UndoChar_478 = undoChar[478]; + UndoChar_479 = undoChar[479]; + UndoChar_480 = undoChar[480]; + UndoChar_481 = undoChar[481]; + UndoChar_482 = undoChar[482]; + UndoChar_483 = undoChar[483]; + UndoChar_484 = undoChar[484]; + UndoChar_485 = undoChar[485]; + UndoChar_486 = undoChar[486]; + UndoChar_487 = undoChar[487]; + UndoChar_488 = undoChar[488]; + UndoChar_489 = undoChar[489]; + UndoChar_490 = undoChar[490]; + UndoChar_491 = undoChar[491]; + UndoChar_492 = undoChar[492]; + UndoChar_493 = undoChar[493]; + UndoChar_494 = undoChar[494]; + UndoChar_495 = undoChar[495]; + UndoChar_496 = undoChar[496]; + UndoChar_497 = undoChar[497]; + UndoChar_498 = undoChar[498]; + UndoChar_499 = undoChar[499]; + UndoChar_500 = undoChar[500]; + UndoChar_501 = undoChar[501]; + UndoChar_502 = undoChar[502]; + UndoChar_503 = undoChar[503]; + UndoChar_504 = undoChar[504]; + UndoChar_505 = undoChar[505]; + UndoChar_506 = undoChar[506]; + UndoChar_507 = undoChar[507]; + UndoChar_508 = undoChar[508]; + UndoChar_509 = undoChar[509]; + UndoChar_510 = undoChar[510]; + UndoChar_511 = undoChar[511]; + UndoChar_512 = undoChar[512]; + UndoChar_513 = undoChar[513]; + UndoChar_514 = undoChar[514]; + UndoChar_515 = undoChar[515]; + UndoChar_516 = undoChar[516]; + UndoChar_517 = undoChar[517]; + UndoChar_518 = undoChar[518]; + UndoChar_519 = undoChar[519]; + UndoChar_520 = undoChar[520]; + UndoChar_521 = undoChar[521]; + UndoChar_522 = undoChar[522]; + UndoChar_523 = undoChar[523]; + UndoChar_524 = undoChar[524]; + UndoChar_525 = undoChar[525]; + UndoChar_526 = undoChar[526]; + UndoChar_527 = undoChar[527]; + UndoChar_528 = undoChar[528]; + UndoChar_529 = undoChar[529]; + UndoChar_530 = undoChar[530]; + UndoChar_531 = undoChar[531]; + UndoChar_532 = undoChar[532]; + UndoChar_533 = undoChar[533]; + UndoChar_534 = undoChar[534]; + UndoChar_535 = undoChar[535]; + UndoChar_536 = undoChar[536]; + UndoChar_537 = undoChar[537]; + UndoChar_538 = undoChar[538]; + UndoChar_539 = undoChar[539]; + UndoChar_540 = undoChar[540]; + UndoChar_541 = undoChar[541]; + UndoChar_542 = undoChar[542]; + UndoChar_543 = undoChar[543]; + UndoChar_544 = undoChar[544]; + UndoChar_545 = undoChar[545]; + UndoChar_546 = undoChar[546]; + UndoChar_547 = undoChar[547]; + UndoChar_548 = undoChar[548]; + UndoChar_549 = undoChar[549]; + UndoChar_550 = undoChar[550]; + UndoChar_551 = undoChar[551]; + UndoChar_552 = undoChar[552]; + UndoChar_553 = undoChar[553]; + UndoChar_554 = undoChar[554]; + UndoChar_555 = undoChar[555]; + UndoChar_556 = undoChar[556]; + UndoChar_557 = undoChar[557]; + UndoChar_558 = undoChar[558]; + UndoChar_559 = undoChar[559]; + UndoChar_560 = undoChar[560]; + UndoChar_561 = undoChar[561]; + UndoChar_562 = undoChar[562]; + UndoChar_563 = undoChar[563]; + UndoChar_564 = undoChar[564]; + UndoChar_565 = undoChar[565]; + UndoChar_566 = undoChar[566]; + UndoChar_567 = undoChar[567]; + UndoChar_568 = undoChar[568]; + UndoChar_569 = undoChar[569]; + UndoChar_570 = undoChar[570]; + UndoChar_571 = undoChar[571]; + UndoChar_572 = undoChar[572]; + UndoChar_573 = undoChar[573]; + UndoChar_574 = undoChar[574]; + UndoChar_575 = undoChar[575]; + UndoChar_576 = undoChar[576]; + UndoChar_577 = undoChar[577]; + UndoChar_578 = undoChar[578]; + UndoChar_579 = undoChar[579]; + UndoChar_580 = undoChar[580]; + UndoChar_581 = undoChar[581]; + UndoChar_582 = undoChar[582]; + UndoChar_583 = undoChar[583]; + UndoChar_584 = undoChar[584]; + UndoChar_585 = undoChar[585]; + UndoChar_586 = undoChar[586]; + UndoChar_587 = undoChar[587]; + UndoChar_588 = undoChar[588]; + UndoChar_589 = undoChar[589]; + UndoChar_590 = undoChar[590]; + UndoChar_591 = undoChar[591]; + UndoChar_592 = undoChar[592]; + UndoChar_593 = undoChar[593]; + UndoChar_594 = undoChar[594]; + UndoChar_595 = undoChar[595]; + UndoChar_596 = undoChar[596]; + UndoChar_597 = undoChar[597]; + UndoChar_598 = undoChar[598]; + UndoChar_599 = undoChar[599]; + UndoChar_600 = undoChar[600]; + UndoChar_601 = undoChar[601]; + UndoChar_602 = undoChar[602]; + UndoChar_603 = undoChar[603]; + UndoChar_604 = undoChar[604]; + UndoChar_605 = undoChar[605]; + UndoChar_606 = undoChar[606]; + UndoChar_607 = undoChar[607]; + UndoChar_608 = undoChar[608]; + UndoChar_609 = undoChar[609]; + UndoChar_610 = undoChar[610]; + UndoChar_611 = undoChar[611]; + UndoChar_612 = undoChar[612]; + UndoChar_613 = undoChar[613]; + UndoChar_614 = undoChar[614]; + UndoChar_615 = undoChar[615]; + UndoChar_616 = undoChar[616]; + UndoChar_617 = undoChar[617]; + UndoChar_618 = undoChar[618]; + UndoChar_619 = undoChar[619]; + UndoChar_620 = undoChar[620]; + UndoChar_621 = undoChar[621]; + UndoChar_622 = undoChar[622]; + UndoChar_623 = undoChar[623]; + UndoChar_624 = undoChar[624]; + UndoChar_625 = undoChar[625]; + UndoChar_626 = undoChar[626]; + UndoChar_627 = undoChar[627]; + UndoChar_628 = undoChar[628]; + UndoChar_629 = undoChar[629]; + UndoChar_630 = undoChar[630]; + UndoChar_631 = undoChar[631]; + UndoChar_632 = undoChar[632]; + UndoChar_633 = undoChar[633]; + UndoChar_634 = undoChar[634]; + UndoChar_635 = undoChar[635]; + UndoChar_636 = undoChar[636]; + UndoChar_637 = undoChar[637]; + UndoChar_638 = undoChar[638]; + UndoChar_639 = undoChar[639]; + UndoChar_640 = undoChar[640]; + UndoChar_641 = undoChar[641]; + UndoChar_642 = undoChar[642]; + UndoChar_643 = undoChar[643]; + UndoChar_644 = undoChar[644]; + UndoChar_645 = undoChar[645]; + UndoChar_646 = undoChar[646]; + UndoChar_647 = undoChar[647]; + UndoChar_648 = undoChar[648]; + UndoChar_649 = undoChar[649]; + UndoChar_650 = undoChar[650]; + UndoChar_651 = undoChar[651]; + UndoChar_652 = undoChar[652]; + UndoChar_653 = undoChar[653]; + UndoChar_654 = undoChar[654]; + UndoChar_655 = undoChar[655]; + UndoChar_656 = undoChar[656]; + UndoChar_657 = undoChar[657]; + UndoChar_658 = undoChar[658]; + UndoChar_659 = undoChar[659]; + UndoChar_660 = undoChar[660]; + UndoChar_661 = undoChar[661]; + UndoChar_662 = undoChar[662]; + UndoChar_663 = undoChar[663]; + UndoChar_664 = undoChar[664]; + UndoChar_665 = undoChar[665]; + UndoChar_666 = undoChar[666]; + UndoChar_667 = undoChar[667]; + UndoChar_668 = undoChar[668]; + UndoChar_669 = undoChar[669]; + UndoChar_670 = undoChar[670]; + UndoChar_671 = undoChar[671]; + UndoChar_672 = undoChar[672]; + UndoChar_673 = undoChar[673]; + UndoChar_674 = undoChar[674]; + UndoChar_675 = undoChar[675]; + UndoChar_676 = undoChar[676]; + UndoChar_677 = undoChar[677]; + UndoChar_678 = undoChar[678]; + UndoChar_679 = undoChar[679]; + UndoChar_680 = undoChar[680]; + UndoChar_681 = undoChar[681]; + UndoChar_682 = undoChar[682]; + UndoChar_683 = undoChar[683]; + UndoChar_684 = undoChar[684]; + UndoChar_685 = undoChar[685]; + UndoChar_686 = undoChar[686]; + UndoChar_687 = undoChar[687]; + UndoChar_688 = undoChar[688]; + UndoChar_689 = undoChar[689]; + UndoChar_690 = undoChar[690]; + UndoChar_691 = undoChar[691]; + UndoChar_692 = undoChar[692]; + UndoChar_693 = undoChar[693]; + UndoChar_694 = undoChar[694]; + UndoChar_695 = undoChar[695]; + UndoChar_696 = undoChar[696]; + UndoChar_697 = undoChar[697]; + UndoChar_698 = undoChar[698]; + UndoChar_699 = undoChar[699]; + UndoChar_700 = undoChar[700]; + UndoChar_701 = undoChar[701]; + UndoChar_702 = undoChar[702]; + UndoChar_703 = undoChar[703]; + UndoChar_704 = undoChar[704]; + UndoChar_705 = undoChar[705]; + UndoChar_706 = undoChar[706]; + UndoChar_707 = undoChar[707]; + UndoChar_708 = undoChar[708]; + UndoChar_709 = undoChar[709]; + UndoChar_710 = undoChar[710]; + UndoChar_711 = undoChar[711]; + UndoChar_712 = undoChar[712]; + UndoChar_713 = undoChar[713]; + UndoChar_714 = undoChar[714]; + UndoChar_715 = undoChar[715]; + UndoChar_716 = undoChar[716]; + UndoChar_717 = undoChar[717]; + UndoChar_718 = undoChar[718]; + UndoChar_719 = undoChar[719]; + UndoChar_720 = undoChar[720]; + UndoChar_721 = undoChar[721]; + UndoChar_722 = undoChar[722]; + UndoChar_723 = undoChar[723]; + UndoChar_724 = undoChar[724]; + UndoChar_725 = undoChar[725]; + UndoChar_726 = undoChar[726]; + UndoChar_727 = undoChar[727]; + UndoChar_728 = undoChar[728]; + UndoChar_729 = undoChar[729]; + UndoChar_730 = undoChar[730]; + UndoChar_731 = undoChar[731]; + UndoChar_732 = undoChar[732]; + UndoChar_733 = undoChar[733]; + UndoChar_734 = undoChar[734]; + UndoChar_735 = undoChar[735]; + UndoChar_736 = undoChar[736]; + UndoChar_737 = undoChar[737]; + UndoChar_738 = undoChar[738]; + UndoChar_739 = undoChar[739]; + UndoChar_740 = undoChar[740]; + UndoChar_741 = undoChar[741]; + UndoChar_742 = undoChar[742]; + UndoChar_743 = undoChar[743]; + UndoChar_744 = undoChar[744]; + UndoChar_745 = undoChar[745]; + UndoChar_746 = undoChar[746]; + UndoChar_747 = undoChar[747]; + UndoChar_748 = undoChar[748]; + UndoChar_749 = undoChar[749]; + UndoChar_750 = undoChar[750]; + UndoChar_751 = undoChar[751]; + UndoChar_752 = undoChar[752]; + UndoChar_753 = undoChar[753]; + UndoChar_754 = undoChar[754]; + UndoChar_755 = undoChar[755]; + UndoChar_756 = undoChar[756]; + UndoChar_757 = undoChar[757]; + UndoChar_758 = undoChar[758]; + UndoChar_759 = undoChar[759]; + UndoChar_760 = undoChar[760]; + UndoChar_761 = undoChar[761]; + UndoChar_762 = undoChar[762]; + UndoChar_763 = undoChar[763]; + UndoChar_764 = undoChar[764]; + UndoChar_765 = undoChar[765]; + UndoChar_766 = undoChar[766]; + UndoChar_767 = undoChar[767]; + UndoChar_768 = undoChar[768]; + UndoChar_769 = undoChar[769]; + UndoChar_770 = undoChar[770]; + UndoChar_771 = undoChar[771]; + UndoChar_772 = undoChar[772]; + UndoChar_773 = undoChar[773]; + UndoChar_774 = undoChar[774]; + UndoChar_775 = undoChar[775]; + UndoChar_776 = undoChar[776]; + UndoChar_777 = undoChar[777]; + UndoChar_778 = undoChar[778]; + UndoChar_779 = undoChar[779]; + UndoChar_780 = undoChar[780]; + UndoChar_781 = undoChar[781]; + UndoChar_782 = undoChar[782]; + UndoChar_783 = undoChar[783]; + UndoChar_784 = undoChar[784]; + UndoChar_785 = undoChar[785]; + UndoChar_786 = undoChar[786]; + UndoChar_787 = undoChar[787]; + UndoChar_788 = undoChar[788]; + UndoChar_789 = undoChar[789]; + UndoChar_790 = undoChar[790]; + UndoChar_791 = undoChar[791]; + UndoChar_792 = undoChar[792]; + UndoChar_793 = undoChar[793]; + UndoChar_794 = undoChar[794]; + UndoChar_795 = undoChar[795]; + UndoChar_796 = undoChar[796]; + UndoChar_797 = undoChar[797]; + UndoChar_798 = undoChar[798]; + UndoChar_799 = undoChar[799]; + UndoChar_800 = undoChar[800]; + UndoChar_801 = undoChar[801]; + UndoChar_802 = undoChar[802]; + UndoChar_803 = undoChar[803]; + UndoChar_804 = undoChar[804]; + UndoChar_805 = undoChar[805]; + UndoChar_806 = undoChar[806]; + UndoChar_807 = undoChar[807]; + UndoChar_808 = undoChar[808]; + UndoChar_809 = undoChar[809]; + UndoChar_810 = undoChar[810]; + UndoChar_811 = undoChar[811]; + UndoChar_812 = undoChar[812]; + UndoChar_813 = undoChar[813]; + UndoChar_814 = undoChar[814]; + UndoChar_815 = undoChar[815]; + UndoChar_816 = undoChar[816]; + UndoChar_817 = undoChar[817]; + UndoChar_818 = undoChar[818]; + UndoChar_819 = undoChar[819]; + UndoChar_820 = undoChar[820]; + UndoChar_821 = undoChar[821]; + UndoChar_822 = undoChar[822]; + UndoChar_823 = undoChar[823]; + UndoChar_824 = undoChar[824]; + UndoChar_825 = undoChar[825]; + UndoChar_826 = undoChar[826]; + UndoChar_827 = undoChar[827]; + UndoChar_828 = undoChar[828]; + UndoChar_829 = undoChar[829]; + UndoChar_830 = undoChar[830]; + UndoChar_831 = undoChar[831]; + UndoChar_832 = undoChar[832]; + UndoChar_833 = undoChar[833]; + UndoChar_834 = undoChar[834]; + UndoChar_835 = undoChar[835]; + UndoChar_836 = undoChar[836]; + UndoChar_837 = undoChar[837]; + UndoChar_838 = undoChar[838]; + UndoChar_839 = undoChar[839]; + UndoChar_840 = undoChar[840]; + UndoChar_841 = undoChar[841]; + UndoChar_842 = undoChar[842]; + UndoChar_843 = undoChar[843]; + UndoChar_844 = undoChar[844]; + UndoChar_845 = undoChar[845]; + UndoChar_846 = undoChar[846]; + UndoChar_847 = undoChar[847]; + UndoChar_848 = undoChar[848]; + UndoChar_849 = undoChar[849]; + UndoChar_850 = undoChar[850]; + UndoChar_851 = undoChar[851]; + UndoChar_852 = undoChar[852]; + UndoChar_853 = undoChar[853]; + UndoChar_854 = undoChar[854]; + UndoChar_855 = undoChar[855]; + UndoChar_856 = undoChar[856]; + UndoChar_857 = undoChar[857]; + UndoChar_858 = undoChar[858]; + UndoChar_859 = undoChar[859]; + UndoChar_860 = undoChar[860]; + UndoChar_861 = undoChar[861]; + UndoChar_862 = undoChar[862]; + UndoChar_863 = undoChar[863]; + UndoChar_864 = undoChar[864]; + UndoChar_865 = undoChar[865]; + UndoChar_866 = undoChar[866]; + UndoChar_867 = undoChar[867]; + UndoChar_868 = undoChar[868]; + UndoChar_869 = undoChar[869]; + UndoChar_870 = undoChar[870]; + UndoChar_871 = undoChar[871]; + UndoChar_872 = undoChar[872]; + UndoChar_873 = undoChar[873]; + UndoChar_874 = undoChar[874]; + UndoChar_875 = undoChar[875]; + UndoChar_876 = undoChar[876]; + UndoChar_877 = undoChar[877]; + UndoChar_878 = undoChar[878]; + UndoChar_879 = undoChar[879]; + UndoChar_880 = undoChar[880]; + UndoChar_881 = undoChar[881]; + UndoChar_882 = undoChar[882]; + UndoChar_883 = undoChar[883]; + UndoChar_884 = undoChar[884]; + UndoChar_885 = undoChar[885]; + UndoChar_886 = undoChar[886]; + UndoChar_887 = undoChar[887]; + UndoChar_888 = undoChar[888]; + UndoChar_889 = undoChar[889]; + UndoChar_890 = undoChar[890]; + UndoChar_891 = undoChar[891]; + UndoChar_892 = undoChar[892]; + UndoChar_893 = undoChar[893]; + UndoChar_894 = undoChar[894]; + UndoChar_895 = undoChar[895]; + UndoChar_896 = undoChar[896]; + UndoChar_897 = undoChar[897]; + UndoChar_898 = undoChar[898]; + UndoChar_899 = undoChar[899]; + UndoChar_900 = undoChar[900]; + UndoChar_901 = undoChar[901]; + UndoChar_902 = undoChar[902]; + UndoChar_903 = undoChar[903]; + UndoChar_904 = undoChar[904]; + UndoChar_905 = undoChar[905]; + UndoChar_906 = undoChar[906]; + UndoChar_907 = undoChar[907]; + UndoChar_908 = undoChar[908]; + UndoChar_909 = undoChar[909]; + UndoChar_910 = undoChar[910]; + UndoChar_911 = undoChar[911]; + UndoChar_912 = undoChar[912]; + UndoChar_913 = undoChar[913]; + UndoChar_914 = undoChar[914]; + UndoChar_915 = undoChar[915]; + UndoChar_916 = undoChar[916]; + UndoChar_917 = undoChar[917]; + UndoChar_918 = undoChar[918]; + UndoChar_919 = undoChar[919]; + UndoChar_920 = undoChar[920]; + UndoChar_921 = undoChar[921]; + UndoChar_922 = undoChar[922]; + UndoChar_923 = undoChar[923]; + UndoChar_924 = undoChar[924]; + UndoChar_925 = undoChar[925]; + UndoChar_926 = undoChar[926]; + UndoChar_927 = undoChar[927]; + UndoChar_928 = undoChar[928]; + UndoChar_929 = undoChar[929]; + UndoChar_930 = undoChar[930]; + UndoChar_931 = undoChar[931]; + UndoChar_932 = undoChar[932]; + UndoChar_933 = undoChar[933]; + UndoChar_934 = undoChar[934]; + UndoChar_935 = undoChar[935]; + UndoChar_936 = undoChar[936]; + UndoChar_937 = undoChar[937]; + UndoChar_938 = undoChar[938]; + UndoChar_939 = undoChar[939]; + UndoChar_940 = undoChar[940]; + UndoChar_941 = undoChar[941]; + UndoChar_942 = undoChar[942]; + UndoChar_943 = undoChar[943]; + UndoChar_944 = undoChar[944]; + UndoChar_945 = undoChar[945]; + UndoChar_946 = undoChar[946]; + UndoChar_947 = undoChar[947]; + UndoChar_948 = undoChar[948]; + UndoChar_949 = undoChar[949]; + UndoChar_950 = undoChar[950]; + UndoChar_951 = undoChar[951]; + UndoChar_952 = undoChar[952]; + UndoChar_953 = undoChar[953]; + UndoChar_954 = undoChar[954]; + UndoChar_955 = undoChar[955]; + UndoChar_956 = undoChar[956]; + UndoChar_957 = undoChar[957]; + UndoChar_958 = undoChar[958]; + UndoChar_959 = undoChar[959]; + UndoChar_960 = undoChar[960]; + UndoChar_961 = undoChar[961]; + UndoChar_962 = undoChar[962]; + UndoChar_963 = undoChar[963]; + UndoChar_964 = undoChar[964]; + UndoChar_965 = undoChar[965]; + UndoChar_966 = undoChar[966]; + UndoChar_967 = undoChar[967]; + UndoChar_968 = undoChar[968]; + UndoChar_969 = undoChar[969]; + UndoChar_970 = undoChar[970]; + UndoChar_971 = undoChar[971]; + UndoChar_972 = undoChar[972]; + UndoChar_973 = undoChar[973]; + UndoChar_974 = undoChar[974]; + UndoChar_975 = undoChar[975]; + UndoChar_976 = undoChar[976]; + UndoChar_977 = undoChar[977]; + UndoChar_978 = undoChar[978]; + UndoChar_979 = undoChar[979]; + UndoChar_980 = undoChar[980]; + UndoChar_981 = undoChar[981]; + UndoChar_982 = undoChar[982]; + UndoChar_983 = undoChar[983]; + UndoChar_984 = undoChar[984]; + UndoChar_985 = undoChar[985]; + UndoChar_986 = undoChar[986]; + UndoChar_987 = undoChar[987]; + UndoChar_988 = undoChar[988]; + UndoChar_989 = undoChar[989]; + UndoChar_990 = undoChar[990]; + UndoChar_991 = undoChar[991]; + UndoChar_992 = undoChar[992]; + UndoChar_993 = undoChar[993]; + UndoChar_994 = undoChar[994]; + UndoChar_995 = undoChar[995]; + UndoChar_996 = undoChar[996]; + UndoChar_997 = undoChar[997]; + UndoChar_998 = undoChar[998]; + } + UndoPoint = undoPoint; + RedoPoint = redoPoint; + UndoCharPoint = undoCharPoint; + RedoCharPoint = redoCharPoint; + } + + + /// + /// To be documented. + /// + public unsafe Span UndoRec + + { + get + { + fixed (StbUndoRecord* p = &this.UndoRec_0) + { + return new Span(p, 99); + } + } + } + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct StbUndoRecord + { + /// + /// To be documented. + /// + public int Where; + + /// + /// To be documented. + /// + public int InsertLength; + + /// + /// To be documented. + /// + public int DeleteLength; + + /// + /// To be documented. + /// + public int CharStorage; + + + /// /// To be documented. /// public unsafe StbUndoRecord(int where = default, int insertLength = default, int deleteLength = default, int charStorage = default) + { + Where = where; + InsertLength = insertLength; + DeleteLength = deleteLength; + CharStorage = charStorage; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputTextDeactivatedState + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImVectorChar TextA; + + + /// /// To be documented. /// public unsafe ImGuiInputTextDeactivatedState(uint id = default, ImVectorChar textA = default) + { + ID = id; + TextA = textA; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiComboPreviewData + { + /// + /// To be documented. + /// + public ImRect PreviewRect; + + /// + /// To be documented. + /// + public Vector2 BackupCursorPos; + + /// + /// To be documented. + /// + public Vector2 BackupCursorMaxPos; + + /// + /// To be documented. + /// + public Vector2 BackupCursorPosPrevLine; + + /// + /// To be documented. + /// + public float BackupPrevLineTextBaseOffset; + + /// + /// To be documented. + /// + public int BackupLayout; + + + /// /// To be documented. /// public unsafe ImGuiComboPreviewData(ImRect previewRect = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, Vector2 backupCursorPosPrevLine = default, float backupPrevLineTextBaseOffset = default, int backupLayout = default) + { + PreviewRect = previewRect; + BackupCursorPos = backupCursorPos; + BackupCursorMaxPos = backupCursorMaxPos; + BackupCursorPosPrevLine = backupCursorPosPrevLine; + BackupPrevLineTextBaseOffset = backupPrevLineTextBaseOffset; + BackupLayout = backupLayout; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTypingSelectState + { + /// + /// To be documented. + /// + public ImGuiTypingSelectRequest Request; + + /// + /// To be documented. + /// + public byte SearchBuffer_0; + public byte SearchBuffer_1; + public byte SearchBuffer_2; + public byte SearchBuffer_3; + public byte SearchBuffer_4; + public byte SearchBuffer_5; + public byte SearchBuffer_6; + public byte SearchBuffer_7; + public byte SearchBuffer_8; + public byte SearchBuffer_9; + public byte SearchBuffer_10; + public byte SearchBuffer_11; + public byte SearchBuffer_12; + public byte SearchBuffer_13; + public byte SearchBuffer_14; + public byte SearchBuffer_15; + public byte SearchBuffer_16; + public byte SearchBuffer_17; + public byte SearchBuffer_18; + public byte SearchBuffer_19; + public byte SearchBuffer_20; + public byte SearchBuffer_21; + public byte SearchBuffer_22; + public byte SearchBuffer_23; + public byte SearchBuffer_24; + public byte SearchBuffer_25; + public byte SearchBuffer_26; + public byte SearchBuffer_27; + public byte SearchBuffer_28; + public byte SearchBuffer_29; + public byte SearchBuffer_30; + public byte SearchBuffer_31; + public byte SearchBuffer_32; + public byte SearchBuffer_33; + public byte SearchBuffer_34; + public byte SearchBuffer_35; + public byte SearchBuffer_36; + public byte SearchBuffer_37; + public byte SearchBuffer_38; + public byte SearchBuffer_39; + public byte SearchBuffer_40; + public byte SearchBuffer_41; + public byte SearchBuffer_42; + public byte SearchBuffer_43; + public byte SearchBuffer_44; + public byte SearchBuffer_45; + public byte SearchBuffer_46; + public byte SearchBuffer_47; + public byte SearchBuffer_48; + public byte SearchBuffer_49; + public byte SearchBuffer_50; + public byte SearchBuffer_51; + public byte SearchBuffer_52; + public byte SearchBuffer_53; + public byte SearchBuffer_54; + public byte SearchBuffer_55; + public byte SearchBuffer_56; + public byte SearchBuffer_57; + public byte SearchBuffer_58; + public byte SearchBuffer_59; + public byte SearchBuffer_60; + public byte SearchBuffer_61; + public byte SearchBuffer_62; + public byte SearchBuffer_63; + + /// + /// To be documented. + /// + public uint FocusScope; + + /// + /// To be documented. + /// + public int LastRequestFrame; + + /// + /// To be documented. + /// + public float LastRequestTime; + + /// + /// To be documented. + /// + public byte SingleCharModeLock; + + + /// /// To be documented. /// public unsafe ImGuiTypingSelectState(ImGuiTypingSelectRequest request = default, byte* searchBuffer = default, uint focusScope = default, int lastRequestFrame = default, float lastRequestTime = default, bool singleCharModeLock = default) + { + Request = request; + if (searchBuffer != default) + { + SearchBuffer_0 = searchBuffer[0]; + SearchBuffer_1 = searchBuffer[1]; + SearchBuffer_2 = searchBuffer[2]; + SearchBuffer_3 = searchBuffer[3]; + SearchBuffer_4 = searchBuffer[4]; + SearchBuffer_5 = searchBuffer[5]; + SearchBuffer_6 = searchBuffer[6]; + SearchBuffer_7 = searchBuffer[7]; + SearchBuffer_8 = searchBuffer[8]; + SearchBuffer_9 = searchBuffer[9]; + SearchBuffer_10 = searchBuffer[10]; + SearchBuffer_11 = searchBuffer[11]; + SearchBuffer_12 = searchBuffer[12]; + SearchBuffer_13 = searchBuffer[13]; + SearchBuffer_14 = searchBuffer[14]; + SearchBuffer_15 = searchBuffer[15]; + SearchBuffer_16 = searchBuffer[16]; + SearchBuffer_17 = searchBuffer[17]; + SearchBuffer_18 = searchBuffer[18]; + SearchBuffer_19 = searchBuffer[19]; + SearchBuffer_20 = searchBuffer[20]; + SearchBuffer_21 = searchBuffer[21]; + SearchBuffer_22 = searchBuffer[22]; + SearchBuffer_23 = searchBuffer[23]; + SearchBuffer_24 = searchBuffer[24]; + SearchBuffer_25 = searchBuffer[25]; + SearchBuffer_26 = searchBuffer[26]; + SearchBuffer_27 = searchBuffer[27]; + SearchBuffer_28 = searchBuffer[28]; + SearchBuffer_29 = searchBuffer[29]; + SearchBuffer_30 = searchBuffer[30]; + SearchBuffer_31 = searchBuffer[31]; + SearchBuffer_32 = searchBuffer[32]; + SearchBuffer_33 = searchBuffer[33]; + SearchBuffer_34 = searchBuffer[34]; + SearchBuffer_35 = searchBuffer[35]; + SearchBuffer_36 = searchBuffer[36]; + SearchBuffer_37 = searchBuffer[37]; + SearchBuffer_38 = searchBuffer[38]; + SearchBuffer_39 = searchBuffer[39]; + SearchBuffer_40 = searchBuffer[40]; + SearchBuffer_41 = searchBuffer[41]; + SearchBuffer_42 = searchBuffer[42]; + SearchBuffer_43 = searchBuffer[43]; + SearchBuffer_44 = searchBuffer[44]; + SearchBuffer_45 = searchBuffer[45]; + SearchBuffer_46 = searchBuffer[46]; + SearchBuffer_47 = searchBuffer[47]; + SearchBuffer_48 = searchBuffer[48]; + SearchBuffer_49 = searchBuffer[49]; + SearchBuffer_50 = searchBuffer[50]; + SearchBuffer_51 = searchBuffer[51]; + SearchBuffer_52 = searchBuffer[52]; + SearchBuffer_53 = searchBuffer[53]; + SearchBuffer_54 = searchBuffer[54]; + SearchBuffer_55 = searchBuffer[55]; + SearchBuffer_56 = searchBuffer[56]; + SearchBuffer_57 = searchBuffer[57]; + SearchBuffer_58 = searchBuffer[58]; + SearchBuffer_59 = searchBuffer[59]; + SearchBuffer_60 = searchBuffer[60]; + SearchBuffer_61 = searchBuffer[61]; + SearchBuffer_62 = searchBuffer[62]; + SearchBuffer_63 = searchBuffer[63]; + } + FocusScope = focusScope; + LastRequestFrame = lastRequestFrame; + LastRequestTime = lastRequestTime; + SingleCharModeLock = singleCharModeLock ? (byte)1 : (byte)0; + } + } +} diff --git a/Hexa.NET.ImGui/Generated/Structures.006.cs b/Hexa.NET.ImGui/Generated/Structures.006.cs new file mode 100644 index 0000000..4a76150 --- /dev/null +++ b/Hexa.NET.ImGui/Generated/Structures.006.cs @@ -0,0 +1,3243 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.ImGui +{ + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImDrawChannel + { + + /// /// To be documented. /// public unsafe ImGuiTypingSelectState(ImGuiTypingSelectRequest request = default, Span searchBuffer = default, uint focusScope = default, int lastRequestFrame = default, float lastRequestTime = default, bool singleCharModeLock = default) + { + Request = request; + if (searchBuffer != default) + { + SearchBuffer_0 = searchBuffer[0]; + SearchBuffer_1 = searchBuffer[1]; + SearchBuffer_2 = searchBuffer[2]; + SearchBuffer_3 = searchBuffer[3]; + SearchBuffer_4 = searchBuffer[4]; + SearchBuffer_5 = searchBuffer[5]; + SearchBuffer_6 = searchBuffer[6]; + SearchBuffer_7 = searchBuffer[7]; + SearchBuffer_8 = searchBuffer[8]; + SearchBuffer_9 = searchBuffer[9]; + SearchBuffer_10 = searchBuffer[10]; + SearchBuffer_11 = searchBuffer[11]; + SearchBuffer_12 = searchBuffer[12]; + SearchBuffer_13 = searchBuffer[13]; + SearchBuffer_14 = searchBuffer[14]; + SearchBuffer_15 = searchBuffer[15]; + SearchBuffer_16 = searchBuffer[16]; + SearchBuffer_17 = searchBuffer[17]; + SearchBuffer_18 = searchBuffer[18]; + SearchBuffer_19 = searchBuffer[19]; + SearchBuffer_20 = searchBuffer[20]; + SearchBuffer_21 = searchBuffer[21]; + SearchBuffer_22 = searchBuffer[22]; + SearchBuffer_23 = searchBuffer[23]; + SearchBuffer_24 = searchBuffer[24]; + SearchBuffer_25 = searchBuffer[25]; + SearchBuffer_26 = searchBuffer[26]; + SearchBuffer_27 = searchBuffer[27]; + SearchBuffer_28 = searchBuffer[28]; + SearchBuffer_29 = searchBuffer[29]; + SearchBuffer_30 = searchBuffer[30]; + SearchBuffer_31 = searchBuffer[31]; + SearchBuffer_32 = searchBuffer[32]; + SearchBuffer_33 = searchBuffer[33]; + SearchBuffer_34 = searchBuffer[34]; + SearchBuffer_35 = searchBuffer[35]; + SearchBuffer_36 = searchBuffer[36]; + SearchBuffer_37 = searchBuffer[37]; + SearchBuffer_38 = searchBuffer[38]; + SearchBuffer_39 = searchBuffer[39]; + SearchBuffer_40 = searchBuffer[40]; + SearchBuffer_41 = searchBuffer[41]; + SearchBuffer_42 = searchBuffer[42]; + SearchBuffer_43 = searchBuffer[43]; + SearchBuffer_44 = searchBuffer[44]; + SearchBuffer_45 = searchBuffer[45]; + SearchBuffer_46 = searchBuffer[46]; + SearchBuffer_47 = searchBuffer[47]; + SearchBuffer_48 = searchBuffer[48]; + SearchBuffer_49 = searchBuffer[49]; + SearchBuffer_50 = searchBuffer[50]; + SearchBuffer_51 = searchBuffer[51]; + SearchBuffer_52 = searchBuffer[52]; + SearchBuffer_53 = searchBuffer[53]; + SearchBuffer_54 = searchBuffer[54]; + SearchBuffer_55 = searchBuffer[55]; + SearchBuffer_56 = searchBuffer[56]; + SearchBuffer_57 = searchBuffer[57]; + SearchBuffer_58 = searchBuffer[58]; + SearchBuffer_59 = searchBuffer[59]; + SearchBuffer_60 = searchBuffer[60]; + SearchBuffer_61 = searchBuffer[61]; + SearchBuffer_62 = searchBuffer[62]; + SearchBuffer_63 = searchBuffer[63]; + } + FocusScope = focusScope; + LastRequestFrame = lastRequestFrame; + LastRequestTime = lastRequestTime; + SingleCharModeLock = singleCharModeLock ? (byte)1 : (byte)0; + } + + + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTypingSelectRequest + { + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public int SearchBufferLen; + + /// + /// To be documented. + /// + public unsafe byte* SearchBuffer; + + /// + /// To be documented. + /// + public byte SelectRequest; + + /// + /// To be documented. + /// + public byte SingleCharMode; + + /// + /// To be documented. + /// + public byte SingleCharSize; + + + /// /// To be documented. /// public unsafe ImGuiTypingSelectRequest(int flags = default, int searchBufferLen = default, byte* searchBuffer = default, bool selectRequest = default, bool singleCharMode = default, byte singleCharSize = default) + { + Flags = flags; + SearchBufferLen = searchBufferLen; + SearchBuffer = searchBuffer; + SelectRequest = selectRequest ? (byte)1 : (byte)0; + SingleCharMode = singleCharMode ? (byte)1 : (byte)0; + SingleCharSize = singleCharSize; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockContext + { + /// + /// To be documented. + /// + public ImGuiStorage Nodes; + + /// + /// To be documented. + /// + public ImVectorImGuiDockRequest Requests; + + /// + /// To be documented. + /// + public ImVectorImGuiDockNodeSettings NodesSettings; + + /// + /// To be documented. + /// + public byte WantFullRebuild; + + + /// /// To be documented. /// public unsafe ImGuiDockContext(ImGuiStorage nodes = default, ImVectorImGuiDockRequest requests = default, ImVectorImGuiDockNodeSettings nodesSettings = default, bool wantFullRebuild = default) + { + Nodes = nodes; + Requests = requests; + NodesSettings = nodesSettings; + WantFullRebuild = wantFullRebuild ? (byte)1 : (byte)0; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiDockRequest + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiDockRequest* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiDockRequest(int size = default, int capacity = default, ImGuiDockRequest* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockRequest + { + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiDockNodeSettings + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiDockNodeSettings* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiDockNodeSettings(int size = default, int capacity = default, ImGuiDockNodeSettings* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDockNodeSettings + { + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiSettingsHandler + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiSettingsHandler* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiSettingsHandler(int size = default, int capacity = default, ImGuiSettingsHandler* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiSettingsHandler + { + /// + /// To be documented. + /// + public unsafe byte* TypeName; + + /// + /// To be documented. + /// + public uint TypeHash; + + /// + /// To be documented. + /// + public unsafe void* ClearAllFn; + + /// + /// To be documented. + /// + public unsafe void* ReadInitFn; + + /// + /// To be documented. + /// + public unsafe void* ReadOpenFn; + + /// + /// To be documented. + /// + public unsafe void* ReadLineFn; + + /// + /// To be documented. + /// + public unsafe void* ApplyAllFn; + + /// + /// To be documented. + /// + public unsafe void* WriteAllFn; + + /// + /// To be documented. + /// + public unsafe void* UserData; + + + /// /// To be documented. /// public unsafe ImGuiSettingsHandler(byte* typeName = default, uint typeHash = default, delegate* clearAllFn = default, delegate* readInitFn = default, delegate* readOpenFn = default, delegate* readLineFn = default, delegate* applyAllFn = default, delegate* writeAllFn = default, void* userData = default) + { + TypeName = typeName; + TypeHash = typeHash; + ClearAllFn = (void*)clearAllFn; + ReadInitFn = (void*)readInitFn; + ReadOpenFn = (void*)readOpenFn; + ReadLineFn = (void*)readLineFn; + ApplyAllFn = (void*)applyAllFn; + WriteAllFn = (void*)writeAllFn; + UserData = userData; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImChunkStreamImGuiWindowSettings + { + /// + /// To be documented. + /// + public ImVectorChar Buf; + + + /// /// To be documented. /// public unsafe ImChunkStreamImGuiWindowSettings(ImVectorChar buf = default) + { + Buf = buf; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImChunkStreamImGuiTableSettings + { + /// + /// To be documented. + /// + public ImVectorChar Buf; + + + /// /// To be documented. /// public unsafe ImChunkStreamImGuiTableSettings(ImVectorChar buf = default) + { + Buf = buf; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiContextHook + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiContextHook* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiContextHook(int size = default, int capacity = default, ImGuiContextHook* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiContextHook + { + /// + /// To be documented. + /// + public uint HookId; + + /// + /// To be documented. + /// + public ImGuiContextHookType Type; + + /// + /// To be documented. + /// + public uint Owner; + + /// + /// To be documented. + /// + public unsafe void* Callback; + + /// + /// To be documented. + /// + public unsafe void* UserData; + + + /// /// To be documented. /// public unsafe ImGuiContextHook(uint hookId = default, ImGuiContextHookType type = default, uint owner = default, delegate* callback = default, void* userData = default) + { + HookId = hookId; + Type = type; + Owner = owner; + Callback = (void*)callback; + UserData = userData; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTextIndex + { + /// + /// To be documented. + /// + public ImVectorInt LineOffsets; + + /// + /// To be documented. + /// + public int EndOffset; + + + /// /// To be documented. /// public unsafe ImGuiTextIndex(ImVectorInt lineOffsets = default, int endOffset = default) + { + LineOffsets = lineOffsets; + EndOffset = endOffset; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorInt + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe int* Data; + + + /// /// To be documented. /// public unsafe ImVectorInt(int size = default, int capacity = default, int* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiMetricsConfig + { + /// + /// To be documented. + /// + public byte ShowDebugLog; + + /// + /// To be documented. + /// + public byte ShowIDStackTool; + + /// + /// To be documented. + /// + public byte ShowWindowsRects; + + /// + /// To be documented. + /// + public byte ShowWindowsBeginOrder; + + /// + /// To be documented. + /// + public byte ShowTablesRects; + + /// + /// To be documented. + /// + public byte ShowDrawCmdMesh; + + /// + /// To be documented. + /// + public byte ShowDrawCmdBoundingBoxes; + + /// + /// To be documented. + /// + public byte ShowAtlasTintedWithTextColor; + + /// + /// To be documented. + /// + public byte ShowDockingNodes; + + /// + /// To be documented. + /// + public int ShowWindowsRectsType; + + /// + /// To be documented. + /// + public int ShowTablesRectsType; + + + /// /// To be documented. /// public unsafe ImGuiMetricsConfig(bool showDebugLog = default, bool showIdStackTool = default, bool showWindowsRects = default, bool showWindowsBeginOrder = default, bool showTablesRects = default, bool showDrawCmdMesh = default, bool showDrawCmdBoundingBoxes = default, bool showAtlasTintedWithTextColor = default, bool showDockingNodes = default, int showWindowsRectsType = default, int showTablesRectsType = default) + { + ShowDebugLog = showDebugLog ? (byte)1 : (byte)0; + ShowIDStackTool = showIdStackTool ? (byte)1 : (byte)0; + ShowWindowsRects = showWindowsRects ? (byte)1 : (byte)0; + ShowWindowsBeginOrder = showWindowsBeginOrder ? (byte)1 : (byte)0; + ShowTablesRects = showTablesRects ? (byte)1 : (byte)0; + ShowDrawCmdMesh = showDrawCmdMesh ? (byte)1 : (byte)0; + ShowDrawCmdBoundingBoxes = showDrawCmdBoundingBoxes ? (byte)1 : (byte)0; + ShowAtlasTintedWithTextColor = showAtlasTintedWithTextColor ? (byte)1 : (byte)0; + ShowDockingNodes = showDockingNodes ? (byte)1 : (byte)0; + ShowWindowsRectsType = showWindowsRectsType; + ShowTablesRectsType = showTablesRectsType; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiIDStackTool + { + /// + /// To be documented. + /// + public int LastActiveFrame; + + /// + /// To be documented. + /// + public int StackLevel; + + /// + /// To be documented. + /// + public uint QueryId; + + /// + /// To be documented. + /// + public ImVectorImGuiStackLevelInfo Results; + + /// + /// To be documented. + /// + public byte CopyToClipboardOnCtrlC; + + /// + /// To be documented. + /// + public float CopyToClipboardLastTime; + + + /// /// To be documented. /// public unsafe ImGuiIDStackTool(int lastActiveFrame = default, int stackLevel = default, uint queryId = default, ImVectorImGuiStackLevelInfo results = default, bool copyToClipboardOnCtrlC = default, float copyToClipboardLastTime = default) + { + LastActiveFrame = lastActiveFrame; + StackLevel = stackLevel; + QueryId = queryId; + Results = results; + CopyToClipboardOnCtrlC = copyToClipboardOnCtrlC ? (byte)1 : (byte)0; + CopyToClipboardLastTime = copyToClipboardLastTime; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiStackLevelInfo + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiStackLevelInfo* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiStackLevelInfo(int size = default, int capacity = default, ImGuiStackLevelInfo* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiStackLevelInfo + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public byte QueryFrameCount; + + /// + /// To be documented. + /// + public byte QuerySuccess; + + /// + /// To be documented. + /// + public int DataType; + + /// + /// To be documented. + /// + public byte Desc_0; + public byte Desc_1; + public byte Desc_2; + public byte Desc_3; + public byte Desc_4; + public byte Desc_5; + public byte Desc_6; + public byte Desc_7; + public byte Desc_8; + public byte Desc_9; + public byte Desc_10; + public byte Desc_11; + public byte Desc_12; + public byte Desc_13; + public byte Desc_14; + public byte Desc_15; + public byte Desc_16; + public byte Desc_17; + public byte Desc_18; + public byte Desc_19; + public byte Desc_20; + public byte Desc_21; + public byte Desc_22; + public byte Desc_23; + public byte Desc_24; + public byte Desc_25; + public byte Desc_26; + public byte Desc_27; + public byte Desc_28; + public byte Desc_29; + public byte Desc_30; + public byte Desc_31; + public byte Desc_32; + public byte Desc_33; + public byte Desc_34; + public byte Desc_35; + public byte Desc_36; + public byte Desc_37; + public byte Desc_38; + public byte Desc_39; + public byte Desc_40; + public byte Desc_41; + public byte Desc_42; + public byte Desc_43; + public byte Desc_44; + public byte Desc_45; + public byte Desc_46; + public byte Desc_47; + public byte Desc_48; + public byte Desc_49; + public byte Desc_50; + public byte Desc_51; + public byte Desc_52; + public byte Desc_53; + public byte Desc_54; + public byte Desc_55; + public byte Desc_56; + + + /// /// To be documented. /// public unsafe ImGuiStackLevelInfo(uint id = default, byte queryFrameCount = default, bool querySuccess = default, int dataType = default, byte* desc = default) + { + ID = id; + QueryFrameCount = queryFrameCount; + QuerySuccess = querySuccess ? (byte)1 : (byte)0; + DataType = dataType; + if (desc != default) + { + Desc_0 = desc[0]; + Desc_1 = desc[1]; + Desc_2 = desc[2]; + Desc_3 = desc[3]; + Desc_4 = desc[4]; + Desc_5 = desc[5]; + Desc_6 = desc[6]; + Desc_7 = desc[7]; + Desc_8 = desc[8]; + Desc_9 = desc[9]; + Desc_10 = desc[10]; + Desc_11 = desc[11]; + Desc_12 = desc[12]; + Desc_13 = desc[13]; + Desc_14 = desc[14]; + Desc_15 = desc[15]; + Desc_16 = desc[16]; + Desc_17 = desc[17]; + Desc_18 = desc[18]; + Desc_19 = desc[19]; + Desc_20 = desc[20]; + Desc_21 = desc[21]; + Desc_22 = desc[22]; + Desc_23 = desc[23]; + Desc_24 = desc[24]; + Desc_25 = desc[25]; + Desc_26 = desc[26]; + Desc_27 = desc[27]; + Desc_28 = desc[28]; + Desc_29 = desc[29]; + Desc_30 = desc[30]; + Desc_31 = desc[31]; + Desc_32 = desc[32]; + Desc_33 = desc[33]; + Desc_34 = desc[34]; + Desc_35 = desc[35]; + Desc_36 = desc[36]; + Desc_37 = desc[37]; + Desc_38 = desc[38]; + Desc_39 = desc[39]; + Desc_40 = desc[40]; + Desc_41 = desc[41]; + Desc_42 = desc[42]; + Desc_43 = desc[43]; + Desc_44 = desc[44]; + Desc_45 = desc[45]; + Desc_46 = desc[46]; + Desc_47 = desc[47]; + Desc_48 = desc[48]; + Desc_49 = desc[49]; + Desc_50 = desc[50]; + Desc_51 = desc[51]; + Desc_52 = desc[52]; + Desc_53 = desc[53]; + Desc_54 = desc[54]; + Desc_55 = desc[55]; + Desc_56 = desc[56]; + } + } + + /// /// To be documented. /// public unsafe ImGuiStackLevelInfo(uint id = default, byte queryFrameCount = default, bool querySuccess = default, int dataType = default, Span desc = default) + { + ID = id; + QueryFrameCount = queryFrameCount; + QuerySuccess = querySuccess ? (byte)1 : (byte)0; + DataType = dataType; + if (desc != default) + { + Desc_0 = desc[0]; + Desc_1 = desc[1]; + Desc_2 = desc[2]; + Desc_3 = desc[3]; + Desc_4 = desc[4]; + Desc_5 = desc[5]; + Desc_6 = desc[6]; + Desc_7 = desc[7]; + Desc_8 = desc[8]; + Desc_9 = desc[9]; + Desc_10 = desc[10]; + Desc_11 = desc[11]; + Desc_12 = desc[12]; + Desc_13 = desc[13]; + Desc_14 = desc[14]; + Desc_15 = desc[15]; + Desc_16 = desc[16]; + Desc_17 = desc[17]; + Desc_18 = desc[18]; + Desc_19 = desc[19]; + Desc_20 = desc[20]; + Desc_21 = desc[21]; + Desc_22 = desc[22]; + Desc_23 = desc[23]; + Desc_24 = desc[24]; + Desc_25 = desc[25]; + Desc_26 = desc[26]; + Desc_27 = desc[27]; + Desc_28 = desc[28]; + Desc_29 = desc[29]; + Desc_30 = desc[30]; + Desc_31 = desc[31]; + Desc_32 = desc[32]; + Desc_33 = desc[33]; + Desc_34 = desc[34]; + Desc_35 = desc[35]; + Desc_36 = desc[36]; + Desc_37 = desc[37]; + Desc_38 = desc[38]; + Desc_39 = desc[39]; + Desc_40 = desc[40]; + Desc_41 = desc[41]; + Desc_42 = desc[42]; + Desc_43 = desc[43]; + Desc_44 = desc[44]; + Desc_45 = desc[45]; + Desc_46 = desc[46]; + Desc_47 = desc[47]; + Desc_48 = desc[48]; + Desc_49 = desc[49]; + Desc_50 = desc[50]; + Desc_51 = desc[51]; + Desc_52 = desc[52]; + Desc_53 = desc[53]; + Desc_54 = desc[54]; + Desc_55 = desc[55]; + Desc_56 = desc[56]; + } + } + + + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDebugAllocInfo + { + /// + /// To be documented. + /// + public int TotalAllocCount; + + /// + /// To be documented. + /// + public int TotalFreeCount; + + /// + /// To be documented. + /// + public short LastEntriesIdx; + + /// + /// To be documented. + /// + public ImGuiDebugAllocEntry LastEntriesBuf_0; + public ImGuiDebugAllocEntry LastEntriesBuf_1; + public ImGuiDebugAllocEntry LastEntriesBuf_2; + public ImGuiDebugAllocEntry LastEntriesBuf_3; + public ImGuiDebugAllocEntry LastEntriesBuf_4; + public ImGuiDebugAllocEntry LastEntriesBuf_5; + + + /// /// To be documented. /// public unsafe ImGuiDebugAllocInfo(int totalAllocCount = default, int totalFreeCount = default, short lastEntriesIdx = default, ImGuiDebugAllocEntry* lastEntriesBuf = default) + { + TotalAllocCount = totalAllocCount; + TotalFreeCount = totalFreeCount; + LastEntriesIdx = lastEntriesIdx; + if (lastEntriesBuf != default) + { + LastEntriesBuf_0 = lastEntriesBuf[0]; + LastEntriesBuf_1 = lastEntriesBuf[1]; + LastEntriesBuf_2 = lastEntriesBuf[2]; + LastEntriesBuf_3 = lastEntriesBuf[3]; + LastEntriesBuf_4 = lastEntriesBuf[4]; + LastEntriesBuf_5 = lastEntriesBuf[5]; + } + } + + /// /// To be documented. /// public unsafe ImGuiDebugAllocInfo(int totalAllocCount = default, int totalFreeCount = default, short lastEntriesIdx = default, Span lastEntriesBuf = default) + { + TotalAllocCount = totalAllocCount; + TotalFreeCount = totalFreeCount; + LastEntriesIdx = lastEntriesIdx; + if (lastEntriesBuf != default) + { + LastEntriesBuf_0 = lastEntriesBuf[0]; + LastEntriesBuf_1 = lastEntriesBuf[1]; + LastEntriesBuf_2 = lastEntriesBuf[2]; + LastEntriesBuf_3 = lastEntriesBuf[3]; + LastEntriesBuf_4 = lastEntriesBuf[4]; + LastEntriesBuf_5 = lastEntriesBuf[5]; + } + } + + + /// + /// To be documented. + /// + public unsafe Span LastEntriesBuf + + { + get + { + fixed (ImGuiDebugAllocEntry* p = &this.LastEntriesBuf_0) + { + return new Span(p, 6); + } + } + } + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDebugAllocEntry + { + /// + /// To be documented. + /// + public int FrameCount; + + /// + /// To be documented. + /// + public short AllocCount; + + /// + /// To be documented. + /// + public short FreeCount; + + + /// /// To be documented. /// public unsafe ImGuiDebugAllocEntry(int frameCount = default, short allocCount = default, short freeCount = default) + { + FrameCount = frameCount; + AllocCount = allocCount; + FreeCount = freeCount; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputTextCallbackData + { + /// + /// To be documented. + /// + public unsafe ImGuiContext* Ctx; + + /// + /// To be documented. + /// + public int EventFlag; + + /// + /// To be documented. + /// + public int Flags; + + /// + /// To be documented. + /// + public unsafe void* UserData; + + /// + /// To be documented. + /// + public ushort EventChar; + + /// + /// To be documented. + /// + public ImGuiKey EventKey; + + /// + /// To be documented. + /// + public unsafe byte* Buf; + + /// + /// To be documented. + /// + public int BufTextLen; + + /// + /// To be documented. + /// + public int BufSize; + + /// + /// To be documented. + /// + public byte BufDirty; + + /// + /// To be documented. + /// + public int CursorPos; + + /// + /// To be documented. + /// + public int SelectionStart; + + /// + /// To be documented. + /// + public int SelectionEnd; + + + + /// /// To be documented. /// public unsafe ImGuiInputTextCallbackData(ImGuiContext* ctx = default, int eventFlag = default, int flags = default, void* userData = default, ushort eventChar = default, ImGuiKey eventKey = default, byte* buf = default, int bufTextLen = default, int bufSize = default, bool bufDirty = default, int cursorPos = default, int selectionStart = default, int selectionEnd = default) + { + Ctx = ctx; + EventFlag = eventFlag; + Flags = flags; + UserData = userData; + EventChar = eventChar; + EventKey = eventKey; + Buf = buf; + BufTextLen = bufTextLen; + BufSize = bufSize; + BufDirty = bufDirty ? (byte)1 : (byte)0; + CursorPos = cursorPos; + SelectionStart = selectionStart; + SelectionEnd = selectionEnd; + } + + + public unsafe void ClearSelection() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.ClearSelectionNative(@this); + } + } + + public unsafe void DeleteChars( int pos, int bytesCount) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.DeleteCharsNative(@this, pos, bytesCount); + } + } + + public unsafe void Destroy() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe bool HasSelection() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte ret = ImGui.HasSelectionNative(@this); + return ret != 0; + } + } + + public unsafe void InsertChars( int pos, byte* text, byte* textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.InsertCharsNative(@this, pos, text, textEnd); + } + } + + public unsafe void InsertChars( int pos, byte* text) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.InsertCharsNative(@this, pos, text, (byte*)(default)); + } + } + + public unsafe void InsertChars( int pos, ref byte text, byte* textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptext = &text) + { + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, textEnd); + } + } + } + + public unsafe void InsertChars( int pos, ref byte text) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptext = &text) + { + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)(default)); + } + } + } + + public unsafe void InsertChars( int pos, string text, byte* textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.InsertCharsNative(@this, pos, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void InsertChars( int pos, string text) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.InsertCharsNative(@this, pos, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void InsertChars( int pos, byte* text, ref byte textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.InsertCharsNative(@this, pos, text, (byte*)ptextEnd); + } + } + } + + public unsafe void InsertChars( int pos, byte* text, string textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + ImGui.InsertCharsNative(@this, pos, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void InsertChars( int pos, ref byte text, ref byte textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + ImGui.InsertCharsNative(@this, pos, (byte*)ptext, (byte*)ptextEnd); + } + } + } + } + + public unsafe void InsertChars( int pos, string text, string textEnd) + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + ImGui.InsertCharsNative(@this, pos, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public unsafe void SelectAll() + { + fixed (ImGuiInputTextCallbackData* @this = &this) + { + ImGui.SelectAllNative(@this); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiOnceUponAFrame + { + /// + /// To be documented. + /// + public int RefFrame; + + + + /// /// To be documented. /// public unsafe ImGuiOnceUponAFrame(int refFrame = default) + { + RefFrame = refFrame; + } + + + public unsafe void Destroy() + { + fixed (ImGuiOnceUponAFrame* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiSizeCallbackData + { + /// + /// To be documented. + /// + public unsafe void* UserData; + + /// + /// To be documented. + /// + public Vector2 Pos; + + /// + /// To be documented. + /// + public Vector2 CurrentSize; + + /// + /// To be documented. + /// + public Vector2 DesiredSize; + + + /// /// To be documented. /// public unsafe ImGuiSizeCallbackData(void* userData = default, Vector2 pos = default, Vector2 currentSize = default, Vector2 desiredSize = default) + { + UserData = userData; + Pos = pos; + CurrentSize = currentSize; + DesiredSize = desiredSize; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTextFilter + { + /// + /// To be documented. + /// + public byte InputBuf_0; + public byte InputBuf_1; + public byte InputBuf_2; + public byte InputBuf_3; + public byte InputBuf_4; + public byte InputBuf_5; + public byte InputBuf_6; + public byte InputBuf_7; + public byte InputBuf_8; + public byte InputBuf_9; + public byte InputBuf_10; + public byte InputBuf_11; + public byte InputBuf_12; + public byte InputBuf_13; + public byte InputBuf_14; + public byte InputBuf_15; + public byte InputBuf_16; + public byte InputBuf_17; + public byte InputBuf_18; + public byte InputBuf_19; + public byte InputBuf_20; + public byte InputBuf_21; + public byte InputBuf_22; + public byte InputBuf_23; + public byte InputBuf_24; + public byte InputBuf_25; + public byte InputBuf_26; + public byte InputBuf_27; + public byte InputBuf_28; + public byte InputBuf_29; + public byte InputBuf_30; + public byte InputBuf_31; + public byte InputBuf_32; + public byte InputBuf_33; + public byte InputBuf_34; + public byte InputBuf_35; + public byte InputBuf_36; + public byte InputBuf_37; + public byte InputBuf_38; + public byte InputBuf_39; + public byte InputBuf_40; + public byte InputBuf_41; + public byte InputBuf_42; + public byte InputBuf_43; + public byte InputBuf_44; + public byte InputBuf_45; + public byte InputBuf_46; + public byte InputBuf_47; + public byte InputBuf_48; + public byte InputBuf_49; + public byte InputBuf_50; + public byte InputBuf_51; + public byte InputBuf_52; + public byte InputBuf_53; + public byte InputBuf_54; + public byte InputBuf_55; + public byte InputBuf_56; + public byte InputBuf_57; + public byte InputBuf_58; + public byte InputBuf_59; + public byte InputBuf_60; + public byte InputBuf_61; + public byte InputBuf_62; + public byte InputBuf_63; + public byte InputBuf_64; + public byte InputBuf_65; + public byte InputBuf_66; + public byte InputBuf_67; + public byte InputBuf_68; + public byte InputBuf_69; + public byte InputBuf_70; + public byte InputBuf_71; + public byte InputBuf_72; + public byte InputBuf_73; + public byte InputBuf_74; + public byte InputBuf_75; + public byte InputBuf_76; + public byte InputBuf_77; + public byte InputBuf_78; + public byte InputBuf_79; + public byte InputBuf_80; + public byte InputBuf_81; + public byte InputBuf_82; + public byte InputBuf_83; + public byte InputBuf_84; + public byte InputBuf_85; + public byte InputBuf_86; + public byte InputBuf_87; + public byte InputBuf_88; + public byte InputBuf_89; + public byte InputBuf_90; + public byte InputBuf_91; + public byte InputBuf_92; + public byte InputBuf_93; + public byte InputBuf_94; + public byte InputBuf_95; + public byte InputBuf_96; + public byte InputBuf_97; + public byte InputBuf_98; + public byte InputBuf_99; + public byte InputBuf_100; + public byte InputBuf_101; + public byte InputBuf_102; + public byte InputBuf_103; + public byte InputBuf_104; + public byte InputBuf_105; + public byte InputBuf_106; + public byte InputBuf_107; + public byte InputBuf_108; + public byte InputBuf_109; + public byte InputBuf_110; + public byte InputBuf_111; + public byte InputBuf_112; + public byte InputBuf_113; + public byte InputBuf_114; + public byte InputBuf_115; + public byte InputBuf_116; + public byte InputBuf_117; + public byte InputBuf_118; + public byte InputBuf_119; + public byte InputBuf_120; + public byte InputBuf_121; + public byte InputBuf_122; + public byte InputBuf_123; + public byte InputBuf_124; + public byte InputBuf_125; + public byte InputBuf_126; + public byte InputBuf_127; + public byte InputBuf_128; + public byte InputBuf_129; + public byte InputBuf_130; + public byte InputBuf_131; + public byte InputBuf_132; + public byte InputBuf_133; + public byte InputBuf_134; + public byte InputBuf_135; + public byte InputBuf_136; + public byte InputBuf_137; + public byte InputBuf_138; + public byte InputBuf_139; + public byte InputBuf_140; + public byte InputBuf_141; + public byte InputBuf_142; + public byte InputBuf_143; + public byte InputBuf_144; + public byte InputBuf_145; + public byte InputBuf_146; + public byte InputBuf_147; + public byte InputBuf_148; + public byte InputBuf_149; + public byte InputBuf_150; + public byte InputBuf_151; + public byte InputBuf_152; + public byte InputBuf_153; + public byte InputBuf_154; + public byte InputBuf_155; + public byte InputBuf_156; + public byte InputBuf_157; + public byte InputBuf_158; + public byte InputBuf_159; + public byte InputBuf_160; + public byte InputBuf_161; + public byte InputBuf_162; + public byte InputBuf_163; + public byte InputBuf_164; + public byte InputBuf_165; + public byte InputBuf_166; + public byte InputBuf_167; + public byte InputBuf_168; + public byte InputBuf_169; + public byte InputBuf_170; + public byte InputBuf_171; + public byte InputBuf_172; + public byte InputBuf_173; + public byte InputBuf_174; + public byte InputBuf_175; + public byte InputBuf_176; + public byte InputBuf_177; + public byte InputBuf_178; + public byte InputBuf_179; + public byte InputBuf_180; + public byte InputBuf_181; + public byte InputBuf_182; + public byte InputBuf_183; + public byte InputBuf_184; + public byte InputBuf_185; + public byte InputBuf_186; + public byte InputBuf_187; + public byte InputBuf_188; + public byte InputBuf_189; + public byte InputBuf_190; + public byte InputBuf_191; + public byte InputBuf_192; + public byte InputBuf_193; + public byte InputBuf_194; + public byte InputBuf_195; + public byte InputBuf_196; + public byte InputBuf_197; + public byte InputBuf_198; + public byte InputBuf_199; + public byte InputBuf_200; + public byte InputBuf_201; + public byte InputBuf_202; + public byte InputBuf_203; + public byte InputBuf_204; + public byte InputBuf_205; + public byte InputBuf_206; + public byte InputBuf_207; + public byte InputBuf_208; + public byte InputBuf_209; + public byte InputBuf_210; + public byte InputBuf_211; + public byte InputBuf_212; + public byte InputBuf_213; + public byte InputBuf_214; + public byte InputBuf_215; + public byte InputBuf_216; + public byte InputBuf_217; + public byte InputBuf_218; + public byte InputBuf_219; + public byte InputBuf_220; + public byte InputBuf_221; + public byte InputBuf_222; + public byte InputBuf_223; + public byte InputBuf_224; + public byte InputBuf_225; + public byte InputBuf_226; + public byte InputBuf_227; + public byte InputBuf_228; + public byte InputBuf_229; + public byte InputBuf_230; + public byte InputBuf_231; + public byte InputBuf_232; + public byte InputBuf_233; + public byte InputBuf_234; + public byte InputBuf_235; + public byte InputBuf_236; + public byte InputBuf_237; + public byte InputBuf_238; + public byte InputBuf_239; + public byte InputBuf_240; + public byte InputBuf_241; + public byte InputBuf_242; + public byte InputBuf_243; + public byte InputBuf_244; + public byte InputBuf_245; + public byte InputBuf_246; + public byte InputBuf_247; + public byte InputBuf_248; + public byte InputBuf_249; + public byte InputBuf_250; + public byte InputBuf_251; + public byte InputBuf_252; + public byte InputBuf_253; + public byte InputBuf_254; + public byte InputBuf_255; + + /// + /// To be documented. + /// + public ImVectorImGuiTextRange Filters; + + /// + /// To be documented. + /// + public int CountGrep; + + + + /// /// To be documented. /// public unsafe ImGuiTextFilter(byte* inputBuf = default, ImVectorImGuiTextRange filters = default, int countGrep = default) + { + if (inputBuf != default) + { + InputBuf_0 = inputBuf[0]; + InputBuf_1 = inputBuf[1]; + InputBuf_2 = inputBuf[2]; + InputBuf_3 = inputBuf[3]; + InputBuf_4 = inputBuf[4]; + InputBuf_5 = inputBuf[5]; + InputBuf_6 = inputBuf[6]; + InputBuf_7 = inputBuf[7]; + InputBuf_8 = inputBuf[8]; + InputBuf_9 = inputBuf[9]; + InputBuf_10 = inputBuf[10]; + InputBuf_11 = inputBuf[11]; + InputBuf_12 = inputBuf[12]; + InputBuf_13 = inputBuf[13]; + InputBuf_14 = inputBuf[14]; + InputBuf_15 = inputBuf[15]; + InputBuf_16 = inputBuf[16]; + InputBuf_17 = inputBuf[17]; + InputBuf_18 = inputBuf[18]; + InputBuf_19 = inputBuf[19]; + InputBuf_20 = inputBuf[20]; + InputBuf_21 = inputBuf[21]; + InputBuf_22 = inputBuf[22]; + InputBuf_23 = inputBuf[23]; + InputBuf_24 = inputBuf[24]; + InputBuf_25 = inputBuf[25]; + InputBuf_26 = inputBuf[26]; + InputBuf_27 = inputBuf[27]; + InputBuf_28 = inputBuf[28]; + InputBuf_29 = inputBuf[29]; + InputBuf_30 = inputBuf[30]; + InputBuf_31 = inputBuf[31]; + InputBuf_32 = inputBuf[32]; + InputBuf_33 = inputBuf[33]; + InputBuf_34 = inputBuf[34]; + InputBuf_35 = inputBuf[35]; + InputBuf_36 = inputBuf[36]; + InputBuf_37 = inputBuf[37]; + InputBuf_38 = inputBuf[38]; + InputBuf_39 = inputBuf[39]; + InputBuf_40 = inputBuf[40]; + InputBuf_41 = inputBuf[41]; + InputBuf_42 = inputBuf[42]; + InputBuf_43 = inputBuf[43]; + InputBuf_44 = inputBuf[44]; + InputBuf_45 = inputBuf[45]; + InputBuf_46 = inputBuf[46]; + InputBuf_47 = inputBuf[47]; + InputBuf_48 = inputBuf[48]; + InputBuf_49 = inputBuf[49]; + InputBuf_50 = inputBuf[50]; + InputBuf_51 = inputBuf[51]; + InputBuf_52 = inputBuf[52]; + InputBuf_53 = inputBuf[53]; + InputBuf_54 = inputBuf[54]; + InputBuf_55 = inputBuf[55]; + InputBuf_56 = inputBuf[56]; + InputBuf_57 = inputBuf[57]; + InputBuf_58 = inputBuf[58]; + InputBuf_59 = inputBuf[59]; + InputBuf_60 = inputBuf[60]; + InputBuf_61 = inputBuf[61]; + InputBuf_62 = inputBuf[62]; + InputBuf_63 = inputBuf[63]; + InputBuf_64 = inputBuf[64]; + InputBuf_65 = inputBuf[65]; + InputBuf_66 = inputBuf[66]; + InputBuf_67 = inputBuf[67]; + InputBuf_68 = inputBuf[68]; + InputBuf_69 = inputBuf[69]; + InputBuf_70 = inputBuf[70]; + InputBuf_71 = inputBuf[71]; + InputBuf_72 = inputBuf[72]; + InputBuf_73 = inputBuf[73]; + InputBuf_74 = inputBuf[74]; + InputBuf_75 = inputBuf[75]; + InputBuf_76 = inputBuf[76]; + InputBuf_77 = inputBuf[77]; + InputBuf_78 = inputBuf[78]; + InputBuf_79 = inputBuf[79]; + InputBuf_80 = inputBuf[80]; + InputBuf_81 = inputBuf[81]; + InputBuf_82 = inputBuf[82]; + InputBuf_83 = inputBuf[83]; + InputBuf_84 = inputBuf[84]; + InputBuf_85 = inputBuf[85]; + InputBuf_86 = inputBuf[86]; + InputBuf_87 = inputBuf[87]; + InputBuf_88 = inputBuf[88]; + InputBuf_89 = inputBuf[89]; + InputBuf_90 = inputBuf[90]; + InputBuf_91 = inputBuf[91]; + InputBuf_92 = inputBuf[92]; + InputBuf_93 = inputBuf[93]; + InputBuf_94 = inputBuf[94]; + InputBuf_95 = inputBuf[95]; + InputBuf_96 = inputBuf[96]; + InputBuf_97 = inputBuf[97]; + InputBuf_98 = inputBuf[98]; + InputBuf_99 = inputBuf[99]; + InputBuf_100 = inputBuf[100]; + InputBuf_101 = inputBuf[101]; + InputBuf_102 = inputBuf[102]; + InputBuf_103 = inputBuf[103]; + InputBuf_104 = inputBuf[104]; + InputBuf_105 = inputBuf[105]; + InputBuf_106 = inputBuf[106]; + InputBuf_107 = inputBuf[107]; + InputBuf_108 = inputBuf[108]; + InputBuf_109 = inputBuf[109]; + InputBuf_110 = inputBuf[110]; + InputBuf_111 = inputBuf[111]; + InputBuf_112 = inputBuf[112]; + InputBuf_113 = inputBuf[113]; + InputBuf_114 = inputBuf[114]; + InputBuf_115 = inputBuf[115]; + InputBuf_116 = inputBuf[116]; + InputBuf_117 = inputBuf[117]; + InputBuf_118 = inputBuf[118]; + InputBuf_119 = inputBuf[119]; + InputBuf_120 = inputBuf[120]; + InputBuf_121 = inputBuf[121]; + InputBuf_122 = inputBuf[122]; + InputBuf_123 = inputBuf[123]; + InputBuf_124 = inputBuf[124]; + InputBuf_125 = inputBuf[125]; + InputBuf_126 = inputBuf[126]; + InputBuf_127 = inputBuf[127]; + InputBuf_128 = inputBuf[128]; + InputBuf_129 = inputBuf[129]; + InputBuf_130 = inputBuf[130]; + InputBuf_131 = inputBuf[131]; + InputBuf_132 = inputBuf[132]; + InputBuf_133 = inputBuf[133]; + InputBuf_134 = inputBuf[134]; + InputBuf_135 = inputBuf[135]; + InputBuf_136 = inputBuf[136]; + InputBuf_137 = inputBuf[137]; + InputBuf_138 = inputBuf[138]; + InputBuf_139 = inputBuf[139]; + InputBuf_140 = inputBuf[140]; + InputBuf_141 = inputBuf[141]; + InputBuf_142 = inputBuf[142]; + InputBuf_143 = inputBuf[143]; + InputBuf_144 = inputBuf[144]; + InputBuf_145 = inputBuf[145]; + InputBuf_146 = inputBuf[146]; + InputBuf_147 = inputBuf[147]; + InputBuf_148 = inputBuf[148]; + InputBuf_149 = inputBuf[149]; + InputBuf_150 = inputBuf[150]; + InputBuf_151 = inputBuf[151]; + InputBuf_152 = inputBuf[152]; + InputBuf_153 = inputBuf[153]; + InputBuf_154 = inputBuf[154]; + InputBuf_155 = inputBuf[155]; + InputBuf_156 = inputBuf[156]; + InputBuf_157 = inputBuf[157]; + InputBuf_158 = inputBuf[158]; + InputBuf_159 = inputBuf[159]; + InputBuf_160 = inputBuf[160]; + InputBuf_161 = inputBuf[161]; + InputBuf_162 = inputBuf[162]; + InputBuf_163 = inputBuf[163]; + InputBuf_164 = inputBuf[164]; + InputBuf_165 = inputBuf[165]; + InputBuf_166 = inputBuf[166]; + InputBuf_167 = inputBuf[167]; + InputBuf_168 = inputBuf[168]; + InputBuf_169 = inputBuf[169]; + InputBuf_170 = inputBuf[170]; + InputBuf_171 = inputBuf[171]; + InputBuf_172 = inputBuf[172]; + InputBuf_173 = inputBuf[173]; + InputBuf_174 = inputBuf[174]; + InputBuf_175 = inputBuf[175]; + InputBuf_176 = inputBuf[176]; + InputBuf_177 = inputBuf[177]; + InputBuf_178 = inputBuf[178]; + InputBuf_179 = inputBuf[179]; + InputBuf_180 = inputBuf[180]; + InputBuf_181 = inputBuf[181]; + InputBuf_182 = inputBuf[182]; + InputBuf_183 = inputBuf[183]; + InputBuf_184 = inputBuf[184]; + InputBuf_185 = inputBuf[185]; + InputBuf_186 = inputBuf[186]; + InputBuf_187 = inputBuf[187]; + InputBuf_188 = inputBuf[188]; + InputBuf_189 = inputBuf[189]; + InputBuf_190 = inputBuf[190]; + InputBuf_191 = inputBuf[191]; + InputBuf_192 = inputBuf[192]; + InputBuf_193 = inputBuf[193]; + InputBuf_194 = inputBuf[194]; + InputBuf_195 = inputBuf[195]; + InputBuf_196 = inputBuf[196]; + InputBuf_197 = inputBuf[197]; + InputBuf_198 = inputBuf[198]; + InputBuf_199 = inputBuf[199]; + InputBuf_200 = inputBuf[200]; + InputBuf_201 = inputBuf[201]; + InputBuf_202 = inputBuf[202]; + InputBuf_203 = inputBuf[203]; + InputBuf_204 = inputBuf[204]; + InputBuf_205 = inputBuf[205]; + InputBuf_206 = inputBuf[206]; + InputBuf_207 = inputBuf[207]; + InputBuf_208 = inputBuf[208]; + InputBuf_209 = inputBuf[209]; + InputBuf_210 = inputBuf[210]; + InputBuf_211 = inputBuf[211]; + InputBuf_212 = inputBuf[212]; + InputBuf_213 = inputBuf[213]; + InputBuf_214 = inputBuf[214]; + InputBuf_215 = inputBuf[215]; + InputBuf_216 = inputBuf[216]; + InputBuf_217 = inputBuf[217]; + InputBuf_218 = inputBuf[218]; + InputBuf_219 = inputBuf[219]; + InputBuf_220 = inputBuf[220]; + InputBuf_221 = inputBuf[221]; + InputBuf_222 = inputBuf[222]; + InputBuf_223 = inputBuf[223]; + InputBuf_224 = inputBuf[224]; + InputBuf_225 = inputBuf[225]; + InputBuf_226 = inputBuf[226]; + InputBuf_227 = inputBuf[227]; + InputBuf_228 = inputBuf[228]; + InputBuf_229 = inputBuf[229]; + InputBuf_230 = inputBuf[230]; + InputBuf_231 = inputBuf[231]; + InputBuf_232 = inputBuf[232]; + InputBuf_233 = inputBuf[233]; + InputBuf_234 = inputBuf[234]; + InputBuf_235 = inputBuf[235]; + InputBuf_236 = inputBuf[236]; + InputBuf_237 = inputBuf[237]; + InputBuf_238 = inputBuf[238]; + InputBuf_239 = inputBuf[239]; + InputBuf_240 = inputBuf[240]; + InputBuf_241 = inputBuf[241]; + InputBuf_242 = inputBuf[242]; + InputBuf_243 = inputBuf[243]; + InputBuf_244 = inputBuf[244]; + InputBuf_245 = inputBuf[245]; + InputBuf_246 = inputBuf[246]; + InputBuf_247 = inputBuf[247]; + InputBuf_248 = inputBuf[248]; + InputBuf_249 = inputBuf[249]; + InputBuf_250 = inputBuf[250]; + InputBuf_251 = inputBuf[251]; + InputBuf_252 = inputBuf[252]; + InputBuf_253 = inputBuf[253]; + InputBuf_254 = inputBuf[254]; + InputBuf_255 = inputBuf[255]; + } + Filters = filters; + CountGrep = countGrep; + } + + /// /// To be documented. /// public unsafe ImGuiTextFilter(Span inputBuf = default, ImVectorImGuiTextRange filters = default, int countGrep = default) + { + if (inputBuf != default) + { + InputBuf_0 = inputBuf[0]; + InputBuf_1 = inputBuf[1]; + InputBuf_2 = inputBuf[2]; + InputBuf_3 = inputBuf[3]; + InputBuf_4 = inputBuf[4]; + InputBuf_5 = inputBuf[5]; + InputBuf_6 = inputBuf[6]; + InputBuf_7 = inputBuf[7]; + InputBuf_8 = inputBuf[8]; + InputBuf_9 = inputBuf[9]; + InputBuf_10 = inputBuf[10]; + InputBuf_11 = inputBuf[11]; + InputBuf_12 = inputBuf[12]; + InputBuf_13 = inputBuf[13]; + InputBuf_14 = inputBuf[14]; + InputBuf_15 = inputBuf[15]; + InputBuf_16 = inputBuf[16]; + InputBuf_17 = inputBuf[17]; + InputBuf_18 = inputBuf[18]; + InputBuf_19 = inputBuf[19]; + InputBuf_20 = inputBuf[20]; + InputBuf_21 = inputBuf[21]; + InputBuf_22 = inputBuf[22]; + InputBuf_23 = inputBuf[23]; + InputBuf_24 = inputBuf[24]; + InputBuf_25 = inputBuf[25]; + InputBuf_26 = inputBuf[26]; + InputBuf_27 = inputBuf[27]; + InputBuf_28 = inputBuf[28]; + InputBuf_29 = inputBuf[29]; + InputBuf_30 = inputBuf[30]; + InputBuf_31 = inputBuf[31]; + InputBuf_32 = inputBuf[32]; + InputBuf_33 = inputBuf[33]; + InputBuf_34 = inputBuf[34]; + InputBuf_35 = inputBuf[35]; + InputBuf_36 = inputBuf[36]; + InputBuf_37 = inputBuf[37]; + InputBuf_38 = inputBuf[38]; + InputBuf_39 = inputBuf[39]; + InputBuf_40 = inputBuf[40]; + InputBuf_41 = inputBuf[41]; + InputBuf_42 = inputBuf[42]; + InputBuf_43 = inputBuf[43]; + InputBuf_44 = inputBuf[44]; + InputBuf_45 = inputBuf[45]; + InputBuf_46 = inputBuf[46]; + InputBuf_47 = inputBuf[47]; + InputBuf_48 = inputBuf[48]; + InputBuf_49 = inputBuf[49]; + InputBuf_50 = inputBuf[50]; + InputBuf_51 = inputBuf[51]; + InputBuf_52 = inputBuf[52]; + InputBuf_53 = inputBuf[53]; + InputBuf_54 = inputBuf[54]; + InputBuf_55 = inputBuf[55]; + InputBuf_56 = inputBuf[56]; + InputBuf_57 = inputBuf[57]; + InputBuf_58 = inputBuf[58]; + InputBuf_59 = inputBuf[59]; + InputBuf_60 = inputBuf[60]; + InputBuf_61 = inputBuf[61]; + InputBuf_62 = inputBuf[62]; + InputBuf_63 = inputBuf[63]; + InputBuf_64 = inputBuf[64]; + InputBuf_65 = inputBuf[65]; + InputBuf_66 = inputBuf[66]; + InputBuf_67 = inputBuf[67]; + InputBuf_68 = inputBuf[68]; + InputBuf_69 = inputBuf[69]; + InputBuf_70 = inputBuf[70]; + InputBuf_71 = inputBuf[71]; + InputBuf_72 = inputBuf[72]; + InputBuf_73 = inputBuf[73]; + InputBuf_74 = inputBuf[74]; + InputBuf_75 = inputBuf[75]; + InputBuf_76 = inputBuf[76]; + InputBuf_77 = inputBuf[77]; + InputBuf_78 = inputBuf[78]; + InputBuf_79 = inputBuf[79]; + InputBuf_80 = inputBuf[80]; + InputBuf_81 = inputBuf[81]; + InputBuf_82 = inputBuf[82]; + InputBuf_83 = inputBuf[83]; + InputBuf_84 = inputBuf[84]; + InputBuf_85 = inputBuf[85]; + InputBuf_86 = inputBuf[86]; + InputBuf_87 = inputBuf[87]; + InputBuf_88 = inputBuf[88]; + InputBuf_89 = inputBuf[89]; + InputBuf_90 = inputBuf[90]; + InputBuf_91 = inputBuf[91]; + InputBuf_92 = inputBuf[92]; + InputBuf_93 = inputBuf[93]; + InputBuf_94 = inputBuf[94]; + InputBuf_95 = inputBuf[95]; + InputBuf_96 = inputBuf[96]; + InputBuf_97 = inputBuf[97]; + InputBuf_98 = inputBuf[98]; + InputBuf_99 = inputBuf[99]; + InputBuf_100 = inputBuf[100]; + InputBuf_101 = inputBuf[101]; + InputBuf_102 = inputBuf[102]; + InputBuf_103 = inputBuf[103]; + InputBuf_104 = inputBuf[104]; + InputBuf_105 = inputBuf[105]; + InputBuf_106 = inputBuf[106]; + InputBuf_107 = inputBuf[107]; + InputBuf_108 = inputBuf[108]; + InputBuf_109 = inputBuf[109]; + InputBuf_110 = inputBuf[110]; + InputBuf_111 = inputBuf[111]; + InputBuf_112 = inputBuf[112]; + InputBuf_113 = inputBuf[113]; + InputBuf_114 = inputBuf[114]; + InputBuf_115 = inputBuf[115]; + InputBuf_116 = inputBuf[116]; + InputBuf_117 = inputBuf[117]; + InputBuf_118 = inputBuf[118]; + InputBuf_119 = inputBuf[119]; + InputBuf_120 = inputBuf[120]; + InputBuf_121 = inputBuf[121]; + InputBuf_122 = inputBuf[122]; + InputBuf_123 = inputBuf[123]; + InputBuf_124 = inputBuf[124]; + InputBuf_125 = inputBuf[125]; + InputBuf_126 = inputBuf[126]; + InputBuf_127 = inputBuf[127]; + InputBuf_128 = inputBuf[128]; + InputBuf_129 = inputBuf[129]; + InputBuf_130 = inputBuf[130]; + InputBuf_131 = inputBuf[131]; + InputBuf_132 = inputBuf[132]; + InputBuf_133 = inputBuf[133]; + InputBuf_134 = inputBuf[134]; + InputBuf_135 = inputBuf[135]; + InputBuf_136 = inputBuf[136]; + InputBuf_137 = inputBuf[137]; + InputBuf_138 = inputBuf[138]; + InputBuf_139 = inputBuf[139]; + InputBuf_140 = inputBuf[140]; + InputBuf_141 = inputBuf[141]; + InputBuf_142 = inputBuf[142]; + InputBuf_143 = inputBuf[143]; + InputBuf_144 = inputBuf[144]; + InputBuf_145 = inputBuf[145]; + InputBuf_146 = inputBuf[146]; + InputBuf_147 = inputBuf[147]; + InputBuf_148 = inputBuf[148]; + InputBuf_149 = inputBuf[149]; + InputBuf_150 = inputBuf[150]; + InputBuf_151 = inputBuf[151]; + InputBuf_152 = inputBuf[152]; + InputBuf_153 = inputBuf[153]; + InputBuf_154 = inputBuf[154]; + InputBuf_155 = inputBuf[155]; + InputBuf_156 = inputBuf[156]; + InputBuf_157 = inputBuf[157]; + InputBuf_158 = inputBuf[158]; + InputBuf_159 = inputBuf[159]; + InputBuf_160 = inputBuf[160]; + InputBuf_161 = inputBuf[161]; + InputBuf_162 = inputBuf[162]; + InputBuf_163 = inputBuf[163]; + InputBuf_164 = inputBuf[164]; + InputBuf_165 = inputBuf[165]; + InputBuf_166 = inputBuf[166]; + InputBuf_167 = inputBuf[167]; + InputBuf_168 = inputBuf[168]; + InputBuf_169 = inputBuf[169]; + InputBuf_170 = inputBuf[170]; + InputBuf_171 = inputBuf[171]; + InputBuf_172 = inputBuf[172]; + InputBuf_173 = inputBuf[173]; + InputBuf_174 = inputBuf[174]; + InputBuf_175 = inputBuf[175]; + InputBuf_176 = inputBuf[176]; + InputBuf_177 = inputBuf[177]; + InputBuf_178 = inputBuf[178]; + InputBuf_179 = inputBuf[179]; + InputBuf_180 = inputBuf[180]; + InputBuf_181 = inputBuf[181]; + InputBuf_182 = inputBuf[182]; + InputBuf_183 = inputBuf[183]; + InputBuf_184 = inputBuf[184]; + InputBuf_185 = inputBuf[185]; + InputBuf_186 = inputBuf[186]; + InputBuf_187 = inputBuf[187]; + InputBuf_188 = inputBuf[188]; + InputBuf_189 = inputBuf[189]; + InputBuf_190 = inputBuf[190]; + InputBuf_191 = inputBuf[191]; + InputBuf_192 = inputBuf[192]; + InputBuf_193 = inputBuf[193]; + InputBuf_194 = inputBuf[194]; + InputBuf_195 = inputBuf[195]; + InputBuf_196 = inputBuf[196]; + InputBuf_197 = inputBuf[197]; + InputBuf_198 = inputBuf[198]; + InputBuf_199 = inputBuf[199]; + InputBuf_200 = inputBuf[200]; + InputBuf_201 = inputBuf[201]; + InputBuf_202 = inputBuf[202]; + InputBuf_203 = inputBuf[203]; + InputBuf_204 = inputBuf[204]; + InputBuf_205 = inputBuf[205]; + InputBuf_206 = inputBuf[206]; + InputBuf_207 = inputBuf[207]; + InputBuf_208 = inputBuf[208]; + InputBuf_209 = inputBuf[209]; + InputBuf_210 = inputBuf[210]; + InputBuf_211 = inputBuf[211]; + InputBuf_212 = inputBuf[212]; + InputBuf_213 = inputBuf[213]; + InputBuf_214 = inputBuf[214]; + InputBuf_215 = inputBuf[215]; + InputBuf_216 = inputBuf[216]; + InputBuf_217 = inputBuf[217]; + InputBuf_218 = inputBuf[218]; + InputBuf_219 = inputBuf[219]; + InputBuf_220 = inputBuf[220]; + InputBuf_221 = inputBuf[221]; + InputBuf_222 = inputBuf[222]; + InputBuf_223 = inputBuf[223]; + InputBuf_224 = inputBuf[224]; + InputBuf_225 = inputBuf[225]; + InputBuf_226 = inputBuf[226]; + InputBuf_227 = inputBuf[227]; + InputBuf_228 = inputBuf[228]; + InputBuf_229 = inputBuf[229]; + InputBuf_230 = inputBuf[230]; + InputBuf_231 = inputBuf[231]; + InputBuf_232 = inputBuf[232]; + InputBuf_233 = inputBuf[233]; + InputBuf_234 = inputBuf[234]; + InputBuf_235 = inputBuf[235]; + InputBuf_236 = inputBuf[236]; + InputBuf_237 = inputBuf[237]; + InputBuf_238 = inputBuf[238]; + InputBuf_239 = inputBuf[239]; + InputBuf_240 = inputBuf[240]; + InputBuf_241 = inputBuf[241]; + InputBuf_242 = inputBuf[242]; + InputBuf_243 = inputBuf[243]; + InputBuf_244 = inputBuf[244]; + InputBuf_245 = inputBuf[245]; + InputBuf_246 = inputBuf[246]; + InputBuf_247 = inputBuf[247]; + InputBuf_248 = inputBuf[248]; + InputBuf_249 = inputBuf[249]; + InputBuf_250 = inputBuf[250]; + InputBuf_251 = inputBuf[251]; + InputBuf_252 = inputBuf[252]; + InputBuf_253 = inputBuf[253]; + InputBuf_254 = inputBuf[254]; + InputBuf_255 = inputBuf[255]; + } + Filters = filters; + CountGrep = countGrep; + } + + + /// + /// To be documented. + /// + public unsafe void Build() + { + fixed (ImGuiTextFilter* @this = &this) + { + ImGui.BuildNative(@this); + } + } + + public unsafe void Clear() + { + fixed (ImGuiTextFilter* @this = &this) + { + ImGui.ClearNative(@this); + } + } + + public unsafe void Destroy() + { + fixed (ImGuiTextFilter* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe bool Draw( byte* label, float width) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte ret = ImGui.DrawNative(@this, label, width); + return ret != 0; + } + } + + public unsafe bool Draw( byte* label) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte ret = ImGui.DrawNative(@this, label, (float)(0.0f)); + return ret != 0; + } + } + + public unsafe bool Draw() + { + fixed (ImGuiTextFilter* @this = &this) + { + bool ret = ImGui.Draw(@this, (string)"Filter(inc,-exc)", (float)(0.0f)); + return ret; + } + } + + public unsafe bool Draw( float width) + { + fixed (ImGuiTextFilter* @this = &this) + { + bool ret = ImGui.Draw(@this, (string)"Filter(inc,-exc)", width); + return ret; + } + } + + public unsafe bool Draw( ref byte label, float width) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* plabel = &label) + { + byte ret = ImGui.DrawNative(@this, (byte*)plabel, width); + return ret != 0; + } + } + } + + public unsafe bool Draw( ref byte label) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* plabel = &label) + { + byte ret = ImGui.DrawNative(@this, (byte*)plabel, (float)(0.0f)); + return ret != 0; + } + } + } + + public unsafe bool Draw( string label, float width) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ImGui.DrawNative(@this, pStr0, width); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public unsafe bool Draw( string label) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (label != null) + { + pStrSize0 = Utils.GetByteCountUTF8(label); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(label, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ImGui.DrawNative(@this, pStr0, (float)(0.0f)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public unsafe bool IsActive() + { + fixed (ImGuiTextFilter* @this = &this) + { + byte ret = ImGui.IsActiveNative(@this); + return ret != 0; + } + } + + public unsafe bool PassFilter( byte* text, byte* textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte ret = ImGui.PassFilterNative(@this, text, textEnd); + return ret != 0; + } + } + + public unsafe bool PassFilter( byte* text) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte ret = ImGui.PassFilterNative(@this, text, (byte*)(default)); + return ret != 0; + } + } + + public unsafe bool PassFilter( ref byte text, byte* textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptext = &text) + { + byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, textEnd); + return ret != 0; + } + } + } + + public unsafe bool PassFilter( ref byte text) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptext = &text) + { + byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)(default)); + return ret != 0; + } + } + } + + public unsafe bool PassFilter( string text, byte* textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ImGui.PassFilterNative(@this, pStr0, textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public unsafe bool PassFilter( string text) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ImGui.PassFilterNative(@this, pStr0, (byte*)(default)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public unsafe bool PassFilter( byte* text, ref byte textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = ImGui.PassFilterNative(@this, text, (byte*)ptextEnd); + return ret != 0; + } + } + } + + public unsafe bool PassFilter( byte* text, string textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (textEnd != null) + { + pStrSize0 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(textEnd, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = ImGui.PassFilterNative(@this, text, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + public unsafe bool PassFilter( ref byte text, ref byte textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + fixed (byte* ptext = &text) + { + fixed (byte* ptextEnd = &textEnd) + { + byte ret = ImGui.PassFilterNative(@this, (byte*)ptext, (byte*)ptextEnd); + return ret != 0; + } + } + } + } + + public unsafe bool PassFilter( string text, string textEnd) + { + fixed (ImGuiTextFilter* @this = &this) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (text != null) + { + pStrSize0 = Utils.GetByteCountUTF8(text); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(text, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (textEnd != null) + { + pStrSize1 = Utils.GetByteCountUTF8(textEnd); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(textEnd, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + byte ret = ImGui.PassFilterNative(@this, pStr0, pStr1); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiTextRange + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiTextRange* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiTextRange(int size = default, int capacity = default, ImGuiTextRange* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTextRange + { + /// + /// To be documented. + /// + public unsafe byte* B; + + /// + /// To be documented. + /// + public unsafe byte* E; + + + + /// /// To be documented. /// public unsafe ImGuiTextRange(byte* b = default, byte* e = default) + { + B = b; + E = e; + } + + + public unsafe void Destroy() + { + fixed (ImGuiTextRange* @this = &this) + { + ImGui.DestroyNative(@this); + } + } + + public unsafe bool empty() + { + fixed (ImGuiTextRange* @this = &this) + { + byte ret = ImGui.emptyNative(@this); + return ret != 0; + } + } + + public unsafe void split( byte separator, ImVectorImGuiTextRange* output) + { + fixed (ImGuiTextRange* @this = &this) + { + ImGui.splitNative(@this, separator, output); + } + } + + public unsafe void split( byte separator, ref ImVectorImGuiTextRange output) + { + fixed (ImGuiTextRange* @this = &this) + { + fixed (ImVectorImGuiTextRange* poutput = &output) + { + ImGui.splitNative(@this, separator, (ImVectorImGuiTextRange*)poutput); + } + } + } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImBitVector + { + /// + /// To be documented. + /// + public ImVectorImU32 Storage; + + + /// /// To be documented. /// public unsafe ImBitVector(ImVectorImU32 storage = default) + { + Storage = storage; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDataVarInfo + { + /// + /// To be documented. + /// + public int Type; + + /// + /// To be documented. + /// + public uint Count; + + /// + /// To be documented. + /// + public uint Offset; + + + /// /// To be documented. /// public unsafe ImGuiDataVarInfo(int type = default, uint count = default, uint offset = default) + { + Type = type; + Count = count; + Offset = offset; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDataTypeInfo + { + /// + /// To be documented. + /// + public ulong Size; + + /// + /// To be documented. + /// + public unsafe byte* Name; + + /// + /// To be documented. + /// + public unsafe byte* PrintFmt; + + /// + /// To be documented. + /// + public unsafe byte* ScanFmt; + + + /// /// To be documented. /// public unsafe ImGuiDataTypeInfo(ulong size = default, byte* name = default, byte* printFmt = default, byte* scanFmt = default) + { + Size = size; + Name = name; + PrintFmt = printFmt; + ScanFmt = scanFmt; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiInputTextDeactivateData + { + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiLocEntry + { + /// + /// To be documented. + /// + public ImGuiLocKey Key; + + /// + /// To be documented. + /// + public unsafe byte* Text; + + + /// /// To be documented. /// public unsafe ImGuiLocEntry(ImGuiLocKey key = default, byte* text = default) + { + Key = key; + Text = text; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableSettings + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int SaveFlags; + + /// + /// To be documented. + /// + public float RefScale; + + /// + /// To be documented. + /// + public short ColumnsCount; + + /// + /// To be documented. + /// + public short ColumnsCountMax; + + /// + /// To be documented. + /// + public byte WantApply; + + + /// /// To be documented. /// public unsafe ImGuiTableSettings(uint id = default, int saveFlags = default, float refScale = default, short columnsCount = default, short columnsCountMax = default, bool wantApply = default) + { + ID = id; + SaveFlags = saveFlags; + RefScale = refScale; + ColumnsCount = columnsCount; + ColumnsCountMax = columnsCountMax; + WantApply = wantApply ? (byte)1 : (byte)0; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumnsSettings + { + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowSettings + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public ImVec2Ih Pos; + + /// + /// To be documented. + /// + public ImVec2Ih Size; + + /// + /// To be documented. + /// + public ImVec2Ih ViewportPos; + + /// + /// To be documented. + /// + public uint ViewportId; + + /// + /// To be documented. + /// + public uint DockId; + + /// + /// To be documented. + /// + public uint ClassId; + + /// + /// To be documented. + /// + public short DockOrder; + + /// + /// To be documented. + /// + public byte Collapsed; + + /// + /// To be documented. + /// + public byte WantApply; + + /// + /// To be documented. + /// + public byte WantDelete; + + + /// /// To be documented. /// public unsafe ImGuiWindowSettings(uint id = default, ImVec2Ih pos = default, ImVec2Ih size = default, ImVec2Ih viewportPos = default, uint viewportId = default, uint dockId = default, uint classId = default, short dockOrder = default, bool collapsed = default, bool wantApply = default, bool wantDelete = default) + { + ID = id; + Pos = pos; + Size = size; + ViewportPos = viewportPos; + ViewportId = viewportId; + DockId = dockId; + ClassId = classId; + DockOrder = dockOrder; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantApply = wantApply ? (byte)1 : (byte)0; + WantDelete = wantDelete ? (byte)1 : (byte)0; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorConstCharPtr + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe byte** Data; + + + /// /// To be documented. /// public unsafe ImVectorConstCharPtr(int size = default, int capacity = default, byte** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct StbTexteditRow + { + /// + /// To be documented. + /// + public float X0; + + /// + /// To be documented. + /// + public float X1; + + /// + /// To be documented. + /// + public float BaselineYDelta; + + /// + /// To be documented. + /// + public float Ymin; + + /// + /// To be documented. + /// + public float Ymax; + + /// + /// To be documented. + /// + public int NumChars; + + + /// /// To be documented. /// public unsafe StbTexteditRow(float x0 = default, float x1 = default, float baselineYDelta = default, float ymin = default, float ymax = default, int numChars = default) + { + X0 = x0; + X1 = x1; + BaselineYDelta = baselineYDelta; + Ymin = ymin; + Ymax = ymax; + NumChars = numChars; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDataTypeTempStorage + { + /// + /// To be documented. + /// + public byte Data_0; + public byte Data_1; + public byte Data_2; + public byte Data_3; + public byte Data_4; + public byte Data_5; + public byte Data_6; + public byte Data_7; + + + /// /// To be documented. /// public unsafe ImGuiDataTypeTempStorage(byte* data = default) + { + if (data != default) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + Data_6 = data[6]; + Data_7 = data[7]; + } + } + + /// /// To be documented. /// public unsafe ImGuiDataTypeTempStorage(Span data = default) + { + if (data != default) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + Data_6 = data[6]; + Data_7 = data[7]; + } + } + + + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN + { + /// + /// To be documented. + /// + public uint Storage_0; + public uint Storage_1; + public uint Storage_2; + public uint Storage_3; + public uint Storage_4; + + + /// /// To be documented. /// public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(uint* storage = default) + { + if (storage != default) + { + Storage_0 = storage[0]; + Storage_1 = storage[1]; + Storage_2 = storage[2]; + Storage_3 = storage[3]; + Storage_4 = storage[4]; + } + } + + /// /// To be documented. /// public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(Span storage = default) + { + if (storage != default) + { + Storage_0 = storage[0]; + Storage_1 = storage[1]; + Storage_2 = storage[2]; + Storage_3 = storage[3]; + Storage_4 = storage[4]; + } + } + + + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTableColumnSettings + { + /// + /// To be documented. + /// + public float WidthOrWeight; + + /// + /// To be documented. + /// + public uint UserID; + + /// + /// To be documented. + /// + public sbyte Index; + + /// + /// To be documented. + /// + public sbyte DisplayOrder; + + /// + /// To be documented. + /// + public sbyte SortOrder; + + /// + /// To be documented. + /// + public byte SortDirection; + + /// + /// To be documented. + /// + public byte IsEnabled; + + /// + /// To be documented. + /// + public byte IsStretch; + + + /// /// To be documented. /// public unsafe ImGuiTableColumnSettings(float widthOrWeight = default, uint userId = default, sbyte index = default, sbyte displayOrder = default, sbyte sortOrder = default, byte sortDirection = default, byte isEnabled = default, byte isStretch = default) + { + WidthOrWeight = widthOrWeight; + UserID = userId; + Index = index; + DisplayOrder = displayOrder; + SortOrder = sortOrder; + SortDirection = sortDirection; + IsEnabled = isEnabled; + IsStretch = isStretch; + } + + + } + +} diff --git a/Hexa.NET.ImGui/Generated/Structures.cs b/Hexa.NET.ImGui/Generated/Structures.cs index 4af2b78..98768a4 100644 --- a/Hexa.NET.ImGui/Generated/Structures.cs +++ b/Hexa.NET.ImGui/Generated/Structures.cs @@ -14,125 +14,120 @@ using HexaGen.Runtime; using System.Numerics; -namespace Hexa.NET.ImGuiNET +namespace Hexa.NET.ImGui { /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImDrawChannel")] [StructLayout(LayoutKind.Sequential)] public partial struct ImDrawChannel { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_CmdBuffer")] - [NativeName(NativeNameType.Type, "ImVector_ImDrawCmd")] public ImVectorImDrawCmd CmdBuffer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_IdxBuffer")] - [NativeName(NativeNameType.Type, "ImVector_ImDrawIdx")] public ImVectorImDrawIdx IdxBuffer; + /// /// To be documented. /// public unsafe ImDrawChannel(ImVectorImDrawCmd Cmdbuffer = default, ImVectorImDrawIdx Idxbuffer = default) + { + CmdBuffer = Cmdbuffer; + IdxBuffer = Idxbuffer; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImDrawCmd")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImDrawCmd { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImDrawCmd*")] public unsafe ImDrawCmd* Data; + /// /// To be documented. /// public unsafe ImVectorImDrawCmd(int size = default, int capacity = default, ImDrawCmd* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImDrawCmd")] [StructLayout(LayoutKind.Sequential)] public partial struct ImDrawCmd { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClipRect")] - [NativeName(NativeNameType.Type, "ImVec4")] public Vector4 ClipRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TextureId")] - [NativeName(NativeNameType.Type, "ImTextureID")] public ImTextureID TextureId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "VtxOffset")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint VtxOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IdxOffset")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint IdxOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ElemCount")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint ElemCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "UserCallback")] - [NativeName(NativeNameType.Type, "ImDrawCallback")] public unsafe void* UserCallback; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "UserCallbackData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* UserCallbackData; + /// /// To be documented. /// public unsafe ImDrawCmd(Vector4 clipRect = default, ImTextureID textureId = default, uint vtxOffset = default, uint idxOffset = default, uint elemCount = default, ImDrawCallback userCallback = default, void* userCallbackData = default) + { + ClipRect = clipRect; + TextureId = textureId; + VtxOffset = vtxOffset; + IdxOffset = idxOffset; + ElemCount = elemCount; + UserCallback = (void*)Marshal.GetFunctionPointerForDelegate(userCallback); + UserCallbackData = userCallbackData; + } + - [NativeName(NativeNameType.Func, "ImDrawCmd_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImDrawCmd* @this = &this) @@ -141,8 +136,6 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImDrawCmd_GetTexID")] - [return: NativeName(NativeNameType.Type, "ImTextureID")] public unsafe ImTextureID GetTexID() { fixed (ImDrawCmd* @this = &this) @@ -157,121 +150,107 @@ public unsafe ImTextureID GetTexID() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImDrawList")] [StructLayout(LayoutKind.Sequential)] public partial struct ImDrawList { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CmdBuffer")] - [NativeName(NativeNameType.Type, "ImVector_ImDrawCmd")] public ImVectorImDrawCmd CmdBuffer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IdxBuffer")] - [NativeName(NativeNameType.Type, "ImVector_ImDrawIdx")] public ImVectorImDrawIdx IdxBuffer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "VtxBuffer")] - [NativeName(NativeNameType.Type, "ImVector_ImDrawVert")] public ImVectorImDrawVert VtxBuffer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImDrawListFlags")] - public ImDrawListFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_VtxCurrentIdx")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint VtxCurrentIdx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_Data")] - [NativeName(NativeNameType.Type, "ImDrawListSharedData*")] public unsafe ImDrawListSharedData* Data; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_OwnerName")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* OwnerName; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_VtxWritePtr")] - [NativeName(NativeNameType.Type, "ImDrawVert*")] public unsafe ImDrawVert* VtxWritePtr; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_IdxWritePtr")] - [NativeName(NativeNameType.Type, "ImDrawIdx*")] public unsafe ushort* IdxWritePtr; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_ClipRectStack")] - [NativeName(NativeNameType.Type, "ImVector_ImVec4")] public ImVectorImVec4 ClipRectStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_TextureIdStack")] - [NativeName(NativeNameType.Type, "ImVector_ImTextureID")] public ImVectorImTextureID TextureIdStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_Path")] - [NativeName(NativeNameType.Type, "ImVector_ImVec2")] public ImVectorImVec2 Path; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_CmdHeader")] - [NativeName(NativeNameType.Type, "ImDrawCmdHeader")] public ImDrawCmdHeader CmdHeader; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_Splitter")] - [NativeName(NativeNameType.Type, "ImDrawListSplitter")] public ImDrawListSplitter Splitter; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_FringeScale")] - [NativeName(NativeNameType.Type, "float")] public float FringeScale; + /// /// To be documented. /// public unsafe ImDrawList(ImVectorImDrawCmd cmdBuffer = default, ImVectorImDrawIdx idxBuffer = default, ImVectorImDrawVert vtxBuffer = default, int flags = default, uint Vtxcurrentidx = default, ImDrawListSharedData* Data = default, byte* Ownername = default, ImDrawVert* Vtxwriteptr = default, ushort* Idxwriteptr = default, ImVectorImVec4 Cliprectstack = default, ImVectorImTextureID Textureidstack = default, ImVectorImVec2 Path = default, ImDrawCmdHeader Cmdheader = default, ImDrawListSplitter Splitter = default, float Fringescale = default) + { + CmdBuffer = cmdBuffer; + IdxBuffer = idxBuffer; + VtxBuffer = vtxBuffer; + Flags = flags; + VtxCurrentIdx = Vtxcurrentidx; + this.Data = Data; + OwnerName = Ownername; + VtxWritePtr = Vtxwriteptr; + IdxWritePtr = Idxwriteptr; + ClipRectStack = Cliprectstack; + TextureIdStack = Textureidstack; + this.Path = Path; + CmdHeader = Cmdheader; + this.Splitter = Splitter; + FringeScale = Fringescale; + } + - [NativeName(NativeNameType.Func, "ImDrawList__CalcCircleAutoSegmentCount")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int _CalcCircleAutoSegmentCount([NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius) + public unsafe int _CalcCircleAutoSegmentCount( float radius) { fixed (ImDrawList* @this = &this) { @@ -280,8 +259,6 @@ public unsafe int _CalcCircleAutoSegmentCount([NativeName(NativeNameType.Param, } } - [NativeName(NativeNameType.Func, "ImDrawList__ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void _ClearFreeMemory() { fixed (ImDrawList* @this = &this) @@ -290,8 +267,6 @@ public unsafe void _ClearFreeMemory() } } - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedClipRect")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void _OnChangedClipRect() { fixed (ImDrawList* @this = &this) @@ -300,8 +275,6 @@ public unsafe void _OnChangedClipRect() } } - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedTextureID")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void _OnChangedTextureID() { fixed (ImDrawList* @this = &this) @@ -310,8 +283,6 @@ public unsafe void _OnChangedTextureID() } } - [NativeName(NativeNameType.Func, "ImDrawList__OnChangedVtxOffset")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void _OnChangedVtxOffset() { fixed (ImDrawList* @this = &this) @@ -320,9 +291,7 @@ public unsafe void _OnChangedVtxOffset() } } - [NativeName(NativeNameType.Func, "ImDrawList__PathArcToFastEx")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void _PathArcToFastEx([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min_sample")] [NativeName(NativeNameType.Type, "int")] int aMinSample, [NativeName(NativeNameType.Param, "a_max_sample")] [NativeName(NativeNameType.Type, "int")] int aMaxSample, [NativeName(NativeNameType.Param, "a_step")] [NativeName(NativeNameType.Type, "int")] int aStep) + public unsafe void _PathArcToFastEx( Vector2 center, float radius, int aMinSample, int aMaxSample, int aStep) { fixed (ImDrawList* @this = &this) { @@ -330,9 +299,7 @@ public unsafe void _PathArcToFastEx([NativeName(NativeNameType.Param, "center")] } } - [NativeName(NativeNameType.Func, "ImDrawList__PathArcToN")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void _PathArcToN([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min")] [NativeName(NativeNameType.Type, "float")] float aMin, [NativeName(NativeNameType.Param, "a_max")] [NativeName(NativeNameType.Type, "float")] float aMax, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public unsafe void _PathArcToN( Vector2 center, float radius, float aMin, float aMax, int numSegments) { fixed (ImDrawList* @this = &this) { @@ -340,8 +307,6 @@ public unsafe void _PathArcToN([NativeName(NativeNameType.Param, "center")] [Nat } } - [NativeName(NativeNameType.Func, "ImDrawList__PopUnusedDrawCmd")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void _PopUnusedDrawCmd() { fixed (ImDrawList* @this = &this) @@ -350,8 +315,6 @@ public unsafe void _PopUnusedDrawCmd() } } - [NativeName(NativeNameType.Func, "ImDrawList__ResetForNewFrame")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void _ResetForNewFrame() { fixed (ImDrawList* @this = &this) @@ -360,8 +323,6 @@ public unsafe void _ResetForNewFrame() } } - [NativeName(NativeNameType.Func, "ImDrawList__TryMergeDrawCmds")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void _TryMergeDrawCmds() { fixed (ImDrawList* @this = &this) @@ -370,9 +331,7 @@ public unsafe void _TryMergeDrawCmds() } } - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierCubic")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddBezierCubic([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public unsafe void AddBezierCubic( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int numSegments) { fixed (ImDrawList* @this = &this) { @@ -380,9 +339,7 @@ public unsafe void AddBezierCubic([NativeName(NativeNameType.Param, "p1")] [Nati } } - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierCubic")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddBezierCubic([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddBezierCubic( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) { fixed (ImDrawList* @this = &this) { @@ -390,9 +347,7 @@ public unsafe void AddBezierCubic([NativeName(NativeNameType.Param, "p1")] [Nati } } - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierQuadratic")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddBezierQuadratic([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public unsafe void AddBezierQuadratic( Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int numSegments) { fixed (ImDrawList* @this = &this) { @@ -400,9 +355,7 @@ public unsafe void AddBezierQuadratic([NativeName(NativeNameType.Param, "p1")] [ } } - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_AddBezierQuadratic")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddBezierQuadratic([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddBezierQuadratic( Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) { fixed (ImDrawList* @this = &this) { @@ -410,9 +363,7 @@ public unsafe void AddBezierQuadratic([NativeName(NativeNameType.Param, "p1")] [ } } - /// /// Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. /// [NativeName(NativeNameType.Func, "ImDrawList_AddCallback")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddCallback([NativeName(NativeNameType.Param, "callback")] [NativeName(NativeNameType.Type, "ImDrawCallback")] ImDrawCallback callback, [NativeName(NativeNameType.Param, "callback_data")] [NativeName(NativeNameType.Type, "void*")] void* callbackData) + public unsafe void AddCallback( ImDrawCallback callback, void* callbackData) { fixed (ImDrawList* @this = &this) { @@ -420,9 +371,7 @@ public unsafe void AddCallback([NativeName(NativeNameType.Param, "callback")] [N } } - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddCircle([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddCircle( Vector2 center, float radius, uint col, int numSegments, float thickness) { fixed (ImDrawList* @this = &this) { @@ -430,9 +379,7 @@ public unsafe void AddCircle([NativeName(NativeNameType.Param, "center")] [Nativ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddCircle([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public unsafe void AddCircle( Vector2 center, float radius, uint col, int numSegments) { fixed (ImDrawList* @this = &this) { @@ -440,9 +387,7 @@ public unsafe void AddCircle([NativeName(NativeNameType.Param, "center")] [Nativ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddCircle([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddCircle( Vector2 center, float radius, uint col) { fixed (ImDrawList* @this = &this) { @@ -450,9 +395,7 @@ public unsafe void AddCircle([NativeName(NativeNameType.Param, "center")] [Nativ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddCircle")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddCircle([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddCircle( Vector2 center, float radius, uint col, float thickness) { fixed (ImDrawList* @this = &this) { @@ -460,9 +403,7 @@ public unsafe void AddCircle([NativeName(NativeNameType.Param, "center")] [Nativ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddCircleFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddCircleFilled([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public unsafe void AddCircleFilled( Vector2 center, float radius, uint col, int numSegments) { fixed (ImDrawList* @this = &this) { @@ -470,9 +411,7 @@ public unsafe void AddCircleFilled([NativeName(NativeNameType.Param, "center")] } } - [NativeName(NativeNameType.Func, "ImDrawList_AddCircleFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddCircleFilled([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddCircleFilled( Vector2 center, float radius, uint col) { fixed (ImDrawList* @this = &this) { @@ -480,9 +419,7 @@ public unsafe void AddCircleFilled([NativeName(NativeNameType.Param, "center")] } } - [NativeName(NativeNameType.Func, "ImDrawList_AddConvexPolyFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddConvexPolyFilled([NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddConvexPolyFilled( Vector2* points, int numPoints, uint col) { fixed (ImDrawList* @this = &this) { @@ -490,9 +427,7 @@ public unsafe void AddConvexPolyFilled([NativeName(NativeNameType.Param, "points } } - [NativeName(NativeNameType.Func, "ImDrawList_AddConvexPolyFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddConvexPolyFilled([NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddConvexPolyFilled( ref Vector2 points, int numPoints, uint col) { fixed (ImDrawList* @this = &this) { @@ -503,8 +438,6 @@ public unsafe void AddConvexPolyFilled([NativeName(NativeNameType.Param, "points } } - /// /// This is useful if you need to forcefully create a new draw call (to allow for dependent rendering blending). Otherwise primitives are merged into the same draw-call as much as possible /// [NativeName(NativeNameType.Func, "ImDrawList_AddDrawCmd")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void AddDrawCmd() { fixed (ImDrawList* @this = &this) @@ -513,9 +446,95 @@ public unsafe void AddDrawCmd() } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, rot, numSegments, thickness); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, rot, numSegments, (float)(1.0f)); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, float rot) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, rot, (int)(0), (float)(1.0f)); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, (float)(0.0f), (int)(0), (float)(1.0f)); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, (float)(0.0f), numSegments, (float)(1.0f)); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, float rot, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, rot, (int)(0), thickness); + } + } + + public unsafe void AddEllipse( Vector2 center, float radiusX, float radiusY, uint col, int numSegments, float thickness) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseNative(@this, center, radiusX, radiusY, col, (float)(0.0f), numSegments, thickness); + } + } + + public unsafe void AddEllipseFilled( Vector2 center, float radiusX, float radiusY, uint col, float rot, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseFilledNative(@this, center, radiusX, radiusY, col, rot, numSegments); + } + } + + public unsafe void AddEllipseFilled( Vector2 center, float radiusX, float radiusY, uint col, float rot) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseFilledNative(@this, center, radiusX, radiusY, col, rot, (int)(0)); + } + } + + public unsafe void AddEllipseFilled( Vector2 center, float radiusX, float radiusY, uint col) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseFilledNative(@this, center, radiusX, radiusY, col, (float)(0.0f), (int)(0)); + } + } + + public unsafe void AddEllipseFilled( Vector2 center, float radiusX, float radiusY, uint col, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.AddEllipseFilledNative(@this, center, radiusX, radiusY, col, (float)(0.0f), numSegments); + } + } + + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col) { fixed (ImDrawList* @this = &this) { @@ -523,9 +542,7 @@ public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id") } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax) + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax) { fixed (ImDrawList* @this = &this) { @@ -533,9 +550,7 @@ public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id") } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin) + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin) { fixed (ImDrawList* @this = &this) { @@ -543,9 +558,7 @@ public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id") } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax) + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax) { fixed (ImDrawList* @this = &this) { @@ -553,9 +566,7 @@ public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id") } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, uint col) { fixed (ImDrawList* @this = &this) { @@ -563,9 +574,7 @@ public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id") } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImage")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddImage( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, uint col) { fixed (ImDrawList* @this = &this) { @@ -573,9 +582,7 @@ public unsafe void AddImage([NativeName(NativeNameType.Param, "user_texture_id") } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3, [NativeName(NativeNameType.Param, "uv4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col) { fixed (ImDrawList* @this = &this) { @@ -583,9 +590,7 @@ public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3, [NativeName(NativeNameType.Param, "uv4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv4) + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4) { fixed (ImDrawList* @this = &this) { @@ -593,9 +598,7 @@ public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3) + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3) { fixed (ImDrawList* @this = &this) { @@ -603,9 +606,7 @@ public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2) + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2) { fixed (ImDrawList* @this = &this) { @@ -613,9 +614,7 @@ public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1) + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1) { fixed (ImDrawList* @this = &this) { @@ -623,9 +622,7 @@ public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4) + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4) { fixed (ImDrawList* @this = &this) { @@ -633,9 +630,7 @@ public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "uv3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, uint col) { fixed (ImDrawList* @this = &this) { @@ -643,9 +638,7 @@ public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "uv2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv2, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, uint col) { fixed (ImDrawList* @this = &this) { @@ -653,9 +646,7 @@ public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "uv1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv1, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, uint col) { fixed (ImDrawList* @this = &this) { @@ -663,9 +654,7 @@ public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddImageQuad( ImTextureID userTextureId, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) { fixed (ImDrawList* @this = &this) { @@ -673,9 +662,7 @@ public unsafe void AddImageQuad([NativeName(NativeNameType.Param, "user_texture_ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageRounded")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageRounded([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + public unsafe void AddImageRounded( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding, int flags) { fixed (ImDrawList* @this = &this) { @@ -683,19 +670,15 @@ public unsafe void AddImageRounded([NativeName(NativeNameType.Param, "user_textu } } - [NativeName(NativeNameType.Func, "ImDrawList_AddImageRounded")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddImageRounded([NativeName(NativeNameType.Param, "user_texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID userTextureId, [NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "uv_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMin, [NativeName(NativeNameType.Param, "uv_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + public unsafe void AddImageRounded( ImTextureID userTextureId, Vector2 pMin, Vector2 pMax, Vector2 uvMin, Vector2 uvMax, uint col, float rounding) { fixed (ImDrawList* @this = &this) { - ImGui.AddImageRoundedNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (ImDrawFlags)(0)); + ImGui.AddImageRoundedNative(@this, userTextureId, pMin, pMax, uvMin, uvMax, col, rounding, (int)(0)); } } - [NativeName(NativeNameType.Func, "ImDrawList_AddLine")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddLine([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddLine( Vector2 p1, Vector2 p2, uint col, float thickness) { fixed (ImDrawList* @this = &this) { @@ -703,9 +686,7 @@ public unsafe void AddLine([NativeName(NativeNameType.Param, "p1")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImDrawList_AddLine")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddLine([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddLine( Vector2 p1, Vector2 p2, uint col) { fixed (ImDrawList* @this = &this) { @@ -713,9 +694,7 @@ public unsafe void AddLine([NativeName(NativeNameType.Param, "p1")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImDrawList_AddNgon")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddNgon([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddNgon( Vector2 center, float radius, uint col, int numSegments, float thickness) { fixed (ImDrawList* @this = &this) { @@ -723,9 +702,7 @@ public unsafe void AddNgon([NativeName(NativeNameType.Param, "center")] [NativeN } } - [NativeName(NativeNameType.Func, "ImDrawList_AddNgon")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddNgon([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public unsafe void AddNgon( Vector2 center, float radius, uint col, int numSegments) { fixed (ImDrawList* @this = &this) { @@ -733,9 +710,7 @@ public unsafe void AddNgon([NativeName(NativeNameType.Param, "center")] [NativeN } } - [NativeName(NativeNameType.Func, "ImDrawList_AddNgonFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddNgonFilled([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public unsafe void AddNgonFilled( Vector2 center, float radius, uint col, int numSegments) { fixed (ImDrawList* @this = &this) { @@ -743,9 +718,7 @@ public unsafe void AddNgonFilled([NativeName(NativeNameType.Param, "center")] [N } } - [NativeName(NativeNameType.Func, "ImDrawList_AddPolyline")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddPolyline([NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] Vector2* points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddPolyline( Vector2* points, int numPoints, uint col, int flags, float thickness) { fixed (ImDrawList* @this = &this) { @@ -753,9 +726,7 @@ public unsafe void AddPolyline([NativeName(NativeNameType.Param, "points")] [Nat } } - [NativeName(NativeNameType.Func, "ImDrawList_AddPolyline")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddPolyline([NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const ImVec2*")] ref Vector2 points, [NativeName(NativeNameType.Param, "num_points")] [NativeName(NativeNameType.Type, "int")] int numPoints, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddPolyline( ref Vector2 points, int numPoints, uint col, int flags, float thickness) { fixed (ImDrawList* @this = &this) { @@ -766,9 +737,7 @@ public unsafe void AddPolyline([NativeName(NativeNameType.Param, "points")] [Nat } } - [NativeName(NativeNameType.Func, "ImDrawList_AddQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddQuad([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddQuad( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness) { fixed (ImDrawList* @this = &this) { @@ -776,9 +745,7 @@ public unsafe void AddQuad([NativeName(NativeNameType.Param, "p1")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImDrawList_AddQuad")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddQuad([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddQuad( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) { fixed (ImDrawList* @this = &this) { @@ -786,9 +753,7 @@ public unsafe void AddQuad([NativeName(NativeNameType.Param, "p1")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImDrawList_AddQuadFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddQuadFilled([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddQuadFilled( Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col) { fixed (ImDrawList* @this = &this) { @@ -796,9 +761,7 @@ public unsafe void AddQuadFilled([NativeName(NativeNameType.Param, "p1")] [Nativ } } - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRect([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags, float thickness) { fixed (ImDrawList* @this = &this) { @@ -806,9 +769,7 @@ public unsafe void AddRect([NativeName(NativeNameType.Param, "p_min")] [NativeNa } } - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRect([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags) { fixed (ImDrawList* @this = &this) { @@ -816,29 +777,23 @@ public unsafe void AddRect([NativeName(NativeNameType.Param, "p_min")] [NativeNa } } - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRect([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, float rounding) { fixed (ImDrawList* @this = &this) { - ImGui.AddRectNative(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0), (float)(1.0f)); + ImGui.AddRectNative(@this, pMin, pMax, col, rounding, (int)(0), (float)(1.0f)); } } - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRect([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col) { fixed (ImDrawList* @this = &this) { - ImGui.AddRectNative(@this, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0), (float)(1.0f)); + ImGui.AddRectNative(@this, pMin, pMax, col, (float)(0.0f), (int)(0), (float)(1.0f)); } } - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRect([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, int flags) { fixed (ImDrawList* @this = &this) { @@ -846,19 +801,15 @@ public unsafe void AddRect([NativeName(NativeNameType.Param, "p_min")] [NativeNa } } - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRect([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, float rounding, float thickness) { fixed (ImDrawList* @this = &this) { - ImGui.AddRectNative(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0), thickness); + ImGui.AddRectNative(@this, pMin, pMax, col, rounding, (int)(0), thickness); } } - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRect([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddRect( Vector2 pMin, Vector2 pMax, uint col, int flags, float thickness) { fixed (ImDrawList* @this = &this) { @@ -866,9 +817,7 @@ public unsafe void AddRect([NativeName(NativeNameType.Param, "p_min")] [NativeNa } } - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRectFilled([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + public unsafe void AddRectFilled( Vector2 pMin, Vector2 pMax, uint col, float rounding, int flags) { fixed (ImDrawList* @this = &this) { @@ -876,29 +825,23 @@ public unsafe void AddRectFilled([NativeName(NativeNameType.Param, "p_min")] [Na } } - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRectFilled([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + public unsafe void AddRectFilled( Vector2 pMin, Vector2 pMax, uint col, float rounding) { fixed (ImDrawList* @this = &this) { - ImGui.AddRectFilledNative(@this, pMin, pMax, col, rounding, (ImDrawFlags)(0)); + ImGui.AddRectFilledNative(@this, pMin, pMax, col, rounding, (int)(0)); } } - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRectFilled([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddRectFilled( Vector2 pMin, Vector2 pMax, uint col) { fixed (ImDrawList* @this = &this) { - ImGui.AddRectFilledNative(@this, pMin, pMax, col, (float)(0.0f), (ImDrawFlags)(0)); + ImGui.AddRectFilledNative(@this, pMin, pMax, col, (float)(0.0f), (int)(0)); } } - /// /// a: upper-left, b: lower-right (== upper-left + size) /// [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRectFilled([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + public unsafe void AddRectFilled( Vector2 pMin, Vector2 pMax, uint col, int flags) { fixed (ImDrawList* @this = &this) { @@ -906,9 +849,7 @@ public unsafe void AddRectFilled([NativeName(NativeNameType.Param, "p_min")] [Na } } - [NativeName(NativeNameType.Func, "ImDrawList_AddRectFilledMultiColor")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRectFilledMultiColor([NativeName(NativeNameType.Param, "p_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMin, [NativeName(NativeNameType.Param, "p_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pMax, [NativeName(NativeNameType.Param, "col_upr_left")] [NativeName(NativeNameType.Type, "ImU32")] uint colUprLeft, [NativeName(NativeNameType.Param, "col_upr_right")] [NativeName(NativeNameType.Type, "ImU32")] uint colUprRight, [NativeName(NativeNameType.Param, "col_bot_right")] [NativeName(NativeNameType.Type, "ImU32")] uint colBotRight, [NativeName(NativeNameType.Param, "col_bot_left")] [NativeName(NativeNameType.Type, "ImU32")] uint colBotLeft) + public unsafe void AddRectFilledMultiColor( Vector2 pMin, Vector2 pMax, uint colUprLeft, uint colUprRight, uint colBotRight, uint colBotLeft) { fixed (ImDrawList* @this = &this) { @@ -916,9 +857,7 @@ public unsafe void AddRectFilledMultiColor([NativeName(NativeNameType.Param, "p_ } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( Vector2 pos, uint col, byte* textBegin, byte* textEnd) { fixed (ImDrawList* @this = &this) { @@ -926,9 +865,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) + public unsafe void AddText( Vector2 pos, uint col, byte* textBegin) { fixed (ImDrawList* @this = &this) { @@ -936,9 +873,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( Vector2 pos, uint col, ref byte textBegin, byte* textEnd) { fixed (ImDrawList* @this = &this) { @@ -949,9 +884,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) + public unsafe void AddText( Vector2 pos, uint col, ref byte textBegin) { fixed (ImDrawList* @this = &this) { @@ -962,9 +895,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( Vector2 pos, uint col, string textBegin, byte* textEnd) { fixed (ImDrawList* @this = &this) { @@ -993,9 +924,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) + public unsafe void AddText( Vector2 pos, uint col, string textBegin) { fixed (ImDrawList* @this = &this) { @@ -1024,9 +953,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void AddText( Vector2 pos, uint col, byte* textBegin, ref byte textEnd) { fixed (ImDrawList* @this = &this) { @@ -1037,9 +964,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void AddText( Vector2 pos, uint col, byte* textBegin, string textEnd) { fixed (ImDrawList* @this = &this) { @@ -1068,9 +993,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void AddText( Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) { fixed (ImDrawList* @this = &this) { @@ -1084,9 +1007,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void AddText( Vector2 pos, uint col, string textBegin, string textEnd) { fixed (ImDrawList* @this = &this) { @@ -1136,9 +1057,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "pos")] [NativeName } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1146,9 +1065,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1156,9 +1073,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) { fixed (ImDrawList* @this = &this) { @@ -1166,9 +1081,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin) { fixed (ImDrawList* @this = &this) { @@ -1176,9 +1089,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1186,9 +1097,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1196,9 +1105,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1206,9 +1113,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1216,9 +1121,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1229,9 +1132,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1242,9 +1143,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd) { fixed (ImDrawList* @this = &this) { @@ -1255,9 +1154,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin) { fixed (ImDrawList* @this = &this) { @@ -1268,9 +1165,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1281,9 +1176,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1294,9 +1187,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1307,9 +1198,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1320,9 +1209,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1333,9 +1220,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1346,9 +1231,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) { fixed (ImDrawList* @this = &this) { @@ -1359,9 +1242,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin) { fixed (ImDrawList* @this = &this) { @@ -1372,9 +1253,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1385,9 +1264,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1398,9 +1275,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1411,9 +1286,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1424,9 +1297,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1455,9 +1326,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1486,9 +1355,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) { fixed (ImDrawList* @this = &this) { @@ -1517,9 +1384,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin) { fixed (ImDrawList* @this = &this) { @@ -1548,9 +1413,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1579,9 +1442,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1610,9 +1471,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1641,9 +1500,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1672,9 +1529,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1688,9 +1543,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1704,9 +1557,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd) { fixed (ImDrawList* @this = &this) { @@ -1720,9 +1571,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin) { fixed (ImDrawList* @this = &this) { @@ -1736,9 +1585,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1752,9 +1599,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1768,9 +1613,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1784,9 +1627,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1800,9 +1641,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -1834,9 +1673,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1868,9 +1705,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd) { fixed (ImDrawList* @this = &this) { @@ -1902,9 +1737,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin) { fixed (ImDrawList* @this = &this) { @@ -1936,9 +1769,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -1970,9 +1801,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2004,9 +1833,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2038,9 +1865,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2072,9 +1897,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2085,9 +1908,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -2098,9 +1919,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) { fixed (ImDrawList* @this = &this) { @@ -2111,9 +1930,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2124,9 +1941,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2155,9 +1970,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -2186,9 +1999,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) { fixed (ImDrawList* @this = &this) { @@ -2217,9 +2028,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2248,9 +2057,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2264,9 +2071,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -2280,9 +2085,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd) { fixed (ImDrawList* @this = &this) { @@ -2296,9 +2099,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2312,9 +2113,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2346,9 +2145,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -2380,9 +2177,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd) { fixed (ImDrawList* @this = &this) { @@ -2414,9 +2209,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2448,9 +2241,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2464,9 +2255,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -2480,9 +2269,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) { fixed (ImDrawList* @this = &this) { @@ -2496,9 +2283,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2512,9 +2297,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2564,9 +2347,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -2616,9 +2397,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) { fixed (ImDrawList* @this = &this) { @@ -2668,9 +2447,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2720,9 +2497,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2739,9 +2514,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -2758,9 +2531,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd) { fixed (ImDrawList* @this = &this) { @@ -2777,9 +2548,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2796,9 +2565,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -2851,9 +2618,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth) { fixed (ImDrawList* @this = &this) { @@ -2906,9 +2671,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd) { fixed (ImDrawList* @this = &this) { @@ -2961,9 +2724,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] Vector4* cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, Vector4* cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3016,9 +2777,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3029,9 +2788,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3042,9 +2799,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3055,9 +2810,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3068,9 +2821,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3084,9 +2835,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3100,9 +2849,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3116,9 +2863,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3132,9 +2877,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3148,9 +2891,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3164,9 +2905,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3180,9 +2919,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3196,9 +2933,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3230,9 +2965,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3264,9 +2997,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3298,9 +3029,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3332,9 +3061,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3351,9 +3078,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3370,9 +3095,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3389,9 +3112,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3408,9 +3129,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3445,9 +3164,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, byte* textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3482,9 +3199,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3519,9 +3234,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3556,9 +3269,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3572,9 +3283,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3588,9 +3297,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3622,9 +3329,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3656,9 +3361,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3675,9 +3378,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3694,9 +3395,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3731,9 +3430,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, byte* textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3768,9 +3465,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3787,9 +3482,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3806,9 +3499,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3861,9 +3552,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ImFont* font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3916,9 +3605,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3938,9 +3625,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, ref byte textBegin, ref byte textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -3960,9 +3645,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, float wrapWidth, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -4018,9 +3701,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddText_FontPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "const ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "float")] float fontSize, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4*")] ref Vector4 cpuFineClipRect) + public unsafe void AddText( ref ImFont font, float fontSize, Vector2 pos, uint col, string textBegin, string textEnd, ref Vector4 cpuFineClipRect) { fixed (ImDrawList* @this = &this) { @@ -4076,9 +3757,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "font")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_AddTriangle")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddTriangle([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void AddTriangle( Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness) { fixed (ImDrawList* @this = &this) { @@ -4086,9 +3765,7 @@ public unsafe void AddTriangle([NativeName(NativeNameType.Param, "p1")] [NativeN } } - [NativeName(NativeNameType.Func, "ImDrawList_AddTriangle")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddTriangle([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddTriangle( Vector2 p1, Vector2 p2, Vector2 p3, uint col) { fixed (ImDrawList* @this = &this) { @@ -4096,9 +3773,7 @@ public unsafe void AddTriangle([NativeName(NativeNameType.Param, "p1")] [NativeN } } - [NativeName(NativeNameType.Func, "ImDrawList_AddTriangleFilled")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddTriangleFilled([NativeName(NativeNameType.Param, "p1")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p1, [NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void AddTriangleFilled( Vector2 p1, Vector2 p2, Vector2 p3, uint col) { fixed (ImDrawList* @this = &this) { @@ -4106,8 +3781,6 @@ public unsafe void AddTriangleFilled([NativeName(NativeNameType.Param, "p1")] [N } } - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsMerge")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void ChannelsMerge() { fixed (ImDrawList* @this = &this) @@ -4116,9 +3789,7 @@ public unsafe void ChannelsMerge() } } - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsSetCurrent")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ChannelsSetCurrent([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + public unsafe void ChannelsSetCurrent( int n) { fixed (ImDrawList* @this = &this) { @@ -4126,9 +3797,7 @@ public unsafe void ChannelsSetCurrent([NativeName(NativeNameType.Param, "n")] [N } } - [NativeName(NativeNameType.Func, "ImDrawList_ChannelsSplit")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ChannelsSplit([NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + public unsafe void ChannelsSplit( int count) { fixed (ImDrawList* @this = &this) { @@ -4136,8 +3805,6 @@ public unsafe void ChannelsSplit([NativeName(NativeNameType.Param, "count")] [Na } } - /// /// Create a clone of the CmdBufferIdxBufferVtxBuffer. /// [NativeName(NativeNameType.Func, "ImDrawList_CloneOutput")] - [return: NativeName(NativeNameType.Type, "ImDrawList*")] public unsafe ImDrawList* CloneOutput() { fixed (ImDrawList* @this = &this) @@ -4147,8 +3814,6 @@ public unsafe void ChannelsSplit([NativeName(NativeNameType.Param, "count")] [Na } } - [NativeName(NativeNameType.Func, "ImDrawList_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImDrawList* @this = &this) @@ -4157,9 +3822,7 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImDrawList_PathArcTo")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathArcTo([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min")] [NativeName(NativeNameType.Type, "float")] float aMin, [NativeName(NativeNameType.Param, "a_max")] [NativeName(NativeNameType.Type, "float")] float aMax, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public unsafe void PathArcTo( Vector2 center, float radius, float aMin, float aMax, int numSegments) { fixed (ImDrawList* @this = &this) { @@ -4167,9 +3830,7 @@ public unsafe void PathArcTo([NativeName(NativeNameType.Param, "center")] [Nativ } } - [NativeName(NativeNameType.Func, "ImDrawList_PathArcTo")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathArcTo([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min")] [NativeName(NativeNameType.Type, "float")] float aMin, [NativeName(NativeNameType.Param, "a_max")] [NativeName(NativeNameType.Type, "float")] float aMax) + public unsafe void PathArcTo( Vector2 center, float radius, float aMin, float aMax) { fixed (ImDrawList* @this = &this) { @@ -4177,9 +3838,7 @@ public unsafe void PathArcTo([NativeName(NativeNameType.Param, "center")] [Nativ } } - /// /// Use precomputed angles for a 12 steps circle /// [NativeName(NativeNameType.Func, "ImDrawList_PathArcToFast")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathArcToFast([NativeName(NativeNameType.Param, "center")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 center, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "float")] float radius, [NativeName(NativeNameType.Param, "a_min_of_12")] [NativeName(NativeNameType.Type, "int")] int aMinOf12, [NativeName(NativeNameType.Param, "a_max_of_12")] [NativeName(NativeNameType.Type, "int")] int aMaxOf12) + public unsafe void PathArcToFast( Vector2 center, float radius, int aMinOf12, int aMaxOf12) { fixed (ImDrawList* @this = &this) { @@ -4187,9 +3846,7 @@ public unsafe void PathArcToFast([NativeName(NativeNameType.Param, "center")] [N } } - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierCubicCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathBezierCubicCurveTo([NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public unsafe void PathBezierCubicCurveTo( Vector2 p2, Vector2 p3, Vector2 p4, int numSegments) { fixed (ImDrawList* @this = &this) { @@ -4197,9 +3854,7 @@ public unsafe void PathBezierCubicCurveTo([NativeName(NativeNameType.Param, "p2" } } - /// /// Cubic Bezier (4 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierCubicCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathBezierCubicCurveTo([NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "p4")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p4) + public unsafe void PathBezierCubicCurveTo( Vector2 p2, Vector2 p3, Vector2 p4) { fixed (ImDrawList* @this = &this) { @@ -4207,9 +3862,7 @@ public unsafe void PathBezierCubicCurveTo([NativeName(NativeNameType.Param, "p2" } } - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierQuadraticCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathBezierQuadraticCurveTo([NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3, [NativeName(NativeNameType.Param, "num_segments")] [NativeName(NativeNameType.Type, "int")] int numSegments) + public unsafe void PathBezierQuadraticCurveTo( Vector2 p2, Vector2 p3, int numSegments) { fixed (ImDrawList* @this = &this) { @@ -4217,9 +3870,7 @@ public unsafe void PathBezierQuadraticCurveTo([NativeName(NativeNameType.Param, } } - /// /// Quadratic Bezier (3 control points) /// [NativeName(NativeNameType.Func, "ImDrawList_PathBezierQuadraticCurveTo")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathBezierQuadraticCurveTo([NativeName(NativeNameType.Param, "p2")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p2, [NativeName(NativeNameType.Param, "p3")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p3) + public unsafe void PathBezierQuadraticCurveTo( Vector2 p2, Vector2 p3) { fixed (ImDrawList* @this = &this) { @@ -4227,8 +3878,6 @@ public unsafe void PathBezierQuadraticCurveTo([NativeName(NativeNameType.Param, } } - [NativeName(NativeNameType.Func, "ImDrawList_PathClear")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void PathClear() { fixed (ImDrawList* @this = &this) @@ -4237,9 +3886,23 @@ public unsafe void PathClear() } } - [NativeName(NativeNameType.Func, "ImDrawList_PathFillConvex")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathFillConvex([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void PathEllipticalArcTo( Vector2 center, float radiusX, float radiusY, float rot, float aMin, float aMax, int numSegments) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathEllipticalArcToNative(@this, center, radiusX, radiusY, rot, aMin, aMax, numSegments); + } + } + + public unsafe void PathEllipticalArcTo( Vector2 center, float radiusX, float radiusY, float rot, float aMin, float aMax) + { + fixed (ImDrawList* @this = &this) + { + ImGui.PathEllipticalArcToNative(@this, center, radiusX, radiusY, rot, aMin, aMax, (int)(0)); + } + } + + public unsafe void PathFillConvex( uint col) { fixed (ImDrawList* @this = &this) { @@ -4247,9 +3910,7 @@ public unsafe void PathFillConvex([NativeName(NativeNameType.Param, "col")] [Nat } } - [NativeName(NativeNameType.Func, "ImDrawList_PathLineTo")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathLineTo([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) + public unsafe void PathLineTo( Vector2 pos) { fixed (ImDrawList* @this = &this) { @@ -4257,9 +3918,7 @@ public unsafe void PathLineTo([NativeName(NativeNameType.Param, "pos")] [NativeN } } - [NativeName(NativeNameType.Func, "ImDrawList_PathLineToMergeDuplicate")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathLineToMergeDuplicate([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos) + public unsafe void PathLineToMergeDuplicate( Vector2 pos) { fixed (ImDrawList* @this = &this) { @@ -4267,9 +3926,7 @@ public unsafe void PathLineToMergeDuplicate([NativeName(NativeNameType.Param, "p } } - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathRect([NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + public unsafe void PathRect( Vector2 rectMin, Vector2 rectMax, float rounding, int flags) { fixed (ImDrawList* @this = &this) { @@ -4277,29 +3934,23 @@ public unsafe void PathRect([NativeName(NativeNameType.Param, "rect_min")] [Nati } } - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathRect([NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax, [NativeName(NativeNameType.Param, "rounding")] [NativeName(NativeNameType.Type, "float")] float rounding) + public unsafe void PathRect( Vector2 rectMin, Vector2 rectMax, float rounding) { fixed (ImDrawList* @this = &this) { - ImGui.PathRectNative(@this, rectMin, rectMax, rounding, (ImDrawFlags)(0)); + ImGui.PathRectNative(@this, rectMin, rectMax, rounding, (int)(0)); } } - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathRect([NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax) + public unsafe void PathRect( Vector2 rectMin, Vector2 rectMax) { fixed (ImDrawList* @this = &this) { - ImGui.PathRectNative(@this, rectMin, rectMax, (float)(0.0f), (ImDrawFlags)(0)); + ImGui.PathRectNative(@this, rectMin, rectMax, (float)(0.0f), (int)(0)); } } - [NativeName(NativeNameType.Func, "ImDrawList_PathRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathRect([NativeName(NativeNameType.Param, "rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMin, [NativeName(NativeNameType.Param, "rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 rectMax, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + public unsafe void PathRect( Vector2 rectMin, Vector2 rectMax, int flags) { fixed (ImDrawList* @this = &this) { @@ -4307,9 +3958,7 @@ public unsafe void PathRect([NativeName(NativeNameType.Param, "rect_min")] [Nati } } - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathStroke([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void PathStroke( uint col, int flags, float thickness) { fixed (ImDrawList* @this = &this) { @@ -4317,9 +3966,7 @@ public unsafe void PathStroke([NativeName(NativeNameType.Param, "col")] [NativeN } } - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathStroke([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImDrawFlags")] ImDrawFlags flags) + public unsafe void PathStroke( uint col, int flags) { fixed (ImDrawList* @this = &this) { @@ -4327,28 +3974,22 @@ public unsafe void PathStroke([NativeName(NativeNameType.Param, "col")] [NativeN } } - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathStroke([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void PathStroke( uint col) { fixed (ImDrawList* @this = &this) { - ImGui.PathStrokeNative(@this, col, (ImDrawFlags)(0), (float)(1.0f)); + ImGui.PathStrokeNative(@this, col, (int)(0), (float)(1.0f)); } } - [NativeName(NativeNameType.Func, "ImDrawList_PathStroke")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PathStroke([NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "thickness")] [NativeName(NativeNameType.Type, "float")] float thickness) + public unsafe void PathStroke( uint col, float thickness) { fixed (ImDrawList* @this = &this) { - ImGui.PathStrokeNative(@this, col, (ImDrawFlags)(0), thickness); + ImGui.PathStrokeNative(@this, col, (int)(0), thickness); } } - [NativeName(NativeNameType.Func, "ImDrawList_PopClipRect")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void PopClipRect() { fixed (ImDrawList* @this = &this) @@ -4357,8 +3998,6 @@ public unsafe void PopClipRect() } } - [NativeName(NativeNameType.Func, "ImDrawList_PopTextureID")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void PopTextureID() { fixed (ImDrawList* @this = &this) @@ -4367,9 +4006,7 @@ public unsafe void PopTextureID() } } - [NativeName(NativeNameType.Func, "ImDrawList_PrimQuadUV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PrimQuadUV([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 c, [NativeName(NativeNameType.Param, "d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 d, [NativeName(NativeNameType.Param, "uv_a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvA, [NativeName(NativeNameType.Param, "uv_b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvB, [NativeName(NativeNameType.Param, "uv_c")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvC, [NativeName(NativeNameType.Param, "uv_d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvD, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void PrimQuadUV( Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uvA, Vector2 uvB, Vector2 uvC, Vector2 uvD, uint col) { fixed (ImDrawList* @this = &this) { @@ -4377,9 +4014,7 @@ public unsafe void PrimQuadUV([NativeName(NativeNameType.Param, "a")] [NativeNam } } - /// /// Axis aligned rectangle (composed of two triangles) /// [NativeName(NativeNameType.Func, "ImDrawList_PrimRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PrimRect([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void PrimRect( Vector2 a, Vector2 b, uint col) { fixed (ImDrawList* @this = &this) { @@ -4387,9 +4022,7 @@ public unsafe void PrimRect([NativeName(NativeNameType.Param, "a")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImDrawList_PrimRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PrimRectUV([NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 a, [NativeName(NativeNameType.Param, "b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 b, [NativeName(NativeNameType.Param, "uv_a")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvA, [NativeName(NativeNameType.Param, "uv_b")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uvB, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void PrimRectUV( Vector2 a, Vector2 b, Vector2 uvA, Vector2 uvB, uint col) { fixed (ImDrawList* @this = &this) { @@ -4397,9 +4030,7 @@ public unsafe void PrimRectUV([NativeName(NativeNameType.Param, "a")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImDrawList_PrimReserve")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PrimReserve([NativeName(NativeNameType.Param, "idx_count")] [NativeName(NativeNameType.Type, "int")] int idxCount, [NativeName(NativeNameType.Param, "vtx_count")] [NativeName(NativeNameType.Type, "int")] int vtxCount) + public unsafe void PrimReserve( int idxCount, int vtxCount) { fixed (ImDrawList* @this = &this) { @@ -4407,9 +4038,7 @@ public unsafe void PrimReserve([NativeName(NativeNameType.Param, "idx_count")] [ } } - [NativeName(NativeNameType.Func, "ImDrawList_PrimUnreserve")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PrimUnreserve([NativeName(NativeNameType.Param, "idx_count")] [NativeName(NativeNameType.Type, "int")] int idxCount, [NativeName(NativeNameType.Param, "vtx_count")] [NativeName(NativeNameType.Type, "int")] int vtxCount) + public unsafe void PrimUnreserve( int idxCount, int vtxCount) { fixed (ImDrawList* @this = &this) { @@ -4417,9 +4046,7 @@ public unsafe void PrimUnreserve([NativeName(NativeNameType.Param, "idx_count")] } } - /// /// Write vertex with unique index /// [NativeName(NativeNameType.Func, "ImDrawList_PrimVtx")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PrimVtx([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "uv")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void PrimVtx( Vector2 pos, Vector2 uv, uint col) { fixed (ImDrawList* @this = &this) { @@ -4427,9 +4054,7 @@ public unsafe void PrimVtx([NativeName(NativeNameType.Param, "pos")] [NativeName } } - [NativeName(NativeNameType.Func, "ImDrawList_PrimWriteIdx")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PrimWriteIdx([NativeName(NativeNameType.Param, "idx")] [NativeName(NativeNameType.Type, "ImDrawIdx")] ushort idx) + public unsafe void PrimWriteIdx( ushort idx) { fixed (ImDrawList* @this = &this) { @@ -4437,9 +4062,7 @@ public unsafe void PrimWriteIdx([NativeName(NativeNameType.Param, "idx")] [Nativ } } - [NativeName(NativeNameType.Func, "ImDrawList_PrimWriteVtx")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PrimWriteVtx([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "uv")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 uv, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col) + public unsafe void PrimWriteVtx( Vector2 pos, Vector2 uv, uint col) { fixed (ImDrawList* @this = &this) { @@ -4447,9 +4070,7 @@ public unsafe void PrimWriteVtx([NativeName(NativeNameType.Param, "pos")] [Nativ } } - /// /// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) /// [NativeName(NativeNameType.Func, "ImDrawList_PushClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PushClipRect([NativeName(NativeNameType.Param, "clip_rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMin, [NativeName(NativeNameType.Param, "clip_rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMax, [NativeName(NativeNameType.Param, "intersect_with_current_clip_rect")] [NativeName(NativeNameType.Type, "bool")] bool intersectWithCurrentClipRect) + public unsafe void PushClipRect( Vector2 clipRectMin, Vector2 clipRectMax, bool intersectWithCurrentClipRect) { fixed (ImDrawList* @this = &this) { @@ -4457,9 +4078,7 @@ public unsafe void PushClipRect([NativeName(NativeNameType.Param, "clip_rect_min } } - /// /// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) /// [NativeName(NativeNameType.Func, "ImDrawList_PushClipRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PushClipRect([NativeName(NativeNameType.Param, "clip_rect_min")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMin, [NativeName(NativeNameType.Param, "clip_rect_max")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 clipRectMax) + public unsafe void PushClipRect( Vector2 clipRectMin, Vector2 clipRectMax) { fixed (ImDrawList* @this = &this) { @@ -4467,8 +4086,6 @@ public unsafe void PushClipRect([NativeName(NativeNameType.Param, "clip_rect_min } } - [NativeName(NativeNameType.Func, "ImDrawList_PushClipRectFullScreen")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void PushClipRectFullScreen() { fixed (ImDrawList* @this = &this) @@ -4477,9 +4094,7 @@ public unsafe void PushClipRectFullScreen() } } - [NativeName(NativeNameType.Func, "ImDrawList_PushTextureID")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void PushTextureID([NativeName(NativeNameType.Param, "texture_id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID textureId) + public unsafe void PushTextureID( ImTextureID textureId) { fixed (ImDrawList* @this = &this) { @@ -4492,167 +4107,148 @@ public unsafe void PushTextureID([NativeName(NativeNameType.Param, "texture_id") /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImDrawIdx")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImDrawIdx { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImDrawIdx*")] public unsafe ushort* Data; + /// /// To be documented. /// public unsafe ImVectorImDrawIdx(int size = default, int capacity = default, ushort* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImDrawVert")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImDrawVert { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImDrawVert*")] public unsafe ImDrawVert* Data; + /// /// To be documented. /// public unsafe ImVectorImDrawVert(int size = default, int capacity = default, ImDrawVert* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImDrawVert")] [StructLayout(LayoutKind.Sequential)] public partial struct ImDrawVert { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "pos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 Pos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "uv")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 Uv; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "col")] - [NativeName(NativeNameType.Type, "ImU32")] public uint Col; + /// /// To be documented. /// public unsafe ImDrawVert(Vector2 pos = default, Vector2 uv = default, uint col = default) + { + Pos = pos; + Uv = uv; + Col = col; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImDrawListSharedData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImDrawListSharedData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexUvWhitePixel")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 TexUvWhitePixel; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Font")] - [NativeName(NativeNameType.Type, "ImFont*")] public unsafe ImFont* Font; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontSize")] - [NativeName(NativeNameType.Type, "float")] public float FontSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurveTessellationTol")] - [NativeName(NativeNameType.Type, "float")] public float CurveTessellationTol; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CircleSegmentMaxError")] - [NativeName(NativeNameType.Type, "float")] public float CircleSegmentMaxError; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClipRectFullscreen")] - [NativeName(NativeNameType.Type, "ImVec4")] public Vector4 ClipRectFullscreen; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InitialFlags")] - [NativeName(NativeNameType.Type, "ImDrawListFlags")] - public ImDrawListFlags InitialFlags; + public int InitialFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TempBuffer")] - [NativeName(NativeNameType.Type, "ImVector_ImVec2")] public ImVectorImVec2 TempBuffer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ArcFastVtx")] - [NativeName(NativeNameType.Type, "ImVec2[48]")] public Vector2 ArcFastVtx_0; public Vector2 ArcFastVtx_1; public Vector2 ArcFastVtx_2; @@ -4705,15 +4301,11 @@ public partial struct ImDrawListSharedData /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ArcFastRadiusCutoff")] - [NativeName(NativeNameType.Type, "float")] public float ArcFastRadiusCutoff; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CircleSegmentCounts")] - [NativeName(NativeNameType.Type, "ImU8[64]")] public byte CircleSegmentCounts_0; public byte CircleSegmentCounts_1; public byte CircleSegmentCounts_2; @@ -4782,11 +4374,272 @@ public partial struct ImDrawListSharedData /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexUvLines")] - [NativeName(NativeNameType.Type, "const ImVec4*")] public unsafe Vector4* TexUvLines; + /// /// To be documented. /// public unsafe ImDrawListSharedData(Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, int initialFlags = default, ImVectorImVec2 tempBuffer = default, Vector2* arcFastVtx = default, float arcFastRadiusCutoff = default, byte* circleSegmentCounts = default, Vector4* texUvLines = default) + { + TexUvWhitePixel = texUvWhitePixel; + Font = font; + FontSize = fontSize; + CurveTessellationTol = curveTessellationTol; + CircleSegmentMaxError = circleSegmentMaxError; + ClipRectFullscreen = clipRectFullscreen; + InitialFlags = initialFlags; + TempBuffer = tempBuffer; + if (arcFastVtx != default) + { + ArcFastVtx_0 = arcFastVtx[0]; + ArcFastVtx_1 = arcFastVtx[1]; + ArcFastVtx_2 = arcFastVtx[2]; + ArcFastVtx_3 = arcFastVtx[3]; + ArcFastVtx_4 = arcFastVtx[4]; + ArcFastVtx_5 = arcFastVtx[5]; + ArcFastVtx_6 = arcFastVtx[6]; + ArcFastVtx_7 = arcFastVtx[7]; + ArcFastVtx_8 = arcFastVtx[8]; + ArcFastVtx_9 = arcFastVtx[9]; + ArcFastVtx_10 = arcFastVtx[10]; + ArcFastVtx_11 = arcFastVtx[11]; + ArcFastVtx_12 = arcFastVtx[12]; + ArcFastVtx_13 = arcFastVtx[13]; + ArcFastVtx_14 = arcFastVtx[14]; + ArcFastVtx_15 = arcFastVtx[15]; + ArcFastVtx_16 = arcFastVtx[16]; + ArcFastVtx_17 = arcFastVtx[17]; + ArcFastVtx_18 = arcFastVtx[18]; + ArcFastVtx_19 = arcFastVtx[19]; + ArcFastVtx_20 = arcFastVtx[20]; + ArcFastVtx_21 = arcFastVtx[21]; + ArcFastVtx_22 = arcFastVtx[22]; + ArcFastVtx_23 = arcFastVtx[23]; + ArcFastVtx_24 = arcFastVtx[24]; + ArcFastVtx_25 = arcFastVtx[25]; + ArcFastVtx_26 = arcFastVtx[26]; + ArcFastVtx_27 = arcFastVtx[27]; + ArcFastVtx_28 = arcFastVtx[28]; + ArcFastVtx_29 = arcFastVtx[29]; + ArcFastVtx_30 = arcFastVtx[30]; + ArcFastVtx_31 = arcFastVtx[31]; + ArcFastVtx_32 = arcFastVtx[32]; + ArcFastVtx_33 = arcFastVtx[33]; + ArcFastVtx_34 = arcFastVtx[34]; + ArcFastVtx_35 = arcFastVtx[35]; + ArcFastVtx_36 = arcFastVtx[36]; + ArcFastVtx_37 = arcFastVtx[37]; + ArcFastVtx_38 = arcFastVtx[38]; + ArcFastVtx_39 = arcFastVtx[39]; + ArcFastVtx_40 = arcFastVtx[40]; + ArcFastVtx_41 = arcFastVtx[41]; + ArcFastVtx_42 = arcFastVtx[42]; + ArcFastVtx_43 = arcFastVtx[43]; + ArcFastVtx_44 = arcFastVtx[44]; + ArcFastVtx_45 = arcFastVtx[45]; + ArcFastVtx_46 = arcFastVtx[46]; + ArcFastVtx_47 = arcFastVtx[47]; + } + ArcFastRadiusCutoff = arcFastRadiusCutoff; + if (circleSegmentCounts != default) + { + CircleSegmentCounts_0 = circleSegmentCounts[0]; + CircleSegmentCounts_1 = circleSegmentCounts[1]; + CircleSegmentCounts_2 = circleSegmentCounts[2]; + CircleSegmentCounts_3 = circleSegmentCounts[3]; + CircleSegmentCounts_4 = circleSegmentCounts[4]; + CircleSegmentCounts_5 = circleSegmentCounts[5]; + CircleSegmentCounts_6 = circleSegmentCounts[6]; + CircleSegmentCounts_7 = circleSegmentCounts[7]; + CircleSegmentCounts_8 = circleSegmentCounts[8]; + CircleSegmentCounts_9 = circleSegmentCounts[9]; + CircleSegmentCounts_10 = circleSegmentCounts[10]; + CircleSegmentCounts_11 = circleSegmentCounts[11]; + CircleSegmentCounts_12 = circleSegmentCounts[12]; + CircleSegmentCounts_13 = circleSegmentCounts[13]; + CircleSegmentCounts_14 = circleSegmentCounts[14]; + CircleSegmentCounts_15 = circleSegmentCounts[15]; + CircleSegmentCounts_16 = circleSegmentCounts[16]; + CircleSegmentCounts_17 = circleSegmentCounts[17]; + CircleSegmentCounts_18 = circleSegmentCounts[18]; + CircleSegmentCounts_19 = circleSegmentCounts[19]; + CircleSegmentCounts_20 = circleSegmentCounts[20]; + CircleSegmentCounts_21 = circleSegmentCounts[21]; + CircleSegmentCounts_22 = circleSegmentCounts[22]; + CircleSegmentCounts_23 = circleSegmentCounts[23]; + CircleSegmentCounts_24 = circleSegmentCounts[24]; + CircleSegmentCounts_25 = circleSegmentCounts[25]; + CircleSegmentCounts_26 = circleSegmentCounts[26]; + CircleSegmentCounts_27 = circleSegmentCounts[27]; + CircleSegmentCounts_28 = circleSegmentCounts[28]; + CircleSegmentCounts_29 = circleSegmentCounts[29]; + CircleSegmentCounts_30 = circleSegmentCounts[30]; + CircleSegmentCounts_31 = circleSegmentCounts[31]; + CircleSegmentCounts_32 = circleSegmentCounts[32]; + CircleSegmentCounts_33 = circleSegmentCounts[33]; + CircleSegmentCounts_34 = circleSegmentCounts[34]; + CircleSegmentCounts_35 = circleSegmentCounts[35]; + CircleSegmentCounts_36 = circleSegmentCounts[36]; + CircleSegmentCounts_37 = circleSegmentCounts[37]; + CircleSegmentCounts_38 = circleSegmentCounts[38]; + CircleSegmentCounts_39 = circleSegmentCounts[39]; + CircleSegmentCounts_40 = circleSegmentCounts[40]; + CircleSegmentCounts_41 = circleSegmentCounts[41]; + CircleSegmentCounts_42 = circleSegmentCounts[42]; + CircleSegmentCounts_43 = circleSegmentCounts[43]; + CircleSegmentCounts_44 = circleSegmentCounts[44]; + CircleSegmentCounts_45 = circleSegmentCounts[45]; + CircleSegmentCounts_46 = circleSegmentCounts[46]; + CircleSegmentCounts_47 = circleSegmentCounts[47]; + CircleSegmentCounts_48 = circleSegmentCounts[48]; + CircleSegmentCounts_49 = circleSegmentCounts[49]; + CircleSegmentCounts_50 = circleSegmentCounts[50]; + CircleSegmentCounts_51 = circleSegmentCounts[51]; + CircleSegmentCounts_52 = circleSegmentCounts[52]; + CircleSegmentCounts_53 = circleSegmentCounts[53]; + CircleSegmentCounts_54 = circleSegmentCounts[54]; + CircleSegmentCounts_55 = circleSegmentCounts[55]; + CircleSegmentCounts_56 = circleSegmentCounts[56]; + CircleSegmentCounts_57 = circleSegmentCounts[57]; + CircleSegmentCounts_58 = circleSegmentCounts[58]; + CircleSegmentCounts_59 = circleSegmentCounts[59]; + CircleSegmentCounts_60 = circleSegmentCounts[60]; + CircleSegmentCounts_61 = circleSegmentCounts[61]; + CircleSegmentCounts_62 = circleSegmentCounts[62]; + CircleSegmentCounts_63 = circleSegmentCounts[63]; + } + TexUvLines = texUvLines; + } + + /// /// To be documented. /// public unsafe ImDrawListSharedData(Vector2 texUvWhitePixel = default, ImFont* font = default, float fontSize = default, float curveTessellationTol = default, float circleSegmentMaxError = default, Vector4 clipRectFullscreen = default, int initialFlags = default, ImVectorImVec2 tempBuffer = default, Span arcFastVtx = default, float arcFastRadiusCutoff = default, Span circleSegmentCounts = default, Vector4* texUvLines = default) + { + TexUvWhitePixel = texUvWhitePixel; + Font = font; + FontSize = fontSize; + CurveTessellationTol = curveTessellationTol; + CircleSegmentMaxError = circleSegmentMaxError; + ClipRectFullscreen = clipRectFullscreen; + InitialFlags = initialFlags; + TempBuffer = tempBuffer; + if (arcFastVtx != default) + { + ArcFastVtx_0 = arcFastVtx[0]; + ArcFastVtx_1 = arcFastVtx[1]; + ArcFastVtx_2 = arcFastVtx[2]; + ArcFastVtx_3 = arcFastVtx[3]; + ArcFastVtx_4 = arcFastVtx[4]; + ArcFastVtx_5 = arcFastVtx[5]; + ArcFastVtx_6 = arcFastVtx[6]; + ArcFastVtx_7 = arcFastVtx[7]; + ArcFastVtx_8 = arcFastVtx[8]; + ArcFastVtx_9 = arcFastVtx[9]; + ArcFastVtx_10 = arcFastVtx[10]; + ArcFastVtx_11 = arcFastVtx[11]; + ArcFastVtx_12 = arcFastVtx[12]; + ArcFastVtx_13 = arcFastVtx[13]; + ArcFastVtx_14 = arcFastVtx[14]; + ArcFastVtx_15 = arcFastVtx[15]; + ArcFastVtx_16 = arcFastVtx[16]; + ArcFastVtx_17 = arcFastVtx[17]; + ArcFastVtx_18 = arcFastVtx[18]; + ArcFastVtx_19 = arcFastVtx[19]; + ArcFastVtx_20 = arcFastVtx[20]; + ArcFastVtx_21 = arcFastVtx[21]; + ArcFastVtx_22 = arcFastVtx[22]; + ArcFastVtx_23 = arcFastVtx[23]; + ArcFastVtx_24 = arcFastVtx[24]; + ArcFastVtx_25 = arcFastVtx[25]; + ArcFastVtx_26 = arcFastVtx[26]; + ArcFastVtx_27 = arcFastVtx[27]; + ArcFastVtx_28 = arcFastVtx[28]; + ArcFastVtx_29 = arcFastVtx[29]; + ArcFastVtx_30 = arcFastVtx[30]; + ArcFastVtx_31 = arcFastVtx[31]; + ArcFastVtx_32 = arcFastVtx[32]; + ArcFastVtx_33 = arcFastVtx[33]; + ArcFastVtx_34 = arcFastVtx[34]; + ArcFastVtx_35 = arcFastVtx[35]; + ArcFastVtx_36 = arcFastVtx[36]; + ArcFastVtx_37 = arcFastVtx[37]; + ArcFastVtx_38 = arcFastVtx[38]; + ArcFastVtx_39 = arcFastVtx[39]; + ArcFastVtx_40 = arcFastVtx[40]; + ArcFastVtx_41 = arcFastVtx[41]; + ArcFastVtx_42 = arcFastVtx[42]; + ArcFastVtx_43 = arcFastVtx[43]; + ArcFastVtx_44 = arcFastVtx[44]; + ArcFastVtx_45 = arcFastVtx[45]; + ArcFastVtx_46 = arcFastVtx[46]; + ArcFastVtx_47 = arcFastVtx[47]; + } + ArcFastRadiusCutoff = arcFastRadiusCutoff; + if (circleSegmentCounts != default) + { + CircleSegmentCounts_0 = circleSegmentCounts[0]; + CircleSegmentCounts_1 = circleSegmentCounts[1]; + CircleSegmentCounts_2 = circleSegmentCounts[2]; + CircleSegmentCounts_3 = circleSegmentCounts[3]; + CircleSegmentCounts_4 = circleSegmentCounts[4]; + CircleSegmentCounts_5 = circleSegmentCounts[5]; + CircleSegmentCounts_6 = circleSegmentCounts[6]; + CircleSegmentCounts_7 = circleSegmentCounts[7]; + CircleSegmentCounts_8 = circleSegmentCounts[8]; + CircleSegmentCounts_9 = circleSegmentCounts[9]; + CircleSegmentCounts_10 = circleSegmentCounts[10]; + CircleSegmentCounts_11 = circleSegmentCounts[11]; + CircleSegmentCounts_12 = circleSegmentCounts[12]; + CircleSegmentCounts_13 = circleSegmentCounts[13]; + CircleSegmentCounts_14 = circleSegmentCounts[14]; + CircleSegmentCounts_15 = circleSegmentCounts[15]; + CircleSegmentCounts_16 = circleSegmentCounts[16]; + CircleSegmentCounts_17 = circleSegmentCounts[17]; + CircleSegmentCounts_18 = circleSegmentCounts[18]; + CircleSegmentCounts_19 = circleSegmentCounts[19]; + CircleSegmentCounts_20 = circleSegmentCounts[20]; + CircleSegmentCounts_21 = circleSegmentCounts[21]; + CircleSegmentCounts_22 = circleSegmentCounts[22]; + CircleSegmentCounts_23 = circleSegmentCounts[23]; + CircleSegmentCounts_24 = circleSegmentCounts[24]; + CircleSegmentCounts_25 = circleSegmentCounts[25]; + CircleSegmentCounts_26 = circleSegmentCounts[26]; + CircleSegmentCounts_27 = circleSegmentCounts[27]; + CircleSegmentCounts_28 = circleSegmentCounts[28]; + CircleSegmentCounts_29 = circleSegmentCounts[29]; + CircleSegmentCounts_30 = circleSegmentCounts[30]; + CircleSegmentCounts_31 = circleSegmentCounts[31]; + CircleSegmentCounts_32 = circleSegmentCounts[32]; + CircleSegmentCounts_33 = circleSegmentCounts[33]; + CircleSegmentCounts_34 = circleSegmentCounts[34]; + CircleSegmentCounts_35 = circleSegmentCounts[35]; + CircleSegmentCounts_36 = circleSegmentCounts[36]; + CircleSegmentCounts_37 = circleSegmentCounts[37]; + CircleSegmentCounts_38 = circleSegmentCounts[38]; + CircleSegmentCounts_39 = circleSegmentCounts[39]; + CircleSegmentCounts_40 = circleSegmentCounts[40]; + CircleSegmentCounts_41 = circleSegmentCounts[41]; + CircleSegmentCounts_42 = circleSegmentCounts[42]; + CircleSegmentCounts_43 = circleSegmentCounts[43]; + CircleSegmentCounts_44 = circleSegmentCounts[44]; + CircleSegmentCounts_45 = circleSegmentCounts[45]; + CircleSegmentCounts_46 = circleSegmentCounts[46]; + CircleSegmentCounts_47 = circleSegmentCounts[47]; + CircleSegmentCounts_48 = circleSegmentCounts[48]; + CircleSegmentCounts_49 = circleSegmentCounts[49]; + CircleSegmentCounts_50 = circleSegmentCounts[50]; + CircleSegmentCounts_51 = circleSegmentCounts[51]; + CircleSegmentCounts_52 = circleSegmentCounts[52]; + CircleSegmentCounts_53 = circleSegmentCounts[53]; + CircleSegmentCounts_54 = circleSegmentCounts[54]; + CircleSegmentCounts_55 = circleSegmentCounts[55]; + CircleSegmentCounts_56 = circleSegmentCounts[56]; + CircleSegmentCounts_57 = circleSegmentCounts[57]; + CircleSegmentCounts_58 = circleSegmentCounts[58]; + CircleSegmentCounts_59 = circleSegmentCounts[59]; + CircleSegmentCounts_60 = circleSegmentCounts[60]; + CircleSegmentCounts_61 = circleSegmentCounts[61]; + CircleSegmentCounts_62 = circleSegmentCounts[62]; + CircleSegmentCounts_63 = circleSegmentCounts[63]; + } + TexUvLines = texUvLines; + } /// @@ -4806,185 +4659,178 @@ public unsafe Span ArcFastVtx /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImDrawListSharedData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImDrawListSharedData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImDrawListSharedData_SetCircleTessellationMaxError")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetCircleTessellationMaxError([NativeName(NativeNameType.Param, "max_error")] [NativeName(NativeNameType.Type, "float")] float maxError) - { - fixed (ImDrawListSharedData* @this = &this) - { - ImGui.SetCircleTessellationMaxErrorNative(@this, maxError); - } - } - } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImFont")] [StructLayout(LayoutKind.Sequential)] public partial struct ImFont { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IndexAdvanceX")] - [NativeName(NativeNameType.Type, "ImVector_float")] public ImVectorFloat IndexAdvanceX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FallbackAdvanceX")] - [NativeName(NativeNameType.Type, "float")] public float FallbackAdvanceX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontSize")] - [NativeName(NativeNameType.Type, "float")] public float FontSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IndexLookup")] - [NativeName(NativeNameType.Type, "ImVector_ImWchar")] public ImVectorImWchar IndexLookup; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Glyphs")] - [NativeName(NativeNameType.Type, "ImVector_ImFontGlyph")] public ImVectorImFontGlyph Glyphs; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FallbackGlyph")] - [NativeName(NativeNameType.Type, "const ImFontGlyph*")] public unsafe ImFontGlyph* FallbackGlyph; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContainerAtlas")] - [NativeName(NativeNameType.Type, "ImFontAtlas*")] public unsafe ImFontAtlas* ContainerAtlas; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigData")] - [NativeName(NativeNameType.Type, "const ImFontConfig*")] public unsafe ImFontConfig* ConfigData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigDataCount")] - [NativeName(NativeNameType.Type, "short")] public short ConfigDataCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FallbackChar")] - [NativeName(NativeNameType.Type, "ImWchar")] public char FallbackChar; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EllipsisChar")] - [NativeName(NativeNameType.Type, "ImWchar")] public char EllipsisChar; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EllipsisCharCount")] - [NativeName(NativeNameType.Type, "short")] public short EllipsisCharCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EllipsisWidth")] - [NativeName(NativeNameType.Type, "float")] public float EllipsisWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EllipsisCharStep")] - [NativeName(NativeNameType.Type, "float")] public float EllipsisCharStep; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DirtyLookupTables")] - [NativeName(NativeNameType.Type, "bool")] public byte DirtyLookupTables; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Scale")] - [NativeName(NativeNameType.Type, "float")] public float Scale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Ascent")] - [NativeName(NativeNameType.Type, "float")] public float Ascent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Descent")] - [NativeName(NativeNameType.Type, "float")] public float Descent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MetricsTotalSurface")] - [NativeName(NativeNameType.Type, "int")] public int MetricsTotalSurface; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Used4kPagesMap")] - [NativeName(NativeNameType.Type, "ImU8[2]")] public byte Used4kPagesMap_0; public byte Used4kPagesMap_1; + /// /// To be documented. /// public unsafe ImFont(ImVectorFloat indexAdvanceX = default, float fallbackAdvanceX = default, float fontSize = default, ImVectorImWchar indexLookup = default, ImVectorImFontGlyph glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, char fallbackChar = default, char ellipsisChar = default, short ellipsisCharCount = default, float ellipsisWidth = default, float ellipsisCharStep = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, byte* used4KPagesMap = default) + { + IndexAdvanceX = indexAdvanceX; + FallbackAdvanceX = fallbackAdvanceX; + FontSize = fontSize; + IndexLookup = indexLookup; + Glyphs = glyphs; + FallbackGlyph = fallbackGlyph; + ContainerAtlas = containerAtlas; + ConfigData = configData; + ConfigDataCount = configDataCount; + FallbackChar = fallbackChar; + EllipsisChar = ellipsisChar; + EllipsisCharCount = ellipsisCharCount; + EllipsisWidth = ellipsisWidth; + EllipsisCharStep = ellipsisCharStep; + DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; + Scale = scale; + Ascent = ascent; + Descent = descent; + MetricsTotalSurface = metricsTotalSurface; + if (used4KPagesMap != default) + { + Used4kPagesMap_0 = used4KPagesMap[0]; + Used4kPagesMap_1 = used4KPagesMap[1]; + } + } + + /// /// To be documented. /// public unsafe ImFont(ImVectorFloat indexAdvanceX = default, float fallbackAdvanceX = default, float fontSize = default, ImVectorImWchar indexLookup = default, ImVectorImFontGlyph glyphs = default, ImFontGlyph* fallbackGlyph = default, ImFontAtlas* containerAtlas = default, ImFontConfig* configData = default, short configDataCount = default, char fallbackChar = default, char ellipsisChar = default, short ellipsisCharCount = default, float ellipsisWidth = default, float ellipsisCharStep = default, bool dirtyLookupTables = default, float scale = default, float ascent = default, float descent = default, int metricsTotalSurface = default, Span used4KPagesMap = default) + { + IndexAdvanceX = indexAdvanceX; + FallbackAdvanceX = fallbackAdvanceX; + FontSize = fontSize; + IndexLookup = indexLookup; + Glyphs = glyphs; + FallbackGlyph = fallbackGlyph; + ContainerAtlas = containerAtlas; + ConfigData = configData; + ConfigDataCount = configDataCount; + FallbackChar = fallbackChar; + EllipsisChar = ellipsisChar; + EllipsisCharCount = ellipsisCharCount; + EllipsisWidth = ellipsisWidth; + EllipsisCharStep = ellipsisCharStep; + DirtyLookupTables = dirtyLookupTables ? (byte)1 : (byte)0; + Scale = scale; + Ascent = ascent; + Descent = descent; + MetricsTotalSurface = metricsTotalSurface; + if (used4KPagesMap != default) + { + Used4kPagesMap_0 = used4KPagesMap[0]; + Used4kPagesMap_1 = used4KPagesMap[1]; + } + } + /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImFont_AddGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddGlyph([NativeName(NativeNameType.Param, "src_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* srcCfg, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c, [NativeName(NativeNameType.Param, "x0")] [NativeName(NativeNameType.Type, "float")] float x0, [NativeName(NativeNameType.Param, "y0")] [NativeName(NativeNameType.Type, "float")] float y0, [NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "float")] float x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "float")] float y1, [NativeName(NativeNameType.Param, "u0")] [NativeName(NativeNameType.Type, "float")] float u0, [NativeName(NativeNameType.Param, "v0")] [NativeName(NativeNameType.Type, "float")] float v0, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "float")] float u1, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "float")] float v1, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) + public unsafe void AddGlyph( ImFontConfig* srcCfg, char c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) { fixed (ImFont* @this = &this) { @@ -4992,9 +4838,7 @@ public unsafe void AddGlyph([NativeName(NativeNameType.Param, "src_cfg")] [Nativ } } - [NativeName(NativeNameType.Func, "ImFont_AddGlyph")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddGlyph([NativeName(NativeNameType.Param, "src_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig srcCfg, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c, [NativeName(NativeNameType.Param, "x0")] [NativeName(NativeNameType.Type, "float")] float x0, [NativeName(NativeNameType.Param, "y0")] [NativeName(NativeNameType.Type, "float")] float y0, [NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "float")] float x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "float")] float y1, [NativeName(NativeNameType.Param, "u0")] [NativeName(NativeNameType.Type, "float")] float u0, [NativeName(NativeNameType.Param, "v0")] [NativeName(NativeNameType.Type, "float")] float v0, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "float")] float u1, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "float")] float v1, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) + public unsafe void AddGlyph( ref ImFontConfig srcCfg, char c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX) { fixed (ImFont* @this = &this) { @@ -5005,9 +4849,7 @@ public unsafe void AddGlyph([NativeName(NativeNameType.Param, "src_cfg")] [Nativ } } - /// /// Makes 'dst' characterglyph points to 'src' characterglyph. Currently needs to be called AFTER fonts have been built. /// [NativeName(NativeNameType.Func, "ImFont_AddRemapChar")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRemapChar([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImWchar")] char dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "ImWchar")] char src, [NativeName(NativeNameType.Param, "overwrite_dst")] [NativeName(NativeNameType.Type, "bool")] bool overwriteDst) + public unsafe void AddRemapChar( char dst, char src, bool overwriteDst) { fixed (ImFont* @this = &this) { @@ -5015,9 +4857,7 @@ public unsafe void AddRemapChar([NativeName(NativeNameType.Param, "dst")] [Nativ } } - /// /// Makes 'dst' characterglyph points to 'src' characterglyph. Currently needs to be called AFTER fonts have been built. /// [NativeName(NativeNameType.Func, "ImFont_AddRemapChar")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRemapChar([NativeName(NativeNameType.Param, "dst")] [NativeName(NativeNameType.Type, "ImWchar")] char dst, [NativeName(NativeNameType.Param, "src")] [NativeName(NativeNameType.Type, "ImWchar")] char src) + public unsafe void AddRemapChar( char dst, char src) { fixed (ImFont* @this = &this) { @@ -5025,8 +4865,6 @@ public unsafe void AddRemapChar([NativeName(NativeNameType.Param, "dst")] [Nativ } } - [NativeName(NativeNameType.Func, "ImFont_BuildLookupTable")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void BuildLookupTable() { fixed (ImFont* @this = &this) @@ -5035,9 +4873,7 @@ public unsafe void BuildLookupTable() } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe byte* CalcWordWrapPositionA( float scale, byte* text, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5046,9 +4882,7 @@ public unsafe void BuildLookupTable() } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe string CalcWordWrapPositionAS( float scale, byte* text, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5057,9 +4891,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe byte* CalcWordWrapPositionA( float scale, ref byte text, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5071,9 +4903,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe string CalcWordWrapPositionAS( float scale, ref byte text, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5085,9 +4915,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe byte* CalcWordWrapPositionA( float scale, string text, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5117,9 +4945,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe string CalcWordWrapPositionAS( float scale, string text, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5149,9 +4975,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe byte* CalcWordWrapPositionA( float scale, byte* text, ref byte textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5163,9 +4987,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe string CalcWordWrapPositionAS( float scale, byte* text, ref byte textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5177,9 +4999,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe byte* CalcWordWrapPositionA( float scale, byte* text, string textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5209,9 +5029,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe string CalcWordWrapPositionAS( float scale, byte* text, string textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5241,9 +5059,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe byte* CalcWordWrapPositionA( float scale, ref byte text, ref byte textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5258,9 +5074,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe string CalcWordWrapPositionAS( float scale, ref byte text, ref byte textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5275,9 +5089,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* CalcWordWrapPositionA([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe byte* CalcWordWrapPositionA( float scale, string text, string textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5328,9 +5140,7 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_CalcWordWrapPositionA")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "scale")] [NativeName(NativeNameType.Type, "float")] float scale, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe string CalcWordWrapPositionAS( float scale, string text, string textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5381,8 +5191,6 @@ public unsafe string CalcWordWrapPositionAS([NativeName(NativeNameType.Param, "s } } - [NativeName(NativeNameType.Func, "ImFont_ClearOutputData")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void ClearOutputData() { fixed (ImFont* @this = &this) @@ -5391,8 +5199,6 @@ public unsafe void ClearOutputData() } } - [NativeName(NativeNameType.Func, "ImFont_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImFont* @this = &this) @@ -5401,9 +5207,7 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImFont_FindGlyph")] - [return: NativeName(NativeNameType.Type, "const ImFontGlyph*")] - public unsafe ImFontGlyph* FindGlyph([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) + public unsafe ImFontGlyph* FindGlyph( char c) { fixed (ImFont* @this = &this) { @@ -5412,9 +5216,7 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImFont_FindGlyphNoFallback")] - [return: NativeName(NativeNameType.Type, "const ImFontGlyph*")] - public unsafe ImFontGlyph* FindGlyphNoFallback([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) + public unsafe ImFontGlyph* FindGlyphNoFallback( char c) { fixed (ImFont* @this = &this) { @@ -5423,9 +5225,7 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImFont_GetCharAdvance")] - [return: NativeName(NativeNameType.Type, "float")] - public unsafe float GetCharAdvance([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) + public unsafe float GetCharAdvance( char c) { fixed (ImFont* @this = &this) { @@ -5434,8 +5234,6 @@ public unsafe float GetCharAdvance([NativeName(NativeNameType.Param, "c")] [Nati } } - [NativeName(NativeNameType.Func, "ImFont_GetDebugName")] - [return: NativeName(NativeNameType.Type, "const char*")] public unsafe byte* GetDebugName() { fixed (ImFont* @this = &this) @@ -5445,8 +5243,6 @@ public unsafe float GetCharAdvance([NativeName(NativeNameType.Param, "c")] [Nati } } - [NativeName(NativeNameType.Func, "ImFont_GetDebugName")] - [return: NativeName(NativeNameType.Type, "const char*")] public unsafe string GetDebugNameS() { fixed (ImFont* @this = &this) @@ -5456,9 +5252,7 @@ public unsafe string GetDebugNameS() } } - [NativeName(NativeNameType.Func, "ImFont_GrowIndex")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GrowIndex([NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) + public unsafe void GrowIndex( int newSize) { fixed (ImFont* @this = &this) { @@ -5466,9 +5260,7 @@ public unsafe void GrowIndex([NativeName(NativeNameType.Param, "new_size")] [Nat } } - [NativeName(NativeNameType.Func, "ImFont_IsGlyphRangeUnused")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsGlyphRangeUnused([NativeName(NativeNameType.Param, "c_begin")] [NativeName(NativeNameType.Type, "unsigned int")] uint cBegin, [NativeName(NativeNameType.Param, "c_last")] [NativeName(NativeNameType.Type, "unsigned int")] uint cLast) + public unsafe bool IsGlyphRangeUnused( uint cBegin, uint cLast) { fixed (ImFont* @this = &this) { @@ -5477,8 +5269,6 @@ public unsafe bool IsGlyphRangeUnused([NativeName(NativeNameType.Param, "c_begin } } - [NativeName(NativeNameType.Func, "ImFont_IsLoaded")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool IsLoaded() { fixed (ImFont* @this = &this) @@ -5488,9 +5278,7 @@ public unsafe bool IsLoaded() } } - [NativeName(NativeNameType.Func, "ImFont_RenderChar")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderChar([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) + public unsafe void RenderChar( ImDrawList* drawList, float size, Vector2 pos, uint col, char c) { fixed (ImFont* @this = &this) { @@ -5498,9 +5286,7 @@ public unsafe void RenderChar([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderChar")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderChar([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) + public unsafe void RenderChar( ref ImDrawList drawList, float size, Vector2 pos, uint col, char c) { fixed (ImFont* @this = &this) { @@ -5511,9 +5297,7 @@ public unsafe void RenderChar([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5521,9 +5305,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5531,9 +5313,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) { fixed (ImFont* @this = &this) { @@ -5541,9 +5321,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5551,9 +5329,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5564,9 +5340,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5577,9 +5351,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd) { fixed (ImFont* @this = &this) { @@ -5590,9 +5362,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, byte* textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5603,9 +5373,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5616,9 +5384,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5629,9 +5395,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) { fixed (ImFont* @this = &this) { @@ -5642,9 +5406,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5655,9 +5417,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5686,9 +5446,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5717,9 +5475,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) { fixed (ImFont* @this = &this) { @@ -5748,9 +5504,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5779,9 +5533,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5795,9 +5547,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5811,9 +5561,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd) { fixed (ImFont* @this = &this) { @@ -5827,9 +5575,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, byte* textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5843,9 +5589,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5877,9 +5621,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -5911,9 +5653,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd) { fixed (ImFont* @this = &this) { @@ -5945,9 +5685,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, byte* textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5979,9 +5717,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -5992,9 +5728,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -6005,9 +5739,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) { fixed (ImFont* @this = &this) { @@ -6018,9 +5750,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6031,9 +5761,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6062,9 +5790,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -6093,9 +5819,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) { fixed (ImFont* @this = &this) { @@ -6124,9 +5848,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6155,9 +5877,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6171,9 +5891,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -6187,9 +5905,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd) { fixed (ImFont* @this = &this) { @@ -6203,9 +5919,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, ref byte textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6219,9 +5933,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6253,9 +5965,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -6287,9 +5997,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd) { fixed (ImFont* @this = &this) { @@ -6321,9 +6029,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] byte* textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, byte* textBegin, string textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6355,9 +6061,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6371,9 +6075,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -6387,9 +6089,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) { fixed (ImFont* @this = &this) { @@ -6403,9 +6103,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6419,9 +6117,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6471,9 +6167,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -6523,9 +6217,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) { fixed (ImFont* @this = &this) { @@ -6575,9 +6267,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ImDrawList* drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6627,9 +6317,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6646,9 +6334,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -6665,9 +6351,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd) { fixed (ImFont* @this = &this) { @@ -6684,9 +6368,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] ref byte textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, ref byte textBegin, ref byte textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6703,9 +6385,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6758,9 +6438,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "wrap_width")] [NativeName(NativeNameType.Type, "float")] float wrapWidth) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, float wrapWidth) { fixed (ImFont* @this = &this) { @@ -6813,9 +6491,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd) { fixed (ImFont* @this = &this) { @@ -6868,9 +6544,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_RenderText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "float")] float size, [NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 pos, [NativeName(NativeNameType.Param, "col")] [NativeName(NativeNameType.Type, "ImU32")] uint col, [NativeName(NativeNameType.Param, "clip_rect")] [NativeName(NativeNameType.Type, "const ImVec4")] Vector4 clipRect, [NativeName(NativeNameType.Param, "text_begin")] [NativeName(NativeNameType.Type, "const char*")] string textBegin, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd, [NativeName(NativeNameType.Param, "cpu_fine_clip")] [NativeName(NativeNameType.Type, "bool")] bool cpuFineClip) + public unsafe void RenderText( ref ImDrawList drawList, float size, Vector2 pos, uint col, Vector4 clipRect, string textBegin, string textEnd, bool cpuFineClip) { fixed (ImFont* @this = &this) { @@ -6923,9 +6597,7 @@ public unsafe void RenderText([NativeName(NativeNameType.Param, "draw_list")] [N } } - [NativeName(NativeNameType.Func, "ImFont_SetGlyphVisible")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetGlyphVisible([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c, [NativeName(NativeNameType.Param, "visible")] [NativeName(NativeNameType.Type, "bool")] bool visible) + public unsafe void SetGlyphVisible( char c, bool visible) { fixed (ImFont* @this = &this) { @@ -6938,325 +6610,279 @@ public unsafe void SetGlyphVisible([NativeName(NativeNameType.Param, "c")] [Nati /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_float")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorFloat { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "float*")] public unsafe float* Data; + /// /// To be documented. /// public unsafe ImVectorFloat(int size = default, int capacity = default, float* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImWchar")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImWchar { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImWchar*")] public unsafe char* Data; + /// /// To be documented. /// public unsafe ImVectorImWchar(int size = default, int capacity = default, char* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImFontGlyph")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImFontGlyph { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImFontGlyph*")] public unsafe ImFontGlyph* Data; + /// /// To be documented. /// public unsafe ImVectorImFontGlyph(int size = default, int capacity = default, ImFontGlyph* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImFontGlyph")] [StructLayout(LayoutKind.Sequential)] public partial struct ImFontGlyph { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Colored")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint Colored; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Visible")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint Visible; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Codepoint")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint Codepoint; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AdvanceX")] - [NativeName(NativeNameType.Type, "float")] public float AdvanceX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "X0")] - [NativeName(NativeNameType.Type, "float")] public float X0; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Y0")] - [NativeName(NativeNameType.Type, "float")] public float Y0; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "X1")] - [NativeName(NativeNameType.Type, "float")] public float X1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Y1")] - [NativeName(NativeNameType.Type, "float")] public float Y1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "U0")] - [NativeName(NativeNameType.Type, "float")] public float U0; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "V0")] - [NativeName(NativeNameType.Type, "float")] public float V0; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "U1")] - [NativeName(NativeNameType.Type, "float")] public float U1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "V1")] - [NativeName(NativeNameType.Type, "float")] public float V1; + /// /// To be documented. /// public unsafe ImFontGlyph(uint colored = default, uint visible = default, uint codepoint = default, float advanceX = default, float x0 = default, float y0 = default, float x1 = default, float y1 = default, float u0 = default, float v0 = default, float u1 = default, float v1 = default) + { + Colored = colored; + Visible = visible; + Codepoint = codepoint; + AdvanceX = advanceX; + X0 = x0; + Y0 = y0; + X1 = x1; + Y1 = y1; + U0 = u0; + V0 = v0; + U1 = u1; + V1 = v1; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImFontAtlas")] [StructLayout(LayoutKind.Sequential)] public partial struct ImFontAtlas { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImFontAtlasFlags")] - public ImFontAtlasFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexID")] - [NativeName(NativeNameType.Type, "ImTextureID")] public ImTextureID TexID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexDesiredWidth")] - [NativeName(NativeNameType.Type, "int")] public int TexDesiredWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexGlyphPadding")] - [NativeName(NativeNameType.Type, "int")] public int TexGlyphPadding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Locked")] - [NativeName(NativeNameType.Type, "bool")] public byte Locked; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "UserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* UserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexReady")] - [NativeName(NativeNameType.Type, "bool")] public byte TexReady; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexPixelsUseColors")] - [NativeName(NativeNameType.Type, "bool")] public byte TexPixelsUseColors; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexPixelsAlpha8")] - [NativeName(NativeNameType.Type, "unsigned char*")] public unsafe byte* TexPixelsAlpha8; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexPixelsRGBA32")] - [NativeName(NativeNameType.Type, "unsigned int*")] public unsafe uint* TexPixelsRGBA32; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexWidth")] - [NativeName(NativeNameType.Type, "int")] public int TexWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexHeight")] - [NativeName(NativeNameType.Type, "int")] public int TexHeight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexUvScale")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 TexUvScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexUvWhitePixel")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 TexUvWhitePixel; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Fonts")] - [NativeName(NativeNameType.Type, "ImVector_ImFontPtr")] public ImVectorImFontPtr Fonts; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CustomRects")] - [NativeName(NativeNameType.Type, "ImVector_ImFontAtlasCustomRect")] public ImVectorImFontAtlasCustomRect CustomRects; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigData")] - [NativeName(NativeNameType.Type, "ImVector_ImFontConfig")] public ImVectorImFontConfig ConfigData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TexUvLines")] - [NativeName(NativeNameType.Type, "ImVec4[64]")] public Vector4 TexUvLines_0; public Vector4 TexUvLines_1; public Vector4 TexUvLines_2; @@ -7325,33 +6951,209 @@ public partial struct ImFontAtlas /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontBuilderIO")] - [NativeName(NativeNameType.Type, "const ImFontBuilderIO*")] public unsafe ImFontBuilderIO* FontBuilderIO; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontBuilderFlags")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint FontBuilderFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PackIdMouseCursors")] - [NativeName(NativeNameType.Type, "int")] public int PackIdMouseCursors; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PackIdLines")] - [NativeName(NativeNameType.Type, "int")] public int PackIdLines; + /// /// To be documented. /// public unsafe ImFontAtlas(int flags = default, ImTextureID texId = default, int texDesiredWidth = default, int texGlyphPadding = default, bool locked = default, void* userData = default, bool texReady = default, bool texPixelsUseColors = default, byte* texPixelsAlpha8 = default, uint* texPixelsRgba32 = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVectorImFontPtr fonts = default, ImVectorImFontAtlasCustomRect customRects = default, ImVectorImFontConfig configData = default, Vector4* texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int packIdMouseCursors = default, int packIdLines = default) + { + Flags = flags; + TexID = texId; + TexDesiredWidth = texDesiredWidth; + TexGlyphPadding = texGlyphPadding; + Locked = locked ? (byte)1 : (byte)0; + UserData = userData; + TexReady = texReady ? (byte)1 : (byte)0; + TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; + TexPixelsAlpha8 = texPixelsAlpha8; + TexPixelsRGBA32 = texPixelsRgba32; + TexWidth = texWidth; + TexHeight = texHeight; + TexUvScale = texUvScale; + TexUvWhitePixel = texUvWhitePixel; + Fonts = fonts; + CustomRects = customRects; + ConfigData = configData; + if (texUvLines != default) + { + TexUvLines_0 = texUvLines[0]; + TexUvLines_1 = texUvLines[1]; + TexUvLines_2 = texUvLines[2]; + TexUvLines_3 = texUvLines[3]; + TexUvLines_4 = texUvLines[4]; + TexUvLines_5 = texUvLines[5]; + TexUvLines_6 = texUvLines[6]; + TexUvLines_7 = texUvLines[7]; + TexUvLines_8 = texUvLines[8]; + TexUvLines_9 = texUvLines[9]; + TexUvLines_10 = texUvLines[10]; + TexUvLines_11 = texUvLines[11]; + TexUvLines_12 = texUvLines[12]; + TexUvLines_13 = texUvLines[13]; + TexUvLines_14 = texUvLines[14]; + TexUvLines_15 = texUvLines[15]; + TexUvLines_16 = texUvLines[16]; + TexUvLines_17 = texUvLines[17]; + TexUvLines_18 = texUvLines[18]; + TexUvLines_19 = texUvLines[19]; + TexUvLines_20 = texUvLines[20]; + TexUvLines_21 = texUvLines[21]; + TexUvLines_22 = texUvLines[22]; + TexUvLines_23 = texUvLines[23]; + TexUvLines_24 = texUvLines[24]; + TexUvLines_25 = texUvLines[25]; + TexUvLines_26 = texUvLines[26]; + TexUvLines_27 = texUvLines[27]; + TexUvLines_28 = texUvLines[28]; + TexUvLines_29 = texUvLines[29]; + TexUvLines_30 = texUvLines[30]; + TexUvLines_31 = texUvLines[31]; + TexUvLines_32 = texUvLines[32]; + TexUvLines_33 = texUvLines[33]; + TexUvLines_34 = texUvLines[34]; + TexUvLines_35 = texUvLines[35]; + TexUvLines_36 = texUvLines[36]; + TexUvLines_37 = texUvLines[37]; + TexUvLines_38 = texUvLines[38]; + TexUvLines_39 = texUvLines[39]; + TexUvLines_40 = texUvLines[40]; + TexUvLines_41 = texUvLines[41]; + TexUvLines_42 = texUvLines[42]; + TexUvLines_43 = texUvLines[43]; + TexUvLines_44 = texUvLines[44]; + TexUvLines_45 = texUvLines[45]; + TexUvLines_46 = texUvLines[46]; + TexUvLines_47 = texUvLines[47]; + TexUvLines_48 = texUvLines[48]; + TexUvLines_49 = texUvLines[49]; + TexUvLines_50 = texUvLines[50]; + TexUvLines_51 = texUvLines[51]; + TexUvLines_52 = texUvLines[52]; + TexUvLines_53 = texUvLines[53]; + TexUvLines_54 = texUvLines[54]; + TexUvLines_55 = texUvLines[55]; + TexUvLines_56 = texUvLines[56]; + TexUvLines_57 = texUvLines[57]; + TexUvLines_58 = texUvLines[58]; + TexUvLines_59 = texUvLines[59]; + TexUvLines_60 = texUvLines[60]; + TexUvLines_61 = texUvLines[61]; + TexUvLines_62 = texUvLines[62]; + TexUvLines_63 = texUvLines[63]; + } + FontBuilderIO = fontBuilderIo; + FontBuilderFlags = fontBuilderFlags; + PackIdMouseCursors = packIdMouseCursors; + PackIdLines = packIdLines; + } + + /// /// To be documented. /// public unsafe ImFontAtlas(int flags = default, ImTextureID texId = default, int texDesiredWidth = default, int texGlyphPadding = default, bool locked = default, void* userData = default, bool texReady = default, bool texPixelsUseColors = default, byte* texPixelsAlpha8 = default, uint* texPixelsRgba32 = default, int texWidth = default, int texHeight = default, Vector2 texUvScale = default, Vector2 texUvWhitePixel = default, ImVectorImFontPtr fonts = default, ImVectorImFontAtlasCustomRect customRects = default, ImVectorImFontConfig configData = default, Span texUvLines = default, ImFontBuilderIO* fontBuilderIo = default, uint fontBuilderFlags = default, int packIdMouseCursors = default, int packIdLines = default) + { + Flags = flags; + TexID = texId; + TexDesiredWidth = texDesiredWidth; + TexGlyphPadding = texGlyphPadding; + Locked = locked ? (byte)1 : (byte)0; + UserData = userData; + TexReady = texReady ? (byte)1 : (byte)0; + TexPixelsUseColors = texPixelsUseColors ? (byte)1 : (byte)0; + TexPixelsAlpha8 = texPixelsAlpha8; + TexPixelsRGBA32 = texPixelsRgba32; + TexWidth = texWidth; + TexHeight = texHeight; + TexUvScale = texUvScale; + TexUvWhitePixel = texUvWhitePixel; + Fonts = fonts; + CustomRects = customRects; + ConfigData = configData; + if (texUvLines != default) + { + TexUvLines_0 = texUvLines[0]; + TexUvLines_1 = texUvLines[1]; + TexUvLines_2 = texUvLines[2]; + TexUvLines_3 = texUvLines[3]; + TexUvLines_4 = texUvLines[4]; + TexUvLines_5 = texUvLines[5]; + TexUvLines_6 = texUvLines[6]; + TexUvLines_7 = texUvLines[7]; + TexUvLines_8 = texUvLines[8]; + TexUvLines_9 = texUvLines[9]; + TexUvLines_10 = texUvLines[10]; + TexUvLines_11 = texUvLines[11]; + TexUvLines_12 = texUvLines[12]; + TexUvLines_13 = texUvLines[13]; + TexUvLines_14 = texUvLines[14]; + TexUvLines_15 = texUvLines[15]; + TexUvLines_16 = texUvLines[16]; + TexUvLines_17 = texUvLines[17]; + TexUvLines_18 = texUvLines[18]; + TexUvLines_19 = texUvLines[19]; + TexUvLines_20 = texUvLines[20]; + TexUvLines_21 = texUvLines[21]; + TexUvLines_22 = texUvLines[22]; + TexUvLines_23 = texUvLines[23]; + TexUvLines_24 = texUvLines[24]; + TexUvLines_25 = texUvLines[25]; + TexUvLines_26 = texUvLines[26]; + TexUvLines_27 = texUvLines[27]; + TexUvLines_28 = texUvLines[28]; + TexUvLines_29 = texUvLines[29]; + TexUvLines_30 = texUvLines[30]; + TexUvLines_31 = texUvLines[31]; + TexUvLines_32 = texUvLines[32]; + TexUvLines_33 = texUvLines[33]; + TexUvLines_34 = texUvLines[34]; + TexUvLines_35 = texUvLines[35]; + TexUvLines_36 = texUvLines[36]; + TexUvLines_37 = texUvLines[37]; + TexUvLines_38 = texUvLines[38]; + TexUvLines_39 = texUvLines[39]; + TexUvLines_40 = texUvLines[40]; + TexUvLines_41 = texUvLines[41]; + TexUvLines_42 = texUvLines[42]; + TexUvLines_43 = texUvLines[43]; + TexUvLines_44 = texUvLines[44]; + TexUvLines_45 = texUvLines[45]; + TexUvLines_46 = texUvLines[46]; + TexUvLines_47 = texUvLines[47]; + TexUvLines_48 = texUvLines[48]; + TexUvLines_49 = texUvLines[49]; + TexUvLines_50 = texUvLines[50]; + TexUvLines_51 = texUvLines[51]; + TexUvLines_52 = texUvLines[52]; + TexUvLines_53 = texUvLines[53]; + TexUvLines_54 = texUvLines[54]; + TexUvLines_55 = texUvLines[55]; + TexUvLines_56 = texUvLines[56]; + TexUvLines_57 = texUvLines[57]; + TexUvLines_58 = texUvLines[58]; + TexUvLines_59 = texUvLines[59]; + TexUvLines_60 = texUvLines[60]; + TexUvLines_61 = texUvLines[61]; + TexUvLines_62 = texUvLines[62]; + TexUvLines_63 = texUvLines[63]; + } + FontBuilderIO = fontBuilderIo; + FontBuilderFlags = fontBuilderFlags; + PackIdMouseCursors = packIdMouseCursors; + PackIdLines = packIdLines; + } + /// /// To be documented. @@ -7367,9 +7169,7 @@ public unsafe Span TexUvLines } } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offset) + public unsafe int AddCustomRectFontGlyph( ImFont* font, char id, int width, int height, float advanceX, Vector2 offset) { fixed (ImFontAtlas* @this = &this) { @@ -7378,9 +7178,7 @@ public unsafe int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "font } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ImFont* font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) + public unsafe int AddCustomRectFontGlyph( ImFont* font, char id, int width, int height, float advanceX) { fixed (ImFontAtlas* @this = &this) { @@ -7389,9 +7187,7 @@ public unsafe int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "font } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 offset) + public unsafe int AddCustomRectFontGlyph( ref ImFont font, char id, int width, int height, float advanceX, Vector2 offset) { fixed (ImFontAtlas* @this = &this) { @@ -7403,9 +7199,7 @@ public unsafe int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "font } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectFontGlyph")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "font")] [NativeName(NativeNameType.Type, "ImFont*")] ref ImFont font, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImWchar")] char id, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height, [NativeName(NativeNameType.Param, "advance_x")] [NativeName(NativeNameType.Type, "float")] float advanceX) + public unsafe int AddCustomRectFontGlyph( ref ImFont font, char id, int width, int height, float advanceX) { fixed (ImFontAtlas* @this = &this) { @@ -7417,9 +7211,7 @@ public unsafe int AddCustomRectFontGlyph([NativeName(NativeNameType.Param, "font } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddCustomRectRegular")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "int")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "int")] int height) + public unsafe int AddCustomRectRegular( int width, int height) { fixed (ImFontAtlas* @this = &this) { @@ -7428,9 +7220,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFont([NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) + public unsafe ImFont* AddFont( ImFontConfig* fontCfg) { fixed (ImFontAtlas* @this = &this) { @@ -7439,9 +7229,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFont")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFont([NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) + public unsafe ImFont* AddFont( ref ImFontConfig fontCfg) { fixed (ImFontAtlas* @this = &this) { @@ -7453,9 +7241,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontDefault")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontDefault([NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) + public unsafe ImFont* AddFontDefault( ImFontConfig* fontCfg) { fixed (ImFontAtlas* @this = &this) { @@ -7464,8 +7250,6 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontDefault")] - [return: NativeName(NativeNameType.Type, "ImFont*")] public unsafe ImFont* AddFontDefault() { fixed (ImFontAtlas* @this = &this) @@ -7475,9 +7259,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontDefault")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontDefault([NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) + public unsafe ImFont* AddFontDefault( ref ImFontConfig fontCfg) { fixed (ImFontAtlas* @this = &this) { @@ -7489,9 +7271,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7500,9 +7280,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ImFontConfig* fontCfg) { fixed (ImFontAtlas* @this = &this) { @@ -7511,9 +7289,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels) { fixed (ImFontAtlas* @this = &this) { @@ -7522,9 +7298,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7533,9 +7307,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7547,9 +7319,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ImFontConfig* fontCfg) { fixed (ImFontAtlas* @this = &this) { @@ -7561,9 +7331,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels) { fixed (ImFontAtlas* @this = &this) { @@ -7575,9 +7343,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7589,9 +7355,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7621,9 +7385,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ImFontConfig* fontCfg) { fixed (ImFontAtlas* @this = &this) { @@ -7653,9 +7415,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels) { fixed (ImFontAtlas* @this = &this) { @@ -7685,9 +7445,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7717,9 +7475,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7731,9 +7487,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* @this = &this) { @@ -7745,9 +7499,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7762,9 +7514,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* @this = &this) { @@ -7779,9 +7529,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7814,9 +7562,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* @this = &this) { @@ -7849,9 +7595,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7863,9 +7607,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7877,9 +7619,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7894,9 +7634,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7911,9 +7649,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7946,9 +7682,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7981,9 +7715,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] byte* filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( byte* filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -7998,9 +7730,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] ref byte filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( ref byte filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -8018,9 +7748,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromFileTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromFileTTF([NativeName(NativeNameType.Param, "filename")] [NativeName(NativeNameType.Type, "const char*")] string filename, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromFileTTF( string filename, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -8056,117 +7784,99 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDataBase85, sizePixels, fontCfg, glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, fontCfg, glyphRanges); return ret; } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDataBase85, sizePixels, fontCfg, (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, fontCfg, (char*)(default)); return ret; } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); return ret; } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDataBase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDataBase85, sizePixels, fontCfg, glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, glyphRanges); return ret; } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) { fixed (ImFontAtlas* @this = &this) { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDataBase85, sizePixels, fontCfg, (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (char*)(default)); return ret; } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels) { fixed (ImFontAtlas* @this = &this) { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)(default)); return ret; } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)(default), glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { byte* pStr0 = null; int pStrSize0 = 0; - if (compressedFontDataBase85 != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8176,7 +7886,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, fontCfg, glyphRanges); @@ -8188,17 +7898,15 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg) { fixed (ImFontAtlas* @this = &this) { byte* pStr0 = null; int pStrSize0 = 0; - if (compressedFontDataBase85 != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8208,7 +7916,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, fontCfg, (char*)(default)); @@ -8220,17 +7928,15 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels) { fixed (ImFontAtlas* @this = &this) { byte* pStr0 = null; int pStrSize0 = 0; - if (compressedFontDataBase85 != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8240,7 +7946,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), (char*)(default)); @@ -8252,17 +7958,15 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { byte* pStr0 = null; int pStrSize0 = 0; - if (compressedFontDataBase85 != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8272,7 +7976,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, pStr0, sizePixels, (ImFontConfig*)(default), glyphRanges); @@ -8284,79 +7988,69 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { fixed (ImFontConfig* pfontCfg = &fontCfg) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* @this = &this) { fixed (ImFontConfig* pfontCfg = &fontCfg) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); return ret; } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* @this = &this) { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); return ret; } } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { byte* pStr0 = null; int pStrSize0 = 0; - if (compressedFontDataBase85 != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8366,7 +8060,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) @@ -8381,17 +8075,15 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* @this = &this) { byte* pStr0 = null; int pStrSize0 = 0; - if (compressedFontDataBase85 != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8401,7 +8093,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) @@ -8416,79 +8108,69 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDataBase85, sizePixels, fontCfg, (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, fontCfg, (char*)pglyphRanges); return ret; } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); return ret; } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDataBase85, sizePixels, fontCfg, (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, fontCfg, (char*)pglyphRanges); return ret; } } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); return ret; } } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { byte* pStr0 = null; int pStrSize0 = 0; - if (compressedFontDataBase85 != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8498,7 +8180,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (char* pglyphRanges = &glyphRanges) @@ -8513,17 +8195,15 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { byte* pStr0 = null; int pStrSize0 = 0; - if (compressedFontDataBase85 != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8533,7 +8213,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (char* pglyphRanges = &glyphRanges) @@ -8548,9 +8228,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] byte* compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( byte* compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -8558,26 +8236,24 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, compressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); return ret; } } } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] ref byte compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( ref byte compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { - fixed (byte* pcompressedFontDataBase85 = &compressedFontDataBase85) + fixed (byte* pcompressedFontDatabase85 = &compressedFontDatabase85) { fixed (ImFontConfig* pfontCfg = &fontCfg) { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDataBase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedBase85TTFNative(@this, (byte*)pcompressedFontDatabase85, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); return ret; } } @@ -8585,17 +8261,15 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - /// /// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF([NativeName(NativeNameType.Param, "compressed_font_data_base85")] [NativeName(NativeNameType.Type, "const char*")] string compressedFontDataBase85, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedBase85TTF( string compressedFontDatabase85, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { byte* pStr0 = null; int pStrSize0 = 0; - if (compressedFontDataBase85 != null) + if (compressedFontDatabase85 != null) { - pStrSize0 = Utils.GetByteCountUTF8(compressedFontDataBase85); + pStrSize0 = Utils.GetByteCountUTF8(compressedFontDatabase85); if (pStrSize0 >= Utils.MaxStackallocSize) { pStr0 = Utils.Alloc(pStrSize0 + 1); @@ -8605,7 +8279,7 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; pStr0 = pStrStack0; } - int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDataBase85, pStr0, pStrSize0); + int pStrOffset0 = Utils.EncodeStringUTF8(compressedFontDatabase85, pStr0, pStrSize0); pStr0[pStrOffset0] = 0; } fixed (ImFontConfig* pfontCfg = &fontCfg) @@ -8623,109 +8297,91 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" } } - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, fontCfg, glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, glyphRanges); return ret; } } - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, fontCfg, (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, (char*)(default)); return ret; } } - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); return ret; } } - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { fixed (ImFontConfig* pfontCfg = &fontCfg) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* @this = &this) { fixed (ImFontConfig* pfontCfg = &fontCfg) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); return ret; } } } - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, fontCfg, (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, fontCfg, (char*)pglyphRanges); return ret; } } } - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); return ret; } } } - /// /// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryCompressedTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryCompressedTTF([NativeName(NativeNameType.Param, "compressed_font_data")] [NativeName(NativeNameType.Type, "const void*")] void* compressedFontData, [NativeName(NativeNameType.Param, "compressed_font_size")] [NativeName(NativeNameType.Type, "int")] int compressedFontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryCompressedTTF( void* compressedFontData, int compressedFontDataSize, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -8733,116 +8389,98 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryCompressedTTFNative(@this, compressedFontData, compressedFontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); return ret; } } } } - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, fontCfg, glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, fontCfg, glyphRanges); return ret; } } - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg) + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, fontCfg, (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, fontCfg, (char*)(default)); return ret; } } - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels) + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), (char*)(default)); return ret; } } - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { - ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)(default), glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), glyphRanges); return ret; } } - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* glyphRanges) + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg, char* glyphRanges) { fixed (ImFontAtlas* @this = &this) { fixed (ImFontConfig* pfontCfg = &fontCfg) { - ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, glyphRanges); return ret; } } } - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg) + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg) { fixed (ImFontAtlas* @this = &this) { fixed (ImFontConfig* pfontCfg = &fontCfg) { - ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)(default)); return ret; } } } - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ImFontConfig* fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ImFontConfig* fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, fontCfg, (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, fontCfg, (char*)pglyphRanges); return ret; } } } - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)(default), (char*)pglyphRanges); return ret; } } } - /// /// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. /// [NativeName(NativeNameType.Func, "ImFontAtlas_AddFontFromMemoryTTF")] - [return: NativeName(NativeNameType.Type, "ImFont*")] - public unsafe ImFont* AddFontFromMemoryTTF([NativeName(NativeNameType.Param, "font_data")] [NativeName(NativeNameType.Type, "void*")] void* fontData, [NativeName(NativeNameType.Param, "font_size")] [NativeName(NativeNameType.Type, "int")] int fontSize, [NativeName(NativeNameType.Param, "size_pixels")] [NativeName(NativeNameType.Type, "float")] float sizePixels, [NativeName(NativeNameType.Param, "font_cfg")] [NativeName(NativeNameType.Type, "const ImFontConfig*")] ref ImFontConfig fontCfg, [NativeName(NativeNameType.Param, "glyph_ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char glyphRanges) + public unsafe ImFont* AddFontFromMemoryTTF( void* fontData, int fontDataSize, float sizePixels, ref ImFontConfig fontCfg, ref char glyphRanges) { fixed (ImFontAtlas* @this = &this) { @@ -8850,15 +8488,13 @@ public unsafe int AddCustomRectRegular([NativeName(NativeNameType.Param, "width" { fixed (char* pglyphRanges = &glyphRanges) { - ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); + ImFont* ret = ImGui.AddFontFromMemoryTTFNative(@this, fontData, fontDataSize, sizePixels, (ImFontConfig*)pfontCfg, (char*)pglyphRanges); return ret; } } } } - /// /// Build pixels data. This is called automatically for you by the GetTexData*** functions. /// [NativeName(NativeNameType.Func, "ImFontAtlas_Build")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool Build() { fixed (ImFontAtlas* @this = &this) @@ -8868,9 +8504,7 @@ public unsafe bool Build() } } - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) + public unsafe void CalcCustomRectUV( ImFontAtlasCustomRect* rect, Vector2* outUvMin, Vector2* outUvMax) { fixed (ImFontAtlas* @this = &this) { @@ -8878,9 +8512,7 @@ public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [ } } - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) + public unsafe void CalcCustomRectUV( ref ImFontAtlasCustomRect rect, Vector2* outUvMin, Vector2* outUvMax) { fixed (ImFontAtlas* @this = &this) { @@ -8891,9 +8523,7 @@ public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [ } } - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) + public unsafe void CalcCustomRectUV( ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, Vector2* outUvMax) { fixed (ImFontAtlas* @this = &this) { @@ -8904,9 +8534,7 @@ public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [ } } - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMax) + public unsafe void CalcCustomRectUV( ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, Vector2* outUvMax) { fixed (ImFontAtlas* @this = &this) { @@ -8920,9 +8548,7 @@ public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [ } } - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) + public unsafe void CalcCustomRectUV( ImFontAtlasCustomRect* rect, Vector2* outUvMin, ref Vector2 outUvMax) { fixed (ImFontAtlas* @this = &this) { @@ -8933,9 +8559,7 @@ public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [ } } - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) + public unsafe void CalcCustomRectUV( ref ImFontAtlasCustomRect rect, Vector2* outUvMin, ref Vector2 outUvMax) { fixed (ImFontAtlas* @this = &this) { @@ -8949,9 +8573,7 @@ public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [ } } - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ImFontAtlasCustomRect* rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) + public unsafe void CalcCustomRectUV( ImFontAtlasCustomRect* rect, ref Vector2 outUvMin, ref Vector2 outUvMax) { fixed (ImFontAtlas* @this = &this) { @@ -8965,9 +8587,7 @@ public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [ } } - [NativeName(NativeNameType.Func, "ImFontAtlas_CalcCustomRectUV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [NativeName(NativeNameType.Type, "const ImFontAtlasCustomRect*")] ref ImFontAtlasCustomRect rect, [NativeName(NativeNameType.Param, "out_uv_min")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMin, [NativeName(NativeNameType.Param, "out_uv_max")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outUvMax) + public unsafe void CalcCustomRectUV( ref ImFontAtlasCustomRect rect, ref Vector2 outUvMin, ref Vector2 outUvMax) { fixed (ImFontAtlas* @this = &this) { @@ -8984,8 +8604,6 @@ public unsafe void CalcCustomRectUV([NativeName(NativeNameType.Param, "rect")] [ } } - /// /// Clear all input and output. /// [NativeName(NativeNameType.Func, "ImFontAtlas_Clear")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Clear() { fixed (ImFontAtlas* @this = &this) @@ -8994,8 +8612,6 @@ public unsafe void Clear() } } - /// /// Clear output font data (glyphs storage, UV coordinates). /// [NativeName(NativeNameType.Func, "ImFontAtlas_ClearFonts")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void ClearFonts() { fixed (ImFontAtlas* @this = &this) @@ -9004,8 +8620,6 @@ public unsafe void ClearFonts() } } - /// /// Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts. /// [NativeName(NativeNameType.Func, "ImFontAtlas_ClearInputData")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void ClearInputData() { fixed (ImFontAtlas* @this = &this) @@ -9014,8 +8628,6 @@ public unsafe void ClearInputData() } } - /// /// Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory. /// [NativeName(NativeNameType.Func, "ImFontAtlas_ClearTexData")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void ClearTexData() { fixed (ImFontAtlas* @this = &this) @@ -9024,8 +8636,6 @@ public unsafe void ClearTexData() } } - [NativeName(NativeNameType.Func, "ImFontAtlas_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImFontAtlas* @this = &this) @@ -9034,9 +8644,7 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetCustomRectByIndex")] - [return: NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] - public unsafe ImFontAtlasCustomRect* GetCustomRectByIndex([NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "int")] int index) + public unsafe ImFontAtlasCustomRect* GetCustomRectByIndex( int index) { fixed (ImFontAtlas* @this = &this) { @@ -9045,8 +8653,6 @@ public unsafe void Destroy() } } - /// /// Default + Half-Width + Japanese HiraganaKatakana + full set of about 21000 CJK Unified Ideographs /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesChineseFull")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] public unsafe char* GetGlyphRangesChineseFull() { fixed (ImFontAtlas* @this = &this) @@ -9056,8 +8662,6 @@ public unsafe void Destroy() } } - /// /// Default + Half-Width + Japanese HiraganaKatakana + set of 2500 CJK Unified Ideographs for common simplified Chinese /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] public unsafe char* GetGlyphRangesChineseSimplifiedCommon() { fixed (ImFontAtlas* @this = &this) @@ -9067,8 +8671,6 @@ public unsafe void Destroy() } } - /// /// Default + about 400 Cyrillic characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesCyrillic")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] public unsafe char* GetGlyphRangesCyrillic() { fixed (ImFontAtlas* @this = &this) @@ -9078,8 +8680,6 @@ public unsafe void Destroy() } } - /// /// Basic Latin, Extended Latin /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesDefault")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] public unsafe char* GetGlyphRangesDefault() { fixed (ImFontAtlas* @this = &this) @@ -9089,8 +8689,6 @@ public unsafe void Destroy() } } - /// /// Default + Greek and Coptic /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesGreek")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] public unsafe char* GetGlyphRangesGreek() { fixed (ImFontAtlas* @this = &this) @@ -9100,8 +8698,6 @@ public unsafe void Destroy() } } - /// /// Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesJapanese")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] public unsafe char* GetGlyphRangesJapanese() { fixed (ImFontAtlas* @this = &this) @@ -9111,8 +8707,6 @@ public unsafe void Destroy() } } - /// /// Default + Korean characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesKorean")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] public unsafe char* GetGlyphRangesKorean() { fixed (ImFontAtlas* @this = &this) @@ -9122,8 +8716,6 @@ public unsafe void Destroy() } } - /// /// Default + Thai characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesThai")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] public unsafe char* GetGlyphRangesThai() { fixed (ImFontAtlas* @this = &this) @@ -9133,8 +8725,6 @@ public unsafe void Destroy() } } - /// /// Default + Vietnamese characters /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetGlyphRangesVietnamese")] - [return: NativeName(NativeNameType.Type, "const ImWchar*")] public unsafe char* GetGlyphRangesVietnamese() { fixed (ImFontAtlas* @this = &this) @@ -9144,9 +8734,7 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9155,9 +8743,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, Vector2* outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9169,9 +8755,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9183,9 +8767,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, Vector2* outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9200,9 +8782,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9214,9 +8794,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, Vector2* outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9231,9 +8809,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9248,9 +8824,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, Vector2* outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9268,9 +8842,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9282,9 +8854,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, Vector2* outSize, Vector2* outUvBorder, ref Vector2 outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9299,9 +8869,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9316,9 +8884,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] Vector2* outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, ref Vector2 outSize, Vector2* outUvBorder, ref Vector2 outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9336,9 +8902,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9353,9 +8917,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, Vector2* outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9373,9 +8935,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] Vector2* outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, Vector2* outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9393,9 +8953,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - [NativeName(NativeNameType.Func, "ImFontAtlas_GetMouseCursorTexData")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "cursor")] [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] ImGuiMouseCursor cursor, [NativeName(NativeNameType.Param, "out_offset")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outOffset, [NativeName(NativeNameType.Param, "out_size")] [NativeName(NativeNameType.Type, "ImVec2*")] ref Vector2 outSize, [NativeName(NativeNameType.Param, "out_uv_border")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvBorder, [NativeName(NativeNameType.Param, "out_uv_fill")] [NativeName(NativeNameType.Type, "ImVec2[2]")] ref Vector2 outUvFill) + public unsafe bool GetMouseCursorTexData( int cursor, ref Vector2 outOffset, ref Vector2 outSize, ref Vector2 outUvBorder, ref Vector2 outUvFill) { fixed (ImFontAtlas* @this = &this) { @@ -9416,9 +8974,7 @@ public unsafe bool GetMouseCursorTexData([NativeName(NativeNameType.Param, "curs } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9426,9 +8982,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, int* outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9436,9 +8990,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9449,9 +9001,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, int* outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9462,9 +9012,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9475,9 +9023,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, int* outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9488,9 +9034,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9504,9 +9048,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, int* outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9520,9 +9062,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9533,9 +9073,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, ref int outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9546,9 +9084,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9562,9 +9098,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, ref int outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9578,9 +9112,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9594,9 +9126,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, ref int outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9610,9 +9140,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9629,9 +9157,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, ref int outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9648,9 +9174,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9661,9 +9185,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9677,9 +9199,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9693,9 +9213,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9712,9 +9230,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9728,9 +9244,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9747,9 +9261,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9766,9 +9278,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 1 byte per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsAlpha8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsAlpha8( ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9788,9 +9298,7 @@ public unsafe void GetTexDataAsAlpha8([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9798,9 +9306,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, int* outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9808,9 +9314,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9821,9 +9325,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, int* outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9834,9 +9336,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9847,9 +9347,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, int* outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9860,9 +9358,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, int* outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9876,9 +9372,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, int* outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9892,9 +9386,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9905,9 +9397,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, ref int outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9918,9 +9408,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9934,9 +9422,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, ref int outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9950,9 +9436,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -9966,9 +9450,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, ref int outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -9982,9 +9464,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] int* outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, ref int outHeight, int* outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -10001,9 +9481,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, ref int outHeight) { fixed (ImFontAtlas* @this = &this) { @@ -10020,9 +9498,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -10033,9 +9509,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -10049,9 +9523,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -10065,9 +9537,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] int* outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, int* outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -10084,9 +9554,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -10100,9 +9568,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] int* outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, int* outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -10119,9 +9585,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] byte** outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( byte** outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -10138,9 +9602,7 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// 4 bytes-per-pixel /// [NativeName(NativeNameType.Func, "ImFontAtlas_GetTexDataAsRGBA32")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pixels")] [NativeName(NativeNameType.Type, "unsigned char**")] ref byte* outPixels, [NativeName(NativeNameType.Param, "out_width")] [NativeName(NativeNameType.Type, "int*")] ref int outWidth, [NativeName(NativeNameType.Param, "out_height")] [NativeName(NativeNameType.Type, "int*")] ref int outHeight, [NativeName(NativeNameType.Param, "out_bytes_per_pixel")] [NativeName(NativeNameType.Type, "int*")] ref int outBytesPerPixel) + public unsafe void GetTexDataAsRGBA32( ref byte* outPixels, ref int outWidth, ref int outHeight, ref int outBytesPerPixel) { fixed (ImFontAtlas* @this = &this) { @@ -10160,8 +9622,6 @@ public unsafe void GetTexDataAsRGBA32([NativeName(NativeNameType.Param, "out_pix } } - /// /// Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent... /// [NativeName(NativeNameType.Func, "ImFontAtlas_IsBuilt")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool IsBuilt() { fixed (ImFontAtlas* @this = &this) @@ -10171,9 +9631,7 @@ public unsafe bool IsBuilt() } } - [NativeName(NativeNameType.Func, "ImFontAtlas_SetTexID")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetTexID([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImTextureID")] ImTextureID id) + public unsafe void SetTexID( ImTextureID id) { fixed (ImFontAtlas* @this = &this) { @@ -10186,135 +9644,128 @@ public unsafe void SetTexID([NativeName(NativeNameType.Param, "id")] [NativeName /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImFontPtr")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImFontPtr { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImFont**")] public unsafe ImFont** Data; + /// /// To be documented. /// public unsafe ImVectorImFontPtr(int size = default, int capacity = default, ImFont** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImFontAtlasCustomRect")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImFontAtlasCustomRect { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImFontAtlasCustomRect*")] public unsafe ImFontAtlasCustomRect* Data; + /// /// To be documented. /// public unsafe ImVectorImFontAtlasCustomRect(int size = default, int capacity = default, ImFontAtlasCustomRect* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImFontAtlasCustomRect")] [StructLayout(LayoutKind.Sequential)] public partial struct ImFontAtlasCustomRect { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Width")] - [NativeName(NativeNameType.Type, "unsigned short")] public ushort Width; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Height")] - [NativeName(NativeNameType.Type, "unsigned short")] public ushort Height; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "X")] - [NativeName(NativeNameType.Type, "unsigned short")] public ushort X; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Y")] - [NativeName(NativeNameType.Type, "unsigned short")] public ushort Y; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GlyphID")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint GlyphID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GlyphAdvanceX")] - [NativeName(NativeNameType.Type, "float")] public float GlyphAdvanceX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GlyphOffset")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 GlyphOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Font")] - [NativeName(NativeNameType.Type, "ImFont*")] public unsafe ImFont* Font; + /// /// To be documented. /// public unsafe ImFontAtlasCustomRect(ushort width = default, ushort height = default, ushort x = default, ushort y = default, uint glyphId = default, float glyphAdvanceX = default, Vector2 glyphOffset = default, ImFont* font = default) + { + Width = width; + Height = height; + X = x; + Y = y; + GlyphID = glyphId; + GlyphAdvanceX = glyphAdvanceX; + GlyphOffset = glyphOffset; + Font = font; + } + - [NativeName(NativeNameType.Func, "ImFontAtlasCustomRect_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImFontAtlasCustomRect* @this = &this) @@ -10323,8 +9774,6 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImFontAtlasCustomRect_IsPacked")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool IsPacked() { fixed (ImFontAtlasCustomRect* @this = &this) @@ -10339,166 +9788,129 @@ public unsafe bool IsPacked() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImFontConfig")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImFontConfig { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImFontConfig*")] public unsafe ImFontConfig* Data; + /// /// To be documented. /// public unsafe ImVectorImFontConfig(int size = default, int capacity = default, ImFontConfig* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImFontConfig")] [StructLayout(LayoutKind.Sequential)] public partial struct ImFontConfig { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* FontData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontDataSize")] - [NativeName(NativeNameType.Type, "int")] public int FontDataSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontDataOwnedByAtlas")] - [NativeName(NativeNameType.Type, "bool")] public byte FontDataOwnedByAtlas; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontNo")] - [NativeName(NativeNameType.Type, "int")] public int FontNo; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizePixels")] - [NativeName(NativeNameType.Type, "float")] public float SizePixels; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OversampleH")] - [NativeName(NativeNameType.Type, "int")] public int OversampleH; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OversampleV")] - [NativeName(NativeNameType.Type, "int")] public int OversampleV; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PixelSnapH")] - [NativeName(NativeNameType.Type, "bool")] public byte PixelSnapH; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GlyphExtraSpacing")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 GlyphExtraSpacing; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GlyphOffset")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 GlyphOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GlyphRanges")] - [NativeName(NativeNameType.Type, "const ImWchar*")] public unsafe char* GlyphRanges; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GlyphMinAdvanceX")] - [NativeName(NativeNameType.Type, "float")] public float GlyphMinAdvanceX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GlyphMaxAdvanceX")] - [NativeName(NativeNameType.Type, "float")] public float GlyphMaxAdvanceX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MergeMode")] - [NativeName(NativeNameType.Type, "bool")] public byte MergeMode; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontBuilderFlags")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint FontBuilderFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RasterizerMultiply")] - [NativeName(NativeNameType.Type, "float")] public float RasterizerMultiply; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EllipsisChar")] - [NativeName(NativeNameType.Type, "ImWchar")] public char EllipsisChar; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Name")] - [NativeName(NativeNameType.Type, "char[40]")] public byte Name_0; public byte Name_1; public byte Name_2; @@ -10543,18 +9955,144 @@ public partial struct ImFontConfig /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DstFont")] - [NativeName(NativeNameType.Type, "ImFont*")] public unsafe ImFont* DstFont; + /// /// To be documented. /// public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, char* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, char ellipsisChar = default, byte* name = default, ImFont* dstFont = default) + { + FontData = fontData; + FontDataSize = fontDataSize; + FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; + FontNo = fontNo; + SizePixels = sizePixels; + OversampleH = oversampleH; + OversampleV = oversampleV; + PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; + GlyphExtraSpacing = glyphExtraSpacing; + GlyphOffset = glyphOffset; + GlyphRanges = glyphRanges; + GlyphMinAdvanceX = glyphMinAdvanceX; + GlyphMaxAdvanceX = glyphMaxAdvanceX; + MergeMode = mergeMode ? (byte)1 : (byte)0; + FontBuilderFlags = fontBuilderFlags; + RasterizerMultiply = rasterizerMultiply; + EllipsisChar = ellipsisChar; + if (name != default) + { + Name_0 = name[0]; + Name_1 = name[1]; + Name_2 = name[2]; + Name_3 = name[3]; + Name_4 = name[4]; + Name_5 = name[5]; + Name_6 = name[6]; + Name_7 = name[7]; + Name_8 = name[8]; + Name_9 = name[9]; + Name_10 = name[10]; + Name_11 = name[11]; + Name_12 = name[12]; + Name_13 = name[13]; + Name_14 = name[14]; + Name_15 = name[15]; + Name_16 = name[16]; + Name_17 = name[17]; + Name_18 = name[18]; + Name_19 = name[19]; + Name_20 = name[20]; + Name_21 = name[21]; + Name_22 = name[22]; + Name_23 = name[23]; + Name_24 = name[24]; + Name_25 = name[25]; + Name_26 = name[26]; + Name_27 = name[27]; + Name_28 = name[28]; + Name_29 = name[29]; + Name_30 = name[30]; + Name_31 = name[31]; + Name_32 = name[32]; + Name_33 = name[33]; + Name_34 = name[34]; + Name_35 = name[35]; + Name_36 = name[36]; + Name_37 = name[37]; + Name_38 = name[38]; + Name_39 = name[39]; + } + DstFont = dstFont; + } + + /// /// To be documented. /// public unsafe ImFontConfig(void* fontData = default, int fontDataSize = default, bool fontDataOwnedByAtlas = default, int fontNo = default, float sizePixels = default, int oversampleH = default, int oversampleV = default, bool pixelSnapH = default, Vector2 glyphExtraSpacing = default, Vector2 glyphOffset = default, char* glyphRanges = default, float glyphMinAdvanceX = default, float glyphMaxAdvanceX = default, bool mergeMode = default, uint fontBuilderFlags = default, float rasterizerMultiply = default, char ellipsisChar = default, Span name = default, ImFont* dstFont = default) + { + FontData = fontData; + FontDataSize = fontDataSize; + FontDataOwnedByAtlas = fontDataOwnedByAtlas ? (byte)1 : (byte)0; + FontNo = fontNo; + SizePixels = sizePixels; + OversampleH = oversampleH; + OversampleV = oversampleV; + PixelSnapH = pixelSnapH ? (byte)1 : (byte)0; + GlyphExtraSpacing = glyphExtraSpacing; + GlyphOffset = glyphOffset; + GlyphRanges = glyphRanges; + GlyphMinAdvanceX = glyphMinAdvanceX; + GlyphMaxAdvanceX = glyphMaxAdvanceX; + MergeMode = mergeMode ? (byte)1 : (byte)0; + FontBuilderFlags = fontBuilderFlags; + RasterizerMultiply = rasterizerMultiply; + EllipsisChar = ellipsisChar; + if (name != default) + { + Name_0 = name[0]; + Name_1 = name[1]; + Name_2 = name[2]; + Name_3 = name[3]; + Name_4 = name[4]; + Name_5 = name[5]; + Name_6 = name[6]; + Name_7 = name[7]; + Name_8 = name[8]; + Name_9 = name[9]; + Name_10 = name[10]; + Name_11 = name[11]; + Name_12 = name[12]; + Name_13 = name[13]; + Name_14 = name[14]; + Name_15 = name[15]; + Name_16 = name[16]; + Name_17 = name[17]; + Name_18 = name[18]; + Name_19 = name[19]; + Name_20 = name[20]; + Name_21 = name[21]; + Name_22 = name[22]; + Name_23 = name[23]; + Name_24 = name[24]; + Name_25 = name[25]; + Name_26 = name[26]; + Name_27 = name[27]; + Name_28 = name[28]; + Name_29 = name[29]; + Name_30 = name[30]; + Name_31 = name[31]; + Name_32 = name[32]; + Name_33 = name[33]; + Name_34 = name[34]; + Name_35 = name[35]; + Name_36 = name[36]; + Name_37 = name[37]; + Name_38 = name[38]; + Name_39 = name[39]; + } + DstFont = dstFont; + } + /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImFontConfig_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImFontConfig* @this = &this) @@ -10568,182 +10106,182 @@ public unsafe void Destroy() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImFontBuilderIO")] [StructLayout(LayoutKind.Sequential)] public partial struct ImFontBuilderIO { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontBuilder_Build")] - [NativeName(NativeNameType.Type, "bool (*)(ImFontAtlas* atlas)*")] public unsafe void* FontBuilderBuild; + /// /// To be documented. /// public unsafe ImFontBuilderIO(delegate* fontbuilderBuild = default) + { + FontBuilderBuild = (void*)fontbuilderBuild; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImVec2")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImVec2 { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImVec2*")] public unsafe Vector2* Data; + /// /// To be documented. /// public unsafe ImVectorImVec2(int size = default, int capacity = default, Vector2* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImVec4")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImVec4 { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImVec4*")] public unsafe Vector4* Data; + /// /// To be documented. /// public unsafe ImVectorImVec4(int size = default, int capacity = default, Vector4* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImTextureID")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImTextureID { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImTextureID*")] public unsafe ImTextureID* Data; + /// /// To be documented. /// public unsafe ImVectorImTextureID(int size = default, int capacity = default, ImTextureID* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImDrawCmdHeader")] [StructLayout(LayoutKind.Sequential)] public partial struct ImDrawCmdHeader { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClipRect")] - [NativeName(NativeNameType.Type, "ImVec4")] public Vector4 ClipRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TextureId")] - [NativeName(NativeNameType.Type, "ImTextureID")] public ImTextureID TextureId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "VtxOffset")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint VtxOffset; + /// /// To be documented. /// public unsafe ImDrawCmdHeader(Vector4 clipRect = default, ImTextureID textureId = default, uint vtxOffset = default) + { + ClipRect = clipRect; + TextureId = textureId; + VtxOffset = vtxOffset; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImDrawListSplitter")] [StructLayout(LayoutKind.Sequential)] public partial struct ImDrawListSplitter { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_Current")] - [NativeName(NativeNameType.Type, "int")] public int Current; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_Count")] - [NativeName(NativeNameType.Type, "int")] public int Count; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_Channels")] - [NativeName(NativeNameType.Type, "ImVector_ImDrawChannel")] public ImVectorImDrawChannel Channels; + /// /// To be documented. /// public unsafe ImDrawListSplitter(int Current = default, int Count = default, ImVectorImDrawChannel Channels = default) + { + this.Current = Current; + this.Count = Count; + this.Channels = Channels; + } + - /// /// Do not clear Channels[] so our allocations are reused next frame /// [NativeName(NativeNameType.Func, "ImDrawListSplitter_Clear")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Clear() { fixed (ImDrawListSplitter* @this = &this) @@ -10752,8 +10290,6 @@ public unsafe void Clear() } } - [NativeName(NativeNameType.Func, "ImDrawListSplitter_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void ClearFreeMemory() { fixed (ImDrawListSplitter* @this = &this) @@ -10762,8 +10298,6 @@ public unsafe void ClearFreeMemory() } } - [NativeName(NativeNameType.Func, "ImDrawListSplitter_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImDrawListSplitter* @this = &this) @@ -10772,9 +10306,7 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Merge")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Merge([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList) + public unsafe void Merge( ImDrawList* drawList) { fixed (ImDrawListSplitter* @this = &this) { @@ -10782,9 +10314,7 @@ public unsafe void Merge([NativeName(NativeNameType.Param, "draw_list")] [Native } } - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Merge")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Merge([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList) + public unsafe void Merge( ref ImDrawList drawList) { fixed (ImDrawListSplitter* @this = &this) { @@ -10795,9 +10325,7 @@ public unsafe void Merge([NativeName(NativeNameType.Param, "draw_list")] [Native } } - [NativeName(NativeNameType.Func, "ImDrawListSplitter_SetCurrentChannel")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetCurrentChannel([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "channel_idx")] [NativeName(NativeNameType.Type, "int")] int channelIdx) + public unsafe void SetCurrentChannel( ImDrawList* drawList, int channelIdx) { fixed (ImDrawListSplitter* @this = &this) { @@ -10805,9 +10333,7 @@ public unsafe void SetCurrentChannel([NativeName(NativeNameType.Param, "draw_lis } } - [NativeName(NativeNameType.Func, "ImDrawListSplitter_SetCurrentChannel")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetCurrentChannel([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "channel_idx")] [NativeName(NativeNameType.Type, "int")] int channelIdx) + public unsafe void SetCurrentChannel( ref ImDrawList drawList, int channelIdx) { fixed (ImDrawListSplitter* @this = &this) { @@ -10818,9 +10344,7 @@ public unsafe void SetCurrentChannel([NativeName(NativeNameType.Param, "draw_lis } } - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Split")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Split([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ImDrawList* drawList, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + public unsafe void Split( ImDrawList* drawList, int count) { fixed (ImDrawListSplitter* @this = &this) { @@ -10828,9 +10352,7 @@ public unsafe void Split([NativeName(NativeNameType.Param, "draw_list")] [Native } } - [NativeName(NativeNameType.Func, "ImDrawListSplitter_Split")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Split([NativeName(NativeNameType.Param, "draw_list")] [NativeName(NativeNameType.Type, "ImDrawList*")] ref ImDrawList drawList, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "int")] int count) + public unsafe void Split( ref ImDrawList drawList, int count) { fixed (ImDrawListSplitter* @this = &this) { @@ -10846,110 +10368,121 @@ public unsafe void Split([NativeName(NativeNameType.Param, "draw_list")] [Native /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImDrawChannel")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImDrawChannel { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImDrawChannel*")] public unsafe ImDrawChannel* Data; + /// /// To be documented. /// public unsafe ImVectorImDrawChannel(int size = default, int capacity = default, ImDrawChannel* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImDrawData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImDrawData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Valid")] - [NativeName(NativeNameType.Type, "bool")] public byte Valid; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CmdListsCount")] - [NativeName(NativeNameType.Type, "int")] public int CmdListsCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TotalIdxCount")] - [NativeName(NativeNameType.Type, "int")] public int TotalIdxCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TotalVtxCount")] - [NativeName(NativeNameType.Type, "int")] public int TotalVtxCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CmdLists")] - [NativeName(NativeNameType.Type, "ImDrawList**")] - public unsafe ImDrawList** CmdLists; + public ImVectorImDrawListPtr CmdLists; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplayPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 DisplayPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplaySize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 DisplaySize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FramebufferScale")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 FramebufferScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OwnerViewport")] - [NativeName(NativeNameType.Type, "ImGuiViewport*")] public unsafe ImGuiViewport* OwnerViewport; + /// /// To be documented. /// public unsafe ImDrawData(bool valid = default, int cmdListsCount = default, int totalIdxCount = default, int totalVtxCount = default, ImVectorImDrawListPtr cmdLists = default, Vector2 displayPos = default, Vector2 displaySize = default, Vector2 framebufferScale = default, ImGuiViewport* ownerViewport = default) + { + Valid = valid ? (byte)1 : (byte)0; + CmdListsCount = cmdListsCount; + TotalIdxCount = totalIdxCount; + TotalVtxCount = totalVtxCount; + CmdLists = cmdLists; + DisplayPos = displayPos; + DisplaySize = displaySize; + FramebufferScale = framebufferScale; + OwnerViewport = ownerViewport; + } + + + public unsafe void AddDrawList( ImDrawList* drawList) + { + fixed (ImDrawData* @this = &this) + { + ImGui.AddDrawListNative(@this, drawList); + } + } + + public unsafe void AddDrawList( ref ImDrawList drawList) + { + fixed (ImDrawData* @this = &this) + { + fixed (ImDrawList* pdrawList = &drawList) + { + ImGui.AddDrawListNative(@this, (ImDrawList*)pdrawList); + } + } + } - /// /// The ImDrawList are owned by ImGuiContext! /// [NativeName(NativeNameType.Func, "ImDrawData_Clear")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Clear() { fixed (ImDrawData* @this = &this) @@ -10958,8 +10491,6 @@ public unsafe void Clear() } } - /// /// Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! /// [NativeName(NativeNameType.Func, "ImDrawData_DeIndexAllBuffers")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void DeIndexAllBuffers() { fixed (ImDrawData* @this = &this) @@ -10968,8 +10499,6 @@ public unsafe void DeIndexAllBuffers() } } - [NativeName(NativeNameType.Func, "ImDrawData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImDrawData* @this = &this) @@ -10978,9 +10507,7 @@ public unsafe void Destroy() } } - /// /// Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution. /// [NativeName(NativeNameType.Func, "ImDrawData_ScaleClipRects")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ScaleClipRects([NativeName(NativeNameType.Param, "fb_scale")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 fbScale) + public unsafe void ScaleClipRects( Vector2 fbScale) { fixed (ImDrawData* @this = &this) { @@ -10993,134 +10520,150 @@ public unsafe void ScaleClipRects([NativeName(NativeNameType.Param, "fb_scale")] /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiViewport")] + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImDrawListPtr + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImDrawList** Data; + + + /// /// To be documented. /// public unsafe ImVectorImDrawListPtr(int size = default, int capacity = default, ImDrawList** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiViewport { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiViewportFlags")] - public ImGuiViewportFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Pos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 Pos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WorkPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WorkPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WorkSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WorkSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DpiScale")] - [NativeName(NativeNameType.Type, "float")] public float DpiScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ParentViewportId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ParentViewportId; + public uint ParentViewportId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawData")] - [NativeName(NativeNameType.Type, "ImDrawData*")] public unsafe ImDrawData* DrawData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RendererUserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* RendererUserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformUserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* PlatformUserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformHandle")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* PlatformHandle; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformHandleRaw")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* PlatformHandleRaw; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformWindowCreated")] - [NativeName(NativeNameType.Type, "bool")] public byte PlatformWindowCreated; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformRequestMove")] - [NativeName(NativeNameType.Type, "bool")] public byte PlatformRequestMove; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformRequestResize")] - [NativeName(NativeNameType.Type, "bool")] public byte PlatformRequestResize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformRequestClose")] - [NativeName(NativeNameType.Type, "bool")] public byte PlatformRequestClose; + /// /// To be documented. /// public unsafe ImGuiViewport(uint id = default, int flags = default, Vector2 pos = default, Vector2 size = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default, uint parentViewportId = default, ImDrawData* drawData = default, void* rendererUserData = default, void* platformUserData = default, void* platformHandle = default, void* platformHandleRaw = default, bool platformWindowCreated = default, bool platformRequestMove = default, bool platformRequestResize = default, bool platformRequestClose = default) + { + ID = id; + Flags = flags; + Pos = pos; + Size = size; + WorkPos = workPos; + WorkSize = workSize; + DpiScale = dpiScale; + ParentViewportId = parentViewportId; + DrawData = drawData; + RendererUserData = rendererUserData; + PlatformUserData = platformUserData; + PlatformHandle = platformHandle; + PlatformHandleRaw = platformHandleRaw; + PlatformWindowCreated = platformWindowCreated ? (byte)1 : (byte)0; + PlatformRequestMove = platformRequestMove ? (byte)1 : (byte)0; + PlatformRequestResize = platformRequestResize ? (byte)1 : (byte)0; + PlatformRequestClose = platformRequestClose ? (byte)1 : (byte)0; + } + - [NativeName(NativeNameType.Func, "ImGuiViewport_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiViewport* @this = &this) @@ -11134,23 +10677,23 @@ public unsafe void Destroy() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImFontGlyphRangesBuilder")] [StructLayout(LayoutKind.Sequential)] public partial struct ImFontGlyphRangesBuilder { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "UsedChars")] - [NativeName(NativeNameType.Type, "ImVector_ImU32")] public ImVectorImU32 UsedChars; + /// /// To be documented. /// public unsafe ImFontGlyphRangesBuilder(ImVectorImU32 usedChars = default) + { + UsedChars = usedChars; + } - /// /// Add character /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddChar")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddChar([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar")] char c) + + public unsafe void AddChar( char c) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11158,9 +10701,7 @@ public unsafe void AddChar([NativeName(NativeNameType.Param, "c")] [NativeName(N } } - /// /// Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCIILatin+Ext /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRanges([NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] char* ranges) + public unsafe void AddRanges( char* ranges) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11168,9 +10709,7 @@ public unsafe void AddRanges([NativeName(NativeNameType.Param, "ranges")] [Nativ } } - /// /// Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCIILatin+Ext /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddRanges([NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const ImWchar*")] ref char ranges) + public unsafe void AddRanges( ref char ranges) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11181,9 +10720,7 @@ public unsafe void AddRanges([NativeName(NativeNameType.Param, "ranges")] [Nativ } } - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( byte* text, byte* textEnd) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11191,9 +10728,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeNam } } - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) + public unsafe void AddText( byte* text) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11201,9 +10736,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeNam } } - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( ref byte text, byte* textEnd) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11214,9 +10747,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeNam } } - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) + public unsafe void AddText( ref byte text) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11227,9 +10758,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeNam } } - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void AddText( string text, byte* textEnd) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11258,9 +10787,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeNam } } - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) + public unsafe void AddText( string text) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11289,9 +10816,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeNam } } - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void AddText( byte* text, ref byte textEnd) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11302,9 +10827,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeNam } } - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void AddText( byte* text, string textEnd) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11333,9 +10856,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeNam } } - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void AddText( ref byte text, ref byte textEnd) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11349,9 +10870,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeNam } } - /// /// Add string (each character of the UTF-8 string are added) /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_AddText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void AddText( string text, string textEnd) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11401,9 +10920,7 @@ public unsafe void AddText([NativeName(NativeNameType.Param, "text")] [NativeNam } } - /// /// Output new ranges /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_BuildRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void BuildRanges([NativeName(NativeNameType.Param, "out_ranges")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ImVectorImWchar* outRanges) + public unsafe void BuildRanges( ImVectorImWchar* outRanges) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11411,9 +10928,7 @@ public unsafe void BuildRanges([NativeName(NativeNameType.Param, "out_ranges")] } } - /// /// Output new ranges /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_BuildRanges")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void BuildRanges([NativeName(NativeNameType.Param, "out_ranges")] [NativeName(NativeNameType.Type, "ImVector_ImWchar*")] ref ImVectorImWchar outRanges) + public unsafe void BuildRanges( ref ImVectorImWchar outRanges) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11424,8 +10939,6 @@ public unsafe void BuildRanges([NativeName(NativeNameType.Param, "out_ranges")] } } - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_Clear")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Clear() { fixed (ImFontGlyphRangesBuilder* @this = &this) @@ -11434,8 +10947,6 @@ public unsafe void Clear() } } - [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImFontGlyphRangesBuilder* @this = &this) @@ -11444,9 +10955,16 @@ public unsafe void Destroy() } } - /// /// Get bit n in the array /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_GetBit")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetBit([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "size_t")] nuint n) + public unsafe bool GetBit( ulong n) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + byte ret = ImGui.GetBitNative(@this, n); + return ret != 0; + } + } + + public unsafe bool GetBit( nuint n) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11455,9 +10973,15 @@ public unsafe bool GetBit([NativeName(NativeNameType.Param, "n")] [NativeName(Na } } - /// /// Set bit n in the array /// [NativeName(NativeNameType.Func, "ImFontGlyphRangesBuilder_SetBit")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetBit([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "size_t")] nuint n) + public unsafe void SetBit( ulong n) + { + fixed (ImFontGlyphRangesBuilder* @this = &this) + { + ImGui.SetBitNative(@this, n); + } + } + + public unsafe void SetBit( nuint n) { fixed (ImFontGlyphRangesBuilder* @this = &this) { @@ -11470,54 +10994,54 @@ public unsafe void SetBit([NativeName(NativeNameType.Param, "n")] [NativeName(Na /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImU32")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImU32 { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImU32*")] public unsafe uint* Data; + /// /// To be documented. /// public unsafe ImVectorImU32(int size = default, int capacity = default, uint* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImColor")] [StructLayout(LayoutKind.Sequential)] public partial struct ImColor { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Value")] - [NativeName(NativeNameType.Type, "ImVec4")] public Vector4 Value; + /// /// To be documented. /// public unsafe ImColor(Vector4 value = default) + { + Value = value; + } + - [NativeName(NativeNameType.Func, "ImColor_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImColor* @this = &this) @@ -11526,9 +11050,7 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImColor_HSV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void HSV([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "float")] float a) + public unsafe void HSV( float h, float s, float v, float a) { fixed (ImColor* @this = &this) { @@ -11536,9 +11058,7 @@ public unsafe void HSV([NativeName(NativeNameType.Param, "h")] [NativeName(Nativ } } - [NativeName(NativeNameType.Func, "ImColor_HSV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void HSV([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) + public unsafe void HSV( float h, float s, float v) { fixed (ImColor* @this = &this) { @@ -11546,9 +11066,7 @@ public unsafe void HSV([NativeName(NativeNameType.Param, "h")] [NativeName(Nativ } } - [NativeName(NativeNameType.Func, "ImColor_SetHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetHSV([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v, [NativeName(NativeNameType.Param, "a")] [NativeName(NativeNameType.Type, "float")] float a) + public unsafe void SetHSV( float h, float s, float v, float a) { fixed (ImColor* @this = &this) { @@ -11556,9 +11074,7 @@ public unsafe void SetHSV([NativeName(NativeNameType.Param, "h")] [NativeName(Na } } - [NativeName(NativeNameType.Func, "ImColor_SetHSV")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetHSV([NativeName(NativeNameType.Param, "h")] [NativeName(NativeNameType.Type, "float")] float h, [NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "float")] float s, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) + public unsafe void SetHSV( float h, float s, float v) { fixed (ImColor* @this = &this) { @@ -11571,498 +11087,357 @@ public unsafe void SetHSV([NativeName(NativeNameType.Param, "h")] [NativeName(Na /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiContext")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiContext { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Initialized")] - [NativeName(NativeNameType.Type, "bool")] public byte Initialized; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontAtlasOwnedByContext")] - [NativeName(NativeNameType.Type, "bool")] public byte FontAtlasOwnedByContext; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IO")] - [NativeName(NativeNameType.Type, "ImGuiIO")] public ImGuiIO IO; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformIO")] - [NativeName(NativeNameType.Type, "ImGuiPlatformIO")] public ImGuiPlatformIO PlatformIO; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Style")] - [NativeName(NativeNameType.Type, "ImGuiStyle")] public ImGuiStyle Style; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigFlagsCurrFrame")] - [NativeName(NativeNameType.Type, "ImGuiConfigFlags")] - public ImGuiConfigFlags ConfigFlagsCurrFrame; + public int ConfigFlagsCurrFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigFlagsLastFrame")] - [NativeName(NativeNameType.Type, "ImGuiConfigFlags")] - public ImGuiConfigFlags ConfigFlagsLastFrame; + public int ConfigFlagsLastFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Font")] - [NativeName(NativeNameType.Type, "ImFont*")] public unsafe ImFont* Font; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontSize")] - [NativeName(NativeNameType.Type, "float")] public float FontSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontBaseSize")] - [NativeName(NativeNameType.Type, "float")] public float FontBaseSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawListSharedData")] - [NativeName(NativeNameType.Type, "ImDrawListSharedData")] public ImDrawListSharedData DrawListSharedData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Time")] - [NativeName(NativeNameType.Type, "double")] public double Time; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FrameCount")] - [NativeName(NativeNameType.Type, "int")] public int FrameCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FrameCountEnded")] - [NativeName(NativeNameType.Type, "int")] public int FrameCountEnded; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FrameCountPlatformEnded")] - [NativeName(NativeNameType.Type, "int")] public int FrameCountPlatformEnded; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FrameCountRendered")] - [NativeName(NativeNameType.Type, "int")] public int FrameCountRendered; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WithinFrameScope")] - [NativeName(NativeNameType.Type, "bool")] public byte WithinFrameScope; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WithinFrameScopeWithImplicitWindow")] - [NativeName(NativeNameType.Type, "bool")] public byte WithinFrameScopeWithImplicitWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WithinEndChild")] - [NativeName(NativeNameType.Type, "bool")] public byte WithinEndChild; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GcCompactAll")] - [NativeName(NativeNameType.Type, "bool")] public byte GcCompactAll; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TestEngineHookItems")] - [NativeName(NativeNameType.Type, "bool")] public byte TestEngineHookItems; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TestEngine")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* TestEngine; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputEventsQueue")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiInputEvent")] public ImVectorImGuiInputEvent InputEventsQueue; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputEventsTrail")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiInputEvent")] public ImVectorImGuiInputEvent InputEventsTrail; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputEventsNextMouseSource")] - [NativeName(NativeNameType.Type, "ImGuiMouseSource")] public ImGuiMouseSource InputEventsNextMouseSource; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputEventsNextEventId")] - [NativeName(NativeNameType.Type, "ImU32")] public uint InputEventsNextEventId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Windows")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr")] public ImVectorImGuiWindowPtr Windows; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowsFocusOrder")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr")] public ImVectorImGuiWindowPtr WindowsFocusOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowsTempSortBuffer")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr")] public ImVectorImGuiWindowPtr WindowsTempSortBuffer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentWindowStack")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowStackData")] public ImVectorImGuiWindowStackData CurrentWindowStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowsById")] - [NativeName(NativeNameType.Type, "ImGuiStorage")] public ImGuiStorage WindowsById; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowsActiveCount")] - [NativeName(NativeNameType.Type, "int")] public int WindowsActiveCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowsHoverPadding")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WindowsHoverPadding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* CurrentWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoveredWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* HoveredWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoveredWindowUnderMovingWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* HoveredWindowUnderMovingWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MovingWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* MovingWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WheelingWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* WheelingWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WheelingWindowRefMousePos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WheelingWindowRefMousePos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WheelingWindowStartFrame")] - [NativeName(NativeNameType.Type, "int")] public int WheelingWindowStartFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WheelingWindowReleaseTimer")] - [NativeName(NativeNameType.Type, "float")] public float WheelingWindowReleaseTimer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WheelingWindowWheelRemainder")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WheelingWindowWheelRemainder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WheelingAxisAvg")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WheelingAxisAvg; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugHookIdInfo")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int DebugHookIdInfo; + public uint DebugHookIdInfo; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoveredId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int HoveredId; + public uint HoveredId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoveredIdPreviousFrame")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int HoveredIdPreviousFrame; + public uint HoveredIdPreviousFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoveredIdAllowOverlap")] - [NativeName(NativeNameType.Type, "bool")] public byte HoveredIdAllowOverlap; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoveredIdDisabled")] - [NativeName(NativeNameType.Type, "bool")] public byte HoveredIdDisabled; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoveredIdTimer")] - [NativeName(NativeNameType.Type, "float")] public float HoveredIdTimer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoveredIdNotActiveTimer")] - [NativeName(NativeNameType.Type, "float")] public float HoveredIdNotActiveTimer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ActiveId; + public uint ActiveId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdIsAlive")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ActiveIdIsAlive; + public uint ActiveIdIsAlive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdTimer")] - [NativeName(NativeNameType.Type, "float")] public float ActiveIdTimer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdIsJustActivated")] - [NativeName(NativeNameType.Type, "bool")] public byte ActiveIdIsJustActivated; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdAllowOverlap")] - [NativeName(NativeNameType.Type, "bool")] public byte ActiveIdAllowOverlap; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdNoClearOnFocusLoss")] - [NativeName(NativeNameType.Type, "bool")] public byte ActiveIdNoClearOnFocusLoss; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdHasBeenPressedBefore")] - [NativeName(NativeNameType.Type, "bool")] public byte ActiveIdHasBeenPressedBefore; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdHasBeenEditedBefore")] - [NativeName(NativeNameType.Type, "bool")] public byte ActiveIdHasBeenEditedBefore; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdHasBeenEditedThisFrame")] - [NativeName(NativeNameType.Type, "bool")] public byte ActiveIdHasBeenEditedThisFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdClickOffset")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ActiveIdClickOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* ActiveIdWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdSource")] - [NativeName(NativeNameType.Type, "ImGuiInputSource")] public ImGuiInputSource ActiveIdSource; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdMouseButton")] - [NativeName(NativeNameType.Type, "int")] public int ActiveIdMouseButton; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdPreviousFrame")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ActiveIdPreviousFrame; + public uint ActiveIdPreviousFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdPreviousFrameIsAlive")] - [NativeName(NativeNameType.Type, "bool")] public byte ActiveIdPreviousFrameIsAlive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdPreviousFrameHasBeenEditedBefore")] - [NativeName(NativeNameType.Type, "bool")] public byte ActiveIdPreviousFrameHasBeenEditedBefore; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdPreviousFrameWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* ActiveIdPreviousFrameWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastActiveId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int LastActiveId; + public uint LastActiveId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastActiveIdTimer")] - [NativeName(NativeNameType.Type, "float")] public float LastActiveIdTimer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeysOwnerData")] - [NativeName(NativeNameType.Type, "ImGuiKeyOwnerData[140]")] public ImGuiKeyOwnerData KeysOwnerData_0; public ImGuiKeyOwnerData KeysOwnerData_1; public ImGuiKeyOwnerData KeysOwnerData_2; @@ -12203,684 +11578,519 @@ public partial struct ImGuiContext public ImGuiKeyOwnerData KeysOwnerData_137; public ImGuiKeyOwnerData KeysOwnerData_138; public ImGuiKeyOwnerData KeysOwnerData_139; + public ImGuiKeyOwnerData KeysOwnerData_140; + public ImGuiKeyOwnerData KeysOwnerData_141; + public ImGuiKeyOwnerData KeysOwnerData_142; + public ImGuiKeyOwnerData KeysOwnerData_143; + public ImGuiKeyOwnerData KeysOwnerData_144; + public ImGuiKeyOwnerData KeysOwnerData_145; + public ImGuiKeyOwnerData KeysOwnerData_146; + public ImGuiKeyOwnerData KeysOwnerData_147; + public ImGuiKeyOwnerData KeysOwnerData_148; + public ImGuiKeyOwnerData KeysOwnerData_149; + public ImGuiKeyOwnerData KeysOwnerData_150; + public ImGuiKeyOwnerData KeysOwnerData_151; + public ImGuiKeyOwnerData KeysOwnerData_152; + public ImGuiKeyOwnerData KeysOwnerData_153; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeysRoutingTable")] - [NativeName(NativeNameType.Type, "ImGuiKeyRoutingTable")] public ImGuiKeyRoutingTable KeysRoutingTable; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdUsingNavDirMask")] - [NativeName(NativeNameType.Type, "ImU32")] public uint ActiveIdUsingNavDirMask; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdUsingAllKeyboardKeys")] - [NativeName(NativeNameType.Type, "bool")] public byte ActiveIdUsingAllKeyboardKeys; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ActiveIdUsingNavInputMask")] - [NativeName(NativeNameType.Type, "ImU32")] public uint ActiveIdUsingNavInputMask; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentFocusScopeId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int CurrentFocusScopeId; + public uint CurrentFocusScopeId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentItemFlags")] - [NativeName(NativeNameType.Type, "ImGuiItemFlags")] - public ImGuiItemFlags CurrentItemFlags; + public int CurrentItemFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugLocateId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int DebugLocateId; + public uint DebugLocateId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NextItemData")] - [NativeName(NativeNameType.Type, "ImGuiNextItemData")] public ImGuiNextItemData NextItemData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastItemData")] - [NativeName(NativeNameType.Type, "ImGuiLastItemData")] public ImGuiLastItemData LastItemData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NextWindowData")] - [NativeName(NativeNameType.Type, "ImGuiNextWindowData")] public ImGuiNextWindowData NextWindowData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColorStack")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiColorMod")] + public byte DebugShowGroupRects; + + /// + /// To be documented. + /// public ImVectorImGuiColorMod ColorStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "StyleVarStack")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiStyleMod")] public ImVectorImGuiStyleMod StyleVarStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontStack")] - [NativeName(NativeNameType.Type, "ImVector_ImFontPtr")] public ImVectorImFontPtr FontStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FocusScopeStack")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiID")] public ImVectorImGuiID FocusScopeStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemFlagsStack")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiItemFlags")] public ImVectorImGuiItemFlags ItemFlagsStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GroupStack")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiGroupData")] public ImVectorImGuiGroupData GroupStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OpenPopupStack")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiPopupData")] public ImVectorImGuiPopupData OpenPopupStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BeginPopupStack")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiPopupData")] public ImVectorImGuiPopupData BeginPopupStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BeginMenuCount")] - [NativeName(NativeNameType.Type, "int")] + public ImVectorImGuiNavTreeNodeData NavTreeNodeStack; + + /// + /// To be documented. + /// public int BeginMenuCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Viewports")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiViewportPPtr")] public ImVectorImGuiViewportPPtr Viewports; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentDpiScale")] - [NativeName(NativeNameType.Type, "float")] public float CurrentDpiScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentViewport")] - [NativeName(NativeNameType.Type, "ImGuiViewportP*")] public unsafe ImGuiViewportP* CurrentViewport; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseViewport")] - [NativeName(NativeNameType.Type, "ImGuiViewportP*")] public unsafe ImGuiViewportP* MouseViewport; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseLastHoveredViewport")] - [NativeName(NativeNameType.Type, "ImGuiViewportP*")] public unsafe ImGuiViewportP* MouseLastHoveredViewport; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformLastFocusedViewportId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int PlatformLastFocusedViewportId; + public uint PlatformLastFocusedViewportId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FallbackMonitor")] - [NativeName(NativeNameType.Type, "ImGuiPlatformMonitor")] public ImGuiPlatformMonitor FallbackMonitor; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ViewportCreatedCount")] - [NativeName(NativeNameType.Type, "int")] public int ViewportCreatedCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformWindowsCreatedCount")] - [NativeName(NativeNameType.Type, "int")] public int PlatformWindowsCreatedCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ViewportFocusedStampCount")] - [NativeName(NativeNameType.Type, "int")] public int ViewportFocusedStampCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* NavWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int NavId; + public uint NavId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavFocusScopeId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int NavFocusScopeId; + public uint NavFocusScopeId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavActivateId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int NavActivateId; + public uint NavActivateId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavActivateDownId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int NavActivateDownId; + public uint NavActivateDownId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavActivatePressedId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int NavActivatePressedId; + public uint NavActivatePressedId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavActivateFlags")] - [NativeName(NativeNameType.Type, "ImGuiActivateFlags")] - public ImGuiActivateFlags NavActivateFlags; + public int NavActivateFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavJustMovedToId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int NavJustMovedToId; + public uint NavJustMovedToId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavJustMovedToFocusScopeId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int NavJustMovedToFocusScopeId; + public uint NavJustMovedToFocusScopeId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavJustMovedToKeyMods")] - [NativeName(NativeNameType.Type, "ImGuiKeyChord")] public int NavJustMovedToKeyMods; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavNextActivateId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int NavNextActivateId; + public uint NavNextActivateId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavNextActivateFlags")] - [NativeName(NativeNameType.Type, "ImGuiActivateFlags")] - public ImGuiActivateFlags NavNextActivateFlags; + public int NavNextActivateFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavInputSource")] - [NativeName(NativeNameType.Type, "ImGuiInputSource")] public ImGuiInputSource NavInputSource; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavLayer")] - [NativeName(NativeNameType.Type, "ImGuiNavLayer")] public ImGuiNavLayer NavLayer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavIdIsAlive")] - [NativeName(NativeNameType.Type, "bool")] + public ImGuiSelectionUserData NavLastValidSelectionUserData; + + /// + /// To be documented. + /// public byte NavIdIsAlive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMousePosDirty")] - [NativeName(NativeNameType.Type, "bool")] public byte NavMousePosDirty; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavDisableHighlight")] - [NativeName(NativeNameType.Type, "bool")] public byte NavDisableHighlight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavDisableMouseHover")] - [NativeName(NativeNameType.Type, "bool")] public byte NavDisableMouseHover; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavAnyRequest")] - [NativeName(NativeNameType.Type, "bool")] public byte NavAnyRequest; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavInitRequest")] - [NativeName(NativeNameType.Type, "bool")] public byte NavInitRequest; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavInitRequestFromMove")] - [NativeName(NativeNameType.Type, "bool")] public byte NavInitRequestFromMove; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavInitResult")] - [NativeName(NativeNameType.Type, "ImGuiNavItemData")] public ImGuiNavItemData NavInitResult; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveSubmitted")] - [NativeName(NativeNameType.Type, "bool")] public byte NavMoveSubmitted; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveScoringItems")] - [NativeName(NativeNameType.Type, "bool")] public byte NavMoveScoringItems; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveForwardToNextFrame")] - [NativeName(NativeNameType.Type, "bool")] public byte NavMoveForwardToNextFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveFlags")] - [NativeName(NativeNameType.Type, "ImGuiNavMoveFlags")] - public ImGuiNavMoveFlags NavMoveFlags; + public int NavMoveFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveScrollFlags")] - [NativeName(NativeNameType.Type, "ImGuiScrollFlags")] - public ImGuiScrollFlags NavMoveScrollFlags; + public int NavMoveScrollFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveKeyMods")] - [NativeName(NativeNameType.Type, "ImGuiKeyChord")] public int NavMoveKeyMods; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveDir")] - [NativeName(NativeNameType.Type, "ImGuiDir")] - public ImGuiDir NavMoveDir; + public int NavMoveDir; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveDirForDebug")] - [NativeName(NativeNameType.Type, "ImGuiDir")] - public ImGuiDir NavMoveDirForDebug; + public int NavMoveDirForDebug; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveClipDir")] - [NativeName(NativeNameType.Type, "ImGuiDir")] - public ImGuiDir NavMoveClipDir; + public int NavMoveClipDir; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavScoringRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect NavScoringRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavScoringNoClipRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect NavScoringNoClipRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavScoringDebugCount")] - [NativeName(NativeNameType.Type, "int")] public int NavScoringDebugCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavTabbingDir")] - [NativeName(NativeNameType.Type, "int")] public int NavTabbingDir; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavTabbingCounter")] - [NativeName(NativeNameType.Type, "int")] public int NavTabbingCounter; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveResultLocal")] - [NativeName(NativeNameType.Type, "ImGuiNavItemData")] public ImGuiNavItemData NavMoveResultLocal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveResultLocalVisible")] - [NativeName(NativeNameType.Type, "ImGuiNavItemData")] public ImGuiNavItemData NavMoveResultLocalVisible; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavMoveResultOther")] - [NativeName(NativeNameType.Type, "ImGuiNavItemData")] public ImGuiNavItemData NavMoveResultOther; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavTabbingResultFirst")] - [NativeName(NativeNameType.Type, "ImGuiNavItemData")] public ImGuiNavItemData NavTabbingResultFirst; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigNavWindowingKeyNext")] - [NativeName(NativeNameType.Type, "ImGuiKeyChord")] public int ConfigNavWindowingKeyNext; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigNavWindowingKeyPrev")] - [NativeName(NativeNameType.Type, "ImGuiKeyChord")] public int ConfigNavWindowingKeyPrev; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavWindowingTarget")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* NavWindowingTarget; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavWindowingTargetAnim")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* NavWindowingTargetAnim; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavWindowingListWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* NavWindowingListWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavWindowingTimer")] - [NativeName(NativeNameType.Type, "float")] public float NavWindowingTimer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavWindowingHighlightAlpha")] - [NativeName(NativeNameType.Type, "float")] public float NavWindowingHighlightAlpha; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavWindowingToggleLayer")] - [NativeName(NativeNameType.Type, "bool")] public byte NavWindowingToggleLayer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavWindowingAccumDeltaPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 NavWindowingAccumDeltaPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavWindowingAccumDeltaSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 NavWindowingAccumDeltaSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DimBgRatio")] - [NativeName(NativeNameType.Type, "float")] public float DimBgRatio; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropActive")] - [NativeName(NativeNameType.Type, "bool")] public byte DragDropActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropWithinSource")] - [NativeName(NativeNameType.Type, "bool")] public byte DragDropWithinSource; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropWithinTarget")] - [NativeName(NativeNameType.Type, "bool")] public byte DragDropWithinTarget; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropSourceFlags")] - [NativeName(NativeNameType.Type, "ImGuiDragDropFlags")] - public ImGuiDragDropFlags DragDropSourceFlags; + public int DragDropSourceFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropSourceFrameCount")] - [NativeName(NativeNameType.Type, "int")] public int DragDropSourceFrameCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropMouseButton")] - [NativeName(NativeNameType.Type, "int")] public int DragDropMouseButton; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropPayload")] - [NativeName(NativeNameType.Type, "ImGuiPayload")] public ImGuiPayload DragDropPayload; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropTargetRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect DragDropTargetRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropTargetId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int DragDropTargetId; + public uint DragDropTargetId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropAcceptFlags")] - [NativeName(NativeNameType.Type, "ImGuiDragDropFlags")] - public ImGuiDragDropFlags DragDropAcceptFlags; + public int DragDropAcceptFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropAcceptIdCurrRectSurface")] - [NativeName(NativeNameType.Type, "float")] public float DragDropAcceptIdCurrRectSurface; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropAcceptIdCurr")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int DragDropAcceptIdCurr; + public uint DragDropAcceptIdCurr; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropAcceptIdPrev")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int DragDropAcceptIdPrev; + public uint DragDropAcceptIdPrev; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropAcceptFrameCount")] - [NativeName(NativeNameType.Type, "int")] public int DragDropAcceptFrameCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropHoldJustPressedId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int DragDropHoldJustPressedId; + public uint DragDropHoldJustPressedId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropPayloadBufHeap")] - [NativeName(NativeNameType.Type, "ImVector_unsigned_char")] public ImVectorUnsignedChar DragDropPayloadBufHeap; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragDropPayloadBufLocal")] - [NativeName(NativeNameType.Type, "unsigned char[16]")] public byte DragDropPayloadBufLocal_0; public byte DragDropPayloadBufLocal_1; public byte DragDropPayloadBufLocal_2; @@ -12901,421 +12111,306 @@ public partial struct ImGuiContext /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClipperTempDataStacked")] - [NativeName(NativeNameType.Type, "int")] public int ClipperTempDataStacked; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClipperTempData")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiListClipperData")] public ImVectorImGuiListClipperData ClipperTempData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentTable")] - [NativeName(NativeNameType.Type, "ImGuiTable*")] public unsafe ImGuiTable* CurrentTable; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TablesTempDataStacked")] - [NativeName(NativeNameType.Type, "int")] public int TablesTempDataStacked; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TablesTempData")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiTableTempData")] public ImVectorImGuiTableTempData TablesTempData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Tables")] - [NativeName(NativeNameType.Type, "ImPool_ImGuiTable")] public ImPoolImGuiTable Tables; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TablesLastTimeActive")] - [NativeName(NativeNameType.Type, "ImVector_float")] public ImVectorFloat TablesLastTimeActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawChannelsTempMergeBuffer")] - [NativeName(NativeNameType.Type, "ImVector_ImDrawChannel")] public ImVectorImDrawChannel DrawChannelsTempMergeBuffer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentTabBar")] - [NativeName(NativeNameType.Type, "ImGuiTabBar*")] public unsafe ImGuiTabBar* CurrentTabBar; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TabBars")] - [NativeName(NativeNameType.Type, "ImPool_ImGuiTabBar")] public ImPoolImGuiTabBar TabBars; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentTabBarStack")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiPtrOrIndex")] public ImVectorImGuiPtrOrIndex CurrentTabBarStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShrinkWidthBuffer")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiShrinkWidthItem")] public ImVectorImGuiShrinkWidthItem ShrinkWidthBuffer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoverItemDelayId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int HoverItemDelayId; + public uint HoverItemDelayId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoverItemDelayIdPreviousFrame")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int HoverItemDelayIdPreviousFrame; + public uint HoverItemDelayIdPreviousFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoverItemDelayTimer")] - [NativeName(NativeNameType.Type, "float")] public float HoverItemDelayTimer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoverItemDelayClearTimer")] - [NativeName(NativeNameType.Type, "float")] public float HoverItemDelayClearTimer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoverItemUnlockedStationaryId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int HoverItemUnlockedStationaryId; + public uint HoverItemUnlockedStationaryId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoverWindowUnlockedStationaryId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int HoverWindowUnlockedStationaryId; + public uint HoverWindowUnlockedStationaryId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseCursor")] - [NativeName(NativeNameType.Type, "ImGuiMouseCursor")] - public ImGuiMouseCursor MouseCursor; + public int MouseCursor; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseStationaryTimer")] - [NativeName(NativeNameType.Type, "float")] public float MouseStationaryTimer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseLastValidPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 MouseLastValidPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputTextState")] - [NativeName(NativeNameType.Type, "ImGuiInputTextState")] public ImGuiInputTextState InputTextState; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputTextDeactivatedState")] - [NativeName(NativeNameType.Type, "ImGuiInputTextDeactivatedState")] public ImGuiInputTextDeactivatedState InputTextDeactivatedState; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputTextPasswordFont")] - [NativeName(NativeNameType.Type, "ImFont")] public ImFont InputTextPasswordFont; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TempInputId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int TempInputId; + public uint TempInputId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColorEditOptions")] - [NativeName(NativeNameType.Type, "ImGuiColorEditFlags")] - public ImGuiColorEditFlags ColorEditOptions; + public int ColorEditOptions; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColorEditCurrentID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ColorEditCurrentID; + public uint ColorEditCurrentID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColorEditSavedID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ColorEditSavedID; + public uint ColorEditSavedID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColorEditSavedHue")] - [NativeName(NativeNameType.Type, "float")] public float ColorEditSavedHue; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColorEditSavedSat")] - [NativeName(NativeNameType.Type, "float")] public float ColorEditSavedSat; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColorEditSavedColor")] - [NativeName(NativeNameType.Type, "ImU32")] public uint ColorEditSavedColor; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColorPickerRef")] - [NativeName(NativeNameType.Type, "ImVec4")] public Vector4 ColorPickerRef; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ComboPreviewData")] - [NativeName(NativeNameType.Type, "ImGuiComboPreviewData")] public ImGuiComboPreviewData ComboPreviewData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SliderGrabClickOffset")] - [NativeName(NativeNameType.Type, "float")] public float SliderGrabClickOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SliderCurrentAccum")] - [NativeName(NativeNameType.Type, "float")] public float SliderCurrentAccum; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SliderCurrentAccumDirty")] - [NativeName(NativeNameType.Type, "bool")] public byte SliderCurrentAccumDirty; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragCurrentAccumDirty")] - [NativeName(NativeNameType.Type, "bool")] public byte DragCurrentAccumDirty; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragCurrentAccum")] - [NativeName(NativeNameType.Type, "float")] public float DragCurrentAccum; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DragSpeedDefaultRatio")] - [NativeName(NativeNameType.Type, "float")] public float DragSpeedDefaultRatio; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollbarClickDeltaToGrabCenter")] - [NativeName(NativeNameType.Type, "float")] public float ScrollbarClickDeltaToGrabCenter; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisabledAlphaBackup")] - [NativeName(NativeNameType.Type, "float")] public float DisabledAlphaBackup; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisabledStackSize")] - [NativeName(NativeNameType.Type, "short")] public short DisabledStackSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TooltipOverrideCount")] - [NativeName(NativeNameType.Type, "short")] + public short LockMarkEdited; + + /// + /// To be documented. + /// public short TooltipOverrideCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClipboardHandlerData")] - [NativeName(NativeNameType.Type, "ImVector_char")] public ImVectorChar ClipboardHandlerData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MenusIdSubmittedThisFrame")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiID")] public ImVectorImGuiID MenusIdSubmittedThisFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformImeData")] - [NativeName(NativeNameType.Type, "ImGuiPlatformImeData")] - public ImGuiPlatformImeData PlatformImeData; + public ImGuiTypingSelectState TypingSelectState; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformImeDataPrev")] - [NativeName(NativeNameType.Type, "ImGuiPlatformImeData")] - public ImGuiPlatformImeData PlatformImeDataPrev; + public ImGuiPlatformImeData PlatformImeData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformImeViewport")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int PlatformImeViewport; + public ImGuiPlatformImeData PlatformImeDataPrev; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformLocaleDecimalPoint")] - [NativeName(NativeNameType.Type, "char")] - public byte PlatformLocaleDecimalPoint; + public uint PlatformImeViewport; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockContext")] - [NativeName(NativeNameType.Type, "ImGuiDockContext")] public ImGuiDockContext DockContext; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockNodeWindowMenuHandler")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar)*")] public unsafe void* DockNodeWindowMenuHandler; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SettingsLoaded")] - [NativeName(NativeNameType.Type, "bool")] public byte SettingsLoaded; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SettingsDirtyTimer")] - [NativeName(NativeNameType.Type, "float")] public float SettingsDirtyTimer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SettingsIniData")] - [NativeName(NativeNameType.Type, "ImGuiTextBuffer")] public ImGuiTextBuffer SettingsIniData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SettingsHandlers")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiSettingsHandler")] public ImVectorImGuiSettingsHandler SettingsHandlers; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SettingsWindows")] - [NativeName(NativeNameType.Type, "ImChunkStream_ImGuiWindowSettings")] public ImChunkStreamImGuiWindowSettings SettingsWindows; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SettingsTables")] - [NativeName(NativeNameType.Type, "ImChunkStream_ImGuiTableSettings")] public ImChunkStreamImGuiTableSettings SettingsTables; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Hooks")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiContextHook")] public ImVectorImGuiContextHook Hooks; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HookIdNext")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int HookIdNext; + public uint HookIdNext; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LocalizationTable")] - [NativeName(NativeNameType.Type, "const char*[9]")] public unsafe byte* LocalizationTable_0; public unsafe byte* LocalizationTable_1; public unsafe byte* LocalizationTable_2; @@ -13325,173 +12420,132 @@ public partial struct ImGuiContext public unsafe byte* LocalizationTable_6; public unsafe byte* LocalizationTable_7; public unsafe byte* LocalizationTable_8; + public unsafe byte* LocalizationTable_9; + public unsafe byte* LocalizationTable_10; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogEnabled")] - [NativeName(NativeNameType.Type, "bool")] public byte LogEnabled; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogType")] - [NativeName(NativeNameType.Type, "ImGuiLogType")] public ImGuiLogType LogType; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogFile")] - [NativeName(NativeNameType.Type, "ImFileHandle")] public ImFileHandle LogFile; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogBuffer")] - [NativeName(NativeNameType.Type, "ImGuiTextBuffer")] public ImGuiTextBuffer LogBuffer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogNextPrefix")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* LogNextPrefix; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogNextSuffix")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* LogNextSuffix; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogLinePosY")] - [NativeName(NativeNameType.Type, "float")] public float LogLinePosY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogLineFirstItem")] - [NativeName(NativeNameType.Type, "bool")] public byte LogLineFirstItem; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogDepthRef")] - [NativeName(NativeNameType.Type, "int")] public int LogDepthRef; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogDepthToExpand")] - [NativeName(NativeNameType.Type, "int")] public int LogDepthToExpand; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogDepthToExpandDefault")] - [NativeName(NativeNameType.Type, "int")] public int LogDepthToExpandDefault; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugLogFlags")] - [NativeName(NativeNameType.Type, "ImGuiDebugLogFlags")] - public ImGuiDebugLogFlags DebugLogFlags; + public int DebugLogFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugLogBuf")] - [NativeName(NativeNameType.Type, "ImGuiTextBuffer")] public ImGuiTextBuffer DebugLogBuf; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugLogIndex")] - [NativeName(NativeNameType.Type, "ImGuiTextIndex")] public ImGuiTextIndex DebugLogIndex; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugLogClipperAutoDisableFrames")] - [NativeName(NativeNameType.Type, "ImU8")] public byte DebugLogClipperAutoDisableFrames; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugLocateFrames")] - [NativeName(NativeNameType.Type, "ImU8")] public byte DebugLocateFrames; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugBeginReturnValueCullDepth")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte DebugBeginReturnValueCullDepth; + public byte DebugBeginReturnValueCullDepth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugItemPickerActive")] - [NativeName(NativeNameType.Type, "bool")] public byte DebugItemPickerActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugItemPickerMouseButton")] - [NativeName(NativeNameType.Type, "ImU8")] public byte DebugItemPickerMouseButton; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugItemPickerBreakId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int DebugItemPickerBreakId; + public uint DebugItemPickerBreakId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugMetricsConfig")] - [NativeName(NativeNameType.Type, "ImGuiMetricsConfig")] public ImGuiMetricsConfig DebugMetricsConfig; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugStackTool")] - [NativeName(NativeNameType.Type, "ImGuiStackTool")] - public ImGuiStackTool DebugStackTool; + public ImGuiIDStackTool DebugIDStackTool; + + /// + /// To be documented. + /// + public ImGuiDebugAllocInfo DebugAllocInfo; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DebugHoveredDockNode")] - [NativeName(NativeNameType.Type, "ImGuiDockNode*")] public unsafe ImGuiDockNode* DebugHoveredDockNode; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FramerateSecPerFrame")] - [NativeName(NativeNameType.Type, "float[60]")] public float FramerateSecPerFrame_0; public float FramerateSecPerFrame_1; public float FramerateSecPerFrame_2; @@ -13556,53 +12610,1070 @@ public partial struct ImGuiContext /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FramerateSecPerFrameIdx")] - [NativeName(NativeNameType.Type, "int")] public int FramerateSecPerFrameIdx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FramerateSecPerFrameCount")] - [NativeName(NativeNameType.Type, "int")] public int FramerateSecPerFrameCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FramerateSecPerFrameAccum")] - [NativeName(NativeNameType.Type, "float")] public float FramerateSecPerFrameAccum; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantCaptureMouseNextFrame")] - [NativeName(NativeNameType.Type, "int")] public int WantCaptureMouseNextFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantCaptureKeyboardNextFrame")] - [NativeName(NativeNameType.Type, "int")] public int WantCaptureKeyboardNextFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantTextInputNextFrame")] - [NativeName(NativeNameType.Type, "int")] public int WantTextInputNextFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TempBuffer")] - [NativeName(NativeNameType.Type, "ImVector_char")] public ImVectorChar TempBuffer; + /// /// To be documented. /// public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImGuiStyle style = default, int configFlagsCurrFrame = default, int configFlagsLastFrame = default, ImFont* font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVectorImGuiInputEvent inputEventsQueue = default, ImVectorImGuiInputEvent inputEventsTrail = default, ImGuiMouseSource inputEventsNextMouseSource = default, uint inputEventsNextEventId = default, ImVectorImGuiWindowPtr windows = default, ImVectorImGuiWindowPtr windowsFocusOrder = default, ImVectorImGuiWindowPtr windowsTempSortBuffer = default, ImVectorImGuiWindowStackData currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, int wheelingWindowStartFrame = default, float wheelingWindowReleaseTimer = default, Vector2 wheelingWindowWheelRemainder = default, Vector2 wheelingAxisAvg = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, ImGuiKeyOwnerData* keysOwnerData = default, ImGuiKeyRoutingTable keysRoutingTable = default, uint activeIdUsingNavDirMask = default, bool activeIdUsingAllKeyboardKeys = default, uint activeIdUsingNavInputMask = default, uint currentFocusScopeId = default, int currentItemFlags = default, uint debugLocateId = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, bool debugShowGroupRects = default, ImVectorImGuiColorMod colorStack = default, ImVectorImGuiStyleMod styleVarStack = default, ImVectorImFontPtr fontStack = default, ImVectorImGuiID focusScopeStack = default, ImVectorImGuiItemFlags itemFlagsStack = default, ImVectorImGuiGroupData groupStack = default, ImVectorImGuiPopupData openPopupStack = default, ImVectorImGuiPopupData beginPopupStack = default, ImVectorImGuiNavTreeNodeData navTreeNodeStack = default, int beginMenuCount = default, ImVectorImGuiViewportPPtr viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportCreatedCount = default, int platformWindowsCreatedCount = default, int viewportFocusedStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, int navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, int navJustMovedToKeyMods = default, uint navNextActivateId = default, int navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, ImGuiSelectionUserData navLastValidSelectionUserData = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, ImGuiNavItemData navInitResult = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, int navMoveFlags = default, int navMoveScrollFlags = default, int navMoveKeyMods = default, int navMoveDir = default, int navMoveDirForDebug = default, int navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, int configNavWindowingKeyNext = default, int configNavWindowingKeyPrev = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, Vector2 navWindowingAccumDeltaPos = default, Vector2 navWindowingAccumDeltaSize = default, float dimBgRatio = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, int dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, int dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVectorUnsignedChar dragDropPayloadBufHeap = default, byte* dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVectorImGuiListClipperData clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVectorImGuiTableTempData tablesTempData = default, ImPoolImGuiTable tables = default, ImVectorFloat tablesLastTimeActive = default, ImVectorImDrawChannel drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVectorImGuiPtrOrIndex currentTabBarStack = default, ImVectorImGuiShrinkWidthItem shrinkWidthBuffer = default, uint hoverItemDelayId = default, uint hoverItemDelayIdPreviousFrame = default, float hoverItemDelayTimer = default, float hoverItemDelayClearTimer = default, uint hoverItemUnlockedStationaryId = default, uint hoverWindowUnlockedStationaryId = default, int mouseCursor = default, float mouseStationaryTimer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImGuiInputTextDeactivatedState inputTextDeactivatedState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, int colorEditOptions = default, uint colorEditCurrentId = default, uint colorEditSavedId = default, float colorEditSavedHue = default, float colorEditSavedSat = default, uint colorEditSavedColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short lockMarkEdited = default, short tooltipOverrideCount = default, ImVectorChar clipboardHandlerData = default, ImVectorImGuiID menusIdSubmittedThisFrame = default, ImGuiTypingSelectState typingSelectState = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, ImGuiDockContext dockContext = default, delegate* dockNodeWindowMenuHandler = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVectorImGuiSettingsHandler settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVectorImGuiContextHook hooks = default, uint hookIdNext = default, byte** localizationTable = default, bool logEnabled = default, ImGuiLogType logType = default, ImFileHandle logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, int debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, ImGuiTextIndex debugLogIndex = default, byte debugLogClipperAutoDisableFrames = default, byte debugLocateFrames = default, byte debugBeginReturnValueCullDepth = default, bool debugItemPickerActive = default, byte debugItemPickerMouseButton = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiIDStackTool debugIdStackTool = default, ImGuiDebugAllocInfo debugAllocInfo = default, ImGuiDockNode* debugHoveredDockNode = default, float* framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVectorChar tempBuffer = default) + { + Initialized = initialized ? (byte)1 : (byte)0; + FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; + IO = io; + PlatformIO = platformIo; + Style = style; + ConfigFlagsCurrFrame = configFlagsCurrFrame; + ConfigFlagsLastFrame = configFlagsLastFrame; + Font = font; + FontSize = fontSize; + FontBaseSize = fontBaseSize; + DrawListSharedData = drawListSharedData; + Time = time; + FrameCount = frameCount; + FrameCountEnded = frameCountEnded; + FrameCountPlatformEnded = frameCountPlatformEnded; + FrameCountRendered = frameCountRendered; + WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; + WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; + WithinEndChild = withinEndChild ? (byte)1 : (byte)0; + GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; + TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; + TestEngine = testEngine; + InputEventsQueue = inputEventsQueue; + InputEventsTrail = inputEventsTrail; + InputEventsNextMouseSource = inputEventsNextMouseSource; + InputEventsNextEventId = inputEventsNextEventId; + Windows = windows; + WindowsFocusOrder = windowsFocusOrder; + WindowsTempSortBuffer = windowsTempSortBuffer; + CurrentWindowStack = currentWindowStack; + WindowsById = windowsById; + WindowsActiveCount = windowsActiveCount; + WindowsHoverPadding = windowsHoverPadding; + CurrentWindow = currentWindow; + HoveredWindow = hoveredWindow; + HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; + MovingWindow = movingWindow; + WheelingWindow = wheelingWindow; + WheelingWindowRefMousePos = wheelingWindowRefMousePos; + WheelingWindowStartFrame = wheelingWindowStartFrame; + WheelingWindowReleaseTimer = wheelingWindowReleaseTimer; + WheelingWindowWheelRemainder = wheelingWindowWheelRemainder; + WheelingAxisAvg = wheelingAxisAvg; + DebugHookIdInfo = debugHookIdInfo; + HoveredId = hoveredId; + HoveredIdPreviousFrame = hoveredIdPreviousFrame; + HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; + HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; + HoveredIdTimer = hoveredIdTimer; + HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; + ActiveId = activeId; + ActiveIdIsAlive = activeIdIsAlive; + ActiveIdTimer = activeIdTimer; + ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; + ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; + ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; + ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; + ActiveIdClickOffset = activeIdClickOffset; + ActiveIdWindow = activeIdWindow; + ActiveIdSource = activeIdSource; + ActiveIdMouseButton = activeIdMouseButton; + ActiveIdPreviousFrame = activeIdPreviousFrame; + ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; + LastActiveId = lastActiveId; + LastActiveIdTimer = lastActiveIdTimer; + if (keysOwnerData != default) + { + KeysOwnerData_0 = keysOwnerData[0]; + KeysOwnerData_1 = keysOwnerData[1]; + KeysOwnerData_2 = keysOwnerData[2]; + KeysOwnerData_3 = keysOwnerData[3]; + KeysOwnerData_4 = keysOwnerData[4]; + KeysOwnerData_5 = keysOwnerData[5]; + KeysOwnerData_6 = keysOwnerData[6]; + KeysOwnerData_7 = keysOwnerData[7]; + KeysOwnerData_8 = keysOwnerData[8]; + KeysOwnerData_9 = keysOwnerData[9]; + KeysOwnerData_10 = keysOwnerData[10]; + KeysOwnerData_11 = keysOwnerData[11]; + KeysOwnerData_12 = keysOwnerData[12]; + KeysOwnerData_13 = keysOwnerData[13]; + KeysOwnerData_14 = keysOwnerData[14]; + KeysOwnerData_15 = keysOwnerData[15]; + KeysOwnerData_16 = keysOwnerData[16]; + KeysOwnerData_17 = keysOwnerData[17]; + KeysOwnerData_18 = keysOwnerData[18]; + KeysOwnerData_19 = keysOwnerData[19]; + KeysOwnerData_20 = keysOwnerData[20]; + KeysOwnerData_21 = keysOwnerData[21]; + KeysOwnerData_22 = keysOwnerData[22]; + KeysOwnerData_23 = keysOwnerData[23]; + KeysOwnerData_24 = keysOwnerData[24]; + KeysOwnerData_25 = keysOwnerData[25]; + KeysOwnerData_26 = keysOwnerData[26]; + KeysOwnerData_27 = keysOwnerData[27]; + KeysOwnerData_28 = keysOwnerData[28]; + KeysOwnerData_29 = keysOwnerData[29]; + KeysOwnerData_30 = keysOwnerData[30]; + KeysOwnerData_31 = keysOwnerData[31]; + KeysOwnerData_32 = keysOwnerData[32]; + KeysOwnerData_33 = keysOwnerData[33]; + KeysOwnerData_34 = keysOwnerData[34]; + KeysOwnerData_35 = keysOwnerData[35]; + KeysOwnerData_36 = keysOwnerData[36]; + KeysOwnerData_37 = keysOwnerData[37]; + KeysOwnerData_38 = keysOwnerData[38]; + KeysOwnerData_39 = keysOwnerData[39]; + KeysOwnerData_40 = keysOwnerData[40]; + KeysOwnerData_41 = keysOwnerData[41]; + KeysOwnerData_42 = keysOwnerData[42]; + KeysOwnerData_43 = keysOwnerData[43]; + KeysOwnerData_44 = keysOwnerData[44]; + KeysOwnerData_45 = keysOwnerData[45]; + KeysOwnerData_46 = keysOwnerData[46]; + KeysOwnerData_47 = keysOwnerData[47]; + KeysOwnerData_48 = keysOwnerData[48]; + KeysOwnerData_49 = keysOwnerData[49]; + KeysOwnerData_50 = keysOwnerData[50]; + KeysOwnerData_51 = keysOwnerData[51]; + KeysOwnerData_52 = keysOwnerData[52]; + KeysOwnerData_53 = keysOwnerData[53]; + KeysOwnerData_54 = keysOwnerData[54]; + KeysOwnerData_55 = keysOwnerData[55]; + KeysOwnerData_56 = keysOwnerData[56]; + KeysOwnerData_57 = keysOwnerData[57]; + KeysOwnerData_58 = keysOwnerData[58]; + KeysOwnerData_59 = keysOwnerData[59]; + KeysOwnerData_60 = keysOwnerData[60]; + KeysOwnerData_61 = keysOwnerData[61]; + KeysOwnerData_62 = keysOwnerData[62]; + KeysOwnerData_63 = keysOwnerData[63]; + KeysOwnerData_64 = keysOwnerData[64]; + KeysOwnerData_65 = keysOwnerData[65]; + KeysOwnerData_66 = keysOwnerData[66]; + KeysOwnerData_67 = keysOwnerData[67]; + KeysOwnerData_68 = keysOwnerData[68]; + KeysOwnerData_69 = keysOwnerData[69]; + KeysOwnerData_70 = keysOwnerData[70]; + KeysOwnerData_71 = keysOwnerData[71]; + KeysOwnerData_72 = keysOwnerData[72]; + KeysOwnerData_73 = keysOwnerData[73]; + KeysOwnerData_74 = keysOwnerData[74]; + KeysOwnerData_75 = keysOwnerData[75]; + KeysOwnerData_76 = keysOwnerData[76]; + KeysOwnerData_77 = keysOwnerData[77]; + KeysOwnerData_78 = keysOwnerData[78]; + KeysOwnerData_79 = keysOwnerData[79]; + KeysOwnerData_80 = keysOwnerData[80]; + KeysOwnerData_81 = keysOwnerData[81]; + KeysOwnerData_82 = keysOwnerData[82]; + KeysOwnerData_83 = keysOwnerData[83]; + KeysOwnerData_84 = keysOwnerData[84]; + KeysOwnerData_85 = keysOwnerData[85]; + KeysOwnerData_86 = keysOwnerData[86]; + KeysOwnerData_87 = keysOwnerData[87]; + KeysOwnerData_88 = keysOwnerData[88]; + KeysOwnerData_89 = keysOwnerData[89]; + KeysOwnerData_90 = keysOwnerData[90]; + KeysOwnerData_91 = keysOwnerData[91]; + KeysOwnerData_92 = keysOwnerData[92]; + KeysOwnerData_93 = keysOwnerData[93]; + KeysOwnerData_94 = keysOwnerData[94]; + KeysOwnerData_95 = keysOwnerData[95]; + KeysOwnerData_96 = keysOwnerData[96]; + KeysOwnerData_97 = keysOwnerData[97]; + KeysOwnerData_98 = keysOwnerData[98]; + KeysOwnerData_99 = keysOwnerData[99]; + KeysOwnerData_100 = keysOwnerData[100]; + KeysOwnerData_101 = keysOwnerData[101]; + KeysOwnerData_102 = keysOwnerData[102]; + KeysOwnerData_103 = keysOwnerData[103]; + KeysOwnerData_104 = keysOwnerData[104]; + KeysOwnerData_105 = keysOwnerData[105]; + KeysOwnerData_106 = keysOwnerData[106]; + KeysOwnerData_107 = keysOwnerData[107]; + KeysOwnerData_108 = keysOwnerData[108]; + KeysOwnerData_109 = keysOwnerData[109]; + KeysOwnerData_110 = keysOwnerData[110]; + KeysOwnerData_111 = keysOwnerData[111]; + KeysOwnerData_112 = keysOwnerData[112]; + KeysOwnerData_113 = keysOwnerData[113]; + KeysOwnerData_114 = keysOwnerData[114]; + KeysOwnerData_115 = keysOwnerData[115]; + KeysOwnerData_116 = keysOwnerData[116]; + KeysOwnerData_117 = keysOwnerData[117]; + KeysOwnerData_118 = keysOwnerData[118]; + KeysOwnerData_119 = keysOwnerData[119]; + KeysOwnerData_120 = keysOwnerData[120]; + KeysOwnerData_121 = keysOwnerData[121]; + KeysOwnerData_122 = keysOwnerData[122]; + KeysOwnerData_123 = keysOwnerData[123]; + KeysOwnerData_124 = keysOwnerData[124]; + KeysOwnerData_125 = keysOwnerData[125]; + KeysOwnerData_126 = keysOwnerData[126]; + KeysOwnerData_127 = keysOwnerData[127]; + KeysOwnerData_128 = keysOwnerData[128]; + KeysOwnerData_129 = keysOwnerData[129]; + KeysOwnerData_130 = keysOwnerData[130]; + KeysOwnerData_131 = keysOwnerData[131]; + KeysOwnerData_132 = keysOwnerData[132]; + KeysOwnerData_133 = keysOwnerData[133]; + KeysOwnerData_134 = keysOwnerData[134]; + KeysOwnerData_135 = keysOwnerData[135]; + KeysOwnerData_136 = keysOwnerData[136]; + KeysOwnerData_137 = keysOwnerData[137]; + KeysOwnerData_138 = keysOwnerData[138]; + KeysOwnerData_139 = keysOwnerData[139]; + KeysOwnerData_140 = keysOwnerData[140]; + KeysOwnerData_141 = keysOwnerData[141]; + KeysOwnerData_142 = keysOwnerData[142]; + KeysOwnerData_143 = keysOwnerData[143]; + KeysOwnerData_144 = keysOwnerData[144]; + KeysOwnerData_145 = keysOwnerData[145]; + KeysOwnerData_146 = keysOwnerData[146]; + KeysOwnerData_147 = keysOwnerData[147]; + KeysOwnerData_148 = keysOwnerData[148]; + KeysOwnerData_149 = keysOwnerData[149]; + KeysOwnerData_150 = keysOwnerData[150]; + KeysOwnerData_151 = keysOwnerData[151]; + KeysOwnerData_152 = keysOwnerData[152]; + KeysOwnerData_153 = keysOwnerData[153]; + } + KeysRoutingTable = keysRoutingTable; + ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; + ActiveIdUsingAllKeyboardKeys = activeIdUsingAllKeyboardKeys ? (byte)1 : (byte)0; + ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; + CurrentFocusScopeId = currentFocusScopeId; + CurrentItemFlags = currentItemFlags; + DebugLocateId = debugLocateId; + NextItemData = nextItemData; + LastItemData = lastItemData; + NextWindowData = nextWindowData; + DebugShowGroupRects = debugShowGroupRects ? (byte)1 : (byte)0; + ColorStack = colorStack; + StyleVarStack = styleVarStack; + FontStack = fontStack; + FocusScopeStack = focusScopeStack; + ItemFlagsStack = itemFlagsStack; + GroupStack = groupStack; + OpenPopupStack = openPopupStack; + BeginPopupStack = beginPopupStack; + NavTreeNodeStack = navTreeNodeStack; + BeginMenuCount = beginMenuCount; + Viewports = viewports; + CurrentDpiScale = currentDpiScale; + CurrentViewport = currentViewport; + MouseViewport = mouseViewport; + MouseLastHoveredViewport = mouseLastHoveredViewport; + PlatformLastFocusedViewportId = platformLastFocusedViewportId; + FallbackMonitor = fallbackMonitor; + ViewportCreatedCount = viewportCreatedCount; + PlatformWindowsCreatedCount = platformWindowsCreatedCount; + ViewportFocusedStampCount = viewportFocusedStampCount; + NavWindow = navWindow; + NavId = navId; + NavFocusScopeId = navFocusScopeId; + NavActivateId = navActivateId; + NavActivateDownId = navActivateDownId; + NavActivatePressedId = navActivatePressedId; + NavActivateFlags = navActivateFlags; + NavJustMovedToId = navJustMovedToId; + NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; + NavJustMovedToKeyMods = navJustMovedToKeyMods; + NavNextActivateId = navNextActivateId; + NavNextActivateFlags = navNextActivateFlags; + NavInputSource = navInputSource; + NavLayer = navLayer; + NavLastValidSelectionUserData = navLastValidSelectionUserData; + NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; + NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; + NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; + NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; + NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; + NavInitRequest = navInitRequest ? (byte)1 : (byte)0; + NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; + NavInitResult = navInitResult; + NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; + NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; + NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; + NavMoveFlags = navMoveFlags; + NavMoveScrollFlags = navMoveScrollFlags; + NavMoveKeyMods = navMoveKeyMods; + NavMoveDir = navMoveDir; + NavMoveDirForDebug = navMoveDirForDebug; + NavMoveClipDir = navMoveClipDir; + NavScoringRect = navScoringRect; + NavScoringNoClipRect = navScoringNoClipRect; + NavScoringDebugCount = navScoringDebugCount; + NavTabbingDir = navTabbingDir; + NavTabbingCounter = navTabbingCounter; + NavMoveResultLocal = navMoveResultLocal; + NavMoveResultLocalVisible = navMoveResultLocalVisible; + NavMoveResultOther = navMoveResultOther; + NavTabbingResultFirst = navTabbingResultFirst; + ConfigNavWindowingKeyNext = configNavWindowingKeyNext; + ConfigNavWindowingKeyPrev = configNavWindowingKeyPrev; + NavWindowingTarget = navWindowingTarget; + NavWindowingTargetAnim = navWindowingTargetAnim; + NavWindowingListWindow = navWindowingListWindow; + NavWindowingTimer = navWindowingTimer; + NavWindowingHighlightAlpha = navWindowingHighlightAlpha; + NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; + NavWindowingAccumDeltaPos = navWindowingAccumDeltaPos; + NavWindowingAccumDeltaSize = navWindowingAccumDeltaSize; + DimBgRatio = dimBgRatio; + DragDropActive = dragDropActive ? (byte)1 : (byte)0; + DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; + DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; + DragDropSourceFlags = dragDropSourceFlags; + DragDropSourceFrameCount = dragDropSourceFrameCount; + DragDropMouseButton = dragDropMouseButton; + DragDropPayload = dragDropPayload; + DragDropTargetRect = dragDropTargetRect; + DragDropTargetId = dragDropTargetId; + DragDropAcceptFlags = dragDropAcceptFlags; + DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; + DragDropAcceptIdCurr = dragDropAcceptIdCurr; + DragDropAcceptIdPrev = dragDropAcceptIdPrev; + DragDropAcceptFrameCount = dragDropAcceptFrameCount; + DragDropHoldJustPressedId = dragDropHoldJustPressedId; + DragDropPayloadBufHeap = dragDropPayloadBufHeap; + if (dragDropPayloadBufLocal != default) + { + DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; + DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; + DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; + DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; + DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; + DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; + DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; + DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; + DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; + DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; + DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; + DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; + DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; + DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; + DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; + DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; + } + ClipperTempDataStacked = clipperTempDataStacked; + ClipperTempData = clipperTempData; + CurrentTable = currentTable; + TablesTempDataStacked = tablesTempDataStacked; + TablesTempData = tablesTempData; + Tables = tables; + TablesLastTimeActive = tablesLastTimeActive; + DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; + CurrentTabBar = currentTabBar; + TabBars = tabBars; + CurrentTabBarStack = currentTabBarStack; + ShrinkWidthBuffer = shrinkWidthBuffer; + HoverItemDelayId = hoverItemDelayId; + HoverItemDelayIdPreviousFrame = hoverItemDelayIdPreviousFrame; + HoverItemDelayTimer = hoverItemDelayTimer; + HoverItemDelayClearTimer = hoverItemDelayClearTimer; + HoverItemUnlockedStationaryId = hoverItemUnlockedStationaryId; + HoverWindowUnlockedStationaryId = hoverWindowUnlockedStationaryId; + MouseCursor = mouseCursor; + MouseStationaryTimer = mouseStationaryTimer; + MouseLastValidPos = mouseLastValidPos; + InputTextState = inputTextState; + InputTextDeactivatedState = inputTextDeactivatedState; + InputTextPasswordFont = inputTextPasswordFont; + TempInputId = tempInputId; + ColorEditOptions = colorEditOptions; + ColorEditCurrentID = colorEditCurrentId; + ColorEditSavedID = colorEditSavedId; + ColorEditSavedHue = colorEditSavedHue; + ColorEditSavedSat = colorEditSavedSat; + ColorEditSavedColor = colorEditSavedColor; + ColorPickerRef = colorPickerRef; + ComboPreviewData = comboPreviewData; + SliderGrabClickOffset = sliderGrabClickOffset; + SliderCurrentAccum = sliderCurrentAccum; + SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccum = dragCurrentAccum; + DragSpeedDefaultRatio = dragSpeedDefaultRatio; + ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; + DisabledAlphaBackup = disabledAlphaBackup; + DisabledStackSize = disabledStackSize; + LockMarkEdited = lockMarkEdited; + TooltipOverrideCount = tooltipOverrideCount; + ClipboardHandlerData = clipboardHandlerData; + MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; + TypingSelectState = typingSelectState; + PlatformImeData = platformImeData; + PlatformImeDataPrev = platformImeDataPrev; + PlatformImeViewport = platformImeViewport; + DockContext = dockContext; + DockNodeWindowMenuHandler = (void*)dockNodeWindowMenuHandler; + SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; + SettingsDirtyTimer = settingsDirtyTimer; + SettingsIniData = settingsIniData; + SettingsHandlers = settingsHandlers; + SettingsWindows = settingsWindows; + SettingsTables = settingsTables; + Hooks = hooks; + HookIdNext = hookIdNext; + if (localizationTable != default) + { + LocalizationTable_0 = localizationTable[0]; + LocalizationTable_1 = localizationTable[1]; + LocalizationTable_2 = localizationTable[2]; + LocalizationTable_3 = localizationTable[3]; + LocalizationTable_4 = localizationTable[4]; + LocalizationTable_5 = localizationTable[5]; + LocalizationTable_6 = localizationTable[6]; + LocalizationTable_7 = localizationTable[7]; + LocalizationTable_8 = localizationTable[8]; + LocalizationTable_9 = localizationTable[9]; + LocalizationTable_10 = localizationTable[10]; + } + LogEnabled = logEnabled ? (byte)1 : (byte)0; + LogType = logType; + LogFile = logFile; + LogBuffer = logBuffer; + LogNextPrefix = logNextPrefix; + LogNextSuffix = logNextSuffix; + LogLinePosY = logLinePosY; + LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; + LogDepthRef = logDepthRef; + LogDepthToExpand = logDepthToExpand; + LogDepthToExpandDefault = logDepthToExpandDefault; + DebugLogFlags = debugLogFlags; + DebugLogBuf = debugLogBuf; + DebugLogIndex = debugLogIndex; + DebugLogClipperAutoDisableFrames = debugLogClipperAutoDisableFrames; + DebugLocateFrames = debugLocateFrames; + DebugBeginReturnValueCullDepth = debugBeginReturnValueCullDepth; + DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; + DebugItemPickerMouseButton = debugItemPickerMouseButton; + DebugItemPickerBreakId = debugItemPickerBreakId; + DebugMetricsConfig = debugMetricsConfig; + DebugIDStackTool = debugIdStackTool; + DebugAllocInfo = debugAllocInfo; + DebugHoveredDockNode = debugHoveredDockNode; + if (framerateSecPerFrame != default) + { + FramerateSecPerFrame_0 = framerateSecPerFrame[0]; + FramerateSecPerFrame_1 = framerateSecPerFrame[1]; + FramerateSecPerFrame_2 = framerateSecPerFrame[2]; + FramerateSecPerFrame_3 = framerateSecPerFrame[3]; + FramerateSecPerFrame_4 = framerateSecPerFrame[4]; + FramerateSecPerFrame_5 = framerateSecPerFrame[5]; + FramerateSecPerFrame_6 = framerateSecPerFrame[6]; + FramerateSecPerFrame_7 = framerateSecPerFrame[7]; + FramerateSecPerFrame_8 = framerateSecPerFrame[8]; + FramerateSecPerFrame_9 = framerateSecPerFrame[9]; + FramerateSecPerFrame_10 = framerateSecPerFrame[10]; + FramerateSecPerFrame_11 = framerateSecPerFrame[11]; + FramerateSecPerFrame_12 = framerateSecPerFrame[12]; + FramerateSecPerFrame_13 = framerateSecPerFrame[13]; + FramerateSecPerFrame_14 = framerateSecPerFrame[14]; + FramerateSecPerFrame_15 = framerateSecPerFrame[15]; + FramerateSecPerFrame_16 = framerateSecPerFrame[16]; + FramerateSecPerFrame_17 = framerateSecPerFrame[17]; + FramerateSecPerFrame_18 = framerateSecPerFrame[18]; + FramerateSecPerFrame_19 = framerateSecPerFrame[19]; + FramerateSecPerFrame_20 = framerateSecPerFrame[20]; + FramerateSecPerFrame_21 = framerateSecPerFrame[21]; + FramerateSecPerFrame_22 = framerateSecPerFrame[22]; + FramerateSecPerFrame_23 = framerateSecPerFrame[23]; + FramerateSecPerFrame_24 = framerateSecPerFrame[24]; + FramerateSecPerFrame_25 = framerateSecPerFrame[25]; + FramerateSecPerFrame_26 = framerateSecPerFrame[26]; + FramerateSecPerFrame_27 = framerateSecPerFrame[27]; + FramerateSecPerFrame_28 = framerateSecPerFrame[28]; + FramerateSecPerFrame_29 = framerateSecPerFrame[29]; + FramerateSecPerFrame_30 = framerateSecPerFrame[30]; + FramerateSecPerFrame_31 = framerateSecPerFrame[31]; + FramerateSecPerFrame_32 = framerateSecPerFrame[32]; + FramerateSecPerFrame_33 = framerateSecPerFrame[33]; + FramerateSecPerFrame_34 = framerateSecPerFrame[34]; + FramerateSecPerFrame_35 = framerateSecPerFrame[35]; + FramerateSecPerFrame_36 = framerateSecPerFrame[36]; + FramerateSecPerFrame_37 = framerateSecPerFrame[37]; + FramerateSecPerFrame_38 = framerateSecPerFrame[38]; + FramerateSecPerFrame_39 = framerateSecPerFrame[39]; + FramerateSecPerFrame_40 = framerateSecPerFrame[40]; + FramerateSecPerFrame_41 = framerateSecPerFrame[41]; + FramerateSecPerFrame_42 = framerateSecPerFrame[42]; + FramerateSecPerFrame_43 = framerateSecPerFrame[43]; + FramerateSecPerFrame_44 = framerateSecPerFrame[44]; + FramerateSecPerFrame_45 = framerateSecPerFrame[45]; + FramerateSecPerFrame_46 = framerateSecPerFrame[46]; + FramerateSecPerFrame_47 = framerateSecPerFrame[47]; + FramerateSecPerFrame_48 = framerateSecPerFrame[48]; + FramerateSecPerFrame_49 = framerateSecPerFrame[49]; + FramerateSecPerFrame_50 = framerateSecPerFrame[50]; + FramerateSecPerFrame_51 = framerateSecPerFrame[51]; + FramerateSecPerFrame_52 = framerateSecPerFrame[52]; + FramerateSecPerFrame_53 = framerateSecPerFrame[53]; + FramerateSecPerFrame_54 = framerateSecPerFrame[54]; + FramerateSecPerFrame_55 = framerateSecPerFrame[55]; + FramerateSecPerFrame_56 = framerateSecPerFrame[56]; + FramerateSecPerFrame_57 = framerateSecPerFrame[57]; + FramerateSecPerFrame_58 = framerateSecPerFrame[58]; + FramerateSecPerFrame_59 = framerateSecPerFrame[59]; + } + FramerateSecPerFrameIdx = framerateSecPerFrameIdx; + FramerateSecPerFrameCount = framerateSecPerFrameCount; + FramerateSecPerFrameAccum = framerateSecPerFrameAccum; + WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; + WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; + WantTextInputNextFrame = wantTextInputNextFrame; + TempBuffer = tempBuffer; + } + + /// /// To be documented. /// public unsafe ImGuiContext(bool initialized = default, bool fontAtlasOwnedByContext = default, ImGuiIO io = default, ImGuiPlatformIO platformIo = default, ImGuiStyle style = default, int configFlagsCurrFrame = default, int configFlagsLastFrame = default, ImFont* font = default, float fontSize = default, float fontBaseSize = default, ImDrawListSharedData drawListSharedData = default, double time = default, int frameCount = default, int frameCountEnded = default, int frameCountPlatformEnded = default, int frameCountRendered = default, bool withinFrameScope = default, bool withinFrameScopeWithImplicitWindow = default, bool withinEndChild = default, bool gcCompactAll = default, bool testEngineHookItems = default, void* testEngine = default, ImVectorImGuiInputEvent inputEventsQueue = default, ImVectorImGuiInputEvent inputEventsTrail = default, ImGuiMouseSource inputEventsNextMouseSource = default, uint inputEventsNextEventId = default, ImVectorImGuiWindowPtr windows = default, ImVectorImGuiWindowPtr windowsFocusOrder = default, ImVectorImGuiWindowPtr windowsTempSortBuffer = default, ImVectorImGuiWindowStackData currentWindowStack = default, ImGuiStorage windowsById = default, int windowsActiveCount = default, Vector2 windowsHoverPadding = default, ImGuiWindow* currentWindow = default, ImGuiWindow* hoveredWindow = default, ImGuiWindow* hoveredWindowUnderMovingWindow = default, ImGuiWindow* movingWindow = default, ImGuiWindow* wheelingWindow = default, Vector2 wheelingWindowRefMousePos = default, int wheelingWindowStartFrame = default, float wheelingWindowReleaseTimer = default, Vector2 wheelingWindowWheelRemainder = default, Vector2 wheelingAxisAvg = default, uint debugHookIdInfo = default, uint hoveredId = default, uint hoveredIdPreviousFrame = default, bool hoveredIdAllowOverlap = default, bool hoveredIdDisabled = default, float hoveredIdTimer = default, float hoveredIdNotActiveTimer = default, uint activeId = default, uint activeIdIsAlive = default, float activeIdTimer = default, bool activeIdIsJustActivated = default, bool activeIdAllowOverlap = default, bool activeIdNoClearOnFocusLoss = default, bool activeIdHasBeenPressedBefore = default, bool activeIdHasBeenEditedBefore = default, bool activeIdHasBeenEditedThisFrame = default, Vector2 activeIdClickOffset = default, ImGuiWindow* activeIdWindow = default, ImGuiInputSource activeIdSource = default, int activeIdMouseButton = default, uint activeIdPreviousFrame = default, bool activeIdPreviousFrameIsAlive = default, bool activeIdPreviousFrameHasBeenEditedBefore = default, ImGuiWindow* activeIdPreviousFrameWindow = default, uint lastActiveId = default, float lastActiveIdTimer = default, Span keysOwnerData = default, ImGuiKeyRoutingTable keysRoutingTable = default, uint activeIdUsingNavDirMask = default, bool activeIdUsingAllKeyboardKeys = default, uint activeIdUsingNavInputMask = default, uint currentFocusScopeId = default, int currentItemFlags = default, uint debugLocateId = default, ImGuiNextItemData nextItemData = default, ImGuiLastItemData lastItemData = default, ImGuiNextWindowData nextWindowData = default, bool debugShowGroupRects = default, ImVectorImGuiColorMod colorStack = default, ImVectorImGuiStyleMod styleVarStack = default, ImVectorImFontPtr fontStack = default, ImVectorImGuiID focusScopeStack = default, ImVectorImGuiItemFlags itemFlagsStack = default, ImVectorImGuiGroupData groupStack = default, ImVectorImGuiPopupData openPopupStack = default, ImVectorImGuiPopupData beginPopupStack = default, ImVectorImGuiNavTreeNodeData navTreeNodeStack = default, int beginMenuCount = default, ImVectorImGuiViewportPPtr viewports = default, float currentDpiScale = default, ImGuiViewportP* currentViewport = default, ImGuiViewportP* mouseViewport = default, ImGuiViewportP* mouseLastHoveredViewport = default, uint platformLastFocusedViewportId = default, ImGuiPlatformMonitor fallbackMonitor = default, int viewportCreatedCount = default, int platformWindowsCreatedCount = default, int viewportFocusedStampCount = default, ImGuiWindow* navWindow = default, uint navId = default, uint navFocusScopeId = default, uint navActivateId = default, uint navActivateDownId = default, uint navActivatePressedId = default, int navActivateFlags = default, uint navJustMovedToId = default, uint navJustMovedToFocusScopeId = default, int navJustMovedToKeyMods = default, uint navNextActivateId = default, int navNextActivateFlags = default, ImGuiInputSource navInputSource = default, ImGuiNavLayer navLayer = default, ImGuiSelectionUserData navLastValidSelectionUserData = default, bool navIdIsAlive = default, bool navMousePosDirty = default, bool navDisableHighlight = default, bool navDisableMouseHover = default, bool navAnyRequest = default, bool navInitRequest = default, bool navInitRequestFromMove = default, ImGuiNavItemData navInitResult = default, bool navMoveSubmitted = default, bool navMoveScoringItems = default, bool navMoveForwardToNextFrame = default, int navMoveFlags = default, int navMoveScrollFlags = default, int navMoveKeyMods = default, int navMoveDir = default, int navMoveDirForDebug = default, int navMoveClipDir = default, ImRect navScoringRect = default, ImRect navScoringNoClipRect = default, int navScoringDebugCount = default, int navTabbingDir = default, int navTabbingCounter = default, ImGuiNavItemData navMoveResultLocal = default, ImGuiNavItemData navMoveResultLocalVisible = default, ImGuiNavItemData navMoveResultOther = default, ImGuiNavItemData navTabbingResultFirst = default, int configNavWindowingKeyNext = default, int configNavWindowingKeyPrev = default, ImGuiWindow* navWindowingTarget = default, ImGuiWindow* navWindowingTargetAnim = default, ImGuiWindow* navWindowingListWindow = default, float navWindowingTimer = default, float navWindowingHighlightAlpha = default, bool navWindowingToggleLayer = default, Vector2 navWindowingAccumDeltaPos = default, Vector2 navWindowingAccumDeltaSize = default, float dimBgRatio = default, bool dragDropActive = default, bool dragDropWithinSource = default, bool dragDropWithinTarget = default, int dragDropSourceFlags = default, int dragDropSourceFrameCount = default, int dragDropMouseButton = default, ImGuiPayload dragDropPayload = default, ImRect dragDropTargetRect = default, uint dragDropTargetId = default, int dragDropAcceptFlags = default, float dragDropAcceptIdCurrRectSurface = default, uint dragDropAcceptIdCurr = default, uint dragDropAcceptIdPrev = default, int dragDropAcceptFrameCount = default, uint dragDropHoldJustPressedId = default, ImVectorUnsignedChar dragDropPayloadBufHeap = default, Span dragDropPayloadBufLocal = default, int clipperTempDataStacked = default, ImVectorImGuiListClipperData clipperTempData = default, ImGuiTable* currentTable = default, int tablesTempDataStacked = default, ImVectorImGuiTableTempData tablesTempData = default, ImPoolImGuiTable tables = default, ImVectorFloat tablesLastTimeActive = default, ImVectorImDrawChannel drawChannelsTempMergeBuffer = default, ImGuiTabBar* currentTabBar = default, ImPoolImGuiTabBar tabBars = default, ImVectorImGuiPtrOrIndex currentTabBarStack = default, ImVectorImGuiShrinkWidthItem shrinkWidthBuffer = default, uint hoverItemDelayId = default, uint hoverItemDelayIdPreviousFrame = default, float hoverItemDelayTimer = default, float hoverItemDelayClearTimer = default, uint hoverItemUnlockedStationaryId = default, uint hoverWindowUnlockedStationaryId = default, int mouseCursor = default, float mouseStationaryTimer = default, Vector2 mouseLastValidPos = default, ImGuiInputTextState inputTextState = default, ImGuiInputTextDeactivatedState inputTextDeactivatedState = default, ImFont inputTextPasswordFont = default, uint tempInputId = default, int colorEditOptions = default, uint colorEditCurrentId = default, uint colorEditSavedId = default, float colorEditSavedHue = default, float colorEditSavedSat = default, uint colorEditSavedColor = default, Vector4 colorPickerRef = default, ImGuiComboPreviewData comboPreviewData = default, float sliderGrabClickOffset = default, float sliderCurrentAccum = default, bool sliderCurrentAccumDirty = default, bool dragCurrentAccumDirty = default, float dragCurrentAccum = default, float dragSpeedDefaultRatio = default, float scrollbarClickDeltaToGrabCenter = default, float disabledAlphaBackup = default, short disabledStackSize = default, short lockMarkEdited = default, short tooltipOverrideCount = default, ImVectorChar clipboardHandlerData = default, ImVectorImGuiID menusIdSubmittedThisFrame = default, ImGuiTypingSelectState typingSelectState = default, ImGuiPlatformImeData platformImeData = default, ImGuiPlatformImeData platformImeDataPrev = default, uint platformImeViewport = default, ImGuiDockContext dockContext = default, delegate* dockNodeWindowMenuHandler = default, bool settingsLoaded = default, float settingsDirtyTimer = default, ImGuiTextBuffer settingsIniData = default, ImVectorImGuiSettingsHandler settingsHandlers = default, ImChunkStreamImGuiWindowSettings settingsWindows = default, ImChunkStreamImGuiTableSettings settingsTables = default, ImVectorImGuiContextHook hooks = default, uint hookIdNext = default, Span> localizationTable = default, bool logEnabled = default, ImGuiLogType logType = default, ImFileHandle logFile = default, ImGuiTextBuffer logBuffer = default, byte* logNextPrefix = default, byte* logNextSuffix = default, float logLinePosY = default, bool logLineFirstItem = default, int logDepthRef = default, int logDepthToExpand = default, int logDepthToExpandDefault = default, int debugLogFlags = default, ImGuiTextBuffer debugLogBuf = default, ImGuiTextIndex debugLogIndex = default, byte debugLogClipperAutoDisableFrames = default, byte debugLocateFrames = default, byte debugBeginReturnValueCullDepth = default, bool debugItemPickerActive = default, byte debugItemPickerMouseButton = default, uint debugItemPickerBreakId = default, ImGuiMetricsConfig debugMetricsConfig = default, ImGuiIDStackTool debugIdStackTool = default, ImGuiDebugAllocInfo debugAllocInfo = default, ImGuiDockNode* debugHoveredDockNode = default, Span framerateSecPerFrame = default, int framerateSecPerFrameIdx = default, int framerateSecPerFrameCount = default, float framerateSecPerFrameAccum = default, int wantCaptureMouseNextFrame = default, int wantCaptureKeyboardNextFrame = default, int wantTextInputNextFrame = default, ImVectorChar tempBuffer = default) + { + Initialized = initialized ? (byte)1 : (byte)0; + FontAtlasOwnedByContext = fontAtlasOwnedByContext ? (byte)1 : (byte)0; + IO = io; + PlatformIO = platformIo; + Style = style; + ConfigFlagsCurrFrame = configFlagsCurrFrame; + ConfigFlagsLastFrame = configFlagsLastFrame; + Font = font; + FontSize = fontSize; + FontBaseSize = fontBaseSize; + DrawListSharedData = drawListSharedData; + Time = time; + FrameCount = frameCount; + FrameCountEnded = frameCountEnded; + FrameCountPlatformEnded = frameCountPlatformEnded; + FrameCountRendered = frameCountRendered; + WithinFrameScope = withinFrameScope ? (byte)1 : (byte)0; + WithinFrameScopeWithImplicitWindow = withinFrameScopeWithImplicitWindow ? (byte)1 : (byte)0; + WithinEndChild = withinEndChild ? (byte)1 : (byte)0; + GcCompactAll = gcCompactAll ? (byte)1 : (byte)0; + TestEngineHookItems = testEngineHookItems ? (byte)1 : (byte)0; + TestEngine = testEngine; + InputEventsQueue = inputEventsQueue; + InputEventsTrail = inputEventsTrail; + InputEventsNextMouseSource = inputEventsNextMouseSource; + InputEventsNextEventId = inputEventsNextEventId; + Windows = windows; + WindowsFocusOrder = windowsFocusOrder; + WindowsTempSortBuffer = windowsTempSortBuffer; + CurrentWindowStack = currentWindowStack; + WindowsById = windowsById; + WindowsActiveCount = windowsActiveCount; + WindowsHoverPadding = windowsHoverPadding; + CurrentWindow = currentWindow; + HoveredWindow = hoveredWindow; + HoveredWindowUnderMovingWindow = hoveredWindowUnderMovingWindow; + MovingWindow = movingWindow; + WheelingWindow = wheelingWindow; + WheelingWindowRefMousePos = wheelingWindowRefMousePos; + WheelingWindowStartFrame = wheelingWindowStartFrame; + WheelingWindowReleaseTimer = wheelingWindowReleaseTimer; + WheelingWindowWheelRemainder = wheelingWindowWheelRemainder; + WheelingAxisAvg = wheelingAxisAvg; + DebugHookIdInfo = debugHookIdInfo; + HoveredId = hoveredId; + HoveredIdPreviousFrame = hoveredIdPreviousFrame; + HoveredIdAllowOverlap = hoveredIdAllowOverlap ? (byte)1 : (byte)0; + HoveredIdDisabled = hoveredIdDisabled ? (byte)1 : (byte)0; + HoveredIdTimer = hoveredIdTimer; + HoveredIdNotActiveTimer = hoveredIdNotActiveTimer; + ActiveId = activeId; + ActiveIdIsAlive = activeIdIsAlive; + ActiveIdTimer = activeIdTimer; + ActiveIdIsJustActivated = activeIdIsJustActivated ? (byte)1 : (byte)0; + ActiveIdAllowOverlap = activeIdAllowOverlap ? (byte)1 : (byte)0; + ActiveIdNoClearOnFocusLoss = activeIdNoClearOnFocusLoss ? (byte)1 : (byte)0; + ActiveIdHasBeenPressedBefore = activeIdHasBeenPressedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedBefore = activeIdHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdHasBeenEditedThisFrame = activeIdHasBeenEditedThisFrame ? (byte)1 : (byte)0; + ActiveIdClickOffset = activeIdClickOffset; + ActiveIdWindow = activeIdWindow; + ActiveIdSource = activeIdSource; + ActiveIdMouseButton = activeIdMouseButton; + ActiveIdPreviousFrame = activeIdPreviousFrame; + ActiveIdPreviousFrameIsAlive = activeIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + ActiveIdPreviousFrameHasBeenEditedBefore = activeIdPreviousFrameHasBeenEditedBefore ? (byte)1 : (byte)0; + ActiveIdPreviousFrameWindow = activeIdPreviousFrameWindow; + LastActiveId = lastActiveId; + LastActiveIdTimer = lastActiveIdTimer; + if (keysOwnerData != default) + { + KeysOwnerData_0 = keysOwnerData[0]; + KeysOwnerData_1 = keysOwnerData[1]; + KeysOwnerData_2 = keysOwnerData[2]; + KeysOwnerData_3 = keysOwnerData[3]; + KeysOwnerData_4 = keysOwnerData[4]; + KeysOwnerData_5 = keysOwnerData[5]; + KeysOwnerData_6 = keysOwnerData[6]; + KeysOwnerData_7 = keysOwnerData[7]; + KeysOwnerData_8 = keysOwnerData[8]; + KeysOwnerData_9 = keysOwnerData[9]; + KeysOwnerData_10 = keysOwnerData[10]; + KeysOwnerData_11 = keysOwnerData[11]; + KeysOwnerData_12 = keysOwnerData[12]; + KeysOwnerData_13 = keysOwnerData[13]; + KeysOwnerData_14 = keysOwnerData[14]; + KeysOwnerData_15 = keysOwnerData[15]; + KeysOwnerData_16 = keysOwnerData[16]; + KeysOwnerData_17 = keysOwnerData[17]; + KeysOwnerData_18 = keysOwnerData[18]; + KeysOwnerData_19 = keysOwnerData[19]; + KeysOwnerData_20 = keysOwnerData[20]; + KeysOwnerData_21 = keysOwnerData[21]; + KeysOwnerData_22 = keysOwnerData[22]; + KeysOwnerData_23 = keysOwnerData[23]; + KeysOwnerData_24 = keysOwnerData[24]; + KeysOwnerData_25 = keysOwnerData[25]; + KeysOwnerData_26 = keysOwnerData[26]; + KeysOwnerData_27 = keysOwnerData[27]; + KeysOwnerData_28 = keysOwnerData[28]; + KeysOwnerData_29 = keysOwnerData[29]; + KeysOwnerData_30 = keysOwnerData[30]; + KeysOwnerData_31 = keysOwnerData[31]; + KeysOwnerData_32 = keysOwnerData[32]; + KeysOwnerData_33 = keysOwnerData[33]; + KeysOwnerData_34 = keysOwnerData[34]; + KeysOwnerData_35 = keysOwnerData[35]; + KeysOwnerData_36 = keysOwnerData[36]; + KeysOwnerData_37 = keysOwnerData[37]; + KeysOwnerData_38 = keysOwnerData[38]; + KeysOwnerData_39 = keysOwnerData[39]; + KeysOwnerData_40 = keysOwnerData[40]; + KeysOwnerData_41 = keysOwnerData[41]; + KeysOwnerData_42 = keysOwnerData[42]; + KeysOwnerData_43 = keysOwnerData[43]; + KeysOwnerData_44 = keysOwnerData[44]; + KeysOwnerData_45 = keysOwnerData[45]; + KeysOwnerData_46 = keysOwnerData[46]; + KeysOwnerData_47 = keysOwnerData[47]; + KeysOwnerData_48 = keysOwnerData[48]; + KeysOwnerData_49 = keysOwnerData[49]; + KeysOwnerData_50 = keysOwnerData[50]; + KeysOwnerData_51 = keysOwnerData[51]; + KeysOwnerData_52 = keysOwnerData[52]; + KeysOwnerData_53 = keysOwnerData[53]; + KeysOwnerData_54 = keysOwnerData[54]; + KeysOwnerData_55 = keysOwnerData[55]; + KeysOwnerData_56 = keysOwnerData[56]; + KeysOwnerData_57 = keysOwnerData[57]; + KeysOwnerData_58 = keysOwnerData[58]; + KeysOwnerData_59 = keysOwnerData[59]; + KeysOwnerData_60 = keysOwnerData[60]; + KeysOwnerData_61 = keysOwnerData[61]; + KeysOwnerData_62 = keysOwnerData[62]; + KeysOwnerData_63 = keysOwnerData[63]; + KeysOwnerData_64 = keysOwnerData[64]; + KeysOwnerData_65 = keysOwnerData[65]; + KeysOwnerData_66 = keysOwnerData[66]; + KeysOwnerData_67 = keysOwnerData[67]; + KeysOwnerData_68 = keysOwnerData[68]; + KeysOwnerData_69 = keysOwnerData[69]; + KeysOwnerData_70 = keysOwnerData[70]; + KeysOwnerData_71 = keysOwnerData[71]; + KeysOwnerData_72 = keysOwnerData[72]; + KeysOwnerData_73 = keysOwnerData[73]; + KeysOwnerData_74 = keysOwnerData[74]; + KeysOwnerData_75 = keysOwnerData[75]; + KeysOwnerData_76 = keysOwnerData[76]; + KeysOwnerData_77 = keysOwnerData[77]; + KeysOwnerData_78 = keysOwnerData[78]; + KeysOwnerData_79 = keysOwnerData[79]; + KeysOwnerData_80 = keysOwnerData[80]; + KeysOwnerData_81 = keysOwnerData[81]; + KeysOwnerData_82 = keysOwnerData[82]; + KeysOwnerData_83 = keysOwnerData[83]; + KeysOwnerData_84 = keysOwnerData[84]; + KeysOwnerData_85 = keysOwnerData[85]; + KeysOwnerData_86 = keysOwnerData[86]; + KeysOwnerData_87 = keysOwnerData[87]; + KeysOwnerData_88 = keysOwnerData[88]; + KeysOwnerData_89 = keysOwnerData[89]; + KeysOwnerData_90 = keysOwnerData[90]; + KeysOwnerData_91 = keysOwnerData[91]; + KeysOwnerData_92 = keysOwnerData[92]; + KeysOwnerData_93 = keysOwnerData[93]; + KeysOwnerData_94 = keysOwnerData[94]; + KeysOwnerData_95 = keysOwnerData[95]; + KeysOwnerData_96 = keysOwnerData[96]; + KeysOwnerData_97 = keysOwnerData[97]; + KeysOwnerData_98 = keysOwnerData[98]; + KeysOwnerData_99 = keysOwnerData[99]; + KeysOwnerData_100 = keysOwnerData[100]; + KeysOwnerData_101 = keysOwnerData[101]; + KeysOwnerData_102 = keysOwnerData[102]; + KeysOwnerData_103 = keysOwnerData[103]; + KeysOwnerData_104 = keysOwnerData[104]; + KeysOwnerData_105 = keysOwnerData[105]; + KeysOwnerData_106 = keysOwnerData[106]; + KeysOwnerData_107 = keysOwnerData[107]; + KeysOwnerData_108 = keysOwnerData[108]; + KeysOwnerData_109 = keysOwnerData[109]; + KeysOwnerData_110 = keysOwnerData[110]; + KeysOwnerData_111 = keysOwnerData[111]; + KeysOwnerData_112 = keysOwnerData[112]; + KeysOwnerData_113 = keysOwnerData[113]; + KeysOwnerData_114 = keysOwnerData[114]; + KeysOwnerData_115 = keysOwnerData[115]; + KeysOwnerData_116 = keysOwnerData[116]; + KeysOwnerData_117 = keysOwnerData[117]; + KeysOwnerData_118 = keysOwnerData[118]; + KeysOwnerData_119 = keysOwnerData[119]; + KeysOwnerData_120 = keysOwnerData[120]; + KeysOwnerData_121 = keysOwnerData[121]; + KeysOwnerData_122 = keysOwnerData[122]; + KeysOwnerData_123 = keysOwnerData[123]; + KeysOwnerData_124 = keysOwnerData[124]; + KeysOwnerData_125 = keysOwnerData[125]; + KeysOwnerData_126 = keysOwnerData[126]; + KeysOwnerData_127 = keysOwnerData[127]; + KeysOwnerData_128 = keysOwnerData[128]; + KeysOwnerData_129 = keysOwnerData[129]; + KeysOwnerData_130 = keysOwnerData[130]; + KeysOwnerData_131 = keysOwnerData[131]; + KeysOwnerData_132 = keysOwnerData[132]; + KeysOwnerData_133 = keysOwnerData[133]; + KeysOwnerData_134 = keysOwnerData[134]; + KeysOwnerData_135 = keysOwnerData[135]; + KeysOwnerData_136 = keysOwnerData[136]; + KeysOwnerData_137 = keysOwnerData[137]; + KeysOwnerData_138 = keysOwnerData[138]; + KeysOwnerData_139 = keysOwnerData[139]; + KeysOwnerData_140 = keysOwnerData[140]; + KeysOwnerData_141 = keysOwnerData[141]; + KeysOwnerData_142 = keysOwnerData[142]; + KeysOwnerData_143 = keysOwnerData[143]; + KeysOwnerData_144 = keysOwnerData[144]; + KeysOwnerData_145 = keysOwnerData[145]; + KeysOwnerData_146 = keysOwnerData[146]; + KeysOwnerData_147 = keysOwnerData[147]; + KeysOwnerData_148 = keysOwnerData[148]; + KeysOwnerData_149 = keysOwnerData[149]; + KeysOwnerData_150 = keysOwnerData[150]; + KeysOwnerData_151 = keysOwnerData[151]; + KeysOwnerData_152 = keysOwnerData[152]; + KeysOwnerData_153 = keysOwnerData[153]; + } + KeysRoutingTable = keysRoutingTable; + ActiveIdUsingNavDirMask = activeIdUsingNavDirMask; + ActiveIdUsingAllKeyboardKeys = activeIdUsingAllKeyboardKeys ? (byte)1 : (byte)0; + ActiveIdUsingNavInputMask = activeIdUsingNavInputMask; + CurrentFocusScopeId = currentFocusScopeId; + CurrentItemFlags = currentItemFlags; + DebugLocateId = debugLocateId; + NextItemData = nextItemData; + LastItemData = lastItemData; + NextWindowData = nextWindowData; + DebugShowGroupRects = debugShowGroupRects ? (byte)1 : (byte)0; + ColorStack = colorStack; + StyleVarStack = styleVarStack; + FontStack = fontStack; + FocusScopeStack = focusScopeStack; + ItemFlagsStack = itemFlagsStack; + GroupStack = groupStack; + OpenPopupStack = openPopupStack; + BeginPopupStack = beginPopupStack; + NavTreeNodeStack = navTreeNodeStack; + BeginMenuCount = beginMenuCount; + Viewports = viewports; + CurrentDpiScale = currentDpiScale; + CurrentViewport = currentViewport; + MouseViewport = mouseViewport; + MouseLastHoveredViewport = mouseLastHoveredViewport; + PlatformLastFocusedViewportId = platformLastFocusedViewportId; + FallbackMonitor = fallbackMonitor; + ViewportCreatedCount = viewportCreatedCount; + PlatformWindowsCreatedCount = platformWindowsCreatedCount; + ViewportFocusedStampCount = viewportFocusedStampCount; + NavWindow = navWindow; + NavId = navId; + NavFocusScopeId = navFocusScopeId; + NavActivateId = navActivateId; + NavActivateDownId = navActivateDownId; + NavActivatePressedId = navActivatePressedId; + NavActivateFlags = navActivateFlags; + NavJustMovedToId = navJustMovedToId; + NavJustMovedToFocusScopeId = navJustMovedToFocusScopeId; + NavJustMovedToKeyMods = navJustMovedToKeyMods; + NavNextActivateId = navNextActivateId; + NavNextActivateFlags = navNextActivateFlags; + NavInputSource = navInputSource; + NavLayer = navLayer; + NavLastValidSelectionUserData = navLastValidSelectionUserData; + NavIdIsAlive = navIdIsAlive ? (byte)1 : (byte)0; + NavMousePosDirty = navMousePosDirty ? (byte)1 : (byte)0; + NavDisableHighlight = navDisableHighlight ? (byte)1 : (byte)0; + NavDisableMouseHover = navDisableMouseHover ? (byte)1 : (byte)0; + NavAnyRequest = navAnyRequest ? (byte)1 : (byte)0; + NavInitRequest = navInitRequest ? (byte)1 : (byte)0; + NavInitRequestFromMove = navInitRequestFromMove ? (byte)1 : (byte)0; + NavInitResult = navInitResult; + NavMoveSubmitted = navMoveSubmitted ? (byte)1 : (byte)0; + NavMoveScoringItems = navMoveScoringItems ? (byte)1 : (byte)0; + NavMoveForwardToNextFrame = navMoveForwardToNextFrame ? (byte)1 : (byte)0; + NavMoveFlags = navMoveFlags; + NavMoveScrollFlags = navMoveScrollFlags; + NavMoveKeyMods = navMoveKeyMods; + NavMoveDir = navMoveDir; + NavMoveDirForDebug = navMoveDirForDebug; + NavMoveClipDir = navMoveClipDir; + NavScoringRect = navScoringRect; + NavScoringNoClipRect = navScoringNoClipRect; + NavScoringDebugCount = navScoringDebugCount; + NavTabbingDir = navTabbingDir; + NavTabbingCounter = navTabbingCounter; + NavMoveResultLocal = navMoveResultLocal; + NavMoveResultLocalVisible = navMoveResultLocalVisible; + NavMoveResultOther = navMoveResultOther; + NavTabbingResultFirst = navTabbingResultFirst; + ConfigNavWindowingKeyNext = configNavWindowingKeyNext; + ConfigNavWindowingKeyPrev = configNavWindowingKeyPrev; + NavWindowingTarget = navWindowingTarget; + NavWindowingTargetAnim = navWindowingTargetAnim; + NavWindowingListWindow = navWindowingListWindow; + NavWindowingTimer = navWindowingTimer; + NavWindowingHighlightAlpha = navWindowingHighlightAlpha; + NavWindowingToggleLayer = navWindowingToggleLayer ? (byte)1 : (byte)0; + NavWindowingAccumDeltaPos = navWindowingAccumDeltaPos; + NavWindowingAccumDeltaSize = navWindowingAccumDeltaSize; + DimBgRatio = dimBgRatio; + DragDropActive = dragDropActive ? (byte)1 : (byte)0; + DragDropWithinSource = dragDropWithinSource ? (byte)1 : (byte)0; + DragDropWithinTarget = dragDropWithinTarget ? (byte)1 : (byte)0; + DragDropSourceFlags = dragDropSourceFlags; + DragDropSourceFrameCount = dragDropSourceFrameCount; + DragDropMouseButton = dragDropMouseButton; + DragDropPayload = dragDropPayload; + DragDropTargetRect = dragDropTargetRect; + DragDropTargetId = dragDropTargetId; + DragDropAcceptFlags = dragDropAcceptFlags; + DragDropAcceptIdCurrRectSurface = dragDropAcceptIdCurrRectSurface; + DragDropAcceptIdCurr = dragDropAcceptIdCurr; + DragDropAcceptIdPrev = dragDropAcceptIdPrev; + DragDropAcceptFrameCount = dragDropAcceptFrameCount; + DragDropHoldJustPressedId = dragDropHoldJustPressedId; + DragDropPayloadBufHeap = dragDropPayloadBufHeap; + if (dragDropPayloadBufLocal != default) + { + DragDropPayloadBufLocal_0 = dragDropPayloadBufLocal[0]; + DragDropPayloadBufLocal_1 = dragDropPayloadBufLocal[1]; + DragDropPayloadBufLocal_2 = dragDropPayloadBufLocal[2]; + DragDropPayloadBufLocal_3 = dragDropPayloadBufLocal[3]; + DragDropPayloadBufLocal_4 = dragDropPayloadBufLocal[4]; + DragDropPayloadBufLocal_5 = dragDropPayloadBufLocal[5]; + DragDropPayloadBufLocal_6 = dragDropPayloadBufLocal[6]; + DragDropPayloadBufLocal_7 = dragDropPayloadBufLocal[7]; + DragDropPayloadBufLocal_8 = dragDropPayloadBufLocal[8]; + DragDropPayloadBufLocal_9 = dragDropPayloadBufLocal[9]; + DragDropPayloadBufLocal_10 = dragDropPayloadBufLocal[10]; + DragDropPayloadBufLocal_11 = dragDropPayloadBufLocal[11]; + DragDropPayloadBufLocal_12 = dragDropPayloadBufLocal[12]; + DragDropPayloadBufLocal_13 = dragDropPayloadBufLocal[13]; + DragDropPayloadBufLocal_14 = dragDropPayloadBufLocal[14]; + DragDropPayloadBufLocal_15 = dragDropPayloadBufLocal[15]; + } + ClipperTempDataStacked = clipperTempDataStacked; + ClipperTempData = clipperTempData; + CurrentTable = currentTable; + TablesTempDataStacked = tablesTempDataStacked; + TablesTempData = tablesTempData; + Tables = tables; + TablesLastTimeActive = tablesLastTimeActive; + DrawChannelsTempMergeBuffer = drawChannelsTempMergeBuffer; + CurrentTabBar = currentTabBar; + TabBars = tabBars; + CurrentTabBarStack = currentTabBarStack; + ShrinkWidthBuffer = shrinkWidthBuffer; + HoverItemDelayId = hoverItemDelayId; + HoverItemDelayIdPreviousFrame = hoverItemDelayIdPreviousFrame; + HoverItemDelayTimer = hoverItemDelayTimer; + HoverItemDelayClearTimer = hoverItemDelayClearTimer; + HoverItemUnlockedStationaryId = hoverItemUnlockedStationaryId; + HoverWindowUnlockedStationaryId = hoverWindowUnlockedStationaryId; + MouseCursor = mouseCursor; + MouseStationaryTimer = mouseStationaryTimer; + MouseLastValidPos = mouseLastValidPos; + InputTextState = inputTextState; + InputTextDeactivatedState = inputTextDeactivatedState; + InputTextPasswordFont = inputTextPasswordFont; + TempInputId = tempInputId; + ColorEditOptions = colorEditOptions; + ColorEditCurrentID = colorEditCurrentId; + ColorEditSavedID = colorEditSavedId; + ColorEditSavedHue = colorEditSavedHue; + ColorEditSavedSat = colorEditSavedSat; + ColorEditSavedColor = colorEditSavedColor; + ColorPickerRef = colorPickerRef; + ComboPreviewData = comboPreviewData; + SliderGrabClickOffset = sliderGrabClickOffset; + SliderCurrentAccum = sliderCurrentAccum; + SliderCurrentAccumDirty = sliderCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccumDirty = dragCurrentAccumDirty ? (byte)1 : (byte)0; + DragCurrentAccum = dragCurrentAccum; + DragSpeedDefaultRatio = dragSpeedDefaultRatio; + ScrollbarClickDeltaToGrabCenter = scrollbarClickDeltaToGrabCenter; + DisabledAlphaBackup = disabledAlphaBackup; + DisabledStackSize = disabledStackSize; + LockMarkEdited = lockMarkEdited; + TooltipOverrideCount = tooltipOverrideCount; + ClipboardHandlerData = clipboardHandlerData; + MenusIdSubmittedThisFrame = menusIdSubmittedThisFrame; + TypingSelectState = typingSelectState; + PlatformImeData = platformImeData; + PlatformImeDataPrev = platformImeDataPrev; + PlatformImeViewport = platformImeViewport; + DockContext = dockContext; + DockNodeWindowMenuHandler = (void*)dockNodeWindowMenuHandler; + SettingsLoaded = settingsLoaded ? (byte)1 : (byte)0; + SettingsDirtyTimer = settingsDirtyTimer; + SettingsIniData = settingsIniData; + SettingsHandlers = settingsHandlers; + SettingsWindows = settingsWindows; + SettingsTables = settingsTables; + Hooks = hooks; + HookIdNext = hookIdNext; + if (localizationTable != default) + { + LocalizationTable_0 = localizationTable[0]; + LocalizationTable_1 = localizationTable[1]; + LocalizationTable_2 = localizationTable[2]; + LocalizationTable_3 = localizationTable[3]; + LocalizationTable_4 = localizationTable[4]; + LocalizationTable_5 = localizationTable[5]; + LocalizationTable_6 = localizationTable[6]; + LocalizationTable_7 = localizationTable[7]; + LocalizationTable_8 = localizationTable[8]; + LocalizationTable_9 = localizationTable[9]; + LocalizationTable_10 = localizationTable[10]; + } + LogEnabled = logEnabled ? (byte)1 : (byte)0; + LogType = logType; + LogFile = logFile; + LogBuffer = logBuffer; + LogNextPrefix = logNextPrefix; + LogNextSuffix = logNextSuffix; + LogLinePosY = logLinePosY; + LogLineFirstItem = logLineFirstItem ? (byte)1 : (byte)0; + LogDepthRef = logDepthRef; + LogDepthToExpand = logDepthToExpand; + LogDepthToExpandDefault = logDepthToExpandDefault; + DebugLogFlags = debugLogFlags; + DebugLogBuf = debugLogBuf; + DebugLogIndex = debugLogIndex; + DebugLogClipperAutoDisableFrames = debugLogClipperAutoDisableFrames; + DebugLocateFrames = debugLocateFrames; + DebugBeginReturnValueCullDepth = debugBeginReturnValueCullDepth; + DebugItemPickerActive = debugItemPickerActive ? (byte)1 : (byte)0; + DebugItemPickerMouseButton = debugItemPickerMouseButton; + DebugItemPickerBreakId = debugItemPickerBreakId; + DebugMetricsConfig = debugMetricsConfig; + DebugIDStackTool = debugIdStackTool; + DebugAllocInfo = debugAllocInfo; + DebugHoveredDockNode = debugHoveredDockNode; + if (framerateSecPerFrame != default) + { + FramerateSecPerFrame_0 = framerateSecPerFrame[0]; + FramerateSecPerFrame_1 = framerateSecPerFrame[1]; + FramerateSecPerFrame_2 = framerateSecPerFrame[2]; + FramerateSecPerFrame_3 = framerateSecPerFrame[3]; + FramerateSecPerFrame_4 = framerateSecPerFrame[4]; + FramerateSecPerFrame_5 = framerateSecPerFrame[5]; + FramerateSecPerFrame_6 = framerateSecPerFrame[6]; + FramerateSecPerFrame_7 = framerateSecPerFrame[7]; + FramerateSecPerFrame_8 = framerateSecPerFrame[8]; + FramerateSecPerFrame_9 = framerateSecPerFrame[9]; + FramerateSecPerFrame_10 = framerateSecPerFrame[10]; + FramerateSecPerFrame_11 = framerateSecPerFrame[11]; + FramerateSecPerFrame_12 = framerateSecPerFrame[12]; + FramerateSecPerFrame_13 = framerateSecPerFrame[13]; + FramerateSecPerFrame_14 = framerateSecPerFrame[14]; + FramerateSecPerFrame_15 = framerateSecPerFrame[15]; + FramerateSecPerFrame_16 = framerateSecPerFrame[16]; + FramerateSecPerFrame_17 = framerateSecPerFrame[17]; + FramerateSecPerFrame_18 = framerateSecPerFrame[18]; + FramerateSecPerFrame_19 = framerateSecPerFrame[19]; + FramerateSecPerFrame_20 = framerateSecPerFrame[20]; + FramerateSecPerFrame_21 = framerateSecPerFrame[21]; + FramerateSecPerFrame_22 = framerateSecPerFrame[22]; + FramerateSecPerFrame_23 = framerateSecPerFrame[23]; + FramerateSecPerFrame_24 = framerateSecPerFrame[24]; + FramerateSecPerFrame_25 = framerateSecPerFrame[25]; + FramerateSecPerFrame_26 = framerateSecPerFrame[26]; + FramerateSecPerFrame_27 = framerateSecPerFrame[27]; + FramerateSecPerFrame_28 = framerateSecPerFrame[28]; + FramerateSecPerFrame_29 = framerateSecPerFrame[29]; + FramerateSecPerFrame_30 = framerateSecPerFrame[30]; + FramerateSecPerFrame_31 = framerateSecPerFrame[31]; + FramerateSecPerFrame_32 = framerateSecPerFrame[32]; + FramerateSecPerFrame_33 = framerateSecPerFrame[33]; + FramerateSecPerFrame_34 = framerateSecPerFrame[34]; + FramerateSecPerFrame_35 = framerateSecPerFrame[35]; + FramerateSecPerFrame_36 = framerateSecPerFrame[36]; + FramerateSecPerFrame_37 = framerateSecPerFrame[37]; + FramerateSecPerFrame_38 = framerateSecPerFrame[38]; + FramerateSecPerFrame_39 = framerateSecPerFrame[39]; + FramerateSecPerFrame_40 = framerateSecPerFrame[40]; + FramerateSecPerFrame_41 = framerateSecPerFrame[41]; + FramerateSecPerFrame_42 = framerateSecPerFrame[42]; + FramerateSecPerFrame_43 = framerateSecPerFrame[43]; + FramerateSecPerFrame_44 = framerateSecPerFrame[44]; + FramerateSecPerFrame_45 = framerateSecPerFrame[45]; + FramerateSecPerFrame_46 = framerateSecPerFrame[46]; + FramerateSecPerFrame_47 = framerateSecPerFrame[47]; + FramerateSecPerFrame_48 = framerateSecPerFrame[48]; + FramerateSecPerFrame_49 = framerateSecPerFrame[49]; + FramerateSecPerFrame_50 = framerateSecPerFrame[50]; + FramerateSecPerFrame_51 = framerateSecPerFrame[51]; + FramerateSecPerFrame_52 = framerateSecPerFrame[52]; + FramerateSecPerFrame_53 = framerateSecPerFrame[53]; + FramerateSecPerFrame_54 = framerateSecPerFrame[54]; + FramerateSecPerFrame_55 = framerateSecPerFrame[55]; + FramerateSecPerFrame_56 = framerateSecPerFrame[56]; + FramerateSecPerFrame_57 = framerateSecPerFrame[57]; + FramerateSecPerFrame_58 = framerateSecPerFrame[58]; + FramerateSecPerFrame_59 = framerateSecPerFrame[59]; + } + FramerateSecPerFrameIdx = framerateSecPerFrameIdx; + FramerateSecPerFrameCount = framerateSecPerFrameCount; + FramerateSecPerFrameAccum = framerateSecPerFrameAccum; + WantCaptureMouseNextFrame = wantCaptureMouseNextFrame; + WantCaptureKeyboardNextFrame = wantCaptureKeyboardNextFrame; + WantTextInputNextFrame = wantTextInputNextFrame; + TempBuffer = tempBuffer; + } /// @@ -13615,7 +13686,7 @@ public unsafe Span KeysOwnerData { fixed (ImGuiKeyOwnerData* p = &this.KeysOwnerData_0) { - return new Span(p, 140); + return new Span(p, 154); } } } @@ -13628,471 +13699,327 @@ public unsafe Span KeysOwnerData /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiContext_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiContext* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiIO")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiIO { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigFlags")] - [NativeName(NativeNameType.Type, "ImGuiConfigFlags")] - public ImGuiConfigFlags ConfigFlags; + public int ConfigFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackendFlags")] - [NativeName(NativeNameType.Type, "ImGuiBackendFlags")] - public ImGuiBackendFlags BackendFlags; + public int BackendFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplaySize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 DisplaySize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DeltaTime")] - [NativeName(NativeNameType.Type, "float")] public float DeltaTime; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IniSavingRate")] - [NativeName(NativeNameType.Type, "float")] public float IniSavingRate; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IniFilename")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* IniFilename; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogFilename")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* LogFilename; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "UserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* UserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Fonts")] - [NativeName(NativeNameType.Type, "ImFontAtlas*")] public unsafe ImFontAtlas* Fonts; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontGlobalScale")] - [NativeName(NativeNameType.Type, "float")] public float FontGlobalScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontAllowUserScaling")] - [NativeName(NativeNameType.Type, "bool")] public byte FontAllowUserScaling; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontDefault")] - [NativeName(NativeNameType.Type, "ImFont*")] public unsafe ImFont* FontDefault; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplayFramebufferScale")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 DisplayFramebufferScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigDockingNoSplit")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigDockingNoSplit; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigDockingWithShift")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigDockingWithShift; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigDockingAlwaysTabBar")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigDockingAlwaysTabBar; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigDockingTransparentPayload")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigDockingTransparentPayload; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigViewportsNoAutoMerge")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigViewportsNoAutoMerge; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigViewportsNoTaskBarIcon")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigViewportsNoTaskBarIcon; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigViewportsNoDecoration")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigViewportsNoDecoration; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigViewportsNoDefaultParent")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigViewportsNoDefaultParent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDrawCursor")] - [NativeName(NativeNameType.Type, "bool")] public byte MouseDrawCursor; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigMacOSXBehaviors")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigMacOSXBehaviors; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigInputTrickleEventQueue")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigInputTrickleEventQueue; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigInputTextCursorBlink")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigInputTextCursorBlink; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigInputTextEnterKeepActive")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigInputTextEnterKeepActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigDragClickToInputText")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigDragClickToInputText; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigWindowsResizeFromEdges")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigWindowsResizeFromEdges; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigWindowsMoveFromTitleBarOnly")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigWindowsMoveFromTitleBarOnly; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigMemoryCompactTimer")] - [NativeName(NativeNameType.Type, "float")] public float ConfigMemoryCompactTimer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDoubleClickTime")] - [NativeName(NativeNameType.Type, "float")] public float MouseDoubleClickTime; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDoubleClickMaxDist")] - [NativeName(NativeNameType.Type, "float")] public float MouseDoubleClickMaxDist; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDragThreshold")] - [NativeName(NativeNameType.Type, "float")] public float MouseDragThreshold; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeyRepeatDelay")] - [NativeName(NativeNameType.Type, "float")] public float KeyRepeatDelay; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeyRepeatRate")] - [NativeName(NativeNameType.Type, "float")] public float KeyRepeatRate; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigDebugBeginReturnValueOnce")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigDebugBeginReturnValueOnce; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigDebugBeginReturnValueLoop")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigDebugBeginReturnValueLoop; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigDebugIgnoreFocusLoss")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigDebugIgnoreFocusLoss; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ConfigDebugIniSettings")] - [NativeName(NativeNameType.Type, "bool")] public byte ConfigDebugIniSettings; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackendPlatformName")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* BackendPlatformName; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackendRendererName")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* BackendRendererName; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackendPlatformUserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* BackendPlatformUserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackendRendererUserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* BackendRendererUserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackendLanguageUserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* BackendLanguageUserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GetClipboardTextFn")] - [NativeName(NativeNameType.Type, "const char* (*)(void* user_data)*")] public unsafe void* GetClipboardTextFn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SetClipboardTextFn")] - [NativeName(NativeNameType.Type, "void (*)(void* user_data, const char* text)*")] public unsafe void* SetClipboardTextFn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClipboardUserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* ClipboardUserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SetPlatformImeDataFn")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* viewport, ImGuiPlatformImeData* data)*")] public unsafe void* SetPlatformImeDataFn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "_UnusedPadding")] - [NativeName(NativeNameType.Type, "void*")] - public unsafe void* UnusedPadding; + public char PlatformLocaleDecimalPoint; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantCaptureMouse")] - [NativeName(NativeNameType.Type, "bool")] public byte WantCaptureMouse; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantCaptureKeyboard")] - [NativeName(NativeNameType.Type, "bool")] public byte WantCaptureKeyboard; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantTextInput")] - [NativeName(NativeNameType.Type, "bool")] public byte WantTextInput; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantSetMousePos")] - [NativeName(NativeNameType.Type, "bool")] public byte WantSetMousePos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantSaveIniSettings")] - [NativeName(NativeNameType.Type, "bool")] public byte WantSaveIniSettings; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavActive")] - [NativeName(NativeNameType.Type, "bool")] public byte NavActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavVisible")] - [NativeName(NativeNameType.Type, "bool")] public byte NavVisible; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Framerate")] - [NativeName(NativeNameType.Type, "float")] public float Framerate; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MetricsRenderVertices")] - [NativeName(NativeNameType.Type, "int")] public int MetricsRenderVertices; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MetricsRenderIndices")] - [NativeName(NativeNameType.Type, "int")] public int MetricsRenderIndices; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MetricsRenderWindows")] - [NativeName(NativeNameType.Type, "int")] public int MetricsRenderWindows; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MetricsActiveWindows")] - [NativeName(NativeNameType.Type, "int")] public int MetricsActiveWindows; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MetricsActiveAllocations")] - [NativeName(NativeNameType.Type, "int")] - public int MetricsActiveAllocations; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "MouseDelta")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 MouseDelta; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeyMap")] - [NativeName(NativeNameType.Type, "int[652]")] public int KeyMap_0; public int KeyMap_1; public int KeyMap_2; @@ -14745,12 +14672,24 @@ public partial struct ImGuiIO public int KeyMap_649; public int KeyMap_650; public int KeyMap_651; + public int KeyMap_652; + public int KeyMap_653; + public int KeyMap_654; + public int KeyMap_655; + public int KeyMap_656; + public int KeyMap_657; + public int KeyMap_658; + public int KeyMap_659; + public int KeyMap_660; + public int KeyMap_661; + public int KeyMap_662; + public int KeyMap_663; + public int KeyMap_664; + public int KeyMap_665; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeysDown")] - [NativeName(NativeNameType.Type, "bool[652]")] public bool KeysDown_0; public bool KeysDown_1; public bool KeysDown_2; @@ -15403,12 +15342,24 @@ public partial struct ImGuiIO public bool KeysDown_649; public bool KeysDown_650; public bool KeysDown_651; + public bool KeysDown_652; + public bool KeysDown_653; + public bool KeysDown_654; + public bool KeysDown_655; + public bool KeysDown_656; + public bool KeysDown_657; + public bool KeysDown_658; + public bool KeysDown_659; + public bool KeysDown_660; + public bool KeysDown_661; + public bool KeysDown_662; + public bool KeysDown_663; + public bool KeysDown_664; + public bool KeysDown_665; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavInputs")] - [NativeName(NativeNameType.Type, "float[16]")] public float NavInputs_0; public float NavInputs_1; public float NavInputs_2; @@ -15429,22 +15380,21 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Ctx")] - [NativeName(NativeNameType.Type, "ImGuiContext*")] + public unsafe void* UnusedPadding; + + /// + /// To be documented. + /// public unsafe ImGuiContext* Ctx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MousePos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 MousePos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDown")] - [NativeName(NativeNameType.Type, "bool[5]")] public bool MouseDown_0; public bool MouseDown_1; public bool MouseDown_2; @@ -15454,71 +15404,51 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseWheel")] - [NativeName(NativeNameType.Type, "float")] public float MouseWheel; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseWheelH")] - [NativeName(NativeNameType.Type, "float")] public float MouseWheelH; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseSource")] - [NativeName(NativeNameType.Type, "ImGuiMouseSource")] public ImGuiMouseSource MouseSource; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseHoveredViewport")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int MouseHoveredViewport; + public uint MouseHoveredViewport; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeyCtrl")] - [NativeName(NativeNameType.Type, "bool")] public byte KeyCtrl; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeyShift")] - [NativeName(NativeNameType.Type, "bool")] public byte KeyShift; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeyAlt")] - [NativeName(NativeNameType.Type, "bool")] public byte KeyAlt; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeySuper")] - [NativeName(NativeNameType.Type, "bool")] public byte KeySuper; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeyMods")] - [NativeName(NativeNameType.Type, "ImGuiKeyChord")] public int KeyMods; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "KeysData")] - [NativeName(NativeNameType.Type, "ImGuiKeyData[652]")] public ImGuiKeyData KeysData_0; public ImGuiKeyData KeysData_1; public ImGuiKeyData KeysData_2; @@ -16171,26 +16101,34 @@ public partial struct ImGuiIO public ImGuiKeyData KeysData_649; public ImGuiKeyData KeysData_650; public ImGuiKeyData KeysData_651; + public ImGuiKeyData KeysData_652; + public ImGuiKeyData KeysData_653; + public ImGuiKeyData KeysData_654; + public ImGuiKeyData KeysData_655; + public ImGuiKeyData KeysData_656; + public ImGuiKeyData KeysData_657; + public ImGuiKeyData KeysData_658; + public ImGuiKeyData KeysData_659; + public ImGuiKeyData KeysData_660; + public ImGuiKeyData KeysData_661; + public ImGuiKeyData KeysData_662; + public ImGuiKeyData KeysData_663; + public ImGuiKeyData KeysData_664; + public ImGuiKeyData KeysData_665; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantCaptureMouseUnlessPopupClose")] - [NativeName(NativeNameType.Type, "bool")] public byte WantCaptureMouseUnlessPopupClose; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MousePosPrev")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 MousePosPrev; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseClickedPos")] - [NativeName(NativeNameType.Type, "ImVec2[5]")] public Vector2 MouseClickedPos_0; public Vector2 MouseClickedPos_1; public Vector2 MouseClickedPos_2; @@ -16200,8 +16138,6 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseClickedTime")] - [NativeName(NativeNameType.Type, "double[5]")] public double MouseClickedTime_0; public double MouseClickedTime_1; public double MouseClickedTime_2; @@ -16211,8 +16147,6 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseClicked")] - [NativeName(NativeNameType.Type, "bool[5]")] public bool MouseClicked_0; public bool MouseClicked_1; public bool MouseClicked_2; @@ -16222,8 +16156,6 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDoubleClicked")] - [NativeName(NativeNameType.Type, "bool[5]")] public bool MouseDoubleClicked_0; public bool MouseDoubleClicked_1; public bool MouseDoubleClicked_2; @@ -16233,8 +16165,6 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseClickedCount")] - [NativeName(NativeNameType.Type, "ImU16[5]")] public ushort MouseClickedCount_0; public ushort MouseClickedCount_1; public ushort MouseClickedCount_2; @@ -16244,8 +16174,6 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseClickedLastCount")] - [NativeName(NativeNameType.Type, "ImU16[5]")] public ushort MouseClickedLastCount_0; public ushort MouseClickedLastCount_1; public ushort MouseClickedLastCount_2; @@ -16255,8 +16183,6 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseReleased")] - [NativeName(NativeNameType.Type, "bool[5]")] public bool MouseReleased_0; public bool MouseReleased_1; public bool MouseReleased_2; @@ -16266,8 +16192,6 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDownOwned")] - [NativeName(NativeNameType.Type, "bool[5]")] public bool MouseDownOwned_0; public bool MouseDownOwned_1; public bool MouseDownOwned_2; @@ -16277,8 +16201,6 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDownOwnedUnlessPopupClose")] - [NativeName(NativeNameType.Type, "bool[5]")] public bool MouseDownOwnedUnlessPopupClose_0; public bool MouseDownOwnedUnlessPopupClose_1; public bool MouseDownOwnedUnlessPopupClose_2; @@ -16288,15 +16210,11 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseWheelRequestAxisSwap")] - [NativeName(NativeNameType.Type, "bool")] public byte MouseWheelRequestAxisSwap; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDownDuration")] - [NativeName(NativeNameType.Type, "float[5]")] public float MouseDownDuration_0; public float MouseDownDuration_1; public float MouseDownDuration_2; @@ -16306,8 +16224,6 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDownDurationPrev")] - [NativeName(NativeNameType.Type, "float[5]")] public float MouseDownDurationPrev_0; public float MouseDownDurationPrev_1; public float MouseDownDurationPrev_2; @@ -16317,8 +16233,6 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDragMaxDistanceAbs")] - [NativeName(NativeNameType.Type, "ImVec2[5]")] public Vector2 MouseDragMaxDistanceAbs_0; public Vector2 MouseDragMaxDistanceAbs_1; public Vector2 MouseDragMaxDistanceAbs_2; @@ -16328,8 +16242,6 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseDragMaxDistanceSqr")] - [NativeName(NativeNameType.Type, "float[5]")] public float MouseDragMaxDistanceSqr_0; public float MouseDragMaxDistanceSqr_1; public float MouseDragMaxDistanceSqr_2; @@ -16339,54 +16251,4492 @@ public partial struct ImGuiIO /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PenPressure")] - [NativeName(NativeNameType.Type, "float")] public float PenPressure; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AppFocusLost")] - [NativeName(NativeNameType.Type, "bool")] public byte AppFocusLost; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AppAcceptingEvents")] - [NativeName(NativeNameType.Type, "bool")] public byte AppAcceptingEvents; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackendUsingLegacyKeyArrays")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte BackendUsingLegacyKeyArrays; + public byte BackendUsingLegacyKeyArrays; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackendUsingLegacyNavInputArray")] - [NativeName(NativeNameType.Type, "bool")] public byte BackendUsingLegacyNavInputArray; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputQueueSurrogate")] - [NativeName(NativeNameType.Type, "ImWchar16")] - public char InputQueueSurrogate; + public ushort InputQueueSurrogate; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputQueueCharacters")] - [NativeName(NativeNameType.Type, "ImVector_ImWchar")] public ImVectorImWchar InputQueueCharacters; + /// /// To be documented. /// public unsafe ImGuiIO(int configFlags = default, int backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, void* userData = default, ImFontAtlas* fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFont* fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configInputTextEnterKeepActive = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, bool configDebugBeginReturnValueOnce = default, bool configDebugBeginReturnValueLoop = default, bool configDebugIgnoreFocusLoss = default, bool configDebugIniSettings = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate* getClipboardTextFn = default, delegate* setClipboardTextFn = default, void* clipboardUserData = default, delegate* setPlatformImeDataFn = default, char platformLocaleDecimalPoint = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, Vector2 mouseDelta = default, int* keyMap = default, bool* keysDown = default, float* navInputs = default, void* Unusedpadding = default, ImGuiContext* ctx = default, Vector2 mousePos = default, bool* mouseDown = default, float mouseWheel = default, float mouseWheelH = default, ImGuiMouseSource mouseSource = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, int keyMods = default, ImGuiKeyData* keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Vector2* mouseClickedPos = default, double* mouseClickedTime = default, bool* mouseClicked = default, bool* mouseDoubleClicked = default, ushort* mouseClickedCount = default, ushort* mouseClickedLastCount = default, bool* mouseReleased = default, bool* mouseDownOwned = default, bool* mouseDownOwnedUnlessPopupClose = default, bool mouseWheelRequestAxisSwap = default, float* mouseDownDuration = default, float* mouseDownDurationPrev = default, Vector2* mouseDragMaxDistanceAbs = default, float* mouseDragMaxDistanceSqr = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, byte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVectorImWchar inputQueueCharacters = default) + { + ConfigFlags = configFlags; + BackendFlags = backendFlags; + DisplaySize = displaySize; + DeltaTime = deltaTime; + IniSavingRate = iniSavingRate; + IniFilename = iniFilename; + LogFilename = logFilename; + UserData = userData; + Fonts = fonts; + FontGlobalScale = fontGlobalScale; + FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; + FontDefault = fontDefault; + DisplayFramebufferScale = displayFramebufferScale; + ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; + ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; + ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; + ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; + ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; + ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; + ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; + ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; + MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; + ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; + ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; + ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; + ConfigInputTextEnterKeepActive = configInputTextEnterKeepActive ? (byte)1 : (byte)0; + ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; + ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; + ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; + ConfigMemoryCompactTimer = configMemoryCompactTimer; + MouseDoubleClickTime = mouseDoubleClickTime; + MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; + MouseDragThreshold = mouseDragThreshold; + KeyRepeatDelay = keyRepeatDelay; + KeyRepeatRate = keyRepeatRate; + ConfigDebugBeginReturnValueOnce = configDebugBeginReturnValueOnce ? (byte)1 : (byte)0; + ConfigDebugBeginReturnValueLoop = configDebugBeginReturnValueLoop ? (byte)1 : (byte)0; + ConfigDebugIgnoreFocusLoss = configDebugIgnoreFocusLoss ? (byte)1 : (byte)0; + ConfigDebugIniSettings = configDebugIniSettings ? (byte)1 : (byte)0; + BackendPlatformName = backendPlatformName; + BackendRendererName = backendRendererName; + BackendPlatformUserData = backendPlatformUserData; + BackendRendererUserData = backendRendererUserData; + BackendLanguageUserData = backendLanguageUserData; + GetClipboardTextFn = (void*)getClipboardTextFn; + SetClipboardTextFn = (void*)setClipboardTextFn; + ClipboardUserData = clipboardUserData; + SetPlatformImeDataFn = (void*)setPlatformImeDataFn; + PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; + WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; + WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; + WantTextInput = wantTextInput ? (byte)1 : (byte)0; + WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; + WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; + NavActive = navActive ? (byte)1 : (byte)0; + NavVisible = navVisible ? (byte)1 : (byte)0; + Framerate = framerate; + MetricsRenderVertices = metricsRenderVertices; + MetricsRenderIndices = metricsRenderIndices; + MetricsRenderWindows = metricsRenderWindows; + MetricsActiveWindows = metricsActiveWindows; + MouseDelta = mouseDelta; + if (keyMap != default) + { + KeyMap_0 = keyMap[0]; + KeyMap_1 = keyMap[1]; + KeyMap_2 = keyMap[2]; + KeyMap_3 = keyMap[3]; + KeyMap_4 = keyMap[4]; + KeyMap_5 = keyMap[5]; + KeyMap_6 = keyMap[6]; + KeyMap_7 = keyMap[7]; + KeyMap_8 = keyMap[8]; + KeyMap_9 = keyMap[9]; + KeyMap_10 = keyMap[10]; + KeyMap_11 = keyMap[11]; + KeyMap_12 = keyMap[12]; + KeyMap_13 = keyMap[13]; + KeyMap_14 = keyMap[14]; + KeyMap_15 = keyMap[15]; + KeyMap_16 = keyMap[16]; + KeyMap_17 = keyMap[17]; + KeyMap_18 = keyMap[18]; + KeyMap_19 = keyMap[19]; + KeyMap_20 = keyMap[20]; + KeyMap_21 = keyMap[21]; + KeyMap_22 = keyMap[22]; + KeyMap_23 = keyMap[23]; + KeyMap_24 = keyMap[24]; + KeyMap_25 = keyMap[25]; + KeyMap_26 = keyMap[26]; + KeyMap_27 = keyMap[27]; + KeyMap_28 = keyMap[28]; + KeyMap_29 = keyMap[29]; + KeyMap_30 = keyMap[30]; + KeyMap_31 = keyMap[31]; + KeyMap_32 = keyMap[32]; + KeyMap_33 = keyMap[33]; + KeyMap_34 = keyMap[34]; + KeyMap_35 = keyMap[35]; + KeyMap_36 = keyMap[36]; + KeyMap_37 = keyMap[37]; + KeyMap_38 = keyMap[38]; + KeyMap_39 = keyMap[39]; + KeyMap_40 = keyMap[40]; + KeyMap_41 = keyMap[41]; + KeyMap_42 = keyMap[42]; + KeyMap_43 = keyMap[43]; + KeyMap_44 = keyMap[44]; + KeyMap_45 = keyMap[45]; + KeyMap_46 = keyMap[46]; + KeyMap_47 = keyMap[47]; + KeyMap_48 = keyMap[48]; + KeyMap_49 = keyMap[49]; + KeyMap_50 = keyMap[50]; + KeyMap_51 = keyMap[51]; + KeyMap_52 = keyMap[52]; + KeyMap_53 = keyMap[53]; + KeyMap_54 = keyMap[54]; + KeyMap_55 = keyMap[55]; + KeyMap_56 = keyMap[56]; + KeyMap_57 = keyMap[57]; + KeyMap_58 = keyMap[58]; + KeyMap_59 = keyMap[59]; + KeyMap_60 = keyMap[60]; + KeyMap_61 = keyMap[61]; + KeyMap_62 = keyMap[62]; + KeyMap_63 = keyMap[63]; + KeyMap_64 = keyMap[64]; + KeyMap_65 = keyMap[65]; + KeyMap_66 = keyMap[66]; + KeyMap_67 = keyMap[67]; + KeyMap_68 = keyMap[68]; + KeyMap_69 = keyMap[69]; + KeyMap_70 = keyMap[70]; + KeyMap_71 = keyMap[71]; + KeyMap_72 = keyMap[72]; + KeyMap_73 = keyMap[73]; + KeyMap_74 = keyMap[74]; + KeyMap_75 = keyMap[75]; + KeyMap_76 = keyMap[76]; + KeyMap_77 = keyMap[77]; + KeyMap_78 = keyMap[78]; + KeyMap_79 = keyMap[79]; + KeyMap_80 = keyMap[80]; + KeyMap_81 = keyMap[81]; + KeyMap_82 = keyMap[82]; + KeyMap_83 = keyMap[83]; + KeyMap_84 = keyMap[84]; + KeyMap_85 = keyMap[85]; + KeyMap_86 = keyMap[86]; + KeyMap_87 = keyMap[87]; + KeyMap_88 = keyMap[88]; + KeyMap_89 = keyMap[89]; + KeyMap_90 = keyMap[90]; + KeyMap_91 = keyMap[91]; + KeyMap_92 = keyMap[92]; + KeyMap_93 = keyMap[93]; + KeyMap_94 = keyMap[94]; + KeyMap_95 = keyMap[95]; + KeyMap_96 = keyMap[96]; + KeyMap_97 = keyMap[97]; + KeyMap_98 = keyMap[98]; + KeyMap_99 = keyMap[99]; + KeyMap_100 = keyMap[100]; + KeyMap_101 = keyMap[101]; + KeyMap_102 = keyMap[102]; + KeyMap_103 = keyMap[103]; + KeyMap_104 = keyMap[104]; + KeyMap_105 = keyMap[105]; + KeyMap_106 = keyMap[106]; + KeyMap_107 = keyMap[107]; + KeyMap_108 = keyMap[108]; + KeyMap_109 = keyMap[109]; + KeyMap_110 = keyMap[110]; + KeyMap_111 = keyMap[111]; + KeyMap_112 = keyMap[112]; + KeyMap_113 = keyMap[113]; + KeyMap_114 = keyMap[114]; + KeyMap_115 = keyMap[115]; + KeyMap_116 = keyMap[116]; + KeyMap_117 = keyMap[117]; + KeyMap_118 = keyMap[118]; + KeyMap_119 = keyMap[119]; + KeyMap_120 = keyMap[120]; + KeyMap_121 = keyMap[121]; + KeyMap_122 = keyMap[122]; + KeyMap_123 = keyMap[123]; + KeyMap_124 = keyMap[124]; + KeyMap_125 = keyMap[125]; + KeyMap_126 = keyMap[126]; + KeyMap_127 = keyMap[127]; + KeyMap_128 = keyMap[128]; + KeyMap_129 = keyMap[129]; + KeyMap_130 = keyMap[130]; + KeyMap_131 = keyMap[131]; + KeyMap_132 = keyMap[132]; + KeyMap_133 = keyMap[133]; + KeyMap_134 = keyMap[134]; + KeyMap_135 = keyMap[135]; + KeyMap_136 = keyMap[136]; + KeyMap_137 = keyMap[137]; + KeyMap_138 = keyMap[138]; + KeyMap_139 = keyMap[139]; + KeyMap_140 = keyMap[140]; + KeyMap_141 = keyMap[141]; + KeyMap_142 = keyMap[142]; + KeyMap_143 = keyMap[143]; + KeyMap_144 = keyMap[144]; + KeyMap_145 = keyMap[145]; + KeyMap_146 = keyMap[146]; + KeyMap_147 = keyMap[147]; + KeyMap_148 = keyMap[148]; + KeyMap_149 = keyMap[149]; + KeyMap_150 = keyMap[150]; + KeyMap_151 = keyMap[151]; + KeyMap_152 = keyMap[152]; + KeyMap_153 = keyMap[153]; + KeyMap_154 = keyMap[154]; + KeyMap_155 = keyMap[155]; + KeyMap_156 = keyMap[156]; + KeyMap_157 = keyMap[157]; + KeyMap_158 = keyMap[158]; + KeyMap_159 = keyMap[159]; + KeyMap_160 = keyMap[160]; + KeyMap_161 = keyMap[161]; + KeyMap_162 = keyMap[162]; + KeyMap_163 = keyMap[163]; + KeyMap_164 = keyMap[164]; + KeyMap_165 = keyMap[165]; + KeyMap_166 = keyMap[166]; + KeyMap_167 = keyMap[167]; + KeyMap_168 = keyMap[168]; + KeyMap_169 = keyMap[169]; + KeyMap_170 = keyMap[170]; + KeyMap_171 = keyMap[171]; + KeyMap_172 = keyMap[172]; + KeyMap_173 = keyMap[173]; + KeyMap_174 = keyMap[174]; + KeyMap_175 = keyMap[175]; + KeyMap_176 = keyMap[176]; + KeyMap_177 = keyMap[177]; + KeyMap_178 = keyMap[178]; + KeyMap_179 = keyMap[179]; + KeyMap_180 = keyMap[180]; + KeyMap_181 = keyMap[181]; + KeyMap_182 = keyMap[182]; + KeyMap_183 = keyMap[183]; + KeyMap_184 = keyMap[184]; + KeyMap_185 = keyMap[185]; + KeyMap_186 = keyMap[186]; + KeyMap_187 = keyMap[187]; + KeyMap_188 = keyMap[188]; + KeyMap_189 = keyMap[189]; + KeyMap_190 = keyMap[190]; + KeyMap_191 = keyMap[191]; + KeyMap_192 = keyMap[192]; + KeyMap_193 = keyMap[193]; + KeyMap_194 = keyMap[194]; + KeyMap_195 = keyMap[195]; + KeyMap_196 = keyMap[196]; + KeyMap_197 = keyMap[197]; + KeyMap_198 = keyMap[198]; + KeyMap_199 = keyMap[199]; + KeyMap_200 = keyMap[200]; + KeyMap_201 = keyMap[201]; + KeyMap_202 = keyMap[202]; + KeyMap_203 = keyMap[203]; + KeyMap_204 = keyMap[204]; + KeyMap_205 = keyMap[205]; + KeyMap_206 = keyMap[206]; + KeyMap_207 = keyMap[207]; + KeyMap_208 = keyMap[208]; + KeyMap_209 = keyMap[209]; + KeyMap_210 = keyMap[210]; + KeyMap_211 = keyMap[211]; + KeyMap_212 = keyMap[212]; + KeyMap_213 = keyMap[213]; + KeyMap_214 = keyMap[214]; + KeyMap_215 = keyMap[215]; + KeyMap_216 = keyMap[216]; + KeyMap_217 = keyMap[217]; + KeyMap_218 = keyMap[218]; + KeyMap_219 = keyMap[219]; + KeyMap_220 = keyMap[220]; + KeyMap_221 = keyMap[221]; + KeyMap_222 = keyMap[222]; + KeyMap_223 = keyMap[223]; + KeyMap_224 = keyMap[224]; + KeyMap_225 = keyMap[225]; + KeyMap_226 = keyMap[226]; + KeyMap_227 = keyMap[227]; + KeyMap_228 = keyMap[228]; + KeyMap_229 = keyMap[229]; + KeyMap_230 = keyMap[230]; + KeyMap_231 = keyMap[231]; + KeyMap_232 = keyMap[232]; + KeyMap_233 = keyMap[233]; + KeyMap_234 = keyMap[234]; + KeyMap_235 = keyMap[235]; + KeyMap_236 = keyMap[236]; + KeyMap_237 = keyMap[237]; + KeyMap_238 = keyMap[238]; + KeyMap_239 = keyMap[239]; + KeyMap_240 = keyMap[240]; + KeyMap_241 = keyMap[241]; + KeyMap_242 = keyMap[242]; + KeyMap_243 = keyMap[243]; + KeyMap_244 = keyMap[244]; + KeyMap_245 = keyMap[245]; + KeyMap_246 = keyMap[246]; + KeyMap_247 = keyMap[247]; + KeyMap_248 = keyMap[248]; + KeyMap_249 = keyMap[249]; + KeyMap_250 = keyMap[250]; + KeyMap_251 = keyMap[251]; + KeyMap_252 = keyMap[252]; + KeyMap_253 = keyMap[253]; + KeyMap_254 = keyMap[254]; + KeyMap_255 = keyMap[255]; + KeyMap_256 = keyMap[256]; + KeyMap_257 = keyMap[257]; + KeyMap_258 = keyMap[258]; + KeyMap_259 = keyMap[259]; + KeyMap_260 = keyMap[260]; + KeyMap_261 = keyMap[261]; + KeyMap_262 = keyMap[262]; + KeyMap_263 = keyMap[263]; + KeyMap_264 = keyMap[264]; + KeyMap_265 = keyMap[265]; + KeyMap_266 = keyMap[266]; + KeyMap_267 = keyMap[267]; + KeyMap_268 = keyMap[268]; + KeyMap_269 = keyMap[269]; + KeyMap_270 = keyMap[270]; + KeyMap_271 = keyMap[271]; + KeyMap_272 = keyMap[272]; + KeyMap_273 = keyMap[273]; + KeyMap_274 = keyMap[274]; + KeyMap_275 = keyMap[275]; + KeyMap_276 = keyMap[276]; + KeyMap_277 = keyMap[277]; + KeyMap_278 = keyMap[278]; + KeyMap_279 = keyMap[279]; + KeyMap_280 = keyMap[280]; + KeyMap_281 = keyMap[281]; + KeyMap_282 = keyMap[282]; + KeyMap_283 = keyMap[283]; + KeyMap_284 = keyMap[284]; + KeyMap_285 = keyMap[285]; + KeyMap_286 = keyMap[286]; + KeyMap_287 = keyMap[287]; + KeyMap_288 = keyMap[288]; + KeyMap_289 = keyMap[289]; + KeyMap_290 = keyMap[290]; + KeyMap_291 = keyMap[291]; + KeyMap_292 = keyMap[292]; + KeyMap_293 = keyMap[293]; + KeyMap_294 = keyMap[294]; + KeyMap_295 = keyMap[295]; + KeyMap_296 = keyMap[296]; + KeyMap_297 = keyMap[297]; + KeyMap_298 = keyMap[298]; + KeyMap_299 = keyMap[299]; + KeyMap_300 = keyMap[300]; + KeyMap_301 = keyMap[301]; + KeyMap_302 = keyMap[302]; + KeyMap_303 = keyMap[303]; + KeyMap_304 = keyMap[304]; + KeyMap_305 = keyMap[305]; + KeyMap_306 = keyMap[306]; + KeyMap_307 = keyMap[307]; + KeyMap_308 = keyMap[308]; + KeyMap_309 = keyMap[309]; + KeyMap_310 = keyMap[310]; + KeyMap_311 = keyMap[311]; + KeyMap_312 = keyMap[312]; + KeyMap_313 = keyMap[313]; + KeyMap_314 = keyMap[314]; + KeyMap_315 = keyMap[315]; + KeyMap_316 = keyMap[316]; + KeyMap_317 = keyMap[317]; + KeyMap_318 = keyMap[318]; + KeyMap_319 = keyMap[319]; + KeyMap_320 = keyMap[320]; + KeyMap_321 = keyMap[321]; + KeyMap_322 = keyMap[322]; + KeyMap_323 = keyMap[323]; + KeyMap_324 = keyMap[324]; + KeyMap_325 = keyMap[325]; + KeyMap_326 = keyMap[326]; + KeyMap_327 = keyMap[327]; + KeyMap_328 = keyMap[328]; + KeyMap_329 = keyMap[329]; + KeyMap_330 = keyMap[330]; + KeyMap_331 = keyMap[331]; + KeyMap_332 = keyMap[332]; + KeyMap_333 = keyMap[333]; + KeyMap_334 = keyMap[334]; + KeyMap_335 = keyMap[335]; + KeyMap_336 = keyMap[336]; + KeyMap_337 = keyMap[337]; + KeyMap_338 = keyMap[338]; + KeyMap_339 = keyMap[339]; + KeyMap_340 = keyMap[340]; + KeyMap_341 = keyMap[341]; + KeyMap_342 = keyMap[342]; + KeyMap_343 = keyMap[343]; + KeyMap_344 = keyMap[344]; + KeyMap_345 = keyMap[345]; + KeyMap_346 = keyMap[346]; + KeyMap_347 = keyMap[347]; + KeyMap_348 = keyMap[348]; + KeyMap_349 = keyMap[349]; + KeyMap_350 = keyMap[350]; + KeyMap_351 = keyMap[351]; + KeyMap_352 = keyMap[352]; + KeyMap_353 = keyMap[353]; + KeyMap_354 = keyMap[354]; + KeyMap_355 = keyMap[355]; + KeyMap_356 = keyMap[356]; + KeyMap_357 = keyMap[357]; + KeyMap_358 = keyMap[358]; + KeyMap_359 = keyMap[359]; + KeyMap_360 = keyMap[360]; + KeyMap_361 = keyMap[361]; + KeyMap_362 = keyMap[362]; + KeyMap_363 = keyMap[363]; + KeyMap_364 = keyMap[364]; + KeyMap_365 = keyMap[365]; + KeyMap_366 = keyMap[366]; + KeyMap_367 = keyMap[367]; + KeyMap_368 = keyMap[368]; + KeyMap_369 = keyMap[369]; + KeyMap_370 = keyMap[370]; + KeyMap_371 = keyMap[371]; + KeyMap_372 = keyMap[372]; + KeyMap_373 = keyMap[373]; + KeyMap_374 = keyMap[374]; + KeyMap_375 = keyMap[375]; + KeyMap_376 = keyMap[376]; + KeyMap_377 = keyMap[377]; + KeyMap_378 = keyMap[378]; + KeyMap_379 = keyMap[379]; + KeyMap_380 = keyMap[380]; + KeyMap_381 = keyMap[381]; + KeyMap_382 = keyMap[382]; + KeyMap_383 = keyMap[383]; + KeyMap_384 = keyMap[384]; + KeyMap_385 = keyMap[385]; + KeyMap_386 = keyMap[386]; + KeyMap_387 = keyMap[387]; + KeyMap_388 = keyMap[388]; + KeyMap_389 = keyMap[389]; + KeyMap_390 = keyMap[390]; + KeyMap_391 = keyMap[391]; + KeyMap_392 = keyMap[392]; + KeyMap_393 = keyMap[393]; + KeyMap_394 = keyMap[394]; + KeyMap_395 = keyMap[395]; + KeyMap_396 = keyMap[396]; + KeyMap_397 = keyMap[397]; + KeyMap_398 = keyMap[398]; + KeyMap_399 = keyMap[399]; + KeyMap_400 = keyMap[400]; + KeyMap_401 = keyMap[401]; + KeyMap_402 = keyMap[402]; + KeyMap_403 = keyMap[403]; + KeyMap_404 = keyMap[404]; + KeyMap_405 = keyMap[405]; + KeyMap_406 = keyMap[406]; + KeyMap_407 = keyMap[407]; + KeyMap_408 = keyMap[408]; + KeyMap_409 = keyMap[409]; + KeyMap_410 = keyMap[410]; + KeyMap_411 = keyMap[411]; + KeyMap_412 = keyMap[412]; + KeyMap_413 = keyMap[413]; + KeyMap_414 = keyMap[414]; + KeyMap_415 = keyMap[415]; + KeyMap_416 = keyMap[416]; + KeyMap_417 = keyMap[417]; + KeyMap_418 = keyMap[418]; + KeyMap_419 = keyMap[419]; + KeyMap_420 = keyMap[420]; + KeyMap_421 = keyMap[421]; + KeyMap_422 = keyMap[422]; + KeyMap_423 = keyMap[423]; + KeyMap_424 = keyMap[424]; + KeyMap_425 = keyMap[425]; + KeyMap_426 = keyMap[426]; + KeyMap_427 = keyMap[427]; + KeyMap_428 = keyMap[428]; + KeyMap_429 = keyMap[429]; + KeyMap_430 = keyMap[430]; + KeyMap_431 = keyMap[431]; + KeyMap_432 = keyMap[432]; + KeyMap_433 = keyMap[433]; + KeyMap_434 = keyMap[434]; + KeyMap_435 = keyMap[435]; + KeyMap_436 = keyMap[436]; + KeyMap_437 = keyMap[437]; + KeyMap_438 = keyMap[438]; + KeyMap_439 = keyMap[439]; + KeyMap_440 = keyMap[440]; + KeyMap_441 = keyMap[441]; + KeyMap_442 = keyMap[442]; + KeyMap_443 = keyMap[443]; + KeyMap_444 = keyMap[444]; + KeyMap_445 = keyMap[445]; + KeyMap_446 = keyMap[446]; + KeyMap_447 = keyMap[447]; + KeyMap_448 = keyMap[448]; + KeyMap_449 = keyMap[449]; + KeyMap_450 = keyMap[450]; + KeyMap_451 = keyMap[451]; + KeyMap_452 = keyMap[452]; + KeyMap_453 = keyMap[453]; + KeyMap_454 = keyMap[454]; + KeyMap_455 = keyMap[455]; + KeyMap_456 = keyMap[456]; + KeyMap_457 = keyMap[457]; + KeyMap_458 = keyMap[458]; + KeyMap_459 = keyMap[459]; + KeyMap_460 = keyMap[460]; + KeyMap_461 = keyMap[461]; + KeyMap_462 = keyMap[462]; + KeyMap_463 = keyMap[463]; + KeyMap_464 = keyMap[464]; + KeyMap_465 = keyMap[465]; + KeyMap_466 = keyMap[466]; + KeyMap_467 = keyMap[467]; + KeyMap_468 = keyMap[468]; + KeyMap_469 = keyMap[469]; + KeyMap_470 = keyMap[470]; + KeyMap_471 = keyMap[471]; + KeyMap_472 = keyMap[472]; + KeyMap_473 = keyMap[473]; + KeyMap_474 = keyMap[474]; + KeyMap_475 = keyMap[475]; + KeyMap_476 = keyMap[476]; + KeyMap_477 = keyMap[477]; + KeyMap_478 = keyMap[478]; + KeyMap_479 = keyMap[479]; + KeyMap_480 = keyMap[480]; + KeyMap_481 = keyMap[481]; + KeyMap_482 = keyMap[482]; + KeyMap_483 = keyMap[483]; + KeyMap_484 = keyMap[484]; + KeyMap_485 = keyMap[485]; + KeyMap_486 = keyMap[486]; + KeyMap_487 = keyMap[487]; + KeyMap_488 = keyMap[488]; + KeyMap_489 = keyMap[489]; + KeyMap_490 = keyMap[490]; + KeyMap_491 = keyMap[491]; + KeyMap_492 = keyMap[492]; + KeyMap_493 = keyMap[493]; + KeyMap_494 = keyMap[494]; + KeyMap_495 = keyMap[495]; + KeyMap_496 = keyMap[496]; + KeyMap_497 = keyMap[497]; + KeyMap_498 = keyMap[498]; + KeyMap_499 = keyMap[499]; + KeyMap_500 = keyMap[500]; + KeyMap_501 = keyMap[501]; + KeyMap_502 = keyMap[502]; + KeyMap_503 = keyMap[503]; + KeyMap_504 = keyMap[504]; + KeyMap_505 = keyMap[505]; + KeyMap_506 = keyMap[506]; + KeyMap_507 = keyMap[507]; + KeyMap_508 = keyMap[508]; + KeyMap_509 = keyMap[509]; + KeyMap_510 = keyMap[510]; + KeyMap_511 = keyMap[511]; + KeyMap_512 = keyMap[512]; + KeyMap_513 = keyMap[513]; + KeyMap_514 = keyMap[514]; + KeyMap_515 = keyMap[515]; + KeyMap_516 = keyMap[516]; + KeyMap_517 = keyMap[517]; + KeyMap_518 = keyMap[518]; + KeyMap_519 = keyMap[519]; + KeyMap_520 = keyMap[520]; + KeyMap_521 = keyMap[521]; + KeyMap_522 = keyMap[522]; + KeyMap_523 = keyMap[523]; + KeyMap_524 = keyMap[524]; + KeyMap_525 = keyMap[525]; + KeyMap_526 = keyMap[526]; + KeyMap_527 = keyMap[527]; + KeyMap_528 = keyMap[528]; + KeyMap_529 = keyMap[529]; + KeyMap_530 = keyMap[530]; + KeyMap_531 = keyMap[531]; + KeyMap_532 = keyMap[532]; + KeyMap_533 = keyMap[533]; + KeyMap_534 = keyMap[534]; + KeyMap_535 = keyMap[535]; + KeyMap_536 = keyMap[536]; + KeyMap_537 = keyMap[537]; + KeyMap_538 = keyMap[538]; + KeyMap_539 = keyMap[539]; + KeyMap_540 = keyMap[540]; + KeyMap_541 = keyMap[541]; + KeyMap_542 = keyMap[542]; + KeyMap_543 = keyMap[543]; + KeyMap_544 = keyMap[544]; + KeyMap_545 = keyMap[545]; + KeyMap_546 = keyMap[546]; + KeyMap_547 = keyMap[547]; + KeyMap_548 = keyMap[548]; + KeyMap_549 = keyMap[549]; + KeyMap_550 = keyMap[550]; + KeyMap_551 = keyMap[551]; + KeyMap_552 = keyMap[552]; + KeyMap_553 = keyMap[553]; + KeyMap_554 = keyMap[554]; + KeyMap_555 = keyMap[555]; + KeyMap_556 = keyMap[556]; + KeyMap_557 = keyMap[557]; + KeyMap_558 = keyMap[558]; + KeyMap_559 = keyMap[559]; + KeyMap_560 = keyMap[560]; + KeyMap_561 = keyMap[561]; + KeyMap_562 = keyMap[562]; + KeyMap_563 = keyMap[563]; + KeyMap_564 = keyMap[564]; + KeyMap_565 = keyMap[565]; + KeyMap_566 = keyMap[566]; + KeyMap_567 = keyMap[567]; + KeyMap_568 = keyMap[568]; + KeyMap_569 = keyMap[569]; + KeyMap_570 = keyMap[570]; + KeyMap_571 = keyMap[571]; + KeyMap_572 = keyMap[572]; + KeyMap_573 = keyMap[573]; + KeyMap_574 = keyMap[574]; + KeyMap_575 = keyMap[575]; + KeyMap_576 = keyMap[576]; + KeyMap_577 = keyMap[577]; + KeyMap_578 = keyMap[578]; + KeyMap_579 = keyMap[579]; + KeyMap_580 = keyMap[580]; + KeyMap_581 = keyMap[581]; + KeyMap_582 = keyMap[582]; + KeyMap_583 = keyMap[583]; + KeyMap_584 = keyMap[584]; + KeyMap_585 = keyMap[585]; + KeyMap_586 = keyMap[586]; + KeyMap_587 = keyMap[587]; + KeyMap_588 = keyMap[588]; + KeyMap_589 = keyMap[589]; + KeyMap_590 = keyMap[590]; + KeyMap_591 = keyMap[591]; + KeyMap_592 = keyMap[592]; + KeyMap_593 = keyMap[593]; + KeyMap_594 = keyMap[594]; + KeyMap_595 = keyMap[595]; + KeyMap_596 = keyMap[596]; + KeyMap_597 = keyMap[597]; + KeyMap_598 = keyMap[598]; + KeyMap_599 = keyMap[599]; + KeyMap_600 = keyMap[600]; + KeyMap_601 = keyMap[601]; + KeyMap_602 = keyMap[602]; + KeyMap_603 = keyMap[603]; + KeyMap_604 = keyMap[604]; + KeyMap_605 = keyMap[605]; + KeyMap_606 = keyMap[606]; + KeyMap_607 = keyMap[607]; + KeyMap_608 = keyMap[608]; + KeyMap_609 = keyMap[609]; + KeyMap_610 = keyMap[610]; + KeyMap_611 = keyMap[611]; + KeyMap_612 = keyMap[612]; + KeyMap_613 = keyMap[613]; + KeyMap_614 = keyMap[614]; + KeyMap_615 = keyMap[615]; + KeyMap_616 = keyMap[616]; + KeyMap_617 = keyMap[617]; + KeyMap_618 = keyMap[618]; + KeyMap_619 = keyMap[619]; + KeyMap_620 = keyMap[620]; + KeyMap_621 = keyMap[621]; + KeyMap_622 = keyMap[622]; + KeyMap_623 = keyMap[623]; + KeyMap_624 = keyMap[624]; + KeyMap_625 = keyMap[625]; + KeyMap_626 = keyMap[626]; + KeyMap_627 = keyMap[627]; + KeyMap_628 = keyMap[628]; + KeyMap_629 = keyMap[629]; + KeyMap_630 = keyMap[630]; + KeyMap_631 = keyMap[631]; + KeyMap_632 = keyMap[632]; + KeyMap_633 = keyMap[633]; + KeyMap_634 = keyMap[634]; + KeyMap_635 = keyMap[635]; + KeyMap_636 = keyMap[636]; + KeyMap_637 = keyMap[637]; + KeyMap_638 = keyMap[638]; + KeyMap_639 = keyMap[639]; + KeyMap_640 = keyMap[640]; + KeyMap_641 = keyMap[641]; + KeyMap_642 = keyMap[642]; + KeyMap_643 = keyMap[643]; + KeyMap_644 = keyMap[644]; + KeyMap_645 = keyMap[645]; + KeyMap_646 = keyMap[646]; + KeyMap_647 = keyMap[647]; + KeyMap_648 = keyMap[648]; + KeyMap_649 = keyMap[649]; + KeyMap_650 = keyMap[650]; + KeyMap_651 = keyMap[651]; + KeyMap_652 = keyMap[652]; + KeyMap_653 = keyMap[653]; + KeyMap_654 = keyMap[654]; + KeyMap_655 = keyMap[655]; + KeyMap_656 = keyMap[656]; + KeyMap_657 = keyMap[657]; + KeyMap_658 = keyMap[658]; + KeyMap_659 = keyMap[659]; + KeyMap_660 = keyMap[660]; + KeyMap_661 = keyMap[661]; + KeyMap_662 = keyMap[662]; + KeyMap_663 = keyMap[663]; + KeyMap_664 = keyMap[664]; + KeyMap_665 = keyMap[665]; + } + if (keysDown != default) + { + KeysDown_0 = keysDown[0]; + KeysDown_1 = keysDown[1]; + KeysDown_2 = keysDown[2]; + KeysDown_3 = keysDown[3]; + KeysDown_4 = keysDown[4]; + KeysDown_5 = keysDown[5]; + KeysDown_6 = keysDown[6]; + KeysDown_7 = keysDown[7]; + KeysDown_8 = keysDown[8]; + KeysDown_9 = keysDown[9]; + KeysDown_10 = keysDown[10]; + KeysDown_11 = keysDown[11]; + KeysDown_12 = keysDown[12]; + KeysDown_13 = keysDown[13]; + KeysDown_14 = keysDown[14]; + KeysDown_15 = keysDown[15]; + KeysDown_16 = keysDown[16]; + KeysDown_17 = keysDown[17]; + KeysDown_18 = keysDown[18]; + KeysDown_19 = keysDown[19]; + KeysDown_20 = keysDown[20]; + KeysDown_21 = keysDown[21]; + KeysDown_22 = keysDown[22]; + KeysDown_23 = keysDown[23]; + KeysDown_24 = keysDown[24]; + KeysDown_25 = keysDown[25]; + KeysDown_26 = keysDown[26]; + KeysDown_27 = keysDown[27]; + KeysDown_28 = keysDown[28]; + KeysDown_29 = keysDown[29]; + KeysDown_30 = keysDown[30]; + KeysDown_31 = keysDown[31]; + KeysDown_32 = keysDown[32]; + KeysDown_33 = keysDown[33]; + KeysDown_34 = keysDown[34]; + KeysDown_35 = keysDown[35]; + KeysDown_36 = keysDown[36]; + KeysDown_37 = keysDown[37]; + KeysDown_38 = keysDown[38]; + KeysDown_39 = keysDown[39]; + KeysDown_40 = keysDown[40]; + KeysDown_41 = keysDown[41]; + KeysDown_42 = keysDown[42]; + KeysDown_43 = keysDown[43]; + KeysDown_44 = keysDown[44]; + KeysDown_45 = keysDown[45]; + KeysDown_46 = keysDown[46]; + KeysDown_47 = keysDown[47]; + KeysDown_48 = keysDown[48]; + KeysDown_49 = keysDown[49]; + KeysDown_50 = keysDown[50]; + KeysDown_51 = keysDown[51]; + KeysDown_52 = keysDown[52]; + KeysDown_53 = keysDown[53]; + KeysDown_54 = keysDown[54]; + KeysDown_55 = keysDown[55]; + KeysDown_56 = keysDown[56]; + KeysDown_57 = keysDown[57]; + KeysDown_58 = keysDown[58]; + KeysDown_59 = keysDown[59]; + KeysDown_60 = keysDown[60]; + KeysDown_61 = keysDown[61]; + KeysDown_62 = keysDown[62]; + KeysDown_63 = keysDown[63]; + KeysDown_64 = keysDown[64]; + KeysDown_65 = keysDown[65]; + KeysDown_66 = keysDown[66]; + KeysDown_67 = keysDown[67]; + KeysDown_68 = keysDown[68]; + KeysDown_69 = keysDown[69]; + KeysDown_70 = keysDown[70]; + KeysDown_71 = keysDown[71]; + KeysDown_72 = keysDown[72]; + KeysDown_73 = keysDown[73]; + KeysDown_74 = keysDown[74]; + KeysDown_75 = keysDown[75]; + KeysDown_76 = keysDown[76]; + KeysDown_77 = keysDown[77]; + KeysDown_78 = keysDown[78]; + KeysDown_79 = keysDown[79]; + KeysDown_80 = keysDown[80]; + KeysDown_81 = keysDown[81]; + KeysDown_82 = keysDown[82]; + KeysDown_83 = keysDown[83]; + KeysDown_84 = keysDown[84]; + KeysDown_85 = keysDown[85]; + KeysDown_86 = keysDown[86]; + KeysDown_87 = keysDown[87]; + KeysDown_88 = keysDown[88]; + KeysDown_89 = keysDown[89]; + KeysDown_90 = keysDown[90]; + KeysDown_91 = keysDown[91]; + KeysDown_92 = keysDown[92]; + KeysDown_93 = keysDown[93]; + KeysDown_94 = keysDown[94]; + KeysDown_95 = keysDown[95]; + KeysDown_96 = keysDown[96]; + KeysDown_97 = keysDown[97]; + KeysDown_98 = keysDown[98]; + KeysDown_99 = keysDown[99]; + KeysDown_100 = keysDown[100]; + KeysDown_101 = keysDown[101]; + KeysDown_102 = keysDown[102]; + KeysDown_103 = keysDown[103]; + KeysDown_104 = keysDown[104]; + KeysDown_105 = keysDown[105]; + KeysDown_106 = keysDown[106]; + KeysDown_107 = keysDown[107]; + KeysDown_108 = keysDown[108]; + KeysDown_109 = keysDown[109]; + KeysDown_110 = keysDown[110]; + KeysDown_111 = keysDown[111]; + KeysDown_112 = keysDown[112]; + KeysDown_113 = keysDown[113]; + KeysDown_114 = keysDown[114]; + KeysDown_115 = keysDown[115]; + KeysDown_116 = keysDown[116]; + KeysDown_117 = keysDown[117]; + KeysDown_118 = keysDown[118]; + KeysDown_119 = keysDown[119]; + KeysDown_120 = keysDown[120]; + KeysDown_121 = keysDown[121]; + KeysDown_122 = keysDown[122]; + KeysDown_123 = keysDown[123]; + KeysDown_124 = keysDown[124]; + KeysDown_125 = keysDown[125]; + KeysDown_126 = keysDown[126]; + KeysDown_127 = keysDown[127]; + KeysDown_128 = keysDown[128]; + KeysDown_129 = keysDown[129]; + KeysDown_130 = keysDown[130]; + KeysDown_131 = keysDown[131]; + KeysDown_132 = keysDown[132]; + KeysDown_133 = keysDown[133]; + KeysDown_134 = keysDown[134]; + KeysDown_135 = keysDown[135]; + KeysDown_136 = keysDown[136]; + KeysDown_137 = keysDown[137]; + KeysDown_138 = keysDown[138]; + KeysDown_139 = keysDown[139]; + KeysDown_140 = keysDown[140]; + KeysDown_141 = keysDown[141]; + KeysDown_142 = keysDown[142]; + KeysDown_143 = keysDown[143]; + KeysDown_144 = keysDown[144]; + KeysDown_145 = keysDown[145]; + KeysDown_146 = keysDown[146]; + KeysDown_147 = keysDown[147]; + KeysDown_148 = keysDown[148]; + KeysDown_149 = keysDown[149]; + KeysDown_150 = keysDown[150]; + KeysDown_151 = keysDown[151]; + KeysDown_152 = keysDown[152]; + KeysDown_153 = keysDown[153]; + KeysDown_154 = keysDown[154]; + KeysDown_155 = keysDown[155]; + KeysDown_156 = keysDown[156]; + KeysDown_157 = keysDown[157]; + KeysDown_158 = keysDown[158]; + KeysDown_159 = keysDown[159]; + KeysDown_160 = keysDown[160]; + KeysDown_161 = keysDown[161]; + KeysDown_162 = keysDown[162]; + KeysDown_163 = keysDown[163]; + KeysDown_164 = keysDown[164]; + KeysDown_165 = keysDown[165]; + KeysDown_166 = keysDown[166]; + KeysDown_167 = keysDown[167]; + KeysDown_168 = keysDown[168]; + KeysDown_169 = keysDown[169]; + KeysDown_170 = keysDown[170]; + KeysDown_171 = keysDown[171]; + KeysDown_172 = keysDown[172]; + KeysDown_173 = keysDown[173]; + KeysDown_174 = keysDown[174]; + KeysDown_175 = keysDown[175]; + KeysDown_176 = keysDown[176]; + KeysDown_177 = keysDown[177]; + KeysDown_178 = keysDown[178]; + KeysDown_179 = keysDown[179]; + KeysDown_180 = keysDown[180]; + KeysDown_181 = keysDown[181]; + KeysDown_182 = keysDown[182]; + KeysDown_183 = keysDown[183]; + KeysDown_184 = keysDown[184]; + KeysDown_185 = keysDown[185]; + KeysDown_186 = keysDown[186]; + KeysDown_187 = keysDown[187]; + KeysDown_188 = keysDown[188]; + KeysDown_189 = keysDown[189]; + KeysDown_190 = keysDown[190]; + KeysDown_191 = keysDown[191]; + KeysDown_192 = keysDown[192]; + KeysDown_193 = keysDown[193]; + KeysDown_194 = keysDown[194]; + KeysDown_195 = keysDown[195]; + KeysDown_196 = keysDown[196]; + KeysDown_197 = keysDown[197]; + KeysDown_198 = keysDown[198]; + KeysDown_199 = keysDown[199]; + KeysDown_200 = keysDown[200]; + KeysDown_201 = keysDown[201]; + KeysDown_202 = keysDown[202]; + KeysDown_203 = keysDown[203]; + KeysDown_204 = keysDown[204]; + KeysDown_205 = keysDown[205]; + KeysDown_206 = keysDown[206]; + KeysDown_207 = keysDown[207]; + KeysDown_208 = keysDown[208]; + KeysDown_209 = keysDown[209]; + KeysDown_210 = keysDown[210]; + KeysDown_211 = keysDown[211]; + KeysDown_212 = keysDown[212]; + KeysDown_213 = keysDown[213]; + KeysDown_214 = keysDown[214]; + KeysDown_215 = keysDown[215]; + KeysDown_216 = keysDown[216]; + KeysDown_217 = keysDown[217]; + KeysDown_218 = keysDown[218]; + KeysDown_219 = keysDown[219]; + KeysDown_220 = keysDown[220]; + KeysDown_221 = keysDown[221]; + KeysDown_222 = keysDown[222]; + KeysDown_223 = keysDown[223]; + KeysDown_224 = keysDown[224]; + KeysDown_225 = keysDown[225]; + KeysDown_226 = keysDown[226]; + KeysDown_227 = keysDown[227]; + KeysDown_228 = keysDown[228]; + KeysDown_229 = keysDown[229]; + KeysDown_230 = keysDown[230]; + KeysDown_231 = keysDown[231]; + KeysDown_232 = keysDown[232]; + KeysDown_233 = keysDown[233]; + KeysDown_234 = keysDown[234]; + KeysDown_235 = keysDown[235]; + KeysDown_236 = keysDown[236]; + KeysDown_237 = keysDown[237]; + KeysDown_238 = keysDown[238]; + KeysDown_239 = keysDown[239]; + KeysDown_240 = keysDown[240]; + KeysDown_241 = keysDown[241]; + KeysDown_242 = keysDown[242]; + KeysDown_243 = keysDown[243]; + KeysDown_244 = keysDown[244]; + KeysDown_245 = keysDown[245]; + KeysDown_246 = keysDown[246]; + KeysDown_247 = keysDown[247]; + KeysDown_248 = keysDown[248]; + KeysDown_249 = keysDown[249]; + KeysDown_250 = keysDown[250]; + KeysDown_251 = keysDown[251]; + KeysDown_252 = keysDown[252]; + KeysDown_253 = keysDown[253]; + KeysDown_254 = keysDown[254]; + KeysDown_255 = keysDown[255]; + KeysDown_256 = keysDown[256]; + KeysDown_257 = keysDown[257]; + KeysDown_258 = keysDown[258]; + KeysDown_259 = keysDown[259]; + KeysDown_260 = keysDown[260]; + KeysDown_261 = keysDown[261]; + KeysDown_262 = keysDown[262]; + KeysDown_263 = keysDown[263]; + KeysDown_264 = keysDown[264]; + KeysDown_265 = keysDown[265]; + KeysDown_266 = keysDown[266]; + KeysDown_267 = keysDown[267]; + KeysDown_268 = keysDown[268]; + KeysDown_269 = keysDown[269]; + KeysDown_270 = keysDown[270]; + KeysDown_271 = keysDown[271]; + KeysDown_272 = keysDown[272]; + KeysDown_273 = keysDown[273]; + KeysDown_274 = keysDown[274]; + KeysDown_275 = keysDown[275]; + KeysDown_276 = keysDown[276]; + KeysDown_277 = keysDown[277]; + KeysDown_278 = keysDown[278]; + KeysDown_279 = keysDown[279]; + KeysDown_280 = keysDown[280]; + KeysDown_281 = keysDown[281]; + KeysDown_282 = keysDown[282]; + KeysDown_283 = keysDown[283]; + KeysDown_284 = keysDown[284]; + KeysDown_285 = keysDown[285]; + KeysDown_286 = keysDown[286]; + KeysDown_287 = keysDown[287]; + KeysDown_288 = keysDown[288]; + KeysDown_289 = keysDown[289]; + KeysDown_290 = keysDown[290]; + KeysDown_291 = keysDown[291]; + KeysDown_292 = keysDown[292]; + KeysDown_293 = keysDown[293]; + KeysDown_294 = keysDown[294]; + KeysDown_295 = keysDown[295]; + KeysDown_296 = keysDown[296]; + KeysDown_297 = keysDown[297]; + KeysDown_298 = keysDown[298]; + KeysDown_299 = keysDown[299]; + KeysDown_300 = keysDown[300]; + KeysDown_301 = keysDown[301]; + KeysDown_302 = keysDown[302]; + KeysDown_303 = keysDown[303]; + KeysDown_304 = keysDown[304]; + KeysDown_305 = keysDown[305]; + KeysDown_306 = keysDown[306]; + KeysDown_307 = keysDown[307]; + KeysDown_308 = keysDown[308]; + KeysDown_309 = keysDown[309]; + KeysDown_310 = keysDown[310]; + KeysDown_311 = keysDown[311]; + KeysDown_312 = keysDown[312]; + KeysDown_313 = keysDown[313]; + KeysDown_314 = keysDown[314]; + KeysDown_315 = keysDown[315]; + KeysDown_316 = keysDown[316]; + KeysDown_317 = keysDown[317]; + KeysDown_318 = keysDown[318]; + KeysDown_319 = keysDown[319]; + KeysDown_320 = keysDown[320]; + KeysDown_321 = keysDown[321]; + KeysDown_322 = keysDown[322]; + KeysDown_323 = keysDown[323]; + KeysDown_324 = keysDown[324]; + KeysDown_325 = keysDown[325]; + KeysDown_326 = keysDown[326]; + KeysDown_327 = keysDown[327]; + KeysDown_328 = keysDown[328]; + KeysDown_329 = keysDown[329]; + KeysDown_330 = keysDown[330]; + KeysDown_331 = keysDown[331]; + KeysDown_332 = keysDown[332]; + KeysDown_333 = keysDown[333]; + KeysDown_334 = keysDown[334]; + KeysDown_335 = keysDown[335]; + KeysDown_336 = keysDown[336]; + KeysDown_337 = keysDown[337]; + KeysDown_338 = keysDown[338]; + KeysDown_339 = keysDown[339]; + KeysDown_340 = keysDown[340]; + KeysDown_341 = keysDown[341]; + KeysDown_342 = keysDown[342]; + KeysDown_343 = keysDown[343]; + KeysDown_344 = keysDown[344]; + KeysDown_345 = keysDown[345]; + KeysDown_346 = keysDown[346]; + KeysDown_347 = keysDown[347]; + KeysDown_348 = keysDown[348]; + KeysDown_349 = keysDown[349]; + KeysDown_350 = keysDown[350]; + KeysDown_351 = keysDown[351]; + KeysDown_352 = keysDown[352]; + KeysDown_353 = keysDown[353]; + KeysDown_354 = keysDown[354]; + KeysDown_355 = keysDown[355]; + KeysDown_356 = keysDown[356]; + KeysDown_357 = keysDown[357]; + KeysDown_358 = keysDown[358]; + KeysDown_359 = keysDown[359]; + KeysDown_360 = keysDown[360]; + KeysDown_361 = keysDown[361]; + KeysDown_362 = keysDown[362]; + KeysDown_363 = keysDown[363]; + KeysDown_364 = keysDown[364]; + KeysDown_365 = keysDown[365]; + KeysDown_366 = keysDown[366]; + KeysDown_367 = keysDown[367]; + KeysDown_368 = keysDown[368]; + KeysDown_369 = keysDown[369]; + KeysDown_370 = keysDown[370]; + KeysDown_371 = keysDown[371]; + KeysDown_372 = keysDown[372]; + KeysDown_373 = keysDown[373]; + KeysDown_374 = keysDown[374]; + KeysDown_375 = keysDown[375]; + KeysDown_376 = keysDown[376]; + KeysDown_377 = keysDown[377]; + KeysDown_378 = keysDown[378]; + KeysDown_379 = keysDown[379]; + KeysDown_380 = keysDown[380]; + KeysDown_381 = keysDown[381]; + KeysDown_382 = keysDown[382]; + KeysDown_383 = keysDown[383]; + KeysDown_384 = keysDown[384]; + KeysDown_385 = keysDown[385]; + KeysDown_386 = keysDown[386]; + KeysDown_387 = keysDown[387]; + KeysDown_388 = keysDown[388]; + KeysDown_389 = keysDown[389]; + KeysDown_390 = keysDown[390]; + KeysDown_391 = keysDown[391]; + KeysDown_392 = keysDown[392]; + KeysDown_393 = keysDown[393]; + KeysDown_394 = keysDown[394]; + KeysDown_395 = keysDown[395]; + KeysDown_396 = keysDown[396]; + KeysDown_397 = keysDown[397]; + KeysDown_398 = keysDown[398]; + KeysDown_399 = keysDown[399]; + KeysDown_400 = keysDown[400]; + KeysDown_401 = keysDown[401]; + KeysDown_402 = keysDown[402]; + KeysDown_403 = keysDown[403]; + KeysDown_404 = keysDown[404]; + KeysDown_405 = keysDown[405]; + KeysDown_406 = keysDown[406]; + KeysDown_407 = keysDown[407]; + KeysDown_408 = keysDown[408]; + KeysDown_409 = keysDown[409]; + KeysDown_410 = keysDown[410]; + KeysDown_411 = keysDown[411]; + KeysDown_412 = keysDown[412]; + KeysDown_413 = keysDown[413]; + KeysDown_414 = keysDown[414]; + KeysDown_415 = keysDown[415]; + KeysDown_416 = keysDown[416]; + KeysDown_417 = keysDown[417]; + KeysDown_418 = keysDown[418]; + KeysDown_419 = keysDown[419]; + KeysDown_420 = keysDown[420]; + KeysDown_421 = keysDown[421]; + KeysDown_422 = keysDown[422]; + KeysDown_423 = keysDown[423]; + KeysDown_424 = keysDown[424]; + KeysDown_425 = keysDown[425]; + KeysDown_426 = keysDown[426]; + KeysDown_427 = keysDown[427]; + KeysDown_428 = keysDown[428]; + KeysDown_429 = keysDown[429]; + KeysDown_430 = keysDown[430]; + KeysDown_431 = keysDown[431]; + KeysDown_432 = keysDown[432]; + KeysDown_433 = keysDown[433]; + KeysDown_434 = keysDown[434]; + KeysDown_435 = keysDown[435]; + KeysDown_436 = keysDown[436]; + KeysDown_437 = keysDown[437]; + KeysDown_438 = keysDown[438]; + KeysDown_439 = keysDown[439]; + KeysDown_440 = keysDown[440]; + KeysDown_441 = keysDown[441]; + KeysDown_442 = keysDown[442]; + KeysDown_443 = keysDown[443]; + KeysDown_444 = keysDown[444]; + KeysDown_445 = keysDown[445]; + KeysDown_446 = keysDown[446]; + KeysDown_447 = keysDown[447]; + KeysDown_448 = keysDown[448]; + KeysDown_449 = keysDown[449]; + KeysDown_450 = keysDown[450]; + KeysDown_451 = keysDown[451]; + KeysDown_452 = keysDown[452]; + KeysDown_453 = keysDown[453]; + KeysDown_454 = keysDown[454]; + KeysDown_455 = keysDown[455]; + KeysDown_456 = keysDown[456]; + KeysDown_457 = keysDown[457]; + KeysDown_458 = keysDown[458]; + KeysDown_459 = keysDown[459]; + KeysDown_460 = keysDown[460]; + KeysDown_461 = keysDown[461]; + KeysDown_462 = keysDown[462]; + KeysDown_463 = keysDown[463]; + KeysDown_464 = keysDown[464]; + KeysDown_465 = keysDown[465]; + KeysDown_466 = keysDown[466]; + KeysDown_467 = keysDown[467]; + KeysDown_468 = keysDown[468]; + KeysDown_469 = keysDown[469]; + KeysDown_470 = keysDown[470]; + KeysDown_471 = keysDown[471]; + KeysDown_472 = keysDown[472]; + KeysDown_473 = keysDown[473]; + KeysDown_474 = keysDown[474]; + KeysDown_475 = keysDown[475]; + KeysDown_476 = keysDown[476]; + KeysDown_477 = keysDown[477]; + KeysDown_478 = keysDown[478]; + KeysDown_479 = keysDown[479]; + KeysDown_480 = keysDown[480]; + KeysDown_481 = keysDown[481]; + KeysDown_482 = keysDown[482]; + KeysDown_483 = keysDown[483]; + KeysDown_484 = keysDown[484]; + KeysDown_485 = keysDown[485]; + KeysDown_486 = keysDown[486]; + KeysDown_487 = keysDown[487]; + KeysDown_488 = keysDown[488]; + KeysDown_489 = keysDown[489]; + KeysDown_490 = keysDown[490]; + KeysDown_491 = keysDown[491]; + KeysDown_492 = keysDown[492]; + KeysDown_493 = keysDown[493]; + KeysDown_494 = keysDown[494]; + KeysDown_495 = keysDown[495]; + KeysDown_496 = keysDown[496]; + KeysDown_497 = keysDown[497]; + KeysDown_498 = keysDown[498]; + KeysDown_499 = keysDown[499]; + KeysDown_500 = keysDown[500]; + KeysDown_501 = keysDown[501]; + KeysDown_502 = keysDown[502]; + KeysDown_503 = keysDown[503]; + KeysDown_504 = keysDown[504]; + KeysDown_505 = keysDown[505]; + KeysDown_506 = keysDown[506]; + KeysDown_507 = keysDown[507]; + KeysDown_508 = keysDown[508]; + KeysDown_509 = keysDown[509]; + KeysDown_510 = keysDown[510]; + KeysDown_511 = keysDown[511]; + KeysDown_512 = keysDown[512]; + KeysDown_513 = keysDown[513]; + KeysDown_514 = keysDown[514]; + KeysDown_515 = keysDown[515]; + KeysDown_516 = keysDown[516]; + KeysDown_517 = keysDown[517]; + KeysDown_518 = keysDown[518]; + KeysDown_519 = keysDown[519]; + KeysDown_520 = keysDown[520]; + KeysDown_521 = keysDown[521]; + KeysDown_522 = keysDown[522]; + KeysDown_523 = keysDown[523]; + KeysDown_524 = keysDown[524]; + KeysDown_525 = keysDown[525]; + KeysDown_526 = keysDown[526]; + KeysDown_527 = keysDown[527]; + KeysDown_528 = keysDown[528]; + KeysDown_529 = keysDown[529]; + KeysDown_530 = keysDown[530]; + KeysDown_531 = keysDown[531]; + KeysDown_532 = keysDown[532]; + KeysDown_533 = keysDown[533]; + KeysDown_534 = keysDown[534]; + KeysDown_535 = keysDown[535]; + KeysDown_536 = keysDown[536]; + KeysDown_537 = keysDown[537]; + KeysDown_538 = keysDown[538]; + KeysDown_539 = keysDown[539]; + KeysDown_540 = keysDown[540]; + KeysDown_541 = keysDown[541]; + KeysDown_542 = keysDown[542]; + KeysDown_543 = keysDown[543]; + KeysDown_544 = keysDown[544]; + KeysDown_545 = keysDown[545]; + KeysDown_546 = keysDown[546]; + KeysDown_547 = keysDown[547]; + KeysDown_548 = keysDown[548]; + KeysDown_549 = keysDown[549]; + KeysDown_550 = keysDown[550]; + KeysDown_551 = keysDown[551]; + KeysDown_552 = keysDown[552]; + KeysDown_553 = keysDown[553]; + KeysDown_554 = keysDown[554]; + KeysDown_555 = keysDown[555]; + KeysDown_556 = keysDown[556]; + KeysDown_557 = keysDown[557]; + KeysDown_558 = keysDown[558]; + KeysDown_559 = keysDown[559]; + KeysDown_560 = keysDown[560]; + KeysDown_561 = keysDown[561]; + KeysDown_562 = keysDown[562]; + KeysDown_563 = keysDown[563]; + KeysDown_564 = keysDown[564]; + KeysDown_565 = keysDown[565]; + KeysDown_566 = keysDown[566]; + KeysDown_567 = keysDown[567]; + KeysDown_568 = keysDown[568]; + KeysDown_569 = keysDown[569]; + KeysDown_570 = keysDown[570]; + KeysDown_571 = keysDown[571]; + KeysDown_572 = keysDown[572]; + KeysDown_573 = keysDown[573]; + KeysDown_574 = keysDown[574]; + KeysDown_575 = keysDown[575]; + KeysDown_576 = keysDown[576]; + KeysDown_577 = keysDown[577]; + KeysDown_578 = keysDown[578]; + KeysDown_579 = keysDown[579]; + KeysDown_580 = keysDown[580]; + KeysDown_581 = keysDown[581]; + KeysDown_582 = keysDown[582]; + KeysDown_583 = keysDown[583]; + KeysDown_584 = keysDown[584]; + KeysDown_585 = keysDown[585]; + KeysDown_586 = keysDown[586]; + KeysDown_587 = keysDown[587]; + KeysDown_588 = keysDown[588]; + KeysDown_589 = keysDown[589]; + KeysDown_590 = keysDown[590]; + KeysDown_591 = keysDown[591]; + KeysDown_592 = keysDown[592]; + KeysDown_593 = keysDown[593]; + KeysDown_594 = keysDown[594]; + KeysDown_595 = keysDown[595]; + KeysDown_596 = keysDown[596]; + KeysDown_597 = keysDown[597]; + KeysDown_598 = keysDown[598]; + KeysDown_599 = keysDown[599]; + KeysDown_600 = keysDown[600]; + KeysDown_601 = keysDown[601]; + KeysDown_602 = keysDown[602]; + KeysDown_603 = keysDown[603]; + KeysDown_604 = keysDown[604]; + KeysDown_605 = keysDown[605]; + KeysDown_606 = keysDown[606]; + KeysDown_607 = keysDown[607]; + KeysDown_608 = keysDown[608]; + KeysDown_609 = keysDown[609]; + KeysDown_610 = keysDown[610]; + KeysDown_611 = keysDown[611]; + KeysDown_612 = keysDown[612]; + KeysDown_613 = keysDown[613]; + KeysDown_614 = keysDown[614]; + KeysDown_615 = keysDown[615]; + KeysDown_616 = keysDown[616]; + KeysDown_617 = keysDown[617]; + KeysDown_618 = keysDown[618]; + KeysDown_619 = keysDown[619]; + KeysDown_620 = keysDown[620]; + KeysDown_621 = keysDown[621]; + KeysDown_622 = keysDown[622]; + KeysDown_623 = keysDown[623]; + KeysDown_624 = keysDown[624]; + KeysDown_625 = keysDown[625]; + KeysDown_626 = keysDown[626]; + KeysDown_627 = keysDown[627]; + KeysDown_628 = keysDown[628]; + KeysDown_629 = keysDown[629]; + KeysDown_630 = keysDown[630]; + KeysDown_631 = keysDown[631]; + KeysDown_632 = keysDown[632]; + KeysDown_633 = keysDown[633]; + KeysDown_634 = keysDown[634]; + KeysDown_635 = keysDown[635]; + KeysDown_636 = keysDown[636]; + KeysDown_637 = keysDown[637]; + KeysDown_638 = keysDown[638]; + KeysDown_639 = keysDown[639]; + KeysDown_640 = keysDown[640]; + KeysDown_641 = keysDown[641]; + KeysDown_642 = keysDown[642]; + KeysDown_643 = keysDown[643]; + KeysDown_644 = keysDown[644]; + KeysDown_645 = keysDown[645]; + KeysDown_646 = keysDown[646]; + KeysDown_647 = keysDown[647]; + KeysDown_648 = keysDown[648]; + KeysDown_649 = keysDown[649]; + KeysDown_650 = keysDown[650]; + KeysDown_651 = keysDown[651]; + KeysDown_652 = keysDown[652]; + KeysDown_653 = keysDown[653]; + KeysDown_654 = keysDown[654]; + KeysDown_655 = keysDown[655]; + KeysDown_656 = keysDown[656]; + KeysDown_657 = keysDown[657]; + KeysDown_658 = keysDown[658]; + KeysDown_659 = keysDown[659]; + KeysDown_660 = keysDown[660]; + KeysDown_661 = keysDown[661]; + KeysDown_662 = keysDown[662]; + KeysDown_663 = keysDown[663]; + KeysDown_664 = keysDown[664]; + KeysDown_665 = keysDown[665]; + } + if (navInputs != default) + { + NavInputs_0 = navInputs[0]; + NavInputs_1 = navInputs[1]; + NavInputs_2 = navInputs[2]; + NavInputs_3 = navInputs[3]; + NavInputs_4 = navInputs[4]; + NavInputs_5 = navInputs[5]; + NavInputs_6 = navInputs[6]; + NavInputs_7 = navInputs[7]; + NavInputs_8 = navInputs[8]; + NavInputs_9 = navInputs[9]; + NavInputs_10 = navInputs[10]; + NavInputs_11 = navInputs[11]; + NavInputs_12 = navInputs[12]; + NavInputs_13 = navInputs[13]; + NavInputs_14 = navInputs[14]; + NavInputs_15 = navInputs[15]; + } + UnusedPadding = Unusedpadding; + Ctx = ctx; + MousePos = mousePos; + if (mouseDown != default) + { + MouseDown_0 = mouseDown[0]; + MouseDown_1 = mouseDown[1]; + MouseDown_2 = mouseDown[2]; + MouseDown_3 = mouseDown[3]; + MouseDown_4 = mouseDown[4]; + } + MouseWheel = mouseWheel; + MouseWheelH = mouseWheelH; + MouseSource = mouseSource; + MouseHoveredViewport = mouseHoveredViewport; + KeyCtrl = keyCtrl ? (byte)1 : (byte)0; + KeyShift = keyShift ? (byte)1 : (byte)0; + KeyAlt = keyAlt ? (byte)1 : (byte)0; + KeySuper = keySuper ? (byte)1 : (byte)0; + KeyMods = keyMods; + if (keysData != default) + { + KeysData_0 = keysData[0]; + KeysData_1 = keysData[1]; + KeysData_2 = keysData[2]; + KeysData_3 = keysData[3]; + KeysData_4 = keysData[4]; + KeysData_5 = keysData[5]; + KeysData_6 = keysData[6]; + KeysData_7 = keysData[7]; + KeysData_8 = keysData[8]; + KeysData_9 = keysData[9]; + KeysData_10 = keysData[10]; + KeysData_11 = keysData[11]; + KeysData_12 = keysData[12]; + KeysData_13 = keysData[13]; + KeysData_14 = keysData[14]; + KeysData_15 = keysData[15]; + KeysData_16 = keysData[16]; + KeysData_17 = keysData[17]; + KeysData_18 = keysData[18]; + KeysData_19 = keysData[19]; + KeysData_20 = keysData[20]; + KeysData_21 = keysData[21]; + KeysData_22 = keysData[22]; + KeysData_23 = keysData[23]; + KeysData_24 = keysData[24]; + KeysData_25 = keysData[25]; + KeysData_26 = keysData[26]; + KeysData_27 = keysData[27]; + KeysData_28 = keysData[28]; + KeysData_29 = keysData[29]; + KeysData_30 = keysData[30]; + KeysData_31 = keysData[31]; + KeysData_32 = keysData[32]; + KeysData_33 = keysData[33]; + KeysData_34 = keysData[34]; + KeysData_35 = keysData[35]; + KeysData_36 = keysData[36]; + KeysData_37 = keysData[37]; + KeysData_38 = keysData[38]; + KeysData_39 = keysData[39]; + KeysData_40 = keysData[40]; + KeysData_41 = keysData[41]; + KeysData_42 = keysData[42]; + KeysData_43 = keysData[43]; + KeysData_44 = keysData[44]; + KeysData_45 = keysData[45]; + KeysData_46 = keysData[46]; + KeysData_47 = keysData[47]; + KeysData_48 = keysData[48]; + KeysData_49 = keysData[49]; + KeysData_50 = keysData[50]; + KeysData_51 = keysData[51]; + KeysData_52 = keysData[52]; + KeysData_53 = keysData[53]; + KeysData_54 = keysData[54]; + KeysData_55 = keysData[55]; + KeysData_56 = keysData[56]; + KeysData_57 = keysData[57]; + KeysData_58 = keysData[58]; + KeysData_59 = keysData[59]; + KeysData_60 = keysData[60]; + KeysData_61 = keysData[61]; + KeysData_62 = keysData[62]; + KeysData_63 = keysData[63]; + KeysData_64 = keysData[64]; + KeysData_65 = keysData[65]; + KeysData_66 = keysData[66]; + KeysData_67 = keysData[67]; + KeysData_68 = keysData[68]; + KeysData_69 = keysData[69]; + KeysData_70 = keysData[70]; + KeysData_71 = keysData[71]; + KeysData_72 = keysData[72]; + KeysData_73 = keysData[73]; + KeysData_74 = keysData[74]; + KeysData_75 = keysData[75]; + KeysData_76 = keysData[76]; + KeysData_77 = keysData[77]; + KeysData_78 = keysData[78]; + KeysData_79 = keysData[79]; + KeysData_80 = keysData[80]; + KeysData_81 = keysData[81]; + KeysData_82 = keysData[82]; + KeysData_83 = keysData[83]; + KeysData_84 = keysData[84]; + KeysData_85 = keysData[85]; + KeysData_86 = keysData[86]; + KeysData_87 = keysData[87]; + KeysData_88 = keysData[88]; + KeysData_89 = keysData[89]; + KeysData_90 = keysData[90]; + KeysData_91 = keysData[91]; + KeysData_92 = keysData[92]; + KeysData_93 = keysData[93]; + KeysData_94 = keysData[94]; + KeysData_95 = keysData[95]; + KeysData_96 = keysData[96]; + KeysData_97 = keysData[97]; + KeysData_98 = keysData[98]; + KeysData_99 = keysData[99]; + KeysData_100 = keysData[100]; + KeysData_101 = keysData[101]; + KeysData_102 = keysData[102]; + KeysData_103 = keysData[103]; + KeysData_104 = keysData[104]; + KeysData_105 = keysData[105]; + KeysData_106 = keysData[106]; + KeysData_107 = keysData[107]; + KeysData_108 = keysData[108]; + KeysData_109 = keysData[109]; + KeysData_110 = keysData[110]; + KeysData_111 = keysData[111]; + KeysData_112 = keysData[112]; + KeysData_113 = keysData[113]; + KeysData_114 = keysData[114]; + KeysData_115 = keysData[115]; + KeysData_116 = keysData[116]; + KeysData_117 = keysData[117]; + KeysData_118 = keysData[118]; + KeysData_119 = keysData[119]; + KeysData_120 = keysData[120]; + KeysData_121 = keysData[121]; + KeysData_122 = keysData[122]; + KeysData_123 = keysData[123]; + KeysData_124 = keysData[124]; + KeysData_125 = keysData[125]; + KeysData_126 = keysData[126]; + KeysData_127 = keysData[127]; + KeysData_128 = keysData[128]; + KeysData_129 = keysData[129]; + KeysData_130 = keysData[130]; + KeysData_131 = keysData[131]; + KeysData_132 = keysData[132]; + KeysData_133 = keysData[133]; + KeysData_134 = keysData[134]; + KeysData_135 = keysData[135]; + KeysData_136 = keysData[136]; + KeysData_137 = keysData[137]; + KeysData_138 = keysData[138]; + KeysData_139 = keysData[139]; + KeysData_140 = keysData[140]; + KeysData_141 = keysData[141]; + KeysData_142 = keysData[142]; + KeysData_143 = keysData[143]; + KeysData_144 = keysData[144]; + KeysData_145 = keysData[145]; + KeysData_146 = keysData[146]; + KeysData_147 = keysData[147]; + KeysData_148 = keysData[148]; + KeysData_149 = keysData[149]; + KeysData_150 = keysData[150]; + KeysData_151 = keysData[151]; + KeysData_152 = keysData[152]; + KeysData_153 = keysData[153]; + KeysData_154 = keysData[154]; + KeysData_155 = keysData[155]; + KeysData_156 = keysData[156]; + KeysData_157 = keysData[157]; + KeysData_158 = keysData[158]; + KeysData_159 = keysData[159]; + KeysData_160 = keysData[160]; + KeysData_161 = keysData[161]; + KeysData_162 = keysData[162]; + KeysData_163 = keysData[163]; + KeysData_164 = keysData[164]; + KeysData_165 = keysData[165]; + KeysData_166 = keysData[166]; + KeysData_167 = keysData[167]; + KeysData_168 = keysData[168]; + KeysData_169 = keysData[169]; + KeysData_170 = keysData[170]; + KeysData_171 = keysData[171]; + KeysData_172 = keysData[172]; + KeysData_173 = keysData[173]; + KeysData_174 = keysData[174]; + KeysData_175 = keysData[175]; + KeysData_176 = keysData[176]; + KeysData_177 = keysData[177]; + KeysData_178 = keysData[178]; + KeysData_179 = keysData[179]; + KeysData_180 = keysData[180]; + KeysData_181 = keysData[181]; + KeysData_182 = keysData[182]; + KeysData_183 = keysData[183]; + KeysData_184 = keysData[184]; + KeysData_185 = keysData[185]; + KeysData_186 = keysData[186]; + KeysData_187 = keysData[187]; + KeysData_188 = keysData[188]; + KeysData_189 = keysData[189]; + KeysData_190 = keysData[190]; + KeysData_191 = keysData[191]; + KeysData_192 = keysData[192]; + KeysData_193 = keysData[193]; + KeysData_194 = keysData[194]; + KeysData_195 = keysData[195]; + KeysData_196 = keysData[196]; + KeysData_197 = keysData[197]; + KeysData_198 = keysData[198]; + KeysData_199 = keysData[199]; + KeysData_200 = keysData[200]; + KeysData_201 = keysData[201]; + KeysData_202 = keysData[202]; + KeysData_203 = keysData[203]; + KeysData_204 = keysData[204]; + KeysData_205 = keysData[205]; + KeysData_206 = keysData[206]; + KeysData_207 = keysData[207]; + KeysData_208 = keysData[208]; + KeysData_209 = keysData[209]; + KeysData_210 = keysData[210]; + KeysData_211 = keysData[211]; + KeysData_212 = keysData[212]; + KeysData_213 = keysData[213]; + KeysData_214 = keysData[214]; + KeysData_215 = keysData[215]; + KeysData_216 = keysData[216]; + KeysData_217 = keysData[217]; + KeysData_218 = keysData[218]; + KeysData_219 = keysData[219]; + KeysData_220 = keysData[220]; + KeysData_221 = keysData[221]; + KeysData_222 = keysData[222]; + KeysData_223 = keysData[223]; + KeysData_224 = keysData[224]; + KeysData_225 = keysData[225]; + KeysData_226 = keysData[226]; + KeysData_227 = keysData[227]; + KeysData_228 = keysData[228]; + KeysData_229 = keysData[229]; + KeysData_230 = keysData[230]; + KeysData_231 = keysData[231]; + KeysData_232 = keysData[232]; + KeysData_233 = keysData[233]; + KeysData_234 = keysData[234]; + KeysData_235 = keysData[235]; + KeysData_236 = keysData[236]; + KeysData_237 = keysData[237]; + KeysData_238 = keysData[238]; + KeysData_239 = keysData[239]; + KeysData_240 = keysData[240]; + KeysData_241 = keysData[241]; + KeysData_242 = keysData[242]; + KeysData_243 = keysData[243]; + KeysData_244 = keysData[244]; + KeysData_245 = keysData[245]; + KeysData_246 = keysData[246]; + KeysData_247 = keysData[247]; + KeysData_248 = keysData[248]; + KeysData_249 = keysData[249]; + KeysData_250 = keysData[250]; + KeysData_251 = keysData[251]; + KeysData_252 = keysData[252]; + KeysData_253 = keysData[253]; + KeysData_254 = keysData[254]; + KeysData_255 = keysData[255]; + KeysData_256 = keysData[256]; + KeysData_257 = keysData[257]; + KeysData_258 = keysData[258]; + KeysData_259 = keysData[259]; + KeysData_260 = keysData[260]; + KeysData_261 = keysData[261]; + KeysData_262 = keysData[262]; + KeysData_263 = keysData[263]; + KeysData_264 = keysData[264]; + KeysData_265 = keysData[265]; + KeysData_266 = keysData[266]; + KeysData_267 = keysData[267]; + KeysData_268 = keysData[268]; + KeysData_269 = keysData[269]; + KeysData_270 = keysData[270]; + KeysData_271 = keysData[271]; + KeysData_272 = keysData[272]; + KeysData_273 = keysData[273]; + KeysData_274 = keysData[274]; + KeysData_275 = keysData[275]; + KeysData_276 = keysData[276]; + KeysData_277 = keysData[277]; + KeysData_278 = keysData[278]; + KeysData_279 = keysData[279]; + KeysData_280 = keysData[280]; + KeysData_281 = keysData[281]; + KeysData_282 = keysData[282]; + KeysData_283 = keysData[283]; + KeysData_284 = keysData[284]; + KeysData_285 = keysData[285]; + KeysData_286 = keysData[286]; + KeysData_287 = keysData[287]; + KeysData_288 = keysData[288]; + KeysData_289 = keysData[289]; + KeysData_290 = keysData[290]; + KeysData_291 = keysData[291]; + KeysData_292 = keysData[292]; + KeysData_293 = keysData[293]; + KeysData_294 = keysData[294]; + KeysData_295 = keysData[295]; + KeysData_296 = keysData[296]; + KeysData_297 = keysData[297]; + KeysData_298 = keysData[298]; + KeysData_299 = keysData[299]; + KeysData_300 = keysData[300]; + KeysData_301 = keysData[301]; + KeysData_302 = keysData[302]; + KeysData_303 = keysData[303]; + KeysData_304 = keysData[304]; + KeysData_305 = keysData[305]; + KeysData_306 = keysData[306]; + KeysData_307 = keysData[307]; + KeysData_308 = keysData[308]; + KeysData_309 = keysData[309]; + KeysData_310 = keysData[310]; + KeysData_311 = keysData[311]; + KeysData_312 = keysData[312]; + KeysData_313 = keysData[313]; + KeysData_314 = keysData[314]; + KeysData_315 = keysData[315]; + KeysData_316 = keysData[316]; + KeysData_317 = keysData[317]; + KeysData_318 = keysData[318]; + KeysData_319 = keysData[319]; + KeysData_320 = keysData[320]; + KeysData_321 = keysData[321]; + KeysData_322 = keysData[322]; + KeysData_323 = keysData[323]; + KeysData_324 = keysData[324]; + KeysData_325 = keysData[325]; + KeysData_326 = keysData[326]; + KeysData_327 = keysData[327]; + KeysData_328 = keysData[328]; + KeysData_329 = keysData[329]; + KeysData_330 = keysData[330]; + KeysData_331 = keysData[331]; + KeysData_332 = keysData[332]; + KeysData_333 = keysData[333]; + KeysData_334 = keysData[334]; + KeysData_335 = keysData[335]; + KeysData_336 = keysData[336]; + KeysData_337 = keysData[337]; + KeysData_338 = keysData[338]; + KeysData_339 = keysData[339]; + KeysData_340 = keysData[340]; + KeysData_341 = keysData[341]; + KeysData_342 = keysData[342]; + KeysData_343 = keysData[343]; + KeysData_344 = keysData[344]; + KeysData_345 = keysData[345]; + KeysData_346 = keysData[346]; + KeysData_347 = keysData[347]; + KeysData_348 = keysData[348]; + KeysData_349 = keysData[349]; + KeysData_350 = keysData[350]; + KeysData_351 = keysData[351]; + KeysData_352 = keysData[352]; + KeysData_353 = keysData[353]; + KeysData_354 = keysData[354]; + KeysData_355 = keysData[355]; + KeysData_356 = keysData[356]; + KeysData_357 = keysData[357]; + KeysData_358 = keysData[358]; + KeysData_359 = keysData[359]; + KeysData_360 = keysData[360]; + KeysData_361 = keysData[361]; + KeysData_362 = keysData[362]; + KeysData_363 = keysData[363]; + KeysData_364 = keysData[364]; + KeysData_365 = keysData[365]; + KeysData_366 = keysData[366]; + KeysData_367 = keysData[367]; + KeysData_368 = keysData[368]; + KeysData_369 = keysData[369]; + KeysData_370 = keysData[370]; + KeysData_371 = keysData[371]; + KeysData_372 = keysData[372]; + KeysData_373 = keysData[373]; + KeysData_374 = keysData[374]; + KeysData_375 = keysData[375]; + KeysData_376 = keysData[376]; + KeysData_377 = keysData[377]; + KeysData_378 = keysData[378]; + KeysData_379 = keysData[379]; + KeysData_380 = keysData[380]; + KeysData_381 = keysData[381]; + KeysData_382 = keysData[382]; + KeysData_383 = keysData[383]; + KeysData_384 = keysData[384]; + KeysData_385 = keysData[385]; + KeysData_386 = keysData[386]; + KeysData_387 = keysData[387]; + KeysData_388 = keysData[388]; + KeysData_389 = keysData[389]; + KeysData_390 = keysData[390]; + KeysData_391 = keysData[391]; + KeysData_392 = keysData[392]; + KeysData_393 = keysData[393]; + KeysData_394 = keysData[394]; + KeysData_395 = keysData[395]; + KeysData_396 = keysData[396]; + KeysData_397 = keysData[397]; + KeysData_398 = keysData[398]; + KeysData_399 = keysData[399]; + KeysData_400 = keysData[400]; + KeysData_401 = keysData[401]; + KeysData_402 = keysData[402]; + KeysData_403 = keysData[403]; + KeysData_404 = keysData[404]; + KeysData_405 = keysData[405]; + KeysData_406 = keysData[406]; + KeysData_407 = keysData[407]; + KeysData_408 = keysData[408]; + KeysData_409 = keysData[409]; + KeysData_410 = keysData[410]; + KeysData_411 = keysData[411]; + KeysData_412 = keysData[412]; + KeysData_413 = keysData[413]; + KeysData_414 = keysData[414]; + KeysData_415 = keysData[415]; + KeysData_416 = keysData[416]; + KeysData_417 = keysData[417]; + KeysData_418 = keysData[418]; + KeysData_419 = keysData[419]; + KeysData_420 = keysData[420]; + KeysData_421 = keysData[421]; + KeysData_422 = keysData[422]; + KeysData_423 = keysData[423]; + KeysData_424 = keysData[424]; + KeysData_425 = keysData[425]; + KeysData_426 = keysData[426]; + KeysData_427 = keysData[427]; + KeysData_428 = keysData[428]; + KeysData_429 = keysData[429]; + KeysData_430 = keysData[430]; + KeysData_431 = keysData[431]; + KeysData_432 = keysData[432]; + KeysData_433 = keysData[433]; + KeysData_434 = keysData[434]; + KeysData_435 = keysData[435]; + KeysData_436 = keysData[436]; + KeysData_437 = keysData[437]; + KeysData_438 = keysData[438]; + KeysData_439 = keysData[439]; + KeysData_440 = keysData[440]; + KeysData_441 = keysData[441]; + KeysData_442 = keysData[442]; + KeysData_443 = keysData[443]; + KeysData_444 = keysData[444]; + KeysData_445 = keysData[445]; + KeysData_446 = keysData[446]; + KeysData_447 = keysData[447]; + KeysData_448 = keysData[448]; + KeysData_449 = keysData[449]; + KeysData_450 = keysData[450]; + KeysData_451 = keysData[451]; + KeysData_452 = keysData[452]; + KeysData_453 = keysData[453]; + KeysData_454 = keysData[454]; + KeysData_455 = keysData[455]; + KeysData_456 = keysData[456]; + KeysData_457 = keysData[457]; + KeysData_458 = keysData[458]; + KeysData_459 = keysData[459]; + KeysData_460 = keysData[460]; + KeysData_461 = keysData[461]; + KeysData_462 = keysData[462]; + KeysData_463 = keysData[463]; + KeysData_464 = keysData[464]; + KeysData_465 = keysData[465]; + KeysData_466 = keysData[466]; + KeysData_467 = keysData[467]; + KeysData_468 = keysData[468]; + KeysData_469 = keysData[469]; + KeysData_470 = keysData[470]; + KeysData_471 = keysData[471]; + KeysData_472 = keysData[472]; + KeysData_473 = keysData[473]; + KeysData_474 = keysData[474]; + KeysData_475 = keysData[475]; + KeysData_476 = keysData[476]; + KeysData_477 = keysData[477]; + KeysData_478 = keysData[478]; + KeysData_479 = keysData[479]; + KeysData_480 = keysData[480]; + KeysData_481 = keysData[481]; + KeysData_482 = keysData[482]; + KeysData_483 = keysData[483]; + KeysData_484 = keysData[484]; + KeysData_485 = keysData[485]; + KeysData_486 = keysData[486]; + KeysData_487 = keysData[487]; + KeysData_488 = keysData[488]; + KeysData_489 = keysData[489]; + KeysData_490 = keysData[490]; + KeysData_491 = keysData[491]; + KeysData_492 = keysData[492]; + KeysData_493 = keysData[493]; + KeysData_494 = keysData[494]; + KeysData_495 = keysData[495]; + KeysData_496 = keysData[496]; + KeysData_497 = keysData[497]; + KeysData_498 = keysData[498]; + KeysData_499 = keysData[499]; + KeysData_500 = keysData[500]; + KeysData_501 = keysData[501]; + KeysData_502 = keysData[502]; + KeysData_503 = keysData[503]; + KeysData_504 = keysData[504]; + KeysData_505 = keysData[505]; + KeysData_506 = keysData[506]; + KeysData_507 = keysData[507]; + KeysData_508 = keysData[508]; + KeysData_509 = keysData[509]; + KeysData_510 = keysData[510]; + KeysData_511 = keysData[511]; + KeysData_512 = keysData[512]; + KeysData_513 = keysData[513]; + KeysData_514 = keysData[514]; + KeysData_515 = keysData[515]; + KeysData_516 = keysData[516]; + KeysData_517 = keysData[517]; + KeysData_518 = keysData[518]; + KeysData_519 = keysData[519]; + KeysData_520 = keysData[520]; + KeysData_521 = keysData[521]; + KeysData_522 = keysData[522]; + KeysData_523 = keysData[523]; + KeysData_524 = keysData[524]; + KeysData_525 = keysData[525]; + KeysData_526 = keysData[526]; + KeysData_527 = keysData[527]; + KeysData_528 = keysData[528]; + KeysData_529 = keysData[529]; + KeysData_530 = keysData[530]; + KeysData_531 = keysData[531]; + KeysData_532 = keysData[532]; + KeysData_533 = keysData[533]; + KeysData_534 = keysData[534]; + KeysData_535 = keysData[535]; + KeysData_536 = keysData[536]; + KeysData_537 = keysData[537]; + KeysData_538 = keysData[538]; + KeysData_539 = keysData[539]; + KeysData_540 = keysData[540]; + KeysData_541 = keysData[541]; + KeysData_542 = keysData[542]; + KeysData_543 = keysData[543]; + KeysData_544 = keysData[544]; + KeysData_545 = keysData[545]; + KeysData_546 = keysData[546]; + KeysData_547 = keysData[547]; + KeysData_548 = keysData[548]; + KeysData_549 = keysData[549]; + KeysData_550 = keysData[550]; + KeysData_551 = keysData[551]; + KeysData_552 = keysData[552]; + KeysData_553 = keysData[553]; + KeysData_554 = keysData[554]; + KeysData_555 = keysData[555]; + KeysData_556 = keysData[556]; + KeysData_557 = keysData[557]; + KeysData_558 = keysData[558]; + KeysData_559 = keysData[559]; + KeysData_560 = keysData[560]; + KeysData_561 = keysData[561]; + KeysData_562 = keysData[562]; + KeysData_563 = keysData[563]; + KeysData_564 = keysData[564]; + KeysData_565 = keysData[565]; + KeysData_566 = keysData[566]; + KeysData_567 = keysData[567]; + KeysData_568 = keysData[568]; + KeysData_569 = keysData[569]; + KeysData_570 = keysData[570]; + KeysData_571 = keysData[571]; + KeysData_572 = keysData[572]; + KeysData_573 = keysData[573]; + KeysData_574 = keysData[574]; + KeysData_575 = keysData[575]; + KeysData_576 = keysData[576]; + KeysData_577 = keysData[577]; + KeysData_578 = keysData[578]; + KeysData_579 = keysData[579]; + KeysData_580 = keysData[580]; + KeysData_581 = keysData[581]; + KeysData_582 = keysData[582]; + KeysData_583 = keysData[583]; + KeysData_584 = keysData[584]; + KeysData_585 = keysData[585]; + KeysData_586 = keysData[586]; + KeysData_587 = keysData[587]; + KeysData_588 = keysData[588]; + KeysData_589 = keysData[589]; + KeysData_590 = keysData[590]; + KeysData_591 = keysData[591]; + KeysData_592 = keysData[592]; + KeysData_593 = keysData[593]; + KeysData_594 = keysData[594]; + KeysData_595 = keysData[595]; + KeysData_596 = keysData[596]; + KeysData_597 = keysData[597]; + KeysData_598 = keysData[598]; + KeysData_599 = keysData[599]; + KeysData_600 = keysData[600]; + KeysData_601 = keysData[601]; + KeysData_602 = keysData[602]; + KeysData_603 = keysData[603]; + KeysData_604 = keysData[604]; + KeysData_605 = keysData[605]; + KeysData_606 = keysData[606]; + KeysData_607 = keysData[607]; + KeysData_608 = keysData[608]; + KeysData_609 = keysData[609]; + KeysData_610 = keysData[610]; + KeysData_611 = keysData[611]; + KeysData_612 = keysData[612]; + KeysData_613 = keysData[613]; + KeysData_614 = keysData[614]; + KeysData_615 = keysData[615]; + KeysData_616 = keysData[616]; + KeysData_617 = keysData[617]; + KeysData_618 = keysData[618]; + KeysData_619 = keysData[619]; + KeysData_620 = keysData[620]; + KeysData_621 = keysData[621]; + KeysData_622 = keysData[622]; + KeysData_623 = keysData[623]; + KeysData_624 = keysData[624]; + KeysData_625 = keysData[625]; + KeysData_626 = keysData[626]; + KeysData_627 = keysData[627]; + KeysData_628 = keysData[628]; + KeysData_629 = keysData[629]; + KeysData_630 = keysData[630]; + KeysData_631 = keysData[631]; + KeysData_632 = keysData[632]; + KeysData_633 = keysData[633]; + KeysData_634 = keysData[634]; + KeysData_635 = keysData[635]; + KeysData_636 = keysData[636]; + KeysData_637 = keysData[637]; + KeysData_638 = keysData[638]; + KeysData_639 = keysData[639]; + KeysData_640 = keysData[640]; + KeysData_641 = keysData[641]; + KeysData_642 = keysData[642]; + KeysData_643 = keysData[643]; + KeysData_644 = keysData[644]; + KeysData_645 = keysData[645]; + KeysData_646 = keysData[646]; + KeysData_647 = keysData[647]; + KeysData_648 = keysData[648]; + KeysData_649 = keysData[649]; + KeysData_650 = keysData[650]; + KeysData_651 = keysData[651]; + KeysData_652 = keysData[652]; + KeysData_653 = keysData[653]; + KeysData_654 = keysData[654]; + KeysData_655 = keysData[655]; + KeysData_656 = keysData[656]; + KeysData_657 = keysData[657]; + KeysData_658 = keysData[658]; + KeysData_659 = keysData[659]; + KeysData_660 = keysData[660]; + KeysData_661 = keysData[661]; + KeysData_662 = keysData[662]; + KeysData_663 = keysData[663]; + KeysData_664 = keysData[664]; + KeysData_665 = keysData[665]; + } + WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; + MousePosPrev = mousePosPrev; + if (mouseClickedPos != default) + { + MouseClickedPos_0 = mouseClickedPos[0]; + MouseClickedPos_1 = mouseClickedPos[1]; + MouseClickedPos_2 = mouseClickedPos[2]; + MouseClickedPos_3 = mouseClickedPos[3]; + MouseClickedPos_4 = mouseClickedPos[4]; + } + if (mouseClickedTime != default) + { + MouseClickedTime_0 = mouseClickedTime[0]; + MouseClickedTime_1 = mouseClickedTime[1]; + MouseClickedTime_2 = mouseClickedTime[2]; + MouseClickedTime_3 = mouseClickedTime[3]; + MouseClickedTime_4 = mouseClickedTime[4]; + } + if (mouseClicked != default) + { + MouseClicked_0 = mouseClicked[0]; + MouseClicked_1 = mouseClicked[1]; + MouseClicked_2 = mouseClicked[2]; + MouseClicked_3 = mouseClicked[3]; + MouseClicked_4 = mouseClicked[4]; + } + if (mouseDoubleClicked != default) + { + MouseDoubleClicked_0 = mouseDoubleClicked[0]; + MouseDoubleClicked_1 = mouseDoubleClicked[1]; + MouseDoubleClicked_2 = mouseDoubleClicked[2]; + MouseDoubleClicked_3 = mouseDoubleClicked[3]; + MouseDoubleClicked_4 = mouseDoubleClicked[4]; + } + if (mouseClickedCount != default) + { + MouseClickedCount_0 = mouseClickedCount[0]; + MouseClickedCount_1 = mouseClickedCount[1]; + MouseClickedCount_2 = mouseClickedCount[2]; + MouseClickedCount_3 = mouseClickedCount[3]; + MouseClickedCount_4 = mouseClickedCount[4]; + } + if (mouseClickedLastCount != default) + { + MouseClickedLastCount_0 = mouseClickedLastCount[0]; + MouseClickedLastCount_1 = mouseClickedLastCount[1]; + MouseClickedLastCount_2 = mouseClickedLastCount[2]; + MouseClickedLastCount_3 = mouseClickedLastCount[3]; + MouseClickedLastCount_4 = mouseClickedLastCount[4]; + } + if (mouseReleased != default) + { + MouseReleased_0 = mouseReleased[0]; + MouseReleased_1 = mouseReleased[1]; + MouseReleased_2 = mouseReleased[2]; + MouseReleased_3 = mouseReleased[3]; + MouseReleased_4 = mouseReleased[4]; + } + if (mouseDownOwned != default) + { + MouseDownOwned_0 = mouseDownOwned[0]; + MouseDownOwned_1 = mouseDownOwned[1]; + MouseDownOwned_2 = mouseDownOwned[2]; + MouseDownOwned_3 = mouseDownOwned[3]; + MouseDownOwned_4 = mouseDownOwned[4]; + } + if (mouseDownOwnedUnlessPopupClose != default) + { + MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; + MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; + MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; + MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; + MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; + } + MouseWheelRequestAxisSwap = mouseWheelRequestAxisSwap ? (byte)1 : (byte)0; + if (mouseDownDuration != default) + { + MouseDownDuration_0 = mouseDownDuration[0]; + MouseDownDuration_1 = mouseDownDuration[1]; + MouseDownDuration_2 = mouseDownDuration[2]; + MouseDownDuration_3 = mouseDownDuration[3]; + MouseDownDuration_4 = mouseDownDuration[4]; + } + if (mouseDownDurationPrev != default) + { + MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; + MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; + MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; + MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; + MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; + } + if (mouseDragMaxDistanceAbs != default) + { + MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; + MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; + MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; + MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; + MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; + } + if (mouseDragMaxDistanceSqr != default) + { + MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; + MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; + MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; + MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; + MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; + } + PenPressure = penPressure; + AppFocusLost = appFocusLost ? (byte)1 : (byte)0; + AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; + BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; + BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; + InputQueueSurrogate = inputQueueSurrogate; + InputQueueCharacters = inputQueueCharacters; + } + + /// /// To be documented. /// public unsafe ImGuiIO(int configFlags = default, int backendFlags = default, Vector2 displaySize = default, float deltaTime = default, float iniSavingRate = default, byte* iniFilename = default, byte* logFilename = default, void* userData = default, ImFontAtlas* fonts = default, float fontGlobalScale = default, bool fontAllowUserScaling = default, ImFont* fontDefault = default, Vector2 displayFramebufferScale = default, bool configDockingNoSplit = default, bool configDockingWithShift = default, bool configDockingAlwaysTabBar = default, bool configDockingTransparentPayload = default, bool configViewportsNoAutoMerge = default, bool configViewportsNoTaskBarIcon = default, bool configViewportsNoDecoration = default, bool configViewportsNoDefaultParent = default, bool mouseDrawCursor = default, bool configMacOsxBehaviors = default, bool configInputTrickleEventQueue = default, bool configInputTextCursorBlink = default, bool configInputTextEnterKeepActive = default, bool configDragClickToInputText = default, bool configWindowsResizeFromEdges = default, bool configWindowsMoveFromTitleBarOnly = default, float configMemoryCompactTimer = default, float mouseDoubleClickTime = default, float mouseDoubleClickMaxDist = default, float mouseDragThreshold = default, float keyRepeatDelay = default, float keyRepeatRate = default, bool configDebugBeginReturnValueOnce = default, bool configDebugBeginReturnValueLoop = default, bool configDebugIgnoreFocusLoss = default, bool configDebugIniSettings = default, byte* backendPlatformName = default, byte* backendRendererName = default, void* backendPlatformUserData = default, void* backendRendererUserData = default, void* backendLanguageUserData = default, delegate* getClipboardTextFn = default, delegate* setClipboardTextFn = default, void* clipboardUserData = default, delegate* setPlatformImeDataFn = default, char platformLocaleDecimalPoint = default, bool wantCaptureMouse = default, bool wantCaptureKeyboard = default, bool wantTextInput = default, bool wantSetMousePos = default, bool wantSaveIniSettings = default, bool navActive = default, bool navVisible = default, float framerate = default, int metricsRenderVertices = default, int metricsRenderIndices = default, int metricsRenderWindows = default, int metricsActiveWindows = default, Vector2 mouseDelta = default, Span keyMap = default, Span keysDown = default, Span navInputs = default, void* Unusedpadding = default, ImGuiContext* ctx = default, Vector2 mousePos = default, Span mouseDown = default, float mouseWheel = default, float mouseWheelH = default, ImGuiMouseSource mouseSource = default, uint mouseHoveredViewport = default, bool keyCtrl = default, bool keyShift = default, bool keyAlt = default, bool keySuper = default, int keyMods = default, Span keysData = default, bool wantCaptureMouseUnlessPopupClose = default, Vector2 mousePosPrev = default, Span mouseClickedPos = default, Span mouseClickedTime = default, Span mouseClicked = default, Span mouseDoubleClicked = default, Span mouseClickedCount = default, Span mouseClickedLastCount = default, Span mouseReleased = default, Span mouseDownOwned = default, Span mouseDownOwnedUnlessPopupClose = default, bool mouseWheelRequestAxisSwap = default, Span mouseDownDuration = default, Span mouseDownDurationPrev = default, Span mouseDragMaxDistanceAbs = default, Span mouseDragMaxDistanceSqr = default, float penPressure = default, bool appFocusLost = default, bool appAcceptingEvents = default, byte backendUsingLegacyKeyArrays = default, bool backendUsingLegacyNavInputArray = default, ushort inputQueueSurrogate = default, ImVectorImWchar inputQueueCharacters = default) + { + ConfigFlags = configFlags; + BackendFlags = backendFlags; + DisplaySize = displaySize; + DeltaTime = deltaTime; + IniSavingRate = iniSavingRate; + IniFilename = iniFilename; + LogFilename = logFilename; + UserData = userData; + Fonts = fonts; + FontGlobalScale = fontGlobalScale; + FontAllowUserScaling = fontAllowUserScaling ? (byte)1 : (byte)0; + FontDefault = fontDefault; + DisplayFramebufferScale = displayFramebufferScale; + ConfigDockingNoSplit = configDockingNoSplit ? (byte)1 : (byte)0; + ConfigDockingWithShift = configDockingWithShift ? (byte)1 : (byte)0; + ConfigDockingAlwaysTabBar = configDockingAlwaysTabBar ? (byte)1 : (byte)0; + ConfigDockingTransparentPayload = configDockingTransparentPayload ? (byte)1 : (byte)0; + ConfigViewportsNoAutoMerge = configViewportsNoAutoMerge ? (byte)1 : (byte)0; + ConfigViewportsNoTaskBarIcon = configViewportsNoTaskBarIcon ? (byte)1 : (byte)0; + ConfigViewportsNoDecoration = configViewportsNoDecoration ? (byte)1 : (byte)0; + ConfigViewportsNoDefaultParent = configViewportsNoDefaultParent ? (byte)1 : (byte)0; + MouseDrawCursor = mouseDrawCursor ? (byte)1 : (byte)0; + ConfigMacOSXBehaviors = configMacOsxBehaviors ? (byte)1 : (byte)0; + ConfigInputTrickleEventQueue = configInputTrickleEventQueue ? (byte)1 : (byte)0; + ConfigInputTextCursorBlink = configInputTextCursorBlink ? (byte)1 : (byte)0; + ConfigInputTextEnterKeepActive = configInputTextEnterKeepActive ? (byte)1 : (byte)0; + ConfigDragClickToInputText = configDragClickToInputText ? (byte)1 : (byte)0; + ConfigWindowsResizeFromEdges = configWindowsResizeFromEdges ? (byte)1 : (byte)0; + ConfigWindowsMoveFromTitleBarOnly = configWindowsMoveFromTitleBarOnly ? (byte)1 : (byte)0; + ConfigMemoryCompactTimer = configMemoryCompactTimer; + MouseDoubleClickTime = mouseDoubleClickTime; + MouseDoubleClickMaxDist = mouseDoubleClickMaxDist; + MouseDragThreshold = mouseDragThreshold; + KeyRepeatDelay = keyRepeatDelay; + KeyRepeatRate = keyRepeatRate; + ConfigDebugBeginReturnValueOnce = configDebugBeginReturnValueOnce ? (byte)1 : (byte)0; + ConfigDebugBeginReturnValueLoop = configDebugBeginReturnValueLoop ? (byte)1 : (byte)0; + ConfigDebugIgnoreFocusLoss = configDebugIgnoreFocusLoss ? (byte)1 : (byte)0; + ConfigDebugIniSettings = configDebugIniSettings ? (byte)1 : (byte)0; + BackendPlatformName = backendPlatformName; + BackendRendererName = backendRendererName; + BackendPlatformUserData = backendPlatformUserData; + BackendRendererUserData = backendRendererUserData; + BackendLanguageUserData = backendLanguageUserData; + GetClipboardTextFn = (void*)getClipboardTextFn; + SetClipboardTextFn = (void*)setClipboardTextFn; + ClipboardUserData = clipboardUserData; + SetPlatformImeDataFn = (void*)setPlatformImeDataFn; + PlatformLocaleDecimalPoint = platformLocaleDecimalPoint; + WantCaptureMouse = wantCaptureMouse ? (byte)1 : (byte)0; + WantCaptureKeyboard = wantCaptureKeyboard ? (byte)1 : (byte)0; + WantTextInput = wantTextInput ? (byte)1 : (byte)0; + WantSetMousePos = wantSetMousePos ? (byte)1 : (byte)0; + WantSaveIniSettings = wantSaveIniSettings ? (byte)1 : (byte)0; + NavActive = navActive ? (byte)1 : (byte)0; + NavVisible = navVisible ? (byte)1 : (byte)0; + Framerate = framerate; + MetricsRenderVertices = metricsRenderVertices; + MetricsRenderIndices = metricsRenderIndices; + MetricsRenderWindows = metricsRenderWindows; + MetricsActiveWindows = metricsActiveWindows; + MouseDelta = mouseDelta; + if (keyMap != default) + { + KeyMap_0 = keyMap[0]; + KeyMap_1 = keyMap[1]; + KeyMap_2 = keyMap[2]; + KeyMap_3 = keyMap[3]; + KeyMap_4 = keyMap[4]; + KeyMap_5 = keyMap[5]; + KeyMap_6 = keyMap[6]; + KeyMap_7 = keyMap[7]; + KeyMap_8 = keyMap[8]; + KeyMap_9 = keyMap[9]; + KeyMap_10 = keyMap[10]; + KeyMap_11 = keyMap[11]; + KeyMap_12 = keyMap[12]; + KeyMap_13 = keyMap[13]; + KeyMap_14 = keyMap[14]; + KeyMap_15 = keyMap[15]; + KeyMap_16 = keyMap[16]; + KeyMap_17 = keyMap[17]; + KeyMap_18 = keyMap[18]; + KeyMap_19 = keyMap[19]; + KeyMap_20 = keyMap[20]; + KeyMap_21 = keyMap[21]; + KeyMap_22 = keyMap[22]; + KeyMap_23 = keyMap[23]; + KeyMap_24 = keyMap[24]; + KeyMap_25 = keyMap[25]; + KeyMap_26 = keyMap[26]; + KeyMap_27 = keyMap[27]; + KeyMap_28 = keyMap[28]; + KeyMap_29 = keyMap[29]; + KeyMap_30 = keyMap[30]; + KeyMap_31 = keyMap[31]; + KeyMap_32 = keyMap[32]; + KeyMap_33 = keyMap[33]; + KeyMap_34 = keyMap[34]; + KeyMap_35 = keyMap[35]; + KeyMap_36 = keyMap[36]; + KeyMap_37 = keyMap[37]; + KeyMap_38 = keyMap[38]; + KeyMap_39 = keyMap[39]; + KeyMap_40 = keyMap[40]; + KeyMap_41 = keyMap[41]; + KeyMap_42 = keyMap[42]; + KeyMap_43 = keyMap[43]; + KeyMap_44 = keyMap[44]; + KeyMap_45 = keyMap[45]; + KeyMap_46 = keyMap[46]; + KeyMap_47 = keyMap[47]; + KeyMap_48 = keyMap[48]; + KeyMap_49 = keyMap[49]; + KeyMap_50 = keyMap[50]; + KeyMap_51 = keyMap[51]; + KeyMap_52 = keyMap[52]; + KeyMap_53 = keyMap[53]; + KeyMap_54 = keyMap[54]; + KeyMap_55 = keyMap[55]; + KeyMap_56 = keyMap[56]; + KeyMap_57 = keyMap[57]; + KeyMap_58 = keyMap[58]; + KeyMap_59 = keyMap[59]; + KeyMap_60 = keyMap[60]; + KeyMap_61 = keyMap[61]; + KeyMap_62 = keyMap[62]; + KeyMap_63 = keyMap[63]; + KeyMap_64 = keyMap[64]; + KeyMap_65 = keyMap[65]; + KeyMap_66 = keyMap[66]; + KeyMap_67 = keyMap[67]; + KeyMap_68 = keyMap[68]; + KeyMap_69 = keyMap[69]; + KeyMap_70 = keyMap[70]; + KeyMap_71 = keyMap[71]; + KeyMap_72 = keyMap[72]; + KeyMap_73 = keyMap[73]; + KeyMap_74 = keyMap[74]; + KeyMap_75 = keyMap[75]; + KeyMap_76 = keyMap[76]; + KeyMap_77 = keyMap[77]; + KeyMap_78 = keyMap[78]; + KeyMap_79 = keyMap[79]; + KeyMap_80 = keyMap[80]; + KeyMap_81 = keyMap[81]; + KeyMap_82 = keyMap[82]; + KeyMap_83 = keyMap[83]; + KeyMap_84 = keyMap[84]; + KeyMap_85 = keyMap[85]; + KeyMap_86 = keyMap[86]; + KeyMap_87 = keyMap[87]; + KeyMap_88 = keyMap[88]; + KeyMap_89 = keyMap[89]; + KeyMap_90 = keyMap[90]; + KeyMap_91 = keyMap[91]; + KeyMap_92 = keyMap[92]; + KeyMap_93 = keyMap[93]; + KeyMap_94 = keyMap[94]; + KeyMap_95 = keyMap[95]; + KeyMap_96 = keyMap[96]; + KeyMap_97 = keyMap[97]; + KeyMap_98 = keyMap[98]; + KeyMap_99 = keyMap[99]; + KeyMap_100 = keyMap[100]; + KeyMap_101 = keyMap[101]; + KeyMap_102 = keyMap[102]; + KeyMap_103 = keyMap[103]; + KeyMap_104 = keyMap[104]; + KeyMap_105 = keyMap[105]; + KeyMap_106 = keyMap[106]; + KeyMap_107 = keyMap[107]; + KeyMap_108 = keyMap[108]; + KeyMap_109 = keyMap[109]; + KeyMap_110 = keyMap[110]; + KeyMap_111 = keyMap[111]; + KeyMap_112 = keyMap[112]; + KeyMap_113 = keyMap[113]; + KeyMap_114 = keyMap[114]; + KeyMap_115 = keyMap[115]; + KeyMap_116 = keyMap[116]; + KeyMap_117 = keyMap[117]; + KeyMap_118 = keyMap[118]; + KeyMap_119 = keyMap[119]; + KeyMap_120 = keyMap[120]; + KeyMap_121 = keyMap[121]; + KeyMap_122 = keyMap[122]; + KeyMap_123 = keyMap[123]; + KeyMap_124 = keyMap[124]; + KeyMap_125 = keyMap[125]; + KeyMap_126 = keyMap[126]; + KeyMap_127 = keyMap[127]; + KeyMap_128 = keyMap[128]; + KeyMap_129 = keyMap[129]; + KeyMap_130 = keyMap[130]; + KeyMap_131 = keyMap[131]; + KeyMap_132 = keyMap[132]; + KeyMap_133 = keyMap[133]; + KeyMap_134 = keyMap[134]; + KeyMap_135 = keyMap[135]; + KeyMap_136 = keyMap[136]; + KeyMap_137 = keyMap[137]; + KeyMap_138 = keyMap[138]; + KeyMap_139 = keyMap[139]; + KeyMap_140 = keyMap[140]; + KeyMap_141 = keyMap[141]; + KeyMap_142 = keyMap[142]; + KeyMap_143 = keyMap[143]; + KeyMap_144 = keyMap[144]; + KeyMap_145 = keyMap[145]; + KeyMap_146 = keyMap[146]; + KeyMap_147 = keyMap[147]; + KeyMap_148 = keyMap[148]; + KeyMap_149 = keyMap[149]; + KeyMap_150 = keyMap[150]; + KeyMap_151 = keyMap[151]; + KeyMap_152 = keyMap[152]; + KeyMap_153 = keyMap[153]; + KeyMap_154 = keyMap[154]; + KeyMap_155 = keyMap[155]; + KeyMap_156 = keyMap[156]; + KeyMap_157 = keyMap[157]; + KeyMap_158 = keyMap[158]; + KeyMap_159 = keyMap[159]; + KeyMap_160 = keyMap[160]; + KeyMap_161 = keyMap[161]; + KeyMap_162 = keyMap[162]; + KeyMap_163 = keyMap[163]; + KeyMap_164 = keyMap[164]; + KeyMap_165 = keyMap[165]; + KeyMap_166 = keyMap[166]; + KeyMap_167 = keyMap[167]; + KeyMap_168 = keyMap[168]; + KeyMap_169 = keyMap[169]; + KeyMap_170 = keyMap[170]; + KeyMap_171 = keyMap[171]; + KeyMap_172 = keyMap[172]; + KeyMap_173 = keyMap[173]; + KeyMap_174 = keyMap[174]; + KeyMap_175 = keyMap[175]; + KeyMap_176 = keyMap[176]; + KeyMap_177 = keyMap[177]; + KeyMap_178 = keyMap[178]; + KeyMap_179 = keyMap[179]; + KeyMap_180 = keyMap[180]; + KeyMap_181 = keyMap[181]; + KeyMap_182 = keyMap[182]; + KeyMap_183 = keyMap[183]; + KeyMap_184 = keyMap[184]; + KeyMap_185 = keyMap[185]; + KeyMap_186 = keyMap[186]; + KeyMap_187 = keyMap[187]; + KeyMap_188 = keyMap[188]; + KeyMap_189 = keyMap[189]; + KeyMap_190 = keyMap[190]; + KeyMap_191 = keyMap[191]; + KeyMap_192 = keyMap[192]; + KeyMap_193 = keyMap[193]; + KeyMap_194 = keyMap[194]; + KeyMap_195 = keyMap[195]; + KeyMap_196 = keyMap[196]; + KeyMap_197 = keyMap[197]; + KeyMap_198 = keyMap[198]; + KeyMap_199 = keyMap[199]; + KeyMap_200 = keyMap[200]; + KeyMap_201 = keyMap[201]; + KeyMap_202 = keyMap[202]; + KeyMap_203 = keyMap[203]; + KeyMap_204 = keyMap[204]; + KeyMap_205 = keyMap[205]; + KeyMap_206 = keyMap[206]; + KeyMap_207 = keyMap[207]; + KeyMap_208 = keyMap[208]; + KeyMap_209 = keyMap[209]; + KeyMap_210 = keyMap[210]; + KeyMap_211 = keyMap[211]; + KeyMap_212 = keyMap[212]; + KeyMap_213 = keyMap[213]; + KeyMap_214 = keyMap[214]; + KeyMap_215 = keyMap[215]; + KeyMap_216 = keyMap[216]; + KeyMap_217 = keyMap[217]; + KeyMap_218 = keyMap[218]; + KeyMap_219 = keyMap[219]; + KeyMap_220 = keyMap[220]; + KeyMap_221 = keyMap[221]; + KeyMap_222 = keyMap[222]; + KeyMap_223 = keyMap[223]; + KeyMap_224 = keyMap[224]; + KeyMap_225 = keyMap[225]; + KeyMap_226 = keyMap[226]; + KeyMap_227 = keyMap[227]; + KeyMap_228 = keyMap[228]; + KeyMap_229 = keyMap[229]; + KeyMap_230 = keyMap[230]; + KeyMap_231 = keyMap[231]; + KeyMap_232 = keyMap[232]; + KeyMap_233 = keyMap[233]; + KeyMap_234 = keyMap[234]; + KeyMap_235 = keyMap[235]; + KeyMap_236 = keyMap[236]; + KeyMap_237 = keyMap[237]; + KeyMap_238 = keyMap[238]; + KeyMap_239 = keyMap[239]; + KeyMap_240 = keyMap[240]; + KeyMap_241 = keyMap[241]; + KeyMap_242 = keyMap[242]; + KeyMap_243 = keyMap[243]; + KeyMap_244 = keyMap[244]; + KeyMap_245 = keyMap[245]; + KeyMap_246 = keyMap[246]; + KeyMap_247 = keyMap[247]; + KeyMap_248 = keyMap[248]; + KeyMap_249 = keyMap[249]; + KeyMap_250 = keyMap[250]; + KeyMap_251 = keyMap[251]; + KeyMap_252 = keyMap[252]; + KeyMap_253 = keyMap[253]; + KeyMap_254 = keyMap[254]; + KeyMap_255 = keyMap[255]; + KeyMap_256 = keyMap[256]; + KeyMap_257 = keyMap[257]; + KeyMap_258 = keyMap[258]; + KeyMap_259 = keyMap[259]; + KeyMap_260 = keyMap[260]; + KeyMap_261 = keyMap[261]; + KeyMap_262 = keyMap[262]; + KeyMap_263 = keyMap[263]; + KeyMap_264 = keyMap[264]; + KeyMap_265 = keyMap[265]; + KeyMap_266 = keyMap[266]; + KeyMap_267 = keyMap[267]; + KeyMap_268 = keyMap[268]; + KeyMap_269 = keyMap[269]; + KeyMap_270 = keyMap[270]; + KeyMap_271 = keyMap[271]; + KeyMap_272 = keyMap[272]; + KeyMap_273 = keyMap[273]; + KeyMap_274 = keyMap[274]; + KeyMap_275 = keyMap[275]; + KeyMap_276 = keyMap[276]; + KeyMap_277 = keyMap[277]; + KeyMap_278 = keyMap[278]; + KeyMap_279 = keyMap[279]; + KeyMap_280 = keyMap[280]; + KeyMap_281 = keyMap[281]; + KeyMap_282 = keyMap[282]; + KeyMap_283 = keyMap[283]; + KeyMap_284 = keyMap[284]; + KeyMap_285 = keyMap[285]; + KeyMap_286 = keyMap[286]; + KeyMap_287 = keyMap[287]; + KeyMap_288 = keyMap[288]; + KeyMap_289 = keyMap[289]; + KeyMap_290 = keyMap[290]; + KeyMap_291 = keyMap[291]; + KeyMap_292 = keyMap[292]; + KeyMap_293 = keyMap[293]; + KeyMap_294 = keyMap[294]; + KeyMap_295 = keyMap[295]; + KeyMap_296 = keyMap[296]; + KeyMap_297 = keyMap[297]; + KeyMap_298 = keyMap[298]; + KeyMap_299 = keyMap[299]; + KeyMap_300 = keyMap[300]; + KeyMap_301 = keyMap[301]; + KeyMap_302 = keyMap[302]; + KeyMap_303 = keyMap[303]; + KeyMap_304 = keyMap[304]; + KeyMap_305 = keyMap[305]; + KeyMap_306 = keyMap[306]; + KeyMap_307 = keyMap[307]; + KeyMap_308 = keyMap[308]; + KeyMap_309 = keyMap[309]; + KeyMap_310 = keyMap[310]; + KeyMap_311 = keyMap[311]; + KeyMap_312 = keyMap[312]; + KeyMap_313 = keyMap[313]; + KeyMap_314 = keyMap[314]; + KeyMap_315 = keyMap[315]; + KeyMap_316 = keyMap[316]; + KeyMap_317 = keyMap[317]; + KeyMap_318 = keyMap[318]; + KeyMap_319 = keyMap[319]; + KeyMap_320 = keyMap[320]; + KeyMap_321 = keyMap[321]; + KeyMap_322 = keyMap[322]; + KeyMap_323 = keyMap[323]; + KeyMap_324 = keyMap[324]; + KeyMap_325 = keyMap[325]; + KeyMap_326 = keyMap[326]; + KeyMap_327 = keyMap[327]; + KeyMap_328 = keyMap[328]; + KeyMap_329 = keyMap[329]; + KeyMap_330 = keyMap[330]; + KeyMap_331 = keyMap[331]; + KeyMap_332 = keyMap[332]; + KeyMap_333 = keyMap[333]; + KeyMap_334 = keyMap[334]; + KeyMap_335 = keyMap[335]; + KeyMap_336 = keyMap[336]; + KeyMap_337 = keyMap[337]; + KeyMap_338 = keyMap[338]; + KeyMap_339 = keyMap[339]; + KeyMap_340 = keyMap[340]; + KeyMap_341 = keyMap[341]; + KeyMap_342 = keyMap[342]; + KeyMap_343 = keyMap[343]; + KeyMap_344 = keyMap[344]; + KeyMap_345 = keyMap[345]; + KeyMap_346 = keyMap[346]; + KeyMap_347 = keyMap[347]; + KeyMap_348 = keyMap[348]; + KeyMap_349 = keyMap[349]; + KeyMap_350 = keyMap[350]; + KeyMap_351 = keyMap[351]; + KeyMap_352 = keyMap[352]; + KeyMap_353 = keyMap[353]; + KeyMap_354 = keyMap[354]; + KeyMap_355 = keyMap[355]; + KeyMap_356 = keyMap[356]; + KeyMap_357 = keyMap[357]; + KeyMap_358 = keyMap[358]; + KeyMap_359 = keyMap[359]; + KeyMap_360 = keyMap[360]; + KeyMap_361 = keyMap[361]; + KeyMap_362 = keyMap[362]; + KeyMap_363 = keyMap[363]; + KeyMap_364 = keyMap[364]; + KeyMap_365 = keyMap[365]; + KeyMap_366 = keyMap[366]; + KeyMap_367 = keyMap[367]; + KeyMap_368 = keyMap[368]; + KeyMap_369 = keyMap[369]; + KeyMap_370 = keyMap[370]; + KeyMap_371 = keyMap[371]; + KeyMap_372 = keyMap[372]; + KeyMap_373 = keyMap[373]; + KeyMap_374 = keyMap[374]; + KeyMap_375 = keyMap[375]; + KeyMap_376 = keyMap[376]; + KeyMap_377 = keyMap[377]; + KeyMap_378 = keyMap[378]; + KeyMap_379 = keyMap[379]; + KeyMap_380 = keyMap[380]; + KeyMap_381 = keyMap[381]; + KeyMap_382 = keyMap[382]; + KeyMap_383 = keyMap[383]; + KeyMap_384 = keyMap[384]; + KeyMap_385 = keyMap[385]; + KeyMap_386 = keyMap[386]; + KeyMap_387 = keyMap[387]; + KeyMap_388 = keyMap[388]; + KeyMap_389 = keyMap[389]; + KeyMap_390 = keyMap[390]; + KeyMap_391 = keyMap[391]; + KeyMap_392 = keyMap[392]; + KeyMap_393 = keyMap[393]; + KeyMap_394 = keyMap[394]; + KeyMap_395 = keyMap[395]; + KeyMap_396 = keyMap[396]; + KeyMap_397 = keyMap[397]; + KeyMap_398 = keyMap[398]; + KeyMap_399 = keyMap[399]; + KeyMap_400 = keyMap[400]; + KeyMap_401 = keyMap[401]; + KeyMap_402 = keyMap[402]; + KeyMap_403 = keyMap[403]; + KeyMap_404 = keyMap[404]; + KeyMap_405 = keyMap[405]; + KeyMap_406 = keyMap[406]; + KeyMap_407 = keyMap[407]; + KeyMap_408 = keyMap[408]; + KeyMap_409 = keyMap[409]; + KeyMap_410 = keyMap[410]; + KeyMap_411 = keyMap[411]; + KeyMap_412 = keyMap[412]; + KeyMap_413 = keyMap[413]; + KeyMap_414 = keyMap[414]; + KeyMap_415 = keyMap[415]; + KeyMap_416 = keyMap[416]; + KeyMap_417 = keyMap[417]; + KeyMap_418 = keyMap[418]; + KeyMap_419 = keyMap[419]; + KeyMap_420 = keyMap[420]; + KeyMap_421 = keyMap[421]; + KeyMap_422 = keyMap[422]; + KeyMap_423 = keyMap[423]; + KeyMap_424 = keyMap[424]; + KeyMap_425 = keyMap[425]; + KeyMap_426 = keyMap[426]; + KeyMap_427 = keyMap[427]; + KeyMap_428 = keyMap[428]; + KeyMap_429 = keyMap[429]; + KeyMap_430 = keyMap[430]; + KeyMap_431 = keyMap[431]; + KeyMap_432 = keyMap[432]; + KeyMap_433 = keyMap[433]; + KeyMap_434 = keyMap[434]; + KeyMap_435 = keyMap[435]; + KeyMap_436 = keyMap[436]; + KeyMap_437 = keyMap[437]; + KeyMap_438 = keyMap[438]; + KeyMap_439 = keyMap[439]; + KeyMap_440 = keyMap[440]; + KeyMap_441 = keyMap[441]; + KeyMap_442 = keyMap[442]; + KeyMap_443 = keyMap[443]; + KeyMap_444 = keyMap[444]; + KeyMap_445 = keyMap[445]; + KeyMap_446 = keyMap[446]; + KeyMap_447 = keyMap[447]; + KeyMap_448 = keyMap[448]; + KeyMap_449 = keyMap[449]; + KeyMap_450 = keyMap[450]; + KeyMap_451 = keyMap[451]; + KeyMap_452 = keyMap[452]; + KeyMap_453 = keyMap[453]; + KeyMap_454 = keyMap[454]; + KeyMap_455 = keyMap[455]; + KeyMap_456 = keyMap[456]; + KeyMap_457 = keyMap[457]; + KeyMap_458 = keyMap[458]; + KeyMap_459 = keyMap[459]; + KeyMap_460 = keyMap[460]; + KeyMap_461 = keyMap[461]; + KeyMap_462 = keyMap[462]; + KeyMap_463 = keyMap[463]; + KeyMap_464 = keyMap[464]; + KeyMap_465 = keyMap[465]; + KeyMap_466 = keyMap[466]; + KeyMap_467 = keyMap[467]; + KeyMap_468 = keyMap[468]; + KeyMap_469 = keyMap[469]; + KeyMap_470 = keyMap[470]; + KeyMap_471 = keyMap[471]; + KeyMap_472 = keyMap[472]; + KeyMap_473 = keyMap[473]; + KeyMap_474 = keyMap[474]; + KeyMap_475 = keyMap[475]; + KeyMap_476 = keyMap[476]; + KeyMap_477 = keyMap[477]; + KeyMap_478 = keyMap[478]; + KeyMap_479 = keyMap[479]; + KeyMap_480 = keyMap[480]; + KeyMap_481 = keyMap[481]; + KeyMap_482 = keyMap[482]; + KeyMap_483 = keyMap[483]; + KeyMap_484 = keyMap[484]; + KeyMap_485 = keyMap[485]; + KeyMap_486 = keyMap[486]; + KeyMap_487 = keyMap[487]; + KeyMap_488 = keyMap[488]; + KeyMap_489 = keyMap[489]; + KeyMap_490 = keyMap[490]; + KeyMap_491 = keyMap[491]; + KeyMap_492 = keyMap[492]; + KeyMap_493 = keyMap[493]; + KeyMap_494 = keyMap[494]; + KeyMap_495 = keyMap[495]; + KeyMap_496 = keyMap[496]; + KeyMap_497 = keyMap[497]; + KeyMap_498 = keyMap[498]; + KeyMap_499 = keyMap[499]; + KeyMap_500 = keyMap[500]; + KeyMap_501 = keyMap[501]; + KeyMap_502 = keyMap[502]; + KeyMap_503 = keyMap[503]; + KeyMap_504 = keyMap[504]; + KeyMap_505 = keyMap[505]; + KeyMap_506 = keyMap[506]; + KeyMap_507 = keyMap[507]; + KeyMap_508 = keyMap[508]; + KeyMap_509 = keyMap[509]; + KeyMap_510 = keyMap[510]; + KeyMap_511 = keyMap[511]; + KeyMap_512 = keyMap[512]; + KeyMap_513 = keyMap[513]; + KeyMap_514 = keyMap[514]; + KeyMap_515 = keyMap[515]; + KeyMap_516 = keyMap[516]; + KeyMap_517 = keyMap[517]; + KeyMap_518 = keyMap[518]; + KeyMap_519 = keyMap[519]; + KeyMap_520 = keyMap[520]; + KeyMap_521 = keyMap[521]; + KeyMap_522 = keyMap[522]; + KeyMap_523 = keyMap[523]; + KeyMap_524 = keyMap[524]; + KeyMap_525 = keyMap[525]; + KeyMap_526 = keyMap[526]; + KeyMap_527 = keyMap[527]; + KeyMap_528 = keyMap[528]; + KeyMap_529 = keyMap[529]; + KeyMap_530 = keyMap[530]; + KeyMap_531 = keyMap[531]; + KeyMap_532 = keyMap[532]; + KeyMap_533 = keyMap[533]; + KeyMap_534 = keyMap[534]; + KeyMap_535 = keyMap[535]; + KeyMap_536 = keyMap[536]; + KeyMap_537 = keyMap[537]; + KeyMap_538 = keyMap[538]; + KeyMap_539 = keyMap[539]; + KeyMap_540 = keyMap[540]; + KeyMap_541 = keyMap[541]; + KeyMap_542 = keyMap[542]; + KeyMap_543 = keyMap[543]; + KeyMap_544 = keyMap[544]; + KeyMap_545 = keyMap[545]; + KeyMap_546 = keyMap[546]; + KeyMap_547 = keyMap[547]; + KeyMap_548 = keyMap[548]; + KeyMap_549 = keyMap[549]; + KeyMap_550 = keyMap[550]; + KeyMap_551 = keyMap[551]; + KeyMap_552 = keyMap[552]; + KeyMap_553 = keyMap[553]; + KeyMap_554 = keyMap[554]; + KeyMap_555 = keyMap[555]; + KeyMap_556 = keyMap[556]; + KeyMap_557 = keyMap[557]; + KeyMap_558 = keyMap[558]; + KeyMap_559 = keyMap[559]; + KeyMap_560 = keyMap[560]; + KeyMap_561 = keyMap[561]; + KeyMap_562 = keyMap[562]; + KeyMap_563 = keyMap[563]; + KeyMap_564 = keyMap[564]; + KeyMap_565 = keyMap[565]; + KeyMap_566 = keyMap[566]; + KeyMap_567 = keyMap[567]; + KeyMap_568 = keyMap[568]; + KeyMap_569 = keyMap[569]; + KeyMap_570 = keyMap[570]; + KeyMap_571 = keyMap[571]; + KeyMap_572 = keyMap[572]; + KeyMap_573 = keyMap[573]; + KeyMap_574 = keyMap[574]; + KeyMap_575 = keyMap[575]; + KeyMap_576 = keyMap[576]; + KeyMap_577 = keyMap[577]; + KeyMap_578 = keyMap[578]; + KeyMap_579 = keyMap[579]; + KeyMap_580 = keyMap[580]; + KeyMap_581 = keyMap[581]; + KeyMap_582 = keyMap[582]; + KeyMap_583 = keyMap[583]; + KeyMap_584 = keyMap[584]; + KeyMap_585 = keyMap[585]; + KeyMap_586 = keyMap[586]; + KeyMap_587 = keyMap[587]; + KeyMap_588 = keyMap[588]; + KeyMap_589 = keyMap[589]; + KeyMap_590 = keyMap[590]; + KeyMap_591 = keyMap[591]; + KeyMap_592 = keyMap[592]; + KeyMap_593 = keyMap[593]; + KeyMap_594 = keyMap[594]; + KeyMap_595 = keyMap[595]; + KeyMap_596 = keyMap[596]; + KeyMap_597 = keyMap[597]; + KeyMap_598 = keyMap[598]; + KeyMap_599 = keyMap[599]; + KeyMap_600 = keyMap[600]; + KeyMap_601 = keyMap[601]; + KeyMap_602 = keyMap[602]; + KeyMap_603 = keyMap[603]; + KeyMap_604 = keyMap[604]; + KeyMap_605 = keyMap[605]; + KeyMap_606 = keyMap[606]; + KeyMap_607 = keyMap[607]; + KeyMap_608 = keyMap[608]; + KeyMap_609 = keyMap[609]; + KeyMap_610 = keyMap[610]; + KeyMap_611 = keyMap[611]; + KeyMap_612 = keyMap[612]; + KeyMap_613 = keyMap[613]; + KeyMap_614 = keyMap[614]; + KeyMap_615 = keyMap[615]; + KeyMap_616 = keyMap[616]; + KeyMap_617 = keyMap[617]; + KeyMap_618 = keyMap[618]; + KeyMap_619 = keyMap[619]; + KeyMap_620 = keyMap[620]; + KeyMap_621 = keyMap[621]; + KeyMap_622 = keyMap[622]; + KeyMap_623 = keyMap[623]; + KeyMap_624 = keyMap[624]; + KeyMap_625 = keyMap[625]; + KeyMap_626 = keyMap[626]; + KeyMap_627 = keyMap[627]; + KeyMap_628 = keyMap[628]; + KeyMap_629 = keyMap[629]; + KeyMap_630 = keyMap[630]; + KeyMap_631 = keyMap[631]; + KeyMap_632 = keyMap[632]; + KeyMap_633 = keyMap[633]; + KeyMap_634 = keyMap[634]; + KeyMap_635 = keyMap[635]; + KeyMap_636 = keyMap[636]; + KeyMap_637 = keyMap[637]; + KeyMap_638 = keyMap[638]; + KeyMap_639 = keyMap[639]; + KeyMap_640 = keyMap[640]; + KeyMap_641 = keyMap[641]; + KeyMap_642 = keyMap[642]; + KeyMap_643 = keyMap[643]; + KeyMap_644 = keyMap[644]; + KeyMap_645 = keyMap[645]; + KeyMap_646 = keyMap[646]; + KeyMap_647 = keyMap[647]; + KeyMap_648 = keyMap[648]; + KeyMap_649 = keyMap[649]; + KeyMap_650 = keyMap[650]; + KeyMap_651 = keyMap[651]; + KeyMap_652 = keyMap[652]; + KeyMap_653 = keyMap[653]; + KeyMap_654 = keyMap[654]; + KeyMap_655 = keyMap[655]; + KeyMap_656 = keyMap[656]; + KeyMap_657 = keyMap[657]; + KeyMap_658 = keyMap[658]; + KeyMap_659 = keyMap[659]; + KeyMap_660 = keyMap[660]; + KeyMap_661 = keyMap[661]; + KeyMap_662 = keyMap[662]; + KeyMap_663 = keyMap[663]; + KeyMap_664 = keyMap[664]; + KeyMap_665 = keyMap[665]; + } + if (keysDown != default) + { + KeysDown_0 = keysDown[0]; + KeysDown_1 = keysDown[1]; + KeysDown_2 = keysDown[2]; + KeysDown_3 = keysDown[3]; + KeysDown_4 = keysDown[4]; + KeysDown_5 = keysDown[5]; + KeysDown_6 = keysDown[6]; + KeysDown_7 = keysDown[7]; + KeysDown_8 = keysDown[8]; + KeysDown_9 = keysDown[9]; + KeysDown_10 = keysDown[10]; + KeysDown_11 = keysDown[11]; + KeysDown_12 = keysDown[12]; + KeysDown_13 = keysDown[13]; + KeysDown_14 = keysDown[14]; + KeysDown_15 = keysDown[15]; + KeysDown_16 = keysDown[16]; + KeysDown_17 = keysDown[17]; + KeysDown_18 = keysDown[18]; + KeysDown_19 = keysDown[19]; + KeysDown_20 = keysDown[20]; + KeysDown_21 = keysDown[21]; + KeysDown_22 = keysDown[22]; + KeysDown_23 = keysDown[23]; + KeysDown_24 = keysDown[24]; + KeysDown_25 = keysDown[25]; + KeysDown_26 = keysDown[26]; + KeysDown_27 = keysDown[27]; + KeysDown_28 = keysDown[28]; + KeysDown_29 = keysDown[29]; + KeysDown_30 = keysDown[30]; + KeysDown_31 = keysDown[31]; + KeysDown_32 = keysDown[32]; + KeysDown_33 = keysDown[33]; + KeysDown_34 = keysDown[34]; + KeysDown_35 = keysDown[35]; + KeysDown_36 = keysDown[36]; + KeysDown_37 = keysDown[37]; + KeysDown_38 = keysDown[38]; + KeysDown_39 = keysDown[39]; + KeysDown_40 = keysDown[40]; + KeysDown_41 = keysDown[41]; + KeysDown_42 = keysDown[42]; + KeysDown_43 = keysDown[43]; + KeysDown_44 = keysDown[44]; + KeysDown_45 = keysDown[45]; + KeysDown_46 = keysDown[46]; + KeysDown_47 = keysDown[47]; + KeysDown_48 = keysDown[48]; + KeysDown_49 = keysDown[49]; + KeysDown_50 = keysDown[50]; + KeysDown_51 = keysDown[51]; + KeysDown_52 = keysDown[52]; + KeysDown_53 = keysDown[53]; + KeysDown_54 = keysDown[54]; + KeysDown_55 = keysDown[55]; + KeysDown_56 = keysDown[56]; + KeysDown_57 = keysDown[57]; + KeysDown_58 = keysDown[58]; + KeysDown_59 = keysDown[59]; + KeysDown_60 = keysDown[60]; + KeysDown_61 = keysDown[61]; + KeysDown_62 = keysDown[62]; + KeysDown_63 = keysDown[63]; + KeysDown_64 = keysDown[64]; + KeysDown_65 = keysDown[65]; + KeysDown_66 = keysDown[66]; + KeysDown_67 = keysDown[67]; + KeysDown_68 = keysDown[68]; + KeysDown_69 = keysDown[69]; + KeysDown_70 = keysDown[70]; + KeysDown_71 = keysDown[71]; + KeysDown_72 = keysDown[72]; + KeysDown_73 = keysDown[73]; + KeysDown_74 = keysDown[74]; + KeysDown_75 = keysDown[75]; + KeysDown_76 = keysDown[76]; + KeysDown_77 = keysDown[77]; + KeysDown_78 = keysDown[78]; + KeysDown_79 = keysDown[79]; + KeysDown_80 = keysDown[80]; + KeysDown_81 = keysDown[81]; + KeysDown_82 = keysDown[82]; + KeysDown_83 = keysDown[83]; + KeysDown_84 = keysDown[84]; + KeysDown_85 = keysDown[85]; + KeysDown_86 = keysDown[86]; + KeysDown_87 = keysDown[87]; + KeysDown_88 = keysDown[88]; + KeysDown_89 = keysDown[89]; + KeysDown_90 = keysDown[90]; + KeysDown_91 = keysDown[91]; + KeysDown_92 = keysDown[92]; + KeysDown_93 = keysDown[93]; + KeysDown_94 = keysDown[94]; + KeysDown_95 = keysDown[95]; + KeysDown_96 = keysDown[96]; + KeysDown_97 = keysDown[97]; + KeysDown_98 = keysDown[98]; + KeysDown_99 = keysDown[99]; + KeysDown_100 = keysDown[100]; + KeysDown_101 = keysDown[101]; + KeysDown_102 = keysDown[102]; + KeysDown_103 = keysDown[103]; + KeysDown_104 = keysDown[104]; + KeysDown_105 = keysDown[105]; + KeysDown_106 = keysDown[106]; + KeysDown_107 = keysDown[107]; + KeysDown_108 = keysDown[108]; + KeysDown_109 = keysDown[109]; + KeysDown_110 = keysDown[110]; + KeysDown_111 = keysDown[111]; + KeysDown_112 = keysDown[112]; + KeysDown_113 = keysDown[113]; + KeysDown_114 = keysDown[114]; + KeysDown_115 = keysDown[115]; + KeysDown_116 = keysDown[116]; + KeysDown_117 = keysDown[117]; + KeysDown_118 = keysDown[118]; + KeysDown_119 = keysDown[119]; + KeysDown_120 = keysDown[120]; + KeysDown_121 = keysDown[121]; + KeysDown_122 = keysDown[122]; + KeysDown_123 = keysDown[123]; + KeysDown_124 = keysDown[124]; + KeysDown_125 = keysDown[125]; + KeysDown_126 = keysDown[126]; + KeysDown_127 = keysDown[127]; + KeysDown_128 = keysDown[128]; + KeysDown_129 = keysDown[129]; + KeysDown_130 = keysDown[130]; + KeysDown_131 = keysDown[131]; + KeysDown_132 = keysDown[132]; + KeysDown_133 = keysDown[133]; + KeysDown_134 = keysDown[134]; + KeysDown_135 = keysDown[135]; + KeysDown_136 = keysDown[136]; + KeysDown_137 = keysDown[137]; + KeysDown_138 = keysDown[138]; + KeysDown_139 = keysDown[139]; + KeysDown_140 = keysDown[140]; + KeysDown_141 = keysDown[141]; + KeysDown_142 = keysDown[142]; + KeysDown_143 = keysDown[143]; + KeysDown_144 = keysDown[144]; + KeysDown_145 = keysDown[145]; + KeysDown_146 = keysDown[146]; + KeysDown_147 = keysDown[147]; + KeysDown_148 = keysDown[148]; + KeysDown_149 = keysDown[149]; + KeysDown_150 = keysDown[150]; + KeysDown_151 = keysDown[151]; + KeysDown_152 = keysDown[152]; + KeysDown_153 = keysDown[153]; + KeysDown_154 = keysDown[154]; + KeysDown_155 = keysDown[155]; + KeysDown_156 = keysDown[156]; + KeysDown_157 = keysDown[157]; + KeysDown_158 = keysDown[158]; + KeysDown_159 = keysDown[159]; + KeysDown_160 = keysDown[160]; + KeysDown_161 = keysDown[161]; + KeysDown_162 = keysDown[162]; + KeysDown_163 = keysDown[163]; + KeysDown_164 = keysDown[164]; + KeysDown_165 = keysDown[165]; + KeysDown_166 = keysDown[166]; + KeysDown_167 = keysDown[167]; + KeysDown_168 = keysDown[168]; + KeysDown_169 = keysDown[169]; + KeysDown_170 = keysDown[170]; + KeysDown_171 = keysDown[171]; + KeysDown_172 = keysDown[172]; + KeysDown_173 = keysDown[173]; + KeysDown_174 = keysDown[174]; + KeysDown_175 = keysDown[175]; + KeysDown_176 = keysDown[176]; + KeysDown_177 = keysDown[177]; + KeysDown_178 = keysDown[178]; + KeysDown_179 = keysDown[179]; + KeysDown_180 = keysDown[180]; + KeysDown_181 = keysDown[181]; + KeysDown_182 = keysDown[182]; + KeysDown_183 = keysDown[183]; + KeysDown_184 = keysDown[184]; + KeysDown_185 = keysDown[185]; + KeysDown_186 = keysDown[186]; + KeysDown_187 = keysDown[187]; + KeysDown_188 = keysDown[188]; + KeysDown_189 = keysDown[189]; + KeysDown_190 = keysDown[190]; + KeysDown_191 = keysDown[191]; + KeysDown_192 = keysDown[192]; + KeysDown_193 = keysDown[193]; + KeysDown_194 = keysDown[194]; + KeysDown_195 = keysDown[195]; + KeysDown_196 = keysDown[196]; + KeysDown_197 = keysDown[197]; + KeysDown_198 = keysDown[198]; + KeysDown_199 = keysDown[199]; + KeysDown_200 = keysDown[200]; + KeysDown_201 = keysDown[201]; + KeysDown_202 = keysDown[202]; + KeysDown_203 = keysDown[203]; + KeysDown_204 = keysDown[204]; + KeysDown_205 = keysDown[205]; + KeysDown_206 = keysDown[206]; + KeysDown_207 = keysDown[207]; + KeysDown_208 = keysDown[208]; + KeysDown_209 = keysDown[209]; + KeysDown_210 = keysDown[210]; + KeysDown_211 = keysDown[211]; + KeysDown_212 = keysDown[212]; + KeysDown_213 = keysDown[213]; + KeysDown_214 = keysDown[214]; + KeysDown_215 = keysDown[215]; + KeysDown_216 = keysDown[216]; + KeysDown_217 = keysDown[217]; + KeysDown_218 = keysDown[218]; + KeysDown_219 = keysDown[219]; + KeysDown_220 = keysDown[220]; + KeysDown_221 = keysDown[221]; + KeysDown_222 = keysDown[222]; + KeysDown_223 = keysDown[223]; + KeysDown_224 = keysDown[224]; + KeysDown_225 = keysDown[225]; + KeysDown_226 = keysDown[226]; + KeysDown_227 = keysDown[227]; + KeysDown_228 = keysDown[228]; + KeysDown_229 = keysDown[229]; + KeysDown_230 = keysDown[230]; + KeysDown_231 = keysDown[231]; + KeysDown_232 = keysDown[232]; + KeysDown_233 = keysDown[233]; + KeysDown_234 = keysDown[234]; + KeysDown_235 = keysDown[235]; + KeysDown_236 = keysDown[236]; + KeysDown_237 = keysDown[237]; + KeysDown_238 = keysDown[238]; + KeysDown_239 = keysDown[239]; + KeysDown_240 = keysDown[240]; + KeysDown_241 = keysDown[241]; + KeysDown_242 = keysDown[242]; + KeysDown_243 = keysDown[243]; + KeysDown_244 = keysDown[244]; + KeysDown_245 = keysDown[245]; + KeysDown_246 = keysDown[246]; + KeysDown_247 = keysDown[247]; + KeysDown_248 = keysDown[248]; + KeysDown_249 = keysDown[249]; + KeysDown_250 = keysDown[250]; + KeysDown_251 = keysDown[251]; + KeysDown_252 = keysDown[252]; + KeysDown_253 = keysDown[253]; + KeysDown_254 = keysDown[254]; + KeysDown_255 = keysDown[255]; + KeysDown_256 = keysDown[256]; + KeysDown_257 = keysDown[257]; + KeysDown_258 = keysDown[258]; + KeysDown_259 = keysDown[259]; + KeysDown_260 = keysDown[260]; + KeysDown_261 = keysDown[261]; + KeysDown_262 = keysDown[262]; + KeysDown_263 = keysDown[263]; + KeysDown_264 = keysDown[264]; + KeysDown_265 = keysDown[265]; + KeysDown_266 = keysDown[266]; + KeysDown_267 = keysDown[267]; + KeysDown_268 = keysDown[268]; + KeysDown_269 = keysDown[269]; + KeysDown_270 = keysDown[270]; + KeysDown_271 = keysDown[271]; + KeysDown_272 = keysDown[272]; + KeysDown_273 = keysDown[273]; + KeysDown_274 = keysDown[274]; + KeysDown_275 = keysDown[275]; + KeysDown_276 = keysDown[276]; + KeysDown_277 = keysDown[277]; + KeysDown_278 = keysDown[278]; + KeysDown_279 = keysDown[279]; + KeysDown_280 = keysDown[280]; + KeysDown_281 = keysDown[281]; + KeysDown_282 = keysDown[282]; + KeysDown_283 = keysDown[283]; + KeysDown_284 = keysDown[284]; + KeysDown_285 = keysDown[285]; + KeysDown_286 = keysDown[286]; + KeysDown_287 = keysDown[287]; + KeysDown_288 = keysDown[288]; + KeysDown_289 = keysDown[289]; + KeysDown_290 = keysDown[290]; + KeysDown_291 = keysDown[291]; + KeysDown_292 = keysDown[292]; + KeysDown_293 = keysDown[293]; + KeysDown_294 = keysDown[294]; + KeysDown_295 = keysDown[295]; + KeysDown_296 = keysDown[296]; + KeysDown_297 = keysDown[297]; + KeysDown_298 = keysDown[298]; + KeysDown_299 = keysDown[299]; + KeysDown_300 = keysDown[300]; + KeysDown_301 = keysDown[301]; + KeysDown_302 = keysDown[302]; + KeysDown_303 = keysDown[303]; + KeysDown_304 = keysDown[304]; + KeysDown_305 = keysDown[305]; + KeysDown_306 = keysDown[306]; + KeysDown_307 = keysDown[307]; + KeysDown_308 = keysDown[308]; + KeysDown_309 = keysDown[309]; + KeysDown_310 = keysDown[310]; + KeysDown_311 = keysDown[311]; + KeysDown_312 = keysDown[312]; + KeysDown_313 = keysDown[313]; + KeysDown_314 = keysDown[314]; + KeysDown_315 = keysDown[315]; + KeysDown_316 = keysDown[316]; + KeysDown_317 = keysDown[317]; + KeysDown_318 = keysDown[318]; + KeysDown_319 = keysDown[319]; + KeysDown_320 = keysDown[320]; + KeysDown_321 = keysDown[321]; + KeysDown_322 = keysDown[322]; + KeysDown_323 = keysDown[323]; + KeysDown_324 = keysDown[324]; + KeysDown_325 = keysDown[325]; + KeysDown_326 = keysDown[326]; + KeysDown_327 = keysDown[327]; + KeysDown_328 = keysDown[328]; + KeysDown_329 = keysDown[329]; + KeysDown_330 = keysDown[330]; + KeysDown_331 = keysDown[331]; + KeysDown_332 = keysDown[332]; + KeysDown_333 = keysDown[333]; + KeysDown_334 = keysDown[334]; + KeysDown_335 = keysDown[335]; + KeysDown_336 = keysDown[336]; + KeysDown_337 = keysDown[337]; + KeysDown_338 = keysDown[338]; + KeysDown_339 = keysDown[339]; + KeysDown_340 = keysDown[340]; + KeysDown_341 = keysDown[341]; + KeysDown_342 = keysDown[342]; + KeysDown_343 = keysDown[343]; + KeysDown_344 = keysDown[344]; + KeysDown_345 = keysDown[345]; + KeysDown_346 = keysDown[346]; + KeysDown_347 = keysDown[347]; + KeysDown_348 = keysDown[348]; + KeysDown_349 = keysDown[349]; + KeysDown_350 = keysDown[350]; + KeysDown_351 = keysDown[351]; + KeysDown_352 = keysDown[352]; + KeysDown_353 = keysDown[353]; + KeysDown_354 = keysDown[354]; + KeysDown_355 = keysDown[355]; + KeysDown_356 = keysDown[356]; + KeysDown_357 = keysDown[357]; + KeysDown_358 = keysDown[358]; + KeysDown_359 = keysDown[359]; + KeysDown_360 = keysDown[360]; + KeysDown_361 = keysDown[361]; + KeysDown_362 = keysDown[362]; + KeysDown_363 = keysDown[363]; + KeysDown_364 = keysDown[364]; + KeysDown_365 = keysDown[365]; + KeysDown_366 = keysDown[366]; + KeysDown_367 = keysDown[367]; + KeysDown_368 = keysDown[368]; + KeysDown_369 = keysDown[369]; + KeysDown_370 = keysDown[370]; + KeysDown_371 = keysDown[371]; + KeysDown_372 = keysDown[372]; + KeysDown_373 = keysDown[373]; + KeysDown_374 = keysDown[374]; + KeysDown_375 = keysDown[375]; + KeysDown_376 = keysDown[376]; + KeysDown_377 = keysDown[377]; + KeysDown_378 = keysDown[378]; + KeysDown_379 = keysDown[379]; + KeysDown_380 = keysDown[380]; + KeysDown_381 = keysDown[381]; + KeysDown_382 = keysDown[382]; + KeysDown_383 = keysDown[383]; + KeysDown_384 = keysDown[384]; + KeysDown_385 = keysDown[385]; + KeysDown_386 = keysDown[386]; + KeysDown_387 = keysDown[387]; + KeysDown_388 = keysDown[388]; + KeysDown_389 = keysDown[389]; + KeysDown_390 = keysDown[390]; + KeysDown_391 = keysDown[391]; + KeysDown_392 = keysDown[392]; + KeysDown_393 = keysDown[393]; + KeysDown_394 = keysDown[394]; + KeysDown_395 = keysDown[395]; + KeysDown_396 = keysDown[396]; + KeysDown_397 = keysDown[397]; + KeysDown_398 = keysDown[398]; + KeysDown_399 = keysDown[399]; + KeysDown_400 = keysDown[400]; + KeysDown_401 = keysDown[401]; + KeysDown_402 = keysDown[402]; + KeysDown_403 = keysDown[403]; + KeysDown_404 = keysDown[404]; + KeysDown_405 = keysDown[405]; + KeysDown_406 = keysDown[406]; + KeysDown_407 = keysDown[407]; + KeysDown_408 = keysDown[408]; + KeysDown_409 = keysDown[409]; + KeysDown_410 = keysDown[410]; + KeysDown_411 = keysDown[411]; + KeysDown_412 = keysDown[412]; + KeysDown_413 = keysDown[413]; + KeysDown_414 = keysDown[414]; + KeysDown_415 = keysDown[415]; + KeysDown_416 = keysDown[416]; + KeysDown_417 = keysDown[417]; + KeysDown_418 = keysDown[418]; + KeysDown_419 = keysDown[419]; + KeysDown_420 = keysDown[420]; + KeysDown_421 = keysDown[421]; + KeysDown_422 = keysDown[422]; + KeysDown_423 = keysDown[423]; + KeysDown_424 = keysDown[424]; + KeysDown_425 = keysDown[425]; + KeysDown_426 = keysDown[426]; + KeysDown_427 = keysDown[427]; + KeysDown_428 = keysDown[428]; + KeysDown_429 = keysDown[429]; + KeysDown_430 = keysDown[430]; + KeysDown_431 = keysDown[431]; + KeysDown_432 = keysDown[432]; + KeysDown_433 = keysDown[433]; + KeysDown_434 = keysDown[434]; + KeysDown_435 = keysDown[435]; + KeysDown_436 = keysDown[436]; + KeysDown_437 = keysDown[437]; + KeysDown_438 = keysDown[438]; + KeysDown_439 = keysDown[439]; + KeysDown_440 = keysDown[440]; + KeysDown_441 = keysDown[441]; + KeysDown_442 = keysDown[442]; + KeysDown_443 = keysDown[443]; + KeysDown_444 = keysDown[444]; + KeysDown_445 = keysDown[445]; + KeysDown_446 = keysDown[446]; + KeysDown_447 = keysDown[447]; + KeysDown_448 = keysDown[448]; + KeysDown_449 = keysDown[449]; + KeysDown_450 = keysDown[450]; + KeysDown_451 = keysDown[451]; + KeysDown_452 = keysDown[452]; + KeysDown_453 = keysDown[453]; + KeysDown_454 = keysDown[454]; + KeysDown_455 = keysDown[455]; + KeysDown_456 = keysDown[456]; + KeysDown_457 = keysDown[457]; + KeysDown_458 = keysDown[458]; + KeysDown_459 = keysDown[459]; + KeysDown_460 = keysDown[460]; + KeysDown_461 = keysDown[461]; + KeysDown_462 = keysDown[462]; + KeysDown_463 = keysDown[463]; + KeysDown_464 = keysDown[464]; + KeysDown_465 = keysDown[465]; + KeysDown_466 = keysDown[466]; + KeysDown_467 = keysDown[467]; + KeysDown_468 = keysDown[468]; + KeysDown_469 = keysDown[469]; + KeysDown_470 = keysDown[470]; + KeysDown_471 = keysDown[471]; + KeysDown_472 = keysDown[472]; + KeysDown_473 = keysDown[473]; + KeysDown_474 = keysDown[474]; + KeysDown_475 = keysDown[475]; + KeysDown_476 = keysDown[476]; + KeysDown_477 = keysDown[477]; + KeysDown_478 = keysDown[478]; + KeysDown_479 = keysDown[479]; + KeysDown_480 = keysDown[480]; + KeysDown_481 = keysDown[481]; + KeysDown_482 = keysDown[482]; + KeysDown_483 = keysDown[483]; + KeysDown_484 = keysDown[484]; + KeysDown_485 = keysDown[485]; + KeysDown_486 = keysDown[486]; + KeysDown_487 = keysDown[487]; + KeysDown_488 = keysDown[488]; + KeysDown_489 = keysDown[489]; + KeysDown_490 = keysDown[490]; + KeysDown_491 = keysDown[491]; + KeysDown_492 = keysDown[492]; + KeysDown_493 = keysDown[493]; + KeysDown_494 = keysDown[494]; + KeysDown_495 = keysDown[495]; + KeysDown_496 = keysDown[496]; + KeysDown_497 = keysDown[497]; + KeysDown_498 = keysDown[498]; + KeysDown_499 = keysDown[499]; + KeysDown_500 = keysDown[500]; + KeysDown_501 = keysDown[501]; + KeysDown_502 = keysDown[502]; + KeysDown_503 = keysDown[503]; + KeysDown_504 = keysDown[504]; + KeysDown_505 = keysDown[505]; + KeysDown_506 = keysDown[506]; + KeysDown_507 = keysDown[507]; + KeysDown_508 = keysDown[508]; + KeysDown_509 = keysDown[509]; + KeysDown_510 = keysDown[510]; + KeysDown_511 = keysDown[511]; + KeysDown_512 = keysDown[512]; + KeysDown_513 = keysDown[513]; + KeysDown_514 = keysDown[514]; + KeysDown_515 = keysDown[515]; + KeysDown_516 = keysDown[516]; + KeysDown_517 = keysDown[517]; + KeysDown_518 = keysDown[518]; + KeysDown_519 = keysDown[519]; + KeysDown_520 = keysDown[520]; + KeysDown_521 = keysDown[521]; + KeysDown_522 = keysDown[522]; + KeysDown_523 = keysDown[523]; + KeysDown_524 = keysDown[524]; + KeysDown_525 = keysDown[525]; + KeysDown_526 = keysDown[526]; + KeysDown_527 = keysDown[527]; + KeysDown_528 = keysDown[528]; + KeysDown_529 = keysDown[529]; + KeysDown_530 = keysDown[530]; + KeysDown_531 = keysDown[531]; + KeysDown_532 = keysDown[532]; + KeysDown_533 = keysDown[533]; + KeysDown_534 = keysDown[534]; + KeysDown_535 = keysDown[535]; + KeysDown_536 = keysDown[536]; + KeysDown_537 = keysDown[537]; + KeysDown_538 = keysDown[538]; + KeysDown_539 = keysDown[539]; + KeysDown_540 = keysDown[540]; + KeysDown_541 = keysDown[541]; + KeysDown_542 = keysDown[542]; + KeysDown_543 = keysDown[543]; + KeysDown_544 = keysDown[544]; + KeysDown_545 = keysDown[545]; + KeysDown_546 = keysDown[546]; + KeysDown_547 = keysDown[547]; + KeysDown_548 = keysDown[548]; + KeysDown_549 = keysDown[549]; + KeysDown_550 = keysDown[550]; + KeysDown_551 = keysDown[551]; + KeysDown_552 = keysDown[552]; + KeysDown_553 = keysDown[553]; + KeysDown_554 = keysDown[554]; + KeysDown_555 = keysDown[555]; + KeysDown_556 = keysDown[556]; + KeysDown_557 = keysDown[557]; + KeysDown_558 = keysDown[558]; + KeysDown_559 = keysDown[559]; + KeysDown_560 = keysDown[560]; + KeysDown_561 = keysDown[561]; + KeysDown_562 = keysDown[562]; + KeysDown_563 = keysDown[563]; + KeysDown_564 = keysDown[564]; + KeysDown_565 = keysDown[565]; + KeysDown_566 = keysDown[566]; + KeysDown_567 = keysDown[567]; + KeysDown_568 = keysDown[568]; + KeysDown_569 = keysDown[569]; + KeysDown_570 = keysDown[570]; + KeysDown_571 = keysDown[571]; + KeysDown_572 = keysDown[572]; + KeysDown_573 = keysDown[573]; + KeysDown_574 = keysDown[574]; + KeysDown_575 = keysDown[575]; + KeysDown_576 = keysDown[576]; + KeysDown_577 = keysDown[577]; + KeysDown_578 = keysDown[578]; + KeysDown_579 = keysDown[579]; + KeysDown_580 = keysDown[580]; + KeysDown_581 = keysDown[581]; + KeysDown_582 = keysDown[582]; + KeysDown_583 = keysDown[583]; + KeysDown_584 = keysDown[584]; + KeysDown_585 = keysDown[585]; + KeysDown_586 = keysDown[586]; + KeysDown_587 = keysDown[587]; + KeysDown_588 = keysDown[588]; + KeysDown_589 = keysDown[589]; + KeysDown_590 = keysDown[590]; + KeysDown_591 = keysDown[591]; + KeysDown_592 = keysDown[592]; + KeysDown_593 = keysDown[593]; + KeysDown_594 = keysDown[594]; + KeysDown_595 = keysDown[595]; + KeysDown_596 = keysDown[596]; + KeysDown_597 = keysDown[597]; + KeysDown_598 = keysDown[598]; + KeysDown_599 = keysDown[599]; + KeysDown_600 = keysDown[600]; + KeysDown_601 = keysDown[601]; + KeysDown_602 = keysDown[602]; + KeysDown_603 = keysDown[603]; + KeysDown_604 = keysDown[604]; + KeysDown_605 = keysDown[605]; + KeysDown_606 = keysDown[606]; + KeysDown_607 = keysDown[607]; + KeysDown_608 = keysDown[608]; + KeysDown_609 = keysDown[609]; + KeysDown_610 = keysDown[610]; + KeysDown_611 = keysDown[611]; + KeysDown_612 = keysDown[612]; + KeysDown_613 = keysDown[613]; + KeysDown_614 = keysDown[614]; + KeysDown_615 = keysDown[615]; + KeysDown_616 = keysDown[616]; + KeysDown_617 = keysDown[617]; + KeysDown_618 = keysDown[618]; + KeysDown_619 = keysDown[619]; + KeysDown_620 = keysDown[620]; + KeysDown_621 = keysDown[621]; + KeysDown_622 = keysDown[622]; + KeysDown_623 = keysDown[623]; + KeysDown_624 = keysDown[624]; + KeysDown_625 = keysDown[625]; + KeysDown_626 = keysDown[626]; + KeysDown_627 = keysDown[627]; + KeysDown_628 = keysDown[628]; + KeysDown_629 = keysDown[629]; + KeysDown_630 = keysDown[630]; + KeysDown_631 = keysDown[631]; + KeysDown_632 = keysDown[632]; + KeysDown_633 = keysDown[633]; + KeysDown_634 = keysDown[634]; + KeysDown_635 = keysDown[635]; + KeysDown_636 = keysDown[636]; + KeysDown_637 = keysDown[637]; + KeysDown_638 = keysDown[638]; + KeysDown_639 = keysDown[639]; + KeysDown_640 = keysDown[640]; + KeysDown_641 = keysDown[641]; + KeysDown_642 = keysDown[642]; + KeysDown_643 = keysDown[643]; + KeysDown_644 = keysDown[644]; + KeysDown_645 = keysDown[645]; + KeysDown_646 = keysDown[646]; + KeysDown_647 = keysDown[647]; + KeysDown_648 = keysDown[648]; + KeysDown_649 = keysDown[649]; + KeysDown_650 = keysDown[650]; + KeysDown_651 = keysDown[651]; + KeysDown_652 = keysDown[652]; + KeysDown_653 = keysDown[653]; + KeysDown_654 = keysDown[654]; + KeysDown_655 = keysDown[655]; + KeysDown_656 = keysDown[656]; + KeysDown_657 = keysDown[657]; + KeysDown_658 = keysDown[658]; + KeysDown_659 = keysDown[659]; + KeysDown_660 = keysDown[660]; + KeysDown_661 = keysDown[661]; + KeysDown_662 = keysDown[662]; + KeysDown_663 = keysDown[663]; + KeysDown_664 = keysDown[664]; + KeysDown_665 = keysDown[665]; + } + if (navInputs != default) + { + NavInputs_0 = navInputs[0]; + NavInputs_1 = navInputs[1]; + NavInputs_2 = navInputs[2]; + NavInputs_3 = navInputs[3]; + NavInputs_4 = navInputs[4]; + NavInputs_5 = navInputs[5]; + NavInputs_6 = navInputs[6]; + NavInputs_7 = navInputs[7]; + NavInputs_8 = navInputs[8]; + NavInputs_9 = navInputs[9]; + NavInputs_10 = navInputs[10]; + NavInputs_11 = navInputs[11]; + NavInputs_12 = navInputs[12]; + NavInputs_13 = navInputs[13]; + NavInputs_14 = navInputs[14]; + NavInputs_15 = navInputs[15]; + } + UnusedPadding = Unusedpadding; + Ctx = ctx; + MousePos = mousePos; + if (mouseDown != default) + { + MouseDown_0 = mouseDown[0]; + MouseDown_1 = mouseDown[1]; + MouseDown_2 = mouseDown[2]; + MouseDown_3 = mouseDown[3]; + MouseDown_4 = mouseDown[4]; + } + MouseWheel = mouseWheel; + MouseWheelH = mouseWheelH; + MouseSource = mouseSource; + MouseHoveredViewport = mouseHoveredViewport; + KeyCtrl = keyCtrl ? (byte)1 : (byte)0; + KeyShift = keyShift ? (byte)1 : (byte)0; + KeyAlt = keyAlt ? (byte)1 : (byte)0; + KeySuper = keySuper ? (byte)1 : (byte)0; + KeyMods = keyMods; + if (keysData != default) + { + KeysData_0 = keysData[0]; + KeysData_1 = keysData[1]; + KeysData_2 = keysData[2]; + KeysData_3 = keysData[3]; + KeysData_4 = keysData[4]; + KeysData_5 = keysData[5]; + KeysData_6 = keysData[6]; + KeysData_7 = keysData[7]; + KeysData_8 = keysData[8]; + KeysData_9 = keysData[9]; + KeysData_10 = keysData[10]; + KeysData_11 = keysData[11]; + KeysData_12 = keysData[12]; + KeysData_13 = keysData[13]; + KeysData_14 = keysData[14]; + KeysData_15 = keysData[15]; + KeysData_16 = keysData[16]; + KeysData_17 = keysData[17]; + KeysData_18 = keysData[18]; + KeysData_19 = keysData[19]; + KeysData_20 = keysData[20]; + KeysData_21 = keysData[21]; + KeysData_22 = keysData[22]; + KeysData_23 = keysData[23]; + KeysData_24 = keysData[24]; + KeysData_25 = keysData[25]; + KeysData_26 = keysData[26]; + KeysData_27 = keysData[27]; + KeysData_28 = keysData[28]; + KeysData_29 = keysData[29]; + KeysData_30 = keysData[30]; + KeysData_31 = keysData[31]; + KeysData_32 = keysData[32]; + KeysData_33 = keysData[33]; + KeysData_34 = keysData[34]; + KeysData_35 = keysData[35]; + KeysData_36 = keysData[36]; + KeysData_37 = keysData[37]; + KeysData_38 = keysData[38]; + KeysData_39 = keysData[39]; + KeysData_40 = keysData[40]; + KeysData_41 = keysData[41]; + KeysData_42 = keysData[42]; + KeysData_43 = keysData[43]; + KeysData_44 = keysData[44]; + KeysData_45 = keysData[45]; + KeysData_46 = keysData[46]; + KeysData_47 = keysData[47]; + KeysData_48 = keysData[48]; + KeysData_49 = keysData[49]; + KeysData_50 = keysData[50]; + KeysData_51 = keysData[51]; + KeysData_52 = keysData[52]; + KeysData_53 = keysData[53]; + KeysData_54 = keysData[54]; + KeysData_55 = keysData[55]; + KeysData_56 = keysData[56]; + KeysData_57 = keysData[57]; + KeysData_58 = keysData[58]; + KeysData_59 = keysData[59]; + KeysData_60 = keysData[60]; + KeysData_61 = keysData[61]; + KeysData_62 = keysData[62]; + KeysData_63 = keysData[63]; + KeysData_64 = keysData[64]; + KeysData_65 = keysData[65]; + KeysData_66 = keysData[66]; + KeysData_67 = keysData[67]; + KeysData_68 = keysData[68]; + KeysData_69 = keysData[69]; + KeysData_70 = keysData[70]; + KeysData_71 = keysData[71]; + KeysData_72 = keysData[72]; + KeysData_73 = keysData[73]; + KeysData_74 = keysData[74]; + KeysData_75 = keysData[75]; + KeysData_76 = keysData[76]; + KeysData_77 = keysData[77]; + KeysData_78 = keysData[78]; + KeysData_79 = keysData[79]; + KeysData_80 = keysData[80]; + KeysData_81 = keysData[81]; + KeysData_82 = keysData[82]; + KeysData_83 = keysData[83]; + KeysData_84 = keysData[84]; + KeysData_85 = keysData[85]; + KeysData_86 = keysData[86]; + KeysData_87 = keysData[87]; + KeysData_88 = keysData[88]; + KeysData_89 = keysData[89]; + KeysData_90 = keysData[90]; + KeysData_91 = keysData[91]; + KeysData_92 = keysData[92]; + KeysData_93 = keysData[93]; + KeysData_94 = keysData[94]; + KeysData_95 = keysData[95]; + KeysData_96 = keysData[96]; + KeysData_97 = keysData[97]; + KeysData_98 = keysData[98]; + KeysData_99 = keysData[99]; + KeysData_100 = keysData[100]; + KeysData_101 = keysData[101]; + KeysData_102 = keysData[102]; + KeysData_103 = keysData[103]; + KeysData_104 = keysData[104]; + KeysData_105 = keysData[105]; + KeysData_106 = keysData[106]; + KeysData_107 = keysData[107]; + KeysData_108 = keysData[108]; + KeysData_109 = keysData[109]; + KeysData_110 = keysData[110]; + KeysData_111 = keysData[111]; + KeysData_112 = keysData[112]; + KeysData_113 = keysData[113]; + KeysData_114 = keysData[114]; + KeysData_115 = keysData[115]; + KeysData_116 = keysData[116]; + KeysData_117 = keysData[117]; + KeysData_118 = keysData[118]; + KeysData_119 = keysData[119]; + KeysData_120 = keysData[120]; + KeysData_121 = keysData[121]; + KeysData_122 = keysData[122]; + KeysData_123 = keysData[123]; + KeysData_124 = keysData[124]; + KeysData_125 = keysData[125]; + KeysData_126 = keysData[126]; + KeysData_127 = keysData[127]; + KeysData_128 = keysData[128]; + KeysData_129 = keysData[129]; + KeysData_130 = keysData[130]; + KeysData_131 = keysData[131]; + KeysData_132 = keysData[132]; + KeysData_133 = keysData[133]; + KeysData_134 = keysData[134]; + KeysData_135 = keysData[135]; + KeysData_136 = keysData[136]; + KeysData_137 = keysData[137]; + KeysData_138 = keysData[138]; + KeysData_139 = keysData[139]; + KeysData_140 = keysData[140]; + KeysData_141 = keysData[141]; + KeysData_142 = keysData[142]; + KeysData_143 = keysData[143]; + KeysData_144 = keysData[144]; + KeysData_145 = keysData[145]; + KeysData_146 = keysData[146]; + KeysData_147 = keysData[147]; + KeysData_148 = keysData[148]; + KeysData_149 = keysData[149]; + KeysData_150 = keysData[150]; + KeysData_151 = keysData[151]; + KeysData_152 = keysData[152]; + KeysData_153 = keysData[153]; + KeysData_154 = keysData[154]; + KeysData_155 = keysData[155]; + KeysData_156 = keysData[156]; + KeysData_157 = keysData[157]; + KeysData_158 = keysData[158]; + KeysData_159 = keysData[159]; + KeysData_160 = keysData[160]; + KeysData_161 = keysData[161]; + KeysData_162 = keysData[162]; + KeysData_163 = keysData[163]; + KeysData_164 = keysData[164]; + KeysData_165 = keysData[165]; + KeysData_166 = keysData[166]; + KeysData_167 = keysData[167]; + KeysData_168 = keysData[168]; + KeysData_169 = keysData[169]; + KeysData_170 = keysData[170]; + KeysData_171 = keysData[171]; + KeysData_172 = keysData[172]; + KeysData_173 = keysData[173]; + KeysData_174 = keysData[174]; + KeysData_175 = keysData[175]; + KeysData_176 = keysData[176]; + KeysData_177 = keysData[177]; + KeysData_178 = keysData[178]; + KeysData_179 = keysData[179]; + KeysData_180 = keysData[180]; + KeysData_181 = keysData[181]; + KeysData_182 = keysData[182]; + KeysData_183 = keysData[183]; + KeysData_184 = keysData[184]; + KeysData_185 = keysData[185]; + KeysData_186 = keysData[186]; + KeysData_187 = keysData[187]; + KeysData_188 = keysData[188]; + KeysData_189 = keysData[189]; + KeysData_190 = keysData[190]; + KeysData_191 = keysData[191]; + KeysData_192 = keysData[192]; + KeysData_193 = keysData[193]; + KeysData_194 = keysData[194]; + KeysData_195 = keysData[195]; + KeysData_196 = keysData[196]; + KeysData_197 = keysData[197]; + KeysData_198 = keysData[198]; + KeysData_199 = keysData[199]; + KeysData_200 = keysData[200]; + KeysData_201 = keysData[201]; + KeysData_202 = keysData[202]; + KeysData_203 = keysData[203]; + KeysData_204 = keysData[204]; + KeysData_205 = keysData[205]; + KeysData_206 = keysData[206]; + KeysData_207 = keysData[207]; + KeysData_208 = keysData[208]; + KeysData_209 = keysData[209]; + KeysData_210 = keysData[210]; + KeysData_211 = keysData[211]; + KeysData_212 = keysData[212]; + KeysData_213 = keysData[213]; + KeysData_214 = keysData[214]; + KeysData_215 = keysData[215]; + KeysData_216 = keysData[216]; + KeysData_217 = keysData[217]; + KeysData_218 = keysData[218]; + KeysData_219 = keysData[219]; + KeysData_220 = keysData[220]; + KeysData_221 = keysData[221]; + KeysData_222 = keysData[222]; + KeysData_223 = keysData[223]; + KeysData_224 = keysData[224]; + KeysData_225 = keysData[225]; + KeysData_226 = keysData[226]; + KeysData_227 = keysData[227]; + KeysData_228 = keysData[228]; + KeysData_229 = keysData[229]; + KeysData_230 = keysData[230]; + KeysData_231 = keysData[231]; + KeysData_232 = keysData[232]; + KeysData_233 = keysData[233]; + KeysData_234 = keysData[234]; + KeysData_235 = keysData[235]; + KeysData_236 = keysData[236]; + KeysData_237 = keysData[237]; + KeysData_238 = keysData[238]; + KeysData_239 = keysData[239]; + KeysData_240 = keysData[240]; + KeysData_241 = keysData[241]; + KeysData_242 = keysData[242]; + KeysData_243 = keysData[243]; + KeysData_244 = keysData[244]; + KeysData_245 = keysData[245]; + KeysData_246 = keysData[246]; + KeysData_247 = keysData[247]; + KeysData_248 = keysData[248]; + KeysData_249 = keysData[249]; + KeysData_250 = keysData[250]; + KeysData_251 = keysData[251]; + KeysData_252 = keysData[252]; + KeysData_253 = keysData[253]; + KeysData_254 = keysData[254]; + KeysData_255 = keysData[255]; + KeysData_256 = keysData[256]; + KeysData_257 = keysData[257]; + KeysData_258 = keysData[258]; + KeysData_259 = keysData[259]; + KeysData_260 = keysData[260]; + KeysData_261 = keysData[261]; + KeysData_262 = keysData[262]; + KeysData_263 = keysData[263]; + KeysData_264 = keysData[264]; + KeysData_265 = keysData[265]; + KeysData_266 = keysData[266]; + KeysData_267 = keysData[267]; + KeysData_268 = keysData[268]; + KeysData_269 = keysData[269]; + KeysData_270 = keysData[270]; + KeysData_271 = keysData[271]; + KeysData_272 = keysData[272]; + KeysData_273 = keysData[273]; + KeysData_274 = keysData[274]; + KeysData_275 = keysData[275]; + KeysData_276 = keysData[276]; + KeysData_277 = keysData[277]; + KeysData_278 = keysData[278]; + KeysData_279 = keysData[279]; + KeysData_280 = keysData[280]; + KeysData_281 = keysData[281]; + KeysData_282 = keysData[282]; + KeysData_283 = keysData[283]; + KeysData_284 = keysData[284]; + KeysData_285 = keysData[285]; + KeysData_286 = keysData[286]; + KeysData_287 = keysData[287]; + KeysData_288 = keysData[288]; + KeysData_289 = keysData[289]; + KeysData_290 = keysData[290]; + KeysData_291 = keysData[291]; + KeysData_292 = keysData[292]; + KeysData_293 = keysData[293]; + KeysData_294 = keysData[294]; + KeysData_295 = keysData[295]; + KeysData_296 = keysData[296]; + KeysData_297 = keysData[297]; + KeysData_298 = keysData[298]; + KeysData_299 = keysData[299]; + KeysData_300 = keysData[300]; + KeysData_301 = keysData[301]; + KeysData_302 = keysData[302]; + KeysData_303 = keysData[303]; + KeysData_304 = keysData[304]; + KeysData_305 = keysData[305]; + KeysData_306 = keysData[306]; + KeysData_307 = keysData[307]; + KeysData_308 = keysData[308]; + KeysData_309 = keysData[309]; + KeysData_310 = keysData[310]; + KeysData_311 = keysData[311]; + KeysData_312 = keysData[312]; + KeysData_313 = keysData[313]; + KeysData_314 = keysData[314]; + KeysData_315 = keysData[315]; + KeysData_316 = keysData[316]; + KeysData_317 = keysData[317]; + KeysData_318 = keysData[318]; + KeysData_319 = keysData[319]; + KeysData_320 = keysData[320]; + KeysData_321 = keysData[321]; + KeysData_322 = keysData[322]; + KeysData_323 = keysData[323]; + KeysData_324 = keysData[324]; + KeysData_325 = keysData[325]; + KeysData_326 = keysData[326]; + KeysData_327 = keysData[327]; + KeysData_328 = keysData[328]; + KeysData_329 = keysData[329]; + KeysData_330 = keysData[330]; + KeysData_331 = keysData[331]; + KeysData_332 = keysData[332]; + KeysData_333 = keysData[333]; + KeysData_334 = keysData[334]; + KeysData_335 = keysData[335]; + KeysData_336 = keysData[336]; + KeysData_337 = keysData[337]; + KeysData_338 = keysData[338]; + KeysData_339 = keysData[339]; + KeysData_340 = keysData[340]; + KeysData_341 = keysData[341]; + KeysData_342 = keysData[342]; + KeysData_343 = keysData[343]; + KeysData_344 = keysData[344]; + KeysData_345 = keysData[345]; + KeysData_346 = keysData[346]; + KeysData_347 = keysData[347]; + KeysData_348 = keysData[348]; + KeysData_349 = keysData[349]; + KeysData_350 = keysData[350]; + KeysData_351 = keysData[351]; + KeysData_352 = keysData[352]; + KeysData_353 = keysData[353]; + KeysData_354 = keysData[354]; + KeysData_355 = keysData[355]; + KeysData_356 = keysData[356]; + KeysData_357 = keysData[357]; + KeysData_358 = keysData[358]; + KeysData_359 = keysData[359]; + KeysData_360 = keysData[360]; + KeysData_361 = keysData[361]; + KeysData_362 = keysData[362]; + KeysData_363 = keysData[363]; + KeysData_364 = keysData[364]; + KeysData_365 = keysData[365]; + KeysData_366 = keysData[366]; + KeysData_367 = keysData[367]; + KeysData_368 = keysData[368]; + KeysData_369 = keysData[369]; + KeysData_370 = keysData[370]; + KeysData_371 = keysData[371]; + KeysData_372 = keysData[372]; + KeysData_373 = keysData[373]; + KeysData_374 = keysData[374]; + KeysData_375 = keysData[375]; + KeysData_376 = keysData[376]; + KeysData_377 = keysData[377]; + KeysData_378 = keysData[378]; + KeysData_379 = keysData[379]; + KeysData_380 = keysData[380]; + KeysData_381 = keysData[381]; + KeysData_382 = keysData[382]; + KeysData_383 = keysData[383]; + KeysData_384 = keysData[384]; + KeysData_385 = keysData[385]; + KeysData_386 = keysData[386]; + KeysData_387 = keysData[387]; + KeysData_388 = keysData[388]; + KeysData_389 = keysData[389]; + KeysData_390 = keysData[390]; + KeysData_391 = keysData[391]; + KeysData_392 = keysData[392]; + KeysData_393 = keysData[393]; + KeysData_394 = keysData[394]; + KeysData_395 = keysData[395]; + KeysData_396 = keysData[396]; + KeysData_397 = keysData[397]; + KeysData_398 = keysData[398]; + KeysData_399 = keysData[399]; + KeysData_400 = keysData[400]; + KeysData_401 = keysData[401]; + KeysData_402 = keysData[402]; + KeysData_403 = keysData[403]; + KeysData_404 = keysData[404]; + KeysData_405 = keysData[405]; + KeysData_406 = keysData[406]; + KeysData_407 = keysData[407]; + KeysData_408 = keysData[408]; + KeysData_409 = keysData[409]; + KeysData_410 = keysData[410]; + KeysData_411 = keysData[411]; + KeysData_412 = keysData[412]; + KeysData_413 = keysData[413]; + KeysData_414 = keysData[414]; + KeysData_415 = keysData[415]; + KeysData_416 = keysData[416]; + KeysData_417 = keysData[417]; + KeysData_418 = keysData[418]; + KeysData_419 = keysData[419]; + KeysData_420 = keysData[420]; + KeysData_421 = keysData[421]; + KeysData_422 = keysData[422]; + KeysData_423 = keysData[423]; + KeysData_424 = keysData[424]; + KeysData_425 = keysData[425]; + KeysData_426 = keysData[426]; + KeysData_427 = keysData[427]; + KeysData_428 = keysData[428]; + KeysData_429 = keysData[429]; + KeysData_430 = keysData[430]; + KeysData_431 = keysData[431]; + KeysData_432 = keysData[432]; + KeysData_433 = keysData[433]; + KeysData_434 = keysData[434]; + KeysData_435 = keysData[435]; + KeysData_436 = keysData[436]; + KeysData_437 = keysData[437]; + KeysData_438 = keysData[438]; + KeysData_439 = keysData[439]; + KeysData_440 = keysData[440]; + KeysData_441 = keysData[441]; + KeysData_442 = keysData[442]; + KeysData_443 = keysData[443]; + KeysData_444 = keysData[444]; + KeysData_445 = keysData[445]; + KeysData_446 = keysData[446]; + KeysData_447 = keysData[447]; + KeysData_448 = keysData[448]; + KeysData_449 = keysData[449]; + KeysData_450 = keysData[450]; + KeysData_451 = keysData[451]; + KeysData_452 = keysData[452]; + KeysData_453 = keysData[453]; + KeysData_454 = keysData[454]; + KeysData_455 = keysData[455]; + KeysData_456 = keysData[456]; + KeysData_457 = keysData[457]; + KeysData_458 = keysData[458]; + KeysData_459 = keysData[459]; + KeysData_460 = keysData[460]; + KeysData_461 = keysData[461]; + KeysData_462 = keysData[462]; + KeysData_463 = keysData[463]; + KeysData_464 = keysData[464]; + KeysData_465 = keysData[465]; + KeysData_466 = keysData[466]; + KeysData_467 = keysData[467]; + KeysData_468 = keysData[468]; + KeysData_469 = keysData[469]; + KeysData_470 = keysData[470]; + KeysData_471 = keysData[471]; + KeysData_472 = keysData[472]; + KeysData_473 = keysData[473]; + KeysData_474 = keysData[474]; + KeysData_475 = keysData[475]; + KeysData_476 = keysData[476]; + KeysData_477 = keysData[477]; + KeysData_478 = keysData[478]; + KeysData_479 = keysData[479]; + KeysData_480 = keysData[480]; + KeysData_481 = keysData[481]; + KeysData_482 = keysData[482]; + KeysData_483 = keysData[483]; + KeysData_484 = keysData[484]; + KeysData_485 = keysData[485]; + KeysData_486 = keysData[486]; + KeysData_487 = keysData[487]; + KeysData_488 = keysData[488]; + KeysData_489 = keysData[489]; + KeysData_490 = keysData[490]; + KeysData_491 = keysData[491]; + KeysData_492 = keysData[492]; + KeysData_493 = keysData[493]; + KeysData_494 = keysData[494]; + KeysData_495 = keysData[495]; + KeysData_496 = keysData[496]; + KeysData_497 = keysData[497]; + KeysData_498 = keysData[498]; + KeysData_499 = keysData[499]; + KeysData_500 = keysData[500]; + KeysData_501 = keysData[501]; + KeysData_502 = keysData[502]; + KeysData_503 = keysData[503]; + KeysData_504 = keysData[504]; + KeysData_505 = keysData[505]; + KeysData_506 = keysData[506]; + KeysData_507 = keysData[507]; + KeysData_508 = keysData[508]; + KeysData_509 = keysData[509]; + KeysData_510 = keysData[510]; + KeysData_511 = keysData[511]; + KeysData_512 = keysData[512]; + KeysData_513 = keysData[513]; + KeysData_514 = keysData[514]; + KeysData_515 = keysData[515]; + KeysData_516 = keysData[516]; + KeysData_517 = keysData[517]; + KeysData_518 = keysData[518]; + KeysData_519 = keysData[519]; + KeysData_520 = keysData[520]; + KeysData_521 = keysData[521]; + KeysData_522 = keysData[522]; + KeysData_523 = keysData[523]; + KeysData_524 = keysData[524]; + KeysData_525 = keysData[525]; + KeysData_526 = keysData[526]; + KeysData_527 = keysData[527]; + KeysData_528 = keysData[528]; + KeysData_529 = keysData[529]; + KeysData_530 = keysData[530]; + KeysData_531 = keysData[531]; + KeysData_532 = keysData[532]; + KeysData_533 = keysData[533]; + KeysData_534 = keysData[534]; + KeysData_535 = keysData[535]; + KeysData_536 = keysData[536]; + KeysData_537 = keysData[537]; + KeysData_538 = keysData[538]; + KeysData_539 = keysData[539]; + KeysData_540 = keysData[540]; + KeysData_541 = keysData[541]; + KeysData_542 = keysData[542]; + KeysData_543 = keysData[543]; + KeysData_544 = keysData[544]; + KeysData_545 = keysData[545]; + KeysData_546 = keysData[546]; + KeysData_547 = keysData[547]; + KeysData_548 = keysData[548]; + KeysData_549 = keysData[549]; + KeysData_550 = keysData[550]; + KeysData_551 = keysData[551]; + KeysData_552 = keysData[552]; + KeysData_553 = keysData[553]; + KeysData_554 = keysData[554]; + KeysData_555 = keysData[555]; + KeysData_556 = keysData[556]; + KeysData_557 = keysData[557]; + KeysData_558 = keysData[558]; + KeysData_559 = keysData[559]; + KeysData_560 = keysData[560]; + KeysData_561 = keysData[561]; + KeysData_562 = keysData[562]; + KeysData_563 = keysData[563]; + KeysData_564 = keysData[564]; + KeysData_565 = keysData[565]; + KeysData_566 = keysData[566]; + KeysData_567 = keysData[567]; + KeysData_568 = keysData[568]; + KeysData_569 = keysData[569]; + KeysData_570 = keysData[570]; + KeysData_571 = keysData[571]; + KeysData_572 = keysData[572]; + KeysData_573 = keysData[573]; + KeysData_574 = keysData[574]; + KeysData_575 = keysData[575]; + KeysData_576 = keysData[576]; + KeysData_577 = keysData[577]; + KeysData_578 = keysData[578]; + KeysData_579 = keysData[579]; + KeysData_580 = keysData[580]; + KeysData_581 = keysData[581]; + KeysData_582 = keysData[582]; + KeysData_583 = keysData[583]; + KeysData_584 = keysData[584]; + KeysData_585 = keysData[585]; + KeysData_586 = keysData[586]; + KeysData_587 = keysData[587]; + KeysData_588 = keysData[588]; + KeysData_589 = keysData[589]; + KeysData_590 = keysData[590]; + KeysData_591 = keysData[591]; + KeysData_592 = keysData[592]; + KeysData_593 = keysData[593]; + KeysData_594 = keysData[594]; + KeysData_595 = keysData[595]; + KeysData_596 = keysData[596]; + KeysData_597 = keysData[597]; + KeysData_598 = keysData[598]; + KeysData_599 = keysData[599]; + KeysData_600 = keysData[600]; + KeysData_601 = keysData[601]; + KeysData_602 = keysData[602]; + KeysData_603 = keysData[603]; + KeysData_604 = keysData[604]; + KeysData_605 = keysData[605]; + KeysData_606 = keysData[606]; + KeysData_607 = keysData[607]; + KeysData_608 = keysData[608]; + KeysData_609 = keysData[609]; + KeysData_610 = keysData[610]; + KeysData_611 = keysData[611]; + KeysData_612 = keysData[612]; + KeysData_613 = keysData[613]; + KeysData_614 = keysData[614]; + KeysData_615 = keysData[615]; + KeysData_616 = keysData[616]; + KeysData_617 = keysData[617]; + KeysData_618 = keysData[618]; + KeysData_619 = keysData[619]; + KeysData_620 = keysData[620]; + KeysData_621 = keysData[621]; + KeysData_622 = keysData[622]; + KeysData_623 = keysData[623]; + KeysData_624 = keysData[624]; + KeysData_625 = keysData[625]; + KeysData_626 = keysData[626]; + KeysData_627 = keysData[627]; + KeysData_628 = keysData[628]; + KeysData_629 = keysData[629]; + KeysData_630 = keysData[630]; + KeysData_631 = keysData[631]; + KeysData_632 = keysData[632]; + KeysData_633 = keysData[633]; + KeysData_634 = keysData[634]; + KeysData_635 = keysData[635]; + KeysData_636 = keysData[636]; + KeysData_637 = keysData[637]; + KeysData_638 = keysData[638]; + KeysData_639 = keysData[639]; + KeysData_640 = keysData[640]; + KeysData_641 = keysData[641]; + KeysData_642 = keysData[642]; + KeysData_643 = keysData[643]; + KeysData_644 = keysData[644]; + KeysData_645 = keysData[645]; + KeysData_646 = keysData[646]; + KeysData_647 = keysData[647]; + KeysData_648 = keysData[648]; + KeysData_649 = keysData[649]; + KeysData_650 = keysData[650]; + KeysData_651 = keysData[651]; + KeysData_652 = keysData[652]; + KeysData_653 = keysData[653]; + KeysData_654 = keysData[654]; + KeysData_655 = keysData[655]; + KeysData_656 = keysData[656]; + KeysData_657 = keysData[657]; + KeysData_658 = keysData[658]; + KeysData_659 = keysData[659]; + KeysData_660 = keysData[660]; + KeysData_661 = keysData[661]; + KeysData_662 = keysData[662]; + KeysData_663 = keysData[663]; + KeysData_664 = keysData[664]; + KeysData_665 = keysData[665]; + } + WantCaptureMouseUnlessPopupClose = wantCaptureMouseUnlessPopupClose ? (byte)1 : (byte)0; + MousePosPrev = mousePosPrev; + if (mouseClickedPos != default) + { + MouseClickedPos_0 = mouseClickedPos[0]; + MouseClickedPos_1 = mouseClickedPos[1]; + MouseClickedPos_2 = mouseClickedPos[2]; + MouseClickedPos_3 = mouseClickedPos[3]; + MouseClickedPos_4 = mouseClickedPos[4]; + } + if (mouseClickedTime != default) + { + MouseClickedTime_0 = mouseClickedTime[0]; + MouseClickedTime_1 = mouseClickedTime[1]; + MouseClickedTime_2 = mouseClickedTime[2]; + MouseClickedTime_3 = mouseClickedTime[3]; + MouseClickedTime_4 = mouseClickedTime[4]; + } + if (mouseClicked != default) + { + MouseClicked_0 = mouseClicked[0]; + MouseClicked_1 = mouseClicked[1]; + MouseClicked_2 = mouseClicked[2]; + MouseClicked_3 = mouseClicked[3]; + MouseClicked_4 = mouseClicked[4]; + } + if (mouseDoubleClicked != default) + { + MouseDoubleClicked_0 = mouseDoubleClicked[0]; + MouseDoubleClicked_1 = mouseDoubleClicked[1]; + MouseDoubleClicked_2 = mouseDoubleClicked[2]; + MouseDoubleClicked_3 = mouseDoubleClicked[3]; + MouseDoubleClicked_4 = mouseDoubleClicked[4]; + } + if (mouseClickedCount != default) + { + MouseClickedCount_0 = mouseClickedCount[0]; + MouseClickedCount_1 = mouseClickedCount[1]; + MouseClickedCount_2 = mouseClickedCount[2]; + MouseClickedCount_3 = mouseClickedCount[3]; + MouseClickedCount_4 = mouseClickedCount[4]; + } + if (mouseClickedLastCount != default) + { + MouseClickedLastCount_0 = mouseClickedLastCount[0]; + MouseClickedLastCount_1 = mouseClickedLastCount[1]; + MouseClickedLastCount_2 = mouseClickedLastCount[2]; + MouseClickedLastCount_3 = mouseClickedLastCount[3]; + MouseClickedLastCount_4 = mouseClickedLastCount[4]; + } + if (mouseReleased != default) + { + MouseReleased_0 = mouseReleased[0]; + MouseReleased_1 = mouseReleased[1]; + MouseReleased_2 = mouseReleased[2]; + MouseReleased_3 = mouseReleased[3]; + MouseReleased_4 = mouseReleased[4]; + } + if (mouseDownOwned != default) + { + MouseDownOwned_0 = mouseDownOwned[0]; + MouseDownOwned_1 = mouseDownOwned[1]; + MouseDownOwned_2 = mouseDownOwned[2]; + MouseDownOwned_3 = mouseDownOwned[3]; + MouseDownOwned_4 = mouseDownOwned[4]; + } + if (mouseDownOwnedUnlessPopupClose != default) + { + MouseDownOwnedUnlessPopupClose_0 = mouseDownOwnedUnlessPopupClose[0]; + MouseDownOwnedUnlessPopupClose_1 = mouseDownOwnedUnlessPopupClose[1]; + MouseDownOwnedUnlessPopupClose_2 = mouseDownOwnedUnlessPopupClose[2]; + MouseDownOwnedUnlessPopupClose_3 = mouseDownOwnedUnlessPopupClose[3]; + MouseDownOwnedUnlessPopupClose_4 = mouseDownOwnedUnlessPopupClose[4]; + } + MouseWheelRequestAxisSwap = mouseWheelRequestAxisSwap ? (byte)1 : (byte)0; + if (mouseDownDuration != default) + { + MouseDownDuration_0 = mouseDownDuration[0]; + MouseDownDuration_1 = mouseDownDuration[1]; + MouseDownDuration_2 = mouseDownDuration[2]; + MouseDownDuration_3 = mouseDownDuration[3]; + MouseDownDuration_4 = mouseDownDuration[4]; + } + if (mouseDownDurationPrev != default) + { + MouseDownDurationPrev_0 = mouseDownDurationPrev[0]; + MouseDownDurationPrev_1 = mouseDownDurationPrev[1]; + MouseDownDurationPrev_2 = mouseDownDurationPrev[2]; + MouseDownDurationPrev_3 = mouseDownDurationPrev[3]; + MouseDownDurationPrev_4 = mouseDownDurationPrev[4]; + } + if (mouseDragMaxDistanceAbs != default) + { + MouseDragMaxDistanceAbs_0 = mouseDragMaxDistanceAbs[0]; + MouseDragMaxDistanceAbs_1 = mouseDragMaxDistanceAbs[1]; + MouseDragMaxDistanceAbs_2 = mouseDragMaxDistanceAbs[2]; + MouseDragMaxDistanceAbs_3 = mouseDragMaxDistanceAbs[3]; + MouseDragMaxDistanceAbs_4 = mouseDragMaxDistanceAbs[4]; + } + if (mouseDragMaxDistanceSqr != default) + { + MouseDragMaxDistanceSqr_0 = mouseDragMaxDistanceSqr[0]; + MouseDragMaxDistanceSqr_1 = mouseDragMaxDistanceSqr[1]; + MouseDragMaxDistanceSqr_2 = mouseDragMaxDistanceSqr[2]; + MouseDragMaxDistanceSqr_3 = mouseDragMaxDistanceSqr[3]; + MouseDragMaxDistanceSqr_4 = mouseDragMaxDistanceSqr[4]; + } + PenPressure = penPressure; + AppFocusLost = appFocusLost ? (byte)1 : (byte)0; + AppAcceptingEvents = appAcceptingEvents ? (byte)1 : (byte)0; + BackendUsingLegacyKeyArrays = backendUsingLegacyKeyArrays; + BackendUsingLegacyNavInputArray = backendUsingLegacyNavInputArray ? (byte)1 : (byte)0; + InputQueueSurrogate = inputQueueSurrogate; + InputQueueCharacters = inputQueueCharacters; + } + /// /// To be documented. @@ -16410,7 +20760,7 @@ public unsafe Span KeysData { fixed (ImGuiKeyData* p = &this.KeysData_0) { - return new Span(p, 652); + return new Span(p, 666); } } } @@ -16475,9 +20825,7 @@ public unsafe Span MouseDragMaxDistanceAbs /// /// To be documented. /// - /// /// Queue a gainloss of focus for the application (generally based on OSplatform focus of your window) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddFocusEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddFocusEvent([NativeName(NativeNameType.Param, "focused")] [NativeName(NativeNameType.Type, "bool")] bool focused) + public unsafe void AddFocusEvent( bool focused) { fixed (ImGuiIO* @this = &this) { @@ -16485,9 +20833,7 @@ public unsafe void AddFocusEvent([NativeName(NativeNameType.Param, "focused")] [ } } - /// /// Queue a new character input /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharacter")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddInputCharacter([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "unsigned int")] uint c) + public unsafe void AddInputCharacter( uint c) { fixed (ImGuiIO* @this = &this) { @@ -16495,9 +20841,7 @@ public unsafe void AddInputCharacter([NativeName(NativeNameType.Param, "c")] [Na } } - /// /// Queue a new characters input from a UTF-8 string /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharactersUTF8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public unsafe void AddInputCharactersUTF8( byte* str) { fixed (ImGuiIO* @this = &this) { @@ -16505,9 +20849,7 @@ public unsafe void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "str } } - /// /// Queue a new characters input from a UTF-8 string /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharactersUTF8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public unsafe void AddInputCharactersUTF8( ref byte str) { fixed (ImGuiIO* @this = &this) { @@ -16518,9 +20860,7 @@ public unsafe void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "str } } - /// /// Queue a new characters input from a UTF-8 string /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharactersUTF8")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public unsafe void AddInputCharactersUTF8( string str) { fixed (ImGuiIO* @this = &this) { @@ -16549,9 +20889,7 @@ public unsafe void AddInputCharactersUTF8([NativeName(NativeNameType.Param, "str } } - /// /// Queue a new character input from a UTF-16 character, it can be a surrogate /// [NativeName(NativeNameType.Func, "ImGuiIO_AddInputCharacterUTF16")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddInputCharacterUTF16([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "ImWchar16")] char c) + public unsafe void AddInputCharacterUTF16( ushort c) { fixed (ImGuiIO* @this = &this) { @@ -16559,9 +20897,7 @@ public unsafe void AddInputCharacterUTF16([NativeName(NativeNameType.Param, "c") } } - /// /// Queue a new key downup event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend. /// [NativeName(NativeNameType.Func, "ImGuiIO_AddKeyAnalogEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddKeyAnalogEvent([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] bool down, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "float")] float v) + public unsafe void AddKeyAnalogEvent( ImGuiKey key, bool down, float v) { fixed (ImGuiIO* @this = &this) { @@ -16569,9 +20905,7 @@ public unsafe void AddKeyAnalogEvent([NativeName(NativeNameType.Param, "key")] [ } } - /// /// Queue a new key downup event. Key should be "translated" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddKeyEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddKeyEvent([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] bool down) + public unsafe void AddKeyEvent( ImGuiKey key, bool down) { fixed (ImGuiIO* @this = &this) { @@ -16579,9 +20913,7 @@ public unsafe void AddKeyEvent([NativeName(NativeNameType.Param, "key")] [Native } } - /// /// Queue a mouse button change /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseButtonEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddMouseButtonEvent([NativeName(NativeNameType.Param, "button")] [NativeName(NativeNameType.Type, "int")] int button, [NativeName(NativeNameType.Param, "down")] [NativeName(NativeNameType.Type, "bool")] bool down) + public unsafe void AddMouseButtonEvent( int button, bool down) { fixed (ImGuiIO* @this = &this) { @@ -16589,9 +20921,7 @@ public unsafe void AddMouseButtonEvent([NativeName(NativeNameType.Param, "button } } - /// /// Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMousePosEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddMousePosEvent([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "float")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "float")] float y) + public unsafe void AddMousePosEvent( float x, float y) { fixed (ImGuiIO* @this = &this) { @@ -16599,9 +20929,7 @@ public unsafe void AddMousePosEvent([NativeName(NativeNameType.Param, "x")] [Nat } } - /// /// Queue a mouse source change (MouseTouchScreenPen) /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseSourceEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddMouseSourceEvent([NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "ImGuiMouseSource")] ImGuiMouseSource source) + public unsafe void AddMouseSourceEvent( ImGuiMouseSource source) { fixed (ImGuiIO* @this = &this) { @@ -16609,9 +20937,7 @@ public unsafe void AddMouseSourceEvent([NativeName(NativeNameType.Param, "source } } - /// /// Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to call this (for multi-viewport support). /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseViewportEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddMouseViewportEvent([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "ImGuiID")] int id) + public unsafe void AddMouseViewportEvent( uint id) { fixed (ImGuiIO* @this = &this) { @@ -16619,9 +20945,7 @@ public unsafe void AddMouseViewportEvent([NativeName(NativeNameType.Param, "id") } } - /// /// Queue a mouse wheel update. wheel_y<0: scroll down, wheel_y>0: scroll up, wheel_x<0: scroll right, wheel_x>0: scroll left. /// [NativeName(NativeNameType.Func, "ImGuiIO_AddMouseWheelEvent")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void AddMouseWheelEvent([NativeName(NativeNameType.Param, "wheel_x")] [NativeName(NativeNameType.Type, "float")] float wheelX, [NativeName(NativeNameType.Param, "wheel_y")] [NativeName(NativeNameType.Type, "float")] float wheelY) + public unsafe void AddMouseWheelEvent( float wheelX, float wheelY) { fixed (ImGuiIO* @this = &this) { @@ -16629,18 +20953,14 @@ public unsafe void AddMouseWheelEvent([NativeName(NativeNameType.Param, "wheel_x } } - /// /// [Internal] Clear the text input buffer manually /// [NativeName(NativeNameType.Func, "ImGuiIO_ClearInputCharacters")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClearInputCharacters() + public unsafe void ClearEventsQueue() { fixed (ImGuiIO* @this = &this) { - ImGui.ClearInputCharactersNative(@this); + ImGui.ClearEventsQueueNative(@this); } } - /// /// [Internal] Release all keys /// [NativeName(NativeNameType.Func, "ImGuiIO_ClearInputKeys")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void ClearInputKeys() { fixed (ImGuiIO* @this = &this) @@ -16649,8 +20969,6 @@ public unsafe void ClearInputKeys() } } - [NativeName(NativeNameType.Func, "ImGuiIO_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiIO* @this = &this) @@ -16659,9 +20977,7 @@ public unsafe void Destroy() } } - /// /// Set master flag for accepting keymousetext events (default to true). Useful if you have native dialog boxes that are interrupting your application looprefresh, and you want to disable events being queued while your app is frozen. /// [NativeName(NativeNameType.Func, "ImGuiIO_SetAppAcceptingEvents")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetAppAcceptingEvents([NativeName(NativeNameType.Param, "accepting_events")] [NativeName(NativeNameType.Type, "bool")] bool acceptingEvents) + public unsafe void SetAppAcceptingEvents( bool acceptingEvents) { fixed (ImGuiIO* @this = &this) { @@ -16669,9 +20985,7 @@ public unsafe void SetAppAcceptingEvents([NativeName(NativeNameType.Param, "acce } } - /// /// [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. /// [NativeName(NativeNameType.Func, "ImGuiIO_SetKeyEventNativeData")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetKeyEventNativeData([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "native_keycode")] [NativeName(NativeNameType.Type, "int")] int nativeKeycode, [NativeName(NativeNameType.Param, "native_scancode")] [NativeName(NativeNameType.Type, "int")] int nativeScancode, [NativeName(NativeNameType.Param, "native_legacy_index")] [NativeName(NativeNameType.Type, "int")] int nativeLegacyIndex) + public unsafe void SetKeyEventNativeData( ImGuiKey key, int nativeKeycode, int nativeScancode, int nativeLegacyIndex) { fixed (ImGuiIO* @this = &this) { @@ -16679,9 +20993,7 @@ public unsafe void SetKeyEventNativeData([NativeName(NativeNameType.Param, "key" } } - /// /// [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. /// [NativeName(NativeNameType.Func, "ImGuiIO_SetKeyEventNativeData")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetKeyEventNativeData([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiKey")] ImGuiKey key, [NativeName(NativeNameType.Param, "native_keycode")] [NativeName(NativeNameType.Type, "int")] int nativeKeycode, [NativeName(NativeNameType.Param, "native_scancode")] [NativeName(NativeNameType.Type, "int")] int nativeScancode) + public unsafe void SetKeyEventNativeData( ImGuiKey key, int nativeKeycode, int nativeScancode) { fixed (ImGuiIO* @this = &this) { @@ -16694,36 +21006,34 @@ public unsafe void SetKeyEventNativeData([NativeName(NativeNameType.Param, "key" /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiPlatformImeData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiPlatformImeData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantVisible")] - [NativeName(NativeNameType.Type, "bool")] public byte WantVisible; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 InputPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputLineHeight")] - [NativeName(NativeNameType.Type, "float")] public float InputLineHeight; + /// /// To be documented. /// public unsafe ImGuiPlatformImeData(bool wantVisible = default, Vector2 inputPos = default, float inputLineHeight = default) + { + WantVisible = wantVisible ? (byte)1 : (byte)0; + InputPos = inputPos; + InputLineHeight = inputLineHeight; + } + - [NativeName(NativeNameType.Func, "ImGuiPlatformImeData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiPlatformImeData* @this = &this) @@ -16737,229 +21047,204 @@ public unsafe void Destroy() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiKeyData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiKeyData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Down")] - [NativeName(NativeNameType.Type, "bool")] public byte Down; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DownDuration")] - [NativeName(NativeNameType.Type, "float")] public float DownDuration; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DownDurationPrev")] - [NativeName(NativeNameType.Type, "float")] public float DownDurationPrev; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AnalogValue")] - [NativeName(NativeNameType.Type, "float")] public float AnalogValue; + /// /// To be documented. /// public unsafe ImGuiKeyData(bool down = default, float downDuration = default, float downDurationPrev = default, float analogValue = default) + { + Down = down ? (byte)1 : (byte)0; + DownDuration = downDuration; + DownDurationPrev = downDurationPrev; + AnalogValue = analogValue; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiPlatformIO")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiPlatformIO { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_CreateWindow")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp)*")] public unsafe void* PlatformCreateWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_DestroyWindow")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp)*")] public unsafe void* PlatformDestroyWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_ShowWindow")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp)*")] public unsafe void* PlatformShowWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_SetWindowPos")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp, ImVec2 pos)*")] public unsafe void* PlatformSetWindowPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_GetWindowPos")] - [NativeName(NativeNameType.Type, "ImVec2 (*)(ImGuiViewport* vp)*")] public unsafe void* PlatformGetWindowPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_SetWindowSize")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp, ImVec2 size)*")] public unsafe void* PlatformSetWindowSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_GetWindowSize")] - [NativeName(NativeNameType.Type, "ImVec2 (*)(ImGuiViewport* vp)*")] public unsafe void* PlatformGetWindowSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_SetWindowFocus")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp)*")] public unsafe void* PlatformSetWindowFocus; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_GetWindowFocus")] - [NativeName(NativeNameType.Type, "bool (*)(ImGuiViewport* vp)*")] public unsafe void* PlatformGetWindowFocus; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_GetWindowMinimized")] - [NativeName(NativeNameType.Type, "bool (*)(ImGuiViewport* vp)*")] public unsafe void* PlatformGetWindowMinimized; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_SetWindowTitle")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp, const char* str)*")] public unsafe void* PlatformSetWindowTitle; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_SetWindowAlpha")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp, float alpha)*")] public unsafe void* PlatformSetWindowAlpha; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_UpdateWindow")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp)*")] public unsafe void* PlatformUpdateWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_RenderWindow")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp, void* render_arg)*")] public unsafe void* PlatformRenderWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_SwapBuffers")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp, void* render_arg)*")] public unsafe void* PlatformSwapBuffers; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_GetWindowDpiScale")] - [NativeName(NativeNameType.Type, "float (*)(ImGuiViewport* vp)*")] public unsafe void* PlatformGetWindowDpiScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_OnChangedViewport")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp)*")] public unsafe void* PlatformOnChangedViewport; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Platform_CreateVkSurface")] - [NativeName(NativeNameType.Type, "int (*)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface)*")] public unsafe void* PlatformCreateVkSurface; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Renderer_CreateWindow")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp)*")] public unsafe void* RendererCreateWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Renderer_DestroyWindow")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp)*")] public unsafe void* RendererDestroyWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Renderer_SetWindowSize")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp, ImVec2 size)*")] public unsafe void* RendererSetWindowSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Renderer_RenderWindow")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp, void* render_arg)*")] public unsafe void* RendererRenderWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Renderer_SwapBuffers")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiViewport* vp, void* render_arg)*")] public unsafe void* RendererSwapBuffers; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Monitors")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiPlatformMonitor")] public ImVectorImGuiPlatformMonitor Monitors; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Viewports")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiViewportPtr")] public ImVectorImGuiViewportPtr Viewports; + /// /// To be documented. /// public unsafe ImGuiPlatformIO(delegate* platformCreatewindow = default, delegate* platformDestroywindow = default, delegate* platformShowwindow = default, delegate* platformSetwindowpos = default, delegate* platformGetwindowpos = default, delegate* platformSetwindowsize = default, delegate* platformGetwindowsize = default, delegate* platformSetwindowfocus = default, delegate* platformGetwindowfocus = default, delegate* platformGetwindowminimized = default, delegate* platformSetwindowtitle = default, delegate* platformSetwindowalpha = default, delegate* platformUpdatewindow = default, delegate* platformRenderwindow = default, delegate* platformSwapbuffers = default, delegate* platformGetwindowdpiscale = default, delegate* platformOnchangedviewport = default, delegate* platformCreatevksurface = default, delegate* rendererCreatewindow = default, delegate* rendererDestroywindow = default, delegate* rendererSetwindowsize = default, delegate* rendererRenderwindow = default, delegate* rendererSwapbuffers = default, ImVectorImGuiPlatformMonitor monitors = default, ImVectorImGuiViewportPtr viewports = default) + { + PlatformCreateWindow = (void*)platformCreatewindow; + PlatformDestroyWindow = (void*)platformDestroywindow; + PlatformShowWindow = (void*)platformShowwindow; + PlatformSetWindowPos = (void*)platformSetwindowpos; + PlatformGetWindowPos = (void*)platformGetwindowpos; + PlatformSetWindowSize = (void*)platformSetwindowsize; + PlatformGetWindowSize = (void*)platformGetwindowsize; + PlatformSetWindowFocus = (void*)platformSetwindowfocus; + PlatformGetWindowFocus = (void*)platformGetwindowfocus; + PlatformGetWindowMinimized = (void*)platformGetwindowminimized; + PlatformSetWindowTitle = (void*)platformSetwindowtitle; + PlatformSetWindowAlpha = (void*)platformSetwindowalpha; + PlatformUpdateWindow = (void*)platformUpdatewindow; + PlatformRenderWindow = (void*)platformRenderwindow; + PlatformSwapBuffers = (void*)platformSwapbuffers; + PlatformGetWindowDpiScale = (void*)platformGetwindowdpiscale; + PlatformOnChangedViewport = (void*)platformOnchangedviewport; + PlatformCreateVkSurface = (void*)platformCreatevksurface; + RendererCreateWindow = (void*)rendererCreatewindow; + RendererDestroyWindow = (void*)rendererDestroywindow; + RendererSetWindowSize = (void*)rendererSetwindowsize; + RendererRenderWindow = (void*)rendererRenderwindow; + RendererSwapBuffers = (void*)rendererSwapbuffers; + Monitors = monitors; + Viewports = viewports; + } + - [NativeName(NativeNameType.Func, "ImGuiPlatformIO_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiPlatformIO* @this = &this) @@ -16973,89 +21258,84 @@ public unsafe void Destroy() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiPlatformMonitor")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiPlatformMonitor { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiPlatformMonitor*")] public unsafe ImGuiPlatformMonitor* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiPlatformMonitor(int size = default, int capacity = default, ImGuiPlatformMonitor* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiPlatformMonitor")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiPlatformMonitor { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MainPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 MainPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MainSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 MainSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WorkPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WorkPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WorkSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WorkSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DpiScale")] - [NativeName(NativeNameType.Type, "float")] public float DpiScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformHandle")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* PlatformHandle; + /// /// To be documented. /// public unsafe ImGuiPlatformMonitor(Vector2 mainPos = default, Vector2 mainSize = default, Vector2 workPos = default, Vector2 workSize = default, float dpiScale = default, void* platformHandle = default) + { + MainPos = mainPos; + MainSize = mainSize; + WorkPos = workPos; + WorkSize = workSize; + DpiScale = dpiScale; + PlatformHandle = platformHandle; + } + - [NativeName(NativeNameType.Func, "ImGuiPlatformMonitor_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiPlatformMonitor* @this = &this) @@ -17069,348 +21349,274 @@ public unsafe void Destroy() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiViewportPtr")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiViewportPtr { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiViewport**")] public unsafe ImGuiViewport** Data; + /// /// To be documented. /// public unsafe ImVectorImGuiViewportPtr(int size = default, int capacity = default, ImGuiViewport** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiStyle")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiStyle { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Alpha")] - [NativeName(NativeNameType.Type, "float")] public float Alpha; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisabledAlpha")] - [NativeName(NativeNameType.Type, "float")] public float DisabledAlpha; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowPadding")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WindowPadding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowRounding")] - [NativeName(NativeNameType.Type, "float")] public float WindowRounding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowBorderSize")] - [NativeName(NativeNameType.Type, "float")] public float WindowBorderSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowMinSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WindowMinSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowTitleAlign")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WindowTitleAlign; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowMenuButtonPosition")] - [NativeName(NativeNameType.Type, "ImGuiDir")] - public ImGuiDir WindowMenuButtonPosition; + public int WindowMenuButtonPosition; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ChildRounding")] - [NativeName(NativeNameType.Type, "float")] public float ChildRounding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ChildBorderSize")] - [NativeName(NativeNameType.Type, "float")] public float ChildBorderSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PopupRounding")] - [NativeName(NativeNameType.Type, "float")] public float PopupRounding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PopupBorderSize")] - [NativeName(NativeNameType.Type, "float")] public float PopupBorderSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FramePadding")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 FramePadding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FrameRounding")] - [NativeName(NativeNameType.Type, "float")] public float FrameRounding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FrameBorderSize")] - [NativeName(NativeNameType.Type, "float")] public float FrameBorderSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemSpacing")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ItemSpacing; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemInnerSpacing")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ItemInnerSpacing; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CellPadding")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 CellPadding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TouchExtraPadding")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 TouchExtraPadding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IndentSpacing")] - [NativeName(NativeNameType.Type, "float")] public float IndentSpacing; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsMinSpacing")] - [NativeName(NativeNameType.Type, "float")] public float ColumnsMinSpacing; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollbarSize")] - [NativeName(NativeNameType.Type, "float")] public float ScrollbarSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollbarRounding")] - [NativeName(NativeNameType.Type, "float")] public float ScrollbarRounding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GrabMinSize")] - [NativeName(NativeNameType.Type, "float")] public float GrabMinSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GrabRounding")] - [NativeName(NativeNameType.Type, "float")] public float GrabRounding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LogSliderDeadzone")] - [NativeName(NativeNameType.Type, "float")] public float LogSliderDeadzone; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TabRounding")] - [NativeName(NativeNameType.Type, "float")] public float TabRounding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TabBorderSize")] - [NativeName(NativeNameType.Type, "float")] public float TabBorderSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TabMinWidthForCloseButton")] - [NativeName(NativeNameType.Type, "float")] public float TabMinWidthForCloseButton; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColorButtonPosition")] - [NativeName(NativeNameType.Type, "ImGuiDir")] - public ImGuiDir ColorButtonPosition; + public float TabBarBorderSize; + + /// + /// To be documented. + /// + public float TableAngledHeadersAngle; + + /// + /// To be documented. + /// + public int ColorButtonPosition; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ButtonTextAlign")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ButtonTextAlign; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SelectableTextAlign")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 SelectableTextAlign; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SeparatorTextBorderSize")] - [NativeName(NativeNameType.Type, "float")] public float SeparatorTextBorderSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SeparatorTextAlign")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 SeparatorTextAlign; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SeparatorTextPadding")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 SeparatorTextPadding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplayWindowPadding")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 DisplayWindowPadding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplaySafeAreaPadding")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 DisplaySafeAreaPadding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseCursorScale")] - [NativeName(NativeNameType.Type, "float")] + public float DockingSeparatorSize; + + /// + /// To be documented. + /// public float MouseCursorScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AntiAliasedLines")] - [NativeName(NativeNameType.Type, "bool")] public byte AntiAliasedLines; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AntiAliasedLinesUseTex")] - [NativeName(NativeNameType.Type, "bool")] public byte AntiAliasedLinesUseTex; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AntiAliasedFill")] - [NativeName(NativeNameType.Type, "bool")] public byte AntiAliasedFill; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurveTessellationTol")] - [NativeName(NativeNameType.Type, "float")] public float CurveTessellationTol; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CircleTessellationMaxError")] - [NativeName(NativeNameType.Type, "float")] public float CircleTessellationMaxError; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Colors")] - [NativeName(NativeNameType.Type, "ImVec4[55]")] public Vector4 Colors_0; public Vector4 Colors_1; public Vector4 Colors_2; @@ -17470,39 +21676,255 @@ public partial struct ImGuiStyle /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoverStationaryDelay")] - [NativeName(NativeNameType.Type, "float")] public float HoverStationaryDelay; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoverDelayShort")] - [NativeName(NativeNameType.Type, "float")] public float HoverDelayShort; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoverDelayNormal")] - [NativeName(NativeNameType.Type, "float")] public float HoverDelayNormal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoverFlagsForTooltipMouse")] - [NativeName(NativeNameType.Type, "ImGuiHoveredFlags")] - public ImGuiHoveredFlags HoverFlagsForTooltipMouse; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "HoverFlagsForTooltipNav")] - [NativeName(NativeNameType.Type, "ImGuiHoveredFlags")] - public ImGuiHoveredFlags HoverFlagsForTooltipNav; - - + public int HoverFlagsForTooltipMouse; + + /// + /// To be documented. + /// + public int HoverFlagsForTooltipNav; + + + + /// /// To be documented. /// public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, int windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, float tabBarBorderSize = default, float tableAngledHeadersAngle = default, int colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, float separatorTextBorderSize = default, Vector2 separatorTextAlign = default, Vector2 separatorTextPadding = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float dockingSeparatorSize = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Vector4* colors = default, float hoverStationaryDelay = default, float hoverDelayShort = default, float hoverDelayNormal = default, int hoverFlagsForTooltipMouse = default, int hoverFlagsForTooltipNav = default) + { + Alpha = alpha; + DisabledAlpha = disabledAlpha; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + WindowMinSize = windowMinSize; + WindowTitleAlign = windowTitleAlign; + WindowMenuButtonPosition = windowMenuButtonPosition; + ChildRounding = childRounding; + ChildBorderSize = childBorderSize; + PopupRounding = popupRounding; + PopupBorderSize = popupBorderSize; + FramePadding = framePadding; + FrameRounding = frameRounding; + FrameBorderSize = frameBorderSize; + ItemSpacing = itemSpacing; + ItemInnerSpacing = itemInnerSpacing; + CellPadding = cellPadding; + TouchExtraPadding = touchExtraPadding; + IndentSpacing = indentSpacing; + ColumnsMinSpacing = columnsMinSpacing; + ScrollbarSize = scrollbarSize; + ScrollbarRounding = scrollbarRounding; + GrabMinSize = grabMinSize; + GrabRounding = grabRounding; + LogSliderDeadzone = logSliderDeadzone; + TabRounding = tabRounding; + TabBorderSize = tabBorderSize; + TabMinWidthForCloseButton = tabMinWidthForCloseButton; + TabBarBorderSize = tabBarBorderSize; + TableAngledHeadersAngle = tableAngledHeadersAngle; + ColorButtonPosition = colorButtonPosition; + ButtonTextAlign = buttonTextAlign; + SelectableTextAlign = selectableTextAlign; + SeparatorTextBorderSize = separatorTextBorderSize; + SeparatorTextAlign = separatorTextAlign; + SeparatorTextPadding = separatorTextPadding; + DisplayWindowPadding = displayWindowPadding; + DisplaySafeAreaPadding = displaySafeAreaPadding; + DockingSeparatorSize = dockingSeparatorSize; + MouseCursorScale = mouseCursorScale; + AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; + AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; + AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; + CurveTessellationTol = curveTessellationTol; + CircleTessellationMaxError = circleTessellationMaxError; + if (colors != default) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + Colors_6 = colors[6]; + Colors_7 = colors[7]; + Colors_8 = colors[8]; + Colors_9 = colors[9]; + Colors_10 = colors[10]; + Colors_11 = colors[11]; + Colors_12 = colors[12]; + Colors_13 = colors[13]; + Colors_14 = colors[14]; + Colors_15 = colors[15]; + Colors_16 = colors[16]; + Colors_17 = colors[17]; + Colors_18 = colors[18]; + Colors_19 = colors[19]; + Colors_20 = colors[20]; + Colors_21 = colors[21]; + Colors_22 = colors[22]; + Colors_23 = colors[23]; + Colors_24 = colors[24]; + Colors_25 = colors[25]; + Colors_26 = colors[26]; + Colors_27 = colors[27]; + Colors_28 = colors[28]; + Colors_29 = colors[29]; + Colors_30 = colors[30]; + Colors_31 = colors[31]; + Colors_32 = colors[32]; + Colors_33 = colors[33]; + Colors_34 = colors[34]; + Colors_35 = colors[35]; + Colors_36 = colors[36]; + Colors_37 = colors[37]; + Colors_38 = colors[38]; + Colors_39 = colors[39]; + Colors_40 = colors[40]; + Colors_41 = colors[41]; + Colors_42 = colors[42]; + Colors_43 = colors[43]; + Colors_44 = colors[44]; + Colors_45 = colors[45]; + Colors_46 = colors[46]; + Colors_47 = colors[47]; + Colors_48 = colors[48]; + Colors_49 = colors[49]; + Colors_50 = colors[50]; + Colors_51 = colors[51]; + Colors_52 = colors[52]; + Colors_53 = colors[53]; + Colors_54 = colors[54]; + } + HoverStationaryDelay = hoverStationaryDelay; + HoverDelayShort = hoverDelayShort; + HoverDelayNormal = hoverDelayNormal; + HoverFlagsForTooltipMouse = hoverFlagsForTooltipMouse; + HoverFlagsForTooltipNav = hoverFlagsForTooltipNav; + } + + /// /// To be documented. /// public unsafe ImGuiStyle(float alpha = default, float disabledAlpha = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, Vector2 windowMinSize = default, Vector2 windowTitleAlign = default, int windowMenuButtonPosition = default, float childRounding = default, float childBorderSize = default, float popupRounding = default, float popupBorderSize = default, Vector2 framePadding = default, float frameRounding = default, float frameBorderSize = default, Vector2 itemSpacing = default, Vector2 itemInnerSpacing = default, Vector2 cellPadding = default, Vector2 touchExtraPadding = default, float indentSpacing = default, float columnsMinSpacing = default, float scrollbarSize = default, float scrollbarRounding = default, float grabMinSize = default, float grabRounding = default, float logSliderDeadzone = default, float tabRounding = default, float tabBorderSize = default, float tabMinWidthForCloseButton = default, float tabBarBorderSize = default, float tableAngledHeadersAngle = default, int colorButtonPosition = default, Vector2 buttonTextAlign = default, Vector2 selectableTextAlign = default, float separatorTextBorderSize = default, Vector2 separatorTextAlign = default, Vector2 separatorTextPadding = default, Vector2 displayWindowPadding = default, Vector2 displaySafeAreaPadding = default, float dockingSeparatorSize = default, float mouseCursorScale = default, bool antiAliasedLines = default, bool antiAliasedLinesUseTex = default, bool antiAliasedFill = default, float curveTessellationTol = default, float circleTessellationMaxError = default, Span colors = default, float hoverStationaryDelay = default, float hoverDelayShort = default, float hoverDelayNormal = default, int hoverFlagsForTooltipMouse = default, int hoverFlagsForTooltipNav = default) + { + Alpha = alpha; + DisabledAlpha = disabledAlpha; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + WindowMinSize = windowMinSize; + WindowTitleAlign = windowTitleAlign; + WindowMenuButtonPosition = windowMenuButtonPosition; + ChildRounding = childRounding; + ChildBorderSize = childBorderSize; + PopupRounding = popupRounding; + PopupBorderSize = popupBorderSize; + FramePadding = framePadding; + FrameRounding = frameRounding; + FrameBorderSize = frameBorderSize; + ItemSpacing = itemSpacing; + ItemInnerSpacing = itemInnerSpacing; + CellPadding = cellPadding; + TouchExtraPadding = touchExtraPadding; + IndentSpacing = indentSpacing; + ColumnsMinSpacing = columnsMinSpacing; + ScrollbarSize = scrollbarSize; + ScrollbarRounding = scrollbarRounding; + GrabMinSize = grabMinSize; + GrabRounding = grabRounding; + LogSliderDeadzone = logSliderDeadzone; + TabRounding = tabRounding; + TabBorderSize = tabBorderSize; + TabMinWidthForCloseButton = tabMinWidthForCloseButton; + TabBarBorderSize = tabBarBorderSize; + TableAngledHeadersAngle = tableAngledHeadersAngle; + ColorButtonPosition = colorButtonPosition; + ButtonTextAlign = buttonTextAlign; + SelectableTextAlign = selectableTextAlign; + SeparatorTextBorderSize = separatorTextBorderSize; + SeparatorTextAlign = separatorTextAlign; + SeparatorTextPadding = separatorTextPadding; + DisplayWindowPadding = displayWindowPadding; + DisplaySafeAreaPadding = displaySafeAreaPadding; + DockingSeparatorSize = dockingSeparatorSize; + MouseCursorScale = mouseCursorScale; + AntiAliasedLines = antiAliasedLines ? (byte)1 : (byte)0; + AntiAliasedLinesUseTex = antiAliasedLinesUseTex ? (byte)1 : (byte)0; + AntiAliasedFill = antiAliasedFill ? (byte)1 : (byte)0; + CurveTessellationTol = curveTessellationTol; + CircleTessellationMaxError = circleTessellationMaxError; + if (colors != default) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + Colors_6 = colors[6]; + Colors_7 = colors[7]; + Colors_8 = colors[8]; + Colors_9 = colors[9]; + Colors_10 = colors[10]; + Colors_11 = colors[11]; + Colors_12 = colors[12]; + Colors_13 = colors[13]; + Colors_14 = colors[14]; + Colors_15 = colors[15]; + Colors_16 = colors[16]; + Colors_17 = colors[17]; + Colors_18 = colors[18]; + Colors_19 = colors[19]; + Colors_20 = colors[20]; + Colors_21 = colors[21]; + Colors_22 = colors[22]; + Colors_23 = colors[23]; + Colors_24 = colors[24]; + Colors_25 = colors[25]; + Colors_26 = colors[26]; + Colors_27 = colors[27]; + Colors_28 = colors[28]; + Colors_29 = colors[29]; + Colors_30 = colors[30]; + Colors_31 = colors[31]; + Colors_32 = colors[32]; + Colors_33 = colors[33]; + Colors_34 = colors[34]; + Colors_35 = colors[35]; + Colors_36 = colors[36]; + Colors_37 = colors[37]; + Colors_38 = colors[38]; + Colors_39 = colors[39]; + Colors_40 = colors[40]; + Colors_41 = colors[41]; + Colors_42 = colors[42]; + Colors_43 = colors[43]; + Colors_44 = colors[44]; + Colors_45 = colors[45]; + Colors_46 = colors[46]; + Colors_47 = colors[47]; + Colors_48 = colors[48]; + Colors_49 = colors[49]; + Colors_50 = colors[50]; + Colors_51 = colors[51]; + Colors_52 = colors[52]; + Colors_53 = colors[53]; + Colors_54 = colors[54]; + } + HoverStationaryDelay = hoverStationaryDelay; + HoverDelayShort = hoverDelayShort; + HoverDelayNormal = hoverDelayNormal; + HoverFlagsForTooltipMouse = hoverFlagsForTooltipMouse; + HoverFlagsForTooltipNav = hoverFlagsForTooltipNav; + } /// @@ -17519,8 +21941,6 @@ public unsafe Span Colors } } } - [NativeName(NativeNameType.Func, "ImGuiStyle_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiStyle* @this = &this) @@ -17529,9 +21949,7 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImGuiStyle_ScaleAllSizes")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ScaleAllSizes([NativeName(NativeNameType.Param, "scale_factor")] [NativeName(NativeNameType.Type, "float")] float scaleFactor) + public unsafe void ScaleAllSizes( float scaleFactor) { fixed (ImGuiStyle* @this = &this) { @@ -17544,269 +21962,254 @@ public unsafe void ScaleAllSizes([NativeName(NativeNameType.Param, "scale_factor /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiInputEvent")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiInputEvent { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiInputEvent*")] public unsafe ImGuiInputEvent* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiInputEvent(int size = default, int capacity = default, ImGuiInputEvent* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputEvent")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputEvent { /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "")] [StructLayout(LayoutKind.Explicit)] public partial struct ImGuiInputEventUnion { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MousePos")] - [NativeName(NativeNameType.Type, "ImGuiInputEventMousePos")] [FieldOffset(0)] public ImGuiInputEventMousePos MousePos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseWheel")] - [NativeName(NativeNameType.Type, "ImGuiInputEventMouseWheel")] [FieldOffset(0)] public ImGuiInputEventMouseWheel MouseWheel; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseButton")] - [NativeName(NativeNameType.Type, "ImGuiInputEventMouseButton")] [FieldOffset(0)] public ImGuiInputEventMouseButton MouseButton; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseViewport")] - [NativeName(NativeNameType.Type, "ImGuiInputEventMouseViewport")] [FieldOffset(0)] public ImGuiInputEventMouseViewport MouseViewport; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Key")] - [NativeName(NativeNameType.Type, "ImGuiInputEventKey")] [FieldOffset(0)] public ImGuiInputEventKey Key; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Text")] - [NativeName(NativeNameType.Type, "ImGuiInputEventText")] [FieldOffset(0)] public ImGuiInputEventText Text; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AppFocused")] - [NativeName(NativeNameType.Type, "ImGuiInputEventAppFocused")] [FieldOffset(0)] public ImGuiInputEventAppFocused AppFocused; + /// /// To be documented. /// public unsafe ImGuiInputEventUnion(ImGuiInputEventMousePos mousePos = default, ImGuiInputEventMouseWheel mouseWheel = default, ImGuiInputEventMouseButton mouseButton = default, ImGuiInputEventMouseViewport mouseViewport = default, ImGuiInputEventKey key = default, ImGuiInputEventText text = default, ImGuiInputEventAppFocused appFocused = default) + { + MousePos = mousePos; + MouseWheel = mouseWheel; + MouseButton = mouseButton; + MouseViewport = mouseViewport; + Key = key; + Text = text; + AppFocused = appFocused; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Type")] - [NativeName(NativeNameType.Type, "ImGuiInputEventType")] public ImGuiInputEventType Type; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Source")] - [NativeName(NativeNameType.Type, "ImGuiInputSource")] public ImGuiInputSource Source; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EventId")] - [NativeName(NativeNameType.Type, "ImU32")] public uint EventId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "")] - [NativeName(NativeNameType.Type, "")] public ImGuiInputEventUnion Union; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AddedByTestEngine")] - [NativeName(NativeNameType.Type, "bool")] public byte AddedByTestEngine; - - - [NativeName(NativeNameType.Func, "ImGuiInputEvent_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiInputEvent(ImGuiInputEventType type = default, ImGuiInputSource source = default, uint eventId = default, ImGuiInputEventUnion union = default, bool addedByTestEngine = default) { - fixed (ImGuiInputEvent* @this = &this) - { - ImGui.DestroyNative(@this); - } + Type = type; + Source = source; + EventId = eventId; + Union = union; + AddedByTestEngine = addedByTestEngine ? (byte)1 : (byte)0; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputEventMousePos")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputEventMousePos { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PosX")] - [NativeName(NativeNameType.Type, "float")] public float PosX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PosY")] - [NativeName(NativeNameType.Type, "float")] public float PosY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseSource")] - [NativeName(NativeNameType.Type, "ImGuiMouseSource")] public ImGuiMouseSource MouseSource; + /// /// To be documented. /// public unsafe ImGuiInputEventMousePos(float posX = default, float posY = default, ImGuiMouseSource mouseSource = default) + { + PosX = posX; + PosY = posY; + MouseSource = mouseSource; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputEventMouseWheel")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputEventMouseWheel { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WheelX")] - [NativeName(NativeNameType.Type, "float")] public float WheelX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WheelY")] - [NativeName(NativeNameType.Type, "float")] public float WheelY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseSource")] - [NativeName(NativeNameType.Type, "ImGuiMouseSource")] public ImGuiMouseSource MouseSource; + /// /// To be documented. /// public unsafe ImGuiInputEventMouseWheel(float wheelX = default, float wheelY = default, ImGuiMouseSource mouseSource = default) + { + WheelX = wheelX; + WheelY = wheelY; + MouseSource = mouseSource; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputEventMouseButton")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputEventMouseButton { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Button")] - [NativeName(NativeNameType.Type, "int")] public int Button; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Down")] - [NativeName(NativeNameType.Type, "bool")] public byte Down; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MouseSource")] - [NativeName(NativeNameType.Type, "ImGuiMouseSource")] public ImGuiMouseSource MouseSource; + /// /// To be documented. /// public unsafe ImGuiInputEventMouseButton(int button = default, bool down = default, ImGuiMouseSource mouseSource = default) + { + Button = button; + Down = down ? (byte)1 : (byte)0; + MouseSource = mouseSource; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputEventMouseViewport")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputEventMouseViewport { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoveredViewportID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int HoveredViewportID; + public uint HoveredViewportID; + + /// /// To be documented. /// public unsafe ImGuiInputEventMouseViewport(uint hoveredViewportId = default) + { + HoveredViewportID = hoveredViewportId; + } } @@ -17814,947 +22217,974 @@ public partial struct ImGuiInputEventMouseViewport /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputEventKey")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputEventKey { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Key")] - [NativeName(NativeNameType.Type, "ImGuiKey")] public ImGuiKey Key; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Down")] - [NativeName(NativeNameType.Type, "bool")] public byte Down; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AnalogValue")] - [NativeName(NativeNameType.Type, "float")] public float AnalogValue; + /// /// To be documented. /// public unsafe ImGuiInputEventKey(ImGuiKey key = default, bool down = default, float analogValue = default) + { + Key = key; + Down = down ? (byte)1 : (byte)0; + AnalogValue = analogValue; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputEventText")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputEventText { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Char")] - [NativeName(NativeNameType.Type, "unsigned int")] public uint Char; + /// /// To be documented. /// public unsafe ImGuiInputEventText(uint @char = default) + { + Char = @char; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputEventAppFocused")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputEventAppFocused { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Focused")] - [NativeName(NativeNameType.Type, "bool")] public byte Focused; + /// /// To be documented. /// public unsafe ImGuiInputEventAppFocused(bool focused = default) + { + Focused = focused ? (byte)1 : (byte)0; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiWindowPtr")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiWindowPtr { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiWindow**")] public unsafe ImGuiWindow** Data; + /// /// To be documented. /// public unsafe ImVectorImGuiWindowPtr(int size = default, int capacity = default, ImGuiWindow** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiWindow")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiWindow { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Ctx")] - [NativeName(NativeNameType.Type, "ImGuiContext*")] public unsafe ImGuiContext* Ctx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Name")] - [NativeName(NativeNameType.Type, "char*")] public unsafe byte* Name; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] - public ImGuiWindowFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FlagsPreviousFrame")] - [NativeName(NativeNameType.Type, "ImGuiWindowFlags")] - public ImGuiWindowFlags FlagsPreviousFrame; + public int FlagsPreviousFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowClass")] - [NativeName(NativeNameType.Type, "ImGuiWindowClass")] public ImGuiWindowClass WindowClass; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Viewport")] - [NativeName(NativeNameType.Type, "ImGuiViewportP*")] public unsafe ImGuiViewportP* Viewport; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ViewportId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ViewportId; + public uint ViewportId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ViewportPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ViewportPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ViewportAllowPlatformMonitorExtend")] - [NativeName(NativeNameType.Type, "int")] public int ViewportAllowPlatformMonitorExtend; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Pos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 Pos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeFull")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 SizeFull; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContentSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ContentSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContentSizeIdeal")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ContentSizeIdeal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContentSizeExplicit")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ContentSizeExplicit; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowPadding")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WindowPadding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowRounding")] - [NativeName(NativeNameType.Type, "float")] public float WindowRounding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowBorderSize")] - [NativeName(NativeNameType.Type, "float")] public float WindowBorderSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DecoOuterSizeX1")] - [NativeName(NativeNameType.Type, "float")] public float DecoOuterSizeX1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DecoOuterSizeY1")] - [NativeName(NativeNameType.Type, "float")] public float DecoOuterSizeY1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DecoOuterSizeX2")] - [NativeName(NativeNameType.Type, "float")] public float DecoOuterSizeX2; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DecoOuterSizeY2")] - [NativeName(NativeNameType.Type, "float")] public float DecoOuterSizeY2; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DecoInnerSizeX1")] - [NativeName(NativeNameType.Type, "float")] public float DecoInnerSizeX1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DecoInnerSizeY1")] - [NativeName(NativeNameType.Type, "float")] public float DecoInnerSizeY1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NameBufLen")] - [NativeName(NativeNameType.Type, "int")] public int NameBufLen; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MoveId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int MoveId; + public uint MoveId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TabId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int TabId; + public uint TabId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ChildId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ChildId; + public uint ChildId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Scroll")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 Scroll; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollMax")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ScrollMax; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollTarget")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ScrollTarget; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollTargetCenterRatio")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ScrollTargetCenterRatio; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollTargetEdgeSnapDist")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ScrollTargetEdgeSnapDist; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollbarSizes")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ScrollbarSizes; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollbarX")] - [NativeName(NativeNameType.Type, "bool")] public byte ScrollbarX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollbarY")] - [NativeName(NativeNameType.Type, "bool")] public byte ScrollbarY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ViewportOwned")] - [NativeName(NativeNameType.Type, "bool")] public byte ViewportOwned; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Active")] - [NativeName(NativeNameType.Type, "bool")] public byte Active; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WasActive")] - [NativeName(NativeNameType.Type, "bool")] public byte WasActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WriteAccessed")] - [NativeName(NativeNameType.Type, "bool")] public byte WriteAccessed; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Collapsed")] - [NativeName(NativeNameType.Type, "bool")] public byte Collapsed; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantCollapseToggle")] - [NativeName(NativeNameType.Type, "bool")] public byte WantCollapseToggle; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SkipItems")] - [NativeName(NativeNameType.Type, "bool")] public byte SkipItems; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Appearing")] - [NativeName(NativeNameType.Type, "bool")] public byte Appearing; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Hidden")] - [NativeName(NativeNameType.Type, "bool")] public byte Hidden; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsFallbackWindow")] - [NativeName(NativeNameType.Type, "bool")] public byte IsFallbackWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsExplicitChild")] - [NativeName(NativeNameType.Type, "bool")] public byte IsExplicitChild; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HasCloseButton")] - [NativeName(NativeNameType.Type, "bool")] public byte HasCloseButton; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ResizeBorderHeld")] - [NativeName(NativeNameType.Type, "char")] public byte ResizeBorderHeld; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BeginCount")] - [NativeName(NativeNameType.Type, "short")] public short BeginCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BeginCountPreviousFrame")] - [NativeName(NativeNameType.Type, "short")] public short BeginCountPreviousFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BeginOrderWithinParent")] - [NativeName(NativeNameType.Type, "short")] public short BeginOrderWithinParent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BeginOrderWithinContext")] - [NativeName(NativeNameType.Type, "short")] public short BeginOrderWithinContext; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FocusOrder")] - [NativeName(NativeNameType.Type, "short")] public short FocusOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PopupId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int PopupId; + public uint PopupId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AutoFitFramesX")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte AutoFitFramesX; + public byte AutoFitFramesX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AutoFitFramesY")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte AutoFitFramesY; + public byte AutoFitFramesY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AutoFitChildAxises")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte AutoFitChildAxises; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "AutoFitOnlyGrows")] - [NativeName(NativeNameType.Type, "bool")] public byte AutoFitOnlyGrows; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AutoPosLastDirection")] - [NativeName(NativeNameType.Type, "ImGuiDir")] - public ImGuiDir AutoPosLastDirection; + public int AutoPosLastDirection; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HiddenFramesCanSkipItems")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte HiddenFramesCanSkipItems; + public byte HiddenFramesCanSkipItems; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HiddenFramesCannotSkipItems")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte HiddenFramesCannotSkipItems; + public byte HiddenFramesCannotSkipItems; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HiddenFramesForRenderOnly")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte HiddenFramesForRenderOnly; + public byte HiddenFramesForRenderOnly; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisableInputsFrames")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte DisableInputsFrames; + public byte DisableInputsFrames; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SetWindowPosAllowFlags")] - [NativeName(NativeNameType.Type, "ImGuiCond")] - public ImGuiCond SetWindowPosAllowFlags; + public int SetWindowPosAllowFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SetWindowSizeAllowFlags")] - [NativeName(NativeNameType.Type, "ImGuiCond")] - public ImGuiCond SetWindowSizeAllowFlags; + public int SetWindowSizeAllowFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SetWindowCollapsedAllowFlags")] - [NativeName(NativeNameType.Type, "ImGuiCond")] - public ImGuiCond SetWindowCollapsedAllowFlags; + public int SetWindowCollapsedAllowFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SetWindowDockAllowFlags")] - [NativeName(NativeNameType.Type, "ImGuiCond")] - public ImGuiCond SetWindowDockAllowFlags; + public int SetWindowDockAllowFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SetWindowPosVal")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 SetWindowPosVal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SetWindowPosPivot")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 SetWindowPosPivot; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IDStack")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiID")] public ImVectorImGuiID IDStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DC")] - [NativeName(NativeNameType.Type, "ImGuiWindowTempData")] public ImGuiWindowTempData DC; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OuterRectClipped")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect OuterRectClipped; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InnerRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect InnerRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InnerClipRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect InnerClipRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WorkRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect WorkRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ParentWorkRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect ParentWorkRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClipRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect ClipRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContentRegionRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect ContentRegionRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HitTestHoleSize")] - [NativeName(NativeNameType.Type, "ImVec2ih")] public ImVec2Ih HitTestHoleSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HitTestHoleOffset")] - [NativeName(NativeNameType.Type, "ImVec2ih")] public ImVec2Ih HitTestHoleOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFrameActive")] - [NativeName(NativeNameType.Type, "int")] public int LastFrameActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFrameJustFocused")] - [NativeName(NativeNameType.Type, "int")] public int LastFrameJustFocused; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastTimeActive")] - [NativeName(NativeNameType.Type, "float")] public float LastTimeActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemWidthDefault")] - [NativeName(NativeNameType.Type, "float")] public float ItemWidthDefault; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "StateStorage")] - [NativeName(NativeNameType.Type, "ImGuiStorage")] public ImGuiStorage StateStorage; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsStorage")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiOldColumns")] public ImVectorImGuiOldColumns ColumnsStorage; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontWindowScale")] - [NativeName(NativeNameType.Type, "float")] public float FontWindowScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FontDpiScale")] - [NativeName(NativeNameType.Type, "float")] public float FontDpiScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SettingsOffset")] - [NativeName(NativeNameType.Type, "int")] public int SettingsOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawList")] - [NativeName(NativeNameType.Type, "ImDrawList*")] public unsafe ImDrawList* DrawList; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawListInst")] - [NativeName(NativeNameType.Type, "ImDrawList")] public ImDrawList DrawListInst; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ParentWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* ParentWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ParentWindowInBeginStack")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* ParentWindowInBeginStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RootWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* RootWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RootWindowPopupTree")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* RootWindowPopupTree; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RootWindowDockTree")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* RootWindowDockTree; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RootWindowForTitleBarHighlight")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* RootWindowForTitleBarHighlight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RootWindowForNav")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* RootWindowForNav; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavLastChildNavWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* NavLastChildNavWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavLastIds")] - [NativeName(NativeNameType.Type, "ImGuiID[2]")] public uint NavLastIds_0; public uint NavLastIds_1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavRectRel")] - [NativeName(NativeNameType.Type, "ImRect[2]")] public ImRect NavRectRel_0; public ImRect NavRectRel_1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavPreferredScoringPosRel")] - [NativeName(NativeNameType.Type, "ImVec2[2]")] public Vector2 NavPreferredScoringPosRel_0; public Vector2 NavPreferredScoringPosRel_1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavRootFocusScopeId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int NavRootFocusScopeId; + public uint NavRootFocusScopeId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MemoryDrawListIdxCapacity")] - [NativeName(NativeNameType.Type, "int")] public int MemoryDrawListIdxCapacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MemoryDrawListVtxCapacity")] - [NativeName(NativeNameType.Type, "int")] public int MemoryDrawListVtxCapacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MemoryCompacted")] - [NativeName(NativeNameType.Type, "bool")] public byte MemoryCompacted; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockIsActive")] - [NativeName(NativeNameType.Type, "bool")] public byte DockIsActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockNodeIsVisible")] - [NativeName(NativeNameType.Type, "bool")] public byte DockNodeIsVisible; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockTabIsVisible")] - [NativeName(NativeNameType.Type, "bool")] public byte DockTabIsVisible; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockTabWantClose")] - [NativeName(NativeNameType.Type, "bool")] public byte DockTabWantClose; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockOrder")] - [NativeName(NativeNameType.Type, "short")] public short DockOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockStyle")] - [NativeName(NativeNameType.Type, "ImGuiWindowDockStyle")] public ImGuiWindowDockStyle DockStyle; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockNode")] - [NativeName(NativeNameType.Type, "ImGuiDockNode*")] public unsafe ImGuiDockNode* DockNode; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockNodeAsHost")] - [NativeName(NativeNameType.Type, "ImGuiDockNode*")] public unsafe ImGuiDockNode* DockNodeAsHost; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int DockId; + public uint DockId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockTabItemStatusFlags")] - [NativeName(NativeNameType.Type, "ImGuiItemStatusFlags")] - public ImGuiItemStatusFlags DockTabItemStatusFlags; + public int DockTabItemStatusFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockTabItemRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect DockTabItemRect; + /// /// To be documented. /// public unsafe ImGuiWindow(ImGuiContext* ctx = default, byte* name = default, uint id = default, int flags = default, int flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, float decoOuterSizeX1 = default, float decoOuterSizeY1 = default, float decoOuterSizeX2 = default, float decoOuterSizeY2 = default, float decoInnerSizeX1 = default, float decoInnerSizeY1 = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginCountPreviousFrame = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, byte autoFitFramesX = default, byte autoFitFramesY = default, bool autoFitOnlyGrows = default, int autoPosLastDirection = default, byte hiddenFramesCanSkipItems = default, byte hiddenFramesCannotSkipItems = default, byte hiddenFramesForRenderOnly = default, byte disableInputsFrames = default, int setWindowPosAllowFlags = default, int setWindowSizeAllowFlags = default, int setWindowCollapsedAllowFlags = default, int setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVectorImGuiID idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVectorImGuiOldColumns columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawList* drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, uint* navLastIds = default, ImRect* navRectRel = default, Vector2* navPreferredScoringPosRel = default, uint navRootFocusScopeId = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, int dockTabItemStatusFlags = default, ImRect dockTabItemRect = default) + { + Ctx = ctx; + Name = name; + ID = id; + Flags = flags; + FlagsPreviousFrame = flagsPreviousFrame; + WindowClass = windowClass; + Viewport = viewport; + ViewportId = viewportId; + ViewportPos = viewportPos; + ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; + Pos = pos; + Size = size; + SizeFull = sizeFull; + ContentSize = contentSize; + ContentSizeIdeal = contentSizeIdeal; + ContentSizeExplicit = contentSizeExplicit; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + DecoOuterSizeX1 = decoOuterSizeX1; + DecoOuterSizeY1 = decoOuterSizeY1; + DecoOuterSizeX2 = decoOuterSizeX2; + DecoOuterSizeY2 = decoOuterSizeY2; + DecoInnerSizeX1 = decoInnerSizeX1; + DecoInnerSizeY1 = decoInnerSizeY1; + NameBufLen = nameBufLen; + MoveId = moveId; + TabId = tabId; + ChildId = childId; + Scroll = scroll; + ScrollMax = scrollMax; + ScrollTarget = scrollTarget; + ScrollTargetCenterRatio = scrollTargetCenterRatio; + ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; + ScrollbarSizes = scrollbarSizes; + ScrollbarX = scrollbarX ? (byte)1 : (byte)0; + ScrollbarY = scrollbarY ? (byte)1 : (byte)0; + ViewportOwned = viewportOwned ? (byte)1 : (byte)0; + Active = active ? (byte)1 : (byte)0; + WasActive = wasActive ? (byte)1 : (byte)0; + WriteAccessed = writeAccessed ? (byte)1 : (byte)0; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; + SkipItems = skipItems ? (byte)1 : (byte)0; + Appearing = appearing ? (byte)1 : (byte)0; + Hidden = hidden ? (byte)1 : (byte)0; + IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; + IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + ResizeBorderHeld = resizeBorderHeld; + BeginCount = beginCount; + BeginCountPreviousFrame = beginCountPreviousFrame; + BeginOrderWithinParent = beginOrderWithinParent; + BeginOrderWithinContext = beginOrderWithinContext; + FocusOrder = focusOrder; + PopupId = popupId; + AutoFitFramesX = autoFitFramesX; + AutoFitFramesY = autoFitFramesY; + AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; + AutoPosLastDirection = autoPosLastDirection; + HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; + HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; + HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; + DisableInputsFrames = disableInputsFrames; + SetWindowPosAllowFlags = setWindowPosAllowFlags; + SetWindowSizeAllowFlags = setWindowSizeAllowFlags; + SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; + SetWindowDockAllowFlags = setWindowDockAllowFlags; + SetWindowPosVal = setWindowPosVal; + SetWindowPosPivot = setWindowPosPivot; + IDStack = idStack; + DC = dc; + OuterRectClipped = outerRectClipped; + InnerRect = innerRect; + InnerClipRect = innerClipRect; + WorkRect = workRect; + ParentWorkRect = parentWorkRect; + ClipRect = clipRect; + ContentRegionRect = contentRegionRect; + HitTestHoleSize = hitTestHoleSize; + HitTestHoleOffset = hitTestHoleOffset; + LastFrameActive = lastFrameActive; + LastFrameJustFocused = lastFrameJustFocused; + LastTimeActive = lastTimeActive; + ItemWidthDefault = itemWidthDefault; + StateStorage = stateStorage; + ColumnsStorage = columnsStorage; + FontWindowScale = fontWindowScale; + FontDpiScale = fontDpiScale; + SettingsOffset = settingsOffset; + DrawList = drawList; + DrawListInst = drawListInst; + ParentWindow = parentWindow; + ParentWindowInBeginStack = parentWindowInBeginStack; + RootWindow = rootWindow; + RootWindowPopupTree = rootWindowPopupTree; + RootWindowDockTree = rootWindowDockTree; + RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; + RootWindowForNav = rootWindowForNav; + NavLastChildNavWindow = navLastChildNavWindow; + if (navLastIds != default) + { + NavLastIds_0 = navLastIds[0]; + NavLastIds_1 = navLastIds[1]; + } + if (navRectRel != default) + { + NavRectRel_0 = navRectRel[0]; + NavRectRel_1 = navRectRel[1]; + } + if (navPreferredScoringPosRel != default) + { + NavPreferredScoringPosRel_0 = navPreferredScoringPosRel[0]; + NavPreferredScoringPosRel_1 = navPreferredScoringPosRel[1]; + } + NavRootFocusScopeId = navRootFocusScopeId; + MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; + MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + DockIsActive = dockIsActive ? (byte)1 : (byte)0; + DockNodeIsVisible = dockNodeIsVisible ? (byte)1 : (byte)0; + DockTabIsVisible = dockTabIsVisible ? (byte)1 : (byte)0; + DockTabWantClose = dockTabWantClose ? (byte)1 : (byte)0; + DockOrder = dockOrder; + DockStyle = dockStyle; + DockNode = dockNode; + DockNodeAsHost = dockNodeAsHost; + DockId = dockId; + DockTabItemStatusFlags = dockTabItemStatusFlags; + DockTabItemRect = dockTabItemRect; + } + + /// /// To be documented. /// public unsafe ImGuiWindow(ImGuiContext* ctx = default, byte* name = default, uint id = default, int flags = default, int flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, float decoOuterSizeX1 = default, float decoOuterSizeY1 = default, float decoOuterSizeX2 = default, float decoOuterSizeY2 = default, float decoInnerSizeX1 = default, float decoInnerSizeY1 = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginCountPreviousFrame = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, byte autoFitFramesX = default, byte autoFitFramesY = default, bool autoFitOnlyGrows = default, int autoPosLastDirection = default, byte hiddenFramesCanSkipItems = default, byte hiddenFramesCannotSkipItems = default, byte hiddenFramesForRenderOnly = default, byte disableInputsFrames = default, int setWindowPosAllowFlags = default, int setWindowSizeAllowFlags = default, int setWindowCollapsedAllowFlags = default, int setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVectorImGuiID idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVectorImGuiOldColumns columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawList* drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, Span navLastIds = default, Span navRectRel = default, Span navPreferredScoringPosRel = default, uint navRootFocusScopeId = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, int dockTabItemStatusFlags = default, ImRect dockTabItemRect = default) + { + Ctx = ctx; + Name = name; + ID = id; + Flags = flags; + FlagsPreviousFrame = flagsPreviousFrame; + WindowClass = windowClass; + Viewport = viewport; + ViewportId = viewportId; + ViewportPos = viewportPos; + ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend; + Pos = pos; + Size = size; + SizeFull = sizeFull; + ContentSize = contentSize; + ContentSizeIdeal = contentSizeIdeal; + ContentSizeExplicit = contentSizeExplicit; + WindowPadding = windowPadding; + WindowRounding = windowRounding; + WindowBorderSize = windowBorderSize; + DecoOuterSizeX1 = decoOuterSizeX1; + DecoOuterSizeY1 = decoOuterSizeY1; + DecoOuterSizeX2 = decoOuterSizeX2; + DecoOuterSizeY2 = decoOuterSizeY2; + DecoInnerSizeX1 = decoInnerSizeX1; + DecoInnerSizeY1 = decoInnerSizeY1; + NameBufLen = nameBufLen; + MoveId = moveId; + TabId = tabId; + ChildId = childId; + Scroll = scroll; + ScrollMax = scrollMax; + ScrollTarget = scrollTarget; + ScrollTargetCenterRatio = scrollTargetCenterRatio; + ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist; + ScrollbarSizes = scrollbarSizes; + ScrollbarX = scrollbarX ? (byte)1 : (byte)0; + ScrollbarY = scrollbarY ? (byte)1 : (byte)0; + ViewportOwned = viewportOwned ? (byte)1 : (byte)0; + Active = active ? (byte)1 : (byte)0; + WasActive = wasActive ? (byte)1 : (byte)0; + WriteAccessed = writeAccessed ? (byte)1 : (byte)0; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0; + SkipItems = skipItems ? (byte)1 : (byte)0; + Appearing = appearing ? (byte)1 : (byte)0; + Hidden = hidden ? (byte)1 : (byte)0; + IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0; + IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + ResizeBorderHeld = resizeBorderHeld; + BeginCount = beginCount; + BeginCountPreviousFrame = beginCountPreviousFrame; + BeginOrderWithinParent = beginOrderWithinParent; + BeginOrderWithinContext = beginOrderWithinContext; + FocusOrder = focusOrder; + PopupId = popupId; + AutoFitFramesX = autoFitFramesX; + AutoFitFramesY = autoFitFramesY; + AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0; + AutoPosLastDirection = autoPosLastDirection; + HiddenFramesCanSkipItems = hiddenFramesCanSkipItems; + HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems; + HiddenFramesForRenderOnly = hiddenFramesForRenderOnly; + DisableInputsFrames = disableInputsFrames; + SetWindowPosAllowFlags = setWindowPosAllowFlags; + SetWindowSizeAllowFlags = setWindowSizeAllowFlags; + SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags; + SetWindowDockAllowFlags = setWindowDockAllowFlags; + SetWindowPosVal = setWindowPosVal; + SetWindowPosPivot = setWindowPosPivot; + IDStack = idStack; + DC = dc; + OuterRectClipped = outerRectClipped; + InnerRect = innerRect; + InnerClipRect = innerClipRect; + WorkRect = workRect; + ParentWorkRect = parentWorkRect; + ClipRect = clipRect; + ContentRegionRect = contentRegionRect; + HitTestHoleSize = hitTestHoleSize; + HitTestHoleOffset = hitTestHoleOffset; + LastFrameActive = lastFrameActive; + LastFrameJustFocused = lastFrameJustFocused; + LastTimeActive = lastTimeActive; + ItemWidthDefault = itemWidthDefault; + StateStorage = stateStorage; + ColumnsStorage = columnsStorage; + FontWindowScale = fontWindowScale; + FontDpiScale = fontDpiScale; + SettingsOffset = settingsOffset; + DrawList = drawList; + DrawListInst = drawListInst; + ParentWindow = parentWindow; + ParentWindowInBeginStack = parentWindowInBeginStack; + RootWindow = rootWindow; + RootWindowPopupTree = rootWindowPopupTree; + RootWindowDockTree = rootWindowDockTree; + RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight; + RootWindowForNav = rootWindowForNav; + NavLastChildNavWindow = navLastChildNavWindow; + if (navLastIds != default) + { + NavLastIds_0 = navLastIds[0]; + NavLastIds_1 = navLastIds[1]; + } + if (navRectRel != default) + { + NavRectRel_0 = navRectRel[0]; + NavRectRel_1 = navRectRel[1]; + } + if (navPreferredScoringPosRel != default) + { + NavPreferredScoringPosRel_0 = navPreferredScoringPosRel[0]; + NavPreferredScoringPosRel_1 = navPreferredScoringPosRel[1]; + } + NavRootFocusScopeId = navRootFocusScopeId; + MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity; + MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + DockIsActive = dockIsActive ? (byte)1 : (byte)0; + DockNodeIsVisible = dockNodeIsVisible ? (byte)1 : (byte)0; + DockTabIsVisible = dockTabIsVisible ? (byte)1 : (byte)0; + DockTabWantClose = dockTabWantClose ? (byte)1 : (byte)0; + DockOrder = dockOrder; + DockStyle = dockStyle; + DockNode = dockNode; + DockNodeAsHost = dockNodeAsHost; + DockId = dockId; + DockTabItemStatusFlags = dockTabItemStatusFlags; + DockTabItemRect = dockTabItemRect; + } /// @@ -18788,730 +23218,347 @@ public unsafe Span NavPreferredScoringPosRel } } } - [NativeName(NativeNameType.Func, "ImGuiWindow_CalcFontSize")] - [return: NativeName(NativeNameType.Type, "float")] - public unsafe float CalcFontSize() + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiWindowClass + { + /// + /// To be documented. + /// + public uint ClassId; + + /// + /// To be documented. + /// + public uint ParentViewportId; + + /// + /// To be documented. + /// + public int ViewportFlagsOverrideSet; + + /// + /// To be documented. + /// + public int ViewportFlagsOverrideClear; + + /// + /// To be documented. + /// + public int TabItemFlagsOverrideSet; + + /// + /// To be documented. + /// + public int DockNodeFlagsOverrideSet; + + /// + /// To be documented. + /// + public byte DockingAlwaysTabBar; + + /// + /// To be documented. + /// + public byte DockingAllowUnclassed; + + + + /// /// To be documented. /// public unsafe ImGuiWindowClass(uint classId = default, uint parentViewportId = default, int viewportFlagsOverrideSet = default, int viewportFlagsOverrideClear = default, int tabItemFlagsOverrideSet = default, int dockNodeFlagsOverrideSet = default, bool dockingAlwaysTabBar = default, bool dockingAllowUnclassed = default) { - fixed (ImGuiWindow* @this = &this) - { - float ret = ImGui.CalcFontSizeNative(@this); - return ret; - } + ClassId = classId; + ParentViewportId = parentViewportId; + ViewportFlagsOverrideSet = viewportFlagsOverrideSet; + ViewportFlagsOverrideClear = viewportFlagsOverrideClear; + TabItemFlagsOverrideSet = tabItemFlagsOverrideSet; + DockNodeFlagsOverrideSet = dockNodeFlagsOverrideSet; + DockingAlwaysTabBar = dockingAlwaysTabBar ? (byte)1 : (byte)0; + DockingAllowUnclassed = dockingAllowUnclassed ? (byte)1 : (byte)0; } - [NativeName(NativeNameType.Func, "ImGuiWindow_destroy")] - [return: NativeName(NativeNameType.Type, "void")] + public unsafe void Destroy() { - fixed (ImGuiWindow* @this = &this) + fixed (ImGuiWindowClass* @this = &this) { ImGui.DestroyNative(@this); } } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - fixed (ImGuiWindow* @this = &this) - { - int ret = ImGui.GetIDNative(@this, str, strEnd); - return ret; - } - } + } - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) - { - fixed (ImGuiWindow* @this = &this) - { - int ret = ImGui.GetIDNative(@this, str, (byte*)(default)); - return ret; - } - } + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiViewportP + { + /// + /// To be documented. + /// + public ImGuiViewport ImGuiViewport; - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - fixed (ImGuiWindow* @this = &this) - { - fixed (byte* pstr = &str) - { - int ret = ImGui.GetIDNative(@this, (byte*)pstr, strEnd); - return ret; - } - } - } + /// + /// To be documented. + /// + public unsafe ImGuiWindow* Window; - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) - { - fixed (ImGuiWindow* @this = &this) - { - fixed (byte* pstr = &str) - { - int ret = ImGui.GetIDNative(@this, (byte*)pstr, (byte*)(default)); - return ret; - } - } - } + /// + /// To be documented. + /// + public int Idx; - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) - { - fixed (ImGuiWindow* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImGui.GetIDNative(@this, pStr0, strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) - { - fixed (ImGuiWindow* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImGui.GetIDNative(@this, pStr0, (byte*)(default)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (ImGuiWindow* @this = &this) - { - fixed (byte* pstrEnd = &strEnd) - { - int ret = ImGui.GetIDNative(@this, str, (byte*)pstrEnd); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) - { - fixed (ImGuiWindow* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (strEnd != null) - { - pStrSize0 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(strEnd, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - int ret = ImGui.GetIDNative(@this, str, pStr0); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) - { - fixed (ImGuiWindow* @this = &this) - { - fixed (byte* pstr = &str) - { - fixed (byte* pstrEnd = &strEnd) - { - int ret = ImGui.GetIDNative(@this, (byte*)pstr, (byte*)pstrEnd); - return ret; - } - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Str")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) - { - fixed (ImGuiWindow* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (str != null) - { - pStrSize0 = Utils.GetByteCountUTF8(str); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* pStr1 = null; - int pStrSize1 = 0; - if (strEnd != null) - { - pStrSize1 = Utils.GetByteCountUTF8(strEnd); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - pStr1 = Utils.Alloc(pStrSize1 + 1); - } - else - { - byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; - pStr1 = pStrStack1; - } - int pStrOffset1 = Utils.EncodeStringUTF8(strEnd, pStr1, pStrSize1); - pStr1[pStrOffset1] = 0; - } - int ret = ImGui.GetIDNative(@this, pStr0, pStr1); - if (pStrSize1 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr1); - } - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Ptr")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "ptr")] [NativeName(NativeNameType.Type, "const void*")] void* ptr) - { - fixed (ImGuiWindow* @this = &this) - { - int ret = ImGui.GetIDNative(@this, ptr); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetID_Int")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetID([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiWindow* @this = &this) - { - int ret = ImGui.GetIDNative(@this, n); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_GetIDFromRectangle")] - [return: NativeName(NativeNameType.Type, "ImGuiID")] - public unsafe int GetIDFromRectangle([NativeName(NativeNameType.Param, "r_abs")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect rAbs) - { - fixed (ImGuiWindow* @this = &this) - { - int ret = ImGui.GetIDFromRectangleNative(@this, rAbs); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_MenuBarHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public unsafe float MenuBarHeight() - { - fixed (ImGuiWindow* @this = &this) - { - float ret = ImGui.MenuBarHeightNative(@this); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindow_TitleBarHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public unsafe float TitleBarHeight() - { - fixed (ImGuiWindow* @this = &this) - { - float ret = ImGui.TitleBarHeightNative(@this); - return ret; - } - } - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "ImGuiWindowClass")] - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiWindowClass - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "ClassId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ClassId; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "ParentViewportId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ParentViewportId; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "ViewportFlagsOverrideSet")] - [NativeName(NativeNameType.Type, "ImGuiViewportFlags")] - public ImGuiViewportFlags ViewportFlagsOverrideSet; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "ViewportFlagsOverrideClear")] - [NativeName(NativeNameType.Type, "ImGuiViewportFlags")] - public ImGuiViewportFlags ViewportFlagsOverrideClear; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "TabItemFlagsOverrideSet")] - [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] - public ImGuiTabItemFlags TabItemFlagsOverrideSet; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "DockNodeFlagsOverrideSet")] - [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] - public ImGuiDockNodeFlags DockNodeFlagsOverrideSet; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "DockingAlwaysTabBar")] - [NativeName(NativeNameType.Type, "bool")] - public byte DockingAlwaysTabBar; + /// + /// To be documented. + /// + public int LastFrameActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockingAllowUnclassed")] - [NativeName(NativeNameType.Type, "bool")] - public byte DockingAllowUnclassed; - - - - - [NativeName(NativeNameType.Func, "ImGuiWindowClass_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiWindowClass* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "ImGuiViewportP")] - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiViewportP - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "_ImGuiViewport")] - [NativeName(NativeNameType.Type, "ImGuiViewport")] - public ImGuiViewport ImGuiViewport; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "Window")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] - public unsafe ImGuiWindow* Window; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "Idx")] - [NativeName(NativeNameType.Type, "int")] - public int Idx; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "LastFrameActive")] - [NativeName(NativeNameType.Type, "int")] - public int LastFrameActive; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "LastFocusedStampCount")] - [NativeName(NativeNameType.Type, "int")] public int LastFocusedStampCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastNameHash")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int LastNameHash; + public uint LastNameHash; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 LastPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Alpha")] - [NativeName(NativeNameType.Type, "float")] public float Alpha; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastAlpha")] - [NativeName(NativeNameType.Type, "float")] public float LastAlpha; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFocusedHadNavWindow")] - [NativeName(NativeNameType.Type, "bool")] public byte LastFocusedHadNavWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PlatformMonitor")] - [NativeName(NativeNameType.Type, "short")] public short PlatformMonitor; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawListsLastFrame")] - [NativeName(NativeNameType.Type, "int[2]")] - public int DrawListsLastFrame_0; - public int DrawListsLastFrame_1; + public int BgFgDrawListsLastFrame_0; + public int BgFgDrawListsLastFrame_1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawLists")] - [NativeName(NativeNameType.Type, "ImDrawList*[2]")] - public unsafe ImDrawList* DrawLists_0; - public unsafe ImDrawList* DrawLists_1; + public unsafe ImDrawList* BgFgDrawLists_0; + public unsafe ImDrawList* BgFgDrawLists_1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawDataP")] - [NativeName(NativeNameType.Type, "ImDrawData")] public ImDrawData DrawDataP; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawDataBuilder")] - [NativeName(NativeNameType.Type, "ImDrawDataBuilder")] public ImDrawDataBuilder DrawDataBuilder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastPlatformPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 LastPlatformPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastPlatformSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 LastPlatformSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastRendererSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 LastRendererSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WorkOffsetMin")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WorkOffsetMin; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WorkOffsetMax")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 WorkOffsetMax; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BuildWorkOffsetMin")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 BuildWorkOffsetMin; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BuildWorkOffsetMax")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 BuildWorkOffsetMax; - - - /// - /// To be documented. - /// - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiViewportP_ClearRequestFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClearRequestFlags() + /// /// To be documented. /// public unsafe ImGuiViewportP(ImGuiViewport Imguiviewport = default, ImGuiWindow* window = default, int idx = default, int lastFrameActive = default, int lastFocusedStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, bool lastFocusedHadNavWindow = default, short platformMonitor = default, int* bgFgDrawListsLastFrame = default, ImDrawList** bgFgDrawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) { - fixed (ImGuiViewportP* @this = &this) + ImGuiViewport = Imguiviewport; + Window = window; + Idx = idx; + LastFrameActive = lastFrameActive; + LastFocusedStampCount = lastFocusedStampCount; + LastNameHash = lastNameHash; + LastPos = lastPos; + Alpha = alpha; + LastAlpha = lastAlpha; + LastFocusedHadNavWindow = lastFocusedHadNavWindow ? (byte)1 : (byte)0; + PlatformMonitor = platformMonitor; + if (bgFgDrawListsLastFrame != default) { - ImGui.ClearRequestFlagsNative(@this); + BgFgDrawListsLastFrame_0 = bgFgDrawListsLastFrame[0]; + BgFgDrawListsLastFrame_1 = bgFgDrawListsLastFrame[1]; } - } - - [NativeName(NativeNameType.Func, "ImGuiViewportP_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiViewportP* @this = &this) + if (bgFgDrawLists != default) { - ImGui.DestroyNative(@this); + BgFgDrawLists_0 = bgFgDrawLists[0]; + BgFgDrawLists_1 = bgFgDrawLists[1]; } + DrawDataP = drawDataP; + DrawDataBuilder = drawDataBuilder; + LastPlatformPos = lastPlatformPos; + LastPlatformSize = lastPlatformSize; + LastRendererSize = lastRendererSize; + WorkOffsetMin = workOffsetMin; + WorkOffsetMax = workOffsetMax; + BuildWorkOffsetMin = buildWorkOffsetMin; + BuildWorkOffsetMax = buildWorkOffsetMax; } - /// /// Update public fields /// [NativeName(NativeNameType.Func, "ImGuiViewportP_UpdateWorkRect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void UpdateWorkRect() + /// /// To be documented. /// public unsafe ImGuiViewportP(ImGuiViewport Imguiviewport = default, ImGuiWindow* window = default, int idx = default, int lastFrameActive = default, int lastFocusedStampCount = default, uint lastNameHash = default, Vector2 lastPos = default, float alpha = default, float lastAlpha = default, bool lastFocusedHadNavWindow = default, short platformMonitor = default, Span bgFgDrawListsLastFrame = default, Span> bgFgDrawLists = default, ImDrawData drawDataP = default, ImDrawDataBuilder drawDataBuilder = default, Vector2 lastPlatformPos = default, Vector2 lastPlatformSize = default, Vector2 lastRendererSize = default, Vector2 workOffsetMin = default, Vector2 workOffsetMax = default, Vector2 buildWorkOffsetMin = default, Vector2 buildWorkOffsetMax = default) { - fixed (ImGuiViewportP* @this = &this) + ImGuiViewport = Imguiviewport; + Window = window; + Idx = idx; + LastFrameActive = lastFrameActive; + LastFocusedStampCount = lastFocusedStampCount; + LastNameHash = lastNameHash; + LastPos = lastPos; + Alpha = alpha; + LastAlpha = lastAlpha; + LastFocusedHadNavWindow = lastFocusedHadNavWindow ? (byte)1 : (byte)0; + PlatformMonitor = platformMonitor; + if (bgFgDrawListsLastFrame != default) + { + BgFgDrawListsLastFrame_0 = bgFgDrawListsLastFrame[0]; + BgFgDrawListsLastFrame_1 = bgFgDrawListsLastFrame[1]; + } + if (bgFgDrawLists != default) { - ImGui.UpdateWorkRectNative(@this); + BgFgDrawLists_0 = bgFgDrawLists[0]; + BgFgDrawLists_1 = bgFgDrawLists[1]; } + DrawDataP = drawDataP; + DrawDataBuilder = drawDataBuilder; + LastPlatformPos = lastPlatformPos; + LastPlatformSize = lastPlatformSize; + LastRendererSize = lastRendererSize; + WorkOffsetMin = workOffsetMin; + WorkOffsetMax = workOffsetMax; + BuildWorkOffsetMin = buildWorkOffsetMin; + BuildWorkOffsetMax = buildWorkOffsetMax; } + + /// + /// To be documented. + /// + /// + /// To be documented. + /// } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImDrawDataBuilder")] [StructLayout(LayoutKind.Sequential)] public partial struct ImDrawDataBuilder { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Layers")] - [NativeName(NativeNameType.Type, "ImVector_ImDrawListPtr[2]")] - public ImVectorImDrawListPtr Layers_0; - public ImVectorImDrawListPtr Layers_1; - - + public unsafe ImVectorImDrawListPtr* Layers_0; + public unsafe ImVectorImDrawListPtr* Layers_1; /// /// To be documented. /// - public unsafe Span Layers - - { - get - { - fixed (ImVectorImDrawListPtr* p = &this.Layers_0) - { - return new Span(p, 2); - } - } - } - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Clear() - { - fixed (ImDrawDataBuilder* @this = &this) - { - ImGui.ClearNative(@this); - } - } + public ImVectorImDrawListPtr LayerData1; - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClearFreeMemory() - { - fixed (ImDrawDataBuilder* @this = &this) - { - ImGui.ClearFreeMemoryNative(@this); - } - } - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_FlattenIntoSingleLayer")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void FlattenIntoSingleLayer() + /// /// To be documented. /// public unsafe ImDrawDataBuilder(ImVectorImDrawListPtr** layers = default, ImVectorImDrawListPtr layerData1 = default) { - fixed (ImDrawDataBuilder* @this = &this) + if (layers != default) { - ImGui.FlattenIntoSingleLayerNative(@this); + Layers_0 = layers[0]; + Layers_1 = layers[1]; } + LayerData1 = layerData1; } - [NativeName(NativeNameType.Func, "ImDrawDataBuilder_GetDrawListCount")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int GetDrawListCount() + /// /// To be documented. /// public unsafe ImDrawDataBuilder(Span> layers = default, ImVectorImDrawListPtr layerData1 = default) { - fixed (ImDrawDataBuilder* @this = &this) + if (layers != default) { - int ret = ImGui.GetDrawListCountNative(@this); - return ret; + Layers_0 = layers[0]; + Layers_1 = layers[1]; } + LayerData1 = layerData1; } - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImDrawListPtr")] - [StructLayout(LayoutKind.Sequential)] - public partial struct ImVectorImDrawListPtr - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] - public int Size; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] - public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImDrawList**")] - public unsafe ImDrawList** Data; - - - } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiID")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiID { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiID*")] - public unsafe int* Data; + public unsafe uint* Data; + + /// /// To be documented. /// public unsafe ImVectorImGuiID(int size = default, int capacity = default, uint* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } } @@ -19519,428 +23566,363 @@ public partial struct ImVectorImGuiID /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiWindowTempData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiWindowTempData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CursorPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 CursorPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CursorPosPrevLine")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 CursorPosPrevLine; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CursorStartPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 CursorStartPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CursorMaxPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 CursorMaxPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IdealMaxPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 IdealMaxPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrLineSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 CurrLineSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PrevLineSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 PrevLineSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrLineTextBaseOffset")] - [NativeName(NativeNameType.Type, "float")] public float CurrLineTextBaseOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PrevLineTextBaseOffset")] - [NativeName(NativeNameType.Type, "float")] public float PrevLineTextBaseOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsSameLine")] - [NativeName(NativeNameType.Type, "bool")] public byte IsSameLine; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsSetPos")] - [NativeName(NativeNameType.Type, "bool")] public byte IsSetPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Indent")] - [NativeName(NativeNameType.Type, "ImVec1")] public ImVec1 Indent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsOffset")] - [NativeName(NativeNameType.Type, "ImVec1")] public ImVec1 ColumnsOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "GroupOffset")] - [NativeName(NativeNameType.Type, "ImVec1")] public ImVec1 GroupOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CursorStartPosLossyness")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 CursorStartPosLossyness; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavLayerCurrent")] - [NativeName(NativeNameType.Type, "ImGuiNavLayer")] public ImGuiNavLayer NavLayerCurrent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavLayersActiveMask")] - [NativeName(NativeNameType.Type, "short")] public short NavLayersActiveMask; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavLayersActiveMaskNext")] - [NativeName(NativeNameType.Type, "short")] public short NavLayersActiveMaskNext; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavIsScrollPushableX")] - [NativeName(NativeNameType.Type, "bool")] public byte NavIsScrollPushableX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavHideHighlightOneFrame")] - [NativeName(NativeNameType.Type, "bool")] public byte NavHideHighlightOneFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavWindowHasScrollY")] - [NativeName(NativeNameType.Type, "bool")] public byte NavWindowHasScrollY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MenuBarAppending")] - [NativeName(NativeNameType.Type, "bool")] public byte MenuBarAppending; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MenuBarOffset")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 MenuBarOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MenuColumns")] - [NativeName(NativeNameType.Type, "ImGuiMenuColumns")] public ImGuiMenuColumns MenuColumns; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TreeDepth")] - [NativeName(NativeNameType.Type, "int")] public int TreeDepth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TreeJumpToParentOnPopMask")] - [NativeName(NativeNameType.Type, "ImU32")] public uint TreeJumpToParentOnPopMask; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ChildWindows")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr")] public ImVectorImGuiWindowPtr ChildWindows; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "StateStorage")] - [NativeName(NativeNameType.Type, "ImGuiStorage*")] public unsafe ImGuiStorage* StateStorage; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentColumns")] - [NativeName(NativeNameType.Type, "ImGuiOldColumns*")] public unsafe ImGuiOldColumns* CurrentColumns; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentTableIdx")] - [NativeName(NativeNameType.Type, "int")] public int CurrentTableIdx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LayoutType")] - [NativeName(NativeNameType.Type, "ImGuiLayoutType")] - public ImGuiLayoutType LayoutType; + public int LayoutType; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ParentLayoutType")] - [NativeName(NativeNameType.Type, "ImGuiLayoutType")] - public ImGuiLayoutType ParentLayoutType; + public int ParentLayoutType; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemWidth")] - [NativeName(NativeNameType.Type, "float")] public float ItemWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TextWrapPos")] - [NativeName(NativeNameType.Type, "float")] public float TextWrapPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemWidthStack")] - [NativeName(NativeNameType.Type, "ImVector_float")] public ImVectorFloat ItemWidthStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TextWrapPosStack")] - [NativeName(NativeNameType.Type, "ImVector_float")] public ImVectorFloat TextWrapPosStack; + /// /// To be documented. /// public unsafe ImGuiWindowTempData(Vector2 cursorPos = default, Vector2 cursorPosPrevLine = default, Vector2 cursorStartPos = default, Vector2 cursorMaxPos = default, Vector2 idealMaxPos = default, Vector2 currLineSize = default, Vector2 prevLineSize = default, float currLineTextBaseOffset = default, float prevLineTextBaseOffset = default, bool isSameLine = default, bool isSetPos = default, ImVec1 indent = default, ImVec1 columnsOffset = default, ImVec1 groupOffset = default, Vector2 cursorStartPosLossyness = default, ImGuiNavLayer navLayerCurrent = default, short navLayersActiveMask = default, short navLayersActiveMaskNext = default, bool navIsScrollPushableX = default, bool navHideHighlightOneFrame = default, bool navWindowHasScrollY = default, bool menuBarAppending = default, Vector2 menuBarOffset = default, ImGuiMenuColumns menuColumns = default, int treeDepth = default, uint treeJumpToParentOnPopMask = default, ImVectorImGuiWindowPtr childWindows = default, ImGuiStorage* stateStorage = default, ImGuiOldColumns* currentColumns = default, int currentTableIdx = default, int layoutType = default, int parentLayoutType = default, float itemWidth = default, float textWrapPos = default, ImVectorFloat itemWidthStack = default, ImVectorFloat textWrapPosStack = default) + { + CursorPos = cursorPos; + CursorPosPrevLine = cursorPosPrevLine; + CursorStartPos = cursorStartPos; + CursorMaxPos = cursorMaxPos; + IdealMaxPos = idealMaxPos; + CurrLineSize = currLineSize; + PrevLineSize = prevLineSize; + CurrLineTextBaseOffset = currLineTextBaseOffset; + PrevLineTextBaseOffset = prevLineTextBaseOffset; + IsSameLine = isSameLine ? (byte)1 : (byte)0; + IsSetPos = isSetPos ? (byte)1 : (byte)0; + Indent = indent; + ColumnsOffset = columnsOffset; + GroupOffset = groupOffset; + CursorStartPosLossyness = cursorStartPosLossyness; + NavLayerCurrent = navLayerCurrent; + NavLayersActiveMask = navLayersActiveMask; + NavLayersActiveMaskNext = navLayersActiveMaskNext; + NavIsScrollPushableX = navIsScrollPushableX ? (byte)1 : (byte)0; + NavHideHighlightOneFrame = navHideHighlightOneFrame ? (byte)1 : (byte)0; + NavWindowHasScrollY = navWindowHasScrollY ? (byte)1 : (byte)0; + MenuBarAppending = menuBarAppending ? (byte)1 : (byte)0; + MenuBarOffset = menuBarOffset; + MenuColumns = menuColumns; + TreeDepth = treeDepth; + TreeJumpToParentOnPopMask = treeJumpToParentOnPopMask; + ChildWindows = childWindows; + StateStorage = stateStorage; + CurrentColumns = currentColumns; + CurrentTableIdx = currentTableIdx; + LayoutType = layoutType; + ParentLayoutType = parentLayoutType; + ItemWidth = itemWidth; + TextWrapPos = textWrapPos; + ItemWidthStack = itemWidthStack; + TextWrapPosStack = textWrapPosStack; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVec1")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVec1 { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "x")] - [NativeName(NativeNameType.Type, "float")] public float X; - - - [NativeName(NativeNameType.Func, "ImVec1_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImVec1(float x = default) { - fixed (ImVec1* @this = &this) - { - ImGui.DestroyNative(@this); - } + X = x; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiMenuColumns")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiMenuColumns { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TotalWidth")] - [NativeName(NativeNameType.Type, "ImU32")] public uint TotalWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NextTotalWidth")] - [NativeName(NativeNameType.Type, "ImU32")] public uint NextTotalWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Spacing")] - [NativeName(NativeNameType.Type, "ImU16")] public ushort Spacing; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OffsetIcon")] - [NativeName(NativeNameType.Type, "ImU16")] public ushort OffsetIcon; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OffsetLabel")] - [NativeName(NativeNameType.Type, "ImU16")] public ushort OffsetLabel; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OffsetShortcut")] - [NativeName(NativeNameType.Type, "ImU16")] public ushort OffsetShortcut; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OffsetMark")] - [NativeName(NativeNameType.Type, "ImU16")] public ushort OffsetMark; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Widths")] - [NativeName(NativeNameType.Type, "ImU16[4]")] public ushort Widths_0; public ushort Widths_1; public ushort Widths_2; public ushort Widths_3; - - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_CalcNextTotalWidth")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CalcNextTotalWidth([NativeName(NativeNameType.Param, "update_offsets")] [NativeName(NativeNameType.Type, "bool")] bool updateOffsets) - { - fixed (ImGuiMenuColumns* @this = &this) - { - ImGui.CalcNextTotalWidthNative(@this, updateOffsets ? (byte)1 : (byte)0); - } - } - - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_DeclColumns")] - [return: NativeName(NativeNameType.Type, "float")] - public unsafe float DeclColumns([NativeName(NativeNameType.Param, "w_icon")] [NativeName(NativeNameType.Type, "float")] float wIcon, [NativeName(NativeNameType.Param, "w_label")] [NativeName(NativeNameType.Type, "float")] float wLabel, [NativeName(NativeNameType.Param, "w_shortcut")] [NativeName(NativeNameType.Type, "float")] float wShortcut, [NativeName(NativeNameType.Param, "w_mark")] [NativeName(NativeNameType.Type, "float")] float wMark) + /// /// To be documented. /// public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, ushort* widths = default) { - fixed (ImGuiMenuColumns* @this = &this) + TotalWidth = totalWidth; + NextTotalWidth = nextTotalWidth; + Spacing = spacing; + OffsetIcon = offsetIcon; + OffsetLabel = offsetLabel; + OffsetShortcut = offsetShortcut; + OffsetMark = offsetMark; + if (widths != default) { - float ret = ImGui.DeclColumnsNative(@this, wIcon, wLabel, wShortcut, wMark); - return ret; + Widths_0 = widths[0]; + Widths_1 = widths[1]; + Widths_2 = widths[2]; + Widths_3 = widths[3]; } } - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiMenuColumns(uint totalWidth = default, uint nextTotalWidth = default, ushort spacing = default, ushort offsetIcon = default, ushort offsetLabel = default, ushort offsetShortcut = default, ushort offsetMark = default, Span widths = default) { - fixed (ImGuiMenuColumns* @this = &this) + TotalWidth = totalWidth; + NextTotalWidth = nextTotalWidth; + Spacing = spacing; + OffsetIcon = offsetIcon; + OffsetLabel = offsetLabel; + OffsetShortcut = offsetShortcut; + OffsetMark = offsetMark; + if (widths != default) { - ImGui.DestroyNative(@this); + Widths_0 = widths[0]; + Widths_1 = widths[1]; + Widths_2 = widths[2]; + Widths_3 = widths[3]; } } - [NativeName(NativeNameType.Func, "ImGuiMenuColumns_Update")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Update([NativeName(NativeNameType.Param, "spacing")] [NativeName(NativeNameType.Type, "float")] float spacing, [NativeName(NativeNameType.Param, "window_reappearing")] [NativeName(NativeNameType.Type, "bool")] bool windowReappearing) - { - fixed (ImGuiMenuColumns* @this = &this) - { - ImGui.UpdateNative(@this, spacing, windowReappearing ? (byte)1 : (byte)0); - } - } + /// + /// To be documented. + /// } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiStorage")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiStorage { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiStoragePair")] public ImVectorImGuiStoragePair Data; + /// /// To be documented. /// public unsafe ImGuiStorage(ImVectorImGuiStoragePair data = default) + { + Data = data; + } + - [NativeName(NativeNameType.Func, "ImGuiStorage_BuildSortByKey")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void BuildSortByKey() { fixed (ImGuiStorage* @this = &this) @@ -19949,8 +23931,6 @@ public unsafe void BuildSortByKey() } } - [NativeName(NativeNameType.Func, "ImGuiStorage_Clear")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Clear() { fixed (ImGuiStorage* @this = &this) @@ -19959,9 +23939,7 @@ public unsafe void Clear() } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBool")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetBool([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "bool")] bool defaultVal) + public unsafe bool GetBool( uint key, bool defaultVal) { fixed (ImGuiStorage* @this = &this) { @@ -19970,9 +23948,7 @@ public unsafe bool GetBool([NativeName(NativeNameType.Param, "key")] [NativeName } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBool")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool GetBool([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) + public unsafe bool GetBool( uint key) { fixed (ImGuiStorage* @this = &this) { @@ -19981,9 +23957,7 @@ public unsafe bool GetBool([NativeName(NativeNameType.Param, "key")] [NativeName } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBoolRef")] - [return: NativeName(NativeNameType.Type, "bool*")] - public unsafe byte* GetBoolRef([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "bool")] bool defaultVal) + public unsafe byte* GetBoolRef( uint key, bool defaultVal) { fixed (ImGuiStorage* @this = &this) { @@ -19992,9 +23966,7 @@ public unsafe bool GetBool([NativeName(NativeNameType.Param, "key")] [NativeName } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetBoolRef")] - [return: NativeName(NativeNameType.Type, "bool*")] - public unsafe byte* GetBoolRef([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) + public unsafe byte* GetBoolRef( uint key) { fixed (ImGuiStorage* @this = &this) { @@ -20003,9 +23975,7 @@ public unsafe bool GetBool([NativeName(NativeNameType.Param, "key")] [NativeName } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloat")] - [return: NativeName(NativeNameType.Type, "float")] - public unsafe float GetFloat([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "float")] float defaultVal) + public unsafe float GetFloat( uint key, float defaultVal) { fixed (ImGuiStorage* @this = &this) { @@ -20014,9 +23984,7 @@ public unsafe float GetFloat([NativeName(NativeNameType.Param, "key")] [NativeNa } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloat")] - [return: NativeName(NativeNameType.Type, "float")] - public unsafe float GetFloat([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) + public unsafe float GetFloat( uint key) { fixed (ImGuiStorage* @this = &this) { @@ -20025,9 +23993,7 @@ public unsafe float GetFloat([NativeName(NativeNameType.Param, "key")] [NativeNa } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloatRef")] - [return: NativeName(NativeNameType.Type, "float*")] - public unsafe float* GetFloatRef([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "float")] float defaultVal) + public unsafe float* GetFloatRef( uint key, float defaultVal) { fixed (ImGuiStorage* @this = &this) { @@ -20036,9 +24002,7 @@ public unsafe float GetFloat([NativeName(NativeNameType.Param, "key")] [NativeNa } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetFloatRef")] - [return: NativeName(NativeNameType.Type, "float*")] - public unsafe float* GetFloatRef([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) + public unsafe float* GetFloatRef( uint key) { fixed (ImGuiStorage* @this = &this) { @@ -20047,9 +24011,7 @@ public unsafe float GetFloat([NativeName(NativeNameType.Param, "key")] [NativeNa } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetInt")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int GetInt([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "int")] int defaultVal) + public unsafe int GetInt( uint key, int defaultVal) { fixed (ImGuiStorage* @this = &this) { @@ -20058,9 +24020,7 @@ public unsafe int GetInt([NativeName(NativeNameType.Param, "key")] [NativeName(N } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetInt")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int GetInt([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) + public unsafe int GetInt( uint key) { fixed (ImGuiStorage* @this = &this) { @@ -20069,9 +24029,7 @@ public unsafe int GetInt([NativeName(NativeNameType.Param, "key")] [NativeName(N } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetIntRef")] - [return: NativeName(NativeNameType.Type, "int*")] - public unsafe int* GetIntRef([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "int")] int defaultVal) + public unsafe int* GetIntRef( uint key, int defaultVal) { fixed (ImGuiStorage* @this = &this) { @@ -20080,9 +24038,7 @@ public unsafe int GetInt([NativeName(NativeNameType.Param, "key")] [NativeName(N } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetIntRef")] - [return: NativeName(NativeNameType.Type, "int*")] - public unsafe int* GetIntRef([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) + public unsafe int* GetIntRef( uint key) { fixed (ImGuiStorage* @this = &this) { @@ -20091,9 +24047,7 @@ public unsafe int GetInt([NativeName(NativeNameType.Param, "key")] [NativeName(N } } - /// /// default_val is NULL /// [NativeName(NativeNameType.Func, "ImGuiStorage_GetVoidPtr")] - [return: NativeName(NativeNameType.Type, "void*")] - public unsafe void* GetVoidPtr([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) + public unsafe void* GetVoidPtr( uint key) { fixed (ImGuiStorage* @this = &this) { @@ -20102,9 +24056,7 @@ public unsafe int GetInt([NativeName(NativeNameType.Param, "key")] [NativeName(N } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetVoidPtrRef")] - [return: NativeName(NativeNameType.Type, "void**")] - public unsafe void** GetVoidPtrRef([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "default_val")] [NativeName(NativeNameType.Type, "void*")] void* defaultVal) + public unsafe void** GetVoidPtrRef( uint key, void* defaultVal) { fixed (ImGuiStorage* @this = &this) { @@ -20113,9 +24065,7 @@ public unsafe int GetInt([NativeName(NativeNameType.Param, "key")] [NativeName(N } } - [NativeName(NativeNameType.Func, "ImGuiStorage_GetVoidPtrRef")] - [return: NativeName(NativeNameType.Type, "void**")] - public unsafe void** GetVoidPtrRef([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key) + public unsafe void** GetVoidPtrRef( uint key) { fixed (ImGuiStorage* @this = &this) { @@ -20124,9 +24074,7 @@ public unsafe int GetInt([NativeName(NativeNameType.Param, "key")] [NativeName(N } } - [NativeName(NativeNameType.Func, "ImGuiStorage_SetAllInt")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetAllInt([NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "int")] int val) + public unsafe void SetAllInt( int val) { fixed (ImGuiStorage* @this = &this) { @@ -20134,9 +24082,7 @@ public unsafe void SetAllInt([NativeName(NativeNameType.Param, "val")] [NativeNa } } - [NativeName(NativeNameType.Func, "ImGuiStorage_SetBool")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetBool([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "bool")] bool val) + public unsafe void SetBool( uint key, bool val) { fixed (ImGuiStorage* @this = &this) { @@ -20144,9 +24090,7 @@ public unsafe void SetBool([NativeName(NativeNameType.Param, "key")] [NativeName } } - [NativeName(NativeNameType.Func, "ImGuiStorage_SetFloat")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetFloat([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "float")] float val) + public unsafe void SetFloat( uint key, float val) { fixed (ImGuiStorage* @this = &this) { @@ -20154,9 +24098,7 @@ public unsafe void SetFloat([NativeName(NativeNameType.Param, "key")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImGuiStorage_SetInt")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetInt([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "int")] int val) + public unsafe void SetInt( uint key, int val) { fixed (ImGuiStorage* @this = &this) { @@ -20164,9 +24106,7 @@ public unsafe void SetInt([NativeName(NativeNameType.Param, "key")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiStorage_SetVoidPtr")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetVoidPtr([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "ImGuiID")] int key, [NativeName(NativeNameType.Param, "val")] [NativeName(NativeNameType.Type, "void*")] void* val) + public unsafe void SetVoidPtr( uint key, void* val) { fixed (ImGuiStorage* @this = &this) { @@ -20179,96 +24119,95 @@ public unsafe void SetVoidPtr([NativeName(NativeNameType.Param, "key")] [NativeN /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiStoragePair")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiStoragePair { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiStoragePair*")] public unsafe ImGuiStoragePair* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiStoragePair(int size = default, int capacity = default, ImGuiStoragePair* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiStoragePair")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiStoragePair { /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "")] [StructLayout(LayoutKind.Explicit)] public partial struct ImGuiStoragePairUnion { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "val_i")] - [NativeName(NativeNameType.Type, "int")] [FieldOffset(0)] public int ValI; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "val_f")] - [NativeName(NativeNameType.Type, "float")] [FieldOffset(0)] public float ValF; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "val_p")] - [NativeName(NativeNameType.Type, "void*")] [FieldOffset(0)] public unsafe void* ValP; + /// /// To be documented. /// public unsafe ImGuiStoragePairUnion(int valI = default, float valF = default, void* valP = default) + { + ValI = valI; + ValF = valF; + ValP = valP; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.Field, "key")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int Key; + public uint Key; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "")] - [NativeName(NativeNameType.Type, "")] public ImGuiStoragePairUnion Union; + /// /// To be documented. /// public unsafe ImGuiStoragePair(uint key = default, ImGuiStoragePairUnion union = default) + { + Key = key; + Union = union; + } + - [NativeName(NativeNameType.Func, "ImGuiStoragePair_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiStoragePair* @this = &this) @@ -20282,519 +24221,282 @@ public unsafe void Destroy() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiOldColumns")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiOldColumns { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiOldColumnFlags")] - public ImGuiOldColumnFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsFirstFrame")] - [NativeName(NativeNameType.Type, "bool")] public byte IsFirstFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsBeingResized")] - [NativeName(NativeNameType.Type, "bool")] public byte IsBeingResized; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Current")] - [NativeName(NativeNameType.Type, "int")] public int Current; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Count")] - [NativeName(NativeNameType.Type, "int")] public int Count; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OffMinX")] - [NativeName(NativeNameType.Type, "float")] public float OffMinX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OffMaxX")] - [NativeName(NativeNameType.Type, "float")] public float OffMaxX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LineMinY")] - [NativeName(NativeNameType.Type, "float")] public float LineMinY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LineMaxY")] - [NativeName(NativeNameType.Type, "float")] public float LineMaxY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostCursorPosY")] - [NativeName(NativeNameType.Type, "float")] public float HostCursorPosY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostCursorMaxPosX")] - [NativeName(NativeNameType.Type, "float")] public float HostCursorMaxPosX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostInitialClipRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect HostInitialClipRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostBackupClipRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect HostBackupClipRect; - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "HostBackupParentWorkRect")] - [NativeName(NativeNameType.Type, "ImRect")] - public ImRect HostBackupParentWorkRect; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "Columns")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiOldColumnData")] - public ImVectorImGuiOldColumnData Columns; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "Splitter")] - [NativeName(NativeNameType.Type, "ImDrawListSplitter")] - public ImDrawListSplitter Splitter; - - - - - [NativeName(NativeNameType.Func, "ImGuiOldColumns_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiOldColumns* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "ImRect")] - [StructLayout(LayoutKind.Sequential)] - public partial struct ImRect - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "Min")] - [NativeName(NativeNameType.Type, "ImVec2")] - public Vector2 Min; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "Max")] - [NativeName(NativeNameType.Type, "ImVec2")] - public Vector2 Max; - - - - - [NativeName(NativeNameType.Func, "ImRect_Add_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Add([NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) - { - fixed (ImRect* @this = &this) - { - ImGui.AddNative(@this, p); - } - } - - [NativeName(NativeNameType.Func, "ImRect_Add_Rect")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Add([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) - { - fixed (ImRect* @this = &this) - { - ImGui.AddNative(@this, r); - } - } - - /// /// Simple version, may lead to an inverted rectangle, which is fine for ContainsOverlaps test but not for display. /// [NativeName(NativeNameType.Func, "ImRect_ClipWith")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClipWith([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) - { - fixed (ImRect* @this = &this) - { - ImGui.ClipWithNative(@this, r); - } - } - - /// /// Full version, ensure both points are fully clipped. /// [NativeName(NativeNameType.Func, "ImRect_ClipWithFull")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClipWithFull([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) - { - fixed (ImRect* @this = &this) - { - ImGui.ClipWithFullNative(@this, r); - } - } - - [NativeName(NativeNameType.Func, "ImRect_Contains_Vec2")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool Contains([NativeName(NativeNameType.Param, "p")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 p) - { - fixed (ImRect* @this = &this) - { - byte ret = ImGui.ContainsNative(@this, p); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImRect_Contains_Rect")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool Contains([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) - { - fixed (ImRect* @this = &this) - { - byte ret = ImGui.ContainsNative(@this, r); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImRect_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImRect* @this = &this) - { - ImGui.DestroyNative(@this); - } - } + /// + /// To be documented. + /// + public ImRect HostBackupParentWorkRect; - [NativeName(NativeNameType.Func, "ImRect_Expand_Float")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Expand([NativeName(NativeNameType.Param, "amount")] [NativeName(NativeNameType.Type, "const float")] float amount) - { - fixed (ImRect* @this = &this) - { - ImGui.ExpandNative(@this, amount); - } - } + /// + /// To be documented. + /// + public ImVectorImGuiOldColumnData Columns; - [NativeName(NativeNameType.Func, "ImRect_Expand_Vec2")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Expand([NativeName(NativeNameType.Param, "amount")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 amount) - { - fixed (ImRect* @this = &this) - { - ImGui.ExpandNative(@this, amount); - } - } + /// + /// To be documented. + /// + public ImDrawListSplitter Splitter; - [NativeName(NativeNameType.Func, "ImRect_Floor")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Floor() - { - fixed (ImRect* @this = &this) - { - ImGui.FloorNative(@this); - } - } - [NativeName(NativeNameType.Func, "ImRect_GetArea")] - [return: NativeName(NativeNameType.Type, "float")] - public unsafe float GetArea() + /// /// To be documented. /// public unsafe ImGuiOldColumns(uint id = default, int flags = default, bool isFirstFrame = default, bool isBeingResized = default, int current = default, int count = default, float offMinX = default, float offMaxX = default, float lineMinY = default, float lineMaxY = default, float hostCursorPosY = default, float hostCursorMaxPosX = default, ImRect hostInitialClipRect = default, ImRect hostBackupClipRect = default, ImRect hostBackupParentWorkRect = default, ImVectorImGuiOldColumnData columns = default, ImDrawListSplitter splitter = default) { - fixed (ImRect* @this = &this) - { - float ret = ImGui.GetAreaNative(@this); - return ret; - } + ID = id; + Flags = flags; + IsFirstFrame = isFirstFrame ? (byte)1 : (byte)0; + IsBeingResized = isBeingResized ? (byte)1 : (byte)0; + Current = current; + Count = count; + OffMinX = offMinX; + OffMaxX = offMaxX; + LineMinY = lineMinY; + LineMaxY = lineMaxY; + HostCursorPosY = hostCursorPosY; + HostCursorMaxPosX = hostCursorMaxPosX; + HostInitialClipRect = hostInitialClipRect; + HostBackupClipRect = hostBackupClipRect; + HostBackupParentWorkRect = hostBackupParentWorkRect; + Columns = columns; + Splitter = splitter; } - [NativeName(NativeNameType.Func, "ImRect_GetHeight")] - [return: NativeName(NativeNameType.Type, "float")] - public unsafe float GetHeight() - { - fixed (ImRect* @this = &this) - { - float ret = ImGui.GetHeightNative(@this); - return ret; - } - } - [NativeName(NativeNameType.Func, "ImRect_GetWidth")] - [return: NativeName(NativeNameType.Type, "float")] - public unsafe float GetWidth() - { - fixed (ImRect* @this = &this) - { - float ret = ImGui.GetWidthNative(@this); - return ret; - } - } + } - [NativeName(NativeNameType.Func, "ImRect_IsInverted")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsInverted() - { - fixed (ImRect* @this = &this) - { - byte ret = ImGui.IsInvertedNative(@this); - return ret != 0; - } - } + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImRect + { + /// + /// To be documented. + /// + public Vector2 Min; - [NativeName(NativeNameType.Func, "ImRect_Overlaps")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool Overlaps([NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "const ImRect")] ImRect r) - { - fixed (ImRect* @this = &this) - { - byte ret = ImGui.OverlapsNative(@this, r); - return ret != 0; - } - } + /// + /// To be documented. + /// + public Vector2 Max; - [NativeName(NativeNameType.Func, "ImRect_Translate")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Translate([NativeName(NativeNameType.Param, "d")] [NativeName(NativeNameType.Type, "const ImVec2")] Vector2 d) - { - fixed (ImRect* @this = &this) - { - ImGui.TranslateNative(@this, d); - } - } - [NativeName(NativeNameType.Func, "ImRect_TranslateX")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void TranslateX([NativeName(NativeNameType.Param, "dx")] [NativeName(NativeNameType.Type, "float")] float dx) + /// /// To be documented. /// public unsafe ImRect(Vector2 min = default, Vector2 max = default) { - fixed (ImRect* @this = &this) - { - ImGui.TranslateXNative(@this, dx); - } + Min = min; + Max = max; } - [NativeName(NativeNameType.Func, "ImRect_TranslateY")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void TranslateY([NativeName(NativeNameType.Param, "dy")] [NativeName(NativeNameType.Type, "float")] float dy) - { - fixed (ImRect* @this = &this) - { - ImGui.TranslateYNative(@this, dy); - } - } } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiOldColumnData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiOldColumnData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiOldColumnData*")] public unsafe ImGuiOldColumnData* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiOldColumnData(int size = default, int capacity = default, ImGuiOldColumnData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiOldColumnData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiOldColumnData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OffsetNorm")] - [NativeName(NativeNameType.Type, "float")] public float OffsetNorm; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OffsetNormBeforeResize")] - [NativeName(NativeNameType.Type, "float")] public float OffsetNormBeforeResize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiOldColumnFlags")] - public ImGuiOldColumnFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClipRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect ClipRect; - - - [NativeName(NativeNameType.Func, "ImGuiOldColumnData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiOldColumnData(float offsetNorm = default, float offsetNormBeforeResize = default, int flags = default, ImRect clipRect = default) { - fixed (ImGuiOldColumnData* @this = &this) - { - ImGui.DestroyNative(@this); - } + OffsetNorm = offsetNorm; + OffsetNormBeforeResize = offsetNormBeforeResize; + Flags = flags; + ClipRect = clipRect; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVec2ih")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVec2Ih { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "x")] - [NativeName(NativeNameType.Type, "short")] public short X; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "y")] - [NativeName(NativeNameType.Type, "short")] public short Y; - - - [NativeName(NativeNameType.Func, "ImVec2ih_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImVec2Ih(short x = default, short y = default) { - fixed (ImVec2Ih* @this = &this) - { - ImGui.DestroyNative(@this); - } + X = x; + Y = y; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiOldColumns")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiOldColumns { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiOldColumns*")] public unsafe ImGuiOldColumns* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiOldColumns(int size = default, int capacity = default, ImGuiOldColumns* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiWindowDockStyle")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiWindowDockStyle { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Colors")] - [NativeName(NativeNameType.Type, "ImU32[6]")] public uint Colors_0; public uint Colors_1; public uint Colors_2; @@ -20803,6 +24505,32 @@ public partial struct ImGuiWindowDockStyle public uint Colors_5; + /// /// To be documented. /// public unsafe ImGuiWindowDockStyle(uint* colors = default) + { + if (colors != default) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + } + } + + /// /// To be documented. /// public unsafe ImGuiWindowDockStyle(Span colors = default) + { + if (colors != default) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + Colors_5 = colors[5]; + } + } + /// /// To be documented. @@ -20812,846 +24540,683 @@ public partial struct ImGuiWindowDockStyle /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiDockNode")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiDockNode { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SharedFlags")] - [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] - public ImGuiDockNodeFlags SharedFlags; + public int SharedFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LocalFlags")] - [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] - public ImGuiDockNodeFlags LocalFlags; + public int LocalFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LocalFlagsInWindows")] - [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] - public ImGuiDockNodeFlags LocalFlagsInWindows; + public int LocalFlagsInWindows; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MergedFlags")] - [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] - public ImGuiDockNodeFlags MergedFlags; + public int MergedFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "State")] - [NativeName(NativeNameType.Type, "ImGuiDockNodeState")] public ImGuiDockNodeState State; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ParentNode")] - [NativeName(NativeNameType.Type, "ImGuiDockNode*")] public unsafe ImGuiDockNode* ParentNode; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ChildNodes")] - [NativeName(NativeNameType.Type, "ImGuiDockNode*[2]")] public unsafe ImGuiDockNode* ChildNodes_0; public unsafe ImGuiDockNode* ChildNodes_1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Windows")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiWindowPtr")] public ImVectorImGuiWindowPtr Windows; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TabBar")] - [NativeName(NativeNameType.Type, "ImGuiTabBar*")] public unsafe ImGuiTabBar* TabBar; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Pos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 Pos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeRef")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 SizeRef; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SplitAxis")] - [NativeName(NativeNameType.Type, "ImGuiAxis")] public ImGuiAxis SplitAxis; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowClass")] - [NativeName(NativeNameType.Type, "ImGuiWindowClass")] public ImGuiWindowClass WindowClass; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastBgColor")] - [NativeName(NativeNameType.Type, "ImU32")] public uint LastBgColor; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* HostWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "VisibleWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* VisibleWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CentralNode")] - [NativeName(NativeNameType.Type, "ImGuiDockNode*")] public unsafe ImGuiDockNode* CentralNode; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OnlyNodeWithWindows")] - [NativeName(NativeNameType.Type, "ImGuiDockNode*")] public unsafe ImGuiDockNode* OnlyNodeWithWindows; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CountNodeWithWindows")] - [NativeName(NativeNameType.Type, "int")] public int CountNodeWithWindows; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFrameAlive")] - [NativeName(NativeNameType.Type, "int")] public int LastFrameAlive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFrameActive")] - [NativeName(NativeNameType.Type, "int")] public int LastFrameActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFrameFocused")] - [NativeName(NativeNameType.Type, "int")] public int LastFrameFocused; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFocusedNodeId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int LastFocusedNodeId; + public uint LastFocusedNodeId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SelectedTabId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int SelectedTabId; + public uint SelectedTabId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantCloseTabId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int WantCloseTabId; + public uint WantCloseTabId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RefViewportId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int RefViewportId; + public uint RefViewportId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AuthorityForPos")] - [NativeName(NativeNameType.Type, "ImGuiDataAuthority")] - public ImGuiDataAuthority AuthorityForPos; + public int AuthorityForPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AuthorityForSize")] - [NativeName(NativeNameType.Type, "ImGuiDataAuthority")] - public ImGuiDataAuthority AuthorityForSize; + public int AuthorityForSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AuthorityForViewport")] - [NativeName(NativeNameType.Type, "ImGuiDataAuthority")] - public ImGuiDataAuthority AuthorityForViewport; + public int AuthorityForViewport; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsVisible")] - [NativeName(NativeNameType.Type, "bool")] public byte IsVisible; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsFocused")] - [NativeName(NativeNameType.Type, "bool")] public byte IsFocused; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsBgDrawnThisFrame")] - [NativeName(NativeNameType.Type, "bool")] public byte IsBgDrawnThisFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HasCloseButton")] - [NativeName(NativeNameType.Type, "bool")] public byte HasCloseButton; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HasWindowMenuButton")] - [NativeName(NativeNameType.Type, "bool")] public byte HasWindowMenuButton; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HasCentralNodeChild")] - [NativeName(NativeNameType.Type, "bool")] public byte HasCentralNodeChild; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantCloseAll")] - [NativeName(NativeNameType.Type, "bool")] public byte WantCloseAll; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantLockSizeOnce")] - [NativeName(NativeNameType.Type, "bool")] public byte WantLockSizeOnce; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantMouseMove")] - [NativeName(NativeNameType.Type, "bool")] public byte WantMouseMove; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantHiddenTabBarUpdate")] - [NativeName(NativeNameType.Type, "bool")] public byte WantHiddenTabBarUpdate; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantHiddenTabBarToggle")] - [NativeName(NativeNameType.Type, "bool")] public byte WantHiddenTabBarToggle; + /// /// To be documented. /// public unsafe ImGuiDockNode(uint id = default, int sharedFlags = default, int localFlags = default, int localFlagsInWindows = default, int mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, ImGuiDockNode** childNodes = default, ImVectorImGuiWindowPtr windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindow* hostWindow = default, ImGuiWindow* visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, uint refViewportId = default, int authorityForPos = default, int authorityForSize = default, int authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) + { + ID = id; + SharedFlags = sharedFlags; + LocalFlags = localFlags; + LocalFlagsInWindows = localFlagsInWindows; + MergedFlags = mergedFlags; + State = state; + ParentNode = parentNode; + if (childNodes != default) + { + ChildNodes_0 = childNodes[0]; + ChildNodes_1 = childNodes[1]; + } + Windows = windows; + TabBar = tabBar; + Pos = pos; + Size = size; + SizeRef = sizeRef; + SplitAxis = splitAxis; + WindowClass = windowClass; + LastBgColor = lastBgColor; + HostWindow = hostWindow; + VisibleWindow = visibleWindow; + CentralNode = centralNode; + OnlyNodeWithWindows = onlyNodeWithWindows; + CountNodeWithWindows = countNodeWithWindows; + LastFrameAlive = lastFrameAlive; + LastFrameActive = lastFrameActive; + LastFrameFocused = lastFrameFocused; + LastFocusedNodeId = lastFocusedNodeId; + SelectedTabId = selectedTabId; + WantCloseTabId = wantCloseTabId; + RefViewportId = refViewportId; + AuthorityForPos = authorityForPos; + AuthorityForSize = authorityForSize; + AuthorityForViewport = authorityForViewport; + IsVisible = isVisible ? (byte)1 : (byte)0; + IsFocused = isFocused ? (byte)1 : (byte)0; + IsBgDrawnThisFrame = isBgDrawnThisFrame ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + HasWindowMenuButton = hasWindowMenuButton ? (byte)1 : (byte)0; + HasCentralNodeChild = hasCentralNodeChild ? (byte)1 : (byte)0; + WantCloseAll = wantCloseAll ? (byte)1 : (byte)0; + WantLockSizeOnce = wantLockSizeOnce ? (byte)1 : (byte)0; + WantMouseMove = wantMouseMove ? (byte)1 : (byte)0; + WantHiddenTabBarUpdate = wantHiddenTabBarUpdate ? (byte)1 : (byte)0; + WantHiddenTabBarToggle = wantHiddenTabBarToggle ? (byte)1 : (byte)0; + } + + /// /// To be documented. /// public unsafe ImGuiDockNode(uint id = default, int sharedFlags = default, int localFlags = default, int localFlagsInWindows = default, int mergedFlags = default, ImGuiDockNodeState state = default, ImGuiDockNode* parentNode = default, Span> childNodes = default, ImVectorImGuiWindowPtr windows = default, ImGuiTabBar* tabBar = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeRef = default, ImGuiAxis splitAxis = default, ImGuiWindowClass windowClass = default, uint lastBgColor = default, ImGuiWindow* hostWindow = default, ImGuiWindow* visibleWindow = default, ImGuiDockNode* centralNode = default, ImGuiDockNode* onlyNodeWithWindows = default, int countNodeWithWindows = default, int lastFrameAlive = default, int lastFrameActive = default, int lastFrameFocused = default, uint lastFocusedNodeId = default, uint selectedTabId = default, uint wantCloseTabId = default, uint refViewportId = default, int authorityForPos = default, int authorityForSize = default, int authorityForViewport = default, bool isVisible = default, bool isFocused = default, bool isBgDrawnThisFrame = default, bool hasCloseButton = default, bool hasWindowMenuButton = default, bool hasCentralNodeChild = default, bool wantCloseAll = default, bool wantLockSizeOnce = default, bool wantMouseMove = default, bool wantHiddenTabBarUpdate = default, bool wantHiddenTabBarToggle = default) + { + ID = id; + SharedFlags = sharedFlags; + LocalFlags = localFlags; + LocalFlagsInWindows = localFlagsInWindows; + MergedFlags = mergedFlags; + State = state; + ParentNode = parentNode; + if (childNodes != default) + { + ChildNodes_0 = childNodes[0]; + ChildNodes_1 = childNodes[1]; + } + Windows = windows; + TabBar = tabBar; + Pos = pos; + Size = size; + SizeRef = sizeRef; + SplitAxis = splitAxis; + WindowClass = windowClass; + LastBgColor = lastBgColor; + HostWindow = hostWindow; + VisibleWindow = visibleWindow; + CentralNode = centralNode; + OnlyNodeWithWindows = onlyNodeWithWindows; + CountNodeWithWindows = countNodeWithWindows; + LastFrameAlive = lastFrameAlive; + LastFrameActive = lastFrameActive; + LastFrameFocused = lastFrameFocused; + LastFocusedNodeId = lastFocusedNodeId; + SelectedTabId = selectedTabId; + WantCloseTabId = wantCloseTabId; + RefViewportId = refViewportId; + AuthorityForPos = authorityForPos; + AuthorityForSize = authorityForSize; + AuthorityForViewport = authorityForViewport; + IsVisible = isVisible ? (byte)1 : (byte)0; + IsFocused = isFocused ? (byte)1 : (byte)0; + IsBgDrawnThisFrame = isBgDrawnThisFrame ? (byte)1 : (byte)0; + HasCloseButton = hasCloseButton ? (byte)1 : (byte)0; + HasWindowMenuButton = hasWindowMenuButton ? (byte)1 : (byte)0; + HasCentralNodeChild = hasCentralNodeChild ? (byte)1 : (byte)0; + WantCloseAll = wantCloseAll ? (byte)1 : (byte)0; + WantLockSizeOnce = wantLockSizeOnce ? (byte)1 : (byte)0; + WantMouseMove = wantMouseMove ? (byte)1 : (byte)0; + WantHiddenTabBarUpdate = wantHiddenTabBarUpdate ? (byte)1 : (byte)0; + WantHiddenTabBarToggle = wantHiddenTabBarToggle ? (byte)1 : (byte)0; + } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiDockNode_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiDockNode* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsCentralNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsCentralNode() - { - fixed (ImGuiDockNode* @this = &this) - { - byte ret = ImGui.IsCentralNodeNative(@this); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsDockSpace")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsDockSpace() - { - fixed (ImGuiDockNode* @this = &this) - { - byte ret = ImGui.IsDockSpaceNative(@this); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsEmpty")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsEmpty() - { - fixed (ImGuiDockNode* @this = &this) - { - byte ret = ImGui.IsEmptyNative(@this); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsFloatingNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsFloatingNode() - { - fixed (ImGuiDockNode* @this = &this) - { - byte ret = ImGui.IsFloatingNodeNative(@this); - return ret != 0; - } - } - - /// /// Hidden tab bar can be shown back by clicking the small triangle /// [NativeName(NativeNameType.Func, "ImGuiDockNode_IsHiddenTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsHiddenTabBar() - { - fixed (ImGuiDockNode* @this = &this) - { - byte ret = ImGui.IsHiddenTabBarNative(@this); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsLeafNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsLeafNode() - { - fixed (ImGuiDockNode* @this = &this) - { - byte ret = ImGui.IsLeafNodeNative(@this); - return ret != 0; - } - } - - /// /// Never show a tab bar /// [NativeName(NativeNameType.Func, "ImGuiDockNode_IsNoTabBar")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsNoTabBar() - { - fixed (ImGuiDockNode* @this = &this) - { - byte ret = ImGui.IsNoTabBarNative(@this); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsRootNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsRootNode() - { - fixed (ImGuiDockNode* @this = &this) - { - byte ret = ImGui.IsRootNodeNative(@this); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiDockNode_IsSplitNode")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsSplitNode() - { - fixed (ImGuiDockNode* @this = &this) - { - byte ret = ImGui.IsSplitNodeNative(@this); - return ret != 0; - } - } - - [NativeName(NativeNameType.Func, "ImGuiDockNode_SetLocalFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetLocalFlags([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "ImGuiDockNodeFlags")] ImGuiDockNodeFlags flags) - { - fixed (ImGuiDockNode* @this = &this) - { - ImGui.SetLocalFlagsNative(@this, flags); - } - } - - [NativeName(NativeNameType.Func, "ImGuiDockNode_UpdateMergedFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void UpdateMergedFlags() - { - fixed (ImGuiDockNode* @this = &this) - { - ImGui.UpdateMergedFlagsNative(@this); - } - } - } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTabBar")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTabBar { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Tabs")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiTabItem")] public ImVectorImGuiTabItem Tabs; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiTabBarFlags")] - public ImGuiTabBarFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SelectedTabId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int SelectedTabId; + public uint SelectedTabId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NextSelectedTabId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int NextSelectedTabId; + public uint NextSelectedTabId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "VisibleTabId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int VisibleTabId; + public uint VisibleTabId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrFrameVisible")] - [NativeName(NativeNameType.Type, "int")] public int CurrFrameVisible; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PrevFrameVisible")] - [NativeName(NativeNameType.Type, "int")] public int PrevFrameVisible; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BarRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect BarRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrTabsContentsHeight")] - [NativeName(NativeNameType.Type, "float")] public float CurrTabsContentsHeight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PrevTabsContentsHeight")] - [NativeName(NativeNameType.Type, "float")] public float PrevTabsContentsHeight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WidthAllTabs")] - [NativeName(NativeNameType.Type, "float")] public float WidthAllTabs; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WidthAllTabsIdeal")] - [NativeName(NativeNameType.Type, "float")] public float WidthAllTabsIdeal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollingAnim")] - [NativeName(NativeNameType.Type, "float")] public float ScrollingAnim; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollingTarget")] - [NativeName(NativeNameType.Type, "float")] public float ScrollingTarget; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollingTargetDistToVisibility")] - [NativeName(NativeNameType.Type, "float")] public float ScrollingTargetDistToVisibility; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollingSpeed")] - [NativeName(NativeNameType.Type, "float")] public float ScrollingSpeed; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollingRectMinX")] - [NativeName(NativeNameType.Type, "float")] public float ScrollingRectMinX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollingRectMaxX")] - [NativeName(NativeNameType.Type, "float")] public float ScrollingRectMaxX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ReorderRequestTabId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ReorderRequestTabId; + public float SeparatorMinX; + + /// + /// To be documented. + /// + public float SeparatorMaxX; + + /// + /// To be documented. + /// + public uint ReorderRequestTabId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ReorderRequestOffset")] - [NativeName(NativeNameType.Type, "ImS16")] public short ReorderRequestOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BeginCount")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte BeginCount; + public byte BeginCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantLayout")] - [NativeName(NativeNameType.Type, "bool")] public byte WantLayout; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "VisibleTabWasSubmitted")] - [NativeName(NativeNameType.Type, "bool")] public byte VisibleTabWasSubmitted; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TabsAddedNew")] - [NativeName(NativeNameType.Type, "bool")] public byte TabsAddedNew; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TabsActiveCount")] - [NativeName(NativeNameType.Type, "ImS16")] public short TabsActiveCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastTabItemIdx")] - [NativeName(NativeNameType.Type, "ImS16")] public short LastTabItemIdx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemSpacingY")] - [NativeName(NativeNameType.Type, "float")] public float ItemSpacingY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FramePadding")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 FramePadding; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupCursorPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 BackupCursorPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TabsNames")] - [NativeName(NativeNameType.Type, "ImGuiTextBuffer")] public ImGuiTextBuffer TabsNames; - - - [NativeName(NativeNameType.Func, "ImGuiTabBar_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiTabBar* @this = &this) - { - ImGui.DestroyNative(@this); - } + /// /// To be documented. /// public unsafe ImGuiTabBar(ImVectorImGuiTabItem tabs = default, int flags = default, uint id = default, uint selectedTabId = default, uint nextSelectedTabId = default, uint visibleTabId = default, int currFrameVisible = default, int prevFrameVisible = default, ImRect barRect = default, float currTabsContentsHeight = default, float prevTabsContentsHeight = default, float widthAllTabs = default, float widthAllTabsIdeal = default, float scrollingAnim = default, float scrollingTarget = default, float scrollingTargetDistToVisibility = default, float scrollingSpeed = default, float scrollingRectMinX = default, float scrollingRectMaxX = default, float separatorMinX = default, float separatorMaxX = default, uint reorderRequestTabId = default, short reorderRequestOffset = default, byte beginCount = default, bool wantLayout = default, bool visibleTabWasSubmitted = default, bool tabsAddedNew = default, short tabsActiveCount = default, short lastTabItemIdx = default, float itemSpacingY = default, Vector2 framePadding = default, Vector2 backupCursorPos = default, ImGuiTextBuffer tabsNames = default) + { + Tabs = tabs; + Flags = flags; + ID = id; + SelectedTabId = selectedTabId; + NextSelectedTabId = nextSelectedTabId; + VisibleTabId = visibleTabId; + CurrFrameVisible = currFrameVisible; + PrevFrameVisible = prevFrameVisible; + BarRect = barRect; + CurrTabsContentsHeight = currTabsContentsHeight; + PrevTabsContentsHeight = prevTabsContentsHeight; + WidthAllTabs = widthAllTabs; + WidthAllTabsIdeal = widthAllTabsIdeal; + ScrollingAnim = scrollingAnim; + ScrollingTarget = scrollingTarget; + ScrollingTargetDistToVisibility = scrollingTargetDistToVisibility; + ScrollingSpeed = scrollingSpeed; + ScrollingRectMinX = scrollingRectMinX; + ScrollingRectMaxX = scrollingRectMaxX; + SeparatorMinX = separatorMinX; + SeparatorMaxX = separatorMaxX; + ReorderRequestTabId = reorderRequestTabId; + ReorderRequestOffset = reorderRequestOffset; + BeginCount = beginCount; + WantLayout = wantLayout ? (byte)1 : (byte)0; + VisibleTabWasSubmitted = visibleTabWasSubmitted ? (byte)1 : (byte)0; + TabsAddedNew = tabsAddedNew ? (byte)1 : (byte)0; + TabsActiveCount = tabsActiveCount; + LastTabItemIdx = lastTabItemIdx; + ItemSpacingY = itemSpacingY; + FramePadding = framePadding; + BackupCursorPos = backupCursorPos; + TabsNames = tabsNames; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiTabItem")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiTabItem { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiTabItem*")] public unsafe ImGuiTabItem* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiTabItem(int size = default, int capacity = default, ImGuiTabItem* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTabItem")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTabItem { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiTabItemFlags")] - public ImGuiTabItemFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Window")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* Window; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFrameVisible")] - [NativeName(NativeNameType.Type, "int")] public int LastFrameVisible; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFrameSelected")] - [NativeName(NativeNameType.Type, "int")] public int LastFrameSelected; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Offset")] - [NativeName(NativeNameType.Type, "float")] public float Offset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Width")] - [NativeName(NativeNameType.Type, "float")] public float Width; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContentWidth")] - [NativeName(NativeNameType.Type, "float")] public float ContentWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RequestedWidth")] - [NativeName(NativeNameType.Type, "float")] public float RequestedWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NameOffset")] - [NativeName(NativeNameType.Type, "ImS32")] public int NameOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BeginOrder")] - [NativeName(NativeNameType.Type, "ImS16")] public short BeginOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IndexDuringLayout")] - [NativeName(NativeNameType.Type, "ImS16")] public short IndexDuringLayout; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantClose")] - [NativeName(NativeNameType.Type, "bool")] public byte WantClose; - - - [NativeName(NativeNameType.Func, "ImGuiTabItem_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiTabItem(uint id = default, int flags = default, ImGuiWindow* window = default, int lastFrameVisible = default, int lastFrameSelected = default, float offset = default, float width = default, float contentWidth = default, float requestedWidth = default, int nameOffset = default, short beginOrder = default, short indexDuringLayout = default, bool wantClose = default) { - fixed (ImGuiTabItem* @this = &this) - { - ImGui.DestroyNative(@this); - } + ID = id; + Flags = flags; + Window = window; + LastFrameVisible = lastFrameVisible; + LastFrameSelected = lastFrameSelected; + Offset = offset; + Width = width; + ContentWidth = contentWidth; + RequestedWidth = requestedWidth; + NameOffset = nameOffset; + BeginOrder = beginOrder; + IndexDuringLayout = indexDuringLayout; + WantClose = wantClose ? (byte)1 : (byte)0; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTextBuffer")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTextBuffer { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Buf")] - [NativeName(NativeNameType.Type, "ImVector_char")] public ImVectorChar Buf; + /// /// To be documented. /// public unsafe ImGuiTextBuffer(ImVectorChar buf = default) + { + Buf = buf; + } + - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) + public unsafe void append( byte* str, byte* strEnd) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21659,9 +25224,7 @@ public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str) + public unsafe void append( byte* str) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21669,9 +25232,7 @@ public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) + public unsafe void append( ref byte str, byte* strEnd) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21682,9 +25243,7 @@ public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str) + public unsafe void append( ref byte str) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21695,9 +25254,7 @@ public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] byte* strEnd) + public unsafe void append( string str, byte* strEnd) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21726,9 +25283,7 @@ public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str) + public unsafe void append( string str) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21757,9 +25312,7 @@ public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) + public unsafe void append( byte* str, ref byte strEnd) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21770,9 +25323,7 @@ public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] byte* str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) + public unsafe void append( byte* str, string strEnd) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21801,9 +25352,7 @@ public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] ref byte str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte strEnd) + public unsafe void append( ref byte str, ref byte strEnd) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21817,9 +25366,7 @@ public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName(NativeNameType.Type, "const char*")] string str, [NativeName(NativeNameType.Param, "str_end")] [NativeName(NativeNameType.Type, "const char*")] string strEnd) + public unsafe void append( string str, string strEnd) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21869,9 +25416,7 @@ public unsafe void append([NativeName(NativeNameType.Param, "str")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendf")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void appendf([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt) + public unsafe void appendf( byte* fmt) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21879,9 +25424,7 @@ public unsafe void appendf([NativeName(NativeNameType.Param, "fmt")] [NativeName } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendf")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void appendf([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt) + public unsafe void appendf( ref byte fmt) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21892,9 +25435,7 @@ public unsafe void appendf([NativeName(NativeNameType.Param, "fmt")] [NativeName } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendf")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void appendf([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt) + public unsafe void appendf( string fmt) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21923,9 +25464,7 @@ public unsafe void appendf([NativeName(NativeNameType.Param, "fmt")] [NativeName } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendfv")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void appendfv([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] byte* fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public unsafe void appendfv( byte* fmt, nuint args) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21933,9 +25472,7 @@ public unsafe void appendfv([NativeName(NativeNameType.Param, "fmt")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendfv")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void appendfv([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] ref byte fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public unsafe void appendfv( ref byte fmt, nuint args) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21946,9 +25483,7 @@ public unsafe void appendfv([NativeName(NativeNameType.Param, "fmt")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_appendfv")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void appendfv([NativeName(NativeNameType.Param, "fmt")] [NativeName(NativeNameType.Type, "const char*")] string fmt, [NativeName(NativeNameType.Param, "args")] [NativeName(NativeNameType.Type, "va_list")] nuint args) + public unsafe void appendfv( string fmt, nuint args) { fixed (ImGuiTextBuffer* @this = &this) { @@ -21977,8 +25512,6 @@ public unsafe void appendfv([NativeName(NativeNameType.Param, "fmt")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] public unsafe byte* begin() { fixed (ImGuiTextBuffer* @this = &this) @@ -21988,8 +25521,6 @@ public unsafe void appendfv([NativeName(NativeNameType.Param, "fmt")] [NativeNam } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] public unsafe string beginS() { fixed (ImGuiTextBuffer* @this = &this) @@ -21999,8 +25530,6 @@ public unsafe string beginS() } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_c_str")] - [return: NativeName(NativeNameType.Type, "const char*")] public unsafe byte* c_str() { fixed (ImGuiTextBuffer* @this = &this) @@ -22010,8 +25539,6 @@ public unsafe string beginS() } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_c_str")] - [return: NativeName(NativeNameType.Type, "const char*")] public unsafe string c_strS() { fixed (ImGuiTextBuffer* @this = &this) @@ -22021,8 +25548,6 @@ public unsafe string c_strS() } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_clear")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void clear() { fixed (ImGuiTextBuffer* @this = &this) @@ -22031,8 +25556,6 @@ public unsafe void clear() } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiTextBuffer* @this = &this) @@ -22041,8 +25564,6 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_empty")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool empty() { fixed (ImGuiTextBuffer* @this = &this) @@ -22052,8 +25573,6 @@ public unsafe bool empty() } } - /// /// Buf is zero-terminated, so end() will point on the zero-terminator /// [NativeName(NativeNameType.Func, "ImGuiTextBuffer_end")] - [return: NativeName(NativeNameType.Type, "const char*")] public unsafe byte* end() { fixed (ImGuiTextBuffer* @this = &this) @@ -22063,8 +25582,6 @@ public unsafe bool empty() } } - /// /// Buf is zero-terminated, so end() will point on the zero-terminator /// [NativeName(NativeNameType.Func, "ImGuiTextBuffer_end")] - [return: NativeName(NativeNameType.Type, "const char*")] public unsafe string endS() { fixed (ImGuiTextBuffer* @this = &this) @@ -22074,9 +25591,7 @@ public unsafe string endS() } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_reserve")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void reserve([NativeName(NativeNameType.Param, "capacity")] [NativeName(NativeNameType.Type, "int")] int capacity) + public unsafe void reserve( int capacity) { fixed (ImGuiTextBuffer* @this = &this) { @@ -22084,8 +25599,6 @@ public unsafe void reserve([NativeName(NativeNameType.Param, "capacity")] [Nativ } } - [NativeName(NativeNameType.Func, "ImGuiTextBuffer_size")] - [return: NativeName(NativeNameType.Type, "int")] public unsafe int size() { fixed (ImGuiTextBuffer* @this = &this) @@ -22100,356 +25613,264 @@ public unsafe int size() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_char")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorChar { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "char*")] public unsafe byte* Data; + /// /// To be documented. /// public unsafe ImVectorChar(int size = default, int capacity = default, byte* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiWindowStackData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiWindowStackData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiWindowStackData*")] public unsafe ImGuiWindowStackData* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiWindowStackData(int size = default, int capacity = default, ImGuiWindowStackData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiWindowStackData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiWindowStackData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Window")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* Window; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ParentLastItemDataBackup")] - [NativeName(NativeNameType.Type, "ImGuiLastItemData")] public ImGuiLastItemData ParentLastItemDataBackup; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "StackSizesOnBegin")] - [NativeName(NativeNameType.Type, "ImGuiStackSizes")] public ImGuiStackSizes StackSizesOnBegin; + /// /// To be documented. /// public unsafe ImGuiWindowStackData(ImGuiWindow* window = default, ImGuiLastItemData parentLastItemDataBackup = default, ImGuiStackSizes stackSizesOnBegin = default) + { + Window = window; + ParentLastItemDataBackup = parentLastItemDataBackup; + StackSizesOnBegin = stackSizesOnBegin; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiLastItemData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiLastItemData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InFlags")] - [NativeName(NativeNameType.Type, "ImGuiItemFlags")] - public ImGuiItemFlags InFlags; + public int InFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "StatusFlags")] - [NativeName(NativeNameType.Type, "ImGuiItemStatusFlags")] - public ImGuiItemStatusFlags StatusFlags; + public int StatusFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Rect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect Rect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect NavRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplayRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect DisplayRect; - - - [NativeName(NativeNameType.Func, "ImGuiLastItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiLastItemData(uint id = default, int inFlags = default, int statusFlags = default, ImRect rect = default, ImRect navRect = default, ImRect displayRect = default) { - fixed (ImGuiLastItemData* @this = &this) - { - ImGui.DestroyNative(@this); - } + ID = id; + InFlags = inFlags; + StatusFlags = statusFlags; + Rect = rect; + NavRect = navRect; + DisplayRect = displayRect; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiStackSizes")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiStackSizes { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeOfIDStack")] - [NativeName(NativeNameType.Type, "short")] public short SizeOfIDStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeOfColorStack")] - [NativeName(NativeNameType.Type, "short")] public short SizeOfColorStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeOfStyleVarStack")] - [NativeName(NativeNameType.Type, "short")] public short SizeOfStyleVarStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeOfFontStack")] - [NativeName(NativeNameType.Type, "short")] public short SizeOfFontStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeOfFocusScopeStack")] - [NativeName(NativeNameType.Type, "short")] public short SizeOfFocusScopeStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeOfGroupStack")] - [NativeName(NativeNameType.Type, "short")] public short SizeOfGroupStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeOfItemFlagsStack")] - [NativeName(NativeNameType.Type, "short")] public short SizeOfItemFlagsStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeOfBeginPopupStack")] - [NativeName(NativeNameType.Type, "short")] public short SizeOfBeginPopupStack; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeOfDisabledStack")] - [NativeName(NativeNameType.Type, "short")] public short SizeOfDisabledStack; - - - [NativeName(NativeNameType.Func, "ImGuiStackSizes_CompareWithContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CompareWithContextState([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) - { - fixed (ImGuiStackSizes* @this = &this) - { - ImGui.CompareWithContextStateNative(@this, ctx); - } - } - - [NativeName(NativeNameType.Func, "ImGuiStackSizes_CompareWithContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CompareWithContextState([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) - { - fixed (ImGuiStackSizes* @this = &this) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGui.CompareWithContextStateNative(@this, (ImGuiContext*)pctx); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiStackSizes_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiStackSizes* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImGuiStackSizes_SetToContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetToContextState([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ImGuiContext* ctx) - { - fixed (ImGuiStackSizes* @this = &this) - { - ImGui.SetToContextStateNative(@this, ctx); - } - } - - [NativeName(NativeNameType.Func, "ImGuiStackSizes_SetToContextState")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetToContextState([NativeName(NativeNameType.Param, "ctx")] [NativeName(NativeNameType.Type, "ImGuiContext*")] ref ImGuiContext ctx) - { - fixed (ImGuiStackSizes* @this = &this) - { - fixed (ImGuiContext* pctx = &ctx) - { - ImGui.SetToContextStateNative(@this, (ImGuiContext*)pctx); - } - } + /// /// To be documented. /// public unsafe ImGuiStackSizes(short sizeOfIdStack = default, short sizeOfColorStack = default, short sizeOfStyleVarStack = default, short sizeOfFontStack = default, short sizeOfFocusScopeStack = default, short sizeOfGroupStack = default, short sizeOfItemFlagsStack = default, short sizeOfBeginPopupStack = default, short sizeOfDisabledStack = default) + { + SizeOfIDStack = sizeOfIdStack; + SizeOfColorStack = sizeOfColorStack; + SizeOfStyleVarStack = sizeOfStyleVarStack; + SizeOfFontStack = sizeOfFontStack; + SizeOfFocusScopeStack = sizeOfFocusScopeStack; + SizeOfGroupStack = sizeOfGroupStack; + SizeOfItemFlagsStack = sizeOfItemFlagsStack; + SizeOfBeginPopupStack = sizeOfBeginPopupStack; + SizeOfDisabledStack = sizeOfDisabledStack; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiKeyOwnerData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiKeyOwnerData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OwnerCurr")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int OwnerCurr; + public uint OwnerCurr; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OwnerNext")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int OwnerNext; + public uint OwnerNext; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LockThisFrame")] - [NativeName(NativeNameType.Type, "bool")] public byte LockThisFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LockUntilRelease")] - [NativeName(NativeNameType.Type, "bool")] public byte LockUntilRelease; - - - [NativeName(NativeNameType.Func, "ImGuiKeyOwnerData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiKeyOwnerData(uint ownerCurr = default, uint ownerNext = default, bool lockThisFrame = default, bool lockUntilRelease = default) { - fixed (ImGuiKeyOwnerData* @this = &this) - { - ImGui.DestroyNative(@this); - } + OwnerCurr = ownerCurr; + OwnerNext = ownerNext; + LockThisFrame = lockThisFrame ? (byte)1 : (byte)0; + LockUntilRelease = lockUntilRelease ? (byte)1 : (byte)0; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiKeyRoutingTable")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiKeyRoutingTable { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Index")] - [NativeName(NativeNameType.Type, "ImGuiKeyRoutingIndex[140]")] public short Index_0; public short Index_1; public short Index_2; @@ -22590,530 +26011,766 @@ public partial struct ImGuiKeyRoutingTable public short Index_137; public short Index_138; public short Index_139; + public short Index_140; + public short Index_141; + public short Index_142; + public short Index_143; + public short Index_144; + public short Index_145; + public short Index_146; + public short Index_147; + public short Index_148; + public short Index_149; + public short Index_150; + public short Index_151; + public short Index_152; + public short Index_153; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Entries")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiKeyRoutingData")] public ImVectorImGuiKeyRoutingData Entries; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EntriesNext")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiKeyRoutingData")] public ImVectorImGuiKeyRoutingData EntriesNext; + /// /// To be documented. /// public unsafe ImGuiKeyRoutingTable(short* index = default, ImVectorImGuiKeyRoutingData entries = default, ImVectorImGuiKeyRoutingData entriesNext = default) + { + if (index != default) + { + Index_0 = index[0]; + Index_1 = index[1]; + Index_2 = index[2]; + Index_3 = index[3]; + Index_4 = index[4]; + Index_5 = index[5]; + Index_6 = index[6]; + Index_7 = index[7]; + Index_8 = index[8]; + Index_9 = index[9]; + Index_10 = index[10]; + Index_11 = index[11]; + Index_12 = index[12]; + Index_13 = index[13]; + Index_14 = index[14]; + Index_15 = index[15]; + Index_16 = index[16]; + Index_17 = index[17]; + Index_18 = index[18]; + Index_19 = index[19]; + Index_20 = index[20]; + Index_21 = index[21]; + Index_22 = index[22]; + Index_23 = index[23]; + Index_24 = index[24]; + Index_25 = index[25]; + Index_26 = index[26]; + Index_27 = index[27]; + Index_28 = index[28]; + Index_29 = index[29]; + Index_30 = index[30]; + Index_31 = index[31]; + Index_32 = index[32]; + Index_33 = index[33]; + Index_34 = index[34]; + Index_35 = index[35]; + Index_36 = index[36]; + Index_37 = index[37]; + Index_38 = index[38]; + Index_39 = index[39]; + Index_40 = index[40]; + Index_41 = index[41]; + Index_42 = index[42]; + Index_43 = index[43]; + Index_44 = index[44]; + Index_45 = index[45]; + Index_46 = index[46]; + Index_47 = index[47]; + Index_48 = index[48]; + Index_49 = index[49]; + Index_50 = index[50]; + Index_51 = index[51]; + Index_52 = index[52]; + Index_53 = index[53]; + Index_54 = index[54]; + Index_55 = index[55]; + Index_56 = index[56]; + Index_57 = index[57]; + Index_58 = index[58]; + Index_59 = index[59]; + Index_60 = index[60]; + Index_61 = index[61]; + Index_62 = index[62]; + Index_63 = index[63]; + Index_64 = index[64]; + Index_65 = index[65]; + Index_66 = index[66]; + Index_67 = index[67]; + Index_68 = index[68]; + Index_69 = index[69]; + Index_70 = index[70]; + Index_71 = index[71]; + Index_72 = index[72]; + Index_73 = index[73]; + Index_74 = index[74]; + Index_75 = index[75]; + Index_76 = index[76]; + Index_77 = index[77]; + Index_78 = index[78]; + Index_79 = index[79]; + Index_80 = index[80]; + Index_81 = index[81]; + Index_82 = index[82]; + Index_83 = index[83]; + Index_84 = index[84]; + Index_85 = index[85]; + Index_86 = index[86]; + Index_87 = index[87]; + Index_88 = index[88]; + Index_89 = index[89]; + Index_90 = index[90]; + Index_91 = index[91]; + Index_92 = index[92]; + Index_93 = index[93]; + Index_94 = index[94]; + Index_95 = index[95]; + Index_96 = index[96]; + Index_97 = index[97]; + Index_98 = index[98]; + Index_99 = index[99]; + Index_100 = index[100]; + Index_101 = index[101]; + Index_102 = index[102]; + Index_103 = index[103]; + Index_104 = index[104]; + Index_105 = index[105]; + Index_106 = index[106]; + Index_107 = index[107]; + Index_108 = index[108]; + Index_109 = index[109]; + Index_110 = index[110]; + Index_111 = index[111]; + Index_112 = index[112]; + Index_113 = index[113]; + Index_114 = index[114]; + Index_115 = index[115]; + Index_116 = index[116]; + Index_117 = index[117]; + Index_118 = index[118]; + Index_119 = index[119]; + Index_120 = index[120]; + Index_121 = index[121]; + Index_122 = index[122]; + Index_123 = index[123]; + Index_124 = index[124]; + Index_125 = index[125]; + Index_126 = index[126]; + Index_127 = index[127]; + Index_128 = index[128]; + Index_129 = index[129]; + Index_130 = index[130]; + Index_131 = index[131]; + Index_132 = index[132]; + Index_133 = index[133]; + Index_134 = index[134]; + Index_135 = index[135]; + Index_136 = index[136]; + Index_137 = index[137]; + Index_138 = index[138]; + Index_139 = index[139]; + Index_140 = index[140]; + Index_141 = index[141]; + Index_142 = index[142]; + Index_143 = index[143]; + Index_144 = index[144]; + Index_145 = index[145]; + Index_146 = index[146]; + Index_147 = index[147]; + Index_148 = index[148]; + Index_149 = index[149]; + Index_150 = index[150]; + Index_151 = index[151]; + Index_152 = index[152]; + Index_153 = index[153]; + } + Entries = entries; + EntriesNext = entriesNext; + } + + /// /// To be documented. /// public unsafe ImGuiKeyRoutingTable(Span index = default, ImVectorImGuiKeyRoutingData entries = default, ImVectorImGuiKeyRoutingData entriesNext = default) + { + if (index != default) + { + Index_0 = index[0]; + Index_1 = index[1]; + Index_2 = index[2]; + Index_3 = index[3]; + Index_4 = index[4]; + Index_5 = index[5]; + Index_6 = index[6]; + Index_7 = index[7]; + Index_8 = index[8]; + Index_9 = index[9]; + Index_10 = index[10]; + Index_11 = index[11]; + Index_12 = index[12]; + Index_13 = index[13]; + Index_14 = index[14]; + Index_15 = index[15]; + Index_16 = index[16]; + Index_17 = index[17]; + Index_18 = index[18]; + Index_19 = index[19]; + Index_20 = index[20]; + Index_21 = index[21]; + Index_22 = index[22]; + Index_23 = index[23]; + Index_24 = index[24]; + Index_25 = index[25]; + Index_26 = index[26]; + Index_27 = index[27]; + Index_28 = index[28]; + Index_29 = index[29]; + Index_30 = index[30]; + Index_31 = index[31]; + Index_32 = index[32]; + Index_33 = index[33]; + Index_34 = index[34]; + Index_35 = index[35]; + Index_36 = index[36]; + Index_37 = index[37]; + Index_38 = index[38]; + Index_39 = index[39]; + Index_40 = index[40]; + Index_41 = index[41]; + Index_42 = index[42]; + Index_43 = index[43]; + Index_44 = index[44]; + Index_45 = index[45]; + Index_46 = index[46]; + Index_47 = index[47]; + Index_48 = index[48]; + Index_49 = index[49]; + Index_50 = index[50]; + Index_51 = index[51]; + Index_52 = index[52]; + Index_53 = index[53]; + Index_54 = index[54]; + Index_55 = index[55]; + Index_56 = index[56]; + Index_57 = index[57]; + Index_58 = index[58]; + Index_59 = index[59]; + Index_60 = index[60]; + Index_61 = index[61]; + Index_62 = index[62]; + Index_63 = index[63]; + Index_64 = index[64]; + Index_65 = index[65]; + Index_66 = index[66]; + Index_67 = index[67]; + Index_68 = index[68]; + Index_69 = index[69]; + Index_70 = index[70]; + Index_71 = index[71]; + Index_72 = index[72]; + Index_73 = index[73]; + Index_74 = index[74]; + Index_75 = index[75]; + Index_76 = index[76]; + Index_77 = index[77]; + Index_78 = index[78]; + Index_79 = index[79]; + Index_80 = index[80]; + Index_81 = index[81]; + Index_82 = index[82]; + Index_83 = index[83]; + Index_84 = index[84]; + Index_85 = index[85]; + Index_86 = index[86]; + Index_87 = index[87]; + Index_88 = index[88]; + Index_89 = index[89]; + Index_90 = index[90]; + Index_91 = index[91]; + Index_92 = index[92]; + Index_93 = index[93]; + Index_94 = index[94]; + Index_95 = index[95]; + Index_96 = index[96]; + Index_97 = index[97]; + Index_98 = index[98]; + Index_99 = index[99]; + Index_100 = index[100]; + Index_101 = index[101]; + Index_102 = index[102]; + Index_103 = index[103]; + Index_104 = index[104]; + Index_105 = index[105]; + Index_106 = index[106]; + Index_107 = index[107]; + Index_108 = index[108]; + Index_109 = index[109]; + Index_110 = index[110]; + Index_111 = index[111]; + Index_112 = index[112]; + Index_113 = index[113]; + Index_114 = index[114]; + Index_115 = index[115]; + Index_116 = index[116]; + Index_117 = index[117]; + Index_118 = index[118]; + Index_119 = index[119]; + Index_120 = index[120]; + Index_121 = index[121]; + Index_122 = index[122]; + Index_123 = index[123]; + Index_124 = index[124]; + Index_125 = index[125]; + Index_126 = index[126]; + Index_127 = index[127]; + Index_128 = index[128]; + Index_129 = index[129]; + Index_130 = index[130]; + Index_131 = index[131]; + Index_132 = index[132]; + Index_133 = index[133]; + Index_134 = index[134]; + Index_135 = index[135]; + Index_136 = index[136]; + Index_137 = index[137]; + Index_138 = index[138]; + Index_139 = index[139]; + Index_140 = index[140]; + Index_141 = index[141]; + Index_142 = index[142]; + Index_143 = index[143]; + Index_144 = index[144]; + Index_145 = index[145]; + Index_146 = index[146]; + Index_147 = index[147]; + Index_148 = index[148]; + Index_149 = index[149]; + Index_150 = index[150]; + Index_151 = index[151]; + Index_152 = index[152]; + Index_153 = index[153]; + } + Entries = entries; + EntriesNext = entriesNext; + } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingTable_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Clear() - { - fixed (ImGuiKeyRoutingTable* @this = &this) - { - ImGui.ClearNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingTable_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiKeyRoutingTable* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiKeyRoutingData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiKeyRoutingData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiKeyRoutingData*")] public unsafe ImGuiKeyRoutingData* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiKeyRoutingData(int size = default, int capacity = default, ImGuiKeyRoutingData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiKeyRoutingData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiKeyRoutingData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NextEntryIndex")] - [NativeName(NativeNameType.Type, "ImGuiKeyRoutingIndex")] public short NextEntryIndex; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Mods")] - [NativeName(NativeNameType.Type, "ImU16")] public ushort Mods; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RoutingNextScore")] - [NativeName(NativeNameType.Type, "ImU8")] public byte RoutingNextScore; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RoutingCurr")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int RoutingCurr; + public uint RoutingCurr; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RoutingNext")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int RoutingNext; - + public uint RoutingNext; - - [NativeName(NativeNameType.Func, "ImGuiKeyRoutingData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiKeyRoutingData(short nextEntryIndex = default, ushort mods = default, byte routingNextScore = default, uint routingCurr = default, uint routingNext = default) { - fixed (ImGuiKeyRoutingData* @this = &this) - { - ImGui.DestroyNative(@this); - } + NextEntryIndex = nextEntryIndex; + Mods = mods; + RoutingNextScore = routingNextScore; + RoutingCurr = routingCurr; + RoutingNext = routingNext; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiNextItemData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiNextItemData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiNextItemDataFlags")] - public ImGuiNextItemDataFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemFlags")] - [NativeName(NativeNameType.Type, "ImGuiItemFlags")] - public ImGuiItemFlags ItemFlags; + public int ItemFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Width")] - [NativeName(NativeNameType.Type, "float")] public float Width; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FocusScopeId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int FocusScopeId; + public ImGuiSelectionUserData SelectionUserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OpenCond")] - [NativeName(NativeNameType.Type, "ImGuiCond")] - public ImGuiCond OpenCond; + public int OpenCond; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OpenVal")] - [NativeName(NativeNameType.Type, "bool")] public byte OpenVal; - - - /// /// Also cleared manually by ItemAdd()! /// [NativeName(NativeNameType.Func, "ImGuiNextItemData_ClearFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClearFlags() + /// /// To be documented. /// public unsafe ImGuiNextItemData(int flags = default, int itemFlags = default, float width = default, ImGuiSelectionUserData selectionUserData = default, int openCond = default, bool openVal = default) { - fixed (ImGuiNextItemData* @this = &this) - { - ImGui.ClearFlagsNative(@this); - } + Flags = flags; + ItemFlags = itemFlags; + Width = width; + SelectionUserData = selectionUserData; + OpenCond = openCond; + OpenVal = openVal ? (byte)1 : (byte)0; } - [NativeName(NativeNameType.Func, "ImGuiNextItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiNextItemData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiNextWindowData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiNextWindowData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiNextWindowDataFlags")] - public ImGuiNextWindowDataFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PosCond")] - [NativeName(NativeNameType.Type, "ImGuiCond")] - public ImGuiCond PosCond; + public int PosCond; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeCond")] - [NativeName(NativeNameType.Type, "ImGuiCond")] - public ImGuiCond SizeCond; + public int SizeCond; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CollapsedCond")] - [NativeName(NativeNameType.Type, "ImGuiCond")] - public ImGuiCond CollapsedCond; + public int CollapsedCond; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockCond")] - [NativeName(NativeNameType.Type, "ImGuiCond")] - public ImGuiCond DockCond; + public int DockCond; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PosVal")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 PosVal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PosPivotVal")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 PosPivotVal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeVal")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 SizeVal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContentSizeVal")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ContentSizeVal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollVal")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 ScrollVal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PosUndock")] - [NativeName(NativeNameType.Type, "bool")] public byte PosUndock; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CollapsedVal")] - [NativeName(NativeNameType.Type, "bool")] public byte CollapsedVal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeConstraintRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect SizeConstraintRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeCallback")] - [NativeName(NativeNameType.Type, "ImGuiSizeCallback")] public unsafe void* SizeCallback; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SizeCallbackUserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* SizeCallbackUserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BgAlphaVal")] - [NativeName(NativeNameType.Type, "float")] public float BgAlphaVal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ViewportId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ViewportId; + public uint ViewportId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int DockId; + public uint DockId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowClass")] - [NativeName(NativeNameType.Type, "ImGuiWindowClass")] public ImGuiWindowClass WindowClass; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MenuBarOffsetMinVal")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 MenuBarOffsetMinVal; - - - [NativeName(NativeNameType.Func, "ImGuiNextWindowData_ClearFlags")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClearFlags() + /// /// To be documented. /// public unsafe ImGuiNextWindowData(int flags = default, int posCond = default, int sizeCond = default, int collapsedCond = default, int dockCond = default, Vector2 posVal = default, Vector2 posPivotVal = default, Vector2 sizeVal = default, Vector2 contentSizeVal = default, Vector2 scrollVal = default, bool posUndock = default, bool collapsedVal = default, ImRect sizeConstraintRect = default, ImGuiSizeCallback sizeCallback = default, void* sizeCallbackUserData = default, float bgAlphaVal = default, uint viewportId = default, uint dockId = default, ImGuiWindowClass windowClass = default, Vector2 menuBarOffsetMinVal = default) { - fixed (ImGuiNextWindowData* @this = &this) - { - ImGui.ClearFlagsNative(@this); - } + Flags = flags; + PosCond = posCond; + SizeCond = sizeCond; + CollapsedCond = collapsedCond; + DockCond = dockCond; + PosVal = posVal; + PosPivotVal = posPivotVal; + SizeVal = sizeVal; + ContentSizeVal = contentSizeVal; + ScrollVal = scrollVal; + PosUndock = posUndock ? (byte)1 : (byte)0; + CollapsedVal = collapsedVal ? (byte)1 : (byte)0; + SizeConstraintRect = sizeConstraintRect; + SizeCallback = (void*)Marshal.GetFunctionPointerForDelegate(sizeCallback); + SizeCallbackUserData = sizeCallbackUserData; + BgAlphaVal = bgAlphaVal; + ViewportId = viewportId; + DockId = dockId; + WindowClass = windowClass; + MenuBarOffsetMinVal = menuBarOffsetMinVal; } - [NativeName(NativeNameType.Func, "ImGuiNextWindowData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiNextWindowData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiSizeCallbackData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiSizeCallbackData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "UserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* UserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Pos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 Pos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 CurrentSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DesiredSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 DesiredSize; + /// /// To be documented. /// public unsafe ImGuiSizeCallbackData(void* userData = default, Vector2 pos = default, Vector2 currentSize = default, Vector2 desiredSize = default) + { + UserData = userData; + Pos = pos; + CurrentSize = currentSize; + DesiredSize = desiredSize; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiColorMod")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiColorMod { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiColorMod*")] public unsafe ImGuiColorMod* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiColorMod(int size = default, int capacity = default, ImGuiColorMod* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiColorMod")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiColorMod { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Col")] - [NativeName(NativeNameType.Type, "ImGuiCol")] - public ImGuiCol Col; + public int Col; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupValue")] - [NativeName(NativeNameType.Type, "ImVec4")] public Vector4 BackupValue; + /// /// To be documented. /// public unsafe ImGuiColorMod(int col = default, Vector4 backupValue = default) + { + Col = col; + BackupValue = backupValue; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiStyleMod")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiStyleMod { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiStyleMod*")] public unsafe ImGuiStyleMod* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiStyleMod(int size = default, int capacity = default, ImGuiStyleMod* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiStyleMod")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiStyleMod { /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "")] [StructLayout(LayoutKind.Explicit)] public partial struct ImGuiStyleModUnion { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupInt")] - [NativeName(NativeNameType.Type, "int[2]")] [FieldOffset(0)] public int BackupInt_0; [FieldOffset(8)] @@ -23122,14 +26779,40 @@ public partial struct ImGuiStyleModUnion /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupFloat")] - [NativeName(NativeNameType.Type, "float[2]")] [FieldOffset(0)] public float BackupFloat_0; [FieldOffset(8)] public float BackupFloat_1; + /// /// To be documented. /// public unsafe ImGuiStyleModUnion(int* backupInt = default, float* backupFloat = default) + { + if (backupInt != default) + { + BackupInt_0 = backupInt[0]; + BackupInt_1 = backupInt[1]; + } + if (backupFloat != default) + { + BackupFloat_0 = backupFloat[0]; + BackupFloat_1 = backupFloat[1]; + } + } + + /// /// To be documented. /// public unsafe ImGuiStyleModUnion(Span backupInt = default, Span backupFloat = default) + { + if (backupInt != default) + { + BackupInt_0 = backupInt[0]; + BackupInt_1 = backupInt[1]; + } + if (backupFloat != default) + { + BackupFloat_0 = backupFloat[0]; + BackupFloat_1 = backupFloat[1]; + } + } + /// /// To be documented. @@ -23142,461 +26825,471 @@ public partial struct ImGuiStyleModUnion /// /// To be documented. /// - [NativeName(NativeNameType.Field, "VarIdx")] - [NativeName(NativeNameType.Type, "ImGuiStyleVar")] - public ImGuiStyleVar VarIdx; + public int VarIdx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "")] - [NativeName(NativeNameType.Type, "")] public ImGuiStyleModUnion Union; - - - [NativeName(NativeNameType.Func, "ImGuiStyleMod_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiStyleMod(int varIdx = default, ImGuiStyleModUnion union = default) { - fixed (ImGuiStyleMod* @this = &this) - { - ImGui.DestroyNative(@this); - } + VarIdx = varIdx; + Union = union; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiItemFlags")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiItemFlags { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiItemFlags*")] - public unsafe ImGuiItemFlags* Data; + public unsafe int* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiItemFlags(int size = default, int capacity = default, int* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiGroupData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiGroupData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiGroupData*")] public unsafe ImGuiGroupData* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiGroupData(int size = default, int capacity = default, ImGuiGroupData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiGroupData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiGroupData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WindowID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int WindowID; + public uint WindowID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupCursorPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 BackupCursorPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupCursorMaxPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 BackupCursorMaxPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupIndent")] - [NativeName(NativeNameType.Type, "ImVec1")] + public Vector2 BackupCursorPosPrevLine; + + /// + /// To be documented. + /// public ImVec1 BackupIndent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupGroupOffset")] - [NativeName(NativeNameType.Type, "ImVec1")] public ImVec1 BackupGroupOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupCurrLineSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 BackupCurrLineSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupCurrLineTextBaseOffset")] - [NativeName(NativeNameType.Type, "float")] public float BackupCurrLineTextBaseOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupActiveIdIsAlive")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int BackupActiveIdIsAlive; + public uint BackupActiveIdIsAlive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupActiveIdPreviousFrameIsAlive")] - [NativeName(NativeNameType.Type, "bool")] public byte BackupActiveIdPreviousFrameIsAlive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupHoveredIdIsAlive")] - [NativeName(NativeNameType.Type, "bool")] public byte BackupHoveredIdIsAlive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EmitItem")] - [NativeName(NativeNameType.Type, "bool")] + public byte BackupIsSameLine; + + /// + /// To be documented. + /// public byte EmitItem; + /// /// To be documented. /// public unsafe ImGuiGroupData(uint windowId = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, Vector2 backupCursorPosPrevLine = default, ImVec1 backupIndent = default, ImVec1 backupGroupOffset = default, Vector2 backupCurrLineSize = default, float backupCurrLineTextBaseOffset = default, uint backupActiveIdIsAlive = default, bool backupActiveIdPreviousFrameIsAlive = default, bool backupHoveredIdIsAlive = default, bool backupIsSameLine = default, bool emitItem = default) + { + WindowID = windowId; + BackupCursorPos = backupCursorPos; + BackupCursorMaxPos = backupCursorMaxPos; + BackupCursorPosPrevLine = backupCursorPosPrevLine; + BackupIndent = backupIndent; + BackupGroupOffset = backupGroupOffset; + BackupCurrLineSize = backupCurrLineSize; + BackupCurrLineTextBaseOffset = backupCurrLineTextBaseOffset; + BackupActiveIdIsAlive = backupActiveIdIsAlive; + BackupActiveIdPreviousFrameIsAlive = backupActiveIdPreviousFrameIsAlive ? (byte)1 : (byte)0; + BackupHoveredIdIsAlive = backupHoveredIdIsAlive ? (byte)1 : (byte)0; + BackupIsSameLine = backupIsSameLine ? (byte)1 : (byte)0; + EmitItem = emitItem ? (byte)1 : (byte)0; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiPopupData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiPopupData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiPopupData*")] public unsafe ImGuiPopupData* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiPopupData(int size = default, int capacity = default, ImGuiPopupData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiPopupData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiPopupData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PopupId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int PopupId; + public uint PopupId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Window")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* Window; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupNavWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* BackupNavWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ParentNavLayer")] - [NativeName(NativeNameType.Type, "int")] public int ParentNavLayer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OpenFrameCount")] - [NativeName(NativeNameType.Type, "int")] public int OpenFrameCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OpenParentId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int OpenParentId; + public uint OpenParentId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OpenPopupPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 OpenPopupPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OpenMousePos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 OpenMousePos; + /// /// To be documented. /// public unsafe ImGuiPopupData(uint popupId = default, ImGuiWindow* window = default, ImGuiWindow* backupNavWindow = default, int parentNavLayer = default, int openFrameCount = default, uint openParentId = default, Vector2 openPopupPos = default, Vector2 openMousePos = default) + { + PopupId = popupId; + Window = window; + BackupNavWindow = backupNavWindow; + ParentNavLayer = parentNavLayer; + OpenFrameCount = openFrameCount; + OpenParentId = openParentId; + OpenPopupPos = openPopupPos; + OpenMousePos = openMousePos; + } - [NativeName(NativeNameType.Func, "ImGuiPopupData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImVectorImGuiNavTreeNodeData + { + /// + /// To be documented. + /// + public int Size; + + /// + /// To be documented. + /// + public int Capacity; + + /// + /// To be documented. + /// + public unsafe ImGuiNavTreeNodeData* Data; + + + /// /// To be documented. /// public unsafe ImVectorImGuiNavTreeNodeData(int size = default, int capacity = default, ImGuiNavTreeNodeData* data = default) { - fixed (ImGuiPopupData* @this = &this) - { - ImGui.DestroyNative(@this); - } + Size = size; + Capacity = capacity; + Data = data; + } + + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiNavTreeNodeData + { + /// + /// To be documented. + /// + public uint ID; + + /// + /// To be documented. + /// + public int InFlags; + + /// + /// To be documented. + /// + public ImRect NavRect; + + + /// /// To be documented. /// public unsafe ImGuiNavTreeNodeData(uint id = default, int inFlags = default, ImRect navRect = default) + { + ID = id; + InFlags = inFlags; + NavRect = navRect; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiViewportPPtr")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiViewportPPtr { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiViewportP**")] public unsafe ImGuiViewportP** Data; + /// /// To be documented. /// public unsafe ImVectorImGuiViewportPPtr(int size = default, int capacity = default, ImGuiViewportP** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiNavItemData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiNavItemData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Window")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* Window; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FocusScopeId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int FocusScopeId; + public uint FocusScopeId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RectRel")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect RectRel; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InFlags")] - [NativeName(NativeNameType.Type, "ImGuiItemFlags")] - public ImGuiItemFlags InFlags; + public int InFlags; + + /// + /// To be documented. + /// + public ImGuiSelectionUserData SelectionUserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DistBox")] - [NativeName(NativeNameType.Type, "float")] public float DistBox; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DistCenter")] - [NativeName(NativeNameType.Type, "float")] public float DistCenter; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DistAxial")] - [NativeName(NativeNameType.Type, "float")] public float DistAxial; - - - [NativeName(NativeNameType.Func, "ImGuiNavItemData_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Clear() + /// /// To be documented. /// public unsafe ImGuiNavItemData(ImGuiWindow* window = default, uint id = default, uint focusScopeId = default, ImRect rectRel = default, int inFlags = default, ImGuiSelectionUserData selectionUserData = default, float distBox = default, float distCenter = default, float distAxial = default) { - fixed (ImGuiNavItemData* @this = &this) - { - ImGui.ClearNative(@this); - } + Window = window; + ID = id; + FocusScopeId = focusScopeId; + RectRel = rectRel; + InFlags = inFlags; + SelectionUserData = selectionUserData; + DistBox = distBox; + DistCenter = distCenter; + DistAxial = distAxial; } - [NativeName(NativeNameType.Func, "ImGuiNavItemData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiNavItemData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiPayload")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiPayload { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* Data; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DataSize")] - [NativeName(NativeNameType.Type, "int")] public int DataSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SourceId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int SourceId; + public uint SourceId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SourceParentId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int SourceParentId; + public uint SourceParentId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DataFrameCount")] - [NativeName(NativeNameType.Type, "int")] public int DataFrameCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DataType")] - [NativeName(NativeNameType.Type, "char[33]")] public byte DataType_0; public byte DataType_1; public byte DataType_2; @@ -23634,25 +27327,113 @@ public partial struct ImGuiPayload /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Preview")] - [NativeName(NativeNameType.Type, "bool")] public byte Preview; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Delivery")] - [NativeName(NativeNameType.Type, "bool")] public byte Delivery; + /// /// To be documented. /// public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, byte* dataType = default, bool preview = default, bool delivery = default) + { + Data = data; + DataSize = dataSize; + SourceId = sourceId; + SourceParentId = sourceParentId; + DataFrameCount = dataFrameCount; + if (dataType != default) + { + DataType_0 = dataType[0]; + DataType_1 = dataType[1]; + DataType_2 = dataType[2]; + DataType_3 = dataType[3]; + DataType_4 = dataType[4]; + DataType_5 = dataType[5]; + DataType_6 = dataType[6]; + DataType_7 = dataType[7]; + DataType_8 = dataType[8]; + DataType_9 = dataType[9]; + DataType_10 = dataType[10]; + DataType_11 = dataType[11]; + DataType_12 = dataType[12]; + DataType_13 = dataType[13]; + DataType_14 = dataType[14]; + DataType_15 = dataType[15]; + DataType_16 = dataType[16]; + DataType_17 = dataType[17]; + DataType_18 = dataType[18]; + DataType_19 = dataType[19]; + DataType_20 = dataType[20]; + DataType_21 = dataType[21]; + DataType_22 = dataType[22]; + DataType_23 = dataType[23]; + DataType_24 = dataType[24]; + DataType_25 = dataType[25]; + DataType_26 = dataType[26]; + DataType_27 = dataType[27]; + DataType_28 = dataType[28]; + DataType_29 = dataType[29]; + DataType_30 = dataType[30]; + DataType_31 = dataType[31]; + DataType_32 = dataType[32]; + } + Preview = preview ? (byte)1 : (byte)0; + Delivery = delivery ? (byte)1 : (byte)0; + } + + /// /// To be documented. /// public unsafe ImGuiPayload(void* data = default, int dataSize = default, uint sourceId = default, uint sourceParentId = default, int dataFrameCount = default, Span dataType = default, bool preview = default, bool delivery = default) + { + Data = data; + DataSize = dataSize; + SourceId = sourceId; + SourceParentId = sourceParentId; + DataFrameCount = dataFrameCount; + if (dataType != default) + { + DataType_0 = dataType[0]; + DataType_1 = dataType[1]; + DataType_2 = dataType[2]; + DataType_3 = dataType[3]; + DataType_4 = dataType[4]; + DataType_5 = dataType[5]; + DataType_6 = dataType[6]; + DataType_7 = dataType[7]; + DataType_8 = dataType[8]; + DataType_9 = dataType[9]; + DataType_10 = dataType[10]; + DataType_11 = dataType[11]; + DataType_12 = dataType[12]; + DataType_13 = dataType[13]; + DataType_14 = dataType[14]; + DataType_15 = dataType[15]; + DataType_16 = dataType[16]; + DataType_17 = dataType[17]; + DataType_18 = dataType[18]; + DataType_19 = dataType[19]; + DataType_20 = dataType[20]; + DataType_21 = dataType[21]; + DataType_22 = dataType[22]; + DataType_23 = dataType[23]; + DataType_24 = dataType[24]; + DataType_25 = dataType[25]; + DataType_26 = dataType[26]; + DataType_27 = dataType[27]; + DataType_28 = dataType[28]; + DataType_29 = dataType[29]; + DataType_30 = dataType[30]; + DataType_31 = dataType[31]; + DataType_32 = dataType[32]; + } + Preview = preview ? (byte)1 : (byte)0; + Delivery = delivery ? (byte)1 : (byte)0; + } + /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiPayload_Clear")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Clear() { fixed (ImGuiPayload* @this = &this) @@ -23661,8 +27442,6 @@ public unsafe void Clear() } } - [NativeName(NativeNameType.Func, "ImGuiPayload_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiPayload* @this = &this) @@ -23671,9 +27450,7 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDataType")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsDataType([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] byte* type) + public unsafe bool IsDataType( byte* type) { fixed (ImGuiPayload* @this = &this) { @@ -23682,9 +27459,7 @@ public unsafe bool IsDataType([NativeName(NativeNameType.Param, "type")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDataType")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsDataType([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] ref byte type) + public unsafe bool IsDataType( ref byte type) { fixed (ImGuiPayload* @this = &this) { @@ -23696,9 +27471,7 @@ public unsafe bool IsDataType([NativeName(NativeNameType.Param, "type")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDataType")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool IsDataType([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "const char*")] string type) + public unsafe bool IsDataType( string type) { fixed (ImGuiPayload* @this = &this) { @@ -23728,8 +27501,6 @@ public unsafe bool IsDataType([NativeName(NativeNameType.Param, "type")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiPayload_IsDelivery")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool IsDelivery() { fixed (ImGuiPayload* @this = &this) @@ -23739,8 +27510,6 @@ public unsafe bool IsDelivery() } } - [NativeName(NativeNameType.Func, "ImGuiPayload_IsPreview")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool IsPreview() { fixed (ImGuiPayload* @this = &this) @@ -23755,209 +27524,167 @@ public unsafe bool IsPreview() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_unsigned_char")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorUnsignedChar { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "unsigned char*")] public unsafe byte* Data; + /// /// To be documented. /// public unsafe ImVectorUnsignedChar(int size = default, int capacity = default, byte* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiListClipperData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiListClipperData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiListClipperData*")] public unsafe ImGuiListClipperData* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiListClipperData(int size = default, int capacity = default, ImGuiListClipperData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiListClipperData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiListClipperData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ListClipper")] - [NativeName(NativeNameType.Type, "ImGuiListClipper*")] public unsafe ImGuiListClipper* ListClipper; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LossynessOffset")] - [NativeName(NativeNameType.Type, "float")] public float LossynessOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "StepNo")] - [NativeName(NativeNameType.Type, "int")] public int StepNo; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemsFrozen")] - [NativeName(NativeNameType.Type, "int")] public int ItemsFrozen; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Ranges")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiListClipperRange")] public ImVectorImGuiListClipperRange Ranges; - - - [NativeName(NativeNameType.Func, "ImGuiListClipperData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiListClipperData* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImGuiListClipperData_Reset")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Reset([NativeName(NativeNameType.Param, "clipper")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ImGuiListClipper* clipper) + /// /// To be documented. /// public unsafe ImGuiListClipperData(ImGuiListClipper* listClipper = default, float lossynessOffset = default, int stepNo = default, int itemsFrozen = default, ImVectorImGuiListClipperRange ranges = default) { - fixed (ImGuiListClipperData* @this = &this) - { - ImGui.ResetNative(@this, clipper); - } + ListClipper = listClipper; + LossynessOffset = lossynessOffset; + StepNo = stepNo; + ItemsFrozen = itemsFrozen; + Ranges = ranges; } - [NativeName(NativeNameType.Func, "ImGuiListClipperData_Reset")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Reset([NativeName(NativeNameType.Param, "clipper")] [NativeName(NativeNameType.Type, "ImGuiListClipper*")] ref ImGuiListClipper clipper) - { - fixed (ImGuiListClipperData* @this = &this) - { - fixed (ImGuiListClipper* pclipper = &clipper) - { - ImGui.ResetNative(@this, (ImGuiListClipper*)pclipper); - } - } - } } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiListClipper")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiListClipper { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Ctx")] - [NativeName(NativeNameType.Type, "ImGuiContext*")] public unsafe ImGuiContext* Ctx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplayStart")] - [NativeName(NativeNameType.Type, "int")] public int DisplayStart; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplayEnd")] - [NativeName(NativeNameType.Type, "int")] public int DisplayEnd; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemsCount")] - [NativeName(NativeNameType.Type, "int")] public int ItemsCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemsHeight")] - [NativeName(NativeNameType.Type, "float")] public float ItemsHeight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "StartPosY")] - [NativeName(NativeNameType.Type, "float")] public float StartPosY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TempData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* TempData; + /// /// To be documented. /// public unsafe ImGuiListClipper(ImGuiContext* ctx = default, int displayStart = default, int displayEnd = default, int itemsCount = default, float itemsHeight = default, float startPosY = default, void* tempData = default) + { + Ctx = ctx; + DisplayStart = displayStart; + DisplayEnd = displayEnd; + ItemsCount = itemsCount; + ItemsHeight = itemsHeight; + StartPosY = startPosY; + TempData = tempData; + } + - [NativeName(NativeNameType.Func, "ImGuiListClipper_Begin")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Begin([NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount, [NativeName(NativeNameType.Param, "items_height")] [NativeName(NativeNameType.Type, "float")] float itemsHeight) + public unsafe void Begin( int itemsCount, float itemsHeight) { fixed (ImGuiListClipper* @this = &this) { @@ -23965,9 +27692,7 @@ public unsafe void Begin([NativeName(NativeNameType.Param, "items_count")] [Nati } } - [NativeName(NativeNameType.Func, "ImGuiListClipper_Begin")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Begin([NativeName(NativeNameType.Param, "items_count")] [NativeName(NativeNameType.Type, "int")] int itemsCount) + public unsafe void Begin( int itemsCount) { fixed (ImGuiListClipper* @this = &this) { @@ -23975,8 +27700,6 @@ public unsafe void Begin([NativeName(NativeNameType.Param, "items_count")] [Nati } } - [NativeName(NativeNameType.Func, "ImGuiListClipper_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiListClipper* @this = &this) @@ -23985,8 +27708,6 @@ public unsafe void Destroy() } } - /// /// Automatically called on the last call of Step() that returns false. /// [NativeName(NativeNameType.Func, "ImGuiListClipper_End")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void End() { fixed (ImGuiListClipper* @this = &this) @@ -23995,18 +27716,22 @@ public unsafe void End() } } - /// /// item_end is exclusive e.g. use (42, 42+1) to make item 42 never clipped. /// [NativeName(NativeNameType.Func, "ImGuiListClipper_IncludeRangeByIndices")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void IncludeRangeByIndices([NativeName(NativeNameType.Param, "item_begin")] [NativeName(NativeNameType.Type, "int")] int itemBegin, [NativeName(NativeNameType.Param, "item_end")] [NativeName(NativeNameType.Type, "int")] int itemEnd) + public unsafe void IncludeItemByIndex( int itemIndex) + { + fixed (ImGuiListClipper* @this = &this) + { + ImGui.IncludeItemByIndexNative(@this, itemIndex); + } + } + + public unsafe void IncludeItemsByIndex( int itemBegin, int itemEnd) { fixed (ImGuiListClipper* @this = &this) { - ImGui.IncludeRangeByIndicesNative(@this, itemBegin, itemEnd); + ImGui.IncludeItemsByIndexNative(@this, itemBegin, itemEnd); } } - /// /// Call until it returns false. The DisplayStartDisplayEnd fields will be set and you can processdraw those items. /// [NativeName(NativeNameType.Func, "ImGuiListClipper_Step")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool Step() { fixed (ImGuiListClipper* @this = &this) @@ -24021,77 +27746,75 @@ public unsafe bool Step() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiListClipperRange")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiListClipperRange { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiListClipperRange*")] public unsafe ImGuiListClipperRange* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiListClipperRange(int size = default, int capacity = default, ImGuiListClipperRange* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiListClipperRange")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiListClipperRange { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Min")] - [NativeName(NativeNameType.Type, "int")] public int Min; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Max")] - [NativeName(NativeNameType.Type, "int")] public int Max; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PosToIndexConvert")] - [NativeName(NativeNameType.Type, "bool")] public byte PosToIndexConvert; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PosToIndexOffsetMin")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte PosToIndexOffsetMin; + public byte PosToIndexOffsetMin; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PosToIndexOffsetMax")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte PosToIndexOffsetMax; + public byte PosToIndexOffsetMax; + + /// /// To be documented. /// public unsafe ImGuiListClipperRange(int min = default, int max = default, bool posToIndexConvert = default, byte posToIndexOffsetMin = default, byte posToIndexOffsetMax = default) + { + Min = min; + Max = max; + PosToIndexConvert = posToIndexConvert ? (byte)1 : (byte)0; + PosToIndexOffsetMin = posToIndexOffsetMin; + PosToIndexOffsetMax = posToIndexOffsetMax; + } } @@ -24099,1401 +27822,1385 @@ public partial struct ImGuiListClipperRange /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTable")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTable { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiTableFlags")] - public ImGuiTableFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RawData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* RawData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TempData")] - [NativeName(NativeNameType.Type, "ImGuiTableTempData*")] public unsafe ImGuiTableTempData* TempData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Columns")] - [NativeName(NativeNameType.Type, "ImSpan_ImGuiTableColumn")] public ImSpanImGuiTableColumn Columns; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplayOrderToIndex")] - [NativeName(NativeNameType.Type, "ImSpan_ImGuiTableColumnIdx")] public ImSpanImGuiTableColumnIdx DisplayOrderToIndex; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RowCellData")] - [NativeName(NativeNameType.Type, "ImSpan_ImGuiTableCellData")] public ImSpanImGuiTableCellData RowCellData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EnabledMaskByDisplayOrder")] - [NativeName(NativeNameType.Type, "ImBitArrayPtr")] public ImBitArrayPtr EnabledMaskByDisplayOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EnabledMaskByIndex")] - [NativeName(NativeNameType.Type, "ImBitArrayPtr")] public ImBitArrayPtr EnabledMaskByIndex; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "VisibleMaskByIndex")] - [NativeName(NativeNameType.Type, "ImBitArrayPtr")] public ImBitArrayPtr VisibleMaskByIndex; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SettingsLoadedFlags")] - [NativeName(NativeNameType.Type, "ImGuiTableFlags")] - public ImGuiTableFlags SettingsLoadedFlags; + public int SettingsLoadedFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SettingsOffset")] - [NativeName(NativeNameType.Type, "int")] public int SettingsOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFrameActive")] - [NativeName(NativeNameType.Type, "int")] public int LastFrameActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsCount")] - [NativeName(NativeNameType.Type, "int")] public int ColumnsCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentRow")] - [NativeName(NativeNameType.Type, "int")] public int CurrentRow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurrentColumn")] - [NativeName(NativeNameType.Type, "int")] public int CurrentColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InstanceCurrent")] - [NativeName(NativeNameType.Type, "ImS16")] public short InstanceCurrent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InstanceInteracted")] - [NativeName(NativeNameType.Type, "ImS16")] public short InstanceInteracted; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RowPosY1")] - [NativeName(NativeNameType.Type, "float")] public float RowPosY1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RowPosY2")] - [NativeName(NativeNameType.Type, "float")] public float RowPosY2; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RowMinHeight")] - [NativeName(NativeNameType.Type, "float")] public float RowMinHeight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RowTextBaseline")] - [NativeName(NativeNameType.Type, "float")] + public float RowCellPaddingY; + + /// + /// To be documented. + /// public float RowTextBaseline; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RowIndentOffsetX")] - [NativeName(NativeNameType.Type, "float")] public float RowIndentOffsetX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RowFlags")] - [NativeName(NativeNameType.Type, "ImGuiTableRowFlags")] - public ImGuiTableRowFlags RowFlags; + public int RowFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastRowFlags")] - [NativeName(NativeNameType.Type, "ImGuiTableRowFlags")] - public ImGuiTableRowFlags LastRowFlags; + public int LastRowFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RowBgColorCounter")] - [NativeName(NativeNameType.Type, "int")] public int RowBgColorCounter; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RowBgColor")] - [NativeName(NativeNameType.Type, "ImU32[2]")] public uint RowBgColor_0; public uint RowBgColor_1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BorderColorStrong")] - [NativeName(NativeNameType.Type, "ImU32")] public uint BorderColorStrong; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BorderColorLight")] - [NativeName(NativeNameType.Type, "ImU32")] public uint BorderColorLight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BorderX1")] - [NativeName(NativeNameType.Type, "float")] public float BorderX1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BorderX2")] - [NativeName(NativeNameType.Type, "float")] public float BorderX2; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostIndentX")] - [NativeName(NativeNameType.Type, "float")] public float HostIndentX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MinColumnWidth")] - [NativeName(NativeNameType.Type, "float")] public float MinColumnWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OuterPaddingX")] - [NativeName(NativeNameType.Type, "float")] public float OuterPaddingX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CellPaddingX")] - [NativeName(NativeNameType.Type, "float")] public float CellPaddingX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CellPaddingY")] - [NativeName(NativeNameType.Type, "float")] - public float CellPaddingY; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "CellSpacingX1")] - [NativeName(NativeNameType.Type, "float")] public float CellSpacingX1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CellSpacingX2")] - [NativeName(NativeNameType.Type, "float")] public float CellSpacingX2; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InnerWidth")] - [NativeName(NativeNameType.Type, "float")] public float InnerWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsGivenWidth")] - [NativeName(NativeNameType.Type, "float")] public float ColumnsGivenWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsAutoFitWidth")] - [NativeName(NativeNameType.Type, "float")] public float ColumnsAutoFitWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsStretchSumWeights")] - [NativeName(NativeNameType.Type, "float")] public float ColumnsStretchSumWeights; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ResizedColumnNextWidth")] - [NativeName(NativeNameType.Type, "float")] public float ResizedColumnNextWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ResizeLockMinContentsX2")] - [NativeName(NativeNameType.Type, "float")] public float ResizeLockMinContentsX2; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RefScale")] - [NativeName(NativeNameType.Type, "float")] public float RefScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OuterRect")] - [NativeName(NativeNameType.Type, "ImRect")] + public float AngledHeadersHeight; + + /// + /// To be documented. + /// + public float AngledHeadersSlope; + + /// + /// To be documented. + /// public ImRect OuterRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InnerRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect InnerRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WorkRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect WorkRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InnerClipRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect InnerClipRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BgClipRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect BgClipRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Bg0ClipRectForDrawCmd")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect Bg0ClipRectForDrawCmd; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Bg2ClipRectForDrawCmd")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect Bg2ClipRectForDrawCmd; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostClipRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect HostClipRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostBackupInnerClipRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect HostBackupInnerClipRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "OuterWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* OuterWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InnerWindow")] - [NativeName(NativeNameType.Type, "ImGuiWindow*")] public unsafe ImGuiWindow* InnerWindow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsNames")] - [NativeName(NativeNameType.Type, "ImGuiTextBuffer")] public ImGuiTextBuffer ColumnsNames; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawSplitter")] - [NativeName(NativeNameType.Type, "ImDrawListSplitter*")] public unsafe ImDrawListSplitter* DrawSplitter; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InstanceDataFirst")] - [NativeName(NativeNameType.Type, "ImGuiTableInstanceData")] public ImGuiTableInstanceData InstanceDataFirst; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InstanceDataExtra")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiTableInstanceData")] public ImVectorImGuiTableInstanceData InstanceDataExtra; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortSpecsSingle")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnSortSpecs")] public ImGuiTableColumnSortSpecs SortSpecsSingle; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortSpecsMulti")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiTableColumnSortSpecs")] public ImVectorImGuiTableColumnSortSpecs SortSpecsMulti; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortSpecs")] - [NativeName(NativeNameType.Type, "ImGuiTableSortSpecs")] public ImGuiTableSortSpecs SortSpecs; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortSpecsCount")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte SortSpecsCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsEnabledCount")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte ColumnsEnabledCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsEnabledFixedCount")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte ColumnsEnabledFixedCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DeclColumnsCount")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte DeclColumnsCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoveredColumnBody")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] + public sbyte AngledHeadersCount; + + /// + /// To be documented. + /// public sbyte HoveredColumnBody; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HoveredColumnBorder")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte HoveredColumnBorder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AutoFitSingleColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] + public sbyte HighlightColumnHeader; + + /// + /// To be documented. + /// public sbyte AutoFitSingleColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ResizedColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte ResizedColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastResizedColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte LastResizedColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HeldHeaderColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte HeldHeaderColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ReorderColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte ReorderColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ReorderColumnDir")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte ReorderColumnDir; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LeftMostEnabledColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte LeftMostEnabledColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RightMostEnabledColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte RightMostEnabledColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LeftMostStretchedColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte LeftMostStretchedColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RightMostStretchedColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte RightMostStretchedColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContextPopupColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte ContextPopupColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FreezeRowsRequest")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte FreezeRowsRequest; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FreezeRowsCount")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte FreezeRowsCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FreezeColumnsRequest")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte FreezeColumnsRequest; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FreezeColumnsCount")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte FreezeColumnsCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RowCellDataCurrent")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte RowCellDataCurrent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DummyDrawChannel")] - [NativeName(NativeNameType.Type, "ImGuiTableDrawChannelIdx")] public byte DummyDrawChannel; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Bg2DrawChannelCurrent")] - [NativeName(NativeNameType.Type, "ImGuiTableDrawChannelIdx")] public byte Bg2DrawChannelCurrent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Bg2DrawChannelUnfrozen")] - [NativeName(NativeNameType.Type, "ImGuiTableDrawChannelIdx")] public byte Bg2DrawChannelUnfrozen; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsLayoutLocked")] - [NativeName(NativeNameType.Type, "bool")] public byte IsLayoutLocked; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsInsideRow")] - [NativeName(NativeNameType.Type, "bool")] public byte IsInsideRow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsInitializing")] - [NativeName(NativeNameType.Type, "bool")] public byte IsInitializing; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsSortSpecsDirty")] - [NativeName(NativeNameType.Type, "bool")] public byte IsSortSpecsDirty; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsUsingHeaders")] - [NativeName(NativeNameType.Type, "bool")] public byte IsUsingHeaders; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsContextPopupOpen")] - [NativeName(NativeNameType.Type, "bool")] public byte IsContextPopupOpen; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsSettingsRequestLoad")] - [NativeName(NativeNameType.Type, "bool")] public byte IsSettingsRequestLoad; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsSettingsDirty")] - [NativeName(NativeNameType.Type, "bool")] public byte IsSettingsDirty; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsDefaultDisplayOrder")] - [NativeName(NativeNameType.Type, "bool")] public byte IsDefaultDisplayOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsResetAllRequest")] - [NativeName(NativeNameType.Type, "bool")] public byte IsResetAllRequest; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsResetDisplayOrderRequest")] - [NativeName(NativeNameType.Type, "bool")] - public byte IsResetDisplayOrderRequest; + public byte IsResetDisplayOrderRequest; + + /// + /// To be documented. + /// + public byte IsUnfrozenRows; + + /// + /// To be documented. + /// + public byte IsDefaultSizingPolicy; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsUnfrozenRows")] - [NativeName(NativeNameType.Type, "bool")] - public byte IsUnfrozenRows; + public byte IsActiveIdAliveBeforeTable; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsDefaultSizingPolicy")] - [NativeName(NativeNameType.Type, "bool")] - public byte IsDefaultSizingPolicy; + public byte IsActiveIdInTable; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HasScrollbarYCurr")] - [NativeName(NativeNameType.Type, "bool")] public byte HasScrollbarYCurr; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HasScrollbarYPrev")] - [NativeName(NativeNameType.Type, "bool")] public byte HasScrollbarYPrev; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MemoryCompacted")] - [NativeName(NativeNameType.Type, "bool")] public byte MemoryCompacted; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostSkipItems")] - [NativeName(NativeNameType.Type, "bool")] public byte HostSkipItems; + /// /// To be documented. /// public unsafe ImGuiTable(uint id = default, int flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, ImBitArrayPtr enabledMaskByDisplayOrder = default, ImBitArrayPtr enabledMaskByIndex = default, ImBitArrayPtr visibleMaskByIndex = default, int settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowCellPaddingY = default, float rowTextBaseline = default, float rowIndentOffsetX = default, int rowFlags = default, int lastRowFlags = default, int rowBgColorCounter = default, uint* rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, float angledHeadersHeight = default, float angledHeadersSlope = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindow* outerWindow = default, ImGuiWindow* innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitter* drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVectorImGuiTableInstanceData instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVectorImGuiTableColumnSortSpecs sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, sbyte sortSpecsCount = default, sbyte columnsEnabledCount = default, sbyte columnsEnabledFixedCount = default, sbyte declColumnsCount = default, sbyte angledHeadersCount = default, sbyte hoveredColumnBody = default, sbyte hoveredColumnBorder = default, sbyte highlightColumnHeader = default, sbyte autoFitSingleColumn = default, sbyte resizedColumn = default, sbyte lastResizedColumn = default, sbyte heldHeaderColumn = default, sbyte reorderColumn = default, sbyte reorderColumnDir = default, sbyte leftMostEnabledColumn = default, sbyte rightMostEnabledColumn = default, sbyte leftMostStretchedColumn = default, sbyte rightMostStretchedColumn = default, sbyte contextPopupColumn = default, sbyte freezeRowsRequest = default, sbyte freezeRowsCount = default, sbyte freezeColumnsRequest = default, sbyte freezeColumnsCount = default, sbyte rowCellDataCurrent = default, byte dummyDrawChannel = default, byte bg2DrawChannelCurrent = default, byte bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool isActiveIdAliveBeforeTable = default, bool isActiveIdInTable = default, bool hasScrollbarYCurr = default, bool hasScrollbarYPrev = default, bool memoryCompacted = default, bool hostSkipItems = default) + { + ID = id; + Flags = flags; + RawData = rawData; + TempData = tempData; + Columns = columns; + DisplayOrderToIndex = displayOrderToIndex; + RowCellData = rowCellData; + EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; + EnabledMaskByIndex = enabledMaskByIndex; + VisibleMaskByIndex = visibleMaskByIndex; + SettingsLoadedFlags = settingsLoadedFlags; + SettingsOffset = settingsOffset; + LastFrameActive = lastFrameActive; + ColumnsCount = columnsCount; + CurrentRow = currentRow; + CurrentColumn = currentColumn; + InstanceCurrent = instanceCurrent; + InstanceInteracted = instanceInteracted; + RowPosY1 = rowPosY1; + RowPosY2 = rowPosY2; + RowMinHeight = rowMinHeight; + RowCellPaddingY = rowCellPaddingY; + RowTextBaseline = rowTextBaseline; + RowIndentOffsetX = rowIndentOffsetX; + RowFlags = rowFlags; + LastRowFlags = lastRowFlags; + RowBgColorCounter = rowBgColorCounter; + if (rowBgColor != default) + { + RowBgColor_0 = rowBgColor[0]; + RowBgColor_1 = rowBgColor[1]; + } + BorderColorStrong = borderColorStrong; + BorderColorLight = borderColorLight; + BorderX1 = borderX1; + BorderX2 = borderX2; + HostIndentX = hostIndentX; + MinColumnWidth = minColumnWidth; + OuterPaddingX = outerPaddingX; + CellPaddingX = cellPaddingX; + CellSpacingX1 = cellSpacingX1; + CellSpacingX2 = cellSpacingX2; + InnerWidth = innerWidth; + ColumnsGivenWidth = columnsGivenWidth; + ColumnsAutoFitWidth = columnsAutoFitWidth; + ColumnsStretchSumWeights = columnsStretchSumWeights; + ResizedColumnNextWidth = resizedColumnNextWidth; + ResizeLockMinContentsX2 = resizeLockMinContentsX2; + RefScale = refScale; + AngledHeadersHeight = angledHeadersHeight; + AngledHeadersSlope = angledHeadersSlope; + OuterRect = outerRect; + InnerRect = innerRect; + WorkRect = workRect; + InnerClipRect = innerClipRect; + BgClipRect = bgClipRect; + Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; + Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; + HostClipRect = hostClipRect; + HostBackupInnerClipRect = hostBackupInnerClipRect; + OuterWindow = outerWindow; + InnerWindow = innerWindow; + ColumnsNames = columnsNames; + DrawSplitter = drawSplitter; + InstanceDataFirst = instanceDataFirst; + InstanceDataExtra = instanceDataExtra; + SortSpecsSingle = sortSpecsSingle; + SortSpecsMulti = sortSpecsMulti; + SortSpecs = sortSpecs; + SortSpecsCount = sortSpecsCount; + ColumnsEnabledCount = columnsEnabledCount; + ColumnsEnabledFixedCount = columnsEnabledFixedCount; + DeclColumnsCount = declColumnsCount; + AngledHeadersCount = angledHeadersCount; + HoveredColumnBody = hoveredColumnBody; + HoveredColumnBorder = hoveredColumnBorder; + HighlightColumnHeader = highlightColumnHeader; + AutoFitSingleColumn = autoFitSingleColumn; + ResizedColumn = resizedColumn; + LastResizedColumn = lastResizedColumn; + HeldHeaderColumn = heldHeaderColumn; + ReorderColumn = reorderColumn; + ReorderColumnDir = reorderColumnDir; + LeftMostEnabledColumn = leftMostEnabledColumn; + RightMostEnabledColumn = rightMostEnabledColumn; + LeftMostStretchedColumn = leftMostStretchedColumn; + RightMostStretchedColumn = rightMostStretchedColumn; + ContextPopupColumn = contextPopupColumn; + FreezeRowsRequest = freezeRowsRequest; + FreezeRowsCount = freezeRowsCount; + FreezeColumnsRequest = freezeColumnsRequest; + FreezeColumnsCount = freezeColumnsCount; + RowCellDataCurrent = rowCellDataCurrent; + DummyDrawChannel = dummyDrawChannel; + Bg2DrawChannelCurrent = bg2DrawChannelCurrent; + Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; + IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; + IsInsideRow = isInsideRow ? (byte)1 : (byte)0; + IsInitializing = isInitializing ? (byte)1 : (byte)0; + IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; + IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; + IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; + IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; + IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; + IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; + IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; + IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; + IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; + IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; + IsActiveIdAliveBeforeTable = isActiveIdAliveBeforeTable ? (byte)1 : (byte)0; + IsActiveIdInTable = isActiveIdInTable ? (byte)1 : (byte)0; + HasScrollbarYCurr = hasScrollbarYCurr ? (byte)1 : (byte)0; + HasScrollbarYPrev = hasScrollbarYPrev ? (byte)1 : (byte)0; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; + } + + /// /// To be documented. /// public unsafe ImGuiTable(uint id = default, int flags = default, void* rawData = default, ImGuiTableTempData* tempData = default, ImSpanImGuiTableColumn columns = default, ImSpanImGuiTableColumnIdx displayOrderToIndex = default, ImSpanImGuiTableCellData rowCellData = default, ImBitArrayPtr enabledMaskByDisplayOrder = default, ImBitArrayPtr enabledMaskByIndex = default, ImBitArrayPtr visibleMaskByIndex = default, int settingsLoadedFlags = default, int settingsOffset = default, int lastFrameActive = default, int columnsCount = default, int currentRow = default, int currentColumn = default, short instanceCurrent = default, short instanceInteracted = default, float rowPosY1 = default, float rowPosY2 = default, float rowMinHeight = default, float rowCellPaddingY = default, float rowTextBaseline = default, float rowIndentOffsetX = default, int rowFlags = default, int lastRowFlags = default, int rowBgColorCounter = default, Span rowBgColor = default, uint borderColorStrong = default, uint borderColorLight = default, float borderX1 = default, float borderX2 = default, float hostIndentX = default, float minColumnWidth = default, float outerPaddingX = default, float cellPaddingX = default, float cellSpacingX1 = default, float cellSpacingX2 = default, float innerWidth = default, float columnsGivenWidth = default, float columnsAutoFitWidth = default, float columnsStretchSumWeights = default, float resizedColumnNextWidth = default, float resizeLockMinContentsX2 = default, float refScale = default, float angledHeadersHeight = default, float angledHeadersSlope = default, ImRect outerRect = default, ImRect innerRect = default, ImRect workRect = default, ImRect innerClipRect = default, ImRect bgClipRect = default, ImRect bg0ClipRectForDrawCmd = default, ImRect bg2ClipRectForDrawCmd = default, ImRect hostClipRect = default, ImRect hostBackupInnerClipRect = default, ImGuiWindow* outerWindow = default, ImGuiWindow* innerWindow = default, ImGuiTextBuffer columnsNames = default, ImDrawListSplitter* drawSplitter = default, ImGuiTableInstanceData instanceDataFirst = default, ImVectorImGuiTableInstanceData instanceDataExtra = default, ImGuiTableColumnSortSpecs sortSpecsSingle = default, ImVectorImGuiTableColumnSortSpecs sortSpecsMulti = default, ImGuiTableSortSpecs sortSpecs = default, sbyte sortSpecsCount = default, sbyte columnsEnabledCount = default, sbyte columnsEnabledFixedCount = default, sbyte declColumnsCount = default, sbyte angledHeadersCount = default, sbyte hoveredColumnBody = default, sbyte hoveredColumnBorder = default, sbyte highlightColumnHeader = default, sbyte autoFitSingleColumn = default, sbyte resizedColumn = default, sbyte lastResizedColumn = default, sbyte heldHeaderColumn = default, sbyte reorderColumn = default, sbyte reorderColumnDir = default, sbyte leftMostEnabledColumn = default, sbyte rightMostEnabledColumn = default, sbyte leftMostStretchedColumn = default, sbyte rightMostStretchedColumn = default, sbyte contextPopupColumn = default, sbyte freezeRowsRequest = default, sbyte freezeRowsCount = default, sbyte freezeColumnsRequest = default, sbyte freezeColumnsCount = default, sbyte rowCellDataCurrent = default, byte dummyDrawChannel = default, byte bg2DrawChannelCurrent = default, byte bg2DrawChannelUnfrozen = default, bool isLayoutLocked = default, bool isInsideRow = default, bool isInitializing = default, bool isSortSpecsDirty = default, bool isUsingHeaders = default, bool isContextPopupOpen = default, bool isSettingsRequestLoad = default, bool isSettingsDirty = default, bool isDefaultDisplayOrder = default, bool isResetAllRequest = default, bool isResetDisplayOrderRequest = default, bool isUnfrozenRows = default, bool isDefaultSizingPolicy = default, bool isActiveIdAliveBeforeTable = default, bool isActiveIdInTable = default, bool hasScrollbarYCurr = default, bool hasScrollbarYPrev = default, bool memoryCompacted = default, bool hostSkipItems = default) + { + ID = id; + Flags = flags; + RawData = rawData; + TempData = tempData; + Columns = columns; + DisplayOrderToIndex = displayOrderToIndex; + RowCellData = rowCellData; + EnabledMaskByDisplayOrder = enabledMaskByDisplayOrder; + EnabledMaskByIndex = enabledMaskByIndex; + VisibleMaskByIndex = visibleMaskByIndex; + SettingsLoadedFlags = settingsLoadedFlags; + SettingsOffset = settingsOffset; + LastFrameActive = lastFrameActive; + ColumnsCount = columnsCount; + CurrentRow = currentRow; + CurrentColumn = currentColumn; + InstanceCurrent = instanceCurrent; + InstanceInteracted = instanceInteracted; + RowPosY1 = rowPosY1; + RowPosY2 = rowPosY2; + RowMinHeight = rowMinHeight; + RowCellPaddingY = rowCellPaddingY; + RowTextBaseline = rowTextBaseline; + RowIndentOffsetX = rowIndentOffsetX; + RowFlags = rowFlags; + LastRowFlags = lastRowFlags; + RowBgColorCounter = rowBgColorCounter; + if (rowBgColor != default) + { + RowBgColor_0 = rowBgColor[0]; + RowBgColor_1 = rowBgColor[1]; + } + BorderColorStrong = borderColorStrong; + BorderColorLight = borderColorLight; + BorderX1 = borderX1; + BorderX2 = borderX2; + HostIndentX = hostIndentX; + MinColumnWidth = minColumnWidth; + OuterPaddingX = outerPaddingX; + CellPaddingX = cellPaddingX; + CellSpacingX1 = cellSpacingX1; + CellSpacingX2 = cellSpacingX2; + InnerWidth = innerWidth; + ColumnsGivenWidth = columnsGivenWidth; + ColumnsAutoFitWidth = columnsAutoFitWidth; + ColumnsStretchSumWeights = columnsStretchSumWeights; + ResizedColumnNextWidth = resizedColumnNextWidth; + ResizeLockMinContentsX2 = resizeLockMinContentsX2; + RefScale = refScale; + AngledHeadersHeight = angledHeadersHeight; + AngledHeadersSlope = angledHeadersSlope; + OuterRect = outerRect; + InnerRect = innerRect; + WorkRect = workRect; + InnerClipRect = innerClipRect; + BgClipRect = bgClipRect; + Bg0ClipRectForDrawCmd = bg0ClipRectForDrawCmd; + Bg2ClipRectForDrawCmd = bg2ClipRectForDrawCmd; + HostClipRect = hostClipRect; + HostBackupInnerClipRect = hostBackupInnerClipRect; + OuterWindow = outerWindow; + InnerWindow = innerWindow; + ColumnsNames = columnsNames; + DrawSplitter = drawSplitter; + InstanceDataFirst = instanceDataFirst; + InstanceDataExtra = instanceDataExtra; + SortSpecsSingle = sortSpecsSingle; + SortSpecsMulti = sortSpecsMulti; + SortSpecs = sortSpecs; + SortSpecsCount = sortSpecsCount; + ColumnsEnabledCount = columnsEnabledCount; + ColumnsEnabledFixedCount = columnsEnabledFixedCount; + DeclColumnsCount = declColumnsCount; + AngledHeadersCount = angledHeadersCount; + HoveredColumnBody = hoveredColumnBody; + HoveredColumnBorder = hoveredColumnBorder; + HighlightColumnHeader = highlightColumnHeader; + AutoFitSingleColumn = autoFitSingleColumn; + ResizedColumn = resizedColumn; + LastResizedColumn = lastResizedColumn; + HeldHeaderColumn = heldHeaderColumn; + ReorderColumn = reorderColumn; + ReorderColumnDir = reorderColumnDir; + LeftMostEnabledColumn = leftMostEnabledColumn; + RightMostEnabledColumn = rightMostEnabledColumn; + LeftMostStretchedColumn = leftMostStretchedColumn; + RightMostStretchedColumn = rightMostStretchedColumn; + ContextPopupColumn = contextPopupColumn; + FreezeRowsRequest = freezeRowsRequest; + FreezeRowsCount = freezeRowsCount; + FreezeColumnsRequest = freezeColumnsRequest; + FreezeColumnsCount = freezeColumnsCount; + RowCellDataCurrent = rowCellDataCurrent; + DummyDrawChannel = dummyDrawChannel; + Bg2DrawChannelCurrent = bg2DrawChannelCurrent; + Bg2DrawChannelUnfrozen = bg2DrawChannelUnfrozen; + IsLayoutLocked = isLayoutLocked ? (byte)1 : (byte)0; + IsInsideRow = isInsideRow ? (byte)1 : (byte)0; + IsInitializing = isInitializing ? (byte)1 : (byte)0; + IsSortSpecsDirty = isSortSpecsDirty ? (byte)1 : (byte)0; + IsUsingHeaders = isUsingHeaders ? (byte)1 : (byte)0; + IsContextPopupOpen = isContextPopupOpen ? (byte)1 : (byte)0; + IsSettingsRequestLoad = isSettingsRequestLoad ? (byte)1 : (byte)0; + IsSettingsDirty = isSettingsDirty ? (byte)1 : (byte)0; + IsDefaultDisplayOrder = isDefaultDisplayOrder ? (byte)1 : (byte)0; + IsResetAllRequest = isResetAllRequest ? (byte)1 : (byte)0; + IsResetDisplayOrderRequest = isResetDisplayOrderRequest ? (byte)1 : (byte)0; + IsUnfrozenRows = isUnfrozenRows ? (byte)1 : (byte)0; + IsDefaultSizingPolicy = isDefaultSizingPolicy ? (byte)1 : (byte)0; + IsActiveIdAliveBeforeTable = isActiveIdAliveBeforeTable ? (byte)1 : (byte)0; + IsActiveIdInTable = isActiveIdInTable ? (byte)1 : (byte)0; + HasScrollbarYCurr = hasScrollbarYCurr ? (byte)1 : (byte)0; + HasScrollbarYPrev = hasScrollbarYPrev ? (byte)1 : (byte)0; + MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0; + HostSkipItems = hostSkipItems ? (byte)1 : (byte)0; + } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiTable_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiTable* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTableTempData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableTempData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TableIndex")] - [NativeName(NativeNameType.Type, "int")] public int TableIndex; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastTimeActive")] - [NativeName(NativeNameType.Type, "float")] public float LastTimeActive; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "UserOuterSize")] - [NativeName(NativeNameType.Type, "ImVec2")] + public float AngledheadersExtraWidth; + + /// + /// To be documented. + /// public Vector2 UserOuterSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawSplitter")] - [NativeName(NativeNameType.Type, "ImDrawListSplitter")] public ImDrawListSplitter DrawSplitter; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostBackupWorkRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect HostBackupWorkRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostBackupParentWorkRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect HostBackupParentWorkRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostBackupPrevLineSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 HostBackupPrevLineSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostBackupCurrLineSize")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 HostBackupCurrLineSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostBackupCursorMaxPos")] - [NativeName(NativeNameType.Type, "ImVec2")] public Vector2 HostBackupCursorMaxPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostBackupColumnsOffset")] - [NativeName(NativeNameType.Type, "ImVec1")] public ImVec1 HostBackupColumnsOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostBackupItemWidth")] - [NativeName(NativeNameType.Type, "float")] public float HostBackupItemWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HostBackupItemWidthStackSize")] - [NativeName(NativeNameType.Type, "int")] public int HostBackupItemWidthStackSize; - - - [NativeName(NativeNameType.Func, "ImGuiTableTempData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiTableTempData(int tableIndex = default, float lastTimeActive = default, float angledheadersExtraWidth = default, Vector2 userOuterSize = default, ImDrawListSplitter drawSplitter = default, ImRect hostBackupWorkRect = default, ImRect hostBackupParentWorkRect = default, Vector2 hostBackupPrevLineSize = default, Vector2 hostBackupCurrLineSize = default, Vector2 hostBackupCursorMaxPos = default, ImVec1 hostBackupColumnsOffset = default, float hostBackupItemWidth = default, int hostBackupItemWidthStackSize = default) { - fixed (ImGuiTableTempData* @this = &this) - { - ImGui.DestroyNative(@this); - } + TableIndex = tableIndex; + LastTimeActive = lastTimeActive; + AngledheadersExtraWidth = angledheadersExtraWidth; + UserOuterSize = userOuterSize; + DrawSplitter = drawSplitter; + HostBackupWorkRect = hostBackupWorkRect; + HostBackupParentWorkRect = hostBackupParentWorkRect; + HostBackupPrevLineSize = hostBackupPrevLineSize; + HostBackupCurrLineSize = hostBackupCurrLineSize; + HostBackupCursorMaxPos = hostBackupCursorMaxPos; + HostBackupColumnsOffset = hostBackupColumnsOffset; + HostBackupItemWidth = hostBackupItemWidth; + HostBackupItemWidthStackSize = hostBackupItemWidthStackSize; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImSpan_ImGuiTableColumn")] [StructLayout(LayoutKind.Sequential)] public partial struct ImSpanImGuiTableColumn { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] public unsafe ImGuiTableColumn* Data; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DataEnd")] - [NativeName(NativeNameType.Type, "ImGuiTableColumn*")] public unsafe ImGuiTableColumn* DataEnd; + /// /// To be documented. /// public unsafe ImSpanImGuiTableColumn(ImGuiTableColumn* data = default, ImGuiTableColumn* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTableColumn")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableColumn { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnFlags")] - public ImGuiTableColumnFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WidthGiven")] - [NativeName(NativeNameType.Type, "float")] public float WidthGiven; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MinX")] - [NativeName(NativeNameType.Type, "float")] public float MinX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "MaxX")] - [NativeName(NativeNameType.Type, "float")] public float MaxX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WidthRequest")] - [NativeName(NativeNameType.Type, "float")] public float WidthRequest; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WidthAuto")] - [NativeName(NativeNameType.Type, "float")] public float WidthAuto; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "StretchWeight")] - [NativeName(NativeNameType.Type, "float")] public float StretchWeight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InitStretchWeightOrWidth")] - [NativeName(NativeNameType.Type, "float")] public float InitStretchWeightOrWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClipRect")] - [NativeName(NativeNameType.Type, "ImRect")] public ImRect ClipRect; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "UserID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int UserID; + public uint UserID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WorkMinX")] - [NativeName(NativeNameType.Type, "float")] public float WorkMinX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WorkMaxX")] - [NativeName(NativeNameType.Type, "float")] public float WorkMaxX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ItemWidth")] - [NativeName(NativeNameType.Type, "float")] public float ItemWidth; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContentMaxXFrozen")] - [NativeName(NativeNameType.Type, "float")] public float ContentMaxXFrozen; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContentMaxXUnfrozen")] - [NativeName(NativeNameType.Type, "float")] public float ContentMaxXUnfrozen; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContentMaxXHeadersUsed")] - [NativeName(NativeNameType.Type, "float")] public float ContentMaxXHeadersUsed; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ContentMaxXHeadersIdeal")] - [NativeName(NativeNameType.Type, "float")] public float ContentMaxXHeadersIdeal; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NameOffset")] - [NativeName(NativeNameType.Type, "ImS16")] public short NameOffset; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplayOrder")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte DisplayOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IndexWithinEnabledSet")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte IndexWithinEnabledSet; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PrevEnabledColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte PrevEnabledColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NextEnabledColumn")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte NextEnabledColumn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortOrder")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte SortOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawChannelCurrent")] - [NativeName(NativeNameType.Type, "ImGuiTableDrawChannelIdx")] public byte DrawChannelCurrent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawChannelFrozen")] - [NativeName(NativeNameType.Type, "ImGuiTableDrawChannelIdx")] public byte DrawChannelFrozen; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DrawChannelUnfrozen")] - [NativeName(NativeNameType.Type, "ImGuiTableDrawChannelIdx")] public byte DrawChannelUnfrozen; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsEnabled")] - [NativeName(NativeNameType.Type, "bool")] public byte IsEnabled; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsUserEnabled")] - [NativeName(NativeNameType.Type, "bool")] public byte IsUserEnabled; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsUserEnabledNextFrame")] - [NativeName(NativeNameType.Type, "bool")] public byte IsUserEnabledNextFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsVisibleX")] - [NativeName(NativeNameType.Type, "bool")] public byte IsVisibleX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsVisibleY")] - [NativeName(NativeNameType.Type, "bool")] public byte IsVisibleY; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsRequestOutput")] - [NativeName(NativeNameType.Type, "bool")] public byte IsRequestOutput; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsSkipItems")] - [NativeName(NativeNameType.Type, "bool")] public byte IsSkipItems; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsPreserveWidthAuto")] - [NativeName(NativeNameType.Type, "bool")] public byte IsPreserveWidthAuto; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NavLayerCurrent")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte NavLayerCurrent; + public byte NavLayerCurrent; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AutoFitQueue")] - [NativeName(NativeNameType.Type, "ImU8")] public byte AutoFitQueue; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CannotSkipItemsQueue")] - [NativeName(NativeNameType.Type, "ImU8")] public byte CannotSkipItemsQueue; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortDirection")] - [NativeName(NativeNameType.Type, "ImU8")] public byte SortDirection; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortDirectionsAvailCount")] - [NativeName(NativeNameType.Type, "ImU8")] public byte SortDirectionsAvailCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortDirectionsAvailMask")] - [NativeName(NativeNameType.Type, "ImU8")] public byte SortDirectionsAvailMask; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortDirectionsAvailList")] - [NativeName(NativeNameType.Type, "ImU8")] public byte SortDirectionsAvailList; - - - [NativeName(NativeNameType.Func, "ImGuiTableColumn_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiTableColumn* @this = &this) - { - ImGui.DestroyNative(@this); - } + /// /// To be documented. /// public unsafe ImGuiTableColumn(int flags = default, float widthGiven = default, float minX = default, float maxX = default, float widthRequest = default, float widthAuto = default, float stretchWeight = default, float initStretchWeightOrWidth = default, ImRect clipRect = default, uint userId = default, float workMinX = default, float workMaxX = default, float itemWidth = default, float contentMaxXFrozen = default, float contentMaxXUnfrozen = default, float contentMaxXHeadersUsed = default, float contentMaxXHeadersIdeal = default, short nameOffset = default, sbyte displayOrder = default, sbyte indexWithinEnabledSet = default, sbyte prevEnabledColumn = default, sbyte nextEnabledColumn = default, sbyte sortOrder = default, byte drawChannelCurrent = default, byte drawChannelFrozen = default, byte drawChannelUnfrozen = default, bool isEnabled = default, bool isUserEnabled = default, bool isUserEnabledNextFrame = default, bool isVisibleX = default, bool isVisibleY = default, bool isRequestOutput = default, bool isSkipItems = default, bool isPreserveWidthAuto = default, byte navLayerCurrent = default, byte autoFitQueue = default, byte cannotSkipItemsQueue = default, byte sortDirection = default, byte sortDirectionsAvailCount = default, byte sortDirectionsAvailMask = default, byte sortDirectionsAvailList = default) + { + Flags = flags; + WidthGiven = widthGiven; + MinX = minX; + MaxX = maxX; + WidthRequest = widthRequest; + WidthAuto = widthAuto; + StretchWeight = stretchWeight; + InitStretchWeightOrWidth = initStretchWeightOrWidth; + ClipRect = clipRect; + UserID = userId; + WorkMinX = workMinX; + WorkMaxX = workMaxX; + ItemWidth = itemWidth; + ContentMaxXFrozen = contentMaxXFrozen; + ContentMaxXUnfrozen = contentMaxXUnfrozen; + ContentMaxXHeadersUsed = contentMaxXHeadersUsed; + ContentMaxXHeadersIdeal = contentMaxXHeadersIdeal; + NameOffset = nameOffset; + DisplayOrder = displayOrder; + IndexWithinEnabledSet = indexWithinEnabledSet; + PrevEnabledColumn = prevEnabledColumn; + NextEnabledColumn = nextEnabledColumn; + SortOrder = sortOrder; + DrawChannelCurrent = drawChannelCurrent; + DrawChannelFrozen = drawChannelFrozen; + DrawChannelUnfrozen = drawChannelUnfrozen; + IsEnabled = isEnabled ? (byte)1 : (byte)0; + IsUserEnabled = isUserEnabled ? (byte)1 : (byte)0; + IsUserEnabledNextFrame = isUserEnabledNextFrame ? (byte)1 : (byte)0; + IsVisibleX = isVisibleX ? (byte)1 : (byte)0; + IsVisibleY = isVisibleY ? (byte)1 : (byte)0; + IsRequestOutput = isRequestOutput ? (byte)1 : (byte)0; + IsSkipItems = isSkipItems ? (byte)1 : (byte)0; + IsPreserveWidthAuto = isPreserveWidthAuto ? (byte)1 : (byte)0; + NavLayerCurrent = navLayerCurrent; + AutoFitQueue = autoFitQueue; + CannotSkipItemsQueue = cannotSkipItemsQueue; + SortDirection = sortDirection; + SortDirectionsAvailCount = sortDirectionsAvailCount; + SortDirectionsAvailMask = sortDirectionsAvailMask; + SortDirectionsAvailList = sortDirectionsAvailList; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImSpan_ImGuiTableColumnIdx")] [StructLayout(LayoutKind.Sequential)] public partial struct ImSpanImGuiTableColumnIdx { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx*")] public unsafe sbyte* Data; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DataEnd")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx*")] public unsafe sbyte* DataEnd; + /// /// To be documented. /// public unsafe ImSpanImGuiTableColumnIdx(sbyte* data = default, sbyte* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImSpan_ImGuiTableCellData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImSpanImGuiTableCellData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiTableCellData*")] public unsafe ImGuiTableCellData* Data; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DataEnd")] - [NativeName(NativeNameType.Type, "ImGuiTableCellData*")] public unsafe ImGuiTableCellData* DataEnd; + /// /// To be documented. /// public unsafe ImSpanImGuiTableCellData(ImGuiTableCellData* data = default, ImGuiTableCellData* dataEnd = default) + { + Data = data; + DataEnd = dataEnd; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTableCellData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableCellData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BgColor")] - [NativeName(NativeNameType.Type, "ImU32")] public uint BgColor; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Column")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte Column; + /// /// To be documented. /// public unsafe ImGuiTableCellData(uint bgColor = default, sbyte column = default) + { + BgColor = bgColor; + Column = column; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTableInstanceData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableInstanceData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TableInstanceID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int TableInstanceID; + public uint TableInstanceID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastOuterHeight")] - [NativeName(NativeNameType.Type, "float")] public float LastOuterHeight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFirstRowHeight")] - [NativeName(NativeNameType.Type, "float")] - public float LastFirstRowHeight; + public float LastTopHeadersRowHeight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastFrozenHeight")] - [NativeName(NativeNameType.Type, "float")] public float LastFrozenHeight; + /// + /// To be documented. + /// + public int HoveredRowLast; + /// + /// To be documented. + /// + public int HoveredRowNext; - [NativeName(NativeNameType.Func, "ImGuiTableInstanceData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiTableInstanceData(uint tableInstanceId = default, float lastOuterHeight = default, float lastTopHeadersRowHeight = default, float lastFrozenHeight = default, int hoveredRowLast = default, int hoveredRowNext = default) { - fixed (ImGuiTableInstanceData* @this = &this) - { - ImGui.DestroyNative(@this); - } + TableInstanceID = tableInstanceId; + LastOuterHeight = lastOuterHeight; + LastTopHeadersRowHeight = lastTopHeadersRowHeight; + LastFrozenHeight = lastFrozenHeight; + HoveredRowLast = hoveredRowLast; + HoveredRowNext = hoveredRowNext; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiTableInstanceData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiTableInstanceData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiTableInstanceData*")] public unsafe ImGuiTableInstanceData* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiTableInstanceData(int size = default, int capacity = default, ImGuiTableInstanceData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTableColumnSortSpecs")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableColumnSortSpecs { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnUserID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ColumnUserID; + public uint ColumnUserID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnIndex")] - [NativeName(NativeNameType.Type, "ImS16")] public short ColumnIndex; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortOrder")] - [NativeName(NativeNameType.Type, "ImS16")] public short SortOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortDirection")] - [NativeName(NativeNameType.Type, "ImGuiSortDirection")] - public ImGuiSortDirection SortDirection; + public int SortDirection; + + /// /// To be documented. /// public unsafe ImGuiTableColumnSortSpecs(uint columnUserId = default, short columnIndex = default, short sortOrder = default, int sortDirection = default) + { + ColumnUserID = columnUserId; + ColumnIndex = columnIndex; + SortOrder = sortOrder; + SortDirection = sortDirection; + } - [NativeName(NativeNameType.Func, "ImGuiTableColumnSortSpecs_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiTableColumnSortSpecs* @this = &this) @@ -25507,68 +29214,66 @@ public unsafe void Destroy() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiTableColumnSortSpecs")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiTableColumnSortSpecs { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnSortSpecs*")] public unsafe ImGuiTableColumnSortSpecs* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiTableColumnSortSpecs(int size = default, int capacity = default, ImGuiTableColumnSortSpecs* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTableSortSpecs")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableSortSpecs { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Specs")] - [NativeName(NativeNameType.Type, "const ImGuiTableColumnSortSpecs*")] public unsafe ImGuiTableColumnSortSpecs* Specs; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SpecsCount")] - [NativeName(NativeNameType.Type, "int")] public int SpecsCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SpecsDirty")] - [NativeName(NativeNameType.Type, "bool")] public byte SpecsDirty; + /// /// To be documented. /// public unsafe ImGuiTableSortSpecs(ImGuiTableColumnSortSpecs* specs = default, int specsCount = default, bool specsDirty = default) + { + Specs = specs; + SpecsCount = specsCount; + SpecsDirty = specsDirty ? (byte)1 : (byte)0; + } + - [NativeName(NativeNameType.Func, "ImGuiTableSortSpecs_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiTableSortSpecs* @this = &this) @@ -25582,700 +29287,514 @@ public unsafe void Destroy() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiTableTempData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiTableTempData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiTableTempData*")] public unsafe ImGuiTableTempData* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiTableTempData(int size = default, int capacity = default, ImGuiTableTempData* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImPool_ImGuiTable")] [StructLayout(LayoutKind.Sequential)] public partial struct ImPoolImGuiTable { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Buf")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiTable")] public ImVectorImGuiTable Buf; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Map")] - [NativeName(NativeNameType.Type, "ImGuiStorage")] public ImGuiStorage Map; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FreeIdx")] - [NativeName(NativeNameType.Type, "ImPoolIdx")] public int FreeIdx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AliveCount")] - [NativeName(NativeNameType.Type, "ImPoolIdx")] public int AliveCount; + /// /// To be documented. /// public unsafe ImPoolImGuiTable(ImVectorImGuiTable buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiTable")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiTable { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiTable*")] public unsafe ImGuiTable* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiTable(int size = default, int capacity = default, ImGuiTable* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImPool_ImGuiTabBar")] [StructLayout(LayoutKind.Sequential)] public partial struct ImPoolImGuiTabBar { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Buf")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiTabBar")] public ImVectorImGuiTabBar Buf; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Map")] - [NativeName(NativeNameType.Type, "ImGuiStorage")] public ImGuiStorage Map; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "FreeIdx")] - [NativeName(NativeNameType.Type, "ImPoolIdx")] public int FreeIdx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "AliveCount")] - [NativeName(NativeNameType.Type, "ImPoolIdx")] public int AliveCount; + /// /// To be documented. /// public unsafe ImPoolImGuiTabBar(ImVectorImGuiTabBar buf = default, ImGuiStorage map = default, int freeIdx = default, int aliveCount = default) + { + Buf = buf; + Map = map; + FreeIdx = freeIdx; + AliveCount = aliveCount; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiTabBar")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiTabBar { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiTabBar*")] public unsafe ImGuiTabBar* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiTabBar(int size = default, int capacity = default, ImGuiTabBar* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiPtrOrIndex")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiPtrOrIndex { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiPtrOrIndex*")] public unsafe ImGuiPtrOrIndex* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiPtrOrIndex(int size = default, int capacity = default, ImGuiPtrOrIndex* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiPtrOrIndex")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiPtrOrIndex { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Ptr")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* Ptr; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Index")] - [NativeName(NativeNameType.Type, "int")] public int Index; - - - [NativeName(NativeNameType.Func, "ImGuiPtrOrIndex_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiPtrOrIndex(void* ptr = default, int index = default) { - fixed (ImGuiPtrOrIndex* @this = &this) - { - ImGui.DestroyNative(@this); - } + Ptr = ptr; + Index = index; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiShrinkWidthItem")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiShrinkWidthItem { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiShrinkWidthItem*")] public unsafe ImGuiShrinkWidthItem* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiShrinkWidthItem(int size = default, int capacity = default, ImGuiShrinkWidthItem* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiShrinkWidthItem")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiShrinkWidthItem { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Index")] - [NativeName(NativeNameType.Type, "int")] public int Index; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Width")] - [NativeName(NativeNameType.Type, "float")] public float Width; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InitialWidth")] - [NativeName(NativeNameType.Type, "float")] public float InitialWidth; + /// /// To be documented. /// public unsafe ImGuiShrinkWidthItem(int index = default, float width = default, float initialWidth = default) + { + Index = index; + Width = width; + InitialWidth = initialWidth; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputTextState")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputTextState { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Ctx")] - [NativeName(NativeNameType.Type, "ImGuiContext*")] public unsafe ImGuiContext* Ctx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurLenW")] - [NativeName(NativeNameType.Type, "int")] public int CurLenW; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CurLenA")] - [NativeName(NativeNameType.Type, "int")] public int CurLenA; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TextW")] - [NativeName(NativeNameType.Type, "ImVector_ImWchar")] public ImVectorImWchar TextW; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TextA")] - [NativeName(NativeNameType.Type, "ImVector_char")] public ImVectorChar TextA; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InitialTextA")] - [NativeName(NativeNameType.Type, "ImVector_char")] public ImVectorChar InitialTextA; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TextAIsValid")] - [NativeName(NativeNameType.Type, "bool")] public byte TextAIsValid; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BufCapacityA")] - [NativeName(NativeNameType.Type, "int")] public int BufCapacityA; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScrollX")] - [NativeName(NativeNameType.Type, "float")] public float ScrollX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Stb")] - [NativeName(NativeNameType.Type, "STB_TexteditState")] public STBTexteditState Stb; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CursorAnim")] - [NativeName(NativeNameType.Type, "float")] public float CursorAnim; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CursorFollow")] - [NativeName(NativeNameType.Type, "bool")] public byte CursorFollow; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SelectedAllMouseLock")] - [NativeName(NativeNameType.Type, "bool")] public byte SelectedAllMouseLock; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Edited")] - [NativeName(NativeNameType.Type, "bool")] public byte Edited; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] - public ImGuiInputTextFlags Flags; - - - - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClearFreeMemory() - { - fixed (ImGuiInputTextState* @this = &this) - { - ImGui.ClearFreeMemoryNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearSelection")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClearSelection() - { - fixed (ImGuiInputTextState* @this = &this) - { - ImGui.ClearSelectionNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_ClearText")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClearText() - { - fixed (ImGuiInputTextState* @this = &this) - { - ImGui.ClearTextNative(@this); - } - } - - /// /// After a user-input the cursor stays on for a while without blinking /// [NativeName(NativeNameType.Func, "ImGuiInputTextState_CursorAnimReset")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CursorAnimReset() - { - fixed (ImGuiInputTextState* @this = &this) - { - ImGui.CursorAnimResetNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_CursorClamp")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void CursorClamp() - { - fixed (ImGuiInputTextState* @this = &this) - { - ImGui.CursorClampNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiInputTextState* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetCursorPos")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int GetCursorPos() - { - fixed (ImGuiInputTextState* @this = &this) - { - int ret = ImGui.GetCursorPosNative(@this); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetRedoAvailCount")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int GetRedoAvailCount() - { - fixed (ImGuiInputTextState* @this = &this) - { - int ret = ImGui.GetRedoAvailCountNative(@this); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetSelectionEnd")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int GetSelectionEnd() - { - fixed (ImGuiInputTextState* @this = &this) - { - int ret = ImGui.GetSelectionEndNative(@this); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetSelectionStart")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int GetSelectionStart() - { - fixed (ImGuiInputTextState* @this = &this) - { - int ret = ImGui.GetSelectionStartNative(@this); - return ret; - } - } + public int Flags; - [NativeName(NativeNameType.Func, "ImGuiInputTextState_GetUndoAvailCount")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int GetUndoAvailCount() - { - fixed (ImGuiInputTextState* @this = &this) - { - int ret = ImGui.GetUndoAvailCountNative(@this); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiInputTextState_HasSelection")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool HasSelection() - { - fixed (ImGuiInputTextState* @this = &this) - { - byte ret = ImGui.HasSelectionNative(@this); - return ret != 0; - } - } - /// /// Cannot be inline because we call in code in stb_textedit.h implementation /// [NativeName(NativeNameType.Func, "ImGuiInputTextState_OnKeyPressed")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void OnKeyPressed([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "int")] int key) + /// /// To be documented. /// public unsafe ImGuiInputTextState(ImGuiContext* ctx = default, uint id = default, int curLenW = default, int curLenA = default, ImVectorImWchar textW = default, ImVectorChar textA = default, ImVectorChar initialTextA = default, bool textAIsValid = default, int bufCapacityA = default, float scrollX = default, STBTexteditState stb = default, float cursorAnim = default, bool cursorFollow = default, bool selectedAllMouseLock = default, bool edited = default, int flags = default) { - fixed (ImGuiInputTextState* @this = &this) - { - ImGui.OnKeyPressedNative(@this, key); - } + Ctx = ctx; + ID = id; + CurLenW = curLenW; + CurLenA = curLenA; + TextW = textW; + TextA = textA; + InitialTextA = initialTextA; + TextAIsValid = textAIsValid ? (byte)1 : (byte)0; + BufCapacityA = bufCapacityA; + ScrollX = scrollX; + Stb = stb; + CursorAnim = cursorAnim; + CursorFollow = cursorFollow ? (byte)1 : (byte)0; + SelectedAllMouseLock = selectedAllMouseLock ? (byte)1 : (byte)0; + Edited = edited ? (byte)1 : (byte)0; + Flags = flags; } - [NativeName(NativeNameType.Func, "ImGuiInputTextState_SelectAll")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SelectAll() - { - fixed (ImGuiInputTextState* @this = &this) - { - ImGui.SelectAllNative(@this); - } - } } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "STB_TexteditState")] [StructLayout(LayoutKind.Sequential)] public partial struct STBTexteditState { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "cursor")] - [NativeName(NativeNameType.Type, "int")] public int Cursor; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "select_start")] - [NativeName(NativeNameType.Type, "int")] public int SelectStart; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "select_end")] - [NativeName(NativeNameType.Type, "int")] public int SelectEnd; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "insert_mode")] - [NativeName(NativeNameType.Type, "unsigned char")] public byte InsertMode; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "row_count_per_page")] - [NativeName(NativeNameType.Type, "int")] public int RowCountPerPage; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "cursor_at_end_of_line")] - [NativeName(NativeNameType.Type, "unsigned char")] public byte CursorAtEndOfLine; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "initialized")] - [NativeName(NativeNameType.Type, "unsigned char")] public byte Initialized; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "has_preferred_x")] - [NativeName(NativeNameType.Type, "unsigned char")] public byte HasPreferredX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "single_line")] - [NativeName(NativeNameType.Type, "unsigned char")] public byte SingleLine; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "padding1")] - [NativeName(NativeNameType.Type, "unsigned char")] public byte Padding1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "padding2")] - [NativeName(NativeNameType.Type, "unsigned char")] public byte Padding2; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "padding3")] - [NativeName(NativeNameType.Type, "unsigned char")] public byte Padding3; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "preferred_x")] - [NativeName(NativeNameType.Type, "float")] public float PreferredX; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "undostate")] - [NativeName(NativeNameType.Type, "StbUndoState")] public StbUndoState Undostate; + /// /// To be documented. /// public unsafe STBTexteditState(int cursor = default, int selectStart = default, int selectEnd = default, byte insertMode = default, int rowCountPerPage = default, byte cursorAtEndOfLine = default, byte initialized = default, byte hasPreferredX = default, byte singleLine = default, byte padding1 = default, byte padding2 = default, byte padding3 = default, float preferredX = default, StbUndoState undostate = default) + { + Cursor = cursor; + SelectStart = selectStart; + SelectEnd = selectEnd; + InsertMode = insertMode; + RowCountPerPage = rowCountPerPage; + CursorAtEndOfLine = cursorAtEndOfLine; + Initialized = initialized; + HasPreferredX = hasPreferredX; + SingleLine = singleLine; + Padding1 = padding1; + Padding2 = padding2; + Padding3 = padding3; + PreferredX = preferredX; + Undostate = undostate; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "StbUndoState")] [StructLayout(LayoutKind.Sequential)] public partial struct StbUndoState { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "undo_rec")] - [NativeName(NativeNameType.Type, "StbUndoRecord[99]")] public StbUndoRecord UndoRec_0; public StbUndoRecord UndoRec_1; public StbUndoRecord UndoRec_2; @@ -26379,8 +29898,6 @@ public partial struct StbUndoState /// /// To be documented. /// - [NativeName(NativeNameType.Field, "undo_char")] - [NativeName(NativeNameType.Type, "ImWchar[999]")] public ushort UndoChar_0; public ushort UndoChar_1; public ushort UndoChar_2; @@ -27384,32 +30901,2248 @@ public partial struct StbUndoState /// /// To be documented. /// - [NativeName(NativeNameType.Field, "undo_point")] - [NativeName(NativeNameType.Type, "short")] public short UndoPoint; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "redo_point")] - [NativeName(NativeNameType.Type, "short")] public short RedoPoint; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "undo_char_point")] - [NativeName(NativeNameType.Type, "int")] public int UndoCharPoint; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "redo_char_point")] - [NativeName(NativeNameType.Type, "int")] public int RedoCharPoint; + /// /// To be documented. /// public unsafe StbUndoState(StbUndoRecord* undoRec = default, char* undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) + { + if (undoRec != default) + { + UndoRec_0 = undoRec[0]; + UndoRec_1 = undoRec[1]; + UndoRec_2 = undoRec[2]; + UndoRec_3 = undoRec[3]; + UndoRec_4 = undoRec[4]; + UndoRec_5 = undoRec[5]; + UndoRec_6 = undoRec[6]; + UndoRec_7 = undoRec[7]; + UndoRec_8 = undoRec[8]; + UndoRec_9 = undoRec[9]; + UndoRec_10 = undoRec[10]; + UndoRec_11 = undoRec[11]; + UndoRec_12 = undoRec[12]; + UndoRec_13 = undoRec[13]; + UndoRec_14 = undoRec[14]; + UndoRec_15 = undoRec[15]; + UndoRec_16 = undoRec[16]; + UndoRec_17 = undoRec[17]; + UndoRec_18 = undoRec[18]; + UndoRec_19 = undoRec[19]; + UndoRec_20 = undoRec[20]; + UndoRec_21 = undoRec[21]; + UndoRec_22 = undoRec[22]; + UndoRec_23 = undoRec[23]; + UndoRec_24 = undoRec[24]; + UndoRec_25 = undoRec[25]; + UndoRec_26 = undoRec[26]; + UndoRec_27 = undoRec[27]; + UndoRec_28 = undoRec[28]; + UndoRec_29 = undoRec[29]; + UndoRec_30 = undoRec[30]; + UndoRec_31 = undoRec[31]; + UndoRec_32 = undoRec[32]; + UndoRec_33 = undoRec[33]; + UndoRec_34 = undoRec[34]; + UndoRec_35 = undoRec[35]; + UndoRec_36 = undoRec[36]; + UndoRec_37 = undoRec[37]; + UndoRec_38 = undoRec[38]; + UndoRec_39 = undoRec[39]; + UndoRec_40 = undoRec[40]; + UndoRec_41 = undoRec[41]; + UndoRec_42 = undoRec[42]; + UndoRec_43 = undoRec[43]; + UndoRec_44 = undoRec[44]; + UndoRec_45 = undoRec[45]; + UndoRec_46 = undoRec[46]; + UndoRec_47 = undoRec[47]; + UndoRec_48 = undoRec[48]; + UndoRec_49 = undoRec[49]; + UndoRec_50 = undoRec[50]; + UndoRec_51 = undoRec[51]; + UndoRec_52 = undoRec[52]; + UndoRec_53 = undoRec[53]; + UndoRec_54 = undoRec[54]; + UndoRec_55 = undoRec[55]; + UndoRec_56 = undoRec[56]; + UndoRec_57 = undoRec[57]; + UndoRec_58 = undoRec[58]; + UndoRec_59 = undoRec[59]; + UndoRec_60 = undoRec[60]; + UndoRec_61 = undoRec[61]; + UndoRec_62 = undoRec[62]; + UndoRec_63 = undoRec[63]; + UndoRec_64 = undoRec[64]; + UndoRec_65 = undoRec[65]; + UndoRec_66 = undoRec[66]; + UndoRec_67 = undoRec[67]; + UndoRec_68 = undoRec[68]; + UndoRec_69 = undoRec[69]; + UndoRec_70 = undoRec[70]; + UndoRec_71 = undoRec[71]; + UndoRec_72 = undoRec[72]; + UndoRec_73 = undoRec[73]; + UndoRec_74 = undoRec[74]; + UndoRec_75 = undoRec[75]; + UndoRec_76 = undoRec[76]; + UndoRec_77 = undoRec[77]; + UndoRec_78 = undoRec[78]; + UndoRec_79 = undoRec[79]; + UndoRec_80 = undoRec[80]; + UndoRec_81 = undoRec[81]; + UndoRec_82 = undoRec[82]; + UndoRec_83 = undoRec[83]; + UndoRec_84 = undoRec[84]; + UndoRec_85 = undoRec[85]; + UndoRec_86 = undoRec[86]; + UndoRec_87 = undoRec[87]; + UndoRec_88 = undoRec[88]; + UndoRec_89 = undoRec[89]; + UndoRec_90 = undoRec[90]; + UndoRec_91 = undoRec[91]; + UndoRec_92 = undoRec[92]; + UndoRec_93 = undoRec[93]; + UndoRec_94 = undoRec[94]; + UndoRec_95 = undoRec[95]; + UndoRec_96 = undoRec[96]; + UndoRec_97 = undoRec[97]; + UndoRec_98 = undoRec[98]; + } + if (undoChar != default) + { + UndoChar_0 = undoChar[0]; + UndoChar_1 = undoChar[1]; + UndoChar_2 = undoChar[2]; + UndoChar_3 = undoChar[3]; + UndoChar_4 = undoChar[4]; + UndoChar_5 = undoChar[5]; + UndoChar_6 = undoChar[6]; + UndoChar_7 = undoChar[7]; + UndoChar_8 = undoChar[8]; + UndoChar_9 = undoChar[9]; + UndoChar_10 = undoChar[10]; + UndoChar_11 = undoChar[11]; + UndoChar_12 = undoChar[12]; + UndoChar_13 = undoChar[13]; + UndoChar_14 = undoChar[14]; + UndoChar_15 = undoChar[15]; + UndoChar_16 = undoChar[16]; + UndoChar_17 = undoChar[17]; + UndoChar_18 = undoChar[18]; + UndoChar_19 = undoChar[19]; + UndoChar_20 = undoChar[20]; + UndoChar_21 = undoChar[21]; + UndoChar_22 = undoChar[22]; + UndoChar_23 = undoChar[23]; + UndoChar_24 = undoChar[24]; + UndoChar_25 = undoChar[25]; + UndoChar_26 = undoChar[26]; + UndoChar_27 = undoChar[27]; + UndoChar_28 = undoChar[28]; + UndoChar_29 = undoChar[29]; + UndoChar_30 = undoChar[30]; + UndoChar_31 = undoChar[31]; + UndoChar_32 = undoChar[32]; + UndoChar_33 = undoChar[33]; + UndoChar_34 = undoChar[34]; + UndoChar_35 = undoChar[35]; + UndoChar_36 = undoChar[36]; + UndoChar_37 = undoChar[37]; + UndoChar_38 = undoChar[38]; + UndoChar_39 = undoChar[39]; + UndoChar_40 = undoChar[40]; + UndoChar_41 = undoChar[41]; + UndoChar_42 = undoChar[42]; + UndoChar_43 = undoChar[43]; + UndoChar_44 = undoChar[44]; + UndoChar_45 = undoChar[45]; + UndoChar_46 = undoChar[46]; + UndoChar_47 = undoChar[47]; + UndoChar_48 = undoChar[48]; + UndoChar_49 = undoChar[49]; + UndoChar_50 = undoChar[50]; + UndoChar_51 = undoChar[51]; + UndoChar_52 = undoChar[52]; + UndoChar_53 = undoChar[53]; + UndoChar_54 = undoChar[54]; + UndoChar_55 = undoChar[55]; + UndoChar_56 = undoChar[56]; + UndoChar_57 = undoChar[57]; + UndoChar_58 = undoChar[58]; + UndoChar_59 = undoChar[59]; + UndoChar_60 = undoChar[60]; + UndoChar_61 = undoChar[61]; + UndoChar_62 = undoChar[62]; + UndoChar_63 = undoChar[63]; + UndoChar_64 = undoChar[64]; + UndoChar_65 = undoChar[65]; + UndoChar_66 = undoChar[66]; + UndoChar_67 = undoChar[67]; + UndoChar_68 = undoChar[68]; + UndoChar_69 = undoChar[69]; + UndoChar_70 = undoChar[70]; + UndoChar_71 = undoChar[71]; + UndoChar_72 = undoChar[72]; + UndoChar_73 = undoChar[73]; + UndoChar_74 = undoChar[74]; + UndoChar_75 = undoChar[75]; + UndoChar_76 = undoChar[76]; + UndoChar_77 = undoChar[77]; + UndoChar_78 = undoChar[78]; + UndoChar_79 = undoChar[79]; + UndoChar_80 = undoChar[80]; + UndoChar_81 = undoChar[81]; + UndoChar_82 = undoChar[82]; + UndoChar_83 = undoChar[83]; + UndoChar_84 = undoChar[84]; + UndoChar_85 = undoChar[85]; + UndoChar_86 = undoChar[86]; + UndoChar_87 = undoChar[87]; + UndoChar_88 = undoChar[88]; + UndoChar_89 = undoChar[89]; + UndoChar_90 = undoChar[90]; + UndoChar_91 = undoChar[91]; + UndoChar_92 = undoChar[92]; + UndoChar_93 = undoChar[93]; + UndoChar_94 = undoChar[94]; + UndoChar_95 = undoChar[95]; + UndoChar_96 = undoChar[96]; + UndoChar_97 = undoChar[97]; + UndoChar_98 = undoChar[98]; + UndoChar_99 = undoChar[99]; + UndoChar_100 = undoChar[100]; + UndoChar_101 = undoChar[101]; + UndoChar_102 = undoChar[102]; + UndoChar_103 = undoChar[103]; + UndoChar_104 = undoChar[104]; + UndoChar_105 = undoChar[105]; + UndoChar_106 = undoChar[106]; + UndoChar_107 = undoChar[107]; + UndoChar_108 = undoChar[108]; + UndoChar_109 = undoChar[109]; + UndoChar_110 = undoChar[110]; + UndoChar_111 = undoChar[111]; + UndoChar_112 = undoChar[112]; + UndoChar_113 = undoChar[113]; + UndoChar_114 = undoChar[114]; + UndoChar_115 = undoChar[115]; + UndoChar_116 = undoChar[116]; + UndoChar_117 = undoChar[117]; + UndoChar_118 = undoChar[118]; + UndoChar_119 = undoChar[119]; + UndoChar_120 = undoChar[120]; + UndoChar_121 = undoChar[121]; + UndoChar_122 = undoChar[122]; + UndoChar_123 = undoChar[123]; + UndoChar_124 = undoChar[124]; + UndoChar_125 = undoChar[125]; + UndoChar_126 = undoChar[126]; + UndoChar_127 = undoChar[127]; + UndoChar_128 = undoChar[128]; + UndoChar_129 = undoChar[129]; + UndoChar_130 = undoChar[130]; + UndoChar_131 = undoChar[131]; + UndoChar_132 = undoChar[132]; + UndoChar_133 = undoChar[133]; + UndoChar_134 = undoChar[134]; + UndoChar_135 = undoChar[135]; + UndoChar_136 = undoChar[136]; + UndoChar_137 = undoChar[137]; + UndoChar_138 = undoChar[138]; + UndoChar_139 = undoChar[139]; + UndoChar_140 = undoChar[140]; + UndoChar_141 = undoChar[141]; + UndoChar_142 = undoChar[142]; + UndoChar_143 = undoChar[143]; + UndoChar_144 = undoChar[144]; + UndoChar_145 = undoChar[145]; + UndoChar_146 = undoChar[146]; + UndoChar_147 = undoChar[147]; + UndoChar_148 = undoChar[148]; + UndoChar_149 = undoChar[149]; + UndoChar_150 = undoChar[150]; + UndoChar_151 = undoChar[151]; + UndoChar_152 = undoChar[152]; + UndoChar_153 = undoChar[153]; + UndoChar_154 = undoChar[154]; + UndoChar_155 = undoChar[155]; + UndoChar_156 = undoChar[156]; + UndoChar_157 = undoChar[157]; + UndoChar_158 = undoChar[158]; + UndoChar_159 = undoChar[159]; + UndoChar_160 = undoChar[160]; + UndoChar_161 = undoChar[161]; + UndoChar_162 = undoChar[162]; + UndoChar_163 = undoChar[163]; + UndoChar_164 = undoChar[164]; + UndoChar_165 = undoChar[165]; + UndoChar_166 = undoChar[166]; + UndoChar_167 = undoChar[167]; + UndoChar_168 = undoChar[168]; + UndoChar_169 = undoChar[169]; + UndoChar_170 = undoChar[170]; + UndoChar_171 = undoChar[171]; + UndoChar_172 = undoChar[172]; + UndoChar_173 = undoChar[173]; + UndoChar_174 = undoChar[174]; + UndoChar_175 = undoChar[175]; + UndoChar_176 = undoChar[176]; + UndoChar_177 = undoChar[177]; + UndoChar_178 = undoChar[178]; + UndoChar_179 = undoChar[179]; + UndoChar_180 = undoChar[180]; + UndoChar_181 = undoChar[181]; + UndoChar_182 = undoChar[182]; + UndoChar_183 = undoChar[183]; + UndoChar_184 = undoChar[184]; + UndoChar_185 = undoChar[185]; + UndoChar_186 = undoChar[186]; + UndoChar_187 = undoChar[187]; + UndoChar_188 = undoChar[188]; + UndoChar_189 = undoChar[189]; + UndoChar_190 = undoChar[190]; + UndoChar_191 = undoChar[191]; + UndoChar_192 = undoChar[192]; + UndoChar_193 = undoChar[193]; + UndoChar_194 = undoChar[194]; + UndoChar_195 = undoChar[195]; + UndoChar_196 = undoChar[196]; + UndoChar_197 = undoChar[197]; + UndoChar_198 = undoChar[198]; + UndoChar_199 = undoChar[199]; + UndoChar_200 = undoChar[200]; + UndoChar_201 = undoChar[201]; + UndoChar_202 = undoChar[202]; + UndoChar_203 = undoChar[203]; + UndoChar_204 = undoChar[204]; + UndoChar_205 = undoChar[205]; + UndoChar_206 = undoChar[206]; + UndoChar_207 = undoChar[207]; + UndoChar_208 = undoChar[208]; + UndoChar_209 = undoChar[209]; + UndoChar_210 = undoChar[210]; + UndoChar_211 = undoChar[211]; + UndoChar_212 = undoChar[212]; + UndoChar_213 = undoChar[213]; + UndoChar_214 = undoChar[214]; + UndoChar_215 = undoChar[215]; + UndoChar_216 = undoChar[216]; + UndoChar_217 = undoChar[217]; + UndoChar_218 = undoChar[218]; + UndoChar_219 = undoChar[219]; + UndoChar_220 = undoChar[220]; + UndoChar_221 = undoChar[221]; + UndoChar_222 = undoChar[222]; + UndoChar_223 = undoChar[223]; + UndoChar_224 = undoChar[224]; + UndoChar_225 = undoChar[225]; + UndoChar_226 = undoChar[226]; + UndoChar_227 = undoChar[227]; + UndoChar_228 = undoChar[228]; + UndoChar_229 = undoChar[229]; + UndoChar_230 = undoChar[230]; + UndoChar_231 = undoChar[231]; + UndoChar_232 = undoChar[232]; + UndoChar_233 = undoChar[233]; + UndoChar_234 = undoChar[234]; + UndoChar_235 = undoChar[235]; + UndoChar_236 = undoChar[236]; + UndoChar_237 = undoChar[237]; + UndoChar_238 = undoChar[238]; + UndoChar_239 = undoChar[239]; + UndoChar_240 = undoChar[240]; + UndoChar_241 = undoChar[241]; + UndoChar_242 = undoChar[242]; + UndoChar_243 = undoChar[243]; + UndoChar_244 = undoChar[244]; + UndoChar_245 = undoChar[245]; + UndoChar_246 = undoChar[246]; + UndoChar_247 = undoChar[247]; + UndoChar_248 = undoChar[248]; + UndoChar_249 = undoChar[249]; + UndoChar_250 = undoChar[250]; + UndoChar_251 = undoChar[251]; + UndoChar_252 = undoChar[252]; + UndoChar_253 = undoChar[253]; + UndoChar_254 = undoChar[254]; + UndoChar_255 = undoChar[255]; + UndoChar_256 = undoChar[256]; + UndoChar_257 = undoChar[257]; + UndoChar_258 = undoChar[258]; + UndoChar_259 = undoChar[259]; + UndoChar_260 = undoChar[260]; + UndoChar_261 = undoChar[261]; + UndoChar_262 = undoChar[262]; + UndoChar_263 = undoChar[263]; + UndoChar_264 = undoChar[264]; + UndoChar_265 = undoChar[265]; + UndoChar_266 = undoChar[266]; + UndoChar_267 = undoChar[267]; + UndoChar_268 = undoChar[268]; + UndoChar_269 = undoChar[269]; + UndoChar_270 = undoChar[270]; + UndoChar_271 = undoChar[271]; + UndoChar_272 = undoChar[272]; + UndoChar_273 = undoChar[273]; + UndoChar_274 = undoChar[274]; + UndoChar_275 = undoChar[275]; + UndoChar_276 = undoChar[276]; + UndoChar_277 = undoChar[277]; + UndoChar_278 = undoChar[278]; + UndoChar_279 = undoChar[279]; + UndoChar_280 = undoChar[280]; + UndoChar_281 = undoChar[281]; + UndoChar_282 = undoChar[282]; + UndoChar_283 = undoChar[283]; + UndoChar_284 = undoChar[284]; + UndoChar_285 = undoChar[285]; + UndoChar_286 = undoChar[286]; + UndoChar_287 = undoChar[287]; + UndoChar_288 = undoChar[288]; + UndoChar_289 = undoChar[289]; + UndoChar_290 = undoChar[290]; + UndoChar_291 = undoChar[291]; + UndoChar_292 = undoChar[292]; + UndoChar_293 = undoChar[293]; + UndoChar_294 = undoChar[294]; + UndoChar_295 = undoChar[295]; + UndoChar_296 = undoChar[296]; + UndoChar_297 = undoChar[297]; + UndoChar_298 = undoChar[298]; + UndoChar_299 = undoChar[299]; + UndoChar_300 = undoChar[300]; + UndoChar_301 = undoChar[301]; + UndoChar_302 = undoChar[302]; + UndoChar_303 = undoChar[303]; + UndoChar_304 = undoChar[304]; + UndoChar_305 = undoChar[305]; + UndoChar_306 = undoChar[306]; + UndoChar_307 = undoChar[307]; + UndoChar_308 = undoChar[308]; + UndoChar_309 = undoChar[309]; + UndoChar_310 = undoChar[310]; + UndoChar_311 = undoChar[311]; + UndoChar_312 = undoChar[312]; + UndoChar_313 = undoChar[313]; + UndoChar_314 = undoChar[314]; + UndoChar_315 = undoChar[315]; + UndoChar_316 = undoChar[316]; + UndoChar_317 = undoChar[317]; + UndoChar_318 = undoChar[318]; + UndoChar_319 = undoChar[319]; + UndoChar_320 = undoChar[320]; + UndoChar_321 = undoChar[321]; + UndoChar_322 = undoChar[322]; + UndoChar_323 = undoChar[323]; + UndoChar_324 = undoChar[324]; + UndoChar_325 = undoChar[325]; + UndoChar_326 = undoChar[326]; + UndoChar_327 = undoChar[327]; + UndoChar_328 = undoChar[328]; + UndoChar_329 = undoChar[329]; + UndoChar_330 = undoChar[330]; + UndoChar_331 = undoChar[331]; + UndoChar_332 = undoChar[332]; + UndoChar_333 = undoChar[333]; + UndoChar_334 = undoChar[334]; + UndoChar_335 = undoChar[335]; + UndoChar_336 = undoChar[336]; + UndoChar_337 = undoChar[337]; + UndoChar_338 = undoChar[338]; + UndoChar_339 = undoChar[339]; + UndoChar_340 = undoChar[340]; + UndoChar_341 = undoChar[341]; + UndoChar_342 = undoChar[342]; + UndoChar_343 = undoChar[343]; + UndoChar_344 = undoChar[344]; + UndoChar_345 = undoChar[345]; + UndoChar_346 = undoChar[346]; + UndoChar_347 = undoChar[347]; + UndoChar_348 = undoChar[348]; + UndoChar_349 = undoChar[349]; + UndoChar_350 = undoChar[350]; + UndoChar_351 = undoChar[351]; + UndoChar_352 = undoChar[352]; + UndoChar_353 = undoChar[353]; + UndoChar_354 = undoChar[354]; + UndoChar_355 = undoChar[355]; + UndoChar_356 = undoChar[356]; + UndoChar_357 = undoChar[357]; + UndoChar_358 = undoChar[358]; + UndoChar_359 = undoChar[359]; + UndoChar_360 = undoChar[360]; + UndoChar_361 = undoChar[361]; + UndoChar_362 = undoChar[362]; + UndoChar_363 = undoChar[363]; + UndoChar_364 = undoChar[364]; + UndoChar_365 = undoChar[365]; + UndoChar_366 = undoChar[366]; + UndoChar_367 = undoChar[367]; + UndoChar_368 = undoChar[368]; + UndoChar_369 = undoChar[369]; + UndoChar_370 = undoChar[370]; + UndoChar_371 = undoChar[371]; + UndoChar_372 = undoChar[372]; + UndoChar_373 = undoChar[373]; + UndoChar_374 = undoChar[374]; + UndoChar_375 = undoChar[375]; + UndoChar_376 = undoChar[376]; + UndoChar_377 = undoChar[377]; + UndoChar_378 = undoChar[378]; + UndoChar_379 = undoChar[379]; + UndoChar_380 = undoChar[380]; + UndoChar_381 = undoChar[381]; + UndoChar_382 = undoChar[382]; + UndoChar_383 = undoChar[383]; + UndoChar_384 = undoChar[384]; + UndoChar_385 = undoChar[385]; + UndoChar_386 = undoChar[386]; + UndoChar_387 = undoChar[387]; + UndoChar_388 = undoChar[388]; + UndoChar_389 = undoChar[389]; + UndoChar_390 = undoChar[390]; + UndoChar_391 = undoChar[391]; + UndoChar_392 = undoChar[392]; + UndoChar_393 = undoChar[393]; + UndoChar_394 = undoChar[394]; + UndoChar_395 = undoChar[395]; + UndoChar_396 = undoChar[396]; + UndoChar_397 = undoChar[397]; + UndoChar_398 = undoChar[398]; + UndoChar_399 = undoChar[399]; + UndoChar_400 = undoChar[400]; + UndoChar_401 = undoChar[401]; + UndoChar_402 = undoChar[402]; + UndoChar_403 = undoChar[403]; + UndoChar_404 = undoChar[404]; + UndoChar_405 = undoChar[405]; + UndoChar_406 = undoChar[406]; + UndoChar_407 = undoChar[407]; + UndoChar_408 = undoChar[408]; + UndoChar_409 = undoChar[409]; + UndoChar_410 = undoChar[410]; + UndoChar_411 = undoChar[411]; + UndoChar_412 = undoChar[412]; + UndoChar_413 = undoChar[413]; + UndoChar_414 = undoChar[414]; + UndoChar_415 = undoChar[415]; + UndoChar_416 = undoChar[416]; + UndoChar_417 = undoChar[417]; + UndoChar_418 = undoChar[418]; + UndoChar_419 = undoChar[419]; + UndoChar_420 = undoChar[420]; + UndoChar_421 = undoChar[421]; + UndoChar_422 = undoChar[422]; + UndoChar_423 = undoChar[423]; + UndoChar_424 = undoChar[424]; + UndoChar_425 = undoChar[425]; + UndoChar_426 = undoChar[426]; + UndoChar_427 = undoChar[427]; + UndoChar_428 = undoChar[428]; + UndoChar_429 = undoChar[429]; + UndoChar_430 = undoChar[430]; + UndoChar_431 = undoChar[431]; + UndoChar_432 = undoChar[432]; + UndoChar_433 = undoChar[433]; + UndoChar_434 = undoChar[434]; + UndoChar_435 = undoChar[435]; + UndoChar_436 = undoChar[436]; + UndoChar_437 = undoChar[437]; + UndoChar_438 = undoChar[438]; + UndoChar_439 = undoChar[439]; + UndoChar_440 = undoChar[440]; + UndoChar_441 = undoChar[441]; + UndoChar_442 = undoChar[442]; + UndoChar_443 = undoChar[443]; + UndoChar_444 = undoChar[444]; + UndoChar_445 = undoChar[445]; + UndoChar_446 = undoChar[446]; + UndoChar_447 = undoChar[447]; + UndoChar_448 = undoChar[448]; + UndoChar_449 = undoChar[449]; + UndoChar_450 = undoChar[450]; + UndoChar_451 = undoChar[451]; + UndoChar_452 = undoChar[452]; + UndoChar_453 = undoChar[453]; + UndoChar_454 = undoChar[454]; + UndoChar_455 = undoChar[455]; + UndoChar_456 = undoChar[456]; + UndoChar_457 = undoChar[457]; + UndoChar_458 = undoChar[458]; + UndoChar_459 = undoChar[459]; + UndoChar_460 = undoChar[460]; + UndoChar_461 = undoChar[461]; + UndoChar_462 = undoChar[462]; + UndoChar_463 = undoChar[463]; + UndoChar_464 = undoChar[464]; + UndoChar_465 = undoChar[465]; + UndoChar_466 = undoChar[466]; + UndoChar_467 = undoChar[467]; + UndoChar_468 = undoChar[468]; + UndoChar_469 = undoChar[469]; + UndoChar_470 = undoChar[470]; + UndoChar_471 = undoChar[471]; + UndoChar_472 = undoChar[472]; + UndoChar_473 = undoChar[473]; + UndoChar_474 = undoChar[474]; + UndoChar_475 = undoChar[475]; + UndoChar_476 = undoChar[476]; + UndoChar_477 = undoChar[477]; + UndoChar_478 = undoChar[478]; + UndoChar_479 = undoChar[479]; + UndoChar_480 = undoChar[480]; + UndoChar_481 = undoChar[481]; + UndoChar_482 = undoChar[482]; + UndoChar_483 = undoChar[483]; + UndoChar_484 = undoChar[484]; + UndoChar_485 = undoChar[485]; + UndoChar_486 = undoChar[486]; + UndoChar_487 = undoChar[487]; + UndoChar_488 = undoChar[488]; + UndoChar_489 = undoChar[489]; + UndoChar_490 = undoChar[490]; + UndoChar_491 = undoChar[491]; + UndoChar_492 = undoChar[492]; + UndoChar_493 = undoChar[493]; + UndoChar_494 = undoChar[494]; + UndoChar_495 = undoChar[495]; + UndoChar_496 = undoChar[496]; + UndoChar_497 = undoChar[497]; + UndoChar_498 = undoChar[498]; + UndoChar_499 = undoChar[499]; + UndoChar_500 = undoChar[500]; + UndoChar_501 = undoChar[501]; + UndoChar_502 = undoChar[502]; + UndoChar_503 = undoChar[503]; + UndoChar_504 = undoChar[504]; + UndoChar_505 = undoChar[505]; + UndoChar_506 = undoChar[506]; + UndoChar_507 = undoChar[507]; + UndoChar_508 = undoChar[508]; + UndoChar_509 = undoChar[509]; + UndoChar_510 = undoChar[510]; + UndoChar_511 = undoChar[511]; + UndoChar_512 = undoChar[512]; + UndoChar_513 = undoChar[513]; + UndoChar_514 = undoChar[514]; + UndoChar_515 = undoChar[515]; + UndoChar_516 = undoChar[516]; + UndoChar_517 = undoChar[517]; + UndoChar_518 = undoChar[518]; + UndoChar_519 = undoChar[519]; + UndoChar_520 = undoChar[520]; + UndoChar_521 = undoChar[521]; + UndoChar_522 = undoChar[522]; + UndoChar_523 = undoChar[523]; + UndoChar_524 = undoChar[524]; + UndoChar_525 = undoChar[525]; + UndoChar_526 = undoChar[526]; + UndoChar_527 = undoChar[527]; + UndoChar_528 = undoChar[528]; + UndoChar_529 = undoChar[529]; + UndoChar_530 = undoChar[530]; + UndoChar_531 = undoChar[531]; + UndoChar_532 = undoChar[532]; + UndoChar_533 = undoChar[533]; + UndoChar_534 = undoChar[534]; + UndoChar_535 = undoChar[535]; + UndoChar_536 = undoChar[536]; + UndoChar_537 = undoChar[537]; + UndoChar_538 = undoChar[538]; + UndoChar_539 = undoChar[539]; + UndoChar_540 = undoChar[540]; + UndoChar_541 = undoChar[541]; + UndoChar_542 = undoChar[542]; + UndoChar_543 = undoChar[543]; + UndoChar_544 = undoChar[544]; + UndoChar_545 = undoChar[545]; + UndoChar_546 = undoChar[546]; + UndoChar_547 = undoChar[547]; + UndoChar_548 = undoChar[548]; + UndoChar_549 = undoChar[549]; + UndoChar_550 = undoChar[550]; + UndoChar_551 = undoChar[551]; + UndoChar_552 = undoChar[552]; + UndoChar_553 = undoChar[553]; + UndoChar_554 = undoChar[554]; + UndoChar_555 = undoChar[555]; + UndoChar_556 = undoChar[556]; + UndoChar_557 = undoChar[557]; + UndoChar_558 = undoChar[558]; + UndoChar_559 = undoChar[559]; + UndoChar_560 = undoChar[560]; + UndoChar_561 = undoChar[561]; + UndoChar_562 = undoChar[562]; + UndoChar_563 = undoChar[563]; + UndoChar_564 = undoChar[564]; + UndoChar_565 = undoChar[565]; + UndoChar_566 = undoChar[566]; + UndoChar_567 = undoChar[567]; + UndoChar_568 = undoChar[568]; + UndoChar_569 = undoChar[569]; + UndoChar_570 = undoChar[570]; + UndoChar_571 = undoChar[571]; + UndoChar_572 = undoChar[572]; + UndoChar_573 = undoChar[573]; + UndoChar_574 = undoChar[574]; + UndoChar_575 = undoChar[575]; + UndoChar_576 = undoChar[576]; + UndoChar_577 = undoChar[577]; + UndoChar_578 = undoChar[578]; + UndoChar_579 = undoChar[579]; + UndoChar_580 = undoChar[580]; + UndoChar_581 = undoChar[581]; + UndoChar_582 = undoChar[582]; + UndoChar_583 = undoChar[583]; + UndoChar_584 = undoChar[584]; + UndoChar_585 = undoChar[585]; + UndoChar_586 = undoChar[586]; + UndoChar_587 = undoChar[587]; + UndoChar_588 = undoChar[588]; + UndoChar_589 = undoChar[589]; + UndoChar_590 = undoChar[590]; + UndoChar_591 = undoChar[591]; + UndoChar_592 = undoChar[592]; + UndoChar_593 = undoChar[593]; + UndoChar_594 = undoChar[594]; + UndoChar_595 = undoChar[595]; + UndoChar_596 = undoChar[596]; + UndoChar_597 = undoChar[597]; + UndoChar_598 = undoChar[598]; + UndoChar_599 = undoChar[599]; + UndoChar_600 = undoChar[600]; + UndoChar_601 = undoChar[601]; + UndoChar_602 = undoChar[602]; + UndoChar_603 = undoChar[603]; + UndoChar_604 = undoChar[604]; + UndoChar_605 = undoChar[605]; + UndoChar_606 = undoChar[606]; + UndoChar_607 = undoChar[607]; + UndoChar_608 = undoChar[608]; + UndoChar_609 = undoChar[609]; + UndoChar_610 = undoChar[610]; + UndoChar_611 = undoChar[611]; + UndoChar_612 = undoChar[612]; + UndoChar_613 = undoChar[613]; + UndoChar_614 = undoChar[614]; + UndoChar_615 = undoChar[615]; + UndoChar_616 = undoChar[616]; + UndoChar_617 = undoChar[617]; + UndoChar_618 = undoChar[618]; + UndoChar_619 = undoChar[619]; + UndoChar_620 = undoChar[620]; + UndoChar_621 = undoChar[621]; + UndoChar_622 = undoChar[622]; + UndoChar_623 = undoChar[623]; + UndoChar_624 = undoChar[624]; + UndoChar_625 = undoChar[625]; + UndoChar_626 = undoChar[626]; + UndoChar_627 = undoChar[627]; + UndoChar_628 = undoChar[628]; + UndoChar_629 = undoChar[629]; + UndoChar_630 = undoChar[630]; + UndoChar_631 = undoChar[631]; + UndoChar_632 = undoChar[632]; + UndoChar_633 = undoChar[633]; + UndoChar_634 = undoChar[634]; + UndoChar_635 = undoChar[635]; + UndoChar_636 = undoChar[636]; + UndoChar_637 = undoChar[637]; + UndoChar_638 = undoChar[638]; + UndoChar_639 = undoChar[639]; + UndoChar_640 = undoChar[640]; + UndoChar_641 = undoChar[641]; + UndoChar_642 = undoChar[642]; + UndoChar_643 = undoChar[643]; + UndoChar_644 = undoChar[644]; + UndoChar_645 = undoChar[645]; + UndoChar_646 = undoChar[646]; + UndoChar_647 = undoChar[647]; + UndoChar_648 = undoChar[648]; + UndoChar_649 = undoChar[649]; + UndoChar_650 = undoChar[650]; + UndoChar_651 = undoChar[651]; + UndoChar_652 = undoChar[652]; + UndoChar_653 = undoChar[653]; + UndoChar_654 = undoChar[654]; + UndoChar_655 = undoChar[655]; + UndoChar_656 = undoChar[656]; + UndoChar_657 = undoChar[657]; + UndoChar_658 = undoChar[658]; + UndoChar_659 = undoChar[659]; + UndoChar_660 = undoChar[660]; + UndoChar_661 = undoChar[661]; + UndoChar_662 = undoChar[662]; + UndoChar_663 = undoChar[663]; + UndoChar_664 = undoChar[664]; + UndoChar_665 = undoChar[665]; + UndoChar_666 = undoChar[666]; + UndoChar_667 = undoChar[667]; + UndoChar_668 = undoChar[668]; + UndoChar_669 = undoChar[669]; + UndoChar_670 = undoChar[670]; + UndoChar_671 = undoChar[671]; + UndoChar_672 = undoChar[672]; + UndoChar_673 = undoChar[673]; + UndoChar_674 = undoChar[674]; + UndoChar_675 = undoChar[675]; + UndoChar_676 = undoChar[676]; + UndoChar_677 = undoChar[677]; + UndoChar_678 = undoChar[678]; + UndoChar_679 = undoChar[679]; + UndoChar_680 = undoChar[680]; + UndoChar_681 = undoChar[681]; + UndoChar_682 = undoChar[682]; + UndoChar_683 = undoChar[683]; + UndoChar_684 = undoChar[684]; + UndoChar_685 = undoChar[685]; + UndoChar_686 = undoChar[686]; + UndoChar_687 = undoChar[687]; + UndoChar_688 = undoChar[688]; + UndoChar_689 = undoChar[689]; + UndoChar_690 = undoChar[690]; + UndoChar_691 = undoChar[691]; + UndoChar_692 = undoChar[692]; + UndoChar_693 = undoChar[693]; + UndoChar_694 = undoChar[694]; + UndoChar_695 = undoChar[695]; + UndoChar_696 = undoChar[696]; + UndoChar_697 = undoChar[697]; + UndoChar_698 = undoChar[698]; + UndoChar_699 = undoChar[699]; + UndoChar_700 = undoChar[700]; + UndoChar_701 = undoChar[701]; + UndoChar_702 = undoChar[702]; + UndoChar_703 = undoChar[703]; + UndoChar_704 = undoChar[704]; + UndoChar_705 = undoChar[705]; + UndoChar_706 = undoChar[706]; + UndoChar_707 = undoChar[707]; + UndoChar_708 = undoChar[708]; + UndoChar_709 = undoChar[709]; + UndoChar_710 = undoChar[710]; + UndoChar_711 = undoChar[711]; + UndoChar_712 = undoChar[712]; + UndoChar_713 = undoChar[713]; + UndoChar_714 = undoChar[714]; + UndoChar_715 = undoChar[715]; + UndoChar_716 = undoChar[716]; + UndoChar_717 = undoChar[717]; + UndoChar_718 = undoChar[718]; + UndoChar_719 = undoChar[719]; + UndoChar_720 = undoChar[720]; + UndoChar_721 = undoChar[721]; + UndoChar_722 = undoChar[722]; + UndoChar_723 = undoChar[723]; + UndoChar_724 = undoChar[724]; + UndoChar_725 = undoChar[725]; + UndoChar_726 = undoChar[726]; + UndoChar_727 = undoChar[727]; + UndoChar_728 = undoChar[728]; + UndoChar_729 = undoChar[729]; + UndoChar_730 = undoChar[730]; + UndoChar_731 = undoChar[731]; + UndoChar_732 = undoChar[732]; + UndoChar_733 = undoChar[733]; + UndoChar_734 = undoChar[734]; + UndoChar_735 = undoChar[735]; + UndoChar_736 = undoChar[736]; + UndoChar_737 = undoChar[737]; + UndoChar_738 = undoChar[738]; + UndoChar_739 = undoChar[739]; + UndoChar_740 = undoChar[740]; + UndoChar_741 = undoChar[741]; + UndoChar_742 = undoChar[742]; + UndoChar_743 = undoChar[743]; + UndoChar_744 = undoChar[744]; + UndoChar_745 = undoChar[745]; + UndoChar_746 = undoChar[746]; + UndoChar_747 = undoChar[747]; + UndoChar_748 = undoChar[748]; + UndoChar_749 = undoChar[749]; + UndoChar_750 = undoChar[750]; + UndoChar_751 = undoChar[751]; + UndoChar_752 = undoChar[752]; + UndoChar_753 = undoChar[753]; + UndoChar_754 = undoChar[754]; + UndoChar_755 = undoChar[755]; + UndoChar_756 = undoChar[756]; + UndoChar_757 = undoChar[757]; + UndoChar_758 = undoChar[758]; + UndoChar_759 = undoChar[759]; + UndoChar_760 = undoChar[760]; + UndoChar_761 = undoChar[761]; + UndoChar_762 = undoChar[762]; + UndoChar_763 = undoChar[763]; + UndoChar_764 = undoChar[764]; + UndoChar_765 = undoChar[765]; + UndoChar_766 = undoChar[766]; + UndoChar_767 = undoChar[767]; + UndoChar_768 = undoChar[768]; + UndoChar_769 = undoChar[769]; + UndoChar_770 = undoChar[770]; + UndoChar_771 = undoChar[771]; + UndoChar_772 = undoChar[772]; + UndoChar_773 = undoChar[773]; + UndoChar_774 = undoChar[774]; + UndoChar_775 = undoChar[775]; + UndoChar_776 = undoChar[776]; + UndoChar_777 = undoChar[777]; + UndoChar_778 = undoChar[778]; + UndoChar_779 = undoChar[779]; + UndoChar_780 = undoChar[780]; + UndoChar_781 = undoChar[781]; + UndoChar_782 = undoChar[782]; + UndoChar_783 = undoChar[783]; + UndoChar_784 = undoChar[784]; + UndoChar_785 = undoChar[785]; + UndoChar_786 = undoChar[786]; + UndoChar_787 = undoChar[787]; + UndoChar_788 = undoChar[788]; + UndoChar_789 = undoChar[789]; + UndoChar_790 = undoChar[790]; + UndoChar_791 = undoChar[791]; + UndoChar_792 = undoChar[792]; + UndoChar_793 = undoChar[793]; + UndoChar_794 = undoChar[794]; + UndoChar_795 = undoChar[795]; + UndoChar_796 = undoChar[796]; + UndoChar_797 = undoChar[797]; + UndoChar_798 = undoChar[798]; + UndoChar_799 = undoChar[799]; + UndoChar_800 = undoChar[800]; + UndoChar_801 = undoChar[801]; + UndoChar_802 = undoChar[802]; + UndoChar_803 = undoChar[803]; + UndoChar_804 = undoChar[804]; + UndoChar_805 = undoChar[805]; + UndoChar_806 = undoChar[806]; + UndoChar_807 = undoChar[807]; + UndoChar_808 = undoChar[808]; + UndoChar_809 = undoChar[809]; + UndoChar_810 = undoChar[810]; + UndoChar_811 = undoChar[811]; + UndoChar_812 = undoChar[812]; + UndoChar_813 = undoChar[813]; + UndoChar_814 = undoChar[814]; + UndoChar_815 = undoChar[815]; + UndoChar_816 = undoChar[816]; + UndoChar_817 = undoChar[817]; + UndoChar_818 = undoChar[818]; + UndoChar_819 = undoChar[819]; + UndoChar_820 = undoChar[820]; + UndoChar_821 = undoChar[821]; + UndoChar_822 = undoChar[822]; + UndoChar_823 = undoChar[823]; + UndoChar_824 = undoChar[824]; + UndoChar_825 = undoChar[825]; + UndoChar_826 = undoChar[826]; + UndoChar_827 = undoChar[827]; + UndoChar_828 = undoChar[828]; + UndoChar_829 = undoChar[829]; + UndoChar_830 = undoChar[830]; + UndoChar_831 = undoChar[831]; + UndoChar_832 = undoChar[832]; + UndoChar_833 = undoChar[833]; + UndoChar_834 = undoChar[834]; + UndoChar_835 = undoChar[835]; + UndoChar_836 = undoChar[836]; + UndoChar_837 = undoChar[837]; + UndoChar_838 = undoChar[838]; + UndoChar_839 = undoChar[839]; + UndoChar_840 = undoChar[840]; + UndoChar_841 = undoChar[841]; + UndoChar_842 = undoChar[842]; + UndoChar_843 = undoChar[843]; + UndoChar_844 = undoChar[844]; + UndoChar_845 = undoChar[845]; + UndoChar_846 = undoChar[846]; + UndoChar_847 = undoChar[847]; + UndoChar_848 = undoChar[848]; + UndoChar_849 = undoChar[849]; + UndoChar_850 = undoChar[850]; + UndoChar_851 = undoChar[851]; + UndoChar_852 = undoChar[852]; + UndoChar_853 = undoChar[853]; + UndoChar_854 = undoChar[854]; + UndoChar_855 = undoChar[855]; + UndoChar_856 = undoChar[856]; + UndoChar_857 = undoChar[857]; + UndoChar_858 = undoChar[858]; + UndoChar_859 = undoChar[859]; + UndoChar_860 = undoChar[860]; + UndoChar_861 = undoChar[861]; + UndoChar_862 = undoChar[862]; + UndoChar_863 = undoChar[863]; + UndoChar_864 = undoChar[864]; + UndoChar_865 = undoChar[865]; + UndoChar_866 = undoChar[866]; + UndoChar_867 = undoChar[867]; + UndoChar_868 = undoChar[868]; + UndoChar_869 = undoChar[869]; + UndoChar_870 = undoChar[870]; + UndoChar_871 = undoChar[871]; + UndoChar_872 = undoChar[872]; + UndoChar_873 = undoChar[873]; + UndoChar_874 = undoChar[874]; + UndoChar_875 = undoChar[875]; + UndoChar_876 = undoChar[876]; + UndoChar_877 = undoChar[877]; + UndoChar_878 = undoChar[878]; + UndoChar_879 = undoChar[879]; + UndoChar_880 = undoChar[880]; + UndoChar_881 = undoChar[881]; + UndoChar_882 = undoChar[882]; + UndoChar_883 = undoChar[883]; + UndoChar_884 = undoChar[884]; + UndoChar_885 = undoChar[885]; + UndoChar_886 = undoChar[886]; + UndoChar_887 = undoChar[887]; + UndoChar_888 = undoChar[888]; + UndoChar_889 = undoChar[889]; + UndoChar_890 = undoChar[890]; + UndoChar_891 = undoChar[891]; + UndoChar_892 = undoChar[892]; + UndoChar_893 = undoChar[893]; + UndoChar_894 = undoChar[894]; + UndoChar_895 = undoChar[895]; + UndoChar_896 = undoChar[896]; + UndoChar_897 = undoChar[897]; + UndoChar_898 = undoChar[898]; + UndoChar_899 = undoChar[899]; + UndoChar_900 = undoChar[900]; + UndoChar_901 = undoChar[901]; + UndoChar_902 = undoChar[902]; + UndoChar_903 = undoChar[903]; + UndoChar_904 = undoChar[904]; + UndoChar_905 = undoChar[905]; + UndoChar_906 = undoChar[906]; + UndoChar_907 = undoChar[907]; + UndoChar_908 = undoChar[908]; + UndoChar_909 = undoChar[909]; + UndoChar_910 = undoChar[910]; + UndoChar_911 = undoChar[911]; + UndoChar_912 = undoChar[912]; + UndoChar_913 = undoChar[913]; + UndoChar_914 = undoChar[914]; + UndoChar_915 = undoChar[915]; + UndoChar_916 = undoChar[916]; + UndoChar_917 = undoChar[917]; + UndoChar_918 = undoChar[918]; + UndoChar_919 = undoChar[919]; + UndoChar_920 = undoChar[920]; + UndoChar_921 = undoChar[921]; + UndoChar_922 = undoChar[922]; + UndoChar_923 = undoChar[923]; + UndoChar_924 = undoChar[924]; + UndoChar_925 = undoChar[925]; + UndoChar_926 = undoChar[926]; + UndoChar_927 = undoChar[927]; + UndoChar_928 = undoChar[928]; + UndoChar_929 = undoChar[929]; + UndoChar_930 = undoChar[930]; + UndoChar_931 = undoChar[931]; + UndoChar_932 = undoChar[932]; + UndoChar_933 = undoChar[933]; + UndoChar_934 = undoChar[934]; + UndoChar_935 = undoChar[935]; + UndoChar_936 = undoChar[936]; + UndoChar_937 = undoChar[937]; + UndoChar_938 = undoChar[938]; + UndoChar_939 = undoChar[939]; + UndoChar_940 = undoChar[940]; + UndoChar_941 = undoChar[941]; + UndoChar_942 = undoChar[942]; + UndoChar_943 = undoChar[943]; + UndoChar_944 = undoChar[944]; + UndoChar_945 = undoChar[945]; + UndoChar_946 = undoChar[946]; + UndoChar_947 = undoChar[947]; + UndoChar_948 = undoChar[948]; + UndoChar_949 = undoChar[949]; + UndoChar_950 = undoChar[950]; + UndoChar_951 = undoChar[951]; + UndoChar_952 = undoChar[952]; + UndoChar_953 = undoChar[953]; + UndoChar_954 = undoChar[954]; + UndoChar_955 = undoChar[955]; + UndoChar_956 = undoChar[956]; + UndoChar_957 = undoChar[957]; + UndoChar_958 = undoChar[958]; + UndoChar_959 = undoChar[959]; + UndoChar_960 = undoChar[960]; + UndoChar_961 = undoChar[961]; + UndoChar_962 = undoChar[962]; + UndoChar_963 = undoChar[963]; + UndoChar_964 = undoChar[964]; + UndoChar_965 = undoChar[965]; + UndoChar_966 = undoChar[966]; + UndoChar_967 = undoChar[967]; + UndoChar_968 = undoChar[968]; + UndoChar_969 = undoChar[969]; + UndoChar_970 = undoChar[970]; + UndoChar_971 = undoChar[971]; + UndoChar_972 = undoChar[972]; + UndoChar_973 = undoChar[973]; + UndoChar_974 = undoChar[974]; + UndoChar_975 = undoChar[975]; + UndoChar_976 = undoChar[976]; + UndoChar_977 = undoChar[977]; + UndoChar_978 = undoChar[978]; + UndoChar_979 = undoChar[979]; + UndoChar_980 = undoChar[980]; + UndoChar_981 = undoChar[981]; + UndoChar_982 = undoChar[982]; + UndoChar_983 = undoChar[983]; + UndoChar_984 = undoChar[984]; + UndoChar_985 = undoChar[985]; + UndoChar_986 = undoChar[986]; + UndoChar_987 = undoChar[987]; + UndoChar_988 = undoChar[988]; + UndoChar_989 = undoChar[989]; + UndoChar_990 = undoChar[990]; + UndoChar_991 = undoChar[991]; + UndoChar_992 = undoChar[992]; + UndoChar_993 = undoChar[993]; + UndoChar_994 = undoChar[994]; + UndoChar_995 = undoChar[995]; + UndoChar_996 = undoChar[996]; + UndoChar_997 = undoChar[997]; + UndoChar_998 = undoChar[998]; + } + UndoPoint = undoPoint; + RedoPoint = redoPoint; + UndoCharPoint = undoCharPoint; + RedoCharPoint = redoCharPoint; + } + + /// /// To be documented. /// public unsafe StbUndoState(Span undoRec = default, Span undoChar = default, short undoPoint = default, short redoPoint = default, int undoCharPoint = default, int redoCharPoint = default) + { + if (undoRec != default) + { + UndoRec_0 = undoRec[0]; + UndoRec_1 = undoRec[1]; + UndoRec_2 = undoRec[2]; + UndoRec_3 = undoRec[3]; + UndoRec_4 = undoRec[4]; + UndoRec_5 = undoRec[5]; + UndoRec_6 = undoRec[6]; + UndoRec_7 = undoRec[7]; + UndoRec_8 = undoRec[8]; + UndoRec_9 = undoRec[9]; + UndoRec_10 = undoRec[10]; + UndoRec_11 = undoRec[11]; + UndoRec_12 = undoRec[12]; + UndoRec_13 = undoRec[13]; + UndoRec_14 = undoRec[14]; + UndoRec_15 = undoRec[15]; + UndoRec_16 = undoRec[16]; + UndoRec_17 = undoRec[17]; + UndoRec_18 = undoRec[18]; + UndoRec_19 = undoRec[19]; + UndoRec_20 = undoRec[20]; + UndoRec_21 = undoRec[21]; + UndoRec_22 = undoRec[22]; + UndoRec_23 = undoRec[23]; + UndoRec_24 = undoRec[24]; + UndoRec_25 = undoRec[25]; + UndoRec_26 = undoRec[26]; + UndoRec_27 = undoRec[27]; + UndoRec_28 = undoRec[28]; + UndoRec_29 = undoRec[29]; + UndoRec_30 = undoRec[30]; + UndoRec_31 = undoRec[31]; + UndoRec_32 = undoRec[32]; + UndoRec_33 = undoRec[33]; + UndoRec_34 = undoRec[34]; + UndoRec_35 = undoRec[35]; + UndoRec_36 = undoRec[36]; + UndoRec_37 = undoRec[37]; + UndoRec_38 = undoRec[38]; + UndoRec_39 = undoRec[39]; + UndoRec_40 = undoRec[40]; + UndoRec_41 = undoRec[41]; + UndoRec_42 = undoRec[42]; + UndoRec_43 = undoRec[43]; + UndoRec_44 = undoRec[44]; + UndoRec_45 = undoRec[45]; + UndoRec_46 = undoRec[46]; + UndoRec_47 = undoRec[47]; + UndoRec_48 = undoRec[48]; + UndoRec_49 = undoRec[49]; + UndoRec_50 = undoRec[50]; + UndoRec_51 = undoRec[51]; + UndoRec_52 = undoRec[52]; + UndoRec_53 = undoRec[53]; + UndoRec_54 = undoRec[54]; + UndoRec_55 = undoRec[55]; + UndoRec_56 = undoRec[56]; + UndoRec_57 = undoRec[57]; + UndoRec_58 = undoRec[58]; + UndoRec_59 = undoRec[59]; + UndoRec_60 = undoRec[60]; + UndoRec_61 = undoRec[61]; + UndoRec_62 = undoRec[62]; + UndoRec_63 = undoRec[63]; + UndoRec_64 = undoRec[64]; + UndoRec_65 = undoRec[65]; + UndoRec_66 = undoRec[66]; + UndoRec_67 = undoRec[67]; + UndoRec_68 = undoRec[68]; + UndoRec_69 = undoRec[69]; + UndoRec_70 = undoRec[70]; + UndoRec_71 = undoRec[71]; + UndoRec_72 = undoRec[72]; + UndoRec_73 = undoRec[73]; + UndoRec_74 = undoRec[74]; + UndoRec_75 = undoRec[75]; + UndoRec_76 = undoRec[76]; + UndoRec_77 = undoRec[77]; + UndoRec_78 = undoRec[78]; + UndoRec_79 = undoRec[79]; + UndoRec_80 = undoRec[80]; + UndoRec_81 = undoRec[81]; + UndoRec_82 = undoRec[82]; + UndoRec_83 = undoRec[83]; + UndoRec_84 = undoRec[84]; + UndoRec_85 = undoRec[85]; + UndoRec_86 = undoRec[86]; + UndoRec_87 = undoRec[87]; + UndoRec_88 = undoRec[88]; + UndoRec_89 = undoRec[89]; + UndoRec_90 = undoRec[90]; + UndoRec_91 = undoRec[91]; + UndoRec_92 = undoRec[92]; + UndoRec_93 = undoRec[93]; + UndoRec_94 = undoRec[94]; + UndoRec_95 = undoRec[95]; + UndoRec_96 = undoRec[96]; + UndoRec_97 = undoRec[97]; + UndoRec_98 = undoRec[98]; + } + if (undoChar != default) + { + UndoChar_0 = undoChar[0]; + UndoChar_1 = undoChar[1]; + UndoChar_2 = undoChar[2]; + UndoChar_3 = undoChar[3]; + UndoChar_4 = undoChar[4]; + UndoChar_5 = undoChar[5]; + UndoChar_6 = undoChar[6]; + UndoChar_7 = undoChar[7]; + UndoChar_8 = undoChar[8]; + UndoChar_9 = undoChar[9]; + UndoChar_10 = undoChar[10]; + UndoChar_11 = undoChar[11]; + UndoChar_12 = undoChar[12]; + UndoChar_13 = undoChar[13]; + UndoChar_14 = undoChar[14]; + UndoChar_15 = undoChar[15]; + UndoChar_16 = undoChar[16]; + UndoChar_17 = undoChar[17]; + UndoChar_18 = undoChar[18]; + UndoChar_19 = undoChar[19]; + UndoChar_20 = undoChar[20]; + UndoChar_21 = undoChar[21]; + UndoChar_22 = undoChar[22]; + UndoChar_23 = undoChar[23]; + UndoChar_24 = undoChar[24]; + UndoChar_25 = undoChar[25]; + UndoChar_26 = undoChar[26]; + UndoChar_27 = undoChar[27]; + UndoChar_28 = undoChar[28]; + UndoChar_29 = undoChar[29]; + UndoChar_30 = undoChar[30]; + UndoChar_31 = undoChar[31]; + UndoChar_32 = undoChar[32]; + UndoChar_33 = undoChar[33]; + UndoChar_34 = undoChar[34]; + UndoChar_35 = undoChar[35]; + UndoChar_36 = undoChar[36]; + UndoChar_37 = undoChar[37]; + UndoChar_38 = undoChar[38]; + UndoChar_39 = undoChar[39]; + UndoChar_40 = undoChar[40]; + UndoChar_41 = undoChar[41]; + UndoChar_42 = undoChar[42]; + UndoChar_43 = undoChar[43]; + UndoChar_44 = undoChar[44]; + UndoChar_45 = undoChar[45]; + UndoChar_46 = undoChar[46]; + UndoChar_47 = undoChar[47]; + UndoChar_48 = undoChar[48]; + UndoChar_49 = undoChar[49]; + UndoChar_50 = undoChar[50]; + UndoChar_51 = undoChar[51]; + UndoChar_52 = undoChar[52]; + UndoChar_53 = undoChar[53]; + UndoChar_54 = undoChar[54]; + UndoChar_55 = undoChar[55]; + UndoChar_56 = undoChar[56]; + UndoChar_57 = undoChar[57]; + UndoChar_58 = undoChar[58]; + UndoChar_59 = undoChar[59]; + UndoChar_60 = undoChar[60]; + UndoChar_61 = undoChar[61]; + UndoChar_62 = undoChar[62]; + UndoChar_63 = undoChar[63]; + UndoChar_64 = undoChar[64]; + UndoChar_65 = undoChar[65]; + UndoChar_66 = undoChar[66]; + UndoChar_67 = undoChar[67]; + UndoChar_68 = undoChar[68]; + UndoChar_69 = undoChar[69]; + UndoChar_70 = undoChar[70]; + UndoChar_71 = undoChar[71]; + UndoChar_72 = undoChar[72]; + UndoChar_73 = undoChar[73]; + UndoChar_74 = undoChar[74]; + UndoChar_75 = undoChar[75]; + UndoChar_76 = undoChar[76]; + UndoChar_77 = undoChar[77]; + UndoChar_78 = undoChar[78]; + UndoChar_79 = undoChar[79]; + UndoChar_80 = undoChar[80]; + UndoChar_81 = undoChar[81]; + UndoChar_82 = undoChar[82]; + UndoChar_83 = undoChar[83]; + UndoChar_84 = undoChar[84]; + UndoChar_85 = undoChar[85]; + UndoChar_86 = undoChar[86]; + UndoChar_87 = undoChar[87]; + UndoChar_88 = undoChar[88]; + UndoChar_89 = undoChar[89]; + UndoChar_90 = undoChar[90]; + UndoChar_91 = undoChar[91]; + UndoChar_92 = undoChar[92]; + UndoChar_93 = undoChar[93]; + UndoChar_94 = undoChar[94]; + UndoChar_95 = undoChar[95]; + UndoChar_96 = undoChar[96]; + UndoChar_97 = undoChar[97]; + UndoChar_98 = undoChar[98]; + UndoChar_99 = undoChar[99]; + UndoChar_100 = undoChar[100]; + UndoChar_101 = undoChar[101]; + UndoChar_102 = undoChar[102]; + UndoChar_103 = undoChar[103]; + UndoChar_104 = undoChar[104]; + UndoChar_105 = undoChar[105]; + UndoChar_106 = undoChar[106]; + UndoChar_107 = undoChar[107]; + UndoChar_108 = undoChar[108]; + UndoChar_109 = undoChar[109]; + UndoChar_110 = undoChar[110]; + UndoChar_111 = undoChar[111]; + UndoChar_112 = undoChar[112]; + UndoChar_113 = undoChar[113]; + UndoChar_114 = undoChar[114]; + UndoChar_115 = undoChar[115]; + UndoChar_116 = undoChar[116]; + UndoChar_117 = undoChar[117]; + UndoChar_118 = undoChar[118]; + UndoChar_119 = undoChar[119]; + UndoChar_120 = undoChar[120]; + UndoChar_121 = undoChar[121]; + UndoChar_122 = undoChar[122]; + UndoChar_123 = undoChar[123]; + UndoChar_124 = undoChar[124]; + UndoChar_125 = undoChar[125]; + UndoChar_126 = undoChar[126]; + UndoChar_127 = undoChar[127]; + UndoChar_128 = undoChar[128]; + UndoChar_129 = undoChar[129]; + UndoChar_130 = undoChar[130]; + UndoChar_131 = undoChar[131]; + UndoChar_132 = undoChar[132]; + UndoChar_133 = undoChar[133]; + UndoChar_134 = undoChar[134]; + UndoChar_135 = undoChar[135]; + UndoChar_136 = undoChar[136]; + UndoChar_137 = undoChar[137]; + UndoChar_138 = undoChar[138]; + UndoChar_139 = undoChar[139]; + UndoChar_140 = undoChar[140]; + UndoChar_141 = undoChar[141]; + UndoChar_142 = undoChar[142]; + UndoChar_143 = undoChar[143]; + UndoChar_144 = undoChar[144]; + UndoChar_145 = undoChar[145]; + UndoChar_146 = undoChar[146]; + UndoChar_147 = undoChar[147]; + UndoChar_148 = undoChar[148]; + UndoChar_149 = undoChar[149]; + UndoChar_150 = undoChar[150]; + UndoChar_151 = undoChar[151]; + UndoChar_152 = undoChar[152]; + UndoChar_153 = undoChar[153]; + UndoChar_154 = undoChar[154]; + UndoChar_155 = undoChar[155]; + UndoChar_156 = undoChar[156]; + UndoChar_157 = undoChar[157]; + UndoChar_158 = undoChar[158]; + UndoChar_159 = undoChar[159]; + UndoChar_160 = undoChar[160]; + UndoChar_161 = undoChar[161]; + UndoChar_162 = undoChar[162]; + UndoChar_163 = undoChar[163]; + UndoChar_164 = undoChar[164]; + UndoChar_165 = undoChar[165]; + UndoChar_166 = undoChar[166]; + UndoChar_167 = undoChar[167]; + UndoChar_168 = undoChar[168]; + UndoChar_169 = undoChar[169]; + UndoChar_170 = undoChar[170]; + UndoChar_171 = undoChar[171]; + UndoChar_172 = undoChar[172]; + UndoChar_173 = undoChar[173]; + UndoChar_174 = undoChar[174]; + UndoChar_175 = undoChar[175]; + UndoChar_176 = undoChar[176]; + UndoChar_177 = undoChar[177]; + UndoChar_178 = undoChar[178]; + UndoChar_179 = undoChar[179]; + UndoChar_180 = undoChar[180]; + UndoChar_181 = undoChar[181]; + UndoChar_182 = undoChar[182]; + UndoChar_183 = undoChar[183]; + UndoChar_184 = undoChar[184]; + UndoChar_185 = undoChar[185]; + UndoChar_186 = undoChar[186]; + UndoChar_187 = undoChar[187]; + UndoChar_188 = undoChar[188]; + UndoChar_189 = undoChar[189]; + UndoChar_190 = undoChar[190]; + UndoChar_191 = undoChar[191]; + UndoChar_192 = undoChar[192]; + UndoChar_193 = undoChar[193]; + UndoChar_194 = undoChar[194]; + UndoChar_195 = undoChar[195]; + UndoChar_196 = undoChar[196]; + UndoChar_197 = undoChar[197]; + UndoChar_198 = undoChar[198]; + UndoChar_199 = undoChar[199]; + UndoChar_200 = undoChar[200]; + UndoChar_201 = undoChar[201]; + UndoChar_202 = undoChar[202]; + UndoChar_203 = undoChar[203]; + UndoChar_204 = undoChar[204]; + UndoChar_205 = undoChar[205]; + UndoChar_206 = undoChar[206]; + UndoChar_207 = undoChar[207]; + UndoChar_208 = undoChar[208]; + UndoChar_209 = undoChar[209]; + UndoChar_210 = undoChar[210]; + UndoChar_211 = undoChar[211]; + UndoChar_212 = undoChar[212]; + UndoChar_213 = undoChar[213]; + UndoChar_214 = undoChar[214]; + UndoChar_215 = undoChar[215]; + UndoChar_216 = undoChar[216]; + UndoChar_217 = undoChar[217]; + UndoChar_218 = undoChar[218]; + UndoChar_219 = undoChar[219]; + UndoChar_220 = undoChar[220]; + UndoChar_221 = undoChar[221]; + UndoChar_222 = undoChar[222]; + UndoChar_223 = undoChar[223]; + UndoChar_224 = undoChar[224]; + UndoChar_225 = undoChar[225]; + UndoChar_226 = undoChar[226]; + UndoChar_227 = undoChar[227]; + UndoChar_228 = undoChar[228]; + UndoChar_229 = undoChar[229]; + UndoChar_230 = undoChar[230]; + UndoChar_231 = undoChar[231]; + UndoChar_232 = undoChar[232]; + UndoChar_233 = undoChar[233]; + UndoChar_234 = undoChar[234]; + UndoChar_235 = undoChar[235]; + UndoChar_236 = undoChar[236]; + UndoChar_237 = undoChar[237]; + UndoChar_238 = undoChar[238]; + UndoChar_239 = undoChar[239]; + UndoChar_240 = undoChar[240]; + UndoChar_241 = undoChar[241]; + UndoChar_242 = undoChar[242]; + UndoChar_243 = undoChar[243]; + UndoChar_244 = undoChar[244]; + UndoChar_245 = undoChar[245]; + UndoChar_246 = undoChar[246]; + UndoChar_247 = undoChar[247]; + UndoChar_248 = undoChar[248]; + UndoChar_249 = undoChar[249]; + UndoChar_250 = undoChar[250]; + UndoChar_251 = undoChar[251]; + UndoChar_252 = undoChar[252]; + UndoChar_253 = undoChar[253]; + UndoChar_254 = undoChar[254]; + UndoChar_255 = undoChar[255]; + UndoChar_256 = undoChar[256]; + UndoChar_257 = undoChar[257]; + UndoChar_258 = undoChar[258]; + UndoChar_259 = undoChar[259]; + UndoChar_260 = undoChar[260]; + UndoChar_261 = undoChar[261]; + UndoChar_262 = undoChar[262]; + UndoChar_263 = undoChar[263]; + UndoChar_264 = undoChar[264]; + UndoChar_265 = undoChar[265]; + UndoChar_266 = undoChar[266]; + UndoChar_267 = undoChar[267]; + UndoChar_268 = undoChar[268]; + UndoChar_269 = undoChar[269]; + UndoChar_270 = undoChar[270]; + UndoChar_271 = undoChar[271]; + UndoChar_272 = undoChar[272]; + UndoChar_273 = undoChar[273]; + UndoChar_274 = undoChar[274]; + UndoChar_275 = undoChar[275]; + UndoChar_276 = undoChar[276]; + UndoChar_277 = undoChar[277]; + UndoChar_278 = undoChar[278]; + UndoChar_279 = undoChar[279]; + UndoChar_280 = undoChar[280]; + UndoChar_281 = undoChar[281]; + UndoChar_282 = undoChar[282]; + UndoChar_283 = undoChar[283]; + UndoChar_284 = undoChar[284]; + UndoChar_285 = undoChar[285]; + UndoChar_286 = undoChar[286]; + UndoChar_287 = undoChar[287]; + UndoChar_288 = undoChar[288]; + UndoChar_289 = undoChar[289]; + UndoChar_290 = undoChar[290]; + UndoChar_291 = undoChar[291]; + UndoChar_292 = undoChar[292]; + UndoChar_293 = undoChar[293]; + UndoChar_294 = undoChar[294]; + UndoChar_295 = undoChar[295]; + UndoChar_296 = undoChar[296]; + UndoChar_297 = undoChar[297]; + UndoChar_298 = undoChar[298]; + UndoChar_299 = undoChar[299]; + UndoChar_300 = undoChar[300]; + UndoChar_301 = undoChar[301]; + UndoChar_302 = undoChar[302]; + UndoChar_303 = undoChar[303]; + UndoChar_304 = undoChar[304]; + UndoChar_305 = undoChar[305]; + UndoChar_306 = undoChar[306]; + UndoChar_307 = undoChar[307]; + UndoChar_308 = undoChar[308]; + UndoChar_309 = undoChar[309]; + UndoChar_310 = undoChar[310]; + UndoChar_311 = undoChar[311]; + UndoChar_312 = undoChar[312]; + UndoChar_313 = undoChar[313]; + UndoChar_314 = undoChar[314]; + UndoChar_315 = undoChar[315]; + UndoChar_316 = undoChar[316]; + UndoChar_317 = undoChar[317]; + UndoChar_318 = undoChar[318]; + UndoChar_319 = undoChar[319]; + UndoChar_320 = undoChar[320]; + UndoChar_321 = undoChar[321]; + UndoChar_322 = undoChar[322]; + UndoChar_323 = undoChar[323]; + UndoChar_324 = undoChar[324]; + UndoChar_325 = undoChar[325]; + UndoChar_326 = undoChar[326]; + UndoChar_327 = undoChar[327]; + UndoChar_328 = undoChar[328]; + UndoChar_329 = undoChar[329]; + UndoChar_330 = undoChar[330]; + UndoChar_331 = undoChar[331]; + UndoChar_332 = undoChar[332]; + UndoChar_333 = undoChar[333]; + UndoChar_334 = undoChar[334]; + UndoChar_335 = undoChar[335]; + UndoChar_336 = undoChar[336]; + UndoChar_337 = undoChar[337]; + UndoChar_338 = undoChar[338]; + UndoChar_339 = undoChar[339]; + UndoChar_340 = undoChar[340]; + UndoChar_341 = undoChar[341]; + UndoChar_342 = undoChar[342]; + UndoChar_343 = undoChar[343]; + UndoChar_344 = undoChar[344]; + UndoChar_345 = undoChar[345]; + UndoChar_346 = undoChar[346]; + UndoChar_347 = undoChar[347]; + UndoChar_348 = undoChar[348]; + UndoChar_349 = undoChar[349]; + UndoChar_350 = undoChar[350]; + UndoChar_351 = undoChar[351]; + UndoChar_352 = undoChar[352]; + UndoChar_353 = undoChar[353]; + UndoChar_354 = undoChar[354]; + UndoChar_355 = undoChar[355]; + UndoChar_356 = undoChar[356]; + UndoChar_357 = undoChar[357]; + UndoChar_358 = undoChar[358]; + UndoChar_359 = undoChar[359]; + UndoChar_360 = undoChar[360]; + UndoChar_361 = undoChar[361]; + UndoChar_362 = undoChar[362]; + UndoChar_363 = undoChar[363]; + UndoChar_364 = undoChar[364]; + UndoChar_365 = undoChar[365]; + UndoChar_366 = undoChar[366]; + UndoChar_367 = undoChar[367]; + UndoChar_368 = undoChar[368]; + UndoChar_369 = undoChar[369]; + UndoChar_370 = undoChar[370]; + UndoChar_371 = undoChar[371]; + UndoChar_372 = undoChar[372]; + UndoChar_373 = undoChar[373]; + UndoChar_374 = undoChar[374]; + UndoChar_375 = undoChar[375]; + UndoChar_376 = undoChar[376]; + UndoChar_377 = undoChar[377]; + UndoChar_378 = undoChar[378]; + UndoChar_379 = undoChar[379]; + UndoChar_380 = undoChar[380]; + UndoChar_381 = undoChar[381]; + UndoChar_382 = undoChar[382]; + UndoChar_383 = undoChar[383]; + UndoChar_384 = undoChar[384]; + UndoChar_385 = undoChar[385]; + UndoChar_386 = undoChar[386]; + UndoChar_387 = undoChar[387]; + UndoChar_388 = undoChar[388]; + UndoChar_389 = undoChar[389]; + UndoChar_390 = undoChar[390]; + UndoChar_391 = undoChar[391]; + UndoChar_392 = undoChar[392]; + UndoChar_393 = undoChar[393]; + UndoChar_394 = undoChar[394]; + UndoChar_395 = undoChar[395]; + UndoChar_396 = undoChar[396]; + UndoChar_397 = undoChar[397]; + UndoChar_398 = undoChar[398]; + UndoChar_399 = undoChar[399]; + UndoChar_400 = undoChar[400]; + UndoChar_401 = undoChar[401]; + UndoChar_402 = undoChar[402]; + UndoChar_403 = undoChar[403]; + UndoChar_404 = undoChar[404]; + UndoChar_405 = undoChar[405]; + UndoChar_406 = undoChar[406]; + UndoChar_407 = undoChar[407]; + UndoChar_408 = undoChar[408]; + UndoChar_409 = undoChar[409]; + UndoChar_410 = undoChar[410]; + UndoChar_411 = undoChar[411]; + UndoChar_412 = undoChar[412]; + UndoChar_413 = undoChar[413]; + UndoChar_414 = undoChar[414]; + UndoChar_415 = undoChar[415]; + UndoChar_416 = undoChar[416]; + UndoChar_417 = undoChar[417]; + UndoChar_418 = undoChar[418]; + UndoChar_419 = undoChar[419]; + UndoChar_420 = undoChar[420]; + UndoChar_421 = undoChar[421]; + UndoChar_422 = undoChar[422]; + UndoChar_423 = undoChar[423]; + UndoChar_424 = undoChar[424]; + UndoChar_425 = undoChar[425]; + UndoChar_426 = undoChar[426]; + UndoChar_427 = undoChar[427]; + UndoChar_428 = undoChar[428]; + UndoChar_429 = undoChar[429]; + UndoChar_430 = undoChar[430]; + UndoChar_431 = undoChar[431]; + UndoChar_432 = undoChar[432]; + UndoChar_433 = undoChar[433]; + UndoChar_434 = undoChar[434]; + UndoChar_435 = undoChar[435]; + UndoChar_436 = undoChar[436]; + UndoChar_437 = undoChar[437]; + UndoChar_438 = undoChar[438]; + UndoChar_439 = undoChar[439]; + UndoChar_440 = undoChar[440]; + UndoChar_441 = undoChar[441]; + UndoChar_442 = undoChar[442]; + UndoChar_443 = undoChar[443]; + UndoChar_444 = undoChar[444]; + UndoChar_445 = undoChar[445]; + UndoChar_446 = undoChar[446]; + UndoChar_447 = undoChar[447]; + UndoChar_448 = undoChar[448]; + UndoChar_449 = undoChar[449]; + UndoChar_450 = undoChar[450]; + UndoChar_451 = undoChar[451]; + UndoChar_452 = undoChar[452]; + UndoChar_453 = undoChar[453]; + UndoChar_454 = undoChar[454]; + UndoChar_455 = undoChar[455]; + UndoChar_456 = undoChar[456]; + UndoChar_457 = undoChar[457]; + UndoChar_458 = undoChar[458]; + UndoChar_459 = undoChar[459]; + UndoChar_460 = undoChar[460]; + UndoChar_461 = undoChar[461]; + UndoChar_462 = undoChar[462]; + UndoChar_463 = undoChar[463]; + UndoChar_464 = undoChar[464]; + UndoChar_465 = undoChar[465]; + UndoChar_466 = undoChar[466]; + UndoChar_467 = undoChar[467]; + UndoChar_468 = undoChar[468]; + UndoChar_469 = undoChar[469]; + UndoChar_470 = undoChar[470]; + UndoChar_471 = undoChar[471]; + UndoChar_472 = undoChar[472]; + UndoChar_473 = undoChar[473]; + UndoChar_474 = undoChar[474]; + UndoChar_475 = undoChar[475]; + UndoChar_476 = undoChar[476]; + UndoChar_477 = undoChar[477]; + UndoChar_478 = undoChar[478]; + UndoChar_479 = undoChar[479]; + UndoChar_480 = undoChar[480]; + UndoChar_481 = undoChar[481]; + UndoChar_482 = undoChar[482]; + UndoChar_483 = undoChar[483]; + UndoChar_484 = undoChar[484]; + UndoChar_485 = undoChar[485]; + UndoChar_486 = undoChar[486]; + UndoChar_487 = undoChar[487]; + UndoChar_488 = undoChar[488]; + UndoChar_489 = undoChar[489]; + UndoChar_490 = undoChar[490]; + UndoChar_491 = undoChar[491]; + UndoChar_492 = undoChar[492]; + UndoChar_493 = undoChar[493]; + UndoChar_494 = undoChar[494]; + UndoChar_495 = undoChar[495]; + UndoChar_496 = undoChar[496]; + UndoChar_497 = undoChar[497]; + UndoChar_498 = undoChar[498]; + UndoChar_499 = undoChar[499]; + UndoChar_500 = undoChar[500]; + UndoChar_501 = undoChar[501]; + UndoChar_502 = undoChar[502]; + UndoChar_503 = undoChar[503]; + UndoChar_504 = undoChar[504]; + UndoChar_505 = undoChar[505]; + UndoChar_506 = undoChar[506]; + UndoChar_507 = undoChar[507]; + UndoChar_508 = undoChar[508]; + UndoChar_509 = undoChar[509]; + UndoChar_510 = undoChar[510]; + UndoChar_511 = undoChar[511]; + UndoChar_512 = undoChar[512]; + UndoChar_513 = undoChar[513]; + UndoChar_514 = undoChar[514]; + UndoChar_515 = undoChar[515]; + UndoChar_516 = undoChar[516]; + UndoChar_517 = undoChar[517]; + UndoChar_518 = undoChar[518]; + UndoChar_519 = undoChar[519]; + UndoChar_520 = undoChar[520]; + UndoChar_521 = undoChar[521]; + UndoChar_522 = undoChar[522]; + UndoChar_523 = undoChar[523]; + UndoChar_524 = undoChar[524]; + UndoChar_525 = undoChar[525]; + UndoChar_526 = undoChar[526]; + UndoChar_527 = undoChar[527]; + UndoChar_528 = undoChar[528]; + UndoChar_529 = undoChar[529]; + UndoChar_530 = undoChar[530]; + UndoChar_531 = undoChar[531]; + UndoChar_532 = undoChar[532]; + UndoChar_533 = undoChar[533]; + UndoChar_534 = undoChar[534]; + UndoChar_535 = undoChar[535]; + UndoChar_536 = undoChar[536]; + UndoChar_537 = undoChar[537]; + UndoChar_538 = undoChar[538]; + UndoChar_539 = undoChar[539]; + UndoChar_540 = undoChar[540]; + UndoChar_541 = undoChar[541]; + UndoChar_542 = undoChar[542]; + UndoChar_543 = undoChar[543]; + UndoChar_544 = undoChar[544]; + UndoChar_545 = undoChar[545]; + UndoChar_546 = undoChar[546]; + UndoChar_547 = undoChar[547]; + UndoChar_548 = undoChar[548]; + UndoChar_549 = undoChar[549]; + UndoChar_550 = undoChar[550]; + UndoChar_551 = undoChar[551]; + UndoChar_552 = undoChar[552]; + UndoChar_553 = undoChar[553]; + UndoChar_554 = undoChar[554]; + UndoChar_555 = undoChar[555]; + UndoChar_556 = undoChar[556]; + UndoChar_557 = undoChar[557]; + UndoChar_558 = undoChar[558]; + UndoChar_559 = undoChar[559]; + UndoChar_560 = undoChar[560]; + UndoChar_561 = undoChar[561]; + UndoChar_562 = undoChar[562]; + UndoChar_563 = undoChar[563]; + UndoChar_564 = undoChar[564]; + UndoChar_565 = undoChar[565]; + UndoChar_566 = undoChar[566]; + UndoChar_567 = undoChar[567]; + UndoChar_568 = undoChar[568]; + UndoChar_569 = undoChar[569]; + UndoChar_570 = undoChar[570]; + UndoChar_571 = undoChar[571]; + UndoChar_572 = undoChar[572]; + UndoChar_573 = undoChar[573]; + UndoChar_574 = undoChar[574]; + UndoChar_575 = undoChar[575]; + UndoChar_576 = undoChar[576]; + UndoChar_577 = undoChar[577]; + UndoChar_578 = undoChar[578]; + UndoChar_579 = undoChar[579]; + UndoChar_580 = undoChar[580]; + UndoChar_581 = undoChar[581]; + UndoChar_582 = undoChar[582]; + UndoChar_583 = undoChar[583]; + UndoChar_584 = undoChar[584]; + UndoChar_585 = undoChar[585]; + UndoChar_586 = undoChar[586]; + UndoChar_587 = undoChar[587]; + UndoChar_588 = undoChar[588]; + UndoChar_589 = undoChar[589]; + UndoChar_590 = undoChar[590]; + UndoChar_591 = undoChar[591]; + UndoChar_592 = undoChar[592]; + UndoChar_593 = undoChar[593]; + UndoChar_594 = undoChar[594]; + UndoChar_595 = undoChar[595]; + UndoChar_596 = undoChar[596]; + UndoChar_597 = undoChar[597]; + UndoChar_598 = undoChar[598]; + UndoChar_599 = undoChar[599]; + UndoChar_600 = undoChar[600]; + UndoChar_601 = undoChar[601]; + UndoChar_602 = undoChar[602]; + UndoChar_603 = undoChar[603]; + UndoChar_604 = undoChar[604]; + UndoChar_605 = undoChar[605]; + UndoChar_606 = undoChar[606]; + UndoChar_607 = undoChar[607]; + UndoChar_608 = undoChar[608]; + UndoChar_609 = undoChar[609]; + UndoChar_610 = undoChar[610]; + UndoChar_611 = undoChar[611]; + UndoChar_612 = undoChar[612]; + UndoChar_613 = undoChar[613]; + UndoChar_614 = undoChar[614]; + UndoChar_615 = undoChar[615]; + UndoChar_616 = undoChar[616]; + UndoChar_617 = undoChar[617]; + UndoChar_618 = undoChar[618]; + UndoChar_619 = undoChar[619]; + UndoChar_620 = undoChar[620]; + UndoChar_621 = undoChar[621]; + UndoChar_622 = undoChar[622]; + UndoChar_623 = undoChar[623]; + UndoChar_624 = undoChar[624]; + UndoChar_625 = undoChar[625]; + UndoChar_626 = undoChar[626]; + UndoChar_627 = undoChar[627]; + UndoChar_628 = undoChar[628]; + UndoChar_629 = undoChar[629]; + UndoChar_630 = undoChar[630]; + UndoChar_631 = undoChar[631]; + UndoChar_632 = undoChar[632]; + UndoChar_633 = undoChar[633]; + UndoChar_634 = undoChar[634]; + UndoChar_635 = undoChar[635]; + UndoChar_636 = undoChar[636]; + UndoChar_637 = undoChar[637]; + UndoChar_638 = undoChar[638]; + UndoChar_639 = undoChar[639]; + UndoChar_640 = undoChar[640]; + UndoChar_641 = undoChar[641]; + UndoChar_642 = undoChar[642]; + UndoChar_643 = undoChar[643]; + UndoChar_644 = undoChar[644]; + UndoChar_645 = undoChar[645]; + UndoChar_646 = undoChar[646]; + UndoChar_647 = undoChar[647]; + UndoChar_648 = undoChar[648]; + UndoChar_649 = undoChar[649]; + UndoChar_650 = undoChar[650]; + UndoChar_651 = undoChar[651]; + UndoChar_652 = undoChar[652]; + UndoChar_653 = undoChar[653]; + UndoChar_654 = undoChar[654]; + UndoChar_655 = undoChar[655]; + UndoChar_656 = undoChar[656]; + UndoChar_657 = undoChar[657]; + UndoChar_658 = undoChar[658]; + UndoChar_659 = undoChar[659]; + UndoChar_660 = undoChar[660]; + UndoChar_661 = undoChar[661]; + UndoChar_662 = undoChar[662]; + UndoChar_663 = undoChar[663]; + UndoChar_664 = undoChar[664]; + UndoChar_665 = undoChar[665]; + UndoChar_666 = undoChar[666]; + UndoChar_667 = undoChar[667]; + UndoChar_668 = undoChar[668]; + UndoChar_669 = undoChar[669]; + UndoChar_670 = undoChar[670]; + UndoChar_671 = undoChar[671]; + UndoChar_672 = undoChar[672]; + UndoChar_673 = undoChar[673]; + UndoChar_674 = undoChar[674]; + UndoChar_675 = undoChar[675]; + UndoChar_676 = undoChar[676]; + UndoChar_677 = undoChar[677]; + UndoChar_678 = undoChar[678]; + UndoChar_679 = undoChar[679]; + UndoChar_680 = undoChar[680]; + UndoChar_681 = undoChar[681]; + UndoChar_682 = undoChar[682]; + UndoChar_683 = undoChar[683]; + UndoChar_684 = undoChar[684]; + UndoChar_685 = undoChar[685]; + UndoChar_686 = undoChar[686]; + UndoChar_687 = undoChar[687]; + UndoChar_688 = undoChar[688]; + UndoChar_689 = undoChar[689]; + UndoChar_690 = undoChar[690]; + UndoChar_691 = undoChar[691]; + UndoChar_692 = undoChar[692]; + UndoChar_693 = undoChar[693]; + UndoChar_694 = undoChar[694]; + UndoChar_695 = undoChar[695]; + UndoChar_696 = undoChar[696]; + UndoChar_697 = undoChar[697]; + UndoChar_698 = undoChar[698]; + UndoChar_699 = undoChar[699]; + UndoChar_700 = undoChar[700]; + UndoChar_701 = undoChar[701]; + UndoChar_702 = undoChar[702]; + UndoChar_703 = undoChar[703]; + UndoChar_704 = undoChar[704]; + UndoChar_705 = undoChar[705]; + UndoChar_706 = undoChar[706]; + UndoChar_707 = undoChar[707]; + UndoChar_708 = undoChar[708]; + UndoChar_709 = undoChar[709]; + UndoChar_710 = undoChar[710]; + UndoChar_711 = undoChar[711]; + UndoChar_712 = undoChar[712]; + UndoChar_713 = undoChar[713]; + UndoChar_714 = undoChar[714]; + UndoChar_715 = undoChar[715]; + UndoChar_716 = undoChar[716]; + UndoChar_717 = undoChar[717]; + UndoChar_718 = undoChar[718]; + UndoChar_719 = undoChar[719]; + UndoChar_720 = undoChar[720]; + UndoChar_721 = undoChar[721]; + UndoChar_722 = undoChar[722]; + UndoChar_723 = undoChar[723]; + UndoChar_724 = undoChar[724]; + UndoChar_725 = undoChar[725]; + UndoChar_726 = undoChar[726]; + UndoChar_727 = undoChar[727]; + UndoChar_728 = undoChar[728]; + UndoChar_729 = undoChar[729]; + UndoChar_730 = undoChar[730]; + UndoChar_731 = undoChar[731]; + UndoChar_732 = undoChar[732]; + UndoChar_733 = undoChar[733]; + UndoChar_734 = undoChar[734]; + UndoChar_735 = undoChar[735]; + UndoChar_736 = undoChar[736]; + UndoChar_737 = undoChar[737]; + UndoChar_738 = undoChar[738]; + UndoChar_739 = undoChar[739]; + UndoChar_740 = undoChar[740]; + UndoChar_741 = undoChar[741]; + UndoChar_742 = undoChar[742]; + UndoChar_743 = undoChar[743]; + UndoChar_744 = undoChar[744]; + UndoChar_745 = undoChar[745]; + UndoChar_746 = undoChar[746]; + UndoChar_747 = undoChar[747]; + UndoChar_748 = undoChar[748]; + UndoChar_749 = undoChar[749]; + UndoChar_750 = undoChar[750]; + UndoChar_751 = undoChar[751]; + UndoChar_752 = undoChar[752]; + UndoChar_753 = undoChar[753]; + UndoChar_754 = undoChar[754]; + UndoChar_755 = undoChar[755]; + UndoChar_756 = undoChar[756]; + UndoChar_757 = undoChar[757]; + UndoChar_758 = undoChar[758]; + UndoChar_759 = undoChar[759]; + UndoChar_760 = undoChar[760]; + UndoChar_761 = undoChar[761]; + UndoChar_762 = undoChar[762]; + UndoChar_763 = undoChar[763]; + UndoChar_764 = undoChar[764]; + UndoChar_765 = undoChar[765]; + UndoChar_766 = undoChar[766]; + UndoChar_767 = undoChar[767]; + UndoChar_768 = undoChar[768]; + UndoChar_769 = undoChar[769]; + UndoChar_770 = undoChar[770]; + UndoChar_771 = undoChar[771]; + UndoChar_772 = undoChar[772]; + UndoChar_773 = undoChar[773]; + UndoChar_774 = undoChar[774]; + UndoChar_775 = undoChar[775]; + UndoChar_776 = undoChar[776]; + UndoChar_777 = undoChar[777]; + UndoChar_778 = undoChar[778]; + UndoChar_779 = undoChar[779]; + UndoChar_780 = undoChar[780]; + UndoChar_781 = undoChar[781]; + UndoChar_782 = undoChar[782]; + UndoChar_783 = undoChar[783]; + UndoChar_784 = undoChar[784]; + UndoChar_785 = undoChar[785]; + UndoChar_786 = undoChar[786]; + UndoChar_787 = undoChar[787]; + UndoChar_788 = undoChar[788]; + UndoChar_789 = undoChar[789]; + UndoChar_790 = undoChar[790]; + UndoChar_791 = undoChar[791]; + UndoChar_792 = undoChar[792]; + UndoChar_793 = undoChar[793]; + UndoChar_794 = undoChar[794]; + UndoChar_795 = undoChar[795]; + UndoChar_796 = undoChar[796]; + UndoChar_797 = undoChar[797]; + UndoChar_798 = undoChar[798]; + UndoChar_799 = undoChar[799]; + UndoChar_800 = undoChar[800]; + UndoChar_801 = undoChar[801]; + UndoChar_802 = undoChar[802]; + UndoChar_803 = undoChar[803]; + UndoChar_804 = undoChar[804]; + UndoChar_805 = undoChar[805]; + UndoChar_806 = undoChar[806]; + UndoChar_807 = undoChar[807]; + UndoChar_808 = undoChar[808]; + UndoChar_809 = undoChar[809]; + UndoChar_810 = undoChar[810]; + UndoChar_811 = undoChar[811]; + UndoChar_812 = undoChar[812]; + UndoChar_813 = undoChar[813]; + UndoChar_814 = undoChar[814]; + UndoChar_815 = undoChar[815]; + UndoChar_816 = undoChar[816]; + UndoChar_817 = undoChar[817]; + UndoChar_818 = undoChar[818]; + UndoChar_819 = undoChar[819]; + UndoChar_820 = undoChar[820]; + UndoChar_821 = undoChar[821]; + UndoChar_822 = undoChar[822]; + UndoChar_823 = undoChar[823]; + UndoChar_824 = undoChar[824]; + UndoChar_825 = undoChar[825]; + UndoChar_826 = undoChar[826]; + UndoChar_827 = undoChar[827]; + UndoChar_828 = undoChar[828]; + UndoChar_829 = undoChar[829]; + UndoChar_830 = undoChar[830]; + UndoChar_831 = undoChar[831]; + UndoChar_832 = undoChar[832]; + UndoChar_833 = undoChar[833]; + UndoChar_834 = undoChar[834]; + UndoChar_835 = undoChar[835]; + UndoChar_836 = undoChar[836]; + UndoChar_837 = undoChar[837]; + UndoChar_838 = undoChar[838]; + UndoChar_839 = undoChar[839]; + UndoChar_840 = undoChar[840]; + UndoChar_841 = undoChar[841]; + UndoChar_842 = undoChar[842]; + UndoChar_843 = undoChar[843]; + UndoChar_844 = undoChar[844]; + UndoChar_845 = undoChar[845]; + UndoChar_846 = undoChar[846]; + UndoChar_847 = undoChar[847]; + UndoChar_848 = undoChar[848]; + UndoChar_849 = undoChar[849]; + UndoChar_850 = undoChar[850]; + UndoChar_851 = undoChar[851]; + UndoChar_852 = undoChar[852]; + UndoChar_853 = undoChar[853]; + UndoChar_854 = undoChar[854]; + UndoChar_855 = undoChar[855]; + UndoChar_856 = undoChar[856]; + UndoChar_857 = undoChar[857]; + UndoChar_858 = undoChar[858]; + UndoChar_859 = undoChar[859]; + UndoChar_860 = undoChar[860]; + UndoChar_861 = undoChar[861]; + UndoChar_862 = undoChar[862]; + UndoChar_863 = undoChar[863]; + UndoChar_864 = undoChar[864]; + UndoChar_865 = undoChar[865]; + UndoChar_866 = undoChar[866]; + UndoChar_867 = undoChar[867]; + UndoChar_868 = undoChar[868]; + UndoChar_869 = undoChar[869]; + UndoChar_870 = undoChar[870]; + UndoChar_871 = undoChar[871]; + UndoChar_872 = undoChar[872]; + UndoChar_873 = undoChar[873]; + UndoChar_874 = undoChar[874]; + UndoChar_875 = undoChar[875]; + UndoChar_876 = undoChar[876]; + UndoChar_877 = undoChar[877]; + UndoChar_878 = undoChar[878]; + UndoChar_879 = undoChar[879]; + UndoChar_880 = undoChar[880]; + UndoChar_881 = undoChar[881]; + UndoChar_882 = undoChar[882]; + UndoChar_883 = undoChar[883]; + UndoChar_884 = undoChar[884]; + UndoChar_885 = undoChar[885]; + UndoChar_886 = undoChar[886]; + UndoChar_887 = undoChar[887]; + UndoChar_888 = undoChar[888]; + UndoChar_889 = undoChar[889]; + UndoChar_890 = undoChar[890]; + UndoChar_891 = undoChar[891]; + UndoChar_892 = undoChar[892]; + UndoChar_893 = undoChar[893]; + UndoChar_894 = undoChar[894]; + UndoChar_895 = undoChar[895]; + UndoChar_896 = undoChar[896]; + UndoChar_897 = undoChar[897]; + UndoChar_898 = undoChar[898]; + UndoChar_899 = undoChar[899]; + UndoChar_900 = undoChar[900]; + UndoChar_901 = undoChar[901]; + UndoChar_902 = undoChar[902]; + UndoChar_903 = undoChar[903]; + UndoChar_904 = undoChar[904]; + UndoChar_905 = undoChar[905]; + UndoChar_906 = undoChar[906]; + UndoChar_907 = undoChar[907]; + UndoChar_908 = undoChar[908]; + UndoChar_909 = undoChar[909]; + UndoChar_910 = undoChar[910]; + UndoChar_911 = undoChar[911]; + UndoChar_912 = undoChar[912]; + UndoChar_913 = undoChar[913]; + UndoChar_914 = undoChar[914]; + UndoChar_915 = undoChar[915]; + UndoChar_916 = undoChar[916]; + UndoChar_917 = undoChar[917]; + UndoChar_918 = undoChar[918]; + UndoChar_919 = undoChar[919]; + UndoChar_920 = undoChar[920]; + UndoChar_921 = undoChar[921]; + UndoChar_922 = undoChar[922]; + UndoChar_923 = undoChar[923]; + UndoChar_924 = undoChar[924]; + UndoChar_925 = undoChar[925]; + UndoChar_926 = undoChar[926]; + UndoChar_927 = undoChar[927]; + UndoChar_928 = undoChar[928]; + UndoChar_929 = undoChar[929]; + UndoChar_930 = undoChar[930]; + UndoChar_931 = undoChar[931]; + UndoChar_932 = undoChar[932]; + UndoChar_933 = undoChar[933]; + UndoChar_934 = undoChar[934]; + UndoChar_935 = undoChar[935]; + UndoChar_936 = undoChar[936]; + UndoChar_937 = undoChar[937]; + UndoChar_938 = undoChar[938]; + UndoChar_939 = undoChar[939]; + UndoChar_940 = undoChar[940]; + UndoChar_941 = undoChar[941]; + UndoChar_942 = undoChar[942]; + UndoChar_943 = undoChar[943]; + UndoChar_944 = undoChar[944]; + UndoChar_945 = undoChar[945]; + UndoChar_946 = undoChar[946]; + UndoChar_947 = undoChar[947]; + UndoChar_948 = undoChar[948]; + UndoChar_949 = undoChar[949]; + UndoChar_950 = undoChar[950]; + UndoChar_951 = undoChar[951]; + UndoChar_952 = undoChar[952]; + UndoChar_953 = undoChar[953]; + UndoChar_954 = undoChar[954]; + UndoChar_955 = undoChar[955]; + UndoChar_956 = undoChar[956]; + UndoChar_957 = undoChar[957]; + UndoChar_958 = undoChar[958]; + UndoChar_959 = undoChar[959]; + UndoChar_960 = undoChar[960]; + UndoChar_961 = undoChar[961]; + UndoChar_962 = undoChar[962]; + UndoChar_963 = undoChar[963]; + UndoChar_964 = undoChar[964]; + UndoChar_965 = undoChar[965]; + UndoChar_966 = undoChar[966]; + UndoChar_967 = undoChar[967]; + UndoChar_968 = undoChar[968]; + UndoChar_969 = undoChar[969]; + UndoChar_970 = undoChar[970]; + UndoChar_971 = undoChar[971]; + UndoChar_972 = undoChar[972]; + UndoChar_973 = undoChar[973]; + UndoChar_974 = undoChar[974]; + UndoChar_975 = undoChar[975]; + UndoChar_976 = undoChar[976]; + UndoChar_977 = undoChar[977]; + UndoChar_978 = undoChar[978]; + UndoChar_979 = undoChar[979]; + UndoChar_980 = undoChar[980]; + UndoChar_981 = undoChar[981]; + UndoChar_982 = undoChar[982]; + UndoChar_983 = undoChar[983]; + UndoChar_984 = undoChar[984]; + UndoChar_985 = undoChar[985]; + UndoChar_986 = undoChar[986]; + UndoChar_987 = undoChar[987]; + UndoChar_988 = undoChar[988]; + UndoChar_989 = undoChar[989]; + UndoChar_990 = undoChar[990]; + UndoChar_991 = undoChar[991]; + UndoChar_992 = undoChar[992]; + UndoChar_993 = undoChar[993]; + UndoChar_994 = undoChar[994]; + UndoChar_995 = undoChar[995]; + UndoChar_996 = undoChar[996]; + UndoChar_997 = undoChar[997]; + UndoChar_998 = undoChar[998]; + } + UndoPoint = undoPoint; + RedoPoint = redoPoint; + UndoCharPoint = undoCharPoint; + RedoCharPoint = redoCharPoint; + } + /// /// To be documented. @@ -27433,238 +33166,498 @@ public unsafe Span UndoRec /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "StbUndoRecord")] [StructLayout(LayoutKind.Sequential)] public partial struct StbUndoRecord { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "where")] - [NativeName(NativeNameType.Type, "int")] public int Where; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "insert_length")] - [NativeName(NativeNameType.Type, "int")] public int InsertLength; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "delete_length")] - [NativeName(NativeNameType.Type, "int")] public int DeleteLength; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "char_storage")] - [NativeName(NativeNameType.Type, "int")] public int CharStorage; + /// /// To be documented. /// public unsafe StbUndoRecord(int where = default, int insertLength = default, int deleteLength = default, int charStorage = default) + { + Where = where; + InsertLength = insertLength; + DeleteLength = deleteLength; + CharStorage = charStorage; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputTextDeactivatedState")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputTextDeactivatedState { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TextA")] - [NativeName(NativeNameType.Type, "ImVector_char")] public ImVectorChar TextA; + /// /// To be documented. /// public unsafe ImGuiInputTextDeactivatedState(uint id = default, ImVectorChar textA = default) + { + ID = id; + TextA = textA; + } - [NativeName(NativeNameType.Func, "ImGuiInputTextDeactivatedState_ClearFreeMemory")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClearFreeMemory() + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiComboPreviewData + { + /// + /// To be documented. + /// + public ImRect PreviewRect; + + /// + /// To be documented. + /// + public Vector2 BackupCursorPos; + + /// + /// To be documented. + /// + public Vector2 BackupCursorMaxPos; + + /// + /// To be documented. + /// + public Vector2 BackupCursorPosPrevLine; + + /// + /// To be documented. + /// + public float BackupPrevLineTextBaseOffset; + + /// + /// To be documented. + /// + public int BackupLayout; + + + /// /// To be documented. /// public unsafe ImGuiComboPreviewData(ImRect previewRect = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, Vector2 backupCursorPosPrevLine = default, float backupPrevLineTextBaseOffset = default, int backupLayout = default) { - fixed (ImGuiInputTextDeactivatedState* @this = &this) - { - ImGui.ClearFreeMemoryNative(@this); - } + PreviewRect = previewRect; + BackupCursorPos = backupCursorPos; + BackupCursorMaxPos = backupCursorMaxPos; + BackupCursorPosPrevLine = backupCursorPosPrevLine; + BackupPrevLineTextBaseOffset = backupPrevLineTextBaseOffset; + BackupLayout = backupLayout; } - [NativeName(NativeNameType.Func, "ImGuiInputTextDeactivatedState_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiInputTextDeactivatedState* @this = &this) - { - ImGui.DestroyNative(@this); - } + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTypingSelectState + { + /// + /// To be documented. + /// + public ImGuiTypingSelectRequest Request; + + /// + /// To be documented. + /// + public byte SearchBuffer_0; + public byte SearchBuffer_1; + public byte SearchBuffer_2; + public byte SearchBuffer_3; + public byte SearchBuffer_4; + public byte SearchBuffer_5; + public byte SearchBuffer_6; + public byte SearchBuffer_7; + public byte SearchBuffer_8; + public byte SearchBuffer_9; + public byte SearchBuffer_10; + public byte SearchBuffer_11; + public byte SearchBuffer_12; + public byte SearchBuffer_13; + public byte SearchBuffer_14; + public byte SearchBuffer_15; + public byte SearchBuffer_16; + public byte SearchBuffer_17; + public byte SearchBuffer_18; + public byte SearchBuffer_19; + public byte SearchBuffer_20; + public byte SearchBuffer_21; + public byte SearchBuffer_22; + public byte SearchBuffer_23; + public byte SearchBuffer_24; + public byte SearchBuffer_25; + public byte SearchBuffer_26; + public byte SearchBuffer_27; + public byte SearchBuffer_28; + public byte SearchBuffer_29; + public byte SearchBuffer_30; + public byte SearchBuffer_31; + public byte SearchBuffer_32; + public byte SearchBuffer_33; + public byte SearchBuffer_34; + public byte SearchBuffer_35; + public byte SearchBuffer_36; + public byte SearchBuffer_37; + public byte SearchBuffer_38; + public byte SearchBuffer_39; + public byte SearchBuffer_40; + public byte SearchBuffer_41; + public byte SearchBuffer_42; + public byte SearchBuffer_43; + public byte SearchBuffer_44; + public byte SearchBuffer_45; + public byte SearchBuffer_46; + public byte SearchBuffer_47; + public byte SearchBuffer_48; + public byte SearchBuffer_49; + public byte SearchBuffer_50; + public byte SearchBuffer_51; + public byte SearchBuffer_52; + public byte SearchBuffer_53; + public byte SearchBuffer_54; + public byte SearchBuffer_55; + public byte SearchBuffer_56; + public byte SearchBuffer_57; + public byte SearchBuffer_58; + public byte SearchBuffer_59; + public byte SearchBuffer_60; + public byte SearchBuffer_61; + public byte SearchBuffer_62; + public byte SearchBuffer_63; + + /// + /// To be documented. + /// + public uint FocusScope; + + /// + /// To be documented. + /// + public int LastRequestFrame; + + /// + /// To be documented. + /// + public float LastRequestTime; + + /// + /// To be documented. + /// + public byte SingleCharModeLock; + + + /// /// To be documented. /// public unsafe ImGuiTypingSelectState(ImGuiTypingSelectRequest request = default, byte* searchBuffer = default, uint focusScope = default, int lastRequestFrame = default, float lastRequestTime = default, bool singleCharModeLock = default) + { + Request = request; + if (searchBuffer != default) + { + SearchBuffer_0 = searchBuffer[0]; + SearchBuffer_1 = searchBuffer[1]; + SearchBuffer_2 = searchBuffer[2]; + SearchBuffer_3 = searchBuffer[3]; + SearchBuffer_4 = searchBuffer[4]; + SearchBuffer_5 = searchBuffer[5]; + SearchBuffer_6 = searchBuffer[6]; + SearchBuffer_7 = searchBuffer[7]; + SearchBuffer_8 = searchBuffer[8]; + SearchBuffer_9 = searchBuffer[9]; + SearchBuffer_10 = searchBuffer[10]; + SearchBuffer_11 = searchBuffer[11]; + SearchBuffer_12 = searchBuffer[12]; + SearchBuffer_13 = searchBuffer[13]; + SearchBuffer_14 = searchBuffer[14]; + SearchBuffer_15 = searchBuffer[15]; + SearchBuffer_16 = searchBuffer[16]; + SearchBuffer_17 = searchBuffer[17]; + SearchBuffer_18 = searchBuffer[18]; + SearchBuffer_19 = searchBuffer[19]; + SearchBuffer_20 = searchBuffer[20]; + SearchBuffer_21 = searchBuffer[21]; + SearchBuffer_22 = searchBuffer[22]; + SearchBuffer_23 = searchBuffer[23]; + SearchBuffer_24 = searchBuffer[24]; + SearchBuffer_25 = searchBuffer[25]; + SearchBuffer_26 = searchBuffer[26]; + SearchBuffer_27 = searchBuffer[27]; + SearchBuffer_28 = searchBuffer[28]; + SearchBuffer_29 = searchBuffer[29]; + SearchBuffer_30 = searchBuffer[30]; + SearchBuffer_31 = searchBuffer[31]; + SearchBuffer_32 = searchBuffer[32]; + SearchBuffer_33 = searchBuffer[33]; + SearchBuffer_34 = searchBuffer[34]; + SearchBuffer_35 = searchBuffer[35]; + SearchBuffer_36 = searchBuffer[36]; + SearchBuffer_37 = searchBuffer[37]; + SearchBuffer_38 = searchBuffer[38]; + SearchBuffer_39 = searchBuffer[39]; + SearchBuffer_40 = searchBuffer[40]; + SearchBuffer_41 = searchBuffer[41]; + SearchBuffer_42 = searchBuffer[42]; + SearchBuffer_43 = searchBuffer[43]; + SearchBuffer_44 = searchBuffer[44]; + SearchBuffer_45 = searchBuffer[45]; + SearchBuffer_46 = searchBuffer[46]; + SearchBuffer_47 = searchBuffer[47]; + SearchBuffer_48 = searchBuffer[48]; + SearchBuffer_49 = searchBuffer[49]; + SearchBuffer_50 = searchBuffer[50]; + SearchBuffer_51 = searchBuffer[51]; + SearchBuffer_52 = searchBuffer[52]; + SearchBuffer_53 = searchBuffer[53]; + SearchBuffer_54 = searchBuffer[54]; + SearchBuffer_55 = searchBuffer[55]; + SearchBuffer_56 = searchBuffer[56]; + SearchBuffer_57 = searchBuffer[57]; + SearchBuffer_58 = searchBuffer[58]; + SearchBuffer_59 = searchBuffer[59]; + SearchBuffer_60 = searchBuffer[60]; + SearchBuffer_61 = searchBuffer[61]; + SearchBuffer_62 = searchBuffer[62]; + SearchBuffer_63 = searchBuffer[63]; + } + FocusScope = focusScope; + LastRequestFrame = lastRequestFrame; + LastRequestTime = lastRequestTime; + SingleCharModeLock = singleCharModeLock ? (byte)1 : (byte)0; + } + + /// /// To be documented. /// public unsafe ImGuiTypingSelectState(ImGuiTypingSelectRequest request = default, Span searchBuffer = default, uint focusScope = default, int lastRequestFrame = default, float lastRequestTime = default, bool singleCharModeLock = default) + { + Request = request; + if (searchBuffer != default) + { + SearchBuffer_0 = searchBuffer[0]; + SearchBuffer_1 = searchBuffer[1]; + SearchBuffer_2 = searchBuffer[2]; + SearchBuffer_3 = searchBuffer[3]; + SearchBuffer_4 = searchBuffer[4]; + SearchBuffer_5 = searchBuffer[5]; + SearchBuffer_6 = searchBuffer[6]; + SearchBuffer_7 = searchBuffer[7]; + SearchBuffer_8 = searchBuffer[8]; + SearchBuffer_9 = searchBuffer[9]; + SearchBuffer_10 = searchBuffer[10]; + SearchBuffer_11 = searchBuffer[11]; + SearchBuffer_12 = searchBuffer[12]; + SearchBuffer_13 = searchBuffer[13]; + SearchBuffer_14 = searchBuffer[14]; + SearchBuffer_15 = searchBuffer[15]; + SearchBuffer_16 = searchBuffer[16]; + SearchBuffer_17 = searchBuffer[17]; + SearchBuffer_18 = searchBuffer[18]; + SearchBuffer_19 = searchBuffer[19]; + SearchBuffer_20 = searchBuffer[20]; + SearchBuffer_21 = searchBuffer[21]; + SearchBuffer_22 = searchBuffer[22]; + SearchBuffer_23 = searchBuffer[23]; + SearchBuffer_24 = searchBuffer[24]; + SearchBuffer_25 = searchBuffer[25]; + SearchBuffer_26 = searchBuffer[26]; + SearchBuffer_27 = searchBuffer[27]; + SearchBuffer_28 = searchBuffer[28]; + SearchBuffer_29 = searchBuffer[29]; + SearchBuffer_30 = searchBuffer[30]; + SearchBuffer_31 = searchBuffer[31]; + SearchBuffer_32 = searchBuffer[32]; + SearchBuffer_33 = searchBuffer[33]; + SearchBuffer_34 = searchBuffer[34]; + SearchBuffer_35 = searchBuffer[35]; + SearchBuffer_36 = searchBuffer[36]; + SearchBuffer_37 = searchBuffer[37]; + SearchBuffer_38 = searchBuffer[38]; + SearchBuffer_39 = searchBuffer[39]; + SearchBuffer_40 = searchBuffer[40]; + SearchBuffer_41 = searchBuffer[41]; + SearchBuffer_42 = searchBuffer[42]; + SearchBuffer_43 = searchBuffer[43]; + SearchBuffer_44 = searchBuffer[44]; + SearchBuffer_45 = searchBuffer[45]; + SearchBuffer_46 = searchBuffer[46]; + SearchBuffer_47 = searchBuffer[47]; + SearchBuffer_48 = searchBuffer[48]; + SearchBuffer_49 = searchBuffer[49]; + SearchBuffer_50 = searchBuffer[50]; + SearchBuffer_51 = searchBuffer[51]; + SearchBuffer_52 = searchBuffer[52]; + SearchBuffer_53 = searchBuffer[53]; + SearchBuffer_54 = searchBuffer[54]; + SearchBuffer_55 = searchBuffer[55]; + SearchBuffer_56 = searchBuffer[56]; + SearchBuffer_57 = searchBuffer[57]; + SearchBuffer_58 = searchBuffer[58]; + SearchBuffer_59 = searchBuffer[59]; + SearchBuffer_60 = searchBuffer[60]; + SearchBuffer_61 = searchBuffer[61]; + SearchBuffer_62 = searchBuffer[62]; + SearchBuffer_63 = searchBuffer[63]; + } + FocusScope = focusScope; + LastRequestFrame = lastRequestFrame; + LastRequestTime = lastRequestTime; + SingleCharModeLock = singleCharModeLock ? (byte)1 : (byte)0; } + + /// + /// To be documented. + /// } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiComboPreviewData")] [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiComboPreviewData + public partial struct ImGuiTypingSelectRequest { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PreviewRect")] - [NativeName(NativeNameType.Type, "ImRect")] - public ImRect PreviewRect; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupCursorPos")] - [NativeName(NativeNameType.Type, "ImVec2")] - public Vector2 BackupCursorPos; + public int SearchBufferLen; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupCursorMaxPos")] - [NativeName(NativeNameType.Type, "ImVec2")] - public Vector2 BackupCursorMaxPos; + public unsafe byte* SearchBuffer; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupCursorPosPrevLine")] - [NativeName(NativeNameType.Type, "ImVec2")] - public Vector2 BackupCursorPosPrevLine; + public byte SelectRequest; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupPrevLineTextBaseOffset")] - [NativeName(NativeNameType.Type, "float")] - public float BackupPrevLineTextBaseOffset; + public byte SingleCharMode; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BackupLayout")] - [NativeName(NativeNameType.Type, "ImGuiLayoutType")] - public ImGuiLayoutType BackupLayout; - + public byte SingleCharSize; - - [NativeName(NativeNameType.Func, "ImGuiComboPreviewData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiTypingSelectRequest(int flags = default, int searchBufferLen = default, byte* searchBuffer = default, bool selectRequest = default, bool singleCharMode = default, byte singleCharSize = default) { - fixed (ImGuiComboPreviewData* @this = &this) - { - ImGui.DestroyNative(@this); - } + Flags = flags; + SearchBufferLen = searchBufferLen; + SearchBuffer = searchBuffer; + SelectRequest = selectRequest ? (byte)1 : (byte)0; + SingleCharMode = singleCharMode ? (byte)1 : (byte)0; + SingleCharSize = singleCharSize; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiDockContext")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiDockContext { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Nodes")] - [NativeName(NativeNameType.Type, "ImGuiStorage")] public ImGuiStorage Nodes; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Requests")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiDockRequest")] public ImVectorImGuiDockRequest Requests; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "NodesSettings")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiDockNodeSettings")] public ImVectorImGuiDockNodeSettings NodesSettings; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantFullRebuild")] - [NativeName(NativeNameType.Type, "bool")] public byte WantFullRebuild; - - - [NativeName(NativeNameType.Func, "ImGuiDockContext_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiDockContext(ImGuiStorage nodes = default, ImVectorImGuiDockRequest requests = default, ImVectorImGuiDockNodeSettings nodesSettings = default, bool wantFullRebuild = default) { - fixed (ImGuiDockContext* @this = &this) - { - ImGui.DestroyNative(@this); - } + Nodes = nodes; + Requests = requests; + NodesSettings = nodesSettings; + WantFullRebuild = wantFullRebuild ? (byte)1 : (byte)0; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiDockRequest")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiDockRequest { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiDockRequest*")] public unsafe ImGuiDockRequest* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiDockRequest(int size = default, int capacity = default, ImGuiDockRequest* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiDockRequest")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiDockRequest { @@ -27675,39 +33668,38 @@ public partial struct ImGuiDockRequest /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiDockNodeSettings")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiDockNodeSettings { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiDockNodeSettings*")] public unsafe ImGuiDockNodeSettings* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiDockNodeSettings(int size = default, int capacity = default, ImGuiDockNodeSettings* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiDockNodeSettings")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiDockNodeSettings { @@ -27718,828 +33710,467 @@ public partial struct ImGuiDockNodeSettings /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiSettingsHandler")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiSettingsHandler { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiSettingsHandler*")] public unsafe ImGuiSettingsHandler* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiSettingsHandler(int size = default, int capacity = default, ImGuiSettingsHandler* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiSettingsHandler")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiSettingsHandler { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TypeName")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* TypeName; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "TypeHash")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int TypeHash; + public uint TypeHash; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClearAllFn")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiContext* ctx, ImGuiSettingsHandler* handler)*")] public unsafe void* ClearAllFn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ReadInitFn")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiContext* ctx, ImGuiSettingsHandler* handler)*")] public unsafe void* ReadInitFn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ReadOpenFn")] - [NativeName(NativeNameType.Type, "void* (*)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name)*")] public unsafe void* ReadOpenFn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ReadLineFn")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line)*")] public unsafe void* ReadLineFn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ApplyAllFn")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiContext* ctx, ImGuiSettingsHandler* handler)*")] public unsafe void* ApplyAllFn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WriteAllFn")] - [NativeName(NativeNameType.Type, "void (*)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf)*")] public unsafe void* WriteAllFn; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "UserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* UserData; - - - [NativeName(NativeNameType.Func, "ImGuiSettingsHandler_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiSettingsHandler(byte* typeName = default, uint typeHash = default, delegate* clearAllFn = default, delegate* readInitFn = default, delegate* readOpenFn = default, delegate* readLineFn = default, delegate* applyAllFn = default, delegate* writeAllFn = default, void* userData = default) { - fixed (ImGuiSettingsHandler* @this = &this) - { - ImGui.DestroyNative(@this); - } + TypeName = typeName; + TypeHash = typeHash; + ClearAllFn = (void*)clearAllFn; + ReadInitFn = (void*)readInitFn; + ReadOpenFn = (void*)readOpenFn; + ReadLineFn = (void*)readLineFn; + ApplyAllFn = (void*)applyAllFn; + WriteAllFn = (void*)writeAllFn; + UserData = userData; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImChunkStream_ImGuiWindowSettings")] [StructLayout(LayoutKind.Sequential)] public partial struct ImChunkStreamImGuiWindowSettings { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Buf")] - [NativeName(NativeNameType.Type, "ImVector_char")] public ImVectorChar Buf; + /// /// To be documented. /// public unsafe ImChunkStreamImGuiWindowSettings(ImVectorChar buf = default) + { + Buf = buf; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImChunkStream_ImGuiTableSettings")] [StructLayout(LayoutKind.Sequential)] public partial struct ImChunkStreamImGuiTableSettings { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Buf")] - [NativeName(NativeNameType.Type, "ImVector_char")] public ImVectorChar Buf; + /// /// To be documented. /// public unsafe ImChunkStreamImGuiTableSettings(ImVectorChar buf = default) + { + Buf = buf; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiContextHook")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiContextHook { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiContextHook*")] public unsafe ImGuiContextHook* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiContextHook(int size = default, int capacity = default, ImGuiContextHook* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiContextHook")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiContextHook { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "HookId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int HookId; + public uint HookId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Type")] - [NativeName(NativeNameType.Type, "ImGuiContextHookType")] public ImGuiContextHookType Type; /// /// To be documented. - /// - [NativeName(NativeNameType.Field, "Owner")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int Owner; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "Callback")] - [NativeName(NativeNameType.Type, "ImGuiContextHookCallback")] - public unsafe void* Callback; - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "UserData")] - [NativeName(NativeNameType.Type, "void*")] - public unsafe void* UserData; - - - - - [NativeName(NativeNameType.Func, "ImGuiContextHook_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiContextHook* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTextIndex")] - [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiTextIndex - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "LineOffsets")] - [NativeName(NativeNameType.Type, "ImVector_int")] - public ImVectorInt LineOffsets; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "EndOffset")] - [NativeName(NativeNameType.Type, "int")] - public int EndOffset; - - - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "old_size")] [NativeName(NativeNameType.Type, "int")] int oldSize, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) - { - fixed (ImGuiTextIndex* @this = &this) - { - ImGui.appendNative(@this, baseValue, oldSize, newSize); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "old_size")] [NativeName(NativeNameType.Type, "int")] int oldSize, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) - { - fixed (ImGuiTextIndex* @this = &this) - { - fixed (byte* pbaseValue = &baseValue) - { - ImGui.appendNative(@this, (byte*)pbaseValue, oldSize, newSize); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_append")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void append([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "old_size")] [NativeName(NativeNameType.Type, "int")] int oldSize, [NativeName(NativeNameType.Param, "new_size")] [NativeName(NativeNameType.Type, "int")] int newSize) - { - fixed (ImGuiTextIndex* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (baseValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - ImGui.appendNative(@this, pStr0, oldSize, newSize); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_clear")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void clear() - { - fixed (ImGuiTextIndex* @this = &this) - { - ImGui.clearNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* get_line_begin([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* @this = &this) - { - byte* ret = ImGui.get_line_beginNative(@this, baseValue, n); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string get_line_beginS([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImGui.get_line_beginNative(@this, baseValue, n)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* get_line_begin([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* @this = &this) - { - fixed (byte* pbaseValue = &baseValue) - { - byte* ret = ImGui.get_line_beginNative(@this, (byte*)pbaseValue, n); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string get_line_beginS([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* @this = &this) - { - fixed (byte* pbaseValue = &baseValue) - { - string ret = Utils.DecodeStringUTF8(ImGui.get_line_beginNative(@this, (byte*)pbaseValue, n)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* get_line_begin([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (baseValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImGui.get_line_beginNative(@this, pStr0, n); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_begin")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string get_line_beginS([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (baseValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.get_line_beginNative(@this, pStr0, n)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* get_line_end([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* @this = &this) - { - byte* ret = ImGui.get_line_endNative(@this, baseValue, n); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string get_line_endS([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] byte* baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImGui.get_line_endNative(@this, baseValue, n)); - return ret; - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* get_line_end([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* @this = &this) - { - fixed (byte* pbaseValue = &baseValue) - { - byte* ret = ImGui.get_line_endNative(@this, (byte*)pbaseValue, n); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string get_line_endS([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] ref byte baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* @this = &this) - { - fixed (byte* pbaseValue = &baseValue) - { - string ret = Utils.DecodeStringUTF8(ImGui.get_line_endNative(@this, (byte*)pbaseValue, n)); - return ret; - } - } - } - - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* get_line_end([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImGuiTextIndex* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (baseValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - byte* ret = ImGui.get_line_endNative(@this, pStr0, n); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } - } + /// + public uint Owner; + + /// + /// To be documented. + /// + public unsafe void* Callback; + /// + /// To be documented. + /// + public unsafe void* UserData; - [NativeName(NativeNameType.Func, "ImGuiTextIndex_get_line_end")] - [return: NativeName(NativeNameType.Type, "const char*")] - public unsafe string get_line_endS([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const char*")] string baseValue, [NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + + /// /// To be documented. /// public unsafe ImGuiContextHook(uint hookId = default, ImGuiContextHookType type = default, uint owner = default, ImGuiContextHookCallback callback = default, void* userData = default) { - fixed (ImGuiTextIndex* @this = &this) - { - byte* pStr0 = null; - int pStrSize0 = 0; - if (baseValue != null) - { - pStrSize0 = Utils.GetByteCountUTF8(baseValue); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - pStr0 = Utils.Alloc(pStrSize0 + 1); - } - else - { - byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; - pStr0 = pStrStack0; - } - int pStrOffset0 = Utils.EncodeStringUTF8(baseValue, pStr0, pStrSize0); - pStr0[pStrOffset0] = 0; - } - string ret = Utils.DecodeStringUTF8(ImGui.get_line_endNative(@this, pStr0, n)); - if (pStrSize0 >= Utils.MaxStackallocSize) - { - Utils.Free(pStr0); - } - return ret; - } + HookId = hookId; + Type = type; + Owner = owner; + Callback = (void*)Marshal.GetFunctionPointerForDelegate(callback); + UserData = userData; } - [NativeName(NativeNameType.Func, "ImGuiTextIndex_size")] - [return: NativeName(NativeNameType.Type, "int")] - public unsafe int size() + + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiTextIndex + { + /// + /// To be documented. + /// + public ImVectorInt LineOffsets; + + /// + /// To be documented. + /// + public int EndOffset; + + + /// /// To be documented. /// public unsafe ImGuiTextIndex(ImVectorInt lineOffsets = default, int endOffset = default) { - fixed (ImGuiTextIndex* @this = &this) - { - int ret = ImGui.sizeNative(@this); - return ret; - } + LineOffsets = lineOffsets; + EndOffset = endOffset; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_int")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorInt { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "int*")] public unsafe int* Data; + /// /// To be documented. /// public unsafe ImVectorInt(int size = default, int capacity = default, int* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiMetricsConfig")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiMetricsConfig { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShowDebugLog")] - [NativeName(NativeNameType.Type, "bool")] public byte ShowDebugLog; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShowStackTool")] - [NativeName(NativeNameType.Type, "bool")] - public byte ShowStackTool; + public byte ShowIDStackTool; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShowWindowsRects")] - [NativeName(NativeNameType.Type, "bool")] public byte ShowWindowsRects; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShowWindowsBeginOrder")] - [NativeName(NativeNameType.Type, "bool")] public byte ShowWindowsBeginOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShowTablesRects")] - [NativeName(NativeNameType.Type, "bool")] public byte ShowTablesRects; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShowDrawCmdMesh")] - [NativeName(NativeNameType.Type, "bool")] public byte ShowDrawCmdMesh; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShowDrawCmdBoundingBoxes")] - [NativeName(NativeNameType.Type, "bool")] public byte ShowDrawCmdBoundingBoxes; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShowAtlasTintedWithTextColor")] - [NativeName(NativeNameType.Type, "bool")] public byte ShowAtlasTintedWithTextColor; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShowDockingNodes")] - [NativeName(NativeNameType.Type, "bool")] public byte ShowDockingNodes; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShowWindowsRectsType")] - [NativeName(NativeNameType.Type, "int")] public int ShowWindowsRectsType; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ShowTablesRectsType")] - [NativeName(NativeNameType.Type, "int")] public int ShowTablesRectsType; + /// /// To be documented. /// public unsafe ImGuiMetricsConfig(bool showDebugLog = default, bool showIdStackTool = default, bool showWindowsRects = default, bool showWindowsBeginOrder = default, bool showTablesRects = default, bool showDrawCmdMesh = default, bool showDrawCmdBoundingBoxes = default, bool showAtlasTintedWithTextColor = default, bool showDockingNodes = default, int showWindowsRectsType = default, int showTablesRectsType = default) + { + ShowDebugLog = showDebugLog ? (byte)1 : (byte)0; + ShowIDStackTool = showIdStackTool ? (byte)1 : (byte)0; + ShowWindowsRects = showWindowsRects ? (byte)1 : (byte)0; + ShowWindowsBeginOrder = showWindowsBeginOrder ? (byte)1 : (byte)0; + ShowTablesRects = showTablesRects ? (byte)1 : (byte)0; + ShowDrawCmdMesh = showDrawCmdMesh ? (byte)1 : (byte)0; + ShowDrawCmdBoundingBoxes = showDrawCmdBoundingBoxes ? (byte)1 : (byte)0; + ShowAtlasTintedWithTextColor = showAtlasTintedWithTextColor ? (byte)1 : (byte)0; + ShowDockingNodes = showDockingNodes ? (byte)1 : (byte)0; + ShowWindowsRectsType = showWindowsRectsType; + ShowTablesRectsType = showTablesRectsType; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiStackTool")] [StructLayout(LayoutKind.Sequential)] - public partial struct ImGuiStackTool + public partial struct ImGuiIDStackTool { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "LastActiveFrame")] - [NativeName(NativeNameType.Type, "int")] public int LastActiveFrame; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "StackLevel")] - [NativeName(NativeNameType.Type, "int")] public int StackLevel; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "QueryId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int QueryId; + public uint QueryId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Results")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiStackLevelInfo")] public ImVectorImGuiStackLevelInfo Results; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CopyToClipboardOnCtrlC")] - [NativeName(NativeNameType.Type, "bool")] public byte CopyToClipboardOnCtrlC; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CopyToClipboardLastTime")] - [NativeName(NativeNameType.Type, "float")] public float CopyToClipboardLastTime; - - - [NativeName(NativeNameType.Func, "ImGuiStackTool_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiIDStackTool(int lastActiveFrame = default, int stackLevel = default, uint queryId = default, ImVectorImGuiStackLevelInfo results = default, bool copyToClipboardOnCtrlC = default, float copyToClipboardLastTime = default) { - fixed (ImGuiStackTool* @this = &this) - { - ImGui.DestroyNative(@this); - } + LastActiveFrame = lastActiveFrame; + StackLevel = stackLevel; + QueryId = queryId; + Results = results; + CopyToClipboardOnCtrlC = copyToClipboardOnCtrlC ? (byte)1 : (byte)0; + CopyToClipboardLastTime = copyToClipboardLastTime; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiStackLevelInfo")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiStackLevelInfo { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiStackLevelInfo*")] public unsafe ImGuiStackLevelInfo* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiStackLevelInfo(int size = default, int capacity = default, ImGuiStackLevelInfo* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiStackLevelInfo")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiStackLevelInfo { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "QueryFrameCount")] - [NativeName(NativeNameType.Type, "ImS8")] - public sbyte QueryFrameCount; + public byte QueryFrameCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "QuerySuccess")] - [NativeName(NativeNameType.Type, "bool")] public byte QuerySuccess; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DataType")] - [NativeName(NativeNameType.Type, "ImGuiDataType")] - public ImGuiDataType DataType; + public int DataType; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Desc")] - [NativeName(NativeNameType.Type, "char[57]")] public byte Desc_0; public byte Desc_1; public byte Desc_2; @@ -28599,126 +34230,352 @@ public partial struct ImGuiStackLevelInfo public byte Desc_56; + /// /// To be documented. /// public unsafe ImGuiStackLevelInfo(uint id = default, byte queryFrameCount = default, bool querySuccess = default, int dataType = default, byte* desc = default) + { + ID = id; + QueryFrameCount = queryFrameCount; + QuerySuccess = querySuccess ? (byte)1 : (byte)0; + DataType = dataType; + if (desc != default) + { + Desc_0 = desc[0]; + Desc_1 = desc[1]; + Desc_2 = desc[2]; + Desc_3 = desc[3]; + Desc_4 = desc[4]; + Desc_5 = desc[5]; + Desc_6 = desc[6]; + Desc_7 = desc[7]; + Desc_8 = desc[8]; + Desc_9 = desc[9]; + Desc_10 = desc[10]; + Desc_11 = desc[11]; + Desc_12 = desc[12]; + Desc_13 = desc[13]; + Desc_14 = desc[14]; + Desc_15 = desc[15]; + Desc_16 = desc[16]; + Desc_17 = desc[17]; + Desc_18 = desc[18]; + Desc_19 = desc[19]; + Desc_20 = desc[20]; + Desc_21 = desc[21]; + Desc_22 = desc[22]; + Desc_23 = desc[23]; + Desc_24 = desc[24]; + Desc_25 = desc[25]; + Desc_26 = desc[26]; + Desc_27 = desc[27]; + Desc_28 = desc[28]; + Desc_29 = desc[29]; + Desc_30 = desc[30]; + Desc_31 = desc[31]; + Desc_32 = desc[32]; + Desc_33 = desc[33]; + Desc_34 = desc[34]; + Desc_35 = desc[35]; + Desc_36 = desc[36]; + Desc_37 = desc[37]; + Desc_38 = desc[38]; + Desc_39 = desc[39]; + Desc_40 = desc[40]; + Desc_41 = desc[41]; + Desc_42 = desc[42]; + Desc_43 = desc[43]; + Desc_44 = desc[44]; + Desc_45 = desc[45]; + Desc_46 = desc[46]; + Desc_47 = desc[47]; + Desc_48 = desc[48]; + Desc_49 = desc[49]; + Desc_50 = desc[50]; + Desc_51 = desc[51]; + Desc_52 = desc[52]; + Desc_53 = desc[53]; + Desc_54 = desc[54]; + Desc_55 = desc[55]; + Desc_56 = desc[56]; + } + } + + /// /// To be documented. /// public unsafe ImGuiStackLevelInfo(uint id = default, byte queryFrameCount = default, bool querySuccess = default, int dataType = default, Span desc = default) + { + ID = id; + QueryFrameCount = queryFrameCount; + QuerySuccess = querySuccess ? (byte)1 : (byte)0; + DataType = dataType; + if (desc != default) + { + Desc_0 = desc[0]; + Desc_1 = desc[1]; + Desc_2 = desc[2]; + Desc_3 = desc[3]; + Desc_4 = desc[4]; + Desc_5 = desc[5]; + Desc_6 = desc[6]; + Desc_7 = desc[7]; + Desc_8 = desc[8]; + Desc_9 = desc[9]; + Desc_10 = desc[10]; + Desc_11 = desc[11]; + Desc_12 = desc[12]; + Desc_13 = desc[13]; + Desc_14 = desc[14]; + Desc_15 = desc[15]; + Desc_16 = desc[16]; + Desc_17 = desc[17]; + Desc_18 = desc[18]; + Desc_19 = desc[19]; + Desc_20 = desc[20]; + Desc_21 = desc[21]; + Desc_22 = desc[22]; + Desc_23 = desc[23]; + Desc_24 = desc[24]; + Desc_25 = desc[25]; + Desc_26 = desc[26]; + Desc_27 = desc[27]; + Desc_28 = desc[28]; + Desc_29 = desc[29]; + Desc_30 = desc[30]; + Desc_31 = desc[31]; + Desc_32 = desc[32]; + Desc_33 = desc[33]; + Desc_34 = desc[34]; + Desc_35 = desc[35]; + Desc_36 = desc[36]; + Desc_37 = desc[37]; + Desc_38 = desc[38]; + Desc_39 = desc[39]; + Desc_40 = desc[40]; + Desc_41 = desc[41]; + Desc_42 = desc[42]; + Desc_43 = desc[43]; + Desc_44 = desc[44]; + Desc_45 = desc[45]; + Desc_46 = desc[46]; + Desc_47 = desc[47]; + Desc_48 = desc[48]; + Desc_49 = desc[49]; + Desc_50 = desc[50]; + Desc_51 = desc[51]; + Desc_52 = desc[52]; + Desc_53 = desc[53]; + Desc_54 = desc[54]; + Desc_55 = desc[55]; + Desc_56 = desc[56]; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiStackLevelInfo_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDebugAllocInfo + { + /// + /// To be documented. + /// + public int TotalAllocCount; + + /// + /// To be documented. + /// + public int TotalFreeCount; + + /// + /// To be documented. + /// + public short LastEntriesIdx; + + /// + /// To be documented. + /// + public ImGuiDebugAllocEntry LastEntriesBuf_0; + public ImGuiDebugAllocEntry LastEntriesBuf_1; + public ImGuiDebugAllocEntry LastEntriesBuf_2; + public ImGuiDebugAllocEntry LastEntriesBuf_3; + public ImGuiDebugAllocEntry LastEntriesBuf_4; + public ImGuiDebugAllocEntry LastEntriesBuf_5; + + + /// /// To be documented. /// public unsafe ImGuiDebugAllocInfo(int totalAllocCount = default, int totalFreeCount = default, short lastEntriesIdx = default, ImGuiDebugAllocEntry* lastEntriesBuf = default) { - fixed (ImGuiStackLevelInfo* @this = &this) + TotalAllocCount = totalAllocCount; + TotalFreeCount = totalFreeCount; + LastEntriesIdx = lastEntriesIdx; + if (lastEntriesBuf != default) { - ImGui.DestroyNative(@this); + LastEntriesBuf_0 = lastEntriesBuf[0]; + LastEntriesBuf_1 = lastEntriesBuf[1]; + LastEntriesBuf_2 = lastEntriesBuf[2]; + LastEntriesBuf_3 = lastEntriesBuf[3]; + LastEntriesBuf_4 = lastEntriesBuf[4]; + LastEntriesBuf_5 = lastEntriesBuf[5]; + } + } + + /// /// To be documented. /// public unsafe ImGuiDebugAllocInfo(int totalAllocCount = default, int totalFreeCount = default, short lastEntriesIdx = default, Span lastEntriesBuf = default) + { + TotalAllocCount = totalAllocCount; + TotalFreeCount = totalFreeCount; + LastEntriesIdx = lastEntriesIdx; + if (lastEntriesBuf != default) + { + LastEntriesBuf_0 = lastEntriesBuf[0]; + LastEntriesBuf_1 = lastEntriesBuf[1]; + LastEntriesBuf_2 = lastEntriesBuf[2]; + LastEntriesBuf_3 = lastEntriesBuf[3]; + LastEntriesBuf_4 = lastEntriesBuf[4]; + LastEntriesBuf_5 = lastEntriesBuf[5]; + } + } + + + /// + /// To be documented. + /// + public unsafe Span LastEntriesBuf + + { + get + { + fixed (ImGuiDebugAllocEntry* p = &this.LastEntriesBuf_0) + { + return new Span(p, 6); + } } } + } + + /// + /// To be documented. + /// + [StructLayout(LayoutKind.Sequential)] + public partial struct ImGuiDebugAllocEntry + { + /// + /// To be documented. + /// + public int FrameCount; + + /// + /// To be documented. + /// + public short AllocCount; + + /// + /// To be documented. + /// + public short FreeCount; + + + /// /// To be documented. /// public unsafe ImGuiDebugAllocEntry(int frameCount = default, short allocCount = default, short freeCount = default) + { + FrameCount = frameCount; + AllocCount = allocCount; + FreeCount = freeCount; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputTextCallbackData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputTextCallbackData { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Ctx")] - [NativeName(NativeNameType.Type, "ImGuiContext*")] public unsafe ImGuiContext* Ctx; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EventFlag")] - [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] - public ImGuiInputTextFlags EventFlag; + public int EventFlag; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Flags")] - [NativeName(NativeNameType.Type, "ImGuiInputTextFlags")] - public ImGuiInputTextFlags Flags; + public int Flags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "UserData")] - [NativeName(NativeNameType.Type, "void*")] public unsafe void* UserData; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EventChar")] - [NativeName(NativeNameType.Type, "ImWchar")] public char EventChar; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "EventKey")] - [NativeName(NativeNameType.Type, "ImGuiKey")] public ImGuiKey EventKey; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Buf")] - [NativeName(NativeNameType.Type, "char*")] public unsafe byte* Buf; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BufTextLen")] - [NativeName(NativeNameType.Type, "int")] public int BufTextLen; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BufSize")] - [NativeName(NativeNameType.Type, "int")] public int BufSize; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "BufDirty")] - [NativeName(NativeNameType.Type, "bool")] public byte BufDirty; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CursorPos")] - [NativeName(NativeNameType.Type, "int")] public int CursorPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SelectionStart")] - [NativeName(NativeNameType.Type, "int")] public int SelectionStart; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SelectionEnd")] - [NativeName(NativeNameType.Type, "int")] public int SelectionEnd; + /// /// To be documented. /// public unsafe ImGuiInputTextCallbackData(ImGuiContext* ctx = default, int eventFlag = default, int flags = default, void* userData = default, char eventChar = default, ImGuiKey eventKey = default, byte* buf = default, int bufTextLen = default, int bufSize = default, bool bufDirty = default, int cursorPos = default, int selectionStart = default, int selectionEnd = default) + { + Ctx = ctx; + EventFlag = eventFlag; + Flags = flags; + UserData = userData; + EventChar = eventChar; + EventKey = eventKey; + Buf = buf; + BufTextLen = bufTextLen; + BufSize = bufSize; + BufDirty = bufDirty ? (byte)1 : (byte)0; + CursorPos = cursorPos; + SelectionStart = selectionStart; + SelectionEnd = selectionEnd; + } + - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_ClearSelection")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void ClearSelection() { fixed (ImGuiInputTextCallbackData* @this = &this) @@ -28727,9 +34584,7 @@ public unsafe void ClearSelection() } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_DeleteChars")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void DeleteChars([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "bytes_count")] [NativeName(NativeNameType.Type, "int")] int bytesCount) + public unsafe void DeleteChars( int pos, int bytesCount) { fixed (ImGuiInputTextCallbackData* @this = &this) { @@ -28737,8 +34592,6 @@ public unsafe void DeleteChars([NativeName(NativeNameType.Param, "pos")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiInputTextCallbackData* @this = &this) @@ -28747,8 +34600,6 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_HasSelection")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool HasSelection() { fixed (ImGuiInputTextCallbackData* @this = &this) @@ -28758,9 +34609,7 @@ public unsafe bool HasSelection() } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void InsertChars( int pos, byte* text, byte* textEnd) { fixed (ImGuiInputTextCallbackData* @this = &this) { @@ -28768,9 +34617,7 @@ public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) + public unsafe void InsertChars( int pos, byte* text) { fixed (ImGuiInputTextCallbackData* @this = &this) { @@ -28778,9 +34625,7 @@ public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void InsertChars( int pos, ref byte text, byte* textEnd) { fixed (ImGuiInputTextCallbackData* @this = &this) { @@ -28791,9 +34636,7 @@ public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) + public unsafe void InsertChars( int pos, ref byte text) { fixed (ImGuiInputTextCallbackData* @this = &this) { @@ -28804,9 +34647,7 @@ public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe void InsertChars( int pos, string text, byte* textEnd) { fixed (ImGuiInputTextCallbackData* @this = &this) { @@ -28835,9 +34676,7 @@ public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) + public unsafe void InsertChars( int pos, string text) { fixed (ImGuiInputTextCallbackData* @this = &this) { @@ -28866,9 +34705,7 @@ public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void InsertChars( int pos, byte* text, ref byte textEnd) { fixed (ImGuiInputTextCallbackData* @this = &this) { @@ -28879,9 +34716,7 @@ public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void InsertChars( int pos, byte* text, string textEnd) { fixed (ImGuiInputTextCallbackData* @this = &this) { @@ -28910,9 +34745,7 @@ public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe void InsertChars( int pos, ref byte text, ref byte textEnd) { fixed (ImGuiInputTextCallbackData* @this = &this) { @@ -28926,9 +34759,7 @@ public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_InsertChars")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [NativeName(NativeNameType.Type, "int")] int pos, [NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe void InsertChars( int pos, string text, string textEnd) { fixed (ImGuiInputTextCallbackData* @this = &this) { @@ -28978,8 +34809,6 @@ public unsafe void InsertChars([NativeName(NativeNameType.Param, "pos")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiInputTextCallbackData_SelectAll")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void SelectAll() { fixed (ImGuiInputTextCallbackData* @this = &this) @@ -28993,22 +34822,22 @@ public unsafe void SelectAll() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiOnceUponAFrame")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiOnceUponAFrame { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RefFrame")] - [NativeName(NativeNameType.Type, "int")] public int RefFrame; + /// /// To be documented. /// public unsafe ImGuiOnceUponAFrame(int refFrame = default) + { + RefFrame = refFrame; + } + - [NativeName(NativeNameType.Func, "ImGuiOnceUponAFrame_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiOnceUponAFrame* @this = &this) @@ -29022,15 +34851,12 @@ public unsafe void Destroy() /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTextFilter")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTextFilter { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "InputBuf")] - [NativeName(NativeNameType.Type, "char[256]")] public byte InputBuf_0; public byte InputBuf_1; public byte InputBuf_2; @@ -29291,25 +35117,549 @@ public partial struct ImGuiTextFilter /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Filters")] - [NativeName(NativeNameType.Type, "ImVector_ImGuiTextRange")] public ImVectorImGuiTextRange Filters; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "CountGrep")] - [NativeName(NativeNameType.Type, "int")] public int CountGrep; + /// /// To be documented. /// public unsafe ImGuiTextFilter(byte* inputBuf = default, ImVectorImGuiTextRange filters = default, int countGrep = default) + { + if (inputBuf != default) + { + InputBuf_0 = inputBuf[0]; + InputBuf_1 = inputBuf[1]; + InputBuf_2 = inputBuf[2]; + InputBuf_3 = inputBuf[3]; + InputBuf_4 = inputBuf[4]; + InputBuf_5 = inputBuf[5]; + InputBuf_6 = inputBuf[6]; + InputBuf_7 = inputBuf[7]; + InputBuf_8 = inputBuf[8]; + InputBuf_9 = inputBuf[9]; + InputBuf_10 = inputBuf[10]; + InputBuf_11 = inputBuf[11]; + InputBuf_12 = inputBuf[12]; + InputBuf_13 = inputBuf[13]; + InputBuf_14 = inputBuf[14]; + InputBuf_15 = inputBuf[15]; + InputBuf_16 = inputBuf[16]; + InputBuf_17 = inputBuf[17]; + InputBuf_18 = inputBuf[18]; + InputBuf_19 = inputBuf[19]; + InputBuf_20 = inputBuf[20]; + InputBuf_21 = inputBuf[21]; + InputBuf_22 = inputBuf[22]; + InputBuf_23 = inputBuf[23]; + InputBuf_24 = inputBuf[24]; + InputBuf_25 = inputBuf[25]; + InputBuf_26 = inputBuf[26]; + InputBuf_27 = inputBuf[27]; + InputBuf_28 = inputBuf[28]; + InputBuf_29 = inputBuf[29]; + InputBuf_30 = inputBuf[30]; + InputBuf_31 = inputBuf[31]; + InputBuf_32 = inputBuf[32]; + InputBuf_33 = inputBuf[33]; + InputBuf_34 = inputBuf[34]; + InputBuf_35 = inputBuf[35]; + InputBuf_36 = inputBuf[36]; + InputBuf_37 = inputBuf[37]; + InputBuf_38 = inputBuf[38]; + InputBuf_39 = inputBuf[39]; + InputBuf_40 = inputBuf[40]; + InputBuf_41 = inputBuf[41]; + InputBuf_42 = inputBuf[42]; + InputBuf_43 = inputBuf[43]; + InputBuf_44 = inputBuf[44]; + InputBuf_45 = inputBuf[45]; + InputBuf_46 = inputBuf[46]; + InputBuf_47 = inputBuf[47]; + InputBuf_48 = inputBuf[48]; + InputBuf_49 = inputBuf[49]; + InputBuf_50 = inputBuf[50]; + InputBuf_51 = inputBuf[51]; + InputBuf_52 = inputBuf[52]; + InputBuf_53 = inputBuf[53]; + InputBuf_54 = inputBuf[54]; + InputBuf_55 = inputBuf[55]; + InputBuf_56 = inputBuf[56]; + InputBuf_57 = inputBuf[57]; + InputBuf_58 = inputBuf[58]; + InputBuf_59 = inputBuf[59]; + InputBuf_60 = inputBuf[60]; + InputBuf_61 = inputBuf[61]; + InputBuf_62 = inputBuf[62]; + InputBuf_63 = inputBuf[63]; + InputBuf_64 = inputBuf[64]; + InputBuf_65 = inputBuf[65]; + InputBuf_66 = inputBuf[66]; + InputBuf_67 = inputBuf[67]; + InputBuf_68 = inputBuf[68]; + InputBuf_69 = inputBuf[69]; + InputBuf_70 = inputBuf[70]; + InputBuf_71 = inputBuf[71]; + InputBuf_72 = inputBuf[72]; + InputBuf_73 = inputBuf[73]; + InputBuf_74 = inputBuf[74]; + InputBuf_75 = inputBuf[75]; + InputBuf_76 = inputBuf[76]; + InputBuf_77 = inputBuf[77]; + InputBuf_78 = inputBuf[78]; + InputBuf_79 = inputBuf[79]; + InputBuf_80 = inputBuf[80]; + InputBuf_81 = inputBuf[81]; + InputBuf_82 = inputBuf[82]; + InputBuf_83 = inputBuf[83]; + InputBuf_84 = inputBuf[84]; + InputBuf_85 = inputBuf[85]; + InputBuf_86 = inputBuf[86]; + InputBuf_87 = inputBuf[87]; + InputBuf_88 = inputBuf[88]; + InputBuf_89 = inputBuf[89]; + InputBuf_90 = inputBuf[90]; + InputBuf_91 = inputBuf[91]; + InputBuf_92 = inputBuf[92]; + InputBuf_93 = inputBuf[93]; + InputBuf_94 = inputBuf[94]; + InputBuf_95 = inputBuf[95]; + InputBuf_96 = inputBuf[96]; + InputBuf_97 = inputBuf[97]; + InputBuf_98 = inputBuf[98]; + InputBuf_99 = inputBuf[99]; + InputBuf_100 = inputBuf[100]; + InputBuf_101 = inputBuf[101]; + InputBuf_102 = inputBuf[102]; + InputBuf_103 = inputBuf[103]; + InputBuf_104 = inputBuf[104]; + InputBuf_105 = inputBuf[105]; + InputBuf_106 = inputBuf[106]; + InputBuf_107 = inputBuf[107]; + InputBuf_108 = inputBuf[108]; + InputBuf_109 = inputBuf[109]; + InputBuf_110 = inputBuf[110]; + InputBuf_111 = inputBuf[111]; + InputBuf_112 = inputBuf[112]; + InputBuf_113 = inputBuf[113]; + InputBuf_114 = inputBuf[114]; + InputBuf_115 = inputBuf[115]; + InputBuf_116 = inputBuf[116]; + InputBuf_117 = inputBuf[117]; + InputBuf_118 = inputBuf[118]; + InputBuf_119 = inputBuf[119]; + InputBuf_120 = inputBuf[120]; + InputBuf_121 = inputBuf[121]; + InputBuf_122 = inputBuf[122]; + InputBuf_123 = inputBuf[123]; + InputBuf_124 = inputBuf[124]; + InputBuf_125 = inputBuf[125]; + InputBuf_126 = inputBuf[126]; + InputBuf_127 = inputBuf[127]; + InputBuf_128 = inputBuf[128]; + InputBuf_129 = inputBuf[129]; + InputBuf_130 = inputBuf[130]; + InputBuf_131 = inputBuf[131]; + InputBuf_132 = inputBuf[132]; + InputBuf_133 = inputBuf[133]; + InputBuf_134 = inputBuf[134]; + InputBuf_135 = inputBuf[135]; + InputBuf_136 = inputBuf[136]; + InputBuf_137 = inputBuf[137]; + InputBuf_138 = inputBuf[138]; + InputBuf_139 = inputBuf[139]; + InputBuf_140 = inputBuf[140]; + InputBuf_141 = inputBuf[141]; + InputBuf_142 = inputBuf[142]; + InputBuf_143 = inputBuf[143]; + InputBuf_144 = inputBuf[144]; + InputBuf_145 = inputBuf[145]; + InputBuf_146 = inputBuf[146]; + InputBuf_147 = inputBuf[147]; + InputBuf_148 = inputBuf[148]; + InputBuf_149 = inputBuf[149]; + InputBuf_150 = inputBuf[150]; + InputBuf_151 = inputBuf[151]; + InputBuf_152 = inputBuf[152]; + InputBuf_153 = inputBuf[153]; + InputBuf_154 = inputBuf[154]; + InputBuf_155 = inputBuf[155]; + InputBuf_156 = inputBuf[156]; + InputBuf_157 = inputBuf[157]; + InputBuf_158 = inputBuf[158]; + InputBuf_159 = inputBuf[159]; + InputBuf_160 = inputBuf[160]; + InputBuf_161 = inputBuf[161]; + InputBuf_162 = inputBuf[162]; + InputBuf_163 = inputBuf[163]; + InputBuf_164 = inputBuf[164]; + InputBuf_165 = inputBuf[165]; + InputBuf_166 = inputBuf[166]; + InputBuf_167 = inputBuf[167]; + InputBuf_168 = inputBuf[168]; + InputBuf_169 = inputBuf[169]; + InputBuf_170 = inputBuf[170]; + InputBuf_171 = inputBuf[171]; + InputBuf_172 = inputBuf[172]; + InputBuf_173 = inputBuf[173]; + InputBuf_174 = inputBuf[174]; + InputBuf_175 = inputBuf[175]; + InputBuf_176 = inputBuf[176]; + InputBuf_177 = inputBuf[177]; + InputBuf_178 = inputBuf[178]; + InputBuf_179 = inputBuf[179]; + InputBuf_180 = inputBuf[180]; + InputBuf_181 = inputBuf[181]; + InputBuf_182 = inputBuf[182]; + InputBuf_183 = inputBuf[183]; + InputBuf_184 = inputBuf[184]; + InputBuf_185 = inputBuf[185]; + InputBuf_186 = inputBuf[186]; + InputBuf_187 = inputBuf[187]; + InputBuf_188 = inputBuf[188]; + InputBuf_189 = inputBuf[189]; + InputBuf_190 = inputBuf[190]; + InputBuf_191 = inputBuf[191]; + InputBuf_192 = inputBuf[192]; + InputBuf_193 = inputBuf[193]; + InputBuf_194 = inputBuf[194]; + InputBuf_195 = inputBuf[195]; + InputBuf_196 = inputBuf[196]; + InputBuf_197 = inputBuf[197]; + InputBuf_198 = inputBuf[198]; + InputBuf_199 = inputBuf[199]; + InputBuf_200 = inputBuf[200]; + InputBuf_201 = inputBuf[201]; + InputBuf_202 = inputBuf[202]; + InputBuf_203 = inputBuf[203]; + InputBuf_204 = inputBuf[204]; + InputBuf_205 = inputBuf[205]; + InputBuf_206 = inputBuf[206]; + InputBuf_207 = inputBuf[207]; + InputBuf_208 = inputBuf[208]; + InputBuf_209 = inputBuf[209]; + InputBuf_210 = inputBuf[210]; + InputBuf_211 = inputBuf[211]; + InputBuf_212 = inputBuf[212]; + InputBuf_213 = inputBuf[213]; + InputBuf_214 = inputBuf[214]; + InputBuf_215 = inputBuf[215]; + InputBuf_216 = inputBuf[216]; + InputBuf_217 = inputBuf[217]; + InputBuf_218 = inputBuf[218]; + InputBuf_219 = inputBuf[219]; + InputBuf_220 = inputBuf[220]; + InputBuf_221 = inputBuf[221]; + InputBuf_222 = inputBuf[222]; + InputBuf_223 = inputBuf[223]; + InputBuf_224 = inputBuf[224]; + InputBuf_225 = inputBuf[225]; + InputBuf_226 = inputBuf[226]; + InputBuf_227 = inputBuf[227]; + InputBuf_228 = inputBuf[228]; + InputBuf_229 = inputBuf[229]; + InputBuf_230 = inputBuf[230]; + InputBuf_231 = inputBuf[231]; + InputBuf_232 = inputBuf[232]; + InputBuf_233 = inputBuf[233]; + InputBuf_234 = inputBuf[234]; + InputBuf_235 = inputBuf[235]; + InputBuf_236 = inputBuf[236]; + InputBuf_237 = inputBuf[237]; + InputBuf_238 = inputBuf[238]; + InputBuf_239 = inputBuf[239]; + InputBuf_240 = inputBuf[240]; + InputBuf_241 = inputBuf[241]; + InputBuf_242 = inputBuf[242]; + InputBuf_243 = inputBuf[243]; + InputBuf_244 = inputBuf[244]; + InputBuf_245 = inputBuf[245]; + InputBuf_246 = inputBuf[246]; + InputBuf_247 = inputBuf[247]; + InputBuf_248 = inputBuf[248]; + InputBuf_249 = inputBuf[249]; + InputBuf_250 = inputBuf[250]; + InputBuf_251 = inputBuf[251]; + InputBuf_252 = inputBuf[252]; + InputBuf_253 = inputBuf[253]; + InputBuf_254 = inputBuf[254]; + InputBuf_255 = inputBuf[255]; + } + Filters = filters; + CountGrep = countGrep; + } + + /// /// To be documented. /// public unsafe ImGuiTextFilter(Span inputBuf = default, ImVectorImGuiTextRange filters = default, int countGrep = default) + { + if (inputBuf != default) + { + InputBuf_0 = inputBuf[0]; + InputBuf_1 = inputBuf[1]; + InputBuf_2 = inputBuf[2]; + InputBuf_3 = inputBuf[3]; + InputBuf_4 = inputBuf[4]; + InputBuf_5 = inputBuf[5]; + InputBuf_6 = inputBuf[6]; + InputBuf_7 = inputBuf[7]; + InputBuf_8 = inputBuf[8]; + InputBuf_9 = inputBuf[9]; + InputBuf_10 = inputBuf[10]; + InputBuf_11 = inputBuf[11]; + InputBuf_12 = inputBuf[12]; + InputBuf_13 = inputBuf[13]; + InputBuf_14 = inputBuf[14]; + InputBuf_15 = inputBuf[15]; + InputBuf_16 = inputBuf[16]; + InputBuf_17 = inputBuf[17]; + InputBuf_18 = inputBuf[18]; + InputBuf_19 = inputBuf[19]; + InputBuf_20 = inputBuf[20]; + InputBuf_21 = inputBuf[21]; + InputBuf_22 = inputBuf[22]; + InputBuf_23 = inputBuf[23]; + InputBuf_24 = inputBuf[24]; + InputBuf_25 = inputBuf[25]; + InputBuf_26 = inputBuf[26]; + InputBuf_27 = inputBuf[27]; + InputBuf_28 = inputBuf[28]; + InputBuf_29 = inputBuf[29]; + InputBuf_30 = inputBuf[30]; + InputBuf_31 = inputBuf[31]; + InputBuf_32 = inputBuf[32]; + InputBuf_33 = inputBuf[33]; + InputBuf_34 = inputBuf[34]; + InputBuf_35 = inputBuf[35]; + InputBuf_36 = inputBuf[36]; + InputBuf_37 = inputBuf[37]; + InputBuf_38 = inputBuf[38]; + InputBuf_39 = inputBuf[39]; + InputBuf_40 = inputBuf[40]; + InputBuf_41 = inputBuf[41]; + InputBuf_42 = inputBuf[42]; + InputBuf_43 = inputBuf[43]; + InputBuf_44 = inputBuf[44]; + InputBuf_45 = inputBuf[45]; + InputBuf_46 = inputBuf[46]; + InputBuf_47 = inputBuf[47]; + InputBuf_48 = inputBuf[48]; + InputBuf_49 = inputBuf[49]; + InputBuf_50 = inputBuf[50]; + InputBuf_51 = inputBuf[51]; + InputBuf_52 = inputBuf[52]; + InputBuf_53 = inputBuf[53]; + InputBuf_54 = inputBuf[54]; + InputBuf_55 = inputBuf[55]; + InputBuf_56 = inputBuf[56]; + InputBuf_57 = inputBuf[57]; + InputBuf_58 = inputBuf[58]; + InputBuf_59 = inputBuf[59]; + InputBuf_60 = inputBuf[60]; + InputBuf_61 = inputBuf[61]; + InputBuf_62 = inputBuf[62]; + InputBuf_63 = inputBuf[63]; + InputBuf_64 = inputBuf[64]; + InputBuf_65 = inputBuf[65]; + InputBuf_66 = inputBuf[66]; + InputBuf_67 = inputBuf[67]; + InputBuf_68 = inputBuf[68]; + InputBuf_69 = inputBuf[69]; + InputBuf_70 = inputBuf[70]; + InputBuf_71 = inputBuf[71]; + InputBuf_72 = inputBuf[72]; + InputBuf_73 = inputBuf[73]; + InputBuf_74 = inputBuf[74]; + InputBuf_75 = inputBuf[75]; + InputBuf_76 = inputBuf[76]; + InputBuf_77 = inputBuf[77]; + InputBuf_78 = inputBuf[78]; + InputBuf_79 = inputBuf[79]; + InputBuf_80 = inputBuf[80]; + InputBuf_81 = inputBuf[81]; + InputBuf_82 = inputBuf[82]; + InputBuf_83 = inputBuf[83]; + InputBuf_84 = inputBuf[84]; + InputBuf_85 = inputBuf[85]; + InputBuf_86 = inputBuf[86]; + InputBuf_87 = inputBuf[87]; + InputBuf_88 = inputBuf[88]; + InputBuf_89 = inputBuf[89]; + InputBuf_90 = inputBuf[90]; + InputBuf_91 = inputBuf[91]; + InputBuf_92 = inputBuf[92]; + InputBuf_93 = inputBuf[93]; + InputBuf_94 = inputBuf[94]; + InputBuf_95 = inputBuf[95]; + InputBuf_96 = inputBuf[96]; + InputBuf_97 = inputBuf[97]; + InputBuf_98 = inputBuf[98]; + InputBuf_99 = inputBuf[99]; + InputBuf_100 = inputBuf[100]; + InputBuf_101 = inputBuf[101]; + InputBuf_102 = inputBuf[102]; + InputBuf_103 = inputBuf[103]; + InputBuf_104 = inputBuf[104]; + InputBuf_105 = inputBuf[105]; + InputBuf_106 = inputBuf[106]; + InputBuf_107 = inputBuf[107]; + InputBuf_108 = inputBuf[108]; + InputBuf_109 = inputBuf[109]; + InputBuf_110 = inputBuf[110]; + InputBuf_111 = inputBuf[111]; + InputBuf_112 = inputBuf[112]; + InputBuf_113 = inputBuf[113]; + InputBuf_114 = inputBuf[114]; + InputBuf_115 = inputBuf[115]; + InputBuf_116 = inputBuf[116]; + InputBuf_117 = inputBuf[117]; + InputBuf_118 = inputBuf[118]; + InputBuf_119 = inputBuf[119]; + InputBuf_120 = inputBuf[120]; + InputBuf_121 = inputBuf[121]; + InputBuf_122 = inputBuf[122]; + InputBuf_123 = inputBuf[123]; + InputBuf_124 = inputBuf[124]; + InputBuf_125 = inputBuf[125]; + InputBuf_126 = inputBuf[126]; + InputBuf_127 = inputBuf[127]; + InputBuf_128 = inputBuf[128]; + InputBuf_129 = inputBuf[129]; + InputBuf_130 = inputBuf[130]; + InputBuf_131 = inputBuf[131]; + InputBuf_132 = inputBuf[132]; + InputBuf_133 = inputBuf[133]; + InputBuf_134 = inputBuf[134]; + InputBuf_135 = inputBuf[135]; + InputBuf_136 = inputBuf[136]; + InputBuf_137 = inputBuf[137]; + InputBuf_138 = inputBuf[138]; + InputBuf_139 = inputBuf[139]; + InputBuf_140 = inputBuf[140]; + InputBuf_141 = inputBuf[141]; + InputBuf_142 = inputBuf[142]; + InputBuf_143 = inputBuf[143]; + InputBuf_144 = inputBuf[144]; + InputBuf_145 = inputBuf[145]; + InputBuf_146 = inputBuf[146]; + InputBuf_147 = inputBuf[147]; + InputBuf_148 = inputBuf[148]; + InputBuf_149 = inputBuf[149]; + InputBuf_150 = inputBuf[150]; + InputBuf_151 = inputBuf[151]; + InputBuf_152 = inputBuf[152]; + InputBuf_153 = inputBuf[153]; + InputBuf_154 = inputBuf[154]; + InputBuf_155 = inputBuf[155]; + InputBuf_156 = inputBuf[156]; + InputBuf_157 = inputBuf[157]; + InputBuf_158 = inputBuf[158]; + InputBuf_159 = inputBuf[159]; + InputBuf_160 = inputBuf[160]; + InputBuf_161 = inputBuf[161]; + InputBuf_162 = inputBuf[162]; + InputBuf_163 = inputBuf[163]; + InputBuf_164 = inputBuf[164]; + InputBuf_165 = inputBuf[165]; + InputBuf_166 = inputBuf[166]; + InputBuf_167 = inputBuf[167]; + InputBuf_168 = inputBuf[168]; + InputBuf_169 = inputBuf[169]; + InputBuf_170 = inputBuf[170]; + InputBuf_171 = inputBuf[171]; + InputBuf_172 = inputBuf[172]; + InputBuf_173 = inputBuf[173]; + InputBuf_174 = inputBuf[174]; + InputBuf_175 = inputBuf[175]; + InputBuf_176 = inputBuf[176]; + InputBuf_177 = inputBuf[177]; + InputBuf_178 = inputBuf[178]; + InputBuf_179 = inputBuf[179]; + InputBuf_180 = inputBuf[180]; + InputBuf_181 = inputBuf[181]; + InputBuf_182 = inputBuf[182]; + InputBuf_183 = inputBuf[183]; + InputBuf_184 = inputBuf[184]; + InputBuf_185 = inputBuf[185]; + InputBuf_186 = inputBuf[186]; + InputBuf_187 = inputBuf[187]; + InputBuf_188 = inputBuf[188]; + InputBuf_189 = inputBuf[189]; + InputBuf_190 = inputBuf[190]; + InputBuf_191 = inputBuf[191]; + InputBuf_192 = inputBuf[192]; + InputBuf_193 = inputBuf[193]; + InputBuf_194 = inputBuf[194]; + InputBuf_195 = inputBuf[195]; + InputBuf_196 = inputBuf[196]; + InputBuf_197 = inputBuf[197]; + InputBuf_198 = inputBuf[198]; + InputBuf_199 = inputBuf[199]; + InputBuf_200 = inputBuf[200]; + InputBuf_201 = inputBuf[201]; + InputBuf_202 = inputBuf[202]; + InputBuf_203 = inputBuf[203]; + InputBuf_204 = inputBuf[204]; + InputBuf_205 = inputBuf[205]; + InputBuf_206 = inputBuf[206]; + InputBuf_207 = inputBuf[207]; + InputBuf_208 = inputBuf[208]; + InputBuf_209 = inputBuf[209]; + InputBuf_210 = inputBuf[210]; + InputBuf_211 = inputBuf[211]; + InputBuf_212 = inputBuf[212]; + InputBuf_213 = inputBuf[213]; + InputBuf_214 = inputBuf[214]; + InputBuf_215 = inputBuf[215]; + InputBuf_216 = inputBuf[216]; + InputBuf_217 = inputBuf[217]; + InputBuf_218 = inputBuf[218]; + InputBuf_219 = inputBuf[219]; + InputBuf_220 = inputBuf[220]; + InputBuf_221 = inputBuf[221]; + InputBuf_222 = inputBuf[222]; + InputBuf_223 = inputBuf[223]; + InputBuf_224 = inputBuf[224]; + InputBuf_225 = inputBuf[225]; + InputBuf_226 = inputBuf[226]; + InputBuf_227 = inputBuf[227]; + InputBuf_228 = inputBuf[228]; + InputBuf_229 = inputBuf[229]; + InputBuf_230 = inputBuf[230]; + InputBuf_231 = inputBuf[231]; + InputBuf_232 = inputBuf[232]; + InputBuf_233 = inputBuf[233]; + InputBuf_234 = inputBuf[234]; + InputBuf_235 = inputBuf[235]; + InputBuf_236 = inputBuf[236]; + InputBuf_237 = inputBuf[237]; + InputBuf_238 = inputBuf[238]; + InputBuf_239 = inputBuf[239]; + InputBuf_240 = inputBuf[240]; + InputBuf_241 = inputBuf[241]; + InputBuf_242 = inputBuf[242]; + InputBuf_243 = inputBuf[243]; + InputBuf_244 = inputBuf[244]; + InputBuf_245 = inputBuf[245]; + InputBuf_246 = inputBuf[246]; + InputBuf_247 = inputBuf[247]; + InputBuf_248 = inputBuf[248]; + InputBuf_249 = inputBuf[249]; + InputBuf_250 = inputBuf[250]; + InputBuf_251 = inputBuf[251]; + InputBuf_252 = inputBuf[252]; + InputBuf_253 = inputBuf[253]; + InputBuf_254 = inputBuf[254]; + InputBuf_255 = inputBuf[255]; + } + Filters = filters; + CountGrep = countGrep; + } + /// /// To be documented. /// - [NativeName(NativeNameType.Func, "ImGuiTextFilter_Build")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Build() { fixed (ImGuiTextFilter* @this = &this) @@ -29318,8 +35668,6 @@ public unsafe void Build() } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_Clear")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Clear() { fixed (ImGuiTextFilter* @this = &this) @@ -29328,8 +35676,6 @@ public unsafe void Clear() } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiTextFilter* @this = &this) @@ -29338,9 +35684,7 @@ public unsafe void Destroy() } } - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) + public unsafe bool Draw( byte* label, float width) { fixed (ImGuiTextFilter* @this = &this) { @@ -29349,9 +35693,7 @@ public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName( } } - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] byte* label) + public unsafe bool Draw( byte* label) { fixed (ImGuiTextFilter* @this = &this) { @@ -29360,8 +35702,6 @@ public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName( } } - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool Draw() { fixed (ImGuiTextFilter* @this = &this) @@ -29371,9 +35711,7 @@ public unsafe bool Draw() } } - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool Draw([NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) + public unsafe bool Draw( float width) { fixed (ImGuiTextFilter* @this = &this) { @@ -29382,9 +35720,7 @@ public unsafe bool Draw([NativeName(NativeNameType.Param, "width")] [NativeName( } } - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) + public unsafe bool Draw( ref byte label, float width) { fixed (ImGuiTextFilter* @this = &this) { @@ -29396,9 +35732,7 @@ public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName( } } - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] ref byte label) + public unsafe bool Draw( ref byte label) { fixed (ImGuiTextFilter* @this = &this) { @@ -29410,9 +35744,7 @@ public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName( } } - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "float")] float width) + public unsafe bool Draw( string label, float width) { fixed (ImGuiTextFilter* @this = &this) { @@ -29442,9 +35774,7 @@ public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName( } } - /// /// Helper calling InputText+Build /// [NativeName(NativeNameType.Func, "ImGuiTextFilter_Draw")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName(NativeNameType.Type, "const char*")] string label) + public unsafe bool Draw( string label) { fixed (ImGuiTextFilter* @this = &this) { @@ -29474,8 +35804,6 @@ public unsafe bool Draw([NativeName(NativeNameType.Param, "label")] [NativeName( } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_IsActive")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool IsActive() { fixed (ImGuiTextFilter* @this = &this) @@ -29485,9 +35813,7 @@ public unsafe bool IsActive() } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe bool PassFilter( byte* text, byte* textEnd) { fixed (ImGuiTextFilter* @this = &this) { @@ -29496,9 +35822,7 @@ public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text) + public unsafe bool PassFilter( byte* text) { fixed (ImGuiTextFilter* @this = &this) { @@ -29507,9 +35831,7 @@ public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe bool PassFilter( ref byte text, byte* textEnd) { fixed (ImGuiTextFilter* @this = &this) { @@ -29521,9 +35843,7 @@ public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text) + public unsafe bool PassFilter( ref byte text) { fixed (ImGuiTextFilter* @this = &this) { @@ -29535,9 +35855,7 @@ public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] byte* textEnd) + public unsafe bool PassFilter( string text, byte* textEnd) { fixed (ImGuiTextFilter* @this = &this) { @@ -29567,9 +35885,7 @@ public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text) + public unsafe bool PassFilter( string text) { fixed (ImGuiTextFilter* @this = &this) { @@ -29599,9 +35915,7 @@ public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe bool PassFilter( byte* text, ref byte textEnd) { fixed (ImGuiTextFilter* @this = &this) { @@ -29613,9 +35927,7 @@ public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] byte* text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe bool PassFilter( byte* text, string textEnd) { fixed (ImGuiTextFilter* @this = &this) { @@ -29645,9 +35957,7 @@ public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] ref byte text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] ref byte textEnd) + public unsafe bool PassFilter( ref byte text, ref byte textEnd) { fixed (ImGuiTextFilter* @this = &this) { @@ -29662,9 +35972,7 @@ public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiTextFilter_PassFilter")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [NativeName(NativeNameType.Type, "const char*")] string text, [NativeName(NativeNameType.Param, "text_end")] [NativeName(NativeNameType.Type, "const char*")] string textEnd) + public unsafe bool PassFilter( string text, string textEnd) { fixed (ImGuiTextFilter* @this = &this) { @@ -29720,61 +36028,60 @@ public unsafe bool PassFilter([NativeName(NativeNameType.Param, "text")] [Native /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_ImGuiTextRange")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorImGuiTextRange { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImGuiTextRange*")] public unsafe ImGuiTextRange* Data; + /// /// To be documented. /// public unsafe ImVectorImGuiTextRange(int size = default, int capacity = default, ImGuiTextRange* data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTextRange")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTextRange { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "b")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* B; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "e")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* E; + /// /// To be documented. /// public unsafe ImGuiTextRange(byte* b = default, byte* e = default) + { + B = b; + E = e; + } + - [NativeName(NativeNameType.Func, "ImGuiTextRange_destroy")] - [return: NativeName(NativeNameType.Type, "void")] public unsafe void Destroy() { fixed (ImGuiTextRange* @this = &this) @@ -29783,8 +36090,6 @@ public unsafe void Destroy() } } - [NativeName(NativeNameType.Func, "ImGuiTextRange_empty")] - [return: NativeName(NativeNameType.Type, "bool")] public unsafe bool empty() { fixed (ImGuiTextRange* @this = &this) @@ -29794,9 +36099,7 @@ public unsafe bool empty() } } - [NativeName(NativeNameType.Func, "ImGuiTextRange_split")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void split([NativeName(NativeNameType.Param, "separator")] [NativeName(NativeNameType.Type, "char")] byte separator, [NativeName(NativeNameType.Param, "out")] [NativeName(NativeNameType.Type, "ImVector_ImGuiTextRange*")] ImVectorImGuiTextRange* output) + public unsafe void split( byte separator, ImVectorImGuiTextRange* output) { fixed (ImGuiTextRange* @this = &this) { @@ -29804,9 +36107,7 @@ public unsafe void split([NativeName(NativeNameType.Param, "separator")] [Native } } - [NativeName(NativeNameType.Func, "ImGuiTextRange_split")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void split([NativeName(NativeNameType.Param, "separator")] [NativeName(NativeNameType.Type, "char")] byte separator, [NativeName(NativeNameType.Param, "out")] [NativeName(NativeNameType.Type, "ImVector_ImGuiTextRange*")] ref ImVectorImGuiTextRange output) + public unsafe void split( byte separator, ref ImVectorImGuiTextRange output) { fixed (ImGuiTextRange* @this = &this) { @@ -29822,158 +36123,96 @@ public unsafe void split([NativeName(NativeNameType.Param, "separator")] [Native /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImBitVector")] [StructLayout(LayoutKind.Sequential)] public partial struct ImBitVector { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Storage")] - [NativeName(NativeNameType.Type, "ImVector_ImU32")] public ImVectorImU32 Storage; - - [NativeName(NativeNameType.Func, "ImBitVector_Clear")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Clear() - { - fixed (ImBitVector* @this = &this) - { - ImGui.ClearNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImBitVector_ClearBit")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void ClearBit([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImBitVector* @this = &this) - { - ImGui.ClearBitNative(@this, n); - } - } - - [NativeName(NativeNameType.Func, "ImBitVector_Create")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Create([NativeName(NativeNameType.Param, "sz")] [NativeName(NativeNameType.Type, "int")] int sz) - { - fixed (ImBitVector* @this = &this) - { - ImGui.CreateNative(@this, sz); - } - } - - [NativeName(NativeNameType.Func, "ImBitVector_SetBit")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void SetBit([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) + /// /// To be documented. /// public unsafe ImBitVector(ImVectorImU32 storage = default) { - fixed (ImBitVector* @this = &this) - { - ImGui.SetBitNative(@this, n); - } + Storage = storage; } - [NativeName(NativeNameType.Func, "ImBitVector_TestBit")] - [return: NativeName(NativeNameType.Type, "bool")] - public unsafe bool TestBit([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "int")] int n) - { - fixed (ImBitVector* @this = &this) - { - byte ret = ImGui.TestBitNative(@this, n); - return ret != 0; - } - } } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiDataVarInfo")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiDataVarInfo { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Type")] - [NativeName(NativeNameType.Type, "ImGuiDataType")] - public ImGuiDataType Type; + public int Type; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Count")] - [NativeName(NativeNameType.Type, "ImU32")] public uint Count; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Offset")] - [NativeName(NativeNameType.Type, "ImU32")] public uint Offset; - - [NativeName(NativeNameType.Func, "ImGuiDataVarInfo_GetVarPtr")] - [return: NativeName(NativeNameType.Type, "void*")] - public unsafe void* GetVarPtr([NativeName(NativeNameType.Param, "parent")] [NativeName(NativeNameType.Type, "void*")] void* parent) + /// /// To be documented. /// public unsafe ImGuiDataVarInfo(int type = default, uint count = default, uint offset = default) { - fixed (ImGuiDataVarInfo* @this = &this) - { - void* ret = ImGui.GetVarPtrNative(@this, parent); - return ret; - } + Type = type; + Count = count; + Offset = offset; } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiDataTypeInfo")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiDataTypeInfo { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "size_t")] - public nuint Size; + public ulong Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Name")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* Name; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "PrintFmt")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* PrintFmt; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ScanFmt")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* ScanFmt; + /// /// To be documented. /// public unsafe ImGuiDataTypeInfo(ulong size = default, byte* name = default, byte* printFmt = default, byte* scanFmt = default) + { + Size = size; + Name = name; + PrintFmt = printFmt; + ScanFmt = scanFmt; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiInputTextDeactivateData")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiInputTextDeactivateData { @@ -29984,107 +36223,82 @@ public partial struct ImGuiInputTextDeactivateData /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiLocEntry")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiLocEntry { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Key")] - [NativeName(NativeNameType.Type, "ImGuiLocKey")] public ImGuiLocKey Key; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Text")] - [NativeName(NativeNameType.Type, "const char*")] public unsafe byte* Text; + /// /// To be documented. /// public unsafe ImGuiLocEntry(ImGuiLocKey key = default, byte* text = default) + { + Key = key; + Text = text; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTableSettings")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableSettings { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SaveFlags")] - [NativeName(NativeNameType.Type, "ImGuiTableFlags")] - public ImGuiTableFlags SaveFlags; + public int SaveFlags; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "RefScale")] - [NativeName(NativeNameType.Type, "float")] public float RefScale; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsCount")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte ColumnsCount; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ColumnsCountMax")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte ColumnsCountMax; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantApply")] - [NativeName(NativeNameType.Type, "bool")] public byte WantApply; - - - [NativeName(NativeNameType.Func, "ImGuiTableSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiTableSettings(uint id = default, int saveFlags = default, float refScale = default, sbyte columnsCount = default, sbyte columnsCountMax = default, bool wantApply = default) { - fixed (ImGuiTableSettings* @this = &this) - { - ImGui.DestroyNative(@this); - } + ID = id; + SaveFlags = saveFlags; + RefScale = refScale; + ColumnsCount = columnsCount; + ColumnsCountMax = columnsCountMax; + WantApply = wantApply ? (byte)1 : (byte)0; } - [NativeName(NativeNameType.Func, "ImGuiTableSettings_GetColumnSettings")] - [return: NativeName(NativeNameType.Type, "ImGuiTableColumnSettings*")] - public unsafe ImGuiTableColumnSettings* GetColumnSettings() - { - fixed (ImGuiTableSettings* @this = &this) - { - ImGuiTableColumnSettings* ret = ImGui.GetColumnSettingsNative(@this); - return ret; - } - } } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTableColumnsSettings")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableColumnsSettings { @@ -30095,221 +36309,174 @@ public partial struct ImGuiTableColumnsSettings /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiWindowSettings")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiWindowSettings { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ID; + public uint ID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Pos")] - [NativeName(NativeNameType.Type, "ImVec2ih")] public ImVec2Ih Pos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "ImVec2ih")] public ImVec2Ih Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ViewportPos")] - [NativeName(NativeNameType.Type, "ImVec2ih")] public ImVec2Ih ViewportPos; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ViewportId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ViewportId; + public uint ViewportId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int DockId; + public uint DockId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ClassId")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int ClassId; + public uint ClassId; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DockOrder")] - [NativeName(NativeNameType.Type, "short")] public short DockOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Collapsed")] - [NativeName(NativeNameType.Type, "bool")] public byte Collapsed; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantApply")] - [NativeName(NativeNameType.Type, "bool")] public byte WantApply; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WantDelete")] - [NativeName(NativeNameType.Type, "bool")] public byte WantDelete; - - - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() - { - fixed (ImGuiWindowSettings* @this = &this) - { - ImGui.DestroyNative(@this); - } - } - - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_GetName")] - [return: NativeName(NativeNameType.Type, "char*")] - public unsafe byte* GetName() + /// /// To be documented. /// public unsafe ImGuiWindowSettings(uint id = default, ImVec2Ih pos = default, ImVec2Ih size = default, ImVec2Ih viewportPos = default, uint viewportId = default, uint dockId = default, uint classId = default, short dockOrder = default, bool collapsed = default, bool wantApply = default, bool wantDelete = default) { - fixed (ImGuiWindowSettings* @this = &this) - { - byte* ret = ImGui.GetNameNative(@this); - return ret; - } + ID = id; + Pos = pos; + Size = size; + ViewportPos = viewportPos; + ViewportId = viewportId; + DockId = dockId; + ClassId = classId; + DockOrder = dockOrder; + Collapsed = collapsed ? (byte)1 : (byte)0; + WantApply = wantApply ? (byte)1 : (byte)0; + WantDelete = wantDelete ? (byte)1 : (byte)0; } - [NativeName(NativeNameType.Func, "ImGuiWindowSettings_GetName")] - [return: NativeName(NativeNameType.Type, "char*")] - public unsafe string GetNameS() - { - fixed (ImGuiWindowSettings* @this = &this) - { - string ret = Utils.DecodeStringUTF8(ImGui.GetNameNative(@this)); - return ret; - } - } } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImVector_const_charPtr")] [StructLayout(LayoutKind.Sequential)] public partial struct ImVectorConstCharPtr { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Size")] - [NativeName(NativeNameType.Type, "int")] public int Size; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Capacity")] - [NativeName(NativeNameType.Type, "int")] public int Capacity; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "const char**")] public unsafe byte** Data; + /// /// To be documented. /// public unsafe ImVectorConstCharPtr(int size = default, int capacity = default, byte** data = default) + { + Size = size; + Capacity = capacity; + Data = data; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "StbTexteditRow")] [StructLayout(LayoutKind.Sequential)] public partial struct StbTexteditRow { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "x0")] - [NativeName(NativeNameType.Type, "float")] public float X0; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "x1")] - [NativeName(NativeNameType.Type, "float")] public float X1; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "baseline_y_delta")] - [NativeName(NativeNameType.Type, "float")] public float BaselineYDelta; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ymin")] - [NativeName(NativeNameType.Type, "float")] public float Ymin; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "ymax")] - [NativeName(NativeNameType.Type, "float")] public float Ymax; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "num_chars")] - [NativeName(NativeNameType.Type, "int")] public int NumChars; + /// /// To be documented. /// public unsafe StbTexteditRow(float x0 = default, float x1 = default, float baselineYDelta = default, float ymin = default, float ymax = default, int numChars = default) + { + X0 = x0; + X1 = x1; + BaselineYDelta = baselineYDelta; + Ymin = ymin; + Ymax = ymax; + NumChars = numChars; + } + } /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiDataTypeTempStorage")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiDataTypeTempStorage { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Data")] - [NativeName(NativeNameType.Type, "ImU8[8]")] public byte Data_0; public byte Data_1; public byte Data_2; @@ -30320,6 +36487,36 @@ public partial struct ImGuiDataTypeTempStorage public byte Data_7; + /// /// To be documented. /// public unsafe ImGuiDataTypeTempStorage(byte* data = default) + { + if (data != default) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + Data_6 = data[6]; + Data_7 = data[7]; + } + } + + /// /// To be documented. /// public unsafe ImGuiDataTypeTempStorage(Span data = default) + { + if (data != default) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + Data_6 = data[6]; + Data_7 = data[7]; + } + } + /// /// To be documented. @@ -30329,15 +36526,12 @@ public partial struct ImGuiDataTypeTempStorage /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN")] [StructLayout(LayoutKind.Sequential)] public partial struct ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Storage")] - [NativeName(NativeNameType.Type, "ImU32[5]")] public uint Storage_0; public uint Storage_1; public uint Storage_2; @@ -30345,6 +36539,30 @@ public partial struct ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN public uint Storage_4; + /// /// To be documented. /// public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(uint* storage = default) + { + if (storage != default) + { + Storage_0 = storage[0]; + Storage_1 = storage[1]; + Storage_2 = storage[2]; + Storage_3 = storage[3]; + Storage_4 = storage[4]; + } + } + + /// /// To be documented. /// public unsafe ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN(Span storage = default) + { + if (storage != default) + { + Storage_0 = storage[0]; + Storage_1 = storage[1]; + Storage_2 = storage[2]; + Storage_3 = storage[3]; + Storage_4 = storage[4]; + } + } + /// /// To be documented. @@ -30354,79 +36572,63 @@ public partial struct ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN /// /// To be documented. /// - [NativeName(NativeNameType.StructOrClass, "ImGuiTableColumnSettings")] [StructLayout(LayoutKind.Sequential)] public partial struct ImGuiTableColumnSettings { /// /// To be documented. /// - [NativeName(NativeNameType.Field, "WidthOrWeight")] - [NativeName(NativeNameType.Type, "float")] public float WidthOrWeight; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "UserID")] - [NativeName(NativeNameType.Type, "ImGuiID")] - public int UserID; + public uint UserID; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "Index")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte Index; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "DisplayOrder")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte DisplayOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortOrder")] - [NativeName(NativeNameType.Type, "ImGuiTableColumnIdx")] public sbyte SortOrder; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "SortDirection")] - [NativeName(NativeNameType.Type, "ImU8")] public byte SortDirection; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsEnabled")] - [NativeName(NativeNameType.Type, "ImU8")] public byte IsEnabled; /// /// To be documented. /// - [NativeName(NativeNameType.Field, "IsStretch")] - [NativeName(NativeNameType.Type, "ImU8")] public byte IsStretch; - - - [NativeName(NativeNameType.Func, "ImGuiTableColumnSettings_destroy")] - [return: NativeName(NativeNameType.Type, "void")] - public unsafe void Destroy() + /// /// To be documented. /// public unsafe ImGuiTableColumnSettings(float widthOrWeight = default, uint userId = default, sbyte index = default, sbyte displayOrder = default, sbyte sortOrder = default, byte sortDirection = default, byte isEnabled = default, byte isStretch = default) { - fixed (ImGuiTableColumnSettings* @this = &this) - { - ImGui.DestroyNative(@this); - } + WidthOrWeight = widthOrWeight; + UserID = userId; + Index = index; + DisplayOrder = displayOrder; + SortOrder = sortOrder; + SortDirection = sortDirection; + IsEnabled = isEnabled; + IsStretch = isStretch; } + } } diff --git a/Hexa.NET.ImGui/Hexa.NET.ImGui.csproj b/Hexa.NET.ImGui/Hexa.NET.ImGui.csproj index d0bb97c..63d5e90 100644 --- a/Hexa.NET.ImGui/Hexa.NET.ImGui.csproj +++ b/Hexa.NET.ImGui/Hexa.NET.ImGui.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable enable true diff --git a/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Constants.cs b/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Constants.cs new file mode 100644 index 0000000..8475231 --- /dev/null +++ b/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Constants.cs @@ -0,0 +1,15207 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL.GLExt +{ + public unsafe partial class GLExt + { + [NativeName(NativeNameType.Const, "KHRONOS_SUPPORT_INT64")] + public const int KHRONOS_SUPPORT_INT64 = 1; + + [NativeName(NativeNameType.Const, "KHRONOS_SUPPORT_FLOAT")] + public const int KHRONOS_SUPPORT_FLOAT = 1; + + [NativeName(NativeNameType.Const, "KHRONOS_MAX_ENUM")] + public const int KHRONOS_MAX_ENUM = 0x7FFFFFFF; + + [NativeName(NativeNameType.Const, "__gl_glext_h_")] + public const int __GL_GLEXT_H_ = 1; + + [NativeName(NativeNameType.Const, "GL_GLEXT_VERSION")] + public const int GL_GLEXT_VERSION = 20230705; + + [NativeName(NativeNameType.Const, "GL_VERSION_1_2")] + public const int GL_VERSION_1_2 = 1; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_BYTE_3_3_2")] + public const int GL_UNSIGNED_BYTE_3_3_2 = 0x8032; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_4_4_4_4")] + public const int GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_5_5_5_1")] + public const int GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_8_8_8_8")] + public const int GL_UNSIGNED_INT_8_8_8_8 = 0x8035; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_10_10_10_2")] + public const int GL_UNSIGNED_INT_10_10_10_2 = 0x8036; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_3D")] + public const int GL_TEXTURE_BINDING_3D = 0x806A; + + [NativeName(NativeNameType.Const, "GL_PACK_SKIP_IMAGES")] + public const int GL_PACK_SKIP_IMAGES = 0x806B; + + [NativeName(NativeNameType.Const, "GL_PACK_IMAGE_HEIGHT")] + public const int GL_PACK_IMAGE_HEIGHT = 0x806C; + + [NativeName(NativeNameType.Const, "GL_UNPACK_SKIP_IMAGES")] + public const int GL_UNPACK_SKIP_IMAGES = 0x806D; + + [NativeName(NativeNameType.Const, "GL_UNPACK_IMAGE_HEIGHT")] + public const int GL_UNPACK_IMAGE_HEIGHT = 0x806E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_3D")] + public const int GL_TEXTURE_3D = 0x806F; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_3D")] + public const int GL_PROXY_TEXTURE_3D = 0x8070; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_DEPTH")] + public const int GL_TEXTURE_DEPTH = 0x8071; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_WRAP_R")] + public const int GL_TEXTURE_WRAP_R = 0x8072; + + [NativeName(NativeNameType.Const, "GL_MAX_3D_TEXTURE_SIZE")] + public const int GL_MAX_3D_TEXTURE_SIZE = 0x8073; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_BYTE_2_3_3_REV")] + public const int GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_5_6_5")] + public const int GL_UNSIGNED_SHORT_5_6_5 = 0x8363; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_5_6_5_REV")] + public const int GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_4_4_4_4_REV")] + public const int GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_1_5_5_5_REV")] + public const int GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_8_8_8_8_REV")] + public const int GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_2_10_10_10_REV")] + public const int GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368; + + [NativeName(NativeNameType.Const, "GL_BGR")] + public const int GL_BGR = 0x80E0; + + [NativeName(NativeNameType.Const, "GL_BGRA")] + public const int GL_BGRA = 0x80E1; + + [NativeName(NativeNameType.Const, "GL_MAX_ELEMENTS_VERTICES")] + public const int GL_MAX_ELEMENTS_VERTICES = 0x80E8; + + [NativeName(NativeNameType.Const, "GL_MAX_ELEMENTS_INDICES")] + public const int GL_MAX_ELEMENTS_INDICES = 0x80E9; + + [NativeName(NativeNameType.Const, "GL_CLAMP_TO_EDGE")] + public const int GL_CLAMP_TO_EDGE = 0x812F; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MIN_LOD")] + public const int GL_TEXTURE_MIN_LOD = 0x813A; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MAX_LOD")] + public const int GL_TEXTURE_MAX_LOD = 0x813B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BASE_LEVEL")] + public const int GL_TEXTURE_BASE_LEVEL = 0x813C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MAX_LEVEL")] + public const int GL_TEXTURE_MAX_LEVEL = 0x813D; + + [NativeName(NativeNameType.Const, "GL_SMOOTH_POINT_SIZE_RANGE")] + public const int GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12; + + [NativeName(NativeNameType.Const, "GL_SMOOTH_POINT_SIZE_GRANULARITY")] + public const int GL_SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13; + + [NativeName(NativeNameType.Const, "GL_SMOOTH_LINE_WIDTH_RANGE")] + public const int GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22; + + [NativeName(NativeNameType.Const, "GL_SMOOTH_LINE_WIDTH_GRANULARITY")] + public const int GL_SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23; + + [NativeName(NativeNameType.Const, "GL_ALIASED_LINE_WIDTH_RANGE")] + public const int GL_ALIASED_LINE_WIDTH_RANGE = 0x846E; + + [NativeName(NativeNameType.Const, "GL_RESCALE_NORMAL")] + public const int GL_RESCALE_NORMAL = 0x803A; + + [NativeName(NativeNameType.Const, "GL_LIGHT_MODEL_COLOR_CONTROL")] + public const int GL_LIGHT_MODEL_COLOR_CONTROL = 0x81F8; + + [NativeName(NativeNameType.Const, "GL_SINGLE_COLOR")] + public const int GL_SINGLE_COLOR = 0x81F9; + + [NativeName(NativeNameType.Const, "GL_SEPARATE_SPECULAR_COLOR")] + public const int GL_SEPARATE_SPECULAR_COLOR = 0x81FA; + + [NativeName(NativeNameType.Const, "GL_ALIASED_POINT_SIZE_RANGE")] + public const int GL_ALIASED_POINT_SIZE_RANGE = 0x846D; + + [NativeName(NativeNameType.Const, "GL_VERSION_1_3")] + public const int GL_VERSION_1_3 = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE0")] + public const int GL_TEXTURE0 = 0x84C0; + + [NativeName(NativeNameType.Const, "GL_TEXTURE1")] + public const int GL_TEXTURE1 = 0x84C1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE2")] + public const int GL_TEXTURE2 = 0x84C2; + + [NativeName(NativeNameType.Const, "GL_TEXTURE3")] + public const int GL_TEXTURE3 = 0x84C3; + + [NativeName(NativeNameType.Const, "GL_TEXTURE4")] + public const int GL_TEXTURE4 = 0x84C4; + + [NativeName(NativeNameType.Const, "GL_TEXTURE5")] + public const int GL_TEXTURE5 = 0x84C5; + + [NativeName(NativeNameType.Const, "GL_TEXTURE6")] + public const int GL_TEXTURE6 = 0x84C6; + + [NativeName(NativeNameType.Const, "GL_TEXTURE7")] + public const int GL_TEXTURE7 = 0x84C7; + + [NativeName(NativeNameType.Const, "GL_TEXTURE8")] + public const int GL_TEXTURE8 = 0x84C8; + + [NativeName(NativeNameType.Const, "GL_TEXTURE9")] + public const int GL_TEXTURE9 = 0x84C9; + + [NativeName(NativeNameType.Const, "GL_TEXTURE10")] + public const int GL_TEXTURE10 = 0x84CA; + + [NativeName(NativeNameType.Const, "GL_TEXTURE11")] + public const int GL_TEXTURE11 = 0x84CB; + + [NativeName(NativeNameType.Const, "GL_TEXTURE12")] + public const int GL_TEXTURE12 = 0x84CC; + + [NativeName(NativeNameType.Const, "GL_TEXTURE13")] + public const int GL_TEXTURE13 = 0x84CD; + + [NativeName(NativeNameType.Const, "GL_TEXTURE14")] + public const int GL_TEXTURE14 = 0x84CE; + + [NativeName(NativeNameType.Const, "GL_TEXTURE15")] + public const int GL_TEXTURE15 = 0x84CF; + + [NativeName(NativeNameType.Const, "GL_TEXTURE16")] + public const int GL_TEXTURE16 = 0x84D0; + + [NativeName(NativeNameType.Const, "GL_TEXTURE17")] + public const int GL_TEXTURE17 = 0x84D1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE18")] + public const int GL_TEXTURE18 = 0x84D2; + + [NativeName(NativeNameType.Const, "GL_TEXTURE19")] + public const int GL_TEXTURE19 = 0x84D3; + + [NativeName(NativeNameType.Const, "GL_TEXTURE20")] + public const int GL_TEXTURE20 = 0x84D4; + + [NativeName(NativeNameType.Const, "GL_TEXTURE21")] + public const int GL_TEXTURE21 = 0x84D5; + + [NativeName(NativeNameType.Const, "GL_TEXTURE22")] + public const int GL_TEXTURE22 = 0x84D6; + + [NativeName(NativeNameType.Const, "GL_TEXTURE23")] + public const int GL_TEXTURE23 = 0x84D7; + + [NativeName(NativeNameType.Const, "GL_TEXTURE24")] + public const int GL_TEXTURE24 = 0x84D8; + + [NativeName(NativeNameType.Const, "GL_TEXTURE25")] + public const int GL_TEXTURE25 = 0x84D9; + + [NativeName(NativeNameType.Const, "GL_TEXTURE26")] + public const int GL_TEXTURE26 = 0x84DA; + + [NativeName(NativeNameType.Const, "GL_TEXTURE27")] + public const int GL_TEXTURE27 = 0x84DB; + + [NativeName(NativeNameType.Const, "GL_TEXTURE28")] + public const int GL_TEXTURE28 = 0x84DC; + + [NativeName(NativeNameType.Const, "GL_TEXTURE29")] + public const int GL_TEXTURE29 = 0x84DD; + + [NativeName(NativeNameType.Const, "GL_TEXTURE30")] + public const int GL_TEXTURE30 = 0x84DE; + + [NativeName(NativeNameType.Const, "GL_TEXTURE31")] + public const int GL_TEXTURE31 = 0x84DF; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_TEXTURE")] + public const int GL_ACTIVE_TEXTURE = 0x84E0; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE")] + public const int GL_MULTISAMPLE = 0x809D; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_ALPHA_TO_COVERAGE")] + public const int GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_ALPHA_TO_ONE")] + public const int GL_SAMPLE_ALPHA_TO_ONE = 0x809F; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_COVERAGE")] + public const int GL_SAMPLE_COVERAGE = 0x80A0; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_BUFFERS")] + public const int GL_SAMPLE_BUFFERS = 0x80A8; + + [NativeName(NativeNameType.Const, "GL_SAMPLES")] + public const int GL_SAMPLES = 0x80A9; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_COVERAGE_VALUE")] + public const int GL_SAMPLE_COVERAGE_VALUE = 0x80AA; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_COVERAGE_INVERT")] + public const int GL_SAMPLE_COVERAGE_INVERT = 0x80AB; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP")] + public const int GL_TEXTURE_CUBE_MAP = 0x8513; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_CUBE_MAP")] + public const int GL_TEXTURE_BINDING_CUBE_MAP = 0x8514; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_POSITIVE_X")] + public const int GL_TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X")] + public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y")] + public const int GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y")] + public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z")] + public const int GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z")] + public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_CUBE_MAP")] + public const int GL_PROXY_TEXTURE_CUBE_MAP = 0x851B; + + [NativeName(NativeNameType.Const, "GL_MAX_CUBE_MAP_TEXTURE_SIZE")] + public const int GL_MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGB")] + public const int GL_COMPRESSED_RGB = 0x84ED; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA")] + public const int GL_COMPRESSED_RGBA = 0x84EE; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPRESSION_HINT")] + public const int GL_TEXTURE_COMPRESSION_HINT = 0x84EF; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPRESSED_IMAGE_SIZE")] + public const int GL_TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPRESSED")] + public const int GL_TEXTURE_COMPRESSED = 0x86A1; + + [NativeName(NativeNameType.Const, "GL_NUM_COMPRESSED_TEXTURE_FORMATS")] + public const int GL_NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_TEXTURE_FORMATS")] + public const int GL_COMPRESSED_TEXTURE_FORMATS = 0x86A3; + + [NativeName(NativeNameType.Const, "GL_CLAMP_TO_BORDER")] + public const int GL_CLAMP_TO_BORDER = 0x812D; + + [NativeName(NativeNameType.Const, "GL_CLIENT_ACTIVE_TEXTURE")] + public const int GL_CLIENT_ACTIVE_TEXTURE = 0x84E1; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_UNITS")] + public const int GL_MAX_TEXTURE_UNITS = 0x84E2; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_MODELVIEW_MATRIX")] + public const int GL_TRANSPOSE_MODELVIEW_MATRIX = 0x84E3; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_PROJECTION_MATRIX")] + public const int GL_TRANSPOSE_PROJECTION_MATRIX = 0x84E4; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_TEXTURE_MATRIX")] + public const int GL_TRANSPOSE_TEXTURE_MATRIX = 0x84E5; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_COLOR_MATRIX")] + public const int GL_TRANSPOSE_COLOR_MATRIX = 0x84E6; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_BIT")] + public const int GL_MULTISAMPLE_BIT = 0x20000000; + + [NativeName(NativeNameType.Const, "GL_NORMAL_MAP")] + public const int GL_NORMAL_MAP = 0x8511; + + [NativeName(NativeNameType.Const, "GL_REFLECTION_MAP")] + public const int GL_REFLECTION_MAP = 0x8512; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_ALPHA")] + public const int GL_COMPRESSED_ALPHA = 0x84E9; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_LUMINANCE")] + public const int GL_COMPRESSED_LUMINANCE = 0x84EA; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_LUMINANCE_ALPHA")] + public const int GL_COMPRESSED_LUMINANCE_ALPHA = 0x84EB; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_INTENSITY")] + public const int GL_COMPRESSED_INTENSITY = 0x84EC; + + [NativeName(NativeNameType.Const, "GL_COMBINE")] + public const int GL_COMBINE = 0x8570; + + [NativeName(NativeNameType.Const, "GL_COMBINE_RGB")] + public const int GL_COMBINE_RGB = 0x8571; + + [NativeName(NativeNameType.Const, "GL_COMBINE_ALPHA")] + public const int GL_COMBINE_ALPHA = 0x8572; + + [NativeName(NativeNameType.Const, "GL_SOURCE0_RGB")] + public const int GL_SOURCE0_RGB = 0x8580; + + [NativeName(NativeNameType.Const, "GL_SOURCE1_RGB")] + public const int GL_SOURCE1_RGB = 0x8581; + + [NativeName(NativeNameType.Const, "GL_SOURCE2_RGB")] + public const int GL_SOURCE2_RGB = 0x8582; + + [NativeName(NativeNameType.Const, "GL_SOURCE0_ALPHA")] + public const int GL_SOURCE0_ALPHA = 0x8588; + + [NativeName(NativeNameType.Const, "GL_SOURCE1_ALPHA")] + public const int GL_SOURCE1_ALPHA = 0x8589; + + [NativeName(NativeNameType.Const, "GL_SOURCE2_ALPHA")] + public const int GL_SOURCE2_ALPHA = 0x858A; + + [NativeName(NativeNameType.Const, "GL_OPERAND0_RGB")] + public const int GL_OPERAND0_RGB = 0x8590; + + [NativeName(NativeNameType.Const, "GL_OPERAND1_RGB")] + public const int GL_OPERAND1_RGB = 0x8591; + + [NativeName(NativeNameType.Const, "GL_OPERAND2_RGB")] + public const int GL_OPERAND2_RGB = 0x8592; + + [NativeName(NativeNameType.Const, "GL_OPERAND0_ALPHA")] + public const int GL_OPERAND0_ALPHA = 0x8598; + + [NativeName(NativeNameType.Const, "GL_OPERAND1_ALPHA")] + public const int GL_OPERAND1_ALPHA = 0x8599; + + [NativeName(NativeNameType.Const, "GL_OPERAND2_ALPHA")] + public const int GL_OPERAND2_ALPHA = 0x859A; + + [NativeName(NativeNameType.Const, "GL_RGB_SCALE")] + public const int GL_RGB_SCALE = 0x8573; + + [NativeName(NativeNameType.Const, "GL_ADD_SIGNED")] + public const int GL_ADD_SIGNED = 0x8574; + + [NativeName(NativeNameType.Const, "GL_INTERPOLATE")] + public const int GL_INTERPOLATE = 0x8575; + + [NativeName(NativeNameType.Const, "GL_SUBTRACT")] + public const int GL_SUBTRACT = 0x84E7; + + [NativeName(NativeNameType.Const, "GL_CONSTANT")] + public const int GL_CONSTANT = 0x8576; + + [NativeName(NativeNameType.Const, "GL_PRIMARY_COLOR")] + public const int GL_PRIMARY_COLOR = 0x8577; + + [NativeName(NativeNameType.Const, "GL_PREVIOUS")] + public const int GL_PREVIOUS = 0x8578; + + [NativeName(NativeNameType.Const, "GL_DOT3_RGB")] + public const int GL_DOT3_RGB = 0x86AE; + + [NativeName(NativeNameType.Const, "GL_DOT3_RGBA")] + public const int GL_DOT3_RGBA = 0x86AF; + + [NativeName(NativeNameType.Const, "GL_VERSION_1_4")] + public const int GL_VERSION_1_4 = 1; + + [NativeName(NativeNameType.Const, "GL_BLEND_DST_RGB")] + public const int GL_BLEND_DST_RGB = 0x80C8; + + [NativeName(NativeNameType.Const, "GL_BLEND_SRC_RGB")] + public const int GL_BLEND_SRC_RGB = 0x80C9; + + [NativeName(NativeNameType.Const, "GL_BLEND_DST_ALPHA")] + public const int GL_BLEND_DST_ALPHA = 0x80CA; + + [NativeName(NativeNameType.Const, "GL_BLEND_SRC_ALPHA")] + public const int GL_BLEND_SRC_ALPHA = 0x80CB; + + [NativeName(NativeNameType.Const, "GL_POINT_FADE_THRESHOLD_SIZE")] + public const int GL_POINT_FADE_THRESHOLD_SIZE = 0x8128; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT16")] + public const int GL_DEPTH_COMPONENT16 = 0x81A5; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT24")] + public const int GL_DEPTH_COMPONENT24 = 0x81A6; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT32")] + public const int GL_DEPTH_COMPONENT32 = 0x81A7; + + [NativeName(NativeNameType.Const, "GL_MIRRORED_REPEAT")] + public const int GL_MIRRORED_REPEAT = 0x8370; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_LOD_BIAS")] + public const int GL_MAX_TEXTURE_LOD_BIAS = 0x84FD; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LOD_BIAS")] + public const int GL_TEXTURE_LOD_BIAS = 0x8501; + + [NativeName(NativeNameType.Const, "GL_INCR_WRAP")] + public const int GL_INCR_WRAP = 0x8507; + + [NativeName(NativeNameType.Const, "GL_DECR_WRAP")] + public const int GL_DECR_WRAP = 0x8508; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_DEPTH_SIZE")] + public const int GL_TEXTURE_DEPTH_SIZE = 0x884A; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPARE_MODE")] + public const int GL_TEXTURE_COMPARE_MODE = 0x884C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPARE_FUNC")] + public const int GL_TEXTURE_COMPARE_FUNC = 0x884D; + + [NativeName(NativeNameType.Const, "GL_POINT_SIZE_MIN")] + public const int GL_POINT_SIZE_MIN = 0x8126; + + [NativeName(NativeNameType.Const, "GL_POINT_SIZE_MAX")] + public const int GL_POINT_SIZE_MAX = 0x8127; + + [NativeName(NativeNameType.Const, "GL_POINT_DISTANCE_ATTENUATION")] + public const int GL_POINT_DISTANCE_ATTENUATION = 0x8129; + + [NativeName(NativeNameType.Const, "GL_GENERATE_MIPMAP")] + public const int GL_GENERATE_MIPMAP = 0x8191; + + [NativeName(NativeNameType.Const, "GL_GENERATE_MIPMAP_HINT")] + public const int GL_GENERATE_MIPMAP_HINT = 0x8192; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_SOURCE")] + public const int GL_FOG_COORDINATE_SOURCE = 0x8450; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE")] + public const int GL_FOG_COORDINATE = 0x8451; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_DEPTH")] + public const int GL_FRAGMENT_DEPTH = 0x8452; + + [NativeName(NativeNameType.Const, "GL_CURRENT_FOG_COORDINATE")] + public const int GL_CURRENT_FOG_COORDINATE = 0x8453; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY_TYPE")] + public const int GL_FOG_COORDINATE_ARRAY_TYPE = 0x8454; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY_STRIDE")] + public const int GL_FOG_COORDINATE_ARRAY_STRIDE = 0x8455; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY_POINTER")] + public const int GL_FOG_COORDINATE_ARRAY_POINTER = 0x8456; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY")] + public const int GL_FOG_COORDINATE_ARRAY = 0x8457; + + [NativeName(NativeNameType.Const, "GL_COLOR_SUM")] + public const int GL_COLOR_SUM = 0x8458; + + [NativeName(NativeNameType.Const, "GL_CURRENT_SECONDARY_COLOR")] + public const int GL_CURRENT_SECONDARY_COLOR = 0x8459; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_SIZE")] + public const int GL_SECONDARY_COLOR_ARRAY_SIZE = 0x845A; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_TYPE")] + public const int GL_SECONDARY_COLOR_ARRAY_TYPE = 0x845B; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_STRIDE")] + public const int GL_SECONDARY_COLOR_ARRAY_STRIDE = 0x845C; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_POINTER")] + public const int GL_SECONDARY_COLOR_ARRAY_POINTER = 0x845D; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY")] + public const int GL_SECONDARY_COLOR_ARRAY = 0x845E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_FILTER_CONTROL")] + public const int GL_TEXTURE_FILTER_CONTROL = 0x8500; + + [NativeName(NativeNameType.Const, "GL_DEPTH_TEXTURE_MODE")] + public const int GL_DEPTH_TEXTURE_MODE = 0x884B; + + [NativeName(NativeNameType.Const, "GL_COMPARE_R_TO_TEXTURE")] + public const int GL_COMPARE_R_TO_TEXTURE = 0x884E; + + [NativeName(NativeNameType.Const, "GL_BLEND_COLOR")] + public const int GL_BLEND_COLOR = 0x8005; + + [NativeName(NativeNameType.Const, "GL_BLEND_EQUATION")] + public const int GL_BLEND_EQUATION = 0x8009; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_COLOR")] + public const int GL_CONSTANT_COLOR = 0x8001; + + [NativeName(NativeNameType.Const, "GL_ONE_MINUS_CONSTANT_COLOR")] + public const int GL_ONE_MINUS_CONSTANT_COLOR = 0x8002; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_ALPHA")] + public const int GL_CONSTANT_ALPHA = 0x8003; + + [NativeName(NativeNameType.Const, "GL_ONE_MINUS_CONSTANT_ALPHA")] + public const int GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004; + + [NativeName(NativeNameType.Const, "GL_FUNC_ADD")] + public const int GL_FUNC_ADD = 0x8006; + + [NativeName(NativeNameType.Const, "GL_FUNC_REVERSE_SUBTRACT")] + public const int GL_FUNC_REVERSE_SUBTRACT = 0x800B; + + [NativeName(NativeNameType.Const, "GL_FUNC_SUBTRACT")] + public const int GL_FUNC_SUBTRACT = 0x800A; + + [NativeName(NativeNameType.Const, "GL_MIN")] + public const int GL_MIN = 0x8007; + + [NativeName(NativeNameType.Const, "GL_MAX")] + public const int GL_MAX = 0x8008; + + [NativeName(NativeNameType.Const, "GL_VERSION_1_5")] + public const int GL_VERSION_1_5 = 1; + + [NativeName(NativeNameType.Const, "GL_BUFFER_SIZE")] + public const int GL_BUFFER_SIZE = 0x8764; + + [NativeName(NativeNameType.Const, "GL_BUFFER_USAGE")] + public const int GL_BUFFER_USAGE = 0x8765; + + [NativeName(NativeNameType.Const, "GL_QUERY_COUNTER_BITS")] + public const int GL_QUERY_COUNTER_BITS = 0x8864; + + [NativeName(NativeNameType.Const, "GL_CURRENT_QUERY")] + public const int GL_CURRENT_QUERY = 0x8865; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESULT")] + public const int GL_QUERY_RESULT = 0x8866; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESULT_AVAILABLE")] + public const int GL_QUERY_RESULT_AVAILABLE = 0x8867; + + [NativeName(NativeNameType.Const, "GL_ARRAY_BUFFER")] + public const int GL_ARRAY_BUFFER = 0x8892; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_BUFFER")] + public const int GL_ELEMENT_ARRAY_BUFFER = 0x8893; + + [NativeName(NativeNameType.Const, "GL_ARRAY_BUFFER_BINDING")] + public const int GL_ARRAY_BUFFER_BINDING = 0x8894; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_BUFFER_BINDING")] + public const int GL_ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING")] + public const int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; + + [NativeName(NativeNameType.Const, "GL_READ_ONLY")] + public const int GL_READ_ONLY = 0x88B8; + + [NativeName(NativeNameType.Const, "GL_WRITE_ONLY")] + public const int GL_WRITE_ONLY = 0x88B9; + + [NativeName(NativeNameType.Const, "GL_READ_WRITE")] + public const int GL_READ_WRITE = 0x88BA; + + [NativeName(NativeNameType.Const, "GL_BUFFER_ACCESS")] + public const int GL_BUFFER_ACCESS = 0x88BB; + + [NativeName(NativeNameType.Const, "GL_BUFFER_MAPPED")] + public const int GL_BUFFER_MAPPED = 0x88BC; + + [NativeName(NativeNameType.Const, "GL_BUFFER_MAP_POINTER")] + public const int GL_BUFFER_MAP_POINTER = 0x88BD; + + [NativeName(NativeNameType.Const, "GL_STREAM_DRAW")] + public const int GL_STREAM_DRAW = 0x88E0; + + [NativeName(NativeNameType.Const, "GL_STREAM_READ")] + public const int GL_STREAM_READ = 0x88E1; + + [NativeName(NativeNameType.Const, "GL_STREAM_COPY")] + public const int GL_STREAM_COPY = 0x88E2; + + [NativeName(NativeNameType.Const, "GL_STATIC_DRAW")] + public const int GL_STATIC_DRAW = 0x88E4; + + [NativeName(NativeNameType.Const, "GL_STATIC_READ")] + public const int GL_STATIC_READ = 0x88E5; + + [NativeName(NativeNameType.Const, "GL_STATIC_COPY")] + public const int GL_STATIC_COPY = 0x88E6; + + [NativeName(NativeNameType.Const, "GL_DYNAMIC_DRAW")] + public const int GL_DYNAMIC_DRAW = 0x88E8; + + [NativeName(NativeNameType.Const, "GL_DYNAMIC_READ")] + public const int GL_DYNAMIC_READ = 0x88E9; + + [NativeName(NativeNameType.Const, "GL_DYNAMIC_COPY")] + public const int GL_DYNAMIC_COPY = 0x88EA; + + [NativeName(NativeNameType.Const, "GL_SAMPLES_PASSED")] + public const int GL_SAMPLES_PASSED = 0x8914; + + [NativeName(NativeNameType.Const, "GL_SRC1_ALPHA")] + public const int GL_SRC1_ALPHA = 0x8589; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_BUFFER_BINDING")] + public const int GL_VERTEX_ARRAY_BUFFER_BINDING = 0x8896; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_BUFFER_BINDING")] + public const int GL_NORMAL_ARRAY_BUFFER_BINDING = 0x8897; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_BUFFER_BINDING")] + public const int GL_COLOR_ARRAY_BUFFER_BINDING = 0x8898; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_BUFFER_BINDING")] + public const int GL_INDEX_ARRAY_BUFFER_BINDING = 0x8899; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING")] + public const int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_BUFFER_BINDING")] + public const int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING")] + public const int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING")] + public const int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D; + + [NativeName(NativeNameType.Const, "GL_WEIGHT_ARRAY_BUFFER_BINDING")] + public const int GL_WEIGHT_ARRAY_BUFFER_BINDING = 0x889E; + + [NativeName(NativeNameType.Const, "GL_FOG_COORD_SRC")] + public const int GL_FOG_COORD_SRC = 0x8450; + + [NativeName(NativeNameType.Const, "GL_FOG_COORD")] + public const int GL_FOG_COORD = 0x8451; + + [NativeName(NativeNameType.Const, "GL_CURRENT_FOG_COORD")] + public const int GL_CURRENT_FOG_COORD = 0x8453; + + [NativeName(NativeNameType.Const, "GL_FOG_COORD_ARRAY_TYPE")] + public const int GL_FOG_COORD_ARRAY_TYPE = 0x8454; + + [NativeName(NativeNameType.Const, "GL_FOG_COORD_ARRAY_STRIDE")] + public const int GL_FOG_COORD_ARRAY_STRIDE = 0x8455; + + [NativeName(NativeNameType.Const, "GL_FOG_COORD_ARRAY_POINTER")] + public const int GL_FOG_COORD_ARRAY_POINTER = 0x8456; + + [NativeName(NativeNameType.Const, "GL_FOG_COORD_ARRAY")] + public const int GL_FOG_COORD_ARRAY = 0x8457; + + [NativeName(NativeNameType.Const, "GL_FOG_COORD_ARRAY_BUFFER_BINDING")] + public const int GL_FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D; + + [NativeName(NativeNameType.Const, "GL_SRC0_RGB")] + public const int GL_SRC0_RGB = 0x8580; + + [NativeName(NativeNameType.Const, "GL_SRC1_RGB")] + public const int GL_SRC1_RGB = 0x8581; + + [NativeName(NativeNameType.Const, "GL_SRC2_RGB")] + public const int GL_SRC2_RGB = 0x8582; + + [NativeName(NativeNameType.Const, "GL_SRC0_ALPHA")] + public const int GL_SRC0_ALPHA = 0x8588; + + [NativeName(NativeNameType.Const, "GL_SRC2_ALPHA")] + public const int GL_SRC2_ALPHA = 0x858A; + + [NativeName(NativeNameType.Const, "GL_VERSION_2_0")] + public const int GL_VERSION_2_0 = 1; + + [NativeName(NativeNameType.Const, "GL_BLEND_EQUATION_RGB")] + public const int GL_BLEND_EQUATION_RGB = 0x8009; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_ENABLED")] + public const int GL_VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_SIZE")] + public const int GL_VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_STRIDE")] + public const int GL_VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_TYPE")] + public const int GL_VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; + + [NativeName(NativeNameType.Const, "GL_CURRENT_VERTEX_ATTRIB")] + public const int GL_CURRENT_VERTEX_ATTRIB = 0x8626; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PROGRAM_POINT_SIZE")] + public const int GL_VERTEX_PROGRAM_POINT_SIZE = 0x8642; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_POINTER")] + public const int GL_VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_FUNC")] + public const int GL_STENCIL_BACK_FUNC = 0x8800; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_FAIL")] + public const int GL_STENCIL_BACK_FAIL = 0x8801; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_PASS_DEPTH_FAIL")] + public const int GL_STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_PASS_DEPTH_PASS")] + public const int GL_STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; + + [NativeName(NativeNameType.Const, "GL_MAX_DRAW_BUFFERS")] + public const int GL_MAX_DRAW_BUFFERS = 0x8824; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER0")] + public const int GL_DRAW_BUFFER0 = 0x8825; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER1")] + public const int GL_DRAW_BUFFER1 = 0x8826; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER2")] + public const int GL_DRAW_BUFFER2 = 0x8827; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER3")] + public const int GL_DRAW_BUFFER3 = 0x8828; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER4")] + public const int GL_DRAW_BUFFER4 = 0x8829; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER5")] + public const int GL_DRAW_BUFFER5 = 0x882A; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER6")] + public const int GL_DRAW_BUFFER6 = 0x882B; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER7")] + public const int GL_DRAW_BUFFER7 = 0x882C; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER8")] + public const int GL_DRAW_BUFFER8 = 0x882D; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER9")] + public const int GL_DRAW_BUFFER9 = 0x882E; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER10")] + public const int GL_DRAW_BUFFER10 = 0x882F; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER11")] + public const int GL_DRAW_BUFFER11 = 0x8830; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER12")] + public const int GL_DRAW_BUFFER12 = 0x8831; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER13")] + public const int GL_DRAW_BUFFER13 = 0x8832; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER14")] + public const int GL_DRAW_BUFFER14 = 0x8833; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER15")] + public const int GL_DRAW_BUFFER15 = 0x8834; + + [NativeName(NativeNameType.Const, "GL_BLEND_EQUATION_ALPHA")] + public const int GL_BLEND_EQUATION_ALPHA = 0x883D; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_ATTRIBS")] + public const int GL_MAX_VERTEX_ATTRIBS = 0x8869; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED")] + public const int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_IMAGE_UNITS")] + public const int GL_MAX_TEXTURE_IMAGE_UNITS = 0x8872; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_SHADER")] + public const int GL_FRAGMENT_SHADER = 0x8B30; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER")] + public const int GL_VERTEX_SHADER = 0x8B31; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS")] + public const int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_UNIFORM_COMPONENTS")] + public const int GL_MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A; + + [NativeName(NativeNameType.Const, "GL_MAX_VARYING_FLOATS")] + public const int GL_MAX_VARYING_FLOATS = 0x8B4B; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS")] + public const int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS")] + public const int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; + + [NativeName(NativeNameType.Const, "GL_SHADER_TYPE")] + public const int GL_SHADER_TYPE = 0x8B4F; + + [NativeName(NativeNameType.Const, "GL_FLOAT_VEC2")] + public const int GL_FLOAT_VEC2 = 0x8B50; + + [NativeName(NativeNameType.Const, "GL_FLOAT_VEC3")] + public const int GL_FLOAT_VEC3 = 0x8B51; + + [NativeName(NativeNameType.Const, "GL_FLOAT_VEC4")] + public const int GL_FLOAT_VEC4 = 0x8B52; + + [NativeName(NativeNameType.Const, "GL_INT_VEC2")] + public const int GL_INT_VEC2 = 0x8B53; + + [NativeName(NativeNameType.Const, "GL_INT_VEC3")] + public const int GL_INT_VEC3 = 0x8B54; + + [NativeName(NativeNameType.Const, "GL_INT_VEC4")] + public const int GL_INT_VEC4 = 0x8B55; + + [NativeName(NativeNameType.Const, "GL_BOOL")] + public const int GL_BOOL = 0x8B56; + + [NativeName(NativeNameType.Const, "GL_BOOL_VEC2")] + public const int GL_BOOL_VEC2 = 0x8B57; + + [NativeName(NativeNameType.Const, "GL_BOOL_VEC3")] + public const int GL_BOOL_VEC3 = 0x8B58; + + [NativeName(NativeNameType.Const, "GL_BOOL_VEC4")] + public const int GL_BOOL_VEC4 = 0x8B59; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT2")] + public const int GL_FLOAT_MAT2 = 0x8B5A; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT3")] + public const int GL_FLOAT_MAT3 = 0x8B5B; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT4")] + public const int GL_FLOAT_MAT4 = 0x8B5C; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_1D")] + public const int GL_SAMPLER_1D = 0x8B5D; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D")] + public const int GL_SAMPLER_2D = 0x8B5E; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_3D")] + public const int GL_SAMPLER_3D = 0x8B5F; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_CUBE")] + public const int GL_SAMPLER_CUBE = 0x8B60; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_1D_SHADOW")] + public const int GL_SAMPLER_1D_SHADOW = 0x8B61; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_SHADOW")] + public const int GL_SAMPLER_2D_SHADOW = 0x8B62; + + [NativeName(NativeNameType.Const, "GL_DELETE_STATUS")] + public const int GL_DELETE_STATUS = 0x8B80; + + [NativeName(NativeNameType.Const, "GL_COMPILE_STATUS")] + public const int GL_COMPILE_STATUS = 0x8B81; + + [NativeName(NativeNameType.Const, "GL_LINK_STATUS")] + public const int GL_LINK_STATUS = 0x8B82; + + [NativeName(NativeNameType.Const, "GL_VALIDATE_STATUS")] + public const int GL_VALIDATE_STATUS = 0x8B83; + + [NativeName(NativeNameType.Const, "GL_INFO_LOG_LENGTH")] + public const int GL_INFO_LOG_LENGTH = 0x8B84; + + [NativeName(NativeNameType.Const, "GL_ATTACHED_SHADERS")] + public const int GL_ATTACHED_SHADERS = 0x8B85; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_UNIFORMS")] + public const int GL_ACTIVE_UNIFORMS = 0x8B86; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_UNIFORM_MAX_LENGTH")] + public const int GL_ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87; + + [NativeName(NativeNameType.Const, "GL_SHADER_SOURCE_LENGTH")] + public const int GL_SHADER_SOURCE_LENGTH = 0x8B88; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_ATTRIBUTES")] + public const int GL_ACTIVE_ATTRIBUTES = 0x8B89; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH")] + public const int GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_SHADER_DERIVATIVE_HINT")] + public const int GL_FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B; + + [NativeName(NativeNameType.Const, "GL_SHADING_LANGUAGE_VERSION")] + public const int GL_SHADING_LANGUAGE_VERSION = 0x8B8C; + + [NativeName(NativeNameType.Const, "GL_CURRENT_PROGRAM")] + public const int GL_CURRENT_PROGRAM = 0x8B8D; + + [NativeName(NativeNameType.Const, "GL_POINT_SPRITE_COORD_ORIGIN")] + public const int GL_POINT_SPRITE_COORD_ORIGIN = 0x8CA0; + + [NativeName(NativeNameType.Const, "GL_LOWER_LEFT")] + public const int GL_LOWER_LEFT = 0x8CA1; + + [NativeName(NativeNameType.Const, "GL_UPPER_LEFT")] + public const int GL_UPPER_LEFT = 0x8CA2; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_REF")] + public const int GL_STENCIL_BACK_REF = 0x8CA3; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_VALUE_MASK")] + public const int GL_STENCIL_BACK_VALUE_MASK = 0x8CA4; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_WRITEMASK")] + public const int GL_STENCIL_BACK_WRITEMASK = 0x8CA5; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PROGRAM_TWO_SIDE")] + public const int GL_VERTEX_PROGRAM_TWO_SIDE = 0x8643; + + [NativeName(NativeNameType.Const, "GL_POINT_SPRITE")] + public const int GL_POINT_SPRITE = 0x8861; + + [NativeName(NativeNameType.Const, "GL_COORD_REPLACE")] + public const int GL_COORD_REPLACE = 0x8862; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_COORDS")] + public const int GL_MAX_TEXTURE_COORDS = 0x8871; + + [NativeName(NativeNameType.Const, "GL_VERSION_2_1")] + public const int GL_VERSION_2_1 = 1; + + [NativeName(NativeNameType.Const, "GL_PIXEL_PACK_BUFFER")] + public const int GL_PIXEL_PACK_BUFFER = 0x88EB; + + [NativeName(NativeNameType.Const, "GL_PIXEL_UNPACK_BUFFER")] + public const int GL_PIXEL_UNPACK_BUFFER = 0x88EC; + + [NativeName(NativeNameType.Const, "GL_PIXEL_PACK_BUFFER_BINDING")] + public const int GL_PIXEL_PACK_BUFFER_BINDING = 0x88ED; + + [NativeName(NativeNameType.Const, "GL_PIXEL_UNPACK_BUFFER_BINDING")] + public const int GL_PIXEL_UNPACK_BUFFER_BINDING = 0x88EF; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT2x3")] + public const int GL_FLOAT_MAT2X3 = 0x8B65; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT2x4")] + public const int GL_FLOAT_MAT2X4 = 0x8B66; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT3x2")] + public const int GL_FLOAT_MAT3X2 = 0x8B67; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT3x4")] + public const int GL_FLOAT_MAT3X4 = 0x8B68; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT4x2")] + public const int GL_FLOAT_MAT4X2 = 0x8B69; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT4x3")] + public const int GL_FLOAT_MAT4X3 = 0x8B6A; + + [NativeName(NativeNameType.Const, "GL_SRGB")] + public const int GL_SRGB = 0x8C40; + + [NativeName(NativeNameType.Const, "GL_SRGB8")] + public const int GL_SRGB8 = 0x8C41; + + [NativeName(NativeNameType.Const, "GL_SRGB_ALPHA")] + public const int GL_SRGB_ALPHA = 0x8C42; + + [NativeName(NativeNameType.Const, "GL_SRGB8_ALPHA8")] + public const int GL_SRGB8_ALPHA8 = 0x8C43; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB")] + public const int GL_COMPRESSED_SRGB = 0x8C48; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB_ALPHA")] + public const int GL_COMPRESSED_SRGB_ALPHA = 0x8C49; + + [NativeName(NativeNameType.Const, "GL_CURRENT_RASTER_SECONDARY_COLOR")] + public const int GL_CURRENT_RASTER_SECONDARY_COLOR = 0x845F; + + [NativeName(NativeNameType.Const, "GL_SLUMINANCE_ALPHA")] + public const int GL_SLUMINANCE_ALPHA = 0x8C44; + + [NativeName(NativeNameType.Const, "GL_SLUMINANCE8_ALPHA8")] + public const int GL_SLUMINANCE8_ALPHA8 = 0x8C45; + + [NativeName(NativeNameType.Const, "GL_SLUMINANCE")] + public const int GL_SLUMINANCE = 0x8C46; + + [NativeName(NativeNameType.Const, "GL_SLUMINANCE8")] + public const int GL_SLUMINANCE8 = 0x8C47; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SLUMINANCE")] + public const int GL_COMPRESSED_SLUMINANCE = 0x8C4A; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SLUMINANCE_ALPHA")] + public const int GL_COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B; + + [NativeName(NativeNameType.Const, "GL_VERSION_3_0")] + public const int GL_VERSION_3_0 = 1; + + [NativeName(NativeNameType.Const, "GL_COMPARE_REF_TO_TEXTURE")] + public const int GL_COMPARE_REF_TO_TEXTURE = 0x884E; + + [NativeName(NativeNameType.Const, "GL_CLIP_DISTANCE0")] + public const int GL_CLIP_DISTANCE0 = 0x3000; + + [NativeName(NativeNameType.Const, "GL_CLIP_DISTANCE1")] + public const int GL_CLIP_DISTANCE1 = 0x3001; + + [NativeName(NativeNameType.Const, "GL_CLIP_DISTANCE2")] + public const int GL_CLIP_DISTANCE2 = 0x3002; + + [NativeName(NativeNameType.Const, "GL_CLIP_DISTANCE3")] + public const int GL_CLIP_DISTANCE3 = 0x3003; + + [NativeName(NativeNameType.Const, "GL_CLIP_DISTANCE4")] + public const int GL_CLIP_DISTANCE4 = 0x3004; + + [NativeName(NativeNameType.Const, "GL_CLIP_DISTANCE5")] + public const int GL_CLIP_DISTANCE5 = 0x3005; + + [NativeName(NativeNameType.Const, "GL_CLIP_DISTANCE6")] + public const int GL_CLIP_DISTANCE6 = 0x3006; + + [NativeName(NativeNameType.Const, "GL_CLIP_DISTANCE7")] + public const int GL_CLIP_DISTANCE7 = 0x3007; + + [NativeName(NativeNameType.Const, "GL_MAX_CLIP_DISTANCES")] + public const int GL_MAX_CLIP_DISTANCES = 0x0D32; + + [NativeName(NativeNameType.Const, "GL_MAJOR_VERSION")] + public const int GL_MAJOR_VERSION = 0x821B; + + [NativeName(NativeNameType.Const, "GL_MINOR_VERSION")] + public const int GL_MINOR_VERSION = 0x821C; + + [NativeName(NativeNameType.Const, "GL_NUM_EXTENSIONS")] + public const int GL_NUM_EXTENSIONS = 0x821D; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_FLAGS")] + public const int GL_CONTEXT_FLAGS = 0x821E; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RED")] + public const int GL_COMPRESSED_RED = 0x8225; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RG")] + public const int GL_COMPRESSED_RG = 0x8226; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT")] + public const int GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_RGBA32F")] + public const int GL_RGBA32F = 0x8814; + + [NativeName(NativeNameType.Const, "GL_RGB32F")] + public const int GL_RGB32F = 0x8815; + + [NativeName(NativeNameType.Const, "GL_RGBA16F")] + public const int GL_RGBA16F = 0x881A; + + [NativeName(NativeNameType.Const, "GL_RGB16F")] + public const int GL_RGB16F = 0x881B; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_INTEGER")] + public const int GL_VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD; + + [NativeName(NativeNameType.Const, "GL_MAX_ARRAY_TEXTURE_LAYERS")] + public const int GL_MAX_ARRAY_TEXTURE_LAYERS = 0x88FF; + + [NativeName(NativeNameType.Const, "GL_MIN_PROGRAM_TEXEL_OFFSET")] + public const int GL_MIN_PROGRAM_TEXEL_OFFSET = 0x8904; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_TEXEL_OFFSET")] + public const int GL_MAX_PROGRAM_TEXEL_OFFSET = 0x8905; + + [NativeName(NativeNameType.Const, "GL_CLAMP_READ_COLOR")] + public const int GL_CLAMP_READ_COLOR = 0x891C; + + [NativeName(NativeNameType.Const, "GL_FIXED_ONLY")] + public const int GL_FIXED_ONLY = 0x891D; + + [NativeName(NativeNameType.Const, "GL_MAX_VARYING_COMPONENTS")] + public const int GL_MAX_VARYING_COMPONENTS = 0x8B4B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_1D_ARRAY")] + public const int GL_TEXTURE_1D_ARRAY = 0x8C18; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_1D_ARRAY")] + public const int GL_PROXY_TEXTURE_1D_ARRAY = 0x8C19; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_2D_ARRAY")] + public const int GL_TEXTURE_2D_ARRAY = 0x8C1A; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_2D_ARRAY")] + public const int GL_PROXY_TEXTURE_2D_ARRAY = 0x8C1B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_1D_ARRAY")] + public const int GL_TEXTURE_BINDING_1D_ARRAY = 0x8C1C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_2D_ARRAY")] + public const int GL_TEXTURE_BINDING_2D_ARRAY = 0x8C1D; + + [NativeName(NativeNameType.Const, "GL_R11F_G11F_B10F")] + public const int GL_R11F_G11F_B10F = 0x8C3A; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_10F_11F_11F_REV")] + public const int GL_UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B; + + [NativeName(NativeNameType.Const, "GL_RGB9_E5")] + public const int GL_RGB9_E5 = 0x8C3D; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_5_9_9_9_REV")] + public const int GL_UNSIGNED_INT_5_9_9_9_REV = 0x8C3E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SHARED_SIZE")] + public const int GL_TEXTURE_SHARED_SIZE = 0x8C3F; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH")] + public const int GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_MODE")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F; + + [NativeName(NativeNameType.Const, "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS")] + public const int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_VARYINGS")] + public const int GL_TRANSFORM_FEEDBACK_VARYINGS = 0x8C83; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_START")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVES_GENERATED")] + public const int GL_PRIMITIVES_GENERATED = 0x8C87; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN")] + public const int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88; + + [NativeName(NativeNameType.Const, "GL_RASTERIZER_DISCARD")] + public const int GL_RASTERIZER_DISCARD = 0x8C89; + + [NativeName(NativeNameType.Const, "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS")] + public const int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A; + + [NativeName(NativeNameType.Const, "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS")] + public const int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B; + + [NativeName(NativeNameType.Const, "GL_INTERLEAVED_ATTRIBS")] + public const int GL_INTERLEAVED_ATTRIBS = 0x8C8C; + + [NativeName(NativeNameType.Const, "GL_SEPARATE_ATTRIBS")] + public const int GL_SEPARATE_ATTRIBS = 0x8C8D; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER = 0x8C8E; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F; + + [NativeName(NativeNameType.Const, "GL_RGBA32UI")] + public const int GL_RGBA32UI = 0x8D70; + + [NativeName(NativeNameType.Const, "GL_RGB32UI")] + public const int GL_RGB32UI = 0x8D71; + + [NativeName(NativeNameType.Const, "GL_RGBA16UI")] + public const int GL_RGBA16UI = 0x8D76; + + [NativeName(NativeNameType.Const, "GL_RGB16UI")] + public const int GL_RGB16UI = 0x8D77; + + [NativeName(NativeNameType.Const, "GL_RGBA8UI")] + public const int GL_RGBA8UI = 0x8D7C; + + [NativeName(NativeNameType.Const, "GL_RGB8UI")] + public const int GL_RGB8UI = 0x8D7D; + + [NativeName(NativeNameType.Const, "GL_RGBA32I")] + public const int GL_RGBA32I = 0x8D82; + + [NativeName(NativeNameType.Const, "GL_RGB32I")] + public const int GL_RGB32I = 0x8D83; + + [NativeName(NativeNameType.Const, "GL_RGBA16I")] + public const int GL_RGBA16I = 0x8D88; + + [NativeName(NativeNameType.Const, "GL_RGB16I")] + public const int GL_RGB16I = 0x8D89; + + [NativeName(NativeNameType.Const, "GL_RGBA8I")] + public const int GL_RGBA8I = 0x8D8E; + + [NativeName(NativeNameType.Const, "GL_RGB8I")] + public const int GL_RGB8I = 0x8D8F; + + [NativeName(NativeNameType.Const, "GL_RED_INTEGER")] + public const int GL_RED_INTEGER = 0x8D94; + + [NativeName(NativeNameType.Const, "GL_GREEN_INTEGER")] + public const int GL_GREEN_INTEGER = 0x8D95; + + [NativeName(NativeNameType.Const, "GL_BLUE_INTEGER")] + public const int GL_BLUE_INTEGER = 0x8D96; + + [NativeName(NativeNameType.Const, "GL_RGB_INTEGER")] + public const int GL_RGB_INTEGER = 0x8D98; + + [NativeName(NativeNameType.Const, "GL_RGBA_INTEGER")] + public const int GL_RGBA_INTEGER = 0x8D99; + + [NativeName(NativeNameType.Const, "GL_BGR_INTEGER")] + public const int GL_BGR_INTEGER = 0x8D9A; + + [NativeName(NativeNameType.Const, "GL_BGRA_INTEGER")] + public const int GL_BGRA_INTEGER = 0x8D9B; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_1D_ARRAY")] + public const int GL_SAMPLER_1D_ARRAY = 0x8DC0; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_ARRAY")] + public const int GL_SAMPLER_2D_ARRAY = 0x8DC1; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_1D_ARRAY_SHADOW")] + public const int GL_SAMPLER_1D_ARRAY_SHADOW = 0x8DC3; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_ARRAY_SHADOW")] + public const int GL_SAMPLER_2D_ARRAY_SHADOW = 0x8DC4; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_CUBE_SHADOW")] + public const int GL_SAMPLER_CUBE_SHADOW = 0x8DC5; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_VEC2")] + public const int GL_UNSIGNED_INT_VEC2 = 0x8DC6; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_VEC3")] + public const int GL_UNSIGNED_INT_VEC3 = 0x8DC7; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_VEC4")] + public const int GL_UNSIGNED_INT_VEC4 = 0x8DC8; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_1D")] + public const int GL_INT_SAMPLER_1D = 0x8DC9; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_2D")] + public const int GL_INT_SAMPLER_2D = 0x8DCA; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_3D")] + public const int GL_INT_SAMPLER_3D = 0x8DCB; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_CUBE")] + public const int GL_INT_SAMPLER_CUBE = 0x8DCC; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_1D_ARRAY")] + public const int GL_INT_SAMPLER_1D_ARRAY = 0x8DCE; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_2D_ARRAY")] + public const int GL_INT_SAMPLER_2D_ARRAY = 0x8DCF; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_1D")] + public const int GL_UNSIGNED_INT_SAMPLER_1D = 0x8DD1; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_2D")] + public const int GL_UNSIGNED_INT_SAMPLER_2D = 0x8DD2; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_3D")] + public const int GL_UNSIGNED_INT_SAMPLER_3D = 0x8DD3; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_CUBE")] + public const int GL_UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_1D_ARRAY")] + public const int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_2D_ARRAY")] + public const int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7; + + [NativeName(NativeNameType.Const, "GL_QUERY_WAIT")] + public const int GL_QUERY_WAIT = 0x8E13; + + [NativeName(NativeNameType.Const, "GL_QUERY_NO_WAIT")] + public const int GL_QUERY_NO_WAIT = 0x8E14; + + [NativeName(NativeNameType.Const, "GL_QUERY_BY_REGION_WAIT")] + public const int GL_QUERY_BY_REGION_WAIT = 0x8E15; + + [NativeName(NativeNameType.Const, "GL_QUERY_BY_REGION_NO_WAIT")] + public const int GL_QUERY_BY_REGION_NO_WAIT = 0x8E16; + + [NativeName(NativeNameType.Const, "GL_BUFFER_ACCESS_FLAGS")] + public const int GL_BUFFER_ACCESS_FLAGS = 0x911F; + + [NativeName(NativeNameType.Const, "GL_BUFFER_MAP_LENGTH")] + public const int GL_BUFFER_MAP_LENGTH = 0x9120; + + [NativeName(NativeNameType.Const, "GL_BUFFER_MAP_OFFSET")] + public const int GL_BUFFER_MAP_OFFSET = 0x9121; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT32F")] + public const int GL_DEPTH_COMPONENT32F = 0x8CAC; + + [NativeName(NativeNameType.Const, "GL_DEPTH32F_STENCIL8")] + public const int GL_DEPTH32F_STENCIL8 = 0x8CAD; + + [NativeName(NativeNameType.Const, "GL_FLOAT_32_UNSIGNED_INT_24_8_REV")] + public const int GL_FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD; + + [NativeName(NativeNameType.Const, "GL_INVALID_FRAMEBUFFER_OPERATION")] + public const int GL_INVALID_FRAMEBUFFER_OPERATION = 0x0506; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING")] + public const int GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE")] + public const int GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE")] + public const int GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE")] + public const int GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE")] + public const int GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE")] + public const int GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE")] + public const int GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE")] + public const int GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_DEFAULT")] + public const int GL_FRAMEBUFFER_DEFAULT = 0x8218; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_UNDEFINED")] + public const int GL_FRAMEBUFFER_UNDEFINED = 0x8219; + + [NativeName(NativeNameType.Const, "GL_DEPTH_STENCIL_ATTACHMENT")] + public const int GL_DEPTH_STENCIL_ATTACHMENT = 0x821A; + + [NativeName(NativeNameType.Const, "GL_MAX_RENDERBUFFER_SIZE")] + public const int GL_MAX_RENDERBUFFER_SIZE = 0x84E8; + + [NativeName(NativeNameType.Const, "GL_DEPTH_STENCIL")] + public const int GL_DEPTH_STENCIL = 0x84F9; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_24_8")] + public const int GL_UNSIGNED_INT_24_8 = 0x84FA; + + [NativeName(NativeNameType.Const, "GL_DEPTH24_STENCIL8")] + public const int GL_DEPTH24_STENCIL8 = 0x88F0; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_STENCIL_SIZE")] + public const int GL_TEXTURE_STENCIL_SIZE = 0x88F1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RED_TYPE")] + public const int GL_TEXTURE_RED_TYPE = 0x8C10; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GREEN_TYPE")] + public const int GL_TEXTURE_GREEN_TYPE = 0x8C11; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BLUE_TYPE")] + public const int GL_TEXTURE_BLUE_TYPE = 0x8C12; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_ALPHA_TYPE")] + public const int GL_TEXTURE_ALPHA_TYPE = 0x8C13; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_DEPTH_TYPE")] + public const int GL_TEXTURE_DEPTH_TYPE = 0x8C16; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_NORMALIZED")] + public const int GL_UNSIGNED_NORMALIZED = 0x8C17; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_BINDING")] + public const int GL_FRAMEBUFFER_BINDING = 0x8CA6; + + [NativeName(NativeNameType.Const, "GL_DRAW_FRAMEBUFFER_BINDING")] + public const int GL_DRAW_FRAMEBUFFER_BINDING = 0x8CA6; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_BINDING")] + public const int GL_RENDERBUFFER_BINDING = 0x8CA7; + + [NativeName(NativeNameType.Const, "GL_READ_FRAMEBUFFER")] + public const int GL_READ_FRAMEBUFFER = 0x8CA8; + + [NativeName(NativeNameType.Const, "GL_DRAW_FRAMEBUFFER")] + public const int GL_DRAW_FRAMEBUFFER = 0x8CA9; + + [NativeName(NativeNameType.Const, "GL_READ_FRAMEBUFFER_BINDING")] + public const int GL_READ_FRAMEBUFFER_BINDING = 0x8CAA; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_SAMPLES")] + public const int GL_RENDERBUFFER_SAMPLES = 0x8CAB; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE")] + public const int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME")] + public const int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL")] + public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE")] + public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER")] + public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_COMPLETE")] + public const int GL_FRAMEBUFFER_COMPLETE = 0x8CD5; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT")] + public const int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT")] + public const int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER")] + public const int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER")] + public const int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_UNSUPPORTED")] + public const int GL_FRAMEBUFFER_UNSUPPORTED = 0x8CDD; + + [NativeName(NativeNameType.Const, "GL_MAX_COLOR_ATTACHMENTS")] + public const int GL_MAX_COLOR_ATTACHMENTS = 0x8CDF; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT0")] + public const int GL_COLOR_ATTACHMENT0 = 0x8CE0; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT1")] + public const int GL_COLOR_ATTACHMENT1 = 0x8CE1; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT2")] + public const int GL_COLOR_ATTACHMENT2 = 0x8CE2; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT3")] + public const int GL_COLOR_ATTACHMENT3 = 0x8CE3; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT4")] + public const int GL_COLOR_ATTACHMENT4 = 0x8CE4; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT5")] + public const int GL_COLOR_ATTACHMENT5 = 0x8CE5; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT6")] + public const int GL_COLOR_ATTACHMENT6 = 0x8CE6; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT7")] + public const int GL_COLOR_ATTACHMENT7 = 0x8CE7; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT8")] + public const int GL_COLOR_ATTACHMENT8 = 0x8CE8; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT9")] + public const int GL_COLOR_ATTACHMENT9 = 0x8CE9; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT10")] + public const int GL_COLOR_ATTACHMENT10 = 0x8CEA; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT11")] + public const int GL_COLOR_ATTACHMENT11 = 0x8CEB; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT12")] + public const int GL_COLOR_ATTACHMENT12 = 0x8CEC; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT13")] + public const int GL_COLOR_ATTACHMENT13 = 0x8CED; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT14")] + public const int GL_COLOR_ATTACHMENT14 = 0x8CEE; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT15")] + public const int GL_COLOR_ATTACHMENT15 = 0x8CEF; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT16")] + public const int GL_COLOR_ATTACHMENT16 = 0x8CF0; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT17")] + public const int GL_COLOR_ATTACHMENT17 = 0x8CF1; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT18")] + public const int GL_COLOR_ATTACHMENT18 = 0x8CF2; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT19")] + public const int GL_COLOR_ATTACHMENT19 = 0x8CF3; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT20")] + public const int GL_COLOR_ATTACHMENT20 = 0x8CF4; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT21")] + public const int GL_COLOR_ATTACHMENT21 = 0x8CF5; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT22")] + public const int GL_COLOR_ATTACHMENT22 = 0x8CF6; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT23")] + public const int GL_COLOR_ATTACHMENT23 = 0x8CF7; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT24")] + public const int GL_COLOR_ATTACHMENT24 = 0x8CF8; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT25")] + public const int GL_COLOR_ATTACHMENT25 = 0x8CF9; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT26")] + public const int GL_COLOR_ATTACHMENT26 = 0x8CFA; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT27")] + public const int GL_COLOR_ATTACHMENT27 = 0x8CFB; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT28")] + public const int GL_COLOR_ATTACHMENT28 = 0x8CFC; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT29")] + public const int GL_COLOR_ATTACHMENT29 = 0x8CFD; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT30")] + public const int GL_COLOR_ATTACHMENT30 = 0x8CFE; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT31")] + public const int GL_COLOR_ATTACHMENT31 = 0x8CFF; + + [NativeName(NativeNameType.Const, "GL_DEPTH_ATTACHMENT")] + public const int GL_DEPTH_ATTACHMENT = 0x8D00; + + [NativeName(NativeNameType.Const, "GL_STENCIL_ATTACHMENT")] + public const int GL_STENCIL_ATTACHMENT = 0x8D20; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER")] + public const int GL_FRAMEBUFFER = 0x8D40; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER")] + public const int GL_RENDERBUFFER = 0x8D41; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_WIDTH")] + public const int GL_RENDERBUFFER_WIDTH = 0x8D42; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_HEIGHT")] + public const int GL_RENDERBUFFER_HEIGHT = 0x8D43; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_INTERNAL_FORMAT")] + public const int GL_RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; + + [NativeName(NativeNameType.Const, "GL_STENCIL_INDEX1")] + public const int GL_STENCIL_INDEX1 = 0x8D46; + + [NativeName(NativeNameType.Const, "GL_STENCIL_INDEX4")] + public const int GL_STENCIL_INDEX4 = 0x8D47; + + [NativeName(NativeNameType.Const, "GL_STENCIL_INDEX8")] + public const int GL_STENCIL_INDEX8 = 0x8D48; + + [NativeName(NativeNameType.Const, "GL_STENCIL_INDEX16")] + public const int GL_STENCIL_INDEX16 = 0x8D49; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_RED_SIZE")] + public const int GL_RENDERBUFFER_RED_SIZE = 0x8D50; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_GREEN_SIZE")] + public const int GL_RENDERBUFFER_GREEN_SIZE = 0x8D51; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_BLUE_SIZE")] + public const int GL_RENDERBUFFER_BLUE_SIZE = 0x8D52; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_ALPHA_SIZE")] + public const int GL_RENDERBUFFER_ALPHA_SIZE = 0x8D53; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_DEPTH_SIZE")] + public const int GL_RENDERBUFFER_DEPTH_SIZE = 0x8D54; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_STENCIL_SIZE")] + public const int GL_RENDERBUFFER_STENCIL_SIZE = 0x8D55; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE")] + public const int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56; + + [NativeName(NativeNameType.Const, "GL_MAX_SAMPLES")] + public const int GL_MAX_SAMPLES = 0x8D57; + + [NativeName(NativeNameType.Const, "GL_INDEX")] + public const int GL_INDEX = 0x8222; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LUMINANCE_TYPE")] + public const int GL_TEXTURE_LUMINANCE_TYPE = 0x8C14; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_INTENSITY_TYPE")] + public const int GL_TEXTURE_INTENSITY_TYPE = 0x8C15; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_SRGB")] + public const int GL_FRAMEBUFFER_SRGB = 0x8DB9; + + [NativeName(NativeNameType.Const, "GL_HALF_FLOAT")] + public const int GL_HALF_FLOAT = 0x140B; + + [NativeName(NativeNameType.Const, "GL_MAP_READ_BIT")] + public const int GL_MAP_READ_BIT = 0x0001; + + [NativeName(NativeNameType.Const, "GL_MAP_WRITE_BIT")] + public const int GL_MAP_WRITE_BIT = 0x0002; + + [NativeName(NativeNameType.Const, "GL_MAP_INVALIDATE_RANGE_BIT")] + public const int GL_MAP_INVALIDATE_RANGE_BIT = 0x0004; + + [NativeName(NativeNameType.Const, "GL_MAP_INVALIDATE_BUFFER_BIT")] + public const int GL_MAP_INVALIDATE_BUFFER_BIT = 0x0008; + + [NativeName(NativeNameType.Const, "GL_MAP_FLUSH_EXPLICIT_BIT")] + public const int GL_MAP_FLUSH_EXPLICIT_BIT = 0x0010; + + [NativeName(NativeNameType.Const, "GL_MAP_UNSYNCHRONIZED_BIT")] + public const int GL_MAP_UNSYNCHRONIZED_BIT = 0x0020; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RED_RGTC1")] + public const int GL_COMPRESSED_RED_RGTC1 = 0x8DBB; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SIGNED_RED_RGTC1")] + public const int GL_COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RG_RGTC2")] + public const int GL_COMPRESSED_RG_RGTC2 = 0x8DBD; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SIGNED_RG_RGTC2")] + public const int GL_COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE; + + [NativeName(NativeNameType.Const, "GL_RG")] + public const int GL_RG = 0x8227; + + [NativeName(NativeNameType.Const, "GL_RG_INTEGER")] + public const int GL_RG_INTEGER = 0x8228; + + [NativeName(NativeNameType.Const, "GL_R8")] + public const int GL_R8 = 0x8229; + + [NativeName(NativeNameType.Const, "GL_R16")] + public const int GL_R16 = 0x822A; + + [NativeName(NativeNameType.Const, "GL_RG8")] + public const int GL_RG8 = 0x822B; + + [NativeName(NativeNameType.Const, "GL_RG16")] + public const int GL_RG16 = 0x822C; + + [NativeName(NativeNameType.Const, "GL_R16F")] + public const int GL_R16F = 0x822D; + + [NativeName(NativeNameType.Const, "GL_R32F")] + public const int GL_R32F = 0x822E; + + [NativeName(NativeNameType.Const, "GL_RG16F")] + public const int GL_RG16F = 0x822F; + + [NativeName(NativeNameType.Const, "GL_RG32F")] + public const int GL_RG32F = 0x8230; + + [NativeName(NativeNameType.Const, "GL_R8I")] + public const int GL_R8I = 0x8231; + + [NativeName(NativeNameType.Const, "GL_R8UI")] + public const int GL_R8UI = 0x8232; + + [NativeName(NativeNameType.Const, "GL_R16I")] + public const int GL_R16I = 0x8233; + + [NativeName(NativeNameType.Const, "GL_R16UI")] + public const int GL_R16UI = 0x8234; + + [NativeName(NativeNameType.Const, "GL_R32I")] + public const int GL_R32I = 0x8235; + + [NativeName(NativeNameType.Const, "GL_R32UI")] + public const int GL_R32UI = 0x8236; + + [NativeName(NativeNameType.Const, "GL_RG8I")] + public const int GL_RG8I = 0x8237; + + [NativeName(NativeNameType.Const, "GL_RG8UI")] + public const int GL_RG8UI = 0x8238; + + [NativeName(NativeNameType.Const, "GL_RG16I")] + public const int GL_RG16I = 0x8239; + + [NativeName(NativeNameType.Const, "GL_RG16UI")] + public const int GL_RG16UI = 0x823A; + + [NativeName(NativeNameType.Const, "GL_RG32I")] + public const int GL_RG32I = 0x823B; + + [NativeName(NativeNameType.Const, "GL_RG32UI")] + public const int GL_RG32UI = 0x823C; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_BINDING")] + public const int GL_VERTEX_ARRAY_BINDING = 0x85B5; + + [NativeName(NativeNameType.Const, "GL_CLAMP_VERTEX_COLOR")] + public const int GL_CLAMP_VERTEX_COLOR = 0x891A; + + [NativeName(NativeNameType.Const, "GL_CLAMP_FRAGMENT_COLOR")] + public const int GL_CLAMP_FRAGMENT_COLOR = 0x891B; + + [NativeName(NativeNameType.Const, "GL_ALPHA_INTEGER")] + public const int GL_ALPHA_INTEGER = 0x8D97; + + [NativeName(NativeNameType.Const, "GL_VERSION_3_1")] + public const int GL_VERSION_3_1 = 1; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_RECT")] + public const int GL_SAMPLER_2D_RECT = 0x8B63; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_RECT_SHADOW")] + public const int GL_SAMPLER_2D_RECT_SHADOW = 0x8B64; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_BUFFER")] + public const int GL_SAMPLER_BUFFER = 0x8DC2; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_2D_RECT")] + public const int GL_INT_SAMPLER_2D_RECT = 0x8DCD; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_BUFFER")] + public const int GL_INT_SAMPLER_BUFFER = 0x8DD0; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_2D_RECT")] + public const int GL_UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_BUFFER")] + public const int GL_UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER")] + public const int GL_TEXTURE_BUFFER = 0x8C2A; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_BUFFER_SIZE")] + public const int GL_MAX_TEXTURE_BUFFER_SIZE = 0x8C2B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_BUFFER")] + public const int GL_TEXTURE_BINDING_BUFFER = 0x8C2C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER_DATA_STORE_BINDING")] + public const int GL_TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RECTANGLE")] + public const int GL_TEXTURE_RECTANGLE = 0x84F5; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_RECTANGLE")] + public const int GL_TEXTURE_BINDING_RECTANGLE = 0x84F6; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_RECTANGLE")] + public const int GL_PROXY_TEXTURE_RECTANGLE = 0x84F7; + + [NativeName(NativeNameType.Const, "GL_MAX_RECTANGLE_TEXTURE_SIZE")] + public const int GL_MAX_RECTANGLE_TEXTURE_SIZE = 0x84F8; + + [NativeName(NativeNameType.Const, "GL_R8_SNORM")] + public const int GL_R8_SNORM = 0x8F94; + + [NativeName(NativeNameType.Const, "GL_RG8_SNORM")] + public const int GL_RG8_SNORM = 0x8F95; + + [NativeName(NativeNameType.Const, "GL_RGB8_SNORM")] + public const int GL_RGB8_SNORM = 0x8F96; + + [NativeName(NativeNameType.Const, "GL_RGBA8_SNORM")] + public const int GL_RGBA8_SNORM = 0x8F97; + + [NativeName(NativeNameType.Const, "GL_R16_SNORM")] + public const int GL_R16_SNORM = 0x8F98; + + [NativeName(NativeNameType.Const, "GL_RG16_SNORM")] + public const int GL_RG16_SNORM = 0x8F99; + + [NativeName(NativeNameType.Const, "GL_RGB16_SNORM")] + public const int GL_RGB16_SNORM = 0x8F9A; + + [NativeName(NativeNameType.Const, "GL_RGBA16_SNORM")] + public const int GL_RGBA16_SNORM = 0x8F9B; + + [NativeName(NativeNameType.Const, "GL_SIGNED_NORMALIZED")] + public const int GL_SIGNED_NORMALIZED = 0x8F9C; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVE_RESTART")] + public const int GL_PRIMITIVE_RESTART = 0x8F9D; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVE_RESTART_INDEX")] + public const int GL_PRIMITIVE_RESTART_INDEX = 0x8F9E; + + [NativeName(NativeNameType.Const, "GL_COPY_READ_BUFFER")] + public const int GL_COPY_READ_BUFFER = 0x8F36; + + [NativeName(NativeNameType.Const, "GL_COPY_WRITE_BUFFER")] + public const int GL_COPY_WRITE_BUFFER = 0x8F37; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BUFFER")] + public const int GL_UNIFORM_BUFFER = 0x8A11; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BUFFER_BINDING")] + public const int GL_UNIFORM_BUFFER_BINDING = 0x8A28; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BUFFER_START")] + public const int GL_UNIFORM_BUFFER_START = 0x8A29; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BUFFER_SIZE")] + public const int GL_UNIFORM_BUFFER_SIZE = 0x8A2A; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_UNIFORM_BLOCKS")] + public const int GL_MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_UNIFORM_BLOCKS")] + public const int GL_MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_UNIFORM_BLOCKS")] + public const int GL_MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_UNIFORM_BLOCKS")] + public const int GL_MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E; + + [NativeName(NativeNameType.Const, "GL_MAX_UNIFORM_BUFFER_BINDINGS")] + public const int GL_MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F; + + [NativeName(NativeNameType.Const, "GL_MAX_UNIFORM_BLOCK_SIZE")] + public const int GL_MAX_UNIFORM_BLOCK_SIZE = 0x8A30; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS")] + public const int GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS")] + public const int GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS")] + public const int GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT")] + public const int GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH")] + public const int GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_UNIFORM_BLOCKS")] + public const int GL_ACTIVE_UNIFORM_BLOCKS = 0x8A36; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_TYPE")] + public const int GL_UNIFORM_TYPE = 0x8A37; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_SIZE")] + public const int GL_UNIFORM_SIZE = 0x8A38; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_NAME_LENGTH")] + public const int GL_UNIFORM_NAME_LENGTH = 0x8A39; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_INDEX")] + public const int GL_UNIFORM_BLOCK_INDEX = 0x8A3A; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_OFFSET")] + public const int GL_UNIFORM_OFFSET = 0x8A3B; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_ARRAY_STRIDE")] + public const int GL_UNIFORM_ARRAY_STRIDE = 0x8A3C; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_MATRIX_STRIDE")] + public const int GL_UNIFORM_MATRIX_STRIDE = 0x8A3D; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_IS_ROW_MAJOR")] + public const int GL_UNIFORM_IS_ROW_MAJOR = 0x8A3E; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_BINDING")] + public const int GL_UNIFORM_BLOCK_BINDING = 0x8A3F; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_DATA_SIZE")] + public const int GL_UNIFORM_BLOCK_DATA_SIZE = 0x8A40; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_NAME_LENGTH")] + public const int GL_UNIFORM_BLOCK_NAME_LENGTH = 0x8A41; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS")] + public const int GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES")] + public const int GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER")] + public const int GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER")] + public const int GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER")] + public const int GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46; + + [NativeName(NativeNameType.Const, "GL_INVALID_INDEX")] + public const uint GL_INVALID_INDEX = 0xFFFFFFFFu; + + [NativeName(NativeNameType.Const, "GL_VERSION_3_2")] + public const int GL_VERSION_3_2 = 1; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_CORE_PROFILE_BIT")] + public const int GL_CONTEXT_CORE_PROFILE_BIT = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_COMPATIBILITY_PROFILE_BIT")] + public const int GL_CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_LINES_ADJACENCY")] + public const int GL_LINES_ADJACENCY = 0x000A; + + [NativeName(NativeNameType.Const, "GL_LINE_STRIP_ADJACENCY")] + public const int GL_LINE_STRIP_ADJACENCY = 0x000B; + + [NativeName(NativeNameType.Const, "GL_TRIANGLES_ADJACENCY")] + public const int GL_TRIANGLES_ADJACENCY = 0x000C; + + [NativeName(NativeNameType.Const, "GL_TRIANGLE_STRIP_ADJACENCY")] + public const int GL_TRIANGLE_STRIP_ADJACENCY = 0x000D; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_POINT_SIZE")] + public const int GL_PROGRAM_POINT_SIZE = 0x8642; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS")] + public const int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_LAYERED")] + public const int GL_FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS")] + public const int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_SHADER")] + public const int GL_GEOMETRY_SHADER = 0x8DD9; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_VERTICES_OUT")] + public const int GL_GEOMETRY_VERTICES_OUT = 0x8916; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_INPUT_TYPE")] + public const int GL_GEOMETRY_INPUT_TYPE = 0x8917; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_OUTPUT_TYPE")] + public const int GL_GEOMETRY_OUTPUT_TYPE = 0x8918; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS")] + public const int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_OUTPUT_VERTICES")] + public const int GL_MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS")] + public const int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_OUTPUT_COMPONENTS")] + public const int GL_MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_INPUT_COMPONENTS")] + public const int GL_MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_OUTPUT_COMPONENTS")] + public const int GL_MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_INPUT_COMPONENTS")] + public const int GL_MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_PROFILE_MASK")] + public const int GL_CONTEXT_PROFILE_MASK = 0x9126; + + [NativeName(NativeNameType.Const, "GL_DEPTH_CLAMP")] + public const int GL_DEPTH_CLAMP = 0x864F; + + [NativeName(NativeNameType.Const, "GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION")] + public const int GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C; + + [NativeName(NativeNameType.Const, "GL_FIRST_VERTEX_CONVENTION")] + public const int GL_FIRST_VERTEX_CONVENTION = 0x8E4D; + + [NativeName(NativeNameType.Const, "GL_LAST_VERTEX_CONVENTION")] + public const int GL_LAST_VERTEX_CONVENTION = 0x8E4E; + + [NativeName(NativeNameType.Const, "GL_PROVOKING_VERTEX")] + public const int GL_PROVOKING_VERTEX = 0x8E4F; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_SEAMLESS")] + public const int GL_TEXTURE_CUBE_MAP_SEAMLESS = 0x884F; + + [NativeName(NativeNameType.Const, "GL_MAX_SERVER_WAIT_TIMEOUT")] + public const int GL_MAX_SERVER_WAIT_TIMEOUT = 0x9111; + + [NativeName(NativeNameType.Const, "GL_OBJECT_TYPE")] + public const int GL_OBJECT_TYPE = 0x9112; + + [NativeName(NativeNameType.Const, "GL_SYNC_CONDITION")] + public const int GL_SYNC_CONDITION = 0x9113; + + [NativeName(NativeNameType.Const, "GL_SYNC_STATUS")] + public const int GL_SYNC_STATUS = 0x9114; + + [NativeName(NativeNameType.Const, "GL_SYNC_FLAGS")] + public const int GL_SYNC_FLAGS = 0x9115; + + [NativeName(NativeNameType.Const, "GL_SYNC_FENCE")] + public const int GL_SYNC_FENCE = 0x9116; + + [NativeName(NativeNameType.Const, "GL_SYNC_GPU_COMMANDS_COMPLETE")] + public const int GL_SYNC_GPU_COMMANDS_COMPLETE = 0x9117; + + [NativeName(NativeNameType.Const, "GL_UNSIGNALED")] + public const int GL_UNSIGNALED = 0x9118; + + [NativeName(NativeNameType.Const, "GL_SIGNALED")] + public const int GL_SIGNALED = 0x9119; + + [NativeName(NativeNameType.Const, "GL_ALREADY_SIGNALED")] + public const int GL_ALREADY_SIGNALED = 0x911A; + + [NativeName(NativeNameType.Const, "GL_TIMEOUT_EXPIRED")] + public const int GL_TIMEOUT_EXPIRED = 0x911B; + + [NativeName(NativeNameType.Const, "GL_CONDITION_SATISFIED")] + public const int GL_CONDITION_SATISFIED = 0x911C; + + [NativeName(NativeNameType.Const, "GL_WAIT_FAILED")] + public const int GL_WAIT_FAILED = 0x911D; + + [NativeName(NativeNameType.Const, "GL_SYNC_FLUSH_COMMANDS_BIT")] + public const int GL_SYNC_FLUSH_COMMANDS_BIT = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_POSITION")] + public const int GL_SAMPLE_POSITION = 0x8E50; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_MASK")] + public const int GL_SAMPLE_MASK = 0x8E51; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_MASK_VALUE")] + public const int GL_SAMPLE_MASK_VALUE = 0x8E52; + + [NativeName(NativeNameType.Const, "GL_MAX_SAMPLE_MASK_WORDS")] + public const int GL_MAX_SAMPLE_MASK_WORDS = 0x8E59; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_2D_MULTISAMPLE")] + public const int GL_TEXTURE_2D_MULTISAMPLE = 0x9100; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_2D_MULTISAMPLE")] + public const int GL_PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_2D_MULTISAMPLE_ARRAY")] + public const int GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY")] + public const int GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_2D_MULTISAMPLE")] + public const int GL_TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY")] + public const int GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SAMPLES")] + public const int GL_TEXTURE_SAMPLES = 0x9106; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_FIXED_SAMPLE_LOCATIONS")] + public const int GL_TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_MULTISAMPLE")] + public const int GL_SAMPLER_2D_MULTISAMPLE = 0x9108; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_2D_MULTISAMPLE")] + public const int GL_INT_SAMPLER_2D_MULTISAMPLE = 0x9109; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE")] + public const int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_MULTISAMPLE_ARRAY")] + public const int GL_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY")] + public const int GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY")] + public const int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D; + + [NativeName(NativeNameType.Const, "GL_MAX_COLOR_TEXTURE_SAMPLES")] + public const int GL_MAX_COLOR_TEXTURE_SAMPLES = 0x910E; + + [NativeName(NativeNameType.Const, "GL_MAX_DEPTH_TEXTURE_SAMPLES")] + public const int GL_MAX_DEPTH_TEXTURE_SAMPLES = 0x910F; + + [NativeName(NativeNameType.Const, "GL_MAX_INTEGER_SAMPLES")] + public const int GL_MAX_INTEGER_SAMPLES = 0x9110; + + [NativeName(NativeNameType.Const, "GL_VERSION_3_3")] + public const int GL_VERSION_3_3 = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_DIVISOR")] + public const int GL_VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE; + + [NativeName(NativeNameType.Const, "GL_SRC1_COLOR")] + public const int GL_SRC1_COLOR = 0x88F9; + + [NativeName(NativeNameType.Const, "GL_ONE_MINUS_SRC1_COLOR")] + public const int GL_ONE_MINUS_SRC1_COLOR = 0x88FA; + + [NativeName(NativeNameType.Const, "GL_ONE_MINUS_SRC1_ALPHA")] + public const int GL_ONE_MINUS_SRC1_ALPHA = 0x88FB; + + [NativeName(NativeNameType.Const, "GL_MAX_DUAL_SOURCE_DRAW_BUFFERS")] + public const int GL_MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC; + + [NativeName(NativeNameType.Const, "GL_ANY_SAMPLES_PASSED")] + public const int GL_ANY_SAMPLES_PASSED = 0x8C2F; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_BINDING")] + public const int GL_SAMPLER_BINDING = 0x8919; + + [NativeName(NativeNameType.Const, "GL_RGB10_A2UI")] + public const int GL_RGB10_A2UI = 0x906F; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SWIZZLE_R")] + public const int GL_TEXTURE_SWIZZLE_R = 0x8E42; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SWIZZLE_G")] + public const int GL_TEXTURE_SWIZZLE_G = 0x8E43; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SWIZZLE_B")] + public const int GL_TEXTURE_SWIZZLE_B = 0x8E44; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SWIZZLE_A")] + public const int GL_TEXTURE_SWIZZLE_A = 0x8E45; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SWIZZLE_RGBA")] + public const int GL_TEXTURE_SWIZZLE_RGBA = 0x8E46; + + [NativeName(NativeNameType.Const, "GL_TIME_ELAPSED")] + public const int GL_TIME_ELAPSED = 0x88BF; + + [NativeName(NativeNameType.Const, "GL_TIMESTAMP")] + public const int GL_TIMESTAMP = 0x8E28; + + [NativeName(NativeNameType.Const, "GL_INT_2_10_10_10_REV")] + public const int GL_INT_2_10_10_10_REV = 0x8D9F; + + [NativeName(NativeNameType.Const, "GL_VERSION_4_0")] + public const int GL_VERSION_4_0 = 1; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_SHADING")] + public const int GL_SAMPLE_SHADING = 0x8C36; + + [NativeName(NativeNameType.Const, "GL_MIN_SAMPLE_SHADING_VALUE")] + public const int GL_MIN_SAMPLE_SHADING_VALUE = 0x8C37; + + [NativeName(NativeNameType.Const, "GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET")] + public const int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET")] + public const int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_ARRAY")] + public const int GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_CUBE_MAP_ARRAY")] + public const int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_CUBE_MAP_ARRAY")] + public const int GL_PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_CUBE_MAP_ARRAY")] + public const int GL_SAMPLER_CUBE_MAP_ARRAY = 0x900C; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW")] + public const int GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_CUBE_MAP_ARRAY")] + public const int GL_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY")] + public const int GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F; + + [NativeName(NativeNameType.Const, "GL_DRAW_INDIRECT_BUFFER")] + public const int GL_DRAW_INDIRECT_BUFFER = 0x8F3F; + + [NativeName(NativeNameType.Const, "GL_DRAW_INDIRECT_BUFFER_BINDING")] + public const int GL_DRAW_INDIRECT_BUFFER_BINDING = 0x8F43; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_SHADER_INVOCATIONS")] + public const int GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_SHADER_INVOCATIONS")] + public const int GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A; + + [NativeName(NativeNameType.Const, "GL_MIN_FRAGMENT_INTERPOLATION_OFFSET")] + public const int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_INTERPOLATION_OFFSET")] + public const int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_INTERPOLATION_OFFSET_BITS")] + public const int GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_STREAMS")] + public const int GL_MAX_VERTEX_STREAMS = 0x8E71; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_VEC2")] + public const int GL_DOUBLE_VEC2 = 0x8FFC; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_VEC3")] + public const int GL_DOUBLE_VEC3 = 0x8FFD; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_VEC4")] + public const int GL_DOUBLE_VEC4 = 0x8FFE; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT2")] + public const int GL_DOUBLE_MAT2 = 0x8F46; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT3")] + public const int GL_DOUBLE_MAT3 = 0x8F47; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT4")] + public const int GL_DOUBLE_MAT4 = 0x8F48; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT2x3")] + public const int GL_DOUBLE_MAT2X3 = 0x8F49; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT2x4")] + public const int GL_DOUBLE_MAT2X4 = 0x8F4A; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT3x2")] + public const int GL_DOUBLE_MAT3X2 = 0x8F4B; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT3x4")] + public const int GL_DOUBLE_MAT3X4 = 0x8F4C; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT4x2")] + public const int GL_DOUBLE_MAT4X2 = 0x8F4D; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT4x3")] + public const int GL_DOUBLE_MAT4X3 = 0x8F4E; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_SUBROUTINES")] + public const int GL_ACTIVE_SUBROUTINES = 0x8DE5; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_SUBROUTINE_UNIFORMS")] + public const int GL_ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS")] + public const int GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_SUBROUTINE_MAX_LENGTH")] + public const int GL_ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH")] + public const int GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49; + + [NativeName(NativeNameType.Const, "GL_MAX_SUBROUTINES")] + public const int GL_MAX_SUBROUTINES = 0x8DE7; + + [NativeName(NativeNameType.Const, "GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS")] + public const int GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8; + + [NativeName(NativeNameType.Const, "GL_NUM_COMPATIBLE_SUBROUTINES")] + public const int GL_NUM_COMPATIBLE_SUBROUTINES = 0x8E4A; + + [NativeName(NativeNameType.Const, "GL_COMPATIBLE_SUBROUTINES")] + public const int GL_COMPATIBLE_SUBROUTINES = 0x8E4B; + + [NativeName(NativeNameType.Const, "GL_PATCHES")] + public const int GL_PATCHES = 0x000E; + + [NativeName(NativeNameType.Const, "GL_PATCH_VERTICES")] + public const int GL_PATCH_VERTICES = 0x8E72; + + [NativeName(NativeNameType.Const, "GL_PATCH_DEFAULT_INNER_LEVEL")] + public const int GL_PATCH_DEFAULT_INNER_LEVEL = 0x8E73; + + [NativeName(NativeNameType.Const, "GL_PATCH_DEFAULT_OUTER_LEVEL")] + public const int GL_PATCH_DEFAULT_OUTER_LEVEL = 0x8E74; + + [NativeName(NativeNameType.Const, "GL_TESS_CONTROL_OUTPUT_VERTICES")] + public const int GL_TESS_CONTROL_OUTPUT_VERTICES = 0x8E75; + + [NativeName(NativeNameType.Const, "GL_TESS_GEN_MODE")] + public const int GL_TESS_GEN_MODE = 0x8E76; + + [NativeName(NativeNameType.Const, "GL_TESS_GEN_SPACING")] + public const int GL_TESS_GEN_SPACING = 0x8E77; + + [NativeName(NativeNameType.Const, "GL_TESS_GEN_VERTEX_ORDER")] + public const int GL_TESS_GEN_VERTEX_ORDER = 0x8E78; + + [NativeName(NativeNameType.Const, "GL_TESS_GEN_POINT_MODE")] + public const int GL_TESS_GEN_POINT_MODE = 0x8E79; + + [NativeName(NativeNameType.Const, "GL_ISOLINES")] + public const int GL_ISOLINES = 0x8E7A; + + [NativeName(NativeNameType.Const, "GL_FRACTIONAL_ODD")] + public const int GL_FRACTIONAL_ODD = 0x8E7B; + + [NativeName(NativeNameType.Const, "GL_FRACTIONAL_EVEN")] + public const int GL_FRACTIONAL_EVEN = 0x8E7C; + + [NativeName(NativeNameType.Const, "GL_MAX_PATCH_VERTICES")] + public const int GL_MAX_PATCH_VERTICES = 0x8E7D; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_GEN_LEVEL")] + public const int GL_MAX_TESS_GEN_LEVEL = 0x8E7E; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS")] + public const int GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS")] + public const int GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS")] + public const int GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS")] + public const int GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS")] + public const int GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_PATCH_COMPONENTS")] + public const int GL_MAX_TESS_PATCH_COMPONENTS = 0x8E84; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS")] + public const int GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS")] + public const int GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS")] + public const int GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS")] + public const int GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_CONTROL_INPUT_COMPONENTS")] + public const int GL_MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS")] + public const int GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS")] + public const int GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS")] + public const int GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER")] + public const int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER")] + public const int GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1; + + [NativeName(NativeNameType.Const, "GL_TESS_EVALUATION_SHADER")] + public const int GL_TESS_EVALUATION_SHADER = 0x8E87; + + [NativeName(NativeNameType.Const, "GL_TESS_CONTROL_SHADER")] + public const int GL_TESS_CONTROL_SHADER = 0x8E88; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK")] + public const int GL_TRANSFORM_FEEDBACK = 0x8E22; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BINDING")] + public const int GL_TRANSFORM_FEEDBACK_BINDING = 0x8E25; + + [NativeName(NativeNameType.Const, "GL_MAX_TRANSFORM_FEEDBACK_BUFFERS")] + public const int GL_MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70; + + [NativeName(NativeNameType.Const, "GL_VERSION_4_1")] + public const int GL_VERSION_4_1 = 1; + + [NativeName(NativeNameType.Const, "GL_FIXED")] + public const int GL_FIXED = 0x140C; + + [NativeName(NativeNameType.Const, "GL_IMPLEMENTATION_COLOR_READ_TYPE")] + public const int GL_IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A; + + [NativeName(NativeNameType.Const, "GL_IMPLEMENTATION_COLOR_READ_FORMAT")] + public const int GL_IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B; + + [NativeName(NativeNameType.Const, "GL_LOW_FLOAT")] + public const int GL_LOW_FLOAT = 0x8DF0; + + [NativeName(NativeNameType.Const, "GL_MEDIUM_FLOAT")] + public const int GL_MEDIUM_FLOAT = 0x8DF1; + + [NativeName(NativeNameType.Const, "GL_HIGH_FLOAT")] + public const int GL_HIGH_FLOAT = 0x8DF2; + + [NativeName(NativeNameType.Const, "GL_LOW_INT")] + public const int GL_LOW_INT = 0x8DF3; + + [NativeName(NativeNameType.Const, "GL_MEDIUM_INT")] + public const int GL_MEDIUM_INT = 0x8DF4; + + [NativeName(NativeNameType.Const, "GL_HIGH_INT")] + public const int GL_HIGH_INT = 0x8DF5; + + [NativeName(NativeNameType.Const, "GL_SHADER_COMPILER")] + public const int GL_SHADER_COMPILER = 0x8DFA; + + [NativeName(NativeNameType.Const, "GL_SHADER_BINARY_FORMATS")] + public const int GL_SHADER_BINARY_FORMATS = 0x8DF8; + + [NativeName(NativeNameType.Const, "GL_NUM_SHADER_BINARY_FORMATS")] + public const int GL_NUM_SHADER_BINARY_FORMATS = 0x8DF9; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_UNIFORM_VECTORS")] + public const int GL_MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; + + [NativeName(NativeNameType.Const, "GL_MAX_VARYING_VECTORS")] + public const int GL_MAX_VARYING_VECTORS = 0x8DFC; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_UNIFORM_VECTORS")] + public const int GL_MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; + + [NativeName(NativeNameType.Const, "GL_RGB565")] + public const int GL_RGB565 = 0x8D62; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_BINARY_RETRIEVABLE_HINT")] + public const int GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_BINARY_LENGTH")] + public const int GL_PROGRAM_BINARY_LENGTH = 0x8741; + + [NativeName(NativeNameType.Const, "GL_NUM_PROGRAM_BINARY_FORMATS")] + public const int GL_NUM_PROGRAM_BINARY_FORMATS = 0x87FE; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_BINARY_FORMATS")] + public const int GL_PROGRAM_BINARY_FORMATS = 0x87FF; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_BIT")] + public const int GL_VERTEX_SHADER_BIT = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_SHADER_BIT")] + public const int GL_FRAGMENT_SHADER_BIT = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_SHADER_BIT")] + public const int GL_GEOMETRY_SHADER_BIT = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_TESS_CONTROL_SHADER_BIT")] + public const int GL_TESS_CONTROL_SHADER_BIT = 0x00000008; + + [NativeName(NativeNameType.Const, "GL_TESS_EVALUATION_SHADER_BIT")] + public const int GL_TESS_EVALUATION_SHADER_BIT = 0x00000010; + + [NativeName(NativeNameType.Const, "GL_ALL_SHADER_BITS")] + public const uint GL_ALL_SHADER_BITS = 0xFFFFFFFF; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_SEPARABLE")] + public const int GL_PROGRAM_SEPARABLE = 0x8258; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_PROGRAM")] + public const int GL_ACTIVE_PROGRAM = 0x8259; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_PIPELINE_BINDING")] + public const int GL_PROGRAM_PIPELINE_BINDING = 0x825A; + + [NativeName(NativeNameType.Const, "GL_MAX_VIEWPORTS")] + public const int GL_MAX_VIEWPORTS = 0x825B; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SUBPIXEL_BITS")] + public const int GL_VIEWPORT_SUBPIXEL_BITS = 0x825C; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_BOUNDS_RANGE")] + public const int GL_VIEWPORT_BOUNDS_RANGE = 0x825D; + + [NativeName(NativeNameType.Const, "GL_LAYER_PROVOKING_VERTEX")] + public const int GL_LAYER_PROVOKING_VERTEX = 0x825E; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_INDEX_PROVOKING_VERTEX")] + public const int GL_VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F; + + [NativeName(NativeNameType.Const, "GL_UNDEFINED_VERTEX")] + public const int GL_UNDEFINED_VERTEX = 0x8260; + + [NativeName(NativeNameType.Const, "GL_VERSION_4_2")] + public const int GL_VERSION_4_2 = 1; + + [NativeName(NativeNameType.Const, "GL_COPY_READ_BUFFER_BINDING")] + public const int GL_COPY_READ_BUFFER_BINDING = 0x8F36; + + [NativeName(NativeNameType.Const, "GL_COPY_WRITE_BUFFER_BINDING")] + public const int GL_COPY_WRITE_BUFFER_BINDING = 0x8F37; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_ACTIVE")] + public const int GL_TRANSFORM_FEEDBACK_ACTIVE = 0x8E24; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_PAUSED")] + public const int GL_TRANSFORM_FEEDBACK_PAUSED = 0x8E23; + + [NativeName(NativeNameType.Const, "GL_UNPACK_COMPRESSED_BLOCK_WIDTH")] + public const int GL_UNPACK_COMPRESSED_BLOCK_WIDTH = 0x9127; + + [NativeName(NativeNameType.Const, "GL_UNPACK_COMPRESSED_BLOCK_HEIGHT")] + public const int GL_UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128; + + [NativeName(NativeNameType.Const, "GL_UNPACK_COMPRESSED_BLOCK_DEPTH")] + public const int GL_UNPACK_COMPRESSED_BLOCK_DEPTH = 0x9129; + + [NativeName(NativeNameType.Const, "GL_UNPACK_COMPRESSED_BLOCK_SIZE")] + public const int GL_UNPACK_COMPRESSED_BLOCK_SIZE = 0x912A; + + [NativeName(NativeNameType.Const, "GL_PACK_COMPRESSED_BLOCK_WIDTH")] + public const int GL_PACK_COMPRESSED_BLOCK_WIDTH = 0x912B; + + [NativeName(NativeNameType.Const, "GL_PACK_COMPRESSED_BLOCK_HEIGHT")] + public const int GL_PACK_COMPRESSED_BLOCK_HEIGHT = 0x912C; + + [NativeName(NativeNameType.Const, "GL_PACK_COMPRESSED_BLOCK_DEPTH")] + public const int GL_PACK_COMPRESSED_BLOCK_DEPTH = 0x912D; + + [NativeName(NativeNameType.Const, "GL_PACK_COMPRESSED_BLOCK_SIZE")] + public const int GL_PACK_COMPRESSED_BLOCK_SIZE = 0x912E; + + [NativeName(NativeNameType.Const, "GL_NUM_SAMPLE_COUNTS")] + public const int GL_NUM_SAMPLE_COUNTS = 0x9380; + + [NativeName(NativeNameType.Const, "GL_MIN_MAP_BUFFER_ALIGNMENT")] + public const int GL_MIN_MAP_BUFFER_ALIGNMENT = 0x90BC; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER")] + public const int GL_ATOMIC_COUNTER_BUFFER = 0x92C0; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_BINDING")] + public const int GL_ATOMIC_COUNTER_BUFFER_BINDING = 0x92C1; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_START")] + public const int GL_ATOMIC_COUNTER_BUFFER_START = 0x92C2; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_SIZE")] + public const int GL_ATOMIC_COUNTER_BUFFER_SIZE = 0x92C3; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE")] + public const int GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS")] + public const int GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES")] + public const int GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER")] + public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER")] + public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER")] + public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER")] + public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92CA; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER")] + public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS")] + public const int GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92CC; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS")] + public const int GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS")] + public const int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS")] + public const int GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS")] + public const int GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS")] + public const int GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_ATOMIC_COUNTERS")] + public const int GL_MAX_VERTEX_ATOMIC_COUNTERS = 0x92D2; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS")] + public const int GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS")] + public const int GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_ATOMIC_COUNTERS")] + public const int GL_MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_ATOMIC_COUNTERS")] + public const int GL_MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_ATOMIC_COUNTERS")] + public const int GL_MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7; + + [NativeName(NativeNameType.Const, "GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE")] + public const int GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8; + + [NativeName(NativeNameType.Const, "GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS")] + public const int GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_ATOMIC_COUNTER_BUFFERS")] + public const int GL_ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX")] + public const int GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_ATOMIC_COUNTER")] + public const int GL_UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT")] + public const int GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_BARRIER_BIT")] + public const int GL_ELEMENT_ARRAY_BARRIER_BIT = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BARRIER_BIT")] + public const int GL_UNIFORM_BARRIER_BIT = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_FETCH_BARRIER_BIT")] + public const int GL_TEXTURE_FETCH_BARRIER_BIT = 0x00000008; + + [NativeName(NativeNameType.Const, "GL_SHADER_IMAGE_ACCESS_BARRIER_BIT")] + public const int GL_SHADER_IMAGE_ACCESS_BARRIER_BIT = 0x00000020; + + [NativeName(NativeNameType.Const, "GL_COMMAND_BARRIER_BIT")] + public const int GL_COMMAND_BARRIER_BIT = 0x00000040; + + [NativeName(NativeNameType.Const, "GL_PIXEL_BUFFER_BARRIER_BIT")] + public const int GL_PIXEL_BUFFER_BARRIER_BIT = 0x00000080; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_UPDATE_BARRIER_BIT")] + public const int GL_TEXTURE_UPDATE_BARRIER_BIT = 0x00000100; + + [NativeName(NativeNameType.Const, "GL_BUFFER_UPDATE_BARRIER_BIT")] + public const int GL_BUFFER_UPDATE_BARRIER_BIT = 0x00000200; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_BARRIER_BIT")] + public const int GL_FRAMEBUFFER_BARRIER_BIT = 0x00000400; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BARRIER_BIT")] + public const int GL_TRANSFORM_FEEDBACK_BARRIER_BIT = 0x00000800; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BARRIER_BIT")] + public const int GL_ATOMIC_COUNTER_BARRIER_BIT = 0x00001000; + + [NativeName(NativeNameType.Const, "GL_ALL_BARRIER_BITS")] + public const uint GL_ALL_BARRIER_BITS = 0xFFFFFFFF; + + [NativeName(NativeNameType.Const, "GL_MAX_IMAGE_UNITS")] + public const int GL_MAX_IMAGE_UNITS = 0x8F38; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS")] + public const int GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_NAME")] + public const int GL_IMAGE_BINDING_NAME = 0x8F3A; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_LEVEL")] + public const int GL_IMAGE_BINDING_LEVEL = 0x8F3B; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_LAYERED")] + public const int GL_IMAGE_BINDING_LAYERED = 0x8F3C; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_LAYER")] + public const int GL_IMAGE_BINDING_LAYER = 0x8F3D; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_ACCESS")] + public const int GL_IMAGE_BINDING_ACCESS = 0x8F3E; + + [NativeName(NativeNameType.Const, "GL_IMAGE_1D")] + public const int GL_IMAGE_1D = 0x904C; + + [NativeName(NativeNameType.Const, "GL_IMAGE_2D")] + public const int GL_IMAGE_2D = 0x904D; + + [NativeName(NativeNameType.Const, "GL_IMAGE_3D")] + public const int GL_IMAGE_3D = 0x904E; + + [NativeName(NativeNameType.Const, "GL_IMAGE_2D_RECT")] + public const int GL_IMAGE_2D_RECT = 0x904F; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CUBE")] + public const int GL_IMAGE_CUBE = 0x9050; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BUFFER")] + public const int GL_IMAGE_BUFFER = 0x9051; + + [NativeName(NativeNameType.Const, "GL_IMAGE_1D_ARRAY")] + public const int GL_IMAGE_1D_ARRAY = 0x9052; + + [NativeName(NativeNameType.Const, "GL_IMAGE_2D_ARRAY")] + public const int GL_IMAGE_2D_ARRAY = 0x9053; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CUBE_MAP_ARRAY")] + public const int GL_IMAGE_CUBE_MAP_ARRAY = 0x9054; + + [NativeName(NativeNameType.Const, "GL_IMAGE_2D_MULTISAMPLE")] + public const int GL_IMAGE_2D_MULTISAMPLE = 0x9055; + + [NativeName(NativeNameType.Const, "GL_IMAGE_2D_MULTISAMPLE_ARRAY")] + public const int GL_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9056; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_1D")] + public const int GL_INT_IMAGE_1D = 0x9057; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_2D")] + public const int GL_INT_IMAGE_2D = 0x9058; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_3D")] + public const int GL_INT_IMAGE_3D = 0x9059; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_2D_RECT")] + public const int GL_INT_IMAGE_2D_RECT = 0x905A; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_CUBE")] + public const int GL_INT_IMAGE_CUBE = 0x905B; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_BUFFER")] + public const int GL_INT_IMAGE_BUFFER = 0x905C; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_1D_ARRAY")] + public const int GL_INT_IMAGE_1D_ARRAY = 0x905D; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_2D_ARRAY")] + public const int GL_INT_IMAGE_2D_ARRAY = 0x905E; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_CUBE_MAP_ARRAY")] + public const int GL_INT_IMAGE_CUBE_MAP_ARRAY = 0x905F; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_2D_MULTISAMPLE")] + public const int GL_INT_IMAGE_2D_MULTISAMPLE = 0x9060; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY")] + public const int GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9061; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_1D")] + public const int GL_UNSIGNED_INT_IMAGE_1D = 0x9062; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_2D")] + public const int GL_UNSIGNED_INT_IMAGE_2D = 0x9063; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_3D")] + public const int GL_UNSIGNED_INT_IMAGE_3D = 0x9064; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_2D_RECT")] + public const int GL_UNSIGNED_INT_IMAGE_2D_RECT = 0x9065; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_CUBE")] + public const int GL_UNSIGNED_INT_IMAGE_CUBE = 0x9066; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_BUFFER")] + public const int GL_UNSIGNED_INT_IMAGE_BUFFER = 0x9067; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_1D_ARRAY")] + public const int GL_UNSIGNED_INT_IMAGE_1D_ARRAY = 0x9068; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_2D_ARRAY")] + public const int GL_UNSIGNED_INT_IMAGE_2D_ARRAY = 0x9069; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY")] + public const int GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE")] + public const int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE = 0x906B; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY")] + public const int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x906C; + + [NativeName(NativeNameType.Const, "GL_MAX_IMAGE_SAMPLES")] + public const int GL_MAX_IMAGE_SAMPLES = 0x906D; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_FORMAT")] + public const int GL_IMAGE_BINDING_FORMAT = 0x906E; + + [NativeName(NativeNameType.Const, "GL_IMAGE_FORMAT_COMPATIBILITY_TYPE")] + public const int GL_IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7; + + [NativeName(NativeNameType.Const, "GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE")] + public const int GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE = 0x90C8; + + [NativeName(NativeNameType.Const, "GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS")] + public const int GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS = 0x90C9; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_IMAGE_UNIFORMS")] + public const int GL_MAX_VERTEX_IMAGE_UNIFORMS = 0x90CA; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS")] + public const int GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS")] + public const int GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_IMAGE_UNIFORMS")] + public const int GL_MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_IMAGE_UNIFORMS")] + public const int GL_MAX_FRAGMENT_IMAGE_UNIFORMS = 0x90CE; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_IMAGE_UNIFORMS")] + public const int GL_MAX_COMBINED_IMAGE_UNIFORMS = 0x90CF; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_BPTC_UNORM")] + public const int GL_COMPRESSED_RGBA_BPTC_UNORM = 0x8E8C; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM")] + public const int GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM = 0x8E8D; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT")] + public const int GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT = 0x8E8E; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT")] + public const int GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = 0x8E8F; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_IMMUTABLE_FORMAT")] + public const int GL_TEXTURE_IMMUTABLE_FORMAT = 0x912F; + + [NativeName(NativeNameType.Const, "GL_VERSION_4_3")] + public const int GL_VERSION_4_3 = 1; + + [NativeName(NativeNameType.Const, "GL_NUM_SHADING_LANGUAGE_VERSIONS")] + public const int GL_NUM_SHADING_LANGUAGE_VERSIONS = 0x82E9; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_LONG")] + public const int GL_VERTEX_ATTRIB_ARRAY_LONG = 0x874E; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGB8_ETC2")] + public const int GL_COMPRESSED_RGB8_ETC2 = 0x9274; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ETC2")] + public const int GL_COMPRESSED_SRGB8_ETC2 = 0x9275; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2")] + public const int GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2")] + public const int GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA8_ETC2_EAC")] + public const int GL_COMPRESSED_RGBA8_ETC2_EAC = 0x9278; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_R11_EAC")] + public const int GL_COMPRESSED_R11_EAC = 0x9270; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SIGNED_R11_EAC")] + public const int GL_COMPRESSED_SIGNED_R11_EAC = 0x9271; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RG11_EAC")] + public const int GL_COMPRESSED_RG11_EAC = 0x9272; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SIGNED_RG11_EAC")] + public const int GL_COMPRESSED_SIGNED_RG11_EAC = 0x9273; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVE_RESTART_FIXED_INDEX")] + public const int GL_PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69; + + [NativeName(NativeNameType.Const, "GL_ANY_SAMPLES_PASSED_CONSERVATIVE")] + public const int GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A; + + [NativeName(NativeNameType.Const, "GL_MAX_ELEMENT_INDEX")] + public const int GL_MAX_ELEMENT_INDEX = 0x8D6B; + + [NativeName(NativeNameType.Const, "GL_COMPUTE_SHADER")] + public const int GL_COMPUTE_SHADER = 0x91B9; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_UNIFORM_BLOCKS")] + public const int GL_MAX_COMPUTE_UNIFORM_BLOCKS = 0x91BB; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS")] + public const int GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS = 0x91BC; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_IMAGE_UNIFORMS")] + public const int GL_MAX_COMPUTE_IMAGE_UNIFORMS = 0x91BD; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_SHARED_MEMORY_SIZE")] + public const int GL_MAX_COMPUTE_SHARED_MEMORY_SIZE = 0x8262; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_UNIFORM_COMPONENTS")] + public const int GL_MAX_COMPUTE_UNIFORM_COMPONENTS = 0x8263; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS")] + public const int GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS = 0x8264; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_ATOMIC_COUNTERS")] + public const int GL_MAX_COMPUTE_ATOMIC_COUNTERS = 0x8265; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS")] + public const int GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS = 0x8266; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS")] + public const int GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS = 0x90EB; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_WORK_GROUP_COUNT")] + public const int GL_MAX_COMPUTE_WORK_GROUP_COUNT = 0x91BE; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_WORK_GROUP_SIZE")] + public const int GL_MAX_COMPUTE_WORK_GROUP_SIZE = 0x91BF; + + [NativeName(NativeNameType.Const, "GL_COMPUTE_WORK_GROUP_SIZE")] + public const int GL_COMPUTE_WORK_GROUP_SIZE = 0x8267; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER")] + public const int GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER = 0x90EC; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER")] + public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90ED; + + [NativeName(NativeNameType.Const, "GL_DISPATCH_INDIRECT_BUFFER")] + public const int GL_DISPATCH_INDIRECT_BUFFER = 0x90EE; + + [NativeName(NativeNameType.Const, "GL_DISPATCH_INDIRECT_BUFFER_BINDING")] + public const int GL_DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF; + + [NativeName(NativeNameType.Const, "GL_COMPUTE_SHADER_BIT")] + public const int GL_COMPUTE_SHADER_BIT = 0x00000020; + + [NativeName(NativeNameType.Const, "GL_DEBUG_OUTPUT_SYNCHRONOUS")] + public const int GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242; + + [NativeName(NativeNameType.Const, "GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH")] + public const int GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CALLBACK_FUNCTION")] + public const int GL_DEBUG_CALLBACK_FUNCTION = 0x8244; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CALLBACK_USER_PARAM")] + public const int GL_DEBUG_CALLBACK_USER_PARAM = 0x8245; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_API")] + public const int GL_DEBUG_SOURCE_API = 0x8246; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_WINDOW_SYSTEM")] + public const int GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_SHADER_COMPILER")] + public const int GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_THIRD_PARTY")] + public const int GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_APPLICATION")] + public const int GL_DEBUG_SOURCE_APPLICATION = 0x824A; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_OTHER")] + public const int GL_DEBUG_SOURCE_OTHER = 0x824B; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_ERROR")] + public const int GL_DEBUG_TYPE_ERROR = 0x824C; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR")] + public const int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR")] + public const int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_PORTABILITY")] + public const int GL_DEBUG_TYPE_PORTABILITY = 0x824F; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_PERFORMANCE")] + public const int GL_DEBUG_TYPE_PERFORMANCE = 0x8250; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_OTHER")] + public const int GL_DEBUG_TYPE_OTHER = 0x8251; + + [NativeName(NativeNameType.Const, "GL_MAX_DEBUG_MESSAGE_LENGTH")] + public const int GL_MAX_DEBUG_MESSAGE_LENGTH = 0x9143; + + [NativeName(NativeNameType.Const, "GL_MAX_DEBUG_LOGGED_MESSAGES")] + public const int GL_MAX_DEBUG_LOGGED_MESSAGES = 0x9144; + + [NativeName(NativeNameType.Const, "GL_DEBUG_LOGGED_MESSAGES")] + public const int GL_DEBUG_LOGGED_MESSAGES = 0x9145; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SEVERITY_HIGH")] + public const int GL_DEBUG_SEVERITY_HIGH = 0x9146; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SEVERITY_MEDIUM")] + public const int GL_DEBUG_SEVERITY_MEDIUM = 0x9147; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SEVERITY_LOW")] + public const int GL_DEBUG_SEVERITY_LOW = 0x9148; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_MARKER")] + public const int GL_DEBUG_TYPE_MARKER = 0x8268; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_PUSH_GROUP")] + public const int GL_DEBUG_TYPE_PUSH_GROUP = 0x8269; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_POP_GROUP")] + public const int GL_DEBUG_TYPE_POP_GROUP = 0x826A; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SEVERITY_NOTIFICATION")] + public const int GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B; + + [NativeName(NativeNameType.Const, "GL_MAX_DEBUG_GROUP_STACK_DEPTH")] + public const int GL_MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C; + + [NativeName(NativeNameType.Const, "GL_DEBUG_GROUP_STACK_DEPTH")] + public const int GL_DEBUG_GROUP_STACK_DEPTH = 0x826D; + + [NativeName(NativeNameType.Const, "GL_BUFFER")] + public const int GL_BUFFER = 0x82E0; + + [NativeName(NativeNameType.Const, "GL_SHADER")] + public const int GL_SHADER = 0x82E1; + + [NativeName(NativeNameType.Const, "GL_PROGRAM")] + public const int GL_PROGRAM = 0x82E2; + + [NativeName(NativeNameType.Const, "GL_QUERY")] + public const int GL_QUERY = 0x82E3; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_PIPELINE")] + public const int GL_PROGRAM_PIPELINE = 0x82E4; + + [NativeName(NativeNameType.Const, "GL_SAMPLER")] + public const int GL_SAMPLER = 0x82E6; + + [NativeName(NativeNameType.Const, "GL_MAX_LABEL_LENGTH")] + public const int GL_MAX_LABEL_LENGTH = 0x82E8; + + [NativeName(NativeNameType.Const, "GL_DEBUG_OUTPUT")] + public const int GL_DEBUG_OUTPUT = 0x92E0; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_FLAG_DEBUG_BIT")] + public const int GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_MAX_UNIFORM_LOCATIONS")] + public const int GL_MAX_UNIFORM_LOCATIONS = 0x826E; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_DEFAULT_WIDTH")] + public const int GL_FRAMEBUFFER_DEFAULT_WIDTH = 0x9310; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_DEFAULT_HEIGHT")] + public const int GL_FRAMEBUFFER_DEFAULT_HEIGHT = 0x9311; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_DEFAULT_LAYERS")] + public const int GL_FRAMEBUFFER_DEFAULT_LAYERS = 0x9312; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_DEFAULT_SAMPLES")] + public const int GL_FRAMEBUFFER_DEFAULT_SAMPLES = 0x9313; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS")] + public const int GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAMEBUFFER_WIDTH")] + public const int GL_MAX_FRAMEBUFFER_WIDTH = 0x9315; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAMEBUFFER_HEIGHT")] + public const int GL_MAX_FRAMEBUFFER_HEIGHT = 0x9316; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAMEBUFFER_LAYERS")] + public const int GL_MAX_FRAMEBUFFER_LAYERS = 0x9317; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAMEBUFFER_SAMPLES")] + public const int GL_MAX_FRAMEBUFFER_SAMPLES = 0x9318; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_SUPPORTED")] + public const int GL_INTERNALFORMAT_SUPPORTED = 0x826F; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_PREFERRED")] + public const int GL_INTERNALFORMAT_PREFERRED = 0x8270; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_RED_SIZE")] + public const int GL_INTERNALFORMAT_RED_SIZE = 0x8271; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_GREEN_SIZE")] + public const int GL_INTERNALFORMAT_GREEN_SIZE = 0x8272; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_BLUE_SIZE")] + public const int GL_INTERNALFORMAT_BLUE_SIZE = 0x8273; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_ALPHA_SIZE")] + public const int GL_INTERNALFORMAT_ALPHA_SIZE = 0x8274; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_DEPTH_SIZE")] + public const int GL_INTERNALFORMAT_DEPTH_SIZE = 0x8275; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_STENCIL_SIZE")] + public const int GL_INTERNALFORMAT_STENCIL_SIZE = 0x8276; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_SHARED_SIZE")] + public const int GL_INTERNALFORMAT_SHARED_SIZE = 0x8277; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_RED_TYPE")] + public const int GL_INTERNALFORMAT_RED_TYPE = 0x8278; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_GREEN_TYPE")] + public const int GL_INTERNALFORMAT_GREEN_TYPE = 0x8279; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_BLUE_TYPE")] + public const int GL_INTERNALFORMAT_BLUE_TYPE = 0x827A; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_ALPHA_TYPE")] + public const int GL_INTERNALFORMAT_ALPHA_TYPE = 0x827B; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_DEPTH_TYPE")] + public const int GL_INTERNALFORMAT_DEPTH_TYPE = 0x827C; + + [NativeName(NativeNameType.Const, "GL_INTERNALFORMAT_STENCIL_TYPE")] + public const int GL_INTERNALFORMAT_STENCIL_TYPE = 0x827D; + + [NativeName(NativeNameType.Const, "GL_MAX_WIDTH")] + public const int GL_MAX_WIDTH = 0x827E; + + [NativeName(NativeNameType.Const, "GL_MAX_HEIGHT")] + public const int GL_MAX_HEIGHT = 0x827F; + + [NativeName(NativeNameType.Const, "GL_MAX_DEPTH")] + public const int GL_MAX_DEPTH = 0x8280; + + [NativeName(NativeNameType.Const, "GL_MAX_LAYERS")] + public const int GL_MAX_LAYERS = 0x8281; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_DIMENSIONS")] + public const int GL_MAX_COMBINED_DIMENSIONS = 0x8282; + + [NativeName(NativeNameType.Const, "GL_COLOR_COMPONENTS")] + public const int GL_COLOR_COMPONENTS = 0x8283; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENTS")] + public const int GL_DEPTH_COMPONENTS = 0x8284; + + [NativeName(NativeNameType.Const, "GL_STENCIL_COMPONENTS")] + public const int GL_STENCIL_COMPONENTS = 0x8285; + + [NativeName(NativeNameType.Const, "GL_COLOR_RENDERABLE")] + public const int GL_COLOR_RENDERABLE = 0x8286; + + [NativeName(NativeNameType.Const, "GL_DEPTH_RENDERABLE")] + public const int GL_DEPTH_RENDERABLE = 0x8287; + + [NativeName(NativeNameType.Const, "GL_STENCIL_RENDERABLE")] + public const int GL_STENCIL_RENDERABLE = 0x8288; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_RENDERABLE")] + public const int GL_FRAMEBUFFER_RENDERABLE = 0x8289; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_RENDERABLE_LAYERED")] + public const int GL_FRAMEBUFFER_RENDERABLE_LAYERED = 0x828A; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_BLEND")] + public const int GL_FRAMEBUFFER_BLEND = 0x828B; + + [NativeName(NativeNameType.Const, "GL_READ_PIXELS")] + public const int GL_READ_PIXELS = 0x828C; + + [NativeName(NativeNameType.Const, "GL_READ_PIXELS_FORMAT")] + public const int GL_READ_PIXELS_FORMAT = 0x828D; + + [NativeName(NativeNameType.Const, "GL_READ_PIXELS_TYPE")] + public const int GL_READ_PIXELS_TYPE = 0x828E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_IMAGE_FORMAT")] + public const int GL_TEXTURE_IMAGE_FORMAT = 0x828F; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_IMAGE_TYPE")] + public const int GL_TEXTURE_IMAGE_TYPE = 0x8290; + + [NativeName(NativeNameType.Const, "GL_GET_TEXTURE_IMAGE_FORMAT")] + public const int GL_GET_TEXTURE_IMAGE_FORMAT = 0x8291; + + [NativeName(NativeNameType.Const, "GL_GET_TEXTURE_IMAGE_TYPE")] + public const int GL_GET_TEXTURE_IMAGE_TYPE = 0x8292; + + [NativeName(NativeNameType.Const, "GL_MIPMAP")] + public const int GL_MIPMAP = 0x8293; + + [NativeName(NativeNameType.Const, "GL_MANUAL_GENERATE_MIPMAP")] + public const int GL_MANUAL_GENERATE_MIPMAP = 0x8294; + + [NativeName(NativeNameType.Const, "GL_AUTO_GENERATE_MIPMAP")] + public const int GL_AUTO_GENERATE_MIPMAP = 0x8295; + + [NativeName(NativeNameType.Const, "GL_COLOR_ENCODING")] + public const int GL_COLOR_ENCODING = 0x8296; + + [NativeName(NativeNameType.Const, "GL_SRGB_READ")] + public const int GL_SRGB_READ = 0x8297; + + [NativeName(NativeNameType.Const, "GL_SRGB_WRITE")] + public const int GL_SRGB_WRITE = 0x8298; + + [NativeName(NativeNameType.Const, "GL_FILTER")] + public const int GL_FILTER = 0x829A; + + [NativeName(NativeNameType.Const, "GL_VERTEX_TEXTURE")] + public const int GL_VERTEX_TEXTURE = 0x829B; + + [NativeName(NativeNameType.Const, "GL_TESS_CONTROL_TEXTURE")] + public const int GL_TESS_CONTROL_TEXTURE = 0x829C; + + [NativeName(NativeNameType.Const, "GL_TESS_EVALUATION_TEXTURE")] + public const int GL_TESS_EVALUATION_TEXTURE = 0x829D; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_TEXTURE")] + public const int GL_GEOMETRY_TEXTURE = 0x829E; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_TEXTURE")] + public const int GL_FRAGMENT_TEXTURE = 0x829F; + + [NativeName(NativeNameType.Const, "GL_COMPUTE_TEXTURE")] + public const int GL_COMPUTE_TEXTURE = 0x82A0; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SHADOW")] + public const int GL_TEXTURE_SHADOW = 0x82A1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GATHER")] + public const int GL_TEXTURE_GATHER = 0x82A2; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GATHER_SHADOW")] + public const int GL_TEXTURE_GATHER_SHADOW = 0x82A3; + + [NativeName(NativeNameType.Const, "GL_SHADER_IMAGE_LOAD")] + public const int GL_SHADER_IMAGE_LOAD = 0x82A4; + + [NativeName(NativeNameType.Const, "GL_SHADER_IMAGE_STORE")] + public const int GL_SHADER_IMAGE_STORE = 0x82A5; + + [NativeName(NativeNameType.Const, "GL_SHADER_IMAGE_ATOMIC")] + public const int GL_SHADER_IMAGE_ATOMIC = 0x82A6; + + [NativeName(NativeNameType.Const, "GL_IMAGE_TEXEL_SIZE")] + public const int GL_IMAGE_TEXEL_SIZE = 0x82A7; + + [NativeName(NativeNameType.Const, "GL_IMAGE_COMPATIBILITY_CLASS")] + public const int GL_IMAGE_COMPATIBILITY_CLASS = 0x82A8; + + [NativeName(NativeNameType.Const, "GL_IMAGE_PIXEL_FORMAT")] + public const int GL_IMAGE_PIXEL_FORMAT = 0x82A9; + + [NativeName(NativeNameType.Const, "GL_IMAGE_PIXEL_TYPE")] + public const int GL_IMAGE_PIXEL_TYPE = 0x82AA; + + [NativeName(NativeNameType.Const, "GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST")] + public const int GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82AC; + + [NativeName(NativeNameType.Const, "GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST")] + public const int GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82AD; + + [NativeName(NativeNameType.Const, "GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE")] + public const int GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE = 0x82AE; + + [NativeName(NativeNameType.Const, "GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE")] + public const int GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPRESSED_BLOCK_WIDTH")] + public const int GL_TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT")] + public const int GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPRESSED_BLOCK_SIZE")] + public const int GL_TEXTURE_COMPRESSED_BLOCK_SIZE = 0x82B3; + + [NativeName(NativeNameType.Const, "GL_CLEAR_BUFFER")] + public const int GL_CLEAR_BUFFER = 0x82B4; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_VIEW")] + public const int GL_TEXTURE_VIEW = 0x82B5; + + [NativeName(NativeNameType.Const, "GL_VIEW_COMPATIBILITY_CLASS")] + public const int GL_VIEW_COMPATIBILITY_CLASS = 0x82B6; + + [NativeName(NativeNameType.Const, "GL_FULL_SUPPORT")] + public const int GL_FULL_SUPPORT = 0x82B7; + + [NativeName(NativeNameType.Const, "GL_CAVEAT_SUPPORT")] + public const int GL_CAVEAT_SUPPORT = 0x82B8; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CLASS_4_X_32")] + public const int GL_IMAGE_CLASS_4_X_32 = 0x82B9; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CLASS_2_X_32")] + public const int GL_IMAGE_CLASS_2_X_32 = 0x82BA; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CLASS_1_X_32")] + public const int GL_IMAGE_CLASS_1_X_32 = 0x82BB; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CLASS_4_X_16")] + public const int GL_IMAGE_CLASS_4_X_16 = 0x82BC; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CLASS_2_X_16")] + public const int GL_IMAGE_CLASS_2_X_16 = 0x82BD; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CLASS_1_X_16")] + public const int GL_IMAGE_CLASS_1_X_16 = 0x82BE; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CLASS_4_X_8")] + public const int GL_IMAGE_CLASS_4_X_8 = 0x82BF; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CLASS_2_X_8")] + public const int GL_IMAGE_CLASS_2_X_8 = 0x82C0; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CLASS_1_X_8")] + public const int GL_IMAGE_CLASS_1_X_8 = 0x82C1; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CLASS_11_11_10")] + public const int GL_IMAGE_CLASS_11_11_10 = 0x82C2; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CLASS_10_10_10_2")] + public const int GL_IMAGE_CLASS_10_10_10_2 = 0x82C3; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_128_BITS")] + public const int GL_VIEW_CLASS_128_BITS = 0x82C4; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_96_BITS")] + public const int GL_VIEW_CLASS_96_BITS = 0x82C5; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_64_BITS")] + public const int GL_VIEW_CLASS_64_BITS = 0x82C6; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_48_BITS")] + public const int GL_VIEW_CLASS_48_BITS = 0x82C7; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_32_BITS")] + public const int GL_VIEW_CLASS_32_BITS = 0x82C8; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_24_BITS")] + public const int GL_VIEW_CLASS_24_BITS = 0x82C9; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_16_BITS")] + public const int GL_VIEW_CLASS_16_BITS = 0x82CA; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_8_BITS")] + public const int GL_VIEW_CLASS_8_BITS = 0x82CB; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_S3TC_DXT1_RGB")] + public const int GL_VIEW_CLASS_S3TC_DXT1_RGB = 0x82CC; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_S3TC_DXT1_RGBA")] + public const int GL_VIEW_CLASS_S3TC_DXT1_RGBA = 0x82CD; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_S3TC_DXT3_RGBA")] + public const int GL_VIEW_CLASS_S3TC_DXT3_RGBA = 0x82CE; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_S3TC_DXT5_RGBA")] + public const int GL_VIEW_CLASS_S3TC_DXT5_RGBA = 0x82CF; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_RGTC1_RED")] + public const int GL_VIEW_CLASS_RGTC1_RED = 0x82D0; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_RGTC2_RG")] + public const int GL_VIEW_CLASS_RGTC2_RG = 0x82D1; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_BPTC_UNORM")] + public const int GL_VIEW_CLASS_BPTC_UNORM = 0x82D2; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_BPTC_FLOAT")] + public const int GL_VIEW_CLASS_BPTC_FLOAT = 0x82D3; + + [NativeName(NativeNameType.Const, "GL_UNIFORM")] + public const int GL_UNIFORM = 0x92E1; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK")] + public const int GL_UNIFORM_BLOCK = 0x92E2; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_INPUT")] + public const int GL_PROGRAM_INPUT = 0x92E3; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_OUTPUT")] + public const int GL_PROGRAM_OUTPUT = 0x92E4; + + [NativeName(NativeNameType.Const, "GL_BUFFER_VARIABLE")] + public const int GL_BUFFER_VARIABLE = 0x92E5; + + [NativeName(NativeNameType.Const, "GL_SHADER_STORAGE_BLOCK")] + public const int GL_SHADER_STORAGE_BLOCK = 0x92E6; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SUBROUTINE")] + public const int GL_VERTEX_SUBROUTINE = 0x92E8; + + [NativeName(NativeNameType.Const, "GL_TESS_CONTROL_SUBROUTINE")] + public const int GL_TESS_CONTROL_SUBROUTINE = 0x92E9; + + [NativeName(NativeNameType.Const, "GL_TESS_EVALUATION_SUBROUTINE")] + public const int GL_TESS_EVALUATION_SUBROUTINE = 0x92EA; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_SUBROUTINE")] + public const int GL_GEOMETRY_SUBROUTINE = 0x92EB; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_SUBROUTINE")] + public const int GL_FRAGMENT_SUBROUTINE = 0x92EC; + + [NativeName(NativeNameType.Const, "GL_COMPUTE_SUBROUTINE")] + public const int GL_COMPUTE_SUBROUTINE = 0x92ED; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SUBROUTINE_UNIFORM")] + public const int GL_VERTEX_SUBROUTINE_UNIFORM = 0x92EE; + + [NativeName(NativeNameType.Const, "GL_TESS_CONTROL_SUBROUTINE_UNIFORM")] + public const int GL_TESS_CONTROL_SUBROUTINE_UNIFORM = 0x92EF; + + [NativeName(NativeNameType.Const, "GL_TESS_EVALUATION_SUBROUTINE_UNIFORM")] + public const int GL_TESS_EVALUATION_SUBROUTINE_UNIFORM = 0x92F0; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_SUBROUTINE_UNIFORM")] + public const int GL_GEOMETRY_SUBROUTINE_UNIFORM = 0x92F1; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_SUBROUTINE_UNIFORM")] + public const int GL_FRAGMENT_SUBROUTINE_UNIFORM = 0x92F2; + + [NativeName(NativeNameType.Const, "GL_COMPUTE_SUBROUTINE_UNIFORM")] + public const int GL_COMPUTE_SUBROUTINE_UNIFORM = 0x92F3; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_VARYING")] + public const int GL_TRANSFORM_FEEDBACK_VARYING = 0x92F4; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_RESOURCES")] + public const int GL_ACTIVE_RESOURCES = 0x92F5; + + [NativeName(NativeNameType.Const, "GL_MAX_NAME_LENGTH")] + public const int GL_MAX_NAME_LENGTH = 0x92F6; + + [NativeName(NativeNameType.Const, "GL_MAX_NUM_ACTIVE_VARIABLES")] + public const int GL_MAX_NUM_ACTIVE_VARIABLES = 0x92F7; + + [NativeName(NativeNameType.Const, "GL_MAX_NUM_COMPATIBLE_SUBROUTINES")] + public const int GL_MAX_NUM_COMPATIBLE_SUBROUTINES = 0x92F8; + + [NativeName(NativeNameType.Const, "GL_NAME_LENGTH")] + public const int GL_NAME_LENGTH = 0x92F9; + + [NativeName(NativeNameType.Const, "GL_TYPE")] + public const int GL_TYPE = 0x92FA; + + [NativeName(NativeNameType.Const, "GL_ARRAY_SIZE")] + public const int GL_ARRAY_SIZE = 0x92FB; + + [NativeName(NativeNameType.Const, "GL_OFFSET")] + public const int GL_OFFSET = 0x92FC; + + [NativeName(NativeNameType.Const, "GL_BLOCK_INDEX")] + public const int GL_BLOCK_INDEX = 0x92FD; + + [NativeName(NativeNameType.Const, "GL_ARRAY_STRIDE")] + public const int GL_ARRAY_STRIDE = 0x92FE; + + [NativeName(NativeNameType.Const, "GL_MATRIX_STRIDE")] + public const int GL_MATRIX_STRIDE = 0x92FF; + + [NativeName(NativeNameType.Const, "GL_IS_ROW_MAJOR")] + public const int GL_IS_ROW_MAJOR = 0x9300; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_INDEX")] + public const int GL_ATOMIC_COUNTER_BUFFER_INDEX = 0x9301; + + [NativeName(NativeNameType.Const, "GL_BUFFER_BINDING")] + public const int GL_BUFFER_BINDING = 0x9302; + + [NativeName(NativeNameType.Const, "GL_BUFFER_DATA_SIZE")] + public const int GL_BUFFER_DATA_SIZE = 0x9303; + + [NativeName(NativeNameType.Const, "GL_NUM_ACTIVE_VARIABLES")] + public const int GL_NUM_ACTIVE_VARIABLES = 0x9304; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_VARIABLES")] + public const int GL_ACTIVE_VARIABLES = 0x9305; + + [NativeName(NativeNameType.Const, "GL_REFERENCED_BY_VERTEX_SHADER")] + public const int GL_REFERENCED_BY_VERTEX_SHADER = 0x9306; + + [NativeName(NativeNameType.Const, "GL_REFERENCED_BY_TESS_CONTROL_SHADER")] + public const int GL_REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307; + + [NativeName(NativeNameType.Const, "GL_REFERENCED_BY_TESS_EVALUATION_SHADER")] + public const int GL_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308; + + [NativeName(NativeNameType.Const, "GL_REFERENCED_BY_GEOMETRY_SHADER")] + public const int GL_REFERENCED_BY_GEOMETRY_SHADER = 0x9309; + + [NativeName(NativeNameType.Const, "GL_REFERENCED_BY_FRAGMENT_SHADER")] + public const int GL_REFERENCED_BY_FRAGMENT_SHADER = 0x930A; + + [NativeName(NativeNameType.Const, "GL_REFERENCED_BY_COMPUTE_SHADER")] + public const int GL_REFERENCED_BY_COMPUTE_SHADER = 0x930B; + + [NativeName(NativeNameType.Const, "GL_TOP_LEVEL_ARRAY_SIZE")] + public const int GL_TOP_LEVEL_ARRAY_SIZE = 0x930C; + + [NativeName(NativeNameType.Const, "GL_TOP_LEVEL_ARRAY_STRIDE")] + public const int GL_TOP_LEVEL_ARRAY_STRIDE = 0x930D; + + [NativeName(NativeNameType.Const, "GL_LOCATION")] + public const int GL_LOCATION = 0x930E; + + [NativeName(NativeNameType.Const, "GL_LOCATION_INDEX")] + public const int GL_LOCATION_INDEX = 0x930F; + + [NativeName(NativeNameType.Const, "GL_IS_PER_PATCH")] + public const int GL_IS_PER_PATCH = 0x92E7; + + [NativeName(NativeNameType.Const, "GL_SHADER_STORAGE_BUFFER")] + public const int GL_SHADER_STORAGE_BUFFER = 0x90D2; + + [NativeName(NativeNameType.Const, "GL_SHADER_STORAGE_BUFFER_BINDING")] + public const int GL_SHADER_STORAGE_BUFFER_BINDING = 0x90D3; + + [NativeName(NativeNameType.Const, "GL_SHADER_STORAGE_BUFFER_START")] + public const int GL_SHADER_STORAGE_BUFFER_START = 0x90D4; + + [NativeName(NativeNameType.Const, "GL_SHADER_STORAGE_BUFFER_SIZE")] + public const int GL_SHADER_STORAGE_BUFFER_SIZE = 0x90D5; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS")] + public const int GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS = 0x90D6; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS")] + public const int GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS")] + public const int GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8; + + [NativeName(NativeNameType.Const, "GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS")] + public const int GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS")] + public const int GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS = 0x90DA; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS")] + public const int GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS = 0x90DB; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS")] + public const int GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS = 0x90DC; + + [NativeName(NativeNameType.Const, "GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS")] + public const int GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD; + + [NativeName(NativeNameType.Const, "GL_MAX_SHADER_STORAGE_BLOCK_SIZE")] + public const int GL_MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE; + + [NativeName(NativeNameType.Const, "GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT")] + public const int GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF; + + [NativeName(NativeNameType.Const, "GL_SHADER_STORAGE_BARRIER_BIT")] + public const int GL_SHADER_STORAGE_BARRIER_BIT = 0x00002000; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES")] + public const int GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39; + + [NativeName(NativeNameType.Const, "GL_DEPTH_STENCIL_TEXTURE_MODE")] + public const int GL_DEPTH_STENCIL_TEXTURE_MODE = 0x90EA; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER_OFFSET")] + public const int GL_TEXTURE_BUFFER_OFFSET = 0x919D; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER_SIZE")] + public const int GL_TEXTURE_BUFFER_SIZE = 0x919E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT")] + public const int GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_VIEW_MIN_LEVEL")] + public const int GL_TEXTURE_VIEW_MIN_LEVEL = 0x82DB; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_VIEW_NUM_LEVELS")] + public const int GL_TEXTURE_VIEW_NUM_LEVELS = 0x82DC; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_VIEW_MIN_LAYER")] + public const int GL_TEXTURE_VIEW_MIN_LAYER = 0x82DD; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_VIEW_NUM_LAYERS")] + public const int GL_TEXTURE_VIEW_NUM_LAYERS = 0x82DE; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_IMMUTABLE_LEVELS")] + public const int GL_TEXTURE_IMMUTABLE_LEVELS = 0x82DF; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_BINDING")] + public const int GL_VERTEX_ATTRIB_BINDING = 0x82D4; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_RELATIVE_OFFSET")] + public const int GL_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D5; + + [NativeName(NativeNameType.Const, "GL_VERTEX_BINDING_DIVISOR")] + public const int GL_VERTEX_BINDING_DIVISOR = 0x82D6; + + [NativeName(NativeNameType.Const, "GL_VERTEX_BINDING_OFFSET")] + public const int GL_VERTEX_BINDING_OFFSET = 0x82D7; + + [NativeName(NativeNameType.Const, "GL_VERTEX_BINDING_STRIDE")] + public const int GL_VERTEX_BINDING_STRIDE = 0x82D8; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET")] + public const int GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_ATTRIB_BINDINGS")] + public const int GL_MAX_VERTEX_ATTRIB_BINDINGS = 0x82DA; + + [NativeName(NativeNameType.Const, "GL_VERTEX_BINDING_BUFFER")] + public const int GL_VERTEX_BINDING_BUFFER = 0x8F4F; + + [NativeName(NativeNameType.Const, "GL_DISPLAY_LIST")] + public const int GL_DISPLAY_LIST = 0x82E7; + + [NativeName(NativeNameType.Const, "GL_VERSION_4_4")] + public const int GL_VERSION_4_4 = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_ATTRIB_STRIDE")] + public const int GL_MAX_VERTEX_ATTRIB_STRIDE = 0x82E5; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED")] + public const int GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED = 0x8221; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER_BINDING")] + public const int GL_TEXTURE_BUFFER_BINDING = 0x8C2A; + + [NativeName(NativeNameType.Const, "GL_MAP_PERSISTENT_BIT")] + public const int GL_MAP_PERSISTENT_BIT = 0x0040; + + [NativeName(NativeNameType.Const, "GL_MAP_COHERENT_BIT")] + public const int GL_MAP_COHERENT_BIT = 0x0080; + + [NativeName(NativeNameType.Const, "GL_DYNAMIC_STORAGE_BIT")] + public const int GL_DYNAMIC_STORAGE_BIT = 0x0100; + + [NativeName(NativeNameType.Const, "GL_CLIENT_STORAGE_BIT")] + public const int GL_CLIENT_STORAGE_BIT = 0x0200; + + [NativeName(NativeNameType.Const, "GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT")] + public const int GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000; + + [NativeName(NativeNameType.Const, "GL_BUFFER_IMMUTABLE_STORAGE")] + public const int GL_BUFFER_IMMUTABLE_STORAGE = 0x821F; + + [NativeName(NativeNameType.Const, "GL_BUFFER_STORAGE_FLAGS")] + public const int GL_BUFFER_STORAGE_FLAGS = 0x8220; + + [NativeName(NativeNameType.Const, "GL_CLEAR_TEXTURE")] + public const int GL_CLEAR_TEXTURE = 0x9365; + + [NativeName(NativeNameType.Const, "GL_LOCATION_COMPONENT")] + public const int GL_LOCATION_COMPONENT = 0x934A; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_INDEX")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_INDEX = 0x934B; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE = 0x934C; + + [NativeName(NativeNameType.Const, "GL_QUERY_BUFFER")] + public const int GL_QUERY_BUFFER = 0x9192; + + [NativeName(NativeNameType.Const, "GL_QUERY_BUFFER_BARRIER_BIT")] + public const int GL_QUERY_BUFFER_BARRIER_BIT = 0x00008000; + + [NativeName(NativeNameType.Const, "GL_QUERY_BUFFER_BINDING")] + public const int GL_QUERY_BUFFER_BINDING = 0x9193; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESULT_NO_WAIT")] + public const int GL_QUERY_RESULT_NO_WAIT = 0x9194; + + [NativeName(NativeNameType.Const, "GL_MIRROR_CLAMP_TO_EDGE")] + public const int GL_MIRROR_CLAMP_TO_EDGE = 0x8743; + + [NativeName(NativeNameType.Const, "GL_VERSION_4_5")] + public const int GL_VERSION_4_5 = 1; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_LOST")] + public const int GL_CONTEXT_LOST = 0x0507; + + [NativeName(NativeNameType.Const, "GL_NEGATIVE_ONE_TO_ONE")] + public const int GL_NEGATIVE_ONE_TO_ONE = 0x935E; + + [NativeName(NativeNameType.Const, "GL_ZERO_TO_ONE")] + public const int GL_ZERO_TO_ONE = 0x935F; + + [NativeName(NativeNameType.Const, "GL_CLIP_ORIGIN")] + public const int GL_CLIP_ORIGIN = 0x935C; + + [NativeName(NativeNameType.Const, "GL_CLIP_DEPTH_MODE")] + public const int GL_CLIP_DEPTH_MODE = 0x935D; + + [NativeName(NativeNameType.Const, "GL_QUERY_WAIT_INVERTED")] + public const int GL_QUERY_WAIT_INVERTED = 0x8E17; + + [NativeName(NativeNameType.Const, "GL_QUERY_NO_WAIT_INVERTED")] + public const int GL_QUERY_NO_WAIT_INVERTED = 0x8E18; + + [NativeName(NativeNameType.Const, "GL_QUERY_BY_REGION_WAIT_INVERTED")] + public const int GL_QUERY_BY_REGION_WAIT_INVERTED = 0x8E19; + + [NativeName(NativeNameType.Const, "GL_QUERY_BY_REGION_NO_WAIT_INVERTED")] + public const int GL_QUERY_BY_REGION_NO_WAIT_INVERTED = 0x8E1A; + + [NativeName(NativeNameType.Const, "GL_MAX_CULL_DISTANCES")] + public const int GL_MAX_CULL_DISTANCES = 0x82F9; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES")] + public const int GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES = 0x82FA; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_TARGET")] + public const int GL_TEXTURE_TARGET = 0x1006; + + [NativeName(NativeNameType.Const, "GL_QUERY_TARGET")] + public const int GL_QUERY_TARGET = 0x82EA; + + [NativeName(NativeNameType.Const, "GL_GUILTY_CONTEXT_RESET")] + public const int GL_GUILTY_CONTEXT_RESET = 0x8253; + + [NativeName(NativeNameType.Const, "GL_INNOCENT_CONTEXT_RESET")] + public const int GL_INNOCENT_CONTEXT_RESET = 0x8254; + + [NativeName(NativeNameType.Const, "GL_UNKNOWN_CONTEXT_RESET")] + public const int GL_UNKNOWN_CONTEXT_RESET = 0x8255; + + [NativeName(NativeNameType.Const, "GL_RESET_NOTIFICATION_STRATEGY")] + public const int GL_RESET_NOTIFICATION_STRATEGY = 0x8256; + + [NativeName(NativeNameType.Const, "GL_LOSE_CONTEXT_ON_RESET")] + public const int GL_LOSE_CONTEXT_ON_RESET = 0x8252; + + [NativeName(NativeNameType.Const, "GL_NO_RESET_NOTIFICATION")] + public const int GL_NO_RESET_NOTIFICATION = 0x8261; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT")] + public const int GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE")] + public const int GL_COLOR_TABLE = 0x80D0; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_COLOR_TABLE")] + public const int GL_POST_CONVOLUTION_COLOR_TABLE = 0x80D1; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_COLOR_TABLE")] + public const int GL_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2; + + [NativeName(NativeNameType.Const, "GL_PROXY_COLOR_TABLE")] + public const int GL_PROXY_COLOR_TABLE = 0x80D3; + + [NativeName(NativeNameType.Const, "GL_PROXY_POST_CONVOLUTION_COLOR_TABLE")] + public const int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4; + + [NativeName(NativeNameType.Const, "GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE")] + public const int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_1D")] + public const int GL_CONVOLUTION_1D = 0x8010; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_2D")] + public const int GL_CONVOLUTION_2D = 0x8011; + + [NativeName(NativeNameType.Const, "GL_SEPARABLE_2D")] + public const int GL_SEPARABLE_2D = 0x8012; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM")] + public const int GL_HISTOGRAM = 0x8024; + + [NativeName(NativeNameType.Const, "GL_PROXY_HISTOGRAM")] + public const int GL_PROXY_HISTOGRAM = 0x8025; + + [NativeName(NativeNameType.Const, "GL_MINMAX")] + public const int GL_MINMAX = 0x802E; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_RELEASE_BEHAVIOR")] + public const int GL_CONTEXT_RELEASE_BEHAVIOR = 0x82FB; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH")] + public const int GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82FC; + + [NativeName(NativeNameType.Const, "GL_VERSION_4_6")] + public const int GL_VERSION_4_6 = 1; + + [NativeName(NativeNameType.Const, "GL_SHADER_BINARY_FORMAT_SPIR_V")] + public const int GL_SHADER_BINARY_FORMAT_SPIR_V = 0x9551; + + [NativeName(NativeNameType.Const, "GL_SPIR_V_BINARY")] + public const int GL_SPIR_V_BINARY = 0x9552; + + [NativeName(NativeNameType.Const, "GL_PARAMETER_BUFFER")] + public const int GL_PARAMETER_BUFFER = 0x80EE; + + [NativeName(NativeNameType.Const, "GL_PARAMETER_BUFFER_BINDING")] + public const int GL_PARAMETER_BUFFER_BINDING = 0x80EF; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_FLAG_NO_ERROR_BIT")] + public const int GL_CONTEXT_FLAG_NO_ERROR_BIT = 0x00000008; + + [NativeName(NativeNameType.Const, "GL_VERTICES_SUBMITTED")] + public const int GL_VERTICES_SUBMITTED = 0x82EE; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVES_SUBMITTED")] + public const int GL_PRIMITIVES_SUBMITTED = 0x82EF; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_INVOCATIONS")] + public const int GL_VERTEX_SHADER_INVOCATIONS = 0x82F0; + + [NativeName(NativeNameType.Const, "GL_TESS_CONTROL_SHADER_PATCHES")] + public const int GL_TESS_CONTROL_SHADER_PATCHES = 0x82F1; + + [NativeName(NativeNameType.Const, "GL_TESS_EVALUATION_SHADER_INVOCATIONS")] + public const int GL_TESS_EVALUATION_SHADER_INVOCATIONS = 0x82F2; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED")] + public const int GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED = 0x82F3; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_SHADER_INVOCATIONS")] + public const int GL_FRAGMENT_SHADER_INVOCATIONS = 0x82F4; + + [NativeName(NativeNameType.Const, "GL_COMPUTE_SHADER_INVOCATIONS")] + public const int GL_COMPUTE_SHADER_INVOCATIONS = 0x82F5; + + [NativeName(NativeNameType.Const, "GL_CLIPPING_INPUT_PRIMITIVES")] + public const int GL_CLIPPING_INPUT_PRIMITIVES = 0x82F6; + + [NativeName(NativeNameType.Const, "GL_CLIPPING_OUTPUT_PRIMITIVES")] + public const int GL_CLIPPING_OUTPUT_PRIMITIVES = 0x82F7; + + [NativeName(NativeNameType.Const, "GL_POLYGON_OFFSET_CLAMP")] + public const int GL_POLYGON_OFFSET_CLAMP = 0x8E1B; + + [NativeName(NativeNameType.Const, "GL_SPIR_V_EXTENSIONS")] + public const int GL_SPIR_V_EXTENSIONS = 0x9553; + + [NativeName(NativeNameType.Const, "GL_NUM_SPIR_V_EXTENSIONS")] + public const int GL_NUM_SPIR_V_EXTENSIONS = 0x9554; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MAX_ANISOTROPY")] + public const int GL_TEXTURE_MAX_ANISOTROPY = 0x84FE; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_MAX_ANISOTROPY")] + public const int GL_MAX_TEXTURE_MAX_ANISOTROPY = 0x84FF; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_OVERFLOW")] + public const int GL_TRANSFORM_FEEDBACK_OVERFLOW = 0x82EC; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW")] + public const int GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW = 0x82ED; + + [NativeName(NativeNameType.Const, "GL_ARB_ES2_compatibility")] + public const int GL_ARB_ES2_COMPATIBILITY = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_ES3_1_compatibility")] + public const int GL_ARB_ES3_1_COMPATIBILITY = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_ES3_2_compatibility")] + public const int GL_ARB_ES3_2_COMPATIBILITY = 1; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVE_BOUNDING_BOX_ARB")] + public const int GL_PRIMITIVE_BOUNDING_BOX_ARB = 0x92BE; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB")] + public const int GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB = 0x9381; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB")] + public const int GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB = 0x9382; + + [NativeName(NativeNameType.Const, "GL_ARB_ES3_compatibility")] + public const int GL_ARB_ES3_COMPATIBILITY = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_arrays_of_arrays")] + public const int GL_ARB_ARRAYS_OF_ARRAYS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_base_instance")] + public const int GL_ARB_BASE_INSTANCE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_bindless_texture")] + public const int GL_ARB_BINDLESS_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT64_ARB")] + public const int GL_UNSIGNED_INT64_ARB = 0x140F; + + [NativeName(NativeNameType.Const, "GL_ARB_blend_func_extended")] + public const int GL_ARB_BLEND_FUNC_EXTENDED = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_buffer_storage")] + public const int GL_ARB_BUFFER_STORAGE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_cl_event")] + public const int GL_ARB_CL_EVENT = 1; + + [NativeName(NativeNameType.Const, "GL_SYNC_CL_EVENT_ARB")] + public const int GL_SYNC_CL_EVENT_ARB = 0x8240; + + [NativeName(NativeNameType.Const, "GL_SYNC_CL_EVENT_COMPLETE_ARB")] + public const int GL_SYNC_CL_EVENT_COMPLETE_ARB = 0x8241; + + [NativeName(NativeNameType.Const, "GL_ARB_clear_buffer_object")] + public const int GL_ARB_CLEAR_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_clear_texture")] + public const int GL_ARB_CLEAR_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_clip_control")] + public const int GL_ARB_CLIP_CONTROL = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_color_buffer_float")] + public const int GL_ARB_COLOR_BUFFER_FLOAT = 1; + + [NativeName(NativeNameType.Const, "GL_RGBA_FLOAT_MODE_ARB")] + public const int GL_RGBA_FLOAT_MODE_ARB = 0x8820; + + [NativeName(NativeNameType.Const, "GL_CLAMP_VERTEX_COLOR_ARB")] + public const int GL_CLAMP_VERTEX_COLOR_ARB = 0x891A; + + [NativeName(NativeNameType.Const, "GL_CLAMP_FRAGMENT_COLOR_ARB")] + public const int GL_CLAMP_FRAGMENT_COLOR_ARB = 0x891B; + + [NativeName(NativeNameType.Const, "GL_CLAMP_READ_COLOR_ARB")] + public const int GL_CLAMP_READ_COLOR_ARB = 0x891C; + + [NativeName(NativeNameType.Const, "GL_FIXED_ONLY_ARB")] + public const int GL_FIXED_ONLY_ARB = 0x891D; + + [NativeName(NativeNameType.Const, "GL_ARB_compatibility")] + public const int GL_ARB_COMPATIBILITY = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_compressed_texture_pixel_storage")] + public const int GL_ARB_COMPRESSED_TEXTURE_PIXEL_STORAGE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_compute_shader")] + public const int GL_ARB_COMPUTE_SHADER = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_compute_variable_group_size")] + public const int GL_ARB_COMPUTE_VARIABLE_GROUP_SIZE = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB")] + public const int GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB = 0x9344; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB")] + public const int GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB = 0x90EB; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB")] + public const int GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB = 0x9345; + + [NativeName(NativeNameType.Const, "GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB")] + public const int GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB = 0x91BF; + + [NativeName(NativeNameType.Const, "GL_ARB_conditional_render_inverted")] + public const int GL_ARB_CONDITIONAL_RENDER_INVERTED = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_conservative_depth")] + public const int GL_ARB_CONSERVATIVE_DEPTH = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_copy_buffer")] + public const int GL_ARB_COPY_BUFFER = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_copy_image")] + public const int GL_ARB_COPY_IMAGE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_cull_distance")] + public const int GL_ARB_CULL_DISTANCE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_debug_output")] + public const int GL_ARB_DEBUG_OUTPUT = 1; + + [NativeName(NativeNameType.Const, "GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB")] + public const int GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB = 0x8242; + + [NativeName(NativeNameType.Const, "GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB")] + public const int GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CALLBACK_FUNCTION_ARB")] + public const int GL_DEBUG_CALLBACK_FUNCTION_ARB = 0x8244; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CALLBACK_USER_PARAM_ARB")] + public const int GL_DEBUG_CALLBACK_USER_PARAM_ARB = 0x8245; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_API_ARB")] + public const int GL_DEBUG_SOURCE_API_ARB = 0x8246; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB")] + public const int GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB = 0x8247; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_SHADER_COMPILER_ARB")] + public const int GL_DEBUG_SOURCE_SHADER_COMPILER_ARB = 0x8248; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_THIRD_PARTY_ARB")] + public const int GL_DEBUG_SOURCE_THIRD_PARTY_ARB = 0x8249; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_APPLICATION_ARB")] + public const int GL_DEBUG_SOURCE_APPLICATION_ARB = 0x824A; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SOURCE_OTHER_ARB")] + public const int GL_DEBUG_SOURCE_OTHER_ARB = 0x824B; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_ERROR_ARB")] + public const int GL_DEBUG_TYPE_ERROR_ARB = 0x824C; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB")] + public const int GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB = 0x824D; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB")] + public const int GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB = 0x824E; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_PORTABILITY_ARB")] + public const int GL_DEBUG_TYPE_PORTABILITY_ARB = 0x824F; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_PERFORMANCE_ARB")] + public const int GL_DEBUG_TYPE_PERFORMANCE_ARB = 0x8250; + + [NativeName(NativeNameType.Const, "GL_DEBUG_TYPE_OTHER_ARB")] + public const int GL_DEBUG_TYPE_OTHER_ARB = 0x8251; + + [NativeName(NativeNameType.Const, "GL_MAX_DEBUG_MESSAGE_LENGTH_ARB")] + public const int GL_MAX_DEBUG_MESSAGE_LENGTH_ARB = 0x9143; + + [NativeName(NativeNameType.Const, "GL_MAX_DEBUG_LOGGED_MESSAGES_ARB")] + public const int GL_MAX_DEBUG_LOGGED_MESSAGES_ARB = 0x9144; + + [NativeName(NativeNameType.Const, "GL_DEBUG_LOGGED_MESSAGES_ARB")] + public const int GL_DEBUG_LOGGED_MESSAGES_ARB = 0x9145; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SEVERITY_HIGH_ARB")] + public const int GL_DEBUG_SEVERITY_HIGH_ARB = 0x9146; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SEVERITY_MEDIUM_ARB")] + public const int GL_DEBUG_SEVERITY_MEDIUM_ARB = 0x9147; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SEVERITY_LOW_ARB")] + public const int GL_DEBUG_SEVERITY_LOW_ARB = 0x9148; + + [NativeName(NativeNameType.Const, "GL_ARB_depth_buffer_float")] + public const int GL_ARB_DEPTH_BUFFER_FLOAT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_depth_clamp")] + public const int GL_ARB_DEPTH_CLAMP = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_depth_texture")] + public const int GL_ARB_DEPTH_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT16_ARB")] + public const int GL_DEPTH_COMPONENT16_ARB = 0x81A5; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT24_ARB")] + public const int GL_DEPTH_COMPONENT24_ARB = 0x81A6; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT32_ARB")] + public const int GL_DEPTH_COMPONENT32_ARB = 0x81A7; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_DEPTH_SIZE_ARB")] + public const int GL_TEXTURE_DEPTH_SIZE_ARB = 0x884A; + + [NativeName(NativeNameType.Const, "GL_DEPTH_TEXTURE_MODE_ARB")] + public const int GL_DEPTH_TEXTURE_MODE_ARB = 0x884B; + + [NativeName(NativeNameType.Const, "GL_ARB_derivative_control")] + public const int GL_ARB_DERIVATIVE_CONTROL = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_direct_state_access")] + public const int GL_ARB_DIRECT_STATE_ACCESS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_draw_buffers")] + public const int GL_ARB_DRAW_BUFFERS = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_DRAW_BUFFERS_ARB")] + public const int GL_MAX_DRAW_BUFFERS_ARB = 0x8824; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER0_ARB")] + public const int GL_DRAW_BUFFER0_ARB = 0x8825; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER1_ARB")] + public const int GL_DRAW_BUFFER1_ARB = 0x8826; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER2_ARB")] + public const int GL_DRAW_BUFFER2_ARB = 0x8827; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER3_ARB")] + public const int GL_DRAW_BUFFER3_ARB = 0x8828; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER4_ARB")] + public const int GL_DRAW_BUFFER4_ARB = 0x8829; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER5_ARB")] + public const int GL_DRAW_BUFFER5_ARB = 0x882A; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER6_ARB")] + public const int GL_DRAW_BUFFER6_ARB = 0x882B; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER7_ARB")] + public const int GL_DRAW_BUFFER7_ARB = 0x882C; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER8_ARB")] + public const int GL_DRAW_BUFFER8_ARB = 0x882D; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER9_ARB")] + public const int GL_DRAW_BUFFER9_ARB = 0x882E; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER10_ARB")] + public const int GL_DRAW_BUFFER10_ARB = 0x882F; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER11_ARB")] + public const int GL_DRAW_BUFFER11_ARB = 0x8830; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER12_ARB")] + public const int GL_DRAW_BUFFER12_ARB = 0x8831; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER13_ARB")] + public const int GL_DRAW_BUFFER13_ARB = 0x8832; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER14_ARB")] + public const int GL_DRAW_BUFFER14_ARB = 0x8833; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER15_ARB")] + public const int GL_DRAW_BUFFER15_ARB = 0x8834; + + [NativeName(NativeNameType.Const, "GL_ARB_draw_buffers_blend")] + public const int GL_ARB_DRAW_BUFFERS_BLEND = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_draw_elements_base_vertex")] + public const int GL_ARB_DRAW_ELEMENTS_BASE_VERTEX = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_draw_indirect")] + public const int GL_ARB_DRAW_INDIRECT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_draw_instanced")] + public const int GL_ARB_DRAW_INSTANCED = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_enhanced_layouts")] + public const int GL_ARB_ENHANCED_LAYOUTS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_explicit_attrib_location")] + public const int GL_ARB_EXPLICIT_ATTRIB_LOCATION = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_explicit_uniform_location")] + public const int GL_ARB_EXPLICIT_UNIFORM_LOCATION = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_fragment_coord_conventions")] + public const int GL_ARB_FRAGMENT_COORD_CONVENTIONS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_fragment_layer_viewport")] + public const int GL_ARB_FRAGMENT_LAYER_VIEWPORT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_fragment_program")] + public const int GL_ARB_FRAGMENT_PROGRAM = 1; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_PROGRAM_ARB")] + public const int GL_FRAGMENT_PROGRAM_ARB = 0x8804; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_FORMAT_ASCII_ARB")] + public const int GL_PROGRAM_FORMAT_ASCII_ARB = 0x8875; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_LENGTH_ARB")] + public const int GL_PROGRAM_LENGTH_ARB = 0x8627; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_FORMAT_ARB")] + public const int GL_PROGRAM_FORMAT_ARB = 0x8876; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_BINDING_ARB")] + public const int GL_PROGRAM_BINDING_ARB = 0x8677; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_INSTRUCTIONS_ARB")] + public const int GL_PROGRAM_INSTRUCTIONS_ARB = 0x88A0; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_INSTRUCTIONS_ARB")] + public const int GL_MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88A1; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB")] + public const int GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A2; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB")] + public const int GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A3; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_TEMPORARIES_ARB")] + public const int GL_PROGRAM_TEMPORARIES_ARB = 0x88A4; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_TEMPORARIES_ARB")] + public const int GL_MAX_PROGRAM_TEMPORARIES_ARB = 0x88A5; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_NATIVE_TEMPORARIES_ARB")] + public const int GL_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A6; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB")] + public const int GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A7; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_PARAMETERS_ARB")] + public const int GL_PROGRAM_PARAMETERS_ARB = 0x88A8; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_PARAMETERS_ARB")] + public const int GL_MAX_PROGRAM_PARAMETERS_ARB = 0x88A9; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_NATIVE_PARAMETERS_ARB")] + public const int GL_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AA; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB")] + public const int GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AB; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_ATTRIBS_ARB")] + public const int GL_PROGRAM_ATTRIBS_ARB = 0x88AC; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_ATTRIBS_ARB")] + public const int GL_MAX_PROGRAM_ATTRIBS_ARB = 0x88AD; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_NATIVE_ATTRIBS_ARB")] + public const int GL_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AE; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB")] + public const int GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AF; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB")] + public const int GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_ENV_PARAMETERS_ARB")] + public const int GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB")] + public const int GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_ALU_INSTRUCTIONS_ARB")] + public const int GL_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x8805; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_TEX_INSTRUCTIONS_ARB")] + public const int GL_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x8806; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_TEX_INDIRECTIONS_ARB")] + public const int GL_PROGRAM_TEX_INDIRECTIONS_ARB = 0x8807; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB")] + public const int GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x8808; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB")] + public const int GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x8809; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB")] + public const int GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x880A; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB")] + public const int GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x880B; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB")] + public const int GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x880C; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB")] + public const int GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 0x880D; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB")] + public const int GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x880E; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB")] + public const int GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x880F; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB")] + public const int GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x8810; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_STRING_ARB")] + public const int GL_PROGRAM_STRING_ARB = 0x8628; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_ERROR_POSITION_ARB")] + public const int GL_PROGRAM_ERROR_POSITION_ARB = 0x864B; + + [NativeName(NativeNameType.Const, "GL_CURRENT_MATRIX_ARB")] + public const int GL_CURRENT_MATRIX_ARB = 0x8641; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_CURRENT_MATRIX_ARB")] + public const int GL_TRANSPOSE_CURRENT_MATRIX_ARB = 0x88B7; + + [NativeName(NativeNameType.Const, "GL_CURRENT_MATRIX_STACK_DEPTH_ARB")] + public const int GL_CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_MATRICES_ARB")] + public const int GL_MAX_PROGRAM_MATRICES_ARB = 0x862F; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB")] + public const int GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_COORDS_ARB")] + public const int GL_MAX_TEXTURE_COORDS_ARB = 0x8871; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_IMAGE_UNITS_ARB")] + public const int GL_MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_ERROR_STRING_ARB")] + public const int GL_PROGRAM_ERROR_STRING_ARB = 0x8874; + + [NativeName(NativeNameType.Const, "GL_MATRIX0_ARB")] + public const int GL_MATRIX0_ARB = 0x88C0; + + [NativeName(NativeNameType.Const, "GL_MATRIX1_ARB")] + public const int GL_MATRIX1_ARB = 0x88C1; + + [NativeName(NativeNameType.Const, "GL_MATRIX2_ARB")] + public const int GL_MATRIX2_ARB = 0x88C2; + + [NativeName(NativeNameType.Const, "GL_MATRIX3_ARB")] + public const int GL_MATRIX3_ARB = 0x88C3; + + [NativeName(NativeNameType.Const, "GL_MATRIX4_ARB")] + public const int GL_MATRIX4_ARB = 0x88C4; + + [NativeName(NativeNameType.Const, "GL_MATRIX5_ARB")] + public const int GL_MATRIX5_ARB = 0x88C5; + + [NativeName(NativeNameType.Const, "GL_MATRIX6_ARB")] + public const int GL_MATRIX6_ARB = 0x88C6; + + [NativeName(NativeNameType.Const, "GL_MATRIX7_ARB")] + public const int GL_MATRIX7_ARB = 0x88C7; + + [NativeName(NativeNameType.Const, "GL_MATRIX8_ARB")] + public const int GL_MATRIX8_ARB = 0x88C8; + + [NativeName(NativeNameType.Const, "GL_MATRIX9_ARB")] + public const int GL_MATRIX9_ARB = 0x88C9; + + [NativeName(NativeNameType.Const, "GL_MATRIX10_ARB")] + public const int GL_MATRIX10_ARB = 0x88CA; + + [NativeName(NativeNameType.Const, "GL_MATRIX11_ARB")] + public const int GL_MATRIX11_ARB = 0x88CB; + + [NativeName(NativeNameType.Const, "GL_MATRIX12_ARB")] + public const int GL_MATRIX12_ARB = 0x88CC; + + [NativeName(NativeNameType.Const, "GL_MATRIX13_ARB")] + public const int GL_MATRIX13_ARB = 0x88CD; + + [NativeName(NativeNameType.Const, "GL_MATRIX14_ARB")] + public const int GL_MATRIX14_ARB = 0x88CE; + + [NativeName(NativeNameType.Const, "GL_MATRIX15_ARB")] + public const int GL_MATRIX15_ARB = 0x88CF; + + [NativeName(NativeNameType.Const, "GL_MATRIX16_ARB")] + public const int GL_MATRIX16_ARB = 0x88D0; + + [NativeName(NativeNameType.Const, "GL_MATRIX17_ARB")] + public const int GL_MATRIX17_ARB = 0x88D1; + + [NativeName(NativeNameType.Const, "GL_MATRIX18_ARB")] + public const int GL_MATRIX18_ARB = 0x88D2; + + [NativeName(NativeNameType.Const, "GL_MATRIX19_ARB")] + public const int GL_MATRIX19_ARB = 0x88D3; + + [NativeName(NativeNameType.Const, "GL_MATRIX20_ARB")] + public const int GL_MATRIX20_ARB = 0x88D4; + + [NativeName(NativeNameType.Const, "GL_MATRIX21_ARB")] + public const int GL_MATRIX21_ARB = 0x88D5; + + [NativeName(NativeNameType.Const, "GL_MATRIX22_ARB")] + public const int GL_MATRIX22_ARB = 0x88D6; + + [NativeName(NativeNameType.Const, "GL_MATRIX23_ARB")] + public const int GL_MATRIX23_ARB = 0x88D7; + + [NativeName(NativeNameType.Const, "GL_MATRIX24_ARB")] + public const int GL_MATRIX24_ARB = 0x88D8; + + [NativeName(NativeNameType.Const, "GL_MATRIX25_ARB")] + public const int GL_MATRIX25_ARB = 0x88D9; + + [NativeName(NativeNameType.Const, "GL_MATRIX26_ARB")] + public const int GL_MATRIX26_ARB = 0x88DA; + + [NativeName(NativeNameType.Const, "GL_MATRIX27_ARB")] + public const int GL_MATRIX27_ARB = 0x88DB; + + [NativeName(NativeNameType.Const, "GL_MATRIX28_ARB")] + public const int GL_MATRIX28_ARB = 0x88DC; + + [NativeName(NativeNameType.Const, "GL_MATRIX29_ARB")] + public const int GL_MATRIX29_ARB = 0x88DD; + + [NativeName(NativeNameType.Const, "GL_MATRIX30_ARB")] + public const int GL_MATRIX30_ARB = 0x88DE; + + [NativeName(NativeNameType.Const, "GL_MATRIX31_ARB")] + public const int GL_MATRIX31_ARB = 0x88DF; + + [NativeName(NativeNameType.Const, "GL_ARB_fragment_program_shadow")] + public const int GL_ARB_FRAGMENT_PROGRAM_SHADOW = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_fragment_shader")] + public const int GL_ARB_FRAGMENT_SHADER = 1; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_SHADER_ARB")] + public const int GL_FRAGMENT_SHADER_ARB = 0x8B30; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB")] + public const int GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 0x8B49; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB")] + public const int GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = 0x8B8B; + + [NativeName(NativeNameType.Const, "GL_ARB_fragment_shader_interlock")] + public const int GL_ARB_FRAGMENT_SHADER_INTERLOCK = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_framebuffer_no_attachments")] + public const int GL_ARB_FRAMEBUFFER_NO_ATTACHMENTS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_framebuffer_object")] + public const int GL_ARB_FRAMEBUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_framebuffer_sRGB")] + public const int GL_ARB_FRAMEBUFFER_SRGB = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_geometry_shader4")] + public const int GL_ARB_GEOMETRY_SHADER4 = 1; + + [NativeName(NativeNameType.Const, "GL_LINES_ADJACENCY_ARB")] + public const int GL_LINES_ADJACENCY_ARB = 0x000A; + + [NativeName(NativeNameType.Const, "GL_LINE_STRIP_ADJACENCY_ARB")] + public const int GL_LINE_STRIP_ADJACENCY_ARB = 0x000B; + + [NativeName(NativeNameType.Const, "GL_TRIANGLES_ADJACENCY_ARB")] + public const int GL_TRIANGLES_ADJACENCY_ARB = 0x000C; + + [NativeName(NativeNameType.Const, "GL_TRIANGLE_STRIP_ADJACENCY_ARB")] + public const int GL_TRIANGLE_STRIP_ADJACENCY_ARB = 0x000D; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_POINT_SIZE_ARB")] + public const int GL_PROGRAM_POINT_SIZE_ARB = 0x8642; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB")] + public const int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB = 0x8C29; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB")] + public const int GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB = 0x8DA7; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB")] + public const int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB = 0x8DA8; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB")] + public const int GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB = 0x8DA9; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_SHADER_ARB")] + public const int GL_GEOMETRY_SHADER_ARB = 0x8DD9; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_VERTICES_OUT_ARB")] + public const int GL_GEOMETRY_VERTICES_OUT_ARB = 0x8DDA; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_INPUT_TYPE_ARB")] + public const int GL_GEOMETRY_INPUT_TYPE_ARB = 0x8DDB; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_OUTPUT_TYPE_ARB")] + public const int GL_GEOMETRY_OUTPUT_TYPE_ARB = 0x8DDC; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB")] + public const int GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB = 0x8DDD; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_VARYING_COMPONENTS_ARB")] + public const int GL_MAX_VERTEX_VARYING_COMPONENTS_ARB = 0x8DDE; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB")] + public const int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB = 0x8DDF; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB")] + public const int GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB = 0x8DE0; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB")] + public const int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB = 0x8DE1; + + [NativeName(NativeNameType.Const, "GL_ARB_get_program_binary")] + public const int GL_ARB_GET_PROGRAM_BINARY = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_get_texture_sub_image")] + public const int GL_ARB_GET_TEXTURE_SUB_IMAGE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_gl_spirv")] + public const int GL_ARB_GL_SPIRV = 1; + + [NativeName(NativeNameType.Const, "GL_SHADER_BINARY_FORMAT_SPIR_V_ARB")] + public const int GL_SHADER_BINARY_FORMAT_SPIR_V_ARB = 0x9551; + + [NativeName(NativeNameType.Const, "GL_SPIR_V_BINARY_ARB")] + public const int GL_SPIR_V_BINARY_ARB = 0x9552; + + [NativeName(NativeNameType.Const, "GL_ARB_gpu_shader5")] + public const int GL_ARB_GPU_SHADER5 = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_gpu_shader_fp64")] + public const int GL_ARB_GPU_SHADER_FP64 = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_gpu_shader_int64")] + public const int GL_ARB_GPU_SHADER_INT64 = 1; + + [NativeName(NativeNameType.Const, "GL_INT64_ARB")] + public const int GL_INT64_ARB = 0x140E; + + [NativeName(NativeNameType.Const, "GL_INT64_VEC2_ARB")] + public const int GL_INT64_VEC2_ARB = 0x8FE9; + + [NativeName(NativeNameType.Const, "GL_INT64_VEC3_ARB")] + public const int GL_INT64_VEC3_ARB = 0x8FEA; + + [NativeName(NativeNameType.Const, "GL_INT64_VEC4_ARB")] + public const int GL_INT64_VEC4_ARB = 0x8FEB; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT64_VEC2_ARB")] + public const int GL_UNSIGNED_INT64_VEC2_ARB = 0x8FF5; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT64_VEC3_ARB")] + public const int GL_UNSIGNED_INT64_VEC3_ARB = 0x8FF6; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT64_VEC4_ARB")] + public const int GL_UNSIGNED_INT64_VEC4_ARB = 0x8FF7; + + [NativeName(NativeNameType.Const, "GL_ARB_half_float_pixel")] + public const int GL_ARB_HALF_FLOAT_PIXEL = 1; + + [NativeName(NativeNameType.Const, "GL_HALF_FLOAT_ARB")] + public const int GL_HALF_FLOAT_ARB = 0x140B; + + [NativeName(NativeNameType.Const, "GL_ARB_half_float_vertex")] + public const int GL_ARB_HALF_FLOAT_VERTEX = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_imaging")] + public const int GL_ARB_IMAGING = 1; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_BORDER_MODE")] + public const int GL_CONVOLUTION_BORDER_MODE = 0x8013; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_FILTER_SCALE")] + public const int GL_CONVOLUTION_FILTER_SCALE = 0x8014; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_FILTER_BIAS")] + public const int GL_CONVOLUTION_FILTER_BIAS = 0x8015; + + [NativeName(NativeNameType.Const, "GL_REDUCE")] + public const int GL_REDUCE = 0x8016; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_FORMAT")] + public const int GL_CONVOLUTION_FORMAT = 0x8017; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_WIDTH")] + public const int GL_CONVOLUTION_WIDTH = 0x8018; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_HEIGHT")] + public const int GL_CONVOLUTION_HEIGHT = 0x8019; + + [NativeName(NativeNameType.Const, "GL_MAX_CONVOLUTION_WIDTH")] + public const int GL_MAX_CONVOLUTION_WIDTH = 0x801A; + + [NativeName(NativeNameType.Const, "GL_MAX_CONVOLUTION_HEIGHT")] + public const int GL_MAX_CONVOLUTION_HEIGHT = 0x801B; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_RED_SCALE")] + public const int GL_POST_CONVOLUTION_RED_SCALE = 0x801C; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_GREEN_SCALE")] + public const int GL_POST_CONVOLUTION_GREEN_SCALE = 0x801D; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_BLUE_SCALE")] + public const int GL_POST_CONVOLUTION_BLUE_SCALE = 0x801E; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_ALPHA_SCALE")] + public const int GL_POST_CONVOLUTION_ALPHA_SCALE = 0x801F; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_RED_BIAS")] + public const int GL_POST_CONVOLUTION_RED_BIAS = 0x8020; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_GREEN_BIAS")] + public const int GL_POST_CONVOLUTION_GREEN_BIAS = 0x8021; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_BLUE_BIAS")] + public const int GL_POST_CONVOLUTION_BLUE_BIAS = 0x8022; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_ALPHA_BIAS")] + public const int GL_POST_CONVOLUTION_ALPHA_BIAS = 0x8023; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_WIDTH")] + public const int GL_HISTOGRAM_WIDTH = 0x8026; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_FORMAT")] + public const int GL_HISTOGRAM_FORMAT = 0x8027; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_RED_SIZE")] + public const int GL_HISTOGRAM_RED_SIZE = 0x8028; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_GREEN_SIZE")] + public const int GL_HISTOGRAM_GREEN_SIZE = 0x8029; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_BLUE_SIZE")] + public const int GL_HISTOGRAM_BLUE_SIZE = 0x802A; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_ALPHA_SIZE")] + public const int GL_HISTOGRAM_ALPHA_SIZE = 0x802B; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_LUMINANCE_SIZE")] + public const int GL_HISTOGRAM_LUMINANCE_SIZE = 0x802C; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_SINK")] + public const int GL_HISTOGRAM_SINK = 0x802D; + + [NativeName(NativeNameType.Const, "GL_MINMAX_FORMAT")] + public const int GL_MINMAX_FORMAT = 0x802F; + + [NativeName(NativeNameType.Const, "GL_MINMAX_SINK")] + public const int GL_MINMAX_SINK = 0x8030; + + [NativeName(NativeNameType.Const, "GL_TABLE_TOO_LARGE")] + public const int GL_TABLE_TOO_LARGE = 0x8031; + + [NativeName(NativeNameType.Const, "GL_COLOR_MATRIX")] + public const int GL_COLOR_MATRIX = 0x80B1; + + [NativeName(NativeNameType.Const, "GL_COLOR_MATRIX_STACK_DEPTH")] + public const int GL_COLOR_MATRIX_STACK_DEPTH = 0x80B2; + + [NativeName(NativeNameType.Const, "GL_MAX_COLOR_MATRIX_STACK_DEPTH")] + public const int GL_MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_RED_SCALE")] + public const int GL_POST_COLOR_MATRIX_RED_SCALE = 0x80B4; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_GREEN_SCALE")] + public const int GL_POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_BLUE_SCALE")] + public const int GL_POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_ALPHA_SCALE")] + public const int GL_POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_RED_BIAS")] + public const int GL_POST_COLOR_MATRIX_RED_BIAS = 0x80B8; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_GREEN_BIAS")] + public const int GL_POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_BLUE_BIAS")] + public const int GL_POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_ALPHA_BIAS")] + public const int GL_POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_SCALE")] + public const int GL_COLOR_TABLE_SCALE = 0x80D6; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_BIAS")] + public const int GL_COLOR_TABLE_BIAS = 0x80D7; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_FORMAT")] + public const int GL_COLOR_TABLE_FORMAT = 0x80D8; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_WIDTH")] + public const int GL_COLOR_TABLE_WIDTH = 0x80D9; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_RED_SIZE")] + public const int GL_COLOR_TABLE_RED_SIZE = 0x80DA; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_GREEN_SIZE")] + public const int GL_COLOR_TABLE_GREEN_SIZE = 0x80DB; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_BLUE_SIZE")] + public const int GL_COLOR_TABLE_BLUE_SIZE = 0x80DC; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_ALPHA_SIZE")] + public const int GL_COLOR_TABLE_ALPHA_SIZE = 0x80DD; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_LUMINANCE_SIZE")] + public const int GL_COLOR_TABLE_LUMINANCE_SIZE = 0x80DE; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_INTENSITY_SIZE")] + public const int GL_COLOR_TABLE_INTENSITY_SIZE = 0x80DF; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_BORDER")] + public const int GL_CONSTANT_BORDER = 0x8151; + + [NativeName(NativeNameType.Const, "GL_REPLICATE_BORDER")] + public const int GL_REPLICATE_BORDER = 0x8153; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_BORDER_COLOR")] + public const int GL_CONVOLUTION_BORDER_COLOR = 0x8154; + + [NativeName(NativeNameType.Const, "GL_ARB_indirect_parameters")] + public const int GL_ARB_INDIRECT_PARAMETERS = 1; + + [NativeName(NativeNameType.Const, "GL_PARAMETER_BUFFER_ARB")] + public const int GL_PARAMETER_BUFFER_ARB = 0x80EE; + + [NativeName(NativeNameType.Const, "GL_PARAMETER_BUFFER_BINDING_ARB")] + public const int GL_PARAMETER_BUFFER_BINDING_ARB = 0x80EF; + + [NativeName(NativeNameType.Const, "GL_ARB_instanced_arrays")] + public const int GL_ARB_INSTANCED_ARRAYS = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB")] + public const int GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE; + + [NativeName(NativeNameType.Const, "GL_ARB_internalformat_query")] + public const int GL_ARB_INTERNALFORMAT_QUERY = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_internalformat_query2")] + public const int GL_ARB_INTERNALFORMAT_QUERY2 = 1; + + [NativeName(NativeNameType.Const, "GL_SRGB_DECODE_ARB")] + public const int GL_SRGB_DECODE_ARB = 0x8299; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_EAC_R11")] + public const int GL_VIEW_CLASS_EAC_R11 = 0x9383; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_EAC_RG11")] + public const int GL_VIEW_CLASS_EAC_RG11 = 0x9384; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ETC2_RGB")] + public const int GL_VIEW_CLASS_ETC2_RGB = 0x9385; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ETC2_RGBA")] + public const int GL_VIEW_CLASS_ETC2_RGBA = 0x9386; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ETC2_EAC_RGBA")] + public const int GL_VIEW_CLASS_ETC2_EAC_RGBA = 0x9387; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_4x4_RGBA")] + public const int GL_VIEW_CLASS_ASTC_4X4_RGBA = 0x9388; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_5x4_RGBA")] + public const int GL_VIEW_CLASS_ASTC_5X4_RGBA = 0x9389; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_5x5_RGBA")] + public const int GL_VIEW_CLASS_ASTC_5X5_RGBA = 0x938A; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_6x5_RGBA")] + public const int GL_VIEW_CLASS_ASTC_6X5_RGBA = 0x938B; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_6x6_RGBA")] + public const int GL_VIEW_CLASS_ASTC_6X6_RGBA = 0x938C; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_8x5_RGBA")] + public const int GL_VIEW_CLASS_ASTC_8X5_RGBA = 0x938D; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_8x6_RGBA")] + public const int GL_VIEW_CLASS_ASTC_8X6_RGBA = 0x938E; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_8x8_RGBA")] + public const int GL_VIEW_CLASS_ASTC_8X8_RGBA = 0x938F; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_10x5_RGBA")] + public const int GL_VIEW_CLASS_ASTC_10X5_RGBA = 0x9390; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_10x6_RGBA")] + public const int GL_VIEW_CLASS_ASTC_10X6_RGBA = 0x9391; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_10x8_RGBA")] + public const int GL_VIEW_CLASS_ASTC_10X8_RGBA = 0x9392; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_10x10_RGBA")] + public const int GL_VIEW_CLASS_ASTC_10X10_RGBA = 0x9393; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_12x10_RGBA")] + public const int GL_VIEW_CLASS_ASTC_12X10_RGBA = 0x9394; + + [NativeName(NativeNameType.Const, "GL_VIEW_CLASS_ASTC_12x12_RGBA")] + public const int GL_VIEW_CLASS_ASTC_12X12_RGBA = 0x9395; + + [NativeName(NativeNameType.Const, "GL_ARB_invalidate_subdata")] + public const int GL_ARB_INVALIDATE_SUBDATA = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_map_buffer_alignment")] + public const int GL_ARB_MAP_BUFFER_ALIGNMENT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_map_buffer_range")] + public const int GL_ARB_MAP_BUFFER_RANGE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_matrix_palette")] + public const int GL_ARB_MATRIX_PALETTE = 1; + + [NativeName(NativeNameType.Const, "GL_MATRIX_PALETTE_ARB")] + public const int GL_MATRIX_PALETTE_ARB = 0x8840; + + [NativeName(NativeNameType.Const, "GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB")] + public const int GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = 0x8841; + + [NativeName(NativeNameType.Const, "GL_MAX_PALETTE_MATRICES_ARB")] + public const int GL_MAX_PALETTE_MATRICES_ARB = 0x8842; + + [NativeName(NativeNameType.Const, "GL_CURRENT_PALETTE_MATRIX_ARB")] + public const int GL_CURRENT_PALETTE_MATRIX_ARB = 0x8843; + + [NativeName(NativeNameType.Const, "GL_MATRIX_INDEX_ARRAY_ARB")] + public const int GL_MATRIX_INDEX_ARRAY_ARB = 0x8844; + + [NativeName(NativeNameType.Const, "GL_CURRENT_MATRIX_INDEX_ARB")] + public const int GL_CURRENT_MATRIX_INDEX_ARB = 0x8845; + + [NativeName(NativeNameType.Const, "GL_MATRIX_INDEX_ARRAY_SIZE_ARB")] + public const int GL_MATRIX_INDEX_ARRAY_SIZE_ARB = 0x8846; + + [NativeName(NativeNameType.Const, "GL_MATRIX_INDEX_ARRAY_TYPE_ARB")] + public const int GL_MATRIX_INDEX_ARRAY_TYPE_ARB = 0x8847; + + [NativeName(NativeNameType.Const, "GL_MATRIX_INDEX_ARRAY_STRIDE_ARB")] + public const int GL_MATRIX_INDEX_ARRAY_STRIDE_ARB = 0x8848; + + [NativeName(NativeNameType.Const, "GL_MATRIX_INDEX_ARRAY_POINTER_ARB")] + public const int GL_MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849; + + [NativeName(NativeNameType.Const, "GL_ARB_multi_bind")] + public const int GL_ARB_MULTI_BIND = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_multi_draw_indirect")] + public const int GL_ARB_MULTI_DRAW_INDIRECT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_multisample")] + public const int GL_ARB_MULTISAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_ARB")] + public const int GL_MULTISAMPLE_ARB = 0x809D; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_ALPHA_TO_COVERAGE_ARB")] + public const int GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_ALPHA_TO_ONE_ARB")] + public const int GL_SAMPLE_ALPHA_TO_ONE_ARB = 0x809F; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_COVERAGE_ARB")] + public const int GL_SAMPLE_COVERAGE_ARB = 0x80A0; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_BUFFERS_ARB")] + public const int GL_SAMPLE_BUFFERS_ARB = 0x80A8; + + [NativeName(NativeNameType.Const, "GL_SAMPLES_ARB")] + public const int GL_SAMPLES_ARB = 0x80A9; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_COVERAGE_VALUE_ARB")] + public const int GL_SAMPLE_COVERAGE_VALUE_ARB = 0x80AA; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_COVERAGE_INVERT_ARB")] + public const int GL_SAMPLE_COVERAGE_INVERT_ARB = 0x80AB; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_BIT_ARB")] + public const int GL_MULTISAMPLE_BIT_ARB = 0x20000000; + + [NativeName(NativeNameType.Const, "GL_ARB_multitexture")] + public const int GL_ARB_MULTITEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE0_ARB")] + public const int GL_TEXTURE0_ARB = 0x84C0; + + [NativeName(NativeNameType.Const, "GL_TEXTURE1_ARB")] + public const int GL_TEXTURE1_ARB = 0x84C1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE2_ARB")] + public const int GL_TEXTURE2_ARB = 0x84C2; + + [NativeName(NativeNameType.Const, "GL_TEXTURE3_ARB")] + public const int GL_TEXTURE3_ARB = 0x84C3; + + [NativeName(NativeNameType.Const, "GL_TEXTURE4_ARB")] + public const int GL_TEXTURE4_ARB = 0x84C4; + + [NativeName(NativeNameType.Const, "GL_TEXTURE5_ARB")] + public const int GL_TEXTURE5_ARB = 0x84C5; + + [NativeName(NativeNameType.Const, "GL_TEXTURE6_ARB")] + public const int GL_TEXTURE6_ARB = 0x84C6; + + [NativeName(NativeNameType.Const, "GL_TEXTURE7_ARB")] + public const int GL_TEXTURE7_ARB = 0x84C7; + + [NativeName(NativeNameType.Const, "GL_TEXTURE8_ARB")] + public const int GL_TEXTURE8_ARB = 0x84C8; + + [NativeName(NativeNameType.Const, "GL_TEXTURE9_ARB")] + public const int GL_TEXTURE9_ARB = 0x84C9; + + [NativeName(NativeNameType.Const, "GL_TEXTURE10_ARB")] + public const int GL_TEXTURE10_ARB = 0x84CA; + + [NativeName(NativeNameType.Const, "GL_TEXTURE11_ARB")] + public const int GL_TEXTURE11_ARB = 0x84CB; + + [NativeName(NativeNameType.Const, "GL_TEXTURE12_ARB")] + public const int GL_TEXTURE12_ARB = 0x84CC; + + [NativeName(NativeNameType.Const, "GL_TEXTURE13_ARB")] + public const int GL_TEXTURE13_ARB = 0x84CD; + + [NativeName(NativeNameType.Const, "GL_TEXTURE14_ARB")] + public const int GL_TEXTURE14_ARB = 0x84CE; + + [NativeName(NativeNameType.Const, "GL_TEXTURE15_ARB")] + public const int GL_TEXTURE15_ARB = 0x84CF; + + [NativeName(NativeNameType.Const, "GL_TEXTURE16_ARB")] + public const int GL_TEXTURE16_ARB = 0x84D0; + + [NativeName(NativeNameType.Const, "GL_TEXTURE17_ARB")] + public const int GL_TEXTURE17_ARB = 0x84D1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE18_ARB")] + public const int GL_TEXTURE18_ARB = 0x84D2; + + [NativeName(NativeNameType.Const, "GL_TEXTURE19_ARB")] + public const int GL_TEXTURE19_ARB = 0x84D3; + + [NativeName(NativeNameType.Const, "GL_TEXTURE20_ARB")] + public const int GL_TEXTURE20_ARB = 0x84D4; + + [NativeName(NativeNameType.Const, "GL_TEXTURE21_ARB")] + public const int GL_TEXTURE21_ARB = 0x84D5; + + [NativeName(NativeNameType.Const, "GL_TEXTURE22_ARB")] + public const int GL_TEXTURE22_ARB = 0x84D6; + + [NativeName(NativeNameType.Const, "GL_TEXTURE23_ARB")] + public const int GL_TEXTURE23_ARB = 0x84D7; + + [NativeName(NativeNameType.Const, "GL_TEXTURE24_ARB")] + public const int GL_TEXTURE24_ARB = 0x84D8; + + [NativeName(NativeNameType.Const, "GL_TEXTURE25_ARB")] + public const int GL_TEXTURE25_ARB = 0x84D9; + + [NativeName(NativeNameType.Const, "GL_TEXTURE26_ARB")] + public const int GL_TEXTURE26_ARB = 0x84DA; + + [NativeName(NativeNameType.Const, "GL_TEXTURE27_ARB")] + public const int GL_TEXTURE27_ARB = 0x84DB; + + [NativeName(NativeNameType.Const, "GL_TEXTURE28_ARB")] + public const int GL_TEXTURE28_ARB = 0x84DC; + + [NativeName(NativeNameType.Const, "GL_TEXTURE29_ARB")] + public const int GL_TEXTURE29_ARB = 0x84DD; + + [NativeName(NativeNameType.Const, "GL_TEXTURE30_ARB")] + public const int GL_TEXTURE30_ARB = 0x84DE; + + [NativeName(NativeNameType.Const, "GL_TEXTURE31_ARB")] + public const int GL_TEXTURE31_ARB = 0x84DF; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_TEXTURE_ARB")] + public const int GL_ACTIVE_TEXTURE_ARB = 0x84E0; + + [NativeName(NativeNameType.Const, "GL_CLIENT_ACTIVE_TEXTURE_ARB")] + public const int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_UNITS_ARB")] + public const int GL_MAX_TEXTURE_UNITS_ARB = 0x84E2; + + [NativeName(NativeNameType.Const, "GL_ARB_occlusion_query")] + public const int GL_ARB_OCCLUSION_QUERY = 1; + + [NativeName(NativeNameType.Const, "GL_QUERY_COUNTER_BITS_ARB")] + public const int GL_QUERY_COUNTER_BITS_ARB = 0x8864; + + [NativeName(NativeNameType.Const, "GL_CURRENT_QUERY_ARB")] + public const int GL_CURRENT_QUERY_ARB = 0x8865; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESULT_ARB")] + public const int GL_QUERY_RESULT_ARB = 0x8866; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESULT_AVAILABLE_ARB")] + public const int GL_QUERY_RESULT_AVAILABLE_ARB = 0x8867; + + [NativeName(NativeNameType.Const, "GL_SAMPLES_PASSED_ARB")] + public const int GL_SAMPLES_PASSED_ARB = 0x8914; + + [NativeName(NativeNameType.Const, "GL_ARB_occlusion_query2")] + public const int GL_ARB_OCCLUSION_QUERY2 = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_parallel_shader_compile")] + public const int GL_ARB_PARALLEL_SHADER_COMPILE = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_SHADER_COMPILER_THREADS_ARB")] + public const int GL_MAX_SHADER_COMPILER_THREADS_ARB = 0x91B0; + + [NativeName(NativeNameType.Const, "GL_COMPLETION_STATUS_ARB")] + public const int GL_COMPLETION_STATUS_ARB = 0x91B1; + + [NativeName(NativeNameType.Const, "GL_ARB_pipeline_statistics_query")] + public const int GL_ARB_PIPELINE_STATISTICS_QUERY = 1; + + [NativeName(NativeNameType.Const, "GL_VERTICES_SUBMITTED_ARB")] + public const int GL_VERTICES_SUBMITTED_ARB = 0x82EE; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVES_SUBMITTED_ARB")] + public const int GL_PRIMITIVES_SUBMITTED_ARB = 0x82EF; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_INVOCATIONS_ARB")] + public const int GL_VERTEX_SHADER_INVOCATIONS_ARB = 0x82F0; + + [NativeName(NativeNameType.Const, "GL_TESS_CONTROL_SHADER_PATCHES_ARB")] + public const int GL_TESS_CONTROL_SHADER_PATCHES_ARB = 0x82F1; + + [NativeName(NativeNameType.Const, "GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB")] + public const int GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB = 0x82F2; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB")] + public const int GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB = 0x82F3; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_SHADER_INVOCATIONS_ARB")] + public const int GL_FRAGMENT_SHADER_INVOCATIONS_ARB = 0x82F4; + + [NativeName(NativeNameType.Const, "GL_COMPUTE_SHADER_INVOCATIONS_ARB")] + public const int GL_COMPUTE_SHADER_INVOCATIONS_ARB = 0x82F5; + + [NativeName(NativeNameType.Const, "GL_CLIPPING_INPUT_PRIMITIVES_ARB")] + public const int GL_CLIPPING_INPUT_PRIMITIVES_ARB = 0x82F6; + + [NativeName(NativeNameType.Const, "GL_CLIPPING_OUTPUT_PRIMITIVES_ARB")] + public const int GL_CLIPPING_OUTPUT_PRIMITIVES_ARB = 0x82F7; + + [NativeName(NativeNameType.Const, "GL_ARB_pixel_buffer_object")] + public const int GL_ARB_PIXEL_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_PIXEL_PACK_BUFFER_ARB")] + public const int GL_PIXEL_PACK_BUFFER_ARB = 0x88EB; + + [NativeName(NativeNameType.Const, "GL_PIXEL_UNPACK_BUFFER_ARB")] + public const int GL_PIXEL_UNPACK_BUFFER_ARB = 0x88EC; + + [NativeName(NativeNameType.Const, "GL_PIXEL_PACK_BUFFER_BINDING_ARB")] + public const int GL_PIXEL_PACK_BUFFER_BINDING_ARB = 0x88ED; + + [NativeName(NativeNameType.Const, "GL_PIXEL_UNPACK_BUFFER_BINDING_ARB")] + public const int GL_PIXEL_UNPACK_BUFFER_BINDING_ARB = 0x88EF; + + [NativeName(NativeNameType.Const, "GL_ARB_point_parameters")] + public const int GL_ARB_POINT_PARAMETERS = 1; + + [NativeName(NativeNameType.Const, "GL_POINT_SIZE_MIN_ARB")] + public const int GL_POINT_SIZE_MIN_ARB = 0x8126; + + [NativeName(NativeNameType.Const, "GL_POINT_SIZE_MAX_ARB")] + public const int GL_POINT_SIZE_MAX_ARB = 0x8127; + + [NativeName(NativeNameType.Const, "GL_POINT_FADE_THRESHOLD_SIZE_ARB")] + public const int GL_POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128; + + [NativeName(NativeNameType.Const, "GL_POINT_DISTANCE_ATTENUATION_ARB")] + public const int GL_POINT_DISTANCE_ATTENUATION_ARB = 0x8129; + + [NativeName(NativeNameType.Const, "GL_ARB_point_sprite")] + public const int GL_ARB_POINT_SPRITE = 1; + + [NativeName(NativeNameType.Const, "GL_POINT_SPRITE_ARB")] + public const int GL_POINT_SPRITE_ARB = 0x8861; + + [NativeName(NativeNameType.Const, "GL_COORD_REPLACE_ARB")] + public const int GL_COORD_REPLACE_ARB = 0x8862; + + [NativeName(NativeNameType.Const, "GL_ARB_polygon_offset_clamp")] + public const int GL_ARB_POLYGON_OFFSET_CLAMP = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_post_depth_coverage")] + public const int GL_ARB_POST_DEPTH_COVERAGE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_program_interface_query")] + public const int GL_ARB_PROGRAM_INTERFACE_QUERY = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_provoking_vertex")] + public const int GL_ARB_PROVOKING_VERTEX = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_query_buffer_object")] + public const int GL_ARB_QUERY_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_robust_buffer_access_behavior")] + public const int GL_ARB_ROBUST_BUFFER_ACCESS_BEHAVIOR = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_robustness")] + public const int GL_ARB_ROBUSTNESS = 1; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB")] + public const int GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_LOSE_CONTEXT_ON_RESET_ARB")] + public const int GL_LOSE_CONTEXT_ON_RESET_ARB = 0x8252; + + [NativeName(NativeNameType.Const, "GL_GUILTY_CONTEXT_RESET_ARB")] + public const int GL_GUILTY_CONTEXT_RESET_ARB = 0x8253; + + [NativeName(NativeNameType.Const, "GL_INNOCENT_CONTEXT_RESET_ARB")] + public const int GL_INNOCENT_CONTEXT_RESET_ARB = 0x8254; + + [NativeName(NativeNameType.Const, "GL_UNKNOWN_CONTEXT_RESET_ARB")] + public const int GL_UNKNOWN_CONTEXT_RESET_ARB = 0x8255; + + [NativeName(NativeNameType.Const, "GL_RESET_NOTIFICATION_STRATEGY_ARB")] + public const int GL_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256; + + [NativeName(NativeNameType.Const, "GL_NO_RESET_NOTIFICATION_ARB")] + public const int GL_NO_RESET_NOTIFICATION_ARB = 0x8261; + + [NativeName(NativeNameType.Const, "GL_ARB_robustness_isolation")] + public const int GL_ARB_ROBUSTNESS_ISOLATION = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_sample_locations")] + public const int GL_ARB_SAMPLE_LOCATIONS = 1; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB")] + public const int GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB = 0x933D; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB")] + public const int GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB = 0x933E; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB")] + public const int GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB = 0x933F; + + [NativeName(NativeNameType.Const, "GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB")] + public const int GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB = 0x9340; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_LOCATION_ARB")] + public const int GL_SAMPLE_LOCATION_ARB = 0x8E50; + + [NativeName(NativeNameType.Const, "GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB")] + public const int GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB = 0x9341; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB")] + public const int GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB = 0x9342; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB")] + public const int GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB = 0x9343; + + [NativeName(NativeNameType.Const, "GL_ARB_sample_shading")] + public const int GL_ARB_SAMPLE_SHADING = 1; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_SHADING_ARB")] + public const int GL_SAMPLE_SHADING_ARB = 0x8C36; + + [NativeName(NativeNameType.Const, "GL_MIN_SAMPLE_SHADING_VALUE_ARB")] + public const int GL_MIN_SAMPLE_SHADING_VALUE_ARB = 0x8C37; + + [NativeName(NativeNameType.Const, "GL_ARB_sampler_objects")] + public const int GL_ARB_SAMPLER_OBJECTS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_seamless_cube_map")] + public const int GL_ARB_SEAMLESS_CUBE_MAP = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_seamless_cubemap_per_texture")] + public const int GL_ARB_SEAMLESS_CUBEMAP_PER_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_separate_shader_objects")] + public const int GL_ARB_SEPARATE_SHADER_OBJECTS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_atomic_counter_ops")] + public const int GL_ARB_SHADER_ATOMIC_COUNTER_OPS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_atomic_counters")] + public const int GL_ARB_SHADER_ATOMIC_COUNTERS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_ballot")] + public const int GL_ARB_SHADER_BALLOT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_bit_encoding")] + public const int GL_ARB_SHADER_BIT_ENCODING = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_clock")] + public const int GL_ARB_SHADER_CLOCK = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_draw_parameters")] + public const int GL_ARB_SHADER_DRAW_PARAMETERS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_group_vote")] + public const int GL_ARB_SHADER_GROUP_VOTE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_image_load_store")] + public const int GL_ARB_SHADER_IMAGE_LOAD_STORE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_image_size")] + public const int GL_ARB_SHADER_IMAGE_SIZE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_objects")] + public const int GL_ARB_SHADER_OBJECTS = 1; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_OBJECT_ARB")] + public const int GL_PROGRAM_OBJECT_ARB = 0x8B40; + + [NativeName(NativeNameType.Const, "GL_SHADER_OBJECT_ARB")] + public const int GL_SHADER_OBJECT_ARB = 0x8B48; + + [NativeName(NativeNameType.Const, "GL_OBJECT_TYPE_ARB")] + public const int GL_OBJECT_TYPE_ARB = 0x8B4E; + + [NativeName(NativeNameType.Const, "GL_OBJECT_SUBTYPE_ARB")] + public const int GL_OBJECT_SUBTYPE_ARB = 0x8B4F; + + [NativeName(NativeNameType.Const, "GL_FLOAT_VEC2_ARB")] + public const int GL_FLOAT_VEC2_ARB = 0x8B50; + + [NativeName(NativeNameType.Const, "GL_FLOAT_VEC3_ARB")] + public const int GL_FLOAT_VEC3_ARB = 0x8B51; + + [NativeName(NativeNameType.Const, "GL_FLOAT_VEC4_ARB")] + public const int GL_FLOAT_VEC4_ARB = 0x8B52; + + [NativeName(NativeNameType.Const, "GL_INT_VEC2_ARB")] + public const int GL_INT_VEC2_ARB = 0x8B53; + + [NativeName(NativeNameType.Const, "GL_INT_VEC3_ARB")] + public const int GL_INT_VEC3_ARB = 0x8B54; + + [NativeName(NativeNameType.Const, "GL_INT_VEC4_ARB")] + public const int GL_INT_VEC4_ARB = 0x8B55; + + [NativeName(NativeNameType.Const, "GL_BOOL_ARB")] + public const int GL_BOOL_ARB = 0x8B56; + + [NativeName(NativeNameType.Const, "GL_BOOL_VEC2_ARB")] + public const int GL_BOOL_VEC2_ARB = 0x8B57; + + [NativeName(NativeNameType.Const, "GL_BOOL_VEC3_ARB")] + public const int GL_BOOL_VEC3_ARB = 0x8B58; + + [NativeName(NativeNameType.Const, "GL_BOOL_VEC4_ARB")] + public const int GL_BOOL_VEC4_ARB = 0x8B59; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT2_ARB")] + public const int GL_FLOAT_MAT2_ARB = 0x8B5A; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT3_ARB")] + public const int GL_FLOAT_MAT3_ARB = 0x8B5B; + + [NativeName(NativeNameType.Const, "GL_FLOAT_MAT4_ARB")] + public const int GL_FLOAT_MAT4_ARB = 0x8B5C; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_1D_ARB")] + public const int GL_SAMPLER_1D_ARB = 0x8B5D; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_ARB")] + public const int GL_SAMPLER_2D_ARB = 0x8B5E; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_3D_ARB")] + public const int GL_SAMPLER_3D_ARB = 0x8B5F; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_CUBE_ARB")] + public const int GL_SAMPLER_CUBE_ARB = 0x8B60; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_1D_SHADOW_ARB")] + public const int GL_SAMPLER_1D_SHADOW_ARB = 0x8B61; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_SHADOW_ARB")] + public const int GL_SAMPLER_2D_SHADOW_ARB = 0x8B62; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_RECT_ARB")] + public const int GL_SAMPLER_2D_RECT_ARB = 0x8B63; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_RECT_SHADOW_ARB")] + public const int GL_SAMPLER_2D_RECT_SHADOW_ARB = 0x8B64; + + [NativeName(NativeNameType.Const, "GL_OBJECT_DELETE_STATUS_ARB")] + public const int GL_OBJECT_DELETE_STATUS_ARB = 0x8B80; + + [NativeName(NativeNameType.Const, "GL_OBJECT_COMPILE_STATUS_ARB")] + public const int GL_OBJECT_COMPILE_STATUS_ARB = 0x8B81; + + [NativeName(NativeNameType.Const, "GL_OBJECT_LINK_STATUS_ARB")] + public const int GL_OBJECT_LINK_STATUS_ARB = 0x8B82; + + [NativeName(NativeNameType.Const, "GL_OBJECT_VALIDATE_STATUS_ARB")] + public const int GL_OBJECT_VALIDATE_STATUS_ARB = 0x8B83; + + [NativeName(NativeNameType.Const, "GL_OBJECT_INFO_LOG_LENGTH_ARB")] + public const int GL_OBJECT_INFO_LOG_LENGTH_ARB = 0x8B84; + + [NativeName(NativeNameType.Const, "GL_OBJECT_ATTACHED_OBJECTS_ARB")] + public const int GL_OBJECT_ATTACHED_OBJECTS_ARB = 0x8B85; + + [NativeName(NativeNameType.Const, "GL_OBJECT_ACTIVE_UNIFORMS_ARB")] + public const int GL_OBJECT_ACTIVE_UNIFORMS_ARB = 0x8B86; + + [NativeName(NativeNameType.Const, "GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB")] + public const int GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8B87; + + [NativeName(NativeNameType.Const, "GL_OBJECT_SHADER_SOURCE_LENGTH_ARB")] + public const int GL_OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8B88; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_precision")] + public const int GL_ARB_SHADER_PRECISION = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_stencil_export")] + public const int GL_ARB_SHADER_STENCIL_EXPORT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_storage_buffer_object")] + public const int GL_ARB_SHADER_STORAGE_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_subroutine")] + public const int GL_ARB_SHADER_SUBROUTINE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_texture_image_samples")] + public const int GL_ARB_SHADER_TEXTURE_IMAGE_SAMPLES = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_texture_lod")] + public const int GL_ARB_SHADER_TEXTURE_LOD = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shader_viewport_layer_array")] + public const int GL_ARB_SHADER_VIEWPORT_LAYER_ARRAY = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shading_language_100")] + public const int GL_ARB_SHADING_LANGUAGE_100 = 1; + + [NativeName(NativeNameType.Const, "GL_SHADING_LANGUAGE_VERSION_ARB")] + public const int GL_SHADING_LANGUAGE_VERSION_ARB = 0x8B8C; + + [NativeName(NativeNameType.Const, "GL_ARB_shading_language_420pack")] + public const int GL_ARB_SHADING_LANGUAGE_420PACK = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shading_language_include")] + public const int GL_ARB_SHADING_LANGUAGE_INCLUDE = 1; + + [NativeName(NativeNameType.Const, "GL_SHADER_INCLUDE_ARB")] + public const int GL_SHADER_INCLUDE_ARB = 0x8DAE; + + [NativeName(NativeNameType.Const, "GL_NAMED_STRING_LENGTH_ARB")] + public const int GL_NAMED_STRING_LENGTH_ARB = 0x8DE9; + + [NativeName(NativeNameType.Const, "GL_NAMED_STRING_TYPE_ARB")] + public const int GL_NAMED_STRING_TYPE_ARB = 0x8DEA; + + [NativeName(NativeNameType.Const, "GL_ARB_shading_language_packing")] + public const int GL_ARB_SHADING_LANGUAGE_PACKING = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_shadow")] + public const int GL_ARB_SHADOW = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPARE_MODE_ARB")] + public const int GL_TEXTURE_COMPARE_MODE_ARB = 0x884C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPARE_FUNC_ARB")] + public const int GL_TEXTURE_COMPARE_FUNC_ARB = 0x884D; + + [NativeName(NativeNameType.Const, "GL_COMPARE_R_TO_TEXTURE_ARB")] + public const int GL_COMPARE_R_TO_TEXTURE_ARB = 0x884E; + + [NativeName(NativeNameType.Const, "GL_ARB_shadow_ambient")] + public const int GL_ARB_SHADOW_AMBIENT = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPARE_FAIL_VALUE_ARB")] + public const int GL_TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF; + + [NativeName(NativeNameType.Const, "GL_ARB_sparse_buffer")] + public const int GL_ARB_SPARSE_BUFFER = 1; + + [NativeName(NativeNameType.Const, "GL_SPARSE_STORAGE_BIT_ARB")] + public const int GL_SPARSE_STORAGE_BIT_ARB = 0x0400; + + [NativeName(NativeNameType.Const, "GL_SPARSE_BUFFER_PAGE_SIZE_ARB")] + public const int GL_SPARSE_BUFFER_PAGE_SIZE_ARB = 0x82F8; + + [NativeName(NativeNameType.Const, "GL_ARB_sparse_texture")] + public const int GL_ARB_SPARSE_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SPARSE_ARB")] + public const int GL_TEXTURE_SPARSE_ARB = 0x91A6; + + [NativeName(NativeNameType.Const, "GL_VIRTUAL_PAGE_SIZE_INDEX_ARB")] + public const int GL_VIRTUAL_PAGE_SIZE_INDEX_ARB = 0x91A7; + + [NativeName(NativeNameType.Const, "GL_NUM_SPARSE_LEVELS_ARB")] + public const int GL_NUM_SPARSE_LEVELS_ARB = 0x91AA; + + [NativeName(NativeNameType.Const, "GL_NUM_VIRTUAL_PAGE_SIZES_ARB")] + public const int GL_NUM_VIRTUAL_PAGE_SIZES_ARB = 0x91A8; + + [NativeName(NativeNameType.Const, "GL_VIRTUAL_PAGE_SIZE_X_ARB")] + public const int GL_VIRTUAL_PAGE_SIZE_X_ARB = 0x9195; + + [NativeName(NativeNameType.Const, "GL_VIRTUAL_PAGE_SIZE_Y_ARB")] + public const int GL_VIRTUAL_PAGE_SIZE_Y_ARB = 0x9196; + + [NativeName(NativeNameType.Const, "GL_VIRTUAL_PAGE_SIZE_Z_ARB")] + public const int GL_VIRTUAL_PAGE_SIZE_Z_ARB = 0x9197; + + [NativeName(NativeNameType.Const, "GL_MAX_SPARSE_TEXTURE_SIZE_ARB")] + public const int GL_MAX_SPARSE_TEXTURE_SIZE_ARB = 0x9198; + + [NativeName(NativeNameType.Const, "GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB")] + public const int GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB = 0x9199; + + [NativeName(NativeNameType.Const, "GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB")] + public const int GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB = 0x919A; + + [NativeName(NativeNameType.Const, "GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB")] + public const int GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB = 0x91A9; + + [NativeName(NativeNameType.Const, "GL_ARB_sparse_texture2")] + public const int GL_ARB_SPARSE_TEXTURE2 = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_sparse_texture_clamp")] + public const int GL_ARB_SPARSE_TEXTURE_CLAMP = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_spirv_extensions")] + public const int GL_ARB_SPIRV_EXTENSIONS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_stencil_texturing")] + public const int GL_ARB_STENCIL_TEXTURING = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_sync")] + public const int GL_ARB_SYNC = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_tessellation_shader")] + public const int GL_ARB_TESSELLATION_SHADER = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_barrier")] + public const int GL_ARB_TEXTURE_BARRIER = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_border_clamp")] + public const int GL_ARB_TEXTURE_BORDER_CLAMP = 1; + + [NativeName(NativeNameType.Const, "GL_CLAMP_TO_BORDER_ARB")] + public const int GL_CLAMP_TO_BORDER_ARB = 0x812D; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_buffer_object")] + public const int GL_ARB_TEXTURE_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER_ARB")] + public const int GL_TEXTURE_BUFFER_ARB = 0x8C2A; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_BUFFER_SIZE_ARB")] + public const int GL_MAX_TEXTURE_BUFFER_SIZE_ARB = 0x8C2B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_BUFFER_ARB")] + public const int GL_TEXTURE_BINDING_BUFFER_ARB = 0x8C2C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB")] + public const int GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB = 0x8C2D; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER_FORMAT_ARB")] + public const int GL_TEXTURE_BUFFER_FORMAT_ARB = 0x8C2E; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_buffer_object_rgb32")] + public const int GL_ARB_TEXTURE_BUFFER_OBJECT_RGB32 = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_buffer_range")] + public const int GL_ARB_TEXTURE_BUFFER_RANGE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_compression")] + public const int GL_ARB_TEXTURE_COMPRESSION = 1; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_ALPHA_ARB")] + public const int GL_COMPRESSED_ALPHA_ARB = 0x84E9; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_LUMINANCE_ARB")] + public const int GL_COMPRESSED_LUMINANCE_ARB = 0x84EA; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_LUMINANCE_ALPHA_ARB")] + public const int GL_COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84EB; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_INTENSITY_ARB")] + public const int GL_COMPRESSED_INTENSITY_ARB = 0x84EC; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGB_ARB")] + public const int GL_COMPRESSED_RGB_ARB = 0x84ED; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ARB")] + public const int GL_COMPRESSED_RGBA_ARB = 0x84EE; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPRESSION_HINT_ARB")] + public const int GL_TEXTURE_COMPRESSION_HINT_ARB = 0x84EF; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB")] + public const int GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB = 0x86A0; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPRESSED_ARB")] + public const int GL_TEXTURE_COMPRESSED_ARB = 0x86A1; + + [NativeName(NativeNameType.Const, "GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB")] + public const int GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_TEXTURE_FORMATS_ARB")] + public const int GL_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_compression_bptc")] + public const int GL_ARB_TEXTURE_COMPRESSION_BPTC = 1; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_BPTC_UNORM_ARB")] + public const int GL_COMPRESSED_RGBA_BPTC_UNORM_ARB = 0x8E8C; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB")] + public const int GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB = 0x8E8D; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB")] + public const int GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB = 0x8E8E; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB")] + public const int GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB = 0x8E8F; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_compression_rgtc")] + public const int GL_ARB_TEXTURE_COMPRESSION_RGTC = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_cube_map")] + public const int GL_ARB_TEXTURE_CUBE_MAP = 1; + + [NativeName(NativeNameType.Const, "GL_NORMAL_MAP_ARB")] + public const int GL_NORMAL_MAP_ARB = 0x8511; + + [NativeName(NativeNameType.Const, "GL_REFLECTION_MAP_ARB")] + public const int GL_REFLECTION_MAP_ARB = 0x8512; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_ARB")] + public const int GL_TEXTURE_CUBE_MAP_ARB = 0x8513; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_CUBE_MAP_ARB")] + public const int GL_TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB")] + public const int GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB")] + public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB")] + public const int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB")] + public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB")] + public const int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB")] + public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851A; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_CUBE_MAP_ARB")] + public const int GL_PROXY_TEXTURE_CUBE_MAP_ARB = 0x851B; + + [NativeName(NativeNameType.Const, "GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB")] + public const int GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851C; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_cube_map_array")] + public const int GL_ARB_TEXTURE_CUBE_MAP_ARRAY = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_ARRAY_ARB")] + public const int GL_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x9009; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB")] + public const int GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB = 0x900A; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB")] + public const int GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x900B; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_CUBE_MAP_ARRAY_ARB")] + public const int GL_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900C; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB")] + public const int GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB = 0x900D; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB")] + public const int GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900E; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB")] + public const int GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900F; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_env_add")] + public const int GL_ARB_TEXTURE_ENV_ADD = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_env_combine")] + public const int GL_ARB_TEXTURE_ENV_COMBINE = 1; + + [NativeName(NativeNameType.Const, "GL_COMBINE_ARB")] + public const int GL_COMBINE_ARB = 0x8570; + + [NativeName(NativeNameType.Const, "GL_COMBINE_RGB_ARB")] + public const int GL_COMBINE_RGB_ARB = 0x8571; + + [NativeName(NativeNameType.Const, "GL_COMBINE_ALPHA_ARB")] + public const int GL_COMBINE_ALPHA_ARB = 0x8572; + + [NativeName(NativeNameType.Const, "GL_SOURCE0_RGB_ARB")] + public const int GL_SOURCE0_RGB_ARB = 0x8580; + + [NativeName(NativeNameType.Const, "GL_SOURCE1_RGB_ARB")] + public const int GL_SOURCE1_RGB_ARB = 0x8581; + + [NativeName(NativeNameType.Const, "GL_SOURCE2_RGB_ARB")] + public const int GL_SOURCE2_RGB_ARB = 0x8582; + + [NativeName(NativeNameType.Const, "GL_SOURCE0_ALPHA_ARB")] + public const int GL_SOURCE0_ALPHA_ARB = 0x8588; + + [NativeName(NativeNameType.Const, "GL_SOURCE1_ALPHA_ARB")] + public const int GL_SOURCE1_ALPHA_ARB = 0x8589; + + [NativeName(NativeNameType.Const, "GL_SOURCE2_ALPHA_ARB")] + public const int GL_SOURCE2_ALPHA_ARB = 0x858A; + + [NativeName(NativeNameType.Const, "GL_OPERAND0_RGB_ARB")] + public const int GL_OPERAND0_RGB_ARB = 0x8590; + + [NativeName(NativeNameType.Const, "GL_OPERAND1_RGB_ARB")] + public const int GL_OPERAND1_RGB_ARB = 0x8591; + + [NativeName(NativeNameType.Const, "GL_OPERAND2_RGB_ARB")] + public const int GL_OPERAND2_RGB_ARB = 0x8592; + + [NativeName(NativeNameType.Const, "GL_OPERAND0_ALPHA_ARB")] + public const int GL_OPERAND0_ALPHA_ARB = 0x8598; + + [NativeName(NativeNameType.Const, "GL_OPERAND1_ALPHA_ARB")] + public const int GL_OPERAND1_ALPHA_ARB = 0x8599; + + [NativeName(NativeNameType.Const, "GL_OPERAND2_ALPHA_ARB")] + public const int GL_OPERAND2_ALPHA_ARB = 0x859A; + + [NativeName(NativeNameType.Const, "GL_RGB_SCALE_ARB")] + public const int GL_RGB_SCALE_ARB = 0x8573; + + [NativeName(NativeNameType.Const, "GL_ADD_SIGNED_ARB")] + public const int GL_ADD_SIGNED_ARB = 0x8574; + + [NativeName(NativeNameType.Const, "GL_INTERPOLATE_ARB")] + public const int GL_INTERPOLATE_ARB = 0x8575; + + [NativeName(NativeNameType.Const, "GL_SUBTRACT_ARB")] + public const int GL_SUBTRACT_ARB = 0x84E7; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_ARB")] + public const int GL_CONSTANT_ARB = 0x8576; + + [NativeName(NativeNameType.Const, "GL_PRIMARY_COLOR_ARB")] + public const int GL_PRIMARY_COLOR_ARB = 0x8577; + + [NativeName(NativeNameType.Const, "GL_PREVIOUS_ARB")] + public const int GL_PREVIOUS_ARB = 0x8578; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_env_crossbar")] + public const int GL_ARB_TEXTURE_ENV_CROSSBAR = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_env_dot3")] + public const int GL_ARB_TEXTURE_ENV_DOT3 = 1; + + [NativeName(NativeNameType.Const, "GL_DOT3_RGB_ARB")] + public const int GL_DOT3_RGB_ARB = 0x86AE; + + [NativeName(NativeNameType.Const, "GL_DOT3_RGBA_ARB")] + public const int GL_DOT3_RGBA_ARB = 0x86AF; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_filter_anisotropic")] + public const int GL_ARB_TEXTURE_FILTER_ANISOTROPIC = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_filter_minmax")] + public const int GL_ARB_TEXTURE_FILTER_MINMAX = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_REDUCTION_MODE_ARB")] + public const int GL_TEXTURE_REDUCTION_MODE_ARB = 0x9366; + + [NativeName(NativeNameType.Const, "GL_WEIGHTED_AVERAGE_ARB")] + public const int GL_WEIGHTED_AVERAGE_ARB = 0x9367; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_float")] + public const int GL_ARB_TEXTURE_FLOAT = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RED_TYPE_ARB")] + public const int GL_TEXTURE_RED_TYPE_ARB = 0x8C10; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GREEN_TYPE_ARB")] + public const int GL_TEXTURE_GREEN_TYPE_ARB = 0x8C11; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BLUE_TYPE_ARB")] + public const int GL_TEXTURE_BLUE_TYPE_ARB = 0x8C12; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_ALPHA_TYPE_ARB")] + public const int GL_TEXTURE_ALPHA_TYPE_ARB = 0x8C13; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LUMINANCE_TYPE_ARB")] + public const int GL_TEXTURE_LUMINANCE_TYPE_ARB = 0x8C14; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_INTENSITY_TYPE_ARB")] + public const int GL_TEXTURE_INTENSITY_TYPE_ARB = 0x8C15; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_DEPTH_TYPE_ARB")] + public const int GL_TEXTURE_DEPTH_TYPE_ARB = 0x8C16; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_NORMALIZED_ARB")] + public const int GL_UNSIGNED_NORMALIZED_ARB = 0x8C17; + + [NativeName(NativeNameType.Const, "GL_RGBA32F_ARB")] + public const int GL_RGBA32F_ARB = 0x8814; + + [NativeName(NativeNameType.Const, "GL_RGB32F_ARB")] + public const int GL_RGB32F_ARB = 0x8815; + + [NativeName(NativeNameType.Const, "GL_ALPHA32F_ARB")] + public const int GL_ALPHA32F_ARB = 0x8816; + + [NativeName(NativeNameType.Const, "GL_INTENSITY32F_ARB")] + public const int GL_INTENSITY32F_ARB = 0x8817; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE32F_ARB")] + public const int GL_LUMINANCE32F_ARB = 0x8818; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA32F_ARB")] + public const int GL_LUMINANCE_ALPHA32F_ARB = 0x8819; + + [NativeName(NativeNameType.Const, "GL_RGBA16F_ARB")] + public const int GL_RGBA16F_ARB = 0x881A; + + [NativeName(NativeNameType.Const, "GL_RGB16F_ARB")] + public const int GL_RGB16F_ARB = 0x881B; + + [NativeName(NativeNameType.Const, "GL_ALPHA16F_ARB")] + public const int GL_ALPHA16F_ARB = 0x881C; + + [NativeName(NativeNameType.Const, "GL_INTENSITY16F_ARB")] + public const int GL_INTENSITY16F_ARB = 0x881D; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE16F_ARB")] + public const int GL_LUMINANCE16F_ARB = 0x881E; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA16F_ARB")] + public const int GL_LUMINANCE_ALPHA16F_ARB = 0x881F; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_gather")] + public const int GL_ARB_TEXTURE_GATHER = 1; + + [NativeName(NativeNameType.Const, "GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB")] + public const int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5E; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB")] + public const int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5F; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB")] + public const int GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 0x8F9F; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_mirror_clamp_to_edge")] + public const int GL_ARB_TEXTURE_MIRROR_CLAMP_TO_EDGE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_mirrored_repeat")] + public const int GL_ARB_TEXTURE_MIRRORED_REPEAT = 1; + + [NativeName(NativeNameType.Const, "GL_MIRRORED_REPEAT_ARB")] + public const int GL_MIRRORED_REPEAT_ARB = 0x8370; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_multisample")] + public const int GL_ARB_TEXTURE_MULTISAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_non_power_of_two")] + public const int GL_ARB_TEXTURE_NON_POWER_OF_TWO = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_query_levels")] + public const int GL_ARB_TEXTURE_QUERY_LEVELS = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_query_lod")] + public const int GL_ARB_TEXTURE_QUERY_LOD = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_rectangle")] + public const int GL_ARB_TEXTURE_RECTANGLE = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RECTANGLE_ARB")] + public const int GL_TEXTURE_RECTANGLE_ARB = 0x84F5; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_RECTANGLE_ARB")] + public const int GL_TEXTURE_BINDING_RECTANGLE_ARB = 0x84F6; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_RECTANGLE_ARB")] + public const int GL_PROXY_TEXTURE_RECTANGLE_ARB = 0x84F7; + + [NativeName(NativeNameType.Const, "GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB")] + public const int GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84F8; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_rg")] + public const int GL_ARB_TEXTURE_RG = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_rgb10_a2ui")] + public const int GL_ARB_TEXTURE_RGB10_A2UI = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_stencil8")] + public const int GL_ARB_TEXTURE_STENCIL8 = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_storage")] + public const int GL_ARB_TEXTURE_STORAGE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_storage_multisample")] + public const int GL_ARB_TEXTURE_STORAGE_MULTISAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_swizzle")] + public const int GL_ARB_TEXTURE_SWIZZLE = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_texture_view")] + public const int GL_ARB_TEXTURE_VIEW = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_timer_query")] + public const int GL_ARB_TIMER_QUERY = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_transform_feedback2")] + public const int GL_ARB_TRANSFORM_FEEDBACK2 = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_transform_feedback3")] + public const int GL_ARB_TRANSFORM_FEEDBACK3 = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_transform_feedback_instanced")] + public const int GL_ARB_TRANSFORM_FEEDBACK_INSTANCED = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_transform_feedback_overflow_query")] + public const int GL_ARB_TRANSFORM_FEEDBACK_OVERFLOW_QUERY = 1; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB")] + public const int GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB = 0x82EC; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB")] + public const int GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB = 0x82ED; + + [NativeName(NativeNameType.Const, "GL_ARB_transpose_matrix")] + public const int GL_ARB_TRANSPOSE_MATRIX = 1; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_MODELVIEW_MATRIX_ARB")] + public const int GL_TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84E3; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_PROJECTION_MATRIX_ARB")] + public const int GL_TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_TEXTURE_MATRIX_ARB")] + public const int GL_TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84E5; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_COLOR_MATRIX_ARB")] + public const int GL_TRANSPOSE_COLOR_MATRIX_ARB = 0x84E6; + + [NativeName(NativeNameType.Const, "GL_ARB_uniform_buffer_object")] + public const int GL_ARB_UNIFORM_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_vertex_array_bgra")] + public const int GL_ARB_VERTEX_ARRAY_BGRA = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_vertex_array_object")] + public const int GL_ARB_VERTEX_ARRAY_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_vertex_attrib_64bit")] + public const int GL_ARB_VERTEX_ATTRIB_64BIT = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_vertex_attrib_binding")] + public const int GL_ARB_VERTEX_ATTRIB_BINDING = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_vertex_blend")] + public const int GL_ARB_VERTEX_BLEND = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_UNITS_ARB")] + public const int GL_MAX_VERTEX_UNITS_ARB = 0x86A4; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_VERTEX_UNITS_ARB")] + public const int GL_ACTIVE_VERTEX_UNITS_ARB = 0x86A5; + + [NativeName(NativeNameType.Const, "GL_WEIGHT_SUM_UNITY_ARB")] + public const int GL_WEIGHT_SUM_UNITY_ARB = 0x86A6; + + [NativeName(NativeNameType.Const, "GL_VERTEX_BLEND_ARB")] + public const int GL_VERTEX_BLEND_ARB = 0x86A7; + + [NativeName(NativeNameType.Const, "GL_CURRENT_WEIGHT_ARB")] + public const int GL_CURRENT_WEIGHT_ARB = 0x86A8; + + [NativeName(NativeNameType.Const, "GL_WEIGHT_ARRAY_TYPE_ARB")] + public const int GL_WEIGHT_ARRAY_TYPE_ARB = 0x86A9; + + [NativeName(NativeNameType.Const, "GL_WEIGHT_ARRAY_STRIDE_ARB")] + public const int GL_WEIGHT_ARRAY_STRIDE_ARB = 0x86AA; + + [NativeName(NativeNameType.Const, "GL_WEIGHT_ARRAY_SIZE_ARB")] + public const int GL_WEIGHT_ARRAY_SIZE_ARB = 0x86AB; + + [NativeName(NativeNameType.Const, "GL_WEIGHT_ARRAY_POINTER_ARB")] + public const int GL_WEIGHT_ARRAY_POINTER_ARB = 0x86AC; + + [NativeName(NativeNameType.Const, "GL_WEIGHT_ARRAY_ARB")] + public const int GL_WEIGHT_ARRAY_ARB = 0x86AD; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW0_ARB")] + public const int GL_MODELVIEW0_ARB = 0x1700; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW1_ARB")] + public const int GL_MODELVIEW1_ARB = 0x850A; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW2_ARB")] + public const int GL_MODELVIEW2_ARB = 0x8722; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW3_ARB")] + public const int GL_MODELVIEW3_ARB = 0x8723; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW4_ARB")] + public const int GL_MODELVIEW4_ARB = 0x8724; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW5_ARB")] + public const int GL_MODELVIEW5_ARB = 0x8725; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW6_ARB")] + public const int GL_MODELVIEW6_ARB = 0x8726; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW7_ARB")] + public const int GL_MODELVIEW7_ARB = 0x8727; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW8_ARB")] + public const int GL_MODELVIEW8_ARB = 0x8728; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW9_ARB")] + public const int GL_MODELVIEW9_ARB = 0x8729; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW10_ARB")] + public const int GL_MODELVIEW10_ARB = 0x872A; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW11_ARB")] + public const int GL_MODELVIEW11_ARB = 0x872B; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW12_ARB")] + public const int GL_MODELVIEW12_ARB = 0x872C; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW13_ARB")] + public const int GL_MODELVIEW13_ARB = 0x872D; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW14_ARB")] + public const int GL_MODELVIEW14_ARB = 0x872E; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW15_ARB")] + public const int GL_MODELVIEW15_ARB = 0x872F; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW16_ARB")] + public const int GL_MODELVIEW16_ARB = 0x8730; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW17_ARB")] + public const int GL_MODELVIEW17_ARB = 0x8731; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW18_ARB")] + public const int GL_MODELVIEW18_ARB = 0x8732; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW19_ARB")] + public const int GL_MODELVIEW19_ARB = 0x8733; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW20_ARB")] + public const int GL_MODELVIEW20_ARB = 0x8734; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW21_ARB")] + public const int GL_MODELVIEW21_ARB = 0x8735; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW22_ARB")] + public const int GL_MODELVIEW22_ARB = 0x8736; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW23_ARB")] + public const int GL_MODELVIEW23_ARB = 0x8737; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW24_ARB")] + public const int GL_MODELVIEW24_ARB = 0x8738; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW25_ARB")] + public const int GL_MODELVIEW25_ARB = 0x8739; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW26_ARB")] + public const int GL_MODELVIEW26_ARB = 0x873A; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW27_ARB")] + public const int GL_MODELVIEW27_ARB = 0x873B; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW28_ARB")] + public const int GL_MODELVIEW28_ARB = 0x873C; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW29_ARB")] + public const int GL_MODELVIEW29_ARB = 0x873D; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW30_ARB")] + public const int GL_MODELVIEW30_ARB = 0x873E; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW31_ARB")] + public const int GL_MODELVIEW31_ARB = 0x873F; + + [NativeName(NativeNameType.Const, "GL_ARB_vertex_buffer_object")] + public const int GL_ARB_VERTEX_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_BUFFER_SIZE_ARB")] + public const int GL_BUFFER_SIZE_ARB = 0x8764; + + [NativeName(NativeNameType.Const, "GL_BUFFER_USAGE_ARB")] + public const int GL_BUFFER_USAGE_ARB = 0x8765; + + [NativeName(NativeNameType.Const, "GL_ARRAY_BUFFER_ARB")] + public const int GL_ARRAY_BUFFER_ARB = 0x8892; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_BUFFER_ARB")] + public const int GL_ELEMENT_ARRAY_BUFFER_ARB = 0x8893; + + [NativeName(NativeNameType.Const, "GL_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_ARRAY_BUFFER_BINDING_ARB = 0x8894; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB = 0x8895; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_NORMAL_ARRAY_BUFFER_BINDING_ARB = 0x8897; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x8898; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_INDEX_ARRAY_BUFFER_BINDING_ARB = 0x8899; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = 0x889A; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = 0x889B; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x889C; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = 0x889D; + + [NativeName(NativeNameType.Const, "GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB = 0x889E; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB")] + public const int GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = 0x889F; + + [NativeName(NativeNameType.Const, "GL_READ_ONLY_ARB")] + public const int GL_READ_ONLY_ARB = 0x88B8; + + [NativeName(NativeNameType.Const, "GL_WRITE_ONLY_ARB")] + public const int GL_WRITE_ONLY_ARB = 0x88B9; + + [NativeName(NativeNameType.Const, "GL_READ_WRITE_ARB")] + public const int GL_READ_WRITE_ARB = 0x88BA; + + [NativeName(NativeNameType.Const, "GL_BUFFER_ACCESS_ARB")] + public const int GL_BUFFER_ACCESS_ARB = 0x88BB; + + [NativeName(NativeNameType.Const, "GL_BUFFER_MAPPED_ARB")] + public const int GL_BUFFER_MAPPED_ARB = 0x88BC; + + [NativeName(NativeNameType.Const, "GL_BUFFER_MAP_POINTER_ARB")] + public const int GL_BUFFER_MAP_POINTER_ARB = 0x88BD; + + [NativeName(NativeNameType.Const, "GL_STREAM_DRAW_ARB")] + public const int GL_STREAM_DRAW_ARB = 0x88E0; + + [NativeName(NativeNameType.Const, "GL_STREAM_READ_ARB")] + public const int GL_STREAM_READ_ARB = 0x88E1; + + [NativeName(NativeNameType.Const, "GL_STREAM_COPY_ARB")] + public const int GL_STREAM_COPY_ARB = 0x88E2; + + [NativeName(NativeNameType.Const, "GL_STATIC_DRAW_ARB")] + public const int GL_STATIC_DRAW_ARB = 0x88E4; + + [NativeName(NativeNameType.Const, "GL_STATIC_READ_ARB")] + public const int GL_STATIC_READ_ARB = 0x88E5; + + [NativeName(NativeNameType.Const, "GL_STATIC_COPY_ARB")] + public const int GL_STATIC_COPY_ARB = 0x88E6; + + [NativeName(NativeNameType.Const, "GL_DYNAMIC_DRAW_ARB")] + public const int GL_DYNAMIC_DRAW_ARB = 0x88E8; + + [NativeName(NativeNameType.Const, "GL_DYNAMIC_READ_ARB")] + public const int GL_DYNAMIC_READ_ARB = 0x88E9; + + [NativeName(NativeNameType.Const, "GL_DYNAMIC_COPY_ARB")] + public const int GL_DYNAMIC_COPY_ARB = 0x88EA; + + [NativeName(NativeNameType.Const, "GL_ARB_vertex_program")] + public const int GL_ARB_VERTEX_PROGRAM = 1; + + [NativeName(NativeNameType.Const, "GL_COLOR_SUM_ARB")] + public const int GL_COLOR_SUM_ARB = 0x8458; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PROGRAM_ARB")] + public const int GL_VERTEX_PROGRAM_ARB = 0x8620; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB")] + public const int GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB")] + public const int GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB")] + public const int GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB")] + public const int GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625; + + [NativeName(NativeNameType.Const, "GL_CURRENT_VERTEX_ATTRIB_ARB")] + public const int GL_CURRENT_VERTEX_ATTRIB_ARB = 0x8626; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PROGRAM_POINT_SIZE_ARB")] + public const int GL_VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PROGRAM_TWO_SIDE_ARB")] + public const int GL_VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB")] + public const int GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_ATTRIBS_ARB")] + public const int GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB")] + public const int GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886A; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_ADDRESS_REGISTERS_ARB")] + public const int GL_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B0; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB")] + public const int GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B1; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB")] + public const int GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B2; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB")] + public const int GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B3; + + [NativeName(NativeNameType.Const, "GL_ARB_vertex_shader")] + public const int GL_ARB_VERTEX_SHADER = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_ARB")] + public const int GL_VERTEX_SHADER_ARB = 0x8B31; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB")] + public const int GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 0x8B4A; + + [NativeName(NativeNameType.Const, "GL_MAX_VARYING_FLOATS_ARB")] + public const int GL_MAX_VARYING_FLOATS_ARB = 0x8B4B; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB")] + public const int GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8B4C; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB")] + public const int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 0x8B4D; + + [NativeName(NativeNameType.Const, "GL_OBJECT_ACTIVE_ATTRIBUTES_ARB")] + public const int GL_OBJECT_ACTIVE_ATTRIBUTES_ARB = 0x8B89; + + [NativeName(NativeNameType.Const, "GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB")] + public const int GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = 0x8B8A; + + [NativeName(NativeNameType.Const, "GL_ARB_vertex_type_10f_11f_11f_rev")] + public const int GL_ARB_VERTEX_TYPE_10F_11F_11F_REV = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_vertex_type_2_10_10_10_rev")] + public const int GL_ARB_VERTEX_TYPE_2_10_10_10_REV = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_viewport_array")] + public const int GL_ARB_VIEWPORT_ARRAY = 1; + + [NativeName(NativeNameType.Const, "GL_ARB_window_pos")] + public const int GL_ARB_WINDOW_POS = 1; + + [NativeName(NativeNameType.Const, "GL_KHR_blend_equation_advanced")] + public const int GL_KHR_BLEND_EQUATION_ADVANCED = 1; + + [NativeName(NativeNameType.Const, "GL_MULTIPLY_KHR")] + public const int GL_MULTIPLY_KHR = 0x9294; + + [NativeName(NativeNameType.Const, "GL_SCREEN_KHR")] + public const int GL_SCREEN_KHR = 0x9295; + + [NativeName(NativeNameType.Const, "GL_OVERLAY_KHR")] + public const int GL_OVERLAY_KHR = 0x9296; + + [NativeName(NativeNameType.Const, "GL_DARKEN_KHR")] + public const int GL_DARKEN_KHR = 0x9297; + + [NativeName(NativeNameType.Const, "GL_LIGHTEN_KHR")] + public const int GL_LIGHTEN_KHR = 0x9298; + + [NativeName(NativeNameType.Const, "GL_COLORDODGE_KHR")] + public const int GL_COLORDODGE_KHR = 0x9299; + + [NativeName(NativeNameType.Const, "GL_COLORBURN_KHR")] + public const int GL_COLORBURN_KHR = 0x929A; + + [NativeName(NativeNameType.Const, "GL_HARDLIGHT_KHR")] + public const int GL_HARDLIGHT_KHR = 0x929B; + + [NativeName(NativeNameType.Const, "GL_SOFTLIGHT_KHR")] + public const int GL_SOFTLIGHT_KHR = 0x929C; + + [NativeName(NativeNameType.Const, "GL_DIFFERENCE_KHR")] + public const int GL_DIFFERENCE_KHR = 0x929E; + + [NativeName(NativeNameType.Const, "GL_EXCLUSION_KHR")] + public const int GL_EXCLUSION_KHR = 0x92A0; + + [NativeName(NativeNameType.Const, "GL_HSL_HUE_KHR")] + public const int GL_HSL_HUE_KHR = 0x92AD; + + [NativeName(NativeNameType.Const, "GL_HSL_SATURATION_KHR")] + public const int GL_HSL_SATURATION_KHR = 0x92AE; + + [NativeName(NativeNameType.Const, "GL_HSL_COLOR_KHR")] + public const int GL_HSL_COLOR_KHR = 0x92AF; + + [NativeName(NativeNameType.Const, "GL_HSL_LUMINOSITY_KHR")] + public const int GL_HSL_LUMINOSITY_KHR = 0x92B0; + + [NativeName(NativeNameType.Const, "GL_KHR_blend_equation_advanced_coherent")] + public const int GL_KHR_BLEND_EQUATION_ADVANCED_COHERENT = 1; + + [NativeName(NativeNameType.Const, "GL_BLEND_ADVANCED_COHERENT_KHR")] + public const int GL_BLEND_ADVANCED_COHERENT_KHR = 0x9285; + + [NativeName(NativeNameType.Const, "GL_KHR_context_flush_control")] + public const int GL_KHR_CONTEXT_FLUSH_CONTROL = 1; + + [NativeName(NativeNameType.Const, "GL_KHR_debug")] + public const int GL_KHR_DEBUG = 1; + + [NativeName(NativeNameType.Const, "GL_KHR_no_error")] + public const int GL_KHR_NO_ERROR = 1; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR")] + public const int GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR = 0x00000008; + + [NativeName(NativeNameType.Const, "GL_KHR_parallel_shader_compile")] + public const int GL_KHR_PARALLEL_SHADER_COMPILE = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_SHADER_COMPILER_THREADS_KHR")] + public const int GL_MAX_SHADER_COMPILER_THREADS_KHR = 0x91B0; + + [NativeName(NativeNameType.Const, "GL_COMPLETION_STATUS_KHR")] + public const int GL_COMPLETION_STATUS_KHR = 0x91B1; + + [NativeName(NativeNameType.Const, "GL_KHR_robust_buffer_access_behavior")] + public const int GL_KHR_ROBUST_BUFFER_ACCESS_BEHAVIOR = 1; + + [NativeName(NativeNameType.Const, "GL_KHR_robustness")] + public const int GL_KHR_ROBUSTNESS = 1; + + [NativeName(NativeNameType.Const, "GL_CONTEXT_ROBUST_ACCESS")] + public const int GL_CONTEXT_ROBUST_ACCESS = 0x90F3; + + [NativeName(NativeNameType.Const, "GL_KHR_shader_subgroup")] + public const int GL_KHR_SHADER_SUBGROUP = 1; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_SIZE_KHR")] + public const int GL_SUBGROUP_SIZE_KHR = 0x9532; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_SUPPORTED_STAGES_KHR")] + public const int GL_SUBGROUP_SUPPORTED_STAGES_KHR = 0x9533; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_SUPPORTED_FEATURES_KHR")] + public const int GL_SUBGROUP_SUPPORTED_FEATURES_KHR = 0x9534; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_QUAD_ALL_STAGES_KHR")] + public const int GL_SUBGROUP_QUAD_ALL_STAGES_KHR = 0x9535; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_FEATURE_BASIC_BIT_KHR")] + public const int GL_SUBGROUP_FEATURE_BASIC_BIT_KHR = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_FEATURE_VOTE_BIT_KHR")] + public const int GL_SUBGROUP_FEATURE_VOTE_BIT_KHR = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_FEATURE_ARITHMETIC_BIT_KHR")] + public const int GL_SUBGROUP_FEATURE_ARITHMETIC_BIT_KHR = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_FEATURE_BALLOT_BIT_KHR")] + public const int GL_SUBGROUP_FEATURE_BALLOT_BIT_KHR = 0x00000008; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_FEATURE_SHUFFLE_BIT_KHR")] + public const int GL_SUBGROUP_FEATURE_SHUFFLE_BIT_KHR = 0x00000010; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT_KHR")] + public const int GL_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT_KHR = 0x00000020; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_FEATURE_CLUSTERED_BIT_KHR")] + public const int GL_SUBGROUP_FEATURE_CLUSTERED_BIT_KHR = 0x00000040; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_FEATURE_QUAD_BIT_KHR")] + public const int GL_SUBGROUP_FEATURE_QUAD_BIT_KHR = 0x00000080; + + [NativeName(NativeNameType.Const, "GL_KHR_texture_compression_astc_hdr")] + public const int GL_KHR_TEXTURE_COMPRESSION_ASTC_HDR = 1; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_4x4_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_4X4_KHR = 0x93B0; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_5x4_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_5X4_KHR = 0x93B1; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_5x5_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_5X5_KHR = 0x93B2; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_6x5_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_6X5_KHR = 0x93B3; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_6x6_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_6X6_KHR = 0x93B4; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_8x5_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_8X5_KHR = 0x93B5; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_8x6_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_8X6_KHR = 0x93B6; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_8x8_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_8X8_KHR = 0x93B7; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_10x5_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_10X5_KHR = 0x93B8; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_10x6_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_10X6_KHR = 0x93B9; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_10x8_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_10X8_KHR = 0x93BA; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_10x10_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_10X10_KHR = 0x93BB; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_12x10_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_12X10_KHR = 0x93BC; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_ASTC_12x12_KHR")] + public const int GL_COMPRESSED_RGBA_ASTC_12X12_KHR = 0x93BD; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4X4_KHR = 0x93D0; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5X4_KHR = 0x93D1; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5X5_KHR = 0x93D2; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6X5_KHR = 0x93D3; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6X6_KHR = 0x93D4; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8X5_KHR = 0x93D5; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8X6_KHR = 0x93D6; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8X8_KHR = 0x93D7; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10X5_KHR = 0x93D8; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10X6_KHR = 0x93D9; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10X8_KHR = 0x93DA; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10X10_KHR = 0x93DB; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12X10_KHR = 0x93DC; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR")] + public const int GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12X12_KHR = 0x93DD; + + [NativeName(NativeNameType.Const, "GL_KHR_texture_compression_astc_ldr")] + public const int GL_KHR_TEXTURE_COMPRESSION_ASTC_LDR = 1; + + [NativeName(NativeNameType.Const, "GL_KHR_texture_compression_astc_sliced_3d")] + public const int GL_KHR_TEXTURE_COMPRESSION_ASTC_SLICED_3D = 1; + + [NativeName(NativeNameType.Const, "GL_OES_byte_coordinates")] + public const int GL_OES_BYTE_COORDINATES = 1; + + [NativeName(NativeNameType.Const, "GL_OES_compressed_paletted_texture")] + public const int GL_OES_COMPRESSED_PALETTED_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_PALETTE4_RGB8_OES")] + public const int GL_PALETTE4_RGB8_OES = 0x8B90; + + [NativeName(NativeNameType.Const, "GL_PALETTE4_RGBA8_OES")] + public const int GL_PALETTE4_RGBA8_OES = 0x8B91; + + [NativeName(NativeNameType.Const, "GL_PALETTE4_R5_G6_B5_OES")] + public const int GL_PALETTE4_R5_G6_B5_OES = 0x8B92; + + [NativeName(NativeNameType.Const, "GL_PALETTE4_RGBA4_OES")] + public const int GL_PALETTE4_RGBA4_OES = 0x8B93; + + [NativeName(NativeNameType.Const, "GL_PALETTE4_RGB5_A1_OES")] + public const int GL_PALETTE4_RGB5_A1_OES = 0x8B94; + + [NativeName(NativeNameType.Const, "GL_PALETTE8_RGB8_OES")] + public const int GL_PALETTE8_RGB8_OES = 0x8B95; + + [NativeName(NativeNameType.Const, "GL_PALETTE8_RGBA8_OES")] + public const int GL_PALETTE8_RGBA8_OES = 0x8B96; + + [NativeName(NativeNameType.Const, "GL_PALETTE8_R5_G6_B5_OES")] + public const int GL_PALETTE8_R5_G6_B5_OES = 0x8B97; + + [NativeName(NativeNameType.Const, "GL_PALETTE8_RGBA4_OES")] + public const int GL_PALETTE8_RGBA4_OES = 0x8B98; + + [NativeName(NativeNameType.Const, "GL_PALETTE8_RGB5_A1_OES")] + public const int GL_PALETTE8_RGB5_A1_OES = 0x8B99; + + [NativeName(NativeNameType.Const, "GL_OES_fixed_point")] + public const int GL_OES_FIXED_POINT = 1; + + [NativeName(NativeNameType.Const, "GL_FIXED_OES")] + public const int GL_FIXED_OES = 0x140C; + + [NativeName(NativeNameType.Const, "GL_OES_query_matrix")] + public const int GL_OES_QUERY_MATRIX = 1; + + [NativeName(NativeNameType.Const, "GL_OES_read_format")] + public const int GL_OES_READ_FORMAT = 1; + + [NativeName(NativeNameType.Const, "GL_IMPLEMENTATION_COLOR_READ_TYPE_OES")] + public const int GL_IMPLEMENTATION_COLOR_READ_TYPE_OES = 0x8B9A; + + [NativeName(NativeNameType.Const, "GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES")] + public const int GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES = 0x8B9B; + + [NativeName(NativeNameType.Const, "GL_OES_single_precision")] + public const int GL_OES_SINGLE_PRECISION = 1; + + [NativeName(NativeNameType.Const, "GL_3DFX_multisample")] + public const int GL_3DFX_MULTISAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_3DFX")] + public const int GL_MULTISAMPLE_3DFX = 0x86B2; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_BUFFERS_3DFX")] + public const int GL_SAMPLE_BUFFERS_3DFX = 0x86B3; + + [NativeName(NativeNameType.Const, "GL_SAMPLES_3DFX")] + public const int GL_SAMPLES_3DFX = 0x86B4; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_BIT_3DFX")] + public const int GL_MULTISAMPLE_BIT_3DFX = 0x20000000; + + [NativeName(NativeNameType.Const, "GL_3DFX_tbuffer")] + public const int GL_3DFX_TBUFFER = 1; + + [NativeName(NativeNameType.Const, "GL_3DFX_texture_compression_FXT1")] + public const int GL_3DFX_TEXTURE_COMPRESSION_FXT1 = 1; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGB_FXT1_3DFX")] + public const int GL_COMPRESSED_RGB_FXT1_3DFX = 0x86B0; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_FXT1_3DFX")] + public const int GL_COMPRESSED_RGBA_FXT1_3DFX = 0x86B1; + + [NativeName(NativeNameType.Const, "GL_AMD_blend_minmax_factor")] + public const int GL_AMD_BLEND_MINMAX_FACTOR = 1; + + [NativeName(NativeNameType.Const, "GL_FACTOR_MIN_AMD")] + public const int GL_FACTOR_MIN_AMD = 0x901C; + + [NativeName(NativeNameType.Const, "GL_FACTOR_MAX_AMD")] + public const int GL_FACTOR_MAX_AMD = 0x901D; + + [NativeName(NativeNameType.Const, "GL_AMD_conservative_depth")] + public const int GL_AMD_CONSERVATIVE_DEPTH = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_debug_output")] + public const int GL_AMD_DEBUG_OUTPUT = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_DEBUG_MESSAGE_LENGTH_AMD")] + public const int GL_MAX_DEBUG_MESSAGE_LENGTH_AMD = 0x9143; + + [NativeName(NativeNameType.Const, "GL_MAX_DEBUG_LOGGED_MESSAGES_AMD")] + public const int GL_MAX_DEBUG_LOGGED_MESSAGES_AMD = 0x9144; + + [NativeName(NativeNameType.Const, "GL_DEBUG_LOGGED_MESSAGES_AMD")] + public const int GL_DEBUG_LOGGED_MESSAGES_AMD = 0x9145; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SEVERITY_HIGH_AMD")] + public const int GL_DEBUG_SEVERITY_HIGH_AMD = 0x9146; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SEVERITY_MEDIUM_AMD")] + public const int GL_DEBUG_SEVERITY_MEDIUM_AMD = 0x9147; + + [NativeName(NativeNameType.Const, "GL_DEBUG_SEVERITY_LOW_AMD")] + public const int GL_DEBUG_SEVERITY_LOW_AMD = 0x9148; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CATEGORY_API_ERROR_AMD")] + public const int GL_DEBUG_CATEGORY_API_ERROR_AMD = 0x9149; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD")] + public const int GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD = 0x914A; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CATEGORY_DEPRECATION_AMD")] + public const int GL_DEBUG_CATEGORY_DEPRECATION_AMD = 0x914B; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD")] + public const int GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD = 0x914C; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CATEGORY_PERFORMANCE_AMD")] + public const int GL_DEBUG_CATEGORY_PERFORMANCE_AMD = 0x914D; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD")] + public const int GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD = 0x914E; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CATEGORY_APPLICATION_AMD")] + public const int GL_DEBUG_CATEGORY_APPLICATION_AMD = 0x914F; + + [NativeName(NativeNameType.Const, "GL_DEBUG_CATEGORY_OTHER_AMD")] + public const int GL_DEBUG_CATEGORY_OTHER_AMD = 0x9150; + + [NativeName(NativeNameType.Const, "GL_AMD_depth_clamp_separate")] + public const int GL_AMD_DEPTH_CLAMP_SEPARATE = 1; + + [NativeName(NativeNameType.Const, "GL_DEPTH_CLAMP_NEAR_AMD")] + public const int GL_DEPTH_CLAMP_NEAR_AMD = 0x901E; + + [NativeName(NativeNameType.Const, "GL_DEPTH_CLAMP_FAR_AMD")] + public const int GL_DEPTH_CLAMP_FAR_AMD = 0x901F; + + [NativeName(NativeNameType.Const, "GL_AMD_draw_buffers_blend")] + public const int GL_AMD_DRAW_BUFFERS_BLEND = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_framebuffer_multisample_advanced")] + public const int GL_AMD_FRAMEBUFFER_MULTISAMPLE_ADVANCED = 1; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_STORAGE_SAMPLES_AMD")] + public const int GL_RENDERBUFFER_STORAGE_SAMPLES_AMD = 0x91B2; + + [NativeName(NativeNameType.Const, "GL_MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD")] + public const int GL_MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD = 0x91B3; + + [NativeName(NativeNameType.Const, "GL_MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD")] + public const int GL_MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD = 0x91B4; + + [NativeName(NativeNameType.Const, "GL_MAX_DEPTH_STENCIL_FRAMEBUFFER_SAMPLES_AMD")] + public const int GL_MAX_DEPTH_STENCIL_FRAMEBUFFER_SAMPLES_AMD = 0x91B5; + + [NativeName(NativeNameType.Const, "GL_NUM_SUPPORTED_MULTISAMPLE_MODES_AMD")] + public const int GL_NUM_SUPPORTED_MULTISAMPLE_MODES_AMD = 0x91B6; + + [NativeName(NativeNameType.Const, "GL_SUPPORTED_MULTISAMPLE_MODES_AMD")] + public const int GL_SUPPORTED_MULTISAMPLE_MODES_AMD = 0x91B7; + + [NativeName(NativeNameType.Const, "GL_AMD_framebuffer_sample_positions")] + public const int GL_AMD_FRAMEBUFFER_SAMPLE_POSITIONS = 1; + + [NativeName(NativeNameType.Const, "GL_SUBSAMPLE_DISTANCE_AMD")] + public const int GL_SUBSAMPLE_DISTANCE_AMD = 0x883F; + + [NativeName(NativeNameType.Const, "GL_PIXELS_PER_SAMPLE_PATTERN_X_AMD")] + public const int GL_PIXELS_PER_SAMPLE_PATTERN_X_AMD = 0x91AE; + + [NativeName(NativeNameType.Const, "GL_PIXELS_PER_SAMPLE_PATTERN_Y_AMD")] + public const int GL_PIXELS_PER_SAMPLE_PATTERN_Y_AMD = 0x91AF; + + [NativeName(NativeNameType.Const, "GL_ALL_PIXELS_AMD")] + public const uint GL_ALL_PIXELS_AMD = 0xFFFFFFFF; + + [NativeName(NativeNameType.Const, "GL_AMD_gcn_shader")] + public const int GL_AMD_GCN_SHADER = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_gpu_shader_half_float")] + public const int GL_AMD_GPU_SHADER_HALF_FLOAT = 1; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_NV")] + public const int GL_FLOAT16_NV = 0x8FF8; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_VEC2_NV")] + public const int GL_FLOAT16_VEC2_NV = 0x8FF9; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_VEC3_NV")] + public const int GL_FLOAT16_VEC3_NV = 0x8FFA; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_VEC4_NV")] + public const int GL_FLOAT16_VEC4_NV = 0x8FFB; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_MAT2_AMD")] + public const int GL_FLOAT16_MAT2_AMD = 0x91C5; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_MAT3_AMD")] + public const int GL_FLOAT16_MAT3_AMD = 0x91C6; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_MAT4_AMD")] + public const int GL_FLOAT16_MAT4_AMD = 0x91C7; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_MAT2x3_AMD")] + public const int GL_FLOAT16_MAT2X3_AMD = 0x91C8; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_MAT2x4_AMD")] + public const int GL_FLOAT16_MAT2X4_AMD = 0x91C9; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_MAT3x2_AMD")] + public const int GL_FLOAT16_MAT3X2_AMD = 0x91CA; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_MAT3x4_AMD")] + public const int GL_FLOAT16_MAT3X4_AMD = 0x91CB; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_MAT4x2_AMD")] + public const int GL_FLOAT16_MAT4X2_AMD = 0x91CC; + + [NativeName(NativeNameType.Const, "GL_FLOAT16_MAT4x3_AMD")] + public const int GL_FLOAT16_MAT4X3_AMD = 0x91CD; + + [NativeName(NativeNameType.Const, "GL_AMD_gpu_shader_int16")] + public const int GL_AMD_GPU_SHADER_INT16 = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_gpu_shader_int64")] + public const int GL_AMD_GPU_SHADER_INT64 = 1; + + [NativeName(NativeNameType.Const, "GL_INT64_NV")] + public const int GL_INT64_NV = 0x140E; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT64_NV")] + public const int GL_UNSIGNED_INT64_NV = 0x140F; + + [NativeName(NativeNameType.Const, "GL_INT8_NV")] + public const int GL_INT8_NV = 0x8FE0; + + [NativeName(NativeNameType.Const, "GL_INT8_VEC2_NV")] + public const int GL_INT8_VEC2_NV = 0x8FE1; + + [NativeName(NativeNameType.Const, "GL_INT8_VEC3_NV")] + public const int GL_INT8_VEC3_NV = 0x8FE2; + + [NativeName(NativeNameType.Const, "GL_INT8_VEC4_NV")] + public const int GL_INT8_VEC4_NV = 0x8FE3; + + [NativeName(NativeNameType.Const, "GL_INT16_NV")] + public const int GL_INT16_NV = 0x8FE4; + + [NativeName(NativeNameType.Const, "GL_INT16_VEC2_NV")] + public const int GL_INT16_VEC2_NV = 0x8FE5; + + [NativeName(NativeNameType.Const, "GL_INT16_VEC3_NV")] + public const int GL_INT16_VEC3_NV = 0x8FE6; + + [NativeName(NativeNameType.Const, "GL_INT16_VEC4_NV")] + public const int GL_INT16_VEC4_NV = 0x8FE7; + + [NativeName(NativeNameType.Const, "GL_INT64_VEC2_NV")] + public const int GL_INT64_VEC2_NV = 0x8FE9; + + [NativeName(NativeNameType.Const, "GL_INT64_VEC3_NV")] + public const int GL_INT64_VEC3_NV = 0x8FEA; + + [NativeName(NativeNameType.Const, "GL_INT64_VEC4_NV")] + public const int GL_INT64_VEC4_NV = 0x8FEB; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT8_NV")] + public const int GL_UNSIGNED_INT8_NV = 0x8FEC; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT8_VEC2_NV")] + public const int GL_UNSIGNED_INT8_VEC2_NV = 0x8FED; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT8_VEC3_NV")] + public const int GL_UNSIGNED_INT8_VEC3_NV = 0x8FEE; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT8_VEC4_NV")] + public const int GL_UNSIGNED_INT8_VEC4_NV = 0x8FEF; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT16_NV")] + public const int GL_UNSIGNED_INT16_NV = 0x8FF0; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT16_VEC2_NV")] + public const int GL_UNSIGNED_INT16_VEC2_NV = 0x8FF1; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT16_VEC3_NV")] + public const int GL_UNSIGNED_INT16_VEC3_NV = 0x8FF2; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT16_VEC4_NV")] + public const int GL_UNSIGNED_INT16_VEC4_NV = 0x8FF3; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT64_VEC2_NV")] + public const int GL_UNSIGNED_INT64_VEC2_NV = 0x8FF5; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT64_VEC3_NV")] + public const int GL_UNSIGNED_INT64_VEC3_NV = 0x8FF6; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT64_VEC4_NV")] + public const int GL_UNSIGNED_INT64_VEC4_NV = 0x8FF7; + + [NativeName(NativeNameType.Const, "GL_AMD_interleaved_elements")] + public const int GL_AMD_INTERLEAVED_ELEMENTS = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ELEMENT_SWIZZLE_AMD")] + public const int GL_VERTEX_ELEMENT_SWIZZLE_AMD = 0x91A4; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ID_SWIZZLE_AMD")] + public const int GL_VERTEX_ID_SWIZZLE_AMD = 0x91A5; + + [NativeName(NativeNameType.Const, "GL_AMD_multi_draw_indirect")] + public const int GL_AMD_MULTI_DRAW_INDIRECT = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_name_gen_delete")] + public const int GL_AMD_NAME_GEN_DELETE = 1; + + [NativeName(NativeNameType.Const, "GL_DATA_BUFFER_AMD")] + public const int GL_DATA_BUFFER_AMD = 0x9151; + + [NativeName(NativeNameType.Const, "GL_PERFORMANCE_MONITOR_AMD")] + public const int GL_PERFORMANCE_MONITOR_AMD = 0x9152; + + [NativeName(NativeNameType.Const, "GL_QUERY_OBJECT_AMD")] + public const int GL_QUERY_OBJECT_AMD = 0x9153; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_OBJECT_AMD")] + public const int GL_VERTEX_ARRAY_OBJECT_AMD = 0x9154; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_OBJECT_AMD")] + public const int GL_SAMPLER_OBJECT_AMD = 0x9155; + + [NativeName(NativeNameType.Const, "GL_AMD_occlusion_query_event")] + public const int GL_AMD_OCCLUSION_QUERY_EVENT = 1; + + [NativeName(NativeNameType.Const, "GL_OCCLUSION_QUERY_EVENT_MASK_AMD")] + public const int GL_OCCLUSION_QUERY_EVENT_MASK_AMD = 0x874F; + + [NativeName(NativeNameType.Const, "GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD")] + public const int GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD")] + public const int GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD")] + public const int GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD")] + public const int GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD = 0x00000008; + + [NativeName(NativeNameType.Const, "GL_QUERY_ALL_EVENT_BITS_AMD")] + public const uint GL_QUERY_ALL_EVENT_BITS_AMD = 0xFFFFFFFF; + + [NativeName(NativeNameType.Const, "GL_AMD_performance_monitor")] + public const int GL_AMD_PERFORMANCE_MONITOR = 1; + + [NativeName(NativeNameType.Const, "GL_COUNTER_TYPE_AMD")] + public const int GL_COUNTER_TYPE_AMD = 0x8BC0; + + [NativeName(NativeNameType.Const, "GL_COUNTER_RANGE_AMD")] + public const int GL_COUNTER_RANGE_AMD = 0x8BC1; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT64_AMD")] + public const int GL_UNSIGNED_INT64_AMD = 0x8BC2; + + [NativeName(NativeNameType.Const, "GL_PERCENTAGE_AMD")] + public const int GL_PERCENTAGE_AMD = 0x8BC3; + + [NativeName(NativeNameType.Const, "GL_PERFMON_RESULT_AVAILABLE_AMD")] + public const int GL_PERFMON_RESULT_AVAILABLE_AMD = 0x8BC4; + + [NativeName(NativeNameType.Const, "GL_PERFMON_RESULT_SIZE_AMD")] + public const int GL_PERFMON_RESULT_SIZE_AMD = 0x8BC5; + + [NativeName(NativeNameType.Const, "GL_PERFMON_RESULT_AMD")] + public const int GL_PERFMON_RESULT_AMD = 0x8BC6; + + [NativeName(NativeNameType.Const, "GL_AMD_pinned_memory")] + public const int GL_AMD_PINNED_MEMORY = 1; + + [NativeName(NativeNameType.Const, "GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD")] + public const int GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD = 0x9160; + + [NativeName(NativeNameType.Const, "GL_AMD_query_buffer_object")] + public const int GL_AMD_QUERY_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_QUERY_BUFFER_AMD")] + public const int GL_QUERY_BUFFER_AMD = 0x9192; + + [NativeName(NativeNameType.Const, "GL_QUERY_BUFFER_BINDING_AMD")] + public const int GL_QUERY_BUFFER_BINDING_AMD = 0x9193; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESULT_NO_WAIT_AMD")] + public const int GL_QUERY_RESULT_NO_WAIT_AMD = 0x9194; + + [NativeName(NativeNameType.Const, "GL_AMD_sample_positions")] + public const int GL_AMD_SAMPLE_POSITIONS = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_seamless_cubemap_per_texture")] + public const int GL_AMD_SEAMLESS_CUBEMAP_PER_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_shader_atomic_counter_ops")] + public const int GL_AMD_SHADER_ATOMIC_COUNTER_OPS = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_shader_ballot")] + public const int GL_AMD_SHADER_BALLOT = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_shader_explicit_vertex_parameter")] + public const int GL_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_shader_gpu_shader_half_float_fetch")] + public const int GL_AMD_SHADER_GPU_SHADER_HALF_FLOAT_FETCH = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_shader_image_load_store_lod")] + public const int GL_AMD_SHADER_IMAGE_LOAD_STORE_LOD = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_shader_stencil_export")] + public const int GL_AMD_SHADER_STENCIL_EXPORT = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_shader_trinary_minmax")] + public const int GL_AMD_SHADER_TRINARY_MINMAX = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_sparse_texture")] + public const int GL_AMD_SPARSE_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_VIRTUAL_PAGE_SIZE_X_AMD")] + public const int GL_VIRTUAL_PAGE_SIZE_X_AMD = 0x9195; + + [NativeName(NativeNameType.Const, "GL_VIRTUAL_PAGE_SIZE_Y_AMD")] + public const int GL_VIRTUAL_PAGE_SIZE_Y_AMD = 0x9196; + + [NativeName(NativeNameType.Const, "GL_VIRTUAL_PAGE_SIZE_Z_AMD")] + public const int GL_VIRTUAL_PAGE_SIZE_Z_AMD = 0x9197; + + [NativeName(NativeNameType.Const, "GL_MAX_SPARSE_TEXTURE_SIZE_AMD")] + public const int GL_MAX_SPARSE_TEXTURE_SIZE_AMD = 0x9198; + + [NativeName(NativeNameType.Const, "GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD")] + public const int GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD = 0x9199; + + [NativeName(NativeNameType.Const, "GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS")] + public const int GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS = 0x919A; + + [NativeName(NativeNameType.Const, "GL_MIN_SPARSE_LEVEL_AMD")] + public const int GL_MIN_SPARSE_LEVEL_AMD = 0x919B; + + [NativeName(NativeNameType.Const, "GL_MIN_LOD_WARNING_AMD")] + public const int GL_MIN_LOD_WARNING_AMD = 0x919C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_STORAGE_SPARSE_BIT_AMD")] + public const int GL_TEXTURE_STORAGE_SPARSE_BIT_AMD = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_AMD_stencil_operation_extended")] + public const int GL_AMD_STENCIL_OPERATION_EXTENDED = 1; + + [NativeName(NativeNameType.Const, "GL_SET_AMD")] + public const int GL_SET_AMD = 0x874A; + + [NativeName(NativeNameType.Const, "GL_REPLACE_VALUE_AMD")] + public const int GL_REPLACE_VALUE_AMD = 0x874B; + + [NativeName(NativeNameType.Const, "GL_STENCIL_OP_VALUE_AMD")] + public const int GL_STENCIL_OP_VALUE_AMD = 0x874C; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_OP_VALUE_AMD")] + public const int GL_STENCIL_BACK_OP_VALUE_AMD = 0x874D; + + [NativeName(NativeNameType.Const, "GL_AMD_texture_gather_bias_lod")] + public const int GL_AMD_TEXTURE_GATHER_BIAS_LOD = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_texture_texture4")] + public const int GL_AMD_TEXTURE_TEXTURE4 = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_transform_feedback3_lines_triangles")] + public const int GL_AMD_TRANSFORM_FEEDBACK3_LINES_TRIANGLES = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_transform_feedback4")] + public const int GL_AMD_TRANSFORM_FEEDBACK4 = 1; + + [NativeName(NativeNameType.Const, "GL_STREAM_RASTERIZATION_AMD")] + public const int GL_STREAM_RASTERIZATION_AMD = 0x91A0; + + [NativeName(NativeNameType.Const, "GL_AMD_vertex_shader_layer")] + public const int GL_AMD_VERTEX_SHADER_LAYER = 1; + + [NativeName(NativeNameType.Const, "GL_AMD_vertex_shader_tessellator")] + public const int GL_AMD_VERTEX_SHADER_TESSELLATOR = 1; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_BUFFER_AMD")] + public const int GL_SAMPLER_BUFFER_AMD = 0x9001; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_BUFFER_AMD")] + public const int GL_INT_SAMPLER_BUFFER_AMD = 0x9002; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD")] + public const int GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD = 0x9003; + + [NativeName(NativeNameType.Const, "GL_TESSELLATION_MODE_AMD")] + public const int GL_TESSELLATION_MODE_AMD = 0x9004; + + [NativeName(NativeNameType.Const, "GL_TESSELLATION_FACTOR_AMD")] + public const int GL_TESSELLATION_FACTOR_AMD = 0x9005; + + [NativeName(NativeNameType.Const, "GL_DISCRETE_AMD")] + public const int GL_DISCRETE_AMD = 0x9006; + + [NativeName(NativeNameType.Const, "GL_CONTINUOUS_AMD")] + public const int GL_CONTINUOUS_AMD = 0x9007; + + [NativeName(NativeNameType.Const, "GL_AMD_vertex_shader_viewport_index")] + public const int GL_AMD_VERTEX_SHADER_VIEWPORT_INDEX = 1; + + [NativeName(NativeNameType.Const, "GL_APPLE_aux_depth_stencil")] + public const int GL_APPLE_AUX_DEPTH_STENCIL = 1; + + [NativeName(NativeNameType.Const, "GL_AUX_DEPTH_STENCIL_APPLE")] + public const int GL_AUX_DEPTH_STENCIL_APPLE = 0x8A14; + + [NativeName(NativeNameType.Const, "GL_APPLE_client_storage")] + public const int GL_APPLE_CLIENT_STORAGE = 1; + + [NativeName(NativeNameType.Const, "GL_UNPACK_CLIENT_STORAGE_APPLE")] + public const int GL_UNPACK_CLIENT_STORAGE_APPLE = 0x85B2; + + [NativeName(NativeNameType.Const, "GL_APPLE_element_array")] + public const int GL_APPLE_ELEMENT_ARRAY = 1; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_APPLE")] + public const int GL_ELEMENT_ARRAY_APPLE = 0x8A0C; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_TYPE_APPLE")] + public const int GL_ELEMENT_ARRAY_TYPE_APPLE = 0x8A0D; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_POINTER_APPLE")] + public const int GL_ELEMENT_ARRAY_POINTER_APPLE = 0x8A0E; + + [NativeName(NativeNameType.Const, "GL_APPLE_fence")] + public const int GL_APPLE_FENCE = 1; + + [NativeName(NativeNameType.Const, "GL_DRAW_PIXELS_APPLE")] + public const int GL_DRAW_PIXELS_APPLE = 0x8A0A; + + [NativeName(NativeNameType.Const, "GL_FENCE_APPLE")] + public const int GL_FENCE_APPLE = 0x8A0B; + + [NativeName(NativeNameType.Const, "GL_APPLE_float_pixels")] + public const int GL_APPLE_FLOAT_PIXELS = 1; + + [NativeName(NativeNameType.Const, "GL_HALF_APPLE")] + public const int GL_HALF_APPLE = 0x140B; + + [NativeName(NativeNameType.Const, "GL_RGBA_FLOAT32_APPLE")] + public const int GL_RGBA_FLOAT32_APPLE = 0x8814; + + [NativeName(NativeNameType.Const, "GL_RGB_FLOAT32_APPLE")] + public const int GL_RGB_FLOAT32_APPLE = 0x8815; + + [NativeName(NativeNameType.Const, "GL_ALPHA_FLOAT32_APPLE")] + public const int GL_ALPHA_FLOAT32_APPLE = 0x8816; + + [NativeName(NativeNameType.Const, "GL_INTENSITY_FLOAT32_APPLE")] + public const int GL_INTENSITY_FLOAT32_APPLE = 0x8817; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_FLOAT32_APPLE")] + public const int GL_LUMINANCE_FLOAT32_APPLE = 0x8818; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA_FLOAT32_APPLE")] + public const int GL_LUMINANCE_ALPHA_FLOAT32_APPLE = 0x8819; + + [NativeName(NativeNameType.Const, "GL_RGBA_FLOAT16_APPLE")] + public const int GL_RGBA_FLOAT16_APPLE = 0x881A; + + [NativeName(NativeNameType.Const, "GL_RGB_FLOAT16_APPLE")] + public const int GL_RGB_FLOAT16_APPLE = 0x881B; + + [NativeName(NativeNameType.Const, "GL_ALPHA_FLOAT16_APPLE")] + public const int GL_ALPHA_FLOAT16_APPLE = 0x881C; + + [NativeName(NativeNameType.Const, "GL_INTENSITY_FLOAT16_APPLE")] + public const int GL_INTENSITY_FLOAT16_APPLE = 0x881D; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_FLOAT16_APPLE")] + public const int GL_LUMINANCE_FLOAT16_APPLE = 0x881E; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA_FLOAT16_APPLE")] + public const int GL_LUMINANCE_ALPHA_FLOAT16_APPLE = 0x881F; + + [NativeName(NativeNameType.Const, "GL_COLOR_FLOAT_APPLE")] + public const int GL_COLOR_FLOAT_APPLE = 0x8A0F; + + [NativeName(NativeNameType.Const, "GL_APPLE_flush_buffer_range")] + public const int GL_APPLE_FLUSH_BUFFER_RANGE = 1; + + [NativeName(NativeNameType.Const, "GL_BUFFER_SERIALIZED_MODIFY_APPLE")] + public const int GL_BUFFER_SERIALIZED_MODIFY_APPLE = 0x8A12; + + [NativeName(NativeNameType.Const, "GL_BUFFER_FLUSHING_UNMAP_APPLE")] + public const int GL_BUFFER_FLUSHING_UNMAP_APPLE = 0x8A13; + + [NativeName(NativeNameType.Const, "GL_APPLE_object_purgeable")] + public const int GL_APPLE_OBJECT_PURGEABLE = 1; + + [NativeName(NativeNameType.Const, "GL_BUFFER_OBJECT_APPLE")] + public const int GL_BUFFER_OBJECT_APPLE = 0x85B3; + + [NativeName(NativeNameType.Const, "GL_RELEASED_APPLE")] + public const int GL_RELEASED_APPLE = 0x8A19; + + [NativeName(NativeNameType.Const, "GL_VOLATILE_APPLE")] + public const int GL_VOLATILE_APPLE = 0x8A1A; + + [NativeName(NativeNameType.Const, "GL_RETAINED_APPLE")] + public const int GL_RETAINED_APPLE = 0x8A1B; + + [NativeName(NativeNameType.Const, "GL_UNDEFINED_APPLE")] + public const int GL_UNDEFINED_APPLE = 0x8A1C; + + [NativeName(NativeNameType.Const, "GL_PURGEABLE_APPLE")] + public const int GL_PURGEABLE_APPLE = 0x8A1D; + + [NativeName(NativeNameType.Const, "GL_APPLE_rgb_422")] + public const int GL_APPLE_RGB_422 = 1; + + [NativeName(NativeNameType.Const, "GL_RGB_422_APPLE")] + public const int GL_RGB_422_APPLE = 0x8A1F; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_8_8_APPLE")] + public const int GL_UNSIGNED_SHORT_8_8_APPLE = 0x85BA; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_8_8_REV_APPLE")] + public const int GL_UNSIGNED_SHORT_8_8_REV_APPLE = 0x85BB; + + [NativeName(NativeNameType.Const, "GL_RGB_RAW_422_APPLE")] + public const int GL_RGB_RAW_422_APPLE = 0x8A51; + + [NativeName(NativeNameType.Const, "GL_APPLE_row_bytes")] + public const int GL_APPLE_ROW_BYTES = 1; + + [NativeName(NativeNameType.Const, "GL_PACK_ROW_BYTES_APPLE")] + public const int GL_PACK_ROW_BYTES_APPLE = 0x8A15; + + [NativeName(NativeNameType.Const, "GL_UNPACK_ROW_BYTES_APPLE")] + public const int GL_UNPACK_ROW_BYTES_APPLE = 0x8A16; + + [NativeName(NativeNameType.Const, "GL_APPLE_specular_vector")] + public const int GL_APPLE_SPECULAR_VECTOR = 1; + + [NativeName(NativeNameType.Const, "GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE")] + public const int GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE = 0x85B0; + + [NativeName(NativeNameType.Const, "GL_APPLE_texture_range")] + public const int GL_APPLE_TEXTURE_RANGE = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RANGE_LENGTH_APPLE")] + public const int GL_TEXTURE_RANGE_LENGTH_APPLE = 0x85B7; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RANGE_POINTER_APPLE")] + public const int GL_TEXTURE_RANGE_POINTER_APPLE = 0x85B8; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_STORAGE_HINT_APPLE")] + public const int GL_TEXTURE_STORAGE_HINT_APPLE = 0x85BC; + + [NativeName(NativeNameType.Const, "GL_STORAGE_PRIVATE_APPLE")] + public const int GL_STORAGE_PRIVATE_APPLE = 0x85BD; + + [NativeName(NativeNameType.Const, "GL_STORAGE_CACHED_APPLE")] + public const int GL_STORAGE_CACHED_APPLE = 0x85BE; + + [NativeName(NativeNameType.Const, "GL_STORAGE_SHARED_APPLE")] + public const int GL_STORAGE_SHARED_APPLE = 0x85BF; + + [NativeName(NativeNameType.Const, "GL_APPLE_transform_hint")] + public const int GL_APPLE_TRANSFORM_HINT = 1; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_HINT_APPLE")] + public const int GL_TRANSFORM_HINT_APPLE = 0x85B1; + + [NativeName(NativeNameType.Const, "GL_APPLE_vertex_array_object")] + public const int GL_APPLE_VERTEX_ARRAY_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_BINDING_APPLE")] + public const int GL_VERTEX_ARRAY_BINDING_APPLE = 0x85B5; + + [NativeName(NativeNameType.Const, "GL_APPLE_vertex_array_range")] + public const int GL_APPLE_VERTEX_ARRAY_RANGE = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_RANGE_APPLE")] + public const int GL_VERTEX_ARRAY_RANGE_APPLE = 0x851D; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE")] + public const int GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE = 0x851E; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_STORAGE_HINT_APPLE")] + public const int GL_VERTEX_ARRAY_STORAGE_HINT_APPLE = 0x851F; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_RANGE_POINTER_APPLE")] + public const int GL_VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521; + + [NativeName(NativeNameType.Const, "GL_STORAGE_CLIENT_APPLE")] + public const int GL_STORAGE_CLIENT_APPLE = 0x85B4; + + [NativeName(NativeNameType.Const, "GL_APPLE_vertex_program_evaluators")] + public const int GL_APPLE_VERTEX_PROGRAM_EVALUATORS = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_MAP1_APPLE")] + public const int GL_VERTEX_ATTRIB_MAP1_APPLE = 0x8A00; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_MAP2_APPLE")] + public const int GL_VERTEX_ATTRIB_MAP2_APPLE = 0x8A01; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE")] + public const int GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE = 0x8A02; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE")] + public const int GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE = 0x8A03; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE")] + public const int GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE = 0x8A04; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE")] + public const int GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE = 0x8A05; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE")] + public const int GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE = 0x8A06; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE")] + public const int GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE = 0x8A07; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE")] + public const int GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE = 0x8A08; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE")] + public const int GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE = 0x8A09; + + [NativeName(NativeNameType.Const, "GL_APPLE_ycbcr_422")] + public const int GL_APPLE_YCBCR_422 = 1; + + [NativeName(NativeNameType.Const, "GL_YCBCR_422_APPLE")] + public const int GL_YCBCR_422_APPLE = 0x85B9; + + [NativeName(NativeNameType.Const, "GL_ATI_draw_buffers")] + public const int GL_ATI_DRAW_BUFFERS = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_DRAW_BUFFERS_ATI")] + public const int GL_MAX_DRAW_BUFFERS_ATI = 0x8824; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER0_ATI")] + public const int GL_DRAW_BUFFER0_ATI = 0x8825; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER1_ATI")] + public const int GL_DRAW_BUFFER1_ATI = 0x8826; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER2_ATI")] + public const int GL_DRAW_BUFFER2_ATI = 0x8827; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER3_ATI")] + public const int GL_DRAW_BUFFER3_ATI = 0x8828; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER4_ATI")] + public const int GL_DRAW_BUFFER4_ATI = 0x8829; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER5_ATI")] + public const int GL_DRAW_BUFFER5_ATI = 0x882A; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER6_ATI")] + public const int GL_DRAW_BUFFER6_ATI = 0x882B; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER7_ATI")] + public const int GL_DRAW_BUFFER7_ATI = 0x882C; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER8_ATI")] + public const int GL_DRAW_BUFFER8_ATI = 0x882D; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER9_ATI")] + public const int GL_DRAW_BUFFER9_ATI = 0x882E; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER10_ATI")] + public const int GL_DRAW_BUFFER10_ATI = 0x882F; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER11_ATI")] + public const int GL_DRAW_BUFFER11_ATI = 0x8830; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER12_ATI")] + public const int GL_DRAW_BUFFER12_ATI = 0x8831; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER13_ATI")] + public const int GL_DRAW_BUFFER13_ATI = 0x8832; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER14_ATI")] + public const int GL_DRAW_BUFFER14_ATI = 0x8833; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER15_ATI")] + public const int GL_DRAW_BUFFER15_ATI = 0x8834; + + [NativeName(NativeNameType.Const, "GL_ATI_element_array")] + public const int GL_ATI_ELEMENT_ARRAY = 1; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_ATI")] + public const int GL_ELEMENT_ARRAY_ATI = 0x8768; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_TYPE_ATI")] + public const int GL_ELEMENT_ARRAY_TYPE_ATI = 0x8769; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_POINTER_ATI")] + public const int GL_ELEMENT_ARRAY_POINTER_ATI = 0x876A; + + [NativeName(NativeNameType.Const, "GL_ATI_envmap_bumpmap")] + public const int GL_ATI_ENVMAP_BUMPMAP = 1; + + [NativeName(NativeNameType.Const, "GL_BUMP_ROT_MATRIX_ATI")] + public const int GL_BUMP_ROT_MATRIX_ATI = 0x8775; + + [NativeName(NativeNameType.Const, "GL_BUMP_ROT_MATRIX_SIZE_ATI")] + public const int GL_BUMP_ROT_MATRIX_SIZE_ATI = 0x8776; + + [NativeName(NativeNameType.Const, "GL_BUMP_NUM_TEX_UNITS_ATI")] + public const int GL_BUMP_NUM_TEX_UNITS_ATI = 0x8777; + + [NativeName(NativeNameType.Const, "GL_BUMP_TEX_UNITS_ATI")] + public const int GL_BUMP_TEX_UNITS_ATI = 0x8778; + + [NativeName(NativeNameType.Const, "GL_DUDV_ATI")] + public const int GL_DUDV_ATI = 0x8779; + + [NativeName(NativeNameType.Const, "GL_DU8DV8_ATI")] + public const int GL_DU8DV8_ATI = 0x877A; + + [NativeName(NativeNameType.Const, "GL_BUMP_ENVMAP_ATI")] + public const int GL_BUMP_ENVMAP_ATI = 0x877B; + + [NativeName(NativeNameType.Const, "GL_BUMP_TARGET_ATI")] + public const int GL_BUMP_TARGET_ATI = 0x877C; + + [NativeName(NativeNameType.Const, "GL_ATI_fragment_shader")] + public const int GL_ATI_FRAGMENT_SHADER = 1; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_SHADER_ATI")] + public const int GL_FRAGMENT_SHADER_ATI = 0x8920; + + [NativeName(NativeNameType.Const, "GL_REG_0_ATI")] + public const int GL_REG_0_ATI = 0x8921; + + [NativeName(NativeNameType.Const, "GL_REG_1_ATI")] + public const int GL_REG_1_ATI = 0x8922; + + [NativeName(NativeNameType.Const, "GL_REG_2_ATI")] + public const int GL_REG_2_ATI = 0x8923; + + [NativeName(NativeNameType.Const, "GL_REG_3_ATI")] + public const int GL_REG_3_ATI = 0x8924; + + [NativeName(NativeNameType.Const, "GL_REG_4_ATI")] + public const int GL_REG_4_ATI = 0x8925; + + [NativeName(NativeNameType.Const, "GL_REG_5_ATI")] + public const int GL_REG_5_ATI = 0x8926; + + [NativeName(NativeNameType.Const, "GL_REG_6_ATI")] + public const int GL_REG_6_ATI = 0x8927; + + [NativeName(NativeNameType.Const, "GL_REG_7_ATI")] + public const int GL_REG_7_ATI = 0x8928; + + [NativeName(NativeNameType.Const, "GL_REG_8_ATI")] + public const int GL_REG_8_ATI = 0x8929; + + [NativeName(NativeNameType.Const, "GL_REG_9_ATI")] + public const int GL_REG_9_ATI = 0x892A; + + [NativeName(NativeNameType.Const, "GL_REG_10_ATI")] + public const int GL_REG_10_ATI = 0x892B; + + [NativeName(NativeNameType.Const, "GL_REG_11_ATI")] + public const int GL_REG_11_ATI = 0x892C; + + [NativeName(NativeNameType.Const, "GL_REG_12_ATI")] + public const int GL_REG_12_ATI = 0x892D; + + [NativeName(NativeNameType.Const, "GL_REG_13_ATI")] + public const int GL_REG_13_ATI = 0x892E; + + [NativeName(NativeNameType.Const, "GL_REG_14_ATI")] + public const int GL_REG_14_ATI = 0x892F; + + [NativeName(NativeNameType.Const, "GL_REG_15_ATI")] + public const int GL_REG_15_ATI = 0x8930; + + [NativeName(NativeNameType.Const, "GL_REG_16_ATI")] + public const int GL_REG_16_ATI = 0x8931; + + [NativeName(NativeNameType.Const, "GL_REG_17_ATI")] + public const int GL_REG_17_ATI = 0x8932; + + [NativeName(NativeNameType.Const, "GL_REG_18_ATI")] + public const int GL_REG_18_ATI = 0x8933; + + [NativeName(NativeNameType.Const, "GL_REG_19_ATI")] + public const int GL_REG_19_ATI = 0x8934; + + [NativeName(NativeNameType.Const, "GL_REG_20_ATI")] + public const int GL_REG_20_ATI = 0x8935; + + [NativeName(NativeNameType.Const, "GL_REG_21_ATI")] + public const int GL_REG_21_ATI = 0x8936; + + [NativeName(NativeNameType.Const, "GL_REG_22_ATI")] + public const int GL_REG_22_ATI = 0x8937; + + [NativeName(NativeNameType.Const, "GL_REG_23_ATI")] + public const int GL_REG_23_ATI = 0x8938; + + [NativeName(NativeNameType.Const, "GL_REG_24_ATI")] + public const int GL_REG_24_ATI = 0x8939; + + [NativeName(NativeNameType.Const, "GL_REG_25_ATI")] + public const int GL_REG_25_ATI = 0x893A; + + [NativeName(NativeNameType.Const, "GL_REG_26_ATI")] + public const int GL_REG_26_ATI = 0x893B; + + [NativeName(NativeNameType.Const, "GL_REG_27_ATI")] + public const int GL_REG_27_ATI = 0x893C; + + [NativeName(NativeNameType.Const, "GL_REG_28_ATI")] + public const int GL_REG_28_ATI = 0x893D; + + [NativeName(NativeNameType.Const, "GL_REG_29_ATI")] + public const int GL_REG_29_ATI = 0x893E; + + [NativeName(NativeNameType.Const, "GL_REG_30_ATI")] + public const int GL_REG_30_ATI = 0x893F; + + [NativeName(NativeNameType.Const, "GL_REG_31_ATI")] + public const int GL_REG_31_ATI = 0x8940; + + [NativeName(NativeNameType.Const, "GL_CON_0_ATI")] + public const int GL_CON_0_ATI = 0x8941; + + [NativeName(NativeNameType.Const, "GL_CON_1_ATI")] + public const int GL_CON_1_ATI = 0x8942; + + [NativeName(NativeNameType.Const, "GL_CON_2_ATI")] + public const int GL_CON_2_ATI = 0x8943; + + [NativeName(NativeNameType.Const, "GL_CON_3_ATI")] + public const int GL_CON_3_ATI = 0x8944; + + [NativeName(NativeNameType.Const, "GL_CON_4_ATI")] + public const int GL_CON_4_ATI = 0x8945; + + [NativeName(NativeNameType.Const, "GL_CON_5_ATI")] + public const int GL_CON_5_ATI = 0x8946; + + [NativeName(NativeNameType.Const, "GL_CON_6_ATI")] + public const int GL_CON_6_ATI = 0x8947; + + [NativeName(NativeNameType.Const, "GL_CON_7_ATI")] + public const int GL_CON_7_ATI = 0x8948; + + [NativeName(NativeNameType.Const, "GL_CON_8_ATI")] + public const int GL_CON_8_ATI = 0x8949; + + [NativeName(NativeNameType.Const, "GL_CON_9_ATI")] + public const int GL_CON_9_ATI = 0x894A; + + [NativeName(NativeNameType.Const, "GL_CON_10_ATI")] + public const int GL_CON_10_ATI = 0x894B; + + [NativeName(NativeNameType.Const, "GL_CON_11_ATI")] + public const int GL_CON_11_ATI = 0x894C; + + [NativeName(NativeNameType.Const, "GL_CON_12_ATI")] + public const int GL_CON_12_ATI = 0x894D; + + [NativeName(NativeNameType.Const, "GL_CON_13_ATI")] + public const int GL_CON_13_ATI = 0x894E; + + [NativeName(NativeNameType.Const, "GL_CON_14_ATI")] + public const int GL_CON_14_ATI = 0x894F; + + [NativeName(NativeNameType.Const, "GL_CON_15_ATI")] + public const int GL_CON_15_ATI = 0x8950; + + [NativeName(NativeNameType.Const, "GL_CON_16_ATI")] + public const int GL_CON_16_ATI = 0x8951; + + [NativeName(NativeNameType.Const, "GL_CON_17_ATI")] + public const int GL_CON_17_ATI = 0x8952; + + [NativeName(NativeNameType.Const, "GL_CON_18_ATI")] + public const int GL_CON_18_ATI = 0x8953; + + [NativeName(NativeNameType.Const, "GL_CON_19_ATI")] + public const int GL_CON_19_ATI = 0x8954; + + [NativeName(NativeNameType.Const, "GL_CON_20_ATI")] + public const int GL_CON_20_ATI = 0x8955; + + [NativeName(NativeNameType.Const, "GL_CON_21_ATI")] + public const int GL_CON_21_ATI = 0x8956; + + [NativeName(NativeNameType.Const, "GL_CON_22_ATI")] + public const int GL_CON_22_ATI = 0x8957; + + [NativeName(NativeNameType.Const, "GL_CON_23_ATI")] + public const int GL_CON_23_ATI = 0x8958; + + [NativeName(NativeNameType.Const, "GL_CON_24_ATI")] + public const int GL_CON_24_ATI = 0x8959; + + [NativeName(NativeNameType.Const, "GL_CON_25_ATI")] + public const int GL_CON_25_ATI = 0x895A; + + [NativeName(NativeNameType.Const, "GL_CON_26_ATI")] + public const int GL_CON_26_ATI = 0x895B; + + [NativeName(NativeNameType.Const, "GL_CON_27_ATI")] + public const int GL_CON_27_ATI = 0x895C; + + [NativeName(NativeNameType.Const, "GL_CON_28_ATI")] + public const int GL_CON_28_ATI = 0x895D; + + [NativeName(NativeNameType.Const, "GL_CON_29_ATI")] + public const int GL_CON_29_ATI = 0x895E; + + [NativeName(NativeNameType.Const, "GL_CON_30_ATI")] + public const int GL_CON_30_ATI = 0x895F; + + [NativeName(NativeNameType.Const, "GL_CON_31_ATI")] + public const int GL_CON_31_ATI = 0x8960; + + [NativeName(NativeNameType.Const, "GL_MOV_ATI")] + public const int GL_MOV_ATI = 0x8961; + + [NativeName(NativeNameType.Const, "GL_ADD_ATI")] + public const int GL_ADD_ATI = 0x8963; + + [NativeName(NativeNameType.Const, "GL_MUL_ATI")] + public const int GL_MUL_ATI = 0x8964; + + [NativeName(NativeNameType.Const, "GL_SUB_ATI")] + public const int GL_SUB_ATI = 0x8965; + + [NativeName(NativeNameType.Const, "GL_DOT3_ATI")] + public const int GL_DOT3_ATI = 0x8966; + + [NativeName(NativeNameType.Const, "GL_DOT4_ATI")] + public const int GL_DOT4_ATI = 0x8967; + + [NativeName(NativeNameType.Const, "GL_MAD_ATI")] + public const int GL_MAD_ATI = 0x8968; + + [NativeName(NativeNameType.Const, "GL_LERP_ATI")] + public const int GL_LERP_ATI = 0x8969; + + [NativeName(NativeNameType.Const, "GL_CND_ATI")] + public const int GL_CND_ATI = 0x896A; + + [NativeName(NativeNameType.Const, "GL_CND0_ATI")] + public const int GL_CND0_ATI = 0x896B; + + [NativeName(NativeNameType.Const, "GL_DOT2_ADD_ATI")] + public const int GL_DOT2_ADD_ATI = 0x896C; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_INTERPOLATOR_ATI")] + public const int GL_SECONDARY_INTERPOLATOR_ATI = 0x896D; + + [NativeName(NativeNameType.Const, "GL_NUM_FRAGMENT_REGISTERS_ATI")] + public const int GL_NUM_FRAGMENT_REGISTERS_ATI = 0x896E; + + [NativeName(NativeNameType.Const, "GL_NUM_FRAGMENT_CONSTANTS_ATI")] + public const int GL_NUM_FRAGMENT_CONSTANTS_ATI = 0x896F; + + [NativeName(NativeNameType.Const, "GL_NUM_PASSES_ATI")] + public const int GL_NUM_PASSES_ATI = 0x8970; + + [NativeName(NativeNameType.Const, "GL_NUM_INSTRUCTIONS_PER_PASS_ATI")] + public const int GL_NUM_INSTRUCTIONS_PER_PASS_ATI = 0x8971; + + [NativeName(NativeNameType.Const, "GL_NUM_INSTRUCTIONS_TOTAL_ATI")] + public const int GL_NUM_INSTRUCTIONS_TOTAL_ATI = 0x8972; + + [NativeName(NativeNameType.Const, "GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI")] + public const int GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 0x8973; + + [NativeName(NativeNameType.Const, "GL_NUM_LOOPBACK_COMPONENTS_ATI")] + public const int GL_NUM_LOOPBACK_COMPONENTS_ATI = 0x8974; + + [NativeName(NativeNameType.Const, "GL_COLOR_ALPHA_PAIRING_ATI")] + public const int GL_COLOR_ALPHA_PAIRING_ATI = 0x8975; + + [NativeName(NativeNameType.Const, "GL_SWIZZLE_STR_ATI")] + public const int GL_SWIZZLE_STR_ATI = 0x8976; + + [NativeName(NativeNameType.Const, "GL_SWIZZLE_STQ_ATI")] + public const int GL_SWIZZLE_STQ_ATI = 0x8977; + + [NativeName(NativeNameType.Const, "GL_SWIZZLE_STR_DR_ATI")] + public const int GL_SWIZZLE_STR_DR_ATI = 0x8978; + + [NativeName(NativeNameType.Const, "GL_SWIZZLE_STQ_DQ_ATI")] + public const int GL_SWIZZLE_STQ_DQ_ATI = 0x8979; + + [NativeName(NativeNameType.Const, "GL_SWIZZLE_STRQ_ATI")] + public const int GL_SWIZZLE_STRQ_ATI = 0x897A; + + [NativeName(NativeNameType.Const, "GL_SWIZZLE_STRQ_DQ_ATI")] + public const int GL_SWIZZLE_STRQ_DQ_ATI = 0x897B; + + [NativeName(NativeNameType.Const, "GL_RED_BIT_ATI")] + public const int GL_RED_BIT_ATI = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_GREEN_BIT_ATI")] + public const int GL_GREEN_BIT_ATI = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_BLUE_BIT_ATI")] + public const int GL_BLUE_BIT_ATI = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_2X_BIT_ATI")] + public const int GL_2X_BIT_ATI = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_4X_BIT_ATI")] + public const int GL_4X_BIT_ATI = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_8X_BIT_ATI")] + public const int GL_8X_BIT_ATI = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_HALF_BIT_ATI")] + public const int GL_HALF_BIT_ATI = 0x00000008; + + [NativeName(NativeNameType.Const, "GL_QUARTER_BIT_ATI")] + public const int GL_QUARTER_BIT_ATI = 0x00000010; + + [NativeName(NativeNameType.Const, "GL_EIGHTH_BIT_ATI")] + public const int GL_EIGHTH_BIT_ATI = 0x00000020; + + [NativeName(NativeNameType.Const, "GL_SATURATE_BIT_ATI")] + public const int GL_SATURATE_BIT_ATI = 0x00000040; + + [NativeName(NativeNameType.Const, "GL_COMP_BIT_ATI")] + public const int GL_COMP_BIT_ATI = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_NEGATE_BIT_ATI")] + public const int GL_NEGATE_BIT_ATI = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_BIAS_BIT_ATI")] + public const int GL_BIAS_BIT_ATI = 0x00000008; + + [NativeName(NativeNameType.Const, "GL_ATI_map_object_buffer")] + public const int GL_ATI_MAP_OBJECT_BUFFER = 1; + + [NativeName(NativeNameType.Const, "GL_ATI_meminfo")] + public const int GL_ATI_MEMINFO = 1; + + [NativeName(NativeNameType.Const, "GL_VBO_FREE_MEMORY_ATI")] + public const int GL_VBO_FREE_MEMORY_ATI = 0x87FB; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_FREE_MEMORY_ATI")] + public const int GL_TEXTURE_FREE_MEMORY_ATI = 0x87FC; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_FREE_MEMORY_ATI")] + public const int GL_RENDERBUFFER_FREE_MEMORY_ATI = 0x87FD; + + [NativeName(NativeNameType.Const, "GL_ATI_pixel_format_float")] + public const int GL_ATI_PIXEL_FORMAT_FLOAT = 1; + + [NativeName(NativeNameType.Const, "GL_RGBA_FLOAT_MODE_ATI")] + public const int GL_RGBA_FLOAT_MODE_ATI = 0x8820; + + [NativeName(NativeNameType.Const, "GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI")] + public const int GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI = 0x8835; + + [NativeName(NativeNameType.Const, "GL_ATI_pn_triangles")] + public const int GL_ATI_PN_TRIANGLES = 1; + + [NativeName(NativeNameType.Const, "GL_PN_TRIANGLES_ATI")] + public const int GL_PN_TRIANGLES_ATI = 0x87F0; + + [NativeName(NativeNameType.Const, "GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI")] + public const int GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F1; + + [NativeName(NativeNameType.Const, "GL_PN_TRIANGLES_POINT_MODE_ATI")] + public const int GL_PN_TRIANGLES_POINT_MODE_ATI = 0x87F2; + + [NativeName(NativeNameType.Const, "GL_PN_TRIANGLES_NORMAL_MODE_ATI")] + public const int GL_PN_TRIANGLES_NORMAL_MODE_ATI = 0x87F3; + + [NativeName(NativeNameType.Const, "GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI")] + public const int GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F4; + + [NativeName(NativeNameType.Const, "GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI")] + public const int GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87F5; + + [NativeName(NativeNameType.Const, "GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI")] + public const int GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87F6; + + [NativeName(NativeNameType.Const, "GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI")] + public const int GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87F7; + + [NativeName(NativeNameType.Const, "GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI")] + public const int GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87F8; + + [NativeName(NativeNameType.Const, "GL_ATI_separate_stencil")] + public const int GL_ATI_SEPARATE_STENCIL = 1; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_FUNC_ATI")] + public const int GL_STENCIL_BACK_FUNC_ATI = 0x8800; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_FAIL_ATI")] + public const int GL_STENCIL_BACK_FAIL_ATI = 0x8801; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI")] + public const int GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI")] + public const int GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803; + + [NativeName(NativeNameType.Const, "GL_ATI_text_fragment_shader")] + public const int GL_ATI_TEXT_FRAGMENT_SHADER = 1; + + [NativeName(NativeNameType.Const, "GL_TEXT_FRAGMENT_SHADER_ATI")] + public const int GL_TEXT_FRAGMENT_SHADER_ATI = 0x8200; + + [NativeName(NativeNameType.Const, "GL_ATI_texture_env_combine3")] + public const int GL_ATI_TEXTURE_ENV_COMBINE3 = 1; + + [NativeName(NativeNameType.Const, "GL_MODULATE_ADD_ATI")] + public const int GL_MODULATE_ADD_ATI = 0x8744; + + [NativeName(NativeNameType.Const, "GL_MODULATE_SIGNED_ADD_ATI")] + public const int GL_MODULATE_SIGNED_ADD_ATI = 0x8745; + + [NativeName(NativeNameType.Const, "GL_MODULATE_SUBTRACT_ATI")] + public const int GL_MODULATE_SUBTRACT_ATI = 0x8746; + + [NativeName(NativeNameType.Const, "GL_ATI_texture_float")] + public const int GL_ATI_TEXTURE_FLOAT = 1; + + [NativeName(NativeNameType.Const, "GL_RGBA_FLOAT32_ATI")] + public const int GL_RGBA_FLOAT32_ATI = 0x8814; + + [NativeName(NativeNameType.Const, "GL_RGB_FLOAT32_ATI")] + public const int GL_RGB_FLOAT32_ATI = 0x8815; + + [NativeName(NativeNameType.Const, "GL_ALPHA_FLOAT32_ATI")] + public const int GL_ALPHA_FLOAT32_ATI = 0x8816; + + [NativeName(NativeNameType.Const, "GL_INTENSITY_FLOAT32_ATI")] + public const int GL_INTENSITY_FLOAT32_ATI = 0x8817; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_FLOAT32_ATI")] + public const int GL_LUMINANCE_FLOAT32_ATI = 0x8818; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA_FLOAT32_ATI")] + public const int GL_LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819; + + [NativeName(NativeNameType.Const, "GL_RGBA_FLOAT16_ATI")] + public const int GL_RGBA_FLOAT16_ATI = 0x881A; + + [NativeName(NativeNameType.Const, "GL_RGB_FLOAT16_ATI")] + public const int GL_RGB_FLOAT16_ATI = 0x881B; + + [NativeName(NativeNameType.Const, "GL_ALPHA_FLOAT16_ATI")] + public const int GL_ALPHA_FLOAT16_ATI = 0x881C; + + [NativeName(NativeNameType.Const, "GL_INTENSITY_FLOAT16_ATI")] + public const int GL_INTENSITY_FLOAT16_ATI = 0x881D; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_FLOAT16_ATI")] + public const int GL_LUMINANCE_FLOAT16_ATI = 0x881E; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA_FLOAT16_ATI")] + public const int GL_LUMINANCE_ALPHA_FLOAT16_ATI = 0x881F; + + [NativeName(NativeNameType.Const, "GL_ATI_texture_mirror_once")] + public const int GL_ATI_TEXTURE_MIRROR_ONCE = 1; + + [NativeName(NativeNameType.Const, "GL_MIRROR_CLAMP_ATI")] + public const int GL_MIRROR_CLAMP_ATI = 0x8742; + + [NativeName(NativeNameType.Const, "GL_MIRROR_CLAMP_TO_EDGE_ATI")] + public const int GL_MIRROR_CLAMP_TO_EDGE_ATI = 0x8743; + + [NativeName(NativeNameType.Const, "GL_ATI_vertex_array_object")] + public const int GL_ATI_VERTEX_ARRAY_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_STATIC_ATI")] + public const int GL_STATIC_ATI = 0x8760; + + [NativeName(NativeNameType.Const, "GL_DYNAMIC_ATI")] + public const int GL_DYNAMIC_ATI = 0x8761; + + [NativeName(NativeNameType.Const, "GL_PRESERVE_ATI")] + public const int GL_PRESERVE_ATI = 0x8762; + + [NativeName(NativeNameType.Const, "GL_DISCARD_ATI")] + public const int GL_DISCARD_ATI = 0x8763; + + [NativeName(NativeNameType.Const, "GL_OBJECT_BUFFER_SIZE_ATI")] + public const int GL_OBJECT_BUFFER_SIZE_ATI = 0x8764; + + [NativeName(NativeNameType.Const, "GL_OBJECT_BUFFER_USAGE_ATI")] + public const int GL_OBJECT_BUFFER_USAGE_ATI = 0x8765; + + [NativeName(NativeNameType.Const, "GL_ARRAY_OBJECT_BUFFER_ATI")] + public const int GL_ARRAY_OBJECT_BUFFER_ATI = 0x8766; + + [NativeName(NativeNameType.Const, "GL_ARRAY_OBJECT_OFFSET_ATI")] + public const int GL_ARRAY_OBJECT_OFFSET_ATI = 0x8767; + + [NativeName(NativeNameType.Const, "GL_ATI_vertex_attrib_array_object")] + public const int GL_ATI_VERTEX_ATTRIB_ARRAY_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_ATI_vertex_streams")] + public const int GL_ATI_VERTEX_STREAMS = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_STREAMS_ATI")] + public const int GL_MAX_VERTEX_STREAMS_ATI = 0x876B; + + [NativeName(NativeNameType.Const, "GL_VERTEX_STREAM0_ATI")] + public const int GL_VERTEX_STREAM0_ATI = 0x876C; + + [NativeName(NativeNameType.Const, "GL_VERTEX_STREAM1_ATI")] + public const int GL_VERTEX_STREAM1_ATI = 0x876D; + + [NativeName(NativeNameType.Const, "GL_VERTEX_STREAM2_ATI")] + public const int GL_VERTEX_STREAM2_ATI = 0x876E; + + [NativeName(NativeNameType.Const, "GL_VERTEX_STREAM3_ATI")] + public const int GL_VERTEX_STREAM3_ATI = 0x876F; + + [NativeName(NativeNameType.Const, "GL_VERTEX_STREAM4_ATI")] + public const int GL_VERTEX_STREAM4_ATI = 0x8770; + + [NativeName(NativeNameType.Const, "GL_VERTEX_STREAM5_ATI")] + public const int GL_VERTEX_STREAM5_ATI = 0x8771; + + [NativeName(NativeNameType.Const, "GL_VERTEX_STREAM6_ATI")] + public const int GL_VERTEX_STREAM6_ATI = 0x8772; + + [NativeName(NativeNameType.Const, "GL_VERTEX_STREAM7_ATI")] + public const int GL_VERTEX_STREAM7_ATI = 0x8773; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SOURCE_ATI")] + public const int GL_VERTEX_SOURCE_ATI = 0x8774; + + [NativeName(NativeNameType.Const, "GL_EXT_422_pixels")] + public const int GL_EXT_422_PIXELS = 1; + + [NativeName(NativeNameType.Const, "GL_422_EXT")] + public const int GL_422_EXT = 0x80CC; + + [NativeName(NativeNameType.Const, "GL_422_REV_EXT")] + public const int GL_422_REV_EXT = 0x80CD; + + [NativeName(NativeNameType.Const, "GL_422_AVERAGE_EXT")] + public const int GL_422_AVERAGE_EXT = 0x80CE; + + [NativeName(NativeNameType.Const, "GL_422_REV_AVERAGE_EXT")] + public const int GL_422_REV_AVERAGE_EXT = 0x80CF; + + [NativeName(NativeNameType.Const, "GL_EXT_EGL_image_storage")] + public const int GL_EXT_EGL_IMAGE_STORAGE = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_EGL_sync")] + public const int GL_EXT_EGL_SYNC = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_abgr")] + public const int GL_EXT_ABGR = 1; + + [NativeName(NativeNameType.Const, "GL_ABGR_EXT")] + public const int GL_ABGR_EXT = 0x8000; + + [NativeName(NativeNameType.Const, "GL_EXT_bindable_uniform")] + public const int GL_EXT_BINDABLE_UNIFORM = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT")] + public const int GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8DE2; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT")] + public const int GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT")] + public const int GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4; + + [NativeName(NativeNameType.Const, "GL_MAX_BINDABLE_UNIFORM_SIZE_EXT")] + public const int GL_MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8DED; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BUFFER_EXT")] + public const int GL_UNIFORM_BUFFER_EXT = 0x8DEE; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BUFFER_BINDING_EXT")] + public const int GL_UNIFORM_BUFFER_BINDING_EXT = 0x8DEF; + + [NativeName(NativeNameType.Const, "GL_EXT_blend_color")] + public const int GL_EXT_BLEND_COLOR = 1; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_COLOR_EXT")] + public const int GL_CONSTANT_COLOR_EXT = 0x8001; + + [NativeName(NativeNameType.Const, "GL_ONE_MINUS_CONSTANT_COLOR_EXT")] + public const int GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_ALPHA_EXT")] + public const int GL_CONSTANT_ALPHA_EXT = 0x8003; + + [NativeName(NativeNameType.Const, "GL_ONE_MINUS_CONSTANT_ALPHA_EXT")] + public const int GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004; + + [NativeName(NativeNameType.Const, "GL_BLEND_COLOR_EXT")] + public const int GL_BLEND_COLOR_EXT = 0x8005; + + [NativeName(NativeNameType.Const, "GL_EXT_blend_equation_separate")] + public const int GL_EXT_BLEND_EQUATION_SEPARATE = 1; + + [NativeName(NativeNameType.Const, "GL_BLEND_EQUATION_RGB_EXT")] + public const int GL_BLEND_EQUATION_RGB_EXT = 0x8009; + + [NativeName(NativeNameType.Const, "GL_BLEND_EQUATION_ALPHA_EXT")] + public const int GL_BLEND_EQUATION_ALPHA_EXT = 0x883D; + + [NativeName(NativeNameType.Const, "GL_EXT_blend_func_separate")] + public const int GL_EXT_BLEND_FUNC_SEPARATE = 1; + + [NativeName(NativeNameType.Const, "GL_BLEND_DST_RGB_EXT")] + public const int GL_BLEND_DST_RGB_EXT = 0x80C8; + + [NativeName(NativeNameType.Const, "GL_BLEND_SRC_RGB_EXT")] + public const int GL_BLEND_SRC_RGB_EXT = 0x80C9; + + [NativeName(NativeNameType.Const, "GL_BLEND_DST_ALPHA_EXT")] + public const int GL_BLEND_DST_ALPHA_EXT = 0x80CA; + + [NativeName(NativeNameType.Const, "GL_BLEND_SRC_ALPHA_EXT")] + public const int GL_BLEND_SRC_ALPHA_EXT = 0x80CB; + + [NativeName(NativeNameType.Const, "GL_EXT_blend_logic_op")] + public const int GL_EXT_BLEND_LOGIC_OP = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_blend_minmax")] + public const int GL_EXT_BLEND_MINMAX = 1; + + [NativeName(NativeNameType.Const, "GL_MIN_EXT")] + public const int GL_MIN_EXT = 0x8007; + + [NativeName(NativeNameType.Const, "GL_MAX_EXT")] + public const int GL_MAX_EXT = 0x8008; + + [NativeName(NativeNameType.Const, "GL_FUNC_ADD_EXT")] + public const int GL_FUNC_ADD_EXT = 0x8006; + + [NativeName(NativeNameType.Const, "GL_BLEND_EQUATION_EXT")] + public const int GL_BLEND_EQUATION_EXT = 0x8009; + + [NativeName(NativeNameType.Const, "GL_EXT_blend_subtract")] + public const int GL_EXT_BLEND_SUBTRACT = 1; + + [NativeName(NativeNameType.Const, "GL_FUNC_SUBTRACT_EXT")] + public const int GL_FUNC_SUBTRACT_EXT = 0x800A; + + [NativeName(NativeNameType.Const, "GL_FUNC_REVERSE_SUBTRACT_EXT")] + public const int GL_FUNC_REVERSE_SUBTRACT_EXT = 0x800B; + + [NativeName(NativeNameType.Const, "GL_EXT_clip_volume_hint")] + public const int GL_EXT_CLIP_VOLUME_HINT = 1; + + [NativeName(NativeNameType.Const, "GL_CLIP_VOLUME_CLIPPING_HINT_EXT")] + public const int GL_CLIP_VOLUME_CLIPPING_HINT_EXT = 0x80F0; + + [NativeName(NativeNameType.Const, "GL_EXT_cmyka")] + public const int GL_EXT_CMYKA = 1; + + [NativeName(NativeNameType.Const, "GL_CMYK_EXT")] + public const int GL_CMYK_EXT = 0x800C; + + [NativeName(NativeNameType.Const, "GL_CMYKA_EXT")] + public const int GL_CMYKA_EXT = 0x800D; + + [NativeName(NativeNameType.Const, "GL_PACK_CMYK_HINT_EXT")] + public const int GL_PACK_CMYK_HINT_EXT = 0x800E; + + [NativeName(NativeNameType.Const, "GL_UNPACK_CMYK_HINT_EXT")] + public const int GL_UNPACK_CMYK_HINT_EXT = 0x800F; + + [NativeName(NativeNameType.Const, "GL_EXT_color_subtable")] + public const int GL_EXT_COLOR_SUBTABLE = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_compiled_vertex_array")] + public const int GL_EXT_COMPILED_VERTEX_ARRAY = 1; + + [NativeName(NativeNameType.Const, "GL_ARRAY_ELEMENT_LOCK_FIRST_EXT")] + public const int GL_ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81A8; + + [NativeName(NativeNameType.Const, "GL_ARRAY_ELEMENT_LOCK_COUNT_EXT")] + public const int GL_ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81A9; + + [NativeName(NativeNameType.Const, "GL_EXT_convolution")] + public const int GL_EXT_CONVOLUTION = 1; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_1D_EXT")] + public const int GL_CONVOLUTION_1D_EXT = 0x8010; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_2D_EXT")] + public const int GL_CONVOLUTION_2D_EXT = 0x8011; + + [NativeName(NativeNameType.Const, "GL_SEPARABLE_2D_EXT")] + public const int GL_SEPARABLE_2D_EXT = 0x8012; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_BORDER_MODE_EXT")] + public const int GL_CONVOLUTION_BORDER_MODE_EXT = 0x8013; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_FILTER_SCALE_EXT")] + public const int GL_CONVOLUTION_FILTER_SCALE_EXT = 0x8014; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_FILTER_BIAS_EXT")] + public const int GL_CONVOLUTION_FILTER_BIAS_EXT = 0x8015; + + [NativeName(NativeNameType.Const, "GL_REDUCE_EXT")] + public const int GL_REDUCE_EXT = 0x8016; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_FORMAT_EXT")] + public const int GL_CONVOLUTION_FORMAT_EXT = 0x8017; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_WIDTH_EXT")] + public const int GL_CONVOLUTION_WIDTH_EXT = 0x8018; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_HEIGHT_EXT")] + public const int GL_CONVOLUTION_HEIGHT_EXT = 0x8019; + + [NativeName(NativeNameType.Const, "GL_MAX_CONVOLUTION_WIDTH_EXT")] + public const int GL_MAX_CONVOLUTION_WIDTH_EXT = 0x801A; + + [NativeName(NativeNameType.Const, "GL_MAX_CONVOLUTION_HEIGHT_EXT")] + public const int GL_MAX_CONVOLUTION_HEIGHT_EXT = 0x801B; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_RED_SCALE_EXT")] + public const int GL_POST_CONVOLUTION_RED_SCALE_EXT = 0x801C; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_GREEN_SCALE_EXT")] + public const int GL_POST_CONVOLUTION_GREEN_SCALE_EXT = 0x801D; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_BLUE_SCALE_EXT")] + public const int GL_POST_CONVOLUTION_BLUE_SCALE_EXT = 0x801E; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_ALPHA_SCALE_EXT")] + public const int GL_POST_CONVOLUTION_ALPHA_SCALE_EXT = 0x801F; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_RED_BIAS_EXT")] + public const int GL_POST_CONVOLUTION_RED_BIAS_EXT = 0x8020; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_GREEN_BIAS_EXT")] + public const int GL_POST_CONVOLUTION_GREEN_BIAS_EXT = 0x8021; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_BLUE_BIAS_EXT")] + public const int GL_POST_CONVOLUTION_BLUE_BIAS_EXT = 0x8022; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_ALPHA_BIAS_EXT")] + public const int GL_POST_CONVOLUTION_ALPHA_BIAS_EXT = 0x8023; + + [NativeName(NativeNameType.Const, "GL_EXT_coordinate_frame")] + public const int GL_EXT_COORDINATE_FRAME = 1; + + [NativeName(NativeNameType.Const, "GL_TANGENT_ARRAY_EXT")] + public const int GL_TANGENT_ARRAY_EXT = 0x8439; + + [NativeName(NativeNameType.Const, "GL_BINORMAL_ARRAY_EXT")] + public const int GL_BINORMAL_ARRAY_EXT = 0x843A; + + [NativeName(NativeNameType.Const, "GL_CURRENT_TANGENT_EXT")] + public const int GL_CURRENT_TANGENT_EXT = 0x843B; + + [NativeName(NativeNameType.Const, "GL_CURRENT_BINORMAL_EXT")] + public const int GL_CURRENT_BINORMAL_EXT = 0x843C; + + [NativeName(NativeNameType.Const, "GL_TANGENT_ARRAY_TYPE_EXT")] + public const int GL_TANGENT_ARRAY_TYPE_EXT = 0x843E; + + [NativeName(NativeNameType.Const, "GL_TANGENT_ARRAY_STRIDE_EXT")] + public const int GL_TANGENT_ARRAY_STRIDE_EXT = 0x843F; + + [NativeName(NativeNameType.Const, "GL_BINORMAL_ARRAY_TYPE_EXT")] + public const int GL_BINORMAL_ARRAY_TYPE_EXT = 0x8440; + + [NativeName(NativeNameType.Const, "GL_BINORMAL_ARRAY_STRIDE_EXT")] + public const int GL_BINORMAL_ARRAY_STRIDE_EXT = 0x8441; + + [NativeName(NativeNameType.Const, "GL_TANGENT_ARRAY_POINTER_EXT")] + public const int GL_TANGENT_ARRAY_POINTER_EXT = 0x8442; + + [NativeName(NativeNameType.Const, "GL_BINORMAL_ARRAY_POINTER_EXT")] + public const int GL_BINORMAL_ARRAY_POINTER_EXT = 0x8443; + + [NativeName(NativeNameType.Const, "GL_MAP1_TANGENT_EXT")] + public const int GL_MAP1_TANGENT_EXT = 0x8444; + + [NativeName(NativeNameType.Const, "GL_MAP2_TANGENT_EXT")] + public const int GL_MAP2_TANGENT_EXT = 0x8445; + + [NativeName(NativeNameType.Const, "GL_MAP1_BINORMAL_EXT")] + public const int GL_MAP1_BINORMAL_EXT = 0x8446; + + [NativeName(NativeNameType.Const, "GL_MAP2_BINORMAL_EXT")] + public const int GL_MAP2_BINORMAL_EXT = 0x8447; + + [NativeName(NativeNameType.Const, "GL_EXT_copy_texture")] + public const int GL_EXT_COPY_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_cull_vertex")] + public const int GL_EXT_CULL_VERTEX = 1; + + [NativeName(NativeNameType.Const, "GL_CULL_VERTEX_EXT")] + public const int GL_CULL_VERTEX_EXT = 0x81AA; + + [NativeName(NativeNameType.Const, "GL_CULL_VERTEX_EYE_POSITION_EXT")] + public const int GL_CULL_VERTEX_EYE_POSITION_EXT = 0x81AB; + + [NativeName(NativeNameType.Const, "GL_CULL_VERTEX_OBJECT_POSITION_EXT")] + public const int GL_CULL_VERTEX_OBJECT_POSITION_EXT = 0x81AC; + + [NativeName(NativeNameType.Const, "GL_EXT_debug_label")] + public const int GL_EXT_DEBUG_LABEL = 1; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_PIPELINE_OBJECT_EXT")] + public const int GL_PROGRAM_PIPELINE_OBJECT_EXT = 0x8A4F; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_OBJECT_EXT")] + public const int GL_PROGRAM_OBJECT_EXT = 0x8B40; + + [NativeName(NativeNameType.Const, "GL_SHADER_OBJECT_EXT")] + public const int GL_SHADER_OBJECT_EXT = 0x8B48; + + [NativeName(NativeNameType.Const, "GL_BUFFER_OBJECT_EXT")] + public const int GL_BUFFER_OBJECT_EXT = 0x9151; + + [NativeName(NativeNameType.Const, "GL_QUERY_OBJECT_EXT")] + public const int GL_QUERY_OBJECT_EXT = 0x9153; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_OBJECT_EXT")] + public const int GL_VERTEX_ARRAY_OBJECT_EXT = 0x9154; + + [NativeName(NativeNameType.Const, "GL_EXT_debug_marker")] + public const int GL_EXT_DEBUG_MARKER = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_depth_bounds_test")] + public const int GL_EXT_DEPTH_BOUNDS_TEST = 1; + + [NativeName(NativeNameType.Const, "GL_DEPTH_BOUNDS_TEST_EXT")] + public const int GL_DEPTH_BOUNDS_TEST_EXT = 0x8890; + + [NativeName(NativeNameType.Const, "GL_DEPTH_BOUNDS_EXT")] + public const int GL_DEPTH_BOUNDS_EXT = 0x8891; + + [NativeName(NativeNameType.Const, "GL_EXT_direct_state_access")] + public const int GL_EXT_DIRECT_STATE_ACCESS = 1; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_MATRIX_EXT")] + public const int GL_PROGRAM_MATRIX_EXT = 0x8E2D; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_PROGRAM_MATRIX_EXT")] + public const int GL_TRANSPOSE_PROGRAM_MATRIX_EXT = 0x8E2E; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_MATRIX_STACK_DEPTH_EXT")] + public const int GL_PROGRAM_MATRIX_STACK_DEPTH_EXT = 0x8E2F; + + [NativeName(NativeNameType.Const, "GL_EXT_draw_buffers2")] + public const int GL_EXT_DRAW_BUFFERS2 = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_draw_instanced")] + public const int GL_EXT_DRAW_INSTANCED = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_draw_range_elements")] + public const int GL_EXT_DRAW_RANGE_ELEMENTS = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_ELEMENTS_VERTICES_EXT")] + public const int GL_MAX_ELEMENTS_VERTICES_EXT = 0x80E8; + + [NativeName(NativeNameType.Const, "GL_MAX_ELEMENTS_INDICES_EXT")] + public const int GL_MAX_ELEMENTS_INDICES_EXT = 0x80E9; + + [NativeName(NativeNameType.Const, "GL_EXT_external_buffer")] + public const int GL_EXT_EXTERNAL_BUFFER = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_fog_coord")] + public const int GL_EXT_FOG_COORD = 1; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_SOURCE_EXT")] + public const int GL_FOG_COORDINATE_SOURCE_EXT = 0x8450; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_EXT")] + public const int GL_FOG_COORDINATE_EXT = 0x8451; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_DEPTH_EXT")] + public const int GL_FRAGMENT_DEPTH_EXT = 0x8452; + + [NativeName(NativeNameType.Const, "GL_CURRENT_FOG_COORDINATE_EXT")] + public const int GL_CURRENT_FOG_COORDINATE_EXT = 0x8453; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY_TYPE_EXT")] + public const int GL_FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY_STRIDE_EXT")] + public const int GL_FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY_POINTER_EXT")] + public const int GL_FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY_EXT")] + public const int GL_FOG_COORDINATE_ARRAY_EXT = 0x8457; + + [NativeName(NativeNameType.Const, "GL_EXT_framebuffer_blit")] + public const int GL_EXT_FRAMEBUFFER_BLIT = 1; + + [NativeName(NativeNameType.Const, "GL_READ_FRAMEBUFFER_EXT")] + public const int GL_READ_FRAMEBUFFER_EXT = 0x8CA8; + + [NativeName(NativeNameType.Const, "GL_DRAW_FRAMEBUFFER_EXT")] + public const int GL_DRAW_FRAMEBUFFER_EXT = 0x8CA9; + + [NativeName(NativeNameType.Const, "GL_DRAW_FRAMEBUFFER_BINDING_EXT")] + public const int GL_DRAW_FRAMEBUFFER_BINDING_EXT = 0x8CA6; + + [NativeName(NativeNameType.Const, "GL_READ_FRAMEBUFFER_BINDING_EXT")] + public const int GL_READ_FRAMEBUFFER_BINDING_EXT = 0x8CAA; + + [NativeName(NativeNameType.Const, "GL_EXT_framebuffer_blit_layers")] + public const int GL_EXT_FRAMEBUFFER_BLIT_LAYERS = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_framebuffer_multisample")] + public const int GL_EXT_FRAMEBUFFER_MULTISAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_SAMPLES_EXT")] + public const int GL_RENDERBUFFER_SAMPLES_EXT = 0x8CAB; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT")] + public const int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x8D56; + + [NativeName(NativeNameType.Const, "GL_MAX_SAMPLES_EXT")] + public const int GL_MAX_SAMPLES_EXT = 0x8D57; + + [NativeName(NativeNameType.Const, "GL_EXT_framebuffer_multisample_blit_scaled")] + public const int GL_EXT_FRAMEBUFFER_MULTISAMPLE_BLIT_SCALED = 1; + + [NativeName(NativeNameType.Const, "GL_SCALED_RESOLVE_FASTEST_EXT")] + public const int GL_SCALED_RESOLVE_FASTEST_EXT = 0x90BA; + + [NativeName(NativeNameType.Const, "GL_SCALED_RESOLVE_NICEST_EXT")] + public const int GL_SCALED_RESOLVE_NICEST_EXT = 0x90BB; + + [NativeName(NativeNameType.Const, "GL_EXT_framebuffer_object")] + public const int GL_EXT_FRAMEBUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_INVALID_FRAMEBUFFER_OPERATION_EXT")] + public const int GL_INVALID_FRAMEBUFFER_OPERATION_EXT = 0x0506; + + [NativeName(NativeNameType.Const, "GL_MAX_RENDERBUFFER_SIZE_EXT")] + public const int GL_MAX_RENDERBUFFER_SIZE_EXT = 0x84E8; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_BINDING_EXT")] + public const int GL_FRAMEBUFFER_BINDING_EXT = 0x8CA6; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_BINDING_EXT")] + public const int GL_RENDERBUFFER_BINDING_EXT = 0x8CA7; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT")] + public const int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8CD0; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT")] + public const int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8CD1; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT")] + public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8CD2; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT")] + public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8CD3; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT")] + public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8CD4; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_COMPLETE_EXT")] + public const int GL_FRAMEBUFFER_COMPLETE_EXT = 0x8CD5; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT")] + public const int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8CD6; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT")] + public const int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8CD7; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT")] + public const int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8CD9; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT")] + public const int GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8CDA; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT")] + public const int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8CDB; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT")] + public const int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8CDC; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_UNSUPPORTED_EXT")] + public const int GL_FRAMEBUFFER_UNSUPPORTED_EXT = 0x8CDD; + + [NativeName(NativeNameType.Const, "GL_MAX_COLOR_ATTACHMENTS_EXT")] + public const int GL_MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT0_EXT")] + public const int GL_COLOR_ATTACHMENT0_EXT = 0x8CE0; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT1_EXT")] + public const int GL_COLOR_ATTACHMENT1_EXT = 0x8CE1; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT2_EXT")] + public const int GL_COLOR_ATTACHMENT2_EXT = 0x8CE2; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT3_EXT")] + public const int GL_COLOR_ATTACHMENT3_EXT = 0x8CE3; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT4_EXT")] + public const int GL_COLOR_ATTACHMENT4_EXT = 0x8CE4; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT5_EXT")] + public const int GL_COLOR_ATTACHMENT5_EXT = 0x8CE5; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT6_EXT")] + public const int GL_COLOR_ATTACHMENT6_EXT = 0x8CE6; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT7_EXT")] + public const int GL_COLOR_ATTACHMENT7_EXT = 0x8CE7; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT8_EXT")] + public const int GL_COLOR_ATTACHMENT8_EXT = 0x8CE8; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT9_EXT")] + public const int GL_COLOR_ATTACHMENT9_EXT = 0x8CE9; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT10_EXT")] + public const int GL_COLOR_ATTACHMENT10_EXT = 0x8CEA; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT11_EXT")] + public const int GL_COLOR_ATTACHMENT11_EXT = 0x8CEB; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT12_EXT")] + public const int GL_COLOR_ATTACHMENT12_EXT = 0x8CEC; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT13_EXT")] + public const int GL_COLOR_ATTACHMENT13_EXT = 0x8CED; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT14_EXT")] + public const int GL_COLOR_ATTACHMENT14_EXT = 0x8CEE; + + [NativeName(NativeNameType.Const, "GL_COLOR_ATTACHMENT15_EXT")] + public const int GL_COLOR_ATTACHMENT15_EXT = 0x8CEF; + + [NativeName(NativeNameType.Const, "GL_DEPTH_ATTACHMENT_EXT")] + public const int GL_DEPTH_ATTACHMENT_EXT = 0x8D00; + + [NativeName(NativeNameType.Const, "GL_STENCIL_ATTACHMENT_EXT")] + public const int GL_STENCIL_ATTACHMENT_EXT = 0x8D20; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_EXT")] + public const int GL_FRAMEBUFFER_EXT = 0x8D40; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_EXT")] + public const int GL_RENDERBUFFER_EXT = 0x8D41; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_WIDTH_EXT")] + public const int GL_RENDERBUFFER_WIDTH_EXT = 0x8D42; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_HEIGHT_EXT")] + public const int GL_RENDERBUFFER_HEIGHT_EXT = 0x8D43; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_INTERNAL_FORMAT_EXT")] + public const int GL_RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8D44; + + [NativeName(NativeNameType.Const, "GL_STENCIL_INDEX1_EXT")] + public const int GL_STENCIL_INDEX1_EXT = 0x8D46; + + [NativeName(NativeNameType.Const, "GL_STENCIL_INDEX4_EXT")] + public const int GL_STENCIL_INDEX4_EXT = 0x8D47; + + [NativeName(NativeNameType.Const, "GL_STENCIL_INDEX8_EXT")] + public const int GL_STENCIL_INDEX8_EXT = 0x8D48; + + [NativeName(NativeNameType.Const, "GL_STENCIL_INDEX16_EXT")] + public const int GL_STENCIL_INDEX16_EXT = 0x8D49; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_RED_SIZE_EXT")] + public const int GL_RENDERBUFFER_RED_SIZE_EXT = 0x8D50; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_GREEN_SIZE_EXT")] + public const int GL_RENDERBUFFER_GREEN_SIZE_EXT = 0x8D51; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_BLUE_SIZE_EXT")] + public const int GL_RENDERBUFFER_BLUE_SIZE_EXT = 0x8D52; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_ALPHA_SIZE_EXT")] + public const int GL_RENDERBUFFER_ALPHA_SIZE_EXT = 0x8D53; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_DEPTH_SIZE_EXT")] + public const int GL_RENDERBUFFER_DEPTH_SIZE_EXT = 0x8D54; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_STENCIL_SIZE_EXT")] + public const int GL_RENDERBUFFER_STENCIL_SIZE_EXT = 0x8D55; + + [NativeName(NativeNameType.Const, "GL_EXT_framebuffer_sRGB")] + public const int GL_EXT_FRAMEBUFFER_SRGB = 1; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_SRGB_EXT")] + public const int GL_FRAMEBUFFER_SRGB_EXT = 0x8DB9; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_SRGB_CAPABLE_EXT")] + public const int GL_FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x8DBA; + + [NativeName(NativeNameType.Const, "GL_EXT_geometry_shader4")] + public const int GL_EXT_GEOMETRY_SHADER4 = 1; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_SHADER_EXT")] + public const int GL_GEOMETRY_SHADER_EXT = 0x8DD9; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_VERTICES_OUT_EXT")] + public const int GL_GEOMETRY_VERTICES_OUT_EXT = 0x8DDA; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_INPUT_TYPE_EXT")] + public const int GL_GEOMETRY_INPUT_TYPE_EXT = 0x8DDB; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_OUTPUT_TYPE_EXT")] + public const int GL_GEOMETRY_OUTPUT_TYPE_EXT = 0x8DDC; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT")] + public const int GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8C29; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT")] + public const int GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8DDD; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_VARYING_COMPONENTS_EXT")] + public const int GL_MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8DDE; + + [NativeName(NativeNameType.Const, "GL_MAX_VARYING_COMPONENTS_EXT")] + public const int GL_MAX_VARYING_COMPONENTS_EXT = 0x8B4B; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT")] + public const int GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8DDF; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT")] + public const int GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8DE0; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT")] + public const int GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8DE1; + + [NativeName(NativeNameType.Const, "GL_LINES_ADJACENCY_EXT")] + public const int GL_LINES_ADJACENCY_EXT = 0x000A; + + [NativeName(NativeNameType.Const, "GL_LINE_STRIP_ADJACENCY_EXT")] + public const int GL_LINE_STRIP_ADJACENCY_EXT = 0x000B; + + [NativeName(NativeNameType.Const, "GL_TRIANGLES_ADJACENCY_EXT")] + public const int GL_TRIANGLES_ADJACENCY_EXT = 0x000C; + + [NativeName(NativeNameType.Const, "GL_TRIANGLE_STRIP_ADJACENCY_EXT")] + public const int GL_TRIANGLE_STRIP_ADJACENCY_EXT = 0x000D; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT")] + public const int GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT")] + public const int GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT")] + public const int GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8DA7; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT")] + public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_POINT_SIZE_EXT")] + public const int GL_PROGRAM_POINT_SIZE_EXT = 0x8642; + + [NativeName(NativeNameType.Const, "GL_EXT_gpu_program_parameters")] + public const int GL_EXT_GPU_PROGRAM_PARAMETERS = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_gpu_shader4")] + public const int GL_EXT_GPU_SHADER4 = 1; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_1D_ARRAY_EXT")] + public const int GL_SAMPLER_1D_ARRAY_EXT = 0x8DC0; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_ARRAY_EXT")] + public const int GL_SAMPLER_2D_ARRAY_EXT = 0x8DC1; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_BUFFER_EXT")] + public const int GL_SAMPLER_BUFFER_EXT = 0x8DC2; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_1D_ARRAY_SHADOW_EXT")] + public const int GL_SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8DC3; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_2D_ARRAY_SHADOW_EXT")] + public const int GL_SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8DC4; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_CUBE_SHADOW_EXT")] + public const int GL_SAMPLER_CUBE_SHADOW_EXT = 0x8DC5; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_VEC2_EXT")] + public const int GL_UNSIGNED_INT_VEC2_EXT = 0x8DC6; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_VEC3_EXT")] + public const int GL_UNSIGNED_INT_VEC3_EXT = 0x8DC7; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_VEC4_EXT")] + public const int GL_UNSIGNED_INT_VEC4_EXT = 0x8DC8; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_1D_EXT")] + public const int GL_INT_SAMPLER_1D_EXT = 0x8DC9; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_2D_EXT")] + public const int GL_INT_SAMPLER_2D_EXT = 0x8DCA; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_3D_EXT")] + public const int GL_INT_SAMPLER_3D_EXT = 0x8DCB; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_CUBE_EXT")] + public const int GL_INT_SAMPLER_CUBE_EXT = 0x8DCC; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_2D_RECT_EXT")] + public const int GL_INT_SAMPLER_2D_RECT_EXT = 0x8DCD; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_1D_ARRAY_EXT")] + public const int GL_INT_SAMPLER_1D_ARRAY_EXT = 0x8DCE; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_2D_ARRAY_EXT")] + public const int GL_INT_SAMPLER_2D_ARRAY_EXT = 0x8DCF; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_BUFFER_EXT")] + public const int GL_INT_SAMPLER_BUFFER_EXT = 0x8DD0; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_1D_EXT")] + public const int GL_UNSIGNED_INT_SAMPLER_1D_EXT = 0x8DD1; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_2D_EXT")] + public const int GL_UNSIGNED_INT_SAMPLER_2D_EXT = 0x8DD2; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_3D_EXT")] + public const int GL_UNSIGNED_INT_SAMPLER_3D_EXT = 0x8DD3; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_CUBE_EXT")] + public const int GL_UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8DD4; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT")] + public const int GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT")] + public const int GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT")] + public const int GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT")] + public const int GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8; + + [NativeName(NativeNameType.Const, "GL_MIN_PROGRAM_TEXEL_OFFSET_EXT")] + public const int GL_MIN_PROGRAM_TEXEL_OFFSET_EXT = 0x8904; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_TEXEL_OFFSET_EXT")] + public const int GL_MAX_PROGRAM_TEXEL_OFFSET_EXT = 0x8905; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT")] + public const int GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT = 0x88FD; + + [NativeName(NativeNameType.Const, "GL_EXT_histogram")] + public const int GL_EXT_HISTOGRAM = 1; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_EXT")] + public const int GL_HISTOGRAM_EXT = 0x8024; + + [NativeName(NativeNameType.Const, "GL_PROXY_HISTOGRAM_EXT")] + public const int GL_PROXY_HISTOGRAM_EXT = 0x8025; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_WIDTH_EXT")] + public const int GL_HISTOGRAM_WIDTH_EXT = 0x8026; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_FORMAT_EXT")] + public const int GL_HISTOGRAM_FORMAT_EXT = 0x8027; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_RED_SIZE_EXT")] + public const int GL_HISTOGRAM_RED_SIZE_EXT = 0x8028; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_GREEN_SIZE_EXT")] + public const int GL_HISTOGRAM_GREEN_SIZE_EXT = 0x8029; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_BLUE_SIZE_EXT")] + public const int GL_HISTOGRAM_BLUE_SIZE_EXT = 0x802A; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_ALPHA_SIZE_EXT")] + public const int GL_HISTOGRAM_ALPHA_SIZE_EXT = 0x802B; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_LUMINANCE_SIZE_EXT")] + public const int GL_HISTOGRAM_LUMINANCE_SIZE_EXT = 0x802C; + + [NativeName(NativeNameType.Const, "GL_HISTOGRAM_SINK_EXT")] + public const int GL_HISTOGRAM_SINK_EXT = 0x802D; + + [NativeName(NativeNameType.Const, "GL_MINMAX_EXT")] + public const int GL_MINMAX_EXT = 0x802E; + + [NativeName(NativeNameType.Const, "GL_MINMAX_FORMAT_EXT")] + public const int GL_MINMAX_FORMAT_EXT = 0x802F; + + [NativeName(NativeNameType.Const, "GL_MINMAX_SINK_EXT")] + public const int GL_MINMAX_SINK_EXT = 0x8030; + + [NativeName(NativeNameType.Const, "GL_TABLE_TOO_LARGE_EXT")] + public const int GL_TABLE_TOO_LARGE_EXT = 0x8031; + + [NativeName(NativeNameType.Const, "GL_EXT_index_array_formats")] + public const int GL_EXT_INDEX_ARRAY_FORMATS = 1; + + [NativeName(NativeNameType.Const, "GL_IUI_V2F_EXT")] + public const int GL_IUI_V2F_EXT = 0x81AD; + + [NativeName(NativeNameType.Const, "GL_IUI_V3F_EXT")] + public const int GL_IUI_V3F_EXT = 0x81AE; + + [NativeName(NativeNameType.Const, "GL_IUI_N3F_V2F_EXT")] + public const int GL_IUI_N3F_V2F_EXT = 0x81AF; + + [NativeName(NativeNameType.Const, "GL_IUI_N3F_V3F_EXT")] + public const int GL_IUI_N3F_V3F_EXT = 0x81B0; + + [NativeName(NativeNameType.Const, "GL_T2F_IUI_V2F_EXT")] + public const int GL_T2F_IUI_V2F_EXT = 0x81B1; + + [NativeName(NativeNameType.Const, "GL_T2F_IUI_V3F_EXT")] + public const int GL_T2F_IUI_V3F_EXT = 0x81B2; + + [NativeName(NativeNameType.Const, "GL_T2F_IUI_N3F_V2F_EXT")] + public const int GL_T2F_IUI_N3F_V2F_EXT = 0x81B3; + + [NativeName(NativeNameType.Const, "GL_T2F_IUI_N3F_V3F_EXT")] + public const int GL_T2F_IUI_N3F_V3F_EXT = 0x81B4; + + [NativeName(NativeNameType.Const, "GL_EXT_index_func")] + public const int GL_EXT_INDEX_FUNC = 1; + + [NativeName(NativeNameType.Const, "GL_INDEX_TEST_EXT")] + public const int GL_INDEX_TEST_EXT = 0x81B5; + + [NativeName(NativeNameType.Const, "GL_INDEX_TEST_FUNC_EXT")] + public const int GL_INDEX_TEST_FUNC_EXT = 0x81B6; + + [NativeName(NativeNameType.Const, "GL_INDEX_TEST_REF_EXT")] + public const int GL_INDEX_TEST_REF_EXT = 0x81B7; + + [NativeName(NativeNameType.Const, "GL_EXT_index_material")] + public const int GL_EXT_INDEX_MATERIAL = 1; + + [NativeName(NativeNameType.Const, "GL_INDEX_MATERIAL_EXT")] + public const int GL_INDEX_MATERIAL_EXT = 0x81B8; + + [NativeName(NativeNameType.Const, "GL_INDEX_MATERIAL_PARAMETER_EXT")] + public const int GL_INDEX_MATERIAL_PARAMETER_EXT = 0x81B9; + + [NativeName(NativeNameType.Const, "GL_INDEX_MATERIAL_FACE_EXT")] + public const int GL_INDEX_MATERIAL_FACE_EXT = 0x81BA; + + [NativeName(NativeNameType.Const, "GL_EXT_index_texture")] + public const int GL_EXT_INDEX_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_light_texture")] + public const int GL_EXT_LIGHT_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_MATERIAL_EXT")] + public const int GL_FRAGMENT_MATERIAL_EXT = 0x8349; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_NORMAL_EXT")] + public const int GL_FRAGMENT_NORMAL_EXT = 0x834A; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_COLOR_EXT")] + public const int GL_FRAGMENT_COLOR_EXT = 0x834C; + + [NativeName(NativeNameType.Const, "GL_ATTENUATION_EXT")] + public const int GL_ATTENUATION_EXT = 0x834D; + + [NativeName(NativeNameType.Const, "GL_SHADOW_ATTENUATION_EXT")] + public const int GL_SHADOW_ATTENUATION_EXT = 0x834E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_APPLICATION_MODE_EXT")] + public const int GL_TEXTURE_APPLICATION_MODE_EXT = 0x834F; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LIGHT_EXT")] + public const int GL_TEXTURE_LIGHT_EXT = 0x8350; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MATERIAL_FACE_EXT")] + public const int GL_TEXTURE_MATERIAL_FACE_EXT = 0x8351; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MATERIAL_PARAMETER_EXT")] + public const int GL_TEXTURE_MATERIAL_PARAMETER_EXT = 0x8352; + + [NativeName(NativeNameType.Const, "GL_EXT_memory_object")] + public const int GL_EXT_MEMORY_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_TILING_EXT")] + public const int GL_TEXTURE_TILING_EXT = 0x9580; + + [NativeName(NativeNameType.Const, "GL_DEDICATED_MEMORY_OBJECT_EXT")] + public const int GL_DEDICATED_MEMORY_OBJECT_EXT = 0x9581; + + [NativeName(NativeNameType.Const, "GL_PROTECTED_MEMORY_OBJECT_EXT")] + public const int GL_PROTECTED_MEMORY_OBJECT_EXT = 0x959B; + + [NativeName(NativeNameType.Const, "GL_NUM_TILING_TYPES_EXT")] + public const int GL_NUM_TILING_TYPES_EXT = 0x9582; + + [NativeName(NativeNameType.Const, "GL_TILING_TYPES_EXT")] + public const int GL_TILING_TYPES_EXT = 0x9583; + + [NativeName(NativeNameType.Const, "GL_OPTIMAL_TILING_EXT")] + public const int GL_OPTIMAL_TILING_EXT = 0x9584; + + [NativeName(NativeNameType.Const, "GL_LINEAR_TILING_EXT")] + public const int GL_LINEAR_TILING_EXT = 0x9585; + + [NativeName(NativeNameType.Const, "GL_NUM_DEVICE_UUIDS_EXT")] + public const int GL_NUM_DEVICE_UUIDS_EXT = 0x9596; + + [NativeName(NativeNameType.Const, "GL_DEVICE_UUID_EXT")] + public const int GL_DEVICE_UUID_EXT = 0x9597; + + [NativeName(NativeNameType.Const, "GL_DRIVER_UUID_EXT")] + public const int GL_DRIVER_UUID_EXT = 0x9598; + + [NativeName(NativeNameType.Const, "GL_UUID_SIZE_EXT")] + public const int GL_UUID_SIZE_EXT = 16; + + [NativeName(NativeNameType.Const, "GL_EXT_memory_object_fd")] + public const int GL_EXT_MEMORY_OBJECT_FD = 1; + + [NativeName(NativeNameType.Const, "GL_HANDLE_TYPE_OPAQUE_FD_EXT")] + public const int GL_HANDLE_TYPE_OPAQUE_FD_EXT = 0x9586; + + [NativeName(NativeNameType.Const, "GL_EXT_memory_object_win32")] + public const int GL_EXT_MEMORY_OBJECT_WIN32 = 1; + + [NativeName(NativeNameType.Const, "GL_HANDLE_TYPE_OPAQUE_WIN32_EXT")] + public const int GL_HANDLE_TYPE_OPAQUE_WIN32_EXT = 0x9587; + + [NativeName(NativeNameType.Const, "GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT")] + public const int GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT = 0x9588; + + [NativeName(NativeNameType.Const, "GL_DEVICE_LUID_EXT")] + public const int GL_DEVICE_LUID_EXT = 0x9599; + + [NativeName(NativeNameType.Const, "GL_DEVICE_NODE_MASK_EXT")] + public const int GL_DEVICE_NODE_MASK_EXT = 0x959A; + + [NativeName(NativeNameType.Const, "GL_LUID_SIZE_EXT")] + public const int GL_LUID_SIZE_EXT = 8; + + [NativeName(NativeNameType.Const, "GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT")] + public const int GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT = 0x9589; + + [NativeName(NativeNameType.Const, "GL_HANDLE_TYPE_D3D12_RESOURCE_EXT")] + public const int GL_HANDLE_TYPE_D3D12_RESOURCE_EXT = 0x958A; + + [NativeName(NativeNameType.Const, "GL_HANDLE_TYPE_D3D11_IMAGE_EXT")] + public const int GL_HANDLE_TYPE_D3D11_IMAGE_EXT = 0x958B; + + [NativeName(NativeNameType.Const, "GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT")] + public const int GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT = 0x958C; + + [NativeName(NativeNameType.Const, "GL_EXT_misc_attribute")] + public const int GL_EXT_MISC_ATTRIBUTE = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_multi_draw_arrays")] + public const int GL_EXT_MULTI_DRAW_ARRAYS = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_multisample")] + public const int GL_EXT_MULTISAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_EXT")] + public const int GL_MULTISAMPLE_EXT = 0x809D; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_ALPHA_TO_MASK_EXT")] + public const int GL_SAMPLE_ALPHA_TO_MASK_EXT = 0x809E; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_ALPHA_TO_ONE_EXT")] + public const int GL_SAMPLE_ALPHA_TO_ONE_EXT = 0x809F; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_MASK_EXT")] + public const int GL_SAMPLE_MASK_EXT = 0x80A0; + + [NativeName(NativeNameType.Const, "GL_1PASS_EXT")] + public const int GL_1PASS_EXT = 0x80A1; + + [NativeName(NativeNameType.Const, "GL_2PASS_0_EXT")] + public const int GL_2PASS_0_EXT = 0x80A2; + + [NativeName(NativeNameType.Const, "GL_2PASS_1_EXT")] + public const int GL_2PASS_1_EXT = 0x80A3; + + [NativeName(NativeNameType.Const, "GL_4PASS_0_EXT")] + public const int GL_4PASS_0_EXT = 0x80A4; + + [NativeName(NativeNameType.Const, "GL_4PASS_1_EXT")] + public const int GL_4PASS_1_EXT = 0x80A5; + + [NativeName(NativeNameType.Const, "GL_4PASS_2_EXT")] + public const int GL_4PASS_2_EXT = 0x80A6; + + [NativeName(NativeNameType.Const, "GL_4PASS_3_EXT")] + public const int GL_4PASS_3_EXT = 0x80A7; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_BUFFERS_EXT")] + public const int GL_SAMPLE_BUFFERS_EXT = 0x80A8; + + [NativeName(NativeNameType.Const, "GL_SAMPLES_EXT")] + public const int GL_SAMPLES_EXT = 0x80A9; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_MASK_VALUE_EXT")] + public const int GL_SAMPLE_MASK_VALUE_EXT = 0x80AA; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_MASK_INVERT_EXT")] + public const int GL_SAMPLE_MASK_INVERT_EXT = 0x80AB; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_PATTERN_EXT")] + public const int GL_SAMPLE_PATTERN_EXT = 0x80AC; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_BIT_EXT")] + public const int GL_MULTISAMPLE_BIT_EXT = 0x20000000; + + [NativeName(NativeNameType.Const, "GL_EXT_multiview_tessellation_geometry_shader")] + public const int GL_EXT_MULTIVIEW_TESSELLATION_GEOMETRY_SHADER = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_multiview_texture_multisample")] + public const int GL_EXT_MULTIVIEW_TEXTURE_MULTISAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_multiview_timer_query")] + public const int GL_EXT_MULTIVIEW_TIMER_QUERY = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_packed_depth_stencil")] + public const int GL_EXT_PACKED_DEPTH_STENCIL = 1; + + [NativeName(NativeNameType.Const, "GL_DEPTH_STENCIL_EXT")] + public const int GL_DEPTH_STENCIL_EXT = 0x84F9; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_24_8_EXT")] + public const int GL_UNSIGNED_INT_24_8_EXT = 0x84FA; + + [NativeName(NativeNameType.Const, "GL_DEPTH24_STENCIL8_EXT")] + public const int GL_DEPTH24_STENCIL8_EXT = 0x88F0; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_STENCIL_SIZE_EXT")] + public const int GL_TEXTURE_STENCIL_SIZE_EXT = 0x88F1; + + [NativeName(NativeNameType.Const, "GL_EXT_packed_float")] + public const int GL_EXT_PACKED_FLOAT = 1; + + [NativeName(NativeNameType.Const, "GL_R11F_G11F_B10F_EXT")] + public const int GL_R11F_G11F_B10F_EXT = 0x8C3A; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_10F_11F_11F_REV_EXT")] + public const int GL_UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8C3B; + + [NativeName(NativeNameType.Const, "GL_RGBA_SIGNED_COMPONENTS_EXT")] + public const int GL_RGBA_SIGNED_COMPONENTS_EXT = 0x8C3C; + + [NativeName(NativeNameType.Const, "GL_EXT_packed_pixels")] + public const int GL_EXT_PACKED_PIXELS = 1; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_BYTE_3_3_2_EXT")] + public const int GL_UNSIGNED_BYTE_3_3_2_EXT = 0x8032; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_4_4_4_4_EXT")] + public const int GL_UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_5_5_5_1_EXT")] + public const int GL_UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_8_8_8_8_EXT")] + public const int GL_UNSIGNED_INT_8_8_8_8_EXT = 0x8035; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_10_10_10_2_EXT")] + public const int GL_UNSIGNED_INT_10_10_10_2_EXT = 0x8036; + + [NativeName(NativeNameType.Const, "GL_EXT_pixel_buffer_object")] + public const int GL_EXT_PIXEL_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_PIXEL_PACK_BUFFER_EXT")] + public const int GL_PIXEL_PACK_BUFFER_EXT = 0x88EB; + + [NativeName(NativeNameType.Const, "GL_PIXEL_UNPACK_BUFFER_EXT")] + public const int GL_PIXEL_UNPACK_BUFFER_EXT = 0x88EC; + + [NativeName(NativeNameType.Const, "GL_PIXEL_PACK_BUFFER_BINDING_EXT")] + public const int GL_PIXEL_PACK_BUFFER_BINDING_EXT = 0x88ED; + + [NativeName(NativeNameType.Const, "GL_PIXEL_UNPACK_BUFFER_BINDING_EXT")] + public const int GL_PIXEL_UNPACK_BUFFER_BINDING_EXT = 0x88EF; + + [NativeName(NativeNameType.Const, "GL_EXT_pixel_transform")] + public const int GL_EXT_PIXEL_TRANSFORM = 1; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TRANSFORM_2D_EXT")] + public const int GL_PIXEL_TRANSFORM_2D_EXT = 0x8330; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAG_FILTER_EXT")] + public const int GL_PIXEL_MAG_FILTER_EXT = 0x8331; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MIN_FILTER_EXT")] + public const int GL_PIXEL_MIN_FILTER_EXT = 0x8332; + + [NativeName(NativeNameType.Const, "GL_PIXEL_CUBIC_WEIGHT_EXT")] + public const int GL_PIXEL_CUBIC_WEIGHT_EXT = 0x8333; + + [NativeName(NativeNameType.Const, "GL_CUBIC_EXT")] + public const int GL_CUBIC_EXT = 0x8334; + + [NativeName(NativeNameType.Const, "GL_AVERAGE_EXT")] + public const int GL_AVERAGE_EXT = 0x8335; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT")] + public const int GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8336; + + [NativeName(NativeNameType.Const, "GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT")] + public const int GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8337; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TRANSFORM_2D_MATRIX_EXT")] + public const int GL_PIXEL_TRANSFORM_2D_MATRIX_EXT = 0x8338; + + [NativeName(NativeNameType.Const, "GL_EXT_pixel_transform_color_table")] + public const int GL_EXT_PIXEL_TRANSFORM_COLOR_TABLE = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_point_parameters")] + public const int GL_EXT_POINT_PARAMETERS = 1; + + [NativeName(NativeNameType.Const, "GL_POINT_SIZE_MIN_EXT")] + public const int GL_POINT_SIZE_MIN_EXT = 0x8126; + + [NativeName(NativeNameType.Const, "GL_POINT_SIZE_MAX_EXT")] + public const int GL_POINT_SIZE_MAX_EXT = 0x8127; + + [NativeName(NativeNameType.Const, "GL_POINT_FADE_THRESHOLD_SIZE_EXT")] + public const int GL_POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128; + + [NativeName(NativeNameType.Const, "GL_DISTANCE_ATTENUATION_EXT")] + public const int GL_DISTANCE_ATTENUATION_EXT = 0x8129; + + [NativeName(NativeNameType.Const, "GL_EXT_polygon_offset")] + public const int GL_EXT_POLYGON_OFFSET = 1; + + [NativeName(NativeNameType.Const, "GL_POLYGON_OFFSET_EXT")] + public const int GL_POLYGON_OFFSET_EXT = 0x8037; + + [NativeName(NativeNameType.Const, "GL_POLYGON_OFFSET_FACTOR_EXT")] + public const int GL_POLYGON_OFFSET_FACTOR_EXT = 0x8038; + + [NativeName(NativeNameType.Const, "GL_POLYGON_OFFSET_BIAS_EXT")] + public const int GL_POLYGON_OFFSET_BIAS_EXT = 0x8039; + + [NativeName(NativeNameType.Const, "GL_EXT_polygon_offset_clamp")] + public const int GL_EXT_POLYGON_OFFSET_CLAMP = 1; + + [NativeName(NativeNameType.Const, "GL_POLYGON_OFFSET_CLAMP_EXT")] + public const int GL_POLYGON_OFFSET_CLAMP_EXT = 0x8E1B; + + [NativeName(NativeNameType.Const, "GL_EXT_post_depth_coverage")] + public const int GL_EXT_POST_DEPTH_COVERAGE = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_provoking_vertex")] + public const int GL_EXT_PROVOKING_VERTEX = 1; + + [NativeName(NativeNameType.Const, "GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT")] + public const int GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = 0x8E4C; + + [NativeName(NativeNameType.Const, "GL_FIRST_VERTEX_CONVENTION_EXT")] + public const int GL_FIRST_VERTEX_CONVENTION_EXT = 0x8E4D; + + [NativeName(NativeNameType.Const, "GL_LAST_VERTEX_CONVENTION_EXT")] + public const int GL_LAST_VERTEX_CONVENTION_EXT = 0x8E4E; + + [NativeName(NativeNameType.Const, "GL_PROVOKING_VERTEX_EXT")] + public const int GL_PROVOKING_VERTEX_EXT = 0x8E4F; + + [NativeName(NativeNameType.Const, "GL_EXT_raster_multisample")] + public const int GL_EXT_RASTER_MULTISAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_RASTER_MULTISAMPLE_EXT")] + public const int GL_RASTER_MULTISAMPLE_EXT = 0x9327; + + [NativeName(NativeNameType.Const, "GL_RASTER_SAMPLES_EXT")] + public const int GL_RASTER_SAMPLES_EXT = 0x9328; + + [NativeName(NativeNameType.Const, "GL_MAX_RASTER_SAMPLES_EXT")] + public const int GL_MAX_RASTER_SAMPLES_EXT = 0x9329; + + [NativeName(NativeNameType.Const, "GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT")] + public const int GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT = 0x932A; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT")] + public const int GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT = 0x932B; + + [NativeName(NativeNameType.Const, "GL_EFFECTIVE_RASTER_SAMPLES_EXT")] + public const int GL_EFFECTIVE_RASTER_SAMPLES_EXT = 0x932C; + + [NativeName(NativeNameType.Const, "GL_EXT_rescale_normal")] + public const int GL_EXT_RESCALE_NORMAL = 1; + + [NativeName(NativeNameType.Const, "GL_RESCALE_NORMAL_EXT")] + public const int GL_RESCALE_NORMAL_EXT = 0x803A; + + [NativeName(NativeNameType.Const, "GL_EXT_secondary_color")] + public const int GL_EXT_SECONDARY_COLOR = 1; + + [NativeName(NativeNameType.Const, "GL_COLOR_SUM_EXT")] + public const int GL_COLOR_SUM_EXT = 0x8458; + + [NativeName(NativeNameType.Const, "GL_CURRENT_SECONDARY_COLOR_EXT")] + public const int GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_SIZE_EXT")] + public const int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_TYPE_EXT")] + public const int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT")] + public const int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_POINTER_EXT")] + public const int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_EXT")] + public const int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845E; + + [NativeName(NativeNameType.Const, "GL_EXT_semaphore")] + public const int GL_EXT_SEMAPHORE = 1; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_GENERAL_EXT")] + public const int GL_LAYOUT_GENERAL_EXT = 0x958D; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_COLOR_ATTACHMENT_EXT")] + public const int GL_LAYOUT_COLOR_ATTACHMENT_EXT = 0x958E; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT")] + public const int GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT = 0x958F; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT")] + public const int GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT = 0x9590; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_SHADER_READ_ONLY_EXT")] + public const int GL_LAYOUT_SHADER_READ_ONLY_EXT = 0x9591; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_TRANSFER_SRC_EXT")] + public const int GL_LAYOUT_TRANSFER_SRC_EXT = 0x9592; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_TRANSFER_DST_EXT")] + public const int GL_LAYOUT_TRANSFER_DST_EXT = 0x9593; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT")] + public const int GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT = 0x9530; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT")] + public const int GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT = 0x9531; + + [NativeName(NativeNameType.Const, "GL_EXT_semaphore_fd")] + public const int GL_EXT_SEMAPHORE_FD = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_semaphore_win32")] + public const int GL_EXT_SEMAPHORE_WIN32 = 1; + + [NativeName(NativeNameType.Const, "GL_HANDLE_TYPE_D3D12_FENCE_EXT")] + public const int GL_HANDLE_TYPE_D3D12_FENCE_EXT = 0x9594; + + [NativeName(NativeNameType.Const, "GL_D3D12_FENCE_VALUE_EXT")] + public const int GL_D3D12_FENCE_VALUE_EXT = 0x9595; + + [NativeName(NativeNameType.Const, "GL_EXT_separate_shader_objects")] + public const int GL_EXT_SEPARATE_SHADER_OBJECTS = 1; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_PROGRAM_EXT")] + public const int GL_ACTIVE_PROGRAM_EXT = 0x8B8D; + + [NativeName(NativeNameType.Const, "GL_EXT_separate_specular_color")] + public const int GL_EXT_SEPARATE_SPECULAR_COLOR = 1; + + [NativeName(NativeNameType.Const, "GL_LIGHT_MODEL_COLOR_CONTROL_EXT")] + public const int GL_LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81F8; + + [NativeName(NativeNameType.Const, "GL_SINGLE_COLOR_EXT")] + public const int GL_SINGLE_COLOR_EXT = 0x81F9; + + [NativeName(NativeNameType.Const, "GL_SEPARATE_SPECULAR_COLOR_EXT")] + public const int GL_SEPARATE_SPECULAR_COLOR_EXT = 0x81FA; + + [NativeName(NativeNameType.Const, "GL_EXT_shader_framebuffer_fetch")] + public const int GL_EXT_SHADER_FRAMEBUFFER_FETCH = 1; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT")] + public const int GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT = 0x8A52; + + [NativeName(NativeNameType.Const, "GL_EXT_shader_framebuffer_fetch_non_coherent")] + public const int GL_EXT_SHADER_FRAMEBUFFER_FETCH_NON_COHERENT = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_shader_image_load_formatted")] + public const int GL_EXT_SHADER_IMAGE_LOAD_FORMATTED = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_shader_image_load_store")] + public const int GL_EXT_SHADER_IMAGE_LOAD_STORE = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_IMAGE_UNITS_EXT")] + public const int GL_MAX_IMAGE_UNITS_EXT = 0x8F38; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT")] + public const int GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT = 0x8F39; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_NAME_EXT")] + public const int GL_IMAGE_BINDING_NAME_EXT = 0x8F3A; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_LEVEL_EXT")] + public const int GL_IMAGE_BINDING_LEVEL_EXT = 0x8F3B; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_LAYERED_EXT")] + public const int GL_IMAGE_BINDING_LAYERED_EXT = 0x8F3C; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_LAYER_EXT")] + public const int GL_IMAGE_BINDING_LAYER_EXT = 0x8F3D; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_ACCESS_EXT")] + public const int GL_IMAGE_BINDING_ACCESS_EXT = 0x8F3E; + + [NativeName(NativeNameType.Const, "GL_IMAGE_1D_EXT")] + public const int GL_IMAGE_1D_EXT = 0x904C; + + [NativeName(NativeNameType.Const, "GL_IMAGE_2D_EXT")] + public const int GL_IMAGE_2D_EXT = 0x904D; + + [NativeName(NativeNameType.Const, "GL_IMAGE_3D_EXT")] + public const int GL_IMAGE_3D_EXT = 0x904E; + + [NativeName(NativeNameType.Const, "GL_IMAGE_2D_RECT_EXT")] + public const int GL_IMAGE_2D_RECT_EXT = 0x904F; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CUBE_EXT")] + public const int GL_IMAGE_CUBE_EXT = 0x9050; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BUFFER_EXT")] + public const int GL_IMAGE_BUFFER_EXT = 0x9051; + + [NativeName(NativeNameType.Const, "GL_IMAGE_1D_ARRAY_EXT")] + public const int GL_IMAGE_1D_ARRAY_EXT = 0x9052; + + [NativeName(NativeNameType.Const, "GL_IMAGE_2D_ARRAY_EXT")] + public const int GL_IMAGE_2D_ARRAY_EXT = 0x9053; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CUBE_MAP_ARRAY_EXT")] + public const int GL_IMAGE_CUBE_MAP_ARRAY_EXT = 0x9054; + + [NativeName(NativeNameType.Const, "GL_IMAGE_2D_MULTISAMPLE_EXT")] + public const int GL_IMAGE_2D_MULTISAMPLE_EXT = 0x9055; + + [NativeName(NativeNameType.Const, "GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT")] + public const int GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9056; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_1D_EXT")] + public const int GL_INT_IMAGE_1D_EXT = 0x9057; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_2D_EXT")] + public const int GL_INT_IMAGE_2D_EXT = 0x9058; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_3D_EXT")] + public const int GL_INT_IMAGE_3D_EXT = 0x9059; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_2D_RECT_EXT")] + public const int GL_INT_IMAGE_2D_RECT_EXT = 0x905A; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_CUBE_EXT")] + public const int GL_INT_IMAGE_CUBE_EXT = 0x905B; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_BUFFER_EXT")] + public const int GL_INT_IMAGE_BUFFER_EXT = 0x905C; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_1D_ARRAY_EXT")] + public const int GL_INT_IMAGE_1D_ARRAY_EXT = 0x905D; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_2D_ARRAY_EXT")] + public const int GL_INT_IMAGE_2D_ARRAY_EXT = 0x905E; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT")] + public const int GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x905F; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_2D_MULTISAMPLE_EXT")] + public const int GL_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x9060; + + [NativeName(NativeNameType.Const, "GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT")] + public const int GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9061; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_1D_EXT")] + public const int GL_UNSIGNED_INT_IMAGE_1D_EXT = 0x9062; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_2D_EXT")] + public const int GL_UNSIGNED_INT_IMAGE_2D_EXT = 0x9063; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_3D_EXT")] + public const int GL_UNSIGNED_INT_IMAGE_3D_EXT = 0x9064; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT")] + public const int GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT = 0x9065; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_CUBE_EXT")] + public const int GL_UNSIGNED_INT_IMAGE_CUBE_EXT = 0x9066; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_BUFFER_EXT")] + public const int GL_UNSIGNED_INT_IMAGE_BUFFER_EXT = 0x9067; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT")] + public const int GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT = 0x9068; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT")] + public const int GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT = 0x9069; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT")] + public const int GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x906A; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT")] + public const int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x906B; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT")] + public const int GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x906C; + + [NativeName(NativeNameType.Const, "GL_MAX_IMAGE_SAMPLES_EXT")] + public const int GL_MAX_IMAGE_SAMPLES_EXT = 0x906D; + + [NativeName(NativeNameType.Const, "GL_IMAGE_BINDING_FORMAT_EXT")] + public const int GL_IMAGE_BINDING_FORMAT_EXT = 0x906E; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT")] + public const int GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_BARRIER_BIT_EXT")] + public const int GL_ELEMENT_ARRAY_BARRIER_BIT_EXT = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BARRIER_BIT_EXT")] + public const int GL_UNIFORM_BARRIER_BIT_EXT = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_FETCH_BARRIER_BIT_EXT")] + public const int GL_TEXTURE_FETCH_BARRIER_BIT_EXT = 0x00000008; + + [NativeName(NativeNameType.Const, "GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT")] + public const int GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT = 0x00000020; + + [NativeName(NativeNameType.Const, "GL_COMMAND_BARRIER_BIT_EXT")] + public const int GL_COMMAND_BARRIER_BIT_EXT = 0x00000040; + + [NativeName(NativeNameType.Const, "GL_PIXEL_BUFFER_BARRIER_BIT_EXT")] + public const int GL_PIXEL_BUFFER_BARRIER_BIT_EXT = 0x00000080; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_UPDATE_BARRIER_BIT_EXT")] + public const int GL_TEXTURE_UPDATE_BARRIER_BIT_EXT = 0x00000100; + + [NativeName(NativeNameType.Const, "GL_BUFFER_UPDATE_BARRIER_BIT_EXT")] + public const int GL_BUFFER_UPDATE_BARRIER_BIT_EXT = 0x00000200; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_BARRIER_BIT_EXT")] + public const int GL_FRAMEBUFFER_BARRIER_BIT_EXT = 0x00000400; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT")] + public const int GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT = 0x00000800; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BARRIER_BIT_EXT")] + public const int GL_ATOMIC_COUNTER_BARRIER_BIT_EXT = 0x00001000; + + [NativeName(NativeNameType.Const, "GL_ALL_BARRIER_BITS_EXT")] + public const uint GL_ALL_BARRIER_BITS_EXT = 0xFFFFFFFF; + + [NativeName(NativeNameType.Const, "GL_EXT_shader_integer_mix")] + public const int GL_EXT_SHADER_INTEGER_MIX = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_shader_samples_identical")] + public const int GL_EXT_SHADER_SAMPLES_IDENTICAL = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_shadow_funcs")] + public const int GL_EXT_SHADOW_FUNCS = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_shared_texture_palette")] + public const int GL_EXT_SHARED_TEXTURE_PALETTE = 1; + + [NativeName(NativeNameType.Const, "GL_SHARED_TEXTURE_PALETTE_EXT")] + public const int GL_SHARED_TEXTURE_PALETTE_EXT = 0x81FB; + + [NativeName(NativeNameType.Const, "GL_EXT_sparse_texture2")] + public const int GL_EXT_SPARSE_TEXTURE2 = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_stencil_clear_tag")] + public const int GL_EXT_STENCIL_CLEAR_TAG = 1; + + [NativeName(NativeNameType.Const, "GL_STENCIL_TAG_BITS_EXT")] + public const int GL_STENCIL_TAG_BITS_EXT = 0x88F2; + + [NativeName(NativeNameType.Const, "GL_STENCIL_CLEAR_TAG_VALUE_EXT")] + public const int GL_STENCIL_CLEAR_TAG_VALUE_EXT = 0x88F3; + + [NativeName(NativeNameType.Const, "GL_EXT_stencil_two_side")] + public const int GL_EXT_STENCIL_TWO_SIDE = 1; + + [NativeName(NativeNameType.Const, "GL_STENCIL_TEST_TWO_SIDE_EXT")] + public const int GL_STENCIL_TEST_TWO_SIDE_EXT = 0x8910; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_STENCIL_FACE_EXT")] + public const int GL_ACTIVE_STENCIL_FACE_EXT = 0x8911; + + [NativeName(NativeNameType.Const, "GL_EXT_stencil_wrap")] + public const int GL_EXT_STENCIL_WRAP = 1; + + [NativeName(NativeNameType.Const, "GL_INCR_WRAP_EXT")] + public const int GL_INCR_WRAP_EXT = 0x8507; + + [NativeName(NativeNameType.Const, "GL_DECR_WRAP_EXT")] + public const int GL_DECR_WRAP_EXT = 0x8508; + + [NativeName(NativeNameType.Const, "GL_EXT_subtexture")] + public const int GL_EXT_SUBTEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_texture")] + public const int GL_EXT_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_ALPHA4_EXT")] + public const int GL_ALPHA4_EXT = 0x803B; + + [NativeName(NativeNameType.Const, "GL_ALPHA8_EXT")] + public const int GL_ALPHA8_EXT = 0x803C; + + [NativeName(NativeNameType.Const, "GL_ALPHA12_EXT")] + public const int GL_ALPHA12_EXT = 0x803D; + + [NativeName(NativeNameType.Const, "GL_ALPHA16_EXT")] + public const int GL_ALPHA16_EXT = 0x803E; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE4_EXT")] + public const int GL_LUMINANCE4_EXT = 0x803F; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE8_EXT")] + public const int GL_LUMINANCE8_EXT = 0x8040; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE12_EXT")] + public const int GL_LUMINANCE12_EXT = 0x8041; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE16_EXT")] + public const int GL_LUMINANCE16_EXT = 0x8042; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE4_ALPHA4_EXT")] + public const int GL_LUMINANCE4_ALPHA4_EXT = 0x8043; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE6_ALPHA2_EXT")] + public const int GL_LUMINANCE6_ALPHA2_EXT = 0x8044; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE8_ALPHA8_EXT")] + public const int GL_LUMINANCE8_ALPHA8_EXT = 0x8045; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE12_ALPHA4_EXT")] + public const int GL_LUMINANCE12_ALPHA4_EXT = 0x8046; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE12_ALPHA12_EXT")] + public const int GL_LUMINANCE12_ALPHA12_EXT = 0x8047; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE16_ALPHA16_EXT")] + public const int GL_LUMINANCE16_ALPHA16_EXT = 0x8048; + + [NativeName(NativeNameType.Const, "GL_INTENSITY_EXT")] + public const int GL_INTENSITY_EXT = 0x8049; + + [NativeName(NativeNameType.Const, "GL_INTENSITY4_EXT")] + public const int GL_INTENSITY4_EXT = 0x804A; + + [NativeName(NativeNameType.Const, "GL_INTENSITY8_EXT")] + public const int GL_INTENSITY8_EXT = 0x804B; + + [NativeName(NativeNameType.Const, "GL_INTENSITY12_EXT")] + public const int GL_INTENSITY12_EXT = 0x804C; + + [NativeName(NativeNameType.Const, "GL_INTENSITY16_EXT")] + public const int GL_INTENSITY16_EXT = 0x804D; + + [NativeName(NativeNameType.Const, "GL_RGB2_EXT")] + public const int GL_RGB2_EXT = 0x804E; + + [NativeName(NativeNameType.Const, "GL_RGB4_EXT")] + public const int GL_RGB4_EXT = 0x804F; + + [NativeName(NativeNameType.Const, "GL_RGB5_EXT")] + public const int GL_RGB5_EXT = 0x8050; + + [NativeName(NativeNameType.Const, "GL_RGB8_EXT")] + public const int GL_RGB8_EXT = 0x8051; + + [NativeName(NativeNameType.Const, "GL_RGB10_EXT")] + public const int GL_RGB10_EXT = 0x8052; + + [NativeName(NativeNameType.Const, "GL_RGB12_EXT")] + public const int GL_RGB12_EXT = 0x8053; + + [NativeName(NativeNameType.Const, "GL_RGB16_EXT")] + public const int GL_RGB16_EXT = 0x8054; + + [NativeName(NativeNameType.Const, "GL_RGBA2_EXT")] + public const int GL_RGBA2_EXT = 0x8055; + + [NativeName(NativeNameType.Const, "GL_RGBA4_EXT")] + public const int GL_RGBA4_EXT = 0x8056; + + [NativeName(NativeNameType.Const, "GL_RGB5_A1_EXT")] + public const int GL_RGB5_A1_EXT = 0x8057; + + [NativeName(NativeNameType.Const, "GL_RGBA8_EXT")] + public const int GL_RGBA8_EXT = 0x8058; + + [NativeName(NativeNameType.Const, "GL_RGB10_A2_EXT")] + public const int GL_RGB10_A2_EXT = 0x8059; + + [NativeName(NativeNameType.Const, "GL_RGBA12_EXT")] + public const int GL_RGBA12_EXT = 0x805A; + + [NativeName(NativeNameType.Const, "GL_RGBA16_EXT")] + public const int GL_RGBA16_EXT = 0x805B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RED_SIZE_EXT")] + public const int GL_TEXTURE_RED_SIZE_EXT = 0x805C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GREEN_SIZE_EXT")] + public const int GL_TEXTURE_GREEN_SIZE_EXT = 0x805D; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BLUE_SIZE_EXT")] + public const int GL_TEXTURE_BLUE_SIZE_EXT = 0x805E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_ALPHA_SIZE_EXT")] + public const int GL_TEXTURE_ALPHA_SIZE_EXT = 0x805F; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LUMINANCE_SIZE_EXT")] + public const int GL_TEXTURE_LUMINANCE_SIZE_EXT = 0x8060; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_INTENSITY_SIZE_EXT")] + public const int GL_TEXTURE_INTENSITY_SIZE_EXT = 0x8061; + + [NativeName(NativeNameType.Const, "GL_REPLACE_EXT")] + public const int GL_REPLACE_EXT = 0x8062; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_1D_EXT")] + public const int GL_PROXY_TEXTURE_1D_EXT = 0x8063; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_2D_EXT")] + public const int GL_PROXY_TEXTURE_2D_EXT = 0x8064; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_TOO_LARGE_EXT")] + public const int GL_TEXTURE_TOO_LARGE_EXT = 0x8065; + + [NativeName(NativeNameType.Const, "GL_EXT_texture3D")] + public const int GL_EXT_TEXTURE3D = 1; + + [NativeName(NativeNameType.Const, "GL_PACK_SKIP_IMAGES_EXT")] + public const int GL_PACK_SKIP_IMAGES_EXT = 0x806B; + + [NativeName(NativeNameType.Const, "GL_PACK_IMAGE_HEIGHT_EXT")] + public const int GL_PACK_IMAGE_HEIGHT_EXT = 0x806C; + + [NativeName(NativeNameType.Const, "GL_UNPACK_SKIP_IMAGES_EXT")] + public const int GL_UNPACK_SKIP_IMAGES_EXT = 0x806D; + + [NativeName(NativeNameType.Const, "GL_UNPACK_IMAGE_HEIGHT_EXT")] + public const int GL_UNPACK_IMAGE_HEIGHT_EXT = 0x806E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_3D_EXT")] + public const int GL_TEXTURE_3D_EXT = 0x806F; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_3D_EXT")] + public const int GL_PROXY_TEXTURE_3D_EXT = 0x8070; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_DEPTH_EXT")] + public const int GL_TEXTURE_DEPTH_EXT = 0x8071; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_WRAP_R_EXT")] + public const int GL_TEXTURE_WRAP_R_EXT = 0x8072; + + [NativeName(NativeNameType.Const, "GL_MAX_3D_TEXTURE_SIZE_EXT")] + public const int GL_MAX_3D_TEXTURE_SIZE_EXT = 0x8073; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_array")] + public const int GL_EXT_TEXTURE_ARRAY = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_1D_ARRAY_EXT")] + public const int GL_TEXTURE_1D_ARRAY_EXT = 0x8C18; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_1D_ARRAY_EXT")] + public const int GL_PROXY_TEXTURE_1D_ARRAY_EXT = 0x8C19; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_2D_ARRAY_EXT")] + public const int GL_TEXTURE_2D_ARRAY_EXT = 0x8C1A; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_2D_ARRAY_EXT")] + public const int GL_PROXY_TEXTURE_2D_ARRAY_EXT = 0x8C1B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_1D_ARRAY_EXT")] + public const int GL_TEXTURE_BINDING_1D_ARRAY_EXT = 0x8C1C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_2D_ARRAY_EXT")] + public const int GL_TEXTURE_BINDING_2D_ARRAY_EXT = 0x8C1D; + + [NativeName(NativeNameType.Const, "GL_MAX_ARRAY_TEXTURE_LAYERS_EXT")] + public const int GL_MAX_ARRAY_TEXTURE_LAYERS_EXT = 0x88FF; + + [NativeName(NativeNameType.Const, "GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT")] + public const int GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884E; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_buffer_object")] + public const int GL_EXT_TEXTURE_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER_EXT")] + public const int GL_TEXTURE_BUFFER_EXT = 0x8C2A; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_BUFFER_SIZE_EXT")] + public const int GL_MAX_TEXTURE_BUFFER_SIZE_EXT = 0x8C2B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_BUFFER_EXT")] + public const int GL_TEXTURE_BINDING_BUFFER_EXT = 0x8C2C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT")] + public const int GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8C2D; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BUFFER_FORMAT_EXT")] + public const int GL_TEXTURE_BUFFER_FORMAT_EXT = 0x8C2E; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_compression_latc")] + public const int GL_EXT_TEXTURE_COMPRESSION_LATC = 1; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_LUMINANCE_LATC1_EXT")] + public const int GL_COMPRESSED_LUMINANCE_LATC1_EXT = 0x8C70; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT")] + public const int GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8C71; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT")] + public const int GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT")] + public const int GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_compression_rgtc")] + public const int GL_EXT_TEXTURE_COMPRESSION_RGTC = 1; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RED_RGTC1_EXT")] + public const int GL_COMPRESSED_RED_RGTC1_EXT = 0x8DBB; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SIGNED_RED_RGTC1_EXT")] + public const int GL_COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DBC; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RED_GREEN_RGTC2_EXT")] + public const int GL_COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DBD; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT")] + public const int GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_compression_s3tc")] + public const int GL_EXT_TEXTURE_COMPRESSION_S3TC = 1; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGB_S3TC_DXT1_EXT")] + public const int GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT")] + public const int GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_S3TC_DXT3_EXT")] + public const int GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_RGBA_S3TC_DXT5_EXT")] + public const int GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_cube_map")] + public const int GL_EXT_TEXTURE_CUBE_MAP = 1; + + [NativeName(NativeNameType.Const, "GL_NORMAL_MAP_EXT")] + public const int GL_NORMAL_MAP_EXT = 0x8511; + + [NativeName(NativeNameType.Const, "GL_REFLECTION_MAP_EXT")] + public const int GL_REFLECTION_MAP_EXT = 0x8512; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_EXT")] + public const int GL_TEXTURE_CUBE_MAP_EXT = 0x8513; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_CUBE_MAP_EXT")] + public const int GL_TEXTURE_BINDING_CUBE_MAP_EXT = 0x8514; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT")] + public const int GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT = 0x8515; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT")] + public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = 0x8516; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT")] + public const int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = 0x8517; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT")] + public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = 0x8518; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT")] + public const int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = 0x8519; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT")] + public const int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = 0x851A; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_CUBE_MAP_EXT")] + public const int GL_PROXY_TEXTURE_CUBE_MAP_EXT = 0x851B; + + [NativeName(NativeNameType.Const, "GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT")] + public const int GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT = 0x851C; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_env_add")] + public const int GL_EXT_TEXTURE_ENV_ADD = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_env_combine")] + public const int GL_EXT_TEXTURE_ENV_COMBINE = 1; + + [NativeName(NativeNameType.Const, "GL_COMBINE_EXT")] + public const int GL_COMBINE_EXT = 0x8570; + + [NativeName(NativeNameType.Const, "GL_COMBINE_RGB_EXT")] + public const int GL_COMBINE_RGB_EXT = 0x8571; + + [NativeName(NativeNameType.Const, "GL_COMBINE_ALPHA_EXT")] + public const int GL_COMBINE_ALPHA_EXT = 0x8572; + + [NativeName(NativeNameType.Const, "GL_RGB_SCALE_EXT")] + public const int GL_RGB_SCALE_EXT = 0x8573; + + [NativeName(NativeNameType.Const, "GL_ADD_SIGNED_EXT")] + public const int GL_ADD_SIGNED_EXT = 0x8574; + + [NativeName(NativeNameType.Const, "GL_INTERPOLATE_EXT")] + public const int GL_INTERPOLATE_EXT = 0x8575; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_EXT")] + public const int GL_CONSTANT_EXT = 0x8576; + + [NativeName(NativeNameType.Const, "GL_PRIMARY_COLOR_EXT")] + public const int GL_PRIMARY_COLOR_EXT = 0x8577; + + [NativeName(NativeNameType.Const, "GL_PREVIOUS_EXT")] + public const int GL_PREVIOUS_EXT = 0x8578; + + [NativeName(NativeNameType.Const, "GL_SOURCE0_RGB_EXT")] + public const int GL_SOURCE0_RGB_EXT = 0x8580; + + [NativeName(NativeNameType.Const, "GL_SOURCE1_RGB_EXT")] + public const int GL_SOURCE1_RGB_EXT = 0x8581; + + [NativeName(NativeNameType.Const, "GL_SOURCE2_RGB_EXT")] + public const int GL_SOURCE2_RGB_EXT = 0x8582; + + [NativeName(NativeNameType.Const, "GL_SOURCE0_ALPHA_EXT")] + public const int GL_SOURCE0_ALPHA_EXT = 0x8588; + + [NativeName(NativeNameType.Const, "GL_SOURCE1_ALPHA_EXT")] + public const int GL_SOURCE1_ALPHA_EXT = 0x8589; + + [NativeName(NativeNameType.Const, "GL_SOURCE2_ALPHA_EXT")] + public const int GL_SOURCE2_ALPHA_EXT = 0x858A; + + [NativeName(NativeNameType.Const, "GL_OPERAND0_RGB_EXT")] + public const int GL_OPERAND0_RGB_EXT = 0x8590; + + [NativeName(NativeNameType.Const, "GL_OPERAND1_RGB_EXT")] + public const int GL_OPERAND1_RGB_EXT = 0x8591; + + [NativeName(NativeNameType.Const, "GL_OPERAND2_RGB_EXT")] + public const int GL_OPERAND2_RGB_EXT = 0x8592; + + [NativeName(NativeNameType.Const, "GL_OPERAND0_ALPHA_EXT")] + public const int GL_OPERAND0_ALPHA_EXT = 0x8598; + + [NativeName(NativeNameType.Const, "GL_OPERAND1_ALPHA_EXT")] + public const int GL_OPERAND1_ALPHA_EXT = 0x8599; + + [NativeName(NativeNameType.Const, "GL_OPERAND2_ALPHA_EXT")] + public const int GL_OPERAND2_ALPHA_EXT = 0x859A; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_env_dot3")] + public const int GL_EXT_TEXTURE_ENV_DOT3 = 1; + + [NativeName(NativeNameType.Const, "GL_DOT3_RGB_EXT")] + public const int GL_DOT3_RGB_EXT = 0x8740; + + [NativeName(NativeNameType.Const, "GL_DOT3_RGBA_EXT")] + public const int GL_DOT3_RGBA_EXT = 0x8741; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_filter_anisotropic")] + public const int GL_EXT_TEXTURE_FILTER_ANISOTROPIC = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MAX_ANISOTROPY_EXT")] + public const int GL_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT")] + public const int GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_filter_minmax")] + public const int GL_EXT_TEXTURE_FILTER_MINMAX = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_REDUCTION_MODE_EXT")] + public const int GL_TEXTURE_REDUCTION_MODE_EXT = 0x9366; + + [NativeName(NativeNameType.Const, "GL_WEIGHTED_AVERAGE_EXT")] + public const int GL_WEIGHTED_AVERAGE_EXT = 0x9367; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_integer")] + public const int GL_EXT_TEXTURE_INTEGER = 1; + + [NativeName(NativeNameType.Const, "GL_RGBA32UI_EXT")] + public const int GL_RGBA32UI_EXT = 0x8D70; + + [NativeName(NativeNameType.Const, "GL_RGB32UI_EXT")] + public const int GL_RGB32UI_EXT = 0x8D71; + + [NativeName(NativeNameType.Const, "GL_ALPHA32UI_EXT")] + public const int GL_ALPHA32UI_EXT = 0x8D72; + + [NativeName(NativeNameType.Const, "GL_INTENSITY32UI_EXT")] + public const int GL_INTENSITY32UI_EXT = 0x8D73; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE32UI_EXT")] + public const int GL_LUMINANCE32UI_EXT = 0x8D74; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA32UI_EXT")] + public const int GL_LUMINANCE_ALPHA32UI_EXT = 0x8D75; + + [NativeName(NativeNameType.Const, "GL_RGBA16UI_EXT")] + public const int GL_RGBA16UI_EXT = 0x8D76; + + [NativeName(NativeNameType.Const, "GL_RGB16UI_EXT")] + public const int GL_RGB16UI_EXT = 0x8D77; + + [NativeName(NativeNameType.Const, "GL_ALPHA16UI_EXT")] + public const int GL_ALPHA16UI_EXT = 0x8D78; + + [NativeName(NativeNameType.Const, "GL_INTENSITY16UI_EXT")] + public const int GL_INTENSITY16UI_EXT = 0x8D79; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE16UI_EXT")] + public const int GL_LUMINANCE16UI_EXT = 0x8D7A; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA16UI_EXT")] + public const int GL_LUMINANCE_ALPHA16UI_EXT = 0x8D7B; + + [NativeName(NativeNameType.Const, "GL_RGBA8UI_EXT")] + public const int GL_RGBA8UI_EXT = 0x8D7C; + + [NativeName(NativeNameType.Const, "GL_RGB8UI_EXT")] + public const int GL_RGB8UI_EXT = 0x8D7D; + + [NativeName(NativeNameType.Const, "GL_ALPHA8UI_EXT")] + public const int GL_ALPHA8UI_EXT = 0x8D7E; + + [NativeName(NativeNameType.Const, "GL_INTENSITY8UI_EXT")] + public const int GL_INTENSITY8UI_EXT = 0x8D7F; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE8UI_EXT")] + public const int GL_LUMINANCE8UI_EXT = 0x8D80; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA8UI_EXT")] + public const int GL_LUMINANCE_ALPHA8UI_EXT = 0x8D81; + + [NativeName(NativeNameType.Const, "GL_RGBA32I_EXT")] + public const int GL_RGBA32I_EXT = 0x8D82; + + [NativeName(NativeNameType.Const, "GL_RGB32I_EXT")] + public const int GL_RGB32I_EXT = 0x8D83; + + [NativeName(NativeNameType.Const, "GL_ALPHA32I_EXT")] + public const int GL_ALPHA32I_EXT = 0x8D84; + + [NativeName(NativeNameType.Const, "GL_INTENSITY32I_EXT")] + public const int GL_INTENSITY32I_EXT = 0x8D85; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE32I_EXT")] + public const int GL_LUMINANCE32I_EXT = 0x8D86; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA32I_EXT")] + public const int GL_LUMINANCE_ALPHA32I_EXT = 0x8D87; + + [NativeName(NativeNameType.Const, "GL_RGBA16I_EXT")] + public const int GL_RGBA16I_EXT = 0x8D88; + + [NativeName(NativeNameType.Const, "GL_RGB16I_EXT")] + public const int GL_RGB16I_EXT = 0x8D89; + + [NativeName(NativeNameType.Const, "GL_ALPHA16I_EXT")] + public const int GL_ALPHA16I_EXT = 0x8D8A; + + [NativeName(NativeNameType.Const, "GL_INTENSITY16I_EXT")] + public const int GL_INTENSITY16I_EXT = 0x8D8B; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE16I_EXT")] + public const int GL_LUMINANCE16I_EXT = 0x8D8C; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA16I_EXT")] + public const int GL_LUMINANCE_ALPHA16I_EXT = 0x8D8D; + + [NativeName(NativeNameType.Const, "GL_RGBA8I_EXT")] + public const int GL_RGBA8I_EXT = 0x8D8E; + + [NativeName(NativeNameType.Const, "GL_RGB8I_EXT")] + public const int GL_RGB8I_EXT = 0x8D8F; + + [NativeName(NativeNameType.Const, "GL_ALPHA8I_EXT")] + public const int GL_ALPHA8I_EXT = 0x8D90; + + [NativeName(NativeNameType.Const, "GL_INTENSITY8I_EXT")] + public const int GL_INTENSITY8I_EXT = 0x8D91; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE8I_EXT")] + public const int GL_LUMINANCE8I_EXT = 0x8D92; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA8I_EXT")] + public const int GL_LUMINANCE_ALPHA8I_EXT = 0x8D93; + + [NativeName(NativeNameType.Const, "GL_RED_INTEGER_EXT")] + public const int GL_RED_INTEGER_EXT = 0x8D94; + + [NativeName(NativeNameType.Const, "GL_GREEN_INTEGER_EXT")] + public const int GL_GREEN_INTEGER_EXT = 0x8D95; + + [NativeName(NativeNameType.Const, "GL_BLUE_INTEGER_EXT")] + public const int GL_BLUE_INTEGER_EXT = 0x8D96; + + [NativeName(NativeNameType.Const, "GL_ALPHA_INTEGER_EXT")] + public const int GL_ALPHA_INTEGER_EXT = 0x8D97; + + [NativeName(NativeNameType.Const, "GL_RGB_INTEGER_EXT")] + public const int GL_RGB_INTEGER_EXT = 0x8D98; + + [NativeName(NativeNameType.Const, "GL_RGBA_INTEGER_EXT")] + public const int GL_RGBA_INTEGER_EXT = 0x8D99; + + [NativeName(NativeNameType.Const, "GL_BGR_INTEGER_EXT")] + public const int GL_BGR_INTEGER_EXT = 0x8D9A; + + [NativeName(NativeNameType.Const, "GL_BGRA_INTEGER_EXT")] + public const int GL_BGRA_INTEGER_EXT = 0x8D9B; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_INTEGER_EXT")] + public const int GL_LUMINANCE_INTEGER_EXT = 0x8D9C; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA_INTEGER_EXT")] + public const int GL_LUMINANCE_ALPHA_INTEGER_EXT = 0x8D9D; + + [NativeName(NativeNameType.Const, "GL_RGBA_INTEGER_MODE_EXT")] + public const int GL_RGBA_INTEGER_MODE_EXT = 0x8D9E; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_lod_bias")] + public const int GL_EXT_TEXTURE_LOD_BIAS = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_LOD_BIAS_EXT")] + public const int GL_MAX_TEXTURE_LOD_BIAS_EXT = 0x84FD; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_FILTER_CONTROL_EXT")] + public const int GL_TEXTURE_FILTER_CONTROL_EXT = 0x8500; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LOD_BIAS_EXT")] + public const int GL_TEXTURE_LOD_BIAS_EXT = 0x8501; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_mirror_clamp")] + public const int GL_EXT_TEXTURE_MIRROR_CLAMP = 1; + + [NativeName(NativeNameType.Const, "GL_MIRROR_CLAMP_EXT")] + public const int GL_MIRROR_CLAMP_EXT = 0x8742; + + [NativeName(NativeNameType.Const, "GL_MIRROR_CLAMP_TO_EDGE_EXT")] + public const int GL_MIRROR_CLAMP_TO_EDGE_EXT = 0x8743; + + [NativeName(NativeNameType.Const, "GL_MIRROR_CLAMP_TO_BORDER_EXT")] + public const int GL_MIRROR_CLAMP_TO_BORDER_EXT = 0x8912; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_object")] + public const int GL_EXT_TEXTURE_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_PRIORITY_EXT")] + public const int GL_TEXTURE_PRIORITY_EXT = 0x8066; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RESIDENT_EXT")] + public const int GL_TEXTURE_RESIDENT_EXT = 0x8067; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_1D_BINDING_EXT")] + public const int GL_TEXTURE_1D_BINDING_EXT = 0x8068; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_2D_BINDING_EXT")] + public const int GL_TEXTURE_2D_BINDING_EXT = 0x8069; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_3D_BINDING_EXT")] + public const int GL_TEXTURE_3D_BINDING_EXT = 0x806A; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_perturb_normal")] + public const int GL_EXT_TEXTURE_PERTURB_NORMAL = 1; + + [NativeName(NativeNameType.Const, "GL_PERTURB_EXT")] + public const int GL_PERTURB_EXT = 0x85AE; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_NORMAL_EXT")] + public const int GL_TEXTURE_NORMAL_EXT = 0x85AF; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_sRGB")] + public const int GL_EXT_TEXTURE_SRGB = 1; + + [NativeName(NativeNameType.Const, "GL_SRGB_EXT")] + public const int GL_SRGB_EXT = 0x8C40; + + [NativeName(NativeNameType.Const, "GL_SRGB8_EXT")] + public const int GL_SRGB8_EXT = 0x8C41; + + [NativeName(NativeNameType.Const, "GL_SRGB_ALPHA_EXT")] + public const int GL_SRGB_ALPHA_EXT = 0x8C42; + + [NativeName(NativeNameType.Const, "GL_SRGB8_ALPHA8_EXT")] + public const int GL_SRGB8_ALPHA8_EXT = 0x8C43; + + [NativeName(NativeNameType.Const, "GL_SLUMINANCE_ALPHA_EXT")] + public const int GL_SLUMINANCE_ALPHA_EXT = 0x8C44; + + [NativeName(NativeNameType.Const, "GL_SLUMINANCE8_ALPHA8_EXT")] + public const int GL_SLUMINANCE8_ALPHA8_EXT = 0x8C45; + + [NativeName(NativeNameType.Const, "GL_SLUMINANCE_EXT")] + public const int GL_SLUMINANCE_EXT = 0x8C46; + + [NativeName(NativeNameType.Const, "GL_SLUMINANCE8_EXT")] + public const int GL_SLUMINANCE8_EXT = 0x8C47; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB_EXT")] + public const int GL_COMPRESSED_SRGB_EXT = 0x8C48; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB_ALPHA_EXT")] + public const int GL_COMPRESSED_SRGB_ALPHA_EXT = 0x8C49; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SLUMINANCE_EXT")] + public const int GL_COMPRESSED_SLUMINANCE_EXT = 0x8C4A; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SLUMINANCE_ALPHA_EXT")] + public const int GL_COMPRESSED_SLUMINANCE_ALPHA_EXT = 0x8C4B; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB_S3TC_DXT1_EXT")] + public const int GL_COMPRESSED_SRGB_S3TC_DXT1_EXT = 0x8C4C; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT")] + public const int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT")] + public const int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E; + + [NativeName(NativeNameType.Const, "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT")] + public const int GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_sRGB_R8")] + public const int GL_EXT_TEXTURE_SRGB_R8 = 1; + + [NativeName(NativeNameType.Const, "GL_SR8_EXT")] + public const int GL_SR8_EXT = 0x8FBD; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_sRGB_RG8")] + public const int GL_EXT_TEXTURE_SRGB_RG8 = 1; + + [NativeName(NativeNameType.Const, "GL_SRG8_EXT")] + public const int GL_SRG8_EXT = 0x8FBE; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_sRGB_decode")] + public const int GL_EXT_TEXTURE_SRGB_DECODE = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SRGB_DECODE_EXT")] + public const int GL_TEXTURE_SRGB_DECODE_EXT = 0x8A48; + + [NativeName(NativeNameType.Const, "GL_DECODE_EXT")] + public const int GL_DECODE_EXT = 0x8A49; + + [NativeName(NativeNameType.Const, "GL_SKIP_DECODE_EXT")] + public const int GL_SKIP_DECODE_EXT = 0x8A4A; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_shadow_lod")] + public const int GL_EXT_TEXTURE_SHADOW_LOD = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_shared_exponent")] + public const int GL_EXT_TEXTURE_SHARED_EXPONENT = 1; + + [NativeName(NativeNameType.Const, "GL_RGB9_E5_EXT")] + public const int GL_RGB9_E5_EXT = 0x8C3D; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_5_9_9_9_REV_EXT")] + public const int GL_UNSIGNED_INT_5_9_9_9_REV_EXT = 0x8C3E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SHARED_SIZE_EXT")] + public const int GL_TEXTURE_SHARED_SIZE_EXT = 0x8C3F; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_snorm")] + public const int GL_EXT_TEXTURE_SNORM = 1; + + [NativeName(NativeNameType.Const, "GL_ALPHA_SNORM")] + public const int GL_ALPHA_SNORM = 0x9010; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_SNORM")] + public const int GL_LUMINANCE_SNORM = 0x9011; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA_SNORM")] + public const int GL_LUMINANCE_ALPHA_SNORM = 0x9012; + + [NativeName(NativeNameType.Const, "GL_INTENSITY_SNORM")] + public const int GL_INTENSITY_SNORM = 0x9013; + + [NativeName(NativeNameType.Const, "GL_ALPHA8_SNORM")] + public const int GL_ALPHA8_SNORM = 0x9014; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE8_SNORM")] + public const int GL_LUMINANCE8_SNORM = 0x9015; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE8_ALPHA8_SNORM")] + public const int GL_LUMINANCE8_ALPHA8_SNORM = 0x9016; + + [NativeName(NativeNameType.Const, "GL_INTENSITY8_SNORM")] + public const int GL_INTENSITY8_SNORM = 0x9017; + + [NativeName(NativeNameType.Const, "GL_ALPHA16_SNORM")] + public const int GL_ALPHA16_SNORM = 0x9018; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE16_SNORM")] + public const int GL_LUMINANCE16_SNORM = 0x9019; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE16_ALPHA16_SNORM")] + public const int GL_LUMINANCE16_ALPHA16_SNORM = 0x901A; + + [NativeName(NativeNameType.Const, "GL_INTENSITY16_SNORM")] + public const int GL_INTENSITY16_SNORM = 0x901B; + + [NativeName(NativeNameType.Const, "GL_RED_SNORM")] + public const int GL_RED_SNORM = 0x8F90; + + [NativeName(NativeNameType.Const, "GL_RG_SNORM")] + public const int GL_RG_SNORM = 0x8F91; + + [NativeName(NativeNameType.Const, "GL_RGB_SNORM")] + public const int GL_RGB_SNORM = 0x8F92; + + [NativeName(NativeNameType.Const, "GL_RGBA_SNORM")] + public const int GL_RGBA_SNORM = 0x8F93; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_storage")] + public const int GL_EXT_TEXTURE_STORAGE = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_IMMUTABLE_FORMAT_EXT")] + public const int GL_TEXTURE_IMMUTABLE_FORMAT_EXT = 0x912F; + + [NativeName(NativeNameType.Const, "GL_RGBA32F_EXT")] + public const int GL_RGBA32F_EXT = 0x8814; + + [NativeName(NativeNameType.Const, "GL_RGB32F_EXT")] + public const int GL_RGB32F_EXT = 0x8815; + + [NativeName(NativeNameType.Const, "GL_ALPHA32F_EXT")] + public const int GL_ALPHA32F_EXT = 0x8816; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE32F_EXT")] + public const int GL_LUMINANCE32F_EXT = 0x8818; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA32F_EXT")] + public const int GL_LUMINANCE_ALPHA32F_EXT = 0x8819; + + [NativeName(NativeNameType.Const, "GL_RGBA16F_EXT")] + public const int GL_RGBA16F_EXT = 0x881A; + + [NativeName(NativeNameType.Const, "GL_RGB16F_EXT")] + public const int GL_RGB16F_EXT = 0x881B; + + [NativeName(NativeNameType.Const, "GL_ALPHA16F_EXT")] + public const int GL_ALPHA16F_EXT = 0x881C; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE16F_EXT")] + public const int GL_LUMINANCE16F_EXT = 0x881E; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA16F_EXT")] + public const int GL_LUMINANCE_ALPHA16F_EXT = 0x881F; + + [NativeName(NativeNameType.Const, "GL_BGRA8_EXT")] + public const int GL_BGRA8_EXT = 0x93A1; + + [NativeName(NativeNameType.Const, "GL_R8_EXT")] + public const int GL_R8_EXT = 0x8229; + + [NativeName(NativeNameType.Const, "GL_RG8_EXT")] + public const int GL_RG8_EXT = 0x822B; + + [NativeName(NativeNameType.Const, "GL_R32F_EXT")] + public const int GL_R32F_EXT = 0x822E; + + [NativeName(NativeNameType.Const, "GL_RG32F_EXT")] + public const int GL_RG32F_EXT = 0x8230; + + [NativeName(NativeNameType.Const, "GL_R16F_EXT")] + public const int GL_R16F_EXT = 0x822D; + + [NativeName(NativeNameType.Const, "GL_RG16F_EXT")] + public const int GL_RG16F_EXT = 0x822F; + + [NativeName(NativeNameType.Const, "GL_EXT_texture_swizzle")] + public const int GL_EXT_TEXTURE_SWIZZLE = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SWIZZLE_R_EXT")] + public const int GL_TEXTURE_SWIZZLE_R_EXT = 0x8E42; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SWIZZLE_G_EXT")] + public const int GL_TEXTURE_SWIZZLE_G_EXT = 0x8E43; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SWIZZLE_B_EXT")] + public const int GL_TEXTURE_SWIZZLE_B_EXT = 0x8E44; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SWIZZLE_A_EXT")] + public const int GL_TEXTURE_SWIZZLE_A_EXT = 0x8E45; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SWIZZLE_RGBA_EXT")] + public const int GL_TEXTURE_SWIZZLE_RGBA_EXT = 0x8E46; + + [NativeName(NativeNameType.Const, "GL_EXT_timer_query")] + public const int GL_EXT_TIMER_QUERY = 1; + + [NativeName(NativeNameType.Const, "GL_TIME_ELAPSED_EXT")] + public const int GL_TIME_ELAPSED_EXT = 0x88BF; + + [NativeName(NativeNameType.Const, "GL_EXT_transform_feedback")] + public const int GL_EXT_TRANSFORM_FEEDBACK = 1; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_EXT")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_EXT = 0x8C8E; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT = 0x8C84; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT = 0x8C85; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT = 0x8C8F; + + [NativeName(NativeNameType.Const, "GL_INTERLEAVED_ATTRIBS_EXT")] + public const int GL_INTERLEAVED_ATTRIBS_EXT = 0x8C8C; + + [NativeName(NativeNameType.Const, "GL_SEPARATE_ATTRIBS_EXT")] + public const int GL_SEPARATE_ATTRIBS_EXT = 0x8C8D; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVES_GENERATED_EXT")] + public const int GL_PRIMITIVES_GENERATED_EXT = 0x8C87; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT")] + public const int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT = 0x8C88; + + [NativeName(NativeNameType.Const, "GL_RASTERIZER_DISCARD_EXT")] + public const int GL_RASTERIZER_DISCARD_EXT = 0x8C89; + + [NativeName(NativeNameType.Const, "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT")] + public const int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT = 0x8C8A; + + [NativeName(NativeNameType.Const, "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT")] + public const int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT = 0x8C8B; + + [NativeName(NativeNameType.Const, "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT")] + public const int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT = 0x8C80; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_VARYINGS_EXT")] + public const int GL_TRANSFORM_FEEDBACK_VARYINGS_EXT = 0x8C83; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT = 0x8C7F; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT")] + public const int GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT = 0x8C76; + + [NativeName(NativeNameType.Const, "GL_EXT_vertex_array_bgra")] + public const int GL_EXT_VERTEX_ARRAY_BGRA = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_vertex_attrib_64bit")] + public const int GL_EXT_VERTEX_ATTRIB_64BIT = 1; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_VEC2_EXT")] + public const int GL_DOUBLE_VEC2_EXT = 0x8FFC; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_VEC3_EXT")] + public const int GL_DOUBLE_VEC3_EXT = 0x8FFD; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_VEC4_EXT")] + public const int GL_DOUBLE_VEC4_EXT = 0x8FFE; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT2_EXT")] + public const int GL_DOUBLE_MAT2_EXT = 0x8F46; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT3_EXT")] + public const int GL_DOUBLE_MAT3_EXT = 0x8F47; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT4_EXT")] + public const int GL_DOUBLE_MAT4_EXT = 0x8F48; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT2x3_EXT")] + public const int GL_DOUBLE_MAT2X3_EXT = 0x8F49; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT2x4_EXT")] + public const int GL_DOUBLE_MAT2X4_EXT = 0x8F4A; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT3x2_EXT")] + public const int GL_DOUBLE_MAT3X2_EXT = 0x8F4B; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT3x4_EXT")] + public const int GL_DOUBLE_MAT3X4_EXT = 0x8F4C; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT4x2_EXT")] + public const int GL_DOUBLE_MAT4X2_EXT = 0x8F4D; + + [NativeName(NativeNameType.Const, "GL_DOUBLE_MAT4x3_EXT")] + public const int GL_DOUBLE_MAT4X3_EXT = 0x8F4E; + + [NativeName(NativeNameType.Const, "GL_EXT_vertex_shader")] + public const int GL_EXT_VERTEX_SHADER = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_EXT")] + public const int GL_VERTEX_SHADER_EXT = 0x8780; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_BINDING_EXT")] + public const int GL_VERTEX_SHADER_BINDING_EXT = 0x8781; + + [NativeName(NativeNameType.Const, "GL_OP_INDEX_EXT")] + public const int GL_OP_INDEX_EXT = 0x8782; + + [NativeName(NativeNameType.Const, "GL_OP_NEGATE_EXT")] + public const int GL_OP_NEGATE_EXT = 0x8783; + + [NativeName(NativeNameType.Const, "GL_OP_DOT3_EXT")] + public const int GL_OP_DOT3_EXT = 0x8784; + + [NativeName(NativeNameType.Const, "GL_OP_DOT4_EXT")] + public const int GL_OP_DOT4_EXT = 0x8785; + + [NativeName(NativeNameType.Const, "GL_OP_MUL_EXT")] + public const int GL_OP_MUL_EXT = 0x8786; + + [NativeName(NativeNameType.Const, "GL_OP_ADD_EXT")] + public const int GL_OP_ADD_EXT = 0x8787; + + [NativeName(NativeNameType.Const, "GL_OP_MADD_EXT")] + public const int GL_OP_MADD_EXT = 0x8788; + + [NativeName(NativeNameType.Const, "GL_OP_FRAC_EXT")] + public const int GL_OP_FRAC_EXT = 0x8789; + + [NativeName(NativeNameType.Const, "GL_OP_MAX_EXT")] + public const int GL_OP_MAX_EXT = 0x878A; + + [NativeName(NativeNameType.Const, "GL_OP_MIN_EXT")] + public const int GL_OP_MIN_EXT = 0x878B; + + [NativeName(NativeNameType.Const, "GL_OP_SET_GE_EXT")] + public const int GL_OP_SET_GE_EXT = 0x878C; + + [NativeName(NativeNameType.Const, "GL_OP_SET_LT_EXT")] + public const int GL_OP_SET_LT_EXT = 0x878D; + + [NativeName(NativeNameType.Const, "GL_OP_CLAMP_EXT")] + public const int GL_OP_CLAMP_EXT = 0x878E; + + [NativeName(NativeNameType.Const, "GL_OP_FLOOR_EXT")] + public const int GL_OP_FLOOR_EXT = 0x878F; + + [NativeName(NativeNameType.Const, "GL_OP_ROUND_EXT")] + public const int GL_OP_ROUND_EXT = 0x8790; + + [NativeName(NativeNameType.Const, "GL_OP_EXP_BASE_2_EXT")] + public const int GL_OP_EXP_BASE_2_EXT = 0x8791; + + [NativeName(NativeNameType.Const, "GL_OP_LOG_BASE_2_EXT")] + public const int GL_OP_LOG_BASE_2_EXT = 0x8792; + + [NativeName(NativeNameType.Const, "GL_OP_POWER_EXT")] + public const int GL_OP_POWER_EXT = 0x8793; + + [NativeName(NativeNameType.Const, "GL_OP_RECIP_EXT")] + public const int GL_OP_RECIP_EXT = 0x8794; + + [NativeName(NativeNameType.Const, "GL_OP_RECIP_SQRT_EXT")] + public const int GL_OP_RECIP_SQRT_EXT = 0x8795; + + [NativeName(NativeNameType.Const, "GL_OP_SUB_EXT")] + public const int GL_OP_SUB_EXT = 0x8796; + + [NativeName(NativeNameType.Const, "GL_OP_CROSS_PRODUCT_EXT")] + public const int GL_OP_CROSS_PRODUCT_EXT = 0x8797; + + [NativeName(NativeNameType.Const, "GL_OP_MULTIPLY_MATRIX_EXT")] + public const int GL_OP_MULTIPLY_MATRIX_EXT = 0x8798; + + [NativeName(NativeNameType.Const, "GL_OP_MOV_EXT")] + public const int GL_OP_MOV_EXT = 0x8799; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_VERTEX_EXT")] + public const int GL_OUTPUT_VERTEX_EXT = 0x879A; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_COLOR0_EXT")] + public const int GL_OUTPUT_COLOR0_EXT = 0x879B; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_COLOR1_EXT")] + public const int GL_OUTPUT_COLOR1_EXT = 0x879C; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD0_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD0_EXT = 0x879D; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD1_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD1_EXT = 0x879E; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD2_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD2_EXT = 0x879F; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD3_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD3_EXT = 0x87A0; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD4_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD4_EXT = 0x87A1; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD5_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD5_EXT = 0x87A2; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD6_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD6_EXT = 0x87A3; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD7_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD7_EXT = 0x87A4; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD8_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD8_EXT = 0x87A5; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD9_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD9_EXT = 0x87A6; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD10_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD10_EXT = 0x87A7; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD11_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD11_EXT = 0x87A8; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD12_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD12_EXT = 0x87A9; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD13_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD13_EXT = 0x87AA; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD14_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD14_EXT = 0x87AB; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD15_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD15_EXT = 0x87AC; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD16_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD16_EXT = 0x87AD; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD17_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD17_EXT = 0x87AE; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD18_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD18_EXT = 0x87AF; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD19_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD19_EXT = 0x87B0; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD20_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD20_EXT = 0x87B1; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD21_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD21_EXT = 0x87B2; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD22_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD22_EXT = 0x87B3; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD23_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD23_EXT = 0x87B4; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD24_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD24_EXT = 0x87B5; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD25_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD25_EXT = 0x87B6; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD26_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD26_EXT = 0x87B7; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD27_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD27_EXT = 0x87B8; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD28_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD28_EXT = 0x87B9; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD29_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD29_EXT = 0x87BA; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD30_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD30_EXT = 0x87BB; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_TEXTURE_COORD31_EXT")] + public const int GL_OUTPUT_TEXTURE_COORD31_EXT = 0x87BC; + + [NativeName(NativeNameType.Const, "GL_OUTPUT_FOG_EXT")] + public const int GL_OUTPUT_FOG_EXT = 0x87BD; + + [NativeName(NativeNameType.Const, "GL_SCALAR_EXT")] + public const int GL_SCALAR_EXT = 0x87BE; + + [NativeName(NativeNameType.Const, "GL_VECTOR_EXT")] + public const int GL_VECTOR_EXT = 0x87BF; + + [NativeName(NativeNameType.Const, "GL_MATRIX_EXT")] + public const int GL_MATRIX_EXT = 0x87C0; + + [NativeName(NativeNameType.Const, "GL_VARIANT_EXT")] + public const int GL_VARIANT_EXT = 0x87C1; + + [NativeName(NativeNameType.Const, "GL_INVARIANT_EXT")] + public const int GL_INVARIANT_EXT = 0x87C2; + + [NativeName(NativeNameType.Const, "GL_LOCAL_CONSTANT_EXT")] + public const int GL_LOCAL_CONSTANT_EXT = 0x87C3; + + [NativeName(NativeNameType.Const, "GL_LOCAL_EXT")] + public const int GL_LOCAL_EXT = 0x87C4; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT")] + public const int GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87C5; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_SHADER_VARIANTS_EXT")] + public const int GL_MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87C6; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_SHADER_INVARIANTS_EXT")] + public const int GL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87C7; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT")] + public const int GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87C8; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_SHADER_LOCALS_EXT")] + public const int GL_MAX_VERTEX_SHADER_LOCALS_EXT = 0x87C9; + + [NativeName(NativeNameType.Const, "GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT")] + public const int GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CA; + + [NativeName(NativeNameType.Const, "GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT")] + public const int GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87CB; + + [NativeName(NativeNameType.Const, "GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT")] + public const int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87CC; + + [NativeName(NativeNameType.Const, "GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT")] + public const int GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87CD; + + [NativeName(NativeNameType.Const, "GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT")] + public const int GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87CE; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_INSTRUCTIONS_EXT")] + public const int GL_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CF; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_VARIANTS_EXT")] + public const int GL_VERTEX_SHADER_VARIANTS_EXT = 0x87D0; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_INVARIANTS_EXT")] + public const int GL_VERTEX_SHADER_INVARIANTS_EXT = 0x87D1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT")] + public const int GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87D2; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_LOCALS_EXT")] + public const int GL_VERTEX_SHADER_LOCALS_EXT = 0x87D3; + + [NativeName(NativeNameType.Const, "GL_VERTEX_SHADER_OPTIMIZED_EXT")] + public const int GL_VERTEX_SHADER_OPTIMIZED_EXT = 0x87D4; + + [NativeName(NativeNameType.Const, "GL_X_EXT")] + public const int GL_X_EXT = 0x87D5; + + [NativeName(NativeNameType.Const, "GL_Y_EXT")] + public const int GL_Y_EXT = 0x87D6; + + [NativeName(NativeNameType.Const, "GL_Z_EXT")] + public const int GL_Z_EXT = 0x87D7; + + [NativeName(NativeNameType.Const, "GL_W_EXT")] + public const int GL_W_EXT = 0x87D8; + + [NativeName(NativeNameType.Const, "GL_NEGATIVE_X_EXT")] + public const int GL_NEGATIVE_X_EXT = 0x87D9; + + [NativeName(NativeNameType.Const, "GL_NEGATIVE_Y_EXT")] + public const int GL_NEGATIVE_Y_EXT = 0x87DA; + + [NativeName(NativeNameType.Const, "GL_NEGATIVE_Z_EXT")] + public const int GL_NEGATIVE_Z_EXT = 0x87DB; + + [NativeName(NativeNameType.Const, "GL_NEGATIVE_W_EXT")] + public const int GL_NEGATIVE_W_EXT = 0x87DC; + + [NativeName(NativeNameType.Const, "GL_ZERO_EXT")] + public const int GL_ZERO_EXT = 0x87DD; + + [NativeName(NativeNameType.Const, "GL_ONE_EXT")] + public const int GL_ONE_EXT = 0x87DE; + + [NativeName(NativeNameType.Const, "GL_NEGATIVE_ONE_EXT")] + public const int GL_NEGATIVE_ONE_EXT = 0x87DF; + + [NativeName(NativeNameType.Const, "GL_NORMALIZED_RANGE_EXT")] + public const int GL_NORMALIZED_RANGE_EXT = 0x87E0; + + [NativeName(NativeNameType.Const, "GL_FULL_RANGE_EXT")] + public const int GL_FULL_RANGE_EXT = 0x87E1; + + [NativeName(NativeNameType.Const, "GL_CURRENT_VERTEX_EXT")] + public const int GL_CURRENT_VERTEX_EXT = 0x87E2; + + [NativeName(NativeNameType.Const, "GL_MVP_MATRIX_EXT")] + public const int GL_MVP_MATRIX_EXT = 0x87E3; + + [NativeName(NativeNameType.Const, "GL_VARIANT_VALUE_EXT")] + public const int GL_VARIANT_VALUE_EXT = 0x87E4; + + [NativeName(NativeNameType.Const, "GL_VARIANT_DATATYPE_EXT")] + public const int GL_VARIANT_DATATYPE_EXT = 0x87E5; + + [NativeName(NativeNameType.Const, "GL_VARIANT_ARRAY_STRIDE_EXT")] + public const int GL_VARIANT_ARRAY_STRIDE_EXT = 0x87E6; + + [NativeName(NativeNameType.Const, "GL_VARIANT_ARRAY_TYPE_EXT")] + public const int GL_VARIANT_ARRAY_TYPE_EXT = 0x87E7; + + [NativeName(NativeNameType.Const, "GL_VARIANT_ARRAY_EXT")] + public const int GL_VARIANT_ARRAY_EXT = 0x87E8; + + [NativeName(NativeNameType.Const, "GL_VARIANT_ARRAY_POINTER_EXT")] + public const int GL_VARIANT_ARRAY_POINTER_EXT = 0x87E9; + + [NativeName(NativeNameType.Const, "GL_INVARIANT_VALUE_EXT")] + public const int GL_INVARIANT_VALUE_EXT = 0x87EA; + + [NativeName(NativeNameType.Const, "GL_INVARIANT_DATATYPE_EXT")] + public const int GL_INVARIANT_DATATYPE_EXT = 0x87EB; + + [NativeName(NativeNameType.Const, "GL_LOCAL_CONSTANT_VALUE_EXT")] + public const int GL_LOCAL_CONSTANT_VALUE_EXT = 0x87EC; + + [NativeName(NativeNameType.Const, "GL_LOCAL_CONSTANT_DATATYPE_EXT")] + public const int GL_LOCAL_CONSTANT_DATATYPE_EXT = 0x87ED; + + [NativeName(NativeNameType.Const, "GL_EXT_vertex_weighting")] + public const int GL_EXT_VERTEX_WEIGHTING = 1; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW0_STACK_DEPTH_EXT")] + public const int GL_MODELVIEW0_STACK_DEPTH_EXT = 0x0BA3; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW1_STACK_DEPTH_EXT")] + public const int GL_MODELVIEW1_STACK_DEPTH_EXT = 0x8502; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW0_MATRIX_EXT")] + public const int GL_MODELVIEW0_MATRIX_EXT = 0x0BA6; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW1_MATRIX_EXT")] + public const int GL_MODELVIEW1_MATRIX_EXT = 0x8506; + + [NativeName(NativeNameType.Const, "GL_VERTEX_WEIGHTING_EXT")] + public const int GL_VERTEX_WEIGHTING_EXT = 0x8509; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW0_EXT")] + public const int GL_MODELVIEW0_EXT = 0x1700; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW1_EXT")] + public const int GL_MODELVIEW1_EXT = 0x850A; + + [NativeName(NativeNameType.Const, "GL_CURRENT_VERTEX_WEIGHT_EXT")] + public const int GL_CURRENT_VERTEX_WEIGHT_EXT = 0x850B; + + [NativeName(NativeNameType.Const, "GL_VERTEX_WEIGHT_ARRAY_EXT")] + public const int GL_VERTEX_WEIGHT_ARRAY_EXT = 0x850C; + + [NativeName(NativeNameType.Const, "GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT")] + public const int GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT = 0x850D; + + [NativeName(NativeNameType.Const, "GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT")] + public const int GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT = 0x850E; + + [NativeName(NativeNameType.Const, "GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT")] + public const int GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850F; + + [NativeName(NativeNameType.Const, "GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT")] + public const int GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510; + + [NativeName(NativeNameType.Const, "GL_EXT_win32_keyed_mutex")] + public const int GL_EXT_WIN32_KEYED_MUTEX = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_window_rectangles")] + public const int GL_EXT_WINDOW_RECTANGLES = 1; + + [NativeName(NativeNameType.Const, "GL_INCLUSIVE_EXT")] + public const int GL_INCLUSIVE_EXT = 0x8F10; + + [NativeName(NativeNameType.Const, "GL_EXCLUSIVE_EXT")] + public const int GL_EXCLUSIVE_EXT = 0x8F11; + + [NativeName(NativeNameType.Const, "GL_WINDOW_RECTANGLE_EXT")] + public const int GL_WINDOW_RECTANGLE_EXT = 0x8F12; + + [NativeName(NativeNameType.Const, "GL_WINDOW_RECTANGLE_MODE_EXT")] + public const int GL_WINDOW_RECTANGLE_MODE_EXT = 0x8F13; + + [NativeName(NativeNameType.Const, "GL_MAX_WINDOW_RECTANGLES_EXT")] + public const int GL_MAX_WINDOW_RECTANGLES_EXT = 0x8F14; + + [NativeName(NativeNameType.Const, "GL_NUM_WINDOW_RECTANGLES_EXT")] + public const int GL_NUM_WINDOW_RECTANGLES_EXT = 0x8F15; + + [NativeName(NativeNameType.Const, "GL_EXT_x11_sync_object")] + public const int GL_EXT_X11_SYNC_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_SYNC_X11_FENCE_EXT")] + public const int GL_SYNC_X11_FENCE_EXT = 0x90E1; + + [NativeName(NativeNameType.Const, "GL_GREMEDY_frame_terminator")] + public const int GL_GREMEDY_FRAME_TERMINATOR = 1; + + [NativeName(NativeNameType.Const, "GL_GREMEDY_string_marker")] + public const int GL_GREMEDY_STRING_MARKER = 1; + + [NativeName(NativeNameType.Const, "GL_HP_convolution_border_modes")] + public const int GL_HP_CONVOLUTION_BORDER_MODES = 1; + + [NativeName(NativeNameType.Const, "GL_IGNORE_BORDER_HP")] + public const int GL_IGNORE_BORDER_HP = 0x8150; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_BORDER_HP")] + public const int GL_CONSTANT_BORDER_HP = 0x8151; + + [NativeName(NativeNameType.Const, "GL_REPLICATE_BORDER_HP")] + public const int GL_REPLICATE_BORDER_HP = 0x8153; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_BORDER_COLOR_HP")] + public const int GL_CONVOLUTION_BORDER_COLOR_HP = 0x8154; + + [NativeName(NativeNameType.Const, "GL_HP_image_transform")] + public const int GL_HP_IMAGE_TRANSFORM = 1; + + [NativeName(NativeNameType.Const, "GL_IMAGE_SCALE_X_HP")] + public const int GL_IMAGE_SCALE_X_HP = 0x8155; + + [NativeName(NativeNameType.Const, "GL_IMAGE_SCALE_Y_HP")] + public const int GL_IMAGE_SCALE_Y_HP = 0x8156; + + [NativeName(NativeNameType.Const, "GL_IMAGE_TRANSLATE_X_HP")] + public const int GL_IMAGE_TRANSLATE_X_HP = 0x8157; + + [NativeName(NativeNameType.Const, "GL_IMAGE_TRANSLATE_Y_HP")] + public const int GL_IMAGE_TRANSLATE_Y_HP = 0x8158; + + [NativeName(NativeNameType.Const, "GL_IMAGE_ROTATE_ANGLE_HP")] + public const int GL_IMAGE_ROTATE_ANGLE_HP = 0x8159; + + [NativeName(NativeNameType.Const, "GL_IMAGE_ROTATE_ORIGIN_X_HP")] + public const int GL_IMAGE_ROTATE_ORIGIN_X_HP = 0x815A; + + [NativeName(NativeNameType.Const, "GL_IMAGE_ROTATE_ORIGIN_Y_HP")] + public const int GL_IMAGE_ROTATE_ORIGIN_Y_HP = 0x815B; + + [NativeName(NativeNameType.Const, "GL_IMAGE_MAG_FILTER_HP")] + public const int GL_IMAGE_MAG_FILTER_HP = 0x815C; + + [NativeName(NativeNameType.Const, "GL_IMAGE_MIN_FILTER_HP")] + public const int GL_IMAGE_MIN_FILTER_HP = 0x815D; + + [NativeName(NativeNameType.Const, "GL_IMAGE_CUBIC_WEIGHT_HP")] + public const int GL_IMAGE_CUBIC_WEIGHT_HP = 0x815E; + + [NativeName(NativeNameType.Const, "GL_CUBIC_HP")] + public const int GL_CUBIC_HP = 0x815F; + + [NativeName(NativeNameType.Const, "GL_AVERAGE_HP")] + public const int GL_AVERAGE_HP = 0x8160; + + [NativeName(NativeNameType.Const, "GL_IMAGE_TRANSFORM_2D_HP")] + public const int GL_IMAGE_TRANSFORM_2D_HP = 0x8161; + + [NativeName(NativeNameType.Const, "GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP")] + public const int GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8162; + + [NativeName(NativeNameType.Const, "GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP")] + public const int GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8163; + + [NativeName(NativeNameType.Const, "GL_HP_occlusion_test")] + public const int GL_HP_OCCLUSION_TEST = 1; + + [NativeName(NativeNameType.Const, "GL_OCCLUSION_TEST_HP")] + public const int GL_OCCLUSION_TEST_HP = 0x8165; + + [NativeName(NativeNameType.Const, "GL_OCCLUSION_TEST_RESULT_HP")] + public const int GL_OCCLUSION_TEST_RESULT_HP = 0x8166; + + [NativeName(NativeNameType.Const, "GL_HP_texture_lighting")] + public const int GL_HP_TEXTURE_LIGHTING = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LIGHTING_MODE_HP")] + public const int GL_TEXTURE_LIGHTING_MODE_HP = 0x8167; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_POST_SPECULAR_HP")] + public const int GL_TEXTURE_POST_SPECULAR_HP = 0x8168; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_PRE_SPECULAR_HP")] + public const int GL_TEXTURE_PRE_SPECULAR_HP = 0x8169; + + [NativeName(NativeNameType.Const, "GL_IBM_cull_vertex")] + public const int GL_IBM_CULL_VERTEX = 1; + + [NativeName(NativeNameType.Const, "GL_CULL_VERTEX_IBM")] + public const int GL_CULL_VERTEX_IBM = 103050; + + [NativeName(NativeNameType.Const, "GL_IBM_multimode_draw_arrays")] + public const int GL_IBM_MULTIMODE_DRAW_ARRAYS = 1; + + [NativeName(NativeNameType.Const, "GL_IBM_rasterpos_clip")] + public const int GL_IBM_RASTERPOS_CLIP = 1; + + [NativeName(NativeNameType.Const, "GL_RASTER_POSITION_UNCLIPPED_IBM")] + public const int GL_RASTER_POSITION_UNCLIPPED_IBM = 0x19262; + + [NativeName(NativeNameType.Const, "GL_IBM_static_data")] + public const int GL_IBM_STATIC_DATA = 1; + + [NativeName(NativeNameType.Const, "GL_ALL_STATIC_DATA_IBM")] + public const int GL_ALL_STATIC_DATA_IBM = 103060; + + [NativeName(NativeNameType.Const, "GL_STATIC_VERTEX_ARRAY_IBM")] + public const int GL_STATIC_VERTEX_ARRAY_IBM = 103061; + + [NativeName(NativeNameType.Const, "GL_IBM_texture_mirrored_repeat")] + public const int GL_IBM_TEXTURE_MIRRORED_REPEAT = 1; + + [NativeName(NativeNameType.Const, "GL_MIRRORED_REPEAT_IBM")] + public const int GL_MIRRORED_REPEAT_IBM = 0x8370; + + [NativeName(NativeNameType.Const, "GL_IBM_vertex_array_lists")] + public const int GL_IBM_VERTEX_ARRAY_LISTS = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_LIST_IBM")] + public const int GL_VERTEX_ARRAY_LIST_IBM = 103070; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_LIST_IBM")] + public const int GL_NORMAL_ARRAY_LIST_IBM = 103071; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_LIST_IBM")] + public const int GL_COLOR_ARRAY_LIST_IBM = 103072; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_LIST_IBM")] + public const int GL_INDEX_ARRAY_LIST_IBM = 103073; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_LIST_IBM")] + public const int GL_TEXTURE_COORD_ARRAY_LIST_IBM = 103074; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_LIST_IBM")] + public const int GL_EDGE_FLAG_ARRAY_LIST_IBM = 103075; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY_LIST_IBM")] + public const int GL_FOG_COORDINATE_ARRAY_LIST_IBM = 103076; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_LIST_IBM")] + public const int GL_SECONDARY_COLOR_ARRAY_LIST_IBM = 103077; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_LIST_STRIDE_IBM")] + public const int GL_VERTEX_ARRAY_LIST_STRIDE_IBM = 103080; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_LIST_STRIDE_IBM")] + public const int GL_NORMAL_ARRAY_LIST_STRIDE_IBM = 103081; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_LIST_STRIDE_IBM")] + public const int GL_COLOR_ARRAY_LIST_STRIDE_IBM = 103082; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_LIST_STRIDE_IBM")] + public const int GL_INDEX_ARRAY_LIST_STRIDE_IBM = 103083; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM")] + public const int GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM = 103084; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM")] + public const int GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM = 103085; + + [NativeName(NativeNameType.Const, "GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM")] + public const int GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM = 103086; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM")] + public const int GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM = 103087; + + [NativeName(NativeNameType.Const, "GL_INGR_blend_func_separate")] + public const int GL_INGR_BLEND_FUNC_SEPARATE = 1; + + [NativeName(NativeNameType.Const, "GL_INGR_color_clamp")] + public const int GL_INGR_COLOR_CLAMP = 1; + + [NativeName(NativeNameType.Const, "GL_RED_MIN_CLAMP_INGR")] + public const int GL_RED_MIN_CLAMP_INGR = 0x8560; + + [NativeName(NativeNameType.Const, "GL_GREEN_MIN_CLAMP_INGR")] + public const int GL_GREEN_MIN_CLAMP_INGR = 0x8561; + + [NativeName(NativeNameType.Const, "GL_BLUE_MIN_CLAMP_INGR")] + public const int GL_BLUE_MIN_CLAMP_INGR = 0x8562; + + [NativeName(NativeNameType.Const, "GL_ALPHA_MIN_CLAMP_INGR")] + public const int GL_ALPHA_MIN_CLAMP_INGR = 0x8563; + + [NativeName(NativeNameType.Const, "GL_RED_MAX_CLAMP_INGR")] + public const int GL_RED_MAX_CLAMP_INGR = 0x8564; + + [NativeName(NativeNameType.Const, "GL_GREEN_MAX_CLAMP_INGR")] + public const int GL_GREEN_MAX_CLAMP_INGR = 0x8565; + + [NativeName(NativeNameType.Const, "GL_BLUE_MAX_CLAMP_INGR")] + public const int GL_BLUE_MAX_CLAMP_INGR = 0x8566; + + [NativeName(NativeNameType.Const, "GL_ALPHA_MAX_CLAMP_INGR")] + public const int GL_ALPHA_MAX_CLAMP_INGR = 0x8567; + + [NativeName(NativeNameType.Const, "GL_INGR_interlace_read")] + public const int GL_INGR_INTERLACE_READ = 1; + + [NativeName(NativeNameType.Const, "GL_INTERLACE_READ_INGR")] + public const int GL_INTERLACE_READ_INGR = 0x8568; + + [NativeName(NativeNameType.Const, "GL_INTEL_blackhole_render")] + public const int GL_INTEL_BLACKHOLE_RENDER = 1; + + [NativeName(NativeNameType.Const, "GL_BLACKHOLE_RENDER_INTEL")] + public const int GL_BLACKHOLE_RENDER_INTEL = 0x83FC; + + [NativeName(NativeNameType.Const, "GL_INTEL_conservative_rasterization")] + public const int GL_INTEL_CONSERVATIVE_RASTERIZATION = 1; + + [NativeName(NativeNameType.Const, "GL_CONSERVATIVE_RASTERIZATION_INTEL")] + public const int GL_CONSERVATIVE_RASTERIZATION_INTEL = 0x83FE; + + [NativeName(NativeNameType.Const, "GL_INTEL_fragment_shader_ordering")] + public const int GL_INTEL_FRAGMENT_SHADER_ORDERING = 1; + + [NativeName(NativeNameType.Const, "GL_INTEL_framebuffer_CMAA")] + public const int GL_INTEL_FRAMEBUFFER_CMAA = 1; + + [NativeName(NativeNameType.Const, "GL_INTEL_map_texture")] + public const int GL_INTEL_MAP_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MEMORY_LAYOUT_INTEL")] + public const int GL_TEXTURE_MEMORY_LAYOUT_INTEL = 0x83FF; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_DEFAULT_INTEL")] + public const int GL_LAYOUT_DEFAULT_INTEL = 0; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_LINEAR_INTEL")] + public const int GL_LAYOUT_LINEAR_INTEL = 1; + + [NativeName(NativeNameType.Const, "GL_LAYOUT_LINEAR_CPU_CACHED_INTEL")] + public const int GL_LAYOUT_LINEAR_CPU_CACHED_INTEL = 2; + + [NativeName(NativeNameType.Const, "GL_INTEL_parallel_arrays")] + public const int GL_INTEL_PARALLEL_ARRAYS = 1; + + [NativeName(NativeNameType.Const, "GL_PARALLEL_ARRAYS_INTEL")] + public const int GL_PARALLEL_ARRAYS_INTEL = 0x83F4; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL")] + public const int GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F5; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL")] + public const int GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F6; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL")] + public const int GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F7; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL")] + public const int GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F8; + + [NativeName(NativeNameType.Const, "GL_INTEL_performance_query")] + public const int GL_INTEL_PERFORMANCE_QUERY = 1; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_SINGLE_CONTEXT_INTEL")] + public const int GL_PERFQUERY_SINGLE_CONTEXT_INTEL = 0x00000000; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_GLOBAL_CONTEXT_INTEL")] + public const int GL_PERFQUERY_GLOBAL_CONTEXT_INTEL = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_WAIT_INTEL")] + public const int GL_PERFQUERY_WAIT_INTEL = 0x83FB; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_FLUSH_INTEL")] + public const int GL_PERFQUERY_FLUSH_INTEL = 0x83FA; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_DONOT_FLUSH_INTEL")] + public const int GL_PERFQUERY_DONOT_FLUSH_INTEL = 0x83F9; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_EVENT_INTEL")] + public const int GL_PERFQUERY_COUNTER_EVENT_INTEL = 0x94F0; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL")] + public const int GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL = 0x94F1; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL")] + public const int GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL = 0x94F2; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL")] + public const int GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL = 0x94F3; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_RAW_INTEL")] + public const int GL_PERFQUERY_COUNTER_RAW_INTEL = 0x94F4; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL")] + public const int GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL = 0x94F5; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL")] + public const int GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL = 0x94F8; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL")] + public const int GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL = 0x94F9; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL")] + public const int GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL = 0x94FA; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL")] + public const int GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL = 0x94FB; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL")] + public const int GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL = 0x94FC; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL")] + public const int GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL = 0x94FD; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL")] + public const int GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL = 0x94FE; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL")] + public const int GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL = 0x94FF; + + [NativeName(NativeNameType.Const, "GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL")] + public const int GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL = 0x9500; + + [NativeName(NativeNameType.Const, "GL_MESAX_texture_stack")] + public const int GL_MESAX_TEXTURE_STACK = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_1D_STACK_MESAX")] + public const int GL_TEXTURE_1D_STACK_MESAX = 0x8759; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_2D_STACK_MESAX")] + public const int GL_TEXTURE_2D_STACK_MESAX = 0x875A; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_1D_STACK_MESAX")] + public const int GL_PROXY_TEXTURE_1D_STACK_MESAX = 0x875B; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_2D_STACK_MESAX")] + public const int GL_PROXY_TEXTURE_2D_STACK_MESAX = 0x875C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_1D_STACK_BINDING_MESAX")] + public const int GL_TEXTURE_1D_STACK_BINDING_MESAX = 0x875D; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_2D_STACK_BINDING_MESAX")] + public const int GL_TEXTURE_2D_STACK_BINDING_MESAX = 0x875E; + + [NativeName(NativeNameType.Const, "GL_MESA_framebuffer_flip_x")] + public const int GL_MESA_FRAMEBUFFER_FLIP_X = 1; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_FLIP_X_MESA")] + public const int GL_FRAMEBUFFER_FLIP_X_MESA = 0x8BBC; + + [NativeName(NativeNameType.Const, "GL_MESA_framebuffer_flip_y")] + public const int GL_MESA_FRAMEBUFFER_FLIP_Y = 1; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_FLIP_Y_MESA")] + public const int GL_FRAMEBUFFER_FLIP_Y_MESA = 0x8BBB; + + [NativeName(NativeNameType.Const, "GL_MESA_framebuffer_swap_xy")] + public const int GL_MESA_FRAMEBUFFER_SWAP_XY = 1; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_SWAP_XY_MESA")] + public const int GL_FRAMEBUFFER_SWAP_XY_MESA = 0x8BBD; + + [NativeName(NativeNameType.Const, "GL_MESA_pack_invert")] + public const int GL_MESA_PACK_INVERT = 1; + + [NativeName(NativeNameType.Const, "GL_PACK_INVERT_MESA")] + public const int GL_PACK_INVERT_MESA = 0x8758; + + [NativeName(NativeNameType.Const, "GL_MESA_program_binary_formats")] + public const int GL_MESA_PROGRAM_BINARY_FORMATS = 1; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_BINARY_FORMAT_MESA")] + public const int GL_PROGRAM_BINARY_FORMAT_MESA = 0x875F; + + [NativeName(NativeNameType.Const, "GL_MESA_resize_buffers")] + public const int GL_MESA_RESIZE_BUFFERS = 1; + + [NativeName(NativeNameType.Const, "GL_MESA_shader_integer_functions")] + public const int GL_MESA_SHADER_INTEGER_FUNCTIONS = 1; + + [NativeName(NativeNameType.Const, "GL_MESA_tile_raster_order")] + public const int GL_MESA_TILE_RASTER_ORDER = 1; + + [NativeName(NativeNameType.Const, "GL_TILE_RASTER_ORDER_FIXED_MESA")] + public const int GL_TILE_RASTER_ORDER_FIXED_MESA = 0x8BB8; + + [NativeName(NativeNameType.Const, "GL_TILE_RASTER_ORDER_INCREASING_X_MESA")] + public const int GL_TILE_RASTER_ORDER_INCREASING_X_MESA = 0x8BB9; + + [NativeName(NativeNameType.Const, "GL_TILE_RASTER_ORDER_INCREASING_Y_MESA")] + public const int GL_TILE_RASTER_ORDER_INCREASING_Y_MESA = 0x8BBA; + + [NativeName(NativeNameType.Const, "GL_MESA_window_pos")] + public const int GL_MESA_WINDOW_POS = 1; + + [NativeName(NativeNameType.Const, "GL_MESA_ycbcr_texture")] + public const int GL_MESA_YCBCR_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_8_8_MESA")] + public const int GL_UNSIGNED_SHORT_8_8_MESA = 0x85BA; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT_8_8_REV_MESA")] + public const int GL_UNSIGNED_SHORT_8_8_REV_MESA = 0x85BB; + + [NativeName(NativeNameType.Const, "GL_YCBCR_MESA")] + public const int GL_YCBCR_MESA = 0x8757; + + [NativeName(NativeNameType.Const, "GL_NVX_blend_equation_advanced_multi_draw_buffers")] + public const int GL_NVX_BLEND_EQUATION_ADVANCED_MULTI_DRAW_BUFFERS = 1; + + [NativeName(NativeNameType.Const, "GL_NVX_conditional_render")] + public const int GL_NVX_CONDITIONAL_RENDER = 1; + + [NativeName(NativeNameType.Const, "GL_NVX_gpu_memory_info")] + public const int GL_NVX_GPU_MEMORY_INFO = 1; + + [NativeName(NativeNameType.Const, "GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX")] + public const int GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX = 0x9047; + + [NativeName(NativeNameType.Const, "GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX")] + public const int GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX = 0x9048; + + [NativeName(NativeNameType.Const, "GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX")] + public const int GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX = 0x9049; + + [NativeName(NativeNameType.Const, "GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX")] + public const int GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX = 0x904A; + + [NativeName(NativeNameType.Const, "GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX")] + public const int GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX = 0x904B; + + [NativeName(NativeNameType.Const, "GL_NVX_gpu_multicast2")] + public const int GL_NVX_GPU_MULTICAST2 = 1; + + [NativeName(NativeNameType.Const, "GL_UPLOAD_GPU_MASK_NVX")] + public const int GL_UPLOAD_GPU_MASK_NVX = 0x954A; + + [NativeName(NativeNameType.Const, "GL_NVX_linked_gpu_multicast")] + public const int GL_NVX_LINKED_GPU_MULTICAST = 1; + + [NativeName(NativeNameType.Const, "GL_LGPU_SEPARATE_STORAGE_BIT_NVX")] + public const int GL_LGPU_SEPARATE_STORAGE_BIT_NVX = 0x0800; + + [NativeName(NativeNameType.Const, "GL_MAX_LGPU_GPUS_NVX")] + public const int GL_MAX_LGPU_GPUS_NVX = 0x92BA; + + [NativeName(NativeNameType.Const, "GL_NVX_progress_fence")] + public const int GL_NVX_PROGRESS_FENCE = 1; + + [NativeName(NativeNameType.Const, "GL_NV_alpha_to_coverage_dither_control")] + public const int GL_NV_ALPHA_TO_COVERAGE_DITHER_CONTROL = 1; + + [NativeName(NativeNameType.Const, "GL_ALPHA_TO_COVERAGE_DITHER_DEFAULT_NV")] + public const int GL_ALPHA_TO_COVERAGE_DITHER_DEFAULT_NV = 0x934D; + + [NativeName(NativeNameType.Const, "GL_ALPHA_TO_COVERAGE_DITHER_ENABLE_NV")] + public const int GL_ALPHA_TO_COVERAGE_DITHER_ENABLE_NV = 0x934E; + + [NativeName(NativeNameType.Const, "GL_ALPHA_TO_COVERAGE_DITHER_DISABLE_NV")] + public const int GL_ALPHA_TO_COVERAGE_DITHER_DISABLE_NV = 0x934F; + + [NativeName(NativeNameType.Const, "GL_ALPHA_TO_COVERAGE_DITHER_MODE_NV")] + public const int GL_ALPHA_TO_COVERAGE_DITHER_MODE_NV = 0x92BF; + + [NativeName(NativeNameType.Const, "GL_NV_bindless_multi_draw_indirect")] + public const int GL_NV_BINDLESS_MULTI_DRAW_INDIRECT = 1; + + [NativeName(NativeNameType.Const, "GL_NV_bindless_multi_draw_indirect_count")] + public const int GL_NV_BINDLESS_MULTI_DRAW_INDIRECT_COUNT = 1; + + [NativeName(NativeNameType.Const, "GL_NV_bindless_texture")] + public const int GL_NV_BINDLESS_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_NV_blend_equation_advanced")] + public const int GL_NV_BLEND_EQUATION_ADVANCED = 1; + + [NativeName(NativeNameType.Const, "GL_BLEND_OVERLAP_NV")] + public const int GL_BLEND_OVERLAP_NV = 0x9281; + + [NativeName(NativeNameType.Const, "GL_BLEND_PREMULTIPLIED_SRC_NV")] + public const int GL_BLEND_PREMULTIPLIED_SRC_NV = 0x9280; + + [NativeName(NativeNameType.Const, "GL_BLUE_NV")] + public const int GL_BLUE_NV = 0x1905; + + [NativeName(NativeNameType.Const, "GL_COLORBURN_NV")] + public const int GL_COLORBURN_NV = 0x929A; + + [NativeName(NativeNameType.Const, "GL_COLORDODGE_NV")] + public const int GL_COLORDODGE_NV = 0x9299; + + [NativeName(NativeNameType.Const, "GL_CONJOINT_NV")] + public const int GL_CONJOINT_NV = 0x9284; + + [NativeName(NativeNameType.Const, "GL_CONTRAST_NV")] + public const int GL_CONTRAST_NV = 0x92A1; + + [NativeName(NativeNameType.Const, "GL_DARKEN_NV")] + public const int GL_DARKEN_NV = 0x9297; + + [NativeName(NativeNameType.Const, "GL_DIFFERENCE_NV")] + public const int GL_DIFFERENCE_NV = 0x929E; + + [NativeName(NativeNameType.Const, "GL_DISJOINT_NV")] + public const int GL_DISJOINT_NV = 0x9283; + + [NativeName(NativeNameType.Const, "GL_DST_ATOP_NV")] + public const int GL_DST_ATOP_NV = 0x928F; + + [NativeName(NativeNameType.Const, "GL_DST_IN_NV")] + public const int GL_DST_IN_NV = 0x928B; + + [NativeName(NativeNameType.Const, "GL_DST_NV")] + public const int GL_DST_NV = 0x9287; + + [NativeName(NativeNameType.Const, "GL_DST_OUT_NV")] + public const int GL_DST_OUT_NV = 0x928D; + + [NativeName(NativeNameType.Const, "GL_DST_OVER_NV")] + public const int GL_DST_OVER_NV = 0x9289; + + [NativeName(NativeNameType.Const, "GL_EXCLUSION_NV")] + public const int GL_EXCLUSION_NV = 0x92A0; + + [NativeName(NativeNameType.Const, "GL_GREEN_NV")] + public const int GL_GREEN_NV = 0x1904; + + [NativeName(NativeNameType.Const, "GL_HARDLIGHT_NV")] + public const int GL_HARDLIGHT_NV = 0x929B; + + [NativeName(NativeNameType.Const, "GL_HARDMIX_NV")] + public const int GL_HARDMIX_NV = 0x92A9; + + [NativeName(NativeNameType.Const, "GL_HSL_COLOR_NV")] + public const int GL_HSL_COLOR_NV = 0x92AF; + + [NativeName(NativeNameType.Const, "GL_HSL_HUE_NV")] + public const int GL_HSL_HUE_NV = 0x92AD; + + [NativeName(NativeNameType.Const, "GL_HSL_LUMINOSITY_NV")] + public const int GL_HSL_LUMINOSITY_NV = 0x92B0; + + [NativeName(NativeNameType.Const, "GL_HSL_SATURATION_NV")] + public const int GL_HSL_SATURATION_NV = 0x92AE; + + [NativeName(NativeNameType.Const, "GL_INVERT_OVG_NV")] + public const int GL_INVERT_OVG_NV = 0x92B4; + + [NativeName(NativeNameType.Const, "GL_INVERT_RGB_NV")] + public const int GL_INVERT_RGB_NV = 0x92A3; + + [NativeName(NativeNameType.Const, "GL_LIGHTEN_NV")] + public const int GL_LIGHTEN_NV = 0x9298; + + [NativeName(NativeNameType.Const, "GL_LINEARBURN_NV")] + public const int GL_LINEARBURN_NV = 0x92A5; + + [NativeName(NativeNameType.Const, "GL_LINEARDODGE_NV")] + public const int GL_LINEARDODGE_NV = 0x92A4; + + [NativeName(NativeNameType.Const, "GL_LINEARLIGHT_NV")] + public const int GL_LINEARLIGHT_NV = 0x92A7; + + [NativeName(NativeNameType.Const, "GL_MINUS_CLAMPED_NV")] + public const int GL_MINUS_CLAMPED_NV = 0x92B3; + + [NativeName(NativeNameType.Const, "GL_MINUS_NV")] + public const int GL_MINUS_NV = 0x929F; + + [NativeName(NativeNameType.Const, "GL_MULTIPLY_NV")] + public const int GL_MULTIPLY_NV = 0x9294; + + [NativeName(NativeNameType.Const, "GL_OVERLAY_NV")] + public const int GL_OVERLAY_NV = 0x9296; + + [NativeName(NativeNameType.Const, "GL_PINLIGHT_NV")] + public const int GL_PINLIGHT_NV = 0x92A8; + + [NativeName(NativeNameType.Const, "GL_PLUS_CLAMPED_ALPHA_NV")] + public const int GL_PLUS_CLAMPED_ALPHA_NV = 0x92B2; + + [NativeName(NativeNameType.Const, "GL_PLUS_CLAMPED_NV")] + public const int GL_PLUS_CLAMPED_NV = 0x92B1; + + [NativeName(NativeNameType.Const, "GL_PLUS_DARKER_NV")] + public const int GL_PLUS_DARKER_NV = 0x9292; + + [NativeName(NativeNameType.Const, "GL_PLUS_NV")] + public const int GL_PLUS_NV = 0x9291; + + [NativeName(NativeNameType.Const, "GL_RED_NV")] + public const int GL_RED_NV = 0x1903; + + [NativeName(NativeNameType.Const, "GL_SCREEN_NV")] + public const int GL_SCREEN_NV = 0x9295; + + [NativeName(NativeNameType.Const, "GL_SOFTLIGHT_NV")] + public const int GL_SOFTLIGHT_NV = 0x929C; + + [NativeName(NativeNameType.Const, "GL_SRC_ATOP_NV")] + public const int GL_SRC_ATOP_NV = 0x928E; + + [NativeName(NativeNameType.Const, "GL_SRC_IN_NV")] + public const int GL_SRC_IN_NV = 0x928A; + + [NativeName(NativeNameType.Const, "GL_SRC_NV")] + public const int GL_SRC_NV = 0x9286; + + [NativeName(NativeNameType.Const, "GL_SRC_OUT_NV")] + public const int GL_SRC_OUT_NV = 0x928C; + + [NativeName(NativeNameType.Const, "GL_SRC_OVER_NV")] + public const int GL_SRC_OVER_NV = 0x9288; + + [NativeName(NativeNameType.Const, "GL_UNCORRELATED_NV")] + public const int GL_UNCORRELATED_NV = 0x9282; + + [NativeName(NativeNameType.Const, "GL_VIVIDLIGHT_NV")] + public const int GL_VIVIDLIGHT_NV = 0x92A6; + + [NativeName(NativeNameType.Const, "GL_XOR_NV")] + public const int GL_XOR_NV = 0x1506; + + [NativeName(NativeNameType.Const, "GL_NV_blend_equation_advanced_coherent")] + public const int GL_NV_BLEND_EQUATION_ADVANCED_COHERENT = 1; + + [NativeName(NativeNameType.Const, "GL_BLEND_ADVANCED_COHERENT_NV")] + public const int GL_BLEND_ADVANCED_COHERENT_NV = 0x9285; + + [NativeName(NativeNameType.Const, "GL_NV_blend_minmax_factor")] + public const int GL_NV_BLEND_MINMAX_FACTOR = 1; + + [NativeName(NativeNameType.Const, "GL_NV_blend_square")] + public const int GL_NV_BLEND_SQUARE = 1; + + [NativeName(NativeNameType.Const, "GL_NV_clip_space_w_scaling")] + public const int GL_NV_CLIP_SPACE_W_SCALING = 1; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_POSITION_W_SCALE_NV")] + public const int GL_VIEWPORT_POSITION_W_SCALE_NV = 0x937C; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV")] + public const int GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV = 0x937D; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV")] + public const int GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV = 0x937E; + + [NativeName(NativeNameType.Const, "GL_NV_command_list")] + public const int GL_NV_COMMAND_LIST = 1; + + [NativeName(NativeNameType.Const, "GL_TERMINATE_SEQUENCE_COMMAND_NV")] + public const int GL_TERMINATE_SEQUENCE_COMMAND_NV = 0x0000; + + [NativeName(NativeNameType.Const, "GL_NOP_COMMAND_NV")] + public const int GL_NOP_COMMAND_NV = 0x0001; + + [NativeName(NativeNameType.Const, "GL_DRAW_ELEMENTS_COMMAND_NV")] + public const int GL_DRAW_ELEMENTS_COMMAND_NV = 0x0002; + + [NativeName(NativeNameType.Const, "GL_DRAW_ARRAYS_COMMAND_NV")] + public const int GL_DRAW_ARRAYS_COMMAND_NV = 0x0003; + + [NativeName(NativeNameType.Const, "GL_DRAW_ELEMENTS_STRIP_COMMAND_NV")] + public const int GL_DRAW_ELEMENTS_STRIP_COMMAND_NV = 0x0004; + + [NativeName(NativeNameType.Const, "GL_DRAW_ARRAYS_STRIP_COMMAND_NV")] + public const int GL_DRAW_ARRAYS_STRIP_COMMAND_NV = 0x0005; + + [NativeName(NativeNameType.Const, "GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV")] + public const int GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV = 0x0006; + + [NativeName(NativeNameType.Const, "GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV")] + public const int GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV = 0x0007; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ADDRESS_COMMAND_NV")] + public const int GL_ELEMENT_ADDRESS_COMMAND_NV = 0x0008; + + [NativeName(NativeNameType.Const, "GL_ATTRIBUTE_ADDRESS_COMMAND_NV")] + public const int GL_ATTRIBUTE_ADDRESS_COMMAND_NV = 0x0009; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_ADDRESS_COMMAND_NV")] + public const int GL_UNIFORM_ADDRESS_COMMAND_NV = 0x000A; + + [NativeName(NativeNameType.Const, "GL_BLEND_COLOR_COMMAND_NV")] + public const int GL_BLEND_COLOR_COMMAND_NV = 0x000B; + + [NativeName(NativeNameType.Const, "GL_STENCIL_REF_COMMAND_NV")] + public const int GL_STENCIL_REF_COMMAND_NV = 0x000C; + + [NativeName(NativeNameType.Const, "GL_LINE_WIDTH_COMMAND_NV")] + public const int GL_LINE_WIDTH_COMMAND_NV = 0x000D; + + [NativeName(NativeNameType.Const, "GL_POLYGON_OFFSET_COMMAND_NV")] + public const int GL_POLYGON_OFFSET_COMMAND_NV = 0x000E; + + [NativeName(NativeNameType.Const, "GL_ALPHA_REF_COMMAND_NV")] + public const int GL_ALPHA_REF_COMMAND_NV = 0x000F; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_COMMAND_NV")] + public const int GL_VIEWPORT_COMMAND_NV = 0x0010; + + [NativeName(NativeNameType.Const, "GL_SCISSOR_COMMAND_NV")] + public const int GL_SCISSOR_COMMAND_NV = 0x0011; + + [NativeName(NativeNameType.Const, "GL_FRONT_FACE_COMMAND_NV")] + public const int GL_FRONT_FACE_COMMAND_NV = 0x0012; + + [NativeName(NativeNameType.Const, "GL_NV_compute_program5")] + public const int GL_NV_COMPUTE_PROGRAM5 = 1; + + [NativeName(NativeNameType.Const, "GL_COMPUTE_PROGRAM_NV")] + public const int GL_COMPUTE_PROGRAM_NV = 0x90FB; + + [NativeName(NativeNameType.Const, "GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV")] + public const int GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV = 0x90FC; + + [NativeName(NativeNameType.Const, "GL_NV_compute_shader_derivatives")] + public const int GL_NV_COMPUTE_SHADER_DERIVATIVES = 1; + + [NativeName(NativeNameType.Const, "GL_NV_conditional_render")] + public const int GL_NV_CONDITIONAL_RENDER = 1; + + [NativeName(NativeNameType.Const, "GL_QUERY_WAIT_NV")] + public const int GL_QUERY_WAIT_NV = 0x8E13; + + [NativeName(NativeNameType.Const, "GL_QUERY_NO_WAIT_NV")] + public const int GL_QUERY_NO_WAIT_NV = 0x8E14; + + [NativeName(NativeNameType.Const, "GL_QUERY_BY_REGION_WAIT_NV")] + public const int GL_QUERY_BY_REGION_WAIT_NV = 0x8E15; + + [NativeName(NativeNameType.Const, "GL_QUERY_BY_REGION_NO_WAIT_NV")] + public const int GL_QUERY_BY_REGION_NO_WAIT_NV = 0x8E16; + + [NativeName(NativeNameType.Const, "GL_NV_conservative_raster")] + public const int GL_NV_CONSERVATIVE_RASTER = 1; + + [NativeName(NativeNameType.Const, "GL_CONSERVATIVE_RASTERIZATION_NV")] + public const int GL_CONSERVATIVE_RASTERIZATION_NV = 0x9346; + + [NativeName(NativeNameType.Const, "GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV")] + public const int GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV = 0x9347; + + [NativeName(NativeNameType.Const, "GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV")] + public const int GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV = 0x9348; + + [NativeName(NativeNameType.Const, "GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV")] + public const int GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV = 0x9349; + + [NativeName(NativeNameType.Const, "GL_NV_conservative_raster_dilate")] + public const int GL_NV_CONSERVATIVE_RASTER_DILATE = 1; + + [NativeName(NativeNameType.Const, "GL_CONSERVATIVE_RASTER_DILATE_NV")] + public const int GL_CONSERVATIVE_RASTER_DILATE_NV = 0x9379; + + [NativeName(NativeNameType.Const, "GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV")] + public const int GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV = 0x937A; + + [NativeName(NativeNameType.Const, "GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV")] + public const int GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV = 0x937B; + + [NativeName(NativeNameType.Const, "GL_NV_conservative_raster_pre_snap")] + public const int GL_NV_CONSERVATIVE_RASTER_PRE_SNAP = 1; + + [NativeName(NativeNameType.Const, "GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_NV")] + public const int GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_NV = 0x9550; + + [NativeName(NativeNameType.Const, "GL_NV_conservative_raster_pre_snap_triangles")] + public const int GL_NV_CONSERVATIVE_RASTER_PRE_SNAP_TRIANGLES = 1; + + [NativeName(NativeNameType.Const, "GL_CONSERVATIVE_RASTER_MODE_NV")] + public const int GL_CONSERVATIVE_RASTER_MODE_NV = 0x954D; + + [NativeName(NativeNameType.Const, "GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV")] + public const int GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV = 0x954E; + + [NativeName(NativeNameType.Const, "GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV")] + public const int GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV = 0x954F; + + [NativeName(NativeNameType.Const, "GL_NV_conservative_raster_underestimation")] + public const int GL_NV_CONSERVATIVE_RASTER_UNDERESTIMATION = 1; + + [NativeName(NativeNameType.Const, "GL_NV_copy_depth_to_color")] + public const int GL_NV_COPY_DEPTH_TO_COLOR = 1; + + [NativeName(NativeNameType.Const, "GL_DEPTH_STENCIL_TO_RGBA_NV")] + public const int GL_DEPTH_STENCIL_TO_RGBA_NV = 0x886E; + + [NativeName(NativeNameType.Const, "GL_DEPTH_STENCIL_TO_BGRA_NV")] + public const int GL_DEPTH_STENCIL_TO_BGRA_NV = 0x886F; + + [NativeName(NativeNameType.Const, "GL_NV_copy_image")] + public const int GL_NV_COPY_IMAGE = 1; + + [NativeName(NativeNameType.Const, "GL_NV_deep_texture3D")] + public const int GL_NV_DEEP_TEXTURE3D = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV")] + public const int GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV = 0x90D0; + + [NativeName(NativeNameType.Const, "GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV")] + public const int GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV = 0x90D1; + + [NativeName(NativeNameType.Const, "GL_NV_depth_buffer_float")] + public const int GL_NV_DEPTH_BUFFER_FLOAT = 1; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT32F_NV")] + public const int GL_DEPTH_COMPONENT32F_NV = 0x8DAB; + + [NativeName(NativeNameType.Const, "GL_DEPTH32F_STENCIL8_NV")] + public const int GL_DEPTH32F_STENCIL8_NV = 0x8DAC; + + [NativeName(NativeNameType.Const, "GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV")] + public const int GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8DAD; + + [NativeName(NativeNameType.Const, "GL_DEPTH_BUFFER_FLOAT_MODE_NV")] + public const int GL_DEPTH_BUFFER_FLOAT_MODE_NV = 0x8DAF; + + [NativeName(NativeNameType.Const, "GL_NV_depth_clamp")] + public const int GL_NV_DEPTH_CLAMP = 1; + + [NativeName(NativeNameType.Const, "GL_DEPTH_CLAMP_NV")] + public const int GL_DEPTH_CLAMP_NV = 0x864F; + + [NativeName(NativeNameType.Const, "GL_NV_draw_texture")] + public const int GL_NV_DRAW_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_NV_draw_vulkan_image")] + public const int GL_NV_DRAW_VULKAN_IMAGE = 1; + + [NativeName(NativeNameType.Const, "GL_NV_evaluators")] + public const int GL_NV_EVALUATORS = 1; + + [NativeName(NativeNameType.Const, "GL_EVAL_2D_NV")] + public const int GL_EVAL_2D_NV = 0x86C0; + + [NativeName(NativeNameType.Const, "GL_EVAL_TRIANGULAR_2D_NV")] + public const int GL_EVAL_TRIANGULAR_2D_NV = 0x86C1; + + [NativeName(NativeNameType.Const, "GL_MAP_TESSELLATION_NV")] + public const int GL_MAP_TESSELLATION_NV = 0x86C2; + + [NativeName(NativeNameType.Const, "GL_MAP_ATTRIB_U_ORDER_NV")] + public const int GL_MAP_ATTRIB_U_ORDER_NV = 0x86C3; + + [NativeName(NativeNameType.Const, "GL_MAP_ATTRIB_V_ORDER_NV")] + public const int GL_MAP_ATTRIB_V_ORDER_NV = 0x86C4; + + [NativeName(NativeNameType.Const, "GL_EVAL_FRACTIONAL_TESSELLATION_NV")] + public const int GL_EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB0_NV")] + public const int GL_EVAL_VERTEX_ATTRIB0_NV = 0x86C6; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB1_NV")] + public const int GL_EVAL_VERTEX_ATTRIB1_NV = 0x86C7; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB2_NV")] + public const int GL_EVAL_VERTEX_ATTRIB2_NV = 0x86C8; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB3_NV")] + public const int GL_EVAL_VERTEX_ATTRIB3_NV = 0x86C9; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB4_NV")] + public const int GL_EVAL_VERTEX_ATTRIB4_NV = 0x86CA; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB5_NV")] + public const int GL_EVAL_VERTEX_ATTRIB5_NV = 0x86CB; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB6_NV")] + public const int GL_EVAL_VERTEX_ATTRIB6_NV = 0x86CC; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB7_NV")] + public const int GL_EVAL_VERTEX_ATTRIB7_NV = 0x86CD; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB8_NV")] + public const int GL_EVAL_VERTEX_ATTRIB8_NV = 0x86CE; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB9_NV")] + public const int GL_EVAL_VERTEX_ATTRIB9_NV = 0x86CF; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB10_NV")] + public const int GL_EVAL_VERTEX_ATTRIB10_NV = 0x86D0; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB11_NV")] + public const int GL_EVAL_VERTEX_ATTRIB11_NV = 0x86D1; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB12_NV")] + public const int GL_EVAL_VERTEX_ATTRIB12_NV = 0x86D2; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB13_NV")] + public const int GL_EVAL_VERTEX_ATTRIB13_NV = 0x86D3; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB14_NV")] + public const int GL_EVAL_VERTEX_ATTRIB14_NV = 0x86D4; + + [NativeName(NativeNameType.Const, "GL_EVAL_VERTEX_ATTRIB15_NV")] + public const int GL_EVAL_VERTEX_ATTRIB15_NV = 0x86D5; + + [NativeName(NativeNameType.Const, "GL_MAX_MAP_TESSELLATION_NV")] + public const int GL_MAX_MAP_TESSELLATION_NV = 0x86D6; + + [NativeName(NativeNameType.Const, "GL_MAX_RATIONAL_EVAL_ORDER_NV")] + public const int GL_MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7; + + [NativeName(NativeNameType.Const, "GL_NV_explicit_multisample")] + public const int GL_NV_EXPLICIT_MULTISAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_POSITION_NV")] + public const int GL_SAMPLE_POSITION_NV = 0x8E50; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_MASK_NV")] + public const int GL_SAMPLE_MASK_NV = 0x8E51; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_MASK_VALUE_NV")] + public const int GL_SAMPLE_MASK_VALUE_NV = 0x8E52; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_RENDERBUFFER_NV")] + public const int GL_TEXTURE_BINDING_RENDERBUFFER_NV = 0x8E53; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV")] + public const int GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV = 0x8E54; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RENDERBUFFER_NV")] + public const int GL_TEXTURE_RENDERBUFFER_NV = 0x8E55; + + [NativeName(NativeNameType.Const, "GL_SAMPLER_RENDERBUFFER_NV")] + public const int GL_SAMPLER_RENDERBUFFER_NV = 0x8E56; + + [NativeName(NativeNameType.Const, "GL_INT_SAMPLER_RENDERBUFFER_NV")] + public const int GL_INT_SAMPLER_RENDERBUFFER_NV = 0x8E57; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV")] + public const int GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = 0x8E58; + + [NativeName(NativeNameType.Const, "GL_MAX_SAMPLE_MASK_WORDS_NV")] + public const int GL_MAX_SAMPLE_MASK_WORDS_NV = 0x8E59; + + [NativeName(NativeNameType.Const, "GL_NV_fence")] + public const int GL_NV_FENCE = 1; + + [NativeName(NativeNameType.Const, "GL_ALL_COMPLETED_NV")] + public const int GL_ALL_COMPLETED_NV = 0x84F2; + + [NativeName(NativeNameType.Const, "GL_FENCE_STATUS_NV")] + public const int GL_FENCE_STATUS_NV = 0x84F3; + + [NativeName(NativeNameType.Const, "GL_FENCE_CONDITION_NV")] + public const int GL_FENCE_CONDITION_NV = 0x84F4; + + [NativeName(NativeNameType.Const, "GL_NV_fill_rectangle")] + public const int GL_NV_FILL_RECTANGLE = 1; + + [NativeName(NativeNameType.Const, "GL_FILL_RECTANGLE_NV")] + public const int GL_FILL_RECTANGLE_NV = 0x933C; + + [NativeName(NativeNameType.Const, "GL_NV_float_buffer")] + public const int GL_NV_FLOAT_BUFFER = 1; + + [NativeName(NativeNameType.Const, "GL_FLOAT_R_NV")] + public const int GL_FLOAT_R_NV = 0x8880; + + [NativeName(NativeNameType.Const, "GL_FLOAT_RG_NV")] + public const int GL_FLOAT_RG_NV = 0x8881; + + [NativeName(NativeNameType.Const, "GL_FLOAT_RGB_NV")] + public const int GL_FLOAT_RGB_NV = 0x8882; + + [NativeName(NativeNameType.Const, "GL_FLOAT_RGBA_NV")] + public const int GL_FLOAT_RGBA_NV = 0x8883; + + [NativeName(NativeNameType.Const, "GL_FLOAT_R16_NV")] + public const int GL_FLOAT_R16_NV = 0x8884; + + [NativeName(NativeNameType.Const, "GL_FLOAT_R32_NV")] + public const int GL_FLOAT_R32_NV = 0x8885; + + [NativeName(NativeNameType.Const, "GL_FLOAT_RG16_NV")] + public const int GL_FLOAT_RG16_NV = 0x8886; + + [NativeName(NativeNameType.Const, "GL_FLOAT_RG32_NV")] + public const int GL_FLOAT_RG32_NV = 0x8887; + + [NativeName(NativeNameType.Const, "GL_FLOAT_RGB16_NV")] + public const int GL_FLOAT_RGB16_NV = 0x8888; + + [NativeName(NativeNameType.Const, "GL_FLOAT_RGB32_NV")] + public const int GL_FLOAT_RGB32_NV = 0x8889; + + [NativeName(NativeNameType.Const, "GL_FLOAT_RGBA16_NV")] + public const int GL_FLOAT_RGBA16_NV = 0x888A; + + [NativeName(NativeNameType.Const, "GL_FLOAT_RGBA32_NV")] + public const int GL_FLOAT_RGBA32_NV = 0x888B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_FLOAT_COMPONENTS_NV")] + public const int GL_TEXTURE_FLOAT_COMPONENTS_NV = 0x888C; + + [NativeName(NativeNameType.Const, "GL_FLOAT_CLEAR_COLOR_VALUE_NV")] + public const int GL_FLOAT_CLEAR_COLOR_VALUE_NV = 0x888D; + + [NativeName(NativeNameType.Const, "GL_FLOAT_RGBA_MODE_NV")] + public const int GL_FLOAT_RGBA_MODE_NV = 0x888E; + + [NativeName(NativeNameType.Const, "GL_NV_fog_distance")] + public const int GL_NV_FOG_DISTANCE = 1; + + [NativeName(NativeNameType.Const, "GL_FOG_DISTANCE_MODE_NV")] + public const int GL_FOG_DISTANCE_MODE_NV = 0x855A; + + [NativeName(NativeNameType.Const, "GL_EYE_RADIAL_NV")] + public const int GL_EYE_RADIAL_NV = 0x855B; + + [NativeName(NativeNameType.Const, "GL_EYE_PLANE_ABSOLUTE_NV")] + public const int GL_EYE_PLANE_ABSOLUTE_NV = 0x855C; + + [NativeName(NativeNameType.Const, "GL_NV_fragment_coverage_to_color")] + public const int GL_NV_FRAGMENT_COVERAGE_TO_COLOR = 1; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_COVERAGE_TO_COLOR_NV")] + public const int GL_FRAGMENT_COVERAGE_TO_COLOR_NV = 0x92DD; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_COVERAGE_COLOR_NV")] + public const int GL_FRAGMENT_COVERAGE_COLOR_NV = 0x92DE; + + [NativeName(NativeNameType.Const, "GL_NV_fragment_program")] + public const int GL_NV_FRAGMENT_PROGRAM = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV")] + public const int GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_PROGRAM_NV")] + public const int GL_FRAGMENT_PROGRAM_NV = 0x8870; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_COORDS_NV")] + public const int GL_MAX_TEXTURE_COORDS_NV = 0x8871; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_IMAGE_UNITS_NV")] + public const int GL_MAX_TEXTURE_IMAGE_UNITS_NV = 0x8872; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_PROGRAM_BINDING_NV")] + public const int GL_FRAGMENT_PROGRAM_BINDING_NV = 0x8873; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_ERROR_STRING_NV")] + public const int GL_PROGRAM_ERROR_STRING_NV = 0x8874; + + [NativeName(NativeNameType.Const, "GL_NV_fragment_program2")] + public const int GL_NV_FRAGMENT_PROGRAM2 = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV")] + public const int GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_CALL_DEPTH_NV")] + public const int GL_MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_IF_DEPTH_NV")] + public const int GL_MAX_PROGRAM_IF_DEPTH_NV = 0x88F6; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_LOOP_DEPTH_NV")] + public const int GL_MAX_PROGRAM_LOOP_DEPTH_NV = 0x88F7; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_LOOP_COUNT_NV")] + public const int GL_MAX_PROGRAM_LOOP_COUNT_NV = 0x88F8; + + [NativeName(NativeNameType.Const, "GL_NV_fragment_program4")] + public const int GL_NV_FRAGMENT_PROGRAM4 = 1; + + [NativeName(NativeNameType.Const, "GL_NV_fragment_program_option")] + public const int GL_NV_FRAGMENT_PROGRAM_OPTION = 1; + + [NativeName(NativeNameType.Const, "GL_NV_fragment_shader_barycentric")] + public const int GL_NV_FRAGMENT_SHADER_BARYCENTRIC = 1; + + [NativeName(NativeNameType.Const, "GL_NV_fragment_shader_interlock")] + public const int GL_NV_FRAGMENT_SHADER_INTERLOCK = 1; + + [NativeName(NativeNameType.Const, "GL_NV_framebuffer_mixed_samples")] + public const int GL_NV_FRAMEBUFFER_MIXED_SAMPLES = 1; + + [NativeName(NativeNameType.Const, "GL_COVERAGE_MODULATION_TABLE_NV")] + public const int GL_COVERAGE_MODULATION_TABLE_NV = 0x9331; + + [NativeName(NativeNameType.Const, "GL_COLOR_SAMPLES_NV")] + public const int GL_COLOR_SAMPLES_NV = 0x8E20; + + [NativeName(NativeNameType.Const, "GL_DEPTH_SAMPLES_NV")] + public const int GL_DEPTH_SAMPLES_NV = 0x932D; + + [NativeName(NativeNameType.Const, "GL_STENCIL_SAMPLES_NV")] + public const int GL_STENCIL_SAMPLES_NV = 0x932E; + + [NativeName(NativeNameType.Const, "GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV")] + public const int GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV = 0x932F; + + [NativeName(NativeNameType.Const, "GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV")] + public const int GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV = 0x9330; + + [NativeName(NativeNameType.Const, "GL_COVERAGE_MODULATION_NV")] + public const int GL_COVERAGE_MODULATION_NV = 0x9332; + + [NativeName(NativeNameType.Const, "GL_COVERAGE_MODULATION_TABLE_SIZE_NV")] + public const int GL_COVERAGE_MODULATION_TABLE_SIZE_NV = 0x9333; + + [NativeName(NativeNameType.Const, "GL_NV_framebuffer_multisample_coverage")] + public const int GL_NV_FRAMEBUFFER_MULTISAMPLE_COVERAGE = 1; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_COVERAGE_SAMPLES_NV")] + public const int GL_RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8CAB; + + [NativeName(NativeNameType.Const, "GL_RENDERBUFFER_COLOR_SAMPLES_NV")] + public const int GL_RENDERBUFFER_COLOR_SAMPLES_NV = 0x8E10; + + [NativeName(NativeNameType.Const, "GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV")] + public const int GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E11; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_COVERAGE_MODES_NV")] + public const int GL_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E12; + + [NativeName(NativeNameType.Const, "GL_NV_geometry_program4")] + public const int GL_NV_GEOMETRY_PROGRAM4 = 1; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_PROGRAM_NV")] + public const int GL_GEOMETRY_PROGRAM_NV = 0x8C26; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_OUTPUT_VERTICES_NV")] + public const int GL_MAX_PROGRAM_OUTPUT_VERTICES_NV = 0x8C27; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV")] + public const int GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8C28; + + [NativeName(NativeNameType.Const, "GL_NV_geometry_shader4")] + public const int GL_NV_GEOMETRY_SHADER4 = 1; + + [NativeName(NativeNameType.Const, "GL_NV_geometry_shader_passthrough")] + public const int GL_NV_GEOMETRY_SHADER_PASSTHROUGH = 1; + + [NativeName(NativeNameType.Const, "GL_NV_gpu_multicast")] + public const int GL_NV_GPU_MULTICAST = 1; + + [NativeName(NativeNameType.Const, "GL_PER_GPU_STORAGE_BIT_NV")] + public const int GL_PER_GPU_STORAGE_BIT_NV = 0x0800; + + [NativeName(NativeNameType.Const, "GL_MULTICAST_GPUS_NV")] + public const int GL_MULTICAST_GPUS_NV = 0x92BA; + + [NativeName(NativeNameType.Const, "GL_RENDER_GPU_MASK_NV")] + public const int GL_RENDER_GPU_MASK_NV = 0x9558; + + [NativeName(NativeNameType.Const, "GL_PER_GPU_STORAGE_NV")] + public const int GL_PER_GPU_STORAGE_NV = 0x9548; + + [NativeName(NativeNameType.Const, "GL_MULTICAST_PROGRAMMABLE_SAMPLE_LOCATION_NV")] + public const int GL_MULTICAST_PROGRAMMABLE_SAMPLE_LOCATION_NV = 0x9549; + + [NativeName(NativeNameType.Const, "GL_NV_gpu_program4")] + public const int GL_NV_GPU_PROGRAM4 = 1; + + [NativeName(NativeNameType.Const, "GL_MIN_PROGRAM_TEXEL_OFFSET_NV")] + public const int GL_MIN_PROGRAM_TEXEL_OFFSET_NV = 0x8904; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_TEXEL_OFFSET_NV")] + public const int GL_MAX_PROGRAM_TEXEL_OFFSET_NV = 0x8905; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_ATTRIB_COMPONENTS_NV")] + public const int GL_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8906; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_RESULT_COMPONENTS_NV")] + public const int GL_PROGRAM_RESULT_COMPONENTS_NV = 0x8907; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV")] + public const int GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_RESULT_COMPONENTS_NV")] + public const int GL_MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV")] + public const int GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8DA5; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_GENERIC_RESULTS_NV")] + public const int GL_MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8DA6; + + [NativeName(NativeNameType.Const, "GL_NV_gpu_program5")] + public const int GL_NV_GPU_PROGRAM5 = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV")] + public const int GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV = 0x8E5A; + + [NativeName(NativeNameType.Const, "GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV")] + public const int GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5B; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV")] + public const int GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5C; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV")] + public const int GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5D; + + [NativeName(NativeNameType.Const, "GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV")] + public const int GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5E; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV")] + public const int GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5F; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV")] + public const int GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV = 0x8F44; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_SUBROUTINE_NUM_NV")] + public const int GL_MAX_PROGRAM_SUBROUTINE_NUM_NV = 0x8F45; + + [NativeName(NativeNameType.Const, "GL_NV_gpu_program5_mem_extended")] + public const int GL_NV_GPU_PROGRAM5_MEM_EXTENDED = 1; + + [NativeName(NativeNameType.Const, "GL_NV_gpu_shader5")] + public const int GL_NV_GPU_SHADER5 = 1; + + [NativeName(NativeNameType.Const, "GL_NV_half_float")] + public const int GL_NV_HALF_FLOAT = 1; + + [NativeName(NativeNameType.Const, "GL_HALF_FLOAT_NV")] + public const int GL_HALF_FLOAT_NV = 0x140B; + + [NativeName(NativeNameType.Const, "GL_NV_internalformat_sample_query")] + public const int GL_NV_INTERNALFORMAT_SAMPLE_QUERY = 1; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLES_NV")] + public const int GL_MULTISAMPLES_NV = 0x9371; + + [NativeName(NativeNameType.Const, "GL_SUPERSAMPLE_SCALE_X_NV")] + public const int GL_SUPERSAMPLE_SCALE_X_NV = 0x9372; + + [NativeName(NativeNameType.Const, "GL_SUPERSAMPLE_SCALE_Y_NV")] + public const int GL_SUPERSAMPLE_SCALE_Y_NV = 0x9373; + + [NativeName(NativeNameType.Const, "GL_CONFORMANT_NV")] + public const int GL_CONFORMANT_NV = 0x9374; + + [NativeName(NativeNameType.Const, "GL_NV_light_max_exponent")] + public const int GL_NV_LIGHT_MAX_EXPONENT = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_SHININESS_NV")] + public const int GL_MAX_SHININESS_NV = 0x8504; + + [NativeName(NativeNameType.Const, "GL_MAX_SPOT_EXPONENT_NV")] + public const int GL_MAX_SPOT_EXPONENT_NV = 0x8505; + + [NativeName(NativeNameType.Const, "GL_NV_memory_attachment")] + public const int GL_NV_MEMORY_ATTACHMENT = 1; + + [NativeName(NativeNameType.Const, "GL_ATTACHED_MEMORY_OBJECT_NV")] + public const int GL_ATTACHED_MEMORY_OBJECT_NV = 0x95A4; + + [NativeName(NativeNameType.Const, "GL_ATTACHED_MEMORY_OFFSET_NV")] + public const int GL_ATTACHED_MEMORY_OFFSET_NV = 0x95A5; + + [NativeName(NativeNameType.Const, "GL_MEMORY_ATTACHABLE_ALIGNMENT_NV")] + public const int GL_MEMORY_ATTACHABLE_ALIGNMENT_NV = 0x95A6; + + [NativeName(NativeNameType.Const, "GL_MEMORY_ATTACHABLE_SIZE_NV")] + public const int GL_MEMORY_ATTACHABLE_SIZE_NV = 0x95A7; + + [NativeName(NativeNameType.Const, "GL_MEMORY_ATTACHABLE_NV")] + public const int GL_MEMORY_ATTACHABLE_NV = 0x95A8; + + [NativeName(NativeNameType.Const, "GL_DETACHED_MEMORY_INCARNATION_NV")] + public const int GL_DETACHED_MEMORY_INCARNATION_NV = 0x95A9; + + [NativeName(NativeNameType.Const, "GL_DETACHED_TEXTURES_NV")] + public const int GL_DETACHED_TEXTURES_NV = 0x95AA; + + [NativeName(NativeNameType.Const, "GL_DETACHED_BUFFERS_NV")] + public const int GL_DETACHED_BUFFERS_NV = 0x95AB; + + [NativeName(NativeNameType.Const, "GL_MAX_DETACHED_TEXTURES_NV")] + public const int GL_MAX_DETACHED_TEXTURES_NV = 0x95AC; + + [NativeName(NativeNameType.Const, "GL_MAX_DETACHED_BUFFERS_NV")] + public const int GL_MAX_DETACHED_BUFFERS_NV = 0x95AD; + + [NativeName(NativeNameType.Const, "GL_NV_memory_object_sparse")] + public const int GL_NV_MEMORY_OBJECT_SPARSE = 1; + + [NativeName(NativeNameType.Const, "GL_NV_mesh_shader")] + public const int GL_NV_MESH_SHADER = 1; + + [NativeName(NativeNameType.Const, "GL_MESH_SHADER_NV")] + public const int GL_MESH_SHADER_NV = 0x9559; + + [NativeName(NativeNameType.Const, "GL_TASK_SHADER_NV")] + public const int GL_TASK_SHADER_NV = 0x955A; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_UNIFORM_BLOCKS_NV")] + public const int GL_MAX_MESH_UNIFORM_BLOCKS_NV = 0x8E60; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_TEXTURE_IMAGE_UNITS_NV")] + public const int GL_MAX_MESH_TEXTURE_IMAGE_UNITS_NV = 0x8E61; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_IMAGE_UNIFORMS_NV")] + public const int GL_MAX_MESH_IMAGE_UNIFORMS_NV = 0x8E62; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_UNIFORM_COMPONENTS_NV")] + public const int GL_MAX_MESH_UNIFORM_COMPONENTS_NV = 0x8E63; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_ATOMIC_COUNTER_BUFFERS_NV")] + public const int GL_MAX_MESH_ATOMIC_COUNTER_BUFFERS_NV = 0x8E64; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_ATOMIC_COUNTERS_NV")] + public const int GL_MAX_MESH_ATOMIC_COUNTERS_NV = 0x8E65; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_SHADER_STORAGE_BLOCKS_NV")] + public const int GL_MAX_MESH_SHADER_STORAGE_BLOCKS_NV = 0x8E66; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_MESH_UNIFORM_COMPONENTS_NV")] + public const int GL_MAX_COMBINED_MESH_UNIFORM_COMPONENTS_NV = 0x8E67; + + [NativeName(NativeNameType.Const, "GL_MAX_TASK_UNIFORM_BLOCKS_NV")] + public const int GL_MAX_TASK_UNIFORM_BLOCKS_NV = 0x8E68; + + [NativeName(NativeNameType.Const, "GL_MAX_TASK_TEXTURE_IMAGE_UNITS_NV")] + public const int GL_MAX_TASK_TEXTURE_IMAGE_UNITS_NV = 0x8E69; + + [NativeName(NativeNameType.Const, "GL_MAX_TASK_IMAGE_UNIFORMS_NV")] + public const int GL_MAX_TASK_IMAGE_UNIFORMS_NV = 0x8E6A; + + [NativeName(NativeNameType.Const, "GL_MAX_TASK_UNIFORM_COMPONENTS_NV")] + public const int GL_MAX_TASK_UNIFORM_COMPONENTS_NV = 0x8E6B; + + [NativeName(NativeNameType.Const, "GL_MAX_TASK_ATOMIC_COUNTER_BUFFERS_NV")] + public const int GL_MAX_TASK_ATOMIC_COUNTER_BUFFERS_NV = 0x8E6C; + + [NativeName(NativeNameType.Const, "GL_MAX_TASK_ATOMIC_COUNTERS_NV")] + public const int GL_MAX_TASK_ATOMIC_COUNTERS_NV = 0x8E6D; + + [NativeName(NativeNameType.Const, "GL_MAX_TASK_SHADER_STORAGE_BLOCKS_NV")] + public const int GL_MAX_TASK_SHADER_STORAGE_BLOCKS_NV = 0x8E6E; + + [NativeName(NativeNameType.Const, "GL_MAX_COMBINED_TASK_UNIFORM_COMPONENTS_NV")] + public const int GL_MAX_COMBINED_TASK_UNIFORM_COMPONENTS_NV = 0x8E6F; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_WORK_GROUP_INVOCATIONS_NV")] + public const int GL_MAX_MESH_WORK_GROUP_INVOCATIONS_NV = 0x95A2; + + [NativeName(NativeNameType.Const, "GL_MAX_TASK_WORK_GROUP_INVOCATIONS_NV")] + public const int GL_MAX_TASK_WORK_GROUP_INVOCATIONS_NV = 0x95A3; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_TOTAL_MEMORY_SIZE_NV")] + public const int GL_MAX_MESH_TOTAL_MEMORY_SIZE_NV = 0x9536; + + [NativeName(NativeNameType.Const, "GL_MAX_TASK_TOTAL_MEMORY_SIZE_NV")] + public const int GL_MAX_TASK_TOTAL_MEMORY_SIZE_NV = 0x9537; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_OUTPUT_VERTICES_NV")] + public const int GL_MAX_MESH_OUTPUT_VERTICES_NV = 0x9538; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_OUTPUT_PRIMITIVES_NV")] + public const int GL_MAX_MESH_OUTPUT_PRIMITIVES_NV = 0x9539; + + [NativeName(NativeNameType.Const, "GL_MAX_TASK_OUTPUT_COUNT_NV")] + public const int GL_MAX_TASK_OUTPUT_COUNT_NV = 0x953A; + + [NativeName(NativeNameType.Const, "GL_MAX_DRAW_MESH_TASKS_COUNT_NV")] + public const int GL_MAX_DRAW_MESH_TASKS_COUNT_NV = 0x953D; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_VIEWS_NV")] + public const int GL_MAX_MESH_VIEWS_NV = 0x9557; + + [NativeName(NativeNameType.Const, "GL_MESH_OUTPUT_PER_VERTEX_GRANULARITY_NV")] + public const int GL_MESH_OUTPUT_PER_VERTEX_GRANULARITY_NV = 0x92DF; + + [NativeName(NativeNameType.Const, "GL_MESH_OUTPUT_PER_PRIMITIVE_GRANULARITY_NV")] + public const int GL_MESH_OUTPUT_PER_PRIMITIVE_GRANULARITY_NV = 0x9543; + + [NativeName(NativeNameType.Const, "GL_MAX_MESH_WORK_GROUP_SIZE_NV")] + public const int GL_MAX_MESH_WORK_GROUP_SIZE_NV = 0x953B; + + [NativeName(NativeNameType.Const, "GL_MAX_TASK_WORK_GROUP_SIZE_NV")] + public const int GL_MAX_TASK_WORK_GROUP_SIZE_NV = 0x953C; + + [NativeName(NativeNameType.Const, "GL_MESH_WORK_GROUP_SIZE_NV")] + public const int GL_MESH_WORK_GROUP_SIZE_NV = 0x953E; + + [NativeName(NativeNameType.Const, "GL_TASK_WORK_GROUP_SIZE_NV")] + public const int GL_TASK_WORK_GROUP_SIZE_NV = 0x953F; + + [NativeName(NativeNameType.Const, "GL_MESH_VERTICES_OUT_NV")] + public const int GL_MESH_VERTICES_OUT_NV = 0x9579; + + [NativeName(NativeNameType.Const, "GL_MESH_PRIMITIVES_OUT_NV")] + public const int GL_MESH_PRIMITIVES_OUT_NV = 0x957A; + + [NativeName(NativeNameType.Const, "GL_MESH_OUTPUT_TYPE_NV")] + public const int GL_MESH_OUTPUT_TYPE_NV = 0x957B; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_REFERENCED_BY_MESH_SHADER_NV")] + public const int GL_UNIFORM_BLOCK_REFERENCED_BY_MESH_SHADER_NV = 0x959C; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BLOCK_REFERENCED_BY_TASK_SHADER_NV")] + public const int GL_UNIFORM_BLOCK_REFERENCED_BY_TASK_SHADER_NV = 0x959D; + + [NativeName(NativeNameType.Const, "GL_REFERENCED_BY_MESH_SHADER_NV")] + public const int GL_REFERENCED_BY_MESH_SHADER_NV = 0x95A0; + + [NativeName(NativeNameType.Const, "GL_REFERENCED_BY_TASK_SHADER_NV")] + public const int GL_REFERENCED_BY_TASK_SHADER_NV = 0x95A1; + + [NativeName(NativeNameType.Const, "GL_MESH_SHADER_BIT_NV")] + public const int GL_MESH_SHADER_BIT_NV = 0x00000040; + + [NativeName(NativeNameType.Const, "GL_TASK_SHADER_BIT_NV")] + public const int GL_TASK_SHADER_BIT_NV = 0x00000080; + + [NativeName(NativeNameType.Const, "GL_MESH_SUBROUTINE_NV")] + public const int GL_MESH_SUBROUTINE_NV = 0x957C; + + [NativeName(NativeNameType.Const, "GL_TASK_SUBROUTINE_NV")] + public const int GL_TASK_SUBROUTINE_NV = 0x957D; + + [NativeName(NativeNameType.Const, "GL_MESH_SUBROUTINE_UNIFORM_NV")] + public const int GL_MESH_SUBROUTINE_UNIFORM_NV = 0x957E; + + [NativeName(NativeNameType.Const, "GL_TASK_SUBROUTINE_UNIFORM_NV")] + public const int GL_TASK_SUBROUTINE_UNIFORM_NV = 0x957F; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_MESH_SHADER_NV")] + public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_MESH_SHADER_NV = 0x959E; + + [NativeName(NativeNameType.Const, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TASK_SHADER_NV")] + public const int GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TASK_SHADER_NV = 0x959F; + + [NativeName(NativeNameType.Const, "GL_NV_multisample_coverage")] + public const int GL_NV_MULTISAMPLE_COVERAGE = 1; + + [NativeName(NativeNameType.Const, "GL_NV_multisample_filter_hint")] + public const int GL_NV_MULTISAMPLE_FILTER_HINT = 1; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_FILTER_HINT_NV")] + public const int GL_MULTISAMPLE_FILTER_HINT_NV = 0x8534; + + [NativeName(NativeNameType.Const, "GL_NV_occlusion_query")] + public const int GL_NV_OCCLUSION_QUERY = 1; + + [NativeName(NativeNameType.Const, "GL_PIXEL_COUNTER_BITS_NV")] + public const int GL_PIXEL_COUNTER_BITS_NV = 0x8864; + + [NativeName(NativeNameType.Const, "GL_CURRENT_OCCLUSION_QUERY_ID_NV")] + public const int GL_CURRENT_OCCLUSION_QUERY_ID_NV = 0x8865; + + [NativeName(NativeNameType.Const, "GL_PIXEL_COUNT_NV")] + public const int GL_PIXEL_COUNT_NV = 0x8866; + + [NativeName(NativeNameType.Const, "GL_PIXEL_COUNT_AVAILABLE_NV")] + public const int GL_PIXEL_COUNT_AVAILABLE_NV = 0x8867; + + [NativeName(NativeNameType.Const, "GL_NV_packed_depth_stencil")] + public const int GL_NV_PACKED_DEPTH_STENCIL = 1; + + [NativeName(NativeNameType.Const, "GL_DEPTH_STENCIL_NV")] + public const int GL_DEPTH_STENCIL_NV = 0x84F9; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_24_8_NV")] + public const int GL_UNSIGNED_INT_24_8_NV = 0x84FA; + + [NativeName(NativeNameType.Const, "GL_NV_parameter_buffer_object")] + public const int GL_NV_PARAMETER_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV")] + public const int GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8DA0; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV")] + public const int GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8DA1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV")] + public const int GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA2; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV")] + public const int GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV")] + public const int GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4; + + [NativeName(NativeNameType.Const, "GL_NV_parameter_buffer_object2")] + public const int GL_NV_PARAMETER_BUFFER_OBJECT2 = 1; + + [NativeName(NativeNameType.Const, "GL_NV_path_rendering")] + public const int GL_NV_PATH_RENDERING = 1; + + [NativeName(NativeNameType.Const, "GL_PATH_FORMAT_SVG_NV")] + public const int GL_PATH_FORMAT_SVG_NV = 0x9070; + + [NativeName(NativeNameType.Const, "GL_PATH_FORMAT_PS_NV")] + public const int GL_PATH_FORMAT_PS_NV = 0x9071; + + [NativeName(NativeNameType.Const, "GL_STANDARD_FONT_NAME_NV")] + public const int GL_STANDARD_FONT_NAME_NV = 0x9072; + + [NativeName(NativeNameType.Const, "GL_SYSTEM_FONT_NAME_NV")] + public const int GL_SYSTEM_FONT_NAME_NV = 0x9073; + + [NativeName(NativeNameType.Const, "GL_FILE_NAME_NV")] + public const int GL_FILE_NAME_NV = 0x9074; + + [NativeName(NativeNameType.Const, "GL_PATH_STROKE_WIDTH_NV")] + public const int GL_PATH_STROKE_WIDTH_NV = 0x9075; + + [NativeName(NativeNameType.Const, "GL_PATH_END_CAPS_NV")] + public const int GL_PATH_END_CAPS_NV = 0x9076; + + [NativeName(NativeNameType.Const, "GL_PATH_INITIAL_END_CAP_NV")] + public const int GL_PATH_INITIAL_END_CAP_NV = 0x9077; + + [NativeName(NativeNameType.Const, "GL_PATH_TERMINAL_END_CAP_NV")] + public const int GL_PATH_TERMINAL_END_CAP_NV = 0x9078; + + [NativeName(NativeNameType.Const, "GL_PATH_JOIN_STYLE_NV")] + public const int GL_PATH_JOIN_STYLE_NV = 0x9079; + + [NativeName(NativeNameType.Const, "GL_PATH_MITER_LIMIT_NV")] + public const int GL_PATH_MITER_LIMIT_NV = 0x907A; + + [NativeName(NativeNameType.Const, "GL_PATH_DASH_CAPS_NV")] + public const int GL_PATH_DASH_CAPS_NV = 0x907B; + + [NativeName(NativeNameType.Const, "GL_PATH_INITIAL_DASH_CAP_NV")] + public const int GL_PATH_INITIAL_DASH_CAP_NV = 0x907C; + + [NativeName(NativeNameType.Const, "GL_PATH_TERMINAL_DASH_CAP_NV")] + public const int GL_PATH_TERMINAL_DASH_CAP_NV = 0x907D; + + [NativeName(NativeNameType.Const, "GL_PATH_DASH_OFFSET_NV")] + public const int GL_PATH_DASH_OFFSET_NV = 0x907E; + + [NativeName(NativeNameType.Const, "GL_PATH_CLIENT_LENGTH_NV")] + public const int GL_PATH_CLIENT_LENGTH_NV = 0x907F; + + [NativeName(NativeNameType.Const, "GL_PATH_FILL_MODE_NV")] + public const int GL_PATH_FILL_MODE_NV = 0x9080; + + [NativeName(NativeNameType.Const, "GL_PATH_FILL_MASK_NV")] + public const int GL_PATH_FILL_MASK_NV = 0x9081; + + [NativeName(NativeNameType.Const, "GL_PATH_FILL_COVER_MODE_NV")] + public const int GL_PATH_FILL_COVER_MODE_NV = 0x9082; + + [NativeName(NativeNameType.Const, "GL_PATH_STROKE_COVER_MODE_NV")] + public const int GL_PATH_STROKE_COVER_MODE_NV = 0x9083; + + [NativeName(NativeNameType.Const, "GL_PATH_STROKE_MASK_NV")] + public const int GL_PATH_STROKE_MASK_NV = 0x9084; + + [NativeName(NativeNameType.Const, "GL_COUNT_UP_NV")] + public const int GL_COUNT_UP_NV = 0x9088; + + [NativeName(NativeNameType.Const, "GL_COUNT_DOWN_NV")] + public const int GL_COUNT_DOWN_NV = 0x9089; + + [NativeName(NativeNameType.Const, "GL_PATH_OBJECT_BOUNDING_BOX_NV")] + public const int GL_PATH_OBJECT_BOUNDING_BOX_NV = 0x908A; + + [NativeName(NativeNameType.Const, "GL_CONVEX_HULL_NV")] + public const int GL_CONVEX_HULL_NV = 0x908B; + + [NativeName(NativeNameType.Const, "GL_BOUNDING_BOX_NV")] + public const int GL_BOUNDING_BOX_NV = 0x908D; + + [NativeName(NativeNameType.Const, "GL_TRANSLATE_X_NV")] + public const int GL_TRANSLATE_X_NV = 0x908E; + + [NativeName(NativeNameType.Const, "GL_TRANSLATE_Y_NV")] + public const int GL_TRANSLATE_Y_NV = 0x908F; + + [NativeName(NativeNameType.Const, "GL_TRANSLATE_2D_NV")] + public const int GL_TRANSLATE_2D_NV = 0x9090; + + [NativeName(NativeNameType.Const, "GL_TRANSLATE_3D_NV")] + public const int GL_TRANSLATE_3D_NV = 0x9091; + + [NativeName(NativeNameType.Const, "GL_AFFINE_2D_NV")] + public const int GL_AFFINE_2D_NV = 0x9092; + + [NativeName(NativeNameType.Const, "GL_AFFINE_3D_NV")] + public const int GL_AFFINE_3D_NV = 0x9094; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_AFFINE_2D_NV")] + public const int GL_TRANSPOSE_AFFINE_2D_NV = 0x9096; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_AFFINE_3D_NV")] + public const int GL_TRANSPOSE_AFFINE_3D_NV = 0x9098; + + [NativeName(NativeNameType.Const, "GL_UTF8_NV")] + public const int GL_UTF8_NV = 0x909A; + + [NativeName(NativeNameType.Const, "GL_UTF16_NV")] + public const int GL_UTF16_NV = 0x909B; + + [NativeName(NativeNameType.Const, "GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV")] + public const int GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV = 0x909C; + + [NativeName(NativeNameType.Const, "GL_PATH_COMMAND_COUNT_NV")] + public const int GL_PATH_COMMAND_COUNT_NV = 0x909D; + + [NativeName(NativeNameType.Const, "GL_PATH_COORD_COUNT_NV")] + public const int GL_PATH_COORD_COUNT_NV = 0x909E; + + [NativeName(NativeNameType.Const, "GL_PATH_DASH_ARRAY_COUNT_NV")] + public const int GL_PATH_DASH_ARRAY_COUNT_NV = 0x909F; + + [NativeName(NativeNameType.Const, "GL_PATH_COMPUTED_LENGTH_NV")] + public const int GL_PATH_COMPUTED_LENGTH_NV = 0x90A0; + + [NativeName(NativeNameType.Const, "GL_PATH_FILL_BOUNDING_BOX_NV")] + public const int GL_PATH_FILL_BOUNDING_BOX_NV = 0x90A1; + + [NativeName(NativeNameType.Const, "GL_PATH_STROKE_BOUNDING_BOX_NV")] + public const int GL_PATH_STROKE_BOUNDING_BOX_NV = 0x90A2; + + [NativeName(NativeNameType.Const, "GL_SQUARE_NV")] + public const int GL_SQUARE_NV = 0x90A3; + + [NativeName(NativeNameType.Const, "GL_ROUND_NV")] + public const int GL_ROUND_NV = 0x90A4; + + [NativeName(NativeNameType.Const, "GL_TRIANGULAR_NV")] + public const int GL_TRIANGULAR_NV = 0x90A5; + + [NativeName(NativeNameType.Const, "GL_BEVEL_NV")] + public const int GL_BEVEL_NV = 0x90A6; + + [NativeName(NativeNameType.Const, "GL_MITER_REVERT_NV")] + public const int GL_MITER_REVERT_NV = 0x90A7; + + [NativeName(NativeNameType.Const, "GL_MITER_TRUNCATE_NV")] + public const int GL_MITER_TRUNCATE_NV = 0x90A8; + + [NativeName(NativeNameType.Const, "GL_SKIP_MISSING_GLYPH_NV")] + public const int GL_SKIP_MISSING_GLYPH_NV = 0x90A9; + + [NativeName(NativeNameType.Const, "GL_USE_MISSING_GLYPH_NV")] + public const int GL_USE_MISSING_GLYPH_NV = 0x90AA; + + [NativeName(NativeNameType.Const, "GL_PATH_ERROR_POSITION_NV")] + public const int GL_PATH_ERROR_POSITION_NV = 0x90AB; + + [NativeName(NativeNameType.Const, "GL_ACCUM_ADJACENT_PAIRS_NV")] + public const int GL_ACCUM_ADJACENT_PAIRS_NV = 0x90AD; + + [NativeName(NativeNameType.Const, "GL_ADJACENT_PAIRS_NV")] + public const int GL_ADJACENT_PAIRS_NV = 0x90AE; + + [NativeName(NativeNameType.Const, "GL_FIRST_TO_REST_NV")] + public const int GL_FIRST_TO_REST_NV = 0x90AF; + + [NativeName(NativeNameType.Const, "GL_PATH_GEN_MODE_NV")] + public const int GL_PATH_GEN_MODE_NV = 0x90B0; + + [NativeName(NativeNameType.Const, "GL_PATH_GEN_COEFF_NV")] + public const int GL_PATH_GEN_COEFF_NV = 0x90B1; + + [NativeName(NativeNameType.Const, "GL_PATH_GEN_COMPONENTS_NV")] + public const int GL_PATH_GEN_COMPONENTS_NV = 0x90B3; + + [NativeName(NativeNameType.Const, "GL_PATH_STENCIL_FUNC_NV")] + public const int GL_PATH_STENCIL_FUNC_NV = 0x90B7; + + [NativeName(NativeNameType.Const, "GL_PATH_STENCIL_REF_NV")] + public const int GL_PATH_STENCIL_REF_NV = 0x90B8; + + [NativeName(NativeNameType.Const, "GL_PATH_STENCIL_VALUE_MASK_NV")] + public const int GL_PATH_STENCIL_VALUE_MASK_NV = 0x90B9; + + [NativeName(NativeNameType.Const, "GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV")] + public const int GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV = 0x90BD; + + [NativeName(NativeNameType.Const, "GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV")] + public const int GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV = 0x90BE; + + [NativeName(NativeNameType.Const, "GL_PATH_COVER_DEPTH_FUNC_NV")] + public const int GL_PATH_COVER_DEPTH_FUNC_NV = 0x90BF; + + [NativeName(NativeNameType.Const, "GL_PATH_DASH_OFFSET_RESET_NV")] + public const int GL_PATH_DASH_OFFSET_RESET_NV = 0x90B4; + + [NativeName(NativeNameType.Const, "GL_MOVE_TO_RESETS_NV")] + public const int GL_MOVE_TO_RESETS_NV = 0x90B5; + + [NativeName(NativeNameType.Const, "GL_MOVE_TO_CONTINUES_NV")] + public const int GL_MOVE_TO_CONTINUES_NV = 0x90B6; + + [NativeName(NativeNameType.Const, "GL_CLOSE_PATH_NV")] + public const int GL_CLOSE_PATH_NV = 0x00; + + [NativeName(NativeNameType.Const, "GL_MOVE_TO_NV")] + public const int GL_MOVE_TO_NV = 0x02; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_MOVE_TO_NV")] + public const int GL_RELATIVE_MOVE_TO_NV = 0x03; + + [NativeName(NativeNameType.Const, "GL_LINE_TO_NV")] + public const int GL_LINE_TO_NV = 0x04; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_LINE_TO_NV")] + public const int GL_RELATIVE_LINE_TO_NV = 0x05; + + [NativeName(NativeNameType.Const, "GL_HORIZONTAL_LINE_TO_NV")] + public const int GL_HORIZONTAL_LINE_TO_NV = 0x06; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_HORIZONTAL_LINE_TO_NV")] + public const int GL_RELATIVE_HORIZONTAL_LINE_TO_NV = 0x07; + + [NativeName(NativeNameType.Const, "GL_VERTICAL_LINE_TO_NV")] + public const int GL_VERTICAL_LINE_TO_NV = 0x08; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_VERTICAL_LINE_TO_NV")] + public const int GL_RELATIVE_VERTICAL_LINE_TO_NV = 0x09; + + [NativeName(NativeNameType.Const, "GL_QUADRATIC_CURVE_TO_NV")] + public const int GL_QUADRATIC_CURVE_TO_NV = 0x0A; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_QUADRATIC_CURVE_TO_NV")] + public const int GL_RELATIVE_QUADRATIC_CURVE_TO_NV = 0x0B; + + [NativeName(NativeNameType.Const, "GL_CUBIC_CURVE_TO_NV")] + public const int GL_CUBIC_CURVE_TO_NV = 0x0C; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_CUBIC_CURVE_TO_NV")] + public const int GL_RELATIVE_CUBIC_CURVE_TO_NV = 0x0D; + + [NativeName(NativeNameType.Const, "GL_SMOOTH_QUADRATIC_CURVE_TO_NV")] + public const int GL_SMOOTH_QUADRATIC_CURVE_TO_NV = 0x0E; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV")] + public const int GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV = 0x0F; + + [NativeName(NativeNameType.Const, "GL_SMOOTH_CUBIC_CURVE_TO_NV")] + public const int GL_SMOOTH_CUBIC_CURVE_TO_NV = 0x10; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV")] + public const int GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV = 0x11; + + [NativeName(NativeNameType.Const, "GL_SMALL_CCW_ARC_TO_NV")] + public const int GL_SMALL_CCW_ARC_TO_NV = 0x12; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_SMALL_CCW_ARC_TO_NV")] + public const int GL_RELATIVE_SMALL_CCW_ARC_TO_NV = 0x13; + + [NativeName(NativeNameType.Const, "GL_SMALL_CW_ARC_TO_NV")] + public const int GL_SMALL_CW_ARC_TO_NV = 0x14; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_SMALL_CW_ARC_TO_NV")] + public const int GL_RELATIVE_SMALL_CW_ARC_TO_NV = 0x15; + + [NativeName(NativeNameType.Const, "GL_LARGE_CCW_ARC_TO_NV")] + public const int GL_LARGE_CCW_ARC_TO_NV = 0x16; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_LARGE_CCW_ARC_TO_NV")] + public const int GL_RELATIVE_LARGE_CCW_ARC_TO_NV = 0x17; + + [NativeName(NativeNameType.Const, "GL_LARGE_CW_ARC_TO_NV")] + public const int GL_LARGE_CW_ARC_TO_NV = 0x18; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_LARGE_CW_ARC_TO_NV")] + public const int GL_RELATIVE_LARGE_CW_ARC_TO_NV = 0x19; + + [NativeName(NativeNameType.Const, "GL_RESTART_PATH_NV")] + public const int GL_RESTART_PATH_NV = 0xF0; + + [NativeName(NativeNameType.Const, "GL_DUP_FIRST_CUBIC_CURVE_TO_NV")] + public const int GL_DUP_FIRST_CUBIC_CURVE_TO_NV = 0xF2; + + [NativeName(NativeNameType.Const, "GL_DUP_LAST_CUBIC_CURVE_TO_NV")] + public const int GL_DUP_LAST_CUBIC_CURVE_TO_NV = 0xF4; + + [NativeName(NativeNameType.Const, "GL_RECT_NV")] + public const int GL_RECT_NV = 0xF6; + + [NativeName(NativeNameType.Const, "GL_CIRCULAR_CCW_ARC_TO_NV")] + public const int GL_CIRCULAR_CCW_ARC_TO_NV = 0xF8; + + [NativeName(NativeNameType.Const, "GL_CIRCULAR_CW_ARC_TO_NV")] + public const int GL_CIRCULAR_CW_ARC_TO_NV = 0xFA; + + [NativeName(NativeNameType.Const, "GL_CIRCULAR_TANGENT_ARC_TO_NV")] + public const int GL_CIRCULAR_TANGENT_ARC_TO_NV = 0xFC; + + [NativeName(NativeNameType.Const, "GL_ARC_TO_NV")] + public const int GL_ARC_TO_NV = 0xFE; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_ARC_TO_NV")] + public const int GL_RELATIVE_ARC_TO_NV = 0xFF; + + [NativeName(NativeNameType.Const, "GL_BOLD_BIT_NV")] + public const int GL_BOLD_BIT_NV = 0x01; + + [NativeName(NativeNameType.Const, "GL_ITALIC_BIT_NV")] + public const int GL_ITALIC_BIT_NV = 0x02; + + [NativeName(NativeNameType.Const, "GL_GLYPH_WIDTH_BIT_NV")] + public const int GL_GLYPH_WIDTH_BIT_NV = 0x01; + + [NativeName(NativeNameType.Const, "GL_GLYPH_HEIGHT_BIT_NV")] + public const int GL_GLYPH_HEIGHT_BIT_NV = 0x02; + + [NativeName(NativeNameType.Const, "GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV")] + public const int GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV = 0x04; + + [NativeName(NativeNameType.Const, "GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV")] + public const int GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV = 0x08; + + [NativeName(NativeNameType.Const, "GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV")] + public const int GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV = 0x10; + + [NativeName(NativeNameType.Const, "GL_GLYPH_VERTICAL_BEARING_X_BIT_NV")] + public const int GL_GLYPH_VERTICAL_BEARING_X_BIT_NV = 0x20; + + [NativeName(NativeNameType.Const, "GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV")] + public const int GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV = 0x40; + + [NativeName(NativeNameType.Const, "GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV")] + public const int GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV = 0x80; + + [NativeName(NativeNameType.Const, "GL_GLYPH_HAS_KERNING_BIT_NV")] + public const int GL_GLYPH_HAS_KERNING_BIT_NV = 0x100; + + [NativeName(NativeNameType.Const, "GL_FONT_X_MIN_BOUNDS_BIT_NV")] + public const int GL_FONT_X_MIN_BOUNDS_BIT_NV = 0x00010000; + + [NativeName(NativeNameType.Const, "GL_FONT_Y_MIN_BOUNDS_BIT_NV")] + public const int GL_FONT_Y_MIN_BOUNDS_BIT_NV = 0x00020000; + + [NativeName(NativeNameType.Const, "GL_FONT_X_MAX_BOUNDS_BIT_NV")] + public const int GL_FONT_X_MAX_BOUNDS_BIT_NV = 0x00040000; + + [NativeName(NativeNameType.Const, "GL_FONT_Y_MAX_BOUNDS_BIT_NV")] + public const int GL_FONT_Y_MAX_BOUNDS_BIT_NV = 0x00080000; + + [NativeName(NativeNameType.Const, "GL_FONT_UNITS_PER_EM_BIT_NV")] + public const int GL_FONT_UNITS_PER_EM_BIT_NV = 0x00100000; + + [NativeName(NativeNameType.Const, "GL_FONT_ASCENDER_BIT_NV")] + public const int GL_FONT_ASCENDER_BIT_NV = 0x00200000; + + [NativeName(NativeNameType.Const, "GL_FONT_DESCENDER_BIT_NV")] + public const int GL_FONT_DESCENDER_BIT_NV = 0x00400000; + + [NativeName(NativeNameType.Const, "GL_FONT_HEIGHT_BIT_NV")] + public const int GL_FONT_HEIGHT_BIT_NV = 0x00800000; + + [NativeName(NativeNameType.Const, "GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV")] + public const int GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV = 0x01000000; + + [NativeName(NativeNameType.Const, "GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV")] + public const int GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV = 0x02000000; + + [NativeName(NativeNameType.Const, "GL_FONT_UNDERLINE_POSITION_BIT_NV")] + public const int GL_FONT_UNDERLINE_POSITION_BIT_NV = 0x04000000; + + [NativeName(NativeNameType.Const, "GL_FONT_UNDERLINE_THICKNESS_BIT_NV")] + public const int GL_FONT_UNDERLINE_THICKNESS_BIT_NV = 0x08000000; + + [NativeName(NativeNameType.Const, "GL_FONT_HAS_KERNING_BIT_NV")] + public const int GL_FONT_HAS_KERNING_BIT_NV = 0x10000000; + + [NativeName(NativeNameType.Const, "GL_ROUNDED_RECT_NV")] + public const int GL_ROUNDED_RECT_NV = 0xE8; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_ROUNDED_RECT_NV")] + public const int GL_RELATIVE_ROUNDED_RECT_NV = 0xE9; + + [NativeName(NativeNameType.Const, "GL_ROUNDED_RECT2_NV")] + public const int GL_ROUNDED_RECT2_NV = 0xEA; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_ROUNDED_RECT2_NV")] + public const int GL_RELATIVE_ROUNDED_RECT2_NV = 0xEB; + + [NativeName(NativeNameType.Const, "GL_ROUNDED_RECT4_NV")] + public const int GL_ROUNDED_RECT4_NV = 0xEC; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_ROUNDED_RECT4_NV")] + public const int GL_RELATIVE_ROUNDED_RECT4_NV = 0xED; + + [NativeName(NativeNameType.Const, "GL_ROUNDED_RECT8_NV")] + public const int GL_ROUNDED_RECT8_NV = 0xEE; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_ROUNDED_RECT8_NV")] + public const int GL_RELATIVE_ROUNDED_RECT8_NV = 0xEF; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_RECT_NV")] + public const int GL_RELATIVE_RECT_NV = 0xF7; + + [NativeName(NativeNameType.Const, "GL_FONT_GLYPHS_AVAILABLE_NV")] + public const int GL_FONT_GLYPHS_AVAILABLE_NV = 0x9368; + + [NativeName(NativeNameType.Const, "GL_FONT_TARGET_UNAVAILABLE_NV")] + public const int GL_FONT_TARGET_UNAVAILABLE_NV = 0x9369; + + [NativeName(NativeNameType.Const, "GL_FONT_UNAVAILABLE_NV")] + public const int GL_FONT_UNAVAILABLE_NV = 0x936A; + + [NativeName(NativeNameType.Const, "GL_FONT_UNINTELLIGIBLE_NV")] + public const int GL_FONT_UNINTELLIGIBLE_NV = 0x936B; + + [NativeName(NativeNameType.Const, "GL_CONIC_CURVE_TO_NV")] + public const int GL_CONIC_CURVE_TO_NV = 0x1A; + + [NativeName(NativeNameType.Const, "GL_RELATIVE_CONIC_CURVE_TO_NV")] + public const int GL_RELATIVE_CONIC_CURVE_TO_NV = 0x1B; + + [NativeName(NativeNameType.Const, "GL_FONT_NUM_GLYPH_INDICES_BIT_NV")] + public const int GL_FONT_NUM_GLYPH_INDICES_BIT_NV = 0x20000000; + + [NativeName(NativeNameType.Const, "GL_STANDARD_FONT_FORMAT_NV")] + public const int GL_STANDARD_FONT_FORMAT_NV = 0x936C; + + [NativeName(NativeNameType.Const, "GL_2_BYTES_NV")] + public const int GL_2_BYTES_NV = 0x1407; + + [NativeName(NativeNameType.Const, "GL_3_BYTES_NV")] + public const int GL_3_BYTES_NV = 0x1408; + + [NativeName(NativeNameType.Const, "GL_4_BYTES_NV")] + public const int GL_4_BYTES_NV = 0x1409; + + [NativeName(NativeNameType.Const, "GL_EYE_LINEAR_NV")] + public const int GL_EYE_LINEAR_NV = 0x2400; + + [NativeName(NativeNameType.Const, "GL_OBJECT_LINEAR_NV")] + public const int GL_OBJECT_LINEAR_NV = 0x2401; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_NV")] + public const int GL_CONSTANT_NV = 0x8576; + + [NativeName(NativeNameType.Const, "GL_PATH_FOG_GEN_MODE_NV")] + public const int GL_PATH_FOG_GEN_MODE_NV = 0x90AC; + + [NativeName(NativeNameType.Const, "GL_PRIMARY_COLOR_NV")] + public const int GL_PRIMARY_COLOR_NV = 0x852C; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_NV")] + public const int GL_SECONDARY_COLOR_NV = 0x852D; + + [NativeName(NativeNameType.Const, "GL_PATH_GEN_COLOR_FORMAT_NV")] + public const int GL_PATH_GEN_COLOR_FORMAT_NV = 0x90B2; + + [NativeName(NativeNameType.Const, "GL_PATH_PROJECTION_NV")] + public const int GL_PATH_PROJECTION_NV = 0x1701; + + [NativeName(NativeNameType.Const, "GL_PATH_MODELVIEW_NV")] + public const int GL_PATH_MODELVIEW_NV = 0x1700; + + [NativeName(NativeNameType.Const, "GL_PATH_MODELVIEW_STACK_DEPTH_NV")] + public const int GL_PATH_MODELVIEW_STACK_DEPTH_NV = 0x0BA3; + + [NativeName(NativeNameType.Const, "GL_PATH_MODELVIEW_MATRIX_NV")] + public const int GL_PATH_MODELVIEW_MATRIX_NV = 0x0BA6; + + [NativeName(NativeNameType.Const, "GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV")] + public const int GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV = 0x0D36; + + [NativeName(NativeNameType.Const, "GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV")] + public const int GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV = 0x84E3; + + [NativeName(NativeNameType.Const, "GL_PATH_PROJECTION_STACK_DEPTH_NV")] + public const int GL_PATH_PROJECTION_STACK_DEPTH_NV = 0x0BA4; + + [NativeName(NativeNameType.Const, "GL_PATH_PROJECTION_MATRIX_NV")] + public const int GL_PATH_PROJECTION_MATRIX_NV = 0x0BA7; + + [NativeName(NativeNameType.Const, "GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV")] + public const int GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV = 0x0D38; + + [NativeName(NativeNameType.Const, "GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV")] + public const int GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV = 0x84E4; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_INPUT_NV")] + public const int GL_FRAGMENT_INPUT_NV = 0x936D; + + [NativeName(NativeNameType.Const, "GL_NV_path_rendering_shared_edge")] + public const int GL_NV_PATH_RENDERING_SHARED_EDGE = 1; + + [NativeName(NativeNameType.Const, "GL_SHARED_EDGE_NV")] + public const int GL_SHARED_EDGE_NV = 0xC0; + + [NativeName(NativeNameType.Const, "GL_NV_pixel_data_range")] + public const int GL_NV_PIXEL_DATA_RANGE = 1; + + [NativeName(NativeNameType.Const, "GL_WRITE_PIXEL_DATA_RANGE_NV")] + public const int GL_WRITE_PIXEL_DATA_RANGE_NV = 0x8878; + + [NativeName(NativeNameType.Const, "GL_READ_PIXEL_DATA_RANGE_NV")] + public const int GL_READ_PIXEL_DATA_RANGE_NV = 0x8879; + + [NativeName(NativeNameType.Const, "GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV")] + public const int GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887A; + + [NativeName(NativeNameType.Const, "GL_READ_PIXEL_DATA_RANGE_LENGTH_NV")] + public const int GL_READ_PIXEL_DATA_RANGE_LENGTH_NV = 0x887B; + + [NativeName(NativeNameType.Const, "GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV")] + public const int GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887C; + + [NativeName(NativeNameType.Const, "GL_READ_PIXEL_DATA_RANGE_POINTER_NV")] + public const int GL_READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887D; + + [NativeName(NativeNameType.Const, "GL_NV_point_sprite")] + public const int GL_NV_POINT_SPRITE = 1; + + [NativeName(NativeNameType.Const, "GL_POINT_SPRITE_NV")] + public const int GL_POINT_SPRITE_NV = 0x8861; + + [NativeName(NativeNameType.Const, "GL_COORD_REPLACE_NV")] + public const int GL_COORD_REPLACE_NV = 0x8862; + + [NativeName(NativeNameType.Const, "GL_POINT_SPRITE_R_MODE_NV")] + public const int GL_POINT_SPRITE_R_MODE_NV = 0x8863; + + [NativeName(NativeNameType.Const, "GL_NV_present_video")] + public const int GL_NV_PRESENT_VIDEO = 1; + + [NativeName(NativeNameType.Const, "GL_FRAME_NV")] + public const int GL_FRAME_NV = 0x8E26; + + [NativeName(NativeNameType.Const, "GL_FIELDS_NV")] + public const int GL_FIELDS_NV = 0x8E27; + + [NativeName(NativeNameType.Const, "GL_CURRENT_TIME_NV")] + public const int GL_CURRENT_TIME_NV = 0x8E28; + + [NativeName(NativeNameType.Const, "GL_NUM_FILL_STREAMS_NV")] + public const int GL_NUM_FILL_STREAMS_NV = 0x8E29; + + [NativeName(NativeNameType.Const, "GL_PRESENT_TIME_NV")] + public const int GL_PRESENT_TIME_NV = 0x8E2A; + + [NativeName(NativeNameType.Const, "GL_PRESENT_DURATION_NV")] + public const int GL_PRESENT_DURATION_NV = 0x8E2B; + + [NativeName(NativeNameType.Const, "GL_NV_primitive_restart")] + public const int GL_NV_PRIMITIVE_RESTART = 1; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVE_RESTART_NV")] + public const int GL_PRIMITIVE_RESTART_NV = 0x8558; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVE_RESTART_INDEX_NV")] + public const int GL_PRIMITIVE_RESTART_INDEX_NV = 0x8559; + + [NativeName(NativeNameType.Const, "GL_NV_primitive_shading_rate")] + public const int GL_NV_PRIMITIVE_SHADING_RATE = 1; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_IMAGE_PER_PRIMITIVE_NV")] + public const int GL_SHADING_RATE_IMAGE_PER_PRIMITIVE_NV = 0x95B1; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_IMAGE_PALETTE_COUNT_NV")] + public const int GL_SHADING_RATE_IMAGE_PALETTE_COUNT_NV = 0x95B2; + + [NativeName(NativeNameType.Const, "GL_NV_query_resource")] + public const int GL_NV_QUERY_RESOURCE = 1; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NV")] + public const int GL_QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NV = 0x9540; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESOURCE_MEMTYPE_VIDMEM_NV")] + public const int GL_QUERY_RESOURCE_MEMTYPE_VIDMEM_NV = 0x9542; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESOURCE_SYS_RESERVED_NV")] + public const int GL_QUERY_RESOURCE_SYS_RESERVED_NV = 0x9544; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESOURCE_TEXTURE_NV")] + public const int GL_QUERY_RESOURCE_TEXTURE_NV = 0x9545; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESOURCE_RENDERBUFFER_NV")] + public const int GL_QUERY_RESOURCE_RENDERBUFFER_NV = 0x9546; + + [NativeName(NativeNameType.Const, "GL_QUERY_RESOURCE_BUFFEROBJECT_NV")] + public const int GL_QUERY_RESOURCE_BUFFEROBJECT_NV = 0x9547; + + [NativeName(NativeNameType.Const, "GL_NV_query_resource_tag")] + public const int GL_NV_QUERY_RESOURCE_TAG = 1; + + [NativeName(NativeNameType.Const, "GL_NV_register_combiners")] + public const int GL_NV_REGISTER_COMBINERS = 1; + + [NativeName(NativeNameType.Const, "GL_REGISTER_COMBINERS_NV")] + public const int GL_REGISTER_COMBINERS_NV = 0x8522; + + [NativeName(NativeNameType.Const, "GL_VARIABLE_A_NV")] + public const int GL_VARIABLE_A_NV = 0x8523; + + [NativeName(NativeNameType.Const, "GL_VARIABLE_B_NV")] + public const int GL_VARIABLE_B_NV = 0x8524; + + [NativeName(NativeNameType.Const, "GL_VARIABLE_C_NV")] + public const int GL_VARIABLE_C_NV = 0x8525; + + [NativeName(NativeNameType.Const, "GL_VARIABLE_D_NV")] + public const int GL_VARIABLE_D_NV = 0x8526; + + [NativeName(NativeNameType.Const, "GL_VARIABLE_E_NV")] + public const int GL_VARIABLE_E_NV = 0x8527; + + [NativeName(NativeNameType.Const, "GL_VARIABLE_F_NV")] + public const int GL_VARIABLE_F_NV = 0x8528; + + [NativeName(NativeNameType.Const, "GL_VARIABLE_G_NV")] + public const int GL_VARIABLE_G_NV = 0x8529; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_COLOR0_NV")] + public const int GL_CONSTANT_COLOR0_NV = 0x852A; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_COLOR1_NV")] + public const int GL_CONSTANT_COLOR1_NV = 0x852B; + + [NativeName(NativeNameType.Const, "GL_SPARE0_NV")] + public const int GL_SPARE0_NV = 0x852E; + + [NativeName(NativeNameType.Const, "GL_SPARE1_NV")] + public const int GL_SPARE1_NV = 0x852F; + + [NativeName(NativeNameType.Const, "GL_DISCARD_NV")] + public const int GL_DISCARD_NV = 0x8530; + + [NativeName(NativeNameType.Const, "GL_E_TIMES_F_NV")] + public const int GL_E_TIMES_F_NV = 0x8531; + + [NativeName(NativeNameType.Const, "GL_SPARE0_PLUS_SECONDARY_COLOR_NV")] + public const int GL_SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_IDENTITY_NV")] + public const int GL_UNSIGNED_IDENTITY_NV = 0x8536; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INVERT_NV")] + public const int GL_UNSIGNED_INVERT_NV = 0x8537; + + [NativeName(NativeNameType.Const, "GL_EXPAND_NORMAL_NV")] + public const int GL_EXPAND_NORMAL_NV = 0x8538; + + [NativeName(NativeNameType.Const, "GL_EXPAND_NEGATE_NV")] + public const int GL_EXPAND_NEGATE_NV = 0x8539; + + [NativeName(NativeNameType.Const, "GL_HALF_BIAS_NORMAL_NV")] + public const int GL_HALF_BIAS_NORMAL_NV = 0x853A; + + [NativeName(NativeNameType.Const, "GL_HALF_BIAS_NEGATE_NV")] + public const int GL_HALF_BIAS_NEGATE_NV = 0x853B; + + [NativeName(NativeNameType.Const, "GL_SIGNED_IDENTITY_NV")] + public const int GL_SIGNED_IDENTITY_NV = 0x853C; + + [NativeName(NativeNameType.Const, "GL_SIGNED_NEGATE_NV")] + public const int GL_SIGNED_NEGATE_NV = 0x853D; + + [NativeName(NativeNameType.Const, "GL_SCALE_BY_TWO_NV")] + public const int GL_SCALE_BY_TWO_NV = 0x853E; + + [NativeName(NativeNameType.Const, "GL_SCALE_BY_FOUR_NV")] + public const int GL_SCALE_BY_FOUR_NV = 0x853F; + + [NativeName(NativeNameType.Const, "GL_SCALE_BY_ONE_HALF_NV")] + public const int GL_SCALE_BY_ONE_HALF_NV = 0x8540; + + [NativeName(NativeNameType.Const, "GL_BIAS_BY_NEGATIVE_ONE_HALF_NV")] + public const int GL_BIAS_BY_NEGATIVE_ONE_HALF_NV = 0x8541; + + [NativeName(NativeNameType.Const, "GL_COMBINER_INPUT_NV")] + public const int GL_COMBINER_INPUT_NV = 0x8542; + + [NativeName(NativeNameType.Const, "GL_COMBINER_MAPPING_NV")] + public const int GL_COMBINER_MAPPING_NV = 0x8543; + + [NativeName(NativeNameType.Const, "GL_COMBINER_COMPONENT_USAGE_NV")] + public const int GL_COMBINER_COMPONENT_USAGE_NV = 0x8544; + + [NativeName(NativeNameType.Const, "GL_COMBINER_AB_DOT_PRODUCT_NV")] + public const int GL_COMBINER_AB_DOT_PRODUCT_NV = 0x8545; + + [NativeName(NativeNameType.Const, "GL_COMBINER_CD_DOT_PRODUCT_NV")] + public const int GL_COMBINER_CD_DOT_PRODUCT_NV = 0x8546; + + [NativeName(NativeNameType.Const, "GL_COMBINER_MUX_SUM_NV")] + public const int GL_COMBINER_MUX_SUM_NV = 0x8547; + + [NativeName(NativeNameType.Const, "GL_COMBINER_SCALE_NV")] + public const int GL_COMBINER_SCALE_NV = 0x8548; + + [NativeName(NativeNameType.Const, "GL_COMBINER_BIAS_NV")] + public const int GL_COMBINER_BIAS_NV = 0x8549; + + [NativeName(NativeNameType.Const, "GL_COMBINER_AB_OUTPUT_NV")] + public const int GL_COMBINER_AB_OUTPUT_NV = 0x854A; + + [NativeName(NativeNameType.Const, "GL_COMBINER_CD_OUTPUT_NV")] + public const int GL_COMBINER_CD_OUTPUT_NV = 0x854B; + + [NativeName(NativeNameType.Const, "GL_COMBINER_SUM_OUTPUT_NV")] + public const int GL_COMBINER_SUM_OUTPUT_NV = 0x854C; + + [NativeName(NativeNameType.Const, "GL_MAX_GENERAL_COMBINERS_NV")] + public const int GL_MAX_GENERAL_COMBINERS_NV = 0x854D; + + [NativeName(NativeNameType.Const, "GL_NUM_GENERAL_COMBINERS_NV")] + public const int GL_NUM_GENERAL_COMBINERS_NV = 0x854E; + + [NativeName(NativeNameType.Const, "GL_COLOR_SUM_CLAMP_NV")] + public const int GL_COLOR_SUM_CLAMP_NV = 0x854F; + + [NativeName(NativeNameType.Const, "GL_COMBINER0_NV")] + public const int GL_COMBINER0_NV = 0x8550; + + [NativeName(NativeNameType.Const, "GL_COMBINER1_NV")] + public const int GL_COMBINER1_NV = 0x8551; + + [NativeName(NativeNameType.Const, "GL_COMBINER2_NV")] + public const int GL_COMBINER2_NV = 0x8552; + + [NativeName(NativeNameType.Const, "GL_COMBINER3_NV")] + public const int GL_COMBINER3_NV = 0x8553; + + [NativeName(NativeNameType.Const, "GL_COMBINER4_NV")] + public const int GL_COMBINER4_NV = 0x8554; + + [NativeName(NativeNameType.Const, "GL_COMBINER5_NV")] + public const int GL_COMBINER5_NV = 0x8555; + + [NativeName(NativeNameType.Const, "GL_COMBINER6_NV")] + public const int GL_COMBINER6_NV = 0x8556; + + [NativeName(NativeNameType.Const, "GL_COMBINER7_NV")] + public const int GL_COMBINER7_NV = 0x8557; + + [NativeName(NativeNameType.Const, "GL_NV_register_combiners2")] + public const int GL_NV_REGISTER_COMBINERS2 = 1; + + [NativeName(NativeNameType.Const, "GL_PER_STAGE_CONSTANTS_NV")] + public const int GL_PER_STAGE_CONSTANTS_NV = 0x8535; + + [NativeName(NativeNameType.Const, "GL_NV_representative_fragment_test")] + public const int GL_NV_REPRESENTATIVE_FRAGMENT_TEST = 1; + + [NativeName(NativeNameType.Const, "GL_REPRESENTATIVE_FRAGMENT_TEST_NV")] + public const int GL_REPRESENTATIVE_FRAGMENT_TEST_NV = 0x937F; + + [NativeName(NativeNameType.Const, "GL_NV_robustness_video_memory_purge")] + public const int GL_NV_ROBUSTNESS_VIDEO_MEMORY_PURGE = 1; + + [NativeName(NativeNameType.Const, "GL_PURGED_CONTEXT_RESET_NV")] + public const int GL_PURGED_CONTEXT_RESET_NV = 0x92BB; + + [NativeName(NativeNameType.Const, "GL_NV_sample_locations")] + public const int GL_NV_SAMPLE_LOCATIONS = 1; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV")] + public const int GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV = 0x933D; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV")] + public const int GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV = 0x933E; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV")] + public const int GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV = 0x933F; + + [NativeName(NativeNameType.Const, "GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV")] + public const int GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV = 0x9340; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_LOCATION_NV")] + public const int GL_SAMPLE_LOCATION_NV = 0x8E50; + + [NativeName(NativeNameType.Const, "GL_PROGRAMMABLE_SAMPLE_LOCATION_NV")] + public const int GL_PROGRAMMABLE_SAMPLE_LOCATION_NV = 0x9341; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV")] + public const int GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV = 0x9342; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV")] + public const int GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV = 0x9343; + + [NativeName(NativeNameType.Const, "GL_NV_sample_mask_override_coverage")] + public const int GL_NV_SAMPLE_MASK_OVERRIDE_COVERAGE = 1; + + [NativeName(NativeNameType.Const, "GL_NV_scissor_exclusive")] + public const int GL_NV_SCISSOR_EXCLUSIVE = 1; + + [NativeName(NativeNameType.Const, "GL_SCISSOR_TEST_EXCLUSIVE_NV")] + public const int GL_SCISSOR_TEST_EXCLUSIVE_NV = 0x9555; + + [NativeName(NativeNameType.Const, "GL_SCISSOR_BOX_EXCLUSIVE_NV")] + public const int GL_SCISSOR_BOX_EXCLUSIVE_NV = 0x9556; + + [NativeName(NativeNameType.Const, "GL_NV_shader_atomic_counters")] + public const int GL_NV_SHADER_ATOMIC_COUNTERS = 1; + + [NativeName(NativeNameType.Const, "GL_NV_shader_atomic_float")] + public const int GL_NV_SHADER_ATOMIC_FLOAT = 1; + + [NativeName(NativeNameType.Const, "GL_NV_shader_atomic_float64")] + public const int GL_NV_SHADER_ATOMIC_FLOAT64 = 1; + + [NativeName(NativeNameType.Const, "GL_NV_shader_atomic_fp16_vector")] + public const int GL_NV_SHADER_ATOMIC_FP16_VECTOR = 1; + + [NativeName(NativeNameType.Const, "GL_NV_shader_atomic_int64")] + public const int GL_NV_SHADER_ATOMIC_INT64 = 1; + + [NativeName(NativeNameType.Const, "GL_NV_shader_buffer_load")] + public const int GL_NV_SHADER_BUFFER_LOAD = 1; + + [NativeName(NativeNameType.Const, "GL_BUFFER_GPU_ADDRESS_NV")] + public const int GL_BUFFER_GPU_ADDRESS_NV = 0x8F1D; + + [NativeName(NativeNameType.Const, "GL_GPU_ADDRESS_NV")] + public const int GL_GPU_ADDRESS_NV = 0x8F34; + + [NativeName(NativeNameType.Const, "GL_MAX_SHADER_BUFFER_ADDRESS_NV")] + public const int GL_MAX_SHADER_BUFFER_ADDRESS_NV = 0x8F35; + + [NativeName(NativeNameType.Const, "GL_NV_shader_buffer_store")] + public const int GL_NV_SHADER_BUFFER_STORE = 1; + + [NativeName(NativeNameType.Const, "GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV")] + public const int GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV = 0x00000010; + + [NativeName(NativeNameType.Const, "GL_NV_shader_storage_buffer_object")] + public const int GL_NV_SHADER_STORAGE_BUFFER_OBJECT = 1; + + [NativeName(NativeNameType.Const, "GL_NV_shader_subgroup_partitioned")] + public const int GL_NV_SHADER_SUBGROUP_PARTITIONED = 1; + + [NativeName(NativeNameType.Const, "GL_SUBGROUP_FEATURE_PARTITIONED_BIT_NV")] + public const int GL_SUBGROUP_FEATURE_PARTITIONED_BIT_NV = 0x00000100; + + [NativeName(NativeNameType.Const, "GL_NV_shader_texture_footprint")] + public const int GL_NV_SHADER_TEXTURE_FOOTPRINT = 1; + + [NativeName(NativeNameType.Const, "GL_NV_shader_thread_group")] + public const int GL_NV_SHADER_THREAD_GROUP = 1; + + [NativeName(NativeNameType.Const, "GL_WARP_SIZE_NV")] + public const int GL_WARP_SIZE_NV = 0x9339; + + [NativeName(NativeNameType.Const, "GL_WARPS_PER_SM_NV")] + public const int GL_WARPS_PER_SM_NV = 0x933A; + + [NativeName(NativeNameType.Const, "GL_SM_COUNT_NV")] + public const int GL_SM_COUNT_NV = 0x933B; + + [NativeName(NativeNameType.Const, "GL_NV_shader_thread_shuffle")] + public const int GL_NV_SHADER_THREAD_SHUFFLE = 1; + + [NativeName(NativeNameType.Const, "GL_NV_shading_rate_image")] + public const int GL_NV_SHADING_RATE_IMAGE = 1; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_IMAGE_NV")] + public const int GL_SHADING_RATE_IMAGE_NV = 0x9563; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_NO_INVOCATIONS_NV")] + public const int GL_SHADING_RATE_NO_INVOCATIONS_NV = 0x9564; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV")] + public const int GL_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV = 0x9565; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV")] + public const int GL_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV = 0x9566; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV")] + public const int GL_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV = 0x9567; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV")] + public const int GL_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV = 0x9568; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV")] + public const int GL_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV = 0x9569; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV")] + public const int GL_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV = 0x956A; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV")] + public const int GL_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV = 0x956B; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV")] + public const int GL_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV = 0x956C; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV")] + public const int GL_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV = 0x956D; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV")] + public const int GL_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV = 0x956E; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV")] + public const int GL_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV = 0x956F; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_IMAGE_BINDING_NV")] + public const int GL_SHADING_RATE_IMAGE_BINDING_NV = 0x955B; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_IMAGE_TEXEL_WIDTH_NV")] + public const int GL_SHADING_RATE_IMAGE_TEXEL_WIDTH_NV = 0x955C; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_IMAGE_TEXEL_HEIGHT_NV")] + public const int GL_SHADING_RATE_IMAGE_TEXEL_HEIGHT_NV = 0x955D; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_IMAGE_PALETTE_SIZE_NV")] + public const int GL_SHADING_RATE_IMAGE_PALETTE_SIZE_NV = 0x955E; + + [NativeName(NativeNameType.Const, "GL_MAX_COARSE_FRAGMENT_SAMPLES_NV")] + public const int GL_MAX_COARSE_FRAGMENT_SAMPLES_NV = 0x955F; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_SAMPLE_ORDER_DEFAULT_NV")] + public const int GL_SHADING_RATE_SAMPLE_ORDER_DEFAULT_NV = 0x95AE; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_SAMPLE_ORDER_PIXEL_MAJOR_NV")] + public const int GL_SHADING_RATE_SAMPLE_ORDER_PIXEL_MAJOR_NV = 0x95AF; + + [NativeName(NativeNameType.Const, "GL_SHADING_RATE_SAMPLE_ORDER_SAMPLE_MAJOR_NV")] + public const int GL_SHADING_RATE_SAMPLE_ORDER_SAMPLE_MAJOR_NV = 0x95B0; + + [NativeName(NativeNameType.Const, "GL_NV_stereo_view_rendering")] + public const int GL_NV_STEREO_VIEW_RENDERING = 1; + + [NativeName(NativeNameType.Const, "GL_NV_tessellation_program5")] + public const int GL_NV_TESSELLATION_PROGRAM5 = 1; + + [NativeName(NativeNameType.Const, "GL_MAX_PROGRAM_PATCH_ATTRIBS_NV")] + public const int GL_MAX_PROGRAM_PATCH_ATTRIBS_NV = 0x86D8; + + [NativeName(NativeNameType.Const, "GL_TESS_CONTROL_PROGRAM_NV")] + public const int GL_TESS_CONTROL_PROGRAM_NV = 0x891E; + + [NativeName(NativeNameType.Const, "GL_TESS_EVALUATION_PROGRAM_NV")] + public const int GL_TESS_EVALUATION_PROGRAM_NV = 0x891F; + + [NativeName(NativeNameType.Const, "GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV")] + public const int GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV = 0x8C74; + + [NativeName(NativeNameType.Const, "GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV")] + public const int GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV = 0x8C75; + + [NativeName(NativeNameType.Const, "GL_NV_texgen_emboss")] + public const int GL_NV_TEXGEN_EMBOSS = 1; + + [NativeName(NativeNameType.Const, "GL_EMBOSS_LIGHT_NV")] + public const int GL_EMBOSS_LIGHT_NV = 0x855D; + + [NativeName(NativeNameType.Const, "GL_EMBOSS_CONSTANT_NV")] + public const int GL_EMBOSS_CONSTANT_NV = 0x855E; + + [NativeName(NativeNameType.Const, "GL_EMBOSS_MAP_NV")] + public const int GL_EMBOSS_MAP_NV = 0x855F; + + [NativeName(NativeNameType.Const, "GL_NV_texgen_reflection")] + public const int GL_NV_TEXGEN_REFLECTION = 1; + + [NativeName(NativeNameType.Const, "GL_NORMAL_MAP_NV")] + public const int GL_NORMAL_MAP_NV = 0x8511; + + [NativeName(NativeNameType.Const, "GL_REFLECTION_MAP_NV")] + public const int GL_REFLECTION_MAP_NV = 0x8512; + + [NativeName(NativeNameType.Const, "GL_NV_texture_barrier")] + public const int GL_NV_TEXTURE_BARRIER = 1; + + [NativeName(NativeNameType.Const, "GL_NV_texture_compression_vtc")] + public const int GL_NV_TEXTURE_COMPRESSION_VTC = 1; + + [NativeName(NativeNameType.Const, "GL_NV_texture_env_combine4")] + public const int GL_NV_TEXTURE_ENV_COMBINE4 = 1; + + [NativeName(NativeNameType.Const, "GL_COMBINE4_NV")] + public const int GL_COMBINE4_NV = 0x8503; + + [NativeName(NativeNameType.Const, "GL_SOURCE3_RGB_NV")] + public const int GL_SOURCE3_RGB_NV = 0x8583; + + [NativeName(NativeNameType.Const, "GL_SOURCE3_ALPHA_NV")] + public const int GL_SOURCE3_ALPHA_NV = 0x858B; + + [NativeName(NativeNameType.Const, "GL_OPERAND3_RGB_NV")] + public const int GL_OPERAND3_RGB_NV = 0x8593; + + [NativeName(NativeNameType.Const, "GL_OPERAND3_ALPHA_NV")] + public const int GL_OPERAND3_ALPHA_NV = 0x859B; + + [NativeName(NativeNameType.Const, "GL_NV_texture_expand_normal")] + public const int GL_NV_TEXTURE_EXPAND_NORMAL = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_UNSIGNED_REMAP_MODE_NV")] + public const int GL_TEXTURE_UNSIGNED_REMAP_MODE_NV = 0x888F; + + [NativeName(NativeNameType.Const, "GL_NV_texture_multisample")] + public const int GL_NV_TEXTURE_MULTISAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COVERAGE_SAMPLES_NV")] + public const int GL_TEXTURE_COVERAGE_SAMPLES_NV = 0x9045; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COLOR_SAMPLES_NV")] + public const int GL_TEXTURE_COLOR_SAMPLES_NV = 0x9046; + + [NativeName(NativeNameType.Const, "GL_NV_texture_rectangle")] + public const int GL_NV_TEXTURE_RECTANGLE = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RECTANGLE_NV")] + public const int GL_TEXTURE_RECTANGLE_NV = 0x84F5; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_RECTANGLE_NV")] + public const int GL_TEXTURE_BINDING_RECTANGLE_NV = 0x84F6; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_RECTANGLE_NV")] + public const int GL_PROXY_TEXTURE_RECTANGLE_NV = 0x84F7; + + [NativeName(NativeNameType.Const, "GL_MAX_RECTANGLE_TEXTURE_SIZE_NV")] + public const int GL_MAX_RECTANGLE_TEXTURE_SIZE_NV = 0x84F8; + + [NativeName(NativeNameType.Const, "GL_NV_texture_rectangle_compressed")] + public const int GL_NV_TEXTURE_RECTANGLE_COMPRESSED = 1; + + [NativeName(NativeNameType.Const, "GL_NV_texture_shader")] + public const int GL_NV_TEXTURE_SHADER = 1; + + [NativeName(NativeNameType.Const, "GL_OFFSET_TEXTURE_RECTANGLE_NV")] + public const int GL_OFFSET_TEXTURE_RECTANGLE_NV = 0x864C; + + [NativeName(NativeNameType.Const, "GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV")] + public const int GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV = 0x864D; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV")] + public const int GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV = 0x864E; + + [NativeName(NativeNameType.Const, "GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV")] + public const int GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 0x86D9; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_S8_S8_8_8_NV")] + public const int GL_UNSIGNED_INT_S8_S8_8_8_NV = 0x86DA; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT_8_8_S8_S8_REV_NV")] + public const int GL_UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86DB; + + [NativeName(NativeNameType.Const, "GL_DSDT_MAG_INTENSITY_NV")] + public const int GL_DSDT_MAG_INTENSITY_NV = 0x86DC; + + [NativeName(NativeNameType.Const, "GL_SHADER_CONSISTENT_NV")] + public const int GL_SHADER_CONSISTENT_NV = 0x86DD; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_SHADER_NV")] + public const int GL_TEXTURE_SHADER_NV = 0x86DE; + + [NativeName(NativeNameType.Const, "GL_SHADER_OPERATION_NV")] + public const int GL_SHADER_OPERATION_NV = 0x86DF; + + [NativeName(NativeNameType.Const, "GL_CULL_MODES_NV")] + public const int GL_CULL_MODES_NV = 0x86E0; + + [NativeName(NativeNameType.Const, "GL_OFFSET_TEXTURE_MATRIX_NV")] + public const int GL_OFFSET_TEXTURE_MATRIX_NV = 0x86E1; + + [NativeName(NativeNameType.Const, "GL_OFFSET_TEXTURE_SCALE_NV")] + public const int GL_OFFSET_TEXTURE_SCALE_NV = 0x86E2; + + [NativeName(NativeNameType.Const, "GL_OFFSET_TEXTURE_BIAS_NV")] + public const int GL_OFFSET_TEXTURE_BIAS_NV = 0x86E3; + + [NativeName(NativeNameType.Const, "GL_OFFSET_TEXTURE_2D_MATRIX_NV")] + public const int GL_OFFSET_TEXTURE_2D_MATRIX_NV = 0x86E1; + + [NativeName(NativeNameType.Const, "GL_OFFSET_TEXTURE_2D_SCALE_NV")] + public const int GL_OFFSET_TEXTURE_2D_SCALE_NV = 0x86E2; + + [NativeName(NativeNameType.Const, "GL_OFFSET_TEXTURE_2D_BIAS_NV")] + public const int GL_OFFSET_TEXTURE_2D_BIAS_NV = 0x86E3; + + [NativeName(NativeNameType.Const, "GL_PREVIOUS_TEXTURE_INPUT_NV")] + public const int GL_PREVIOUS_TEXTURE_INPUT_NV = 0x86E4; + + [NativeName(NativeNameType.Const, "GL_CONST_EYE_NV")] + public const int GL_CONST_EYE_NV = 0x86E5; + + [NativeName(NativeNameType.Const, "GL_PASS_THROUGH_NV")] + public const int GL_PASS_THROUGH_NV = 0x86E6; + + [NativeName(NativeNameType.Const, "GL_CULL_FRAGMENT_NV")] + public const int GL_CULL_FRAGMENT_NV = 0x86E7; + + [NativeName(NativeNameType.Const, "GL_OFFSET_TEXTURE_2D_NV")] + public const int GL_OFFSET_TEXTURE_2D_NV = 0x86E8; + + [NativeName(NativeNameType.Const, "GL_DEPENDENT_AR_TEXTURE_2D_NV")] + public const int GL_DEPENDENT_AR_TEXTURE_2D_NV = 0x86E9; + + [NativeName(NativeNameType.Const, "GL_DEPENDENT_GB_TEXTURE_2D_NV")] + public const int GL_DEPENDENT_GB_TEXTURE_2D_NV = 0x86EA; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_NV")] + public const int GL_DOT_PRODUCT_NV = 0x86EC; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_DEPTH_REPLACE_NV")] + public const int GL_DOT_PRODUCT_DEPTH_REPLACE_NV = 0x86ED; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_TEXTURE_2D_NV")] + public const int GL_DOT_PRODUCT_TEXTURE_2D_NV = 0x86EE; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV")] + public const int GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = 0x86F0; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV")] + public const int GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = 0x86F1; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV")] + public const int GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV = 0x86F2; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV")] + public const int GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 0x86F3; + + [NativeName(NativeNameType.Const, "GL_HILO_NV")] + public const int GL_HILO_NV = 0x86F4; + + [NativeName(NativeNameType.Const, "GL_DSDT_NV")] + public const int GL_DSDT_NV = 0x86F5; + + [NativeName(NativeNameType.Const, "GL_DSDT_MAG_NV")] + public const int GL_DSDT_MAG_NV = 0x86F6; + + [NativeName(NativeNameType.Const, "GL_DSDT_MAG_VIB_NV")] + public const int GL_DSDT_MAG_VIB_NV = 0x86F7; + + [NativeName(NativeNameType.Const, "GL_HILO16_NV")] + public const int GL_HILO16_NV = 0x86F8; + + [NativeName(NativeNameType.Const, "GL_SIGNED_HILO_NV")] + public const int GL_SIGNED_HILO_NV = 0x86F9; + + [NativeName(NativeNameType.Const, "GL_SIGNED_HILO16_NV")] + public const int GL_SIGNED_HILO16_NV = 0x86FA; + + [NativeName(NativeNameType.Const, "GL_SIGNED_RGBA_NV")] + public const int GL_SIGNED_RGBA_NV = 0x86FB; + + [NativeName(NativeNameType.Const, "GL_SIGNED_RGBA8_NV")] + public const int GL_SIGNED_RGBA8_NV = 0x86FC; + + [NativeName(NativeNameType.Const, "GL_SIGNED_RGB_NV")] + public const int GL_SIGNED_RGB_NV = 0x86FE; + + [NativeName(NativeNameType.Const, "GL_SIGNED_RGB8_NV")] + public const int GL_SIGNED_RGB8_NV = 0x86FF; + + [NativeName(NativeNameType.Const, "GL_SIGNED_LUMINANCE_NV")] + public const int GL_SIGNED_LUMINANCE_NV = 0x8701; + + [NativeName(NativeNameType.Const, "GL_SIGNED_LUMINANCE8_NV")] + public const int GL_SIGNED_LUMINANCE8_NV = 0x8702; + + [NativeName(NativeNameType.Const, "GL_SIGNED_LUMINANCE_ALPHA_NV")] + public const int GL_SIGNED_LUMINANCE_ALPHA_NV = 0x8703; + + [NativeName(NativeNameType.Const, "GL_SIGNED_LUMINANCE8_ALPHA8_NV")] + public const int GL_SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704; + + [NativeName(NativeNameType.Const, "GL_SIGNED_ALPHA_NV")] + public const int GL_SIGNED_ALPHA_NV = 0x8705; + + [NativeName(NativeNameType.Const, "GL_SIGNED_ALPHA8_NV")] + public const int GL_SIGNED_ALPHA8_NV = 0x8706; + + [NativeName(NativeNameType.Const, "GL_SIGNED_INTENSITY_NV")] + public const int GL_SIGNED_INTENSITY_NV = 0x8707; + + [NativeName(NativeNameType.Const, "GL_SIGNED_INTENSITY8_NV")] + public const int GL_SIGNED_INTENSITY8_NV = 0x8708; + + [NativeName(NativeNameType.Const, "GL_DSDT8_NV")] + public const int GL_DSDT8_NV = 0x8709; + + [NativeName(NativeNameType.Const, "GL_DSDT8_MAG8_NV")] + public const int GL_DSDT8_MAG8_NV = 0x870A; + + [NativeName(NativeNameType.Const, "GL_DSDT8_MAG8_INTENSITY8_NV")] + public const int GL_DSDT8_MAG8_INTENSITY8_NV = 0x870B; + + [NativeName(NativeNameType.Const, "GL_SIGNED_RGB_UNSIGNED_ALPHA_NV")] + public const int GL_SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870C; + + [NativeName(NativeNameType.Const, "GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV")] + public const int GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870D; + + [NativeName(NativeNameType.Const, "GL_HI_SCALE_NV")] + public const int GL_HI_SCALE_NV = 0x870E; + + [NativeName(NativeNameType.Const, "GL_LO_SCALE_NV")] + public const int GL_LO_SCALE_NV = 0x870F; + + [NativeName(NativeNameType.Const, "GL_DS_SCALE_NV")] + public const int GL_DS_SCALE_NV = 0x8710; + + [NativeName(NativeNameType.Const, "GL_DT_SCALE_NV")] + public const int GL_DT_SCALE_NV = 0x8711; + + [NativeName(NativeNameType.Const, "GL_MAGNITUDE_SCALE_NV")] + public const int GL_MAGNITUDE_SCALE_NV = 0x8712; + + [NativeName(NativeNameType.Const, "GL_VIBRANCE_SCALE_NV")] + public const int GL_VIBRANCE_SCALE_NV = 0x8713; + + [NativeName(NativeNameType.Const, "GL_HI_BIAS_NV")] + public const int GL_HI_BIAS_NV = 0x8714; + + [NativeName(NativeNameType.Const, "GL_LO_BIAS_NV")] + public const int GL_LO_BIAS_NV = 0x8715; + + [NativeName(NativeNameType.Const, "GL_DS_BIAS_NV")] + public const int GL_DS_BIAS_NV = 0x8716; + + [NativeName(NativeNameType.Const, "GL_DT_BIAS_NV")] + public const int GL_DT_BIAS_NV = 0x8717; + + [NativeName(NativeNameType.Const, "GL_MAGNITUDE_BIAS_NV")] + public const int GL_MAGNITUDE_BIAS_NV = 0x8718; + + [NativeName(NativeNameType.Const, "GL_VIBRANCE_BIAS_NV")] + public const int GL_VIBRANCE_BIAS_NV = 0x8719; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BORDER_VALUES_NV")] + public const int GL_TEXTURE_BORDER_VALUES_NV = 0x871A; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_HI_SIZE_NV")] + public const int GL_TEXTURE_HI_SIZE_NV = 0x871B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LO_SIZE_NV")] + public const int GL_TEXTURE_LO_SIZE_NV = 0x871C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_DS_SIZE_NV")] + public const int GL_TEXTURE_DS_SIZE_NV = 0x871D; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_DT_SIZE_NV")] + public const int GL_TEXTURE_DT_SIZE_NV = 0x871E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MAG_SIZE_NV")] + public const int GL_TEXTURE_MAG_SIZE_NV = 0x871F; + + [NativeName(NativeNameType.Const, "GL_NV_texture_shader2")] + public const int GL_NV_TEXTURE_SHADER2 = 1; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_TEXTURE_3D_NV")] + public const int GL_DOT_PRODUCT_TEXTURE_3D_NV = 0x86EF; + + [NativeName(NativeNameType.Const, "GL_NV_texture_shader3")] + public const int GL_NV_TEXTURE_SHADER3 = 1; + + [NativeName(NativeNameType.Const, "GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV")] + public const int GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV = 0x8850; + + [NativeName(NativeNameType.Const, "GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV")] + public const int GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = 0x8851; + + [NativeName(NativeNameType.Const, "GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV")] + public const int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8852; + + [NativeName(NativeNameType.Const, "GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV")] + public const int GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = 0x8853; + + [NativeName(NativeNameType.Const, "GL_OFFSET_HILO_TEXTURE_2D_NV")] + public const int GL_OFFSET_HILO_TEXTURE_2D_NV = 0x8854; + + [NativeName(NativeNameType.Const, "GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV")] + public const int GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV = 0x8855; + + [NativeName(NativeNameType.Const, "GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV")] + public const int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = 0x8856; + + [NativeName(NativeNameType.Const, "GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV")] + public const int GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8857; + + [NativeName(NativeNameType.Const, "GL_DEPENDENT_HILO_TEXTURE_2D_NV")] + public const int GL_DEPENDENT_HILO_TEXTURE_2D_NV = 0x8858; + + [NativeName(NativeNameType.Const, "GL_DEPENDENT_RGB_TEXTURE_3D_NV")] + public const int GL_DEPENDENT_RGB_TEXTURE_3D_NV = 0x8859; + + [NativeName(NativeNameType.Const, "GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV")] + public const int GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = 0x885A; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_PASS_THROUGH_NV")] + public const int GL_DOT_PRODUCT_PASS_THROUGH_NV = 0x885B; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_TEXTURE_1D_NV")] + public const int GL_DOT_PRODUCT_TEXTURE_1D_NV = 0x885C; + + [NativeName(NativeNameType.Const, "GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV")] + public const int GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = 0x885D; + + [NativeName(NativeNameType.Const, "GL_HILO8_NV")] + public const int GL_HILO8_NV = 0x885E; + + [NativeName(NativeNameType.Const, "GL_SIGNED_HILO8_NV")] + public const int GL_SIGNED_HILO8_NV = 0x885F; + + [NativeName(NativeNameType.Const, "GL_FORCE_BLUE_TO_ONE_NV")] + public const int GL_FORCE_BLUE_TO_ONE_NV = 0x8860; + + [NativeName(NativeNameType.Const, "GL_NV_timeline_semaphore")] + public const int GL_NV_TIMELINE_SEMAPHORE = 1; + + [NativeName(NativeNameType.Const, "GL_TIMELINE_SEMAPHORE_VALUE_NV")] + public const int GL_TIMELINE_SEMAPHORE_VALUE_NV = 0x9595; + + [NativeName(NativeNameType.Const, "GL_SEMAPHORE_TYPE_NV")] + public const int GL_SEMAPHORE_TYPE_NV = 0x95B3; + + [NativeName(NativeNameType.Const, "GL_SEMAPHORE_TYPE_BINARY_NV")] + public const int GL_SEMAPHORE_TYPE_BINARY_NV = 0x95B4; + + [NativeName(NativeNameType.Const, "GL_SEMAPHORE_TYPE_TIMELINE_NV")] + public const int GL_SEMAPHORE_TYPE_TIMELINE_NV = 0x95B5; + + [NativeName(NativeNameType.Const, "GL_MAX_TIMELINE_SEMAPHORE_VALUE_DIFFERENCE_NV")] + public const int GL_MAX_TIMELINE_SEMAPHORE_VALUE_DIFFERENCE_NV = 0x95B6; + + [NativeName(NativeNameType.Const, "GL_NV_transform_feedback")] + public const int GL_NV_TRANSFORM_FEEDBACK = 1; + + [NativeName(NativeNameType.Const, "GL_BACK_PRIMARY_COLOR_NV")] + public const int GL_BACK_PRIMARY_COLOR_NV = 0x8C77; + + [NativeName(NativeNameType.Const, "GL_BACK_SECONDARY_COLOR_NV")] + public const int GL_BACK_SECONDARY_COLOR_NV = 0x8C78; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_NV")] + public const int GL_TEXTURE_COORD_NV = 0x8C79; + + [NativeName(NativeNameType.Const, "GL_CLIP_DISTANCE_NV")] + public const int GL_CLIP_DISTANCE_NV = 0x8C7A; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ID_NV")] + public const int GL_VERTEX_ID_NV = 0x8C7B; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVE_ID_NV")] + public const int GL_PRIMITIVE_ID_NV = 0x8C7C; + + [NativeName(NativeNameType.Const, "GL_GENERIC_ATTRIB_NV")] + public const int GL_GENERIC_ATTRIB_NV = 0x8C7D; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_ATTRIBS_NV")] + public const int GL_TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8C7E; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F; + + [NativeName(NativeNameType.Const, "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV")] + public const int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_VARYINGS_NV")] + public const int GL_ACTIVE_VARYINGS_NV = 0x8C81; + + [NativeName(NativeNameType.Const, "GL_ACTIVE_VARYING_MAX_LENGTH_NV")] + public const int GL_ACTIVE_VARYING_MAX_LENGTH_NV = 0x8C82; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_VARYINGS_NV")] + public const int GL_TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8C83; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_START_NV")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_RECORD_NV")] + public const int GL_TRANSFORM_FEEDBACK_RECORD_NV = 0x8C86; + + [NativeName(NativeNameType.Const, "GL_PRIMITIVES_GENERATED_NV")] + public const int GL_PRIMITIVES_GENERATED_NV = 0x8C87; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV")] + public const int GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88; + + [NativeName(NativeNameType.Const, "GL_RASTERIZER_DISCARD_NV")] + public const int GL_RASTERIZER_DISCARD_NV = 0x8C89; + + [NativeName(NativeNameType.Const, "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV")] + public const int GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV = 0x8C8A; + + [NativeName(NativeNameType.Const, "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV")] + public const int GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B; + + [NativeName(NativeNameType.Const, "GL_INTERLEAVED_ATTRIBS_NV")] + public const int GL_INTERLEAVED_ATTRIBS_NV = 0x8C8C; + + [NativeName(NativeNameType.Const, "GL_SEPARATE_ATTRIBS_NV")] + public const int GL_SEPARATE_ATTRIBS_NV = 0x8C8D; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_NV")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_NV = 0x8C8E; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F; + + [NativeName(NativeNameType.Const, "GL_LAYER_NV")] + public const int GL_LAYER_NV = 0x8DAA; + + [NativeName(NativeNameType.Const, "GL_NEXT_BUFFER_NV")] + public const int GL_NEXT_BUFFER_NV = -2; + + [NativeName(NativeNameType.Const, "GL_SKIP_COMPONENTS4_NV")] + public const int GL_SKIP_COMPONENTS4_NV = -3; + + [NativeName(NativeNameType.Const, "GL_SKIP_COMPONENTS3_NV")] + public const int GL_SKIP_COMPONENTS3_NV = -4; + + [NativeName(NativeNameType.Const, "GL_SKIP_COMPONENTS2_NV")] + public const int GL_SKIP_COMPONENTS2_NV = -5; + + [NativeName(NativeNameType.Const, "GL_SKIP_COMPONENTS1_NV")] + public const int GL_SKIP_COMPONENTS1_NV = -6; + + [NativeName(NativeNameType.Const, "GL_NV_transform_feedback2")] + public const int GL_NV_TRANSFORM_FEEDBACK2 = 1; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_NV")] + public const int GL_TRANSFORM_FEEDBACK_NV = 0x8E22; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = 0x8E23; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV")] + public const int GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = 0x8E24; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_FEEDBACK_BINDING_NV")] + public const int GL_TRANSFORM_FEEDBACK_BINDING_NV = 0x8E25; + + [NativeName(NativeNameType.Const, "GL_NV_uniform_buffer_std430_layout")] + public const int GL_NV_UNIFORM_BUFFER_STD430_LAYOUT = 1; + + [NativeName(NativeNameType.Const, "GL_NV_uniform_buffer_unified_memory")] + public const int GL_NV_UNIFORM_BUFFER_UNIFIED_MEMORY = 1; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BUFFER_UNIFIED_NV")] + public const int GL_UNIFORM_BUFFER_UNIFIED_NV = 0x936E; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BUFFER_ADDRESS_NV")] + public const int GL_UNIFORM_BUFFER_ADDRESS_NV = 0x936F; + + [NativeName(NativeNameType.Const, "GL_UNIFORM_BUFFER_LENGTH_NV")] + public const int GL_UNIFORM_BUFFER_LENGTH_NV = 0x9370; + + [NativeName(NativeNameType.Const, "GL_NV_vdpau_interop")] + public const int GL_NV_VDPAU_INTEROP = 1; + + [NativeName(NativeNameType.Const, "GL_SURFACE_STATE_NV")] + public const int GL_SURFACE_STATE_NV = 0x86EB; + + [NativeName(NativeNameType.Const, "GL_SURFACE_REGISTERED_NV")] + public const int GL_SURFACE_REGISTERED_NV = 0x86FD; + + [NativeName(NativeNameType.Const, "GL_SURFACE_MAPPED_NV")] + public const int GL_SURFACE_MAPPED_NV = 0x8700; + + [NativeName(NativeNameType.Const, "GL_WRITE_DISCARD_NV")] + public const int GL_WRITE_DISCARD_NV = 0x88BE; + + [NativeName(NativeNameType.Const, "GL_NV_vdpau_interop2")] + public const int GL_NV_VDPAU_INTEROP2 = 1; + + [NativeName(NativeNameType.Const, "GL_NV_vertex_array_range")] + public const int GL_NV_VERTEX_ARRAY_RANGE = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_RANGE_NV")] + public const int GL_VERTEX_ARRAY_RANGE_NV = 0x851D; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_RANGE_LENGTH_NV")] + public const int GL_VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851E; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_RANGE_VALID_NV")] + public const int GL_VERTEX_ARRAY_RANGE_VALID_NV = 0x851F; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV")] + public const int GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_RANGE_POINTER_NV")] + public const int GL_VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521; + + [NativeName(NativeNameType.Const, "GL_NV_vertex_array_range2")] + public const int GL_NV_VERTEX_ARRAY_RANGE2 = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV")] + public const int GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV = 0x8533; + + [NativeName(NativeNameType.Const, "GL_NV_vertex_attrib_integer_64bit")] + public const int GL_NV_VERTEX_ATTRIB_INTEGER_64BIT = 1; + + [NativeName(NativeNameType.Const, "GL_NV_vertex_buffer_unified_memory")] + public const int GL_NV_VERTEX_BUFFER_UNIFIED_MEMORY = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV = 0x8F1E; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_UNIFIED_NV")] + public const int GL_ELEMENT_ARRAY_UNIFIED_NV = 0x8F1F; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV = 0x8F20; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_ADDRESS_NV")] + public const int GL_VERTEX_ARRAY_ADDRESS_NV = 0x8F21; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_ADDRESS_NV")] + public const int GL_NORMAL_ARRAY_ADDRESS_NV = 0x8F22; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_ADDRESS_NV")] + public const int GL_COLOR_ARRAY_ADDRESS_NV = 0x8F23; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_ADDRESS_NV")] + public const int GL_INDEX_ARRAY_ADDRESS_NV = 0x8F24; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_ADDRESS_NV")] + public const int GL_TEXTURE_COORD_ARRAY_ADDRESS_NV = 0x8F25; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_ADDRESS_NV")] + public const int GL_EDGE_FLAG_ARRAY_ADDRESS_NV = 0x8F26; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV")] + public const int GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV = 0x8F27; + + [NativeName(NativeNameType.Const, "GL_FOG_COORD_ARRAY_ADDRESS_NV")] + public const int GL_FOG_COORD_ARRAY_ADDRESS_NV = 0x8F28; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_ADDRESS_NV")] + public const int GL_ELEMENT_ARRAY_ADDRESS_NV = 0x8F29; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV = 0x8F2A; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_LENGTH_NV")] + public const int GL_VERTEX_ARRAY_LENGTH_NV = 0x8F2B; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_LENGTH_NV")] + public const int GL_NORMAL_ARRAY_LENGTH_NV = 0x8F2C; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_LENGTH_NV")] + public const int GL_COLOR_ARRAY_LENGTH_NV = 0x8F2D; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_LENGTH_NV")] + public const int GL_INDEX_ARRAY_LENGTH_NV = 0x8F2E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_LENGTH_NV")] + public const int GL_TEXTURE_COORD_ARRAY_LENGTH_NV = 0x8F2F; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_LENGTH_NV")] + public const int GL_EDGE_FLAG_ARRAY_LENGTH_NV = 0x8F30; + + [NativeName(NativeNameType.Const, "GL_SECONDARY_COLOR_ARRAY_LENGTH_NV")] + public const int GL_SECONDARY_COLOR_ARRAY_LENGTH_NV = 0x8F31; + + [NativeName(NativeNameType.Const, "GL_FOG_COORD_ARRAY_LENGTH_NV")] + public const int GL_FOG_COORD_ARRAY_LENGTH_NV = 0x8F32; + + [NativeName(NativeNameType.Const, "GL_ELEMENT_ARRAY_LENGTH_NV")] + public const int GL_ELEMENT_ARRAY_LENGTH_NV = 0x8F33; + + [NativeName(NativeNameType.Const, "GL_DRAW_INDIRECT_UNIFIED_NV")] + public const int GL_DRAW_INDIRECT_UNIFIED_NV = 0x8F40; + + [NativeName(NativeNameType.Const, "GL_DRAW_INDIRECT_ADDRESS_NV")] + public const int GL_DRAW_INDIRECT_ADDRESS_NV = 0x8F41; + + [NativeName(NativeNameType.Const, "GL_DRAW_INDIRECT_LENGTH_NV")] + public const int GL_DRAW_INDIRECT_LENGTH_NV = 0x8F42; + + [NativeName(NativeNameType.Const, "GL_NV_vertex_program")] + public const int GL_NV_VERTEX_PROGRAM = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PROGRAM_NV")] + public const int GL_VERTEX_PROGRAM_NV = 0x8620; + + [NativeName(NativeNameType.Const, "GL_VERTEX_STATE_PROGRAM_NV")] + public const int GL_VERTEX_STATE_PROGRAM_NV = 0x8621; + + [NativeName(NativeNameType.Const, "GL_ATTRIB_ARRAY_SIZE_NV")] + public const int GL_ATTRIB_ARRAY_SIZE_NV = 0x8623; + + [NativeName(NativeNameType.Const, "GL_ATTRIB_ARRAY_STRIDE_NV")] + public const int GL_ATTRIB_ARRAY_STRIDE_NV = 0x8624; + + [NativeName(NativeNameType.Const, "GL_ATTRIB_ARRAY_TYPE_NV")] + public const int GL_ATTRIB_ARRAY_TYPE_NV = 0x8625; + + [NativeName(NativeNameType.Const, "GL_CURRENT_ATTRIB_NV")] + public const int GL_CURRENT_ATTRIB_NV = 0x8626; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_LENGTH_NV")] + public const int GL_PROGRAM_LENGTH_NV = 0x8627; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_STRING_NV")] + public const int GL_PROGRAM_STRING_NV = 0x8628; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW_PROJECTION_NV")] + public const int GL_MODELVIEW_PROJECTION_NV = 0x8629; + + [NativeName(NativeNameType.Const, "GL_IDENTITY_NV")] + public const int GL_IDENTITY_NV = 0x862A; + + [NativeName(NativeNameType.Const, "GL_INVERSE_NV")] + public const int GL_INVERSE_NV = 0x862B; + + [NativeName(NativeNameType.Const, "GL_TRANSPOSE_NV")] + public const int GL_TRANSPOSE_NV = 0x862C; + + [NativeName(NativeNameType.Const, "GL_INVERSE_TRANSPOSE_NV")] + public const int GL_INVERSE_TRANSPOSE_NV = 0x862D; + + [NativeName(NativeNameType.Const, "GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV")] + public const int GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV = 0x862E; + + [NativeName(NativeNameType.Const, "GL_MAX_TRACK_MATRICES_NV")] + public const int GL_MAX_TRACK_MATRICES_NV = 0x862F; + + [NativeName(NativeNameType.Const, "GL_MATRIX0_NV")] + public const int GL_MATRIX0_NV = 0x8630; + + [NativeName(NativeNameType.Const, "GL_MATRIX1_NV")] + public const int GL_MATRIX1_NV = 0x8631; + + [NativeName(NativeNameType.Const, "GL_MATRIX2_NV")] + public const int GL_MATRIX2_NV = 0x8632; + + [NativeName(NativeNameType.Const, "GL_MATRIX3_NV")] + public const int GL_MATRIX3_NV = 0x8633; + + [NativeName(NativeNameType.Const, "GL_MATRIX4_NV")] + public const int GL_MATRIX4_NV = 0x8634; + + [NativeName(NativeNameType.Const, "GL_MATRIX5_NV")] + public const int GL_MATRIX5_NV = 0x8635; + + [NativeName(NativeNameType.Const, "GL_MATRIX6_NV")] + public const int GL_MATRIX6_NV = 0x8636; + + [NativeName(NativeNameType.Const, "GL_MATRIX7_NV")] + public const int GL_MATRIX7_NV = 0x8637; + + [NativeName(NativeNameType.Const, "GL_CURRENT_MATRIX_STACK_DEPTH_NV")] + public const int GL_CURRENT_MATRIX_STACK_DEPTH_NV = 0x8640; + + [NativeName(NativeNameType.Const, "GL_CURRENT_MATRIX_NV")] + public const int GL_CURRENT_MATRIX_NV = 0x8641; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PROGRAM_POINT_SIZE_NV")] + public const int GL_VERTEX_PROGRAM_POINT_SIZE_NV = 0x8642; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PROGRAM_TWO_SIDE_NV")] + public const int GL_VERTEX_PROGRAM_TWO_SIDE_NV = 0x8643; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_PARAMETER_NV")] + public const int GL_PROGRAM_PARAMETER_NV = 0x8644; + + [NativeName(NativeNameType.Const, "GL_ATTRIB_ARRAY_POINTER_NV")] + public const int GL_ATTRIB_ARRAY_POINTER_NV = 0x8645; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_TARGET_NV")] + public const int GL_PROGRAM_TARGET_NV = 0x8646; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_RESIDENT_NV")] + public const int GL_PROGRAM_RESIDENT_NV = 0x8647; + + [NativeName(NativeNameType.Const, "GL_TRACK_MATRIX_NV")] + public const int GL_TRACK_MATRIX_NV = 0x8648; + + [NativeName(NativeNameType.Const, "GL_TRACK_MATRIX_TRANSFORM_NV")] + public const int GL_TRACK_MATRIX_TRANSFORM_NV = 0x8649; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PROGRAM_BINDING_NV")] + public const int GL_VERTEX_PROGRAM_BINDING_NV = 0x864A; + + [NativeName(NativeNameType.Const, "GL_PROGRAM_ERROR_POSITION_NV")] + public const int GL_PROGRAM_ERROR_POSITION_NV = 0x864B; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY0_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY0_NV = 0x8650; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY1_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY1_NV = 0x8651; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY2_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY2_NV = 0x8652; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY3_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY3_NV = 0x8653; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY4_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY4_NV = 0x8654; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY5_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY5_NV = 0x8655; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY6_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY6_NV = 0x8656; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY7_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY7_NV = 0x8657; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY8_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY8_NV = 0x8658; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY9_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY9_NV = 0x8659; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY10_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY10_NV = 0x865A; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY11_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY11_NV = 0x865B; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY12_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY12_NV = 0x865C; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY13_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY13_NV = 0x865D; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY14_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY14_NV = 0x865E; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY15_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY15_NV = 0x865F; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB0_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB0_4_NV = 0x8660; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB1_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB1_4_NV = 0x8661; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB2_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB2_4_NV = 0x8662; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB3_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB3_4_NV = 0x8663; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB4_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB4_4_NV = 0x8664; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB5_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB5_4_NV = 0x8665; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB6_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB6_4_NV = 0x8666; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB7_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB7_4_NV = 0x8667; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB8_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB8_4_NV = 0x8668; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB9_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB9_4_NV = 0x8669; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB10_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB10_4_NV = 0x866A; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB11_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB11_4_NV = 0x866B; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB12_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB12_4_NV = 0x866C; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB13_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB13_4_NV = 0x866D; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB14_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB14_4_NV = 0x866E; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_ATTRIB15_4_NV")] + public const int GL_MAP1_VERTEX_ATTRIB15_4_NV = 0x866F; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB0_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB0_4_NV = 0x8670; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB1_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB1_4_NV = 0x8671; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB2_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB2_4_NV = 0x8672; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB3_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB3_4_NV = 0x8673; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB4_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB4_4_NV = 0x8674; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB5_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB5_4_NV = 0x8675; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB6_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB6_4_NV = 0x8676; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB7_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB7_4_NV = 0x8677; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB8_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB8_4_NV = 0x8678; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB9_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB9_4_NV = 0x8679; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB10_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB10_4_NV = 0x867A; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB11_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB11_4_NV = 0x867B; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB12_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB12_4_NV = 0x867C; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB13_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB13_4_NV = 0x867D; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB14_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB14_4_NV = 0x867E; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_ATTRIB15_4_NV")] + public const int GL_MAP2_VERTEX_ATTRIB15_4_NV = 0x867F; + + [NativeName(NativeNameType.Const, "GL_NV_vertex_program1_1")] + public const int GL_NV_VERTEX_PROGRAM1_1 = 1; + + [NativeName(NativeNameType.Const, "GL_NV_vertex_program2")] + public const int GL_NV_VERTEX_PROGRAM2 = 1; + + [NativeName(NativeNameType.Const, "GL_NV_vertex_program2_option")] + public const int GL_NV_VERTEX_PROGRAM2_OPTION = 1; + + [NativeName(NativeNameType.Const, "GL_NV_vertex_program3")] + public const int GL_NV_VERTEX_PROGRAM3 = 1; + + [NativeName(NativeNameType.Const, "GL_NV_vertex_program4")] + public const int GL_NV_VERTEX_PROGRAM4 = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV")] + public const int GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV = 0x88FD; + + [NativeName(NativeNameType.Const, "GL_NV_video_capture")] + public const int GL_NV_VIDEO_CAPTURE = 1; + + [NativeName(NativeNameType.Const, "GL_VIDEO_BUFFER_NV")] + public const int GL_VIDEO_BUFFER_NV = 0x9020; + + [NativeName(NativeNameType.Const, "GL_VIDEO_BUFFER_BINDING_NV")] + public const int GL_VIDEO_BUFFER_BINDING_NV = 0x9021; + + [NativeName(NativeNameType.Const, "GL_FIELD_UPPER_NV")] + public const int GL_FIELD_UPPER_NV = 0x9022; + + [NativeName(NativeNameType.Const, "GL_FIELD_LOWER_NV")] + public const int GL_FIELD_LOWER_NV = 0x9023; + + [NativeName(NativeNameType.Const, "GL_NUM_VIDEO_CAPTURE_STREAMS_NV")] + public const int GL_NUM_VIDEO_CAPTURE_STREAMS_NV = 0x9024; + + [NativeName(NativeNameType.Const, "GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV")] + public const int GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = 0x9025; + + [NativeName(NativeNameType.Const, "GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV")] + public const int GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV = 0x9026; + + [NativeName(NativeNameType.Const, "GL_LAST_VIDEO_CAPTURE_STATUS_NV")] + public const int GL_LAST_VIDEO_CAPTURE_STATUS_NV = 0x9027; + + [NativeName(NativeNameType.Const, "GL_VIDEO_BUFFER_PITCH_NV")] + public const int GL_VIDEO_BUFFER_PITCH_NV = 0x9028; + + [NativeName(NativeNameType.Const, "GL_VIDEO_COLOR_CONVERSION_MATRIX_NV")] + public const int GL_VIDEO_COLOR_CONVERSION_MATRIX_NV = 0x9029; + + [NativeName(NativeNameType.Const, "GL_VIDEO_COLOR_CONVERSION_MAX_NV")] + public const int GL_VIDEO_COLOR_CONVERSION_MAX_NV = 0x902A; + + [NativeName(NativeNameType.Const, "GL_VIDEO_COLOR_CONVERSION_MIN_NV")] + public const int GL_VIDEO_COLOR_CONVERSION_MIN_NV = 0x902B; + + [NativeName(NativeNameType.Const, "GL_VIDEO_COLOR_CONVERSION_OFFSET_NV")] + public const int GL_VIDEO_COLOR_CONVERSION_OFFSET_NV = 0x902C; + + [NativeName(NativeNameType.Const, "GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV")] + public const int GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV = 0x902D; + + [NativeName(NativeNameType.Const, "GL_PARTIAL_SUCCESS_NV")] + public const int GL_PARTIAL_SUCCESS_NV = 0x902E; + + [NativeName(NativeNameType.Const, "GL_SUCCESS_NV")] + public const int GL_SUCCESS_NV = 0x902F; + + [NativeName(NativeNameType.Const, "GL_FAILURE_NV")] + public const int GL_FAILURE_NV = 0x9030; + + [NativeName(NativeNameType.Const, "GL_YCBYCR8_422_NV")] + public const int GL_YCBYCR8_422_NV = 0x9031; + + [NativeName(NativeNameType.Const, "GL_YCBAYCR8A_4224_NV")] + public const int GL_YCBAYCR8A_4224_NV = 0x9032; + + [NativeName(NativeNameType.Const, "GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV")] + public const int GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV = 0x9033; + + [NativeName(NativeNameType.Const, "GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV")] + public const int GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = 0x9034; + + [NativeName(NativeNameType.Const, "GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV")] + public const int GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV = 0x9035; + + [NativeName(NativeNameType.Const, "GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV")] + public const int GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = 0x9036; + + [NativeName(NativeNameType.Const, "GL_Z4Y12Z4CB12Z4CR12_444_NV")] + public const int GL_Z4Y12Z4CB12Z4CR12_444_NV = 0x9037; + + [NativeName(NativeNameType.Const, "GL_VIDEO_CAPTURE_FRAME_WIDTH_NV")] + public const int GL_VIDEO_CAPTURE_FRAME_WIDTH_NV = 0x9038; + + [NativeName(NativeNameType.Const, "GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV")] + public const int GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV = 0x9039; + + [NativeName(NativeNameType.Const, "GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV")] + public const int GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = 0x903A; + + [NativeName(NativeNameType.Const, "GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV")] + public const int GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = 0x903B; + + [NativeName(NativeNameType.Const, "GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV")] + public const int GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV = 0x903C; + + [NativeName(NativeNameType.Const, "GL_NV_viewport_array2")] + public const int GL_NV_VIEWPORT_ARRAY2 = 1; + + [NativeName(NativeNameType.Const, "GL_NV_viewport_swizzle")] + public const int GL_NV_VIEWPORT_SWIZZLE = 1; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV")] + public const int GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV = 0x9350; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV")] + public const int GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV = 0x9351; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV")] + public const int GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV = 0x9352; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV")] + public const int GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV = 0x9353; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV")] + public const int GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV = 0x9354; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV")] + public const int GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV = 0x9355; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV")] + public const int GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV = 0x9356; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV")] + public const int GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV = 0x9357; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_X_NV")] + public const int GL_VIEWPORT_SWIZZLE_X_NV = 0x9358; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_Y_NV")] + public const int GL_VIEWPORT_SWIZZLE_Y_NV = 0x9359; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_Z_NV")] + public const int GL_VIEWPORT_SWIZZLE_Z_NV = 0x935A; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_SWIZZLE_W_NV")] + public const int GL_VIEWPORT_SWIZZLE_W_NV = 0x935B; + + [NativeName(NativeNameType.Const, "GL_OML_interlace")] + public const int GL_OML_INTERLACE = 1; + + [NativeName(NativeNameType.Const, "GL_INTERLACE_OML")] + public const int GL_INTERLACE_OML = 0x8980; + + [NativeName(NativeNameType.Const, "GL_INTERLACE_READ_OML")] + public const int GL_INTERLACE_READ_OML = 0x8981; + + [NativeName(NativeNameType.Const, "GL_OML_resample")] + public const int GL_OML_RESAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_PACK_RESAMPLE_OML")] + public const int GL_PACK_RESAMPLE_OML = 0x8984; + + [NativeName(NativeNameType.Const, "GL_UNPACK_RESAMPLE_OML")] + public const int GL_UNPACK_RESAMPLE_OML = 0x8985; + + [NativeName(NativeNameType.Const, "GL_RESAMPLE_REPLICATE_OML")] + public const int GL_RESAMPLE_REPLICATE_OML = 0x8986; + + [NativeName(NativeNameType.Const, "GL_RESAMPLE_ZERO_FILL_OML")] + public const int GL_RESAMPLE_ZERO_FILL_OML = 0x8987; + + [NativeName(NativeNameType.Const, "GL_RESAMPLE_AVERAGE_OML")] + public const int GL_RESAMPLE_AVERAGE_OML = 0x8988; + + [NativeName(NativeNameType.Const, "GL_RESAMPLE_DECIMATE_OML")] + public const int GL_RESAMPLE_DECIMATE_OML = 0x8989; + + [NativeName(NativeNameType.Const, "GL_OML_subsample")] + public const int GL_OML_SUBSAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_FORMAT_SUBSAMPLE_24_24_OML")] + public const int GL_FORMAT_SUBSAMPLE_24_24_OML = 0x8982; + + [NativeName(NativeNameType.Const, "GL_FORMAT_SUBSAMPLE_244_244_OML")] + public const int GL_FORMAT_SUBSAMPLE_244_244_OML = 0x8983; + + [NativeName(NativeNameType.Const, "GL_OVR_multiview")] + public const int GL_OVR_MULTIVIEW = 1; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR")] + public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR = 0x9630; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR")] + public const int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR = 0x9632; + + [NativeName(NativeNameType.Const, "GL_MAX_VIEWS_OVR")] + public const int GL_MAX_VIEWS_OVR = 0x9631; + + [NativeName(NativeNameType.Const, "GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR")] + public const int GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR = 0x9633; + + [NativeName(NativeNameType.Const, "GL_OVR_multiview2")] + public const int GL_OVR_MULTIVIEW2 = 1; + + [NativeName(NativeNameType.Const, "GL_PGI_misc_hints")] + public const int GL_PGI_MISC_HINTS = 1; + + [NativeName(NativeNameType.Const, "GL_PREFER_DOUBLEBUFFER_HINT_PGI")] + public const int GL_PREFER_DOUBLEBUFFER_HINT_PGI = 0x1A1F8; + + [NativeName(NativeNameType.Const, "GL_CONSERVE_MEMORY_HINT_PGI")] + public const int GL_CONSERVE_MEMORY_HINT_PGI = 0x1A1FD; + + [NativeName(NativeNameType.Const, "GL_RECLAIM_MEMORY_HINT_PGI")] + public const int GL_RECLAIM_MEMORY_HINT_PGI = 0x1A1FE; + + [NativeName(NativeNameType.Const, "GL_NATIVE_GRAPHICS_HANDLE_PGI")] + public const int GL_NATIVE_GRAPHICS_HANDLE_PGI = 0x1A202; + + [NativeName(NativeNameType.Const, "GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI")] + public const int GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI = 0x1A203; + + [NativeName(NativeNameType.Const, "GL_NATIVE_GRAPHICS_END_HINT_PGI")] + public const int GL_NATIVE_GRAPHICS_END_HINT_PGI = 0x1A204; + + [NativeName(NativeNameType.Const, "GL_ALWAYS_FAST_HINT_PGI")] + public const int GL_ALWAYS_FAST_HINT_PGI = 0x1A20C; + + [NativeName(NativeNameType.Const, "GL_ALWAYS_SOFT_HINT_PGI")] + public const int GL_ALWAYS_SOFT_HINT_PGI = 0x1A20D; + + [NativeName(NativeNameType.Const, "GL_ALLOW_DRAW_OBJ_HINT_PGI")] + public const int GL_ALLOW_DRAW_OBJ_HINT_PGI = 0x1A20E; + + [NativeName(NativeNameType.Const, "GL_ALLOW_DRAW_WIN_HINT_PGI")] + public const int GL_ALLOW_DRAW_WIN_HINT_PGI = 0x1A20F; + + [NativeName(NativeNameType.Const, "GL_ALLOW_DRAW_FRG_HINT_PGI")] + public const int GL_ALLOW_DRAW_FRG_HINT_PGI = 0x1A210; + + [NativeName(NativeNameType.Const, "GL_ALLOW_DRAW_MEM_HINT_PGI")] + public const int GL_ALLOW_DRAW_MEM_HINT_PGI = 0x1A211; + + [NativeName(NativeNameType.Const, "GL_STRICT_DEPTHFUNC_HINT_PGI")] + public const int GL_STRICT_DEPTHFUNC_HINT_PGI = 0x1A216; + + [NativeName(NativeNameType.Const, "GL_STRICT_LIGHTING_HINT_PGI")] + public const int GL_STRICT_LIGHTING_HINT_PGI = 0x1A217; + + [NativeName(NativeNameType.Const, "GL_STRICT_SCISSOR_HINT_PGI")] + public const int GL_STRICT_SCISSOR_HINT_PGI = 0x1A218; + + [NativeName(NativeNameType.Const, "GL_FULL_STIPPLE_HINT_PGI")] + public const int GL_FULL_STIPPLE_HINT_PGI = 0x1A219; + + [NativeName(NativeNameType.Const, "GL_CLIP_NEAR_HINT_PGI")] + public const int GL_CLIP_NEAR_HINT_PGI = 0x1A220; + + [NativeName(NativeNameType.Const, "GL_CLIP_FAR_HINT_PGI")] + public const int GL_CLIP_FAR_HINT_PGI = 0x1A221; + + [NativeName(NativeNameType.Const, "GL_WIDE_LINE_HINT_PGI")] + public const int GL_WIDE_LINE_HINT_PGI = 0x1A222; + + [NativeName(NativeNameType.Const, "GL_BACK_NORMALS_HINT_PGI")] + public const int GL_BACK_NORMALS_HINT_PGI = 0x1A223; + + [NativeName(NativeNameType.Const, "GL_PGI_vertex_hints")] + public const int GL_PGI_VERTEX_HINTS = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_DATA_HINT_PGI")] + public const int GL_VERTEX_DATA_HINT_PGI = 0x1A22A; + + [NativeName(NativeNameType.Const, "GL_VERTEX_CONSISTENT_HINT_PGI")] + public const int GL_VERTEX_CONSISTENT_HINT_PGI = 0x1A22B; + + [NativeName(NativeNameType.Const, "GL_MATERIAL_SIDE_HINT_PGI")] + public const int GL_MATERIAL_SIDE_HINT_PGI = 0x1A22C; + + [NativeName(NativeNameType.Const, "GL_MAX_VERTEX_HINT_PGI")] + public const int GL_MAX_VERTEX_HINT_PGI = 0x1A22D; + + [NativeName(NativeNameType.Const, "GL_COLOR3_BIT_PGI")] + public const int GL_COLOR3_BIT_PGI = 0x00010000; + + [NativeName(NativeNameType.Const, "GL_COLOR4_BIT_PGI")] + public const int GL_COLOR4_BIT_PGI = 0x00020000; + + [NativeName(NativeNameType.Const, "GL_EDGEFLAG_BIT_PGI")] + public const int GL_EDGEFLAG_BIT_PGI = 0x00040000; + + [NativeName(NativeNameType.Const, "GL_INDEX_BIT_PGI")] + public const int GL_INDEX_BIT_PGI = 0x00080000; + + [NativeName(NativeNameType.Const, "GL_MAT_AMBIENT_BIT_PGI")] + public const int GL_MAT_AMBIENT_BIT_PGI = 0x00100000; + + [NativeName(NativeNameType.Const, "GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI")] + public const int GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI = 0x00200000; + + [NativeName(NativeNameType.Const, "GL_MAT_DIFFUSE_BIT_PGI")] + public const int GL_MAT_DIFFUSE_BIT_PGI = 0x00400000; + + [NativeName(NativeNameType.Const, "GL_MAT_EMISSION_BIT_PGI")] + public const int GL_MAT_EMISSION_BIT_PGI = 0x00800000; + + [NativeName(NativeNameType.Const, "GL_MAT_COLOR_INDEXES_BIT_PGI")] + public const int GL_MAT_COLOR_INDEXES_BIT_PGI = 0x01000000; + + [NativeName(NativeNameType.Const, "GL_MAT_SHININESS_BIT_PGI")] + public const int GL_MAT_SHININESS_BIT_PGI = 0x02000000; + + [NativeName(NativeNameType.Const, "GL_MAT_SPECULAR_BIT_PGI")] + public const int GL_MAT_SPECULAR_BIT_PGI = 0x04000000; + + [NativeName(NativeNameType.Const, "GL_NORMAL_BIT_PGI")] + public const int GL_NORMAL_BIT_PGI = 0x08000000; + + [NativeName(NativeNameType.Const, "GL_TEXCOORD1_BIT_PGI")] + public const int GL_TEXCOORD1_BIT_PGI = 0x10000000; + + [NativeName(NativeNameType.Const, "GL_TEXCOORD2_BIT_PGI")] + public const int GL_TEXCOORD2_BIT_PGI = 0x20000000; + + [NativeName(NativeNameType.Const, "GL_TEXCOORD3_BIT_PGI")] + public const int GL_TEXCOORD3_BIT_PGI = 0x40000000; + + [NativeName(NativeNameType.Const, "GL_TEXCOORD4_BIT_PGI")] + public const uint GL_TEXCOORD4_BIT_PGI = 0x80000000; + + [NativeName(NativeNameType.Const, "GL_VERTEX23_BIT_PGI")] + public const int GL_VERTEX23_BIT_PGI = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_VERTEX4_BIT_PGI")] + public const int GL_VERTEX4_BIT_PGI = 0x00000008; + + [NativeName(NativeNameType.Const, "GL_REND_screen_coordinates")] + public const int GL_REND_SCREEN_COORDINATES = 1; + + [NativeName(NativeNameType.Const, "GL_SCREEN_COORDINATES_REND")] + public const int GL_SCREEN_COORDINATES_REND = 0x8490; + + [NativeName(NativeNameType.Const, "GL_INVERTED_SCREEN_W_REND")] + public const int GL_INVERTED_SCREEN_W_REND = 0x8491; + + [NativeName(NativeNameType.Const, "GL_S3_s3tc")] + public const int GL_S3_S3TC = 1; + + [NativeName(NativeNameType.Const, "GL_RGB_S3TC")] + public const int GL_RGB_S3TC = 0x83A0; + + [NativeName(NativeNameType.Const, "GL_RGB4_S3TC")] + public const int GL_RGB4_S3TC = 0x83A1; + + [NativeName(NativeNameType.Const, "GL_RGBA_S3TC")] + public const int GL_RGBA_S3TC = 0x83A2; + + [NativeName(NativeNameType.Const, "GL_RGBA4_S3TC")] + public const int GL_RGBA4_S3TC = 0x83A3; + + [NativeName(NativeNameType.Const, "GL_RGBA_DXT5_S3TC")] + public const int GL_RGBA_DXT5_S3TC = 0x83A4; + + [NativeName(NativeNameType.Const, "GL_RGBA4_DXT5_S3TC")] + public const int GL_RGBA4_DXT5_S3TC = 0x83A5; + + [NativeName(NativeNameType.Const, "GL_SGIS_detail_texture")] + public const int GL_SGIS_DETAIL_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_DETAIL_TEXTURE_2D_SGIS")] + public const int GL_DETAIL_TEXTURE_2D_SGIS = 0x8095; + + [NativeName(NativeNameType.Const, "GL_DETAIL_TEXTURE_2D_BINDING_SGIS")] + public const int GL_DETAIL_TEXTURE_2D_BINDING_SGIS = 0x8096; + + [NativeName(NativeNameType.Const, "GL_LINEAR_DETAIL_SGIS")] + public const int GL_LINEAR_DETAIL_SGIS = 0x8097; + + [NativeName(NativeNameType.Const, "GL_LINEAR_DETAIL_ALPHA_SGIS")] + public const int GL_LINEAR_DETAIL_ALPHA_SGIS = 0x8098; + + [NativeName(NativeNameType.Const, "GL_LINEAR_DETAIL_COLOR_SGIS")] + public const int GL_LINEAR_DETAIL_COLOR_SGIS = 0x8099; + + [NativeName(NativeNameType.Const, "GL_DETAIL_TEXTURE_LEVEL_SGIS")] + public const int GL_DETAIL_TEXTURE_LEVEL_SGIS = 0x809A; + + [NativeName(NativeNameType.Const, "GL_DETAIL_TEXTURE_MODE_SGIS")] + public const int GL_DETAIL_TEXTURE_MODE_SGIS = 0x809B; + + [NativeName(NativeNameType.Const, "GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS")] + public const int GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS = 0x809C; + + [NativeName(NativeNameType.Const, "GL_SGIS_fog_function")] + public const int GL_SGIS_FOG_FUNCTION = 1; + + [NativeName(NativeNameType.Const, "GL_FOG_FUNC_SGIS")] + public const int GL_FOG_FUNC_SGIS = 0x812A; + + [NativeName(NativeNameType.Const, "GL_FOG_FUNC_POINTS_SGIS")] + public const int GL_FOG_FUNC_POINTS_SGIS = 0x812B; + + [NativeName(NativeNameType.Const, "GL_MAX_FOG_FUNC_POINTS_SGIS")] + public const int GL_MAX_FOG_FUNC_POINTS_SGIS = 0x812C; + + [NativeName(NativeNameType.Const, "GL_SGIS_generate_mipmap")] + public const int GL_SGIS_GENERATE_MIPMAP = 1; + + [NativeName(NativeNameType.Const, "GL_GENERATE_MIPMAP_SGIS")] + public const int GL_GENERATE_MIPMAP_SGIS = 0x8191; + + [NativeName(NativeNameType.Const, "GL_GENERATE_MIPMAP_HINT_SGIS")] + public const int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192; + + [NativeName(NativeNameType.Const, "GL_SGIS_multisample")] + public const int GL_SGIS_MULTISAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_MULTISAMPLE_SGIS")] + public const int GL_MULTISAMPLE_SGIS = 0x809D; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_ALPHA_TO_MASK_SGIS")] + public const int GL_SAMPLE_ALPHA_TO_MASK_SGIS = 0x809E; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_ALPHA_TO_ONE_SGIS")] + public const int GL_SAMPLE_ALPHA_TO_ONE_SGIS = 0x809F; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_MASK_SGIS")] + public const int GL_SAMPLE_MASK_SGIS = 0x80A0; + + [NativeName(NativeNameType.Const, "GL_1PASS_SGIS")] + public const int GL_1PASS_SGIS = 0x80A1; + + [NativeName(NativeNameType.Const, "GL_2PASS_0_SGIS")] + public const int GL_2PASS_0_SGIS = 0x80A2; + + [NativeName(NativeNameType.Const, "GL_2PASS_1_SGIS")] + public const int GL_2PASS_1_SGIS = 0x80A3; + + [NativeName(NativeNameType.Const, "GL_4PASS_0_SGIS")] + public const int GL_4PASS_0_SGIS = 0x80A4; + + [NativeName(NativeNameType.Const, "GL_4PASS_1_SGIS")] + public const int GL_4PASS_1_SGIS = 0x80A5; + + [NativeName(NativeNameType.Const, "GL_4PASS_2_SGIS")] + public const int GL_4PASS_2_SGIS = 0x80A6; + + [NativeName(NativeNameType.Const, "GL_4PASS_3_SGIS")] + public const int GL_4PASS_3_SGIS = 0x80A7; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_BUFFERS_SGIS")] + public const int GL_SAMPLE_BUFFERS_SGIS = 0x80A8; + + [NativeName(NativeNameType.Const, "GL_SAMPLES_SGIS")] + public const int GL_SAMPLES_SGIS = 0x80A9; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_MASK_VALUE_SGIS")] + public const int GL_SAMPLE_MASK_VALUE_SGIS = 0x80AA; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_MASK_INVERT_SGIS")] + public const int GL_SAMPLE_MASK_INVERT_SGIS = 0x80AB; + + [NativeName(NativeNameType.Const, "GL_SAMPLE_PATTERN_SGIS")] + public const int GL_SAMPLE_PATTERN_SGIS = 0x80AC; + + [NativeName(NativeNameType.Const, "GL_SGIS_pixel_texture")] + public const int GL_SGIS_PIXEL_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TEXTURE_SGIS")] + public const int GL_PIXEL_TEXTURE_SGIS = 0x8353; + + [NativeName(NativeNameType.Const, "GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS")] + public const int GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS = 0x8354; + + [NativeName(NativeNameType.Const, "GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS")] + public const int GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = 0x8355; + + [NativeName(NativeNameType.Const, "GL_PIXEL_GROUP_COLOR_SGIS")] + public const int GL_PIXEL_GROUP_COLOR_SGIS = 0x8356; + + [NativeName(NativeNameType.Const, "GL_SGIS_point_line_texgen")] + public const int GL_SGIS_POINT_LINE_TEXGEN = 1; + + [NativeName(NativeNameType.Const, "GL_EYE_DISTANCE_TO_POINT_SGIS")] + public const int GL_EYE_DISTANCE_TO_POINT_SGIS = 0x81F0; + + [NativeName(NativeNameType.Const, "GL_OBJECT_DISTANCE_TO_POINT_SGIS")] + public const int GL_OBJECT_DISTANCE_TO_POINT_SGIS = 0x81F1; + + [NativeName(NativeNameType.Const, "GL_EYE_DISTANCE_TO_LINE_SGIS")] + public const int GL_EYE_DISTANCE_TO_LINE_SGIS = 0x81F2; + + [NativeName(NativeNameType.Const, "GL_OBJECT_DISTANCE_TO_LINE_SGIS")] + public const int GL_OBJECT_DISTANCE_TO_LINE_SGIS = 0x81F3; + + [NativeName(NativeNameType.Const, "GL_EYE_POINT_SGIS")] + public const int GL_EYE_POINT_SGIS = 0x81F4; + + [NativeName(NativeNameType.Const, "GL_OBJECT_POINT_SGIS")] + public const int GL_OBJECT_POINT_SGIS = 0x81F5; + + [NativeName(NativeNameType.Const, "GL_EYE_LINE_SGIS")] + public const int GL_EYE_LINE_SGIS = 0x81F6; + + [NativeName(NativeNameType.Const, "GL_OBJECT_LINE_SGIS")] + public const int GL_OBJECT_LINE_SGIS = 0x81F7; + + [NativeName(NativeNameType.Const, "GL_SGIS_point_parameters")] + public const int GL_SGIS_POINT_PARAMETERS = 1; + + [NativeName(NativeNameType.Const, "GL_POINT_SIZE_MIN_SGIS")] + public const int GL_POINT_SIZE_MIN_SGIS = 0x8126; + + [NativeName(NativeNameType.Const, "GL_POINT_SIZE_MAX_SGIS")] + public const int GL_POINT_SIZE_MAX_SGIS = 0x8127; + + [NativeName(NativeNameType.Const, "GL_POINT_FADE_THRESHOLD_SIZE_SGIS")] + public const int GL_POINT_FADE_THRESHOLD_SIZE_SGIS = 0x8128; + + [NativeName(NativeNameType.Const, "GL_DISTANCE_ATTENUATION_SGIS")] + public const int GL_DISTANCE_ATTENUATION_SGIS = 0x8129; + + [NativeName(NativeNameType.Const, "GL_SGIS_sharpen_texture")] + public const int GL_SGIS_SHARPEN_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_LINEAR_SHARPEN_SGIS")] + public const int GL_LINEAR_SHARPEN_SGIS = 0x80AD; + + [NativeName(NativeNameType.Const, "GL_LINEAR_SHARPEN_ALPHA_SGIS")] + public const int GL_LINEAR_SHARPEN_ALPHA_SGIS = 0x80AE; + + [NativeName(NativeNameType.Const, "GL_LINEAR_SHARPEN_COLOR_SGIS")] + public const int GL_LINEAR_SHARPEN_COLOR_SGIS = 0x80AF; + + [NativeName(NativeNameType.Const, "GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS")] + public const int GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS = 0x80B0; + + [NativeName(NativeNameType.Const, "GL_SGIS_texture4D")] + public const int GL_SGIS_TEXTURE4D = 1; + + [NativeName(NativeNameType.Const, "GL_PACK_SKIP_VOLUMES_SGIS")] + public const int GL_PACK_SKIP_VOLUMES_SGIS = 0x8130; + + [NativeName(NativeNameType.Const, "GL_PACK_IMAGE_DEPTH_SGIS")] + public const int GL_PACK_IMAGE_DEPTH_SGIS = 0x8131; + + [NativeName(NativeNameType.Const, "GL_UNPACK_SKIP_VOLUMES_SGIS")] + public const int GL_UNPACK_SKIP_VOLUMES_SGIS = 0x8132; + + [NativeName(NativeNameType.Const, "GL_UNPACK_IMAGE_DEPTH_SGIS")] + public const int GL_UNPACK_IMAGE_DEPTH_SGIS = 0x8133; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_4D_SGIS")] + public const int GL_TEXTURE_4D_SGIS = 0x8134; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_4D_SGIS")] + public const int GL_PROXY_TEXTURE_4D_SGIS = 0x8135; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_4DSIZE_SGIS")] + public const int GL_TEXTURE_4DSIZE_SGIS = 0x8136; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_WRAP_Q_SGIS")] + public const int GL_TEXTURE_WRAP_Q_SGIS = 0x8137; + + [NativeName(NativeNameType.Const, "GL_MAX_4D_TEXTURE_SIZE_SGIS")] + public const int GL_MAX_4D_TEXTURE_SIZE_SGIS = 0x8138; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_4D_BINDING_SGIS")] + public const int GL_TEXTURE_4D_BINDING_SGIS = 0x814F; + + [NativeName(NativeNameType.Const, "GL_SGIS_texture_border_clamp")] + public const int GL_SGIS_TEXTURE_BORDER_CLAMP = 1; + + [NativeName(NativeNameType.Const, "GL_CLAMP_TO_BORDER_SGIS")] + public const int GL_CLAMP_TO_BORDER_SGIS = 0x812D; + + [NativeName(NativeNameType.Const, "GL_SGIS_texture_color_mask")] + public const int GL_SGIS_TEXTURE_COLOR_MASK = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COLOR_WRITEMASK_SGIS")] + public const int GL_TEXTURE_COLOR_WRITEMASK_SGIS = 0x81EF; + + [NativeName(NativeNameType.Const, "GL_SGIS_texture_edge_clamp")] + public const int GL_SGIS_TEXTURE_EDGE_CLAMP = 1; + + [NativeName(NativeNameType.Const, "GL_CLAMP_TO_EDGE_SGIS")] + public const int GL_CLAMP_TO_EDGE_SGIS = 0x812F; + + [NativeName(NativeNameType.Const, "GL_SGIS_texture_filter4")] + public const int GL_SGIS_TEXTURE_FILTER4 = 1; + + [NativeName(NativeNameType.Const, "GL_FILTER4_SGIS")] + public const int GL_FILTER4_SGIS = 0x8146; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_FILTER4_SIZE_SGIS")] + public const int GL_TEXTURE_FILTER4_SIZE_SGIS = 0x8147; + + [NativeName(NativeNameType.Const, "GL_SGIS_texture_lod")] + public const int GL_SGIS_TEXTURE_LOD = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MIN_LOD_SGIS")] + public const int GL_TEXTURE_MIN_LOD_SGIS = 0x813A; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MAX_LOD_SGIS")] + public const int GL_TEXTURE_MAX_LOD_SGIS = 0x813B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BASE_LEVEL_SGIS")] + public const int GL_TEXTURE_BASE_LEVEL_SGIS = 0x813C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MAX_LEVEL_SGIS")] + public const int GL_TEXTURE_MAX_LEVEL_SGIS = 0x813D; + + [NativeName(NativeNameType.Const, "GL_SGIS_texture_select")] + public const int GL_SGIS_TEXTURE_SELECT = 1; + + [NativeName(NativeNameType.Const, "GL_DUAL_ALPHA4_SGIS")] + public const int GL_DUAL_ALPHA4_SGIS = 0x8110; + + [NativeName(NativeNameType.Const, "GL_DUAL_ALPHA8_SGIS")] + public const int GL_DUAL_ALPHA8_SGIS = 0x8111; + + [NativeName(NativeNameType.Const, "GL_DUAL_ALPHA12_SGIS")] + public const int GL_DUAL_ALPHA12_SGIS = 0x8112; + + [NativeName(NativeNameType.Const, "GL_DUAL_ALPHA16_SGIS")] + public const int GL_DUAL_ALPHA16_SGIS = 0x8113; + + [NativeName(NativeNameType.Const, "GL_DUAL_LUMINANCE4_SGIS")] + public const int GL_DUAL_LUMINANCE4_SGIS = 0x8114; + + [NativeName(NativeNameType.Const, "GL_DUAL_LUMINANCE8_SGIS")] + public const int GL_DUAL_LUMINANCE8_SGIS = 0x8115; + + [NativeName(NativeNameType.Const, "GL_DUAL_LUMINANCE12_SGIS")] + public const int GL_DUAL_LUMINANCE12_SGIS = 0x8116; + + [NativeName(NativeNameType.Const, "GL_DUAL_LUMINANCE16_SGIS")] + public const int GL_DUAL_LUMINANCE16_SGIS = 0x8117; + + [NativeName(NativeNameType.Const, "GL_DUAL_INTENSITY4_SGIS")] + public const int GL_DUAL_INTENSITY4_SGIS = 0x8118; + + [NativeName(NativeNameType.Const, "GL_DUAL_INTENSITY8_SGIS")] + public const int GL_DUAL_INTENSITY8_SGIS = 0x8119; + + [NativeName(NativeNameType.Const, "GL_DUAL_INTENSITY12_SGIS")] + public const int GL_DUAL_INTENSITY12_SGIS = 0x811A; + + [NativeName(NativeNameType.Const, "GL_DUAL_INTENSITY16_SGIS")] + public const int GL_DUAL_INTENSITY16_SGIS = 0x811B; + + [NativeName(NativeNameType.Const, "GL_DUAL_LUMINANCE_ALPHA4_SGIS")] + public const int GL_DUAL_LUMINANCE_ALPHA4_SGIS = 0x811C; + + [NativeName(NativeNameType.Const, "GL_DUAL_LUMINANCE_ALPHA8_SGIS")] + public const int GL_DUAL_LUMINANCE_ALPHA8_SGIS = 0x811D; + + [NativeName(NativeNameType.Const, "GL_QUAD_ALPHA4_SGIS")] + public const int GL_QUAD_ALPHA4_SGIS = 0x811E; + + [NativeName(NativeNameType.Const, "GL_QUAD_ALPHA8_SGIS")] + public const int GL_QUAD_ALPHA8_SGIS = 0x811F; + + [NativeName(NativeNameType.Const, "GL_QUAD_LUMINANCE4_SGIS")] + public const int GL_QUAD_LUMINANCE4_SGIS = 0x8120; + + [NativeName(NativeNameType.Const, "GL_QUAD_LUMINANCE8_SGIS")] + public const int GL_QUAD_LUMINANCE8_SGIS = 0x8121; + + [NativeName(NativeNameType.Const, "GL_QUAD_INTENSITY4_SGIS")] + public const int GL_QUAD_INTENSITY4_SGIS = 0x8122; + + [NativeName(NativeNameType.Const, "GL_QUAD_INTENSITY8_SGIS")] + public const int GL_QUAD_INTENSITY8_SGIS = 0x8123; + + [NativeName(NativeNameType.Const, "GL_DUAL_TEXTURE_SELECT_SGIS")] + public const int GL_DUAL_TEXTURE_SELECT_SGIS = 0x8124; + + [NativeName(NativeNameType.Const, "GL_QUAD_TEXTURE_SELECT_SGIS")] + public const int GL_QUAD_TEXTURE_SELECT_SGIS = 0x8125; + + [NativeName(NativeNameType.Const, "GL_SGIX_async")] + public const int GL_SGIX_ASYNC = 1; + + [NativeName(NativeNameType.Const, "GL_ASYNC_MARKER_SGIX")] + public const int GL_ASYNC_MARKER_SGIX = 0x8329; + + [NativeName(NativeNameType.Const, "GL_SGIX_async_histogram")] + public const int GL_SGIX_ASYNC_HISTOGRAM = 1; + + [NativeName(NativeNameType.Const, "GL_ASYNC_HISTOGRAM_SGIX")] + public const int GL_ASYNC_HISTOGRAM_SGIX = 0x832C; + + [NativeName(NativeNameType.Const, "GL_MAX_ASYNC_HISTOGRAM_SGIX")] + public const int GL_MAX_ASYNC_HISTOGRAM_SGIX = 0x832D; + + [NativeName(NativeNameType.Const, "GL_SGIX_async_pixel")] + public const int GL_SGIX_ASYNC_PIXEL = 1; + + [NativeName(NativeNameType.Const, "GL_ASYNC_TEX_IMAGE_SGIX")] + public const int GL_ASYNC_TEX_IMAGE_SGIX = 0x835C; + + [NativeName(NativeNameType.Const, "GL_ASYNC_DRAW_PIXELS_SGIX")] + public const int GL_ASYNC_DRAW_PIXELS_SGIX = 0x835D; + + [NativeName(NativeNameType.Const, "GL_ASYNC_READ_PIXELS_SGIX")] + public const int GL_ASYNC_READ_PIXELS_SGIX = 0x835E; + + [NativeName(NativeNameType.Const, "GL_MAX_ASYNC_TEX_IMAGE_SGIX")] + public const int GL_MAX_ASYNC_TEX_IMAGE_SGIX = 0x835F; + + [NativeName(NativeNameType.Const, "GL_MAX_ASYNC_DRAW_PIXELS_SGIX")] + public const int GL_MAX_ASYNC_DRAW_PIXELS_SGIX = 0x8360; + + [NativeName(NativeNameType.Const, "GL_MAX_ASYNC_READ_PIXELS_SGIX")] + public const int GL_MAX_ASYNC_READ_PIXELS_SGIX = 0x8361; + + [NativeName(NativeNameType.Const, "GL_SGIX_blend_alpha_minmax")] + public const int GL_SGIX_BLEND_ALPHA_MINMAX = 1; + + [NativeName(NativeNameType.Const, "GL_ALPHA_MIN_SGIX")] + public const int GL_ALPHA_MIN_SGIX = 0x8320; + + [NativeName(NativeNameType.Const, "GL_ALPHA_MAX_SGIX")] + public const int GL_ALPHA_MAX_SGIX = 0x8321; + + [NativeName(NativeNameType.Const, "GL_SGIX_calligraphic_fragment")] + public const int GL_SGIX_CALLIGRAPHIC_FRAGMENT = 1; + + [NativeName(NativeNameType.Const, "GL_CALLIGRAPHIC_FRAGMENT_SGIX")] + public const int GL_CALLIGRAPHIC_FRAGMENT_SGIX = 0x8183; + + [NativeName(NativeNameType.Const, "GL_SGIX_clipmap")] + public const int GL_SGIX_CLIPMAP = 1; + + [NativeName(NativeNameType.Const, "GL_LINEAR_CLIPMAP_LINEAR_SGIX")] + public const int GL_LINEAR_CLIPMAP_LINEAR_SGIX = 0x8170; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CLIPMAP_CENTER_SGIX")] + public const int GL_TEXTURE_CLIPMAP_CENTER_SGIX = 0x8171; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CLIPMAP_FRAME_SGIX")] + public const int GL_TEXTURE_CLIPMAP_FRAME_SGIX = 0x8172; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CLIPMAP_OFFSET_SGIX")] + public const int GL_TEXTURE_CLIPMAP_OFFSET_SGIX = 0x8173; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX")] + public const int GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8174; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX")] + public const int GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX = 0x8175; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CLIPMAP_DEPTH_SGIX")] + public const int GL_TEXTURE_CLIPMAP_DEPTH_SGIX = 0x8176; + + [NativeName(NativeNameType.Const, "GL_MAX_CLIPMAP_DEPTH_SGIX")] + public const int GL_MAX_CLIPMAP_DEPTH_SGIX = 0x8177; + + [NativeName(NativeNameType.Const, "GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX")] + public const int GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8178; + + [NativeName(NativeNameType.Const, "GL_NEAREST_CLIPMAP_NEAREST_SGIX")] + public const int GL_NEAREST_CLIPMAP_NEAREST_SGIX = 0x844D; + + [NativeName(NativeNameType.Const, "GL_NEAREST_CLIPMAP_LINEAR_SGIX")] + public const int GL_NEAREST_CLIPMAP_LINEAR_SGIX = 0x844E; + + [NativeName(NativeNameType.Const, "GL_LINEAR_CLIPMAP_NEAREST_SGIX")] + public const int GL_LINEAR_CLIPMAP_NEAREST_SGIX = 0x844F; + + [NativeName(NativeNameType.Const, "GL_SGIX_convolution_accuracy")] + public const int GL_SGIX_CONVOLUTION_ACCURACY = 1; + + [NativeName(NativeNameType.Const, "GL_CONVOLUTION_HINT_SGIX")] + public const int GL_CONVOLUTION_HINT_SGIX = 0x8316; + + [NativeName(NativeNameType.Const, "GL_SGIX_depth_pass_instrument")] + public const int GL_SGIX_DEPTH_PASS_INSTRUMENT = 1; + + [NativeName(NativeNameType.Const, "GL_SGIX_depth_texture")] + public const int GL_SGIX_DEPTH_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT16_SGIX")] + public const int GL_DEPTH_COMPONENT16_SGIX = 0x81A5; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT24_SGIX")] + public const int GL_DEPTH_COMPONENT24_SGIX = 0x81A6; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT32_SGIX")] + public const int GL_DEPTH_COMPONENT32_SGIX = 0x81A7; + + [NativeName(NativeNameType.Const, "GL_SGIX_flush_raster")] + public const int GL_SGIX_FLUSH_RASTER = 1; + + [NativeName(NativeNameType.Const, "GL_SGIX_fog_offset")] + public const int GL_SGIX_FOG_OFFSET = 1; + + [NativeName(NativeNameType.Const, "GL_FOG_OFFSET_SGIX")] + public const int GL_FOG_OFFSET_SGIX = 0x8198; + + [NativeName(NativeNameType.Const, "GL_FOG_OFFSET_VALUE_SGIX")] + public const int GL_FOG_OFFSET_VALUE_SGIX = 0x8199; + + [NativeName(NativeNameType.Const, "GL_SGIX_fragment_lighting")] + public const int GL_SGIX_FRAGMENT_LIGHTING = 1; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHTING_SGIX")] + public const int GL_FRAGMENT_LIGHTING_SGIX = 0x8400; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_COLOR_MATERIAL_SGIX")] + public const int GL_FRAGMENT_COLOR_MATERIAL_SGIX = 0x8401; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX")] + public const int GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX = 0x8402; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX")] + public const int GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX = 0x8403; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAGMENT_LIGHTS_SGIX")] + public const int GL_MAX_FRAGMENT_LIGHTS_SGIX = 0x8404; + + [NativeName(NativeNameType.Const, "GL_MAX_ACTIVE_LIGHTS_SGIX")] + public const int GL_MAX_ACTIVE_LIGHTS_SGIX = 0x8405; + + [NativeName(NativeNameType.Const, "GL_CURRENT_RASTER_NORMAL_SGIX")] + public const int GL_CURRENT_RASTER_NORMAL_SGIX = 0x8406; + + [NativeName(NativeNameType.Const, "GL_LIGHT_ENV_MODE_SGIX")] + public const int GL_LIGHT_ENV_MODE_SGIX = 0x8407; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX")] + public const int GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX = 0x8408; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX")] + public const int GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX = 0x8409; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX")] + public const int GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX = 0x840A; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX")] + public const int GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX = 0x840B; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT0_SGIX")] + public const int GL_FRAGMENT_LIGHT0_SGIX = 0x840C; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT1_SGIX")] + public const int GL_FRAGMENT_LIGHT1_SGIX = 0x840D; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT2_SGIX")] + public const int GL_FRAGMENT_LIGHT2_SGIX = 0x840E; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT3_SGIX")] + public const int GL_FRAGMENT_LIGHT3_SGIX = 0x840F; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT4_SGIX")] + public const int GL_FRAGMENT_LIGHT4_SGIX = 0x8410; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT5_SGIX")] + public const int GL_FRAGMENT_LIGHT5_SGIX = 0x8411; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT6_SGIX")] + public const int GL_FRAGMENT_LIGHT6_SGIX = 0x8412; + + [NativeName(NativeNameType.Const, "GL_FRAGMENT_LIGHT7_SGIX")] + public const int GL_FRAGMENT_LIGHT7_SGIX = 0x8413; + + [NativeName(NativeNameType.Const, "GL_SGIX_framezoom")] + public const int GL_SGIX_FRAMEZOOM = 1; + + [NativeName(NativeNameType.Const, "GL_FRAMEZOOM_SGIX")] + public const int GL_FRAMEZOOM_SGIX = 0x818B; + + [NativeName(NativeNameType.Const, "GL_FRAMEZOOM_FACTOR_SGIX")] + public const int GL_FRAMEZOOM_FACTOR_SGIX = 0x818C; + + [NativeName(NativeNameType.Const, "GL_MAX_FRAMEZOOM_FACTOR_SGIX")] + public const int GL_MAX_FRAMEZOOM_FACTOR_SGIX = 0x818D; + + [NativeName(NativeNameType.Const, "GL_SGIX_igloo_interface")] + public const int GL_SGIX_IGLOO_INTERFACE = 1; + + [NativeName(NativeNameType.Const, "GL_SGIX_instruments")] + public const int GL_SGIX_INSTRUMENTS = 1; + + [NativeName(NativeNameType.Const, "GL_INSTRUMENT_BUFFER_POINTER_SGIX")] + public const int GL_INSTRUMENT_BUFFER_POINTER_SGIX = 0x8180; + + [NativeName(NativeNameType.Const, "GL_INSTRUMENT_MEASUREMENTS_SGIX")] + public const int GL_INSTRUMENT_MEASUREMENTS_SGIX = 0x8181; + + [NativeName(NativeNameType.Const, "GL_SGIX_interlace")] + public const int GL_SGIX_INTERLACE = 1; + + [NativeName(NativeNameType.Const, "GL_INTERLACE_SGIX")] + public const int GL_INTERLACE_SGIX = 0x8094; + + [NativeName(NativeNameType.Const, "GL_SGIX_ir_instrument1")] + public const int GL_SGIX_IR_INSTRUMENT1 = 1; + + [NativeName(NativeNameType.Const, "GL_IR_INSTRUMENT1_SGIX")] + public const int GL_IR_INSTRUMENT1_SGIX = 0x817F; + + [NativeName(NativeNameType.Const, "GL_SGIX_list_priority")] + public const int GL_SGIX_LIST_PRIORITY = 1; + + [NativeName(NativeNameType.Const, "GL_LIST_PRIORITY_SGIX")] + public const int GL_LIST_PRIORITY_SGIX = 0x8182; + + [NativeName(NativeNameType.Const, "GL_SGIX_pixel_texture")] + public const int GL_SGIX_PIXEL_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TEX_GEN_SGIX")] + public const int GL_PIXEL_TEX_GEN_SGIX = 0x8139; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TEX_GEN_MODE_SGIX")] + public const int GL_PIXEL_TEX_GEN_MODE_SGIX = 0x832B; + + [NativeName(NativeNameType.Const, "GL_SGIX_pixel_tiles")] + public const int GL_SGIX_PIXEL_TILES = 1; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX")] + public const int GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX = 0x813E; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TILE_CACHE_INCREMENT_SGIX")] + public const int GL_PIXEL_TILE_CACHE_INCREMENT_SGIX = 0x813F; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TILE_WIDTH_SGIX")] + public const int GL_PIXEL_TILE_WIDTH_SGIX = 0x8140; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TILE_HEIGHT_SGIX")] + public const int GL_PIXEL_TILE_HEIGHT_SGIX = 0x8141; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TILE_GRID_WIDTH_SGIX")] + public const int GL_PIXEL_TILE_GRID_WIDTH_SGIX = 0x8142; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TILE_GRID_HEIGHT_SGIX")] + public const int GL_PIXEL_TILE_GRID_HEIGHT_SGIX = 0x8143; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TILE_GRID_DEPTH_SGIX")] + public const int GL_PIXEL_TILE_GRID_DEPTH_SGIX = 0x8144; + + [NativeName(NativeNameType.Const, "GL_PIXEL_TILE_CACHE_SIZE_SGIX")] + public const int GL_PIXEL_TILE_CACHE_SIZE_SGIX = 0x8145; + + [NativeName(NativeNameType.Const, "GL_SGIX_polynomial_ffd")] + public const int GL_SGIX_POLYNOMIAL_FFD = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_DEFORMATION_BIT_SGIX")] + public const int GL_TEXTURE_DEFORMATION_BIT_SGIX = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_DEFORMATION_BIT_SGIX")] + public const int GL_GEOMETRY_DEFORMATION_BIT_SGIX = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_GEOMETRY_DEFORMATION_SGIX")] + public const int GL_GEOMETRY_DEFORMATION_SGIX = 0x8194; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_DEFORMATION_SGIX")] + public const int GL_TEXTURE_DEFORMATION_SGIX = 0x8195; + + [NativeName(NativeNameType.Const, "GL_DEFORMATIONS_MASK_SGIX")] + public const int GL_DEFORMATIONS_MASK_SGIX = 0x8196; + + [NativeName(NativeNameType.Const, "GL_MAX_DEFORMATION_ORDER_SGIX")] + public const int GL_MAX_DEFORMATION_ORDER_SGIX = 0x8197; + + [NativeName(NativeNameType.Const, "GL_SGIX_reference_plane")] + public const int GL_SGIX_REFERENCE_PLANE = 1; + + [NativeName(NativeNameType.Const, "GL_REFERENCE_PLANE_SGIX")] + public const int GL_REFERENCE_PLANE_SGIX = 0x817D; + + [NativeName(NativeNameType.Const, "GL_REFERENCE_PLANE_EQUATION_SGIX")] + public const int GL_REFERENCE_PLANE_EQUATION_SGIX = 0x817E; + + [NativeName(NativeNameType.Const, "GL_SGIX_resample")] + public const int GL_SGIX_RESAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_PACK_RESAMPLE_SGIX")] + public const int GL_PACK_RESAMPLE_SGIX = 0x842E; + + [NativeName(NativeNameType.Const, "GL_UNPACK_RESAMPLE_SGIX")] + public const int GL_UNPACK_RESAMPLE_SGIX = 0x842F; + + [NativeName(NativeNameType.Const, "GL_RESAMPLE_REPLICATE_SGIX")] + public const int GL_RESAMPLE_REPLICATE_SGIX = 0x8433; + + [NativeName(NativeNameType.Const, "GL_RESAMPLE_ZERO_FILL_SGIX")] + public const int GL_RESAMPLE_ZERO_FILL_SGIX = 0x8434; + + [NativeName(NativeNameType.Const, "GL_RESAMPLE_DECIMATE_SGIX")] + public const int GL_RESAMPLE_DECIMATE_SGIX = 0x8430; + + [NativeName(NativeNameType.Const, "GL_SGIX_scalebias_hint")] + public const int GL_SGIX_SCALEBIAS_HINT = 1; + + [NativeName(NativeNameType.Const, "GL_SCALEBIAS_HINT_SGIX")] + public const int GL_SCALEBIAS_HINT_SGIX = 0x8322; + + [NativeName(NativeNameType.Const, "GL_SGIX_shadow")] + public const int GL_SGIX_SHADOW = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPARE_SGIX")] + public const int GL_TEXTURE_COMPARE_SGIX = 0x819A; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COMPARE_OPERATOR_SGIX")] + public const int GL_TEXTURE_COMPARE_OPERATOR_SGIX = 0x819B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LEQUAL_R_SGIX")] + public const int GL_TEXTURE_LEQUAL_R_SGIX = 0x819C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GEQUAL_R_SGIX")] + public const int GL_TEXTURE_GEQUAL_R_SGIX = 0x819D; + + [NativeName(NativeNameType.Const, "GL_SGIX_shadow_ambient")] + public const int GL_SGIX_SHADOW_AMBIENT = 1; + + [NativeName(NativeNameType.Const, "GL_SHADOW_AMBIENT_SGIX")] + public const int GL_SHADOW_AMBIENT_SGIX = 0x80BF; + + [NativeName(NativeNameType.Const, "GL_SGIX_sprite")] + public const int GL_SGIX_SPRITE = 1; + + [NativeName(NativeNameType.Const, "GL_SPRITE_SGIX")] + public const int GL_SPRITE_SGIX = 0x8148; + + [NativeName(NativeNameType.Const, "GL_SPRITE_MODE_SGIX")] + public const int GL_SPRITE_MODE_SGIX = 0x8149; + + [NativeName(NativeNameType.Const, "GL_SPRITE_AXIS_SGIX")] + public const int GL_SPRITE_AXIS_SGIX = 0x814A; + + [NativeName(NativeNameType.Const, "GL_SPRITE_TRANSLATION_SGIX")] + public const int GL_SPRITE_TRANSLATION_SGIX = 0x814B; + + [NativeName(NativeNameType.Const, "GL_SPRITE_AXIAL_SGIX")] + public const int GL_SPRITE_AXIAL_SGIX = 0x814C; + + [NativeName(NativeNameType.Const, "GL_SPRITE_OBJECT_ALIGNED_SGIX")] + public const int GL_SPRITE_OBJECT_ALIGNED_SGIX = 0x814D; + + [NativeName(NativeNameType.Const, "GL_SPRITE_EYE_ALIGNED_SGIX")] + public const int GL_SPRITE_EYE_ALIGNED_SGIX = 0x814E; + + [NativeName(NativeNameType.Const, "GL_SGIX_subsample")] + public const int GL_SGIX_SUBSAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_PACK_SUBSAMPLE_RATE_SGIX")] + public const int GL_PACK_SUBSAMPLE_RATE_SGIX = 0x85A0; + + [NativeName(NativeNameType.Const, "GL_UNPACK_SUBSAMPLE_RATE_SGIX")] + public const int GL_UNPACK_SUBSAMPLE_RATE_SGIX = 0x85A1; + + [NativeName(NativeNameType.Const, "GL_PIXEL_SUBSAMPLE_4444_SGIX")] + public const int GL_PIXEL_SUBSAMPLE_4444_SGIX = 0x85A2; + + [NativeName(NativeNameType.Const, "GL_PIXEL_SUBSAMPLE_2424_SGIX")] + public const int GL_PIXEL_SUBSAMPLE_2424_SGIX = 0x85A3; + + [NativeName(NativeNameType.Const, "GL_PIXEL_SUBSAMPLE_4242_SGIX")] + public const int GL_PIXEL_SUBSAMPLE_4242_SGIX = 0x85A4; + + [NativeName(NativeNameType.Const, "GL_SGIX_tag_sample_buffer")] + public const int GL_SGIX_TAG_SAMPLE_BUFFER = 1; + + [NativeName(NativeNameType.Const, "GL_SGIX_texture_add_env")] + public const int GL_SGIX_TEXTURE_ADD_ENV = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_ENV_BIAS_SGIX")] + public const int GL_TEXTURE_ENV_BIAS_SGIX = 0x80BE; + + [NativeName(NativeNameType.Const, "GL_SGIX_texture_coordinate_clamp")] + public const int GL_SGIX_TEXTURE_COORDINATE_CLAMP = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MAX_CLAMP_S_SGIX")] + public const int GL_TEXTURE_MAX_CLAMP_S_SGIX = 0x8369; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MAX_CLAMP_T_SGIX")] + public const int GL_TEXTURE_MAX_CLAMP_T_SGIX = 0x836A; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MAX_CLAMP_R_SGIX")] + public const int GL_TEXTURE_MAX_CLAMP_R_SGIX = 0x836B; + + [NativeName(NativeNameType.Const, "GL_SGIX_texture_lod_bias")] + public const int GL_SGIX_TEXTURE_LOD_BIAS = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LOD_BIAS_S_SGIX")] + public const int GL_TEXTURE_LOD_BIAS_S_SGIX = 0x818E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LOD_BIAS_T_SGIX")] + public const int GL_TEXTURE_LOD_BIAS_T_SGIX = 0x818F; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LOD_BIAS_R_SGIX")] + public const int GL_TEXTURE_LOD_BIAS_R_SGIX = 0x8190; + + [NativeName(NativeNameType.Const, "GL_SGIX_texture_multi_buffer")] + public const int GL_SGIX_TEXTURE_MULTI_BUFFER = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MULTI_BUFFER_HINT_SGIX")] + public const int GL_TEXTURE_MULTI_BUFFER_HINT_SGIX = 0x812E; + + [NativeName(NativeNameType.Const, "GL_SGIX_texture_scale_bias")] + public const int GL_SGIX_TEXTURE_SCALE_BIAS = 1; + + [NativeName(NativeNameType.Const, "GL_POST_TEXTURE_FILTER_BIAS_SGIX")] + public const int GL_POST_TEXTURE_FILTER_BIAS_SGIX = 0x8179; + + [NativeName(NativeNameType.Const, "GL_POST_TEXTURE_FILTER_SCALE_SGIX")] + public const int GL_POST_TEXTURE_FILTER_SCALE_SGIX = 0x817A; + + [NativeName(NativeNameType.Const, "GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX")] + public const int GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = 0x817B; + + [NativeName(NativeNameType.Const, "GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX")] + public const int GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817C; + + [NativeName(NativeNameType.Const, "GL_SGIX_vertex_preclip")] + public const int GL_SGIX_VERTEX_PRECLIP = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PRECLIP_SGIX")] + public const int GL_VERTEX_PRECLIP_SGIX = 0x83EE; + + [NativeName(NativeNameType.Const, "GL_VERTEX_PRECLIP_HINT_SGIX")] + public const int GL_VERTEX_PRECLIP_HINT_SGIX = 0x83EF; + + [NativeName(NativeNameType.Const, "GL_SGIX_ycrcb")] + public const int GL_SGIX_YCRCB = 1; + + [NativeName(NativeNameType.Const, "GL_YCRCB_422_SGIX")] + public const int GL_YCRCB_422_SGIX = 0x81BB; + + [NativeName(NativeNameType.Const, "GL_YCRCB_444_SGIX")] + public const int GL_YCRCB_444_SGIX = 0x81BC; + + [NativeName(NativeNameType.Const, "GL_SGIX_ycrcb_subsample")] + public const int GL_SGIX_YCRCB_SUBSAMPLE = 1; + + [NativeName(NativeNameType.Const, "GL_SGIX_ycrcba")] + public const int GL_SGIX_YCRCBA = 1; + + [NativeName(NativeNameType.Const, "GL_YCRCB_SGIX")] + public const int GL_YCRCB_SGIX = 0x8318; + + [NativeName(NativeNameType.Const, "GL_YCRCBA_SGIX")] + public const int GL_YCRCBA_SGIX = 0x8319; + + [NativeName(NativeNameType.Const, "GL_SGI_color_matrix")] + public const int GL_SGI_COLOR_MATRIX = 1; + + [NativeName(NativeNameType.Const, "GL_COLOR_MATRIX_SGI")] + public const int GL_COLOR_MATRIX_SGI = 0x80B1; + + [NativeName(NativeNameType.Const, "GL_COLOR_MATRIX_STACK_DEPTH_SGI")] + public const int GL_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B2; + + [NativeName(NativeNameType.Const, "GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI")] + public const int GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B3; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_RED_SCALE_SGI")] + public const int GL_POST_COLOR_MATRIX_RED_SCALE_SGI = 0x80B4; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI")] + public const int GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI = 0x80B5; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI")] + public const int GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI = 0x80B6; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI")] + public const int GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI = 0x80B7; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_RED_BIAS_SGI")] + public const int GL_POST_COLOR_MATRIX_RED_BIAS_SGI = 0x80B8; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI")] + public const int GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI = 0x80B9; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI")] + public const int GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI = 0x80BA; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI")] + public const int GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI = 0x80BB; + + [NativeName(NativeNameType.Const, "GL_SGI_color_table")] + public const int GL_SGI_COLOR_TABLE = 1; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_SGI")] + public const int GL_COLOR_TABLE_SGI = 0x80D0; + + [NativeName(NativeNameType.Const, "GL_POST_CONVOLUTION_COLOR_TABLE_SGI")] + public const int GL_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D1; + + [NativeName(NativeNameType.Const, "GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI")] + public const int GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D2; + + [NativeName(NativeNameType.Const, "GL_PROXY_COLOR_TABLE_SGI")] + public const int GL_PROXY_COLOR_TABLE_SGI = 0x80D3; + + [NativeName(NativeNameType.Const, "GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI")] + public const int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D4; + + [NativeName(NativeNameType.Const, "GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI")] + public const int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D5; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_SCALE_SGI")] + public const int GL_COLOR_TABLE_SCALE_SGI = 0x80D6; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_BIAS_SGI")] + public const int GL_COLOR_TABLE_BIAS_SGI = 0x80D7; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_FORMAT_SGI")] + public const int GL_COLOR_TABLE_FORMAT_SGI = 0x80D8; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_WIDTH_SGI")] + public const int GL_COLOR_TABLE_WIDTH_SGI = 0x80D9; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_RED_SIZE_SGI")] + public const int GL_COLOR_TABLE_RED_SIZE_SGI = 0x80DA; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_GREEN_SIZE_SGI")] + public const int GL_COLOR_TABLE_GREEN_SIZE_SGI = 0x80DB; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_BLUE_SIZE_SGI")] + public const int GL_COLOR_TABLE_BLUE_SIZE_SGI = 0x80DC; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_ALPHA_SIZE_SGI")] + public const int GL_COLOR_TABLE_ALPHA_SIZE_SGI = 0x80DD; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_LUMINANCE_SIZE_SGI")] + public const int GL_COLOR_TABLE_LUMINANCE_SIZE_SGI = 0x80DE; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_INTENSITY_SIZE_SGI")] + public const int GL_COLOR_TABLE_INTENSITY_SIZE_SGI = 0x80DF; + + [NativeName(NativeNameType.Const, "GL_SGI_texture_color_table")] + public const int GL_SGI_TEXTURE_COLOR_TABLE = 1; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COLOR_TABLE_SGI")] + public const int GL_TEXTURE_COLOR_TABLE_SGI = 0x80BC; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_COLOR_TABLE_SGI")] + public const int GL_PROXY_TEXTURE_COLOR_TABLE_SGI = 0x80BD; + + [NativeName(NativeNameType.Const, "GL_SUNX_constant_data")] + public const int GL_SUNX_CONSTANT_DATA = 1; + + [NativeName(NativeNameType.Const, "GL_UNPACK_CONSTANT_DATA_SUNX")] + public const int GL_UNPACK_CONSTANT_DATA_SUNX = 0x81D5; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_CONSTANT_DATA_SUNX")] + public const int GL_TEXTURE_CONSTANT_DATA_SUNX = 0x81D6; + + [NativeName(NativeNameType.Const, "GL_SUN_convolution_border_modes")] + public const int GL_SUN_CONVOLUTION_BORDER_MODES = 1; + + [NativeName(NativeNameType.Const, "GL_WRAP_BORDER_SUN")] + public const int GL_WRAP_BORDER_SUN = 0x81D4; + + [NativeName(NativeNameType.Const, "GL_SUN_global_alpha")] + public const int GL_SUN_GLOBAL_ALPHA = 1; + + [NativeName(NativeNameType.Const, "GL_GLOBAL_ALPHA_SUN")] + public const int GL_GLOBAL_ALPHA_SUN = 0x81D9; + + [NativeName(NativeNameType.Const, "GL_GLOBAL_ALPHA_FACTOR_SUN")] + public const int GL_GLOBAL_ALPHA_FACTOR_SUN = 0x81DA; + + [NativeName(NativeNameType.Const, "GL_SUN_mesh_array")] + public const int GL_SUN_MESH_ARRAY = 1; + + [NativeName(NativeNameType.Const, "GL_QUAD_MESH_SUN")] + public const int GL_QUAD_MESH_SUN = 0x8614; + + [NativeName(NativeNameType.Const, "GL_TRIANGLE_MESH_SUN")] + public const int GL_TRIANGLE_MESH_SUN = 0x8615; + + [NativeName(NativeNameType.Const, "GL_SUN_slice_accum")] + public const int GL_SUN_SLICE_ACCUM = 1; + + [NativeName(NativeNameType.Const, "GL_SLICE_ACCUM_SUN")] + public const int GL_SLICE_ACCUM_SUN = 0x85CC; + + [NativeName(NativeNameType.Const, "GL_SUN_triangle_list")] + public const int GL_SUN_TRIANGLE_LIST = 1; + + [NativeName(NativeNameType.Const, "GL_RESTART_SUN")] + public const int GL_RESTART_SUN = 0x0001; + + [NativeName(NativeNameType.Const, "GL_REPLACE_MIDDLE_SUN")] + public const int GL_REPLACE_MIDDLE_SUN = 0x0002; + + [NativeName(NativeNameType.Const, "GL_REPLACE_OLDEST_SUN")] + public const int GL_REPLACE_OLDEST_SUN = 0x0003; + + [NativeName(NativeNameType.Const, "GL_TRIANGLE_LIST_SUN")] + public const int GL_TRIANGLE_LIST_SUN = 0x81D7; + + [NativeName(NativeNameType.Const, "GL_REPLACEMENT_CODE_SUN")] + public const int GL_REPLACEMENT_CODE_SUN = 0x81D8; + + [NativeName(NativeNameType.Const, "GL_REPLACEMENT_CODE_ARRAY_SUN")] + public const int GL_REPLACEMENT_CODE_ARRAY_SUN = 0x85C0; + + [NativeName(NativeNameType.Const, "GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN")] + public const int GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN = 0x85C1; + + [NativeName(NativeNameType.Const, "GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN")] + public const int GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN = 0x85C2; + + [NativeName(NativeNameType.Const, "GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN")] + public const int GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN = 0x85C3; + + [NativeName(NativeNameType.Const, "GL_R1UI_V3F_SUN")] + public const int GL_R1UI_V3F_SUN = 0x85C4; + + [NativeName(NativeNameType.Const, "GL_R1UI_C4UB_V3F_SUN")] + public const int GL_R1UI_C4UB_V3F_SUN = 0x85C5; + + [NativeName(NativeNameType.Const, "GL_R1UI_C3F_V3F_SUN")] + public const int GL_R1UI_C3F_V3F_SUN = 0x85C6; + + [NativeName(NativeNameType.Const, "GL_R1UI_N3F_V3F_SUN")] + public const int GL_R1UI_N3F_V3F_SUN = 0x85C7; + + [NativeName(NativeNameType.Const, "GL_R1UI_C4F_N3F_V3F_SUN")] + public const int GL_R1UI_C4F_N3F_V3F_SUN = 0x85C8; + + [NativeName(NativeNameType.Const, "GL_R1UI_T2F_V3F_SUN")] + public const int GL_R1UI_T2F_V3F_SUN = 0x85C9; + + [NativeName(NativeNameType.Const, "GL_R1UI_T2F_N3F_V3F_SUN")] + public const int GL_R1UI_T2F_N3F_V3F_SUN = 0x85CA; + + [NativeName(NativeNameType.Const, "GL_R1UI_T2F_C4F_N3F_V3F_SUN")] + public const int GL_R1UI_T2F_C4F_N3F_V3F_SUN = 0x85CB; + + [NativeName(NativeNameType.Const, "GL_SUN_vertex")] + public const int GL_SUN_VERTEX = 1; + + [NativeName(NativeNameType.Const, "GL_WIN_phong_shading")] + public const int GL_WIN_PHONG_SHADING = 1; + + [NativeName(NativeNameType.Const, "GL_WIN_specular_fog")] + public const int GL_WIN_SPECULAR_FOG = 1; + + } +} diff --git a/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Extensions.cs b/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Extensions.cs new file mode 100644 index 0000000..11c5b93 --- /dev/null +++ b/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Extensions.cs @@ -0,0 +1,20 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL.GLExt +{ + public static unsafe class Extensions + { + } +} diff --git a/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Functions.cs b/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Functions.cs new file mode 100644 index 0000000..a76a761 --- /dev/null +++ b/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Functions.cs @@ -0,0 +1,22 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL.GLExt +{ + public unsafe partial class GLExt + { + internal const string LibName = "OpenGL32"; + + } +} diff --git a/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Handles.cs b/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Handles.cs new file mode 100644 index 0000000..5f4f861 --- /dev/null +++ b/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Handles.cs @@ -0,0 +1,89 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL.GLExt +{ + /// + /// To be documented. + /// + [NativeName(NativeNameType.Typedef, "GLsync")] + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct GLsync : IEquatable + { + public GLsync(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static GLsync Null => new GLsync(0); + public static implicit operator GLsync(nint handle) => new GLsync(handle); + public static bool operator ==(GLsync left, GLsync right) => left.Handle == right.Handle; + public static bool operator !=(GLsync left, GLsync right) => left.Handle != right.Handle; + public static bool operator ==(GLsync left, nint right) => left.Handle == right; + public static bool operator !=(GLsync left, nint right) => left.Handle != right; + public bool Equals(GLsync other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is GLsync handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("GLsync [0x{0}]", Handle.ToString("X")); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Typedef, "GLeglImageOES")] + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct GLeglImageOES : IEquatable + { + public GLeglImageOES(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static GLeglImageOES Null => new GLeglImageOES(0); + public static implicit operator GLeglImageOES(nint handle) => new GLeglImageOES(handle); + public static bool operator ==(GLeglImageOES left, GLeglImageOES right) => left.Handle == right.Handle; + public static bool operator !=(GLeglImageOES left, GLeglImageOES right) => left.Handle != right.Handle; + public static bool operator ==(GLeglImageOES left, nint right) => left.Handle == right; + public static bool operator !=(GLeglImageOES left, nint right) => left.Handle != right; + public bool Equals(GLeglImageOES other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is GLeglImageOES handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("GLeglImageOES [0x{0}]", Handle.ToString("X")); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Typedef, "GLeglClientBufferEXT")] + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct GLeglClientBufferEX : IEquatable + { + public GLeglClientBufferEX(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static GLeglClientBufferEX Null => new GLeglClientBufferEX(0); + public static implicit operator GLeglClientBufferEX(nint handle) => new GLeglClientBufferEX(handle); + public static bool operator ==(GLeglClientBufferEX left, GLeglClientBufferEX right) => left.Handle == right.Handle; + public static bool operator !=(GLeglClientBufferEX left, GLeglClientBufferEX right) => left.Handle != right.Handle; + public static bool operator ==(GLeglClientBufferEX left, nint right) => left.Handle == right; + public static bool operator !=(GLeglClientBufferEX left, nint right) => left.Handle != right; + public bool Equals(GLeglClientBufferEX other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is GLeglClientBufferEX handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("GLeglClientBufferEX [0x{0}]", Handle.ToString("X")); + } + +} diff --git a/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Structures.cs b/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Structures.cs new file mode 100644 index 0000000..ac999d0 --- /dev/null +++ b/Hexa.NET.OpenGL/Extensions/GLExt/Generated/Structures.cs @@ -0,0 +1,51 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL.GLExt +{ + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "__GLsync")] + [StructLayout(LayoutKind.Sequential)] + public partial struct GLsync + { + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "_cl_context")] + [StructLayout(LayoutKind.Sequential)] + public partial struct ClContext + { + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "_cl_event")] + [StructLayout(LayoutKind.Sequential)] + public partial struct ClEvent + { + + + } + +} diff --git a/Hexa.NET.OpenGL/Generated/Constants.cs b/Hexa.NET.OpenGL/Generated/Constants.cs new file mode 100644 index 0000000..ea4e01e --- /dev/null +++ b/Hexa.NET.OpenGL/Generated/Constants.cs @@ -0,0 +1,2786 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL +{ + public unsafe partial class OpenGL + { + [NativeName(NativeNameType.Const, "_MSC_VER")] + [NativeName(NativeNameType.Value, "1930")] + public const int _MSC_VER = 1930; + + [NativeName(NativeNameType.Const, "_WIN32")] + [NativeName(NativeNameType.Value, "1")] + public const int _WIN32 = 1; + + [NativeName(NativeNameType.Const, "_M_AMD64")] + [NativeName(NativeNameType.Value, "100")] + public const int _M_AMD64 = 100; + + [NativeName(NativeNameType.Const, "_M_X64")] + [NativeName(NativeNameType.Value, "100")] + public const int _M_X64 = 100; + + [NativeName(NativeNameType.Const, "_WIN64")] + [NativeName(NativeNameType.Value, "1")] + public const int _WIN64 = 1; + + [NativeName(NativeNameType.Const, "GL_VERSION_1_1")] + [NativeName(NativeNameType.Value, "1")] + public const int GL_VERSION_1_1 = 1; + + [NativeName(NativeNameType.Const, "GL_ACCUM")] + [NativeName(NativeNameType.Value, "0x0100")] + public const int GL_ACCUM = 0x0100; + + [NativeName(NativeNameType.Const, "GL_LOAD")] + [NativeName(NativeNameType.Value, "0x0101")] + public const int GL_LOAD = 0x0101; + + [NativeName(NativeNameType.Const, "GL_RETURN")] + [NativeName(NativeNameType.Value, "0x0102")] + public const int GL_RETURN = 0x0102; + + [NativeName(NativeNameType.Const, "GL_MULT")] + [NativeName(NativeNameType.Value, "0x0103")] + public const int GL_MULT = 0x0103; + + [NativeName(NativeNameType.Const, "GL_ADD")] + [NativeName(NativeNameType.Value, "0x0104")] + public const int GL_ADD = 0x0104; + + [NativeName(NativeNameType.Const, "GL_NEVER")] + [NativeName(NativeNameType.Value, "0x0200")] + public const int GL_NEVER = 0x0200; + + [NativeName(NativeNameType.Const, "GL_LESS")] + [NativeName(NativeNameType.Value, "0x0201")] + public const int GL_LESS = 0x0201; + + [NativeName(NativeNameType.Const, "GL_EQUAL")] + [NativeName(NativeNameType.Value, "0x0202")] + public const int GL_EQUAL = 0x0202; + + [NativeName(NativeNameType.Const, "GL_LEQUAL")] + [NativeName(NativeNameType.Value, "0x0203")] + public const int GL_LEQUAL = 0x0203; + + [NativeName(NativeNameType.Const, "GL_GREATER")] + [NativeName(NativeNameType.Value, "0x0204")] + public const int GL_GREATER = 0x0204; + + [NativeName(NativeNameType.Const, "GL_NOTEQUAL")] + [NativeName(NativeNameType.Value, "0x0205")] + public const int GL_NOTEQUAL = 0x0205; + + [NativeName(NativeNameType.Const, "GL_GEQUAL")] + [NativeName(NativeNameType.Value, "0x0206")] + public const int GL_GEQUAL = 0x0206; + + [NativeName(NativeNameType.Const, "GL_ALWAYS")] + [NativeName(NativeNameType.Value, "0x0207")] + public const int GL_ALWAYS = 0x0207; + + [NativeName(NativeNameType.Const, "GL_CURRENT_BIT")] + [NativeName(NativeNameType.Value, "0x00000001")] + public const int GL_CURRENT_BIT = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_POINT_BIT")] + [NativeName(NativeNameType.Value, "0x00000002")] + public const int GL_POINT_BIT = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_LINE_BIT")] + [NativeName(NativeNameType.Value, "0x00000004")] + public const int GL_LINE_BIT = 0x00000004; + + [NativeName(NativeNameType.Const, "GL_POLYGON_BIT")] + [NativeName(NativeNameType.Value, "0x00000008")] + public const int GL_POLYGON_BIT = 0x00000008; + + [NativeName(NativeNameType.Const, "GL_POLYGON_STIPPLE_BIT")] + [NativeName(NativeNameType.Value, "0x00000010")] + public const int GL_POLYGON_STIPPLE_BIT = 0x00000010; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MODE_BIT")] + [NativeName(NativeNameType.Value, "0x00000020")] + public const int GL_PIXEL_MODE_BIT = 0x00000020; + + [NativeName(NativeNameType.Const, "GL_LIGHTING_BIT")] + [NativeName(NativeNameType.Value, "0x00000040")] + public const int GL_LIGHTING_BIT = 0x00000040; + + [NativeName(NativeNameType.Const, "GL_FOG_BIT")] + [NativeName(NativeNameType.Value, "0x00000080")] + public const int GL_FOG_BIT = 0x00000080; + + [NativeName(NativeNameType.Const, "GL_DEPTH_BUFFER_BIT")] + [NativeName(NativeNameType.Value, "0x00000100")] + public const int GL_DEPTH_BUFFER_BIT = 0x00000100; + + [NativeName(NativeNameType.Const, "GL_ACCUM_BUFFER_BIT")] + [NativeName(NativeNameType.Value, "0x00000200")] + public const int GL_ACCUM_BUFFER_BIT = 0x00000200; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BUFFER_BIT")] + [NativeName(NativeNameType.Value, "0x00000400")] + public const int GL_STENCIL_BUFFER_BIT = 0x00000400; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT_BIT")] + [NativeName(NativeNameType.Value, "0x00000800")] + public const int GL_VIEWPORT_BIT = 0x00000800; + + [NativeName(NativeNameType.Const, "GL_TRANSFORM_BIT")] + [NativeName(NativeNameType.Value, "0x00001000")] + public const int GL_TRANSFORM_BIT = 0x00001000; + + [NativeName(NativeNameType.Const, "GL_ENABLE_BIT")] + [NativeName(NativeNameType.Value, "0x00002000")] + public const int GL_ENABLE_BIT = 0x00002000; + + [NativeName(NativeNameType.Const, "GL_COLOR_BUFFER_BIT")] + [NativeName(NativeNameType.Value, "0x00004000")] + public const int GL_COLOR_BUFFER_BIT = 0x00004000; + + [NativeName(NativeNameType.Const, "GL_HINT_BIT")] + [NativeName(NativeNameType.Value, "0x00008000")] + public const int GL_HINT_BIT = 0x00008000; + + [NativeName(NativeNameType.Const, "GL_EVAL_BIT")] + [NativeName(NativeNameType.Value, "0x00010000")] + public const int GL_EVAL_BIT = 0x00010000; + + [NativeName(NativeNameType.Const, "GL_LIST_BIT")] + [NativeName(NativeNameType.Value, "0x00020000")] + public const int GL_LIST_BIT = 0x00020000; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BIT")] + [NativeName(NativeNameType.Value, "0x00040000")] + public const int GL_TEXTURE_BIT = 0x00040000; + + [NativeName(NativeNameType.Const, "GL_SCISSOR_BIT")] + [NativeName(NativeNameType.Value, "0x00080000")] + public const int GL_SCISSOR_BIT = 0x00080000; + + [NativeName(NativeNameType.Const, "GL_ALL_ATTRIB_BITS")] + [NativeName(NativeNameType.Value, "0x000fffff")] + public const int GL_ALL_ATTRIB_BITS = 0x000fffff; + + [NativeName(NativeNameType.Const, "GL_POINTS")] + [NativeName(NativeNameType.Value, "0x0000")] + public const int GL_POINTS = 0x0000; + + [NativeName(NativeNameType.Const, "GL_LINES")] + [NativeName(NativeNameType.Value, "0x0001")] + public const int GL_LINES = 0x0001; + + [NativeName(NativeNameType.Const, "GL_LINE_LOOP")] + [NativeName(NativeNameType.Value, "0x0002")] + public const int GL_LINE_LOOP = 0x0002; + + [NativeName(NativeNameType.Const, "GL_LINE_STRIP")] + [NativeName(NativeNameType.Value, "0x0003")] + public const int GL_LINE_STRIP = 0x0003; + + [NativeName(NativeNameType.Const, "GL_TRIANGLES")] + [NativeName(NativeNameType.Value, "0x0004")] + public const int GL_TRIANGLES = 0x0004; + + [NativeName(NativeNameType.Const, "GL_TRIANGLE_STRIP")] + [NativeName(NativeNameType.Value, "0x0005")] + public const int GL_TRIANGLE_STRIP = 0x0005; + + [NativeName(NativeNameType.Const, "GL_TRIANGLE_FAN")] + [NativeName(NativeNameType.Value, "0x0006")] + public const int GL_TRIANGLE_FAN = 0x0006; + + [NativeName(NativeNameType.Const, "GL_QUADS")] + [NativeName(NativeNameType.Value, "0x0007")] + public const int GL_QUADS = 0x0007; + + [NativeName(NativeNameType.Const, "GL_QUAD_STRIP")] + [NativeName(NativeNameType.Value, "0x0008")] + public const int GL_QUAD_STRIP = 0x0008; + + [NativeName(NativeNameType.Const, "GL_POLYGON")] + [NativeName(NativeNameType.Value, "0x0009")] + public const int GL_POLYGON = 0x0009; + + [NativeName(NativeNameType.Const, "GL_ZERO")] + [NativeName(NativeNameType.Value, "0")] + public const int GL_ZERO = 0; + + [NativeName(NativeNameType.Const, "GL_ONE")] + [NativeName(NativeNameType.Value, "1")] + public const int GL_ONE = 1; + + [NativeName(NativeNameType.Const, "GL_SRC_COLOR")] + [NativeName(NativeNameType.Value, "0x0300")] + public const int GL_SRC_COLOR = 0x0300; + + [NativeName(NativeNameType.Const, "GL_ONE_MINUS_SRC_COLOR")] + [NativeName(NativeNameType.Value, "0x0301")] + public const int GL_ONE_MINUS_SRC_COLOR = 0x0301; + + [NativeName(NativeNameType.Const, "GL_SRC_ALPHA")] + [NativeName(NativeNameType.Value, "0x0302")] + public const int GL_SRC_ALPHA = 0x0302; + + [NativeName(NativeNameType.Const, "GL_ONE_MINUS_SRC_ALPHA")] + [NativeName(NativeNameType.Value, "0x0303")] + public const int GL_ONE_MINUS_SRC_ALPHA = 0x0303; + + [NativeName(NativeNameType.Const, "GL_DST_ALPHA")] + [NativeName(NativeNameType.Value, "0x0304")] + public const int GL_DST_ALPHA = 0x0304; + + [NativeName(NativeNameType.Const, "GL_ONE_MINUS_DST_ALPHA")] + [NativeName(NativeNameType.Value, "0x0305")] + public const int GL_ONE_MINUS_DST_ALPHA = 0x0305; + + [NativeName(NativeNameType.Const, "GL_DST_COLOR")] + [NativeName(NativeNameType.Value, "0x0306")] + public const int GL_DST_COLOR = 0x0306; + + [NativeName(NativeNameType.Const, "GL_ONE_MINUS_DST_COLOR")] + [NativeName(NativeNameType.Value, "0x0307")] + public const int GL_ONE_MINUS_DST_COLOR = 0x0307; + + [NativeName(NativeNameType.Const, "GL_SRC_ALPHA_SATURATE")] + [NativeName(NativeNameType.Value, "0x0308")] + public const int GL_SRC_ALPHA_SATURATE = 0x0308; + + [NativeName(NativeNameType.Const, "GL_TRUE")] + [NativeName(NativeNameType.Value, "1")] + public const int GL_TRUE = 1; + + [NativeName(NativeNameType.Const, "GL_FALSE")] + [NativeName(NativeNameType.Value, "0")] + public const int GL_FALSE = 0; + + [NativeName(NativeNameType.Const, "GL_CLIP_PLANE0")] + [NativeName(NativeNameType.Value, "0x3000")] + public const int GL_CLIP_PLANE0 = 0x3000; + + [NativeName(NativeNameType.Const, "GL_CLIP_PLANE1")] + [NativeName(NativeNameType.Value, "0x3001")] + public const int GL_CLIP_PLANE1 = 0x3001; + + [NativeName(NativeNameType.Const, "GL_CLIP_PLANE2")] + [NativeName(NativeNameType.Value, "0x3002")] + public const int GL_CLIP_PLANE2 = 0x3002; + + [NativeName(NativeNameType.Const, "GL_CLIP_PLANE3")] + [NativeName(NativeNameType.Value, "0x3003")] + public const int GL_CLIP_PLANE3 = 0x3003; + + [NativeName(NativeNameType.Const, "GL_CLIP_PLANE4")] + [NativeName(NativeNameType.Value, "0x3004")] + public const int GL_CLIP_PLANE4 = 0x3004; + + [NativeName(NativeNameType.Const, "GL_CLIP_PLANE5")] + [NativeName(NativeNameType.Value, "0x3005")] + public const int GL_CLIP_PLANE5 = 0x3005; + + [NativeName(NativeNameType.Const, "GL_BYTE")] + [NativeName(NativeNameType.Value, "0x1400")] + public const int GL_BYTE = 0x1400; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_BYTE")] + [NativeName(NativeNameType.Value, "0x1401")] + public const int GL_UNSIGNED_BYTE = 0x1401; + + [NativeName(NativeNameType.Const, "GL_SHORT")] + [NativeName(NativeNameType.Value, "0x1402")] + public const int GL_SHORT = 0x1402; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_SHORT")] + [NativeName(NativeNameType.Value, "0x1403")] + public const int GL_UNSIGNED_SHORT = 0x1403; + + [NativeName(NativeNameType.Const, "GL_INT")] + [NativeName(NativeNameType.Value, "0x1404")] + public const int GL_INT = 0x1404; + + [NativeName(NativeNameType.Const, "GL_UNSIGNED_INT")] + [NativeName(NativeNameType.Value, "0x1405")] + public const int GL_UNSIGNED_INT = 0x1405; + + [NativeName(NativeNameType.Const, "GL_FLOAT")] + [NativeName(NativeNameType.Value, "0x1406")] + public const int GL_FLOAT = 0x1406; + + [NativeName(NativeNameType.Const, "GL_2_BYTES")] + [NativeName(NativeNameType.Value, "0x1407")] + public const int GL_2_BYTES = 0x1407; + + [NativeName(NativeNameType.Const, "GL_3_BYTES")] + [NativeName(NativeNameType.Value, "0x1408")] + public const int GL_3_BYTES = 0x1408; + + [NativeName(NativeNameType.Const, "GL_4_BYTES")] + [NativeName(NativeNameType.Value, "0x1409")] + public const int GL_4_BYTES = 0x1409; + + [NativeName(NativeNameType.Const, "GL_DOUBLE")] + [NativeName(NativeNameType.Value, "0x140A")] + public const int GL_DOUBLE = 0x140A; + + [NativeName(NativeNameType.Const, "GL_NONE")] + [NativeName(NativeNameType.Value, "0")] + public const int GL_NONE = 0; + + [NativeName(NativeNameType.Const, "GL_FRONT_LEFT")] + [NativeName(NativeNameType.Value, "0x0400")] + public const int GL_FRONT_LEFT = 0x0400; + + [NativeName(NativeNameType.Const, "GL_FRONT_RIGHT")] + [NativeName(NativeNameType.Value, "0x0401")] + public const int GL_FRONT_RIGHT = 0x0401; + + [NativeName(NativeNameType.Const, "GL_BACK_LEFT")] + [NativeName(NativeNameType.Value, "0x0402")] + public const int GL_BACK_LEFT = 0x0402; + + [NativeName(NativeNameType.Const, "GL_BACK_RIGHT")] + [NativeName(NativeNameType.Value, "0x0403")] + public const int GL_BACK_RIGHT = 0x0403; + + [NativeName(NativeNameType.Const, "GL_FRONT")] + [NativeName(NativeNameType.Value, "0x0404")] + public const int GL_FRONT = 0x0404; + + [NativeName(NativeNameType.Const, "GL_BACK")] + [NativeName(NativeNameType.Value, "0x0405")] + public const int GL_BACK = 0x0405; + + [NativeName(NativeNameType.Const, "GL_LEFT")] + [NativeName(NativeNameType.Value, "0x0406")] + public const int GL_LEFT = 0x0406; + + [NativeName(NativeNameType.Const, "GL_RIGHT")] + [NativeName(NativeNameType.Value, "0x0407")] + public const int GL_RIGHT = 0x0407; + + [NativeName(NativeNameType.Const, "GL_FRONT_AND_BACK")] + [NativeName(NativeNameType.Value, "0x0408")] + public const int GL_FRONT_AND_BACK = 0x0408; + + [NativeName(NativeNameType.Const, "GL_AUX0")] + [NativeName(NativeNameType.Value, "0x0409")] + public const int GL_AUX0 = 0x0409; + + [NativeName(NativeNameType.Const, "GL_AUX1")] + [NativeName(NativeNameType.Value, "0x040A")] + public const int GL_AUX1 = 0x040A; + + [NativeName(NativeNameType.Const, "GL_AUX2")] + [NativeName(NativeNameType.Value, "0x040B")] + public const int GL_AUX2 = 0x040B; + + [NativeName(NativeNameType.Const, "GL_AUX3")] + [NativeName(NativeNameType.Value, "0x040C")] + public const int GL_AUX3 = 0x040C; + + [NativeName(NativeNameType.Const, "GL_NO_ERROR")] + [NativeName(NativeNameType.Value, "0")] + public const int GL_NO_ERROR = 0; + + [NativeName(NativeNameType.Const, "GL_INVALID_ENUM")] + [NativeName(NativeNameType.Value, "0x0500")] + public const int GL_INVALID_ENUM = 0x0500; + + [NativeName(NativeNameType.Const, "GL_INVALID_VALUE")] + [NativeName(NativeNameType.Value, "0x0501")] + public const int GL_INVALID_VALUE = 0x0501; + + [NativeName(NativeNameType.Const, "GL_INVALID_OPERATION")] + [NativeName(NativeNameType.Value, "0x0502")] + public const int GL_INVALID_OPERATION = 0x0502; + + [NativeName(NativeNameType.Const, "GL_STACK_OVERFLOW")] + [NativeName(NativeNameType.Value, "0x0503")] + public const int GL_STACK_OVERFLOW = 0x0503; + + [NativeName(NativeNameType.Const, "GL_STACK_UNDERFLOW")] + [NativeName(NativeNameType.Value, "0x0504")] + public const int GL_STACK_UNDERFLOW = 0x0504; + + [NativeName(NativeNameType.Const, "GL_OUT_OF_MEMORY")] + [NativeName(NativeNameType.Value, "0x0505")] + public const int GL_OUT_OF_MEMORY = 0x0505; + + [NativeName(NativeNameType.Const, "GL_2D")] + [NativeName(NativeNameType.Value, "0x0600")] + public const int GL_2D = 0x0600; + + [NativeName(NativeNameType.Const, "GL_3D")] + [NativeName(NativeNameType.Value, "0x0601")] + public const int GL_3D = 0x0601; + + [NativeName(NativeNameType.Const, "GL_3D_COLOR")] + [NativeName(NativeNameType.Value, "0x0602")] + public const int GL_3D_COLOR = 0x0602; + + [NativeName(NativeNameType.Const, "GL_3D_COLOR_TEXTURE")] + [NativeName(NativeNameType.Value, "0x0603")] + public const int GL_3D_COLOR_TEXTURE = 0x0603; + + [NativeName(NativeNameType.Const, "GL_4D_COLOR_TEXTURE")] + [NativeName(NativeNameType.Value, "0x0604")] + public const int GL_4D_COLOR_TEXTURE = 0x0604; + + [NativeName(NativeNameType.Const, "GL_PASS_THROUGH_TOKEN")] + [NativeName(NativeNameType.Value, "0x0700")] + public const int GL_PASS_THROUGH_TOKEN = 0x0700; + + [NativeName(NativeNameType.Const, "GL_POINT_TOKEN")] + [NativeName(NativeNameType.Value, "0x0701")] + public const int GL_POINT_TOKEN = 0x0701; + + [NativeName(NativeNameType.Const, "GL_LINE_TOKEN")] + [NativeName(NativeNameType.Value, "0x0702")] + public const int GL_LINE_TOKEN = 0x0702; + + [NativeName(NativeNameType.Const, "GL_POLYGON_TOKEN")] + [NativeName(NativeNameType.Value, "0x0703")] + public const int GL_POLYGON_TOKEN = 0x0703; + + [NativeName(NativeNameType.Const, "GL_BITMAP_TOKEN")] + [NativeName(NativeNameType.Value, "0x0704")] + public const int GL_BITMAP_TOKEN = 0x0704; + + [NativeName(NativeNameType.Const, "GL_DRAW_PIXEL_TOKEN")] + [NativeName(NativeNameType.Value, "0x0705")] + public const int GL_DRAW_PIXEL_TOKEN = 0x0705; + + [NativeName(NativeNameType.Const, "GL_COPY_PIXEL_TOKEN")] + [NativeName(NativeNameType.Value, "0x0706")] + public const int GL_COPY_PIXEL_TOKEN = 0x0706; + + [NativeName(NativeNameType.Const, "GL_LINE_RESET_TOKEN")] + [NativeName(NativeNameType.Value, "0x0707")] + public const int GL_LINE_RESET_TOKEN = 0x0707; + + [NativeName(NativeNameType.Const, "GL_EXP")] + [NativeName(NativeNameType.Value, "0x0800")] + public const int GL_EXP = 0x0800; + + [NativeName(NativeNameType.Const, "GL_EXP2")] + [NativeName(NativeNameType.Value, "0x0801")] + public const int GL_EXP2 = 0x0801; + + [NativeName(NativeNameType.Const, "GL_CW")] + [NativeName(NativeNameType.Value, "0x0900")] + public const int GL_CW = 0x0900; + + [NativeName(NativeNameType.Const, "GL_CCW")] + [NativeName(NativeNameType.Value, "0x0901")] + public const int GL_CCW = 0x0901; + + [NativeName(NativeNameType.Const, "GL_COEFF")] + [NativeName(NativeNameType.Value, "0x0A00")] + public const int GL_COEFF = 0x0A00; + + [NativeName(NativeNameType.Const, "GL_ORDER")] + [NativeName(NativeNameType.Value, "0x0A01")] + public const int GL_ORDER = 0x0A01; + + [NativeName(NativeNameType.Const, "GL_DOMAIN")] + [NativeName(NativeNameType.Value, "0x0A02")] + public const int GL_DOMAIN = 0x0A02; + + [NativeName(NativeNameType.Const, "GL_CURRENT_COLOR")] + [NativeName(NativeNameType.Value, "0x0B00")] + public const int GL_CURRENT_COLOR = 0x0B00; + + [NativeName(NativeNameType.Const, "GL_CURRENT_INDEX")] + [NativeName(NativeNameType.Value, "0x0B01")] + public const int GL_CURRENT_INDEX = 0x0B01; + + [NativeName(NativeNameType.Const, "GL_CURRENT_NORMAL")] + [NativeName(NativeNameType.Value, "0x0B02")] + public const int GL_CURRENT_NORMAL = 0x0B02; + + [NativeName(NativeNameType.Const, "GL_CURRENT_TEXTURE_COORDS")] + [NativeName(NativeNameType.Value, "0x0B03")] + public const int GL_CURRENT_TEXTURE_COORDS = 0x0B03; + + [NativeName(NativeNameType.Const, "GL_CURRENT_RASTER_COLOR")] + [NativeName(NativeNameType.Value, "0x0B04")] + public const int GL_CURRENT_RASTER_COLOR = 0x0B04; + + [NativeName(NativeNameType.Const, "GL_CURRENT_RASTER_INDEX")] + [NativeName(NativeNameType.Value, "0x0B05")] + public const int GL_CURRENT_RASTER_INDEX = 0x0B05; + + [NativeName(NativeNameType.Const, "GL_CURRENT_RASTER_TEXTURE_COORDS")] + [NativeName(NativeNameType.Value, "0x0B06")] + public const int GL_CURRENT_RASTER_TEXTURE_COORDS = 0x0B06; + + [NativeName(NativeNameType.Const, "GL_CURRENT_RASTER_POSITION")] + [NativeName(NativeNameType.Value, "0x0B07")] + public const int GL_CURRENT_RASTER_POSITION = 0x0B07; + + [NativeName(NativeNameType.Const, "GL_CURRENT_RASTER_POSITION_VALID")] + [NativeName(NativeNameType.Value, "0x0B08")] + public const int GL_CURRENT_RASTER_POSITION_VALID = 0x0B08; + + [NativeName(NativeNameType.Const, "GL_CURRENT_RASTER_DISTANCE")] + [NativeName(NativeNameType.Value, "0x0B09")] + public const int GL_CURRENT_RASTER_DISTANCE = 0x0B09; + + [NativeName(NativeNameType.Const, "GL_POINT_SMOOTH")] + [NativeName(NativeNameType.Value, "0x0B10")] + public const int GL_POINT_SMOOTH = 0x0B10; + + [NativeName(NativeNameType.Const, "GL_POINT_SIZE")] + [NativeName(NativeNameType.Value, "0x0B11")] + public const int GL_POINT_SIZE = 0x0B11; + + [NativeName(NativeNameType.Const, "GL_POINT_SIZE_RANGE")] + [NativeName(NativeNameType.Value, "0x0B12")] + public const int GL_POINT_SIZE_RANGE = 0x0B12; + + [NativeName(NativeNameType.Const, "GL_POINT_SIZE_GRANULARITY")] + [NativeName(NativeNameType.Value, "0x0B13")] + public const int GL_POINT_SIZE_GRANULARITY = 0x0B13; + + [NativeName(NativeNameType.Const, "GL_LINE_SMOOTH")] + [NativeName(NativeNameType.Value, "0x0B20")] + public const int GL_LINE_SMOOTH = 0x0B20; + + [NativeName(NativeNameType.Const, "GL_LINE_WIDTH")] + [NativeName(NativeNameType.Value, "0x0B21")] + public const int GL_LINE_WIDTH = 0x0B21; + + [NativeName(NativeNameType.Const, "GL_LINE_WIDTH_RANGE")] + [NativeName(NativeNameType.Value, "0x0B22")] + public const int GL_LINE_WIDTH_RANGE = 0x0B22; + + [NativeName(NativeNameType.Const, "GL_LINE_WIDTH_GRANULARITY")] + [NativeName(NativeNameType.Value, "0x0B23")] + public const int GL_LINE_WIDTH_GRANULARITY = 0x0B23; + + [NativeName(NativeNameType.Const, "GL_LINE_STIPPLE")] + [NativeName(NativeNameType.Value, "0x0B24")] + public const int GL_LINE_STIPPLE = 0x0B24; + + [NativeName(NativeNameType.Const, "GL_LINE_STIPPLE_PATTERN")] + [NativeName(NativeNameType.Value, "0x0B25")] + public const int GL_LINE_STIPPLE_PATTERN = 0x0B25; + + [NativeName(NativeNameType.Const, "GL_LINE_STIPPLE_REPEAT")] + [NativeName(NativeNameType.Value, "0x0B26")] + public const int GL_LINE_STIPPLE_REPEAT = 0x0B26; + + [NativeName(NativeNameType.Const, "GL_LIST_MODE")] + [NativeName(NativeNameType.Value, "0x0B30")] + public const int GL_LIST_MODE = 0x0B30; + + [NativeName(NativeNameType.Const, "GL_MAX_LIST_NESTING")] + [NativeName(NativeNameType.Value, "0x0B31")] + public const int GL_MAX_LIST_NESTING = 0x0B31; + + [NativeName(NativeNameType.Const, "GL_LIST_BASE")] + [NativeName(NativeNameType.Value, "0x0B32")] + public const int GL_LIST_BASE = 0x0B32; + + [NativeName(NativeNameType.Const, "GL_LIST_INDEX")] + [NativeName(NativeNameType.Value, "0x0B33")] + public const int GL_LIST_INDEX = 0x0B33; + + [NativeName(NativeNameType.Const, "GL_POLYGON_MODE")] + [NativeName(NativeNameType.Value, "0x0B40")] + public const int GL_POLYGON_MODE = 0x0B40; + + [NativeName(NativeNameType.Const, "GL_POLYGON_SMOOTH")] + [NativeName(NativeNameType.Value, "0x0B41")] + public const int GL_POLYGON_SMOOTH = 0x0B41; + + [NativeName(NativeNameType.Const, "GL_POLYGON_STIPPLE")] + [NativeName(NativeNameType.Value, "0x0B42")] + public const int GL_POLYGON_STIPPLE = 0x0B42; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG")] + [NativeName(NativeNameType.Value, "0x0B43")] + public const int GL_EDGE_FLAG = 0x0B43; + + [NativeName(NativeNameType.Const, "GL_CULL_FACE")] + [NativeName(NativeNameType.Value, "0x0B44")] + public const int GL_CULL_FACE = 0x0B44; + + [NativeName(NativeNameType.Const, "GL_CULL_FACE_MODE")] + [NativeName(NativeNameType.Value, "0x0B45")] + public const int GL_CULL_FACE_MODE = 0x0B45; + + [NativeName(NativeNameType.Const, "GL_FRONT_FACE")] + [NativeName(NativeNameType.Value, "0x0B46")] + public const int GL_FRONT_FACE = 0x0B46; + + [NativeName(NativeNameType.Const, "GL_LIGHTING")] + [NativeName(NativeNameType.Value, "0x0B50")] + public const int GL_LIGHTING = 0x0B50; + + [NativeName(NativeNameType.Const, "GL_LIGHT_MODEL_LOCAL_VIEWER")] + [NativeName(NativeNameType.Value, "0x0B51")] + public const int GL_LIGHT_MODEL_LOCAL_VIEWER = 0x0B51; + + [NativeName(NativeNameType.Const, "GL_LIGHT_MODEL_TWO_SIDE")] + [NativeName(NativeNameType.Value, "0x0B52")] + public const int GL_LIGHT_MODEL_TWO_SIDE = 0x0B52; + + [NativeName(NativeNameType.Const, "GL_LIGHT_MODEL_AMBIENT")] + [NativeName(NativeNameType.Value, "0x0B53")] + public const int GL_LIGHT_MODEL_AMBIENT = 0x0B53; + + [NativeName(NativeNameType.Const, "GL_SHADE_MODEL")] + [NativeName(NativeNameType.Value, "0x0B54")] + public const int GL_SHADE_MODEL = 0x0B54; + + [NativeName(NativeNameType.Const, "GL_COLOR_MATERIAL_FACE")] + [NativeName(NativeNameType.Value, "0x0B55")] + public const int GL_COLOR_MATERIAL_FACE = 0x0B55; + + [NativeName(NativeNameType.Const, "GL_COLOR_MATERIAL_PARAMETER")] + [NativeName(NativeNameType.Value, "0x0B56")] + public const int GL_COLOR_MATERIAL_PARAMETER = 0x0B56; + + [NativeName(NativeNameType.Const, "GL_COLOR_MATERIAL")] + [NativeName(NativeNameType.Value, "0x0B57")] + public const int GL_COLOR_MATERIAL = 0x0B57; + + [NativeName(NativeNameType.Const, "GL_FOG")] + [NativeName(NativeNameType.Value, "0x0B60")] + public const int GL_FOG = 0x0B60; + + [NativeName(NativeNameType.Const, "GL_FOG_INDEX")] + [NativeName(NativeNameType.Value, "0x0B61")] + public const int GL_FOG_INDEX = 0x0B61; + + [NativeName(NativeNameType.Const, "GL_FOG_DENSITY")] + [NativeName(NativeNameType.Value, "0x0B62")] + public const int GL_FOG_DENSITY = 0x0B62; + + [NativeName(NativeNameType.Const, "GL_FOG_START")] + [NativeName(NativeNameType.Value, "0x0B63")] + public const int GL_FOG_START = 0x0B63; + + [NativeName(NativeNameType.Const, "GL_FOG_END")] + [NativeName(NativeNameType.Value, "0x0B64")] + public const int GL_FOG_END = 0x0B64; + + [NativeName(NativeNameType.Const, "GL_FOG_MODE")] + [NativeName(NativeNameType.Value, "0x0B65")] + public const int GL_FOG_MODE = 0x0B65; + + [NativeName(NativeNameType.Const, "GL_FOG_COLOR")] + [NativeName(NativeNameType.Value, "0x0B66")] + public const int GL_FOG_COLOR = 0x0B66; + + [NativeName(NativeNameType.Const, "GL_DEPTH_RANGE")] + [NativeName(NativeNameType.Value, "0x0B70")] + public const int GL_DEPTH_RANGE = 0x0B70; + + [NativeName(NativeNameType.Const, "GL_DEPTH_TEST")] + [NativeName(NativeNameType.Value, "0x0B71")] + public const int GL_DEPTH_TEST = 0x0B71; + + [NativeName(NativeNameType.Const, "GL_DEPTH_WRITEMASK")] + [NativeName(NativeNameType.Value, "0x0B72")] + public const int GL_DEPTH_WRITEMASK = 0x0B72; + + [NativeName(NativeNameType.Const, "GL_DEPTH_CLEAR_VALUE")] + [NativeName(NativeNameType.Value, "0x0B73")] + public const int GL_DEPTH_CLEAR_VALUE = 0x0B73; + + [NativeName(NativeNameType.Const, "GL_DEPTH_FUNC")] + [NativeName(NativeNameType.Value, "0x0B74")] + public const int GL_DEPTH_FUNC = 0x0B74; + + [NativeName(NativeNameType.Const, "GL_ACCUM_CLEAR_VALUE")] + [NativeName(NativeNameType.Value, "0x0B80")] + public const int GL_ACCUM_CLEAR_VALUE = 0x0B80; + + [NativeName(NativeNameType.Const, "GL_STENCIL_TEST")] + [NativeName(NativeNameType.Value, "0x0B90")] + public const int GL_STENCIL_TEST = 0x0B90; + + [NativeName(NativeNameType.Const, "GL_STENCIL_CLEAR_VALUE")] + [NativeName(NativeNameType.Value, "0x0B91")] + public const int GL_STENCIL_CLEAR_VALUE = 0x0B91; + + [NativeName(NativeNameType.Const, "GL_STENCIL_FUNC")] + [NativeName(NativeNameType.Value, "0x0B92")] + public const int GL_STENCIL_FUNC = 0x0B92; + + [NativeName(NativeNameType.Const, "GL_STENCIL_VALUE_MASK")] + [NativeName(NativeNameType.Value, "0x0B93")] + public const int GL_STENCIL_VALUE_MASK = 0x0B93; + + [NativeName(NativeNameType.Const, "GL_STENCIL_FAIL")] + [NativeName(NativeNameType.Value, "0x0B94")] + public const int GL_STENCIL_FAIL = 0x0B94; + + [NativeName(NativeNameType.Const, "GL_STENCIL_PASS_DEPTH_FAIL")] + [NativeName(NativeNameType.Value, "0x0B95")] + public const int GL_STENCIL_PASS_DEPTH_FAIL = 0x0B95; + + [NativeName(NativeNameType.Const, "GL_STENCIL_PASS_DEPTH_PASS")] + [NativeName(NativeNameType.Value, "0x0B96")] + public const int GL_STENCIL_PASS_DEPTH_PASS = 0x0B96; + + [NativeName(NativeNameType.Const, "GL_STENCIL_REF")] + [NativeName(NativeNameType.Value, "0x0B97")] + public const int GL_STENCIL_REF = 0x0B97; + + [NativeName(NativeNameType.Const, "GL_STENCIL_WRITEMASK")] + [NativeName(NativeNameType.Value, "0x0B98")] + public const int GL_STENCIL_WRITEMASK = 0x0B98; + + [NativeName(NativeNameType.Const, "GL_MATRIX_MODE")] + [NativeName(NativeNameType.Value, "0x0BA0")] + public const int GL_MATRIX_MODE = 0x0BA0; + + [NativeName(NativeNameType.Const, "GL_NORMALIZE")] + [NativeName(NativeNameType.Value, "0x0BA1")] + public const int GL_NORMALIZE = 0x0BA1; + + [NativeName(NativeNameType.Const, "GL_VIEWPORT")] + [NativeName(NativeNameType.Value, "0x0BA2")] + public const int GL_VIEWPORT = 0x0BA2; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0BA3")] + public const int GL_MODELVIEW_STACK_DEPTH = 0x0BA3; + + [NativeName(NativeNameType.Const, "GL_PROJECTION_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0BA4")] + public const int GL_PROJECTION_STACK_DEPTH = 0x0BA4; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0BA5")] + public const int GL_TEXTURE_STACK_DEPTH = 0x0BA5; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW_MATRIX")] + [NativeName(NativeNameType.Value, "0x0BA6")] + public const int GL_MODELVIEW_MATRIX = 0x0BA6; + + [NativeName(NativeNameType.Const, "GL_PROJECTION_MATRIX")] + [NativeName(NativeNameType.Value, "0x0BA7")] + public const int GL_PROJECTION_MATRIX = 0x0BA7; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MATRIX")] + [NativeName(NativeNameType.Value, "0x0BA8")] + public const int GL_TEXTURE_MATRIX = 0x0BA8; + + [NativeName(NativeNameType.Const, "GL_ATTRIB_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0BB0")] + public const int GL_ATTRIB_STACK_DEPTH = 0x0BB0; + + [NativeName(NativeNameType.Const, "GL_CLIENT_ATTRIB_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0BB1")] + public const int GL_CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1; + + [NativeName(NativeNameType.Const, "GL_ALPHA_TEST")] + [NativeName(NativeNameType.Value, "0x0BC0")] + public const int GL_ALPHA_TEST = 0x0BC0; + + [NativeName(NativeNameType.Const, "GL_ALPHA_TEST_FUNC")] + [NativeName(NativeNameType.Value, "0x0BC1")] + public const int GL_ALPHA_TEST_FUNC = 0x0BC1; + + [NativeName(NativeNameType.Const, "GL_ALPHA_TEST_REF")] + [NativeName(NativeNameType.Value, "0x0BC2")] + public const int GL_ALPHA_TEST_REF = 0x0BC2; + + [NativeName(NativeNameType.Const, "GL_DITHER")] + [NativeName(NativeNameType.Value, "0x0BD0")] + public const int GL_DITHER = 0x0BD0; + + [NativeName(NativeNameType.Const, "GL_BLEND_DST")] + [NativeName(NativeNameType.Value, "0x0BE0")] + public const int GL_BLEND_DST = 0x0BE0; + + [NativeName(NativeNameType.Const, "GL_BLEND_SRC")] + [NativeName(NativeNameType.Value, "0x0BE1")] + public const int GL_BLEND_SRC = 0x0BE1; + + [NativeName(NativeNameType.Const, "GL_BLEND")] + [NativeName(NativeNameType.Value, "0x0BE2")] + public const int GL_BLEND = 0x0BE2; + + [NativeName(NativeNameType.Const, "GL_LOGIC_OP_MODE")] + [NativeName(NativeNameType.Value, "0x0BF0")] + public const int GL_LOGIC_OP_MODE = 0x0BF0; + + [NativeName(NativeNameType.Const, "GL_INDEX_LOGIC_OP")] + [NativeName(NativeNameType.Value, "0x0BF1")] + public const int GL_INDEX_LOGIC_OP = 0x0BF1; + + [NativeName(NativeNameType.Const, "GL_COLOR_LOGIC_OP")] + [NativeName(NativeNameType.Value, "0x0BF2")] + public const int GL_COLOR_LOGIC_OP = 0x0BF2; + + [NativeName(NativeNameType.Const, "GL_AUX_BUFFERS")] + [NativeName(NativeNameType.Value, "0x0C00")] + public const int GL_AUX_BUFFERS = 0x0C00; + + [NativeName(NativeNameType.Const, "GL_DRAW_BUFFER")] + [NativeName(NativeNameType.Value, "0x0C01")] + public const int GL_DRAW_BUFFER = 0x0C01; + + [NativeName(NativeNameType.Const, "GL_READ_BUFFER")] + [NativeName(NativeNameType.Value, "0x0C02")] + public const int GL_READ_BUFFER = 0x0C02; + + [NativeName(NativeNameType.Const, "GL_SCISSOR_BOX")] + [NativeName(NativeNameType.Value, "0x0C10")] + public const int GL_SCISSOR_BOX = 0x0C10; + + [NativeName(NativeNameType.Const, "GL_SCISSOR_TEST")] + [NativeName(NativeNameType.Value, "0x0C11")] + public const int GL_SCISSOR_TEST = 0x0C11; + + [NativeName(NativeNameType.Const, "GL_INDEX_CLEAR_VALUE")] + [NativeName(NativeNameType.Value, "0x0C20")] + public const int GL_INDEX_CLEAR_VALUE = 0x0C20; + + [NativeName(NativeNameType.Const, "GL_INDEX_WRITEMASK")] + [NativeName(NativeNameType.Value, "0x0C21")] + public const int GL_INDEX_WRITEMASK = 0x0C21; + + [NativeName(NativeNameType.Const, "GL_COLOR_CLEAR_VALUE")] + [NativeName(NativeNameType.Value, "0x0C22")] + public const int GL_COLOR_CLEAR_VALUE = 0x0C22; + + [NativeName(NativeNameType.Const, "GL_COLOR_WRITEMASK")] + [NativeName(NativeNameType.Value, "0x0C23")] + public const int GL_COLOR_WRITEMASK = 0x0C23; + + [NativeName(NativeNameType.Const, "GL_INDEX_MODE")] + [NativeName(NativeNameType.Value, "0x0C30")] + public const int GL_INDEX_MODE = 0x0C30; + + [NativeName(NativeNameType.Const, "GL_RGBA_MODE")] + [NativeName(NativeNameType.Value, "0x0C31")] + public const int GL_RGBA_MODE = 0x0C31; + + [NativeName(NativeNameType.Const, "GL_DOUBLEBUFFER")] + [NativeName(NativeNameType.Value, "0x0C32")] + public const int GL_DOUBLEBUFFER = 0x0C32; + + [NativeName(NativeNameType.Const, "GL_STEREO")] + [NativeName(NativeNameType.Value, "0x0C33")] + public const int GL_STEREO = 0x0C33; + + [NativeName(NativeNameType.Const, "GL_RENDER_MODE")] + [NativeName(NativeNameType.Value, "0x0C40")] + public const int GL_RENDER_MODE = 0x0C40; + + [NativeName(NativeNameType.Const, "GL_PERSPECTIVE_CORRECTION_HINT")] + [NativeName(NativeNameType.Value, "0x0C50")] + public const int GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50; + + [NativeName(NativeNameType.Const, "GL_POINT_SMOOTH_HINT")] + [NativeName(NativeNameType.Value, "0x0C51")] + public const int GL_POINT_SMOOTH_HINT = 0x0C51; + + [NativeName(NativeNameType.Const, "GL_LINE_SMOOTH_HINT")] + [NativeName(NativeNameType.Value, "0x0C52")] + public const int GL_LINE_SMOOTH_HINT = 0x0C52; + + [NativeName(NativeNameType.Const, "GL_POLYGON_SMOOTH_HINT")] + [NativeName(NativeNameType.Value, "0x0C53")] + public const int GL_POLYGON_SMOOTH_HINT = 0x0C53; + + [NativeName(NativeNameType.Const, "GL_FOG_HINT")] + [NativeName(NativeNameType.Value, "0x0C54")] + public const int GL_FOG_HINT = 0x0C54; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GEN_S")] + [NativeName(NativeNameType.Value, "0x0C60")] + public const int GL_TEXTURE_GEN_S = 0x0C60; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GEN_T")] + [NativeName(NativeNameType.Value, "0x0C61")] + public const int GL_TEXTURE_GEN_T = 0x0C61; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GEN_R")] + [NativeName(NativeNameType.Value, "0x0C62")] + public const int GL_TEXTURE_GEN_R = 0x0C62; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GEN_Q")] + [NativeName(NativeNameType.Value, "0x0C63")] + public const int GL_TEXTURE_GEN_Q = 0x0C63; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_I_TO_I")] + [NativeName(NativeNameType.Value, "0x0C70")] + public const int GL_PIXEL_MAP_I_TO_I = 0x0C70; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_S_TO_S")] + [NativeName(NativeNameType.Value, "0x0C71")] + public const int GL_PIXEL_MAP_S_TO_S = 0x0C71; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_I_TO_R")] + [NativeName(NativeNameType.Value, "0x0C72")] + public const int GL_PIXEL_MAP_I_TO_R = 0x0C72; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_I_TO_G")] + [NativeName(NativeNameType.Value, "0x0C73")] + public const int GL_PIXEL_MAP_I_TO_G = 0x0C73; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_I_TO_B")] + [NativeName(NativeNameType.Value, "0x0C74")] + public const int GL_PIXEL_MAP_I_TO_B = 0x0C74; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_I_TO_A")] + [NativeName(NativeNameType.Value, "0x0C75")] + public const int GL_PIXEL_MAP_I_TO_A = 0x0C75; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_R_TO_R")] + [NativeName(NativeNameType.Value, "0x0C76")] + public const int GL_PIXEL_MAP_R_TO_R = 0x0C76; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_G_TO_G")] + [NativeName(NativeNameType.Value, "0x0C77")] + public const int GL_PIXEL_MAP_G_TO_G = 0x0C77; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_B_TO_B")] + [NativeName(NativeNameType.Value, "0x0C78")] + public const int GL_PIXEL_MAP_B_TO_B = 0x0C78; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_A_TO_A")] + [NativeName(NativeNameType.Value, "0x0C79")] + public const int GL_PIXEL_MAP_A_TO_A = 0x0C79; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_I_TO_I_SIZE")] + [NativeName(NativeNameType.Value, "0x0CB0")] + public const int GL_PIXEL_MAP_I_TO_I_SIZE = 0x0CB0; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_S_TO_S_SIZE")] + [NativeName(NativeNameType.Value, "0x0CB1")] + public const int GL_PIXEL_MAP_S_TO_S_SIZE = 0x0CB1; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_I_TO_R_SIZE")] + [NativeName(NativeNameType.Value, "0x0CB2")] + public const int GL_PIXEL_MAP_I_TO_R_SIZE = 0x0CB2; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_I_TO_G_SIZE")] + [NativeName(NativeNameType.Value, "0x0CB3")] + public const int GL_PIXEL_MAP_I_TO_G_SIZE = 0x0CB3; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_I_TO_B_SIZE")] + [NativeName(NativeNameType.Value, "0x0CB4")] + public const int GL_PIXEL_MAP_I_TO_B_SIZE = 0x0CB4; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_I_TO_A_SIZE")] + [NativeName(NativeNameType.Value, "0x0CB5")] + public const int GL_PIXEL_MAP_I_TO_A_SIZE = 0x0CB5; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_R_TO_R_SIZE")] + [NativeName(NativeNameType.Value, "0x0CB6")] + public const int GL_PIXEL_MAP_R_TO_R_SIZE = 0x0CB6; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_G_TO_G_SIZE")] + [NativeName(NativeNameType.Value, "0x0CB7")] + public const int GL_PIXEL_MAP_G_TO_G_SIZE = 0x0CB7; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_B_TO_B_SIZE")] + [NativeName(NativeNameType.Value, "0x0CB8")] + public const int GL_PIXEL_MAP_B_TO_B_SIZE = 0x0CB8; + + [NativeName(NativeNameType.Const, "GL_PIXEL_MAP_A_TO_A_SIZE")] + [NativeName(NativeNameType.Value, "0x0CB9")] + public const int GL_PIXEL_MAP_A_TO_A_SIZE = 0x0CB9; + + [NativeName(NativeNameType.Const, "GL_UNPACK_SWAP_BYTES")] + [NativeName(NativeNameType.Value, "0x0CF0")] + public const int GL_UNPACK_SWAP_BYTES = 0x0CF0; + + [NativeName(NativeNameType.Const, "GL_UNPACK_LSB_FIRST")] + [NativeName(NativeNameType.Value, "0x0CF1")] + public const int GL_UNPACK_LSB_FIRST = 0x0CF1; + + [NativeName(NativeNameType.Const, "GL_UNPACK_ROW_LENGTH")] + [NativeName(NativeNameType.Value, "0x0CF2")] + public const int GL_UNPACK_ROW_LENGTH = 0x0CF2; + + [NativeName(NativeNameType.Const, "GL_UNPACK_SKIP_ROWS")] + [NativeName(NativeNameType.Value, "0x0CF3")] + public const int GL_UNPACK_SKIP_ROWS = 0x0CF3; + + [NativeName(NativeNameType.Const, "GL_UNPACK_SKIP_PIXELS")] + [NativeName(NativeNameType.Value, "0x0CF4")] + public const int GL_UNPACK_SKIP_PIXELS = 0x0CF4; + + [NativeName(NativeNameType.Const, "GL_UNPACK_ALIGNMENT")] + [NativeName(NativeNameType.Value, "0x0CF5")] + public const int GL_UNPACK_ALIGNMENT = 0x0CF5; + + [NativeName(NativeNameType.Const, "GL_PACK_SWAP_BYTES")] + [NativeName(NativeNameType.Value, "0x0D00")] + public const int GL_PACK_SWAP_BYTES = 0x0D00; + + [NativeName(NativeNameType.Const, "GL_PACK_LSB_FIRST")] + [NativeName(NativeNameType.Value, "0x0D01")] + public const int GL_PACK_LSB_FIRST = 0x0D01; + + [NativeName(NativeNameType.Const, "GL_PACK_ROW_LENGTH")] + [NativeName(NativeNameType.Value, "0x0D02")] + public const int GL_PACK_ROW_LENGTH = 0x0D02; + + [NativeName(NativeNameType.Const, "GL_PACK_SKIP_ROWS")] + [NativeName(NativeNameType.Value, "0x0D03")] + public const int GL_PACK_SKIP_ROWS = 0x0D03; + + [NativeName(NativeNameType.Const, "GL_PACK_SKIP_PIXELS")] + [NativeName(NativeNameType.Value, "0x0D04")] + public const int GL_PACK_SKIP_PIXELS = 0x0D04; + + [NativeName(NativeNameType.Const, "GL_PACK_ALIGNMENT")] + [NativeName(NativeNameType.Value, "0x0D05")] + public const int GL_PACK_ALIGNMENT = 0x0D05; + + [NativeName(NativeNameType.Const, "GL_MAP_COLOR")] + [NativeName(NativeNameType.Value, "0x0D10")] + public const int GL_MAP_COLOR = 0x0D10; + + [NativeName(NativeNameType.Const, "GL_MAP_STENCIL")] + [NativeName(NativeNameType.Value, "0x0D11")] + public const int GL_MAP_STENCIL = 0x0D11; + + [NativeName(NativeNameType.Const, "GL_INDEX_SHIFT")] + [NativeName(NativeNameType.Value, "0x0D12")] + public const int GL_INDEX_SHIFT = 0x0D12; + + [NativeName(NativeNameType.Const, "GL_INDEX_OFFSET")] + [NativeName(NativeNameType.Value, "0x0D13")] + public const int GL_INDEX_OFFSET = 0x0D13; + + [NativeName(NativeNameType.Const, "GL_RED_SCALE")] + [NativeName(NativeNameType.Value, "0x0D14")] + public const int GL_RED_SCALE = 0x0D14; + + [NativeName(NativeNameType.Const, "GL_RED_BIAS")] + [NativeName(NativeNameType.Value, "0x0D15")] + public const int GL_RED_BIAS = 0x0D15; + + [NativeName(NativeNameType.Const, "GL_ZOOM_X")] + [NativeName(NativeNameType.Value, "0x0D16")] + public const int GL_ZOOM_X = 0x0D16; + + [NativeName(NativeNameType.Const, "GL_ZOOM_Y")] + [NativeName(NativeNameType.Value, "0x0D17")] + public const int GL_ZOOM_Y = 0x0D17; + + [NativeName(NativeNameType.Const, "GL_GREEN_SCALE")] + [NativeName(NativeNameType.Value, "0x0D18")] + public const int GL_GREEN_SCALE = 0x0D18; + + [NativeName(NativeNameType.Const, "GL_GREEN_BIAS")] + [NativeName(NativeNameType.Value, "0x0D19")] + public const int GL_GREEN_BIAS = 0x0D19; + + [NativeName(NativeNameType.Const, "GL_BLUE_SCALE")] + [NativeName(NativeNameType.Value, "0x0D1A")] + public const int GL_BLUE_SCALE = 0x0D1A; + + [NativeName(NativeNameType.Const, "GL_BLUE_BIAS")] + [NativeName(NativeNameType.Value, "0x0D1B")] + public const int GL_BLUE_BIAS = 0x0D1B; + + [NativeName(NativeNameType.Const, "GL_ALPHA_SCALE")] + [NativeName(NativeNameType.Value, "0x0D1C")] + public const int GL_ALPHA_SCALE = 0x0D1C; + + [NativeName(NativeNameType.Const, "GL_ALPHA_BIAS")] + [NativeName(NativeNameType.Value, "0x0D1D")] + public const int GL_ALPHA_BIAS = 0x0D1D; + + [NativeName(NativeNameType.Const, "GL_DEPTH_SCALE")] + [NativeName(NativeNameType.Value, "0x0D1E")] + public const int GL_DEPTH_SCALE = 0x0D1E; + + [NativeName(NativeNameType.Const, "GL_DEPTH_BIAS")] + [NativeName(NativeNameType.Value, "0x0D1F")] + public const int GL_DEPTH_BIAS = 0x0D1F; + + [NativeName(NativeNameType.Const, "GL_MAX_EVAL_ORDER")] + [NativeName(NativeNameType.Value, "0x0D30")] + public const int GL_MAX_EVAL_ORDER = 0x0D30; + + [NativeName(NativeNameType.Const, "GL_MAX_LIGHTS")] + [NativeName(NativeNameType.Value, "0x0D31")] + public const int GL_MAX_LIGHTS = 0x0D31; + + [NativeName(NativeNameType.Const, "GL_MAX_CLIP_PLANES")] + [NativeName(NativeNameType.Value, "0x0D32")] + public const int GL_MAX_CLIP_PLANES = 0x0D32; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_SIZE")] + [NativeName(NativeNameType.Value, "0x0D33")] + public const int GL_MAX_TEXTURE_SIZE = 0x0D33; + + [NativeName(NativeNameType.Const, "GL_MAX_PIXEL_MAP_TABLE")] + [NativeName(NativeNameType.Value, "0x0D34")] + public const int GL_MAX_PIXEL_MAP_TABLE = 0x0D34; + + [NativeName(NativeNameType.Const, "GL_MAX_ATTRIB_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0D35")] + public const int GL_MAX_ATTRIB_STACK_DEPTH = 0x0D35; + + [NativeName(NativeNameType.Const, "GL_MAX_MODELVIEW_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0D36")] + public const int GL_MAX_MODELVIEW_STACK_DEPTH = 0x0D36; + + [NativeName(NativeNameType.Const, "GL_MAX_NAME_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0D37")] + public const int GL_MAX_NAME_STACK_DEPTH = 0x0D37; + + [NativeName(NativeNameType.Const, "GL_MAX_PROJECTION_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0D38")] + public const int GL_MAX_PROJECTION_STACK_DEPTH = 0x0D38; + + [NativeName(NativeNameType.Const, "GL_MAX_TEXTURE_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0D39")] + public const int GL_MAX_TEXTURE_STACK_DEPTH = 0x0D39; + + [NativeName(NativeNameType.Const, "GL_MAX_VIEWPORT_DIMS")] + [NativeName(NativeNameType.Value, "0x0D3A")] + public const int GL_MAX_VIEWPORT_DIMS = 0x0D3A; + + [NativeName(NativeNameType.Const, "GL_MAX_CLIENT_ATTRIB_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0D3B")] + public const int GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B; + + [NativeName(NativeNameType.Const, "GL_SUBPIXEL_BITS")] + [NativeName(NativeNameType.Value, "0x0D50")] + public const int GL_SUBPIXEL_BITS = 0x0D50; + + [NativeName(NativeNameType.Const, "GL_INDEX_BITS")] + [NativeName(NativeNameType.Value, "0x0D51")] + public const int GL_INDEX_BITS = 0x0D51; + + [NativeName(NativeNameType.Const, "GL_RED_BITS")] + [NativeName(NativeNameType.Value, "0x0D52")] + public const int GL_RED_BITS = 0x0D52; + + [NativeName(NativeNameType.Const, "GL_GREEN_BITS")] + [NativeName(NativeNameType.Value, "0x0D53")] + public const int GL_GREEN_BITS = 0x0D53; + + [NativeName(NativeNameType.Const, "GL_BLUE_BITS")] + [NativeName(NativeNameType.Value, "0x0D54")] + public const int GL_BLUE_BITS = 0x0D54; + + [NativeName(NativeNameType.Const, "GL_ALPHA_BITS")] + [NativeName(NativeNameType.Value, "0x0D55")] + public const int GL_ALPHA_BITS = 0x0D55; + + [NativeName(NativeNameType.Const, "GL_DEPTH_BITS")] + [NativeName(NativeNameType.Value, "0x0D56")] + public const int GL_DEPTH_BITS = 0x0D56; + + [NativeName(NativeNameType.Const, "GL_STENCIL_BITS")] + [NativeName(NativeNameType.Value, "0x0D57")] + public const int GL_STENCIL_BITS = 0x0D57; + + [NativeName(NativeNameType.Const, "GL_ACCUM_RED_BITS")] + [NativeName(NativeNameType.Value, "0x0D58")] + public const int GL_ACCUM_RED_BITS = 0x0D58; + + [NativeName(NativeNameType.Const, "GL_ACCUM_GREEN_BITS")] + [NativeName(NativeNameType.Value, "0x0D59")] + public const int GL_ACCUM_GREEN_BITS = 0x0D59; + + [NativeName(NativeNameType.Const, "GL_ACCUM_BLUE_BITS")] + [NativeName(NativeNameType.Value, "0x0D5A")] + public const int GL_ACCUM_BLUE_BITS = 0x0D5A; + + [NativeName(NativeNameType.Const, "GL_ACCUM_ALPHA_BITS")] + [NativeName(NativeNameType.Value, "0x0D5B")] + public const int GL_ACCUM_ALPHA_BITS = 0x0D5B; + + [NativeName(NativeNameType.Const, "GL_NAME_STACK_DEPTH")] + [NativeName(NativeNameType.Value, "0x0D70")] + public const int GL_NAME_STACK_DEPTH = 0x0D70; + + [NativeName(NativeNameType.Const, "GL_AUTO_NORMAL")] + [NativeName(NativeNameType.Value, "0x0D80")] + public const int GL_AUTO_NORMAL = 0x0D80; + + [NativeName(NativeNameType.Const, "GL_MAP1_COLOR_4")] + [NativeName(NativeNameType.Value, "0x0D90")] + public const int GL_MAP1_COLOR_4 = 0x0D90; + + [NativeName(NativeNameType.Const, "GL_MAP1_INDEX")] + [NativeName(NativeNameType.Value, "0x0D91")] + public const int GL_MAP1_INDEX = 0x0D91; + + [NativeName(NativeNameType.Const, "GL_MAP1_NORMAL")] + [NativeName(NativeNameType.Value, "0x0D92")] + public const int GL_MAP1_NORMAL = 0x0D92; + + [NativeName(NativeNameType.Const, "GL_MAP1_TEXTURE_COORD_1")] + [NativeName(NativeNameType.Value, "0x0D93")] + public const int GL_MAP1_TEXTURE_COORD_1 = 0x0D93; + + [NativeName(NativeNameType.Const, "GL_MAP1_TEXTURE_COORD_2")] + [NativeName(NativeNameType.Value, "0x0D94")] + public const int GL_MAP1_TEXTURE_COORD_2 = 0x0D94; + + [NativeName(NativeNameType.Const, "GL_MAP1_TEXTURE_COORD_3")] + [NativeName(NativeNameType.Value, "0x0D95")] + public const int GL_MAP1_TEXTURE_COORD_3 = 0x0D95; + + [NativeName(NativeNameType.Const, "GL_MAP1_TEXTURE_COORD_4")] + [NativeName(NativeNameType.Value, "0x0D96")] + public const int GL_MAP1_TEXTURE_COORD_4 = 0x0D96; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_3")] + [NativeName(NativeNameType.Value, "0x0D97")] + public const int GL_MAP1_VERTEX_3 = 0x0D97; + + [NativeName(NativeNameType.Const, "GL_MAP1_VERTEX_4")] + [NativeName(NativeNameType.Value, "0x0D98")] + public const int GL_MAP1_VERTEX_4 = 0x0D98; + + [NativeName(NativeNameType.Const, "GL_MAP2_COLOR_4")] + [NativeName(NativeNameType.Value, "0x0DB0")] + public const int GL_MAP2_COLOR_4 = 0x0DB0; + + [NativeName(NativeNameType.Const, "GL_MAP2_INDEX")] + [NativeName(NativeNameType.Value, "0x0DB1")] + public const int GL_MAP2_INDEX = 0x0DB1; + + [NativeName(NativeNameType.Const, "GL_MAP2_NORMAL")] + [NativeName(NativeNameType.Value, "0x0DB2")] + public const int GL_MAP2_NORMAL = 0x0DB2; + + [NativeName(NativeNameType.Const, "GL_MAP2_TEXTURE_COORD_1")] + [NativeName(NativeNameType.Value, "0x0DB3")] + public const int GL_MAP2_TEXTURE_COORD_1 = 0x0DB3; + + [NativeName(NativeNameType.Const, "GL_MAP2_TEXTURE_COORD_2")] + [NativeName(NativeNameType.Value, "0x0DB4")] + public const int GL_MAP2_TEXTURE_COORD_2 = 0x0DB4; + + [NativeName(NativeNameType.Const, "GL_MAP2_TEXTURE_COORD_3")] + [NativeName(NativeNameType.Value, "0x0DB5")] + public const int GL_MAP2_TEXTURE_COORD_3 = 0x0DB5; + + [NativeName(NativeNameType.Const, "GL_MAP2_TEXTURE_COORD_4")] + [NativeName(NativeNameType.Value, "0x0DB6")] + public const int GL_MAP2_TEXTURE_COORD_4 = 0x0DB6; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_3")] + [NativeName(NativeNameType.Value, "0x0DB7")] + public const int GL_MAP2_VERTEX_3 = 0x0DB7; + + [NativeName(NativeNameType.Const, "GL_MAP2_VERTEX_4")] + [NativeName(NativeNameType.Value, "0x0DB8")] + public const int GL_MAP2_VERTEX_4 = 0x0DB8; + + [NativeName(NativeNameType.Const, "GL_MAP1_GRID_DOMAIN")] + [NativeName(NativeNameType.Value, "0x0DD0")] + public const int GL_MAP1_GRID_DOMAIN = 0x0DD0; + + [NativeName(NativeNameType.Const, "GL_MAP1_GRID_SEGMENTS")] + [NativeName(NativeNameType.Value, "0x0DD1")] + public const int GL_MAP1_GRID_SEGMENTS = 0x0DD1; + + [NativeName(NativeNameType.Const, "GL_MAP2_GRID_DOMAIN")] + [NativeName(NativeNameType.Value, "0x0DD2")] + public const int GL_MAP2_GRID_DOMAIN = 0x0DD2; + + [NativeName(NativeNameType.Const, "GL_MAP2_GRID_SEGMENTS")] + [NativeName(NativeNameType.Value, "0x0DD3")] + public const int GL_MAP2_GRID_SEGMENTS = 0x0DD3; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_1D")] + [NativeName(NativeNameType.Value, "0x0DE0")] + public const int GL_TEXTURE_1D = 0x0DE0; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_2D")] + [NativeName(NativeNameType.Value, "0x0DE1")] + public const int GL_TEXTURE_2D = 0x0DE1; + + [NativeName(NativeNameType.Const, "GL_FEEDBACK_BUFFER_POINTER")] + [NativeName(NativeNameType.Value, "0x0DF0")] + public const int GL_FEEDBACK_BUFFER_POINTER = 0x0DF0; + + [NativeName(NativeNameType.Const, "GL_FEEDBACK_BUFFER_SIZE")] + [NativeName(NativeNameType.Value, "0x0DF1")] + public const int GL_FEEDBACK_BUFFER_SIZE = 0x0DF1; + + [NativeName(NativeNameType.Const, "GL_FEEDBACK_BUFFER_TYPE")] + [NativeName(NativeNameType.Value, "0x0DF2")] + public const int GL_FEEDBACK_BUFFER_TYPE = 0x0DF2; + + [NativeName(NativeNameType.Const, "GL_SELECTION_BUFFER_POINTER")] + [NativeName(NativeNameType.Value, "0x0DF3")] + public const int GL_SELECTION_BUFFER_POINTER = 0x0DF3; + + [NativeName(NativeNameType.Const, "GL_SELECTION_BUFFER_SIZE")] + [NativeName(NativeNameType.Value, "0x0DF4")] + public const int GL_SELECTION_BUFFER_SIZE = 0x0DF4; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_WIDTH")] + [NativeName(NativeNameType.Value, "0x1000")] + public const int GL_TEXTURE_WIDTH = 0x1000; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_HEIGHT")] + [NativeName(NativeNameType.Value, "0x1001")] + public const int GL_TEXTURE_HEIGHT = 0x1001; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_INTERNAL_FORMAT")] + [NativeName(NativeNameType.Value, "0x1003")] + public const int GL_TEXTURE_INTERNAL_FORMAT = 0x1003; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BORDER_COLOR")] + [NativeName(NativeNameType.Value, "0x1004")] + public const int GL_TEXTURE_BORDER_COLOR = 0x1004; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BORDER")] + [NativeName(NativeNameType.Value, "0x1005")] + public const int GL_TEXTURE_BORDER = 0x1005; + + [NativeName(NativeNameType.Const, "GL_DONT_CARE")] + [NativeName(NativeNameType.Value, "0x1100")] + public const int GL_DONT_CARE = 0x1100; + + [NativeName(NativeNameType.Const, "GL_FASTEST")] + [NativeName(NativeNameType.Value, "0x1101")] + public const int GL_FASTEST = 0x1101; + + [NativeName(NativeNameType.Const, "GL_NICEST")] + [NativeName(NativeNameType.Value, "0x1102")] + public const int GL_NICEST = 0x1102; + + [NativeName(NativeNameType.Const, "GL_LIGHT0")] + [NativeName(NativeNameType.Value, "0x4000")] + public const int GL_LIGHT0 = 0x4000; + + [NativeName(NativeNameType.Const, "GL_LIGHT1")] + [NativeName(NativeNameType.Value, "0x4001")] + public const int GL_LIGHT1 = 0x4001; + + [NativeName(NativeNameType.Const, "GL_LIGHT2")] + [NativeName(NativeNameType.Value, "0x4002")] + public const int GL_LIGHT2 = 0x4002; + + [NativeName(NativeNameType.Const, "GL_LIGHT3")] + [NativeName(NativeNameType.Value, "0x4003")] + public const int GL_LIGHT3 = 0x4003; + + [NativeName(NativeNameType.Const, "GL_LIGHT4")] + [NativeName(NativeNameType.Value, "0x4004")] + public const int GL_LIGHT4 = 0x4004; + + [NativeName(NativeNameType.Const, "GL_LIGHT5")] + [NativeName(NativeNameType.Value, "0x4005")] + public const int GL_LIGHT5 = 0x4005; + + [NativeName(NativeNameType.Const, "GL_LIGHT6")] + [NativeName(NativeNameType.Value, "0x4006")] + public const int GL_LIGHT6 = 0x4006; + + [NativeName(NativeNameType.Const, "GL_LIGHT7")] + [NativeName(NativeNameType.Value, "0x4007")] + public const int GL_LIGHT7 = 0x4007; + + [NativeName(NativeNameType.Const, "GL_AMBIENT")] + [NativeName(NativeNameType.Value, "0x1200")] + public const int GL_AMBIENT = 0x1200; + + [NativeName(NativeNameType.Const, "GL_DIFFUSE")] + [NativeName(NativeNameType.Value, "0x1201")] + public const int GL_DIFFUSE = 0x1201; + + [NativeName(NativeNameType.Const, "GL_SPECULAR")] + [NativeName(NativeNameType.Value, "0x1202")] + public const int GL_SPECULAR = 0x1202; + + [NativeName(NativeNameType.Const, "GL_POSITION")] + [NativeName(NativeNameType.Value, "0x1203")] + public const int GL_POSITION = 0x1203; + + [NativeName(NativeNameType.Const, "GL_SPOT_DIRECTION")] + [NativeName(NativeNameType.Value, "0x1204")] + public const int GL_SPOT_DIRECTION = 0x1204; + + [NativeName(NativeNameType.Const, "GL_SPOT_EXPONENT")] + [NativeName(NativeNameType.Value, "0x1205")] + public const int GL_SPOT_EXPONENT = 0x1205; + + [NativeName(NativeNameType.Const, "GL_SPOT_CUTOFF")] + [NativeName(NativeNameType.Value, "0x1206")] + public const int GL_SPOT_CUTOFF = 0x1206; + + [NativeName(NativeNameType.Const, "GL_CONSTANT_ATTENUATION")] + [NativeName(NativeNameType.Value, "0x1207")] + public const int GL_CONSTANT_ATTENUATION = 0x1207; + + [NativeName(NativeNameType.Const, "GL_LINEAR_ATTENUATION")] + [NativeName(NativeNameType.Value, "0x1208")] + public const int GL_LINEAR_ATTENUATION = 0x1208; + + [NativeName(NativeNameType.Const, "GL_QUADRATIC_ATTENUATION")] + [NativeName(NativeNameType.Value, "0x1209")] + public const int GL_QUADRATIC_ATTENUATION = 0x1209; + + [NativeName(NativeNameType.Const, "GL_COMPILE")] + [NativeName(NativeNameType.Value, "0x1300")] + public const int GL_COMPILE = 0x1300; + + [NativeName(NativeNameType.Const, "GL_COMPILE_AND_EXECUTE")] + [NativeName(NativeNameType.Value, "0x1301")] + public const int GL_COMPILE_AND_EXECUTE = 0x1301; + + [NativeName(NativeNameType.Const, "GL_CLEAR")] + [NativeName(NativeNameType.Value, "0x1500")] + public const int GL_CLEAR = 0x1500; + + [NativeName(NativeNameType.Const, "GL_AND")] + [NativeName(NativeNameType.Value, "0x1501")] + public const int GL_AND = 0x1501; + + [NativeName(NativeNameType.Const, "GL_AND_REVERSE")] + [NativeName(NativeNameType.Value, "0x1502")] + public const int GL_AND_REVERSE = 0x1502; + + [NativeName(NativeNameType.Const, "GL_COPY")] + [NativeName(NativeNameType.Value, "0x1503")] + public const int GL_COPY = 0x1503; + + [NativeName(NativeNameType.Const, "GL_AND_INVERTED")] + [NativeName(NativeNameType.Value, "0x1504")] + public const int GL_AND_INVERTED = 0x1504; + + [NativeName(NativeNameType.Const, "GL_NOOP")] + [NativeName(NativeNameType.Value, "0x1505")] + public const int GL_NOOP = 0x1505; + + [NativeName(NativeNameType.Const, "GL_XOR")] + [NativeName(NativeNameType.Value, "0x1506")] + public const int GL_XOR = 0x1506; + + [NativeName(NativeNameType.Const, "GL_OR")] + [NativeName(NativeNameType.Value, "0x1507")] + public const int GL_OR = 0x1507; + + [NativeName(NativeNameType.Const, "GL_NOR")] + [NativeName(NativeNameType.Value, "0x1508")] + public const int GL_NOR = 0x1508; + + [NativeName(NativeNameType.Const, "GL_EQUIV")] + [NativeName(NativeNameType.Value, "0x1509")] + public const int GL_EQUIV = 0x1509; + + [NativeName(NativeNameType.Const, "GL_INVERT")] + [NativeName(NativeNameType.Value, "0x150A")] + public const int GL_INVERT = 0x150A; + + [NativeName(NativeNameType.Const, "GL_OR_REVERSE")] + [NativeName(NativeNameType.Value, "0x150B")] + public const int GL_OR_REVERSE = 0x150B; + + [NativeName(NativeNameType.Const, "GL_COPY_INVERTED")] + [NativeName(NativeNameType.Value, "0x150C")] + public const int GL_COPY_INVERTED = 0x150C; + + [NativeName(NativeNameType.Const, "GL_OR_INVERTED")] + [NativeName(NativeNameType.Value, "0x150D")] + public const int GL_OR_INVERTED = 0x150D; + + [NativeName(NativeNameType.Const, "GL_NAND")] + [NativeName(NativeNameType.Value, "0x150E")] + public const int GL_NAND = 0x150E; + + [NativeName(NativeNameType.Const, "GL_SET")] + [NativeName(NativeNameType.Value, "0x150F")] + public const int GL_SET = 0x150F; + + [NativeName(NativeNameType.Const, "GL_EMISSION")] + [NativeName(NativeNameType.Value, "0x1600")] + public const int GL_EMISSION = 0x1600; + + [NativeName(NativeNameType.Const, "GL_SHININESS")] + [NativeName(NativeNameType.Value, "0x1601")] + public const int GL_SHININESS = 0x1601; + + [NativeName(NativeNameType.Const, "GL_AMBIENT_AND_DIFFUSE")] + [NativeName(NativeNameType.Value, "0x1602")] + public const int GL_AMBIENT_AND_DIFFUSE = 0x1602; + + [NativeName(NativeNameType.Const, "GL_COLOR_INDEXES")] + [NativeName(NativeNameType.Value, "0x1603")] + public const int GL_COLOR_INDEXES = 0x1603; + + [NativeName(NativeNameType.Const, "GL_MODELVIEW")] + [NativeName(NativeNameType.Value, "0x1700")] + public const int GL_MODELVIEW = 0x1700; + + [NativeName(NativeNameType.Const, "GL_PROJECTION")] + [NativeName(NativeNameType.Value, "0x1701")] + public const int GL_PROJECTION = 0x1701; + + [NativeName(NativeNameType.Const, "GL_TEXTURE")] + [NativeName(NativeNameType.Value, "0x1702")] + public const int GL_TEXTURE = 0x1702; + + [NativeName(NativeNameType.Const, "GL_COLOR")] + [NativeName(NativeNameType.Value, "0x1800")] + public const int GL_COLOR = 0x1800; + + [NativeName(NativeNameType.Const, "GL_DEPTH")] + [NativeName(NativeNameType.Value, "0x1801")] + public const int GL_DEPTH = 0x1801; + + [NativeName(NativeNameType.Const, "GL_STENCIL")] + [NativeName(NativeNameType.Value, "0x1802")] + public const int GL_STENCIL = 0x1802; + + [NativeName(NativeNameType.Const, "GL_COLOR_INDEX")] + [NativeName(NativeNameType.Value, "0x1900")] + public const int GL_COLOR_INDEX = 0x1900; + + [NativeName(NativeNameType.Const, "GL_STENCIL_INDEX")] + [NativeName(NativeNameType.Value, "0x1901")] + public const int GL_STENCIL_INDEX = 0x1901; + + [NativeName(NativeNameType.Const, "GL_DEPTH_COMPONENT")] + [NativeName(NativeNameType.Value, "0x1902")] + public const int GL_DEPTH_COMPONENT = 0x1902; + + [NativeName(NativeNameType.Const, "GL_RED")] + [NativeName(NativeNameType.Value, "0x1903")] + public const int GL_RED = 0x1903; + + [NativeName(NativeNameType.Const, "GL_GREEN")] + [NativeName(NativeNameType.Value, "0x1904")] + public const int GL_GREEN = 0x1904; + + [NativeName(NativeNameType.Const, "GL_BLUE")] + [NativeName(NativeNameType.Value, "0x1905")] + public const int GL_BLUE = 0x1905; + + [NativeName(NativeNameType.Const, "GL_ALPHA")] + [NativeName(NativeNameType.Value, "0x1906")] + public const int GL_ALPHA = 0x1906; + + [NativeName(NativeNameType.Const, "GL_RGB")] + [NativeName(NativeNameType.Value, "0x1907")] + public const int GL_RGB = 0x1907; + + [NativeName(NativeNameType.Const, "GL_RGBA")] + [NativeName(NativeNameType.Value, "0x1908")] + public const int GL_RGBA = 0x1908; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE")] + [NativeName(NativeNameType.Value, "0x1909")] + public const int GL_LUMINANCE = 0x1909; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE_ALPHA")] + [NativeName(NativeNameType.Value, "0x190A")] + public const int GL_LUMINANCE_ALPHA = 0x190A; + + [NativeName(NativeNameType.Const, "GL_BITMAP")] + [NativeName(NativeNameType.Value, "0x1A00")] + public const int GL_BITMAP = 0x1A00; + + [NativeName(NativeNameType.Const, "GL_POINT")] + [NativeName(NativeNameType.Value, "0x1B00")] + public const int GL_POINT = 0x1B00; + + [NativeName(NativeNameType.Const, "GL_LINE")] + [NativeName(NativeNameType.Value, "0x1B01")] + public const int GL_LINE = 0x1B01; + + [NativeName(NativeNameType.Const, "GL_FILL")] + [NativeName(NativeNameType.Value, "0x1B02")] + public const int GL_FILL = 0x1B02; + + [NativeName(NativeNameType.Const, "GL_RENDER")] + [NativeName(NativeNameType.Value, "0x1C00")] + public const int GL_RENDER = 0x1C00; + + [NativeName(NativeNameType.Const, "GL_FEEDBACK")] + [NativeName(NativeNameType.Value, "0x1C01")] + public const int GL_FEEDBACK = 0x1C01; + + [NativeName(NativeNameType.Const, "GL_SELECT")] + [NativeName(NativeNameType.Value, "0x1C02")] + public const int GL_SELECT = 0x1C02; + + [NativeName(NativeNameType.Const, "GL_FLAT")] + [NativeName(NativeNameType.Value, "0x1D00")] + public const int GL_FLAT = 0x1D00; + + [NativeName(NativeNameType.Const, "GL_SMOOTH")] + [NativeName(NativeNameType.Value, "0x1D01")] + public const int GL_SMOOTH = 0x1D01; + + [NativeName(NativeNameType.Const, "GL_KEEP")] + [NativeName(NativeNameType.Value, "0x1E00")] + public const int GL_KEEP = 0x1E00; + + [NativeName(NativeNameType.Const, "GL_REPLACE")] + [NativeName(NativeNameType.Value, "0x1E01")] + public const int GL_REPLACE = 0x1E01; + + [NativeName(NativeNameType.Const, "GL_INCR")] + [NativeName(NativeNameType.Value, "0x1E02")] + public const int GL_INCR = 0x1E02; + + [NativeName(NativeNameType.Const, "GL_DECR")] + [NativeName(NativeNameType.Value, "0x1E03")] + public const int GL_DECR = 0x1E03; + + [NativeName(NativeNameType.Const, "GL_VENDOR")] + [NativeName(NativeNameType.Value, "0x1F00")] + public const int GL_VENDOR = 0x1F00; + + [NativeName(NativeNameType.Const, "GL_RENDERER")] + [NativeName(NativeNameType.Value, "0x1F01")] + public const int GL_RENDERER = 0x1F01; + + [NativeName(NativeNameType.Const, "GL_VERSION")] + [NativeName(NativeNameType.Value, "0x1F02")] + public const int GL_VERSION = 0x1F02; + + [NativeName(NativeNameType.Const, "GL_EXTENSIONS")] + [NativeName(NativeNameType.Value, "0x1F03")] + public const int GL_EXTENSIONS = 0x1F03; + + [NativeName(NativeNameType.Const, "GL_S")] + [NativeName(NativeNameType.Value, "0x2000")] + public const int GL_S = 0x2000; + + [NativeName(NativeNameType.Const, "GL_T")] + [NativeName(NativeNameType.Value, "0x2001")] + public const int GL_T = 0x2001; + + [NativeName(NativeNameType.Const, "GL_R")] + [NativeName(NativeNameType.Value, "0x2002")] + public const int GL_R = 0x2002; + + [NativeName(NativeNameType.Const, "GL_Q")] + [NativeName(NativeNameType.Value, "0x2003")] + public const int GL_Q = 0x2003; + + [NativeName(NativeNameType.Const, "GL_MODULATE")] + [NativeName(NativeNameType.Value, "0x2100")] + public const int GL_MODULATE = 0x2100; + + [NativeName(NativeNameType.Const, "GL_DECAL")] + [NativeName(NativeNameType.Value, "0x2101")] + public const int GL_DECAL = 0x2101; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_ENV_MODE")] + [NativeName(NativeNameType.Value, "0x2200")] + public const int GL_TEXTURE_ENV_MODE = 0x2200; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_ENV_COLOR")] + [NativeName(NativeNameType.Value, "0x2201")] + public const int GL_TEXTURE_ENV_COLOR = 0x2201; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_ENV")] + [NativeName(NativeNameType.Value, "0x2300")] + public const int GL_TEXTURE_ENV = 0x2300; + + [NativeName(NativeNameType.Const, "GL_EYE_LINEAR")] + [NativeName(NativeNameType.Value, "0x2400")] + public const int GL_EYE_LINEAR = 0x2400; + + [NativeName(NativeNameType.Const, "GL_OBJECT_LINEAR")] + [NativeName(NativeNameType.Value, "0x2401")] + public const int GL_OBJECT_LINEAR = 0x2401; + + [NativeName(NativeNameType.Const, "GL_SPHERE_MAP")] + [NativeName(NativeNameType.Value, "0x2402")] + public const int GL_SPHERE_MAP = 0x2402; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GEN_MODE")] + [NativeName(NativeNameType.Value, "0x2500")] + public const int GL_TEXTURE_GEN_MODE = 0x2500; + + [NativeName(NativeNameType.Const, "GL_OBJECT_PLANE")] + [NativeName(NativeNameType.Value, "0x2501")] + public const int GL_OBJECT_PLANE = 0x2501; + + [NativeName(NativeNameType.Const, "GL_EYE_PLANE")] + [NativeName(NativeNameType.Value, "0x2502")] + public const int GL_EYE_PLANE = 0x2502; + + [NativeName(NativeNameType.Const, "GL_NEAREST")] + [NativeName(NativeNameType.Value, "0x2600")] + public const int GL_NEAREST = 0x2600; + + [NativeName(NativeNameType.Const, "GL_LINEAR")] + [NativeName(NativeNameType.Value, "0x2601")] + public const int GL_LINEAR = 0x2601; + + [NativeName(NativeNameType.Const, "GL_NEAREST_MIPMAP_NEAREST")] + [NativeName(NativeNameType.Value, "0x2700")] + public const int GL_NEAREST_MIPMAP_NEAREST = 0x2700; + + [NativeName(NativeNameType.Const, "GL_LINEAR_MIPMAP_NEAREST")] + [NativeName(NativeNameType.Value, "0x2701")] + public const int GL_LINEAR_MIPMAP_NEAREST = 0x2701; + + [NativeName(NativeNameType.Const, "GL_NEAREST_MIPMAP_LINEAR")] + [NativeName(NativeNameType.Value, "0x2702")] + public const int GL_NEAREST_MIPMAP_LINEAR = 0x2702; + + [NativeName(NativeNameType.Const, "GL_LINEAR_MIPMAP_LINEAR")] + [NativeName(NativeNameType.Value, "0x2703")] + public const int GL_LINEAR_MIPMAP_LINEAR = 0x2703; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MAG_FILTER")] + [NativeName(NativeNameType.Value, "0x2800")] + public const int GL_TEXTURE_MAG_FILTER = 0x2800; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_MIN_FILTER")] + [NativeName(NativeNameType.Value, "0x2801")] + public const int GL_TEXTURE_MIN_FILTER = 0x2801; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_WRAP_S")] + [NativeName(NativeNameType.Value, "0x2802")] + public const int GL_TEXTURE_WRAP_S = 0x2802; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_WRAP_T")] + [NativeName(NativeNameType.Value, "0x2803")] + public const int GL_TEXTURE_WRAP_T = 0x2803; + + [NativeName(NativeNameType.Const, "GL_CLAMP")] + [NativeName(NativeNameType.Value, "0x2900")] + public const int GL_CLAMP = 0x2900; + + [NativeName(NativeNameType.Const, "GL_REPEAT")] + [NativeName(NativeNameType.Value, "0x2901")] + public const int GL_REPEAT = 0x2901; + + [NativeName(NativeNameType.Const, "GL_CLIENT_PIXEL_STORE_BIT")] + [NativeName(NativeNameType.Value, "0x00000001")] + public const int GL_CLIENT_PIXEL_STORE_BIT = 0x00000001; + + [NativeName(NativeNameType.Const, "GL_CLIENT_VERTEX_ARRAY_BIT")] + [NativeName(NativeNameType.Value, "0x00000002")] + public const int GL_CLIENT_VERTEX_ARRAY_BIT = 0x00000002; + + [NativeName(NativeNameType.Const, "GL_CLIENT_ALL_ATTRIB_BITS")] + [NativeName(NativeNameType.Value, "0xffffffff")] + public const uint GL_CLIENT_ALL_ATTRIB_BITS = 0xffffffff; + + [NativeName(NativeNameType.Const, "GL_POLYGON_OFFSET_FACTOR")] + [NativeName(NativeNameType.Value, "0x8038")] + public const int GL_POLYGON_OFFSET_FACTOR = 0x8038; + + [NativeName(NativeNameType.Const, "GL_POLYGON_OFFSET_UNITS")] + [NativeName(NativeNameType.Value, "0x2A00")] + public const int GL_POLYGON_OFFSET_UNITS = 0x2A00; + + [NativeName(NativeNameType.Const, "GL_POLYGON_OFFSET_POINT")] + [NativeName(NativeNameType.Value, "0x2A01")] + public const int GL_POLYGON_OFFSET_POINT = 0x2A01; + + [NativeName(NativeNameType.Const, "GL_POLYGON_OFFSET_LINE")] + [NativeName(NativeNameType.Value, "0x2A02")] + public const int GL_POLYGON_OFFSET_LINE = 0x2A02; + + [NativeName(NativeNameType.Const, "GL_POLYGON_OFFSET_FILL")] + [NativeName(NativeNameType.Value, "0x8037")] + public const int GL_POLYGON_OFFSET_FILL = 0x8037; + + [NativeName(NativeNameType.Const, "GL_ALPHA4")] + [NativeName(NativeNameType.Value, "0x803B")] + public const int GL_ALPHA4 = 0x803B; + + [NativeName(NativeNameType.Const, "GL_ALPHA8")] + [NativeName(NativeNameType.Value, "0x803C")] + public const int GL_ALPHA8 = 0x803C; + + [NativeName(NativeNameType.Const, "GL_ALPHA12")] + [NativeName(NativeNameType.Value, "0x803D")] + public const int GL_ALPHA12 = 0x803D; + + [NativeName(NativeNameType.Const, "GL_ALPHA16")] + [NativeName(NativeNameType.Value, "0x803E")] + public const int GL_ALPHA16 = 0x803E; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE4")] + [NativeName(NativeNameType.Value, "0x803F")] + public const int GL_LUMINANCE4 = 0x803F; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE8")] + [NativeName(NativeNameType.Value, "0x8040")] + public const int GL_LUMINANCE8 = 0x8040; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE12")] + [NativeName(NativeNameType.Value, "0x8041")] + public const int GL_LUMINANCE12 = 0x8041; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE16")] + [NativeName(NativeNameType.Value, "0x8042")] + public const int GL_LUMINANCE16 = 0x8042; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE4_ALPHA4")] + [NativeName(NativeNameType.Value, "0x8043")] + public const int GL_LUMINANCE4_ALPHA4 = 0x8043; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE6_ALPHA2")] + [NativeName(NativeNameType.Value, "0x8044")] + public const int GL_LUMINANCE6_ALPHA2 = 0x8044; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE8_ALPHA8")] + [NativeName(NativeNameType.Value, "0x8045")] + public const int GL_LUMINANCE8_ALPHA8 = 0x8045; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE12_ALPHA4")] + [NativeName(NativeNameType.Value, "0x8046")] + public const int GL_LUMINANCE12_ALPHA4 = 0x8046; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE12_ALPHA12")] + [NativeName(NativeNameType.Value, "0x8047")] + public const int GL_LUMINANCE12_ALPHA12 = 0x8047; + + [NativeName(NativeNameType.Const, "GL_LUMINANCE16_ALPHA16")] + [NativeName(NativeNameType.Value, "0x8048")] + public const int GL_LUMINANCE16_ALPHA16 = 0x8048; + + [NativeName(NativeNameType.Const, "GL_INTENSITY")] + [NativeName(NativeNameType.Value, "0x8049")] + public const int GL_INTENSITY = 0x8049; + + [NativeName(NativeNameType.Const, "GL_INTENSITY4")] + [NativeName(NativeNameType.Value, "0x804A")] + public const int GL_INTENSITY4 = 0x804A; + + [NativeName(NativeNameType.Const, "GL_INTENSITY8")] + [NativeName(NativeNameType.Value, "0x804B")] + public const int GL_INTENSITY8 = 0x804B; + + [NativeName(NativeNameType.Const, "GL_INTENSITY12")] + [NativeName(NativeNameType.Value, "0x804C")] + public const int GL_INTENSITY12 = 0x804C; + + [NativeName(NativeNameType.Const, "GL_INTENSITY16")] + [NativeName(NativeNameType.Value, "0x804D")] + public const int GL_INTENSITY16 = 0x804D; + + [NativeName(NativeNameType.Const, "GL_R3_G3_B2")] + [NativeName(NativeNameType.Value, "0x2A10")] + public const int GL_R3_G3_B2 = 0x2A10; + + [NativeName(NativeNameType.Const, "GL_RGB4")] + [NativeName(NativeNameType.Value, "0x804F")] + public const int GL_RGB4 = 0x804F; + + [NativeName(NativeNameType.Const, "GL_RGB5")] + [NativeName(NativeNameType.Value, "0x8050")] + public const int GL_RGB5 = 0x8050; + + [NativeName(NativeNameType.Const, "GL_RGB8")] + [NativeName(NativeNameType.Value, "0x8051")] + public const int GL_RGB8 = 0x8051; + + [NativeName(NativeNameType.Const, "GL_RGB10")] + [NativeName(NativeNameType.Value, "0x8052")] + public const int GL_RGB10 = 0x8052; + + [NativeName(NativeNameType.Const, "GL_RGB12")] + [NativeName(NativeNameType.Value, "0x8053")] + public const int GL_RGB12 = 0x8053; + + [NativeName(NativeNameType.Const, "GL_RGB16")] + [NativeName(NativeNameType.Value, "0x8054")] + public const int GL_RGB16 = 0x8054; + + [NativeName(NativeNameType.Const, "GL_RGBA2")] + [NativeName(NativeNameType.Value, "0x8055")] + public const int GL_RGBA2 = 0x8055; + + [NativeName(NativeNameType.Const, "GL_RGBA4")] + [NativeName(NativeNameType.Value, "0x8056")] + public const int GL_RGBA4 = 0x8056; + + [NativeName(NativeNameType.Const, "GL_RGB5_A1")] + [NativeName(NativeNameType.Value, "0x8057")] + public const int GL_RGB5_A1 = 0x8057; + + [NativeName(NativeNameType.Const, "GL_RGBA8")] + [NativeName(NativeNameType.Value, "0x8058")] + public const int GL_RGBA8 = 0x8058; + + [NativeName(NativeNameType.Const, "GL_RGB10_A2")] + [NativeName(NativeNameType.Value, "0x8059")] + public const int GL_RGB10_A2 = 0x8059; + + [NativeName(NativeNameType.Const, "GL_RGBA12")] + [NativeName(NativeNameType.Value, "0x805A")] + public const int GL_RGBA12 = 0x805A; + + [NativeName(NativeNameType.Const, "GL_RGBA16")] + [NativeName(NativeNameType.Value, "0x805B")] + public const int GL_RGBA16 = 0x805B; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RED_SIZE")] + [NativeName(NativeNameType.Value, "0x805C")] + public const int GL_TEXTURE_RED_SIZE = 0x805C; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_GREEN_SIZE")] + [NativeName(NativeNameType.Value, "0x805D")] + public const int GL_TEXTURE_GREEN_SIZE = 0x805D; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BLUE_SIZE")] + [NativeName(NativeNameType.Value, "0x805E")] + public const int GL_TEXTURE_BLUE_SIZE = 0x805E; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_ALPHA_SIZE")] + [NativeName(NativeNameType.Value, "0x805F")] + public const int GL_TEXTURE_ALPHA_SIZE = 0x805F; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_LUMINANCE_SIZE")] + [NativeName(NativeNameType.Value, "0x8060")] + public const int GL_TEXTURE_LUMINANCE_SIZE = 0x8060; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_INTENSITY_SIZE")] + [NativeName(NativeNameType.Value, "0x8061")] + public const int GL_TEXTURE_INTENSITY_SIZE = 0x8061; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_1D")] + [NativeName(NativeNameType.Value, "0x8063")] + public const int GL_PROXY_TEXTURE_1D = 0x8063; + + [NativeName(NativeNameType.Const, "GL_PROXY_TEXTURE_2D")] + [NativeName(NativeNameType.Value, "0x8064")] + public const int GL_PROXY_TEXTURE_2D = 0x8064; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_PRIORITY")] + [NativeName(NativeNameType.Value, "0x8066")] + public const int GL_TEXTURE_PRIORITY = 0x8066; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_RESIDENT")] + [NativeName(NativeNameType.Value, "0x8067")] + public const int GL_TEXTURE_RESIDENT = 0x8067; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_1D")] + [NativeName(NativeNameType.Value, "0x8068")] + public const int GL_TEXTURE_BINDING_1D = 0x8068; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_BINDING_2D")] + [NativeName(NativeNameType.Value, "0x8069")] + public const int GL_TEXTURE_BINDING_2D = 0x8069; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY")] + [NativeName(NativeNameType.Value, "0x8074")] + public const int GL_VERTEX_ARRAY = 0x8074; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY")] + [NativeName(NativeNameType.Value, "0x8075")] + public const int GL_NORMAL_ARRAY = 0x8075; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY")] + [NativeName(NativeNameType.Value, "0x8076")] + public const int GL_COLOR_ARRAY = 0x8076; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY")] + [NativeName(NativeNameType.Value, "0x8077")] + public const int GL_INDEX_ARRAY = 0x8077; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY")] + [NativeName(NativeNameType.Value, "0x8078")] + public const int GL_TEXTURE_COORD_ARRAY = 0x8078; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY")] + [NativeName(NativeNameType.Value, "0x8079")] + public const int GL_EDGE_FLAG_ARRAY = 0x8079; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_SIZE")] + [NativeName(NativeNameType.Value, "0x807A")] + public const int GL_VERTEX_ARRAY_SIZE = 0x807A; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_TYPE")] + [NativeName(NativeNameType.Value, "0x807B")] + public const int GL_VERTEX_ARRAY_TYPE = 0x807B; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_STRIDE")] + [NativeName(NativeNameType.Value, "0x807C")] + public const int GL_VERTEX_ARRAY_STRIDE = 0x807C; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_TYPE")] + [NativeName(NativeNameType.Value, "0x807E")] + public const int GL_NORMAL_ARRAY_TYPE = 0x807E; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_STRIDE")] + [NativeName(NativeNameType.Value, "0x807F")] + public const int GL_NORMAL_ARRAY_STRIDE = 0x807F; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_SIZE")] + [NativeName(NativeNameType.Value, "0x8081")] + public const int GL_COLOR_ARRAY_SIZE = 0x8081; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_TYPE")] + [NativeName(NativeNameType.Value, "0x8082")] + public const int GL_COLOR_ARRAY_TYPE = 0x8082; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_STRIDE")] + [NativeName(NativeNameType.Value, "0x8083")] + public const int GL_COLOR_ARRAY_STRIDE = 0x8083; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_TYPE")] + [NativeName(NativeNameType.Value, "0x8085")] + public const int GL_INDEX_ARRAY_TYPE = 0x8085; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_STRIDE")] + [NativeName(NativeNameType.Value, "0x8086")] + public const int GL_INDEX_ARRAY_STRIDE = 0x8086; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_SIZE")] + [NativeName(NativeNameType.Value, "0x8088")] + public const int GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_TYPE")] + [NativeName(NativeNameType.Value, "0x8089")] + public const int GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_STRIDE")] + [NativeName(NativeNameType.Value, "0x808A")] + public const int GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808A; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_STRIDE")] + [NativeName(NativeNameType.Value, "0x808C")] + public const int GL_EDGE_FLAG_ARRAY_STRIDE = 0x808C; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_POINTER")] + [NativeName(NativeNameType.Value, "0x808E")] + public const int GL_VERTEX_ARRAY_POINTER = 0x808E; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_POINTER")] + [NativeName(NativeNameType.Value, "0x808F")] + public const int GL_NORMAL_ARRAY_POINTER = 0x808F; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_POINTER")] + [NativeName(NativeNameType.Value, "0x8090")] + public const int GL_COLOR_ARRAY_POINTER = 0x8090; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_POINTER")] + [NativeName(NativeNameType.Value, "0x8091")] + public const int GL_INDEX_ARRAY_POINTER = 0x8091; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_POINTER")] + [NativeName(NativeNameType.Value, "0x8092")] + public const int GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_POINTER")] + [NativeName(NativeNameType.Value, "0x8093")] + public const int GL_EDGE_FLAG_ARRAY_POINTER = 0x8093; + + [NativeName(NativeNameType.Const, "GL_V2F")] + [NativeName(NativeNameType.Value, "0x2A20")] + public const int GL_V2F = 0x2A20; + + [NativeName(NativeNameType.Const, "GL_V3F")] + [NativeName(NativeNameType.Value, "0x2A21")] + public const int GL_V3F = 0x2A21; + + [NativeName(NativeNameType.Const, "GL_C4UB_V2F")] + [NativeName(NativeNameType.Value, "0x2A22")] + public const int GL_C4UB_V2F = 0x2A22; + + [NativeName(NativeNameType.Const, "GL_C4UB_V3F")] + [NativeName(NativeNameType.Value, "0x2A23")] + public const int GL_C4UB_V3F = 0x2A23; + + [NativeName(NativeNameType.Const, "GL_C3F_V3F")] + [NativeName(NativeNameType.Value, "0x2A24")] + public const int GL_C3F_V3F = 0x2A24; + + [NativeName(NativeNameType.Const, "GL_N3F_V3F")] + [NativeName(NativeNameType.Value, "0x2A25")] + public const int GL_N3F_V3F = 0x2A25; + + [NativeName(NativeNameType.Const, "GL_C4F_N3F_V3F")] + [NativeName(NativeNameType.Value, "0x2A26")] + public const int GL_C4F_N3F_V3F = 0x2A26; + + [NativeName(NativeNameType.Const, "GL_T2F_V3F")] + [NativeName(NativeNameType.Value, "0x2A27")] + public const int GL_T2F_V3F = 0x2A27; + + [NativeName(NativeNameType.Const, "GL_T4F_V4F")] + [NativeName(NativeNameType.Value, "0x2A28")] + public const int GL_T4F_V4F = 0x2A28; + + [NativeName(NativeNameType.Const, "GL_T2F_C4UB_V3F")] + [NativeName(NativeNameType.Value, "0x2A29")] + public const int GL_T2F_C4UB_V3F = 0x2A29; + + [NativeName(NativeNameType.Const, "GL_T2F_C3F_V3F")] + [NativeName(NativeNameType.Value, "0x2A2A")] + public const int GL_T2F_C3F_V3F = 0x2A2A; + + [NativeName(NativeNameType.Const, "GL_T2F_N3F_V3F")] + [NativeName(NativeNameType.Value, "0x2A2B")] + public const int GL_T2F_N3F_V3F = 0x2A2B; + + [NativeName(NativeNameType.Const, "GL_T2F_C4F_N3F_V3F")] + [NativeName(NativeNameType.Value, "0x2A2C")] + public const int GL_T2F_C4F_N3F_V3F = 0x2A2C; + + [NativeName(NativeNameType.Const, "GL_T4F_C4F_N3F_V4F")] + [NativeName(NativeNameType.Value, "0x2A2D")] + public const int GL_T4F_C4F_N3F_V4F = 0x2A2D; + + [NativeName(NativeNameType.Const, "GL_EXT_vertex_array")] + [NativeName(NativeNameType.Value, "1")] + public const int GL_EXT_VERTEX_ARRAY = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_bgra")] + [NativeName(NativeNameType.Value, "1")] + public const int GL_EXT_BGRA = 1; + + [NativeName(NativeNameType.Const, "GL_EXT_paletted_texture")] + [NativeName(NativeNameType.Value, "1")] + public const int GL_EXT_PALETTED_TEXTURE = 1; + + [NativeName(NativeNameType.Const, "GL_WIN_swap_hint")] + [NativeName(NativeNameType.Value, "1")] + public const int GL_WIN_SWAP_HINT = 1; + + [NativeName(NativeNameType.Const, "GL_WIN_draw_range_elements")] + [NativeName(NativeNameType.Value, "1")] + public const int GL_WIN_DRAW_RANGE_ELEMENTS = 1; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_EXT")] + [NativeName(NativeNameType.Value, "0x8074")] + public const int GL_VERTEX_ARRAY_EXT = 0x8074; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_EXT")] + [NativeName(NativeNameType.Value, "0x8075")] + public const int GL_NORMAL_ARRAY_EXT = 0x8075; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_EXT")] + [NativeName(NativeNameType.Value, "0x8076")] + public const int GL_COLOR_ARRAY_EXT = 0x8076; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_EXT")] + [NativeName(NativeNameType.Value, "0x8077")] + public const int GL_INDEX_ARRAY_EXT = 0x8077; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_EXT")] + [NativeName(NativeNameType.Value, "0x8078")] + public const int GL_TEXTURE_COORD_ARRAY_EXT = 0x8078; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_EXT")] + [NativeName(NativeNameType.Value, "0x8079")] + public const int GL_EDGE_FLAG_ARRAY_EXT = 0x8079; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_SIZE_EXT")] + [NativeName(NativeNameType.Value, "0x807A")] + public const int GL_VERTEX_ARRAY_SIZE_EXT = 0x807A; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_TYPE_EXT")] + [NativeName(NativeNameType.Value, "0x807B")] + public const int GL_VERTEX_ARRAY_TYPE_EXT = 0x807B; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_STRIDE_EXT")] + [NativeName(NativeNameType.Value, "0x807C")] + public const int GL_VERTEX_ARRAY_STRIDE_EXT = 0x807C; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_COUNT_EXT")] + [NativeName(NativeNameType.Value, "0x807D")] + public const int GL_VERTEX_ARRAY_COUNT_EXT = 0x807D; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_TYPE_EXT")] + [NativeName(NativeNameType.Value, "0x807E")] + public const int GL_NORMAL_ARRAY_TYPE_EXT = 0x807E; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_STRIDE_EXT")] + [NativeName(NativeNameType.Value, "0x807F")] + public const int GL_NORMAL_ARRAY_STRIDE_EXT = 0x807F; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_COUNT_EXT")] + [NativeName(NativeNameType.Value, "0x8080")] + public const int GL_NORMAL_ARRAY_COUNT_EXT = 0x8080; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_SIZE_EXT")] + [NativeName(NativeNameType.Value, "0x8081")] + public const int GL_COLOR_ARRAY_SIZE_EXT = 0x8081; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_TYPE_EXT")] + [NativeName(NativeNameType.Value, "0x8082")] + public const int GL_COLOR_ARRAY_TYPE_EXT = 0x8082; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_STRIDE_EXT")] + [NativeName(NativeNameType.Value, "0x8083")] + public const int GL_COLOR_ARRAY_STRIDE_EXT = 0x8083; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_COUNT_EXT")] + [NativeName(NativeNameType.Value, "0x8084")] + public const int GL_COLOR_ARRAY_COUNT_EXT = 0x8084; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_TYPE_EXT")] + [NativeName(NativeNameType.Value, "0x8085")] + public const int GL_INDEX_ARRAY_TYPE_EXT = 0x8085; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_STRIDE_EXT")] + [NativeName(NativeNameType.Value, "0x8086")] + public const int GL_INDEX_ARRAY_STRIDE_EXT = 0x8086; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_COUNT_EXT")] + [NativeName(NativeNameType.Value, "0x8087")] + public const int GL_INDEX_ARRAY_COUNT_EXT = 0x8087; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_SIZE_EXT")] + [NativeName(NativeNameType.Value, "0x8088")] + public const int GL_TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_TYPE_EXT")] + [NativeName(NativeNameType.Value, "0x8089")] + public const int GL_TEXTURE_COORD_ARRAY_TYPE_EXT = 0x8089; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_STRIDE_EXT")] + [NativeName(NativeNameType.Value, "0x808A")] + public const int GL_TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_COUNT_EXT")] + [NativeName(NativeNameType.Value, "0x808B")] + public const int GL_TEXTURE_COORD_ARRAY_COUNT_EXT = 0x808B; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_STRIDE_EXT")] + [NativeName(NativeNameType.Value, "0x808C")] + public const int GL_EDGE_FLAG_ARRAY_STRIDE_EXT = 0x808C; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_COUNT_EXT")] + [NativeName(NativeNameType.Value, "0x808D")] + public const int GL_EDGE_FLAG_ARRAY_COUNT_EXT = 0x808D; + + [NativeName(NativeNameType.Const, "GL_VERTEX_ARRAY_POINTER_EXT")] + [NativeName(NativeNameType.Value, "0x808E")] + public const int GL_VERTEX_ARRAY_POINTER_EXT = 0x808E; + + [NativeName(NativeNameType.Const, "GL_NORMAL_ARRAY_POINTER_EXT")] + [NativeName(NativeNameType.Value, "0x808F")] + public const int GL_NORMAL_ARRAY_POINTER_EXT = 0x808F; + + [NativeName(NativeNameType.Const, "GL_COLOR_ARRAY_POINTER_EXT")] + [NativeName(NativeNameType.Value, "0x8090")] + public const int GL_COLOR_ARRAY_POINTER_EXT = 0x8090; + + [NativeName(NativeNameType.Const, "GL_INDEX_ARRAY_POINTER_EXT")] + [NativeName(NativeNameType.Value, "0x8091")] + public const int GL_INDEX_ARRAY_POINTER_EXT = 0x8091; + + [NativeName(NativeNameType.Const, "GL_TEXTURE_COORD_ARRAY_POINTER_EXT")] + [NativeName(NativeNameType.Value, "0x8092")] + public const int GL_TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092; + + [NativeName(NativeNameType.Const, "GL_EDGE_FLAG_ARRAY_POINTER_EXT")] + [NativeName(NativeNameType.Value, "0x8093")] + public const int GL_EDGE_FLAG_ARRAY_POINTER_EXT = 0x8093; + + [NativeName(NativeNameType.Const, "GL_BGR_EXT")] + [NativeName(NativeNameType.Value, "0x80E0")] + public const int GL_BGR_EXT = 0x80E0; + + [NativeName(NativeNameType.Const, "GL_BGRA_EXT")] + [NativeName(NativeNameType.Value, "0x80E1")] + public const int GL_BGRA_EXT = 0x80E1; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_FORMAT_EXT")] + [NativeName(NativeNameType.Value, "0x80D8")] + public const int GL_COLOR_TABLE_FORMAT_EXT = 0x80D8; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_WIDTH_EXT")] + [NativeName(NativeNameType.Value, "0x80D9")] + public const int GL_COLOR_TABLE_WIDTH_EXT = 0x80D9; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_RED_SIZE_EXT")] + [NativeName(NativeNameType.Value, "0x80DA")] + public const int GL_COLOR_TABLE_RED_SIZE_EXT = 0x80DA; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_GREEN_SIZE_EXT")] + [NativeName(NativeNameType.Value, "0x80DB")] + public const int GL_COLOR_TABLE_GREEN_SIZE_EXT = 0x80DB; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_BLUE_SIZE_EXT")] + [NativeName(NativeNameType.Value, "0x80DC")] + public const int GL_COLOR_TABLE_BLUE_SIZE_EXT = 0x80DC; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_ALPHA_SIZE_EXT")] + [NativeName(NativeNameType.Value, "0x80DD")] + public const int GL_COLOR_TABLE_ALPHA_SIZE_EXT = 0x80DD; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_LUMINANCE_SIZE_EXT")] + [NativeName(NativeNameType.Value, "0x80DE")] + public const int GL_COLOR_TABLE_LUMINANCE_SIZE_EXT = 0x80DE; + + [NativeName(NativeNameType.Const, "GL_COLOR_TABLE_INTENSITY_SIZE_EXT")] + [NativeName(NativeNameType.Value, "0x80DF")] + public const int GL_COLOR_TABLE_INTENSITY_SIZE_EXT = 0x80DF; + + [NativeName(NativeNameType.Const, "GL_COLOR_INDEX1_EXT")] + [NativeName(NativeNameType.Value, "0x80E2")] + public const int GL_COLOR_INDEX1_EXT = 0x80E2; + + [NativeName(NativeNameType.Const, "GL_COLOR_INDEX2_EXT")] + [NativeName(NativeNameType.Value, "0x80E3")] + public const int GL_COLOR_INDEX2_EXT = 0x80E3; + + [NativeName(NativeNameType.Const, "GL_COLOR_INDEX4_EXT")] + [NativeName(NativeNameType.Value, "0x80E4")] + public const int GL_COLOR_INDEX4_EXT = 0x80E4; + + [NativeName(NativeNameType.Const, "GL_COLOR_INDEX8_EXT")] + [NativeName(NativeNameType.Value, "0x80E5")] + public const int GL_COLOR_INDEX8_EXT = 0x80E5; + + [NativeName(NativeNameType.Const, "GL_COLOR_INDEX12_EXT")] + [NativeName(NativeNameType.Value, "0x80E6")] + public const int GL_COLOR_INDEX12_EXT = 0x80E6; + + [NativeName(NativeNameType.Const, "GL_COLOR_INDEX16_EXT")] + [NativeName(NativeNameType.Value, "0x80E7")] + public const int GL_COLOR_INDEX16_EXT = 0x80E7; + + [NativeName(NativeNameType.Const, "GL_MAX_ELEMENTS_VERTICES_WIN")] + [NativeName(NativeNameType.Value, "0x80E8")] + public const int GL_MAX_ELEMENTS_VERTICES_WIN = 0x80E8; + + [NativeName(NativeNameType.Const, "GL_MAX_ELEMENTS_INDICES_WIN")] + [NativeName(NativeNameType.Value, "0x80E9")] + public const int GL_MAX_ELEMENTS_INDICES_WIN = 0x80E9; + + [NativeName(NativeNameType.Const, "GL_PHONG_WIN")] + [NativeName(NativeNameType.Value, "0x80EA")] + public const int GL_PHONG_WIN = 0x80EA; + + [NativeName(NativeNameType.Const, "GL_PHONG_HINT_WIN")] + [NativeName(NativeNameType.Value, "0x80EB")] + public const int GL_PHONG_HINT_WIN = 0x80EB; + + [NativeName(NativeNameType.Const, "GL_FOG_SPECULAR_TEXTURE_WIN")] + [NativeName(NativeNameType.Value, "0x80EC")] + public const int GL_FOG_SPECULAR_TEXTURE_WIN = 0x80EC; + + [NativeName(NativeNameType.Const, "GLU_VERSION_1_1")] + [NativeName(NativeNameType.Value, "1")] + public const int GLU_VERSION_1_1 = 1; + + [NativeName(NativeNameType.Const, "GLU_VERSION_1_2")] + [NativeName(NativeNameType.Value, "1")] + public const int GLU_VERSION_1_2 = 1; + + [NativeName(NativeNameType.Const, "GLU_INVALID_ENUM")] + [NativeName(NativeNameType.Value, "100900")] + public const int GLU_INVALID_ENUM = 100900; + + [NativeName(NativeNameType.Const, "GLU_INVALID_VALUE")] + [NativeName(NativeNameType.Value, "100901")] + public const int GLU_INVALID_VALUE = 100901; + + [NativeName(NativeNameType.Const, "GLU_OUT_OF_MEMORY")] + [NativeName(NativeNameType.Value, "100902")] + public const int GLU_OUT_OF_MEMORY = 100902; + + [NativeName(NativeNameType.Const, "GLU_INCOMPATIBLE_GL_VERSION")] + [NativeName(NativeNameType.Value, "100903")] + public const int GLU_INCOMPATIBLE_GL_VERSION = 100903; + + [NativeName(NativeNameType.Const, "GLU_VERSION")] + [NativeName(NativeNameType.Value, "100800")] + public const int GLU_VERSION = 100800; + + [NativeName(NativeNameType.Const, "GLU_EXTENSIONS")] + [NativeName(NativeNameType.Value, "100801")] + public const int GLU_EXTENSIONS = 100801; + + [NativeName(NativeNameType.Const, "GLU_SMOOTH")] + [NativeName(NativeNameType.Value, "100000")] + public const int GLU_SMOOTH = 100000; + + [NativeName(NativeNameType.Const, "GLU_FLAT")] + [NativeName(NativeNameType.Value, "100001")] + public const int GLU_FLAT = 100001; + + [NativeName(NativeNameType.Const, "GLU_NONE")] + [NativeName(NativeNameType.Value, "100002")] + public const int GLU_NONE = 100002; + + [NativeName(NativeNameType.Const, "GLU_POINT")] + [NativeName(NativeNameType.Value, "100010")] + public const int GLU_POINT = 100010; + + [NativeName(NativeNameType.Const, "GLU_LINE")] + [NativeName(NativeNameType.Value, "100011")] + public const int GLU_LINE = 100011; + + [NativeName(NativeNameType.Const, "GLU_FILL")] + [NativeName(NativeNameType.Value, "100012")] + public const int GLU_FILL = 100012; + + [NativeName(NativeNameType.Const, "GLU_SILHOUETTE")] + [NativeName(NativeNameType.Value, "100013")] + public const int GLU_SILHOUETTE = 100013; + + [NativeName(NativeNameType.Const, "GLU_OUTSIDE")] + [NativeName(NativeNameType.Value, "100020")] + public const int GLU_OUTSIDE = 100020; + + [NativeName(NativeNameType.Const, "GLU_INSIDE")] + [NativeName(NativeNameType.Value, "100021")] + public const int GLU_INSIDE = 100021; + + [NativeName(NativeNameType.Const, "GLU_TESS_WINDING_RULE")] + [NativeName(NativeNameType.Value, "100140")] + public const int GLU_TESS_WINDING_RULE = 100140; + + [NativeName(NativeNameType.Const, "GLU_TESS_BOUNDARY_ONLY")] + [NativeName(NativeNameType.Value, "100141")] + public const int GLU_TESS_BOUNDARY_ONLY = 100141; + + [NativeName(NativeNameType.Const, "GLU_TESS_TOLERANCE")] + [NativeName(NativeNameType.Value, "100142")] + public const int GLU_TESS_TOLERANCE = 100142; + + [NativeName(NativeNameType.Const, "GLU_TESS_WINDING_ODD")] + [NativeName(NativeNameType.Value, "100130")] + public const int GLU_TESS_WINDING_ODD = 100130; + + [NativeName(NativeNameType.Const, "GLU_TESS_WINDING_NONZERO")] + [NativeName(NativeNameType.Value, "100131")] + public const int GLU_TESS_WINDING_NONZERO = 100131; + + [NativeName(NativeNameType.Const, "GLU_TESS_WINDING_POSITIVE")] + [NativeName(NativeNameType.Value, "100132")] + public const int GLU_TESS_WINDING_POSITIVE = 100132; + + [NativeName(NativeNameType.Const, "GLU_TESS_WINDING_NEGATIVE")] + [NativeName(NativeNameType.Value, "100133")] + public const int GLU_TESS_WINDING_NEGATIVE = 100133; + + [NativeName(NativeNameType.Const, "GLU_TESS_WINDING_ABS_GEQ_TWO")] + [NativeName(NativeNameType.Value, "100134")] + public const int GLU_TESS_WINDING_ABS_GEQ_TWO = 100134; + + [NativeName(NativeNameType.Const, "GLU_TESS_BEGIN")] + [NativeName(NativeNameType.Value, "100100")] + public const int GLU_TESS_BEGIN = 100100; + + [NativeName(NativeNameType.Const, "GLU_TESS_VERTEX")] + [NativeName(NativeNameType.Value, "100101")] + public const int GLU_TESS_VERTEX = 100101; + + [NativeName(NativeNameType.Const, "GLU_TESS_END")] + [NativeName(NativeNameType.Value, "100102")] + public const int GLU_TESS_END = 100102; + + [NativeName(NativeNameType.Const, "GLU_TESS_ERROR")] + [NativeName(NativeNameType.Value, "100103")] + public const int GLU_TESS_ERROR = 100103; + + [NativeName(NativeNameType.Const, "GLU_TESS_EDGE_FLAG")] + [NativeName(NativeNameType.Value, "100104")] + public const int GLU_TESS_EDGE_FLAG = 100104; + + [NativeName(NativeNameType.Const, "GLU_TESS_COMBINE")] + [NativeName(NativeNameType.Value, "100105")] + public const int GLU_TESS_COMBINE = 100105; + + [NativeName(NativeNameType.Const, "GLU_TESS_BEGIN_DATA")] + [NativeName(NativeNameType.Value, "100106")] + public const int GLU_TESS_BEGIN_DATA = 100106; + + [NativeName(NativeNameType.Const, "GLU_TESS_VERTEX_DATA")] + [NativeName(NativeNameType.Value, "100107")] + public const int GLU_TESS_VERTEX_DATA = 100107; + + [NativeName(NativeNameType.Const, "GLU_TESS_END_DATA")] + [NativeName(NativeNameType.Value, "100108")] + public const int GLU_TESS_END_DATA = 100108; + + [NativeName(NativeNameType.Const, "GLU_TESS_ERROR_DATA")] + [NativeName(NativeNameType.Value, "100109")] + public const int GLU_TESS_ERROR_DATA = 100109; + + [NativeName(NativeNameType.Const, "GLU_TESS_EDGE_FLAG_DATA")] + [NativeName(NativeNameType.Value, "100110")] + public const int GLU_TESS_EDGE_FLAG_DATA = 100110; + + [NativeName(NativeNameType.Const, "GLU_TESS_COMBINE_DATA")] + [NativeName(NativeNameType.Value, "100111")] + public const int GLU_TESS_COMBINE_DATA = 100111; + + [NativeName(NativeNameType.Const, "GLU_TESS_ERROR1")] + [NativeName(NativeNameType.Value, "100151")] + public const int GLU_TESS_ERROR1 = 100151; + + [NativeName(NativeNameType.Const, "GLU_TESS_ERROR2")] + [NativeName(NativeNameType.Value, "100152")] + public const int GLU_TESS_ERROR2 = 100152; + + [NativeName(NativeNameType.Const, "GLU_TESS_ERROR3")] + [NativeName(NativeNameType.Value, "100153")] + public const int GLU_TESS_ERROR3 = 100153; + + [NativeName(NativeNameType.Const, "GLU_TESS_ERROR4")] + [NativeName(NativeNameType.Value, "100154")] + public const int GLU_TESS_ERROR4 = 100154; + + [NativeName(NativeNameType.Const, "GLU_TESS_ERROR5")] + [NativeName(NativeNameType.Value, "100155")] + public const int GLU_TESS_ERROR5 = 100155; + + [NativeName(NativeNameType.Const, "GLU_TESS_ERROR6")] + [NativeName(NativeNameType.Value, "100156")] + public const int GLU_TESS_ERROR6 = 100156; + + [NativeName(NativeNameType.Const, "GLU_TESS_ERROR7")] + [NativeName(NativeNameType.Value, "100157")] + public const int GLU_TESS_ERROR7 = 100157; + + [NativeName(NativeNameType.Const, "GLU_TESS_ERROR8")] + [NativeName(NativeNameType.Value, "100158")] + public const int GLU_TESS_ERROR8 = 100158; + + [NativeName(NativeNameType.Const, "GLU_AUTO_LOAD_MATRIX")] + [NativeName(NativeNameType.Value, "100200")] + public const int GLU_AUTO_LOAD_MATRIX = 100200; + + [NativeName(NativeNameType.Const, "GLU_CULLING")] + [NativeName(NativeNameType.Value, "100201")] + public const int GLU_CULLING = 100201; + + [NativeName(NativeNameType.Const, "GLU_SAMPLING_TOLERANCE")] + [NativeName(NativeNameType.Value, "100203")] + public const int GLU_SAMPLING_TOLERANCE = 100203; + + [NativeName(NativeNameType.Const, "GLU_DISPLAY_MODE")] + [NativeName(NativeNameType.Value, "100204")] + public const int GLU_DISPLAY_MODE = 100204; + + [NativeName(NativeNameType.Const, "GLU_PARAMETRIC_TOLERANCE")] + [NativeName(NativeNameType.Value, "100202")] + public const int GLU_PARAMETRIC_TOLERANCE = 100202; + + [NativeName(NativeNameType.Const, "GLU_SAMPLING_METHOD")] + [NativeName(NativeNameType.Value, "100205")] + public const int GLU_SAMPLING_METHOD = 100205; + + [NativeName(NativeNameType.Const, "GLU_U_STEP")] + [NativeName(NativeNameType.Value, "100206")] + public const int GLU_U_STEP = 100206; + + [NativeName(NativeNameType.Const, "GLU_V_STEP")] + [NativeName(NativeNameType.Value, "100207")] + public const int GLU_V_STEP = 100207; + + [NativeName(NativeNameType.Const, "GLU_PATH_LENGTH")] + [NativeName(NativeNameType.Value, "100215")] + public const int GLU_PATH_LENGTH = 100215; + + [NativeName(NativeNameType.Const, "GLU_PARAMETRIC_ERROR")] + [NativeName(NativeNameType.Value, "100216")] + public const int GLU_PARAMETRIC_ERROR = 100216; + + [NativeName(NativeNameType.Const, "GLU_DOMAIN_DISTANCE")] + [NativeName(NativeNameType.Value, "100217")] + public const int GLU_DOMAIN_DISTANCE = 100217; + + [NativeName(NativeNameType.Const, "GLU_MAP1_TRIM_2")] + [NativeName(NativeNameType.Value, "100210")] + public const int GLU_MAP1_TRIM_2 = 100210; + + [NativeName(NativeNameType.Const, "GLU_MAP1_TRIM_3")] + [NativeName(NativeNameType.Value, "100211")] + public const int GLU_MAP1_TRIM_3 = 100211; + + [NativeName(NativeNameType.Const, "GLU_OUTLINE_POLYGON")] + [NativeName(NativeNameType.Value, "100240")] + public const int GLU_OUTLINE_POLYGON = 100240; + + [NativeName(NativeNameType.Const, "GLU_OUTLINE_PATCH")] + [NativeName(NativeNameType.Value, "100241")] + public const int GLU_OUTLINE_PATCH = 100241; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR1")] + [NativeName(NativeNameType.Value, "100251")] + public const int GLU_NURBS_ERROR1 = 100251; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR2")] + [NativeName(NativeNameType.Value, "100252")] + public const int GLU_NURBS_ERROR2 = 100252; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR3")] + [NativeName(NativeNameType.Value, "100253")] + public const int GLU_NURBS_ERROR3 = 100253; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR4")] + [NativeName(NativeNameType.Value, "100254")] + public const int GLU_NURBS_ERROR4 = 100254; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR5")] + [NativeName(NativeNameType.Value, "100255")] + public const int GLU_NURBS_ERROR5 = 100255; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR6")] + [NativeName(NativeNameType.Value, "100256")] + public const int GLU_NURBS_ERROR6 = 100256; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR7")] + [NativeName(NativeNameType.Value, "100257")] + public const int GLU_NURBS_ERROR7 = 100257; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR8")] + [NativeName(NativeNameType.Value, "100258")] + public const int GLU_NURBS_ERROR8 = 100258; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR9")] + [NativeName(NativeNameType.Value, "100259")] + public const int GLU_NURBS_ERROR9 = 100259; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR10")] + [NativeName(NativeNameType.Value, "100260")] + public const int GLU_NURBS_ERROR10 = 100260; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR11")] + [NativeName(NativeNameType.Value, "100261")] + public const int GLU_NURBS_ERROR11 = 100261; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR12")] + [NativeName(NativeNameType.Value, "100262")] + public const int GLU_NURBS_ERROR12 = 100262; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR13")] + [NativeName(NativeNameType.Value, "100263")] + public const int GLU_NURBS_ERROR13 = 100263; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR14")] + [NativeName(NativeNameType.Value, "100264")] + public const int GLU_NURBS_ERROR14 = 100264; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR15")] + [NativeName(NativeNameType.Value, "100265")] + public const int GLU_NURBS_ERROR15 = 100265; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR16")] + [NativeName(NativeNameType.Value, "100266")] + public const int GLU_NURBS_ERROR16 = 100266; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR17")] + [NativeName(NativeNameType.Value, "100267")] + public const int GLU_NURBS_ERROR17 = 100267; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR18")] + [NativeName(NativeNameType.Value, "100268")] + public const int GLU_NURBS_ERROR18 = 100268; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR19")] + [NativeName(NativeNameType.Value, "100269")] + public const int GLU_NURBS_ERROR19 = 100269; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR20")] + [NativeName(NativeNameType.Value, "100270")] + public const int GLU_NURBS_ERROR20 = 100270; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR21")] + [NativeName(NativeNameType.Value, "100271")] + public const int GLU_NURBS_ERROR21 = 100271; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR22")] + [NativeName(NativeNameType.Value, "100272")] + public const int GLU_NURBS_ERROR22 = 100272; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR23")] + [NativeName(NativeNameType.Value, "100273")] + public const int GLU_NURBS_ERROR23 = 100273; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR24")] + [NativeName(NativeNameType.Value, "100274")] + public const int GLU_NURBS_ERROR24 = 100274; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR25")] + [NativeName(NativeNameType.Value, "100275")] + public const int GLU_NURBS_ERROR25 = 100275; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR26")] + [NativeName(NativeNameType.Value, "100276")] + public const int GLU_NURBS_ERROR26 = 100276; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR27")] + [NativeName(NativeNameType.Value, "100277")] + public const int GLU_NURBS_ERROR27 = 100277; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR28")] + [NativeName(NativeNameType.Value, "100278")] + public const int GLU_NURBS_ERROR28 = 100278; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR29")] + [NativeName(NativeNameType.Value, "100279")] + public const int GLU_NURBS_ERROR29 = 100279; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR30")] + [NativeName(NativeNameType.Value, "100280")] + public const int GLU_NURBS_ERROR30 = 100280; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR31")] + [NativeName(NativeNameType.Value, "100281")] + public const int GLU_NURBS_ERROR31 = 100281; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR32")] + [NativeName(NativeNameType.Value, "100282")] + public const int GLU_NURBS_ERROR32 = 100282; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR33")] + [NativeName(NativeNameType.Value, "100283")] + public const int GLU_NURBS_ERROR33 = 100283; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR34")] + [NativeName(NativeNameType.Value, "100284")] + public const int GLU_NURBS_ERROR34 = 100284; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR35")] + [NativeName(NativeNameType.Value, "100285")] + public const int GLU_NURBS_ERROR35 = 100285; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR36")] + [NativeName(NativeNameType.Value, "100286")] + public const int GLU_NURBS_ERROR36 = 100286; + + [NativeName(NativeNameType.Const, "GLU_NURBS_ERROR37")] + [NativeName(NativeNameType.Value, "100287")] + public const int GLU_NURBS_ERROR37 = 100287; + + [NativeName(NativeNameType.Const, "GLU_CW")] + [NativeName(NativeNameType.Value, "100120")] + public const int GLU_CW = 100120; + + [NativeName(NativeNameType.Const, "GLU_CCW")] + [NativeName(NativeNameType.Value, "100121")] + public const int GLU_CCW = 100121; + + [NativeName(NativeNameType.Const, "GLU_INTERIOR")] + [NativeName(NativeNameType.Value, "100122")] + public const int GLU_INTERIOR = 100122; + + [NativeName(NativeNameType.Const, "GLU_EXTERIOR")] + [NativeName(NativeNameType.Value, "100123")] + public const int GLU_EXTERIOR = 100123; + + [NativeName(NativeNameType.Const, "GLU_UNKNOWN")] + [NativeName(NativeNameType.Value, "100124")] + public const int GLU_UNKNOWN = 100124; + + } +} diff --git a/Hexa.NET.OpenGL/Generated/Delegates.cs b/Hexa.NET.OpenGL/Generated/Delegates.cs new file mode 100644 index 0000000..c660752 --- /dev/null +++ b/Hexa.NET.OpenGL/Generated/Delegates.cs @@ -0,0 +1,266 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL +{ + /// + /// EXT_vertex_array
+ ///
+ [NativeName(NativeNameType.Delegate, "PFNGLARRAYELEMENTEXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLarRayElementExtProc([NativeName(NativeNameType.Param, "i")] [NativeName(NativeNameType.Type, "GLint")] int i); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLDRAWARRAYSEXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLdRawArraysExtProc([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode, [NativeName(NativeNameType.Param, "first")] [NativeName(NativeNameType.Type, "GLint")] int first, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLVERTEXPOINTEREXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLvErTexPointerExtProc([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLint")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLNORMALPOINTEREXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLnOrMalPointerExtProc([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLCOLORPOINTEREXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLcOlorPointerExtProc([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLint")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLINDEXPOINTEREXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLindExpoInterExtProc([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLTEXCOORDPOINTEREXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLtExCooRdPointerExtProc([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLint")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLEDGEFLAGPOINTEREXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLedgeFlagPointerExtProc([NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLboolean*")] byte* pointer); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLGETPOINTERVEXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLgEtPointerVextProc([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLvoid**")] void** @params); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLARRAYELEMENTARRAYEXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLarRayElementArrayExtProc([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count, [NativeName(NativeNameType.Param, "pi")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pi); + + /// + /// WIN_draw_range_elements
+ ///
+ [NativeName(NativeNameType.Delegate, "PFNGLDRAWRANGEELEMENTSWINPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLdRawRangeElementsWinProc([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode, [NativeName(NativeNameType.Param, "start")] [NativeName(NativeNameType.Type, "GLuint")] uint start, [NativeName(NativeNameType.Param, "end")] [NativeName(NativeNameType.Type, "GLuint")] uint end, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "indices")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* indices); + + /// + /// WIN_swap_hint
+ ///
+ [NativeName(NativeNameType.Delegate, "PFNGLADDSWAPHINTRECTWINPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLadDsWapHintRectWinProc([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height); + + /// + /// EXT_paletted_texture
+ ///
+ [NativeName(NativeNameType.Delegate, "PFNGLCOLORTABLEEXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLcOlorTableExtProc([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "internalFormat")] [NativeName(NativeNameType.Type, "GLenum")] uint internalFormat, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* data); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLCOLORSUBTABLEEXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLcOlorSubTableExtProc([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "start")] [NativeName(NativeNameType.Type, "GLsizei")] int start, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* data); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLGETCOLORTABLEEXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLgEtcOlorTableExtProc([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "GLvoid*")] void* data); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLGETCOLORTABLEPARAMETERIVEXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLgEtcOlorTableParameterIveXTpRoc([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "PFNGLGETCOLORTABLEPARAMETERFVEXTPROC")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void PfNgLgEtcOlorTableParameterFvExtProc([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params); + + /// + /// gluQuadricCallback
+ ///
+ [NativeName(NativeNameType.Delegate, "GLUquadricErrorProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUquadricErrorProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLenum")] uint unknown0); + + /// + /// gluTessCallback
+ ///
+ [NativeName(NativeNameType.Delegate, "GLUtessBeginProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessBeginProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLenum")] uint unknown0); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "GLUtessEdgeFlagProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessEdgeFlagProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLboolean")] byte unknown0); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "GLUtessVertexProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessVertexProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown0); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "GLUtessEndProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessEndProc(); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "GLUtessErrorProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessErrorProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLenum")] uint unknown0); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "GLUtessCombineProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessCombineProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLdouble[3]")] double* unknown0, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*[4]")] void** unknown1, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLfloat[4]")] float* unknown2, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void**")] void** unknown3); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "GLUtessBeginDataProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessBeginDataProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLenum")] uint unknown0, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown1); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "GLUtessEdgeFlagDataProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessEdgeFlagDataProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLboolean")] byte unknown0, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown1); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "GLUtessVertexDataProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessVertexDataProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown0, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown1); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "GLUtessEndDataProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessEndDataProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown0); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "GLUtessErrorDataProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessErrorDataProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLenum")] uint unknown0, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown1); + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Delegate, "GLUtessCombineDataProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUtessCombineDataProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLdouble[3]")] double* unknown0, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*[4]")] void** unknown1, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLfloat[4]")] float* unknown2, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void**")] void** unknown3, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown4); + + /// + /// gluNurbsCallback
+ ///
+ [NativeName(NativeNameType.Delegate, "GLUnurbsErrorProc")] + [return: NativeName(NativeNameType.Type, "void")] + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void GLUnurbsErrorProc([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "GLenum")] uint unknown0); + +} diff --git a/Hexa.NET.OpenGL/Generated/Enumerations.cs b/Hexa.NET.OpenGL/Generated/Enumerations.cs new file mode 100644 index 0000000..4db6aad --- /dev/null +++ b/Hexa.NET.OpenGL/Generated/Enumerations.cs @@ -0,0 +1,15 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL +{ +} diff --git a/Hexa.NET.OpenGL/Generated/Extensions.cs b/Hexa.NET.OpenGL/Generated/Extensions.cs new file mode 100644 index 0000000..ea6794c --- /dev/null +++ b/Hexa.NET.OpenGL/Generated/Extensions.cs @@ -0,0 +1,20 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL +{ + public static unsafe class Extensions + { + } +} diff --git a/Hexa.NET.OpenGL/Generated/Functions.cs b/Hexa.NET.OpenGL/Generated/Functions.cs new file mode 100644 index 0000000..295967a --- /dev/null +++ b/Hexa.NET.OpenGL/Generated/Functions.cs @@ -0,0 +1,9773 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL +{ + public unsafe partial class OpenGL + { + internal const string LibName = "OpenGL32"; + + /// + /// **********************************************************
+ ///
+ [NativeName(NativeNameType.Func, "glAccum")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glAccum")] + internal static extern void GlAccumNative([NativeName(NativeNameType.Param, "op")] [NativeName(NativeNameType.Type, "GLenum")] uint op, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLfloat")] float value); + + /// /// **********************************************************
///
[NativeName(NativeNameType.Func, "glAccum")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlAccum([NativeName(NativeNameType.Param, "op")] [NativeName(NativeNameType.Type, "GLenum")] uint op, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLfloat")] float value) + { + GlAccumNative(op, value); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glAlphaFunc")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glAlphaFunc")] + internal static extern void GlAlphaFuncNative([NativeName(NativeNameType.Param, "func")] [NativeName(NativeNameType.Type, "GLenum")] uint func, [NativeName(NativeNameType.Param, "ref")] [NativeName(NativeNameType.Type, "GLclampf")] float reference); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glAlphaFunc")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlAlphaFunc([NativeName(NativeNameType.Param, "func")] [NativeName(NativeNameType.Type, "GLenum")] uint func, [NativeName(NativeNameType.Param, "ref")] [NativeName(NativeNameType.Type, "GLclampf")] float reference) + { + GlAlphaFuncNative(func, reference); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glAreTexturesResident")] + [return: NativeName(NativeNameType.Type, "GLboolean")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glAreTexturesResident")] + internal static extern byte GlAreTexturesResidentNative([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* textures, [NativeName(NativeNameType.Param, "residences")] [NativeName(NativeNameType.Type, "GLboolean*")] byte* residences); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glAreTexturesResident")] + [return: NativeName(NativeNameType.Type, "GLboolean")] + public static byte GlAreTexturesResident([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* textures, [NativeName(NativeNameType.Param, "residences")] [NativeName(NativeNameType.Type, "GLboolean*")] byte* residences) + { + byte ret = GlAreTexturesResidentNative(n, textures, residences); + return ret; + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glAreTexturesResident")] + [return: NativeName(NativeNameType.Type, "GLboolean")] + public static byte GlAreTexturesResident([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] ref uint textures, [NativeName(NativeNameType.Param, "residences")] [NativeName(NativeNameType.Type, "GLboolean*")] byte* residences) + { + fixed (uint* ptextures = &textures) + { + byte ret = GlAreTexturesResidentNative(n, (uint*)ptextures, residences); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glAreTexturesResident")] + [return: NativeName(NativeNameType.Type, "GLboolean")] + public static byte GlAreTexturesResident([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* textures, [NativeName(NativeNameType.Param, "residences")] [NativeName(NativeNameType.Type, "GLboolean*")] ref byte residences) + { + fixed (byte* presidences = &residences) + { + byte ret = GlAreTexturesResidentNative(n, textures, (byte*)presidences); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glAreTexturesResident")] + [return: NativeName(NativeNameType.Type, "GLboolean")] + public static byte GlAreTexturesResident([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] ref uint textures, [NativeName(NativeNameType.Param, "residences")] [NativeName(NativeNameType.Type, "GLboolean*")] ref byte residences) + { + fixed (uint* ptextures = &textures) + { + fixed (byte* presidences = &residences) + { + byte ret = GlAreTexturesResidentNative(n, (uint*)ptextures, (byte*)presidences); + return ret; + } + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glArrayElement")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glArrayElement")] + internal static extern void GlArrayElementNative([NativeName(NativeNameType.Param, "i")] [NativeName(NativeNameType.Type, "GLint")] int i); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glArrayElement")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlArrayElement([NativeName(NativeNameType.Param, "i")] [NativeName(NativeNameType.Type, "GLint")] int i) + { + GlArrayElementNative(i); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glBegin")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glBegin")] + internal static extern void GlBeginNative([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glBegin")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlBegin([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + GlBeginNative(mode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glBindTexture")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glBindTexture")] + internal static extern void GlBindTextureNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "texture")] [NativeName(NativeNameType.Type, "GLuint")] uint texture); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glBindTexture")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlBindTexture([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "texture")] [NativeName(NativeNameType.Type, "GLuint")] uint texture) + { + GlBindTextureNative(target, texture); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glBitmap")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glBitmap")] + internal static extern void GlBitmapNative([NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "xorig")] [NativeName(NativeNameType.Type, "GLfloat")] float xorig, [NativeName(NativeNameType.Param, "yorig")] [NativeName(NativeNameType.Type, "GLfloat")] float yorig, [NativeName(NativeNameType.Param, "xmove")] [NativeName(NativeNameType.Type, "GLfloat")] float xmove, [NativeName(NativeNameType.Param, "ymove")] [NativeName(NativeNameType.Type, "GLfloat")] float ymove, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "const GLubyte*")] byte* bitmap); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glBitmap")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlBitmap([NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "xorig")] [NativeName(NativeNameType.Type, "GLfloat")] float xorig, [NativeName(NativeNameType.Param, "yorig")] [NativeName(NativeNameType.Type, "GLfloat")] float yorig, [NativeName(NativeNameType.Param, "xmove")] [NativeName(NativeNameType.Type, "GLfloat")] float xmove, [NativeName(NativeNameType.Param, "ymove")] [NativeName(NativeNameType.Type, "GLfloat")] float ymove, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "const GLubyte*")] byte* bitmap) + { + GlBitmapNative(width, height, xorig, yorig, xmove, ymove, bitmap); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glBitmap")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlBitmap([NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "xorig")] [NativeName(NativeNameType.Type, "GLfloat")] float xorig, [NativeName(NativeNameType.Param, "yorig")] [NativeName(NativeNameType.Type, "GLfloat")] float yorig, [NativeName(NativeNameType.Param, "xmove")] [NativeName(NativeNameType.Type, "GLfloat")] float xmove, [NativeName(NativeNameType.Param, "ymove")] [NativeName(NativeNameType.Type, "GLfloat")] float ymove, [NativeName(NativeNameType.Param, "bitmap")] [NativeName(NativeNameType.Type, "const GLubyte*")] ref byte bitmap) + { + fixed (byte* pbitmap = &bitmap) + { + GlBitmapNative(width, height, xorig, yorig, xmove, ymove, (byte*)pbitmap); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glBlendFunc")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glBlendFunc")] + internal static extern void GlBlendFuncNative([NativeName(NativeNameType.Param, "sfactor")] [NativeName(NativeNameType.Type, "GLenum")] uint sfactor, [NativeName(NativeNameType.Param, "dfactor")] [NativeName(NativeNameType.Type, "GLenum")] uint dfactor); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glBlendFunc")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlBlendFunc([NativeName(NativeNameType.Param, "sfactor")] [NativeName(NativeNameType.Type, "GLenum")] uint sfactor, [NativeName(NativeNameType.Param, "dfactor")] [NativeName(NativeNameType.Type, "GLenum")] uint dfactor) + { + GlBlendFuncNative(sfactor, dfactor); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glCallList")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glCallList")] + internal static extern void GlCallListNative([NativeName(NativeNameType.Param, "list")] [NativeName(NativeNameType.Type, "GLuint")] uint list); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glCallList")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlCallList([NativeName(NativeNameType.Param, "list")] [NativeName(NativeNameType.Type, "GLuint")] uint list) + { + GlCallListNative(list); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glCallLists")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glCallLists")] + internal static extern void GlCallListsNative([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "lists")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* lists); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glCallLists")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlCallLists([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "lists")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* lists) + { + GlCallListsNative(n, type, lists); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glClear")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glClear")] + internal static extern void GlClearNative([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLbitfield")] uint mask); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glClear")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlClear([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLbitfield")] uint mask) + { + GlClearNative(mask); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glClearAccum")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glClearAccum")] + internal static extern void GlClearAccumNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLfloat")] float red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLfloat")] float green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLfloat")] float blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLfloat")] float alpha); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glClearAccum")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlClearAccum([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLfloat")] float red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLfloat")] float green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLfloat")] float blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLfloat")] float alpha) + { + GlClearAccumNative(red, green, blue, alpha); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glClearColor")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glClearColor")] + internal static extern void GlClearColorNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLclampf")] float red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLclampf")] float green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLclampf")] float blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLclampf")] float alpha); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glClearColor")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlClearColor([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLclampf")] float red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLclampf")] float green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLclampf")] float blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLclampf")] float alpha) + { + GlClearColorNative(red, green, blue, alpha); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glClearDepth")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glClearDepth")] + internal static extern void GlClearDepthNative([NativeName(NativeNameType.Param, "depth")] [NativeName(NativeNameType.Type, "GLclampd")] double depth); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glClearDepth")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlClearDepth([NativeName(NativeNameType.Param, "depth")] [NativeName(NativeNameType.Type, "GLclampd")] double depth) + { + GlClearDepthNative(depth); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glClearIndex")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glClearIndex")] + internal static extern void GlClearIndexNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLfloat")] float c); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glClearIndex")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlClearIndex([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLfloat")] float c) + { + GlClearIndexNative(c); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glClearStencil")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glClearStencil")] + internal static extern void GlClearStencilNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLint")] int s); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glClearStencil")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlClearStencil([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLint")] int s) + { + GlClearStencilNative(s); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glClipPlane")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glClipPlane")] + internal static extern void GlClipPlaneNative([NativeName(NativeNameType.Param, "plane")] [NativeName(NativeNameType.Type, "GLenum")] uint plane, [NativeName(NativeNameType.Param, "equation")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* equation); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glClipPlane")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlClipPlane([NativeName(NativeNameType.Param, "plane")] [NativeName(NativeNameType.Type, "GLenum")] uint plane, [NativeName(NativeNameType.Param, "equation")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* equation) + { + GlClipPlaneNative(plane, equation); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glClipPlane")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlClipPlane([NativeName(NativeNameType.Param, "plane")] [NativeName(NativeNameType.Type, "GLenum")] uint plane, [NativeName(NativeNameType.Param, "equation")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double equation) + { + fixed (double* pequation = &equation) + { + GlClipPlaneNative(plane, (double*)pequation); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3b")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3b")] + internal static extern void GlColor3BNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte blue); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3b")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3B([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte blue) + { + GlColor3BNative(red, green, blue); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3bv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3bv")] + internal static extern void GlColor3BvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLbyte*")] sbyte* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3bv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Bv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLbyte*")] sbyte* v) + { + GlColor3BvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3bv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Bv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLbyte*")] ref sbyte v) + { + fixed (sbyte* pv = &v) + { + GlColor3BvNative((sbyte*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3d")] + internal static extern void GlColor3DNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLdouble")] double red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLdouble")] double green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLdouble")] double blue); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3D([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLdouble")] double red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLdouble")] double green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLdouble")] double blue) + { + GlColor3DNative(red, green, blue); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3dv")] + internal static extern void GlColor3DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlColor3DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlColor3DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3f")] + internal static extern void GlColor3FNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLfloat")] float red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLfloat")] float green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLfloat")] float blue); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3F([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLfloat")] float red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLfloat")] float green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLfloat")] float blue) + { + GlColor3FNative(red, green, blue); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3fv")] + internal static extern void GlColor3FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlColor3FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlColor3FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3i")] + internal static extern void GlColor3INative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLint")] int red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLint")] int green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLint")] int blue); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3I([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLint")] int red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLint")] int green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLint")] int blue) + { + GlColor3INative(red, green, blue); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3iv")] + internal static extern void GlColor3IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlColor3IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlColor3IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3s")] + internal static extern void GlColor3SNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLshort")] short red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLshort")] short green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLshort")] short blue); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3S([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLshort")] short red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLshort")] short green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLshort")] short blue) + { + GlColor3SNative(red, green, blue); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3sv")] + internal static extern void GlColor3SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlColor3SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlColor3SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3ub")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3ub")] + internal static extern void GlColor3UbNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLubyte")] byte red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLubyte")] byte green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLubyte")] byte blue); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3ub")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Ub([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLubyte")] byte red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLubyte")] byte green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLubyte")] byte blue) + { + GlColor3UbNative(red, green, blue); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3ubv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3ubv")] + internal static extern void GlColor3UbvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLubyte*")] byte* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3ubv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Ubv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLubyte*")] byte* v) + { + GlColor3UbvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3ubv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Ubv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLubyte*")] ref byte v) + { + fixed (byte* pv = &v) + { + GlColor3UbvNative((byte*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3ui")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3ui")] + internal static extern void GlColor3UiNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLuint")] uint red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLuint")] uint green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLuint")] uint blue); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3ui")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Ui([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLuint")] uint red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLuint")] uint green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLuint")] uint blue) + { + GlColor3UiNative(red, green, blue); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3uiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3uiv")] + internal static extern void GlColor3UivNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3uiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Uiv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* v) + { + GlColor3UivNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3uiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Uiv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLuint*")] ref uint v) + { + fixed (uint* pv = &v) + { + GlColor3UivNative((uint*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3us")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3us")] + internal static extern void GlColor3UsNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLushort")] ushort red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLushort")] ushort green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLushort")] ushort blue); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3us")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Us([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLushort")] ushort red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLushort")] ushort green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLushort")] ushort blue) + { + GlColor3UsNative(red, green, blue); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor3usv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor3usv")] + internal static extern void GlColor3UsvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLushort*")] ushort* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3usv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Usv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLushort*")] ushort* v) + { + GlColor3UsvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor3usv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor3Usv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLushort*")] ref ushort v) + { + fixed (ushort* pv = &v) + { + GlColor3UsvNative((ushort*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4b")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4b")] + internal static extern void GlColor4BNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte alpha); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4b")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4B([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte alpha) + { + GlColor4BNative(red, green, blue, alpha); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4bv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4bv")] + internal static extern void GlColor4BvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLbyte*")] sbyte* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4bv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Bv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLbyte*")] sbyte* v) + { + GlColor4BvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4bv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Bv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLbyte*")] ref sbyte v) + { + fixed (sbyte* pv = &v) + { + GlColor4BvNative((sbyte*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4d")] + internal static extern void GlColor4DNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLdouble")] double red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLdouble")] double green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLdouble")] double blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLdouble")] double alpha); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4D([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLdouble")] double red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLdouble")] double green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLdouble")] double blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLdouble")] double alpha) + { + GlColor4DNative(red, green, blue, alpha); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4dv")] + internal static extern void GlColor4DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlColor4DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlColor4DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4f")] + internal static extern void GlColor4FNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLfloat")] float red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLfloat")] float green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLfloat")] float blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLfloat")] float alpha); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4F([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLfloat")] float red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLfloat")] float green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLfloat")] float blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLfloat")] float alpha) + { + GlColor4FNative(red, green, blue, alpha); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4fv")] + internal static extern void GlColor4FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlColor4FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlColor4FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4i")] + internal static extern void GlColor4INative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLint")] int red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLint")] int green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLint")] int blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLint")] int alpha); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4I([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLint")] int red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLint")] int green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLint")] int blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLint")] int alpha) + { + GlColor4INative(red, green, blue, alpha); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4iv")] + internal static extern void GlColor4IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlColor4IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlColor4IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4s")] + internal static extern void GlColor4SNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLshort")] short red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLshort")] short green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLshort")] short blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLshort")] short alpha); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4S([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLshort")] short red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLshort")] short green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLshort")] short blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLshort")] short alpha) + { + GlColor4SNative(red, green, blue, alpha); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4sv")] + internal static extern void GlColor4SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlColor4SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlColor4SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4ub")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4ub")] + internal static extern void GlColor4UbNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLubyte")] byte red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLubyte")] byte green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLubyte")] byte blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLubyte")] byte alpha); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4ub")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Ub([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLubyte")] byte red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLubyte")] byte green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLubyte")] byte blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLubyte")] byte alpha) + { + GlColor4UbNative(red, green, blue, alpha); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4ubv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4ubv")] + internal static extern void GlColor4UbvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLubyte*")] byte* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4ubv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Ubv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLubyte*")] byte* v) + { + GlColor4UbvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4ubv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Ubv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLubyte*")] ref byte v) + { + fixed (byte* pv = &v) + { + GlColor4UbvNative((byte*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4ui")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4ui")] + internal static extern void GlColor4UiNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLuint")] uint red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLuint")] uint green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLuint")] uint blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLuint")] uint alpha); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4ui")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Ui([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLuint")] uint red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLuint")] uint green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLuint")] uint blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLuint")] uint alpha) + { + GlColor4UiNative(red, green, blue, alpha); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4uiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4uiv")] + internal static extern void GlColor4UivNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4uiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Uiv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* v) + { + GlColor4UivNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4uiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Uiv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLuint*")] ref uint v) + { + fixed (uint* pv = &v) + { + GlColor4UivNative((uint*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4us")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4us")] + internal static extern void GlColor4UsNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLushort")] ushort red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLushort")] ushort green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLushort")] ushort blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLushort")] ushort alpha); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4us")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Us([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLushort")] ushort red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLushort")] ushort green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLushort")] ushort blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLushort")] ushort alpha) + { + GlColor4UsNative(red, green, blue, alpha); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColor4usv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColor4usv")] + internal static extern void GlColor4UsvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLushort*")] ushort* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4usv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Usv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLushort*")] ushort* v) + { + GlColor4UsvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColor4usv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColor4Usv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLushort*")] ref ushort v) + { + fixed (ushort* pv = &v) + { + GlColor4UsvNative((ushort*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColorMask")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColorMask")] + internal static extern void GlColorMaskNative([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLboolean")] byte red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLboolean")] byte green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLboolean")] byte blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLboolean")] byte alpha); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColorMask")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColorMask([NativeName(NativeNameType.Param, "red")] [NativeName(NativeNameType.Type, "GLboolean")] byte red, [NativeName(NativeNameType.Param, "green")] [NativeName(NativeNameType.Type, "GLboolean")] byte green, [NativeName(NativeNameType.Param, "blue")] [NativeName(NativeNameType.Type, "GLboolean")] byte blue, [NativeName(NativeNameType.Param, "alpha")] [NativeName(NativeNameType.Type, "GLboolean")] byte alpha) + { + GlColorMaskNative(red, green, blue, alpha); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColorMaterial")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColorMaterial")] + internal static extern void GlColorMaterialNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColorMaterial")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColorMaterial([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + GlColorMaterialNative(face, mode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glColorPointer")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glColorPointer")] + internal static extern void GlColorPointerNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLint")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glColorPointer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlColorPointer([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLint")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer) + { + GlColorPointerNative(size, type, stride, pointer); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glCopyPixels")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glCopyPixels")] + internal static extern void GlCopyPixelsNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glCopyPixels")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlCopyPixels([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + GlCopyPixelsNative(x, y, width, height, type); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glCopyTexImage1D")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glCopyTexImage1D")] + internal static extern void GlCopyTexImage1DNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "internalFormat")] [NativeName(NativeNameType.Type, "GLenum")] uint internalFormat, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "GLint")] int border); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glCopyTexImage1D")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlCopyTexImage1D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "internalFormat")] [NativeName(NativeNameType.Type, "GLenum")] uint internalFormat, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "GLint")] int border) + { + GlCopyTexImage1DNative(target, level, internalFormat, x, y, width, border); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glCopyTexImage2D")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glCopyTexImage2D")] + internal static extern void GlCopyTexImage2DNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "internalFormat")] [NativeName(NativeNameType.Type, "GLenum")] uint internalFormat, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "GLint")] int border); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glCopyTexImage2D")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlCopyTexImage2D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "internalFormat")] [NativeName(NativeNameType.Type, "GLenum")] uint internalFormat, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "GLint")] int border) + { + GlCopyTexImage2DNative(target, level, internalFormat, x, y, width, height, border); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glCopyTexSubImage1D")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glCopyTexSubImage1D")] + internal static extern void GlCopyTexSubImage1DNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "xoffset")] [NativeName(NativeNameType.Type, "GLint")] int xoffset, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glCopyTexSubImage1D")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlCopyTexSubImage1D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "xoffset")] [NativeName(NativeNameType.Type, "GLint")] int xoffset, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width) + { + GlCopyTexSubImage1DNative(target, level, xoffset, x, y, width); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glCopyTexSubImage2D")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glCopyTexSubImage2D")] + internal static extern void GlCopyTexSubImage2DNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "xoffset")] [NativeName(NativeNameType.Type, "GLint")] int xoffset, [NativeName(NativeNameType.Param, "yoffset")] [NativeName(NativeNameType.Type, "GLint")] int yoffset, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glCopyTexSubImage2D")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlCopyTexSubImage2D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "xoffset")] [NativeName(NativeNameType.Type, "GLint")] int xoffset, [NativeName(NativeNameType.Param, "yoffset")] [NativeName(NativeNameType.Type, "GLint")] int yoffset, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height) + { + GlCopyTexSubImage2DNative(target, level, xoffset, yoffset, x, y, width, height); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glCullFace")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glCullFace")] + internal static extern void GlCullFaceNative([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glCullFace")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlCullFace([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + GlCullFaceNative(mode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glDeleteLists")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glDeleteLists")] + internal static extern void GlDeleteListsNative([NativeName(NativeNameType.Param, "list")] [NativeName(NativeNameType.Type, "GLuint")] uint list, [NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "GLsizei")] int range); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDeleteLists")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDeleteLists([NativeName(NativeNameType.Param, "list")] [NativeName(NativeNameType.Type, "GLuint")] uint list, [NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "GLsizei")] int range) + { + GlDeleteListsNative(list, range); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glDeleteTextures")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glDeleteTextures")] + internal static extern void GlDeleteTexturesNative([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* textures); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDeleteTextures")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDeleteTextures([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* textures) + { + GlDeleteTexturesNative(n, textures); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDeleteTextures")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDeleteTextures([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] ref uint textures) + { + fixed (uint* ptextures = &textures) + { + GlDeleteTexturesNative(n, (uint*)ptextures); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glDepthFunc")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glDepthFunc")] + internal static extern void GlDepthFuncNative([NativeName(NativeNameType.Param, "func")] [NativeName(NativeNameType.Type, "GLenum")] uint func); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDepthFunc")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDepthFunc([NativeName(NativeNameType.Param, "func")] [NativeName(NativeNameType.Type, "GLenum")] uint func) + { + GlDepthFuncNative(func); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glDepthMask")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glDepthMask")] + internal static extern void GlDepthMaskNative([NativeName(NativeNameType.Param, "flag")] [NativeName(NativeNameType.Type, "GLboolean")] byte flag); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDepthMask")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDepthMask([NativeName(NativeNameType.Param, "flag")] [NativeName(NativeNameType.Type, "GLboolean")] byte flag) + { + GlDepthMaskNative(flag); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glDepthRange")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glDepthRange")] + internal static extern void GlDepthRangeNative([NativeName(NativeNameType.Param, "zNear")] [NativeName(NativeNameType.Type, "GLclampd")] double zNear, [NativeName(NativeNameType.Param, "zFar")] [NativeName(NativeNameType.Type, "GLclampd")] double zFar); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDepthRange")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDepthRange([NativeName(NativeNameType.Param, "zNear")] [NativeName(NativeNameType.Type, "GLclampd")] double zNear, [NativeName(NativeNameType.Param, "zFar")] [NativeName(NativeNameType.Type, "GLclampd")] double zFar) + { + GlDepthRangeNative(zNear, zFar); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glDisable")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glDisable")] + internal static extern void GlDisableNative([NativeName(NativeNameType.Param, "cap")] [NativeName(NativeNameType.Type, "GLenum")] uint cap); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDisable")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDisable([NativeName(NativeNameType.Param, "cap")] [NativeName(NativeNameType.Type, "GLenum")] uint cap) + { + GlDisableNative(cap); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glDisableClientState")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glDisableClientState")] + internal static extern void GlDisableClientStateNative([NativeName(NativeNameType.Param, "array")] [NativeName(NativeNameType.Type, "GLenum")] uint array); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDisableClientState")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDisableClientState([NativeName(NativeNameType.Param, "array")] [NativeName(NativeNameType.Type, "GLenum")] uint array) + { + GlDisableClientStateNative(array); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glDrawArrays")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glDrawArrays")] + internal static extern void GlDrawArraysNative([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode, [NativeName(NativeNameType.Param, "first")] [NativeName(NativeNameType.Type, "GLint")] int first, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDrawArrays")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDrawArrays([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode, [NativeName(NativeNameType.Param, "first")] [NativeName(NativeNameType.Type, "GLint")] int first, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count) + { + GlDrawArraysNative(mode, first, count); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glDrawBuffer")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glDrawBuffer")] + internal static extern void GlDrawBufferNative([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDrawBuffer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDrawBuffer([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + GlDrawBufferNative(mode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glDrawElements")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glDrawElements")] + internal static extern void GlDrawElementsNative([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "indices")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* indices); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDrawElements")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDrawElements([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLsizei")] int count, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "indices")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* indices) + { + GlDrawElementsNative(mode, count, type, indices); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glDrawPixels")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glDrawPixels")] + internal static extern void GlDrawPixelsNative([NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pixels); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glDrawPixels")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlDrawPixels([NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pixels) + { + GlDrawPixelsNative(width, height, format, type, pixels); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEdgeFlag")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEdgeFlag")] + internal static extern void GlEdgeFlagNative([NativeName(NativeNameType.Param, "flag")] [NativeName(NativeNameType.Type, "GLboolean")] byte flag); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEdgeFlag")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEdgeFlag([NativeName(NativeNameType.Param, "flag")] [NativeName(NativeNameType.Type, "GLboolean")] byte flag) + { + GlEdgeFlagNative(flag); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEdgeFlagPointer")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEdgeFlagPointer")] + internal static extern void GlEdgeFlagPointerNative([NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEdgeFlagPointer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEdgeFlagPointer([NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer) + { + GlEdgeFlagPointerNative(stride, pointer); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEdgeFlagv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEdgeFlagv")] + internal static extern void GlEdgeFlagvNative([NativeName(NativeNameType.Param, "flag")] [NativeName(NativeNameType.Type, "const GLboolean*")] byte* flag); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEdgeFlagv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEdgeFlagv([NativeName(NativeNameType.Param, "flag")] [NativeName(NativeNameType.Type, "const GLboolean*")] byte* flag) + { + GlEdgeFlagvNative(flag); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEdgeFlagv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEdgeFlagv([NativeName(NativeNameType.Param, "flag")] [NativeName(NativeNameType.Type, "const GLboolean*")] ref byte flag) + { + fixed (byte* pflag = &flag) + { + GlEdgeFlagvNative((byte*)pflag); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEnable")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEnable")] + internal static extern void GlEnableNative([NativeName(NativeNameType.Param, "cap")] [NativeName(NativeNameType.Type, "GLenum")] uint cap); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEnable")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEnable([NativeName(NativeNameType.Param, "cap")] [NativeName(NativeNameType.Type, "GLenum")] uint cap) + { + GlEnableNative(cap); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEnableClientState")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEnableClientState")] + internal static extern void GlEnableClientStateNative([NativeName(NativeNameType.Param, "array")] [NativeName(NativeNameType.Type, "GLenum")] uint array); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEnableClientState")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEnableClientState([NativeName(NativeNameType.Param, "array")] [NativeName(NativeNameType.Type, "GLenum")] uint array) + { + GlEnableClientStateNative(array); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEnd")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEnd")] + internal static extern void GlEndNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEnd")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEnd() + { + GlEndNative(); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEndList")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEndList")] + internal static extern void GlEndListNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEndList")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEndList() + { + GlEndListNative(); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalCoord1d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalCoord1d")] + internal static extern void GlEvalCoord1DNative([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "GLdouble")] double u); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord1d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord1D([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "GLdouble")] double u) + { + GlEvalCoord1DNative(u); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalCoord1dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalCoord1dv")] + internal static extern void GlEvalCoord1DvNative([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* u); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord1dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord1Dv([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* u) + { + GlEvalCoord1DvNative(u); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord1dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord1Dv([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double u) + { + fixed (double* pu = &u) + { + GlEvalCoord1DvNative((double*)pu); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalCoord1f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalCoord1f")] + internal static extern void GlEvalCoord1FNative([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "GLfloat")] float u); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord1f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord1F([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "GLfloat")] float u) + { + GlEvalCoord1FNative(u); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalCoord1fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalCoord1fv")] + internal static extern void GlEvalCoord1FvNative([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* u); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord1fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord1Fv([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* u) + { + GlEvalCoord1FvNative(u); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord1fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord1Fv([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float u) + { + fixed (float* pu = &u) + { + GlEvalCoord1FvNative((float*)pu); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalCoord2d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalCoord2d")] + internal static extern void GlEvalCoord2DNative([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "GLdouble")] double u, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLdouble")] double v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord2d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord2D([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "GLdouble")] double u, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLdouble")] double v) + { + GlEvalCoord2DNative(u, v); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalCoord2dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalCoord2dv")] + internal static extern void GlEvalCoord2DvNative([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* u); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord2dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord2Dv([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* u) + { + GlEvalCoord2DvNative(u); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord2dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord2Dv([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double u) + { + fixed (double* pu = &u) + { + GlEvalCoord2DvNative((double*)pu); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalCoord2f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalCoord2f")] + internal static extern void GlEvalCoord2FNative([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "GLfloat")] float u, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLfloat")] float v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord2f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord2F([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "GLfloat")] float u, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLfloat")] float v) + { + GlEvalCoord2FNative(u, v); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalCoord2fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalCoord2fv")] + internal static extern void GlEvalCoord2FvNative([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* u); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord2fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord2Fv([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* u) + { + GlEvalCoord2FvNative(u); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalCoord2fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalCoord2Fv([NativeName(NativeNameType.Param, "u")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float u) + { + fixed (float* pu = &u) + { + GlEvalCoord2FvNative((float*)pu); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalMesh1")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalMesh1")] + internal static extern void GlEvalMesh1Native([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode, [NativeName(NativeNameType.Param, "i1")] [NativeName(NativeNameType.Type, "GLint")] int i1, [NativeName(NativeNameType.Param, "i2")] [NativeName(NativeNameType.Type, "GLint")] int i2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalMesh1")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalMesh1([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode, [NativeName(NativeNameType.Param, "i1")] [NativeName(NativeNameType.Type, "GLint")] int i1, [NativeName(NativeNameType.Param, "i2")] [NativeName(NativeNameType.Type, "GLint")] int i2) + { + GlEvalMesh1Native(mode, i1, i2); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalMesh2")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalMesh2")] + internal static extern void GlEvalMesh2Native([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode, [NativeName(NativeNameType.Param, "i1")] [NativeName(NativeNameType.Type, "GLint")] int i1, [NativeName(NativeNameType.Param, "i2")] [NativeName(NativeNameType.Type, "GLint")] int i2, [NativeName(NativeNameType.Param, "j1")] [NativeName(NativeNameType.Type, "GLint")] int j1, [NativeName(NativeNameType.Param, "j2")] [NativeName(NativeNameType.Type, "GLint")] int j2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalMesh2")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalMesh2([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode, [NativeName(NativeNameType.Param, "i1")] [NativeName(NativeNameType.Type, "GLint")] int i1, [NativeName(NativeNameType.Param, "i2")] [NativeName(NativeNameType.Type, "GLint")] int i2, [NativeName(NativeNameType.Param, "j1")] [NativeName(NativeNameType.Type, "GLint")] int j1, [NativeName(NativeNameType.Param, "j2")] [NativeName(NativeNameType.Type, "GLint")] int j2) + { + GlEvalMesh2Native(mode, i1, i2, j1, j2); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalPoint1")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalPoint1")] + internal static extern void GlEvalPoint1Native([NativeName(NativeNameType.Param, "i")] [NativeName(NativeNameType.Type, "GLint")] int i); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalPoint1")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalPoint1([NativeName(NativeNameType.Param, "i")] [NativeName(NativeNameType.Type, "GLint")] int i) + { + GlEvalPoint1Native(i); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glEvalPoint2")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glEvalPoint2")] + internal static extern void GlEvalPoint2Native([NativeName(NativeNameType.Param, "i")] [NativeName(NativeNameType.Type, "GLint")] int i, [NativeName(NativeNameType.Param, "j")] [NativeName(NativeNameType.Type, "GLint")] int j); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glEvalPoint2")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlEvalPoint2([NativeName(NativeNameType.Param, "i")] [NativeName(NativeNameType.Type, "GLint")] int i, [NativeName(NativeNameType.Param, "j")] [NativeName(NativeNameType.Type, "GLint")] int j) + { + GlEvalPoint2Native(i, j); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glFeedbackBuffer")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glFeedbackBuffer")] + internal static extern void GlFeedbackBufferNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLsizei")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "GLfloat*")] float* buffer); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFeedbackBuffer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFeedbackBuffer([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLsizei")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "GLfloat*")] float* buffer) + { + GlFeedbackBufferNative(size, type, buffer); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFeedbackBuffer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFeedbackBuffer([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLsizei")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float buffer) + { + fixed (float* pbuffer = &buffer) + { + GlFeedbackBufferNative(size, type, (float*)pbuffer); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glFinish")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glFinish")] + internal static extern void GlFinishNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFinish")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFinish() + { + GlFinishNative(); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glFlush")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glFlush")] + internal static extern void GlFlushNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFlush")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFlush() + { + GlFlushNative(); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glFogf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glFogf")] + internal static extern void GlFogfNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFogf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFogf([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param) + { + GlFogfNative(pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glFogfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glFogfv")] + internal static extern void GlFogfvNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFogfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFogfv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params) + { + GlFogfvNative(pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFogfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFogfv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlFogfvNative(pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glFogi")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glFogi")] + internal static extern void GlFogiNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFogi")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFogi([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param) + { + GlFogiNative(pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glFogiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glFogiv")] + internal static extern void GlFogivNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFogiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFogiv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params) + { + GlFogivNative(pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFogiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFogiv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlFogivNative(pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glFrontFace")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glFrontFace")] + internal static extern void GlFrontFaceNative([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFrontFace")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFrontFace([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + GlFrontFaceNative(mode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glFrustum")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glFrustum")] + internal static extern void GlFrustumNative([NativeName(NativeNameType.Param, "left")] [NativeName(NativeNameType.Type, "GLdouble")] double left, [NativeName(NativeNameType.Param, "right")] [NativeName(NativeNameType.Type, "GLdouble")] double right, [NativeName(NativeNameType.Param, "bottom")] [NativeName(NativeNameType.Type, "GLdouble")] double bottom, [NativeName(NativeNameType.Param, "top")] [NativeName(NativeNameType.Type, "GLdouble")] double top, [NativeName(NativeNameType.Param, "zNear")] [NativeName(NativeNameType.Type, "GLdouble")] double zNear, [NativeName(NativeNameType.Param, "zFar")] [NativeName(NativeNameType.Type, "GLdouble")] double zFar); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glFrustum")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlFrustum([NativeName(NativeNameType.Param, "left")] [NativeName(NativeNameType.Type, "GLdouble")] double left, [NativeName(NativeNameType.Param, "right")] [NativeName(NativeNameType.Type, "GLdouble")] double right, [NativeName(NativeNameType.Param, "bottom")] [NativeName(NativeNameType.Type, "GLdouble")] double bottom, [NativeName(NativeNameType.Param, "top")] [NativeName(NativeNameType.Type, "GLdouble")] double top, [NativeName(NativeNameType.Param, "zNear")] [NativeName(NativeNameType.Type, "GLdouble")] double zNear, [NativeName(NativeNameType.Param, "zFar")] [NativeName(NativeNameType.Type, "GLdouble")] double zFar) + { + GlFrustumNative(left, right, bottom, top, zNear, zFar); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGenLists")] + [return: NativeName(NativeNameType.Type, "GLuint")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGenLists")] + internal static extern uint GlGenListsNative([NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "GLsizei")] int range); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGenLists")] + [return: NativeName(NativeNameType.Type, "GLuint")] + public static uint GlGenLists([NativeName(NativeNameType.Param, "range")] [NativeName(NativeNameType.Type, "GLsizei")] int range) + { + uint ret = GlGenListsNative(range); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGenTextures")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGenTextures")] + internal static extern void GlGenTexturesNative([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "GLuint*")] uint* textures); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGenTextures")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGenTextures([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "GLuint*")] uint* textures) + { + GlGenTexturesNative(n, textures); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGenTextures")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGenTextures([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "GLuint*")] ref uint textures) + { + fixed (uint* ptextures = &textures) + { + GlGenTexturesNative(n, (uint*)ptextures); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetBooleanv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetBooleanv")] + internal static extern void GlGetBooleanvNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLboolean*")] byte* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetBooleanv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetBooleanv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLboolean*")] byte* @params) + { + GlGetBooleanvNative(pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetBooleanv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetBooleanv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLboolean*")] ref byte @params) + { + fixed (byte* pparams = &@params) + { + GlGetBooleanvNative(pname, (byte*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetClipPlane")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetClipPlane")] + internal static extern void GlGetClipPlaneNative([NativeName(NativeNameType.Param, "plane")] [NativeName(NativeNameType.Type, "GLenum")] uint plane, [NativeName(NativeNameType.Param, "equation")] [NativeName(NativeNameType.Type, "GLdouble*")] double* equation); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetClipPlane")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetClipPlane([NativeName(NativeNameType.Param, "plane")] [NativeName(NativeNameType.Type, "GLenum")] uint plane, [NativeName(NativeNameType.Param, "equation")] [NativeName(NativeNameType.Type, "GLdouble*")] double* equation) + { + GlGetClipPlaneNative(plane, equation); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetClipPlane")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetClipPlane([NativeName(NativeNameType.Param, "plane")] [NativeName(NativeNameType.Type, "GLenum")] uint plane, [NativeName(NativeNameType.Param, "equation")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double equation) + { + fixed (double* pequation = &equation) + { + GlGetClipPlaneNative(plane, (double*)pequation); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetDoublev")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetDoublev")] + internal static extern void GlGetDoublevNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLdouble*")] double* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetDoublev")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetDoublev([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLdouble*")] double* @params) + { + GlGetDoublevNative(pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetDoublev")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetDoublev([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double @params) + { + fixed (double* pparams = &@params) + { + GlGetDoublevNative(pname, (double*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetError")] + [return: NativeName(NativeNameType.Type, "GLenum")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetError")] + internal static extern uint GlGetErrorNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetError")] + [return: NativeName(NativeNameType.Type, "GLenum")] + public static uint GlGetError() + { + uint ret = GlGetErrorNative(); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetFloatv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetFloatv")] + internal static extern void GlGetFloatvNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetFloatv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetFloatv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params) + { + GlGetFloatvNative(pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetFloatv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetFloatv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlGetFloatvNative(pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetIntegerv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetIntegerv")] + internal static extern void GlGetIntegervNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetIntegerv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetIntegerv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params) + { + GlGetIntegervNative(pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetIntegerv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetIntegerv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlGetIntegervNative(pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetLightfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetLightfv")] + internal static extern void GlGetLightfvNative([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetLightfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetLightfv([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params) + { + GlGetLightfvNative(light, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetLightfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetLightfv([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlGetLightfvNative(light, pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetLightiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetLightiv")] + internal static extern void GlGetLightivNative([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetLightiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetLightiv([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params) + { + GlGetLightivNative(light, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetLightiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetLightiv([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlGetLightivNative(light, pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetMapdv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetMapdv")] + internal static extern void GlGetMapdvNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "query")] [NativeName(NativeNameType.Type, "GLenum")] uint query, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetMapdv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetMapdv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "query")] [NativeName(NativeNameType.Type, "GLenum")] uint query, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLdouble*")] double* v) + { + GlGetMapdvNative(target, query, v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetMapdv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetMapdv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "query")] [NativeName(NativeNameType.Type, "GLenum")] uint query, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlGetMapdvNative(target, query, (double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetMapfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetMapfv")] + internal static extern void GlGetMapfvNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "query")] [NativeName(NativeNameType.Type, "GLenum")] uint query, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetMapfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetMapfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "query")] [NativeName(NativeNameType.Type, "GLenum")] uint query, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLfloat*")] float* v) + { + GlGetMapfvNative(target, query, v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetMapfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetMapfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "query")] [NativeName(NativeNameType.Type, "GLenum")] uint query, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlGetMapfvNative(target, query, (float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetMapiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetMapiv")] + internal static extern void GlGetMapivNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "query")] [NativeName(NativeNameType.Type, "GLenum")] uint query, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetMapiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetMapiv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "query")] [NativeName(NativeNameType.Type, "GLenum")] uint query, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLint*")] int* v) + { + GlGetMapivNative(target, query, v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetMapiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetMapiv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "query")] [NativeName(NativeNameType.Type, "GLenum")] uint query, [NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlGetMapivNative(target, query, (int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetMaterialfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetMaterialfv")] + internal static extern void GlGetMaterialfvNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetMaterialfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetMaterialfv([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params) + { + GlGetMaterialfvNative(face, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetMaterialfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetMaterialfv([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlGetMaterialfvNative(face, pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetMaterialiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetMaterialiv")] + internal static extern void GlGetMaterialivNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetMaterialiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetMaterialiv([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params) + { + GlGetMaterialivNative(face, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetMaterialiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetMaterialiv([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlGetMaterialivNative(face, pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetPixelMapfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetPixelMapfv")] + internal static extern void GlGetPixelMapfvNative([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "GLfloat*")] float* values); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetPixelMapfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetPixelMapfv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "GLfloat*")] float* values) + { + GlGetPixelMapfvNative(map, values); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetPixelMapfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetPixelMapfv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float values) + { + fixed (float* pvalues = &values) + { + GlGetPixelMapfvNative(map, (float*)pvalues); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetPixelMapuiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetPixelMapuiv")] + internal static extern void GlGetPixelMapuivNative([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "GLuint*")] uint* values); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetPixelMapuiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetPixelMapuiv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "GLuint*")] uint* values) + { + GlGetPixelMapuivNative(map, values); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetPixelMapuiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetPixelMapuiv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "GLuint*")] ref uint values) + { + fixed (uint* pvalues = &values) + { + GlGetPixelMapuivNative(map, (uint*)pvalues); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetPixelMapusv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetPixelMapusv")] + internal static extern void GlGetPixelMapusvNative([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "GLushort*")] ushort* values); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetPixelMapusv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetPixelMapusv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "GLushort*")] ushort* values) + { + GlGetPixelMapusvNative(map, values); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetPixelMapusv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetPixelMapusv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "GLushort*")] ref ushort values) + { + fixed (ushort* pvalues = &values) + { + GlGetPixelMapusvNative(map, (ushort*)pvalues); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetPointerv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetPointerv")] + internal static extern void GlGetPointervNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLvoid**")] void** @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetPointerv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetPointerv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLvoid**")] void** @params) + { + GlGetPointervNative(pname, @params); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetPolygonStipple")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetPolygonStipple")] + internal static extern void GlGetPolygonStippleNative([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLubyte*")] byte* mask); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetPolygonStipple")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetPolygonStipple([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLubyte*")] byte* mask) + { + GlGetPolygonStippleNative(mask); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetPolygonStipple")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetPolygonStipple([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLubyte*")] ref byte mask) + { + fixed (byte* pmask = &mask) + { + GlGetPolygonStippleNative((byte*)pmask); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetString")] + [return: NativeName(NativeNameType.Type, "const GLubyte*")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetString")] + internal static extern byte* GlGetStringNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "GLenum")] uint name); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetString")] + [return: NativeName(NativeNameType.Type, "const GLubyte*")] + public static byte* GlGetString([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "GLenum")] uint name) + { + byte* ret = GlGetStringNative(name); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetTexEnvfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetTexEnvfv")] + internal static extern void GlGetTexEnvfvNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexEnvfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexEnvfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params) + { + GlGetTexEnvfvNative(target, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexEnvfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexEnvfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlGetTexEnvfvNative(target, pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetTexEnviv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetTexEnviv")] + internal static extern void GlGetTexEnvivNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexEnviv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexEnviv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params) + { + GlGetTexEnvivNative(target, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexEnviv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexEnviv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlGetTexEnvivNative(target, pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetTexGendv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetTexGendv")] + internal static extern void GlGetTexGendvNative([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLdouble*")] double* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexGendv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexGendv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLdouble*")] double* @params) + { + GlGetTexGendvNative(coord, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexGendv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexGendv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double @params) + { + fixed (double* pparams = &@params) + { + GlGetTexGendvNative(coord, pname, (double*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetTexGenfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetTexGenfv")] + internal static extern void GlGetTexGenfvNative([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexGenfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexGenfv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params) + { + GlGetTexGenfvNative(coord, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexGenfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexGenfv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlGetTexGenfvNative(coord, pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetTexGeniv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetTexGeniv")] + internal static extern void GlGetTexGenivNative([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexGeniv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexGeniv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params) + { + GlGetTexGenivNative(coord, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexGeniv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexGeniv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlGetTexGenivNative(coord, pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetTexImage")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetTexImage")] + internal static extern void GlGetTexImageNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "GLvoid*")] void* pixels); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexImage")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexImage([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "GLvoid*")] void* pixels) + { + GlGetTexImageNative(target, level, format, type, pixels); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetTexLevelParameterfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetTexLevelParameterfv")] + internal static extern void GlGetTexLevelParameterfvNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexLevelParameterfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexLevelParameterfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params) + { + GlGetTexLevelParameterfvNative(target, level, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexLevelParameterfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexLevelParameterfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlGetTexLevelParameterfvNative(target, level, pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetTexLevelParameteriv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetTexLevelParameteriv")] + internal static extern void GlGetTexLevelParameterivNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexLevelParameteriv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexLevelParameteriv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params) + { + GlGetTexLevelParameterivNative(target, level, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexLevelParameteriv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexLevelParameteriv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlGetTexLevelParameterivNative(target, level, pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetTexParameterfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetTexParameterfv")] + internal static extern void GlGetTexParameterfvNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexParameterfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexParameterfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] float* @params) + { + GlGetTexParameterfvNative(target, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexParameterfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexParameterfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlGetTexParameterfvNative(target, pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glGetTexParameteriv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glGetTexParameteriv")] + internal static extern void GlGetTexParameterivNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexParameteriv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexParameteriv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] int* @params) + { + GlGetTexParameterivNative(target, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glGetTexParameteriv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlGetTexParameteriv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlGetTexParameterivNative(target, pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glHint")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glHint")] + internal static extern void GlHintNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glHint")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlHint([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + GlHintNative(target, mode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexMask")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexMask")] + internal static extern void GlIndexMaskNative([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLuint")] uint mask); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexMask")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexMask([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLuint")] uint mask) + { + GlIndexMaskNative(mask); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexPointer")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexPointer")] + internal static extern void GlIndexPointerNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexPointer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexPointer([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer) + { + GlIndexPointerNative(type, stride, pointer); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexd")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexd")] + internal static extern void GlIndexdNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLdouble")] double c); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexd")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexd([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLdouble")] double c) + { + GlIndexdNative(c); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexdv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexdv")] + internal static extern void GlIndexdvNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* c); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexdv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexdv([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* c) + { + GlIndexdvNative(c); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexdv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexdv([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double c) + { + fixed (double* pc = &c) + { + GlIndexdvNative((double*)pc); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexf")] + internal static extern void GlIndexfNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLfloat")] float c); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexf([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLfloat")] float c) + { + GlIndexfNative(c); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexfv")] + internal static extern void GlIndexfvNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* c); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexfv([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* c) + { + GlIndexfvNative(c); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexfv([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float c) + { + fixed (float* pc = &c) + { + GlIndexfvNative((float*)pc); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexi")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexi")] + internal static extern void GlIndexiNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLint")] int c); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexi")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexi([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLint")] int c) + { + GlIndexiNative(c); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexiv")] + internal static extern void GlIndexivNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLint*")] int* c); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexiv([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLint*")] int* c) + { + GlIndexivNative(c); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexiv([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLint*")] ref int c) + { + fixed (int* pc = &c) + { + GlIndexivNative((int*)pc); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexs")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexs")] + internal static extern void GlIndexsNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLshort")] short c); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexs")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexs([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLshort")] short c) + { + GlIndexsNative(c); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexsv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexsv")] + internal static extern void GlIndexsvNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLshort*")] short* c); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexsv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexsv([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLshort*")] short* c) + { + GlIndexsvNative(c); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexsv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexsv([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short c) + { + fixed (short* pc = &c) + { + GlIndexsvNative((short*)pc); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexub")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexub")] + internal static extern void GlIndexubNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLubyte")] byte c); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexub")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexub([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "GLubyte")] byte c) + { + GlIndexubNative(c); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIndexubv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIndexubv")] + internal static extern void GlIndexubvNative([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLubyte*")] byte* c); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexubv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexubv([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLubyte*")] byte* c) + { + GlIndexubvNative(c); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIndexubv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlIndexubv([NativeName(NativeNameType.Param, "c")] [NativeName(NativeNameType.Type, "const GLubyte*")] ref byte c) + { + fixed (byte* pc = &c) + { + GlIndexubvNative((byte*)pc); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glInitNames")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glInitNames")] + internal static extern void GlInitNamesNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glInitNames")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlInitNames() + { + GlInitNamesNative(); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glInterleavedArrays")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glInterleavedArrays")] + internal static extern void GlInterleavedArraysNative([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glInterleavedArrays")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlInterleavedArrays([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer) + { + GlInterleavedArraysNative(format, stride, pointer); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIsEnabled")] + [return: NativeName(NativeNameType.Type, "GLboolean")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIsEnabled")] + internal static extern byte GlIsEnabledNative([NativeName(NativeNameType.Param, "cap")] [NativeName(NativeNameType.Type, "GLenum")] uint cap); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIsEnabled")] + [return: NativeName(NativeNameType.Type, "GLboolean")] + public static byte GlIsEnabled([NativeName(NativeNameType.Param, "cap")] [NativeName(NativeNameType.Type, "GLenum")] uint cap) + { + byte ret = GlIsEnabledNative(cap); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIsList")] + [return: NativeName(NativeNameType.Type, "GLboolean")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIsList")] + internal static extern byte GlIsListNative([NativeName(NativeNameType.Param, "list")] [NativeName(NativeNameType.Type, "GLuint")] uint list); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIsList")] + [return: NativeName(NativeNameType.Type, "GLboolean")] + public static byte GlIsList([NativeName(NativeNameType.Param, "list")] [NativeName(NativeNameType.Type, "GLuint")] uint list) + { + byte ret = GlIsListNative(list); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glIsTexture")] + [return: NativeName(NativeNameType.Type, "GLboolean")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glIsTexture")] + internal static extern byte GlIsTextureNative([NativeName(NativeNameType.Param, "texture")] [NativeName(NativeNameType.Type, "GLuint")] uint texture); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glIsTexture")] + [return: NativeName(NativeNameType.Type, "GLboolean")] + public static byte GlIsTexture([NativeName(NativeNameType.Param, "texture")] [NativeName(NativeNameType.Type, "GLuint")] uint texture) + { + byte ret = GlIsTextureNative(texture); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLightModelf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLightModelf")] + internal static extern void GlLightModelfNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLightModelf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLightModelf([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param) + { + GlLightModelfNative(pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLightModelfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLightModelfv")] + internal static extern void GlLightModelfvNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLightModelfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLightModelfv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params) + { + GlLightModelfvNative(pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLightModelfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLightModelfv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlLightModelfvNative(pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLightModeli")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLightModeli")] + internal static extern void GlLightModeliNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLightModeli")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLightModeli([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param) + { + GlLightModeliNative(pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLightModeliv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLightModeliv")] + internal static extern void GlLightModelivNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLightModeliv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLightModeliv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params) + { + GlLightModelivNative(pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLightModeliv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLightModeliv([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlLightModelivNative(pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLightf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLightf")] + internal static extern void GlLightfNative([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLightf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLightf([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param) + { + GlLightfNative(light, pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLightfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLightfv")] + internal static extern void GlLightfvNative([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLightfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLightfv([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params) + { + GlLightfvNative(light, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLightfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLightfv([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlLightfvNative(light, pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLighti")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLighti")] + internal static extern void GlLightiNative([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLighti")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLighti([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param) + { + GlLightiNative(light, pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLightiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLightiv")] + internal static extern void GlLightivNative([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLightiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLightiv([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params) + { + GlLightivNative(light, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLightiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLightiv([NativeName(NativeNameType.Param, "light")] [NativeName(NativeNameType.Type, "GLenum")] uint light, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlLightivNative(light, pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLineStipple")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLineStipple")] + internal static extern void GlLineStippleNative([NativeName(NativeNameType.Param, "factor")] [NativeName(NativeNameType.Type, "GLint")] int factor, [NativeName(NativeNameType.Param, "pattern")] [NativeName(NativeNameType.Type, "GLushort")] ushort pattern); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLineStipple")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLineStipple([NativeName(NativeNameType.Param, "factor")] [NativeName(NativeNameType.Type, "GLint")] int factor, [NativeName(NativeNameType.Param, "pattern")] [NativeName(NativeNameType.Type, "GLushort")] ushort pattern) + { + GlLineStippleNative(factor, pattern); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLineWidth")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLineWidth")] + internal static extern void GlLineWidthNative([NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLfloat")] float width); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLineWidth")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLineWidth([NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLfloat")] float width) + { + GlLineWidthNative(width); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glListBase")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glListBase")] + internal static extern void GlListBaseNative([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "GLuint")] uint baseValue); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glListBase")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlListBase([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "GLuint")] uint baseValue) + { + GlListBaseNative(baseValue); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLoadIdentity")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLoadIdentity")] + internal static extern void GlLoadIdentityNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLoadIdentity")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLoadIdentity() + { + GlLoadIdentityNative(); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLoadMatrixd")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLoadMatrixd")] + internal static extern void GlLoadMatrixdNative([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* m); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLoadMatrixd")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLoadMatrixd([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* m) + { + GlLoadMatrixdNative(m); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLoadMatrixd")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLoadMatrixd([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double m) + { + fixed (double* pm = &m) + { + GlLoadMatrixdNative((double*)pm); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLoadMatrixf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLoadMatrixf")] + internal static extern void GlLoadMatrixfNative([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* m); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLoadMatrixf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLoadMatrixf([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* m) + { + GlLoadMatrixfNative(m); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLoadMatrixf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLoadMatrixf([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float m) + { + fixed (float* pm = &m) + { + GlLoadMatrixfNative((float*)pm); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLoadName")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLoadName")] + internal static extern void GlLoadNameNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "GLuint")] uint name); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLoadName")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLoadName([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "GLuint")] uint name) + { + GlLoadNameNative(name); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glLogicOp")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glLogicOp")] + internal static extern void GlLogicOpNative([NativeName(NativeNameType.Param, "opcode")] [NativeName(NativeNameType.Type, "GLenum")] uint opcode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glLogicOp")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlLogicOp([NativeName(NativeNameType.Param, "opcode")] [NativeName(NativeNameType.Type, "GLenum")] uint opcode) + { + GlLogicOpNative(opcode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMap1d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMap1d")] + internal static extern void GlMap1DNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLdouble")] double u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLdouble")] double u2, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "GLint")] int order, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* points); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMap1d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMap1D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLdouble")] double u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLdouble")] double u2, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "GLint")] int order, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* points) + { + GlMap1DNative(target, u1, u2, stride, order, points); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMap1d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMap1D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLdouble")] double u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLdouble")] double u2, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "GLint")] int order, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double points) + { + fixed (double* ppoints = &points) + { + GlMap1DNative(target, u1, u2, stride, order, (double*)ppoints); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMap1f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMap1f")] + internal static extern void GlMap1FNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLfloat")] float u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLfloat")] float u2, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "GLint")] int order, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* points); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMap1f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMap1F([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLfloat")] float u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLfloat")] float u2, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "GLint")] int order, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* points) + { + GlMap1FNative(target, u1, u2, stride, order, points); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMap1f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMap1F([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLfloat")] float u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLfloat")] float u2, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "GLint")] int order, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float points) + { + fixed (float* ppoints = &points) + { + GlMap1FNative(target, u1, u2, stride, order, (float*)ppoints); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMap2d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMap2d")] + internal static extern void GlMap2DNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLdouble")] double u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLdouble")] double u2, [NativeName(NativeNameType.Param, "ustride")] [NativeName(NativeNameType.Type, "GLint")] int ustride, [NativeName(NativeNameType.Param, "uorder")] [NativeName(NativeNameType.Type, "GLint")] int uorder, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "GLdouble")] double v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "GLdouble")] double v2, [NativeName(NativeNameType.Param, "vstride")] [NativeName(NativeNameType.Type, "GLint")] int vstride, [NativeName(NativeNameType.Param, "vorder")] [NativeName(NativeNameType.Type, "GLint")] int vorder, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* points); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMap2d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMap2D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLdouble")] double u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLdouble")] double u2, [NativeName(NativeNameType.Param, "ustride")] [NativeName(NativeNameType.Type, "GLint")] int ustride, [NativeName(NativeNameType.Param, "uorder")] [NativeName(NativeNameType.Type, "GLint")] int uorder, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "GLdouble")] double v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "GLdouble")] double v2, [NativeName(NativeNameType.Param, "vstride")] [NativeName(NativeNameType.Type, "GLint")] int vstride, [NativeName(NativeNameType.Param, "vorder")] [NativeName(NativeNameType.Type, "GLint")] int vorder, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* points) + { + GlMap2DNative(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMap2d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMap2D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLdouble")] double u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLdouble")] double u2, [NativeName(NativeNameType.Param, "ustride")] [NativeName(NativeNameType.Type, "GLint")] int ustride, [NativeName(NativeNameType.Param, "uorder")] [NativeName(NativeNameType.Type, "GLint")] int uorder, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "GLdouble")] double v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "GLdouble")] double v2, [NativeName(NativeNameType.Param, "vstride")] [NativeName(NativeNameType.Type, "GLint")] int vstride, [NativeName(NativeNameType.Param, "vorder")] [NativeName(NativeNameType.Type, "GLint")] int vorder, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double points) + { + fixed (double* ppoints = &points) + { + GlMap2DNative(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, (double*)ppoints); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMap2f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMap2f")] + internal static extern void GlMap2FNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLfloat")] float u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLfloat")] float u2, [NativeName(NativeNameType.Param, "ustride")] [NativeName(NativeNameType.Type, "GLint")] int ustride, [NativeName(NativeNameType.Param, "uorder")] [NativeName(NativeNameType.Type, "GLint")] int uorder, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "GLfloat")] float v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "GLfloat")] float v2, [NativeName(NativeNameType.Param, "vstride")] [NativeName(NativeNameType.Type, "GLint")] int vstride, [NativeName(NativeNameType.Param, "vorder")] [NativeName(NativeNameType.Type, "GLint")] int vorder, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* points); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMap2f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMap2F([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLfloat")] float u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLfloat")] float u2, [NativeName(NativeNameType.Param, "ustride")] [NativeName(NativeNameType.Type, "GLint")] int ustride, [NativeName(NativeNameType.Param, "uorder")] [NativeName(NativeNameType.Type, "GLint")] int uorder, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "GLfloat")] float v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "GLfloat")] float v2, [NativeName(NativeNameType.Param, "vstride")] [NativeName(NativeNameType.Type, "GLint")] int vstride, [NativeName(NativeNameType.Param, "vorder")] [NativeName(NativeNameType.Type, "GLint")] int vorder, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* points) + { + GlMap2FNative(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMap2f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMap2F([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLfloat")] float u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLfloat")] float u2, [NativeName(NativeNameType.Param, "ustride")] [NativeName(NativeNameType.Type, "GLint")] int ustride, [NativeName(NativeNameType.Param, "uorder")] [NativeName(NativeNameType.Type, "GLint")] int uorder, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "GLfloat")] float v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "GLfloat")] float v2, [NativeName(NativeNameType.Param, "vstride")] [NativeName(NativeNameType.Type, "GLint")] int vstride, [NativeName(NativeNameType.Param, "vorder")] [NativeName(NativeNameType.Type, "GLint")] int vorder, [NativeName(NativeNameType.Param, "points")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float points) + { + fixed (float* ppoints = &points) + { + GlMap2FNative(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, (float*)ppoints); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMapGrid1d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMapGrid1d")] + internal static extern void GlMapGrid1DNative([NativeName(NativeNameType.Param, "un")] [NativeName(NativeNameType.Type, "GLint")] int un, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLdouble")] double u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLdouble")] double u2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMapGrid1d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMapGrid1D([NativeName(NativeNameType.Param, "un")] [NativeName(NativeNameType.Type, "GLint")] int un, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLdouble")] double u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLdouble")] double u2) + { + GlMapGrid1DNative(un, u1, u2); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMapGrid1f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMapGrid1f")] + internal static extern void GlMapGrid1FNative([NativeName(NativeNameType.Param, "un")] [NativeName(NativeNameType.Type, "GLint")] int un, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLfloat")] float u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLfloat")] float u2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMapGrid1f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMapGrid1F([NativeName(NativeNameType.Param, "un")] [NativeName(NativeNameType.Type, "GLint")] int un, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLfloat")] float u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLfloat")] float u2) + { + GlMapGrid1FNative(un, u1, u2); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMapGrid2d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMapGrid2d")] + internal static extern void GlMapGrid2DNative([NativeName(NativeNameType.Param, "un")] [NativeName(NativeNameType.Type, "GLint")] int un, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLdouble")] double u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLdouble")] double u2, [NativeName(NativeNameType.Param, "vn")] [NativeName(NativeNameType.Type, "GLint")] int vn, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "GLdouble")] double v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "GLdouble")] double v2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMapGrid2d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMapGrid2D([NativeName(NativeNameType.Param, "un")] [NativeName(NativeNameType.Type, "GLint")] int un, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLdouble")] double u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLdouble")] double u2, [NativeName(NativeNameType.Param, "vn")] [NativeName(NativeNameType.Type, "GLint")] int vn, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "GLdouble")] double v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "GLdouble")] double v2) + { + GlMapGrid2DNative(un, u1, u2, vn, v1, v2); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMapGrid2f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMapGrid2f")] + internal static extern void GlMapGrid2FNative([NativeName(NativeNameType.Param, "un")] [NativeName(NativeNameType.Type, "GLint")] int un, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLfloat")] float u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLfloat")] float u2, [NativeName(NativeNameType.Param, "vn")] [NativeName(NativeNameType.Type, "GLint")] int vn, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "GLfloat")] float v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "GLfloat")] float v2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMapGrid2f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMapGrid2F([NativeName(NativeNameType.Param, "un")] [NativeName(NativeNameType.Type, "GLint")] int un, [NativeName(NativeNameType.Param, "u1")] [NativeName(NativeNameType.Type, "GLfloat")] float u1, [NativeName(NativeNameType.Param, "u2")] [NativeName(NativeNameType.Type, "GLfloat")] float u2, [NativeName(NativeNameType.Param, "vn")] [NativeName(NativeNameType.Type, "GLint")] int vn, [NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "GLfloat")] float v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "GLfloat")] float v2) + { + GlMapGrid2FNative(un, u1, u2, vn, v1, v2); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMaterialf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMaterialf")] + internal static extern void GlMaterialfNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMaterialf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMaterialf([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param) + { + GlMaterialfNative(face, pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMaterialfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMaterialfv")] + internal static extern void GlMaterialfvNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMaterialfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMaterialfv([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params) + { + GlMaterialfvNative(face, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMaterialfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMaterialfv([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlMaterialfvNative(face, pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMateriali")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMateriali")] + internal static extern void GlMaterialiNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMateriali")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMateriali([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param) + { + GlMaterialiNative(face, pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMaterialiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMaterialiv")] + internal static extern void GlMaterialivNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMaterialiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMaterialiv([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params) + { + GlMaterialivNative(face, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMaterialiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMaterialiv([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlMaterialivNative(face, pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMatrixMode")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMatrixMode")] + internal static extern void GlMatrixModeNative([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMatrixMode")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMatrixMode([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + GlMatrixModeNative(mode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMultMatrixd")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMultMatrixd")] + internal static extern void GlMultMatrixdNative([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* m); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMultMatrixd")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMultMatrixd([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* m) + { + GlMultMatrixdNative(m); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMultMatrixd")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMultMatrixd([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double m) + { + fixed (double* pm = &m) + { + GlMultMatrixdNative((double*)pm); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glMultMatrixf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glMultMatrixf")] + internal static extern void GlMultMatrixfNative([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* m); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMultMatrixf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMultMatrixf([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* m) + { + GlMultMatrixfNative(m); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glMultMatrixf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlMultMatrixf([NativeName(NativeNameType.Param, "m")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float m) + { + fixed (float* pm = &m) + { + GlMultMatrixfNative((float*)pm); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNewList")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNewList")] + internal static extern void GlNewListNative([NativeName(NativeNameType.Param, "list")] [NativeName(NativeNameType.Type, "GLuint")] uint list, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNewList")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNewList([NativeName(NativeNameType.Param, "list")] [NativeName(NativeNameType.Type, "GLuint")] uint list, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + GlNewListNative(list, mode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNormal3b")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNormal3b")] + internal static extern void GlNormal3BNative([NativeName(NativeNameType.Param, "nx")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte nx, [NativeName(NativeNameType.Param, "ny")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte ny, [NativeName(NativeNameType.Param, "nz")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte nz); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3b")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3B([NativeName(NativeNameType.Param, "nx")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte nx, [NativeName(NativeNameType.Param, "ny")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte ny, [NativeName(NativeNameType.Param, "nz")] [NativeName(NativeNameType.Type, "GLbyte")] sbyte nz) + { + GlNormal3BNative(nx, ny, nz); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNormal3bv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNormal3bv")] + internal static extern void GlNormal3BvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLbyte*")] sbyte* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3bv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3Bv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLbyte*")] sbyte* v) + { + GlNormal3BvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3bv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3Bv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLbyte*")] ref sbyte v) + { + fixed (sbyte* pv = &v) + { + GlNormal3BvNative((sbyte*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNormal3d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNormal3d")] + internal static extern void GlNormal3DNative([NativeName(NativeNameType.Param, "nx")] [NativeName(NativeNameType.Type, "GLdouble")] double nx, [NativeName(NativeNameType.Param, "ny")] [NativeName(NativeNameType.Type, "GLdouble")] double ny, [NativeName(NativeNameType.Param, "nz")] [NativeName(NativeNameType.Type, "GLdouble")] double nz); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3D([NativeName(NativeNameType.Param, "nx")] [NativeName(NativeNameType.Type, "GLdouble")] double nx, [NativeName(NativeNameType.Param, "ny")] [NativeName(NativeNameType.Type, "GLdouble")] double ny, [NativeName(NativeNameType.Param, "nz")] [NativeName(NativeNameType.Type, "GLdouble")] double nz) + { + GlNormal3DNative(nx, ny, nz); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNormal3dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNormal3dv")] + internal static extern void GlNormal3DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlNormal3DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlNormal3DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNormal3f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNormal3f")] + internal static extern void GlNormal3FNative([NativeName(NativeNameType.Param, "nx")] [NativeName(NativeNameType.Type, "GLfloat")] float nx, [NativeName(NativeNameType.Param, "ny")] [NativeName(NativeNameType.Type, "GLfloat")] float ny, [NativeName(NativeNameType.Param, "nz")] [NativeName(NativeNameType.Type, "GLfloat")] float nz); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3F([NativeName(NativeNameType.Param, "nx")] [NativeName(NativeNameType.Type, "GLfloat")] float nx, [NativeName(NativeNameType.Param, "ny")] [NativeName(NativeNameType.Type, "GLfloat")] float ny, [NativeName(NativeNameType.Param, "nz")] [NativeName(NativeNameType.Type, "GLfloat")] float nz) + { + GlNormal3FNative(nx, ny, nz); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNormal3fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNormal3fv")] + internal static extern void GlNormal3FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlNormal3FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlNormal3FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNormal3i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNormal3i")] + internal static extern void GlNormal3INative([NativeName(NativeNameType.Param, "nx")] [NativeName(NativeNameType.Type, "GLint")] int nx, [NativeName(NativeNameType.Param, "ny")] [NativeName(NativeNameType.Type, "GLint")] int ny, [NativeName(NativeNameType.Param, "nz")] [NativeName(NativeNameType.Type, "GLint")] int nz); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3I([NativeName(NativeNameType.Param, "nx")] [NativeName(NativeNameType.Type, "GLint")] int nx, [NativeName(NativeNameType.Param, "ny")] [NativeName(NativeNameType.Type, "GLint")] int ny, [NativeName(NativeNameType.Param, "nz")] [NativeName(NativeNameType.Type, "GLint")] int nz) + { + GlNormal3INative(nx, ny, nz); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNormal3iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNormal3iv")] + internal static extern void GlNormal3IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlNormal3IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlNormal3IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNormal3s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNormal3s")] + internal static extern void GlNormal3SNative([NativeName(NativeNameType.Param, "nx")] [NativeName(NativeNameType.Type, "GLshort")] short nx, [NativeName(NativeNameType.Param, "ny")] [NativeName(NativeNameType.Type, "GLshort")] short ny, [NativeName(NativeNameType.Param, "nz")] [NativeName(NativeNameType.Type, "GLshort")] short nz); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3S([NativeName(NativeNameType.Param, "nx")] [NativeName(NativeNameType.Type, "GLshort")] short nx, [NativeName(NativeNameType.Param, "ny")] [NativeName(NativeNameType.Type, "GLshort")] short ny, [NativeName(NativeNameType.Param, "nz")] [NativeName(NativeNameType.Type, "GLshort")] short nz) + { + GlNormal3SNative(nx, ny, nz); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNormal3sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNormal3sv")] + internal static extern void GlNormal3SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlNormal3SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormal3sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormal3Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlNormal3SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glNormalPointer")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glNormalPointer")] + internal static extern void GlNormalPointerNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glNormalPointer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlNormalPointer([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer) + { + GlNormalPointerNative(type, stride, pointer); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glOrtho")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glOrtho")] + internal static extern void GlOrthoNative([NativeName(NativeNameType.Param, "left")] [NativeName(NativeNameType.Type, "GLdouble")] double left, [NativeName(NativeNameType.Param, "right")] [NativeName(NativeNameType.Type, "GLdouble")] double right, [NativeName(NativeNameType.Param, "bottom")] [NativeName(NativeNameType.Type, "GLdouble")] double bottom, [NativeName(NativeNameType.Param, "top")] [NativeName(NativeNameType.Type, "GLdouble")] double top, [NativeName(NativeNameType.Param, "zNear")] [NativeName(NativeNameType.Type, "GLdouble")] double zNear, [NativeName(NativeNameType.Param, "zFar")] [NativeName(NativeNameType.Type, "GLdouble")] double zFar); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glOrtho")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlOrtho([NativeName(NativeNameType.Param, "left")] [NativeName(NativeNameType.Type, "GLdouble")] double left, [NativeName(NativeNameType.Param, "right")] [NativeName(NativeNameType.Type, "GLdouble")] double right, [NativeName(NativeNameType.Param, "bottom")] [NativeName(NativeNameType.Type, "GLdouble")] double bottom, [NativeName(NativeNameType.Param, "top")] [NativeName(NativeNameType.Type, "GLdouble")] double top, [NativeName(NativeNameType.Param, "zNear")] [NativeName(NativeNameType.Type, "GLdouble")] double zNear, [NativeName(NativeNameType.Param, "zFar")] [NativeName(NativeNameType.Type, "GLdouble")] double zFar) + { + GlOrthoNative(left, right, bottom, top, zNear, zFar); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPassThrough")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPassThrough")] + internal static extern void GlPassThroughNative([NativeName(NativeNameType.Param, "token")] [NativeName(NativeNameType.Type, "GLfloat")] float token); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPassThrough")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPassThrough([NativeName(NativeNameType.Param, "token")] [NativeName(NativeNameType.Type, "GLfloat")] float token) + { + GlPassThroughNative(token); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPixelMapfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPixelMapfv")] + internal static extern void GlPixelMapfvNative([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "mapsize")] [NativeName(NativeNameType.Type, "GLsizei")] int mapsize, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* values); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPixelMapfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPixelMapfv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "mapsize")] [NativeName(NativeNameType.Type, "GLsizei")] int mapsize, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* values) + { + GlPixelMapfvNative(map, mapsize, values); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPixelMapfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPixelMapfv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "mapsize")] [NativeName(NativeNameType.Type, "GLsizei")] int mapsize, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float values) + { + fixed (float* pvalues = &values) + { + GlPixelMapfvNative(map, mapsize, (float*)pvalues); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPixelMapuiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPixelMapuiv")] + internal static extern void GlPixelMapuivNative([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "mapsize")] [NativeName(NativeNameType.Type, "GLsizei")] int mapsize, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* values); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPixelMapuiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPixelMapuiv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "mapsize")] [NativeName(NativeNameType.Type, "GLsizei")] int mapsize, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* values) + { + GlPixelMapuivNative(map, mapsize, values); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPixelMapuiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPixelMapuiv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "mapsize")] [NativeName(NativeNameType.Type, "GLsizei")] int mapsize, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const GLuint*")] ref uint values) + { + fixed (uint* pvalues = &values) + { + GlPixelMapuivNative(map, mapsize, (uint*)pvalues); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPixelMapusv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPixelMapusv")] + internal static extern void GlPixelMapusvNative([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "mapsize")] [NativeName(NativeNameType.Type, "GLsizei")] int mapsize, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const GLushort*")] ushort* values); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPixelMapusv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPixelMapusv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "mapsize")] [NativeName(NativeNameType.Type, "GLsizei")] int mapsize, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const GLushort*")] ushort* values) + { + GlPixelMapusvNative(map, mapsize, values); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPixelMapusv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPixelMapusv([NativeName(NativeNameType.Param, "map")] [NativeName(NativeNameType.Type, "GLenum")] uint map, [NativeName(NativeNameType.Param, "mapsize")] [NativeName(NativeNameType.Type, "GLsizei")] int mapsize, [NativeName(NativeNameType.Param, "values")] [NativeName(NativeNameType.Type, "const GLushort*")] ref ushort values) + { + fixed (ushort* pvalues = &values) + { + GlPixelMapusvNative(map, mapsize, (ushort*)pvalues); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPixelStoref")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPixelStoref")] + internal static extern void GlPixelStorefNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPixelStoref")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPixelStoref([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param) + { + GlPixelStorefNative(pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPixelStorei")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPixelStorei")] + internal static extern void GlPixelStoreiNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPixelStorei")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPixelStorei([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param) + { + GlPixelStoreiNative(pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPixelTransferf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPixelTransferf")] + internal static extern void GlPixelTransferfNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPixelTransferf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPixelTransferf([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param) + { + GlPixelTransferfNative(pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPixelTransferi")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPixelTransferi")] + internal static extern void GlPixelTransferiNative([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPixelTransferi")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPixelTransferi([NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param) + { + GlPixelTransferiNative(pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPixelZoom")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPixelZoom")] + internal static extern void GlPixelZoomNative([NativeName(NativeNameType.Param, "xfactor")] [NativeName(NativeNameType.Type, "GLfloat")] float xfactor, [NativeName(NativeNameType.Param, "yfactor")] [NativeName(NativeNameType.Type, "GLfloat")] float yfactor); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPixelZoom")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPixelZoom([NativeName(NativeNameType.Param, "xfactor")] [NativeName(NativeNameType.Type, "GLfloat")] float xfactor, [NativeName(NativeNameType.Param, "yfactor")] [NativeName(NativeNameType.Type, "GLfloat")] float yfactor) + { + GlPixelZoomNative(xfactor, yfactor); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPointSize")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPointSize")] + internal static extern void GlPointSizeNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLfloat")] float size); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPointSize")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPointSize([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLfloat")] float size) + { + GlPointSizeNative(size); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPolygonMode")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPolygonMode")] + internal static extern void GlPolygonModeNative([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPolygonMode")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPolygonMode([NativeName(NativeNameType.Param, "face")] [NativeName(NativeNameType.Type, "GLenum")] uint face, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + GlPolygonModeNative(face, mode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPolygonOffset")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPolygonOffset")] + internal static extern void GlPolygonOffsetNative([NativeName(NativeNameType.Param, "factor")] [NativeName(NativeNameType.Type, "GLfloat")] float factor, [NativeName(NativeNameType.Param, "units")] [NativeName(NativeNameType.Type, "GLfloat")] float units); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPolygonOffset")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPolygonOffset([NativeName(NativeNameType.Param, "factor")] [NativeName(NativeNameType.Type, "GLfloat")] float factor, [NativeName(NativeNameType.Param, "units")] [NativeName(NativeNameType.Type, "GLfloat")] float units) + { + GlPolygonOffsetNative(factor, units); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPolygonStipple")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPolygonStipple")] + internal static extern void GlPolygonStippleNative([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "const GLubyte*")] byte* mask); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPolygonStipple")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPolygonStipple([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "const GLubyte*")] byte* mask) + { + GlPolygonStippleNative(mask); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPolygonStipple")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPolygonStipple([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "const GLubyte*")] ref byte mask) + { + fixed (byte* pmask = &mask) + { + GlPolygonStippleNative((byte*)pmask); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPopAttrib")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPopAttrib")] + internal static extern void GlPopAttribNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPopAttrib")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPopAttrib() + { + GlPopAttribNative(); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPopClientAttrib")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPopClientAttrib")] + internal static extern void GlPopClientAttribNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPopClientAttrib")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPopClientAttrib() + { + GlPopClientAttribNative(); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPopMatrix")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPopMatrix")] + internal static extern void GlPopMatrixNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPopMatrix")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPopMatrix() + { + GlPopMatrixNative(); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPopName")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPopName")] + internal static extern void GlPopNameNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPopName")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPopName() + { + GlPopNameNative(); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPrioritizeTextures")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPrioritizeTextures")] + internal static extern void GlPrioritizeTexturesNative([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* textures, [NativeName(NativeNameType.Param, "priorities")] [NativeName(NativeNameType.Type, "const GLclampf*")] float* priorities); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPrioritizeTextures")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPrioritizeTextures([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* textures, [NativeName(NativeNameType.Param, "priorities")] [NativeName(NativeNameType.Type, "const GLclampf*")] float* priorities) + { + GlPrioritizeTexturesNative(n, textures, priorities); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPrioritizeTextures")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPrioritizeTextures([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] ref uint textures, [NativeName(NativeNameType.Param, "priorities")] [NativeName(NativeNameType.Type, "const GLclampf*")] float* priorities) + { + fixed (uint* ptextures = &textures) + { + GlPrioritizeTexturesNative(n, (uint*)ptextures, priorities); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPrioritizeTextures")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPrioritizeTextures([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] uint* textures, [NativeName(NativeNameType.Param, "priorities")] [NativeName(NativeNameType.Type, "const GLclampf*")] ref float priorities) + { + fixed (float* ppriorities = &priorities) + { + GlPrioritizeTexturesNative(n, textures, (float*)ppriorities); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPrioritizeTextures")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPrioritizeTextures([NativeName(NativeNameType.Param, "n")] [NativeName(NativeNameType.Type, "GLsizei")] int n, [NativeName(NativeNameType.Param, "textures")] [NativeName(NativeNameType.Type, "const GLuint*")] ref uint textures, [NativeName(NativeNameType.Param, "priorities")] [NativeName(NativeNameType.Type, "const GLclampf*")] ref float priorities) + { + fixed (uint* ptextures = &textures) + { + fixed (float* ppriorities = &priorities) + { + GlPrioritizeTexturesNative(n, (uint*)ptextures, (float*)ppriorities); + } + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPushAttrib")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPushAttrib")] + internal static extern void GlPushAttribNative([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLbitfield")] uint mask); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPushAttrib")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPushAttrib([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLbitfield")] uint mask) + { + GlPushAttribNative(mask); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPushClientAttrib")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPushClientAttrib")] + internal static extern void GlPushClientAttribNative([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLbitfield")] uint mask); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPushClientAttrib")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPushClientAttrib([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLbitfield")] uint mask) + { + GlPushClientAttribNative(mask); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPushMatrix")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPushMatrix")] + internal static extern void GlPushMatrixNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPushMatrix")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPushMatrix() + { + GlPushMatrixNative(); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glPushName")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glPushName")] + internal static extern void GlPushNameNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "GLuint")] uint name); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glPushName")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlPushName([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "GLuint")] uint name) + { + GlPushNameNative(name); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos2d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos2d")] + internal static extern void GlRasterPos2DNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2D([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y) + { + GlRasterPos2DNative(x, y); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos2dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos2dv")] + internal static extern void GlRasterPos2DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlRasterPos2DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlRasterPos2DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos2f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos2f")] + internal static extern void GlRasterPos2FNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2F([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y) + { + GlRasterPos2FNative(x, y); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos2fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos2fv")] + internal static extern void GlRasterPos2FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlRasterPos2FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlRasterPos2FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos2i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos2i")] + internal static extern void GlRasterPos2INative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2I([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y) + { + GlRasterPos2INative(x, y); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos2iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos2iv")] + internal static extern void GlRasterPos2IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlRasterPos2IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlRasterPos2IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos2s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos2s")] + internal static extern void GlRasterPos2SNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2S([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y) + { + GlRasterPos2SNative(x, y); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos2sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos2sv")] + internal static extern void GlRasterPos2SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlRasterPos2SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos2sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos2Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlRasterPos2SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos3d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos3d")] + internal static extern void GlRasterPos3DNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3D([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z) + { + GlRasterPos3DNative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos3dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos3dv")] + internal static extern void GlRasterPos3DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlRasterPos3DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlRasterPos3DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos3f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos3f")] + internal static extern void GlRasterPos3FNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3F([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z) + { + GlRasterPos3FNative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos3fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos3fv")] + internal static extern void GlRasterPos3FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlRasterPos3FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlRasterPos3FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos3i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos3i")] + internal static extern void GlRasterPos3INative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLint")] int z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3I([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLint")] int z) + { + GlRasterPos3INative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos3iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos3iv")] + internal static extern void GlRasterPos3IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlRasterPos3IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlRasterPos3IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos3s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos3s")] + internal static extern void GlRasterPos3SNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLshort")] short z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3S([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLshort")] short z) + { + GlRasterPos3SNative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos3sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos3sv")] + internal static extern void GlRasterPos3SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlRasterPos3SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos3sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos3Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlRasterPos3SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos4d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos4d")] + internal static extern void GlRasterPos4DNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLdouble")] double w); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4D([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLdouble")] double w) + { + GlRasterPos4DNative(x, y, z, w); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos4dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos4dv")] + internal static extern void GlRasterPos4DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlRasterPos4DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlRasterPos4DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos4f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos4f")] + internal static extern void GlRasterPos4FNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLfloat")] float w); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4F([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLfloat")] float w) + { + GlRasterPos4FNative(x, y, z, w); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos4fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos4fv")] + internal static extern void GlRasterPos4FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlRasterPos4FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlRasterPos4FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos4i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos4i")] + internal static extern void GlRasterPos4INative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLint")] int z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLint")] int w); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4I([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLint")] int z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLint")] int w) + { + GlRasterPos4INative(x, y, z, w); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos4iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos4iv")] + internal static extern void GlRasterPos4IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlRasterPos4IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlRasterPos4IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos4s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos4s")] + internal static extern void GlRasterPos4SNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLshort")] short z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLshort")] short w); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4S([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLshort")] short z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLshort")] short w) + { + GlRasterPos4SNative(x, y, z, w); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRasterPos4sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRasterPos4sv")] + internal static extern void GlRasterPos4SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlRasterPos4SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRasterPos4sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRasterPos4Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlRasterPos4SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glReadBuffer")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glReadBuffer")] + internal static extern void GlReadBufferNative([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glReadBuffer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlReadBuffer([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + GlReadBufferNative(mode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glReadPixels")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glReadPixels")] + internal static extern void GlReadPixelsNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "GLvoid*")] void* pixels); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glReadPixels")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlReadPixels([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "GLvoid*")] void* pixels) + { + GlReadPixelsNative(x, y, width, height, format, type, pixels); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRectd")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRectd")] + internal static extern void GlRectdNative([NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "GLdouble")] double x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "GLdouble")] double y1, [NativeName(NativeNameType.Param, "x2")] [NativeName(NativeNameType.Type, "GLdouble")] double x2, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "GLdouble")] double y2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectd")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectd([NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "GLdouble")] double x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "GLdouble")] double y1, [NativeName(NativeNameType.Param, "x2")] [NativeName(NativeNameType.Type, "GLdouble")] double x2, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "GLdouble")] double y2) + { + GlRectdNative(x1, y1, x2, y2); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRectdv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRectdv")] + internal static extern void GlRectdvNative([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectdv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectdv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v2) + { + GlRectdvNative(v1, v2); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectdv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectdv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v2) + { + fixed (double* pv1 = &v1) + { + GlRectdvNative((double*)pv1, v2); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectdv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectdv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v2) + { + fixed (double* pv2 = &v2) + { + GlRectdvNative(v1, (double*)pv2); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectdv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectdv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v2) + { + fixed (double* pv1 = &v1) + { + fixed (double* pv2 = &v2) + { + GlRectdvNative((double*)pv1, (double*)pv2); + } + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRectf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRectf")] + internal static extern void GlRectfNative([NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "GLfloat")] float x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "GLfloat")] float y1, [NativeName(NativeNameType.Param, "x2")] [NativeName(NativeNameType.Type, "GLfloat")] float x2, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "GLfloat")] float y2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectf([NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "GLfloat")] float x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "GLfloat")] float y1, [NativeName(NativeNameType.Param, "x2")] [NativeName(NativeNameType.Type, "GLfloat")] float x2, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "GLfloat")] float y2) + { + GlRectfNative(x1, y1, x2, y2); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRectfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRectfv")] + internal static extern void GlRectfvNative([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectfv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v2) + { + GlRectfvNative(v1, v2); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectfv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v2) + { + fixed (float* pv1 = &v1) + { + GlRectfvNative((float*)pv1, v2); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectfv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v2) + { + fixed (float* pv2 = &v2) + { + GlRectfvNative(v1, (float*)pv2); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectfv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v2) + { + fixed (float* pv1 = &v1) + { + fixed (float* pv2 = &v2) + { + GlRectfvNative((float*)pv1, (float*)pv2); + } + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRecti")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRecti")] + internal static extern void GlRectiNative([NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "GLint")] int x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "GLint")] int y1, [NativeName(NativeNameType.Param, "x2")] [NativeName(NativeNameType.Type, "GLint")] int x2, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "GLint")] int y2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRecti")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRecti([NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "GLint")] int x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "GLint")] int y1, [NativeName(NativeNameType.Param, "x2")] [NativeName(NativeNameType.Type, "GLint")] int x2, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "GLint")] int y2) + { + GlRectiNative(x1, y1, x2, y2); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRectiv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRectiv")] + internal static extern void GlRectivNative([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLint*")] int* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLint*")] int* v2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectiv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLint*")] int* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLint*")] int* v2) + { + GlRectivNative(v1, v2); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectiv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLint*")] int* v2) + { + fixed (int* pv1 = &v1) + { + GlRectivNative((int*)pv1, v2); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectiv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLint*")] int* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v2) + { + fixed (int* pv2 = &v2) + { + GlRectivNative(v1, (int*)pv2); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectiv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectiv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v2) + { + fixed (int* pv1 = &v1) + { + fixed (int* pv2 = &v2) + { + GlRectivNative((int*)pv1, (int*)pv2); + } + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRects")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRects")] + internal static extern void GlRectsNative([NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "GLshort")] short x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "GLshort")] short y1, [NativeName(NativeNameType.Param, "x2")] [NativeName(NativeNameType.Type, "GLshort")] short x2, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "GLshort")] short y2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRects")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRects([NativeName(NativeNameType.Param, "x1")] [NativeName(NativeNameType.Type, "GLshort")] short x1, [NativeName(NativeNameType.Param, "y1")] [NativeName(NativeNameType.Type, "GLshort")] short y1, [NativeName(NativeNameType.Param, "x2")] [NativeName(NativeNameType.Type, "GLshort")] short x2, [NativeName(NativeNameType.Param, "y2")] [NativeName(NativeNameType.Type, "GLshort")] short y2) + { + GlRectsNative(x1, y1, x2, y2); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRectsv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRectsv")] + internal static extern void GlRectsvNative([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v2); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectsv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectsv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v2) + { + GlRectsvNative(v1, v2); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectsv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectsv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v2) + { + fixed (short* pv1 = &v1) + { + GlRectsvNative((short*)pv1, v2); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectsv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectsv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v2) + { + fixed (short* pv2 = &v2) + { + GlRectsvNative(v1, (short*)pv2); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRectsv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRectsv([NativeName(NativeNameType.Param, "v1")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v1, [NativeName(NativeNameType.Param, "v2")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v2) + { + fixed (short* pv1 = &v1) + { + fixed (short* pv2 = &v2) + { + GlRectsvNative((short*)pv1, (short*)pv2); + } + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRenderMode")] + [return: NativeName(NativeNameType.Type, "GLint")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRenderMode")] + internal static extern int GlRenderModeNative([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRenderMode")] + [return: NativeName(NativeNameType.Type, "GLint")] + public static int GlRenderMode([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + int ret = GlRenderModeNative(mode); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRotated")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRotated")] + internal static extern void GlRotatedNative([NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "GLdouble")] double angle, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRotated")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRotated([NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "GLdouble")] double angle, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z) + { + GlRotatedNative(angle, x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glRotatef")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glRotatef")] + internal static extern void GlRotatefNative([NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "GLfloat")] float angle, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glRotatef")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlRotatef([NativeName(NativeNameType.Param, "angle")] [NativeName(NativeNameType.Type, "GLfloat")] float angle, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z) + { + GlRotatefNative(angle, x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glScaled")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glScaled")] + internal static extern void GlScaledNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glScaled")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlScaled([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z) + { + GlScaledNative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glScalef")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glScalef")] + internal static extern void GlScalefNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glScalef")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlScalef([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z) + { + GlScalefNative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glScissor")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glScissor")] + internal static extern void GlScissorNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glScissor")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlScissor([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height) + { + GlScissorNative(x, y, width, height); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glSelectBuffer")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glSelectBuffer")] + internal static extern void GlSelectBufferNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLsizei")] int size, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "GLuint*")] uint* buffer); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glSelectBuffer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlSelectBuffer([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLsizei")] int size, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "GLuint*")] uint* buffer) + { + GlSelectBufferNative(size, buffer); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glSelectBuffer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlSelectBuffer([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLsizei")] int size, [NativeName(NativeNameType.Param, "buffer")] [NativeName(NativeNameType.Type, "GLuint*")] ref uint buffer) + { + fixed (uint* pbuffer = &buffer) + { + GlSelectBufferNative(size, (uint*)pbuffer); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glShadeModel")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glShadeModel")] + internal static extern void GlShadeModelNative([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glShadeModel")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlShadeModel([NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "GLenum")] uint mode) + { + GlShadeModelNative(mode); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glStencilFunc")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glStencilFunc")] + internal static extern void GlStencilFuncNative([NativeName(NativeNameType.Param, "func")] [NativeName(NativeNameType.Type, "GLenum")] uint func, [NativeName(NativeNameType.Param, "ref")] [NativeName(NativeNameType.Type, "GLint")] int reference, [NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLuint")] uint mask); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glStencilFunc")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlStencilFunc([NativeName(NativeNameType.Param, "func")] [NativeName(NativeNameType.Type, "GLenum")] uint func, [NativeName(NativeNameType.Param, "ref")] [NativeName(NativeNameType.Type, "GLint")] int reference, [NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLuint")] uint mask) + { + GlStencilFuncNative(func, reference, mask); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glStencilMask")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glStencilMask")] + internal static extern void GlStencilMaskNative([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLuint")] uint mask); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glStencilMask")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlStencilMask([NativeName(NativeNameType.Param, "mask")] [NativeName(NativeNameType.Type, "GLuint")] uint mask) + { + GlStencilMaskNative(mask); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glStencilOp")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glStencilOp")] + internal static extern void GlStencilOpNative([NativeName(NativeNameType.Param, "fail")] [NativeName(NativeNameType.Type, "GLenum")] uint fail, [NativeName(NativeNameType.Param, "zfail")] [NativeName(NativeNameType.Type, "GLenum")] uint zfail, [NativeName(NativeNameType.Param, "zpass")] [NativeName(NativeNameType.Type, "GLenum")] uint zpass); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glStencilOp")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlStencilOp([NativeName(NativeNameType.Param, "fail")] [NativeName(NativeNameType.Type, "GLenum")] uint fail, [NativeName(NativeNameType.Param, "zfail")] [NativeName(NativeNameType.Type, "GLenum")] uint zfail, [NativeName(NativeNameType.Param, "zpass")] [NativeName(NativeNameType.Type, "GLenum")] uint zpass) + { + GlStencilOpNative(fail, zfail, zpass); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord1d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord1d")] + internal static extern void GlTexCoord1DNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLdouble")] double s); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1D([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLdouble")] double s) + { + GlTexCoord1DNative(s); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord1dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord1dv")] + internal static extern void GlTexCoord1DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlTexCoord1DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlTexCoord1DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord1f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord1f")] + internal static extern void GlTexCoord1FNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLfloat")] float s); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1F([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLfloat")] float s) + { + GlTexCoord1FNative(s); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord1fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord1fv")] + internal static extern void GlTexCoord1FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlTexCoord1FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlTexCoord1FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord1i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord1i")] + internal static extern void GlTexCoord1INative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLint")] int s); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1I([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLint")] int s) + { + GlTexCoord1INative(s); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord1iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord1iv")] + internal static extern void GlTexCoord1IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlTexCoord1IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlTexCoord1IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord1s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord1s")] + internal static extern void GlTexCoord1SNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLshort")] short s); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1S([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLshort")] short s) + { + GlTexCoord1SNative(s); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord1sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord1sv")] + internal static extern void GlTexCoord1SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlTexCoord1SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord1sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord1Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlTexCoord1SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord2d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord2d")] + internal static extern void GlTexCoord2DNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLdouble")] double s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLdouble")] double t); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2D([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLdouble")] double s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLdouble")] double t) + { + GlTexCoord2DNative(s, t); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord2dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord2dv")] + internal static extern void GlTexCoord2DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlTexCoord2DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlTexCoord2DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord2f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord2f")] + internal static extern void GlTexCoord2FNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLfloat")] float s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLfloat")] float t); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2F([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLfloat")] float s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLfloat")] float t) + { + GlTexCoord2FNative(s, t); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord2fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord2fv")] + internal static extern void GlTexCoord2FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlTexCoord2FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlTexCoord2FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord2i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord2i")] + internal static extern void GlTexCoord2INative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLint")] int s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLint")] int t); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2I([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLint")] int s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLint")] int t) + { + GlTexCoord2INative(s, t); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord2iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord2iv")] + internal static extern void GlTexCoord2IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlTexCoord2IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlTexCoord2IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord2s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord2s")] + internal static extern void GlTexCoord2SNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLshort")] short s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLshort")] short t); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2S([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLshort")] short s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLshort")] short t) + { + GlTexCoord2SNative(s, t); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord2sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord2sv")] + internal static extern void GlTexCoord2SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlTexCoord2SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord2sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord2Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlTexCoord2SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord3d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord3d")] + internal static extern void GlTexCoord3DNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLdouble")] double s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLdouble")] double t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLdouble")] double r); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3D([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLdouble")] double s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLdouble")] double t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLdouble")] double r) + { + GlTexCoord3DNative(s, t, r); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord3dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord3dv")] + internal static extern void GlTexCoord3DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlTexCoord3DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlTexCoord3DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord3f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord3f")] + internal static extern void GlTexCoord3FNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLfloat")] float s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLfloat")] float t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLfloat")] float r); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3F([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLfloat")] float s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLfloat")] float t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLfloat")] float r) + { + GlTexCoord3FNative(s, t, r); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord3fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord3fv")] + internal static extern void GlTexCoord3FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlTexCoord3FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlTexCoord3FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord3i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord3i")] + internal static extern void GlTexCoord3INative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLint")] int s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLint")] int t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLint")] int r); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3I([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLint")] int s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLint")] int t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLint")] int r) + { + GlTexCoord3INative(s, t, r); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord3iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord3iv")] + internal static extern void GlTexCoord3IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlTexCoord3IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlTexCoord3IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord3s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord3s")] + internal static extern void GlTexCoord3SNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLshort")] short s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLshort")] short t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLshort")] short r); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3S([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLshort")] short s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLshort")] short t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLshort")] short r) + { + GlTexCoord3SNative(s, t, r); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord3sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord3sv")] + internal static extern void GlTexCoord3SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlTexCoord3SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord3sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord3Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlTexCoord3SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord4d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord4d")] + internal static extern void GlTexCoord4DNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLdouble")] double s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLdouble")] double t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLdouble")] double r, [NativeName(NativeNameType.Param, "q")] [NativeName(NativeNameType.Type, "GLdouble")] double q); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4D([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLdouble")] double s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLdouble")] double t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLdouble")] double r, [NativeName(NativeNameType.Param, "q")] [NativeName(NativeNameType.Type, "GLdouble")] double q) + { + GlTexCoord4DNative(s, t, r, q); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord4dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord4dv")] + internal static extern void GlTexCoord4DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlTexCoord4DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlTexCoord4DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord4f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord4f")] + internal static extern void GlTexCoord4FNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLfloat")] float s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLfloat")] float t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLfloat")] float r, [NativeName(NativeNameType.Param, "q")] [NativeName(NativeNameType.Type, "GLfloat")] float q); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4F([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLfloat")] float s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLfloat")] float t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLfloat")] float r, [NativeName(NativeNameType.Param, "q")] [NativeName(NativeNameType.Type, "GLfloat")] float q) + { + GlTexCoord4FNative(s, t, r, q); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord4fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord4fv")] + internal static extern void GlTexCoord4FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlTexCoord4FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlTexCoord4FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord4i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord4i")] + internal static extern void GlTexCoord4INative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLint")] int s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLint")] int t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLint")] int r, [NativeName(NativeNameType.Param, "q")] [NativeName(NativeNameType.Type, "GLint")] int q); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4I([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLint")] int s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLint")] int t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLint")] int r, [NativeName(NativeNameType.Param, "q")] [NativeName(NativeNameType.Type, "GLint")] int q) + { + GlTexCoord4INative(s, t, r, q); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord4iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord4iv")] + internal static extern void GlTexCoord4IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlTexCoord4IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlTexCoord4IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord4s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord4s")] + internal static extern void GlTexCoord4SNative([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLshort")] short s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLshort")] short t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLshort")] short r, [NativeName(NativeNameType.Param, "q")] [NativeName(NativeNameType.Type, "GLshort")] short q); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4S([NativeName(NativeNameType.Param, "s")] [NativeName(NativeNameType.Type, "GLshort")] short s, [NativeName(NativeNameType.Param, "t")] [NativeName(NativeNameType.Type, "GLshort")] short t, [NativeName(NativeNameType.Param, "r")] [NativeName(NativeNameType.Type, "GLshort")] short r, [NativeName(NativeNameType.Param, "q")] [NativeName(NativeNameType.Type, "GLshort")] short q) + { + GlTexCoord4SNative(s, t, r, q); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoord4sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoord4sv")] + internal static extern void GlTexCoord4SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlTexCoord4SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoord4sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoord4Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlTexCoord4SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexCoordPointer")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexCoordPointer")] + internal static extern void GlTexCoordPointerNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLint")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexCoordPointer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexCoordPointer([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLint")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer) + { + GlTexCoordPointerNative(size, type, stride, pointer); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexEnvf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexEnvf")] + internal static extern void GlTexEnvfNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexEnvf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexEnvf([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param) + { + GlTexEnvfNative(target, pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexEnvfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexEnvfv")] + internal static extern void GlTexEnvfvNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexEnvfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexEnvfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params) + { + GlTexEnvfvNative(target, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexEnvfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexEnvfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlTexEnvfvNative(target, pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexEnvi")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexEnvi")] + internal static extern void GlTexEnviNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexEnvi")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexEnvi([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param) + { + GlTexEnviNative(target, pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexEnviv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexEnviv")] + internal static extern void GlTexEnvivNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexEnviv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexEnviv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params) + { + GlTexEnvivNative(target, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexEnviv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexEnviv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlTexEnvivNative(target, pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexGend")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexGend")] + internal static extern void GlTexGendNative([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLdouble")] double param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexGend")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexGend([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLdouble")] double param) + { + GlTexGendNative(coord, pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexGendv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexGendv")] + internal static extern void GlTexGendvNative([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexGendv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexGendv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* @params) + { + GlTexGendvNative(coord, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexGendv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexGendv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double @params) + { + fixed (double* pparams = &@params) + { + GlTexGendvNative(coord, pname, (double*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexGenf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexGenf")] + internal static extern void GlTexGenfNative([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexGenf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexGenf([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param) + { + GlTexGenfNative(coord, pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexGenfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexGenfv")] + internal static extern void GlTexGenfvNative([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexGenfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexGenfv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params) + { + GlTexGenfvNative(coord, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexGenfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexGenfv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlTexGenfvNative(coord, pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexGeni")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexGeni")] + internal static extern void GlTexGeniNative([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexGeni")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexGeni([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param) + { + GlTexGeniNative(coord, pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexGeniv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexGeniv")] + internal static extern void GlTexGenivNative([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexGeniv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexGeniv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params) + { + GlTexGenivNative(coord, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexGeniv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexGeniv([NativeName(NativeNameType.Param, "coord")] [NativeName(NativeNameType.Type, "GLenum")] uint coord, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlTexGenivNative(coord, pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexImage1D")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexImage1D")] + internal static extern void GlTexImage1DNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "internalformat")] [NativeName(NativeNameType.Type, "GLint")] int internalformat, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "GLint")] int border, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pixels); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexImage1D")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexImage1D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "internalformat")] [NativeName(NativeNameType.Type, "GLint")] int internalformat, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "GLint")] int border, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pixels) + { + GlTexImage1DNative(target, level, internalformat, width, border, format, type, pixels); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexImage2D")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexImage2D")] + internal static extern void GlTexImage2DNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "internalformat")] [NativeName(NativeNameType.Type, "GLint")] int internalformat, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "GLint")] int border, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pixels); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexImage2D")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexImage2D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "internalformat")] [NativeName(NativeNameType.Type, "GLint")] int internalformat, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "border")] [NativeName(NativeNameType.Type, "GLint")] int border, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pixels) + { + GlTexImage2DNative(target, level, internalformat, width, height, border, format, type, pixels); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexParameterf")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexParameterf")] + internal static extern void GlTexParameterfNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexParameterf")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexParameterf([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLfloat")] float param) + { + GlTexParameterfNative(target, pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexParameterfv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexParameterfv")] + internal static extern void GlTexParameterfvNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexParameterfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexParameterfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* @params) + { + GlTexParameterfvNative(target, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexParameterfv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexParameterfv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float @params) + { + fixed (float* pparams = &@params) + { + GlTexParameterfvNative(target, pname, (float*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexParameteri")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexParameteri")] + internal static extern void GlTexParameteriNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexParameteri")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexParameteri([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "param")] [NativeName(NativeNameType.Type, "GLint")] int param) + { + GlTexParameteriNative(target, pname, param); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexParameteriv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexParameteriv")] + internal static extern void GlTexParameterivNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexParameteriv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexParameteriv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] int* @params) + { + GlTexParameterivNative(target, pname, @params); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexParameteriv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexParameteriv([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "pname")] [NativeName(NativeNameType.Type, "GLenum")] uint pname, [NativeName(NativeNameType.Param, "params")] [NativeName(NativeNameType.Type, "const GLint*")] ref int @params) + { + fixed (int* pparams = &@params) + { + GlTexParameterivNative(target, pname, (int*)pparams); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexSubImage1D")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexSubImage1D")] + internal static extern void GlTexSubImage1DNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "xoffset")] [NativeName(NativeNameType.Type, "GLint")] int xoffset, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pixels); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexSubImage1D")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexSubImage1D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "xoffset")] [NativeName(NativeNameType.Type, "GLint")] int xoffset, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pixels) + { + GlTexSubImage1DNative(target, level, xoffset, width, format, type, pixels); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTexSubImage2D")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTexSubImage2D")] + internal static extern void GlTexSubImage2DNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "xoffset")] [NativeName(NativeNameType.Type, "GLint")] int xoffset, [NativeName(NativeNameType.Param, "yoffset")] [NativeName(NativeNameType.Type, "GLint")] int yoffset, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pixels); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTexSubImage2D")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTexSubImage2D([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "level")] [NativeName(NativeNameType.Type, "GLint")] int level, [NativeName(NativeNameType.Param, "xoffset")] [NativeName(NativeNameType.Type, "GLint")] int xoffset, [NativeName(NativeNameType.Param, "yoffset")] [NativeName(NativeNameType.Type, "GLint")] int yoffset, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "pixels")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pixels) + { + GlTexSubImage2DNative(target, level, xoffset, yoffset, width, height, format, type, pixels); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTranslated")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTranslated")] + internal static extern void GlTranslatedNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTranslated")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTranslated([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z) + { + GlTranslatedNative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glTranslatef")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glTranslatef")] + internal static extern void GlTranslatefNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glTranslatef")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlTranslatef([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z) + { + GlTranslatefNative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex2d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex2d")] + internal static extern void GlVertex2DNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2D([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y) + { + GlVertex2DNative(x, y); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex2dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex2dv")] + internal static extern void GlVertex2DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlVertex2DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlVertex2DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex2f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex2f")] + internal static extern void GlVertex2FNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2F([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y) + { + GlVertex2FNative(x, y); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex2fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex2fv")] + internal static extern void GlVertex2FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlVertex2FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlVertex2FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex2i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex2i")] + internal static extern void GlVertex2INative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2I([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y) + { + GlVertex2INative(x, y); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex2iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex2iv")] + internal static extern void GlVertex2IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlVertex2IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlVertex2IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex2s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex2s")] + internal static extern void GlVertex2SNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2S([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y) + { + GlVertex2SNative(x, y); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex2sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex2sv")] + internal static extern void GlVertex2SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlVertex2SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex2sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex2Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlVertex2SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex3d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex3d")] + internal static extern void GlVertex3DNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3D([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z) + { + GlVertex3DNative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex3dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex3dv")] + internal static extern void GlVertex3DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlVertex3DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlVertex3DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex3f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex3f")] + internal static extern void GlVertex3FNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3F([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z) + { + GlVertex3FNative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex3fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex3fv")] + internal static extern void GlVertex3FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlVertex3FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlVertex3FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex3i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex3i")] + internal static extern void GlVertex3INative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLint")] int z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3I([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLint")] int z) + { + GlVertex3INative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex3iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex3iv")] + internal static extern void GlVertex3IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlVertex3IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlVertex3IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex3s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex3s")] + internal static extern void GlVertex3SNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLshort")] short z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3S([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLshort")] short z) + { + GlVertex3SNative(x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex3sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex3sv")] + internal static extern void GlVertex3SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlVertex3SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex3sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex3Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlVertex3SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex4d")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex4d")] + internal static extern void GlVertex4DNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLdouble")] double w); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4d")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4D([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLdouble")] double w) + { + GlVertex4DNative(x, y, z, w); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex4dv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex4dv")] + internal static extern void GlVertex4DvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] double* v) + { + GlVertex4DvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4dv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4Dv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLdouble*")] ref double v) + { + fixed (double* pv = &v) + { + GlVertex4DvNative((double*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex4f")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex4f")] + internal static extern void GlVertex4FNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLfloat")] float w); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4f")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4F([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLfloat")] float x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLfloat")] float y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLfloat")] float z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLfloat")] float w) + { + GlVertex4FNative(x, y, z, w); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex4fv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex4fv")] + internal static extern void GlVertex4FvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] float* v) + { + GlVertex4FvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4fv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4Fv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLfloat*")] ref float v) + { + fixed (float* pv = &v) + { + GlVertex4FvNative((float*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex4i")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex4i")] + internal static extern void GlVertex4INative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLint")] int z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLint")] int w); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4i")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4I([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLint")] int z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLint")] int w) + { + GlVertex4INative(x, y, z, w); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex4iv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex4iv")] + internal static extern void GlVertex4IvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] int* v) + { + GlVertex4IvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4iv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4Iv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLint*")] ref int v) + { + fixed (int* pv = &v) + { + GlVertex4IvNative((int*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex4s")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex4s")] + internal static extern void GlVertex4SNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLshort")] short z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLshort")] short w); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4s")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4S([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLshort")] short x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLshort")] short y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLshort")] short z, [NativeName(NativeNameType.Param, "w")] [NativeName(NativeNameType.Type, "GLshort")] short w) + { + GlVertex4SNative(x, y, z, w); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertex4sv")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertex4sv")] + internal static extern void GlVertex4SvNative([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] short* v) + { + GlVertex4SvNative(v); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertex4sv")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertex4Sv([NativeName(NativeNameType.Param, "v")] [NativeName(NativeNameType.Type, "const GLshort*")] ref short v) + { + fixed (short* pv = &v) + { + GlVertex4SvNative((short*)pv); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glVertexPointer")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glVertexPointer")] + internal static extern void GlVertexPointerNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLint")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glVertexPointer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlVertexPointer([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "GLint")] int size, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLsizei")] int stride, [NativeName(NativeNameType.Param, "pointer")] [NativeName(NativeNameType.Type, "const GLvoid*")] void* pointer) + { + GlVertexPointerNative(size, type, stride, pointer); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "glViewport")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "glViewport")] + internal static extern void GlViewportNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "glViewport")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GlViewport([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLint")] int x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLint")] int y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLsizei")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLsizei")] int height) + { + GlViewportNative(x, y, width, height); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluErrorString")] + [return: NativeName(NativeNameType.Type, "const GLubyte*")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluErrorString")] + internal static extern byte* GluErrorStringNative([NativeName(NativeNameType.Param, "errCode")] [NativeName(NativeNameType.Type, "GLenum")] uint errCode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluErrorString")] + [return: NativeName(NativeNameType.Type, "const GLubyte*")] + public static byte* GluErrorString([NativeName(NativeNameType.Param, "errCode")] [NativeName(NativeNameType.Type, "GLenum")] uint errCode) + { + byte* ret = GluErrorStringNative(errCode); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluErrorUnicodeStringEXT")] + [return: NativeName(NativeNameType.Type, "const wchar*")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluErrorUnicodeStringEXT")] + internal static extern char* GluErrorUnicodeStringEXNative([NativeName(NativeNameType.Param, "errCode")] [NativeName(NativeNameType.Type, "GLenum")] uint errCode); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluErrorUnicodeStringEXT")] + [return: NativeName(NativeNameType.Type, "const wchar*")] + public static char* GluErrorUnicodeStringEX([NativeName(NativeNameType.Param, "errCode")] [NativeName(NativeNameType.Type, "GLenum")] uint errCode) + { + char* ret = GluErrorUnicodeStringEXNative(errCode); + return ret; + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluErrorUnicodeStringEXT")] + [return: NativeName(NativeNameType.Type, "const wchar*")] + public static string GluErrorUnicodeStringEXS([NativeName(NativeNameType.Param, "errCode")] [NativeName(NativeNameType.Type, "GLenum")] uint errCode) + { + string ret = Utils.DecodeStringUTF16(GluErrorUnicodeStringEXNative(errCode)); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluGetString")] + [return: NativeName(NativeNameType.Type, "const GLubyte*")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluGetString")] + internal static extern byte* GluGetStringNative([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "GLenum")] uint name); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluGetString")] + [return: NativeName(NativeNameType.Type, "const GLubyte*")] + public static byte* GluGetString([NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "GLenum")] uint name) + { + byte* ret = GluGetStringNative(name); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluOrtho2D")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluOrtho2D")] + internal static extern void GluOrtho2DNative([NativeName(NativeNameType.Param, "left")] [NativeName(NativeNameType.Type, "GLdouble")] double left, [NativeName(NativeNameType.Param, "right")] [NativeName(NativeNameType.Type, "GLdouble")] double right, [NativeName(NativeNameType.Param, "bottom")] [NativeName(NativeNameType.Type, "GLdouble")] double bottom, [NativeName(NativeNameType.Param, "top")] [NativeName(NativeNameType.Type, "GLdouble")] double top); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluOrtho2D")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluOrtho2D([NativeName(NativeNameType.Param, "left")] [NativeName(NativeNameType.Type, "GLdouble")] double left, [NativeName(NativeNameType.Param, "right")] [NativeName(NativeNameType.Type, "GLdouble")] double right, [NativeName(NativeNameType.Param, "bottom")] [NativeName(NativeNameType.Type, "GLdouble")] double bottom, [NativeName(NativeNameType.Param, "top")] [NativeName(NativeNameType.Type, "GLdouble")] double top) + { + GluOrtho2DNative(left, right, bottom, top); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluPerspective")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluPerspective")] + internal static extern void GluPerspectiveNative([NativeName(NativeNameType.Param, "fovy")] [NativeName(NativeNameType.Type, "GLdouble")] double fovy, [NativeName(NativeNameType.Param, "aspect")] [NativeName(NativeNameType.Type, "GLdouble")] double aspect, [NativeName(NativeNameType.Param, "zNear")] [NativeName(NativeNameType.Type, "GLdouble")] double zNear, [NativeName(NativeNameType.Param, "zFar")] [NativeName(NativeNameType.Type, "GLdouble")] double zFar); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluPerspective")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluPerspective([NativeName(NativeNameType.Param, "fovy")] [NativeName(NativeNameType.Type, "GLdouble")] double fovy, [NativeName(NativeNameType.Param, "aspect")] [NativeName(NativeNameType.Type, "GLdouble")] double aspect, [NativeName(NativeNameType.Param, "zNear")] [NativeName(NativeNameType.Type, "GLdouble")] double zNear, [NativeName(NativeNameType.Param, "zFar")] [NativeName(NativeNameType.Type, "GLdouble")] double zFar) + { + GluPerspectiveNative(fovy, aspect, zNear, zFar); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluPickMatrix")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluPickMatrix")] + internal static extern void GluPickMatrixNative([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLdouble")] double width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLdouble")] double height, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "GLint[4]")] int* viewport); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluPickMatrix")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluPickMatrix([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLdouble")] double width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLdouble")] double height, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "GLint[4]")] int* viewport) + { + GluPickMatrixNative(x, y, width, height, viewport); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluPickMatrix")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluPickMatrix([NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLdouble")] double width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLdouble")] double height, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "GLint[4]")] ref int viewport) + { + fixed (int* pviewport = &viewport) + { + GluPickMatrixNative(x, y, width, height, (int*)pviewport); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluLookAt")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluLookAt")] + internal static extern void GluLookAtNative([NativeName(NativeNameType.Param, "eyex")] [NativeName(NativeNameType.Type, "GLdouble")] double eyex, [NativeName(NativeNameType.Param, "eyey")] [NativeName(NativeNameType.Type, "GLdouble")] double eyey, [NativeName(NativeNameType.Param, "eyez")] [NativeName(NativeNameType.Type, "GLdouble")] double eyez, [NativeName(NativeNameType.Param, "centerx")] [NativeName(NativeNameType.Type, "GLdouble")] double centerx, [NativeName(NativeNameType.Param, "centery")] [NativeName(NativeNameType.Type, "GLdouble")] double centery, [NativeName(NativeNameType.Param, "centerz")] [NativeName(NativeNameType.Type, "GLdouble")] double centerz, [NativeName(NativeNameType.Param, "upx")] [NativeName(NativeNameType.Type, "GLdouble")] double upx, [NativeName(NativeNameType.Param, "upy")] [NativeName(NativeNameType.Type, "GLdouble")] double upy, [NativeName(NativeNameType.Param, "upz")] [NativeName(NativeNameType.Type, "GLdouble")] double upz); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluLookAt")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluLookAt([NativeName(NativeNameType.Param, "eyex")] [NativeName(NativeNameType.Type, "GLdouble")] double eyex, [NativeName(NativeNameType.Param, "eyey")] [NativeName(NativeNameType.Type, "GLdouble")] double eyey, [NativeName(NativeNameType.Param, "eyez")] [NativeName(NativeNameType.Type, "GLdouble")] double eyez, [NativeName(NativeNameType.Param, "centerx")] [NativeName(NativeNameType.Type, "GLdouble")] double centerx, [NativeName(NativeNameType.Param, "centery")] [NativeName(NativeNameType.Type, "GLdouble")] double centery, [NativeName(NativeNameType.Param, "centerz")] [NativeName(NativeNameType.Type, "GLdouble")] double centerz, [NativeName(NativeNameType.Param, "upx")] [NativeName(NativeNameType.Type, "GLdouble")] double upx, [NativeName(NativeNameType.Param, "upy")] [NativeName(NativeNameType.Type, "GLdouble")] double upy, [NativeName(NativeNameType.Param, "upz")] [NativeName(NativeNameType.Type, "GLdouble")] double upz) + { + GluLookAtNative(eyex, eyey, eyez, centerx, centery, centerz, upx, upy, upz); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluProject")] + internal static extern int GluProjectNative([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, viewport, winx, winy, winz); + return ret; + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, viewport, winx, winy, winz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, viewport, winx, winy, winz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, winx, winy, winz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (int* pviewport = &viewport) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, (int*)pviewport, winx, winy, winz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, winx, winy, winz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, winx, winy, winz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, winx, winy, winz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pwinx = &winx) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, viewport, (double*)pwinx, winy, winz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pwinx = &winx) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, viewport, (double*)pwinx, winy, winz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwinx = &winx) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, viewport, (double*)pwinx, winy, winz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwinx = &winx) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, (double*)pwinx, winy, winz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, (int*)pviewport, (double*)pwinx, winy, winz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, (double*)pwinx, winy, winz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pwinx, winy, winz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pwinx, winy, winz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, viewport, winx, (double*)pwiny, winz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, viewport, winx, (double*)pwiny, winz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, viewport, winx, (double*)pwiny, winz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, winx, (double*)pwiny, winz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, (int*)pviewport, winx, (double*)pwiny, winz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, winx, (double*)pwiny, winz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, winx, (double*)pwiny, winz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, winx, (double*)pwiny, winz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, viewport, (double*)pwinx, (double*)pwiny, winz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, viewport, (double*)pwinx, (double*)pwiny, winz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, viewport, (double*)pwinx, (double*)pwiny, winz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, (double*)pwinx, (double*)pwiny, winz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, (int*)pviewport, (double*)pwinx, (double*)pwiny, winz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, (double*)pwinx, (double*)pwiny, winz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pwinx, (double*)pwiny, winz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pwinx, (double*)pwiny, winz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, viewport, winx, winy, (double*)pwinz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, viewport, winx, winy, (double*)pwinz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, viewport, winx, winy, (double*)pwinz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, winx, winy, (double*)pwinz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, (int*)pviewport, winx, winy, (double*)pwinz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, winx, winy, (double*)pwinz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, winx, winy, (double*)pwinz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, winx, winy, (double*)pwinz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, viewport, (double*)pwinx, winy, (double*)pwinz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, viewport, (double*)pwinx, winy, (double*)pwinz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, viewport, (double*)pwinx, winy, (double*)pwinz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, (double*)pwinx, winy, (double*)pwinz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, (int*)pviewport, (double*)pwinx, winy, (double*)pwinz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, (double*)pwinx, winy, (double*)pwinz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pwinx, winy, (double*)pwinz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pwinx, winy, (double*)pwinz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, viewport, winx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, viewport, winx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, viewport, winx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, winx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, (int*)pviewport, winx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, winx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, winx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, winx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, viewport, (double*)pwinx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, viewport, (double*)pwinx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, viewport, (double*)pwinx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, (double*)pwinx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, projMatrix, (int*)pviewport, (double*)pwinx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, (double*)pwinx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pwinx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluProject([NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble")] double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble")] double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble")] double objz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double winz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pwinx = &winx) + { + fixed (double* pwiny = &winy) + { + fixed (double* pwinz = &winz) + { + int ret = GluProjectNative(objx, objy, objz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pwinx, (double*)pwiny, (double*)pwinz); + return ret; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluUnProject")] + internal static extern int GluUnProjectNative([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, viewport, objx, objy, objz); + return ret; + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, viewport, objx, objy, objz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, viewport, objx, objy, objz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, objx, objy, objz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (int* pviewport = &viewport) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, (int*)pviewport, objx, objy, objz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, objx, objy, objz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, objx, objy, objz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, objx, objy, objz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pobjx = &objx) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, viewport, (double*)pobjx, objy, objz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pobjx = &objx) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, viewport, (double*)pobjx, objy, objz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjx = &objx) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, viewport, (double*)pobjx, objy, objz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjx = &objx) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, (double*)pobjx, objy, objz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, (int*)pviewport, (double*)pobjx, objy, objz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, (double*)pobjx, objy, objz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pobjx, objy, objz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pobjx, objy, objz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, viewport, objx, (double*)pobjy, objz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, viewport, objx, (double*)pobjy, objz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, viewport, objx, (double*)pobjy, objz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, objx, (double*)pobjy, objz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, (int*)pviewport, objx, (double*)pobjy, objz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, objx, (double*)pobjy, objz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, objx, (double*)pobjy, objz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, objx, (double*)pobjy, objz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, viewport, (double*)pobjx, (double*)pobjy, objz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, viewport, (double*)pobjx, (double*)pobjy, objz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, viewport, (double*)pobjx, (double*)pobjy, objz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, (double*)pobjx, (double*)pobjy, objz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, (int*)pviewport, (double*)pobjx, (double*)pobjy, objz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, (double*)pobjx, (double*)pobjy, objz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pobjx, (double*)pobjy, objz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pobjx, (double*)pobjy, objz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, viewport, objx, objy, (double*)pobjz); + return ret; + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, viewport, objx, objy, (double*)pobjz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, viewport, objx, objy, (double*)pobjz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, objx, objy, (double*)pobjz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, (int*)pviewport, objx, objy, (double*)pobjz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, objx, objy, (double*)pobjz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, objx, objy, (double*)pobjz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, objx, objy, (double*)pobjz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, viewport, (double*)pobjx, objy, (double*)pobjz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, viewport, (double*)pobjx, objy, (double*)pobjz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, viewport, (double*)pobjx, objy, (double*)pobjz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, (double*)pobjx, objy, (double*)pobjz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, (int*)pviewport, (double*)pobjx, objy, (double*)pobjz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, (double*)pobjx, objy, (double*)pobjz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pobjx, objy, (double*)pobjz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pobjx, objy, (double*)pobjz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, viewport, objx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, viewport, objx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, viewport, objx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, objx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, (int*)pviewport, objx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, objx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, objx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] double* objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, objx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, viewport, (double*)pobjx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, viewport, (double*)pobjx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, viewport, (double*)pobjx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, viewport, (double*)pobjx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, projMatrix, (int*)pviewport, (double*)pobjx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, projMatrix, (int*)pviewport, (double*)pobjx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] double* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, modelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pobjx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluUnProject")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluUnProject([NativeName(NativeNameType.Param, "winx")] [NativeName(NativeNameType.Type, "GLdouble")] double winx, [NativeName(NativeNameType.Param, "winy")] [NativeName(NativeNameType.Type, "GLdouble")] double winy, [NativeName(NativeNameType.Param, "winz")] [NativeName(NativeNameType.Type, "GLdouble")] double winz, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLdouble[16]")] ref double projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport, [NativeName(NativeNameType.Param, "objx")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objx, [NativeName(NativeNameType.Param, "objy")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objy, [NativeName(NativeNameType.Param, "objz")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double objz) + { + fixed (double* pmodelMatrix = &modelMatrix) + { + fixed (double* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + fixed (double* pobjx = &objx) + { + fixed (double* pobjy = &objy) + { + fixed (double* pobjz = &objz) + { + int ret = GluUnProjectNative(winx, winy, winz, (double*)pmodelMatrix, (double*)pprojMatrix, (int*)pviewport, (double*)pobjx, (double*)pobjy, (double*)pobjz); + return ret; + } + } + } + } + } + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluScaleImage")] + [return: NativeName(NativeNameType.Type, "int")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluScaleImage")] + internal static extern int GluScaleImageNative([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "widthin")] [NativeName(NativeNameType.Type, "GLint")] int widthin, [NativeName(NativeNameType.Param, "heightin")] [NativeName(NativeNameType.Type, "GLint")] int heightin, [NativeName(NativeNameType.Param, "typein")] [NativeName(NativeNameType.Type, "GLenum")] uint typein, [NativeName(NativeNameType.Param, "datain")] [NativeName(NativeNameType.Type, "const void*")] void* datain, [NativeName(NativeNameType.Param, "widthout")] [NativeName(NativeNameType.Type, "GLint")] int widthout, [NativeName(NativeNameType.Param, "heightout")] [NativeName(NativeNameType.Type, "GLint")] int heightout, [NativeName(NativeNameType.Param, "typeout")] [NativeName(NativeNameType.Type, "GLenum")] uint typeout, [NativeName(NativeNameType.Param, "dataout")] [NativeName(NativeNameType.Type, "void*")] void* dataout); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluScaleImage")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluScaleImage([NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "widthin")] [NativeName(NativeNameType.Type, "GLint")] int widthin, [NativeName(NativeNameType.Param, "heightin")] [NativeName(NativeNameType.Type, "GLint")] int heightin, [NativeName(NativeNameType.Param, "typein")] [NativeName(NativeNameType.Type, "GLenum")] uint typein, [NativeName(NativeNameType.Param, "datain")] [NativeName(NativeNameType.Type, "const void*")] void* datain, [NativeName(NativeNameType.Param, "widthout")] [NativeName(NativeNameType.Type, "GLint")] int widthout, [NativeName(NativeNameType.Param, "heightout")] [NativeName(NativeNameType.Type, "GLint")] int heightout, [NativeName(NativeNameType.Param, "typeout")] [NativeName(NativeNameType.Type, "GLenum")] uint typeout, [NativeName(NativeNameType.Param, "dataout")] [NativeName(NativeNameType.Type, "void*")] void* dataout) + { + int ret = GluScaleImageNative(format, widthin, heightin, typein, datain, widthout, heightout, typeout, dataout); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluBuild1DMipmaps")] + [return: NativeName(NativeNameType.Type, "int")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluBuild1DMipmaps")] + internal static extern int GluBuild1DMipmapsNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "GLint")] int components, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLint")] int width, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluBuild1DMipmaps")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluBuild1DMipmaps([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "GLint")] int components, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLint")] int width, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data) + { + int ret = GluBuild1DMipmapsNative(target, components, width, format, type, data); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluBuild2DMipmaps")] + [return: NativeName(NativeNameType.Type, "int")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluBuild2DMipmaps")] + internal static extern int GluBuild2DMipmapsNative([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "GLint")] int components, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLint")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLint")] int height, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluBuild2DMipmaps")] + [return: NativeName(NativeNameType.Type, "int")] + public static int GluBuild2DMipmaps([NativeName(NativeNameType.Param, "target")] [NativeName(NativeNameType.Type, "GLenum")] uint target, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "GLint")] int components, [NativeName(NativeNameType.Param, "width")] [NativeName(NativeNameType.Type, "GLint")] int width, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLint")] int height, [NativeName(NativeNameType.Param, "format")] [NativeName(NativeNameType.Type, "GLenum")] uint format, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "const void*")] void* data) + { + int ret = GluBuild2DMipmapsNative(target, components, width, height, format, type, data); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluNewQuadric")] + [return: NativeName(NativeNameType.Type, "GLUquadric*")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluNewQuadric")] + internal static extern void* GluNewQuadricNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNewQuadric")] + [return: NativeName(NativeNameType.Type, "GLUquadric*")] + public static void* GluNewQuadric() + { + void* ret = GluNewQuadricNative(); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluDeleteQuadric")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluDeleteQuadric")] + internal static extern void GluDeleteQuadricNative([NativeName(NativeNameType.Param, "state")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* state); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluDeleteQuadric")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluDeleteQuadric([NativeName(NativeNameType.Param, "state")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* state) + { + GluDeleteQuadricNative(state); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluQuadricNormals")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluQuadricNormals")] + internal static extern void GluQuadricNormalsNative([NativeName(NativeNameType.Param, "quadObject")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* quadObject, [NativeName(NativeNameType.Param, "normals")] [NativeName(NativeNameType.Type, "GLenum")] uint normals); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluQuadricNormals")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluQuadricNormals([NativeName(NativeNameType.Param, "quadObject")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* quadObject, [NativeName(NativeNameType.Param, "normals")] [NativeName(NativeNameType.Type, "GLenum")] uint normals) + { + GluQuadricNormalsNative(quadObject, normals); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluQuadricTexture")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluQuadricTexture")] + internal static extern void GluQuadricTextureNative([NativeName(NativeNameType.Param, "quadObject")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* quadObject, [NativeName(NativeNameType.Param, "textureCoords")] [NativeName(NativeNameType.Type, "GLboolean")] byte textureCoords); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluQuadricTexture")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluQuadricTexture([NativeName(NativeNameType.Param, "quadObject")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* quadObject, [NativeName(NativeNameType.Param, "textureCoords")] [NativeName(NativeNameType.Type, "GLboolean")] byte textureCoords) + { + GluQuadricTextureNative(quadObject, textureCoords); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluQuadricOrientation")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluQuadricOrientation")] + internal static extern void GluQuadricOrientationNative([NativeName(NativeNameType.Param, "quadObject")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* quadObject, [NativeName(NativeNameType.Param, "orientation")] [NativeName(NativeNameType.Type, "GLenum")] uint orientation); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluQuadricOrientation")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluQuadricOrientation([NativeName(NativeNameType.Param, "quadObject")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* quadObject, [NativeName(NativeNameType.Param, "orientation")] [NativeName(NativeNameType.Type, "GLenum")] uint orientation) + { + GluQuadricOrientationNative(quadObject, orientation); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluQuadricDrawStyle")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluQuadricDrawStyle")] + internal static extern void GluQuadricDrawStyleNative([NativeName(NativeNameType.Param, "quadObject")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* quadObject, [NativeName(NativeNameType.Param, "drawStyle")] [NativeName(NativeNameType.Type, "GLenum")] uint drawStyle); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluQuadricDrawStyle")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluQuadricDrawStyle([NativeName(NativeNameType.Param, "quadObject")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* quadObject, [NativeName(NativeNameType.Param, "drawStyle")] [NativeName(NativeNameType.Type, "GLenum")] uint drawStyle) + { + GluQuadricDrawStyleNative(quadObject, drawStyle); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluCylinder")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluCylinder")] + internal static extern void GluCylinderNative([NativeName(NativeNameType.Param, "qobj")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* qobj, [NativeName(NativeNameType.Param, "baseRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double baseRadius, [NativeName(NativeNameType.Param, "topRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double topRadius, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLdouble")] double height, [NativeName(NativeNameType.Param, "slices")] [NativeName(NativeNameType.Type, "GLint")] int slices, [NativeName(NativeNameType.Param, "stacks")] [NativeName(NativeNameType.Type, "GLint")] int stacks); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluCylinder")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluCylinder([NativeName(NativeNameType.Param, "qobj")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* qobj, [NativeName(NativeNameType.Param, "baseRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double baseRadius, [NativeName(NativeNameType.Param, "topRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double topRadius, [NativeName(NativeNameType.Param, "height")] [NativeName(NativeNameType.Type, "GLdouble")] double height, [NativeName(NativeNameType.Param, "slices")] [NativeName(NativeNameType.Type, "GLint")] int slices, [NativeName(NativeNameType.Param, "stacks")] [NativeName(NativeNameType.Type, "GLint")] int stacks) + { + GluCylinderNative(qobj, baseRadius, topRadius, height, slices, stacks); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluDisk")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluDisk")] + internal static extern void GluDiskNative([NativeName(NativeNameType.Param, "qobj")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* qobj, [NativeName(NativeNameType.Param, "innerRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double innerRadius, [NativeName(NativeNameType.Param, "outerRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double outerRadius, [NativeName(NativeNameType.Param, "slices")] [NativeName(NativeNameType.Type, "GLint")] int slices, [NativeName(NativeNameType.Param, "loops")] [NativeName(NativeNameType.Type, "GLint")] int loops); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluDisk")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluDisk([NativeName(NativeNameType.Param, "qobj")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* qobj, [NativeName(NativeNameType.Param, "innerRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double innerRadius, [NativeName(NativeNameType.Param, "outerRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double outerRadius, [NativeName(NativeNameType.Param, "slices")] [NativeName(NativeNameType.Type, "GLint")] int slices, [NativeName(NativeNameType.Param, "loops")] [NativeName(NativeNameType.Type, "GLint")] int loops) + { + GluDiskNative(qobj, innerRadius, outerRadius, slices, loops); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluPartialDisk")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluPartialDisk")] + internal static extern void GluPartialDiskNative([NativeName(NativeNameType.Param, "qobj")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* qobj, [NativeName(NativeNameType.Param, "innerRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double innerRadius, [NativeName(NativeNameType.Param, "outerRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double outerRadius, [NativeName(NativeNameType.Param, "slices")] [NativeName(NativeNameType.Type, "GLint")] int slices, [NativeName(NativeNameType.Param, "loops")] [NativeName(NativeNameType.Type, "GLint")] int loops, [NativeName(NativeNameType.Param, "startAngle")] [NativeName(NativeNameType.Type, "GLdouble")] double startAngle, [NativeName(NativeNameType.Param, "sweepAngle")] [NativeName(NativeNameType.Type, "GLdouble")] double sweepAngle); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluPartialDisk")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluPartialDisk([NativeName(NativeNameType.Param, "qobj")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* qobj, [NativeName(NativeNameType.Param, "innerRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double innerRadius, [NativeName(NativeNameType.Param, "outerRadius")] [NativeName(NativeNameType.Type, "GLdouble")] double outerRadius, [NativeName(NativeNameType.Param, "slices")] [NativeName(NativeNameType.Type, "GLint")] int slices, [NativeName(NativeNameType.Param, "loops")] [NativeName(NativeNameType.Type, "GLint")] int loops, [NativeName(NativeNameType.Param, "startAngle")] [NativeName(NativeNameType.Type, "GLdouble")] double startAngle, [NativeName(NativeNameType.Param, "sweepAngle")] [NativeName(NativeNameType.Type, "GLdouble")] double sweepAngle) + { + GluPartialDiskNative(qobj, innerRadius, outerRadius, slices, loops, startAngle, sweepAngle); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluSphere")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluSphere")] + internal static extern void GluSphereNative([NativeName(NativeNameType.Param, "qobj")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* qobj, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "GLdouble")] double radius, [NativeName(NativeNameType.Param, "slices")] [NativeName(NativeNameType.Type, "GLint")] int slices, [NativeName(NativeNameType.Param, "stacks")] [NativeName(NativeNameType.Type, "GLint")] int stacks); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluSphere")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluSphere([NativeName(NativeNameType.Param, "qobj")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* qobj, [NativeName(NativeNameType.Param, "radius")] [NativeName(NativeNameType.Type, "GLdouble")] double radius, [NativeName(NativeNameType.Param, "slices")] [NativeName(NativeNameType.Type, "GLint")] int slices, [NativeName(NativeNameType.Param, "stacks")] [NativeName(NativeNameType.Type, "GLint")] int stacks) + { + GluSphereNative(qobj, radius, slices, stacks); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluQuadricCallback")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluQuadricCallback")] + internal static extern void GluQuadricCallbackNative([NativeName(NativeNameType.Param, "qobj")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* qobj, [NativeName(NativeNameType.Param, "which")] [NativeName(NativeNameType.Type, "GLenum")] uint which, [NativeName(NativeNameType.Param, "fn")] [NativeName(NativeNameType.Type, "void (*)(GLUquadric* qobj, GLenum which, void (*)()* fn)*")] delegate*, void> fn); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluQuadricCallback")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluQuadricCallback([NativeName(NativeNameType.Param, "qobj")] [NativeName(NativeNameType.Type, "GLUquadric*")] void* qobj, [NativeName(NativeNameType.Param, "which")] [NativeName(NativeNameType.Type, "GLenum")] uint which, [NativeName(NativeNameType.Param, "fn")] [NativeName(NativeNameType.Type, "void (*)(GLUquadric* qobj, GLenum which, void (*)()* fn)*")] delegate*, void> fn) + { + GluQuadricCallbackNative(qobj, which, fn); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluNewTess")] + [return: NativeName(NativeNameType.Type, "GLUtesselator*")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluNewTess")] + internal static extern void* GluNewTessNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNewTess")] + [return: NativeName(NativeNameType.Type, "GLUtesselator*")] + public static void* GluNewTess() + { + void* ret = GluNewTessNative(); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluDeleteTess")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluDeleteTess")] + internal static extern void GluDeleteTessNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluDeleteTess")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluDeleteTess([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess) + { + GluDeleteTessNative(tess); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluTessBeginPolygon")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluTessBeginPolygon")] + internal static extern void GluTessBeginPolygonNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "polygon_data")] [NativeName(NativeNameType.Type, "void*")] void* polygonData); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluTessBeginPolygon")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluTessBeginPolygon([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "polygon_data")] [NativeName(NativeNameType.Type, "void*")] void* polygonData) + { + GluTessBeginPolygonNative(tess, polygonData); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluTessBeginContour")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluTessBeginContour")] + internal static extern void GluTessBeginContourNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluTessBeginContour")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluTessBeginContour([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess) + { + GluTessBeginContourNative(tess); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluTessVertex")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluTessVertex")] + internal static extern void GluTessVertexNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "coords")] [NativeName(NativeNameType.Type, "GLdouble[3]")] double* coords, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluTessVertex")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluTessVertex([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "coords")] [NativeName(NativeNameType.Type, "GLdouble[3]")] double* coords, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data) + { + GluTessVertexNative(tess, coords, data); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluTessVertex")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluTessVertex([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "coords")] [NativeName(NativeNameType.Type, "GLdouble[3]")] ref double coords, [NativeName(NativeNameType.Param, "data")] [NativeName(NativeNameType.Type, "void*")] void* data) + { + fixed (double* pcoords = &coords) + { + GluTessVertexNative(tess, (double*)pcoords, data); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluTessEndContour")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluTessEndContour")] + internal static extern void GluTessEndContourNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluTessEndContour")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluTessEndContour([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess) + { + GluTessEndContourNative(tess); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluTessEndPolygon")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluTessEndPolygon")] + internal static extern void GluTessEndPolygonNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluTessEndPolygon")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluTessEndPolygon([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess) + { + GluTessEndPolygonNative(tess); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluTessProperty")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluTessProperty")] + internal static extern void GluTessPropertyNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "which")] [NativeName(NativeNameType.Type, "GLenum")] uint which, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLdouble")] double value); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluTessProperty")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluTessProperty([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "which")] [NativeName(NativeNameType.Type, "GLenum")] uint which, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLdouble")] double value) + { + GluTessPropertyNative(tess, which, value); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluTessNormal")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluTessNormal")] + internal static extern void GluTessNormalNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluTessNormal")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluTessNormal([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "GLdouble")] double x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "GLdouble")] double y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "GLdouble")] double z) + { + GluTessNormalNative(tess, x, y, z); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluTessCallback")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluTessCallback")] + internal static extern void GluTessCallbackNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "which")] [NativeName(NativeNameType.Type, "GLenum")] uint which, [NativeName(NativeNameType.Param, "fn")] [NativeName(NativeNameType.Type, "void (*)(GLUtesselator* tess, GLenum which, void (*)()* fn)*")] delegate*, void> fn); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluTessCallback")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluTessCallback([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "which")] [NativeName(NativeNameType.Type, "GLenum")] uint which, [NativeName(NativeNameType.Param, "fn")] [NativeName(NativeNameType.Type, "void (*)(GLUtesselator* tess, GLenum which, void (*)()* fn)*")] delegate*, void> fn) + { + GluTessCallbackNative(tess, which, fn); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluGetTessProperty")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluGetTessProperty")] + internal static extern void GluGetTessPropertyNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "which")] [NativeName(NativeNameType.Type, "GLenum")] uint which, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLdouble*")] double* value); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluGetTessProperty")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluGetTessProperty([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "which")] [NativeName(NativeNameType.Type, "GLenum")] uint which, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLdouble*")] double* value) + { + GluGetTessPropertyNative(tess, which, value); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluGetTessProperty")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluGetTessProperty([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "which")] [NativeName(NativeNameType.Type, "GLenum")] uint which, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLdouble*")] ref double value) + { + fixed (double* pvalue = &value) + { + GluGetTessPropertyNative(tess, which, (double*)pvalue); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluNewNurbsRenderer")] + [return: NativeName(NativeNameType.Type, "GLUnurbs*")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluNewNurbsRenderer")] + internal static extern void* GluNewNurbsRendererNative(); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNewNurbsRenderer")] + [return: NativeName(NativeNameType.Type, "GLUnurbs*")] + public static void* GluNewNurbsRenderer() + { + void* ret = GluNewNurbsRendererNative(); + return ret; + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluDeleteNurbsRenderer")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluDeleteNurbsRenderer")] + internal static extern void GluDeleteNurbsRendererNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluDeleteNurbsRenderer")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluDeleteNurbsRenderer([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj) + { + GluDeleteNurbsRendererNative(nobj); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluBeginSurface")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluBeginSurface")] + internal static extern void GluBeginSurfaceNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluBeginSurface")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluBeginSurface([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj) + { + GluBeginSurfaceNative(nobj); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluBeginCurve")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluBeginCurve")] + internal static extern void GluBeginCurveNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluBeginCurve")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluBeginCurve([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj) + { + GluBeginCurveNative(nobj); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluEndCurve")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluEndCurve")] + internal static extern void GluEndCurveNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluEndCurve")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluEndCurve([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj) + { + GluEndCurveNative(nobj); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluEndSurface")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluEndSurface")] + internal static extern void GluEndSurfaceNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluEndSurface")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluEndSurface([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj) + { + GluEndSurfaceNative(nobj); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluBeginTrim")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluBeginTrim")] + internal static extern void GluBeginTrimNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluBeginTrim")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluBeginTrim([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj) + { + GluBeginTrimNative(nobj); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluEndTrim")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluEndTrim")] + internal static extern void GluEndTrimNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluEndTrim")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluEndTrim([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj) + { + GluEndTrimNative(nobj); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluPwlCurve")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluPwlCurve")] + internal static extern void GluPwlCurveNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLint")] int count, [NativeName(NativeNameType.Param, "array")] [NativeName(NativeNameType.Type, "GLfloat*")] float* array, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluPwlCurve")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluPwlCurve([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLint")] int count, [NativeName(NativeNameType.Param, "array")] [NativeName(NativeNameType.Type, "GLfloat*")] float* array, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + GluPwlCurveNative(nobj, count, array, stride, type); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluPwlCurve")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluPwlCurve([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "GLint")] int count, [NativeName(NativeNameType.Param, "array")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float array, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + fixed (float* parray = &array) + { + GluPwlCurveNative(nobj, count, (float*)parray, stride, type); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluNurbsCurve")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluNurbsCurve")] + internal static extern void GluNurbsCurveNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "nknots")] [NativeName(NativeNameType.Type, "GLint")] int nknots, [NativeName(NativeNameType.Param, "knot")] [NativeName(NativeNameType.Type, "GLfloat*")] float* knot, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] float* ctlarray, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "GLint")] int order, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsCurve")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsCurve([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "nknots")] [NativeName(NativeNameType.Type, "GLint")] int nknots, [NativeName(NativeNameType.Param, "knot")] [NativeName(NativeNameType.Type, "GLfloat*")] float* knot, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] float* ctlarray, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "GLint")] int order, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + GluNurbsCurveNative(nobj, nknots, knot, stride, ctlarray, order, type); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsCurve")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsCurve([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "nknots")] [NativeName(NativeNameType.Type, "GLint")] int nknots, [NativeName(NativeNameType.Param, "knot")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float knot, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] float* ctlarray, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "GLint")] int order, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + fixed (float* pknot = &knot) + { + GluNurbsCurveNative(nobj, nknots, (float*)pknot, stride, ctlarray, order, type); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsCurve")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsCurve([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "nknots")] [NativeName(NativeNameType.Type, "GLint")] int nknots, [NativeName(NativeNameType.Param, "knot")] [NativeName(NativeNameType.Type, "GLfloat*")] float* knot, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float ctlarray, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "GLint")] int order, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + fixed (float* pctlarray = &ctlarray) + { + GluNurbsCurveNative(nobj, nknots, knot, stride, (float*)pctlarray, order, type); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsCurve")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsCurve([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "nknots")] [NativeName(NativeNameType.Type, "GLint")] int nknots, [NativeName(NativeNameType.Param, "knot")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float knot, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "GLint")] int stride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float ctlarray, [NativeName(NativeNameType.Param, "order")] [NativeName(NativeNameType.Type, "GLint")] int order, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + fixed (float* pknot = &knot) + { + fixed (float* pctlarray = &ctlarray) + { + GluNurbsCurveNative(nobj, nknots, (float*)pknot, stride, (float*)pctlarray, order, type); + } + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluNurbsSurface")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluNurbsSurface")] + internal static extern void GluNurbsSurfaceNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "sknot_count")] [NativeName(NativeNameType.Type, "GLint")] int sknotCount, [NativeName(NativeNameType.Param, "sknot")] [NativeName(NativeNameType.Type, "float*")] float* sknot, [NativeName(NativeNameType.Param, "tknot_count")] [NativeName(NativeNameType.Type, "GLint")] int tknotCount, [NativeName(NativeNameType.Param, "tknot")] [NativeName(NativeNameType.Type, "GLfloat*")] float* tknot, [NativeName(NativeNameType.Param, "s_stride")] [NativeName(NativeNameType.Type, "GLint")] int sStride, [NativeName(NativeNameType.Param, "t_stride")] [NativeName(NativeNameType.Type, "GLint")] int tStride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] float* ctlarray, [NativeName(NativeNameType.Param, "sorder")] [NativeName(NativeNameType.Type, "GLint")] int sorder, [NativeName(NativeNameType.Param, "torder")] [NativeName(NativeNameType.Type, "GLint")] int torder, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsSurface")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsSurface([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "sknot_count")] [NativeName(NativeNameType.Type, "GLint")] int sknotCount, [NativeName(NativeNameType.Param, "sknot")] [NativeName(NativeNameType.Type, "float*")] float* sknot, [NativeName(NativeNameType.Param, "tknot_count")] [NativeName(NativeNameType.Type, "GLint")] int tknotCount, [NativeName(NativeNameType.Param, "tknot")] [NativeName(NativeNameType.Type, "GLfloat*")] float* tknot, [NativeName(NativeNameType.Param, "s_stride")] [NativeName(NativeNameType.Type, "GLint")] int sStride, [NativeName(NativeNameType.Param, "t_stride")] [NativeName(NativeNameType.Type, "GLint")] int tStride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] float* ctlarray, [NativeName(NativeNameType.Param, "sorder")] [NativeName(NativeNameType.Type, "GLint")] int sorder, [NativeName(NativeNameType.Param, "torder")] [NativeName(NativeNameType.Type, "GLint")] int torder, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + GluNurbsSurfaceNative(nobj, sknotCount, sknot, tknotCount, tknot, sStride, tStride, ctlarray, sorder, torder, type); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsSurface")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsSurface([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "sknot_count")] [NativeName(NativeNameType.Type, "GLint")] int sknotCount, [NativeName(NativeNameType.Param, "sknot")] [NativeName(NativeNameType.Type, "float*")] ref float sknot, [NativeName(NativeNameType.Param, "tknot_count")] [NativeName(NativeNameType.Type, "GLint")] int tknotCount, [NativeName(NativeNameType.Param, "tknot")] [NativeName(NativeNameType.Type, "GLfloat*")] float* tknot, [NativeName(NativeNameType.Param, "s_stride")] [NativeName(NativeNameType.Type, "GLint")] int sStride, [NativeName(NativeNameType.Param, "t_stride")] [NativeName(NativeNameType.Type, "GLint")] int tStride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] float* ctlarray, [NativeName(NativeNameType.Param, "sorder")] [NativeName(NativeNameType.Type, "GLint")] int sorder, [NativeName(NativeNameType.Param, "torder")] [NativeName(NativeNameType.Type, "GLint")] int torder, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + fixed (float* psknot = &sknot) + { + GluNurbsSurfaceNative(nobj, sknotCount, (float*)psknot, tknotCount, tknot, sStride, tStride, ctlarray, sorder, torder, type); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsSurface")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsSurface([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "sknot_count")] [NativeName(NativeNameType.Type, "GLint")] int sknotCount, [NativeName(NativeNameType.Param, "sknot")] [NativeName(NativeNameType.Type, "float*")] float* sknot, [NativeName(NativeNameType.Param, "tknot_count")] [NativeName(NativeNameType.Type, "GLint")] int tknotCount, [NativeName(NativeNameType.Param, "tknot")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float tknot, [NativeName(NativeNameType.Param, "s_stride")] [NativeName(NativeNameType.Type, "GLint")] int sStride, [NativeName(NativeNameType.Param, "t_stride")] [NativeName(NativeNameType.Type, "GLint")] int tStride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] float* ctlarray, [NativeName(NativeNameType.Param, "sorder")] [NativeName(NativeNameType.Type, "GLint")] int sorder, [NativeName(NativeNameType.Param, "torder")] [NativeName(NativeNameType.Type, "GLint")] int torder, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + fixed (float* ptknot = &tknot) + { + GluNurbsSurfaceNative(nobj, sknotCount, sknot, tknotCount, (float*)ptknot, sStride, tStride, ctlarray, sorder, torder, type); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsSurface")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsSurface([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "sknot_count")] [NativeName(NativeNameType.Type, "GLint")] int sknotCount, [NativeName(NativeNameType.Param, "sknot")] [NativeName(NativeNameType.Type, "float*")] ref float sknot, [NativeName(NativeNameType.Param, "tknot_count")] [NativeName(NativeNameType.Type, "GLint")] int tknotCount, [NativeName(NativeNameType.Param, "tknot")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float tknot, [NativeName(NativeNameType.Param, "s_stride")] [NativeName(NativeNameType.Type, "GLint")] int sStride, [NativeName(NativeNameType.Param, "t_stride")] [NativeName(NativeNameType.Type, "GLint")] int tStride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] float* ctlarray, [NativeName(NativeNameType.Param, "sorder")] [NativeName(NativeNameType.Type, "GLint")] int sorder, [NativeName(NativeNameType.Param, "torder")] [NativeName(NativeNameType.Type, "GLint")] int torder, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + fixed (float* psknot = &sknot) + { + fixed (float* ptknot = &tknot) + { + GluNurbsSurfaceNative(nobj, sknotCount, (float*)psknot, tknotCount, (float*)ptknot, sStride, tStride, ctlarray, sorder, torder, type); + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsSurface")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsSurface([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "sknot_count")] [NativeName(NativeNameType.Type, "GLint")] int sknotCount, [NativeName(NativeNameType.Param, "sknot")] [NativeName(NativeNameType.Type, "float*")] float* sknot, [NativeName(NativeNameType.Param, "tknot_count")] [NativeName(NativeNameType.Type, "GLint")] int tknotCount, [NativeName(NativeNameType.Param, "tknot")] [NativeName(NativeNameType.Type, "GLfloat*")] float* tknot, [NativeName(NativeNameType.Param, "s_stride")] [NativeName(NativeNameType.Type, "GLint")] int sStride, [NativeName(NativeNameType.Param, "t_stride")] [NativeName(NativeNameType.Type, "GLint")] int tStride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float ctlarray, [NativeName(NativeNameType.Param, "sorder")] [NativeName(NativeNameType.Type, "GLint")] int sorder, [NativeName(NativeNameType.Param, "torder")] [NativeName(NativeNameType.Type, "GLint")] int torder, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + fixed (float* pctlarray = &ctlarray) + { + GluNurbsSurfaceNative(nobj, sknotCount, sknot, tknotCount, tknot, sStride, tStride, (float*)pctlarray, sorder, torder, type); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsSurface")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsSurface([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "sknot_count")] [NativeName(NativeNameType.Type, "GLint")] int sknotCount, [NativeName(NativeNameType.Param, "sknot")] [NativeName(NativeNameType.Type, "float*")] ref float sknot, [NativeName(NativeNameType.Param, "tknot_count")] [NativeName(NativeNameType.Type, "GLint")] int tknotCount, [NativeName(NativeNameType.Param, "tknot")] [NativeName(NativeNameType.Type, "GLfloat*")] float* tknot, [NativeName(NativeNameType.Param, "s_stride")] [NativeName(NativeNameType.Type, "GLint")] int sStride, [NativeName(NativeNameType.Param, "t_stride")] [NativeName(NativeNameType.Type, "GLint")] int tStride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float ctlarray, [NativeName(NativeNameType.Param, "sorder")] [NativeName(NativeNameType.Type, "GLint")] int sorder, [NativeName(NativeNameType.Param, "torder")] [NativeName(NativeNameType.Type, "GLint")] int torder, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + fixed (float* psknot = &sknot) + { + fixed (float* pctlarray = &ctlarray) + { + GluNurbsSurfaceNative(nobj, sknotCount, (float*)psknot, tknotCount, tknot, sStride, tStride, (float*)pctlarray, sorder, torder, type); + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsSurface")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsSurface([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "sknot_count")] [NativeName(NativeNameType.Type, "GLint")] int sknotCount, [NativeName(NativeNameType.Param, "sknot")] [NativeName(NativeNameType.Type, "float*")] float* sknot, [NativeName(NativeNameType.Param, "tknot_count")] [NativeName(NativeNameType.Type, "GLint")] int tknotCount, [NativeName(NativeNameType.Param, "tknot")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float tknot, [NativeName(NativeNameType.Param, "s_stride")] [NativeName(NativeNameType.Type, "GLint")] int sStride, [NativeName(NativeNameType.Param, "t_stride")] [NativeName(NativeNameType.Type, "GLint")] int tStride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float ctlarray, [NativeName(NativeNameType.Param, "sorder")] [NativeName(NativeNameType.Type, "GLint")] int sorder, [NativeName(NativeNameType.Param, "torder")] [NativeName(NativeNameType.Type, "GLint")] int torder, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + fixed (float* ptknot = &tknot) + { + fixed (float* pctlarray = &ctlarray) + { + GluNurbsSurfaceNative(nobj, sknotCount, sknot, tknotCount, (float*)ptknot, sStride, tStride, (float*)pctlarray, sorder, torder, type); + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsSurface")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsSurface([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "sknot_count")] [NativeName(NativeNameType.Type, "GLint")] int sknotCount, [NativeName(NativeNameType.Param, "sknot")] [NativeName(NativeNameType.Type, "float*")] ref float sknot, [NativeName(NativeNameType.Param, "tknot_count")] [NativeName(NativeNameType.Type, "GLint")] int tknotCount, [NativeName(NativeNameType.Param, "tknot")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float tknot, [NativeName(NativeNameType.Param, "s_stride")] [NativeName(NativeNameType.Type, "GLint")] int sStride, [NativeName(NativeNameType.Param, "t_stride")] [NativeName(NativeNameType.Type, "GLint")] int tStride, [NativeName(NativeNameType.Param, "ctlarray")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float ctlarray, [NativeName(NativeNameType.Param, "sorder")] [NativeName(NativeNameType.Type, "GLint")] int sorder, [NativeName(NativeNameType.Param, "torder")] [NativeName(NativeNameType.Type, "GLint")] int torder, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + fixed (float* psknot = &sknot) + { + fixed (float* ptknot = &tknot) + { + fixed (float* pctlarray = &ctlarray) + { + GluNurbsSurfaceNative(nobj, sknotCount, (float*)psknot, tknotCount, (float*)ptknot, sStride, tStride, (float*)pctlarray, sorder, torder, type); + } + } + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluLoadSamplingMatrices")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluLoadSamplingMatrices")] + internal static extern void GluLoadSamplingMatricesNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] float* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] float* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluLoadSamplingMatrices")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluLoadSamplingMatrices([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] float* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] float* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport) + { + GluLoadSamplingMatricesNative(nobj, modelMatrix, projMatrix, viewport); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluLoadSamplingMatrices")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluLoadSamplingMatrices([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] ref float modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] float* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport) + { + fixed (float* pmodelMatrix = &modelMatrix) + { + GluLoadSamplingMatricesNative(nobj, (float*)pmodelMatrix, projMatrix, viewport); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluLoadSamplingMatrices")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluLoadSamplingMatrices([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] float* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] ref float projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport) + { + fixed (float* pprojMatrix = &projMatrix) + { + GluLoadSamplingMatricesNative(nobj, modelMatrix, (float*)pprojMatrix, viewport); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluLoadSamplingMatrices")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluLoadSamplingMatrices([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] ref float modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] ref float projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] int* viewport) + { + fixed (float* pmodelMatrix = &modelMatrix) + { + fixed (float* pprojMatrix = &projMatrix) + { + GluLoadSamplingMatricesNative(nobj, (float*)pmodelMatrix, (float*)pprojMatrix, viewport); + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluLoadSamplingMatrices")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluLoadSamplingMatrices([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] float* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] float* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport) + { + fixed (int* pviewport = &viewport) + { + GluLoadSamplingMatricesNative(nobj, modelMatrix, projMatrix, (int*)pviewport); + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluLoadSamplingMatrices")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluLoadSamplingMatrices([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] ref float modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] float* projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport) + { + fixed (float* pmodelMatrix = &modelMatrix) + { + fixed (int* pviewport = &viewport) + { + GluLoadSamplingMatricesNative(nobj, (float*)pmodelMatrix, projMatrix, (int*)pviewport); + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluLoadSamplingMatrices")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluLoadSamplingMatrices([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] float* modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] ref float projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport) + { + fixed (float* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + GluLoadSamplingMatricesNative(nobj, modelMatrix, (float*)pprojMatrix, (int*)pviewport); + } + } + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluLoadSamplingMatrices")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluLoadSamplingMatrices([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "modelMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] ref float modelMatrix, [NativeName(NativeNameType.Param, "projMatrix")] [NativeName(NativeNameType.Type, "const GLfloat[16]")] ref float projMatrix, [NativeName(NativeNameType.Param, "viewport")] [NativeName(NativeNameType.Type, "const GLint[4]")] ref int viewport) + { + fixed (float* pmodelMatrix = &modelMatrix) + { + fixed (float* pprojMatrix = &projMatrix) + { + fixed (int* pviewport = &viewport) + { + GluLoadSamplingMatricesNative(nobj, (float*)pmodelMatrix, (float*)pprojMatrix, (int*)pviewport); + } + } + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluNurbsProperty")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluNurbsProperty")] + internal static extern void GluNurbsPropertyNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "property")] [NativeName(NativeNameType.Type, "GLenum")] uint property, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLfloat")] float value); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsProperty")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsProperty([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "property")] [NativeName(NativeNameType.Type, "GLenum")] uint property, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLfloat")] float value) + { + GluNurbsPropertyNative(nobj, property, value); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluGetNurbsProperty")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluGetNurbsProperty")] + internal static extern void GluGetNurbsPropertyNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "property")] [NativeName(NativeNameType.Type, "GLenum")] uint property, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLfloat*")] float* value); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluGetNurbsProperty")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluGetNurbsProperty([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "property")] [NativeName(NativeNameType.Type, "GLenum")] uint property, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLfloat*")] float* value) + { + GluGetNurbsPropertyNative(nobj, property, value); + } + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluGetNurbsProperty")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluGetNurbsProperty([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "property")] [NativeName(NativeNameType.Type, "GLenum")] uint property, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "GLfloat*")] ref float value) + { + fixed (float* pvalue = &value) + { + GluGetNurbsPropertyNative(nobj, property, (float*)pvalue); + } + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluNurbsCallback")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluNurbsCallback")] + internal static extern void GluNurbsCallbackNative([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "which")] [NativeName(NativeNameType.Type, "GLenum")] uint which, [NativeName(NativeNameType.Param, "fn")] [NativeName(NativeNameType.Type, "void (*)(GLUnurbs* nobj, GLenum which, void (*)()* fn)*")] delegate*, void> fn); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNurbsCallback")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNurbsCallback([NativeName(NativeNameType.Param, "nobj")] [NativeName(NativeNameType.Type, "GLUnurbs*")] void* nobj, [NativeName(NativeNameType.Param, "which")] [NativeName(NativeNameType.Type, "GLenum")] uint which, [NativeName(NativeNameType.Param, "fn")] [NativeName(NativeNameType.Type, "void (*)(GLUnurbs* nobj, GLenum which, void (*)()* fn)*")] delegate*, void> fn) + { + GluNurbsCallbackNative(nobj, which, fn); + } + + /// + /// ** Backwards compatibility for old tesselator ***
+ ///
+ [NativeName(NativeNameType.Func, "gluBeginPolygon")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluBeginPolygon")] + internal static extern void GluBeginPolygonNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess); + + /// /// ** Backwards compatibility for old tesselator ***
///
[NativeName(NativeNameType.Func, "gluBeginPolygon")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluBeginPolygon([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess) + { + GluBeginPolygonNative(tess); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluNextContour")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluNextContour")] + internal static extern void GluNextContourNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluNextContour")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluNextContour([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "GLenum")] uint type) + { + GluNextContourNative(tess, type); + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Func, "gluEndPolygon")] + [return: NativeName(NativeNameType.Type, "void")] + [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "gluEndPolygon")] + internal static extern void GluEndPolygonNative([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess); + + /// /// To be documented. /// [NativeName(NativeNameType.Func, "gluEndPolygon")] + [return: NativeName(NativeNameType.Type, "void")] + public static void GluEndPolygon([NativeName(NativeNameType.Param, "tess")] [NativeName(NativeNameType.Type, "GLUtesselator*")] void* tess) + { + GluEndPolygonNative(tess); + } + + } +} diff --git a/Hexa.NET.OpenGL/Generated/Handles.cs b/Hexa.NET.OpenGL/Generated/Handles.cs new file mode 100644 index 0000000..b0f124b --- /dev/null +++ b/Hexa.NET.OpenGL/Generated/Handles.cs @@ -0,0 +1,17 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL +{ +} diff --git a/Hexa.NET.OpenGL/Generated/Structures.cs b/Hexa.NET.OpenGL/Generated/Structures.cs new file mode 100644 index 0000000..149633e --- /dev/null +++ b/Hexa.NET.OpenGL/Generated/Structures.cs @@ -0,0 +1,18 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.OpenGL +{ +} diff --git a/Hexa.NET.OpenGL/Hexa.NET.OpenGL.csproj b/Hexa.NET.OpenGL/Hexa.NET.OpenGL.csproj new file mode 100644 index 0000000..affcb65 --- /dev/null +++ b/Hexa.NET.OpenGL/Hexa.NET.OpenGL.csproj @@ -0,0 +1,18 @@ + + + + net8.0 + enable + enable + true + + true + true + true + true + + + + + + \ No newline at end of file diff --git a/Hexa.NET.PhysX/Generated/Constants.cs b/Hexa.NET.PhysX/Generated/Constants.cs new file mode 100644 index 0000000..f7eea41 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Constants.cs @@ -0,0 +1,155 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + public const int NDEBUG = 1; + + public const int _MSC_VER = 1930; + + public const int _WIN32 = 1; + + public const int _M_AMD64 = 100; + + public const int _M_X64 = 100; + + public const int _WIN64 = 1; + + public const int PX_ENABLE_FEATURES_UNDER_CONSTRUCTION = 0; + + public const int PX_VC = 16; + + public const int PX_CLANG = 1; + + public const int PX_WIN64 = 1; + + public const int PX_X64 = 1; + + public const int PX_SSE2 = 1; + + public const int PX_GCC = 0; + + public const int PX_WIN32 = 0; + + public const int PX_LINUX = 0; + + public const int PX_OSX = 0; + + public const int PX_SWITCH = 0; + + public const int PX_X86 = 0; + + public const int PX_A64 = 0; + + public const int PX_ARM = 0; + + public const int PX_PPC = 0; + + public const int PX_NEON = 0; + + public const int PX_VMX = 0; + + public const int PX_DEBUG = 0; + + public const int PX_CHECKED = 0; + + public const int PX_PROFILE = 0; + + public const int PX_DEBUG_CRT = 0; + + public const int PX_NVTX = 0; + + public const int PX_DOXYGEN = 0; + + public const int PX_EMSCRIPTEN = 0; + + public const int PX_LIBCPP = 1; + + public const int PX_ENABLE_ASSERTS = 0; + + public const int PX_OFFSETOF_BASE = 0x100; + + public const string PX_PRIu64 = "I64u"; + + public const uint PX_SIGN_BITMASK = 0x80000000; + + public const float PX_MAX_F32 = 3.4028234663852885981170418348452e+38F; + + public const int PX_PHYSICS_VERSION_MAJOR = 5; + + public const int PX_PHYSICS_VERSION_MINOR = 1; + + public const int PX_PHYSICS_VERSION_BUGFIX = 3; + + public const int PX_SLIST_ALIGNMENT = 16; + + public const int COMPILE_VECTOR_INTRINSICS = 1; + + public const int PX_FPCLASS_SNAN = 0x0001; + + public const int PX_FPCLASS_QNAN = 0x0002; + + public const int PX_FPCLASS_NINF = 0x0004; + + public const int PX_FPCLASS_PINF = 0x0200; + + public const float FLOAT_COMPONENTS_EQUAL_THRESHOLD = 0.01f; + + public const float VECMATH_AOS_EPSILON = (1e-3f); + + public const float PX_PIDIV2 = 1.570796327f; + + public const uint PX_INVALID_U32 = 0xffffffff; + + public const int PX_INVALID_U16 = 0xffff; + + public const int PX_ENABLE_DEBUG_VISUALIZATION = 1; + + public const int PX_ENABLE_SIM_STATS = 1; + + public const int PX_SERIAL_ALIGN = 16; + + public const int PX_SERIAL_FILE_ALIGN = 128; + + public const int PX_SERIAL_OBJECT_ID_INVALID = 0; + + public const int PX_SERIAL_REF_KIND_MATERIAL_IDX = (1); + + public const float PX_MESH_SCALE_MIN = 1e-6f; + + public const float PX_MIN_HEIGHTFIELD_XZ_SCALE = 1e-8f; + + public const uint PX_INVALID_NODE = 0xFFFFFFFFu; + + public const uint PXC_CONTACT_NO_FACE_INDEX = 0xffffffff; + + public const uint PX_INVALID_BP_FILTER_GROUP = 0xffffffff; + + public const int PX_MAX_TETID = 0x000fffff; + + public const uint PX_INVALID_OBSTACLE_HANDLE = 0xffffffff; + + public const string PX_BINARY_SERIAL_VERSION = "0E16D844227B469DB23DA9C42CB4E624"; + + public const float PX_VEHICLE_NO_GEAR_SWITCH_PENDING = -1.0f; + + public const float PX_VEHICLE_GEAR_SWITCH_INITIATED = -2.0f; + + public const int PX_MAX_NB_WHEELS = (20); + + public const int PX_DEBUG_VEHICLE_ON = (1); + + } +} diff --git a/Hexa.NET.PhysX/Generated/Delegates.cs b/Hexa.NET.PhysX/Generated/Delegates.cs new file mode 100644 index 0000000..77af43f --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Delegates.cs @@ -0,0 +1,19 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ +} diff --git a/Hexa.NET.PhysX/Generated/Enumerations.cs b/Hexa.NET.PhysX/Generated/Enumerations.cs new file mode 100644 index 0000000..1966fdb --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Enumerations.cs @@ -0,0 +1,16 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ +} diff --git a/Hexa.NET.PhysX/Generated/Extensions.cs b/Hexa.NET.PhysX/Generated/Extensions.cs new file mode 100644 index 0000000..e522029 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Extensions.cs @@ -0,0 +1,21 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public static unsafe class Extensions + { + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.000.cs b/Hexa.NET.PhysX/Generated/Functions.000.cs new file mode 100644 index 0000000..dd0a183 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.000.cs @@ -0,0 +1,3725 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + internal const string LibName = "shaderc_shared"; + + /// + /// The foundation class is needed to initialize higher level SDKs. There may be only one instance per process.
+ /// Calling this method after an instance has been created already will result in an error message and NULL will be
+ /// returned.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCreateFoundation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxFoundation* PxCreateFoundationNative(uint version, PxAllocatorCallback* allocator, PxErrorCallback* errorCallback); + + /// /// The foundation class is needed to initialize higher level SDKs. There may be only one instance per process.
/// Calling this method after an instance has been created already will result in an error message and NULL will be
/// returned.
///
public static PxFoundation* PxCreateFoundation( uint version, PxAllocatorCallback* allocator, PxErrorCallback* errorCallback) + { + PxFoundation* ret = PxCreateFoundationNative(version, allocator, errorCallback); + return ret; + } + + /// /// The foundation class is needed to initialize higher level SDKs. There may be only one instance per process.
/// Calling this method after an instance has been created already will result in an error message and NULL will be
/// returned.
///
public static PxFoundation* PxCreateFoundation( uint version, ref PxAllocatorCallback allocator, PxErrorCallback* errorCallback) + { + fixed (PxAllocatorCallback* pallocator = &allocator) + { + PxFoundation* ret = PxCreateFoundationNative(version, (PxAllocatorCallback*)pallocator, errorCallback); + return ret; + } + } + + /// /// The foundation class is needed to initialize higher level SDKs. There may be only one instance per process.
/// Calling this method after an instance has been created already will result in an error message and NULL will be
/// returned.
///
public static PxFoundation* PxCreateFoundation( uint version, PxAllocatorCallback* allocator, ref PxErrorCallback errorCallback) + { + fixed (PxErrorCallback* perrorCallback = &errorCallback) + { + PxFoundation* ret = PxCreateFoundationNative(version, allocator, (PxErrorCallback*)perrorCallback); + return ret; + } + } + + /// /// The foundation class is needed to initialize higher level SDKs. There may be only one instance per process.
/// Calling this method after an instance has been created already will result in an error message and NULL will be
/// returned.
///
public static PxFoundation* PxCreateFoundation( uint version, ref PxAllocatorCallback allocator, ref PxErrorCallback errorCallback) + { + fixed (PxAllocatorCallback* pallocator = &allocator) + { + fixed (PxErrorCallback* perrorCallback = &errorCallback) + { + PxFoundation* ret = PxCreateFoundationNative(version, (PxAllocatorCallback*)pallocator, (PxErrorCallback*)perrorCallback); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSetFoundationInstance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSetFoundationInstanceNative(PxFoundation* foundation); + + public static void PxSetFoundationInstance( PxFoundation* foundation) + { + PxSetFoundationInstanceNative(foundation); + } + + [LibraryImport(LibName, EntryPoint = "PxGetFoundation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxFoundation* PxGetFoundationNative(); + + public static PxFoundation* PxGetFoundation() + { + PxFoundation* ret = PxGetFoundationNative(); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxGetProfilerCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxProfilerCallback* PxGetProfilerCallbackNative(); + + /// /// public static PxProfilerCallback* PxGetProfilerCallback() + { + PxProfilerCallback* ret = PxGetProfilerCallbackNative(); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxSetProfilerCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSetProfilerCallbackNative(PxProfilerCallback* profiler); + + /// /// public static void PxSetProfilerCallback( PxProfilerCallback* profiler) + { + PxSetProfilerCallbackNative(profiler); + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxGetAllocatorCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxAllocatorCallback* PxGetAllocatorCallbackNative(); + + /// /// public static PxAllocatorCallback* PxGetAllocatorCallback() + { + PxAllocatorCallback* ret = PxGetAllocatorCallbackNative(); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxGetBroadcastAllocator")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxAllocatorCallback* PxGetBroadcastAllocatorNative(); + + /// /// public static PxAllocatorCallback* PxGetBroadcastAllocator() + { + PxAllocatorCallback* ret = PxGetBroadcastAllocatorNative(); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxGetErrorCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxErrorCallback* PxGetErrorCallbackNative(); + + /// /// public static PxErrorCallback* PxGetErrorCallback() + { + PxErrorCallback* ret = PxGetErrorCallbackNative(); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxGetBroadcastError")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxErrorCallback* PxGetBroadcastErrorNative(); + + /// /// public static PxErrorCallback* PxGetBroadcastError() + { + PxErrorCallback* ret = PxGetBroadcastErrorNative(); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxGetWarnOnceTimeStamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxGetWarnOnceTimeStampNative(); + + /// /// public static uint PxGetWarnOnceTimeStamp() + { + uint ret = PxGetWarnOnceTimeStampNative(); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxDecFoundationRefCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDecFoundationRefCountNative(); + + /// /// public static void PxDecFoundationRefCount() + { + PxDecFoundationRefCountNative(); + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxIncFoundationRefCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxIncFoundationRefCountNative(); + + /// /// public static void PxIncFoundationRefCount() + { + PxIncFoundationRefCountNative(); + } + + /// + /// Objects can only be serialized or deserialized through a collection.
+ /// For serialization, users must add objects to the collection and serialize the collection as a whole.
+ /// For deserialization, the system gives back a collection of deserialized objects to users.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCreateCollection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxCollection* PxCreateCollectionNative(); + + /// /// Objects can only be serialized or deserialized through a collection.
/// For serialization, users must add objects to the collection and serialize the collection as a whole.
/// For deserialization, the system gives back a collection of deserialized objects to users.
///
public static PxCollection* PxCreateCollection() + { + PxCollection* ret = PxCreateCollectionNative(); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxSetPhysXGpuLoadHook")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSetPhysXGpuLoadHookNative(PxGpuLoadHook* hook); + + /// /// public static void PxSetPhysXGpuLoadHook( PxGpuLoadHook* hook) + { + PxSetPhysXGpuLoadHookNative(hook); + } + + /// + ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxGetSuggestedCudaDeviceOrdinal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxGetSuggestedCudaDeviceOrdinalNative(PxErrorCallback* errc); + + /// ///
///
public static int PxGetSuggestedCudaDeviceOrdinal( PxErrorCallback* errc) + { + int ret = PxGetSuggestedCudaDeviceOrdinalNative(errc); + return ret; + } + + /// + ///
+ ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCreateCudaContextManager")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxCudaContextManager* PxCreateCudaContextManagerNative(PxFoundation* foundation, PxCudaContextManagerDesc* desc, PxProfilerCallback* profilerCallback); + + /// ///
///
///
public static PxCudaContextManager* PxCreateCudaContextManager( PxFoundation* foundation, PxCudaContextManagerDesc* desc, PxProfilerCallback* profilerCallback) + { + PxCudaContextManager* ret = PxCreateCudaContextManagerNative(foundation, desc, profilerCallback); + return ret; + } + + /// ///
///
///
public static PxCudaContextManager* PxCreateCudaContextManager( PxFoundation* foundation, ref PxCudaContextManagerDesc desc, PxProfilerCallback* profilerCallback) + { + fixed (PxCudaContextManagerDesc* pdesc = &desc) + { + PxCudaContextManager* ret = PxCreateCudaContextManagerNative(foundation, (PxCudaContextManagerDesc*)pdesc, profilerCallback); + return ret; + } + } + + /// ///
///
///
public static PxCudaContextManager* PxCreateCudaContextManager( PxFoundation* foundation, PxCudaContextManagerDesc* desc, ref PxProfilerCallback profilerCallback) + { + fixed (PxProfilerCallback* pprofilerCallback = &profilerCallback) + { + PxCudaContextManager* ret = PxCreateCudaContextManagerNative(foundation, desc, (PxProfilerCallback*)pprofilerCallback); + return ret; + } + } + + /// ///
///
///
public static PxCudaContextManager* PxCreateCudaContextManager( PxFoundation* foundation, ref PxCudaContextManagerDesc desc, ref PxProfilerCallback profilerCallback) + { + fixed (PxCudaContextManagerDesc* pdesc = &desc) + { + fixed (PxProfilerCallback* pprofilerCallback = &profilerCallback) + { + PxCudaContextManager* ret = PxCreateCudaContextManagerNative(foundation, (PxCudaContextManagerDesc*)pdesc, (PxProfilerCallback*)pprofilerCallback); + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxSetPhysXGpuProfilerCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSetPhysXGpuProfilerCallbackNative(PxProfilerCallback* profilerCallback); + + /// ///
///
///
public static void PxSetPhysXGpuProfilerCallback( PxProfilerCallback* profilerCallback) + { + PxSetPhysXGpuProfilerCallbackNative(profilerCallback); + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxCudaRegisterFunction")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCudaRegisterFunctionNative(int moduleIndex, byte* functionName); + + /// /// public static void PxCudaRegisterFunction( int moduleIndex, byte* functionName) + { + PxCudaRegisterFunctionNative(moduleIndex, functionName); + } + + /// /// public static void PxCudaRegisterFunction( int moduleIndex, ref byte functionName) + { + fixed (byte* pfunctionName = &functionName) + { + PxCudaRegisterFunctionNative(moduleIndex, (byte*)pfunctionName); + } + } + + /// /// public static void PxCudaRegisterFunction( int moduleIndex, string functionName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (functionName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(functionName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(functionName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxCudaRegisterFunctionNative(moduleIndex, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxCudaRegisterFatBinary")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void** PxCudaRegisterFatBinaryNative(void* unknown0); + + /// /// public static void** PxCudaRegisterFatBinary( void* unknown0) + { + void** ret = PxCudaRegisterFatBinaryNative(unknown0); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxGetCudaModuleTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void** PxGetCudaModuleTableNative(); + + /// /// public static void** PxGetCudaModuleTable() + { + void** ret = PxGetCudaModuleTableNative(); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxGetCudaModuleTableSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxGetCudaModuleTableSizeNative(); + + /// /// public static uint PxGetCudaModuleTableSize() + { + uint ret = PxGetCudaModuleTableSizeNative(); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxGetCudaFunctionTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxKernelIndex* PxGetCudaFunctionTableNative(); + + /// /// public static PxKernelIndex* PxGetCudaFunctionTable() + { + PxKernelIndex* ret = PxGetCudaFunctionTableNative(); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxGetCudaFunctionTableSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxGetCudaFunctionTableSizeNative(); + + /// /// public static uint PxGetCudaFunctionTableSize() + { + uint ret = PxGetCudaFunctionTableSizeNative(); + return ret; + } + + /// + ///
+ /// This function returns pairs of box indices that belong to both the first
+ /// &
+ /// second input bvhs.
+ ///
+ ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxFindOverlap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxFindOverlapNative(PxReportCallback* callback, PxBVH* bvh0, PxBVH* bvh1); + + /// ///
/// This function returns pairs of box indices that belong to both the first
/// &
/// second input bvhs.
///
///
///
public static bool PxFindOverlap( PxReportCallback* callback, PxBVH* bvh0, PxBVH* bvh1) + { + byte ret = PxFindOverlapNative(callback, bvh0, bvh1); + return ret != 0; + } + + /// ///
/// This function returns pairs of box indices that belong to both the first
/// &
/// second input bvhs.
///
///
///
public static bool PxFindOverlap( PxReportCallback* callback, ref PxBVH bvh0, PxBVH* bvh1) + { + fixed (PxBVH* pbvh0 = &bvh0) + { + byte ret = PxFindOverlapNative(callback, (PxBVH*)pbvh0, bvh1); + return ret != 0; + } + } + + /// ///
/// This function returns pairs of box indices that belong to both the first
/// &
/// second input bvhs.
///
///
///
public static bool PxFindOverlap( PxReportCallback* callback, PxBVH* bvh0, ref PxBVH bvh1) + { + fixed (PxBVH* pbvh1 = &bvh1) + { + byte ret = PxFindOverlapNative(callback, bvh0, (PxBVH*)pbvh1); + return ret != 0; + } + } + + /// ///
/// This function returns pairs of box indices that belong to both the first
/// &
/// second input bvhs.
///
///
///
public static bool PxFindOverlap( PxReportCallback* callback, ref PxBVH bvh0, ref PxBVH bvh1) + { + fixed (PxBVH* pbvh0 = &bvh0) + { + fixed (PxBVH* pbvh1 = &bvh1) + { + byte ret = PxFindOverlapNative(callback, (PxBVH*)pbvh0, (PxBVH*)pbvh1); + return ret != 0; + } + } + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxCustomGeometry_getUniqueID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxCustomGeometryGetUniqueIDNative(); + + /// /// public static uint PxCustomGeometryGetUniqueID() + { + uint ret = PxCustomGeometryGetUniqueIDNative(); + return ret; + } + + /// + /// See #PxParticleClothDesc, #PxPartitionedParticleCloth.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCreateParticleClothPreProcessor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxParticleClothPreProcessor* PxCreateParticleClothPreProcessorNative(PxCudaContextManager* cudaContextManager); + + /// /// See #PxParticleClothDesc, #PxPartitionedParticleCloth.
///
public static PxParticleClothPreProcessor* PxCreateParticleClothPreProcessor( PxCudaContextManager* cudaContextManager) + { + PxParticleClothPreProcessor* ret = PxCreateParticleClothPreProcessorNative(cudaContextManager); + return ret; + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxRegisterArticulationsReducedCoordinate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRegisterArticulationsReducedCoordinateNative(PxPhysics* physics); + + /// /// public static void PxRegisterArticulationsReducedCoordinate( PxPhysics* physics) + { + PxRegisterArticulationsReducedCoordinateNative(physics); + } + + /// + /// This call will link the default 'unified' implementation of heightfields which is identical to the narrow phase of triangle meshes.
+ /// This function is called automatically inside PxCreatePhysics().
+ /// On resource constrained platforms, it is possible to call PxCreateBasePhysics() and then NOT call this function
+ /// to save on code memory if your application does not use heightfields. In this case the linker should strip out
+ /// the relevant implementation code from the library. If you need to use heightfield but not some other optional
+ /// component, you shoud call PxCreateBasePhysics() followed by this call.
+ /// You must call this function at a time where no ::PxScene instance exists, typically before calling PxPhysics::createScene().
+ /// This is to prevent a change to the heightfield implementation code at runtime which would have undefined results.
+ /// Calling PxCreateBasePhysics() and then attempting to create a heightfield shape without first calling
+ /// ::PxRegisterHeightFields(), will result in an error.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxRegisterHeightFields")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRegisterHeightFieldsNative(PxPhysics* physics); + + /// /// This call will link the default 'unified' implementation of heightfields which is identical to the narrow phase of triangle meshes.
/// This function is called automatically inside PxCreatePhysics().
/// On resource constrained platforms, it is possible to call PxCreateBasePhysics() and then NOT call this function
/// to save on code memory if your application does not use heightfields. In this case the linker should strip out
/// the relevant implementation code from the library. If you need to use heightfield but not some other optional
/// component, you shoud call PxCreateBasePhysics() followed by this call.
/// You must call this function at a time where no ::PxScene instance exists, typically before calling PxPhysics::createScene().
/// This is to prevent a change to the heightfield implementation code at runtime which would have undefined results.
/// Calling PxCreateBasePhysics() and then attempting to create a heightfield shape without first calling
/// ::PxRegisterHeightFields(), will result in an error.
///
public static void PxRegisterHeightFields( PxPhysics* physics) + { + PxRegisterHeightFieldsNative(physics); + } + + /// + /// Creates an instance of this class. May not be a class member to avoid name mangling.
+ /// Pass the constant #PX_PHYSICS_VERSION as the argument.
+ /// There may be only one instance of this class per process. Calling this method after an instance
+ /// has been created already will result in an error message and NULL will be returned.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCreateBasePhysics")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxPhysics* PxCreateBasePhysicsNative(uint version, PxFoundation* foundation, PxTolerancesScale* scale, byte trackOutstandingAllocations, PxPvd* pvd, PxOmniPvd* omniPvd); + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, PxFoundation* foundation, PxTolerancesScale* scale, bool trackOutstandingAllocations, PxPvd* pvd, PxOmniPvd* omniPvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, foundation, scale, trackOutstandingAllocations ? (byte)1 : (byte)0, pvd, omniPvd); + return ret; + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, ref PxFoundation foundation, PxTolerancesScale* scale, bool trackOutstandingAllocations, PxPvd* pvd, PxOmniPvd* omniPvd) + { + fixed (PxFoundation* pfoundation = &foundation) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, (PxFoundation*)pfoundation, scale, trackOutstandingAllocations ? (byte)1 : (byte)0, pvd, omniPvd); + return ret; + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, PxFoundation* foundation, ref PxTolerancesScale scale, bool trackOutstandingAllocations, PxPvd* pvd, PxOmniPvd* omniPvd) + { + fixed (PxTolerancesScale* pscale = &scale) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, foundation, (PxTolerancesScale*)pscale, trackOutstandingAllocations ? (byte)1 : (byte)0, pvd, omniPvd); + return ret; + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, ref PxFoundation foundation, ref PxTolerancesScale scale, bool trackOutstandingAllocations, PxPvd* pvd, PxOmniPvd* omniPvd) + { + fixed (PxFoundation* pfoundation = &foundation) + { + fixed (PxTolerancesScale* pscale = &scale) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, (PxFoundation*)pfoundation, (PxTolerancesScale*)pscale, trackOutstandingAllocations ? (byte)1 : (byte)0, pvd, omniPvd); + return ret; + } + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, PxFoundation* foundation, PxTolerancesScale* scale, bool trackOutstandingAllocations, ref PxPvd pvd, PxOmniPvd* omniPvd) + { + fixed (PxPvd* ppvd = &pvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, foundation, scale, trackOutstandingAllocations ? (byte)1 : (byte)0, (PxPvd*)ppvd, omniPvd); + return ret; + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, ref PxFoundation foundation, PxTolerancesScale* scale, bool trackOutstandingAllocations, ref PxPvd pvd, PxOmniPvd* omniPvd) + { + fixed (PxFoundation* pfoundation = &foundation) + { + fixed (PxPvd* ppvd = &pvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, (PxFoundation*)pfoundation, scale, trackOutstandingAllocations ? (byte)1 : (byte)0, (PxPvd*)ppvd, omniPvd); + return ret; + } + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, PxFoundation* foundation, ref PxTolerancesScale scale, bool trackOutstandingAllocations, ref PxPvd pvd, PxOmniPvd* omniPvd) + { + fixed (PxTolerancesScale* pscale = &scale) + { + fixed (PxPvd* ppvd = &pvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, foundation, (PxTolerancesScale*)pscale, trackOutstandingAllocations ? (byte)1 : (byte)0, (PxPvd*)ppvd, omniPvd); + return ret; + } + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, ref PxFoundation foundation, ref PxTolerancesScale scale, bool trackOutstandingAllocations, ref PxPvd pvd, PxOmniPvd* omniPvd) + { + fixed (PxFoundation* pfoundation = &foundation) + { + fixed (PxTolerancesScale* pscale = &scale) + { + fixed (PxPvd* ppvd = &pvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, (PxFoundation*)pfoundation, (PxTolerancesScale*)pscale, trackOutstandingAllocations ? (byte)1 : (byte)0, (PxPvd*)ppvd, omniPvd); + return ret; + } + } + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, PxFoundation* foundation, PxTolerancesScale* scale, bool trackOutstandingAllocations, PxPvd* pvd, ref PxOmniPvd omniPvd) + { + fixed (PxOmniPvd* pomniPvd = &omniPvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, foundation, scale, trackOutstandingAllocations ? (byte)1 : (byte)0, pvd, (PxOmniPvd*)pomniPvd); + return ret; + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, ref PxFoundation foundation, PxTolerancesScale* scale, bool trackOutstandingAllocations, PxPvd* pvd, ref PxOmniPvd omniPvd) + { + fixed (PxFoundation* pfoundation = &foundation) + { + fixed (PxOmniPvd* pomniPvd = &omniPvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, (PxFoundation*)pfoundation, scale, trackOutstandingAllocations ? (byte)1 : (byte)0, pvd, (PxOmniPvd*)pomniPvd); + return ret; + } + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, PxFoundation* foundation, ref PxTolerancesScale scale, bool trackOutstandingAllocations, PxPvd* pvd, ref PxOmniPvd omniPvd) + { + fixed (PxTolerancesScale* pscale = &scale) + { + fixed (PxOmniPvd* pomniPvd = &omniPvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, foundation, (PxTolerancesScale*)pscale, trackOutstandingAllocations ? (byte)1 : (byte)0, pvd, (PxOmniPvd*)pomniPvd); + return ret; + } + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, ref PxFoundation foundation, ref PxTolerancesScale scale, bool trackOutstandingAllocations, PxPvd* pvd, ref PxOmniPvd omniPvd) + { + fixed (PxFoundation* pfoundation = &foundation) + { + fixed (PxTolerancesScale* pscale = &scale) + { + fixed (PxOmniPvd* pomniPvd = &omniPvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, (PxFoundation*)pfoundation, (PxTolerancesScale*)pscale, trackOutstandingAllocations ? (byte)1 : (byte)0, pvd, (PxOmniPvd*)pomniPvd); + return ret; + } + } + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, PxFoundation* foundation, PxTolerancesScale* scale, bool trackOutstandingAllocations, ref PxPvd pvd, ref PxOmniPvd omniPvd) + { + fixed (PxPvd* ppvd = &pvd) + { + fixed (PxOmniPvd* pomniPvd = &omniPvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, foundation, scale, trackOutstandingAllocations ? (byte)1 : (byte)0, (PxPvd*)ppvd, (PxOmniPvd*)pomniPvd); + return ret; + } + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, ref PxFoundation foundation, PxTolerancesScale* scale, bool trackOutstandingAllocations, ref PxPvd pvd, ref PxOmniPvd omniPvd) + { + fixed (PxFoundation* pfoundation = &foundation) + { + fixed (PxPvd* ppvd = &pvd) + { + fixed (PxOmniPvd* pomniPvd = &omniPvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, (PxFoundation*)pfoundation, scale, trackOutstandingAllocations ? (byte)1 : (byte)0, (PxPvd*)ppvd, (PxOmniPvd*)pomniPvd); + return ret; + } + } + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, PxFoundation* foundation, ref PxTolerancesScale scale, bool trackOutstandingAllocations, ref PxPvd pvd, ref PxOmniPvd omniPvd) + { + fixed (PxTolerancesScale* pscale = &scale) + { + fixed (PxPvd* ppvd = &pvd) + { + fixed (PxOmniPvd* pomniPvd = &omniPvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, foundation, (PxTolerancesScale*)pscale, trackOutstandingAllocations ? (byte)1 : (byte)0, (PxPvd*)ppvd, (PxOmniPvd*)pomniPvd); + return ret; + } + } + } + } + + /// /// Creates an instance of this class. May not be a class member to avoid name mangling.
/// Pass the constant #PX_PHYSICS_VERSION as the argument.
/// There may be only one instance of this class per process. Calling this method after an instance
/// has been created already will result in an error message and NULL will be returned.
///
public static PxPhysics* PxCreateBasePhysics( uint version, ref PxFoundation foundation, ref PxTolerancesScale scale, bool trackOutstandingAllocations, ref PxPvd pvd, ref PxOmniPvd omniPvd) + { + fixed (PxFoundation* pfoundation = &foundation) + { + fixed (PxTolerancesScale* pscale = &scale) + { + fixed (PxPvd* ppvd = &pvd) + { + fixed (PxOmniPvd* pomniPvd = &omniPvd) + { + PxPhysics* ret = PxCreateBasePhysicsNative(version, (PxFoundation*)pfoundation, (PxTolerancesScale*)pscale, trackOutstandingAllocations ? (byte)1 : (byte)0, (PxPvd*)ppvd, (PxOmniPvd*)pomniPvd); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxGetPhysics")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxPhysics* PxGetPhysicsNative(); + + public static PxPhysics* PxGetPhysics() + { + PxPhysics* ret = PxGetPhysicsNative(); + return ret; + } + + /// + ///
+ /// Mark static objects with this group when adding them to the broadphase.
+ /// Overlaps between static objects will not be detected. All static objects
+ /// should have the same group.
+ ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxGetBroadPhaseStaticFilterGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxBpFilterGroup PxGetBroadPhaseStaticFilterGroupNative(); + + /// ///
/// Mark static objects with this group when adding them to the broadphase.
/// Overlaps between static objects will not be detected. All static objects
/// should have the same group.
///
///
public static PxBpFilterGroup PxGetBroadPhaseStaticFilterGroup() + { + PxBpFilterGroup ret = PxGetBroadPhaseStaticFilterGroupNative(); + return ret; + } + + /// + ///
+ /// Mark dynamic objects with this group when adding them to the broadphase.
+ /// Each dynamic object must have an ID, and overlaps between dynamic objects that have
+ /// the same ID will not be detected. This is useful to dismiss overlaps between shapes
+ /// of the same (compound) actor directly within the broadphase.
+ ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxGetBroadPhaseDynamicFilterGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxBpFilterGroup PxGetBroadPhaseDynamicFilterGroupNative(uint id); + + /// ///
/// Mark dynamic objects with this group when adding them to the broadphase.
/// Each dynamic object must have an ID, and overlaps between dynamic objects that have
/// the same ID will not be detected. This is useful to dismiss overlaps between shapes
/// of the same (compound) actor directly within the broadphase.
///
///
public static PxBpFilterGroup PxGetBroadPhaseDynamicFilterGroup( uint id) + { + PxBpFilterGroup ret = PxGetBroadPhaseDynamicFilterGroupNative(id); + return ret; + } + + /// + ///
+ /// Mark kinematic objects with this group when adding them to the broadphase.
+ /// Each kinematic object must have an ID, and overlaps between kinematic objects that have
+ /// the same ID will not be detected.
+ ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxGetBroadPhaseKinematicFilterGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxBpFilterGroup PxGetBroadPhaseKinematicFilterGroupNative(uint id); + + /// ///
/// Mark kinematic objects with this group when adding them to the broadphase.
/// Each kinematic object must have an ID, and overlaps between kinematic objects that have
/// the same ID will not be detected.
///
///
public static PxBpFilterGroup PxGetBroadPhaseKinematicFilterGroup( uint id) + { + PxBpFilterGroup ret = PxGetBroadPhaseKinematicFilterGroupNative(id); + return ret; + } + + /// + ///
+ /// Use this function to create a new standalone broadphase.
+ ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCreateBroadPhase")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxBroadPhase* PxCreateBroadPhaseNative(PxBroadPhaseDesc* desc); + + /// ///
/// Use this function to create a new standalone broadphase.
///
///
public static PxBroadPhase* PxCreateBroadPhase( PxBroadPhaseDesc* desc) + { + PxBroadPhase* ret = PxCreateBroadPhaseNative(desc); + return ret; + } + + /// + ///
+ /// Use this function to create a new standalone high-level broadphase.
+ ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCreateAABBManager")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxAABBManager* PxCreateAABBManagerNative(PxBroadPhase* broadphase); + + /// ///
/// Use this function to create a new standalone high-level broadphase.
///
///
public static PxAABBManager* PxCreateAABBManager( PxBroadPhase* broadphase) + { + PxAABBManager* ret = PxCreateAABBManagerNative(broadphase); + return ret; + } + + /// + ///
+ ///
+ /// The character controller is informed by #PxDeletionListener::onRelease() when actors or shapes are released, and updates its internal
+ /// caches accordingly. If character controller movement or a call to #PxControllerManager::shiftOrigin() may overlap with actor/shape releases,
+ /// internal data structures must be guarded against concurrent access.
+ /// Locking guarantees thread safety in such scenarios.
+ ///
+ /// By default, locking is disabled.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCreateControllerManager")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxControllerManager* PxCreateControllerManagerNative(PxScene* scene, byte lockingEnabled); + + /// ///
///
/// The character controller is informed by #PxDeletionListener::onRelease() when actors or shapes are released, and updates its internal
/// caches accordingly. If character controller movement or a call to #PxControllerManager::shiftOrigin() may overlap with actor/shape releases,
/// internal data structures must be guarded against concurrent access.
/// Locking guarantees thread safety in such scenarios.
///
/// By default, locking is disabled.
///
public static PxControllerManager* PxCreateControllerManager( PxScene* scene, bool lockingEnabled) + { + PxControllerManager* ret = PxCreateControllerManagerNative(scene, lockingEnabled ? (byte)1 : (byte)0); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCreateCooking")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxCooking* PxCreateCookingNative(uint version, PxFoundation* foundation, PxCookingParams* @params); + + public static PxCooking* PxCreateCooking( uint version, PxFoundation* foundation, PxCookingParams* @params) + { + PxCooking* ret = PxCreateCookingNative(version, foundation, @params); + return ret; + } + + public static PxCooking* PxCreateCooking( uint version, ref PxFoundation foundation, PxCookingParams* @params) + { + fixed (PxFoundation* pfoundation = &foundation) + { + PxCooking* ret = PxCreateCookingNative(version, (PxFoundation*)pfoundation, @params); + return ret; + } + } + + public static PxCooking* PxCreateCooking( uint version, PxFoundation* foundation, ref PxCookingParams @params) + { + fixed (PxCookingParams* pparams = &@params) + { + PxCooking* ret = PxCreateCookingNative(version, foundation, (PxCookingParams*)pparams); + return ret; + } + } + + public static PxCooking* PxCreateCooking( uint version, ref PxFoundation foundation, ref PxCookingParams @params) + { + fixed (PxFoundation* pfoundation = &foundation) + { + fixed (PxCookingParams* pparams = &@params) + { + PxCooking* ret = PxCreateCookingNative(version, (PxFoundation*)pfoundation, (PxCookingParams*)pparams); + return ret; + } + } + } + + /// + /// Immediate cooking
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxGetStandaloneInsertionCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxInsertionCallback* PxGetStandaloneInsertionCallbackNative(); + + /// /// Immediate cooking
///
public static PxInsertionCallback* PxGetStandaloneInsertionCallback() + { + PxInsertionCallback* ret = PxGetStandaloneInsertionCallbackNative(); + return ret; + } + + /// + /// PxCookBVH() allows a BVH description to be cooked into a binary stream
+ /// suitable for loading and performing BVH detection at runtime.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCookBVH")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCookBVHNative(PxBVHDesc* desc, PxOutputStream* stream); + + /// /// PxCookBVH() allows a BVH description to be cooked into a binary stream
/// suitable for loading and performing BVH detection at runtime.
///
public static bool PxCookBVH( PxBVHDesc* desc, PxOutputStream* stream) + { + byte ret = PxCookBVHNative(desc, stream); + return ret != 0; + } + + /// /// PxCookBVH() allows a BVH description to be cooked into a binary stream
/// suitable for loading and performing BVH detection at runtime.
///
public static bool PxCookBVH( PxBVHDesc* desc, ref PxOutputStream stream) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookBVHNative(desc, (PxOutputStream*)pstream); + return ret != 0; + } + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxCreateBVH")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxBVH* PxCreateBVHNative(PxBVHDesc* desc, PxInsertionCallback* insertionCallback); + + /// /// public static PxBVH* PxCreateBVH( PxBVHDesc* desc, PxInsertionCallback* insertionCallback) + { + PxBVH* ret = PxCreateBVHNative(desc, insertionCallback); + return ret; + } + + /// /// public static PxBVH* PxCreateBVH( PxBVHDesc* desc, ref PxInsertionCallback insertionCallback) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxBVH* ret = PxCreateBVHNative(desc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + + /// + /// To create a heightfield object there is an option to precompute some of calculations done while loading the heightfield data.
+ /// cookHeightField() allows a heightfield description to be cooked into a binary stream
+ /// suitable for loading and performing collision detection at runtime.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCookHeightField")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCookHeightFieldNative(PxHeightFieldDesc* desc, PxOutputStream* stream); + + /// /// To create a heightfield object there is an option to precompute some of calculations done while loading the heightfield data.
/// cookHeightField() allows a heightfield description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookHeightField( PxHeightFieldDesc* desc, PxOutputStream* stream) + { + byte ret = PxCookHeightFieldNative(desc, stream); + return ret != 0; + } + + /// /// To create a heightfield object there is an option to precompute some of calculations done while loading the heightfield data.
/// cookHeightField() allows a heightfield description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookHeightField( PxHeightFieldDesc* desc, ref PxOutputStream stream) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookHeightFieldNative(desc, (PxOutputStream*)pstream); + return ret != 0; + } + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxCreateHeightField")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxHeightField* PxCreateHeightFieldNative(PxHeightFieldDesc* desc, PxInsertionCallback* insertionCallback); + + /// /// public static PxHeightField* PxCreateHeightField( PxHeightFieldDesc* desc, PxInsertionCallback* insertionCallback) + { + PxHeightField* ret = PxCreateHeightFieldNative(desc, insertionCallback); + return ret; + } + + /// /// public static PxHeightField* PxCreateHeightField( PxHeightFieldDesc* desc, ref PxInsertionCallback insertionCallback) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxHeightField* ret = PxCreateHeightFieldNative(desc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + + /// + /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
+ /// a form which allows the SDK to perform efficient collision detection.
+ /// cookConvexMesh() allows a mesh description to be cooked into a binary stream
+ /// suitable for loading and performing collision detection at runtime.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCookConvexMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCookConvexMeshNative(PxCookingParams* @params, PxConvexMeshDesc* desc, PxOutputStream* stream, Enum* condition); + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// cookConvexMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookConvexMesh( PxCookingParams* @params, PxConvexMeshDesc* desc, PxOutputStream* stream, Enum* condition) + { + byte ret = PxCookConvexMeshNative(@params, desc, stream, condition); + return ret != 0; + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// cookConvexMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookConvexMesh( PxCookingParams* @params, ref PxConvexMeshDesc desc, PxOutputStream* stream, Enum* condition) + { + fixed (PxConvexMeshDesc* pdesc = &desc) + { + byte ret = PxCookConvexMeshNative(@params, (PxConvexMeshDesc*)pdesc, stream, condition); + return ret != 0; + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// cookConvexMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookConvexMesh( PxCookingParams* @params, PxConvexMeshDesc* desc, ref PxOutputStream stream, Enum* condition) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookConvexMeshNative(@params, desc, (PxOutputStream*)pstream, condition); + return ret != 0; + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// cookConvexMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookConvexMesh( PxCookingParams* @params, ref PxConvexMeshDesc desc, ref PxOutputStream stream, Enum* condition) + { + fixed (PxConvexMeshDesc* pdesc = &desc) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookConvexMeshNative(@params, (PxConvexMeshDesc*)pdesc, (PxOutputStream*)pstream, condition); + return ret != 0; + } + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// cookConvexMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookConvexMesh( PxCookingParams* @params, PxConvexMeshDesc* desc, PxOutputStream* stream, ref Enum condition) + { + fixed (Enum* pcondition = &condition) + { + byte ret = PxCookConvexMeshNative(@params, desc, stream, (Enum*)pcondition); + return ret != 0; + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// cookConvexMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookConvexMesh( PxCookingParams* @params, ref PxConvexMeshDesc desc, PxOutputStream* stream, ref Enum condition) + { + fixed (PxConvexMeshDesc* pdesc = &desc) + { + fixed (Enum* pcondition = &condition) + { + byte ret = PxCookConvexMeshNative(@params, (PxConvexMeshDesc*)pdesc, stream, (Enum*)pcondition); + return ret != 0; + } + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// cookConvexMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookConvexMesh( PxCookingParams* @params, PxConvexMeshDesc* desc, ref PxOutputStream stream, ref Enum condition) + { + fixed (PxOutputStream* pstream = &stream) + { + fixed (Enum* pcondition = &condition) + { + byte ret = PxCookConvexMeshNative(@params, desc, (PxOutputStream*)pstream, (Enum*)pcondition); + return ret != 0; + } + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// cookConvexMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookConvexMesh( PxCookingParams* @params, ref PxConvexMeshDesc desc, ref PxOutputStream stream, ref Enum condition) + { + fixed (PxConvexMeshDesc* pdesc = &desc) + { + fixed (PxOutputStream* pstream = &stream) + { + fixed (Enum* pcondition = &condition) + { + byte ret = PxCookConvexMeshNative(@params, (PxConvexMeshDesc*)pdesc, (PxOutputStream*)pstream, (Enum*)pcondition); + return ret != 0; + } + } + } + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxCreateConvexMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxConvexMesh* PxCreateConvexMeshNative(PxCookingParams* @params, PxConvexMeshDesc* desc, PxInsertionCallback* insertionCallback, Enum* condition); + + /// /// public static PxConvexMesh* PxCreateConvexMesh( PxCookingParams* @params, PxConvexMeshDesc* desc, PxInsertionCallback* insertionCallback, Enum* condition) + { + PxConvexMesh* ret = PxCreateConvexMeshNative(@params, desc, insertionCallback, condition); + return ret; + } + + /// /// public static PxConvexMesh* PxCreateConvexMesh( PxCookingParams* @params, ref PxConvexMeshDesc desc, PxInsertionCallback* insertionCallback, Enum* condition) + { + fixed (PxConvexMeshDesc* pdesc = &desc) + { + PxConvexMesh* ret = PxCreateConvexMeshNative(@params, (PxConvexMeshDesc*)pdesc, insertionCallback, condition); + return ret; + } + } + + /// /// public static PxConvexMesh* PxCreateConvexMesh( PxCookingParams* @params, PxConvexMeshDesc* desc, ref PxInsertionCallback insertionCallback, Enum* condition) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxConvexMesh* ret = PxCreateConvexMeshNative(@params, desc, (PxInsertionCallback*)pinsertionCallback, condition); + return ret; + } + } + + /// /// public static PxConvexMesh* PxCreateConvexMesh( PxCookingParams* @params, ref PxConvexMeshDesc desc, ref PxInsertionCallback insertionCallback, Enum* condition) + { + fixed (PxConvexMeshDesc* pdesc = &desc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxConvexMesh* ret = PxCreateConvexMeshNative(@params, (PxConvexMeshDesc*)pdesc, (PxInsertionCallback*)pinsertionCallback, condition); + return ret; + } + } + } + + /// /// public static PxConvexMesh* PxCreateConvexMesh( PxCookingParams* @params, PxConvexMeshDesc* desc, PxInsertionCallback* insertionCallback, ref Enum condition) + { + fixed (Enum* pcondition = &condition) + { + PxConvexMesh* ret = PxCreateConvexMeshNative(@params, desc, insertionCallback, (Enum*)pcondition); + return ret; + } + } + + /// /// public static PxConvexMesh* PxCreateConvexMesh( PxCookingParams* @params, ref PxConvexMeshDesc desc, PxInsertionCallback* insertionCallback, ref Enum condition) + { + fixed (PxConvexMeshDesc* pdesc = &desc) + { + fixed (Enum* pcondition = &condition) + { + PxConvexMesh* ret = PxCreateConvexMeshNative(@params, (PxConvexMeshDesc*)pdesc, insertionCallback, (Enum*)pcondition); + return ret; + } + } + } + + /// /// public static PxConvexMesh* PxCreateConvexMesh( PxCookingParams* @params, PxConvexMeshDesc* desc, ref PxInsertionCallback insertionCallback, ref Enum condition) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + fixed (Enum* pcondition = &condition) + { + PxConvexMesh* ret = PxCreateConvexMeshNative(@params, desc, (PxInsertionCallback*)pinsertionCallback, (Enum*)pcondition); + return ret; + } + } + } + + /// /// public static PxConvexMesh* PxCreateConvexMesh( PxCookingParams* @params, ref PxConvexMeshDesc desc, ref PxInsertionCallback insertionCallback, ref Enum condition) + { + fixed (PxConvexMeshDesc* pdesc = &desc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + fixed (Enum* pcondition = &condition) + { + PxConvexMesh* ret = PxCreateConvexMeshNative(@params, (PxConvexMeshDesc*)pdesc, (PxInsertionCallback*)pinsertionCallback, (Enum*)pcondition); + return ret; + } + } + } + } + + /// + /// The convex mesh descriptor must contain an already created convex mesh - the vertices, indices and polygons must be provided.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxValidateConvexMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxValidateConvexMeshNative(PxCookingParams* @params, PxConvexMeshDesc* desc); + + /// /// The convex mesh descriptor must contain an already created convex mesh - the vertices, indices and polygons must be provided.
///
public static bool PxValidateConvexMesh( PxCookingParams* @params, PxConvexMeshDesc* desc) + { + byte ret = PxValidateConvexMeshNative(@params, desc); + return ret != 0; + } + + /// /// The convex mesh descriptor must contain an already created convex mesh - the vertices, indices and polygons must be provided.
///
public static bool PxValidateConvexMesh( PxCookingParams* @params, ref PxConvexMeshDesc desc) + { + fixed (PxConvexMeshDesc* pdesc = &desc) + { + byte ret = PxValidateConvexMeshNative(@params, (PxConvexMeshDesc*)pdesc); + return ret != 0; + } + } + + /// + /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
+ /// The output vertices, indices and polygons must be used to construct a hull.
+ /// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
+ /// array's.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxComputeHullPolygons")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxComputeHullPolygonsNative(PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons); + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, PxHullPolygon** hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, hullPolygons); + return ret != 0; + } + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.001.cs b/Hexa.NET.PhysX/Generated/Functions.001.cs new file mode 100644 index 0000000..882f726 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.001.cs @@ -0,0 +1,4164 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, uint* nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, nbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, uint** indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, indices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, uint* nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, nbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, Vector3** vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, vertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, uint* nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, nbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, PxAllocatorCallback* inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, inCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, PxSimpleTriangleMesh* mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, mesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + } + + /// /// Please note that the resulting polygons may have different number of vertices. Some vertices may be removed.
/// The output vertices, indices and polygons must be used to construct a hull.
/// The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those
/// array's.
///
public static bool PxComputeHullPolygons( PxCookingParams* @params, ref PxSimpleTriangleMesh mesh, ref PxAllocatorCallback inCallback, ref uint nbVerts, ref Vector3 vertices, ref uint nbIndices, ref uint indices, ref uint nbPolygons, ref PxHullPolygon hullPolygons) + { + fixed (PxSimpleTriangleMesh* pmesh = &mesh) + { + fixed (PxAllocatorCallback* pinCallback = &inCallback) + { + fixed (uint* pnbVerts = &nbVerts) + { + fixed (Vector3* pvertices = &vertices) + { + fixed (uint* pnbIndices = &nbIndices) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pnbPolygons = &nbPolygons) + { + fixed (PxHullPolygon* phullPolygons = &hullPolygons) + { + byte ret = PxComputeHullPolygonsNative(@params, (PxSimpleTriangleMesh*)pmesh, (PxAllocatorCallback*)pinCallback, (uint*)pnbVerts, (Vector3**)pvertices, (uint*)pnbIndices, (uint**)pindices, (uint*)pnbPolygons, (PxHullPolygon**)phullPolygons); + return ret != 0; + } + } + } + } + } + } + } + } + } + + /// + /// The following conditions are true for a valid triangle mesh:
+ /// 1. There are no duplicate vertices (within specified vertexWeldTolerance. See PxCookingParams::meshWeldTolerance)
+ /// 2. There are no large triangles (within specified PxTolerancesScale.)
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxValidateTriangleMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxValidateTriangleMeshNative(PxCookingParams* @params, PxTriangleMeshDesc* desc); + + /// /// The following conditions are true for a valid triangle mesh:
/// 1. There are no duplicate vertices (within specified vertexWeldTolerance. See PxCookingParams::meshWeldTolerance)
/// 2. There are no large triangles (within specified PxTolerancesScale.)
///
public static bool PxValidateTriangleMesh( PxCookingParams* @params, PxTriangleMeshDesc* desc) + { + byte ret = PxValidateTriangleMeshNative(@params, desc); + return ret != 0; + } + + /// /// The following conditions are true for a valid triangle mesh:
/// 1. There are no duplicate vertices (within specified vertexWeldTolerance. See PxCookingParams::meshWeldTolerance)
/// 2. There are no large triangles (within specified PxTolerancesScale.)
///
public static bool PxValidateTriangleMesh( PxCookingParams* @params, ref PxTriangleMeshDesc desc) + { + fixed (PxTriangleMeshDesc* pdesc = &desc) + { + byte ret = PxValidateTriangleMeshNative(@params, (PxTriangleMeshDesc*)pdesc); + return ret != 0; + } + } + + /// + /// + [LibraryImport(LibName, EntryPoint = "PxCreateTriangleMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxTriangleMesh* PxCreateTriangleMeshNative(PxCookingParams* @params, PxTriangleMeshDesc* desc, PxInsertionCallback* insertionCallback, Enum* condition); + + /// /// public static PxTriangleMesh* PxCreateTriangleMesh( PxCookingParams* @params, PxTriangleMeshDesc* desc, PxInsertionCallback* insertionCallback, Enum* condition) + { + PxTriangleMesh* ret = PxCreateTriangleMeshNative(@params, desc, insertionCallback, condition); + return ret; + } + + /// /// public static PxTriangleMesh* PxCreateTriangleMesh( PxCookingParams* @params, ref PxTriangleMeshDesc desc, PxInsertionCallback* insertionCallback, Enum* condition) + { + fixed (PxTriangleMeshDesc* pdesc = &desc) + { + PxTriangleMesh* ret = PxCreateTriangleMeshNative(@params, (PxTriangleMeshDesc*)pdesc, insertionCallback, condition); + return ret; + } + } + + /// /// public static PxTriangleMesh* PxCreateTriangleMesh( PxCookingParams* @params, PxTriangleMeshDesc* desc, ref PxInsertionCallback insertionCallback, Enum* condition) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxTriangleMesh* ret = PxCreateTriangleMeshNative(@params, desc, (PxInsertionCallback*)pinsertionCallback, condition); + return ret; + } + } + + /// /// public static PxTriangleMesh* PxCreateTriangleMesh( PxCookingParams* @params, ref PxTriangleMeshDesc desc, ref PxInsertionCallback insertionCallback, Enum* condition) + { + fixed (PxTriangleMeshDesc* pdesc = &desc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxTriangleMesh* ret = PxCreateTriangleMeshNative(@params, (PxTriangleMeshDesc*)pdesc, (PxInsertionCallback*)pinsertionCallback, condition); + return ret; + } + } + } + + /// /// public static PxTriangleMesh* PxCreateTriangleMesh( PxCookingParams* @params, PxTriangleMeshDesc* desc, PxInsertionCallback* insertionCallback, ref Enum condition) + { + fixed (Enum* pcondition = &condition) + { + PxTriangleMesh* ret = PxCreateTriangleMeshNative(@params, desc, insertionCallback, (Enum*)pcondition); + return ret; + } + } + + /// /// public static PxTriangleMesh* PxCreateTriangleMesh( PxCookingParams* @params, ref PxTriangleMeshDesc desc, PxInsertionCallback* insertionCallback, ref Enum condition) + { + fixed (PxTriangleMeshDesc* pdesc = &desc) + { + fixed (Enum* pcondition = &condition) + { + PxTriangleMesh* ret = PxCreateTriangleMeshNative(@params, (PxTriangleMeshDesc*)pdesc, insertionCallback, (Enum*)pcondition); + return ret; + } + } + } + + /// /// public static PxTriangleMesh* PxCreateTriangleMesh( PxCookingParams* @params, PxTriangleMeshDesc* desc, ref PxInsertionCallback insertionCallback, ref Enum condition) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + fixed (Enum* pcondition = &condition) + { + PxTriangleMesh* ret = PxCreateTriangleMeshNative(@params, desc, (PxInsertionCallback*)pinsertionCallback, (Enum*)pcondition); + return ret; + } + } + } + + /// /// public static PxTriangleMesh* PxCreateTriangleMesh( PxCookingParams* @params, ref PxTriangleMeshDesc desc, ref PxInsertionCallback insertionCallback, ref Enum condition) + { + fixed (PxTriangleMeshDesc* pdesc = &desc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + fixed (Enum* pcondition = &condition) + { + PxTriangleMesh* ret = PxCreateTriangleMeshNative(@params, (PxTriangleMeshDesc*)pdesc, (PxInsertionCallback*)pinsertionCallback, (Enum*)pcondition); + return ret; + } + } + } + } + + /// + /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
+ /// a form which allows the SDK to perform efficient collision detection.
+ /// PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream
+ /// suitable for loading and performing collision detection at runtime.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCookTriangleMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCookTriangleMeshNative(PxCookingParams* @params, PxTriangleMeshDesc* desc, PxOutputStream* stream, Enum* condition); + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookTriangleMesh( PxCookingParams* @params, PxTriangleMeshDesc* desc, PxOutputStream* stream, Enum* condition) + { + byte ret = PxCookTriangleMeshNative(@params, desc, stream, condition); + return ret != 0; + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookTriangleMesh( PxCookingParams* @params, ref PxTriangleMeshDesc desc, PxOutputStream* stream, Enum* condition) + { + fixed (PxTriangleMeshDesc* pdesc = &desc) + { + byte ret = PxCookTriangleMeshNative(@params, (PxTriangleMeshDesc*)pdesc, stream, condition); + return ret != 0; + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookTriangleMesh( PxCookingParams* @params, PxTriangleMeshDesc* desc, ref PxOutputStream stream, Enum* condition) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookTriangleMeshNative(@params, desc, (PxOutputStream*)pstream, condition); + return ret != 0; + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookTriangleMesh( PxCookingParams* @params, ref PxTriangleMeshDesc desc, ref PxOutputStream stream, Enum* condition) + { + fixed (PxTriangleMeshDesc* pdesc = &desc) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookTriangleMeshNative(@params, (PxTriangleMeshDesc*)pdesc, (PxOutputStream*)pstream, condition); + return ret != 0; + } + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookTriangleMesh( PxCookingParams* @params, PxTriangleMeshDesc* desc, PxOutputStream* stream, ref Enum condition) + { + fixed (Enum* pcondition = &condition) + { + byte ret = PxCookTriangleMeshNative(@params, desc, stream, (Enum*)pcondition); + return ret != 0; + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookTriangleMesh( PxCookingParams* @params, ref PxTriangleMeshDesc desc, PxOutputStream* stream, ref Enum condition) + { + fixed (PxTriangleMeshDesc* pdesc = &desc) + { + fixed (Enum* pcondition = &condition) + { + byte ret = PxCookTriangleMeshNative(@params, (PxTriangleMeshDesc*)pdesc, stream, (Enum*)pcondition); + return ret != 0; + } + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookTriangleMesh( PxCookingParams* @params, PxTriangleMeshDesc* desc, ref PxOutputStream stream, ref Enum condition) + { + fixed (PxOutputStream* pstream = &stream) + { + fixed (Enum* pcondition = &condition) + { + byte ret = PxCookTriangleMeshNative(@params, desc, (PxOutputStream*)pstream, (Enum*)pcondition); + return ret != 0; + } + } + } + + /// /// To create a triangle mesh object it is necessary to first 'cook' the mesh data into
/// a form which allows the SDK to perform efficient collision detection.
/// PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream
/// suitable for loading and performing collision detection at runtime.
///
public static bool PxCookTriangleMesh( PxCookingParams* @params, ref PxTriangleMeshDesc desc, ref PxOutputStream stream, ref Enum condition) + { + fixed (PxTriangleMeshDesc* pdesc = &desc) + { + fixed (PxOutputStream* pstream = &stream) + { + fixed (Enum* pcondition = &condition) + { + byte ret = PxCookTriangleMeshNative(@params, (PxTriangleMeshDesc*)pdesc, (PxOutputStream*)pstream, (Enum*)pcondition); + return ret != 0; + } + } + } + } + + /// + /// Tetrahedron
+ /// &
+ /// soft body meshes
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCookTetrahedronMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCookTetrahedronMeshNative(PxCookingParams* @params, PxTetrahedronMeshDesc* meshDesc, PxOutputStream* stream); + + /// /// Tetrahedron
/// &
/// soft body meshes
///
public static bool PxCookTetrahedronMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* meshDesc, PxOutputStream* stream) + { + byte ret = PxCookTetrahedronMeshNative(@params, meshDesc, stream); + return ret != 0; + } + + /// /// Tetrahedron
/// &
/// soft body meshes
///
public static bool PxCookTetrahedronMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc meshDesc, PxOutputStream* stream) + { + fixed (PxTetrahedronMeshDesc* pmeshDesc = &meshDesc) + { + byte ret = PxCookTetrahedronMeshNative(@params, (PxTetrahedronMeshDesc*)pmeshDesc, stream); + return ret != 0; + } + } + + /// /// Tetrahedron
/// &
/// soft body meshes
///
public static bool PxCookTetrahedronMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* meshDesc, ref PxOutputStream stream) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookTetrahedronMeshNative(@params, meshDesc, (PxOutputStream*)pstream); + return ret != 0; + } + } + + /// /// Tetrahedron
/// &
/// soft body meshes
///
public static bool PxCookTetrahedronMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc meshDesc, ref PxOutputStream stream) + { + fixed (PxTetrahedronMeshDesc* pmeshDesc = &meshDesc) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookTetrahedronMeshNative(@params, (PxTetrahedronMeshDesc*)pmeshDesc, (PxOutputStream*)pstream); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxCreateTetrahedronMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxTetrahedronMesh* PxCreateTetrahedronMeshNative(PxCookingParams* @params, PxTetrahedronMeshDesc* meshDesc, PxInsertionCallback* insertionCallback); + + public static PxTetrahedronMesh* PxCreateTetrahedronMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* meshDesc, PxInsertionCallback* insertionCallback) + { + PxTetrahedronMesh* ret = PxCreateTetrahedronMeshNative(@params, meshDesc, insertionCallback); + return ret; + } + + public static PxTetrahedronMesh* PxCreateTetrahedronMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc meshDesc, PxInsertionCallback* insertionCallback) + { + fixed (PxTetrahedronMeshDesc* pmeshDesc = &meshDesc) + { + PxTetrahedronMesh* ret = PxCreateTetrahedronMeshNative(@params, (PxTetrahedronMeshDesc*)pmeshDesc, insertionCallback); + return ret; + } + } + + public static PxTetrahedronMesh* PxCreateTetrahedronMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* meshDesc, ref PxInsertionCallback insertionCallback) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxTetrahedronMesh* ret = PxCreateTetrahedronMeshNative(@params, meshDesc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + + public static PxTetrahedronMesh* PxCreateTetrahedronMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc meshDesc, ref PxInsertionCallback insertionCallback) + { + fixed (PxTetrahedronMeshDesc* pmeshDesc = &meshDesc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxTetrahedronMesh* ret = PxCreateTetrahedronMeshNative(@params, (PxTetrahedronMeshDesc*)pmeshDesc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxCookSoftBodyMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCookSoftBodyMeshNative(PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, PxOutputStream* stream); + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, PxOutputStream* stream) + { + byte ret = PxCookSoftBodyMeshNative(@params, simulationMeshDesc, collisionMeshDesc, softbodyDataDesc, stream); + return ret != 0; + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, PxOutputStream* stream) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + byte ret = PxCookSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, collisionMeshDesc, softbodyDataDesc, stream); + return ret != 0; + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, PxOutputStream* stream) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + byte ret = PxCookSoftBodyMeshNative(@params, simulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, softbodyDataDesc, stream); + return ret != 0; + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, PxOutputStream* stream) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + byte ret = PxCookSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, softbodyDataDesc, stream); + return ret != 0; + } + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, PxOutputStream* stream) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + byte ret = PxCookSoftBodyMeshNative(@params, simulationMeshDesc, collisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, stream); + return ret != 0; + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, PxOutputStream* stream) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + byte ret = PxCookSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, collisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, stream); + return ret != 0; + } + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, PxOutputStream* stream) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + byte ret = PxCookSoftBodyMeshNative(@params, simulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, stream); + return ret != 0; + } + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, PxOutputStream* stream) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + byte ret = PxCookSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, stream); + return ret != 0; + } + } + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, ref PxOutputStream stream) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookSoftBodyMeshNative(@params, simulationMeshDesc, collisionMeshDesc, softbodyDataDesc, (PxOutputStream*)pstream); + return ret != 0; + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, ref PxOutputStream stream) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, collisionMeshDesc, softbodyDataDesc, (PxOutputStream*)pstream); + return ret != 0; + } + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, ref PxOutputStream stream) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookSoftBodyMeshNative(@params, simulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, softbodyDataDesc, (PxOutputStream*)pstream); + return ret != 0; + } + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, ref PxOutputStream stream) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, softbodyDataDesc, (PxOutputStream*)pstream); + return ret != 0; + } + } + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, ref PxOutputStream stream) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookSoftBodyMeshNative(@params, simulationMeshDesc, collisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, (PxOutputStream*)pstream); + return ret != 0; + } + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, ref PxOutputStream stream) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, collisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, (PxOutputStream*)pstream); + return ret != 0; + } + } + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, ref PxOutputStream stream) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookSoftBodyMeshNative(@params, simulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, (PxOutputStream*)pstream); + return ret != 0; + } + } + } + } + + public static bool PxCookSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, ref PxOutputStream stream) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + fixed (PxOutputStream* pstream = &stream) + { + byte ret = PxCookSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, (PxOutputStream*)pstream); + return ret != 0; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxCreateSoftBodyMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxSoftBodyMesh* PxCreateSoftBodyMeshNative(PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, PxInsertionCallback* insertionCallback); + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, PxInsertionCallback* insertionCallback) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, simulationMeshDesc, collisionMeshDesc, softbodyDataDesc, insertionCallback); + return ret; + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, PxInsertionCallback* insertionCallback) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, collisionMeshDesc, softbodyDataDesc, insertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, PxInsertionCallback* insertionCallback) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, simulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, softbodyDataDesc, insertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, PxInsertionCallback* insertionCallback) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, softbodyDataDesc, insertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, PxInsertionCallback* insertionCallback) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, simulationMeshDesc, collisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, insertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, PxInsertionCallback* insertionCallback) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, collisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, insertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, PxInsertionCallback* insertionCallback) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, simulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, insertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, PxInsertionCallback* insertionCallback) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, insertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, ref PxInsertionCallback insertionCallback) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, simulationMeshDesc, collisionMeshDesc, softbodyDataDesc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, ref PxInsertionCallback insertionCallback) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, collisionMeshDesc, softbodyDataDesc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, ref PxInsertionCallback insertionCallback) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, simulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, softbodyDataDesc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, PxSoftBodySimulationDataDesc* softbodyDataDesc, ref PxInsertionCallback insertionCallback) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, softbodyDataDesc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, ref PxInsertionCallback insertionCallback) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, simulationMeshDesc, collisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, PxTetrahedronMeshDesc* collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, ref PxInsertionCallback insertionCallback) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, collisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, ref PxInsertionCallback insertionCallback) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, simulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxCreateSoftBodyMesh( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc, ref PxTetrahedronMeshDesc collisionMeshDesc, ref PxSoftBodySimulationDataDesc softbodyDataDesc, ref PxInsertionCallback insertionCallback) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + fixed (PxSoftBodySimulationDataDesc* psoftbodyDataDesc = &softbodyDataDesc) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxCreateSoftBodyMeshNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc, (PxTetrahedronMeshDesc*)pcollisionMeshDesc, (PxSoftBodySimulationDataDesc*)psoftbodyDataDesc, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxComputeModelsMapping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxCollisionMeshMappingData* PxComputeModelsMappingNative(PxCookingParams* @params, PxTetrahedronMeshData* simulationMesh, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, PxBoundedData* vertexToTet); + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, PxTetrahedronMeshData* simulationMesh, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, PxBoundedData* vertexToTet) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, simulationMesh, collisionMesh, collisionData, vertexToTet); + return ret; + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, ref PxTetrahedronMeshData simulationMesh, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, PxBoundedData* vertexToTet) + { + fixed (PxTetrahedronMeshData* psimulationMesh = &simulationMesh) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, (PxTetrahedronMeshData*)psimulationMesh, collisionMesh, collisionData, vertexToTet); + return ret; + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, PxTetrahedronMeshData* simulationMesh, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, PxBoundedData* vertexToTet) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, simulationMesh, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, vertexToTet); + return ret; + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, ref PxTetrahedronMeshData simulationMesh, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, PxBoundedData* vertexToTet) + { + fixed (PxTetrahedronMeshData* psimulationMesh = &simulationMesh) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, (PxTetrahedronMeshData*)psimulationMesh, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, vertexToTet); + return ret; + } + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, PxTetrahedronMeshData* simulationMesh, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, PxBoundedData* vertexToTet) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, simulationMesh, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, vertexToTet); + return ret; + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, ref PxTetrahedronMeshData simulationMesh, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, PxBoundedData* vertexToTet) + { + fixed (PxTetrahedronMeshData* psimulationMesh = &simulationMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, (PxTetrahedronMeshData*)psimulationMesh, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, vertexToTet); + return ret; + } + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, PxTetrahedronMeshData* simulationMesh, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, PxBoundedData* vertexToTet) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, simulationMesh, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, vertexToTet); + return ret; + } + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, ref PxTetrahedronMeshData simulationMesh, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, PxBoundedData* vertexToTet) + { + fixed (PxTetrahedronMeshData* psimulationMesh = &simulationMesh) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, (PxTetrahedronMeshData*)psimulationMesh, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, vertexToTet); + return ret; + } + } + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, PxTetrahedronMeshData* simulationMesh, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxBoundedData vertexToTet) + { + fixed (PxBoundedData* pvertexToTet = &vertexToTet) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, simulationMesh, collisionMesh, collisionData, (PxBoundedData*)pvertexToTet); + return ret; + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, ref PxTetrahedronMeshData simulationMesh, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxBoundedData vertexToTet) + { + fixed (PxTetrahedronMeshData* psimulationMesh = &simulationMesh) + { + fixed (PxBoundedData* pvertexToTet = &vertexToTet) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, (PxTetrahedronMeshData*)psimulationMesh, collisionMesh, collisionData, (PxBoundedData*)pvertexToTet); + return ret; + } + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, PxTetrahedronMeshData* simulationMesh, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxBoundedData vertexToTet) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxBoundedData* pvertexToTet = &vertexToTet) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, simulationMesh, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, (PxBoundedData*)pvertexToTet); + return ret; + } + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, ref PxTetrahedronMeshData simulationMesh, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxBoundedData vertexToTet) + { + fixed (PxTetrahedronMeshData* psimulationMesh = &simulationMesh) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxBoundedData* pvertexToTet = &vertexToTet) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, (PxTetrahedronMeshData*)psimulationMesh, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, (PxBoundedData*)pvertexToTet); + return ret; + } + } + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, PxTetrahedronMeshData* simulationMesh, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxBoundedData vertexToTet) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxBoundedData* pvertexToTet = &vertexToTet) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, simulationMesh, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxBoundedData*)pvertexToTet); + return ret; + } + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, ref PxTetrahedronMeshData simulationMesh, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxBoundedData vertexToTet) + { + fixed (PxTetrahedronMeshData* psimulationMesh = &simulationMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxBoundedData* pvertexToTet = &vertexToTet) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, (PxTetrahedronMeshData*)psimulationMesh, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxBoundedData*)pvertexToTet); + return ret; + } + } + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, PxTetrahedronMeshData* simulationMesh, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxBoundedData vertexToTet) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxBoundedData* pvertexToTet = &vertexToTet) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, simulationMesh, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxBoundedData*)pvertexToTet); + return ret; + } + } + } + } + + public static PxCollisionMeshMappingData* PxComputeModelsMapping( PxCookingParams* @params, ref PxTetrahedronMeshData simulationMesh, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxBoundedData vertexToTet) + { + fixed (PxTetrahedronMeshData* psimulationMesh = &simulationMesh) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxBoundedData* pvertexToTet = &vertexToTet) + { + PxCollisionMeshMappingData* ret = PxComputeModelsMappingNative(@params, (PxTetrahedronMeshData*)psimulationMesh, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxBoundedData*)pvertexToTet); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxComputeCollisionData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxCollisionTetrahedronMeshData* PxComputeCollisionDataNative(PxCookingParams* @params, PxTetrahedronMeshDesc* collisionMeshDesc); + + public static PxCollisionTetrahedronMeshData* PxComputeCollisionData( PxCookingParams* @params, PxTetrahedronMeshDesc* collisionMeshDesc) + { + PxCollisionTetrahedronMeshData* ret = PxComputeCollisionDataNative(@params, collisionMeshDesc); + return ret; + } + + public static PxCollisionTetrahedronMeshData* PxComputeCollisionData( PxCookingParams* @params, ref PxTetrahedronMeshDesc collisionMeshDesc) + { + fixed (PxTetrahedronMeshDesc* pcollisionMeshDesc = &collisionMeshDesc) + { + PxCollisionTetrahedronMeshData* ret = PxComputeCollisionDataNative(@params, (PxTetrahedronMeshDesc*)pcollisionMeshDesc); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxComputeSimulationData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxSimulationTetrahedronMeshData* PxComputeSimulationDataNative(PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc); + + public static PxSimulationTetrahedronMeshData* PxComputeSimulationData( PxCookingParams* @params, PxTetrahedronMeshDesc* simulationMeshDesc) + { + PxSimulationTetrahedronMeshData* ret = PxComputeSimulationDataNative(@params, simulationMeshDesc); + return ret; + } + + public static PxSimulationTetrahedronMeshData* PxComputeSimulationData( PxCookingParams* @params, ref PxTetrahedronMeshDesc simulationMeshDesc) + { + fixed (PxTetrahedronMeshDesc* psimulationMeshDesc = &simulationMeshDesc) + { + PxSimulationTetrahedronMeshData* ret = PxComputeSimulationDataNative(@params, (PxTetrahedronMeshDesc*)psimulationMeshDesc); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxAssembleSoftBodyMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxSoftBodyMesh* PxAssembleSoftBodyMeshNative(PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback); + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, collisionMesh, collisionData, mappingData, insertionCallback); + return ret; + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, collisionMesh, collisionData, mappingData, insertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, mappingData, insertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, mappingData, insertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, mappingData, insertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, mappingData, insertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, mappingData, insertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, mappingData, insertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxCollisionMeshMappingData mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, collisionMesh, collisionData, (PxCollisionMeshMappingData*)pmappingData, insertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxCollisionMeshMappingData mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, collisionMesh, collisionData, (PxCollisionMeshMappingData*)pmappingData, insertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxCollisionMeshMappingData mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, (PxCollisionMeshMappingData*)pmappingData, insertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxCollisionMeshMappingData mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, (PxCollisionMeshMappingData*)pmappingData, insertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxCollisionMeshMappingData mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxCollisionMeshMappingData*)pmappingData, insertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxCollisionMeshMappingData mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxCollisionMeshMappingData*)pmappingData, insertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxCollisionMeshMappingData mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxCollisionMeshMappingData*)pmappingData, insertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxCollisionMeshMappingData mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxCollisionMeshMappingData*)pmappingData, insertionCallback); + return ret; + } + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, PxCollisionMeshMappingData* mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, collisionMesh, collisionData, mappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, PxCollisionMeshMappingData* mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, collisionMesh, collisionData, mappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, PxCollisionMeshMappingData* mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, mappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, PxCollisionMeshMappingData* mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, mappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, PxCollisionMeshMappingData* mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, mappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, PxCollisionMeshMappingData* mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, mappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, PxCollisionMeshMappingData* mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, mappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, PxCollisionMeshMappingData* mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, mappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxCollisionMeshMappingData mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, collisionMesh, collisionData, (PxCollisionMeshMappingData*)pmappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, PxTetrahedronMeshData* collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxCollisionMeshMappingData mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, collisionMesh, collisionData, (PxCollisionMeshMappingData*)pmappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxCollisionMeshMappingData mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, (PxCollisionMeshMappingData*)pmappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, ref PxTetrahedronMeshData collisionMesh, PxSoftBodyCollisionData* collisionData, ref PxCollisionMeshMappingData mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, (PxTetrahedronMeshData*)pcollisionMesh, collisionData, (PxCollisionMeshMappingData*)pmappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxCollisionMeshMappingData mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxCollisionMeshMappingData*)pmappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, PxTetrahedronMeshData* collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxCollisionMeshMappingData mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, collisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxCollisionMeshMappingData*)pmappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, PxSoftBodySimulationData* simulationData, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxCollisionMeshMappingData mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, simulationData, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxCollisionMeshMappingData*)pmappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMesh( PxTetrahedronMeshData* simulationMesh, ref PxSoftBodySimulationData simulationData, ref PxTetrahedronMeshData collisionMesh, ref PxSoftBodyCollisionData collisionData, ref PxCollisionMeshMappingData mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxSoftBodySimulationData* psimulationData = &simulationData) + { + fixed (PxTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxSoftBodyCollisionData* pcollisionData = &collisionData) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshNative(simulationMesh, (PxSoftBodySimulationData*)psimulationData, (PxTetrahedronMeshData*)pcollisionMesh, (PxSoftBodyCollisionData*)pcollisionData, (PxCollisionMeshMappingData*)pmappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxAssembleSoftBodyMesh_Sim")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxSoftBodyMesh* PxAssembleSoftBodyMeshSimNative(PxSimulationTetrahedronMeshData* simulationMesh, PxCollisionTetrahedronMeshData* collisionMesh, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback); + + public static PxSoftBodyMesh* PxAssembleSoftBodyMeshSim( PxSimulationTetrahedronMeshData* simulationMesh, PxCollisionTetrahedronMeshData* collisionMesh, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshSimNative(simulationMesh, collisionMesh, mappingData, insertionCallback); + return ret; + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMeshSim( PxSimulationTetrahedronMeshData* simulationMesh, ref PxCollisionTetrahedronMeshData collisionMesh, PxCollisionMeshMappingData* mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxCollisionTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshSimNative(simulationMesh, (PxCollisionTetrahedronMeshData*)pcollisionMesh, mappingData, insertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMeshSim( PxSimulationTetrahedronMeshData* simulationMesh, PxCollisionTetrahedronMeshData* collisionMesh, ref PxCollisionMeshMappingData mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshSimNative(simulationMesh, collisionMesh, (PxCollisionMeshMappingData*)pmappingData, insertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMeshSim( PxSimulationTetrahedronMeshData* simulationMesh, ref PxCollisionTetrahedronMeshData collisionMesh, ref PxCollisionMeshMappingData mappingData, PxInsertionCallback* insertionCallback) + { + fixed (PxCollisionTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshSimNative(simulationMesh, (PxCollisionTetrahedronMeshData*)pcollisionMesh, (PxCollisionMeshMappingData*)pmappingData, insertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMeshSim( PxSimulationTetrahedronMeshData* simulationMesh, PxCollisionTetrahedronMeshData* collisionMesh, PxCollisionMeshMappingData* mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshSimNative(simulationMesh, collisionMesh, mappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMeshSim( PxSimulationTetrahedronMeshData* simulationMesh, ref PxCollisionTetrahedronMeshData collisionMesh, PxCollisionMeshMappingData* mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxCollisionTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshSimNative(simulationMesh, (PxCollisionTetrahedronMeshData*)pcollisionMesh, mappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMeshSim( PxSimulationTetrahedronMeshData* simulationMesh, PxCollisionTetrahedronMeshData* collisionMesh, ref PxCollisionMeshMappingData mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshSimNative(simulationMesh, collisionMesh, (PxCollisionMeshMappingData*)pmappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + + public static PxSoftBodyMesh* PxAssembleSoftBodyMeshSim( PxSimulationTetrahedronMeshData* simulationMesh, ref PxCollisionTetrahedronMeshData collisionMesh, ref PxCollisionMeshMappingData mappingData, ref PxInsertionCallback insertionCallback) + { + fixed (PxCollisionTetrahedronMeshData* pcollisionMesh = &collisionMesh) + { + fixed (PxCollisionMeshMappingData* pmappingData = &mappingData) + { + fixed (PxInsertionCallback* pinsertionCallback = &insertionCallback) + { + PxSoftBodyMesh* ret = PxAssembleSoftBodyMeshSimNative(simulationMesh, (PxCollisionTetrahedronMeshData*)pcollisionMesh, (PxCollisionMeshMappingData*)pmappingData, (PxInsertionCallback*)pinsertionCallback); + return ret; + } + } + } + } + + /// + ///
+ /// This replaces the following functions from previous SDK versions:
+ /// void NxJointDesc::setGlobalAnchor(const NxVec3
+ /// &
+ /// wsAnchor);
+ /// void NxJointDesc::setGlobalAxis(const NxVec3
+ /// &
+ /// wsAxis);
+ /// The function sets the joint's localPose using world-space input parameters.
+ ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxSetJointGlobalFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSetJointGlobalFrameNative(PxJoint* joint, Vector3* wsAnchor, Vector3* wsAxis); + + /// ///
/// This replaces the following functions from previous SDK versions:
/// void NxJointDesc::setGlobalAnchor(const NxVec3
/// &
/// wsAnchor);
/// void NxJointDesc::setGlobalAxis(const NxVec3
/// &
/// wsAxis);
/// The function sets the joint's localPose using world-space input parameters.
///
///
public static void PxSetJointGlobalFrame( PxJoint* joint, Vector3* wsAnchor, Vector3* wsAxis) + { + PxSetJointGlobalFrameNative(joint, wsAnchor, wsAxis); + } + + /// ///
/// This replaces the following functions from previous SDK versions:
/// void NxJointDesc::setGlobalAnchor(const NxVec3
/// &
/// wsAnchor);
/// void NxJointDesc::setGlobalAxis(const NxVec3
/// &
/// wsAxis);
/// The function sets the joint's localPose using world-space input parameters.
///
///
public static void PxSetJointGlobalFrame( PxJoint* joint, ref Vector3 wsAnchor, Vector3* wsAxis) + { + fixed (Vector3* pwsAnchor = &wsAnchor) + { + PxSetJointGlobalFrameNative(joint, (Vector3*)pwsAnchor, wsAxis); + } + } + + /// ///
/// This replaces the following functions from previous SDK versions:
/// void NxJointDesc::setGlobalAnchor(const NxVec3
/// &
/// wsAnchor);
/// void NxJointDesc::setGlobalAxis(const NxVec3
/// &
/// wsAxis);
/// The function sets the joint's localPose using world-space input parameters.
///
///
public static void PxSetJointGlobalFrame( PxJoint* joint, Vector3* wsAnchor, ref Vector3 wsAxis) + { + fixed (Vector3* pwsAxis = &wsAxis) + { + PxSetJointGlobalFrameNative(joint, wsAnchor, (Vector3*)pwsAxis); + } + } + + /// ///
/// This replaces the following functions from previous SDK versions:
/// void NxJointDesc::setGlobalAnchor(const NxVec3
/// &
/// wsAnchor);
/// void NxJointDesc::setGlobalAxis(const NxVec3
/// &
/// wsAxis);
/// The function sets the joint's localPose using world-space input parameters.
///
///
public static void PxSetJointGlobalFrame( PxJoint* joint, ref Vector3 wsAnchor, ref Vector3 wsAxis) + { + fixed (Vector3* pwsAnchor = &wsAnchor) + { + fixed (Vector3* pwsAxis = &wsAxis) + { + PxSetJointGlobalFrameNative(joint, (Vector3*)pwsAnchor, (Vector3*)pwsAxis); + } + } + } + + /// + /// - "smooth" because smoothing groups are not supported here
+ /// - takes angles into account for correct cube normals computation
+ /// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
+ /// wFaces and set dFaces to zero.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxBuildSmoothNormals")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBuildSmoothNormalsNative(uint nbTris, uint nbVerts, Vector3* verts, uint* dFaces, ushort* wFaces, Vector3* normals, byte flip); + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, Vector3* verts, uint* dFaces, ushort* wFaces, Vector3* normals, bool flip) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, verts, dFaces, wFaces, normals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, ref Vector3 verts, uint* dFaces, ushort* wFaces, Vector3* normals, bool flip) + { + fixed (Vector3* pverts = &verts) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, (Vector3*)pverts, dFaces, wFaces, normals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, Vector3* verts, ref uint dFaces, ushort* wFaces, Vector3* normals, bool flip) + { + fixed (uint* pdFaces = &dFaces) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, verts, (uint*)pdFaces, wFaces, normals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, ref Vector3 verts, ref uint dFaces, ushort* wFaces, Vector3* normals, bool flip) + { + fixed (Vector3* pverts = &verts) + { + fixed (uint* pdFaces = &dFaces) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, (Vector3*)pverts, (uint*)pdFaces, wFaces, normals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, Vector3* verts, uint* dFaces, ref ushort wFaces, Vector3* normals, bool flip) + { + fixed (ushort* pwFaces = &wFaces) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, verts, dFaces, (ushort*)pwFaces, normals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, ref Vector3 verts, uint* dFaces, ref ushort wFaces, Vector3* normals, bool flip) + { + fixed (Vector3* pverts = &verts) + { + fixed (ushort* pwFaces = &wFaces) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, (Vector3*)pverts, dFaces, (ushort*)pwFaces, normals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, Vector3* verts, ref uint dFaces, ref ushort wFaces, Vector3* normals, bool flip) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (ushort* pwFaces = &wFaces) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, verts, (uint*)pdFaces, (ushort*)pwFaces, normals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, ref Vector3 verts, ref uint dFaces, ref ushort wFaces, Vector3* normals, bool flip) + { + fixed (Vector3* pverts = &verts) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (ushort* pwFaces = &wFaces) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, (Vector3*)pverts, (uint*)pdFaces, (ushort*)pwFaces, normals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, Vector3* verts, uint* dFaces, ushort* wFaces, ref Vector3 normals, bool flip) + { + fixed (Vector3* pnormals = &normals) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, verts, dFaces, wFaces, (Vector3*)pnormals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, ref Vector3 verts, uint* dFaces, ushort* wFaces, ref Vector3 normals, bool flip) + { + fixed (Vector3* pverts = &verts) + { + fixed (Vector3* pnormals = &normals) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, (Vector3*)pverts, dFaces, wFaces, (Vector3*)pnormals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, Vector3* verts, ref uint dFaces, ushort* wFaces, ref Vector3 normals, bool flip) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (Vector3* pnormals = &normals) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, verts, (uint*)pdFaces, wFaces, (Vector3*)pnormals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, ref Vector3 verts, ref uint dFaces, ushort* wFaces, ref Vector3 normals, bool flip) + { + fixed (Vector3* pverts = &verts) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (Vector3* pnormals = &normals) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, (Vector3*)pverts, (uint*)pdFaces, wFaces, (Vector3*)pnormals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, Vector3* verts, uint* dFaces, ref ushort wFaces, ref Vector3 normals, bool flip) + { + fixed (ushort* pwFaces = &wFaces) + { + fixed (Vector3* pnormals = &normals) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, verts, dFaces, (ushort*)pwFaces, (Vector3*)pnormals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, ref Vector3 verts, uint* dFaces, ref ushort wFaces, ref Vector3 normals, bool flip) + { + fixed (Vector3* pverts = &verts) + { + fixed (ushort* pwFaces = &wFaces) + { + fixed (Vector3* pnormals = &normals) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, (Vector3*)pverts, dFaces, (ushort*)pwFaces, (Vector3*)pnormals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, Vector3* verts, ref uint dFaces, ref ushort wFaces, ref Vector3 normals, bool flip) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (ushort* pwFaces = &wFaces) + { + fixed (Vector3* pnormals = &normals) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, verts, (uint*)pdFaces, (ushort*)pwFaces, (Vector3*)pnormals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + /// /// - "smooth" because smoothing groups are not supported here
/// - takes angles into account for correct cube normals computation
/// To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to
/// wFaces and set dFaces to zero.
///
public static bool PxBuildSmoothNormals( uint nbTris, uint nbVerts, ref Vector3 verts, ref uint dFaces, ref ushort wFaces, ref Vector3 normals, bool flip) + { + fixed (Vector3* pverts = &verts) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (ushort* pwFaces = &wFaces) + { + fixed (Vector3* pnormals = &normals) + { + byte ret = PxBuildSmoothNormalsNative(nbTris, nbVerts, (Vector3*)pverts, (uint*)pdFaces, (ushort*)pwFaces, (Vector3*)pnormals, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + } + + /// + ///
+ /// This should be called before calling any functions or methods in extensions which may require allocation.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxInitExtensions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxInitExtensionsNative(PxPhysics* physics, PxPvd* pvd); + + /// ///
/// This should be called before calling any functions or methods in extensions which may require allocation.
///
public static bool PxInitExtensions( PxPhysics* physics, PxPvd* pvd) + { + byte ret = PxInitExtensionsNative(physics, pvd); + return ret != 0; + } + + /// ///
/// This should be called before calling any functions or methods in extensions which may require allocation.
///
public static bool PxInitExtensions( PxPhysics* physics, ref PxPvd pvd) + { + fixed (PxPvd* ppvd = &pvd) + { + byte ret = PxInitExtensionsNative(physics, (PxPvd*)ppvd); + return ret != 0; + } + } + + /// + ///
+ /// This function should be called to cleanly shut down the PhysXExtensions library before application exit.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCloseExtensions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCloseExtensionsNative(); + + /// ///
/// This function should be called to cleanly shut down the PhysXExtensions library before application exit.
///
public static void PxCloseExtensions() + { + PxCloseExtensionsNative(); + } + + /// + /// Call this before using any of the vehicle functions.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxInitVehicleSDK")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxInitVehicleSDKNative(PxPhysics* physics, PxSerializationRegistry* serializationRegistry); + + /// /// Call this before using any of the vehicle functions.
///
public static bool PxInitVehicleSDK( PxPhysics* physics, PxSerializationRegistry* serializationRegistry) + { + byte ret = PxInitVehicleSDKNative(physics, serializationRegistry); + return ret != 0; + } + + /// /// Call this before using any of the vehicle functions.
///
public static bool PxInitVehicleSDK( PxPhysics* physics, ref PxSerializationRegistry serializationRegistry) + { + fixed (PxSerializationRegistry* pserializationRegistry = &serializationRegistry) + { + byte ret = PxInitVehicleSDKNative(physics, (PxSerializationRegistry*)pserializationRegistry); + return ret != 0; + } + } + + /// + /// Call this function as part of the physx shutdown process.
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCloseVehicleSDK")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCloseVehicleSDKNative(PxSerializationRegistry* serializationRegistry); + + /// /// Call this function as part of the physx shutdown process.
///
public static void PxCloseVehicleSDK( PxSerializationRegistry* serializationRegistry) + { + PxCloseVehicleSDKNative(serializationRegistry); + } + + /// + ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxCreatePvd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxPvd* PxCreatePvdNative(PxFoundation* foundation); + + /// ///
///
public static PxPvd* PxCreatePvd( PxFoundation* foundation) + { + PxPvd* ret = PxCreatePvdNative(foundation); + return ret; + } + + /// + ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxDefaultPvdSocketTransportCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxPvdTransport* PxDefaultPvdSocketTransportCreateNative(byte* host, int port, uint timeoutInMilliseconds); + + /// ///
///
public static PxPvdTransport* PxDefaultPvdSocketTransportCreate( byte* host, int port, uint timeoutInMilliseconds) + { + PxPvdTransport* ret = PxDefaultPvdSocketTransportCreateNative(host, port, timeoutInMilliseconds); + return ret; + } + + /// + ///
+ ///
+ [LibraryImport(LibName, EntryPoint = "PxDefaultPvdFileTransportCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PxPvdTransport* PxDefaultPvdFileTransportCreateNative(byte* name); + + /// ///
///
public static PxPvdTransport* PxDefaultPvdFileTransportCreate( byte* name) + { + PxPvdTransport* ret = PxDefaultPvdFileTransportCreateNative(name); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAllocatorCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAllocatorCallbackDeleteNative(PhysxPxAllocatorCallbackPod* selfPod); + + public static void PxAllocatorCallbackDelete( PhysxPxAllocatorCallbackPod* selfPod) + { + PxAllocatorCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxAllocatorCallback_allocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxAllocatorCallbackAllocateMutNative(PhysxPxAllocatorCallbackPod* selfPod, ulong sizePod, byte* typeName, byte* filename, int line); + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, ulong sizePod, byte* typeName, byte* filename, int line) + { + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, typeName, filename, line); + return ret; + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, nuint sizePod, byte* typeName, byte* filename, int line) + { + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, typeName, filename, line); + return ret; + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, ulong sizePod, ref byte typeName, byte* filename, int line) + { + fixed (byte* ptypeName = &typeName) + { + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, (byte*)ptypeName, filename, line); + return ret; + } + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, ulong sizePod, string typeName, byte* filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, pStr0, filename, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, nuint sizePod, ref byte typeName, byte* filename, int line) + { + fixed (byte* ptypeName = &typeName) + { + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, (byte*)ptypeName, filename, line); + return ret; + } + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, nuint sizePod, string typeName, byte* filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, pStr0, filename, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, ulong sizePod, byte* typeName, ref byte filename, int line) + { + fixed (byte* pfilename = &filename) + { + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, typeName, (byte*)pfilename, line); + return ret; + } + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, ulong sizePod, byte* typeName, string filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, typeName, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, nuint sizePod, byte* typeName, ref byte filename, int line) + { + fixed (byte* pfilename = &filename) + { + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, typeName, (byte*)pfilename, line); + return ret; + } + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, nuint sizePod, byte* typeName, string filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, typeName, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, ulong sizePod, ref byte typeName, ref byte filename, int line) + { + fixed (byte* ptypeName = &typeName) + { + fixed (byte* pfilename = &filename) + { + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, (byte*)ptypeName, (byte*)pfilename, line); + return ret; + } + } + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, ulong sizePod, string typeName, string filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (filename != null) + { + pStrSize1 = Utils.GetByteCountUTF8(filename); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(filename, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, pStr0, pStr1, line); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, nuint sizePod, ref byte typeName, ref byte filename, int line) + { + fixed (byte* ptypeName = &typeName) + { + fixed (byte* pfilename = &filename) + { + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, (byte*)ptypeName, (byte*)pfilename, line); + return ret; + } + } + } + + public static void* PxAllocatorCallbackAllocateMut( PhysxPxAllocatorCallbackPod* selfPod, nuint sizePod, string typeName, string filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (filename != null) + { + pStrSize1 = Utils.GetByteCountUTF8(filename); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(filename, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + void* ret = PxAllocatorCallbackAllocateMutNative(selfPod, sizePod, pStr0, pStr1, line); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.002.cs b/Hexa.NET.PhysX/Generated/Functions.002.cs new file mode 100644 index 0000000..a5b34f9 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.002.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + [LibraryImport(LibName, EntryPoint = "PxAllocatorCallback_deallocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAllocatorCallbackDeallocateMutNative(PhysxPxAllocatorCallbackPod* selfPod, void* ptr); + + public static void PxAllocatorCallbackDeallocateMut( PhysxPxAllocatorCallbackPod* selfPod, void* ptr) + { + PxAllocatorCallbackDeallocateMutNative(selfPod, ptr); + } + + [LibraryImport(LibName, EntryPoint = "PxAssertHandler_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAssertHandlerDeleteNative(PhysxPxAssertHandlerPod* selfPod); + + public static void PxAssertHandlerDelete( PhysxPxAssertHandlerPod* selfPod) + { + PxAssertHandlerDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetAssertHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxAssertHandlerPod* PhysPxGetAssertHandlerNative(); + + public static PhysxPxAssertHandlerPod* PhysPxGetAssertHandler() + { + PhysxPxAssertHandlerPod* ret = PhysPxGetAssertHandlerNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSetAssertHandler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxSetAssertHandlerNative(PhysxPxAssertHandlerPod* handlerPod); + + public static void PhysPxSetAssertHandler( PhysxPxAssertHandlerPod* handlerPod) + { + PhysPxSetAssertHandlerNative(handlerPod); + } + + [LibraryImport(LibName, EntryPoint = "PxFoundation_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxFoundationReleaseMutNative(PhysxPxFoundationPod* selfPod); + + public static void PxFoundationReleaseMut( PhysxPxFoundationPod* selfPod) + { + PxFoundationReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxFoundation_getErrorCallback_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxErrorCallbackPod* PxFoundationGetErrorCallbackMutNative(PhysxPxFoundationPod* selfPod); + + public static PhysxPxErrorCallbackPod* PxFoundationGetErrorCallbackMut( PhysxPxFoundationPod* selfPod) + { + PhysxPxErrorCallbackPod* ret = PxFoundationGetErrorCallbackMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxFoundation_setErrorLevel_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxFoundationSetErrorLevelMutNative(PhysxPxFoundationPod* selfPod, uint mask); + + public static void PxFoundationSetErrorLevelMut( PhysxPxFoundationPod* selfPod, uint mask) + { + PxFoundationSetErrorLevelMutNative(selfPod, mask); + } + + [LibraryImport(LibName, EntryPoint = "PxFoundation_getErrorLevel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxFoundationGetErrorLevelNative(PhysxPxFoundationPod* selfPod); + + public static uint PxFoundationGetErrorLevel( PhysxPxFoundationPod* selfPod) + { + uint ret = PxFoundationGetErrorLevelNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxFoundation_getAllocatorCallback_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxAllocatorCallbackPod* PxFoundationGetAllocatorCallbackMutNative(PhysxPxFoundationPod* selfPod); + + public static PhysxPxAllocatorCallbackPod* PxFoundationGetAllocatorCallbackMut( PhysxPxFoundationPod* selfPod) + { + PhysxPxAllocatorCallbackPod* ret = PxFoundationGetAllocatorCallbackMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxFoundation_getReportAllocationNames")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxFoundationGetReportAllocationNamesNative(PhysxPxFoundationPod* selfPod); + + public static bool PxFoundationGetReportAllocationNames( PhysxPxFoundationPod* selfPod) + { + byte ret = PxFoundationGetReportAllocationNamesNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxFoundation_setReportAllocationNames_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxFoundationSetReportAllocationNamesMutNative(PhysxPxFoundationPod* selfPod, byte value); + + public static void PxFoundationSetReportAllocationNamesMut( PhysxPxFoundationPod* selfPod, bool value) + { + PxFoundationSetReportAllocationNamesMutNative(selfPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxFoundation_registerAllocationListener_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxFoundationRegisterAllocationListenerMutNative(PhysxPxFoundationPod* selfPod, PhysxPxAllocationListenerPod* listenerPod); + + public static void PxFoundationRegisterAllocationListenerMut( PhysxPxFoundationPod* selfPod, PhysxPxAllocationListenerPod* listenerPod) + { + PxFoundationRegisterAllocationListenerMutNative(selfPod, listenerPod); + } + + public static void PxFoundationRegisterAllocationListenerMut( PhysxPxFoundationPod* selfPod, ref PhysxPxAllocationListenerPod listenerPod) + { + fixed (PhysxPxAllocationListenerPod* plistenerPod = &listenerPod) + { + PxFoundationRegisterAllocationListenerMutNative(selfPod, (PhysxPxAllocationListenerPod*)plistenerPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxFoundation_deregisterAllocationListener_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxFoundationDeregisterAllocationListenerMutNative(PhysxPxFoundationPod* selfPod, PhysxPxAllocationListenerPod* listenerPod); + + public static void PxFoundationDeregisterAllocationListenerMut( PhysxPxFoundationPod* selfPod, PhysxPxAllocationListenerPod* listenerPod) + { + PxFoundationDeregisterAllocationListenerMutNative(selfPod, listenerPod); + } + + public static void PxFoundationDeregisterAllocationListenerMut( PhysxPxFoundationPod* selfPod, ref PhysxPxAllocationListenerPod listenerPod) + { + fixed (PhysxPxAllocationListenerPod* plistenerPod = &listenerPod) + { + PxFoundationDeregisterAllocationListenerMutNative(selfPod, (PhysxPxAllocationListenerPod*)plistenerPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxFoundation_registerErrorCallback_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxFoundationRegisterErrorCallbackMutNative(PhysxPxFoundationPod* selfPod, PhysxPxErrorCallbackPod* callbackPod); + + public static void PxFoundationRegisterErrorCallbackMut( PhysxPxFoundationPod* selfPod, PhysxPxErrorCallbackPod* callbackPod) + { + PxFoundationRegisterErrorCallbackMutNative(selfPod, callbackPod); + } + + public static void PxFoundationRegisterErrorCallbackMut( PhysxPxFoundationPod* selfPod, ref PhysxPxErrorCallbackPod callbackPod) + { + fixed (PhysxPxErrorCallbackPod* pcallbackPod = &callbackPod) + { + PxFoundationRegisterErrorCallbackMutNative(selfPod, (PhysxPxErrorCallbackPod*)pcallbackPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxFoundation_deregisterErrorCallback_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxFoundationDeregisterErrorCallbackMutNative(PhysxPxFoundationPod* selfPod, PhysxPxErrorCallbackPod* callbackPod); + + public static void PxFoundationDeregisterErrorCallbackMut( PhysxPxFoundationPod* selfPod, PhysxPxErrorCallbackPod* callbackPod) + { + PxFoundationDeregisterErrorCallbackMutNative(selfPod, callbackPod); + } + + public static void PxFoundationDeregisterErrorCallbackMut( PhysxPxFoundationPod* selfPod, ref PhysxPxErrorCallbackPod callbackPod) + { + fixed (PhysxPxErrorCallbackPod* pcallbackPod = &callbackPod) + { + PxFoundationDeregisterErrorCallbackMutNative(selfPod, (PhysxPxErrorCallbackPod*)pcallbackPod); + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateFoundation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxFoundationPod* PhysPxCreateFoundationNative(uint version, PhysxPxAllocatorCallbackPod* allocatorPod, PhysxPxErrorCallbackPod* errorcallbackPod); + + public static PhysxPxFoundationPod* PhysPxCreateFoundation( uint version, PhysxPxAllocatorCallbackPod* allocatorPod, PhysxPxErrorCallbackPod* errorcallbackPod) + { + PhysxPxFoundationPod* ret = PhysPxCreateFoundationNative(version, allocatorPod, errorcallbackPod); + return ret; + } + + public static PhysxPxFoundationPod* PhysPxCreateFoundation( uint version, ref PhysxPxAllocatorCallbackPod allocatorPod, PhysxPxErrorCallbackPod* errorcallbackPod) + { + fixed (PhysxPxAllocatorCallbackPod* pallocatorPod = &allocatorPod) + { + PhysxPxFoundationPod* ret = PhysPxCreateFoundationNative(version, (PhysxPxAllocatorCallbackPod*)pallocatorPod, errorcallbackPod); + return ret; + } + } + + public static PhysxPxFoundationPod* PhysPxCreateFoundation( uint version, PhysxPxAllocatorCallbackPod* allocatorPod, ref PhysxPxErrorCallbackPod errorcallbackPod) + { + fixed (PhysxPxErrorCallbackPod* perrorcallbackPod = &errorcallbackPod) + { + PhysxPxFoundationPod* ret = PhysPxCreateFoundationNative(version, allocatorPod, (PhysxPxErrorCallbackPod*)perrorcallbackPod); + return ret; + } + } + + public static PhysxPxFoundationPod* PhysPxCreateFoundation( uint version, ref PhysxPxAllocatorCallbackPod allocatorPod, ref PhysxPxErrorCallbackPod errorcallbackPod) + { + fixed (PhysxPxAllocatorCallbackPod* pallocatorPod = &allocatorPod) + { + fixed (PhysxPxErrorCallbackPod* perrorcallbackPod = &errorcallbackPod) + { + PhysxPxFoundationPod* ret = PhysPxCreateFoundationNative(version, (PhysxPxAllocatorCallbackPod*)pallocatorPod, (PhysxPxErrorCallbackPod*)perrorcallbackPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSetFoundationInstance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxSetFoundationInstanceNative(PhysxPxFoundationPod* foundationPod); + + public static void PhysPxSetFoundationInstance( PhysxPxFoundationPod* foundationPod) + { + PhysPxSetFoundationInstanceNative(foundationPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetFoundation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxFoundationPod* PhysPxGetFoundationNative(); + + public static PhysxPxFoundationPod* PhysPxGetFoundation() + { + PhysxPxFoundationPod* ret = PhysPxGetFoundationNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetProfilerCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxProfilerCallbackPod* PhysPxGetProfilerCallbackNative(); + + public static PhysxPxProfilerCallbackPod* PhysPxGetProfilerCallback() + { + PhysxPxProfilerCallbackPod* ret = PhysPxGetProfilerCallbackNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSetProfilerCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxSetProfilerCallbackNative(PhysxPxProfilerCallbackPod* profilerPod); + + public static void PhysPxSetProfilerCallback( PhysxPxProfilerCallbackPod* profilerPod) + { + PhysPxSetProfilerCallbackNative(profilerPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetAllocatorCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxAllocatorCallbackPod* PhysPxGetAllocatorCallbackNative(); + + public static PhysxPxAllocatorCallbackPod* PhysPxGetAllocatorCallback() + { + PhysxPxAllocatorCallbackPod* ret = PhysPxGetAllocatorCallbackNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetBroadcastAllocator")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxAllocatorCallbackPod* PhysPxGetBroadcastAllocatorNative(); + + public static PhysxPxAllocatorCallbackPod* PhysPxGetBroadcastAllocator() + { + PhysxPxAllocatorCallbackPod* ret = PhysPxGetBroadcastAllocatorNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetErrorCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxErrorCallbackPod* PhysPxGetErrorCallbackNative(); + + public static PhysxPxErrorCallbackPod* PhysPxGetErrorCallback() + { + PhysxPxErrorCallbackPod* ret = PhysPxGetErrorCallbackNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetBroadcastError")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxErrorCallbackPod* PhysPxGetBroadcastErrorNative(); + + public static PhysxPxErrorCallbackPod* PhysPxGetBroadcastError() + { + PhysxPxErrorCallbackPod* ret = PhysPxGetBroadcastErrorNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetWarnOnceTimeStamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxGetWarnOnceTimeStampNative(); + + public static uint PhysPxGetWarnOnceTimeStamp() + { + uint ret = PhysPxGetWarnOnceTimeStampNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxDecFoundationRefCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxDecFoundationRefCountNative(); + + public static void PhysPxDecFoundationRefCount() + { + PhysPxDecFoundationRefCountNative(); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxIncFoundationRefCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxIncFoundationRefCountNative(); + + public static void PhysPxIncFoundationRefCount() + { + PhysPxIncFoundationRefCountNative(); + } + + [LibraryImport(LibName, EntryPoint = "PxAllocator_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxAllocatorPod PxAllocatorNewNative(byte* anonparam0); + + public static PhysxPxAllocatorPod PxAllocatorNew( byte* anonparam0) + { + PhysxPxAllocatorPod ret = PxAllocatorNewNative(anonparam0); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAllocator_allocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxAllocatorAllocateMutNative(PhysxPxAllocatorPod* selfPod, ulong sizePod, byte* file, int line); + + public static void* PxAllocatorAllocateMut( PhysxPxAllocatorPod* selfPod, ulong sizePod, byte* file, int line) + { + void* ret = PxAllocatorAllocateMutNative(selfPod, sizePod, file, line); + return ret; + } + + public static void* PxAllocatorAllocateMut( PhysxPxAllocatorPod* selfPod, nuint sizePod, byte* file, int line) + { + void* ret = PxAllocatorAllocateMutNative(selfPod, sizePod, file, line); + return ret; + } + + public static void* PxAllocatorAllocateMut( PhysxPxAllocatorPod* selfPod, ulong sizePod, ref byte file, int line) + { + fixed (byte* pfile = &file) + { + void* ret = PxAllocatorAllocateMutNative(selfPod, sizePod, (byte*)pfile, line); + return ret; + } + } + + public static void* PxAllocatorAllocateMut( PhysxPxAllocatorPod* selfPod, ulong sizePod, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxAllocatorAllocateMutNative(selfPod, sizePod, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxAllocatorAllocateMut( PhysxPxAllocatorPod* selfPod, nuint sizePod, ref byte file, int line) + { + fixed (byte* pfile = &file) + { + void* ret = PxAllocatorAllocateMutNative(selfPod, sizePod, (byte*)pfile, line); + return ret; + } + } + + public static void* PxAllocatorAllocateMut( PhysxPxAllocatorPod* selfPod, nuint sizePod, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxAllocatorAllocateMutNative(selfPod, sizePod, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAllocator_deallocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAllocatorDeallocateMutNative(PhysxPxAllocatorPod* selfPod, void* ptr); + + public static void PxAllocatorDeallocateMut( PhysxPxAllocatorPod* selfPod, void* ptr) + { + PxAllocatorDeallocateMutNative(selfPod, ptr); + } + + [LibraryImport(LibName, EntryPoint = "PxRawAllocator_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRawAllocatorPod PxRawAllocatorNewNative(byte* anonparam0); + + public static PhysxPxRawAllocatorPod PxRawAllocatorNew( byte* anonparam0) + { + PhysxPxRawAllocatorPod ret = PxRawAllocatorNewNative(anonparam0); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRawAllocator_allocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxRawAllocatorAllocateMutNative(PhysxPxRawAllocatorPod* selfPod, ulong sizePod, byte* anonparam1, int anonparam2); + + public static void* PxRawAllocatorAllocateMut( PhysxPxRawAllocatorPod* selfPod, ulong sizePod, byte* anonparam1, int anonparam2) + { + void* ret = PxRawAllocatorAllocateMutNative(selfPod, sizePod, anonparam1, anonparam2); + return ret; + } + + public static void* PxRawAllocatorAllocateMut( PhysxPxRawAllocatorPod* selfPod, nuint sizePod, byte* anonparam1, int anonparam2) + { + void* ret = PxRawAllocatorAllocateMutNative(selfPod, sizePod, anonparam1, anonparam2); + return ret; + } + + public static void* PxRawAllocatorAllocateMut( PhysxPxRawAllocatorPod* selfPod, ulong sizePod, ref byte anonparam1, int anonparam2) + { + fixed (byte* panonparam1 = &anonparam1) + { + void* ret = PxRawAllocatorAllocateMutNative(selfPod, sizePod, (byte*)panonparam1, anonparam2); + return ret; + } + } + + public static void* PxRawAllocatorAllocateMut( PhysxPxRawAllocatorPod* selfPod, ulong sizePod, string anonparam1, int anonparam2) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (anonparam1 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(anonparam1); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(anonparam1, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxRawAllocatorAllocateMutNative(selfPod, sizePod, pStr0, anonparam2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxRawAllocatorAllocateMut( PhysxPxRawAllocatorPod* selfPod, nuint sizePod, ref byte anonparam1, int anonparam2) + { + fixed (byte* panonparam1 = &anonparam1) + { + void* ret = PxRawAllocatorAllocateMutNative(selfPod, sizePod, (byte*)panonparam1, anonparam2); + return ret; + } + } + + public static void* PxRawAllocatorAllocateMut( PhysxPxRawAllocatorPod* selfPod, nuint sizePod, string anonparam1, int anonparam2) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (anonparam1 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(anonparam1); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(anonparam1, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxRawAllocatorAllocateMutNative(selfPod, sizePod, pStr0, anonparam2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRawAllocator_deallocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRawAllocatorDeallocateMutNative(PhysxPxRawAllocatorPod* selfPod, void* ptr); + + public static void PxRawAllocatorDeallocateMut( PhysxPxRawAllocatorPod* selfPod, void* ptr) + { + PxRawAllocatorDeallocateMutNative(selfPod, ptr); + } + + [LibraryImport(LibName, EntryPoint = "PxVirtualAllocatorCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxVirtualAllocatorCallbackDeleteNative(PhysxPxVirtualAllocatorCallbackPod* selfPod); + + public static void PxVirtualAllocatorCallbackDelete( PhysxPxVirtualAllocatorCallbackPod* selfPod) + { + PxVirtualAllocatorCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxVirtualAllocatorCallback_allocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxVirtualAllocatorCallbackAllocateMutNative(PhysxPxVirtualAllocatorCallbackPod* selfPod, ulong sizePod, int group, byte* file, int line); + + public static void* PxVirtualAllocatorCallbackAllocateMut( PhysxPxVirtualAllocatorCallbackPod* selfPod, ulong sizePod, int group, byte* file, int line) + { + void* ret = PxVirtualAllocatorCallbackAllocateMutNative(selfPod, sizePod, group, file, line); + return ret; + } + + public static void* PxVirtualAllocatorCallbackAllocateMut( PhysxPxVirtualAllocatorCallbackPod* selfPod, nuint sizePod, int group, byte* file, int line) + { + void* ret = PxVirtualAllocatorCallbackAllocateMutNative(selfPod, sizePod, group, file, line); + return ret; + } + + public static void* PxVirtualAllocatorCallbackAllocateMut( PhysxPxVirtualAllocatorCallbackPod* selfPod, ulong sizePod, int group, ref byte file, int line) + { + fixed (byte* pfile = &file) + { + void* ret = PxVirtualAllocatorCallbackAllocateMutNative(selfPod, sizePod, group, (byte*)pfile, line); + return ret; + } + } + + public static void* PxVirtualAllocatorCallbackAllocateMut( PhysxPxVirtualAllocatorCallbackPod* selfPod, ulong sizePod, int group, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxVirtualAllocatorCallbackAllocateMutNative(selfPod, sizePod, group, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxVirtualAllocatorCallbackAllocateMut( PhysxPxVirtualAllocatorCallbackPod* selfPod, nuint sizePod, int group, ref byte file, int line) + { + fixed (byte* pfile = &file) + { + void* ret = PxVirtualAllocatorCallbackAllocateMutNative(selfPod, sizePod, group, (byte*)pfile, line); + return ret; + } + } + + public static void* PxVirtualAllocatorCallbackAllocateMut( PhysxPxVirtualAllocatorCallbackPod* selfPod, nuint sizePod, int group, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxVirtualAllocatorCallbackAllocateMutNative(selfPod, sizePod, group, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVirtualAllocatorCallback_deallocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxVirtualAllocatorCallbackDeallocateMutNative(PhysxPxVirtualAllocatorCallbackPod* selfPod, void* ptr); + + public static void PxVirtualAllocatorCallbackDeallocateMut( PhysxPxVirtualAllocatorCallbackPod* selfPod, void* ptr) + { + PxVirtualAllocatorCallbackDeallocateMutNative(selfPod, ptr); + } + + [LibraryImport(LibName, EntryPoint = "PxVirtualAllocator_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVirtualAllocatorPod PxVirtualAllocatorNewNative(PhysxPxVirtualAllocatorCallbackPod* callbackPod, int group); + + public static PhysxPxVirtualAllocatorPod PxVirtualAllocatorNew( PhysxPxVirtualAllocatorCallbackPod* callbackPod, int group) + { + PhysxPxVirtualAllocatorPod ret = PxVirtualAllocatorNewNative(callbackPod, group); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVirtualAllocator_allocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxVirtualAllocatorAllocateMutNative(PhysxPxVirtualAllocatorPod* selfPod, ulong sizePod, byte* file, int line); + + public static void* PxVirtualAllocatorAllocateMut( PhysxPxVirtualAllocatorPod* selfPod, ulong sizePod, byte* file, int line) + { + void* ret = PxVirtualAllocatorAllocateMutNative(selfPod, sizePod, file, line); + return ret; + } + + public static void* PxVirtualAllocatorAllocateMut( PhysxPxVirtualAllocatorPod* selfPod, nuint sizePod, byte* file, int line) + { + void* ret = PxVirtualAllocatorAllocateMutNative(selfPod, sizePod, file, line); + return ret; + } + + public static void* PxVirtualAllocatorAllocateMut( PhysxPxVirtualAllocatorPod* selfPod, ulong sizePod, ref byte file, int line) + { + fixed (byte* pfile = &file) + { + void* ret = PxVirtualAllocatorAllocateMutNative(selfPod, sizePod, (byte*)pfile, line); + return ret; + } + } + + public static void* PxVirtualAllocatorAllocateMut( PhysxPxVirtualAllocatorPod* selfPod, ulong sizePod, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxVirtualAllocatorAllocateMutNative(selfPod, sizePod, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxVirtualAllocatorAllocateMut( PhysxPxVirtualAllocatorPod* selfPod, nuint sizePod, ref byte file, int line) + { + fixed (byte* pfile = &file) + { + void* ret = PxVirtualAllocatorAllocateMutNative(selfPod, sizePod, (byte*)pfile, line); + return ret; + } + } + + public static void* PxVirtualAllocatorAllocateMut( PhysxPxVirtualAllocatorPod* selfPod, nuint sizePod, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxVirtualAllocatorAllocateMutNative(selfPod, sizePod, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVirtualAllocator_deallocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxVirtualAllocatorDeallocateMutNative(PhysxPxVirtualAllocatorPod* selfPod, void* ptr); + + public static void PxVirtualAllocatorDeallocateMut( PhysxPxVirtualAllocatorPod* selfPod, void* ptr) + { + PxVirtualAllocatorDeallocateMutNative(selfPod, ptr); + } + + [LibraryImport(LibName, EntryPoint = "PxTempAllocatorChunk_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTempAllocatorChunkPod PxTempAllocatorChunkNewNative(); + + public static PhysxPxTempAllocatorChunkPod PxTempAllocatorChunkNew() + { + PhysxPxTempAllocatorChunkPod ret = PxTempAllocatorChunkNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTempAllocator_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTempAllocatorPod PxTempAllocatorNewNative(byte* anonparam0); + + public static PhysxPxTempAllocatorPod PxTempAllocatorNew( byte* anonparam0) + { + PhysxPxTempAllocatorPod ret = PxTempAllocatorNewNative(anonparam0); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTempAllocator_allocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxTempAllocatorAllocateMutNative(PhysxPxTempAllocatorPod* selfPod, ulong sizePod, byte* file, int line); + + public static void* PxTempAllocatorAllocateMut( PhysxPxTempAllocatorPod* selfPod, ulong sizePod, byte* file, int line) + { + void* ret = PxTempAllocatorAllocateMutNative(selfPod, sizePod, file, line); + return ret; + } + + public static void* PxTempAllocatorAllocateMut( PhysxPxTempAllocatorPod* selfPod, nuint sizePod, byte* file, int line) + { + void* ret = PxTempAllocatorAllocateMutNative(selfPod, sizePod, file, line); + return ret; + } + + public static void* PxTempAllocatorAllocateMut( PhysxPxTempAllocatorPod* selfPod, ulong sizePod, ref byte file, int line) + { + fixed (byte* pfile = &file) + { + void* ret = PxTempAllocatorAllocateMutNative(selfPod, sizePod, (byte*)pfile, line); + return ret; + } + } + + public static void* PxTempAllocatorAllocateMut( PhysxPxTempAllocatorPod* selfPod, ulong sizePod, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxTempAllocatorAllocateMutNative(selfPod, sizePod, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxTempAllocatorAllocateMut( PhysxPxTempAllocatorPod* selfPod, nuint sizePod, ref byte file, int line) + { + fixed (byte* pfile = &file) + { + void* ret = PxTempAllocatorAllocateMutNative(selfPod, sizePod, (byte*)pfile, line); + return ret; + } + } + + public static void* PxTempAllocatorAllocateMut( PhysxPxTempAllocatorPod* selfPod, nuint sizePod, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxTempAllocatorAllocateMutNative(selfPod, sizePod, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTempAllocator_deallocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTempAllocatorDeallocateMutNative(PhysxPxTempAllocatorPod* selfPod, void* ptr); + + public static void PxTempAllocatorDeallocateMut( PhysxPxTempAllocatorPod* selfPod, void* ptr) + { + PxTempAllocatorDeallocateMutNative(selfPod, ptr); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxMemZero")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PhysPxMemZeroNative(void* dest, uint count); + + public static void* PhysPxMemZero( void* dest, uint count) + { + void* ret = PhysPxMemZeroNative(dest, count); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxMemSet")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PhysPxMemSetNative(void* dest, int c, uint count); + + public static void* PhysPxMemSet( void* dest, int c, uint count) + { + void* ret = PhysPxMemSetNative(dest, c, count); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxMemCopy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PhysPxMemCopyNative(void* dest, void* src, uint count); + + public static void* PhysPxMemCopy( void* dest, void* src, uint count) + { + void* ret = PhysPxMemCopyNative(dest, src, count); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxMemMove")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PhysPxMemMoveNative(void* dest, void* src, uint count); + + public static void* PhysPxMemMove( void* dest, void* src, uint count) + { + void* ret = PhysPxMemMoveNative(dest, src, count); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxMarkSerializedMemory")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxMarkSerializedMemoryNative(void* ptr, uint byteSize); + + public static void PhysPxMarkSerializedMemory( void* ptr, uint byteSize) + { + PhysPxMarkSerializedMemoryNative(ptr, byteSize); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxMemoryBarrier")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxMemoryBarrierNative(); + + public static void PhysPxMemoryBarrier() + { + PhysPxMemoryBarrierNative(); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxHighestSetBitUnsafe")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxHighestSetBitUnsafeNative(uint v); + + public static uint PhysPxHighestSetBitUnsafe( uint v) + { + uint ret = PhysPxHighestSetBitUnsafeNative(v); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxLowestSetBitUnsafe")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxLowestSetBitUnsafeNative(uint v); + + public static uint PhysPxLowestSetBitUnsafe( uint v) + { + uint ret = PhysPxLowestSetBitUnsafeNative(v); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCountLeadingZeros")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxCountLeadingZerosNative(uint v); + + public static uint PhysPxCountLeadingZeros( uint v) + { + uint ret = PhysPxCountLeadingZerosNative(v); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxPrefetchLine")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxPrefetchLineNative(void* ptr, uint offset); + + public static void PhysPxPrefetchLine( void* ptr, uint offset) + { + PhysPxPrefetchLineNative(ptr, offset); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxPrefetch")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxPrefetchNative(void* ptr, uint count); + + public static void PhysPxPrefetch( void* ptr, uint count) + { + PhysPxPrefetchNative(ptr, count); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxBitCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxBitCountNative(uint v); + + public static uint PhysPxBitCount( uint v) + { + uint ret = PhysPxBitCountNative(v); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxIsPowerOfTwo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxIsPowerOfTwoNative(uint x); + + public static bool PhysPxIsPowerOfTwo( uint x) + { + byte ret = PhysPxIsPowerOfTwoNative(x); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxNextPowerOfTwo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxNextPowerOfTwoNative(uint x); + + public static uint PhysPxNextPowerOfTwo( uint x) + { + uint ret = PhysPxNextPowerOfTwoNative(x); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxLowestSetBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxLowestSetBitNative(uint x); + + public static uint PhysPxLowestSetBit( uint x) + { + uint ret = PhysPxLowestSetBitNative(x); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxHighestSetBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxHighestSetBitNative(uint x); + + public static uint PhysPxHighestSetBit( uint x) + { + uint ret = PhysPxHighestSetBitNative(x); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxILog2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxILog2Native(uint num); + + public static uint PhysPxILog2( uint num) + { + uint ret = PhysPxILog2Native(num); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxVec3NewNative(); + + public static PhysxPxVec3Pod PxVec3New() + { + PhysxPxVec3Pod ret = PxVec3NewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxVec3New1Native(int anonparam0Pod); + + public static PhysxPxVec3Pod PxVec3New1( int anonparam0Pod) + { + PhysxPxVec3Pod ret = PxVec3New1Native(anonparam0Pod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxVec3New2Native(float a); + + public static PhysxPxVec3Pod PxVec3New2( float a) + { + PhysxPxVec3Pod ret = PxVec3New2Native(a); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_new_3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxVec3New3Native(float nx, float ny, float nz); + + public static PhysxPxVec3Pod PxVec3New3( float nx, float ny, float nz) + { + PhysxPxVec3Pod ret = PxVec3New3Native(nx, ny, nz); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_isZero")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxVec3IsZeroNative(PhysxPxVec3Pod* selfPod); + + public static bool PxVec3IsZero( PhysxPxVec3Pod* selfPod) + { + byte ret = PxVec3IsZeroNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_isFinite")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxVec3IsFiniteNative(PhysxPxVec3Pod* selfPod); + + public static bool PxVec3IsFinite( PhysxPxVec3Pod* selfPod) + { + byte ret = PxVec3IsFiniteNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_isNormalized")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxVec3IsNormalizedNative(PhysxPxVec3Pod* selfPod); + + public static bool PxVec3IsNormalized( PhysxPxVec3Pod* selfPod) + { + byte ret = PxVec3IsNormalizedNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_magnitudeSquared")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec3MagnitudeSquaredNative(PhysxPxVec3Pod* selfPod); + + public static float PxVec3MagnitudeSquared( PhysxPxVec3Pod* selfPod) + { + float ret = PxVec3MagnitudeSquaredNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_magnitude")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec3MagnitudeNative(PhysxPxVec3Pod* selfPod); + + public static float PxVec3Magnitude( PhysxPxVec3Pod* selfPod) + { + float ret = PxVec3MagnitudeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_dot")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec3DotNative(PhysxPxVec3Pod* selfPod, PhysxPxVec3Pod* vPod); + + public static float PxVec3Dot( PhysxPxVec3Pod* selfPod, PhysxPxVec3Pod* vPod) + { + float ret = PxVec3DotNative(selfPod, vPod); + return ret; + } + + public static float PxVec3Dot( PhysxPxVec3Pod* selfPod, ref PhysxPxVec3Pod vPod) + { + fixed (PhysxPxVec3Pod* pvPod = &vPod) + { + float ret = PxVec3DotNative(selfPod, (PhysxPxVec3Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_cross")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxVec3CrossNative(PhysxPxVec3Pod* selfPod, PhysxPxVec3Pod* vPod); + + public static PhysxPxVec3Pod PxVec3Cross( PhysxPxVec3Pod* selfPod, PhysxPxVec3Pod* vPod) + { + PhysxPxVec3Pod ret = PxVec3CrossNative(selfPod, vPod); + return ret; + } + + public static PhysxPxVec3Pod PxVec3Cross( PhysxPxVec3Pod* selfPod, ref PhysxPxVec3Pod vPod) + { + fixed (PhysxPxVec3Pod* pvPod = &vPod) + { + PhysxPxVec3Pod ret = PxVec3CrossNative(selfPod, (PhysxPxVec3Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_getNormalized")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxVec3GetNormalizedNative(PhysxPxVec3Pod* selfPod); + + public static PhysxPxVec3Pod PxVec3GetNormalized( PhysxPxVec3Pod* selfPod) + { + PhysxPxVec3Pod ret = PxVec3GetNormalizedNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_normalize_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec3NormalizeMutNative(PhysxPxVec3Pod* selfPod); + + public static float PxVec3NormalizeMut( PhysxPxVec3Pod* selfPod) + { + float ret = PxVec3NormalizeMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_normalizeSafe_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec3NormalizeSafeMutNative(PhysxPxVec3Pod* selfPod); + + public static float PxVec3NormalizeSafeMut( PhysxPxVec3Pod* selfPod) + { + float ret = PxVec3NormalizeSafeMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_normalizeFast_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec3NormalizeFastMutNative(PhysxPxVec3Pod* selfPod); + + public static float PxVec3NormalizeFastMut( PhysxPxVec3Pod* selfPod) + { + float ret = PxVec3NormalizeFastMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_multiply")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxVec3MultiplyNative(PhysxPxVec3Pod* selfPod, PhysxPxVec3Pod* aPod); + + public static PhysxPxVec3Pod PxVec3Multiply( PhysxPxVec3Pod* selfPod, PhysxPxVec3Pod* aPod) + { + PhysxPxVec3Pod ret = PxVec3MultiplyNative(selfPod, aPod); + return ret; + } + + public static PhysxPxVec3Pod PxVec3Multiply( PhysxPxVec3Pod* selfPod, ref PhysxPxVec3Pod aPod) + { + fixed (PhysxPxVec3Pod* paPod = &aPod) + { + PhysxPxVec3Pod ret = PxVec3MultiplyNative(selfPod, (PhysxPxVec3Pod*)paPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_minimum")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxVec3MinimumNative(PhysxPxVec3Pod* selfPod, PhysxPxVec3Pod* vPod); + + public static PhysxPxVec3Pod PxVec3Minimum( PhysxPxVec3Pod* selfPod, PhysxPxVec3Pod* vPod) + { + PhysxPxVec3Pod ret = PxVec3MinimumNative(selfPod, vPod); + return ret; + } + + public static PhysxPxVec3Pod PxVec3Minimum( PhysxPxVec3Pod* selfPod, ref PhysxPxVec3Pod vPod) + { + fixed (PhysxPxVec3Pod* pvPod = &vPod) + { + PhysxPxVec3Pod ret = PxVec3MinimumNative(selfPod, (PhysxPxVec3Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_minElement")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec3MinElementNative(PhysxPxVec3Pod* selfPod); + + public static float PxVec3MinElement( PhysxPxVec3Pod* selfPod) + { + float ret = PxVec3MinElementNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_maximum")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxVec3MaximumNative(PhysxPxVec3Pod* selfPod, PhysxPxVec3Pod* vPod); + + public static PhysxPxVec3Pod PxVec3Maximum( PhysxPxVec3Pod* selfPod, PhysxPxVec3Pod* vPod) + { + PhysxPxVec3Pod ret = PxVec3MaximumNative(selfPod, vPod); + return ret; + } + + public static PhysxPxVec3Pod PxVec3Maximum( PhysxPxVec3Pod* selfPod, ref PhysxPxVec3Pod vPod) + { + fixed (PhysxPxVec3Pod* pvPod = &vPod) + { + PhysxPxVec3Pod ret = PxVec3MaximumNative(selfPod, (PhysxPxVec3Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_maxElement")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec3MaxElementNative(PhysxPxVec3Pod* selfPod); + + public static float PxVec3MaxElement( PhysxPxVec3Pod* selfPod) + { + float ret = PxVec3MaxElementNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3_abs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxVec3AbsNative(PhysxPxVec3Pod* selfPod); + + public static PhysxPxVec3Pod PxVec3Abs( PhysxPxVec3Pod* selfPod) + { + PhysxPxVec3Pod ret = PxVec3AbsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3Padded_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3PaddedPod* PxVec3PaddedNewAllocNative(); + + public static PhysxPxVec3PaddedPod* PxVec3PaddedNewAlloc() + { + PhysxPxVec3PaddedPod* ret = PxVec3PaddedNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3Padded_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxVec3PaddedDeleteNative(PhysxPxVec3PaddedPod* selfPod); + + public static void PxVec3PaddedDelete( PhysxPxVec3PaddedPod* selfPod) + { + PxVec3PaddedDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxVec3Padded_new_alloc_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3PaddedPod* PxVec3PaddedNewAlloc1Native(PhysxPxVec3Pod* pPod); + + public static PhysxPxVec3PaddedPod* PxVec3PaddedNewAlloc1( PhysxPxVec3Pod* pPod) + { + PhysxPxVec3PaddedPod* ret = PxVec3PaddedNewAlloc1Native(pPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec3Padded_new_alloc_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3PaddedPod* PxVec3PaddedNewAlloc2Native(float f); + + public static PhysxPxVec3PaddedPod* PxVec3PaddedNewAlloc2( float f) + { + PhysxPxVec3PaddedPod* ret = PxVec3PaddedNewAlloc2Native(f); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQuatPod PxQuatNewNative(); + + public static PhysxPxQuatPod PxQuatNew() + { + PhysxPxQuatPod ret = PxQuatNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQuatPod PxQuatNew1Native(int anonparam0Pod); + + public static PhysxPxQuatPod PxQuatNew1( int anonparam0Pod) + { + PhysxPxQuatPod ret = PxQuatNew1Native(anonparam0Pod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQuatPod PxQuatNew2Native(float r); + + public static PhysxPxQuatPod PxQuatNew2( float r) + { + PhysxPxQuatPod ret = PxQuatNew2Native(r); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_new_3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQuatPod PxQuatNew3Native(float nx, float ny, float nz, float nw); + + public static PhysxPxQuatPod PxQuatNew3( float nx, float ny, float nz, float nw) + { + PhysxPxQuatPod ret = PxQuatNew3Native(nx, ny, nz, nw); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_new_4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQuatPod PxQuatNew4Native(float angleRadians, PhysxPxVec3Pod* unitaxisPod); + + public static PhysxPxQuatPod PxQuatNew4( float angleRadians, PhysxPxVec3Pod* unitaxisPod) + { + PhysxPxQuatPod ret = PxQuatNew4Native(angleRadians, unitaxisPod); + return ret; + } + + public static PhysxPxQuatPod PxQuatNew4( float angleRadians, ref PhysxPxVec3Pod unitaxisPod) + { + fixed (PhysxPxVec3Pod* punitaxisPod = &unitaxisPod) + { + PhysxPxQuatPod ret = PxQuatNew4Native(angleRadians, (PhysxPxVec3Pod*)punitaxisPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_new_5")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQuatPod PxQuatNew5Native(PhysxPxMat33Pod* mPod); + + public static PhysxPxQuatPod PxQuatNew5( PhysxPxMat33Pod* mPod) + { + PhysxPxQuatPod ret = PxQuatNew5Native(mPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_isIdentity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxQuatIsIdentityNative(PhysxPxQuatPod* selfPod); + + public static bool PxQuatIsIdentity( PhysxPxQuatPod* selfPod) + { + byte ret = PxQuatIsIdentityNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_isFinite")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxQuatIsFiniteNative(PhysxPxQuatPod* selfPod); + + public static bool PxQuatIsFinite( PhysxPxQuatPod* selfPod) + { + byte ret = PxQuatIsFiniteNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_isUnit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxQuatIsUnitNative(PhysxPxQuatPod* selfPod); + + public static bool PxQuatIsUnit( PhysxPxQuatPod* selfPod) + { + byte ret = PxQuatIsUnitNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_isSane")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxQuatIsSaneNative(PhysxPxQuatPod* selfPod); + + public static bool PxQuatIsSane( PhysxPxQuatPod* selfPod) + { + byte ret = PxQuatIsSaneNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_toRadiansAndUnitAxis")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxQuatToRadiansAndUnitAxisNative(PhysxPxQuatPod* selfPod, float* anglePod, PhysxPxVec3Pod* axisPod); + + public static void PxQuatToRadiansAndUnitAxis( PhysxPxQuatPod* selfPod, float* anglePod, PhysxPxVec3Pod* axisPod) + { + PxQuatToRadiansAndUnitAxisNative(selfPod, anglePod, axisPod); + } + + public static void PxQuatToRadiansAndUnitAxis( PhysxPxQuatPod* selfPod, ref float anglePod, PhysxPxVec3Pod* axisPod) + { + fixed (float* panglePod = &anglePod) + { + PxQuatToRadiansAndUnitAxisNative(selfPod, (float*)panglePod, axisPod); + } + } + + public static void PxQuatToRadiansAndUnitAxis( PhysxPxQuatPod* selfPod, float* anglePod, ref PhysxPxVec3Pod axisPod) + { + fixed (PhysxPxVec3Pod* paxisPod = &axisPod) + { + PxQuatToRadiansAndUnitAxisNative(selfPod, anglePod, (PhysxPxVec3Pod*)paxisPod); + } + } + + public static void PxQuatToRadiansAndUnitAxis( PhysxPxQuatPod* selfPod, ref float anglePod, ref PhysxPxVec3Pod axisPod) + { + fixed (float* panglePod = &anglePod) + { + fixed (PhysxPxVec3Pod* paxisPod = &axisPod) + { + PxQuatToRadiansAndUnitAxisNative(selfPod, (float*)panglePod, (PhysxPxVec3Pod*)paxisPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_getAngle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxQuatGetAngleNative(PhysxPxQuatPod* selfPod); + + public static float PxQuatGetAngle( PhysxPxQuatPod* selfPod) + { + float ret = PxQuatGetAngleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_getAngle_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxQuatGetAngle1Native(PhysxPxQuatPod* selfPod, PhysxPxQuatPod* qPod); + + public static float PxQuatGetAngle1( PhysxPxQuatPod* selfPod, PhysxPxQuatPod* qPod) + { + float ret = PxQuatGetAngle1Native(selfPod, qPod); + return ret; + } + + public static float PxQuatGetAngle1( PhysxPxQuatPod* selfPod, ref PhysxPxQuatPod qPod) + { + fixed (PhysxPxQuatPod* pqPod = &qPod) + { + float ret = PxQuatGetAngle1Native(selfPod, (PhysxPxQuatPod*)pqPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_magnitudeSquared")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxQuatMagnitudeSquaredNative(PhysxPxQuatPod* selfPod); + + public static float PxQuatMagnitudeSquared( PhysxPxQuatPod* selfPod) + { + float ret = PxQuatMagnitudeSquaredNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_dot")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxQuatDotNative(PhysxPxQuatPod* selfPod, PhysxPxQuatPod* vPod); + + public static float PxQuatDot( PhysxPxQuatPod* selfPod, PhysxPxQuatPod* vPod) + { + float ret = PxQuatDotNative(selfPod, vPod); + return ret; + } + + public static float PxQuatDot( PhysxPxQuatPod* selfPod, ref PhysxPxQuatPod vPod) + { + fixed (PhysxPxQuatPod* pvPod = &vPod) + { + float ret = PxQuatDotNative(selfPod, (PhysxPxQuatPod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_getNormalized")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQuatPod PxQuatGetNormalizedNative(PhysxPxQuatPod* selfPod); + + public static PhysxPxQuatPod PxQuatGetNormalized( PhysxPxQuatPod* selfPod) + { + PhysxPxQuatPod ret = PxQuatGetNormalizedNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_magnitude")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxQuatMagnitudeNative(PhysxPxQuatPod* selfPod); + + public static float PxQuatMagnitude( PhysxPxQuatPod* selfPod) + { + float ret = PxQuatMagnitudeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_normalize_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxQuatNormalizeMutNative(PhysxPxQuatPod* selfPod); + + public static float PxQuatNormalizeMut( PhysxPxQuatPod* selfPod) + { + float ret = PxQuatNormalizeMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_getConjugate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQuatPod PxQuatGetConjugateNative(PhysxPxQuatPod* selfPod); + + public static PhysxPxQuatPod PxQuatGetConjugate( PhysxPxQuatPod* selfPod) + { + PhysxPxQuatPod ret = PxQuatGetConjugateNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_getImaginaryPart")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxQuatGetImaginaryPartNative(PhysxPxQuatPod* selfPod); + + public static PhysxPxVec3Pod PxQuatGetImaginaryPart( PhysxPxQuatPod* selfPod) + { + PhysxPxVec3Pod ret = PxQuatGetImaginaryPartNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_getBasisVector0")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxQuatGetBasisVector0Native(PhysxPxQuatPod* selfPod); + + public static PhysxPxVec3Pod PxQuatGetBasisVector0( PhysxPxQuatPod* selfPod) + { + PhysxPxVec3Pod ret = PxQuatGetBasisVector0Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_getBasisVector1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxQuatGetBasisVector1Native(PhysxPxQuatPod* selfPod); + + public static PhysxPxVec3Pod PxQuatGetBasisVector1( PhysxPxQuatPod* selfPod) + { + PhysxPxVec3Pod ret = PxQuatGetBasisVector1Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_getBasisVector2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxQuatGetBasisVector2Native(PhysxPxQuatPod* selfPod); + + public static PhysxPxVec3Pod PxQuatGetBasisVector2( PhysxPxQuatPod* selfPod) + { + PhysxPxVec3Pod ret = PxQuatGetBasisVector2Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_rotate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxQuatRotateNative(PhysxPxQuatPod* selfPod, PhysxPxVec3Pod* vPod); + + public static PhysxPxVec3Pod PxQuatRotate( PhysxPxQuatPod* selfPod, PhysxPxVec3Pod* vPod) + { + PhysxPxVec3Pod ret = PxQuatRotateNative(selfPod, vPod); + return ret; + } + + public static PhysxPxVec3Pod PxQuatRotate( PhysxPxQuatPod* selfPod, ref PhysxPxVec3Pod vPod) + { + fixed (PhysxPxVec3Pod* pvPod = &vPod) + { + PhysxPxVec3Pod ret = PxQuatRotateNative(selfPod, (PhysxPxVec3Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxQuat_rotateInv")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxQuatRotateInvNative(PhysxPxQuatPod* selfPod, PhysxPxVec3Pod* vPod); + + public static PhysxPxVec3Pod PxQuatRotateInv( PhysxPxQuatPod* selfPod, PhysxPxVec3Pod* vPod) + { + PhysxPxVec3Pod ret = PxQuatRotateInvNative(selfPod, vPod); + return ret; + } + + public static PhysxPxVec3Pod PxQuatRotateInv( PhysxPxQuatPod* selfPod, ref PhysxPxVec3Pod vPod) + { + fixed (PhysxPxVec3Pod* pvPod = &vPod) + { + PhysxPxVec3Pod ret = PxQuatRotateInvNative(selfPod, (PhysxPxVec3Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxTransformNewNative(); + + public static PhysxPxTransformPod PxTransformNew() + { + PhysxPxTransformPod ret = PxTransformNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxTransformNew1Native(PhysxPxVec3Pod* positionPod); + + public static PhysxPxTransformPod PxTransformNew1( PhysxPxVec3Pod* positionPod) + { + PhysxPxTransformPod ret = PxTransformNew1Native(positionPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxTransformNew2Native(int anonparam0Pod); + + public static PhysxPxTransformPod PxTransformNew2( int anonparam0Pod) + { + PhysxPxTransformPod ret = PxTransformNew2Native(anonparam0Pod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_new_3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxTransformNew3Native(PhysxPxQuatPod* orientationPod); + + public static PhysxPxTransformPod PxTransformNew3( PhysxPxQuatPod* orientationPod) + { + PhysxPxTransformPod ret = PxTransformNew3Native(orientationPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_new_4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxTransformNew4Native(float x, float y, float z, PhysxPxQuatPod aqPod); + + public static PhysxPxTransformPod PxTransformNew4( float x, float y, float z, PhysxPxQuatPod aqPod) + { + PhysxPxTransformPod ret = PxTransformNew4Native(x, y, z, aqPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_new_5")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxTransformNew5Native(PhysxPxVec3Pod* p0Pod, PhysxPxQuatPod* q0Pod); + + public static PhysxPxTransformPod PxTransformNew5( PhysxPxVec3Pod* p0Pod, PhysxPxQuatPod* q0Pod) + { + PhysxPxTransformPod ret = PxTransformNew5Native(p0Pod, q0Pod); + return ret; + } + + public static PhysxPxTransformPod PxTransformNew5( PhysxPxVec3Pod* p0Pod, ref PhysxPxQuatPod q0Pod) + { + fixed (PhysxPxQuatPod* pq0Pod = &q0Pod) + { + PhysxPxTransformPod ret = PxTransformNew5Native(p0Pod, (PhysxPxQuatPod*)pq0Pod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_new_6")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxTransformNew6Native(PhysxPxMat44Pod* mPod); + + public static PhysxPxTransformPod PxTransformNew6( PhysxPxMat44Pod* mPod) + { + PhysxPxTransformPod ret = PxTransformNew6Native(mPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_getInverse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxTransformGetInverseNative(PhysxPxTransformPod* selfPod); + + public static PhysxPxTransformPod PxTransformGetInverse( PhysxPxTransformPod* selfPod) + { + PhysxPxTransformPod ret = PxTransformGetInverseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_transform")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxTransformTransformNative(PhysxPxTransformPod* selfPod, PhysxPxVec3Pod* inputPod); + + public static PhysxPxVec3Pod PxTransformTransform( PhysxPxTransformPod* selfPod, PhysxPxVec3Pod* inputPod) + { + PhysxPxVec3Pod ret = PxTransformTransformNative(selfPod, inputPod); + return ret; + } + + public static PhysxPxVec3Pod PxTransformTransform( PhysxPxTransformPod* selfPod, ref PhysxPxVec3Pod inputPod) + { + fixed (PhysxPxVec3Pod* pinputPod = &inputPod) + { + PhysxPxVec3Pod ret = PxTransformTransformNative(selfPod, (PhysxPxVec3Pod*)pinputPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_transformInv")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxTransformTransformInvNative(PhysxPxTransformPod* selfPod, PhysxPxVec3Pod* inputPod); + + public static PhysxPxVec3Pod PxTransformTransformInv( PhysxPxTransformPod* selfPod, PhysxPxVec3Pod* inputPod) + { + PhysxPxVec3Pod ret = PxTransformTransformInvNative(selfPod, inputPod); + return ret; + } + + public static PhysxPxVec3Pod PxTransformTransformInv( PhysxPxTransformPod* selfPod, ref PhysxPxVec3Pod inputPod) + { + fixed (PhysxPxVec3Pod* pinputPod = &inputPod) + { + PhysxPxVec3Pod ret = PxTransformTransformInvNative(selfPod, (PhysxPxVec3Pod*)pinputPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_rotate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxTransformRotateNative(PhysxPxTransformPod* selfPod, PhysxPxVec3Pod* inputPod); + + public static PhysxPxVec3Pod PxTransformRotate( PhysxPxTransformPod* selfPod, PhysxPxVec3Pod* inputPod) + { + PhysxPxVec3Pod ret = PxTransformRotateNative(selfPod, inputPod); + return ret; + } + + public static PhysxPxVec3Pod PxTransformRotate( PhysxPxTransformPod* selfPod, ref PhysxPxVec3Pod inputPod) + { + fixed (PhysxPxVec3Pod* pinputPod = &inputPod) + { + PhysxPxVec3Pod ret = PxTransformRotateNative(selfPod, (PhysxPxVec3Pod*)pinputPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_rotateInv")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxTransformRotateInvNative(PhysxPxTransformPod* selfPod, PhysxPxVec3Pod* inputPod); + + public static PhysxPxVec3Pod PxTransformRotateInv( PhysxPxTransformPod* selfPod, PhysxPxVec3Pod* inputPod) + { + PhysxPxVec3Pod ret = PxTransformRotateInvNative(selfPod, inputPod); + return ret; + } + + public static PhysxPxVec3Pod PxTransformRotateInv( PhysxPxTransformPod* selfPod, ref PhysxPxVec3Pod inputPod) + { + fixed (PhysxPxVec3Pod* pinputPod = &inputPod) + { + PhysxPxVec3Pod ret = PxTransformRotateInvNative(selfPod, (PhysxPxVec3Pod*)pinputPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_transform_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxTransformTransform1Native(PhysxPxTransformPod* selfPod, PhysxPxTransformPod* srcPod); + + public static PhysxPxTransformPod PxTransformTransform1( PhysxPxTransformPod* selfPod, PhysxPxTransformPod* srcPod) + { + PhysxPxTransformPod ret = PxTransformTransform1Native(selfPod, srcPod); + return ret; + } + + public static PhysxPxTransformPod PxTransformTransform1( PhysxPxTransformPod* selfPod, ref PhysxPxTransformPod srcPod) + { + fixed (PhysxPxTransformPod* psrcPod = &srcPod) + { + PhysxPxTransformPod ret = PxTransformTransform1Native(selfPod, (PhysxPxTransformPod*)psrcPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTransformIsValidNative(PhysxPxTransformPod* selfPod); + + public static bool PxTransformIsValid( PhysxPxTransformPod* selfPod) + { + byte ret = PxTransformIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_isSane")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTransformIsSaneNative(PhysxPxTransformPod* selfPod); + + public static bool PxTransformIsSane( PhysxPxTransformPod* selfPod) + { + byte ret = PxTransformIsSaneNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_isFinite")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTransformIsFiniteNative(PhysxPxTransformPod* selfPod); + + public static bool PxTransformIsFinite( PhysxPxTransformPod* selfPod) + { + byte ret = PxTransformIsFiniteNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_transformInv_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxTransformTransformInv1Native(PhysxPxTransformPod* selfPod, PhysxPxTransformPod* srcPod); + + public static PhysxPxTransformPod PxTransformTransformInv1( PhysxPxTransformPod* selfPod, PhysxPxTransformPod* srcPod) + { + PhysxPxTransformPod ret = PxTransformTransformInv1Native(selfPod, srcPod); + return ret; + } + + public static PhysxPxTransformPod PxTransformTransformInv1( PhysxPxTransformPod* selfPod, ref PhysxPxTransformPod srcPod) + { + fixed (PhysxPxTransformPod* psrcPod = &srcPod) + { + PhysxPxTransformPod ret = PxTransformTransformInv1Native(selfPod, (PhysxPxTransformPod*)psrcPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTransform_getNormalized")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxTransformGetNormalizedNative(PhysxPxTransformPod* selfPod); + + public static PhysxPxTransformPod PxTransformGetNormalized( PhysxPxTransformPod* selfPod) + { + PhysxPxTransformPod ret = PxTransformGetNormalizedNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMat33NewNative(); + + public static PhysxPxMat33Pod PxMat33New() + { + PhysxPxMat33Pod ret = PxMat33NewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMat33New1Native(int anonparam0Pod); + + public static PhysxPxMat33Pod PxMat33New1( int anonparam0Pod) + { + PhysxPxMat33Pod ret = PxMat33New1Native(anonparam0Pod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMat33New2Native(int anonparam0Pod); + + public static PhysxPxMat33Pod PxMat33New2( int anonparam0Pod) + { + PhysxPxMat33Pod ret = PxMat33New2Native(anonparam0Pod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_new_3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMat33New3Native(PhysxPxVec3Pod* col0Pod, PhysxPxVec3Pod* col1Pod, PhysxPxVec3Pod* col2Pod); + + public static PhysxPxMat33Pod PxMat33New3( PhysxPxVec3Pod* col0Pod, PhysxPxVec3Pod* col1Pod, PhysxPxVec3Pod* col2Pod) + { + PhysxPxMat33Pod ret = PxMat33New3Native(col0Pod, col1Pod, col2Pod); + return ret; + } + + public static PhysxPxMat33Pod PxMat33New3( PhysxPxVec3Pod* col0Pod, ref PhysxPxVec3Pod col1Pod, PhysxPxVec3Pod* col2Pod) + { + fixed (PhysxPxVec3Pod* pcol1Pod = &col1Pod) + { + PhysxPxMat33Pod ret = PxMat33New3Native(col0Pod, (PhysxPxVec3Pod*)pcol1Pod, col2Pod); + return ret; + } + } + + public static PhysxPxMat33Pod PxMat33New3( PhysxPxVec3Pod* col0Pod, PhysxPxVec3Pod* col1Pod, ref PhysxPxVec3Pod col2Pod) + { + fixed (PhysxPxVec3Pod* pcol2Pod = &col2Pod) + { + PhysxPxMat33Pod ret = PxMat33New3Native(col0Pod, col1Pod, (PhysxPxVec3Pod*)pcol2Pod); + return ret; + } + } + + public static PhysxPxMat33Pod PxMat33New3( PhysxPxVec3Pod* col0Pod, ref PhysxPxVec3Pod col1Pod, ref PhysxPxVec3Pod col2Pod) + { + fixed (PhysxPxVec3Pod* pcol1Pod = &col1Pod) + { + fixed (PhysxPxVec3Pod* pcol2Pod = &col2Pod) + { + PhysxPxMat33Pod ret = PxMat33New3Native(col0Pod, (PhysxPxVec3Pod*)pcol1Pod, (PhysxPxVec3Pod*)pcol2Pod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_new_4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMat33New4Native(float r); + + public static PhysxPxMat33Pod PxMat33New4( float r) + { + PhysxPxMat33Pod ret = PxMat33New4Native(r); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_new_5")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMat33New5Native(float* values); + + public static PhysxPxMat33Pod PxMat33New5( float* values) + { + PhysxPxMat33Pod ret = PxMat33New5Native(values); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_new_6")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMat33New6Native(PhysxPxQuatPod* qPod); + + public static PhysxPxMat33Pod PxMat33New6( PhysxPxQuatPod* qPod) + { + PhysxPxMat33Pod ret = PxMat33New6Native(qPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_createDiagonal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMat33CreateDiagonalNative(PhysxPxVec3Pod* dPod); + + public static PhysxPxMat33Pod PxMat33CreateDiagonal( PhysxPxVec3Pod* dPod) + { + PhysxPxMat33Pod ret = PxMat33CreateDiagonalNative(dPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_outer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMat33OuterNative(PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod); + + public static PhysxPxMat33Pod PxMat33Outer( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod) + { + PhysxPxMat33Pod ret = PxMat33OuterNative(aPod, bPod); + return ret; + } + + public static PhysxPxMat33Pod PxMat33Outer( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + PhysxPxMat33Pod ret = PxMat33OuterNative(aPod, (PhysxPxVec3Pod*)pbPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_getTranspose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMat33GetTransposeNative(PhysxPxMat33Pod* selfPod); + + public static PhysxPxMat33Pod PxMat33GetTranspose( PhysxPxMat33Pod* selfPod) + { + PhysxPxMat33Pod ret = PxMat33GetTransposeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_getInverse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMat33GetInverseNative(PhysxPxMat33Pod* selfPod); + + public static PhysxPxMat33Pod PxMat33GetInverse( PhysxPxMat33Pod* selfPod) + { + PhysxPxMat33Pod ret = PxMat33GetInverseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_getDeterminant")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxMat33GetDeterminantNative(PhysxPxMat33Pod* selfPod); + + public static float PxMat33GetDeterminant( PhysxPxMat33Pod* selfPod) + { + float ret = PxMat33GetDeterminantNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_transform")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxMat33TransformNative(PhysxPxMat33Pod* selfPod, PhysxPxVec3Pod* otherPod); + + public static PhysxPxVec3Pod PxMat33Transform( PhysxPxMat33Pod* selfPod, PhysxPxVec3Pod* otherPod) + { + PhysxPxVec3Pod ret = PxMat33TransformNative(selfPod, otherPod); + return ret; + } + + public static PhysxPxVec3Pod PxMat33Transform( PhysxPxMat33Pod* selfPod, ref PhysxPxVec3Pod otherPod) + { + fixed (PhysxPxVec3Pod* potherPod = &otherPod) + { + PhysxPxVec3Pod ret = PxMat33TransformNative(selfPod, (PhysxPxVec3Pod*)potherPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_transformTranspose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxMat33TransformTransposeNative(PhysxPxMat33Pod* selfPod, PhysxPxVec3Pod* otherPod); + + public static PhysxPxVec3Pod PxMat33TransformTranspose( PhysxPxMat33Pod* selfPod, PhysxPxVec3Pod* otherPod) + { + PhysxPxVec3Pod ret = PxMat33TransformTransposeNative(selfPod, otherPod); + return ret; + } + + public static PhysxPxVec3Pod PxMat33TransformTranspose( PhysxPxMat33Pod* selfPod, ref PhysxPxVec3Pod otherPod) + { + fixed (PhysxPxVec3Pod* potherPod = &otherPod) + { + PhysxPxVec3Pod ret = PxMat33TransformTransposeNative(selfPod, (PhysxPxVec3Pod*)potherPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat33_front")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float* PxMat33FrontNative(PhysxPxMat33Pod* selfPod); + + public static float* PxMat33Front( PhysxPxMat33Pod* selfPod) + { + float* ret = PxMat33FrontNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxBounds3NewNative(); + + public static PhysxPxBounds3Pod PxBounds3New() + { + PhysxPxBounds3Pod ret = PxBounds3NewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxBounds3New1Native(PhysxPxVec3Pod* minimumPod, PhysxPxVec3Pod* maximumPod); + + public static PhysxPxBounds3Pod PxBounds3New1( PhysxPxVec3Pod* minimumPod, PhysxPxVec3Pod* maximumPod) + { + PhysxPxBounds3Pod ret = PxBounds3New1Native(minimumPod, maximumPod); + return ret; + } + + public static PhysxPxBounds3Pod PxBounds3New1( PhysxPxVec3Pod* minimumPod, ref PhysxPxVec3Pod maximumPod) + { + fixed (PhysxPxVec3Pod* pmaximumPod = &maximumPod) + { + PhysxPxBounds3Pod ret = PxBounds3New1Native(minimumPod, (PhysxPxVec3Pod*)pmaximumPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_empty")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxBounds3EmptyNative(); + + public static PhysxPxBounds3Pod PxBounds3Empty() + { + PhysxPxBounds3Pod ret = PxBounds3EmptyNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_boundsOfPoints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxBounds3BoundsOfPointsNative(PhysxPxVec3Pod* v0Pod, PhysxPxVec3Pod* v1Pod); + + public static PhysxPxBounds3Pod PxBounds3BoundsOfPoints( PhysxPxVec3Pod* v0Pod, PhysxPxVec3Pod* v1Pod) + { + PhysxPxBounds3Pod ret = PxBounds3BoundsOfPointsNative(v0Pod, v1Pod); + return ret; + } + + public static PhysxPxBounds3Pod PxBounds3BoundsOfPoints( PhysxPxVec3Pod* v0Pod, ref PhysxPxVec3Pod v1Pod) + { + fixed (PhysxPxVec3Pod* pv1Pod = &v1Pod) + { + PhysxPxBounds3Pod ret = PxBounds3BoundsOfPointsNative(v0Pod, (PhysxPxVec3Pod*)pv1Pod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_centerExtents")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxBounds3CenterExtentsNative(PhysxPxVec3Pod* centerPod, PhysxPxVec3Pod* extentPod); + + public static PhysxPxBounds3Pod PxBounds3CenterExtents( PhysxPxVec3Pod* centerPod, PhysxPxVec3Pod* extentPod) + { + PhysxPxBounds3Pod ret = PxBounds3CenterExtentsNative(centerPod, extentPod); + return ret; + } + + public static PhysxPxBounds3Pod PxBounds3CenterExtents( PhysxPxVec3Pod* centerPod, ref PhysxPxVec3Pod extentPod) + { + fixed (PhysxPxVec3Pod* pextentPod = &extentPod) + { + PhysxPxBounds3Pod ret = PxBounds3CenterExtentsNative(centerPod, (PhysxPxVec3Pod*)pextentPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_basisExtent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxBounds3BasisExtentNative(PhysxPxVec3Pod* centerPod, PhysxPxMat33Pod* basisPod, PhysxPxVec3Pod* extentPod); + + public static PhysxPxBounds3Pod PxBounds3BasisExtent( PhysxPxVec3Pod* centerPod, PhysxPxMat33Pod* basisPod, PhysxPxVec3Pod* extentPod) + { + PhysxPxBounds3Pod ret = PxBounds3BasisExtentNative(centerPod, basisPod, extentPod); + return ret; + } + + public static PhysxPxBounds3Pod PxBounds3BasisExtent( PhysxPxVec3Pod* centerPod, ref PhysxPxMat33Pod basisPod, PhysxPxVec3Pod* extentPod) + { + fixed (PhysxPxMat33Pod* pbasisPod = &basisPod) + { + PhysxPxBounds3Pod ret = PxBounds3BasisExtentNative(centerPod, (PhysxPxMat33Pod*)pbasisPod, extentPod); + return ret; + } + } + + public static PhysxPxBounds3Pod PxBounds3BasisExtent( PhysxPxVec3Pod* centerPod, PhysxPxMat33Pod* basisPod, ref PhysxPxVec3Pod extentPod) + { + fixed (PhysxPxVec3Pod* pextentPod = &extentPod) + { + PhysxPxBounds3Pod ret = PxBounds3BasisExtentNative(centerPod, basisPod, (PhysxPxVec3Pod*)pextentPod); + return ret; + } + } + + public static PhysxPxBounds3Pod PxBounds3BasisExtent( PhysxPxVec3Pod* centerPod, ref PhysxPxMat33Pod basisPod, ref PhysxPxVec3Pod extentPod) + { + fixed (PhysxPxMat33Pod* pbasisPod = &basisPod) + { + fixed (PhysxPxVec3Pod* pextentPod = &extentPod) + { + PhysxPxBounds3Pod ret = PxBounds3BasisExtentNative(centerPod, (PhysxPxMat33Pod*)pbasisPod, (PhysxPxVec3Pod*)pextentPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_poseExtent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxBounds3PoseExtentNative(PhysxPxTransformPod* posePod, PhysxPxVec3Pod* extentPod); + + public static PhysxPxBounds3Pod PxBounds3PoseExtent( PhysxPxTransformPod* posePod, PhysxPxVec3Pod* extentPod) + { + PhysxPxBounds3Pod ret = PxBounds3PoseExtentNative(posePod, extentPod); + return ret; + } + + public static PhysxPxBounds3Pod PxBounds3PoseExtent( PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod extentPod) + { + fixed (PhysxPxVec3Pod* pextentPod = &extentPod) + { + PhysxPxBounds3Pod ret = PxBounds3PoseExtentNative(posePod, (PhysxPxVec3Pod*)pextentPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_transformSafe")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxBounds3TransformSafeNative(PhysxPxMat33Pod* matrixPod, PhysxPxBounds3Pod* boundsPod); + + public static PhysxPxBounds3Pod PxBounds3TransformSafe( PhysxPxMat33Pod* matrixPod, PhysxPxBounds3Pod* boundsPod) + { + PhysxPxBounds3Pod ret = PxBounds3TransformSafeNative(matrixPod, boundsPod); + return ret; + } + + public static PhysxPxBounds3Pod PxBounds3TransformSafe( PhysxPxMat33Pod* matrixPod, ref PhysxPxBounds3Pod boundsPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PhysxPxBounds3Pod ret = PxBounds3TransformSafeNative(matrixPod, (PhysxPxBounds3Pod*)pboundsPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_transformFast")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxBounds3TransformFastNative(PhysxPxMat33Pod* matrixPod, PhysxPxBounds3Pod* boundsPod); + + public static PhysxPxBounds3Pod PxBounds3TransformFast( PhysxPxMat33Pod* matrixPod, PhysxPxBounds3Pod* boundsPod) + { + PhysxPxBounds3Pod ret = PxBounds3TransformFastNative(matrixPod, boundsPod); + return ret; + } + + public static PhysxPxBounds3Pod PxBounds3TransformFast( PhysxPxMat33Pod* matrixPod, ref PhysxPxBounds3Pod boundsPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PhysxPxBounds3Pod ret = PxBounds3TransformFastNative(matrixPod, (PhysxPxBounds3Pod*)pboundsPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_transformSafe_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxBounds3TransformSafe1Native(PhysxPxTransformPod* transformPod, PhysxPxBounds3Pod* boundsPod); + + public static PhysxPxBounds3Pod PxBounds3TransformSafe1( PhysxPxTransformPod* transformPod, PhysxPxBounds3Pod* boundsPod) + { + PhysxPxBounds3Pod ret = PxBounds3TransformSafe1Native(transformPod, boundsPod); + return ret; + } + + public static PhysxPxBounds3Pod PxBounds3TransformSafe1( PhysxPxTransformPod* transformPod, ref PhysxPxBounds3Pod boundsPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PhysxPxBounds3Pod ret = PxBounds3TransformSafe1Native(transformPod, (PhysxPxBounds3Pod*)pboundsPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_transformFast_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxBounds3TransformFast1Native(PhysxPxTransformPod* transformPod, PhysxPxBounds3Pod* boundsPod); + + public static PhysxPxBounds3Pod PxBounds3TransformFast1( PhysxPxTransformPod* transformPod, PhysxPxBounds3Pod* boundsPod) + { + PhysxPxBounds3Pod ret = PxBounds3TransformFast1Native(transformPod, boundsPod); + return ret; + } + + public static PhysxPxBounds3Pod PxBounds3TransformFast1( PhysxPxTransformPod* transformPod, ref PhysxPxBounds3Pod boundsPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PhysxPxBounds3Pod ret = PxBounds3TransformFast1Native(transformPod, (PhysxPxBounds3Pod*)pboundsPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_setEmpty_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBounds3SetEmptyMutNative(PhysxPxBounds3Pod* selfPod); + + public static void PxBounds3SetEmptyMut( PhysxPxBounds3Pod* selfPod) + { + PxBounds3SetEmptyMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_setMaximal_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBounds3SetMaximalMutNative(PhysxPxBounds3Pod* selfPod); + + public static void PxBounds3SetMaximalMut( PhysxPxBounds3Pod* selfPod) + { + PxBounds3SetMaximalMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_include_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBounds3IncludeMutNative(PhysxPxBounds3Pod* selfPod, PhysxPxVec3Pod* vPod); + + public static void PxBounds3IncludeMut( PhysxPxBounds3Pod* selfPod, PhysxPxVec3Pod* vPod) + { + PxBounds3IncludeMutNative(selfPod, vPod); + } + + public static void PxBounds3IncludeMut( PhysxPxBounds3Pod* selfPod, ref PhysxPxVec3Pod vPod) + { + fixed (PhysxPxVec3Pod* pvPod = &vPod) + { + PxBounds3IncludeMutNative(selfPod, (PhysxPxVec3Pod*)pvPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_include_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBounds3IncludeMut1Native(PhysxPxBounds3Pod* selfPod, PhysxPxBounds3Pod* bPod); + + public static void PxBounds3IncludeMut1( PhysxPxBounds3Pod* selfPod, PhysxPxBounds3Pod* bPod) + { + PxBounds3IncludeMut1Native(selfPod, bPod); + } + + public static void PxBounds3IncludeMut1( PhysxPxBounds3Pod* selfPod, ref PhysxPxBounds3Pod bPod) + { + fixed (PhysxPxBounds3Pod* pbPod = &bPod) + { + PxBounds3IncludeMut1Native(selfPod, (PhysxPxBounds3Pod*)pbPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_isEmpty")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBounds3IsEmptyNative(PhysxPxBounds3Pod* selfPod); + + public static bool PxBounds3IsEmpty( PhysxPxBounds3Pod* selfPod) + { + byte ret = PxBounds3IsEmptyNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_intersects")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBounds3IntersectsNative(PhysxPxBounds3Pod* selfPod, PhysxPxBounds3Pod* bPod); + + public static bool PxBounds3Intersects( PhysxPxBounds3Pod* selfPod, PhysxPxBounds3Pod* bPod) + { + byte ret = PxBounds3IntersectsNative(selfPod, bPod); + return ret != 0; + } + + public static bool PxBounds3Intersects( PhysxPxBounds3Pod* selfPod, ref PhysxPxBounds3Pod bPod) + { + fixed (PhysxPxBounds3Pod* pbPod = &bPod) + { + byte ret = PxBounds3IntersectsNative(selfPod, (PhysxPxBounds3Pod*)pbPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_intersects1D")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBounds3Intersects1DNative(PhysxPxBounds3Pod* selfPod, PhysxPxBounds3Pod* aPod, uint axis); + + public static bool PxBounds3Intersects1D( PhysxPxBounds3Pod* selfPod, PhysxPxBounds3Pod* aPod, uint axis) + { + byte ret = PxBounds3Intersects1DNative(selfPod, aPod, axis); + return ret != 0; + } + + public static bool PxBounds3Intersects1D( PhysxPxBounds3Pod* selfPod, ref PhysxPxBounds3Pod aPod, uint axis) + { + fixed (PhysxPxBounds3Pod* paPod = &aPod) + { + byte ret = PxBounds3Intersects1DNative(selfPod, (PhysxPxBounds3Pod*)paPod, axis); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_contains")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBounds3ContainsNative(PhysxPxBounds3Pod* selfPod, PhysxPxVec3Pod* vPod); + + public static bool PxBounds3Contains( PhysxPxBounds3Pod* selfPod, PhysxPxVec3Pod* vPod) + { + byte ret = PxBounds3ContainsNative(selfPod, vPod); + return ret != 0; + } + + public static bool PxBounds3Contains( PhysxPxBounds3Pod* selfPod, ref PhysxPxVec3Pod vPod) + { + fixed (PhysxPxVec3Pod* pvPod = &vPod) + { + byte ret = PxBounds3ContainsNative(selfPod, (PhysxPxVec3Pod*)pvPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_isInside")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBounds3IsInsideNative(PhysxPxBounds3Pod* selfPod, PhysxPxBounds3Pod* boxPod); + + public static bool PxBounds3IsInside( PhysxPxBounds3Pod* selfPod, PhysxPxBounds3Pod* boxPod) + { + byte ret = PxBounds3IsInsideNative(selfPod, boxPod); + return ret != 0; + } + + public static bool PxBounds3IsInside( PhysxPxBounds3Pod* selfPod, ref PhysxPxBounds3Pod boxPod) + { + fixed (PhysxPxBounds3Pod* pboxPod = &boxPod) + { + byte ret = PxBounds3IsInsideNative(selfPod, (PhysxPxBounds3Pod*)pboxPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_getCenter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxBounds3GetCenterNative(PhysxPxBounds3Pod* selfPod); + + public static PhysxPxVec3Pod PxBounds3GetCenter( PhysxPxBounds3Pod* selfPod) + { + PhysxPxVec3Pod ret = PxBounds3GetCenterNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_getCenter_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxBounds3GetCenter1Native(PhysxPxBounds3Pod* selfPod, uint axis); + + public static float PxBounds3GetCenter1( PhysxPxBounds3Pod* selfPod, uint axis) + { + float ret = PxBounds3GetCenter1Native(selfPod, axis); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_getExtents")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxBounds3GetExtentsNative(PhysxPxBounds3Pod* selfPod, uint axis); + + public static float PxBounds3GetExtents( PhysxPxBounds3Pod* selfPod, uint axis) + { + float ret = PxBounds3GetExtentsNative(selfPod, axis); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_getDimensions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxBounds3GetDimensionsNative(PhysxPxBounds3Pod* selfPod); + + public static PhysxPxVec3Pod PxBounds3GetDimensions( PhysxPxBounds3Pod* selfPod) + { + PhysxPxVec3Pod ret = PxBounds3GetDimensionsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_getExtents_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxBounds3GetExtents1Native(PhysxPxBounds3Pod* selfPod); + + public static PhysxPxVec3Pod PxBounds3GetExtents1( PhysxPxBounds3Pod* selfPod) + { + PhysxPxVec3Pod ret = PxBounds3GetExtents1Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_scaleSafe_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBounds3ScaleSafeMutNative(PhysxPxBounds3Pod* selfPod, float scale); + + public static void PxBounds3ScaleSafeMut( PhysxPxBounds3Pod* selfPod, float scale) + { + PxBounds3ScaleSafeMutNative(selfPod, scale); + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_scaleFast_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBounds3ScaleFastMutNative(PhysxPxBounds3Pod* selfPod, float scale); + + public static void PxBounds3ScaleFastMut( PhysxPxBounds3Pod* selfPod, float scale) + { + PxBounds3ScaleFastMutNative(selfPod, scale); + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_fattenSafe_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBounds3FattenSafeMutNative(PhysxPxBounds3Pod* selfPod, float distance); + + public static void PxBounds3FattenSafeMut( PhysxPxBounds3Pod* selfPod, float distance) + { + PxBounds3FattenSafeMutNative(selfPod, distance); + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_fattenFast_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBounds3FattenFastMutNative(PhysxPxBounds3Pod* selfPod, float distance); + + public static void PxBounds3FattenFastMut( PhysxPxBounds3Pod* selfPod, float distance) + { + PxBounds3FattenFastMutNative(selfPod, distance); + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_isFinite")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBounds3IsFiniteNative(PhysxPxBounds3Pod* selfPod); + + public static bool PxBounds3IsFinite( PhysxPxBounds3Pod* selfPod) + { + byte ret = PxBounds3IsFiniteNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBounds3IsValidNative(PhysxPxBounds3Pod* selfPod); + + public static bool PxBounds3IsValid( PhysxPxBounds3Pod* selfPod) + { + byte ret = PxBounds3IsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxBounds3_closestPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxBounds3ClosestPointNative(PhysxPxBounds3Pod* selfPod, PhysxPxVec3Pod* pPod); + + public static PhysxPxVec3Pod PxBounds3ClosestPoint( PhysxPxBounds3Pod* selfPod, PhysxPxVec3Pod* pPod) + { + PhysxPxVec3Pod ret = PxBounds3ClosestPointNative(selfPod, pPod); + return ret; + } + + public static PhysxPxVec3Pod PxBounds3ClosestPoint( PhysxPxBounds3Pod* selfPod, ref PhysxPxVec3Pod pPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysxPxVec3Pod ret = PxBounds3ClosestPointNative(selfPod, (PhysxPxVec3Pod*)ppPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxErrorCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxErrorCallbackDeleteNative(PhysxPxErrorCallbackPod* selfPod); + + public static void PxErrorCallbackDelete( PhysxPxErrorCallbackPod* selfPod) + { + PxErrorCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxErrorCallback_reportError_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxErrorCallbackReportErrorMutNative(PhysxPxErrorCallbackPod* selfPod, int codePod, byte* message, byte* file, int line); + + public static void PxErrorCallbackReportErrorMut( PhysxPxErrorCallbackPod* selfPod, int codePod, byte* message, byte* file, int line) + { + PxErrorCallbackReportErrorMutNative(selfPod, codePod, message, file, line); + } + + public static void PxErrorCallbackReportErrorMut( PhysxPxErrorCallbackPod* selfPod, int codePod, ref byte message, byte* file, int line) + { + fixed (byte* pmessage = &message) + { + PxErrorCallbackReportErrorMutNative(selfPod, codePod, (byte*)pmessage, file, line); + } + } + + public static void PxErrorCallbackReportErrorMut( PhysxPxErrorCallbackPod* selfPod, int codePod, string message, byte* file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (message != null) + { + pStrSize0 = Utils.GetByteCountUTF8(message); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(message, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxErrorCallbackReportErrorMutNative(selfPod, codePod, pStr0, file, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxErrorCallbackReportErrorMut( PhysxPxErrorCallbackPod* selfPod, int codePod, byte* message, ref byte file, int line) + { + fixed (byte* pfile = &file) + { + PxErrorCallbackReportErrorMutNative(selfPod, codePod, message, (byte*)pfile, line); + } + } + + public static void PxErrorCallbackReportErrorMut( PhysxPxErrorCallbackPod* selfPod, int codePod, byte* message, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxErrorCallbackReportErrorMutNative(selfPod, codePod, message, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxErrorCallbackReportErrorMut( PhysxPxErrorCallbackPod* selfPod, int codePod, ref byte message, ref byte file, int line) + { + fixed (byte* pmessage = &message) + { + fixed (byte* pfile = &file) + { + PxErrorCallbackReportErrorMutNative(selfPod, codePod, (byte*)pmessage, (byte*)pfile, line); + } + } + } + + public static void PxErrorCallbackReportErrorMut( PhysxPxErrorCallbackPod* selfPod, int codePod, string message, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (message != null) + { + pStrSize0 = Utils.GetByteCountUTF8(message); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(message, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (file != null) + { + pStrSize1 = Utils.GetByteCountUTF8(file); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(file, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PxErrorCallbackReportErrorMutNative(selfPod, codePod, pStr0, pStr1, line); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxAllocationListener_onAllocation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAllocationListenerOnAllocationMutNative(PhysxPxAllocationListenerPod* selfPod, ulong sizePod, byte* typeName, byte* filename, int line, void* allocatedMemory); + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, ulong sizePod, byte* typeName, byte* filename, int line, void* allocatedMemory) + { + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, typeName, filename, line, allocatedMemory); + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, nuint sizePod, byte* typeName, byte* filename, int line, void* allocatedMemory) + { + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, typeName, filename, line, allocatedMemory); + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, ulong sizePod, ref byte typeName, byte* filename, int line, void* allocatedMemory) + { + fixed (byte* ptypeName = &typeName) + { + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, (byte*)ptypeName, filename, line, allocatedMemory); + } + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, ulong sizePod, string typeName, byte* filename, int line, void* allocatedMemory) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, pStr0, filename, line, allocatedMemory); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, nuint sizePod, ref byte typeName, byte* filename, int line, void* allocatedMemory) + { + fixed (byte* ptypeName = &typeName) + { + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, (byte*)ptypeName, filename, line, allocatedMemory); + } + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, nuint sizePod, string typeName, byte* filename, int line, void* allocatedMemory) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, pStr0, filename, line, allocatedMemory); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, ulong sizePod, byte* typeName, ref byte filename, int line, void* allocatedMemory) + { + fixed (byte* pfilename = &filename) + { + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, typeName, (byte*)pfilename, line, allocatedMemory); + } + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, ulong sizePod, byte* typeName, string filename, int line, void* allocatedMemory) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, typeName, pStr0, line, allocatedMemory); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, nuint sizePod, byte* typeName, ref byte filename, int line, void* allocatedMemory) + { + fixed (byte* pfilename = &filename) + { + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, typeName, (byte*)pfilename, line, allocatedMemory); + } + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, nuint sizePod, byte* typeName, string filename, int line, void* allocatedMemory) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, typeName, pStr0, line, allocatedMemory); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, ulong sizePod, ref byte typeName, ref byte filename, int line, void* allocatedMemory) + { + fixed (byte* ptypeName = &typeName) + { + fixed (byte* pfilename = &filename) + { + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, (byte*)ptypeName, (byte*)pfilename, line, allocatedMemory); + } + } + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, ulong sizePod, string typeName, string filename, int line, void* allocatedMemory) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (filename != null) + { + pStrSize1 = Utils.GetByteCountUTF8(filename); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(filename, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, pStr0, pStr1, line, allocatedMemory); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, nuint sizePod, ref byte typeName, ref byte filename, int line, void* allocatedMemory) + { + fixed (byte* ptypeName = &typeName) + { + fixed (byte* pfilename = &filename) + { + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, (byte*)ptypeName, (byte*)pfilename, line, allocatedMemory); + } + } + } + + public static void PxAllocationListenerOnAllocationMut( PhysxPxAllocationListenerPod* selfPod, nuint sizePod, string typeName, string filename, int line, void* allocatedMemory) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (filename != null) + { + pStrSize1 = Utils.GetByteCountUTF8(filename); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(filename, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PxAllocationListenerOnAllocationMutNative(selfPod, sizePod, pStr0, pStr1, line, allocatedMemory); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxAllocationListener_onDeallocation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAllocationListenerOnDeallocationMutNative(PhysxPxAllocationListenerPod* selfPod, void* allocatedMemory); + + public static void PxAllocationListenerOnDeallocationMut( PhysxPxAllocationListenerPod* selfPod, void* allocatedMemory) + { + PxAllocationListenerOnDeallocationMutNative(selfPod, allocatedMemory); + } + + [LibraryImport(LibName, EntryPoint = "PxBroadcastingAllocator_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBroadcastingAllocatorPod* PxBroadcastingAllocatorNewAllocNative(PhysxPxAllocatorCallbackPod* allocatorPod, PhysxPxErrorCallbackPod* errorPod); + + public static PhysxPxBroadcastingAllocatorPod* PxBroadcastingAllocatorNewAlloc( PhysxPxAllocatorCallbackPod* allocatorPod, PhysxPxErrorCallbackPod* errorPod) + { + PhysxPxBroadcastingAllocatorPod* ret = PxBroadcastingAllocatorNewAllocNative(allocatorPod, errorPod); + return ret; + } + + public static PhysxPxBroadcastingAllocatorPod* PxBroadcastingAllocatorNewAlloc( PhysxPxAllocatorCallbackPod* allocatorPod, ref PhysxPxErrorCallbackPod errorPod) + { + fixed (PhysxPxErrorCallbackPod* perrorPod = &errorPod) + { + PhysxPxBroadcastingAllocatorPod* ret = PxBroadcastingAllocatorNewAllocNative(allocatorPod, (PhysxPxErrorCallbackPod*)perrorPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBroadcastingAllocator_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadcastingAllocatorDeleteNative(PhysxPxBroadcastingAllocatorPod* selfPod); + + public static void PxBroadcastingAllocatorDelete( PhysxPxBroadcastingAllocatorPod* selfPod) + { + PxBroadcastingAllocatorDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBroadcastingAllocator_allocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxBroadcastingAllocatorAllocateMutNative(PhysxPxBroadcastingAllocatorPod* selfPod, ulong sizePod, byte* typeName, byte* filename, int line); + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, ulong sizePod, byte* typeName, byte* filename, int line) + { + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, typeName, filename, line); + return ret; + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, nuint sizePod, byte* typeName, byte* filename, int line) + { + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, typeName, filename, line); + return ret; + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, ulong sizePod, ref byte typeName, byte* filename, int line) + { + fixed (byte* ptypeName = &typeName) + { + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, (byte*)ptypeName, filename, line); + return ret; + } + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, ulong sizePod, string typeName, byte* filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, pStr0, filename, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, nuint sizePod, ref byte typeName, byte* filename, int line) + { + fixed (byte* ptypeName = &typeName) + { + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, (byte*)ptypeName, filename, line); + return ret; + } + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, nuint sizePod, string typeName, byte* filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, pStr0, filename, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, ulong sizePod, byte* typeName, ref byte filename, int line) + { + fixed (byte* pfilename = &filename) + { + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, typeName, (byte*)pfilename, line); + return ret; + } + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, ulong sizePod, byte* typeName, string filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, typeName, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, nuint sizePod, byte* typeName, ref byte filename, int line) + { + fixed (byte* pfilename = &filename) + { + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, typeName, (byte*)pfilename, line); + return ret; + } + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, nuint sizePod, byte* typeName, string filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (filename != null) + { + pStrSize0 = Utils.GetByteCountUTF8(filename); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(filename, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, typeName, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, ulong sizePod, ref byte typeName, ref byte filename, int line) + { + fixed (byte* ptypeName = &typeName) + { + fixed (byte* pfilename = &filename) + { + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, (byte*)ptypeName, (byte*)pfilename, line); + return ret; + } + } + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, ulong sizePod, string typeName, string filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (filename != null) + { + pStrSize1 = Utils.GetByteCountUTF8(filename); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(filename, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, pStr0, pStr1, line); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, nuint sizePod, ref byte typeName, ref byte filename, int line) + { + fixed (byte* ptypeName = &typeName) + { + fixed (byte* pfilename = &filename) + { + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, (byte*)ptypeName, (byte*)pfilename, line); + return ret; + } + } + } + + public static void* PxBroadcastingAllocatorAllocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, nuint sizePod, string typeName, string filename, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (filename != null) + { + pStrSize1 = Utils.GetByteCountUTF8(filename); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(filename, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + void* ret = PxBroadcastingAllocatorAllocateMutNative(selfPod, sizePod, pStr0, pStr1, line); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadcastingAllocator_deallocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadcastingAllocatorDeallocateMutNative(PhysxPxBroadcastingAllocatorPod* selfPod, void* ptr); + + public static void PxBroadcastingAllocatorDeallocateMut( PhysxPxBroadcastingAllocatorPod* selfPod, void* ptr) + { + PxBroadcastingAllocatorDeallocateMutNative(selfPod, ptr); + } + + [LibraryImport(LibName, EntryPoint = "PxBroadcastingErrorCallback_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBroadcastingErrorCallbackPod* PxBroadcastingErrorCallbackNewAllocNative(PhysxPxErrorCallbackPod* errorcallbackPod); + + public static PhysxPxBroadcastingErrorCallbackPod* PxBroadcastingErrorCallbackNewAlloc( PhysxPxErrorCallbackPod* errorcallbackPod) + { + PhysxPxBroadcastingErrorCallbackPod* ret = PxBroadcastingErrorCallbackNewAllocNative(errorcallbackPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadcastingErrorCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadcastingErrorCallbackDeleteNative(PhysxPxBroadcastingErrorCallbackPod* selfPod); + + public static void PxBroadcastingErrorCallbackDelete( PhysxPxBroadcastingErrorCallbackPod* selfPod) + { + PxBroadcastingErrorCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBroadcastingErrorCallback_reportError_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadcastingErrorCallbackReportErrorMutNative(PhysxPxBroadcastingErrorCallbackPod* selfPod, int codePod, byte* message, byte* file, int line); + + public static void PxBroadcastingErrorCallbackReportErrorMut( PhysxPxBroadcastingErrorCallbackPod* selfPod, int codePod, byte* message, byte* file, int line) + { + PxBroadcastingErrorCallbackReportErrorMutNative(selfPod, codePod, message, file, line); + } + + public static void PxBroadcastingErrorCallbackReportErrorMut( PhysxPxBroadcastingErrorCallbackPod* selfPod, int codePod, ref byte message, byte* file, int line) + { + fixed (byte* pmessage = &message) + { + PxBroadcastingErrorCallbackReportErrorMutNative(selfPod, codePod, (byte*)pmessage, file, line); + } + } + + public static void PxBroadcastingErrorCallbackReportErrorMut( PhysxPxBroadcastingErrorCallbackPod* selfPod, int codePod, string message, byte* file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (message != null) + { + pStrSize0 = Utils.GetByteCountUTF8(message); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(message, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxBroadcastingErrorCallbackReportErrorMutNative(selfPod, codePod, pStr0, file, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxBroadcastingErrorCallbackReportErrorMut( PhysxPxBroadcastingErrorCallbackPod* selfPod, int codePod, byte* message, ref byte file, int line) + { + fixed (byte* pfile = &file) + { + PxBroadcastingErrorCallbackReportErrorMutNative(selfPod, codePod, message, (byte*)pfile, line); + } + } + + public static void PxBroadcastingErrorCallbackReportErrorMut( PhysxPxBroadcastingErrorCallbackPod* selfPod, int codePod, byte* message, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxBroadcastingErrorCallbackReportErrorMutNative(selfPod, codePod, message, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxBroadcastingErrorCallbackReportErrorMut( PhysxPxBroadcastingErrorCallbackPod* selfPod, int codePod, ref byte message, ref byte file, int line) + { + fixed (byte* pmessage = &message) + { + fixed (byte* pfile = &file) + { + PxBroadcastingErrorCallbackReportErrorMutNative(selfPod, codePod, (byte*)pmessage, (byte*)pfile, line); + } + } + } + + public static void PxBroadcastingErrorCallbackReportErrorMut( PhysxPxBroadcastingErrorCallbackPod* selfPod, int codePod, string message, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (message != null) + { + pStrSize0 = Utils.GetByteCountUTF8(message); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(message, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (file != null) + { + pStrSize1 = Utils.GetByteCountUTF8(file); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(file, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PxBroadcastingErrorCallbackReportErrorMutNative(selfPod, codePod, pStr0, pStr1, line); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxEnableFPExceptions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxEnableFPExceptionsNative(); + + public static void PhysPxEnableFPExceptions() + { + PhysPxEnableFPExceptionsNative(); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxDisableFPExceptions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxDisableFPExceptionsNative(); + + public static void PhysPxDisableFPExceptions() + { + PhysPxDisableFPExceptionsNative(); + } + + [LibraryImport(LibName, EntryPoint = "PxInputStream_read_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxInputStreamReadMutNative(PhysxPxInputStreamPod* selfPod, void* dest, uint count); + + public static uint PxInputStreamReadMut( PhysxPxInputStreamPod* selfPod, void* dest, uint count) + { + uint ret = PxInputStreamReadMutNative(selfPod, dest, count); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxInputStream_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxInputStreamDeleteNative(PhysxPxInputStreamPod* selfPod); + + public static void PxInputStreamDelete( PhysxPxInputStreamPod* selfPod) + { + PxInputStreamDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxInputData_getLength")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxInputDataGetLengthNative(PhysxPxInputDataPod* selfPod); + + public static uint PxInputDataGetLength( PhysxPxInputDataPod* selfPod) + { + uint ret = PxInputDataGetLengthNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxInputData_seek_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxInputDataSeekMutNative(PhysxPxInputDataPod* selfPod, uint offset); + + public static void PxInputDataSeekMut( PhysxPxInputDataPod* selfPod, uint offset) + { + PxInputDataSeekMutNative(selfPod, offset); + } + + [LibraryImport(LibName, EntryPoint = "PxInputData_tell")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxInputDataTellNative(PhysxPxInputDataPod* selfPod); + + public static uint PxInputDataTell( PhysxPxInputDataPod* selfPod) + { + uint ret = PxInputDataTellNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxInputData_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxInputDataDeleteNative(PhysxPxInputDataPod* selfPod); + + public static void PxInputDataDelete( PhysxPxInputDataPod* selfPod) + { + PxInputDataDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxOutputStream_write_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxOutputStreamWriteMutNative(PhysxPxOutputStreamPod* selfPod, void* src, uint count); + + public static uint PxOutputStreamWriteMut( PhysxPxOutputStreamPod* selfPod, void* src, uint count) + { + uint ret = PxOutputStreamWriteMutNative(selfPod, src, count); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxOutputStream_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxOutputStreamDeleteNative(PhysxPxOutputStreamPod* selfPod); + + public static void PxOutputStreamDelete( PhysxPxOutputStreamPod* selfPod) + { + PxOutputStreamDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxVec4NewNative(); + + public static PhysxPxVec4Pod PxVec4New() + { + PhysxPxVec4Pod ret = PxVec4NewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxVec4New1Native(int anonparam0Pod); + + public static PhysxPxVec4Pod PxVec4New1( int anonparam0Pod) + { + PhysxPxVec4Pod ret = PxVec4New1Native(anonparam0Pod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxVec4New2Native(float a); + + public static PhysxPxVec4Pod PxVec4New2( float a) + { + PhysxPxVec4Pod ret = PxVec4New2Native(a); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_new_3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxVec4New3Native(float nx, float ny, float nz, float nw); + + public static PhysxPxVec4Pod PxVec4New3( float nx, float ny, float nz, float nw) + { + PhysxPxVec4Pod ret = PxVec4New3Native(nx, ny, nz, nw); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_new_4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxVec4New4Native(PhysxPxVec3Pod* vPod, float nw); + + public static PhysxPxVec4Pod PxVec4New4( PhysxPxVec3Pod* vPod, float nw) + { + PhysxPxVec4Pod ret = PxVec4New4Native(vPod, nw); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_new_5")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxVec4New5Native(float* v); + + public static PhysxPxVec4Pod PxVec4New5( float* v) + { + PhysxPxVec4Pod ret = PxVec4New5Native(v); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_isZero")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxVec4IsZeroNative(PhysxPxVec4Pod* selfPod); + + public static bool PxVec4IsZero( PhysxPxVec4Pod* selfPod) + { + byte ret = PxVec4IsZeroNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_isFinite")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxVec4IsFiniteNative(PhysxPxVec4Pod* selfPod); + + public static bool PxVec4IsFinite( PhysxPxVec4Pod* selfPod) + { + byte ret = PxVec4IsFiniteNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_isNormalized")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxVec4IsNormalizedNative(PhysxPxVec4Pod* selfPod); + + public static bool PxVec4IsNormalized( PhysxPxVec4Pod* selfPod) + { + byte ret = PxVec4IsNormalizedNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_magnitudeSquared")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec4MagnitudeSquaredNative(PhysxPxVec4Pod* selfPod); + + public static float PxVec4MagnitudeSquared( PhysxPxVec4Pod* selfPod) + { + float ret = PxVec4MagnitudeSquaredNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_magnitude")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec4MagnitudeNative(PhysxPxVec4Pod* selfPod); + + public static float PxVec4Magnitude( PhysxPxVec4Pod* selfPod) + { + float ret = PxVec4MagnitudeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_dot")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec4DotNative(PhysxPxVec4Pod* selfPod, PhysxPxVec4Pod* vPod); + + public static float PxVec4Dot( PhysxPxVec4Pod* selfPod, PhysxPxVec4Pod* vPod) + { + float ret = PxVec4DotNative(selfPod, vPod); + return ret; + } + + public static float PxVec4Dot( PhysxPxVec4Pod* selfPod, ref PhysxPxVec4Pod vPod) + { + fixed (PhysxPxVec4Pod* pvPod = &vPod) + { + float ret = PxVec4DotNative(selfPod, (PhysxPxVec4Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_getNormalized")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxVec4GetNormalizedNative(PhysxPxVec4Pod* selfPod); + + public static PhysxPxVec4Pod PxVec4GetNormalized( PhysxPxVec4Pod* selfPod) + { + PhysxPxVec4Pod ret = PxVec4GetNormalizedNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_normalize_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec4NormalizeMutNative(PhysxPxVec4Pod* selfPod); + + public static float PxVec4NormalizeMut( PhysxPxVec4Pod* selfPod) + { + float ret = PxVec4NormalizeMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_multiply")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxVec4MultiplyNative(PhysxPxVec4Pod* selfPod, PhysxPxVec4Pod* aPod); + + public static PhysxPxVec4Pod PxVec4Multiply( PhysxPxVec4Pod* selfPod, PhysxPxVec4Pod* aPod) + { + PhysxPxVec4Pod ret = PxVec4MultiplyNative(selfPod, aPod); + return ret; + } + + public static PhysxPxVec4Pod PxVec4Multiply( PhysxPxVec4Pod* selfPod, ref PhysxPxVec4Pod aPod) + { + fixed (PhysxPxVec4Pod* paPod = &aPod) + { + PhysxPxVec4Pod ret = PxVec4MultiplyNative(selfPod, (PhysxPxVec4Pod*)paPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_minimum")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxVec4MinimumNative(PhysxPxVec4Pod* selfPod, PhysxPxVec4Pod* vPod); + + public static PhysxPxVec4Pod PxVec4Minimum( PhysxPxVec4Pod* selfPod, PhysxPxVec4Pod* vPod) + { + PhysxPxVec4Pod ret = PxVec4MinimumNative(selfPod, vPod); + return ret; + } + + public static PhysxPxVec4Pod PxVec4Minimum( PhysxPxVec4Pod* selfPod, ref PhysxPxVec4Pod vPod) + { + fixed (PhysxPxVec4Pod* pvPod = &vPod) + { + PhysxPxVec4Pod ret = PxVec4MinimumNative(selfPod, (PhysxPxVec4Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_maximum")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxVec4MaximumNative(PhysxPxVec4Pod* selfPod, PhysxPxVec4Pod* vPod); + + public static PhysxPxVec4Pod PxVec4Maximum( PhysxPxVec4Pod* selfPod, PhysxPxVec4Pod* vPod) + { + PhysxPxVec4Pod ret = PxVec4MaximumNative(selfPod, vPod); + return ret; + } + + public static PhysxPxVec4Pod PxVec4Maximum( PhysxPxVec4Pod* selfPod, ref PhysxPxVec4Pod vPod) + { + fixed (PhysxPxVec4Pod* pvPod = &vPod) + { + PhysxPxVec4Pod ret = PxVec4MaximumNative(selfPod, (PhysxPxVec4Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec4_getXYZ")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxVec4GetXYZNative(PhysxPxVec4Pod* selfPod); + + public static PhysxPxVec3Pod PxVec4GetXYZ( PhysxPxVec4Pod* selfPod) + { + PhysxPxVec3Pod ret = PxVec4GetXYZNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44NewNative(); + + public static PhysxPxMat44Pod PxMat44New() + { + PhysxPxMat44Pod ret = PxMat44NewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44New1Native(int anonparam0Pod); + + public static PhysxPxMat44Pod PxMat44New1( int anonparam0Pod) + { + PhysxPxMat44Pod ret = PxMat44New1Native(anonparam0Pod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44New2Native(int anonparam0Pod); + + public static PhysxPxMat44Pod PxMat44New2( int anonparam0Pod) + { + PhysxPxMat44Pod ret = PxMat44New2Native(anonparam0Pod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_new_3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44New3Native(PhysxPxVec4Pod* col0Pod, PhysxPxVec4Pod* col1Pod, PhysxPxVec4Pod* col2Pod, PhysxPxVec4Pod* col3Pod); + + public static PhysxPxMat44Pod PxMat44New3( PhysxPxVec4Pod* col0Pod, PhysxPxVec4Pod* col1Pod, PhysxPxVec4Pod* col2Pod, PhysxPxVec4Pod* col3Pod) + { + PhysxPxMat44Pod ret = PxMat44New3Native(col0Pod, col1Pod, col2Pod, col3Pod); + return ret; + } + + public static PhysxPxMat44Pod PxMat44New3( PhysxPxVec4Pod* col0Pod, ref PhysxPxVec4Pod col1Pod, PhysxPxVec4Pod* col2Pod, PhysxPxVec4Pod* col3Pod) + { + fixed (PhysxPxVec4Pod* pcol1Pod = &col1Pod) + { + PhysxPxMat44Pod ret = PxMat44New3Native(col0Pod, (PhysxPxVec4Pod*)pcol1Pod, col2Pod, col3Pod); + return ret; + } + } + + public static PhysxPxMat44Pod PxMat44New3( PhysxPxVec4Pod* col0Pod, PhysxPxVec4Pod* col1Pod, ref PhysxPxVec4Pod col2Pod, PhysxPxVec4Pod* col3Pod) + { + fixed (PhysxPxVec4Pod* pcol2Pod = &col2Pod) + { + PhysxPxMat44Pod ret = PxMat44New3Native(col0Pod, col1Pod, (PhysxPxVec4Pod*)pcol2Pod, col3Pod); + return ret; + } + } + + public static PhysxPxMat44Pod PxMat44New3( PhysxPxVec4Pod* col0Pod, ref PhysxPxVec4Pod col1Pod, ref PhysxPxVec4Pod col2Pod, PhysxPxVec4Pod* col3Pod) + { + fixed (PhysxPxVec4Pod* pcol1Pod = &col1Pod) + { + fixed (PhysxPxVec4Pod* pcol2Pod = &col2Pod) + { + PhysxPxMat44Pod ret = PxMat44New3Native(col0Pod, (PhysxPxVec4Pod*)pcol1Pod, (PhysxPxVec4Pod*)pcol2Pod, col3Pod); + return ret; + } + } + } + + public static PhysxPxMat44Pod PxMat44New3( PhysxPxVec4Pod* col0Pod, PhysxPxVec4Pod* col1Pod, PhysxPxVec4Pod* col2Pod, ref PhysxPxVec4Pod col3Pod) + { + fixed (PhysxPxVec4Pod* pcol3Pod = &col3Pod) + { + PhysxPxMat44Pod ret = PxMat44New3Native(col0Pod, col1Pod, col2Pod, (PhysxPxVec4Pod*)pcol3Pod); + return ret; + } + } + + public static PhysxPxMat44Pod PxMat44New3( PhysxPxVec4Pod* col0Pod, ref PhysxPxVec4Pod col1Pod, PhysxPxVec4Pod* col2Pod, ref PhysxPxVec4Pod col3Pod) + { + fixed (PhysxPxVec4Pod* pcol1Pod = &col1Pod) + { + fixed (PhysxPxVec4Pod* pcol3Pod = &col3Pod) + { + PhysxPxMat44Pod ret = PxMat44New3Native(col0Pod, (PhysxPxVec4Pod*)pcol1Pod, col2Pod, (PhysxPxVec4Pod*)pcol3Pod); + return ret; + } + } + } + + public static PhysxPxMat44Pod PxMat44New3( PhysxPxVec4Pod* col0Pod, PhysxPxVec4Pod* col1Pod, ref PhysxPxVec4Pod col2Pod, ref PhysxPxVec4Pod col3Pod) + { + fixed (PhysxPxVec4Pod* pcol2Pod = &col2Pod) + { + fixed (PhysxPxVec4Pod* pcol3Pod = &col3Pod) + { + PhysxPxMat44Pod ret = PxMat44New3Native(col0Pod, col1Pod, (PhysxPxVec4Pod*)pcol2Pod, (PhysxPxVec4Pod*)pcol3Pod); + return ret; + } + } + } + + public static PhysxPxMat44Pod PxMat44New3( PhysxPxVec4Pod* col0Pod, ref PhysxPxVec4Pod col1Pod, ref PhysxPxVec4Pod col2Pod, ref PhysxPxVec4Pod col3Pod) + { + fixed (PhysxPxVec4Pod* pcol1Pod = &col1Pod) + { + fixed (PhysxPxVec4Pod* pcol2Pod = &col2Pod) + { + fixed (PhysxPxVec4Pod* pcol3Pod = &col3Pod) + { + PhysxPxMat44Pod ret = PxMat44New3Native(col0Pod, (PhysxPxVec4Pod*)pcol1Pod, (PhysxPxVec4Pod*)pcol2Pod, (PhysxPxVec4Pod*)pcol3Pod); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_new_4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44New4Native(float r); + + public static PhysxPxMat44Pod PxMat44New4( float r) + { + PhysxPxMat44Pod ret = PxMat44New4Native(r); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_new_5")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44New5Native(PhysxPxVec3Pod* col0Pod, PhysxPxVec3Pod* col1Pod, PhysxPxVec3Pod* col2Pod, PhysxPxVec3Pod* col3Pod); + + public static PhysxPxMat44Pod PxMat44New5( PhysxPxVec3Pod* col0Pod, PhysxPxVec3Pod* col1Pod, PhysxPxVec3Pod* col2Pod, PhysxPxVec3Pod* col3Pod) + { + PhysxPxMat44Pod ret = PxMat44New5Native(col0Pod, col1Pod, col2Pod, col3Pod); + return ret; + } + + public static PhysxPxMat44Pod PxMat44New5( PhysxPxVec3Pod* col0Pod, ref PhysxPxVec3Pod col1Pod, PhysxPxVec3Pod* col2Pod, PhysxPxVec3Pod* col3Pod) + { + fixed (PhysxPxVec3Pod* pcol1Pod = &col1Pod) + { + PhysxPxMat44Pod ret = PxMat44New5Native(col0Pod, (PhysxPxVec3Pod*)pcol1Pod, col2Pod, col3Pod); + return ret; + } + } + + public static PhysxPxMat44Pod PxMat44New5( PhysxPxVec3Pod* col0Pod, PhysxPxVec3Pod* col1Pod, ref PhysxPxVec3Pod col2Pod, PhysxPxVec3Pod* col3Pod) + { + fixed (PhysxPxVec3Pod* pcol2Pod = &col2Pod) + { + PhysxPxMat44Pod ret = PxMat44New5Native(col0Pod, col1Pod, (PhysxPxVec3Pod*)pcol2Pod, col3Pod); + return ret; + } + } + + public static PhysxPxMat44Pod PxMat44New5( PhysxPxVec3Pod* col0Pod, ref PhysxPxVec3Pod col1Pod, ref PhysxPxVec3Pod col2Pod, PhysxPxVec3Pod* col3Pod) + { + fixed (PhysxPxVec3Pod* pcol1Pod = &col1Pod) + { + fixed (PhysxPxVec3Pod* pcol2Pod = &col2Pod) + { + PhysxPxMat44Pod ret = PxMat44New5Native(col0Pod, (PhysxPxVec3Pod*)pcol1Pod, (PhysxPxVec3Pod*)pcol2Pod, col3Pod); + return ret; + } + } + } + + public static PhysxPxMat44Pod PxMat44New5( PhysxPxVec3Pod* col0Pod, PhysxPxVec3Pod* col1Pod, PhysxPxVec3Pod* col2Pod, ref PhysxPxVec3Pod col3Pod) + { + fixed (PhysxPxVec3Pod* pcol3Pod = &col3Pod) + { + PhysxPxMat44Pod ret = PxMat44New5Native(col0Pod, col1Pod, col2Pod, (PhysxPxVec3Pod*)pcol3Pod); + return ret; + } + } + + public static PhysxPxMat44Pod PxMat44New5( PhysxPxVec3Pod* col0Pod, ref PhysxPxVec3Pod col1Pod, PhysxPxVec3Pod* col2Pod, ref PhysxPxVec3Pod col3Pod) + { + fixed (PhysxPxVec3Pod* pcol1Pod = &col1Pod) + { + fixed (PhysxPxVec3Pod* pcol3Pod = &col3Pod) + { + PhysxPxMat44Pod ret = PxMat44New5Native(col0Pod, (PhysxPxVec3Pod*)pcol1Pod, col2Pod, (PhysxPxVec3Pod*)pcol3Pod); + return ret; + } + } + } + + public static PhysxPxMat44Pod PxMat44New5( PhysxPxVec3Pod* col0Pod, PhysxPxVec3Pod* col1Pod, ref PhysxPxVec3Pod col2Pod, ref PhysxPxVec3Pod col3Pod) + { + fixed (PhysxPxVec3Pod* pcol2Pod = &col2Pod) + { + fixed (PhysxPxVec3Pod* pcol3Pod = &col3Pod) + { + PhysxPxMat44Pod ret = PxMat44New5Native(col0Pod, col1Pod, (PhysxPxVec3Pod*)pcol2Pod, (PhysxPxVec3Pod*)pcol3Pod); + return ret; + } + } + } + + public static PhysxPxMat44Pod PxMat44New5( PhysxPxVec3Pod* col0Pod, ref PhysxPxVec3Pod col1Pod, ref PhysxPxVec3Pod col2Pod, ref PhysxPxVec3Pod col3Pod) + { + fixed (PhysxPxVec3Pod* pcol1Pod = &col1Pod) + { + fixed (PhysxPxVec3Pod* pcol2Pod = &col2Pod) + { + fixed (PhysxPxVec3Pod* pcol3Pod = &col3Pod) + { + PhysxPxMat44Pod ret = PxMat44New5Native(col0Pod, (PhysxPxVec3Pod*)pcol1Pod, (PhysxPxVec3Pod*)pcol2Pod, (PhysxPxVec3Pod*)pcol3Pod); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_new_6")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44New6Native(float* values); + + public static PhysxPxMat44Pod PxMat44New6( float* values) + { + PhysxPxMat44Pod ret = PxMat44New6Native(values); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_new_7")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44New7Native(PhysxPxQuatPod* qPod); + + public static PhysxPxMat44Pod PxMat44New7( PhysxPxQuatPod* qPod) + { + PhysxPxMat44Pod ret = PxMat44New7Native(qPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_new_8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44New8Native(PhysxPxVec4Pod* diagonalPod); + + public static PhysxPxMat44Pod PxMat44New8( PhysxPxVec4Pod* diagonalPod) + { + PhysxPxMat44Pod ret = PxMat44New8Native(diagonalPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_new_9")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44New9Native(PhysxPxMat33Pod* axesPod, PhysxPxVec3Pod* positionPod); + + public static PhysxPxMat44Pod PxMat44New9( PhysxPxMat33Pod* axesPod, PhysxPxVec3Pod* positionPod) + { + PhysxPxMat44Pod ret = PxMat44New9Native(axesPod, positionPod); + return ret; + } + + public static PhysxPxMat44Pod PxMat44New9( PhysxPxMat33Pod* axesPod, ref PhysxPxVec3Pod positionPod) + { + fixed (PhysxPxVec3Pod* ppositionPod = &positionPod) + { + PhysxPxMat44Pod ret = PxMat44New9Native(axesPod, (PhysxPxVec3Pod*)ppositionPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_new_10")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44New10Native(PhysxPxTransformPod* tPod); + + public static PhysxPxMat44Pod PxMat44New10( PhysxPxTransformPod* tPod) + { + PhysxPxMat44Pod ret = PxMat44New10Native(tPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_getTranspose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44GetTransposeNative(PhysxPxMat44Pod* selfPod); + + public static PhysxPxMat44Pod PxMat44GetTranspose( PhysxPxMat44Pod* selfPod) + { + PhysxPxMat44Pod ret = PxMat44GetTransposeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_transform")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxMat44TransformNative(PhysxPxMat44Pod* selfPod, PhysxPxVec4Pod* otherPod); + + public static PhysxPxVec4Pod PxMat44Transform( PhysxPxMat44Pod* selfPod, PhysxPxVec4Pod* otherPod) + { + PhysxPxVec4Pod ret = PxMat44TransformNative(selfPod, otherPod); + return ret; + } + + public static PhysxPxVec4Pod PxMat44Transform( PhysxPxMat44Pod* selfPod, ref PhysxPxVec4Pod otherPod) + { + fixed (PhysxPxVec4Pod* potherPod = &otherPod) + { + PhysxPxVec4Pod ret = PxMat44TransformNative(selfPod, (PhysxPxVec4Pod*)potherPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_transform_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxMat44Transform1Native(PhysxPxMat44Pod* selfPod, PhysxPxVec3Pod* otherPod); + + public static PhysxPxVec3Pod PxMat44Transform1( PhysxPxMat44Pod* selfPod, PhysxPxVec3Pod* otherPod) + { + PhysxPxVec3Pod ret = PxMat44Transform1Native(selfPod, otherPod); + return ret; + } + + public static PhysxPxVec3Pod PxMat44Transform1( PhysxPxMat44Pod* selfPod, ref PhysxPxVec3Pod otherPod) + { + fixed (PhysxPxVec3Pod* potherPod = &otherPod) + { + PhysxPxVec3Pod ret = PxMat44Transform1Native(selfPod, (PhysxPxVec3Pod*)potherPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_rotate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec4Pod PxMat44RotateNative(PhysxPxMat44Pod* selfPod, PhysxPxVec4Pod* otherPod); + + public static PhysxPxVec4Pod PxMat44Rotate( PhysxPxMat44Pod* selfPod, PhysxPxVec4Pod* otherPod) + { + PhysxPxVec4Pod ret = PxMat44RotateNative(selfPod, otherPod); + return ret; + } + + public static PhysxPxVec4Pod PxMat44Rotate( PhysxPxMat44Pod* selfPod, ref PhysxPxVec4Pod otherPod) + { + fixed (PhysxPxVec4Pod* potherPod = &otherPod) + { + PhysxPxVec4Pod ret = PxMat44RotateNative(selfPod, (PhysxPxVec4Pod*)potherPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_rotate_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxMat44Rotate1Native(PhysxPxMat44Pod* selfPod, PhysxPxVec3Pod* otherPod); + + public static PhysxPxVec3Pod PxMat44Rotate1( PhysxPxMat44Pod* selfPod, PhysxPxVec3Pod* otherPod) + { + PhysxPxVec3Pod ret = PxMat44Rotate1Native(selfPod, otherPod); + return ret; + } + + public static PhysxPxVec3Pod PxMat44Rotate1( PhysxPxMat44Pod* selfPod, ref PhysxPxVec3Pod otherPod) + { + fixed (PhysxPxVec3Pod* potherPod = &otherPod) + { + PhysxPxVec3Pod ret = PxMat44Rotate1Native(selfPod, (PhysxPxVec3Pod*)potherPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_getBasis")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxMat44GetBasisNative(PhysxPxMat44Pod* selfPod, uint num); + + public static PhysxPxVec3Pod PxMat44GetBasis( PhysxPxMat44Pod* selfPod, uint num) + { + PhysxPxVec3Pod ret = PxMat44GetBasisNative(selfPod, num); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_getPosition")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxMat44GetPositionNative(PhysxPxMat44Pod* selfPod); + + public static PhysxPxVec3Pod PxMat44GetPosition( PhysxPxMat44Pod* selfPod) + { + PhysxPxVec3Pod ret = PxMat44GetPositionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_setPosition_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMat44SetPositionMutNative(PhysxPxMat44Pod* selfPod, PhysxPxVec3Pod* positionPod); + + public static void PxMat44SetPositionMut( PhysxPxMat44Pod* selfPod, PhysxPxVec3Pod* positionPod) + { + PxMat44SetPositionMutNative(selfPod, positionPod); + } + + public static void PxMat44SetPositionMut( PhysxPxMat44Pod* selfPod, ref PhysxPxVec3Pod positionPod) + { + fixed (PhysxPxVec3Pod* ppositionPod = &positionPod) + { + PxMat44SetPositionMutNative(selfPod, (PhysxPxVec3Pod*)ppositionPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_front")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float* PxMat44FrontNative(PhysxPxMat44Pod* selfPod); + + public static float* PxMat44Front( PhysxPxMat44Pod* selfPod) + { + float* ret = PxMat44FrontNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_scale_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMat44ScaleMutNative(PhysxPxMat44Pod* selfPod, PhysxPxVec4Pod* pPod); + + public static void PxMat44ScaleMut( PhysxPxMat44Pod* selfPod, PhysxPxVec4Pod* pPod) + { + PxMat44ScaleMutNative(selfPod, pPod); + } + + public static void PxMat44ScaleMut( PhysxPxMat44Pod* selfPod, ref PhysxPxVec4Pod pPod) + { + fixed (PhysxPxVec4Pod* ppPod = &pPod) + { + PxMat44ScaleMutNative(selfPod, (PhysxPxVec4Pod*)ppPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_inverseRT")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat44Pod PxMat44InverseRNative(PhysxPxMat44Pod* selfPod); + + public static PhysxPxMat44Pod PxMat44InverseR( PhysxPxMat44Pod* selfPod) + { + PhysxPxMat44Pod ret = PxMat44InverseRNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMat44_isFinite")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxMat44IsFiniteNative(PhysxPxMat44Pod* selfPod); + + public static bool PxMat44IsFinite( PhysxPxMat44Pod* selfPod) + { + byte ret = PxMat44IsFiniteNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPlanePod PxPlaneNewNative(); + + public static PhysxPxPlanePod PxPlaneNew() + { + PhysxPxPlanePod ret = PxPlaneNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPlanePod PxPlaneNew1Native(float nx, float ny, float nz, float distance); + + public static PhysxPxPlanePod PxPlaneNew1( float nx, float ny, float nz, float distance) + { + PhysxPxPlanePod ret = PxPlaneNew1Native(nx, ny, nz, distance); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPlanePod PxPlaneNew2Native(PhysxPxVec3Pod* normalPod, float distance); + + public static PhysxPxPlanePod PxPlaneNew2( PhysxPxVec3Pod* normalPod, float distance) + { + PhysxPxPlanePod ret = PxPlaneNew2Native(normalPod, distance); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_new_3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPlanePod PxPlaneNew3Native(PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* normalPod); + + public static PhysxPxPlanePod PxPlaneNew3( PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* normalPod) + { + PhysxPxPlanePod ret = PxPlaneNew3Native(pointPod, normalPod); + return ret; + } + + public static PhysxPxPlanePod PxPlaneNew3( PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod normalPod) + { + fixed (PhysxPxVec3Pod* pnormalPod = &normalPod) + { + PhysxPxPlanePod ret = PxPlaneNew3Native(pointPod, (PhysxPxVec3Pod*)pnormalPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_new_4")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPlanePod PxPlaneNew4Native(PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* p2Pod); + + public static PhysxPxPlanePod PxPlaneNew4( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* p2Pod) + { + PhysxPxPlanePod ret = PxPlaneNew4Native(p0Pod, p1Pod, p2Pod); + return ret; + } + + public static PhysxPxPlanePod PxPlaneNew4( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, PhysxPxVec3Pod* p2Pod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + PhysxPxPlanePod ret = PxPlaneNew4Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, p2Pod); + return ret; + } + } + + public static PhysxPxPlanePod PxPlaneNew4( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref PhysxPxVec3Pod p2Pod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + PhysxPxPlanePod ret = PxPlaneNew4Native(p0Pod, p1Pod, (PhysxPxVec3Pod*)pp2Pod); + return ret; + } + } + + public static PhysxPxPlanePod PxPlaneNew4( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref PhysxPxVec3Pod p2Pod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + PhysxPxPlanePod ret = PxPlaneNew4Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (PhysxPxVec3Pod*)pp2Pod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_distance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxPlaneDistanceNative(PhysxPxPlanePod* selfPod, PhysxPxVec3Pod* pPod); + + public static float PxPlaneDistance( PhysxPxPlanePod* selfPod, PhysxPxVec3Pod* pPod) + { + float ret = PxPlaneDistanceNative(selfPod, pPod); + return ret; + } + + public static float PxPlaneDistance( PhysxPxPlanePod* selfPod, ref PhysxPxVec3Pod pPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + float ret = PxPlaneDistanceNative(selfPod, (PhysxPxVec3Pod*)ppPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_contains")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxPlaneContainsNative(PhysxPxPlanePod* selfPod, PhysxPxVec3Pod* pPod); + + public static bool PxPlaneContains( PhysxPxPlanePod* selfPod, PhysxPxVec3Pod* pPod) + { + byte ret = PxPlaneContainsNative(selfPod, pPod); + return ret != 0; + } + + public static bool PxPlaneContains( PhysxPxPlanePod* selfPod, ref PhysxPxVec3Pod pPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + byte ret = PxPlaneContainsNative(selfPod, (PhysxPxVec3Pod*)ppPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_project")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxPlaneProjectNative(PhysxPxPlanePod* selfPod, PhysxPxVec3Pod* pPod); + + public static PhysxPxVec3Pod PxPlaneProject( PhysxPxPlanePod* selfPod, PhysxPxVec3Pod* pPod) + { + PhysxPxVec3Pod ret = PxPlaneProjectNative(selfPod, pPod); + return ret; + } + + public static PhysxPxVec3Pod PxPlaneProject( PhysxPxPlanePod* selfPod, ref PhysxPxVec3Pod pPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysxPxVec3Pod ret = PxPlaneProjectNative(selfPod, (PhysxPxVec3Pod*)ppPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_pointInPlane")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxPlanePointInPlaneNative(PhysxPxPlanePod* selfPod); + + public static PhysxPxVec3Pod PxPlanePointInPlane( PhysxPxPlanePod* selfPod) + { + PhysxPxVec3Pod ret = PxPlanePointInPlaneNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_normalize_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPlaneNormalizeMutNative(PhysxPxPlanePod* selfPod); + + public static void PxPlaneNormalizeMut( PhysxPxPlanePod* selfPod) + { + PxPlaneNormalizeMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_transform")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPlanePod PxPlaneTransformNative(PhysxPxPlanePod* selfPod, PhysxPxTransformPod* posePod); + + public static PhysxPxPlanePod PxPlaneTransform( PhysxPxPlanePod* selfPod, PhysxPxTransformPod* posePod) + { + PhysxPxPlanePod ret = PxPlaneTransformNative(selfPod, posePod); + return ret; + } + + public static PhysxPxPlanePod PxPlaneTransform( PhysxPxPlanePod* selfPod, ref PhysxPxTransformPod posePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PhysxPxPlanePod ret = PxPlaneTransformNative(selfPod, (PhysxPxTransformPod*)pposePod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPlane_inverseTransform")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPlanePod PxPlaneInverseTransformNative(PhysxPxPlanePod* selfPod, PhysxPxTransformPod* posePod); + + public static PhysxPxPlanePod PxPlaneInverseTransform( PhysxPxPlanePod* selfPod, PhysxPxTransformPod* posePod) + { + PhysxPxPlanePod ret = PxPlaneInverseTransformNative(selfPod, posePod); + return ret; + } + + public static PhysxPxPlanePod PxPlaneInverseTransform( PhysxPxPlanePod* selfPod, ref PhysxPxTransformPod posePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PhysxPxPlanePod ret = PxPlaneInverseTransformNative(selfPod, (PhysxPxTransformPod*)pposePod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxShortestRotation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQuatPod PhysPxShortestRotationNative(PhysxPxVec3Pod* fromPod, PhysxPxVec3Pod* targetPod); + + public static PhysxPxQuatPod PhysPxShortestRotation( PhysxPxVec3Pod* fromPod, PhysxPxVec3Pod* targetPod) + { + PhysxPxQuatPod ret = PhysPxShortestRotationNative(fromPod, targetPod); + return ret; + } + + public static PhysxPxQuatPod PhysPxShortestRotation( PhysxPxVec3Pod* fromPod, ref PhysxPxVec3Pod targetPod) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PhysxPxQuatPod ret = PhysPxShortestRotationNative(fromPod, (PhysxPxVec3Pod*)ptargetPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxDiagonalize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PhysPxDiagonalizeNative(PhysxPxMat33Pod* mPod, PhysxPxQuatPod* axesPod); + + public static PhysxPxVec3Pod PhysPxDiagonalize( PhysxPxMat33Pod* mPod, PhysxPxQuatPod* axesPod) + { + PhysxPxVec3Pod ret = PhysPxDiagonalizeNative(mPod, axesPod); + return ret; + } + + public static PhysxPxVec3Pod PhysPxDiagonalize( PhysxPxMat33Pod* mPod, ref PhysxPxQuatPod axesPod) + { + fixed (PhysxPxQuatPod* paxesPod = &axesPod) + { + PhysxPxVec3Pod ret = PhysPxDiagonalizeNative(mPod, (PhysxPxQuatPod*)paxesPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxTransformFromSegment")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PhysPxTransformFromSegmentNative(PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, float* halfHeight); + + public static PhysxPxTransformPod PhysPxTransformFromSegment( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, float* halfHeight) + { + PhysxPxTransformPod ret = PhysPxTransformFromSegmentNative(p0Pod, p1Pod, halfHeight); + return ret; + } + + public static PhysxPxTransformPod PhysPxTransformFromSegment( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, float* halfHeight) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + PhysxPxTransformPod ret = PhysPxTransformFromSegmentNative(p0Pod, (PhysxPxVec3Pod*)pp1Pod, halfHeight); + return ret; + } + } + + public static PhysxPxTransformPod PhysPxTransformFromSegment( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref float halfHeight) + { + fixed (float* phalfHeight = &halfHeight) + { + PhysxPxTransformPod ret = PhysPxTransformFromSegmentNative(p0Pod, p1Pod, (float*)phalfHeight); + return ret; + } + } + + public static PhysxPxTransformPod PhysPxTransformFromSegment( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref float halfHeight) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (float* phalfHeight = &halfHeight) + { + PhysxPxTransformPod ret = PhysPxTransformFromSegmentNative(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (float*)phalfHeight); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxTransformFromPlaneEquation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PhysPxTransformFromPlaneEquationNative(PhysxPxPlanePod* planePod); + + public static PhysxPxTransformPod PhysPxTransformFromPlaneEquation( PhysxPxPlanePod* planePod) + { + PhysxPxTransformPod ret = PhysPxTransformFromPlaneEquationNative(planePod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxPlaneEquationFromTransform")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPlanePod PhysPxPlaneEquationFromTransformNative(PhysxPxTransformPod* posePod); + + public static PhysxPxPlanePod PhysPxPlaneEquationFromTransform( PhysxPxTransformPod* posePod) + { + PhysxPxPlanePod ret = PhysPxPlaneEquationFromTransformNative(posePod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSlerp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQuatPod PhysPxSlerpNative(float t, PhysxPxQuatPod* leftPod, PhysxPxQuatPod* rightPod); + + public static PhysxPxQuatPod PhysPxSlerp( float t, PhysxPxQuatPod* leftPod, PhysxPxQuatPod* rightPod) + { + PhysxPxQuatPod ret = PhysPxSlerpNative(t, leftPod, rightPod); + return ret; + } + + public static PhysxPxQuatPod PhysPxSlerp( float t, ref PhysxPxQuatPod leftPod, PhysxPxQuatPod* rightPod) + { + fixed (PhysxPxQuatPod* pleftPod = &leftPod) + { + PhysxPxQuatPod ret = PhysPxSlerpNative(t, (PhysxPxQuatPod*)pleftPod, rightPod); + return ret; + } + } + + public static PhysxPxQuatPod PhysPxSlerp( float t, PhysxPxQuatPod* leftPod, ref PhysxPxQuatPod rightPod) + { + fixed (PhysxPxQuatPod* prightPod = &rightPod) + { + PhysxPxQuatPod ret = PhysPxSlerpNative(t, leftPod, (PhysxPxQuatPod*)prightPod); + return ret; + } + } + + public static PhysxPxQuatPod PhysPxSlerp( float t, ref PhysxPxQuatPod leftPod, ref PhysxPxQuatPod rightPod) + { + fixed (PhysxPxQuatPod* pleftPod = &leftPod) + { + fixed (PhysxPxQuatPod* prightPod = &rightPod) + { + PhysxPxQuatPod ret = PhysPxSlerpNative(t, (PhysxPxQuatPod*)pleftPod, (PhysxPxQuatPod*)prightPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxIntegrateTransform")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxIntegrateTransformNative(PhysxPxTransformPod* curtransPod, PhysxPxVec3Pod* linvelPod, PhysxPxVec3Pod* angvelPod, float timeStep, PhysxPxTransformPod* resultPod); + + public static void PhysPxIntegrateTransform( PhysxPxTransformPod* curtransPod, PhysxPxVec3Pod* linvelPod, PhysxPxVec3Pod* angvelPod, float timeStep, PhysxPxTransformPod* resultPod) + { + PhysPxIntegrateTransformNative(curtransPod, linvelPod, angvelPod, timeStep, resultPod); + } + + public static void PhysPxIntegrateTransform( PhysxPxTransformPod* curtransPod, ref PhysxPxVec3Pod linvelPod, PhysxPxVec3Pod* angvelPod, float timeStep, PhysxPxTransformPod* resultPod) + { + fixed (PhysxPxVec3Pod* plinvelPod = &linvelPod) + { + PhysPxIntegrateTransformNative(curtransPod, (PhysxPxVec3Pod*)plinvelPod, angvelPod, timeStep, resultPod); + } + } + + public static void PhysPxIntegrateTransform( PhysxPxTransformPod* curtransPod, PhysxPxVec3Pod* linvelPod, ref PhysxPxVec3Pod angvelPod, float timeStep, PhysxPxTransformPod* resultPod) + { + fixed (PhysxPxVec3Pod* pangvelPod = &angvelPod) + { + PhysPxIntegrateTransformNative(curtransPod, linvelPod, (PhysxPxVec3Pod*)pangvelPod, timeStep, resultPod); + } + } + + public static void PhysPxIntegrateTransform( PhysxPxTransformPod* curtransPod, ref PhysxPxVec3Pod linvelPod, ref PhysxPxVec3Pod angvelPod, float timeStep, PhysxPxTransformPod* resultPod) + { + fixed (PhysxPxVec3Pod* plinvelPod = &linvelPod) + { + fixed (PhysxPxVec3Pod* pangvelPod = &angvelPod) + { + PhysPxIntegrateTransformNative(curtransPod, (PhysxPxVec3Pod*)plinvelPod, (PhysxPxVec3Pod*)pangvelPod, timeStep, resultPod); + } + } + } + + public static void PhysPxIntegrateTransform( PhysxPxTransformPod* curtransPod, PhysxPxVec3Pod* linvelPod, PhysxPxVec3Pod* angvelPod, float timeStep, ref PhysxPxTransformPod resultPod) + { + fixed (PhysxPxTransformPod* presultPod = &resultPod) + { + PhysPxIntegrateTransformNative(curtransPod, linvelPod, angvelPod, timeStep, (PhysxPxTransformPod*)presultPod); + } + } + + public static void PhysPxIntegrateTransform( PhysxPxTransformPod* curtransPod, ref PhysxPxVec3Pod linvelPod, PhysxPxVec3Pod* angvelPod, float timeStep, ref PhysxPxTransformPod resultPod) + { + fixed (PhysxPxVec3Pod* plinvelPod = &linvelPod) + { + fixed (PhysxPxTransformPod* presultPod = &resultPod) + { + PhysPxIntegrateTransformNative(curtransPod, (PhysxPxVec3Pod*)plinvelPod, angvelPod, timeStep, (PhysxPxTransformPod*)presultPod); + } + } + } + + public static void PhysPxIntegrateTransform( PhysxPxTransformPod* curtransPod, PhysxPxVec3Pod* linvelPod, ref PhysxPxVec3Pod angvelPod, float timeStep, ref PhysxPxTransformPod resultPod) + { + fixed (PhysxPxVec3Pod* pangvelPod = &angvelPod) + { + fixed (PhysxPxTransformPod* presultPod = &resultPod) + { + PhysPxIntegrateTransformNative(curtransPod, linvelPod, (PhysxPxVec3Pod*)pangvelPod, timeStep, (PhysxPxTransformPod*)presultPod); + } + } + } + + public static void PhysPxIntegrateTransform( PhysxPxTransformPod* curtransPod, ref PhysxPxVec3Pod linvelPod, ref PhysxPxVec3Pod angvelPod, float timeStep, ref PhysxPxTransformPod resultPod) + { + fixed (PhysxPxVec3Pod* plinvelPod = &linvelPod) + { + fixed (PhysxPxVec3Pod* pangvelPod = &angvelPod) + { + fixed (PhysxPxTransformPod* presultPod = &resultPod) + { + PhysPxIntegrateTransformNative(curtransPod, (PhysxPxVec3Pod*)plinvelPod, (PhysxPxVec3Pod*)pangvelPod, timeStep, (PhysxPxTransformPod*)presultPod); + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxExp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQuatPod PhysPxExpNative(PhysxPxVec3Pod* vPod); + + public static PhysxPxQuatPod PhysPxExp( PhysxPxVec3Pod* vPod) + { + PhysxPxQuatPod ret = PhysPxExpNative(vPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxOptimizeBoundingBox")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PhysPxOptimizeBoundingBoxNative(PhysxPxMat33Pod* basisPod); + + public static PhysxPxVec3Pod PhysPxOptimizeBoundingBox( PhysxPxMat33Pod* basisPod) + { + PhysxPxVec3Pod ret = PhysPxOptimizeBoundingBoxNative(basisPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxLog")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PhysPxLogNative(PhysxPxQuatPod* qPod); + + public static PhysxPxVec3Pod PhysPxLog( PhysxPxQuatPod* qPod) + { + PhysxPxVec3Pod ret = PhysPxLogNative(qPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxLargestAxis")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxLargestAxisNative(PhysxPxVec3Pod* vPod); + + public static uint PhysPxLargestAxis( PhysxPxVec3Pod* vPod) + { + uint ret = PhysPxLargestAxisNative(vPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxTanHalf")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PhysPxTanHalfNative(float sin, float cos); + + public static float PhysPxTanHalf( float sin, float cos) + { + float ret = PhysPxTanHalfNative(sin, cos); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxEllipseClamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PhysPxEllipseClampNative(PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* radiiPod); + + public static PhysxPxVec3Pod PhysPxEllipseClamp( PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* radiiPod) + { + PhysxPxVec3Pod ret = PhysPxEllipseClampNative(pointPod, radiiPod); + return ret; + } + + public static PhysxPxVec3Pod PhysPxEllipseClamp( PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod radiiPod) + { + fixed (PhysxPxVec3Pod* pradiiPod = &radiiPod) + { + PhysxPxVec3Pod ret = PhysPxEllipseClampNative(pointPod, (PhysxPxVec3Pod*)pradiiPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSeparateSwingTwist")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxSeparateSwingTwistNative(PhysxPxQuatPod* qPod, PhysxPxQuatPod* swingPod, PhysxPxQuatPod* twistPod); + + public static void PhysPxSeparateSwingTwist( PhysxPxQuatPod* qPod, PhysxPxQuatPod* swingPod, PhysxPxQuatPod* twistPod) + { + PhysPxSeparateSwingTwistNative(qPod, swingPod, twistPod); + } + + public static void PhysPxSeparateSwingTwist( PhysxPxQuatPod* qPod, ref PhysxPxQuatPod swingPod, PhysxPxQuatPod* twistPod) + { + fixed (PhysxPxQuatPod* pswingPod = &swingPod) + { + PhysPxSeparateSwingTwistNative(qPod, (PhysxPxQuatPod*)pswingPod, twistPod); + } + } + + public static void PhysPxSeparateSwingTwist( PhysxPxQuatPod* qPod, PhysxPxQuatPod* swingPod, ref PhysxPxQuatPod twistPod) + { + fixed (PhysxPxQuatPod* ptwistPod = &twistPod) + { + PhysPxSeparateSwingTwistNative(qPod, swingPod, (PhysxPxQuatPod*)ptwistPod); + } + } + + public static void PhysPxSeparateSwingTwist( PhysxPxQuatPod* qPod, ref PhysxPxQuatPod swingPod, ref PhysxPxQuatPod twistPod) + { + fixed (PhysxPxQuatPod* pswingPod = &swingPod) + { + fixed (PhysxPxQuatPod* ptwistPod = &twistPod) + { + PhysPxSeparateSwingTwistNative(qPod, (PhysxPxQuatPod*)pswingPod, (PhysxPxQuatPod*)ptwistPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxComputeAngle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PhysPxComputeAngleNative(PhysxPxVec3Pod* v0Pod, PhysxPxVec3Pod* v1Pod); + + public static float PhysPxComputeAngle( PhysxPxVec3Pod* v0Pod, PhysxPxVec3Pod* v1Pod) + { + float ret = PhysPxComputeAngleNative(v0Pod, v1Pod); + return ret; + } + + public static float PhysPxComputeAngle( PhysxPxVec3Pod* v0Pod, ref PhysxPxVec3Pod v1Pod) + { + fixed (PhysxPxVec3Pod* pv1Pod = &v1Pod) + { + float ret = PhysPxComputeAngleNative(v0Pod, (PhysxPxVec3Pod*)pv1Pod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxComputeBasisVectors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxComputeBasisVectorsNative(PhysxPxVec3Pod* dirPod, PhysxPxVec3Pod* rightPod, PhysxPxVec3Pod* upPod); + + public static void PhysPxComputeBasisVectors( PhysxPxVec3Pod* dirPod, PhysxPxVec3Pod* rightPod, PhysxPxVec3Pod* upPod) + { + PhysPxComputeBasisVectorsNative(dirPod, rightPod, upPod); + } + + public static void PhysPxComputeBasisVectors( PhysxPxVec3Pod* dirPod, ref PhysxPxVec3Pod rightPod, PhysxPxVec3Pod* upPod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + PhysPxComputeBasisVectorsNative(dirPod, (PhysxPxVec3Pod*)prightPod, upPod); + } + } + + public static void PhysPxComputeBasisVectors( PhysxPxVec3Pod* dirPod, PhysxPxVec3Pod* rightPod, ref PhysxPxVec3Pod upPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PhysPxComputeBasisVectorsNative(dirPod, rightPod, (PhysxPxVec3Pod*)pupPod); + } + } + + public static void PhysPxComputeBasisVectors( PhysxPxVec3Pod* dirPod, ref PhysxPxVec3Pod rightPod, ref PhysxPxVec3Pod upPod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PhysPxComputeBasisVectorsNative(dirPod, (PhysxPxVec3Pod*)prightPod, (PhysxPxVec3Pod*)pupPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxComputeBasisVectors_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxComputeBasisVectors1Native(PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* dirPod, PhysxPxVec3Pod* rightPod, PhysxPxVec3Pod* upPod); + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* dirPod, PhysxPxVec3Pod* rightPod, PhysxPxVec3Pod* upPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, p1Pod, dirPod, rightPod, upPod); + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, PhysxPxVec3Pod* dirPod, PhysxPxVec3Pod* rightPod, PhysxPxVec3Pod* upPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + PhysPxComputeBasisVectors1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, dirPod, rightPod, upPod); + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref PhysxPxVec3Pod dirPod, PhysxPxVec3Pod* rightPod, PhysxPxVec3Pod* upPod) + { + fixed (PhysxPxVec3Pod* pdirPod = &dirPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, p1Pod, (PhysxPxVec3Pod*)pdirPod, rightPod, upPod); + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref PhysxPxVec3Pod dirPod, PhysxPxVec3Pod* rightPod, PhysxPxVec3Pod* upPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pdirPod = &dirPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (PhysxPxVec3Pod*)pdirPod, rightPod, upPod); + } + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* dirPod, ref PhysxPxVec3Pod rightPod, PhysxPxVec3Pod* upPod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, p1Pod, dirPod, (PhysxPxVec3Pod*)prightPod, upPod); + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, PhysxPxVec3Pod* dirPod, ref PhysxPxVec3Pod rightPod, PhysxPxVec3Pod* upPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, dirPod, (PhysxPxVec3Pod*)prightPod, upPod); + } + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref PhysxPxVec3Pod dirPod, ref PhysxPxVec3Pod rightPod, PhysxPxVec3Pod* upPod) + { + fixed (PhysxPxVec3Pod* pdirPod = &dirPod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, p1Pod, (PhysxPxVec3Pod*)pdirPod, (PhysxPxVec3Pod*)prightPod, upPod); + } + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref PhysxPxVec3Pod dirPod, ref PhysxPxVec3Pod rightPod, PhysxPxVec3Pod* upPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pdirPod = &dirPod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (PhysxPxVec3Pod*)pdirPod, (PhysxPxVec3Pod*)prightPod, upPod); + } + } + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* dirPod, PhysxPxVec3Pod* rightPod, ref PhysxPxVec3Pod upPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, p1Pod, dirPod, rightPod, (PhysxPxVec3Pod*)pupPod); + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, PhysxPxVec3Pod* dirPod, PhysxPxVec3Pod* rightPod, ref PhysxPxVec3Pod upPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, dirPod, rightPod, (PhysxPxVec3Pod*)pupPod); + } + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref PhysxPxVec3Pod dirPod, PhysxPxVec3Pod* rightPod, ref PhysxPxVec3Pod upPod) + { + fixed (PhysxPxVec3Pod* pdirPod = &dirPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, p1Pod, (PhysxPxVec3Pod*)pdirPod, rightPod, (PhysxPxVec3Pod*)pupPod); + } + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref PhysxPxVec3Pod dirPod, PhysxPxVec3Pod* rightPod, ref PhysxPxVec3Pod upPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pdirPod = &dirPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (PhysxPxVec3Pod*)pdirPod, rightPod, (PhysxPxVec3Pod*)pupPod); + } + } + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* dirPod, ref PhysxPxVec3Pod rightPod, ref PhysxPxVec3Pod upPod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, p1Pod, dirPod, (PhysxPxVec3Pod*)prightPod, (PhysxPxVec3Pod*)pupPod); + } + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, PhysxPxVec3Pod* dirPod, ref PhysxPxVec3Pod rightPod, ref PhysxPxVec3Pod upPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, dirPod, (PhysxPxVec3Pod*)prightPod, (PhysxPxVec3Pod*)pupPod); + } + } + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref PhysxPxVec3Pod dirPod, ref PhysxPxVec3Pod rightPod, ref PhysxPxVec3Pod upPod) + { + fixed (PhysxPxVec3Pod* pdirPod = &dirPod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, p1Pod, (PhysxPxVec3Pod*)pdirPod, (PhysxPxVec3Pod*)prightPod, (PhysxPxVec3Pod*)pupPod); + } + } + } + } + + public static void PhysPxComputeBasisVectors1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref PhysxPxVec3Pod dirPod, ref PhysxPxVec3Pod rightPod, ref PhysxPxVec3Pod upPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pdirPod = &dirPod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PhysPxComputeBasisVectors1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (PhysxPxVec3Pod*)pdirPod, (PhysxPxVec3Pod*)prightPod, (PhysxPxVec3Pod*)pupPod); + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetNextIndex3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxGetNextIndex3Native(uint i); + + public static uint PhysPxGetNextIndex3( uint i) + { + uint ret = PhysPxGetNextIndex3Native(i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_computeBarycentric")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysComputeBarycentricNative(PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* dPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod); + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* dPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + PhysComputeBarycentricNative(aPod, bPod, cPod, dPod, pPod, baryPod); + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* dPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, cPod, dPod, pPod, baryPod); + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.003.cs b/Hexa.NET.PhysX/Generated/Functions.003.cs new file mode 100644 index 0000000..7a0920e --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.003.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* dPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + PhysComputeBarycentricNative(aPod, bPod, (PhysxPxVec3Pod*)pcPod, dPod, pPod, baryPod); + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* dPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, dPod, pPod, baryPod); + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod dPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + PhysComputeBarycentricNative(aPod, bPod, cPod, (PhysxPxVec3Pod*)pdPod, pPod, baryPod); + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod dPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, cPod, (PhysxPxVec3Pod*)pdPod, pPod, baryPod); + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod dPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + PhysComputeBarycentricNative(aPod, bPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)pdPod, pPod, baryPod); + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod dPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)pdPod, pPod, baryPod); + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* dPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentricNative(aPod, bPod, cPod, dPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* dPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, cPod, dPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* dPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentricNative(aPod, bPod, (PhysxPxVec3Pod*)pcPod, dPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* dPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, dPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod dPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentricNative(aPod, bPod, cPod, (PhysxPxVec3Pod*)pdPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod dPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, cPod, (PhysxPxVec3Pod*)pdPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod dPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentricNative(aPod, bPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)pdPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod dPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)pdPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* dPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, bPod, cPod, dPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* dPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, cPod, dPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* dPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, bPod, (PhysxPxVec3Pod*)pcPod, dPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* dPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, dPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod dPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, bPod, cPod, (PhysxPxVec3Pod*)pdPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod dPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, cPod, (PhysxPxVec3Pod*)pdPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod dPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, bPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)pdPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod dPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)pdPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* dPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, bPod, cPod, dPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* dPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, cPod, dPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* dPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, bPod, (PhysxPxVec3Pod*)pcPod, dPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* dPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, dPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod dPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, bPod, cPod, (PhysxPxVec3Pod*)pdPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod dPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, cPod, (PhysxPxVec3Pod*)pdPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod dPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, bPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)pdPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + } + + public static void PhysComputeBarycentric( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod dPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* pdPod = &dPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentricNative(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)pdPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_computeBarycentric_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysComputeBarycentric1Native(PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod); + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + PhysComputeBarycentric1Native(aPod, bPod, cPod, pPod, baryPod); + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + PhysComputeBarycentric1Native(aPod, (PhysxPxVec3Pod*)pbPod, cPod, pPod, baryPod); + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + PhysComputeBarycentric1Native(aPod, bPod, (PhysxPxVec3Pod*)pcPod, pPod, baryPod); + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + PhysComputeBarycentric1Native(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, pPod, baryPod); + } + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentric1Native(aPod, bPod, cPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentric1Native(aPod, (PhysxPxVec3Pod*)pbPod, cPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentric1Native(aPod, bPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod pPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PhysComputeBarycentric1Native(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)ppPod, baryPod); + } + } + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentric1Native(aPod, bPod, cPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentric1Native(aPod, (PhysxPxVec3Pod*)pbPod, cPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentric1Native(aPod, bPod, (PhysxPxVec3Pod*)pcPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, PhysxPxVec3Pod* pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentric1Native(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, pPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentric1Native(aPod, bPod, cPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, PhysxPxVec3Pod* cPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentric1Native(aPod, (PhysxPxVec3Pod*)pbPod, cPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, PhysxPxVec3Pod* bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentric1Native(aPod, bPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + + public static void PhysComputeBarycentric1( PhysxPxVec3Pod* aPod, ref PhysxPxVec3Pod bPod, ref PhysxPxVec3Pod cPod, ref PhysxPxVec3Pod pPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* pbPod = &bPod) + { + fixed (PhysxPxVec3Pod* pcPod = &cPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + PhysComputeBarycentric1Native(aPod, (PhysxPxVec3Pod*)pbPod, (PhysxPxVec3Pod*)pcPod, (PhysxPxVec3Pod*)ppPod, (PhysxPxVec4Pod*)pbaryPod); + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "Interpolation_PxLerp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float InterpolationPxLerpNative(float a, float b, float t); + + public static float InterpolationPxLerp( float a, float b, float t) + { + float ret = InterpolationPxLerpNative(a, b, t); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "Interpolation_PxBiLerp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float InterpolationPxBiLerpNative(float f00, float f10, float f01, float f11, float tx, float ty); + + public static float InterpolationPxBiLerp( float f00, float f10, float f01, float f11, float tx, float ty) + { + float ret = InterpolationPxBiLerpNative(f00, f10, f01, f11, tx, ty); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "Interpolation_PxTriLerp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float InterpolationPxTriLerpNative(float f000, float f100, float f010, float f110, float f001, float f101, float f011, float f111, float tx, float ty, float tz); + + public static float InterpolationPxTriLerp( float f000, float f100, float f010, float f110, float f001, float f101, float f011, float f111, float tx, float ty, float tz) + { + float ret = InterpolationPxTriLerpNative(f000, f100, f010, f110, f001, f101, f011, f111, tx, ty, tz); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "Interpolation_PxSDFIdx")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint InterpolationPxSDFIdxNative(uint i, uint j, uint k, uint nbX, uint nbY); + + public static uint InterpolationPxSDFIdx( uint i, uint j, uint k, uint nbX, uint nbY) + { + uint ret = InterpolationPxSDFIdxNative(i, j, k, nbX, nbY); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "Interpolation_PxSDFSampleImpl")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float InterpolationPxSDFSampleImplNative(float* sdf, PhysxPxVec3Pod* localposPod, PhysxPxVec3Pod* sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, float tolerance); + + public static float InterpolationPxSDFSampleImpl( float* sdf, PhysxPxVec3Pod* localposPod, PhysxPxVec3Pod* sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, float tolerance) + { + float ret = InterpolationPxSDFSampleImplNative(sdf, localposPod, sdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, tolerance); + return ret; + } + + public static float InterpolationPxSDFSampleImpl( float* sdf, ref PhysxPxVec3Pod localposPod, PhysxPxVec3Pod* sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + float ret = InterpolationPxSDFSampleImplNative(sdf, (PhysxPxVec3Pod*)plocalposPod, sdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, tolerance); + return ret; + } + } + + public static float InterpolationPxSDFSampleImpl( float* sdf, PhysxPxVec3Pod* localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, float tolerance) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + float ret = InterpolationPxSDFSampleImplNative(sdf, localposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, tolerance); + return ret; + } + } + + public static float InterpolationPxSDFSampleImpl( float* sdf, ref PhysxPxVec3Pod localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + float ret = InterpolationPxSDFSampleImplNative(sdf, (PhysxPxVec3Pod*)plocalposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, tolerance); + return ret; + } + } + } + + public static float InterpolationPxSDFSampleImpl( float* sdf, PhysxPxVec3Pod* localposPod, PhysxPxVec3Pod* sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, float tolerance) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + float ret = InterpolationPxSDFSampleImplNative(sdf, localposPod, sdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, tolerance); + return ret; + } + } + + public static float InterpolationPxSDFSampleImpl( float* sdf, ref PhysxPxVec3Pod localposPod, PhysxPxVec3Pod* sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + float ret = InterpolationPxSDFSampleImplNative(sdf, (PhysxPxVec3Pod*)plocalposPod, sdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, tolerance); + return ret; + } + } + } + + public static float InterpolationPxSDFSampleImpl( float* sdf, PhysxPxVec3Pod* localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, float tolerance) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + float ret = InterpolationPxSDFSampleImplNative(sdf, localposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, tolerance); + return ret; + } + } + } + + public static float InterpolationPxSDFSampleImpl( float* sdf, ref PhysxPxVec3Pod localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + float ret = InterpolationPxSDFSampleImplNative(sdf, (PhysxPxVec3Pod*)plocalposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, tolerance); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSdfSample")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PhysPxSdfSampleNative(float* sdf, PhysxPxVec3Pod* localposPod, PhysxPxVec3Pod* sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, PhysxPxVec3Pod* gradientPod, float tolerance); + + public static float PhysPxSdfSample( float* sdf, PhysxPxVec3Pod* localposPod, PhysxPxVec3Pod* sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, PhysxPxVec3Pod* gradientPod, float tolerance) + { + float ret = PhysPxSdfSampleNative(sdf, localposPod, sdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, gradientPod, tolerance); + return ret; + } + + public static float PhysPxSdfSample( float* sdf, ref PhysxPxVec3Pod localposPod, PhysxPxVec3Pod* sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, PhysxPxVec3Pod* gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + float ret = PhysPxSdfSampleNative(sdf, (PhysxPxVec3Pod*)plocalposPod, sdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, gradientPod, tolerance); + return ret; + } + } + + public static float PhysPxSdfSample( float* sdf, PhysxPxVec3Pod* localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, PhysxPxVec3Pod* gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + float ret = PhysPxSdfSampleNative(sdf, localposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, gradientPod, tolerance); + return ret; + } + } + + public static float PhysPxSdfSample( float* sdf, ref PhysxPxVec3Pod localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, PhysxPxVec3Pod* gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + float ret = PhysPxSdfSampleNative(sdf, (PhysxPxVec3Pod*)plocalposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, gradientPod, tolerance); + return ret; + } + } + } + + public static float PhysPxSdfSample( float* sdf, PhysxPxVec3Pod* localposPod, PhysxPxVec3Pod* sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, PhysxPxVec3Pod* gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + float ret = PhysPxSdfSampleNative(sdf, localposPod, sdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, gradientPod, tolerance); + return ret; + } + } + + public static float PhysPxSdfSample( float* sdf, ref PhysxPxVec3Pod localposPod, PhysxPxVec3Pod* sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, PhysxPxVec3Pod* gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + float ret = PhysPxSdfSampleNative(sdf, (PhysxPxVec3Pod*)plocalposPod, sdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, gradientPod, tolerance); + return ret; + } + } + } + + public static float PhysPxSdfSample( float* sdf, PhysxPxVec3Pod* localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, PhysxPxVec3Pod* gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + float ret = PhysPxSdfSampleNative(sdf, localposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, gradientPod, tolerance); + return ret; + } + } + } + + public static float PhysPxSdfSample( float* sdf, ref PhysxPxVec3Pod localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, PhysxPxVec3Pod* gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + float ret = PhysPxSdfSampleNative(sdf, (PhysxPxVec3Pod*)plocalposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, gradientPod, tolerance); + return ret; + } + } + } + } + + public static float PhysPxSdfSample( float* sdf, PhysxPxVec3Pod* localposPod, PhysxPxVec3Pod* sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, ref PhysxPxVec3Pod gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* pgradientPod = &gradientPod) + { + float ret = PhysPxSdfSampleNative(sdf, localposPod, sdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, (PhysxPxVec3Pod*)pgradientPod, tolerance); + return ret; + } + } + + public static float PhysPxSdfSample( float* sdf, ref PhysxPxVec3Pod localposPod, PhysxPxVec3Pod* sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, ref PhysxPxVec3Pod gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + fixed (PhysxPxVec3Pod* pgradientPod = &gradientPod) + { + float ret = PhysPxSdfSampleNative(sdf, (PhysxPxVec3Pod*)plocalposPod, sdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, (PhysxPxVec3Pod*)pgradientPod, tolerance); + return ret; + } + } + } + + public static float PhysPxSdfSample( float* sdf, PhysxPxVec3Pod* localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, ref PhysxPxVec3Pod gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + fixed (PhysxPxVec3Pod* pgradientPod = &gradientPod) + { + float ret = PhysPxSdfSampleNative(sdf, localposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, (PhysxPxVec3Pod*)pgradientPod, tolerance); + return ret; + } + } + } + + public static float PhysPxSdfSample( float* sdf, ref PhysxPxVec3Pod localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, PhysxPxVec3Pod* sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, ref PhysxPxVec3Pod gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + fixed (PhysxPxVec3Pod* pgradientPod = &gradientPod) + { + float ret = PhysPxSdfSampleNative(sdf, (PhysxPxVec3Pod*)plocalposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, sdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, (PhysxPxVec3Pod*)pgradientPod, tolerance); + return ret; + } + } + } + } + + public static float PhysPxSdfSample( float* sdf, PhysxPxVec3Pod* localposPod, PhysxPxVec3Pod* sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, ref PhysxPxVec3Pod gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + fixed (PhysxPxVec3Pod* pgradientPod = &gradientPod) + { + float ret = PhysPxSdfSampleNative(sdf, localposPod, sdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, (PhysxPxVec3Pod*)pgradientPod, tolerance); + return ret; + } + } + } + + public static float PhysPxSdfSample( float* sdf, ref PhysxPxVec3Pod localposPod, PhysxPxVec3Pod* sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, ref PhysxPxVec3Pod gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + fixed (PhysxPxVec3Pod* pgradientPod = &gradientPod) + { + float ret = PhysPxSdfSampleNative(sdf, (PhysxPxVec3Pod*)plocalposPod, sdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, (PhysxPxVec3Pod*)pgradientPod, tolerance); + return ret; + } + } + } + } + + public static float PhysPxSdfSample( float* sdf, PhysxPxVec3Pod* localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, ref PhysxPxVec3Pod gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + fixed (PhysxPxVec3Pod* pgradientPod = &gradientPod) + { + float ret = PhysPxSdfSampleNative(sdf, localposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, (PhysxPxVec3Pod*)pgradientPod, tolerance); + return ret; + } + } + } + } + + public static float PhysPxSdfSample( float* sdf, ref PhysxPxVec3Pod localposPod, ref PhysxPxVec3Pod sdfboxlowerPod, ref PhysxPxVec3Pod sdfboxhigherPod, float sdfDx, float invSdfDx, uint dimX, uint dimY, uint dimZ, ref PhysxPxVec3Pod gradientPod, float tolerance) + { + fixed (PhysxPxVec3Pod* plocalposPod = &localposPod) + { + fixed (PhysxPxVec3Pod* psdfboxlowerPod = &sdfboxlowerPod) + { + fixed (PhysxPxVec3Pod* psdfboxhigherPod = &sdfboxhigherPod) + { + fixed (PhysxPxVec3Pod* pgradientPod = &gradientPod) + { + float ret = PhysPxSdfSampleNative(sdf, (PhysxPxVec3Pod*)plocalposPod, (PhysxPxVec3Pod*)psdfboxlowerPod, (PhysxPxVec3Pod*)psdfboxhigherPod, sdfDx, invSdfDx, dimX, dimY, dimZ, (PhysxPxVec3Pod*)pgradientPod, tolerance); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMutexImpl_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMutexImplPod* PxMutexImplNewAllocNative(); + + public static PhysxPxMutexImplPod* PxMutexImplNewAlloc() + { + PhysxPxMutexImplPod* ret = PxMutexImplNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMutexImpl_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMutexImplDeleteNative(PhysxPxMutexImplPod* selfPod); + + public static void PxMutexImplDelete( PhysxPxMutexImplPod* selfPod) + { + PxMutexImplDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxMutexImpl_lock_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMutexImplLockMutNative(PhysxPxMutexImplPod* selfPod); + + public static void PxMutexImplLockMut( PhysxPxMutexImplPod* selfPod) + { + PxMutexImplLockMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxMutexImpl_trylock_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxMutexImplTrylockMutNative(PhysxPxMutexImplPod* selfPod); + + public static bool PxMutexImplTrylockMut( PhysxPxMutexImplPod* selfPod) + { + byte ret = PxMutexImplTrylockMutNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxMutexImpl_unlock_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMutexImplUnlockMutNative(PhysxPxMutexImplPod* selfPod); + + public static void PxMutexImplUnlockMut( PhysxPxMutexImplPod* selfPod) + { + PxMutexImplUnlockMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxMutexImpl_getSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxMutexImplGetSizeNative(); + + public static uint PxMutexImplGetSize() + { + uint ret = PxMutexImplGetSizeNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxReadWriteLock_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxReadWriteLockPod* PxReadWriteLockNewAllocNative(); + + public static PhysxPxReadWriteLockPod* PxReadWriteLockNewAlloc() + { + PhysxPxReadWriteLockPod* ret = PxReadWriteLockNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxReadWriteLock_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxReadWriteLockDeleteNative(PhysxPxReadWriteLockPod* selfPod); + + public static void PxReadWriteLockDelete( PhysxPxReadWriteLockPod* selfPod) + { + PxReadWriteLockDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxReadWriteLock_lockReader_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxReadWriteLockLockReaderMutNative(PhysxPxReadWriteLockPod* selfPod, byte takeLock); + + public static void PxReadWriteLockLockReaderMut( PhysxPxReadWriteLockPod* selfPod, bool takeLock) + { + PxReadWriteLockLockReaderMutNative(selfPod, takeLock ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxReadWriteLock_lockWriter_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxReadWriteLockLockWriterMutNative(PhysxPxReadWriteLockPod* selfPod); + + public static void PxReadWriteLockLockWriterMut( PhysxPxReadWriteLockPod* selfPod) + { + PxReadWriteLockLockWriterMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxReadWriteLock_unlockReader_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxReadWriteLockUnlockReaderMutNative(PhysxPxReadWriteLockPod* selfPod); + + public static void PxReadWriteLockUnlockReaderMut( PhysxPxReadWriteLockPod* selfPod) + { + PxReadWriteLockUnlockReaderMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxReadWriteLock_unlockWriter_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxReadWriteLockUnlockWriterMutNative(PhysxPxReadWriteLockPod* selfPod); + + public static void PxReadWriteLockUnlockWriterMut( PhysxPxReadWriteLockPod* selfPod) + { + PxReadWriteLockUnlockWriterMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxProfilerCallback_zoneStart_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxProfilerCallbackZoneStartMutNative(PhysxPxProfilerCallbackPod* selfPod, byte* eventName, byte detached, ulong contextId); + + public static void* PxProfilerCallbackZoneStartMut( PhysxPxProfilerCallbackPod* selfPod, byte* eventName, bool detached, ulong contextId) + { + void* ret = PxProfilerCallbackZoneStartMutNative(selfPod, eventName, detached ? (byte)1 : (byte)0, contextId); + return ret; + } + + public static void* PxProfilerCallbackZoneStartMut( PhysxPxProfilerCallbackPod* selfPod, ref byte eventName, bool detached, ulong contextId) + { + fixed (byte* peventName = &eventName) + { + void* ret = PxProfilerCallbackZoneStartMutNative(selfPod, (byte*)peventName, detached ? (byte)1 : (byte)0, contextId); + return ret; + } + } + + public static void* PxProfilerCallbackZoneStartMut( PhysxPxProfilerCallbackPod* selfPod, string eventName, bool detached, ulong contextId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (eventName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(eventName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(eventName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxProfilerCallbackZoneStartMutNative(selfPod, pStr0, detached ? (byte)1 : (byte)0, contextId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxProfilerCallback_zoneEnd_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxProfilerCallbackZoneEndMutNative(PhysxPxProfilerCallbackPod* selfPod, void* profilerData, byte* eventName, byte detached, ulong contextId); + + public static void PxProfilerCallbackZoneEndMut( PhysxPxProfilerCallbackPod* selfPod, void* profilerData, byte* eventName, bool detached, ulong contextId) + { + PxProfilerCallbackZoneEndMutNative(selfPod, profilerData, eventName, detached ? (byte)1 : (byte)0, contextId); + } + + public static void PxProfilerCallbackZoneEndMut( PhysxPxProfilerCallbackPod* selfPod, void* profilerData, ref byte eventName, bool detached, ulong contextId) + { + fixed (byte* peventName = &eventName) + { + PxProfilerCallbackZoneEndMutNative(selfPod, profilerData, (byte*)peventName, detached ? (byte)1 : (byte)0, contextId); + } + } + + public static void PxProfilerCallbackZoneEndMut( PhysxPxProfilerCallbackPod* selfPod, void* profilerData, string eventName, bool detached, ulong contextId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (eventName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(eventName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(eventName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxProfilerCallbackZoneEndMutNative(selfPod, profilerData, pStr0, detached ? (byte)1 : (byte)0, contextId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxProfileScoped_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxProfileScopedPod* PxProfileScopedNewAllocNative(PhysxPxProfilerCallbackPod* callbackPod, byte* eventName, byte detached, ulong contextId); + + public static PhysxPxProfileScopedPod* PxProfileScopedNewAlloc( PhysxPxProfilerCallbackPod* callbackPod, byte* eventName, bool detached, ulong contextId) + { + PhysxPxProfileScopedPod* ret = PxProfileScopedNewAllocNative(callbackPod, eventName, detached ? (byte)1 : (byte)0, contextId); + return ret; + } + + public static PhysxPxProfileScopedPod* PxProfileScopedNewAlloc( PhysxPxProfilerCallbackPod* callbackPod, ref byte eventName, bool detached, ulong contextId) + { + fixed (byte* peventName = &eventName) + { + PhysxPxProfileScopedPod* ret = PxProfileScopedNewAllocNative(callbackPod, (byte*)peventName, detached ? (byte)1 : (byte)0, contextId); + return ret; + } + } + + public static PhysxPxProfileScopedPod* PxProfileScopedNewAlloc( PhysxPxProfilerCallbackPod* callbackPod, string eventName, bool detached, ulong contextId) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (eventName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(eventName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(eventName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PhysxPxProfileScopedPod* ret = PxProfileScopedNewAllocNative(callbackPod, pStr0, detached ? (byte)1 : (byte)0, contextId); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxProfileScoped_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxProfileScopedDeleteNative(PhysxPxProfileScopedPod* selfPod); + + public static void PxProfileScopedDelete( PhysxPxProfileScopedPod* selfPod) + { + PxProfileScopedDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSListEntry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSListEntryPod PxSListEntryNewNative(); + + public static PhysxPxSListEntryPod PxSListEntryNew() + { + PhysxPxSListEntryPod ret = PxSListEntryNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSListEntry_next_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSListEntryPod* PxSListEntryNextMutNative(PhysxPxSListEntryPod* selfPod); + + public static PhysxPxSListEntryPod* PxSListEntryNextMut( PhysxPxSListEntryPod* selfPod) + { + PhysxPxSListEntryPod* ret = PxSListEntryNextMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSListImpl_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSListImplPod* PxSListImplNewAllocNative(); + + public static PhysxPxSListImplPod* PxSListImplNewAlloc() + { + PhysxPxSListImplPod* ret = PxSListImplNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSListImpl_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSListImplDeleteNative(PhysxPxSListImplPod* selfPod); + + public static void PxSListImplDelete( PhysxPxSListImplPod* selfPod) + { + PxSListImplDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSListImpl_push_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSListImplPushMutNative(PhysxPxSListImplPod* selfPod, PhysxPxSListEntryPod* entryPod); + + public static void PxSListImplPushMut( PhysxPxSListImplPod* selfPod, PhysxPxSListEntryPod* entryPod) + { + PxSListImplPushMutNative(selfPod, entryPod); + } + + public static void PxSListImplPushMut( PhysxPxSListImplPod* selfPod, ref PhysxPxSListEntryPod entryPod) + { + fixed (PhysxPxSListEntryPod* pentryPod = &entryPod) + { + PxSListImplPushMutNative(selfPod, (PhysxPxSListEntryPod*)pentryPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSListImpl_pop_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSListEntryPod* PxSListImplPopMutNative(PhysxPxSListImplPod* selfPod); + + public static PhysxPxSListEntryPod* PxSListImplPopMut( PhysxPxSListImplPod* selfPod) + { + PhysxPxSListEntryPod* ret = PxSListImplPopMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSListImpl_flush_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSListEntryPod* PxSListImplFlushMutNative(PhysxPxSListImplPod* selfPod); + + public static PhysxPxSListEntryPod* PxSListImplFlushMut( PhysxPxSListImplPod* selfPod) + { + PhysxPxSListEntryPod* ret = PxSListImplFlushMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSListImpl_getSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSListImplGetSizeNative(); + + public static uint PxSListImplGetSize() + { + uint ret = PxSListImplGetSizeNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSyncImpl_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSyncImplPod* PxSyncImplNewAllocNative(); + + public static PhysxPxSyncImplPod* PxSyncImplNewAlloc() + { + PhysxPxSyncImplPod* ret = PxSyncImplNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSyncImpl_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSyncImplDeleteNative(PhysxPxSyncImplPod* selfPod); + + public static void PxSyncImplDelete( PhysxPxSyncImplPod* selfPod) + { + PxSyncImplDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSyncImpl_wait_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSyncImplWaitMutNative(PhysxPxSyncImplPod* selfPod, uint milliseconds); + + public static bool PxSyncImplWaitMut( PhysxPxSyncImplPod* selfPod, uint milliseconds) + { + byte ret = PxSyncImplWaitMutNative(selfPod, milliseconds); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxSyncImpl_set_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSyncImplSetMutNative(PhysxPxSyncImplPod* selfPod); + + public static void PxSyncImplSetMut( PhysxPxSyncImplPod* selfPod) + { + PxSyncImplSetMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSyncImpl_reset_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSyncImplResetMutNative(PhysxPxSyncImplPod* selfPod); + + public static void PxSyncImplResetMut( PhysxPxSyncImplPod* selfPod) + { + PxSyncImplResetMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSyncImpl_getSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSyncImplGetSizeNative(); + + public static uint PxSyncImplGetSize() + { + uint ret = PxSyncImplGetSizeNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRunnable_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRunnablePod* PxRunnableNewAllocNative(); + + public static PhysxPxRunnablePod* PxRunnableNewAlloc() + { + PhysxPxRunnablePod* ret = PxRunnableNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRunnable_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRunnableDeleteNative(PhysxPxRunnablePod* selfPod); + + public static void PxRunnableDelete( PhysxPxRunnablePod* selfPod) + { + PxRunnableDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxRunnable_execute_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRunnableExecuteMutNative(PhysxPxRunnablePod* selfPod); + + public static void PxRunnableExecuteMut( PhysxPxRunnablePod* selfPod) + { + PxRunnableExecuteMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxTlsAlloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxTlsAllocNative(); + + public static uint PhysPxTlsAlloc() + { + uint ret = PhysPxTlsAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxTlsFree")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxTlsFreeNative(uint index); + + public static void PhysPxTlsFree( uint index) + { + PhysPxTlsFreeNative(index); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxTlsGet")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PhysPxTlsGetNative(uint index); + + public static void* PhysPxTlsGet( uint index) + { + void* ret = PhysPxTlsGetNative(index); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxTlsGetValue")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong PhysPxTlsGetValueNative(uint index); + + public static ulong PhysPxTlsGetValue( uint index) + { + ulong ret = PhysPxTlsGetValueNative(index); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxTlsSet")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxTlsSetNative(uint index, void* value); + + public static uint PhysPxTlsSet( uint index, void* value) + { + uint ret = PhysPxTlsSetNative(index, value); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxTlsSetValue")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxTlsSetValueNative(uint index, ulong valuePod); + + public static uint PhysPxTlsSetValue( uint index, ulong valuePod) + { + uint ret = PhysPxTlsSetValueNative(index, valuePod); + return ret; + } + + public static uint PhysPxTlsSetValue( uint index, nuint valuePod) + { + uint ret = PhysPxTlsSetValueNative(index, valuePod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCounterFrequencyToTensOfNanos_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCounterFrequencyToTensOfNanosPod PxCounterFrequencyToTensOfNanosNewNative(ulong inNum, ulong inDenom); + + public static PhysxPxCounterFrequencyToTensOfNanosPod PxCounterFrequencyToTensOfNanosNew( ulong inNum, ulong inDenom) + { + PhysxPxCounterFrequencyToTensOfNanosPod ret = PxCounterFrequencyToTensOfNanosNewNative(inNum, inDenom); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCounterFrequencyToTensOfNanos_toTensOfNanos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong PxCounterFrequencyToTensOfNanosToTensOfNanosNative(PhysxPxCounterFrequencyToTensOfNanosPod* selfPod, ulong inCounter); + + public static ulong PxCounterFrequencyToTensOfNanosToTensOfNanos( PhysxPxCounterFrequencyToTensOfNanosPod* selfPod, ulong inCounter) + { + ulong ret = PxCounterFrequencyToTensOfNanosToTensOfNanosNative(selfPod, inCounter); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTime_getBootCounterFrequency")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCounterFrequencyToTensOfNanosPod* PxTimeGetBootCounterFrequencyNative(); + + public static PhysxPxCounterFrequencyToTensOfNanosPod* PxTimeGetBootCounterFrequency() + { + PhysxPxCounterFrequencyToTensOfNanosPod* ret = PxTimeGetBootCounterFrequencyNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTime_getCounterFrequency")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCounterFrequencyToTensOfNanosPod PxTimeGetCounterFrequencyNative(); + + public static PhysxPxCounterFrequencyToTensOfNanosPod PxTimeGetCounterFrequency() + { + PhysxPxCounterFrequencyToTensOfNanosPod ret = PxTimeGetCounterFrequencyNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTime_getCurrentCounterValue")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong PxTimeGetCurrentCounterValueNative(); + + public static ulong PxTimeGetCurrentCounterValue() + { + ulong ret = PxTimeGetCurrentCounterValueNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTime_getCurrentTimeInTensOfNanoSeconds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong PxTimeGetCurrentTimeInTensOfNanoSecondsNative(); + + public static ulong PxTimeGetCurrentTimeInTensOfNanoSeconds() + { + ulong ret = PxTimeGetCurrentTimeInTensOfNanoSecondsNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTime_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTimePod PxTimeNewNative(); + + public static PhysxPxTimePod PxTimeNew() + { + PhysxPxTimePod ret = PxTimeNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTime_getElapsedSeconds_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double PxTimeGetElapsedSecondsMutNative(PhysxPxTimePod* selfPod); + + public static double PxTimeGetElapsedSecondsMut( PhysxPxTimePod* selfPod) + { + double ret = PxTimeGetElapsedSecondsMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTime_peekElapsedSeconds_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double PxTimePeekElapsedSecondsMutNative(PhysxPxTimePod* selfPod); + + public static double PxTimePeekElapsedSecondsMut( PhysxPxTimePod* selfPod) + { + double ret = PxTimePeekElapsedSecondsMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTime_getLastTime")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double PxTimeGetLastTimeNative(PhysxPxTimePod* selfPod); + + public static double PxTimeGetLastTime( PhysxPxTimePod* selfPod) + { + double ret = PxTimeGetLastTimeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec2Pod PxVec2NewNative(); + + public static PhysxPxVec2Pod PxVec2New() + { + PhysxPxVec2Pod ret = PxVec2NewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec2Pod PxVec2New1Native(int anonparam0Pod); + + public static PhysxPxVec2Pod PxVec2New1( int anonparam0Pod) + { + PhysxPxVec2Pod ret = PxVec2New1Native(anonparam0Pod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec2Pod PxVec2New2Native(float a); + + public static PhysxPxVec2Pod PxVec2New2( float a) + { + PhysxPxVec2Pod ret = PxVec2New2Native(a); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_new_3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec2Pod PxVec2New3Native(float nx, float ny); + + public static PhysxPxVec2Pod PxVec2New3( float nx, float ny) + { + PhysxPxVec2Pod ret = PxVec2New3Native(nx, ny); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_isZero")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxVec2IsZeroNative(PhysxPxVec2Pod* selfPod); + + public static bool PxVec2IsZero( PhysxPxVec2Pod* selfPod) + { + byte ret = PxVec2IsZeroNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_isFinite")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxVec2IsFiniteNative(PhysxPxVec2Pod* selfPod); + + public static bool PxVec2IsFinite( PhysxPxVec2Pod* selfPod) + { + byte ret = PxVec2IsFiniteNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_isNormalized")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxVec2IsNormalizedNative(PhysxPxVec2Pod* selfPod); + + public static bool PxVec2IsNormalized( PhysxPxVec2Pod* selfPod) + { + byte ret = PxVec2IsNormalizedNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_magnitudeSquared")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec2MagnitudeSquaredNative(PhysxPxVec2Pod* selfPod); + + public static float PxVec2MagnitudeSquared( PhysxPxVec2Pod* selfPod) + { + float ret = PxVec2MagnitudeSquaredNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_magnitude")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec2MagnitudeNative(PhysxPxVec2Pod* selfPod); + + public static float PxVec2Magnitude( PhysxPxVec2Pod* selfPod) + { + float ret = PxVec2MagnitudeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_dot")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec2DotNative(PhysxPxVec2Pod* selfPod, PhysxPxVec2Pod* vPod); + + public static float PxVec2Dot( PhysxPxVec2Pod* selfPod, PhysxPxVec2Pod* vPod) + { + float ret = PxVec2DotNative(selfPod, vPod); + return ret; + } + + public static float PxVec2Dot( PhysxPxVec2Pod* selfPod, ref PhysxPxVec2Pod vPod) + { + fixed (PhysxPxVec2Pod* pvPod = &vPod) + { + float ret = PxVec2DotNative(selfPod, (PhysxPxVec2Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_getNormalized")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec2Pod PxVec2GetNormalizedNative(PhysxPxVec2Pod* selfPod); + + public static PhysxPxVec2Pod PxVec2GetNormalized( PhysxPxVec2Pod* selfPod) + { + PhysxPxVec2Pod ret = PxVec2GetNormalizedNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_normalize_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec2NormalizeMutNative(PhysxPxVec2Pod* selfPod); + + public static float PxVec2NormalizeMut( PhysxPxVec2Pod* selfPod) + { + float ret = PxVec2NormalizeMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_multiply")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec2Pod PxVec2MultiplyNative(PhysxPxVec2Pod* selfPod, PhysxPxVec2Pod* aPod); + + public static PhysxPxVec2Pod PxVec2Multiply( PhysxPxVec2Pod* selfPod, PhysxPxVec2Pod* aPod) + { + PhysxPxVec2Pod ret = PxVec2MultiplyNative(selfPod, aPod); + return ret; + } + + public static PhysxPxVec2Pod PxVec2Multiply( PhysxPxVec2Pod* selfPod, ref PhysxPxVec2Pod aPod) + { + fixed (PhysxPxVec2Pod* paPod = &aPod) + { + PhysxPxVec2Pod ret = PxVec2MultiplyNative(selfPod, (PhysxPxVec2Pod*)paPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_minimum")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec2Pod PxVec2MinimumNative(PhysxPxVec2Pod* selfPod, PhysxPxVec2Pod* vPod); + + public static PhysxPxVec2Pod PxVec2Minimum( PhysxPxVec2Pod* selfPod, PhysxPxVec2Pod* vPod) + { + PhysxPxVec2Pod ret = PxVec2MinimumNative(selfPod, vPod); + return ret; + } + + public static PhysxPxVec2Pod PxVec2Minimum( PhysxPxVec2Pod* selfPod, ref PhysxPxVec2Pod vPod) + { + fixed (PhysxPxVec2Pod* pvPod = &vPod) + { + PhysxPxVec2Pod ret = PxVec2MinimumNative(selfPod, (PhysxPxVec2Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_minElement")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec2MinElementNative(PhysxPxVec2Pod* selfPod); + + public static float PxVec2MinElement( PhysxPxVec2Pod* selfPod) + { + float ret = PxVec2MinElementNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_maximum")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec2Pod PxVec2MaximumNative(PhysxPxVec2Pod* selfPod, PhysxPxVec2Pod* vPod); + + public static PhysxPxVec2Pod PxVec2Maximum( PhysxPxVec2Pod* selfPod, PhysxPxVec2Pod* vPod) + { + PhysxPxVec2Pod ret = PxVec2MaximumNative(selfPod, vPod); + return ret; + } + + public static PhysxPxVec2Pod PxVec2Maximum( PhysxPxVec2Pod* selfPod, ref PhysxPxVec2Pod vPod) + { + fixed (PhysxPxVec2Pod* pvPod = &vPod) + { + PhysxPxVec2Pod ret = PxVec2MaximumNative(selfPod, (PhysxPxVec2Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxVec2_maxElement")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxVec2MaxElementNative(PhysxPxVec2Pod* selfPod); + + public static float PxVec2MaxElement( PhysxPxVec2Pod* selfPod) + { + float ret = PxVec2MaxElementNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxStridedData_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxStridedDataPod PxStridedDataNewNative(); + + public static PhysxPxStridedDataPod PxStridedDataNew() + { + PhysxPxStridedDataPod ret = PxStridedDataNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBoundedData_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBoundedDataPod PxBoundedDataNewNative(); + + public static PhysxPxBoundedDataPod PxBoundedDataNew() + { + PhysxPxBoundedDataPod ret = PxBoundedDataNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDebugPoint_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDebugPointPod PxDebugPointNewNative(PhysxPxVec3Pod* pPod, uint* cPod); + + public static PhysxPxDebugPointPod PxDebugPointNew( PhysxPxVec3Pod* pPod, uint* cPod) + { + PhysxPxDebugPointPod ret = PxDebugPointNewNative(pPod, cPod); + return ret; + } + + public static PhysxPxDebugPointPod PxDebugPointNew( PhysxPxVec3Pod* pPod, ref uint cPod) + { + fixed (uint* pcPod = &cPod) + { + PhysxPxDebugPointPod ret = PxDebugPointNewNative(pPod, (uint*)pcPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxDebugLine_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDebugLinePod PxDebugLineNewNative(PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, uint* cPod); + + public static PhysxPxDebugLinePod PxDebugLineNew( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, uint* cPod) + { + PhysxPxDebugLinePod ret = PxDebugLineNewNative(p0Pod, p1Pod, cPod); + return ret; + } + + public static PhysxPxDebugLinePod PxDebugLineNew( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, uint* cPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + PhysxPxDebugLinePod ret = PxDebugLineNewNative(p0Pod, (PhysxPxVec3Pod*)pp1Pod, cPod); + return ret; + } + } + + public static PhysxPxDebugLinePod PxDebugLineNew( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref uint cPod) + { + fixed (uint* pcPod = &cPod) + { + PhysxPxDebugLinePod ret = PxDebugLineNewNative(p0Pod, p1Pod, (uint*)pcPod); + return ret; + } + } + + public static PhysxPxDebugLinePod PxDebugLineNew( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref uint cPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (uint* pcPod = &cPod) + { + PhysxPxDebugLinePod ret = PxDebugLineNewNative(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (uint*)pcPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxDebugTriangle_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDebugTrianglePod PxDebugTriangleNewNative(PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* p2Pod, uint* cPod); + + public static PhysxPxDebugTrianglePod PxDebugTriangleNew( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* p2Pod, uint* cPod) + { + PhysxPxDebugTrianglePod ret = PxDebugTriangleNewNative(p0Pod, p1Pod, p2Pod, cPod); + return ret; + } + + public static PhysxPxDebugTrianglePod PxDebugTriangleNew( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, PhysxPxVec3Pod* p2Pod, uint* cPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + PhysxPxDebugTrianglePod ret = PxDebugTriangleNewNative(p0Pod, (PhysxPxVec3Pod*)pp1Pod, p2Pod, cPod); + return ret; + } + } + + public static PhysxPxDebugTrianglePod PxDebugTriangleNew( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref PhysxPxVec3Pod p2Pod, uint* cPod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + PhysxPxDebugTrianglePod ret = PxDebugTriangleNewNative(p0Pod, p1Pod, (PhysxPxVec3Pod*)pp2Pod, cPod); + return ret; + } + } + + public static PhysxPxDebugTrianglePod PxDebugTriangleNew( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref PhysxPxVec3Pod p2Pod, uint* cPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + PhysxPxDebugTrianglePod ret = PxDebugTriangleNewNative(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (PhysxPxVec3Pod*)pp2Pod, cPod); + return ret; + } + } + } + + public static PhysxPxDebugTrianglePod PxDebugTriangleNew( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* p2Pod, ref uint cPod) + { + fixed (uint* pcPod = &cPod) + { + PhysxPxDebugTrianglePod ret = PxDebugTriangleNewNative(p0Pod, p1Pod, p2Pod, (uint*)pcPod); + return ret; + } + } + + public static PhysxPxDebugTrianglePod PxDebugTriangleNew( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, PhysxPxVec3Pod* p2Pod, ref uint cPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (uint* pcPod = &cPod) + { + PhysxPxDebugTrianglePod ret = PxDebugTriangleNewNative(p0Pod, (PhysxPxVec3Pod*)pp1Pod, p2Pod, (uint*)pcPod); + return ret; + } + } + } + + public static PhysxPxDebugTrianglePod PxDebugTriangleNew( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref PhysxPxVec3Pod p2Pod, ref uint cPod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + fixed (uint* pcPod = &cPod) + { + PhysxPxDebugTrianglePod ret = PxDebugTriangleNewNative(p0Pod, p1Pod, (PhysxPxVec3Pod*)pp2Pod, (uint*)pcPod); + return ret; + } + } + } + + public static PhysxPxDebugTrianglePod PxDebugTriangleNew( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref PhysxPxVec3Pod p2Pod, ref uint cPod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + fixed (uint* pcPod = &cPod) + { + PhysxPxDebugTrianglePod ret = PxDebugTriangleNewNative(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (PhysxPxVec3Pod*)pp2Pod, (uint*)pcPod); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxDebugText_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDebugTextPod PxDebugTextNewNative(); + + public static PhysxPxDebugTextPod PxDebugTextNew() + { + PhysxPxDebugTextPod ret = PxDebugTextNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDebugText_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDebugTextPod PxDebugTextNew1Native(PhysxPxVec3Pod* posPod, float* szPod, uint* clrPod, byte* str); + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, float* szPod, uint* clrPod, byte* str) + { + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, szPod, clrPod, str); + return ret; + } + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, ref float szPod, uint* clrPod, byte* str) + { + fixed (float* pszPod = &szPod) + { + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, (float*)pszPod, clrPod, str); + return ret; + } + } + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, float* szPod, ref uint clrPod, byte* str) + { + fixed (uint* pclrPod = &clrPod) + { + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, szPod, (uint*)pclrPod, str); + return ret; + } + } + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, ref float szPod, ref uint clrPod, byte* str) + { + fixed (float* pszPod = &szPod) + { + fixed (uint* pclrPod = &clrPod) + { + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, (float*)pszPod, (uint*)pclrPod, str); + return ret; + } + } + } + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, float* szPod, uint* clrPod, ref byte str) + { + fixed (byte* pstr = &str) + { + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, szPod, clrPod, (byte*)pstr); + return ret; + } + } + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, float* szPod, uint* clrPod, string str) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, szPod, clrPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, ref float szPod, uint* clrPod, ref byte str) + { + fixed (float* pszPod = &szPod) + { + fixed (byte* pstr = &str) + { + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, (float*)pszPod, clrPod, (byte*)pstr); + return ret; + } + } + } + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, ref float szPod, uint* clrPod, string str) + { + fixed (float* pszPod = &szPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, (float*)pszPod, clrPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, float* szPod, ref uint clrPod, ref byte str) + { + fixed (uint* pclrPod = &clrPod) + { + fixed (byte* pstr = &str) + { + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, szPod, (uint*)pclrPod, (byte*)pstr); + return ret; + } + } + } + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, float* szPod, ref uint clrPod, string str) + { + fixed (uint* pclrPod = &clrPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, szPod, (uint*)pclrPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, ref float szPod, ref uint clrPod, ref byte str) + { + fixed (float* pszPod = &szPod) + { + fixed (uint* pclrPod = &clrPod) + { + fixed (byte* pstr = &str) + { + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, (float*)pszPod, (uint*)pclrPod, (byte*)pstr); + return ret; + } + } + } + } + + public static PhysxPxDebugTextPod PxDebugTextNew1( PhysxPxVec3Pod* posPod, ref float szPod, ref uint clrPod, string str) + { + fixed (float* pszPod = &szPod) + { + fixed (uint* pclrPod = &clrPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (str != null) + { + pStrSize0 = Utils.GetByteCountUTF8(str); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PhysxPxDebugTextPod ret = PxDebugTextNew1Native(posPod, (float*)pszPod, (uint*)pclrPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRenderBufferDeleteNative(PhysxPxRenderBufferPod* selfPod); + + public static void PxRenderBufferDelete( PhysxPxRenderBufferPod* selfPod) + { + PxRenderBufferDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_getNbPoints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxRenderBufferGetNbPointsNative(PhysxPxRenderBufferPod* selfPod); + + public static uint PxRenderBufferGetNbPoints( PhysxPxRenderBufferPod* selfPod) + { + uint ret = PxRenderBufferGetNbPointsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_getPoints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDebugPointPod* PxRenderBufferGetPointsNative(PhysxPxRenderBufferPod* selfPod); + + public static PhysxPxDebugPointPod* PxRenderBufferGetPoints( PhysxPxRenderBufferPod* selfPod) + { + PhysxPxDebugPointPod* ret = PxRenderBufferGetPointsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_addPoint_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRenderBufferAddPointMutNative(PhysxPxRenderBufferPod* selfPod, PhysxPxDebugPointPod* pointPod); + + public static void PxRenderBufferAddPointMut( PhysxPxRenderBufferPod* selfPod, PhysxPxDebugPointPod* pointPod) + { + PxRenderBufferAddPointMutNative(selfPod, pointPod); + } + + public static void PxRenderBufferAddPointMut( PhysxPxRenderBufferPod* selfPod, ref PhysxPxDebugPointPod pointPod) + { + fixed (PhysxPxDebugPointPod* ppointPod = &pointPod) + { + PxRenderBufferAddPointMutNative(selfPod, (PhysxPxDebugPointPod*)ppointPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_getNbLines")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxRenderBufferGetNbLinesNative(PhysxPxRenderBufferPod* selfPod); + + public static uint PxRenderBufferGetNbLines( PhysxPxRenderBufferPod* selfPod) + { + uint ret = PxRenderBufferGetNbLinesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_getLines")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDebugLinePod* PxRenderBufferGetLinesNative(PhysxPxRenderBufferPod* selfPod); + + public static PhysxPxDebugLinePod* PxRenderBufferGetLines( PhysxPxRenderBufferPod* selfPod) + { + PhysxPxDebugLinePod* ret = PxRenderBufferGetLinesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_addLine_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRenderBufferAddLineMutNative(PhysxPxRenderBufferPod* selfPod, PhysxPxDebugLinePod* linePod); + + public static void PxRenderBufferAddLineMut( PhysxPxRenderBufferPod* selfPod, PhysxPxDebugLinePod* linePod) + { + PxRenderBufferAddLineMutNative(selfPod, linePod); + } + + public static void PxRenderBufferAddLineMut( PhysxPxRenderBufferPod* selfPod, ref PhysxPxDebugLinePod linePod) + { + fixed (PhysxPxDebugLinePod* plinePod = &linePod) + { + PxRenderBufferAddLineMutNative(selfPod, (PhysxPxDebugLinePod*)plinePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_reserveLines_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDebugLinePod* PxRenderBufferReserveLinesMutNative(PhysxPxRenderBufferPod* selfPod, uint nbLines); + + public static PhysxPxDebugLinePod* PxRenderBufferReserveLinesMut( PhysxPxRenderBufferPod* selfPod, uint nbLines) + { + PhysxPxDebugLinePod* ret = PxRenderBufferReserveLinesMutNative(selfPod, nbLines); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_reservePoints_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDebugPointPod* PxRenderBufferReservePointsMutNative(PhysxPxRenderBufferPod* selfPod, uint nbLines); + + public static PhysxPxDebugPointPod* PxRenderBufferReservePointsMut( PhysxPxRenderBufferPod* selfPod, uint nbLines) + { + PhysxPxDebugPointPod* ret = PxRenderBufferReservePointsMutNative(selfPod, nbLines); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_getNbTriangles")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxRenderBufferGetNbTrianglesNative(PhysxPxRenderBufferPod* selfPod); + + public static uint PxRenderBufferGetNbTriangles( PhysxPxRenderBufferPod* selfPod) + { + uint ret = PxRenderBufferGetNbTrianglesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_getTriangles")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDebugTrianglePod* PxRenderBufferGetTrianglesNative(PhysxPxRenderBufferPod* selfPod); + + public static PhysxPxDebugTrianglePod* PxRenderBufferGetTriangles( PhysxPxRenderBufferPod* selfPod) + { + PhysxPxDebugTrianglePod* ret = PxRenderBufferGetTrianglesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_addTriangle_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRenderBufferAddTriangleMutNative(PhysxPxRenderBufferPod* selfPod, PhysxPxDebugTrianglePod* trianglePod); + + public static void PxRenderBufferAddTriangleMut( PhysxPxRenderBufferPod* selfPod, PhysxPxDebugTrianglePod* trianglePod) + { + PxRenderBufferAddTriangleMutNative(selfPod, trianglePod); + } + + public static void PxRenderBufferAddTriangleMut( PhysxPxRenderBufferPod* selfPod, ref PhysxPxDebugTrianglePod trianglePod) + { + fixed (PhysxPxDebugTrianglePod* ptrianglePod = &trianglePod) + { + PxRenderBufferAddTriangleMutNative(selfPod, (PhysxPxDebugTrianglePod*)ptrianglePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_append_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRenderBufferAppendMutNative(PhysxPxRenderBufferPod* selfPod, PhysxPxRenderBufferPod* otherPod); + + public static void PxRenderBufferAppendMut( PhysxPxRenderBufferPod* selfPod, PhysxPxRenderBufferPod* otherPod) + { + PxRenderBufferAppendMutNative(selfPod, otherPod); + } + + public static void PxRenderBufferAppendMut( PhysxPxRenderBufferPod* selfPod, ref PhysxPxRenderBufferPod otherPod) + { + fixed (PhysxPxRenderBufferPod* potherPod = &otherPod) + { + PxRenderBufferAppendMutNative(selfPod, (PhysxPxRenderBufferPod*)potherPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_clear_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRenderBufferClearMutNative(PhysxPxRenderBufferPod* selfPod); + + public static void PxRenderBufferClearMut( PhysxPxRenderBufferPod* selfPod) + { + PxRenderBufferClearMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_shift_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRenderBufferShiftMutNative(PhysxPxRenderBufferPod* selfPod, PhysxPxVec3Pod* deltaPod); + + public static void PxRenderBufferShiftMut( PhysxPxRenderBufferPod* selfPod, PhysxPxVec3Pod* deltaPod) + { + PxRenderBufferShiftMutNative(selfPod, deltaPod); + } + + public static void PxRenderBufferShiftMut( PhysxPxRenderBufferPod* selfPod, ref PhysxPxVec3Pod deltaPod) + { + fixed (PhysxPxVec3Pod* pdeltaPod = &deltaPod) + { + PxRenderBufferShiftMutNative(selfPod, (PhysxPxVec3Pod*)pdeltaPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRenderBuffer_empty")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRenderBufferEmptyNative(PhysxPxRenderBufferPod* selfPod); + + public static bool PxRenderBufferEmpty( PhysxPxRenderBufferPod* selfPod) + { + byte ret = PxRenderBufferEmptyNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxProcessPxBaseCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxProcessPxBaseCallbackDeleteNative(PhysxPxProcessPxBaseCallbackPod* selfPod); + + public static void PxProcessPxBaseCallbackDelete( PhysxPxProcessPxBaseCallbackPod* selfPod) + { + PxProcessPxBaseCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxProcessPxBaseCallback_process_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxProcessPxBaseCallbackProcessMutNative(PhysxPxProcessPxBaseCallbackPod* selfPod, PhysxPxBasePod* anonparam0Pod); + + public static void PxProcessPxBaseCallbackProcessMut( PhysxPxProcessPxBaseCallbackPod* selfPod, PhysxPxBasePod* anonparam0Pod) + { + PxProcessPxBaseCallbackProcessMutNative(selfPod, anonparam0Pod); + } + + public static void PxProcessPxBaseCallbackProcessMut( PhysxPxProcessPxBaseCallbackPod* selfPod, ref PhysxPxBasePod anonparam0Pod) + { + fixed (PhysxPxBasePod* panonparam0Pod = &anonparam0Pod) + { + PxProcessPxBaseCallbackProcessMutNative(selfPod, (PhysxPxBasePod*)panonparam0Pod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationContext_registerReference_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializationContextRegisterReferenceMutNative(PhysxPxSerializationContextPod* selfPod, PhysxPxBasePod* basePod, uint kind, ulong referencePod); + + public static void PxSerializationContextRegisterReferenceMut( PhysxPxSerializationContextPod* selfPod, PhysxPxBasePod* basePod, uint kind, ulong referencePod) + { + PxSerializationContextRegisterReferenceMutNative(selfPod, basePod, kind, referencePod); + } + + public static void PxSerializationContextRegisterReferenceMut( PhysxPxSerializationContextPod* selfPod, ref PhysxPxBasePod basePod, uint kind, ulong referencePod) + { + fixed (PhysxPxBasePod* pbasePod = &basePod) + { + PxSerializationContextRegisterReferenceMutNative(selfPod, (PhysxPxBasePod*)pbasePod, kind, referencePod); + } + } + + public static void PxSerializationContextRegisterReferenceMut( PhysxPxSerializationContextPod* selfPod, PhysxPxBasePod* basePod, uint kind, nuint referencePod) + { + PxSerializationContextRegisterReferenceMutNative(selfPod, basePod, kind, referencePod); + } + + public static void PxSerializationContextRegisterReferenceMut( PhysxPxSerializationContextPod* selfPod, ref PhysxPxBasePod basePod, uint kind, nuint referencePod) + { + fixed (PhysxPxBasePod* pbasePod = &basePod) + { + PxSerializationContextRegisterReferenceMutNative(selfPod, (PhysxPxBasePod*)pbasePod, kind, referencePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationContext_getCollection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCollectionPod* PxSerializationContextGetCollectionNative(PhysxPxSerializationContextPod* selfPod); + + public static PhysxPxCollectionPod* PxSerializationContextGetCollection( PhysxPxSerializationContextPod* selfPod) + { + PhysxPxCollectionPod* ret = PxSerializationContextGetCollectionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationContext_writeData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializationContextWriteDataMutNative(PhysxPxSerializationContextPod* selfPod, void* data, uint size); + + public static void PxSerializationContextWriteDataMut( PhysxPxSerializationContextPod* selfPod, void* data, uint size) + { + PxSerializationContextWriteDataMutNative(selfPod, data, size); + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationContext_alignData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializationContextAlignDataMutNative(PhysxPxSerializationContextPod* selfPod, uint alignment); + + public static void PxSerializationContextAlignDataMut( PhysxPxSerializationContextPod* selfPod, uint alignment) + { + PxSerializationContextAlignDataMutNative(selfPod, alignment); + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationContext_writeName_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializationContextWriteNameMutNative(PhysxPxSerializationContextPod* selfPod, byte* name); + + public static void PxSerializationContextWriteNameMut( PhysxPxSerializationContextPod* selfPod, byte* name) + { + PxSerializationContextWriteNameMutNative(selfPod, name); + } + + public static void PxSerializationContextWriteNameMut( PhysxPxSerializationContextPod* selfPod, ref byte name) + { + fixed (byte* pname = &name) + { + PxSerializationContextWriteNameMutNative(selfPod, (byte*)pname); + } + } + + public static void PxSerializationContextWriteNameMut( PhysxPxSerializationContextPod* selfPod, string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxSerializationContextWriteNameMutNative(selfPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxDeserializationContext_resolveReference")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBasePod* PxDeserializationContextResolveReferenceNative(PhysxPxDeserializationContextPod* selfPod, uint kind, ulong referencePod); + + public static PhysxPxBasePod* PxDeserializationContextResolveReference( PhysxPxDeserializationContextPod* selfPod, uint kind, ulong referencePod) + { + PhysxPxBasePod* ret = PxDeserializationContextResolveReferenceNative(selfPod, kind, referencePod); + return ret; + } + + public static PhysxPxBasePod* PxDeserializationContextResolveReference( PhysxPxDeserializationContextPod* selfPod, uint kind, nuint referencePod) + { + PhysxPxBasePod* ret = PxDeserializationContextResolveReferenceNative(selfPod, kind, referencePod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDeserializationContext_readName_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDeserializationContextReadNameMutNative(PhysxPxDeserializationContextPod* selfPod, byte** namePod); + + public static void PxDeserializationContextReadNameMut( PhysxPxDeserializationContextPod* selfPod, byte** namePod) + { + PxDeserializationContextReadNameMutNative(selfPod, namePod); + } + + public static void PxDeserializationContextReadNameMut( PhysxPxDeserializationContextPod* selfPod, ref byte* namePod) + { + fixed (byte** pnamePod = &namePod) + { + PxDeserializationContextReadNameMutNative(selfPod, (byte**)pnamePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxDeserializationContext_alignExtraData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDeserializationContextAlignExtraDataMutNative(PhysxPxDeserializationContextPod* selfPod, uint alignment); + + public static void PxDeserializationContextAlignExtraDataMut( PhysxPxDeserializationContextPod* selfPod, uint alignment) + { + PxDeserializationContextAlignExtraDataMutNative(selfPod, alignment); + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationRegistry_registerSerializer_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializationRegistryRegisterSerializerMutNative(PhysxPxSerializationRegistryPod* selfPod, ushort type, PhysxPxSerializerPod* serializerPod); + + public static void PxSerializationRegistryRegisterSerializerMut( PhysxPxSerializationRegistryPod* selfPod, ushort type, PhysxPxSerializerPod* serializerPod) + { + PxSerializationRegistryRegisterSerializerMutNative(selfPod, type, serializerPod); + } + + public static void PxSerializationRegistryRegisterSerializerMut( PhysxPxSerializationRegistryPod* selfPod, ushort type, ref PhysxPxSerializerPod serializerPod) + { + fixed (PhysxPxSerializerPod* pserializerPod = &serializerPod) + { + PxSerializationRegistryRegisterSerializerMutNative(selfPod, type, (PhysxPxSerializerPod*)pserializerPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationRegistry_unregisterSerializer_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSerializerPod* PxSerializationRegistryUnregisterSerializerMutNative(PhysxPxSerializationRegistryPod* selfPod, ushort type); + + public static PhysxPxSerializerPod* PxSerializationRegistryUnregisterSerializerMut( PhysxPxSerializationRegistryPod* selfPod, ushort type) + { + PhysxPxSerializerPod* ret = PxSerializationRegistryUnregisterSerializerMutNative(selfPod, type); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationRegistry_getSerializer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSerializerPod* PxSerializationRegistryGetSerializerNative(PhysxPxSerializationRegistryPod* selfPod, ushort type); + + public static PhysxPxSerializerPod* PxSerializationRegistryGetSerializer( PhysxPxSerializationRegistryPod* selfPod, ushort type) + { + PhysxPxSerializerPod* ret = PxSerializationRegistryGetSerializerNative(selfPod, type); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationRegistry_registerRepXSerializer_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializationRegistryRegisterRepXSerializerMutNative(PhysxPxSerializationRegistryPod* selfPod, ushort type, PhysxPxRepXSerializerPod* serializerPod); + + public static void PxSerializationRegistryRegisterRepXSerializerMut( PhysxPxSerializationRegistryPod* selfPod, ushort type, PhysxPxRepXSerializerPod* serializerPod) + { + PxSerializationRegistryRegisterRepXSerializerMutNative(selfPod, type, serializerPod); + } + + public static void PxSerializationRegistryRegisterRepXSerializerMut( PhysxPxSerializationRegistryPod* selfPod, ushort type, ref PhysxPxRepXSerializerPod serializerPod) + { + fixed (PhysxPxRepXSerializerPod* pserializerPod = &serializerPod) + { + PxSerializationRegistryRegisterRepXSerializerMutNative(selfPod, type, (PhysxPxRepXSerializerPod*)pserializerPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationRegistry_unregisterRepXSerializer_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRepXSerializerPod* PxSerializationRegistryUnregisterRepXSerializerMutNative(PhysxPxSerializationRegistryPod* selfPod, ushort type); + + public static PhysxPxRepXSerializerPod* PxSerializationRegistryUnregisterRepXSerializerMut( PhysxPxSerializationRegistryPod* selfPod, ushort type) + { + PhysxPxRepXSerializerPod* ret = PxSerializationRegistryUnregisterRepXSerializerMutNative(selfPod, type); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationRegistry_getRepXSerializer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRepXSerializerPod* PxSerializationRegistryGetRepXSerializerNative(PhysxPxSerializationRegistryPod* selfPod, byte* typeName); + + public static PhysxPxRepXSerializerPod* PxSerializationRegistryGetRepXSerializer( PhysxPxSerializationRegistryPod* selfPod, byte* typeName) + { + PhysxPxRepXSerializerPod* ret = PxSerializationRegistryGetRepXSerializerNative(selfPod, typeName); + return ret; + } + + public static PhysxPxRepXSerializerPod* PxSerializationRegistryGetRepXSerializer( PhysxPxSerializationRegistryPod* selfPod, ref byte typeName) + { + fixed (byte* ptypeName = &typeName) + { + PhysxPxRepXSerializerPod* ret = PxSerializationRegistryGetRepXSerializerNative(selfPod, (byte*)ptypeName); + return ret; + } + } + + public static PhysxPxRepXSerializerPod* PxSerializationRegistryGetRepXSerializer( PhysxPxSerializationRegistryPod* selfPod, string typeName) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (typeName != null) + { + pStrSize0 = Utils.GetByteCountUTF8(typeName); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(typeName, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PhysxPxRepXSerializerPod* ret = PxSerializationRegistryGetRepXSerializerNative(selfPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSerializationRegistry_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializationRegistryReleaseMutNative(PhysxPxSerializationRegistryPod* selfPod); + + public static void PxSerializationRegistryReleaseMut( PhysxPxSerializationRegistryPod* selfPod) + { + PxSerializationRegistryReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_add_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCollectionAddMutNative(PhysxPxCollectionPod* selfPod, PhysxPxBasePod* objectPod, ulong id); + + public static void PxCollectionAddMut( PhysxPxCollectionPod* selfPod, PhysxPxBasePod* objectPod, ulong id) + { + PxCollectionAddMutNative(selfPod, objectPod, id); + } + + public static void PxCollectionAddMut( PhysxPxCollectionPod* selfPod, ref PhysxPxBasePod objectPod, ulong id) + { + fixed (PhysxPxBasePod* pobjectPod = &objectPod) + { + PxCollectionAddMutNative(selfPod, (PhysxPxBasePod*)pobjectPod, id); + } + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_remove_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCollectionRemoveMutNative(PhysxPxCollectionPod* selfPod, PhysxPxBasePod* objectPod); + + public static void PxCollectionRemoveMut( PhysxPxCollectionPod* selfPod, PhysxPxBasePod* objectPod) + { + PxCollectionRemoveMutNative(selfPod, objectPod); + } + + public static void PxCollectionRemoveMut( PhysxPxCollectionPod* selfPod, ref PhysxPxBasePod objectPod) + { + fixed (PhysxPxBasePod* pobjectPod = &objectPod) + { + PxCollectionRemoveMutNative(selfPod, (PhysxPxBasePod*)pobjectPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_contains")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCollectionContainsNative(PhysxPxCollectionPod* selfPod, PhysxPxBasePod* objectPod); + + public static bool PxCollectionContains( PhysxPxCollectionPod* selfPod, PhysxPxBasePod* objectPod) + { + byte ret = PxCollectionContainsNative(selfPod, objectPod); + return ret != 0; + } + + public static bool PxCollectionContains( PhysxPxCollectionPod* selfPod, ref PhysxPxBasePod objectPod) + { + fixed (PhysxPxBasePod* pobjectPod = &objectPod) + { + byte ret = PxCollectionContainsNative(selfPod, (PhysxPxBasePod*)pobjectPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_addId_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCollectionAddIdMutNative(PhysxPxCollectionPod* selfPod, PhysxPxBasePod* objectPod, ulong id); + + public static void PxCollectionAddIdMut( PhysxPxCollectionPod* selfPod, PhysxPxBasePod* objectPod, ulong id) + { + PxCollectionAddIdMutNative(selfPod, objectPod, id); + } + + public static void PxCollectionAddIdMut( PhysxPxCollectionPod* selfPod, ref PhysxPxBasePod objectPod, ulong id) + { + fixed (PhysxPxBasePod* pobjectPod = &objectPod) + { + PxCollectionAddIdMutNative(selfPod, (PhysxPxBasePod*)pobjectPod, id); + } + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_removeId_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCollectionRemoveIdMutNative(PhysxPxCollectionPod* selfPod, ulong id); + + public static void PxCollectionRemoveIdMut( PhysxPxCollectionPod* selfPod, ulong id) + { + PxCollectionRemoveIdMutNative(selfPod, id); + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_add_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCollectionAddMut1Native(PhysxPxCollectionPod* selfPod, PhysxPxCollectionPod* collectionPod); + + public static void PxCollectionAddMut1( PhysxPxCollectionPod* selfPod, PhysxPxCollectionPod* collectionPod) + { + PxCollectionAddMut1Native(selfPod, collectionPod); + } + + public static void PxCollectionAddMut1( PhysxPxCollectionPod* selfPod, ref PhysxPxCollectionPod collectionPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + PxCollectionAddMut1Native(selfPod, (PhysxPxCollectionPod*)pcollectionPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_remove_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCollectionRemoveMut1Native(PhysxPxCollectionPod* selfPod, PhysxPxCollectionPod* collectionPod); + + public static void PxCollectionRemoveMut1( PhysxPxCollectionPod* selfPod, PhysxPxCollectionPod* collectionPod) + { + PxCollectionRemoveMut1Native(selfPod, collectionPod); + } + + public static void PxCollectionRemoveMut1( PhysxPxCollectionPod* selfPod, ref PhysxPxCollectionPod collectionPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + PxCollectionRemoveMut1Native(selfPod, (PhysxPxCollectionPod*)pcollectionPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_getNbObjects")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxCollectionGetNbObjectsNative(PhysxPxCollectionPod* selfPod); + + public static uint PxCollectionGetNbObjects( PhysxPxCollectionPod* selfPod) + { + uint ret = PxCollectionGetNbObjectsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_getObject")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBasePod* PxCollectionGetObjectNative(PhysxPxCollectionPod* selfPod, uint index); + + public static PhysxPxBasePod* PxCollectionGetObject( PhysxPxCollectionPod* selfPod, uint index) + { + PhysxPxBasePod* ret = PxCollectionGetObjectNative(selfPod, index); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_getObjects")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxCollectionGetObjectsNative(PhysxPxCollectionPod* selfPod, PhysxPxBasePod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxCollectionGetObjects( PhysxPxCollectionPod* selfPod, PhysxPxBasePod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxCollectionGetObjectsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxCollectionGetObjects( PhysxPxCollectionPod* selfPod, ref PhysxPxBasePod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxBasePod** puserbufferPod = &userbufferPod) + { + uint ret = PxCollectionGetObjectsNative(selfPod, (PhysxPxBasePod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_find")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBasePod* PxCollectionFindNative(PhysxPxCollectionPod* selfPod, ulong id); + + public static PhysxPxBasePod* PxCollectionFind( PhysxPxCollectionPod* selfPod, ulong id) + { + PhysxPxBasePod* ret = PxCollectionFindNative(selfPod, id); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_getNbIds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxCollectionGetNbIdsNative(PhysxPxCollectionPod* selfPod); + + public static uint PxCollectionGetNbIds( PhysxPxCollectionPod* selfPod) + { + uint ret = PxCollectionGetNbIdsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_getIds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxCollectionGetIdsNative(PhysxPxCollectionPod* selfPod, ulong* userBuffer, uint bufferSize, uint startIndex); + + public static uint PxCollectionGetIds( PhysxPxCollectionPod* selfPod, ulong* userBuffer, uint bufferSize, uint startIndex) + { + uint ret = PxCollectionGetIdsNative(selfPod, userBuffer, bufferSize, startIndex); + return ret; + } + + public static uint PxCollectionGetIds( PhysxPxCollectionPod* selfPod, ref ulong userBuffer, uint bufferSize, uint startIndex) + { + fixed (ulong* puserBuffer = &userBuffer) + { + uint ret = PxCollectionGetIdsNative(selfPod, (ulong*)puserBuffer, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_getId")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong PxCollectionGetIdNative(PhysxPxCollectionPod* selfPod, PhysxPxBasePod* objectPod); + + public static ulong PxCollectionGetId( PhysxPxCollectionPod* selfPod, PhysxPxBasePod* objectPod) + { + ulong ret = PxCollectionGetIdNative(selfPod, objectPod); + return ret; + } + + public static ulong PxCollectionGetId( PhysxPxCollectionPod* selfPod, ref PhysxPxBasePod objectPod) + { + fixed (PhysxPxBasePod* pobjectPod = &objectPod) + { + ulong ret = PxCollectionGetIdNative(selfPod, (PhysxPxBasePod*)pobjectPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxCollection_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCollectionReleaseMutNative(PhysxPxCollectionPod* selfPod); + + public static void PxCollectionReleaseMut( PhysxPxCollectionPod* selfPod) + { + PxCollectionReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateCollection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCollectionPod* PhysPxCreateCollectionNative(); + + public static PhysxPxCollectionPod* PhysPxCreateCollection() + { + PhysxPxCollectionPod* ret = PhysPxCreateCollectionNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBase_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBaseReleaseMutNative(PhysxPxBasePod* selfPod); + + public static void PxBaseReleaseMut( PhysxPxBasePod* selfPod) + { + PxBaseReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBase_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxBaseGetConcreteTypeNameNative(PhysxPxBasePod* selfPod); + + public static byte* PxBaseGetConcreteTypeName( PhysxPxBasePod* selfPod) + { + byte* ret = PxBaseGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxBaseGetConcreteTypeNameS( PhysxPxBasePod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxBaseGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBase_getConcreteType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxBaseGetConcreteTypeNative(PhysxPxBasePod* selfPod); + + public static ushort PxBaseGetConcreteType( PhysxPxBasePod* selfPod) + { + ushort ret = PxBaseGetConcreteTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBase_setBaseFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBaseSetBaseFlagMutNative(PhysxPxBasePod* selfPod, int flagPod, byte value); + + public static void PxBaseSetBaseFlagMut( PhysxPxBasePod* selfPod, int flagPod, bool value) + { + PxBaseSetBaseFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxBase_setBaseFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBaseSetBaseFlagsMutNative(PhysxPxBasePod* selfPod, ushort inflagsPod); + + public static void PxBaseSetBaseFlagsMut( PhysxPxBasePod* selfPod, ushort inflagsPod) + { + PxBaseSetBaseFlagsMutNative(selfPod, inflagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBase_getBaseFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxBaseGetBaseFlagsNative(PhysxPxBasePod* selfPod); + + public static ushort PxBaseGetBaseFlags( PhysxPxBasePod* selfPod) + { + ushort ret = PxBaseGetBaseFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBase_isReleasable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBaseIsReleasableNative(PhysxPxBasePod* selfPod); + + public static bool PxBaseIsReleasable( PhysxPxBasePod* selfPod) + { + byte ret = PxBaseIsReleasableNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxRefCounted_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRefCountedReleaseMutNative(PhysxPxRefCountedPod* selfPod); + + public static void PxRefCountedReleaseMut( PhysxPxRefCountedPod* selfPod) + { + PxRefCountedReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxRefCounted_getReferenceCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxRefCountedGetReferenceCountNative(PhysxPxRefCountedPod* selfPod); + + public static uint PxRefCountedGetReferenceCount( PhysxPxRefCountedPod* selfPod) + { + uint ret = PxRefCountedGetReferenceCountNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRefCounted_acquireReference_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRefCountedAcquireReferenceMutNative(PhysxPxRefCountedPod* selfPod); + + public static void PxRefCountedAcquireReferenceMut( PhysxPxRefCountedPod* selfPod) + { + PxRefCountedAcquireReferenceMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTolerancesScale_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTolerancesScalePod PxTolerancesScaleNewNative(float defaultLength, float defaultSpeed); + + public static PhysxPxTolerancesScalePod PxTolerancesScaleNew( float defaultLength, float defaultSpeed) + { + PhysxPxTolerancesScalePod ret = PxTolerancesScaleNewNative(defaultLength, defaultSpeed); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTolerancesScale_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTolerancesScaleIsValidNative(PhysxPxTolerancesScalePod* selfPod); + + public static bool PxTolerancesScaleIsValid( PhysxPxTolerancesScalePod* selfPod) + { + byte ret = PxTolerancesScaleIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxStringTable_allocateStr_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxStringTableAllocateStrMutNative(PhysxPxStringTablePod* selfPod, byte* inSrc); + + public static byte* PxStringTableAllocateStrMut( PhysxPxStringTablePod* selfPod, byte* inSrc) + { + byte* ret = PxStringTableAllocateStrMutNative(selfPod, inSrc); + return ret; + } + + public static string PxStringTableAllocateStrMutS( PhysxPxStringTablePod* selfPod, byte* inSrc) + { + string ret = Utils.DecodeStringUTF8(PxStringTableAllocateStrMutNative(selfPod, inSrc)); + return ret; + } + + public static byte* PxStringTableAllocateStrMut( PhysxPxStringTablePod* selfPod, ref byte inSrc) + { + fixed (byte* pinSrc = &inSrc) + { + byte* ret = PxStringTableAllocateStrMutNative(selfPod, (byte*)pinSrc); + return ret; + } + } + + public static string PxStringTableAllocateStrMutS( PhysxPxStringTablePod* selfPod, ref byte inSrc) + { + fixed (byte* pinSrc = &inSrc) + { + string ret = Utils.DecodeStringUTF8(PxStringTableAllocateStrMutNative(selfPod, (byte*)pinSrc)); + return ret; + } + } + + public static byte* PxStringTableAllocateStrMut( PhysxPxStringTablePod* selfPod, string inSrc) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inSrc != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inSrc); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inSrc, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* ret = PxStringTableAllocateStrMutNative(selfPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static string PxStringTableAllocateStrMutS( PhysxPxStringTablePod* selfPod, string inSrc) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (inSrc != null) + { + pStrSize0 = Utils.GetByteCountUTF8(inSrc); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(inSrc, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + string ret = Utils.DecodeStringUTF8(PxStringTableAllocateStrMutNative(selfPod, pStr0)); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxStringTable_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxStringTableReleaseMutNative(PhysxPxStringTablePod* selfPod); + + public static void PxStringTableReleaseMut( PhysxPxStringTablePod* selfPod) + { + PxStringTableReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSerializer_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxSerializerGetConcreteTypeNameNative(PhysxPxSerializerPod* selfPod); + + public static byte* PxSerializerGetConcreteTypeName( PhysxPxSerializerPod* selfPod) + { + byte* ret = PxSerializerGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxSerializerGetConcreteTypeNameS( PhysxPxSerializerPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxSerializerGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSerializer_requiresObjects")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializerRequiresObjectsNative(PhysxPxSerializerPod* selfPod, PhysxPxBasePod* anonparam0Pod, PhysxPxProcessPxBaseCallbackPod* anonparam1Pod); + + public static void PxSerializerRequiresObjects( PhysxPxSerializerPod* selfPod, PhysxPxBasePod* anonparam0Pod, PhysxPxProcessPxBaseCallbackPod* anonparam1Pod) + { + PxSerializerRequiresObjectsNative(selfPod, anonparam0Pod, anonparam1Pod); + } + + public static void PxSerializerRequiresObjects( PhysxPxSerializerPod* selfPod, ref PhysxPxBasePod anonparam0Pod, PhysxPxProcessPxBaseCallbackPod* anonparam1Pod) + { + fixed (PhysxPxBasePod* panonparam0Pod = &anonparam0Pod) + { + PxSerializerRequiresObjectsNative(selfPod, (PhysxPxBasePod*)panonparam0Pod, anonparam1Pod); + } + } + + public static void PxSerializerRequiresObjects( PhysxPxSerializerPod* selfPod, PhysxPxBasePod* anonparam0Pod, ref PhysxPxProcessPxBaseCallbackPod anonparam1Pod) + { + fixed (PhysxPxProcessPxBaseCallbackPod* panonparam1Pod = &anonparam1Pod) + { + PxSerializerRequiresObjectsNative(selfPod, anonparam0Pod, (PhysxPxProcessPxBaseCallbackPod*)panonparam1Pod); + } + } + + public static void PxSerializerRequiresObjects( PhysxPxSerializerPod* selfPod, ref PhysxPxBasePod anonparam0Pod, ref PhysxPxProcessPxBaseCallbackPod anonparam1Pod) + { + fixed (PhysxPxBasePod* panonparam0Pod = &anonparam0Pod) + { + fixed (PhysxPxProcessPxBaseCallbackPod* panonparam1Pod = &anonparam1Pod) + { + PxSerializerRequiresObjectsNative(selfPod, (PhysxPxBasePod*)panonparam0Pod, (PhysxPxProcessPxBaseCallbackPod*)panonparam1Pod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerializer_isSubordinate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSerializerIsSubordinateNative(PhysxPxSerializerPod* selfPod); + + public static bool PxSerializerIsSubordinate( PhysxPxSerializerPod* selfPod) + { + byte ret = PxSerializerIsSubordinateNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxSerializer_exportExtraData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializerExportExtraDataNative(PhysxPxSerializerPod* selfPod, PhysxPxBasePod* anonparam0Pod, PhysxPxSerializationContextPod* anonparam1Pod); + + public static void PxSerializerExportExtraData( PhysxPxSerializerPod* selfPod, PhysxPxBasePod* anonparam0Pod, PhysxPxSerializationContextPod* anonparam1Pod) + { + PxSerializerExportExtraDataNative(selfPod, anonparam0Pod, anonparam1Pod); + } + + public static void PxSerializerExportExtraData( PhysxPxSerializerPod* selfPod, ref PhysxPxBasePod anonparam0Pod, PhysxPxSerializationContextPod* anonparam1Pod) + { + fixed (PhysxPxBasePod* panonparam0Pod = &anonparam0Pod) + { + PxSerializerExportExtraDataNative(selfPod, (PhysxPxBasePod*)panonparam0Pod, anonparam1Pod); + } + } + + public static void PxSerializerExportExtraData( PhysxPxSerializerPod* selfPod, PhysxPxBasePod* anonparam0Pod, ref PhysxPxSerializationContextPod anonparam1Pod) + { + fixed (PhysxPxSerializationContextPod* panonparam1Pod = &anonparam1Pod) + { + PxSerializerExportExtraDataNative(selfPod, anonparam0Pod, (PhysxPxSerializationContextPod*)panonparam1Pod); + } + } + + public static void PxSerializerExportExtraData( PhysxPxSerializerPod* selfPod, ref PhysxPxBasePod anonparam0Pod, ref PhysxPxSerializationContextPod anonparam1Pod) + { + fixed (PhysxPxBasePod* panonparam0Pod = &anonparam0Pod) + { + fixed (PhysxPxSerializationContextPod* panonparam1Pod = &anonparam1Pod) + { + PxSerializerExportExtraDataNative(selfPod, (PhysxPxBasePod*)panonparam0Pod, (PhysxPxSerializationContextPod*)panonparam1Pod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerializer_exportData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializerExportDataNative(PhysxPxSerializerPod* selfPod, PhysxPxBasePod* anonparam0Pod, PhysxPxSerializationContextPod* anonparam1Pod); + + public static void PxSerializerExportData( PhysxPxSerializerPod* selfPod, PhysxPxBasePod* anonparam0Pod, PhysxPxSerializationContextPod* anonparam1Pod) + { + PxSerializerExportDataNative(selfPod, anonparam0Pod, anonparam1Pod); + } + + public static void PxSerializerExportData( PhysxPxSerializerPod* selfPod, ref PhysxPxBasePod anonparam0Pod, PhysxPxSerializationContextPod* anonparam1Pod) + { + fixed (PhysxPxBasePod* panonparam0Pod = &anonparam0Pod) + { + PxSerializerExportDataNative(selfPod, (PhysxPxBasePod*)panonparam0Pod, anonparam1Pod); + } + } + + public static void PxSerializerExportData( PhysxPxSerializerPod* selfPod, PhysxPxBasePod* anonparam0Pod, ref PhysxPxSerializationContextPod anonparam1Pod) + { + fixed (PhysxPxSerializationContextPod* panonparam1Pod = &anonparam1Pod) + { + PxSerializerExportDataNative(selfPod, anonparam0Pod, (PhysxPxSerializationContextPod*)panonparam1Pod); + } + } + + public static void PxSerializerExportData( PhysxPxSerializerPod* selfPod, ref PhysxPxBasePod anonparam0Pod, ref PhysxPxSerializationContextPod anonparam1Pod) + { + fixed (PhysxPxBasePod* panonparam0Pod = &anonparam0Pod) + { + fixed (PhysxPxSerializationContextPod* panonparam1Pod = &anonparam1Pod) + { + PxSerializerExportDataNative(selfPod, (PhysxPxBasePod*)panonparam0Pod, (PhysxPxSerializationContextPod*)panonparam1Pod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerializer_registerReferences")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializerRegisterReferencesNative(PhysxPxSerializerPod* selfPod, PhysxPxBasePod* objPod, PhysxPxSerializationContextPod* sPod); + + public static void PxSerializerRegisterReferences( PhysxPxSerializerPod* selfPod, PhysxPxBasePod* objPod, PhysxPxSerializationContextPod* sPod) + { + PxSerializerRegisterReferencesNative(selfPod, objPod, sPod); + } + + public static void PxSerializerRegisterReferences( PhysxPxSerializerPod* selfPod, ref PhysxPxBasePod objPod, PhysxPxSerializationContextPod* sPod) + { + fixed (PhysxPxBasePod* pobjPod = &objPod) + { + PxSerializerRegisterReferencesNative(selfPod, (PhysxPxBasePod*)pobjPod, sPod); + } + } + + public static void PxSerializerRegisterReferences( PhysxPxSerializerPod* selfPod, PhysxPxBasePod* objPod, ref PhysxPxSerializationContextPod sPod) + { + fixed (PhysxPxSerializationContextPod* psPod = &sPod) + { + PxSerializerRegisterReferencesNative(selfPod, objPod, (PhysxPxSerializationContextPod*)psPod); + } + } + + public static void PxSerializerRegisterReferences( PhysxPxSerializerPod* selfPod, ref PhysxPxBasePod objPod, ref PhysxPxSerializationContextPod sPod) + { + fixed (PhysxPxBasePod* pobjPod = &objPod) + { + fixed (PhysxPxSerializationContextPod* psPod = &sPod) + { + PxSerializerRegisterReferencesNative(selfPod, (PhysxPxBasePod*)pobjPod, (PhysxPxSerializationContextPod*)psPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerializer_getClassSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong PxSerializerGetClassSizeNative(PhysxPxSerializerPod* selfPod); + + public static ulong PxSerializerGetClassSize( PhysxPxSerializerPod* selfPod) + { + ulong ret = PxSerializerGetClassSizeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSerializer_createObject")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBasePod* PxSerializerCreateObjectNative(PhysxPxSerializerPod* selfPod, byte** addressPod, PhysxPxDeserializationContextPod* contextPod); + + public static PhysxPxBasePod* PxSerializerCreateObject( PhysxPxSerializerPod* selfPod, byte** addressPod, PhysxPxDeserializationContextPod* contextPod) + { + PhysxPxBasePod* ret = PxSerializerCreateObjectNative(selfPod, addressPod, contextPod); + return ret; + } + + public static PhysxPxBasePod* PxSerializerCreateObject( PhysxPxSerializerPod* selfPod, ref byte* addressPod, PhysxPxDeserializationContextPod* contextPod) + { + fixed (byte** paddressPod = &addressPod) + { + PhysxPxBasePod* ret = PxSerializerCreateObjectNative(selfPod, (byte**)paddressPod, contextPod); + return ret; + } + } + + public static PhysxPxBasePod* PxSerializerCreateObject( PhysxPxSerializerPod* selfPod, byte** addressPod, ref PhysxPxDeserializationContextPod contextPod) + { + fixed (PhysxPxDeserializationContextPod* pcontextPod = &contextPod) + { + PhysxPxBasePod* ret = PxSerializerCreateObjectNative(selfPod, addressPod, (PhysxPxDeserializationContextPod*)pcontextPod); + return ret; + } + } + + public static PhysxPxBasePod* PxSerializerCreateObject( PhysxPxSerializerPod* selfPod, ref byte* addressPod, ref PhysxPxDeserializationContextPod contextPod) + { + fixed (byte** paddressPod = &addressPod) + { + fixed (PhysxPxDeserializationContextPod* pcontextPod = &contextPod) + { + PhysxPxBasePod* ret = PxSerializerCreateObjectNative(selfPod, (byte**)paddressPod, (PhysxPxDeserializationContextPod*)pcontextPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerializer_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializerDeleteNative(PhysxPxSerializerPod* selfPod); + + public static void PxSerializerDelete( PhysxPxSerializerPod* selfPod) + { + PxSerializerDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxInsertionCallback_buildObjectFromData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBasePod* PxInsertionCallbackBuildObjectFromDataMutNative(PhysxPxInsertionCallbackPod* selfPod, int typePod, void* data); + + public static PhysxPxBasePod* PxInsertionCallbackBuildObjectFromDataMut( PhysxPxInsertionCallbackPod* selfPod, int typePod, void* data) + { + PhysxPxBasePod* ret = PxInsertionCallbackBuildObjectFromDataMutNative(selfPod, typePod, data); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_setCpuDispatcher_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskManagerSetCpuDispatcherMutNative(PhysxPxTaskManagerPod* selfPod, PhysxPxCpuDispatcherPod* refPod); + + public static void PxTaskManagerSetCpuDispatcherMut( PhysxPxTaskManagerPod* selfPod, PhysxPxCpuDispatcherPod* refPod) + { + PxTaskManagerSetCpuDispatcherMutNative(selfPod, refPod); + } + + public static void PxTaskManagerSetCpuDispatcherMut( PhysxPxTaskManagerPod* selfPod, ref PhysxPxCpuDispatcherPod refPod) + { + fixed (PhysxPxCpuDispatcherPod* prefPod = &refPod) + { + PxTaskManagerSetCpuDispatcherMutNative(selfPod, (PhysxPxCpuDispatcherPod*)prefPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_getCpuDispatcher")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCpuDispatcherPod* PxTaskManagerGetCpuDispatcherNative(PhysxPxTaskManagerPod* selfPod); + + public static PhysxPxCpuDispatcherPod* PxTaskManagerGetCpuDispatcher( PhysxPxTaskManagerPod* selfPod) + { + PhysxPxCpuDispatcherPod* ret = PxTaskManagerGetCpuDispatcherNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_resetDependencies_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskManagerResetDependenciesMutNative(PhysxPxTaskManagerPod* selfPod); + + public static void PxTaskManagerResetDependenciesMut( PhysxPxTaskManagerPod* selfPod) + { + PxTaskManagerResetDependenciesMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_startSimulation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskManagerStartSimulationMutNative(PhysxPxTaskManagerPod* selfPod); + + public static void PxTaskManagerStartSimulationMut( PhysxPxTaskManagerPod* selfPod) + { + PxTaskManagerStartSimulationMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_stopSimulation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskManagerStopSimulationMutNative(PhysxPxTaskManagerPod* selfPod); + + public static void PxTaskManagerStopSimulationMut( PhysxPxTaskManagerPod* selfPod) + { + PxTaskManagerStopSimulationMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_taskCompleted_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskManagerTaskCompletedMutNative(PhysxPxTaskManagerPod* selfPod, PhysxPxTaskPod* taskPod); + + public static void PxTaskManagerTaskCompletedMut( PhysxPxTaskManagerPod* selfPod, PhysxPxTaskPod* taskPod) + { + PxTaskManagerTaskCompletedMutNative(selfPod, taskPod); + } + + public static void PxTaskManagerTaskCompletedMut( PhysxPxTaskManagerPod* selfPod, ref PhysxPxTaskPod taskPod) + { + fixed (PhysxPxTaskPod* ptaskPod = &taskPod) + { + PxTaskManagerTaskCompletedMutNative(selfPod, (PhysxPxTaskPod*)ptaskPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_getNamedTask_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxTaskManagerGetNamedTaskMutNative(PhysxPxTaskManagerPod* selfPod, byte* name); + + public static uint PxTaskManagerGetNamedTaskMut( PhysxPxTaskManagerPod* selfPod, byte* name) + { + uint ret = PxTaskManagerGetNamedTaskMutNative(selfPod, name); + return ret; + } + + public static uint PxTaskManagerGetNamedTaskMut( PhysxPxTaskManagerPod* selfPod, ref byte name) + { + fixed (byte* pname = &name) + { + uint ret = PxTaskManagerGetNamedTaskMutNative(selfPod, (byte*)pname); + return ret; + } + } + + public static uint PxTaskManagerGetNamedTaskMut( PhysxPxTaskManagerPod* selfPod, string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = PxTaskManagerGetNamedTaskMutNative(selfPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_submitNamedTask_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxTaskManagerSubmitNamedTaskMutNative(PhysxPxTaskManagerPod* selfPod, PhysxPxTaskPod* taskPod, byte* name, int typePod); + + public static uint PxTaskManagerSubmitNamedTaskMut( PhysxPxTaskManagerPod* selfPod, PhysxPxTaskPod* taskPod, byte* name, int typePod) + { + uint ret = PxTaskManagerSubmitNamedTaskMutNative(selfPod, taskPod, name, typePod); + return ret; + } + + public static uint PxTaskManagerSubmitNamedTaskMut( PhysxPxTaskManagerPod* selfPod, ref PhysxPxTaskPod taskPod, byte* name, int typePod) + { + fixed (PhysxPxTaskPod* ptaskPod = &taskPod) + { + uint ret = PxTaskManagerSubmitNamedTaskMutNative(selfPod, (PhysxPxTaskPod*)ptaskPod, name, typePod); + return ret; + } + } + + public static uint PxTaskManagerSubmitNamedTaskMut( PhysxPxTaskManagerPod* selfPod, PhysxPxTaskPod* taskPod, ref byte name, int typePod) + { + fixed (byte* pname = &name) + { + uint ret = PxTaskManagerSubmitNamedTaskMutNative(selfPod, taskPod, (byte*)pname, typePod); + return ret; + } + } + + public static uint PxTaskManagerSubmitNamedTaskMut( PhysxPxTaskManagerPod* selfPod, PhysxPxTaskPod* taskPod, string name, int typePod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = PxTaskManagerSubmitNamedTaskMutNative(selfPod, taskPod, pStr0, typePod); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static uint PxTaskManagerSubmitNamedTaskMut( PhysxPxTaskManagerPod* selfPod, ref PhysxPxTaskPod taskPod, ref byte name, int typePod) + { + fixed (PhysxPxTaskPod* ptaskPod = &taskPod) + { + fixed (byte* pname = &name) + { + uint ret = PxTaskManagerSubmitNamedTaskMutNative(selfPod, (PhysxPxTaskPod*)ptaskPod, (byte*)pname, typePod); + return ret; + } + } + } + + public static uint PxTaskManagerSubmitNamedTaskMut( PhysxPxTaskManagerPod* selfPod, ref PhysxPxTaskPod taskPod, string name, int typePod) + { + fixed (PhysxPxTaskPod* ptaskPod = &taskPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + uint ret = PxTaskManagerSubmitNamedTaskMutNative(selfPod, (PhysxPxTaskPod*)ptaskPod, pStr0, typePod); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_submitUnnamedTask_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxTaskManagerSubmitUnnamedTaskMutNative(PhysxPxTaskManagerPod* selfPod, PhysxPxTaskPod* taskPod, int typePod); + + public static uint PxTaskManagerSubmitUnnamedTaskMut( PhysxPxTaskManagerPod* selfPod, PhysxPxTaskPod* taskPod, int typePod) + { + uint ret = PxTaskManagerSubmitUnnamedTaskMutNative(selfPod, taskPod, typePod); + return ret; + } + + public static uint PxTaskManagerSubmitUnnamedTaskMut( PhysxPxTaskManagerPod* selfPod, ref PhysxPxTaskPod taskPod, int typePod) + { + fixed (PhysxPxTaskPod* ptaskPod = &taskPod) + { + uint ret = PxTaskManagerSubmitUnnamedTaskMutNative(selfPod, (PhysxPxTaskPod*)ptaskPod, typePod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_getTaskFromID_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTaskPod* PxTaskManagerGetTaskFromIDMutNative(PhysxPxTaskManagerPod* selfPod, uint id); + + public static PhysxPxTaskPod* PxTaskManagerGetTaskFromIDMut( PhysxPxTaskManagerPod* selfPod, uint id) + { + PhysxPxTaskPod* ret = PxTaskManagerGetTaskFromIDMutNative(selfPod, id); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskManagerReleaseMutNative(PhysxPxTaskManagerPod* selfPod); + + public static void PxTaskManagerReleaseMut( PhysxPxTaskManagerPod* selfPod) + { + PxTaskManagerReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTaskManager_createTaskManager")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTaskManagerPod* PxTaskManagerCreateTaskManagerNative(PhysxPxErrorCallbackPod* errorcallbackPod, PhysxPxCpuDispatcherPod* anonparam1Pod); + + public static PhysxPxTaskManagerPod* PxTaskManagerCreateTaskManager( PhysxPxErrorCallbackPod* errorcallbackPod, PhysxPxCpuDispatcherPod* anonparam1Pod) + { + PhysxPxTaskManagerPod* ret = PxTaskManagerCreateTaskManagerNative(errorcallbackPod, anonparam1Pod); + return ret; + } + + public static PhysxPxTaskManagerPod* PxTaskManagerCreateTaskManager( PhysxPxErrorCallbackPod* errorcallbackPod, ref PhysxPxCpuDispatcherPod anonparam1Pod) + { + fixed (PhysxPxCpuDispatcherPod* panonparam1Pod = &anonparam1Pod) + { + PhysxPxTaskManagerPod* ret = PxTaskManagerCreateTaskManagerNative(errorcallbackPod, (PhysxPxCpuDispatcherPod*)panonparam1Pod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxCpuDispatcher_submitTask_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCpuDispatcherSubmitTaskMutNative(PhysxPxCpuDispatcherPod* selfPod, PhysxPxBaseTaskPod* taskPod); + + public static void PxCpuDispatcherSubmitTaskMut( PhysxPxCpuDispatcherPod* selfPod, PhysxPxBaseTaskPod* taskPod) + { + PxCpuDispatcherSubmitTaskMutNative(selfPod, taskPod); + } + + public static void PxCpuDispatcherSubmitTaskMut( PhysxPxCpuDispatcherPod* selfPod, ref PhysxPxBaseTaskPod taskPod) + { + fixed (PhysxPxBaseTaskPod* ptaskPod = &taskPod) + { + PxCpuDispatcherSubmitTaskMutNative(selfPod, (PhysxPxBaseTaskPod*)ptaskPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxCpuDispatcher_getWorkerCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxCpuDispatcherGetWorkerCountNative(PhysxPxCpuDispatcherPod* selfPod); + + public static uint PxCpuDispatcherGetWorkerCount( PhysxPxCpuDispatcherPod* selfPod) + { + uint ret = PxCpuDispatcherGetWorkerCountNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCpuDispatcher_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCpuDispatcherDeleteNative(PhysxPxCpuDispatcherPod* selfPod); + + public static void PxCpuDispatcherDelete( PhysxPxCpuDispatcherPod* selfPod) + { + PxCpuDispatcherDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBaseTask_run_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBaseTaskRunMutNative(PhysxPxBaseTaskPod* selfPod); + + public static void PxBaseTaskRunMut( PhysxPxBaseTaskPod* selfPod) + { + PxBaseTaskRunMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBaseTask_getName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxBaseTaskGetNameNative(PhysxPxBaseTaskPod* selfPod); + + public static byte* PxBaseTaskGetName( PhysxPxBaseTaskPod* selfPod) + { + byte* ret = PxBaseTaskGetNameNative(selfPod); + return ret; + } + + public static string PxBaseTaskGetNameS( PhysxPxBaseTaskPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxBaseTaskGetNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBaseTask_addReference_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBaseTaskAddReferenceMutNative(PhysxPxBaseTaskPod* selfPod); + + public static void PxBaseTaskAddReferenceMut( PhysxPxBaseTaskPod* selfPod) + { + PxBaseTaskAddReferenceMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBaseTask_removeReference_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBaseTaskRemoveReferenceMutNative(PhysxPxBaseTaskPod* selfPod); + + public static void PxBaseTaskRemoveReferenceMut( PhysxPxBaseTaskPod* selfPod) + { + PxBaseTaskRemoveReferenceMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBaseTask_getReference")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxBaseTaskGetReferenceNative(PhysxPxBaseTaskPod* selfPod); + + public static int PxBaseTaskGetReference( PhysxPxBaseTaskPod* selfPod) + { + int ret = PxBaseTaskGetReferenceNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBaseTask_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBaseTaskReleaseMutNative(PhysxPxBaseTaskPod* selfPod); + + public static void PxBaseTaskReleaseMut( PhysxPxBaseTaskPod* selfPod) + { + PxBaseTaskReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBaseTask_getTaskManager")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTaskManagerPod* PxBaseTaskGetTaskManagerNative(PhysxPxBaseTaskPod* selfPod); + + public static PhysxPxTaskManagerPod* PxBaseTaskGetTaskManager( PhysxPxBaseTaskPod* selfPod) + { + PhysxPxTaskManagerPod* ret = PxBaseTaskGetTaskManagerNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBaseTask_setContextId_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBaseTaskSetContextIdMutNative(PhysxPxBaseTaskPod* selfPod, ulong id); + + public static void PxBaseTaskSetContextIdMut( PhysxPxBaseTaskPod* selfPod, ulong id) + { + PxBaseTaskSetContextIdMutNative(selfPod, id); + } + + [LibraryImport(LibName, EntryPoint = "PxBaseTask_getContextId")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong PxBaseTaskGetContextIdNative(PhysxPxBaseTaskPod* selfPod); + + public static ulong PxBaseTaskGetContextId( PhysxPxBaseTaskPod* selfPod) + { + ulong ret = PxBaseTaskGetContextIdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTask_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskReleaseMutNative(PhysxPxTaskPod* selfPod); + + public static void PxTaskReleaseMut( PhysxPxTaskPod* selfPod) + { + PxTaskReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTask_finishBefore_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskFinishBeforeMutNative(PhysxPxTaskPod* selfPod, uint taskID); + + public static void PxTaskFinishBeforeMut( PhysxPxTaskPod* selfPod, uint taskID) + { + PxTaskFinishBeforeMutNative(selfPod, taskID); + } + + [LibraryImport(LibName, EntryPoint = "PxTask_startAfter_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskStartAfterMutNative(PhysxPxTaskPod* selfPod, uint taskID); + + public static void PxTaskStartAfterMut( PhysxPxTaskPod* selfPod, uint taskID) + { + PxTaskStartAfterMutNative(selfPod, taskID); + } + + [LibraryImport(LibName, EntryPoint = "PxTask_addReference_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskAddReferenceMutNative(PhysxPxTaskPod* selfPod); + + public static void PxTaskAddReferenceMut( PhysxPxTaskPod* selfPod) + { + PxTaskAddReferenceMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTask_removeReference_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskRemoveReferenceMutNative(PhysxPxTaskPod* selfPod); + + public static void PxTaskRemoveReferenceMut( PhysxPxTaskPod* selfPod) + { + PxTaskRemoveReferenceMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTask_getReference")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxTaskGetReferenceNative(PhysxPxTaskPod* selfPod); + + public static int PxTaskGetReference( PhysxPxTaskPod* selfPod) + { + int ret = PxTaskGetReferenceNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTask_getTaskID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxTaskGetTaskIDNative(PhysxPxTaskPod* selfPod); + + public static uint PxTaskGetTaskID( PhysxPxTaskPod* selfPod) + { + uint ret = PxTaskGetTaskIDNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTask_submitted_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTaskSubmittedMutNative(PhysxPxTaskPod* selfPod); + + public static void PxTaskSubmittedMut( PhysxPxTaskPod* selfPod) + { + PxTaskSubmittedMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxLightCpuTask_setContinuation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxLightCpuTaskSetContinuationMutNative(PhysxPxLightCpuTaskPod* selfPod, PhysxPxTaskManagerPod* tmPod, PhysxPxBaseTaskPod* cPod); + + public static void PxLightCpuTaskSetContinuationMut( PhysxPxLightCpuTaskPod* selfPod, PhysxPxTaskManagerPod* tmPod, PhysxPxBaseTaskPod* cPod) + { + PxLightCpuTaskSetContinuationMutNative(selfPod, tmPod, cPod); + } + + public static void PxLightCpuTaskSetContinuationMut( PhysxPxLightCpuTaskPod* selfPod, ref PhysxPxTaskManagerPod tmPod, PhysxPxBaseTaskPod* cPod) + { + fixed (PhysxPxTaskManagerPod* ptmPod = &tmPod) + { + PxLightCpuTaskSetContinuationMutNative(selfPod, (PhysxPxTaskManagerPod*)ptmPod, cPod); + } + } + + public static void PxLightCpuTaskSetContinuationMut( PhysxPxLightCpuTaskPod* selfPod, PhysxPxTaskManagerPod* tmPod, ref PhysxPxBaseTaskPod cPod) + { + fixed (PhysxPxBaseTaskPod* pcPod = &cPod) + { + PxLightCpuTaskSetContinuationMutNative(selfPod, tmPod, (PhysxPxBaseTaskPod*)pcPod); + } + } + + public static void PxLightCpuTaskSetContinuationMut( PhysxPxLightCpuTaskPod* selfPod, ref PhysxPxTaskManagerPod tmPod, ref PhysxPxBaseTaskPod cPod) + { + fixed (PhysxPxTaskManagerPod* ptmPod = &tmPod) + { + fixed (PhysxPxBaseTaskPod* pcPod = &cPod) + { + PxLightCpuTaskSetContinuationMutNative(selfPod, (PhysxPxTaskManagerPod*)ptmPod, (PhysxPxBaseTaskPod*)pcPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxLightCpuTask_setContinuation_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxLightCpuTaskSetContinuationMut1Native(PhysxPxLightCpuTaskPod* selfPod, PhysxPxBaseTaskPod* cPod); + + public static void PxLightCpuTaskSetContinuationMut1( PhysxPxLightCpuTaskPod* selfPod, PhysxPxBaseTaskPod* cPod) + { + PxLightCpuTaskSetContinuationMut1Native(selfPod, cPod); + } + + public static void PxLightCpuTaskSetContinuationMut1( PhysxPxLightCpuTaskPod* selfPod, ref PhysxPxBaseTaskPod cPod) + { + fixed (PhysxPxBaseTaskPod* pcPod = &cPod) + { + PxLightCpuTaskSetContinuationMut1Native(selfPod, (PhysxPxBaseTaskPod*)pcPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxLightCpuTask_getContinuation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBaseTaskPod* PxLightCpuTaskGetContinuationNative(PhysxPxLightCpuTaskPod* selfPod); + + public static PhysxPxBaseTaskPod* PxLightCpuTaskGetContinuation( PhysxPxLightCpuTaskPod* selfPod) + { + PhysxPxBaseTaskPod* ret = PxLightCpuTaskGetContinuationNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxLightCpuTask_removeReference_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxLightCpuTaskRemoveReferenceMutNative(PhysxPxLightCpuTaskPod* selfPod); + + public static void PxLightCpuTaskRemoveReferenceMut( PhysxPxLightCpuTaskPod* selfPod) + { + PxLightCpuTaskRemoveReferenceMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxLightCpuTask_getReference")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxLightCpuTaskGetReferenceNative(PhysxPxLightCpuTaskPod* selfPod); + + public static int PxLightCpuTaskGetReference( PhysxPxLightCpuTaskPod* selfPod) + { + int ret = PxLightCpuTaskGetReferenceNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxLightCpuTask_addReference_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxLightCpuTaskAddReferenceMutNative(PhysxPxLightCpuTaskPod* selfPod); + + public static void PxLightCpuTaskAddReferenceMut( PhysxPxLightCpuTaskPod* selfPod) + { + PxLightCpuTaskAddReferenceMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxLightCpuTask_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxLightCpuTaskReleaseMutNative(PhysxPxLightCpuTaskPod* selfPod); + + public static void PxLightCpuTaskReleaseMut( PhysxPxLightCpuTaskPod* selfPod) + { + PxLightCpuTaskReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxGeometry_getType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxGeometryGetTypeNative(PhysxPxGeometryPod* selfPod); + + public static int PxGeometryGetType( PhysxPxGeometryPod* selfPod) + { + int ret = PxGeometryGetTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBoxGeometry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBoxGeometryPod PxBoxGeometryNewNative(float hx, float hy, float hz); + + public static PhysxPxBoxGeometryPod PxBoxGeometryNew( float hx, float hy, float hz) + { + PhysxPxBoxGeometryPod ret = PxBoxGeometryNewNative(hx, hy, hz); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBoxGeometry_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBoxGeometryPod PxBoxGeometryNew1Native(PhysxPxVec3Pod halfextentsPod); + + public static PhysxPxBoxGeometryPod PxBoxGeometryNew1( PhysxPxVec3Pod halfextentsPod) + { + PhysxPxBoxGeometryPod ret = PxBoxGeometryNew1Native(halfextentsPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBoxGeometry_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBoxGeometryIsValidNative(PhysxPxBoxGeometryPod* selfPod); + + public static bool PxBoxGeometryIsValid( PhysxPxBoxGeometryPod* selfPod) + { + byte ret = PxBoxGeometryIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxBVHRaycastCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBVHRaycastCallbackDeleteNative(PhysxPxBVHRaycastCallbackPod* selfPod); + + public static void PxBVHRaycastCallbackDelete( PhysxPxBVHRaycastCallbackPod* selfPod) + { + PxBVHRaycastCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBVHRaycastCallback_reportHit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVHRaycastCallbackReportHitMutNative(PhysxPxBVHRaycastCallbackPod* selfPod, uint boundsIndex, float* distancePod); + + public static bool PxBVHRaycastCallbackReportHitMut( PhysxPxBVHRaycastCallbackPod* selfPod, uint boundsIndex, float* distancePod) + { + byte ret = PxBVHRaycastCallbackReportHitMutNative(selfPod, boundsIndex, distancePod); + return ret != 0; + } + + public static bool PxBVHRaycastCallbackReportHitMut( PhysxPxBVHRaycastCallbackPod* selfPod, uint boundsIndex, ref float distancePod) + { + fixed (float* pdistancePod = &distancePod) + { + byte ret = PxBVHRaycastCallbackReportHitMutNative(selfPod, boundsIndex, (float*)pdistancePod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBVHOverlapCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBVHOverlapCallbackDeleteNative(PhysxPxBVHOverlapCallbackPod* selfPod); + + public static void PxBVHOverlapCallbackDelete( PhysxPxBVHOverlapCallbackPod* selfPod) + { + PxBVHOverlapCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBVHOverlapCallback_reportHit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVHOverlapCallbackReportHitMutNative(PhysxPxBVHOverlapCallbackPod* selfPod, uint boundsIndex); + + public static bool PxBVHOverlapCallbackReportHitMut( PhysxPxBVHOverlapCallbackPod* selfPod, uint boundsIndex) + { + byte ret = PxBVHOverlapCallbackReportHitMutNative(selfPod, boundsIndex); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxBVHTraversalCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBVHTraversalCallbackDeleteNative(PhysxPxBVHTraversalCallbackPod* selfPod); + + public static void PxBVHTraversalCallbackDelete( PhysxPxBVHTraversalCallbackPod* selfPod) + { + PxBVHTraversalCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBVHTraversalCallback_visitNode_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVHTraversalCallbackVisitNodeMutNative(PhysxPxBVHTraversalCallbackPod* selfPod, PhysxPxBounds3Pod* boundsPod); + + public static bool PxBVHTraversalCallbackVisitNodeMut( PhysxPxBVHTraversalCallbackPod* selfPod, PhysxPxBounds3Pod* boundsPod) + { + byte ret = PxBVHTraversalCallbackVisitNodeMutNative(selfPod, boundsPod); + return ret != 0; + } + + public static bool PxBVHTraversalCallbackVisitNodeMut( PhysxPxBVHTraversalCallbackPod* selfPod, ref PhysxPxBounds3Pod boundsPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + byte ret = PxBVHTraversalCallbackVisitNodeMutNative(selfPod, (PhysxPxBounds3Pod*)pboundsPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBVHTraversalCallback_reportLeaf_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVHTraversalCallbackReportLeafMutNative(PhysxPxBVHTraversalCallbackPod* selfPod, uint nbPrims, uint* prims); + + public static bool PxBVHTraversalCallbackReportLeafMut( PhysxPxBVHTraversalCallbackPod* selfPod, uint nbPrims, uint* prims) + { + byte ret = PxBVHTraversalCallbackReportLeafMutNative(selfPod, nbPrims, prims); + return ret != 0; + } + + public static bool PxBVHTraversalCallbackReportLeafMut( PhysxPxBVHTraversalCallbackPod* selfPod, uint nbPrims, ref uint prims) + { + fixed (uint* pprims = &prims) + { + byte ret = PxBVHTraversalCallbackReportLeafMutNative(selfPod, nbPrims, (uint*)pprims); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_raycast")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVHRaycastNative(PhysxPxBVHPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod); + + public static bool PxBVHRaycast( PhysxPxBVHPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + byte ret = PxBVHRaycastNative(selfPod, originPod, unitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + + public static bool PxBVHRaycast( PhysxPxBVHPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + byte ret = PxBVHRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHRaycast( PhysxPxBVHPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxBVHRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHRaycast( PhysxPxBVHPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxBVHRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHRaycast( PhysxPxBVHPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHRaycastNative(selfPod, originPod, unitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHRaycast( PhysxPxBVHPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHRaycast( PhysxPxBVHPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHRaycast( PhysxPxBVHPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_sweep")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVHSweepNative(PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod); + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + byte ret = PxBVHSweepNative(selfPod, geomPod, posePod, unitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + byte ret = PxBVHSweepNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, posePod, unitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxBVHSweepNative(selfPod, geomPod, (PhysxPxTransformPod*)pposePod, unitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxBVHSweepNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, unitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxBVHSweepNative(selfPod, geomPod, posePod, (PhysxPxVec3Pod*)punitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxBVHSweepNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, posePod, (PhysxPxVec3Pod*)punitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxBVHSweepNative(selfPod, geomPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxBVHRaycastCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxBVHSweepNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, maxDist, cbPod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHSweepNative(selfPod, geomPod, posePod, unitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHSweepNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, posePod, unitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHSweepNative(selfPod, geomPod, (PhysxPxTransformPod*)pposePod, unitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHSweepNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, unitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHSweepNative(selfPod, geomPod, posePod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHSweepNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, posePod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHSweepNative(selfPod, geomPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxBVHSweep( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxBVHRaycastCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxBVHRaycastCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHSweepNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxBVHRaycastCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_overlap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVHOverlapNative(PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, PhysxPxBVHOverlapCallbackPod* cbPod, uint queryflagsPod); + + public static bool PxBVHOverlap( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, PhysxPxBVHOverlapCallbackPod* cbPod, uint queryflagsPod) + { + byte ret = PxBVHOverlapNative(selfPod, geomPod, posePod, cbPod, queryflagsPod); + return ret != 0; + } + + public static bool PxBVHOverlap( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, PhysxPxBVHOverlapCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + byte ret = PxBVHOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, posePod, cbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHOverlap( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, PhysxPxBVHOverlapCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxBVHOverlapNative(selfPod, geomPod, (PhysxPxTransformPod*)pposePod, cbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHOverlap( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, PhysxPxBVHOverlapCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxBVHOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, cbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHOverlap( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, ref PhysxPxBVHOverlapCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxBVHOverlapCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHOverlapNative(selfPod, geomPod, posePod, (PhysxPxBVHOverlapCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHOverlap( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, ref PhysxPxBVHOverlapCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxBVHOverlapCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, posePod, (PhysxPxBVHOverlapCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHOverlap( PhysxPxBVHPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, ref PhysxPxBVHOverlapCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxBVHOverlapCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHOverlapNative(selfPod, geomPod, (PhysxPxTransformPod*)pposePod, (PhysxPxBVHOverlapCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxBVHOverlap( PhysxPxBVHPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, ref PhysxPxBVHOverlapCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxBVHOverlapCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, (PhysxPxBVHOverlapCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_cull")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVHCullNative(PhysxPxBVHPod* selfPod, uint nbPlanes, PhysxPxPlanePod* planesPod, PhysxPxBVHOverlapCallbackPod* cbPod, uint queryflagsPod); + + public static bool PxBVHCull( PhysxPxBVHPod* selfPod, uint nbPlanes, PhysxPxPlanePod* planesPod, PhysxPxBVHOverlapCallbackPod* cbPod, uint queryflagsPod) + { + byte ret = PxBVHCullNative(selfPod, nbPlanes, planesPod, cbPod, queryflagsPod); + return ret != 0; + } + + public static bool PxBVHCull( PhysxPxBVHPod* selfPod, uint nbPlanes, ref PhysxPxPlanePod planesPod, PhysxPxBVHOverlapCallbackPod* cbPod, uint queryflagsPod) + { + fixed (PhysxPxPlanePod* pplanesPod = &planesPod) + { + byte ret = PxBVHCullNative(selfPod, nbPlanes, (PhysxPxPlanePod*)pplanesPod, cbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHCull( PhysxPxBVHPod* selfPod, uint nbPlanes, PhysxPxPlanePod* planesPod, ref PhysxPxBVHOverlapCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxBVHOverlapCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHCullNative(selfPod, nbPlanes, planesPod, (PhysxPxBVHOverlapCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxBVHCull( PhysxPxBVHPod* selfPod, uint nbPlanes, ref PhysxPxPlanePod planesPod, ref PhysxPxBVHOverlapCallbackPod cbPod, uint queryflagsPod) + { + fixed (PhysxPxPlanePod* pplanesPod = &planesPod) + { + fixed (PhysxPxBVHOverlapCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHCullNative(selfPod, nbPlanes, (PhysxPxPlanePod*)pplanesPod, (PhysxPxBVHOverlapCallbackPod*)pcbPod, queryflagsPod); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_getNbBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxBVHGetNbBoundsNative(PhysxPxBVHPod* selfPod); + + public static uint PxBVHGetNbBounds( PhysxPxBVHPod* selfPod) + { + uint ret = PxBVHGetNbBoundsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_getBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod* PxBVHGetBoundsNative(PhysxPxBVHPod* selfPod); + + public static PhysxPxBounds3Pod* PxBVHGetBounds( PhysxPxBVHPod* selfPod) + { + PhysxPxBounds3Pod* ret = PxBVHGetBoundsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_getBoundsForModification_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod* PxBVHGetBoundsForModificationMutNative(PhysxPxBVHPod* selfPod); + + public static PhysxPxBounds3Pod* PxBVHGetBoundsForModificationMut( PhysxPxBVHPod* selfPod) + { + PhysxPxBounds3Pod* ret = PxBVHGetBoundsForModificationMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_refit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBVHRefitMutNative(PhysxPxBVHPod* selfPod); + + public static void PxBVHRefitMut( PhysxPxBVHPod* selfPod) + { + PxBVHRefitMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_updateBounds_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVHUpdateBoundsMutNative(PhysxPxBVHPod* selfPod, uint boundsIndex, PhysxPxBounds3Pod* newboundsPod); + + public static bool PxBVHUpdateBoundsMut( PhysxPxBVHPod* selfPod, uint boundsIndex, PhysxPxBounds3Pod* newboundsPod) + { + byte ret = PxBVHUpdateBoundsMutNative(selfPod, boundsIndex, newboundsPod); + return ret != 0; + } + + public static bool PxBVHUpdateBoundsMut( PhysxPxBVHPod* selfPod, uint boundsIndex, ref PhysxPxBounds3Pod newboundsPod) + { + fixed (PhysxPxBounds3Pod* pnewboundsPod = &newboundsPod) + { + byte ret = PxBVHUpdateBoundsMutNative(selfPod, boundsIndex, (PhysxPxBounds3Pod*)pnewboundsPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_partialRefit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBVHPartialRefitMutNative(PhysxPxBVHPod* selfPod); + + public static void PxBVHPartialRefitMut( PhysxPxBVHPod* selfPod) + { + PxBVHPartialRefitMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_traverse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVHTraverseNative(PhysxPxBVHPod* selfPod, PhysxPxBVHTraversalCallbackPod* cbPod); + + public static bool PxBVHTraverse( PhysxPxBVHPod* selfPod, PhysxPxBVHTraversalCallbackPod* cbPod) + { + byte ret = PxBVHTraverseNative(selfPod, cbPod); + return ret != 0; + } + + public static bool PxBVHTraverse( PhysxPxBVHPod* selfPod, ref PhysxPxBVHTraversalCallbackPod cbPod) + { + fixed (PhysxPxBVHTraversalCallbackPod* pcbPod = &cbPod) + { + byte ret = PxBVHTraverseNative(selfPod, (PhysxPxBVHTraversalCallbackPod*)pcbPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBVH_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxBVHGetConcreteTypeNameNative(PhysxPxBVHPod* selfPod); + + public static byte* PxBVHGetConcreteTypeName( PhysxPxBVHPod* selfPod) + { + byte* ret = PxBVHGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxBVHGetConcreteTypeNameS( PhysxPxBVHPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxBVHGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleGeometry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCapsuleGeometryPod PxCapsuleGeometryNewNative(float radius, float halfheight); + + public static PhysxPxCapsuleGeometryPod PxCapsuleGeometryNew( float radius, float halfheight) + { + PhysxPxCapsuleGeometryPod ret = PxCapsuleGeometryNewNative(radius, halfheight); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleGeometry_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCapsuleGeometryIsValidNative(PhysxPxCapsuleGeometryPod* selfPod); + + public static bool PxCapsuleGeometryIsValid( PhysxPxCapsuleGeometryPod* selfPod) + { + byte ret = PxCapsuleGeometryIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMesh_getNbVertices")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxConvexMeshGetNbVerticesNative(PhysxPxConvexMeshPod* selfPod); + + public static uint PxConvexMeshGetNbVertices( PhysxPxConvexMeshPod* selfPod) + { + uint ret = PxConvexMeshGetNbVerticesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMesh_getVertices")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod* PxConvexMeshGetVerticesNative(PhysxPxConvexMeshPod* selfPod); + + public static PhysxPxVec3Pod* PxConvexMeshGetVertices( PhysxPxConvexMeshPod* selfPod) + { + PhysxPxVec3Pod* ret = PxConvexMeshGetVerticesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMesh_getIndexBuffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxConvexMeshGetIndexBufferNative(PhysxPxConvexMeshPod* selfPod); + + public static byte* PxConvexMeshGetIndexBuffer( PhysxPxConvexMeshPod* selfPod) + { + byte* ret = PxConvexMeshGetIndexBufferNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMesh_getNbPolygons")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxConvexMeshGetNbPolygonsNative(PhysxPxConvexMeshPod* selfPod); + + public static uint PxConvexMeshGetNbPolygons( PhysxPxConvexMeshPod* selfPod) + { + uint ret = PxConvexMeshGetNbPolygonsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMesh_getPolygonData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxConvexMeshGetPolygonDataNative(PhysxPxConvexMeshPod* selfPod, uint index, PhysxPxHullPolygonPod* dataPod); + + public static bool PxConvexMeshGetPolygonData( PhysxPxConvexMeshPod* selfPod, uint index, PhysxPxHullPolygonPod* dataPod) + { + byte ret = PxConvexMeshGetPolygonDataNative(selfPod, index, dataPod); + return ret != 0; + } + + public static bool PxConvexMeshGetPolygonData( PhysxPxConvexMeshPod* selfPod, uint index, ref PhysxPxHullPolygonPod dataPod) + { + fixed (PhysxPxHullPolygonPod* pdataPod = &dataPod) + { + byte ret = PxConvexMeshGetPolygonDataNative(selfPod, index, (PhysxPxHullPolygonPod*)pdataPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMesh_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConvexMeshReleaseMutNative(PhysxPxConvexMeshPod* selfPod); + + public static void PxConvexMeshReleaseMut( PhysxPxConvexMeshPod* selfPod) + { + PxConvexMeshReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMesh_getMassInformation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConvexMeshGetMassInformationNative(PhysxPxConvexMeshPod* selfPod, float* massPod, PhysxPxMat33Pod* localinertiaPod, PhysxPxVec3Pod* localcenterofmassPod); + + public static void PxConvexMeshGetMassInformation( PhysxPxConvexMeshPod* selfPod, float* massPod, PhysxPxMat33Pod* localinertiaPod, PhysxPxVec3Pod* localcenterofmassPod) + { + PxConvexMeshGetMassInformationNative(selfPod, massPod, localinertiaPod, localcenterofmassPod); + } + + public static void PxConvexMeshGetMassInformation( PhysxPxConvexMeshPod* selfPod, ref float massPod, PhysxPxMat33Pod* localinertiaPod, PhysxPxVec3Pod* localcenterofmassPod) + { + fixed (float* pmassPod = &massPod) + { + PxConvexMeshGetMassInformationNative(selfPod, (float*)pmassPod, localinertiaPod, localcenterofmassPod); + } + } + + public static void PxConvexMeshGetMassInformation( PhysxPxConvexMeshPod* selfPod, float* massPod, ref PhysxPxMat33Pod localinertiaPod, PhysxPxVec3Pod* localcenterofmassPod) + { + fixed (PhysxPxMat33Pod* plocalinertiaPod = &localinertiaPod) + { + PxConvexMeshGetMassInformationNative(selfPod, massPod, (PhysxPxMat33Pod*)plocalinertiaPod, localcenterofmassPod); + } + } + + public static void PxConvexMeshGetMassInformation( PhysxPxConvexMeshPod* selfPod, ref float massPod, ref PhysxPxMat33Pod localinertiaPod, PhysxPxVec3Pod* localcenterofmassPod) + { + fixed (float* pmassPod = &massPod) + { + fixed (PhysxPxMat33Pod* plocalinertiaPod = &localinertiaPod) + { + PxConvexMeshGetMassInformationNative(selfPod, (float*)pmassPod, (PhysxPxMat33Pod*)plocalinertiaPod, localcenterofmassPod); + } + } + } + + public static void PxConvexMeshGetMassInformation( PhysxPxConvexMeshPod* selfPod, float* massPod, PhysxPxMat33Pod* localinertiaPod, ref PhysxPxVec3Pod localcenterofmassPod) + { + fixed (PhysxPxVec3Pod* plocalcenterofmassPod = &localcenterofmassPod) + { + PxConvexMeshGetMassInformationNative(selfPod, massPod, localinertiaPod, (PhysxPxVec3Pod*)plocalcenterofmassPod); + } + } + + public static void PxConvexMeshGetMassInformation( PhysxPxConvexMeshPod* selfPod, ref float massPod, PhysxPxMat33Pod* localinertiaPod, ref PhysxPxVec3Pod localcenterofmassPod) + { + fixed (float* pmassPod = &massPod) + { + fixed (PhysxPxVec3Pod* plocalcenterofmassPod = &localcenterofmassPod) + { + PxConvexMeshGetMassInformationNative(selfPod, (float*)pmassPod, localinertiaPod, (PhysxPxVec3Pod*)plocalcenterofmassPod); + } + } + } + + public static void PxConvexMeshGetMassInformation( PhysxPxConvexMeshPod* selfPod, float* massPod, ref PhysxPxMat33Pod localinertiaPod, ref PhysxPxVec3Pod localcenterofmassPod) + { + fixed (PhysxPxMat33Pod* plocalinertiaPod = &localinertiaPod) + { + fixed (PhysxPxVec3Pod* plocalcenterofmassPod = &localcenterofmassPod) + { + PxConvexMeshGetMassInformationNative(selfPod, massPod, (PhysxPxMat33Pod*)plocalinertiaPod, (PhysxPxVec3Pod*)plocalcenterofmassPod); + } + } + } + + public static void PxConvexMeshGetMassInformation( PhysxPxConvexMeshPod* selfPod, ref float massPod, ref PhysxPxMat33Pod localinertiaPod, ref PhysxPxVec3Pod localcenterofmassPod) + { + fixed (float* pmassPod = &massPod) + { + fixed (PhysxPxMat33Pod* plocalinertiaPod = &localinertiaPod) + { + fixed (PhysxPxVec3Pod* plocalcenterofmassPod = &localcenterofmassPod) + { + PxConvexMeshGetMassInformationNative(selfPod, (float*)pmassPod, (PhysxPxMat33Pod*)plocalinertiaPod, (PhysxPxVec3Pod*)plocalcenterofmassPod); + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMesh_getLocalBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxConvexMeshGetLocalBoundsNative(PhysxPxConvexMeshPod* selfPod); + + public static PhysxPxBounds3Pod PxConvexMeshGetLocalBounds( PhysxPxConvexMeshPod* selfPod) + { + PhysxPxBounds3Pod ret = PxConvexMeshGetLocalBoundsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMesh_getSDF")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float* PxConvexMeshGetSDFNative(PhysxPxConvexMeshPod* selfPod); + + public static float* PxConvexMeshGetSDF( PhysxPxConvexMeshPod* selfPod) + { + float* ret = PxConvexMeshGetSDFNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMesh_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxConvexMeshGetConcreteTypeNameNative(PhysxPxConvexMeshPod* selfPod); + + public static byte* PxConvexMeshGetConcreteTypeName( PhysxPxConvexMeshPod* selfPod) + { + byte* ret = PxConvexMeshGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxConvexMeshGetConcreteTypeNameS( PhysxPxConvexMeshPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxConvexMeshGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMesh_isGpuCompatible")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxConvexMeshIsGpuCompatibleNative(PhysxPxConvexMeshPod* selfPod); + + public static bool PxConvexMeshIsGpuCompatible( PhysxPxConvexMeshPod* selfPod) + { + byte ret = PxConvexMeshIsGpuCompatibleNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshScale_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMeshScalePod PxMeshScaleNewNative(); + + public static PhysxPxMeshScalePod PxMeshScaleNew() + { + PhysxPxMeshScalePod ret = PxMeshScaleNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshScale_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMeshScalePod PxMeshScaleNew1Native(float r); + + public static PhysxPxMeshScalePod PxMeshScaleNew1( float r) + { + PhysxPxMeshScalePod ret = PxMeshScaleNew1Native(r); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshScale_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMeshScalePod PxMeshScaleNew2Native(PhysxPxVec3Pod* sPod); + + public static PhysxPxMeshScalePod PxMeshScaleNew2( PhysxPxVec3Pod* sPod) + { + PhysxPxMeshScalePod ret = PxMeshScaleNew2Native(sPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshScale_new_3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMeshScalePod PxMeshScaleNew3Native(PhysxPxVec3Pod* sPod, PhysxPxQuatPod* rPod); + + public static PhysxPxMeshScalePod PxMeshScaleNew3( PhysxPxVec3Pod* sPod, PhysxPxQuatPod* rPod) + { + PhysxPxMeshScalePod ret = PxMeshScaleNew3Native(sPod, rPod); + return ret; + } + + public static PhysxPxMeshScalePod PxMeshScaleNew3( PhysxPxVec3Pod* sPod, ref PhysxPxQuatPod rPod) + { + fixed (PhysxPxQuatPod* prPod = &rPod) + { + PhysxPxMeshScalePod ret = PxMeshScaleNew3Native(sPod, (PhysxPxQuatPod*)prPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMeshScale_isIdentity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxMeshScaleIsIdentityNative(PhysxPxMeshScalePod* selfPod); + + public static bool PxMeshScaleIsIdentity( PhysxPxMeshScalePod* selfPod) + { + byte ret = PxMeshScaleIsIdentityNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshScale_getInverse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMeshScalePod PxMeshScaleGetInverseNative(PhysxPxMeshScalePod* selfPod); + + public static PhysxPxMeshScalePod PxMeshScaleGetInverse( PhysxPxMeshScalePod* selfPod) + { + PhysxPxMeshScalePod ret = PxMeshScaleGetInverseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshScale_toMat33")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMeshScaleToMat33Native(PhysxPxMeshScalePod* selfPod); + + public static PhysxPxMat33Pod PxMeshScaleToMat33( PhysxPxMeshScalePod* selfPod) + { + PhysxPxMat33Pod ret = PxMeshScaleToMat33Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshScale_hasNegativeDeterminant")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxMeshScaleHasNegativeDeterminantNative(PhysxPxMeshScalePod* selfPod); + + public static bool PxMeshScaleHasNegativeDeterminant( PhysxPxMeshScalePod* selfPod) + { + byte ret = PxMeshScaleHasNegativeDeterminantNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshScale_transform")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxMeshScaleTransformNative(PhysxPxMeshScalePod* selfPod, PhysxPxVec3Pod* vPod); + + public static PhysxPxVec3Pod PxMeshScaleTransform( PhysxPxMeshScalePod* selfPod, PhysxPxVec3Pod* vPod) + { + PhysxPxVec3Pod ret = PxMeshScaleTransformNative(selfPod, vPod); + return ret; + } + + public static PhysxPxVec3Pod PxMeshScaleTransform( PhysxPxMeshScalePod* selfPod, ref PhysxPxVec3Pod vPod) + { + fixed (PhysxPxVec3Pod* pvPod = &vPod) + { + PhysxPxVec3Pod ret = PxMeshScaleTransformNative(selfPod, (PhysxPxVec3Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMeshScale_isValidForTriangleMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxMeshScaleIsValidForTriangleMeshNative(PhysxPxMeshScalePod* selfPod); + + public static bool PxMeshScaleIsValidForTriangleMesh( PhysxPxMeshScalePod* selfPod) + { + byte ret = PxMeshScaleIsValidForTriangleMeshNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshScale_isValidForConvexMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxMeshScaleIsValidForConvexMeshNative(PhysxPxMeshScalePod* selfPod); + + public static bool PxMeshScaleIsValidForConvexMesh( PhysxPxMeshScalePod* selfPod) + { + byte ret = PxMeshScaleIsValidForConvexMeshNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMeshGeometry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConvexMeshGeometryPod PxConvexMeshGeometryNewNative(PhysxPxConvexMeshPod* meshPod, PhysxPxMeshScalePod* scalingPod, byte flagsPod); + + public static PhysxPxConvexMeshGeometryPod PxConvexMeshGeometryNew( PhysxPxConvexMeshPod* meshPod, PhysxPxMeshScalePod* scalingPod, byte flagsPod) + { + PhysxPxConvexMeshGeometryPod ret = PxConvexMeshGeometryNewNative(meshPod, scalingPod, flagsPod); + return ret; + } + + public static PhysxPxConvexMeshGeometryPod PxConvexMeshGeometryNew( PhysxPxConvexMeshPod* meshPod, ref PhysxPxMeshScalePod scalingPod, byte flagsPod) + { + fixed (PhysxPxMeshScalePod* pscalingPod = &scalingPod) + { + PhysxPxConvexMeshGeometryPod ret = PxConvexMeshGeometryNewNative(meshPod, (PhysxPxMeshScalePod*)pscalingPod, flagsPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMeshGeometry_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxConvexMeshGeometryIsValidNative(PhysxPxConvexMeshGeometryPod* selfPod); + + public static bool PxConvexMeshGeometryIsValid( PhysxPxConvexMeshGeometryPod* selfPod) + { + byte ret = PxConvexMeshGeometryIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxSphereGeometry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSphereGeometryPod PxSphereGeometryNewNative(float ir); + + public static PhysxPxSphereGeometryPod PxSphereGeometryNew( float ir) + { + PhysxPxSphereGeometryPod ret = PxSphereGeometryNewNative(ir); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSphereGeometry_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSphereGeometryIsValidNative(PhysxPxSphereGeometryPod* selfPod); + + public static bool PxSphereGeometryIsValid( PhysxPxSphereGeometryPod* selfPod) + { + byte ret = PxSphereGeometryIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxPlaneGeometry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPlaneGeometryPod PxPlaneGeometryNewNative(); + + public static PhysxPxPlaneGeometryPod PxPlaneGeometryNew() + { + PhysxPxPlaneGeometryPod ret = PxPlaneGeometryNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPlaneGeometry_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxPlaneGeometryIsValidNative(PhysxPxPlaneGeometryPod* selfPod); + + public static bool PxPlaneGeometryIsValid( PhysxPxPlaneGeometryPod* selfPod) + { + byte ret = PxPlaneGeometryIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMeshGeometry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTriangleMeshGeometryPod PxTriangleMeshGeometryNewNative(PhysxPxTriangleMeshPod* meshPod, PhysxPxMeshScalePod* scalingPod, byte flagsPod); + + public static PhysxPxTriangleMeshGeometryPod PxTriangleMeshGeometryNew( PhysxPxTriangleMeshPod* meshPod, PhysxPxMeshScalePod* scalingPod, byte flagsPod) + { + PhysxPxTriangleMeshGeometryPod ret = PxTriangleMeshGeometryNewNative(meshPod, scalingPod, flagsPod); + return ret; + } + + public static PhysxPxTriangleMeshGeometryPod PxTriangleMeshGeometryNew( PhysxPxTriangleMeshPod* meshPod, ref PhysxPxMeshScalePod scalingPod, byte flagsPod) + { + fixed (PhysxPxMeshScalePod* pscalingPod = &scalingPod) + { + PhysxPxTriangleMeshGeometryPod ret = PxTriangleMeshGeometryNewNative(meshPod, (PhysxPxMeshScalePod*)pscalingPod, flagsPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMeshGeometry_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTriangleMeshGeometryIsValidNative(PhysxPxTriangleMeshGeometryPod* selfPod); + + public static bool PxTriangleMeshGeometryIsValid( PhysxPxTriangleMeshGeometryPod* selfPod) + { + byte ret = PxTriangleMeshGeometryIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightFieldGeometry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxHeightFieldGeometryPod PxHeightFieldGeometryNewNative(PhysxPxHeightFieldPod* hfPod, byte flagsPod, float heightscale, float rowscale, float columnscale); + + public static PhysxPxHeightFieldGeometryPod PxHeightFieldGeometryNew( PhysxPxHeightFieldPod* hfPod, byte flagsPod, float heightscale, float rowscale, float columnscale) + { + PhysxPxHeightFieldGeometryPod ret = PxHeightFieldGeometryNewNative(hfPod, flagsPod, heightscale, rowscale, columnscale); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightFieldGeometry_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxHeightFieldGeometryIsValidNative(PhysxPxHeightFieldGeometryPod* selfPod); + + public static bool PxHeightFieldGeometryIsValid( PhysxPxHeightFieldGeometryPod* selfPod) + { + byte ret = PxHeightFieldGeometryIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxParticleSystemGeometry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxParticleSystemGeometryPod PxParticleSystemGeometryNewNative(); + + public static PhysxPxParticleSystemGeometryPod PxParticleSystemGeometryNew() + { + PhysxPxParticleSystemGeometryPod ret = PxParticleSystemGeometryNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxParticleSystemGeometry_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxParticleSystemGeometryIsValidNative(PhysxPxParticleSystemGeometryPod* selfPod); + + public static bool PxParticleSystemGeometryIsValid( PhysxPxParticleSystemGeometryPod* selfPod) + { + byte ret = PxParticleSystemGeometryIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxHairSystemGeometry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxHairSystemGeometryPod PxHairSystemGeometryNewNative(); + + public static PhysxPxHairSystemGeometryPod PxHairSystemGeometryNew() + { + PhysxPxHairSystemGeometryPod ret = PxHairSystemGeometryNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHairSystemGeometry_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxHairSystemGeometryIsValidNative(PhysxPxHairSystemGeometryPod* selfPod); + + public static bool PxHairSystemGeometryIsValid( PhysxPxHairSystemGeometryPod* selfPod) + { + byte ret = PxHairSystemGeometryIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMeshGeometry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshGeometryPod PxTetrahedronMeshGeometryNewNative(PhysxPxTetrahedronMeshPod* meshPod); + + public static PhysxPxTetrahedronMeshGeometryPod PxTetrahedronMeshGeometryNew( PhysxPxTetrahedronMeshPod* meshPod) + { + PhysxPxTetrahedronMeshGeometryPod ret = PxTetrahedronMeshGeometryNewNative(meshPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMeshGeometry_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTetrahedronMeshGeometryIsValidNative(PhysxPxTetrahedronMeshGeometryPod* selfPod); + + public static bool PxTetrahedronMeshGeometryIsValid( PhysxPxTetrahedronMeshGeometryPod* selfPod) + { + byte ret = PxTetrahedronMeshGeometryIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxQueryHit_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQueryHitPod PxQueryHitNewNative(); + + public static PhysxPxQueryHitPod PxQueryHitNew() + { + PhysxPxQueryHitPod ret = PxQueryHitNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxLocationHit_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxLocationHitPod PxLocationHitNewNative(); + + public static PhysxPxLocationHitPod PxLocationHitNew() + { + PhysxPxLocationHitPod ret = PxLocationHitNewNative(); + return ret; + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.004.cs b/Hexa.NET.PhysX/Generated/Functions.004.cs new file mode 100644 index 0000000..ca9f365 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.004.cs @@ -0,0 +1,5031 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + [LibraryImport(LibName, EntryPoint = "PxLocationHit_hadInitialOverlap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxLocationHitHadInitialOverlapNative(PhysxPxLocationHitPod* selfPod); + + public static bool PxLocationHitHadInitialOverlap( PhysxPxLocationHitPod* selfPod) + { + byte ret = PxLocationHitHadInitialOverlapNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxGeomRaycastHit_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGeomRaycastHitPod PxGeomRaycastHitNewNative(); + + public static PhysxPxGeomRaycastHitPod PxGeomRaycastHitNew() + { + PhysxPxGeomRaycastHitPod ret = PxGeomRaycastHitNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeomOverlapHit_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGeomOverlapHitPod PxGeomOverlapHitNewNative(); + + public static PhysxPxGeomOverlapHitPod PxGeomOverlapHitNew() + { + PhysxPxGeomOverlapHitPod ret = PxGeomOverlapHitNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeomSweepHit_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGeomSweepHitPod PxGeomSweepHitNewNative(); + + public static PhysxPxGeomSweepHitPod PxGeomSweepHitNew() + { + PhysxPxGeomSweepHitPod ret = PxGeomSweepHitNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeomIndexPair_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGeomIndexPairPod PxGeomIndexPairNewNative(); + + public static PhysxPxGeomIndexPairPod PxGeomIndexPairNew() + { + PhysxPxGeomIndexPairPod ret = PxGeomIndexPairNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeomIndexPair_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGeomIndexPairPod PxGeomIndexPairNew1Native(uint id0, uint id1); + + public static PhysxPxGeomIndexPairPod PxGeomIndexPairNew1( uint id0, uint id1) + { + PhysxPxGeomIndexPairPod ret = PxGeomIndexPairNew1Native(id0, id1); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCustomGeometry_getUniqueID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxCustomGeometryGetUniqueIDNative(); + + public static uint PhysPxCustomGeometryGetUniqueID() + { + uint ret = PhysPxCustomGeometryGetUniqueIDNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometryType_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCustomGeometryTypePod PxCustomGeometryTypeNewNative(); + + public static PhysxPxCustomGeometryTypePod PxCustomGeometryTypeNew() + { + PhysxPxCustomGeometryTypePod ret = PxCustomGeometryTypeNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometryType_INVALID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCustomGeometryTypePod PxCustomGeometryTypeINVALIDNative(); + + public static PhysxPxCustomGeometryTypePod PxCustomGeometryTypeINVALID() + { + PhysxPxCustomGeometryTypePod ret = PxCustomGeometryTypeINVALIDNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometryCallbacks_getCustomType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCustomGeometryTypePod PxCustomGeometryCallbacksGetCustomTypeNative(PhysxPxCustomGeometryCallbacksPod* selfPod); + + public static PhysxPxCustomGeometryTypePod PxCustomGeometryCallbacksGetCustomType( PhysxPxCustomGeometryCallbacksPod* selfPod) + { + PhysxPxCustomGeometryTypePod ret = PxCustomGeometryCallbacksGetCustomTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometryCallbacks_getLocalBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxCustomGeometryCallbacksGetLocalBoundsNative(PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geometryPod); + + public static PhysxPxBounds3Pod PxCustomGeometryCallbacksGetLocalBounds( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geometryPod) + { + PhysxPxBounds3Pod ret = PxCustomGeometryCallbacksGetLocalBoundsNative(selfPod, geometryPod); + return ret; + } + + public static PhysxPxBounds3Pod PxCustomGeometryCallbacksGetLocalBounds( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geometryPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxBounds3Pod ret = PxCustomGeometryCallbacksGetLocalBoundsNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometryCallbacks_raycast")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxCustomGeometryCallbacksRaycastNative(PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod); + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, threadcontextPod); + return ret; + } + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + } + + public static uint PxCustomGeometryCallbacksRaycast( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxCustomGeometryCallbacksRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometryCallbacks_overlap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCustomGeometryCallbacksOverlapNative(PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod); + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, pose0Pod, geom1Pod, pose1Pod, threadcontextPod); + return ret != 0; + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksOverlap( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometryCallbacks_sweep")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCustomGeometryCallbacksSweepNative(PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod); + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, threadcontextPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxCustomGeometryCallbacksSweep( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxVec3Pod unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxCustomGeometryCallbacksSweepNative(selfPod, (PhysxPxVec3Pod*)punitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometryCallbacks_computeMassProperties")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCustomGeometryCallbacksComputeMassPropertiesNative(PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxMassPropertiesPod* masspropertiesPod); + + public static void PxCustomGeometryCallbacksComputeMassProperties( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxMassPropertiesPod* masspropertiesPod) + { + PxCustomGeometryCallbacksComputeMassPropertiesNative(selfPod, geometryPod, masspropertiesPod); + } + + public static void PxCustomGeometryCallbacksComputeMassProperties( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMassPropertiesPod* masspropertiesPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PxCustomGeometryCallbacksComputeMassPropertiesNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, masspropertiesPod); + } + } + + public static void PxCustomGeometryCallbacksComputeMassProperties( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMassPropertiesPod masspropertiesPod) + { + fixed (PhysxPxMassPropertiesPod* pmasspropertiesPod = &masspropertiesPod) + { + PxCustomGeometryCallbacksComputeMassPropertiesNative(selfPod, geometryPod, (PhysxPxMassPropertiesPod*)pmasspropertiesPod); + } + } + + public static void PxCustomGeometryCallbacksComputeMassProperties( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMassPropertiesPod masspropertiesPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMassPropertiesPod* pmasspropertiesPod = &masspropertiesPod) + { + PxCustomGeometryCallbacksComputeMassPropertiesNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMassPropertiesPod*)pmasspropertiesPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometryCallbacks_usePersistentContactManifold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCustomGeometryCallbacksUsePersistentContactManifoldNative(PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geometryPod, float* breakingthresholdPod); + + public static bool PxCustomGeometryCallbacksUsePersistentContactManifold( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geometryPod, float* breakingthresholdPod) + { + byte ret = PxCustomGeometryCallbacksUsePersistentContactManifoldNative(selfPod, geometryPod, breakingthresholdPod); + return ret != 0; + } + + public static bool PxCustomGeometryCallbacksUsePersistentContactManifold( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geometryPod, float* breakingthresholdPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + byte ret = PxCustomGeometryCallbacksUsePersistentContactManifoldNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, breakingthresholdPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksUsePersistentContactManifold( PhysxPxCustomGeometryCallbacksPod* selfPod, PhysxPxGeometryPod* geometryPod, ref float breakingthresholdPod) + { + fixed (float* pbreakingthresholdPod = &breakingthresholdPod) + { + byte ret = PxCustomGeometryCallbacksUsePersistentContactManifoldNative(selfPod, geometryPod, (float*)pbreakingthresholdPod); + return ret != 0; + } + } + + public static bool PxCustomGeometryCallbacksUsePersistentContactManifold( PhysxPxCustomGeometryCallbacksPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref float breakingthresholdPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (float* pbreakingthresholdPod = &breakingthresholdPod) + { + byte ret = PxCustomGeometryCallbacksUsePersistentContactManifoldNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (float*)pbreakingthresholdPod); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometryCallbacks_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCustomGeometryCallbacksDeleteNative(PhysxPxCustomGeometryCallbacksPod* selfPod); + + public static void PxCustomGeometryCallbacksDelete( PhysxPxCustomGeometryCallbacksPod* selfPod) + { + PxCustomGeometryCallbacksDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometry_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCustomGeometryPod PxCustomGeometryNewNative(); + + public static PhysxPxCustomGeometryPod PxCustomGeometryNew() + { + PhysxPxCustomGeometryPod ret = PxCustomGeometryNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometry_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCustomGeometryPod PxCustomGeometryNew1Native(PhysxPxCustomGeometryCallbacksPod* CallbacksPod); + + public static PhysxPxCustomGeometryPod PxCustomGeometryNew1( PhysxPxCustomGeometryCallbacksPod* CallbacksPod) + { + PhysxPxCustomGeometryPod ret = PxCustomGeometryNew1Native(CallbacksPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometry_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCustomGeometryIsValidNative(PhysxPxCustomGeometryPod* selfPod); + + public static bool PxCustomGeometryIsValid( PhysxPxCustomGeometryPod* selfPod) + { + byte ret = PxCustomGeometryIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxCustomGeometry_getCustomType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCustomGeometryTypePod PxCustomGeometryGetCustomTypeNative(PhysxPxCustomGeometryPod* selfPod); + + public static PhysxPxCustomGeometryTypePod PxCustomGeometryGetCustomType( PhysxPxCustomGeometryPod* selfPod) + { + PhysxPxCustomGeometryTypePod ret = PxCustomGeometryGetCustomTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_getType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxGeometryHolderGetTypeNative(PhysxPxGeometryHolderPod* selfPod); + + public static int PxGeometryHolderGetType( PhysxPxGeometryHolderPod* selfPod) + { + int ret = PxGeometryHolderGetTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_any_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGeometryPod* PxGeometryHolderAnyMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxGeometryPod* PxGeometryHolderAnyMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxGeometryPod* ret = PxGeometryHolderAnyMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_any")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGeometryPod* PxGeometryHolderAnyNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxGeometryPod* PxGeometryHolderAny( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxGeometryPod* ret = PxGeometryHolderAnyNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_sphere_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSphereGeometryPod* PxGeometryHolderSphereMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxSphereGeometryPod* PxGeometryHolderSphereMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxSphereGeometryPod* ret = PxGeometryHolderSphereMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_sphere")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSphereGeometryPod* PxGeometryHolderSphereNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxSphereGeometryPod* PxGeometryHolderSphere( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxSphereGeometryPod* ret = PxGeometryHolderSphereNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_plane_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPlaneGeometryPod* PxGeometryHolderPlaneMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxPlaneGeometryPod* PxGeometryHolderPlaneMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxPlaneGeometryPod* ret = PxGeometryHolderPlaneMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_plane")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPlaneGeometryPod* PxGeometryHolderPlaneNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxPlaneGeometryPod* PxGeometryHolderPlane( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxPlaneGeometryPod* ret = PxGeometryHolderPlaneNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_capsule_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCapsuleGeometryPod* PxGeometryHolderCapsuleMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxCapsuleGeometryPod* PxGeometryHolderCapsuleMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxCapsuleGeometryPod* ret = PxGeometryHolderCapsuleMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_capsule")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCapsuleGeometryPod* PxGeometryHolderCapsuleNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxCapsuleGeometryPod* PxGeometryHolderCapsule( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxCapsuleGeometryPod* ret = PxGeometryHolderCapsuleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_box_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBoxGeometryPod* PxGeometryHolderBoxMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxBoxGeometryPod* PxGeometryHolderBoxMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxBoxGeometryPod* ret = PxGeometryHolderBoxMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_box")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBoxGeometryPod* PxGeometryHolderBoxNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxBoxGeometryPod* PxGeometryHolderBox( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxBoxGeometryPod* ret = PxGeometryHolderBoxNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_convexMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConvexMeshGeometryPod* PxGeometryHolderConvexMeshMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxConvexMeshGeometryPod* PxGeometryHolderConvexMeshMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxConvexMeshGeometryPod* ret = PxGeometryHolderConvexMeshMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_convexMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConvexMeshGeometryPod* PxGeometryHolderConvexMeshNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxConvexMeshGeometryPod* PxGeometryHolderConvexMesh( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxConvexMeshGeometryPod* ret = PxGeometryHolderConvexMeshNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_tetMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshGeometryPod* PxGeometryHolderTetMeshMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxTetrahedronMeshGeometryPod* PxGeometryHolderTetMeshMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxTetrahedronMeshGeometryPod* ret = PxGeometryHolderTetMeshMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_tetMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshGeometryPod* PxGeometryHolderTetMeshNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxTetrahedronMeshGeometryPod* PxGeometryHolderTetMesh( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxTetrahedronMeshGeometryPod* ret = PxGeometryHolderTetMeshNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_triangleMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTriangleMeshGeometryPod* PxGeometryHolderTriangleMeshMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxTriangleMeshGeometryPod* PxGeometryHolderTriangleMeshMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxTriangleMeshGeometryPod* ret = PxGeometryHolderTriangleMeshMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_triangleMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTriangleMeshGeometryPod* PxGeometryHolderTriangleMeshNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxTriangleMeshGeometryPod* PxGeometryHolderTriangleMesh( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxTriangleMeshGeometryPod* ret = PxGeometryHolderTriangleMeshNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_heightField_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxHeightFieldGeometryPod* PxGeometryHolderHeightFieldMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxHeightFieldGeometryPod* PxGeometryHolderHeightFieldMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxHeightFieldGeometryPod* ret = PxGeometryHolderHeightFieldMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_heightField")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxHeightFieldGeometryPod* PxGeometryHolderHeightFieldNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxHeightFieldGeometryPod* PxGeometryHolderHeightField( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxHeightFieldGeometryPod* ret = PxGeometryHolderHeightFieldNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_particleSystem_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxParticleSystemGeometryPod* PxGeometryHolderParticleSystemMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxParticleSystemGeometryPod* PxGeometryHolderParticleSystemMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxParticleSystemGeometryPod* ret = PxGeometryHolderParticleSystemMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_particleSystem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxParticleSystemGeometryPod* PxGeometryHolderParticleSystemNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxParticleSystemGeometryPod* PxGeometryHolderParticleSystem( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxParticleSystemGeometryPod* ret = PxGeometryHolderParticleSystemNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_hairSystem_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxHairSystemGeometryPod* PxGeometryHolderHairSystemMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxHairSystemGeometryPod* PxGeometryHolderHairSystemMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxHairSystemGeometryPod* ret = PxGeometryHolderHairSystemMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_hairSystem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxHairSystemGeometryPod* PxGeometryHolderHairSystemNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxHairSystemGeometryPod* PxGeometryHolderHairSystem( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxHairSystemGeometryPod* ret = PxGeometryHolderHairSystemNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_custom_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCustomGeometryPod* PxGeometryHolderCustomMutNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxCustomGeometryPod* PxGeometryHolderCustomMut( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxCustomGeometryPod* ret = PxGeometryHolderCustomMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_custom")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCustomGeometryPod* PxGeometryHolderCustomNative(PhysxPxGeometryHolderPod* selfPod); + + public static PhysxPxCustomGeometryPod* PxGeometryHolderCustom( PhysxPxGeometryHolderPod* selfPod) + { + PhysxPxCustomGeometryPod* ret = PxGeometryHolderCustomNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_storeAny_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxGeometryHolderStoreAnyMutNative(PhysxPxGeometryHolderPod* selfPod, PhysxPxGeometryPod* geometryPod); + + public static void PxGeometryHolderStoreAnyMut( PhysxPxGeometryHolderPod* selfPod, PhysxPxGeometryPod* geometryPod) + { + PxGeometryHolderStoreAnyMutNative(selfPod, geometryPod); + } + + public static void PxGeometryHolderStoreAnyMut( PhysxPxGeometryHolderPod* selfPod, ref PhysxPxGeometryPod geometryPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PxGeometryHolderStoreAnyMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGeometryHolderPod PxGeometryHolderNewNative(); + + public static PhysxPxGeometryHolderPod PxGeometryHolderNew() + { + PhysxPxGeometryHolderPod ret = PxGeometryHolderNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryHolder_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGeometryHolderPod PxGeometryHolderNew1Native(PhysxPxGeometryPod* geometryPod); + + public static PhysxPxGeometryHolderPod PxGeometryHolderNew1( PhysxPxGeometryPod* geometryPod) + { + PhysxPxGeometryHolderPod ret = PxGeometryHolderNew1Native(geometryPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryQuery_raycast")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxGeometryQueryRaycastNative(PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod); + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, threadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxGeomRaycastHitPod* rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, rayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, posePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, geomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, unitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + + public static uint PxGeometryQueryRaycast( PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxGeomRaycastHitPod rayhitsPod, uint stride, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomRaycastHitPod* prayhitsPod = &rayhitsPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + uint ret = PxGeometryQueryRaycastNative(originPod, (PhysxPxVec3Pod*)punitdirPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, maxDist, hitflagsPod, maxHits, (PhysxPxGeomRaycastHitPod*)prayhitsPod, stride, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryQuery_overlap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxGeometryQueryOverlapNative(PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod); + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, pose0Pod, geom1Pod, pose1Pod, queryflagsPod, threadcontextPod); + return ret != 0; + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, pose0Pod, geom1Pod, pose1Pod, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryOverlap( PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQueryOverlapNative(geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryQuery_sweep")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxGeometryQuerySweepNative(PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod); + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.005.cs b/Hexa.NET.PhysX/Generated/Functions.005.cs new file mode 100644 index 0000000..ed14088 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.005.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, PhysxPxQueryThreadContextPod* threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, threadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, sweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxGeometryQuerySweep( PhysxPxVec3Pod* unitdirPod, float maxDist, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, float inflation, uint queryflagsPod, ref PhysxPxQueryThreadContextPod threadcontextPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (PhysxPxQueryThreadContextPod* pthreadcontextPod = &threadcontextPod) + { + byte ret = PxGeometryQuerySweepNative(unitdirPod, maxDist, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, inflation, queryflagsPod, (PhysxPxQueryThreadContextPod*)pthreadcontextPod); + return ret != 0; + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryQuery_computePenetration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxGeometryQueryComputePenetrationNative(PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod); + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, geom0Pod, pose0Pod, geom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, geom0Pod, pose0Pod, geom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, PhysxPxTransformPod* pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, pose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, geom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, PhysxPxGeometryPod* geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, geom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, geom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geom0Pod, PhysxPxTransformPod* pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeom0Pod, pose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, geom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxGeometryQueryComputePenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geom0Pod, ref PhysxPxTransformPod pose0Pod, ref PhysxPxGeometryPod geom1Pod, ref PhysxPxTransformPod pose1Pod, uint queryflagsPod) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeom0Pod = &geom0Pod) + { + fixed (PhysxPxTransformPod* ppose0Pod = &pose0Pod) + { + fixed (PhysxPxGeometryPod* pgeom1Pod = &geom1Pod) + { + fixed (PhysxPxTransformPod* ppose1Pod = &pose1Pod) + { + byte ret = PxGeometryQueryComputePenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeom0Pod, (PhysxPxTransformPod*)ppose0Pod, (PhysxPxGeometryPod*)pgeom1Pod, (PhysxPxTransformPod*)ppose1Pod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryQuery_pointDistance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxGeometryQueryPointDistanceNative(PhysxPxVec3Pod* pointPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* closestpointPod, uint* closestIndex, uint queryflagsPod); + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* closestpointPod, uint* closestIndex, uint queryflagsPod) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, geomPod, posePod, closestpointPod, closestIndex, queryflagsPod); + return ret; + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* closestpointPod, uint* closestIndex, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, (PhysxPxGeometryPod*)pgeomPod, posePod, closestpointPod, closestIndex, queryflagsPod); + return ret; + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* closestpointPod, uint* closestIndex, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, geomPod, (PhysxPxTransformPod*)pposePod, closestpointPod, closestIndex, queryflagsPod); + return ret; + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* closestpointPod, uint* closestIndex, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, closestpointPod, closestIndex, queryflagsPod); + return ret; + } + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod closestpointPod, uint* closestIndex, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* pclosestpointPod = &closestpointPod) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, geomPod, posePod, (PhysxPxVec3Pod*)pclosestpointPod, closestIndex, queryflagsPod); + return ret; + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod closestpointPod, uint* closestIndex, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxVec3Pod* pclosestpointPod = &closestpointPod) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, (PhysxPxGeometryPod*)pgeomPod, posePod, (PhysxPxVec3Pod*)pclosestpointPod, closestIndex, queryflagsPod); + return ret; + } + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod closestpointPod, uint* closestIndex, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* pclosestpointPod = &closestpointPod) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, geomPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)pclosestpointPod, closestIndex, queryflagsPod); + return ret; + } + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod closestpointPod, uint* closestIndex, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* pclosestpointPod = &closestpointPod) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)pclosestpointPod, closestIndex, queryflagsPod); + return ret; + } + } + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* closestpointPod, ref uint closestIndex, uint queryflagsPod) + { + fixed (uint* pclosestIndex = &closestIndex) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, geomPod, posePod, closestpointPod, (uint*)pclosestIndex, queryflagsPod); + return ret; + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* closestpointPod, ref uint closestIndex, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (uint* pclosestIndex = &closestIndex) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, (PhysxPxGeometryPod*)pgeomPod, posePod, closestpointPod, (uint*)pclosestIndex, queryflagsPod); + return ret; + } + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* closestpointPod, ref uint closestIndex, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (uint* pclosestIndex = &closestIndex) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, geomPod, (PhysxPxTransformPod*)pposePod, closestpointPod, (uint*)pclosestIndex, queryflagsPod); + return ret; + } + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* closestpointPod, ref uint closestIndex, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (uint* pclosestIndex = &closestIndex) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, closestpointPod, (uint*)pclosestIndex, queryflagsPod); + return ret; + } + } + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod closestpointPod, ref uint closestIndex, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* pclosestpointPod = &closestpointPod) + { + fixed (uint* pclosestIndex = &closestIndex) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, geomPod, posePod, (PhysxPxVec3Pod*)pclosestpointPod, (uint*)pclosestIndex, queryflagsPod); + return ret; + } + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod closestpointPod, ref uint closestIndex, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxVec3Pod* pclosestpointPod = &closestpointPod) + { + fixed (uint* pclosestIndex = &closestIndex) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, (PhysxPxGeometryPod*)pgeomPod, posePod, (PhysxPxVec3Pod*)pclosestpointPod, (uint*)pclosestIndex, queryflagsPod); + return ret; + } + } + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod closestpointPod, ref uint closestIndex, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* pclosestpointPod = &closestpointPod) + { + fixed (uint* pclosestIndex = &closestIndex) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, geomPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)pclosestpointPod, (uint*)pclosestIndex, queryflagsPod); + return ret; + } + } + } + } + + public static float PxGeometryQueryPointDistance( PhysxPxVec3Pod* pointPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod closestpointPod, ref uint closestIndex, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* pclosestpointPod = &closestpointPod) + { + fixed (uint* pclosestIndex = &closestIndex) + { + float ret = PxGeometryQueryPointDistanceNative(pointPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)pclosestpointPod, (uint*)pclosestIndex, queryflagsPod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryQuery_computeGeomBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxGeometryQueryComputeGeomBoundsNative(PhysxPxBounds3Pod* boundsPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float offset, float inflation, uint queryflagsPod); + + public static void PxGeometryQueryComputeGeomBounds( PhysxPxBounds3Pod* boundsPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, float offset, float inflation, uint queryflagsPod) + { + PxGeometryQueryComputeGeomBoundsNative(boundsPod, geomPod, posePod, offset, inflation, queryflagsPod); + } + + public static void PxGeometryQueryComputeGeomBounds( PhysxPxBounds3Pod* boundsPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, float offset, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + PxGeometryQueryComputeGeomBoundsNative(boundsPod, (PhysxPxGeometryPod*)pgeomPod, posePod, offset, inflation, queryflagsPod); + } + } + + public static void PxGeometryQueryComputeGeomBounds( PhysxPxBounds3Pod* boundsPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, float offset, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PxGeometryQueryComputeGeomBoundsNative(boundsPod, geomPod, (PhysxPxTransformPod*)pposePod, offset, inflation, queryflagsPod); + } + } + + public static void PxGeometryQueryComputeGeomBounds( PhysxPxBounds3Pod* boundsPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, float offset, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PxGeometryQueryComputeGeomBoundsNative(boundsPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, offset, inflation, queryflagsPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxGeometryQuery_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxGeometryQueryIsValidNative(PhysxPxGeometryPod* geomPod); + + public static bool PxGeometryQueryIsValid( PhysxPxGeometryPod* geomPod) + { + byte ret = PxGeometryQueryIsValidNative(geomPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightFieldSample_tessFlag")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxHeightFieldSampleTessFlagNative(PhysxPxHeightFieldSamplePod* selfPod); + + public static byte PxHeightFieldSampleTessFlag( PhysxPxHeightFieldSamplePod* selfPod) + { + byte ret = PxHeightFieldSampleTessFlagNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightFieldSample_setTessFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxHeightFieldSampleSetTessFlagMutNative(PhysxPxHeightFieldSamplePod* selfPod); + + public static void PxHeightFieldSampleSetTessFlagMut( PhysxPxHeightFieldSamplePod* selfPod) + { + PxHeightFieldSampleSetTessFlagMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxHeightFieldSample_clearTessFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxHeightFieldSampleClearTessFlagMutNative(PhysxPxHeightFieldSamplePod* selfPod); + + public static void PxHeightFieldSampleClearTessFlagMut( PhysxPxHeightFieldSamplePod* selfPod) + { + PxHeightFieldSampleClearTessFlagMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxHeightFieldReleaseMutNative(PhysxPxHeightFieldPod* selfPod); + + public static void PxHeightFieldReleaseMut( PhysxPxHeightFieldPod* selfPod) + { + PxHeightFieldReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_saveCells")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxHeightFieldSaveCellsNative(PhysxPxHeightFieldPod* selfPod, void* destBuffer, uint destBufferSize); + + public static uint PxHeightFieldSaveCells( PhysxPxHeightFieldPod* selfPod, void* destBuffer, uint destBufferSize) + { + uint ret = PxHeightFieldSaveCellsNative(selfPod, destBuffer, destBufferSize); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_modifySamples_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxHeightFieldModifySamplesMutNative(PhysxPxHeightFieldPod* selfPod, int startCol, int startRow, PhysxPxHeightFieldDescPod* subfielddescPod, byte shrinkBounds); + + public static bool PxHeightFieldModifySamplesMut( PhysxPxHeightFieldPod* selfPod, int startCol, int startRow, PhysxPxHeightFieldDescPod* subfielddescPod, bool shrinkBounds) + { + byte ret = PxHeightFieldModifySamplesMutNative(selfPod, startCol, startRow, subfielddescPod, shrinkBounds ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool PxHeightFieldModifySamplesMut( PhysxPxHeightFieldPod* selfPod, int startCol, int startRow, ref PhysxPxHeightFieldDescPod subfielddescPod, bool shrinkBounds) + { + fixed (PhysxPxHeightFieldDescPod* psubfielddescPod = &subfielddescPod) + { + byte ret = PxHeightFieldModifySamplesMutNative(selfPod, startCol, startRow, (PhysxPxHeightFieldDescPod*)psubfielddescPod, shrinkBounds ? (byte)1 : (byte)0); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getNbRows")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxHeightFieldGetNbRowsNative(PhysxPxHeightFieldPod* selfPod); + + public static uint PxHeightFieldGetNbRows( PhysxPxHeightFieldPod* selfPod) + { + uint ret = PxHeightFieldGetNbRowsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getNbColumns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxHeightFieldGetNbColumnsNative(PhysxPxHeightFieldPod* selfPod); + + public static uint PxHeightFieldGetNbColumns( PhysxPxHeightFieldPod* selfPod) + { + uint ret = PxHeightFieldGetNbColumnsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getFormat")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxHeightFieldGetFormatNative(PhysxPxHeightFieldPod* selfPod); + + public static int PxHeightFieldGetFormat( PhysxPxHeightFieldPod* selfPod) + { + int ret = PxHeightFieldGetFormatNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getSampleStride")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxHeightFieldGetSampleStrideNative(PhysxPxHeightFieldPod* selfPod); + + public static uint PxHeightFieldGetSampleStride( PhysxPxHeightFieldPod* selfPod) + { + uint ret = PxHeightFieldGetSampleStrideNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getConvexEdgeThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxHeightFieldGetConvexEdgeThresholdNative(PhysxPxHeightFieldPod* selfPod); + + public static float PxHeightFieldGetConvexEdgeThreshold( PhysxPxHeightFieldPod* selfPod) + { + float ret = PxHeightFieldGetConvexEdgeThresholdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxHeightFieldGetFlagsNative(PhysxPxHeightFieldPod* selfPod); + + public static ushort PxHeightFieldGetFlags( PhysxPxHeightFieldPod* selfPod) + { + ushort ret = PxHeightFieldGetFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxHeightFieldGetHeightNative(PhysxPxHeightFieldPod* selfPod, float x, float z); + + public static float PxHeightFieldGetHeight( PhysxPxHeightFieldPod* selfPod, float x, float z) + { + float ret = PxHeightFieldGetHeightNative(selfPod, x, z); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getTriangleMaterialIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxHeightFieldGetTriangleMaterialIndexNative(PhysxPxHeightFieldPod* selfPod, uint triangleIndex); + + public static ushort PxHeightFieldGetTriangleMaterialIndex( PhysxPxHeightFieldPod* selfPod, uint triangleIndex) + { + ushort ret = PxHeightFieldGetTriangleMaterialIndexNative(selfPod, triangleIndex); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getTriangleNormal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxHeightFieldGetTriangleNormalNative(PhysxPxHeightFieldPod* selfPod, uint triangleIndex); + + public static PhysxPxVec3Pod PxHeightFieldGetTriangleNormal( PhysxPxHeightFieldPod* selfPod, uint triangleIndex) + { + PhysxPxVec3Pod ret = PxHeightFieldGetTriangleNormalNative(selfPod, triangleIndex); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getSample")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxHeightFieldSamplePod* PxHeightFieldGetSampleNative(PhysxPxHeightFieldPod* selfPod, uint row, uint column); + + public static PhysxPxHeightFieldSamplePod* PxHeightFieldGetSample( PhysxPxHeightFieldPod* selfPod, uint row, uint column) + { + PhysxPxHeightFieldSamplePod* ret = PxHeightFieldGetSampleNative(selfPod, row, column); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getTimestamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxHeightFieldGetTimestampNative(PhysxPxHeightFieldPod* selfPod); + + public static uint PxHeightFieldGetTimestamp( PhysxPxHeightFieldPod* selfPod) + { + uint ret = PxHeightFieldGetTimestampNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightField_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxHeightFieldGetConcreteTypeNameNative(PhysxPxHeightFieldPod* selfPod); + + public static byte* PxHeightFieldGetConcreteTypeName( PhysxPxHeightFieldPod* selfPod) + { + byte* ret = PxHeightFieldGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxHeightFieldGetConcreteTypeNameS( PhysxPxHeightFieldPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxHeightFieldGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightFieldDesc_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxHeightFieldDescPod PxHeightFieldDescNewNative(); + + public static PhysxPxHeightFieldDescPod PxHeightFieldDescNew() + { + PhysxPxHeightFieldDescPod ret = PxHeightFieldDescNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxHeightFieldDesc_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxHeightFieldDescSetToDefaultMutNative(PhysxPxHeightFieldDescPod* selfPod); + + public static void PxHeightFieldDescSetToDefaultMut( PhysxPxHeightFieldDescPod* selfPod) + { + PxHeightFieldDescSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxHeightFieldDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxHeightFieldDescIsValidNative(PhysxPxHeightFieldDescPod* selfPod); + + public static bool PxHeightFieldDescIsValid( PhysxPxHeightFieldDescPod* selfPod) + { + byte ret = PxHeightFieldDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshQuery_getTriangle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMeshQueryGetTriangleNative(PhysxPxTriangleMeshGeometryPod* trigeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, uint* vertexIndices, uint* adjacencyIndices); + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, uint* vertexIndices, uint* adjacencyIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, transformPod, triangleIndex, trianglePod, vertexIndices, adjacencyIndices); + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, uint* vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxMeshQueryGetTriangleNative(trigeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, trianglePod, vertexIndices, adjacencyIndices); + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, uint* vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + PxMeshQueryGetTriangleNative(trigeomPod, transformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, vertexIndices, adjacencyIndices); + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, uint* vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + PxMeshQueryGetTriangleNative(trigeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, vertexIndices, adjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, ref uint vertexIndices, uint* adjacencyIndices) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, transformPod, triangleIndex, trianglePod, (uint*)pvertexIndices, adjacencyIndices); + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, ref uint vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, trianglePod, (uint*)pvertexIndices, adjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, ref uint vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, transformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, (uint*)pvertexIndices, adjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, ref uint vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, (uint*)pvertexIndices, adjacencyIndices); + } + } + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, uint* vertexIndices, ref uint adjacencyIndices) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, transformPod, triangleIndex, trianglePod, vertexIndices, (uint*)padjacencyIndices); + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, uint* vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, trianglePod, vertexIndices, (uint*)padjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, uint* vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, transformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, vertexIndices, (uint*)padjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, uint* vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, vertexIndices, (uint*)padjacencyIndices); + } + } + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, ref uint vertexIndices, ref uint adjacencyIndices) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, transformPod, triangleIndex, trianglePod, (uint*)pvertexIndices, (uint*)padjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, ref uint vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, trianglePod, (uint*)pvertexIndices, (uint*)padjacencyIndices); + } + } + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, ref uint vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, transformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, (uint*)pvertexIndices, (uint*)padjacencyIndices); + } + } + } + } + + public static void PxMeshQueryGetTriangle( PhysxPxTriangleMeshGeometryPod* trigeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, ref uint vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangleNative(trigeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, (uint*)pvertexIndices, (uint*)padjacencyIndices); + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMeshQuery_getTriangle_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMeshQueryGetTriangle1Native(PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, uint* vertexIndices, uint* adjacencyIndices); + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, uint* vertexIndices, uint* adjacencyIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, transformPod, triangleIndex, trianglePod, vertexIndices, adjacencyIndices); + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, uint* vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, trianglePod, vertexIndices, adjacencyIndices); + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, uint* vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, transformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, vertexIndices, adjacencyIndices); + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, uint* vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, vertexIndices, adjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, ref uint vertexIndices, uint* adjacencyIndices) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, transformPod, triangleIndex, trianglePod, (uint*)pvertexIndices, adjacencyIndices); + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, ref uint vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, trianglePod, (uint*)pvertexIndices, adjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, ref uint vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, transformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, (uint*)pvertexIndices, adjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, ref uint vertexIndices, uint* adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, (uint*)pvertexIndices, adjacencyIndices); + } + } + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, uint* vertexIndices, ref uint adjacencyIndices) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, transformPod, triangleIndex, trianglePod, vertexIndices, (uint*)padjacencyIndices); + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, uint* vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, trianglePod, vertexIndices, (uint*)padjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, uint* vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, transformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, vertexIndices, (uint*)padjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, uint* vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, vertexIndices, (uint*)padjacencyIndices); + } + } + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, ref uint vertexIndices, ref uint adjacencyIndices) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, transformPod, triangleIndex, trianglePod, (uint*)pvertexIndices, (uint*)padjacencyIndices); + } + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, PhysxPxTrianglePod* trianglePod, ref uint vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, trianglePod, (uint*)pvertexIndices, (uint*)padjacencyIndices); + } + } + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, ref uint vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, transformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, (uint*)pvertexIndices, (uint*)padjacencyIndices); + } + } + } + } + + public static void PxMeshQueryGetTriangle1( PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod transformPod, uint triangleIndex, ref PhysxPxTrianglePod trianglePod, ref uint vertexIndices, ref uint adjacencyIndices) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxTrianglePod* ptrianglePod = &trianglePod) + { + fixed (uint* pvertexIndices = &vertexIndices) + { + fixed (uint* padjacencyIndices = &adjacencyIndices) + { + PxMeshQueryGetTriangle1Native(hfgeomPod, (PhysxPxTransformPod*)ptransformPod, triangleIndex, (PhysxPxTrianglePod*)ptrianglePod, (uint*)pvertexIndices, (uint*)padjacencyIndices); + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMeshQuery_findOverlapTriangleMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxMeshQueryFindOverlapTriangleMeshNative(PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod); + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, meshgeomPod, meshposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, meshgeomPod, meshposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, meshgeomPod, meshposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, meshgeomPod, meshposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + } + + public static uint PxMeshQueryFindOverlapTriangleMesh( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapTriangleMeshNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMeshQuery_findOverlapHeightField")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxMeshQueryFindOverlapHeightFieldNative(PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod); + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, hfgeomPod, hfposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, hfposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod, uint* results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod, results, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, hfgeomPod, hfposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, hfposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod, ref uint results, uint maxResults, uint startIndex, byte* overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (uint* presults = &results) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod, (uint*)presults, maxResults, startIndex, overflowPod, queryflagsPod); + return ret; + } + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, hfgeomPod, hfposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, hfposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod, uint* results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod, results, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, hfgeomPod, hfposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, hfposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + } + + public static uint PxMeshQueryFindOverlapHeightField( PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod, ref uint results, uint maxResults, uint startIndex, ref byte overflowPod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + fixed (uint* presults = &results) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxMeshQueryFindOverlapHeightFieldNative(geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod, (uint*)presults, maxResults, startIndex, (byte*)poverflowPod, queryflagsPod); + return ret; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMeshQuery_sweep")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxMeshQuerySweepNative(PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, byte doubleSided, uint queryflagsPod); + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, posePod, triangleCount, trianglesPod, sweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, posePod, triangleCount, trianglesPod, sweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, (PhysxPxTransformPod*)pposePod, triangleCount, trianglesPod, sweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, triangleCount, trianglesPod, sweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, posePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, sweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, posePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, sweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, (PhysxPxTransformPod*)pposePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, sweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, sweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, posePod, triangleCount, trianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, posePod, triangleCount, trianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, (PhysxPxTransformPod*)pposePod, triangleCount, trianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, triangleCount, trianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, posePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, posePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, (PhysxPxTransformPod*)pposePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, uint* cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, cachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, posePod, triangleCount, trianglesPod, sweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, posePod, triangleCount, trianglesPod, sweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, (PhysxPxTransformPod*)pposePod, triangleCount, trianglesPod, sweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, triangleCount, trianglesPod, sweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, posePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, sweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, posePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, sweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, (PhysxPxTransformPod*)pposePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, sweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, PhysxPxGeomSweepHitPod* sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, sweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, posePod, triangleCount, trianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, posePod, triangleCount, trianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, (PhysxPxTransformPod*)pposePod, triangleCount, trianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, PhysxPxTrianglePod* trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, triangleCount, trianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, posePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, posePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, geomPod, (PhysxPxTransformPod*)pposePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxMeshQuerySweep( PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod posePod, uint triangleCount, ref PhysxPxTrianglePod trianglesPod, ref PhysxPxGeomSweepHitPod sweephitPod, ushort hitflagsPod, ref uint cachedIndex, float inflation, bool doubleSided, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxTrianglePod* ptrianglesPod = &trianglesPod) + { + fixed (PhysxPxGeomSweepHitPod* psweephitPod = &sweephitPod) + { + fixed (uint* pcachedIndex = &cachedIndex) + { + byte ret = PxMeshQuerySweepNative(unitdirPod, distance, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pposePod, triangleCount, (PhysxPxTrianglePod*)ptrianglesPod, (PhysxPxGeomSweepHitPod*)psweephitPod, hitflagsPod, (uint*)pcachedIndex, inflation, doubleSided ? (byte)1 : (byte)0, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSimpleTriangleMesh_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSimpleTriangleMeshPod PxSimpleTriangleMeshNewNative(); + + public static PhysxPxSimpleTriangleMeshPod PxSimpleTriangleMeshNew() + { + PhysxPxSimpleTriangleMeshPod ret = PxSimpleTriangleMeshNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSimpleTriangleMesh_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSimpleTriangleMeshSetToDefaultMutNative(PhysxPxSimpleTriangleMeshPod* selfPod); + + public static void PxSimpleTriangleMeshSetToDefaultMut( PhysxPxSimpleTriangleMeshPod* selfPod) + { + PxSimpleTriangleMeshSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSimpleTriangleMesh_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSimpleTriangleMeshIsValidNative(PhysxPxSimpleTriangleMeshPod* selfPod); + + public static bool PxSimpleTriangleMeshIsValid( PhysxPxSimpleTriangleMeshPod* selfPod) + { + byte ret = PxSimpleTriangleMeshIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangle_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTrianglePod* PxTriangleNewAllocNative(); + + public static PhysxPxTrianglePod* PxTriangleNewAlloc() + { + PhysxPxTrianglePod* ret = PxTriangleNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangle_new_alloc_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTrianglePod* PxTriangleNewAlloc1Native(PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* p2Pod); + + public static PhysxPxTrianglePod* PxTriangleNewAlloc1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* p2Pod) + { + PhysxPxTrianglePod* ret = PxTriangleNewAlloc1Native(p0Pod, p1Pod, p2Pod); + return ret; + } + + public static PhysxPxTrianglePod* PxTriangleNewAlloc1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, PhysxPxVec3Pod* p2Pod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + PhysxPxTrianglePod* ret = PxTriangleNewAlloc1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, p2Pod); + return ret; + } + } + + public static PhysxPxTrianglePod* PxTriangleNewAlloc1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref PhysxPxVec3Pod p2Pod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + PhysxPxTrianglePod* ret = PxTriangleNewAlloc1Native(p0Pod, p1Pod, (PhysxPxVec3Pod*)pp2Pod); + return ret; + } + } + + public static PhysxPxTrianglePod* PxTriangleNewAlloc1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref PhysxPxVec3Pod p2Pod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + PhysxPxTrianglePod* ret = PxTriangleNewAlloc1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (PhysxPxVec3Pod*)pp2Pod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxTriangle_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTriangleDeleteNative(PhysxPxTrianglePod* selfPod); + + public static void PxTriangleDelete( PhysxPxTrianglePod* selfPod) + { + PxTriangleDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTriangle_normal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTriangleNormalNative(PhysxPxTrianglePod* selfPod, PhysxPxVec3Pod* NormalPod); + + public static void PxTriangleNormal( PhysxPxTrianglePod* selfPod, PhysxPxVec3Pod* NormalPod) + { + PxTriangleNormalNative(selfPod, NormalPod); + } + + public static void PxTriangleNormal( PhysxPxTrianglePod* selfPod, ref PhysxPxVec3Pod NormalPod) + { + fixed (PhysxPxVec3Pod* pNormalPod = &NormalPod) + { + PxTriangleNormalNative(selfPod, (PhysxPxVec3Pod*)pNormalPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxTriangle_denormalizedNormal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTriangleDenormalizedNormalNative(PhysxPxTrianglePod* selfPod, PhysxPxVec3Pod* NormalPod); + + public static void PxTriangleDenormalizedNormal( PhysxPxTrianglePod* selfPod, PhysxPxVec3Pod* NormalPod) + { + PxTriangleDenormalizedNormalNative(selfPod, NormalPod); + } + + public static void PxTriangleDenormalizedNormal( PhysxPxTrianglePod* selfPod, ref PhysxPxVec3Pod NormalPod) + { + fixed (PhysxPxVec3Pod* pNormalPod = &NormalPod) + { + PxTriangleDenormalizedNormalNative(selfPod, (PhysxPxVec3Pod*)pNormalPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxTriangle_area")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxTriangleAreaNative(PhysxPxTrianglePod* selfPod); + + public static float PxTriangleArea( PhysxPxTrianglePod* selfPod) + { + float ret = PxTriangleAreaNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangle_pointFromUV")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxTrianglePointFromUVNative(PhysxPxTrianglePod* selfPod, float u, float v); + + public static PhysxPxVec3Pod PxTrianglePointFromUV( PhysxPxTrianglePod* selfPod, float u, float v) + { + PhysxPxVec3Pod ret = PxTrianglePointFromUVNative(selfPod, u, v); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTrianglePadded_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTrianglePaddedPod* PxTrianglePaddedNewAllocNative(); + + public static PhysxPxTrianglePaddedPod* PxTrianglePaddedNewAlloc() + { + PhysxPxTrianglePaddedPod* ret = PxTrianglePaddedNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTrianglePadded_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTrianglePaddedDeleteNative(PhysxPxTrianglePaddedPod* selfPod); + + public static void PxTrianglePaddedDelete( PhysxPxTrianglePaddedPod* selfPod) + { + PxTrianglePaddedDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getNbVertices")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxTriangleMeshGetNbVerticesNative(PhysxPxTriangleMeshPod* selfPod); + + public static uint PxTriangleMeshGetNbVertices( PhysxPxTriangleMeshPod* selfPod) + { + uint ret = PxTriangleMeshGetNbVerticesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getVertices")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod* PxTriangleMeshGetVerticesNative(PhysxPxTriangleMeshPod* selfPod); + + public static PhysxPxVec3Pod* PxTriangleMeshGetVertices( PhysxPxTriangleMeshPod* selfPod) + { + PhysxPxVec3Pod* ret = PxTriangleMeshGetVerticesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getVerticesForModification_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod* PxTriangleMeshGetVerticesForModificationMutNative(PhysxPxTriangleMeshPod* selfPod); + + public static PhysxPxVec3Pod* PxTriangleMeshGetVerticesForModificationMut( PhysxPxTriangleMeshPod* selfPod) + { + PhysxPxVec3Pod* ret = PxTriangleMeshGetVerticesForModificationMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_refitBVH_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxTriangleMeshRefitBVHMutNative(PhysxPxTriangleMeshPod* selfPod); + + public static PhysxPxBounds3Pod PxTriangleMeshRefitBVHMut( PhysxPxTriangleMeshPod* selfPod) + { + PhysxPxBounds3Pod ret = PxTriangleMeshRefitBVHMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getNbTriangles")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxTriangleMeshGetNbTrianglesNative(PhysxPxTriangleMeshPod* selfPod); + + public static uint PxTriangleMeshGetNbTriangles( PhysxPxTriangleMeshPod* selfPod) + { + uint ret = PxTriangleMeshGetNbTrianglesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getTriangles")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxTriangleMeshGetTrianglesNative(PhysxPxTriangleMeshPod* selfPod); + + public static void* PxTriangleMeshGetTriangles( PhysxPxTriangleMeshPod* selfPod) + { + void* ret = PxTriangleMeshGetTrianglesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getTriangleMeshFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTriangleMeshGetTriangleMeshFlagsNative(PhysxPxTriangleMeshPod* selfPod); + + public static byte PxTriangleMeshGetTriangleMeshFlags( PhysxPxTriangleMeshPod* selfPod) + { + byte ret = PxTriangleMeshGetTriangleMeshFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getTrianglesRemap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint* PxTriangleMeshGetTrianglesRemapNative(PhysxPxTriangleMeshPod* selfPod); + + public static uint* PxTriangleMeshGetTrianglesRemap( PhysxPxTriangleMeshPod* selfPod) + { + uint* ret = PxTriangleMeshGetTrianglesRemapNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTriangleMeshReleaseMutNative(PhysxPxTriangleMeshPod* selfPod); + + public static void PxTriangleMeshReleaseMut( PhysxPxTriangleMeshPod* selfPod) + { + PxTriangleMeshReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getTriangleMaterialIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxTriangleMeshGetTriangleMaterialIndexNative(PhysxPxTriangleMeshPod* selfPod, uint triangleIndex); + + public static ushort PxTriangleMeshGetTriangleMaterialIndex( PhysxPxTriangleMeshPod* selfPod, uint triangleIndex) + { + ushort ret = PxTriangleMeshGetTriangleMaterialIndexNative(selfPod, triangleIndex); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getLocalBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxTriangleMeshGetLocalBoundsNative(PhysxPxTriangleMeshPod* selfPod); + + public static PhysxPxBounds3Pod PxTriangleMeshGetLocalBounds( PhysxPxTriangleMeshPod* selfPod) + { + PhysxPxBounds3Pod ret = PxTriangleMeshGetLocalBoundsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getSDF")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float* PxTriangleMeshGetSDFNative(PhysxPxTriangleMeshPod* selfPod); + + public static float* PxTriangleMeshGetSDF( PhysxPxTriangleMeshPod* selfPod) + { + float* ret = PxTriangleMeshGetSDFNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getSDFDimensions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTriangleMeshGetSDFDimensionsNative(PhysxPxTriangleMeshPod* selfPod, uint* numxPod, uint* numyPod, uint* numzPod); + + public static void PxTriangleMeshGetSDFDimensions( PhysxPxTriangleMeshPod* selfPod, uint* numxPod, uint* numyPod, uint* numzPod) + { + PxTriangleMeshGetSDFDimensionsNative(selfPod, numxPod, numyPod, numzPod); + } + + public static void PxTriangleMeshGetSDFDimensions( PhysxPxTriangleMeshPod* selfPod, ref uint numxPod, uint* numyPod, uint* numzPod) + { + fixed (uint* pnumxPod = &numxPod) + { + PxTriangleMeshGetSDFDimensionsNative(selfPod, (uint*)pnumxPod, numyPod, numzPod); + } + } + + public static void PxTriangleMeshGetSDFDimensions( PhysxPxTriangleMeshPod* selfPod, uint* numxPod, ref uint numyPod, uint* numzPod) + { + fixed (uint* pnumyPod = &numyPod) + { + PxTriangleMeshGetSDFDimensionsNative(selfPod, numxPod, (uint*)pnumyPod, numzPod); + } + } + + public static void PxTriangleMeshGetSDFDimensions( PhysxPxTriangleMeshPod* selfPod, ref uint numxPod, ref uint numyPod, uint* numzPod) + { + fixed (uint* pnumxPod = &numxPod) + { + fixed (uint* pnumyPod = &numyPod) + { + PxTriangleMeshGetSDFDimensionsNative(selfPod, (uint*)pnumxPod, (uint*)pnumyPod, numzPod); + } + } + } + + public static void PxTriangleMeshGetSDFDimensions( PhysxPxTriangleMeshPod* selfPod, uint* numxPod, uint* numyPod, ref uint numzPod) + { + fixed (uint* pnumzPod = &numzPod) + { + PxTriangleMeshGetSDFDimensionsNative(selfPod, numxPod, numyPod, (uint*)pnumzPod); + } + } + + public static void PxTriangleMeshGetSDFDimensions( PhysxPxTriangleMeshPod* selfPod, ref uint numxPod, uint* numyPod, ref uint numzPod) + { + fixed (uint* pnumxPod = &numxPod) + { + fixed (uint* pnumzPod = &numzPod) + { + PxTriangleMeshGetSDFDimensionsNative(selfPod, (uint*)pnumxPod, numyPod, (uint*)pnumzPod); + } + } + } + + public static void PxTriangleMeshGetSDFDimensions( PhysxPxTriangleMeshPod* selfPod, uint* numxPod, ref uint numyPod, ref uint numzPod) + { + fixed (uint* pnumyPod = &numyPod) + { + fixed (uint* pnumzPod = &numzPod) + { + PxTriangleMeshGetSDFDimensionsNative(selfPod, numxPod, (uint*)pnumyPod, (uint*)pnumzPod); + } + } + } + + public static void PxTriangleMeshGetSDFDimensions( PhysxPxTriangleMeshPod* selfPod, ref uint numxPod, ref uint numyPod, ref uint numzPod) + { + fixed (uint* pnumxPod = &numxPod) + { + fixed (uint* pnumyPod = &numyPod) + { + fixed (uint* pnumzPod = &numzPod) + { + PxTriangleMeshGetSDFDimensionsNative(selfPod, (uint*)pnumxPod, (uint*)pnumyPod, (uint*)pnumzPod); + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_setPreferSDFProjection_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTriangleMeshSetPreferSDFProjectionMutNative(PhysxPxTriangleMeshPod* selfPod, byte preferProjection); + + public static void PxTriangleMeshSetPreferSDFProjectionMut( PhysxPxTriangleMeshPod* selfPod, bool preferProjection) + { + PxTriangleMeshSetPreferSDFProjectionMutNative(selfPod, preferProjection ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getPreferSDFProjection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTriangleMeshGetPreferSDFProjectionNative(PhysxPxTriangleMeshPod* selfPod); + + public static bool PxTriangleMeshGetPreferSDFProjection( PhysxPxTriangleMeshPod* selfPod) + { + byte ret = PxTriangleMeshGetPreferSDFProjectionNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMesh_getMassInformation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTriangleMeshGetMassInformationNative(PhysxPxTriangleMeshPod* selfPod, float* massPod, PhysxPxMat33Pod* localinertiaPod, PhysxPxVec3Pod* localcenterofmassPod); + + public static void PxTriangleMeshGetMassInformation( PhysxPxTriangleMeshPod* selfPod, float* massPod, PhysxPxMat33Pod* localinertiaPod, PhysxPxVec3Pod* localcenterofmassPod) + { + PxTriangleMeshGetMassInformationNative(selfPod, massPod, localinertiaPod, localcenterofmassPod); + } + + public static void PxTriangleMeshGetMassInformation( PhysxPxTriangleMeshPod* selfPod, ref float massPod, PhysxPxMat33Pod* localinertiaPod, PhysxPxVec3Pod* localcenterofmassPod) + { + fixed (float* pmassPod = &massPod) + { + PxTriangleMeshGetMassInformationNative(selfPod, (float*)pmassPod, localinertiaPod, localcenterofmassPod); + } + } + + public static void PxTriangleMeshGetMassInformation( PhysxPxTriangleMeshPod* selfPod, float* massPod, ref PhysxPxMat33Pod localinertiaPod, PhysxPxVec3Pod* localcenterofmassPod) + { + fixed (PhysxPxMat33Pod* plocalinertiaPod = &localinertiaPod) + { + PxTriangleMeshGetMassInformationNative(selfPod, massPod, (PhysxPxMat33Pod*)plocalinertiaPod, localcenterofmassPod); + } + } + + public static void PxTriangleMeshGetMassInformation( PhysxPxTriangleMeshPod* selfPod, ref float massPod, ref PhysxPxMat33Pod localinertiaPod, PhysxPxVec3Pod* localcenterofmassPod) + { + fixed (float* pmassPod = &massPod) + { + fixed (PhysxPxMat33Pod* plocalinertiaPod = &localinertiaPod) + { + PxTriangleMeshGetMassInformationNative(selfPod, (float*)pmassPod, (PhysxPxMat33Pod*)plocalinertiaPod, localcenterofmassPod); + } + } + } + + public static void PxTriangleMeshGetMassInformation( PhysxPxTriangleMeshPod* selfPod, float* massPod, PhysxPxMat33Pod* localinertiaPod, ref PhysxPxVec3Pod localcenterofmassPod) + { + fixed (PhysxPxVec3Pod* plocalcenterofmassPod = &localcenterofmassPod) + { + PxTriangleMeshGetMassInformationNative(selfPod, massPod, localinertiaPod, (PhysxPxVec3Pod*)plocalcenterofmassPod); + } + } + + public static void PxTriangleMeshGetMassInformation( PhysxPxTriangleMeshPod* selfPod, ref float massPod, PhysxPxMat33Pod* localinertiaPod, ref PhysxPxVec3Pod localcenterofmassPod) + { + fixed (float* pmassPod = &massPod) + { + fixed (PhysxPxVec3Pod* plocalcenterofmassPod = &localcenterofmassPod) + { + PxTriangleMeshGetMassInformationNative(selfPod, (float*)pmassPod, localinertiaPod, (PhysxPxVec3Pod*)plocalcenterofmassPod); + } + } + } + + public static void PxTriangleMeshGetMassInformation( PhysxPxTriangleMeshPod* selfPod, float* massPod, ref PhysxPxMat33Pod localinertiaPod, ref PhysxPxVec3Pod localcenterofmassPod) + { + fixed (PhysxPxMat33Pod* plocalinertiaPod = &localinertiaPod) + { + fixed (PhysxPxVec3Pod* plocalcenterofmassPod = &localcenterofmassPod) + { + PxTriangleMeshGetMassInformationNative(selfPod, massPod, (PhysxPxMat33Pod*)plocalinertiaPod, (PhysxPxVec3Pod*)plocalcenterofmassPod); + } + } + } + + public static void PxTriangleMeshGetMassInformation( PhysxPxTriangleMeshPod* selfPod, ref float massPod, ref PhysxPxMat33Pod localinertiaPod, ref PhysxPxVec3Pod localcenterofmassPod) + { + fixed (float* pmassPod = &massPod) + { + fixed (PhysxPxMat33Pod* plocalinertiaPod = &localinertiaPod) + { + fixed (PhysxPxVec3Pod* plocalcenterofmassPod = &localcenterofmassPod) + { + PxTriangleMeshGetMassInformationNative(selfPod, (float*)pmassPod, (PhysxPxMat33Pod*)plocalinertiaPod, (PhysxPxVec3Pod*)plocalcenterofmassPod); + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedron_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronPod* PxTetrahedronNewAllocNative(); + + public static PhysxPxTetrahedronPod* PxTetrahedronNewAlloc() + { + PhysxPxTetrahedronPod* ret = PxTetrahedronNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedron_new_alloc_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronPod* PxTetrahedronNewAlloc1Native(PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* p2Pod, PhysxPxVec3Pod* p3Pod); + + public static PhysxPxTetrahedronPod* PxTetrahedronNewAlloc1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* p2Pod, PhysxPxVec3Pod* p3Pod) + { + PhysxPxTetrahedronPod* ret = PxTetrahedronNewAlloc1Native(p0Pod, p1Pod, p2Pod, p3Pod); + return ret; + } + + public static PhysxPxTetrahedronPod* PxTetrahedronNewAlloc1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, PhysxPxVec3Pod* p2Pod, PhysxPxVec3Pod* p3Pod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + PhysxPxTetrahedronPod* ret = PxTetrahedronNewAlloc1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, p2Pod, p3Pod); + return ret; + } + } + + public static PhysxPxTetrahedronPod* PxTetrahedronNewAlloc1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref PhysxPxVec3Pod p2Pod, PhysxPxVec3Pod* p3Pod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + PhysxPxTetrahedronPod* ret = PxTetrahedronNewAlloc1Native(p0Pod, p1Pod, (PhysxPxVec3Pod*)pp2Pod, p3Pod); + return ret; + } + } + + public static PhysxPxTetrahedronPod* PxTetrahedronNewAlloc1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref PhysxPxVec3Pod p2Pod, PhysxPxVec3Pod* p3Pod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + PhysxPxTetrahedronPod* ret = PxTetrahedronNewAlloc1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (PhysxPxVec3Pod*)pp2Pod, p3Pod); + return ret; + } + } + } + + public static PhysxPxTetrahedronPod* PxTetrahedronNewAlloc1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, PhysxPxVec3Pod* p2Pod, ref PhysxPxVec3Pod p3Pod) + { + fixed (PhysxPxVec3Pod* pp3Pod = &p3Pod) + { + PhysxPxTetrahedronPod* ret = PxTetrahedronNewAlloc1Native(p0Pod, p1Pod, p2Pod, (PhysxPxVec3Pod*)pp3Pod); + return ret; + } + } + + public static PhysxPxTetrahedronPod* PxTetrahedronNewAlloc1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, PhysxPxVec3Pod* p2Pod, ref PhysxPxVec3Pod p3Pod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pp3Pod = &p3Pod) + { + PhysxPxTetrahedronPod* ret = PxTetrahedronNewAlloc1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, p2Pod, (PhysxPxVec3Pod*)pp3Pod); + return ret; + } + } + } + + public static PhysxPxTetrahedronPod* PxTetrahedronNewAlloc1( PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, ref PhysxPxVec3Pod p2Pod, ref PhysxPxVec3Pod p3Pod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + fixed (PhysxPxVec3Pod* pp3Pod = &p3Pod) + { + PhysxPxTetrahedronPod* ret = PxTetrahedronNewAlloc1Native(p0Pod, p1Pod, (PhysxPxVec3Pod*)pp2Pod, (PhysxPxVec3Pod*)pp3Pod); + return ret; + } + } + } + + public static PhysxPxTetrahedronPod* PxTetrahedronNewAlloc1( PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, ref PhysxPxVec3Pod p2Pod, ref PhysxPxVec3Pod p3Pod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + fixed (PhysxPxVec3Pod* pp2Pod = &p2Pod) + { + fixed (PhysxPxVec3Pod* pp3Pod = &p3Pod) + { + PhysxPxTetrahedronPod* ret = PxTetrahedronNewAlloc1Native(p0Pod, (PhysxPxVec3Pod*)pp1Pod, (PhysxPxVec3Pod*)pp2Pod, (PhysxPxVec3Pod*)pp3Pod); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedron_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTetrahedronDeleteNative(PhysxPxTetrahedronPod* selfPod); + + public static void PxTetrahedronDelete( PhysxPxTetrahedronPod* selfPod) + { + PxTetrahedronDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSoftBodyAuxData_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSoftBodyAuxDataReleaseMutNative(PhysxPxSoftBodyAuxDataPod* selfPod); + + public static void PxSoftBodyAuxDataReleaseMut( PhysxPxSoftBodyAuxDataPod* selfPod) + { + PxSoftBodyAuxDataReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMesh_getNbVertices")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxTetrahedronMeshGetNbVerticesNative(PhysxPxTetrahedronMeshPod* selfPod); + + public static uint PxTetrahedronMeshGetNbVertices( PhysxPxTetrahedronMeshPod* selfPod) + { + uint ret = PxTetrahedronMeshGetNbVerticesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMesh_getVertices")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod* PxTetrahedronMeshGetVerticesNative(PhysxPxTetrahedronMeshPod* selfPod); + + public static PhysxPxVec3Pod* PxTetrahedronMeshGetVertices( PhysxPxTetrahedronMeshPod* selfPod) + { + PhysxPxVec3Pod* ret = PxTetrahedronMeshGetVerticesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMesh_getNbTetrahedrons")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxTetrahedronMeshGetNbTetrahedronsNative(PhysxPxTetrahedronMeshPod* selfPod); + + public static uint PxTetrahedronMeshGetNbTetrahedrons( PhysxPxTetrahedronMeshPod* selfPod) + { + uint ret = PxTetrahedronMeshGetNbTetrahedronsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMesh_getTetrahedrons")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxTetrahedronMeshGetTetrahedronsNative(PhysxPxTetrahedronMeshPod* selfPod); + + public static void* PxTetrahedronMeshGetTetrahedrons( PhysxPxTetrahedronMeshPod* selfPod) + { + void* ret = PxTetrahedronMeshGetTetrahedronsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMesh_getTetrahedronMeshFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTetrahedronMeshGetTetrahedronMeshFlagsNative(PhysxPxTetrahedronMeshPod* selfPod); + + public static byte PxTetrahedronMeshGetTetrahedronMeshFlags( PhysxPxTetrahedronMeshPod* selfPod) + { + byte ret = PxTetrahedronMeshGetTetrahedronMeshFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMesh_getTetrahedraRemap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint* PxTetrahedronMeshGetTetrahedraRemapNative(PhysxPxTetrahedronMeshPod* selfPod); + + public static uint* PxTetrahedronMeshGetTetrahedraRemap( PhysxPxTetrahedronMeshPod* selfPod) + { + uint* ret = PxTetrahedronMeshGetTetrahedraRemapNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMesh_getLocalBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxTetrahedronMeshGetLocalBoundsNative(PhysxPxTetrahedronMeshPod* selfPod); + + public static PhysxPxBounds3Pod PxTetrahedronMeshGetLocalBounds( PhysxPxTetrahedronMeshPod* selfPod) + { + PhysxPxBounds3Pod ret = PxTetrahedronMeshGetLocalBoundsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMesh_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTetrahedronMeshReleaseMutNative(PhysxPxTetrahedronMeshPod* selfPod); + + public static void PxTetrahedronMeshReleaseMut( PhysxPxTetrahedronMeshPod* selfPod) + { + PxTetrahedronMeshReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSoftBodyMesh_getCollisionMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshPod* PxSoftBodyMeshGetCollisionMeshNative(PhysxPxSoftBodyMeshPod* selfPod); + + public static PhysxPxTetrahedronMeshPod* PxSoftBodyMeshGetCollisionMesh( PhysxPxSoftBodyMeshPod* selfPod) + { + PhysxPxTetrahedronMeshPod* ret = PxSoftBodyMeshGetCollisionMeshNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSoftBodyMesh_getCollisionMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshPod* PxSoftBodyMeshGetCollisionMeshMutNative(PhysxPxSoftBodyMeshPod* selfPod); + + public static PhysxPxTetrahedronMeshPod* PxSoftBodyMeshGetCollisionMeshMut( PhysxPxSoftBodyMeshPod* selfPod) + { + PhysxPxTetrahedronMeshPod* ret = PxSoftBodyMeshGetCollisionMeshMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSoftBodyMesh_getSimulationMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshPod* PxSoftBodyMeshGetSimulationMeshNative(PhysxPxSoftBodyMeshPod* selfPod); + + public static PhysxPxTetrahedronMeshPod* PxSoftBodyMeshGetSimulationMesh( PhysxPxSoftBodyMeshPod* selfPod) + { + PhysxPxTetrahedronMeshPod* ret = PxSoftBodyMeshGetSimulationMeshNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSoftBodyMesh_getSimulationMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshPod* PxSoftBodyMeshGetSimulationMeshMutNative(PhysxPxSoftBodyMeshPod* selfPod); + + public static PhysxPxTetrahedronMeshPod* PxSoftBodyMeshGetSimulationMeshMut( PhysxPxSoftBodyMeshPod* selfPod) + { + PhysxPxTetrahedronMeshPod* ret = PxSoftBodyMeshGetSimulationMeshMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSoftBodyMesh_getSoftBodyAuxData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSoftBodyAuxDataPod* PxSoftBodyMeshGetSoftBodyAuxDataNative(PhysxPxSoftBodyMeshPod* selfPod); + + public static PhysxPxSoftBodyAuxDataPod* PxSoftBodyMeshGetSoftBodyAuxData( PhysxPxSoftBodyMeshPod* selfPod) + { + PhysxPxSoftBodyAuxDataPod* ret = PxSoftBodyMeshGetSoftBodyAuxDataNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSoftBodyMesh_getSoftBodyAuxData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSoftBodyAuxDataPod* PxSoftBodyMeshGetSoftBodyAuxDataMutNative(PhysxPxSoftBodyMeshPod* selfPod); + + public static PhysxPxSoftBodyAuxDataPod* PxSoftBodyMeshGetSoftBodyAuxDataMut( PhysxPxSoftBodyMeshPod* selfPod) + { + PhysxPxSoftBodyAuxDataPod* ret = PxSoftBodyMeshGetSoftBodyAuxDataMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSoftBodyMesh_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSoftBodyMeshReleaseMutNative(PhysxPxSoftBodyMeshPod* selfPod); + + public static void PxSoftBodyMeshReleaseMut( PhysxPxSoftBodyMeshPod* selfPod) + { + PxSoftBodyMeshReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxCollisionMeshMappingData_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCollisionMeshMappingDataReleaseMutNative(PhysxPxCollisionMeshMappingDataPod* selfPod); + + public static void PxCollisionMeshMappingDataReleaseMut( PhysxPxCollisionMeshMappingDataPod* selfPod) + { + PxCollisionMeshMappingDataReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxCollisionTetrahedronMeshData_getMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshDataPod* PxCollisionTetrahedronMeshDataGetMeshNative(PhysxPxCollisionTetrahedronMeshDataPod* selfPod); + + public static PhysxPxTetrahedronMeshDataPod* PxCollisionTetrahedronMeshDataGetMesh( PhysxPxCollisionTetrahedronMeshDataPod* selfPod) + { + PhysxPxTetrahedronMeshDataPod* ret = PxCollisionTetrahedronMeshDataGetMeshNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCollisionTetrahedronMeshData_getMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshDataPod* PxCollisionTetrahedronMeshDataGetMeshMutNative(PhysxPxCollisionTetrahedronMeshDataPod* selfPod); + + public static PhysxPxTetrahedronMeshDataPod* PxCollisionTetrahedronMeshDataGetMeshMut( PhysxPxCollisionTetrahedronMeshDataPod* selfPod) + { + PhysxPxTetrahedronMeshDataPod* ret = PxCollisionTetrahedronMeshDataGetMeshMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCollisionTetrahedronMeshData_getData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSoftBodyCollisionDataPod* PxCollisionTetrahedronMeshDataGetDataNative(PhysxPxCollisionTetrahedronMeshDataPod* selfPod); + + public static PhysxPxSoftBodyCollisionDataPod* PxCollisionTetrahedronMeshDataGetData( PhysxPxCollisionTetrahedronMeshDataPod* selfPod) + { + PhysxPxSoftBodyCollisionDataPod* ret = PxCollisionTetrahedronMeshDataGetDataNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCollisionTetrahedronMeshData_getData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSoftBodyCollisionDataPod* PxCollisionTetrahedronMeshDataGetDataMutNative(PhysxPxCollisionTetrahedronMeshDataPod* selfPod); + + public static PhysxPxSoftBodyCollisionDataPod* PxCollisionTetrahedronMeshDataGetDataMut( PhysxPxCollisionTetrahedronMeshDataPod* selfPod) + { + PhysxPxSoftBodyCollisionDataPod* ret = PxCollisionTetrahedronMeshDataGetDataMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCollisionTetrahedronMeshData_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCollisionTetrahedronMeshDataReleaseMutNative(PhysxPxCollisionTetrahedronMeshDataPod* selfPod); + + public static void PxCollisionTetrahedronMeshDataReleaseMut( PhysxPxCollisionTetrahedronMeshDataPod* selfPod) + { + PxCollisionTetrahedronMeshDataReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationTetrahedronMeshData_getMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshDataPod* PxSimulationTetrahedronMeshDataGetMeshMutNative(PhysxPxSimulationTetrahedronMeshDataPod* selfPod); + + public static PhysxPxTetrahedronMeshDataPod* PxSimulationTetrahedronMeshDataGetMeshMut( PhysxPxSimulationTetrahedronMeshDataPod* selfPod) + { + PhysxPxTetrahedronMeshDataPod* ret = PxSimulationTetrahedronMeshDataGetMeshMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationTetrahedronMeshData_getData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSoftBodySimulationDataPod* PxSimulationTetrahedronMeshDataGetDataMutNative(PhysxPxSimulationTetrahedronMeshDataPod* selfPod); + + public static PhysxPxSoftBodySimulationDataPod* PxSimulationTetrahedronMeshDataGetDataMut( PhysxPxSimulationTetrahedronMeshDataPod* selfPod) + { + PhysxPxSoftBodySimulationDataPod* ret = PxSimulationTetrahedronMeshDataGetDataMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationTetrahedronMeshData_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSimulationTetrahedronMeshDataReleaseMutNative(PhysxPxSimulationTetrahedronMeshDataPod* selfPod); + + public static void PxSimulationTetrahedronMeshDataReleaseMut( PhysxPxSimulationTetrahedronMeshDataPod* selfPod) + { + PxSimulationTetrahedronMeshDataReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxActor_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxActorReleaseMutNative(PhysxPxActorPod* selfPod); + + public static void PxActorReleaseMut( PhysxPxActorPod* selfPod) + { + PxActorReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxActor_getType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxActorGetTypeNative(PhysxPxActorPod* selfPod); + + public static int PxActorGetType( PhysxPxActorPod* selfPod) + { + int ret = PxActorGetTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxActor_getScene")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxScenePod* PxActorGetSceneNative(PhysxPxActorPod* selfPod); + + public static PhysxPxScenePod* PxActorGetScene( PhysxPxActorPod* selfPod) + { + PhysxPxScenePod* ret = PxActorGetSceneNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxActor_setName_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxActorSetNameMutNative(PhysxPxActorPod* selfPod, byte* name); + + public static void PxActorSetNameMut( PhysxPxActorPod* selfPod, byte* name) + { + PxActorSetNameMutNative(selfPod, name); + } + + public static void PxActorSetNameMut( PhysxPxActorPod* selfPod, ref byte name) + { + fixed (byte* pname = &name) + { + PxActorSetNameMutNative(selfPod, (byte*)pname); + } + } + + public static void PxActorSetNameMut( PhysxPxActorPod* selfPod, string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxActorSetNameMutNative(selfPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxActor_getName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxActorGetNameNative(PhysxPxActorPod* selfPod); + + public static byte* PxActorGetName( PhysxPxActorPod* selfPod) + { + byte* ret = PxActorGetNameNative(selfPod); + return ret; + } + + public static string PxActorGetNameS( PhysxPxActorPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxActorGetNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxActor_getWorldBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxActorGetWorldBoundsNative(PhysxPxActorPod* selfPod, float inflation); + + public static PhysxPxBounds3Pod PxActorGetWorldBounds( PhysxPxActorPod* selfPod, float inflation) + { + PhysxPxBounds3Pod ret = PxActorGetWorldBoundsNative(selfPod, inflation); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxActor_setActorFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxActorSetActorFlagMutNative(PhysxPxActorPod* selfPod, int flagPod, byte value); + + public static void PxActorSetActorFlagMut( PhysxPxActorPod* selfPod, int flagPod, bool value) + { + PxActorSetActorFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxActor_setActorFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxActorSetActorFlagsMutNative(PhysxPxActorPod* selfPod, byte inflagsPod); + + public static void PxActorSetActorFlagsMut( PhysxPxActorPod* selfPod, byte inflagsPod) + { + PxActorSetActorFlagsMutNative(selfPod, inflagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxActor_getActorFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxActorGetActorFlagsNative(PhysxPxActorPod* selfPod); + + public static byte PxActorGetActorFlags( PhysxPxActorPod* selfPod) + { + byte ret = PxActorGetActorFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxActor_setDominanceGroup_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxActorSetDominanceGroupMutNative(PhysxPxActorPod* selfPod, byte dominanceGroup); + + public static void PxActorSetDominanceGroupMut( PhysxPxActorPod* selfPod, byte dominanceGroup) + { + PxActorSetDominanceGroupMutNative(selfPod, dominanceGroup); + } + + [LibraryImport(LibName, EntryPoint = "PxActor_getDominanceGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxActorGetDominanceGroupNative(PhysxPxActorPod* selfPod); + + public static byte PxActorGetDominanceGroup( PhysxPxActorPod* selfPod) + { + byte ret = PxActorGetDominanceGroupNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxActor_setOwnerClient_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxActorSetOwnerClientMutNative(PhysxPxActorPod* selfPod, byte inClient); + + public static void PxActorSetOwnerClientMut( PhysxPxActorPod* selfPod, byte inClient) + { + PxActorSetOwnerClientMutNative(selfPod, inClient); + } + + [LibraryImport(LibName, EntryPoint = "PxActor_getOwnerClient")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxActorGetOwnerClientNative(PhysxPxActorPod* selfPod); + + public static byte PxActorGetOwnerClient( PhysxPxActorPod* selfPod) + { + byte ret = PxActorGetOwnerClientNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxActor_getAggregate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxAggregatePod* PxActorGetAggregateNative(PhysxPxActorPod* selfPod); + + public static PhysxPxAggregatePod* PxActorGetAggregate( PhysxPxActorPod* selfPod) + { + PhysxPxAggregatePod* ret = PxActorGetAggregateNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetAggregateFilterHint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxGetAggregateFilterHintNative(int typePod, byte enableSelfCollision); + + public static uint PhysPxGetAggregateFilterHint( int typePod, bool enableSelfCollision) + { + uint ret = PhysPxGetAggregateFilterHintNative(typePod, enableSelfCollision ? (byte)1 : (byte)0); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetAggregateSelfCollisionBit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxGetAggregateSelfCollisionBitNative(uint hint); + + public static uint PhysPxGetAggregateSelfCollisionBit( uint hint) + { + uint ret = PhysPxGetAggregateSelfCollisionBitNative(hint); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetAggregateType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PhysPxGetAggregateTypeNative(uint hint); + + public static int PhysPxGetAggregateType( uint hint) + { + int ret = PhysPxGetAggregateTypeNative(hint); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAggregate_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAggregateReleaseMutNative(PhysxPxAggregatePod* selfPod); + + public static void PxAggregateReleaseMut( PhysxPxAggregatePod* selfPod) + { + PxAggregateReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxAggregate_addActor_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxAggregateAddActorMutNative(PhysxPxAggregatePod* selfPod, PhysxPxActorPod* actorPod, PhysxPxBVHPod* bvhPod); + + public static bool PxAggregateAddActorMut( PhysxPxAggregatePod* selfPod, PhysxPxActorPod* actorPod, PhysxPxBVHPod* bvhPod) + { + byte ret = PxAggregateAddActorMutNative(selfPod, actorPod, bvhPod); + return ret != 0; + } + + public static bool PxAggregateAddActorMut( PhysxPxAggregatePod* selfPod, ref PhysxPxActorPod actorPod, PhysxPxBVHPod* bvhPod) + { + fixed (PhysxPxActorPod* pactorPod = &actorPod) + { + byte ret = PxAggregateAddActorMutNative(selfPod, (PhysxPxActorPod*)pactorPod, bvhPod); + return ret != 0; + } + } + + public static bool PxAggregateAddActorMut( PhysxPxAggregatePod* selfPod, PhysxPxActorPod* actorPod, ref PhysxPxBVHPod bvhPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + byte ret = PxAggregateAddActorMutNative(selfPod, actorPod, (PhysxPxBVHPod*)pbvhPod); + return ret != 0; + } + } + + public static bool PxAggregateAddActorMut( PhysxPxAggregatePod* selfPod, ref PhysxPxActorPod actorPod, ref PhysxPxBVHPod bvhPod) + { + fixed (PhysxPxActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + byte ret = PxAggregateAddActorMutNative(selfPod, (PhysxPxActorPod*)pactorPod, (PhysxPxBVHPod*)pbvhPod); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxAggregate_removeActor_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxAggregateRemoveActorMutNative(PhysxPxAggregatePod* selfPod, PhysxPxActorPod* actorPod); + + public static bool PxAggregateRemoveActorMut( PhysxPxAggregatePod* selfPod, PhysxPxActorPod* actorPod) + { + byte ret = PxAggregateRemoveActorMutNative(selfPod, actorPod); + return ret != 0; + } + + public static bool PxAggregateRemoveActorMut( PhysxPxAggregatePod* selfPod, ref PhysxPxActorPod actorPod) + { + fixed (PhysxPxActorPod* pactorPod = &actorPod) + { + byte ret = PxAggregateRemoveActorMutNative(selfPod, (PhysxPxActorPod*)pactorPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxAggregate_addArticulation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxAggregateAddArticulationMutNative(PhysxPxAggregatePod* selfPod, PhysxPxArticulationReducedCoordinatePod* articulationPod); + + public static bool PxAggregateAddArticulationMut( PhysxPxAggregatePod* selfPod, PhysxPxArticulationReducedCoordinatePod* articulationPod) + { + byte ret = PxAggregateAddArticulationMutNative(selfPod, articulationPod); + return ret != 0; + } + + public static bool PxAggregateAddArticulationMut( PhysxPxAggregatePod* selfPod, ref PhysxPxArticulationReducedCoordinatePod articulationPod) + { + fixed (PhysxPxArticulationReducedCoordinatePod* particulationPod = &articulationPod) + { + byte ret = PxAggregateAddArticulationMutNative(selfPod, (PhysxPxArticulationReducedCoordinatePod*)particulationPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxAggregate_removeArticulation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxAggregateRemoveArticulationMutNative(PhysxPxAggregatePod* selfPod, PhysxPxArticulationReducedCoordinatePod* articulationPod); + + public static bool PxAggregateRemoveArticulationMut( PhysxPxAggregatePod* selfPod, PhysxPxArticulationReducedCoordinatePod* articulationPod) + { + byte ret = PxAggregateRemoveArticulationMutNative(selfPod, articulationPod); + return ret != 0; + } + + public static bool PxAggregateRemoveArticulationMut( PhysxPxAggregatePod* selfPod, ref PhysxPxArticulationReducedCoordinatePod articulationPod) + { + fixed (PhysxPxArticulationReducedCoordinatePod* particulationPod = &articulationPod) + { + byte ret = PxAggregateRemoveArticulationMutNative(selfPod, (PhysxPxArticulationReducedCoordinatePod*)particulationPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxAggregate_getNbActors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxAggregateGetNbActorsNative(PhysxPxAggregatePod* selfPod); + + public static uint PxAggregateGetNbActors( PhysxPxAggregatePod* selfPod) + { + uint ret = PxAggregateGetNbActorsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAggregate_getMaxNbShapes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxAggregateGetMaxNbShapesNative(PhysxPxAggregatePod* selfPod); + + public static uint PxAggregateGetMaxNbShapes( PhysxPxAggregatePod* selfPod) + { + uint ret = PxAggregateGetMaxNbShapesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAggregate_getActors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxAggregateGetActorsNative(PhysxPxAggregatePod* selfPod, PhysxPxActorPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxAggregateGetActors( PhysxPxAggregatePod* selfPod, PhysxPxActorPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxAggregateGetActorsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxAggregateGetActors( PhysxPxAggregatePod* selfPod, ref PhysxPxActorPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxActorPod** puserbufferPod = &userbufferPod) + { + uint ret = PxAggregateGetActorsNative(selfPod, (PhysxPxActorPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxAggregate_getScene_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxScenePod* PxAggregateGetSceneMutNative(PhysxPxAggregatePod* selfPod); + + public static PhysxPxScenePod* PxAggregateGetSceneMut( PhysxPxAggregatePod* selfPod) + { + PhysxPxScenePod* ret = PxAggregateGetSceneMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAggregate_getSelfCollision")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxAggregateGetSelfCollisionNative(PhysxPxAggregatePod* selfPod); + + public static bool PxAggregateGetSelfCollision( PhysxPxAggregatePod* selfPod) + { + byte ret = PxAggregateGetSelfCollisionNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxAggregate_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxAggregateGetConcreteTypeNameNative(PhysxPxAggregatePod* selfPod); + + public static byte* PxAggregateGetConcreteTypeName( PhysxPxAggregatePod* selfPod) + { + byte* ret = PxAggregateGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxAggregateGetConcreteTypeNameS( PhysxPxAggregatePod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxAggregateGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintInvMassScale_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConstraintInvMassScalePod PxConstraintInvMassScaleNewNative(); + + public static PhysxPxConstraintInvMassScalePod PxConstraintInvMassScaleNew() + { + PhysxPxConstraintInvMassScalePod ret = PxConstraintInvMassScaleNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintInvMassScale_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConstraintInvMassScalePod PxConstraintInvMassScaleNew1Native(float lin0, float ang0, float lin1, float ang1); + + public static PhysxPxConstraintInvMassScalePod PxConstraintInvMassScaleNew1( float lin0, float ang0, float lin1, float ang1) + { + PhysxPxConstraintInvMassScalePod ret = PxConstraintInvMassScaleNew1Native(lin0, ang0, lin1, ang1); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintVisualizer_visualizeJointFrames_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintVisualizerVisualizeJointFramesMutNative(PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* parentPod, PhysxPxTransformPod* childPod); + + public static void PxConstraintVisualizerVisualizeJointFramesMut( PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* parentPod, PhysxPxTransformPod* childPod) + { + PxConstraintVisualizerVisualizeJointFramesMutNative(selfPod, parentPod, childPod); + } + + public static void PxConstraintVisualizerVisualizeJointFramesMut( PhysxPxConstraintVisualizerPod* selfPod, ref PhysxPxTransformPod parentPod, PhysxPxTransformPod* childPod) + { + fixed (PhysxPxTransformPod* pparentPod = &parentPod) + { + PxConstraintVisualizerVisualizeJointFramesMutNative(selfPod, (PhysxPxTransformPod*)pparentPod, childPod); + } + } + + public static void PxConstraintVisualizerVisualizeJointFramesMut( PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* parentPod, ref PhysxPxTransformPod childPod) + { + fixed (PhysxPxTransformPod* pchildPod = &childPod) + { + PxConstraintVisualizerVisualizeJointFramesMutNative(selfPod, parentPod, (PhysxPxTransformPod*)pchildPod); + } + } + + public static void PxConstraintVisualizerVisualizeJointFramesMut( PhysxPxConstraintVisualizerPod* selfPod, ref PhysxPxTransformPod parentPod, ref PhysxPxTransformPod childPod) + { + fixed (PhysxPxTransformPod* pparentPod = &parentPod) + { + fixed (PhysxPxTransformPod* pchildPod = &childPod) + { + PxConstraintVisualizerVisualizeJointFramesMutNative(selfPod, (PhysxPxTransformPod*)pparentPod, (PhysxPxTransformPod*)pchildPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintVisualizer_visualizeLinearLimit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintVisualizerVisualizeLinearLimitMutNative(PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* t0Pod, PhysxPxTransformPod* t1Pod, float value, byte active); + + public static void PxConstraintVisualizerVisualizeLinearLimitMut( PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* t0Pod, PhysxPxTransformPod* t1Pod, float value, bool active) + { + PxConstraintVisualizerVisualizeLinearLimitMutNative(selfPod, t0Pod, t1Pod, value, active ? (byte)1 : (byte)0); + } + + public static void PxConstraintVisualizerVisualizeLinearLimitMut( PhysxPxConstraintVisualizerPod* selfPod, ref PhysxPxTransformPod t0Pod, PhysxPxTransformPod* t1Pod, float value, bool active) + { + fixed (PhysxPxTransformPod* pt0Pod = &t0Pod) + { + PxConstraintVisualizerVisualizeLinearLimitMutNative(selfPod, (PhysxPxTransformPod*)pt0Pod, t1Pod, value, active ? (byte)1 : (byte)0); + } + } + + public static void PxConstraintVisualizerVisualizeLinearLimitMut( PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* t0Pod, ref PhysxPxTransformPod t1Pod, float value, bool active) + { + fixed (PhysxPxTransformPod* pt1Pod = &t1Pod) + { + PxConstraintVisualizerVisualizeLinearLimitMutNative(selfPod, t0Pod, (PhysxPxTransformPod*)pt1Pod, value, active ? (byte)1 : (byte)0); + } + } + + public static void PxConstraintVisualizerVisualizeLinearLimitMut( PhysxPxConstraintVisualizerPod* selfPod, ref PhysxPxTransformPod t0Pod, ref PhysxPxTransformPod t1Pod, float value, bool active) + { + fixed (PhysxPxTransformPod* pt0Pod = &t0Pod) + { + fixed (PhysxPxTransformPod* pt1Pod = &t1Pod) + { + PxConstraintVisualizerVisualizeLinearLimitMutNative(selfPod, (PhysxPxTransformPod*)pt0Pod, (PhysxPxTransformPod*)pt1Pod, value, active ? (byte)1 : (byte)0); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintVisualizer_visualizeAngularLimit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintVisualizerVisualizeAngularLimitMutNative(PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* t0Pod, float lower, float upper, byte active); + + public static void PxConstraintVisualizerVisualizeAngularLimitMut( PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* t0Pod, float lower, float upper, bool active) + { + PxConstraintVisualizerVisualizeAngularLimitMutNative(selfPod, t0Pod, lower, upper, active ? (byte)1 : (byte)0); + } + + public static void PxConstraintVisualizerVisualizeAngularLimitMut( PhysxPxConstraintVisualizerPod* selfPod, ref PhysxPxTransformPod t0Pod, float lower, float upper, bool active) + { + fixed (PhysxPxTransformPod* pt0Pod = &t0Pod) + { + PxConstraintVisualizerVisualizeAngularLimitMutNative(selfPod, (PhysxPxTransformPod*)pt0Pod, lower, upper, active ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintVisualizer_visualizeLimitCone_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintVisualizerVisualizeLimitConeMutNative(PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* tPod, float tanQSwingY, float tanQSwingZ, byte active); + + public static void PxConstraintVisualizerVisualizeLimitConeMut( PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* tPod, float tanQSwingY, float tanQSwingZ, bool active) + { + PxConstraintVisualizerVisualizeLimitConeMutNative(selfPod, tPod, tanQSwingY, tanQSwingZ, active ? (byte)1 : (byte)0); + } + + public static void PxConstraintVisualizerVisualizeLimitConeMut( PhysxPxConstraintVisualizerPod* selfPod, ref PhysxPxTransformPod tPod, float tanQSwingY, float tanQSwingZ, bool active) + { + fixed (PhysxPxTransformPod* ptPod = &tPod) + { + PxConstraintVisualizerVisualizeLimitConeMutNative(selfPod, (PhysxPxTransformPod*)ptPod, tanQSwingY, tanQSwingZ, active ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintVisualizer_visualizeDoubleCone_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintVisualizerVisualizeDoubleConeMutNative(PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* tPod, float angle, byte active); + + public static void PxConstraintVisualizerVisualizeDoubleConeMut( PhysxPxConstraintVisualizerPod* selfPod, PhysxPxTransformPod* tPod, float angle, bool active) + { + PxConstraintVisualizerVisualizeDoubleConeMutNative(selfPod, tPod, angle, active ? (byte)1 : (byte)0); + } + + public static void PxConstraintVisualizerVisualizeDoubleConeMut( PhysxPxConstraintVisualizerPod* selfPod, ref PhysxPxTransformPod tPod, float angle, bool active) + { + fixed (PhysxPxTransformPod* ptPod = &tPod) + { + PxConstraintVisualizerVisualizeDoubleConeMutNative(selfPod, (PhysxPxTransformPod*)ptPod, angle, active ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintVisualizer_visualizeLine_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintVisualizerVisualizeLineMutNative(PhysxPxConstraintVisualizerPod* selfPod, PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, uint color); + + public static void PxConstraintVisualizerVisualizeLineMut( PhysxPxConstraintVisualizerPod* selfPod, PhysxPxVec3Pod* p0Pod, PhysxPxVec3Pod* p1Pod, uint color) + { + PxConstraintVisualizerVisualizeLineMutNative(selfPod, p0Pod, p1Pod, color); + } + + public static void PxConstraintVisualizerVisualizeLineMut( PhysxPxConstraintVisualizerPod* selfPod, ref PhysxPxVec3Pod p0Pod, PhysxPxVec3Pod* p1Pod, uint color) + { + fixed (PhysxPxVec3Pod* pp0Pod = &p0Pod) + { + PxConstraintVisualizerVisualizeLineMutNative(selfPod, (PhysxPxVec3Pod*)pp0Pod, p1Pod, color); + } + } + + public static void PxConstraintVisualizerVisualizeLineMut( PhysxPxConstraintVisualizerPod* selfPod, PhysxPxVec3Pod* p0Pod, ref PhysxPxVec3Pod p1Pod, uint color) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + PxConstraintVisualizerVisualizeLineMutNative(selfPod, p0Pod, (PhysxPxVec3Pod*)pp1Pod, color); + } + } + + public static void PxConstraintVisualizerVisualizeLineMut( PhysxPxConstraintVisualizerPod* selfPod, ref PhysxPxVec3Pod p0Pod, ref PhysxPxVec3Pod p1Pod, uint color) + { + fixed (PhysxPxVec3Pod* pp0Pod = &p0Pod) + { + fixed (PhysxPxVec3Pod* pp1Pod = &p1Pod) + { + PxConstraintVisualizerVisualizeLineMutNative(selfPod, (PhysxPxVec3Pod*)pp0Pod, (PhysxPxVec3Pod*)pp1Pod, color); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintConnector_prepareData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxConstraintConnectorPrepareDataMutNative(PhysxPxConstraintConnectorPod* selfPod); + + public static void* PxConstraintConnectorPrepareDataMut( PhysxPxConstraintConnectorPod* selfPod) + { + void* ret = PxConstraintConnectorPrepareDataMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintConnector_onConstraintRelease_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintConnectorOnConstraintReleaseMutNative(PhysxPxConstraintConnectorPod* selfPod); + + public static void PxConstraintConnectorOnConstraintReleaseMut( PhysxPxConstraintConnectorPod* selfPod) + { + PxConstraintConnectorOnConstraintReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintConnector_onComShift_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintConnectorOnComShiftMutNative(PhysxPxConstraintConnectorPod* selfPod, uint actor); + + public static void PxConstraintConnectorOnComShiftMut( PhysxPxConstraintConnectorPod* selfPod, uint actor) + { + PxConstraintConnectorOnComShiftMutNative(selfPod, actor); + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintConnector_onOriginShift_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintConnectorOnOriginShiftMutNative(PhysxPxConstraintConnectorPod* selfPod, PhysxPxVec3Pod* shiftPod); + + public static void PxConstraintConnectorOnOriginShiftMut( PhysxPxConstraintConnectorPod* selfPod, PhysxPxVec3Pod* shiftPod) + { + PxConstraintConnectorOnOriginShiftMutNative(selfPod, shiftPod); + } + + public static void PxConstraintConnectorOnOriginShiftMut( PhysxPxConstraintConnectorPod* selfPod, ref PhysxPxVec3Pod shiftPod) + { + fixed (PhysxPxVec3Pod* pshiftPod = &shiftPod) + { + PxConstraintConnectorOnOriginShiftMutNative(selfPod, (PhysxPxVec3Pod*)pshiftPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintConnector_getSerializable_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBasePod* PxConstraintConnectorGetSerializableMutNative(PhysxPxConstraintConnectorPod* selfPod); + + public static PhysxPxBasePod* PxConstraintConnectorGetSerializableMut( PhysxPxConstraintConnectorPod* selfPod) + { + PhysxPxBasePod* ret = PxConstraintConnectorGetSerializableMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintConnector_getConstantBlock")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxConstraintConnectorGetConstantBlockNative(PhysxPxConstraintConnectorPod* selfPod); + + public static void* PxConstraintConnectorGetConstantBlock( PhysxPxConstraintConnectorPod* selfPod) + { + void* ret = PxConstraintConnectorGetConstantBlockNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintConnector_connectToConstraint_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintConnectorConnectToConstraintMutNative(PhysxPxConstraintConnectorPod* selfPod, PhysxPxConstraintPod* anonparam0Pod); + + public static void PxConstraintConnectorConnectToConstraintMut( PhysxPxConstraintConnectorPod* selfPod, PhysxPxConstraintPod* anonparam0Pod) + { + PxConstraintConnectorConnectToConstraintMutNative(selfPod, anonparam0Pod); + } + + public static void PxConstraintConnectorConnectToConstraintMut( PhysxPxConstraintConnectorPod* selfPod, ref PhysxPxConstraintPod anonparam0Pod) + { + fixed (PhysxPxConstraintPod* panonparam0Pod = &anonparam0Pod) + { + PxConstraintConnectorConnectToConstraintMutNative(selfPod, (PhysxPxConstraintPod*)panonparam0Pod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintConnector_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintConnectorDeleteNative(PhysxPxConstraintConnectorPod* selfPod); + + public static void PxConstraintConnectorDelete( PhysxPxConstraintConnectorPod* selfPod) + { + PxConstraintConnectorDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSolverBody_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSolverBodyPod PxSolverBodyNewNative(); + + public static PhysxPxSolverBodyPod PxSolverBodyNew() + { + PhysxPxSolverBodyPod ret = PxSolverBodyNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSolverBodyData_projectVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxSolverBodyDataProjectVelocityNative(PhysxPxSolverBodyDataPod* selfPod, PhysxPxVec3Pod* linPod, PhysxPxVec3Pod* angPod); + + public static float PxSolverBodyDataProjectVelocity( PhysxPxSolverBodyDataPod* selfPod, PhysxPxVec3Pod* linPod, PhysxPxVec3Pod* angPod) + { + float ret = PxSolverBodyDataProjectVelocityNative(selfPod, linPod, angPod); + return ret; + } + + public static float PxSolverBodyDataProjectVelocity( PhysxPxSolverBodyDataPod* selfPod, ref PhysxPxVec3Pod linPod, PhysxPxVec3Pod* angPod) + { + fixed (PhysxPxVec3Pod* plinPod = &linPod) + { + float ret = PxSolverBodyDataProjectVelocityNative(selfPod, (PhysxPxVec3Pod*)plinPod, angPod); + return ret; + } + } + + public static float PxSolverBodyDataProjectVelocity( PhysxPxSolverBodyDataPod* selfPod, PhysxPxVec3Pod* linPod, ref PhysxPxVec3Pod angPod) + { + fixed (PhysxPxVec3Pod* pangPod = &angPod) + { + float ret = PxSolverBodyDataProjectVelocityNative(selfPod, linPod, (PhysxPxVec3Pod*)pangPod); + return ret; + } + } + + public static float PxSolverBodyDataProjectVelocity( PhysxPxSolverBodyDataPod* selfPod, ref PhysxPxVec3Pod linPod, ref PhysxPxVec3Pod angPod) + { + fixed (PhysxPxVec3Pod* plinPod = &linPod) + { + fixed (PhysxPxVec3Pod* pangPod = &angPod) + { + float ret = PxSolverBodyDataProjectVelocityNative(selfPod, (PhysxPxVec3Pod*)plinPod, (PhysxPxVec3Pod*)pangPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSolverConstraintPrepDesc_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSolverConstraintPrepDescDeleteNative(PhysxPxSolverConstraintPrepDescPod* selfPod); + + public static void PxSolverConstraintPrepDescDelete( PhysxPxSolverConstraintPrepDescPod* selfPod) + { + PxSolverConstraintPrepDescDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintAllocator_reserveConstraintData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxConstraintAllocatorReserveConstraintDataMutNative(PhysxPxConstraintAllocatorPod* selfPod, uint byteSize); + + public static byte* PxConstraintAllocatorReserveConstraintDataMut( PhysxPxConstraintAllocatorPod* selfPod, uint byteSize) + { + byte* ret = PxConstraintAllocatorReserveConstraintDataMutNative(selfPod, byteSize); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintAllocator_reserveFrictionData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxConstraintAllocatorReserveFrictionDataMutNative(PhysxPxConstraintAllocatorPod* selfPod, uint byteSize); + + public static byte* PxConstraintAllocatorReserveFrictionDataMut( PhysxPxConstraintAllocatorPod* selfPod, uint byteSize) + { + byte* ret = PxConstraintAllocatorReserveFrictionDataMutNative(selfPod, byteSize); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintAllocator_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintAllocatorDeleteNative(PhysxPxConstraintAllocatorPod* selfPod); + + public static void PxConstraintAllocatorDelete( PhysxPxConstraintAllocatorPod* selfPod) + { + PxConstraintAllocatorDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLimit_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationLimitPod PxArticulationLimitNewNative(); + + public static PhysxPxArticulationLimitPod PxArticulationLimitNew() + { + PhysxPxArticulationLimitPod ret = PxArticulationLimitNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLimit_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationLimitPod PxArticulationLimitNew1Native(float low, float high); + + public static PhysxPxArticulationLimitPod PxArticulationLimitNew1( float low, float high) + { + PhysxPxArticulationLimitPod ret = PxArticulationLimitNew1Native(low, high); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationDrive_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationDrivePod PxArticulationDriveNewNative(); + + public static PhysxPxArticulationDrivePod PxArticulationDriveNew() + { + PhysxPxArticulationDrivePod ret = PxArticulationDriveNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationDrive_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationDrivePod PxArticulationDriveNew1Native(float stiffness, float damping, float maxforce, int drivetypePod); + + public static PhysxPxArticulationDrivePod PxArticulationDriveNew1( float stiffness, float damping, float maxforce, int drivetypePod) + { + PhysxPxArticulationDrivePod ret = PxArticulationDriveNew1Native(stiffness, damping, maxforce, drivetypePod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTGSSolverBodyVel_projectVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxTGSSolverBodyVelProjectVelocityNative(PhysxPxTGSSolverBodyVelPod* selfPod, PhysxPxVec3Pod* linPod, PhysxPxVec3Pod* angPod); + + public static float PxTGSSolverBodyVelProjectVelocity( PhysxPxTGSSolverBodyVelPod* selfPod, PhysxPxVec3Pod* linPod, PhysxPxVec3Pod* angPod) + { + float ret = PxTGSSolverBodyVelProjectVelocityNative(selfPod, linPod, angPod); + return ret; + } + + public static float PxTGSSolverBodyVelProjectVelocity( PhysxPxTGSSolverBodyVelPod* selfPod, ref PhysxPxVec3Pod linPod, PhysxPxVec3Pod* angPod) + { + fixed (PhysxPxVec3Pod* plinPod = &linPod) + { + float ret = PxTGSSolverBodyVelProjectVelocityNative(selfPod, (PhysxPxVec3Pod*)plinPod, angPod); + return ret; + } + } + + public static float PxTGSSolverBodyVelProjectVelocity( PhysxPxTGSSolverBodyVelPod* selfPod, PhysxPxVec3Pod* linPod, ref PhysxPxVec3Pod angPod) + { + fixed (PhysxPxVec3Pod* pangPod = &angPod) + { + float ret = PxTGSSolverBodyVelProjectVelocityNative(selfPod, linPod, (PhysxPxVec3Pod*)pangPod); + return ret; + } + } + + public static float PxTGSSolverBodyVelProjectVelocity( PhysxPxTGSSolverBodyVelPod* selfPod, ref PhysxPxVec3Pod linPod, ref PhysxPxVec3Pod angPod) + { + fixed (PhysxPxVec3Pod* plinPod = &linPod) + { + fixed (PhysxPxVec3Pod* pangPod = &angPod) + { + float ret = PxTGSSolverBodyVelProjectVelocityNative(selfPod, (PhysxPxVec3Pod*)plinPod, (PhysxPxVec3Pod*)pangPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxTGSSolverBodyData_projectVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxTGSSolverBodyDataProjectVelocityNative(PhysxPxTGSSolverBodyDataPod* selfPod, PhysxPxVec3Pod* linearPod, PhysxPxVec3Pod* angularPod); + + public static float PxTGSSolverBodyDataProjectVelocity( PhysxPxTGSSolverBodyDataPod* selfPod, PhysxPxVec3Pod* linearPod, PhysxPxVec3Pod* angularPod) + { + float ret = PxTGSSolverBodyDataProjectVelocityNative(selfPod, linearPod, angularPod); + return ret; + } + + public static float PxTGSSolverBodyDataProjectVelocity( PhysxPxTGSSolverBodyDataPod* selfPod, ref PhysxPxVec3Pod linearPod, PhysxPxVec3Pod* angularPod) + { + fixed (PhysxPxVec3Pod* plinearPod = &linearPod) + { + float ret = PxTGSSolverBodyDataProjectVelocityNative(selfPod, (PhysxPxVec3Pod*)plinearPod, angularPod); + return ret; + } + } + + public static float PxTGSSolverBodyDataProjectVelocity( PhysxPxTGSSolverBodyDataPod* selfPod, PhysxPxVec3Pod* linearPod, ref PhysxPxVec3Pod angularPod) + { + fixed (PhysxPxVec3Pod* pangularPod = &angularPod) + { + float ret = PxTGSSolverBodyDataProjectVelocityNative(selfPod, linearPod, (PhysxPxVec3Pod*)pangularPod); + return ret; + } + } + + public static float PxTGSSolverBodyDataProjectVelocity( PhysxPxTGSSolverBodyDataPod* selfPod, ref PhysxPxVec3Pod linearPod, ref PhysxPxVec3Pod angularPod) + { + fixed (PhysxPxVec3Pod* plinearPod = &linearPod) + { + fixed (PhysxPxVec3Pod* pangularPod = &angularPod) + { + float ret = PxTGSSolverBodyDataProjectVelocityNative(selfPod, (PhysxPxVec3Pod*)plinearPod, (PhysxPxVec3Pod*)pangularPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxTGSSolverConstraintPrepDesc_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTGSSolverConstraintPrepDescDeleteNative(PhysxPxTGSSolverConstraintPrepDescPod* selfPod); + + public static void PxTGSSolverConstraintPrepDescDelete( PhysxPxTGSSolverConstraintPrepDescPod* selfPod) + { + PxTGSSolverConstraintPrepDescDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_setRestLength_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationAttachmentSetRestLengthMutNative(PhysxPxArticulationAttachmentPod* selfPod, float restLength); + + public static void PxArticulationAttachmentSetRestLengthMut( PhysxPxArticulationAttachmentPod* selfPod, float restLength) + { + PxArticulationAttachmentSetRestLengthMutNative(selfPod, restLength); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_getRestLength")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationAttachmentGetRestLengthNative(PhysxPxArticulationAttachmentPod* selfPod); + + public static float PxArticulationAttachmentGetRestLength( PhysxPxArticulationAttachmentPod* selfPod) + { + float ret = PxArticulationAttachmentGetRestLengthNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_setLimitParameters_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationAttachmentSetLimitParametersMutNative(PhysxPxArticulationAttachmentPod* selfPod, PhysxPxArticulationTendonLimitPod* parametersPod); + + public static void PxArticulationAttachmentSetLimitParametersMut( PhysxPxArticulationAttachmentPod* selfPod, PhysxPxArticulationTendonLimitPod* parametersPod) + { + PxArticulationAttachmentSetLimitParametersMutNative(selfPod, parametersPod); + } + + public static void PxArticulationAttachmentSetLimitParametersMut( PhysxPxArticulationAttachmentPod* selfPod, ref PhysxPxArticulationTendonLimitPod parametersPod) + { + fixed (PhysxPxArticulationTendonLimitPod* pparametersPod = ¶metersPod) + { + PxArticulationAttachmentSetLimitParametersMutNative(selfPod, (PhysxPxArticulationTendonLimitPod*)pparametersPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_getLimitParameters")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationTendonLimitPod PxArticulationAttachmentGetLimitParametersNative(PhysxPxArticulationAttachmentPod* selfPod); + + public static PhysxPxArticulationTendonLimitPod PxArticulationAttachmentGetLimitParameters( PhysxPxArticulationAttachmentPod* selfPod) + { + PhysxPxArticulationTendonLimitPod ret = PxArticulationAttachmentGetLimitParametersNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_setRelativeOffset_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationAttachmentSetRelativeOffsetMutNative(PhysxPxArticulationAttachmentPod* selfPod, PhysxPxVec3Pod* offsetPod); + + public static void PxArticulationAttachmentSetRelativeOffsetMut( PhysxPxArticulationAttachmentPod* selfPod, PhysxPxVec3Pod* offsetPod) + { + PxArticulationAttachmentSetRelativeOffsetMutNative(selfPod, offsetPod); + } + + public static void PxArticulationAttachmentSetRelativeOffsetMut( PhysxPxArticulationAttachmentPod* selfPod, ref PhysxPxVec3Pod offsetPod) + { + fixed (PhysxPxVec3Pod* poffsetPod = &offsetPod) + { + PxArticulationAttachmentSetRelativeOffsetMutNative(selfPod, (PhysxPxVec3Pod*)poffsetPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_getRelativeOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxArticulationAttachmentGetRelativeOffsetNative(PhysxPxArticulationAttachmentPod* selfPod); + + public static PhysxPxVec3Pod PxArticulationAttachmentGetRelativeOffset( PhysxPxArticulationAttachmentPod* selfPod) + { + PhysxPxVec3Pod ret = PxArticulationAttachmentGetRelativeOffsetNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_setCoefficient_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationAttachmentSetCoefficientMutNative(PhysxPxArticulationAttachmentPod* selfPod, float coefficient); + + public static void PxArticulationAttachmentSetCoefficientMut( PhysxPxArticulationAttachmentPod* selfPod, float coefficient) + { + PxArticulationAttachmentSetCoefficientMutNative(selfPod, coefficient); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_getCoefficient")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationAttachmentGetCoefficientNative(PhysxPxArticulationAttachmentPod* selfPod); + + public static float PxArticulationAttachmentGetCoefficient( PhysxPxArticulationAttachmentPod* selfPod) + { + float ret = PxArticulationAttachmentGetCoefficientNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_getLink")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationLinkPod* PxArticulationAttachmentGetLinkNative(PhysxPxArticulationAttachmentPod* selfPod); + + public static PhysxPxArticulationLinkPod* PxArticulationAttachmentGetLink( PhysxPxArticulationAttachmentPod* selfPod) + { + PhysxPxArticulationLinkPod* ret = PxArticulationAttachmentGetLinkNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_getParent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationAttachmentPod* PxArticulationAttachmentGetParentNative(PhysxPxArticulationAttachmentPod* selfPod); + + public static PhysxPxArticulationAttachmentPod* PxArticulationAttachmentGetParent( PhysxPxArticulationAttachmentPod* selfPod) + { + PhysxPxArticulationAttachmentPod* ret = PxArticulationAttachmentGetParentNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_isLeaf")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxArticulationAttachmentIsLeafNative(PhysxPxArticulationAttachmentPod* selfPod); + + public static bool PxArticulationAttachmentIsLeaf( PhysxPxArticulationAttachmentPod* selfPod) + { + byte ret = PxArticulationAttachmentIsLeafNative(selfPod); + return ret != 0; + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.006.cs b/Hexa.NET.PhysX/Generated/Functions.006.cs new file mode 100644 index 0000000..331deb4 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.006.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_getTendon")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationSpatialTendonPod* PxArticulationAttachmentGetTendonNative(PhysxPxArticulationAttachmentPod* selfPod); + + public static PhysxPxArticulationSpatialTendonPod* PxArticulationAttachmentGetTendon( PhysxPxArticulationAttachmentPod* selfPod) + { + PhysxPxArticulationSpatialTendonPod* ret = PxArticulationAttachmentGetTendonNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationAttachmentReleaseMutNative(PhysxPxArticulationAttachmentPod* selfPod); + + public static void PxArticulationAttachmentReleaseMut( PhysxPxArticulationAttachmentPod* selfPod) + { + PxArticulationAttachmentReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationAttachment_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxArticulationAttachmentGetConcreteTypeNameNative(PhysxPxArticulationAttachmentPod* selfPod); + + public static byte* PxArticulationAttachmentGetConcreteTypeName( PhysxPxArticulationAttachmentPod* selfPod) + { + byte* ret = PxArticulationAttachmentGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxArticulationAttachmentGetConcreteTypeNameS( PhysxPxArticulationAttachmentPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxArticulationAttachmentGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendonJoint_setCoefficient_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationTendonJointSetCoefficientMutNative(PhysxPxArticulationTendonJointPod* selfPod, int axisPod, float coefficient, float recipCoefficient); + + public static void PxArticulationTendonJointSetCoefficientMut( PhysxPxArticulationTendonJointPod* selfPod, int axisPod, float coefficient, float recipCoefficient) + { + PxArticulationTendonJointSetCoefficientMutNative(selfPod, axisPod, coefficient, recipCoefficient); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendonJoint_getCoefficient")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationTendonJointGetCoefficientNative(PhysxPxArticulationTendonJointPod* selfPod, int* axisPod, float* coefficientPod, float* recipcoefficientPod); + + public static void PxArticulationTendonJointGetCoefficient( PhysxPxArticulationTendonJointPod* selfPod, int* axisPod, float* coefficientPod, float* recipcoefficientPod) + { + PxArticulationTendonJointGetCoefficientNative(selfPod, axisPod, coefficientPod, recipcoefficientPod); + } + + public static void PxArticulationTendonJointGetCoefficient( PhysxPxArticulationTendonJointPod* selfPod, ref int axisPod, float* coefficientPod, float* recipcoefficientPod) + { + fixed (int* paxisPod = &axisPod) + { + PxArticulationTendonJointGetCoefficientNative(selfPod, (int*)paxisPod, coefficientPod, recipcoefficientPod); + } + } + + public static void PxArticulationTendonJointGetCoefficient( PhysxPxArticulationTendonJointPod* selfPod, int* axisPod, ref float coefficientPod, float* recipcoefficientPod) + { + fixed (float* pcoefficientPod = &coefficientPod) + { + PxArticulationTendonJointGetCoefficientNative(selfPod, axisPod, (float*)pcoefficientPod, recipcoefficientPod); + } + } + + public static void PxArticulationTendonJointGetCoefficient( PhysxPxArticulationTendonJointPod* selfPod, ref int axisPod, ref float coefficientPod, float* recipcoefficientPod) + { + fixed (int* paxisPod = &axisPod) + { + fixed (float* pcoefficientPod = &coefficientPod) + { + PxArticulationTendonJointGetCoefficientNative(selfPod, (int*)paxisPod, (float*)pcoefficientPod, recipcoefficientPod); + } + } + } + + public static void PxArticulationTendonJointGetCoefficient( PhysxPxArticulationTendonJointPod* selfPod, int* axisPod, float* coefficientPod, ref float recipcoefficientPod) + { + fixed (float* precipcoefficientPod = &recipcoefficientPod) + { + PxArticulationTendonJointGetCoefficientNative(selfPod, axisPod, coefficientPod, (float*)precipcoefficientPod); + } + } + + public static void PxArticulationTendonJointGetCoefficient( PhysxPxArticulationTendonJointPod* selfPod, ref int axisPod, float* coefficientPod, ref float recipcoefficientPod) + { + fixed (int* paxisPod = &axisPod) + { + fixed (float* precipcoefficientPod = &recipcoefficientPod) + { + PxArticulationTendonJointGetCoefficientNative(selfPod, (int*)paxisPod, coefficientPod, (float*)precipcoefficientPod); + } + } + } + + public static void PxArticulationTendonJointGetCoefficient( PhysxPxArticulationTendonJointPod* selfPod, int* axisPod, ref float coefficientPod, ref float recipcoefficientPod) + { + fixed (float* pcoefficientPod = &coefficientPod) + { + fixed (float* precipcoefficientPod = &recipcoefficientPod) + { + PxArticulationTendonJointGetCoefficientNative(selfPod, axisPod, (float*)pcoefficientPod, (float*)precipcoefficientPod); + } + } + } + + public static void PxArticulationTendonJointGetCoefficient( PhysxPxArticulationTendonJointPod* selfPod, ref int axisPod, ref float coefficientPod, ref float recipcoefficientPod) + { + fixed (int* paxisPod = &axisPod) + { + fixed (float* pcoefficientPod = &coefficientPod) + { + fixed (float* precipcoefficientPod = &recipcoefficientPod) + { + PxArticulationTendonJointGetCoefficientNative(selfPod, (int*)paxisPod, (float*)pcoefficientPod, (float*)precipcoefficientPod); + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendonJoint_getLink")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationLinkPod* PxArticulationTendonJointGetLinkNative(PhysxPxArticulationTendonJointPod* selfPod); + + public static PhysxPxArticulationLinkPod* PxArticulationTendonJointGetLink( PhysxPxArticulationTendonJointPod* selfPod) + { + PhysxPxArticulationLinkPod* ret = PxArticulationTendonJointGetLinkNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendonJoint_getParent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationTendonJointPod* PxArticulationTendonJointGetParentNative(PhysxPxArticulationTendonJointPod* selfPod); + + public static PhysxPxArticulationTendonJointPod* PxArticulationTendonJointGetParent( PhysxPxArticulationTendonJointPod* selfPod) + { + PhysxPxArticulationTendonJointPod* ret = PxArticulationTendonJointGetParentNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendonJoint_getTendon")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationFixedTendonPod* PxArticulationTendonJointGetTendonNative(PhysxPxArticulationTendonJointPod* selfPod); + + public static PhysxPxArticulationFixedTendonPod* PxArticulationTendonJointGetTendon( PhysxPxArticulationTendonJointPod* selfPod) + { + PhysxPxArticulationFixedTendonPod* ret = PxArticulationTendonJointGetTendonNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendonJoint_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationTendonJointReleaseMutNative(PhysxPxArticulationTendonJointPod* selfPod); + + public static void PxArticulationTendonJointReleaseMut( PhysxPxArticulationTendonJointPod* selfPod) + { + PxArticulationTendonJointReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendonJoint_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxArticulationTendonJointGetConcreteTypeNameNative(PhysxPxArticulationTendonJointPod* selfPod); + + public static byte* PxArticulationTendonJointGetConcreteTypeName( PhysxPxArticulationTendonJointPod* selfPod) + { + byte* ret = PxArticulationTendonJointGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxArticulationTendonJointGetConcreteTypeNameS( PhysxPxArticulationTendonJointPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxArticulationTendonJointGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendon_setStiffness_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationTendonSetStiffnessMutNative(PhysxPxArticulationTendonPod* selfPod, float stiffness); + + public static void PxArticulationTendonSetStiffnessMut( PhysxPxArticulationTendonPod* selfPod, float stiffness) + { + PxArticulationTendonSetStiffnessMutNative(selfPod, stiffness); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendon_getStiffness")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationTendonGetStiffnessNative(PhysxPxArticulationTendonPod* selfPod); + + public static float PxArticulationTendonGetStiffness( PhysxPxArticulationTendonPod* selfPod) + { + float ret = PxArticulationTendonGetStiffnessNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendon_setDamping_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationTendonSetDampingMutNative(PhysxPxArticulationTendonPod* selfPod, float damping); + + public static void PxArticulationTendonSetDampingMut( PhysxPxArticulationTendonPod* selfPod, float damping) + { + PxArticulationTendonSetDampingMutNative(selfPod, damping); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendon_getDamping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationTendonGetDampingNative(PhysxPxArticulationTendonPod* selfPod); + + public static float PxArticulationTendonGetDamping( PhysxPxArticulationTendonPod* selfPod) + { + float ret = PxArticulationTendonGetDampingNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendon_setLimitStiffness_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationTendonSetLimitStiffnessMutNative(PhysxPxArticulationTendonPod* selfPod, float stiffness); + + public static void PxArticulationTendonSetLimitStiffnessMut( PhysxPxArticulationTendonPod* selfPod, float stiffness) + { + PxArticulationTendonSetLimitStiffnessMutNative(selfPod, stiffness); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendon_getLimitStiffness")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationTendonGetLimitStiffnessNative(PhysxPxArticulationTendonPod* selfPod); + + public static float PxArticulationTendonGetLimitStiffness( PhysxPxArticulationTendonPod* selfPod) + { + float ret = PxArticulationTendonGetLimitStiffnessNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendon_setOffset_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationTendonSetOffsetMutNative(PhysxPxArticulationTendonPod* selfPod, float offset, byte autowake); + + public static void PxArticulationTendonSetOffsetMut( PhysxPxArticulationTendonPod* selfPod, float offset, bool autowake) + { + PxArticulationTendonSetOffsetMutNative(selfPod, offset, autowake ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendon_getOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationTendonGetOffsetNative(PhysxPxArticulationTendonPod* selfPod); + + public static float PxArticulationTendonGetOffset( PhysxPxArticulationTendonPod* selfPod) + { + float ret = PxArticulationTendonGetOffsetNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendon_getArticulation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationReducedCoordinatePod* PxArticulationTendonGetArticulationNative(PhysxPxArticulationTendonPod* selfPod); + + public static PhysxPxArticulationReducedCoordinatePod* PxArticulationTendonGetArticulation( PhysxPxArticulationTendonPod* selfPod) + { + PhysxPxArticulationReducedCoordinatePod* ret = PxArticulationTendonGetArticulationNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationTendon_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationTendonReleaseMutNative(PhysxPxArticulationTendonPod* selfPod); + + public static void PxArticulationTendonReleaseMut( PhysxPxArticulationTendonPod* selfPod) + { + PxArticulationTendonReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSpatialTendon_createAttachment_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationAttachmentPod* PxArticulationSpatialTendonCreateAttachmentMutNative(PhysxPxArticulationSpatialTendonPod* selfPod, PhysxPxArticulationAttachmentPod* parentPod, float coefficient, PhysxPxVec3Pod relativeoffsetPod, PhysxPxArticulationLinkPod* linkPod); + + public static PhysxPxArticulationAttachmentPod* PxArticulationSpatialTendonCreateAttachmentMut( PhysxPxArticulationSpatialTendonPod* selfPod, PhysxPxArticulationAttachmentPod* parentPod, float coefficient, PhysxPxVec3Pod relativeoffsetPod, PhysxPxArticulationLinkPod* linkPod) + { + PhysxPxArticulationAttachmentPod* ret = PxArticulationSpatialTendonCreateAttachmentMutNative(selfPod, parentPod, coefficient, relativeoffsetPod, linkPod); + return ret; + } + + public static PhysxPxArticulationAttachmentPod* PxArticulationSpatialTendonCreateAttachmentMut( PhysxPxArticulationSpatialTendonPod* selfPod, ref PhysxPxArticulationAttachmentPod parentPod, float coefficient, PhysxPxVec3Pod relativeoffsetPod, PhysxPxArticulationLinkPod* linkPod) + { + fixed (PhysxPxArticulationAttachmentPod* pparentPod = &parentPod) + { + PhysxPxArticulationAttachmentPod* ret = PxArticulationSpatialTendonCreateAttachmentMutNative(selfPod, (PhysxPxArticulationAttachmentPod*)pparentPod, coefficient, relativeoffsetPod, linkPod); + return ret; + } + } + + public static PhysxPxArticulationAttachmentPod* PxArticulationSpatialTendonCreateAttachmentMut( PhysxPxArticulationSpatialTendonPod* selfPod, PhysxPxArticulationAttachmentPod* parentPod, float coefficient, PhysxPxVec3Pod relativeoffsetPod, ref PhysxPxArticulationLinkPod linkPod) + { + fixed (PhysxPxArticulationLinkPod* plinkPod = &linkPod) + { + PhysxPxArticulationAttachmentPod* ret = PxArticulationSpatialTendonCreateAttachmentMutNative(selfPod, parentPod, coefficient, relativeoffsetPod, (PhysxPxArticulationLinkPod*)plinkPod); + return ret; + } + } + + public static PhysxPxArticulationAttachmentPod* PxArticulationSpatialTendonCreateAttachmentMut( PhysxPxArticulationSpatialTendonPod* selfPod, ref PhysxPxArticulationAttachmentPod parentPod, float coefficient, PhysxPxVec3Pod relativeoffsetPod, ref PhysxPxArticulationLinkPod linkPod) + { + fixed (PhysxPxArticulationAttachmentPod* pparentPod = &parentPod) + { + fixed (PhysxPxArticulationLinkPod* plinkPod = &linkPod) + { + PhysxPxArticulationAttachmentPod* ret = PxArticulationSpatialTendonCreateAttachmentMutNative(selfPod, (PhysxPxArticulationAttachmentPod*)pparentPod, coefficient, relativeoffsetPod, (PhysxPxArticulationLinkPod*)plinkPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSpatialTendon_getAttachments")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationSpatialTendonGetAttachmentsNative(PhysxPxArticulationSpatialTendonPod* selfPod, PhysxPxArticulationAttachmentPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxArticulationSpatialTendonGetAttachments( PhysxPxArticulationSpatialTendonPod* selfPod, PhysxPxArticulationAttachmentPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxArticulationSpatialTendonGetAttachmentsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxArticulationSpatialTendonGetAttachments( PhysxPxArticulationSpatialTendonPod* selfPod, ref PhysxPxArticulationAttachmentPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxArticulationAttachmentPod** puserbufferPod = &userbufferPod) + { + uint ret = PxArticulationSpatialTendonGetAttachmentsNative(selfPod, (PhysxPxArticulationAttachmentPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSpatialTendon_getNbAttachments")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationSpatialTendonGetNbAttachmentsNative(PhysxPxArticulationSpatialTendonPod* selfPod); + + public static uint PxArticulationSpatialTendonGetNbAttachments( PhysxPxArticulationSpatialTendonPod* selfPod) + { + uint ret = PxArticulationSpatialTendonGetNbAttachmentsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSpatialTendon_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxArticulationSpatialTendonGetConcreteTypeNameNative(PhysxPxArticulationSpatialTendonPod* selfPod); + + public static byte* PxArticulationSpatialTendonGetConcreteTypeName( PhysxPxArticulationSpatialTendonPod* selfPod) + { + byte* ret = PxArticulationSpatialTendonGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxArticulationSpatialTendonGetConcreteTypeNameS( PhysxPxArticulationSpatialTendonPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxArticulationSpatialTendonGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationFixedTendon_createTendonJoint_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationTendonJointPod* PxArticulationFixedTendonCreateTendonJointMutNative(PhysxPxArticulationFixedTendonPod* selfPod, PhysxPxArticulationTendonJointPod* parentPod, int axisPod, float coefficient, float recipCoefficient, PhysxPxArticulationLinkPod* linkPod); + + public static PhysxPxArticulationTendonJointPod* PxArticulationFixedTendonCreateTendonJointMut( PhysxPxArticulationFixedTendonPod* selfPod, PhysxPxArticulationTendonJointPod* parentPod, int axisPod, float coefficient, float recipCoefficient, PhysxPxArticulationLinkPod* linkPod) + { + PhysxPxArticulationTendonJointPod* ret = PxArticulationFixedTendonCreateTendonJointMutNative(selfPod, parentPod, axisPod, coefficient, recipCoefficient, linkPod); + return ret; + } + + public static PhysxPxArticulationTendonJointPod* PxArticulationFixedTendonCreateTendonJointMut( PhysxPxArticulationFixedTendonPod* selfPod, ref PhysxPxArticulationTendonJointPod parentPod, int axisPod, float coefficient, float recipCoefficient, PhysxPxArticulationLinkPod* linkPod) + { + fixed (PhysxPxArticulationTendonJointPod* pparentPod = &parentPod) + { + PhysxPxArticulationTendonJointPod* ret = PxArticulationFixedTendonCreateTendonJointMutNative(selfPod, (PhysxPxArticulationTendonJointPod*)pparentPod, axisPod, coefficient, recipCoefficient, linkPod); + return ret; + } + } + + public static PhysxPxArticulationTendonJointPod* PxArticulationFixedTendonCreateTendonJointMut( PhysxPxArticulationFixedTendonPod* selfPod, PhysxPxArticulationTendonJointPod* parentPod, int axisPod, float coefficient, float recipCoefficient, ref PhysxPxArticulationLinkPod linkPod) + { + fixed (PhysxPxArticulationLinkPod* plinkPod = &linkPod) + { + PhysxPxArticulationTendonJointPod* ret = PxArticulationFixedTendonCreateTendonJointMutNative(selfPod, parentPod, axisPod, coefficient, recipCoefficient, (PhysxPxArticulationLinkPod*)plinkPod); + return ret; + } + } + + public static PhysxPxArticulationTendonJointPod* PxArticulationFixedTendonCreateTendonJointMut( PhysxPxArticulationFixedTendonPod* selfPod, ref PhysxPxArticulationTendonJointPod parentPod, int axisPod, float coefficient, float recipCoefficient, ref PhysxPxArticulationLinkPod linkPod) + { + fixed (PhysxPxArticulationTendonJointPod* pparentPod = &parentPod) + { + fixed (PhysxPxArticulationLinkPod* plinkPod = &linkPod) + { + PhysxPxArticulationTendonJointPod* ret = PxArticulationFixedTendonCreateTendonJointMutNative(selfPod, (PhysxPxArticulationTendonJointPod*)pparentPod, axisPod, coefficient, recipCoefficient, (PhysxPxArticulationLinkPod*)plinkPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationFixedTendon_getTendonJoints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationFixedTendonGetTendonJointsNative(PhysxPxArticulationFixedTendonPod* selfPod, PhysxPxArticulationTendonJointPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxArticulationFixedTendonGetTendonJoints( PhysxPxArticulationFixedTendonPod* selfPod, PhysxPxArticulationTendonJointPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxArticulationFixedTendonGetTendonJointsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxArticulationFixedTendonGetTendonJoints( PhysxPxArticulationFixedTendonPod* selfPod, ref PhysxPxArticulationTendonJointPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxArticulationTendonJointPod** puserbufferPod = &userbufferPod) + { + uint ret = PxArticulationFixedTendonGetTendonJointsNative(selfPod, (PhysxPxArticulationTendonJointPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationFixedTendon_getNbTendonJoints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationFixedTendonGetNbTendonJointsNative(PhysxPxArticulationFixedTendonPod* selfPod); + + public static uint PxArticulationFixedTendonGetNbTendonJoints( PhysxPxArticulationFixedTendonPod* selfPod) + { + uint ret = PxArticulationFixedTendonGetNbTendonJointsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationFixedTendon_setRestLength_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationFixedTendonSetRestLengthMutNative(PhysxPxArticulationFixedTendonPod* selfPod, float restLength); + + public static void PxArticulationFixedTendonSetRestLengthMut( PhysxPxArticulationFixedTendonPod* selfPod, float restLength) + { + PxArticulationFixedTendonSetRestLengthMutNative(selfPod, restLength); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationFixedTendon_getRestLength")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationFixedTendonGetRestLengthNative(PhysxPxArticulationFixedTendonPod* selfPod); + + public static float PxArticulationFixedTendonGetRestLength( PhysxPxArticulationFixedTendonPod* selfPod) + { + float ret = PxArticulationFixedTendonGetRestLengthNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationFixedTendon_setLimitParameters_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationFixedTendonSetLimitParametersMutNative(PhysxPxArticulationFixedTendonPod* selfPod, PhysxPxArticulationTendonLimitPod* parameterPod); + + public static void PxArticulationFixedTendonSetLimitParametersMut( PhysxPxArticulationFixedTendonPod* selfPod, PhysxPxArticulationTendonLimitPod* parameterPod) + { + PxArticulationFixedTendonSetLimitParametersMutNative(selfPod, parameterPod); + } + + public static void PxArticulationFixedTendonSetLimitParametersMut( PhysxPxArticulationFixedTendonPod* selfPod, ref PhysxPxArticulationTendonLimitPod parameterPod) + { + fixed (PhysxPxArticulationTendonLimitPod* pparameterPod = ¶meterPod) + { + PxArticulationFixedTendonSetLimitParametersMutNative(selfPod, (PhysxPxArticulationTendonLimitPod*)pparameterPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationFixedTendon_getLimitParameters")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationTendonLimitPod PxArticulationFixedTendonGetLimitParametersNative(PhysxPxArticulationFixedTendonPod* selfPod); + + public static PhysxPxArticulationTendonLimitPod PxArticulationFixedTendonGetLimitParameters( PhysxPxArticulationFixedTendonPod* selfPod) + { + PhysxPxArticulationTendonLimitPod ret = PxArticulationFixedTendonGetLimitParametersNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationFixedTendon_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxArticulationFixedTendonGetConcreteTypeNameNative(PhysxPxArticulationFixedTendonPod* selfPod); + + public static byte* PxArticulationFixedTendonGetConcreteTypeName( PhysxPxArticulationFixedTendonPod* selfPod) + { + byte* ret = PxArticulationFixedTendonGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxArticulationFixedTendonGetConcreteTypeNameS( PhysxPxArticulationFixedTendonPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxArticulationFixedTendonGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationCache_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationCachePod PxArticulationCacheNewNative(); + + public static PhysxPxArticulationCachePod PxArticulationCacheNew() + { + PhysxPxArticulationCachePod ret = PxArticulationCacheNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationCache_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationCacheReleaseMutNative(PhysxPxArticulationCachePod* selfPod); + + public static void PxArticulationCacheReleaseMut( PhysxPxArticulationCachePod* selfPod) + { + PxArticulationCacheReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSensor_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationSensorReleaseMutNative(PhysxPxArticulationSensorPod* selfPod); + + public static void PxArticulationSensorReleaseMut( PhysxPxArticulationSensorPod* selfPod) + { + PxArticulationSensorReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSensor_getForces")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSpatialForcePod PxArticulationSensorGetForcesNative(PhysxPxArticulationSensorPod* selfPod); + + public static PhysxPxSpatialForcePod PxArticulationSensorGetForces( PhysxPxArticulationSensorPod* selfPod) + { + PhysxPxSpatialForcePod ret = PxArticulationSensorGetForcesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSensor_getRelativePose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxArticulationSensorGetRelativePoseNative(PhysxPxArticulationSensorPod* selfPod); + + public static PhysxPxTransformPod PxArticulationSensorGetRelativePose( PhysxPxArticulationSensorPod* selfPod) + { + PhysxPxTransformPod ret = PxArticulationSensorGetRelativePoseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSensor_setRelativePose_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationSensorSetRelativePoseMutNative(PhysxPxArticulationSensorPod* selfPod, PhysxPxTransformPod* posePod); + + public static void PxArticulationSensorSetRelativePoseMut( PhysxPxArticulationSensorPod* selfPod, PhysxPxTransformPod* posePod) + { + PxArticulationSensorSetRelativePoseMutNative(selfPod, posePod); + } + + public static void PxArticulationSensorSetRelativePoseMut( PhysxPxArticulationSensorPod* selfPod, ref PhysxPxTransformPod posePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PxArticulationSensorSetRelativePoseMutNative(selfPod, (PhysxPxTransformPod*)pposePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSensor_getLink")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationLinkPod* PxArticulationSensorGetLinkNative(PhysxPxArticulationSensorPod* selfPod); + + public static PhysxPxArticulationLinkPod* PxArticulationSensorGetLink( PhysxPxArticulationSensorPod* selfPod) + { + PhysxPxArticulationLinkPod* ret = PxArticulationSensorGetLinkNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSensor_getIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationSensorGetIndexNative(PhysxPxArticulationSensorPod* selfPod); + + public static uint PxArticulationSensorGetIndex( PhysxPxArticulationSensorPod* selfPod) + { + uint ret = PxArticulationSensorGetIndexNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSensor_getArticulation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationReducedCoordinatePod* PxArticulationSensorGetArticulationNative(PhysxPxArticulationSensorPod* selfPod); + + public static PhysxPxArticulationReducedCoordinatePod* PxArticulationSensorGetArticulation( PhysxPxArticulationSensorPod* selfPod) + { + PhysxPxArticulationReducedCoordinatePod* ret = PxArticulationSensorGetArticulationNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSensor_getFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxArticulationSensorGetFlagsNative(PhysxPxArticulationSensorPod* selfPod); + + public static byte PxArticulationSensorGetFlags( PhysxPxArticulationSensorPod* selfPod) + { + byte ret = PxArticulationSensorGetFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSensor_setFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationSensorSetFlagMutNative(PhysxPxArticulationSensorPod* selfPod, int flagPod, byte enabled); + + public static void PxArticulationSensorSetFlagMut( PhysxPxArticulationSensorPod* selfPod, int flagPod, bool enabled) + { + PxArticulationSensorSetFlagMutNative(selfPod, flagPod, enabled ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationSensor_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxArticulationSensorGetConcreteTypeNameNative(PhysxPxArticulationSensorPod* selfPod); + + public static byte* PxArticulationSensorGetConcreteTypeName( PhysxPxArticulationSensorPod* selfPod) + { + byte* ret = PxArticulationSensorGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxArticulationSensorGetConcreteTypeNameS( PhysxPxArticulationSensorPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxArticulationSensorGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getScene")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxScenePod* PxArticulationReducedCoordinateGetSceneNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static PhysxPxScenePod* PxArticulationReducedCoordinateGetScene( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PhysxPxScenePod* ret = PxArticulationReducedCoordinateGetSceneNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setSolverIterationCounts_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetSolverIterationCountsMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, uint minPositionIters, uint minVelocityIters); + + public static void PxArticulationReducedCoordinateSetSolverIterationCountsMut( PhysxPxArticulationReducedCoordinatePod* selfPod, uint minPositionIters, uint minVelocityIters) + { + PxArticulationReducedCoordinateSetSolverIterationCountsMutNative(selfPod, minPositionIters, minVelocityIters); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getSolverIterationCounts")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateGetSolverIterationCountsNative(PhysxPxArticulationReducedCoordinatePod* selfPod, uint* minpositionitersPod, uint* minvelocityitersPod); + + public static void PxArticulationReducedCoordinateGetSolverIterationCounts( PhysxPxArticulationReducedCoordinatePod* selfPod, uint* minpositionitersPod, uint* minvelocityitersPod) + { + PxArticulationReducedCoordinateGetSolverIterationCountsNative(selfPod, minpositionitersPod, minvelocityitersPod); + } + + public static void PxArticulationReducedCoordinateGetSolverIterationCounts( PhysxPxArticulationReducedCoordinatePod* selfPod, ref uint minpositionitersPod, uint* minvelocityitersPod) + { + fixed (uint* pminpositionitersPod = &minpositionitersPod) + { + PxArticulationReducedCoordinateGetSolverIterationCountsNative(selfPod, (uint*)pminpositionitersPod, minvelocityitersPod); + } + } + + public static void PxArticulationReducedCoordinateGetSolverIterationCounts( PhysxPxArticulationReducedCoordinatePod* selfPod, uint* minpositionitersPod, ref uint minvelocityitersPod) + { + fixed (uint* pminvelocityitersPod = &minvelocityitersPod) + { + PxArticulationReducedCoordinateGetSolverIterationCountsNative(selfPod, minpositionitersPod, (uint*)pminvelocityitersPod); + } + } + + public static void PxArticulationReducedCoordinateGetSolverIterationCounts( PhysxPxArticulationReducedCoordinatePod* selfPod, ref uint minpositionitersPod, ref uint minvelocityitersPod) + { + fixed (uint* pminpositionitersPod = &minpositionitersPod) + { + fixed (uint* pminvelocityitersPod = &minvelocityitersPod) + { + PxArticulationReducedCoordinateGetSolverIterationCountsNative(selfPod, (uint*)pminpositionitersPod, (uint*)pminvelocityitersPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_isSleeping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxArticulationReducedCoordinateIsSleepingNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static bool PxArticulationReducedCoordinateIsSleeping( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + byte ret = PxArticulationReducedCoordinateIsSleepingNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setSleepThreshold_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetSleepThresholdMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, float threshold); + + public static void PxArticulationReducedCoordinateSetSleepThresholdMut( PhysxPxArticulationReducedCoordinatePod* selfPod, float threshold) + { + PxArticulationReducedCoordinateSetSleepThresholdMutNative(selfPod, threshold); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getSleepThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationReducedCoordinateGetSleepThresholdNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static float PxArticulationReducedCoordinateGetSleepThreshold( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + float ret = PxArticulationReducedCoordinateGetSleepThresholdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setStabilizationThreshold_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetStabilizationThresholdMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, float threshold); + + public static void PxArticulationReducedCoordinateSetStabilizationThresholdMut( PhysxPxArticulationReducedCoordinatePod* selfPod, float threshold) + { + PxArticulationReducedCoordinateSetStabilizationThresholdMutNative(selfPod, threshold); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getStabilizationThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationReducedCoordinateGetStabilizationThresholdNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static float PxArticulationReducedCoordinateGetStabilizationThreshold( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + float ret = PxArticulationReducedCoordinateGetStabilizationThresholdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setWakeCounter_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetWakeCounterMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, float wakeCounterValue); + + public static void PxArticulationReducedCoordinateSetWakeCounterMut( PhysxPxArticulationReducedCoordinatePod* selfPod, float wakeCounterValue) + { + PxArticulationReducedCoordinateSetWakeCounterMutNative(selfPod, wakeCounterValue); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getWakeCounter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationReducedCoordinateGetWakeCounterNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static float PxArticulationReducedCoordinateGetWakeCounter( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + float ret = PxArticulationReducedCoordinateGetWakeCounterNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_wakeUp_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateWakeUpMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static void PxArticulationReducedCoordinateWakeUpMut( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PxArticulationReducedCoordinateWakeUpMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_putToSleep_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinatePutToSleepMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static void PxArticulationReducedCoordinatePutToSleepMut( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PxArticulationReducedCoordinatePutToSleepMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setMaxCOMLinearVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetMaxCOMLinearVelocityMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, float maxLinearVelocity); + + public static void PxArticulationReducedCoordinateSetMaxCOMLinearVelocityMut( PhysxPxArticulationReducedCoordinatePod* selfPod, float maxLinearVelocity) + { + PxArticulationReducedCoordinateSetMaxCOMLinearVelocityMutNative(selfPod, maxLinearVelocity); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getMaxCOMLinearVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationReducedCoordinateGetMaxCOMLinearVelocityNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static float PxArticulationReducedCoordinateGetMaxCOMLinearVelocity( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + float ret = PxArticulationReducedCoordinateGetMaxCOMLinearVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setMaxCOMAngularVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetMaxCOMAngularVelocityMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, float maxAngularVelocity); + + public static void PxArticulationReducedCoordinateSetMaxCOMAngularVelocityMut( PhysxPxArticulationReducedCoordinatePod* selfPod, float maxAngularVelocity) + { + PxArticulationReducedCoordinateSetMaxCOMAngularVelocityMutNative(selfPod, maxAngularVelocity); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getMaxCOMAngularVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationReducedCoordinateGetMaxCOMAngularVelocityNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static float PxArticulationReducedCoordinateGetMaxCOMAngularVelocity( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + float ret = PxArticulationReducedCoordinateGetMaxCOMAngularVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_createLink_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationLinkPod* PxArticulationReducedCoordinateCreateLinkMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationLinkPod* parentPod, PhysxPxTransformPod* posePod); + + public static PhysxPxArticulationLinkPod* PxArticulationReducedCoordinateCreateLinkMut( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationLinkPod* parentPod, PhysxPxTransformPod* posePod) + { + PhysxPxArticulationLinkPod* ret = PxArticulationReducedCoordinateCreateLinkMutNative(selfPod, parentPod, posePod); + return ret; + } + + public static PhysxPxArticulationLinkPod* PxArticulationReducedCoordinateCreateLinkMut( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationLinkPod parentPod, PhysxPxTransformPod* posePod) + { + fixed (PhysxPxArticulationLinkPod* pparentPod = &parentPod) + { + PhysxPxArticulationLinkPod* ret = PxArticulationReducedCoordinateCreateLinkMutNative(selfPod, (PhysxPxArticulationLinkPod*)pparentPod, posePod); + return ret; + } + } + + public static PhysxPxArticulationLinkPod* PxArticulationReducedCoordinateCreateLinkMut( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationLinkPod* parentPod, ref PhysxPxTransformPod posePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PhysxPxArticulationLinkPod* ret = PxArticulationReducedCoordinateCreateLinkMutNative(selfPod, parentPod, (PhysxPxTransformPod*)pposePod); + return ret; + } + } + + public static PhysxPxArticulationLinkPod* PxArticulationReducedCoordinateCreateLinkMut( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationLinkPod parentPod, ref PhysxPxTransformPod posePod) + { + fixed (PhysxPxArticulationLinkPod* pparentPod = &parentPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PhysxPxArticulationLinkPod* ret = PxArticulationReducedCoordinateCreateLinkMutNative(selfPod, (PhysxPxArticulationLinkPod*)pparentPod, (PhysxPxTransformPod*)pposePod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateReleaseMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static void PxArticulationReducedCoordinateReleaseMut( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PxArticulationReducedCoordinateReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getNbLinks")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetNbLinksNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static uint PxArticulationReducedCoordinateGetNbLinks( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + uint ret = PxArticulationReducedCoordinateGetNbLinksNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getLinks")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetLinksNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationLinkPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxArticulationReducedCoordinateGetLinks( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationLinkPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxArticulationReducedCoordinateGetLinksNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxArticulationReducedCoordinateGetLinks( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationLinkPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxArticulationLinkPod** puserbufferPod = &userbufferPod) + { + uint ret = PxArticulationReducedCoordinateGetLinksNative(selfPod, (PhysxPxArticulationLinkPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getNbShapes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetNbShapesNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static uint PxArticulationReducedCoordinateGetNbShapes( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + uint ret = PxArticulationReducedCoordinateGetNbShapesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setName_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetNameMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, byte* name); + + public static void PxArticulationReducedCoordinateSetNameMut( PhysxPxArticulationReducedCoordinatePod* selfPod, byte* name) + { + PxArticulationReducedCoordinateSetNameMutNative(selfPod, name); + } + + public static void PxArticulationReducedCoordinateSetNameMut( PhysxPxArticulationReducedCoordinatePod* selfPod, ref byte name) + { + fixed (byte* pname = &name) + { + PxArticulationReducedCoordinateSetNameMutNative(selfPod, (byte*)pname); + } + } + + public static void PxArticulationReducedCoordinateSetNameMut( PhysxPxArticulationReducedCoordinatePod* selfPod, string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxArticulationReducedCoordinateSetNameMutNative(selfPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxArticulationReducedCoordinateGetNameNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static byte* PxArticulationReducedCoordinateGetName( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + byte* ret = PxArticulationReducedCoordinateGetNameNative(selfPod); + return ret; + } + + public static string PxArticulationReducedCoordinateGetNameS( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxArticulationReducedCoordinateGetNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getWorldBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxArticulationReducedCoordinateGetWorldBoundsNative(PhysxPxArticulationReducedCoordinatePod* selfPod, float inflation); + + public static PhysxPxBounds3Pod PxArticulationReducedCoordinateGetWorldBounds( PhysxPxArticulationReducedCoordinatePod* selfPod, float inflation) + { + PhysxPxBounds3Pod ret = PxArticulationReducedCoordinateGetWorldBoundsNative(selfPod, inflation); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getAggregate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxAggregatePod* PxArticulationReducedCoordinateGetAggregateNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static PhysxPxAggregatePod* PxArticulationReducedCoordinateGetAggregate( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PhysxPxAggregatePod* ret = PxArticulationReducedCoordinateGetAggregateNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setArticulationFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetArticulationFlagsMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, byte flagsPod); + + public static void PxArticulationReducedCoordinateSetArticulationFlagsMut( PhysxPxArticulationReducedCoordinatePod* selfPod, byte flagsPod) + { + PxArticulationReducedCoordinateSetArticulationFlagsMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setArticulationFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetArticulationFlagMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, int flagPod, byte value); + + public static void PxArticulationReducedCoordinateSetArticulationFlagMut( PhysxPxArticulationReducedCoordinatePod* selfPod, int flagPod, bool value) + { + PxArticulationReducedCoordinateSetArticulationFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getArticulationFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxArticulationReducedCoordinateGetArticulationFlagsNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static byte PxArticulationReducedCoordinateGetArticulationFlags( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + byte ret = PxArticulationReducedCoordinateGetArticulationFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getDofs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetDofsNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static uint PxArticulationReducedCoordinateGetDofs( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + uint ret = PxArticulationReducedCoordinateGetDofsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_createCache")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationCachePod* PxArticulationReducedCoordinateCreateCacheNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static PhysxPxArticulationCachePod* PxArticulationReducedCoordinateCreateCache( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PhysxPxArticulationCachePod* ret = PxArticulationReducedCoordinateCreateCacheNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getCacheDataSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetCacheDataSizeNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static uint PxArticulationReducedCoordinateGetCacheDataSize( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + uint ret = PxArticulationReducedCoordinateGetCacheDataSizeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_zeroCache")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateZeroCacheNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod); + + public static void PxArticulationReducedCoordinateZeroCache( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod) + { + PxArticulationReducedCoordinateZeroCacheNative(selfPod, cachePod); + } + + public static void PxArticulationReducedCoordinateZeroCache( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + PxArticulationReducedCoordinateZeroCacheNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_applyCache_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateApplyCacheMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, uint flagsPod, byte autowake); + + public static void PxArticulationReducedCoordinateApplyCacheMut( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, uint flagsPod, bool autowake) + { + PxArticulationReducedCoordinateApplyCacheMutNative(selfPod, cachePod, flagsPod, autowake ? (byte)1 : (byte)0); + } + + public static void PxArticulationReducedCoordinateApplyCacheMut( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod, uint flagsPod, bool autowake) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + PxArticulationReducedCoordinateApplyCacheMutNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod, flagsPod, autowake ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_copyInternalStateToCache")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateCopyInternalStateToCacheNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, uint flagsPod); + + public static void PxArticulationReducedCoordinateCopyInternalStateToCache( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, uint flagsPod) + { + PxArticulationReducedCoordinateCopyInternalStateToCacheNative(selfPod, cachePod, flagsPod); + } + + public static void PxArticulationReducedCoordinateCopyInternalStateToCache( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod, uint flagsPod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + PxArticulationReducedCoordinateCopyInternalStateToCacheNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod, flagsPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_packJointData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinatePackJointDataNative(PhysxPxArticulationReducedCoordinatePod* selfPod, float* maximum, float* reduced); + + public static void PxArticulationReducedCoordinatePackJointData( PhysxPxArticulationReducedCoordinatePod* selfPod, float* maximum, float* reduced) + { + PxArticulationReducedCoordinatePackJointDataNative(selfPod, maximum, reduced); + } + + public static void PxArticulationReducedCoordinatePackJointData( PhysxPxArticulationReducedCoordinatePod* selfPod, ref float maximum, float* reduced) + { + fixed (float* pmaximum = &maximum) + { + PxArticulationReducedCoordinatePackJointDataNative(selfPod, (float*)pmaximum, reduced); + } + } + + public static void PxArticulationReducedCoordinatePackJointData( PhysxPxArticulationReducedCoordinatePod* selfPod, float* maximum, ref float reduced) + { + fixed (float* preduced = &reduced) + { + PxArticulationReducedCoordinatePackJointDataNative(selfPod, maximum, (float*)preduced); + } + } + + public static void PxArticulationReducedCoordinatePackJointData( PhysxPxArticulationReducedCoordinatePod* selfPod, ref float maximum, ref float reduced) + { + fixed (float* pmaximum = &maximum) + { + fixed (float* preduced = &reduced) + { + PxArticulationReducedCoordinatePackJointDataNative(selfPod, (float*)pmaximum, (float*)preduced); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_unpackJointData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateUnpackJointDataNative(PhysxPxArticulationReducedCoordinatePod* selfPod, float* reduced, float* maximum); + + public static void PxArticulationReducedCoordinateUnpackJointData( PhysxPxArticulationReducedCoordinatePod* selfPod, float* reduced, float* maximum) + { + PxArticulationReducedCoordinateUnpackJointDataNative(selfPod, reduced, maximum); + } + + public static void PxArticulationReducedCoordinateUnpackJointData( PhysxPxArticulationReducedCoordinatePod* selfPod, ref float reduced, float* maximum) + { + fixed (float* preduced = &reduced) + { + PxArticulationReducedCoordinateUnpackJointDataNative(selfPod, (float*)preduced, maximum); + } + } + + public static void PxArticulationReducedCoordinateUnpackJointData( PhysxPxArticulationReducedCoordinatePod* selfPod, float* reduced, ref float maximum) + { + fixed (float* pmaximum = &maximum) + { + PxArticulationReducedCoordinateUnpackJointDataNative(selfPod, reduced, (float*)pmaximum); + } + } + + public static void PxArticulationReducedCoordinateUnpackJointData( PhysxPxArticulationReducedCoordinatePod* selfPod, ref float reduced, ref float maximum) + { + fixed (float* preduced = &reduced) + { + fixed (float* pmaximum = &maximum) + { + PxArticulationReducedCoordinateUnpackJointDataNative(selfPod, (float*)preduced, (float*)pmaximum); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_commonInit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateCommonInitNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static void PxArticulationReducedCoordinateCommonInit( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PxArticulationReducedCoordinateCommonInitNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_computeGeneralizedGravityForce")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateComputeGeneralizedGravityForceNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod); + + public static void PxArticulationReducedCoordinateComputeGeneralizedGravityForce( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod) + { + PxArticulationReducedCoordinateComputeGeneralizedGravityForceNative(selfPod, cachePod); + } + + public static void PxArticulationReducedCoordinateComputeGeneralizedGravityForce( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + PxArticulationReducedCoordinateComputeGeneralizedGravityForceNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_computeCoriolisAndCentrifugalForce")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateComputeCoriolisAndCentrifugalForceNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod); + + public static void PxArticulationReducedCoordinateComputeCoriolisAndCentrifugalForce( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod) + { + PxArticulationReducedCoordinateComputeCoriolisAndCentrifugalForceNative(selfPod, cachePod); + } + + public static void PxArticulationReducedCoordinateComputeCoriolisAndCentrifugalForce( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + PxArticulationReducedCoordinateComputeCoriolisAndCentrifugalForceNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_computeGeneralizedExternalForce")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateComputeGeneralizedExternalForceNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod); + + public static void PxArticulationReducedCoordinateComputeGeneralizedExternalForce( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod) + { + PxArticulationReducedCoordinateComputeGeneralizedExternalForceNative(selfPod, cachePod); + } + + public static void PxArticulationReducedCoordinateComputeGeneralizedExternalForce( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + PxArticulationReducedCoordinateComputeGeneralizedExternalForceNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_computeJointAcceleration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateComputeJointAccelerationNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod); + + public static void PxArticulationReducedCoordinateComputeJointAcceleration( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod) + { + PxArticulationReducedCoordinateComputeJointAccelerationNative(selfPod, cachePod); + } + + public static void PxArticulationReducedCoordinateComputeJointAcceleration( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + PxArticulationReducedCoordinateComputeJointAccelerationNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_computeJointForce")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateComputeJointForceNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod); + + public static void PxArticulationReducedCoordinateComputeJointForce( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod) + { + PxArticulationReducedCoordinateComputeJointForceNative(selfPod, cachePod); + } + + public static void PxArticulationReducedCoordinateComputeJointForce( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + PxArticulationReducedCoordinateComputeJointForceNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_computeDenseJacobian")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateComputeDenseJacobianNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, uint* nrowsPod, uint* ncolsPod); + + public static void PxArticulationReducedCoordinateComputeDenseJacobian( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, uint* nrowsPod, uint* ncolsPod) + { + PxArticulationReducedCoordinateComputeDenseJacobianNative(selfPod, cachePod, nrowsPod, ncolsPod); + } + + public static void PxArticulationReducedCoordinateComputeDenseJacobian( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod, uint* nrowsPod, uint* ncolsPod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + PxArticulationReducedCoordinateComputeDenseJacobianNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod, nrowsPod, ncolsPod); + } + } + + public static void PxArticulationReducedCoordinateComputeDenseJacobian( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, ref uint nrowsPod, uint* ncolsPod) + { + fixed (uint* pnrowsPod = &nrowsPod) + { + PxArticulationReducedCoordinateComputeDenseJacobianNative(selfPod, cachePod, (uint*)pnrowsPod, ncolsPod); + } + } + + public static void PxArticulationReducedCoordinateComputeDenseJacobian( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod, ref uint nrowsPod, uint* ncolsPod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + fixed (uint* pnrowsPod = &nrowsPod) + { + PxArticulationReducedCoordinateComputeDenseJacobianNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod, (uint*)pnrowsPod, ncolsPod); + } + } + } + + public static void PxArticulationReducedCoordinateComputeDenseJacobian( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, uint* nrowsPod, ref uint ncolsPod) + { + fixed (uint* pncolsPod = &ncolsPod) + { + PxArticulationReducedCoordinateComputeDenseJacobianNative(selfPod, cachePod, nrowsPod, (uint*)pncolsPod); + } + } + + public static void PxArticulationReducedCoordinateComputeDenseJacobian( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod, uint* nrowsPod, ref uint ncolsPod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + fixed (uint* pncolsPod = &ncolsPod) + { + PxArticulationReducedCoordinateComputeDenseJacobianNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod, nrowsPod, (uint*)pncolsPod); + } + } + } + + public static void PxArticulationReducedCoordinateComputeDenseJacobian( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, ref uint nrowsPod, ref uint ncolsPod) + { + fixed (uint* pnrowsPod = &nrowsPod) + { + fixed (uint* pncolsPod = &ncolsPod) + { + PxArticulationReducedCoordinateComputeDenseJacobianNative(selfPod, cachePod, (uint*)pnrowsPod, (uint*)pncolsPod); + } + } + } + + public static void PxArticulationReducedCoordinateComputeDenseJacobian( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod, ref uint nrowsPod, ref uint ncolsPod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + fixed (uint* pnrowsPod = &nrowsPod) + { + fixed (uint* pncolsPod = &ncolsPod) + { + PxArticulationReducedCoordinateComputeDenseJacobianNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod, (uint*)pnrowsPod, (uint*)pncolsPod); + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_computeCoefficientMatrix")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateComputeCoefficientMatrixNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod); + + public static void PxArticulationReducedCoordinateComputeCoefficientMatrix( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod) + { + PxArticulationReducedCoordinateComputeCoefficientMatrixNative(selfPod, cachePod); + } + + public static void PxArticulationReducedCoordinateComputeCoefficientMatrix( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + PxArticulationReducedCoordinateComputeCoefficientMatrixNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_computeLambda")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxArticulationReducedCoordinateComputeLambdaNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, PhysxPxArticulationCachePod* initialstatePod, float* jointTorque, uint maxIter); + + public static bool PxArticulationReducedCoordinateComputeLambda( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, PhysxPxArticulationCachePod* initialstatePod, float* jointTorque, uint maxIter) + { + byte ret = PxArticulationReducedCoordinateComputeLambdaNative(selfPod, cachePod, initialstatePod, jointTorque, maxIter); + return ret != 0; + } + + public static bool PxArticulationReducedCoordinateComputeLambda( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod, PhysxPxArticulationCachePod* initialstatePod, float* jointTorque, uint maxIter) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + byte ret = PxArticulationReducedCoordinateComputeLambdaNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod, initialstatePod, jointTorque, maxIter); + return ret != 0; + } + } + + public static bool PxArticulationReducedCoordinateComputeLambda( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, ref PhysxPxArticulationCachePod initialstatePod, float* jointTorque, uint maxIter) + { + fixed (PhysxPxArticulationCachePod* pinitialstatePod = &initialstatePod) + { + byte ret = PxArticulationReducedCoordinateComputeLambdaNative(selfPod, cachePod, (PhysxPxArticulationCachePod*)pinitialstatePod, jointTorque, maxIter); + return ret != 0; + } + } + + public static bool PxArticulationReducedCoordinateComputeLambda( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod, ref PhysxPxArticulationCachePod initialstatePod, float* jointTorque, uint maxIter) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + fixed (PhysxPxArticulationCachePod* pinitialstatePod = &initialstatePod) + { + byte ret = PxArticulationReducedCoordinateComputeLambdaNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod, (PhysxPxArticulationCachePod*)pinitialstatePod, jointTorque, maxIter); + return ret != 0; + } + } + } + + public static bool PxArticulationReducedCoordinateComputeLambda( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, PhysxPxArticulationCachePod* initialstatePod, ref float jointTorque, uint maxIter) + { + fixed (float* pjointTorque = &jointTorque) + { + byte ret = PxArticulationReducedCoordinateComputeLambdaNative(selfPod, cachePod, initialstatePod, (float*)pjointTorque, maxIter); + return ret != 0; + } + } + + public static bool PxArticulationReducedCoordinateComputeLambda( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod, PhysxPxArticulationCachePod* initialstatePod, ref float jointTorque, uint maxIter) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + fixed (float* pjointTorque = &jointTorque) + { + byte ret = PxArticulationReducedCoordinateComputeLambdaNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod, initialstatePod, (float*)pjointTorque, maxIter); + return ret != 0; + } + } + } + + public static bool PxArticulationReducedCoordinateComputeLambda( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod, ref PhysxPxArticulationCachePod initialstatePod, ref float jointTorque, uint maxIter) + { + fixed (PhysxPxArticulationCachePod* pinitialstatePod = &initialstatePod) + { + fixed (float* pjointTorque = &jointTorque) + { + byte ret = PxArticulationReducedCoordinateComputeLambdaNative(selfPod, cachePod, (PhysxPxArticulationCachePod*)pinitialstatePod, (float*)pjointTorque, maxIter); + return ret != 0; + } + } + } + + public static bool PxArticulationReducedCoordinateComputeLambda( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod, ref PhysxPxArticulationCachePod initialstatePod, ref float jointTorque, uint maxIter) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + fixed (PhysxPxArticulationCachePod* pinitialstatePod = &initialstatePod) + { + fixed (float* pjointTorque = &jointTorque) + { + byte ret = PxArticulationReducedCoordinateComputeLambdaNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod, (PhysxPxArticulationCachePod*)pinitialstatePod, (float*)pjointTorque, maxIter); + return ret != 0; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_computeGeneralizedMassMatrix")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateComputeGeneralizedMassMatrixNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod); + + public static void PxArticulationReducedCoordinateComputeGeneralizedMassMatrix( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationCachePod* cachePod) + { + PxArticulationReducedCoordinateComputeGeneralizedMassMatrixNative(selfPod, cachePod); + } + + public static void PxArticulationReducedCoordinateComputeGeneralizedMassMatrix( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationCachePod cachePod) + { + fixed (PhysxPxArticulationCachePod* pcachePod = &cachePod) + { + PxArticulationReducedCoordinateComputeGeneralizedMassMatrixNative(selfPod, (PhysxPxArticulationCachePod*)pcachePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_addLoopJoint_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateAddLoopJointMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxConstraintPod* jointPod); + + public static void PxArticulationReducedCoordinateAddLoopJointMut( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxConstraintPod* jointPod) + { + PxArticulationReducedCoordinateAddLoopJointMutNative(selfPod, jointPod); + } + + public static void PxArticulationReducedCoordinateAddLoopJointMut( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxConstraintPod jointPod) + { + fixed (PhysxPxConstraintPod* pjointPod = &jointPod) + { + PxArticulationReducedCoordinateAddLoopJointMutNative(selfPod, (PhysxPxConstraintPod*)pjointPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_removeLoopJoint_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateRemoveLoopJointMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxConstraintPod* jointPod); + + public static void PxArticulationReducedCoordinateRemoveLoopJointMut( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxConstraintPod* jointPod) + { + PxArticulationReducedCoordinateRemoveLoopJointMutNative(selfPod, jointPod); + } + + public static void PxArticulationReducedCoordinateRemoveLoopJointMut( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxConstraintPod jointPod) + { + fixed (PhysxPxConstraintPod* pjointPod = &jointPod) + { + PxArticulationReducedCoordinateRemoveLoopJointMutNative(selfPod, (PhysxPxConstraintPod*)pjointPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getNbLoopJoints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetNbLoopJointsNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static uint PxArticulationReducedCoordinateGetNbLoopJoints( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + uint ret = PxArticulationReducedCoordinateGetNbLoopJointsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getLoopJoints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetLoopJointsNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxConstraintPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxArticulationReducedCoordinateGetLoopJoints( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxConstraintPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxArticulationReducedCoordinateGetLoopJointsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxArticulationReducedCoordinateGetLoopJoints( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxConstraintPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxConstraintPod** puserbufferPod = &userbufferPod) + { + uint ret = PxArticulationReducedCoordinateGetLoopJointsNative(selfPod, (PhysxPxConstraintPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getCoefficientMatrixSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetCoefficientMatrixSizeNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static uint PxArticulationReducedCoordinateGetCoefficientMatrixSize( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + uint ret = PxArticulationReducedCoordinateGetCoefficientMatrixSizeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setRootGlobalPose_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetRootGlobalPoseMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxTransformPod* posePod, byte autowake); + + public static void PxArticulationReducedCoordinateSetRootGlobalPoseMut( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxTransformPod* posePod, bool autowake) + { + PxArticulationReducedCoordinateSetRootGlobalPoseMutNative(selfPod, posePod, autowake ? (byte)1 : (byte)0); + } + + public static void PxArticulationReducedCoordinateSetRootGlobalPoseMut( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxTransformPod posePod, bool autowake) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PxArticulationReducedCoordinateSetRootGlobalPoseMutNative(selfPod, (PhysxPxTransformPod*)pposePod, autowake ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getRootGlobalPose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxArticulationReducedCoordinateGetRootGlobalPoseNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static PhysxPxTransformPod PxArticulationReducedCoordinateGetRootGlobalPose( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PhysxPxTransformPod ret = PxArticulationReducedCoordinateGetRootGlobalPoseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setRootLinearVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetRootLinearVelocityMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxVec3Pod* linearvelocityPod, byte autowake); + + public static void PxArticulationReducedCoordinateSetRootLinearVelocityMut( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxVec3Pod* linearvelocityPod, bool autowake) + { + PxArticulationReducedCoordinateSetRootLinearVelocityMutNative(selfPod, linearvelocityPod, autowake ? (byte)1 : (byte)0); + } + + public static void PxArticulationReducedCoordinateSetRootLinearVelocityMut( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxVec3Pod linearvelocityPod, bool autowake) + { + fixed (PhysxPxVec3Pod* plinearvelocityPod = &linearvelocityPod) + { + PxArticulationReducedCoordinateSetRootLinearVelocityMutNative(selfPod, (PhysxPxVec3Pod*)plinearvelocityPod, autowake ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getRootLinearVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxArticulationReducedCoordinateGetRootLinearVelocityNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static PhysxPxVec3Pod PxArticulationReducedCoordinateGetRootLinearVelocity( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PhysxPxVec3Pod ret = PxArticulationReducedCoordinateGetRootLinearVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_setRootAngularVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateSetRootAngularVelocityMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxVec3Pod* angularvelocityPod, byte autowake); + + public static void PxArticulationReducedCoordinateSetRootAngularVelocityMut( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxVec3Pod* angularvelocityPod, bool autowake) + { + PxArticulationReducedCoordinateSetRootAngularVelocityMutNative(selfPod, angularvelocityPod, autowake ? (byte)1 : (byte)0); + } + + public static void PxArticulationReducedCoordinateSetRootAngularVelocityMut( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxVec3Pod angularvelocityPod, bool autowake) + { + fixed (PhysxPxVec3Pod* pangularvelocityPod = &angularvelocityPod) + { + PxArticulationReducedCoordinateSetRootAngularVelocityMutNative(selfPod, (PhysxPxVec3Pod*)pangularvelocityPod, autowake ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getRootAngularVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxArticulationReducedCoordinateGetRootAngularVelocityNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static PhysxPxVec3Pod PxArticulationReducedCoordinateGetRootAngularVelocity( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PhysxPxVec3Pod ret = PxArticulationReducedCoordinateGetRootAngularVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getLinkAcceleration_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSpatialVelocityPod PxArticulationReducedCoordinateGetLinkAccelerationMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, uint linkId); + + public static PhysxPxSpatialVelocityPod PxArticulationReducedCoordinateGetLinkAccelerationMut( PhysxPxArticulationReducedCoordinatePod* selfPod, uint linkId) + { + PhysxPxSpatialVelocityPod ret = PxArticulationReducedCoordinateGetLinkAccelerationMutNative(selfPod, linkId); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getGpuArticulationIndex_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetGpuArticulationIndexMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static uint PxArticulationReducedCoordinateGetGpuArticulationIndexMut( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + uint ret = PxArticulationReducedCoordinateGetGpuArticulationIndexMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_createSpatialTendon_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationSpatialTendonPod* PxArticulationReducedCoordinateCreateSpatialTendonMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static PhysxPxArticulationSpatialTendonPod* PxArticulationReducedCoordinateCreateSpatialTendonMut( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PhysxPxArticulationSpatialTendonPod* ret = PxArticulationReducedCoordinateCreateSpatialTendonMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_createFixedTendon_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationFixedTendonPod* PxArticulationReducedCoordinateCreateFixedTendonMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static PhysxPxArticulationFixedTendonPod* PxArticulationReducedCoordinateCreateFixedTendonMut( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + PhysxPxArticulationFixedTendonPod* ret = PxArticulationReducedCoordinateCreateFixedTendonMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_createSensor_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationSensorPod* PxArticulationReducedCoordinateCreateSensorMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationLinkPod* linkPod, PhysxPxTransformPod* relativeposePod); + + public static PhysxPxArticulationSensorPod* PxArticulationReducedCoordinateCreateSensorMut( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationLinkPod* linkPod, PhysxPxTransformPod* relativeposePod) + { + PhysxPxArticulationSensorPod* ret = PxArticulationReducedCoordinateCreateSensorMutNative(selfPod, linkPod, relativeposePod); + return ret; + } + + public static PhysxPxArticulationSensorPod* PxArticulationReducedCoordinateCreateSensorMut( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationLinkPod linkPod, PhysxPxTransformPod* relativeposePod) + { + fixed (PhysxPxArticulationLinkPod* plinkPod = &linkPod) + { + PhysxPxArticulationSensorPod* ret = PxArticulationReducedCoordinateCreateSensorMutNative(selfPod, (PhysxPxArticulationLinkPod*)plinkPod, relativeposePod); + return ret; + } + } + + public static PhysxPxArticulationSensorPod* PxArticulationReducedCoordinateCreateSensorMut( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationLinkPod* linkPod, ref PhysxPxTransformPod relativeposePod) + { + fixed (PhysxPxTransformPod* prelativeposePod = &relativeposePod) + { + PhysxPxArticulationSensorPod* ret = PxArticulationReducedCoordinateCreateSensorMutNative(selfPod, linkPod, (PhysxPxTransformPod*)prelativeposePod); + return ret; + } + } + + public static PhysxPxArticulationSensorPod* PxArticulationReducedCoordinateCreateSensorMut( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationLinkPod linkPod, ref PhysxPxTransformPod relativeposePod) + { + fixed (PhysxPxArticulationLinkPod* plinkPod = &linkPod) + { + fixed (PhysxPxTransformPod* prelativeposePod = &relativeposePod) + { + PhysxPxArticulationSensorPod* ret = PxArticulationReducedCoordinateCreateSensorMutNative(selfPod, (PhysxPxArticulationLinkPod*)plinkPod, (PhysxPxTransformPod*)prelativeposePod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getSpatialTendons")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetSpatialTendonsNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationSpatialTendonPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxArticulationReducedCoordinateGetSpatialTendons( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationSpatialTendonPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxArticulationReducedCoordinateGetSpatialTendonsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxArticulationReducedCoordinateGetSpatialTendons( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationSpatialTendonPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxArticulationSpatialTendonPod** puserbufferPod = &userbufferPod) + { + uint ret = PxArticulationReducedCoordinateGetSpatialTendonsNative(selfPod, (PhysxPxArticulationSpatialTendonPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getNbSpatialTendons_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetNbSpatialTendonsMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static uint PxArticulationReducedCoordinateGetNbSpatialTendonsMut( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + uint ret = PxArticulationReducedCoordinateGetNbSpatialTendonsMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getFixedTendons")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetFixedTendonsNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationFixedTendonPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxArticulationReducedCoordinateGetFixedTendons( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationFixedTendonPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxArticulationReducedCoordinateGetFixedTendonsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxArticulationReducedCoordinateGetFixedTendons( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationFixedTendonPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxArticulationFixedTendonPod** puserbufferPod = &userbufferPod) + { + uint ret = PxArticulationReducedCoordinateGetFixedTendonsNative(selfPod, (PhysxPxArticulationFixedTendonPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getNbFixedTendons_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetNbFixedTendonsMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static uint PxArticulationReducedCoordinateGetNbFixedTendonsMut( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + uint ret = PxArticulationReducedCoordinateGetNbFixedTendonsMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getSensors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetSensorsNative(PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationSensorPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxArticulationReducedCoordinateGetSensors( PhysxPxArticulationReducedCoordinatePod* selfPod, PhysxPxArticulationSensorPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxArticulationReducedCoordinateGetSensorsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxArticulationReducedCoordinateGetSensors( PhysxPxArticulationReducedCoordinatePod* selfPod, ref PhysxPxArticulationSensorPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxArticulationSensorPod** puserbufferPod = &userbufferPod) + { + uint ret = PxArticulationReducedCoordinateGetSensorsNative(selfPod, (PhysxPxArticulationSensorPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_getNbSensors_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationReducedCoordinateGetNbSensorsMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod); + + public static uint PxArticulationReducedCoordinateGetNbSensorsMut( PhysxPxArticulationReducedCoordinatePod* selfPod) + { + uint ret = PxArticulationReducedCoordinateGetNbSensorsMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationReducedCoordinate_updateKinematic_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationReducedCoordinateUpdateKinematicMutNative(PhysxPxArticulationReducedCoordinatePod* selfPod, byte flagsPod); + + public static void PxArticulationReducedCoordinateUpdateKinematicMut( PhysxPxArticulationReducedCoordinatePod* selfPod, byte flagsPod) + { + PxArticulationReducedCoordinateUpdateKinematicMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getParentArticulationLink")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationLinkPod* PxArticulationJointReducedCoordinateGetParentArticulationLinkNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod); + + public static PhysxPxArticulationLinkPod* PxArticulationJointReducedCoordinateGetParentArticulationLink( PhysxPxArticulationJointReducedCoordinatePod* selfPod) + { + PhysxPxArticulationLinkPod* ret = PxArticulationJointReducedCoordinateGetParentArticulationLinkNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setParentPose_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetParentPoseMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, PhysxPxTransformPod* posePod); + + public static void PxArticulationJointReducedCoordinateSetParentPoseMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, PhysxPxTransformPod* posePod) + { + PxArticulationJointReducedCoordinateSetParentPoseMutNative(selfPod, posePod); + } + + public static void PxArticulationJointReducedCoordinateSetParentPoseMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, ref PhysxPxTransformPod posePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PxArticulationJointReducedCoordinateSetParentPoseMutNative(selfPod, (PhysxPxTransformPod*)pposePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getParentPose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxArticulationJointReducedCoordinateGetParentPoseNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod); + + public static PhysxPxTransformPod PxArticulationJointReducedCoordinateGetParentPose( PhysxPxArticulationJointReducedCoordinatePod* selfPod) + { + PhysxPxTransformPod ret = PxArticulationJointReducedCoordinateGetParentPoseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getChildArticulationLink")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationLinkPod* PxArticulationJointReducedCoordinateGetChildArticulationLinkNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod); + + public static PhysxPxArticulationLinkPod* PxArticulationJointReducedCoordinateGetChildArticulationLink( PhysxPxArticulationJointReducedCoordinatePod* selfPod) + { + PhysxPxArticulationLinkPod* ret = PxArticulationJointReducedCoordinateGetChildArticulationLinkNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setChildPose_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetChildPoseMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, PhysxPxTransformPod* posePod); + + public static void PxArticulationJointReducedCoordinateSetChildPoseMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, PhysxPxTransformPod* posePod) + { + PxArticulationJointReducedCoordinateSetChildPoseMutNative(selfPod, posePod); + } + + public static void PxArticulationJointReducedCoordinateSetChildPoseMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, ref PhysxPxTransformPod posePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PxArticulationJointReducedCoordinateSetChildPoseMutNative(selfPod, (PhysxPxTransformPod*)pposePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getChildPose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxArticulationJointReducedCoordinateGetChildPoseNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod); + + public static PhysxPxTransformPod PxArticulationJointReducedCoordinateGetChildPose( PhysxPxArticulationJointReducedCoordinatePod* selfPod) + { + PhysxPxTransformPod ret = PxArticulationJointReducedCoordinateGetChildPoseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setJointType_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetJointTypeMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int jointtypePod); + + public static void PxArticulationJointReducedCoordinateSetJointTypeMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int jointtypePod) + { + PxArticulationJointReducedCoordinateSetJointTypeMutNative(selfPod, jointtypePod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getJointType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxArticulationJointReducedCoordinateGetJointTypeNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod); + + public static int PxArticulationJointReducedCoordinateGetJointType( PhysxPxArticulationJointReducedCoordinatePod* selfPod) + { + int ret = PxArticulationJointReducedCoordinateGetJointTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setMotion_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetMotionMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, int motionPod); + + public static void PxArticulationJointReducedCoordinateSetMotionMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, int motionPod) + { + PxArticulationJointReducedCoordinateSetMotionMutNative(selfPod, axisPod, motionPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getMotion")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxArticulationJointReducedCoordinateGetMotionNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod); + + public static int PxArticulationJointReducedCoordinateGetMotion( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod) + { + int ret = PxArticulationJointReducedCoordinateGetMotionNative(selfPod, axisPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setLimitParams_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetLimitParamsMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, PhysxPxArticulationLimitPod* limitPod); + + public static void PxArticulationJointReducedCoordinateSetLimitParamsMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, PhysxPxArticulationLimitPod* limitPod) + { + PxArticulationJointReducedCoordinateSetLimitParamsMutNative(selfPod, axisPod, limitPod); + } + + public static void PxArticulationJointReducedCoordinateSetLimitParamsMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, ref PhysxPxArticulationLimitPod limitPod) + { + fixed (PhysxPxArticulationLimitPod* plimitPod = &limitPod) + { + PxArticulationJointReducedCoordinateSetLimitParamsMutNative(selfPod, axisPod, (PhysxPxArticulationLimitPod*)plimitPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getLimitParams")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationLimitPod PxArticulationJointReducedCoordinateGetLimitParamsNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod); + + public static PhysxPxArticulationLimitPod PxArticulationJointReducedCoordinateGetLimitParams( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod) + { + PhysxPxArticulationLimitPod ret = PxArticulationJointReducedCoordinateGetLimitParamsNative(selfPod, axisPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setDriveParams_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetDriveParamsMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, PhysxPxArticulationDrivePod* drivePod); + + public static void PxArticulationJointReducedCoordinateSetDriveParamsMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, PhysxPxArticulationDrivePod* drivePod) + { + PxArticulationJointReducedCoordinateSetDriveParamsMutNative(selfPod, axisPod, drivePod); + } + + public static void PxArticulationJointReducedCoordinateSetDriveParamsMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, ref PhysxPxArticulationDrivePod drivePod) + { + fixed (PhysxPxArticulationDrivePod* pdrivePod = &drivePod) + { + PxArticulationJointReducedCoordinateSetDriveParamsMutNative(selfPod, axisPod, (PhysxPxArticulationDrivePod*)pdrivePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getDriveParams")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationDrivePod PxArticulationJointReducedCoordinateGetDriveParamsNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod); + + public static PhysxPxArticulationDrivePod PxArticulationJointReducedCoordinateGetDriveParams( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod) + { + PhysxPxArticulationDrivePod ret = PxArticulationJointReducedCoordinateGetDriveParamsNative(selfPod, axisPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setDriveTarget_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetDriveTargetMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, float target, byte autowake); + + public static void PxArticulationJointReducedCoordinateSetDriveTargetMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, float target, bool autowake) + { + PxArticulationJointReducedCoordinateSetDriveTargetMutNative(selfPod, axisPod, target, autowake ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getDriveTarget")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationJointReducedCoordinateGetDriveTargetNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod); + + public static float PxArticulationJointReducedCoordinateGetDriveTarget( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod) + { + float ret = PxArticulationJointReducedCoordinateGetDriveTargetNative(selfPod, axisPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setDriveVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetDriveVelocityMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, float targetVel, byte autowake); + + public static void PxArticulationJointReducedCoordinateSetDriveVelocityMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, float targetVel, bool autowake) + { + PxArticulationJointReducedCoordinateSetDriveVelocityMutNative(selfPod, axisPod, targetVel, autowake ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getDriveVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationJointReducedCoordinateGetDriveVelocityNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod); + + public static float PxArticulationJointReducedCoordinateGetDriveVelocity( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod) + { + float ret = PxArticulationJointReducedCoordinateGetDriveVelocityNative(selfPod, axisPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setArmature_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetArmatureMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, float armature); + + public static void PxArticulationJointReducedCoordinateSetArmatureMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, float armature) + { + PxArticulationJointReducedCoordinateSetArmatureMutNative(selfPod, axisPod, armature); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getArmature")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationJointReducedCoordinateGetArmatureNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod); + + public static float PxArticulationJointReducedCoordinateGetArmature( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod) + { + float ret = PxArticulationJointReducedCoordinateGetArmatureNative(selfPod, axisPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setFrictionCoefficient_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetFrictionCoefficientMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, float coefficient); + + public static void PxArticulationJointReducedCoordinateSetFrictionCoefficientMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, float coefficient) + { + PxArticulationJointReducedCoordinateSetFrictionCoefficientMutNative(selfPod, coefficient); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getFrictionCoefficient")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationJointReducedCoordinateGetFrictionCoefficientNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod); + + public static float PxArticulationJointReducedCoordinateGetFrictionCoefficient( PhysxPxArticulationJointReducedCoordinatePod* selfPod) + { + float ret = PxArticulationJointReducedCoordinateGetFrictionCoefficientNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setMaxJointVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetMaxJointVelocityMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, float maxJointV); + + public static void PxArticulationJointReducedCoordinateSetMaxJointVelocityMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, float maxJointV) + { + PxArticulationJointReducedCoordinateSetMaxJointVelocityMutNative(selfPod, maxJointV); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getMaxJointVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationJointReducedCoordinateGetMaxJointVelocityNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod); + + public static float PxArticulationJointReducedCoordinateGetMaxJointVelocity( PhysxPxArticulationJointReducedCoordinatePod* selfPod) + { + float ret = PxArticulationJointReducedCoordinateGetMaxJointVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setJointPosition_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetJointPositionMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, float jointPos); + + public static void PxArticulationJointReducedCoordinateSetJointPositionMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, float jointPos) + { + PxArticulationJointReducedCoordinateSetJointPositionMutNative(selfPod, axisPod, jointPos); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getJointPosition")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationJointReducedCoordinateGetJointPositionNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod); + + public static float PxArticulationJointReducedCoordinateGetJointPosition( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod) + { + float ret = PxArticulationJointReducedCoordinateGetJointPositionNative(selfPod, axisPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_setJointVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationJointReducedCoordinateSetJointVelocityMutNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, float jointVel); + + public static void PxArticulationJointReducedCoordinateSetJointVelocityMut( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod, float jointVel) + { + PxArticulationJointReducedCoordinateSetJointVelocityMutNative(selfPod, axisPod, jointVel); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getJointVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationJointReducedCoordinateGetJointVelocityNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod); + + public static float PxArticulationJointReducedCoordinateGetJointVelocity( PhysxPxArticulationJointReducedCoordinatePod* selfPod, int axisPod) + { + float ret = PxArticulationJointReducedCoordinateGetJointVelocityNative(selfPod, axisPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationJointReducedCoordinate_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxArticulationJointReducedCoordinateGetConcreteTypeNameNative(PhysxPxArticulationJointReducedCoordinatePod* selfPod); + + public static byte* PxArticulationJointReducedCoordinateGetConcreteTypeName( PhysxPxArticulationJointReducedCoordinatePod* selfPod) + { + byte* ret = PxArticulationJointReducedCoordinateGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxArticulationJointReducedCoordinateGetConcreteTypeNameS( PhysxPxArticulationJointReducedCoordinatePod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxArticulationJointReducedCoordinateGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeReleaseMutNative(PhysxPxShapePod* selfPod); + + public static void PxShapeReleaseMut( PhysxPxShapePod* selfPod) + { + PxShapeReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setGeometry_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetGeometryMutNative(PhysxPxShapePod* selfPod, PhysxPxGeometryPod* geometryPod); + + public static void PxShapeSetGeometryMut( PhysxPxShapePod* selfPod, PhysxPxGeometryPod* geometryPod) + { + PxShapeSetGeometryMutNative(selfPod, geometryPod); + } + + public static void PxShapeSetGeometryMut( PhysxPxShapePod* selfPod, ref PhysxPxGeometryPod geometryPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PxShapeSetGeometryMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getGeometry")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGeometryPod* PxShapeGetGeometryNative(PhysxPxShapePod* selfPod); + + public static PhysxPxGeometryPod* PxShapeGetGeometry( PhysxPxShapePod* selfPod) + { + PhysxPxGeometryPod* ret = PxShapeGetGeometryNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getActor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidActorPod* PxShapeGetActorNative(PhysxPxShapePod* selfPod); + + public static PhysxPxRigidActorPod* PxShapeGetActor( PhysxPxShapePod* selfPod) + { + PhysxPxRigidActorPod* ret = PxShapeGetActorNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setLocalPose_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetLocalPoseMutNative(PhysxPxShapePod* selfPod, PhysxPxTransformPod* posePod); + + public static void PxShapeSetLocalPoseMut( PhysxPxShapePod* selfPod, PhysxPxTransformPod* posePod) + { + PxShapeSetLocalPoseMutNative(selfPod, posePod); + } + + public static void PxShapeSetLocalPoseMut( PhysxPxShapePod* selfPod, ref PhysxPxTransformPod posePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PxShapeSetLocalPoseMutNative(selfPod, (PhysxPxTransformPod*)pposePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getLocalPose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxShapeGetLocalPoseNative(PhysxPxShapePod* selfPod); + + public static PhysxPxTransformPod PxShapeGetLocalPose( PhysxPxShapePod* selfPod) + { + PhysxPxTransformPod ret = PxShapeGetLocalPoseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setSimulationFilterData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetSimulationFilterDataMutNative(PhysxPxShapePod* selfPod, PhysxPxFilterDataPod* dataPod); + + public static void PxShapeSetSimulationFilterDataMut( PhysxPxShapePod* selfPod, PhysxPxFilterDataPod* dataPod) + { + PxShapeSetSimulationFilterDataMutNative(selfPod, dataPod); + } + + public static void PxShapeSetSimulationFilterDataMut( PhysxPxShapePod* selfPod, ref PhysxPxFilterDataPod dataPod) + { + fixed (PhysxPxFilterDataPod* pdataPod = &dataPod) + { + PxShapeSetSimulationFilterDataMutNative(selfPod, (PhysxPxFilterDataPod*)pdataPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getSimulationFilterData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxFilterDataPod PxShapeGetSimulationFilterDataNative(PhysxPxShapePod* selfPod); + + public static PhysxPxFilterDataPod PxShapeGetSimulationFilterData( PhysxPxShapePod* selfPod) + { + PhysxPxFilterDataPod ret = PxShapeGetSimulationFilterDataNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setQueryFilterData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetQueryFilterDataMutNative(PhysxPxShapePod* selfPod, PhysxPxFilterDataPod* dataPod); + + public static void PxShapeSetQueryFilterDataMut( PhysxPxShapePod* selfPod, PhysxPxFilterDataPod* dataPod) + { + PxShapeSetQueryFilterDataMutNative(selfPod, dataPod); + } + + public static void PxShapeSetQueryFilterDataMut( PhysxPxShapePod* selfPod, ref PhysxPxFilterDataPod dataPod) + { + fixed (PhysxPxFilterDataPod* pdataPod = &dataPod) + { + PxShapeSetQueryFilterDataMutNative(selfPod, (PhysxPxFilterDataPod*)pdataPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getQueryFilterData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxFilterDataPod PxShapeGetQueryFilterDataNative(PhysxPxShapePod* selfPod); + + public static PhysxPxFilterDataPod PxShapeGetQueryFilterData( PhysxPxShapePod* selfPod) + { + PhysxPxFilterDataPod ret = PxShapeGetQueryFilterDataNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setMaterials_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetMaterialsMutNative(PhysxPxShapePod* selfPod, PhysxPxMaterialPod** materialsPod, ushort materialCount); + + public static void PxShapeSetMaterialsMut( PhysxPxShapePod* selfPod, PhysxPxMaterialPod** materialsPod, ushort materialCount) + { + PxShapeSetMaterialsMutNative(selfPod, materialsPod, materialCount); + } + + public static void PxShapeSetMaterialsMut( PhysxPxShapePod* selfPod, ref PhysxPxMaterialPod* materialsPod, ushort materialCount) + { + fixed (PhysxPxMaterialPod** pmaterialsPod = &materialsPod) + { + PxShapeSetMaterialsMutNative(selfPod, (PhysxPxMaterialPod**)pmaterialsPod, materialCount); + } + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getNbMaterials")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxShapeGetNbMaterialsNative(PhysxPxShapePod* selfPod); + + public static ushort PxShapeGetNbMaterials( PhysxPxShapePod* selfPod) + { + ushort ret = PxShapeGetNbMaterialsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getMaterials")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxShapeGetMaterialsNative(PhysxPxShapePod* selfPod, PhysxPxMaterialPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxShapeGetMaterials( PhysxPxShapePod* selfPod, PhysxPxMaterialPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxShapeGetMaterialsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxShapeGetMaterials( PhysxPxShapePod* selfPod, ref PhysxPxMaterialPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxMaterialPod** puserbufferPod = &userbufferPod) + { + uint ret = PxShapeGetMaterialsNative(selfPod, (PhysxPxMaterialPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getMaterialFromInternalFaceIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBaseMaterialPod* PxShapeGetMaterialFromInternalFaceIndexNative(PhysxPxShapePod* selfPod, uint faceIndex); + + public static PhysxPxBaseMaterialPod* PxShapeGetMaterialFromInternalFaceIndex( PhysxPxShapePod* selfPod, uint faceIndex) + { + PhysxPxBaseMaterialPod* ret = PxShapeGetMaterialFromInternalFaceIndexNative(selfPod, faceIndex); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setContactOffset_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetContactOffsetMutNative(PhysxPxShapePod* selfPod, float contactOffset); + + public static void PxShapeSetContactOffsetMut( PhysxPxShapePod* selfPod, float contactOffset) + { + PxShapeSetContactOffsetMutNative(selfPod, contactOffset); + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getContactOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxShapeGetContactOffsetNative(PhysxPxShapePod* selfPod); + + public static float PxShapeGetContactOffset( PhysxPxShapePod* selfPod) + { + float ret = PxShapeGetContactOffsetNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setRestOffset_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetRestOffsetMutNative(PhysxPxShapePod* selfPod, float restOffset); + + public static void PxShapeSetRestOffsetMut( PhysxPxShapePod* selfPod, float restOffset) + { + PxShapeSetRestOffsetMutNative(selfPod, restOffset); + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getRestOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxShapeGetRestOffsetNative(PhysxPxShapePod* selfPod); + + public static float PxShapeGetRestOffset( PhysxPxShapePod* selfPod) + { + float ret = PxShapeGetRestOffsetNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setDensityForFluid_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetDensityForFluidMutNative(PhysxPxShapePod* selfPod, float densityForFluid); + + public static void PxShapeSetDensityForFluidMut( PhysxPxShapePod* selfPod, float densityForFluid) + { + PxShapeSetDensityForFluidMutNative(selfPod, densityForFluid); + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getDensityForFluid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxShapeGetDensityForFluidNative(PhysxPxShapePod* selfPod); + + public static float PxShapeGetDensityForFluid( PhysxPxShapePod* selfPod) + { + float ret = PxShapeGetDensityForFluidNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setTorsionalPatchRadius_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetTorsionalPatchRadiusMutNative(PhysxPxShapePod* selfPod, float radius); + + public static void PxShapeSetTorsionalPatchRadiusMut( PhysxPxShapePod* selfPod, float radius) + { + PxShapeSetTorsionalPatchRadiusMutNative(selfPod, radius); + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getTorsionalPatchRadius")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxShapeGetTorsionalPatchRadiusNative(PhysxPxShapePod* selfPod); + + public static float PxShapeGetTorsionalPatchRadius( PhysxPxShapePod* selfPod) + { + float ret = PxShapeGetTorsionalPatchRadiusNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setMinTorsionalPatchRadius_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetMinTorsionalPatchRadiusMutNative(PhysxPxShapePod* selfPod, float radius); + + public static void PxShapeSetMinTorsionalPatchRadiusMut( PhysxPxShapePod* selfPod, float radius) + { + PxShapeSetMinTorsionalPatchRadiusMutNative(selfPod, radius); + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getMinTorsionalPatchRadius")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxShapeGetMinTorsionalPatchRadiusNative(PhysxPxShapePod* selfPod); + + public static float PxShapeGetMinTorsionalPatchRadius( PhysxPxShapePod* selfPod) + { + float ret = PxShapeGetMinTorsionalPatchRadiusNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetFlagMutNative(PhysxPxShapePod* selfPod, int flagPod, byte value); + + public static void PxShapeSetFlagMut( PhysxPxShapePod* selfPod, int flagPod, bool value) + { + PxShapeSetFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetFlagsMutNative(PhysxPxShapePod* selfPod, byte inflagsPod); + + public static void PxShapeSetFlagsMut( PhysxPxShapePod* selfPod, byte inflagsPod) + { + PxShapeSetFlagsMutNative(selfPod, inflagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxShapeGetFlagsNative(PhysxPxShapePod* selfPod); + + public static byte PxShapeGetFlags( PhysxPxShapePod* selfPod) + { + byte ret = PxShapeGetFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_isExclusive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxShapeIsExclusiveNative(PhysxPxShapePod* selfPod); + + public static bool PxShapeIsExclusive( PhysxPxShapePod* selfPod) + { + byte ret = PxShapeIsExclusiveNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_setName_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxShapeSetNameMutNative(PhysxPxShapePod* selfPod, byte* name); + + public static void PxShapeSetNameMut( PhysxPxShapePod* selfPod, byte* name) + { + PxShapeSetNameMutNative(selfPod, name); + } + + public static void PxShapeSetNameMut( PhysxPxShapePod* selfPod, ref byte name) + { + fixed (byte* pname = &name) + { + PxShapeSetNameMutNative(selfPod, (byte*)pname); + } + } + + public static void PxShapeSetNameMut( PhysxPxShapePod* selfPod, string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxShapeSetNameMutNative(selfPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxShapeGetNameNative(PhysxPxShapePod* selfPod); + + public static byte* PxShapeGetName( PhysxPxShapePod* selfPod) + { + byte* ret = PxShapeGetNameNative(selfPod); + return ret; + } + + public static string PxShapeGetNameS( PhysxPxShapePod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxShapeGetNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxShape_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxShapeGetConcreteTypeNameNative(PhysxPxShapePod* selfPod); + + public static byte* PxShapeGetConcreteTypeName( PhysxPxShapePod* selfPod) + { + byte* ret = PxShapeGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxShapeGetConcreteTypeNameS( PhysxPxShapePod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxShapeGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActor_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidActorReleaseMutNative(PhysxPxRigidActorPod* selfPod); + + public static void PxRigidActorReleaseMut( PhysxPxRigidActorPod* selfPod) + { + PxRigidActorReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActor_getInternalActorIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxRigidActorGetInternalActorIndexNative(PhysxPxRigidActorPod* selfPod); + + public static uint PxRigidActorGetInternalActorIndex( PhysxPxRigidActorPod* selfPod) + { + uint ret = PxRigidActorGetInternalActorIndexNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActor_getGlobalPose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxRigidActorGetGlobalPoseNative(PhysxPxRigidActorPod* selfPod); + + public static PhysxPxTransformPod PxRigidActorGetGlobalPose( PhysxPxRigidActorPod* selfPod) + { + PhysxPxTransformPod ret = PxRigidActorGetGlobalPoseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActor_setGlobalPose_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidActorSetGlobalPoseMutNative(PhysxPxRigidActorPod* selfPod, PhysxPxTransformPod* posePod, byte autowake); + + public static void PxRigidActorSetGlobalPoseMut( PhysxPxRigidActorPod* selfPod, PhysxPxTransformPod* posePod, bool autowake) + { + PxRigidActorSetGlobalPoseMutNative(selfPod, posePod, autowake ? (byte)1 : (byte)0); + } + + public static void PxRigidActorSetGlobalPoseMut( PhysxPxRigidActorPod* selfPod, ref PhysxPxTransformPod posePod, bool autowake) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PxRigidActorSetGlobalPoseMutNative(selfPod, (PhysxPxTransformPod*)pposePod, autowake ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActor_attachShape_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRigidActorAttachShapeMutNative(PhysxPxRigidActorPod* selfPod, PhysxPxShapePod* shapePod); + + public static bool PxRigidActorAttachShapeMut( PhysxPxRigidActorPod* selfPod, PhysxPxShapePod* shapePod) + { + byte ret = PxRigidActorAttachShapeMutNative(selfPod, shapePod); + return ret != 0; + } + + public static bool PxRigidActorAttachShapeMut( PhysxPxRigidActorPod* selfPod, ref PhysxPxShapePod shapePod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + byte ret = PxRigidActorAttachShapeMutNative(selfPod, (PhysxPxShapePod*)pshapePod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActor_detachShape_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidActorDetachShapeMutNative(PhysxPxRigidActorPod* selfPod, PhysxPxShapePod* shapePod, byte wakeOnLostTouch); + + public static void PxRigidActorDetachShapeMut( PhysxPxRigidActorPod* selfPod, PhysxPxShapePod* shapePod, bool wakeOnLostTouch) + { + PxRigidActorDetachShapeMutNative(selfPod, shapePod, wakeOnLostTouch ? (byte)1 : (byte)0); + } + + public static void PxRigidActorDetachShapeMut( PhysxPxRigidActorPod* selfPod, ref PhysxPxShapePod shapePod, bool wakeOnLostTouch) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PxRigidActorDetachShapeMutNative(selfPod, (PhysxPxShapePod*)pshapePod, wakeOnLostTouch ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActor_getNbShapes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxRigidActorGetNbShapesNative(PhysxPxRigidActorPod* selfPod); + + public static uint PxRigidActorGetNbShapes( PhysxPxRigidActorPod* selfPod) + { + uint ret = PxRigidActorGetNbShapesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActor_getShapes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxRigidActorGetShapesNative(PhysxPxRigidActorPod* selfPod, PhysxPxShapePod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxRigidActorGetShapes( PhysxPxRigidActorPod* selfPod, PhysxPxShapePod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxRigidActorGetShapesNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxRigidActorGetShapes( PhysxPxRigidActorPod* selfPod, ref PhysxPxShapePod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxShapePod** puserbufferPod = &userbufferPod) + { + uint ret = PxRigidActorGetShapesNative(selfPod, (PhysxPxShapePod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActor_getNbConstraints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxRigidActorGetNbConstraintsNative(PhysxPxRigidActorPod* selfPod); + + public static uint PxRigidActorGetNbConstraints( PhysxPxRigidActorPod* selfPod) + { + uint ret = PxRigidActorGetNbConstraintsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActor_getConstraints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxRigidActorGetConstraintsNative(PhysxPxRigidActorPod* selfPod, PhysxPxConstraintPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxRigidActorGetConstraints( PhysxPxRigidActorPod* selfPod, PhysxPxConstraintPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxRigidActorGetConstraintsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxRigidActorGetConstraints( PhysxPxRigidActorPod* selfPod, ref PhysxPxConstraintPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxConstraintPod** puserbufferPod = &userbufferPod) + { + uint ret = PxRigidActorGetConstraintsNative(selfPod, (PhysxPxConstraintPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxNodeIndex_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxNodeIndexPod PxNodeIndexNewNative(uint id, uint articLinkId); + + public static PhysxPxNodeIndexPod PxNodeIndexNew( uint id, uint articLinkId) + { + PhysxPxNodeIndexPod ret = PxNodeIndexNewNative(id, articLinkId); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxNodeIndex_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxNodeIndexPod PxNodeIndexNew1Native(uint id); + + public static PhysxPxNodeIndexPod PxNodeIndexNew1( uint id) + { + PhysxPxNodeIndexPod ret = PxNodeIndexNew1Native(id); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxNodeIndex_index")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxNodeIndexIndexNative(PhysxPxNodeIndexPod* selfPod); + + public static uint PxNodeIndexIndex( PhysxPxNodeIndexPod* selfPod) + { + uint ret = PxNodeIndexIndexNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxNodeIndex_articulationLinkId")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxNodeIndexArticulationLinkIdNative(PhysxPxNodeIndexPod* selfPod); + + public static uint PxNodeIndexArticulationLinkId( PhysxPxNodeIndexPod* selfPod) + { + uint ret = PxNodeIndexArticulationLinkIdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxNodeIndex_isArticulation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxNodeIndexIsArticulationNative(PhysxPxNodeIndexPod* selfPod); + + public static uint PxNodeIndexIsArticulation( PhysxPxNodeIndexPod* selfPod) + { + uint ret = PxNodeIndexIsArticulationNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxNodeIndex_isStaticBody")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxNodeIndexIsStaticBodyNative(PhysxPxNodeIndexPod* selfPod); + + public static bool PxNodeIndexIsStaticBody( PhysxPxNodeIndexPod* selfPod) + { + byte ret = PxNodeIndexIsStaticBodyNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxNodeIndex_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxNodeIndexIsValidNative(PhysxPxNodeIndexPod* selfPod); + + public static bool PxNodeIndexIsValid( PhysxPxNodeIndexPod* selfPod) + { + byte ret = PxNodeIndexIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxNodeIndex_setIndices_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxNodeIndexSetIndicesMutNative(PhysxPxNodeIndexPod* selfPod, uint index, uint articLinkId); + + public static void PxNodeIndexSetIndicesMut( PhysxPxNodeIndexPod* selfPod, uint index, uint articLinkId) + { + PxNodeIndexSetIndicesMutNative(selfPod, index, articLinkId); + } + + [LibraryImport(LibName, EntryPoint = "PxNodeIndex_setIndices_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxNodeIndexSetIndicesMut1Native(PhysxPxNodeIndexPod* selfPod, uint index); + + public static void PxNodeIndexSetIndicesMut1( PhysxPxNodeIndexPod* selfPod, uint index) + { + PxNodeIndexSetIndicesMut1Native(selfPod, index); + } + + [LibraryImport(LibName, EntryPoint = "PxNodeIndex_getInd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong PxNodeIndexGetIndNative(PhysxPxNodeIndexPod* selfPod); + + public static ulong PxNodeIndexGetInd( PhysxPxNodeIndexPod* selfPod) + { + ulong ret = PxNodeIndexGetIndNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setCMassLocalPose_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetCMassLocalPoseMutNative(PhysxPxRigidBodyPod* selfPod, PhysxPxTransformPod* posePod); + + public static void PxRigidBodySetCMassLocalPoseMut( PhysxPxRigidBodyPod* selfPod, PhysxPxTransformPod* posePod) + { + PxRigidBodySetCMassLocalPoseMutNative(selfPod, posePod); + } + + public static void PxRigidBodySetCMassLocalPoseMut( PhysxPxRigidBodyPod* selfPod, ref PhysxPxTransformPod posePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PxRigidBodySetCMassLocalPoseMutNative(selfPod, (PhysxPxTransformPod*)pposePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getCMassLocalPose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxRigidBodyGetCMassLocalPoseNative(PhysxPxRigidBodyPod* selfPod); + + public static PhysxPxTransformPod PxRigidBodyGetCMassLocalPose( PhysxPxRigidBodyPod* selfPod) + { + PhysxPxTransformPod ret = PxRigidBodyGetCMassLocalPoseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setMass_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetMassMutNative(PhysxPxRigidBodyPod* selfPod, float mass); + + public static void PxRigidBodySetMassMut( PhysxPxRigidBodyPod* selfPod, float mass) + { + PxRigidBodySetMassMutNative(selfPod, mass); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getMass")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidBodyGetMassNative(PhysxPxRigidBodyPod* selfPod); + + public static float PxRigidBodyGetMass( PhysxPxRigidBodyPod* selfPod) + { + float ret = PxRigidBodyGetMassNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getInvMass")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidBodyGetInvMassNative(PhysxPxRigidBodyPod* selfPod); + + public static float PxRigidBodyGetInvMass( PhysxPxRigidBodyPod* selfPod) + { + float ret = PxRigidBodyGetInvMassNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setMassSpaceInertiaTensor_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetMassSpaceInertiaTensorMutNative(PhysxPxRigidBodyPod* selfPod, PhysxPxVec3Pod* mPod); + + public static void PxRigidBodySetMassSpaceInertiaTensorMut( PhysxPxRigidBodyPod* selfPod, PhysxPxVec3Pod* mPod) + { + PxRigidBodySetMassSpaceInertiaTensorMutNative(selfPod, mPod); + } + + public static void PxRigidBodySetMassSpaceInertiaTensorMut( PhysxPxRigidBodyPod* selfPod, ref PhysxPxVec3Pod mPod) + { + fixed (PhysxPxVec3Pod* pmPod = &mPod) + { + PxRigidBodySetMassSpaceInertiaTensorMutNative(selfPod, (PhysxPxVec3Pod*)pmPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getMassSpaceInertiaTensor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxRigidBodyGetMassSpaceInertiaTensorNative(PhysxPxRigidBodyPod* selfPod); + + public static PhysxPxVec3Pod PxRigidBodyGetMassSpaceInertiaTensor( PhysxPxRigidBodyPod* selfPod) + { + PhysxPxVec3Pod ret = PxRigidBodyGetMassSpaceInertiaTensorNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getMassSpaceInvInertiaTensor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxRigidBodyGetMassSpaceInvInertiaTensorNative(PhysxPxRigidBodyPod* selfPod); + + public static PhysxPxVec3Pod PxRigidBodyGetMassSpaceInvInertiaTensor( PhysxPxRigidBodyPod* selfPod) + { + PhysxPxVec3Pod ret = PxRigidBodyGetMassSpaceInvInertiaTensorNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setLinearDamping_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetLinearDampingMutNative(PhysxPxRigidBodyPod* selfPod, float linDamp); + + public static void PxRigidBodySetLinearDampingMut( PhysxPxRigidBodyPod* selfPod, float linDamp) + { + PxRigidBodySetLinearDampingMutNative(selfPod, linDamp); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getLinearDamping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidBodyGetLinearDampingNative(PhysxPxRigidBodyPod* selfPod); + + public static float PxRigidBodyGetLinearDamping( PhysxPxRigidBodyPod* selfPod) + { + float ret = PxRigidBodyGetLinearDampingNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setAngularDamping_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetAngularDampingMutNative(PhysxPxRigidBodyPod* selfPod, float angDamp); + + public static void PxRigidBodySetAngularDampingMut( PhysxPxRigidBodyPod* selfPod, float angDamp) + { + PxRigidBodySetAngularDampingMutNative(selfPod, angDamp); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getAngularDamping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidBodyGetAngularDampingNative(PhysxPxRigidBodyPod* selfPod); + + public static float PxRigidBodyGetAngularDamping( PhysxPxRigidBodyPod* selfPod) + { + float ret = PxRigidBodyGetAngularDampingNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getLinearVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxRigidBodyGetLinearVelocityNative(PhysxPxRigidBodyPod* selfPod); + + public static PhysxPxVec3Pod PxRigidBodyGetLinearVelocity( PhysxPxRigidBodyPod* selfPod) + { + PhysxPxVec3Pod ret = PxRigidBodyGetLinearVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getAngularVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxRigidBodyGetAngularVelocityNative(PhysxPxRigidBodyPod* selfPod); + + public static PhysxPxVec3Pod PxRigidBodyGetAngularVelocity( PhysxPxRigidBodyPod* selfPod) + { + PhysxPxVec3Pod ret = PxRigidBodyGetAngularVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setMaxLinearVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetMaxLinearVelocityMutNative(PhysxPxRigidBodyPod* selfPod, float maxLinVel); + + public static void PxRigidBodySetMaxLinearVelocityMut( PhysxPxRigidBodyPod* selfPod, float maxLinVel) + { + PxRigidBodySetMaxLinearVelocityMutNative(selfPod, maxLinVel); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getMaxLinearVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidBodyGetMaxLinearVelocityNative(PhysxPxRigidBodyPod* selfPod); + + public static float PxRigidBodyGetMaxLinearVelocity( PhysxPxRigidBodyPod* selfPod) + { + float ret = PxRigidBodyGetMaxLinearVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setMaxAngularVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetMaxAngularVelocityMutNative(PhysxPxRigidBodyPod* selfPod, float maxAngVel); + + public static void PxRigidBodySetMaxAngularVelocityMut( PhysxPxRigidBodyPod* selfPod, float maxAngVel) + { + PxRigidBodySetMaxAngularVelocityMutNative(selfPod, maxAngVel); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getMaxAngularVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidBodyGetMaxAngularVelocityNative(PhysxPxRigidBodyPod* selfPod); + + public static float PxRigidBodyGetMaxAngularVelocity( PhysxPxRigidBodyPod* selfPod) + { + float ret = PxRigidBodyGetMaxAngularVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_addForce_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodyAddForceMutNative(PhysxPxRigidBodyPod* selfPod, PhysxPxVec3Pod* forcePod, int modePod, byte autowake); + + public static void PxRigidBodyAddForceMut( PhysxPxRigidBodyPod* selfPod, PhysxPxVec3Pod* forcePod, int modePod, bool autowake) + { + PxRigidBodyAddForceMutNative(selfPod, forcePod, modePod, autowake ? (byte)1 : (byte)0); + } + + public static void PxRigidBodyAddForceMut( PhysxPxRigidBodyPod* selfPod, ref PhysxPxVec3Pod forcePod, int modePod, bool autowake) + { + fixed (PhysxPxVec3Pod* pforcePod = &forcePod) + { + PxRigidBodyAddForceMutNative(selfPod, (PhysxPxVec3Pod*)pforcePod, modePod, autowake ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_addTorque_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodyAddTorqueMutNative(PhysxPxRigidBodyPod* selfPod, PhysxPxVec3Pod* torquePod, int modePod, byte autowake); + + public static void PxRigidBodyAddTorqueMut( PhysxPxRigidBodyPod* selfPod, PhysxPxVec3Pod* torquePod, int modePod, bool autowake) + { + PxRigidBodyAddTorqueMutNative(selfPod, torquePod, modePod, autowake ? (byte)1 : (byte)0); + } + + public static void PxRigidBodyAddTorqueMut( PhysxPxRigidBodyPod* selfPod, ref PhysxPxVec3Pod torquePod, int modePod, bool autowake) + { + fixed (PhysxPxVec3Pod* ptorquePod = &torquePod) + { + PxRigidBodyAddTorqueMutNative(selfPod, (PhysxPxVec3Pod*)ptorquePod, modePod, autowake ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_clearForce_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodyClearForceMutNative(PhysxPxRigidBodyPod* selfPod, int modePod); + + public static void PxRigidBodyClearForceMut( PhysxPxRigidBodyPod* selfPod, int modePod) + { + PxRigidBodyClearForceMutNative(selfPod, modePod); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_clearTorque_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodyClearTorqueMutNative(PhysxPxRigidBodyPod* selfPod, int modePod); + + public static void PxRigidBodyClearTorqueMut( PhysxPxRigidBodyPod* selfPod, int modePod) + { + PxRigidBodyClearTorqueMutNative(selfPod, modePod); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setForceAndTorque_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetForceAndTorqueMutNative(PhysxPxRigidBodyPod* selfPod, PhysxPxVec3Pod* forcePod, PhysxPxVec3Pod* torquePod, int modePod); + + public static void PxRigidBodySetForceAndTorqueMut( PhysxPxRigidBodyPod* selfPod, PhysxPxVec3Pod* forcePod, PhysxPxVec3Pod* torquePod, int modePod) + { + PxRigidBodySetForceAndTorqueMutNative(selfPod, forcePod, torquePod, modePod); + } + + public static void PxRigidBodySetForceAndTorqueMut( PhysxPxRigidBodyPod* selfPod, ref PhysxPxVec3Pod forcePod, PhysxPxVec3Pod* torquePod, int modePod) + { + fixed (PhysxPxVec3Pod* pforcePod = &forcePod) + { + PxRigidBodySetForceAndTorqueMutNative(selfPod, (PhysxPxVec3Pod*)pforcePod, torquePod, modePod); + } + } + + public static void PxRigidBodySetForceAndTorqueMut( PhysxPxRigidBodyPod* selfPod, PhysxPxVec3Pod* forcePod, ref PhysxPxVec3Pod torquePod, int modePod) + { + fixed (PhysxPxVec3Pod* ptorquePod = &torquePod) + { + PxRigidBodySetForceAndTorqueMutNative(selfPod, forcePod, (PhysxPxVec3Pod*)ptorquePod, modePod); + } + } + + public static void PxRigidBodySetForceAndTorqueMut( PhysxPxRigidBodyPod* selfPod, ref PhysxPxVec3Pod forcePod, ref PhysxPxVec3Pod torquePod, int modePod) + { + fixed (PhysxPxVec3Pod* pforcePod = &forcePod) + { + fixed (PhysxPxVec3Pod* ptorquePod = &torquePod) + { + PxRigidBodySetForceAndTorqueMutNative(selfPod, (PhysxPxVec3Pod*)pforcePod, (PhysxPxVec3Pod*)ptorquePod, modePod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setRigidBodyFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetRigidBodyFlagMutNative(PhysxPxRigidBodyPod* selfPod, int flagPod, byte value); + + public static void PxRigidBodySetRigidBodyFlagMut( PhysxPxRigidBodyPod* selfPod, int flagPod, bool value) + { + PxRigidBodySetRigidBodyFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setRigidBodyFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetRigidBodyFlagsMutNative(PhysxPxRigidBodyPod* selfPod, ushort inflagsPod); + + public static void PxRigidBodySetRigidBodyFlagsMut( PhysxPxRigidBodyPod* selfPod, ushort inflagsPod) + { + PxRigidBodySetRigidBodyFlagsMutNative(selfPod, inflagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getRigidBodyFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxRigidBodyGetRigidBodyFlagsNative(PhysxPxRigidBodyPod* selfPod); + + public static ushort PxRigidBodyGetRigidBodyFlags( PhysxPxRigidBodyPod* selfPod) + { + ushort ret = PxRigidBodyGetRigidBodyFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setMinCCDAdvanceCoefficient_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetMinCCDAdvanceCoefficientMutNative(PhysxPxRigidBodyPod* selfPod, float advanceCoefficient); + + public static void PxRigidBodySetMinCCDAdvanceCoefficientMut( PhysxPxRigidBodyPod* selfPod, float advanceCoefficient) + { + PxRigidBodySetMinCCDAdvanceCoefficientMutNative(selfPod, advanceCoefficient); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getMinCCDAdvanceCoefficient")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidBodyGetMinCCDAdvanceCoefficientNative(PhysxPxRigidBodyPod* selfPod); + + public static float PxRigidBodyGetMinCCDAdvanceCoefficient( PhysxPxRigidBodyPod* selfPod) + { + float ret = PxRigidBodyGetMinCCDAdvanceCoefficientNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setMaxDepenetrationVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetMaxDepenetrationVelocityMutNative(PhysxPxRigidBodyPod* selfPod, float biasClamp); + + public static void PxRigidBodySetMaxDepenetrationVelocityMut( PhysxPxRigidBodyPod* selfPod, float biasClamp) + { + PxRigidBodySetMaxDepenetrationVelocityMutNative(selfPod, biasClamp); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getMaxDepenetrationVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidBodyGetMaxDepenetrationVelocityNative(PhysxPxRigidBodyPod* selfPod); + + public static float PxRigidBodyGetMaxDepenetrationVelocity( PhysxPxRigidBodyPod* selfPod) + { + float ret = PxRigidBodyGetMaxDepenetrationVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setMaxContactImpulse_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetMaxContactImpulseMutNative(PhysxPxRigidBodyPod* selfPod, float maxImpulse); + + public static void PxRigidBodySetMaxContactImpulseMut( PhysxPxRigidBodyPod* selfPod, float maxImpulse) + { + PxRigidBodySetMaxContactImpulseMutNative(selfPod, maxImpulse); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getMaxContactImpulse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidBodyGetMaxContactImpulseNative(PhysxPxRigidBodyPod* selfPod); + + public static float PxRigidBodyGetMaxContactImpulse( PhysxPxRigidBodyPod* selfPod) + { + float ret = PxRigidBodyGetMaxContactImpulseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_setContactSlopCoefficient_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodySetContactSlopCoefficientMutNative(PhysxPxRigidBodyPod* selfPod, float slopCoefficient); + + public static void PxRigidBodySetContactSlopCoefficientMut( PhysxPxRigidBodyPod* selfPod, float slopCoefficient) + { + PxRigidBodySetContactSlopCoefficientMutNative(selfPod, slopCoefficient); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getContactSlopCoefficient")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidBodyGetContactSlopCoefficientNative(PhysxPxRigidBodyPod* selfPod); + + public static float PxRigidBodyGetContactSlopCoefficient( PhysxPxRigidBodyPod* selfPod) + { + float ret = PxRigidBodyGetContactSlopCoefficientNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBody_getInternalIslandNodeIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxNodeIndexPod PxRigidBodyGetInternalIslandNodeIndexNative(PhysxPxRigidBodyPod* selfPod); + + public static PhysxPxNodeIndexPod PxRigidBodyGetInternalIslandNodeIndex( PhysxPxRigidBodyPod* selfPod) + { + PhysxPxNodeIndexPod ret = PxRigidBodyGetInternalIslandNodeIndexNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationLinkReleaseMutNative(PhysxPxArticulationLinkPod* selfPod); + + public static void PxArticulationLinkReleaseMut( PhysxPxArticulationLinkPod* selfPod) + { + PxArticulationLinkReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_getArticulation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationReducedCoordinatePod* PxArticulationLinkGetArticulationNative(PhysxPxArticulationLinkPod* selfPod); + + public static PhysxPxArticulationReducedCoordinatePod* PxArticulationLinkGetArticulation( PhysxPxArticulationLinkPod* selfPod) + { + PhysxPxArticulationReducedCoordinatePod* ret = PxArticulationLinkGetArticulationNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_getInboundJoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationJointReducedCoordinatePod* PxArticulationLinkGetInboundJointNative(PhysxPxArticulationLinkPod* selfPod); + + public static PhysxPxArticulationJointReducedCoordinatePod* PxArticulationLinkGetInboundJoint( PhysxPxArticulationLinkPod* selfPod) + { + PhysxPxArticulationJointReducedCoordinatePod* ret = PxArticulationLinkGetInboundJointNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_getInboundJointDof")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationLinkGetInboundJointDofNative(PhysxPxArticulationLinkPod* selfPod); + + public static uint PxArticulationLinkGetInboundJointDof( PhysxPxArticulationLinkPod* selfPod) + { + uint ret = PxArticulationLinkGetInboundJointDofNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_getNbChildren")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationLinkGetNbChildrenNative(PhysxPxArticulationLinkPod* selfPod); + + public static uint PxArticulationLinkGetNbChildren( PhysxPxArticulationLinkPod* selfPod) + { + uint ret = PxArticulationLinkGetNbChildrenNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_getLinkIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationLinkGetLinkIndexNative(PhysxPxArticulationLinkPod* selfPod); + + public static uint PxArticulationLinkGetLinkIndex( PhysxPxArticulationLinkPod* selfPod) + { + uint ret = PxArticulationLinkGetLinkIndexNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_getChildren")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxArticulationLinkGetChildrenNative(PhysxPxArticulationLinkPod* selfPod, PhysxPxArticulationLinkPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxArticulationLinkGetChildren( PhysxPxArticulationLinkPod* selfPod, PhysxPxArticulationLinkPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxArticulationLinkGetChildrenNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxArticulationLinkGetChildren( PhysxPxArticulationLinkPod* selfPod, ref PhysxPxArticulationLinkPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxArticulationLinkPod** puserbufferPod = &userbufferPod) + { + uint ret = PxArticulationLinkGetChildrenNative(selfPod, (PhysxPxArticulationLinkPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_setCfmScale_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxArticulationLinkSetCfmScaleMutNative(PhysxPxArticulationLinkPod* selfPod, float cfm); + + public static void PxArticulationLinkSetCfmScaleMut( PhysxPxArticulationLinkPod* selfPod, float cfm) + { + PxArticulationLinkSetCfmScaleMutNative(selfPod, cfm); + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_getCfmScale")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxArticulationLinkGetCfmScaleNative(PhysxPxArticulationLinkPod* selfPod); + + public static float PxArticulationLinkGetCfmScale( PhysxPxArticulationLinkPod* selfPod) + { + float ret = PxArticulationLinkGetCfmScaleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_getLinearVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxArticulationLinkGetLinearVelocityNative(PhysxPxArticulationLinkPod* selfPod); + + public static PhysxPxVec3Pod PxArticulationLinkGetLinearVelocity( PhysxPxArticulationLinkPod* selfPod) + { + PhysxPxVec3Pod ret = PxArticulationLinkGetLinearVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_getAngularVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxArticulationLinkGetAngularVelocityNative(PhysxPxArticulationLinkPod* selfPod); + + public static PhysxPxVec3Pod PxArticulationLinkGetAngularVelocity( PhysxPxArticulationLinkPod* selfPod) + { + PhysxPxVec3Pod ret = PxArticulationLinkGetAngularVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxArticulationLink_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxArticulationLinkGetConcreteTypeNameNative(PhysxPxArticulationLinkPod* selfPod); + + public static byte* PxArticulationLinkGetConcreteTypeName( PhysxPxArticulationLinkPod* selfPod) + { + byte* ret = PxArticulationLinkGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxArticulationLinkGetConcreteTypeNameS( PhysxPxArticulationLinkPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxArticulationLinkGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConeLimitedConstraint_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConeLimitedConstraintPod PxConeLimitedConstraintNewNative(); + + public static PhysxPxConeLimitedConstraintPod PxConeLimitedConstraintNew() + { + PhysxPxConeLimitedConstraintPod ret = PxConeLimitedConstraintNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintReleaseMutNative(PhysxPxConstraintPod* selfPod); + + public static void PxConstraintReleaseMut( PhysxPxConstraintPod* selfPod) + { + PxConstraintReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_getScene")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxScenePod* PxConstraintGetSceneNative(PhysxPxConstraintPod* selfPod); + + public static PhysxPxScenePod* PxConstraintGetScene( PhysxPxConstraintPod* selfPod) + { + PhysxPxScenePod* ret = PxConstraintGetSceneNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_getActors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintGetActorsNative(PhysxPxConstraintPod* selfPod, PhysxPxRigidActorPod** actor0Pod, PhysxPxRigidActorPod** actor1Pod); + + public static void PxConstraintGetActors( PhysxPxConstraintPod* selfPod, PhysxPxRigidActorPod** actor0Pod, PhysxPxRigidActorPod** actor1Pod) + { + PxConstraintGetActorsNative(selfPod, actor0Pod, actor1Pod); + } + + public static void PxConstraintGetActors( PhysxPxConstraintPod* selfPod, ref PhysxPxRigidActorPod* actor0Pod, PhysxPxRigidActorPod** actor1Pod) + { + fixed (PhysxPxRigidActorPod** pactor0Pod = &actor0Pod) + { + PxConstraintGetActorsNative(selfPod, (PhysxPxRigidActorPod**)pactor0Pod, actor1Pod); + } + } + + public static void PxConstraintGetActors( PhysxPxConstraintPod* selfPod, PhysxPxRigidActorPod** actor0Pod, ref PhysxPxRigidActorPod* actor1Pod) + { + fixed (PhysxPxRigidActorPod** pactor1Pod = &actor1Pod) + { + PxConstraintGetActorsNative(selfPod, actor0Pod, (PhysxPxRigidActorPod**)pactor1Pod); + } + } + + public static void PxConstraintGetActors( PhysxPxConstraintPod* selfPod, ref PhysxPxRigidActorPod* actor0Pod, ref PhysxPxRigidActorPod* actor1Pod) + { + fixed (PhysxPxRigidActorPod** pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod** pactor1Pod = &actor1Pod) + { + PxConstraintGetActorsNative(selfPod, (PhysxPxRigidActorPod**)pactor0Pod, (PhysxPxRigidActorPod**)pactor1Pod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_setActors_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintSetActorsMutNative(PhysxPxConstraintPod* selfPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxRigidActorPod* actor1Pod); + + public static void PxConstraintSetActorsMut( PhysxPxConstraintPod* selfPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxRigidActorPod* actor1Pod) + { + PxConstraintSetActorsMutNative(selfPod, actor0Pod, actor1Pod); + } + + public static void PxConstraintSetActorsMut( PhysxPxConstraintPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxRigidActorPod* actor1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PxConstraintSetActorsMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, actor1Pod); + } + } + + public static void PxConstraintSetActorsMut( PhysxPxConstraintPod* selfPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxRigidActorPod actor1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PxConstraintSetActorsMutNative(selfPod, actor0Pod, (PhysxPxRigidActorPod*)pactor1Pod); + } + } + + public static void PxConstraintSetActorsMut( PhysxPxConstraintPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxRigidActorPod actor1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PxConstraintSetActorsMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxRigidActorPod*)pactor1Pod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_markDirty_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintMarkDirtyMutNative(PhysxPxConstraintPod* selfPod); + + public static void PxConstraintMarkDirtyMut( PhysxPxConstraintPod* selfPod) + { + PxConstraintMarkDirtyMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_getFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxConstraintGetFlagsNative(PhysxPxConstraintPod* selfPod); + + public static ushort PxConstraintGetFlags( PhysxPxConstraintPod* selfPod) + { + ushort ret = PxConstraintGetFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_setFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintSetFlagsMutNative(PhysxPxConstraintPod* selfPod, ushort flagsPod); + + public static void PxConstraintSetFlagsMut( PhysxPxConstraintPod* selfPod, ushort flagsPod) + { + PxConstraintSetFlagsMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_setFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintSetFlagMutNative(PhysxPxConstraintPod* selfPod, int flagPod, byte value); + + public static void PxConstraintSetFlagMut( PhysxPxConstraintPod* selfPod, int flagPod, bool value) + { + PxConstraintSetFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_getForce")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintGetForceNative(PhysxPxConstraintPod* selfPod, PhysxPxVec3Pod* linearPod, PhysxPxVec3Pod* angularPod); + + public static void PxConstraintGetForce( PhysxPxConstraintPod* selfPod, PhysxPxVec3Pod* linearPod, PhysxPxVec3Pod* angularPod) + { + PxConstraintGetForceNative(selfPod, linearPod, angularPod); + } + + public static void PxConstraintGetForce( PhysxPxConstraintPod* selfPod, ref PhysxPxVec3Pod linearPod, PhysxPxVec3Pod* angularPod) + { + fixed (PhysxPxVec3Pod* plinearPod = &linearPod) + { + PxConstraintGetForceNative(selfPod, (PhysxPxVec3Pod*)plinearPod, angularPod); + } + } + + public static void PxConstraintGetForce( PhysxPxConstraintPod* selfPod, PhysxPxVec3Pod* linearPod, ref PhysxPxVec3Pod angularPod) + { + fixed (PhysxPxVec3Pod* pangularPod = &angularPod) + { + PxConstraintGetForceNative(selfPod, linearPod, (PhysxPxVec3Pod*)pangularPod); + } + } + + public static void PxConstraintGetForce( PhysxPxConstraintPod* selfPod, ref PhysxPxVec3Pod linearPod, ref PhysxPxVec3Pod angularPod) + { + fixed (PhysxPxVec3Pod* plinearPod = &linearPod) + { + fixed (PhysxPxVec3Pod* pangularPod = &angularPod) + { + PxConstraintGetForceNative(selfPod, (PhysxPxVec3Pod*)plinearPod, (PhysxPxVec3Pod*)pangularPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxConstraintIsValidNative(PhysxPxConstraintPod* selfPod); + + public static bool PxConstraintIsValid( PhysxPxConstraintPod* selfPod) + { + byte ret = PxConstraintIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_setBreakForce_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintSetBreakForceMutNative(PhysxPxConstraintPod* selfPod, float linear, float angular); + + public static void PxConstraintSetBreakForceMut( PhysxPxConstraintPod* selfPod, float linear, float angular) + { + PxConstraintSetBreakForceMutNative(selfPod, linear, angular); + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_getBreakForce")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintGetBreakForceNative(PhysxPxConstraintPod* selfPod, float* linearPod, float* angularPod); + + public static void PxConstraintGetBreakForce( PhysxPxConstraintPod* selfPod, float* linearPod, float* angularPod) + { + PxConstraintGetBreakForceNative(selfPod, linearPod, angularPod); + } + + public static void PxConstraintGetBreakForce( PhysxPxConstraintPod* selfPod, ref float linearPod, float* angularPod) + { + fixed (float* plinearPod = &linearPod) + { + PxConstraintGetBreakForceNative(selfPod, (float*)plinearPod, angularPod); + } + } + + public static void PxConstraintGetBreakForce( PhysxPxConstraintPod* selfPod, float* linearPod, ref float angularPod) + { + fixed (float* pangularPod = &angularPod) + { + PxConstraintGetBreakForceNative(selfPod, linearPod, (float*)pangularPod); + } + } + + public static void PxConstraintGetBreakForce( PhysxPxConstraintPod* selfPod, ref float linearPod, ref float angularPod) + { + fixed (float* plinearPod = &linearPod) + { + fixed (float* pangularPod = &angularPod) + { + PxConstraintGetBreakForceNative(selfPod, (float*)plinearPod, (float*)pangularPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_setMinResponseThreshold_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintSetMinResponseThresholdMutNative(PhysxPxConstraintPod* selfPod, float threshold); + + public static void PxConstraintSetMinResponseThresholdMut( PhysxPxConstraintPod* selfPod, float threshold) + { + PxConstraintSetMinResponseThresholdMutNative(selfPod, threshold); + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_getMinResponseThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxConstraintGetMinResponseThresholdNative(PhysxPxConstraintPod* selfPod); + + public static float PxConstraintGetMinResponseThreshold( PhysxPxConstraintPod* selfPod) + { + float ret = PxConstraintGetMinResponseThresholdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_getExternalReference_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxConstraintGetExternalReferenceMutNative(PhysxPxConstraintPod* selfPod, uint* typeidPod); + + public static void* PxConstraintGetExternalReferenceMut( PhysxPxConstraintPod* selfPod, uint* typeidPod) + { + void* ret = PxConstraintGetExternalReferenceMutNative(selfPod, typeidPod); + return ret; + } + + public static void* PxConstraintGetExternalReferenceMut( PhysxPxConstraintPod* selfPod, ref uint typeidPod) + { + fixed (uint* ptypeidPod = &typeidPod) + { + void* ret = PxConstraintGetExternalReferenceMutNative(selfPod, (uint*)ptypeidPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_setConstraintFunctions_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConstraintSetConstraintFunctionsMutNative(PhysxPxConstraintPod* selfPod, PhysxPxConstraintConnectorPod* connectorPod, PhysxPxConstraintShaderTablePod* shadersPod); + + public static void PxConstraintSetConstraintFunctionsMut( PhysxPxConstraintPod* selfPod, PhysxPxConstraintConnectorPod* connectorPod, PhysxPxConstraintShaderTablePod* shadersPod) + { + PxConstraintSetConstraintFunctionsMutNative(selfPod, connectorPod, shadersPod); + } + + public static void PxConstraintSetConstraintFunctionsMut( PhysxPxConstraintPod* selfPod, ref PhysxPxConstraintConnectorPod connectorPod, PhysxPxConstraintShaderTablePod* shadersPod) + { + fixed (PhysxPxConstraintConnectorPod* pconnectorPod = &connectorPod) + { + PxConstraintSetConstraintFunctionsMutNative(selfPod, (PhysxPxConstraintConnectorPod*)pconnectorPod, shadersPod); + } + } + + public static void PxConstraintSetConstraintFunctionsMut( PhysxPxConstraintPod* selfPod, PhysxPxConstraintConnectorPod* connectorPod, ref PhysxPxConstraintShaderTablePod shadersPod) + { + fixed (PhysxPxConstraintShaderTablePod* pshadersPod = &shadersPod) + { + PxConstraintSetConstraintFunctionsMutNative(selfPod, connectorPod, (PhysxPxConstraintShaderTablePod*)pshadersPod); + } + } + + public static void PxConstraintSetConstraintFunctionsMut( PhysxPxConstraintPod* selfPod, ref PhysxPxConstraintConnectorPod connectorPod, ref PhysxPxConstraintShaderTablePod shadersPod) + { + fixed (PhysxPxConstraintConnectorPod* pconnectorPod = &connectorPod) + { + fixed (PhysxPxConstraintShaderTablePod* pshadersPod = &shadersPod) + { + PxConstraintSetConstraintFunctionsMutNative(selfPod, (PhysxPxConstraintConnectorPod*)pconnectorPod, (PhysxPxConstraintShaderTablePod*)pshadersPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxConstraint_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxConstraintGetConcreteTypeNameNative(PhysxPxConstraintPod* selfPod); + + public static byte* PxConstraintGetConcreteTypeName( PhysxPxConstraintPod* selfPod) + { + byte* ret = PxConstraintGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxConstraintGetConcreteTypeNameS( PhysxPxConstraintPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxConstraintGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxContactStreamIteratorPod PxContactStreamIteratorNewNative(byte* contactPatches, byte* contactPoints, uint* contactFaceIndices, uint nbPatches, uint nbContacts); + + public static PhysxPxContactStreamIteratorPod PxContactStreamIteratorNew( byte* contactPatches, byte* contactPoints, uint* contactFaceIndices, uint nbPatches, uint nbContacts) + { + PhysxPxContactStreamIteratorPod ret = PxContactStreamIteratorNewNative(contactPatches, contactPoints, contactFaceIndices, nbPatches, nbContacts); + return ret; + } + + public static PhysxPxContactStreamIteratorPod PxContactStreamIteratorNew( byte* contactPatches, ref byte contactPoints, uint* contactFaceIndices, uint nbPatches, uint nbContacts) + { + fixed (byte* pcontactPoints = &contactPoints) + { + PhysxPxContactStreamIteratorPod ret = PxContactStreamIteratorNewNative(contactPatches, (byte*)pcontactPoints, contactFaceIndices, nbPatches, nbContacts); + return ret; + } + } + + public static PhysxPxContactStreamIteratorPod PxContactStreamIteratorNew( byte* contactPatches, byte* contactPoints, ref uint contactFaceIndices, uint nbPatches, uint nbContacts) + { + fixed (uint* pcontactFaceIndices = &contactFaceIndices) + { + PhysxPxContactStreamIteratorPod ret = PxContactStreamIteratorNewNative(contactPatches, contactPoints, (uint*)pcontactFaceIndices, nbPatches, nbContacts); + return ret; + } + } + + public static PhysxPxContactStreamIteratorPod PxContactStreamIteratorNew( byte* contactPatches, ref byte contactPoints, ref uint contactFaceIndices, uint nbPatches, uint nbContacts) + { + fixed (byte* pcontactPoints = &contactPoints) + { + fixed (uint* pcontactFaceIndices = &contactFaceIndices) + { + PhysxPxContactStreamIteratorPod ret = PxContactStreamIteratorNewNative(contactPatches, (byte*)pcontactPoints, (uint*)pcontactFaceIndices, nbPatches, nbContacts); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_hasNextPatch")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxContactStreamIteratorHasNextPatchNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static bool PxContactStreamIteratorHasNextPatch( PhysxPxContactStreamIteratorPod* selfPod) + { + byte ret = PxContactStreamIteratorHasNextPatchNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getTotalContactCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxContactStreamIteratorGetTotalContactCountNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static uint PxContactStreamIteratorGetTotalContactCount( PhysxPxContactStreamIteratorPod* selfPod) + { + uint ret = PxContactStreamIteratorGetTotalContactCountNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getTotalPatchCount")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxContactStreamIteratorGetTotalPatchCountNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static uint PxContactStreamIteratorGetTotalPatchCount( PhysxPxContactStreamIteratorPod* selfPod) + { + uint ret = PxContactStreamIteratorGetTotalPatchCountNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_nextPatch_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactStreamIteratorNextPatchMutNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static void PxContactStreamIteratorNextPatchMut( PhysxPxContactStreamIteratorPod* selfPod) + { + PxContactStreamIteratorNextPatchMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_hasNextContact")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxContactStreamIteratorHasNextContactNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static bool PxContactStreamIteratorHasNextContact( PhysxPxContactStreamIteratorPod* selfPod) + { + byte ret = PxContactStreamIteratorHasNextContactNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_nextContact_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactStreamIteratorNextContactMutNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static void PxContactStreamIteratorNextContactMut( PhysxPxContactStreamIteratorPod* selfPod) + { + PxContactStreamIteratorNextContactMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getContactNormal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod* PxContactStreamIteratorGetContactNormalNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static PhysxPxVec3Pod* PxContactStreamIteratorGetContactNormal( PhysxPxContactStreamIteratorPod* selfPod) + { + PhysxPxVec3Pod* ret = PxContactStreamIteratorGetContactNormalNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getInvMassScale0")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactStreamIteratorGetInvMassScale0Native(PhysxPxContactStreamIteratorPod* selfPod); + + public static float PxContactStreamIteratorGetInvMassScale0( PhysxPxContactStreamIteratorPod* selfPod) + { + float ret = PxContactStreamIteratorGetInvMassScale0Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getInvMassScale1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactStreamIteratorGetInvMassScale1Native(PhysxPxContactStreamIteratorPod* selfPod); + + public static float PxContactStreamIteratorGetInvMassScale1( PhysxPxContactStreamIteratorPod* selfPod) + { + float ret = PxContactStreamIteratorGetInvMassScale1Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getInvInertiaScale0")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactStreamIteratorGetInvInertiaScale0Native(PhysxPxContactStreamIteratorPod* selfPod); + + public static float PxContactStreamIteratorGetInvInertiaScale0( PhysxPxContactStreamIteratorPod* selfPod) + { + float ret = PxContactStreamIteratorGetInvInertiaScale0Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getInvInertiaScale1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactStreamIteratorGetInvInertiaScale1Native(PhysxPxContactStreamIteratorPod* selfPod); + + public static float PxContactStreamIteratorGetInvInertiaScale1( PhysxPxContactStreamIteratorPod* selfPod) + { + float ret = PxContactStreamIteratorGetInvInertiaScale1Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getMaxImpulse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactStreamIteratorGetMaxImpulseNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static float PxContactStreamIteratorGetMaxImpulse( PhysxPxContactStreamIteratorPod* selfPod) + { + float ret = PxContactStreamIteratorGetMaxImpulseNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getTargetVel")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod* PxContactStreamIteratorGetTargetVelNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static PhysxPxVec3Pod* PxContactStreamIteratorGetTargetVel( PhysxPxContactStreamIteratorPod* selfPod) + { + PhysxPxVec3Pod* ret = PxContactStreamIteratorGetTargetVelNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getContactPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod* PxContactStreamIteratorGetContactPointNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static PhysxPxVec3Pod* PxContactStreamIteratorGetContactPoint( PhysxPxContactStreamIteratorPod* selfPod) + { + PhysxPxVec3Pod* ret = PxContactStreamIteratorGetContactPointNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getSeparation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactStreamIteratorGetSeparationNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static float PxContactStreamIteratorGetSeparation( PhysxPxContactStreamIteratorPod* selfPod) + { + float ret = PxContactStreamIteratorGetSeparationNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getFaceIndex0")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxContactStreamIteratorGetFaceIndex0Native(PhysxPxContactStreamIteratorPod* selfPod); + + public static uint PxContactStreamIteratorGetFaceIndex0( PhysxPxContactStreamIteratorPod* selfPod) + { + uint ret = PxContactStreamIteratorGetFaceIndex0Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getFaceIndex1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxContactStreamIteratorGetFaceIndex1Native(PhysxPxContactStreamIteratorPod* selfPod); + + public static uint PxContactStreamIteratorGetFaceIndex1( PhysxPxContactStreamIteratorPod* selfPod) + { + uint ret = PxContactStreamIteratorGetFaceIndex1Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getStaticFriction")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactStreamIteratorGetStaticFrictionNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static float PxContactStreamIteratorGetStaticFriction( PhysxPxContactStreamIteratorPod* selfPod) + { + float ret = PxContactStreamIteratorGetStaticFrictionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getDynamicFriction")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactStreamIteratorGetDynamicFrictionNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static float PxContactStreamIteratorGetDynamicFriction( PhysxPxContactStreamIteratorPod* selfPod) + { + float ret = PxContactStreamIteratorGetDynamicFrictionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getRestitution")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactStreamIteratorGetRestitutionNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static float PxContactStreamIteratorGetRestitution( PhysxPxContactStreamIteratorPod* selfPod) + { + float ret = PxContactStreamIteratorGetRestitutionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getDamping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactStreamIteratorGetDampingNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static float PxContactStreamIteratorGetDamping( PhysxPxContactStreamIteratorPod* selfPod) + { + float ret = PxContactStreamIteratorGetDampingNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getMaterialFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxContactStreamIteratorGetMaterialFlagsNative(PhysxPxContactStreamIteratorPod* selfPod); + + public static uint PxContactStreamIteratorGetMaterialFlags( PhysxPxContactStreamIteratorPod* selfPod) + { + uint ret = PxContactStreamIteratorGetMaterialFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getMaterialIndex0")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxContactStreamIteratorGetMaterialIndex0Native(PhysxPxContactStreamIteratorPod* selfPod); + + public static ushort PxContactStreamIteratorGetMaterialIndex0( PhysxPxContactStreamIteratorPod* selfPod) + { + ushort ret = PxContactStreamIteratorGetMaterialIndex0Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_getMaterialIndex1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxContactStreamIteratorGetMaterialIndex1Native(PhysxPxContactStreamIteratorPod* selfPod); + + public static ushort PxContactStreamIteratorGetMaterialIndex1( PhysxPxContactStreamIteratorPod* selfPod) + { + ushort ret = PxContactStreamIteratorGetMaterialIndex1Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactStreamIterator_advanceToIndex_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxContactStreamIteratorAdvanceToIndexMutNative(PhysxPxContactStreamIteratorPod* selfPod, uint initialIndex); + + public static bool PxContactStreamIteratorAdvanceToIndexMut( PhysxPxContactStreamIteratorPod* selfPod, uint initialIndex) + { + byte ret = PxContactStreamIteratorAdvanceToIndexMutNative(selfPod, initialIndex); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod* PxContactSetGetPointNative(PhysxPxContactSetPod* selfPod, uint i); + + public static PhysxPxVec3Pod* PxContactSetGetPoint( PhysxPxContactSetPod* selfPod, uint i) + { + PhysxPxVec3Pod* ret = PxContactSetGetPointNative(selfPod, i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setPoint_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetPointMutNative(PhysxPxContactSetPod* selfPod, uint i, PhysxPxVec3Pod* pPod); + + public static void PxContactSetSetPointMut( PhysxPxContactSetPod* selfPod, uint i, PhysxPxVec3Pod* pPod) + { + PxContactSetSetPointMutNative(selfPod, i, pPod); + } + + public static void PxContactSetSetPointMut( PhysxPxContactSetPod* selfPod, uint i, ref PhysxPxVec3Pod pPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + PxContactSetSetPointMutNative(selfPod, i, (PhysxPxVec3Pod*)ppPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getNormal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod* PxContactSetGetNormalNative(PhysxPxContactSetPod* selfPod, uint i); + + public static PhysxPxVec3Pod* PxContactSetGetNormal( PhysxPxContactSetPod* selfPod, uint i) + { + PhysxPxVec3Pod* ret = PxContactSetGetNormalNative(selfPod, i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setNormal_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetNormalMutNative(PhysxPxContactSetPod* selfPod, uint i, PhysxPxVec3Pod* nPod); + + public static void PxContactSetSetNormalMut( PhysxPxContactSetPod* selfPod, uint i, PhysxPxVec3Pod* nPod) + { + PxContactSetSetNormalMutNative(selfPod, i, nPod); + } + + public static void PxContactSetSetNormalMut( PhysxPxContactSetPod* selfPod, uint i, ref PhysxPxVec3Pod nPod) + { + fixed (PhysxPxVec3Pod* pnPod = &nPod) + { + PxContactSetSetNormalMutNative(selfPod, i, (PhysxPxVec3Pod*)pnPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getSeparation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactSetGetSeparationNative(PhysxPxContactSetPod* selfPod, uint i); + + public static float PxContactSetGetSeparation( PhysxPxContactSetPod* selfPod, uint i) + { + float ret = PxContactSetGetSeparationNative(selfPod, i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setSeparation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetSeparationMutNative(PhysxPxContactSetPod* selfPod, uint i, float s); + + public static void PxContactSetSetSeparationMut( PhysxPxContactSetPod* selfPod, uint i, float s) + { + PxContactSetSetSeparationMutNative(selfPod, i, s); + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getTargetVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod* PxContactSetGetTargetVelocityNative(PhysxPxContactSetPod* selfPod, uint i); + + public static PhysxPxVec3Pod* PxContactSetGetTargetVelocity( PhysxPxContactSetPod* selfPod, uint i) + { + PhysxPxVec3Pod* ret = PxContactSetGetTargetVelocityNative(selfPod, i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setTargetVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetTargetVelocityMutNative(PhysxPxContactSetPod* selfPod, uint i, PhysxPxVec3Pod* vPod); + + public static void PxContactSetSetTargetVelocityMut( PhysxPxContactSetPod* selfPod, uint i, PhysxPxVec3Pod* vPod) + { + PxContactSetSetTargetVelocityMutNative(selfPod, i, vPod); + } + + public static void PxContactSetSetTargetVelocityMut( PhysxPxContactSetPod* selfPod, uint i, ref PhysxPxVec3Pod vPod) + { + fixed (PhysxPxVec3Pod* pvPod = &vPod) + { + PxContactSetSetTargetVelocityMutNative(selfPod, i, (PhysxPxVec3Pod*)pvPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getInternalFaceIndex0")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxContactSetGetInternalFaceIndex0Native(PhysxPxContactSetPod* selfPod, uint i); + + public static uint PxContactSetGetInternalFaceIndex0( PhysxPxContactSetPod* selfPod, uint i) + { + uint ret = PxContactSetGetInternalFaceIndex0Native(selfPod, i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getInternalFaceIndex1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxContactSetGetInternalFaceIndex1Native(PhysxPxContactSetPod* selfPod, uint i); + + public static uint PxContactSetGetInternalFaceIndex1( PhysxPxContactSetPod* selfPod, uint i) + { + uint ret = PxContactSetGetInternalFaceIndex1Native(selfPod, i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getMaxImpulse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactSetGetMaxImpulseNative(PhysxPxContactSetPod* selfPod, uint i); + + public static float PxContactSetGetMaxImpulse( PhysxPxContactSetPod* selfPod, uint i) + { + float ret = PxContactSetGetMaxImpulseNative(selfPod, i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setMaxImpulse_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetMaxImpulseMutNative(PhysxPxContactSetPod* selfPod, uint i, float s); + + public static void PxContactSetSetMaxImpulseMut( PhysxPxContactSetPod* selfPod, uint i, float s) + { + PxContactSetSetMaxImpulseMutNative(selfPod, i, s); + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getRestitution")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactSetGetRestitutionNative(PhysxPxContactSetPod* selfPod, uint i); + + public static float PxContactSetGetRestitution( PhysxPxContactSetPod* selfPod, uint i) + { + float ret = PxContactSetGetRestitutionNative(selfPod, i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setRestitution_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetRestitutionMutNative(PhysxPxContactSetPod* selfPod, uint i, float r); + + public static void PxContactSetSetRestitutionMut( PhysxPxContactSetPod* selfPod, uint i, float r) + { + PxContactSetSetRestitutionMutNative(selfPod, i, r); + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getStaticFriction")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactSetGetStaticFrictionNative(PhysxPxContactSetPod* selfPod, uint i); + + public static float PxContactSetGetStaticFriction( PhysxPxContactSetPod* selfPod, uint i) + { + float ret = PxContactSetGetStaticFrictionNative(selfPod, i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setStaticFriction_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetStaticFrictionMutNative(PhysxPxContactSetPod* selfPod, uint i, float f); + + public static void PxContactSetSetStaticFrictionMut( PhysxPxContactSetPod* selfPod, uint i, float f) + { + PxContactSetSetStaticFrictionMutNative(selfPod, i, f); + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getDynamicFriction")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactSetGetDynamicFrictionNative(PhysxPxContactSetPod* selfPod, uint i); + + public static float PxContactSetGetDynamicFriction( PhysxPxContactSetPod* selfPod, uint i) + { + float ret = PxContactSetGetDynamicFrictionNative(selfPod, i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setDynamicFriction_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetDynamicFrictionMutNative(PhysxPxContactSetPod* selfPod, uint i, float f); + + public static void PxContactSetSetDynamicFrictionMut( PhysxPxContactSetPod* selfPod, uint i, float f) + { + PxContactSetSetDynamicFrictionMutNative(selfPod, i, f); + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_ignore_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetIgnoreMutNative(PhysxPxContactSetPod* selfPod, uint i); + + public static void PxContactSetIgnoreMut( PhysxPxContactSetPod* selfPod, uint i) + { + PxContactSetIgnoreMutNative(selfPod, i); + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_size")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxContactSetSizeNative(PhysxPxContactSetPod* selfPod); + + public static uint PxContactSetSize( PhysxPxContactSetPod* selfPod) + { + uint ret = PxContactSetSizeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getInvMassScale0")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactSetGetInvMassScale0Native(PhysxPxContactSetPod* selfPod); + + public static float PxContactSetGetInvMassScale0( PhysxPxContactSetPod* selfPod) + { + float ret = PxContactSetGetInvMassScale0Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getInvMassScale1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactSetGetInvMassScale1Native(PhysxPxContactSetPod* selfPod); + + public static float PxContactSetGetInvMassScale1( PhysxPxContactSetPod* selfPod) + { + float ret = PxContactSetGetInvMassScale1Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getInvInertiaScale0")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactSetGetInvInertiaScale0Native(PhysxPxContactSetPod* selfPod); + + public static float PxContactSetGetInvInertiaScale0( PhysxPxContactSetPod* selfPod) + { + float ret = PxContactSetGetInvInertiaScale0Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_getInvInertiaScale1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactSetGetInvInertiaScale1Native(PhysxPxContactSetPod* selfPod); + + public static float PxContactSetGetInvInertiaScale1( PhysxPxContactSetPod* selfPod) + { + float ret = PxContactSetGetInvInertiaScale1Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setInvMassScale0_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetInvMassScale0MutNative(PhysxPxContactSetPod* selfPod, float scale); + + public static void PxContactSetSetInvMassScale0Mut( PhysxPxContactSetPod* selfPod, float scale) + { + PxContactSetSetInvMassScale0MutNative(selfPod, scale); + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setInvMassScale1_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetInvMassScale1MutNative(PhysxPxContactSetPod* selfPod, float scale); + + public static void PxContactSetSetInvMassScale1Mut( PhysxPxContactSetPod* selfPod, float scale) + { + PxContactSetSetInvMassScale1MutNative(selfPod, scale); + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setInvInertiaScale0_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetInvInertiaScale0MutNative(PhysxPxContactSetPod* selfPod, float scale); + + public static void PxContactSetSetInvInertiaScale0Mut( PhysxPxContactSetPod* selfPod, float scale) + { + PxContactSetSetInvInertiaScale0MutNative(selfPod, scale); + } + + [LibraryImport(LibName, EntryPoint = "PxContactSet_setInvInertiaScale1_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactSetSetInvInertiaScale1MutNative(PhysxPxContactSetPod* selfPod, float scale); + + public static void PxContactSetSetInvInertiaScale1Mut( PhysxPxContactSetPod* selfPod, float scale) + { + PxContactSetSetInvInertiaScale1MutNative(selfPod, scale); + } + + [LibraryImport(LibName, EntryPoint = "PxContactModifyCallback_onContactModify_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactModifyCallbackOnContactModifyMutNative(PhysxPxContactModifyCallbackPod* selfPod, PhysxPxContactModifyPairPod* pairsPod, uint count); + + public static void PxContactModifyCallbackOnContactModifyMut( PhysxPxContactModifyCallbackPod* selfPod, PhysxPxContactModifyPairPod* pairsPod, uint count) + { + PxContactModifyCallbackOnContactModifyMutNative(selfPod, pairsPod, count); + } + + public static void PxContactModifyCallbackOnContactModifyMut( PhysxPxContactModifyCallbackPod* selfPod, ref PhysxPxContactModifyPairPod pairsPod, uint count) + { + fixed (PhysxPxContactModifyPairPod* ppairsPod = &pairsPod) + { + PxContactModifyCallbackOnContactModifyMutNative(selfPod, (PhysxPxContactModifyPairPod*)ppairsPod, count); + } + } + + [LibraryImport(LibName, EntryPoint = "PxCCDContactModifyCallback_onCCDContactModify_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCCDContactModifyCallbackOnCCDContactModifyMutNative(PhysxPxCCDContactModifyCallbackPod* selfPod, PhysxPxContactModifyPairPod* pairsPod, uint count); + + public static void PxCCDContactModifyCallbackOnCCDContactModifyMut( PhysxPxCCDContactModifyCallbackPod* selfPod, PhysxPxContactModifyPairPod* pairsPod, uint count) + { + PxCCDContactModifyCallbackOnCCDContactModifyMutNative(selfPod, pairsPod, count); + } + + public static void PxCCDContactModifyCallbackOnCCDContactModifyMut( PhysxPxCCDContactModifyCallbackPod* selfPod, ref PhysxPxContactModifyPairPod pairsPod, uint count) + { + fixed (PhysxPxContactModifyPairPod* ppairsPod = &pairsPod) + { + PxCCDContactModifyCallbackOnCCDContactModifyMutNative(selfPod, (PhysxPxContactModifyPairPod*)ppairsPod, count); + } + } + + [LibraryImport(LibName, EntryPoint = "PxDeletionListener_onRelease_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDeletionListenerOnReleaseMutNative(PhysxPxDeletionListenerPod* selfPod, PhysxPxBasePod* observedPod, void* userData, int deletioneventPod); + + public static void PxDeletionListenerOnReleaseMut( PhysxPxDeletionListenerPod* selfPod, PhysxPxBasePod* observedPod, void* userData, int deletioneventPod) + { + PxDeletionListenerOnReleaseMutNative(selfPod, observedPod, userData, deletioneventPod); + } + + public static void PxDeletionListenerOnReleaseMut( PhysxPxDeletionListenerPod* selfPod, ref PhysxPxBasePod observedPod, void* userData, int deletioneventPod) + { + fixed (PhysxPxBasePod* pobservedPod = &observedPod) + { + PxDeletionListenerOnReleaseMutNative(selfPod, (PhysxPxBasePod*)pobservedPod, userData, deletioneventPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxBaseMaterial_isKindOf")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBaseMaterialIsKindOfNative(PhysxPxBaseMaterialPod* selfPod, byte* name); + + public static bool PxBaseMaterialIsKindOf( PhysxPxBaseMaterialPod* selfPod, byte* name) + { + byte ret = PxBaseMaterialIsKindOfNative(selfPod, name); + return ret != 0; + } + + public static bool PxBaseMaterialIsKindOf( PhysxPxBaseMaterialPod* selfPod, ref byte name) + { + fixed (byte* pname = &name) + { + byte ret = PxBaseMaterialIsKindOfNative(selfPod, (byte*)pname); + return ret != 0; + } + } + + public static bool PxBaseMaterialIsKindOf( PhysxPxBaseMaterialPod* selfPod, string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte ret = PxBaseMaterialIsKindOfNative(selfPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxFEMMaterial_setYoungsModulus_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxFEMMaterialSetYoungsModulusMutNative(PhysxPxFEMMaterialPod* selfPod, float young); + + public static void PxFEMMaterialSetYoungsModulusMut( PhysxPxFEMMaterialPod* selfPod, float young) + { + PxFEMMaterialSetYoungsModulusMutNative(selfPod, young); + } + + [LibraryImport(LibName, EntryPoint = "PxFEMMaterial_getYoungsModulus")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxFEMMaterialGetYoungsModulusNative(PhysxPxFEMMaterialPod* selfPod); + + public static float PxFEMMaterialGetYoungsModulus( PhysxPxFEMMaterialPod* selfPod) + { + float ret = PxFEMMaterialGetYoungsModulusNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxFEMMaterial_setPoissons_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxFEMMaterialSetPoissonsMutNative(PhysxPxFEMMaterialPod* selfPod, float poisson); + + public static void PxFEMMaterialSetPoissonsMut( PhysxPxFEMMaterialPod* selfPod, float poisson) + { + PxFEMMaterialSetPoissonsMutNative(selfPod, poisson); + } + + [LibraryImport(LibName, EntryPoint = "PxFEMMaterial_getPoissons")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxFEMMaterialGetPoissonsNative(PhysxPxFEMMaterialPod* selfPod); + + public static float PxFEMMaterialGetPoissons( PhysxPxFEMMaterialPod* selfPod) + { + float ret = PxFEMMaterialGetPoissonsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxFEMMaterial_setDynamicFriction_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxFEMMaterialSetDynamicFrictionMutNative(PhysxPxFEMMaterialPod* selfPod, float dynamicFriction); + + public static void PxFEMMaterialSetDynamicFrictionMut( PhysxPxFEMMaterialPod* selfPod, float dynamicFriction) + { + PxFEMMaterialSetDynamicFrictionMutNative(selfPod, dynamicFriction); + } + + [LibraryImport(LibName, EntryPoint = "PxFEMMaterial_getDynamicFriction")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxFEMMaterialGetDynamicFrictionNative(PhysxPxFEMMaterialPod* selfPod); + + public static float PxFEMMaterialGetDynamicFriction( PhysxPxFEMMaterialPod* selfPod) + { + float ret = PxFEMMaterialGetDynamicFrictionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxFilterData_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxFilterDataPod PxFilterDataNewNative(int anonparam0Pod); + + public static PhysxPxFilterDataPod PxFilterDataNew( int anonparam0Pod) + { + PhysxPxFilterDataPod ret = PxFilterDataNewNative(anonparam0Pod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxFilterData_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxFilterDataPod PxFilterDataNew1Native(); + + public static PhysxPxFilterDataPod PxFilterDataNew1() + { + PhysxPxFilterDataPod ret = PxFilterDataNew1Native(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxFilterData_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxFilterDataPod PxFilterDataNew2Native(uint w0, uint w1, uint w2, uint w3); + + public static PhysxPxFilterDataPod PxFilterDataNew2( uint w0, uint w1, uint w2, uint w3) + { + PhysxPxFilterDataPod ret = PxFilterDataNew2Native(w0, w1, w2, w3); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxFilterData_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxFilterDataSetToDefaultMutNative(PhysxPxFilterDataPod* selfPod); + + public static void PxFilterDataSetToDefaultMut( PhysxPxFilterDataPod* selfPod) + { + PxFilterDataSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetFilterObjectType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PhysPxGetFilterObjectTypeNative(uint attr); + + public static int PhysPxGetFilterObjectType( uint attr) + { + int ret = PhysPxGetFilterObjectTypeNative(attr); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxFilterObjectIsKinematic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxFilterObjectIsKinematicNative(uint attr); + + public static bool PhysPxFilterObjectIsKinematic( uint attr) + { + byte ret = PhysPxFilterObjectIsKinematicNative(attr); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxFilterObjectIsTrigger")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxFilterObjectIsTriggerNative(uint attr); + + public static bool PhysPxFilterObjectIsTrigger( uint attr) + { + byte ret = PhysPxFilterObjectIsTriggerNative(attr); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationFilterCallback_pairFound_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxSimulationFilterCallbackPairFoundMutNative(PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, PhysxPxShapePod* s1Pod, ushort* pairflagsPod); + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, PhysxPxShapePod* s1Pod, ushort* pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, s0Pod, attributes1, filterData1Pod, a1Pod, s1Pod, pairflagsPod); + return ret; + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, PhysxPxShapePod* s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, s0Pod, attributes1, filterData1Pod, a1Pod, s1Pod, pairflagsPod); + return ret; + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, PhysxPxShapePod* s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, a1Pod, s1Pod, pairflagsPod); + return ret; + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, PhysxPxShapePod* s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, a1Pod, s1Pod, pairflagsPod); + return ret; + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, PhysxPxShapePod* s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, s0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, s1Pod, pairflagsPod); + return ret; + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, PhysxPxShapePod* s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, s0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, s1Pod, pairflagsPod); + return ret; + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, PhysxPxShapePod* s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, s1Pod, pairflagsPod); + return ret; + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, PhysxPxShapePod* s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, s1Pod, pairflagsPod); + return ret; + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, ref PhysxPxShapePod s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, s0Pod, attributes1, filterData1Pod, a1Pod, (PhysxPxShapePod*)ps1Pod, pairflagsPod); + return ret; + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, ref PhysxPxShapePod s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, s0Pod, attributes1, filterData1Pod, a1Pod, (PhysxPxShapePod*)ps1Pod, pairflagsPod); + return ret; + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, ref PhysxPxShapePod s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, a1Pod, (PhysxPxShapePod*)ps1Pod, pairflagsPod); + return ret; + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, ref PhysxPxShapePod s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, a1Pod, (PhysxPxShapePod*)ps1Pod, pairflagsPod); + return ret; + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, ref PhysxPxShapePod s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, s0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, (PhysxPxShapePod*)ps1Pod, pairflagsPod); + return ret; + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, ref PhysxPxShapePod s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, s0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, (PhysxPxShapePod*)ps1Pod, pairflagsPod); + return ret; + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, ref PhysxPxShapePod s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, (PhysxPxShapePod*)ps1Pod, pairflagsPod); + return ret; + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, ref PhysxPxShapePod s1Pod, ushort* pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, (PhysxPxShapePod*)ps1Pod, pairflagsPod); + return ret; + } + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, PhysxPxShapePod* s1Pod, ref ushort pairflagsPod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, s0Pod, attributes1, filterData1Pod, a1Pod, s1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, PhysxPxShapePod* s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, s0Pod, attributes1, filterData1Pod, a1Pod, s1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, PhysxPxShapePod* s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, a1Pod, s1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, PhysxPxShapePod* s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, a1Pod, s1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, PhysxPxShapePod* s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, s0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, s1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, PhysxPxShapePod* s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, s0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, s1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, PhysxPxShapePod* s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, s1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, PhysxPxShapePod* s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, s1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, ref PhysxPxShapePod s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, s0Pod, attributes1, filterData1Pod, a1Pod, (PhysxPxShapePod*)ps1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, ref PhysxPxShapePod s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, s0Pod, attributes1, filterData1Pod, a1Pod, (PhysxPxShapePod*)ps1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, ref PhysxPxShapePod s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, a1Pod, (PhysxPxShapePod*)ps1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, PhysxPxActorPod* a1Pod, ref PhysxPxShapePod s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, a1Pod, (PhysxPxShapePod*)ps1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, ref PhysxPxShapePod s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, s0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, (PhysxPxShapePod*)ps1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, PhysxPxShapePod* s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, ref PhysxPxShapePod s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, s0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, (PhysxPxShapePod*)ps1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, PhysxPxActorPod* a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, ref PhysxPxShapePod s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, a0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, (PhysxPxShapePod*)ps1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + } + } + + public static ushort PxSimulationFilterCallbackPairFoundMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, ref PhysxPxActorPod a0Pod, ref PhysxPxShapePod s0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref PhysxPxActorPod a1Pod, ref PhysxPxShapePod s1Pod, ref ushort pairflagsPod) + { + fixed (PhysxPxActorPod* pa0Pod = &a0Pod) + { + fixed (PhysxPxShapePod* ps0Pod = &s0Pod) + { + fixed (PhysxPxActorPod* pa1Pod = &a1Pod) + { + fixed (PhysxPxShapePod* ps1Pod = &s1Pod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PxSimulationFilterCallbackPairFoundMutNative(selfPod, pairID, attributes0, filterData0Pod, (PhysxPxActorPod*)pa0Pod, (PhysxPxShapePod*)ps0Pod, attributes1, filterData1Pod, (PhysxPxActorPod*)pa1Pod, (PhysxPxShapePod*)ps1Pod, (ushort*)ppairflagsPod); + return ret; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationFilterCallback_pairLost_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSimulationFilterCallbackPairLostMutNative(PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, byte objectRemoved); + + public static void PxSimulationFilterCallbackPairLostMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint pairID, uint attributes0, PhysxPxFilterDataPod filterData0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, bool objectRemoved) + { + PxSimulationFilterCallbackPairLostMutNative(selfPod, pairID, attributes0, filterData0Pod, attributes1, filterData1Pod, objectRemoved ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationFilterCallback_statusChange_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSimulationFilterCallbackStatusChangeMutNative(PhysxPxSimulationFilterCallbackPod* selfPod, uint* pairidPod, ushort* pairflagsPod, ushort* filterflagsPod); + + public static bool PxSimulationFilterCallbackStatusChangeMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint* pairidPod, ushort* pairflagsPod, ushort* filterflagsPod) + { + byte ret = PxSimulationFilterCallbackStatusChangeMutNative(selfPod, pairidPod, pairflagsPod, filterflagsPod); + return ret != 0; + } + + public static bool PxSimulationFilterCallbackStatusChangeMut( PhysxPxSimulationFilterCallbackPod* selfPod, ref uint pairidPod, ushort* pairflagsPod, ushort* filterflagsPod) + { + fixed (uint* ppairidPod = &pairidPod) + { + byte ret = PxSimulationFilterCallbackStatusChangeMutNative(selfPod, (uint*)ppairidPod, pairflagsPod, filterflagsPod); + return ret != 0; + } + } + + public static bool PxSimulationFilterCallbackStatusChangeMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint* pairidPod, ref ushort pairflagsPod, ushort* filterflagsPod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + byte ret = PxSimulationFilterCallbackStatusChangeMutNative(selfPod, pairidPod, (ushort*)ppairflagsPod, filterflagsPod); + return ret != 0; + } + } + + public static bool PxSimulationFilterCallbackStatusChangeMut( PhysxPxSimulationFilterCallbackPod* selfPod, ref uint pairidPod, ref ushort pairflagsPod, ushort* filterflagsPod) + { + fixed (uint* ppairidPod = &pairidPod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + byte ret = PxSimulationFilterCallbackStatusChangeMutNative(selfPod, (uint*)ppairidPod, (ushort*)ppairflagsPod, filterflagsPod); + return ret != 0; + } + } + } + + public static bool PxSimulationFilterCallbackStatusChangeMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint* pairidPod, ushort* pairflagsPod, ref ushort filterflagsPod) + { + fixed (ushort* pfilterflagsPod = &filterflagsPod) + { + byte ret = PxSimulationFilterCallbackStatusChangeMutNative(selfPod, pairidPod, pairflagsPod, (ushort*)pfilterflagsPod); + return ret != 0; + } + } + + public static bool PxSimulationFilterCallbackStatusChangeMut( PhysxPxSimulationFilterCallbackPod* selfPod, ref uint pairidPod, ushort* pairflagsPod, ref ushort filterflagsPod) + { + fixed (uint* ppairidPod = &pairidPod) + { + fixed (ushort* pfilterflagsPod = &filterflagsPod) + { + byte ret = PxSimulationFilterCallbackStatusChangeMutNative(selfPod, (uint*)ppairidPod, pairflagsPod, (ushort*)pfilterflagsPod); + return ret != 0; + } + } + } + + public static bool PxSimulationFilterCallbackStatusChangeMut( PhysxPxSimulationFilterCallbackPod* selfPod, uint* pairidPod, ref ushort pairflagsPod, ref ushort filterflagsPod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + fixed (ushort* pfilterflagsPod = &filterflagsPod) + { + byte ret = PxSimulationFilterCallbackStatusChangeMutNative(selfPod, pairidPod, (ushort*)ppairflagsPod, (ushort*)pfilterflagsPod); + return ret != 0; + } + } + } + + public static bool PxSimulationFilterCallbackStatusChangeMut( PhysxPxSimulationFilterCallbackPod* selfPod, ref uint pairidPod, ref ushort pairflagsPod, ref ushort filterflagsPod) + { + fixed (uint* ppairidPod = &pairidPod) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + fixed (ushort* pfilterflagsPod = &filterflagsPod) + { + byte ret = PxSimulationFilterCallbackStatusChangeMutNative(selfPod, (uint*)ppairidPod, (ushort*)ppairflagsPod, (ushort*)pfilterflagsPod); + return ret != 0; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxLockedData_getDataAccessFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxLockedDataGetDataAccessFlagsMutNative(PhysxPxLockedDataPod* selfPod); + + public static byte PxLockedDataGetDataAccessFlagsMut( PhysxPxLockedDataPod* selfPod) + { + byte ret = PxLockedDataGetDataAccessFlagsMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxLockedData_unlock_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxLockedDataUnlockMutNative(PhysxPxLockedDataPod* selfPod); + + public static void PxLockedDataUnlockMut( PhysxPxLockedDataPod* selfPod) + { + PxLockedDataUnlockMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxLockedData_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxLockedDataDeleteNative(PhysxPxLockedDataPod* selfPod); + + public static void PxLockedDataDelete( PhysxPxLockedDataPod* selfPod) + { + PxLockedDataDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_setDynamicFriction_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMaterialSetDynamicFrictionMutNative(PhysxPxMaterialPod* selfPod, float coef); + + public static void PxMaterialSetDynamicFrictionMut( PhysxPxMaterialPod* selfPod, float coef) + { + PxMaterialSetDynamicFrictionMutNative(selfPod, coef); + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_getDynamicFriction")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxMaterialGetDynamicFrictionNative(PhysxPxMaterialPod* selfPod); + + public static float PxMaterialGetDynamicFriction( PhysxPxMaterialPod* selfPod) + { + float ret = PxMaterialGetDynamicFrictionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_setStaticFriction_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMaterialSetStaticFrictionMutNative(PhysxPxMaterialPod* selfPod, float coef); + + public static void PxMaterialSetStaticFrictionMut( PhysxPxMaterialPod* selfPod, float coef) + { + PxMaterialSetStaticFrictionMutNative(selfPod, coef); + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_getStaticFriction")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxMaterialGetStaticFrictionNative(PhysxPxMaterialPod* selfPod); + + public static float PxMaterialGetStaticFriction( PhysxPxMaterialPod* selfPod) + { + float ret = PxMaterialGetStaticFrictionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_setRestitution_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMaterialSetRestitutionMutNative(PhysxPxMaterialPod* selfPod, float rest); + + public static void PxMaterialSetRestitutionMut( PhysxPxMaterialPod* selfPod, float rest) + { + PxMaterialSetRestitutionMutNative(selfPod, rest); + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_getRestitution")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxMaterialGetRestitutionNative(PhysxPxMaterialPod* selfPod); + + public static float PxMaterialGetRestitution( PhysxPxMaterialPod* selfPod) + { + float ret = PxMaterialGetRestitutionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_setDamping_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMaterialSetDampingMutNative(PhysxPxMaterialPod* selfPod, float damping); + + public static void PxMaterialSetDampingMut( PhysxPxMaterialPod* selfPod, float damping) + { + PxMaterialSetDampingMutNative(selfPod, damping); + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_getDamping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxMaterialGetDampingNative(PhysxPxMaterialPod* selfPod); + + public static float PxMaterialGetDamping( PhysxPxMaterialPod* selfPod) + { + float ret = PxMaterialGetDampingNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_setFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMaterialSetFlagMutNative(PhysxPxMaterialPod* selfPod, int flagPod, byte b); + + public static void PxMaterialSetFlagMut( PhysxPxMaterialPod* selfPod, int flagPod, bool b) + { + PxMaterialSetFlagMutNative(selfPod, flagPod, b ? (byte)1 : (byte)0); + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.007.cs b/Hexa.NET.PhysX/Generated/Functions.007.cs new file mode 100644 index 0000000..08f1f70 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.007.cs @@ -0,0 +1,5035 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + [LibraryImport(LibName, EntryPoint = "PxMaterial_setFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMaterialSetFlagsMutNative(PhysxPxMaterialPod* selfPod, ushort flagsPod); + + public static void PxMaterialSetFlagsMut( PhysxPxMaterialPod* selfPod, ushort flagsPod) + { + PxMaterialSetFlagsMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_getFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxMaterialGetFlagsNative(PhysxPxMaterialPod* selfPod); + + public static ushort PxMaterialGetFlags( PhysxPxMaterialPod* selfPod) + { + ushort ret = PxMaterialGetFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_setFrictionCombineMode_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMaterialSetFrictionCombineModeMutNative(PhysxPxMaterialPod* selfPod, int combmodePod); + + public static void PxMaterialSetFrictionCombineModeMut( PhysxPxMaterialPod* selfPod, int combmodePod) + { + PxMaterialSetFrictionCombineModeMutNative(selfPod, combmodePod); + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_getFrictionCombineMode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxMaterialGetFrictionCombineModeNative(PhysxPxMaterialPod* selfPod); + + public static int PxMaterialGetFrictionCombineMode( PhysxPxMaterialPod* selfPod) + { + int ret = PxMaterialGetFrictionCombineModeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_setRestitutionCombineMode_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMaterialSetRestitutionCombineModeMutNative(PhysxPxMaterialPod* selfPod, int combmodePod); + + public static void PxMaterialSetRestitutionCombineModeMut( PhysxPxMaterialPod* selfPod, int combmodePod) + { + PxMaterialSetRestitutionCombineModeMutNative(selfPod, combmodePod); + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_getRestitutionCombineMode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxMaterialGetRestitutionCombineModeNative(PhysxPxMaterialPod* selfPod); + + public static int PxMaterialGetRestitutionCombineMode( PhysxPxMaterialPod* selfPod) + { + int ret = PxMaterialGetRestitutionCombineModeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMaterial_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxMaterialGetConcreteTypeNameNative(PhysxPxMaterialPod* selfPod); + + public static byte* PxMaterialGetConcreteTypeName( PhysxPxMaterialPod* selfPod) + { + byte* ret = PxMaterialGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxMaterialGetConcreteTypeNameS( PhysxPxMaterialPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxMaterialGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDiffuseParticleParams_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDiffuseParticleParamsPod PxDiffuseParticleParamsNewNative(); + + public static PhysxPxDiffuseParticleParamsPod PxDiffuseParticleParamsNew() + { + PhysxPxDiffuseParticleParamsPod ret = PxDiffuseParticleParamsNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDiffuseParticleParams_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDiffuseParticleParamsSetToDefaultMutNative(PhysxPxDiffuseParticleParamsPod* selfPod); + + public static void PxDiffuseParticleParamsSetToDefaultMut( PhysxPxDiffuseParticleParamsPod* selfPod) + { + PxDiffuseParticleParamsSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxParticleMaterial_setFriction_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxParticleMaterialSetFrictionMutNative(PhysxPxParticleMaterialPod* selfPod, float friction); + + public static void PxParticleMaterialSetFrictionMut( PhysxPxParticleMaterialPod* selfPod, float friction) + { + PxParticleMaterialSetFrictionMutNative(selfPod, friction); + } + + [LibraryImport(LibName, EntryPoint = "PxParticleMaterial_getFriction")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxParticleMaterialGetFrictionNative(PhysxPxParticleMaterialPod* selfPod); + + public static float PxParticleMaterialGetFriction( PhysxPxParticleMaterialPod* selfPod) + { + float ret = PxParticleMaterialGetFrictionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxParticleMaterial_setDamping_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxParticleMaterialSetDampingMutNative(PhysxPxParticleMaterialPod* selfPod, float damping); + + public static void PxParticleMaterialSetDampingMut( PhysxPxParticleMaterialPod* selfPod, float damping) + { + PxParticleMaterialSetDampingMutNative(selfPod, damping); + } + + [LibraryImport(LibName, EntryPoint = "PxParticleMaterial_getDamping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxParticleMaterialGetDampingNative(PhysxPxParticleMaterialPod* selfPod); + + public static float PxParticleMaterialGetDamping( PhysxPxParticleMaterialPod* selfPod) + { + float ret = PxParticleMaterialGetDampingNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxParticleMaterial_setAdhesion_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxParticleMaterialSetAdhesionMutNative(PhysxPxParticleMaterialPod* selfPod, float adhesion); + + public static void PxParticleMaterialSetAdhesionMut( PhysxPxParticleMaterialPod* selfPod, float adhesion) + { + PxParticleMaterialSetAdhesionMutNative(selfPod, adhesion); + } + + [LibraryImport(LibName, EntryPoint = "PxParticleMaterial_getAdhesion")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxParticleMaterialGetAdhesionNative(PhysxPxParticleMaterialPod* selfPod); + + public static float PxParticleMaterialGetAdhesion( PhysxPxParticleMaterialPod* selfPod) + { + float ret = PxParticleMaterialGetAdhesionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxParticleMaterial_setGravityScale_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxParticleMaterialSetGravityScaleMutNative(PhysxPxParticleMaterialPod* selfPod, float scale); + + public static void PxParticleMaterialSetGravityScaleMut( PhysxPxParticleMaterialPod* selfPod, float scale) + { + PxParticleMaterialSetGravityScaleMutNative(selfPod, scale); + } + + [LibraryImport(LibName, EntryPoint = "PxParticleMaterial_getGravityScale")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxParticleMaterialGetGravityScaleNative(PhysxPxParticleMaterialPod* selfPod); + + public static float PxParticleMaterialGetGravityScale( PhysxPxParticleMaterialPod* selfPod) + { + float ret = PxParticleMaterialGetGravityScaleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxParticleMaterial_setAdhesionRadiusScale_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxParticleMaterialSetAdhesionRadiusScaleMutNative(PhysxPxParticleMaterialPod* selfPod, float scale); + + public static void PxParticleMaterialSetAdhesionRadiusScaleMut( PhysxPxParticleMaterialPod* selfPod, float scale) + { + PxParticleMaterialSetAdhesionRadiusScaleMutNative(selfPod, scale); + } + + [LibraryImport(LibName, EntryPoint = "PxParticleMaterial_getAdhesionRadiusScale")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxParticleMaterialGetAdhesionRadiusScaleNative(PhysxPxParticleMaterialPod* selfPod); + + public static float PxParticleMaterialGetAdhesionRadiusScale( PhysxPxParticleMaterialPod* selfPod) + { + float ret = PxParticleMaterialGetAdhesionRadiusScaleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPhysicsReleaseMutNative(PhysxPxPhysicsPod* selfPod); + + public static void PxPhysicsReleaseMut( PhysxPxPhysicsPod* selfPod) + { + PxPhysicsReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getFoundation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxFoundationPod* PxPhysicsGetFoundationMutNative(PhysxPxPhysicsPod* selfPod); + + public static PhysxPxFoundationPod* PxPhysicsGetFoundationMut( PhysxPxPhysicsPod* selfPod) + { + PhysxPxFoundationPod* ret = PxPhysicsGetFoundationMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createAggregate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxAggregatePod* PxPhysicsCreateAggregateMutNative(PhysxPxPhysicsPod* selfPod, uint maxActor, uint maxShape, uint filterHint); + + public static PhysxPxAggregatePod* PxPhysicsCreateAggregateMut( PhysxPxPhysicsPod* selfPod, uint maxActor, uint maxShape, uint filterHint) + { + PhysxPxAggregatePod* ret = PxPhysicsCreateAggregateMutNative(selfPod, maxActor, maxShape, filterHint); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getTolerancesScale")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTolerancesScalePod* PxPhysicsGetTolerancesScaleNative(PhysxPxPhysicsPod* selfPod); + + public static PhysxPxTolerancesScalePod* PxPhysicsGetTolerancesScale( PhysxPxPhysicsPod* selfPod) + { + PhysxPxTolerancesScalePod* ret = PxPhysicsGetTolerancesScaleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createTriangleMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTriangleMeshPod* PxPhysicsCreateTriangleMeshMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod); + + public static PhysxPxTriangleMeshPod* PxPhysicsCreateTriangleMeshMut( PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod) + { + PhysxPxTriangleMeshPod* ret = PxPhysicsCreateTriangleMeshMutNative(selfPod, streamPod); + return ret; + } + + public static PhysxPxTriangleMeshPod* PxPhysicsCreateTriangleMeshMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxInputStreamPod streamPod) + { + fixed (PhysxPxInputStreamPod* pstreamPod = &streamPod) + { + PhysxPxTriangleMeshPod* ret = PxPhysicsCreateTriangleMeshMutNative(selfPod, (PhysxPxInputStreamPod*)pstreamPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getNbTriangleMeshes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetNbTriangleMeshesNative(PhysxPxPhysicsPod* selfPod); + + public static uint PxPhysicsGetNbTriangleMeshes( PhysxPxPhysicsPod* selfPod) + { + uint ret = PxPhysicsGetNbTriangleMeshesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getTriangleMeshes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetTriangleMeshesNative(PhysxPxPhysicsPod* selfPod, PhysxPxTriangleMeshPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxPhysicsGetTriangleMeshes( PhysxPxPhysicsPod* selfPod, PhysxPxTriangleMeshPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxPhysicsGetTriangleMeshesNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxPhysicsGetTriangleMeshes( PhysxPxPhysicsPod* selfPod, ref PhysxPxTriangleMeshPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxTriangleMeshPod** puserbufferPod = &userbufferPod) + { + uint ret = PxPhysicsGetTriangleMeshesNative(selfPod, (PhysxPxTriangleMeshPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createTetrahedronMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshPod* PxPhysicsCreateTetrahedronMeshMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod); + + public static PhysxPxTetrahedronMeshPod* PxPhysicsCreateTetrahedronMeshMut( PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod) + { + PhysxPxTetrahedronMeshPod* ret = PxPhysicsCreateTetrahedronMeshMutNative(selfPod, streamPod); + return ret; + } + + public static PhysxPxTetrahedronMeshPod* PxPhysicsCreateTetrahedronMeshMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxInputStreamPod streamPod) + { + fixed (PhysxPxInputStreamPod* pstreamPod = &streamPod) + { + PhysxPxTetrahedronMeshPod* ret = PxPhysicsCreateTetrahedronMeshMutNative(selfPod, (PhysxPxInputStreamPod*)pstreamPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createSoftBodyMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSoftBodyMeshPod* PxPhysicsCreateSoftBodyMeshMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod); + + public static PhysxPxSoftBodyMeshPod* PxPhysicsCreateSoftBodyMeshMut( PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod) + { + PhysxPxSoftBodyMeshPod* ret = PxPhysicsCreateSoftBodyMeshMutNative(selfPod, streamPod); + return ret; + } + + public static PhysxPxSoftBodyMeshPod* PxPhysicsCreateSoftBodyMeshMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxInputStreamPod streamPod) + { + fixed (PhysxPxInputStreamPod* pstreamPod = &streamPod) + { + PhysxPxSoftBodyMeshPod* ret = PxPhysicsCreateSoftBodyMeshMutNative(selfPod, (PhysxPxInputStreamPod*)pstreamPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getNbTetrahedronMeshes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetNbTetrahedronMeshesNative(PhysxPxPhysicsPod* selfPod); + + public static uint PxPhysicsGetNbTetrahedronMeshes( PhysxPxPhysicsPod* selfPod) + { + uint ret = PxPhysicsGetNbTetrahedronMeshesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getTetrahedronMeshes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetTetrahedronMeshesNative(PhysxPxPhysicsPod* selfPod, PhysxPxTetrahedronMeshPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxPhysicsGetTetrahedronMeshes( PhysxPxPhysicsPod* selfPod, PhysxPxTetrahedronMeshPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxPhysicsGetTetrahedronMeshesNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxPhysicsGetTetrahedronMeshes( PhysxPxPhysicsPod* selfPod, ref PhysxPxTetrahedronMeshPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxTetrahedronMeshPod** puserbufferPod = &userbufferPod) + { + uint ret = PxPhysicsGetTetrahedronMeshesNative(selfPod, (PhysxPxTetrahedronMeshPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createHeightField_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxHeightFieldPod* PxPhysicsCreateHeightFieldMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod); + + public static PhysxPxHeightFieldPod* PxPhysicsCreateHeightFieldMut( PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod) + { + PhysxPxHeightFieldPod* ret = PxPhysicsCreateHeightFieldMutNative(selfPod, streamPod); + return ret; + } + + public static PhysxPxHeightFieldPod* PxPhysicsCreateHeightFieldMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxInputStreamPod streamPod) + { + fixed (PhysxPxInputStreamPod* pstreamPod = &streamPod) + { + PhysxPxHeightFieldPod* ret = PxPhysicsCreateHeightFieldMutNative(selfPod, (PhysxPxInputStreamPod*)pstreamPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getNbHeightFields")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetNbHeightFieldsNative(PhysxPxPhysicsPod* selfPod); + + public static uint PxPhysicsGetNbHeightFields( PhysxPxPhysicsPod* selfPod) + { + uint ret = PxPhysicsGetNbHeightFieldsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getHeightFields")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetHeightFieldsNative(PhysxPxPhysicsPod* selfPod, PhysxPxHeightFieldPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxPhysicsGetHeightFields( PhysxPxPhysicsPod* selfPod, PhysxPxHeightFieldPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxPhysicsGetHeightFieldsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxPhysicsGetHeightFields( PhysxPxPhysicsPod* selfPod, ref PhysxPxHeightFieldPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxHeightFieldPod** puserbufferPod = &userbufferPod) + { + uint ret = PxPhysicsGetHeightFieldsNative(selfPod, (PhysxPxHeightFieldPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createConvexMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConvexMeshPod* PxPhysicsCreateConvexMeshMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod); + + public static PhysxPxConvexMeshPod* PxPhysicsCreateConvexMeshMut( PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod) + { + PhysxPxConvexMeshPod* ret = PxPhysicsCreateConvexMeshMutNative(selfPod, streamPod); + return ret; + } + + public static PhysxPxConvexMeshPod* PxPhysicsCreateConvexMeshMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxInputStreamPod streamPod) + { + fixed (PhysxPxInputStreamPod* pstreamPod = &streamPod) + { + PhysxPxConvexMeshPod* ret = PxPhysicsCreateConvexMeshMutNative(selfPod, (PhysxPxInputStreamPod*)pstreamPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getNbConvexMeshes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetNbConvexMeshesNative(PhysxPxPhysicsPod* selfPod); + + public static uint PxPhysicsGetNbConvexMeshes( PhysxPxPhysicsPod* selfPod) + { + uint ret = PxPhysicsGetNbConvexMeshesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getConvexMeshes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetConvexMeshesNative(PhysxPxPhysicsPod* selfPod, PhysxPxConvexMeshPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxPhysicsGetConvexMeshes( PhysxPxPhysicsPod* selfPod, PhysxPxConvexMeshPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxPhysicsGetConvexMeshesNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxPhysicsGetConvexMeshes( PhysxPxPhysicsPod* selfPod, ref PhysxPxConvexMeshPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxConvexMeshPod** puserbufferPod = &userbufferPod) + { + uint ret = PxPhysicsGetConvexMeshesNative(selfPod, (PhysxPxConvexMeshPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createBVH_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBVHPod* PxPhysicsCreateBVHMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod); + + public static PhysxPxBVHPod* PxPhysicsCreateBVHMut( PhysxPxPhysicsPod* selfPod, PhysxPxInputStreamPod* streamPod) + { + PhysxPxBVHPod* ret = PxPhysicsCreateBVHMutNative(selfPod, streamPod); + return ret; + } + + public static PhysxPxBVHPod* PxPhysicsCreateBVHMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxInputStreamPod streamPod) + { + fixed (PhysxPxInputStreamPod* pstreamPod = &streamPod) + { + PhysxPxBVHPod* ret = PxPhysicsCreateBVHMutNative(selfPod, (PhysxPxInputStreamPod*)pstreamPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getNbBVHs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetNbBVHsNative(PhysxPxPhysicsPod* selfPod); + + public static uint PxPhysicsGetNbBVHs( PhysxPxPhysicsPod* selfPod) + { + uint ret = PxPhysicsGetNbBVHsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getBVHs")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetBVHsNative(PhysxPxPhysicsPod* selfPod, PhysxPxBVHPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxPhysicsGetBVHs( PhysxPxPhysicsPod* selfPod, PhysxPxBVHPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxPhysicsGetBVHsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxPhysicsGetBVHs( PhysxPxPhysicsPod* selfPod, ref PhysxPxBVHPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxBVHPod** puserbufferPod = &userbufferPod) + { + uint ret = PxPhysicsGetBVHsNative(selfPod, (PhysxPxBVHPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createScene_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxScenePod* PxPhysicsCreateSceneMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxSceneDescPod* scenedescPod); + + public static PhysxPxScenePod* PxPhysicsCreateSceneMut( PhysxPxPhysicsPod* selfPod, PhysxPxSceneDescPod* scenedescPod) + { + PhysxPxScenePod* ret = PxPhysicsCreateSceneMutNative(selfPod, scenedescPod); + return ret; + } + + public static PhysxPxScenePod* PxPhysicsCreateSceneMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxSceneDescPod scenedescPod) + { + fixed (PhysxPxSceneDescPod* pscenedescPod = &scenedescPod) + { + PhysxPxScenePod* ret = PxPhysicsCreateSceneMutNative(selfPod, (PhysxPxSceneDescPod*)pscenedescPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getNbScenes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetNbScenesNative(PhysxPxPhysicsPod* selfPod); + + public static uint PxPhysicsGetNbScenes( PhysxPxPhysicsPod* selfPod) + { + uint ret = PxPhysicsGetNbScenesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getScenes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetScenesNative(PhysxPxPhysicsPod* selfPod, PhysxPxScenePod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxPhysicsGetScenes( PhysxPxPhysicsPod* selfPod, PhysxPxScenePod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxPhysicsGetScenesNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxPhysicsGetScenes( PhysxPxPhysicsPod* selfPod, ref PhysxPxScenePod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxScenePod** puserbufferPod = &userbufferPod) + { + uint ret = PxPhysicsGetScenesNative(selfPod, (PhysxPxScenePod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createRigidStatic_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidStaticPod* PxPhysicsCreateRigidStaticMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxTransformPod* posePod); + + public static PhysxPxRigidStaticPod* PxPhysicsCreateRigidStaticMut( PhysxPxPhysicsPod* selfPod, PhysxPxTransformPod* posePod) + { + PhysxPxRigidStaticPod* ret = PxPhysicsCreateRigidStaticMutNative(selfPod, posePod); + return ret; + } + + public static PhysxPxRigidStaticPod* PxPhysicsCreateRigidStaticMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxTransformPod posePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PhysxPxRigidStaticPod* ret = PxPhysicsCreateRigidStaticMutNative(selfPod, (PhysxPxTransformPod*)pposePod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createRigidDynamic_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidDynamicPod* PxPhysicsCreateRigidDynamicMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxTransformPod* posePod); + + public static PhysxPxRigidDynamicPod* PxPhysicsCreateRigidDynamicMut( PhysxPxPhysicsPod* selfPod, PhysxPxTransformPod* posePod) + { + PhysxPxRigidDynamicPod* ret = PxPhysicsCreateRigidDynamicMutNative(selfPod, posePod); + return ret; + } + + public static PhysxPxRigidDynamicPod* PxPhysicsCreateRigidDynamicMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxTransformPod posePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PhysxPxRigidDynamicPod* ret = PxPhysicsCreateRigidDynamicMutNative(selfPod, (PhysxPxTransformPod*)pposePod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createPruningStructure_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPruningStructurePod* PxPhysicsCreatePruningStructureMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxRigidActorPod** actorsPod, uint nbActors); + + public static PhysxPxPruningStructurePod* PxPhysicsCreatePruningStructureMut( PhysxPxPhysicsPod* selfPod, PhysxPxRigidActorPod** actorsPod, uint nbActors) + { + PhysxPxPruningStructurePod* ret = PxPhysicsCreatePruningStructureMutNative(selfPod, actorsPod, nbActors); + return ret; + } + + public static PhysxPxPruningStructurePod* PxPhysicsCreatePruningStructureMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxRigidActorPod* actorsPod, uint nbActors) + { + fixed (PhysxPxRigidActorPod** pactorsPod = &actorsPod) + { + PhysxPxPruningStructurePod* ret = PxPhysicsCreatePruningStructureMutNative(selfPod, (PhysxPxRigidActorPod**)pactorsPod, nbActors); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createShape_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxShapePod* PxPhysicsCreateShapeMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, byte isExclusive, byte shapeflagsPod); + + public static PhysxPxShapePod* PxPhysicsCreateShapeMut( PhysxPxPhysicsPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, bool isExclusive, byte shapeflagsPod) + { + PhysxPxShapePod* ret = PxPhysicsCreateShapeMutNative(selfPod, geometryPod, materialPod, isExclusive ? (byte)1 : (byte)0, shapeflagsPod); + return ret; + } + + public static PhysxPxShapePod* PxPhysicsCreateShapeMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, bool isExclusive, byte shapeflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxShapePod* ret = PxPhysicsCreateShapeMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, isExclusive ? (byte)1 : (byte)0, shapeflagsPod); + return ret; + } + } + + public static PhysxPxShapePod* PxPhysicsCreateShapeMut( PhysxPxPhysicsPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, bool isExclusive, byte shapeflagsPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxShapePod* ret = PxPhysicsCreateShapeMutNative(selfPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, isExclusive ? (byte)1 : (byte)0, shapeflagsPod); + return ret; + } + } + + public static PhysxPxShapePod* PxPhysicsCreateShapeMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, bool isExclusive, byte shapeflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxShapePod* ret = PxPhysicsCreateShapeMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, isExclusive ? (byte)1 : (byte)0, shapeflagsPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createShape_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxShapePod* PxPhysicsCreateShapeMut1Native(PhysxPxPhysicsPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod** materialsPod, ushort materialCount, byte isExclusive, byte shapeflagsPod); + + public static PhysxPxShapePod* PxPhysicsCreateShapeMut1( PhysxPxPhysicsPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod** materialsPod, ushort materialCount, bool isExclusive, byte shapeflagsPod) + { + PhysxPxShapePod* ret = PxPhysicsCreateShapeMut1Native(selfPod, geometryPod, materialsPod, materialCount, isExclusive ? (byte)1 : (byte)0, shapeflagsPod); + return ret; + } + + public static PhysxPxShapePod* PxPhysicsCreateShapeMut1( PhysxPxPhysicsPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod** materialsPod, ushort materialCount, bool isExclusive, byte shapeflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxShapePod* ret = PxPhysicsCreateShapeMut1Native(selfPod, (PhysxPxGeometryPod*)pgeometryPod, materialsPod, materialCount, isExclusive ? (byte)1 : (byte)0, shapeflagsPod); + return ret; + } + } + + public static PhysxPxShapePod* PxPhysicsCreateShapeMut1( PhysxPxPhysicsPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod* materialsPod, ushort materialCount, bool isExclusive, byte shapeflagsPod) + { + fixed (PhysxPxMaterialPod** pmaterialsPod = &materialsPod) + { + PhysxPxShapePod* ret = PxPhysicsCreateShapeMut1Native(selfPod, geometryPod, (PhysxPxMaterialPod**)pmaterialsPod, materialCount, isExclusive ? (byte)1 : (byte)0, shapeflagsPod); + return ret; + } + } + + public static PhysxPxShapePod* PxPhysicsCreateShapeMut1( PhysxPxPhysicsPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod* materialsPod, ushort materialCount, bool isExclusive, byte shapeflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod** pmaterialsPod = &materialsPod) + { + PhysxPxShapePod* ret = PxPhysicsCreateShapeMut1Native(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod**)pmaterialsPod, materialCount, isExclusive ? (byte)1 : (byte)0, shapeflagsPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getNbShapes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetNbShapesNative(PhysxPxPhysicsPod* selfPod); + + public static uint PxPhysicsGetNbShapes( PhysxPxPhysicsPod* selfPod) + { + uint ret = PxPhysicsGetNbShapesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getShapes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetShapesNative(PhysxPxPhysicsPod* selfPod, PhysxPxShapePod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxPhysicsGetShapes( PhysxPxPhysicsPod* selfPod, PhysxPxShapePod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxPhysicsGetShapesNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxPhysicsGetShapes( PhysxPxPhysicsPod* selfPod, ref PhysxPxShapePod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxShapePod** puserbufferPod = &userbufferPod) + { + uint ret = PxPhysicsGetShapesNative(selfPod, (PhysxPxShapePod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createConstraint_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConstraintPod* PxPhysicsCreateConstraintMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxConstraintConnectorPod* connectorPod, PhysxPxConstraintShaderTablePod* shadersPod, uint dataSize); + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxConstraintConnectorPod* connectorPod, PhysxPxConstraintShaderTablePod* shadersPod, uint dataSize) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, actor0Pod, actor1Pod, connectorPod, shadersPod, dataSize); + return ret; + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxConstraintConnectorPod* connectorPod, PhysxPxConstraintShaderTablePod* shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, actor1Pod, connectorPod, shadersPod, dataSize); + return ret; + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxConstraintConnectorPod* connectorPod, PhysxPxConstraintShaderTablePod* shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, actor0Pod, (PhysxPxRigidActorPod*)pactor1Pod, connectorPod, shadersPod, dataSize); + return ret; + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxConstraintConnectorPod* connectorPod, PhysxPxConstraintShaderTablePod* shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxRigidActorPod*)pactor1Pod, connectorPod, shadersPod, dataSize); + return ret; + } + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxConstraintConnectorPod connectorPod, PhysxPxConstraintShaderTablePod* shadersPod, uint dataSize) + { + fixed (PhysxPxConstraintConnectorPod* pconnectorPod = &connectorPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, actor0Pod, actor1Pod, (PhysxPxConstraintConnectorPod*)pconnectorPod, shadersPod, dataSize); + return ret; + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxConstraintConnectorPod connectorPod, PhysxPxConstraintShaderTablePod* shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxConstraintConnectorPod* pconnectorPod = &connectorPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, actor1Pod, (PhysxPxConstraintConnectorPod*)pconnectorPod, shadersPod, dataSize); + return ret; + } + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxConstraintConnectorPod connectorPod, PhysxPxConstraintShaderTablePod* shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxConstraintConnectorPod* pconnectorPod = &connectorPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, actor0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxConstraintConnectorPod*)pconnectorPod, shadersPod, dataSize); + return ret; + } + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxConstraintConnectorPod connectorPod, PhysxPxConstraintShaderTablePod* shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxConstraintConnectorPod* pconnectorPod = &connectorPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxConstraintConnectorPod*)pconnectorPod, shadersPod, dataSize); + return ret; + } + } + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxConstraintConnectorPod* connectorPod, ref PhysxPxConstraintShaderTablePod shadersPod, uint dataSize) + { + fixed (PhysxPxConstraintShaderTablePod* pshadersPod = &shadersPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, actor0Pod, actor1Pod, connectorPod, (PhysxPxConstraintShaderTablePod*)pshadersPod, dataSize); + return ret; + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxConstraintConnectorPod* connectorPod, ref PhysxPxConstraintShaderTablePod shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxConstraintShaderTablePod* pshadersPod = &shadersPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, actor1Pod, connectorPod, (PhysxPxConstraintShaderTablePod*)pshadersPod, dataSize); + return ret; + } + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxConstraintConnectorPod* connectorPod, ref PhysxPxConstraintShaderTablePod shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxConstraintShaderTablePod* pshadersPod = &shadersPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, actor0Pod, (PhysxPxRigidActorPod*)pactor1Pod, connectorPod, (PhysxPxConstraintShaderTablePod*)pshadersPod, dataSize); + return ret; + } + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxConstraintConnectorPod* connectorPod, ref PhysxPxConstraintShaderTablePod shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxConstraintShaderTablePod* pshadersPod = &shadersPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxRigidActorPod*)pactor1Pod, connectorPod, (PhysxPxConstraintShaderTablePod*)pshadersPod, dataSize); + return ret; + } + } + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxConstraintConnectorPod connectorPod, ref PhysxPxConstraintShaderTablePod shadersPod, uint dataSize) + { + fixed (PhysxPxConstraintConnectorPod* pconnectorPod = &connectorPod) + { + fixed (PhysxPxConstraintShaderTablePod* pshadersPod = &shadersPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, actor0Pod, actor1Pod, (PhysxPxConstraintConnectorPod*)pconnectorPod, (PhysxPxConstraintShaderTablePod*)pshadersPod, dataSize); + return ret; + } + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxConstraintConnectorPod connectorPod, ref PhysxPxConstraintShaderTablePod shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxConstraintConnectorPod* pconnectorPod = &connectorPod) + { + fixed (PhysxPxConstraintShaderTablePod* pshadersPod = &shadersPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, actor1Pod, (PhysxPxConstraintConnectorPod*)pconnectorPod, (PhysxPxConstraintShaderTablePod*)pshadersPod, dataSize); + return ret; + } + } + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxConstraintConnectorPod connectorPod, ref PhysxPxConstraintShaderTablePod shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxConstraintConnectorPod* pconnectorPod = &connectorPod) + { + fixed (PhysxPxConstraintShaderTablePod* pshadersPod = &shadersPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, actor0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxConstraintConnectorPod*)pconnectorPod, (PhysxPxConstraintShaderTablePod*)pshadersPod, dataSize); + return ret; + } + } + } + } + + public static PhysxPxConstraintPod* PxPhysicsCreateConstraintMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxConstraintConnectorPod connectorPod, ref PhysxPxConstraintShaderTablePod shadersPod, uint dataSize) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxConstraintConnectorPod* pconnectorPod = &connectorPod) + { + fixed (PhysxPxConstraintShaderTablePod* pshadersPod = &shadersPod) + { + PhysxPxConstraintPod* ret = PxPhysicsCreateConstraintMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxConstraintConnectorPod*)pconnectorPod, (PhysxPxConstraintShaderTablePod*)pshadersPod, dataSize); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createArticulationReducedCoordinate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxArticulationReducedCoordinatePod* PxPhysicsCreateArticulationReducedCoordinateMutNative(PhysxPxPhysicsPod* selfPod); + + public static PhysxPxArticulationReducedCoordinatePod* PxPhysicsCreateArticulationReducedCoordinateMut( PhysxPxPhysicsPod* selfPod) + { + PhysxPxArticulationReducedCoordinatePod* ret = PxPhysicsCreateArticulationReducedCoordinateMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_createMaterial_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMaterialPod* PxPhysicsCreateMaterialMutNative(PhysxPxPhysicsPod* selfPod, float staticFriction, float dynamicFriction, float restitution); + + public static PhysxPxMaterialPod* PxPhysicsCreateMaterialMut( PhysxPxPhysicsPod* selfPod, float staticFriction, float dynamicFriction, float restitution) + { + PhysxPxMaterialPod* ret = PxPhysicsCreateMaterialMutNative(selfPod, staticFriction, dynamicFriction, restitution); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getNbMaterials")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetNbMaterialsNative(PhysxPxPhysicsPod* selfPod); + + public static uint PxPhysicsGetNbMaterials( PhysxPxPhysicsPod* selfPod) + { + uint ret = PxPhysicsGetNbMaterialsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getMaterials")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPhysicsGetMaterialsNative(PhysxPxPhysicsPod* selfPod, PhysxPxMaterialPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxPhysicsGetMaterials( PhysxPxPhysicsPod* selfPod, PhysxPxMaterialPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxPhysicsGetMaterialsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxPhysicsGetMaterials( PhysxPxPhysicsPod* selfPod, ref PhysxPxMaterialPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxMaterialPod** puserbufferPod = &userbufferPod) + { + uint ret = PxPhysicsGetMaterialsNative(selfPod, (PhysxPxMaterialPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_registerDeletionListener_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPhysicsRegisterDeletionListenerMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxDeletionListenerPod* observerPod, byte* deletioneventsPod, byte restrictedObjectSet); + + public static void PxPhysicsRegisterDeletionListenerMut( PhysxPxPhysicsPod* selfPod, PhysxPxDeletionListenerPod* observerPod, byte* deletioneventsPod, bool restrictedObjectSet) + { + PxPhysicsRegisterDeletionListenerMutNative(selfPod, observerPod, deletioneventsPod, restrictedObjectSet ? (byte)1 : (byte)0); + } + + public static void PxPhysicsRegisterDeletionListenerMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxDeletionListenerPod observerPod, byte* deletioneventsPod, bool restrictedObjectSet) + { + fixed (PhysxPxDeletionListenerPod* pobserverPod = &observerPod) + { + PxPhysicsRegisterDeletionListenerMutNative(selfPod, (PhysxPxDeletionListenerPod*)pobserverPod, deletioneventsPod, restrictedObjectSet ? (byte)1 : (byte)0); + } + } + + public static void PxPhysicsRegisterDeletionListenerMut( PhysxPxPhysicsPod* selfPod, PhysxPxDeletionListenerPod* observerPod, ref byte deletioneventsPod, bool restrictedObjectSet) + { + fixed (byte* pdeletioneventsPod = &deletioneventsPod) + { + PxPhysicsRegisterDeletionListenerMutNative(selfPod, observerPod, (byte*)pdeletioneventsPod, restrictedObjectSet ? (byte)1 : (byte)0); + } + } + + public static void PxPhysicsRegisterDeletionListenerMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxDeletionListenerPod observerPod, ref byte deletioneventsPod, bool restrictedObjectSet) + { + fixed (PhysxPxDeletionListenerPod* pobserverPod = &observerPod) + { + fixed (byte* pdeletioneventsPod = &deletioneventsPod) + { + PxPhysicsRegisterDeletionListenerMutNative(selfPod, (PhysxPxDeletionListenerPod*)pobserverPod, (byte*)pdeletioneventsPod, restrictedObjectSet ? (byte)1 : (byte)0); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_unregisterDeletionListener_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPhysicsUnregisterDeletionListenerMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxDeletionListenerPod* observerPod); + + public static void PxPhysicsUnregisterDeletionListenerMut( PhysxPxPhysicsPod* selfPod, PhysxPxDeletionListenerPod* observerPod) + { + PxPhysicsUnregisterDeletionListenerMutNative(selfPod, observerPod); + } + + public static void PxPhysicsUnregisterDeletionListenerMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxDeletionListenerPod observerPod) + { + fixed (PhysxPxDeletionListenerPod* pobserverPod = &observerPod) + { + PxPhysicsUnregisterDeletionListenerMutNative(selfPod, (PhysxPxDeletionListenerPod*)pobserverPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_registerDeletionListenerObjects_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPhysicsRegisterDeletionListenerObjectsMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxDeletionListenerPod* observerPod, PhysxPxBasePod** observablesPod, uint observableCount); + + public static void PxPhysicsRegisterDeletionListenerObjectsMut( PhysxPxPhysicsPod* selfPod, PhysxPxDeletionListenerPod* observerPod, PhysxPxBasePod** observablesPod, uint observableCount) + { + PxPhysicsRegisterDeletionListenerObjectsMutNative(selfPod, observerPod, observablesPod, observableCount); + } + + public static void PxPhysicsRegisterDeletionListenerObjectsMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxDeletionListenerPod observerPod, PhysxPxBasePod** observablesPod, uint observableCount) + { + fixed (PhysxPxDeletionListenerPod* pobserverPod = &observerPod) + { + PxPhysicsRegisterDeletionListenerObjectsMutNative(selfPod, (PhysxPxDeletionListenerPod*)pobserverPod, observablesPod, observableCount); + } + } + + public static void PxPhysicsRegisterDeletionListenerObjectsMut( PhysxPxPhysicsPod* selfPod, PhysxPxDeletionListenerPod* observerPod, ref PhysxPxBasePod* observablesPod, uint observableCount) + { + fixed (PhysxPxBasePod** pobservablesPod = &observablesPod) + { + PxPhysicsRegisterDeletionListenerObjectsMutNative(selfPod, observerPod, (PhysxPxBasePod**)pobservablesPod, observableCount); + } + } + + public static void PxPhysicsRegisterDeletionListenerObjectsMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxDeletionListenerPod observerPod, ref PhysxPxBasePod* observablesPod, uint observableCount) + { + fixed (PhysxPxDeletionListenerPod* pobserverPod = &observerPod) + { + fixed (PhysxPxBasePod** pobservablesPod = &observablesPod) + { + PxPhysicsRegisterDeletionListenerObjectsMutNative(selfPod, (PhysxPxDeletionListenerPod*)pobserverPod, (PhysxPxBasePod**)pobservablesPod, observableCount); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_unregisterDeletionListenerObjects_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPhysicsUnregisterDeletionListenerObjectsMutNative(PhysxPxPhysicsPod* selfPod, PhysxPxDeletionListenerPod* observerPod, PhysxPxBasePod** observablesPod, uint observableCount); + + public static void PxPhysicsUnregisterDeletionListenerObjectsMut( PhysxPxPhysicsPod* selfPod, PhysxPxDeletionListenerPod* observerPod, PhysxPxBasePod** observablesPod, uint observableCount) + { + PxPhysicsUnregisterDeletionListenerObjectsMutNative(selfPod, observerPod, observablesPod, observableCount); + } + + public static void PxPhysicsUnregisterDeletionListenerObjectsMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxDeletionListenerPod observerPod, PhysxPxBasePod** observablesPod, uint observableCount) + { + fixed (PhysxPxDeletionListenerPod* pobserverPod = &observerPod) + { + PxPhysicsUnregisterDeletionListenerObjectsMutNative(selfPod, (PhysxPxDeletionListenerPod*)pobserverPod, observablesPod, observableCount); + } + } + + public static void PxPhysicsUnregisterDeletionListenerObjectsMut( PhysxPxPhysicsPod* selfPod, PhysxPxDeletionListenerPod* observerPod, ref PhysxPxBasePod* observablesPod, uint observableCount) + { + fixed (PhysxPxBasePod** pobservablesPod = &observablesPod) + { + PxPhysicsUnregisterDeletionListenerObjectsMutNative(selfPod, observerPod, (PhysxPxBasePod**)pobservablesPod, observableCount); + } + } + + public static void PxPhysicsUnregisterDeletionListenerObjectsMut( PhysxPxPhysicsPod* selfPod, ref PhysxPxDeletionListenerPod observerPod, ref PhysxPxBasePod* observablesPod, uint observableCount) + { + fixed (PhysxPxDeletionListenerPod* pobserverPod = &observerPod) + { + fixed (PhysxPxBasePod** pobservablesPod = &observablesPod) + { + PxPhysicsUnregisterDeletionListenerObjectsMutNative(selfPod, (PhysxPxDeletionListenerPod*)pobserverPod, (PhysxPxBasePod**)pobservablesPod, observableCount); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPhysics_getPhysicsInsertionCallback_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxInsertionCallbackPod* PxPhysicsGetPhysicsInsertionCallbackMutNative(PhysxPxPhysicsPod* selfPod); + + public static PhysxPxInsertionCallbackPod* PxPhysicsGetPhysicsInsertionCallbackMut( PhysxPxPhysicsPod* selfPod) + { + PhysxPxInsertionCallbackPod* ret = PxPhysicsGetPhysicsInsertionCallbackMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreatePhysics")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPhysicsPod* PhysPxCreatePhysicsNative(uint version, PhysxPxFoundationPod* foundationPod, PhysxPxTolerancesScalePod* scalePod, byte trackOutstandingAllocations, PhysxPxPvdPod* pvdPod, PhysxPxOmniPvdPod* omnipvdPod); + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, PhysxPxFoundationPod* foundationPod, PhysxPxTolerancesScalePod* scalePod, bool trackOutstandingAllocations, PhysxPxPvdPod* pvdPod, PhysxPxOmniPvdPod* omnipvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, foundationPod, scalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, pvdPod, omnipvdPod); + return ret; + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, ref PhysxPxFoundationPod foundationPod, PhysxPxTolerancesScalePod* scalePod, bool trackOutstandingAllocations, PhysxPxPvdPod* pvdPod, PhysxPxOmniPvdPod* omnipvdPod) + { + fixed (PhysxPxFoundationPod* pfoundationPod = &foundationPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, (PhysxPxFoundationPod*)pfoundationPod, scalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, pvdPod, omnipvdPod); + return ret; + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, PhysxPxFoundationPod* foundationPod, ref PhysxPxTolerancesScalePod scalePod, bool trackOutstandingAllocations, PhysxPxPvdPod* pvdPod, PhysxPxOmniPvdPod* omnipvdPod) + { + fixed (PhysxPxTolerancesScalePod* pscalePod = &scalePod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, foundationPod, (PhysxPxTolerancesScalePod*)pscalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, pvdPod, omnipvdPod); + return ret; + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, ref PhysxPxFoundationPod foundationPod, ref PhysxPxTolerancesScalePod scalePod, bool trackOutstandingAllocations, PhysxPxPvdPod* pvdPod, PhysxPxOmniPvdPod* omnipvdPod) + { + fixed (PhysxPxFoundationPod* pfoundationPod = &foundationPod) + { + fixed (PhysxPxTolerancesScalePod* pscalePod = &scalePod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, (PhysxPxFoundationPod*)pfoundationPod, (PhysxPxTolerancesScalePod*)pscalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, pvdPod, omnipvdPod); + return ret; + } + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, PhysxPxFoundationPod* foundationPod, PhysxPxTolerancesScalePod* scalePod, bool trackOutstandingAllocations, ref PhysxPxPvdPod pvdPod, PhysxPxOmniPvdPod* omnipvdPod) + { + fixed (PhysxPxPvdPod* ppvdPod = &pvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, foundationPod, scalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, (PhysxPxPvdPod*)ppvdPod, omnipvdPod); + return ret; + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, ref PhysxPxFoundationPod foundationPod, PhysxPxTolerancesScalePod* scalePod, bool trackOutstandingAllocations, ref PhysxPxPvdPod pvdPod, PhysxPxOmniPvdPod* omnipvdPod) + { + fixed (PhysxPxFoundationPod* pfoundationPod = &foundationPod) + { + fixed (PhysxPxPvdPod* ppvdPod = &pvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, (PhysxPxFoundationPod*)pfoundationPod, scalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, (PhysxPxPvdPod*)ppvdPod, omnipvdPod); + return ret; + } + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, PhysxPxFoundationPod* foundationPod, ref PhysxPxTolerancesScalePod scalePod, bool trackOutstandingAllocations, ref PhysxPxPvdPod pvdPod, PhysxPxOmniPvdPod* omnipvdPod) + { + fixed (PhysxPxTolerancesScalePod* pscalePod = &scalePod) + { + fixed (PhysxPxPvdPod* ppvdPod = &pvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, foundationPod, (PhysxPxTolerancesScalePod*)pscalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, (PhysxPxPvdPod*)ppvdPod, omnipvdPod); + return ret; + } + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, ref PhysxPxFoundationPod foundationPod, ref PhysxPxTolerancesScalePod scalePod, bool trackOutstandingAllocations, ref PhysxPxPvdPod pvdPod, PhysxPxOmniPvdPod* omnipvdPod) + { + fixed (PhysxPxFoundationPod* pfoundationPod = &foundationPod) + { + fixed (PhysxPxTolerancesScalePod* pscalePod = &scalePod) + { + fixed (PhysxPxPvdPod* ppvdPod = &pvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, (PhysxPxFoundationPod*)pfoundationPod, (PhysxPxTolerancesScalePod*)pscalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, (PhysxPxPvdPod*)ppvdPod, omnipvdPod); + return ret; + } + } + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, PhysxPxFoundationPod* foundationPod, PhysxPxTolerancesScalePod* scalePod, bool trackOutstandingAllocations, PhysxPxPvdPod* pvdPod, ref PhysxPxOmniPvdPod omnipvdPod) + { + fixed (PhysxPxOmniPvdPod* pomnipvdPod = &omnipvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, foundationPod, scalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, pvdPod, (PhysxPxOmniPvdPod*)pomnipvdPod); + return ret; + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, ref PhysxPxFoundationPod foundationPod, PhysxPxTolerancesScalePod* scalePod, bool trackOutstandingAllocations, PhysxPxPvdPod* pvdPod, ref PhysxPxOmniPvdPod omnipvdPod) + { + fixed (PhysxPxFoundationPod* pfoundationPod = &foundationPod) + { + fixed (PhysxPxOmniPvdPod* pomnipvdPod = &omnipvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, (PhysxPxFoundationPod*)pfoundationPod, scalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, pvdPod, (PhysxPxOmniPvdPod*)pomnipvdPod); + return ret; + } + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, PhysxPxFoundationPod* foundationPod, ref PhysxPxTolerancesScalePod scalePod, bool trackOutstandingAllocations, PhysxPxPvdPod* pvdPod, ref PhysxPxOmniPvdPod omnipvdPod) + { + fixed (PhysxPxTolerancesScalePod* pscalePod = &scalePod) + { + fixed (PhysxPxOmniPvdPod* pomnipvdPod = &omnipvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, foundationPod, (PhysxPxTolerancesScalePod*)pscalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, pvdPod, (PhysxPxOmniPvdPod*)pomnipvdPod); + return ret; + } + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, ref PhysxPxFoundationPod foundationPod, ref PhysxPxTolerancesScalePod scalePod, bool trackOutstandingAllocations, PhysxPxPvdPod* pvdPod, ref PhysxPxOmniPvdPod omnipvdPod) + { + fixed (PhysxPxFoundationPod* pfoundationPod = &foundationPod) + { + fixed (PhysxPxTolerancesScalePod* pscalePod = &scalePod) + { + fixed (PhysxPxOmniPvdPod* pomnipvdPod = &omnipvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, (PhysxPxFoundationPod*)pfoundationPod, (PhysxPxTolerancesScalePod*)pscalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, pvdPod, (PhysxPxOmniPvdPod*)pomnipvdPod); + return ret; + } + } + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, PhysxPxFoundationPod* foundationPod, PhysxPxTolerancesScalePod* scalePod, bool trackOutstandingAllocations, ref PhysxPxPvdPod pvdPod, ref PhysxPxOmniPvdPod omnipvdPod) + { + fixed (PhysxPxPvdPod* ppvdPod = &pvdPod) + { + fixed (PhysxPxOmniPvdPod* pomnipvdPod = &omnipvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, foundationPod, scalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, (PhysxPxPvdPod*)ppvdPod, (PhysxPxOmniPvdPod*)pomnipvdPod); + return ret; + } + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, ref PhysxPxFoundationPod foundationPod, PhysxPxTolerancesScalePod* scalePod, bool trackOutstandingAllocations, ref PhysxPxPvdPod pvdPod, ref PhysxPxOmniPvdPod omnipvdPod) + { + fixed (PhysxPxFoundationPod* pfoundationPod = &foundationPod) + { + fixed (PhysxPxPvdPod* ppvdPod = &pvdPod) + { + fixed (PhysxPxOmniPvdPod* pomnipvdPod = &omnipvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, (PhysxPxFoundationPod*)pfoundationPod, scalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, (PhysxPxPvdPod*)ppvdPod, (PhysxPxOmniPvdPod*)pomnipvdPod); + return ret; + } + } + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, PhysxPxFoundationPod* foundationPod, ref PhysxPxTolerancesScalePod scalePod, bool trackOutstandingAllocations, ref PhysxPxPvdPod pvdPod, ref PhysxPxOmniPvdPod omnipvdPod) + { + fixed (PhysxPxTolerancesScalePod* pscalePod = &scalePod) + { + fixed (PhysxPxPvdPod* ppvdPod = &pvdPod) + { + fixed (PhysxPxOmniPvdPod* pomnipvdPod = &omnipvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, foundationPod, (PhysxPxTolerancesScalePod*)pscalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, (PhysxPxPvdPod*)ppvdPod, (PhysxPxOmniPvdPod*)pomnipvdPod); + return ret; + } + } + } + } + + public static PhysxPxPhysicsPod* PhysPxCreatePhysics( uint version, ref PhysxPxFoundationPod foundationPod, ref PhysxPxTolerancesScalePod scalePod, bool trackOutstandingAllocations, ref PhysxPxPvdPod pvdPod, ref PhysxPxOmniPvdPod omnipvdPod) + { + fixed (PhysxPxFoundationPod* pfoundationPod = &foundationPod) + { + fixed (PhysxPxTolerancesScalePod* pscalePod = &scalePod) + { + fixed (PhysxPxPvdPod* ppvdPod = &pvdPod) + { + fixed (PhysxPxOmniPvdPod* pomnipvdPod = &omnipvdPod) + { + PhysxPxPhysicsPod* ret = PhysPxCreatePhysicsNative(version, (PhysxPxFoundationPod*)pfoundationPod, (PhysxPxTolerancesScalePod*)pscalePod, trackOutstandingAllocations ? (byte)1 : (byte)0, (PhysxPxPvdPod*)ppvdPod, (PhysxPxOmniPvdPod*)pomnipvdPod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetPhysics")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPhysicsPod* PhysPxGetPhysicsNative(); + + public static PhysxPxPhysicsPod* PhysPxGetPhysics() + { + PhysxPxPhysicsPod* ret = PhysPxGetPhysicsNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxActorShape_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxActorShapePod PxActorShapeNewNative(); + + public static PhysxPxActorShapePod PxActorShapeNew() + { + PhysxPxActorShapePod ret = PxActorShapeNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxActorShape_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxActorShapePod PxActorShapeNew1Native(PhysxPxRigidActorPod* aPod, PhysxPxShapePod* sPod); + + public static PhysxPxActorShapePod PxActorShapeNew1( PhysxPxRigidActorPod* aPod, PhysxPxShapePod* sPod) + { + PhysxPxActorShapePod ret = PxActorShapeNew1Native(aPod, sPod); + return ret; + } + + public static PhysxPxActorShapePod PxActorShapeNew1( PhysxPxRigidActorPod* aPod, ref PhysxPxShapePod sPod) + { + fixed (PhysxPxShapePod* psPod = &sPod) + { + PhysxPxActorShapePod ret = PxActorShapeNew1Native(aPod, (PhysxPxShapePod*)psPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxQueryCache_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQueryCachePod PxQueryCacheNewNative(); + + public static PhysxPxQueryCachePod PxQueryCacheNew() + { + PhysxPxQueryCachePod ret = PxQueryCacheNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQueryCache_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQueryCachePod PxQueryCacheNew1Native(PhysxPxShapePod* sPod, uint findex); + + public static PhysxPxQueryCachePod PxQueryCacheNew1( PhysxPxShapePod* sPod, uint findex) + { + PhysxPxQueryCachePod ret = PxQueryCacheNew1Native(sPod, findex); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQueryFilterData_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQueryFilterDataPod PxQueryFilterDataNewNative(); + + public static PhysxPxQueryFilterDataPod PxQueryFilterDataNew() + { + PhysxPxQueryFilterDataPod ret = PxQueryFilterDataNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQueryFilterData_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQueryFilterDataPod PxQueryFilterDataNew1Native(PhysxPxFilterDataPod* fdPod, ushort fPod); + + public static PhysxPxQueryFilterDataPod PxQueryFilterDataNew1( PhysxPxFilterDataPod* fdPod, ushort fPod) + { + PhysxPxQueryFilterDataPod ret = PxQueryFilterDataNew1Native(fdPod, fPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQueryFilterData_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxQueryFilterDataPod PxQueryFilterDataNew2Native(ushort fPod); + + public static PhysxPxQueryFilterDataPod PxQueryFilterDataNew2( ushort fPod) + { + PhysxPxQueryFilterDataPod ret = PxQueryFilterDataNew2Native(fPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxQueryFilterCallback_preFilter_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxQueryFilterCallbackPreFilterMutNative(PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ushort* queryflagsPod); + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ushort* queryflagsPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, filterdataPod, shapePod, actorPod, queryflagsPod); + return ret; + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ushort* queryflagsPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, shapePod, actorPod, queryflagsPod); + return ret; + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, ref PhysxPxShapePod shapePod, PhysxPxRigidActorPod* actorPod, ushort* queryflagsPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, filterdataPod, (PhysxPxShapePod*)pshapePod, actorPod, queryflagsPod); + return ret; + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, ref PhysxPxShapePod shapePod, PhysxPxRigidActorPod* actorPod, ushort* queryflagsPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, (PhysxPxShapePod*)pshapePod, actorPod, queryflagsPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ushort* queryflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, filterdataPod, shapePod, (PhysxPxRigidActorPod*)pactorPod, queryflagsPod); + return ret; + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ushort* queryflagsPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, shapePod, (PhysxPxRigidActorPod*)pactorPod, queryflagsPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, ref PhysxPxShapePod shapePod, ref PhysxPxRigidActorPod actorPod, ushort* queryflagsPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, filterdataPod, (PhysxPxShapePod*)pshapePod, (PhysxPxRigidActorPod*)pactorPod, queryflagsPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, ref PhysxPxShapePod shapePod, ref PhysxPxRigidActorPod actorPod, ushort* queryflagsPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, (PhysxPxShapePod*)pshapePod, (PhysxPxRigidActorPod*)pactorPod, queryflagsPod); + return ret; + } + } + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref ushort queryflagsPod) + { + fixed (ushort* pqueryflagsPod = &queryflagsPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, filterdataPod, shapePod, actorPod, (ushort*)pqueryflagsPod); + return ret; + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref ushort queryflagsPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (ushort* pqueryflagsPod = &queryflagsPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, shapePod, actorPod, (ushort*)pqueryflagsPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, ref PhysxPxShapePod shapePod, PhysxPxRigidActorPod* actorPod, ref ushort queryflagsPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (ushort* pqueryflagsPod = &queryflagsPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, filterdataPod, (PhysxPxShapePod*)pshapePod, actorPod, (ushort*)pqueryflagsPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, ref PhysxPxShapePod shapePod, PhysxPxRigidActorPod* actorPod, ref ushort queryflagsPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (ushort* pqueryflagsPod = &queryflagsPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, (PhysxPxShapePod*)pshapePod, actorPod, (ushort*)pqueryflagsPod); + return ret; + } + } + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref ushort queryflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (ushort* pqueryflagsPod = &queryflagsPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, filterdataPod, shapePod, (PhysxPxRigidActorPod*)pactorPod, (ushort*)pqueryflagsPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref ushort queryflagsPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (ushort* pqueryflagsPod = &queryflagsPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, shapePod, (PhysxPxRigidActorPod*)pactorPod, (ushort*)pqueryflagsPod); + return ret; + } + } + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, ref PhysxPxShapePod shapePod, ref PhysxPxRigidActorPod actorPod, ref ushort queryflagsPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (ushort* pqueryflagsPod = &queryflagsPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, filterdataPod, (PhysxPxShapePod*)pshapePod, (PhysxPxRigidActorPod*)pactorPod, (ushort*)pqueryflagsPod); + return ret; + } + } + } + } + + public static int PxQueryFilterCallbackPreFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, ref PhysxPxShapePod shapePod, ref PhysxPxRigidActorPod actorPod, ref ushort queryflagsPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (ushort* pqueryflagsPod = &queryflagsPod) + { + int ret = PxQueryFilterCallbackPreFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, (PhysxPxShapePod*)pshapePod, (PhysxPxRigidActorPod*)pactorPod, (ushort*)pqueryflagsPod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxQueryFilterCallback_postFilter_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxQueryFilterCallbackPostFilterMutNative(PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, PhysxPxQueryHitPod* hitPod, PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod); + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, PhysxPxQueryHitPod* hitPod, PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, filterdataPod, hitPod, shapePod, actorPod); + return ret; + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, PhysxPxQueryHitPod* hitPod, PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, hitPod, shapePod, actorPod); + return ret; + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, ref PhysxPxQueryHitPod hitPod, PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, filterdataPod, (PhysxPxQueryHitPod*)phitPod, shapePod, actorPod); + return ret; + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, ref PhysxPxQueryHitPod hitPod, PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, (PhysxPxQueryHitPod*)phitPod, shapePod, actorPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxShapePod shapePod, PhysxPxRigidActorPod* actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, filterdataPod, hitPod, (PhysxPxShapePod*)pshapePod, actorPod); + return ret; + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxShapePod shapePod, PhysxPxRigidActorPod* actorPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, hitPod, (PhysxPxShapePod*)pshapePod, actorPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxShapePod shapePod, PhysxPxRigidActorPod* actorPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, filterdataPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxShapePod*)pshapePod, actorPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxShapePod shapePod, PhysxPxRigidActorPod* actorPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxShapePod*)pshapePod, actorPod); + return ret; + } + } + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, PhysxPxQueryHitPod* hitPod, PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, filterdataPod, hitPod, shapePod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, PhysxPxQueryHitPod* hitPod, PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, hitPod, shapePod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, ref PhysxPxQueryHitPod hitPod, PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, filterdataPod, (PhysxPxQueryHitPod*)phitPod, shapePod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, ref PhysxPxQueryHitPod hitPod, PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, (PhysxPxQueryHitPod*)phitPod, shapePod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxShapePod shapePod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, filterdataPod, hitPod, (PhysxPxShapePod*)pshapePod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxShapePod shapePod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, hitPod, (PhysxPxShapePod*)pshapePod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, PhysxPxFilterDataPod* filterdataPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxShapePod shapePod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, filterdataPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxShapePod*)pshapePod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + } + } + + public static int PxQueryFilterCallbackPostFilterMut( PhysxPxQueryFilterCallbackPod* selfPod, ref PhysxPxFilterDataPod filterdataPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxShapePod shapePod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + int ret = PxQueryFilterCallbackPostFilterMutNative(selfPod, (PhysxPxFilterDataPod*)pfilterdataPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxShapePod*)pshapePod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxQueryFilterCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxQueryFilterCallbackDeleteNative(PhysxPxQueryFilterCallbackPod* selfPod); + + public static void PxQueryFilterCallbackDelete( PhysxPxQueryFilterCallbackPod* selfPod) + { + PxQueryFilterCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_setKinematicTarget_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicSetKinematicTargetMutNative(PhysxPxRigidDynamicPod* selfPod, PhysxPxTransformPod* destinationPod); + + public static void PxRigidDynamicSetKinematicTargetMut( PhysxPxRigidDynamicPod* selfPod, PhysxPxTransformPod* destinationPod) + { + PxRigidDynamicSetKinematicTargetMutNative(selfPod, destinationPod); + } + + public static void PxRigidDynamicSetKinematicTargetMut( PhysxPxRigidDynamicPod* selfPod, ref PhysxPxTransformPod destinationPod) + { + fixed (PhysxPxTransformPod* pdestinationPod = &destinationPod) + { + PxRigidDynamicSetKinematicTargetMutNative(selfPod, (PhysxPxTransformPod*)pdestinationPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_getKinematicTarget")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRigidDynamicGetKinematicTargetNative(PhysxPxRigidDynamicPod* selfPod, PhysxPxTransformPod* targetPod); + + public static bool PxRigidDynamicGetKinematicTarget( PhysxPxRigidDynamicPod* selfPod, PhysxPxTransformPod* targetPod) + { + byte ret = PxRigidDynamicGetKinematicTargetNative(selfPod, targetPod); + return ret != 0; + } + + public static bool PxRigidDynamicGetKinematicTarget( PhysxPxRigidDynamicPod* selfPod, ref PhysxPxTransformPod targetPod) + { + fixed (PhysxPxTransformPod* ptargetPod = &targetPod) + { + byte ret = PxRigidDynamicGetKinematicTargetNative(selfPod, (PhysxPxTransformPod*)ptargetPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_isSleeping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRigidDynamicIsSleepingNative(PhysxPxRigidDynamicPod* selfPod); + + public static bool PxRigidDynamicIsSleeping( PhysxPxRigidDynamicPod* selfPod) + { + byte ret = PxRigidDynamicIsSleepingNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_setSleepThreshold_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicSetSleepThresholdMutNative(PhysxPxRigidDynamicPod* selfPod, float threshold); + + public static void PxRigidDynamicSetSleepThresholdMut( PhysxPxRigidDynamicPod* selfPod, float threshold) + { + PxRigidDynamicSetSleepThresholdMutNative(selfPod, threshold); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_getSleepThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidDynamicGetSleepThresholdNative(PhysxPxRigidDynamicPod* selfPod); + + public static float PxRigidDynamicGetSleepThreshold( PhysxPxRigidDynamicPod* selfPod) + { + float ret = PxRigidDynamicGetSleepThresholdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_setStabilizationThreshold_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicSetStabilizationThresholdMutNative(PhysxPxRigidDynamicPod* selfPod, float threshold); + + public static void PxRigidDynamicSetStabilizationThresholdMut( PhysxPxRigidDynamicPod* selfPod, float threshold) + { + PxRigidDynamicSetStabilizationThresholdMutNative(selfPod, threshold); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_getStabilizationThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidDynamicGetStabilizationThresholdNative(PhysxPxRigidDynamicPod* selfPod); + + public static float PxRigidDynamicGetStabilizationThreshold( PhysxPxRigidDynamicPod* selfPod) + { + float ret = PxRigidDynamicGetStabilizationThresholdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_getRigidDynamicLockFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRigidDynamicGetRigidDynamicLockFlagsNative(PhysxPxRigidDynamicPod* selfPod); + + public static byte PxRigidDynamicGetRigidDynamicLockFlags( PhysxPxRigidDynamicPod* selfPod) + { + byte ret = PxRigidDynamicGetRigidDynamicLockFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_setRigidDynamicLockFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicSetRigidDynamicLockFlagMutNative(PhysxPxRigidDynamicPod* selfPod, int flagPod, byte value); + + public static void PxRigidDynamicSetRigidDynamicLockFlagMut( PhysxPxRigidDynamicPod* selfPod, int flagPod, bool value) + { + PxRigidDynamicSetRigidDynamicLockFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_setRigidDynamicLockFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicSetRigidDynamicLockFlagsMutNative(PhysxPxRigidDynamicPod* selfPod, byte flagsPod); + + public static void PxRigidDynamicSetRigidDynamicLockFlagsMut( PhysxPxRigidDynamicPod* selfPod, byte flagsPod) + { + PxRigidDynamicSetRigidDynamicLockFlagsMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_getLinearVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxRigidDynamicGetLinearVelocityNative(PhysxPxRigidDynamicPod* selfPod); + + public static PhysxPxVec3Pod PxRigidDynamicGetLinearVelocity( PhysxPxRigidDynamicPod* selfPod) + { + PhysxPxVec3Pod ret = PxRigidDynamicGetLinearVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_setLinearVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicSetLinearVelocityMutNative(PhysxPxRigidDynamicPod* selfPod, PhysxPxVec3Pod* linvelPod, byte autowake); + + public static void PxRigidDynamicSetLinearVelocityMut( PhysxPxRigidDynamicPod* selfPod, PhysxPxVec3Pod* linvelPod, bool autowake) + { + PxRigidDynamicSetLinearVelocityMutNative(selfPod, linvelPod, autowake ? (byte)1 : (byte)0); + } + + public static void PxRigidDynamicSetLinearVelocityMut( PhysxPxRigidDynamicPod* selfPod, ref PhysxPxVec3Pod linvelPod, bool autowake) + { + fixed (PhysxPxVec3Pod* plinvelPod = &linvelPod) + { + PxRigidDynamicSetLinearVelocityMutNative(selfPod, (PhysxPxVec3Pod*)plinvelPod, autowake ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_getAngularVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxRigidDynamicGetAngularVelocityNative(PhysxPxRigidDynamicPod* selfPod); + + public static PhysxPxVec3Pod PxRigidDynamicGetAngularVelocity( PhysxPxRigidDynamicPod* selfPod) + { + PhysxPxVec3Pod ret = PxRigidDynamicGetAngularVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_setAngularVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicSetAngularVelocityMutNative(PhysxPxRigidDynamicPod* selfPod, PhysxPxVec3Pod* angvelPod, byte autowake); + + public static void PxRigidDynamicSetAngularVelocityMut( PhysxPxRigidDynamicPod* selfPod, PhysxPxVec3Pod* angvelPod, bool autowake) + { + PxRigidDynamicSetAngularVelocityMutNative(selfPod, angvelPod, autowake ? (byte)1 : (byte)0); + } + + public static void PxRigidDynamicSetAngularVelocityMut( PhysxPxRigidDynamicPod* selfPod, ref PhysxPxVec3Pod angvelPod, bool autowake) + { + fixed (PhysxPxVec3Pod* pangvelPod = &angvelPod) + { + PxRigidDynamicSetAngularVelocityMutNative(selfPod, (PhysxPxVec3Pod*)pangvelPod, autowake ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_setWakeCounter_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicSetWakeCounterMutNative(PhysxPxRigidDynamicPod* selfPod, float wakeCounterValue); + + public static void PxRigidDynamicSetWakeCounterMut( PhysxPxRigidDynamicPod* selfPod, float wakeCounterValue) + { + PxRigidDynamicSetWakeCounterMutNative(selfPod, wakeCounterValue); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_getWakeCounter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidDynamicGetWakeCounterNative(PhysxPxRigidDynamicPod* selfPod); + + public static float PxRigidDynamicGetWakeCounter( PhysxPxRigidDynamicPod* selfPod) + { + float ret = PxRigidDynamicGetWakeCounterNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_wakeUp_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicWakeUpMutNative(PhysxPxRigidDynamicPod* selfPod); + + public static void PxRigidDynamicWakeUpMut( PhysxPxRigidDynamicPod* selfPod) + { + PxRigidDynamicWakeUpMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_putToSleep_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicPutToSleepMutNative(PhysxPxRigidDynamicPod* selfPod); + + public static void PxRigidDynamicPutToSleepMut( PhysxPxRigidDynamicPod* selfPod) + { + PxRigidDynamicPutToSleepMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_setSolverIterationCounts_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicSetSolverIterationCountsMutNative(PhysxPxRigidDynamicPod* selfPod, uint minPositionIters, uint minVelocityIters); + + public static void PxRigidDynamicSetSolverIterationCountsMut( PhysxPxRigidDynamicPod* selfPod, uint minPositionIters, uint minVelocityIters) + { + PxRigidDynamicSetSolverIterationCountsMutNative(selfPod, minPositionIters, minVelocityIters); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_getSolverIterationCounts")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicGetSolverIterationCountsNative(PhysxPxRigidDynamicPod* selfPod, uint* minpositionitersPod, uint* minvelocityitersPod); + + public static void PxRigidDynamicGetSolverIterationCounts( PhysxPxRigidDynamicPod* selfPod, uint* minpositionitersPod, uint* minvelocityitersPod) + { + PxRigidDynamicGetSolverIterationCountsNative(selfPod, minpositionitersPod, minvelocityitersPod); + } + + public static void PxRigidDynamicGetSolverIterationCounts( PhysxPxRigidDynamicPod* selfPod, ref uint minpositionitersPod, uint* minvelocityitersPod) + { + fixed (uint* pminpositionitersPod = &minpositionitersPod) + { + PxRigidDynamicGetSolverIterationCountsNative(selfPod, (uint*)pminpositionitersPod, minvelocityitersPod); + } + } + + public static void PxRigidDynamicGetSolverIterationCounts( PhysxPxRigidDynamicPod* selfPod, uint* minpositionitersPod, ref uint minvelocityitersPod) + { + fixed (uint* pminvelocityitersPod = &minvelocityitersPod) + { + PxRigidDynamicGetSolverIterationCountsNative(selfPod, minpositionitersPod, (uint*)pminvelocityitersPod); + } + } + + public static void PxRigidDynamicGetSolverIterationCounts( PhysxPxRigidDynamicPod* selfPod, ref uint minpositionitersPod, ref uint minvelocityitersPod) + { + fixed (uint* pminpositionitersPod = &minpositionitersPod) + { + fixed (uint* pminvelocityitersPod = &minvelocityitersPod) + { + PxRigidDynamicGetSolverIterationCountsNative(selfPod, (uint*)pminpositionitersPod, (uint*)pminvelocityitersPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_getContactReportThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRigidDynamicGetContactReportThresholdNative(PhysxPxRigidDynamicPod* selfPod); + + public static float PxRigidDynamicGetContactReportThreshold( PhysxPxRigidDynamicPod* selfPod) + { + float ret = PxRigidDynamicGetContactReportThresholdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_setContactReportThreshold_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidDynamicSetContactReportThresholdMutNative(PhysxPxRigidDynamicPod* selfPod, float threshold); + + public static void PxRigidDynamicSetContactReportThresholdMut( PhysxPxRigidDynamicPod* selfPod, float threshold) + { + PxRigidDynamicSetContactReportThresholdMutNative(selfPod, threshold); + } + + [LibraryImport(LibName, EntryPoint = "PxRigidDynamic_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxRigidDynamicGetConcreteTypeNameNative(PhysxPxRigidDynamicPod* selfPod); + + public static byte* PxRigidDynamicGetConcreteTypeName( PhysxPxRigidDynamicPod* selfPod) + { + byte* ret = PxRigidDynamicGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxRigidDynamicGetConcreteTypeNameS( PhysxPxRigidDynamicPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxRigidDynamicGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidStatic_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxRigidStaticGetConcreteTypeNameNative(PhysxPxRigidStaticPod* selfPod); + + public static byte* PxRigidStaticGetConcreteTypeName( PhysxPxRigidStaticPod* selfPod) + { + byte* ret = PxRigidStaticGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxRigidStaticGetConcreteTypeNameS( PhysxPxRigidStaticPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxRigidStaticGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQueryDesc_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSceneQueryDescPod PxSceneQueryDescNewNative(); + + public static PhysxPxSceneQueryDescPod PxSceneQueryDescNew() + { + PhysxPxSceneQueryDescPod ret = PxSceneQueryDescNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQueryDesc_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQueryDescSetToDefaultMutNative(PhysxPxSceneQueryDescPod* selfPod); + + public static void PxSceneQueryDescSetToDefaultMut( PhysxPxSceneQueryDescPod* selfPod) + { + PxSceneQueryDescSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQueryDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneQueryDescIsValidNative(PhysxPxSceneQueryDescPod* selfPod); + + public static bool PxSceneQueryDescIsValid( PhysxPxSceneQueryDescPod* selfPod) + { + byte ret = PxSceneQueryDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystemBase_setDynamicTreeRebuildRateHint_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemBaseSetDynamicTreeRebuildRateHintMutNative(PhysxPxSceneQuerySystemBasePod* selfPod, uint dynamicTreeRebuildRateHint); + + public static void PxSceneQuerySystemBaseSetDynamicTreeRebuildRateHintMut( PhysxPxSceneQuerySystemBasePod* selfPod, uint dynamicTreeRebuildRateHint) + { + PxSceneQuerySystemBaseSetDynamicTreeRebuildRateHintMutNative(selfPod, dynamicTreeRebuildRateHint); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystemBase_getDynamicTreeRebuildRateHint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneQuerySystemBaseGetDynamicTreeRebuildRateHintNative(PhysxPxSceneQuerySystemBasePod* selfPod); + + public static uint PxSceneQuerySystemBaseGetDynamicTreeRebuildRateHint( PhysxPxSceneQuerySystemBasePod* selfPod) + { + uint ret = PxSceneQuerySystemBaseGetDynamicTreeRebuildRateHintNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystemBase_forceRebuildDynamicTree_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemBaseForceRebuildDynamicTreeMutNative(PhysxPxSceneQuerySystemBasePod* selfPod, uint prunerIndex); + + public static void PxSceneQuerySystemBaseForceRebuildDynamicTreeMut( PhysxPxSceneQuerySystemBasePod* selfPod, uint prunerIndex) + { + PxSceneQuerySystemBaseForceRebuildDynamicTreeMutNative(selfPod, prunerIndex); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystemBase_setUpdateMode_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemBaseSetUpdateModeMutNative(PhysxPxSceneQuerySystemBasePod* selfPod, int updatemodePod); + + public static void PxSceneQuerySystemBaseSetUpdateModeMut( PhysxPxSceneQuerySystemBasePod* selfPod, int updatemodePod) + { + PxSceneQuerySystemBaseSetUpdateModeMutNative(selfPod, updatemodePod); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystemBase_getUpdateMode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneQuerySystemBaseGetUpdateModeNative(PhysxPxSceneQuerySystemBasePod* selfPod); + + public static int PxSceneQuerySystemBaseGetUpdateMode( PhysxPxSceneQuerySystemBasePod* selfPod) + { + int ret = PxSceneQuerySystemBaseGetUpdateModeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystemBase_getStaticTimestamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneQuerySystemBaseGetStaticTimestampNative(PhysxPxSceneQuerySystemBasePod* selfPod); + + public static uint PxSceneQuerySystemBaseGetStaticTimestamp( PhysxPxSceneQuerySystemBasePod* selfPod) + { + uint ret = PxSceneQuerySystemBaseGetStaticTimestampNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystemBase_flushUpdates_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemBaseFlushUpdatesMutNative(PhysxPxSceneQuerySystemBasePod* selfPod); + + public static void PxSceneQuerySystemBaseFlushUpdatesMut( PhysxPxSceneQuerySystemBasePod* selfPod) + { + PxSceneQuerySystemBaseFlushUpdatesMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystemBase_raycast")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneQuerySystemBaseRaycastNative(PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod); + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxRaycastCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseRaycast( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxRaycastCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseRaycastNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxRaycastCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystemBase_sweep")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneQuerySystemBaseSweepNative(PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod); + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.008.cs b/Hexa.NET.PhysX/Generated/Functions.008.cs new file mode 100644 index 0000000..bf41368 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.008.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxSweepCallbackPod* hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, hitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseSweep( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxSweepCallbackPod hitcallPod, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseSweepNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxSweepCallbackPod*)phitcallPod, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystemBase_overlap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneQuerySystemBaseOverlapNative(PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod); + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, hitcallPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitcallPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, hitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, hitcallPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitcallPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, hitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapCallbackPod* hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQuerySystemBaseOverlap( PhysxPxSceneQuerySystemBasePod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapCallbackPod hitcallPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, uint queryflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapCallbackPod* phitcallPod = &hitcallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQuerySystemBaseOverlapNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapCallbackPod*)phitcallPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, queryflagsPod); + return ret != 0; + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneSQSystem_setSceneQueryUpdateMode_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSQSystemSetSceneQueryUpdateModeMutNative(PhysxPxSceneSQSystemPod* selfPod, int updatemodePod); + + public static void PxSceneSQSystemSetSceneQueryUpdateModeMut( PhysxPxSceneSQSystemPod* selfPod, int updatemodePod) + { + PxSceneSQSystemSetSceneQueryUpdateModeMutNative(selfPod, updatemodePod); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneSQSystem_getSceneQueryUpdateMode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneSQSystemGetSceneQueryUpdateModeNative(PhysxPxSceneSQSystemPod* selfPod); + + public static int PxSceneSQSystemGetSceneQueryUpdateMode( PhysxPxSceneSQSystemPod* selfPod) + { + int ret = PxSceneSQSystemGetSceneQueryUpdateModeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneSQSystem_getSceneQueryStaticTimestamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneSQSystemGetSceneQueryStaticTimestampNative(PhysxPxSceneSQSystemPod* selfPod); + + public static uint PxSceneSQSystemGetSceneQueryStaticTimestamp( PhysxPxSceneSQSystemPod* selfPod) + { + uint ret = PxSceneSQSystemGetSceneQueryStaticTimestampNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneSQSystem_flushQueryUpdates_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSQSystemFlushQueryUpdatesMutNative(PhysxPxSceneSQSystemPod* selfPod); + + public static void PxSceneSQSystemFlushQueryUpdatesMut( PhysxPxSceneSQSystemPod* selfPod) + { + PxSceneSQSystemFlushQueryUpdatesMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneSQSystem_forceDynamicTreeRebuild_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSQSystemForceDynamicTreeRebuildMutNative(PhysxPxSceneSQSystemPod* selfPod, byte rebuildStaticStructure, byte rebuildDynamicStructure); + + public static void PxSceneSQSystemForceDynamicTreeRebuildMut( PhysxPxSceneSQSystemPod* selfPod, bool rebuildStaticStructure, bool rebuildDynamicStructure) + { + PxSceneSQSystemForceDynamicTreeRebuildMutNative(selfPod, rebuildStaticStructure ? (byte)1 : (byte)0, rebuildDynamicStructure ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneSQSystem_getStaticStructure")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneSQSystemGetStaticStructureNative(PhysxPxSceneSQSystemPod* selfPod); + + public static int PxSceneSQSystemGetStaticStructure( PhysxPxSceneSQSystemPod* selfPod) + { + int ret = PxSceneSQSystemGetStaticStructureNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneSQSystem_getDynamicStructure")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneSQSystemGetDynamicStructureNative(PhysxPxSceneSQSystemPod* selfPod); + + public static int PxSceneSQSystemGetDynamicStructure( PhysxPxSceneSQSystemPod* selfPod) + { + int ret = PxSceneSQSystemGetDynamicStructureNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneSQSystem_sceneQueriesUpdate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSQSystemSceneQueriesUpdateMutNative(PhysxPxSceneSQSystemPod* selfPod, PhysxPxBaseTaskPod* completiontaskPod, byte controlSimulation); + + public static void PxSceneSQSystemSceneQueriesUpdateMut( PhysxPxSceneSQSystemPod* selfPod, PhysxPxBaseTaskPod* completiontaskPod, bool controlSimulation) + { + PxSceneSQSystemSceneQueriesUpdateMutNative(selfPod, completiontaskPod, controlSimulation ? (byte)1 : (byte)0); + } + + public static void PxSceneSQSystemSceneQueriesUpdateMut( PhysxPxSceneSQSystemPod* selfPod, ref PhysxPxBaseTaskPod completiontaskPod, bool controlSimulation) + { + fixed (PhysxPxBaseTaskPod* pcompletiontaskPod = &completiontaskPod) + { + PxSceneSQSystemSceneQueriesUpdateMutNative(selfPod, (PhysxPxBaseTaskPod*)pcompletiontaskPod, controlSimulation ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneSQSystem_checkQueries_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneSQSystemCheckQueriesMutNative(PhysxPxSceneSQSystemPod* selfPod, byte block); + + public static bool PxSceneSQSystemCheckQueriesMut( PhysxPxSceneSQSystemPod* selfPod, bool block) + { + byte ret = PxSceneSQSystemCheckQueriesMutNative(selfPod, block ? (byte)1 : (byte)0); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneSQSystem_fetchQueries_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneSQSystemFetchQueriesMutNative(PhysxPxSceneSQSystemPod* selfPod, byte block); + + public static bool PxSceneSQSystemFetchQueriesMut( PhysxPxSceneSQSystemPod* selfPod, bool block) + { + byte ret = PxSceneSQSystemFetchQueriesMutNative(selfPod, block ? (byte)1 : (byte)0); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemReleaseMutNative(PhysxPxSceneQuerySystemPod* selfPod); + + public static void PxSceneQuerySystemReleaseMut( PhysxPxSceneQuerySystemPod* selfPod) + { + PxSceneQuerySystemReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_acquireReference_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemAcquireReferenceMutNative(PhysxPxSceneQuerySystemPod* selfPod); + + public static void PxSceneQuerySystemAcquireReferenceMut( PhysxPxSceneQuerySystemPod* selfPod) + { + PxSceneQuerySystemAcquireReferenceMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_preallocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemPreallocateMutNative(PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint nbShapes); + + public static void PxSceneQuerySystemPreallocateMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint nbShapes) + { + PxSceneQuerySystemPreallocateMutNative(selfPod, prunerIndex, nbShapes); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_flushMemory_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemFlushMemoryMutNative(PhysxPxSceneQuerySystemPod* selfPod); + + public static void PxSceneQuerySystemFlushMemoryMut( PhysxPxSceneQuerySystemPod* selfPod) + { + PxSceneQuerySystemFlushMemoryMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_addSQShape_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemAddSQShapeMutNative(PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPod* transformPod, uint* compoundHandle, byte hasPruningStructure); + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPod* transformPod, uint* compoundHandle, bool hasPruningStructure) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, shapePod, boundsPod, transformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPod* transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, boundsPod, transformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPod* transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, boundsPod, transformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPod* transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, boundsPod, transformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPod* transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, shapePod, (PhysxPxBounds3Pod*)pboundsPod, transformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPod* transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, (PhysxPxBounds3Pod*)pboundsPod, transformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPod* transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, (PhysxPxBounds3Pod*)pboundsPod, transformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPod* transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, (PhysxPxBounds3Pod*)pboundsPod, transformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPod transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, shapePod, boundsPod, (PhysxPxTransformPod*)ptransformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPod transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, boundsPod, (PhysxPxTransformPod*)ptransformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPod transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, boundsPod, (PhysxPxTransformPod*)ptransformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPod transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, boundsPod, (PhysxPxTransformPod*)ptransformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPod transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, shapePod, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPod*)ptransformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPod transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPod*)ptransformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPod transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPod*)ptransformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPod transformPod, uint* compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPod*)ptransformPod, compoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPod* transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, shapePod, boundsPod, transformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPod* transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, boundsPod, transformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPod* transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, boundsPod, transformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPod* transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, boundsPod, transformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPod* transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, shapePod, (PhysxPxBounds3Pod*)pboundsPod, transformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPod* transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, (PhysxPxBounds3Pod*)pboundsPod, transformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPod* transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, (PhysxPxBounds3Pod*)pboundsPod, transformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPod* transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, (PhysxPxBounds3Pod*)pboundsPod, transformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPod transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, shapePod, boundsPod, (PhysxPxTransformPod*)ptransformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPod transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, boundsPod, (PhysxPxTransformPod*)ptransformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPod transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, boundsPod, (PhysxPxTransformPod*)ptransformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPod transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, boundsPod, (PhysxPxTransformPod*)ptransformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPod transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, shapePod, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPod*)ptransformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPod transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPod*)ptransformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPod transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPod*)ptransformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + } + + public static void PxSceneQuerySystemAddSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPod transformPod, ref uint compoundHandle, bool hasPruningStructure) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (uint* pcompoundHandle = &compoundHandle) + { + PxSceneQuerySystemAddSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPod*)ptransformPod, (uint*)pcompoundHandle, hasPruningStructure ? (byte)1 : (byte)0); + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_removeSQShape_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemRemoveSQShapeMutNative(PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod); + + public static void PxSceneQuerySystemRemoveSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod) + { + PxSceneQuerySystemRemoveSQShapeMutNative(selfPod, actorPod, shapePod); + } + + public static void PxSceneQuerySystemRemoveSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + PxSceneQuerySystemRemoveSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod); + } + } + + public static void PxSceneQuerySystemRemoveSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PxSceneQuerySystemRemoveSQShapeMutNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod); + } + } + + public static void PxSceneQuerySystemRemoveSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PxSceneQuerySystemRemoveSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_updateSQShape_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemUpdateSQShapeMutNative(PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, PhysxPxTransformPod* transformPod); + + public static void PxSceneQuerySystemUpdateSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, PhysxPxTransformPod* transformPod) + { + PxSceneQuerySystemUpdateSQShapeMutNative(selfPod, actorPod, shapePod, transformPod); + } + + public static void PxSceneQuerySystemUpdateSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, PhysxPxTransformPod* transformPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + PxSceneQuerySystemUpdateSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, transformPod); + } + } + + public static void PxSceneQuerySystemUpdateSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, PhysxPxTransformPod* transformPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PxSceneQuerySystemUpdateSQShapeMutNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, transformPod); + } + } + + public static void PxSceneQuerySystemUpdateSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, PhysxPxTransformPod* transformPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PxSceneQuerySystemUpdateSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, transformPod); + } + } + } + + public static void PxSceneQuerySystemUpdateSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, ref PhysxPxTransformPod transformPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemUpdateSQShapeMutNative(selfPod, actorPod, shapePod, (PhysxPxTransformPod*)ptransformPod); + } + } + + public static void PxSceneQuerySystemUpdateSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, ref PhysxPxTransformPod transformPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemUpdateSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, (PhysxPxTransformPod*)ptransformPod); + } + } + } + + public static void PxSceneQuerySystemUpdateSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, ref PhysxPxTransformPod transformPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemUpdateSQShapeMutNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, (PhysxPxTransformPod*)ptransformPod); + } + } + } + + public static void PxSceneQuerySystemUpdateSQShapeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, ref PhysxPxTransformPod transformPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PxSceneQuerySystemUpdateSQShapeMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, (PhysxPxTransformPod*)ptransformPod); + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_addSQCompound_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneQuerySystemAddSQCompoundMutNative(PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod** shapesPod, PhysxPxBVHPod* bvhPod, PhysxPxTransformPod* transformsPod); + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod** shapesPod, PhysxPxBVHPod* bvhPod, PhysxPxTransformPod* transformsPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, actorPod, shapesPod, bvhPod, transformsPod); + return ret; + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod** shapesPod, PhysxPxBVHPod* bvhPod, PhysxPxTransformPod* transformsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapesPod, bvhPod, transformsPod); + return ret; + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod* shapesPod, PhysxPxBVHPod* bvhPod, PhysxPxTransformPod* transformsPod) + { + fixed (PhysxPxShapePod** pshapesPod = &shapesPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, actorPod, (PhysxPxShapePod**)pshapesPod, bvhPod, transformsPod); + return ret; + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod* shapesPod, PhysxPxBVHPod* bvhPod, PhysxPxTransformPod* transformsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod** pshapesPod = &shapesPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod**)pshapesPod, bvhPod, transformsPod); + return ret; + } + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod** shapesPod, ref PhysxPxBVHPod bvhPod, PhysxPxTransformPod* transformsPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, actorPod, shapesPod, (PhysxPxBVHPod*)pbvhPod, transformsPod); + return ret; + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod** shapesPod, ref PhysxPxBVHPod bvhPod, PhysxPxTransformPod* transformsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapesPod, (PhysxPxBVHPod*)pbvhPod, transformsPod); + return ret; + } + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod* shapesPod, ref PhysxPxBVHPod bvhPod, PhysxPxTransformPod* transformsPod) + { + fixed (PhysxPxShapePod** pshapesPod = &shapesPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, actorPod, (PhysxPxShapePod**)pshapesPod, (PhysxPxBVHPod*)pbvhPod, transformsPod); + return ret; + } + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod* shapesPod, ref PhysxPxBVHPod bvhPod, PhysxPxTransformPod* transformsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod** pshapesPod = &shapesPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod**)pshapesPod, (PhysxPxBVHPod*)pbvhPod, transformsPod); + return ret; + } + } + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod** shapesPod, PhysxPxBVHPod* bvhPod, ref PhysxPxTransformPod transformsPod) + { + fixed (PhysxPxTransformPod* ptransformsPod = &transformsPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, actorPod, shapesPod, bvhPod, (PhysxPxTransformPod*)ptransformsPod); + return ret; + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod** shapesPod, PhysxPxBVHPod* bvhPod, ref PhysxPxTransformPod transformsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxTransformPod* ptransformsPod = &transformsPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapesPod, bvhPod, (PhysxPxTransformPod*)ptransformsPod); + return ret; + } + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod* shapesPod, PhysxPxBVHPod* bvhPod, ref PhysxPxTransformPod transformsPod) + { + fixed (PhysxPxShapePod** pshapesPod = &shapesPod) + { + fixed (PhysxPxTransformPod* ptransformsPod = &transformsPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, actorPod, (PhysxPxShapePod**)pshapesPod, bvhPod, (PhysxPxTransformPod*)ptransformsPod); + return ret; + } + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod* shapesPod, PhysxPxBVHPod* bvhPod, ref PhysxPxTransformPod transformsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod** pshapesPod = &shapesPod) + { + fixed (PhysxPxTransformPod* ptransformsPod = &transformsPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod**)pshapesPod, bvhPod, (PhysxPxTransformPod*)ptransformsPod); + return ret; + } + } + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod** shapesPod, ref PhysxPxBVHPod bvhPod, ref PhysxPxTransformPod transformsPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + fixed (PhysxPxTransformPod* ptransformsPod = &transformsPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, actorPod, shapesPod, (PhysxPxBVHPod*)pbvhPod, (PhysxPxTransformPod*)ptransformsPod); + return ret; + } + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod** shapesPod, ref PhysxPxBVHPod bvhPod, ref PhysxPxTransformPod transformsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + fixed (PhysxPxTransformPod* ptransformsPod = &transformsPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapesPod, (PhysxPxBVHPod*)pbvhPod, (PhysxPxTransformPod*)ptransformsPod); + return ret; + } + } + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod* shapesPod, ref PhysxPxBVHPod bvhPod, ref PhysxPxTransformPod transformsPod) + { + fixed (PhysxPxShapePod** pshapesPod = &shapesPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + fixed (PhysxPxTransformPod* ptransformsPod = &transformsPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, actorPod, (PhysxPxShapePod**)pshapesPod, (PhysxPxBVHPod*)pbvhPod, (PhysxPxTransformPod*)ptransformsPod); + return ret; + } + } + } + } + + public static uint PxSceneQuerySystemAddSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod* shapesPod, ref PhysxPxBVHPod bvhPod, ref PhysxPxTransformPod transformsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod** pshapesPod = &shapesPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + fixed (PhysxPxTransformPod* ptransformsPod = &transformsPod) + { + uint ret = PxSceneQuerySystemAddSQCompoundMutNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod**)pshapesPod, (PhysxPxBVHPod*)pbvhPod, (PhysxPxTransformPod*)ptransformsPod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_removeSQCompound_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemRemoveSQCompoundMutNative(PhysxPxSceneQuerySystemPod* selfPod, uint compoundHandle); + + public static void PxSceneQuerySystemRemoveSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, uint compoundHandle) + { + PxSceneQuerySystemRemoveSQCompoundMutNative(selfPod, compoundHandle); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_updateSQCompound_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemUpdateSQCompoundMutNative(PhysxPxSceneQuerySystemPod* selfPod, uint compoundHandle, PhysxPxTransformPod* compoundtransformPod); + + public static void PxSceneQuerySystemUpdateSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, uint compoundHandle, PhysxPxTransformPod* compoundtransformPod) + { + PxSceneQuerySystemUpdateSQCompoundMutNative(selfPod, compoundHandle, compoundtransformPod); + } + + public static void PxSceneQuerySystemUpdateSQCompoundMut( PhysxPxSceneQuerySystemPod* selfPod, uint compoundHandle, ref PhysxPxTransformPod compoundtransformPod) + { + fixed (PhysxPxTransformPod* pcompoundtransformPod = &compoundtransformPod) + { + PxSceneQuerySystemUpdateSQCompoundMutNative(selfPod, compoundHandle, (PhysxPxTransformPod*)pcompoundtransformPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_shiftOrigin_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemShiftOriginMutNative(PhysxPxSceneQuerySystemPod* selfPod, PhysxPxVec3Pod* shiftPod); + + public static void PxSceneQuerySystemShiftOriginMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxVec3Pod* shiftPod) + { + PxSceneQuerySystemShiftOriginMutNative(selfPod, shiftPod); + } + + public static void PxSceneQuerySystemShiftOriginMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxVec3Pod shiftPod) + { + fixed (PhysxPxVec3Pod* pshiftPod = &shiftPod) + { + PxSceneQuerySystemShiftOriginMutNative(selfPod, (PhysxPxVec3Pod*)pshiftPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_merge_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemMergeMutNative(PhysxPxSceneQuerySystemPod* selfPod, PhysxPxPruningStructurePod* pruningstructurePod); + + public static void PxSceneQuerySystemMergeMut( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxPruningStructurePod* pruningstructurePod) + { + PxSceneQuerySystemMergeMutNative(selfPod, pruningstructurePod); + } + + public static void PxSceneQuerySystemMergeMut( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxPruningStructurePod pruningstructurePod) + { + fixed (PhysxPxPruningStructurePod* ppruningstructurePod = &pruningstructurePod) + { + PxSceneQuerySystemMergeMutNative(selfPod, (PhysxPxPruningStructurePod*)ppruningstructurePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_getHandle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneQuerySystemGetHandleNative(PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, uint* prunerindexPod); + + public static uint PxSceneQuerySystemGetHandle( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, uint* prunerindexPod) + { + uint ret = PxSceneQuerySystemGetHandleNative(selfPod, actorPod, shapePod, prunerindexPod); + return ret; + } + + public static uint PxSceneQuerySystemGetHandle( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, uint* prunerindexPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + uint ret = PxSceneQuerySystemGetHandleNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, prunerindexPod); + return ret; + } + } + + public static uint PxSceneQuerySystemGetHandle( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, uint* prunerindexPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + uint ret = PxSceneQuerySystemGetHandleNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, prunerindexPod); + return ret; + } + } + + public static uint PxSceneQuerySystemGetHandle( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, uint* prunerindexPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + uint ret = PxSceneQuerySystemGetHandleNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, prunerindexPod); + return ret; + } + } + } + + public static uint PxSceneQuerySystemGetHandle( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod, ref uint prunerindexPod) + { + fixed (uint* pprunerindexPod = &prunerindexPod) + { + uint ret = PxSceneQuerySystemGetHandleNative(selfPod, actorPod, shapePod, (uint*)pprunerindexPod); + return ret; + } + } + + public static uint PxSceneQuerySystemGetHandle( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod, ref uint prunerindexPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (uint* pprunerindexPod = &prunerindexPod) + { + uint ret = PxSceneQuerySystemGetHandleNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod, (uint*)pprunerindexPod); + return ret; + } + } + } + + public static uint PxSceneQuerySystemGetHandle( PhysxPxSceneQuerySystemPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod, ref uint prunerindexPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (uint* pprunerindexPod = &prunerindexPod) + { + uint ret = PxSceneQuerySystemGetHandleNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod, (uint*)pprunerindexPod); + return ret; + } + } + } + + public static uint PxSceneQuerySystemGetHandle( PhysxPxSceneQuerySystemPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod, ref uint prunerindexPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (uint* pprunerindexPod = &prunerindexPod) + { + uint ret = PxSceneQuerySystemGetHandleNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod, (uint*)pprunerindexPod); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_sync_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemSyncMutNative(PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, uint* indices, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod); + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, uint* indices, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, indices, boundsPod, transformsPod, count, ignoredindicesPod); + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, uint* indices, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, indices, boundsPod, transformsPod, count, ignoredindicesPod); + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, ref uint indices, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* pindices = &indices) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, (uint*)pindices, boundsPod, transformsPod, count, ignoredindicesPod); + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, ref uint indices, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (uint* pindices = &indices) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, (uint*)pindices, boundsPod, transformsPod, count, ignoredindicesPod); + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, uint* indices, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, indices, (PhysxPxBounds3Pod*)pboundsPod, transformsPod, count, ignoredindicesPod); + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, uint* indices, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, indices, (PhysxPxBounds3Pod*)pboundsPod, transformsPod, count, ignoredindicesPod); + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, ref uint indices, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, (uint*)pindices, (PhysxPxBounds3Pod*)pboundsPod, transformsPod, count, ignoredindicesPod); + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, ref uint indices, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, (uint*)pindices, (PhysxPxBounds3Pod*)pboundsPod, transformsPod, count, ignoredindicesPod); + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, uint* indices, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, indices, boundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, ignoredindicesPod); + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, uint* indices, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, indices, boundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, ignoredindicesPod); + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, ref uint indices, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, (uint*)pindices, boundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, ignoredindicesPod); + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, ref uint indices, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, (uint*)pindices, boundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, ignoredindicesPod); + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, uint* indices, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, indices, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, ignoredindicesPod); + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, uint* indices, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, indices, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, ignoredindicesPod); + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, ref uint indices, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, (uint*)pindices, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, ignoredindicesPod); + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, ref uint indices, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, PhysxPxBitMapPod* ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, (uint*)pindices, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, ignoredindicesPod); + } + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, uint* indices, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, indices, boundsPod, transformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, uint* indices, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, indices, boundsPod, transformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, ref uint indices, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, (uint*)pindices, boundsPod, transformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, ref uint indices, PhysxPxBounds3Pod* boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, (uint*)pindices, boundsPod, transformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, uint* indices, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, indices, (PhysxPxBounds3Pod*)pboundsPod, transformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, uint* indices, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, indices, (PhysxPxBounds3Pod*)pboundsPod, transformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, ref uint indices, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, (uint*)pindices, (PhysxPxBounds3Pod*)pboundsPod, transformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, ref uint indices, ref PhysxPxBounds3Pod boundsPod, PhysxPxTransformPaddedPod* transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, (uint*)pindices, (PhysxPxBounds3Pod*)pboundsPod, transformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, uint* indices, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, indices, boundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, uint* indices, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, indices, boundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, ref uint indices, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, (uint*)pindices, boundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, ref uint indices, PhysxPxBounds3Pod* boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, (uint*)pindices, boundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, uint* indices, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, indices, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, uint* indices, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, indices, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, uint* handles, ref uint indices, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, handles, (uint*)pindices, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + } + } + + public static void PxSceneQuerySystemSyncMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex, ref uint handles, ref uint indices, ref PhysxPxBounds3Pod boundsPod, ref PhysxPxTransformPaddedPod transformsPod, uint count, ref PhysxPxBitMapPod ignoredindicesPod) + { + fixed (uint* phandles = &handles) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (PhysxPxTransformPaddedPod* ptransformsPod = &transformsPod) + { + fixed (PhysxPxBitMapPod* pignoredindicesPod = &ignoredindicesPod) + { + PxSceneQuerySystemSyncMutNative(selfPod, prunerIndex, (uint*)phandles, (uint*)pindices, (PhysxPxBounds3Pod*)pboundsPod, (PhysxPxTransformPaddedPod*)ptransformsPod, count, (PhysxPxBitMapPod*)pignoredindicesPod); + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_finalizeUpdates_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemFinalizeUpdatesMutNative(PhysxPxSceneQuerySystemPod* selfPod); + + public static void PxSceneQuerySystemFinalizeUpdatesMut( PhysxPxSceneQuerySystemPod* selfPod) + { + PxSceneQuerySystemFinalizeUpdatesMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_prepareSceneQueryBuildStep_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxSceneQuerySystemPrepareSceneQueryBuildStepMutNative(PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex); + + public static void* PxSceneQuerySystemPrepareSceneQueryBuildStepMut( PhysxPxSceneQuerySystemPod* selfPod, uint prunerIndex) + { + void* ret = PxSceneQuerySystemPrepareSceneQueryBuildStepMutNative(selfPod, prunerIndex); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQuerySystem_sceneQueryBuildStep_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneQuerySystemSceneQueryBuildStepMutNative(PhysxPxSceneQuerySystemPod* selfPod, void* handle); + + public static void PxSceneQuerySystemSceneQueryBuildStepMut( PhysxPxSceneQuerySystemPod* selfPod, void* handle) + { + PxSceneQuerySystemSceneQueryBuildStepMutNative(selfPod, handle); + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseDesc_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBroadPhaseDescPod PxBroadPhaseDescNewNative(int typePod); + + public static PhysxPxBroadPhaseDescPod PxBroadPhaseDescNew( int typePod) + { + PhysxPxBroadPhaseDescPod ret = PxBroadPhaseDescNewNative(typePod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBroadPhaseDescIsValidNative(PhysxPxBroadPhaseDescPod* selfPod); + + public static bool PxBroadPhaseDescIsValid( PhysxPxBroadPhaseDescPod* selfPod) + { + byte ret = PxBroadPhaseDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetBroadPhaseStaticFilterGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxGetBroadPhaseStaticFilterGroupNative(); + + public static uint PhysPxGetBroadPhaseStaticFilterGroup() + { + uint ret = PhysPxGetBroadPhaseStaticFilterGroupNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetBroadPhaseDynamicFilterGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxGetBroadPhaseDynamicFilterGroupNative(uint id); + + public static uint PhysPxGetBroadPhaseDynamicFilterGroup( uint id) + { + uint ret = PhysPxGetBroadPhaseDynamicFilterGroupNative(id); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetBroadPhaseKinematicFilterGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxGetBroadPhaseKinematicFilterGroupNative(uint id); + + public static uint PhysPxGetBroadPhaseKinematicFilterGroup( uint id) + { + uint ret = PhysPxGetBroadPhaseKinematicFilterGroupNative(id); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseUpdateData_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNewNative(uint* created, uint nbCreated, uint* updated, uint nbUpdated, uint* removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, uint* groups, float* distances, uint capacity); + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, uint* removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, uint* groups, float* distances, uint capacity) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, removed, nbRemoved, boundsPod, groups, distances, capacity); + return ret; + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, uint* removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, uint* groups, float* distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, removed, nbRemoved, boundsPod, groups, distances, capacity); + return ret; + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, ref uint removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, uint* groups, float* distances, uint capacity) + { + fixed (uint* premoved = &removed) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, (uint*)premoved, nbRemoved, boundsPod, groups, distances, capacity); + return ret; + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, ref uint removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, uint* groups, float* distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (uint* premoved = &removed) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, (uint*)premoved, nbRemoved, boundsPod, groups, distances, capacity); + return ret; + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, uint* removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, uint* groups, float* distances, uint capacity) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, removed, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, groups, distances, capacity); + return ret; + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, uint* removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, uint* groups, float* distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, removed, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, groups, distances, capacity); + return ret; + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, ref uint removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, uint* groups, float* distances, uint capacity) + { + fixed (uint* premoved = &removed) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, (uint*)premoved, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, groups, distances, capacity); + return ret; + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, ref uint removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, uint* groups, float* distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (uint* premoved = &removed) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, (uint*)premoved, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, groups, distances, capacity); + return ret; + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, uint* removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, ref uint groups, float* distances, uint capacity) + { + fixed (uint* pgroups = &groups) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, removed, nbRemoved, boundsPod, (uint*)pgroups, distances, capacity); + return ret; + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, uint* removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, ref uint groups, float* distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (uint* pgroups = &groups) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, removed, nbRemoved, boundsPod, (uint*)pgroups, distances, capacity); + return ret; + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, ref uint removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, ref uint groups, float* distances, uint capacity) + { + fixed (uint* premoved = &removed) + { + fixed (uint* pgroups = &groups) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, (uint*)premoved, nbRemoved, boundsPod, (uint*)pgroups, distances, capacity); + return ret; + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, ref uint removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, ref uint groups, float* distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (uint* premoved = &removed) + { + fixed (uint* pgroups = &groups) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, (uint*)premoved, nbRemoved, boundsPod, (uint*)pgroups, distances, capacity); + return ret; + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, uint* removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, ref uint groups, float* distances, uint capacity) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pgroups = &groups) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, removed, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, (uint*)pgroups, distances, capacity); + return ret; + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, uint* removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, ref uint groups, float* distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pgroups = &groups) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, removed, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, (uint*)pgroups, distances, capacity); + return ret; + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, ref uint removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, ref uint groups, float* distances, uint capacity) + { + fixed (uint* premoved = &removed) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pgroups = &groups) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, (uint*)premoved, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, (uint*)pgroups, distances, capacity); + return ret; + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, ref uint removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, ref uint groups, float* distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (uint* premoved = &removed) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pgroups = &groups) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, (uint*)premoved, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, (uint*)pgroups, distances, capacity); + return ret; + } + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, uint* removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, uint* groups, ref float distances, uint capacity) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, removed, nbRemoved, boundsPod, groups, (float*)pdistances, capacity); + return ret; + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, uint* removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, uint* groups, ref float distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, removed, nbRemoved, boundsPod, groups, (float*)pdistances, capacity); + return ret; + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, ref uint removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, uint* groups, ref float distances, uint capacity) + { + fixed (uint* premoved = &removed) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, (uint*)premoved, nbRemoved, boundsPod, groups, (float*)pdistances, capacity); + return ret; + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, ref uint removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, uint* groups, ref float distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (uint* premoved = &removed) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, (uint*)premoved, nbRemoved, boundsPod, groups, (float*)pdistances, capacity); + return ret; + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, uint* removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, uint* groups, ref float distances, uint capacity) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, removed, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, groups, (float*)pdistances, capacity); + return ret; + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, uint* removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, uint* groups, ref float distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, removed, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, groups, (float*)pdistances, capacity); + return ret; + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, ref uint removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, uint* groups, ref float distances, uint capacity) + { + fixed (uint* premoved = &removed) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, (uint*)premoved, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, groups, (float*)pdistances, capacity); + return ret; + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, ref uint removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, uint* groups, ref float distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (uint* premoved = &removed) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, (uint*)premoved, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, groups, (float*)pdistances, capacity); + return ret; + } + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, uint* removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, ref uint groups, ref float distances, uint capacity) + { + fixed (uint* pgroups = &groups) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, removed, nbRemoved, boundsPod, (uint*)pgroups, (float*)pdistances, capacity); + return ret; + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, uint* removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, ref uint groups, ref float distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (uint* pgroups = &groups) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, removed, nbRemoved, boundsPod, (uint*)pgroups, (float*)pdistances, capacity); + return ret; + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, ref uint removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, ref uint groups, ref float distances, uint capacity) + { + fixed (uint* premoved = &removed) + { + fixed (uint* pgroups = &groups) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, (uint*)premoved, nbRemoved, boundsPod, (uint*)pgroups, (float*)pdistances, capacity); + return ret; + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, ref uint removed, uint nbRemoved, PhysxPxBounds3Pod* boundsPod, ref uint groups, ref float distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (uint* premoved = &removed) + { + fixed (uint* pgroups = &groups) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, (uint*)premoved, nbRemoved, boundsPod, (uint*)pgroups, (float*)pdistances, capacity); + return ret; + } + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, uint* removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, ref uint groups, ref float distances, uint capacity) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pgroups = &groups) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, removed, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, (uint*)pgroups, (float*)pdistances, capacity); + return ret; + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, uint* removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, ref uint groups, ref float distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pgroups = &groups) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, removed, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, (uint*)pgroups, (float*)pdistances, capacity); + return ret; + } + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, uint* updated, uint nbUpdated, ref uint removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, ref uint groups, ref float distances, uint capacity) + { + fixed (uint* premoved = &removed) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pgroups = &groups) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, updated, nbUpdated, (uint*)premoved, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, (uint*)pgroups, (float*)pdistances, capacity); + return ret; + } + } + } + } + } + + public static PhysxPxBroadPhaseUpdateDataPod PxBroadPhaseUpdateDataNew( uint* created, uint nbCreated, ref uint updated, uint nbUpdated, ref uint removed, uint nbRemoved, ref PhysxPxBounds3Pod boundsPod, ref uint groups, ref float distances, uint capacity) + { + fixed (uint* pupdated = &updated) + { + fixed (uint* premoved = &removed) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (uint* pgroups = &groups) + { + fixed (float* pdistances = &distances) + { + PhysxPxBroadPhaseUpdateDataPod ret = PxBroadPhaseUpdateDataNewNative(created, nbCreated, (uint*)pupdated, nbUpdated, (uint*)premoved, nbRemoved, (PhysxPxBounds3Pod*)pboundsPod, (uint*)pgroups, (float*)pdistances, capacity); + return ret; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseResults_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBroadPhaseResultsPod PxBroadPhaseResultsNewNative(); + + public static PhysxPxBroadPhaseResultsPod PxBroadPhaseResultsNew() + { + PhysxPxBroadPhaseResultsPod ret = PxBroadPhaseResultsNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseRegions_getNbRegions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxBroadPhaseRegionsGetNbRegionsNative(PhysxPxBroadPhaseRegionsPod* selfPod); + + public static uint PxBroadPhaseRegionsGetNbRegions( PhysxPxBroadPhaseRegionsPod* selfPod) + { + uint ret = PxBroadPhaseRegionsGetNbRegionsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseRegions_getRegions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxBroadPhaseRegionsGetRegionsNative(PhysxPxBroadPhaseRegionsPod* selfPod, PhysxPxBroadPhaseRegionInfoPod* userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxBroadPhaseRegionsGetRegions( PhysxPxBroadPhaseRegionsPod* selfPod, PhysxPxBroadPhaseRegionInfoPod* userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxBroadPhaseRegionsGetRegionsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxBroadPhaseRegionsGetRegions( PhysxPxBroadPhaseRegionsPod* selfPod, ref PhysxPxBroadPhaseRegionInfoPod userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxBroadPhaseRegionInfoPod* puserbufferPod = &userbufferPod) + { + uint ret = PxBroadPhaseRegionsGetRegionsNative(selfPod, (PhysxPxBroadPhaseRegionInfoPod*)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseRegions_addRegion_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxBroadPhaseRegionsAddRegionMutNative(PhysxPxBroadPhaseRegionsPod* selfPod, PhysxPxBroadPhaseRegionPod* regionPod, byte populateRegion, PhysxPxBounds3Pod* boundsPod, float* distances); + + public static uint PxBroadPhaseRegionsAddRegionMut( PhysxPxBroadPhaseRegionsPod* selfPod, PhysxPxBroadPhaseRegionPod* regionPod, bool populateRegion, PhysxPxBounds3Pod* boundsPod, float* distances) + { + uint ret = PxBroadPhaseRegionsAddRegionMutNative(selfPod, regionPod, populateRegion ? (byte)1 : (byte)0, boundsPod, distances); + return ret; + } + + public static uint PxBroadPhaseRegionsAddRegionMut( PhysxPxBroadPhaseRegionsPod* selfPod, ref PhysxPxBroadPhaseRegionPod regionPod, bool populateRegion, PhysxPxBounds3Pod* boundsPod, float* distances) + { + fixed (PhysxPxBroadPhaseRegionPod* pregionPod = ®ionPod) + { + uint ret = PxBroadPhaseRegionsAddRegionMutNative(selfPod, (PhysxPxBroadPhaseRegionPod*)pregionPod, populateRegion ? (byte)1 : (byte)0, boundsPod, distances); + return ret; + } + } + + public static uint PxBroadPhaseRegionsAddRegionMut( PhysxPxBroadPhaseRegionsPod* selfPod, PhysxPxBroadPhaseRegionPod* regionPod, bool populateRegion, ref PhysxPxBounds3Pod boundsPod, float* distances) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + uint ret = PxBroadPhaseRegionsAddRegionMutNative(selfPod, regionPod, populateRegion ? (byte)1 : (byte)0, (PhysxPxBounds3Pod*)pboundsPod, distances); + return ret; + } + } + + public static uint PxBroadPhaseRegionsAddRegionMut( PhysxPxBroadPhaseRegionsPod* selfPod, ref PhysxPxBroadPhaseRegionPod regionPod, bool populateRegion, ref PhysxPxBounds3Pod boundsPod, float* distances) + { + fixed (PhysxPxBroadPhaseRegionPod* pregionPod = ®ionPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + uint ret = PxBroadPhaseRegionsAddRegionMutNative(selfPod, (PhysxPxBroadPhaseRegionPod*)pregionPod, populateRegion ? (byte)1 : (byte)0, (PhysxPxBounds3Pod*)pboundsPod, distances); + return ret; + } + } + } + + public static uint PxBroadPhaseRegionsAddRegionMut( PhysxPxBroadPhaseRegionsPod* selfPod, PhysxPxBroadPhaseRegionPod* regionPod, bool populateRegion, PhysxPxBounds3Pod* boundsPod, ref float distances) + { + fixed (float* pdistances = &distances) + { + uint ret = PxBroadPhaseRegionsAddRegionMutNative(selfPod, regionPod, populateRegion ? (byte)1 : (byte)0, boundsPod, (float*)pdistances); + return ret; + } + } + + public static uint PxBroadPhaseRegionsAddRegionMut( PhysxPxBroadPhaseRegionsPod* selfPod, ref PhysxPxBroadPhaseRegionPod regionPod, bool populateRegion, PhysxPxBounds3Pod* boundsPod, ref float distances) + { + fixed (PhysxPxBroadPhaseRegionPod* pregionPod = ®ionPod) + { + fixed (float* pdistances = &distances) + { + uint ret = PxBroadPhaseRegionsAddRegionMutNative(selfPod, (PhysxPxBroadPhaseRegionPod*)pregionPod, populateRegion ? (byte)1 : (byte)0, boundsPod, (float*)pdistances); + return ret; + } + } + } + + public static uint PxBroadPhaseRegionsAddRegionMut( PhysxPxBroadPhaseRegionsPod* selfPod, PhysxPxBroadPhaseRegionPod* regionPod, bool populateRegion, ref PhysxPxBounds3Pod boundsPod, ref float distances) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (float* pdistances = &distances) + { + uint ret = PxBroadPhaseRegionsAddRegionMutNative(selfPod, regionPod, populateRegion ? (byte)1 : (byte)0, (PhysxPxBounds3Pod*)pboundsPod, (float*)pdistances); + return ret; + } + } + } + + public static uint PxBroadPhaseRegionsAddRegionMut( PhysxPxBroadPhaseRegionsPod* selfPod, ref PhysxPxBroadPhaseRegionPod regionPod, bool populateRegion, ref PhysxPxBounds3Pod boundsPod, ref float distances) + { + fixed (PhysxPxBroadPhaseRegionPod* pregionPod = ®ionPod) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (float* pdistances = &distances) + { + uint ret = PxBroadPhaseRegionsAddRegionMutNative(selfPod, (PhysxPxBroadPhaseRegionPod*)pregionPod, populateRegion ? (byte)1 : (byte)0, (PhysxPxBounds3Pod*)pboundsPod, (float*)pdistances); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseRegions_removeRegion_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBroadPhaseRegionsRemoveRegionMutNative(PhysxPxBroadPhaseRegionsPod* selfPod, uint handle); + + public static bool PxBroadPhaseRegionsRemoveRegionMut( PhysxPxBroadPhaseRegionsPod* selfPod, uint handle) + { + byte ret = PxBroadPhaseRegionsRemoveRegionMutNative(selfPod, handle); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseRegions_getNbOutOfBoundsObjects")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxBroadPhaseRegionsGetNbOutOfBoundsObjectsNative(PhysxPxBroadPhaseRegionsPod* selfPod); + + public static uint PxBroadPhaseRegionsGetNbOutOfBoundsObjects( PhysxPxBroadPhaseRegionsPod* selfPod) + { + uint ret = PxBroadPhaseRegionsGetNbOutOfBoundsObjectsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseRegions_getOutOfBoundsObjects")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint* PxBroadPhaseRegionsGetOutOfBoundsObjectsNative(PhysxPxBroadPhaseRegionsPod* selfPod); + + public static uint* PxBroadPhaseRegionsGetOutOfBoundsObjects( PhysxPxBroadPhaseRegionsPod* selfPod) + { + uint* ret = PxBroadPhaseRegionsGetOutOfBoundsObjectsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhase_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadPhaseReleaseMutNative(PhysxPxBroadPhasePod* selfPod); + + public static void PxBroadPhaseReleaseMut( PhysxPxBroadPhasePod* selfPod) + { + PxBroadPhaseReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhase_getType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxBroadPhaseGetTypeNative(PhysxPxBroadPhasePod* selfPod); + + public static int PxBroadPhaseGetType( PhysxPxBroadPhasePod* selfPod) + { + int ret = PxBroadPhaseGetTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhase_getCaps")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadPhaseGetCapsNative(PhysxPxBroadPhasePod* selfPod, PhysxPxBroadPhaseCapsPod* capsPod); + + public static void PxBroadPhaseGetCaps( PhysxPxBroadPhasePod* selfPod, PhysxPxBroadPhaseCapsPod* capsPod) + { + PxBroadPhaseGetCapsNative(selfPod, capsPod); + } + + public static void PxBroadPhaseGetCaps( PhysxPxBroadPhasePod* selfPod, ref PhysxPxBroadPhaseCapsPod capsPod) + { + fixed (PhysxPxBroadPhaseCapsPod* pcapsPod = &capsPod) + { + PxBroadPhaseGetCapsNative(selfPod, (PhysxPxBroadPhaseCapsPod*)pcapsPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhase_getRegions_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBroadPhaseRegionsPod* PxBroadPhaseGetRegionsMutNative(PhysxPxBroadPhasePod* selfPod); + + public static PhysxPxBroadPhaseRegionsPod* PxBroadPhaseGetRegionsMut( PhysxPxBroadPhasePod* selfPod) + { + PhysxPxBroadPhaseRegionsPod* ret = PxBroadPhaseGetRegionsMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhase_getAllocator_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxAllocatorCallbackPod* PxBroadPhaseGetAllocatorMutNative(PhysxPxBroadPhasePod* selfPod); + + public static PhysxPxAllocatorCallbackPod* PxBroadPhaseGetAllocatorMut( PhysxPxBroadPhasePod* selfPod) + { + PhysxPxAllocatorCallbackPod* ret = PxBroadPhaseGetAllocatorMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhase_getContextID")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong PxBroadPhaseGetContextIDNative(PhysxPxBroadPhasePod* selfPod); + + public static ulong PxBroadPhaseGetContextID( PhysxPxBroadPhasePod* selfPod) + { + ulong ret = PxBroadPhaseGetContextIDNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhase_setScratchBlock_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadPhaseSetScratchBlockMutNative(PhysxPxBroadPhasePod* selfPod, void* scratchBlock, uint size); + + public static void PxBroadPhaseSetScratchBlockMut( PhysxPxBroadPhasePod* selfPod, void* scratchBlock, uint size) + { + PxBroadPhaseSetScratchBlockMutNative(selfPod, scratchBlock, size); + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhase_update_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadPhaseUpdateMutNative(PhysxPxBroadPhasePod* selfPod, PhysxPxBroadPhaseUpdateDataPod* updatedataPod, PhysxPxBaseTaskPod* continuationPod); + + public static void PxBroadPhaseUpdateMut( PhysxPxBroadPhasePod* selfPod, PhysxPxBroadPhaseUpdateDataPod* updatedataPod, PhysxPxBaseTaskPod* continuationPod) + { + PxBroadPhaseUpdateMutNative(selfPod, updatedataPod, continuationPod); + } + + public static void PxBroadPhaseUpdateMut( PhysxPxBroadPhasePod* selfPod, ref PhysxPxBroadPhaseUpdateDataPod updatedataPod, PhysxPxBaseTaskPod* continuationPod) + { + fixed (PhysxPxBroadPhaseUpdateDataPod* pupdatedataPod = &updatedataPod) + { + PxBroadPhaseUpdateMutNative(selfPod, (PhysxPxBroadPhaseUpdateDataPod*)pupdatedataPod, continuationPod); + } + } + + public static void PxBroadPhaseUpdateMut( PhysxPxBroadPhasePod* selfPod, PhysxPxBroadPhaseUpdateDataPod* updatedataPod, ref PhysxPxBaseTaskPod continuationPod) + { + fixed (PhysxPxBaseTaskPod* pcontinuationPod = &continuationPod) + { + PxBroadPhaseUpdateMutNative(selfPod, updatedataPod, (PhysxPxBaseTaskPod*)pcontinuationPod); + } + } + + public static void PxBroadPhaseUpdateMut( PhysxPxBroadPhasePod* selfPod, ref PhysxPxBroadPhaseUpdateDataPod updatedataPod, ref PhysxPxBaseTaskPod continuationPod) + { + fixed (PhysxPxBroadPhaseUpdateDataPod* pupdatedataPod = &updatedataPod) + { + fixed (PhysxPxBaseTaskPod* pcontinuationPod = &continuationPod) + { + PxBroadPhaseUpdateMutNative(selfPod, (PhysxPxBroadPhaseUpdateDataPod*)pupdatedataPod, (PhysxPxBaseTaskPod*)pcontinuationPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhase_fetchResults_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadPhaseFetchResultsMutNative(PhysxPxBroadPhasePod* selfPod, PhysxPxBroadPhaseResultsPod* resultsPod); + + public static void PxBroadPhaseFetchResultsMut( PhysxPxBroadPhasePod* selfPod, PhysxPxBroadPhaseResultsPod* resultsPod) + { + PxBroadPhaseFetchResultsMutNative(selfPod, resultsPod); + } + + public static void PxBroadPhaseFetchResultsMut( PhysxPxBroadPhasePod* selfPod, ref PhysxPxBroadPhaseResultsPod resultsPod) + { + fixed (PhysxPxBroadPhaseResultsPod* presultsPod = &resultsPod) + { + PxBroadPhaseFetchResultsMutNative(selfPod, (PhysxPxBroadPhaseResultsPod*)presultsPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhase_update_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadPhaseUpdateMut1Native(PhysxPxBroadPhasePod* selfPod, PhysxPxBroadPhaseResultsPod* resultsPod, PhysxPxBroadPhaseUpdateDataPod* updatedataPod); + + public static void PxBroadPhaseUpdateMut1( PhysxPxBroadPhasePod* selfPod, PhysxPxBroadPhaseResultsPod* resultsPod, PhysxPxBroadPhaseUpdateDataPod* updatedataPod) + { + PxBroadPhaseUpdateMut1Native(selfPod, resultsPod, updatedataPod); + } + + public static void PxBroadPhaseUpdateMut1( PhysxPxBroadPhasePod* selfPod, ref PhysxPxBroadPhaseResultsPod resultsPod, PhysxPxBroadPhaseUpdateDataPod* updatedataPod) + { + fixed (PhysxPxBroadPhaseResultsPod* presultsPod = &resultsPod) + { + PxBroadPhaseUpdateMut1Native(selfPod, (PhysxPxBroadPhaseResultsPod*)presultsPod, updatedataPod); + } + } + + public static void PxBroadPhaseUpdateMut1( PhysxPxBroadPhasePod* selfPod, PhysxPxBroadPhaseResultsPod* resultsPod, ref PhysxPxBroadPhaseUpdateDataPod updatedataPod) + { + fixed (PhysxPxBroadPhaseUpdateDataPod* pupdatedataPod = &updatedataPod) + { + PxBroadPhaseUpdateMut1Native(selfPod, resultsPod, (PhysxPxBroadPhaseUpdateDataPod*)pupdatedataPod); + } + } + + public static void PxBroadPhaseUpdateMut1( PhysxPxBroadPhasePod* selfPod, ref PhysxPxBroadPhaseResultsPod resultsPod, ref PhysxPxBroadPhaseUpdateDataPod updatedataPod) + { + fixed (PhysxPxBroadPhaseResultsPod* presultsPod = &resultsPod) + { + fixed (PhysxPxBroadPhaseUpdateDataPod* pupdatedataPod = &updatedataPod) + { + PxBroadPhaseUpdateMut1Native(selfPod, (PhysxPxBroadPhaseResultsPod*)presultsPod, (PhysxPxBroadPhaseUpdateDataPod*)pupdatedataPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateBroadPhase")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBroadPhasePod* PhysPxCreateBroadPhaseNative(PhysxPxBroadPhaseDescPod* descPod); + + public static PhysxPxBroadPhasePod* PhysPxCreateBroadPhase( PhysxPxBroadPhaseDescPod* descPod) + { + PhysxPxBroadPhasePod* ret = PhysPxCreateBroadPhaseNative(descPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAABBManagerReleaseMutNative(PhysxPxAABBManagerPod* selfPod); + + public static void PxAABBManagerReleaseMut( PhysxPxAABBManagerPod* selfPod) + { + PxAABBManagerReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_getBroadPhase_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBroadPhasePod* PxAABBManagerGetBroadPhaseMutNative(PhysxPxAABBManagerPod* selfPod); + + public static PhysxPxBroadPhasePod* PxAABBManagerGetBroadPhaseMut( PhysxPxAABBManagerPod* selfPod) + { + PhysxPxBroadPhasePod* ret = PxAABBManagerGetBroadPhaseMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_getBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod* PxAABBManagerGetBoundsNative(PhysxPxAABBManagerPod* selfPod); + + public static PhysxPxBounds3Pod* PxAABBManagerGetBounds( PhysxPxAABBManagerPod* selfPod) + { + PhysxPxBounds3Pod* ret = PxAABBManagerGetBoundsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_getDistances")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float* PxAABBManagerGetDistancesNative(PhysxPxAABBManagerPod* selfPod); + + public static float* PxAABBManagerGetDistances( PhysxPxAABBManagerPod* selfPod) + { + float* ret = PxAABBManagerGetDistancesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_getGroups")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint* PxAABBManagerGetGroupsNative(PhysxPxAABBManagerPod* selfPod); + + public static uint* PxAABBManagerGetGroups( PhysxPxAABBManagerPod* selfPod) + { + uint* ret = PxAABBManagerGetGroupsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_getCapacity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxAABBManagerGetCapacityNative(PhysxPxAABBManagerPod* selfPod); + + public static uint PxAABBManagerGetCapacity( PhysxPxAABBManagerPod* selfPod) + { + uint ret = PxAABBManagerGetCapacityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_addObject_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAABBManagerAddObjectMutNative(PhysxPxAABBManagerPod* selfPod, uint index, PhysxPxBounds3Pod* boundsPod, uint group, float distance); + + public static void PxAABBManagerAddObjectMut( PhysxPxAABBManagerPod* selfPod, uint index, PhysxPxBounds3Pod* boundsPod, uint group, float distance) + { + PxAABBManagerAddObjectMutNative(selfPod, index, boundsPod, group, distance); + } + + public static void PxAABBManagerAddObjectMut( PhysxPxAABBManagerPod* selfPod, uint index, ref PhysxPxBounds3Pod boundsPod, uint group, float distance) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PxAABBManagerAddObjectMutNative(selfPod, index, (PhysxPxBounds3Pod*)pboundsPod, group, distance); + } + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_removeObject_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAABBManagerRemoveObjectMutNative(PhysxPxAABBManagerPod* selfPod, uint index); + + public static void PxAABBManagerRemoveObjectMut( PhysxPxAABBManagerPod* selfPod, uint index) + { + PxAABBManagerRemoveObjectMutNative(selfPod, index); + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_updateObject_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAABBManagerUpdateObjectMutNative(PhysxPxAABBManagerPod* selfPod, uint index, PhysxPxBounds3Pod* boundsPod, float* distance); + + public static void PxAABBManagerUpdateObjectMut( PhysxPxAABBManagerPod* selfPod, uint index, PhysxPxBounds3Pod* boundsPod, float* distance) + { + PxAABBManagerUpdateObjectMutNative(selfPod, index, boundsPod, distance); + } + + public static void PxAABBManagerUpdateObjectMut( PhysxPxAABBManagerPod* selfPod, uint index, ref PhysxPxBounds3Pod boundsPod, float* distance) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + PxAABBManagerUpdateObjectMutNative(selfPod, index, (PhysxPxBounds3Pod*)pboundsPod, distance); + } + } + + public static void PxAABBManagerUpdateObjectMut( PhysxPxAABBManagerPod* selfPod, uint index, PhysxPxBounds3Pod* boundsPod, ref float distance) + { + fixed (float* pdistance = &distance) + { + PxAABBManagerUpdateObjectMutNative(selfPod, index, boundsPod, (float*)pdistance); + } + } + + public static void PxAABBManagerUpdateObjectMut( PhysxPxAABBManagerPod* selfPod, uint index, ref PhysxPxBounds3Pod boundsPod, ref float distance) + { + fixed (PhysxPxBounds3Pod* pboundsPod = &boundsPod) + { + fixed (float* pdistance = &distance) + { + PxAABBManagerUpdateObjectMutNative(selfPod, index, (PhysxPxBounds3Pod*)pboundsPod, (float*)pdistance); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_update_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAABBManagerUpdateMutNative(PhysxPxAABBManagerPod* selfPod, PhysxPxBaseTaskPod* continuationPod); + + public static void PxAABBManagerUpdateMut( PhysxPxAABBManagerPod* selfPod, PhysxPxBaseTaskPod* continuationPod) + { + PxAABBManagerUpdateMutNative(selfPod, continuationPod); + } + + public static void PxAABBManagerUpdateMut( PhysxPxAABBManagerPod* selfPod, ref PhysxPxBaseTaskPod continuationPod) + { + fixed (PhysxPxBaseTaskPod* pcontinuationPod = &continuationPod) + { + PxAABBManagerUpdateMutNative(selfPod, (PhysxPxBaseTaskPod*)pcontinuationPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_fetchResults_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAABBManagerFetchResultsMutNative(PhysxPxAABBManagerPod* selfPod, PhysxPxBroadPhaseResultsPod* resultsPod); + + public static void PxAABBManagerFetchResultsMut( PhysxPxAABBManagerPod* selfPod, PhysxPxBroadPhaseResultsPod* resultsPod) + { + PxAABBManagerFetchResultsMutNative(selfPod, resultsPod); + } + + public static void PxAABBManagerFetchResultsMut( PhysxPxAABBManagerPod* selfPod, ref PhysxPxBroadPhaseResultsPod resultsPod) + { + fixed (PhysxPxBroadPhaseResultsPod* presultsPod = &resultsPod) + { + PxAABBManagerFetchResultsMutNative(selfPod, (PhysxPxBroadPhaseResultsPod*)presultsPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxAABBManager_update_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxAABBManagerUpdateMut1Native(PhysxPxAABBManagerPod* selfPod, PhysxPxBroadPhaseResultsPod* resultsPod); + + public static void PxAABBManagerUpdateMut1( PhysxPxAABBManagerPod* selfPod, PhysxPxBroadPhaseResultsPod* resultsPod) + { + PxAABBManagerUpdateMut1Native(selfPod, resultsPod); + } + + public static void PxAABBManagerUpdateMut1( PhysxPxAABBManagerPod* selfPod, ref PhysxPxBroadPhaseResultsPod resultsPod) + { + fixed (PhysxPxBroadPhaseResultsPod* presultsPod = &resultsPod) + { + PxAABBManagerUpdateMut1Native(selfPod, (PhysxPxBroadPhaseResultsPod*)presultsPod); + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateAABBManager")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxAABBManagerPod* PhysPxCreateAABBManagerNative(PhysxPxBroadPhasePod* broadphasePod); + + public static PhysxPxAABBManagerPod* PhysPxCreateAABBManager( PhysxPxBroadPhasePod* broadphasePod) + { + PhysxPxAABBManagerPod* ret = PhysPxCreateAABBManagerNative(broadphasePod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneLimits_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSceneLimitsPod PxSceneLimitsNewNative(); + + public static PhysxPxSceneLimitsPod PxSceneLimitsNew() + { + PhysxPxSceneLimitsPod ret = PxSceneLimitsNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneLimits_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneLimitsSetToDefaultMutNative(PhysxPxSceneLimitsPod* selfPod); + + public static void PxSceneLimitsSetToDefaultMut( PhysxPxSceneLimitsPod* selfPod) + { + PxSceneLimitsSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneLimits_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneLimitsIsValidNative(PhysxPxSceneLimitsPod* selfPod); + + public static bool PxSceneLimitsIsValid( PhysxPxSceneLimitsPod* selfPod) + { + byte ret = PxSceneLimitsIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxgDynamicsMemoryConfig_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxgDynamicsMemoryConfigPod PxgDynamicsMemoryConfigNewNative(); + + public static PhysxPxgDynamicsMemoryConfigPod PxgDynamicsMemoryConfigNew() + { + PhysxPxgDynamicsMemoryConfigPod ret = PxgDynamicsMemoryConfigNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxgDynamicsMemoryConfig_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxgDynamicsMemoryConfigIsValidNative(PhysxPxgDynamicsMemoryConfigPod* selfPod); + + public static bool PxgDynamicsMemoryConfigIsValid( PhysxPxgDynamicsMemoryConfigPod* selfPod) + { + byte ret = PxgDynamicsMemoryConfigIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneDesc_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSceneDescPod PxSceneDescNewNative(PhysxPxTolerancesScalePod* scalePod); + + public static PhysxPxSceneDescPod PxSceneDescNew( PhysxPxTolerancesScalePod* scalePod) + { + PhysxPxSceneDescPod ret = PxSceneDescNewNative(scalePod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneDesc_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneDescSetToDefaultMutNative(PhysxPxSceneDescPod* selfPod, PhysxPxTolerancesScalePod* scalePod); + + public static void PxSceneDescSetToDefaultMut( PhysxPxSceneDescPod* selfPod, PhysxPxTolerancesScalePod* scalePod) + { + PxSceneDescSetToDefaultMutNative(selfPod, scalePod); + } + + public static void PxSceneDescSetToDefaultMut( PhysxPxSceneDescPod* selfPod, ref PhysxPxTolerancesScalePod scalePod) + { + fixed (PhysxPxTolerancesScalePod* pscalePod = &scalePod) + { + PxSceneDescSetToDefaultMutNative(selfPod, (PhysxPxTolerancesScalePod*)pscalePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneDescIsValidNative(PhysxPxSceneDescPod* selfPod); + + public static bool PxSceneDescIsValid( PhysxPxSceneDescPod* selfPod) + { + byte ret = PxSceneDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneDesc_getTolerancesScale")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTolerancesScalePod* PxSceneDescGetTolerancesScaleNative(PhysxPxSceneDescPod* selfPod); + + public static PhysxPxTolerancesScalePod* PxSceneDescGetTolerancesScale( PhysxPxSceneDescPod* selfPod) + { + PhysxPxTolerancesScalePod* ret = PxSceneDescGetTolerancesScaleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationStatistics_getNbBroadPhaseAdds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSimulationStatisticsGetNbBroadPhaseAddsNative(PhysxPxSimulationStatisticsPod* selfPod); + + public static uint PxSimulationStatisticsGetNbBroadPhaseAdds( PhysxPxSimulationStatisticsPod* selfPod) + { + uint ret = PxSimulationStatisticsGetNbBroadPhaseAddsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationStatistics_getNbBroadPhaseRemoves")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSimulationStatisticsGetNbBroadPhaseRemovesNative(PhysxPxSimulationStatisticsPod* selfPod); + + public static uint PxSimulationStatisticsGetNbBroadPhaseRemoves( PhysxPxSimulationStatisticsPod* selfPod) + { + uint ret = PxSimulationStatisticsGetNbBroadPhaseRemovesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationStatistics_getRbPairStats")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSimulationStatisticsGetRbPairStatsNative(PhysxPxSimulationStatisticsPod* selfPod, int pairtypePod, int g0Pod, int g1Pod); + + public static uint PxSimulationStatisticsGetRbPairStats( PhysxPxSimulationStatisticsPod* selfPod, int pairtypePod, int g0Pod, int g1Pod) + { + uint ret = PxSimulationStatisticsGetRbPairStatsNative(selfPod, pairtypePod, g0Pod, g1Pod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationStatistics_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSimulationStatisticsPod PxSimulationStatisticsNewNative(); + + public static PhysxPxSimulationStatisticsPod PxSimulationStatisticsNew() + { + PhysxPxSimulationStatisticsPod ret = PxSimulationStatisticsNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPvdSceneClient_setScenePvdFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdSceneClientSetScenePvdFlagMutNative(PhysxPxPvdSceneClientPod* selfPod, int flagPod, byte value); + + public static void PxPvdSceneClientSetScenePvdFlagMut( PhysxPxPvdSceneClientPod* selfPod, int flagPod, bool value) + { + PxPvdSceneClientSetScenePvdFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxPvdSceneClient_setScenePvdFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdSceneClientSetScenePvdFlagsMutNative(PhysxPxPvdSceneClientPod* selfPod, byte flagsPod); + + public static void PxPvdSceneClientSetScenePvdFlagsMut( PhysxPxPvdSceneClientPod* selfPod, byte flagsPod) + { + PxPvdSceneClientSetScenePvdFlagsMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxPvdSceneClient_getScenePvdFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxPvdSceneClientGetScenePvdFlagsNative(PhysxPxPvdSceneClientPod* selfPod); + + public static byte PxPvdSceneClientGetScenePvdFlags( PhysxPxPvdSceneClientPod* selfPod) + { + byte ret = PxPvdSceneClientGetScenePvdFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPvdSceneClient_updateCamera_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdSceneClientUpdateCameraMutNative(PhysxPxPvdSceneClientPod* selfPod, byte* name, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* upPod, PhysxPxVec3Pod* targetPod); + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, byte* name, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* upPod, PhysxPxVec3Pod* targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, name, originPod, upPod, targetPod); + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, ref byte name, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* upPod, PhysxPxVec3Pod* targetPod) + { + fixed (byte* pname = &name) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, (byte*)pname, originPod, upPod, targetPod); + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, string name, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* upPod, PhysxPxVec3Pod* targetPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxPvdSceneClientUpdateCameraMutNative(selfPod, pStr0, originPod, upPod, targetPod); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, byte* name, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* upPod, PhysxPxVec3Pod* targetPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, name, (PhysxPxVec3Pod*)poriginPod, upPod, targetPod); + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, ref byte name, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* upPod, PhysxPxVec3Pod* targetPod) + { + fixed (byte* pname = &name) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, (byte*)pname, (PhysxPxVec3Pod*)poriginPod, upPod, targetPod); + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, string name, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* upPod, PhysxPxVec3Pod* targetPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, pStr0, (PhysxPxVec3Pod*)poriginPod, upPod, targetPod); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, byte* name, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod upPod, PhysxPxVec3Pod* targetPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, name, originPod, (PhysxPxVec3Pod*)pupPod, targetPod); + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, ref byte name, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod upPod, PhysxPxVec3Pod* targetPod) + { + fixed (byte* pname = &name) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, (byte*)pname, originPod, (PhysxPxVec3Pod*)pupPod, targetPod); + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, string name, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod upPod, PhysxPxVec3Pod* targetPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, pStr0, originPod, (PhysxPxVec3Pod*)pupPod, targetPod); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, byte* name, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod upPod, PhysxPxVec3Pod* targetPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, name, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)pupPod, targetPod); + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, ref byte name, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod upPod, PhysxPxVec3Pod* targetPod) + { + fixed (byte* pname = &name) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, (byte*)pname, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)pupPod, targetPod); + } + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, string name, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod upPod, PhysxPxVec3Pod* targetPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, pStr0, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)pupPod, targetPod); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, byte* name, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* upPod, ref PhysxPxVec3Pod targetPod) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, name, originPod, upPod, (PhysxPxVec3Pod*)ptargetPod); + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, ref byte name, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* upPod, ref PhysxPxVec3Pod targetPod) + { + fixed (byte* pname = &name) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, (byte*)pname, originPod, upPod, (PhysxPxVec3Pod*)ptargetPod); + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, string name, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* upPod, ref PhysxPxVec3Pod targetPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, pStr0, originPod, upPod, (PhysxPxVec3Pod*)ptargetPod); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, byte* name, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* upPod, ref PhysxPxVec3Pod targetPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, name, (PhysxPxVec3Pod*)poriginPod, upPod, (PhysxPxVec3Pod*)ptargetPod); + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, ref byte name, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* upPod, ref PhysxPxVec3Pod targetPod) + { + fixed (byte* pname = &name) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, (byte*)pname, (PhysxPxVec3Pod*)poriginPod, upPod, (PhysxPxVec3Pod*)ptargetPod); + } + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, string name, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* upPod, ref PhysxPxVec3Pod targetPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, pStr0, (PhysxPxVec3Pod*)poriginPod, upPod, (PhysxPxVec3Pod*)ptargetPod); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, byte* name, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod upPod, ref PhysxPxVec3Pod targetPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, name, originPod, (PhysxPxVec3Pod*)pupPod, (PhysxPxVec3Pod*)ptargetPod); + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, ref byte name, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod upPod, ref PhysxPxVec3Pod targetPod) + { + fixed (byte* pname = &name) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, (byte*)pname, originPod, (PhysxPxVec3Pod*)pupPod, (PhysxPxVec3Pod*)ptargetPod); + } + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, string name, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod upPod, ref PhysxPxVec3Pod targetPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, pStr0, originPod, (PhysxPxVec3Pod*)pupPod, (PhysxPxVec3Pod*)ptargetPod); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, byte* name, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod upPod, ref PhysxPxVec3Pod targetPod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, name, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)pupPod, (PhysxPxVec3Pod*)ptargetPod); + } + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, ref byte name, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod upPod, ref PhysxPxVec3Pod targetPod) + { + fixed (byte* pname = &name) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, (byte*)pname, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)pupPod, (PhysxPxVec3Pod*)ptargetPod); + } + } + } + } + } + + public static void PxPvdSceneClientUpdateCameraMut( PhysxPxPvdSceneClientPod* selfPod, string name, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod upPod, ref PhysxPxVec3Pod targetPod) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + fixed (PhysxPxVec3Pod* ptargetPod = &targetPod) + { + PxPvdSceneClientUpdateCameraMutNative(selfPod, pStr0, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)pupPod, (PhysxPxVec3Pod*)ptargetPod); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPvdSceneClient_drawPoints_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdSceneClientDrawPointsMutNative(PhysxPxPvdSceneClientPod* selfPod, PhysxPxDebugPointPod* pointsPod, uint count); + + public static void PxPvdSceneClientDrawPointsMut( PhysxPxPvdSceneClientPod* selfPod, PhysxPxDebugPointPod* pointsPod, uint count) + { + PxPvdSceneClientDrawPointsMutNative(selfPod, pointsPod, count); + } + + public static void PxPvdSceneClientDrawPointsMut( PhysxPxPvdSceneClientPod* selfPod, ref PhysxPxDebugPointPod pointsPod, uint count) + { + fixed (PhysxPxDebugPointPod* ppointsPod = &pointsPod) + { + PxPvdSceneClientDrawPointsMutNative(selfPod, (PhysxPxDebugPointPod*)ppointsPod, count); + } + } + + [LibraryImport(LibName, EntryPoint = "PxPvdSceneClient_drawLines_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdSceneClientDrawLinesMutNative(PhysxPxPvdSceneClientPod* selfPod, PhysxPxDebugLinePod* linesPod, uint count); + + public static void PxPvdSceneClientDrawLinesMut( PhysxPxPvdSceneClientPod* selfPod, PhysxPxDebugLinePod* linesPod, uint count) + { + PxPvdSceneClientDrawLinesMutNative(selfPod, linesPod, count); + } + + public static void PxPvdSceneClientDrawLinesMut( PhysxPxPvdSceneClientPod* selfPod, ref PhysxPxDebugLinePod linesPod, uint count) + { + fixed (PhysxPxDebugLinePod* plinesPod = &linesPod) + { + PxPvdSceneClientDrawLinesMutNative(selfPod, (PhysxPxDebugLinePod*)plinesPod, count); + } + } + + [LibraryImport(LibName, EntryPoint = "PxPvdSceneClient_drawTriangles_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdSceneClientDrawTrianglesMutNative(PhysxPxPvdSceneClientPod* selfPod, PhysxPxDebugTrianglePod* trianglesPod, uint count); + + public static void PxPvdSceneClientDrawTrianglesMut( PhysxPxPvdSceneClientPod* selfPod, PhysxPxDebugTrianglePod* trianglesPod, uint count) + { + PxPvdSceneClientDrawTrianglesMutNative(selfPod, trianglesPod, count); + } + + public static void PxPvdSceneClientDrawTrianglesMut( PhysxPxPvdSceneClientPod* selfPod, ref PhysxPxDebugTrianglePod trianglesPod, uint count) + { + fixed (PhysxPxDebugTrianglePod* ptrianglesPod = &trianglesPod) + { + PxPvdSceneClientDrawTrianglesMutNative(selfPod, (PhysxPxDebugTrianglePod*)ptrianglesPod, count); + } + } + + [LibraryImport(LibName, EntryPoint = "PxPvdSceneClient_drawText_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdSceneClientDrawTextMutNative(PhysxPxPvdSceneClientPod* selfPod, PhysxPxDebugTextPod* textPod); + + public static void PxPvdSceneClientDrawTextMut( PhysxPxPvdSceneClientPod* selfPod, PhysxPxDebugTextPod* textPod) + { + PxPvdSceneClientDrawTextMutNative(selfPod, textPod); + } + + public static void PxPvdSceneClientDrawTextMut( PhysxPxPvdSceneClientPod* selfPod, ref PhysxPxDebugTextPod textPod) + { + fixed (PhysxPxDebugTextPod* ptextPod = &textPod) + { + PxPvdSceneClientDrawTextMutNative(selfPod, (PhysxPxDebugTextPod*)ptextPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxDominanceGroupPair_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDominanceGroupPairPod PxDominanceGroupPairNewNative(byte a, byte b); + + public static PhysxPxDominanceGroupPairPod PxDominanceGroupPairNew( byte a, byte b) + { + PhysxPxDominanceGroupPairPod ret = PxDominanceGroupPairNewNative(a, b); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadPhaseCallbackDeleteNative(PhysxPxBroadPhaseCallbackPod* selfPod); + + public static void PxBroadPhaseCallbackDelete( PhysxPxBroadPhaseCallbackPod* selfPod) + { + PxBroadPhaseCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseCallback_onObjectOutOfBounds_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadPhaseCallbackOnObjectOutOfBoundsMutNative(PhysxPxBroadPhaseCallbackPod* selfPod, PhysxPxShapePod* shapePod, PhysxPxActorPod* actorPod); + + public static void PxBroadPhaseCallbackOnObjectOutOfBoundsMut( PhysxPxBroadPhaseCallbackPod* selfPod, PhysxPxShapePod* shapePod, PhysxPxActorPod* actorPod) + { + PxBroadPhaseCallbackOnObjectOutOfBoundsMutNative(selfPod, shapePod, actorPod); + } + + public static void PxBroadPhaseCallbackOnObjectOutOfBoundsMut( PhysxPxBroadPhaseCallbackPod* selfPod, ref PhysxPxShapePod shapePod, PhysxPxActorPod* actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PxBroadPhaseCallbackOnObjectOutOfBoundsMutNative(selfPod, (PhysxPxShapePod*)pshapePod, actorPod); + } + } + + public static void PxBroadPhaseCallbackOnObjectOutOfBoundsMut( PhysxPxBroadPhaseCallbackPod* selfPod, PhysxPxShapePod* shapePod, ref PhysxPxActorPod actorPod) + { + fixed (PhysxPxActorPod* pactorPod = &actorPod) + { + PxBroadPhaseCallbackOnObjectOutOfBoundsMutNative(selfPod, shapePod, (PhysxPxActorPod*)pactorPod); + } + } + + public static void PxBroadPhaseCallbackOnObjectOutOfBoundsMut( PhysxPxBroadPhaseCallbackPod* selfPod, ref PhysxPxShapePod shapePod, ref PhysxPxActorPod actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxActorPod* pactorPod = &actorPod) + { + PxBroadPhaseCallbackOnObjectOutOfBoundsMutNative(selfPod, (PhysxPxShapePod*)pshapePod, (PhysxPxActorPod*)pactorPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseCallback_onObjectOutOfBounds_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBroadPhaseCallbackOnObjectOutOfBoundsMut1Native(PhysxPxBroadPhaseCallbackPod* selfPod, PhysxPxAggregatePod* aggregatePod); + + public static void PxBroadPhaseCallbackOnObjectOutOfBoundsMut1( PhysxPxBroadPhaseCallbackPod* selfPod, PhysxPxAggregatePod* aggregatePod) + { + PxBroadPhaseCallbackOnObjectOutOfBoundsMut1Native(selfPod, aggregatePod); + } + + public static void PxBroadPhaseCallbackOnObjectOutOfBoundsMut1( PhysxPxBroadPhaseCallbackPod* selfPod, ref PhysxPxAggregatePod aggregatePod) + { + fixed (PhysxPxAggregatePod* paggregatePod = &aggregatePod) + { + PxBroadPhaseCallbackOnObjectOutOfBoundsMut1Native(selfPod, (PhysxPxAggregatePod*)paggregatePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneReleaseMutNative(PhysxPxScenePod* selfPod); + + public static void PxSceneReleaseMut( PhysxPxScenePod* selfPod) + { + PxSceneReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetFlagMutNative(PhysxPxScenePod* selfPod, int flagPod, byte value); + + public static void PxSceneSetFlagMut( PhysxPxScenePod* selfPod, int flagPod, bool value) + { + PxSceneSetFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetFlagsNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetFlags( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setLimits_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetLimitsMutNative(PhysxPxScenePod* selfPod, PhysxPxSceneLimitsPod* limitsPod); + + public static void PxSceneSetLimitsMut( PhysxPxScenePod* selfPod, PhysxPxSceneLimitsPod* limitsPod) + { + PxSceneSetLimitsMutNative(selfPod, limitsPod); + } + + public static void PxSceneSetLimitsMut( PhysxPxScenePod* selfPod, ref PhysxPxSceneLimitsPod limitsPod) + { + fixed (PhysxPxSceneLimitsPod* plimitsPod = &limitsPod) + { + PxSceneSetLimitsMutNative(selfPod, (PhysxPxSceneLimitsPod*)plimitsPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getLimits")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSceneLimitsPod PxSceneGetLimitsNative(PhysxPxScenePod* selfPod); + + public static PhysxPxSceneLimitsPod PxSceneGetLimits( PhysxPxScenePod* selfPod) + { + PhysxPxSceneLimitsPod ret = PxSceneGetLimitsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getPhysics_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPhysicsPod* PxSceneGetPhysicsMutNative(PhysxPxScenePod* selfPod); + + public static PhysxPxPhysicsPod* PxSceneGetPhysicsMut( PhysxPxScenePod* selfPod) + { + PhysxPxPhysicsPod* ret = PxSceneGetPhysicsMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getTimestamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetTimestampNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetTimestamp( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetTimestampNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_addArticulation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneAddArticulationMutNative(PhysxPxScenePod* selfPod, PhysxPxArticulationReducedCoordinatePod* articulationPod); + + public static bool PxSceneAddArticulationMut( PhysxPxScenePod* selfPod, PhysxPxArticulationReducedCoordinatePod* articulationPod) + { + byte ret = PxSceneAddArticulationMutNative(selfPod, articulationPod); + return ret != 0; + } + + public static bool PxSceneAddArticulationMut( PhysxPxScenePod* selfPod, ref PhysxPxArticulationReducedCoordinatePod articulationPod) + { + fixed (PhysxPxArticulationReducedCoordinatePod* particulationPod = &articulationPod) + { + byte ret = PxSceneAddArticulationMutNative(selfPod, (PhysxPxArticulationReducedCoordinatePod*)particulationPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_removeArticulation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneRemoveArticulationMutNative(PhysxPxScenePod* selfPod, PhysxPxArticulationReducedCoordinatePod* articulationPod, byte wakeOnLostTouch); + + public static void PxSceneRemoveArticulationMut( PhysxPxScenePod* selfPod, PhysxPxArticulationReducedCoordinatePod* articulationPod, bool wakeOnLostTouch) + { + PxSceneRemoveArticulationMutNative(selfPod, articulationPod, wakeOnLostTouch ? (byte)1 : (byte)0); + } + + public static void PxSceneRemoveArticulationMut( PhysxPxScenePod* selfPod, ref PhysxPxArticulationReducedCoordinatePod articulationPod, bool wakeOnLostTouch) + { + fixed (PhysxPxArticulationReducedCoordinatePod* particulationPod = &articulationPod) + { + PxSceneRemoveArticulationMutNative(selfPod, (PhysxPxArticulationReducedCoordinatePod*)particulationPod, wakeOnLostTouch ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_addActor_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneAddActorMutNative(PhysxPxScenePod* selfPod, PhysxPxActorPod* actorPod, PhysxPxBVHPod* bvhPod); + + public static bool PxSceneAddActorMut( PhysxPxScenePod* selfPod, PhysxPxActorPod* actorPod, PhysxPxBVHPod* bvhPod) + { + byte ret = PxSceneAddActorMutNative(selfPod, actorPod, bvhPod); + return ret != 0; + } + + public static bool PxSceneAddActorMut( PhysxPxScenePod* selfPod, ref PhysxPxActorPod actorPod, PhysxPxBVHPod* bvhPod) + { + fixed (PhysxPxActorPod* pactorPod = &actorPod) + { + byte ret = PxSceneAddActorMutNative(selfPod, (PhysxPxActorPod*)pactorPod, bvhPod); + return ret != 0; + } + } + + public static bool PxSceneAddActorMut( PhysxPxScenePod* selfPod, PhysxPxActorPod* actorPod, ref PhysxPxBVHPod bvhPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + byte ret = PxSceneAddActorMutNative(selfPod, actorPod, (PhysxPxBVHPod*)pbvhPod); + return ret != 0; + } + } + + public static bool PxSceneAddActorMut( PhysxPxScenePod* selfPod, ref PhysxPxActorPod actorPod, ref PhysxPxBVHPod bvhPod) + { + fixed (PhysxPxActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxBVHPod* pbvhPod = &bvhPod) + { + byte ret = PxSceneAddActorMutNative(selfPod, (PhysxPxActorPod*)pactorPod, (PhysxPxBVHPod*)pbvhPod); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_addActors_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneAddActorsMutNative(PhysxPxScenePod* selfPod, PhysxPxActorPod** actorsPod, uint nbActors); + + public static bool PxSceneAddActorsMut( PhysxPxScenePod* selfPod, PhysxPxActorPod** actorsPod, uint nbActors) + { + byte ret = PxSceneAddActorsMutNative(selfPod, actorsPod, nbActors); + return ret != 0; + } + + public static bool PxSceneAddActorsMut( PhysxPxScenePod* selfPod, ref PhysxPxActorPod* actorsPod, uint nbActors) + { + fixed (PhysxPxActorPod** pactorsPod = &actorsPod) + { + byte ret = PxSceneAddActorsMutNative(selfPod, (PhysxPxActorPod**)pactorsPod, nbActors); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_addActors_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneAddActorsMut1Native(PhysxPxScenePod* selfPod, PhysxPxPruningStructurePod* pruningstructurePod); + + public static bool PxSceneAddActorsMut1( PhysxPxScenePod* selfPod, PhysxPxPruningStructurePod* pruningstructurePod) + { + byte ret = PxSceneAddActorsMut1Native(selfPod, pruningstructurePod); + return ret != 0; + } + + public static bool PxSceneAddActorsMut1( PhysxPxScenePod* selfPod, ref PhysxPxPruningStructurePod pruningstructurePod) + { + fixed (PhysxPxPruningStructurePod* ppruningstructurePod = &pruningstructurePod) + { + byte ret = PxSceneAddActorsMut1Native(selfPod, (PhysxPxPruningStructurePod*)ppruningstructurePod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_removeActor_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneRemoveActorMutNative(PhysxPxScenePod* selfPod, PhysxPxActorPod* actorPod, byte wakeOnLostTouch); + + public static void PxSceneRemoveActorMut( PhysxPxScenePod* selfPod, PhysxPxActorPod* actorPod, bool wakeOnLostTouch) + { + PxSceneRemoveActorMutNative(selfPod, actorPod, wakeOnLostTouch ? (byte)1 : (byte)0); + } + + public static void PxSceneRemoveActorMut( PhysxPxScenePod* selfPod, ref PhysxPxActorPod actorPod, bool wakeOnLostTouch) + { + fixed (PhysxPxActorPod* pactorPod = &actorPod) + { + PxSceneRemoveActorMutNative(selfPod, (PhysxPxActorPod*)pactorPod, wakeOnLostTouch ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_removeActors_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneRemoveActorsMutNative(PhysxPxScenePod* selfPod, PhysxPxActorPod** actorsPod, uint nbActors, byte wakeOnLostTouch); + + public static void PxSceneRemoveActorsMut( PhysxPxScenePod* selfPod, PhysxPxActorPod** actorsPod, uint nbActors, bool wakeOnLostTouch) + { + PxSceneRemoveActorsMutNative(selfPod, actorsPod, nbActors, wakeOnLostTouch ? (byte)1 : (byte)0); + } + + public static void PxSceneRemoveActorsMut( PhysxPxScenePod* selfPod, ref PhysxPxActorPod* actorsPod, uint nbActors, bool wakeOnLostTouch) + { + fixed (PhysxPxActorPod** pactorsPod = &actorsPod) + { + PxSceneRemoveActorsMutNative(selfPod, (PhysxPxActorPod**)pactorsPod, nbActors, wakeOnLostTouch ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_addAggregate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneAddAggregateMutNative(PhysxPxScenePod* selfPod, PhysxPxAggregatePod* aggregatePod); + + public static bool PxSceneAddAggregateMut( PhysxPxScenePod* selfPod, PhysxPxAggregatePod* aggregatePod) + { + byte ret = PxSceneAddAggregateMutNative(selfPod, aggregatePod); + return ret != 0; + } + + public static bool PxSceneAddAggregateMut( PhysxPxScenePod* selfPod, ref PhysxPxAggregatePod aggregatePod) + { + fixed (PhysxPxAggregatePod* paggregatePod = &aggregatePod) + { + byte ret = PxSceneAddAggregateMutNative(selfPod, (PhysxPxAggregatePod*)paggregatePod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_removeAggregate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneRemoveAggregateMutNative(PhysxPxScenePod* selfPod, PhysxPxAggregatePod* aggregatePod, byte wakeOnLostTouch); + + public static void PxSceneRemoveAggregateMut( PhysxPxScenePod* selfPod, PhysxPxAggregatePod* aggregatePod, bool wakeOnLostTouch) + { + PxSceneRemoveAggregateMutNative(selfPod, aggregatePod, wakeOnLostTouch ? (byte)1 : (byte)0); + } + + public static void PxSceneRemoveAggregateMut( PhysxPxScenePod* selfPod, ref PhysxPxAggregatePod aggregatePod, bool wakeOnLostTouch) + { + fixed (PhysxPxAggregatePod* paggregatePod = &aggregatePod) + { + PxSceneRemoveAggregateMutNative(selfPod, (PhysxPxAggregatePod*)paggregatePod, wakeOnLostTouch ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_addCollection_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneAddCollectionMutNative(PhysxPxScenePod* selfPod, PhysxPxCollectionPod* collectionPod); + + public static bool PxSceneAddCollectionMut( PhysxPxScenePod* selfPod, PhysxPxCollectionPod* collectionPod) + { + byte ret = PxSceneAddCollectionMutNative(selfPod, collectionPod); + return ret != 0; + } + + public static bool PxSceneAddCollectionMut( PhysxPxScenePod* selfPod, ref PhysxPxCollectionPod collectionPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + byte ret = PxSceneAddCollectionMutNative(selfPod, (PhysxPxCollectionPod*)pcollectionPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getNbActors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetNbActorsNative(PhysxPxScenePod* selfPod, ushort typesPod); + + public static uint PxSceneGetNbActors( PhysxPxScenePod* selfPod, ushort typesPod) + { + uint ret = PxSceneGetNbActorsNative(selfPod, typesPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getActors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetActorsNative(PhysxPxScenePod* selfPod, ushort typesPod, PhysxPxActorPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxSceneGetActors( PhysxPxScenePod* selfPod, ushort typesPod, PhysxPxActorPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxSceneGetActorsNative(selfPod, typesPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxSceneGetActors( PhysxPxScenePod* selfPod, ushort typesPod, ref PhysxPxActorPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxActorPod** puserbufferPod = &userbufferPod) + { + uint ret = PxSceneGetActorsNative(selfPod, typesPod, (PhysxPxActorPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getActiveActors_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxActorPod** PxSceneGetActiveActorsMutNative(PhysxPxScenePod* selfPod, uint* nbactorsoutPod); + + public static PhysxPxActorPod** PxSceneGetActiveActorsMut( PhysxPxScenePod* selfPod, uint* nbactorsoutPod) + { + PhysxPxActorPod** ret = PxSceneGetActiveActorsMutNative(selfPod, nbactorsoutPod); + return ret; + } + + public static PhysxPxActorPod** PxSceneGetActiveActorsMut( PhysxPxScenePod* selfPod, ref uint nbactorsoutPod) + { + fixed (uint* pnbactorsoutPod = &nbactorsoutPod) + { + PhysxPxActorPod** ret = PxSceneGetActiveActorsMutNative(selfPod, (uint*)pnbactorsoutPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getNbArticulations")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetNbArticulationsNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetNbArticulations( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetNbArticulationsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getArticulations")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetArticulationsNative(PhysxPxScenePod* selfPod, PhysxPxArticulationReducedCoordinatePod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxSceneGetArticulations( PhysxPxScenePod* selfPod, PhysxPxArticulationReducedCoordinatePod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxSceneGetArticulationsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxSceneGetArticulations( PhysxPxScenePod* selfPod, ref PhysxPxArticulationReducedCoordinatePod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxArticulationReducedCoordinatePod** puserbufferPod = &userbufferPod) + { + uint ret = PxSceneGetArticulationsNative(selfPod, (PhysxPxArticulationReducedCoordinatePod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getNbConstraints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetNbConstraintsNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetNbConstraints( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetNbConstraintsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getConstraints")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetConstraintsNative(PhysxPxScenePod* selfPod, PhysxPxConstraintPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxSceneGetConstraints( PhysxPxScenePod* selfPod, PhysxPxConstraintPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxSceneGetConstraintsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxSceneGetConstraints( PhysxPxScenePod* selfPod, ref PhysxPxConstraintPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxConstraintPod** puserbufferPod = &userbufferPod) + { + uint ret = PxSceneGetConstraintsNative(selfPod, (PhysxPxConstraintPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getNbAggregates")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetNbAggregatesNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetNbAggregates( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetNbAggregatesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getAggregates")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetAggregatesNative(PhysxPxScenePod* selfPod, PhysxPxAggregatePod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxSceneGetAggregates( PhysxPxScenePod* selfPod, PhysxPxAggregatePod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxSceneGetAggregatesNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxSceneGetAggregates( PhysxPxScenePod* selfPod, ref PhysxPxAggregatePod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxAggregatePod** puserbufferPod = &userbufferPod) + { + uint ret = PxSceneGetAggregatesNative(selfPod, (PhysxPxAggregatePod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setDominanceGroupPair_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetDominanceGroupPairMutNative(PhysxPxScenePod* selfPod, byte group1, byte group2, PhysxPxDominanceGroupPairPod* dominancePod); + + public static void PxSceneSetDominanceGroupPairMut( PhysxPxScenePod* selfPod, byte group1, byte group2, PhysxPxDominanceGroupPairPod* dominancePod) + { + PxSceneSetDominanceGroupPairMutNative(selfPod, group1, group2, dominancePod); + } + + public static void PxSceneSetDominanceGroupPairMut( PhysxPxScenePod* selfPod, byte group1, byte group2, ref PhysxPxDominanceGroupPairPod dominancePod) + { + fixed (PhysxPxDominanceGroupPairPod* pdominancePod = &dominancePod) + { + PxSceneSetDominanceGroupPairMutNative(selfPod, group1, group2, (PhysxPxDominanceGroupPairPod*)pdominancePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getDominanceGroupPair")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDominanceGroupPairPod PxSceneGetDominanceGroupPairNative(PhysxPxScenePod* selfPod, byte group1, byte group2); + + public static PhysxPxDominanceGroupPairPod PxSceneGetDominanceGroupPair( PhysxPxScenePod* selfPod, byte group1, byte group2) + { + PhysxPxDominanceGroupPairPod ret = PxSceneGetDominanceGroupPairNative(selfPod, group1, group2); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getCpuDispatcher")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCpuDispatcherPod* PxSceneGetCpuDispatcherNative(PhysxPxScenePod* selfPod); + + public static PhysxPxCpuDispatcherPod* PxSceneGetCpuDispatcher( PhysxPxScenePod* selfPod) + { + PhysxPxCpuDispatcherPod* ret = PxSceneGetCpuDispatcherNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_createClient_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneCreateClientMutNative(PhysxPxScenePod* selfPod); + + public static byte PxSceneCreateClientMut( PhysxPxScenePod* selfPod) + { + byte ret = PxSceneCreateClientMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setSimulationEventCallback_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetSimulationEventCallbackMutNative(PhysxPxScenePod* selfPod, PhysxPxSimulationEventCallbackPod* callbackPod); + + public static void PxSceneSetSimulationEventCallbackMut( PhysxPxScenePod* selfPod, PhysxPxSimulationEventCallbackPod* callbackPod) + { + PxSceneSetSimulationEventCallbackMutNative(selfPod, callbackPod); + } + + public static void PxSceneSetSimulationEventCallbackMut( PhysxPxScenePod* selfPod, ref PhysxPxSimulationEventCallbackPod callbackPod) + { + fixed (PhysxPxSimulationEventCallbackPod* pcallbackPod = &callbackPod) + { + PxSceneSetSimulationEventCallbackMutNative(selfPod, (PhysxPxSimulationEventCallbackPod*)pcallbackPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getSimulationEventCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSimulationEventCallbackPod* PxSceneGetSimulationEventCallbackNative(PhysxPxScenePod* selfPod); + + public static PhysxPxSimulationEventCallbackPod* PxSceneGetSimulationEventCallback( PhysxPxScenePod* selfPod) + { + PhysxPxSimulationEventCallbackPod* ret = PxSceneGetSimulationEventCallbackNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setContactModifyCallback_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetContactModifyCallbackMutNative(PhysxPxScenePod* selfPod, PhysxPxContactModifyCallbackPod* callbackPod); + + public static void PxSceneSetContactModifyCallbackMut( PhysxPxScenePod* selfPod, PhysxPxContactModifyCallbackPod* callbackPod) + { + PxSceneSetContactModifyCallbackMutNative(selfPod, callbackPod); + } + + public static void PxSceneSetContactModifyCallbackMut( PhysxPxScenePod* selfPod, ref PhysxPxContactModifyCallbackPod callbackPod) + { + fixed (PhysxPxContactModifyCallbackPod* pcallbackPod = &callbackPod) + { + PxSceneSetContactModifyCallbackMutNative(selfPod, (PhysxPxContactModifyCallbackPod*)pcallbackPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setCCDContactModifyCallback_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetCCDContactModifyCallbackMutNative(PhysxPxScenePod* selfPod, PhysxPxCCDContactModifyCallbackPod* callbackPod); + + public static void PxSceneSetCCDContactModifyCallbackMut( PhysxPxScenePod* selfPod, PhysxPxCCDContactModifyCallbackPod* callbackPod) + { + PxSceneSetCCDContactModifyCallbackMutNative(selfPod, callbackPod); + } + + public static void PxSceneSetCCDContactModifyCallbackMut( PhysxPxScenePod* selfPod, ref PhysxPxCCDContactModifyCallbackPod callbackPod) + { + fixed (PhysxPxCCDContactModifyCallbackPod* pcallbackPod = &callbackPod) + { + PxSceneSetCCDContactModifyCallbackMutNative(selfPod, (PhysxPxCCDContactModifyCallbackPod*)pcallbackPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getContactModifyCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxContactModifyCallbackPod* PxSceneGetContactModifyCallbackNative(PhysxPxScenePod* selfPod); + + public static PhysxPxContactModifyCallbackPod* PxSceneGetContactModifyCallback( PhysxPxScenePod* selfPod) + { + PhysxPxContactModifyCallbackPod* ret = PxSceneGetContactModifyCallbackNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getCCDContactModifyCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCCDContactModifyCallbackPod* PxSceneGetCCDContactModifyCallbackNative(PhysxPxScenePod* selfPod); + + public static PhysxPxCCDContactModifyCallbackPod* PxSceneGetCCDContactModifyCallback( PhysxPxScenePod* selfPod) + { + PhysxPxCCDContactModifyCallbackPod* ret = PxSceneGetCCDContactModifyCallbackNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setBroadPhaseCallback_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetBroadPhaseCallbackMutNative(PhysxPxScenePod* selfPod, PhysxPxBroadPhaseCallbackPod* callbackPod); + + public static void PxSceneSetBroadPhaseCallbackMut( PhysxPxScenePod* selfPod, PhysxPxBroadPhaseCallbackPod* callbackPod) + { + PxSceneSetBroadPhaseCallbackMutNative(selfPod, callbackPod); + } + + public static void PxSceneSetBroadPhaseCallbackMut( PhysxPxScenePod* selfPod, ref PhysxPxBroadPhaseCallbackPod callbackPod) + { + fixed (PhysxPxBroadPhaseCallbackPod* pcallbackPod = &callbackPod) + { + PxSceneSetBroadPhaseCallbackMutNative(selfPod, (PhysxPxBroadPhaseCallbackPod*)pcallbackPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getBroadPhaseCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBroadPhaseCallbackPod* PxSceneGetBroadPhaseCallbackNative(PhysxPxScenePod* selfPod); + + public static PhysxPxBroadPhaseCallbackPod* PxSceneGetBroadPhaseCallback( PhysxPxScenePod* selfPod) + { + PhysxPxBroadPhaseCallbackPod* ret = PxSceneGetBroadPhaseCallbackNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setFilterShaderData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetFilterShaderDataMutNative(PhysxPxScenePod* selfPod, void* data, uint dataSize); + + public static void PxSceneSetFilterShaderDataMut( PhysxPxScenePod* selfPod, void* data, uint dataSize) + { + PxSceneSetFilterShaderDataMutNative(selfPod, data, dataSize); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getFilterShaderData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxSceneGetFilterShaderDataNative(PhysxPxScenePod* selfPod); + + public static void* PxSceneGetFilterShaderData( PhysxPxScenePod* selfPod) + { + void* ret = PxSceneGetFilterShaderDataNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getFilterShaderDataSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetFilterShaderDataSizeNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetFilterShaderDataSize( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetFilterShaderDataSizeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_resetFiltering_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneResetFilteringMutNative(PhysxPxScenePod* selfPod, PhysxPxActorPod* actorPod); + + public static bool PxSceneResetFilteringMut( PhysxPxScenePod* selfPod, PhysxPxActorPod* actorPod) + { + byte ret = PxSceneResetFilteringMutNative(selfPod, actorPod); + return ret != 0; + } + + public static bool PxSceneResetFilteringMut( PhysxPxScenePod* selfPod, ref PhysxPxActorPod actorPod) + { + fixed (PhysxPxActorPod* pactorPod = &actorPod) + { + byte ret = PxSceneResetFilteringMutNative(selfPod, (PhysxPxActorPod*)pactorPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_resetFiltering_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneResetFilteringMut1Native(PhysxPxScenePod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod** shapesPod, uint shapeCount); + + public static bool PxSceneResetFilteringMut1( PhysxPxScenePod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod** shapesPod, uint shapeCount) + { + byte ret = PxSceneResetFilteringMut1Native(selfPod, actorPod, shapesPod, shapeCount); + return ret != 0; + } + + public static bool PxSceneResetFilteringMut1( PhysxPxScenePod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod** shapesPod, uint shapeCount) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + byte ret = PxSceneResetFilteringMut1Native(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapesPod, shapeCount); + return ret != 0; + } + } + + public static bool PxSceneResetFilteringMut1( PhysxPxScenePod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod* shapesPod, uint shapeCount) + { + fixed (PhysxPxShapePod** pshapesPod = &shapesPod) + { + byte ret = PxSceneResetFilteringMut1Native(selfPod, actorPod, (PhysxPxShapePod**)pshapesPod, shapeCount); + return ret != 0; + } + } + + public static bool PxSceneResetFilteringMut1( PhysxPxScenePod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod* shapesPod, uint shapeCount) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod** pshapesPod = &shapesPod) + { + byte ret = PxSceneResetFilteringMut1Native(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod**)pshapesPod, shapeCount); + return ret != 0; + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.009.cs b/Hexa.NET.PhysX/Generated/Functions.009.cs new file mode 100644 index 0000000..c769131 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.009.cs @@ -0,0 +1,5034 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + [LibraryImport(LibName, EntryPoint = "PxScene_getKinematicKinematicFilteringMode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneGetKinematicKinematicFilteringModeNative(PhysxPxScenePod* selfPod); + + public static int PxSceneGetKinematicKinematicFilteringMode( PhysxPxScenePod* selfPod) + { + int ret = PxSceneGetKinematicKinematicFilteringModeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getStaticKinematicFilteringMode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneGetStaticKinematicFilteringModeNative(PhysxPxScenePod* selfPod); + + public static int PxSceneGetStaticKinematicFilteringMode( PhysxPxScenePod* selfPod) + { + int ret = PxSceneGetStaticKinematicFilteringModeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_simulate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneSimulateMutNative(PhysxPxScenePod* selfPod, float elapsedTime, PhysxPxBaseTaskPod* completiontaskPod, void* scratchMemBlock, uint scratchMemBlockSize, byte controlSimulation); + + public static bool PxSceneSimulateMut( PhysxPxScenePod* selfPod, float elapsedTime, PhysxPxBaseTaskPod* completiontaskPod, void* scratchMemBlock, uint scratchMemBlockSize, bool controlSimulation) + { + byte ret = PxSceneSimulateMutNative(selfPod, elapsedTime, completiontaskPod, scratchMemBlock, scratchMemBlockSize, controlSimulation ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool PxSceneSimulateMut( PhysxPxScenePod* selfPod, float elapsedTime, ref PhysxPxBaseTaskPod completiontaskPod, void* scratchMemBlock, uint scratchMemBlockSize, bool controlSimulation) + { + fixed (PhysxPxBaseTaskPod* pcompletiontaskPod = &completiontaskPod) + { + byte ret = PxSceneSimulateMutNative(selfPod, elapsedTime, (PhysxPxBaseTaskPod*)pcompletiontaskPod, scratchMemBlock, scratchMemBlockSize, controlSimulation ? (byte)1 : (byte)0); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_advance_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneAdvanceMutNative(PhysxPxScenePod* selfPod, PhysxPxBaseTaskPod* completiontaskPod); + + public static bool PxSceneAdvanceMut( PhysxPxScenePod* selfPod, PhysxPxBaseTaskPod* completiontaskPod) + { + byte ret = PxSceneAdvanceMutNative(selfPod, completiontaskPod); + return ret != 0; + } + + public static bool PxSceneAdvanceMut( PhysxPxScenePod* selfPod, ref PhysxPxBaseTaskPod completiontaskPod) + { + fixed (PhysxPxBaseTaskPod* pcompletiontaskPod = &completiontaskPod) + { + byte ret = PxSceneAdvanceMutNative(selfPod, (PhysxPxBaseTaskPod*)pcompletiontaskPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_collide_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneCollideMutNative(PhysxPxScenePod* selfPod, float elapsedTime, PhysxPxBaseTaskPod* completiontaskPod, void* scratchMemBlock, uint scratchMemBlockSize, byte controlSimulation); + + public static bool PxSceneCollideMut( PhysxPxScenePod* selfPod, float elapsedTime, PhysxPxBaseTaskPod* completiontaskPod, void* scratchMemBlock, uint scratchMemBlockSize, bool controlSimulation) + { + byte ret = PxSceneCollideMutNative(selfPod, elapsedTime, completiontaskPod, scratchMemBlock, scratchMemBlockSize, controlSimulation ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool PxSceneCollideMut( PhysxPxScenePod* selfPod, float elapsedTime, ref PhysxPxBaseTaskPod completiontaskPod, void* scratchMemBlock, uint scratchMemBlockSize, bool controlSimulation) + { + fixed (PhysxPxBaseTaskPod* pcompletiontaskPod = &completiontaskPod) + { + byte ret = PxSceneCollideMutNative(selfPod, elapsedTime, (PhysxPxBaseTaskPod*)pcompletiontaskPod, scratchMemBlock, scratchMemBlockSize, controlSimulation ? (byte)1 : (byte)0); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_checkResults_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneCheckResultsMutNative(PhysxPxScenePod* selfPod, byte block); + + public static bool PxSceneCheckResultsMut( PhysxPxScenePod* selfPod, bool block) + { + byte ret = PxSceneCheckResultsMutNative(selfPod, block ? (byte)1 : (byte)0); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_fetchCollision_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneFetchCollisionMutNative(PhysxPxScenePod* selfPod, byte block); + + public static bool PxSceneFetchCollisionMut( PhysxPxScenePod* selfPod, bool block) + { + byte ret = PxSceneFetchCollisionMutNative(selfPod, block ? (byte)1 : (byte)0); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_fetchResults_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneFetchResultsMutNative(PhysxPxScenePod* selfPod, byte block, uint* errorState); + + public static bool PxSceneFetchResultsMut( PhysxPxScenePod* selfPod, bool block, uint* errorState) + { + byte ret = PxSceneFetchResultsMutNative(selfPod, block ? (byte)1 : (byte)0, errorState); + return ret != 0; + } + + public static bool PxSceneFetchResultsMut( PhysxPxScenePod* selfPod, bool block, ref uint errorState) + { + fixed (uint* perrorState = &errorState) + { + byte ret = PxSceneFetchResultsMutNative(selfPod, block ? (byte)1 : (byte)0, (uint*)perrorState); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_fetchResultsStart_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneFetchResultsStartMutNative(PhysxPxScenePod* selfPod, PhysxPxContactPairHeaderPod** contactpairsPod, uint* nbcontactpairsPod, byte block); + + public static bool PxSceneFetchResultsStartMut( PhysxPxScenePod* selfPod, PhysxPxContactPairHeaderPod** contactpairsPod, uint* nbcontactpairsPod, bool block) + { + byte ret = PxSceneFetchResultsStartMutNative(selfPod, contactpairsPod, nbcontactpairsPod, block ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool PxSceneFetchResultsStartMut( PhysxPxScenePod* selfPod, ref PhysxPxContactPairHeaderPod* contactpairsPod, uint* nbcontactpairsPod, bool block) + { + fixed (PhysxPxContactPairHeaderPod** pcontactpairsPod = &contactpairsPod) + { + byte ret = PxSceneFetchResultsStartMutNative(selfPod, (PhysxPxContactPairHeaderPod**)pcontactpairsPod, nbcontactpairsPod, block ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PxSceneFetchResultsStartMut( PhysxPxScenePod* selfPod, PhysxPxContactPairHeaderPod** contactpairsPod, ref uint nbcontactpairsPod, bool block) + { + fixed (uint* pnbcontactpairsPod = &nbcontactpairsPod) + { + byte ret = PxSceneFetchResultsStartMutNative(selfPod, contactpairsPod, (uint*)pnbcontactpairsPod, block ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PxSceneFetchResultsStartMut( PhysxPxScenePod* selfPod, ref PhysxPxContactPairHeaderPod* contactpairsPod, ref uint nbcontactpairsPod, bool block) + { + fixed (PhysxPxContactPairHeaderPod** pcontactpairsPod = &contactpairsPod) + { + fixed (uint* pnbcontactpairsPod = &nbcontactpairsPod) + { + byte ret = PxSceneFetchResultsStartMutNative(selfPod, (PhysxPxContactPairHeaderPod**)pcontactpairsPod, (uint*)pnbcontactpairsPod, block ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_processCallbacks_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneProcessCallbacksMutNative(PhysxPxScenePod* selfPod, PhysxPxBaseTaskPod* continuationPod); + + public static void PxSceneProcessCallbacksMut( PhysxPxScenePod* selfPod, PhysxPxBaseTaskPod* continuationPod) + { + PxSceneProcessCallbacksMutNative(selfPod, continuationPod); + } + + public static void PxSceneProcessCallbacksMut( PhysxPxScenePod* selfPod, ref PhysxPxBaseTaskPod continuationPod) + { + fixed (PhysxPxBaseTaskPod* pcontinuationPod = &continuationPod) + { + PxSceneProcessCallbacksMutNative(selfPod, (PhysxPxBaseTaskPod*)pcontinuationPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_fetchResultsFinish_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneFetchResultsFinishMutNative(PhysxPxScenePod* selfPod, uint* errorState); + + public static void PxSceneFetchResultsFinishMut( PhysxPxScenePod* selfPod, uint* errorState) + { + PxSceneFetchResultsFinishMutNative(selfPod, errorState); + } + + public static void PxSceneFetchResultsFinishMut( PhysxPxScenePod* selfPod, ref uint errorState) + { + fixed (uint* perrorState = &errorState) + { + PxSceneFetchResultsFinishMutNative(selfPod, (uint*)perrorState); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_fetchResultsParticleSystem_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneFetchResultsParticleSystemMutNative(PhysxPxScenePod* selfPod); + + public static void PxSceneFetchResultsParticleSystemMut( PhysxPxScenePod* selfPod) + { + PxSceneFetchResultsParticleSystemMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_flushSimulation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneFlushSimulationMutNative(PhysxPxScenePod* selfPod, byte sendPendingReports); + + public static void PxSceneFlushSimulationMut( PhysxPxScenePod* selfPod, bool sendPendingReports) + { + PxSceneFlushSimulationMutNative(selfPod, sendPendingReports ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setGravity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetGravityMutNative(PhysxPxScenePod* selfPod, PhysxPxVec3Pod* vecPod); + + public static void PxSceneSetGravityMut( PhysxPxScenePod* selfPod, PhysxPxVec3Pod* vecPod) + { + PxSceneSetGravityMutNative(selfPod, vecPod); + } + + public static void PxSceneSetGravityMut( PhysxPxScenePod* selfPod, ref PhysxPxVec3Pod vecPod) + { + fixed (PhysxPxVec3Pod* pvecPod = &vecPod) + { + PxSceneSetGravityMutNative(selfPod, (PhysxPxVec3Pod*)pvecPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getGravity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxSceneGetGravityNative(PhysxPxScenePod* selfPod); + + public static PhysxPxVec3Pod PxSceneGetGravity( PhysxPxScenePod* selfPod) + { + PhysxPxVec3Pod ret = PxSceneGetGravityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setBounceThresholdVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetBounceThresholdVelocityMutNative(PhysxPxScenePod* selfPod, float t); + + public static void PxSceneSetBounceThresholdVelocityMut( PhysxPxScenePod* selfPod, float t) + { + PxSceneSetBounceThresholdVelocityMutNative(selfPod, t); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getBounceThresholdVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxSceneGetBounceThresholdVelocityNative(PhysxPxScenePod* selfPod); + + public static float PxSceneGetBounceThresholdVelocity( PhysxPxScenePod* selfPod) + { + float ret = PxSceneGetBounceThresholdVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setCCDMaxPasses_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetCCDMaxPassesMutNative(PhysxPxScenePod* selfPod, uint ccdMaxPasses); + + public static void PxSceneSetCCDMaxPassesMut( PhysxPxScenePod* selfPod, uint ccdMaxPasses) + { + PxSceneSetCCDMaxPassesMutNative(selfPod, ccdMaxPasses); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getCCDMaxPasses")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetCCDMaxPassesNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetCCDMaxPasses( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetCCDMaxPassesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setCCDMaxSeparation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetCCDMaxSeparationMutNative(PhysxPxScenePod* selfPod, float t); + + public static void PxSceneSetCCDMaxSeparationMut( PhysxPxScenePod* selfPod, float t) + { + PxSceneSetCCDMaxSeparationMutNative(selfPod, t); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getCCDMaxSeparation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxSceneGetCCDMaxSeparationNative(PhysxPxScenePod* selfPod); + + public static float PxSceneGetCCDMaxSeparation( PhysxPxScenePod* selfPod) + { + float ret = PxSceneGetCCDMaxSeparationNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setCCDThreshold_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetCCDThresholdMutNative(PhysxPxScenePod* selfPod, float t); + + public static void PxSceneSetCCDThresholdMut( PhysxPxScenePod* selfPod, float t) + { + PxSceneSetCCDThresholdMutNative(selfPod, t); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getCCDThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxSceneGetCCDThresholdNative(PhysxPxScenePod* selfPod); + + public static float PxSceneGetCCDThreshold( PhysxPxScenePod* selfPod) + { + float ret = PxSceneGetCCDThresholdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setMaxBiasCoefficient_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetMaxBiasCoefficientMutNative(PhysxPxScenePod* selfPod, float t); + + public static void PxSceneSetMaxBiasCoefficientMut( PhysxPxScenePod* selfPod, float t) + { + PxSceneSetMaxBiasCoefficientMutNative(selfPod, t); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getMaxBiasCoefficient")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxSceneGetMaxBiasCoefficientNative(PhysxPxScenePod* selfPod); + + public static float PxSceneGetMaxBiasCoefficient( PhysxPxScenePod* selfPod) + { + float ret = PxSceneGetMaxBiasCoefficientNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setFrictionOffsetThreshold_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetFrictionOffsetThresholdMutNative(PhysxPxScenePod* selfPod, float t); + + public static void PxSceneSetFrictionOffsetThresholdMut( PhysxPxScenePod* selfPod, float t) + { + PxSceneSetFrictionOffsetThresholdMutNative(selfPod, t); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getFrictionOffsetThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxSceneGetFrictionOffsetThresholdNative(PhysxPxScenePod* selfPod); + + public static float PxSceneGetFrictionOffsetThreshold( PhysxPxScenePod* selfPod) + { + float ret = PxSceneGetFrictionOffsetThresholdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setFrictionCorrelationDistance_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetFrictionCorrelationDistanceMutNative(PhysxPxScenePod* selfPod, float t); + + public static void PxSceneSetFrictionCorrelationDistanceMut( PhysxPxScenePod* selfPod, float t) + { + PxSceneSetFrictionCorrelationDistanceMutNative(selfPod, t); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getFrictionCorrelationDistance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxSceneGetFrictionCorrelationDistanceNative(PhysxPxScenePod* selfPod); + + public static float PxSceneGetFrictionCorrelationDistance( PhysxPxScenePod* selfPod) + { + float ret = PxSceneGetFrictionCorrelationDistanceNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getFrictionType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneGetFrictionTypeNative(PhysxPxScenePod* selfPod); + + public static int PxSceneGetFrictionType( PhysxPxScenePod* selfPod) + { + int ret = PxSceneGetFrictionTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getSolverType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneGetSolverTypeNative(PhysxPxScenePod* selfPod); + + public static int PxSceneGetSolverType( PhysxPxScenePod* selfPod) + { + int ret = PxSceneGetSolverTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setVisualizationParameter_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneSetVisualizationParameterMutNative(PhysxPxScenePod* selfPod, int paramPod, float value); + + public static bool PxSceneSetVisualizationParameterMut( PhysxPxScenePod* selfPod, int paramPod, float value) + { + byte ret = PxSceneSetVisualizationParameterMutNative(selfPod, paramPod, value); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getVisualizationParameter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxSceneGetVisualizationParameterNative(PhysxPxScenePod* selfPod, int paramenumPod); + + public static float PxSceneGetVisualizationParameter( PhysxPxScenePod* selfPod, int paramenumPod) + { + float ret = PxSceneGetVisualizationParameterNative(selfPod, paramenumPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setVisualizationCullingBox_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetVisualizationCullingBoxMutNative(PhysxPxScenePod* selfPod, PhysxPxBounds3Pod* boxPod); + + public static void PxSceneSetVisualizationCullingBoxMut( PhysxPxScenePod* selfPod, PhysxPxBounds3Pod* boxPod) + { + PxSceneSetVisualizationCullingBoxMutNative(selfPod, boxPod); + } + + public static void PxSceneSetVisualizationCullingBoxMut( PhysxPxScenePod* selfPod, ref PhysxPxBounds3Pod boxPod) + { + fixed (PhysxPxBounds3Pod* pboxPod = &boxPod) + { + PxSceneSetVisualizationCullingBoxMutNative(selfPod, (PhysxPxBounds3Pod*)pboxPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getVisualizationCullingBox")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxSceneGetVisualizationCullingBoxNative(PhysxPxScenePod* selfPod); + + public static PhysxPxBounds3Pod PxSceneGetVisualizationCullingBox( PhysxPxScenePod* selfPod) + { + PhysxPxBounds3Pod ret = PxSceneGetVisualizationCullingBoxNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getRenderBuffer_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRenderBufferPod* PxSceneGetRenderBufferMutNative(PhysxPxScenePod* selfPod); + + public static PhysxPxRenderBufferPod* PxSceneGetRenderBufferMut( PhysxPxScenePod* selfPod) + { + PhysxPxRenderBufferPod* ret = PxSceneGetRenderBufferMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getSimulationStatistics")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneGetSimulationStatisticsNative(PhysxPxScenePod* selfPod, PhysxPxSimulationStatisticsPod* statsPod); + + public static void PxSceneGetSimulationStatistics( PhysxPxScenePod* selfPod, PhysxPxSimulationStatisticsPod* statsPod) + { + PxSceneGetSimulationStatisticsNative(selfPod, statsPod); + } + + public static void PxSceneGetSimulationStatistics( PhysxPxScenePod* selfPod, ref PhysxPxSimulationStatisticsPod statsPod) + { + fixed (PhysxPxSimulationStatisticsPod* pstatsPod = &statsPod) + { + PxSceneGetSimulationStatisticsNative(selfPod, (PhysxPxSimulationStatisticsPod*)pstatsPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getBroadPhaseType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneGetBroadPhaseTypeNative(PhysxPxScenePod* selfPod); + + public static int PxSceneGetBroadPhaseType( PhysxPxScenePod* selfPod) + { + int ret = PxSceneGetBroadPhaseTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getBroadPhaseCaps")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneGetBroadPhaseCapsNative(PhysxPxScenePod* selfPod, PhysxPxBroadPhaseCapsPod* capsPod); + + public static bool PxSceneGetBroadPhaseCaps( PhysxPxScenePod* selfPod, PhysxPxBroadPhaseCapsPod* capsPod) + { + byte ret = PxSceneGetBroadPhaseCapsNative(selfPod, capsPod); + return ret != 0; + } + + public static bool PxSceneGetBroadPhaseCaps( PhysxPxScenePod* selfPod, ref PhysxPxBroadPhaseCapsPod capsPod) + { + fixed (PhysxPxBroadPhaseCapsPod* pcapsPod = &capsPod) + { + byte ret = PxSceneGetBroadPhaseCapsNative(selfPod, (PhysxPxBroadPhaseCapsPod*)pcapsPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getNbBroadPhaseRegions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetNbBroadPhaseRegionsNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetNbBroadPhaseRegions( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetNbBroadPhaseRegionsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getBroadPhaseRegions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetBroadPhaseRegionsNative(PhysxPxScenePod* selfPod, PhysxPxBroadPhaseRegionInfoPod* userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxSceneGetBroadPhaseRegions( PhysxPxScenePod* selfPod, PhysxPxBroadPhaseRegionInfoPod* userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxSceneGetBroadPhaseRegionsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxSceneGetBroadPhaseRegions( PhysxPxScenePod* selfPod, ref PhysxPxBroadPhaseRegionInfoPod userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxBroadPhaseRegionInfoPod* puserbufferPod = &userbufferPod) + { + uint ret = PxSceneGetBroadPhaseRegionsNative(selfPod, (PhysxPxBroadPhaseRegionInfoPod*)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_addBroadPhaseRegion_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneAddBroadPhaseRegionMutNative(PhysxPxScenePod* selfPod, PhysxPxBroadPhaseRegionPod* regionPod, byte populateRegion); + + public static uint PxSceneAddBroadPhaseRegionMut( PhysxPxScenePod* selfPod, PhysxPxBroadPhaseRegionPod* regionPod, bool populateRegion) + { + uint ret = PxSceneAddBroadPhaseRegionMutNative(selfPod, regionPod, populateRegion ? (byte)1 : (byte)0); + return ret; + } + + public static uint PxSceneAddBroadPhaseRegionMut( PhysxPxScenePod* selfPod, ref PhysxPxBroadPhaseRegionPod regionPod, bool populateRegion) + { + fixed (PhysxPxBroadPhaseRegionPod* pregionPod = ®ionPod) + { + uint ret = PxSceneAddBroadPhaseRegionMutNative(selfPod, (PhysxPxBroadPhaseRegionPod*)pregionPod, populateRegion ? (byte)1 : (byte)0); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_removeBroadPhaseRegion_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneRemoveBroadPhaseRegionMutNative(PhysxPxScenePod* selfPod, uint handle); + + public static bool PxSceneRemoveBroadPhaseRegionMut( PhysxPxScenePod* selfPod, uint handle) + { + byte ret = PxSceneRemoveBroadPhaseRegionMutNative(selfPod, handle); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getTaskManager")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTaskManagerPod* PxSceneGetTaskManagerNative(PhysxPxScenePod* selfPod); + + public static PhysxPxTaskManagerPod* PxSceneGetTaskManager( PhysxPxScenePod* selfPod) + { + PhysxPxTaskManagerPod* ret = PxSceneGetTaskManagerNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_lockRead_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneLockReadMutNative(PhysxPxScenePod* selfPod, byte* file, uint line); + + public static void PxSceneLockReadMut( PhysxPxScenePod* selfPod, byte* file, uint line) + { + PxSceneLockReadMutNative(selfPod, file, line); + } + + public static void PxSceneLockReadMut( PhysxPxScenePod* selfPod, ref byte file, uint line) + { + fixed (byte* pfile = &file) + { + PxSceneLockReadMutNative(selfPod, (byte*)pfile, line); + } + } + + public static void PxSceneLockReadMut( PhysxPxScenePod* selfPod, string file, uint line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxSceneLockReadMutNative(selfPod, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_unlockRead_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneUnlockReadMutNative(PhysxPxScenePod* selfPod); + + public static void PxSceneUnlockReadMut( PhysxPxScenePod* selfPod) + { + PxSceneUnlockReadMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_lockWrite_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneLockWriteMutNative(PhysxPxScenePod* selfPod, byte* file, uint line); + + public static void PxSceneLockWriteMut( PhysxPxScenePod* selfPod, byte* file, uint line) + { + PxSceneLockWriteMutNative(selfPod, file, line); + } + + public static void PxSceneLockWriteMut( PhysxPxScenePod* selfPod, ref byte file, uint line) + { + fixed (byte* pfile = &file) + { + PxSceneLockWriteMutNative(selfPod, (byte*)pfile, line); + } + } + + public static void PxSceneLockWriteMut( PhysxPxScenePod* selfPod, string file, uint line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxSceneLockWriteMutNative(selfPod, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_unlockWrite_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneUnlockWriteMutNative(PhysxPxScenePod* selfPod); + + public static void PxSceneUnlockWriteMut( PhysxPxScenePod* selfPod) + { + PxSceneUnlockWriteMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setNbContactDataBlocks_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetNbContactDataBlocksMutNative(PhysxPxScenePod* selfPod, uint numBlocks); + + public static void PxSceneSetNbContactDataBlocksMut( PhysxPxScenePod* selfPod, uint numBlocks) + { + PxSceneSetNbContactDataBlocksMutNative(selfPod, numBlocks); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getNbContactDataBlocksUsed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetNbContactDataBlocksUsedNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetNbContactDataBlocksUsed( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetNbContactDataBlocksUsedNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getMaxNbContactDataBlocksUsed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetMaxNbContactDataBlocksUsedNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetMaxNbContactDataBlocksUsed( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetMaxNbContactDataBlocksUsedNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getContactReportStreamBufferSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetContactReportStreamBufferSizeNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetContactReportStreamBufferSize( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetContactReportStreamBufferSizeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setSolverBatchSize_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetSolverBatchSizeMutNative(PhysxPxScenePod* selfPod, uint solverBatchSize); + + public static void PxSceneSetSolverBatchSizeMut( PhysxPxScenePod* selfPod, uint solverBatchSize) + { + PxSceneSetSolverBatchSizeMutNative(selfPod, solverBatchSize); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getSolverBatchSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetSolverBatchSizeNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetSolverBatchSize( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetSolverBatchSizeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_setSolverArticulationBatchSize_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneSetSolverArticulationBatchSizeMutNative(PhysxPxScenePod* selfPod, uint solverBatchSize); + + public static void PxSceneSetSolverArticulationBatchSizeMut( PhysxPxScenePod* selfPod, uint solverBatchSize) + { + PxSceneSetSolverArticulationBatchSizeMutNative(selfPod, solverBatchSize); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getSolverArticulationBatchSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxSceneGetSolverArticulationBatchSizeNative(PhysxPxScenePod* selfPod); + + public static uint PxSceneGetSolverArticulationBatchSize( PhysxPxScenePod* selfPod) + { + uint ret = PxSceneGetSolverArticulationBatchSizeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getWakeCounterResetValue")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxSceneGetWakeCounterResetValueNative(PhysxPxScenePod* selfPod); + + public static float PxSceneGetWakeCounterResetValue( PhysxPxScenePod* selfPod) + { + float ret = PxSceneGetWakeCounterResetValueNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_shiftOrigin_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneShiftOriginMutNative(PhysxPxScenePod* selfPod, PhysxPxVec3Pod* shiftPod); + + public static void PxSceneShiftOriginMut( PhysxPxScenePod* selfPod, PhysxPxVec3Pod* shiftPod) + { + PxSceneShiftOriginMutNative(selfPod, shiftPod); + } + + public static void PxSceneShiftOriginMut( PhysxPxScenePod* selfPod, ref PhysxPxVec3Pod shiftPod) + { + fixed (PhysxPxVec3Pod* pshiftPod = &shiftPod) + { + PxSceneShiftOriginMutNative(selfPod, (PhysxPxVec3Pod*)pshiftPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getScenePvdClient_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPvdSceneClientPod* PxSceneGetScenePvdClientMutNative(PhysxPxScenePod* selfPod); + + public static PhysxPxPvdSceneClientPod* PxSceneGetScenePvdClientMut( PhysxPxScenePod* selfPod) + { + PhysxPxPvdSceneClientPod* ret = PxSceneGetScenePvdClientMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_copyArticulationData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneCopyArticulationDataMutNative(PhysxPxScenePod* selfPod, void* data, void* index, int datatypePod, uint nbCopyArticulations, void* copyEvent); + + public static void PxSceneCopyArticulationDataMut( PhysxPxScenePod* selfPod, void* data, void* index, int datatypePod, uint nbCopyArticulations, void* copyEvent) + { + PxSceneCopyArticulationDataMutNative(selfPod, data, index, datatypePod, nbCopyArticulations, copyEvent); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_applyArticulationData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneApplyArticulationDataMutNative(PhysxPxScenePod* selfPod, void* data, void* index, int datatypePod, uint nbUpdatedArticulations, void* waitEvent, void* signalEvent); + + public static void PxSceneApplyArticulationDataMut( PhysxPxScenePod* selfPod, void* data, void* index, int datatypePod, uint nbUpdatedArticulations, void* waitEvent, void* signalEvent) + { + PxSceneApplyArticulationDataMutNative(selfPod, data, index, datatypePod, nbUpdatedArticulations, waitEvent, signalEvent); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_copySoftBodyData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneCopySoftBodyDataMutNative(PhysxPxScenePod* selfPod, void** data, void* dataSizes, void* softBodyIndices, int flagPod, uint nbCopySoftBodies, uint maxSize, void* copyEvent); + + public static void PxSceneCopySoftBodyDataMut( PhysxPxScenePod* selfPod, void** data, void* dataSizes, void* softBodyIndices, int flagPod, uint nbCopySoftBodies, uint maxSize, void* copyEvent) + { + PxSceneCopySoftBodyDataMutNative(selfPod, data, dataSizes, softBodyIndices, flagPod, nbCopySoftBodies, maxSize, copyEvent); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_applySoftBodyData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneApplySoftBodyDataMutNative(PhysxPxScenePod* selfPod, void** data, void* dataSizes, void* softBodyIndices, int flagPod, uint nbUpdatedSoftBodies, uint maxSize, void* applyEvent); + + public static void PxSceneApplySoftBodyDataMut( PhysxPxScenePod* selfPod, void** data, void* dataSizes, void* softBodyIndices, int flagPod, uint nbUpdatedSoftBodies, uint maxSize, void* applyEvent) + { + PxSceneApplySoftBodyDataMutNative(selfPod, data, dataSizes, softBodyIndices, flagPod, nbUpdatedSoftBodies, maxSize, applyEvent); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_copyContactData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneCopyContactDataMutNative(PhysxPxScenePod* selfPod, void* data, uint maxContactPairs, void* numContactPairs, void* copyEvent); + + public static void PxSceneCopyContactDataMut( PhysxPxScenePod* selfPod, void* data, uint maxContactPairs, void* numContactPairs, void* copyEvent) + { + PxSceneCopyContactDataMutNative(selfPod, data, maxContactPairs, numContactPairs, copyEvent); + } + + [LibraryImport(LibName, EntryPoint = "PxScene_copyBodyData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneCopyBodyDataMutNative(PhysxPxScenePod* selfPod, PhysxPxGpuBodyDataPod* dataPod, PhysxPxGpuActorPairPod* indexPod, uint nbCopyActors, void* copyEvent); + + public static void PxSceneCopyBodyDataMut( PhysxPxScenePod* selfPod, PhysxPxGpuBodyDataPod* dataPod, PhysxPxGpuActorPairPod* indexPod, uint nbCopyActors, void* copyEvent) + { + PxSceneCopyBodyDataMutNative(selfPod, dataPod, indexPod, nbCopyActors, copyEvent); + } + + public static void PxSceneCopyBodyDataMut( PhysxPxScenePod* selfPod, ref PhysxPxGpuBodyDataPod dataPod, PhysxPxGpuActorPairPod* indexPod, uint nbCopyActors, void* copyEvent) + { + fixed (PhysxPxGpuBodyDataPod* pdataPod = &dataPod) + { + PxSceneCopyBodyDataMutNative(selfPod, (PhysxPxGpuBodyDataPod*)pdataPod, indexPod, nbCopyActors, copyEvent); + } + } + + public static void PxSceneCopyBodyDataMut( PhysxPxScenePod* selfPod, PhysxPxGpuBodyDataPod* dataPod, ref PhysxPxGpuActorPairPod indexPod, uint nbCopyActors, void* copyEvent) + { + fixed (PhysxPxGpuActorPairPod* pindexPod = &indexPod) + { + PxSceneCopyBodyDataMutNative(selfPod, dataPod, (PhysxPxGpuActorPairPod*)pindexPod, nbCopyActors, copyEvent); + } + } + + public static void PxSceneCopyBodyDataMut( PhysxPxScenePod* selfPod, ref PhysxPxGpuBodyDataPod dataPod, ref PhysxPxGpuActorPairPod indexPod, uint nbCopyActors, void* copyEvent) + { + fixed (PhysxPxGpuBodyDataPod* pdataPod = &dataPod) + { + fixed (PhysxPxGpuActorPairPod* pindexPod = &indexPod) + { + PxSceneCopyBodyDataMutNative(selfPod, (PhysxPxGpuBodyDataPod*)pdataPod, (PhysxPxGpuActorPairPod*)pindexPod, nbCopyActors, copyEvent); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_applyActorData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneApplyActorDataMutNative(PhysxPxScenePod* selfPod, void* data, PhysxPxGpuActorPairPod* indexPod, int flagPod, uint nbUpdatedActors, void* waitEvent, void* signalEvent); + + public static void PxSceneApplyActorDataMut( PhysxPxScenePod* selfPod, void* data, PhysxPxGpuActorPairPod* indexPod, int flagPod, uint nbUpdatedActors, void* waitEvent, void* signalEvent) + { + PxSceneApplyActorDataMutNative(selfPod, data, indexPod, flagPod, nbUpdatedActors, waitEvent, signalEvent); + } + + public static void PxSceneApplyActorDataMut( PhysxPxScenePod* selfPod, void* data, ref PhysxPxGpuActorPairPod indexPod, int flagPod, uint nbUpdatedActors, void* waitEvent, void* signalEvent) + { + fixed (PhysxPxGpuActorPairPod* pindexPod = &indexPod) + { + PxSceneApplyActorDataMutNative(selfPod, data, (PhysxPxGpuActorPairPod*)pindexPod, flagPod, nbUpdatedActors, waitEvent, signalEvent); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_computeDenseJacobians_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneComputeDenseJacobiansMutNative(PhysxPxScenePod* selfPod, PhysxPxIndexDataPairPod* indicesPod, uint nbIndices, void* computeEvent); + + public static void PxSceneComputeDenseJacobiansMut( PhysxPxScenePod* selfPod, PhysxPxIndexDataPairPod* indicesPod, uint nbIndices, void* computeEvent) + { + PxSceneComputeDenseJacobiansMutNative(selfPod, indicesPod, nbIndices, computeEvent); + } + + public static void PxSceneComputeDenseJacobiansMut( PhysxPxScenePod* selfPod, ref PhysxPxIndexDataPairPod indicesPod, uint nbIndices, void* computeEvent) + { + fixed (PhysxPxIndexDataPairPod* pindicesPod = &indicesPod) + { + PxSceneComputeDenseJacobiansMutNative(selfPod, (PhysxPxIndexDataPairPod*)pindicesPod, nbIndices, computeEvent); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_computeGeneralizedMassMatrices_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneComputeGeneralizedMassMatricesMutNative(PhysxPxScenePod* selfPod, PhysxPxIndexDataPairPod* indicesPod, uint nbIndices, void* computeEvent); + + public static void PxSceneComputeGeneralizedMassMatricesMut( PhysxPxScenePod* selfPod, PhysxPxIndexDataPairPod* indicesPod, uint nbIndices, void* computeEvent) + { + PxSceneComputeGeneralizedMassMatricesMutNative(selfPod, indicesPod, nbIndices, computeEvent); + } + + public static void PxSceneComputeGeneralizedMassMatricesMut( PhysxPxScenePod* selfPod, ref PhysxPxIndexDataPairPod indicesPod, uint nbIndices, void* computeEvent) + { + fixed (PhysxPxIndexDataPairPod* pindicesPod = &indicesPod) + { + PxSceneComputeGeneralizedMassMatricesMutNative(selfPod, (PhysxPxIndexDataPairPod*)pindicesPod, nbIndices, computeEvent); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_computeGeneralizedGravityForces_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneComputeGeneralizedGravityForcesMutNative(PhysxPxScenePod* selfPod, PhysxPxIndexDataPairPod* indicesPod, uint nbIndices, void* computeEvent); + + public static void PxSceneComputeGeneralizedGravityForcesMut( PhysxPxScenePod* selfPod, PhysxPxIndexDataPairPod* indicesPod, uint nbIndices, void* computeEvent) + { + PxSceneComputeGeneralizedGravityForcesMutNative(selfPod, indicesPod, nbIndices, computeEvent); + } + + public static void PxSceneComputeGeneralizedGravityForcesMut( PhysxPxScenePod* selfPod, ref PhysxPxIndexDataPairPod indicesPod, uint nbIndices, void* computeEvent) + { + fixed (PhysxPxIndexDataPairPod* pindicesPod = &indicesPod) + { + PxSceneComputeGeneralizedGravityForcesMutNative(selfPod, (PhysxPxIndexDataPairPod*)pindicesPod, nbIndices, computeEvent); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_computeCoriolisAndCentrifugalForces_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneComputeCoriolisAndCentrifugalForcesMutNative(PhysxPxScenePod* selfPod, PhysxPxIndexDataPairPod* indicesPod, uint nbIndices, void* computeEvent); + + public static void PxSceneComputeCoriolisAndCentrifugalForcesMut( PhysxPxScenePod* selfPod, PhysxPxIndexDataPairPod* indicesPod, uint nbIndices, void* computeEvent) + { + PxSceneComputeCoriolisAndCentrifugalForcesMutNative(selfPod, indicesPod, nbIndices, computeEvent); + } + + public static void PxSceneComputeCoriolisAndCentrifugalForcesMut( PhysxPxScenePod* selfPod, ref PhysxPxIndexDataPairPod indicesPod, uint nbIndices, void* computeEvent) + { + fixed (PhysxPxIndexDataPairPod* pindicesPod = &indicesPod) + { + PxSceneComputeCoriolisAndCentrifugalForcesMutNative(selfPod, (PhysxPxIndexDataPairPod*)pindicesPod, nbIndices, computeEvent); + } + } + + [LibraryImport(LibName, EntryPoint = "PxScene_getGpuDynamicsConfig")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxgDynamicsMemoryConfigPod PxSceneGetGpuDynamicsConfigNative(PhysxPxScenePod* selfPod); + + public static PhysxPxgDynamicsMemoryConfigPod PxSceneGetGpuDynamicsConfig( PhysxPxScenePod* selfPod) + { + PhysxPxgDynamicsMemoryConfigPod ret = PxSceneGetGpuDynamicsConfigNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxScene_applyParticleBufferData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneApplyParticleBufferDataMutNative(PhysxPxScenePod* selfPod, uint* indices, PhysxPxGpuParticleBufferIndexPairPod* bufferindexpairPod, uint* flagsPod, uint nbUpdatedBuffers, void* waitEvent, void* signalEvent); + + public static void PxSceneApplyParticleBufferDataMut( PhysxPxScenePod* selfPod, uint* indices, PhysxPxGpuParticleBufferIndexPairPod* bufferindexpairPod, uint* flagsPod, uint nbUpdatedBuffers, void* waitEvent, void* signalEvent) + { + PxSceneApplyParticleBufferDataMutNative(selfPod, indices, bufferindexpairPod, flagsPod, nbUpdatedBuffers, waitEvent, signalEvent); + } + + public static void PxSceneApplyParticleBufferDataMut( PhysxPxScenePod* selfPod, ref uint indices, PhysxPxGpuParticleBufferIndexPairPod* bufferindexpairPod, uint* flagsPod, uint nbUpdatedBuffers, void* waitEvent, void* signalEvent) + { + fixed (uint* pindices = &indices) + { + PxSceneApplyParticleBufferDataMutNative(selfPod, (uint*)pindices, bufferindexpairPod, flagsPod, nbUpdatedBuffers, waitEvent, signalEvent); + } + } + + public static void PxSceneApplyParticleBufferDataMut( PhysxPxScenePod* selfPod, uint* indices, ref PhysxPxGpuParticleBufferIndexPairPod bufferindexpairPod, uint* flagsPod, uint nbUpdatedBuffers, void* waitEvent, void* signalEvent) + { + fixed (PhysxPxGpuParticleBufferIndexPairPod* pbufferindexpairPod = &bufferindexpairPod) + { + PxSceneApplyParticleBufferDataMutNative(selfPod, indices, (PhysxPxGpuParticleBufferIndexPairPod*)pbufferindexpairPod, flagsPod, nbUpdatedBuffers, waitEvent, signalEvent); + } + } + + public static void PxSceneApplyParticleBufferDataMut( PhysxPxScenePod* selfPod, ref uint indices, ref PhysxPxGpuParticleBufferIndexPairPod bufferindexpairPod, uint* flagsPod, uint nbUpdatedBuffers, void* waitEvent, void* signalEvent) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxGpuParticleBufferIndexPairPod* pbufferindexpairPod = &bufferindexpairPod) + { + PxSceneApplyParticleBufferDataMutNative(selfPod, (uint*)pindices, (PhysxPxGpuParticleBufferIndexPairPod*)pbufferindexpairPod, flagsPod, nbUpdatedBuffers, waitEvent, signalEvent); + } + } + } + + public static void PxSceneApplyParticleBufferDataMut( PhysxPxScenePod* selfPod, uint* indices, PhysxPxGpuParticleBufferIndexPairPod* bufferindexpairPod, ref uint flagsPod, uint nbUpdatedBuffers, void* waitEvent, void* signalEvent) + { + fixed (uint* pflagsPod = &flagsPod) + { + PxSceneApplyParticleBufferDataMutNative(selfPod, indices, bufferindexpairPod, (uint*)pflagsPod, nbUpdatedBuffers, waitEvent, signalEvent); + } + } + + public static void PxSceneApplyParticleBufferDataMut( PhysxPxScenePod* selfPod, ref uint indices, PhysxPxGpuParticleBufferIndexPairPod* bufferindexpairPod, ref uint flagsPod, uint nbUpdatedBuffers, void* waitEvent, void* signalEvent) + { + fixed (uint* pindices = &indices) + { + fixed (uint* pflagsPod = &flagsPod) + { + PxSceneApplyParticleBufferDataMutNative(selfPod, (uint*)pindices, bufferindexpairPod, (uint*)pflagsPod, nbUpdatedBuffers, waitEvent, signalEvent); + } + } + } + + public static void PxSceneApplyParticleBufferDataMut( PhysxPxScenePod* selfPod, uint* indices, ref PhysxPxGpuParticleBufferIndexPairPod bufferindexpairPod, ref uint flagsPod, uint nbUpdatedBuffers, void* waitEvent, void* signalEvent) + { + fixed (PhysxPxGpuParticleBufferIndexPairPod* pbufferindexpairPod = &bufferindexpairPod) + { + fixed (uint* pflagsPod = &flagsPod) + { + PxSceneApplyParticleBufferDataMutNative(selfPod, indices, (PhysxPxGpuParticleBufferIndexPairPod*)pbufferindexpairPod, (uint*)pflagsPod, nbUpdatedBuffers, waitEvent, signalEvent); + } + } + } + + public static void PxSceneApplyParticleBufferDataMut( PhysxPxScenePod* selfPod, ref uint indices, ref PhysxPxGpuParticleBufferIndexPairPod bufferindexpairPod, ref uint flagsPod, uint nbUpdatedBuffers, void* waitEvent, void* signalEvent) + { + fixed (uint* pindices = &indices) + { + fixed (PhysxPxGpuParticleBufferIndexPairPod* pbufferindexpairPod = &bufferindexpairPod) + { + fixed (uint* pflagsPod = &flagsPod) + { + PxSceneApplyParticleBufferDataMutNative(selfPod, (uint*)pindices, (PhysxPxGpuParticleBufferIndexPairPod*)pbufferindexpairPod, (uint*)pflagsPod, nbUpdatedBuffers, waitEvent, signalEvent); + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneReadLock_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSceneReadLockPod* PxSceneReadLockNewAllocNative(PhysxPxScenePod* scenePod, byte* file, uint line); + + public static PhysxPxSceneReadLockPod* PxSceneReadLockNewAlloc( PhysxPxScenePod* scenePod, byte* file, uint line) + { + PhysxPxSceneReadLockPod* ret = PxSceneReadLockNewAllocNative(scenePod, file, line); + return ret; + } + + public static PhysxPxSceneReadLockPod* PxSceneReadLockNewAlloc( PhysxPxScenePod* scenePod, ref byte file, uint line) + { + fixed (byte* pfile = &file) + { + PhysxPxSceneReadLockPod* ret = PxSceneReadLockNewAllocNative(scenePod, (byte*)pfile, line); + return ret; + } + } + + public static PhysxPxSceneReadLockPod* PxSceneReadLockNewAlloc( PhysxPxScenePod* scenePod, string file, uint line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PhysxPxSceneReadLockPod* ret = PxSceneReadLockNewAllocNative(scenePod, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneReadLock_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneReadLockDeleteNative(PhysxPxSceneReadLockPod* selfPod); + + public static void PxSceneReadLockDelete( PhysxPxSceneReadLockPod* selfPod) + { + PxSceneReadLockDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSceneWriteLock_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSceneWriteLockPod* PxSceneWriteLockNewAllocNative(PhysxPxScenePod* scenePod, byte* file, uint line); + + public static PhysxPxSceneWriteLockPod* PxSceneWriteLockNewAlloc( PhysxPxScenePod* scenePod, byte* file, uint line) + { + PhysxPxSceneWriteLockPod* ret = PxSceneWriteLockNewAllocNative(scenePod, file, line); + return ret; + } + + public static PhysxPxSceneWriteLockPod* PxSceneWriteLockNewAlloc( PhysxPxScenePod* scenePod, ref byte file, uint line) + { + fixed (byte* pfile = &file) + { + PhysxPxSceneWriteLockPod* ret = PxSceneWriteLockNewAllocNative(scenePod, (byte*)pfile, line); + return ret; + } + } + + public static PhysxPxSceneWriteLockPod* PxSceneWriteLockNewAlloc( PhysxPxScenePod* scenePod, string file, uint line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PhysxPxSceneWriteLockPod* ret = PxSceneWriteLockNewAllocNative(scenePod, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSceneWriteLock_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSceneWriteLockDeleteNative(PhysxPxSceneWriteLockPod* selfPod); + + public static void PxSceneWriteLockDelete( PhysxPxSceneWriteLockPod* selfPod) + { + PxSceneWriteLockDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxContactPairExtraDataItem_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxContactPairExtraDataItemPod PxContactPairExtraDataItemNewNative(); + + public static PhysxPxContactPairExtraDataItemPod PxContactPairExtraDataItemNew() + { + PhysxPxContactPairExtraDataItemPod ret = PxContactPairExtraDataItemNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactPairVelocity_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxContactPairVelocityPod PxContactPairVelocityNewNative(); + + public static PhysxPxContactPairVelocityPod PxContactPairVelocityNew() + { + PhysxPxContactPairVelocityPod ret = PxContactPairVelocityNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactPairPose_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxContactPairPosePod PxContactPairPoseNewNative(); + + public static PhysxPxContactPairPosePod PxContactPairPoseNew() + { + PhysxPxContactPairPosePod ret = PxContactPairPoseNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactPairIndex_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxContactPairIndexPod PxContactPairIndexNewNative(); + + public static PhysxPxContactPairIndexPod PxContactPairIndexNew() + { + PhysxPxContactPairIndexPod ret = PxContactPairIndexNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactPairExtraDataIterator_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxContactPairExtraDataIteratorPod PxContactPairExtraDataIteratorNewNative(byte* stream, uint size); + + public static PhysxPxContactPairExtraDataIteratorPod PxContactPairExtraDataIteratorNew( byte* stream, uint size) + { + PhysxPxContactPairExtraDataIteratorPod ret = PxContactPairExtraDataIteratorNewNative(stream, size); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactPairExtraDataIterator_nextItemSet_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxContactPairExtraDataIteratorNextItemSetMutNative(PhysxPxContactPairExtraDataIteratorPod* selfPod); + + public static bool PxContactPairExtraDataIteratorNextItemSetMut( PhysxPxContactPairExtraDataIteratorPod* selfPod) + { + byte ret = PxContactPairExtraDataIteratorNextItemSetMutNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxContactPairHeader_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxContactPairHeaderPod PxContactPairHeaderNewNative(); + + public static PhysxPxContactPairHeaderPod PxContactPairHeaderNew() + { + PhysxPxContactPairHeaderPod ret = PxContactPairHeaderNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactPair_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxContactPairPod PxContactPairNewNative(); + + public static PhysxPxContactPairPod PxContactPairNew() + { + PhysxPxContactPairPod ret = PxContactPairNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactPair_extractContacts")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxContactPairExtractContactsNative(PhysxPxContactPairPod* selfPod, PhysxPxContactPairPointPod* userbufferPod, uint bufferSize); + + public static uint PxContactPairExtractContacts( PhysxPxContactPairPod* selfPod, PhysxPxContactPairPointPod* userbufferPod, uint bufferSize) + { + uint ret = PxContactPairExtractContactsNative(selfPod, userbufferPod, bufferSize); + return ret; + } + + public static uint PxContactPairExtractContacts( PhysxPxContactPairPod* selfPod, ref PhysxPxContactPairPointPod userbufferPod, uint bufferSize) + { + fixed (PhysxPxContactPairPointPod* puserbufferPod = &userbufferPod) + { + uint ret = PxContactPairExtractContactsNative(selfPod, (PhysxPxContactPairPointPod*)puserbufferPod, bufferSize); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxContactPair_bufferContacts")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactPairBufferContactsNative(PhysxPxContactPairPod* selfPod, PhysxPxContactPairPod* newpairPod, byte* bufferMemory); + + public static void PxContactPairBufferContacts( PhysxPxContactPairPod* selfPod, PhysxPxContactPairPod* newpairPod, byte* bufferMemory) + { + PxContactPairBufferContactsNative(selfPod, newpairPod, bufferMemory); + } + + public static void PxContactPairBufferContacts( PhysxPxContactPairPod* selfPod, ref PhysxPxContactPairPod newpairPod, byte* bufferMemory) + { + fixed (PhysxPxContactPairPod* pnewpairPod = &newpairPod) + { + PxContactPairBufferContactsNative(selfPod, (PhysxPxContactPairPod*)pnewpairPod, bufferMemory); + } + } + + public static void PxContactPairBufferContacts( PhysxPxContactPairPod* selfPod, PhysxPxContactPairPod* newpairPod, ref byte bufferMemory) + { + fixed (byte* pbufferMemory = &bufferMemory) + { + PxContactPairBufferContactsNative(selfPod, newpairPod, (byte*)pbufferMemory); + } + } + + public static void PxContactPairBufferContacts( PhysxPxContactPairPod* selfPod, ref PhysxPxContactPairPod newpairPod, ref byte bufferMemory) + { + fixed (PhysxPxContactPairPod* pnewpairPod = &newpairPod) + { + fixed (byte* pbufferMemory = &bufferMemory) + { + PxContactPairBufferContactsNative(selfPod, (PhysxPxContactPairPod*)pnewpairPod, (byte*)pbufferMemory); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxContactPair_getInternalFaceIndices")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint* PxContactPairGetInternalFaceIndicesNative(PhysxPxContactPairPod* selfPod); + + public static uint* PxContactPairGetInternalFaceIndices( PhysxPxContactPairPod* selfPod) + { + uint* ret = PxContactPairGetInternalFaceIndicesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriggerPair_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTriggerPairPod PxTriggerPairNewNative(); + + public static PhysxPxTriggerPairPod PxTriggerPairNew() + { + PhysxPxTriggerPairPod ret = PxTriggerPairNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintInfo_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConstraintInfoPod PxConstraintInfoNewNative(); + + public static PhysxPxConstraintInfoPod PxConstraintInfoNew() + { + PhysxPxConstraintInfoPod ret = PxConstraintInfoNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConstraintInfo_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConstraintInfoPod PxConstraintInfoNew1Native(PhysxPxConstraintPod* cPod, void* extRef, uint t); + + public static PhysxPxConstraintInfoPod PxConstraintInfoNew1( PhysxPxConstraintPod* cPod, void* extRef, uint t) + { + PhysxPxConstraintInfoPod ret = PxConstraintInfoNew1Native(cPod, extRef, t); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationEventCallback_onConstraintBreak_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSimulationEventCallbackOnConstraintBreakMutNative(PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxConstraintInfoPod* constraintsPod, uint count); + + public static void PxSimulationEventCallbackOnConstraintBreakMut( PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxConstraintInfoPod* constraintsPod, uint count) + { + PxSimulationEventCallbackOnConstraintBreakMutNative(selfPod, constraintsPod, count); + } + + public static void PxSimulationEventCallbackOnConstraintBreakMut( PhysxPxSimulationEventCallbackPod* selfPod, ref PhysxPxConstraintInfoPod constraintsPod, uint count) + { + fixed (PhysxPxConstraintInfoPod* pconstraintsPod = &constraintsPod) + { + PxSimulationEventCallbackOnConstraintBreakMutNative(selfPod, (PhysxPxConstraintInfoPod*)pconstraintsPod, count); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationEventCallback_onWake_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSimulationEventCallbackOnWakeMutNative(PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxActorPod** actorsPod, uint count); + + public static void PxSimulationEventCallbackOnWakeMut( PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxActorPod** actorsPod, uint count) + { + PxSimulationEventCallbackOnWakeMutNative(selfPod, actorsPod, count); + } + + public static void PxSimulationEventCallbackOnWakeMut( PhysxPxSimulationEventCallbackPod* selfPod, ref PhysxPxActorPod* actorsPod, uint count) + { + fixed (PhysxPxActorPod** pactorsPod = &actorsPod) + { + PxSimulationEventCallbackOnWakeMutNative(selfPod, (PhysxPxActorPod**)pactorsPod, count); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationEventCallback_onSleep_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSimulationEventCallbackOnSleepMutNative(PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxActorPod** actorsPod, uint count); + + public static void PxSimulationEventCallbackOnSleepMut( PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxActorPod** actorsPod, uint count) + { + PxSimulationEventCallbackOnSleepMutNative(selfPod, actorsPod, count); + } + + public static void PxSimulationEventCallbackOnSleepMut( PhysxPxSimulationEventCallbackPod* selfPod, ref PhysxPxActorPod* actorsPod, uint count) + { + fixed (PhysxPxActorPod** pactorsPod = &actorsPod) + { + PxSimulationEventCallbackOnSleepMutNative(selfPod, (PhysxPxActorPod**)pactorsPod, count); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationEventCallback_onContact_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSimulationEventCallbackOnContactMutNative(PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxContactPairHeaderPod* pairheaderPod, PhysxPxContactPairPod* pairsPod, uint nbPairs); + + public static void PxSimulationEventCallbackOnContactMut( PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxContactPairHeaderPod* pairheaderPod, PhysxPxContactPairPod* pairsPod, uint nbPairs) + { + PxSimulationEventCallbackOnContactMutNative(selfPod, pairheaderPod, pairsPod, nbPairs); + } + + public static void PxSimulationEventCallbackOnContactMut( PhysxPxSimulationEventCallbackPod* selfPod, ref PhysxPxContactPairHeaderPod pairheaderPod, PhysxPxContactPairPod* pairsPod, uint nbPairs) + { + fixed (PhysxPxContactPairHeaderPod* ppairheaderPod = &pairheaderPod) + { + PxSimulationEventCallbackOnContactMutNative(selfPod, (PhysxPxContactPairHeaderPod*)ppairheaderPod, pairsPod, nbPairs); + } + } + + public static void PxSimulationEventCallbackOnContactMut( PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxContactPairHeaderPod* pairheaderPod, ref PhysxPxContactPairPod pairsPod, uint nbPairs) + { + fixed (PhysxPxContactPairPod* ppairsPod = &pairsPod) + { + PxSimulationEventCallbackOnContactMutNative(selfPod, pairheaderPod, (PhysxPxContactPairPod*)ppairsPod, nbPairs); + } + } + + public static void PxSimulationEventCallbackOnContactMut( PhysxPxSimulationEventCallbackPod* selfPod, ref PhysxPxContactPairHeaderPod pairheaderPod, ref PhysxPxContactPairPod pairsPod, uint nbPairs) + { + fixed (PhysxPxContactPairHeaderPod* ppairheaderPod = &pairheaderPod) + { + fixed (PhysxPxContactPairPod* ppairsPod = &pairsPod) + { + PxSimulationEventCallbackOnContactMutNative(selfPod, (PhysxPxContactPairHeaderPod*)ppairheaderPod, (PhysxPxContactPairPod*)ppairsPod, nbPairs); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationEventCallback_onTrigger_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSimulationEventCallbackOnTriggerMutNative(PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxTriggerPairPod* pairsPod, uint count); + + public static void PxSimulationEventCallbackOnTriggerMut( PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxTriggerPairPod* pairsPod, uint count) + { + PxSimulationEventCallbackOnTriggerMutNative(selfPod, pairsPod, count); + } + + public static void PxSimulationEventCallbackOnTriggerMut( PhysxPxSimulationEventCallbackPod* selfPod, ref PhysxPxTriggerPairPod pairsPod, uint count) + { + fixed (PhysxPxTriggerPairPod* ppairsPod = &pairsPod) + { + PxSimulationEventCallbackOnTriggerMutNative(selfPod, (PhysxPxTriggerPairPod*)ppairsPod, count); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationEventCallback_onAdvance_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSimulationEventCallbackOnAdvanceMutNative(PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxRigidBodyPod** bodybufferPod, PhysxPxTransformPod* posebufferPod, uint count); + + public static void PxSimulationEventCallbackOnAdvanceMut( PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxRigidBodyPod** bodybufferPod, PhysxPxTransformPod* posebufferPod, uint count) + { + PxSimulationEventCallbackOnAdvanceMutNative(selfPod, bodybufferPod, posebufferPod, count); + } + + public static void PxSimulationEventCallbackOnAdvanceMut( PhysxPxSimulationEventCallbackPod* selfPod, ref PhysxPxRigidBodyPod* bodybufferPod, PhysxPxTransformPod* posebufferPod, uint count) + { + fixed (PhysxPxRigidBodyPod** pbodybufferPod = &bodybufferPod) + { + PxSimulationEventCallbackOnAdvanceMutNative(selfPod, (PhysxPxRigidBodyPod**)pbodybufferPod, posebufferPod, count); + } + } + + public static void PxSimulationEventCallbackOnAdvanceMut( PhysxPxSimulationEventCallbackPod* selfPod, PhysxPxRigidBodyPod** bodybufferPod, ref PhysxPxTransformPod posebufferPod, uint count) + { + fixed (PhysxPxTransformPod* pposebufferPod = &posebufferPod) + { + PxSimulationEventCallbackOnAdvanceMutNative(selfPod, bodybufferPod, (PhysxPxTransformPod*)pposebufferPod, count); + } + } + + public static void PxSimulationEventCallbackOnAdvanceMut( PhysxPxSimulationEventCallbackPod* selfPod, ref PhysxPxRigidBodyPod* bodybufferPod, ref PhysxPxTransformPod posebufferPod, uint count) + { + fixed (PhysxPxRigidBodyPod** pbodybufferPod = &bodybufferPod) + { + fixed (PhysxPxTransformPod* pposebufferPod = &posebufferPod) + { + PxSimulationEventCallbackOnAdvanceMutNative(selfPod, (PhysxPxRigidBodyPod**)pbodybufferPod, (PhysxPxTransformPod*)pposebufferPod, count); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSimulationEventCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSimulationEventCallbackDeleteNative(PhysxPxSimulationEventCallbackPod* selfPod); + + public static void PxSimulationEventCallbackDelete( PhysxPxSimulationEventCallbackPod* selfPod) + { + PxSimulationEventCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxFEMParameters_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxFEMParametersPod PxFEMParametersNewNative(); + + public static PhysxPxFEMParametersPod PxFEMParametersNew() + { + PhysxPxFEMParametersPod ret = PxFEMParametersNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPruningStructure_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPruningStructureReleaseMutNative(PhysxPxPruningStructurePod* selfPod); + + public static void PxPruningStructureReleaseMut( PhysxPxPruningStructurePod* selfPod) + { + PxPruningStructureReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxPruningStructure_getRigidActors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPruningStructureGetRigidActorsNative(PhysxPxPruningStructurePod* selfPod, PhysxPxRigidActorPod** userbufferPod, uint bufferSize, uint startIndex); + + public static uint PxPruningStructureGetRigidActors( PhysxPxPruningStructurePod* selfPod, PhysxPxRigidActorPod** userbufferPod, uint bufferSize, uint startIndex) + { + uint ret = PxPruningStructureGetRigidActorsNative(selfPod, userbufferPod, bufferSize, startIndex); + return ret; + } + + public static uint PxPruningStructureGetRigidActors( PhysxPxPruningStructurePod* selfPod, ref PhysxPxRigidActorPod* userbufferPod, uint bufferSize, uint startIndex) + { + fixed (PhysxPxRigidActorPod** puserbufferPod = &userbufferPod) + { + uint ret = PxPruningStructureGetRigidActorsNative(selfPod, (PhysxPxRigidActorPod**)puserbufferPod, bufferSize, startIndex); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPruningStructure_getNbRigidActors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxPruningStructureGetNbRigidActorsNative(PhysxPxPruningStructurePod* selfPod); + + public static uint PxPruningStructureGetNbRigidActors( PhysxPxPruningStructurePod* selfPod) + { + uint ret = PxPruningStructureGetNbRigidActorsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPruningStructure_getStaticMergeData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxPruningStructureGetStaticMergeDataNative(PhysxPxPruningStructurePod* selfPod); + + public static void* PxPruningStructureGetStaticMergeData( PhysxPxPruningStructurePod* selfPod) + { + void* ret = PxPruningStructureGetStaticMergeDataNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPruningStructure_getDynamicMergeData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxPruningStructureGetDynamicMergeDataNative(PhysxPxPruningStructurePod* selfPod); + + public static void* PxPruningStructureGetDynamicMergeData( PhysxPxPruningStructurePod* selfPod) + { + void* ret = PxPruningStructureGetDynamicMergeDataNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPruningStructure_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxPruningStructureGetConcreteTypeNameNative(PhysxPxPruningStructurePod* selfPod); + + public static byte* PxPruningStructureGetConcreteTypeName( PhysxPxPruningStructurePod* selfPod) + { + byte* ret = PxPruningStructureGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxPruningStructureGetConcreteTypeNameS( PhysxPxPruningStructurePod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxPruningStructureGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxExtendedVec3Pod PxExtendedVec3NewNative(); + + public static PhysxPxExtendedVec3Pod PxExtendedVec3New() + { + PhysxPxExtendedVec3Pod ret = PxExtendedVec3NewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxExtendedVec3Pod PxExtendedVec3New1Native(double X, double Y, double Z); + + public static PhysxPxExtendedVec3Pod PxExtendedVec3New1( double X, double Y, double Z) + { + PhysxPxExtendedVec3Pod ret = PxExtendedVec3New1Native(X, Y, Z); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_isZero")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxExtendedVec3IsZeroNative(PhysxPxExtendedVec3Pod* selfPod); + + public static bool PxExtendedVec3IsZero( PhysxPxExtendedVec3Pod* selfPod) + { + byte ret = PxExtendedVec3IsZeroNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_dot")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double PxExtendedVec3DotNative(PhysxPxExtendedVec3Pod* selfPod, PhysxPxVec3Pod* vPod); + + public static double PxExtendedVec3Dot( PhysxPxExtendedVec3Pod* selfPod, PhysxPxVec3Pod* vPod) + { + double ret = PxExtendedVec3DotNative(selfPod, vPod); + return ret; + } + + public static double PxExtendedVec3Dot( PhysxPxExtendedVec3Pod* selfPod, ref PhysxPxVec3Pod vPod) + { + fixed (PhysxPxVec3Pod* pvPod = &vPod) + { + double ret = PxExtendedVec3DotNative(selfPod, (PhysxPxVec3Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_distanceSquared")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double PxExtendedVec3DistanceSquaredNative(PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* vPod); + + public static double PxExtendedVec3DistanceSquared( PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* vPod) + { + double ret = PxExtendedVec3DistanceSquaredNative(selfPod, vPod); + return ret; + } + + public static double PxExtendedVec3DistanceSquared( PhysxPxExtendedVec3Pod* selfPod, ref PhysxPxExtendedVec3Pod vPod) + { + fixed (PhysxPxExtendedVec3Pod* pvPod = &vPod) + { + double ret = PxExtendedVec3DistanceSquaredNative(selfPod, (PhysxPxExtendedVec3Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_magnitudeSquared")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double PxExtendedVec3MagnitudeSquaredNative(PhysxPxExtendedVec3Pod* selfPod); + + public static double PxExtendedVec3MagnitudeSquared( PhysxPxExtendedVec3Pod* selfPod) + { + double ret = PxExtendedVec3MagnitudeSquaredNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_magnitude")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double PxExtendedVec3MagnitudeNative(PhysxPxExtendedVec3Pod* selfPod); + + public static double PxExtendedVec3Magnitude( PhysxPxExtendedVec3Pod* selfPod) + { + double ret = PxExtendedVec3MagnitudeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_normalize_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double PxExtendedVec3NormalizeMutNative(PhysxPxExtendedVec3Pod* selfPod); + + public static double PxExtendedVec3NormalizeMut( PhysxPxExtendedVec3Pod* selfPod) + { + double ret = PxExtendedVec3NormalizeMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_isFinite")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxExtendedVec3IsFiniteNative(PhysxPxExtendedVec3Pod* selfPod); + + public static bool PxExtendedVec3IsFinite( PhysxPxExtendedVec3Pod* selfPod) + { + byte ret = PxExtendedVec3IsFiniteNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_maximum_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxExtendedVec3MaximumMutNative(PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* vPod); + + public static void PxExtendedVec3MaximumMut( PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* vPod) + { + PxExtendedVec3MaximumMutNative(selfPod, vPod); + } + + public static void PxExtendedVec3MaximumMut( PhysxPxExtendedVec3Pod* selfPod, ref PhysxPxExtendedVec3Pod vPod) + { + fixed (PhysxPxExtendedVec3Pod* pvPod = &vPod) + { + PxExtendedVec3MaximumMutNative(selfPod, (PhysxPxExtendedVec3Pod*)pvPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_minimum_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxExtendedVec3MinimumMutNative(PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* vPod); + + public static void PxExtendedVec3MinimumMut( PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* vPod) + { + PxExtendedVec3MinimumMutNative(selfPod, vPod); + } + + public static void PxExtendedVec3MinimumMut( PhysxPxExtendedVec3Pod* selfPod, ref PhysxPxExtendedVec3Pod vPod) + { + fixed (PhysxPxExtendedVec3Pod* pvPod = &vPod) + { + PxExtendedVec3MinimumMutNative(selfPod, (PhysxPxExtendedVec3Pod*)pvPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_set_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxExtendedVec3SetMutNative(PhysxPxExtendedVec3Pod* selfPod, double x, double y, double z); + + public static void PxExtendedVec3SetMut( PhysxPxExtendedVec3Pod* selfPod, double x, double y, double z) + { + PxExtendedVec3SetMutNative(selfPod, x, y, z); + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_setPlusInfinity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxExtendedVec3SetPlusInfinityMutNative(PhysxPxExtendedVec3Pod* selfPod); + + public static void PxExtendedVec3SetPlusInfinityMut( PhysxPxExtendedVec3Pod* selfPod) + { + PxExtendedVec3SetPlusInfinityMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_setMinusInfinity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxExtendedVec3SetMinusInfinityMutNative(PhysxPxExtendedVec3Pod* selfPod); + + public static void PxExtendedVec3SetMinusInfinityMut( PhysxPxExtendedVec3Pod* selfPod) + { + PxExtendedVec3SetMinusInfinityMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_cross_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxExtendedVec3CrossMutNative(PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* leftPod, PhysxPxVec3Pod* rightPod); + + public static void PxExtendedVec3CrossMut( PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* leftPod, PhysxPxVec3Pod* rightPod) + { + PxExtendedVec3CrossMutNative(selfPod, leftPod, rightPod); + } + + public static void PxExtendedVec3CrossMut( PhysxPxExtendedVec3Pod* selfPod, ref PhysxPxExtendedVec3Pod leftPod, PhysxPxVec3Pod* rightPod) + { + fixed (PhysxPxExtendedVec3Pod* pleftPod = &leftPod) + { + PxExtendedVec3CrossMutNative(selfPod, (PhysxPxExtendedVec3Pod*)pleftPod, rightPod); + } + } + + public static void PxExtendedVec3CrossMut( PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* leftPod, ref PhysxPxVec3Pod rightPod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + PxExtendedVec3CrossMutNative(selfPod, leftPod, (PhysxPxVec3Pod*)prightPod); + } + } + + public static void PxExtendedVec3CrossMut( PhysxPxExtendedVec3Pod* selfPod, ref PhysxPxExtendedVec3Pod leftPod, ref PhysxPxVec3Pod rightPod) + { + fixed (PhysxPxExtendedVec3Pod* pleftPod = &leftPod) + { + fixed (PhysxPxVec3Pod* prightPod = &rightPod) + { + PxExtendedVec3CrossMutNative(selfPod, (PhysxPxExtendedVec3Pod*)pleftPod, (PhysxPxVec3Pod*)prightPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_cross_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxExtendedVec3CrossMut1Native(PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* leftPod, PhysxPxExtendedVec3Pod* rightPod); + + public static void PxExtendedVec3CrossMut1( PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* leftPod, PhysxPxExtendedVec3Pod* rightPod) + { + PxExtendedVec3CrossMut1Native(selfPod, leftPod, rightPod); + } + + public static void PxExtendedVec3CrossMut1( PhysxPxExtendedVec3Pod* selfPod, ref PhysxPxExtendedVec3Pod leftPod, PhysxPxExtendedVec3Pod* rightPod) + { + fixed (PhysxPxExtendedVec3Pod* pleftPod = &leftPod) + { + PxExtendedVec3CrossMut1Native(selfPod, (PhysxPxExtendedVec3Pod*)pleftPod, rightPod); + } + } + + public static void PxExtendedVec3CrossMut1( PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* leftPod, ref PhysxPxExtendedVec3Pod rightPod) + { + fixed (PhysxPxExtendedVec3Pod* prightPod = &rightPod) + { + PxExtendedVec3CrossMut1Native(selfPod, leftPod, (PhysxPxExtendedVec3Pod*)prightPod); + } + } + + public static void PxExtendedVec3CrossMut1( PhysxPxExtendedVec3Pod* selfPod, ref PhysxPxExtendedVec3Pod leftPod, ref PhysxPxExtendedVec3Pod rightPod) + { + fixed (PhysxPxExtendedVec3Pod* pleftPod = &leftPod) + { + fixed (PhysxPxExtendedVec3Pod* prightPod = &rightPod) + { + PxExtendedVec3CrossMut1Native(selfPod, (PhysxPxExtendedVec3Pod*)pleftPod, (PhysxPxExtendedVec3Pod*)prightPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_cross")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxExtendedVec3Pod PxExtendedVec3CrossNative(PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* vPod); + + public static PhysxPxExtendedVec3Pod PxExtendedVec3Cross( PhysxPxExtendedVec3Pod* selfPod, PhysxPxExtendedVec3Pod* vPod) + { + PhysxPxExtendedVec3Pod ret = PxExtendedVec3CrossNative(selfPod, vPod); + return ret; + } + + public static PhysxPxExtendedVec3Pod PxExtendedVec3Cross( PhysxPxExtendedVec3Pod* selfPod, ref PhysxPxExtendedVec3Pod vPod) + { + fixed (PhysxPxExtendedVec3Pod* pvPod = &vPod) + { + PhysxPxExtendedVec3Pod ret = PxExtendedVec3CrossNative(selfPod, (PhysxPxExtendedVec3Pod*)pvPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxExtendedVec3_cross_mut_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxExtendedVec3CrossMut2Native(PhysxPxExtendedVec3Pod* selfPod, PhysxPxVec3Pod* leftPod, PhysxPxExtendedVec3Pod* rightPod); + + public static void PxExtendedVec3CrossMut2( PhysxPxExtendedVec3Pod* selfPod, PhysxPxVec3Pod* leftPod, PhysxPxExtendedVec3Pod* rightPod) + { + PxExtendedVec3CrossMut2Native(selfPod, leftPod, rightPod); + } + + public static void PxExtendedVec3CrossMut2( PhysxPxExtendedVec3Pod* selfPod, ref PhysxPxVec3Pod leftPod, PhysxPxExtendedVec3Pod* rightPod) + { + fixed (PhysxPxVec3Pod* pleftPod = &leftPod) + { + PxExtendedVec3CrossMut2Native(selfPod, (PhysxPxVec3Pod*)pleftPod, rightPod); + } + } + + public static void PxExtendedVec3CrossMut2( PhysxPxExtendedVec3Pod* selfPod, PhysxPxVec3Pod* leftPod, ref PhysxPxExtendedVec3Pod rightPod) + { + fixed (PhysxPxExtendedVec3Pod* prightPod = &rightPod) + { + PxExtendedVec3CrossMut2Native(selfPod, leftPod, (PhysxPxExtendedVec3Pod*)prightPod); + } + } + + public static void PxExtendedVec3CrossMut2( PhysxPxExtendedVec3Pod* selfPod, ref PhysxPxVec3Pod leftPod, ref PhysxPxExtendedVec3Pod rightPod) + { + fixed (PhysxPxVec3Pod* pleftPod = &leftPod) + { + fixed (PhysxPxExtendedVec3Pod* prightPod = &rightPod) + { + PxExtendedVec3CrossMut2Native(selfPod, (PhysxPxVec3Pod*)pleftPod, (PhysxPxExtendedVec3Pod*)prightPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_toVec3")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PhysToVec3Native(PhysxPxExtendedVec3Pod* vPod); + + public static PhysxPxVec3Pod PhysToVec3( PhysxPxExtendedVec3Pod* vPod) + { + PhysxPxVec3Pod ret = PhysToVec3Native(vPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxObstacle_getType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxObstacleGetTypeNative(PhysxPxObstaclePod* selfPod); + + public static int PxObstacleGetType( PhysxPxObstaclePod* selfPod) + { + int ret = PxObstacleGetTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBoxObstacle_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBoxObstaclePod PxBoxObstacleNewNative(); + + public static PhysxPxBoxObstaclePod PxBoxObstacleNew() + { + PhysxPxBoxObstaclePod ret = PxBoxObstacleNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleObstacle_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCapsuleObstaclePod PxCapsuleObstacleNewNative(); + + public static PhysxPxCapsuleObstaclePod PxCapsuleObstacleNew() + { + PhysxPxCapsuleObstaclePod ret = PxCapsuleObstacleNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxObstacleContext_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxObstacleContextReleaseMutNative(PhysxPxObstacleContextPod* selfPod); + + public static void PxObstacleContextReleaseMut( PhysxPxObstacleContextPod* selfPod) + { + PxObstacleContextReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxObstacleContext_getControllerManager")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxControllerManagerPod* PxObstacleContextGetControllerManagerNative(PhysxPxObstacleContextPod* selfPod); + + public static PhysxPxControllerManagerPod* PxObstacleContextGetControllerManager( PhysxPxObstacleContextPod* selfPod) + { + PhysxPxControllerManagerPod* ret = PxObstacleContextGetControllerManagerNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxObstacleContext_addObstacle_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxObstacleContextAddObstacleMutNative(PhysxPxObstacleContextPod* selfPod, PhysxPxObstaclePod* obstaclePod); + + public static uint PxObstacleContextAddObstacleMut( PhysxPxObstacleContextPod* selfPod, PhysxPxObstaclePod* obstaclePod) + { + uint ret = PxObstacleContextAddObstacleMutNative(selfPod, obstaclePod); + return ret; + } + + public static uint PxObstacleContextAddObstacleMut( PhysxPxObstacleContextPod* selfPod, ref PhysxPxObstaclePod obstaclePod) + { + fixed (PhysxPxObstaclePod* pobstaclePod = &obstaclePod) + { + uint ret = PxObstacleContextAddObstacleMutNative(selfPod, (PhysxPxObstaclePod*)pobstaclePod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxObstacleContext_removeObstacle_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxObstacleContextRemoveObstacleMutNative(PhysxPxObstacleContextPod* selfPod, uint handle); + + public static bool PxObstacleContextRemoveObstacleMut( PhysxPxObstacleContextPod* selfPod, uint handle) + { + byte ret = PxObstacleContextRemoveObstacleMutNative(selfPod, handle); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxObstacleContext_updateObstacle_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxObstacleContextUpdateObstacleMutNative(PhysxPxObstacleContextPod* selfPod, uint handle, PhysxPxObstaclePod* obstaclePod); + + public static bool PxObstacleContextUpdateObstacleMut( PhysxPxObstacleContextPod* selfPod, uint handle, PhysxPxObstaclePod* obstaclePod) + { + byte ret = PxObstacleContextUpdateObstacleMutNative(selfPod, handle, obstaclePod); + return ret != 0; + } + + public static bool PxObstacleContextUpdateObstacleMut( PhysxPxObstacleContextPod* selfPod, uint handle, ref PhysxPxObstaclePod obstaclePod) + { + fixed (PhysxPxObstaclePod* pobstaclePod = &obstaclePod) + { + byte ret = PxObstacleContextUpdateObstacleMutNative(selfPod, handle, (PhysxPxObstaclePod*)pobstaclePod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxObstacleContext_getNbObstacles")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxObstacleContextGetNbObstaclesNative(PhysxPxObstacleContextPod* selfPod); + + public static uint PxObstacleContextGetNbObstacles( PhysxPxObstacleContextPod* selfPod) + { + uint ret = PxObstacleContextGetNbObstaclesNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxObstacleContext_getObstacle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxObstaclePod* PxObstacleContextGetObstacleNative(PhysxPxObstacleContextPod* selfPod, uint i); + + public static PhysxPxObstaclePod* PxObstacleContextGetObstacle( PhysxPxObstacleContextPod* selfPod, uint i) + { + PhysxPxObstaclePod* ret = PxObstacleContextGetObstacleNative(selfPod, i); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxObstacleContext_getObstacleByHandle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxObstaclePod* PxObstacleContextGetObstacleByHandleNative(PhysxPxObstacleContextPod* selfPod, uint handle); + + public static PhysxPxObstaclePod* PxObstacleContextGetObstacleByHandle( PhysxPxObstacleContextPod* selfPod, uint handle) + { + PhysxPxObstaclePod* ret = PxObstacleContextGetObstacleByHandleNative(selfPod, handle); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxUserControllerHitReport_onShapeHit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxUserControllerHitReportOnShapeHitMutNative(PhysxPxUserControllerHitReportPod* selfPod, PhysxPxControllerShapeHitPod* hitPod); + + public static void PxUserControllerHitReportOnShapeHitMut( PhysxPxUserControllerHitReportPod* selfPod, PhysxPxControllerShapeHitPod* hitPod) + { + PxUserControllerHitReportOnShapeHitMutNative(selfPod, hitPod); + } + + public static void PxUserControllerHitReportOnShapeHitMut( PhysxPxUserControllerHitReportPod* selfPod, ref PhysxPxControllerShapeHitPod hitPod) + { + fixed (PhysxPxControllerShapeHitPod* phitPod = &hitPod) + { + PxUserControllerHitReportOnShapeHitMutNative(selfPod, (PhysxPxControllerShapeHitPod*)phitPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxUserControllerHitReport_onControllerHit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxUserControllerHitReportOnControllerHitMutNative(PhysxPxUserControllerHitReportPod* selfPod, PhysxPxControllersHitPod* hitPod); + + public static void PxUserControllerHitReportOnControllerHitMut( PhysxPxUserControllerHitReportPod* selfPod, PhysxPxControllersHitPod* hitPod) + { + PxUserControllerHitReportOnControllerHitMutNative(selfPod, hitPod); + } + + public static void PxUserControllerHitReportOnControllerHitMut( PhysxPxUserControllerHitReportPod* selfPod, ref PhysxPxControllersHitPod hitPod) + { + fixed (PhysxPxControllersHitPod* phitPod = &hitPod) + { + PxUserControllerHitReportOnControllerHitMutNative(selfPod, (PhysxPxControllersHitPod*)phitPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxUserControllerHitReport_onObstacleHit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxUserControllerHitReportOnObstacleHitMutNative(PhysxPxUserControllerHitReportPod* selfPod, PhysxPxControllerObstacleHitPod* hitPod); + + public static void PxUserControllerHitReportOnObstacleHitMut( PhysxPxUserControllerHitReportPod* selfPod, PhysxPxControllerObstacleHitPod* hitPod) + { + PxUserControllerHitReportOnObstacleHitMutNative(selfPod, hitPod); + } + + public static void PxUserControllerHitReportOnObstacleHitMut( PhysxPxUserControllerHitReportPod* selfPod, ref PhysxPxControllerObstacleHitPod hitPod) + { + fixed (PhysxPxControllerObstacleHitPod* phitPod = &hitPod) + { + PxUserControllerHitReportOnObstacleHitMutNative(selfPod, (PhysxPxControllerObstacleHitPod*)phitPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxControllerFilterCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerFilterCallbackDeleteNative(PhysxPxControllerFilterCallbackPod* selfPod); + + public static void PxControllerFilterCallbackDelete( PhysxPxControllerFilterCallbackPod* selfPod) + { + PxControllerFilterCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxControllerFilterCallback_filter_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxControllerFilterCallbackFilterMutNative(PhysxPxControllerFilterCallbackPod* selfPod, PhysxPxControllerPod* aPod, PhysxPxControllerPod* bPod); + + public static bool PxControllerFilterCallbackFilterMut( PhysxPxControllerFilterCallbackPod* selfPod, PhysxPxControllerPod* aPod, PhysxPxControllerPod* bPod) + { + byte ret = PxControllerFilterCallbackFilterMutNative(selfPod, aPod, bPod); + return ret != 0; + } + + public static bool PxControllerFilterCallbackFilterMut( PhysxPxControllerFilterCallbackPod* selfPod, ref PhysxPxControllerPod aPod, PhysxPxControllerPod* bPod) + { + fixed (PhysxPxControllerPod* paPod = &aPod) + { + byte ret = PxControllerFilterCallbackFilterMutNative(selfPod, (PhysxPxControllerPod*)paPod, bPod); + return ret != 0; + } + } + + public static bool PxControllerFilterCallbackFilterMut( PhysxPxControllerFilterCallbackPod* selfPod, PhysxPxControllerPod* aPod, ref PhysxPxControllerPod bPod) + { + fixed (PhysxPxControllerPod* pbPod = &bPod) + { + byte ret = PxControllerFilterCallbackFilterMutNative(selfPod, aPod, (PhysxPxControllerPod*)pbPod); + return ret != 0; + } + } + + public static bool PxControllerFilterCallbackFilterMut( PhysxPxControllerFilterCallbackPod* selfPod, ref PhysxPxControllerPod aPod, ref PhysxPxControllerPod bPod) + { + fixed (PhysxPxControllerPod* paPod = &aPod) + { + fixed (PhysxPxControllerPod* pbPod = &bPod) + { + byte ret = PxControllerFilterCallbackFilterMutNative(selfPod, (PhysxPxControllerPod*)paPod, (PhysxPxControllerPod*)pbPod); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxControllerFilters_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxControllerFiltersPod PxControllerFiltersNewNative(PhysxPxFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* cbPod, PhysxPxControllerFilterCallbackPod* cctfiltercbPod); + + public static PhysxPxControllerFiltersPod PxControllerFiltersNew( PhysxPxFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* cbPod, PhysxPxControllerFilterCallbackPod* cctfiltercbPod) + { + PhysxPxControllerFiltersPod ret = PxControllerFiltersNewNative(filterdataPod, cbPod, cctfiltercbPod); + return ret; + } + + public static PhysxPxControllerFiltersPod PxControllerFiltersNew( PhysxPxFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod cbPod, PhysxPxControllerFilterCallbackPod* cctfiltercbPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pcbPod = &cbPod) + { + PhysxPxControllerFiltersPod ret = PxControllerFiltersNewNative(filterdataPod, (PhysxPxQueryFilterCallbackPod*)pcbPod, cctfiltercbPod); + return ret; + } + } + + public static PhysxPxControllerFiltersPod PxControllerFiltersNew( PhysxPxFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* cbPod, ref PhysxPxControllerFilterCallbackPod cctfiltercbPod) + { + fixed (PhysxPxControllerFilterCallbackPod* pcctfiltercbPod = &cctfiltercbPod) + { + PhysxPxControllerFiltersPod ret = PxControllerFiltersNewNative(filterdataPod, cbPod, (PhysxPxControllerFilterCallbackPod*)pcctfiltercbPod); + return ret; + } + } + + public static PhysxPxControllerFiltersPod PxControllerFiltersNew( PhysxPxFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod cbPod, ref PhysxPxControllerFilterCallbackPod cctfiltercbPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pcbPod = &cbPod) + { + fixed (PhysxPxControllerFilterCallbackPod* pcctfiltercbPod = &cctfiltercbPod) + { + PhysxPxControllerFiltersPod ret = PxControllerFiltersNewNative(filterdataPod, (PhysxPxQueryFilterCallbackPod*)pcbPod, (PhysxPxControllerFilterCallbackPod*)pcctfiltercbPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxControllerDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxControllerDescIsValidNative(PhysxPxControllerDescPod* selfPod); + + public static bool PxControllerDescIsValid( PhysxPxControllerDescPod* selfPod) + { + byte ret = PxControllerDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxControllerDesc_getType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxControllerDescGetTypeNative(PhysxPxControllerDescPod* selfPod); + + public static int PxControllerDescGetType( PhysxPxControllerDescPod* selfPod) + { + int ret = PxControllerDescGetTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_getType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxControllerGetTypeNative(PhysxPxControllerPod* selfPod); + + public static int PxControllerGetType( PhysxPxControllerPod* selfPod) + { + int ret = PxControllerGetTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerReleaseMutNative(PhysxPxControllerPod* selfPod); + + public static void PxControllerReleaseMut( PhysxPxControllerPod* selfPod) + { + PxControllerReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxController_move_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxControllerMoveMutNative(PhysxPxControllerPod* selfPod, PhysxPxVec3Pod* dispPod, float minDist, float elapsedTime, PhysxPxControllerFiltersPod* filtersPod, PhysxPxObstacleContextPod* obstaclesPod); + + public static byte PxControllerMoveMut( PhysxPxControllerPod* selfPod, PhysxPxVec3Pod* dispPod, float minDist, float elapsedTime, PhysxPxControllerFiltersPod* filtersPod, PhysxPxObstacleContextPod* obstaclesPod) + { + byte ret = PxControllerMoveMutNative(selfPod, dispPod, minDist, elapsedTime, filtersPod, obstaclesPod); + return ret; + } + + public static byte PxControllerMoveMut( PhysxPxControllerPod* selfPod, ref PhysxPxVec3Pod dispPod, float minDist, float elapsedTime, PhysxPxControllerFiltersPod* filtersPod, PhysxPxObstacleContextPod* obstaclesPod) + { + fixed (PhysxPxVec3Pod* pdispPod = &dispPod) + { + byte ret = PxControllerMoveMutNative(selfPod, (PhysxPxVec3Pod*)pdispPod, minDist, elapsedTime, filtersPod, obstaclesPod); + return ret; + } + } + + public static byte PxControllerMoveMut( PhysxPxControllerPod* selfPod, PhysxPxVec3Pod* dispPod, float minDist, float elapsedTime, ref PhysxPxControllerFiltersPod filtersPod, PhysxPxObstacleContextPod* obstaclesPod) + { + fixed (PhysxPxControllerFiltersPod* pfiltersPod = &filtersPod) + { + byte ret = PxControllerMoveMutNative(selfPod, dispPod, minDist, elapsedTime, (PhysxPxControllerFiltersPod*)pfiltersPod, obstaclesPod); + return ret; + } + } + + public static byte PxControllerMoveMut( PhysxPxControllerPod* selfPod, ref PhysxPxVec3Pod dispPod, float minDist, float elapsedTime, ref PhysxPxControllerFiltersPod filtersPod, PhysxPxObstacleContextPod* obstaclesPod) + { + fixed (PhysxPxVec3Pod* pdispPod = &dispPod) + { + fixed (PhysxPxControllerFiltersPod* pfiltersPod = &filtersPod) + { + byte ret = PxControllerMoveMutNative(selfPod, (PhysxPxVec3Pod*)pdispPod, minDist, elapsedTime, (PhysxPxControllerFiltersPod*)pfiltersPod, obstaclesPod); + return ret; + } + } + } + + public static byte PxControllerMoveMut( PhysxPxControllerPod* selfPod, PhysxPxVec3Pod* dispPod, float minDist, float elapsedTime, PhysxPxControllerFiltersPod* filtersPod, ref PhysxPxObstacleContextPod obstaclesPod) + { + fixed (PhysxPxObstacleContextPod* pobstaclesPod = &obstaclesPod) + { + byte ret = PxControllerMoveMutNative(selfPod, dispPod, minDist, elapsedTime, filtersPod, (PhysxPxObstacleContextPod*)pobstaclesPod); + return ret; + } + } + + public static byte PxControllerMoveMut( PhysxPxControllerPod* selfPod, ref PhysxPxVec3Pod dispPod, float minDist, float elapsedTime, PhysxPxControllerFiltersPod* filtersPod, ref PhysxPxObstacleContextPod obstaclesPod) + { + fixed (PhysxPxVec3Pod* pdispPod = &dispPod) + { + fixed (PhysxPxObstacleContextPod* pobstaclesPod = &obstaclesPod) + { + byte ret = PxControllerMoveMutNative(selfPod, (PhysxPxVec3Pod*)pdispPod, minDist, elapsedTime, filtersPod, (PhysxPxObstacleContextPod*)pobstaclesPod); + return ret; + } + } + } + + public static byte PxControllerMoveMut( PhysxPxControllerPod* selfPod, PhysxPxVec3Pod* dispPod, float minDist, float elapsedTime, ref PhysxPxControllerFiltersPod filtersPod, ref PhysxPxObstacleContextPod obstaclesPod) + { + fixed (PhysxPxControllerFiltersPod* pfiltersPod = &filtersPod) + { + fixed (PhysxPxObstacleContextPod* pobstaclesPod = &obstaclesPod) + { + byte ret = PxControllerMoveMutNative(selfPod, dispPod, minDist, elapsedTime, (PhysxPxControllerFiltersPod*)pfiltersPod, (PhysxPxObstacleContextPod*)pobstaclesPod); + return ret; + } + } + } + + public static byte PxControllerMoveMut( PhysxPxControllerPod* selfPod, ref PhysxPxVec3Pod dispPod, float minDist, float elapsedTime, ref PhysxPxControllerFiltersPod filtersPod, ref PhysxPxObstacleContextPod obstaclesPod) + { + fixed (PhysxPxVec3Pod* pdispPod = &dispPod) + { + fixed (PhysxPxControllerFiltersPod* pfiltersPod = &filtersPod) + { + fixed (PhysxPxObstacleContextPod* pobstaclesPod = &obstaclesPod) + { + byte ret = PxControllerMoveMutNative(selfPod, (PhysxPxVec3Pod*)pdispPod, minDist, elapsedTime, (PhysxPxControllerFiltersPod*)pfiltersPod, (PhysxPxObstacleContextPod*)pobstaclesPod); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxController_setPosition_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxControllerSetPositionMutNative(PhysxPxControllerPod* selfPod, PhysxPxExtendedVec3Pod* positionPod); + + public static bool PxControllerSetPositionMut( PhysxPxControllerPod* selfPod, PhysxPxExtendedVec3Pod* positionPod) + { + byte ret = PxControllerSetPositionMutNative(selfPod, positionPod); + return ret != 0; + } + + public static bool PxControllerSetPositionMut( PhysxPxControllerPod* selfPod, ref PhysxPxExtendedVec3Pod positionPod) + { + fixed (PhysxPxExtendedVec3Pod* ppositionPod = &positionPod) + { + byte ret = PxControllerSetPositionMutNative(selfPod, (PhysxPxExtendedVec3Pod*)ppositionPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxController_getPosition")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxExtendedVec3Pod* PxControllerGetPositionNative(PhysxPxControllerPod* selfPod); + + public static PhysxPxExtendedVec3Pod* PxControllerGetPosition( PhysxPxControllerPod* selfPod) + { + PhysxPxExtendedVec3Pod* ret = PxControllerGetPositionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_setFootPosition_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxControllerSetFootPositionMutNative(PhysxPxControllerPod* selfPod, PhysxPxExtendedVec3Pod* positionPod); + + public static bool PxControllerSetFootPositionMut( PhysxPxControllerPod* selfPod, PhysxPxExtendedVec3Pod* positionPod) + { + byte ret = PxControllerSetFootPositionMutNative(selfPod, positionPod); + return ret != 0; + } + + public static bool PxControllerSetFootPositionMut( PhysxPxControllerPod* selfPod, ref PhysxPxExtendedVec3Pod positionPod) + { + fixed (PhysxPxExtendedVec3Pod* ppositionPod = &positionPod) + { + byte ret = PxControllerSetFootPositionMutNative(selfPod, (PhysxPxExtendedVec3Pod*)ppositionPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxController_getFootPosition")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxExtendedVec3Pod PxControllerGetFootPositionNative(PhysxPxControllerPod* selfPod); + + public static PhysxPxExtendedVec3Pod PxControllerGetFootPosition( PhysxPxControllerPod* selfPod) + { + PhysxPxExtendedVec3Pod ret = PxControllerGetFootPositionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_getActor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidDynamicPod* PxControllerGetActorNative(PhysxPxControllerPod* selfPod); + + public static PhysxPxRigidDynamicPod* PxControllerGetActor( PhysxPxControllerPod* selfPod) + { + PhysxPxRigidDynamicPod* ret = PxControllerGetActorNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_setStepOffset_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerSetStepOffsetMutNative(PhysxPxControllerPod* selfPod, float offset); + + public static void PxControllerSetStepOffsetMut( PhysxPxControllerPod* selfPod, float offset) + { + PxControllerSetStepOffsetMutNative(selfPod, offset); + } + + [LibraryImport(LibName, EntryPoint = "PxController_getStepOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxControllerGetStepOffsetNative(PhysxPxControllerPod* selfPod); + + public static float PxControllerGetStepOffset( PhysxPxControllerPod* selfPod) + { + float ret = PxControllerGetStepOffsetNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_setNonWalkableMode_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerSetNonWalkableModeMutNative(PhysxPxControllerPod* selfPod, int flagPod); + + public static void PxControllerSetNonWalkableModeMut( PhysxPxControllerPod* selfPod, int flagPod) + { + PxControllerSetNonWalkableModeMutNative(selfPod, flagPod); + } + + [LibraryImport(LibName, EntryPoint = "PxController_getNonWalkableMode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxControllerGetNonWalkableModeNative(PhysxPxControllerPod* selfPod); + + public static int PxControllerGetNonWalkableMode( PhysxPxControllerPod* selfPod) + { + int ret = PxControllerGetNonWalkableModeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_getContactOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxControllerGetContactOffsetNative(PhysxPxControllerPod* selfPod); + + public static float PxControllerGetContactOffset( PhysxPxControllerPod* selfPod) + { + float ret = PxControllerGetContactOffsetNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_setContactOffset_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerSetContactOffsetMutNative(PhysxPxControllerPod* selfPod, float offset); + + public static void PxControllerSetContactOffsetMut( PhysxPxControllerPod* selfPod, float offset) + { + PxControllerSetContactOffsetMutNative(selfPod, offset); + } + + [LibraryImport(LibName, EntryPoint = "PxController_getUpDirection")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxControllerGetUpDirectionNative(PhysxPxControllerPod* selfPod); + + public static PhysxPxVec3Pod PxControllerGetUpDirection( PhysxPxControllerPod* selfPod) + { + PhysxPxVec3Pod ret = PxControllerGetUpDirectionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_setUpDirection_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerSetUpDirectionMutNative(PhysxPxControllerPod* selfPod, PhysxPxVec3Pod* upPod); + + public static void PxControllerSetUpDirectionMut( PhysxPxControllerPod* selfPod, PhysxPxVec3Pod* upPod) + { + PxControllerSetUpDirectionMutNative(selfPod, upPod); + } + + public static void PxControllerSetUpDirectionMut( PhysxPxControllerPod* selfPod, ref PhysxPxVec3Pod upPod) + { + fixed (PhysxPxVec3Pod* pupPod = &upPod) + { + PxControllerSetUpDirectionMutNative(selfPod, (PhysxPxVec3Pod*)pupPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxController_getSlopeLimit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxControllerGetSlopeLimitNative(PhysxPxControllerPod* selfPod); + + public static float PxControllerGetSlopeLimit( PhysxPxControllerPod* selfPod) + { + float ret = PxControllerGetSlopeLimitNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_setSlopeLimit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerSetSlopeLimitMutNative(PhysxPxControllerPod* selfPod, float slopeLimit); + + public static void PxControllerSetSlopeLimitMut( PhysxPxControllerPod* selfPod, float slopeLimit) + { + PxControllerSetSlopeLimitMutNative(selfPod, slopeLimit); + } + + [LibraryImport(LibName, EntryPoint = "PxController_invalidateCache_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerInvalidateCacheMutNative(PhysxPxControllerPod* selfPod); + + public static void PxControllerInvalidateCacheMut( PhysxPxControllerPod* selfPod) + { + PxControllerInvalidateCacheMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxController_getScene_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxScenePod* PxControllerGetSceneMutNative(PhysxPxControllerPod* selfPod); + + public static PhysxPxScenePod* PxControllerGetSceneMut( PhysxPxControllerPod* selfPod) + { + PhysxPxScenePod* ret = PxControllerGetSceneMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_getUserData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxControllerGetUserDataNative(PhysxPxControllerPod* selfPod); + + public static void* PxControllerGetUserData( PhysxPxControllerPod* selfPod) + { + void* ret = PxControllerGetUserDataNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxController_setUserData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerSetUserDataMutNative(PhysxPxControllerPod* selfPod, void* userData); + + public static void PxControllerSetUserDataMut( PhysxPxControllerPod* selfPod, void* userData) + { + PxControllerSetUserDataMutNative(selfPod, userData); + } + + [LibraryImport(LibName, EntryPoint = "PxController_getState")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerGetStateNative(PhysxPxControllerPod* selfPod, PhysxPxControllerStatePod* statePod); + + public static void PxControllerGetState( PhysxPxControllerPod* selfPod, PhysxPxControllerStatePod* statePod) + { + PxControllerGetStateNative(selfPod, statePod); + } + + public static void PxControllerGetState( PhysxPxControllerPod* selfPod, ref PhysxPxControllerStatePod statePod) + { + fixed (PhysxPxControllerStatePod* pstatePod = &statePod) + { + PxControllerGetStateNative(selfPod, (PhysxPxControllerStatePod*)pstatePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxController_getStats")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerGetStatsNative(PhysxPxControllerPod* selfPod, PhysxPxControllerStatsPod* statsPod); + + public static void PxControllerGetStats( PhysxPxControllerPod* selfPod, PhysxPxControllerStatsPod* statsPod) + { + PxControllerGetStatsNative(selfPod, statsPod); + } + + public static void PxControllerGetStats( PhysxPxControllerPod* selfPod, ref PhysxPxControllerStatsPod statsPod) + { + fixed (PhysxPxControllerStatsPod* pstatsPod = &statsPod) + { + PxControllerGetStatsNative(selfPod, (PhysxPxControllerStatsPod*)pstatsPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxController_resize_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerResizeMutNative(PhysxPxControllerPod* selfPod, float height); + + public static void PxControllerResizeMut( PhysxPxControllerPod* selfPod, float height) + { + PxControllerResizeMutNative(selfPod, height); + } + + [LibraryImport(LibName, EntryPoint = "PxBoxControllerDesc_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBoxControllerDescPod* PxBoxControllerDescNewAllocNative(); + + public static PhysxPxBoxControllerDescPod* PxBoxControllerDescNewAlloc() + { + PhysxPxBoxControllerDescPod* ret = PxBoxControllerDescNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBoxControllerDesc_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBoxControllerDescDeleteNative(PhysxPxBoxControllerDescPod* selfPod); + + public static void PxBoxControllerDescDelete( PhysxPxBoxControllerDescPod* selfPod) + { + PxBoxControllerDescDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBoxControllerDesc_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBoxControllerDescSetToDefaultMutNative(PhysxPxBoxControllerDescPod* selfPod); + + public static void PxBoxControllerDescSetToDefaultMut( PhysxPxBoxControllerDescPod* selfPod) + { + PxBoxControllerDescSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBoxControllerDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBoxControllerDescIsValidNative(PhysxPxBoxControllerDescPod* selfPod); + + public static bool PxBoxControllerDescIsValid( PhysxPxBoxControllerDescPod* selfPod) + { + byte ret = PxBoxControllerDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxBoxController_getHalfHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxBoxControllerGetHalfHeightNative(PhysxPxBoxControllerPod* selfPod); + + public static float PxBoxControllerGetHalfHeight( PhysxPxBoxControllerPod* selfPod) + { + float ret = PxBoxControllerGetHalfHeightNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBoxController_getHalfSideExtent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxBoxControllerGetHalfSideExtentNative(PhysxPxBoxControllerPod* selfPod); + + public static float PxBoxControllerGetHalfSideExtent( PhysxPxBoxControllerPod* selfPod) + { + float ret = PxBoxControllerGetHalfSideExtentNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBoxController_getHalfForwardExtent")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxBoxControllerGetHalfForwardExtentNative(PhysxPxBoxControllerPod* selfPod); + + public static float PxBoxControllerGetHalfForwardExtent( PhysxPxBoxControllerPod* selfPod) + { + float ret = PxBoxControllerGetHalfForwardExtentNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBoxController_setHalfHeight_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBoxControllerSetHalfHeightMutNative(PhysxPxBoxControllerPod* selfPod, float halfHeight); + + public static bool PxBoxControllerSetHalfHeightMut( PhysxPxBoxControllerPod* selfPod, float halfHeight) + { + byte ret = PxBoxControllerSetHalfHeightMutNative(selfPod, halfHeight); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxBoxController_setHalfSideExtent_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBoxControllerSetHalfSideExtentMutNative(PhysxPxBoxControllerPod* selfPod, float halfSideExtent); + + public static bool PxBoxControllerSetHalfSideExtentMut( PhysxPxBoxControllerPod* selfPod, float halfSideExtent) + { + byte ret = PxBoxControllerSetHalfSideExtentMutNative(selfPod, halfSideExtent); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxBoxController_setHalfForwardExtent_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBoxControllerSetHalfForwardExtentMutNative(PhysxPxBoxControllerPod* selfPod, float halfForwardExtent); + + public static bool PxBoxControllerSetHalfForwardExtentMut( PhysxPxBoxControllerPod* selfPod, float halfForwardExtent) + { + byte ret = PxBoxControllerSetHalfForwardExtentMutNative(selfPod, halfForwardExtent); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleControllerDesc_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCapsuleControllerDescPod* PxCapsuleControllerDescNewAllocNative(); + + public static PhysxPxCapsuleControllerDescPod* PxCapsuleControllerDescNewAlloc() + { + PhysxPxCapsuleControllerDescPod* ret = PxCapsuleControllerDescNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleControllerDesc_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCapsuleControllerDescDeleteNative(PhysxPxCapsuleControllerDescPod* selfPod); + + public static void PxCapsuleControllerDescDelete( PhysxPxCapsuleControllerDescPod* selfPod) + { + PxCapsuleControllerDescDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleControllerDesc_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCapsuleControllerDescSetToDefaultMutNative(PhysxPxCapsuleControllerDescPod* selfPod); + + public static void PxCapsuleControllerDescSetToDefaultMut( PhysxPxCapsuleControllerDescPod* selfPod) + { + PxCapsuleControllerDescSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleControllerDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCapsuleControllerDescIsValidNative(PhysxPxCapsuleControllerDescPod* selfPod); + + public static bool PxCapsuleControllerDescIsValid( PhysxPxCapsuleControllerDescPod* selfPod) + { + byte ret = PxCapsuleControllerDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleController_getRadius")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxCapsuleControllerGetRadiusNative(PhysxPxCapsuleControllerPod* selfPod); + + public static float PxCapsuleControllerGetRadius( PhysxPxCapsuleControllerPod* selfPod) + { + float ret = PxCapsuleControllerGetRadiusNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleController_setRadius_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCapsuleControllerSetRadiusMutNative(PhysxPxCapsuleControllerPod* selfPod, float radius); + + public static bool PxCapsuleControllerSetRadiusMut( PhysxPxCapsuleControllerPod* selfPod, float radius) + { + byte ret = PxCapsuleControllerSetRadiusMutNative(selfPod, radius); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleController_getHeight")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxCapsuleControllerGetHeightNative(PhysxPxCapsuleControllerPod* selfPod); + + public static float PxCapsuleControllerGetHeight( PhysxPxCapsuleControllerPod* selfPod) + { + float ret = PxCapsuleControllerGetHeightNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleController_setHeight_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCapsuleControllerSetHeightMutNative(PhysxPxCapsuleControllerPod* selfPod, float height); + + public static bool PxCapsuleControllerSetHeightMut( PhysxPxCapsuleControllerPod* selfPod, float height) + { + byte ret = PxCapsuleControllerSetHeightMutNative(selfPod, height); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleController_getClimbingMode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxCapsuleControllerGetClimbingModeNative(PhysxPxCapsuleControllerPod* selfPod); + + public static int PxCapsuleControllerGetClimbingMode( PhysxPxCapsuleControllerPod* selfPod) + { + int ret = PxCapsuleControllerGetClimbingModeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCapsuleController_setClimbingMode_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCapsuleControllerSetClimbingModeMutNative(PhysxPxCapsuleControllerPod* selfPod, int modePod); + + public static bool PxCapsuleControllerSetClimbingModeMut( PhysxPxCapsuleControllerPod* selfPod, int modePod) + { + byte ret = PxCapsuleControllerSetClimbingModeMutNative(selfPod, modePod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxControllerBehaviorCallback_getBehaviorFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxControllerBehaviorCallbackGetBehaviorFlagsMutNative(PhysxPxControllerBehaviorCallbackPod* selfPod, PhysxPxShapePod* shapePod, PhysxPxActorPod* actorPod); + + public static byte PxControllerBehaviorCallbackGetBehaviorFlagsMut( PhysxPxControllerBehaviorCallbackPod* selfPod, PhysxPxShapePod* shapePod, PhysxPxActorPod* actorPod) + { + byte ret = PxControllerBehaviorCallbackGetBehaviorFlagsMutNative(selfPod, shapePod, actorPod); + return ret; + } + + public static byte PxControllerBehaviorCallbackGetBehaviorFlagsMut( PhysxPxControllerBehaviorCallbackPod* selfPod, ref PhysxPxShapePod shapePod, PhysxPxActorPod* actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + byte ret = PxControllerBehaviorCallbackGetBehaviorFlagsMutNative(selfPod, (PhysxPxShapePod*)pshapePod, actorPod); + return ret; + } + } + + public static byte PxControllerBehaviorCallbackGetBehaviorFlagsMut( PhysxPxControllerBehaviorCallbackPod* selfPod, PhysxPxShapePod* shapePod, ref PhysxPxActorPod actorPod) + { + fixed (PhysxPxActorPod* pactorPod = &actorPod) + { + byte ret = PxControllerBehaviorCallbackGetBehaviorFlagsMutNative(selfPod, shapePod, (PhysxPxActorPod*)pactorPod); + return ret; + } + } + + public static byte PxControllerBehaviorCallbackGetBehaviorFlagsMut( PhysxPxControllerBehaviorCallbackPod* selfPod, ref PhysxPxShapePod shapePod, ref PhysxPxActorPod actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + fixed (PhysxPxActorPod* pactorPod = &actorPod) + { + byte ret = PxControllerBehaviorCallbackGetBehaviorFlagsMutNative(selfPod, (PhysxPxShapePod*)pshapePod, (PhysxPxActorPod*)pactorPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxControllerBehaviorCallback_getBehaviorFlags_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxControllerBehaviorCallbackGetBehaviorFlagsMut1Native(PhysxPxControllerBehaviorCallbackPod* selfPod, PhysxPxControllerPod* controllerPod); + + public static byte PxControllerBehaviorCallbackGetBehaviorFlagsMut1( PhysxPxControllerBehaviorCallbackPod* selfPod, PhysxPxControllerPod* controllerPod) + { + byte ret = PxControllerBehaviorCallbackGetBehaviorFlagsMut1Native(selfPod, controllerPod); + return ret; + } + + public static byte PxControllerBehaviorCallbackGetBehaviorFlagsMut1( PhysxPxControllerBehaviorCallbackPod* selfPod, ref PhysxPxControllerPod controllerPod) + { + fixed (PhysxPxControllerPod* pcontrollerPod = &controllerPod) + { + byte ret = PxControllerBehaviorCallbackGetBehaviorFlagsMut1Native(selfPod, (PhysxPxControllerPod*)pcontrollerPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxControllerBehaviorCallback_getBehaviorFlags_mut_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxControllerBehaviorCallbackGetBehaviorFlagsMut2Native(PhysxPxControllerBehaviorCallbackPod* selfPod, PhysxPxObstaclePod* obstaclePod); + + public static byte PxControllerBehaviorCallbackGetBehaviorFlagsMut2( PhysxPxControllerBehaviorCallbackPod* selfPod, PhysxPxObstaclePod* obstaclePod) + { + byte ret = PxControllerBehaviorCallbackGetBehaviorFlagsMut2Native(selfPod, obstaclePod); + return ret; + } + + public static byte PxControllerBehaviorCallbackGetBehaviorFlagsMut2( PhysxPxControllerBehaviorCallbackPod* selfPod, ref PhysxPxObstaclePod obstaclePod) + { + fixed (PhysxPxObstaclePod* pobstaclePod = &obstaclePod) + { + byte ret = PxControllerBehaviorCallbackGetBehaviorFlagsMut2Native(selfPod, (PhysxPxObstaclePod*)pobstaclePod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerManagerReleaseMutNative(PhysxPxControllerManagerPod* selfPod); + + public static void PxControllerManagerReleaseMut( PhysxPxControllerManagerPod* selfPod) + { + PxControllerManagerReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_getScene")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxScenePod* PxControllerManagerGetSceneNative(PhysxPxControllerManagerPod* selfPod); + + public static PhysxPxScenePod* PxControllerManagerGetScene( PhysxPxControllerManagerPod* selfPod) + { + PhysxPxScenePod* ret = PxControllerManagerGetSceneNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_getNbControllers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxControllerManagerGetNbControllersNative(PhysxPxControllerManagerPod* selfPod); + + public static uint PxControllerManagerGetNbControllers( PhysxPxControllerManagerPod* selfPod) + { + uint ret = PxControllerManagerGetNbControllersNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_getController_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxControllerPod* PxControllerManagerGetControllerMutNative(PhysxPxControllerManagerPod* selfPod, uint index); + + public static PhysxPxControllerPod* PxControllerManagerGetControllerMut( PhysxPxControllerManagerPod* selfPod, uint index) + { + PhysxPxControllerPod* ret = PxControllerManagerGetControllerMutNative(selfPod, index); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_createController_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxControllerPod* PxControllerManagerCreateControllerMutNative(PhysxPxControllerManagerPod* selfPod, PhysxPxControllerDescPod* descPod); + + public static PhysxPxControllerPod* PxControllerManagerCreateControllerMut( PhysxPxControllerManagerPod* selfPod, PhysxPxControllerDescPod* descPod) + { + PhysxPxControllerPod* ret = PxControllerManagerCreateControllerMutNative(selfPod, descPod); + return ret; + } + + public static PhysxPxControllerPod* PxControllerManagerCreateControllerMut( PhysxPxControllerManagerPod* selfPod, ref PhysxPxControllerDescPod descPod) + { + fixed (PhysxPxControllerDescPod* pdescPod = &descPod) + { + PhysxPxControllerPod* ret = PxControllerManagerCreateControllerMutNative(selfPod, (PhysxPxControllerDescPod*)pdescPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_purgeControllers_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerManagerPurgeControllersMutNative(PhysxPxControllerManagerPod* selfPod); + + public static void PxControllerManagerPurgeControllersMut( PhysxPxControllerManagerPod* selfPod) + { + PxControllerManagerPurgeControllersMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_getRenderBuffer_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRenderBufferPod* PxControllerManagerGetRenderBufferMutNative(PhysxPxControllerManagerPod* selfPod); + + public static PhysxPxRenderBufferPod* PxControllerManagerGetRenderBufferMut( PhysxPxControllerManagerPod* selfPod) + { + PhysxPxRenderBufferPod* ret = PxControllerManagerGetRenderBufferMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_setDebugRenderingFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerManagerSetDebugRenderingFlagsMutNative(PhysxPxControllerManagerPod* selfPod, uint flagsPod); + + public static void PxControllerManagerSetDebugRenderingFlagsMut( PhysxPxControllerManagerPod* selfPod, uint flagsPod) + { + PxControllerManagerSetDebugRenderingFlagsMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_getNbObstacleContexts")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxControllerManagerGetNbObstacleContextsNative(PhysxPxControllerManagerPod* selfPod); + + public static uint PxControllerManagerGetNbObstacleContexts( PhysxPxControllerManagerPod* selfPod) + { + uint ret = PxControllerManagerGetNbObstacleContextsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_getObstacleContext_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxObstacleContextPod* PxControllerManagerGetObstacleContextMutNative(PhysxPxControllerManagerPod* selfPod, uint index); + + public static PhysxPxObstacleContextPod* PxControllerManagerGetObstacleContextMut( PhysxPxControllerManagerPod* selfPod, uint index) + { + PhysxPxObstacleContextPod* ret = PxControllerManagerGetObstacleContextMutNative(selfPod, index); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_createObstacleContext_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxObstacleContextPod* PxControllerManagerCreateObstacleContextMutNative(PhysxPxControllerManagerPod* selfPod); + + public static PhysxPxObstacleContextPod* PxControllerManagerCreateObstacleContextMut( PhysxPxControllerManagerPod* selfPod) + { + PhysxPxObstacleContextPod* ret = PxControllerManagerCreateObstacleContextMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_computeInteractions_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerManagerComputeInteractionsMutNative(PhysxPxControllerManagerPod* selfPod, float elapsedTime, PhysxPxControllerFilterCallbackPod* cctfiltercbPod); + + public static void PxControllerManagerComputeInteractionsMut( PhysxPxControllerManagerPod* selfPod, float elapsedTime, PhysxPxControllerFilterCallbackPod* cctfiltercbPod) + { + PxControllerManagerComputeInteractionsMutNative(selfPod, elapsedTime, cctfiltercbPod); + } + + public static void PxControllerManagerComputeInteractionsMut( PhysxPxControllerManagerPod* selfPod, float elapsedTime, ref PhysxPxControllerFilterCallbackPod cctfiltercbPod) + { + fixed (PhysxPxControllerFilterCallbackPod* pcctfiltercbPod = &cctfiltercbPod) + { + PxControllerManagerComputeInteractionsMutNative(selfPod, elapsedTime, (PhysxPxControllerFilterCallbackPod*)pcctfiltercbPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_setTessellation_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerManagerSetTessellationMutNative(PhysxPxControllerManagerPod* selfPod, byte flag, float maxEdgeLength); + + public static void PxControllerManagerSetTessellationMut( PhysxPxControllerManagerPod* selfPod, bool flag, float maxEdgeLength) + { + PxControllerManagerSetTessellationMutNative(selfPod, flag ? (byte)1 : (byte)0, maxEdgeLength); + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_setOverlapRecoveryModule_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerManagerSetOverlapRecoveryModuleMutNative(PhysxPxControllerManagerPod* selfPod, byte flag); + + public static void PxControllerManagerSetOverlapRecoveryModuleMut( PhysxPxControllerManagerPod* selfPod, bool flag) + { + PxControllerManagerSetOverlapRecoveryModuleMutNative(selfPod, flag ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_setPreciseSweeps_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerManagerSetPreciseSweepsMutNative(PhysxPxControllerManagerPod* selfPod, byte flag); + + public static void PxControllerManagerSetPreciseSweepsMut( PhysxPxControllerManagerPod* selfPod, bool flag) + { + PxControllerManagerSetPreciseSweepsMutNative(selfPod, flag ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_setPreventVerticalSlidingAgainstCeiling_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerManagerSetPreventVerticalSlidingAgainstCeilingMutNative(PhysxPxControllerManagerPod* selfPod, byte flag); + + public static void PxControllerManagerSetPreventVerticalSlidingAgainstCeilingMut( PhysxPxControllerManagerPod* selfPod, bool flag) + { + PxControllerManagerSetPreventVerticalSlidingAgainstCeilingMutNative(selfPod, flag ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxControllerManager_shiftOrigin_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxControllerManagerShiftOriginMutNative(PhysxPxControllerManagerPod* selfPod, PhysxPxVec3Pod* shiftPod); + + public static void PxControllerManagerShiftOriginMut( PhysxPxControllerManagerPod* selfPod, PhysxPxVec3Pod* shiftPod) + { + PxControllerManagerShiftOriginMutNative(selfPod, shiftPod); + } + + public static void PxControllerManagerShiftOriginMut( PhysxPxControllerManagerPod* selfPod, ref PhysxPxVec3Pod shiftPod) + { + fixed (PhysxPxVec3Pod* pshiftPod = &shiftPod) + { + PxControllerManagerShiftOriginMutNative(selfPod, (PhysxPxVec3Pod*)pshiftPod); + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateControllerManager")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxControllerManagerPod* PhysPxCreateControllerManagerNative(PhysxPxScenePod* scenePod, byte lockingEnabled); + + public static PhysxPxControllerManagerPod* PhysPxCreateControllerManager( PhysxPxScenePod* scenePod, bool lockingEnabled) + { + PhysxPxControllerManagerPod* ret = PhysPxCreateControllerManagerNative(scenePod, lockingEnabled ? (byte)1 : (byte)0); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDim3_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDim3Pod PxDim3NewNative(); + + public static PhysxPxDim3Pod PxDim3New() + { + PhysxPxDim3Pod ret = PxDim3NewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSDFDesc_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSDFDescPod PxSDFDescNewNative(); + + public static PhysxPxSDFDescPod PxSDFDescNew() + { + PhysxPxSDFDescPod ret = PxSDFDescNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSDFDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSDFDescIsValidNative(PhysxPxSDFDescPod* selfPod); + + public static bool PxSDFDescIsValid( PhysxPxSDFDescPod* selfPod) + { + byte ret = PxSDFDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMeshDesc_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConvexMeshDescPod PxConvexMeshDescNewNative(); + + public static PhysxPxConvexMeshDescPod PxConvexMeshDescNew() + { + PhysxPxConvexMeshDescPod ret = PxConvexMeshDescNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMeshDesc_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxConvexMeshDescSetToDefaultMutNative(PhysxPxConvexMeshDescPod* selfPod); + + public static void PxConvexMeshDescSetToDefaultMut( PhysxPxConvexMeshDescPod* selfPod) + { + PxConvexMeshDescSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxConvexMeshDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxConvexMeshDescIsValidNative(PhysxPxConvexMeshDescPod* selfPod); + + public static bool PxConvexMeshDescIsValid( PhysxPxConvexMeshDescPod* selfPod) + { + byte ret = PxConvexMeshDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMeshDesc_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTriangleMeshDescPod PxTriangleMeshDescNewNative(); + + public static PhysxPxTriangleMeshDescPod PxTriangleMeshDescNew() + { + PhysxPxTriangleMeshDescPod ret = PxTriangleMeshDescNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMeshDesc_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTriangleMeshDescSetToDefaultMutNative(PhysxPxTriangleMeshDescPod* selfPod); + + public static void PxTriangleMeshDescSetToDefaultMut( PhysxPxTriangleMeshDescPod* selfPod) + { + PxTriangleMeshDescSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMeshDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTriangleMeshDescIsValidNative(PhysxPxTriangleMeshDescPod* selfPod); + + public static bool PxTriangleMeshDescIsValid( PhysxPxTriangleMeshDescPod* selfPod) + { + byte ret = PxTriangleMeshDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMeshDesc_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTetrahedronMeshDescPod PxTetrahedronMeshDescNewNative(); + + public static PhysxPxTetrahedronMeshDescPod PxTetrahedronMeshDescNew() + { + PhysxPxTetrahedronMeshDescPod ret = PxTetrahedronMeshDescNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMeshDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTetrahedronMeshDescIsValidNative(PhysxPxTetrahedronMeshDescPod* selfPod); + + public static bool PxTetrahedronMeshDescIsValid( PhysxPxTetrahedronMeshDescPod* selfPod) + { + byte ret = PxTetrahedronMeshDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxSoftBodySimulationDataDesc_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSoftBodySimulationDataDescPod PxSoftBodySimulationDataDescNewNative(); + + public static PhysxPxSoftBodySimulationDataDescPod PxSoftBodySimulationDataDescNew() + { + PhysxPxSoftBodySimulationDataDescPod ret = PxSoftBodySimulationDataDescNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSoftBodySimulationDataDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSoftBodySimulationDataDescIsValidNative(PhysxPxSoftBodySimulationDataDescPod* selfPod); + + public static bool PxSoftBodySimulationDataDescIsValid( PhysxPxSoftBodySimulationDataDescPod* selfPod) + { + byte ret = PxSoftBodySimulationDataDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxBVH34MidphaseDesc_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBVH34MidphaseDescSetToDefaultMutNative(PhysxPxBVH34MidphaseDescPod* selfPod); + + public static void PxBVH34MidphaseDescSetToDefaultMut( PhysxPxBVH34MidphaseDescPod* selfPod) + { + PxBVH34MidphaseDescSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBVH34MidphaseDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVH34MidphaseDescIsValidNative(PhysxPxBVH34MidphaseDescPod* selfPod); + + public static bool PxBVH34MidphaseDescIsValid( PhysxPxBVH34MidphaseDescPod* selfPod) + { + byte ret = PxBVH34MidphaseDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxMidphaseDesc_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMidphaseDescPod PxMidphaseDescNewNative(); + + public static PhysxPxMidphaseDescPod PxMidphaseDescNew() + { + PhysxPxMidphaseDescPod ret = PxMidphaseDescNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMidphaseDesc_getType")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxMidphaseDescGetTypeNative(PhysxPxMidphaseDescPod* selfPod); + + public static int PxMidphaseDescGetType( PhysxPxMidphaseDescPod* selfPod) + { + int ret = PxMidphaseDescGetTypeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMidphaseDesc_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMidphaseDescSetToDefaultMutNative(PhysxPxMidphaseDescPod* selfPod, int typePod); + + public static void PxMidphaseDescSetToDefaultMut( PhysxPxMidphaseDescPod* selfPod, int typePod) + { + PxMidphaseDescSetToDefaultMutNative(selfPod, typePod); + } + + [LibraryImport(LibName, EntryPoint = "PxMidphaseDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxMidphaseDescIsValidNative(PhysxPxMidphaseDescPod* selfPod); + + public static bool PxMidphaseDescIsValid( PhysxPxMidphaseDescPod* selfPod) + { + byte ret = PxMidphaseDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxBVHDesc_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBVHDescPod PxBVHDescNewNative(); + + public static PhysxPxBVHDescPod PxBVHDescNew() + { + PhysxPxBVHDescPod ret = PxBVHDescNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBVHDesc_setToDefault_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBVHDescSetToDefaultMutNative(PhysxPxBVHDescPod* selfPod); + + public static void PxBVHDescSetToDefaultMut( PhysxPxBVHDescPod* selfPod) + { + PxBVHDescSetToDefaultMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBVHDesc_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxBVHDescIsValidNative(PhysxPxBVHDescPod* selfPod); + + public static bool PxBVHDescIsValid( PhysxPxBVHDescPod* selfPod) + { + byte ret = PxBVHDescIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxCookingParams_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCookingParamsPod PxCookingParamsNewNative(PhysxPxTolerancesScalePod* scPod); + + public static PhysxPxCookingParamsPod PxCookingParamsNew( PhysxPxTolerancesScalePod* scPod) + { + PhysxPxCookingParamsPod ret = PxCookingParamsNewNative(scPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetStandaloneInsertionCallback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxInsertionCallbackPod* PhysPxGetStandaloneInsertionCallbackNative(); + + public static PhysxPxInsertionCallbackPod* PhysPxGetStandaloneInsertionCallback() + { + PhysxPxInsertionCallbackPod* ret = PhysPxGetStandaloneInsertionCallbackNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCookBVH")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxCookBVHNative(PhysxPxBVHDescPod* descPod, PhysxPxOutputStreamPod* streamPod); + + public static bool PhysPxCookBVH( PhysxPxBVHDescPod* descPod, PhysxPxOutputStreamPod* streamPod) + { + byte ret = PhysPxCookBVHNative(descPod, streamPod); + return ret != 0; + } + + public static bool PhysPxCookBVH( PhysxPxBVHDescPod* descPod, ref PhysxPxOutputStreamPod streamPod) + { + fixed (PhysxPxOutputStreamPod* pstreamPod = &streamPod) + { + byte ret = PhysPxCookBVHNative(descPod, (PhysxPxOutputStreamPod*)pstreamPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateBVH")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBVHPod* PhysPxCreateBVHNative(PhysxPxBVHDescPod* descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod); + + public static PhysxPxBVHPod* PhysPxCreateBVH( PhysxPxBVHDescPod* descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod) + { + PhysxPxBVHPod* ret = PhysPxCreateBVHNative(descPod, insertioncallbackPod); + return ret; + } + + public static PhysxPxBVHPod* PhysPxCreateBVH( PhysxPxBVHDescPod* descPod, ref PhysxPxInsertionCallbackPod insertioncallbackPod) + { + fixed (PhysxPxInsertionCallbackPod* pinsertioncallbackPod = &insertioncallbackPod) + { + PhysxPxBVHPod* ret = PhysPxCreateBVHNative(descPod, (PhysxPxInsertionCallbackPod*)pinsertioncallbackPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCookHeightField")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxCookHeightFieldNative(PhysxPxHeightFieldDescPod* descPod, PhysxPxOutputStreamPod* streamPod); + + public static bool PhysPxCookHeightField( PhysxPxHeightFieldDescPod* descPod, PhysxPxOutputStreamPod* streamPod) + { + byte ret = PhysPxCookHeightFieldNative(descPod, streamPod); + return ret != 0; + } + + public static bool PhysPxCookHeightField( PhysxPxHeightFieldDescPod* descPod, ref PhysxPxOutputStreamPod streamPod) + { + fixed (PhysxPxOutputStreamPod* pstreamPod = &streamPod) + { + byte ret = PhysPxCookHeightFieldNative(descPod, (PhysxPxOutputStreamPod*)pstreamPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateHeightField")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxHeightFieldPod* PhysPxCreateHeightFieldNative(PhysxPxHeightFieldDescPod* descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod); + + public static PhysxPxHeightFieldPod* PhysPxCreateHeightField( PhysxPxHeightFieldDescPod* descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod) + { + PhysxPxHeightFieldPod* ret = PhysPxCreateHeightFieldNative(descPod, insertioncallbackPod); + return ret; + } + + public static PhysxPxHeightFieldPod* PhysPxCreateHeightField( PhysxPxHeightFieldDescPod* descPod, ref PhysxPxInsertionCallbackPod insertioncallbackPod) + { + fixed (PhysxPxInsertionCallbackPod* pinsertioncallbackPod = &insertioncallbackPod) + { + PhysxPxHeightFieldPod* ret = PhysPxCreateHeightFieldNative(descPod, (PhysxPxInsertionCallbackPod*)pinsertioncallbackPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCookConvexMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxCookConvexMeshNative(PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod, PhysxPxOutputStreamPod* streamPod, int* conditionPod); + + public static bool PhysPxCookConvexMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod, PhysxPxOutputStreamPod* streamPod, int* conditionPod) + { + byte ret = PhysPxCookConvexMeshNative(paramsPod, descPod, streamPod, conditionPod); + return ret != 0; + } + + public static bool PhysPxCookConvexMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxConvexMeshDescPod descPod, PhysxPxOutputStreamPod* streamPod, int* conditionPod) + { + fixed (PhysxPxConvexMeshDescPod* pdescPod = &descPod) + { + byte ret = PhysPxCookConvexMeshNative(paramsPod, (PhysxPxConvexMeshDescPod*)pdescPod, streamPod, conditionPod); + return ret != 0; + } + } + + public static bool PhysPxCookConvexMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod, ref PhysxPxOutputStreamPod streamPod, int* conditionPod) + { + fixed (PhysxPxOutputStreamPod* pstreamPod = &streamPod) + { + byte ret = PhysPxCookConvexMeshNative(paramsPod, descPod, (PhysxPxOutputStreamPod*)pstreamPod, conditionPod); + return ret != 0; + } + } + + public static bool PhysPxCookConvexMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxConvexMeshDescPod descPod, ref PhysxPxOutputStreamPod streamPod, int* conditionPod) + { + fixed (PhysxPxConvexMeshDescPod* pdescPod = &descPod) + { + fixed (PhysxPxOutputStreamPod* pstreamPod = &streamPod) + { + byte ret = PhysPxCookConvexMeshNative(paramsPod, (PhysxPxConvexMeshDescPod*)pdescPod, (PhysxPxOutputStreamPod*)pstreamPod, conditionPod); + return ret != 0; + } + } + } + + public static bool PhysPxCookConvexMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod, PhysxPxOutputStreamPod* streamPod, ref int conditionPod) + { + fixed (int* pconditionPod = &conditionPod) + { + byte ret = PhysPxCookConvexMeshNative(paramsPod, descPod, streamPod, (int*)pconditionPod); + return ret != 0; + } + } + + public static bool PhysPxCookConvexMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxConvexMeshDescPod descPod, PhysxPxOutputStreamPod* streamPod, ref int conditionPod) + { + fixed (PhysxPxConvexMeshDescPod* pdescPod = &descPod) + { + fixed (int* pconditionPod = &conditionPod) + { + byte ret = PhysPxCookConvexMeshNative(paramsPod, (PhysxPxConvexMeshDescPod*)pdescPod, streamPod, (int*)pconditionPod); + return ret != 0; + } + } + } + + public static bool PhysPxCookConvexMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod, ref PhysxPxOutputStreamPod streamPod, ref int conditionPod) + { + fixed (PhysxPxOutputStreamPod* pstreamPod = &streamPod) + { + fixed (int* pconditionPod = &conditionPod) + { + byte ret = PhysPxCookConvexMeshNative(paramsPod, descPod, (PhysxPxOutputStreamPod*)pstreamPod, (int*)pconditionPod); + return ret != 0; + } + } + } + + public static bool PhysPxCookConvexMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxConvexMeshDescPod descPod, ref PhysxPxOutputStreamPod streamPod, ref int conditionPod) + { + fixed (PhysxPxConvexMeshDescPod* pdescPod = &descPod) + { + fixed (PhysxPxOutputStreamPod* pstreamPod = &streamPod) + { + fixed (int* pconditionPod = &conditionPod) + { + byte ret = PhysPxCookConvexMeshNative(paramsPod, (PhysxPxConvexMeshDescPod*)pdescPod, (PhysxPxOutputStreamPod*)pstreamPod, (int*)pconditionPod); + return ret != 0; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateConvexMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConvexMeshPod* PhysPxCreateConvexMeshNative(PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod, int* conditionPod); + + public static PhysxPxConvexMeshPod* PhysPxCreateConvexMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod, int* conditionPod) + { + PhysxPxConvexMeshPod* ret = PhysPxCreateConvexMeshNative(paramsPod, descPod, insertioncallbackPod, conditionPod); + return ret; + } + + public static PhysxPxConvexMeshPod* PhysPxCreateConvexMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxConvexMeshDescPod descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod, int* conditionPod) + { + fixed (PhysxPxConvexMeshDescPod* pdescPod = &descPod) + { + PhysxPxConvexMeshPod* ret = PhysPxCreateConvexMeshNative(paramsPod, (PhysxPxConvexMeshDescPod*)pdescPod, insertioncallbackPod, conditionPod); + return ret; + } + } + + public static PhysxPxConvexMeshPod* PhysPxCreateConvexMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod, ref PhysxPxInsertionCallbackPod insertioncallbackPod, int* conditionPod) + { + fixed (PhysxPxInsertionCallbackPod* pinsertioncallbackPod = &insertioncallbackPod) + { + PhysxPxConvexMeshPod* ret = PhysPxCreateConvexMeshNative(paramsPod, descPod, (PhysxPxInsertionCallbackPod*)pinsertioncallbackPod, conditionPod); + return ret; + } + } + + public static PhysxPxConvexMeshPod* PhysPxCreateConvexMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxConvexMeshDescPod descPod, ref PhysxPxInsertionCallbackPod insertioncallbackPod, int* conditionPod) + { + fixed (PhysxPxConvexMeshDescPod* pdescPod = &descPod) + { + fixed (PhysxPxInsertionCallbackPod* pinsertioncallbackPod = &insertioncallbackPod) + { + PhysxPxConvexMeshPod* ret = PhysPxCreateConvexMeshNative(paramsPod, (PhysxPxConvexMeshDescPod*)pdescPod, (PhysxPxInsertionCallbackPod*)pinsertioncallbackPod, conditionPod); + return ret; + } + } + } + + public static PhysxPxConvexMeshPod* PhysPxCreateConvexMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod, ref int conditionPod) + { + fixed (int* pconditionPod = &conditionPod) + { + PhysxPxConvexMeshPod* ret = PhysPxCreateConvexMeshNative(paramsPod, descPod, insertioncallbackPod, (int*)pconditionPod); + return ret; + } + } + + public static PhysxPxConvexMeshPod* PhysPxCreateConvexMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxConvexMeshDescPod descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod, ref int conditionPod) + { + fixed (PhysxPxConvexMeshDescPod* pdescPod = &descPod) + { + fixed (int* pconditionPod = &conditionPod) + { + PhysxPxConvexMeshPod* ret = PhysPxCreateConvexMeshNative(paramsPod, (PhysxPxConvexMeshDescPod*)pdescPod, insertioncallbackPod, (int*)pconditionPod); + return ret; + } + } + } + + public static PhysxPxConvexMeshPod* PhysPxCreateConvexMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod, ref PhysxPxInsertionCallbackPod insertioncallbackPod, ref int conditionPod) + { + fixed (PhysxPxInsertionCallbackPod* pinsertioncallbackPod = &insertioncallbackPod) + { + fixed (int* pconditionPod = &conditionPod) + { + PhysxPxConvexMeshPod* ret = PhysPxCreateConvexMeshNative(paramsPod, descPod, (PhysxPxInsertionCallbackPod*)pinsertioncallbackPod, (int*)pconditionPod); + return ret; + } + } + } + + public static PhysxPxConvexMeshPod* PhysPxCreateConvexMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxConvexMeshDescPod descPod, ref PhysxPxInsertionCallbackPod insertioncallbackPod, ref int conditionPod) + { + fixed (PhysxPxConvexMeshDescPod* pdescPod = &descPod) + { + fixed (PhysxPxInsertionCallbackPod* pinsertioncallbackPod = &insertioncallbackPod) + { + fixed (int* pconditionPod = &conditionPod) + { + PhysxPxConvexMeshPod* ret = PhysPxCreateConvexMeshNative(paramsPod, (PhysxPxConvexMeshDescPod*)pdescPod, (PhysxPxInsertionCallbackPod*)pinsertioncallbackPod, (int*)pconditionPod); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxValidateConvexMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxValidateConvexMeshNative(PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod); + + public static bool PhysPxValidateConvexMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxConvexMeshDescPod* descPod) + { + byte ret = PhysPxValidateConvexMeshNative(paramsPod, descPod); + return ret != 0; + } + + public static bool PhysPxValidateConvexMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxConvexMeshDescPod descPod) + { + fixed (PhysxPxConvexMeshDescPod* pdescPod = &descPod) + { + byte ret = PhysPxValidateConvexMeshNative(paramsPod, (PhysxPxConvexMeshDescPod*)pdescPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxComputeHullPolygons")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxComputeHullPolygonsNative(PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod); + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.010.cs b/Hexa.NET.PhysX/Generated/Functions.010.cs new file mode 100644 index 0000000..52ad907 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.010.cs @@ -0,0 +1,5022 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, PhysxPxHullPolygonPod** hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, hullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, uint* nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, nbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, uint** indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, indicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, uint* nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, nbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, PhysxPxVec3Pod** verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, verticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, uint* nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, nbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, PhysxPxAllocatorCallbackPod* incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, incallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, PhysxPxSimpleTriangleMeshPod* meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, meshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + } + + public static bool PhysPxComputeHullPolygons( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxSimpleTriangleMeshPod meshPod, ref PhysxPxAllocatorCallbackPod incallbackPod, ref uint nbvertsPod, ref PhysxPxVec3Pod* verticesPod, ref uint nbindicesPod, ref uint* indicesPod, ref uint nbpolygonsPod, ref PhysxPxHullPolygonPod* hullpolygonsPod) + { + fixed (PhysxPxSimpleTriangleMeshPod* pmeshPod = &meshPod) + { + fixed (PhysxPxAllocatorCallbackPod* pincallbackPod = &incallbackPod) + { + fixed (uint* pnbvertsPod = &nbvertsPod) + { + fixed (PhysxPxVec3Pod** pverticesPod = &verticesPod) + { + fixed (uint* pnbindicesPod = &nbindicesPod) + { + fixed (uint** pindicesPod = &indicesPod) + { + fixed (uint* pnbpolygonsPod = &nbpolygonsPod) + { + fixed (PhysxPxHullPolygonPod** phullpolygonsPod = &hullpolygonsPod) + { + byte ret = PhysPxComputeHullPolygonsNative(paramsPod, (PhysxPxSimpleTriangleMeshPod*)pmeshPod, (PhysxPxAllocatorCallbackPod*)pincallbackPod, (uint*)pnbvertsPod, (PhysxPxVec3Pod**)pverticesPod, (uint*)pnbindicesPod, (uint**)pindicesPod, (uint*)pnbpolygonsPod, (PhysxPxHullPolygonPod**)phullpolygonsPod); + return ret != 0; + } + } + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxValidateTriangleMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxValidateTriangleMeshNative(PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod); + + public static bool PhysPxValidateTriangleMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod) + { + byte ret = PhysPxValidateTriangleMeshNative(paramsPod, descPod); + return ret != 0; + } + + public static bool PhysPxValidateTriangleMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxTriangleMeshDescPod descPod) + { + fixed (PhysxPxTriangleMeshDescPod* pdescPod = &descPod) + { + byte ret = PhysPxValidateTriangleMeshNative(paramsPod, (PhysxPxTriangleMeshDescPod*)pdescPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateTriangleMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTriangleMeshPod* PhysPxCreateTriangleMeshNative(PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod, int* conditionPod); + + public static PhysxPxTriangleMeshPod* PhysPxCreateTriangleMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod, int* conditionPod) + { + PhysxPxTriangleMeshPod* ret = PhysPxCreateTriangleMeshNative(paramsPod, descPod, insertioncallbackPod, conditionPod); + return ret; + } + + public static PhysxPxTriangleMeshPod* PhysPxCreateTriangleMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxTriangleMeshDescPod descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod, int* conditionPod) + { + fixed (PhysxPxTriangleMeshDescPod* pdescPod = &descPod) + { + PhysxPxTriangleMeshPod* ret = PhysPxCreateTriangleMeshNative(paramsPod, (PhysxPxTriangleMeshDescPod*)pdescPod, insertioncallbackPod, conditionPod); + return ret; + } + } + + public static PhysxPxTriangleMeshPod* PhysPxCreateTriangleMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod, ref PhysxPxInsertionCallbackPod insertioncallbackPod, int* conditionPod) + { + fixed (PhysxPxInsertionCallbackPod* pinsertioncallbackPod = &insertioncallbackPod) + { + PhysxPxTriangleMeshPod* ret = PhysPxCreateTriangleMeshNative(paramsPod, descPod, (PhysxPxInsertionCallbackPod*)pinsertioncallbackPod, conditionPod); + return ret; + } + } + + public static PhysxPxTriangleMeshPod* PhysPxCreateTriangleMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxTriangleMeshDescPod descPod, ref PhysxPxInsertionCallbackPod insertioncallbackPod, int* conditionPod) + { + fixed (PhysxPxTriangleMeshDescPod* pdescPod = &descPod) + { + fixed (PhysxPxInsertionCallbackPod* pinsertioncallbackPod = &insertioncallbackPod) + { + PhysxPxTriangleMeshPod* ret = PhysPxCreateTriangleMeshNative(paramsPod, (PhysxPxTriangleMeshDescPod*)pdescPod, (PhysxPxInsertionCallbackPod*)pinsertioncallbackPod, conditionPod); + return ret; + } + } + } + + public static PhysxPxTriangleMeshPod* PhysPxCreateTriangleMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod, ref int conditionPod) + { + fixed (int* pconditionPod = &conditionPod) + { + PhysxPxTriangleMeshPod* ret = PhysPxCreateTriangleMeshNative(paramsPod, descPod, insertioncallbackPod, (int*)pconditionPod); + return ret; + } + } + + public static PhysxPxTriangleMeshPod* PhysPxCreateTriangleMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxTriangleMeshDescPod descPod, PhysxPxInsertionCallbackPod* insertioncallbackPod, ref int conditionPod) + { + fixed (PhysxPxTriangleMeshDescPod* pdescPod = &descPod) + { + fixed (int* pconditionPod = &conditionPod) + { + PhysxPxTriangleMeshPod* ret = PhysPxCreateTriangleMeshNative(paramsPod, (PhysxPxTriangleMeshDescPod*)pdescPod, insertioncallbackPod, (int*)pconditionPod); + return ret; + } + } + } + + public static PhysxPxTriangleMeshPod* PhysPxCreateTriangleMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod, ref PhysxPxInsertionCallbackPod insertioncallbackPod, ref int conditionPod) + { + fixed (PhysxPxInsertionCallbackPod* pinsertioncallbackPod = &insertioncallbackPod) + { + fixed (int* pconditionPod = &conditionPod) + { + PhysxPxTriangleMeshPod* ret = PhysPxCreateTriangleMeshNative(paramsPod, descPod, (PhysxPxInsertionCallbackPod*)pinsertioncallbackPod, (int*)pconditionPod); + return ret; + } + } + } + + public static PhysxPxTriangleMeshPod* PhysPxCreateTriangleMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxTriangleMeshDescPod descPod, ref PhysxPxInsertionCallbackPod insertioncallbackPod, ref int conditionPod) + { + fixed (PhysxPxTriangleMeshDescPod* pdescPod = &descPod) + { + fixed (PhysxPxInsertionCallbackPod* pinsertioncallbackPod = &insertioncallbackPod) + { + fixed (int* pconditionPod = &conditionPod) + { + PhysxPxTriangleMeshPod* ret = PhysPxCreateTriangleMeshNative(paramsPod, (PhysxPxTriangleMeshDescPod*)pdescPod, (PhysxPxInsertionCallbackPod*)pinsertioncallbackPod, (int*)pconditionPod); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCookTriangleMesh")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxCookTriangleMeshNative(PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod, PhysxPxOutputStreamPod* streamPod, int* conditionPod); + + public static bool PhysPxCookTriangleMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod, PhysxPxOutputStreamPod* streamPod, int* conditionPod) + { + byte ret = PhysPxCookTriangleMeshNative(paramsPod, descPod, streamPod, conditionPod); + return ret != 0; + } + + public static bool PhysPxCookTriangleMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxTriangleMeshDescPod descPod, PhysxPxOutputStreamPod* streamPod, int* conditionPod) + { + fixed (PhysxPxTriangleMeshDescPod* pdescPod = &descPod) + { + byte ret = PhysPxCookTriangleMeshNative(paramsPod, (PhysxPxTriangleMeshDescPod*)pdescPod, streamPod, conditionPod); + return ret != 0; + } + } + + public static bool PhysPxCookTriangleMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod, ref PhysxPxOutputStreamPod streamPod, int* conditionPod) + { + fixed (PhysxPxOutputStreamPod* pstreamPod = &streamPod) + { + byte ret = PhysPxCookTriangleMeshNative(paramsPod, descPod, (PhysxPxOutputStreamPod*)pstreamPod, conditionPod); + return ret != 0; + } + } + + public static bool PhysPxCookTriangleMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxTriangleMeshDescPod descPod, ref PhysxPxOutputStreamPod streamPod, int* conditionPod) + { + fixed (PhysxPxTriangleMeshDescPod* pdescPod = &descPod) + { + fixed (PhysxPxOutputStreamPod* pstreamPod = &streamPod) + { + byte ret = PhysPxCookTriangleMeshNative(paramsPod, (PhysxPxTriangleMeshDescPod*)pdescPod, (PhysxPxOutputStreamPod*)pstreamPod, conditionPod); + return ret != 0; + } + } + } + + public static bool PhysPxCookTriangleMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod, PhysxPxOutputStreamPod* streamPod, ref int conditionPod) + { + fixed (int* pconditionPod = &conditionPod) + { + byte ret = PhysPxCookTriangleMeshNative(paramsPod, descPod, streamPod, (int*)pconditionPod); + return ret != 0; + } + } + + public static bool PhysPxCookTriangleMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxTriangleMeshDescPod descPod, PhysxPxOutputStreamPod* streamPod, ref int conditionPod) + { + fixed (PhysxPxTriangleMeshDescPod* pdescPod = &descPod) + { + fixed (int* pconditionPod = &conditionPod) + { + byte ret = PhysPxCookTriangleMeshNative(paramsPod, (PhysxPxTriangleMeshDescPod*)pdescPod, streamPod, (int*)pconditionPod); + return ret != 0; + } + } + } + + public static bool PhysPxCookTriangleMesh( PhysxPxCookingParamsPod* paramsPod, PhysxPxTriangleMeshDescPod* descPod, ref PhysxPxOutputStreamPod streamPod, ref int conditionPod) + { + fixed (PhysxPxOutputStreamPod* pstreamPod = &streamPod) + { + fixed (int* pconditionPod = &conditionPod) + { + byte ret = PhysPxCookTriangleMeshNative(paramsPod, descPod, (PhysxPxOutputStreamPod*)pstreamPod, (int*)pconditionPod); + return ret != 0; + } + } + } + + public static bool PhysPxCookTriangleMesh( PhysxPxCookingParamsPod* paramsPod, ref PhysxPxTriangleMeshDescPod descPod, ref PhysxPxOutputStreamPod streamPod, ref int conditionPod) + { + fixed (PhysxPxTriangleMeshDescPod* pdescPod = &descPod) + { + fixed (PhysxPxOutputStreamPod* pstreamPod = &streamPod) + { + fixed (int* pconditionPod = &conditionPod) + { + byte ret = PhysPxCookTriangleMeshNative(paramsPod, (PhysxPxTriangleMeshDescPod*)pdescPod, (PhysxPxOutputStreamPod*)pstreamPod, (int*)pconditionPod); + return ret != 0; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultMemoryOutputStream_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDefaultMemoryOutputStreamPod* PxDefaultMemoryOutputStreamNewAllocNative(PhysxPxAllocatorCallbackPod* allocatorPod); + + public static PhysxPxDefaultMemoryOutputStreamPod* PxDefaultMemoryOutputStreamNewAlloc( PhysxPxAllocatorCallbackPod* allocatorPod) + { + PhysxPxDefaultMemoryOutputStreamPod* ret = PxDefaultMemoryOutputStreamNewAllocNative(allocatorPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultMemoryOutputStream_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDefaultMemoryOutputStreamDeleteNative(PhysxPxDefaultMemoryOutputStreamPod* selfPod); + + public static void PxDefaultMemoryOutputStreamDelete( PhysxPxDefaultMemoryOutputStreamPod* selfPod) + { + PxDefaultMemoryOutputStreamDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultMemoryOutputStream_write_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxDefaultMemoryOutputStreamWriteMutNative(PhysxPxDefaultMemoryOutputStreamPod* selfPod, void* src, uint count); + + public static uint PxDefaultMemoryOutputStreamWriteMut( PhysxPxDefaultMemoryOutputStreamPod* selfPod, void* src, uint count) + { + uint ret = PxDefaultMemoryOutputStreamWriteMutNative(selfPod, src, count); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultMemoryOutputStream_getSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxDefaultMemoryOutputStreamGetSizeNative(PhysxPxDefaultMemoryOutputStreamPod* selfPod); + + public static uint PxDefaultMemoryOutputStreamGetSize( PhysxPxDefaultMemoryOutputStreamPod* selfPod) + { + uint ret = PxDefaultMemoryOutputStreamGetSizeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultMemoryOutputStream_getData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxDefaultMemoryOutputStreamGetDataNative(PhysxPxDefaultMemoryOutputStreamPod* selfPod); + + public static byte* PxDefaultMemoryOutputStreamGetData( PhysxPxDefaultMemoryOutputStreamPod* selfPod) + { + byte* ret = PxDefaultMemoryOutputStreamGetDataNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultMemoryInputData_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDefaultMemoryInputDataPod* PxDefaultMemoryInputDataNewAllocNative(byte* data, uint length); + + public static PhysxPxDefaultMemoryInputDataPod* PxDefaultMemoryInputDataNewAlloc( byte* data, uint length) + { + PhysxPxDefaultMemoryInputDataPod* ret = PxDefaultMemoryInputDataNewAllocNative(data, length); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultMemoryInputData_read_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxDefaultMemoryInputDataReadMutNative(PhysxPxDefaultMemoryInputDataPod* selfPod, void* dest, uint count); + + public static uint PxDefaultMemoryInputDataReadMut( PhysxPxDefaultMemoryInputDataPod* selfPod, void* dest, uint count) + { + uint ret = PxDefaultMemoryInputDataReadMutNative(selfPod, dest, count); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultMemoryInputData_getLength")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxDefaultMemoryInputDataGetLengthNative(PhysxPxDefaultMemoryInputDataPod* selfPod); + + public static uint PxDefaultMemoryInputDataGetLength( PhysxPxDefaultMemoryInputDataPod* selfPod) + { + uint ret = PxDefaultMemoryInputDataGetLengthNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultMemoryInputData_seek_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDefaultMemoryInputDataSeekMutNative(PhysxPxDefaultMemoryInputDataPod* selfPod, uint pos); + + public static void PxDefaultMemoryInputDataSeekMut( PhysxPxDefaultMemoryInputDataPod* selfPod, uint pos) + { + PxDefaultMemoryInputDataSeekMutNative(selfPod, pos); + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultMemoryInputData_tell")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxDefaultMemoryInputDataTellNative(PhysxPxDefaultMemoryInputDataPod* selfPod); + + public static uint PxDefaultMemoryInputDataTell( PhysxPxDefaultMemoryInputDataPod* selfPod) + { + uint ret = PxDefaultMemoryInputDataTellNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultFileOutputStream_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDefaultFileOutputStreamPod* PxDefaultFileOutputStreamNewAllocNative(byte* name); + + public static PhysxPxDefaultFileOutputStreamPod* PxDefaultFileOutputStreamNewAlloc( byte* name) + { + PhysxPxDefaultFileOutputStreamPod* ret = PxDefaultFileOutputStreamNewAllocNative(name); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultFileOutputStream_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDefaultFileOutputStreamDeleteNative(PhysxPxDefaultFileOutputStreamPod* selfPod); + + public static void PxDefaultFileOutputStreamDelete( PhysxPxDefaultFileOutputStreamPod* selfPod) + { + PxDefaultFileOutputStreamDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultFileOutputStream_write_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxDefaultFileOutputStreamWriteMutNative(PhysxPxDefaultFileOutputStreamPod* selfPod, void* src, uint count); + + public static uint PxDefaultFileOutputStreamWriteMut( PhysxPxDefaultFileOutputStreamPod* selfPod, void* src, uint count) + { + uint ret = PxDefaultFileOutputStreamWriteMutNative(selfPod, src, count); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultFileOutputStream_isValid_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxDefaultFileOutputStreamIsValidMutNative(PhysxPxDefaultFileOutputStreamPod* selfPod); + + public static bool PxDefaultFileOutputStreamIsValidMut( PhysxPxDefaultFileOutputStreamPod* selfPod) + { + byte ret = PxDefaultFileOutputStreamIsValidMutNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultFileInputData_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDefaultFileInputDataPod* PxDefaultFileInputDataNewAllocNative(byte* name); + + public static PhysxPxDefaultFileInputDataPod* PxDefaultFileInputDataNewAlloc( byte* name) + { + PhysxPxDefaultFileInputDataPod* ret = PxDefaultFileInputDataNewAllocNative(name); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultFileInputData_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDefaultFileInputDataDeleteNative(PhysxPxDefaultFileInputDataPod* selfPod); + + public static void PxDefaultFileInputDataDelete( PhysxPxDefaultFileInputDataPod* selfPod) + { + PxDefaultFileInputDataDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultFileInputData_read_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxDefaultFileInputDataReadMutNative(PhysxPxDefaultFileInputDataPod* selfPod, void* dest, uint count); + + public static uint PxDefaultFileInputDataReadMut( PhysxPxDefaultFileInputDataPod* selfPod, void* dest, uint count) + { + uint ret = PxDefaultFileInputDataReadMutNative(selfPod, dest, count); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultFileInputData_seek_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDefaultFileInputDataSeekMutNative(PhysxPxDefaultFileInputDataPod* selfPod, uint pos); + + public static void PxDefaultFileInputDataSeekMut( PhysxPxDefaultFileInputDataPod* selfPod, uint pos) + { + PxDefaultFileInputDataSeekMutNative(selfPod, pos); + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultFileInputData_tell")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxDefaultFileInputDataTellNative(PhysxPxDefaultFileInputDataPod* selfPod); + + public static uint PxDefaultFileInputDataTell( PhysxPxDefaultFileInputDataPod* selfPod) + { + uint ret = PxDefaultFileInputDataTellNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultFileInputData_getLength")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxDefaultFileInputDataGetLengthNative(PhysxPxDefaultFileInputDataPod* selfPod); + + public static uint PxDefaultFileInputDataGetLength( PhysxPxDefaultFileInputDataPod* selfPod) + { + uint ret = PxDefaultFileInputDataGetLengthNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultFileInputData_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxDefaultFileInputDataIsValidNative(PhysxPxDefaultFileInputDataPod* selfPod); + + public static bool PxDefaultFileInputDataIsValid( PhysxPxDefaultFileInputDataPod* selfPod) + { + byte ret = PxDefaultFileInputDataIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "phys_platformAlignedAlloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PhysPlatformAlignedAllocNative(ulong sizePod); + + public static void* PhysPlatformAlignedAlloc( ulong sizePod) + { + void* ret = PhysPlatformAlignedAllocNative(sizePod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_platformAlignedFree")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPlatformAlignedFreeNative(void* ptr); + + public static void PhysPlatformAlignedFree( void* ptr) + { + PhysPlatformAlignedFreeNative(ptr); + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultAllocator_allocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void* PxDefaultAllocatorAllocateMutNative(PhysxPxDefaultAllocatorPod* selfPod, ulong sizePod, byte* anonparam1, byte* anonparam2, int anonparam3); + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, ulong sizePod, byte* anonparam1, byte* anonparam2, int anonparam3) + { + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, anonparam1, anonparam2, anonparam3); + return ret; + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, nuint sizePod, byte* anonparam1, byte* anonparam2, int anonparam3) + { + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, anonparam1, anonparam2, anonparam3); + return ret; + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, ulong sizePod, ref byte anonparam1, byte* anonparam2, int anonparam3) + { + fixed (byte* panonparam1 = &anonparam1) + { + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, (byte*)panonparam1, anonparam2, anonparam3); + return ret; + } + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, ulong sizePod, string anonparam1, byte* anonparam2, int anonparam3) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (anonparam1 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(anonparam1); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(anonparam1, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, pStr0, anonparam2, anonparam3); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, nuint sizePod, ref byte anonparam1, byte* anonparam2, int anonparam3) + { + fixed (byte* panonparam1 = &anonparam1) + { + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, (byte*)panonparam1, anonparam2, anonparam3); + return ret; + } + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, nuint sizePod, string anonparam1, byte* anonparam2, int anonparam3) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (anonparam1 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(anonparam1); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(anonparam1, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, pStr0, anonparam2, anonparam3); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, ulong sizePod, byte* anonparam1, ref byte anonparam2, int anonparam3) + { + fixed (byte* panonparam2 = &anonparam2) + { + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, anonparam1, (byte*)panonparam2, anonparam3); + return ret; + } + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, ulong sizePod, byte* anonparam1, string anonparam2, int anonparam3) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (anonparam2 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(anonparam2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(anonparam2, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, anonparam1, pStr0, anonparam3); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, nuint sizePod, byte* anonparam1, ref byte anonparam2, int anonparam3) + { + fixed (byte* panonparam2 = &anonparam2) + { + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, anonparam1, (byte*)panonparam2, anonparam3); + return ret; + } + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, nuint sizePod, byte* anonparam1, string anonparam2, int anonparam3) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (anonparam2 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(anonparam2); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(anonparam2, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, anonparam1, pStr0, anonparam3); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, ulong sizePod, ref byte anonparam1, ref byte anonparam2, int anonparam3) + { + fixed (byte* panonparam1 = &anonparam1) + { + fixed (byte* panonparam2 = &anonparam2) + { + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, (byte*)panonparam1, (byte*)panonparam2, anonparam3); + return ret; + } + } + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, ulong sizePod, string anonparam1, string anonparam2, int anonparam3) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (anonparam1 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(anonparam1); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(anonparam1, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (anonparam2 != null) + { + pStrSize1 = Utils.GetByteCountUTF8(anonparam2); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(anonparam2, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, pStr0, pStr1, anonparam3); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, nuint sizePod, ref byte anonparam1, ref byte anonparam2, int anonparam3) + { + fixed (byte* panonparam1 = &anonparam1) + { + fixed (byte* panonparam2 = &anonparam2) + { + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, (byte*)panonparam1, (byte*)panonparam2, anonparam3); + return ret; + } + } + } + + public static void* PxDefaultAllocatorAllocateMut( PhysxPxDefaultAllocatorPod* selfPod, nuint sizePod, string anonparam1, string anonparam2, int anonparam3) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (anonparam1 != null) + { + pStrSize0 = Utils.GetByteCountUTF8(anonparam1); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(anonparam1, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (anonparam2 != null) + { + pStrSize1 = Utils.GetByteCountUTF8(anonparam2); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(anonparam2, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + void* ret = PxDefaultAllocatorAllocateMutNative(selfPod, sizePod, pStr0, pStr1, anonparam3); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultAllocator_deallocate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDefaultAllocatorDeallocateMutNative(PhysxPxDefaultAllocatorPod* selfPod, void* ptr); + + public static void PxDefaultAllocatorDeallocateMut( PhysxPxDefaultAllocatorPod* selfPod, void* ptr) + { + PxDefaultAllocatorDeallocateMutNative(selfPod, ptr); + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultAllocator_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDefaultAllocatorDeleteNative(PhysxPxDefaultAllocatorPod* selfPod); + + public static void PxDefaultAllocatorDelete( PhysxPxDefaultAllocatorPod* selfPod) + { + PxDefaultAllocatorDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_setActors_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointSetActorsMutNative(PhysxPxJointPod* selfPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxRigidActorPod* actor1Pod); + + public static void PxJointSetActorsMut( PhysxPxJointPod* selfPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxRigidActorPod* actor1Pod) + { + PxJointSetActorsMutNative(selfPod, actor0Pod, actor1Pod); + } + + public static void PxJointSetActorsMut( PhysxPxJointPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxRigidActorPod* actor1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PxJointSetActorsMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, actor1Pod); + } + } + + public static void PxJointSetActorsMut( PhysxPxJointPod* selfPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxRigidActorPod actor1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PxJointSetActorsMutNative(selfPod, actor0Pod, (PhysxPxRigidActorPod*)pactor1Pod); + } + } + + public static void PxJointSetActorsMut( PhysxPxJointPod* selfPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxRigidActorPod actor1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PxJointSetActorsMutNative(selfPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxRigidActorPod*)pactor1Pod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getActors")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointGetActorsNative(PhysxPxJointPod* selfPod, PhysxPxRigidActorPod** actor0Pod, PhysxPxRigidActorPod** actor1Pod); + + public static void PxJointGetActors( PhysxPxJointPod* selfPod, PhysxPxRigidActorPod** actor0Pod, PhysxPxRigidActorPod** actor1Pod) + { + PxJointGetActorsNative(selfPod, actor0Pod, actor1Pod); + } + + public static void PxJointGetActors( PhysxPxJointPod* selfPod, ref PhysxPxRigidActorPod* actor0Pod, PhysxPxRigidActorPod** actor1Pod) + { + fixed (PhysxPxRigidActorPod** pactor0Pod = &actor0Pod) + { + PxJointGetActorsNative(selfPod, (PhysxPxRigidActorPod**)pactor0Pod, actor1Pod); + } + } + + public static void PxJointGetActors( PhysxPxJointPod* selfPod, PhysxPxRigidActorPod** actor0Pod, ref PhysxPxRigidActorPod* actor1Pod) + { + fixed (PhysxPxRigidActorPod** pactor1Pod = &actor1Pod) + { + PxJointGetActorsNative(selfPod, actor0Pod, (PhysxPxRigidActorPod**)pactor1Pod); + } + } + + public static void PxJointGetActors( PhysxPxJointPod* selfPod, ref PhysxPxRigidActorPod* actor0Pod, ref PhysxPxRigidActorPod* actor1Pod) + { + fixed (PhysxPxRigidActorPod** pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod** pactor1Pod = &actor1Pod) + { + PxJointGetActorsNative(selfPod, (PhysxPxRigidActorPod**)pactor0Pod, (PhysxPxRigidActorPod**)pactor1Pod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_setLocalPose_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointSetLocalPoseMutNative(PhysxPxJointPod* selfPod, int actorPod, PhysxPxTransformPod* localposePod); + + public static void PxJointSetLocalPoseMut( PhysxPxJointPod* selfPod, int actorPod, PhysxPxTransformPod* localposePod) + { + PxJointSetLocalPoseMutNative(selfPod, actorPod, localposePod); + } + + public static void PxJointSetLocalPoseMut( PhysxPxJointPod* selfPod, int actorPod, ref PhysxPxTransformPod localposePod) + { + fixed (PhysxPxTransformPod* plocalposePod = &localposePod) + { + PxJointSetLocalPoseMutNative(selfPod, actorPod, (PhysxPxTransformPod*)plocalposePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getLocalPose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxJointGetLocalPoseNative(PhysxPxJointPod* selfPod, int actorPod); + + public static PhysxPxTransformPod PxJointGetLocalPose( PhysxPxJointPod* selfPod, int actorPod) + { + PhysxPxTransformPod ret = PxJointGetLocalPoseNative(selfPod, actorPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getRelativeTransform")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxJointGetRelativeTransformNative(PhysxPxJointPod* selfPod); + + public static PhysxPxTransformPod PxJointGetRelativeTransform( PhysxPxJointPod* selfPod) + { + PhysxPxTransformPod ret = PxJointGetRelativeTransformNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getRelativeLinearVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxJointGetRelativeLinearVelocityNative(PhysxPxJointPod* selfPod); + + public static PhysxPxVec3Pod PxJointGetRelativeLinearVelocity( PhysxPxJointPod* selfPod) + { + PhysxPxVec3Pod ret = PxJointGetRelativeLinearVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getRelativeAngularVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxJointGetRelativeAngularVelocityNative(PhysxPxJointPod* selfPod); + + public static PhysxPxVec3Pod PxJointGetRelativeAngularVelocity( PhysxPxJointPod* selfPod) + { + PhysxPxVec3Pod ret = PxJointGetRelativeAngularVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_setBreakForce_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointSetBreakForceMutNative(PhysxPxJointPod* selfPod, float force, float torque); + + public static void PxJointSetBreakForceMut( PhysxPxJointPod* selfPod, float force, float torque) + { + PxJointSetBreakForceMutNative(selfPod, force, torque); + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getBreakForce")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointGetBreakForceNative(PhysxPxJointPod* selfPod, float* forcePod, float* torquePod); + + public static void PxJointGetBreakForce( PhysxPxJointPod* selfPod, float* forcePod, float* torquePod) + { + PxJointGetBreakForceNative(selfPod, forcePod, torquePod); + } + + public static void PxJointGetBreakForce( PhysxPxJointPod* selfPod, ref float forcePod, float* torquePod) + { + fixed (float* pforcePod = &forcePod) + { + PxJointGetBreakForceNative(selfPod, (float*)pforcePod, torquePod); + } + } + + public static void PxJointGetBreakForce( PhysxPxJointPod* selfPod, float* forcePod, ref float torquePod) + { + fixed (float* ptorquePod = &torquePod) + { + PxJointGetBreakForceNative(selfPod, forcePod, (float*)ptorquePod); + } + } + + public static void PxJointGetBreakForce( PhysxPxJointPod* selfPod, ref float forcePod, ref float torquePod) + { + fixed (float* pforcePod = &forcePod) + { + fixed (float* ptorquePod = &torquePod) + { + PxJointGetBreakForceNative(selfPod, (float*)pforcePod, (float*)ptorquePod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_setConstraintFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointSetConstraintFlagsMutNative(PhysxPxJointPod* selfPod, ushort flagsPod); + + public static void PxJointSetConstraintFlagsMut( PhysxPxJointPod* selfPod, ushort flagsPod) + { + PxJointSetConstraintFlagsMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_setConstraintFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointSetConstraintFlagMutNative(PhysxPxJointPod* selfPod, int flagPod, byte value); + + public static void PxJointSetConstraintFlagMut( PhysxPxJointPod* selfPod, int flagPod, bool value) + { + PxJointSetConstraintFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getConstraintFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxJointGetConstraintFlagsNative(PhysxPxJointPod* selfPod); + + public static ushort PxJointGetConstraintFlags( PhysxPxJointPod* selfPod) + { + ushort ret = PxJointGetConstraintFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_setInvMassScale0_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointSetInvMassScale0MutNative(PhysxPxJointPod* selfPod, float invMassScale); + + public static void PxJointSetInvMassScale0Mut( PhysxPxJointPod* selfPod, float invMassScale) + { + PxJointSetInvMassScale0MutNative(selfPod, invMassScale); + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getInvMassScale0")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxJointGetInvMassScale0Native(PhysxPxJointPod* selfPod); + + public static float PxJointGetInvMassScale0( PhysxPxJointPod* selfPod) + { + float ret = PxJointGetInvMassScale0Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_setInvInertiaScale0_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointSetInvInertiaScale0MutNative(PhysxPxJointPod* selfPod, float invInertiaScale); + + public static void PxJointSetInvInertiaScale0Mut( PhysxPxJointPod* selfPod, float invInertiaScale) + { + PxJointSetInvInertiaScale0MutNative(selfPod, invInertiaScale); + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getInvInertiaScale0")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxJointGetInvInertiaScale0Native(PhysxPxJointPod* selfPod); + + public static float PxJointGetInvInertiaScale0( PhysxPxJointPod* selfPod) + { + float ret = PxJointGetInvInertiaScale0Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_setInvMassScale1_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointSetInvMassScale1MutNative(PhysxPxJointPod* selfPod, float invMassScale); + + public static void PxJointSetInvMassScale1Mut( PhysxPxJointPod* selfPod, float invMassScale) + { + PxJointSetInvMassScale1MutNative(selfPod, invMassScale); + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getInvMassScale1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxJointGetInvMassScale1Native(PhysxPxJointPod* selfPod); + + public static float PxJointGetInvMassScale1( PhysxPxJointPod* selfPod) + { + float ret = PxJointGetInvMassScale1Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_setInvInertiaScale1_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointSetInvInertiaScale1MutNative(PhysxPxJointPod* selfPod, float invInertiaScale); + + public static void PxJointSetInvInertiaScale1Mut( PhysxPxJointPod* selfPod, float invInertiaScale) + { + PxJointSetInvInertiaScale1MutNative(selfPod, invInertiaScale); + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getInvInertiaScale1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxJointGetInvInertiaScale1Native(PhysxPxJointPod* selfPod); + + public static float PxJointGetInvInertiaScale1( PhysxPxJointPod* selfPod) + { + float ret = PxJointGetInvInertiaScale1Native(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getConstraint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxConstraintPod* PxJointGetConstraintNative(PhysxPxJointPod* selfPod); + + public static PhysxPxConstraintPod* PxJointGetConstraint( PhysxPxJointPod* selfPod) + { + PhysxPxConstraintPod* ret = PxJointGetConstraintNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_setName_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointSetNameMutNative(PhysxPxJointPod* selfPod, byte* name); + + public static void PxJointSetNameMut( PhysxPxJointPod* selfPod, byte* name) + { + PxJointSetNameMutNative(selfPod, name); + } + + public static void PxJointSetNameMut( PhysxPxJointPod* selfPod, ref byte name) + { + fixed (byte* pname = &name) + { + PxJointSetNameMutNative(selfPod, (byte*)pname); + } + } + + public static void PxJointSetNameMut( PhysxPxJointPod* selfPod, string name) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (name != null) + { + pStrSize0 = Utils.GetByteCountUTF8(name); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(name, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxJointSetNameMutNative(selfPod, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxJointGetNameNative(PhysxPxJointPod* selfPod); + + public static byte* PxJointGetName( PhysxPxJointPod* selfPod) + { + byte* ret = PxJointGetNameNative(selfPod); + return ret; + } + + public static string PxJointGetNameS( PhysxPxJointPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxJointGetNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointReleaseMutNative(PhysxPxJointPod* selfPod); + + public static void PxJointReleaseMut( PhysxPxJointPod* selfPod) + { + PxJointReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getScene")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxScenePod* PxJointGetSceneNative(PhysxPxJointPod* selfPod); + + public static PhysxPxScenePod* PxJointGetScene( PhysxPxJointPod* selfPod) + { + PhysxPxScenePod* ret = PxJointGetSceneNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJoint_getBinaryMetaData")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointGetBinaryMetaDataNative(PhysxPxOutputStreamPod* streamPod); + + public static void PxJointGetBinaryMetaData( PhysxPxOutputStreamPod* streamPod) + { + PxJointGetBinaryMetaDataNative(streamPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSpring_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSpringPod PxSpringNewNative(float stiffness, float damping); + + public static PhysxPxSpringPod PxSpringNew( float stiffness, float damping) + { + PhysxPxSpringPod ret = PxSpringNewNative(stiffness, damping); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSetJointGlobalFrame")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxSetJointGlobalFrameNative(PhysxPxJointPod* jointPod, PhysxPxVec3Pod* wsanchorPod, PhysxPxVec3Pod* wsaxisPod); + + public static void PhysPxSetJointGlobalFrame( PhysxPxJointPod* jointPod, PhysxPxVec3Pod* wsanchorPod, PhysxPxVec3Pod* wsaxisPod) + { + PhysPxSetJointGlobalFrameNative(jointPod, wsanchorPod, wsaxisPod); + } + + public static void PhysPxSetJointGlobalFrame( PhysxPxJointPod* jointPod, ref PhysxPxVec3Pod wsanchorPod, PhysxPxVec3Pod* wsaxisPod) + { + fixed (PhysxPxVec3Pod* pwsanchorPod = &wsanchorPod) + { + PhysPxSetJointGlobalFrameNative(jointPod, (PhysxPxVec3Pod*)pwsanchorPod, wsaxisPod); + } + } + + public static void PhysPxSetJointGlobalFrame( PhysxPxJointPod* jointPod, PhysxPxVec3Pod* wsanchorPod, ref PhysxPxVec3Pod wsaxisPod) + { + fixed (PhysxPxVec3Pod* pwsaxisPod = &wsaxisPod) + { + PhysPxSetJointGlobalFrameNative(jointPod, wsanchorPod, (PhysxPxVec3Pod*)pwsaxisPod); + } + } + + public static void PhysPxSetJointGlobalFrame( PhysxPxJointPod* jointPod, ref PhysxPxVec3Pod wsanchorPod, ref PhysxPxVec3Pod wsaxisPod) + { + fixed (PhysxPxVec3Pod* pwsanchorPod = &wsanchorPod) + { + fixed (PhysxPxVec3Pod* pwsaxisPod = &wsaxisPod) + { + PhysPxSetJointGlobalFrameNative(jointPod, (PhysxPxVec3Pod*)pwsanchorPod, (PhysxPxVec3Pod*)pwsaxisPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxDistanceJointCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDistanceJointPod* PhysPxDistanceJointCreateNative(PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod); + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxDistanceJointPod* PhysPxDistanceJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxDistanceJointPod* ret = PhysPxDistanceJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_getDistance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxDistanceJointGetDistanceNative(PhysxPxDistanceJointPod* selfPod); + + public static float PxDistanceJointGetDistance( PhysxPxDistanceJointPod* selfPod) + { + float ret = PxDistanceJointGetDistanceNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_setMinDistance_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDistanceJointSetMinDistanceMutNative(PhysxPxDistanceJointPod* selfPod, float distance); + + public static void PxDistanceJointSetMinDistanceMut( PhysxPxDistanceJointPod* selfPod, float distance) + { + PxDistanceJointSetMinDistanceMutNative(selfPod, distance); + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_getMinDistance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxDistanceJointGetMinDistanceNative(PhysxPxDistanceJointPod* selfPod); + + public static float PxDistanceJointGetMinDistance( PhysxPxDistanceJointPod* selfPod) + { + float ret = PxDistanceJointGetMinDistanceNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_setMaxDistance_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDistanceJointSetMaxDistanceMutNative(PhysxPxDistanceJointPod* selfPod, float distance); + + public static void PxDistanceJointSetMaxDistanceMut( PhysxPxDistanceJointPod* selfPod, float distance) + { + PxDistanceJointSetMaxDistanceMutNative(selfPod, distance); + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_getMaxDistance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxDistanceJointGetMaxDistanceNative(PhysxPxDistanceJointPod* selfPod); + + public static float PxDistanceJointGetMaxDistance( PhysxPxDistanceJointPod* selfPod) + { + float ret = PxDistanceJointGetMaxDistanceNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_setTolerance_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDistanceJointSetToleranceMutNative(PhysxPxDistanceJointPod* selfPod, float tolerance); + + public static void PxDistanceJointSetToleranceMut( PhysxPxDistanceJointPod* selfPod, float tolerance) + { + PxDistanceJointSetToleranceMutNative(selfPod, tolerance); + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_getTolerance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxDistanceJointGetToleranceNative(PhysxPxDistanceJointPod* selfPod); + + public static float PxDistanceJointGetTolerance( PhysxPxDistanceJointPod* selfPod) + { + float ret = PxDistanceJointGetToleranceNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_setStiffness_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDistanceJointSetStiffnessMutNative(PhysxPxDistanceJointPod* selfPod, float stiffness); + + public static void PxDistanceJointSetStiffnessMut( PhysxPxDistanceJointPod* selfPod, float stiffness) + { + PxDistanceJointSetStiffnessMutNative(selfPod, stiffness); + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_getStiffness")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxDistanceJointGetStiffnessNative(PhysxPxDistanceJointPod* selfPod); + + public static float PxDistanceJointGetStiffness( PhysxPxDistanceJointPod* selfPod) + { + float ret = PxDistanceJointGetStiffnessNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_setDamping_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDistanceJointSetDampingMutNative(PhysxPxDistanceJointPod* selfPod, float damping); + + public static void PxDistanceJointSetDampingMut( PhysxPxDistanceJointPod* selfPod, float damping) + { + PxDistanceJointSetDampingMutNative(selfPod, damping); + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_getDamping")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxDistanceJointGetDampingNative(PhysxPxDistanceJointPod* selfPod); + + public static float PxDistanceJointGetDamping( PhysxPxDistanceJointPod* selfPod) + { + float ret = PxDistanceJointGetDampingNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_setContactDistance_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDistanceJointSetContactDistanceMutNative(PhysxPxDistanceJointPod* selfPod, float contactDistance); + + public static void PxDistanceJointSetContactDistanceMut( PhysxPxDistanceJointPod* selfPod, float contactDistance) + { + PxDistanceJointSetContactDistanceMutNative(selfPod, contactDistance); + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_getContactDistance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxDistanceJointGetContactDistanceNative(PhysxPxDistanceJointPod* selfPod); + + public static float PxDistanceJointGetContactDistance( PhysxPxDistanceJointPod* selfPod) + { + float ret = PxDistanceJointGetContactDistanceNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_setDistanceJointFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDistanceJointSetDistanceJointFlagsMutNative(PhysxPxDistanceJointPod* selfPod, ushort flagsPod); + + public static void PxDistanceJointSetDistanceJointFlagsMut( PhysxPxDistanceJointPod* selfPod, ushort flagsPod) + { + PxDistanceJointSetDistanceJointFlagsMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_setDistanceJointFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDistanceJointSetDistanceJointFlagMutNative(PhysxPxDistanceJointPod* selfPod, int flagPod, byte value); + + public static void PxDistanceJointSetDistanceJointFlagMut( PhysxPxDistanceJointPod* selfPod, int flagPod, bool value) + { + PxDistanceJointSetDistanceJointFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_getDistanceJointFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxDistanceJointGetDistanceJointFlagsNative(PhysxPxDistanceJointPod* selfPod); + + public static ushort PxDistanceJointGetDistanceJointFlags( PhysxPxDistanceJointPod* selfPod) + { + ushort ret = PxDistanceJointGetDistanceJointFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDistanceJoint_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxDistanceJointGetConcreteTypeNameNative(PhysxPxDistanceJointPod* selfPod); + + public static byte* PxDistanceJointGetConcreteTypeName( PhysxPxDistanceJointPod* selfPod) + { + byte* ret = PxDistanceJointGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxDistanceJointGetConcreteTypeNameS( PhysxPxDistanceJointPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxDistanceJointGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxContactJointCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxContactJointPod* PhysPxContactJointCreateNative(PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod); + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxContactJointPod* PhysPxContactJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxContactJointPod* ret = PhysPxContactJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxJacobianRow_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJacobianRowPod PxJacobianRowNewNative(); + + public static PhysxPxJacobianRowPod PxJacobianRowNew() + { + PhysxPxJacobianRowPod ret = PxJacobianRowNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJacobianRow_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJacobianRowPod PxJacobianRowNew1Native(PhysxPxVec3Pod* lin0Pod, PhysxPxVec3Pod* lin1Pod, PhysxPxVec3Pod* ang0Pod, PhysxPxVec3Pod* ang1Pod); + + public static PhysxPxJacobianRowPod PxJacobianRowNew1( PhysxPxVec3Pod* lin0Pod, PhysxPxVec3Pod* lin1Pod, PhysxPxVec3Pod* ang0Pod, PhysxPxVec3Pod* ang1Pod) + { + PhysxPxJacobianRowPod ret = PxJacobianRowNew1Native(lin0Pod, lin1Pod, ang0Pod, ang1Pod); + return ret; + } + + public static PhysxPxJacobianRowPod PxJacobianRowNew1( PhysxPxVec3Pod* lin0Pod, ref PhysxPxVec3Pod lin1Pod, PhysxPxVec3Pod* ang0Pod, PhysxPxVec3Pod* ang1Pod) + { + fixed (PhysxPxVec3Pod* plin1Pod = &lin1Pod) + { + PhysxPxJacobianRowPod ret = PxJacobianRowNew1Native(lin0Pod, (PhysxPxVec3Pod*)plin1Pod, ang0Pod, ang1Pod); + return ret; + } + } + + public static PhysxPxJacobianRowPod PxJacobianRowNew1( PhysxPxVec3Pod* lin0Pod, PhysxPxVec3Pod* lin1Pod, ref PhysxPxVec3Pod ang0Pod, PhysxPxVec3Pod* ang1Pod) + { + fixed (PhysxPxVec3Pod* pang0Pod = &ang0Pod) + { + PhysxPxJacobianRowPod ret = PxJacobianRowNew1Native(lin0Pod, lin1Pod, (PhysxPxVec3Pod*)pang0Pod, ang1Pod); + return ret; + } + } + + public static PhysxPxJacobianRowPod PxJacobianRowNew1( PhysxPxVec3Pod* lin0Pod, ref PhysxPxVec3Pod lin1Pod, ref PhysxPxVec3Pod ang0Pod, PhysxPxVec3Pod* ang1Pod) + { + fixed (PhysxPxVec3Pod* plin1Pod = &lin1Pod) + { + fixed (PhysxPxVec3Pod* pang0Pod = &ang0Pod) + { + PhysxPxJacobianRowPod ret = PxJacobianRowNew1Native(lin0Pod, (PhysxPxVec3Pod*)plin1Pod, (PhysxPxVec3Pod*)pang0Pod, ang1Pod); + return ret; + } + } + } + + public static PhysxPxJacobianRowPod PxJacobianRowNew1( PhysxPxVec3Pod* lin0Pod, PhysxPxVec3Pod* lin1Pod, PhysxPxVec3Pod* ang0Pod, ref PhysxPxVec3Pod ang1Pod) + { + fixed (PhysxPxVec3Pod* pang1Pod = &ang1Pod) + { + PhysxPxJacobianRowPod ret = PxJacobianRowNew1Native(lin0Pod, lin1Pod, ang0Pod, (PhysxPxVec3Pod*)pang1Pod); + return ret; + } + } + + public static PhysxPxJacobianRowPod PxJacobianRowNew1( PhysxPxVec3Pod* lin0Pod, ref PhysxPxVec3Pod lin1Pod, PhysxPxVec3Pod* ang0Pod, ref PhysxPxVec3Pod ang1Pod) + { + fixed (PhysxPxVec3Pod* plin1Pod = &lin1Pod) + { + fixed (PhysxPxVec3Pod* pang1Pod = &ang1Pod) + { + PhysxPxJacobianRowPod ret = PxJacobianRowNew1Native(lin0Pod, (PhysxPxVec3Pod*)plin1Pod, ang0Pod, (PhysxPxVec3Pod*)pang1Pod); + return ret; + } + } + } + + public static PhysxPxJacobianRowPod PxJacobianRowNew1( PhysxPxVec3Pod* lin0Pod, PhysxPxVec3Pod* lin1Pod, ref PhysxPxVec3Pod ang0Pod, ref PhysxPxVec3Pod ang1Pod) + { + fixed (PhysxPxVec3Pod* pang0Pod = &ang0Pod) + { + fixed (PhysxPxVec3Pod* pang1Pod = &ang1Pod) + { + PhysxPxJacobianRowPod ret = PxJacobianRowNew1Native(lin0Pod, lin1Pod, (PhysxPxVec3Pod*)pang0Pod, (PhysxPxVec3Pod*)pang1Pod); + return ret; + } + } + } + + public static PhysxPxJacobianRowPod PxJacobianRowNew1( PhysxPxVec3Pod* lin0Pod, ref PhysxPxVec3Pod lin1Pod, ref PhysxPxVec3Pod ang0Pod, ref PhysxPxVec3Pod ang1Pod) + { + fixed (PhysxPxVec3Pod* plin1Pod = &lin1Pod) + { + fixed (PhysxPxVec3Pod* pang0Pod = &ang0Pod) + { + fixed (PhysxPxVec3Pod* pang1Pod = &ang1Pod) + { + PhysxPxJacobianRowPod ret = PxJacobianRowNew1Native(lin0Pod, (PhysxPxVec3Pod*)plin1Pod, (PhysxPxVec3Pod*)pang0Pod, (PhysxPxVec3Pod*)pang1Pod); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_setContact_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactJointSetContactMutNative(PhysxPxContactJointPod* selfPod, PhysxPxVec3Pod* contactPod); + + public static void PxContactJointSetContactMut( PhysxPxContactJointPod* selfPod, PhysxPxVec3Pod* contactPod) + { + PxContactJointSetContactMutNative(selfPod, contactPod); + } + + public static void PxContactJointSetContactMut( PhysxPxContactJointPod* selfPod, ref PhysxPxVec3Pod contactPod) + { + fixed (PhysxPxVec3Pod* pcontactPod = &contactPod) + { + PxContactJointSetContactMutNative(selfPod, (PhysxPxVec3Pod*)pcontactPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_setContactNormal_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactJointSetContactNormalMutNative(PhysxPxContactJointPod* selfPod, PhysxPxVec3Pod* contactnormalPod); + + public static void PxContactJointSetContactNormalMut( PhysxPxContactJointPod* selfPod, PhysxPxVec3Pod* contactnormalPod) + { + PxContactJointSetContactNormalMutNative(selfPod, contactnormalPod); + } + + public static void PxContactJointSetContactNormalMut( PhysxPxContactJointPod* selfPod, ref PhysxPxVec3Pod contactnormalPod) + { + fixed (PhysxPxVec3Pod* pcontactnormalPod = &contactnormalPod) + { + PxContactJointSetContactNormalMutNative(selfPod, (PhysxPxVec3Pod*)pcontactnormalPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_setPenetration_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactJointSetPenetrationMutNative(PhysxPxContactJointPod* selfPod, float penetration); + + public static void PxContactJointSetPenetrationMut( PhysxPxContactJointPod* selfPod, float penetration) + { + PxContactJointSetPenetrationMutNative(selfPod, penetration); + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_getContact")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxContactJointGetContactNative(PhysxPxContactJointPod* selfPod); + + public static PhysxPxVec3Pod PxContactJointGetContact( PhysxPxContactJointPod* selfPod) + { + PhysxPxVec3Pod ret = PxContactJointGetContactNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_getContactNormal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxContactJointGetContactNormalNative(PhysxPxContactJointPod* selfPod); + + public static PhysxPxVec3Pod PxContactJointGetContactNormal( PhysxPxContactJointPod* selfPod) + { + PhysxPxVec3Pod ret = PxContactJointGetContactNormalNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_getPenetration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactJointGetPenetrationNative(PhysxPxContactJointPod* selfPod); + + public static float PxContactJointGetPenetration( PhysxPxContactJointPod* selfPod) + { + float ret = PxContactJointGetPenetrationNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_getRestitution")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactJointGetRestitutionNative(PhysxPxContactJointPod* selfPod); + + public static float PxContactJointGetRestitution( PhysxPxContactJointPod* selfPod) + { + float ret = PxContactJointGetRestitutionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_setRestitution_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactJointSetRestitutionMutNative(PhysxPxContactJointPod* selfPod, float restitution); + + public static void PxContactJointSetRestitutionMut( PhysxPxContactJointPod* selfPod, float restitution) + { + PxContactJointSetRestitutionMutNative(selfPod, restitution); + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_getBounceThreshold")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxContactJointGetBounceThresholdNative(PhysxPxContactJointPod* selfPod); + + public static float PxContactJointGetBounceThreshold( PhysxPxContactJointPod* selfPod) + { + float ret = PxContactJointGetBounceThresholdNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_setBounceThreshold_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactJointSetBounceThresholdMutNative(PhysxPxContactJointPod* selfPod, float bounceThreshold); + + public static void PxContactJointSetBounceThresholdMut( PhysxPxContactJointPod* selfPod, float bounceThreshold) + { + PxContactJointSetBounceThresholdMutNative(selfPod, bounceThreshold); + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxContactJointGetConcreteTypeNameNative(PhysxPxContactJointPod* selfPod); + + public static byte* PxContactJointGetConcreteTypeName( PhysxPxContactJointPod* selfPod) + { + byte* ret = PxContactJointGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxContactJointGetConcreteTypeNameS( PhysxPxContactJointPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxContactJointGetConcreteTypeNameNative(selfPod)); + return ret; + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.011.cs b/Hexa.NET.PhysX/Generated/Functions.011.cs new file mode 100644 index 0000000..94f7816 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.011.cs @@ -0,0 +1,5036 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_computeJacobians")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxContactJointComputeJacobiansNative(PhysxPxContactJointPod* selfPod, PhysxPxJacobianRowPod* jacobianPod); + + public static void PxContactJointComputeJacobians( PhysxPxContactJointPod* selfPod, PhysxPxJacobianRowPod* jacobianPod) + { + PxContactJointComputeJacobiansNative(selfPod, jacobianPod); + } + + public static void PxContactJointComputeJacobians( PhysxPxContactJointPod* selfPod, ref PhysxPxJacobianRowPod jacobianPod) + { + fixed (PhysxPxJacobianRowPod* pjacobianPod = &jacobianPod) + { + PxContactJointComputeJacobiansNative(selfPod, (PhysxPxJacobianRowPod*)pjacobianPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxContactJoint_getNbJacobianRows")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxContactJointGetNbJacobianRowsNative(PhysxPxContactJointPod* selfPod); + + public static uint PxContactJointGetNbJacobianRows( PhysxPxContactJointPod* selfPod) + { + uint ret = PxContactJointGetNbJacobianRowsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxFixedJointCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxFixedJointPod* PhysPxFixedJointCreateNative(PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod); + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxFixedJointPod* PhysPxFixedJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxFixedJointPod* ret = PhysPxFixedJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxFixedJoint_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxFixedJointGetConcreteTypeNameNative(PhysxPxFixedJointPod* selfPod); + + public static byte* PxFixedJointGetConcreteTypeName( PhysxPxFixedJointPod* selfPod) + { + byte* ret = PxFixedJointGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxFixedJointGetConcreteTypeNameS( PhysxPxFixedJointPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxFixedJointGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLimitParameters_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLimitParametersPod* PxJointLimitParametersNewAllocNative(); + + public static PhysxPxJointLimitParametersPod* PxJointLimitParametersNewAlloc() + { + PhysxPxJointLimitParametersPod* ret = PxJointLimitParametersNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLimitParameters_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxJointLimitParametersIsValidNative(PhysxPxJointLimitParametersPod* selfPod); + + public static bool PxJointLimitParametersIsValid( PhysxPxJointLimitParametersPod* selfPod) + { + byte ret = PxJointLimitParametersIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLimitParameters_isSoft")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxJointLimitParametersIsSoftNative(PhysxPxJointLimitParametersPod* selfPod); + + public static bool PxJointLimitParametersIsSoft( PhysxPxJointLimitParametersPod* selfPod) + { + byte ret = PxJointLimitParametersIsSoftNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLinearLimit_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLinearLimitPod PxJointLinearLimitNewNative(PhysxPxTolerancesScalePod* scalePod, float extent, float contactdistDeprecated); + + public static PhysxPxJointLinearLimitPod PxJointLinearLimitNew( PhysxPxTolerancesScalePod* scalePod, float extent, float contactdistDeprecated) + { + PhysxPxJointLinearLimitPod ret = PxJointLinearLimitNewNative(scalePod, extent, contactdistDeprecated); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLinearLimit_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLinearLimitPod PxJointLinearLimitNew1Native(float extent, PhysxPxSpringPod* springPod); + + public static PhysxPxJointLinearLimitPod PxJointLinearLimitNew1( float extent, PhysxPxSpringPod* springPod) + { + PhysxPxJointLinearLimitPod ret = PxJointLinearLimitNew1Native(extent, springPod); + return ret; + } + + public static PhysxPxJointLinearLimitPod PxJointLinearLimitNew1( float extent, ref PhysxPxSpringPod springPod) + { + fixed (PhysxPxSpringPod* pspringPod = &springPod) + { + PhysxPxJointLinearLimitPod ret = PxJointLinearLimitNew1Native(extent, (PhysxPxSpringPod*)pspringPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxJointLinearLimit_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxJointLinearLimitIsValidNative(PhysxPxJointLinearLimitPod* selfPod); + + public static bool PxJointLinearLimitIsValid( PhysxPxJointLinearLimitPod* selfPod) + { + byte ret = PxJointLinearLimitIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLinearLimit_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointLinearLimitDeleteNative(PhysxPxJointLinearLimitPod* selfPod); + + public static void PxJointLinearLimitDelete( PhysxPxJointLinearLimitPod* selfPod) + { + PxJointLinearLimitDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxJointLinearLimitPair_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLinearLimitPairPod PxJointLinearLimitPairNewNative(PhysxPxTolerancesScalePod* scalePod, float lowerLimit, float upperLimit, float contactdistDeprecated); + + public static PhysxPxJointLinearLimitPairPod PxJointLinearLimitPairNew( PhysxPxTolerancesScalePod* scalePod, float lowerLimit, float upperLimit, float contactdistDeprecated) + { + PhysxPxJointLinearLimitPairPod ret = PxJointLinearLimitPairNewNative(scalePod, lowerLimit, upperLimit, contactdistDeprecated); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLinearLimitPair_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLinearLimitPairPod PxJointLinearLimitPairNew1Native(float lowerLimit, float upperLimit, PhysxPxSpringPod* springPod); + + public static PhysxPxJointLinearLimitPairPod PxJointLinearLimitPairNew1( float lowerLimit, float upperLimit, PhysxPxSpringPod* springPod) + { + PhysxPxJointLinearLimitPairPod ret = PxJointLinearLimitPairNew1Native(lowerLimit, upperLimit, springPod); + return ret; + } + + public static PhysxPxJointLinearLimitPairPod PxJointLinearLimitPairNew1( float lowerLimit, float upperLimit, ref PhysxPxSpringPod springPod) + { + fixed (PhysxPxSpringPod* pspringPod = &springPod) + { + PhysxPxJointLinearLimitPairPod ret = PxJointLinearLimitPairNew1Native(lowerLimit, upperLimit, (PhysxPxSpringPod*)pspringPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxJointLinearLimitPair_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxJointLinearLimitPairIsValidNative(PhysxPxJointLinearLimitPairPod* selfPod); + + public static bool PxJointLinearLimitPairIsValid( PhysxPxJointLinearLimitPairPod* selfPod) + { + byte ret = PxJointLinearLimitPairIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLinearLimitPair_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointLinearLimitPairDeleteNative(PhysxPxJointLinearLimitPairPod* selfPod); + + public static void PxJointLinearLimitPairDelete( PhysxPxJointLinearLimitPairPod* selfPod) + { + PxJointLinearLimitPairDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxJointAngularLimitPair_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointAngularLimitPairPod PxJointAngularLimitPairNewNative(float lowerLimit, float upperLimit, float contactdistDeprecated); + + public static PhysxPxJointAngularLimitPairPod PxJointAngularLimitPairNew( float lowerLimit, float upperLimit, float contactdistDeprecated) + { + PhysxPxJointAngularLimitPairPod ret = PxJointAngularLimitPairNewNative(lowerLimit, upperLimit, contactdistDeprecated); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJointAngularLimitPair_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointAngularLimitPairPod PxJointAngularLimitPairNew1Native(float lowerLimit, float upperLimit, PhysxPxSpringPod* springPod); + + public static PhysxPxJointAngularLimitPairPod PxJointAngularLimitPairNew1( float lowerLimit, float upperLimit, PhysxPxSpringPod* springPod) + { + PhysxPxJointAngularLimitPairPod ret = PxJointAngularLimitPairNew1Native(lowerLimit, upperLimit, springPod); + return ret; + } + + public static PhysxPxJointAngularLimitPairPod PxJointAngularLimitPairNew1( float lowerLimit, float upperLimit, ref PhysxPxSpringPod springPod) + { + fixed (PhysxPxSpringPod* pspringPod = &springPod) + { + PhysxPxJointAngularLimitPairPod ret = PxJointAngularLimitPairNew1Native(lowerLimit, upperLimit, (PhysxPxSpringPod*)pspringPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxJointAngularLimitPair_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxJointAngularLimitPairIsValidNative(PhysxPxJointAngularLimitPairPod* selfPod); + + public static bool PxJointAngularLimitPairIsValid( PhysxPxJointAngularLimitPairPod* selfPod) + { + byte ret = PxJointAngularLimitPairIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxJointAngularLimitPair_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointAngularLimitPairDeleteNative(PhysxPxJointAngularLimitPairPod* selfPod); + + public static void PxJointAngularLimitPairDelete( PhysxPxJointAngularLimitPairPod* selfPod) + { + PxJointAngularLimitPairDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxJointLimitCone_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLimitConePod PxJointLimitConeNewNative(float yLimitAngle, float zLimitAngle, float contactdistDeprecated); + + public static PhysxPxJointLimitConePod PxJointLimitConeNew( float yLimitAngle, float zLimitAngle, float contactdistDeprecated) + { + PhysxPxJointLimitConePod ret = PxJointLimitConeNewNative(yLimitAngle, zLimitAngle, contactdistDeprecated); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLimitCone_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLimitConePod PxJointLimitConeNew1Native(float yLimitAngle, float zLimitAngle, PhysxPxSpringPod* springPod); + + public static PhysxPxJointLimitConePod PxJointLimitConeNew1( float yLimitAngle, float zLimitAngle, PhysxPxSpringPod* springPod) + { + PhysxPxJointLimitConePod ret = PxJointLimitConeNew1Native(yLimitAngle, zLimitAngle, springPod); + return ret; + } + + public static PhysxPxJointLimitConePod PxJointLimitConeNew1( float yLimitAngle, float zLimitAngle, ref PhysxPxSpringPod springPod) + { + fixed (PhysxPxSpringPod* pspringPod = &springPod) + { + PhysxPxJointLimitConePod ret = PxJointLimitConeNew1Native(yLimitAngle, zLimitAngle, (PhysxPxSpringPod*)pspringPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxJointLimitCone_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxJointLimitConeIsValidNative(PhysxPxJointLimitConePod* selfPod); + + public static bool PxJointLimitConeIsValid( PhysxPxJointLimitConePod* selfPod) + { + byte ret = PxJointLimitConeIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLimitCone_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointLimitConeDeleteNative(PhysxPxJointLimitConePod* selfPod); + + public static void PxJointLimitConeDelete( PhysxPxJointLimitConePod* selfPod) + { + PxJointLimitConeDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxJointLimitPyramid_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLimitPyramidPod PxJointLimitPyramidNewNative(float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, float contactdistDeprecated); + + public static PhysxPxJointLimitPyramidPod PxJointLimitPyramidNew( float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, float contactdistDeprecated) + { + PhysxPxJointLimitPyramidPod ret = PxJointLimitPyramidNewNative(yLimitAngleMin, yLimitAngleMax, zLimitAngleMin, zLimitAngleMax, contactdistDeprecated); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLimitPyramid_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLimitPyramidPod PxJointLimitPyramidNew1Native(float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, PhysxPxSpringPod* springPod); + + public static PhysxPxJointLimitPyramidPod PxJointLimitPyramidNew1( float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, PhysxPxSpringPod* springPod) + { + PhysxPxJointLimitPyramidPod ret = PxJointLimitPyramidNew1Native(yLimitAngleMin, yLimitAngleMax, zLimitAngleMin, zLimitAngleMax, springPod); + return ret; + } + + public static PhysxPxJointLimitPyramidPod PxJointLimitPyramidNew1( float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, ref PhysxPxSpringPod springPod) + { + fixed (PhysxPxSpringPod* pspringPod = &springPod) + { + PhysxPxJointLimitPyramidPod ret = PxJointLimitPyramidNew1Native(yLimitAngleMin, yLimitAngleMax, zLimitAngleMin, zLimitAngleMax, (PhysxPxSpringPod*)pspringPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxJointLimitPyramid_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxJointLimitPyramidIsValidNative(PhysxPxJointLimitPyramidPod* selfPod); + + public static bool PxJointLimitPyramidIsValid( PhysxPxJointLimitPyramidPod* selfPod) + { + byte ret = PxJointLimitPyramidIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxJointLimitPyramid_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxJointLimitPyramidDeleteNative(PhysxPxJointLimitPyramidPod* selfPod); + + public static void PxJointLimitPyramidDelete( PhysxPxJointLimitPyramidPod* selfPod) + { + PxJointLimitPyramidDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxPrismaticJointCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreateNative(PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod); + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxPrismaticJointPod* PhysPxPrismaticJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxPrismaticJointPod* ret = PhysPxPrismaticJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPrismaticJoint_getPosition")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxPrismaticJointGetPositionNative(PhysxPxPrismaticJointPod* selfPod); + + public static float PxPrismaticJointGetPosition( PhysxPxPrismaticJointPod* selfPod) + { + float ret = PxPrismaticJointGetPositionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPrismaticJoint_getVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxPrismaticJointGetVelocityNative(PhysxPxPrismaticJointPod* selfPod); + + public static float PxPrismaticJointGetVelocity( PhysxPxPrismaticJointPod* selfPod) + { + float ret = PxPrismaticJointGetVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPrismaticJoint_setLimit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPrismaticJointSetLimitMutNative(PhysxPxPrismaticJointPod* selfPod, PhysxPxJointLinearLimitPairPod* anonparam0Pod); + + public static void PxPrismaticJointSetLimitMut( PhysxPxPrismaticJointPod* selfPod, PhysxPxJointLinearLimitPairPod* anonparam0Pod) + { + PxPrismaticJointSetLimitMutNative(selfPod, anonparam0Pod); + } + + public static void PxPrismaticJointSetLimitMut( PhysxPxPrismaticJointPod* selfPod, ref PhysxPxJointLinearLimitPairPod anonparam0Pod) + { + fixed (PhysxPxJointLinearLimitPairPod* panonparam0Pod = &anonparam0Pod) + { + PxPrismaticJointSetLimitMutNative(selfPod, (PhysxPxJointLinearLimitPairPod*)panonparam0Pod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxPrismaticJoint_getLimit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLinearLimitPairPod PxPrismaticJointGetLimitNative(PhysxPxPrismaticJointPod* selfPod); + + public static PhysxPxJointLinearLimitPairPod PxPrismaticJointGetLimit( PhysxPxPrismaticJointPod* selfPod) + { + PhysxPxJointLinearLimitPairPod ret = PxPrismaticJointGetLimitNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPrismaticJoint_setPrismaticJointFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPrismaticJointSetPrismaticJointFlagsMutNative(PhysxPxPrismaticJointPod* selfPod, ushort flagsPod); + + public static void PxPrismaticJointSetPrismaticJointFlagsMut( PhysxPxPrismaticJointPod* selfPod, ushort flagsPod) + { + PxPrismaticJointSetPrismaticJointFlagsMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxPrismaticJoint_setPrismaticJointFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPrismaticJointSetPrismaticJointFlagMutNative(PhysxPxPrismaticJointPod* selfPod, int flagPod, byte value); + + public static void PxPrismaticJointSetPrismaticJointFlagMut( PhysxPxPrismaticJointPod* selfPod, int flagPod, bool value) + { + PxPrismaticJointSetPrismaticJointFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxPrismaticJoint_getPrismaticJointFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxPrismaticJointGetPrismaticJointFlagsNative(PhysxPxPrismaticJointPod* selfPod); + + public static ushort PxPrismaticJointGetPrismaticJointFlags( PhysxPxPrismaticJointPod* selfPod) + { + ushort ret = PxPrismaticJointGetPrismaticJointFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPrismaticJoint_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxPrismaticJointGetConcreteTypeNameNative(PhysxPxPrismaticJointPod* selfPod); + + public static byte* PxPrismaticJointGetConcreteTypeName( PhysxPxPrismaticJointPod* selfPod) + { + byte* ret = PxPrismaticJointGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxPrismaticJointGetConcreteTypeNameS( PhysxPxPrismaticJointPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxPrismaticJointGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxRevoluteJointCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreateNative(PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod); + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxRevoluteJointPod* PhysPxRevoluteJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRevoluteJointPod* ret = PhysPxRevoluteJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_getAngle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRevoluteJointGetAngleNative(PhysxPxRevoluteJointPod* selfPod); + + public static float PxRevoluteJointGetAngle( PhysxPxRevoluteJointPod* selfPod) + { + float ret = PxRevoluteJointGetAngleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_getVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRevoluteJointGetVelocityNative(PhysxPxRevoluteJointPod* selfPod); + + public static float PxRevoluteJointGetVelocity( PhysxPxRevoluteJointPod* selfPod) + { + float ret = PxRevoluteJointGetVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_setLimit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRevoluteJointSetLimitMutNative(PhysxPxRevoluteJointPod* selfPod, PhysxPxJointAngularLimitPairPod* limitsPod); + + public static void PxRevoluteJointSetLimitMut( PhysxPxRevoluteJointPod* selfPod, PhysxPxJointAngularLimitPairPod* limitsPod) + { + PxRevoluteJointSetLimitMutNative(selfPod, limitsPod); + } + + public static void PxRevoluteJointSetLimitMut( PhysxPxRevoluteJointPod* selfPod, ref PhysxPxJointAngularLimitPairPod limitsPod) + { + fixed (PhysxPxJointAngularLimitPairPod* plimitsPod = &limitsPod) + { + PxRevoluteJointSetLimitMutNative(selfPod, (PhysxPxJointAngularLimitPairPod*)plimitsPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_getLimit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointAngularLimitPairPod PxRevoluteJointGetLimitNative(PhysxPxRevoluteJointPod* selfPod); + + public static PhysxPxJointAngularLimitPairPod PxRevoluteJointGetLimit( PhysxPxRevoluteJointPod* selfPod) + { + PhysxPxJointAngularLimitPairPod ret = PxRevoluteJointGetLimitNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_setDriveVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRevoluteJointSetDriveVelocityMutNative(PhysxPxRevoluteJointPod* selfPod, float velocity, byte autowake); + + public static void PxRevoluteJointSetDriveVelocityMut( PhysxPxRevoluteJointPod* selfPod, float velocity, bool autowake) + { + PxRevoluteJointSetDriveVelocityMutNative(selfPod, velocity, autowake ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_getDriveVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRevoluteJointGetDriveVelocityNative(PhysxPxRevoluteJointPod* selfPod); + + public static float PxRevoluteJointGetDriveVelocity( PhysxPxRevoluteJointPod* selfPod) + { + float ret = PxRevoluteJointGetDriveVelocityNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_setDriveForceLimit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRevoluteJointSetDriveForceLimitMutNative(PhysxPxRevoluteJointPod* selfPod, float limit); + + public static void PxRevoluteJointSetDriveForceLimitMut( PhysxPxRevoluteJointPod* selfPod, float limit) + { + PxRevoluteJointSetDriveForceLimitMutNative(selfPod, limit); + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_getDriveForceLimit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRevoluteJointGetDriveForceLimitNative(PhysxPxRevoluteJointPod* selfPod); + + public static float PxRevoluteJointGetDriveForceLimit( PhysxPxRevoluteJointPod* selfPod) + { + float ret = PxRevoluteJointGetDriveForceLimitNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_setDriveGearRatio_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRevoluteJointSetDriveGearRatioMutNative(PhysxPxRevoluteJointPod* selfPod, float ratio); + + public static void PxRevoluteJointSetDriveGearRatioMut( PhysxPxRevoluteJointPod* selfPod, float ratio) + { + PxRevoluteJointSetDriveGearRatioMutNative(selfPod, ratio); + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_getDriveGearRatio")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRevoluteJointGetDriveGearRatioNative(PhysxPxRevoluteJointPod* selfPod); + + public static float PxRevoluteJointGetDriveGearRatio( PhysxPxRevoluteJointPod* selfPod) + { + float ret = PxRevoluteJointGetDriveGearRatioNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_setRevoluteJointFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRevoluteJointSetRevoluteJointFlagsMutNative(PhysxPxRevoluteJointPod* selfPod, ushort flagsPod); + + public static void PxRevoluteJointSetRevoluteJointFlagsMut( PhysxPxRevoluteJointPod* selfPod, ushort flagsPod) + { + PxRevoluteJointSetRevoluteJointFlagsMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_setRevoluteJointFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRevoluteJointSetRevoluteJointFlagMutNative(PhysxPxRevoluteJointPod* selfPod, int flagPod, byte value); + + public static void PxRevoluteJointSetRevoluteJointFlagMut( PhysxPxRevoluteJointPod* selfPod, int flagPod, bool value) + { + PxRevoluteJointSetRevoluteJointFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_getRevoluteJointFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxRevoluteJointGetRevoluteJointFlagsNative(PhysxPxRevoluteJointPod* selfPod); + + public static ushort PxRevoluteJointGetRevoluteJointFlags( PhysxPxRevoluteJointPod* selfPod) + { + ushort ret = PxRevoluteJointGetRevoluteJointFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRevoluteJoint_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxRevoluteJointGetConcreteTypeNameNative(PhysxPxRevoluteJointPod* selfPod); + + public static byte* PxRevoluteJointGetConcreteTypeName( PhysxPxRevoluteJointPod* selfPod) + { + byte* ret = PxRevoluteJointGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxRevoluteJointGetConcreteTypeNameS( PhysxPxRevoluteJointPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxRevoluteJointGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSphericalJointCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSphericalJointPod* PhysPxSphericalJointCreateNative(PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod); + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxSphericalJointPod* PhysPxSphericalJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxSphericalJointPod* ret = PhysPxSphericalJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSphericalJoint_getLimitCone")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLimitConePod PxSphericalJointGetLimitConeNative(PhysxPxSphericalJointPod* selfPod); + + public static PhysxPxJointLimitConePod PxSphericalJointGetLimitCone( PhysxPxSphericalJointPod* selfPod) + { + PhysxPxJointLimitConePod ret = PxSphericalJointGetLimitConeNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSphericalJoint_setLimitCone_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSphericalJointSetLimitConeMutNative(PhysxPxSphericalJointPod* selfPod, PhysxPxJointLimitConePod* limitPod); + + public static void PxSphericalJointSetLimitConeMut( PhysxPxSphericalJointPod* selfPod, PhysxPxJointLimitConePod* limitPod) + { + PxSphericalJointSetLimitConeMutNative(selfPod, limitPod); + } + + public static void PxSphericalJointSetLimitConeMut( PhysxPxSphericalJointPod* selfPod, ref PhysxPxJointLimitConePod limitPod) + { + fixed (PhysxPxJointLimitConePod* plimitPod = &limitPod) + { + PxSphericalJointSetLimitConeMutNative(selfPod, (PhysxPxJointLimitConePod*)plimitPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxSphericalJoint_getSwingYAngle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxSphericalJointGetSwingYAngleNative(PhysxPxSphericalJointPod* selfPod); + + public static float PxSphericalJointGetSwingYAngle( PhysxPxSphericalJointPod* selfPod) + { + float ret = PxSphericalJointGetSwingYAngleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSphericalJoint_getSwingZAngle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxSphericalJointGetSwingZAngleNative(PhysxPxSphericalJointPod* selfPod); + + public static float PxSphericalJointGetSwingZAngle( PhysxPxSphericalJointPod* selfPod) + { + float ret = PxSphericalJointGetSwingZAngleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSphericalJoint_setSphericalJointFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSphericalJointSetSphericalJointFlagsMutNative(PhysxPxSphericalJointPod* selfPod, ushort flagsPod); + + public static void PxSphericalJointSetSphericalJointFlagsMut( PhysxPxSphericalJointPod* selfPod, ushort flagsPod) + { + PxSphericalJointSetSphericalJointFlagsMutNative(selfPod, flagsPod); + } + + [LibraryImport(LibName, EntryPoint = "PxSphericalJoint_setSphericalJointFlag_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSphericalJointSetSphericalJointFlagMutNative(PhysxPxSphericalJointPod* selfPod, int flagPod, byte value); + + public static void PxSphericalJointSetSphericalJointFlagMut( PhysxPxSphericalJointPod* selfPod, int flagPod, bool value) + { + PxSphericalJointSetSphericalJointFlagMutNative(selfPod, flagPod, value ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxSphericalJoint_getSphericalJointFlags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PxSphericalJointGetSphericalJointFlagsNative(PhysxPxSphericalJointPod* selfPod); + + public static ushort PxSphericalJointGetSphericalJointFlags( PhysxPxSphericalJointPod* selfPod) + { + ushort ret = PxSphericalJointGetSphericalJointFlagsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSphericalJoint_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxSphericalJointGetConcreteTypeNameNative(PhysxPxSphericalJointPod* selfPod); + + public static byte* PxSphericalJointGetConcreteTypeName( PhysxPxSphericalJointPod* selfPod) + { + byte* ret = PxSphericalJointGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxSphericalJointGetConcreteTypeNameS( PhysxPxSphericalJointPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxSphericalJointGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxD6JointCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxD6JointPod* PhysPxD6JointCreateNative(PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod); + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxD6JointPod* PhysPxD6JointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxD6JointPod* ret = PhysPxD6JointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxD6JointDrive_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxD6JointDrivePod PxD6JointDriveNewNative(); + + public static PhysxPxD6JointDrivePod PxD6JointDriveNew() + { + PhysxPxD6JointDrivePod ret = PxD6JointDriveNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6JointDrive_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxD6JointDrivePod PxD6JointDriveNew1Native(float driveStiffness, float driveDamping, float driveForceLimit, byte isAcceleration); + + public static PhysxPxD6JointDrivePod PxD6JointDriveNew1( float driveStiffness, float driveDamping, float driveForceLimit, bool isAcceleration) + { + PhysxPxD6JointDrivePod ret = PxD6JointDriveNew1Native(driveStiffness, driveDamping, driveForceLimit, isAcceleration ? (byte)1 : (byte)0); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6JointDrive_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxD6JointDriveIsValidNative(PhysxPxD6JointDrivePod* selfPod); + + public static bool PxD6JointDriveIsValid( PhysxPxD6JointDrivePod* selfPod) + { + byte ret = PxD6JointDriveIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_setMotion_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointSetMotionMutNative(PhysxPxD6JointPod* selfPod, int axisPod, int typePod); + + public static void PxD6JointSetMotionMut( PhysxPxD6JointPod* selfPod, int axisPod, int typePod) + { + PxD6JointSetMotionMutNative(selfPod, axisPod, typePod); + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getMotion")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxD6JointGetMotionNative(PhysxPxD6JointPod* selfPod, int axisPod); + + public static int PxD6JointGetMotion( PhysxPxD6JointPod* selfPod, int axisPod) + { + int ret = PxD6JointGetMotionNative(selfPod, axisPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getTwistAngle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxD6JointGetTwistAngleNative(PhysxPxD6JointPod* selfPod); + + public static float PxD6JointGetTwistAngle( PhysxPxD6JointPod* selfPod) + { + float ret = PxD6JointGetTwistAngleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getSwingYAngle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxD6JointGetSwingYAngleNative(PhysxPxD6JointPod* selfPod); + + public static float PxD6JointGetSwingYAngle( PhysxPxD6JointPod* selfPod) + { + float ret = PxD6JointGetSwingYAngleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getSwingZAngle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxD6JointGetSwingZAngleNative(PhysxPxD6JointPod* selfPod); + + public static float PxD6JointGetSwingZAngle( PhysxPxD6JointPod* selfPod) + { + float ret = PxD6JointGetSwingZAngleNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_setDistanceLimit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointSetDistanceLimitMutNative(PhysxPxD6JointPod* selfPod, PhysxPxJointLinearLimitPod* limitPod); + + public static void PxD6JointSetDistanceLimitMut( PhysxPxD6JointPod* selfPod, PhysxPxJointLinearLimitPod* limitPod) + { + PxD6JointSetDistanceLimitMutNative(selfPod, limitPod); + } + + public static void PxD6JointSetDistanceLimitMut( PhysxPxD6JointPod* selfPod, ref PhysxPxJointLinearLimitPod limitPod) + { + fixed (PhysxPxJointLinearLimitPod* plimitPod = &limitPod) + { + PxD6JointSetDistanceLimitMutNative(selfPod, (PhysxPxJointLinearLimitPod*)plimitPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getDistanceLimit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLinearLimitPod PxD6JointGetDistanceLimitNative(PhysxPxD6JointPod* selfPod); + + public static PhysxPxJointLinearLimitPod PxD6JointGetDistanceLimit( PhysxPxD6JointPod* selfPod) + { + PhysxPxJointLinearLimitPod ret = PxD6JointGetDistanceLimitNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_setLinearLimit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointSetLinearLimitMutNative(PhysxPxD6JointPod* selfPod, int axisPod, PhysxPxJointLinearLimitPairPod* limitPod); + + public static void PxD6JointSetLinearLimitMut( PhysxPxD6JointPod* selfPod, int axisPod, PhysxPxJointLinearLimitPairPod* limitPod) + { + PxD6JointSetLinearLimitMutNative(selfPod, axisPod, limitPod); + } + + public static void PxD6JointSetLinearLimitMut( PhysxPxD6JointPod* selfPod, int axisPod, ref PhysxPxJointLinearLimitPairPod limitPod) + { + fixed (PhysxPxJointLinearLimitPairPod* plimitPod = &limitPod) + { + PxD6JointSetLinearLimitMutNative(selfPod, axisPod, (PhysxPxJointLinearLimitPairPod*)plimitPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getLinearLimit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLinearLimitPairPod PxD6JointGetLinearLimitNative(PhysxPxD6JointPod* selfPod, int axisPod); + + public static PhysxPxJointLinearLimitPairPod PxD6JointGetLinearLimit( PhysxPxD6JointPod* selfPod, int axisPod) + { + PhysxPxJointLinearLimitPairPod ret = PxD6JointGetLinearLimitNative(selfPod, axisPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_setTwistLimit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointSetTwistLimitMutNative(PhysxPxD6JointPod* selfPod, PhysxPxJointAngularLimitPairPod* limitPod); + + public static void PxD6JointSetTwistLimitMut( PhysxPxD6JointPod* selfPod, PhysxPxJointAngularLimitPairPod* limitPod) + { + PxD6JointSetTwistLimitMutNative(selfPod, limitPod); + } + + public static void PxD6JointSetTwistLimitMut( PhysxPxD6JointPod* selfPod, ref PhysxPxJointAngularLimitPairPod limitPod) + { + fixed (PhysxPxJointAngularLimitPairPod* plimitPod = &limitPod) + { + PxD6JointSetTwistLimitMutNative(selfPod, (PhysxPxJointAngularLimitPairPod*)plimitPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getTwistLimit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointAngularLimitPairPod PxD6JointGetTwistLimitNative(PhysxPxD6JointPod* selfPod); + + public static PhysxPxJointAngularLimitPairPod PxD6JointGetTwistLimit( PhysxPxD6JointPod* selfPod) + { + PhysxPxJointAngularLimitPairPod ret = PxD6JointGetTwistLimitNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_setSwingLimit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointSetSwingLimitMutNative(PhysxPxD6JointPod* selfPod, PhysxPxJointLimitConePod* limitPod); + + public static void PxD6JointSetSwingLimitMut( PhysxPxD6JointPod* selfPod, PhysxPxJointLimitConePod* limitPod) + { + PxD6JointSetSwingLimitMutNative(selfPod, limitPod); + } + + public static void PxD6JointSetSwingLimitMut( PhysxPxD6JointPod* selfPod, ref PhysxPxJointLimitConePod limitPod) + { + fixed (PhysxPxJointLimitConePod* plimitPod = &limitPod) + { + PxD6JointSetSwingLimitMutNative(selfPod, (PhysxPxJointLimitConePod*)plimitPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getSwingLimit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLimitConePod PxD6JointGetSwingLimitNative(PhysxPxD6JointPod* selfPod); + + public static PhysxPxJointLimitConePod PxD6JointGetSwingLimit( PhysxPxD6JointPod* selfPod) + { + PhysxPxJointLimitConePod ret = PxD6JointGetSwingLimitNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_setPyramidSwingLimit_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointSetPyramidSwingLimitMutNative(PhysxPxD6JointPod* selfPod, PhysxPxJointLimitPyramidPod* limitPod); + + public static void PxD6JointSetPyramidSwingLimitMut( PhysxPxD6JointPod* selfPod, PhysxPxJointLimitPyramidPod* limitPod) + { + PxD6JointSetPyramidSwingLimitMutNative(selfPod, limitPod); + } + + public static void PxD6JointSetPyramidSwingLimitMut( PhysxPxD6JointPod* selfPod, ref PhysxPxJointLimitPyramidPod limitPod) + { + fixed (PhysxPxJointLimitPyramidPod* plimitPod = &limitPod) + { + PxD6JointSetPyramidSwingLimitMutNative(selfPod, (PhysxPxJointLimitPyramidPod*)plimitPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getPyramidSwingLimit")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxJointLimitPyramidPod PxD6JointGetPyramidSwingLimitNative(PhysxPxD6JointPod* selfPod); + + public static PhysxPxJointLimitPyramidPod PxD6JointGetPyramidSwingLimit( PhysxPxD6JointPod* selfPod) + { + PhysxPxJointLimitPyramidPod ret = PxD6JointGetPyramidSwingLimitNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_setDrive_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointSetDriveMutNative(PhysxPxD6JointPod* selfPod, int indexPod, PhysxPxD6JointDrivePod* drivePod); + + public static void PxD6JointSetDriveMut( PhysxPxD6JointPod* selfPod, int indexPod, PhysxPxD6JointDrivePod* drivePod) + { + PxD6JointSetDriveMutNative(selfPod, indexPod, drivePod); + } + + public static void PxD6JointSetDriveMut( PhysxPxD6JointPod* selfPod, int indexPod, ref PhysxPxD6JointDrivePod drivePod) + { + fixed (PhysxPxD6JointDrivePod* pdrivePod = &drivePod) + { + PxD6JointSetDriveMutNative(selfPod, indexPod, (PhysxPxD6JointDrivePod*)pdrivePod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getDrive")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxD6JointDrivePod PxD6JointGetDriveNative(PhysxPxD6JointPod* selfPod, int indexPod); + + public static PhysxPxD6JointDrivePod PxD6JointGetDrive( PhysxPxD6JointPod* selfPod, int indexPod) + { + PhysxPxD6JointDrivePod ret = PxD6JointGetDriveNative(selfPod, indexPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_setDrivePosition_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointSetDrivePositionMutNative(PhysxPxD6JointPod* selfPod, PhysxPxTransformPod* posePod, byte autowake); + + public static void PxD6JointSetDrivePositionMut( PhysxPxD6JointPod* selfPod, PhysxPxTransformPod* posePod, bool autowake) + { + PxD6JointSetDrivePositionMutNative(selfPod, posePod, autowake ? (byte)1 : (byte)0); + } + + public static void PxD6JointSetDrivePositionMut( PhysxPxD6JointPod* selfPod, ref PhysxPxTransformPod posePod, bool autowake) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PxD6JointSetDrivePositionMutNative(selfPod, (PhysxPxTransformPod*)pposePod, autowake ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getDrivePosition")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxD6JointGetDrivePositionNative(PhysxPxD6JointPod* selfPod); + + public static PhysxPxTransformPod PxD6JointGetDrivePosition( PhysxPxD6JointPod* selfPod) + { + PhysxPxTransformPod ret = PxD6JointGetDrivePositionNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_setDriveVelocity_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointSetDriveVelocityMutNative(PhysxPxD6JointPod* selfPod, PhysxPxVec3Pod* linearPod, PhysxPxVec3Pod* angularPod, byte autowake); + + public static void PxD6JointSetDriveVelocityMut( PhysxPxD6JointPod* selfPod, PhysxPxVec3Pod* linearPod, PhysxPxVec3Pod* angularPod, bool autowake) + { + PxD6JointSetDriveVelocityMutNative(selfPod, linearPod, angularPod, autowake ? (byte)1 : (byte)0); + } + + public static void PxD6JointSetDriveVelocityMut( PhysxPxD6JointPod* selfPod, ref PhysxPxVec3Pod linearPod, PhysxPxVec3Pod* angularPod, bool autowake) + { + fixed (PhysxPxVec3Pod* plinearPod = &linearPod) + { + PxD6JointSetDriveVelocityMutNative(selfPod, (PhysxPxVec3Pod*)plinearPod, angularPod, autowake ? (byte)1 : (byte)0); + } + } + + public static void PxD6JointSetDriveVelocityMut( PhysxPxD6JointPod* selfPod, PhysxPxVec3Pod* linearPod, ref PhysxPxVec3Pod angularPod, bool autowake) + { + fixed (PhysxPxVec3Pod* pangularPod = &angularPod) + { + PxD6JointSetDriveVelocityMutNative(selfPod, linearPod, (PhysxPxVec3Pod*)pangularPod, autowake ? (byte)1 : (byte)0); + } + } + + public static void PxD6JointSetDriveVelocityMut( PhysxPxD6JointPod* selfPod, ref PhysxPxVec3Pod linearPod, ref PhysxPxVec3Pod angularPod, bool autowake) + { + fixed (PhysxPxVec3Pod* plinearPod = &linearPod) + { + fixed (PhysxPxVec3Pod* pangularPod = &angularPod) + { + PxD6JointSetDriveVelocityMutNative(selfPod, (PhysxPxVec3Pod*)plinearPod, (PhysxPxVec3Pod*)pangularPod, autowake ? (byte)1 : (byte)0); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getDriveVelocity")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointGetDriveVelocityNative(PhysxPxD6JointPod* selfPod, PhysxPxVec3Pod* linearPod, PhysxPxVec3Pod* angularPod); + + public static void PxD6JointGetDriveVelocity( PhysxPxD6JointPod* selfPod, PhysxPxVec3Pod* linearPod, PhysxPxVec3Pod* angularPod) + { + PxD6JointGetDriveVelocityNative(selfPod, linearPod, angularPod); + } + + public static void PxD6JointGetDriveVelocity( PhysxPxD6JointPod* selfPod, ref PhysxPxVec3Pod linearPod, PhysxPxVec3Pod* angularPod) + { + fixed (PhysxPxVec3Pod* plinearPod = &linearPod) + { + PxD6JointGetDriveVelocityNative(selfPod, (PhysxPxVec3Pod*)plinearPod, angularPod); + } + } + + public static void PxD6JointGetDriveVelocity( PhysxPxD6JointPod* selfPod, PhysxPxVec3Pod* linearPod, ref PhysxPxVec3Pod angularPod) + { + fixed (PhysxPxVec3Pod* pangularPod = &angularPod) + { + PxD6JointGetDriveVelocityNative(selfPod, linearPod, (PhysxPxVec3Pod*)pangularPod); + } + } + + public static void PxD6JointGetDriveVelocity( PhysxPxD6JointPod* selfPod, ref PhysxPxVec3Pod linearPod, ref PhysxPxVec3Pod angularPod) + { + fixed (PhysxPxVec3Pod* plinearPod = &linearPod) + { + fixed (PhysxPxVec3Pod* pangularPod = &angularPod) + { + PxD6JointGetDriveVelocityNative(selfPod, (PhysxPxVec3Pod*)plinearPod, (PhysxPxVec3Pod*)pangularPod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_setProjectionLinearTolerance_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointSetProjectionLinearToleranceMutNative(PhysxPxD6JointPod* selfPod, float tolerance); + + public static void PxD6JointSetProjectionLinearToleranceMut( PhysxPxD6JointPod* selfPod, float tolerance) + { + PxD6JointSetProjectionLinearToleranceMutNative(selfPod, tolerance); + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getProjectionLinearTolerance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxD6JointGetProjectionLinearToleranceNative(PhysxPxD6JointPod* selfPod); + + public static float PxD6JointGetProjectionLinearTolerance( PhysxPxD6JointPod* selfPod) + { + float ret = PxD6JointGetProjectionLinearToleranceNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_setProjectionAngularTolerance_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxD6JointSetProjectionAngularToleranceMutNative(PhysxPxD6JointPod* selfPod, float tolerance); + + public static void PxD6JointSetProjectionAngularToleranceMut( PhysxPxD6JointPod* selfPod, float tolerance) + { + PxD6JointSetProjectionAngularToleranceMutNative(selfPod, tolerance); + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getProjectionAngularTolerance")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxD6JointGetProjectionAngularToleranceNative(PhysxPxD6JointPod* selfPod); + + public static float PxD6JointGetProjectionAngularTolerance( PhysxPxD6JointPod* selfPod) + { + float ret = PxD6JointGetProjectionAngularToleranceNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxD6Joint_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxD6JointGetConcreteTypeNameNative(PhysxPxD6JointPod* selfPod); + + public static byte* PxD6JointGetConcreteTypeName( PhysxPxD6JointPod* selfPod) + { + byte* ret = PxD6JointGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxD6JointGetConcreteTypeNameS( PhysxPxD6JointPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxD6JointGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGearJointCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGearJointPod* PhysPxGearJointCreateNative(PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod); + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxGearJointPod* PhysPxGearJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxGearJointPod* ret = PhysPxGearJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxGearJoint_setHinges_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxGearJointSetHingesMutNative(PhysxPxGearJointPod* selfPod, PhysxPxBasePod* hinge0Pod, PhysxPxBasePod* hinge1Pod); + + public static bool PxGearJointSetHingesMut( PhysxPxGearJointPod* selfPod, PhysxPxBasePod* hinge0Pod, PhysxPxBasePod* hinge1Pod) + { + byte ret = PxGearJointSetHingesMutNative(selfPod, hinge0Pod, hinge1Pod); + return ret != 0; + } + + public static bool PxGearJointSetHingesMut( PhysxPxGearJointPod* selfPod, ref PhysxPxBasePod hinge0Pod, PhysxPxBasePod* hinge1Pod) + { + fixed (PhysxPxBasePod* phinge0Pod = &hinge0Pod) + { + byte ret = PxGearJointSetHingesMutNative(selfPod, (PhysxPxBasePod*)phinge0Pod, hinge1Pod); + return ret != 0; + } + } + + public static bool PxGearJointSetHingesMut( PhysxPxGearJointPod* selfPod, PhysxPxBasePod* hinge0Pod, ref PhysxPxBasePod hinge1Pod) + { + fixed (PhysxPxBasePod* phinge1Pod = &hinge1Pod) + { + byte ret = PxGearJointSetHingesMutNative(selfPod, hinge0Pod, (PhysxPxBasePod*)phinge1Pod); + return ret != 0; + } + } + + public static bool PxGearJointSetHingesMut( PhysxPxGearJointPod* selfPod, ref PhysxPxBasePod hinge0Pod, ref PhysxPxBasePod hinge1Pod) + { + fixed (PhysxPxBasePod* phinge0Pod = &hinge0Pod) + { + fixed (PhysxPxBasePod* phinge1Pod = &hinge1Pod) + { + byte ret = PxGearJointSetHingesMutNative(selfPod, (PhysxPxBasePod*)phinge0Pod, (PhysxPxBasePod*)phinge1Pod); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxGearJoint_setGearRatio_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxGearJointSetGearRatioMutNative(PhysxPxGearJointPod* selfPod, float ratio); + + public static void PxGearJointSetGearRatioMut( PhysxPxGearJointPod* selfPod, float ratio) + { + PxGearJointSetGearRatioMutNative(selfPod, ratio); + } + + [LibraryImport(LibName, EntryPoint = "PxGearJoint_getGearRatio")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxGearJointGetGearRatioNative(PhysxPxGearJointPod* selfPod); + + public static float PxGearJointGetGearRatio( PhysxPxGearJointPod* selfPod) + { + float ret = PxGearJointGetGearRatioNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGearJoint_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxGearJointGetConcreteTypeNameNative(PhysxPxGearJointPod* selfPod); + + public static byte* PxGearJointGetConcreteTypeName( PhysxPxGearJointPod* selfPod) + { + byte* ret = PxGearJointGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxGearJointGetConcreteTypeNameS( PhysxPxGearJointPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxGearJointGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxRackAndPinionJointCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreateNative(PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod); + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, PhysxPxTransformPod* localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, localFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, PhysxPxRigidActorPod* actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, actor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, actor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, PhysxPxTransformPod* localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, localFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, actor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + + public static PhysxPxRackAndPinionJointPod* PhysPxRackAndPinionJointCreate( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actor0Pod, ref PhysxPxTransformPod localFrame0Pod, ref PhysxPxRigidActorPod actor1Pod, ref PhysxPxTransformPod localFrame1Pod) + { + fixed (PhysxPxRigidActorPod* pactor0Pod = &actor0Pod) + { + fixed (PhysxPxTransformPod* plocalFrame0Pod = &localFrame0Pod) + { + fixed (PhysxPxRigidActorPod* pactor1Pod = &actor1Pod) + { + fixed (PhysxPxTransformPod* plocalFrame1Pod = &localFrame1Pod) + { + PhysxPxRackAndPinionJointPod* ret = PhysPxRackAndPinionJointCreateNative(physicsPod, (PhysxPxRigidActorPod*)pactor0Pod, (PhysxPxTransformPod*)plocalFrame0Pod, (PhysxPxRigidActorPod*)pactor1Pod, (PhysxPxTransformPod*)plocalFrame1Pod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRackAndPinionJoint_setJoints_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRackAndPinionJointSetJointsMutNative(PhysxPxRackAndPinionJointPod* selfPod, PhysxPxBasePod* hingePod, PhysxPxBasePod* prismaticPod); + + public static bool PxRackAndPinionJointSetJointsMut( PhysxPxRackAndPinionJointPod* selfPod, PhysxPxBasePod* hingePod, PhysxPxBasePod* prismaticPod) + { + byte ret = PxRackAndPinionJointSetJointsMutNative(selfPod, hingePod, prismaticPod); + return ret != 0; + } + + public static bool PxRackAndPinionJointSetJointsMut( PhysxPxRackAndPinionJointPod* selfPod, ref PhysxPxBasePod hingePod, PhysxPxBasePod* prismaticPod) + { + fixed (PhysxPxBasePod* phingePod = &hingePod) + { + byte ret = PxRackAndPinionJointSetJointsMutNative(selfPod, (PhysxPxBasePod*)phingePod, prismaticPod); + return ret != 0; + } + } + + public static bool PxRackAndPinionJointSetJointsMut( PhysxPxRackAndPinionJointPod* selfPod, PhysxPxBasePod* hingePod, ref PhysxPxBasePod prismaticPod) + { + fixed (PhysxPxBasePod* pprismaticPod = &prismaticPod) + { + byte ret = PxRackAndPinionJointSetJointsMutNative(selfPod, hingePod, (PhysxPxBasePod*)pprismaticPod); + return ret != 0; + } + } + + public static bool PxRackAndPinionJointSetJointsMut( PhysxPxRackAndPinionJointPod* selfPod, ref PhysxPxBasePod hingePod, ref PhysxPxBasePod prismaticPod) + { + fixed (PhysxPxBasePod* phingePod = &hingePod) + { + fixed (PhysxPxBasePod* pprismaticPod = &prismaticPod) + { + byte ret = PxRackAndPinionJointSetJointsMutNative(selfPod, (PhysxPxBasePod*)phingePod, (PhysxPxBasePod*)pprismaticPod); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRackAndPinionJoint_setRatio_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRackAndPinionJointSetRatioMutNative(PhysxPxRackAndPinionJointPod* selfPod, float ratio); + + public static void PxRackAndPinionJointSetRatioMut( PhysxPxRackAndPinionJointPod* selfPod, float ratio) + { + PxRackAndPinionJointSetRatioMutNative(selfPod, ratio); + } + + [LibraryImport(LibName, EntryPoint = "PxRackAndPinionJoint_getRatio")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float PxRackAndPinionJointGetRatioNative(PhysxPxRackAndPinionJointPod* selfPod); + + public static float PxRackAndPinionJointGetRatio( PhysxPxRackAndPinionJointPod* selfPod) + { + float ret = PxRackAndPinionJointGetRatioNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRackAndPinionJoint_setData_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRackAndPinionJointSetDataMutNative(PhysxPxRackAndPinionJointPod* selfPod, uint nbRackTeeth, uint nbPinionTeeth, float rackLength); + + public static bool PxRackAndPinionJointSetDataMut( PhysxPxRackAndPinionJointPod* selfPod, uint nbRackTeeth, uint nbPinionTeeth, float rackLength) + { + byte ret = PxRackAndPinionJointSetDataMutNative(selfPod, nbRackTeeth, nbPinionTeeth, rackLength); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxRackAndPinionJoint_getConcreteTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxRackAndPinionJointGetConcreteTypeNameNative(PhysxPxRackAndPinionJointPod* selfPod); + + public static byte* PxRackAndPinionJointGetConcreteTypeName( PhysxPxRackAndPinionJointPod* selfPod) + { + byte* ret = PxRackAndPinionJointGetConcreteTypeNameNative(selfPod); + return ret; + } + + public static string PxRackAndPinionJointGetConcreteTypeNameS( PhysxPxRackAndPinionJointPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxRackAndPinionJointGetConcreteTypeNameNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGroupsMask_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGroupsMaskPod* PxGroupsMaskNewAllocNative(); + + public static PhysxPxGroupsMaskPod* PxGroupsMaskNewAlloc() + { + PhysxPxGroupsMaskPod* ret = PxGroupsMaskNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxGroupsMask_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxGroupsMaskDeleteNative(PhysxPxGroupsMaskPod* selfPod); + + public static void PxGroupsMaskDelete( PhysxPxGroupsMaskPod* selfPod) + { + PxGroupsMaskDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxDefaultSimulationFilterShader")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PhysPxDefaultSimulationFilterShaderNative(uint attributes0, PhysxPxFilterDataPod filterData0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ushort* pairflagsPod, void* constantBlock, uint constantBlockSize); + + public static ushort PhysPxDefaultSimulationFilterShader( uint attributes0, PhysxPxFilterDataPod filterData0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ushort* pairflagsPod, void* constantBlock, uint constantBlockSize) + { + ushort ret = PhysPxDefaultSimulationFilterShaderNative(attributes0, filterData0Pod, attributes1, filterData1Pod, pairflagsPod, constantBlock, constantBlockSize); + return ret; + } + + public static ushort PhysPxDefaultSimulationFilterShader( uint attributes0, PhysxPxFilterDataPod filterData0Pod, uint attributes1, PhysxPxFilterDataPod filterData1Pod, ref ushort pairflagsPod, void* constantBlock, uint constantBlockSize) + { + fixed (ushort* ppairflagsPod = &pairflagsPod) + { + ushort ret = PhysPxDefaultSimulationFilterShaderNative(attributes0, filterData0Pod, attributes1, filterData1Pod, (ushort*)ppairflagsPod, constantBlock, constantBlockSize); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetGroupCollisionFlag")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxGetGroupCollisionFlagNative(ushort group1, ushort group2); + + public static bool PhysPxGetGroupCollisionFlag( ushort group1, ushort group2) + { + byte ret = PhysPxGetGroupCollisionFlagNative(group1, group2); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSetGroupCollisionFlag")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxSetGroupCollisionFlagNative(ushort group1, ushort group2, byte enable); + + public static void PhysPxSetGroupCollisionFlag( ushort group1, ushort group2, bool enable) + { + PhysPxSetGroupCollisionFlagNative(group1, group2, enable ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ushort PhysPxGetGroupNative(PhysxPxActorPod* actorPod); + + public static ushort PhysPxGetGroup( PhysxPxActorPod* actorPod) + { + ushort ret = PhysPxGetGroupNative(actorPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSetGroup")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxSetGroupNative(PhysxPxActorPod* actorPod, ushort collisionGroup); + + public static void PhysPxSetGroup( PhysxPxActorPod* actorPod, ushort collisionGroup) + { + PhysPxSetGroupNative(actorPod, collisionGroup); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetFilterOps")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxGetFilterOpsNative(int* op0Pod, int* op1Pod, int* op2Pod); + + public static void PhysPxGetFilterOps( int* op0Pod, int* op1Pod, int* op2Pod) + { + PhysPxGetFilterOpsNative(op0Pod, op1Pod, op2Pod); + } + + public static void PhysPxGetFilterOps( int* op0Pod, ref int op1Pod, int* op2Pod) + { + fixed (int* pop1Pod = &op1Pod) + { + PhysPxGetFilterOpsNative(op0Pod, (int*)pop1Pod, op2Pod); + } + } + + public static void PhysPxGetFilterOps( int* op0Pod, int* op1Pod, ref int op2Pod) + { + fixed (int* pop2Pod = &op2Pod) + { + PhysPxGetFilterOpsNative(op0Pod, op1Pod, (int*)pop2Pod); + } + } + + public static void PhysPxGetFilterOps( int* op0Pod, ref int op1Pod, ref int op2Pod) + { + fixed (int* pop1Pod = &op1Pod) + { + fixed (int* pop2Pod = &op2Pod) + { + PhysPxGetFilterOpsNative(op0Pod, (int*)pop1Pod, (int*)pop2Pod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSetFilterOps")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxSetFilterOpsNative(int* op0Pod, int* op1Pod, int* op2Pod); + + public static void PhysPxSetFilterOps( int* op0Pod, int* op1Pod, int* op2Pod) + { + PhysPxSetFilterOpsNative(op0Pod, op1Pod, op2Pod); + } + + public static void PhysPxSetFilterOps( int* op0Pod, ref int op1Pod, int* op2Pod) + { + fixed (int* pop1Pod = &op1Pod) + { + PhysPxSetFilterOpsNative(op0Pod, (int*)pop1Pod, op2Pod); + } + } + + public static void PhysPxSetFilterOps( int* op0Pod, int* op1Pod, ref int op2Pod) + { + fixed (int* pop2Pod = &op2Pod) + { + PhysPxSetFilterOpsNative(op0Pod, op1Pod, (int*)pop2Pod); + } + } + + public static void PhysPxSetFilterOps( int* op0Pod, ref int op1Pod, ref int op2Pod) + { + fixed (int* pop1Pod = &op1Pod) + { + fixed (int* pop2Pod = &op2Pod) + { + PhysPxSetFilterOpsNative(op0Pod, (int*)pop1Pod, (int*)pop2Pod); + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetFilterBool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxGetFilterBoolNative(); + + public static bool PhysPxGetFilterBool() + { + byte ret = PhysPxGetFilterBoolNative(); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSetFilterBool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxSetFilterBoolNative(byte enable); + + public static void PhysPxSetFilterBool( bool enable) + { + PhysPxSetFilterBoolNative(enable ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetFilterConstants")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxGetFilterConstantsNative(PhysxPxGroupsMaskPod* c0Pod, PhysxPxGroupsMaskPod* c1Pod); + + public static void PhysPxGetFilterConstants( PhysxPxGroupsMaskPod* c0Pod, PhysxPxGroupsMaskPod* c1Pod) + { + PhysPxGetFilterConstantsNative(c0Pod, c1Pod); + } + + public static void PhysPxGetFilterConstants( PhysxPxGroupsMaskPod* c0Pod, ref PhysxPxGroupsMaskPod c1Pod) + { + fixed (PhysxPxGroupsMaskPod* pc1Pod = &c1Pod) + { + PhysPxGetFilterConstantsNative(c0Pod, (PhysxPxGroupsMaskPod*)pc1Pod); + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSetFilterConstants")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxSetFilterConstantsNative(PhysxPxGroupsMaskPod* c0Pod, PhysxPxGroupsMaskPod* c1Pod); + + public static void PhysPxSetFilterConstants( PhysxPxGroupsMaskPod* c0Pod, PhysxPxGroupsMaskPod* c1Pod) + { + PhysPxSetFilterConstantsNative(c0Pod, c1Pod); + } + + public static void PhysPxSetFilterConstants( PhysxPxGroupsMaskPod* c0Pod, ref PhysxPxGroupsMaskPod c1Pod) + { + fixed (PhysxPxGroupsMaskPod* pc1Pod = &c1Pod) + { + PhysPxSetFilterConstantsNative(c0Pod, (PhysxPxGroupsMaskPod*)pc1Pod); + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxGetGroupsMask")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxGroupsMaskPod PhysPxGetGroupsMaskNative(PhysxPxActorPod* actorPod); + + public static PhysxPxGroupsMaskPod PhysPxGetGroupsMask( PhysxPxActorPod* actorPod) + { + PhysxPxGroupsMaskPod ret = PhysPxGetGroupsMaskNative(actorPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxSetGroupsMask")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxSetGroupsMaskNative(PhysxPxActorPod* actorPod, PhysxPxGroupsMaskPod* maskPod); + + public static void PhysPxSetGroupsMask( PhysxPxActorPod* actorPod, PhysxPxGroupsMaskPod* maskPod) + { + PhysPxSetGroupsMaskNative(actorPod, maskPod); + } + + public static void PhysPxSetGroupsMask( PhysxPxActorPod* actorPod, ref PhysxPxGroupsMaskPod maskPod) + { + fixed (PhysxPxGroupsMaskPod* pmaskPod = &maskPod) + { + PhysPxSetGroupsMaskNative(actorPod, (PhysxPxGroupsMaskPod*)pmaskPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultErrorCallback_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDefaultErrorCallbackPod* PxDefaultErrorCallbackNewAllocNative(); + + public static PhysxPxDefaultErrorCallbackPod* PxDefaultErrorCallbackNewAlloc() + { + PhysxPxDefaultErrorCallbackPod* ret = PxDefaultErrorCallbackNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultErrorCallback_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDefaultErrorCallbackDeleteNative(PhysxPxDefaultErrorCallbackPod* selfPod); + + public static void PxDefaultErrorCallbackDelete( PhysxPxDefaultErrorCallbackPod* selfPod) + { + PxDefaultErrorCallbackDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultErrorCallback_reportError_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDefaultErrorCallbackReportErrorMutNative(PhysxPxDefaultErrorCallbackPod* selfPod, int codePod, byte* message, byte* file, int line); + + public static void PxDefaultErrorCallbackReportErrorMut( PhysxPxDefaultErrorCallbackPod* selfPod, int codePod, byte* message, byte* file, int line) + { + PxDefaultErrorCallbackReportErrorMutNative(selfPod, codePod, message, file, line); + } + + public static void PxDefaultErrorCallbackReportErrorMut( PhysxPxDefaultErrorCallbackPod* selfPod, int codePod, ref byte message, byte* file, int line) + { + fixed (byte* pmessage = &message) + { + PxDefaultErrorCallbackReportErrorMutNative(selfPod, codePod, (byte*)pmessage, file, line); + } + } + + public static void PxDefaultErrorCallbackReportErrorMut( PhysxPxDefaultErrorCallbackPod* selfPod, int codePod, string message, byte* file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (message != null) + { + pStrSize0 = Utils.GetByteCountUTF8(message); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(message, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxDefaultErrorCallbackReportErrorMutNative(selfPod, codePod, pStr0, file, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxDefaultErrorCallbackReportErrorMut( PhysxPxDefaultErrorCallbackPod* selfPod, int codePod, byte* message, ref byte file, int line) + { + fixed (byte* pfile = &file) + { + PxDefaultErrorCallbackReportErrorMutNative(selfPod, codePod, message, (byte*)pfile, line); + } + } + + public static void PxDefaultErrorCallbackReportErrorMut( PhysxPxDefaultErrorCallbackPod* selfPod, int codePod, byte* message, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (file != null) + { + pStrSize0 = Utils.GetByteCountUTF8(file); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(file, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + PxDefaultErrorCallbackReportErrorMutNative(selfPod, codePod, message, pStr0, line); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + public static void PxDefaultErrorCallbackReportErrorMut( PhysxPxDefaultErrorCallbackPod* selfPod, int codePod, ref byte message, ref byte file, int line) + { + fixed (byte* pmessage = &message) + { + fixed (byte* pfile = &file) + { + PxDefaultErrorCallbackReportErrorMutNative(selfPod, codePod, (byte*)pmessage, (byte*)pfile, line); + } + } + } + + public static void PxDefaultErrorCallbackReportErrorMut( PhysxPxDefaultErrorCallbackPod* selfPod, int codePod, string message, string file, int line) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (message != null) + { + pStrSize0 = Utils.GetByteCountUTF8(message); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(message, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (file != null) + { + pStrSize1 = Utils.GetByteCountUTF8(file); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(file, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + PxDefaultErrorCallbackReportErrorMutNative(selfPod, codePod, pStr0, pStr1, line); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActorExt_createExclusiveShape")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxShapePod* PxRigidActorExtCreateExclusiveShapeNative(PhysxPxRigidActorPod* actorPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod** materialsPod, ushort materialCount, byte shapeflagsPod); + + public static PhysxPxShapePod* PxRigidActorExtCreateExclusiveShape( PhysxPxRigidActorPod* actorPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod** materialsPod, ushort materialCount, byte shapeflagsPod) + { + PhysxPxShapePod* ret = PxRigidActorExtCreateExclusiveShapeNative(actorPod, geometryPod, materialsPod, materialCount, shapeflagsPod); + return ret; + } + + public static PhysxPxShapePod* PxRigidActorExtCreateExclusiveShape( PhysxPxRigidActorPod* actorPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod** materialsPod, ushort materialCount, byte shapeflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxShapePod* ret = PxRigidActorExtCreateExclusiveShapeNative(actorPod, (PhysxPxGeometryPod*)pgeometryPod, materialsPod, materialCount, shapeflagsPod); + return ret; + } + } + + public static PhysxPxShapePod* PxRigidActorExtCreateExclusiveShape( PhysxPxRigidActorPod* actorPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod* materialsPod, ushort materialCount, byte shapeflagsPod) + { + fixed (PhysxPxMaterialPod** pmaterialsPod = &materialsPod) + { + PhysxPxShapePod* ret = PxRigidActorExtCreateExclusiveShapeNative(actorPod, geometryPod, (PhysxPxMaterialPod**)pmaterialsPod, materialCount, shapeflagsPod); + return ret; + } + } + + public static PhysxPxShapePod* PxRigidActorExtCreateExclusiveShape( PhysxPxRigidActorPod* actorPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod* materialsPod, ushort materialCount, byte shapeflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod** pmaterialsPod = &materialsPod) + { + PhysxPxShapePod* ret = PxRigidActorExtCreateExclusiveShapeNative(actorPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod**)pmaterialsPod, materialCount, shapeflagsPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActorExt_createExclusiveShape_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxShapePod* PxRigidActorExtCreateExclusiveShape1Native(PhysxPxRigidActorPod* actorPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, byte shapeflagsPod); + + public static PhysxPxShapePod* PxRigidActorExtCreateExclusiveShape1( PhysxPxRigidActorPod* actorPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, byte shapeflagsPod) + { + PhysxPxShapePod* ret = PxRigidActorExtCreateExclusiveShape1Native(actorPod, geometryPod, materialPod, shapeflagsPod); + return ret; + } + + public static PhysxPxShapePod* PxRigidActorExtCreateExclusiveShape1( PhysxPxRigidActorPod* actorPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, byte shapeflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxShapePod* ret = PxRigidActorExtCreateExclusiveShape1Native(actorPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, shapeflagsPod); + return ret; + } + } + + public static PhysxPxShapePod* PxRigidActorExtCreateExclusiveShape1( PhysxPxRigidActorPod* actorPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, byte shapeflagsPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxShapePod* ret = PxRigidActorExtCreateExclusiveShape1Native(actorPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, shapeflagsPod); + return ret; + } + } + + public static PhysxPxShapePod* PxRigidActorExtCreateExclusiveShape1( PhysxPxRigidActorPod* actorPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, byte shapeflagsPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxShapePod* ret = PxRigidActorExtCreateExclusiveShape1Native(actorPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, shapeflagsPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActorExt_getRigidActorShapeLocalBoundsList")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod* PxRigidActorExtGetRigidActorShapeLocalBoundsListNative(PhysxPxRigidActorPod* actorPod, uint* numboundsPod); + + public static PhysxPxBounds3Pod* PxRigidActorExtGetRigidActorShapeLocalBoundsList( PhysxPxRigidActorPod* actorPod, uint* numboundsPod) + { + PhysxPxBounds3Pod* ret = PxRigidActorExtGetRigidActorShapeLocalBoundsListNative(actorPod, numboundsPod); + return ret; + } + + public static PhysxPxBounds3Pod* PxRigidActorExtGetRigidActorShapeLocalBoundsList( PhysxPxRigidActorPod* actorPod, ref uint numboundsPod) + { + fixed (uint* pnumboundsPod = &numboundsPod) + { + PhysxPxBounds3Pod* ret = PxRigidActorExtGetRigidActorShapeLocalBoundsListNative(actorPod, (uint*)pnumboundsPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidActorExt_createBVHFromActor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBVHPod* PxRigidActorExtCreateBVHFromActorNative(PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actorPod); + + public static PhysxPxBVHPod* PxRigidActorExtCreateBVHFromActor( PhysxPxPhysicsPod* physicsPod, PhysxPxRigidActorPod* actorPod) + { + PhysxPxBVHPod* ret = PxRigidActorExtCreateBVHFromActorNative(physicsPod, actorPod); + return ret; + } + + public static PhysxPxBVHPod* PxRigidActorExtCreateBVHFromActor( PhysxPxPhysicsPod* physicsPod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + PhysxPxBVHPod* ret = PxRigidActorExtCreateBVHFromActorNative(physicsPod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMassProperties_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMassPropertiesPod PxMassPropertiesNewNative(); + + public static PhysxPxMassPropertiesPod PxMassPropertiesNew() + { + PhysxPxMassPropertiesPod ret = PxMassPropertiesNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMassProperties_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMassPropertiesPod PxMassPropertiesNew1Native(float m, PhysxPxMat33Pod* inertiatPod, PhysxPxVec3Pod* comPod); + + public static PhysxPxMassPropertiesPod PxMassPropertiesNew1( float m, PhysxPxMat33Pod* inertiatPod, PhysxPxVec3Pod* comPod) + { + PhysxPxMassPropertiesPod ret = PxMassPropertiesNew1Native(m, inertiatPod, comPod); + return ret; + } + + public static PhysxPxMassPropertiesPod PxMassPropertiesNew1( float m, ref PhysxPxMat33Pod inertiatPod, PhysxPxVec3Pod* comPod) + { + fixed (PhysxPxMat33Pod* pinertiatPod = &inertiatPod) + { + PhysxPxMassPropertiesPod ret = PxMassPropertiesNew1Native(m, (PhysxPxMat33Pod*)pinertiatPod, comPod); + return ret; + } + } + + public static PhysxPxMassPropertiesPod PxMassPropertiesNew1( float m, PhysxPxMat33Pod* inertiatPod, ref PhysxPxVec3Pod comPod) + { + fixed (PhysxPxVec3Pod* pcomPod = &comPod) + { + PhysxPxMassPropertiesPod ret = PxMassPropertiesNew1Native(m, inertiatPod, (PhysxPxVec3Pod*)pcomPod); + return ret; + } + } + + public static PhysxPxMassPropertiesPod PxMassPropertiesNew1( float m, ref PhysxPxMat33Pod inertiatPod, ref PhysxPxVec3Pod comPod) + { + fixed (PhysxPxMat33Pod* pinertiatPod = &inertiatPod) + { + fixed (PhysxPxVec3Pod* pcomPod = &comPod) + { + PhysxPxMassPropertiesPod ret = PxMassPropertiesNew1Native(m, (PhysxPxMat33Pod*)pinertiatPod, (PhysxPxVec3Pod*)pcomPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMassProperties_new_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMassPropertiesPod PxMassPropertiesNew2Native(PhysxPxGeometryPod* geometryPod); + + public static PhysxPxMassPropertiesPod PxMassPropertiesNew2( PhysxPxGeometryPod* geometryPod) + { + PhysxPxMassPropertiesPod ret = PxMassPropertiesNew2Native(geometryPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMassProperties_translate_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMassPropertiesTranslateMutNative(PhysxPxMassPropertiesPod* selfPod, PhysxPxVec3Pod* tPod); + + public static void PxMassPropertiesTranslateMut( PhysxPxMassPropertiesPod* selfPod, PhysxPxVec3Pod* tPod) + { + PxMassPropertiesTranslateMutNative(selfPod, tPod); + } + + public static void PxMassPropertiesTranslateMut( PhysxPxMassPropertiesPod* selfPod, ref PhysxPxVec3Pod tPod) + { + fixed (PhysxPxVec3Pod* ptPod = &tPod) + { + PxMassPropertiesTranslateMutNative(selfPod, (PhysxPxVec3Pod*)ptPod); + } + } + + [LibraryImport(LibName, EntryPoint = "PxMassProperties_getMassSpaceInertia")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxMassPropertiesGetMassSpaceInertiaNative(PhysxPxMat33Pod* inertiaPod, PhysxPxQuatPod* massframePod); + + public static PhysxPxVec3Pod PxMassPropertiesGetMassSpaceInertia( PhysxPxMat33Pod* inertiaPod, PhysxPxQuatPod* massframePod) + { + PhysxPxVec3Pod ret = PxMassPropertiesGetMassSpaceInertiaNative(inertiaPod, massframePod); + return ret; + } + + public static PhysxPxVec3Pod PxMassPropertiesGetMassSpaceInertia( PhysxPxMat33Pod* inertiaPod, ref PhysxPxQuatPod massframePod) + { + fixed (PhysxPxQuatPod* pmassframePod = &massframePod) + { + PhysxPxVec3Pod ret = PxMassPropertiesGetMassSpaceInertiaNative(inertiaPod, (PhysxPxQuatPod*)pmassframePod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMassProperties_translateInertia")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMassPropertiesTranslateInertiaNative(PhysxPxMat33Pod* inertiaPod, float mass, PhysxPxVec3Pod* tPod); + + public static PhysxPxMat33Pod PxMassPropertiesTranslateInertia( PhysxPxMat33Pod* inertiaPod, float mass, PhysxPxVec3Pod* tPod) + { + PhysxPxMat33Pod ret = PxMassPropertiesTranslateInertiaNative(inertiaPod, mass, tPod); + return ret; + } + + public static PhysxPxMat33Pod PxMassPropertiesTranslateInertia( PhysxPxMat33Pod* inertiaPod, float mass, ref PhysxPxVec3Pod tPod) + { + fixed (PhysxPxVec3Pod* ptPod = &tPod) + { + PhysxPxMat33Pod ret = PxMassPropertiesTranslateInertiaNative(inertiaPod, mass, (PhysxPxVec3Pod*)ptPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMassProperties_rotateInertia")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMassPropertiesRotateInertiaNative(PhysxPxMat33Pod* inertiaPod, PhysxPxQuatPod* qPod); + + public static PhysxPxMat33Pod PxMassPropertiesRotateInertia( PhysxPxMat33Pod* inertiaPod, PhysxPxQuatPod* qPod) + { + PhysxPxMat33Pod ret = PxMassPropertiesRotateInertiaNative(inertiaPod, qPod); + return ret; + } + + public static PhysxPxMat33Pod PxMassPropertiesRotateInertia( PhysxPxMat33Pod* inertiaPod, ref PhysxPxQuatPod qPod) + { + fixed (PhysxPxQuatPod* pqPod = &qPod) + { + PhysxPxMat33Pod ret = PxMassPropertiesRotateInertiaNative(inertiaPod, (PhysxPxQuatPod*)pqPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMassProperties_scaleInertia")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMat33Pod PxMassPropertiesScaleInertiaNative(PhysxPxMat33Pod* inertiaPod, PhysxPxQuatPod* scalerotationPod, PhysxPxVec3Pod* scalePod); + + public static PhysxPxMat33Pod PxMassPropertiesScaleInertia( PhysxPxMat33Pod* inertiaPod, PhysxPxQuatPod* scalerotationPod, PhysxPxVec3Pod* scalePod) + { + PhysxPxMat33Pod ret = PxMassPropertiesScaleInertiaNative(inertiaPod, scalerotationPod, scalePod); + return ret; + } + + public static PhysxPxMat33Pod PxMassPropertiesScaleInertia( PhysxPxMat33Pod* inertiaPod, ref PhysxPxQuatPod scalerotationPod, PhysxPxVec3Pod* scalePod) + { + fixed (PhysxPxQuatPod* pscalerotationPod = &scalerotationPod) + { + PhysxPxMat33Pod ret = PxMassPropertiesScaleInertiaNative(inertiaPod, (PhysxPxQuatPod*)pscalerotationPod, scalePod); + return ret; + } + } + + public static PhysxPxMat33Pod PxMassPropertiesScaleInertia( PhysxPxMat33Pod* inertiaPod, PhysxPxQuatPod* scalerotationPod, ref PhysxPxVec3Pod scalePod) + { + fixed (PhysxPxVec3Pod* pscalePod = &scalePod) + { + PhysxPxMat33Pod ret = PxMassPropertiesScaleInertiaNative(inertiaPod, scalerotationPod, (PhysxPxVec3Pod*)pscalePod); + return ret; + } + } + + public static PhysxPxMat33Pod PxMassPropertiesScaleInertia( PhysxPxMat33Pod* inertiaPod, ref PhysxPxQuatPod scalerotationPod, ref PhysxPxVec3Pod scalePod) + { + fixed (PhysxPxQuatPod* pscalerotationPod = &scalerotationPod) + { + fixed (PhysxPxVec3Pod* pscalePod = &scalePod) + { + PhysxPxMat33Pod ret = PxMassPropertiesScaleInertiaNative(inertiaPod, (PhysxPxQuatPod*)pscalerotationPod, (PhysxPxVec3Pod*)pscalePod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMassProperties_sum")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMassPropertiesPod PxMassPropertiesSumNative(PhysxPxMassPropertiesPod* propsPod, PhysxPxTransformPod* transformsPod, uint count); + + public static PhysxPxMassPropertiesPod PxMassPropertiesSum( PhysxPxMassPropertiesPod* propsPod, PhysxPxTransformPod* transformsPod, uint count) + { + PhysxPxMassPropertiesPod ret = PxMassPropertiesSumNative(propsPod, transformsPod, count); + return ret; + } + + public static PhysxPxMassPropertiesPod PxMassPropertiesSum( PhysxPxMassPropertiesPod* propsPod, ref PhysxPxTransformPod transformsPod, uint count) + { + fixed (PhysxPxTransformPod* ptransformsPod = &transformsPod) + { + PhysxPxMassPropertiesPod ret = PxMassPropertiesSumNative(propsPod, (PhysxPxTransformPod*)ptransformsPod, count); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_updateMassAndInertia")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRigidBodyExtUpdateMassAndInertiaNative(PhysxPxRigidBodyPod* bodyPod, float* shapeDensities, uint shapeDensityCount, PhysxPxVec3Pod* masslocalposePod, byte includeNonSimShapes); + + public static bool PxRigidBodyExtUpdateMassAndInertia( PhysxPxRigidBodyPod* bodyPod, float* shapeDensities, uint shapeDensityCount, PhysxPxVec3Pod* masslocalposePod, bool includeNonSimShapes) + { + byte ret = PxRigidBodyExtUpdateMassAndInertiaNative(bodyPod, shapeDensities, shapeDensityCount, masslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool PxRigidBodyExtUpdateMassAndInertia( PhysxPxRigidBodyPod* bodyPod, ref float shapeDensities, uint shapeDensityCount, PhysxPxVec3Pod* masslocalposePod, bool includeNonSimShapes) + { + fixed (float* pshapeDensities = &shapeDensities) + { + byte ret = PxRigidBodyExtUpdateMassAndInertiaNative(bodyPod, (float*)pshapeDensities, shapeDensityCount, masslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PxRigidBodyExtUpdateMassAndInertia( PhysxPxRigidBodyPod* bodyPod, float* shapeDensities, uint shapeDensityCount, ref PhysxPxVec3Pod masslocalposePod, bool includeNonSimShapes) + { + fixed (PhysxPxVec3Pod* pmasslocalposePod = &masslocalposePod) + { + byte ret = PxRigidBodyExtUpdateMassAndInertiaNative(bodyPod, shapeDensities, shapeDensityCount, (PhysxPxVec3Pod*)pmasslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PxRigidBodyExtUpdateMassAndInertia( PhysxPxRigidBodyPod* bodyPod, ref float shapeDensities, uint shapeDensityCount, ref PhysxPxVec3Pod masslocalposePod, bool includeNonSimShapes) + { + fixed (float* pshapeDensities = &shapeDensities) + { + fixed (PhysxPxVec3Pod* pmasslocalposePod = &masslocalposePod) + { + byte ret = PxRigidBodyExtUpdateMassAndInertiaNative(bodyPod, (float*)pshapeDensities, shapeDensityCount, (PhysxPxVec3Pod*)pmasslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_updateMassAndInertia_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRigidBodyExtUpdateMassAndInertia1Native(PhysxPxRigidBodyPod* bodyPod, float density, PhysxPxVec3Pod* masslocalposePod, byte includeNonSimShapes); + + public static bool PxRigidBodyExtUpdateMassAndInertia1( PhysxPxRigidBodyPod* bodyPod, float density, PhysxPxVec3Pod* masslocalposePod, bool includeNonSimShapes) + { + byte ret = PxRigidBodyExtUpdateMassAndInertia1Native(bodyPod, density, masslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool PxRigidBodyExtUpdateMassAndInertia1( PhysxPxRigidBodyPod* bodyPod, float density, ref PhysxPxVec3Pod masslocalposePod, bool includeNonSimShapes) + { + fixed (PhysxPxVec3Pod* pmasslocalposePod = &masslocalposePod) + { + byte ret = PxRigidBodyExtUpdateMassAndInertia1Native(bodyPod, density, (PhysxPxVec3Pod*)pmasslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_setMassAndUpdateInertia")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRigidBodyExtSetMassAndUpdateInertiaNative(PhysxPxRigidBodyPod* bodyPod, float* shapeMasses, uint shapeMassCount, PhysxPxVec3Pod* masslocalposePod, byte includeNonSimShapes); + + public static bool PxRigidBodyExtSetMassAndUpdateInertia( PhysxPxRigidBodyPod* bodyPod, float* shapeMasses, uint shapeMassCount, PhysxPxVec3Pod* masslocalposePod, bool includeNonSimShapes) + { + byte ret = PxRigidBodyExtSetMassAndUpdateInertiaNative(bodyPod, shapeMasses, shapeMassCount, masslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool PxRigidBodyExtSetMassAndUpdateInertia( PhysxPxRigidBodyPod* bodyPod, ref float shapeMasses, uint shapeMassCount, PhysxPxVec3Pod* masslocalposePod, bool includeNonSimShapes) + { + fixed (float* pshapeMasses = &shapeMasses) + { + byte ret = PxRigidBodyExtSetMassAndUpdateInertiaNative(bodyPod, (float*)pshapeMasses, shapeMassCount, masslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PxRigidBodyExtSetMassAndUpdateInertia( PhysxPxRigidBodyPod* bodyPod, float* shapeMasses, uint shapeMassCount, ref PhysxPxVec3Pod masslocalposePod, bool includeNonSimShapes) + { + fixed (PhysxPxVec3Pod* pmasslocalposePod = &masslocalposePod) + { + byte ret = PxRigidBodyExtSetMassAndUpdateInertiaNative(bodyPod, shapeMasses, shapeMassCount, (PhysxPxVec3Pod*)pmasslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PxRigidBodyExtSetMassAndUpdateInertia( PhysxPxRigidBodyPod* bodyPod, ref float shapeMasses, uint shapeMassCount, ref PhysxPxVec3Pod masslocalposePod, bool includeNonSimShapes) + { + fixed (float* pshapeMasses = &shapeMasses) + { + fixed (PhysxPxVec3Pod* pmasslocalposePod = &masslocalposePod) + { + byte ret = PxRigidBodyExtSetMassAndUpdateInertiaNative(bodyPod, (float*)pshapeMasses, shapeMassCount, (PhysxPxVec3Pod*)pmasslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_setMassAndUpdateInertia_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRigidBodyExtSetMassAndUpdateInertia1Native(PhysxPxRigidBodyPod* bodyPod, float mass, PhysxPxVec3Pod* masslocalposePod, byte includeNonSimShapes); + + public static bool PxRigidBodyExtSetMassAndUpdateInertia1( PhysxPxRigidBodyPod* bodyPod, float mass, PhysxPxVec3Pod* masslocalposePod, bool includeNonSimShapes) + { + byte ret = PxRigidBodyExtSetMassAndUpdateInertia1Native(bodyPod, mass, masslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool PxRigidBodyExtSetMassAndUpdateInertia1( PhysxPxRigidBodyPod* bodyPod, float mass, ref PhysxPxVec3Pod masslocalposePod, bool includeNonSimShapes) + { + fixed (PhysxPxVec3Pod* pmasslocalposePod = &masslocalposePod) + { + byte ret = PxRigidBodyExtSetMassAndUpdateInertia1Native(bodyPod, mass, (PhysxPxVec3Pod*)pmasslocalposePod, includeNonSimShapes ? (byte)1 : (byte)0); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_computeMassPropertiesFromShapes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMassPropertiesPod PxRigidBodyExtComputeMassPropertiesFromShapesNative(PhysxPxShapePod** shapesPod, uint shapeCount); + + public static PhysxPxMassPropertiesPod PxRigidBodyExtComputeMassPropertiesFromShapes( PhysxPxShapePod** shapesPod, uint shapeCount) + { + PhysxPxMassPropertiesPod ret = PxRigidBodyExtComputeMassPropertiesFromShapesNative(shapesPod, shapeCount); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_addForceAtPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodyExtAddForceAtPosNative(PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, PhysxPxVec3Pod* posPod, int modePod, byte wakeup); + + public static void PxRigidBodyExtAddForceAtPos( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, PhysxPxVec3Pod* posPod, int modePod, bool wakeup) + { + PxRigidBodyExtAddForceAtPosNative(bodyPod, forcePod, posPod, modePod, wakeup ? (byte)1 : (byte)0); + } + + public static void PxRigidBodyExtAddForceAtPos( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod forcePod, PhysxPxVec3Pod* posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pforcePod = &forcePod) + { + PxRigidBodyExtAddForceAtPosNative(bodyPod, (PhysxPxVec3Pod*)pforcePod, posPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + + public static void PxRigidBodyExtAddForceAtPos( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, ref PhysxPxVec3Pod posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pposPod = &posPod) + { + PxRigidBodyExtAddForceAtPosNative(bodyPod, forcePod, (PhysxPxVec3Pod*)pposPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + + public static void PxRigidBodyExtAddForceAtPos( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod forcePod, ref PhysxPxVec3Pod posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pforcePod = &forcePod) + { + fixed (PhysxPxVec3Pod* pposPod = &posPod) + { + PxRigidBodyExtAddForceAtPosNative(bodyPod, (PhysxPxVec3Pod*)pforcePod, (PhysxPxVec3Pod*)pposPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_addForceAtLocalPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodyExtAddForceAtLocalPosNative(PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, PhysxPxVec3Pod* posPod, int modePod, byte wakeup); + + public static void PxRigidBodyExtAddForceAtLocalPos( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, PhysxPxVec3Pod* posPod, int modePod, bool wakeup) + { + PxRigidBodyExtAddForceAtLocalPosNative(bodyPod, forcePod, posPod, modePod, wakeup ? (byte)1 : (byte)0); + } + + public static void PxRigidBodyExtAddForceAtLocalPos( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod forcePod, PhysxPxVec3Pod* posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pforcePod = &forcePod) + { + PxRigidBodyExtAddForceAtLocalPosNative(bodyPod, (PhysxPxVec3Pod*)pforcePod, posPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + + public static void PxRigidBodyExtAddForceAtLocalPos( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, ref PhysxPxVec3Pod posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pposPod = &posPod) + { + PxRigidBodyExtAddForceAtLocalPosNative(bodyPod, forcePod, (PhysxPxVec3Pod*)pposPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + + public static void PxRigidBodyExtAddForceAtLocalPos( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod forcePod, ref PhysxPxVec3Pod posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pforcePod = &forcePod) + { + fixed (PhysxPxVec3Pod* pposPod = &posPod) + { + PxRigidBodyExtAddForceAtLocalPosNative(bodyPod, (PhysxPxVec3Pod*)pforcePod, (PhysxPxVec3Pod*)pposPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_addLocalForceAtPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodyExtAddLocalForceAtPosNative(PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, PhysxPxVec3Pod* posPod, int modePod, byte wakeup); + + public static void PxRigidBodyExtAddLocalForceAtPos( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, PhysxPxVec3Pod* posPod, int modePod, bool wakeup) + { + PxRigidBodyExtAddLocalForceAtPosNative(bodyPod, forcePod, posPod, modePod, wakeup ? (byte)1 : (byte)0); + } + + public static void PxRigidBodyExtAddLocalForceAtPos( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod forcePod, PhysxPxVec3Pod* posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pforcePod = &forcePod) + { + PxRigidBodyExtAddLocalForceAtPosNative(bodyPod, (PhysxPxVec3Pod*)pforcePod, posPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + + public static void PxRigidBodyExtAddLocalForceAtPos( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, ref PhysxPxVec3Pod posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pposPod = &posPod) + { + PxRigidBodyExtAddLocalForceAtPosNative(bodyPod, forcePod, (PhysxPxVec3Pod*)pposPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + + public static void PxRigidBodyExtAddLocalForceAtPos( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod forcePod, ref PhysxPxVec3Pod posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pforcePod = &forcePod) + { + fixed (PhysxPxVec3Pod* pposPod = &posPod) + { + PxRigidBodyExtAddLocalForceAtPosNative(bodyPod, (PhysxPxVec3Pod*)pforcePod, (PhysxPxVec3Pod*)pposPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_addLocalForceAtLocalPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodyExtAddLocalForceAtLocalPosNative(PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, PhysxPxVec3Pod* posPod, int modePod, byte wakeup); + + public static void PxRigidBodyExtAddLocalForceAtLocalPos( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, PhysxPxVec3Pod* posPod, int modePod, bool wakeup) + { + PxRigidBodyExtAddLocalForceAtLocalPosNative(bodyPod, forcePod, posPod, modePod, wakeup ? (byte)1 : (byte)0); + } + + public static void PxRigidBodyExtAddLocalForceAtLocalPos( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod forcePod, PhysxPxVec3Pod* posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pforcePod = &forcePod) + { + PxRigidBodyExtAddLocalForceAtLocalPosNative(bodyPod, (PhysxPxVec3Pod*)pforcePod, posPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + + public static void PxRigidBodyExtAddLocalForceAtLocalPos( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* forcePod, ref PhysxPxVec3Pod posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pposPod = &posPod) + { + PxRigidBodyExtAddLocalForceAtLocalPosNative(bodyPod, forcePod, (PhysxPxVec3Pod*)pposPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + + public static void PxRigidBodyExtAddLocalForceAtLocalPos( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod forcePod, ref PhysxPxVec3Pod posPod, int modePod, bool wakeup) + { + fixed (PhysxPxVec3Pod* pforcePod = &forcePod) + { + fixed (PhysxPxVec3Pod* pposPod = &posPod) + { + PxRigidBodyExtAddLocalForceAtLocalPosNative(bodyPod, (PhysxPxVec3Pod*)pforcePod, (PhysxPxVec3Pod*)pposPod, modePod, wakeup ? (byte)1 : (byte)0); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_getVelocityAtPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxRigidBodyExtGetVelocityAtPosNative(PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* posPod); + + public static PhysxPxVec3Pod PxRigidBodyExtGetVelocityAtPos( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* posPod) + { + PhysxPxVec3Pod ret = PxRigidBodyExtGetVelocityAtPosNative(bodyPod, posPod); + return ret; + } + + public static PhysxPxVec3Pod PxRigidBodyExtGetVelocityAtPos( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod posPod) + { + fixed (PhysxPxVec3Pod* pposPod = &posPod) + { + PhysxPxVec3Pod ret = PxRigidBodyExtGetVelocityAtPosNative(bodyPod, (PhysxPxVec3Pod*)pposPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_getLocalVelocityAtLocalPos")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxRigidBodyExtGetLocalVelocityAtLocalPosNative(PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* posPod); + + public static PhysxPxVec3Pod PxRigidBodyExtGetLocalVelocityAtLocalPos( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* posPod) + { + PhysxPxVec3Pod ret = PxRigidBodyExtGetLocalVelocityAtLocalPosNative(bodyPod, posPod); + return ret; + } + + public static PhysxPxVec3Pod PxRigidBodyExtGetLocalVelocityAtLocalPos( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod posPod) + { + fixed (PhysxPxVec3Pod* pposPod = &posPod) + { + PhysxPxVec3Pod ret = PxRigidBodyExtGetLocalVelocityAtLocalPosNative(bodyPod, (PhysxPxVec3Pod*)pposPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_getVelocityAtOffset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxVec3Pod PxRigidBodyExtGetVelocityAtOffsetNative(PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* posPod); + + public static PhysxPxVec3Pod PxRigidBodyExtGetVelocityAtOffset( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* posPod) + { + PhysxPxVec3Pod ret = PxRigidBodyExtGetVelocityAtOffsetNative(bodyPod, posPod); + return ret; + } + + public static PhysxPxVec3Pod PxRigidBodyExtGetVelocityAtOffset( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod posPod) + { + fixed (PhysxPxVec3Pod* pposPod = &posPod) + { + PhysxPxVec3Pod ret = PxRigidBodyExtGetVelocityAtOffsetNative(bodyPod, (PhysxPxVec3Pod*)pposPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_computeVelocityDeltaFromImpulse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* impulsiveforcePod, PhysxPxVec3Pod* impulsivetorquePod, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod); + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* impulsiveforcePod, PhysxPxVec3Pod* impulsivetorquePod, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, impulsiveforcePod, impulsivetorquePod, deltalinearvelocityPod, deltaangularvelocityPod); + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod impulsiveforcePod, PhysxPxVec3Pod* impulsivetorquePod, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsiveforcePod = &impulsiveforcePod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, (PhysxPxVec3Pod*)pimpulsiveforcePod, impulsivetorquePod, deltalinearvelocityPod, deltaangularvelocityPod); + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* impulsiveforcePod, ref PhysxPxVec3Pod impulsivetorquePod, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsivetorquePod = &impulsivetorquePod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, impulsiveforcePod, (PhysxPxVec3Pod*)pimpulsivetorquePod, deltalinearvelocityPod, deltaangularvelocityPod); + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod impulsiveforcePod, ref PhysxPxVec3Pod impulsivetorquePod, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsiveforcePod = &impulsiveforcePod) + { + fixed (PhysxPxVec3Pod* pimpulsivetorquePod = &impulsivetorquePod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, (PhysxPxVec3Pod*)pimpulsiveforcePod, (PhysxPxVec3Pod*)pimpulsivetorquePod, deltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* impulsiveforcePod, PhysxPxVec3Pod* impulsivetorquePod, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, impulsiveforcePod, impulsivetorquePod, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod impulsiveforcePod, PhysxPxVec3Pod* impulsivetorquePod, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsiveforcePod = &impulsiveforcePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, (PhysxPxVec3Pod*)pimpulsiveforcePod, impulsivetorquePod, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* impulsiveforcePod, ref PhysxPxVec3Pod impulsivetorquePod, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsivetorquePod = &impulsivetorquePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, impulsiveforcePod, (PhysxPxVec3Pod*)pimpulsivetorquePod, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod impulsiveforcePod, ref PhysxPxVec3Pod impulsivetorquePod, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsiveforcePod = &impulsiveforcePod) + { + fixed (PhysxPxVec3Pod* pimpulsivetorquePod = &impulsivetorquePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, (PhysxPxVec3Pod*)pimpulsiveforcePod, (PhysxPxVec3Pod*)pimpulsivetorquePod, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* impulsiveforcePod, PhysxPxVec3Pod* impulsivetorquePod, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, impulsiveforcePod, impulsivetorquePod, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod impulsiveforcePod, PhysxPxVec3Pod* impulsivetorquePod, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsiveforcePod = &impulsiveforcePod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, (PhysxPxVec3Pod*)pimpulsiveforcePod, impulsivetorquePod, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* impulsiveforcePod, ref PhysxPxVec3Pod impulsivetorquePod, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsivetorquePod = &impulsivetorquePod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, impulsiveforcePod, (PhysxPxVec3Pod*)pimpulsivetorquePod, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod impulsiveforcePod, ref PhysxPxVec3Pod impulsivetorquePod, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsiveforcePod = &impulsiveforcePod) + { + fixed (PhysxPxVec3Pod* pimpulsivetorquePod = &impulsivetorquePod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, (PhysxPxVec3Pod*)pimpulsiveforcePod, (PhysxPxVec3Pod*)pimpulsivetorquePod, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* impulsiveforcePod, PhysxPxVec3Pod* impulsivetorquePod, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, impulsiveforcePod, impulsivetorquePod, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod impulsiveforcePod, PhysxPxVec3Pod* impulsivetorquePod, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsiveforcePod = &impulsiveforcePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, (PhysxPxVec3Pod*)pimpulsiveforcePod, impulsivetorquePod, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxVec3Pod* impulsiveforcePod, ref PhysxPxVec3Pod impulsivetorquePod, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsivetorquePod = &impulsivetorquePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, impulsiveforcePod, (PhysxPxVec3Pod*)pimpulsivetorquePod, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxVec3Pod impulsiveforcePod, ref PhysxPxVec3Pod impulsivetorquePod, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsiveforcePod = &impulsiveforcePod) + { + fixed (PhysxPxVec3Pod* pimpulsivetorquePod = &impulsivetorquePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulseNative(bodyPod, (PhysxPxVec3Pod*)pimpulsiveforcePod, (PhysxPxVec3Pod*)pimpulsivetorquePod, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_computeVelocityDeltaFromImpulse_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod); + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, deltaangularvelocityPod); + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, deltaangularvelocityPod); + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, deltaangularvelocityPod); + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, deltaangularvelocityPod); + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, PhysxPxVec3Pod* deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, deltaangularvelocityPod); + } + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, deltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + } + + public static void PxRigidBodyExtComputeVelocityDeltaFromImpulse1( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod deltalinearvelocityPod, ref PhysxPxVec3Pod deltaangularvelocityPod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pdeltalinearvelocityPod = &deltalinearvelocityPod) + { + fixed (PhysxPxVec3Pod* pdeltaangularvelocityPod = &deltaangularvelocityPod) + { + PxRigidBodyExtComputeVelocityDeltaFromImpulse1Native(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)pdeltalinearvelocityPod, (PhysxPxVec3Pod*)pdeltaangularvelocityPod); + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_computeLinearAngularImpulse")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRigidBodyExtComputeLinearAngularImpulseNative(PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod); + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, linearimpulsePod, angularimpulsePod); + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, linearimpulsePod, angularimpulsePod); + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, linearimpulsePod, angularimpulsePod); + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, linearimpulsePod, angularimpulsePod); + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, linearimpulsePod, angularimpulsePod); + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, linearimpulsePod, angularimpulsePod); + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, linearimpulsePod, angularimpulsePod); + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, linearimpulsePod, angularimpulsePod); + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, angularimpulsePod); + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, angularimpulsePod); + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, angularimpulsePod); + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, angularimpulsePod); + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, angularimpulsePod); + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, angularimpulsePod); + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, angularimpulsePod); + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, PhysxPxVec3Pod* angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, angularimpulsePod); + } + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, linearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, linearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, linearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, linearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, linearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, linearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, linearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, PhysxPxVec3Pod* linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, linearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, PhysxPxVec3Pod* impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, impulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, pointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, PhysxPxTransformPod* globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, globalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + } + } + + public static void PxRigidBodyExtComputeLinearAngularImpulse( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxTransformPod globalposePod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec3Pod impulsePod, float invMassScale, float invInertiaScale, ref PhysxPxVec3Pod linearimpulsePod, ref PhysxPxVec3Pod angularimpulsePod) + { + fixed (PhysxPxTransformPod* pglobalposePod = &globalposePod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec3Pod* pimpulsePod = &impulsePod) + { + fixed (PhysxPxVec3Pod* plinearimpulsePod = &linearimpulsePod) + { + fixed (PhysxPxVec3Pod* pangularimpulsePod = &angularimpulsePod) + { + PxRigidBodyExtComputeLinearAngularImpulseNative(bodyPod, (PhysxPxTransformPod*)pglobalposePod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec3Pod*)pimpulsePod, invMassScale, invInertiaScale, (PhysxPxVec3Pod*)plinearimpulsePod, (PhysxPxVec3Pod*)pangularimpulsePod); + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_linearSweepSingle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRigidBodyExtLinearSweepSingleNative(PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation); + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.012.cs b/Hexa.NET.PhysX/Generated/Functions.012.cs new file mode 100644 index 0000000..6901b4f --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.012.cs @@ -0,0 +1,5029 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, uint* shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, shapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, closesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxRigidBodyExtLinearSweepSingle( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod closesthitPod, ref uint shapeindexPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pclosesthitPod = &closesthitPod) + { + fixed (uint* pshapeindexPod = &shapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxRigidBodyExtLinearSweepSingleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)pclosesthitPod, (uint*)pshapeindexPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRigidBodyExt_linearSweepMultiple")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxRigidBodyExtLinearSweepMultipleNative(PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation); + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.013.cs b/Hexa.NET.PhysX/Generated/Functions.013.cs new file mode 100644 index 0000000..bb3dfa2 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.013.cs @@ -0,0 +1,5037 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.014.cs b/Hexa.NET.PhysX/Generated/Functions.014.cs new file mode 100644 index 0000000..ef182e6 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.014.cs @@ -0,0 +1,5025 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.015.cs b/Hexa.NET.PhysX/Generated/Functions.015.cs new file mode 100644 index 0000000..204c1e1 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.015.cs @@ -0,0 +1,5028 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.016.cs b/Hexa.NET.PhysX/Generated/Functions.016.cs new file mode 100644 index 0000000..93e985e --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.016.cs @@ -0,0 +1,5039 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, byte* overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, overflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, int* blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, blockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, PhysxPxSweepHitPod* blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, blockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, uint* touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, touchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, touchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, scenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + } + + public static uint PxRigidBodyExtLinearSweepMultiple( PhysxPxRigidBodyPod* bodyPod, ref PhysxPxScenePod scenePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod touchhitbufferPod, ref uint touchHitShapeIndices, uint touchHitBufferSize, ref PhysxPxSweepHitPod blockPod, ref int blockingshapeindexPod, ref byte overflowPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxScenePod* pscenePod = &scenePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* ptouchhitbufferPod = &touchhitbufferPod) + { + fixed (uint* ptouchHitShapeIndices = &touchHitShapeIndices) + { + fixed (PhysxPxSweepHitPod* pblockPod = &blockPod) + { + fixed (int* pblockingshapeindexPod = &blockingshapeindexPod) + { + fixed (byte* poverflowPod = &overflowPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + uint ret = PxRigidBodyExtLinearSweepMultipleNative(bodyPod, (PhysxPxScenePod*)pscenePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)ptouchhitbufferPod, (uint*)ptouchHitShapeIndices, touchHitBufferSize, (PhysxPxSweepHitPod*)pblockPod, (int*)pblockingshapeindexPod, (byte*)poverflowPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxShapeExt_getGlobalPose")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTransformPod PxShapeExtGetGlobalPoseNative(PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod); + + public static PhysxPxTransformPod PxShapeExtGetGlobalPose( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod) + { + PhysxPxTransformPod ret = PxShapeExtGetGlobalPoseNative(shapePod, actorPod); + return ret; + } + + public static PhysxPxTransformPod PxShapeExtGetGlobalPose( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + PhysxPxTransformPod ret = PxShapeExtGetGlobalPoseNative(shapePod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxShapeExt_raycast")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxShapeExtRaycastNative(PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* rayoriginPod, PhysxPxVec3Pod* raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxRaycastHitPod* rayhitsPod); + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* rayoriginPod, PhysxPxVec3Pod* raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxRaycastHitPod* rayhitsPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, actorPod, rayoriginPod, raydirPod, maxDist, hitflagsPod, maxHits, rayhitsPod); + return ret; + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* rayoriginPod, PhysxPxVec3Pod* raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxRaycastHitPod* rayhitsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, rayoriginPod, raydirPod, maxDist, hitflagsPod, maxHits, rayhitsPod); + return ret; + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod rayoriginPod, PhysxPxVec3Pod* raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxRaycastHitPod* rayhitsPod) + { + fixed (PhysxPxVec3Pod* prayoriginPod = &rayoriginPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, actorPod, (PhysxPxVec3Pod*)prayoriginPod, raydirPod, maxDist, hitflagsPod, maxHits, rayhitsPod); + return ret; + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod rayoriginPod, PhysxPxVec3Pod* raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxRaycastHitPod* rayhitsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* prayoriginPod = &rayoriginPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)prayoriginPod, raydirPod, maxDist, hitflagsPod, maxHits, rayhitsPod); + return ret; + } + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* rayoriginPod, ref PhysxPxVec3Pod raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxRaycastHitPod* rayhitsPod) + { + fixed (PhysxPxVec3Pod* praydirPod = &raydirPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, actorPod, rayoriginPod, (PhysxPxVec3Pod*)praydirPod, maxDist, hitflagsPod, maxHits, rayhitsPod); + return ret; + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* rayoriginPod, ref PhysxPxVec3Pod raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxRaycastHitPod* rayhitsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* praydirPod = &raydirPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, rayoriginPod, (PhysxPxVec3Pod*)praydirPod, maxDist, hitflagsPod, maxHits, rayhitsPod); + return ret; + } + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod rayoriginPod, ref PhysxPxVec3Pod raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxRaycastHitPod* rayhitsPod) + { + fixed (PhysxPxVec3Pod* prayoriginPod = &rayoriginPod) + { + fixed (PhysxPxVec3Pod* praydirPod = &raydirPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, actorPod, (PhysxPxVec3Pod*)prayoriginPod, (PhysxPxVec3Pod*)praydirPod, maxDist, hitflagsPod, maxHits, rayhitsPod); + return ret; + } + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod rayoriginPod, ref PhysxPxVec3Pod raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, PhysxPxRaycastHitPod* rayhitsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* prayoriginPod = &rayoriginPod) + { + fixed (PhysxPxVec3Pod* praydirPod = &raydirPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)prayoriginPod, (PhysxPxVec3Pod*)praydirPod, maxDist, hitflagsPod, maxHits, rayhitsPod); + return ret; + } + } + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* rayoriginPod, PhysxPxVec3Pod* raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxRaycastHitPod rayhitsPod) + { + fixed (PhysxPxRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, actorPod, rayoriginPod, raydirPod, maxDist, hitflagsPod, maxHits, (PhysxPxRaycastHitPod*)prayhitsPod); + return ret; + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* rayoriginPod, PhysxPxVec3Pod* raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxRaycastHitPod rayhitsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, rayoriginPod, raydirPod, maxDist, hitflagsPod, maxHits, (PhysxPxRaycastHitPod*)prayhitsPod); + return ret; + } + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod rayoriginPod, PhysxPxVec3Pod* raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxRaycastHitPod rayhitsPod) + { + fixed (PhysxPxVec3Pod* prayoriginPod = &rayoriginPod) + { + fixed (PhysxPxRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, actorPod, (PhysxPxVec3Pod*)prayoriginPod, raydirPod, maxDist, hitflagsPod, maxHits, (PhysxPxRaycastHitPod*)prayhitsPod); + return ret; + } + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod rayoriginPod, PhysxPxVec3Pod* raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxRaycastHitPod rayhitsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* prayoriginPod = &rayoriginPod) + { + fixed (PhysxPxRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)prayoriginPod, raydirPod, maxDist, hitflagsPod, maxHits, (PhysxPxRaycastHitPod*)prayhitsPod); + return ret; + } + } + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* rayoriginPod, ref PhysxPxVec3Pod raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxRaycastHitPod rayhitsPod) + { + fixed (PhysxPxVec3Pod* praydirPod = &raydirPod) + { + fixed (PhysxPxRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, actorPod, rayoriginPod, (PhysxPxVec3Pod*)praydirPod, maxDist, hitflagsPod, maxHits, (PhysxPxRaycastHitPod*)prayhitsPod); + return ret; + } + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* rayoriginPod, ref PhysxPxVec3Pod raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxRaycastHitPod rayhitsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* praydirPod = &raydirPod) + { + fixed (PhysxPxRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, rayoriginPod, (PhysxPxVec3Pod*)praydirPod, maxDist, hitflagsPod, maxHits, (PhysxPxRaycastHitPod*)prayhitsPod); + return ret; + } + } + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod rayoriginPod, ref PhysxPxVec3Pod raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxRaycastHitPod rayhitsPod) + { + fixed (PhysxPxVec3Pod* prayoriginPod = &rayoriginPod) + { + fixed (PhysxPxVec3Pod* praydirPod = &raydirPod) + { + fixed (PhysxPxRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, actorPod, (PhysxPxVec3Pod*)prayoriginPod, (PhysxPxVec3Pod*)praydirPod, maxDist, hitflagsPod, maxHits, (PhysxPxRaycastHitPod*)prayhitsPod); + return ret; + } + } + } + } + + public static uint PxShapeExtRaycast( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod rayoriginPod, ref PhysxPxVec3Pod raydirPod, float maxDist, ushort hitflagsPod, uint maxHits, ref PhysxPxRaycastHitPod rayhitsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* prayoriginPod = &rayoriginPod) + { + fixed (PhysxPxVec3Pod* praydirPod = &raydirPod) + { + fixed (PhysxPxRaycastHitPod* prayhitsPod = &rayhitsPod) + { + uint ret = PxShapeExtRaycastNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)prayoriginPod, (PhysxPxVec3Pod*)praydirPod, maxDist, hitflagsPod, maxHits, (PhysxPxRaycastHitPod*)prayhitsPod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxShapeExt_overlap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxShapeExtOverlapNative(PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod); + + public static bool PxShapeExtOverlap( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod) + { + byte ret = PxShapeExtOverlapNative(shapePod, actorPod, othergeomPod, othergeomposePod); + return ret != 0; + } + + public static bool PxShapeExtOverlap( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + byte ret = PxShapeExtOverlapNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, othergeomPod, othergeomposePod); + return ret != 0; + } + } + + public static bool PxShapeExtOverlap( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxGeometryPod othergeomPod, PhysxPxTransformPod* othergeomposePod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + byte ret = PxShapeExtOverlapNative(shapePod, actorPod, (PhysxPxGeometryPod*)pothergeomPod, othergeomposePod); + return ret != 0; + } + } + + public static bool PxShapeExtOverlap( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxGeometryPod othergeomPod, PhysxPxTransformPod* othergeomposePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + byte ret = PxShapeExtOverlapNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxGeometryPod*)pothergeomPod, othergeomposePod); + return ret != 0; + } + } + } + + public static bool PxShapeExtOverlap( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxGeometryPod* othergeomPod, ref PhysxPxTransformPod othergeomposePod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtOverlapNative(shapePod, actorPod, othergeomPod, (PhysxPxTransformPod*)pothergeomposePod); + return ret != 0; + } + } + + public static bool PxShapeExtOverlap( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxGeometryPod* othergeomPod, ref PhysxPxTransformPod othergeomposePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtOverlapNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, othergeomPod, (PhysxPxTransformPod*)pothergeomposePod); + return ret != 0; + } + } + } + + public static bool PxShapeExtOverlap( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxGeometryPod othergeomPod, ref PhysxPxTransformPod othergeomposePod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtOverlapNative(shapePod, actorPod, (PhysxPxGeometryPod*)pothergeomPod, (PhysxPxTransformPod*)pothergeomposePod); + return ret != 0; + } + } + } + + public static bool PxShapeExtOverlap( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxGeometryPod othergeomPod, ref PhysxPxTransformPod othergeomposePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtOverlapNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxGeometryPod*)pothergeomPod, (PhysxPxTransformPod*)pothergeomposePod); + return ret != 0; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxShapeExt_sweep")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxShapeExtSweepNative(PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod); + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, unitdirPod, distance, othergeomPod, othergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, unitdirPod, distance, othergeomPod, othergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, (PhysxPxVec3Pod*)punitdirPod, distance, othergeomPod, othergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)punitdirPod, distance, othergeomPod, othergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, PhysxPxTransformPod* othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, unitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, othergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, PhysxPxTransformPod* othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, unitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, othergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, PhysxPxTransformPod* othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, othergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, PhysxPxTransformPod* othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, othergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, ref PhysxPxTransformPod othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, unitdirPod, distance, othergeomPod, (PhysxPxTransformPod*)pothergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, ref PhysxPxTransformPod othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, unitdirPod, distance, othergeomPod, (PhysxPxTransformPod*)pothergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, ref PhysxPxTransformPod othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, (PhysxPxVec3Pod*)punitdirPod, distance, othergeomPod, (PhysxPxTransformPod*)pothergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, ref PhysxPxTransformPod othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)punitdirPod, distance, othergeomPod, (PhysxPxTransformPod*)pothergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, ref PhysxPxTransformPod othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, unitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, (PhysxPxTransformPod*)pothergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, ref PhysxPxTransformPod othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, unitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, (PhysxPxTransformPod*)pothergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, ref PhysxPxTransformPod othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, (PhysxPxTransformPod*)pothergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, ref PhysxPxTransformPod othergeomposePod, PhysxPxSweepHitPod* sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, (PhysxPxTransformPod*)pothergeomposePod, sweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, unitdirPod, distance, othergeomPod, othergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, unitdirPod, distance, othergeomPod, othergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, (PhysxPxVec3Pod*)punitdirPod, distance, othergeomPod, othergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, PhysxPxTransformPod* othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)punitdirPod, distance, othergeomPod, othergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, PhysxPxTransformPod* othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, unitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, othergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, PhysxPxTransformPod* othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, unitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, othergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, PhysxPxTransformPod* othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, othergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, PhysxPxTransformPod* othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, othergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, ref PhysxPxTransformPod othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, unitdirPod, distance, othergeomPod, (PhysxPxTransformPod*)pothergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, ref PhysxPxTransformPod othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, unitdirPod, distance, othergeomPod, (PhysxPxTransformPod*)pothergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, ref PhysxPxTransformPod othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, (PhysxPxVec3Pod*)punitdirPod, distance, othergeomPod, (PhysxPxTransformPod*)pothergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxGeometryPod* othergeomPod, ref PhysxPxTransformPod othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)punitdirPod, distance, othergeomPod, (PhysxPxTransformPod*)pothergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, ref PhysxPxTransformPod othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, unitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, (PhysxPxTransformPod*)pothergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, ref PhysxPxTransformPod othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, unitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, (PhysxPxTransformPod*)pothergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, ref PhysxPxTransformPod othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, actorPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, (PhysxPxTransformPod*)pothergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxShapeExtSweep( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxGeometryPod othergeomPod, ref PhysxPxTransformPod othergeomposePod, ref PhysxPxSweepHitPod sweephitPod, ushort hitflagsPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxGeometryPod* pothergeomPod = &othergeomPod) + { + fixed (PhysxPxTransformPod* pothergeomposePod = &othergeomposePod) + { + fixed (PhysxPxSweepHitPod* psweephitPod = &sweephitPod) + { + byte ret = PxShapeExtSweepNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxGeometryPod*)pothergeomPod, (PhysxPxTransformPod*)pothergeomposePod, (PhysxPxSweepHitPod*)psweephitPod, hitflagsPod); + return ret != 0; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxShapeExt_getWorldBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBounds3Pod PxShapeExtGetWorldBoundsNative(PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, float inflation); + + public static PhysxPxBounds3Pod PxShapeExtGetWorldBounds( PhysxPxShapePod* shapePod, PhysxPxRigidActorPod* actorPod, float inflation) + { + PhysxPxBounds3Pod ret = PxShapeExtGetWorldBoundsNative(shapePod, actorPod, inflation); + return ret; + } + + public static PhysxPxBounds3Pod PxShapeExtGetWorldBounds( PhysxPxShapePod* shapePod, ref PhysxPxRigidActorPod actorPod, float inflation) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + PhysxPxBounds3Pod ret = PxShapeExtGetWorldBoundsNative(shapePod, (PhysxPxRigidActorPod*)pactorPod, inflation); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxMeshOverlapUtil_new_alloc")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxMeshOverlapUtilPod* PxMeshOverlapUtilNewAllocNative(); + + public static PhysxPxMeshOverlapUtilPod* PxMeshOverlapUtilNewAlloc() + { + PhysxPxMeshOverlapUtilPod* ret = PxMeshOverlapUtilNewAllocNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshOverlapUtil_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxMeshOverlapUtilDeleteNative(PhysxPxMeshOverlapUtilPod* selfPod); + + public static void PxMeshOverlapUtilDelete( PhysxPxMeshOverlapUtilPod* selfPod) + { + PxMeshOverlapUtilDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxMeshOverlapUtil_findOverlap_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxMeshOverlapUtilFindOverlapMutNative(PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod); + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, geomPod, geomposePod, meshgeomPod, meshposePod); + return ret; + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, meshgeomPod, meshposePod); + return ret; + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod); + return ret; + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod); + return ret; + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod); + return ret; + } + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, geomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod); + return ret; + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod); + return ret; + } + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod); + return ret; + } + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod); + return ret; + } + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMeshOverlapUtil_findOverlap_mut_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxMeshOverlapUtilFindOverlapMut1Native(PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod); + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, geomPod, geomposePod, hfgeomPod, hfposePod); + return ret; + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, hfgeomPod, hfposePod); + return ret; + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, hfposePod); + return ret; + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, PhysxPxTransformPod* hfposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, hfposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod); + return ret; + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, PhysxPxTransformPod* hfposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, hfposePod); + return ret; + } + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, geomPod, geomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod); + return ret; + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* hfgeomPod, ref PhysxPxTransformPod hfposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, hfgeomPod, (PhysxPxTransformPod*)phfposePod); + return ret; + } + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod); + return ret; + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod); + return ret; + } + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod); + return ret; + } + } + } + } + + public static uint PxMeshOverlapUtilFindOverlapMut1( PhysxPxMeshOverlapUtilPod* selfPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod hfgeomPod, ref PhysxPxTransformPod hfposePod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* phfgeomPod = &hfgeomPod) + { + fixed (PhysxPxTransformPod* phfposePod = &hfposePod) + { + uint ret = PxMeshOverlapUtilFindOverlapMut1Native(selfPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)phfgeomPod, (PhysxPxTransformPod*)phfposePod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxMeshOverlapUtil_getResults")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint* PxMeshOverlapUtilGetResultsNative(PhysxPxMeshOverlapUtilPod* selfPod); + + public static uint* PxMeshOverlapUtilGetResults( PhysxPxMeshOverlapUtilPod* selfPod) + { + uint* ret = PxMeshOverlapUtilGetResultsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxMeshOverlapUtil_getNbResults")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxMeshOverlapUtilGetNbResultsNative(PhysxPxMeshOverlapUtilPod* selfPod); + + public static uint PxMeshOverlapUtilGetNbResults( PhysxPxMeshOverlapUtilPod* selfPod) + { + uint ret = PxMeshOverlapUtilGetNbResultsNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxComputeTriangleMeshPenetration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxComputeTriangleMeshPenetrationNative(PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter); + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, geomposePod, meshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, meshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, meshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, meshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, geomposePod, meshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, meshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, meshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, meshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, PhysxPxTransformPod* meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, meshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.017.cs b/Hexa.NET.PhysX/Generated/Functions.017.cs new file mode 100644 index 0000000..f7c22a8 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.017.cs @@ -0,0 +1,5024 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxTriangleMeshGeometryPod* meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, meshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeTriangleMeshPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxTriangleMeshGeometryPod meshgeomPod, ref PhysxPxTransformPod meshposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTriangleMeshGeometryPod* pmeshgeomPod = &meshgeomPod) + { + fixed (PhysxPxTransformPod* pmeshposePod = &meshposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeTriangleMeshPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxTriangleMeshGeometryPod*)pmeshgeomPod, (PhysxPxTransformPod*)pmeshposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxComputeHeightFieldPenetration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxComputeHeightFieldPenetrationNative(PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter); + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, geomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, geomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, uint* usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, usedIter); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, geomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, PhysxPxTransformPod* heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, heightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, geomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, PhysxPxHeightFieldGeometryPod* heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, heightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, geomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, PhysxPxGeometryPod* geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, geomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, float* depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, depthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + + public static bool PhysPxComputeHeightFieldPenetration( PhysxPxVec3Pod* directionPod, ref float depthPod, ref PhysxPxGeometryPod geomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxHeightFieldGeometryPod heightfieldgeomPod, ref PhysxPxTransformPod heightfieldposePod, uint maxIter, ref uint usedIter) + { + fixed (float* pdepthPod = &depthPod) + { + fixed (PhysxPxGeometryPod* pgeomPod = &geomPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxHeightFieldGeometryPod* pheightfieldgeomPod = &heightfieldgeomPod) + { + fixed (PhysxPxTransformPod* pheightfieldposePod = &heightfieldposePod) + { + fixed (uint* pusedIter = &usedIter) + { + byte ret = PhysPxComputeHeightFieldPenetrationNative(directionPod, (float*)pdepthPod, (PhysxPxGeometryPod*)pgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxHeightFieldGeometryPod*)pheightfieldgeomPod, (PhysxPxTransformPod*)pheightfieldposePod, maxIter, (uint*)pusedIter); + return ret != 0; + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxXmlMiscParameter_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxXmlMiscParameterPod PxXmlMiscParameterNewNative(); + + public static PhysxPxXmlMiscParameterPod PxXmlMiscParameterNew() + { + PhysxPxXmlMiscParameterPod ret = PxXmlMiscParameterNewNative(); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxXmlMiscParameter_new_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxXmlMiscParameterPod PxXmlMiscParameterNew1Native(PhysxPxVec3Pod* inupvectorPod, PhysxPxTolerancesScalePod inscalePod); + + public static PhysxPxXmlMiscParameterPod PxXmlMiscParameterNew1( PhysxPxVec3Pod* inupvectorPod, PhysxPxTolerancesScalePod inscalePod) + { + PhysxPxXmlMiscParameterPod ret = PxXmlMiscParameterNew1Native(inupvectorPod, inscalePod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxSerialization_isSerializable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSerializationIsSerializableNative(PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalreferencesPod); + + public static bool PxSerializationIsSerializable( PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalreferencesPod) + { + byte ret = PxSerializationIsSerializableNative(collectionPod, srPod, externalreferencesPod); + return ret != 0; + } + + public static bool PxSerializationIsSerializable( PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalreferencesPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + byte ret = PxSerializationIsSerializableNative(collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, externalreferencesPod); + return ret != 0; + } + } + + public static bool PxSerializationIsSerializable( PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalreferencesPod) + { + fixed (PhysxPxCollectionPod* pexternalreferencesPod = &externalreferencesPod) + { + byte ret = PxSerializationIsSerializableNative(collectionPod, srPod, (PhysxPxCollectionPod*)pexternalreferencesPod); + return ret != 0; + } + } + + public static bool PxSerializationIsSerializable( PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalreferencesPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalreferencesPod = &externalreferencesPod) + { + byte ret = PxSerializationIsSerializableNative(collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalreferencesPod); + return ret != 0; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerialization_complete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializationCompleteNative(PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* exceptforPod, byte followJoints); + + public static void PxSerializationComplete( PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* exceptforPod, bool followJoints) + { + PxSerializationCompleteNative(collectionPod, srPod, exceptforPod, followJoints ? (byte)1 : (byte)0); + } + + public static void PxSerializationComplete( PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* exceptforPod, bool followJoints) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + PxSerializationCompleteNative(collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, exceptforPod, followJoints ? (byte)1 : (byte)0); + } + } + + public static void PxSerializationComplete( PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod exceptforPod, bool followJoints) + { + fixed (PhysxPxCollectionPod* pexceptforPod = &exceptforPod) + { + PxSerializationCompleteNative(collectionPod, srPod, (PhysxPxCollectionPod*)pexceptforPod, followJoints ? (byte)1 : (byte)0); + } + } + + public static void PxSerializationComplete( PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod exceptforPod, bool followJoints) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexceptforPod = &exceptforPod) + { + PxSerializationCompleteNative(collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexceptforPod, followJoints ? (byte)1 : (byte)0); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerialization_createSerialObjectIds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxSerializationCreateSerialObjectIdsNative(PhysxPxCollectionPod* collectionPod, ulong baseValue); + + public static void PxSerializationCreateSerialObjectIds( PhysxPxCollectionPod* collectionPod, ulong baseValue) + { + PxSerializationCreateSerialObjectIdsNative(collectionPod, baseValue); + } + + [LibraryImport(LibName, EntryPoint = "PxSerialization_createCollectionFromXml")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCollectionPod* PxSerializationCreateCollectionFromXmlNative(PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxStringTablePod* stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod); + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxStringTablePod* stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, srPod, externalrefsPod, stringtablePod, outargsPod); + return ret; + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxStringTablePod* stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, srPod, externalrefsPod, stringtablePod, outargsPod); + return ret; + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxStringTablePod* stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, (PhysxPxSerializationRegistryPod*)psrPod, externalrefsPod, stringtablePod, outargsPod); + return ret; + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxStringTablePod* stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxSerializationRegistryPod*)psrPod, externalrefsPod, stringtablePod, outargsPod); + return ret; + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxStringTablePod* stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, srPod, (PhysxPxCollectionPod*)pexternalrefsPod, stringtablePod, outargsPod); + return ret; + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxStringTablePod* stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, srPod, (PhysxPxCollectionPod*)pexternalrefsPod, stringtablePod, outargsPod); + return ret; + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxStringTablePod* stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalrefsPod, stringtablePod, outargsPod); + return ret; + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxStringTablePod* stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalrefsPod, stringtablePod, outargsPod); + return ret; + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxStringTablePod stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, srPod, externalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, outargsPod); + return ret; + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxStringTablePod stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, srPod, externalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, outargsPod); + return ret; + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxStringTablePod stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, (PhysxPxSerializationRegistryPod*)psrPod, externalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, outargsPod); + return ret; + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxStringTablePod stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxSerializationRegistryPod*)psrPod, externalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, outargsPod); + return ret; + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxStringTablePod stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, srPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, outargsPod); + return ret; + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxStringTablePod stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, srPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, outargsPod); + return ret; + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxStringTablePod stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, outargsPod); + return ret; + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxStringTablePod stringtablePod, PhysxPxXmlMiscParameterPod* outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, outargsPod); + return ret; + } + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxStringTablePod* stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, srPod, externalrefsPod, stringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxStringTablePod* stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, srPod, externalrefsPod, stringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxStringTablePod* stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, (PhysxPxSerializationRegistryPod*)psrPod, externalrefsPod, stringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxStringTablePod* stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxSerializationRegistryPod*)psrPod, externalrefsPod, stringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxStringTablePod* stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, srPod, (PhysxPxCollectionPod*)pexternalrefsPod, stringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxStringTablePod* stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, srPod, (PhysxPxCollectionPod*)pexternalrefsPod, stringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxStringTablePod* stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalrefsPod, stringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxStringTablePod* stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalrefsPod, stringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxStringTablePod stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, srPod, externalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxStringTablePod stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, srPod, externalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxStringTablePod stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, (PhysxPxSerializationRegistryPod*)psrPod, externalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxStringTablePod stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxSerializationRegistryPod*)psrPod, externalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxStringTablePod stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, srPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxStringTablePod stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, srPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, PhysxPxCookingPod* cookingPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxStringTablePod stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, cookingPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromXml( PhysxPxInputDataPod* inputdataPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxStringTablePod stringtablePod, ref PhysxPxXmlMiscParameterPod outargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxStringTablePod* pstringtablePod = &stringtablePod) + { + fixed (PhysxPxXmlMiscParameterPod* poutargsPod = &outargsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromXmlNative(inputdataPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxStringTablePod*)pstringtablePod, (PhysxPxXmlMiscParameterPod*)poutargsPod); + return ret; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerialization_createCollectionFromBinary")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCollectionPod* PxSerializationCreateCollectionFromBinaryNative(void* memBlock, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod); + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromBinary( void* memBlock, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromBinaryNative(memBlock, srPod, externalrefsPod); + return ret; + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromBinary( void* memBlock, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalrefsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromBinaryNative(memBlock, (PhysxPxSerializationRegistryPod*)psrPod, externalrefsPod); + return ret; + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromBinary( void* memBlock, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalrefsPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromBinaryNative(memBlock, srPod, (PhysxPxCollectionPod*)pexternalrefsPod); + return ret; + } + } + + public static PhysxPxCollectionPod* PxSerializationCreateCollectionFromBinary( void* memBlock, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalrefsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + PhysxPxCollectionPod* ret = PxSerializationCreateCollectionFromBinaryNative(memBlock, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalrefsPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerialization_serializeCollectionToXml")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSerializationSerializeCollectionToXmlNative(PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCookingPod* cookingPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod); + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCookingPod* cookingPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, srPod, cookingPod, externalrefsPod, inargsPod); + return ret != 0; + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCookingPod* cookingPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, srPod, cookingPod, externalrefsPod, inargsPod); + return ret != 0; + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCookingPod* cookingPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, cookingPod, externalrefsPod, inargsPod); + return ret != 0; + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCookingPod* cookingPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, (PhysxPxSerializationRegistryPod*)psrPod, cookingPod, externalrefsPod, inargsPod); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCookingPod cookingPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, srPod, (PhysxPxCookingPod*)pcookingPod, externalrefsPod, inargsPod); + return ret != 0; + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCookingPod cookingPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, srPod, (PhysxPxCookingPod*)pcookingPod, externalrefsPod, inargsPod); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCookingPod cookingPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCookingPod*)pcookingPod, externalrefsPod, inargsPod); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCookingPod cookingPod, PhysxPxCollectionPod* externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCookingPod*)pcookingPod, externalrefsPod, inargsPod); + return ret != 0; + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCookingPod* cookingPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, srPod, cookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, inargsPod); + return ret != 0; + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCookingPod* cookingPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, srPod, cookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, inargsPod); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCookingPod* cookingPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, cookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, inargsPod); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCookingPod* cookingPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, (PhysxPxSerializationRegistryPod*)psrPod, cookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, inargsPod); + return ret != 0; + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, srPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, inargsPod); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, srPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, inargsPod); + return ret != 0; + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, inargsPod); + return ret != 0; + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxCollectionPod externalrefsPod, PhysxPxXmlMiscParameterPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, inargsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCookingPod* cookingPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, srPod, cookingPod, externalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCookingPod* cookingPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, srPod, cookingPod, externalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCookingPod* cookingPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, cookingPod, externalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCookingPod* cookingPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, (PhysxPxSerializationRegistryPod*)psrPod, cookingPod, externalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCookingPod cookingPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, srPod, (PhysxPxCookingPod*)pcookingPod, externalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCookingPod cookingPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, srPod, (PhysxPxCookingPod*)pcookingPod, externalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCookingPod cookingPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCookingPod*)pcookingPod, externalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCookingPod cookingPod, PhysxPxCollectionPod* externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCookingPod*)pcookingPod, externalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCookingPod* cookingPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, srPod, cookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCookingPod* cookingPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, srPod, cookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCookingPod* cookingPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, cookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCookingPod* cookingPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, (PhysxPxSerializationRegistryPod*)psrPod, cookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, srPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, srPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSerializationSerializeCollectionToXml( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCookingPod cookingPod, ref PhysxPxCollectionPod externalrefsPod, ref PhysxPxXmlMiscParameterPod inargsPod) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCookingPod* pcookingPod = &cookingPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + fixed (PhysxPxXmlMiscParameterPod* pinargsPod = &inargsPod) + { + byte ret = PxSerializationSerializeCollectionToXmlNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCookingPod*)pcookingPod, (PhysxPxCollectionPod*)pexternalrefsPod, (PhysxPxXmlMiscParameterPod*)pinargsPod); + return ret != 0; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerialization_serializeCollectionToBinary")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSerializationSerializeCollectionToBinaryNative(PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, byte exportNames); + + public static bool PxSerializationSerializeCollectionToBinary( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, bool exportNames) + { + byte ret = PxSerializationSerializeCollectionToBinaryNative(outputstreamPod, collectionPod, srPod, externalrefsPod, exportNames ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool PxSerializationSerializeCollectionToBinary( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, PhysxPxSerializationRegistryPod* srPod, PhysxPxCollectionPod* externalrefsPod, bool exportNames) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + byte ret = PxSerializationSerializeCollectionToBinaryNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, srPod, externalrefsPod, exportNames ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PxSerializationSerializeCollectionToBinary( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalrefsPod, bool exportNames) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + byte ret = PxSerializationSerializeCollectionToBinaryNative(outputstreamPod, collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, externalrefsPod, exportNames ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PxSerializationSerializeCollectionToBinary( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, ref PhysxPxSerializationRegistryPod srPod, PhysxPxCollectionPod* externalrefsPod, bool exportNames) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + byte ret = PxSerializationSerializeCollectionToBinaryNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, (PhysxPxSerializationRegistryPod*)psrPod, externalrefsPod, exportNames ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToBinary( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalrefsPod, bool exportNames) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToBinaryNative(outputstreamPod, collectionPod, srPod, (PhysxPxCollectionPod*)pexternalrefsPod, exportNames ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PxSerializationSerializeCollectionToBinary( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, PhysxPxSerializationRegistryPod* srPod, ref PhysxPxCollectionPod externalrefsPod, bool exportNames) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToBinaryNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, srPod, (PhysxPxCollectionPod*)pexternalrefsPod, exportNames ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToBinary( PhysxPxOutputStreamPod* outputstreamPod, PhysxPxCollectionPod* collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalrefsPod, bool exportNames) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToBinaryNative(outputstreamPod, collectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalrefsPod, exportNames ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + public static bool PxSerializationSerializeCollectionToBinary( PhysxPxOutputStreamPod* outputstreamPod, ref PhysxPxCollectionPod collectionPod, ref PhysxPxSerializationRegistryPod srPod, ref PhysxPxCollectionPod externalrefsPod, bool exportNames) + { + fixed (PhysxPxCollectionPod* pcollectionPod = &collectionPod) + { + fixed (PhysxPxSerializationRegistryPod* psrPod = &srPod) + { + fixed (PhysxPxCollectionPod* pexternalrefsPod = &externalrefsPod) + { + byte ret = PxSerializationSerializeCollectionToBinaryNative(outputstreamPod, (PhysxPxCollectionPod*)pcollectionPod, (PhysxPxSerializationRegistryPod*)psrPod, (PhysxPxCollectionPod*)pexternalrefsPod, exportNames ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSerialization_createSerializationRegistry")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSerializationRegistryPod* PxSerializationCreateSerializationRegistryNative(PhysxPxPhysicsPod* physicsPod); + + public static PhysxPxSerializationRegistryPod* PxSerializationCreateSerializationRegistry( PhysxPxPhysicsPod* physicsPod) + { + PhysxPxSerializationRegistryPod* ret = PxSerializationCreateSerializationRegistryNative(physicsPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultCpuDispatcher_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDefaultCpuDispatcherReleaseMutNative(PhysxPxDefaultCpuDispatcherPod* selfPod); + + public static void PxDefaultCpuDispatcherReleaseMut( PhysxPxDefaultCpuDispatcherPod* selfPod) + { + PxDefaultCpuDispatcherReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultCpuDispatcher_setRunProfiled_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxDefaultCpuDispatcherSetRunProfiledMutNative(PhysxPxDefaultCpuDispatcherPod* selfPod, byte runProfiled); + + public static void PxDefaultCpuDispatcherSetRunProfiledMut( PhysxPxDefaultCpuDispatcherPod* selfPod, bool runProfiled) + { + PxDefaultCpuDispatcherSetRunProfiledMutNative(selfPod, runProfiled ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxDefaultCpuDispatcher_getRunProfiled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxDefaultCpuDispatcherGetRunProfiledNative(PhysxPxDefaultCpuDispatcherPod* selfPod); + + public static bool PxDefaultCpuDispatcherGetRunProfiled( PhysxPxDefaultCpuDispatcherPod* selfPod) + { + byte ret = PxDefaultCpuDispatcherGetRunProfiledNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxDefaultCpuDispatcherCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxDefaultCpuDispatcherPod* PhysPxDefaultCpuDispatcherCreateNative(uint numThreads, uint* affinityMasks, int modePod, uint yieldProcessorCount); + + public static PhysxPxDefaultCpuDispatcherPod* PhysPxDefaultCpuDispatcherCreate( uint numThreads, uint* affinityMasks, int modePod, uint yieldProcessorCount) + { + PhysxPxDefaultCpuDispatcherPod* ret = PhysPxDefaultCpuDispatcherCreateNative(numThreads, affinityMasks, modePod, yieldProcessorCount); + return ret; + } + + public static PhysxPxDefaultCpuDispatcherPod* PhysPxDefaultCpuDispatcherCreate( uint numThreads, ref uint affinityMasks, int modePod, uint yieldProcessorCount) + { + fixed (uint* paffinityMasks = &affinityMasks) + { + PhysxPxDefaultCpuDispatcherPod* ret = PhysPxDefaultCpuDispatcherCreateNative(numThreads, (uint*)paffinityMasks, modePod, yieldProcessorCount); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxBuildSmoothNormals")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxBuildSmoothNormalsNative(uint nbTris, uint nbVerts, PhysxPxVec3Pod* vertsPod, uint* dFaces, ushort* wFaces, PhysxPxVec3Pod* normalsPod, byte flip); + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, PhysxPxVec3Pod* vertsPod, uint* dFaces, ushort* wFaces, PhysxPxVec3Pod* normalsPod, bool flip) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, vertsPod, dFaces, wFaces, normalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, ref PhysxPxVec3Pod vertsPod, uint* dFaces, ushort* wFaces, PhysxPxVec3Pod* normalsPod, bool flip) + { + fixed (PhysxPxVec3Pod* pvertsPod = &vertsPod) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, (PhysxPxVec3Pod*)pvertsPod, dFaces, wFaces, normalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, PhysxPxVec3Pod* vertsPod, ref uint dFaces, ushort* wFaces, PhysxPxVec3Pod* normalsPod, bool flip) + { + fixed (uint* pdFaces = &dFaces) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, vertsPod, (uint*)pdFaces, wFaces, normalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, ref PhysxPxVec3Pod vertsPod, ref uint dFaces, ushort* wFaces, PhysxPxVec3Pod* normalsPod, bool flip) + { + fixed (PhysxPxVec3Pod* pvertsPod = &vertsPod) + { + fixed (uint* pdFaces = &dFaces) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, (PhysxPxVec3Pod*)pvertsPod, (uint*)pdFaces, wFaces, normalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, PhysxPxVec3Pod* vertsPod, uint* dFaces, ref ushort wFaces, PhysxPxVec3Pod* normalsPod, bool flip) + { + fixed (ushort* pwFaces = &wFaces) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, vertsPod, dFaces, (ushort*)pwFaces, normalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, ref PhysxPxVec3Pod vertsPod, uint* dFaces, ref ushort wFaces, PhysxPxVec3Pod* normalsPod, bool flip) + { + fixed (PhysxPxVec3Pod* pvertsPod = &vertsPod) + { + fixed (ushort* pwFaces = &wFaces) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, (PhysxPxVec3Pod*)pvertsPod, dFaces, (ushort*)pwFaces, normalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, PhysxPxVec3Pod* vertsPod, ref uint dFaces, ref ushort wFaces, PhysxPxVec3Pod* normalsPod, bool flip) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (ushort* pwFaces = &wFaces) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, vertsPod, (uint*)pdFaces, (ushort*)pwFaces, normalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, ref PhysxPxVec3Pod vertsPod, ref uint dFaces, ref ushort wFaces, PhysxPxVec3Pod* normalsPod, bool flip) + { + fixed (PhysxPxVec3Pod* pvertsPod = &vertsPod) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (ushort* pwFaces = &wFaces) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, (PhysxPxVec3Pod*)pvertsPod, (uint*)pdFaces, (ushort*)pwFaces, normalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, PhysxPxVec3Pod* vertsPod, uint* dFaces, ushort* wFaces, ref PhysxPxVec3Pod normalsPod, bool flip) + { + fixed (PhysxPxVec3Pod* pnormalsPod = &normalsPod) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, vertsPod, dFaces, wFaces, (PhysxPxVec3Pod*)pnormalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, ref PhysxPxVec3Pod vertsPod, uint* dFaces, ushort* wFaces, ref PhysxPxVec3Pod normalsPod, bool flip) + { + fixed (PhysxPxVec3Pod* pvertsPod = &vertsPod) + { + fixed (PhysxPxVec3Pod* pnormalsPod = &normalsPod) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, (PhysxPxVec3Pod*)pvertsPod, dFaces, wFaces, (PhysxPxVec3Pod*)pnormalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, PhysxPxVec3Pod* vertsPod, ref uint dFaces, ushort* wFaces, ref PhysxPxVec3Pod normalsPod, bool flip) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (PhysxPxVec3Pod* pnormalsPod = &normalsPod) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, vertsPod, (uint*)pdFaces, wFaces, (PhysxPxVec3Pod*)pnormalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, ref PhysxPxVec3Pod vertsPod, ref uint dFaces, ushort* wFaces, ref PhysxPxVec3Pod normalsPod, bool flip) + { + fixed (PhysxPxVec3Pod* pvertsPod = &vertsPod) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (PhysxPxVec3Pod* pnormalsPod = &normalsPod) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, (PhysxPxVec3Pod*)pvertsPod, (uint*)pdFaces, wFaces, (PhysxPxVec3Pod*)pnormalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, PhysxPxVec3Pod* vertsPod, uint* dFaces, ref ushort wFaces, ref PhysxPxVec3Pod normalsPod, bool flip) + { + fixed (ushort* pwFaces = &wFaces) + { + fixed (PhysxPxVec3Pod* pnormalsPod = &normalsPod) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, vertsPod, dFaces, (ushort*)pwFaces, (PhysxPxVec3Pod*)pnormalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, ref PhysxPxVec3Pod vertsPod, uint* dFaces, ref ushort wFaces, ref PhysxPxVec3Pod normalsPod, bool flip) + { + fixed (PhysxPxVec3Pod* pvertsPod = &vertsPod) + { + fixed (ushort* pwFaces = &wFaces) + { + fixed (PhysxPxVec3Pod* pnormalsPod = &normalsPod) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, (PhysxPxVec3Pod*)pvertsPod, dFaces, (ushort*)pwFaces, (PhysxPxVec3Pod*)pnormalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, PhysxPxVec3Pod* vertsPod, ref uint dFaces, ref ushort wFaces, ref PhysxPxVec3Pod normalsPod, bool flip) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (ushort* pwFaces = &wFaces) + { + fixed (PhysxPxVec3Pod* pnormalsPod = &normalsPod) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, vertsPod, (uint*)pdFaces, (ushort*)pwFaces, (PhysxPxVec3Pod*)pnormalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + + public static bool PhysPxBuildSmoothNormals( uint nbTris, uint nbVerts, ref PhysxPxVec3Pod vertsPod, ref uint dFaces, ref ushort wFaces, ref PhysxPxVec3Pod normalsPod, bool flip) + { + fixed (PhysxPxVec3Pod* pvertsPod = &vertsPod) + { + fixed (uint* pdFaces = &dFaces) + { + fixed (ushort* pwFaces = &wFaces) + { + fixed (PhysxPxVec3Pod* pnormalsPod = &normalsPod) + { + byte ret = PhysPxBuildSmoothNormalsNative(nbTris, nbVerts, (PhysxPxVec3Pod*)pvertsPod, (uint*)pdFaces, (ushort*)pwFaces, (PhysxPxVec3Pod*)pnormalsPod, flip ? (byte)1 : (byte)0); + return ret != 0; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateDynamic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidDynamicPod* PhysPxCreateDynamicNative(PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, float density, PhysxPxTransformPod* shapeoffsetPod); + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, transformPod, geometryPod, materialPod, density, shapeoffsetPod); + return ret; + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, materialPod, density, shapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, density, shapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, density, shapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, transformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, shapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, shapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, shapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, shapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, transformPod, geometryPod, materialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, materialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, transformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateDynamic_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidDynamicPod* PhysPxCreateDynamic1Native(PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxShapePod* shapePod, float density); + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic1( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxShapePod* shapePod, float density) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamic1Native(sdkPod, transformPod, shapePod, density); + return ret; + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic1( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxShapePod* shapePod, float density) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamic1Native(sdkPod, (PhysxPxTransformPod*)ptransformPod, shapePod, density); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic1( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxShapePod shapePod, float density) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamic1Native(sdkPod, transformPod, (PhysxPxShapePod*)pshapePod, density); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateDynamic1( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxShapePod shapePod, float density) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateDynamic1Native(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxShapePod*)pshapePod, density); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateKinematic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidDynamicPod* PhysPxCreateKinematicNative(PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, float density, PhysxPxTransformPod* shapeoffsetPod); + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, transformPod, geometryPod, materialPod, density, shapeoffsetPod); + return ret; + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, materialPod, density, shapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, density, shapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, density, shapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, transformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, shapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, shapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, shapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, float density, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, shapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, transformPod, geometryPod, materialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, materialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, transformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, float density, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematicNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, density, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateKinematic_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidDynamicPod* PhysPxCreateKinematic1Native(PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxShapePod* shapePod, float density); + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic1( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxShapePod* shapePod, float density) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematic1Native(sdkPod, transformPod, shapePod, density); + return ret; + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic1( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxShapePod* shapePod, float density) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematic1Native(sdkPod, (PhysxPxTransformPod*)ptransformPod, shapePod, density); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic1( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxShapePod shapePod, float density) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematic1Native(sdkPod, transformPod, (PhysxPxShapePod*)pshapePod, density); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCreateKinematic1( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxShapePod shapePod, float density) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCreateKinematic1Native(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxShapePod*)pshapePod, density); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateStatic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidStaticPod* PhysPxCreateStaticNative(PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, PhysxPxTransformPod* shapeoffsetPod); + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, PhysxPxTransformPod* shapeoffsetPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, transformPod, geometryPod, materialPod, shapeoffsetPod); + return ret; + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, materialPod, shapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, shapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, shapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, transformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, shapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, shapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, shapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, PhysxPxTransformPod* shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, shapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, transformPod, geometryPod, materialPod, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, PhysxPxMaterialPod* materialPod, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, materialPod, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, PhysxPxMaterialPod* materialPod, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, materialPod, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, transformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxMaterialPod materialPod, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, geometryPod, (PhysxPxMaterialPod*)pmaterialPod, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, transformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxMaterialPod materialPod, ref PhysxPxTransformPod shapeoffsetPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + fixed (PhysxPxTransformPod* pshapeoffsetPod = &shapeoffsetPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStaticNative(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxMaterialPod*)pmaterialPod, (PhysxPxTransformPod*)pshapeoffsetPod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateStatic_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidStaticPod* PhysPxCreateStatic1Native(PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxShapePod* shapePod); + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic1( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, PhysxPxShapePod* shapePod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStatic1Native(sdkPod, transformPod, shapePod); + return ret; + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic1( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, PhysxPxShapePod* shapePod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStatic1Native(sdkPod, (PhysxPxTransformPod*)ptransformPod, shapePod); + return ret; + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic1( PhysxPxPhysicsPod* sdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxShapePod shapePod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStatic1Native(sdkPod, transformPod, (PhysxPxShapePod*)pshapePod); + return ret; + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreateStatic1( PhysxPxPhysicsPod* sdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxShapePod shapePod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreateStatic1Native(sdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxShapePod*)pshapePod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCloneShape")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxShapePod* PhysPxCloneShapeNative(PhysxPxPhysicsPod* physicssdkPod, PhysxPxShapePod* shapePod, byte isExclusive); + + public static PhysxPxShapePod* PhysPxCloneShape( PhysxPxPhysicsPod* physicssdkPod, PhysxPxShapePod* shapePod, bool isExclusive) + { + PhysxPxShapePod* ret = PhysPxCloneShapeNative(physicssdkPod, shapePod, isExclusive ? (byte)1 : (byte)0); + return ret; + } + + public static PhysxPxShapePod* PhysPxCloneShape( PhysxPxPhysicsPod* physicssdkPod, ref PhysxPxShapePod shapePod, bool isExclusive) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + PhysxPxShapePod* ret = PhysPxCloneShapeNative(physicssdkPod, (PhysxPxShapePod*)pshapePod, isExclusive ? (byte)1 : (byte)0); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCloneStatic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidStaticPod* PhysPxCloneStaticNative(PhysxPxPhysicsPod* physicssdkPod, PhysxPxTransformPod* transformPod, PhysxPxRigidActorPod* actorPod); + + public static PhysxPxRigidStaticPod* PhysPxCloneStatic( PhysxPxPhysicsPod* physicssdkPod, PhysxPxTransformPod* transformPod, PhysxPxRigidActorPod* actorPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCloneStaticNative(physicssdkPod, transformPod, actorPod); + return ret; + } + + public static PhysxPxRigidStaticPod* PhysPxCloneStatic( PhysxPxPhysicsPod* physicssdkPod, ref PhysxPxTransformPod transformPod, PhysxPxRigidActorPod* actorPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCloneStaticNative(physicssdkPod, (PhysxPxTransformPod*)ptransformPod, actorPod); + return ret; + } + } + + public static PhysxPxRigidStaticPod* PhysPxCloneStatic( PhysxPxPhysicsPod* physicssdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCloneStaticNative(physicssdkPod, transformPod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + + public static PhysxPxRigidStaticPod* PhysPxCloneStatic( PhysxPxPhysicsPod* physicssdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxRigidActorPod actorPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCloneStaticNative(physicssdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxRigidActorPod*)pactorPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCloneDynamic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidDynamicPod* PhysPxCloneDynamicNative(PhysxPxPhysicsPod* physicssdkPod, PhysxPxTransformPod* transformPod, PhysxPxRigidDynamicPod* bodyPod); + + public static PhysxPxRigidDynamicPod* PhysPxCloneDynamic( PhysxPxPhysicsPod* physicssdkPod, PhysxPxTransformPod* transformPod, PhysxPxRigidDynamicPod* bodyPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCloneDynamicNative(physicssdkPod, transformPod, bodyPod); + return ret; + } + + public static PhysxPxRigidDynamicPod* PhysPxCloneDynamic( PhysxPxPhysicsPod* physicssdkPod, ref PhysxPxTransformPod transformPod, PhysxPxRigidDynamicPod* bodyPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCloneDynamicNative(physicssdkPod, (PhysxPxTransformPod*)ptransformPod, bodyPod); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCloneDynamic( PhysxPxPhysicsPod* physicssdkPod, PhysxPxTransformPod* transformPod, ref PhysxPxRigidDynamicPod bodyPod) + { + fixed (PhysxPxRigidDynamicPod* pbodyPod = &bodyPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCloneDynamicNative(physicssdkPod, transformPod, (PhysxPxRigidDynamicPod*)pbodyPod); + return ret; + } + } + + public static PhysxPxRigidDynamicPod* PhysPxCloneDynamic( PhysxPxPhysicsPod* physicssdkPod, ref PhysxPxTransformPod transformPod, ref PhysxPxRigidDynamicPod bodyPod) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxRigidDynamicPod* pbodyPod = &bodyPod) + { + PhysxPxRigidDynamicPod* ret = PhysPxCloneDynamicNative(physicssdkPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxRigidDynamicPod*)pbodyPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreatePlane")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRigidStaticPod* PhysPxCreatePlaneNative(PhysxPxPhysicsPod* sdkPod, PhysxPxPlanePod* planePod, PhysxPxMaterialPod* materialPod); + + public static PhysxPxRigidStaticPod* PhysPxCreatePlane( PhysxPxPhysicsPod* sdkPod, PhysxPxPlanePod* planePod, PhysxPxMaterialPod* materialPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreatePlaneNative(sdkPod, planePod, materialPod); + return ret; + } + + public static PhysxPxRigidStaticPod* PhysPxCreatePlane( PhysxPxPhysicsPod* sdkPod, ref PhysxPxPlanePod planePod, PhysxPxMaterialPod* materialPod) + { + fixed (PhysxPxPlanePod* pplanePod = &planePod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreatePlaneNative(sdkPod, (PhysxPxPlanePod*)pplanePod, materialPod); + return ret; + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreatePlane( PhysxPxPhysicsPod* sdkPod, PhysxPxPlanePod* planePod, ref PhysxPxMaterialPod materialPod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreatePlaneNative(sdkPod, planePod, (PhysxPxMaterialPod*)pmaterialPod); + return ret; + } + } + + public static PhysxPxRigidStaticPod* PhysPxCreatePlane( PhysxPxPhysicsPod* sdkPod, ref PhysxPxPlanePod planePod, ref PhysxPxMaterialPod materialPod) + { + fixed (PhysxPxPlanePod* pplanePod = &planePod) + { + fixed (PhysxPxMaterialPod* pmaterialPod = &materialPod) + { + PhysxPxRigidStaticPod* ret = PhysPxCreatePlaneNative(sdkPod, (PhysxPxPlanePod*)pplanePod, (PhysxPxMaterialPod*)pmaterialPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxScaleRigidActor")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxScaleRigidActorNative(PhysxPxRigidActorPod* actorPod, float scale, byte scaleMassProps); + + public static void PhysPxScaleRigidActor( PhysxPxRigidActorPod* actorPod, float scale, bool scaleMassProps) + { + PhysPxScaleRigidActorNative(actorPod, scale, scaleMassProps ? (byte)1 : (byte)0); + } + + [LibraryImport(LibName, EntryPoint = "PxStringTableExt_createStringTable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxStringTablePod* PxStringTableExtCreateStringTableNative(PhysxPxAllocatorCallbackPod* inallocatorPod); + + public static PhysxPxStringTablePod* PxStringTableExtCreateStringTable( PhysxPxAllocatorCallbackPod* inallocatorPod) + { + PhysxPxStringTablePod* ret = PxStringTableExtCreateStringTableNative(inallocatorPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxBroadPhaseExt_createRegionsFromWorldBounds")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxBroadPhaseExtCreateRegionsFromWorldBoundsNative(PhysxPxBounds3Pod* regionsPod, PhysxPxBounds3Pod* globalboundsPod, uint nbSubdiv, uint upAxis); + + public static uint PxBroadPhaseExtCreateRegionsFromWorldBounds( PhysxPxBounds3Pod* regionsPod, PhysxPxBounds3Pod* globalboundsPod, uint nbSubdiv, uint upAxis) + { + uint ret = PxBroadPhaseExtCreateRegionsFromWorldBoundsNative(regionsPod, globalboundsPod, nbSubdiv, upAxis); + return ret; + } + + public static uint PxBroadPhaseExtCreateRegionsFromWorldBounds( PhysxPxBounds3Pod* regionsPod, ref PhysxPxBounds3Pod globalboundsPod, uint nbSubdiv, uint upAxis) + { + fixed (PhysxPxBounds3Pod* pglobalboundsPod = &globalboundsPod) + { + uint ret = PxBroadPhaseExtCreateRegionsFromWorldBoundsNative(regionsPod, (PhysxPxBounds3Pod*)pglobalboundsPod, nbSubdiv, upAxis); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQueryExt_raycastAny")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneQueryExtRaycastAnyNative(PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod); + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, hitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastAny( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastAnyNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQueryExt_raycastSingle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneQueryExtRaycastSingleNative(PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod); + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.018.cs b/Hexa.NET.PhysX/Generated/Functions.018.cs new file mode 100644 index 0000000..7c98cb8 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.018.cs @@ -0,0 +1,5037 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtRaycastSingle( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtRaycastSingleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret != 0; + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQueryExt_raycastMultiple")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneQueryExtRaycastMultipleNative(PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod); + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxRaycastHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtRaycastMultiple( PhysxPxScenePod* scenePod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxRaycastHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxRaycastHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtRaycastMultipleNative(scenePod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxRaycastHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQueryExt_sweepAny")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneQueryExtSweepAnyNative(PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation); + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, PhysxPxQueryHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort queryflagsPod, ref PhysxPxQueryHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, queryflagsPod, (PhysxPxQueryHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQueryExt_sweepSingle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneQueryExtSweepSingleNative(PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation); + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.019.cs b/Hexa.NET.PhysX/Generated/Functions.019.cs new file mode 100644 index 0000000..58eace7 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.019.cs @@ -0,0 +1,5041 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + + public static bool PxSceneQueryExtSweepSingle( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + byte ret = PxSceneQueryExtSweepSingleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret != 0; + } + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQueryExt_sweepMultiple")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneQueryExtSweepMultipleNative(PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation); + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, cachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.020.cs b/Hexa.NET.PhysX/Generated/Functions.020.cs new file mode 100644 index 0000000..c8ccf04 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.020.cs @@ -0,0 +1,5038 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, byte* blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, blockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, PhysxPxSweepHitPod* hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, hitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + + public static int PxSceneQueryExtSweepMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort outputflagsPod, ref PhysxPxSweepHitPod hitbufferPod, uint hitBufferSize, ref byte blockinghitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxSweepHitPod* phitbufferPod = &hitbufferPod) + { + fixed (byte* pblockinghitPod = &blockinghitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + int ret = PxSceneQueryExtSweepMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, outputflagsPod, (PhysxPxSweepHitPod*)phitbufferPod, hitBufferSize, (byte*)pblockinghitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQueryExt_overlapMultiple")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxSceneQueryExtOverlapMultipleNative(PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod); + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, posePod, hitbufferPod, hitBufferSize, filterdataPod, filtercallPod); + return ret; + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitbufferPod, hitBufferSize, filterdataPod, filtercallPod); + return ret; + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, hitbufferPod, hitBufferSize, filterdataPod, filtercallPod); + return ret; + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitbufferPod, hitBufferSize, filterdataPod, filtercallPod); + return ret; + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, posePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, filterdataPod, filtercallPod); + return ret; + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, filterdataPod, filtercallPod); + return ret; + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, filterdataPod, filtercallPod); + return ret; + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, filterdataPod, filtercallPod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, posePod, hitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret; + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret; + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, hitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret; + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, posePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret; + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, posePod, hitbufferPod, hitBufferSize, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitbufferPod, hitBufferSize, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, hitbufferPod, hitBufferSize, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitbufferPod, hitBufferSize, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, posePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, posePod, hitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, hitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, posePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + } + } + + public static int PxSceneQueryExtOverlapMultiple( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitbufferPod, uint hitBufferSize, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitbufferPod = &hitbufferPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + int ret = PxSceneQueryExtOverlapMultipleNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitbufferPod, hitBufferSize, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxSceneQueryExt_overlapAny")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxSceneQueryExtOverlapAnyNative(PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod); + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, posePod, hitPod, filterdataPod, filtercallPod); + return ret != 0; + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitPod, filterdataPod, filtercallPod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, hitPod, filterdataPod, filtercallPod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitPod, filterdataPod, filtercallPod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, posePod, (PhysxPxOverlapHitPod*)phitPod, filterdataPod, filtercallPod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapHitPod*)phitPod, filterdataPod, filtercallPod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitPod, filterdataPod, filtercallPod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitPod, filterdataPod, filtercallPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, posePod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, posePod, (PhysxPxOverlapHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, posePod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, posePod, (PhysxPxOverlapHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, posePod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxOverlapHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxOverlapHitPod* hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, hitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, posePod, (PhysxPxOverlapHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxOverlapHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxOverlapHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + } + + public static bool PxSceneQueryExtOverlapAny( PhysxPxScenePod* scenePod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxOverlapHitPod hitPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxOverlapHitPod* phitPod = &hitPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxSceneQueryExtOverlapAnyNative(scenePod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxOverlapHitPod*)phitPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBatchQueryExt_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBatchQueryExtReleaseMutNative(PhysxPxBatchQueryExtPod* selfPod); + + public static void PxBatchQueryExtReleaseMut( PhysxPxBatchQueryExtPod* selfPod) + { + PxBatchQueryExtReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxBatchQueryExt_raycast_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMutNative(PhysxPxBatchQueryExtPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod); + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, originPod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod); + return ret; + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod); + return ret; + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod); + return ret; + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod); + return ret; + } + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, originPod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod); + return ret; + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod); + return ret; + } + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod); + return ret; + } + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod); + return ret; + } + } + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, originPod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxVec3Pod* originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, originPod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxVec3Pod originPod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, (PhysxPxVec3Pod*)poriginPod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxVec3Pod* originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, originPod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static PhysxPxRaycastBufferPod* PxBatchQueryExtRaycastMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxVec3Pod originPod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxVec3Pod* poriginPod = &originPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxRaycastBufferPod* ret = PxBatchQueryExtRaycastMutNative(selfPod, (PhysxPxVec3Pod*)poriginPod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBatchQueryExt_sweep_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSweepBufferPod* PxBatchQueryExtSweepMutNative(PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation); + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, posePod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod, inflation); + return ret; + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod, inflation); + return ret; + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod, inflation); + return ret; + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod, inflation); + return ret; + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod, inflation); + return ret; + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod, inflation); + return ret; + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod, inflation); + return ret; + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, cachePod, inflation); + return ret; + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, posePod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod, inflation); + return ret; + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod, inflation); + return ret; + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod, inflation); + return ret; + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod, inflation); + return ret; + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod, inflation); + return ret; + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod, inflation); + return ret; + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod, inflation); + return ret; + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod, inflation); + return ret; + } + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, posePod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, filterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, posePod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, PhysxPxVec3Pod* unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, unitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + + public static PhysxPxSweepBufferPod* PxBatchQueryExtSweepMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ref PhysxPxVec3Pod unitdirPod, float distance, ushort maxNbTouches, ushort hitflagsPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod, float inflation) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxSweepBufferPod* ret = PxBatchQueryExtSweepMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, (PhysxPxVec3Pod*)punitdirPod, distance, maxNbTouches, hitflagsPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod, inflation); + return ret; + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBatchQueryExt_overlap_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMutNative(PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ushort maxNbTouches, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod); + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ushort maxNbTouches, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, geometryPod, posePod, maxNbTouches, filterdataPod, cachePod); + return ret; + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ushort maxNbTouches, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, maxNbTouches, filterdataPod, cachePod); + return ret; + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ushort maxNbTouches, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, maxNbTouches, filterdataPod, cachePod); + return ret; + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ushort maxNbTouches, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, maxNbTouches, filterdataPod, cachePod); + return ret; + } + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ushort maxNbTouches, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, geometryPod, posePod, maxNbTouches, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod); + return ret; + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ushort maxNbTouches, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, maxNbTouches, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod); + return ret; + } + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ushort maxNbTouches, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, maxNbTouches, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod); + return ret; + } + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ushort maxNbTouches, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryCachePod* cachePod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, maxNbTouches, (PhysxPxQueryFilterDataPod*)pfilterdataPod, cachePod); + return ret; + } + } + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ushort maxNbTouches, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, geometryPod, posePod, maxNbTouches, filterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ushort maxNbTouches, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, maxNbTouches, filterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ushort maxNbTouches, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, maxNbTouches, filterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ushort maxNbTouches, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, maxNbTouches, filterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* posePod, ushort maxNbTouches, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, geometryPod, posePod, maxNbTouches, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, PhysxPxTransformPod* posePod, ushort maxNbTouches, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, posePod, maxNbTouches, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod posePod, ushort maxNbTouches, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, geometryPod, (PhysxPxTransformPod*)pposePod, maxNbTouches, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + + public static PhysxPxOverlapBufferPod* PxBatchQueryExtOverlapMut( PhysxPxBatchQueryExtPod* selfPod, ref PhysxPxGeometryPod geometryPod, ref PhysxPxTransformPod posePod, ushort maxNbTouches, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryCachePod cachePod) + { + fixed (PhysxPxGeometryPod* pgeometryPod = &geometryPod) + { + fixed (PhysxPxTransformPod* pposePod = &posePod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryCachePod* pcachePod = &cachePod) + { + PhysxPxOverlapBufferPod* ret = PxBatchQueryExtOverlapMutNative(selfPod, (PhysxPxGeometryPod*)pgeometryPod, (PhysxPxTransformPod*)pposePod, maxNbTouches, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryCachePod*)pcachePod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxBatchQueryExt_execute_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxBatchQueryExtExecuteMutNative(PhysxPxBatchQueryExtPod* selfPod); + + public static void PxBatchQueryExtExecuteMut( PhysxPxBatchQueryExtPod* selfPod) + { + PxBatchQueryExtExecuteMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateBatchQueryExt")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExtNative(PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, uint maxNbRaycasts, uint maxNbRaycastTouches, uint maxNbSweeps, uint maxNbSweepTouches, uint maxNbOverlaps, uint maxNbOverlapTouches); + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, uint maxNbRaycasts, uint maxNbRaycastTouches, uint maxNbSweeps, uint maxNbSweepTouches, uint maxNbOverlaps, uint maxNbOverlapTouches) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExtNative(scenePod, queryfiltercallbackPod, maxNbRaycasts, maxNbRaycastTouches, maxNbSweeps, maxNbSweepTouches, maxNbOverlaps, maxNbOverlapTouches); + return ret; + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, uint maxNbRaycasts, uint maxNbRaycastTouches, uint maxNbSweeps, uint maxNbSweepTouches, uint maxNbOverlaps, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExtNative(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, maxNbRaycasts, maxNbRaycastTouches, maxNbSweeps, maxNbSweepTouches, maxNbOverlaps, maxNbOverlapTouches); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateBatchQueryExt_1")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1Native(PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches); + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, PhysxPxOverlapHitPod* overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, overlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, PhysxPxOverlapBufferPod* overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, overlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, PhysxPxSweepHitPod* sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, sweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, PhysxPxSweepBufferPod* sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, sweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + } + } +} diff --git a/Hexa.NET.PhysX/Generated/Functions.021.cs b/Hexa.NET.PhysX/Generated/Functions.021.cs new file mode 100644 index 0000000..757fb1a --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Functions.021.cs @@ -0,0 +1,1629 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + public unsafe partial class PhysX + { + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, PhysxPxRaycastHitPod* raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, raycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, PhysxPxRaycastBufferPod* raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, raycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, PhysxPxQueryFilterCallbackPod* queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, queryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + } + + public static PhysxPxBatchQueryExtPod* PhysPxCreateBatchQueryExt1( PhysxPxScenePod* scenePod, ref PhysxPxQueryFilterCallbackPod queryfiltercallbackPod, ref PhysxPxRaycastBufferPod raycastbuffersPod, uint maxNbRaycasts, ref PhysxPxRaycastHitPod raycasttouchesPod, uint maxNbRaycastTouches, ref PhysxPxSweepBufferPod sweepbuffersPod, uint maxNbSweeps, ref PhysxPxSweepHitPod sweeptouchesPod, uint maxNbSweepTouches, ref PhysxPxOverlapBufferPod overlapbuffersPod, uint maxNbOverlaps, ref PhysxPxOverlapHitPod overlaptouchesPod, uint maxNbOverlapTouches) + { + fixed (PhysxPxQueryFilterCallbackPod* pqueryfiltercallbackPod = &queryfiltercallbackPod) + { + fixed (PhysxPxRaycastBufferPod* praycastbuffersPod = &raycastbuffersPod) + { + fixed (PhysxPxRaycastHitPod* praycasttouchesPod = &raycasttouchesPod) + { + fixed (PhysxPxSweepBufferPod* psweepbuffersPod = &sweepbuffersPod) + { + fixed (PhysxPxSweepHitPod* psweeptouchesPod = &sweeptouchesPod) + { + fixed (PhysxPxOverlapBufferPod* poverlapbuffersPod = &overlapbuffersPod) + { + fixed (PhysxPxOverlapHitPod* poverlaptouchesPod = &overlaptouchesPod) + { + PhysxPxBatchQueryExtPod* ret = PhysPxCreateBatchQueryExt1Native(scenePod, (PhysxPxQueryFilterCallbackPod*)pqueryfiltercallbackPod, (PhysxPxRaycastBufferPod*)praycastbuffersPod, maxNbRaycasts, (PhysxPxRaycastHitPod*)praycasttouchesPod, maxNbRaycastTouches, (PhysxPxSweepBufferPod*)psweepbuffersPod, maxNbSweeps, (PhysxPxSweepHitPod*)psweeptouchesPod, maxNbSweepTouches, (PhysxPxOverlapBufferPod*)poverlapbuffersPod, maxNbOverlaps, (PhysxPxOverlapHitPod*)poverlaptouchesPod, maxNbOverlapTouches); + return ret; + } + } + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateExternalSceneQuerySystem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxSceneQuerySystemPod* PhysPxCreateExternalSceneQuerySystemNative(PhysxPxSceneQueryDescPod* descPod, ulong contextID); + + public static PhysxPxSceneQuerySystemPod* PhysPxCreateExternalSceneQuerySystem( PhysxPxSceneQueryDescPod* descPod, ulong contextID) + { + PhysxPxSceneQuerySystemPod* ret = PhysPxCreateExternalSceneQuerySystemNative(descPod, contextID); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCustomSceneQuerySystem_addPruner_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxCustomSceneQuerySystemAddPrunerMutNative(PhysxPxCustomSceneQuerySystemPod* selfPod, int primarytypePod, int secondarytypePod, uint preallocated); + + public static uint PxCustomSceneQuerySystemAddPrunerMut( PhysxPxCustomSceneQuerySystemPod* selfPod, int primarytypePod, int secondarytypePod, uint preallocated) + { + uint ret = PxCustomSceneQuerySystemAddPrunerMutNative(selfPod, primarytypePod, secondarytypePod, preallocated); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCustomSceneQuerySystem_startCustomBuildstep_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxCustomSceneQuerySystemStartCustomBuildstepMutNative(PhysxPxCustomSceneQuerySystemPod* selfPod); + + public static uint PxCustomSceneQuerySystemStartCustomBuildstepMut( PhysxPxCustomSceneQuerySystemPod* selfPod) + { + uint ret = PxCustomSceneQuerySystemStartCustomBuildstepMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxCustomSceneQuerySystem_customBuildstep_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCustomSceneQuerySystemCustomBuildstepMutNative(PhysxPxCustomSceneQuerySystemPod* selfPod, uint index); + + public static void PxCustomSceneQuerySystemCustomBuildstepMut( PhysxPxCustomSceneQuerySystemPod* selfPod, uint index) + { + PxCustomSceneQuerySystemCustomBuildstepMutNative(selfPod, index); + } + + [LibraryImport(LibName, EntryPoint = "PxCustomSceneQuerySystem_finishCustomBuildstep_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCustomSceneQuerySystemFinishCustomBuildstepMutNative(PhysxPxCustomSceneQuerySystemPod* selfPod); + + public static void PxCustomSceneQuerySystemFinishCustomBuildstepMut( PhysxPxCustomSceneQuerySystemPod* selfPod) + { + PxCustomSceneQuerySystemFinishCustomBuildstepMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxCustomSceneQuerySystemAdapter_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxCustomSceneQuerySystemAdapterDeleteNative(PhysxPxCustomSceneQuerySystemAdapterPod* selfPod); + + public static void PxCustomSceneQuerySystemAdapterDelete( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod) + { + PxCustomSceneQuerySystemAdapterDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxCustomSceneQuerySystemAdapter_getPrunerIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PxCustomSceneQuerySystemAdapterGetPrunerIndexNative(PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod); + + public static uint PxCustomSceneQuerySystemAdapterGetPrunerIndex( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, PhysxPxRigidActorPod* actorPod, PhysxPxShapePod* shapePod) + { + uint ret = PxCustomSceneQuerySystemAdapterGetPrunerIndexNative(selfPod, actorPod, shapePod); + return ret; + } + + public static uint PxCustomSceneQuerySystemAdapterGetPrunerIndex( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, ref PhysxPxRigidActorPod actorPod, PhysxPxShapePod* shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + uint ret = PxCustomSceneQuerySystemAdapterGetPrunerIndexNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, shapePod); + return ret; + } + } + + public static uint PxCustomSceneQuerySystemAdapterGetPrunerIndex( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, PhysxPxRigidActorPod* actorPod, ref PhysxPxShapePod shapePod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + uint ret = PxCustomSceneQuerySystemAdapterGetPrunerIndexNative(selfPod, actorPod, (PhysxPxShapePod*)pshapePod); + return ret; + } + } + + public static uint PxCustomSceneQuerySystemAdapterGetPrunerIndex( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, ref PhysxPxRigidActorPod actorPod, ref PhysxPxShapePod shapePod) + { + fixed (PhysxPxRigidActorPod* pactorPod = &actorPod) + { + fixed (PhysxPxShapePod* pshapePod = &shapePod) + { + uint ret = PxCustomSceneQuerySystemAdapterGetPrunerIndexNative(selfPod, (PhysxPxRigidActorPod*)pactorPod, (PhysxPxShapePod*)pshapePod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxCustomSceneQuerySystemAdapter_processPruner")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxCustomSceneQuerySystemAdapterProcessPrunerNative(PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, uint prunerIndex, PhysxPxQueryThreadContextPod* contextPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod); + + public static bool PxCustomSceneQuerySystemAdapterProcessPruner( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, uint prunerIndex, PhysxPxQueryThreadContextPod* contextPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + byte ret = PxCustomSceneQuerySystemAdapterProcessPrunerNative(selfPod, prunerIndex, contextPod, filterdataPod, filtercallPod); + return ret != 0; + } + + public static bool PxCustomSceneQuerySystemAdapterProcessPruner( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, uint prunerIndex, ref PhysxPxQueryThreadContextPod contextPod, PhysxPxQueryFilterDataPod* filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxQueryThreadContextPod* pcontextPod = &contextPod) + { + byte ret = PxCustomSceneQuerySystemAdapterProcessPrunerNative(selfPod, prunerIndex, (PhysxPxQueryThreadContextPod*)pcontextPod, filterdataPod, filtercallPod); + return ret != 0; + } + } + + public static bool PxCustomSceneQuerySystemAdapterProcessPruner( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, uint prunerIndex, PhysxPxQueryThreadContextPod* contextPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxCustomSceneQuerySystemAdapterProcessPrunerNative(selfPod, prunerIndex, contextPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret != 0; + } + } + + public static bool PxCustomSceneQuerySystemAdapterProcessPruner( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, uint prunerIndex, ref PhysxPxQueryThreadContextPod contextPod, ref PhysxPxQueryFilterDataPod filterdataPod, PhysxPxQueryFilterCallbackPod* filtercallPod) + { + fixed (PhysxPxQueryThreadContextPod* pcontextPod = &contextPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + byte ret = PxCustomSceneQuerySystemAdapterProcessPrunerNative(selfPod, prunerIndex, (PhysxPxQueryThreadContextPod*)pcontextPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, filtercallPod); + return ret != 0; + } + } + } + + public static bool PxCustomSceneQuerySystemAdapterProcessPruner( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, uint prunerIndex, PhysxPxQueryThreadContextPod* contextPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxCustomSceneQuerySystemAdapterProcessPrunerNative(selfPod, prunerIndex, contextPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + + public static bool PxCustomSceneQuerySystemAdapterProcessPruner( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, uint prunerIndex, ref PhysxPxQueryThreadContextPod contextPod, PhysxPxQueryFilterDataPod* filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxQueryThreadContextPod* pcontextPod = &contextPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxCustomSceneQuerySystemAdapterProcessPrunerNative(selfPod, prunerIndex, (PhysxPxQueryThreadContextPod*)pcontextPod, filterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + + public static bool PxCustomSceneQuerySystemAdapterProcessPruner( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, uint prunerIndex, PhysxPxQueryThreadContextPod* contextPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxCustomSceneQuerySystemAdapterProcessPrunerNative(selfPod, prunerIndex, contextPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + + public static bool PxCustomSceneQuerySystemAdapterProcessPruner( PhysxPxCustomSceneQuerySystemAdapterPod* selfPod, uint prunerIndex, ref PhysxPxQueryThreadContextPod contextPod, ref PhysxPxQueryFilterDataPod filterdataPod, ref PhysxPxQueryFilterCallbackPod filtercallPod) + { + fixed (PhysxPxQueryThreadContextPod* pcontextPod = &contextPod) + { + fixed (PhysxPxQueryFilterDataPod* pfilterdataPod = &filterdataPod) + { + fixed (PhysxPxQueryFilterCallbackPod* pfiltercallPod = &filtercallPod) + { + byte ret = PxCustomSceneQuerySystemAdapterProcessPrunerNative(selfPod, prunerIndex, (PhysxPxQueryThreadContextPod*)pcontextPod, (PhysxPxQueryFilterDataPod*)pfilterdataPod, (PhysxPxQueryFilterCallbackPod*)pfiltercallPod); + return ret != 0; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateCustomSceneQuerySystem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxCustomSceneQuerySystemPod* PhysPxCreateCustomSceneQuerySystemNative(int scenequeryupdatemodePod, ulong contextID, PhysxPxCustomSceneQuerySystemAdapterPod* adapterPod, byte usesTreeOfPruners); + + public static PhysxPxCustomSceneQuerySystemPod* PhysPxCreateCustomSceneQuerySystem( int scenequeryupdatemodePod, ulong contextID, PhysxPxCustomSceneQuerySystemAdapterPod* adapterPod, bool usesTreeOfPruners) + { + PhysxPxCustomSceneQuerySystemPod* ret = PhysPxCreateCustomSceneQuerySystemNative(scenequeryupdatemodePod, contextID, adapterPod, usesTreeOfPruners ? (byte)1 : (byte)0); + return ret; + } + + public static PhysxPxCustomSceneQuerySystemPod* PhysPxCreateCustomSceneQuerySystem( int scenequeryupdatemodePod, ulong contextID, ref PhysxPxCustomSceneQuerySystemAdapterPod adapterPod, bool usesTreeOfPruners) + { + fixed (PhysxPxCustomSceneQuerySystemAdapterPod* padapterPod = &adapterPod) + { + PhysxPxCustomSceneQuerySystemPod* ret = PhysPxCreateCustomSceneQuerySystemNative(scenequeryupdatemodePod, contextID, (PhysxPxCustomSceneQuerySystemAdapterPod*)padapterPod, usesTreeOfPruners ? (byte)1 : (byte)0); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxFindFaceIndex")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint PhysPxFindFaceIndexNative(PhysxPxConvexMeshGeometryPod* convexgeomPod, PhysxPxTransformPod* geomposePod, PhysxPxVec3Pod* impactposPod, PhysxPxVec3Pod* unitdirPod); + + public static uint PhysPxFindFaceIndex( PhysxPxConvexMeshGeometryPod* convexgeomPod, PhysxPxTransformPod* geomposePod, PhysxPxVec3Pod* impactposPod, PhysxPxVec3Pod* unitdirPod) + { + uint ret = PhysPxFindFaceIndexNative(convexgeomPod, geomposePod, impactposPod, unitdirPod); + return ret; + } + + public static uint PhysPxFindFaceIndex( PhysxPxConvexMeshGeometryPod* convexgeomPod, ref PhysxPxTransformPod geomposePod, PhysxPxVec3Pod* impactposPod, PhysxPxVec3Pod* unitdirPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + uint ret = PhysPxFindFaceIndexNative(convexgeomPod, (PhysxPxTransformPod*)pgeomposePod, impactposPod, unitdirPod); + return ret; + } + } + + public static uint PhysPxFindFaceIndex( PhysxPxConvexMeshGeometryPod* convexgeomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxVec3Pod impactposPod, PhysxPxVec3Pod* unitdirPod) + { + fixed (PhysxPxVec3Pod* pimpactposPod = &impactposPod) + { + uint ret = PhysPxFindFaceIndexNative(convexgeomPod, geomposePod, (PhysxPxVec3Pod*)pimpactposPod, unitdirPod); + return ret; + } + } + + public static uint PhysPxFindFaceIndex( PhysxPxConvexMeshGeometryPod* convexgeomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxVec3Pod impactposPod, PhysxPxVec3Pod* unitdirPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxVec3Pod* pimpactposPod = &impactposPod) + { + uint ret = PhysPxFindFaceIndexNative(convexgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxVec3Pod*)pimpactposPod, unitdirPod); + return ret; + } + } + } + + public static uint PhysPxFindFaceIndex( PhysxPxConvexMeshGeometryPod* convexgeomPod, PhysxPxTransformPod* geomposePod, PhysxPxVec3Pod* impactposPod, ref PhysxPxVec3Pod unitdirPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + uint ret = PhysPxFindFaceIndexNative(convexgeomPod, geomposePod, impactposPod, (PhysxPxVec3Pod*)punitdirPod); + return ret; + } + } + + public static uint PhysPxFindFaceIndex( PhysxPxConvexMeshGeometryPod* convexgeomPod, ref PhysxPxTransformPod geomposePod, PhysxPxVec3Pod* impactposPod, ref PhysxPxVec3Pod unitdirPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + uint ret = PhysPxFindFaceIndexNative(convexgeomPod, (PhysxPxTransformPod*)pgeomposePod, impactposPod, (PhysxPxVec3Pod*)punitdirPod); + return ret; + } + } + } + + public static uint PhysPxFindFaceIndex( PhysxPxConvexMeshGeometryPod* convexgeomPod, PhysxPxTransformPod* geomposePod, ref PhysxPxVec3Pod impactposPod, ref PhysxPxVec3Pod unitdirPod) + { + fixed (PhysxPxVec3Pod* pimpactposPod = &impactposPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + uint ret = PhysPxFindFaceIndexNative(convexgeomPod, geomposePod, (PhysxPxVec3Pod*)pimpactposPod, (PhysxPxVec3Pod*)punitdirPod); + return ret; + } + } + } + + public static uint PhysPxFindFaceIndex( PhysxPxConvexMeshGeometryPod* convexgeomPod, ref PhysxPxTransformPod geomposePod, ref PhysxPxVec3Pod impactposPod, ref PhysxPxVec3Pod unitdirPod) + { + fixed (PhysxPxTransformPod* pgeomposePod = &geomposePod) + { + fixed (PhysxPxVec3Pod* pimpactposPod = &impactposPod) + { + fixed (PhysxPxVec3Pod* punitdirPod = &unitdirPod) + { + uint ret = PhysPxFindFaceIndexNative(convexgeomPod, (PhysxPxTransformPod*)pgeomposePod, (PhysxPxVec3Pod*)pimpactposPod, (PhysxPxVec3Pod*)punitdirPod); + return ret; + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPoissonSampler_setSamplingRadius_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxPoissonSamplerSetSamplingRadiusMutNative(PhysxPxPoissonSamplerPod* selfPod, float samplingRadius); + + public static bool PxPoissonSamplerSetSamplingRadiusMut( PhysxPxPoissonSamplerPod* selfPod, float samplingRadius) + { + byte ret = PxPoissonSamplerSetSamplingRadiusMutNative(selfPod, samplingRadius); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxPoissonSampler_addSamplesInSphere_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPoissonSamplerAddSamplesInSphereMutNative(PhysxPxPoissonSamplerPod* selfPod, PhysxPxVec3Pod* spherecenterPod, float sphereRadius, byte createVolumeSamples); + + public static void PxPoissonSamplerAddSamplesInSphereMut( PhysxPxPoissonSamplerPod* selfPod, PhysxPxVec3Pod* spherecenterPod, float sphereRadius, bool createVolumeSamples) + { + PxPoissonSamplerAddSamplesInSphereMutNative(selfPod, spherecenterPod, sphereRadius, createVolumeSamples ? (byte)1 : (byte)0); + } + + public static void PxPoissonSamplerAddSamplesInSphereMut( PhysxPxPoissonSamplerPod* selfPod, ref PhysxPxVec3Pod spherecenterPod, float sphereRadius, bool createVolumeSamples) + { + fixed (PhysxPxVec3Pod* pspherecenterPod = &spherecenterPod) + { + PxPoissonSamplerAddSamplesInSphereMutNative(selfPod, (PhysxPxVec3Pod*)pspherecenterPod, sphereRadius, createVolumeSamples ? (byte)1 : (byte)0); + } + } + + [LibraryImport(LibName, EntryPoint = "PxPoissonSampler_addSamplesInBox_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPoissonSamplerAddSamplesInBoxMutNative(PhysxPxPoissonSamplerPod* selfPod, PhysxPxBounds3Pod* axisalignedboxPod, PhysxPxQuatPod* boxorientationPod, byte createVolumeSamples); + + public static void PxPoissonSamplerAddSamplesInBoxMut( PhysxPxPoissonSamplerPod* selfPod, PhysxPxBounds3Pod* axisalignedboxPod, PhysxPxQuatPod* boxorientationPod, bool createVolumeSamples) + { + PxPoissonSamplerAddSamplesInBoxMutNative(selfPod, axisalignedboxPod, boxorientationPod, createVolumeSamples ? (byte)1 : (byte)0); + } + + public static void PxPoissonSamplerAddSamplesInBoxMut( PhysxPxPoissonSamplerPod* selfPod, ref PhysxPxBounds3Pod axisalignedboxPod, PhysxPxQuatPod* boxorientationPod, bool createVolumeSamples) + { + fixed (PhysxPxBounds3Pod* paxisalignedboxPod = &axisalignedboxPod) + { + PxPoissonSamplerAddSamplesInBoxMutNative(selfPod, (PhysxPxBounds3Pod*)paxisalignedboxPod, boxorientationPod, createVolumeSamples ? (byte)1 : (byte)0); + } + } + + public static void PxPoissonSamplerAddSamplesInBoxMut( PhysxPxPoissonSamplerPod* selfPod, PhysxPxBounds3Pod* axisalignedboxPod, ref PhysxPxQuatPod boxorientationPod, bool createVolumeSamples) + { + fixed (PhysxPxQuatPod* pboxorientationPod = &boxorientationPod) + { + PxPoissonSamplerAddSamplesInBoxMutNative(selfPod, axisalignedboxPod, (PhysxPxQuatPod*)pboxorientationPod, createVolumeSamples ? (byte)1 : (byte)0); + } + } + + public static void PxPoissonSamplerAddSamplesInBoxMut( PhysxPxPoissonSamplerPod* selfPod, ref PhysxPxBounds3Pod axisalignedboxPod, ref PhysxPxQuatPod boxorientationPod, bool createVolumeSamples) + { + fixed (PhysxPxBounds3Pod* paxisalignedboxPod = &axisalignedboxPod) + { + fixed (PhysxPxQuatPod* pboxorientationPod = &boxorientationPod) + { + PxPoissonSamplerAddSamplesInBoxMutNative(selfPod, (PhysxPxBounds3Pod*)paxisalignedboxPod, (PhysxPxQuatPod*)pboxorientationPod, createVolumeSamples ? (byte)1 : (byte)0); + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPoissonSampler_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPoissonSamplerDeleteNative(PhysxPxPoissonSamplerPod* selfPod); + + public static void PxPoissonSamplerDelete( PhysxPxPoissonSamplerPod* selfPod) + { + PxPoissonSamplerDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateShapeSampler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPoissonSamplerPod* PhysPxCreateShapeSamplerNative(PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* transformPod, PhysxPxBounds3Pod* worldboundsPod, float initialSamplingRadius, int numSampleAttemptsAroundPoint); + + public static PhysxPxPoissonSamplerPod* PhysPxCreateShapeSampler( PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* transformPod, PhysxPxBounds3Pod* worldboundsPod, float initialSamplingRadius, int numSampleAttemptsAroundPoint) + { + PhysxPxPoissonSamplerPod* ret = PhysPxCreateShapeSamplerNative(geometryPod, transformPod, worldboundsPod, initialSamplingRadius, numSampleAttemptsAroundPoint); + return ret; + } + + public static PhysxPxPoissonSamplerPod* PhysPxCreateShapeSampler( PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod transformPod, PhysxPxBounds3Pod* worldboundsPod, float initialSamplingRadius, int numSampleAttemptsAroundPoint) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + PhysxPxPoissonSamplerPod* ret = PhysPxCreateShapeSamplerNative(geometryPod, (PhysxPxTransformPod*)ptransformPod, worldboundsPod, initialSamplingRadius, numSampleAttemptsAroundPoint); + return ret; + } + } + + public static PhysxPxPoissonSamplerPod* PhysPxCreateShapeSampler( PhysxPxGeometryPod* geometryPod, PhysxPxTransformPod* transformPod, ref PhysxPxBounds3Pod worldboundsPod, float initialSamplingRadius, int numSampleAttemptsAroundPoint) + { + fixed (PhysxPxBounds3Pod* pworldboundsPod = &worldboundsPod) + { + PhysxPxPoissonSamplerPod* ret = PhysPxCreateShapeSamplerNative(geometryPod, transformPod, (PhysxPxBounds3Pod*)pworldboundsPod, initialSamplingRadius, numSampleAttemptsAroundPoint); + return ret; + } + } + + public static PhysxPxPoissonSamplerPod* PhysPxCreateShapeSampler( PhysxPxGeometryPod* geometryPod, ref PhysxPxTransformPod transformPod, ref PhysxPxBounds3Pod worldboundsPod, float initialSamplingRadius, int numSampleAttemptsAroundPoint) + { + fixed (PhysxPxTransformPod* ptransformPod = &transformPod) + { + fixed (PhysxPxBounds3Pod* pworldboundsPod = &worldboundsPod) + { + PhysxPxPoissonSamplerPod* ret = PhysPxCreateShapeSamplerNative(geometryPod, (PhysxPxTransformPod*)ptransformPod, (PhysxPxBounds3Pod*)pworldboundsPod, initialSamplingRadius, numSampleAttemptsAroundPoint); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMeshPoissonSampler_isPointInTriangleMesh_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxTriangleMeshPoissonSamplerIsPointInTriangleMeshMutNative(PhysxPxTriangleMeshPoissonSamplerPod* selfPod, PhysxPxVec3Pod* pPod); + + public static bool PxTriangleMeshPoissonSamplerIsPointInTriangleMeshMut( PhysxPxTriangleMeshPoissonSamplerPod* selfPod, PhysxPxVec3Pod* pPod) + { + byte ret = PxTriangleMeshPoissonSamplerIsPointInTriangleMeshMutNative(selfPod, pPod); + return ret != 0; + } + + public static bool PxTriangleMeshPoissonSamplerIsPointInTriangleMeshMut( PhysxPxTriangleMeshPoissonSamplerPod* selfPod, ref PhysxPxVec3Pod pPod) + { + fixed (PhysxPxVec3Pod* ppPod = &pPod) + { + byte ret = PxTriangleMeshPoissonSamplerIsPointInTriangleMeshMutNative(selfPod, (PhysxPxVec3Pod*)ppPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTriangleMeshPoissonSampler_delete")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxTriangleMeshPoissonSamplerDeleteNative(PhysxPxTriangleMeshPoissonSamplerPod* selfPod); + + public static void PxTriangleMeshPoissonSamplerDelete( PhysxPxTriangleMeshPoissonSamplerPod* selfPod) + { + PxTriangleMeshPoissonSamplerDeleteNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreateTriangleMeshSampler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxTriangleMeshPoissonSamplerPod* PhysPxCreateTriangleMeshSamplerNative(uint* triangles, uint numTriangles, PhysxPxVec3Pod* verticesPod, uint numVertices, float initialSamplingRadius, int numSampleAttemptsAroundPoint); + + public static PhysxPxTriangleMeshPoissonSamplerPod* PhysPxCreateTriangleMeshSampler( uint* triangles, uint numTriangles, PhysxPxVec3Pod* verticesPod, uint numVertices, float initialSamplingRadius, int numSampleAttemptsAroundPoint) + { + PhysxPxTriangleMeshPoissonSamplerPod* ret = PhysPxCreateTriangleMeshSamplerNative(triangles, numTriangles, verticesPod, numVertices, initialSamplingRadius, numSampleAttemptsAroundPoint); + return ret; + } + + public static PhysxPxTriangleMeshPoissonSamplerPod* PhysPxCreateTriangleMeshSampler( uint* triangles, uint numTriangles, ref PhysxPxVec3Pod verticesPod, uint numVertices, float initialSamplingRadius, int numSampleAttemptsAroundPoint) + { + fixed (PhysxPxVec3Pod* pverticesPod = &verticesPod) + { + PhysxPxTriangleMeshPoissonSamplerPod* ret = PhysPxCreateTriangleMeshSamplerNative(triangles, numTriangles, (PhysxPxVec3Pod*)pverticesPod, numVertices, initialSamplingRadius, numSampleAttemptsAroundPoint); + return ret; + } + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMeshExt_findTetrahedronContainingPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxTetrahedronMeshExtFindTetrahedronContainingPointNative(PhysxPxTetrahedronMeshPod* meshPod, PhysxPxVec3Pod* pointPod, PhysxPxVec4Pod* baryPod, float tolerance); + + public static int PxTetrahedronMeshExtFindTetrahedronContainingPoint( PhysxPxTetrahedronMeshPod* meshPod, PhysxPxVec3Pod* pointPod, PhysxPxVec4Pod* baryPod, float tolerance) + { + int ret = PxTetrahedronMeshExtFindTetrahedronContainingPointNative(meshPod, pointPod, baryPod, tolerance); + return ret; + } + + public static int PxTetrahedronMeshExtFindTetrahedronContainingPoint( PhysxPxTetrahedronMeshPod* meshPod, ref PhysxPxVec3Pod pointPod, PhysxPxVec4Pod* baryPod, float tolerance) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + int ret = PxTetrahedronMeshExtFindTetrahedronContainingPointNative(meshPod, (PhysxPxVec3Pod*)ppointPod, baryPod, tolerance); + return ret; + } + } + + public static int PxTetrahedronMeshExtFindTetrahedronContainingPoint( PhysxPxTetrahedronMeshPod* meshPod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec4Pod baryPod, float tolerance) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + int ret = PxTetrahedronMeshExtFindTetrahedronContainingPointNative(meshPod, pointPod, (PhysxPxVec4Pod*)pbaryPod, tolerance); + return ret; + } + } + + public static int PxTetrahedronMeshExtFindTetrahedronContainingPoint( PhysxPxTetrahedronMeshPod* meshPod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec4Pod baryPod, float tolerance) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + int ret = PxTetrahedronMeshExtFindTetrahedronContainingPointNative(meshPod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec4Pod*)pbaryPod, tolerance); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxTetrahedronMeshExt_findTetrahedronClosestToPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int PxTetrahedronMeshExtFindTetrahedronClosestToPointNative(PhysxPxTetrahedronMeshPod* meshPod, PhysxPxVec3Pod* pointPod, PhysxPxVec4Pod* baryPod); + + public static int PxTetrahedronMeshExtFindTetrahedronClosestToPoint( PhysxPxTetrahedronMeshPod* meshPod, PhysxPxVec3Pod* pointPod, PhysxPxVec4Pod* baryPod) + { + int ret = PxTetrahedronMeshExtFindTetrahedronClosestToPointNative(meshPod, pointPod, baryPod); + return ret; + } + + public static int PxTetrahedronMeshExtFindTetrahedronClosestToPoint( PhysxPxTetrahedronMeshPod* meshPod, ref PhysxPxVec3Pod pointPod, PhysxPxVec4Pod* baryPod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + int ret = PxTetrahedronMeshExtFindTetrahedronClosestToPointNative(meshPod, (PhysxPxVec3Pod*)ppointPod, baryPod); + return ret; + } + } + + public static int PxTetrahedronMeshExtFindTetrahedronClosestToPoint( PhysxPxTetrahedronMeshPod* meshPod, PhysxPxVec3Pod* pointPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + int ret = PxTetrahedronMeshExtFindTetrahedronClosestToPointNative(meshPod, pointPod, (PhysxPxVec4Pod*)pbaryPod); + return ret; + } + } + + public static int PxTetrahedronMeshExtFindTetrahedronClosestToPoint( PhysxPxTetrahedronMeshPod* meshPod, ref PhysxPxVec3Pod pointPod, ref PhysxPxVec4Pod baryPod) + { + fixed (PhysxPxVec3Pod* ppointPod = &pointPod) + { + fixed (PhysxPxVec4Pod* pbaryPod = &baryPod) + { + int ret = PxTetrahedronMeshExtFindTetrahedronClosestToPointNative(meshPod, (PhysxPxVec3Pod*)ppointPod, (PhysxPxVec4Pod*)pbaryPod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxInitExtensions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PhysPxInitExtensionsNative(PhysxPxPhysicsPod* physicsPod, PhysxPxPvdPod* pvdPod); + + public static bool PhysPxInitExtensions( PhysxPxPhysicsPod* physicsPod, PhysxPxPvdPod* pvdPod) + { + byte ret = PhysPxInitExtensionsNative(physicsPod, pvdPod); + return ret != 0; + } + + public static bool PhysPxInitExtensions( PhysxPxPhysicsPod* physicsPod, ref PhysxPxPvdPod pvdPod) + { + fixed (PhysxPxPvdPod* ppvdPod = &pvdPod) + { + byte ret = PhysPxInitExtensionsNative(physicsPod, (PhysxPxPvdPod*)ppvdPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCloseExtensions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PhysPxCloseExtensionsNative(); + + public static void PhysPxCloseExtensions() + { + PhysPxCloseExtensionsNative(); + } + + [LibraryImport(LibName, EntryPoint = "PxRepXObject_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRepXObjectPod PxRepXObjectNewNative(byte* inTypeName, void* inSerializable, ulong inId); + + public static PhysxPxRepXObjectPod PxRepXObjectNew( byte* inTypeName, void* inSerializable, ulong inId) + { + PhysxPxRepXObjectPod ret = PxRepXObjectNewNative(inTypeName, inSerializable, inId); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRepXObject_isValid")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxRepXObjectIsValidNative(PhysxPxRepXObjectPod* selfPod); + + public static bool PxRepXObjectIsValid( PhysxPxRepXObjectPod* selfPod) + { + byte ret = PxRepXObjectIsValidNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxRepXInstantiationArgs_new")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRepXInstantiationArgsPod PxRepXInstantiationArgsNewNative(PhysxPxPhysicsPod* inphysicsPod, PhysxPxCookingPod* incookingPod, PhysxPxStringTablePod* instringtablePod); + + public static PhysxPxRepXInstantiationArgsPod PxRepXInstantiationArgsNew( PhysxPxPhysicsPod* inphysicsPod, PhysxPxCookingPod* incookingPod, PhysxPxStringTablePod* instringtablePod) + { + PhysxPxRepXInstantiationArgsPod ret = PxRepXInstantiationArgsNewNative(inphysicsPod, incookingPod, instringtablePod); + return ret; + } + + public static PhysxPxRepXInstantiationArgsPod PxRepXInstantiationArgsNew( PhysxPxPhysicsPod* inphysicsPod, ref PhysxPxCookingPod incookingPod, PhysxPxStringTablePod* instringtablePod) + { + fixed (PhysxPxCookingPod* pincookingPod = &incookingPod) + { + PhysxPxRepXInstantiationArgsPod ret = PxRepXInstantiationArgsNewNative(inphysicsPod, (PhysxPxCookingPod*)pincookingPod, instringtablePod); + return ret; + } + } + + public static PhysxPxRepXInstantiationArgsPod PxRepXInstantiationArgsNew( PhysxPxPhysicsPod* inphysicsPod, PhysxPxCookingPod* incookingPod, ref PhysxPxStringTablePod instringtablePod) + { + fixed (PhysxPxStringTablePod* pinstringtablePod = &instringtablePod) + { + PhysxPxRepXInstantiationArgsPod ret = PxRepXInstantiationArgsNewNative(inphysicsPod, incookingPod, (PhysxPxStringTablePod*)pinstringtablePod); + return ret; + } + } + + public static PhysxPxRepXInstantiationArgsPod PxRepXInstantiationArgsNew( PhysxPxPhysicsPod* inphysicsPod, ref PhysxPxCookingPod incookingPod, ref PhysxPxStringTablePod instringtablePod) + { + fixed (PhysxPxCookingPod* pincookingPod = &incookingPod) + { + fixed (PhysxPxStringTablePod* pinstringtablePod = &instringtablePod) + { + PhysxPxRepXInstantiationArgsPod ret = PxRepXInstantiationArgsNewNative(inphysicsPod, (PhysxPxCookingPod*)pincookingPod, (PhysxPxStringTablePod*)pinstringtablePod); + return ret; + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRepXSerializer_getTypeName_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* PxRepXSerializerGetTypeNameMutNative(PhysxPxRepXSerializerPod* selfPod); + + public static byte* PxRepXSerializerGetTypeNameMut( PhysxPxRepXSerializerPod* selfPod) + { + byte* ret = PxRepXSerializerGetTypeNameMutNative(selfPod); + return ret; + } + + public static string PxRepXSerializerGetTypeNameMutS( PhysxPxRepXSerializerPod* selfPod) + { + string ret = Utils.DecodeStringUTF8(PxRepXSerializerGetTypeNameMutNative(selfPod)); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxRepXSerializer_objectToFile_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxRepXSerializerObjectToFileMutNative(PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, PhysxPxCollectionPod* incollectionPod, PhysxXmlWriterPod* inwriterPod, PhysxMemoryBufferPod* intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod); + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, PhysxPxCollectionPod* incollectionPod, PhysxXmlWriterPod* inwriterPod, PhysxMemoryBufferPod* intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, incollectionPod, inwriterPod, intempbufferPod, inargsPod); + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, PhysxPxCollectionPod* incollectionPod, PhysxXmlWriterPod* inwriterPod, PhysxMemoryBufferPod* intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, incollectionPod, inwriterPod, intempbufferPod, inargsPod); + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, PhysxXmlWriterPod* inwriterPod, PhysxMemoryBufferPod* intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, inwriterPod, intempbufferPod, inargsPod); + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, PhysxXmlWriterPod* inwriterPod, PhysxMemoryBufferPod* intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, inwriterPod, intempbufferPod, inargsPod); + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, PhysxPxCollectionPod* incollectionPod, ref PhysxXmlWriterPod inwriterPod, PhysxMemoryBufferPod* intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, incollectionPod, (PhysxXmlWriterPod*)pinwriterPod, intempbufferPod, inargsPod); + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, PhysxPxCollectionPod* incollectionPod, ref PhysxXmlWriterPod inwriterPod, PhysxMemoryBufferPod* intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, incollectionPod, (PhysxXmlWriterPod*)pinwriterPod, intempbufferPod, inargsPod); + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, ref PhysxXmlWriterPod inwriterPod, PhysxMemoryBufferPod* intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, (PhysxXmlWriterPod*)pinwriterPod, intempbufferPod, inargsPod); + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, ref PhysxXmlWriterPod inwriterPod, PhysxMemoryBufferPod* intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, (PhysxXmlWriterPod*)pinwriterPod, intempbufferPod, inargsPod); + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, PhysxPxCollectionPod* incollectionPod, PhysxXmlWriterPod* inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, incollectionPod, inwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, inargsPod); + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, PhysxPxCollectionPod* incollectionPod, PhysxXmlWriterPod* inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, incollectionPod, inwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, inargsPod); + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, PhysxXmlWriterPod* inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, inwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, inargsPod); + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, PhysxXmlWriterPod* inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, inwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, inargsPod); + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, PhysxPxCollectionPod* incollectionPod, ref PhysxXmlWriterPod inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, incollectionPod, (PhysxXmlWriterPod*)pinwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, inargsPod); + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, PhysxPxCollectionPod* incollectionPod, ref PhysxXmlWriterPod inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, incollectionPod, (PhysxXmlWriterPod*)pinwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, inargsPod); + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, ref PhysxXmlWriterPod inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, (PhysxXmlWriterPod*)pinwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, inargsPod); + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, ref PhysxXmlWriterPod inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, PhysxPxRepXInstantiationArgsPod* inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, (PhysxXmlWriterPod*)pinwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, inargsPod); + } + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, PhysxPxCollectionPod* incollectionPod, PhysxXmlWriterPod* inwriterPod, PhysxMemoryBufferPod* intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, incollectionPod, inwriterPod, intempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, PhysxPxCollectionPod* incollectionPod, PhysxXmlWriterPod* inwriterPod, PhysxMemoryBufferPod* intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, incollectionPod, inwriterPod, intempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, PhysxXmlWriterPod* inwriterPod, PhysxMemoryBufferPod* intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, inwriterPod, intempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, PhysxXmlWriterPod* inwriterPod, PhysxMemoryBufferPod* intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, inwriterPod, intempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, PhysxPxCollectionPod* incollectionPod, ref PhysxXmlWriterPod inwriterPod, PhysxMemoryBufferPod* intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, incollectionPod, (PhysxXmlWriterPod*)pinwriterPod, intempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, PhysxPxCollectionPod* incollectionPod, ref PhysxXmlWriterPod inwriterPod, PhysxMemoryBufferPod* intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, incollectionPod, (PhysxXmlWriterPod*)pinwriterPod, intempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, ref PhysxXmlWriterPod inwriterPod, PhysxMemoryBufferPod* intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, (PhysxXmlWriterPod*)pinwriterPod, intempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, ref PhysxXmlWriterPod inwriterPod, PhysxMemoryBufferPod* intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, (PhysxXmlWriterPod*)pinwriterPod, intempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, PhysxPxCollectionPod* incollectionPod, PhysxXmlWriterPod* inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, incollectionPod, inwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, PhysxPxCollectionPod* incollectionPod, PhysxXmlWriterPod* inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, incollectionPod, inwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, PhysxXmlWriterPod* inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, inwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, PhysxXmlWriterPod* inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, inwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, PhysxPxCollectionPod* incollectionPod, ref PhysxXmlWriterPod inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, incollectionPod, (PhysxXmlWriterPod*)pinwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, PhysxPxCollectionPod* incollectionPod, ref PhysxXmlWriterPod inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, incollectionPod, (PhysxXmlWriterPod*)pinwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, PhysxPxRepXObjectPod* inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, ref PhysxXmlWriterPod inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, inliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, (PhysxXmlWriterPod*)pinwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + } + } + + public static void PxRepXSerializerObjectToFileMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxPxRepXObjectPod inliveobjectPod, ref PhysxPxCollectionPod incollectionPod, ref PhysxXmlWriterPod inwriterPod, ref PhysxMemoryBufferPod intempbufferPod, ref PhysxPxRepXInstantiationArgsPod inargsPod) + { + fixed (PhysxPxRepXObjectPod* pinliveobjectPod = &inliveobjectPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + fixed (PhysxXmlWriterPod* pinwriterPod = &inwriterPod) + { + fixed (PhysxMemoryBufferPod* pintempbufferPod = &intempbufferPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PxRepXSerializerObjectToFileMutNative(selfPod, (PhysxPxRepXObjectPod*)pinliveobjectPod, (PhysxPxCollectionPod*)pincollectionPod, (PhysxXmlWriterPod*)pinwriterPod, (PhysxMemoryBufferPod*)pintempbufferPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod); + } + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxRepXSerializer_fileToObject_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMutNative(PhysxPxRepXSerializerPod* selfPod, PhysxXmlReaderPod* inreaderPod, PhysxXmlMemoryAllocatorPod* inallocatorPod, PhysxPxRepXInstantiationArgsPod* inargsPod, PhysxPxCollectionPod* incollectionPod); + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, PhysxXmlReaderPod* inreaderPod, PhysxXmlMemoryAllocatorPod* inallocatorPod, PhysxPxRepXInstantiationArgsPod* inargsPod, PhysxPxCollectionPod* incollectionPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, inreaderPod, inallocatorPod, inargsPod, incollectionPod); + return ret; + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxXmlReaderPod inreaderPod, PhysxXmlMemoryAllocatorPod* inallocatorPod, PhysxPxRepXInstantiationArgsPod* inargsPod, PhysxPxCollectionPod* incollectionPod) + { + fixed (PhysxXmlReaderPod* pinreaderPod = &inreaderPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, (PhysxXmlReaderPod*)pinreaderPod, inallocatorPod, inargsPod, incollectionPod); + return ret; + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, PhysxXmlReaderPod* inreaderPod, ref PhysxXmlMemoryAllocatorPod inallocatorPod, PhysxPxRepXInstantiationArgsPod* inargsPod, PhysxPxCollectionPod* incollectionPod) + { + fixed (PhysxXmlMemoryAllocatorPod* pinallocatorPod = &inallocatorPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, inreaderPod, (PhysxXmlMemoryAllocatorPod*)pinallocatorPod, inargsPod, incollectionPod); + return ret; + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxXmlReaderPod inreaderPod, ref PhysxXmlMemoryAllocatorPod inallocatorPod, PhysxPxRepXInstantiationArgsPod* inargsPod, PhysxPxCollectionPod* incollectionPod) + { + fixed (PhysxXmlReaderPod* pinreaderPod = &inreaderPod) + { + fixed (PhysxXmlMemoryAllocatorPod* pinallocatorPod = &inallocatorPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, (PhysxXmlReaderPod*)pinreaderPod, (PhysxXmlMemoryAllocatorPod*)pinallocatorPod, inargsPod, incollectionPod); + return ret; + } + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, PhysxXmlReaderPod* inreaderPod, PhysxXmlMemoryAllocatorPod* inallocatorPod, ref PhysxPxRepXInstantiationArgsPod inargsPod, PhysxPxCollectionPod* incollectionPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, inreaderPod, inallocatorPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod, incollectionPod); + return ret; + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxXmlReaderPod inreaderPod, PhysxXmlMemoryAllocatorPod* inallocatorPod, ref PhysxPxRepXInstantiationArgsPod inargsPod, PhysxPxCollectionPod* incollectionPod) + { + fixed (PhysxXmlReaderPod* pinreaderPod = &inreaderPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, (PhysxXmlReaderPod*)pinreaderPod, inallocatorPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod, incollectionPod); + return ret; + } + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, PhysxXmlReaderPod* inreaderPod, ref PhysxXmlMemoryAllocatorPod inallocatorPod, ref PhysxPxRepXInstantiationArgsPod inargsPod, PhysxPxCollectionPod* incollectionPod) + { + fixed (PhysxXmlMemoryAllocatorPod* pinallocatorPod = &inallocatorPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, inreaderPod, (PhysxXmlMemoryAllocatorPod*)pinallocatorPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod, incollectionPod); + return ret; + } + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxXmlReaderPod inreaderPod, ref PhysxXmlMemoryAllocatorPod inallocatorPod, ref PhysxPxRepXInstantiationArgsPod inargsPod, PhysxPxCollectionPod* incollectionPod) + { + fixed (PhysxXmlReaderPod* pinreaderPod = &inreaderPod) + { + fixed (PhysxXmlMemoryAllocatorPod* pinallocatorPod = &inallocatorPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, (PhysxXmlReaderPod*)pinreaderPod, (PhysxXmlMemoryAllocatorPod*)pinallocatorPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod, incollectionPod); + return ret; + } + } + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, PhysxXmlReaderPod* inreaderPod, PhysxXmlMemoryAllocatorPod* inallocatorPod, PhysxPxRepXInstantiationArgsPod* inargsPod, ref PhysxPxCollectionPod incollectionPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, inreaderPod, inallocatorPod, inargsPod, (PhysxPxCollectionPod*)pincollectionPod); + return ret; + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxXmlReaderPod inreaderPod, PhysxXmlMemoryAllocatorPod* inallocatorPod, PhysxPxRepXInstantiationArgsPod* inargsPod, ref PhysxPxCollectionPod incollectionPod) + { + fixed (PhysxXmlReaderPod* pinreaderPod = &inreaderPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, (PhysxXmlReaderPod*)pinreaderPod, inallocatorPod, inargsPod, (PhysxPxCollectionPod*)pincollectionPod); + return ret; + } + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, PhysxXmlReaderPod* inreaderPod, ref PhysxXmlMemoryAllocatorPod inallocatorPod, PhysxPxRepXInstantiationArgsPod* inargsPod, ref PhysxPxCollectionPod incollectionPod) + { + fixed (PhysxXmlMemoryAllocatorPod* pinallocatorPod = &inallocatorPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, inreaderPod, (PhysxXmlMemoryAllocatorPod*)pinallocatorPod, inargsPod, (PhysxPxCollectionPod*)pincollectionPod); + return ret; + } + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxXmlReaderPod inreaderPod, ref PhysxXmlMemoryAllocatorPod inallocatorPod, PhysxPxRepXInstantiationArgsPod* inargsPod, ref PhysxPxCollectionPod incollectionPod) + { + fixed (PhysxXmlReaderPod* pinreaderPod = &inreaderPod) + { + fixed (PhysxXmlMemoryAllocatorPod* pinallocatorPod = &inallocatorPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, (PhysxXmlReaderPod*)pinreaderPod, (PhysxXmlMemoryAllocatorPod*)pinallocatorPod, inargsPod, (PhysxPxCollectionPod*)pincollectionPod); + return ret; + } + } + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, PhysxXmlReaderPod* inreaderPod, PhysxXmlMemoryAllocatorPod* inallocatorPod, ref PhysxPxRepXInstantiationArgsPod inargsPod, ref PhysxPxCollectionPod incollectionPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, inreaderPod, inallocatorPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod, (PhysxPxCollectionPod*)pincollectionPod); + return ret; + } + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxXmlReaderPod inreaderPod, PhysxXmlMemoryAllocatorPod* inallocatorPod, ref PhysxPxRepXInstantiationArgsPod inargsPod, ref PhysxPxCollectionPod incollectionPod) + { + fixed (PhysxXmlReaderPod* pinreaderPod = &inreaderPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, (PhysxXmlReaderPod*)pinreaderPod, inallocatorPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod, (PhysxPxCollectionPod*)pincollectionPod); + return ret; + } + } + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, PhysxXmlReaderPod* inreaderPod, ref PhysxXmlMemoryAllocatorPod inallocatorPod, ref PhysxPxRepXInstantiationArgsPod inargsPod, ref PhysxPxCollectionPod incollectionPod) + { + fixed (PhysxXmlMemoryAllocatorPod* pinallocatorPod = &inallocatorPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, inreaderPod, (PhysxXmlMemoryAllocatorPod*)pinallocatorPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod, (PhysxPxCollectionPod*)pincollectionPod); + return ret; + } + } + } + } + + public static PhysxPxRepXObjectPod PxRepXSerializerFileToObjectMut( PhysxPxRepXSerializerPod* selfPod, ref PhysxXmlReaderPod inreaderPod, ref PhysxXmlMemoryAllocatorPod inallocatorPod, ref PhysxPxRepXInstantiationArgsPod inargsPod, ref PhysxPxCollectionPod incollectionPod) + { + fixed (PhysxXmlReaderPod* pinreaderPod = &inreaderPod) + { + fixed (PhysxXmlMemoryAllocatorPod* pinallocatorPod = &inallocatorPod) + { + fixed (PhysxPxRepXInstantiationArgsPod* pinargsPod = &inargsPod) + { + fixed (PhysxPxCollectionPod* pincollectionPod = &incollectionPod) + { + PhysxPxRepXObjectPod ret = PxRepXSerializerFileToObjectMutNative(selfPod, (PhysxXmlReaderPod*)pinreaderPod, (PhysxXmlMemoryAllocatorPod*)pinallocatorPod, (PhysxPxRepXInstantiationArgsPod*)pinargsPod, (PhysxPxCollectionPod*)pincollectionPod); + return ret; + } + } + } + } + } + + [LibraryImport(LibName, EntryPoint = "PxPvd_connect_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxPvdConnectMutNative(PhysxPxPvdPod* selfPod, PhysxPxPvdTransportPod* transportPod, byte flagsPod); + + public static bool PxPvdConnectMut( PhysxPxPvdPod* selfPod, PhysxPxPvdTransportPod* transportPod, byte flagsPod) + { + byte ret = PxPvdConnectMutNative(selfPod, transportPod, flagsPod); + return ret != 0; + } + + public static bool PxPvdConnectMut( PhysxPxPvdPod* selfPod, ref PhysxPxPvdTransportPod transportPod, byte flagsPod) + { + fixed (PhysxPxPvdTransportPod* ptransportPod = &transportPod) + { + byte ret = PxPvdConnectMutNative(selfPod, (PhysxPxPvdTransportPod*)ptransportPod, flagsPod); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPvd_disconnect_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdDisconnectMutNative(PhysxPxPvdPod* selfPod); + + public static void PxPvdDisconnectMut( PhysxPxPvdPod* selfPod) + { + PxPvdDisconnectMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxPvd_isConnected_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxPvdIsConnectedMutNative(PhysxPxPvdPod* selfPod, byte useCachedStatus); + + public static bool PxPvdIsConnectedMut( PhysxPxPvdPod* selfPod, bool useCachedStatus) + { + byte ret = PxPvdIsConnectedMutNative(selfPod, useCachedStatus ? (byte)1 : (byte)0); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxPvd_getTransport_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPvdTransportPod* PxPvdGetTransportMutNative(PhysxPxPvdPod* selfPod); + + public static PhysxPxPvdTransportPod* PxPvdGetTransportMut( PhysxPxPvdPod* selfPod) + { + PhysxPxPvdTransportPod* ret = PxPvdGetTransportMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPvd_getInstrumentationFlags_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxPvdGetInstrumentationFlagsMutNative(PhysxPxPvdPod* selfPod); + + public static byte PxPvdGetInstrumentationFlagsMut( PhysxPxPvdPod* selfPod) + { + byte ret = PxPvdGetInstrumentationFlagsMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPvd_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdReleaseMutNative(PhysxPxPvdPod* selfPod); + + public static void PxPvdReleaseMut( PhysxPxPvdPod* selfPod) + { + PxPvdReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxCreatePvd")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPvdPod* PhysPxCreatePvdNative(PhysxPxFoundationPod* foundationPod); + + public static PhysxPxPvdPod* PhysPxCreatePvd( PhysxPxFoundationPod* foundationPod) + { + PhysxPxPvdPod* ret = PhysPxCreatePvdNative(foundationPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPvdTransport_connect_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxPvdTransportConnectMutNative(PhysxPxPvdTransportPod* selfPod); + + public static bool PxPvdTransportConnectMut( PhysxPxPvdTransportPod* selfPod) + { + byte ret = PxPvdTransportConnectMutNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxPvdTransport_disconnect_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdTransportDisconnectMutNative(PhysxPxPvdTransportPod* selfPod); + + public static void PxPvdTransportDisconnectMut( PhysxPxPvdTransportPod* selfPod) + { + PxPvdTransportDisconnectMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxPvdTransport_isConnected_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxPvdTransportIsConnectedMutNative(PhysxPxPvdTransportPod* selfPod); + + public static bool PxPvdTransportIsConnectedMut( PhysxPxPvdTransportPod* selfPod) + { + byte ret = PxPvdTransportIsConnectedMutNative(selfPod); + return ret != 0; + } + + [LibraryImport(LibName, EntryPoint = "PxPvdTransport_write_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte PxPvdTransportWriteMutNative(PhysxPxPvdTransportPod* selfPod, byte* inBytes, uint inLength); + + public static bool PxPvdTransportWriteMut( PhysxPxPvdTransportPod* selfPod, byte* inBytes, uint inLength) + { + byte ret = PxPvdTransportWriteMutNative(selfPod, inBytes, inLength); + return ret != 0; + } + + public static bool PxPvdTransportWriteMut( PhysxPxPvdTransportPod* selfPod, ref byte inBytes, uint inLength) + { + fixed (byte* pinBytes = &inBytes) + { + byte ret = PxPvdTransportWriteMutNative(selfPod, (byte*)pinBytes, inLength); + return ret != 0; + } + } + + [LibraryImport(LibName, EntryPoint = "PxPvdTransport_lock_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPvdTransportPod* PxPvdTransportLockMutNative(PhysxPxPvdTransportPod* selfPod); + + public static PhysxPxPvdTransportPod* PxPvdTransportLockMut( PhysxPxPvdTransportPod* selfPod) + { + PhysxPxPvdTransportPod* ret = PxPvdTransportLockMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPvdTransport_unlock_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdTransportUnlockMutNative(PhysxPxPvdTransportPod* selfPod); + + public static void PxPvdTransportUnlockMut( PhysxPxPvdTransportPod* selfPod) + { + PxPvdTransportUnlockMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxPvdTransport_flush_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdTransportFlushMutNative(PhysxPxPvdTransportPod* selfPod); + + public static void PxPvdTransportFlushMut( PhysxPxPvdTransportPod* selfPod) + { + PxPvdTransportFlushMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "PxPvdTransport_getWrittenDataSize_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong PxPvdTransportGetWrittenDataSizeMutNative(PhysxPxPvdTransportPod* selfPod); + + public static ulong PxPvdTransportGetWrittenDataSizeMut( PhysxPxPvdTransportPod* selfPod) + { + ulong ret = PxPvdTransportGetWrittenDataSizeMutNative(selfPod); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "PxPvdTransport_release_mut")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void PxPvdTransportReleaseMutNative(PhysxPxPvdTransportPod* selfPod); + + public static void PxPvdTransportReleaseMut( PhysxPxPvdTransportPod* selfPod) + { + PxPvdTransportReleaseMutNative(selfPod); + } + + [LibraryImport(LibName, EntryPoint = "phys_PxDefaultPvdSocketTransportCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPvdTransportPod* PhysPxDefaultPvdSocketTransportCreateNative(byte* host, int port, uint timeoutInMilliseconds); + + public static PhysxPxPvdTransportPod* PhysPxDefaultPvdSocketTransportCreate( byte* host, int port, uint timeoutInMilliseconds) + { + PhysxPxPvdTransportPod* ret = PhysPxDefaultPvdSocketTransportCreateNative(host, port, timeoutInMilliseconds); + return ret; + } + + [LibraryImport(LibName, EntryPoint = "phys_PxDefaultPvdFileTransportCreate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial PhysxPxPvdTransportPod* PhysPxDefaultPvdFileTransportCreateNative(byte* name); + + public static PhysxPxPvdTransportPod* PhysPxDefaultPvdFileTransportCreate( byte* name) + { + PhysxPxPvdTransportPod* ret = PhysPxDefaultPvdFileTransportCreateNative(name); + return ret; + } + + } +} diff --git a/Hexa.NET.PhysX/Generated/Handles.cs b/Hexa.NET.PhysX/Generated/Handles.cs new file mode 100644 index 0000000..221ecc1 --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Handles.cs @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct CUcontext : IEquatable + { + public CUcontext(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static CUcontext Null => new CUcontext(0); + public static implicit operator CUcontext(nint handle) => new CUcontext(handle); + public static bool operator ==(CUcontext left, CUcontext right) => left.Handle == right.Handle; + public static bool operator !=(CUcontext left, CUcontext right) => left.Handle != right.Handle; + public static bool operator ==(CUcontext left, nint right) => left.Handle == right; + public static bool operator !=(CUcontext left, nint right) => left.Handle != right; + public bool Equals(CUcontext other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is CUcontext handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("CUcontext [0x{0}]", Handle.ToString("X")); + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct CUmodule : IEquatable + { + public CUmodule(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static CUmodule Null => new CUmodule(0); + public static implicit operator CUmodule(nint handle) => new CUmodule(handle); + public static bool operator ==(CUmodule left, CUmodule right) => left.Handle == right.Handle; + public static bool operator !=(CUmodule left, CUmodule right) => left.Handle != right.Handle; + public static bool operator ==(CUmodule left, nint right) => left.Handle == right; + public static bool operator !=(CUmodule left, nint right) => left.Handle != right; + public bool Equals(CUmodule other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is CUmodule handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("CUmodule [0x{0}]", Handle.ToString("X")); + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct CUfunction : IEquatable + { + public CUfunction(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static CUfunction Null => new CUfunction(0); + public static implicit operator CUfunction(nint handle) => new CUfunction(handle); + public static bool operator ==(CUfunction left, CUfunction right) => left.Handle == right.Handle; + public static bool operator !=(CUfunction left, CUfunction right) => left.Handle != right.Handle; + public static bool operator ==(CUfunction left, nint right) => left.Handle == right; + public static bool operator !=(CUfunction left, nint right) => left.Handle != right; + public bool Equals(CUfunction other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is CUfunction handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("CUfunction [0x{0}]", Handle.ToString("X")); + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct CUstream : IEquatable + { + public CUstream(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static CUstream Null => new CUstream(0); + public static implicit operator CUstream(nint handle) => new CUstream(handle); + public static bool operator ==(CUstream left, CUstream right) => left.Handle == right.Handle; + public static bool operator !=(CUstream left, CUstream right) => left.Handle != right.Handle; + public static bool operator ==(CUstream left, nint right) => left.Handle == right; + public static bool operator !=(CUstream left, nint right) => left.Handle != right; + public bool Equals(CUstream other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is CUstream handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("CUstream [0x{0}]", Handle.ToString("X")); + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct CUevent : IEquatable + { + public CUevent(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static CUevent Null => new CUevent(0); + public static implicit operator CUevent(nint handle) => new CUevent(handle); + public static bool operator ==(CUevent left, CUevent right) => left.Handle == right.Handle; + public static bool operator !=(CUevent left, CUevent right) => left.Handle != right.Handle; + public static bool operator ==(CUevent left, nint right) => left.Handle == right; + public static bool operator !=(CUevent left, nint right) => left.Handle != right; + public bool Equals(CUevent other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is CUevent handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("CUevent [0x{0}]", Handle.ToString("X")); + } + + [DebuggerDisplay("{DebuggerDisplay,nq}")] + public readonly partial struct CUgraphicsResource : IEquatable + { + public CUgraphicsResource(nint handle) { Handle = handle; } + public nint Handle { get; } + public bool IsNull => Handle == 0; + public static CUgraphicsResource Null => new CUgraphicsResource(0); + public static implicit operator CUgraphicsResource(nint handle) => new CUgraphicsResource(handle); + public static bool operator ==(CUgraphicsResource left, CUgraphicsResource right) => left.Handle == right.Handle; + public static bool operator !=(CUgraphicsResource left, CUgraphicsResource right) => left.Handle != right.Handle; + public static bool operator ==(CUgraphicsResource left, nint right) => left.Handle == right; + public static bool operator !=(CUgraphicsResource left, nint right) => left.Handle != right; + public bool Equals(CUgraphicsResource other) => Handle == other.Handle; + /// + public override bool Equals(object obj) => obj is CUgraphicsResource handle && Equals(handle); + /// + public override int GetHashCode() => Handle.GetHashCode(); + private string DebuggerDisplay => string.Format("CUgraphicsResource [0x{0}]", Handle.ToString("X")); + } + +} diff --git a/Hexa.NET.PhysX/Generated/Structures.000.cs b/Hexa.NET.PhysX/Generated/Structures.000.cs new file mode 100644 index 0000000..2ebb36f --- /dev/null +++ b/Hexa.NET.PhysX/Generated/Structures.000.cs @@ -0,0 +1,7156 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; +using System.Numerics; + +namespace Hexa.NET.PhysX +{ + [StructLayout(LayoutKind.Sequential)] + public partial struct PxPackValidation + { + public byte ; + public long A; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct CUstreamSt + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct CUctxSt + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct CUgraphicsResourceSt + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct CUmodSt + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct CUfuncSt + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct CUeventSt + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxAllocatorCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxErrorCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxAssertHandlerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxInputStreamPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxInputDataPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxOutputStreamPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxVec2Pod + { + public float X; + public float Y; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxVec3Pod + { + public float X; + public float Y; + public float Z; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxVec4Pod + { + public float X; + public float Y; + public float Z; + public float W; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxQuatPod + { + public float X; + public float Y; + public float Z; + public float W; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMat33Pod + { + public PhysxPxVec3Pod Column0; + public PhysxPxVec3Pod Column1; + public PhysxPxVec3Pod Column2; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMat34Pod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMat44Pod + { + public PhysxPxVec4Pod Column0; + public PhysxPxVec4Pod Column1; + public PhysxPxVec4Pod Column2; + public PhysxPxVec4Pod Column3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTransformPod + { + public PhysxPxQuatPod Q; + public PhysxPxVec3Pod P; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxPlanePod + { + public PhysxPxVec3Pod N; + public float D; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBounds3Pod + { + public PhysxPxVec3Pod Minimum; + public PhysxPxVec3Pod Maximum; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxAllocationListenerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxFoundationPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxProfilerCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxAllocatorPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRawAllocatorPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxVirtualAllocatorCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxVirtualAllocatorPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxUserAllocatedPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Explicit)] + public partial struct PhysxPxTempAllocatorChunkPod + { + [FieldOffset(0)] + public unsafe PhysxPxTempAllocatorChunkPod* MNext; + [FieldOffset(0)] + public uint MIndex; + [FieldOffset(0)] + public byte MPad_0; + [FieldOffset(16)] + public byte MPad_1; + [FieldOffset(32)] + public byte MPad_2; + [FieldOffset(48)] + public byte MPad_3; + [FieldOffset(64)] + public byte MPad_4; + [FieldOffset(80)] + public byte MPad_5; + [FieldOffset(96)] + public byte MPad_6; + [FieldOffset(112)] + public byte MPad_7; + [FieldOffset(128)] + public byte MPad_8; + [FieldOffset(144)] + public byte MPad_9; + [FieldOffset(160)] + public byte MPad_10; + [FieldOffset(176)] + public byte MPad_11; + [FieldOffset(192)] + public byte MPad_12; + [FieldOffset(208)] + public byte MPad_13; + [FieldOffset(224)] + public byte MPad_14; + [FieldOffset(240)] + public byte MPad_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTempAllocatorPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxLogTwoPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxUnConstPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBitAndBytePod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBitMapPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxVec3PaddedPod + { + public float X; + public float Y; + public float Z; + public uint Padding; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTransformPaddedPod + { + public PhysxPxTransformPod Transform; + public uint Padding; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadcastingAllocatorPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public byte StructgenPad0_22; + public byte StructgenPad0_23; + public byte StructgenPad0_24; + public byte StructgenPad0_25; + public byte StructgenPad0_26; + public byte StructgenPad0_27; + public byte StructgenPad0_28; + public byte StructgenPad0_29; + public byte StructgenPad0_30; + public byte StructgenPad0_31; + public byte StructgenPad0_32; + public byte StructgenPad0_33; + public byte StructgenPad0_34; + public byte StructgenPad0_35; + public byte StructgenPad0_36; + public byte StructgenPad0_37; + public byte StructgenPad0_38; + public byte StructgenPad0_39; + public byte StructgenPad0_40; + public byte StructgenPad0_41; + public byte StructgenPad0_42; + public byte StructgenPad0_43; + public byte StructgenPad0_44; + public byte StructgenPad0_45; + public byte StructgenPad0_46; + public byte StructgenPad0_47; + public byte StructgenPad0_48; + public byte StructgenPad0_49; + public byte StructgenPad0_50; + public byte StructgenPad0_51; + public byte StructgenPad0_52; + public byte StructgenPad0_53; + public byte StructgenPad0_54; + public byte StructgenPad0_55; + public byte StructgenPad0_56; + public byte StructgenPad0_57; + public byte StructgenPad0_58; + public byte StructgenPad0_59; + public byte StructgenPad0_60; + public byte StructgenPad0_61; + public byte StructgenPad0_62; + public byte StructgenPad0_63; + public byte StructgenPad0_64; + public byte StructgenPad0_65; + public byte StructgenPad0_66; + public byte StructgenPad0_67; + public byte StructgenPad0_68; + public byte StructgenPad0_69; + public byte StructgenPad0_70; + public byte StructgenPad0_71; + public byte StructgenPad0_72; + public byte StructgenPad0_73; + public byte StructgenPad0_74; + public byte StructgenPad0_75; + public byte StructgenPad0_76; + public byte StructgenPad0_77; + public byte StructgenPad0_78; + public byte StructgenPad0_79; + public byte StructgenPad0_80; + public byte StructgenPad0_81; + public byte StructgenPad0_82; + public byte StructgenPad0_83; + public byte StructgenPad0_84; + public byte StructgenPad0_85; + public byte StructgenPad0_86; + public byte StructgenPad0_87; + public byte StructgenPad0_88; + public byte StructgenPad0_89; + public byte StructgenPad0_90; + public byte StructgenPad0_91; + public byte StructgenPad0_92; + public byte StructgenPad0_93; + public byte StructgenPad0_94; + public byte StructgenPad0_95; + public byte StructgenPad0_96; + public byte StructgenPad0_97; + public byte StructgenPad0_98; + public byte StructgenPad0_99; + public byte StructgenPad0_100; + public byte StructgenPad0_101; + public byte StructgenPad0_102; + public byte StructgenPad0_103; + public byte StructgenPad0_104; + public byte StructgenPad0_105; + public byte StructgenPad0_106; + public byte StructgenPad0_107; + public byte StructgenPad0_108; + public byte StructgenPad0_109; + public byte StructgenPad0_110; + public byte StructgenPad0_111; + public byte StructgenPad0_112; + public byte StructgenPad0_113; + public byte StructgenPad0_114; + public byte StructgenPad0_115; + public byte StructgenPad0_116; + public byte StructgenPad0_117; + public byte StructgenPad0_118; + public byte StructgenPad0_119; + public byte StructgenPad0_120; + public byte StructgenPad0_121; + public byte StructgenPad0_122; + public byte StructgenPad0_123; + public byte StructgenPad0_124; + public byte StructgenPad0_125; + public byte StructgenPad0_126; + public byte StructgenPad0_127; + public byte StructgenPad0_128; + public byte StructgenPad0_129; + public byte StructgenPad0_130; + public byte StructgenPad0_131; + public byte StructgenPad0_132; + public byte StructgenPad0_133; + public byte StructgenPad0_134; + public byte StructgenPad0_135; + public byte StructgenPad0_136; + public byte StructgenPad0_137; + public byte StructgenPad0_138; + public byte StructgenPad0_139; + public byte StructgenPad0_140; + public byte StructgenPad0_141; + public byte StructgenPad0_142; + public byte StructgenPad0_143; + public byte StructgenPad0_144; + public byte StructgenPad0_145; + public byte StructgenPad0_146; + public byte StructgenPad0_147; + public byte StructgenPad0_148; + public byte StructgenPad0_149; + public byte StructgenPad0_150; + public byte StructgenPad0_151; + public byte StructgenPad0_152; + public byte StructgenPad0_153; + public byte StructgenPad0_154; + public byte StructgenPad0_155; + public byte StructgenPad0_156; + public byte StructgenPad0_157; + public byte StructgenPad0_158; + public byte StructgenPad0_159; + public byte StructgenPad0_160; + public byte StructgenPad0_161; + public byte StructgenPad0_162; + public byte StructgenPad0_163; + public byte StructgenPad0_164; + public byte StructgenPad0_165; + public byte StructgenPad0_166; + public byte StructgenPad0_167; + public byte StructgenPad0_168; + public byte StructgenPad0_169; + public byte StructgenPad0_170; + public byte StructgenPad0_171; + public byte StructgenPad0_172; + public byte StructgenPad0_173; + public byte StructgenPad0_174; + public byte StructgenPad0_175; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadcastingErrorCallbackPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public byte StructgenPad0_22; + public byte StructgenPad0_23; + public byte StructgenPad0_24; + public byte StructgenPad0_25; + public byte StructgenPad0_26; + public byte StructgenPad0_27; + public byte StructgenPad0_28; + public byte StructgenPad0_29; + public byte StructgenPad0_30; + public byte StructgenPad0_31; + public byte StructgenPad0_32; + public byte StructgenPad0_33; + public byte StructgenPad0_34; + public byte StructgenPad0_35; + public byte StructgenPad0_36; + public byte StructgenPad0_37; + public byte StructgenPad0_38; + public byte StructgenPad0_39; + public byte StructgenPad0_40; + public byte StructgenPad0_41; + public byte StructgenPad0_42; + public byte StructgenPad0_43; + public byte StructgenPad0_44; + public byte StructgenPad0_45; + public byte StructgenPad0_46; + public byte StructgenPad0_47; + public byte StructgenPad0_48; + public byte StructgenPad0_49; + public byte StructgenPad0_50; + public byte StructgenPad0_51; + public byte StructgenPad0_52; + public byte StructgenPad0_53; + public byte StructgenPad0_54; + public byte StructgenPad0_55; + public byte StructgenPad0_56; + public byte StructgenPad0_57; + public byte StructgenPad0_58; + public byte StructgenPad0_59; + public byte StructgenPad0_60; + public byte StructgenPad0_61; + public byte StructgenPad0_62; + public byte StructgenPad0_63; + public byte StructgenPad0_64; + public byte StructgenPad0_65; + public byte StructgenPad0_66; + public byte StructgenPad0_67; + public byte StructgenPad0_68; + public byte StructgenPad0_69; + public byte StructgenPad0_70; + public byte StructgenPad0_71; + public byte StructgenPad0_72; + public byte StructgenPad0_73; + public byte StructgenPad0_74; + public byte StructgenPad0_75; + public byte StructgenPad0_76; + public byte StructgenPad0_77; + public byte StructgenPad0_78; + public byte StructgenPad0_79; + public byte StructgenPad0_80; + public byte StructgenPad0_81; + public byte StructgenPad0_82; + public byte StructgenPad0_83; + public byte StructgenPad0_84; + public byte StructgenPad0_85; + public byte StructgenPad0_86; + public byte StructgenPad0_87; + public byte StructgenPad0_88; + public byte StructgenPad0_89; + public byte StructgenPad0_90; + public byte StructgenPad0_91; + public byte StructgenPad0_92; + public byte StructgenPad0_93; + public byte StructgenPad0_94; + public byte StructgenPad0_95; + public byte StructgenPad0_96; + public byte StructgenPad0_97; + public byte StructgenPad0_98; + public byte StructgenPad0_99; + public byte StructgenPad0_100; + public byte StructgenPad0_101; + public byte StructgenPad0_102; + public byte StructgenPad0_103; + public byte StructgenPad0_104; + public byte StructgenPad0_105; + public byte StructgenPad0_106; + public byte StructgenPad0_107; + public byte StructgenPad0_108; + public byte StructgenPad0_109; + public byte StructgenPad0_110; + public byte StructgenPad0_111; + public byte StructgenPad0_112; + public byte StructgenPad0_113; + public byte StructgenPad0_114; + public byte StructgenPad0_115; + public byte StructgenPad0_116; + public byte StructgenPad0_117; + public byte StructgenPad0_118; + public byte StructgenPad0_119; + public byte StructgenPad0_120; + public byte StructgenPad0_121; + public byte StructgenPad0_122; + public byte StructgenPad0_123; + public byte StructgenPad0_124; + public byte StructgenPad0_125; + public byte StructgenPad0_126; + public byte StructgenPad0_127; + public byte StructgenPad0_128; + public byte StructgenPad0_129; + public byte StructgenPad0_130; + public byte StructgenPad0_131; + public byte StructgenPad0_132; + public byte StructgenPad0_133; + public byte StructgenPad0_134; + public byte StructgenPad0_135; + public byte StructgenPad0_136; + public byte StructgenPad0_137; + public byte StructgenPad0_138; + public byte StructgenPad0_139; + public byte StructgenPad0_140; + public byte StructgenPad0_141; + public byte StructgenPad0_142; + public byte StructgenPad0_143; + public byte StructgenPad0_144; + public byte StructgenPad0_145; + public byte StructgenPad0_146; + public byte StructgenPad0_147; + public byte StructgenPad0_148; + public byte StructgenPad0_149; + public byte StructgenPad0_150; + public byte StructgenPad0_151; + public byte StructgenPad0_152; + public byte StructgenPad0_153; + public byte StructgenPad0_154; + public byte StructgenPad0_155; + public byte StructgenPad0_156; + public byte StructgenPad0_157; + public byte StructgenPad0_158; + public byte StructgenPad0_159; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxHashPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxInterpolationPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMutexImplPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxReadWriteLockPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxProfileScopedPod + { + public unsafe PhysxPxProfilerCallbackPod* MCallback; + public unsafe byte* MEventName; + public unsafe void* MProfilerData; + public ulong MContextId; + public byte MDetached; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSListEntryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSListImplPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSyncImplPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRunnablePod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCounterFrequencyToTensOfNanosPod + { + public ulong MNumerator; + public ulong MDenominator; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTimePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxStridedDataPod + { + public uint Stride; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe void* Data; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBoundedDataPod + { + public uint Stride; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe void* Data; + public uint Count; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDebugPointPod + { + public PhysxPxVec3Pod Pos; + public uint Color; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDebugLinePod + { + public PhysxPxVec3Pod Pos0; + public uint Color0; + public PhysxPxVec3Pod Pos1; + public uint Color1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDebugTrianglePod + { + public PhysxPxVec3Pod Pos0; + public uint Color0; + public PhysxPxVec3Pod Pos1; + public uint Color1; + public PhysxPxVec3Pod Pos2; + public uint Color2; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDebugTextPod + { + public PhysxPxVec3Pod Position; + public float Size; + public uint Color; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe byte* String; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRenderBufferPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBasePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSerializationContextPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRepXSerializerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSerializerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxPhysicsPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCollectionPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxProcessPxBaseCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDeserializationContextPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSerializationRegistryPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTypeInfoPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMaterialPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxFEMSoftBodyMaterialPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxFEMClothMaterialPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxPBDMaterialPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxFLIPMaterialPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMPMMaterialPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCustomMaterialPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConvexMeshPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTriangleMeshPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBVH33TriangleMeshPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBVH34TriangleMeshPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTetrahedronMeshPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxHeightFieldPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxActorPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRigidActorPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRigidBodyPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRigidDynamicPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRigidStaticPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationLinkPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationJointReducedCoordinatePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationReducedCoordinatePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxAggregatePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConstraintPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxShapePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxPruningStructurePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxParticleSystemPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxPBDParticleSystemPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxFLIPParticleSystemPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMPMParticleSystemPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCustomParticleSystemPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSoftBodyPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxFEMClothPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxHairSystemPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxParticleBufferPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxParticleAndDiffuseBufferPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxParticleClothBufferPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxParticleRigidBufferPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRefCountedPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTolerancesScalePod + { + public float Length; + public float Speed; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxStringTablePod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMetaDataEntryPod + { + public unsafe byte* Type; + public unsafe byte* Name; + public uint Offset; + public uint Size; + public uint Count; + public uint OffsetSize; + public uint Flags; + public uint Alignment; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxInsertionCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBaseTaskPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public byte StructgenPad0_22; + public byte StructgenPad0_23; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTaskPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public byte StructgenPad0_22; + public byte StructgenPad0_23; + public byte StructgenPad0_24; + public byte StructgenPad0_25; + public byte StructgenPad0_26; + public byte StructgenPad0_27; + public byte StructgenPad0_28; + public byte StructgenPad0_29; + public byte StructgenPad0_30; + public byte StructgenPad0_31; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxLightCpuTaskPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public byte StructgenPad0_22; + public byte StructgenPad0_23; + public byte StructgenPad0_24; + public byte StructgenPad0_25; + public byte StructgenPad0_26; + public byte StructgenPad0_27; + public byte StructgenPad0_28; + public byte StructgenPad0_29; + public byte StructgenPad0_30; + public byte StructgenPad0_31; + public byte StructgenPad0_32; + public byte StructgenPad0_33; + public byte StructgenPad0_34; + public byte StructgenPad0_35; + public byte StructgenPad0_36; + public byte StructgenPad0_37; + public byte StructgenPad0_38; + public byte StructgenPad0_39; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCpuDispatcherPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTaskManagerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBoxGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + public PhysxPxVec3Pod HalfExtents; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBVHRaycastCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBVHOverlapCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBVHTraversalCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBVHPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGeomIndexPairPod + { + public uint Id0; + public uint Id1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCapsuleGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + public float Radius; + public float HalfHeight; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxHullPolygonPod + { + public float MPlane_0; + public float MPlane_1; + public float MPlane_2; + public float MPlane_3; + public ushort MNbVerts; + public ushort MIndexBase; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMeshScalePod + { + public PhysxPxVec3Pod Scale; + public PhysxPxQuatPod Rotation; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConvexMeshGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + public PhysxPxMeshScalePod Scale; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public unsafe PhysxPxConvexMeshPod* ConvexMesh; + public byte MeshFlags; + public byte StructgenPad2_0; + public byte StructgenPad2_1; + public byte StructgenPad2_2; + public byte StructgenPad2_3; + public byte StructgenPad2_4; + public byte StructgenPad2_5; + public byte StructgenPad2_6; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSphereGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + public float Radius; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxPlaneGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTriangleMeshGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + public PhysxPxMeshScalePod Scale; + public byte MeshFlags; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public unsafe PhysxPxTriangleMeshPod* TriangleMesh; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxHeightFieldGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + public unsafe PhysxPxHeightFieldPod* HeightField; + public float HeightScale; + public float RowScale; + public float ColumnScale; + public byte HeightFieldFlags; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxParticleSystemGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + public int MSolverType; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxHairSystemGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTetrahedronMeshGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + public unsafe PhysxPxTetrahedronMeshPod* TetrahedronMesh; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxQueryHitPod + { + public uint FaceIndex; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxLocationHitPod + { + public uint FaceIndex; + public ushort Flags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public PhysxPxVec3Pod Position; + public PhysxPxVec3Pod Normal; + public float Distance; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGeomRaycastHitPod + { + public uint FaceIndex; + public ushort Flags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public PhysxPxVec3Pod Position; + public PhysxPxVec3Pod Normal; + public float Distance; + public float U; + public float V; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGeomOverlapHitPod + { + public uint FaceIndex; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGeomSweepHitPod + { + public uint FaceIndex; + public ushort Flags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public PhysxPxVec3Pod Position; + public PhysxPxVec3Pod Normal; + public float Distance; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxQueryThreadContextPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactBufferPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRenderOutputPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMassPropertiesPod + { + public PhysxPxMat33Pod InertiaTensor; + public PhysxPxVec3Pod CenterOfMass; + public float Mass; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCustomGeometryTypePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCustomGeometryCallbacksPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCustomGeometryPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public float MTypePadding; + public unsafe PhysxPxCustomGeometryCallbacksPod* Callbacks; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGeometryHolderPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public byte StructgenPad0_22; + public byte StructgenPad0_23; + public byte StructgenPad0_24; + public byte StructgenPad0_25; + public byte StructgenPad0_26; + public byte StructgenPad0_27; + public byte StructgenPad0_28; + public byte StructgenPad0_29; + public byte StructgenPad0_30; + public byte StructgenPad0_31; + public byte StructgenPad0_32; + public byte StructgenPad0_33; + public byte StructgenPad0_34; + public byte StructgenPad0_35; + public byte StructgenPad0_36; + public byte StructgenPad0_37; + public byte StructgenPad0_38; + public byte StructgenPad0_39; + public byte StructgenPad0_40; + public byte StructgenPad0_41; + public byte StructgenPad0_42; + public byte StructgenPad0_43; + public byte StructgenPad0_44; + public byte StructgenPad0_45; + public byte StructgenPad0_46; + public byte StructgenPad0_47; + public byte StructgenPad0_48; + public byte StructgenPad0_49; + public byte StructgenPad0_50; + public byte StructgenPad0_51; + public byte StructgenPad0_52; + public byte StructgenPad0_53; + public byte StructgenPad0_54; + public byte StructgenPad0_55; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGeometryQueryPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxHeightFieldSamplePod + { + public short Height; + public PhysxPxBitAndBytePod MaterialIndex0; + public PhysxPxBitAndBytePod MaterialIndex1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxHeightFieldDescPod + { + public uint NbRows; + public uint NbColumns; + public int Format; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public PhysxPxStridedDataPod Samples; + public float ConvexEdgeThreshold; + public ushort Flags; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTrianglePod + { + public PhysxPxVec3Pod Verts_0; + public PhysxPxVec3Pod Verts_1; + public PhysxPxVec3Pod Verts_2; + + + public unsafe Span Verts + + { + get + { + fixed (PhysxPxVec3Pod* p = &this.Verts_0) + { + return new Span(p, 3); + } + } + } + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMeshQueryPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSimpleTriangleMeshPod + { + public PhysxPxBoundedDataPod Points; + public PhysxPxBoundedDataPod Triangles; + public ushort Flags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTrianglePaddedPod + { + public PhysxPxVec3Pod Verts_0; + public PhysxPxVec3Pod Verts_1; + public PhysxPxVec3Pod Verts_2; + public uint Padding; + + + public unsafe Span Verts + + { + get + { + fixed (PhysxPxVec3Pod* p = &this.Verts_0) + { + return new Span(p, 3); + } + } + } + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTetrahedronPod + { + public PhysxPxVec3Pod Verts_0; + public PhysxPxVec3Pod Verts_1; + public PhysxPxVec3Pod Verts_2; + public PhysxPxVec3Pod Verts_3; + + + public unsafe Span Verts + + { + get + { + fixed (PhysxPxVec3Pod* p = &this.Verts_0) + { + return new Span(p, 4); + } + } + } + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSoftBodyAuxDataPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSoftBodyMeshPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCollisionMeshMappingDataPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSoftBodyCollisionDataPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTetrahedronMeshDataPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSoftBodySimulationDataPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCollisionTetrahedronMeshDataPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSimulationTetrahedronMeshDataPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxScenePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSpringModifiersPod + { + public float Stiffness; + public float Damping; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRestitutionModifiersPod + { + public float Restitution; + public float VelocityThreshold; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Explicit)] + public partial struct PhysxPx1DConstraintModsPod + { + [FieldOffset(0)] + public PhysxPxSpringModifiersPod Spring; + [FieldOffset(0)] + public PhysxPxRestitutionModifiersPod Bounce; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPx1DConstraintPod + { + public PhysxPxVec3Pod Linear0; + public float GeometricError; + public PhysxPxVec3Pod Angular0; + public float VelocityTarget; + public PhysxPxVec3Pod Linear1; + public float MinImpulse; + public PhysxPxVec3Pod Angular1; + public float MaxImpulse; + public PhysxPx1DConstraintModsPod Mods; + public float ForInternalUse; + public ushort Flags; + public ushort SolveHint; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConstraintInvMassScalePod + { + public float Linear0; + public float Angular0; + public float Linear1; + public float Angular1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConstraintVisualizerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConstraintConnectorPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactPointPod + { + public PhysxPxVec3Pod Normal; + public float Separation; + public PhysxPxVec3Pod Point; + public float MaxImpulse; + public PhysxPxVec3Pod TargetVel; + public float StaticFriction; + public byte MaterialFlags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public uint InternalFaceIndex1; + public float DynamicFriction; + public float Restitution; + public float Damping; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public byte StructgenPad1_4; + public byte StructgenPad1_5; + public byte StructgenPad1_6; + public byte StructgenPad1_7; + public byte StructgenPad1_8; + public byte StructgenPad1_9; + public byte StructgenPad1_10; + public byte StructgenPad1_11; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTGSSolverBodyVelPod + { + public PhysxPxVec3Pod LinearVelocity; + public ushort NbStaticInteractions; + public ushort MaxDynamicPartition; + public PhysxPxVec3Pod AngularVelocity; + public uint PartitionMask; + public PhysxPxVec3Pod DeltaAngDt; + public float MaxAngVel; + public PhysxPxVec3Pod DeltaLinDt; + public ushort LockFlags; + public byte IsKinematic; + public byte Pad; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSolverBodyPod + { + public PhysxPxVec3Pod LinearVelocity; + public ushort MaxSolverNormalProgress; + public ushort MaxSolverFrictionProgress; + public PhysxPxVec3Pod AngularState; + public uint SolverProgress; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSolverBodyDataPod + { + public PhysxPxVec3Pod LinearVelocity; + public float InvMass; + public PhysxPxVec3Pod AngularVelocity; + public float ReportThreshold; + public PhysxPxMat33Pod SqrtInvInertia; + public float PenBiasClamp; + public uint NodeIndex; + public float MaxContactImpulse; + public PhysxPxTransformPod Body2World; + public ushort Pad; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConstraintBatchHeaderPod + { + public uint StartIndex; + public ushort Stride; + public ushort ConstraintType; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSolverConstraintDescPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public uint BodyADataIndex; + public uint BodyBDataIndex; + public uint LinkIndexA; + public uint LinkIndexB; + public unsafe byte* Constraint; + public unsafe void* WriteBack; + public ushort ProgressA; + public ushort ProgressB; + public ushort ConstraintLengthOver16; + public byte Padding_0; + public byte Padding_1; + public byte Padding_2; + public byte Padding_3; + public byte Padding_4; + public byte Padding_5; + public byte Padding_6; + public byte Padding_7; + public byte Padding_8; + public byte Padding_9; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSolverConstraintPrepDescBasePod + { + public PhysxPxConstraintInvMassScalePod InvMassScales; + public unsafe PhysxPxSolverConstraintDescPod* Desc; + public unsafe PhysxPxSolverBodyPod* Body0; + public unsafe PhysxPxSolverBodyPod* Body1; + public unsafe PhysxPxSolverBodyDataPod* Data0; + public unsafe PhysxPxSolverBodyDataPod* Data1; + public PhysxPxTransformPod BodyFrame0; + public PhysxPxTransformPod BodyFrame1; + public int BodyState0; + public int BodyState1; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSolverConstraintPrepDescPod + { + public PhysxPxConstraintInvMassScalePod InvMassScales; + public unsafe PhysxPxSolverConstraintDescPod* Desc; + public unsafe PhysxPxSolverBodyPod* Body0; + public unsafe PhysxPxSolverBodyPod* Body1; + public unsafe PhysxPxSolverBodyDataPod* Data0; + public unsafe PhysxPxSolverBodyDataPod* Data1; + public PhysxPxTransformPod BodyFrame0; + public PhysxPxTransformPod BodyFrame1; + public int BodyState0; + public int BodyState1; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public unsafe PhysxPx1DConstraintPod* Rows; + public uint NumRows; + public float LinBreakForce; + public float AngBreakForce; + public float MinResponseThreshold; + public unsafe void* Writeback; + public byte DisablePreprocessing; + public byte ImprovedSlerp; + public byte DriveLimitsAreForces; + public byte ExtendedLimits; + public byte DisableConstraint; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public PhysxPxVec3PaddedPod Body0WorldOffset; + public byte StructgenPad2_0; + public byte StructgenPad2_1; + public byte StructgenPad2_2; + public byte StructgenPad2_3; + public byte StructgenPad2_4; + public byte StructgenPad2_5; + public byte StructgenPad2_6; + public byte StructgenPad2_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSolverContactDescPod + { + public PhysxPxConstraintInvMassScalePod InvMassScales; + public unsafe PhysxPxSolverConstraintDescPod* Desc; + public unsafe PhysxPxSolverBodyPod* Body0; + public unsafe PhysxPxSolverBodyPod* Body1; + public unsafe PhysxPxSolverBodyDataPod* Data0; + public unsafe PhysxPxSolverBodyDataPod* Data1; + public PhysxPxTransformPod BodyFrame0; + public PhysxPxTransformPod BodyFrame1; + public int BodyState0; + public int BodyState1; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public unsafe void* ShapeInteraction; + public unsafe PhysxPxContactPointPod* Contacts; + public uint NumContacts; + public byte HasMaxImpulse; + public byte DisableStrongFriction; + public byte HasForceThresholds; + public byte StructgenPad1_0; + public float RestDistance; + public float MaxCCDSeparation; + public unsafe byte* FrictionPtr; + public byte FrictionCount; + public byte StructgenPad2_0; + public byte StructgenPad2_1; + public byte StructgenPad2_2; + public byte StructgenPad2_3; + public byte StructgenPad2_4; + public byte StructgenPad2_5; + public byte StructgenPad2_6; + public unsafe float* ContactForces; + public uint StartFrictionPatchIndex; + public uint NumFrictionPatches; + public uint StartContactPatchIndex; + public ushort NumContactPatches; + public ushort AxisConstraintCount; + public float OffsetSlop; + public byte StructgenPad3_0; + public byte StructgenPad3_1; + public byte StructgenPad3_2; + public byte StructgenPad3_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConstraintAllocatorPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationLimitPod + { + public float Low; + public float High; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationDrivePod + { + public float Stiffness; + public float Damping; + public float MaxForce; + public int DriveType; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTGSSolverBodyTxInertiaPod + { + public PhysxPxTransformPod DeltaBody2World; + public PhysxPxMat33Pod SqrtInvInertia; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTGSSolverBodyDataPod + { + public PhysxPxVec3Pod OriginalLinearVelocity; + public float MaxContactImpulse; + public PhysxPxVec3Pod OriginalAngularVelocity; + public float PenBiasClamp; + public float InvMass; + public uint NodeIndex; + public float ReportThreshold; + public uint Pad; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTGSSolverConstraintPrepDescBasePod + { + public PhysxPxConstraintInvMassScalePod InvMassScales; + public unsafe PhysxPxSolverConstraintDescPod* Desc; + public unsafe PhysxPxTGSSolverBodyVelPod* Body0; + public unsafe PhysxPxTGSSolverBodyVelPod* Body1; + public unsafe PhysxPxTGSSolverBodyTxInertiaPod* Body0TxI; + public unsafe PhysxPxTGSSolverBodyTxInertiaPod* Body1TxI; + public unsafe PhysxPxTGSSolverBodyDataPod* BodyData0; + public unsafe PhysxPxTGSSolverBodyDataPod* BodyData1; + public PhysxPxTransformPod BodyFrame0; + public PhysxPxTransformPod BodyFrame1; + public int BodyState0; + public int BodyState1; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTGSSolverConstraintPrepDescPod + { + public PhysxPxConstraintInvMassScalePod InvMassScales; + public unsafe PhysxPxSolverConstraintDescPod* Desc; + public unsafe PhysxPxTGSSolverBodyVelPod* Body0; + public unsafe PhysxPxTGSSolverBodyVelPod* Body1; + public unsafe PhysxPxTGSSolverBodyTxInertiaPod* Body0TxI; + public unsafe PhysxPxTGSSolverBodyTxInertiaPod* Body1TxI; + public unsafe PhysxPxTGSSolverBodyDataPod* BodyData0; + public unsafe PhysxPxTGSSolverBodyDataPod* BodyData1; + public PhysxPxTransformPod BodyFrame0; + public PhysxPxTransformPod BodyFrame1; + public int BodyState0; + public int BodyState1; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public unsafe PhysxPx1DConstraintPod* Rows; + public uint NumRows; + public float LinBreakForce; + public float AngBreakForce; + public float MinResponseThreshold; + public unsafe void* Writeback; + public byte DisablePreprocessing; + public byte ImprovedSlerp; + public byte DriveLimitsAreForces; + public byte ExtendedLimits; + public byte DisableConstraint; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public PhysxPxVec3PaddedPod Body0WorldOffset; + public PhysxPxVec3PaddedPod CA2w; + public PhysxPxVec3PaddedPod CB2w; + public byte StructgenPad2_0; + public byte StructgenPad2_1; + public byte StructgenPad2_2; + public byte StructgenPad2_3; + public byte StructgenPad2_4; + public byte StructgenPad2_5; + public byte StructgenPad2_6; + public byte StructgenPad2_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTGSSolverContactDescPod + { + public PhysxPxConstraintInvMassScalePod InvMassScales; + public unsafe PhysxPxSolverConstraintDescPod* Desc; + public unsafe PhysxPxTGSSolverBodyVelPod* Body0; + public unsafe PhysxPxTGSSolverBodyVelPod* Body1; + public unsafe PhysxPxTGSSolverBodyTxInertiaPod* Body0TxI; + public unsafe PhysxPxTGSSolverBodyTxInertiaPod* Body1TxI; + public unsafe PhysxPxTGSSolverBodyDataPod* BodyData0; + public unsafe PhysxPxTGSSolverBodyDataPod* BodyData1; + public PhysxPxTransformPod BodyFrame0; + public PhysxPxTransformPod BodyFrame1; + public int BodyState0; + public int BodyState1; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public unsafe void* ShapeInteraction; + public unsafe PhysxPxContactPointPod* Contacts; + public uint NumContacts; + public byte HasMaxImpulse; + public byte DisableStrongFriction; + public byte HasForceThresholds; + public byte StructgenPad1_0; + public float RestDistance; + public float MaxCCDSeparation; + public unsafe byte* FrictionPtr; + public byte FrictionCount; + public byte StructgenPad2_0; + public byte StructgenPad2_1; + public byte StructgenPad2_2; + public byte StructgenPad2_3; + public byte StructgenPad2_4; + public byte StructgenPad2_5; + public byte StructgenPad2_6; + public unsafe float* ContactForces; + public uint StartFrictionPatchIndex; + public uint NumFrictionPatches; + public uint StartContactPatchIndex; + public ushort NumContactPatches; + public ushort AxisConstraintCount; + public float MaxImpulse; + public float TorsionalPatchRadius; + public float MinTorsionalPatchRadius; + public float OffsetSlop; + public byte StructgenPad3_0; + public byte StructgenPad3_1; + public byte StructgenPad3_2; + public byte StructgenPad3_3; + public byte StructgenPad3_4; + public byte StructgenPad3_5; + public byte StructgenPad3_6; + public byte StructgenPad3_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationSpatialTendonPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationFixedTendonPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationTendonLimitPod + { + public float LowLimit; + public float HighLimit; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationAttachmentPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationTendonJointPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationTendonPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSpatialForcePod + { + public PhysxPxVec3Pod Force; + public float Pad0; + public PhysxPxVec3Pod Torque; + public float Pad1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSpatialVelocityPod + { + public PhysxPxVec3Pod Linear; + public float Pad0; + public PhysxPxVec3Pod Angular; + public float Pad1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationRootLinkDataPod + { + public PhysxPxTransformPod Transform; + public PhysxPxVec3Pod WorldLinVel; + public PhysxPxVec3Pod WorldAngVel; + public PhysxPxVec3Pod WorldLinAccel; + public PhysxPxVec3Pod WorldAngAccel; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationCachePod + { + public unsafe PhysxPxSpatialForcePod* ExternalForces; + public unsafe float* DenseJacobian; + public unsafe float* MassMatrix; + public unsafe float* JointVelocity; + public unsafe float* JointAcceleration; + public unsafe float* JointPosition; + public unsafe float* JointForce; + public unsafe float* JointSolverForces; + public unsafe PhysxPxSpatialVelocityPod* LinkVelocity; + public unsafe PhysxPxSpatialVelocityPod* LinkAcceleration; + public unsafe PhysxPxArticulationRootLinkDataPod* RootLinkData; + public unsafe PhysxPxSpatialForcePod* SensorForces; + public unsafe float* CoefficientMatrix; + public unsafe float* Lambda; + public unsafe void* ScratchMemory; + public unsafe void* ScratchAllocator; + public uint Version; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxArticulationSensorPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxFilterDataPod + { + public uint Word0; + public uint Word1; + public uint Word2; + public uint Word3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBaseMaterialPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxNodeIndexPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConeLimitedConstraintPod + { + public PhysxPxVec3Pod MAxis; + public float MAngle; + public float MLowLimit; + public float MHighLimit; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConeLimitParamsPod + { + public PhysxPxVec4Pod LowHighLimits; + public PhysxPxVec4Pod AxisAngle; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConstraintShaderTablePod + { + public unsafe void* SolverPrep; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public unsafe void* Visualize; + public int Flag; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMassModificationPropsPod + { + public float MInvMassScale0; + public float MInvInertiaScale0; + public float MInvMassScale1; + public float MInvInertiaScale1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactPatchPod + { + public PhysxPxMassModificationPropsPod MMassModification; + public PhysxPxVec3Pod Normal; + public float Restitution; + public float DynamicFriction; + public float StaticFriction; + public float Damping; + public ushort StartContactIndex; + public byte NbContacts; + public byte MaterialFlags; + public ushort InternalFlags; + public ushort MaterialIndex0; + public ushort MaterialIndex1; + public ushort Pad_0; + public ushort Pad_1; + public ushort Pad_2; + public ushort Pad_3; + public ushort Pad_4; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactPod + { + public PhysxPxVec3Pod Contact; + public float Separation; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxExtendedContactPod + { + public PhysxPxVec3Pod Contact; + public float Separation; + public PhysxPxVec3Pod TargetVelocity; + public float MaxImpulse; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxModifiableContactPod + { + public PhysxPxVec3Pod Contact; + public float Separation; + public PhysxPxVec3Pod TargetVelocity; + public float MaxImpulse; + public PhysxPxVec3Pod Normal; + public float Restitution; + public uint MaterialFlags; + public ushort MaterialIndex0; + public ushort MaterialIndex1; + public float StaticFriction; + public float DynamicFriction; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactStreamIteratorPod + { + public PhysxPxVec3Pod Zero; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe PhysxPxContactPatchPod* Patch; + public unsafe PhysxPxContactPod* Contact; + public unsafe uint* FaceIndice; + public uint TotalPatches; + public uint TotalContacts; + public uint NextContactIndex; + public uint NextPatchIndex; + public uint ContactPatchHeaderSize; + public uint ContactPointSize; + public int MStreamFormat; + public uint ForceNoResponse; + public byte PointStepped; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public uint HasFaceIndices; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGpuContactPairPod + { + public unsafe byte* ContactPatches; + public unsafe byte* ContactPoints; + public unsafe float* ContactForces; + public uint TransformCacheRef0; + public uint TransformCacheRef1; + public PhysxPxNodeIndexPod NodeIndex0; + public PhysxPxNodeIndexPod NodeIndex1; + public unsafe PhysxPxActorPod* Actor0; + public unsafe PhysxPxActorPod* Actor1; + public ushort NbContacts; + public ushort NbPatches; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactSetPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactModifyPairPod + { + public unsafe PhysxPxRigidActorPod* Actor_0; + public unsafe PhysxPxRigidActorPod* Actor_1; + public unsafe PhysxPxShapePod* Shape_0; + public unsafe PhysxPxShapePod* Shape_1; + public PhysxPxTransformPod Transform_0; + public PhysxPxTransformPod Transform_1; + public PhysxPxContactSetPod Contacts; + + + public unsafe Span Transform + + { + get + { + fixed (PhysxPxTransformPod* p = &this.Transform_0) + { + return new Span(p, 2); + } + } + } + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactModifyCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCCDContactModifyCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDeletionListenerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxFEMMaterialPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSimulationFilterCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxParticleRigidFilterPairPod + { + public ulong MID0; + public ulong MID1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxLockedDataPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGpuParticleBufferIndexPairPod + { + public uint SystemIndex; + public uint BufferIndex; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCudaContextManagerPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxParticleRigidAttachmentPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxParticleVolumePod + { + public PhysxPxBounds3Pod Bound; + public uint ParticleIndicesOffset; + public uint NumParticles; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDiffuseParticleParamsPod + { + public float Threshold; + public float Lifetime; + public float AirDrag; + public float BubbleDrag; + public float Buoyancy; + public float KineticEnergyWeight; + public float PressureWeight; + public float DivergenceWeight; + public float CollisionDecay; + public byte UseAccurateVelocity; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxParticleSpringPod + { + public uint Ind0; + public uint Ind1; + public float Length; + public float Stiffness; + public float Damping; + public float Pad; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxParticleMaterialPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSceneDescPod + { + public int StaticStructure; + public int DynamicStructure; + public uint DynamicTreeRebuildRateHint; + public int DynamicTreeSecondaryPruner; + public int StaticBVHBuildStrategy; + public int DynamicBVHBuildStrategy; + public uint StaticNbObjectsPerNode; + public uint DynamicNbObjectsPerNode; + public int SceneQueryUpdateMode; + public PhysxPxVec3Pod Gravity; + public unsafe PhysxPxSimulationEventCallbackPod* SimulationEventCallback; + public unsafe PhysxPxContactModifyCallbackPod* ContactModifyCallback; + public unsafe PhysxPxCCDContactModifyCallbackPod* CcdContactModifyCallback; + public unsafe void* FilterShaderData; + public uint FilterShaderDataSize; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe void* FilterShader; + public unsafe PhysxPxSimulationFilterCallbackPod* FilterCallback; + public int KineKineFilteringMode; + public int StaticKineFilteringMode; + public int BroadPhaseType; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public unsafe PhysxPxBroadPhaseCallbackPod* BroadPhaseCallback; + public PhysxPxSceneLimitsPod Limits; + public int FrictionType; + public int SolverType; + public float BounceThresholdVelocity; + public float FrictionOffsetThreshold; + public float FrictionCorrelationDistance; + public uint Flags; + public unsafe PhysxPxCpuDispatcherPod* CpuDispatcher; + public byte StructgenPad2_0; + public byte StructgenPad2_1; + public byte StructgenPad2_2; + public byte StructgenPad2_3; + public byte StructgenPad2_4; + public byte StructgenPad2_5; + public byte StructgenPad2_6; + public byte StructgenPad2_7; + public unsafe void* UserData; + public uint SolverBatchSize; + public uint SolverArticulationBatchSize; + public uint NbContactDataBlocks; + public uint MaxNbContactDataBlocks; + public float MaxBiasCoefficient; + public uint ContactReportStreamBufferSize; + public uint CcdMaxPasses; + public float CcdThreshold; + public float CcdMaxSeparation; + public float WakeCounterResetValue; + public PhysxPxBounds3Pod SanityBounds; + public PhysxPxgDynamicsMemoryConfigPod GpuDynamicsConfig; + public uint GpuMaxNumPartitions; + public uint GpuMaxNumStaticPartitions; + public uint GpuComputeVersion; + public uint ContactPairSlabSize; + public unsafe PhysxPxSceneQuerySystemPod* SceneQuerySystem; + public byte StructgenPad3_0; + public byte StructgenPad3_1; + public byte StructgenPad3_2; + public byte StructgenPad3_3; + public byte StructgenPad3_4; + public byte StructgenPad3_5; + public byte StructgenPad3_6; + public byte StructgenPad3_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxPvdPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxOmniPvdPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxActorShapePod + { + public unsafe PhysxPxRigidActorPod* Actor; + public unsafe PhysxPxShapePod* Shape; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRaycastHitPod + { + public uint FaceIndex; + public ushort Flags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public PhysxPxVec3Pod Position; + public PhysxPxVec3Pod Normal; + public float Distance; + public float U; + public float V; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public unsafe PhysxPxRigidActorPod* Actor; + public unsafe PhysxPxShapePod* Shape; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxOverlapHitPod + { + public uint FaceIndex; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe PhysxPxRigidActorPod* Actor; + public unsafe PhysxPxShapePod* Shape; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSweepHitPod + { + public uint FaceIndex; + public ushort Flags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public PhysxPxVec3Pod Position; + public PhysxPxVec3Pod Normal; + public float Distance; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public unsafe PhysxPxRigidActorPod* Actor; + public unsafe PhysxPxShapePod* Shape; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRaycastCallbackPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public PhysxPxRaycastHitPod Block; + public byte HasBlock; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public byte StructgenPad1_4; + public byte StructgenPad1_5; + public byte StructgenPad1_6; + public unsafe PhysxPxRaycastHitPod* Touches; + public uint MaxNbTouches; + public uint NbTouches; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxOverlapCallbackPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public PhysxPxOverlapHitPod Block; + public byte HasBlock; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public byte StructgenPad1_4; + public byte StructgenPad1_5; + public byte StructgenPad1_6; + public unsafe PhysxPxOverlapHitPod* Touches; + public uint MaxNbTouches; + public uint NbTouches; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSweepCallbackPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public PhysxPxSweepHitPod Block; + public byte HasBlock; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public byte StructgenPad1_4; + public byte StructgenPad1_5; + public byte StructgenPad1_6; + public unsafe PhysxPxSweepHitPod* Touches; + public uint MaxNbTouches; + public uint NbTouches; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRaycastBufferPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public PhysxPxRaycastHitPod Block; + public byte HasBlock; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public byte StructgenPad1_4; + public byte StructgenPad1_5; + public byte StructgenPad1_6; + public unsafe PhysxPxRaycastHitPod* Touches; + public uint MaxNbTouches; + public uint NbTouches; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxOverlapBufferPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public PhysxPxOverlapHitPod Block; + public byte HasBlock; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public byte StructgenPad1_4; + public byte StructgenPad1_5; + public byte StructgenPad1_6; + public unsafe PhysxPxOverlapHitPod* Touches; + public uint MaxNbTouches; + public uint NbTouches; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSweepBufferPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public PhysxPxSweepHitPod Block; + public byte HasBlock; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public byte StructgenPad1_4; + public byte StructgenPad1_5; + public byte StructgenPad1_6; + public unsafe PhysxPxSweepHitPod* Touches; + public uint MaxNbTouches; + public uint NbTouches; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxQueryCachePod + { + public unsafe PhysxPxShapePod* Shape; + public unsafe PhysxPxRigidActorPod* Actor; + public uint FaceIndex; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxQueryFilterDataPod + { + public PhysxPxFilterDataPod Data; + public ushort Flags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxQueryFilterCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSceneQuerySystemPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSceneQueryDescPod + { + public int StaticStructure; + public int DynamicStructure; + public uint DynamicTreeRebuildRateHint; + public int DynamicTreeSecondaryPruner; + public int StaticBVHBuildStrategy; + public int DynamicBVHBuildStrategy; + public uint StaticNbObjectsPerNode; + public uint DynamicNbObjectsPerNode; + public int SceneQueryUpdateMode; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSceneQuerySystemBasePod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSceneSQSystemPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadPhaseRegionPod + { + public PhysxPxBounds3Pod MBounds; + public unsafe void* MUserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadPhaseRegionInfoPod + { + public PhysxPxBroadPhaseRegionPod MRegion; + public uint MNbStaticObjects; + public uint MNbDynamicObjects; + public byte MActive; + public byte MOverlap; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadPhaseCapsPod + { + public uint MMaxNbRegions; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadPhaseDescPod + { + public int MType; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public ulong MContextID; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public byte StructgenPad1_4; + public byte StructgenPad1_5; + public byte StructgenPad1_6; + public byte StructgenPad1_7; + public uint MFoundLostPairsCapacity; + public byte MDiscardStaticVsKinematic; + public byte MDiscardKinematicVsKinematic; + public byte StructgenPad2_0; + public byte StructgenPad2_1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadPhaseUpdateDataPod + { + public unsafe uint* MCreated; + public uint MNbCreated; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe uint* MUpdated; + public uint MNbUpdated; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public unsafe uint* MRemoved; + public uint MNbRemoved; + public byte StructgenPad2_0; + public byte StructgenPad2_1; + public byte StructgenPad2_2; + public byte StructgenPad2_3; + public unsafe PhysxPxBounds3Pod* MBounds; + public unsafe uint* MGroups; + public unsafe float* MDistances; + public uint MCapacity; + public byte StructgenPad3_0; + public byte StructgenPad3_1; + public byte StructgenPad3_2; + public byte StructgenPad3_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadPhasePairPod + { + public uint MID0; + public uint MID1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadPhaseResultsPod + { + public uint MNbCreatedPairs; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe PhysxPxBroadPhasePairPod* MCreatedPairs; + public uint MNbDeletedPairs; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public unsafe PhysxPxBroadPhasePairPod* MDeletedPairs; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadPhaseRegionsPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadPhasePod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxAABBManagerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadPhaseCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSimulationEventCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSceneLimitsPod + { + public uint MaxNbActors; + public uint MaxNbBodies; + public uint MaxNbStaticShapes; + public uint MaxNbDynamicShapes; + public uint MaxNbAggregates; + public uint MaxNbConstraints; + public uint MaxNbRegions; + public uint MaxNbBroadPhaseOverlaps; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxgDynamicsMemoryConfigPod + { + public uint TempBufferCapacity; + public uint MaxRigidContactCount; + public uint MaxRigidPatchCount; + public uint HeapCapacity; + public uint FoundLostPairsCapacity; + public uint FoundLostAggregatePairsCapacity; + public uint TotalAggregatePairsCapacity; + public uint MaxSoftBodyContacts; + public uint MaxFemClothContacts; + public uint MaxParticleContacts; + public uint CollisionStackSize; + public uint MaxHairContacts; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSimulationStatisticsPod + { + public uint NbActiveConstraints; + public uint NbActiveDynamicBodies; + public uint NbActiveKinematicBodies; + public uint NbStaticBodies; + public uint NbDynamicBodies; + public uint NbKinematicBodies; + public uint NbShapes_0; + public uint NbShapes_1; + public uint NbShapes_2; + public uint NbShapes_3; + public uint NbShapes_4; + public uint NbShapes_5; + public uint NbShapes_6; + public uint NbShapes_7; + public uint NbShapes_8; + public uint NbShapes_9; + public uint NbShapes_10; + public uint NbAggregates; + public uint NbArticulations; + public uint NbAxisSolverConstraints; + public uint CompressedContactSize; + public uint RequiredContactConstraintMemory; + public uint PeakConstraintMemory; + public uint NbDiscreteContactPairsTotal; + public uint NbDiscreteContactPairsWithCacheHits; + public uint NbDiscreteContactPairsWithContacts; + public uint NbNewPairs; + public uint NbLostPairs; + public uint NbNewTouches; + public uint NbLostTouches; + public uint NbPartitions; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public ulong GpuMemParticles; + public ulong GpuMemSoftBodies; + public ulong GpuMemFEMCloths; + public ulong GpuMemHairSystems; + public ulong GpuMemHeap; + public ulong GpuMemHeapBroadPhase; + public ulong GpuMemHeapNarrowPhase; + public ulong GpuMemHeapSolver; + public ulong GpuMemHeapArticulation; + public ulong GpuMemHeapSimulation; + public ulong GpuMemHeapSimulationArticulation; + public ulong GpuMemHeapSimulationParticles; + public ulong GpuMemHeapSimulationSoftBody; + public ulong GpuMemHeapSimulationFEMCloth; + public ulong GpuMemHeapSimulationHairSystem; + public ulong GpuMemHeapParticles; + public ulong GpuMemHeapSoftBodies; + public ulong GpuMemHeapFEMCloths; + public ulong GpuMemHeapHairSystems; + public ulong GpuMemHeapOther; + public uint NbBroadPhaseAdds; + public uint NbBroadPhaseRemoves; + public unsafe uint* NbDiscreteContactPairs_0; + public unsafe uint* NbDiscreteContactPairs_1; + public unsafe uint* NbDiscreteContactPairs_2; + public unsafe uint* NbDiscreteContactPairs_3; + public unsafe uint* NbDiscreteContactPairs_4; + public unsafe uint* NbDiscreteContactPairs_5; + public unsafe uint* NbDiscreteContactPairs_6; + public unsafe uint* NbDiscreteContactPairs_7; + public unsafe uint* NbDiscreteContactPairs_8; + public unsafe uint* NbDiscreteContactPairs_9; + public unsafe uint* NbDiscreteContactPairs_10; + public unsafe uint* NbCCDPairs_0; + public unsafe uint* NbCCDPairs_1; + public unsafe uint* NbCCDPairs_2; + public unsafe uint* NbCCDPairs_3; + public unsafe uint* NbCCDPairs_4; + public unsafe uint* NbCCDPairs_5; + public unsafe uint* NbCCDPairs_6; + public unsafe uint* NbCCDPairs_7; + public unsafe uint* NbCCDPairs_8; + public unsafe uint* NbCCDPairs_9; + public unsafe uint* NbCCDPairs_10; + public unsafe uint* NbModifiedContactPairs_0; + public unsafe uint* NbModifiedContactPairs_1; + public unsafe uint* NbModifiedContactPairs_2; + public unsafe uint* NbModifiedContactPairs_3; + public unsafe uint* NbModifiedContactPairs_4; + public unsafe uint* NbModifiedContactPairs_5; + public unsafe uint* NbModifiedContactPairs_6; + public unsafe uint* NbModifiedContactPairs_7; + public unsafe uint* NbModifiedContactPairs_8; + public unsafe uint* NbModifiedContactPairs_9; + public unsafe uint* NbModifiedContactPairs_10; + public unsafe uint* NbTriggerPairs_0; + public unsafe uint* NbTriggerPairs_1; + public unsafe uint* NbTriggerPairs_2; + public unsafe uint* NbTriggerPairs_3; + public unsafe uint* NbTriggerPairs_4; + public unsafe uint* NbTriggerPairs_5; + public unsafe uint* NbTriggerPairs_6; + public unsafe uint* NbTriggerPairs_7; + public unsafe uint* NbTriggerPairs_8; + public unsafe uint* NbTriggerPairs_9; + public unsafe uint* NbTriggerPairs_10; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGpuBodyDataPod + { + public PhysxPxQuatPod Quat; + public PhysxPxVec4Pod Pos; + public PhysxPxVec4Pod LinVel; + public PhysxPxVec4Pod AngVel; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGpuActorPairPod + { + public uint SrcIndex; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public PhysxPxNodeIndexPod NodeIndex; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxIndexDataPairPod + { + public uint Index; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe void* Data; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxPvdSceneClientPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactPairHeaderPod + { + public unsafe PhysxPxActorPod* Actors_0; + public unsafe PhysxPxActorPod* Actors_1; + public unsafe byte* ExtraDataStream; + public ushort ExtraDataStreamSize; + public ushort Flags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe PhysxPxContactPairPod* Pairs; + public uint NbPairs; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDominanceGroupPairPod + { + public byte Dominance0; + public byte Dominance1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSceneReadLockPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSceneWriteLockPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactPairExtraDataItemPod + { + public byte Type; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactPairVelocityPod + { + public byte Type; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public PhysxPxVec3Pod LinearVelocity_0; + public PhysxPxVec3Pod LinearVelocity_1; + public PhysxPxVec3Pod AngularVelocity_0; + public PhysxPxVec3Pod AngularVelocity_1; + + + public unsafe Span LinearVelocity + + { + get + { + fixed (PhysxPxVec3Pod* p = &this.LinearVelocity_0) + { + return new Span(p, 2); + } + } + } + public unsafe Span AngularVelocity + + { + get + { + fixed (PhysxPxVec3Pod* p = &this.AngularVelocity_0) + { + return new Span(p, 2); + } + } + } + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactPairPosePod + { + public byte Type; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public PhysxPxTransformPod GlobalPose_0; + public PhysxPxTransformPod GlobalPose_1; + + + public unsafe Span GlobalPose + + { + get + { + fixed (PhysxPxTransformPod* p = &this.GlobalPose_0) + { + return new Span(p, 2); + } + } + } + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactPairIndexPod + { + public byte Type; + public byte StructgenPad0_0; + public ushort Index; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactPairExtraDataIteratorPod + { + public unsafe byte* CurrPtr; + public unsafe byte* EndPtr; + public unsafe PhysxPxContactPairVelocityPod* PreSolverVelocity; + public unsafe PhysxPxContactPairVelocityPod* PostSolverVelocity; + public unsafe PhysxPxContactPairPosePod* EventPose; + public uint ContactPairIndex; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactPairPod + { + public unsafe PhysxPxShapePod* Shapes_0; + public unsafe PhysxPxShapePod* Shapes_1; + public unsafe byte* ContactPatches; + public unsafe byte* ContactPoints; + public unsafe float* ContactImpulses; + public uint RequiredBufferSize; + public byte ContactCount; + public byte PatchCount; + public ushort ContactStreamSize; + public ushort Flags; + public ushort Events; + public uint InternalData_0; + public uint InternalData_1; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactPairPointPod + { + public PhysxPxVec3Pod Position; + public float Separation; + public PhysxPxVec3Pod Normal; + public uint InternalFaceIndex0; + public PhysxPxVec3Pod Impulse; + public uint InternalFaceIndex1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTriggerPairPod + { + public unsafe PhysxPxShapePod* TriggerShape; + public unsafe PhysxPxActorPod* TriggerActor; + public unsafe PhysxPxShapePod* OtherShape; + public unsafe PhysxPxActorPod* OtherActor; + public int Status; + public byte Flags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConstraintInfoPod + { + public unsafe PhysxPxConstraintPod* Constraint; + public unsafe void* ExternalReference; + public uint Type; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxFEMParametersPod + { + public float VelocityDamping; + public float SettlingThreshold; + public float SleepThreshold; + public float SleepDamping; + public float SelfCollisionFilterDistance; + public float SelfCollisionStressTolerance; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxExtendedVec3Pod + { + public double X; + public double Y; + public double Z; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllerManagerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxObstaclePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public unsafe void* MUserData; + public PhysxPxExtendedVec3Pod MPos; + public PhysxPxQuatPod MRot; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBoxObstaclePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public unsafe void* MUserData; + public PhysxPxExtendedVec3Pod MPos; + public PhysxPxQuatPod MRot; + public PhysxPxVec3Pod MHalfExtents; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCapsuleObstaclePod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public unsafe void* MUserData; + public PhysxPxExtendedVec3Pod MPos; + public PhysxPxQuatPod MRot; + public float MHalfHeight; + public float MRadius; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxObstacleContextPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllerBehaviorCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllerStatePod + { + public PhysxPxVec3Pod DeltaXP; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe PhysxPxShapePod* TouchedShape; + public unsafe PhysxPxRigidActorPod* TouchedActor; + public uint TouchedObstacleHandle; + public uint CollisionFlags; + public byte StandOnAnotherCCT; + public byte StandOnObstacle; + public byte IsMovingUp; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public byte StructgenPad1_4; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllerStatsPod + { + public ushort NbIterations; + public ushort NbFullUpdates; + public ushort NbPartialUpdates; + public ushort NbTessellation; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllerHitPod + { + public unsafe PhysxPxControllerPod* Controller; + public PhysxPxExtendedVec3Pod WorldPos; + public PhysxPxVec3Pod WorldNormal; + public PhysxPxVec3Pod Dir; + public float Length; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllerShapeHitPod + { + public unsafe PhysxPxControllerPod* Controller; + public PhysxPxExtendedVec3Pod WorldPos; + public PhysxPxVec3Pod WorldNormal; + public PhysxPxVec3Pod Dir; + public float Length; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe PhysxPxShapePod* Shape; + public unsafe PhysxPxRigidActorPod* Actor; + public uint TriangleIndex; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllersHitPod + { + public unsafe PhysxPxControllerPod* Controller; + public PhysxPxExtendedVec3Pod WorldPos; + public PhysxPxVec3Pod WorldNormal; + public PhysxPxVec3Pod Dir; + public float Length; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe PhysxPxControllerPod* Other; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllerObstacleHitPod + { + public unsafe PhysxPxControllerPod* Controller; + public PhysxPxExtendedVec3Pod WorldPos; + public PhysxPxVec3Pod WorldNormal; + public PhysxPxVec3Pod Dir; + public float Length; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxUserControllerHitReportPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllerFilterCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllerFiltersPod + { + public unsafe PhysxPxFilterDataPod* MFilterData; + public unsafe PhysxPxQueryFilterCallbackPod* MFilterCallback; + public ushort MFilterFlags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public unsafe PhysxPxControllerFilterCallbackPod* MCCTFilterCallback; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxControllerDescPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public PhysxPxExtendedVec3Pod Position; + public PhysxPxVec3Pod UpDirection; + public float SlopeLimit; + public float InvisibleWallHeight; + public float MaxJumpHeight; + public float ContactOffset; + public float StepOffset; + public float Density; + public float ScaleCoeff; + public float VolumeGrowth; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public unsafe PhysxPxUserControllerHitReportPod* ReportCallback; + public unsafe PhysxPxControllerBehaviorCallbackPod* BehaviorCallback; + public int NonWalkableMode; + public byte StructgenPad2_0; + public byte StructgenPad2_1; + public byte StructgenPad2_2; + public byte StructgenPad2_3; + public unsafe PhysxPxMaterialPod* Material; + public byte RegisterDeletionListener; + public byte ClientID; + public byte StructgenPad3_0; + public byte StructgenPad3_1; + public byte StructgenPad3_2; + public byte StructgenPad3_3; + public byte StructgenPad3_4; + public byte StructgenPad3_5; + public unsafe void* UserData; + public byte StructgenPad4_0; + public byte StructgenPad4_1; + public byte StructgenPad4_2; + public byte StructgenPad4_3; + public byte StructgenPad4_4; + public byte StructgenPad4_5; + public byte StructgenPad4_6; + public byte StructgenPad4_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBoxControllerDescPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public PhysxPxExtendedVec3Pod Position; + public PhysxPxVec3Pod UpDirection; + public float SlopeLimit; + public float InvisibleWallHeight; + public float MaxJumpHeight; + public float ContactOffset; + public float StepOffset; + public float Density; + public float ScaleCoeff; + public float VolumeGrowth; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public unsafe PhysxPxUserControllerHitReportPod* ReportCallback; + public unsafe PhysxPxControllerBehaviorCallbackPod* BehaviorCallback; + public int NonWalkableMode; + public byte StructgenPad2_0; + public byte StructgenPad2_1; + public byte StructgenPad2_2; + public byte StructgenPad2_3; + public unsafe PhysxPxMaterialPod* Material; + public byte RegisterDeletionListener; + public byte ClientID; + public byte StructgenPad3_0; + public byte StructgenPad3_1; + public byte StructgenPad3_2; + public byte StructgenPad3_3; + public byte StructgenPad3_4; + public byte StructgenPad3_5; + public unsafe void* UserData; + public byte StructgenPad4_0; + public byte StructgenPad4_1; + public byte StructgenPad4_2; + public byte StructgenPad4_3; + public byte StructgenPad4_4; + public byte StructgenPad4_5; + public byte StructgenPad4_6; + public byte StructgenPad4_7; + public float HalfHeight; + public float HalfSideExtent; + public float HalfForwardExtent; + public byte StructgenPad5_0; + public byte StructgenPad5_1; + public byte StructgenPad5_2; + public byte StructgenPad5_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBoxControllerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCapsuleControllerDescPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public PhysxPxExtendedVec3Pod Position; + public PhysxPxVec3Pod UpDirection; + public float SlopeLimit; + public float InvisibleWallHeight; + public float MaxJumpHeight; + public float ContactOffset; + public float StepOffset; + public float Density; + public float ScaleCoeff; + public float VolumeGrowth; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + public unsafe PhysxPxUserControllerHitReportPod* ReportCallback; + public unsafe PhysxPxControllerBehaviorCallbackPod* BehaviorCallback; + public int NonWalkableMode; + public byte StructgenPad2_0; + public byte StructgenPad2_1; + public byte StructgenPad2_2; + public byte StructgenPad2_3; + public unsafe PhysxPxMaterialPod* Material; + public byte RegisterDeletionListener; + public byte ClientID; + public byte StructgenPad3_0; + public byte StructgenPad3_1; + public byte StructgenPad3_2; + public byte StructgenPad3_3; + public byte StructgenPad3_4; + public byte StructgenPad3_5; + public unsafe void* UserData; + public byte StructgenPad4_0; + public byte StructgenPad4_1; + public byte StructgenPad4_2; + public byte StructgenPad4_3; + public byte StructgenPad4_4; + public byte StructgenPad4_5; + public byte StructgenPad4_6; + public byte StructgenPad4_7; + public float Radius; + public float Height; + public int ClimbingMode; + public byte StructgenPad5_0; + public byte StructgenPad5_1; + public byte StructgenPad5_2; + public byte StructgenPad5_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCapsuleControllerPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDim3Pod + { + public uint X; + public uint Y; + public uint Z; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSDFDescPod + { + public PhysxPxBoundedDataPod Sdf; + public PhysxPxDim3Pod Dims; + public PhysxPxVec3Pod MeshLower; + public float Spacing; + public uint SubgridSize; + public int BitsPerSubgridPixel; + public PhysxPxDim3Pod SdfSubgrids3DTexBlockDim; + public PhysxPxBoundedDataPod SdfSubgrids; + public PhysxPxBoundedDataPod SdfStartSlots; + public float SubgridsMinSdfValue; + public float SubgridsMaxSdfValue; + public PhysxPxBounds3Pod SdfBounds; + public float NarrowBandThicknessRelativeToSdfBoundsDiagonal; + public uint NumThreadsForSdfConstruction; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxConvexMeshDescPod + { + public PhysxPxBoundedDataPod Points; + public PhysxPxBoundedDataPod Polygons; + public PhysxPxBoundedDataPod Indices; + public ushort Flags; + public ushort VertexLimit; + public ushort PolygonLimit; + public ushort QuantizedCount; + public unsafe PhysxPxSDFDescPod* SdfDesc; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTriangleMeshDescPod + { + public PhysxPxBoundedDataPod Points; + public PhysxPxBoundedDataPod Triangles; + public ushort Flags; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public unsafe PhysxPxSDFDescPod* SdfDesc; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTetrahedronMeshDescPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public PhysxPxBoundedDataPod Points; + public PhysxPxBoundedDataPod Tetrahedrons; + public ushort Flags; + public ushort TetsPerElement; + public byte StructgenPad1_0; + public byte StructgenPad1_1; + public byte StructgenPad1_2; + public byte StructgenPad1_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSoftBodySimulationDataDescPod + { + public PhysxPxBoundedDataPod VertexToTet; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBVH34MidphaseDescPod + { + public uint NumPrimsPerLeaf; + public int BuildStrategy; + public byte Quantized; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMidphaseDescPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBVHDescPod + { + public PhysxPxBoundedDataPod Bounds; + public float Enlargement; + public uint NumPrimsPerLeaf; + public int BuildStrategy; + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCookingParamsPod + { + public float AreaTestEpsilon; + public float PlaneTolerance; + public int ConvexMeshCookingType; + public byte SuppressTriangleMeshRemapTable; + public byte BuildTriangleAdjacencies; + public byte BuildGPUData; + public byte StructgenPad0_0; + public PhysxPxTolerancesScalePod Scale; + public uint MeshPreprocessParams; + public float MeshWeldTolerance; + public PhysxPxMidphaseDescPod MidphaseDesc; + public uint GaussMapLimit; + public float MaxWeightRatioInTet; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDefaultMemoryOutputStreamPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public byte StructgenPad0_22; + public byte StructgenPad0_23; + public byte StructgenPad0_24; + public byte StructgenPad0_25; + public byte StructgenPad0_26; + public byte StructgenPad0_27; + public byte StructgenPad0_28; + public byte StructgenPad0_29; + public byte StructgenPad0_30; + public byte StructgenPad0_31; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDefaultMemoryInputDataPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public byte StructgenPad0_22; + public byte StructgenPad0_23; + public byte StructgenPad0_24; + public byte StructgenPad0_25; + public byte StructgenPad0_26; + public byte StructgenPad0_27; + public byte StructgenPad0_28; + public byte StructgenPad0_29; + public byte StructgenPad0_30; + public byte StructgenPad0_31; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDefaultFileOutputStreamPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDefaultFileInputDataPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public byte StructgenPad0_22; + public byte StructgenPad0_23; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDefaultAllocatorPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxJointPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRackAndPinionJointPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGearJointPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxD6JointPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDistanceJointPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxContactJointPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxFixedJointPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxPrismaticJointPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRevoluteJointPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSphericalJointPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public unsafe void* UserData; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSpringPod + { + public float Stiffness; + public float Damping; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxJacobianRowPod + { + public PhysxPxVec3Pod Linear0; + public PhysxPxVec3Pod Linear1; + public PhysxPxVec3Pod Angular0; + public PhysxPxVec3Pod Angular1; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxJointLimitParametersPod + { + public float Restitution; + public float BounceThreshold; + public float Stiffness; + public float Damping; + public float ContactDistanceDeprecated; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxJointLinearLimitPod + { + public float Restitution; + public float BounceThreshold; + public float Stiffness; + public float Damping; + public float ContactDistanceDeprecated; + public float Value; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxJointLinearLimitPairPod + { + public float Restitution; + public float BounceThreshold; + public float Stiffness; + public float Damping; + public float ContactDistanceDeprecated; + public float Upper; + public float Lower; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxJointAngularLimitPairPod + { + public float Restitution; + public float BounceThreshold; + public float Stiffness; + public float Damping; + public float ContactDistanceDeprecated; + public float Upper; + public float Lower; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxJointLimitConePod + { + public float Restitution; + public float BounceThreshold; + public float Stiffness; + public float Damping; + public float ContactDistanceDeprecated; + public float YAngle; + public float ZAngle; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxJointLimitPyramidPod + { + public float Restitution; + public float BounceThreshold; + public float Stiffness; + public float Damping; + public float ContactDistanceDeprecated; + public float YAngleMin; + public float YAngleMax; + public float ZAngleMin; + public float ZAngleMax; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxD6JointDrivePod + { + public float Stiffness; + public float Damping; + public float ForceLimit; + public uint Flags; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxGroupsMaskPod + { + public ushort Bits0; + public ushort Bits1; + public ushort Bits2; + public ushort Bits3; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDefaultErrorCallbackPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRigidActorExtPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRigidBodyExtPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxShapeExtPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxMeshOverlapUtilPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public byte StructgenPad0_22; + public byte StructgenPad0_23; + public byte StructgenPad0_24; + public byte StructgenPad0_25; + public byte StructgenPad0_26; + public byte StructgenPad0_27; + public byte StructgenPad0_28; + public byte StructgenPad0_29; + public byte StructgenPad0_30; + public byte StructgenPad0_31; + public byte StructgenPad0_32; + public byte StructgenPad0_33; + public byte StructgenPad0_34; + public byte StructgenPad0_35; + public byte StructgenPad0_36; + public byte StructgenPad0_37; + public byte StructgenPad0_38; + public byte StructgenPad0_39; + public byte StructgenPad0_40; + public byte StructgenPad0_41; + public byte StructgenPad0_42; + public byte StructgenPad0_43; + public byte StructgenPad0_44; + public byte StructgenPad0_45; + public byte StructgenPad0_46; + public byte StructgenPad0_47; + public byte StructgenPad0_48; + public byte StructgenPad0_49; + public byte StructgenPad0_50; + public byte StructgenPad0_51; + public byte StructgenPad0_52; + public byte StructgenPad0_53; + public byte StructgenPad0_54; + public byte StructgenPad0_55; + public byte StructgenPad0_56; + public byte StructgenPad0_57; + public byte StructgenPad0_58; + public byte StructgenPad0_59; + public byte StructgenPad0_60; + public byte StructgenPad0_61; + public byte StructgenPad0_62; + public byte StructgenPad0_63; + public byte StructgenPad0_64; + public byte StructgenPad0_65; + public byte StructgenPad0_66; + public byte StructgenPad0_67; + public byte StructgenPad0_68; + public byte StructgenPad0_69; + public byte StructgenPad0_70; + public byte StructgenPad0_71; + public byte StructgenPad0_72; + public byte StructgenPad0_73; + public byte StructgenPad0_74; + public byte StructgenPad0_75; + public byte StructgenPad0_76; + public byte StructgenPad0_77; + public byte StructgenPad0_78; + public byte StructgenPad0_79; + public byte StructgenPad0_80; + public byte StructgenPad0_81; + public byte StructgenPad0_82; + public byte StructgenPad0_83; + public byte StructgenPad0_84; + public byte StructgenPad0_85; + public byte StructgenPad0_86; + public byte StructgenPad0_87; + public byte StructgenPad0_88; + public byte StructgenPad0_89; + public byte StructgenPad0_90; + public byte StructgenPad0_91; + public byte StructgenPad0_92; + public byte StructgenPad0_93; + public byte StructgenPad0_94; + public byte StructgenPad0_95; + public byte StructgenPad0_96; + public byte StructgenPad0_97; + public byte StructgenPad0_98; + public byte StructgenPad0_99; + public byte StructgenPad0_100; + public byte StructgenPad0_101; + public byte StructgenPad0_102; + public byte StructgenPad0_103; + public byte StructgenPad0_104; + public byte StructgenPad0_105; + public byte StructgenPad0_106; + public byte StructgenPad0_107; + public byte StructgenPad0_108; + public byte StructgenPad0_109; + public byte StructgenPad0_110; + public byte StructgenPad0_111; + public byte StructgenPad0_112; + public byte StructgenPad0_113; + public byte StructgenPad0_114; + public byte StructgenPad0_115; + public byte StructgenPad0_116; + public byte StructgenPad0_117; + public byte StructgenPad0_118; + public byte StructgenPad0_119; + public byte StructgenPad0_120; + public byte StructgenPad0_121; + public byte StructgenPad0_122; + public byte StructgenPad0_123; + public byte StructgenPad0_124; + public byte StructgenPad0_125; + public byte StructgenPad0_126; + public byte StructgenPad0_127; + public byte StructgenPad0_128; + public byte StructgenPad0_129; + public byte StructgenPad0_130; + public byte StructgenPad0_131; + public byte StructgenPad0_132; + public byte StructgenPad0_133; + public byte StructgenPad0_134; + public byte StructgenPad0_135; + public byte StructgenPad0_136; + public byte StructgenPad0_137; + public byte StructgenPad0_138; + public byte StructgenPad0_139; + public byte StructgenPad0_140; + public byte StructgenPad0_141; + public byte StructgenPad0_142; + public byte StructgenPad0_143; + public byte StructgenPad0_144; + public byte StructgenPad0_145; + public byte StructgenPad0_146; + public byte StructgenPad0_147; + public byte StructgenPad0_148; + public byte StructgenPad0_149; + public byte StructgenPad0_150; + public byte StructgenPad0_151; + public byte StructgenPad0_152; + public byte StructgenPad0_153; + public byte StructgenPad0_154; + public byte StructgenPad0_155; + public byte StructgenPad0_156; + public byte StructgenPad0_157; + public byte StructgenPad0_158; + public byte StructgenPad0_159; + public byte StructgenPad0_160; + public byte StructgenPad0_161; + public byte StructgenPad0_162; + public byte StructgenPad0_163; + public byte StructgenPad0_164; + public byte StructgenPad0_165; + public byte StructgenPad0_166; + public byte StructgenPad0_167; + public byte StructgenPad0_168; + public byte StructgenPad0_169; + public byte StructgenPad0_170; + public byte StructgenPad0_171; + public byte StructgenPad0_172; + public byte StructgenPad0_173; + public byte StructgenPad0_174; + public byte StructgenPad0_175; + public byte StructgenPad0_176; + public byte StructgenPad0_177; + public byte StructgenPad0_178; + public byte StructgenPad0_179; + public byte StructgenPad0_180; + public byte StructgenPad0_181; + public byte StructgenPad0_182; + public byte StructgenPad0_183; + public byte StructgenPad0_184; + public byte StructgenPad0_185; + public byte StructgenPad0_186; + public byte StructgenPad0_187; + public byte StructgenPad0_188; + public byte StructgenPad0_189; + public byte StructgenPad0_190; + public byte StructgenPad0_191; + public byte StructgenPad0_192; + public byte StructgenPad0_193; + public byte StructgenPad0_194; + public byte StructgenPad0_195; + public byte StructgenPad0_196; + public byte StructgenPad0_197; + public byte StructgenPad0_198; + public byte StructgenPad0_199; + public byte StructgenPad0_200; + public byte StructgenPad0_201; + public byte StructgenPad0_202; + public byte StructgenPad0_203; + public byte StructgenPad0_204; + public byte StructgenPad0_205; + public byte StructgenPad0_206; + public byte StructgenPad0_207; + public byte StructgenPad0_208; + public byte StructgenPad0_209; + public byte StructgenPad0_210; + public byte StructgenPad0_211; + public byte StructgenPad0_212; + public byte StructgenPad0_213; + public byte StructgenPad0_214; + public byte StructgenPad0_215; + public byte StructgenPad0_216; + public byte StructgenPad0_217; + public byte StructgenPad0_218; + public byte StructgenPad0_219; + public byte StructgenPad0_220; + public byte StructgenPad0_221; + public byte StructgenPad0_222; + public byte StructgenPad0_223; + public byte StructgenPad0_224; + public byte StructgenPad0_225; + public byte StructgenPad0_226; + public byte StructgenPad0_227; + public byte StructgenPad0_228; + public byte StructgenPad0_229; + public byte StructgenPad0_230; + public byte StructgenPad0_231; + public byte StructgenPad0_232; + public byte StructgenPad0_233; + public byte StructgenPad0_234; + public byte StructgenPad0_235; + public byte StructgenPad0_236; + public byte StructgenPad0_237; + public byte StructgenPad0_238; + public byte StructgenPad0_239; + public byte StructgenPad0_240; + public byte StructgenPad0_241; + public byte StructgenPad0_242; + public byte StructgenPad0_243; + public byte StructgenPad0_244; + public byte StructgenPad0_245; + public byte StructgenPad0_246; + public byte StructgenPad0_247; + public byte StructgenPad0_248; + public byte StructgenPad0_249; + public byte StructgenPad0_250; + public byte StructgenPad0_251; + public byte StructgenPad0_252; + public byte StructgenPad0_253; + public byte StructgenPad0_254; + public byte StructgenPad0_255; + public byte StructgenPad0_256; + public byte StructgenPad0_257; + public byte StructgenPad0_258; + public byte StructgenPad0_259; + public byte StructgenPad0_260; + public byte StructgenPad0_261; + public byte StructgenPad0_262; + public byte StructgenPad0_263; + public byte StructgenPad0_264; + public byte StructgenPad0_265; + public byte StructgenPad0_266; + public byte StructgenPad0_267; + public byte StructgenPad0_268; + public byte StructgenPad0_269; + public byte StructgenPad0_270; + public byte StructgenPad0_271; + public byte StructgenPad0_272; + public byte StructgenPad0_273; + public byte StructgenPad0_274; + public byte StructgenPad0_275; + public byte StructgenPad0_276; + public byte StructgenPad0_277; + public byte StructgenPad0_278; + public byte StructgenPad0_279; + public byte StructgenPad0_280; + public byte StructgenPad0_281; + public byte StructgenPad0_282; + public byte StructgenPad0_283; + public byte StructgenPad0_284; + public byte StructgenPad0_285; + public byte StructgenPad0_286; + public byte StructgenPad0_287; + public byte StructgenPad0_288; + public byte StructgenPad0_289; + public byte StructgenPad0_290; + public byte StructgenPad0_291; + public byte StructgenPad0_292; + public byte StructgenPad0_293; + public byte StructgenPad0_294; + public byte StructgenPad0_295; + public byte StructgenPad0_296; + public byte StructgenPad0_297; + public byte StructgenPad0_298; + public byte StructgenPad0_299; + public byte StructgenPad0_300; + public byte StructgenPad0_301; + public byte StructgenPad0_302; + public byte StructgenPad0_303; + public byte StructgenPad0_304; + public byte StructgenPad0_305; + public byte StructgenPad0_306; + public byte StructgenPad0_307; + public byte StructgenPad0_308; + public byte StructgenPad0_309; + public byte StructgenPad0_310; + public byte StructgenPad0_311; + public byte StructgenPad0_312; + public byte StructgenPad0_313; + public byte StructgenPad0_314; + public byte StructgenPad0_315; + public byte StructgenPad0_316; + public byte StructgenPad0_317; + public byte StructgenPad0_318; + public byte StructgenPad0_319; + public byte StructgenPad0_320; + public byte StructgenPad0_321; + public byte StructgenPad0_322; + public byte StructgenPad0_323; + public byte StructgenPad0_324; + public byte StructgenPad0_325; + public byte StructgenPad0_326; + public byte StructgenPad0_327; + public byte StructgenPad0_328; + public byte StructgenPad0_329; + public byte StructgenPad0_330; + public byte StructgenPad0_331; + public byte StructgenPad0_332; + public byte StructgenPad0_333; + public byte StructgenPad0_334; + public byte StructgenPad0_335; + public byte StructgenPad0_336; + public byte StructgenPad0_337; + public byte StructgenPad0_338; + public byte StructgenPad0_339; + public byte StructgenPad0_340; + public byte StructgenPad0_341; + public byte StructgenPad0_342; + public byte StructgenPad0_343; + public byte StructgenPad0_344; + public byte StructgenPad0_345; + public byte StructgenPad0_346; + public byte StructgenPad0_347; + public byte StructgenPad0_348; + public byte StructgenPad0_349; + public byte StructgenPad0_350; + public byte StructgenPad0_351; + public byte StructgenPad0_352; + public byte StructgenPad0_353; + public byte StructgenPad0_354; + public byte StructgenPad0_355; + public byte StructgenPad0_356; + public byte StructgenPad0_357; + public byte StructgenPad0_358; + public byte StructgenPad0_359; + public byte StructgenPad0_360; + public byte StructgenPad0_361; + public byte StructgenPad0_362; + public byte StructgenPad0_363; + public byte StructgenPad0_364; + public byte StructgenPad0_365; + public byte StructgenPad0_366; + public byte StructgenPad0_367; + public byte StructgenPad0_368; + public byte StructgenPad0_369; + public byte StructgenPad0_370; + public byte StructgenPad0_371; + public byte StructgenPad0_372; + public byte StructgenPad0_373; + public byte StructgenPad0_374; + public byte StructgenPad0_375; + public byte StructgenPad0_376; + public byte StructgenPad0_377; + public byte StructgenPad0_378; + public byte StructgenPad0_379; + public byte StructgenPad0_380; + public byte StructgenPad0_381; + public byte StructgenPad0_382; + public byte StructgenPad0_383; + public byte StructgenPad0_384; + public byte StructgenPad0_385; + public byte StructgenPad0_386; + public byte StructgenPad0_387; + public byte StructgenPad0_388; + public byte StructgenPad0_389; + public byte StructgenPad0_390; + public byte StructgenPad0_391; + public byte StructgenPad0_392; + public byte StructgenPad0_393; + public byte StructgenPad0_394; + public byte StructgenPad0_395; + public byte StructgenPad0_396; + public byte StructgenPad0_397; + public byte StructgenPad0_398; + public byte StructgenPad0_399; + public byte StructgenPad0_400; + public byte StructgenPad0_401; + public byte StructgenPad0_402; + public byte StructgenPad0_403; + public byte StructgenPad0_404; + public byte StructgenPad0_405; + public byte StructgenPad0_406; + public byte StructgenPad0_407; + public byte StructgenPad0_408; + public byte StructgenPad0_409; + public byte StructgenPad0_410; + public byte StructgenPad0_411; + public byte StructgenPad0_412; + public byte StructgenPad0_413; + public byte StructgenPad0_414; + public byte StructgenPad0_415; + public byte StructgenPad0_416; + public byte StructgenPad0_417; + public byte StructgenPad0_418; + public byte StructgenPad0_419; + public byte StructgenPad0_420; + public byte StructgenPad0_421; + public byte StructgenPad0_422; + public byte StructgenPad0_423; + public byte StructgenPad0_424; + public byte StructgenPad0_425; + public byte StructgenPad0_426; + public byte StructgenPad0_427; + public byte StructgenPad0_428; + public byte StructgenPad0_429; + public byte StructgenPad0_430; + public byte StructgenPad0_431; + public byte StructgenPad0_432; + public byte StructgenPad0_433; + public byte StructgenPad0_434; + public byte StructgenPad0_435; + public byte StructgenPad0_436; + public byte StructgenPad0_437; + public byte StructgenPad0_438; + public byte StructgenPad0_439; + public byte StructgenPad0_440; + public byte StructgenPad0_441; + public byte StructgenPad0_442; + public byte StructgenPad0_443; + public byte StructgenPad0_444; + public byte StructgenPad0_445; + public byte StructgenPad0_446; + public byte StructgenPad0_447; + public byte StructgenPad0_448; + public byte StructgenPad0_449; + public byte StructgenPad0_450; + public byte StructgenPad0_451; + public byte StructgenPad0_452; + public byte StructgenPad0_453; + public byte StructgenPad0_454; + public byte StructgenPad0_455; + public byte StructgenPad0_456; + public byte StructgenPad0_457; + public byte StructgenPad0_458; + public byte StructgenPad0_459; + public byte StructgenPad0_460; + public byte StructgenPad0_461; + public byte StructgenPad0_462; + public byte StructgenPad0_463; + public byte StructgenPad0_464; + public byte StructgenPad0_465; + public byte StructgenPad0_466; + public byte StructgenPad0_467; + public byte StructgenPad0_468; + public byte StructgenPad0_469; + public byte StructgenPad0_470; + public byte StructgenPad0_471; + public byte StructgenPad0_472; + public byte StructgenPad0_473; + public byte StructgenPad0_474; + public byte StructgenPad0_475; + public byte StructgenPad0_476; + public byte StructgenPad0_477; + public byte StructgenPad0_478; + public byte StructgenPad0_479; + public byte StructgenPad0_480; + public byte StructgenPad0_481; + public byte StructgenPad0_482; + public byte StructgenPad0_483; + public byte StructgenPad0_484; + public byte StructgenPad0_485; + public byte StructgenPad0_486; + public byte StructgenPad0_487; + public byte StructgenPad0_488; + public byte StructgenPad0_489; + public byte StructgenPad0_490; + public byte StructgenPad0_491; + public byte StructgenPad0_492; + public byte StructgenPad0_493; + public byte StructgenPad0_494; + public byte StructgenPad0_495; + public byte StructgenPad0_496; + public byte StructgenPad0_497; + public byte StructgenPad0_498; + public byte StructgenPad0_499; + public byte StructgenPad0_500; + public byte StructgenPad0_501; + public byte StructgenPad0_502; + public byte StructgenPad0_503; + public byte StructgenPad0_504; + public byte StructgenPad0_505; + public byte StructgenPad0_506; + public byte StructgenPad0_507; + public byte StructgenPad0_508; + public byte StructgenPad0_509; + public byte StructgenPad0_510; + public byte StructgenPad0_511; + public byte StructgenPad0_512; + public byte StructgenPad0_513; + public byte StructgenPad0_514; + public byte StructgenPad0_515; + public byte StructgenPad0_516; + public byte StructgenPad0_517; + public byte StructgenPad0_518; + public byte StructgenPad0_519; + public byte StructgenPad0_520; + public byte StructgenPad0_521; + public byte StructgenPad0_522; + public byte StructgenPad0_523; + public byte StructgenPad0_524; + public byte StructgenPad0_525; + public byte StructgenPad0_526; + public byte StructgenPad0_527; + public byte StructgenPad0_528; + public byte StructgenPad0_529; + public byte StructgenPad0_530; + public byte StructgenPad0_531; + public byte StructgenPad0_532; + public byte StructgenPad0_533; + public byte StructgenPad0_534; + public byte StructgenPad0_535; + public byte StructgenPad0_536; + public byte StructgenPad0_537; + public byte StructgenPad0_538; + public byte StructgenPad0_539; + public byte StructgenPad0_540; + public byte StructgenPad0_541; + public byte StructgenPad0_542; + public byte StructgenPad0_543; + public byte StructgenPad0_544; + public byte StructgenPad0_545; + public byte StructgenPad0_546; + public byte StructgenPad0_547; + public byte StructgenPad0_548; + public byte StructgenPad0_549; + public byte StructgenPad0_550; + public byte StructgenPad0_551; + public byte StructgenPad0_552; + public byte StructgenPad0_553; + public byte StructgenPad0_554; + public byte StructgenPad0_555; + public byte StructgenPad0_556; + public byte StructgenPad0_557; + public byte StructgenPad0_558; + public byte StructgenPad0_559; + public byte StructgenPad0_560; + public byte StructgenPad0_561; + public byte StructgenPad0_562; + public byte StructgenPad0_563; + public byte StructgenPad0_564; + public byte StructgenPad0_565; + public byte StructgenPad0_566; + public byte StructgenPad0_567; + public byte StructgenPad0_568; + public byte StructgenPad0_569; + public byte StructgenPad0_570; + public byte StructgenPad0_571; + public byte StructgenPad0_572; + public byte StructgenPad0_573; + public byte StructgenPad0_574; + public byte StructgenPad0_575; + public byte StructgenPad0_576; + public byte StructgenPad0_577; + public byte StructgenPad0_578; + public byte StructgenPad0_579; + public byte StructgenPad0_580; + public byte StructgenPad0_581; + public byte StructgenPad0_582; + public byte StructgenPad0_583; + public byte StructgenPad0_584; + public byte StructgenPad0_585; + public byte StructgenPad0_586; + public byte StructgenPad0_587; + public byte StructgenPad0_588; + public byte StructgenPad0_589; + public byte StructgenPad0_590; + public byte StructgenPad0_591; + public byte StructgenPad0_592; + public byte StructgenPad0_593; + public byte StructgenPad0_594; + public byte StructgenPad0_595; + public byte StructgenPad0_596; + public byte StructgenPad0_597; + public byte StructgenPad0_598; + public byte StructgenPad0_599; + public byte StructgenPad0_600; + public byte StructgenPad0_601; + public byte StructgenPad0_602; + public byte StructgenPad0_603; + public byte StructgenPad0_604; + public byte StructgenPad0_605; + public byte StructgenPad0_606; + public byte StructgenPad0_607; + public byte StructgenPad0_608; + public byte StructgenPad0_609; + public byte StructgenPad0_610; + public byte StructgenPad0_611; + public byte StructgenPad0_612; + public byte StructgenPad0_613; + public byte StructgenPad0_614; + public byte StructgenPad0_615; + public byte StructgenPad0_616; + public byte StructgenPad0_617; + public byte StructgenPad0_618; + public byte StructgenPad0_619; + public byte StructgenPad0_620; + public byte StructgenPad0_621; + public byte StructgenPad0_622; + public byte StructgenPad0_623; + public byte StructgenPad0_624; + public byte StructgenPad0_625; + public byte StructgenPad0_626; + public byte StructgenPad0_627; + public byte StructgenPad0_628; + public byte StructgenPad0_629; + public byte StructgenPad0_630; + public byte StructgenPad0_631; + public byte StructgenPad0_632; + public byte StructgenPad0_633; + public byte StructgenPad0_634; + public byte StructgenPad0_635; + public byte StructgenPad0_636; + public byte StructgenPad0_637; + public byte StructgenPad0_638; + public byte StructgenPad0_639; + public byte StructgenPad0_640; + public byte StructgenPad0_641; + public byte StructgenPad0_642; + public byte StructgenPad0_643; + public byte StructgenPad0_644; + public byte StructgenPad0_645; + public byte StructgenPad0_646; + public byte StructgenPad0_647; + public byte StructgenPad0_648; + public byte StructgenPad0_649; + public byte StructgenPad0_650; + public byte StructgenPad0_651; + public byte StructgenPad0_652; + public byte StructgenPad0_653; + public byte StructgenPad0_654; + public byte StructgenPad0_655; + public byte StructgenPad0_656; + public byte StructgenPad0_657; + public byte StructgenPad0_658; + public byte StructgenPad0_659; + public byte StructgenPad0_660; + public byte StructgenPad0_661; + public byte StructgenPad0_662; + public byte StructgenPad0_663; + public byte StructgenPad0_664; + public byte StructgenPad0_665; + public byte StructgenPad0_666; + public byte StructgenPad0_667; + public byte StructgenPad0_668; + public byte StructgenPad0_669; + public byte StructgenPad0_670; + public byte StructgenPad0_671; + public byte StructgenPad0_672; + public byte StructgenPad0_673; + public byte StructgenPad0_674; + public byte StructgenPad0_675; + public byte StructgenPad0_676; + public byte StructgenPad0_677; + public byte StructgenPad0_678; + public byte StructgenPad0_679; + public byte StructgenPad0_680; + public byte StructgenPad0_681; + public byte StructgenPad0_682; + public byte StructgenPad0_683; + public byte StructgenPad0_684; + public byte StructgenPad0_685; + public byte StructgenPad0_686; + public byte StructgenPad0_687; + public byte StructgenPad0_688; + public byte StructgenPad0_689; + public byte StructgenPad0_690; + public byte StructgenPad0_691; + public byte StructgenPad0_692; + public byte StructgenPad0_693; + public byte StructgenPad0_694; + public byte StructgenPad0_695; + public byte StructgenPad0_696; + public byte StructgenPad0_697; + public byte StructgenPad0_698; + public byte StructgenPad0_699; + public byte StructgenPad0_700; + public byte StructgenPad0_701; + public byte StructgenPad0_702; + public byte StructgenPad0_703; + public byte StructgenPad0_704; + public byte StructgenPad0_705; + public byte StructgenPad0_706; + public byte StructgenPad0_707; + public byte StructgenPad0_708; + public byte StructgenPad0_709; + public byte StructgenPad0_710; + public byte StructgenPad0_711; + public byte StructgenPad0_712; + public byte StructgenPad0_713; + public byte StructgenPad0_714; + public byte StructgenPad0_715; + public byte StructgenPad0_716; + public byte StructgenPad0_717; + public byte StructgenPad0_718; + public byte StructgenPad0_719; + public byte StructgenPad0_720; + public byte StructgenPad0_721; + public byte StructgenPad0_722; + public byte StructgenPad0_723; + public byte StructgenPad0_724; + public byte StructgenPad0_725; + public byte StructgenPad0_726; + public byte StructgenPad0_727; + public byte StructgenPad0_728; + public byte StructgenPad0_729; + public byte StructgenPad0_730; + public byte StructgenPad0_731; + public byte StructgenPad0_732; + public byte StructgenPad0_733; + public byte StructgenPad0_734; + public byte StructgenPad0_735; + public byte StructgenPad0_736; + public byte StructgenPad0_737; + public byte StructgenPad0_738; + public byte StructgenPad0_739; + public byte StructgenPad0_740; + public byte StructgenPad0_741; + public byte StructgenPad0_742; + public byte StructgenPad0_743; + public byte StructgenPad0_744; + public byte StructgenPad0_745; + public byte StructgenPad0_746; + public byte StructgenPad0_747; + public byte StructgenPad0_748; + public byte StructgenPad0_749; + public byte StructgenPad0_750; + public byte StructgenPad0_751; + public byte StructgenPad0_752; + public byte StructgenPad0_753; + public byte StructgenPad0_754; + public byte StructgenPad0_755; + public byte StructgenPad0_756; + public byte StructgenPad0_757; + public byte StructgenPad0_758; + public byte StructgenPad0_759; + public byte StructgenPad0_760; + public byte StructgenPad0_761; + public byte StructgenPad0_762; + public byte StructgenPad0_763; + public byte StructgenPad0_764; + public byte StructgenPad0_765; + public byte StructgenPad0_766; + public byte StructgenPad0_767; + public byte StructgenPad0_768; + public byte StructgenPad0_769; + public byte StructgenPad0_770; + public byte StructgenPad0_771; + public byte StructgenPad0_772; + public byte StructgenPad0_773; + public byte StructgenPad0_774; + public byte StructgenPad0_775; + public byte StructgenPad0_776; + public byte StructgenPad0_777; + public byte StructgenPad0_778; + public byte StructgenPad0_779; + public byte StructgenPad0_780; + public byte StructgenPad0_781; + public byte StructgenPad0_782; + public byte StructgenPad0_783; + public byte StructgenPad0_784; + public byte StructgenPad0_785; + public byte StructgenPad0_786; + public byte StructgenPad0_787; + public byte StructgenPad0_788; + public byte StructgenPad0_789; + public byte StructgenPad0_790; + public byte StructgenPad0_791; + public byte StructgenPad0_792; + public byte StructgenPad0_793; + public byte StructgenPad0_794; + public byte StructgenPad0_795; + public byte StructgenPad0_796; + public byte StructgenPad0_797; + public byte StructgenPad0_798; + public byte StructgenPad0_799; + public byte StructgenPad0_800; + public byte StructgenPad0_801; + public byte StructgenPad0_802; + public byte StructgenPad0_803; + public byte StructgenPad0_804; + public byte StructgenPad0_805; + public byte StructgenPad0_806; + public byte StructgenPad0_807; + public byte StructgenPad0_808; + public byte StructgenPad0_809; + public byte StructgenPad0_810; + public byte StructgenPad0_811; + public byte StructgenPad0_812; + public byte StructgenPad0_813; + public byte StructgenPad0_814; + public byte StructgenPad0_815; + public byte StructgenPad0_816; + public byte StructgenPad0_817; + public byte StructgenPad0_818; + public byte StructgenPad0_819; + public byte StructgenPad0_820; + public byte StructgenPad0_821; + public byte StructgenPad0_822; + public byte StructgenPad0_823; + public byte StructgenPad0_824; + public byte StructgenPad0_825; + public byte StructgenPad0_826; + public byte StructgenPad0_827; + public byte StructgenPad0_828; + public byte StructgenPad0_829; + public byte StructgenPad0_830; + public byte StructgenPad0_831; + public byte StructgenPad0_832; + public byte StructgenPad0_833; + public byte StructgenPad0_834; + public byte StructgenPad0_835; + public byte StructgenPad0_836; + public byte StructgenPad0_837; + public byte StructgenPad0_838; + public byte StructgenPad0_839; + public byte StructgenPad0_840; + public byte StructgenPad0_841; + public byte StructgenPad0_842; + public byte StructgenPad0_843; + public byte StructgenPad0_844; + public byte StructgenPad0_845; + public byte StructgenPad0_846; + public byte StructgenPad0_847; + public byte StructgenPad0_848; + public byte StructgenPad0_849; + public byte StructgenPad0_850; + public byte StructgenPad0_851; + public byte StructgenPad0_852; + public byte StructgenPad0_853; + public byte StructgenPad0_854; + public byte StructgenPad0_855; + public byte StructgenPad0_856; + public byte StructgenPad0_857; + public byte StructgenPad0_858; + public byte StructgenPad0_859; + public byte StructgenPad0_860; + public byte StructgenPad0_861; + public byte StructgenPad0_862; + public byte StructgenPad0_863; + public byte StructgenPad0_864; + public byte StructgenPad0_865; + public byte StructgenPad0_866; + public byte StructgenPad0_867; + public byte StructgenPad0_868; + public byte StructgenPad0_869; + public byte StructgenPad0_870; + public byte StructgenPad0_871; + public byte StructgenPad0_872; + public byte StructgenPad0_873; + public byte StructgenPad0_874; + public byte StructgenPad0_875; + public byte StructgenPad0_876; + public byte StructgenPad0_877; + public byte StructgenPad0_878; + public byte StructgenPad0_879; + public byte StructgenPad0_880; + public byte StructgenPad0_881; + public byte StructgenPad0_882; + public byte StructgenPad0_883; + public byte StructgenPad0_884; + public byte StructgenPad0_885; + public byte StructgenPad0_886; + public byte StructgenPad0_887; + public byte StructgenPad0_888; + public byte StructgenPad0_889; + public byte StructgenPad0_890; + public byte StructgenPad0_891; + public byte StructgenPad0_892; + public byte StructgenPad0_893; + public byte StructgenPad0_894; + public byte StructgenPad0_895; + public byte StructgenPad0_896; + public byte StructgenPad0_897; + public byte StructgenPad0_898; + public byte StructgenPad0_899; + public byte StructgenPad0_900; + public byte StructgenPad0_901; + public byte StructgenPad0_902; + public byte StructgenPad0_903; + public byte StructgenPad0_904; + public byte StructgenPad0_905; + public byte StructgenPad0_906; + public byte StructgenPad0_907; + public byte StructgenPad0_908; + public byte StructgenPad0_909; + public byte StructgenPad0_910; + public byte StructgenPad0_911; + public byte StructgenPad0_912; + public byte StructgenPad0_913; + public byte StructgenPad0_914; + public byte StructgenPad0_915; + public byte StructgenPad0_916; + public byte StructgenPad0_917; + public byte StructgenPad0_918; + public byte StructgenPad0_919; + public byte StructgenPad0_920; + public byte StructgenPad0_921; + public byte StructgenPad0_922; + public byte StructgenPad0_923; + public byte StructgenPad0_924; + public byte StructgenPad0_925; + public byte StructgenPad0_926; + public byte StructgenPad0_927; + public byte StructgenPad0_928; + public byte StructgenPad0_929; + public byte StructgenPad0_930; + public byte StructgenPad0_931; + public byte StructgenPad0_932; + public byte StructgenPad0_933; + public byte StructgenPad0_934; + public byte StructgenPad0_935; + public byte StructgenPad0_936; + public byte StructgenPad0_937; + public byte StructgenPad0_938; + public byte StructgenPad0_939; + public byte StructgenPad0_940; + public byte StructgenPad0_941; + public byte StructgenPad0_942; + public byte StructgenPad0_943; + public byte StructgenPad0_944; + public byte StructgenPad0_945; + public byte StructgenPad0_946; + public byte StructgenPad0_947; + public byte StructgenPad0_948; + public byte StructgenPad0_949; + public byte StructgenPad0_950; + public byte StructgenPad0_951; + public byte StructgenPad0_952; + public byte StructgenPad0_953; + public byte StructgenPad0_954; + public byte StructgenPad0_955; + public byte StructgenPad0_956; + public byte StructgenPad0_957; + public byte StructgenPad0_958; + public byte StructgenPad0_959; + public byte StructgenPad0_960; + public byte StructgenPad0_961; + public byte StructgenPad0_962; + public byte StructgenPad0_963; + public byte StructgenPad0_964; + public byte StructgenPad0_965; + public byte StructgenPad0_966; + public byte StructgenPad0_967; + public byte StructgenPad0_968; + public byte StructgenPad0_969; + public byte StructgenPad0_970; + public byte StructgenPad0_971; + public byte StructgenPad0_972; + public byte StructgenPad0_973; + public byte StructgenPad0_974; + public byte StructgenPad0_975; + public byte StructgenPad0_976; + public byte StructgenPad0_977; + public byte StructgenPad0_978; + public byte StructgenPad0_979; + public byte StructgenPad0_980; + public byte StructgenPad0_981; + public byte StructgenPad0_982; + public byte StructgenPad0_983; + public byte StructgenPad0_984; + public byte StructgenPad0_985; + public byte StructgenPad0_986; + public byte StructgenPad0_987; + public byte StructgenPad0_988; + public byte StructgenPad0_989; + public byte StructgenPad0_990; + public byte StructgenPad0_991; + public byte StructgenPad0_992; + public byte StructgenPad0_993; + public byte StructgenPad0_994; + public byte StructgenPad0_995; + public byte StructgenPad0_996; + public byte StructgenPad0_997; + public byte StructgenPad0_998; + public byte StructgenPad0_999; + public byte StructgenPad0_1000; + public byte StructgenPad0_1001; + public byte StructgenPad0_1002; + public byte StructgenPad0_1003; + public byte StructgenPad0_1004; + public byte StructgenPad0_1005; + public byte StructgenPad0_1006; + public byte StructgenPad0_1007; + public byte StructgenPad0_1008; + public byte StructgenPad0_1009; + public byte StructgenPad0_1010; + public byte StructgenPad0_1011; + public byte StructgenPad0_1012; + public byte StructgenPad0_1013; + public byte StructgenPad0_1014; + public byte StructgenPad0_1015; + public byte StructgenPad0_1016; + public byte StructgenPad0_1017; + public byte StructgenPad0_1018; + public byte StructgenPad0_1019; + public byte StructgenPad0_1020; + public byte StructgenPad0_1021; + public byte StructgenPad0_1022; + public byte StructgenPad0_1023; + public byte StructgenPad0_1024; + public byte StructgenPad0_1025; + public byte StructgenPad0_1026; + public byte StructgenPad0_1027; + public byte StructgenPad0_1028; + public byte StructgenPad0_1029; + public byte StructgenPad0_1030; + public byte StructgenPad0_1031; + public byte StructgenPad0_1032; + public byte StructgenPad0_1033; + public byte StructgenPad0_1034; + public byte StructgenPad0_1035; + public byte StructgenPad0_1036; + public byte StructgenPad0_1037; + public byte StructgenPad0_1038; + public byte StructgenPad0_1039; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBinaryConverterPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxXmlMiscParameterPod + { + public PhysxPxVec3Pod UpVector; + public PhysxPxTolerancesScalePod Scale; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSerializationPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxDefaultCpuDispatcherPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxStringTableExtPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBroadPhaseExtPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSceneQueryExtPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxBatchQueryExtPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCustomSceneQuerySystemPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCustomSceneQuerySystemAdapterPod + { + public unsafe void* Vtable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxSamplingExtPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxPoissonSamplerPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTriangleMeshPoissonSamplerPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public byte StructgenPad0_8; + public byte StructgenPad0_9; + public byte StructgenPad0_10; + public byte StructgenPad0_11; + public byte StructgenPad0_12; + public byte StructgenPad0_13; + public byte StructgenPad0_14; + public byte StructgenPad0_15; + public byte StructgenPad0_16; + public byte StructgenPad0_17; + public byte StructgenPad0_18; + public byte StructgenPad0_19; + public byte StructgenPad0_20; + public byte StructgenPad0_21; + public byte StructgenPad0_22; + public byte StructgenPad0_23; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxTetrahedronMeshExtPod + { + public byte StructgenPad0_0; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRepXObjectPod + { + public unsafe byte* TypeName; + public unsafe void* Serializable; + public ulong Id; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxCookingPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxRepXInstantiationArgsPod + { + public byte StructgenPad0_0; + public byte StructgenPad0_1; + public byte StructgenPad0_2; + public byte StructgenPad0_3; + public byte StructgenPad0_4; + public byte StructgenPad0_5; + public byte StructgenPad0_6; + public byte StructgenPad0_7; + public unsafe PhysxPxCookingPod* Cooker; + public unsafe PhysxPxStringTablePod* StringTable; + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxXmlMemoryAllocatorPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxXmlWriterPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxXmlReaderPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxMemoryBufferPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxVehicleWheels4SimDataPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxVehicleWheels4DynDataPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxVehicleTireForceCalculatorPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxVehicleDrivableSurfaceToTireFrictionPairsPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxVehicleTelemetryDataPod + { + + + } + + [StructLayout(LayoutKind.Sequential)] + public partial struct PhysxPxPvdTransportPod + { + public unsafe void* Vtable; + + + } + +} diff --git a/Hexa.NET.PhysX/Hexa.NET.PhysX.csproj b/Hexa.NET.PhysX/Hexa.NET.PhysX.csproj new file mode 100644 index 0000000..397f630 --- /dev/null +++ b/Hexa.NET.PhysX/Hexa.NET.PhysX.csproj @@ -0,0 +1,18 @@ + + + + net8.0 + enable + enable + true + + + + + + + + + + + diff --git a/Hexa.NET.SDL2/Generated/Constants.cs b/Hexa.NET.SDL2/Generated/Constants.cs index 86c3712..e0d4856 100644 --- a/Hexa.NET.SDL2/Generated/Constants.cs +++ b/Hexa.NET.SDL2/Generated/Constants.cs @@ -15,1002 +15,1335 @@ namespace Hexa.NET.SDL2 public unsafe partial class SDL { [NativeName(NativeNameType.Const, "_MSC_VER")] + [NativeName(NativeNameType.Value, "1930")] public const int _MSC_VER = 1930; [NativeName(NativeNameType.Const, "_WIN32")] + [NativeName(NativeNameType.Value, "1")] public const int _WIN32 = 1; [NativeName(NativeNameType.Const, "_M_AMD64")] + [NativeName(NativeNameType.Value, "100")] public const int _M_AMD64 = 100; [NativeName(NativeNameType.Const, "_M_X64")] + [NativeName(NativeNameType.Value, "100")] public const int _M_X64 = 100; [NativeName(NativeNameType.Const, "_WIN64")] + [NativeName(NativeNameType.Value, "1")] public const int _WIN64 = 1; [NativeName(NativeNameType.Const, "HAVE_WINAPIFAMILY_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_WINAPIFAMILY_H = 1; [NativeName(NativeNameType.Const, "__WINDOWS__")] + [NativeName(NativeNameType.Value, "1")] public const int __WINDOWS__ = 1; [NativeName(NativeNameType.Const, "__WIN32__")] + [NativeName(NativeNameType.Value, "1")] public const int __WIN32__ = 1; [NativeName(NativeNameType.Const, "NULL")] + [NativeName(NativeNameType.Value, "0")] public const int NULL = 0; [NativeName(NativeNameType.Const, "HAVE_WINSDKVER_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_WINSDKVER_H = 1; [NativeName(NativeNameType.Const, "HAVE_SDKDDKVER_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_SDKDDKVER_H = 1; [NativeName(NativeNameType.Const, "HAVE_STDINT_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_STDINT_H = 1; [NativeName(NativeNameType.Const, "SIZEOF_VOIDP")] + [NativeName(NativeNameType.Value, "8")] public const int SIZEOF_VOIDP = 8; [NativeName(NativeNameType.Const, "HAVE_GCC_ATOMICS")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_GCC_ATOMICS = 1; [NativeName(NativeNameType.Const, "HAVE_DDRAW_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_DDRAW_H = 1; [NativeName(NativeNameType.Const, "HAVE_DINPUT_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_DINPUT_H = 1; [NativeName(NativeNameType.Const, "HAVE_DSOUND_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_DSOUND_H = 1; [NativeName(NativeNameType.Const, "HAVE_DXGI_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_DXGI_H = 1; [NativeName(NativeNameType.Const, "HAVE_XINPUT_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_XINPUT_H = 1; [NativeName(NativeNameType.Const, "HAVE_WINDOWS_GAMING_INPUT_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_WINDOWS_GAMING_INPUT_H = 1; [NativeName(NativeNameType.Const, "HAVE_D3D11_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_D3D11_H = 1; [NativeName(NativeNameType.Const, "HAVE_ROAPI_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_ROAPI_H = 1; [NativeName(NativeNameType.Const, "HAVE_D3D12_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_D3D12_H = 1; [NativeName(NativeNameType.Const, "HAVE_SHELLSCALINGAPI_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_SHELLSCALINGAPI_H = 1; [NativeName(NativeNameType.Const, "HAVE_MMDEVICEAPI_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_MMDEVICEAPI_H = 1; [NativeName(NativeNameType.Const, "HAVE_AUDIOCLIENT_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_AUDIOCLIENT_H = 1; [NativeName(NativeNameType.Const, "HAVE_TPCSHRD_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_TPCSHRD_H = 1; [NativeName(NativeNameType.Const, "HAVE_SENSORSAPI_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_SENSORSAPI_H = 1; [NativeName(NativeNameType.Const, "HAVE_IMMINTRIN_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_IMMINTRIN_H = 1; [NativeName(NativeNameType.Const, "HAVE_STDARG_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_STDARG_H = 1; [NativeName(NativeNameType.Const, "HAVE_STDDEF_H")] + [NativeName(NativeNameType.Value, "1")] public const int HAVE_STDDEF_H = 1; [NativeName(NativeNameType.Const, "SDL_AUDIO_DRIVER_WASAPI")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_AUDIO_DRIVER_WASAPI = 1; [NativeName(NativeNameType.Const, "SDL_AUDIO_DRIVER_DSOUND")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_AUDIO_DRIVER_DSOUND = 1; [NativeName(NativeNameType.Const, "SDL_AUDIO_DRIVER_WINMM")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_AUDIO_DRIVER_WINMM = 1; [NativeName(NativeNameType.Const, "SDL_AUDIO_DRIVER_DISK")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_AUDIO_DRIVER_DISK = 1; [NativeName(NativeNameType.Const, "SDL_AUDIO_DRIVER_DUMMY")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_AUDIO_DRIVER_DUMMY = 1; [NativeName(NativeNameType.Const, "SDL_JOYSTICK_DINPUT")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_JOYSTICK_DINPUT = 1; [NativeName(NativeNameType.Const, "SDL_JOYSTICK_HIDAPI")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_JOYSTICK_HIDAPI = 1; [NativeName(NativeNameType.Const, "SDL_JOYSTICK_RAWINPUT")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_JOYSTICK_RAWINPUT = 1; [NativeName(NativeNameType.Const, "SDL_JOYSTICK_VIRTUAL")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_JOYSTICK_VIRTUAL = 1; [NativeName(NativeNameType.Const, "SDL_JOYSTICK_WGI")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_JOYSTICK_WGI = 1; [NativeName(NativeNameType.Const, "SDL_JOYSTICK_XINPUT")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_JOYSTICK_XINPUT = 1; [NativeName(NativeNameType.Const, "SDL_HAPTIC_DINPUT")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_HAPTIC_DINPUT = 1; [NativeName(NativeNameType.Const, "SDL_HAPTIC_XINPUT")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_HAPTIC_XINPUT = 1; [NativeName(NativeNameType.Const, "SDL_SENSOR_WINDOWS")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_SENSOR_WINDOWS = 1; [NativeName(NativeNameType.Const, "SDL_LOADSO_WINDOWS")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_LOADSO_WINDOWS = 1; [NativeName(NativeNameType.Const, "SDL_THREAD_GENERIC_COND_SUFFIX")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_THREAD_GENERIC_COND_SUFFIX = 1; [NativeName(NativeNameType.Const, "SDL_THREAD_WINDOWS")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_THREAD_WINDOWS = 1; [NativeName(NativeNameType.Const, "SDL_TIMER_WINDOWS")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_TIMER_WINDOWS = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_DRIVER_DUMMY")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_DRIVER_DUMMY = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_DRIVER_WINDOWS")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_DRIVER_WINDOWS = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_RENDER_D3D")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_RENDER_D3D = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_RENDER_D3D11")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_RENDER_D3D11 = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_RENDER_D3D12")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_RENDER_D3D12 = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_OPENGL")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_OPENGL = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_OPENGL_WGL")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_OPENGL_WGL = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_RENDER_OGL")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_RENDER_OGL = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_RENDER_OGL_ES2")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_RENDER_OGL_ES2 = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_OPENGL_ES2")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_OPENGL_ES2 = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_OPENGL_EGL")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_OPENGL_EGL = 1; [NativeName(NativeNameType.Const, "SDL_VIDEO_VULKAN")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIDEO_VULKAN = 1; [NativeName(NativeNameType.Const, "SDL_POWER_WINDOWS")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_POWER_WINDOWS = 1; [NativeName(NativeNameType.Const, "SDL_FILESYSTEM_WINDOWS")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_FILESYSTEM_WINDOWS = 1; [NativeName(NativeNameType.Const, "SDL_FLT_EPSILON")] + [NativeName(NativeNameType.Value, "1.1920928955078125e-07F")] public const float SDL_FLT_EPSILON = 1.1920928955078125e-07F; [NativeName(NativeNameType.Const, "SDL_PRIs64")] + [NativeName(NativeNameType.Value, "\"I64d\"")] public const string SDL_PRIs64 = "I64d"; [NativeName(NativeNameType.Const, "SDL_PRIu64")] + [NativeName(NativeNameType.Value, "\"I64u\"")] public const string SDL_PRIu64 = "I64u"; [NativeName(NativeNameType.Const, "SDL_PRIx64")] + [NativeName(NativeNameType.Value, "\"I64x\"")] public const string SDL_PRIx64 = "I64x"; [NativeName(NativeNameType.Const, "SDL_PRIX64")] + [NativeName(NativeNameType.Value, "\"I64X\"")] public const string SDL_PRIX64 = "I64X"; [NativeName(NativeNameType.Const, "SDL_PRIs32")] + [NativeName(NativeNameType.Value, "\"d\"")] public const string SDL_PRIs32 = "d"; [NativeName(NativeNameType.Const, "SDL_PRIu32")] + [NativeName(NativeNameType.Value, "\"u\"")] public const string SDL_PRIu32 = "u"; [NativeName(NativeNameType.Const, "SDL_PRIx32")] + [NativeName(NativeNameType.Value, "\"x\"")] public const string SDL_PRIx32 = "x"; [NativeName(NativeNameType.Const, "SDL_PRIX32")] + [NativeName(NativeNameType.Value, "\"X\"")] public const string SDL_PRIX32 = "X"; [NativeName(NativeNameType.Const, "M_PI")] + [NativeName(NativeNameType.Value, "3.14159265358979323846264338327950288")] public const double M_PI = 3.14159265358979323846264338327950288; [NativeName(NativeNameType.Const, "SDL_ASSERT_LEVEL")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_ASSERT_LEVEL = 1; [NativeName(NativeNameType.Const, "SDL_LIL_ENDIAN")] + [NativeName(NativeNameType.Value, "1234")] public const int SDL_LIL_ENDIAN = 1234; [NativeName(NativeNameType.Const, "SDL_BIG_ENDIAN")] + [NativeName(NativeNameType.Value, "4321")] public const int SDL_BIG_ENDIAN = 4321; [NativeName(NativeNameType.Const, "SDL_MUTEX_TIMEDOUT")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_MUTEX_TIMEDOUT = 1; [NativeName(NativeNameType.Const, "SDL_RWOPS_UNKNOWN")] + [NativeName(NativeNameType.Value, "0U")] public const uint SDL_RWOPS_UNKNOWN = 0U; [NativeName(NativeNameType.Const, "SDL_RWOPS_WINFILE")] + [NativeName(NativeNameType.Value, "1U")] public const uint SDL_RWOPS_WINFILE = 1U; [NativeName(NativeNameType.Const, "SDL_RWOPS_STDFILE")] + [NativeName(NativeNameType.Value, "2U")] public const uint SDL_RWOPS_STDFILE = 2U; [NativeName(NativeNameType.Const, "SDL_RWOPS_JNIFILE")] + [NativeName(NativeNameType.Value, "3U")] public const uint SDL_RWOPS_JNIFILE = 3U; [NativeName(NativeNameType.Const, "SDL_RWOPS_MEMORY")] + [NativeName(NativeNameType.Value, "4U")] public const uint SDL_RWOPS_MEMORY = 4U; [NativeName(NativeNameType.Const, "SDL_RWOPS_MEMORY_RO")] + [NativeName(NativeNameType.Value, "5U")] public const uint SDL_RWOPS_MEMORY_RO = 5U; [NativeName(NativeNameType.Const, "RW_SEEK_SET")] + [NativeName(NativeNameType.Value, "0")] public const int RW_SEEK_SET = 0; [NativeName(NativeNameType.Const, "RW_SEEK_CUR")] + [NativeName(NativeNameType.Value, "1")] public const int RW_SEEK_CUR = 1; [NativeName(NativeNameType.Const, "RW_SEEK_END")] + [NativeName(NativeNameType.Value, "2")] public const int RW_SEEK_END = 2; [NativeName(NativeNameType.Const, "SDL_AUDIO_MASK_BITSIZE")] + [NativeName(NativeNameType.Value, "(0xFF)")] public const int SDL_AUDIO_MASK_BITSIZE = (0xFF); [NativeName(NativeNameType.Const, "AUDIO_U8")] + [NativeName(NativeNameType.Value, "0x0008")] public const int AUDIO_U8 = 0x0008; [NativeName(NativeNameType.Const, "AUDIO_S8")] + [NativeName(NativeNameType.Value, "0x8008")] public const int AUDIO_S8 = 0x8008; [NativeName(NativeNameType.Const, "AUDIO_U16LSB")] + [NativeName(NativeNameType.Value, "0x0010")] public const int AUDIO_U16LSB = 0x0010; [NativeName(NativeNameType.Const, "AUDIO_S16LSB")] + [NativeName(NativeNameType.Value, "0x8010")] public const int AUDIO_S16LSB = 0x8010; [NativeName(NativeNameType.Const, "AUDIO_U16MSB")] + [NativeName(NativeNameType.Value, "0x1010")] public const int AUDIO_U16MSB = 0x1010; [NativeName(NativeNameType.Const, "AUDIO_S16MSB")] + [NativeName(NativeNameType.Value, "0x9010")] public const int AUDIO_S16MSB = 0x9010; [NativeName(NativeNameType.Const, "AUDIO_S32LSB")] + [NativeName(NativeNameType.Value, "0x8020")] public const int AUDIO_S32LSB = 0x8020; [NativeName(NativeNameType.Const, "AUDIO_S32MSB")] + [NativeName(NativeNameType.Value, "0x9020")] public const int AUDIO_S32MSB = 0x9020; [NativeName(NativeNameType.Const, "AUDIO_F32LSB")] + [NativeName(NativeNameType.Value, "0x8120")] public const int AUDIO_F32LSB = 0x8120; [NativeName(NativeNameType.Const, "AUDIO_F32MSB")] + [NativeName(NativeNameType.Value, "0x9120")] public const int AUDIO_F32MSB = 0x9120; [NativeName(NativeNameType.Const, "SDL_AUDIO_ALLOW_FREQUENCY_CHANGE")] + [NativeName(NativeNameType.Value, "0x00000001")] public const int SDL_AUDIO_ALLOW_FREQUENCY_CHANGE = 0x00000001; [NativeName(NativeNameType.Const, "SDL_AUDIO_ALLOW_FORMAT_CHANGE")] + [NativeName(NativeNameType.Value, "0x00000002")] public const int SDL_AUDIO_ALLOW_FORMAT_CHANGE = 0x00000002; [NativeName(NativeNameType.Const, "SDL_AUDIO_ALLOW_CHANNELS_CHANGE")] + [NativeName(NativeNameType.Value, "0x00000004")] public const int SDL_AUDIO_ALLOW_CHANNELS_CHANGE = 0x00000004; [NativeName(NativeNameType.Const, "SDL_AUDIO_ALLOW_SAMPLES_CHANGE")] + [NativeName(NativeNameType.Value, "0x00000008")] public const int SDL_AUDIO_ALLOW_SAMPLES_CHANGE = 0x00000008; [NativeName(NativeNameType.Const, "SDL_AUDIOCVT_MAX_FILTERS")] + [NativeName(NativeNameType.Value, "9")] public const int SDL_AUDIOCVT_MAX_FILTERS = 9; [NativeName(NativeNameType.Const, "SDL_MIX_MAXVOLUME")] + [NativeName(NativeNameType.Value, "128")] public const int SDL_MIX_MAXVOLUME = 128; [NativeName(NativeNameType.Const, "SDL_CACHELINE_SIZE")] + [NativeName(NativeNameType.Value, "128")] public const int SDL_CACHELINE_SIZE = 128; [NativeName(NativeNameType.Const, "SDL_ALPHA_OPAQUE")] + [NativeName(NativeNameType.Value, "255")] public const int SDL_ALPHA_OPAQUE = 255; [NativeName(NativeNameType.Const, "SDL_ALPHA_TRANSPARENT")] + [NativeName(NativeNameType.Value, "0")] public const int SDL_ALPHA_TRANSPARENT = 0; [NativeName(NativeNameType.Const, "SDL_SWSURFACE")] + [NativeName(NativeNameType.Value, "0")] public const int SDL_SWSURFACE = 0; [NativeName(NativeNameType.Const, "SDL_PREALLOC")] + [NativeName(NativeNameType.Value, "0x00000001")] public const int SDL_PREALLOC = 0x00000001; [NativeName(NativeNameType.Const, "SDL_RLEACCEL")] + [NativeName(NativeNameType.Value, "0x00000002")] public const int SDL_RLEACCEL = 0x00000002; [NativeName(NativeNameType.Const, "SDL_DONTFREE")] + [NativeName(NativeNameType.Value, "0x00000004")] public const int SDL_DONTFREE = 0x00000004; [NativeName(NativeNameType.Const, "SDL_SIMD_ALIGNED")] + [NativeName(NativeNameType.Value, "0x00000008")] public const int SDL_SIMD_ALIGNED = 0x00000008; [NativeName(NativeNameType.Const, "SDL_WINDOWPOS_UNDEFINED_MASK")] + [NativeName(NativeNameType.Value, "0x1FFF0000u")] public const uint SDL_WINDOWPOS_UNDEFINED_MASK = 0x1FFF0000u; [NativeName(NativeNameType.Const, "SDL_WINDOWPOS_CENTERED_MASK")] + [NativeName(NativeNameType.Value, "0x2FFF0000u")] public const uint SDL_WINDOWPOS_CENTERED_MASK = 0x2FFF0000u; [NativeName(NativeNameType.Const, "SDL_BUTTON_LEFT")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_BUTTON_LEFT = 1; [NativeName(NativeNameType.Const, "SDL_BUTTON_MIDDLE")] + [NativeName(NativeNameType.Value, "2")] public const int SDL_BUTTON_MIDDLE = 2; [NativeName(NativeNameType.Const, "SDL_BUTTON_RIGHT")] + [NativeName(NativeNameType.Value, "3")] public const int SDL_BUTTON_RIGHT = 3; [NativeName(NativeNameType.Const, "SDL_BUTTON_X1")] + [NativeName(NativeNameType.Value, "4")] public const int SDL_BUTTON_X1 = 4; [NativeName(NativeNameType.Const, "SDL_BUTTON_X2")] + [NativeName(NativeNameType.Value, "5")] public const int SDL_BUTTON_X2 = 5; [NativeName(NativeNameType.Const, "SDL_IPHONE_MAX_GFORCE")] + [NativeName(NativeNameType.Value, "5.0")] public const double SDL_IPHONE_MAX_GFORCE = 5.0; [NativeName(NativeNameType.Const, "SDL_VIRTUAL_JOYSTICK_DESC_VERSION")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_VIRTUAL_JOYSTICK_DESC_VERSION = 1; [NativeName(NativeNameType.Const, "SDL_JOYSTICK_AXIS_MAX")] + [NativeName(NativeNameType.Value, "32767")] public const int SDL_JOYSTICK_AXIS_MAX = 32767; [NativeName(NativeNameType.Const, "SDL_JOYSTICK_AXIS_MIN")] + [NativeName(NativeNameType.Value, "-32768")] public const int SDL_JOYSTICK_AXIS_MIN = -32768; [NativeName(NativeNameType.Const, "SDL_HAT_CENTERED")] + [NativeName(NativeNameType.Value, "0x00")] public const int SDL_HAT_CENTERED = 0x00; [NativeName(NativeNameType.Const, "SDL_HAT_UP")] + [NativeName(NativeNameType.Value, "0x01")] public const int SDL_HAT_UP = 0x01; [NativeName(NativeNameType.Const, "SDL_HAT_RIGHT")] + [NativeName(NativeNameType.Value, "0x02")] public const int SDL_HAT_RIGHT = 0x02; [NativeName(NativeNameType.Const, "SDL_HAT_DOWN")] + [NativeName(NativeNameType.Value, "0x04")] public const int SDL_HAT_DOWN = 0x04; [NativeName(NativeNameType.Const, "SDL_HAT_LEFT")] + [NativeName(NativeNameType.Value, "0x08")] public const int SDL_HAT_LEFT = 0x08; [NativeName(NativeNameType.Const, "SDL_STANDARD_GRAVITY")] + [NativeName(NativeNameType.Value, "9.80665f")] public const float SDL_STANDARD_GRAVITY = 9.80665f; [NativeName(NativeNameType.Const, "SDL_RELEASED")] + [NativeName(NativeNameType.Value, "0")] public const int SDL_RELEASED = 0; [NativeName(NativeNameType.Const, "SDL_PRESSED")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_PRESSED = 1; [NativeName(NativeNameType.Const, "SDL_TEXTEDITINGEVENT_TEXT_SIZE")] + [NativeName(NativeNameType.Value, "(32)")] public const int SDL_TEXTEDITINGEVENT_TEXT_SIZE = (32); [NativeName(NativeNameType.Const, "SDL_TEXTINPUTEVENT_TEXT_SIZE")] + [NativeName(NativeNameType.Value, "(32)")] public const int SDL_TEXTINPUTEVENT_TEXT_SIZE = (32); [NativeName(NativeNameType.Const, "SDL_QUERY")] + [NativeName(NativeNameType.Value, "-1")] public const int SDL_QUERY = -1; [NativeName(NativeNameType.Const, "SDL_IGNORE")] + [NativeName(NativeNameType.Value, "0")] public const int SDL_IGNORE = 0; [NativeName(NativeNameType.Const, "SDL_DISABLE")] + [NativeName(NativeNameType.Value, "0")] public const int SDL_DISABLE = 0; [NativeName(NativeNameType.Const, "SDL_ENABLE")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_ENABLE = 1; [NativeName(NativeNameType.Const, "SDL_HAPTIC_POLAR")] + [NativeName(NativeNameType.Value, "0")] public const int SDL_HAPTIC_POLAR = 0; [NativeName(NativeNameType.Const, "SDL_HAPTIC_CARTESIAN")] + [NativeName(NativeNameType.Value, "1")] public const int SDL_HAPTIC_CARTESIAN = 1; [NativeName(NativeNameType.Const, "SDL_HAPTIC_SPHERICAL")] + [NativeName(NativeNameType.Value, "2")] public const int SDL_HAPTIC_SPHERICAL = 2; [NativeName(NativeNameType.Const, "SDL_HAPTIC_STEERING_AXIS")] + [NativeName(NativeNameType.Value, "3")] public const int SDL_HAPTIC_STEERING_AXIS = 3; [NativeName(NativeNameType.Const, "SDL_HAPTIC_INFINITY")] + [NativeName(NativeNameType.Value, "4294967295U")] public const uint SDL_HAPTIC_INFINITY = 4294967295U; [NativeName(NativeNameType.Const, "SDL_HINT_ACCELEROMETER_AS_JOYSTICK")] + [NativeName(NativeNameType.Value, "\"SDL_ACCELEROMETER_AS_JOYSTICK\"")] public const string SDL_HINT_ACCELEROMETER_AS_JOYSTICK = "SDL_ACCELEROMETER_AS_JOYSTICK"; [NativeName(NativeNameType.Const, "SDL_HINT_ALLOW_ALT_TAB_WHILE_GRABBED")] + [NativeName(NativeNameType.Value, "\"SDL_ALLOW_ALT_TAB_WHILE_GRABBED\"")] public const string SDL_HINT_ALLOW_ALT_TAB_WHILE_GRABBED = "SDL_ALLOW_ALT_TAB_WHILE_GRABBED"; [NativeName(NativeNameType.Const, "SDL_HINT_ALLOW_TOPMOST")] + [NativeName(NativeNameType.Value, "\"SDL_ALLOW_TOPMOST\"")] public const string SDL_HINT_ALLOW_TOPMOST = "SDL_ALLOW_TOPMOST"; [NativeName(NativeNameType.Const, "SDL_HINT_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION")] + [NativeName(NativeNameType.Value, "\"SDL_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION\"")] public const string SDL_HINT_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION = "SDL_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION"; [NativeName(NativeNameType.Const, "SDL_HINT_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION")] + [NativeName(NativeNameType.Value, "\"SDL_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION\"")] public const string SDL_HINT_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION = "SDL_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION"; [NativeName(NativeNameType.Const, "SDL_HINT_ANDROID_BLOCK_ON_PAUSE")] + [NativeName(NativeNameType.Value, "\"SDL_ANDROID_BLOCK_ON_PAUSE\"")] public const string SDL_HINT_ANDROID_BLOCK_ON_PAUSE = "SDL_ANDROID_BLOCK_ON_PAUSE"; [NativeName(NativeNameType.Const, "SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO")] + [NativeName(NativeNameType.Value, "\"SDL_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO\"")] public const string SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO = "SDL_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO"; [NativeName(NativeNameType.Const, "SDL_HINT_ANDROID_TRAP_BACK_BUTTON")] + [NativeName(NativeNameType.Value, "\"SDL_ANDROID_TRAP_BACK_BUTTON\"")] public const string SDL_HINT_ANDROID_TRAP_BACK_BUTTON = "SDL_ANDROID_TRAP_BACK_BUTTON"; [NativeName(NativeNameType.Const, "SDL_HINT_APP_NAME")] + [NativeName(NativeNameType.Value, "\"SDL_APP_NAME\"")] public const string SDL_HINT_APP_NAME = "SDL_APP_NAME"; [NativeName(NativeNameType.Const, "SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS")] + [NativeName(NativeNameType.Value, "\"SDL_APPLE_TV_CONTROLLER_UI_EVENTS\"")] public const string SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS = "SDL_APPLE_TV_CONTROLLER_UI_EVENTS"; [NativeName(NativeNameType.Const, "SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION")] + [NativeName(NativeNameType.Value, "\"SDL_APPLE_TV_REMOTE_ALLOW_ROTATION\"")] public const string SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION = "SDL_APPLE_TV_REMOTE_ALLOW_ROTATION"; [NativeName(NativeNameType.Const, "SDL_HINT_AUDIO_CATEGORY")] + [NativeName(NativeNameType.Value, "\"SDL_AUDIO_CATEGORY\"")] public const string SDL_HINT_AUDIO_CATEGORY = "SDL_AUDIO_CATEGORY"; [NativeName(NativeNameType.Const, "SDL_HINT_AUDIO_DEVICE_APP_NAME")] + [NativeName(NativeNameType.Value, "\"SDL_AUDIO_DEVICE_APP_NAME\"")] public const string SDL_HINT_AUDIO_DEVICE_APP_NAME = "SDL_AUDIO_DEVICE_APP_NAME"; [NativeName(NativeNameType.Const, "SDL_HINT_AUDIO_DEVICE_STREAM_NAME")] + [NativeName(NativeNameType.Value, "\"SDL_AUDIO_DEVICE_STREAM_NAME\"")] public const string SDL_HINT_AUDIO_DEVICE_STREAM_NAME = "SDL_AUDIO_DEVICE_STREAM_NAME"; [NativeName(NativeNameType.Const, "SDL_HINT_AUDIO_DEVICE_STREAM_ROLE")] + [NativeName(NativeNameType.Value, "\"SDL_AUDIO_DEVICE_STREAM_ROLE\"")] public const string SDL_HINT_AUDIO_DEVICE_STREAM_ROLE = "SDL_AUDIO_DEVICE_STREAM_ROLE"; [NativeName(NativeNameType.Const, "SDL_HINT_AUDIO_RESAMPLING_MODE")] + [NativeName(NativeNameType.Value, "\"SDL_AUDIO_RESAMPLING_MODE\"")] public const string SDL_HINT_AUDIO_RESAMPLING_MODE = "SDL_AUDIO_RESAMPLING_MODE"; [NativeName(NativeNameType.Const, "SDL_HINT_AUTO_UPDATE_JOYSTICKS")] + [NativeName(NativeNameType.Value, "\"SDL_AUTO_UPDATE_JOYSTICKS\"")] public const string SDL_HINT_AUTO_UPDATE_JOYSTICKS = "SDL_AUTO_UPDATE_JOYSTICKS"; [NativeName(NativeNameType.Const, "SDL_HINT_AUTO_UPDATE_SENSORS")] + [NativeName(NativeNameType.Value, "\"SDL_AUTO_UPDATE_SENSORS\"")] public const string SDL_HINT_AUTO_UPDATE_SENSORS = "SDL_AUTO_UPDATE_SENSORS"; [NativeName(NativeNameType.Const, "SDL_HINT_BMP_SAVE_LEGACY_FORMAT")] + [NativeName(NativeNameType.Value, "\"SDL_BMP_SAVE_LEGACY_FORMAT\"")] public const string SDL_HINT_BMP_SAVE_LEGACY_FORMAT = "SDL_BMP_SAVE_LEGACY_FORMAT"; [NativeName(NativeNameType.Const, "SDL_HINT_DISPLAY_USABLE_BOUNDS")] + [NativeName(NativeNameType.Value, "\"SDL_DISPLAY_USABLE_BOUNDS\"")] public const string SDL_HINT_DISPLAY_USABLE_BOUNDS = "SDL_DISPLAY_USABLE_BOUNDS"; [NativeName(NativeNameType.Const, "SDL_HINT_EMSCRIPTEN_ASYNCIFY")] + [NativeName(NativeNameType.Value, "\"SDL_EMSCRIPTEN_ASYNCIFY\"")] public const string SDL_HINT_EMSCRIPTEN_ASYNCIFY = "SDL_EMSCRIPTEN_ASYNCIFY"; [NativeName(NativeNameType.Const, "SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT")] + [NativeName(NativeNameType.Value, "\"SDL_EMSCRIPTEN_KEYBOARD_ELEMENT\"")] public const string SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT = "SDL_EMSCRIPTEN_KEYBOARD_ELEMENT"; [NativeName(NativeNameType.Const, "SDL_HINT_ENABLE_SCREEN_KEYBOARD")] + [NativeName(NativeNameType.Value, "\"SDL_ENABLE_SCREEN_KEYBOARD\"")] public const string SDL_HINT_ENABLE_SCREEN_KEYBOARD = "SDL_ENABLE_SCREEN_KEYBOARD"; [NativeName(NativeNameType.Const, "SDL_HINT_ENABLE_STEAM_CONTROLLERS")] + [NativeName(NativeNameType.Value, "\"SDL_ENABLE_STEAM_CONTROLLERS\"")] public const string SDL_HINT_ENABLE_STEAM_CONTROLLERS = "SDL_ENABLE_STEAM_CONTROLLERS"; [NativeName(NativeNameType.Const, "SDL_HINT_EVENT_LOGGING")] + [NativeName(NativeNameType.Value, "\"SDL_EVENT_LOGGING\"")] public const string SDL_HINT_EVENT_LOGGING = "SDL_EVENT_LOGGING"; [NativeName(NativeNameType.Const, "SDL_HINT_FORCE_RAISEWINDOW")] + [NativeName(NativeNameType.Value, "\"SDL_HINT_FORCE_RAISEWINDOW\"")] public const string SDL_HINT_FORCE_RAISEWINDOW = "SDL_HINT_FORCE_RAISEWINDOW"; [NativeName(NativeNameType.Const, "SDL_HINT_FRAMEBUFFER_ACCELERATION")] + [NativeName(NativeNameType.Value, "\"SDL_FRAMEBUFFER_ACCELERATION\"")] public const string SDL_HINT_FRAMEBUFFER_ACCELERATION = "SDL_FRAMEBUFFER_ACCELERATION"; [NativeName(NativeNameType.Const, "SDL_HINT_GAMECONTROLLERCONFIG")] + [NativeName(NativeNameType.Value, "\"SDL_GAMECONTROLLERCONFIG\"")] public const string SDL_HINT_GAMECONTROLLERCONFIG = "SDL_GAMECONTROLLERCONFIG"; [NativeName(NativeNameType.Const, "SDL_HINT_GAMECONTROLLERCONFIG_FILE")] + [NativeName(NativeNameType.Value, "\"SDL_GAMECONTROLLERCONFIG_FILE\"")] public const string SDL_HINT_GAMECONTROLLERCONFIG_FILE = "SDL_GAMECONTROLLERCONFIG_FILE"; [NativeName(NativeNameType.Const, "SDL_HINT_GAMECONTROLLERTYPE")] + [NativeName(NativeNameType.Value, "\"SDL_GAMECONTROLLERTYPE\"")] public const string SDL_HINT_GAMECONTROLLERTYPE = "SDL_GAMECONTROLLERTYPE"; [NativeName(NativeNameType.Const, "SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES")] + [NativeName(NativeNameType.Value, "\"SDL_GAMECONTROLLER_IGNORE_DEVICES\"")] public const string SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES = "SDL_GAMECONTROLLER_IGNORE_DEVICES"; [NativeName(NativeNameType.Const, "SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT")] + [NativeName(NativeNameType.Value, "\"SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT\"")] public const string SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT = "SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT"; [NativeName(NativeNameType.Const, "SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS")] + [NativeName(NativeNameType.Value, "\"SDL_GAMECONTROLLER_USE_BUTTON_LABELS\"")] public const string SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS = "SDL_GAMECONTROLLER_USE_BUTTON_LABELS"; [NativeName(NativeNameType.Const, "SDL_HINT_GRAB_KEYBOARD")] + [NativeName(NativeNameType.Value, "\"SDL_GRAB_KEYBOARD\"")] public const string SDL_HINT_GRAB_KEYBOARD = "SDL_GRAB_KEYBOARD"; [NativeName(NativeNameType.Const, "SDL_HINT_HIDAPI_IGNORE_DEVICES")] + [NativeName(NativeNameType.Value, "\"SDL_HIDAPI_IGNORE_DEVICES\"")] public const string SDL_HINT_HIDAPI_IGNORE_DEVICES = "SDL_HIDAPI_IGNORE_DEVICES"; [NativeName(NativeNameType.Const, "SDL_HINT_IDLE_TIMER_DISABLED")] + [NativeName(NativeNameType.Value, "\"SDL_IOS_IDLE_TIMER_DISABLED\"")] public const string SDL_HINT_IDLE_TIMER_DISABLED = "SDL_IOS_IDLE_TIMER_DISABLED"; [NativeName(NativeNameType.Const, "SDL_HINT_IME_INTERNAL_EDITING")] + [NativeName(NativeNameType.Value, "\"SDL_IME_INTERNAL_EDITING\"")] public const string SDL_HINT_IME_INTERNAL_EDITING = "SDL_IME_INTERNAL_EDITING"; [NativeName(NativeNameType.Const, "SDL_HINT_IME_SHOW_UI")] + [NativeName(NativeNameType.Value, "\"SDL_IME_SHOW_UI\"")] public const string SDL_HINT_IME_SHOW_UI = "SDL_IME_SHOW_UI"; [NativeName(NativeNameType.Const, "SDL_HINT_IME_SUPPORT_EXTENDED_TEXT")] + [NativeName(NativeNameType.Value, "\"SDL_IME_SUPPORT_EXTENDED_TEXT\"")] public const string SDL_HINT_IME_SUPPORT_EXTENDED_TEXT = "SDL_IME_SUPPORT_EXTENDED_TEXT"; [NativeName(NativeNameType.Const, "SDL_HINT_IOS_HIDE_HOME_INDICATOR")] + [NativeName(NativeNameType.Value, "\"SDL_IOS_HIDE_HOME_INDICATOR\"")] public const string SDL_HINT_IOS_HIDE_HOME_INDICATOR = "SDL_IOS_HIDE_HOME_INDICATOR"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS\"")] public const string SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS = "SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI\"")] public const string SDL_HINT_JOYSTICK_HIDAPI = "SDL_JOYSTICK_HIDAPI"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_GAMECUBE\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE = "SDL_JOYSTICK_HIDAPI_GAMECUBE"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_GAMECUBE_RUMBLE_BRAKE")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_GAMECUBE_RUMBLE_BRAKE\"")] public const string SDL_HINT_JOYSTICK_GAMECUBE_RUMBLE_BRAKE = "SDL_JOYSTICK_GAMECUBE_RUMBLE_BRAKE"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_JOY_CONS\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS = "SDL_JOYSTICK_HIDAPI_JOY_CONS"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_COMBINE_JOY_CONS\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS = "SDL_JOYSTICK_HIDAPI_COMBINE_JOY_CONS"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS = "SDL_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_LUNA")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_LUNA\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_LUNA = "SDL_JOYSTICK_HIDAPI_LUNA"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_NINTENDO_CLASSIC\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC = "SDL_JOYSTICK_HIDAPI_NINTENDO_CLASSIC"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_SHIELD")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_SHIELD\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_SHIELD = "SDL_JOYSTICK_HIDAPI_SHIELD"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_PS3")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_PS3\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_PS3 = "SDL_JOYSTICK_HIDAPI_PS3"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_PS4")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_PS4\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_PS4 = "SDL_JOYSTICK_HIDAPI_PS4"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_PS4_RUMBLE\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE = "SDL_JOYSTICK_HIDAPI_PS4_RUMBLE"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_PS5")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_PS5\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_PS5 = "SDL_JOYSTICK_HIDAPI_PS5"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_PS5_PLAYER_LED\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED = "SDL_JOYSTICK_HIDAPI_PS5_PLAYER_LED"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_PS5_RUMBLE\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE = "SDL_JOYSTICK_HIDAPI_PS5_RUMBLE"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_STADIA")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_STADIA\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_STADIA = "SDL_JOYSTICK_HIDAPI_STADIA"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_STEAM")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_STEAM\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_STEAM = "SDL_JOYSTICK_HIDAPI_STEAM"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_SWITCH")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_SWITCH\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_SWITCH = "SDL_JOYSTICK_HIDAPI_SWITCH"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_SWITCH_HOME_LED\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED = "SDL_JOYSTICK_HIDAPI_SWITCH_HOME_LED"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_JOYCON_HOME_LED\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED = "SDL_JOYSTICK_HIDAPI_JOYCON_HOME_LED"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED = "SDL_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_WII")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_WII\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_WII = "SDL_JOYSTICK_HIDAPI_WII"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_WII_PLAYER_LED\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED = "SDL_JOYSTICK_HIDAPI_WII_PLAYER_LED"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_XBOX")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_XBOX\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_XBOX = "SDL_JOYSTICK_HIDAPI_XBOX"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_XBOX_360")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_XBOX_360\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_XBOX_360 = "SDL_JOYSTICK_HIDAPI_XBOX_360"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED = "SDL_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_XBOX_360_WIRELESS\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS = "SDL_JOYSTICK_HIDAPI_XBOX_360_WIRELESS"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_XBOX_ONE\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE = "SDL_JOYSTICK_HIDAPI_XBOX_ONE"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED\"")] public const string SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED = "SDL_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_RAWINPUT")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_RAWINPUT\"")] public const string SDL_HINT_JOYSTICK_RAWINPUT = "SDL_JOYSTICK_RAWINPUT"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_RAWINPUT_CORRELATE_XINPUT\"")] public const string SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT = "SDL_JOYSTICK_RAWINPUT_CORRELATE_XINPUT"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_ROG_CHAKRAM")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_ROG_CHAKRAM\"")] public const string SDL_HINT_JOYSTICK_ROG_CHAKRAM = "SDL_JOYSTICK_ROG_CHAKRAM"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_THREAD")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_THREAD\"")] public const string SDL_HINT_JOYSTICK_THREAD = "SDL_JOYSTICK_THREAD"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_WGI")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_WGI\"")] public const string SDL_HINT_JOYSTICK_WGI = "SDL_JOYSTICK_WGI"; [NativeName(NativeNameType.Const, "SDL_HINT_KMSDRM_REQUIRE_DRM_MASTER")] + [NativeName(NativeNameType.Value, "\"SDL_KMSDRM_REQUIRE_DRM_MASTER\"")] public const string SDL_HINT_KMSDRM_REQUIRE_DRM_MASTER = "SDL_KMSDRM_REQUIRE_DRM_MASTER"; [NativeName(NativeNameType.Const, "SDL_HINT_JOYSTICK_DEVICE")] + [NativeName(NativeNameType.Value, "\"SDL_JOYSTICK_DEVICE\"")] public const string SDL_HINT_JOYSTICK_DEVICE = "SDL_JOYSTICK_DEVICE"; [NativeName(NativeNameType.Const, "SDL_HINT_LINUX_DIGITAL_HATS")] + [NativeName(NativeNameType.Value, "\"SDL_LINUX_DIGITAL_HATS\"")] public const string SDL_HINT_LINUX_DIGITAL_HATS = "SDL_LINUX_DIGITAL_HATS"; [NativeName(NativeNameType.Const, "SDL_HINT_LINUX_HAT_DEADZONES")] + [NativeName(NativeNameType.Value, "\"SDL_LINUX_HAT_DEADZONES\"")] public const string SDL_HINT_LINUX_HAT_DEADZONES = "SDL_LINUX_HAT_DEADZONES"; [NativeName(NativeNameType.Const, "SDL_HINT_LINUX_JOYSTICK_CLASSIC")] + [NativeName(NativeNameType.Value, "\"SDL_LINUX_JOYSTICK_CLASSIC\"")] public const string SDL_HINT_LINUX_JOYSTICK_CLASSIC = "SDL_LINUX_JOYSTICK_CLASSIC"; [NativeName(NativeNameType.Const, "SDL_HINT_LINUX_JOYSTICK_DEADZONES")] + [NativeName(NativeNameType.Value, "\"SDL_LINUX_JOYSTICK_DEADZONES\"")] public const string SDL_HINT_LINUX_JOYSTICK_DEADZONES = "SDL_LINUX_JOYSTICK_DEADZONES"; [NativeName(NativeNameType.Const, "SDL_HINT_MAC_BACKGROUND_APP")] + [NativeName(NativeNameType.Value, "\"SDL_MAC_BACKGROUND_APP\"")] public const string SDL_HINT_MAC_BACKGROUND_APP = "SDL_MAC_BACKGROUND_APP"; [NativeName(NativeNameType.Const, "SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK")] + [NativeName(NativeNameType.Value, "\"SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK\"")] public const string SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK = "SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK"; [NativeName(NativeNameType.Const, "SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH")] + [NativeName(NativeNameType.Value, "\"SDL_MAC_OPENGL_ASYNC_DISPATCH\"")] public const string SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH = "SDL_MAC_OPENGL_ASYNC_DISPATCH"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_DOUBLE_CLICK_RADIUS\"")] public const string SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS = "SDL_MOUSE_DOUBLE_CLICK_RADIUS"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_DOUBLE_CLICK_TIME")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_DOUBLE_CLICK_TIME\"")] public const string SDL_HINT_MOUSE_DOUBLE_CLICK_TIME = "SDL_MOUSE_DOUBLE_CLICK_TIME"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_FOCUS_CLICKTHROUGH\"")] public const string SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH = "SDL_MOUSE_FOCUS_CLICKTHROUGH"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_NORMAL_SPEED_SCALE")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_NORMAL_SPEED_SCALE\"")] public const string SDL_HINT_MOUSE_NORMAL_SPEED_SCALE = "SDL_MOUSE_NORMAL_SPEED_SCALE"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_RELATIVE_MODE_CENTER")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_RELATIVE_MODE_CENTER\"")] public const string SDL_HINT_MOUSE_RELATIVE_MODE_CENTER = "SDL_MOUSE_RELATIVE_MODE_CENTER"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_RELATIVE_MODE_WARP")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_RELATIVE_MODE_WARP\"")] public const string SDL_HINT_MOUSE_RELATIVE_MODE_WARP = "SDL_MOUSE_RELATIVE_MODE_WARP"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_RELATIVE_SCALING")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_RELATIVE_SCALING\"")] public const string SDL_HINT_MOUSE_RELATIVE_SCALING = "SDL_MOUSE_RELATIVE_SCALING"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_RELATIVE_SPEED_SCALE\"")] public const string SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE = "SDL_MOUSE_RELATIVE_SPEED_SCALE"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_RELATIVE_SYSTEM_SCALE\"")] public const string SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE = "SDL_MOUSE_RELATIVE_SYSTEM_SCALE"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_RELATIVE_WARP_MOTION")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_RELATIVE_WARP_MOTION\"")] public const string SDL_HINT_MOUSE_RELATIVE_WARP_MOTION = "SDL_MOUSE_RELATIVE_WARP_MOTION"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_TOUCH_EVENTS")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_TOUCH_EVENTS\"")] public const string SDL_HINT_MOUSE_TOUCH_EVENTS = "SDL_MOUSE_TOUCH_EVENTS"; [NativeName(NativeNameType.Const, "SDL_HINT_MOUSE_AUTO_CAPTURE")] + [NativeName(NativeNameType.Value, "\"SDL_MOUSE_AUTO_CAPTURE\"")] public const string SDL_HINT_MOUSE_AUTO_CAPTURE = "SDL_MOUSE_AUTO_CAPTURE"; [NativeName(NativeNameType.Const, "SDL_HINT_NO_SIGNAL_HANDLERS")] + [NativeName(NativeNameType.Value, "\"SDL_NO_SIGNAL_HANDLERS\"")] public const string SDL_HINT_NO_SIGNAL_HANDLERS = "SDL_NO_SIGNAL_HANDLERS"; [NativeName(NativeNameType.Const, "SDL_HINT_OPENGL_ES_DRIVER")] + [NativeName(NativeNameType.Value, "\"SDL_OPENGL_ES_DRIVER\"")] public const string SDL_HINT_OPENGL_ES_DRIVER = "SDL_OPENGL_ES_DRIVER"; [NativeName(NativeNameType.Const, "SDL_HINT_ORIENTATIONS")] + [NativeName(NativeNameType.Value, "\"SDL_IOS_ORIENTATIONS\"")] public const string SDL_HINT_ORIENTATIONS = "SDL_IOS_ORIENTATIONS"; [NativeName(NativeNameType.Const, "SDL_HINT_POLL_SENTINEL")] + [NativeName(NativeNameType.Value, "\"SDL_POLL_SENTINEL\"")] public const string SDL_HINT_POLL_SENTINEL = "SDL_POLL_SENTINEL"; [NativeName(NativeNameType.Const, "SDL_HINT_PREFERRED_LOCALES")] + [NativeName(NativeNameType.Value, "\"SDL_PREFERRED_LOCALES\"")] public const string SDL_HINT_PREFERRED_LOCALES = "SDL_PREFERRED_LOCALES"; [NativeName(NativeNameType.Const, "SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION")] + [NativeName(NativeNameType.Value, "\"SDL_QTWAYLAND_CONTENT_ORIENTATION\"")] public const string SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION = "SDL_QTWAYLAND_CONTENT_ORIENTATION"; [NativeName(NativeNameType.Const, "SDL_HINT_QTWAYLAND_WINDOW_FLAGS")] + [NativeName(NativeNameType.Value, "\"SDL_QTWAYLAND_WINDOW_FLAGS\"")] public const string SDL_HINT_QTWAYLAND_WINDOW_FLAGS = "SDL_QTWAYLAND_WINDOW_FLAGS"; [NativeName(NativeNameType.Const, "SDL_HINT_RENDER_BATCHING")] + [NativeName(NativeNameType.Value, "\"SDL_RENDER_BATCHING\"")] public const string SDL_HINT_RENDER_BATCHING = "SDL_RENDER_BATCHING"; [NativeName(NativeNameType.Const, "SDL_HINT_RENDER_LINE_METHOD")] + [NativeName(NativeNameType.Value, "\"SDL_RENDER_LINE_METHOD\"")] public const string SDL_HINT_RENDER_LINE_METHOD = "SDL_RENDER_LINE_METHOD"; [NativeName(NativeNameType.Const, "SDL_HINT_RENDER_DIRECT3D11_DEBUG")] + [NativeName(NativeNameType.Value, "\"SDL_RENDER_DIRECT3D11_DEBUG\"")] public const string SDL_HINT_RENDER_DIRECT3D11_DEBUG = "SDL_RENDER_DIRECT3D11_DEBUG"; [NativeName(NativeNameType.Const, "SDL_HINT_RENDER_DIRECT3D_THREADSAFE")] + [NativeName(NativeNameType.Value, "\"SDL_RENDER_DIRECT3D_THREADSAFE\"")] public const string SDL_HINT_RENDER_DIRECT3D_THREADSAFE = "SDL_RENDER_DIRECT3D_THREADSAFE"; [NativeName(NativeNameType.Const, "SDL_HINT_RENDER_DRIVER")] + [NativeName(NativeNameType.Value, "\"SDL_RENDER_DRIVER\"")] public const string SDL_HINT_RENDER_DRIVER = "SDL_RENDER_DRIVER"; [NativeName(NativeNameType.Const, "SDL_HINT_RENDER_LOGICAL_SIZE_MODE")] + [NativeName(NativeNameType.Value, "\"SDL_RENDER_LOGICAL_SIZE_MODE\"")] public const string SDL_HINT_RENDER_LOGICAL_SIZE_MODE = "SDL_RENDER_LOGICAL_SIZE_MODE"; [NativeName(NativeNameType.Const, "SDL_HINT_RENDER_OPENGL_SHADERS")] + [NativeName(NativeNameType.Value, "\"SDL_RENDER_OPENGL_SHADERS\"")] public const string SDL_HINT_RENDER_OPENGL_SHADERS = "SDL_RENDER_OPENGL_SHADERS"; [NativeName(NativeNameType.Const, "SDL_HINT_RENDER_SCALE_QUALITY")] + [NativeName(NativeNameType.Value, "\"SDL_RENDER_SCALE_QUALITY\"")] public const string SDL_HINT_RENDER_SCALE_QUALITY = "SDL_RENDER_SCALE_QUALITY"; [NativeName(NativeNameType.Const, "SDL_HINT_RENDER_VSYNC")] + [NativeName(NativeNameType.Value, "\"SDL_RENDER_VSYNC\"")] public const string SDL_HINT_RENDER_VSYNC = "SDL_RENDER_VSYNC"; [NativeName(NativeNameType.Const, "SDL_HINT_PS2_DYNAMIC_VSYNC")] + [NativeName(NativeNameType.Value, "\"SDL_PS2_DYNAMIC_VSYNC\"")] public const string SDL_HINT_PS2_DYNAMIC_VSYNC = "SDL_PS2_DYNAMIC_VSYNC"; [NativeName(NativeNameType.Const, "SDL_HINT_RETURN_KEY_HIDES_IME")] + [NativeName(NativeNameType.Value, "\"SDL_RETURN_KEY_HIDES_IME\"")] public const string SDL_HINT_RETURN_KEY_HIDES_IME = "SDL_RETURN_KEY_HIDES_IME"; [NativeName(NativeNameType.Const, "SDL_HINT_RPI_VIDEO_LAYER")] + [NativeName(NativeNameType.Value, "\"SDL_RPI_VIDEO_LAYER\"")] public const string SDL_HINT_RPI_VIDEO_LAYER = "SDL_RPI_VIDEO_LAYER"; [NativeName(NativeNameType.Const, "SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME")] + [NativeName(NativeNameType.Value, "\"SDL_SCREENSAVER_INHIBIT_ACTIVITY_NAME\"")] public const string SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME = "SDL_SCREENSAVER_INHIBIT_ACTIVITY_NAME"; [NativeName(NativeNameType.Const, "SDL_HINT_THREAD_FORCE_REALTIME_TIME_CRITICAL")] + [NativeName(NativeNameType.Value, "\"SDL_THREAD_FORCE_REALTIME_TIME_CRITICAL\"")] public const string SDL_HINT_THREAD_FORCE_REALTIME_TIME_CRITICAL = "SDL_THREAD_FORCE_REALTIME_TIME_CRITICAL"; [NativeName(NativeNameType.Const, "SDL_HINT_THREAD_PRIORITY_POLICY")] + [NativeName(NativeNameType.Value, "\"SDL_THREAD_PRIORITY_POLICY\"")] public const string SDL_HINT_THREAD_PRIORITY_POLICY = "SDL_THREAD_PRIORITY_POLICY"; [NativeName(NativeNameType.Const, "SDL_HINT_THREAD_STACK_SIZE")] + [NativeName(NativeNameType.Value, "\"SDL_THREAD_STACK_SIZE\"")] public const string SDL_HINT_THREAD_STACK_SIZE = "SDL_THREAD_STACK_SIZE"; [NativeName(NativeNameType.Const, "SDL_HINT_TIMER_RESOLUTION")] + [NativeName(NativeNameType.Value, "\"SDL_TIMER_RESOLUTION\"")] public const string SDL_HINT_TIMER_RESOLUTION = "SDL_TIMER_RESOLUTION"; [NativeName(NativeNameType.Const, "SDL_HINT_TOUCH_MOUSE_EVENTS")] + [NativeName(NativeNameType.Value, "\"SDL_TOUCH_MOUSE_EVENTS\"")] public const string SDL_HINT_TOUCH_MOUSE_EVENTS = "SDL_TOUCH_MOUSE_EVENTS"; [NativeName(NativeNameType.Const, "SDL_HINT_VITA_TOUCH_MOUSE_DEVICE")] + [NativeName(NativeNameType.Value, "\"SDL_HINT_VITA_TOUCH_MOUSE_DEVICE\"")] public const string SDL_HINT_VITA_TOUCH_MOUSE_DEVICE = "SDL_HINT_VITA_TOUCH_MOUSE_DEVICE"; [NativeName(NativeNameType.Const, "SDL_HINT_TV_REMOTE_AS_JOYSTICK")] + [NativeName(NativeNameType.Value, "\"SDL_TV_REMOTE_AS_JOYSTICK\"")] public const string SDL_HINT_TV_REMOTE_AS_JOYSTICK = "SDL_TV_REMOTE_AS_JOYSTICK"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_ALLOW_SCREENSAVER")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_ALLOW_SCREENSAVER\"")] public const string SDL_HINT_VIDEO_ALLOW_SCREENSAVER = "SDL_VIDEO_ALLOW_SCREENSAVER"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_DOUBLE_BUFFER")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_DOUBLE_BUFFER\"")] public const string SDL_HINT_VIDEO_DOUBLE_BUFFER = "SDL_VIDEO_DOUBLE_BUFFER"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_EGL_ALLOW_TRANSPARENCY\"")] public const string SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY = "SDL_VIDEO_EGL_ALLOW_TRANSPARENCY"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_EXTERNAL_CONTEXT")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_EXTERNAL_CONTEXT\"")] public const string SDL_HINT_VIDEO_EXTERNAL_CONTEXT = "SDL_VIDEO_EXTERNAL_CONTEXT"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_HIGHDPI_DISABLED")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_HIGHDPI_DISABLED\"")] public const string SDL_HINT_VIDEO_HIGHDPI_DISABLED = "SDL_VIDEO_HIGHDPI_DISABLED"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_MAC_FULLSCREEN_SPACES\"")] public const string SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES = "SDL_VIDEO_MAC_FULSCREEN_SPACES"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS\"")] public const string SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS = "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_WAYLAND_ALLOW_LIBDECOR")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_WAYLAND_ALLOW_LIBDECOR\"")] public const string SDL_HINT_VIDEO_WAYLAND_ALLOW_LIBDECOR = "SDL_VIDEO_WAYLAND_ALLOW_LIBDECOR"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_WAYLAND_PREFER_LIBDECOR\"")] public const string SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR = "SDL_VIDEO_WAYLAND_PREFER_LIBDECOR"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_WAYLAND_MODE_EMULATION")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_WAYLAND_MODE_EMULATION\"")] public const string SDL_HINT_VIDEO_WAYLAND_MODE_EMULATION = "SDL_VIDEO_WAYLAND_MODE_EMULATION"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_WAYLAND_EMULATE_MOUSE_WARP\"")] public const string SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP = "SDL_VIDEO_WAYLAND_EMULATE_MOUSE_WARP"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT\"")] public const string SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT = "SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_FOREIGN_WINDOW_OPENGL")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_FOREIGN_WINDOW_OPENGL\"")] public const string SDL_HINT_VIDEO_FOREIGN_WINDOW_OPENGL = "SDL_VIDEO_FOREIGN_WINDOW_OPENGL"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_FOREIGN_WINDOW_VULKAN")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_FOREIGN_WINDOW_VULKAN\"")] public const string SDL_HINT_VIDEO_FOREIGN_WINDOW_VULKAN = "SDL_VIDEO_FOREIGN_WINDOW_VULKAN"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_WIN_D3DCOMPILER")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_WIN_D3DCOMPILER\"")] public const string SDL_HINT_VIDEO_WIN_D3DCOMPILER = "SDL_VIDEO_WIN_D3DCOMPILER"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_X11_FORCE_EGL")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_X11_FORCE_EGL\"")] public const string SDL_HINT_VIDEO_X11_FORCE_EGL = "SDL_VIDEO_X11_FORCE_EGL"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR\"")] public const string SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR = "SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_X11_NET_WM_PING")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_X11_NET_WM_PING\"")] public const string SDL_HINT_VIDEO_X11_NET_WM_PING = "SDL_VIDEO_X11_NET_WM_PING"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_X11_WINDOW_VISUALID")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_X11_WINDOW_VISUALID\"")] public const string SDL_HINT_VIDEO_X11_WINDOW_VISUALID = "SDL_VIDEO_X11_WINDOW_VISUALID"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_X11_XINERAMA")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_X11_XINERAMA\"")] public const string SDL_HINT_VIDEO_X11_XINERAMA = "SDL_VIDEO_X11_XINERAMA"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_X11_XRANDR")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_X11_XRANDR\"")] public const string SDL_HINT_VIDEO_X11_XRANDR = "SDL_VIDEO_X11_XRANDR"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEO_X11_XVIDMODE")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEO_X11_XVIDMODE\"")] public const string SDL_HINT_VIDEO_X11_XVIDMODE = "SDL_VIDEO_X11_XVIDMODE"; [NativeName(NativeNameType.Const, "SDL_HINT_WAVE_FACT_CHUNK")] + [NativeName(NativeNameType.Value, "\"SDL_WAVE_FACT_CHUNK\"")] public const string SDL_HINT_WAVE_FACT_CHUNK = "SDL_WAVE_FACT_CHUNK"; [NativeName(NativeNameType.Const, "SDL_HINT_WAVE_RIFF_CHUNK_SIZE")] + [NativeName(NativeNameType.Value, "\"SDL_WAVE_RIFF_CHUNK_SIZE\"")] public const string SDL_HINT_WAVE_RIFF_CHUNK_SIZE = "SDL_WAVE_RIFF_CHUNK_SIZE"; [NativeName(NativeNameType.Const, "SDL_HINT_WAVE_TRUNCATION")] + [NativeName(NativeNameType.Value, "\"SDL_WAVE_TRUNCATION\"")] public const string SDL_HINT_WAVE_TRUNCATION = "SDL_WAVE_TRUNCATION"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOWS_DISABLE_THREAD_NAMING\"")] public const string SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING = "SDL_WINDOWS_DISABLE_THREAD_NAMING"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOWS_ENABLE_MENU_MNEMONICS\"")] public const string SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS = "SDL_WINDOWS_ENABLE_MENU_MNEMONICS"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOWS_ENABLE_MESSAGELOOP\"")] public const string SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP = "SDL_WINDOWS_ENABLE_MESSAGELOOP"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS\"")] public const string SDL_HINT_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS = "SDL_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOWS_FORCE_SEMAPHORE_KERNEL")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOWS_FORCE_SEMAPHORE_KERNEL\"")] public const string SDL_HINT_WINDOWS_FORCE_SEMAPHORE_KERNEL = "SDL_WINDOWS_FORCE_SEMAPHORE_KERNEL"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOWS_INTRESOURCE_ICON")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOWS_INTRESOURCE_ICON\"")] public const string SDL_HINT_WINDOWS_INTRESOURCE_ICON = "SDL_WINDOWS_INTRESOURCE_ICON"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOWS_INTRESOURCE_ICON_SMALL\"")] public const string SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL = "SDL_WINDOWS_INTRESOURCE_ICON_SMALL"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOWS_NO_CLOSE_ON_ALT_F4\"")] public const string SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4 = "SDL_WINDOWS_NO_CLOSE_ON_ALT_F4"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOWS_USE_D3D9EX")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOWS_USE_D3D9EX\"")] public const string SDL_HINT_WINDOWS_USE_D3D9EX = "SDL_WINDOWS_USE_D3D9EX"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOWS_DPI_AWARENESS")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOWS_DPI_AWARENESS\"")] public const string SDL_HINT_WINDOWS_DPI_AWARENESS = "SDL_WINDOWS_DPI_AWARENESS"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOWS_DPI_SCALING")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOWS_DPI_SCALING\"")] public const string SDL_HINT_WINDOWS_DPI_SCALING = "SDL_WINDOWS_DPI_SCALING"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN\"")] public const string SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN = "SDL_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN"; [NativeName(NativeNameType.Const, "SDL_HINT_WINDOW_NO_ACTIVATION_WHEN_SHOWN")] + [NativeName(NativeNameType.Value, "\"SDL_WINDOW_NO_ACTIVATION_WHEN_SHOWN\"")] public const string SDL_HINT_WINDOW_NO_ACTIVATION_WHEN_SHOWN = "SDL_WINDOW_NO_ACTIVATION_WHEN_SHOWN"; [NativeName(NativeNameType.Const, "SDL_HINT_WINRT_HANDLE_BACK_BUTTON")] + [NativeName(NativeNameType.Value, "\"SDL_WINRT_HANDLE_BACK_BUTTON\"")] public const string SDL_HINT_WINRT_HANDLE_BACK_BUTTON = "SDL_WINRT_HANDLE_BACK_BUTTON"; [NativeName(NativeNameType.Const, "SDL_HINT_WINRT_PRIVACY_POLICY_LABEL")] + [NativeName(NativeNameType.Value, "\"SDL_WINRT_PRIVACY_POLICY_LABEL\"")] public const string SDL_HINT_WINRT_PRIVACY_POLICY_LABEL = "SDL_WINRT_PRIVACY_POLICY_LABEL"; [NativeName(NativeNameType.Const, "SDL_HINT_WINRT_PRIVACY_POLICY_URL")] + [NativeName(NativeNameType.Value, "\"SDL_WINRT_PRIVACY_POLICY_URL\"")] public const string SDL_HINT_WINRT_PRIVACY_POLICY_URL = "SDL_WINRT_PRIVACY_POLICY_URL"; [NativeName(NativeNameType.Const, "SDL_HINT_X11_FORCE_OVERRIDE_REDIRECT")] + [NativeName(NativeNameType.Value, "\"SDL_X11_FORCE_OVERRIDE_REDIRECT\"")] public const string SDL_HINT_X11_FORCE_OVERRIDE_REDIRECT = "SDL_X11_FORCE_OVERRIDE_REDIRECT"; [NativeName(NativeNameType.Const, "SDL_HINT_XINPUT_ENABLED")] + [NativeName(NativeNameType.Value, "\"SDL_XINPUT_ENABLED\"")] public const string SDL_HINT_XINPUT_ENABLED = "SDL_XINPUT_ENABLED"; [NativeName(NativeNameType.Const, "SDL_HINT_DIRECTINPUT_ENABLED")] + [NativeName(NativeNameType.Value, "\"SDL_DIRECTINPUT_ENABLED\"")] public const string SDL_HINT_DIRECTINPUT_ENABLED = "SDL_DIRECTINPUT_ENABLED"; [NativeName(NativeNameType.Const, "SDL_HINT_XINPUT_USE_OLD_JOYSTICK_MAPPING")] + [NativeName(NativeNameType.Value, "\"SDL_XINPUT_USE_OLD_JOYSTICK_MAPPING\"")] public const string SDL_HINT_XINPUT_USE_OLD_JOYSTICK_MAPPING = "SDL_XINPUT_USE_OLD_JOYSTICK_MAPPING"; [NativeName(NativeNameType.Const, "SDL_HINT_AUDIO_INCLUDE_MONITORS")] + [NativeName(NativeNameType.Value, "\"SDL_AUDIO_INCLUDE_MONITORS\"")] public const string SDL_HINT_AUDIO_INCLUDE_MONITORS = "SDL_AUDIO_INCLUDE_MONITORS"; [NativeName(NativeNameType.Const, "SDL_HINT_X11_WINDOW_TYPE")] + [NativeName(NativeNameType.Value, "\"SDL_X11_WINDOW_TYPE\"")] public const string SDL_HINT_X11_WINDOW_TYPE = "SDL_X11_WINDOW_TYPE"; [NativeName(NativeNameType.Const, "SDL_HINT_QUIT_ON_LAST_WINDOW_CLOSE")] + [NativeName(NativeNameType.Value, "\"SDL_QUIT_ON_LAST_WINDOW_CLOSE\"")] public const string SDL_HINT_QUIT_ON_LAST_WINDOW_CLOSE = "SDL_QUIT_ON_LAST_WINDOW_CLOSE"; [NativeName(NativeNameType.Const, "SDL_HINT_VIDEODRIVER")] + [NativeName(NativeNameType.Value, "\"SDL_VIDEODRIVER\"")] public const string SDL_HINT_VIDEODRIVER = "SDL_VIDEODRIVER"; [NativeName(NativeNameType.Const, "SDL_HINT_AUDIODRIVER")] + [NativeName(NativeNameType.Value, "\"SDL_AUDIODRIVER\"")] public const string SDL_HINT_AUDIODRIVER = "SDL_AUDIODRIVER"; [NativeName(NativeNameType.Const, "SDL_HINT_KMSDRM_DEVICE_INDEX")] + [NativeName(NativeNameType.Value, "\"SDL_KMSDRM_DEVICE_INDEX\"")] public const string SDL_HINT_KMSDRM_DEVICE_INDEX = "SDL_KMSDRM_DEVICE_INDEX"; [NativeName(NativeNameType.Const, "SDL_HINT_TRACKPAD_IS_TOUCH_ONLY")] + [NativeName(NativeNameType.Value, "\"SDL_TRACKPAD_IS_TOUCH_ONLY\"")] public const string SDL_HINT_TRACKPAD_IS_TOUCH_ONLY = "SDL_TRACKPAD_IS_TOUCH_ONLY"; [NativeName(NativeNameType.Const, "SDL_MAX_LOG_MESSAGE")] + [NativeName(NativeNameType.Value, "4096")] public const int SDL_MAX_LOG_MESSAGE = 4096; [NativeName(NativeNameType.Const, "SDL_NONSHAPEABLE_WINDOW")] + [NativeName(NativeNameType.Value, "-1")] public const int SDL_NONSHAPEABLE_WINDOW = -1; [NativeName(NativeNameType.Const, "SDL_INVALID_SHAPE_ARGUMENT")] + [NativeName(NativeNameType.Value, "-2")] public const int SDL_INVALID_SHAPE_ARGUMENT = -2; [NativeName(NativeNameType.Const, "SDL_WINDOW_LACKS_SHAPE")] + [NativeName(NativeNameType.Value, "-3")] public const int SDL_WINDOW_LACKS_SHAPE = -3; [NativeName(NativeNameType.Const, "SDL_MAJOR_VERSION")] + [NativeName(NativeNameType.Value, "2")] public const int SDL_MAJOR_VERSION = 2; [NativeName(NativeNameType.Const, "SDL_MINOR_VERSION")] + [NativeName(NativeNameType.Value, "28")] public const int SDL_MINOR_VERSION = 28; [NativeName(NativeNameType.Const, "SDL_PATCHLEVEL")] + [NativeName(NativeNameType.Value, "2")] public const int SDL_PATCHLEVEL = 2; [NativeName(NativeNameType.Const, "SDL_INIT_TIMER")] + [NativeName(NativeNameType.Value, "0x00000001u")] public const uint SDL_INIT_TIMER = 0x00000001u; [NativeName(NativeNameType.Const, "SDL_INIT_AUDIO")] + [NativeName(NativeNameType.Value, "0x00000010u")] public const uint SDL_INIT_AUDIO = 0x00000010u; [NativeName(NativeNameType.Const, "SDL_INIT_VIDEO")] + [NativeName(NativeNameType.Value, "0x00000020u")] public const uint SDL_INIT_VIDEO = 0x00000020u; [NativeName(NativeNameType.Const, "SDL_INIT_JOYSTICK")] + [NativeName(NativeNameType.Value, "0x00000200u")] public const uint SDL_INIT_JOYSTICK = 0x00000200u; [NativeName(NativeNameType.Const, "SDL_INIT_HAPTIC")] + [NativeName(NativeNameType.Value, "0x00001000u")] public const uint SDL_INIT_HAPTIC = 0x00001000u; [NativeName(NativeNameType.Const, "SDL_INIT_GAMECONTROLLER")] + [NativeName(NativeNameType.Value, "0x00002000u")] public const uint SDL_INIT_GAMECONTROLLER = 0x00002000u; [NativeName(NativeNameType.Const, "SDL_INIT_EVENTS")] + [NativeName(NativeNameType.Value, "0x00004000u")] public const uint SDL_INIT_EVENTS = 0x00004000u; [NativeName(NativeNameType.Const, "SDL_INIT_SENSOR")] + [NativeName(NativeNameType.Value, "0x00008000u")] public const uint SDL_INIT_SENSOR = 0x00008000u; [NativeName(NativeNameType.Const, "SDL_INIT_NOPARACHUTE")] + [NativeName(NativeNameType.Value, "0x00100000u")] public const uint SDL_INIT_NOPARACHUTE = 0x00100000u; [NativeName(NativeNameType.Const, "SDL_METALVIEW_TAG")] + [NativeName(NativeNameType.Value, "255")] public const int SDL_METALVIEW_TAG = 255; } diff --git a/Hexa.NET.SDL2/Generated/Delegates.cs b/Hexa.NET.SDL2/Generated/Delegates.cs index e25759c..e17c78c 100644 --- a/Hexa.NET.SDL2/Generated/Delegates.cs +++ b/Hexa.NET.SDL2/Generated/Delegates.cs @@ -240,7 +240,7 @@ namespace Hexa.NET.SDL2 [NativeName(NativeNameType.Delegate, "pfnSDL_CurrentBeginThread")] [return: NativeName(NativeNameType.Type, "uintptr_t")] [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public unsafe delegate nuint PfnsdlCurrentbeginthread([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown0, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "unsigned int")] uint unknown1, [NativeName(NativeNameType.Param, "func")] [NativeName(NativeNameType.Type, "unsigned int (*)(void*)*")] delegate* func, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown3, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "unsigned int")] uint unknown4, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* unknown5); + public unsafe delegate nuint PfnsdlCurrentbeginthread([NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown0, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "unsigned int")] uint unknown1, [NativeName(NativeNameType.Param, "func")] [NativeName(NativeNameType.Type, "unsigned int (*)(void*)*")] delegate* func, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "void*")] void* unknown3, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "unsigned int")] uint unknown4, [NativeName(NativeNameType.Param, "")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* unknown5); /// /// To be documented. diff --git a/Hexa.NET.SDL2/Generated/Enumerations.cs b/Hexa.NET.SDL2/Generated/Enumerations.cs index 37c6583..0069b28 100644 --- a/Hexa.NET.SDL2/Generated/Enumerations.cs +++ b/Hexa.NET.SDL2/Generated/Enumerations.cs @@ -1,7026 +1,4251 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; - -namespace Hexa.NET.SDL2 -{ - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_bool")] - public enum SDLBool - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_FALSE")] - False = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_TRUE")] - True = unchecked(1), - - } - - /// - /// TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative
- ///
- [NativeName(NativeNameType.Enum, "SDL_DUMMY_ENUM")] - public enum SdlDummyEnum - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "DUMMY_ENUM_VALUE")] - Value = unchecked(0), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_AssertState")] - public enum SDLAssertState - { - /// - /// Retry the assert immediately.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ASSERTION_RETRY")] - AssertionRetry = unchecked(0), - - /// - /// Make the debugger trigger a breakpoint.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ASSERTION_BREAK")] - AssertionBreak = unchecked(1), - - /// - /// Terminate the program.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ASSERTION_ABORT")] - AssertionAbort = unchecked(2), - - /// - /// Ignore the assert.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ASSERTION_IGNORE")] - AssertionIgnore = unchecked(3), - - /// - /// Ignore the assert from now on.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ASSERTION_ALWAYS_IGNORE")] - AssertionAlwaysIgnore = unchecked(4), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_errorcode")] - public enum SDLErrorcode - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_ENOMEM")] - Enomem = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_EFREAD")] - Efread = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_EFWRITE")] - Efwrite = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_EFSEEK")] - Efseek = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_UNSUPPORTED")] - Unsupported = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LASTERROR")] - Lasterror = unchecked(5), - - } - - /// - /// The SDL thread priority.
- /// SDL will make system changes as necessary in order to apply the thread priority.
- /// Code which attempts to control thread state related to priority should be aware
- /// that calling SDL_SetThreadPriority may alter such state.
- /// SDL_HINT_THREAD_PRIORITY_POLICY can be used to control aspects of this behavior.
- ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_ThreadPriority")] - public enum SDLThreadPriority - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_THREAD_PRIORITY_LOW")] - Low = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_THREAD_PRIORITY_NORMAL")] - Normal = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_THREAD_PRIORITY_HIGH")] - High = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_THREAD_PRIORITY_TIME_CRITICAL")] - TimeCritical = unchecked(3), - - } - - /// - ///
- /// - /// To be documented. - /// - /// Get the current audio state.
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.Enum, "SDL_AudioStatus")] - public enum SDLAudioStatus - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_AUDIO_STOPPED")] - Stopped = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_AUDIO_PLAYING")] - Playing = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_AUDIO_PAUSED")] - Paused = unchecked(2), - - } - - /// - /// Pixel type.
- ///
- [NativeName(NativeNameType.Enum, "SDL_PixelType")] - public enum SDLPixelType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_UNKNOWN")] - PixeltypeUnknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_INDEX1")] - PixeltypeIndex1 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_INDEX4")] - PixeltypeIndex4 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_INDEX8")] - PixeltypeIndex8 = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_PACKED8")] - PixeltypePacked8 = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_PACKED16")] - PixeltypePacked16 = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_PACKED32")] - PixeltypePacked32 = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_ARRAYU8")] - PixeltypeArrayu8 = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_ARRAYU16")] - PixeltypeArrayu16 = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_ARRAYU32")] - PixeltypeArrayu32 = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_ARRAYF16")] - PixeltypeArrayf16 = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_ARRAYF32")] - PixeltypeArrayf32 = unchecked(11), - - } - - /// - /// Bitmap pixel order, high bit -> low bit.
- ///
- [NativeName(NativeNameType.Enum, "SDL_BitmapOrder")] - public enum SDLBitmapOrder - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_BITMAPORDER_NONE")] - BitmaporderNone = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_BITMAPORDER_4321")] - Bitmaporder4321 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_BITMAPORDER_1234")] - Bitmaporder1234 = unchecked(2), - - } - - /// - /// Packed component order, high bit -> low bit.
- ///
- [NativeName(NativeNameType.Enum, "SDL_PackedOrder")] - public enum SDLPackedOrder - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_NONE")] - PackedorderNone = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_XRGB")] - PackedorderXrgb = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_RGBX")] - PackedorderRgbx = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_ARGB")] - PackedorderArgb = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_RGBA")] - PackedorderRgba = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_XBGR")] - PackedorderXbgr = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_BGRX")] - PackedorderBgrx = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_ABGR")] - PackedorderAbgr = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_BGRA")] - PackedorderBgra = unchecked(8), - - } - - /// - /// Array component order, low byte -> high byte.
- /// !!! FIXME: in 2.1, make these not overlap differently with
- /// !!! FIXME: SDL_PACKEDORDER_*, so we can simplify SDL_ISPIXELFORMAT_ALPHA
- ///
- [NativeName(NativeNameType.Enum, "SDL_ArrayOrder")] - public enum SDLArrayOrder - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_NONE")] - ArrayorderNone = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_RGB")] - ArrayorderRgb = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_RGBA")] - ArrayorderRgba = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_ARGB")] - ArrayorderArgb = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_BGR")] - ArrayorderBgr = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_BGRA")] - ArrayorderBgra = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_ABGR")] - ArrayorderAbgr = unchecked(6), - - } - - /// - /// Packed component layout.
- ///
- [NativeName(NativeNameType.Enum, "SDL_PackedLayout")] - public enum SDLPackedLayout - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_NONE")] - PackedlayoutNone = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_332")] - Packedlayout332 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_4444")] - Packedlayout4444 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_1555")] - Packedlayout1555 = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_5551")] - Packedlayout5551 = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_565")] - Packedlayout565 = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_8888")] - Packedlayout8888 = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_2101010")] - Packedlayout2101010 = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_1010102")] - Packedlayout1010102 = unchecked(8), - - } - - /// - /// Note: If you modify this list, update SDL_GetPixelFormatName()
- ///
- [NativeName(NativeNameType.Enum, "SDL_PixelFormatEnum")] - public enum SDLPixelFormatEnum - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_UNKNOWN")] - PixelformatUnknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_INDEX1LSB")] - PixelformatIndex1Lsb = unchecked(286261504), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_INDEX1MSB")] - PixelformatIndex1Msb = unchecked(287310080), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_INDEX4LSB")] - PixelformatIndex4Lsb = unchecked(303039488), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_INDEX4MSB")] - PixelformatIndex4Msb = unchecked(304088064), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_INDEX8")] - PixelformatIndex8 = unchecked(318769153), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB332")] - PixelformatRgb332 = unchecked(336660481), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XRGB4444")] - PixelformatXrgb4444 = unchecked(353504258), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB444")] - PixelformatRgb444 = PixelformatXrgb4444, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XBGR4444")] - PixelformatXbgr4444 = unchecked(357698562), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGR444")] - PixelformatBgr444 = PixelformatXbgr4444, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XRGB1555")] - PixelformatXrgb1555 = unchecked(353570562), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB555")] - PixelformatRgb555 = PixelformatXrgb1555, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XBGR1555")] - PixelformatXbgr1555 = unchecked(357764866), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGR555")] - PixelformatBgr555 = PixelformatXbgr1555, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ARGB4444")] - PixelformatArgb4444 = unchecked(355602434), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGBA4444")] - PixelformatRgba4444 = unchecked(356651010), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ABGR4444")] - PixelformatAbgr4444 = unchecked(359796738), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGRA4444")] - PixelformatBgra4444 = unchecked(360845314), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ARGB1555")] - PixelformatArgb1555 = unchecked(355667970), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGBA5551")] - PixelformatRgba5551 = unchecked(356782082), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ABGR1555")] - PixelformatAbgr1555 = unchecked(359862274), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGRA5551")] - PixelformatBgra5551 = unchecked(360976386), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB565")] - PixelformatRgb565 = unchecked(353701890), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGR565")] - PixelformatBgr565 = unchecked(357896194), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB24")] - PixelformatRgb24 = unchecked(386930691), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGR24")] - PixelformatBgr24 = unchecked(390076419), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XRGB8888")] - PixelformatXrgb8888 = unchecked(370546692), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB888")] - PixelformatRgb888 = PixelformatXrgb8888, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGBX8888")] - PixelformatRgbx8888 = unchecked(371595268), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XBGR8888")] - PixelformatXbgr8888 = unchecked(374740996), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGR888")] - PixelformatBgr888 = PixelformatXbgr8888, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGRX8888")] - PixelformatBgrx8888 = unchecked(375789572), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ARGB8888")] - PixelformatArgb8888 = unchecked(372645892), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGBA8888")] - PixelformatRgba8888 = unchecked(373694468), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ABGR8888")] - PixelformatAbgr8888 = unchecked(376840196), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGRA8888")] - PixelformatBgra8888 = unchecked(377888772), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ARGB2101010")] - PixelformatArgb2101010 = unchecked(372711428), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGBA32")] - PixelformatRgba32 = PixelformatAbgr8888, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ARGB32")] - PixelformatArgb32 = PixelformatBgra8888, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGRA32")] - PixelformatBgra32 = PixelformatArgb8888, - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ABGR32")] - PixelformatAbgr32 = PixelformatRgba8888, - - /// - /// Planar mode: Y + V + U (3 planes)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_YV12")] - PixelformatYv12 = unchecked(842094169), - - /// - /// Planar mode: Y + U + V (3 planes)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_IYUV")] - PixelformatIyuv = unchecked(1448433993), - - /// - /// Packed mode: Y0+U0+Y1+V0 (1 plane)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_YUY2")] - PixelformatYuy2 = unchecked(844715353), - - /// - /// Packed mode: U0+Y0+V0+Y1 (1 plane)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_UYVY")] - PixelformatUyvy = unchecked(1498831189), - - /// - /// Packed mode: Y0+V0+Y1+U0 (1 plane)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_YVYU")] - PixelformatYvyu = unchecked(1431918169), - - /// - /// Planar mode: Y + U/V interleaved (2 planes)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_NV12")] - PixelformatNv12 = unchecked(842094158), - - /// - /// Planar mode: Y + V/U interleaved (2 planes)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_NV21")] - PixelformatNv21 = unchecked(825382478), - - /// - /// Android video texture format
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_EXTERNAL_OES")] - PixelformatExternalOes = unchecked(542328143), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_BlendMode")] - public enum SDLBlendMode - { - /// - /// no blending
- /// dstRGBA = srcRGBA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_NONE")] - BlendmodeNone = unchecked(0), - - /// - /// alpha blending
- /// dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA))
- /// dstA = srcA + (dstA * (1-srcA))
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_BLEND")] - BlendmodeBlend = unchecked(1), - - /// - /// additive blending
- /// dstRGB = (srcRGB * srcA) + dstRGB
- /// dstA = dstA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_ADD")] - BlendmodeAdd = unchecked(2), - - /// - /// color modulate
- /// dstRGB = srcRGB * dstRGB
- /// dstA = dstA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_MOD")] - BlendmodeMod = unchecked(4), - - /// - /// color multiply
- /// dstRGB = (srcRGB * dstRGB) + (dstRGB * (1-srcA))
- /// dstA = dstA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_MUL")] - BlendmodeMul = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_INVALID")] - BlendmodeInvalid = unchecked(2147483647), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_BlendOperation")] - public enum SDLBlendOperation - { - /// - /// dst + src: supported by all renderers
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDOPERATION_ADD")] - BlendoperationAdd = unchecked(1), - - /// - /// dst - src : supported by D3D9, D3D11, OpenGL, OpenGLES
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDOPERATION_SUBTRACT")] - BlendoperationSubtract = unchecked(2), - - /// - /// src - dst : supported by D3D9, D3D11, OpenGL, OpenGLES
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDOPERATION_REV_SUBTRACT")] - BlendoperationRevSubtract = unchecked(3), - - /// - /// min(dst, src) : supported by D3D9, D3D11
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDOPERATION_MINIMUM")] - BlendoperationMinimum = unchecked(4), - - /// - /// max(dst, src) : supported by D3D9, D3D11
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDOPERATION_MAXIMUM")] - BlendoperationMaximum = unchecked(5), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_BlendFactor")] - public enum SDLBlendFactor - { - /// - /// 0, 0, 0, 0
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ZERO")] - BlendfactorZero = unchecked(1), - - /// - /// 1, 1, 1, 1
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ONE")] - BlendfactorOne = unchecked(2), - - /// - /// srcR, srcG, srcB, srcA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_SRC_COLOR")] - BlendfactorSrcColor = unchecked(3), - - /// - /// 1-srcR, 1-srcG, 1-srcB, 1-srcA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR")] - BlendfactorOneMinusSrcColor = unchecked(4), - - /// - /// srcA, srcA, srcA, srcA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_SRC_ALPHA")] - BlendfactorSrcAlpha = unchecked(5), - - /// - /// 1-srcA, 1-srcA, 1-srcA, 1-srcA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA")] - BlendfactorOneMinusSrcAlpha = unchecked(6), - - /// - /// dstR, dstG, dstB, dstA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_DST_COLOR")] - BlendfactorDstColor = unchecked(7), - - /// - /// 1-dstR, 1-dstG, 1-dstB, 1-dstA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR")] - BlendfactorOneMinusDstColor = unchecked(8), - - /// - /// dstA, dstA, dstA, dstA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_DST_ALPHA")] - BlendfactorDstAlpha = unchecked(9), - - /// - /// 1-dstA, 1-dstA, 1-dstA, 1-dstA
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA")] - BlendfactorOneMinusDstAlpha = unchecked(10), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_YUV_CONVERSION_MODE")] - public enum SdlYuvConversionMode - { - /// - /// Full range JPEG
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_YUV_CONVERSION_JPEG")] - Jpeg = unchecked(0), - - /// - /// BT.601 (the default)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_YUV_CONVERSION_BT601")] - Bt601 = unchecked(1), - - /// - /// BT.709
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_YUV_CONVERSION_BT709")] - Bt709 = unchecked(2), - - /// - /// BT.601 for SD content, BT.709 for HD content
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_YUV_CONVERSION_AUTOMATIC")] - Automatic = unchecked(3), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_WindowFlags")] - public enum SDLWindowFlags - { - /// - /// fullscreen window
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_FULLSCREEN")] - Fullscreen = unchecked(1), - - /// - /// window usable with OpenGL context
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_OPENGL")] - Opengl = unchecked(2), - - /// - /// window is visible
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_SHOWN")] - Shown = unchecked(4), - - /// - /// window is not visible
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_HIDDEN")] - Hidden = unchecked(8), - - /// - /// no window decoration
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_BORDERLESS")] - Borderless = unchecked(16), - - /// - /// window can be resized
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_RESIZABLE")] - Resizable = unchecked(32), - - /// - /// window is minimized
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_MINIMIZED")] - Minimized = unchecked(64), - - /// - /// window is maximized
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_MAXIMIZED")] - Maximized = unchecked(128), - - /// - /// window has grabbed mouse input
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_MOUSE_GRABBED")] - MouseGrabbed = unchecked(256), - - /// - /// window has input focus
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_INPUT_FOCUS")] - InputFocus = unchecked(512), - - /// - /// window has mouse focus
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_MOUSE_FOCUS")] - MouseFocus = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_FULLSCREEN_DESKTOP")] - FullscreenDesktop = unchecked(4097), - - /// - /// window not created by SDL
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_FOREIGN")] - Foreign = unchecked(2048), - - /// - /// window should be created in high-DPI mode if supported.
- /// On macOS NSHighResolutionCapable must be set true in the
- /// application's Info.plist for this to have any effect.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_ALLOW_HIGHDPI")] - AllowHighdpi = unchecked(8192), - - /// - /// window has mouse captured (unrelated to MOUSE_GRABBED)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_MOUSE_CAPTURE")] - MouseCapture = unchecked(16384), - - /// - /// window should always be above others
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_ALWAYS_ON_TOP")] - AlwaysOnTop = unchecked(32768), - - /// - /// window should not be added to the taskbar
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_SKIP_TASKBAR")] - SkipTaskbar = unchecked(65536), - - /// - /// window should be treated as a utility window
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_UTILITY")] - Utility = unchecked(131072), - - /// - /// window should be treated as a tooltip
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_TOOLTIP")] - Tooltip = unchecked(262144), - - /// - /// window should be treated as a popup menu
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_POPUP_MENU")] - PopupMenu = unchecked(524288), - - /// - /// window has grabbed keyboard input
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_KEYBOARD_GRABBED")] - KeyboardGrabbed = unchecked(1048576), - - /// - /// window usable for Vulkan surface
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_VULKAN")] - Vulkan = unchecked(268435456), - - /// - /// window usable for Metal view
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_METAL")] - Metal = unchecked(536870912), - - /// - /// equivalent to SDL_WINDOW_MOUSE_GRABBED for compatibility
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_INPUT_GRABBED")] - InputGrabbed = MouseGrabbed, - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_WindowEventID")] - public enum SDLWindowEventID - { - /// - /// Never used
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_NONE")] - WindoweventNone = unchecked(0), - - /// - /// Window has been shown
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_SHOWN")] - WindoweventShown = unchecked(1), - - /// - /// Window has been hidden
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_HIDDEN")] - WindoweventHidden = unchecked(2), - - /// - /// Window has been exposed and should be
- /// redrawn
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_EXPOSED")] - WindoweventExposed = unchecked(3), - - /// - /// Window has been moved to data1, data2
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_MOVED")] - WindoweventMoved = unchecked(4), - - /// - /// Window has been resized to data1xdata2
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_RESIZED")] - WindoweventResized = unchecked(5), - - /// - /// The window size has changed, either as
- /// a result of an API call or through the
- /// system or user changing the window size.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_SIZE_CHANGED")] - WindoweventSizeChanged = unchecked(6), - - /// - /// Window has been minimized
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_MINIMIZED")] - WindoweventMinimized = unchecked(7), - - /// - /// Window has been maximized
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_MAXIMIZED")] - WindoweventMaximized = unchecked(8), - - /// - /// Window has been restored to normal size
- /// and position
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_RESTORED")] - WindoweventRestored = unchecked(9), - - /// - /// Window has gained mouse focus
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_ENTER")] - WindoweventEnter = unchecked(10), - - /// - /// Window has lost mouse focus
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_LEAVE")] - WindoweventLeave = unchecked(11), - - /// - /// Window has gained keyboard focus
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_FOCUS_GAINED")] - WindoweventFocusGained = unchecked(12), - - /// - /// Window has lost keyboard focus
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_FOCUS_LOST")] - WindoweventFocusLost = unchecked(13), - - /// - /// The window manager requests that the window be closed
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_CLOSE")] - WindoweventClose = unchecked(14), - - /// - /// Window is being offered a focus (should SetWindowInputFocus() on itself or a subwindow, or ignore)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_TAKE_FOCUS")] - WindoweventTakeFocus = unchecked(15), - - /// - /// Window had a hit test that wasn't SDL_HITTEST_NORMAL.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_HIT_TEST")] - WindoweventHitTest = unchecked(16), - - /// - /// The ICC profile of the window's display has changed.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_ICCPROF_CHANGED")] - WindoweventIccprofChanged = unchecked(17), - - /// - /// Window has been moved to display data1.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_DISPLAY_CHANGED")] - WindoweventDisplayChanged = unchecked(18), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_DisplayEventID")] - public enum SDLDisplayEventID - { - /// - /// Never used
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT_NONE")] - DisplayeventNone = unchecked(0), - - /// - /// Display orientation has changed to data1
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT_ORIENTATION")] - DisplayeventOrientation = unchecked(1), - - /// - /// Display has been added to the system
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT_CONNECTED")] - DisplayeventConnected = unchecked(2), - - /// - /// Display has been removed from the system
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT_DISCONNECTED")] - DisplayeventDisconnected = unchecked(3), - - /// - /// Display has changed position
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT_MOVED")] - DisplayeventMoved = unchecked(4), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_DisplayOrientation")] - public enum SDLDisplayOrientation - { - /// - /// The display orientation can't be determined
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ORIENTATION_UNKNOWN")] - Unknown = unchecked(0), - - /// - /// The display is in landscape mode, with the right side up, relative to portrait mode
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ORIENTATION_LANDSCAPE")] - Landscape = unchecked(1), - - /// - /// The display is in landscape mode, with the left side up, relative to portrait mode
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ORIENTATION_LANDSCAPE_FLIPPED")] - LandscapeFlipped = unchecked(2), - - /// - /// The display is in portrait mode
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ORIENTATION_PORTRAIT")] - Portrait = unchecked(3), - - /// - /// The display is in portrait mode, upside down
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ORIENTATION_PORTRAIT_FLIPPED")] - PortraitFlipped = unchecked(4), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_FlashOperation")] - public enum SDLFlashOperation - { - /// - /// Cancel any window flash state
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_FLASH_CANCEL")] - Cancel = unchecked(0), - - /// - /// Flash the window briefly to get attention
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_FLASH_BRIEFLY")] - Briefly = unchecked(1), - - /// - /// Flash the window until it gets focus
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_FLASH_UNTIL_FOCUSED")] - UntilFocused = unchecked(2), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_GLattr")] - public enum SDLGLattr - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_RED_SIZE")] - SdlGlRedSize = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_GREEN_SIZE")] - SdlGlGreenSize = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_BLUE_SIZE")] - SdlGlBlueSize = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_ALPHA_SIZE")] - SdlGlAlphaSize = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_BUFFER_SIZE")] - SdlGlBufferSize = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_DOUBLEBUFFER")] - SdlGlDoublebuffer = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_DEPTH_SIZE")] - SdlGlDepthSize = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_STENCIL_SIZE")] - SdlGlStencilSize = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_ACCUM_RED_SIZE")] - SdlGlAccumRedSize = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_ACCUM_GREEN_SIZE")] - SdlGlAccumGreenSize = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_ACCUM_BLUE_SIZE")] - SdlGlAccumBlueSize = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_ACCUM_ALPHA_SIZE")] - SdlGlAccumAlphaSize = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_STEREO")] - SdlGlStereo = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_MULTISAMPLEBUFFERS")] - SdlGlMultisamplebuffers = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_MULTISAMPLESAMPLES")] - SdlGlMultisamplesamples = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_ACCELERATED_VISUAL")] - SdlGlAcceleratedVisual = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_RETAINED_BACKING")] - SdlGlRetainedBacking = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_MAJOR_VERSION")] - SdlGlContextMajorVersion = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_MINOR_VERSION")] - SdlGlContextMinorVersion = unchecked(18), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_EGL")] - SdlGlContextEgl = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_FLAGS")] - SdlGlContextFlags = unchecked(20), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_PROFILE_MASK")] - SdlGlContextProfileMask = unchecked(21), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_SHARE_WITH_CURRENT_CONTEXT")] - SdlGlShareWithCurrentContext = unchecked(22), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_FRAMEBUFFER_SRGB_CAPABLE")] - SdlGlFramebufferSrgbCapable = unchecked(23), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RELEASE_BEHAVIOR")] - SdlGlContextReleaseBehavior = unchecked(24), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RESET_NOTIFICATION")] - SdlGlContextResetNotification = unchecked(25), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_NO_ERROR")] - SdlGlContextNoError = unchecked(26), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_FLOATBUFFERS")] - SdlGlFloatbuffers = unchecked(27), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_GLprofile")] - public enum SDLGLprofile - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_PROFILE_CORE")] - SdlGlContextProfileCore = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_PROFILE_COMPATIBILITY")] - SdlGlContextProfileCompatibility = unchecked(2), - - /// - /// GLX_CONTEXT_ES2_PROFILE_BIT_EXT
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_PROFILE_ES")] - SdlGlContextProfileEs = unchecked(4), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_GLcontextFlag")] - public enum SDLGLcontextFlag - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_DEBUG_FLAG")] - SdlGlContextDebugFlag = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG")] - SdlGlContextForwardCompatibleFlag = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG")] - SdlGlContextRobustAccessFlag = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RESET_ISOLATION_FLAG")] - SdlGlContextResetIsolationFlag = unchecked(8), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_GLcontextReleaseFlag")] - public enum SDLGLcontextReleaseFlag - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE")] - SdlGlContextReleaseBehaviorNone = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH")] - SdlGlContextReleaseBehaviorFlush = unchecked(1), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_GLContextResetNotification")] - public enum SDLGLContextResetNotification - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RESET_NO_NOTIFICATION")] - NoNotification = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RESET_LOSE_CONTEXT")] - LoseContext = unchecked(1), - - } - - /// - /// Possible return values from the SDL_HitTest callback.
- ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_HitTestResult")] - public enum SDLHitTestResult - { - /// - /// Region is normal. No special properties.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_NORMAL")] - HittestNormal = unchecked(0), - - /// - /// Region can drag entire window.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_DRAGGABLE")] - HittestDraggable = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_TOPLEFT")] - HittestResizeTopleft = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_TOP")] - HittestResizeTop = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_TOPRIGHT")] - HittestResizeTopright = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_RIGHT")] - HittestResizeRight = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_BOTTOMRIGHT")] - HittestResizeBottomright = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_BOTTOM")] - HittestResizeBottom = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_BOTTOMLEFT")] - HittestResizeBottomleft = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_LEFT")] - HittestResizeLeft = unchecked(9), - - } - - /// - ///
- /// - /// To be documented. - /// - /// Values of this type are used to represent keyboard keys, among other places
- /// in the
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_Scancode")] - public enum SDLScancode - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_UNKNOWN")] - Unknown = unchecked(0), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_A")] - Scancodea = unchecked(4), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_B")] - Scancodeb = unchecked(5), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_C")] - Scancodec = unchecked(6), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_D")] - Scancoded = unchecked(7), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_E")] - Scancodee = unchecked(8), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F")] - Scancodef = unchecked(9), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_G")] - Scancodeg = unchecked(10), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_H")] - Scancodeh = unchecked(11), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_I")] - Scancodei = unchecked(12), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_J")] - Scancodej = unchecked(13), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_K")] - Scancodek = unchecked(14), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_L")] - Scancodel = unchecked(15), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_M")] - Scancodem = unchecked(16), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_N")] - Scancoden = unchecked(17), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_O")] - Scancodeo = unchecked(18), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_P")] - Scancodep = unchecked(19), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_Q")] - Scancodeq = unchecked(20), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_R")] - Scancoder = unchecked(21), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_S")] - Scancodes = unchecked(22), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_T")] - Scancodet = unchecked(23), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_U")] - Scancodeu = unchecked(24), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_V")] - Scancodev = unchecked(25), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_W")] - Scancodew = unchecked(26), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_X")] - Scancodex = unchecked(27), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_Y")] - Scancodey = unchecked(28), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_Z")] - Scancodez = unchecked(29), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_1")] - Scancode1 = unchecked(30), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_2")] - Scancode2 = unchecked(31), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_3")] - Scancode3 = unchecked(32), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_4")] - Scancode4 = unchecked(33), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_5")] - Scancode5 = unchecked(34), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_6")] - Scancode6 = unchecked(35), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_7")] - Scancode7 = unchecked(36), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_8")] - Scancode8 = unchecked(37), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_9")] - Scancode9 = unchecked(38), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_0")] - Scancode0 = unchecked(39), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RETURN")] - Return = unchecked(40), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_ESCAPE")] - Escape = unchecked(41), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_BACKSPACE")] - Backspace = unchecked(42), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_TAB")] - Tab = unchecked(43), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SPACE")] - Space = unchecked(44), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MINUS")] - Minus = unchecked(45), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_EQUALS")] - Equals = unchecked(46), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LEFTBRACKET")] - Leftbracket = unchecked(47), - - /// - ///
- /// - /// To be documented. - /// - /// These values are from usage page 0x07 (USB keyboard page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RIGHTBRACKET")] - Rightbracket = unchecked(48), - - /// - /// Located at the lower left of the return
- /// key on ISO keyboards and at the right end
- /// of the QWERTY row on ANSI keyboards.
- /// Produces REVERSE SOLIDUS (backslash) and
- /// VERTICAL LINE in a US layout, REVERSE
- /// SOLIDUS and VERTICAL LINE in a UK Mac
- /// layout, NUMBER SIGN and TILDE in a UK
- /// Windows layout, DOLLAR SIGN and POUND SIGN
- /// in a Swiss German layout, NUMBER SIGN and
- /// APOSTROPHE in a German layout, GRAVE
- /// ACCENT and POUND SIGN in a French Mac
- /// layout, and ASTERISK and MICRO SIGN in a
- /// French Windows layout.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_BACKSLASH")] - Backslash = unchecked(49), - - /// - /// ISO USB keyboards actually use this code
- /// instead of 49 for the same key, but all
- /// OSes I've seen treat the two codes
- /// identically. So, as an implementor, unless
- /// your keyboard generates both of those
- /// codes and your OS treats them differently,
- /// you should generate SDL_SCANCODE_BACKSLASH
- /// instead of this code. As a user, you
- /// should not rely on this code because SDL
- /// will never generate it with most (all?)
- /// keyboards.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_NONUSHASH")] - Nonushash = unchecked(50), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SEMICOLON")] - Semicolon = unchecked(51), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_APOSTROPHE")] - Apostrophe = unchecked(52), - - /// - /// Located in the top left corner (on both ANSI
- /// and ISO keyboards). Produces GRAVE ACCENT and
- /// TILDE in a US Windows layout and in US and UK
- /// Mac layouts on ANSI keyboards, GRAVE ACCENT
- /// and NOT SIGN in a UK Windows layout, SECTION
- /// SIGN and PLUS-MINUS SIGN in US and UK Mac
- /// layouts on ISO keyboards, SECTION SIGN and
- /// DEGREE SIGN in a Swiss German layout (Mac:
- /// only on ISO keyboards), CIRCUMFLEX ACCENT and
- /// DEGREE SIGN in a German layout (Mac: only on
- /// ISO keyboards), SUPERSCRIPT TWO and TILDE in a
- /// French Windows layout, COMMERCIAL AT and
- /// NUMBER SIGN in a French Mac layout on ISO
- /// keyboards, and LESS-THAN SIGN and GREATER-THAN
- /// SIGN in a Swiss German, German, or French Mac
- /// layout on ANSI keyboards.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_GRAVE")] - Grave = unchecked(53), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_COMMA")] - Comma = unchecked(54), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PERIOD")] - Period = unchecked(55), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SLASH")] - Slash = unchecked(56), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CAPSLOCK")] - Capslock = unchecked(57), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F1")] - Scancodef1 = unchecked(58), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F2")] - Scancodef2 = unchecked(59), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F3")] - Scancodef3 = unchecked(60), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F4")] - Scancodef4 = unchecked(61), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F5")] - Scancodef5 = unchecked(62), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F6")] - Scancodef6 = unchecked(63), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F7")] - Scancodef7 = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F8")] - Scancodef8 = unchecked(65), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F9")] - Scancodef9 = unchecked(66), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F10")] - Scancodef10 = unchecked(67), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F11")] - Scancodef11 = unchecked(68), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F12")] - Scancodef12 = unchecked(69), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PRINTSCREEN")] - Printscreen = unchecked(70), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SCROLLLOCK")] - Scrolllock = unchecked(71), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PAUSE")] - Pause = unchecked(72), - - /// - /// insert on PC, help on some Mac keyboards (but
- /// does send code 73, not 117)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INSERT")] - Insert = unchecked(73), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_HOME")] - Home = unchecked(74), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PAGEUP")] - Pageup = unchecked(75), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_DELETE")] - Delete = unchecked(76), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_END")] - End = unchecked(77), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PAGEDOWN")] - Pagedown = unchecked(78), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RIGHT")] - Right = unchecked(79), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LEFT")] - Left = unchecked(80), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_DOWN")] - Down = unchecked(81), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_UP")] - Up = unchecked(82), - - /// - /// num lock on PC, clear on Mac keyboards
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_NUMLOCKCLEAR")] - Numlockclear = unchecked(83), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_DIVIDE")] - KpDivide = unchecked(84), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MULTIPLY")] - KpMultiply = unchecked(85), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MINUS")] - KpMinus = unchecked(86), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_PLUS")] - KpPlus = unchecked(87), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_ENTER")] - KpEnter = unchecked(88), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_1")] - Kp1 = unchecked(89), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_2")] - Kp2 = unchecked(90), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_3")] - Kp3 = unchecked(91), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_4")] - Kp4 = unchecked(92), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_5")] - Kp5 = unchecked(93), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_6")] - Kp6 = unchecked(94), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_7")] - Kp7 = unchecked(95), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_8")] - Kp8 = unchecked(96), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_9")] - Kp9 = unchecked(97), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_0")] - Kp0 = unchecked(98), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_PERIOD")] - KpPeriod = unchecked(99), - - /// - /// This is the additional key that ISO
- /// keyboards have over ANSI ones,
- /// located between left shift and Y.
- /// Produces GRAVE ACCENT and TILDE in a
- /// US or UK Mac layout, REVERSE SOLIDUS
- /// (backslash) and VERTICAL LINE in a
- /// US or UK Windows layout, and
- /// LESS-THAN SIGN and GREATER-THAN SIGN
- /// in a Swiss German, German, or French
- /// layout.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_NONUSBACKSLASH")] - Nonusbackslash = unchecked(100), - - /// - /// windows contextual menu, compose
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_APPLICATION")] - Application = unchecked(101), - - /// - /// The USB document says this is a status flag,
- /// not a physical key - but some Mac keyboards
- /// do have a power key.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_POWER")] - Power = unchecked(102), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_EQUALS")] - KpEquals = unchecked(103), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F13")] - Scancodef13 = unchecked(104), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F14")] - Scancodef14 = unchecked(105), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F15")] - Scancodef15 = unchecked(106), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F16")] - Scancodef16 = unchecked(107), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F17")] - Scancodef17 = unchecked(108), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F18")] - Scancodef18 = unchecked(109), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F19")] - Scancodef19 = unchecked(110), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F20")] - Scancodef20 = unchecked(111), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F21")] - Scancodef21 = unchecked(112), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F22")] - Scancodef22 = unchecked(113), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F23")] - Scancodef23 = unchecked(114), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F24")] - Scancodef24 = unchecked(115), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_EXECUTE")] - Execute = unchecked(116), - - /// - /// AL Integrated Help Center
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_HELP")] - Help = unchecked(117), - - /// - /// Menu (show menu)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MENU")] - Menu = unchecked(118), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SELECT")] - Select = unchecked(119), - - /// - /// AC Stop
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_STOP")] - Stop = unchecked(120), - - /// - /// AC Redo/Repeat
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AGAIN")] - Again = unchecked(121), - - /// - /// AC Undo
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_UNDO")] - Undo = unchecked(122), - - /// - /// AC Cut
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CUT")] - Cut = unchecked(123), - - /// - /// AC Copy
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_COPY")] - Copy = unchecked(124), - - /// - /// AC Paste
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PASTE")] - Paste = unchecked(125), - - /// - /// AC Find
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_FIND")] - Find = unchecked(126), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MUTE")] - Mute = unchecked(127), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_VOLUMEUP")] - Volumeup = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_VOLUMEDOWN")] - Volumedown = unchecked(129), - - /// - /// not sure whether there's a reason to enable these
- /// SDL_SCANCODE_LOCKINGCAPSLOCK = 130,
- /// SDL_SCANCODE_LOCKINGNUMLOCK = 131,
- /// SDL_SCANCODE_LOCKINGSCROLLLOCK = 132,
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_COMMA")] - KpComma = unchecked(133), - - /// - /// not sure whether there's a reason to enable these
- /// SDL_SCANCODE_LOCKINGCAPSLOCK = 130,
- /// SDL_SCANCODE_LOCKINGNUMLOCK = 131,
- /// SDL_SCANCODE_LOCKINGSCROLLLOCK = 132,
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_EQUALSAS400")] - KpEqualsas400 = unchecked(134), - - /// - /// used on Asian keyboards, see
- /// footnotes in USB doc
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL1")] - International1 = unchecked(135), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL2")] - International2 = unchecked(136), - - /// - /// Yen
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL3")] - International3 = unchecked(137), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL4")] - International4 = unchecked(138), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL5")] - International5 = unchecked(139), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL6")] - International6 = unchecked(140), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL7")] - International7 = unchecked(141), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL8")] - International8 = unchecked(142), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL9")] - International9 = unchecked(143), - - /// - /// Hangul/English toggle
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG1")] - Lang1 = unchecked(144), - - /// - /// Hanja conversion
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG2")] - Lang2 = unchecked(145), - - /// - /// Katakana
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG3")] - Lang3 = unchecked(146), - - /// - /// Hiragana
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG4")] - Lang4 = unchecked(147), - - /// - /// Zenkaku/Hankaku
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG5")] - Lang5 = unchecked(148), - - /// - /// reserved
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG6")] - Lang6 = unchecked(149), - - /// - /// reserved
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG7")] - Lang7 = unchecked(150), - - /// - /// reserved
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG8")] - Lang8 = unchecked(151), - - /// - /// reserved
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG9")] - Lang9 = unchecked(152), - - /// - /// Erase-Eaze
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_ALTERASE")] - Alterase = unchecked(153), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SYSREQ")] - Sysreq = unchecked(154), - - /// - /// AC Cancel
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CANCEL")] - Cancel = unchecked(155), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CLEAR")] - Clear = unchecked(156), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PRIOR")] - Prior = unchecked(157), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RETURN2")] - Return2 = unchecked(158), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SEPARATOR")] - Separator = unchecked(159), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_OUT")] - Out = unchecked(160), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_OPER")] - Oper = unchecked(161), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CLEARAGAIN")] - Clearagain = unchecked(162), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CRSEL")] - Crsel = unchecked(163), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_EXSEL")] - Exsel = unchecked(164), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_00")] - Kp00 = unchecked(176), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_000")] - Kp000 = unchecked(177), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_THOUSANDSSEPARATOR")] - Thousandsseparator = unchecked(178), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_DECIMALSEPARATOR")] - Decimalseparator = unchecked(179), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CURRENCYUNIT")] - Currencyunit = unchecked(180), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CURRENCYSUBUNIT")] - Currencysubunit = unchecked(181), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_LEFTPAREN")] - KpLeftparen = unchecked(182), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_RIGHTPAREN")] - KpRightparen = unchecked(183), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_LEFTBRACE")] - KpLeftbrace = unchecked(184), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_RIGHTBRACE")] - KpRightbrace = unchecked(185), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_TAB")] - KpTab = unchecked(186), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_BACKSPACE")] - KpBackspace = unchecked(187), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_A")] - Kpa = unchecked(188), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_B")] - Kpb = unchecked(189), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_C")] - Kpc = unchecked(190), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_D")] - Kpd = unchecked(191), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_E")] - Kpe = unchecked(192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_F")] - Kpf = unchecked(193), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_XOR")] - KpXor = unchecked(194), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_POWER")] - KpPower = unchecked(195), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_PERCENT")] - KpPercent = unchecked(196), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_LESS")] - KpLess = unchecked(197), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_GREATER")] - KpGreater = unchecked(198), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_AMPERSAND")] - KpAmpersand = unchecked(199), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_DBLAMPERSAND")] - KpDblampersand = unchecked(200), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_VERTICALBAR")] - KpVerticalbar = unchecked(201), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_DBLVERTICALBAR")] - KpDblverticalbar = unchecked(202), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_COLON")] - KpColon = unchecked(203), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_HASH")] - KpHash = unchecked(204), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_SPACE")] - KpSpace = unchecked(205), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_AT")] - KpAt = unchecked(206), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_EXCLAM")] - KpExclam = unchecked(207), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMSTORE")] - KpMemstore = unchecked(208), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMRECALL")] - KpMemrecall = unchecked(209), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMCLEAR")] - KpMemclear = unchecked(210), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMADD")] - KpMemadd = unchecked(211), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMSUBTRACT")] - KpMemsubtract = unchecked(212), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMMULTIPLY")] - KpMemmultiply = unchecked(213), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMDIVIDE")] - KpMemdivide = unchecked(214), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_PLUSMINUS")] - KpPlusminus = unchecked(215), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_CLEAR")] - KpClear = unchecked(216), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_CLEARENTRY")] - KpClearentry = unchecked(217), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_BINARY")] - KpBinary = unchecked(218), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_OCTAL")] - KpOctal = unchecked(219), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_DECIMAL")] - KpDecimal = unchecked(220), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_HEXADECIMAL")] - KpHexadecimal = unchecked(221), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LCTRL")] - Lctrl = unchecked(224), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LSHIFT")] - Lshift = unchecked(225), - - /// - /// alt, option
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LALT")] - Lalt = unchecked(226), - - /// - /// windows, command (apple), meta
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LGUI")] - Lgui = unchecked(227), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RCTRL")] - Rctrl = unchecked(228), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RSHIFT")] - Rshift = unchecked(229), - - /// - /// alt gr, option
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RALT")] - Ralt = unchecked(230), - - /// - /// windows, command (apple), meta
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RGUI")] - Rgui = unchecked(231), - - /// - /// I'm not sure if this is really not covered
- /// by any of the above, but since there's a
- /// special KMOD_MODE for it I'm adding it here
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MODE")] - Mode = unchecked(257), - - /// - ///
- /// - /// To be documented. - /// - /// These values are mapped from usage page 0x0C (USB consumer page).
- /// See https://usb.org/sites/default/files/hut1_2.pdf
- /// There are way more keys in the spec than we can represent in the
- /// current scancode range, so pick the ones that commonly come up in
- /// real world usage.
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIONEXT")] - Audionext = unchecked(258), - - /// - ///
- /// - /// To be documented. - /// - /// These values are mapped from usage page 0x0C (USB consumer page).
- /// See https://usb.org/sites/default/files/hut1_2.pdf
- /// There are way more keys in the spec than we can represent in the
- /// current scancode range, so pick the ones that commonly come up in
- /// real world usage.
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOPREV")] - Audioprev = unchecked(259), - - /// - ///
- /// - /// To be documented. - /// - /// These values are mapped from usage page 0x0C (USB consumer page).
- /// See https://usb.org/sites/default/files/hut1_2.pdf
- /// There are way more keys in the spec than we can represent in the
- /// current scancode range, so pick the ones that commonly come up in
- /// real world usage.
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOSTOP")] - Audiostop = unchecked(260), - - /// - ///
- /// - /// To be documented. - /// - /// These values are mapped from usage page 0x0C (USB consumer page).
- /// See https://usb.org/sites/default/files/hut1_2.pdf
- /// There are way more keys in the spec than we can represent in the
- /// current scancode range, so pick the ones that commonly come up in
- /// real world usage.
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOPLAY")] - Audioplay = unchecked(261), - - /// - ///
- /// - /// To be documented. - /// - /// These values are mapped from usage page 0x0C (USB consumer page).
- /// See https://usb.org/sites/default/files/hut1_2.pdf
- /// There are way more keys in the spec than we can represent in the
- /// current scancode range, so pick the ones that commonly come up in
- /// real world usage.
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOMUTE")] - Audiomute = unchecked(262), - - /// - ///
- /// - /// To be documented. - /// - /// These values are mapped from usage page 0x0C (USB consumer page).
- /// See https://usb.org/sites/default/files/hut1_2.pdf
- /// There are way more keys in the spec than we can represent in the
- /// current scancode range, so pick the ones that commonly come up in
- /// real world usage.
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MEDIASELECT")] - Mediaselect = unchecked(263), - - /// - /// AL Internet Browser
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_WWW")] - Www = unchecked(264), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MAIL")] - Mail = unchecked(265), - - /// - /// AL Calculator
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CALCULATOR")] - Calculator = unchecked(266), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_COMPUTER")] - Computer = unchecked(267), - - /// - /// AC Search
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_SEARCH")] - AcSearch = unchecked(268), - - /// - /// AC Home
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_HOME")] - AcHome = unchecked(269), - - /// - /// AC Back
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_BACK")] - AcBack = unchecked(270), - - /// - /// AC Forward
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_FORWARD")] - AcForward = unchecked(271), - - /// - /// AC Stop
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_STOP")] - AcStop = unchecked(272), - - /// - /// AC Refresh
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_REFRESH")] - AcRefresh = unchecked(273), - - /// - /// AC Bookmarks
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_BOOKMARKS")] - AcBookmarks = unchecked(274), - - /// - ///
- /// - /// To be documented. - /// - /// These are values that Christian Walther added (for mac keyboard?).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_BRIGHTNESSDOWN")] - Brightnessdown = unchecked(275), - - /// - ///
- /// - /// To be documented. - /// - /// These are values that Christian Walther added (for mac keyboard?).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_BRIGHTNESSUP")] - Brightnessup = unchecked(276), - - /// - /// display mirroring/dual display
- /// switch, video mode switch
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_DISPLAYSWITCH")] - Displayswitch = unchecked(277), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KBDILLUMTOGGLE")] - Kbdillumtoggle = unchecked(278), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KBDILLUMDOWN")] - Kbdillumdown = unchecked(279), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KBDILLUMUP")] - Kbdillumup = unchecked(280), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_EJECT")] - Eject = unchecked(281), - - /// - /// SC System Sleep
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SLEEP")] - Sleep = unchecked(282), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_APP1")] - App1 = unchecked(283), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_APP2")] - App2 = unchecked(284), - - /// - ///
- /// - /// To be documented. - /// - /// These values are mapped from usage page 0x0C (USB consumer page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOREWIND")] - Audiorewind = unchecked(285), - - /// - ///
- /// - /// To be documented. - /// - /// These values are mapped from usage page 0x0C (USB consumer page).
- ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOFASTFORWARD")] - Audiofastforward = unchecked(286), - - /// - /// Usually situated below the display on phones and
- /// used as a multi-function feature key for selecting
- /// a software defined function shown on the bottom left
- /// of the display.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SOFTLEFT")] - Softleft = unchecked(287), - - /// - /// Usually situated below the display on phones and
- /// used as a multi-function feature key for selecting
- /// a software defined function shown on the bottom right
- /// of the display.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SOFTRIGHT")] - Softright = unchecked(288), - - /// - /// Used for accepting phone calls.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CALL")] - Call = unchecked(289), - - /// - /// Used for rejecting phone calls.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_ENDCALL")] - Endcall = unchecked(290), - - /// - /// not a key, just marks the number of scancodes
- /// for array bounds
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_NUM_SCANCODES")] - NumScancodes = unchecked(512), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_KeyCode")] - public enum SDLKeyCode - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_UNKNOWN")] - SdlkUnknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_RETURN")] - SdlkReturn = unchecked((int)'\r'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_ESCAPE")] - SdlkEscape = unchecked((int)'\x1B'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_BACKSPACE")] - SdlkBackspace = unchecked((int)'\b'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_TAB")] - SdlkTab = unchecked((int)'\t'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_SPACE")] - SdlkSpace = unchecked((int)' '), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_EXCLAIM")] - SdlkExclaim = unchecked((int)'!'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_QUOTEDBL")] - SdlkQuotedbl = unchecked((int)'"'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_HASH")] - SdlkHash = unchecked((int)'#'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_PERCENT")] - SdlkPercent = unchecked((int)'%'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_DOLLAR")] - SdlkDollar = unchecked((int)'$'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_AMPERSAND")] - SdlkAmpersand = unchecked((int)'&'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_QUOTE")] - SdlkQuote = unchecked((int)'\''), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_LEFTPAREN")] - SdlkLeftparen = unchecked((int)'('), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_RIGHTPAREN")] - SdlkRightparen = unchecked((int)')'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_ASTERISK")] - SdlkAsterisk = unchecked((int)'*'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_PLUS")] - SdlkPlus = unchecked((int)'+'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_COMMA")] - SdlkComma = unchecked((int)','), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_MINUS")] - SdlkMinus = unchecked((int)'-'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_PERIOD")] - SdlkPeriod = unchecked((int)'.'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_SLASH")] - SdlkSlash = unchecked((int)'/'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_0")] - Sdlk0 = unchecked((int)'0'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_1")] - Sdlk1 = unchecked((int)'1'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_2")] - Sdlk2 = unchecked((int)'2'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_3")] - Sdlk3 = unchecked((int)'3'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_4")] - Sdlk4 = unchecked((int)'4'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_5")] - Sdlk5 = unchecked((int)'5'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_6")] - Sdlk6 = unchecked((int)'6'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_7")] - Sdlk7 = unchecked((int)'7'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_8")] - Sdlk8 = unchecked((int)'8'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_9")] - Sdlk9 = unchecked((int)'9'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_COLON")] - SdlkColon = unchecked((int)':'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_SEMICOLON")] - SdlkSemicolon = unchecked((int)';'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_LESS")] - SdlkLess = unchecked((int)'<'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_EQUALS")] - SdlkEquals = unchecked((int)'='), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_GREATER")] - SdlkGreater = unchecked((int)'>'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_QUESTION")] - SdlkQuestion = unchecked((int)'?'), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDLK_AT")] - SdlkAt = unchecked((int)'@'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_LEFTBRACKET")] - SdlkLeftbracket = unchecked((int)'['), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_BACKSLASH")] - SdlkBackslash = unchecked((int)'\\'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_RIGHTBRACKET")] - SdlkRightbracket = unchecked((int)']'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_CARET")] - SdlkCaret = unchecked((int)'^'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_UNDERSCORE")] - SdlkUnderscore = unchecked((int)'_'), - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_BACKQUOTE")] - SdlkBackquote = unchecked((int)'`'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_a")] - Sdlka = unchecked((int)'a'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_b")] - Sdlkb = unchecked((int)'b'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_c")] - Sdlkc = unchecked((int)'c'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_d")] - Sdlkd = unchecked((int)'d'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_e")] - Sdlke = unchecked((int)'e'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_f")] - Sdlkf = unchecked((int)'f'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_g")] - Sdlkg = unchecked((int)'g'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_h")] - Sdlkh = unchecked((int)'h'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_i")] - Sdlki = unchecked((int)'i'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_j")] - Sdlkj = unchecked((int)'j'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_k")] - Sdlkk = unchecked((int)'k'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_l")] - Sdlkl = unchecked((int)'l'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_m")] - Sdlkm = unchecked((int)'m'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_n")] - Sdlkn = unchecked((int)'n'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_o")] - Sdlko = unchecked((int)'o'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_p")] - Sdlkp = unchecked((int)'p'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_q")] - Sdlkq = unchecked((int)'q'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_r")] - Sdlkr = unchecked((int)'r'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_s")] - Sdlks = unchecked((int)'s'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_t")] - Sdlkt = unchecked((int)'t'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_u")] - Sdlku = unchecked((int)'u'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_v")] - Sdlkv = unchecked((int)'v'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_w")] - Sdlkw = unchecked((int)'w'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_x")] - Sdlkx = unchecked((int)'x'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_y")] - Sdlky = unchecked((int)'y'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_z")] - Sdlkz = unchecked((int)'z'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_CAPSLOCK")] - SdlkCapslock = unchecked(1073741881), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F1")] - Sdlkf1 = unchecked(1073741882), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F2")] - Sdlkf2 = unchecked(1073741883), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F3")] - Sdlkf3 = unchecked(1073741884), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F4")] - Sdlkf4 = unchecked(1073741885), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F5")] - Sdlkf5 = unchecked(1073741886), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F6")] - Sdlkf6 = unchecked(1073741887), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F7")] - Sdlkf7 = unchecked(1073741888), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F8")] - Sdlkf8 = unchecked(1073741889), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F9")] - Sdlkf9 = unchecked(1073741890), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F10")] - Sdlkf10 = unchecked(1073741891), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F11")] - Sdlkf11 = unchecked(1073741892), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F12")] - Sdlkf12 = unchecked(1073741893), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_PRINTSCREEN")] - SdlkPrintscreen = unchecked(1073741894), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_SCROLLLOCK")] - SdlkScrolllock = unchecked(1073741895), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_PAUSE")] - SdlkPause = unchecked(1073741896), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_INSERT")] - SdlkInsert = unchecked(1073741897), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_HOME")] - SdlkHome = unchecked(1073741898), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_PAGEUP")] - SdlkPageup = unchecked(1073741899), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_DELETE")] - SdlkDelete = unchecked((int)'\x7F'), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_END")] - SdlkEnd = unchecked(1073741901), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_PAGEDOWN")] - SdlkPagedown = unchecked(1073741902), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_RIGHT")] - SdlkRight = unchecked(1073741903), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_LEFT")] - SdlkLeft = unchecked(1073741904), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_DOWN")] - SdlkDown = unchecked(1073741905), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_UP")] - SdlkUp = unchecked(1073741906), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_NUMLOCKCLEAR")] - SdlkNumlockclear = unchecked(1073741907), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_DIVIDE")] - SdlkKpDivide = unchecked(1073741908), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_MULTIPLY")] - SdlkKpMultiply = unchecked(1073741909), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_MINUS")] - SdlkKpMinus = unchecked(1073741910), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_PLUS")] - SdlkKpPlus = unchecked(1073741911), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_ENTER")] - SdlkKpEnter = unchecked(1073741912), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_1")] - SdlkKp1 = unchecked(1073741913), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_2")] - SdlkKp2 = unchecked(1073741914), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_3")] - SdlkKp3 = unchecked(1073741915), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_4")] - SdlkKp4 = unchecked(1073741916), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_5")] - SdlkKp5 = unchecked(1073741917), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_6")] - SdlkKp6 = unchecked(1073741918), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_7")] - SdlkKp7 = unchecked(1073741919), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_8")] - SdlkKp8 = unchecked(1073741920), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_9")] - SdlkKp9 = unchecked(1073741921), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_0")] - SdlkKp0 = unchecked(1073741922), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_PERIOD")] - SdlkKpPeriod = unchecked(1073741923), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_APPLICATION")] - SdlkApplication = unchecked(1073741925), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_POWER")] - SdlkPower = unchecked(1073741926), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_EQUALS")] - SdlkKpEquals = unchecked(1073741927), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F13")] - Sdlkf13 = unchecked(1073741928), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F14")] - Sdlkf14 = unchecked(1073741929), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F15")] - Sdlkf15 = unchecked(1073741930), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F16")] - Sdlkf16 = unchecked(1073741931), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F17")] - Sdlkf17 = unchecked(1073741932), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F18")] - Sdlkf18 = unchecked(1073741933), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F19")] - Sdlkf19 = unchecked(1073741934), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F20")] - Sdlkf20 = unchecked(1073741935), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F21")] - Sdlkf21 = unchecked(1073741936), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F22")] - Sdlkf22 = unchecked(1073741937), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F23")] - Sdlkf23 = unchecked(1073741938), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_F24")] - Sdlkf24 = unchecked(1073741939), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_EXECUTE")] - SdlkExecute = unchecked(1073741940), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_HELP")] - SdlkHelp = unchecked(1073741941), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_MENU")] - SdlkMenu = unchecked(1073741942), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_SELECT")] - SdlkSelect = unchecked(1073741943), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_STOP")] - SdlkStop = unchecked(1073741944), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AGAIN")] - SdlkAgain = unchecked(1073741945), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_UNDO")] - SdlkUndo = unchecked(1073741946), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_CUT")] - SdlkCut = unchecked(1073741947), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_COPY")] - SdlkCopy = unchecked(1073741948), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_PASTE")] - SdlkPaste = unchecked(1073741949), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_FIND")] - SdlkFind = unchecked(1073741950), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_MUTE")] - SdlkMute = unchecked(1073741951), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_VOLUMEUP")] - SdlkVolumeup = unchecked(1073741952), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_VOLUMEDOWN")] - SdlkVolumedown = unchecked(1073741953), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_COMMA")] - SdlkKpComma = unchecked(1073741957), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_EQUALSAS400")] - SdlkKpEqualsas400 = unchecked(1073741958), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_ALTERASE")] - SdlkAlterase = unchecked(1073741977), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_SYSREQ")] - SdlkSysreq = unchecked(1073741978), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_CANCEL")] - SdlkCancel = unchecked(1073741979), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_CLEAR")] - SdlkClear = unchecked(1073741980), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_PRIOR")] - SdlkPrior = unchecked(1073741981), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_RETURN2")] - SdlkReturn2 = unchecked(1073741982), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_SEPARATOR")] - SdlkSeparator = unchecked(1073741983), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_OUT")] - SdlkOut = unchecked(1073741984), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_OPER")] - SdlkOper = unchecked(1073741985), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_CLEARAGAIN")] - SdlkClearagain = unchecked(1073741986), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_CRSEL")] - SdlkCrsel = unchecked(1073741987), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_EXSEL")] - SdlkExsel = unchecked(1073741988), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_00")] - SdlkKp00 = unchecked(1073742000), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_000")] - SdlkKp000 = unchecked(1073742001), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_THOUSANDSSEPARATOR")] - SdlkThousandsseparator = unchecked(1073742002), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_DECIMALSEPARATOR")] - SdlkDecimalseparator = unchecked(1073742003), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_CURRENCYUNIT")] - SdlkCurrencyunit = unchecked(1073742004), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_CURRENCYSUBUNIT")] - SdlkCurrencysubunit = unchecked(1073742005), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_LEFTPAREN")] - SdlkKpLeftparen = unchecked(1073742006), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_RIGHTPAREN")] - SdlkKpRightparen = unchecked(1073742007), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_LEFTBRACE")] - SdlkKpLeftbrace = unchecked(1073742008), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_RIGHTBRACE")] - SdlkKpRightbrace = unchecked(1073742009), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_TAB")] - SdlkKpTab = unchecked(1073742010), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_BACKSPACE")] - SdlkKpBackspace = unchecked(1073742011), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_A")] - SdlkKpa = unchecked(1073742012), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_B")] - SdlkKpb = unchecked(1073742013), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_C")] - SdlkKpc = unchecked(1073742014), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_D")] - SdlkKpd = unchecked(1073742015), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_E")] - SdlkKpe = unchecked(1073742016), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_F")] - SdlkKpf = unchecked(1073742017), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_XOR")] - SdlkKpXor = unchecked(1073742018), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_POWER")] - SdlkKpPower = unchecked(1073742019), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_PERCENT")] - SdlkKpPercent = unchecked(1073742020), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_LESS")] - SdlkKpLess = unchecked(1073742021), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_GREATER")] - SdlkKpGreater = unchecked(1073742022), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_AMPERSAND")] - SdlkKpAmpersand = unchecked(1073742023), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_DBLAMPERSAND")] - SdlkKpDblampersand = unchecked(1073742024), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_VERTICALBAR")] - SdlkKpVerticalbar = unchecked(1073742025), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_DBLVERTICALBAR")] - SdlkKpDblverticalbar = unchecked(1073742026), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_COLON")] - SdlkKpColon = unchecked(1073742027), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_HASH")] - SdlkKpHash = unchecked(1073742028), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_SPACE")] - SdlkKpSpace = unchecked(1073742029), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_AT")] - SdlkKpAt = unchecked(1073742030), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_EXCLAM")] - SdlkKpExclam = unchecked(1073742031), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMSTORE")] - SdlkKpMemstore = unchecked(1073742032), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMRECALL")] - SdlkKpMemrecall = unchecked(1073742033), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMCLEAR")] - SdlkKpMemclear = unchecked(1073742034), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMADD")] - SdlkKpMemadd = unchecked(1073742035), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMSUBTRACT")] - SdlkKpMemsubtract = unchecked(1073742036), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMMULTIPLY")] - SdlkKpMemmultiply = unchecked(1073742037), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMDIVIDE")] - SdlkKpMemdivide = unchecked(1073742038), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_PLUSMINUS")] - SdlkKpPlusminus = unchecked(1073742039), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_CLEAR")] - SdlkKpClear = unchecked(1073742040), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_CLEARENTRY")] - SdlkKpClearentry = unchecked(1073742041), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_BINARY")] - SdlkKpBinary = unchecked(1073742042), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_OCTAL")] - SdlkKpOctal = unchecked(1073742043), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_DECIMAL")] - SdlkKpDecimal = unchecked(1073742044), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KP_HEXADECIMAL")] - SdlkKpHexadecimal = unchecked(1073742045), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_LCTRL")] - SdlkLctrl = unchecked(1073742048), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_LSHIFT")] - SdlkLshift = unchecked(1073742049), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_LALT")] - SdlkLalt = unchecked(1073742050), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_LGUI")] - SdlkLgui = unchecked(1073742051), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_RCTRL")] - SdlkRctrl = unchecked(1073742052), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_RSHIFT")] - SdlkRshift = unchecked(1073742053), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_RALT")] - SdlkRalt = unchecked(1073742054), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_RGUI")] - SdlkRgui = unchecked(1073742055), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_MODE")] - SdlkMode = unchecked(1073742081), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AUDIONEXT")] - SdlkAudionext = unchecked(1073742082), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AUDIOPREV")] - SdlkAudioprev = unchecked(1073742083), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AUDIOSTOP")] - SdlkAudiostop = unchecked(1073742084), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AUDIOPLAY")] - SdlkAudioplay = unchecked(1073742085), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AUDIOMUTE")] - SdlkAudiomute = unchecked(1073742086), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_MEDIASELECT")] - SdlkMediaselect = unchecked(1073742087), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_WWW")] - SdlkWww = unchecked(1073742088), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_MAIL")] - SdlkMail = unchecked(1073742089), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_CALCULATOR")] - SdlkCalculator = unchecked(1073742090), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_COMPUTER")] - SdlkComputer = unchecked(1073742091), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AC_SEARCH")] - SdlkAcSearch = unchecked(1073742092), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AC_HOME")] - SdlkAcHome = unchecked(1073742093), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AC_BACK")] - SdlkAcBack = unchecked(1073742094), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AC_FORWARD")] - SdlkAcForward = unchecked(1073742095), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AC_STOP")] - SdlkAcStop = unchecked(1073742096), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AC_REFRESH")] - SdlkAcRefresh = unchecked(1073742097), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AC_BOOKMARKS")] - SdlkAcBookmarks = unchecked(1073742098), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_BRIGHTNESSDOWN")] - SdlkBrightnessdown = unchecked(1073742099), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_BRIGHTNESSUP")] - SdlkBrightnessup = unchecked(1073742100), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_DISPLAYSWITCH")] - SdlkDisplayswitch = unchecked(1073742101), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KBDILLUMTOGGLE")] - SdlkKbdillumtoggle = unchecked(1073742102), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KBDILLUMDOWN")] - SdlkKbdillumdown = unchecked(1073742103), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_KBDILLUMUP")] - SdlkKbdillumup = unchecked(1073742104), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_EJECT")] - SdlkEject = unchecked(1073742105), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_SLEEP")] - SdlkSleep = unchecked(1073742106), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_APP1")] - SdlkApp1 = unchecked(1073742107), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_APP2")] - SdlkApp2 = unchecked(1073742108), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AUDIOREWIND")] - SdlkAudiorewind = unchecked(1073742109), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_AUDIOFASTFORWARD")] - SdlkAudiofastforward = unchecked(1073742110), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_SOFTLEFT")] - SdlkSoftleft = unchecked(1073742111), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_SOFTRIGHT")] - SdlkSoftright = unchecked(1073742112), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_CALL")] - SdlkCall = unchecked(1073742113), - - /// - /// Skip uppercase letters
- ///
- [NativeName(NativeNameType.EnumItem, "SDLK_ENDCALL")] - SdlkEndcall = unchecked(1073742114), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_Keymod")] - public enum SDLKeymod - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_NONE")] - KmodNone = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_LSHIFT")] - KmodLshift = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_RSHIFT")] - KmodRshift = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_LCTRL")] - KmodLctrl = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_RCTRL")] - KmodRctrl = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_LALT")] - KmodLalt = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_RALT")] - KmodRalt = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_LGUI")] - KmodLgui = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_RGUI")] - KmodRgui = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_NUM")] - KmodNum = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_CAPS")] - KmodCaps = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_MODE")] - KmodMode = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_SCROLL")] - KmodScroll = unchecked(32768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_CTRL")] - KmodCtrl = unchecked(192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_SHIFT")] - KmodShift = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_ALT")] - KmodAlt = unchecked(768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "KMOD_GUI")] - KmodGui = unchecked(3072), - - /// - /// This is for source-level compatibility with SDL 2.0.0.
- ///
- [NativeName(NativeNameType.EnumItem, "KMOD_RESERVED")] - KmodReserved = KmodScroll, - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_SystemCursor")] - public enum SDLSystemCursor - { - /// - /// Arrow
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_ARROW")] - Arrow = unchecked(0), - - /// - /// I-beam
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_IBEAM")] - Ibeam = unchecked(1), - - /// - /// Wait
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_WAIT")] - Wait = unchecked(2), - - /// - /// Crosshair
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_CROSSHAIR")] - Crosshair = unchecked(3), - - /// - /// Small wait cursor (or Wait if not available)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_WAITARROW")] - Waitarrow = unchecked(4), - - /// - /// Double arrow pointing northwest and southeast
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_SIZENWSE")] - Sizenwse = unchecked(5), - - /// - /// Double arrow pointing northeast and southwest
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_SIZENESW")] - Sizenesw = unchecked(6), - - /// - /// Double arrow pointing west and east
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_SIZEWE")] - Sizewe = unchecked(7), - - /// - /// Double arrow pointing north and south
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_SIZENS")] - Sizens = unchecked(8), - - /// - /// Four pointed arrow pointing north, south, east, and west
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_SIZEALL")] - Sizeall = unchecked(9), - - /// - /// Slashed circle or crossbones
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_NO")] - No = unchecked(10), - - /// - /// Hand
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_HAND")] - Hand = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_NUM_SYSTEM_CURSORS")] - NumSystemCursors = unchecked(12), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_MouseWheelDirection")] - public enum SDLMouseWheelDirection - { - /// - /// The scroll direction is normal
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MOUSEWHEEL_NORMAL")] - MousewheelNormal = unchecked(0), - - /// - /// The scroll direction is flipped / natural
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MOUSEWHEEL_FLIPPED")] - MousewheelFlipped = unchecked(1), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_JoystickType")] - public enum SDLJoystickType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_UNKNOWN")] - Unknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_GAMECONTROLLER")] - Gamecontroller = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_WHEEL")] - Wheel = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_ARCADE_STICK")] - ArcadeStick = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_FLIGHT_STICK")] - FlightStick = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_DANCE_PAD")] - DancePad = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_GUITAR")] - Guitar = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_DRUM_KIT")] - DrumKit = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_ARCADE_PAD")] - ArcadePad = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_THROTTLE")] - Throttle = unchecked(9), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_JoystickPowerLevel")] - public enum SDLJoystickPowerLevel - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_UNKNOWN")] - Unknown = unchecked(-1), - - /// - ///
- /// <
- /// = 5%
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_EMPTY")] - Empty = unchecked(0), - - /// - ///
- /// <
- /// = 20%
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_LOW")] - Low = unchecked(1), - - /// - ///
- /// <
- /// = 70%
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_MEDIUM")] - Medium = unchecked(2), - - /// - ///
- /// <
- /// = 100%
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_FULL")] - Full = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_WIRED")] - Wired = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_MAX")] - Max = unchecked(5), - - } - - /// - /// The different sensors defined by SDL
- /// Additional sensors may be available, using platform dependent semantics.
- /// Hare are the additional Android sensors:
- /// https://developer.android.com/reference/android/hardware/SensorEvent.html#values
- ///
- [NativeName(NativeNameType.Enum, "SDL_SensorType")] - public enum SDLSensorType - { - /// - /// Returned for an invalid sensor
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SENSOR_INVALID")] - Invalid = unchecked(-1), - - /// - /// Unknown sensor type
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SENSOR_UNKNOWN")] - Unknown = unchecked(0), - - /// - /// Accelerometer
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SENSOR_ACCEL")] - Accel = unchecked(1), - - /// - /// Gyroscope
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SENSOR_GYRO")] - Gyro = unchecked(2), - - /// - /// Accelerometer for left Joy-Con controller and Wii nunchuk
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SENSOR_ACCEL_L")] - Accell = unchecked(3), - - /// - /// Gyroscope for left Joy-Con controller
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SENSOR_GYRO_L")] - Gyrol = unchecked(4), - - /// - /// Accelerometer for right Joy-Con controller
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SENSOR_ACCEL_R")] - Accelr = unchecked(5), - - /// - /// Gyroscope for right Joy-Con controller
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SENSOR_GYRO_R")] - Gyror = unchecked(6), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_GameControllerType")] - public enum SDLGameControllerType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_UNKNOWN")] - Unknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_XBOX360")] - Xbox360 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_XBOXONE")] - Xboxone = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_PS3")] - Ps3 = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_PS4")] - Ps4 = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO")] - NintendoSwitchPro = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_VIRTUAL")] - Virtual = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_PS5")] - Ps5 = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_AMAZON_LUNA")] - AmazonLuna = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_GOOGLE_STADIA")] - GoogleStadia = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_NVIDIA_SHIELD")] - NvidiaShield = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT")] - NintendoSwitchJoyconLeft = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT")] - NintendoSwitchJoyconRight = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_PAIR")] - NintendoSwitchJoyconPair = unchecked(13), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_GameControllerBindType")] - public enum SDLGameControllerBindType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BINDTYPE_NONE")] - BindtypeNone = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BINDTYPE_BUTTON")] - BindtypeButton = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BINDTYPE_AXIS")] - BindtypeAxis = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BINDTYPE_HAT")] - BindtypeHat = unchecked(3), - - } - - /// - /// The list of axes available from a controller
- /// Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX,
- /// and are centered within ~8000 of zero, though advanced UI will allow users to set
- /// or autodetect the dead zone, which varies between controllers.
- /// Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
- ///
- [NativeName(NativeNameType.Enum, "SDL_GameControllerAxis")] - public enum SDLGameControllerAxis - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_INVALID")] - Invalid = unchecked(-1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_LEFTX")] - Leftx = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_LEFTY")] - Lefty = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_RIGHTX")] - Rightx = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_RIGHTY")] - Righty = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_TRIGGERLEFT")] - Triggerleft = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_TRIGGERRIGHT")] - Triggerright = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_MAX")] - Max = unchecked(6), - - } - - /// - /// The list of buttons available from a controller
- ///
- [NativeName(NativeNameType.Enum, "SDL_GameControllerButton")] - public enum SDLGameControllerButton - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_INVALID")] - Invalid = unchecked(-1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_A")] - Buttona = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_B")] - Buttonb = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_X")] - Buttonx = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_Y")] - Buttony = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_BACK")] - Back = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_GUIDE")] - Guide = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_START")] - Start = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_LEFTSTICK")] - Leftstick = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_RIGHTSTICK")] - Rightstick = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_LEFTSHOULDER")] - Leftshoulder = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_RIGHTSHOULDER")] - Rightshoulder = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_DPAD_UP")] - DpadUp = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_DPAD_DOWN")] - DpadDown = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_DPAD_LEFT")] - DpadLeft = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_DPAD_RIGHT")] - DpadRight = unchecked(14), - - /// - /// Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button, Amazon Luna microphone button
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_MISC1")] - Misc1 = unchecked(15), - - /// - /// Xbox Elite paddle P1 (upper left, facing the back)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_PADDLE1")] - Paddle1 = unchecked(16), - - /// - /// Xbox Elite paddle P3 (upper right, facing the back)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_PADDLE2")] - Paddle2 = unchecked(17), - - /// - /// Xbox Elite paddle P2 (lower left, facing the back)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_PADDLE3")] - Paddle3 = unchecked(18), - - /// - /// Xbox Elite paddle P4 (lower right, facing the back)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_PADDLE4")] - Paddle4 = unchecked(19), - - /// - /// PS4/PS5 touchpad button
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_TOUCHPAD")] - Touchpad = unchecked(20), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_MAX")] - Max = unchecked(21), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_TouchDeviceType")] - public enum SDLTouchDeviceType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_TOUCH_DEVICE_INVALID")] - Invalid = unchecked(-1), - - /// - /// touch screen with window-relative coordinates
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TOUCH_DEVICE_DIRECT")] - Direct = unchecked(0), - - /// - /// trackpad with absolute device coordinates
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE")] - IndirectAbsolute = unchecked(1), - - /// - /// trackpad with screen cursor-relative coordinates
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TOUCH_DEVICE_INDIRECT_RELATIVE")] - IndirectRelative = unchecked(2), - - } - - /// - /// The types of events that can be delivered.
- ///
- [NativeName(NativeNameType.Enum, "SDL_EventType")] - public enum SDLEventType - { - /// - /// Unused (do not remove)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_FIRSTEVENT")] - Firstevent = unchecked(0), - - /// - /// User-requested quit
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_QUIT")] - Quit = unchecked(256), - - /// - /// The application is being terminated by the OS
- /// Called on iOS in applicationWillTerminate()
- /// Called on Android in onDestroy()
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_APP_TERMINATING")] - AppTerminating = unchecked(257), - - /// - /// The application is low on memory, free memory if possible.
- /// Called on iOS in applicationDidReceiveMemoryWarning()
- /// Called on Android in onLowMemory()
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_APP_LOWMEMORY")] - AppLowmemory = unchecked(258), - - /// - /// The application is about to enter the background
- /// Called on iOS in applicationWillResignActive()
- /// Called on Android in onPause()
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_APP_WILLENTERBACKGROUND")] - AppWillenterbackground = unchecked(259), - - /// - /// The application did enter the background and may not get CPU for some time
- /// Called on iOS in applicationDidEnterBackground()
- /// Called on Android in onPause()
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_APP_DIDENTERBACKGROUND")] - AppDidenterbackground = unchecked(260), - - /// - /// The application is about to enter the foreground
- /// Called on iOS in applicationWillEnterForeground()
- /// Called on Android in onResume()
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_APP_WILLENTERFOREGROUND")] - AppWillenterforeground = unchecked(261), - - /// - /// The application is now interactive
- /// Called on iOS in applicationDidBecomeActive()
- /// Called on Android in onResume()
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_APP_DIDENTERFOREGROUND")] - AppDidenterforeground = unchecked(262), - - /// - /// The user's locale preferences have changed.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOCALECHANGED")] - Localechanged = unchecked(263), - - /// - /// Display state change
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT")] - Displayevent = unchecked(336), - - /// - /// Window state change
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT")] - Windowevent = unchecked(512), - - /// - /// System specific event
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSWMEVENT")] - Syswmevent = unchecked(513), - - /// - /// Key pressed
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_KEYDOWN")] - Keydown = unchecked(768), - - /// - /// Key released
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_KEYUP")] - Keyup = unchecked(769), - - /// - /// Keyboard text editing (composition)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TEXTEDITING")] - Textediting = unchecked(770), - - /// - /// Keyboard text input
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TEXTINPUT")] - Textinput = unchecked(771), - - /// - /// Keymap changed due to a system event such as an
- /// input language or keyboard layout change.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_KEYMAPCHANGED")] - Keymapchanged = unchecked(772), - - /// - /// Extended keyboard text editing (composition)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TEXTEDITING_EXT")] - TexteditingExt = unchecked(773), - - /// - /// Mouse moved
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MOUSEMOTION")] - Mousemotion = unchecked(1024), - - /// - /// Mouse button pressed
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MOUSEBUTTONDOWN")] - Mousebuttondown = unchecked(1025), - - /// - /// Mouse button released
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MOUSEBUTTONUP")] - Mousebuttonup = unchecked(1026), - - /// - /// Mouse wheel motion
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MOUSEWHEEL")] - Mousewheel = unchecked(1027), - - /// - /// Joystick axis motion
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYAXISMOTION")] - Joyaxismotion = unchecked(1536), - - /// - /// Joystick trackball motion
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYBALLMOTION")] - Joyballmotion = unchecked(1537), - - /// - /// Joystick hat position change
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYHATMOTION")] - Joyhatmotion = unchecked(1538), - - /// - /// Joystick button pressed
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYBUTTONDOWN")] - Joybuttondown = unchecked(1539), - - /// - /// Joystick button released
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYBUTTONUP")] - Joybuttonup = unchecked(1540), - - /// - /// A new joystick has been inserted into the system
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYDEVICEADDED")] - Joydeviceadded = unchecked(1541), - - /// - /// An opened joystick has been removed
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYDEVICEREMOVED")] - Joydeviceremoved = unchecked(1542), - - /// - /// Joystick battery level change
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_JOYBATTERYUPDATED")] - Joybatteryupdated = unchecked(1543), - - /// - /// Game controller axis motion
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERAXISMOTION")] - Controlleraxismotion = unchecked(1616), - - /// - /// Game controller button pressed
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERBUTTONDOWN")] - Controllerbuttondown = unchecked(1617), - - /// - /// Game controller button released
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERBUTTONUP")] - Controllerbuttonup = unchecked(1618), - - /// - /// A new Game controller has been inserted into the system
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERDEVICEADDED")] - Controllerdeviceadded = unchecked(1619), - - /// - /// An opened Game controller has been removed
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERDEVICEREMOVED")] - Controllerdeviceremoved = unchecked(1620), - - /// - /// The controller mapping was updated
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERDEVICEREMAPPED")] - Controllerdeviceremapped = unchecked(1621), - - /// - /// Game controller touchpad was touched
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERTOUCHPADDOWN")] - Controllertouchpaddown = unchecked(1622), - - /// - /// Game controller touchpad finger was moved
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERTOUCHPADMOTION")] - Controllertouchpadmotion = unchecked(1623), - - /// - /// Game controller touchpad finger was lifted
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERTOUCHPADUP")] - Controllertouchpadup = unchecked(1624), - - /// - /// Game controller sensor was updated
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERSENSORUPDATE")] - Controllersensorupdate = unchecked(1625), - - /// - /// Touch events
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_FINGERDOWN")] - Fingerdown = unchecked(1792), - - /// - /// Touch events
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_FINGERUP")] - Fingerup = unchecked(1793), - - /// - /// Touch events
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_FINGERMOTION")] - Fingermotion = unchecked(1794), - - /// - /// Gesture events
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DOLLARGESTURE")] - Dollargesture = unchecked(2048), - - /// - /// Gesture events
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DOLLARRECORD")] - Dollarrecord = unchecked(2049), - - /// - /// Gesture events
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MULTIGESTURE")] - Multigesture = unchecked(2050), - - /// - /// The clipboard or primary selection changed
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_CLIPBOARDUPDATE")] - Clipboardupdate = unchecked(2304), - - /// - /// The system requests a file open
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DROPFILE")] - Dropfile = unchecked(4096), - - /// - /// text/plain drag-and-drop event
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DROPTEXT")] - Droptext = unchecked(4097), - - /// - /// A new set of drops is beginning (NULL filename)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DROPBEGIN")] - Dropbegin = unchecked(4098), - - /// - /// Current set of drops is now complete (NULL filename)
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_DROPCOMPLETE")] - Dropcomplete = unchecked(4099), - - /// - /// A new audio device is available
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_AUDIODEVICEADDED")] - Audiodeviceadded = unchecked(4352), - - /// - /// An audio device has been removed.
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_AUDIODEVICEREMOVED")] - Audiodeviceremoved = unchecked(4353), - - /// - /// A sensor was updated
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SENSORUPDATE")] - Sensorupdate = unchecked(4608), - - /// - /// The render targets have been reset and their contents need to be updated
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_RENDER_TARGETS_RESET")] - RenderTargetsReset = unchecked(8192), - - /// - /// The device has been reset and all textures need to be recreated
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_RENDER_DEVICE_RESET")] - RenderDeviceReset = unchecked(8193), - - /// - /// Signals the end of an event poll cycle
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_POLLSENTINEL")] - Pollsentinel = unchecked(32512), - - /// - /// Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use,
- /// and should be allocated with SDL_RegisterEvents()
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_USEREVENT")] - Userevent = unchecked(32768), - - /// - /// This last event is only for bounding internal arrays
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LASTEVENT")] - Lastevent = unchecked(65535), - - } - - /// - /// These are the various supported windowing subsystems
- ///
- [NativeName(NativeNameType.Enum, "SDL_SYSWM_TYPE")] - public enum SdlSyswmType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_UNKNOWN")] - Unknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_WINDOWS")] - Windows = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_X11")] - Syswmx11 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_DIRECTFB")] - Directfb = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_COCOA")] - Cocoa = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_UIKIT")] - Uikit = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_WAYLAND")] - Wayland = unchecked(6), - - /// - /// no longer available, left for API/ABI compatibility. Remove in 2.1!
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_MIR")] - Mir = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_WINRT")] - Winrt = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_ANDROID")] - Android = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_VIVANTE")] - Vivante = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_OS2")] - Os2 = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_HAIKU")] - Haiku = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_KMSDRM")] - Kmsdrm = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_RISCOS")] - Riscos = unchecked(14), - - } - - /// - ///
- /// @
- /// {
- ///
- [NativeName(NativeNameType.Enum, "SDL_eventaction")] - public enum SDLEventaction - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_ADDEVENT")] - Addevent = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_PEEKEVENT")] - Peekevent = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_GETEVENT")] - Getevent = unchecked(2), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_HintPriority")] - public enum SDLHintPriority - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_HINT_DEFAULT")] - Default = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_HINT_NORMAL")] - Normal = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_HINT_OVERRIDE")] - Override = unchecked(2), - - } - - /// - ///
- /// - /// To be documented. - /// - /// By default the application category is enabled at the INFO level,
- /// the assert category is enabled at the WARN level, test is enabled
- /// at the VERBOSE level and all other categories are enabled at the
- /// CRITICAL level.
- ///
- [NativeName(NativeNameType.Enum, "SDL_LogCategory")] - public enum SDLLogCategory - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_APPLICATION")] - Application = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_ERROR")] - Error = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_ASSERT")] - Assert = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_SYSTEM")] - System = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_AUDIO")] - Audio = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_VIDEO")] - Video = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RENDER")] - Render = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_INPUT")] - Input = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_TEST")] - Test = unchecked(8), - - /// - /// Reserved for future SDL library use
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED1")] - Reserved1 = unchecked(9), - - /// - /// Reserved for future SDL library use
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED2")] - Reserved2 = unchecked(10), - - /// - /// Reserved for future SDL library use
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED3")] - Reserved3 = unchecked(11), - - /// - /// Reserved for future SDL library use
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED4")] - Reserved4 = unchecked(12), - - /// - /// Reserved for future SDL library use
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED5")] - Reserved5 = unchecked(13), - - /// - /// Reserved for future SDL library use
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED6")] - Reserved6 = unchecked(14), - - /// - /// Reserved for future SDL library use
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED7")] - Reserved7 = unchecked(15), - - /// - /// Reserved for future SDL library use
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED8")] - Reserved8 = unchecked(16), - - /// - /// Reserved for future SDL library use
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED9")] - Reserved9 = unchecked(17), - - /// - /// Reserved for future SDL library use
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED10")] - Reserved10 = unchecked(18), - - /// - /// Beyond this point is reserved for application use, e.g.
- /// enum {
- /// MYAPP_CATEGORY_AWESOME1 = SDL_LOG_CATEGORY_CUSTOM,
- /// MYAPP_CATEGORY_AWESOME2,
- /// MYAPP_CATEGORY_AWESOME3,
- /// ...
- /// };
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_CUSTOM")] - Custom = unchecked(19), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "SDL_LogPriority")] - public enum SDLLogPriority - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_VERBOSE")] - Verbose = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_DEBUG")] - Debug = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_INFO")] - Info = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_WARN")] - Warn = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_ERROR")] - Error = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_CRITICAL")] - Critical = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_NUM_LOG_PRIORITIES")] - NumLogPriorities = unchecked(7), - - } - - /// - /// SDL_MessageBox flags. If supported will display warning icon, etc.
- ///
- [NativeName(NativeNameType.Enum, "SDL_MessageBoxFlags")] - public enum SDLMessageBoxFlags - { - /// - /// error dialog
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_ERROR")] - MessageboxError = unchecked(16), - - /// - /// warning dialog
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_WARNING")] - MessageboxWarning = unchecked(32), - - /// - /// informational dialog
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_INFORMATION")] - MessageboxInformation = unchecked(64), - - /// - /// buttons placed left to right
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT")] - MessageboxButtonsLeftToRight = unchecked(128), - - /// - /// buttons placed right to left
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT")] - MessageboxButtonsRightToLeft = unchecked(256), - - } - - /// - /// Flags for SDL_MessageBoxButtonData.
- ///
- [NativeName(NativeNameType.Enum, "SDL_MessageBoxButtonFlags")] - public enum SDLMessageBoxButtonFlags - { - /// - /// Marks the default button when return is hit
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT")] - MessageboxButtonReturnkeyDefault = unchecked(1), - - /// - /// Marks the default button when escape is hit
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT")] - MessageboxButtonEscapekeyDefault = unchecked(2), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SDL_MessageBoxColorType")] - public enum SDLMessageBoxColorType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_BACKGROUND")] - MessageboxColorBackground = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_TEXT")] - MessageboxColorText = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_BUTTON_BORDER")] - MessageboxColorButtonBorder = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND")] - MessageboxColorButtonBackground = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED")] - MessageboxColorButtonSelected = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_MAX")] - MessageboxColorMax = unchecked(5), - - } - - /// - /// The basic state for the system's power supply.
- ///
- [NativeName(NativeNameType.Enum, "SDL_PowerState")] - public enum SDLPowerState - { - /// - /// cannot determine power status
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_POWERSTATE_UNKNOWN")] - PowerstateUnknown = unchecked(0), - - /// - /// Not plugged in, running on the battery
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_POWERSTATE_ON_BATTERY")] - PowerstateOnBattery = unchecked(1), - - /// - /// Plugged in, no battery available
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_POWERSTATE_NO_BATTERY")] - PowerstateNoBattery = unchecked(2), - - /// - /// Plugged in, charging battery
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_POWERSTATE_CHARGING")] - PowerstateCharging = unchecked(3), - - /// - /// Plugged in, battery charged
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_POWERSTATE_CHARGED")] - PowerstateCharged = unchecked(4), - - } - - /// - /// Flags used when creating a rendering context
- ///
- [NativeName(NativeNameType.Enum, "SDL_RendererFlags")] - public enum SDLRendererFlags - { - /// - /// The renderer is a software fallback
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_RENDERER_SOFTWARE")] - Software = unchecked(1), - - /// - /// The renderer uses hardware
- /// acceleration
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_RENDERER_ACCELERATED")] - Accelerated = unchecked(2), - - /// - /// Present is synchronized
- /// with the refresh rate
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_RENDERER_PRESENTVSYNC")] - Presentvsync = unchecked(4), - - /// - /// The renderer supports
- /// rendering to texture
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_RENDERER_TARGETTEXTURE")] - Targettexture = unchecked(8), - - } - - /// - /// The scaling mode for a texture.
- ///
- [NativeName(NativeNameType.Enum, "SDL_ScaleMode")] - public enum SDLScaleMode - { - /// - /// nearest pixel sampling
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ScaleModeNearest")] - Nearest = unchecked(0), - - /// - /// linear filtering
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ScaleModeLinear")] - Linear = unchecked(1), - - /// - /// anisotropic filtering
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_ScaleModeBest")] - Best = unchecked(2), - - } - - /// - /// The access pattern allowed for a texture.
- ///
- [NativeName(NativeNameType.Enum, "SDL_TextureAccess")] - public enum SDLTextureAccess - { - /// - /// Changes rarely, not lockable
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TEXTUREACCESS_STATIC")] - TextureaccessStatic = unchecked(0), - - /// - /// Changes frequently, lockable
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TEXTUREACCESS_STREAMING")] - TextureaccessStreaming = unchecked(1), - - /// - /// Texture can be used as a render target
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TEXTUREACCESS_TARGET")] - TextureaccessTarget = unchecked(2), - - } - - /// - /// The texture channel modulation used in SDL_RenderCopy().
- ///
- [NativeName(NativeNameType.Enum, "SDL_TextureModulate")] - public enum SDLTextureModulate - { - /// - /// No modulation
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TEXTUREMODULATE_NONE")] - TexturemodulateNone = unchecked(0), - - /// - /// srcC = srcC * color
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TEXTUREMODULATE_COLOR")] - TexturemodulateColor = unchecked(1), - - /// - /// srcA = srcA * alpha
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_TEXTUREMODULATE_ALPHA")] - TexturemodulateAlpha = unchecked(2), - - } - - /// - /// Flip constants for SDL_RenderCopyEx
- ///
- [NativeName(NativeNameType.Enum, "SDL_RendererFlip")] - public enum SDLRendererFlip - { - /// - /// Do not flip
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_FLIP_NONE")] - None = unchecked(0), - - /// - /// flip horizontally
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_FLIP_HORIZONTAL")] - Horizontal = unchecked(1), - - /// - /// flip vertically
- ///
- [NativeName(NativeNameType.EnumItem, "SDL_FLIP_VERTICAL")] - Vertical = unchecked(2), - - } - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.Enum, "WindowShapeMode")] - public enum WindowShapeMode - { - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.EnumItem, "ShapeModeDefault")] - Default = unchecked(0), - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.EnumItem, "ShapeModeBinarizeAlpha")] - BinarizeAlpha = unchecked(1), - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.EnumItem, "ShapeModeReverseBinarizeAlpha")] - ReverseBinarizeAlpha = unchecked(2), - - /// - ///
- /// - /// To be documented. - /// - ///
- [NativeName(NativeNameType.EnumItem, "ShapeModeColorKey")] - ColorKey = unchecked(3), - - } - -} +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using HexaGen.Runtime; + +namespace Hexa.NET.SDL2 +{ + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_bool")] + public enum SDLBool + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_FALSE")] + [NativeName(NativeNameType.Value, "0")] + False = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_TRUE")] + [NativeName(NativeNameType.Value, "1")] + True = unchecked(1), + + } + + /// /// TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative
///
[NativeName(NativeNameType.Enum, "SDL_DUMMY_ENUM")] + public enum SdlDummyEnum + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "DUMMY_ENUM_VALUE")] + [NativeName(NativeNameType.Value, "0")] + Value = unchecked(0), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_AssertState")] + public enum SDLAssertState + { + /// /// Retry the assert immediately.
///
[NativeName(NativeNameType.EnumItem, "SDL_ASSERTION_RETRY")] + [NativeName(NativeNameType.Value, "0")] + AssertionRetry = unchecked(0), + + /// /// Make the debugger trigger a breakpoint.
///
[NativeName(NativeNameType.EnumItem, "SDL_ASSERTION_BREAK")] + [NativeName(NativeNameType.Value, "1")] + AssertionBreak = unchecked(1), + + /// /// Terminate the program.
///
[NativeName(NativeNameType.EnumItem, "SDL_ASSERTION_ABORT")] + [NativeName(NativeNameType.Value, "2")] + AssertionAbort = unchecked(2), + + /// /// Ignore the assert.
///
[NativeName(NativeNameType.EnumItem, "SDL_ASSERTION_IGNORE")] + [NativeName(NativeNameType.Value, "3")] + AssertionIgnore = unchecked(3), + + /// /// Ignore the assert from now on.
///
[NativeName(NativeNameType.EnumItem, "SDL_ASSERTION_ALWAYS_IGNORE")] + [NativeName(NativeNameType.Value, "4")] + AssertionAlwaysIgnore = unchecked(4), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_errorcode")] + public enum SDLErrorcode + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_ENOMEM")] + [NativeName(NativeNameType.Value, "0")] + Enomem = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_EFREAD")] + [NativeName(NativeNameType.Value, "1")] + Efread = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_EFWRITE")] + [NativeName(NativeNameType.Value, "2")] + Efwrite = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_EFSEEK")] + [NativeName(NativeNameType.Value, "3")] + Efseek = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_UNSUPPORTED")] + [NativeName(NativeNameType.Value, "4")] + Unsupported = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LASTERROR")] + [NativeName(NativeNameType.Value, "5")] + Lasterror = unchecked(5), + + } + + /// /// The SDL thread priority.
/// SDL will make system changes as necessary in order to apply the thread priority.
/// Code which attempts to control thread state related to priority should be aware
/// that calling SDL_SetThreadPriority may alter such state.
/// SDL_HINT_THREAD_PRIORITY_POLICY can be used to control aspects of this behavior.
///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_ThreadPriority")] + public enum SDLThreadPriority + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_THREAD_PRIORITY_LOW")] + [NativeName(NativeNameType.Value, "0")] + Low = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_THREAD_PRIORITY_NORMAL")] + [NativeName(NativeNameType.Value, "1")] + Normal = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_THREAD_PRIORITY_HIGH")] + [NativeName(NativeNameType.Value, "2")] + High = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_THREAD_PRIORITY_TIME_CRITICAL")] + [NativeName(NativeNameType.Value, "3")] + TimeCritical = unchecked(3), + + } + + /// ///
/// /// To be documented. /// /// Get the current audio state.
///
/// @
/// {
///
[NativeName(NativeNameType.Enum, "SDL_AudioStatus")] + public enum SDLAudioStatus + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_AUDIO_STOPPED")] + [NativeName(NativeNameType.Value, "0")] + Stopped = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_AUDIO_PLAYING")] + [NativeName(NativeNameType.Value, "1")] + Playing = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_AUDIO_PAUSED")] + [NativeName(NativeNameType.Value, "2")] + Paused = unchecked(2), + + } + + /// /// Pixel type.
///
[NativeName(NativeNameType.Enum, "SDL_PixelType")] + public enum SDLPixelType + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + PixeltypeUnknown = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_INDEX1")] + [NativeName(NativeNameType.Value, "1")] + PixeltypeIndex1 = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_INDEX4")] + [NativeName(NativeNameType.Value, "2")] + PixeltypeIndex4 = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_INDEX8")] + [NativeName(NativeNameType.Value, "3")] + PixeltypeIndex8 = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_PACKED8")] + [NativeName(NativeNameType.Value, "4")] + PixeltypePacked8 = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_PACKED16")] + [NativeName(NativeNameType.Value, "5")] + PixeltypePacked16 = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_PACKED32")] + [NativeName(NativeNameType.Value, "6")] + PixeltypePacked32 = unchecked(6), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_ARRAYU8")] + [NativeName(NativeNameType.Value, "7")] + PixeltypeArrayu8 = unchecked(7), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_ARRAYU16")] + [NativeName(NativeNameType.Value, "8")] + PixeltypeArrayu16 = unchecked(8), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_ARRAYU32")] + [NativeName(NativeNameType.Value, "9")] + PixeltypeArrayu32 = unchecked(9), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_ARRAYF16")] + [NativeName(NativeNameType.Value, "10")] + PixeltypeArrayf16 = unchecked(10), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELTYPE_ARRAYF32")] + [NativeName(NativeNameType.Value, "11")] + PixeltypeArrayf32 = unchecked(11), + + } + + /// /// Bitmap pixel order, high bit -> low bit.
///
[NativeName(NativeNameType.Enum, "SDL_BitmapOrder")] + public enum SDLBitmapOrder + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_BITMAPORDER_NONE")] + [NativeName(NativeNameType.Value, "0")] + BitmaporderNone = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_BITMAPORDER_4321")] + [NativeName(NativeNameType.Value, "1")] + Bitmaporder4321 = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_BITMAPORDER_1234")] + [NativeName(NativeNameType.Value, "2")] + Bitmaporder1234 = unchecked(2), + + } + + /// /// Packed component order, high bit -> low bit.
///
[NativeName(NativeNameType.Enum, "SDL_PackedOrder")] + public enum SDLPackedOrder + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_NONE")] + [NativeName(NativeNameType.Value, "0")] + PackedorderNone = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_XRGB")] + [NativeName(NativeNameType.Value, "1")] + PackedorderXrgb = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_RGBX")] + [NativeName(NativeNameType.Value, "2")] + PackedorderRgbx = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_ARGB")] + [NativeName(NativeNameType.Value, "3")] + PackedorderArgb = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_RGBA")] + [NativeName(NativeNameType.Value, "4")] + PackedorderRgba = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_XBGR")] + [NativeName(NativeNameType.Value, "5")] + PackedorderXbgr = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_BGRX")] + [NativeName(NativeNameType.Value, "6")] + PackedorderBgrx = unchecked(6), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_ABGR")] + [NativeName(NativeNameType.Value, "7")] + PackedorderAbgr = unchecked(7), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDORDER_BGRA")] + [NativeName(NativeNameType.Value, "8")] + PackedorderBgra = unchecked(8), + + } + + /// /// Array component order, low byte -> high byte.
/// !!! FIXME: in 2.1, make these not overlap differently with
/// !!! FIXME: SDL_PACKEDORDER_*, so we can simplify SDL_ISPIXELFORMAT_ALPHA
///
[NativeName(NativeNameType.Enum, "SDL_ArrayOrder")] + public enum SDLArrayOrder + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_NONE")] + [NativeName(NativeNameType.Value, "0")] + ArrayorderNone = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_RGB")] + [NativeName(NativeNameType.Value, "1")] + ArrayorderRgb = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_RGBA")] + [NativeName(NativeNameType.Value, "2")] + ArrayorderRgba = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_ARGB")] + [NativeName(NativeNameType.Value, "3")] + ArrayorderArgb = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_BGR")] + [NativeName(NativeNameType.Value, "4")] + ArrayorderBgr = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_BGRA")] + [NativeName(NativeNameType.Value, "5")] + ArrayorderBgra = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_ARRAYORDER_ABGR")] + [NativeName(NativeNameType.Value, "6")] + ArrayorderAbgr = unchecked(6), + + } + + /// /// Packed component layout.
///
[NativeName(NativeNameType.Enum, "SDL_PackedLayout")] + public enum SDLPackedLayout + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_NONE")] + [NativeName(NativeNameType.Value, "0")] + PackedlayoutNone = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_332")] + [NativeName(NativeNameType.Value, "1")] + Packedlayout332 = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_4444")] + [NativeName(NativeNameType.Value, "2")] + Packedlayout4444 = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_1555")] + [NativeName(NativeNameType.Value, "3")] + Packedlayout1555 = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_5551")] + [NativeName(NativeNameType.Value, "4")] + Packedlayout5551 = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_565")] + [NativeName(NativeNameType.Value, "5")] + Packedlayout565 = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_8888")] + [NativeName(NativeNameType.Value, "6")] + Packedlayout8888 = unchecked(6), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_2101010")] + [NativeName(NativeNameType.Value, "7")] + Packedlayout2101010 = unchecked(7), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PACKEDLAYOUT_1010102")] + [NativeName(NativeNameType.Value, "8")] + Packedlayout1010102 = unchecked(8), + + } + + /// /// Note: If you modify this list, update SDL_GetPixelFormatName()
///
[NativeName(NativeNameType.Enum, "SDL_PixelFormatEnum")] + public enum SDLPixelFormatEnum + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + PixelformatUnknown = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_INDEX1LSB")] + [NativeName(NativeNameType.Value, "286261504")] + PixelformatIndex1Lsb = unchecked(286261504), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_INDEX1MSB")] + [NativeName(NativeNameType.Value, "287310080")] + PixelformatIndex1Msb = unchecked(287310080), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_INDEX4LSB")] + [NativeName(NativeNameType.Value, "303039488")] + PixelformatIndex4Lsb = unchecked(303039488), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_INDEX4MSB")] + [NativeName(NativeNameType.Value, "304088064")] + PixelformatIndex4Msb = unchecked(304088064), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_INDEX8")] + [NativeName(NativeNameType.Value, "318769153")] + PixelformatIndex8 = unchecked(318769153), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB332")] + [NativeName(NativeNameType.Value, "336660481")] + PixelformatRgb332 = unchecked(336660481), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XRGB4444")] + [NativeName(NativeNameType.Value, "353504258")] + PixelformatXrgb4444 = unchecked(353504258), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB444")] + [NativeName(NativeNameType.Value, "SDL_PIXELFORMAT_XRGB4444")] + PixelformatRgb444 = PixelformatXrgb4444, + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XBGR4444")] + [NativeName(NativeNameType.Value, "357698562")] + PixelformatXbgr4444 = unchecked(357698562), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGR444")] + [NativeName(NativeNameType.Value, "SDL_PIXELFORMAT_XBGR4444")] + PixelformatBgr444 = PixelformatXbgr4444, + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XRGB1555")] + [NativeName(NativeNameType.Value, "353570562")] + PixelformatXrgb1555 = unchecked(353570562), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB555")] + [NativeName(NativeNameType.Value, "SDL_PIXELFORMAT_XRGB1555")] + PixelformatRgb555 = PixelformatXrgb1555, + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XBGR1555")] + [NativeName(NativeNameType.Value, "357764866")] + PixelformatXbgr1555 = unchecked(357764866), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGR555")] + [NativeName(NativeNameType.Value, "SDL_PIXELFORMAT_XBGR1555")] + PixelformatBgr555 = PixelformatXbgr1555, + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ARGB4444")] + [NativeName(NativeNameType.Value, "355602434")] + PixelformatArgb4444 = unchecked(355602434), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGBA4444")] + [NativeName(NativeNameType.Value, "356651010")] + PixelformatRgba4444 = unchecked(356651010), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ABGR4444")] + [NativeName(NativeNameType.Value, "359796738")] + PixelformatAbgr4444 = unchecked(359796738), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGRA4444")] + [NativeName(NativeNameType.Value, "360845314")] + PixelformatBgra4444 = unchecked(360845314), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ARGB1555")] + [NativeName(NativeNameType.Value, "355667970")] + PixelformatArgb1555 = unchecked(355667970), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGBA5551")] + [NativeName(NativeNameType.Value, "356782082")] + PixelformatRgba5551 = unchecked(356782082), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ABGR1555")] + [NativeName(NativeNameType.Value, "359862274")] + PixelformatAbgr1555 = unchecked(359862274), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGRA5551")] + [NativeName(NativeNameType.Value, "360976386")] + PixelformatBgra5551 = unchecked(360976386), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB565")] + [NativeName(NativeNameType.Value, "353701890")] + PixelformatRgb565 = unchecked(353701890), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGR565")] + [NativeName(NativeNameType.Value, "357896194")] + PixelformatBgr565 = unchecked(357896194), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB24")] + [NativeName(NativeNameType.Value, "386930691")] + PixelformatRgb24 = unchecked(386930691), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGR24")] + [NativeName(NativeNameType.Value, "390076419")] + PixelformatBgr24 = unchecked(390076419), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XRGB8888")] + [NativeName(NativeNameType.Value, "370546692")] + PixelformatXrgb8888 = unchecked(370546692), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGB888")] + [NativeName(NativeNameType.Value, "SDL_PIXELFORMAT_XRGB8888")] + PixelformatRgb888 = PixelformatXrgb8888, + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGBX8888")] + [NativeName(NativeNameType.Value, "371595268")] + PixelformatRgbx8888 = unchecked(371595268), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_XBGR8888")] + [NativeName(NativeNameType.Value, "374740996")] + PixelformatXbgr8888 = unchecked(374740996), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGR888")] + [NativeName(NativeNameType.Value, "SDL_PIXELFORMAT_XBGR8888")] + PixelformatBgr888 = PixelformatXbgr8888, + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGRX8888")] + [NativeName(NativeNameType.Value, "375789572")] + PixelformatBgrx8888 = unchecked(375789572), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ARGB8888")] + [NativeName(NativeNameType.Value, "372645892")] + PixelformatArgb8888 = unchecked(372645892), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGBA8888")] + [NativeName(NativeNameType.Value, "373694468")] + PixelformatRgba8888 = unchecked(373694468), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ABGR8888")] + [NativeName(NativeNameType.Value, "376840196")] + PixelformatAbgr8888 = unchecked(376840196), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGRA8888")] + [NativeName(NativeNameType.Value, "377888772")] + PixelformatBgra8888 = unchecked(377888772), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ARGB2101010")] + [NativeName(NativeNameType.Value, "372711428")] + PixelformatArgb2101010 = unchecked(372711428), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_RGBA32")] + [NativeName(NativeNameType.Value, "SDL_PIXELFORMAT_ABGR8888")] + PixelformatRgba32 = PixelformatAbgr8888, + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ARGB32")] + [NativeName(NativeNameType.Value, "SDL_PIXELFORMAT_BGRA8888")] + PixelformatArgb32 = PixelformatBgra8888, + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_BGRA32")] + [NativeName(NativeNameType.Value, "SDL_PIXELFORMAT_ARGB8888")] + PixelformatBgra32 = PixelformatArgb8888, + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_ABGR32")] + [NativeName(NativeNameType.Value, "SDL_PIXELFORMAT_RGBA8888")] + PixelformatAbgr32 = PixelformatRgba8888, + + /// /// Planar mode: Y + V + U (3 planes)
///
[NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_YV12")] + [NativeName(NativeNameType.Value, "842094169")] + PixelformatYv12 = unchecked(842094169), + + /// /// Planar mode: Y + U + V (3 planes)
///
[NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_IYUV")] + [NativeName(NativeNameType.Value, "1448433993")] + PixelformatIyuv = unchecked(1448433993), + + /// /// Packed mode: Y0+U0+Y1+V0 (1 plane)
///
[NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_YUY2")] + [NativeName(NativeNameType.Value, "844715353")] + PixelformatYuy2 = unchecked(844715353), + + /// /// Packed mode: U0+Y0+V0+Y1 (1 plane)
///
[NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_UYVY")] + [NativeName(NativeNameType.Value, "1498831189")] + PixelformatUyvy = unchecked(1498831189), + + /// /// Packed mode: Y0+V0+Y1+U0 (1 plane)
///
[NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_YVYU")] + [NativeName(NativeNameType.Value, "1431918169")] + PixelformatYvyu = unchecked(1431918169), + + /// /// Planar mode: Y + U/V interleaved (2 planes)
///
[NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_NV12")] + [NativeName(NativeNameType.Value, "842094158")] + PixelformatNv12 = unchecked(842094158), + + /// /// Planar mode: Y + V/U interleaved (2 planes)
///
[NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_NV21")] + [NativeName(NativeNameType.Value, "825382478")] + PixelformatNv21 = unchecked(825382478), + + /// /// Android video texture format
///
[NativeName(NativeNameType.EnumItem, "SDL_PIXELFORMAT_EXTERNAL_OES")] + [NativeName(NativeNameType.Value, "542328143")] + PixelformatExternalOes = unchecked(542328143), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_BlendMode")] + public enum SDLBlendMode + { + /// /// no blending
/// dstRGBA = srcRGBA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_NONE")] + [NativeName(NativeNameType.Value, "0")] + BlendmodeNone = unchecked(0), + + /// /// alpha blending
/// dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA))
/// dstA = srcA + (dstA * (1-srcA))
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_BLEND")] + [NativeName(NativeNameType.Value, "1")] + BlendmodeBlend = unchecked(1), + + /// /// additive blending
/// dstRGB = (srcRGB * srcA) + dstRGB
/// dstA = dstA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_ADD")] + [NativeName(NativeNameType.Value, "2")] + BlendmodeAdd = unchecked(2), + + /// /// color modulate
/// dstRGB = srcRGB * dstRGB
/// dstA = dstA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_MOD")] + [NativeName(NativeNameType.Value, "4")] + BlendmodeMod = unchecked(4), + + /// /// color multiply
/// dstRGB = (srcRGB * dstRGB) + (dstRGB * (1-srcA))
/// dstA = dstA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_MUL")] + [NativeName(NativeNameType.Value, "8")] + BlendmodeMul = unchecked(8), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_BLENDMODE_INVALID")] + [NativeName(NativeNameType.Value, "2147483647")] + BlendmodeInvalid = unchecked(2147483647), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_BlendOperation")] + public enum SDLBlendOperation + { + /// /// dst + src: supported by all renderers
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDOPERATION_ADD")] + [NativeName(NativeNameType.Value, "1")] + BlendoperationAdd = unchecked(1), + + /// /// dst - src : supported by D3D9, D3D11, OpenGL, OpenGLES
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDOPERATION_SUBTRACT")] + [NativeName(NativeNameType.Value, "2")] + BlendoperationSubtract = unchecked(2), + + /// /// src - dst : supported by D3D9, D3D11, OpenGL, OpenGLES
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDOPERATION_REV_SUBTRACT")] + [NativeName(NativeNameType.Value, "3")] + BlendoperationRevSubtract = unchecked(3), + + /// /// min(dst, src) : supported by D3D9, D3D11
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDOPERATION_MINIMUM")] + [NativeName(NativeNameType.Value, "4")] + BlendoperationMinimum = unchecked(4), + + /// /// max(dst, src) : supported by D3D9, D3D11
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDOPERATION_MAXIMUM")] + [NativeName(NativeNameType.Value, "5")] + BlendoperationMaximum = unchecked(5), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_BlendFactor")] + public enum SDLBlendFactor + { + /// /// 0, 0, 0, 0
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ZERO")] + [NativeName(NativeNameType.Value, "1")] + BlendfactorZero = unchecked(1), + + /// /// 1, 1, 1, 1
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ONE")] + [NativeName(NativeNameType.Value, "2")] + BlendfactorOne = unchecked(2), + + /// /// srcR, srcG, srcB, srcA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_SRC_COLOR")] + [NativeName(NativeNameType.Value, "3")] + BlendfactorSrcColor = unchecked(3), + + /// /// 1-srcR, 1-srcG, 1-srcB, 1-srcA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR")] + [NativeName(NativeNameType.Value, "4")] + BlendfactorOneMinusSrcColor = unchecked(4), + + /// /// srcA, srcA, srcA, srcA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_SRC_ALPHA")] + [NativeName(NativeNameType.Value, "5")] + BlendfactorSrcAlpha = unchecked(5), + + /// /// 1-srcA, 1-srcA, 1-srcA, 1-srcA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA")] + [NativeName(NativeNameType.Value, "6")] + BlendfactorOneMinusSrcAlpha = unchecked(6), + + /// /// dstR, dstG, dstB, dstA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_DST_COLOR")] + [NativeName(NativeNameType.Value, "7")] + BlendfactorDstColor = unchecked(7), + + /// /// 1-dstR, 1-dstG, 1-dstB, 1-dstA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR")] + [NativeName(NativeNameType.Value, "8")] + BlendfactorOneMinusDstColor = unchecked(8), + + /// /// dstA, dstA, dstA, dstA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_DST_ALPHA")] + [NativeName(NativeNameType.Value, "9")] + BlendfactorDstAlpha = unchecked(9), + + /// /// 1-dstA, 1-dstA, 1-dstA, 1-dstA
///
[NativeName(NativeNameType.EnumItem, "SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA")] + [NativeName(NativeNameType.Value, "10")] + BlendfactorOneMinusDstAlpha = unchecked(10), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_YUV_CONVERSION_MODE")] + public enum SdlYuvConversionMode + { + /// /// Full range JPEG
///
[NativeName(NativeNameType.EnumItem, "SDL_YUV_CONVERSION_JPEG")] + [NativeName(NativeNameType.Value, "0")] + Jpeg = unchecked(0), + + /// /// BT.601 (the default)
///
[NativeName(NativeNameType.EnumItem, "SDL_YUV_CONVERSION_BT601")] + [NativeName(NativeNameType.Value, "1")] + Bt601 = unchecked(1), + + /// /// BT.709
///
[NativeName(NativeNameType.EnumItem, "SDL_YUV_CONVERSION_BT709")] + [NativeName(NativeNameType.Value, "2")] + Bt709 = unchecked(2), + + /// /// BT.601 for SD content, BT.709 for HD content
///
[NativeName(NativeNameType.EnumItem, "SDL_YUV_CONVERSION_AUTOMATIC")] + [NativeName(NativeNameType.Value, "3")] + Automatic = unchecked(3), + + } + + /// ///
/// /// To be documented. /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_WindowFlags")] + public enum SDLWindowFlags + { + /// /// fullscreen window
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_FULLSCREEN")] + [NativeName(NativeNameType.Value, "1")] + Fullscreen = unchecked(1), + + /// /// window usable with OpenGL context
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_OPENGL")] + [NativeName(NativeNameType.Value, "2")] + Opengl = unchecked(2), + + /// /// window is visible
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_SHOWN")] + [NativeName(NativeNameType.Value, "4")] + Shown = unchecked(4), + + /// /// window is not visible
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_HIDDEN")] + [NativeName(NativeNameType.Value, "8")] + Hidden = unchecked(8), + + /// /// no window decoration
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_BORDERLESS")] + [NativeName(NativeNameType.Value, "16")] + Borderless = unchecked(16), + + /// /// window can be resized
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_RESIZABLE")] + [NativeName(NativeNameType.Value, "32")] + Resizable = unchecked(32), + + /// /// window is minimized
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_MINIMIZED")] + [NativeName(NativeNameType.Value, "64")] + Minimized = unchecked(64), + + /// /// window is maximized
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_MAXIMIZED")] + [NativeName(NativeNameType.Value, "128")] + Maximized = unchecked(128), + + /// /// window has grabbed mouse input
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_MOUSE_GRABBED")] + [NativeName(NativeNameType.Value, "256")] + MouseGrabbed = unchecked(256), + + /// /// window has input focus
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_INPUT_FOCUS")] + [NativeName(NativeNameType.Value, "512")] + InputFocus = unchecked(512), + + /// /// window has mouse focus
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_MOUSE_FOCUS")] + [NativeName(NativeNameType.Value, "1024")] + MouseFocus = unchecked(1024), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_WINDOW_FULLSCREEN_DESKTOP")] + [NativeName(NativeNameType.Value, "4097")] + FullscreenDesktop = unchecked(4097), + + /// /// window not created by SDL
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_FOREIGN")] + [NativeName(NativeNameType.Value, "2048")] + Foreign = unchecked(2048), + + /// /// window should be created in high-DPI mode if supported.
/// On macOS NSHighResolutionCapable must be set true in the
/// application's Info.plist for this to have any effect.
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_ALLOW_HIGHDPI")] + [NativeName(NativeNameType.Value, "8192")] + AllowHighdpi = unchecked(8192), + + /// /// window has mouse captured (unrelated to MOUSE_GRABBED)
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_MOUSE_CAPTURE")] + [NativeName(NativeNameType.Value, "16384")] + MouseCapture = unchecked(16384), + + /// /// window should always be above others
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_ALWAYS_ON_TOP")] + [NativeName(NativeNameType.Value, "32768")] + AlwaysOnTop = unchecked(32768), + + /// /// window should not be added to the taskbar
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_SKIP_TASKBAR")] + [NativeName(NativeNameType.Value, "65536")] + SkipTaskbar = unchecked(65536), + + /// /// window should be treated as a utility window
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_UTILITY")] + [NativeName(NativeNameType.Value, "131072")] + Utility = unchecked(131072), + + /// /// window should be treated as a tooltip
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_TOOLTIP")] + [NativeName(NativeNameType.Value, "262144")] + Tooltip = unchecked(262144), + + /// /// window should be treated as a popup menu
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_POPUP_MENU")] + [NativeName(NativeNameType.Value, "524288")] + PopupMenu = unchecked(524288), + + /// /// window has grabbed keyboard input
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_KEYBOARD_GRABBED")] + [NativeName(NativeNameType.Value, "1048576")] + KeyboardGrabbed = unchecked(1048576), + + /// /// window usable for Vulkan surface
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_VULKAN")] + [NativeName(NativeNameType.Value, "268435456")] + Vulkan = unchecked(268435456), + + /// /// window usable for Metal view
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_METAL")] + [NativeName(NativeNameType.Value, "536870912")] + Metal = unchecked(536870912), + + /// /// equivalent to SDL_WINDOW_MOUSE_GRABBED for compatibility
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOW_INPUT_GRABBED")] + [NativeName(NativeNameType.Value, "SDL_WINDOW_MOUSE_GRABBED")] + InputGrabbed = MouseGrabbed, + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_WindowEventID")] + public enum SDLWindowEventID + { + /// /// Never used
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_NONE")] + [NativeName(NativeNameType.Value, "0")] + WindoweventNone = unchecked(0), + + /// /// Window has been shown
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_SHOWN")] + [NativeName(NativeNameType.Value, "1")] + WindoweventShown = unchecked(1), + + /// /// Window has been hidden
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_HIDDEN")] + [NativeName(NativeNameType.Value, "2")] + WindoweventHidden = unchecked(2), + + /// /// Window has been exposed and should be
/// redrawn
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_EXPOSED")] + [NativeName(NativeNameType.Value, "3")] + WindoweventExposed = unchecked(3), + + /// /// Window has been moved to data1, data2
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_MOVED")] + [NativeName(NativeNameType.Value, "4")] + WindoweventMoved = unchecked(4), + + /// /// Window has been resized to data1xdata2
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_RESIZED")] + [NativeName(NativeNameType.Value, "5")] + WindoweventResized = unchecked(5), + + /// /// The window size has changed, either as
/// a result of an API call or through the
/// system or user changing the window size.
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_SIZE_CHANGED")] + [NativeName(NativeNameType.Value, "6")] + WindoweventSizeChanged = unchecked(6), + + /// /// Window has been minimized
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_MINIMIZED")] + [NativeName(NativeNameType.Value, "7")] + WindoweventMinimized = unchecked(7), + + /// /// Window has been maximized
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_MAXIMIZED")] + [NativeName(NativeNameType.Value, "8")] + WindoweventMaximized = unchecked(8), + + /// /// Window has been restored to normal size
/// and position
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_RESTORED")] + [NativeName(NativeNameType.Value, "9")] + WindoweventRestored = unchecked(9), + + /// /// Window has gained mouse focus
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_ENTER")] + [NativeName(NativeNameType.Value, "10")] + WindoweventEnter = unchecked(10), + + /// /// Window has lost mouse focus
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_LEAVE")] + [NativeName(NativeNameType.Value, "11")] + WindoweventLeave = unchecked(11), + + /// /// Window has gained keyboard focus
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_FOCUS_GAINED")] + [NativeName(NativeNameType.Value, "12")] + WindoweventFocusGained = unchecked(12), + + /// /// Window has lost keyboard focus
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_FOCUS_LOST")] + [NativeName(NativeNameType.Value, "13")] + WindoweventFocusLost = unchecked(13), + + /// /// The window manager requests that the window be closed
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_CLOSE")] + [NativeName(NativeNameType.Value, "14")] + WindoweventClose = unchecked(14), + + /// /// Window is being offered a focus (should SetWindowInputFocus() on itself or a subwindow, or ignore)
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_TAKE_FOCUS")] + [NativeName(NativeNameType.Value, "15")] + WindoweventTakeFocus = unchecked(15), + + /// /// Window had a hit test that wasn't SDL_HITTEST_NORMAL.
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_HIT_TEST")] + [NativeName(NativeNameType.Value, "16")] + WindoweventHitTest = unchecked(16), + + /// /// The ICC profile of the window's display has changed.
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_ICCPROF_CHANGED")] + [NativeName(NativeNameType.Value, "17")] + WindoweventIccprofChanged = unchecked(17), + + /// /// Window has been moved to display data1.
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT_DISPLAY_CHANGED")] + [NativeName(NativeNameType.Value, "18")] + WindoweventDisplayChanged = unchecked(18), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_DisplayEventID")] + public enum SDLDisplayEventID + { + /// /// Never used
///
[NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT_NONE")] + [NativeName(NativeNameType.Value, "0")] + DisplayeventNone = unchecked(0), + + /// /// Display orientation has changed to data1
///
[NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT_ORIENTATION")] + [NativeName(NativeNameType.Value, "1")] + DisplayeventOrientation = unchecked(1), + + /// /// Display has been added to the system
///
[NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT_CONNECTED")] + [NativeName(NativeNameType.Value, "2")] + DisplayeventConnected = unchecked(2), + + /// /// Display has been removed from the system
///
[NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT_DISCONNECTED")] + [NativeName(NativeNameType.Value, "3")] + DisplayeventDisconnected = unchecked(3), + + /// /// Display has changed position
///
[NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT_MOVED")] + [NativeName(NativeNameType.Value, "4")] + DisplayeventMoved = unchecked(4), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_DisplayOrientation")] + public enum SDLDisplayOrientation + { + /// /// The display orientation can't be determined
///
[NativeName(NativeNameType.EnumItem, "SDL_ORIENTATION_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + + /// /// The display is in landscape mode, with the right side up, relative to portrait mode
///
[NativeName(NativeNameType.EnumItem, "SDL_ORIENTATION_LANDSCAPE")] + [NativeName(NativeNameType.Value, "1")] + Landscape = unchecked(1), + + /// /// The display is in landscape mode, with the left side up, relative to portrait mode
///
[NativeName(NativeNameType.EnumItem, "SDL_ORIENTATION_LANDSCAPE_FLIPPED")] + [NativeName(NativeNameType.Value, "2")] + LandscapeFlipped = unchecked(2), + + /// /// The display is in portrait mode
///
[NativeName(NativeNameType.EnumItem, "SDL_ORIENTATION_PORTRAIT")] + [NativeName(NativeNameType.Value, "3")] + Portrait = unchecked(3), + + /// /// The display is in portrait mode, upside down
///
[NativeName(NativeNameType.EnumItem, "SDL_ORIENTATION_PORTRAIT_FLIPPED")] + [NativeName(NativeNameType.Value, "4")] + PortraitFlipped = unchecked(4), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_FlashOperation")] + public enum SDLFlashOperation + { + /// /// Cancel any window flash state
///
[NativeName(NativeNameType.EnumItem, "SDL_FLASH_CANCEL")] + [NativeName(NativeNameType.Value, "0")] + Cancel = unchecked(0), + + /// /// Flash the window briefly to get attention
///
[NativeName(NativeNameType.EnumItem, "SDL_FLASH_BRIEFLY")] + [NativeName(NativeNameType.Value, "1")] + Briefly = unchecked(1), + + /// /// Flash the window until it gets focus
///
[NativeName(NativeNameType.EnumItem, "SDL_FLASH_UNTIL_FOCUSED")] + [NativeName(NativeNameType.Value, "2")] + UntilFocused = unchecked(2), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_GLattr")] + public enum SDLGLattr + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_RED_SIZE")] + [NativeName(NativeNameType.Value, "0")] + SdlGlRedSize = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_GREEN_SIZE")] + [NativeName(NativeNameType.Value, "1")] + SdlGlGreenSize = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_BLUE_SIZE")] + [NativeName(NativeNameType.Value, "2")] + SdlGlBlueSize = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_ALPHA_SIZE")] + [NativeName(NativeNameType.Value, "3")] + SdlGlAlphaSize = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_BUFFER_SIZE")] + [NativeName(NativeNameType.Value, "4")] + SdlGlBufferSize = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_DOUBLEBUFFER")] + [NativeName(NativeNameType.Value, "5")] + SdlGlDoublebuffer = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_DEPTH_SIZE")] + [NativeName(NativeNameType.Value, "6")] + SdlGlDepthSize = unchecked(6), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_STENCIL_SIZE")] + [NativeName(NativeNameType.Value, "7")] + SdlGlStencilSize = unchecked(7), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_ACCUM_RED_SIZE")] + [NativeName(NativeNameType.Value, "8")] + SdlGlAccumRedSize = unchecked(8), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_ACCUM_GREEN_SIZE")] + [NativeName(NativeNameType.Value, "9")] + SdlGlAccumGreenSize = unchecked(9), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_ACCUM_BLUE_SIZE")] + [NativeName(NativeNameType.Value, "10")] + SdlGlAccumBlueSize = unchecked(10), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_ACCUM_ALPHA_SIZE")] + [NativeName(NativeNameType.Value, "11")] + SdlGlAccumAlphaSize = unchecked(11), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_STEREO")] + [NativeName(NativeNameType.Value, "12")] + SdlGlStereo = unchecked(12), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_MULTISAMPLEBUFFERS")] + [NativeName(NativeNameType.Value, "13")] + SdlGlMultisamplebuffers = unchecked(13), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_MULTISAMPLESAMPLES")] + [NativeName(NativeNameType.Value, "14")] + SdlGlMultisamplesamples = unchecked(14), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_ACCELERATED_VISUAL")] + [NativeName(NativeNameType.Value, "15")] + SdlGlAcceleratedVisual = unchecked(15), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_RETAINED_BACKING")] + [NativeName(NativeNameType.Value, "16")] + SdlGlRetainedBacking = unchecked(16), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_MAJOR_VERSION")] + [NativeName(NativeNameType.Value, "17")] + SdlGlContextMajorVersion = unchecked(17), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_MINOR_VERSION")] + [NativeName(NativeNameType.Value, "18")] + SdlGlContextMinorVersion = unchecked(18), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_EGL")] + [NativeName(NativeNameType.Value, "19")] + SdlGlContextEgl = unchecked(19), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_FLAGS")] + [NativeName(NativeNameType.Value, "20")] + SdlGlContextFlags = unchecked(20), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_PROFILE_MASK")] + [NativeName(NativeNameType.Value, "21")] + SdlGlContextProfileMask = unchecked(21), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_SHARE_WITH_CURRENT_CONTEXT")] + [NativeName(NativeNameType.Value, "22")] + SdlGlShareWithCurrentContext = unchecked(22), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_FRAMEBUFFER_SRGB_CAPABLE")] + [NativeName(NativeNameType.Value, "23")] + SdlGlFramebufferSrgbCapable = unchecked(23), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RELEASE_BEHAVIOR")] + [NativeName(NativeNameType.Value, "24")] + SdlGlContextReleaseBehavior = unchecked(24), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RESET_NOTIFICATION")] + [NativeName(NativeNameType.Value, "25")] + SdlGlContextResetNotification = unchecked(25), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_NO_ERROR")] + [NativeName(NativeNameType.Value, "26")] + SdlGlContextNoError = unchecked(26), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_FLOATBUFFERS")] + [NativeName(NativeNameType.Value, "27")] + SdlGlFloatbuffers = unchecked(27), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_GLprofile")] + public enum SDLGLprofile + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_PROFILE_CORE")] + [NativeName(NativeNameType.Value, "1")] + SdlGlContextProfileCore = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_PROFILE_COMPATIBILITY")] + [NativeName(NativeNameType.Value, "2")] + SdlGlContextProfileCompatibility = unchecked(2), + + /// /// GLX_CONTEXT_ES2_PROFILE_BIT_EXT
///
[NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_PROFILE_ES")] + [NativeName(NativeNameType.Value, "4")] + SdlGlContextProfileEs = unchecked(4), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_GLcontextFlag")] + public enum SDLGLcontextFlag + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_DEBUG_FLAG")] + [NativeName(NativeNameType.Value, "1")] + SdlGlContextDebugFlag = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG")] + [NativeName(NativeNameType.Value, "2")] + SdlGlContextForwardCompatibleFlag = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG")] + [NativeName(NativeNameType.Value, "4")] + SdlGlContextRobustAccessFlag = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RESET_ISOLATION_FLAG")] + [NativeName(NativeNameType.Value, "8")] + SdlGlContextResetIsolationFlag = unchecked(8), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_GLcontextReleaseFlag")] + public enum SDLGLcontextReleaseFlag + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE")] + [NativeName(NativeNameType.Value, "0")] + SdlGlContextReleaseBehaviorNone = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH")] + [NativeName(NativeNameType.Value, "1")] + SdlGlContextReleaseBehaviorFlush = unchecked(1), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_GLContextResetNotification")] + public enum SDLGLContextResetNotification + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RESET_NO_NOTIFICATION")] + [NativeName(NativeNameType.Value, "0")] + NoNotification = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GL_CONTEXT_RESET_LOSE_CONTEXT")] + [NativeName(NativeNameType.Value, "1")] + LoseContext = unchecked(1), + + } + + /// /// Possible return values from the SDL_HitTest callback.
///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_HitTestResult")] + public enum SDLHitTestResult + { + /// /// Region is normal. No special properties.
///
[NativeName(NativeNameType.EnumItem, "SDL_HITTEST_NORMAL")] + [NativeName(NativeNameType.Value, "0")] + HittestNormal = unchecked(0), + + /// /// Region can drag entire window.
///
[NativeName(NativeNameType.EnumItem, "SDL_HITTEST_DRAGGABLE")] + [NativeName(NativeNameType.Value, "1")] + HittestDraggable = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_TOPLEFT")] + [NativeName(NativeNameType.Value, "2")] + HittestResizeTopleft = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_TOP")] + [NativeName(NativeNameType.Value, "3")] + HittestResizeTop = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_TOPRIGHT")] + [NativeName(NativeNameType.Value, "4")] + HittestResizeTopright = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_RIGHT")] + [NativeName(NativeNameType.Value, "5")] + HittestResizeRight = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_BOTTOMRIGHT")] + [NativeName(NativeNameType.Value, "6")] + HittestResizeBottomright = unchecked(6), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_BOTTOM")] + [NativeName(NativeNameType.Value, "7")] + HittestResizeBottom = unchecked(7), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_BOTTOMLEFT")] + [NativeName(NativeNameType.Value, "8")] + HittestResizeBottomleft = unchecked(8), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_HITTEST_RESIZE_LEFT")] + [NativeName(NativeNameType.Value, "9")] + HittestResizeLeft = unchecked(9), + + } + + /// ///
/// /// To be documented. /// /// Values of this type are used to represent keyboard keys, among other places
/// in the
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_Scancode")] + public enum SDLScancode + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_A")] + [NativeName(NativeNameType.Value, "4")] + Scancodea = unchecked(4), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_B")] + [NativeName(NativeNameType.Value, "5")] + Scancodeb = unchecked(5), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_C")] + [NativeName(NativeNameType.Value, "6")] + Scancodec = unchecked(6), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_D")] + [NativeName(NativeNameType.Value, "7")] + Scancoded = unchecked(7), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_E")] + [NativeName(NativeNameType.Value, "8")] + Scancodee = unchecked(8), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F")] + [NativeName(NativeNameType.Value, "9")] + Scancodef = unchecked(9), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_G")] + [NativeName(NativeNameType.Value, "10")] + Scancodeg = unchecked(10), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_H")] + [NativeName(NativeNameType.Value, "11")] + Scancodeh = unchecked(11), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_I")] + [NativeName(NativeNameType.Value, "12")] + Scancodei = unchecked(12), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_J")] + [NativeName(NativeNameType.Value, "13")] + Scancodej = unchecked(13), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_K")] + [NativeName(NativeNameType.Value, "14")] + Scancodek = unchecked(14), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_L")] + [NativeName(NativeNameType.Value, "15")] + Scancodel = unchecked(15), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_M")] + [NativeName(NativeNameType.Value, "16")] + Scancodem = unchecked(16), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_N")] + [NativeName(NativeNameType.Value, "17")] + Scancoden = unchecked(17), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_O")] + [NativeName(NativeNameType.Value, "18")] + Scancodeo = unchecked(18), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_P")] + [NativeName(NativeNameType.Value, "19")] + Scancodep = unchecked(19), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_Q")] + [NativeName(NativeNameType.Value, "20")] + Scancodeq = unchecked(20), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_R")] + [NativeName(NativeNameType.Value, "21")] + Scancoder = unchecked(21), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_S")] + [NativeName(NativeNameType.Value, "22")] + Scancodes = unchecked(22), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_T")] + [NativeName(NativeNameType.Value, "23")] + Scancodet = unchecked(23), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_U")] + [NativeName(NativeNameType.Value, "24")] + Scancodeu = unchecked(24), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_V")] + [NativeName(NativeNameType.Value, "25")] + Scancodev = unchecked(25), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_W")] + [NativeName(NativeNameType.Value, "26")] + Scancodew = unchecked(26), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_X")] + [NativeName(NativeNameType.Value, "27")] + Scancodex = unchecked(27), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_Y")] + [NativeName(NativeNameType.Value, "28")] + Scancodey = unchecked(28), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_Z")] + [NativeName(NativeNameType.Value, "29")] + Scancodez = unchecked(29), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_1")] + [NativeName(NativeNameType.Value, "30")] + Scancode1 = unchecked(30), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_2")] + [NativeName(NativeNameType.Value, "31")] + Scancode2 = unchecked(31), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_3")] + [NativeName(NativeNameType.Value, "32")] + Scancode3 = unchecked(32), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_4")] + [NativeName(NativeNameType.Value, "33")] + Scancode4 = unchecked(33), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_5")] + [NativeName(NativeNameType.Value, "34")] + Scancode5 = unchecked(34), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_6")] + [NativeName(NativeNameType.Value, "35")] + Scancode6 = unchecked(35), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_7")] + [NativeName(NativeNameType.Value, "36")] + Scancode7 = unchecked(36), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_8")] + [NativeName(NativeNameType.Value, "37")] + Scancode8 = unchecked(37), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_9")] + [NativeName(NativeNameType.Value, "38")] + Scancode9 = unchecked(38), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_0")] + [NativeName(NativeNameType.Value, "39")] + Scancode0 = unchecked(39), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RETURN")] + [NativeName(NativeNameType.Value, "40")] + Return = unchecked(40), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_ESCAPE")] + [NativeName(NativeNameType.Value, "41")] + Escape = unchecked(41), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_BACKSPACE")] + [NativeName(NativeNameType.Value, "42")] + Backspace = unchecked(42), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_TAB")] + [NativeName(NativeNameType.Value, "43")] + Tab = unchecked(43), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SPACE")] + [NativeName(NativeNameType.Value, "44")] + Space = unchecked(44), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MINUS")] + [NativeName(NativeNameType.Value, "45")] + Minus = unchecked(45), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_EQUALS")] + [NativeName(NativeNameType.Value, "46")] + Equals = unchecked(46), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LEFTBRACKET")] + [NativeName(NativeNameType.Value, "47")] + Leftbracket = unchecked(47), + + /// ///
/// /// To be documented. /// /// These values are from usage page 0x07 (USB keyboard page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RIGHTBRACKET")] + [NativeName(NativeNameType.Value, "48")] + Rightbracket = unchecked(48), + + /// /// Located at the lower left of the return
/// key on ISO keyboards and at the right end
/// of the QWERTY row on ANSI keyboards.
/// Produces REVERSE SOLIDUS (backslash) and
/// VERTICAL LINE in a US layout, REVERSE
/// SOLIDUS and VERTICAL LINE in a UK Mac
/// layout, NUMBER SIGN and TILDE in a UK
/// Windows layout, DOLLAR SIGN and POUND SIGN
/// in a Swiss German layout, NUMBER SIGN and
/// APOSTROPHE in a German layout, GRAVE
/// ACCENT and POUND SIGN in a French Mac
/// layout, and ASTERISK and MICRO SIGN in a
/// French Windows layout.
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_BACKSLASH")] + [NativeName(NativeNameType.Value, "49")] + Backslash = unchecked(49), + + /// /// ISO USB keyboards actually use this code
/// instead of 49 for the same key, but all
/// OSes I've seen treat the two codes
/// identically. So, as an implementor, unless
/// your keyboard generates both of those
/// codes and your OS treats them differently,
/// you should generate SDL_SCANCODE_BACKSLASH
/// instead of this code. As a user, you
/// should not rely on this code because SDL
/// will never generate it with most (all?)
/// keyboards.
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_NONUSHASH")] + [NativeName(NativeNameType.Value, "50")] + Nonushash = unchecked(50), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SEMICOLON")] + [NativeName(NativeNameType.Value, "51")] + Semicolon = unchecked(51), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_APOSTROPHE")] + [NativeName(NativeNameType.Value, "52")] + Apostrophe = unchecked(52), + + /// /// Located in the top left corner (on both ANSI
/// and ISO keyboards). Produces GRAVE ACCENT and
/// TILDE in a US Windows layout and in US and UK
/// Mac layouts on ANSI keyboards, GRAVE ACCENT
/// and NOT SIGN in a UK Windows layout, SECTION
/// SIGN and PLUS-MINUS SIGN in US and UK Mac
/// layouts on ISO keyboards, SECTION SIGN and
/// DEGREE SIGN in a Swiss German layout (Mac:
/// only on ISO keyboards), CIRCUMFLEX ACCENT and
/// DEGREE SIGN in a German layout (Mac: only on
/// ISO keyboards), SUPERSCRIPT TWO and TILDE in a
/// French Windows layout, COMMERCIAL AT and
/// NUMBER SIGN in a French Mac layout on ISO
/// keyboards, and LESS-THAN SIGN and GREATER-THAN
/// SIGN in a Swiss German, German, or French Mac
/// layout on ANSI keyboards.
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_GRAVE")] + [NativeName(NativeNameType.Value, "53")] + Grave = unchecked(53), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_COMMA")] + [NativeName(NativeNameType.Value, "54")] + Comma = unchecked(54), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PERIOD")] + [NativeName(NativeNameType.Value, "55")] + Period = unchecked(55), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SLASH")] + [NativeName(NativeNameType.Value, "56")] + Slash = unchecked(56), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CAPSLOCK")] + [NativeName(NativeNameType.Value, "57")] + Capslock = unchecked(57), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F1")] + [NativeName(NativeNameType.Value, "58")] + Scancodef1 = unchecked(58), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F2")] + [NativeName(NativeNameType.Value, "59")] + Scancodef2 = unchecked(59), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F3")] + [NativeName(NativeNameType.Value, "60")] + Scancodef3 = unchecked(60), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F4")] + [NativeName(NativeNameType.Value, "61")] + Scancodef4 = unchecked(61), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F5")] + [NativeName(NativeNameType.Value, "62")] + Scancodef5 = unchecked(62), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F6")] + [NativeName(NativeNameType.Value, "63")] + Scancodef6 = unchecked(63), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F7")] + [NativeName(NativeNameType.Value, "64")] + Scancodef7 = unchecked(64), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F8")] + [NativeName(NativeNameType.Value, "65")] + Scancodef8 = unchecked(65), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F9")] + [NativeName(NativeNameType.Value, "66")] + Scancodef9 = unchecked(66), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F10")] + [NativeName(NativeNameType.Value, "67")] + Scancodef10 = unchecked(67), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F11")] + [NativeName(NativeNameType.Value, "68")] + Scancodef11 = unchecked(68), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F12")] + [NativeName(NativeNameType.Value, "69")] + Scancodef12 = unchecked(69), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PRINTSCREEN")] + [NativeName(NativeNameType.Value, "70")] + Printscreen = unchecked(70), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SCROLLLOCK")] + [NativeName(NativeNameType.Value, "71")] + Scrolllock = unchecked(71), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PAUSE")] + [NativeName(NativeNameType.Value, "72")] + Pause = unchecked(72), + + /// /// insert on PC, help on some Mac keyboards (but
/// does send code 73, not 117)
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INSERT")] + [NativeName(NativeNameType.Value, "73")] + Insert = unchecked(73), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_HOME")] + [NativeName(NativeNameType.Value, "74")] + Home = unchecked(74), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PAGEUP")] + [NativeName(NativeNameType.Value, "75")] + Pageup = unchecked(75), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_DELETE")] + [NativeName(NativeNameType.Value, "76")] + Delete = unchecked(76), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_END")] + [NativeName(NativeNameType.Value, "77")] + End = unchecked(77), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PAGEDOWN")] + [NativeName(NativeNameType.Value, "78")] + Pagedown = unchecked(78), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RIGHT")] + [NativeName(NativeNameType.Value, "79")] + Right = unchecked(79), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LEFT")] + [NativeName(NativeNameType.Value, "80")] + Left = unchecked(80), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_DOWN")] + [NativeName(NativeNameType.Value, "81")] + Down = unchecked(81), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_UP")] + [NativeName(NativeNameType.Value, "82")] + Up = unchecked(82), + + /// /// num lock on PC, clear on Mac keyboards
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_NUMLOCKCLEAR")] + [NativeName(NativeNameType.Value, "83")] + Numlockclear = unchecked(83), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_DIVIDE")] + [NativeName(NativeNameType.Value, "84")] + KpDivide = unchecked(84), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MULTIPLY")] + [NativeName(NativeNameType.Value, "85")] + KpMultiply = unchecked(85), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MINUS")] + [NativeName(NativeNameType.Value, "86")] + KpMinus = unchecked(86), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_PLUS")] + [NativeName(NativeNameType.Value, "87")] + KpPlus = unchecked(87), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_ENTER")] + [NativeName(NativeNameType.Value, "88")] + KpEnter = unchecked(88), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_1")] + [NativeName(NativeNameType.Value, "89")] + Kp1 = unchecked(89), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_2")] + [NativeName(NativeNameType.Value, "90")] + Kp2 = unchecked(90), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_3")] + [NativeName(NativeNameType.Value, "91")] + Kp3 = unchecked(91), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_4")] + [NativeName(NativeNameType.Value, "92")] + Kp4 = unchecked(92), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_5")] + [NativeName(NativeNameType.Value, "93")] + Kp5 = unchecked(93), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_6")] + [NativeName(NativeNameType.Value, "94")] + Kp6 = unchecked(94), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_7")] + [NativeName(NativeNameType.Value, "95")] + Kp7 = unchecked(95), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_8")] + [NativeName(NativeNameType.Value, "96")] + Kp8 = unchecked(96), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_9")] + [NativeName(NativeNameType.Value, "97")] + Kp9 = unchecked(97), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_0")] + [NativeName(NativeNameType.Value, "98")] + Kp0 = unchecked(98), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_PERIOD")] + [NativeName(NativeNameType.Value, "99")] + KpPeriod = unchecked(99), + + /// /// This is the additional key that ISO
/// keyboards have over ANSI ones,
/// located between left shift and Y.
/// Produces GRAVE ACCENT and TILDE in a
/// US or UK Mac layout, REVERSE SOLIDUS
/// (backslash) and VERTICAL LINE in a
/// US or UK Windows layout, and
/// LESS-THAN SIGN and GREATER-THAN SIGN
/// in a Swiss German, German, or French
/// layout.
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_NONUSBACKSLASH")] + [NativeName(NativeNameType.Value, "100")] + Nonusbackslash = unchecked(100), + + /// /// windows contextual menu, compose
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_APPLICATION")] + [NativeName(NativeNameType.Value, "101")] + Application = unchecked(101), + + /// /// The USB document says this is a status flag,
/// not a physical key - but some Mac keyboards
/// do have a power key.
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_POWER")] + [NativeName(NativeNameType.Value, "102")] + Power = unchecked(102), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_EQUALS")] + [NativeName(NativeNameType.Value, "103")] + KpEquals = unchecked(103), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F13")] + [NativeName(NativeNameType.Value, "104")] + Scancodef13 = unchecked(104), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F14")] + [NativeName(NativeNameType.Value, "105")] + Scancodef14 = unchecked(105), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F15")] + [NativeName(NativeNameType.Value, "106")] + Scancodef15 = unchecked(106), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F16")] + [NativeName(NativeNameType.Value, "107")] + Scancodef16 = unchecked(107), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F17")] + [NativeName(NativeNameType.Value, "108")] + Scancodef17 = unchecked(108), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F18")] + [NativeName(NativeNameType.Value, "109")] + Scancodef18 = unchecked(109), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F19")] + [NativeName(NativeNameType.Value, "110")] + Scancodef19 = unchecked(110), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F20")] + [NativeName(NativeNameType.Value, "111")] + Scancodef20 = unchecked(111), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F21")] + [NativeName(NativeNameType.Value, "112")] + Scancodef21 = unchecked(112), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F22")] + [NativeName(NativeNameType.Value, "113")] + Scancodef22 = unchecked(113), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F23")] + [NativeName(NativeNameType.Value, "114")] + Scancodef23 = unchecked(114), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_F24")] + [NativeName(NativeNameType.Value, "115")] + Scancodef24 = unchecked(115), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_EXECUTE")] + [NativeName(NativeNameType.Value, "116")] + Execute = unchecked(116), + + /// /// AL Integrated Help Center
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_HELP")] + [NativeName(NativeNameType.Value, "117")] + Help = unchecked(117), + + /// /// Menu (show menu)
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MENU")] + [NativeName(NativeNameType.Value, "118")] + Menu = unchecked(118), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SELECT")] + [NativeName(NativeNameType.Value, "119")] + Select = unchecked(119), + + /// /// AC Stop
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_STOP")] + [NativeName(NativeNameType.Value, "120")] + Stop = unchecked(120), + + /// /// AC Redo/Repeat
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AGAIN")] + [NativeName(NativeNameType.Value, "121")] + Again = unchecked(121), + + /// /// AC Undo
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_UNDO")] + [NativeName(NativeNameType.Value, "122")] + Undo = unchecked(122), + + /// /// AC Cut
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CUT")] + [NativeName(NativeNameType.Value, "123")] + Cut = unchecked(123), + + /// /// AC Copy
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_COPY")] + [NativeName(NativeNameType.Value, "124")] + Copy = unchecked(124), + + /// /// AC Paste
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PASTE")] + [NativeName(NativeNameType.Value, "125")] + Paste = unchecked(125), + + /// /// AC Find
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_FIND")] + [NativeName(NativeNameType.Value, "126")] + Find = unchecked(126), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MUTE")] + [NativeName(NativeNameType.Value, "127")] + Mute = unchecked(127), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_VOLUMEUP")] + [NativeName(NativeNameType.Value, "128")] + Volumeup = unchecked(128), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_VOLUMEDOWN")] + [NativeName(NativeNameType.Value, "129")] + Volumedown = unchecked(129), + + /// /// not sure whether there's a reason to enable these
/// SDL_SCANCODE_LOCKINGCAPSLOCK = 130,
/// SDL_SCANCODE_LOCKINGNUMLOCK = 131,
/// SDL_SCANCODE_LOCKINGSCROLLLOCK = 132,
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_COMMA")] + [NativeName(NativeNameType.Value, "133")] + KpComma = unchecked(133), + + /// /// not sure whether there's a reason to enable these
/// SDL_SCANCODE_LOCKINGCAPSLOCK = 130,
/// SDL_SCANCODE_LOCKINGNUMLOCK = 131,
/// SDL_SCANCODE_LOCKINGSCROLLLOCK = 132,
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_EQUALSAS400")] + [NativeName(NativeNameType.Value, "134")] + KpEqualsas400 = unchecked(134), + + /// /// used on Asian keyboards, see
/// footnotes in USB doc
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL1")] + [NativeName(NativeNameType.Value, "135")] + International1 = unchecked(135), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL2")] + [NativeName(NativeNameType.Value, "136")] + International2 = unchecked(136), + + /// /// Yen
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL3")] + [NativeName(NativeNameType.Value, "137")] + International3 = unchecked(137), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL4")] + [NativeName(NativeNameType.Value, "138")] + International4 = unchecked(138), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL5")] + [NativeName(NativeNameType.Value, "139")] + International5 = unchecked(139), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL6")] + [NativeName(NativeNameType.Value, "140")] + International6 = unchecked(140), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL7")] + [NativeName(NativeNameType.Value, "141")] + International7 = unchecked(141), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL8")] + [NativeName(NativeNameType.Value, "142")] + International8 = unchecked(142), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_INTERNATIONAL9")] + [NativeName(NativeNameType.Value, "143")] + International9 = unchecked(143), + + /// /// Hangul/English toggle
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG1")] + [NativeName(NativeNameType.Value, "144")] + Lang1 = unchecked(144), + + /// /// Hanja conversion
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG2")] + [NativeName(NativeNameType.Value, "145")] + Lang2 = unchecked(145), + + /// /// Katakana
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG3")] + [NativeName(NativeNameType.Value, "146")] + Lang3 = unchecked(146), + + /// /// Hiragana
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG4")] + [NativeName(NativeNameType.Value, "147")] + Lang4 = unchecked(147), + + /// /// Zenkaku/Hankaku
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG5")] + [NativeName(NativeNameType.Value, "148")] + Lang5 = unchecked(148), + + /// /// reserved
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG6")] + [NativeName(NativeNameType.Value, "149")] + Lang6 = unchecked(149), + + /// /// reserved
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG7")] + [NativeName(NativeNameType.Value, "150")] + Lang7 = unchecked(150), + + /// /// reserved
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG8")] + [NativeName(NativeNameType.Value, "151")] + Lang8 = unchecked(151), + + /// /// reserved
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LANG9")] + [NativeName(NativeNameType.Value, "152")] + Lang9 = unchecked(152), + + /// /// Erase-Eaze
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_ALTERASE")] + [NativeName(NativeNameType.Value, "153")] + Alterase = unchecked(153), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SYSREQ")] + [NativeName(NativeNameType.Value, "154")] + Sysreq = unchecked(154), + + /// /// AC Cancel
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CANCEL")] + [NativeName(NativeNameType.Value, "155")] + Cancel = unchecked(155), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CLEAR")] + [NativeName(NativeNameType.Value, "156")] + Clear = unchecked(156), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_PRIOR")] + [NativeName(NativeNameType.Value, "157")] + Prior = unchecked(157), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RETURN2")] + [NativeName(NativeNameType.Value, "158")] + Return2 = unchecked(158), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SEPARATOR")] + [NativeName(NativeNameType.Value, "159")] + Separator = unchecked(159), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_OUT")] + [NativeName(NativeNameType.Value, "160")] + Out = unchecked(160), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_OPER")] + [NativeName(NativeNameType.Value, "161")] + Oper = unchecked(161), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CLEARAGAIN")] + [NativeName(NativeNameType.Value, "162")] + Clearagain = unchecked(162), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CRSEL")] + [NativeName(NativeNameType.Value, "163")] + Crsel = unchecked(163), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_EXSEL")] + [NativeName(NativeNameType.Value, "164")] + Exsel = unchecked(164), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_00")] + [NativeName(NativeNameType.Value, "176")] + Kp00 = unchecked(176), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_000")] + [NativeName(NativeNameType.Value, "177")] + Kp000 = unchecked(177), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_THOUSANDSSEPARATOR")] + [NativeName(NativeNameType.Value, "178")] + Thousandsseparator = unchecked(178), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_DECIMALSEPARATOR")] + [NativeName(NativeNameType.Value, "179")] + Decimalseparator = unchecked(179), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CURRENCYUNIT")] + [NativeName(NativeNameType.Value, "180")] + Currencyunit = unchecked(180), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CURRENCYSUBUNIT")] + [NativeName(NativeNameType.Value, "181")] + Currencysubunit = unchecked(181), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_LEFTPAREN")] + [NativeName(NativeNameType.Value, "182")] + KpLeftparen = unchecked(182), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_RIGHTPAREN")] + [NativeName(NativeNameType.Value, "183")] + KpRightparen = unchecked(183), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_LEFTBRACE")] + [NativeName(NativeNameType.Value, "184")] + KpLeftbrace = unchecked(184), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_RIGHTBRACE")] + [NativeName(NativeNameType.Value, "185")] + KpRightbrace = unchecked(185), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_TAB")] + [NativeName(NativeNameType.Value, "186")] + KpTab = unchecked(186), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_BACKSPACE")] + [NativeName(NativeNameType.Value, "187")] + KpBackspace = unchecked(187), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_A")] + [NativeName(NativeNameType.Value, "188")] + Kpa = unchecked(188), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_B")] + [NativeName(NativeNameType.Value, "189")] + Kpb = unchecked(189), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_C")] + [NativeName(NativeNameType.Value, "190")] + Kpc = unchecked(190), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_D")] + [NativeName(NativeNameType.Value, "191")] + Kpd = unchecked(191), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_E")] + [NativeName(NativeNameType.Value, "192")] + Kpe = unchecked(192), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_F")] + [NativeName(NativeNameType.Value, "193")] + Kpf = unchecked(193), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_XOR")] + [NativeName(NativeNameType.Value, "194")] + KpXor = unchecked(194), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_POWER")] + [NativeName(NativeNameType.Value, "195")] + KpPower = unchecked(195), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_PERCENT")] + [NativeName(NativeNameType.Value, "196")] + KpPercent = unchecked(196), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_LESS")] + [NativeName(NativeNameType.Value, "197")] + KpLess = unchecked(197), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_GREATER")] + [NativeName(NativeNameType.Value, "198")] + KpGreater = unchecked(198), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_AMPERSAND")] + [NativeName(NativeNameType.Value, "199")] + KpAmpersand = unchecked(199), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_DBLAMPERSAND")] + [NativeName(NativeNameType.Value, "200")] + KpDblampersand = unchecked(200), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_VERTICALBAR")] + [NativeName(NativeNameType.Value, "201")] + KpVerticalbar = unchecked(201), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_DBLVERTICALBAR")] + [NativeName(NativeNameType.Value, "202")] + KpDblverticalbar = unchecked(202), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_COLON")] + [NativeName(NativeNameType.Value, "203")] + KpColon = unchecked(203), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_HASH")] + [NativeName(NativeNameType.Value, "204")] + KpHash = unchecked(204), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_SPACE")] + [NativeName(NativeNameType.Value, "205")] + KpSpace = unchecked(205), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_AT")] + [NativeName(NativeNameType.Value, "206")] + KpAt = unchecked(206), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_EXCLAM")] + [NativeName(NativeNameType.Value, "207")] + KpExclam = unchecked(207), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMSTORE")] + [NativeName(NativeNameType.Value, "208")] + KpMemstore = unchecked(208), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMRECALL")] + [NativeName(NativeNameType.Value, "209")] + KpMemrecall = unchecked(209), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMCLEAR")] + [NativeName(NativeNameType.Value, "210")] + KpMemclear = unchecked(210), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMADD")] + [NativeName(NativeNameType.Value, "211")] + KpMemadd = unchecked(211), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMSUBTRACT")] + [NativeName(NativeNameType.Value, "212")] + KpMemsubtract = unchecked(212), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMMULTIPLY")] + [NativeName(NativeNameType.Value, "213")] + KpMemmultiply = unchecked(213), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_MEMDIVIDE")] + [NativeName(NativeNameType.Value, "214")] + KpMemdivide = unchecked(214), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_PLUSMINUS")] + [NativeName(NativeNameType.Value, "215")] + KpPlusminus = unchecked(215), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_CLEAR")] + [NativeName(NativeNameType.Value, "216")] + KpClear = unchecked(216), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_CLEARENTRY")] + [NativeName(NativeNameType.Value, "217")] + KpClearentry = unchecked(217), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_BINARY")] + [NativeName(NativeNameType.Value, "218")] + KpBinary = unchecked(218), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_OCTAL")] + [NativeName(NativeNameType.Value, "219")] + KpOctal = unchecked(219), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_DECIMAL")] + [NativeName(NativeNameType.Value, "220")] + KpDecimal = unchecked(220), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KP_HEXADECIMAL")] + [NativeName(NativeNameType.Value, "221")] + KpHexadecimal = unchecked(221), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LCTRL")] + [NativeName(NativeNameType.Value, "224")] + Lctrl = unchecked(224), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LSHIFT")] + [NativeName(NativeNameType.Value, "225")] + Lshift = unchecked(225), + + /// /// alt, option
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LALT")] + [NativeName(NativeNameType.Value, "226")] + Lalt = unchecked(226), + + /// /// windows, command (apple), meta
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_LGUI")] + [NativeName(NativeNameType.Value, "227")] + Lgui = unchecked(227), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RCTRL")] + [NativeName(NativeNameType.Value, "228")] + Rctrl = unchecked(228), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RSHIFT")] + [NativeName(NativeNameType.Value, "229")] + Rshift = unchecked(229), + + /// /// alt gr, option
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RALT")] + [NativeName(NativeNameType.Value, "230")] + Ralt = unchecked(230), + + /// /// windows, command (apple), meta
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_RGUI")] + [NativeName(NativeNameType.Value, "231")] + Rgui = unchecked(231), + + /// /// I'm not sure if this is really not covered
/// by any of the above, but since there's a
/// special KMOD_MODE for it I'm adding it here
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MODE")] + [NativeName(NativeNameType.Value, "257")] + Mode = unchecked(257), + + /// ///
/// /// To be documented. /// /// These values are mapped from usage page 0x0C (USB consumer page).
/// See https://usb.org/sites/default/files/hut1_2.pdf
/// There are way more keys in the spec than we can represent in the
/// current scancode range, so pick the ones that commonly come up in
/// real world usage.
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIONEXT")] + [NativeName(NativeNameType.Value, "258")] + Audionext = unchecked(258), + + /// ///
/// /// To be documented. /// /// These values are mapped from usage page 0x0C (USB consumer page).
/// See https://usb.org/sites/default/files/hut1_2.pdf
/// There are way more keys in the spec than we can represent in the
/// current scancode range, so pick the ones that commonly come up in
/// real world usage.
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOPREV")] + [NativeName(NativeNameType.Value, "259")] + Audioprev = unchecked(259), + + /// ///
/// /// To be documented. /// /// These values are mapped from usage page 0x0C (USB consumer page).
/// See https://usb.org/sites/default/files/hut1_2.pdf
/// There are way more keys in the spec than we can represent in the
/// current scancode range, so pick the ones that commonly come up in
/// real world usage.
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOSTOP")] + [NativeName(NativeNameType.Value, "260")] + Audiostop = unchecked(260), + + /// ///
/// /// To be documented. /// /// These values are mapped from usage page 0x0C (USB consumer page).
/// See https://usb.org/sites/default/files/hut1_2.pdf
/// There are way more keys in the spec than we can represent in the
/// current scancode range, so pick the ones that commonly come up in
/// real world usage.
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOPLAY")] + [NativeName(NativeNameType.Value, "261")] + Audioplay = unchecked(261), + + /// ///
/// /// To be documented. /// /// These values are mapped from usage page 0x0C (USB consumer page).
/// See https://usb.org/sites/default/files/hut1_2.pdf
/// There are way more keys in the spec than we can represent in the
/// current scancode range, so pick the ones that commonly come up in
/// real world usage.
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOMUTE")] + [NativeName(NativeNameType.Value, "262")] + Audiomute = unchecked(262), + + /// ///
/// /// To be documented. /// /// These values are mapped from usage page 0x0C (USB consumer page).
/// See https://usb.org/sites/default/files/hut1_2.pdf
/// There are way more keys in the spec than we can represent in the
/// current scancode range, so pick the ones that commonly come up in
/// real world usage.
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MEDIASELECT")] + [NativeName(NativeNameType.Value, "263")] + Mediaselect = unchecked(263), + + /// /// AL Internet Browser
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_WWW")] + [NativeName(NativeNameType.Value, "264")] + Www = unchecked(264), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_MAIL")] + [NativeName(NativeNameType.Value, "265")] + Mail = unchecked(265), + + /// /// AL Calculator
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CALCULATOR")] + [NativeName(NativeNameType.Value, "266")] + Calculator = unchecked(266), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_COMPUTER")] + [NativeName(NativeNameType.Value, "267")] + Computer = unchecked(267), + + /// /// AC Search
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_SEARCH")] + [NativeName(NativeNameType.Value, "268")] + AcSearch = unchecked(268), + + /// /// AC Home
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_HOME")] + [NativeName(NativeNameType.Value, "269")] + AcHome = unchecked(269), + + /// /// AC Back
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_BACK")] + [NativeName(NativeNameType.Value, "270")] + AcBack = unchecked(270), + + /// /// AC Forward
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_FORWARD")] + [NativeName(NativeNameType.Value, "271")] + AcForward = unchecked(271), + + /// /// AC Stop
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_STOP")] + [NativeName(NativeNameType.Value, "272")] + AcStop = unchecked(272), + + /// /// AC Refresh
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_REFRESH")] + [NativeName(NativeNameType.Value, "273")] + AcRefresh = unchecked(273), + + /// /// AC Bookmarks
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AC_BOOKMARKS")] + [NativeName(NativeNameType.Value, "274")] + AcBookmarks = unchecked(274), + + /// ///
/// /// To be documented. /// /// These are values that Christian Walther added (for mac keyboard?).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_BRIGHTNESSDOWN")] + [NativeName(NativeNameType.Value, "275")] + Brightnessdown = unchecked(275), + + /// ///
/// /// To be documented. /// /// These are values that Christian Walther added (for mac keyboard?).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_BRIGHTNESSUP")] + [NativeName(NativeNameType.Value, "276")] + Brightnessup = unchecked(276), + + /// /// display mirroring/dual display
/// switch, video mode switch
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_DISPLAYSWITCH")] + [NativeName(NativeNameType.Value, "277")] + Displayswitch = unchecked(277), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KBDILLUMTOGGLE")] + [NativeName(NativeNameType.Value, "278")] + Kbdillumtoggle = unchecked(278), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KBDILLUMDOWN")] + [NativeName(NativeNameType.Value, "279")] + Kbdillumdown = unchecked(279), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_KBDILLUMUP")] + [NativeName(NativeNameType.Value, "280")] + Kbdillumup = unchecked(280), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_EJECT")] + [NativeName(NativeNameType.Value, "281")] + Eject = unchecked(281), + + /// /// SC System Sleep
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SLEEP")] + [NativeName(NativeNameType.Value, "282")] + Sleep = unchecked(282), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_APP1")] + [NativeName(NativeNameType.Value, "283")] + App1 = unchecked(283), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_APP2")] + [NativeName(NativeNameType.Value, "284")] + App2 = unchecked(284), + + /// ///
/// /// To be documented. /// /// These values are mapped from usage page 0x0C (USB consumer page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOREWIND")] + [NativeName(NativeNameType.Value, "285")] + Audiorewind = unchecked(285), + + /// ///
/// /// To be documented. /// /// These values are mapped from usage page 0x0C (USB consumer page).
///
/// @
/// {
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_AUDIOFASTFORWARD")] + [NativeName(NativeNameType.Value, "286")] + Audiofastforward = unchecked(286), + + /// /// Usually situated below the display on phones and
/// used as a multi-function feature key for selecting
/// a software defined function shown on the bottom left
/// of the display.
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SOFTLEFT")] + [NativeName(NativeNameType.Value, "287")] + Softleft = unchecked(287), + + /// /// Usually situated below the display on phones and
/// used as a multi-function feature key for selecting
/// a software defined function shown on the bottom right
/// of the display.
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_SOFTRIGHT")] + [NativeName(NativeNameType.Value, "288")] + Softright = unchecked(288), + + /// /// Used for accepting phone calls.
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_CALL")] + [NativeName(NativeNameType.Value, "289")] + Call = unchecked(289), + + /// /// Used for rejecting phone calls.
///
[NativeName(NativeNameType.EnumItem, "SDL_SCANCODE_ENDCALL")] + [NativeName(NativeNameType.Value, "290")] + Endcall = unchecked(290), + + /// /// not a key, just marks the number of scancodes
/// for array bounds
///
[NativeName(NativeNameType.EnumItem, "SDL_NUM_SCANCODES")] + [NativeName(NativeNameType.Value, "512")] + NumScancodes = unchecked(512), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_KeyCode")] + public enum SDLKeyCode + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + SdlkUnknown = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_RETURN")] + [NativeName(NativeNameType.Value, "'\\r'")] + SdlkReturn = unchecked((int)'\r'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_ESCAPE")] + [NativeName(NativeNameType.Value, "'\\x1B'")] + SdlkEscape = unchecked((int)'\x1B'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_BACKSPACE")] + [NativeName(NativeNameType.Value, "'\\b'")] + SdlkBackspace = unchecked((int)'\b'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_TAB")] + [NativeName(NativeNameType.Value, "'\\t'")] + SdlkTab = unchecked((int)'\t'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_SPACE")] + [NativeName(NativeNameType.Value, "' '")] + SdlkSpace = unchecked((int)' '), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_EXCLAIM")] + [NativeName(NativeNameType.Value, "'!'")] + SdlkExclaim = unchecked((int)'!'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_QUOTEDBL")] + [NativeName(NativeNameType.Value, "'\"'")] + SdlkQuotedbl = unchecked((int)'"'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_HASH")] + [NativeName(NativeNameType.Value, "'#'")] + SdlkHash = unchecked((int)'#'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_PERCENT")] + [NativeName(NativeNameType.Value, "'%'")] + SdlkPercent = unchecked((int)'%'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_DOLLAR")] + [NativeName(NativeNameType.Value, "'$'")] + SdlkDollar = unchecked((int)'$'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_AMPERSAND")] + [NativeName(NativeNameType.Value, "'&'")] + SdlkAmpersand = unchecked((int)'&'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_QUOTE")] + [NativeName(NativeNameType.Value, "'\\''")] + SdlkQuote = unchecked((int)'\''), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_LEFTPAREN")] + [NativeName(NativeNameType.Value, "'('")] + SdlkLeftparen = unchecked((int)'('), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_RIGHTPAREN")] + [NativeName(NativeNameType.Value, "')'")] + SdlkRightparen = unchecked((int)')'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_ASTERISK")] + [NativeName(NativeNameType.Value, "'*'")] + SdlkAsterisk = unchecked((int)'*'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_PLUS")] + [NativeName(NativeNameType.Value, "'+'")] + SdlkPlus = unchecked((int)'+'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_COMMA")] + [NativeName(NativeNameType.Value, "','")] + SdlkComma = unchecked((int)','), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_MINUS")] + [NativeName(NativeNameType.Value, "'-'")] + SdlkMinus = unchecked((int)'-'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_PERIOD")] + [NativeName(NativeNameType.Value, "'.'")] + SdlkPeriod = unchecked((int)'.'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_SLASH")] + [NativeName(NativeNameType.Value, "'/'")] + SdlkSlash = unchecked((int)'/'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_0")] + [NativeName(NativeNameType.Value, "'0'")] + Sdlk0 = unchecked((int)'0'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_1")] + [NativeName(NativeNameType.Value, "'1'")] + Sdlk1 = unchecked((int)'1'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_2")] + [NativeName(NativeNameType.Value, "'2'")] + Sdlk2 = unchecked((int)'2'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_3")] + [NativeName(NativeNameType.Value, "'3'")] + Sdlk3 = unchecked((int)'3'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_4")] + [NativeName(NativeNameType.Value, "'4'")] + Sdlk4 = unchecked((int)'4'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_5")] + [NativeName(NativeNameType.Value, "'5'")] + Sdlk5 = unchecked((int)'5'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_6")] + [NativeName(NativeNameType.Value, "'6'")] + Sdlk6 = unchecked((int)'6'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_7")] + [NativeName(NativeNameType.Value, "'7'")] + Sdlk7 = unchecked((int)'7'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_8")] + [NativeName(NativeNameType.Value, "'8'")] + Sdlk8 = unchecked((int)'8'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_9")] + [NativeName(NativeNameType.Value, "'9'")] + Sdlk9 = unchecked((int)'9'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_COLON")] + [NativeName(NativeNameType.Value, "':'")] + SdlkColon = unchecked((int)':'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_SEMICOLON")] + [NativeName(NativeNameType.Value, "';'")] + SdlkSemicolon = unchecked((int)';'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_LESS")] + [NativeName(NativeNameType.Value, "'<'")] + SdlkLess = unchecked((int)'<'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_EQUALS")] + [NativeName(NativeNameType.Value, "'='")] + SdlkEquals = unchecked((int)'='), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_GREATER")] + [NativeName(NativeNameType.Value, "'>'")] + SdlkGreater = unchecked((int)'>'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_QUESTION")] + [NativeName(NativeNameType.Value, "'?'")] + SdlkQuestion = unchecked((int)'?'), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDLK_AT")] + [NativeName(NativeNameType.Value, "'@'")] + SdlkAt = unchecked((int)'@'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_LEFTBRACKET")] + [NativeName(NativeNameType.Value, "'['")] + SdlkLeftbracket = unchecked((int)'['), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_BACKSLASH")] + [NativeName(NativeNameType.Value, "'\\\\'")] + SdlkBackslash = unchecked((int)'\\'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_RIGHTBRACKET")] + [NativeName(NativeNameType.Value, "']'")] + SdlkRightbracket = unchecked((int)']'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_CARET")] + [NativeName(NativeNameType.Value, "'^'")] + SdlkCaret = unchecked((int)'^'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_UNDERSCORE")] + [NativeName(NativeNameType.Value, "'_'")] + SdlkUnderscore = unchecked((int)'_'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_BACKQUOTE")] + [NativeName(NativeNameType.Value, "'`'")] + SdlkBackquote = unchecked((int)'`'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_a")] + [NativeName(NativeNameType.Value, "'a'")] + Sdlka = unchecked((int)'a'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_b")] + [NativeName(NativeNameType.Value, "'b'")] + Sdlkb = unchecked((int)'b'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_c")] + [NativeName(NativeNameType.Value, "'c'")] + Sdlkc = unchecked((int)'c'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_d")] + [NativeName(NativeNameType.Value, "'d'")] + Sdlkd = unchecked((int)'d'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_e")] + [NativeName(NativeNameType.Value, "'e'")] + Sdlke = unchecked((int)'e'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_f")] + [NativeName(NativeNameType.Value, "'f'")] + Sdlkf = unchecked((int)'f'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_g")] + [NativeName(NativeNameType.Value, "'g'")] + Sdlkg = unchecked((int)'g'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_h")] + [NativeName(NativeNameType.Value, "'h'")] + Sdlkh = unchecked((int)'h'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_i")] + [NativeName(NativeNameType.Value, "'i'")] + Sdlki = unchecked((int)'i'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_j")] + [NativeName(NativeNameType.Value, "'j'")] + Sdlkj = unchecked((int)'j'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_k")] + [NativeName(NativeNameType.Value, "'k'")] + Sdlkk = unchecked((int)'k'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_l")] + [NativeName(NativeNameType.Value, "'l'")] + Sdlkl = unchecked((int)'l'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_m")] + [NativeName(NativeNameType.Value, "'m'")] + Sdlkm = unchecked((int)'m'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_n")] + [NativeName(NativeNameType.Value, "'n'")] + Sdlkn = unchecked((int)'n'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_o")] + [NativeName(NativeNameType.Value, "'o'")] + Sdlko = unchecked((int)'o'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_p")] + [NativeName(NativeNameType.Value, "'p'")] + Sdlkp = unchecked((int)'p'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_q")] + [NativeName(NativeNameType.Value, "'q'")] + Sdlkq = unchecked((int)'q'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_r")] + [NativeName(NativeNameType.Value, "'r'")] + Sdlkr = unchecked((int)'r'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_s")] + [NativeName(NativeNameType.Value, "'s'")] + Sdlks = unchecked((int)'s'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_t")] + [NativeName(NativeNameType.Value, "'t'")] + Sdlkt = unchecked((int)'t'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_u")] + [NativeName(NativeNameType.Value, "'u'")] + Sdlku = unchecked((int)'u'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_v")] + [NativeName(NativeNameType.Value, "'v'")] + Sdlkv = unchecked((int)'v'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_w")] + [NativeName(NativeNameType.Value, "'w'")] + Sdlkw = unchecked((int)'w'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_x")] + [NativeName(NativeNameType.Value, "'x'")] + Sdlkx = unchecked((int)'x'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_y")] + [NativeName(NativeNameType.Value, "'y'")] + Sdlky = unchecked((int)'y'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_z")] + [NativeName(NativeNameType.Value, "'z'")] + Sdlkz = unchecked((int)'z'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_CAPSLOCK")] + [NativeName(NativeNameType.Value, "1073741881")] + SdlkCapslock = unchecked(1073741881), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F1")] + [NativeName(NativeNameType.Value, "1073741882")] + Sdlkf1 = unchecked(1073741882), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F2")] + [NativeName(NativeNameType.Value, "1073741883")] + Sdlkf2 = unchecked(1073741883), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F3")] + [NativeName(NativeNameType.Value, "1073741884")] + Sdlkf3 = unchecked(1073741884), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F4")] + [NativeName(NativeNameType.Value, "1073741885")] + Sdlkf4 = unchecked(1073741885), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F5")] + [NativeName(NativeNameType.Value, "1073741886")] + Sdlkf5 = unchecked(1073741886), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F6")] + [NativeName(NativeNameType.Value, "1073741887")] + Sdlkf6 = unchecked(1073741887), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F7")] + [NativeName(NativeNameType.Value, "1073741888")] + Sdlkf7 = unchecked(1073741888), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F8")] + [NativeName(NativeNameType.Value, "1073741889")] + Sdlkf8 = unchecked(1073741889), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F9")] + [NativeName(NativeNameType.Value, "1073741890")] + Sdlkf9 = unchecked(1073741890), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F10")] + [NativeName(NativeNameType.Value, "1073741891")] + Sdlkf10 = unchecked(1073741891), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F11")] + [NativeName(NativeNameType.Value, "1073741892")] + Sdlkf11 = unchecked(1073741892), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F12")] + [NativeName(NativeNameType.Value, "1073741893")] + Sdlkf12 = unchecked(1073741893), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_PRINTSCREEN")] + [NativeName(NativeNameType.Value, "1073741894")] + SdlkPrintscreen = unchecked(1073741894), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_SCROLLLOCK")] + [NativeName(NativeNameType.Value, "1073741895")] + SdlkScrolllock = unchecked(1073741895), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_PAUSE")] + [NativeName(NativeNameType.Value, "1073741896")] + SdlkPause = unchecked(1073741896), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_INSERT")] + [NativeName(NativeNameType.Value, "1073741897")] + SdlkInsert = unchecked(1073741897), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_HOME")] + [NativeName(NativeNameType.Value, "1073741898")] + SdlkHome = unchecked(1073741898), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_PAGEUP")] + [NativeName(NativeNameType.Value, "1073741899")] + SdlkPageup = unchecked(1073741899), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_DELETE")] + [NativeName(NativeNameType.Value, "'\\x7F'")] + SdlkDelete = unchecked((int)'\x7F'), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_END")] + [NativeName(NativeNameType.Value, "1073741901")] + SdlkEnd = unchecked(1073741901), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_PAGEDOWN")] + [NativeName(NativeNameType.Value, "1073741902")] + SdlkPagedown = unchecked(1073741902), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_RIGHT")] + [NativeName(NativeNameType.Value, "1073741903")] + SdlkRight = unchecked(1073741903), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_LEFT")] + [NativeName(NativeNameType.Value, "1073741904")] + SdlkLeft = unchecked(1073741904), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_DOWN")] + [NativeName(NativeNameType.Value, "1073741905")] + SdlkDown = unchecked(1073741905), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_UP")] + [NativeName(NativeNameType.Value, "1073741906")] + SdlkUp = unchecked(1073741906), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_NUMLOCKCLEAR")] + [NativeName(NativeNameType.Value, "1073741907")] + SdlkNumlockclear = unchecked(1073741907), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_DIVIDE")] + [NativeName(NativeNameType.Value, "1073741908")] + SdlkKpDivide = unchecked(1073741908), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_MULTIPLY")] + [NativeName(NativeNameType.Value, "1073741909")] + SdlkKpMultiply = unchecked(1073741909), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_MINUS")] + [NativeName(NativeNameType.Value, "1073741910")] + SdlkKpMinus = unchecked(1073741910), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_PLUS")] + [NativeName(NativeNameType.Value, "1073741911")] + SdlkKpPlus = unchecked(1073741911), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_ENTER")] + [NativeName(NativeNameType.Value, "1073741912")] + SdlkKpEnter = unchecked(1073741912), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_1")] + [NativeName(NativeNameType.Value, "1073741913")] + SdlkKp1 = unchecked(1073741913), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_2")] + [NativeName(NativeNameType.Value, "1073741914")] + SdlkKp2 = unchecked(1073741914), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_3")] + [NativeName(NativeNameType.Value, "1073741915")] + SdlkKp3 = unchecked(1073741915), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_4")] + [NativeName(NativeNameType.Value, "1073741916")] + SdlkKp4 = unchecked(1073741916), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_5")] + [NativeName(NativeNameType.Value, "1073741917")] + SdlkKp5 = unchecked(1073741917), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_6")] + [NativeName(NativeNameType.Value, "1073741918")] + SdlkKp6 = unchecked(1073741918), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_7")] + [NativeName(NativeNameType.Value, "1073741919")] + SdlkKp7 = unchecked(1073741919), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_8")] + [NativeName(NativeNameType.Value, "1073741920")] + SdlkKp8 = unchecked(1073741920), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_9")] + [NativeName(NativeNameType.Value, "1073741921")] + SdlkKp9 = unchecked(1073741921), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_0")] + [NativeName(NativeNameType.Value, "1073741922")] + SdlkKp0 = unchecked(1073741922), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_PERIOD")] + [NativeName(NativeNameType.Value, "1073741923")] + SdlkKpPeriod = unchecked(1073741923), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_APPLICATION")] + [NativeName(NativeNameType.Value, "1073741925")] + SdlkApplication = unchecked(1073741925), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_POWER")] + [NativeName(NativeNameType.Value, "1073741926")] + SdlkPower = unchecked(1073741926), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_EQUALS")] + [NativeName(NativeNameType.Value, "1073741927")] + SdlkKpEquals = unchecked(1073741927), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F13")] + [NativeName(NativeNameType.Value, "1073741928")] + Sdlkf13 = unchecked(1073741928), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F14")] + [NativeName(NativeNameType.Value, "1073741929")] + Sdlkf14 = unchecked(1073741929), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F15")] + [NativeName(NativeNameType.Value, "1073741930")] + Sdlkf15 = unchecked(1073741930), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F16")] + [NativeName(NativeNameType.Value, "1073741931")] + Sdlkf16 = unchecked(1073741931), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F17")] + [NativeName(NativeNameType.Value, "1073741932")] + Sdlkf17 = unchecked(1073741932), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F18")] + [NativeName(NativeNameType.Value, "1073741933")] + Sdlkf18 = unchecked(1073741933), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F19")] + [NativeName(NativeNameType.Value, "1073741934")] + Sdlkf19 = unchecked(1073741934), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F20")] + [NativeName(NativeNameType.Value, "1073741935")] + Sdlkf20 = unchecked(1073741935), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F21")] + [NativeName(NativeNameType.Value, "1073741936")] + Sdlkf21 = unchecked(1073741936), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F22")] + [NativeName(NativeNameType.Value, "1073741937")] + Sdlkf22 = unchecked(1073741937), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F23")] + [NativeName(NativeNameType.Value, "1073741938")] + Sdlkf23 = unchecked(1073741938), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_F24")] + [NativeName(NativeNameType.Value, "1073741939")] + Sdlkf24 = unchecked(1073741939), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_EXECUTE")] + [NativeName(NativeNameType.Value, "1073741940")] + SdlkExecute = unchecked(1073741940), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_HELP")] + [NativeName(NativeNameType.Value, "1073741941")] + SdlkHelp = unchecked(1073741941), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_MENU")] + [NativeName(NativeNameType.Value, "1073741942")] + SdlkMenu = unchecked(1073741942), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_SELECT")] + [NativeName(NativeNameType.Value, "1073741943")] + SdlkSelect = unchecked(1073741943), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_STOP")] + [NativeName(NativeNameType.Value, "1073741944")] + SdlkStop = unchecked(1073741944), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AGAIN")] + [NativeName(NativeNameType.Value, "1073741945")] + SdlkAgain = unchecked(1073741945), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_UNDO")] + [NativeName(NativeNameType.Value, "1073741946")] + SdlkUndo = unchecked(1073741946), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_CUT")] + [NativeName(NativeNameType.Value, "1073741947")] + SdlkCut = unchecked(1073741947), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_COPY")] + [NativeName(NativeNameType.Value, "1073741948")] + SdlkCopy = unchecked(1073741948), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_PASTE")] + [NativeName(NativeNameType.Value, "1073741949")] + SdlkPaste = unchecked(1073741949), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_FIND")] + [NativeName(NativeNameType.Value, "1073741950")] + SdlkFind = unchecked(1073741950), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_MUTE")] + [NativeName(NativeNameType.Value, "1073741951")] + SdlkMute = unchecked(1073741951), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_VOLUMEUP")] + [NativeName(NativeNameType.Value, "1073741952")] + SdlkVolumeup = unchecked(1073741952), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_VOLUMEDOWN")] + [NativeName(NativeNameType.Value, "1073741953")] + SdlkVolumedown = unchecked(1073741953), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_COMMA")] + [NativeName(NativeNameType.Value, "1073741957")] + SdlkKpComma = unchecked(1073741957), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_EQUALSAS400")] + [NativeName(NativeNameType.Value, "1073741958")] + SdlkKpEqualsas400 = unchecked(1073741958), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_ALTERASE")] + [NativeName(NativeNameType.Value, "1073741977")] + SdlkAlterase = unchecked(1073741977), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_SYSREQ")] + [NativeName(NativeNameType.Value, "1073741978")] + SdlkSysreq = unchecked(1073741978), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_CANCEL")] + [NativeName(NativeNameType.Value, "1073741979")] + SdlkCancel = unchecked(1073741979), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_CLEAR")] + [NativeName(NativeNameType.Value, "1073741980")] + SdlkClear = unchecked(1073741980), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_PRIOR")] + [NativeName(NativeNameType.Value, "1073741981")] + SdlkPrior = unchecked(1073741981), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_RETURN2")] + [NativeName(NativeNameType.Value, "1073741982")] + SdlkReturn2 = unchecked(1073741982), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_SEPARATOR")] + [NativeName(NativeNameType.Value, "1073741983")] + SdlkSeparator = unchecked(1073741983), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_OUT")] + [NativeName(NativeNameType.Value, "1073741984")] + SdlkOut = unchecked(1073741984), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_OPER")] + [NativeName(NativeNameType.Value, "1073741985")] + SdlkOper = unchecked(1073741985), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_CLEARAGAIN")] + [NativeName(NativeNameType.Value, "1073741986")] + SdlkClearagain = unchecked(1073741986), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_CRSEL")] + [NativeName(NativeNameType.Value, "1073741987")] + SdlkCrsel = unchecked(1073741987), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_EXSEL")] + [NativeName(NativeNameType.Value, "1073741988")] + SdlkExsel = unchecked(1073741988), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_00")] + [NativeName(NativeNameType.Value, "1073742000")] + SdlkKp00 = unchecked(1073742000), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_000")] + [NativeName(NativeNameType.Value, "1073742001")] + SdlkKp000 = unchecked(1073742001), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_THOUSANDSSEPARATOR")] + [NativeName(NativeNameType.Value, "1073742002")] + SdlkThousandsseparator = unchecked(1073742002), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_DECIMALSEPARATOR")] + [NativeName(NativeNameType.Value, "1073742003")] + SdlkDecimalseparator = unchecked(1073742003), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_CURRENCYUNIT")] + [NativeName(NativeNameType.Value, "1073742004")] + SdlkCurrencyunit = unchecked(1073742004), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_CURRENCYSUBUNIT")] + [NativeName(NativeNameType.Value, "1073742005")] + SdlkCurrencysubunit = unchecked(1073742005), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_LEFTPAREN")] + [NativeName(NativeNameType.Value, "1073742006")] + SdlkKpLeftparen = unchecked(1073742006), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_RIGHTPAREN")] + [NativeName(NativeNameType.Value, "1073742007")] + SdlkKpRightparen = unchecked(1073742007), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_LEFTBRACE")] + [NativeName(NativeNameType.Value, "1073742008")] + SdlkKpLeftbrace = unchecked(1073742008), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_RIGHTBRACE")] + [NativeName(NativeNameType.Value, "1073742009")] + SdlkKpRightbrace = unchecked(1073742009), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_TAB")] + [NativeName(NativeNameType.Value, "1073742010")] + SdlkKpTab = unchecked(1073742010), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_BACKSPACE")] + [NativeName(NativeNameType.Value, "1073742011")] + SdlkKpBackspace = unchecked(1073742011), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_A")] + [NativeName(NativeNameType.Value, "1073742012")] + SdlkKpa = unchecked(1073742012), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_B")] + [NativeName(NativeNameType.Value, "1073742013")] + SdlkKpb = unchecked(1073742013), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_C")] + [NativeName(NativeNameType.Value, "1073742014")] + SdlkKpc = unchecked(1073742014), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_D")] + [NativeName(NativeNameType.Value, "1073742015")] + SdlkKpd = unchecked(1073742015), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_E")] + [NativeName(NativeNameType.Value, "1073742016")] + SdlkKpe = unchecked(1073742016), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_F")] + [NativeName(NativeNameType.Value, "1073742017")] + SdlkKpf = unchecked(1073742017), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_XOR")] + [NativeName(NativeNameType.Value, "1073742018")] + SdlkKpXor = unchecked(1073742018), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_POWER")] + [NativeName(NativeNameType.Value, "1073742019")] + SdlkKpPower = unchecked(1073742019), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_PERCENT")] + [NativeName(NativeNameType.Value, "1073742020")] + SdlkKpPercent = unchecked(1073742020), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_LESS")] + [NativeName(NativeNameType.Value, "1073742021")] + SdlkKpLess = unchecked(1073742021), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_GREATER")] + [NativeName(NativeNameType.Value, "1073742022")] + SdlkKpGreater = unchecked(1073742022), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_AMPERSAND")] + [NativeName(NativeNameType.Value, "1073742023")] + SdlkKpAmpersand = unchecked(1073742023), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_DBLAMPERSAND")] + [NativeName(NativeNameType.Value, "1073742024")] + SdlkKpDblampersand = unchecked(1073742024), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_VERTICALBAR")] + [NativeName(NativeNameType.Value, "1073742025")] + SdlkKpVerticalbar = unchecked(1073742025), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_DBLVERTICALBAR")] + [NativeName(NativeNameType.Value, "1073742026")] + SdlkKpDblverticalbar = unchecked(1073742026), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_COLON")] + [NativeName(NativeNameType.Value, "1073742027")] + SdlkKpColon = unchecked(1073742027), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_HASH")] + [NativeName(NativeNameType.Value, "1073742028")] + SdlkKpHash = unchecked(1073742028), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_SPACE")] + [NativeName(NativeNameType.Value, "1073742029")] + SdlkKpSpace = unchecked(1073742029), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_AT")] + [NativeName(NativeNameType.Value, "1073742030")] + SdlkKpAt = unchecked(1073742030), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_EXCLAM")] + [NativeName(NativeNameType.Value, "1073742031")] + SdlkKpExclam = unchecked(1073742031), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMSTORE")] + [NativeName(NativeNameType.Value, "1073742032")] + SdlkKpMemstore = unchecked(1073742032), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMRECALL")] + [NativeName(NativeNameType.Value, "1073742033")] + SdlkKpMemrecall = unchecked(1073742033), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMCLEAR")] + [NativeName(NativeNameType.Value, "1073742034")] + SdlkKpMemclear = unchecked(1073742034), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMADD")] + [NativeName(NativeNameType.Value, "1073742035")] + SdlkKpMemadd = unchecked(1073742035), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMSUBTRACT")] + [NativeName(NativeNameType.Value, "1073742036")] + SdlkKpMemsubtract = unchecked(1073742036), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMMULTIPLY")] + [NativeName(NativeNameType.Value, "1073742037")] + SdlkKpMemmultiply = unchecked(1073742037), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_MEMDIVIDE")] + [NativeName(NativeNameType.Value, "1073742038")] + SdlkKpMemdivide = unchecked(1073742038), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_PLUSMINUS")] + [NativeName(NativeNameType.Value, "1073742039")] + SdlkKpPlusminus = unchecked(1073742039), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_CLEAR")] + [NativeName(NativeNameType.Value, "1073742040")] + SdlkKpClear = unchecked(1073742040), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_CLEARENTRY")] + [NativeName(NativeNameType.Value, "1073742041")] + SdlkKpClearentry = unchecked(1073742041), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_BINARY")] + [NativeName(NativeNameType.Value, "1073742042")] + SdlkKpBinary = unchecked(1073742042), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_OCTAL")] + [NativeName(NativeNameType.Value, "1073742043")] + SdlkKpOctal = unchecked(1073742043), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_DECIMAL")] + [NativeName(NativeNameType.Value, "1073742044")] + SdlkKpDecimal = unchecked(1073742044), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KP_HEXADECIMAL")] + [NativeName(NativeNameType.Value, "1073742045")] + SdlkKpHexadecimal = unchecked(1073742045), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_LCTRL")] + [NativeName(NativeNameType.Value, "1073742048")] + SdlkLctrl = unchecked(1073742048), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_LSHIFT")] + [NativeName(NativeNameType.Value, "1073742049")] + SdlkLshift = unchecked(1073742049), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_LALT")] + [NativeName(NativeNameType.Value, "1073742050")] + SdlkLalt = unchecked(1073742050), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_LGUI")] + [NativeName(NativeNameType.Value, "1073742051")] + SdlkLgui = unchecked(1073742051), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_RCTRL")] + [NativeName(NativeNameType.Value, "1073742052")] + SdlkRctrl = unchecked(1073742052), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_RSHIFT")] + [NativeName(NativeNameType.Value, "1073742053")] + SdlkRshift = unchecked(1073742053), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_RALT")] + [NativeName(NativeNameType.Value, "1073742054")] + SdlkRalt = unchecked(1073742054), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_RGUI")] + [NativeName(NativeNameType.Value, "1073742055")] + SdlkRgui = unchecked(1073742055), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_MODE")] + [NativeName(NativeNameType.Value, "1073742081")] + SdlkMode = unchecked(1073742081), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AUDIONEXT")] + [NativeName(NativeNameType.Value, "1073742082")] + SdlkAudionext = unchecked(1073742082), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AUDIOPREV")] + [NativeName(NativeNameType.Value, "1073742083")] + SdlkAudioprev = unchecked(1073742083), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AUDIOSTOP")] + [NativeName(NativeNameType.Value, "1073742084")] + SdlkAudiostop = unchecked(1073742084), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AUDIOPLAY")] + [NativeName(NativeNameType.Value, "1073742085")] + SdlkAudioplay = unchecked(1073742085), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AUDIOMUTE")] + [NativeName(NativeNameType.Value, "1073742086")] + SdlkAudiomute = unchecked(1073742086), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_MEDIASELECT")] + [NativeName(NativeNameType.Value, "1073742087")] + SdlkMediaselect = unchecked(1073742087), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_WWW")] + [NativeName(NativeNameType.Value, "1073742088")] + SdlkWww = unchecked(1073742088), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_MAIL")] + [NativeName(NativeNameType.Value, "1073742089")] + SdlkMail = unchecked(1073742089), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_CALCULATOR")] + [NativeName(NativeNameType.Value, "1073742090")] + SdlkCalculator = unchecked(1073742090), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_COMPUTER")] + [NativeName(NativeNameType.Value, "1073742091")] + SdlkComputer = unchecked(1073742091), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AC_SEARCH")] + [NativeName(NativeNameType.Value, "1073742092")] + SdlkAcSearch = unchecked(1073742092), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AC_HOME")] + [NativeName(NativeNameType.Value, "1073742093")] + SdlkAcHome = unchecked(1073742093), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AC_BACK")] + [NativeName(NativeNameType.Value, "1073742094")] + SdlkAcBack = unchecked(1073742094), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AC_FORWARD")] + [NativeName(NativeNameType.Value, "1073742095")] + SdlkAcForward = unchecked(1073742095), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AC_STOP")] + [NativeName(NativeNameType.Value, "1073742096")] + SdlkAcStop = unchecked(1073742096), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AC_REFRESH")] + [NativeName(NativeNameType.Value, "1073742097")] + SdlkAcRefresh = unchecked(1073742097), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AC_BOOKMARKS")] + [NativeName(NativeNameType.Value, "1073742098")] + SdlkAcBookmarks = unchecked(1073742098), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_BRIGHTNESSDOWN")] + [NativeName(NativeNameType.Value, "1073742099")] + SdlkBrightnessdown = unchecked(1073742099), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_BRIGHTNESSUP")] + [NativeName(NativeNameType.Value, "1073742100")] + SdlkBrightnessup = unchecked(1073742100), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_DISPLAYSWITCH")] + [NativeName(NativeNameType.Value, "1073742101")] + SdlkDisplayswitch = unchecked(1073742101), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KBDILLUMTOGGLE")] + [NativeName(NativeNameType.Value, "1073742102")] + SdlkKbdillumtoggle = unchecked(1073742102), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KBDILLUMDOWN")] + [NativeName(NativeNameType.Value, "1073742103")] + SdlkKbdillumdown = unchecked(1073742103), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_KBDILLUMUP")] + [NativeName(NativeNameType.Value, "1073742104")] + SdlkKbdillumup = unchecked(1073742104), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_EJECT")] + [NativeName(NativeNameType.Value, "1073742105")] + SdlkEject = unchecked(1073742105), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_SLEEP")] + [NativeName(NativeNameType.Value, "1073742106")] + SdlkSleep = unchecked(1073742106), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_APP1")] + [NativeName(NativeNameType.Value, "1073742107")] + SdlkApp1 = unchecked(1073742107), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_APP2")] + [NativeName(NativeNameType.Value, "1073742108")] + SdlkApp2 = unchecked(1073742108), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AUDIOREWIND")] + [NativeName(NativeNameType.Value, "1073742109")] + SdlkAudiorewind = unchecked(1073742109), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_AUDIOFASTFORWARD")] + [NativeName(NativeNameType.Value, "1073742110")] + SdlkAudiofastforward = unchecked(1073742110), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_SOFTLEFT")] + [NativeName(NativeNameType.Value, "1073742111")] + SdlkSoftleft = unchecked(1073742111), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_SOFTRIGHT")] + [NativeName(NativeNameType.Value, "1073742112")] + SdlkSoftright = unchecked(1073742112), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_CALL")] + [NativeName(NativeNameType.Value, "1073742113")] + SdlkCall = unchecked(1073742113), + + /// /// Skip uppercase letters
///
[NativeName(NativeNameType.EnumItem, "SDLK_ENDCALL")] + [NativeName(NativeNameType.Value, "1073742114")] + SdlkEndcall = unchecked(1073742114), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_Keymod")] + public enum SDLKeymod + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_NONE")] + [NativeName(NativeNameType.Value, "0")] + KmodNone = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_LSHIFT")] + [NativeName(NativeNameType.Value, "1")] + KmodLshift = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_RSHIFT")] + [NativeName(NativeNameType.Value, "2")] + KmodRshift = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_LCTRL")] + [NativeName(NativeNameType.Value, "64")] + KmodLctrl = unchecked(64), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_RCTRL")] + [NativeName(NativeNameType.Value, "128")] + KmodRctrl = unchecked(128), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_LALT")] + [NativeName(NativeNameType.Value, "256")] + KmodLalt = unchecked(256), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_RALT")] + [NativeName(NativeNameType.Value, "512")] + KmodRalt = unchecked(512), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_LGUI")] + [NativeName(NativeNameType.Value, "1024")] + KmodLgui = unchecked(1024), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_RGUI")] + [NativeName(NativeNameType.Value, "2048")] + KmodRgui = unchecked(2048), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_NUM")] + [NativeName(NativeNameType.Value, "4096")] + KmodNum = unchecked(4096), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_CAPS")] + [NativeName(NativeNameType.Value, "8192")] + KmodCaps = unchecked(8192), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_MODE")] + [NativeName(NativeNameType.Value, "16384")] + KmodMode = unchecked(16384), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_SCROLL")] + [NativeName(NativeNameType.Value, "32768")] + KmodScroll = unchecked(32768), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_CTRL")] + [NativeName(NativeNameType.Value, "192")] + KmodCtrl = unchecked(192), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_SHIFT")] + [NativeName(NativeNameType.Value, "3")] + KmodShift = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_ALT")] + [NativeName(NativeNameType.Value, "768")] + KmodAlt = unchecked(768), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "KMOD_GUI")] + [NativeName(NativeNameType.Value, "3072")] + KmodGui = unchecked(3072), + + /// /// This is for source-level compatibility with SDL 2.0.0.
///
[NativeName(NativeNameType.EnumItem, "KMOD_RESERVED")] + [NativeName(NativeNameType.Value, "KMOD_SCROLL")] + KmodReserved = KmodScroll, + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_SystemCursor")] + public enum SDLSystemCursor + { + /// /// Arrow
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_ARROW")] + [NativeName(NativeNameType.Value, "0")] + Arrow = unchecked(0), + + /// /// I-beam
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_IBEAM")] + [NativeName(NativeNameType.Value, "1")] + Ibeam = unchecked(1), + + /// /// Wait
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_WAIT")] + [NativeName(NativeNameType.Value, "2")] + Wait = unchecked(2), + + /// /// Crosshair
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_CROSSHAIR")] + [NativeName(NativeNameType.Value, "3")] + Crosshair = unchecked(3), + + /// /// Small wait cursor (or Wait if not available)
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_WAITARROW")] + [NativeName(NativeNameType.Value, "4")] + Waitarrow = unchecked(4), + + /// /// Double arrow pointing northwest and southeast
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_SIZENWSE")] + [NativeName(NativeNameType.Value, "5")] + Sizenwse = unchecked(5), + + /// /// Double arrow pointing northeast and southwest
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_SIZENESW")] + [NativeName(NativeNameType.Value, "6")] + Sizenesw = unchecked(6), + + /// /// Double arrow pointing west and east
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_SIZEWE")] + [NativeName(NativeNameType.Value, "7")] + Sizewe = unchecked(7), + + /// /// Double arrow pointing north and south
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_SIZENS")] + [NativeName(NativeNameType.Value, "8")] + Sizens = unchecked(8), + + /// /// Four pointed arrow pointing north, south, east, and west
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_SIZEALL")] + [NativeName(NativeNameType.Value, "9")] + Sizeall = unchecked(9), + + /// /// Slashed circle or crossbones
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_NO")] + [NativeName(NativeNameType.Value, "10")] + No = unchecked(10), + + /// /// Hand
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSTEM_CURSOR_HAND")] + [NativeName(NativeNameType.Value, "11")] + Hand = unchecked(11), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_NUM_SYSTEM_CURSORS")] + [NativeName(NativeNameType.Value, "12")] + NumSystemCursors = unchecked(12), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_MouseWheelDirection")] + public enum SDLMouseWheelDirection + { + /// /// The scroll direction is normal
///
[NativeName(NativeNameType.EnumItem, "SDL_MOUSEWHEEL_NORMAL")] + [NativeName(NativeNameType.Value, "0")] + MousewheelNormal = unchecked(0), + + /// /// The scroll direction is flipped / natural
///
[NativeName(NativeNameType.EnumItem, "SDL_MOUSEWHEEL_FLIPPED")] + [NativeName(NativeNameType.Value, "1")] + MousewheelFlipped = unchecked(1), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_JoystickType")] + public enum SDLJoystickType + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_GAMECONTROLLER")] + [NativeName(NativeNameType.Value, "1")] + Gamecontroller = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_WHEEL")] + [NativeName(NativeNameType.Value, "2")] + Wheel = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_ARCADE_STICK")] + [NativeName(NativeNameType.Value, "3")] + ArcadeStick = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_FLIGHT_STICK")] + [NativeName(NativeNameType.Value, "4")] + FlightStick = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_DANCE_PAD")] + [NativeName(NativeNameType.Value, "5")] + DancePad = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_GUITAR")] + [NativeName(NativeNameType.Value, "6")] + Guitar = unchecked(6), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_DRUM_KIT")] + [NativeName(NativeNameType.Value, "7")] + DrumKit = unchecked(7), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_ARCADE_PAD")] + [NativeName(NativeNameType.Value, "8")] + ArcadePad = unchecked(8), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_TYPE_THROTTLE")] + [NativeName(NativeNameType.Value, "9")] + Throttle = unchecked(9), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_JoystickPowerLevel")] + public enum SDLJoystickPowerLevel + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_UNKNOWN")] + [NativeName(NativeNameType.Value, "-1")] + Unknown = unchecked(-1), + + /// ///
/// <
/// = 5%
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_EMPTY")] + [NativeName(NativeNameType.Value, "0")] + Empty = unchecked(0), + + /// ///
/// <
/// = 20%
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_LOW")] + [NativeName(NativeNameType.Value, "1")] + Low = unchecked(1), + + /// ///
/// <
/// = 70%
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_MEDIUM")] + [NativeName(NativeNameType.Value, "2")] + Medium = unchecked(2), + + /// ///
/// <
/// = 100%
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_FULL")] + [NativeName(NativeNameType.Value, "3")] + Full = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_WIRED")] + [NativeName(NativeNameType.Value, "4")] + Wired = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_JOYSTICK_POWER_MAX")] + [NativeName(NativeNameType.Value, "5")] + Max = unchecked(5), + + } + + /// /// The different sensors defined by SDL
/// Additional sensors may be available, using platform dependent semantics.
/// Hare are the additional Android sensors:
/// https://developer.android.com/reference/android/hardware/SensorEvent.html#values
///
[NativeName(NativeNameType.Enum, "SDL_SensorType")] + public enum SDLSensorType + { + /// /// Returned for an invalid sensor
///
[NativeName(NativeNameType.EnumItem, "SDL_SENSOR_INVALID")] + [NativeName(NativeNameType.Value, "-1")] + Invalid = unchecked(-1), + + /// /// Unknown sensor type
///
[NativeName(NativeNameType.EnumItem, "SDL_SENSOR_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + + /// /// Accelerometer
///
[NativeName(NativeNameType.EnumItem, "SDL_SENSOR_ACCEL")] + [NativeName(NativeNameType.Value, "1")] + Accel = unchecked(1), + + /// /// Gyroscope
///
[NativeName(NativeNameType.EnumItem, "SDL_SENSOR_GYRO")] + [NativeName(NativeNameType.Value, "2")] + Gyro = unchecked(2), + + /// /// Accelerometer for left Joy-Con controller and Wii nunchuk
///
[NativeName(NativeNameType.EnumItem, "SDL_SENSOR_ACCEL_L")] + [NativeName(NativeNameType.Value, "3")] + Accell = unchecked(3), + + /// /// Gyroscope for left Joy-Con controller
///
[NativeName(NativeNameType.EnumItem, "SDL_SENSOR_GYRO_L")] + [NativeName(NativeNameType.Value, "4")] + Gyrol = unchecked(4), + + /// /// Accelerometer for right Joy-Con controller
///
[NativeName(NativeNameType.EnumItem, "SDL_SENSOR_ACCEL_R")] + [NativeName(NativeNameType.Value, "5")] + Accelr = unchecked(5), + + /// /// Gyroscope for right Joy-Con controller
///
[NativeName(NativeNameType.EnumItem, "SDL_SENSOR_GYRO_R")] + [NativeName(NativeNameType.Value, "6")] + Gyror = unchecked(6), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_GameControllerType")] + public enum SDLGameControllerType + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_XBOX360")] + [NativeName(NativeNameType.Value, "1")] + Xbox360 = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_XBOXONE")] + [NativeName(NativeNameType.Value, "2")] + Xboxone = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_PS3")] + [NativeName(NativeNameType.Value, "3")] + Ps3 = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_PS4")] + [NativeName(NativeNameType.Value, "4")] + Ps4 = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO")] + [NativeName(NativeNameType.Value, "5")] + NintendoSwitchPro = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_VIRTUAL")] + [NativeName(NativeNameType.Value, "6")] + Virtual = unchecked(6), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_PS5")] + [NativeName(NativeNameType.Value, "7")] + Ps5 = unchecked(7), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_AMAZON_LUNA")] + [NativeName(NativeNameType.Value, "8")] + AmazonLuna = unchecked(8), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_GOOGLE_STADIA")] + [NativeName(NativeNameType.Value, "9")] + GoogleStadia = unchecked(9), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_NVIDIA_SHIELD")] + [NativeName(NativeNameType.Value, "10")] + NvidiaShield = unchecked(10), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT")] + [NativeName(NativeNameType.Value, "11")] + NintendoSwitchJoyconLeft = unchecked(11), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT")] + [NativeName(NativeNameType.Value, "12")] + NintendoSwitchJoyconRight = unchecked(12), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_PAIR")] + [NativeName(NativeNameType.Value, "13")] + NintendoSwitchJoyconPair = unchecked(13), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_GameControllerBindType")] + public enum SDLGameControllerBindType + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BINDTYPE_NONE")] + [NativeName(NativeNameType.Value, "0")] + BindtypeNone = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BINDTYPE_BUTTON")] + [NativeName(NativeNameType.Value, "1")] + BindtypeButton = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BINDTYPE_AXIS")] + [NativeName(NativeNameType.Value, "2")] + BindtypeAxis = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BINDTYPE_HAT")] + [NativeName(NativeNameType.Value, "3")] + BindtypeHat = unchecked(3), + + } + + /// /// The list of axes available from a controller
/// Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX,
/// and are centered within ~8000 of zero, though advanced UI will allow users to set
/// or autodetect the dead zone, which varies between controllers.
/// Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
///
[NativeName(NativeNameType.Enum, "SDL_GameControllerAxis")] + public enum SDLGameControllerAxis + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_INVALID")] + [NativeName(NativeNameType.Value, "-1")] + Invalid = unchecked(-1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_LEFTX")] + [NativeName(NativeNameType.Value, "0")] + Leftx = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_LEFTY")] + [NativeName(NativeNameType.Value, "1")] + Lefty = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_RIGHTX")] + [NativeName(NativeNameType.Value, "2")] + Rightx = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_RIGHTY")] + [NativeName(NativeNameType.Value, "3")] + Righty = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_TRIGGERLEFT")] + [NativeName(NativeNameType.Value, "4")] + Triggerleft = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_TRIGGERRIGHT")] + [NativeName(NativeNameType.Value, "5")] + Triggerright = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_AXIS_MAX")] + [NativeName(NativeNameType.Value, "6")] + Max = unchecked(6), + + } + + /// /// The list of buttons available from a controller
///
[NativeName(NativeNameType.Enum, "SDL_GameControllerButton")] + public enum SDLGameControllerButton + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_INVALID")] + [NativeName(NativeNameType.Value, "-1")] + Invalid = unchecked(-1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_A")] + [NativeName(NativeNameType.Value, "0")] + Buttona = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_B")] + [NativeName(NativeNameType.Value, "1")] + Buttonb = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_X")] + [NativeName(NativeNameType.Value, "2")] + Buttonx = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_Y")] + [NativeName(NativeNameType.Value, "3")] + Buttony = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_BACK")] + [NativeName(NativeNameType.Value, "4")] + Back = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_GUIDE")] + [NativeName(NativeNameType.Value, "5")] + Guide = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_START")] + [NativeName(NativeNameType.Value, "6")] + Start = unchecked(6), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_LEFTSTICK")] + [NativeName(NativeNameType.Value, "7")] + Leftstick = unchecked(7), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_RIGHTSTICK")] + [NativeName(NativeNameType.Value, "8")] + Rightstick = unchecked(8), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_LEFTSHOULDER")] + [NativeName(NativeNameType.Value, "9")] + Leftshoulder = unchecked(9), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_RIGHTSHOULDER")] + [NativeName(NativeNameType.Value, "10")] + Rightshoulder = unchecked(10), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_DPAD_UP")] + [NativeName(NativeNameType.Value, "11")] + DpadUp = unchecked(11), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_DPAD_DOWN")] + [NativeName(NativeNameType.Value, "12")] + DpadDown = unchecked(12), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_DPAD_LEFT")] + [NativeName(NativeNameType.Value, "13")] + DpadLeft = unchecked(13), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_DPAD_RIGHT")] + [NativeName(NativeNameType.Value, "14")] + DpadRight = unchecked(14), + + /// /// Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button, Amazon Luna microphone button
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_MISC1")] + [NativeName(NativeNameType.Value, "15")] + Misc1 = unchecked(15), + + /// /// Xbox Elite paddle P1 (upper left, facing the back)
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_PADDLE1")] + [NativeName(NativeNameType.Value, "16")] + Paddle1 = unchecked(16), + + /// /// Xbox Elite paddle P3 (upper right, facing the back)
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_PADDLE2")] + [NativeName(NativeNameType.Value, "17")] + Paddle2 = unchecked(17), + + /// /// Xbox Elite paddle P2 (lower left, facing the back)
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_PADDLE3")] + [NativeName(NativeNameType.Value, "18")] + Paddle3 = unchecked(18), + + /// /// Xbox Elite paddle P4 (lower right, facing the back)
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_PADDLE4")] + [NativeName(NativeNameType.Value, "19")] + Paddle4 = unchecked(19), + + /// /// PS4/PS5 touchpad button
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_TOUCHPAD")] + [NativeName(NativeNameType.Value, "20")] + Touchpad = unchecked(20), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_CONTROLLER_BUTTON_MAX")] + [NativeName(NativeNameType.Value, "21")] + Max = unchecked(21), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_TouchDeviceType")] + public enum SDLTouchDeviceType + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_TOUCH_DEVICE_INVALID")] + [NativeName(NativeNameType.Value, "-1")] + Invalid = unchecked(-1), + + /// /// touch screen with window-relative coordinates
///
[NativeName(NativeNameType.EnumItem, "SDL_TOUCH_DEVICE_DIRECT")] + [NativeName(NativeNameType.Value, "0")] + Direct = unchecked(0), + + /// /// trackpad with absolute device coordinates
///
[NativeName(NativeNameType.EnumItem, "SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE")] + [NativeName(NativeNameType.Value, "1")] + IndirectAbsolute = unchecked(1), + + /// /// trackpad with screen cursor-relative coordinates
///
[NativeName(NativeNameType.EnumItem, "SDL_TOUCH_DEVICE_INDIRECT_RELATIVE")] + [NativeName(NativeNameType.Value, "2")] + IndirectRelative = unchecked(2), + + } + + /// /// The types of events that can be delivered.
///
[NativeName(NativeNameType.Enum, "SDL_EventType")] + public enum SDLEventType + { + /// /// Unused (do not remove)
///
[NativeName(NativeNameType.EnumItem, "SDL_FIRSTEVENT")] + [NativeName(NativeNameType.Value, "0")] + Firstevent = unchecked(0), + + /// /// User-requested quit
///
[NativeName(NativeNameType.EnumItem, "SDL_QUIT")] + [NativeName(NativeNameType.Value, "256")] + Quit = unchecked(256), + + /// /// The application is being terminated by the OS
/// Called on iOS in applicationWillTerminate()
/// Called on Android in onDestroy()
///
[NativeName(NativeNameType.EnumItem, "SDL_APP_TERMINATING")] + [NativeName(NativeNameType.Value, "257")] + AppTerminating = unchecked(257), + + /// /// The application is low on memory, free memory if possible.
/// Called on iOS in applicationDidReceiveMemoryWarning()
/// Called on Android in onLowMemory()
///
[NativeName(NativeNameType.EnumItem, "SDL_APP_LOWMEMORY")] + [NativeName(NativeNameType.Value, "258")] + AppLowmemory = unchecked(258), + + /// /// The application is about to enter the background
/// Called on iOS in applicationWillResignActive()
/// Called on Android in onPause()
///
[NativeName(NativeNameType.EnumItem, "SDL_APP_WILLENTERBACKGROUND")] + [NativeName(NativeNameType.Value, "259")] + AppWillenterbackground = unchecked(259), + + /// /// The application did enter the background and may not get CPU for some time
/// Called on iOS in applicationDidEnterBackground()
/// Called on Android in onPause()
///
[NativeName(NativeNameType.EnumItem, "SDL_APP_DIDENTERBACKGROUND")] + [NativeName(NativeNameType.Value, "260")] + AppDidenterbackground = unchecked(260), + + /// /// The application is about to enter the foreground
/// Called on iOS in applicationWillEnterForeground()
/// Called on Android in onResume()
///
[NativeName(NativeNameType.EnumItem, "SDL_APP_WILLENTERFOREGROUND")] + [NativeName(NativeNameType.Value, "261")] + AppWillenterforeground = unchecked(261), + + /// /// The application is now interactive
/// Called on iOS in applicationDidBecomeActive()
/// Called on Android in onResume()
///
[NativeName(NativeNameType.EnumItem, "SDL_APP_DIDENTERFOREGROUND")] + [NativeName(NativeNameType.Value, "262")] + AppDidenterforeground = unchecked(262), + + /// /// The user's locale preferences have changed.
///
[NativeName(NativeNameType.EnumItem, "SDL_LOCALECHANGED")] + [NativeName(NativeNameType.Value, "263")] + Localechanged = unchecked(263), + + /// /// Display state change
///
[NativeName(NativeNameType.EnumItem, "SDL_DISPLAYEVENT")] + [NativeName(NativeNameType.Value, "336")] + Displayevent = unchecked(336), + + /// /// Window state change
///
[NativeName(NativeNameType.EnumItem, "SDL_WINDOWEVENT")] + [NativeName(NativeNameType.Value, "512")] + Windowevent = unchecked(512), + + /// /// System specific event
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSWMEVENT")] + [NativeName(NativeNameType.Value, "513")] + Syswmevent = unchecked(513), + + /// /// Key pressed
///
[NativeName(NativeNameType.EnumItem, "SDL_KEYDOWN")] + [NativeName(NativeNameType.Value, "768")] + Keydown = unchecked(768), + + /// /// Key released
///
[NativeName(NativeNameType.EnumItem, "SDL_KEYUP")] + [NativeName(NativeNameType.Value, "769")] + Keyup = unchecked(769), + + /// /// Keyboard text editing (composition)
///
[NativeName(NativeNameType.EnumItem, "SDL_TEXTEDITING")] + [NativeName(NativeNameType.Value, "770")] + Textediting = unchecked(770), + + /// /// Keyboard text input
///
[NativeName(NativeNameType.EnumItem, "SDL_TEXTINPUT")] + [NativeName(NativeNameType.Value, "771")] + Textinput = unchecked(771), + + /// /// Keymap changed due to a system event such as an
/// input language or keyboard layout change.
///
[NativeName(NativeNameType.EnumItem, "SDL_KEYMAPCHANGED")] + [NativeName(NativeNameType.Value, "772")] + Keymapchanged = unchecked(772), + + /// /// Extended keyboard text editing (composition)
///
[NativeName(NativeNameType.EnumItem, "SDL_TEXTEDITING_EXT")] + [NativeName(NativeNameType.Value, "773")] + TexteditingExt = unchecked(773), + + /// /// Mouse moved
///
[NativeName(NativeNameType.EnumItem, "SDL_MOUSEMOTION")] + [NativeName(NativeNameType.Value, "1024")] + Mousemotion = unchecked(1024), + + /// /// Mouse button pressed
///
[NativeName(NativeNameType.EnumItem, "SDL_MOUSEBUTTONDOWN")] + [NativeName(NativeNameType.Value, "1025")] + Mousebuttondown = unchecked(1025), + + /// /// Mouse button released
///
[NativeName(NativeNameType.EnumItem, "SDL_MOUSEBUTTONUP")] + [NativeName(NativeNameType.Value, "1026")] + Mousebuttonup = unchecked(1026), + + /// /// Mouse wheel motion
///
[NativeName(NativeNameType.EnumItem, "SDL_MOUSEWHEEL")] + [NativeName(NativeNameType.Value, "1027")] + Mousewheel = unchecked(1027), + + /// /// Joystick axis motion
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYAXISMOTION")] + [NativeName(NativeNameType.Value, "1536")] + Joyaxismotion = unchecked(1536), + + /// /// Joystick trackball motion
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYBALLMOTION")] + [NativeName(NativeNameType.Value, "1537")] + Joyballmotion = unchecked(1537), + + /// /// Joystick hat position change
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYHATMOTION")] + [NativeName(NativeNameType.Value, "1538")] + Joyhatmotion = unchecked(1538), + + /// /// Joystick button pressed
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYBUTTONDOWN")] + [NativeName(NativeNameType.Value, "1539")] + Joybuttondown = unchecked(1539), + + /// /// Joystick button released
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYBUTTONUP")] + [NativeName(NativeNameType.Value, "1540")] + Joybuttonup = unchecked(1540), + + /// /// A new joystick has been inserted into the system
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYDEVICEADDED")] + [NativeName(NativeNameType.Value, "1541")] + Joydeviceadded = unchecked(1541), + + /// /// An opened joystick has been removed
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYDEVICEREMOVED")] + [NativeName(NativeNameType.Value, "1542")] + Joydeviceremoved = unchecked(1542), + + /// /// Joystick battery level change
///
[NativeName(NativeNameType.EnumItem, "SDL_JOYBATTERYUPDATED")] + [NativeName(NativeNameType.Value, "1543")] + Joybatteryupdated = unchecked(1543), + + /// /// Game controller axis motion
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERAXISMOTION")] + [NativeName(NativeNameType.Value, "1616")] + Controlleraxismotion = unchecked(1616), + + /// /// Game controller button pressed
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERBUTTONDOWN")] + [NativeName(NativeNameType.Value, "1617")] + Controllerbuttondown = unchecked(1617), + + /// /// Game controller button released
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERBUTTONUP")] + [NativeName(NativeNameType.Value, "1618")] + Controllerbuttonup = unchecked(1618), + + /// /// A new Game controller has been inserted into the system
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERDEVICEADDED")] + [NativeName(NativeNameType.Value, "1619")] + Controllerdeviceadded = unchecked(1619), + + /// /// An opened Game controller has been removed
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERDEVICEREMOVED")] + [NativeName(NativeNameType.Value, "1620")] + Controllerdeviceremoved = unchecked(1620), + + /// /// The controller mapping was updated
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERDEVICEREMAPPED")] + [NativeName(NativeNameType.Value, "1621")] + Controllerdeviceremapped = unchecked(1621), + + /// /// Game controller touchpad was touched
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERTOUCHPADDOWN")] + [NativeName(NativeNameType.Value, "1622")] + Controllertouchpaddown = unchecked(1622), + + /// /// Game controller touchpad finger was moved
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERTOUCHPADMOTION")] + [NativeName(NativeNameType.Value, "1623")] + Controllertouchpadmotion = unchecked(1623), + + /// /// Game controller touchpad finger was lifted
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERTOUCHPADUP")] + [NativeName(NativeNameType.Value, "1624")] + Controllertouchpadup = unchecked(1624), + + /// /// Game controller sensor was updated
///
[NativeName(NativeNameType.EnumItem, "SDL_CONTROLLERSENSORUPDATE")] + [NativeName(NativeNameType.Value, "1625")] + Controllersensorupdate = unchecked(1625), + + /// /// Touch events
///
[NativeName(NativeNameType.EnumItem, "SDL_FINGERDOWN")] + [NativeName(NativeNameType.Value, "1792")] + Fingerdown = unchecked(1792), + + /// /// Touch events
///
[NativeName(NativeNameType.EnumItem, "SDL_FINGERUP")] + [NativeName(NativeNameType.Value, "1793")] + Fingerup = unchecked(1793), + + /// /// Touch events
///
[NativeName(NativeNameType.EnumItem, "SDL_FINGERMOTION")] + [NativeName(NativeNameType.Value, "1794")] + Fingermotion = unchecked(1794), + + /// /// Gesture events
///
[NativeName(NativeNameType.EnumItem, "SDL_DOLLARGESTURE")] + [NativeName(NativeNameType.Value, "2048")] + Dollargesture = unchecked(2048), + + /// /// Gesture events
///
[NativeName(NativeNameType.EnumItem, "SDL_DOLLARRECORD")] + [NativeName(NativeNameType.Value, "2049")] + Dollarrecord = unchecked(2049), + + /// /// Gesture events
///
[NativeName(NativeNameType.EnumItem, "SDL_MULTIGESTURE")] + [NativeName(NativeNameType.Value, "2050")] + Multigesture = unchecked(2050), + + /// /// The clipboard or primary selection changed
///
[NativeName(NativeNameType.EnumItem, "SDL_CLIPBOARDUPDATE")] + [NativeName(NativeNameType.Value, "2304")] + Clipboardupdate = unchecked(2304), + + /// /// The system requests a file open
///
[NativeName(NativeNameType.EnumItem, "SDL_DROPFILE")] + [NativeName(NativeNameType.Value, "4096")] + Dropfile = unchecked(4096), + + /// /// text/plain drag-and-drop event
///
[NativeName(NativeNameType.EnumItem, "SDL_DROPTEXT")] + [NativeName(NativeNameType.Value, "4097")] + Droptext = unchecked(4097), + + /// /// A new set of drops is beginning (NULL filename)
///
[NativeName(NativeNameType.EnumItem, "SDL_DROPBEGIN")] + [NativeName(NativeNameType.Value, "4098")] + Dropbegin = unchecked(4098), + + /// /// Current set of drops is now complete (NULL filename)
///
[NativeName(NativeNameType.EnumItem, "SDL_DROPCOMPLETE")] + [NativeName(NativeNameType.Value, "4099")] + Dropcomplete = unchecked(4099), + + /// /// A new audio device is available
///
[NativeName(NativeNameType.EnumItem, "SDL_AUDIODEVICEADDED")] + [NativeName(NativeNameType.Value, "4352")] + Audiodeviceadded = unchecked(4352), + + /// /// An audio device has been removed.
///
[NativeName(NativeNameType.EnumItem, "SDL_AUDIODEVICEREMOVED")] + [NativeName(NativeNameType.Value, "4353")] + Audiodeviceremoved = unchecked(4353), + + /// /// A sensor was updated
///
[NativeName(NativeNameType.EnumItem, "SDL_SENSORUPDATE")] + [NativeName(NativeNameType.Value, "4608")] + Sensorupdate = unchecked(4608), + + /// /// The render targets have been reset and their contents need to be updated
///
[NativeName(NativeNameType.EnumItem, "SDL_RENDER_TARGETS_RESET")] + [NativeName(NativeNameType.Value, "8192")] + RenderTargetsReset = unchecked(8192), + + /// /// The device has been reset and all textures need to be recreated
///
[NativeName(NativeNameType.EnumItem, "SDL_RENDER_DEVICE_RESET")] + [NativeName(NativeNameType.Value, "8193")] + RenderDeviceReset = unchecked(8193), + + /// /// Signals the end of an event poll cycle
///
[NativeName(NativeNameType.EnumItem, "SDL_POLLSENTINEL")] + [NativeName(NativeNameType.Value, "32512")] + Pollsentinel = unchecked(32512), + + /// /// Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use,
/// and should be allocated with SDL_RegisterEvents()
///
[NativeName(NativeNameType.EnumItem, "SDL_USEREVENT")] + [NativeName(NativeNameType.Value, "32768")] + Userevent = unchecked(32768), + + /// /// This last event is only for bounding internal arrays
///
[NativeName(NativeNameType.EnumItem, "SDL_LASTEVENT")] + [NativeName(NativeNameType.Value, "65535")] + Lastevent = unchecked(65535), + + } + + /// /// These are the various supported windowing subsystems
///
[NativeName(NativeNameType.Enum, "SDL_SYSWM_TYPE")] + public enum SdlSyswmType + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_WINDOWS")] + [NativeName(NativeNameType.Value, "1")] + Windows = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_X11")] + [NativeName(NativeNameType.Value, "2")] + Syswmx11 = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_DIRECTFB")] + [NativeName(NativeNameType.Value, "3")] + Directfb = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_COCOA")] + [NativeName(NativeNameType.Value, "4")] + Cocoa = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_UIKIT")] + [NativeName(NativeNameType.Value, "5")] + Uikit = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_WAYLAND")] + [NativeName(NativeNameType.Value, "6")] + Wayland = unchecked(6), + + /// /// no longer available, left for API/ABI compatibility. Remove in 2.1!
///
[NativeName(NativeNameType.EnumItem, "SDL_SYSWM_MIR")] + [NativeName(NativeNameType.Value, "7")] + Mir = unchecked(7), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_WINRT")] + [NativeName(NativeNameType.Value, "8")] + Winrt = unchecked(8), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_ANDROID")] + [NativeName(NativeNameType.Value, "9")] + Android = unchecked(9), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_VIVANTE")] + [NativeName(NativeNameType.Value, "10")] + Vivante = unchecked(10), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_OS2")] + [NativeName(NativeNameType.Value, "11")] + Os2 = unchecked(11), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_HAIKU")] + [NativeName(NativeNameType.Value, "12")] + Haiku = unchecked(12), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_KMSDRM")] + [NativeName(NativeNameType.Value, "13")] + Kmsdrm = unchecked(13), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_SYSWM_RISCOS")] + [NativeName(NativeNameType.Value, "14")] + Riscos = unchecked(14), + + } + + /// ///
/// @
/// {
///
[NativeName(NativeNameType.Enum, "SDL_eventaction")] + public enum SDLEventaction + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_ADDEVENT")] + [NativeName(NativeNameType.Value, "0")] + Addevent = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_PEEKEVENT")] + [NativeName(NativeNameType.Value, "1")] + Peekevent = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_GETEVENT")] + [NativeName(NativeNameType.Value, "2")] + Getevent = unchecked(2), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_HintPriority")] + public enum SDLHintPriority + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_HINT_DEFAULT")] + [NativeName(NativeNameType.Value, "0")] + Default = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_HINT_NORMAL")] + [NativeName(NativeNameType.Value, "1")] + Normal = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_HINT_OVERRIDE")] + [NativeName(NativeNameType.Value, "2")] + Override = unchecked(2), + + } + + /// ///
/// /// To be documented. /// /// By default the application category is enabled at the INFO level,
/// the assert category is enabled at the WARN level, test is enabled
/// at the VERBOSE level and all other categories are enabled at the
/// CRITICAL level.
///
[NativeName(NativeNameType.Enum, "SDL_LogCategory")] + public enum SDLLogCategory + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_APPLICATION")] + [NativeName(NativeNameType.Value, "0")] + Application = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_ERROR")] + [NativeName(NativeNameType.Value, "1")] + Error = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_ASSERT")] + [NativeName(NativeNameType.Value, "2")] + Assert = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_SYSTEM")] + [NativeName(NativeNameType.Value, "3")] + System = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_AUDIO")] + [NativeName(NativeNameType.Value, "4")] + Audio = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_VIDEO")] + [NativeName(NativeNameType.Value, "5")] + Video = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RENDER")] + [NativeName(NativeNameType.Value, "6")] + Render = unchecked(6), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_INPUT")] + [NativeName(NativeNameType.Value, "7")] + Input = unchecked(7), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_TEST")] + [NativeName(NativeNameType.Value, "8")] + Test = unchecked(8), + + /// /// Reserved for future SDL library use
///
[NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED1")] + [NativeName(NativeNameType.Value, "9")] + Reserved1 = unchecked(9), + + /// /// Reserved for future SDL library use
///
[NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED2")] + [NativeName(NativeNameType.Value, "10")] + Reserved2 = unchecked(10), + + /// /// Reserved for future SDL library use
///
[NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED3")] + [NativeName(NativeNameType.Value, "11")] + Reserved3 = unchecked(11), + + /// /// Reserved for future SDL library use
///
[NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED4")] + [NativeName(NativeNameType.Value, "12")] + Reserved4 = unchecked(12), + + /// /// Reserved for future SDL library use
///
[NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED5")] + [NativeName(NativeNameType.Value, "13")] + Reserved5 = unchecked(13), + + /// /// Reserved for future SDL library use
///
[NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED6")] + [NativeName(NativeNameType.Value, "14")] + Reserved6 = unchecked(14), + + /// /// Reserved for future SDL library use
///
[NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED7")] + [NativeName(NativeNameType.Value, "15")] + Reserved7 = unchecked(15), + + /// /// Reserved for future SDL library use
///
[NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED8")] + [NativeName(NativeNameType.Value, "16")] + Reserved8 = unchecked(16), + + /// /// Reserved for future SDL library use
///
[NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED9")] + [NativeName(NativeNameType.Value, "17")] + Reserved9 = unchecked(17), + + /// /// Reserved for future SDL library use
///
[NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_RESERVED10")] + [NativeName(NativeNameType.Value, "18")] + Reserved10 = unchecked(18), + + /// /// Beyond this point is reserved for application use, e.g.
/// enum {
/// MYAPP_CATEGORY_AWESOME1 = SDL_LOG_CATEGORY_CUSTOM,
/// MYAPP_CATEGORY_AWESOME2,
/// MYAPP_CATEGORY_AWESOME3,
/// ...
/// };
///
[NativeName(NativeNameType.EnumItem, "SDL_LOG_CATEGORY_CUSTOM")] + [NativeName(NativeNameType.Value, "19")] + Custom = unchecked(19), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "SDL_LogPriority")] + public enum SDLLogPriority + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_VERBOSE")] + [NativeName(NativeNameType.Value, "1")] + Verbose = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_DEBUG")] + [NativeName(NativeNameType.Value, "2")] + Debug = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_INFO")] + [NativeName(NativeNameType.Value, "3")] + Info = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_WARN")] + [NativeName(NativeNameType.Value, "4")] + Warn = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_ERROR")] + [NativeName(NativeNameType.Value, "5")] + Error = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_LOG_PRIORITY_CRITICAL")] + [NativeName(NativeNameType.Value, "6")] + Critical = unchecked(6), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_NUM_LOG_PRIORITIES")] + [NativeName(NativeNameType.Value, "7")] + NumLogPriorities = unchecked(7), + + } + + /// /// SDL_MessageBox flags. If supported will display warning icon, etc.
///
[NativeName(NativeNameType.Enum, "SDL_MessageBoxFlags")] + public enum SDLMessageBoxFlags + { + /// /// error dialog
///
[NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_ERROR")] + [NativeName(NativeNameType.Value, "16")] + MessageboxError = unchecked(16), + + /// /// warning dialog
///
[NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_WARNING")] + [NativeName(NativeNameType.Value, "32")] + MessageboxWarning = unchecked(32), + + /// /// informational dialog
///
[NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_INFORMATION")] + [NativeName(NativeNameType.Value, "64")] + MessageboxInformation = unchecked(64), + + /// /// buttons placed left to right
///
[NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT")] + [NativeName(NativeNameType.Value, "128")] + MessageboxButtonsLeftToRight = unchecked(128), + + /// /// buttons placed right to left
///
[NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT")] + [NativeName(NativeNameType.Value, "256")] + MessageboxButtonsRightToLeft = unchecked(256), + + } + + /// /// Flags for SDL_MessageBoxButtonData.
///
[NativeName(NativeNameType.Enum, "SDL_MessageBoxButtonFlags")] + public enum SDLMessageBoxButtonFlags + { + /// /// Marks the default button when return is hit
///
[NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT")] + [NativeName(NativeNameType.Value, "1")] + MessageboxButtonReturnkeyDefault = unchecked(1), + + /// /// Marks the default button when escape is hit
///
[NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT")] + [NativeName(NativeNameType.Value, "2")] + MessageboxButtonEscapekeyDefault = unchecked(2), + + } + + /// /// To be documented. /// [NativeName(NativeNameType.Enum, "SDL_MessageBoxColorType")] + public enum SDLMessageBoxColorType + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_BACKGROUND")] + [NativeName(NativeNameType.Value, "0")] + MessageboxColorBackground = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_TEXT")] + [NativeName(NativeNameType.Value, "1")] + MessageboxColorText = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_BUTTON_BORDER")] + [NativeName(NativeNameType.Value, "2")] + MessageboxColorButtonBorder = unchecked(2), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND")] + [NativeName(NativeNameType.Value, "3")] + MessageboxColorButtonBackground = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED")] + [NativeName(NativeNameType.Value, "4")] + MessageboxColorButtonSelected = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "SDL_MESSAGEBOX_COLOR_MAX")] + [NativeName(NativeNameType.Value, "5")] + MessageboxColorMax = unchecked(5), + + } + + /// /// The basic state for the system's power supply.
///
[NativeName(NativeNameType.Enum, "SDL_PowerState")] + public enum SDLPowerState + { + /// /// cannot determine power status
///
[NativeName(NativeNameType.EnumItem, "SDL_POWERSTATE_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + PowerstateUnknown = unchecked(0), + + /// /// Not plugged in, running on the battery
///
[NativeName(NativeNameType.EnumItem, "SDL_POWERSTATE_ON_BATTERY")] + [NativeName(NativeNameType.Value, "1")] + PowerstateOnBattery = unchecked(1), + + /// /// Plugged in, no battery available
///
[NativeName(NativeNameType.EnumItem, "SDL_POWERSTATE_NO_BATTERY")] + [NativeName(NativeNameType.Value, "2")] + PowerstateNoBattery = unchecked(2), + + /// /// Plugged in, charging battery
///
[NativeName(NativeNameType.EnumItem, "SDL_POWERSTATE_CHARGING")] + [NativeName(NativeNameType.Value, "3")] + PowerstateCharging = unchecked(3), + + /// /// Plugged in, battery charged
///
[NativeName(NativeNameType.EnumItem, "SDL_POWERSTATE_CHARGED")] + [NativeName(NativeNameType.Value, "4")] + PowerstateCharged = unchecked(4), + + } + + /// /// Flags used when creating a rendering context
///
[NativeName(NativeNameType.Enum, "SDL_RendererFlags")] + public enum SDLRendererFlags + { + /// /// The renderer is a software fallback
///
[NativeName(NativeNameType.EnumItem, "SDL_RENDERER_SOFTWARE")] + [NativeName(NativeNameType.Value, "1")] + Software = unchecked(1), + + /// /// The renderer uses hardware
/// acceleration
///
[NativeName(NativeNameType.EnumItem, "SDL_RENDERER_ACCELERATED")] + [NativeName(NativeNameType.Value, "2")] + Accelerated = unchecked(2), + + /// /// Present is synchronized
/// with the refresh rate
///
[NativeName(NativeNameType.EnumItem, "SDL_RENDERER_PRESENTVSYNC")] + [NativeName(NativeNameType.Value, "4")] + Presentvsync = unchecked(4), + + /// /// The renderer supports
/// rendering to texture
///
[NativeName(NativeNameType.EnumItem, "SDL_RENDERER_TARGETTEXTURE")] + [NativeName(NativeNameType.Value, "8")] + Targettexture = unchecked(8), + + } + + /// /// The scaling mode for a texture.
///
[NativeName(NativeNameType.Enum, "SDL_ScaleMode")] + public enum SDLScaleMode + { + /// /// nearest pixel sampling
///
[NativeName(NativeNameType.EnumItem, "SDL_ScaleModeNearest")] + [NativeName(NativeNameType.Value, "0")] + Nearest = unchecked(0), + + /// /// linear filtering
///
[NativeName(NativeNameType.EnumItem, "SDL_ScaleModeLinear")] + [NativeName(NativeNameType.Value, "1")] + Linear = unchecked(1), + + /// /// anisotropic filtering
///
[NativeName(NativeNameType.EnumItem, "SDL_ScaleModeBest")] + [NativeName(NativeNameType.Value, "2")] + Best = unchecked(2), + + } + + /// /// The access pattern allowed for a texture.
///
[NativeName(NativeNameType.Enum, "SDL_TextureAccess")] + public enum SDLTextureAccess + { + /// /// Changes rarely, not lockable
///
[NativeName(NativeNameType.EnumItem, "SDL_TEXTUREACCESS_STATIC")] + [NativeName(NativeNameType.Value, "0")] + TextureaccessStatic = unchecked(0), + + /// /// Changes frequently, lockable
///
[NativeName(NativeNameType.EnumItem, "SDL_TEXTUREACCESS_STREAMING")] + [NativeName(NativeNameType.Value, "1")] + TextureaccessStreaming = unchecked(1), + + /// /// Texture can be used as a render target
///
[NativeName(NativeNameType.EnumItem, "SDL_TEXTUREACCESS_TARGET")] + [NativeName(NativeNameType.Value, "2")] + TextureaccessTarget = unchecked(2), + + } + + /// /// The texture channel modulation used in SDL_RenderCopy().
///
[NativeName(NativeNameType.Enum, "SDL_TextureModulate")] + public enum SDLTextureModulate + { + /// /// No modulation
///
[NativeName(NativeNameType.EnumItem, "SDL_TEXTUREMODULATE_NONE")] + [NativeName(NativeNameType.Value, "0")] + TexturemodulateNone = unchecked(0), + + /// /// srcC = srcC * color
///
[NativeName(NativeNameType.EnumItem, "SDL_TEXTUREMODULATE_COLOR")] + [NativeName(NativeNameType.Value, "1")] + TexturemodulateColor = unchecked(1), + + /// /// srcA = srcA * alpha
///
[NativeName(NativeNameType.EnumItem, "SDL_TEXTUREMODULATE_ALPHA")] + [NativeName(NativeNameType.Value, "2")] + TexturemodulateAlpha = unchecked(2), + + } + + /// /// Flip constants for SDL_RenderCopyEx
///
[NativeName(NativeNameType.Enum, "SDL_RendererFlip")] + public enum SDLRendererFlip + { + /// /// Do not flip
///
[NativeName(NativeNameType.EnumItem, "SDL_FLIP_NONE")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + + /// /// flip horizontally
///
[NativeName(NativeNameType.EnumItem, "SDL_FLIP_HORIZONTAL")] + [NativeName(NativeNameType.Value, "1")] + Horizontal = unchecked(1), + + /// /// flip vertically
///
[NativeName(NativeNameType.EnumItem, "SDL_FLIP_VERTICAL")] + [NativeName(NativeNameType.Value, "2")] + Vertical = unchecked(2), + + } + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.Enum, "WindowShapeMode")] + public enum WindowShapeMode + { + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.EnumItem, "ShapeModeDefault")] + [NativeName(NativeNameType.Value, "0")] + Default = unchecked(0), + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.EnumItem, "ShapeModeBinarizeAlpha")] + [NativeName(NativeNameType.Value, "1")] + BinarizeAlpha = unchecked(1), + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.EnumItem, "ShapeModeReverseBinarizeAlpha")] + [NativeName(NativeNameType.Value, "2")] + ReverseBinarizeAlpha = unchecked(2), + + /// ///
/// /// To be documented. /// ///
[NativeName(NativeNameType.EnumItem, "ShapeModeColorKey")] + [NativeName(NativeNameType.Value, "3")] + ColorKey = unchecked(3), + + } + +} diff --git a/Hexa.NET.SDL2/Generated/Functions.cs b/Hexa.NET.SDL2/Generated/Functions.cs index 981fc60..94a2bf4 100644 --- a/Hexa.NET.SDL2/Generated/Functions.cs +++ b/Hexa.NET.SDL2/Generated/Functions.cs @@ -467,11 +467,11 @@ public static int SDLSetenv([NativeName(NativeNameType.Param, "name")] [NativeNa [NativeName(NativeNameType.Func, "SDL_qsort")] [return: NativeName(NativeNameType.Type, "void")] [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_qsort")] - internal static extern void SDLQsortNative([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "void*")] void* baseValue, [NativeName(NativeNameType.Param, "nmemb")] [NativeName(NativeNameType.Type, "size_t")] nuint nmemb, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size, [NativeName(NativeNameType.Param, "compare")] [NativeName(NativeNameType.Type, "int (*)(void* base, size_t nmemb, size_t size, int (*)(const void*, const void*)* compare)*")] delegate*> compare); + internal static extern void SDLQsortNative([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "void*")] void* baseValue, [NativeName(NativeNameType.Param, "nmemb")] [NativeName(NativeNameType.Type, "size_t")] nuint nmemb, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size, [NativeName(NativeNameType.Param, "compare")] [NativeName(NativeNameType.Type, "int (*)(void* base, size_t nmemb, size_t size, int (*)(const void*, const void*)* compare)*")] delegate*, int> compare); /// /// To be documented. /// [NativeName(NativeNameType.Func, "SDL_qsort")] [return: NativeName(NativeNameType.Type, "void")] - public static void SDLQsort([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "void*")] void* baseValue, [NativeName(NativeNameType.Param, "nmemb")] [NativeName(NativeNameType.Type, "size_t")] nuint nmemb, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size, [NativeName(NativeNameType.Param, "compare")] [NativeName(NativeNameType.Type, "int (*)(void* base, size_t nmemb, size_t size, int (*)(const void*, const void*)* compare)*")] delegate*> compare) + public static void SDLQsort([NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "void*")] void* baseValue, [NativeName(NativeNameType.Param, "nmemb")] [NativeName(NativeNameType.Type, "size_t")] nuint nmemb, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size, [NativeName(NativeNameType.Param, "compare")] [NativeName(NativeNameType.Type, "int (*)(void* base, size_t nmemb, size_t size, int (*)(const void*, const void*)* compare)*")] delegate*, int> compare) { SDLQsortNative(baseValue, nmemb, size, compare); } @@ -482,11 +482,11 @@ public static void SDLQsort([NativeName(NativeNameType.Param, "base")] [NativeNa [NativeName(NativeNameType.Func, "SDL_bsearch")] [return: NativeName(NativeNameType.Type, "void*")] [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_bsearch")] - internal static extern void* SDLBsearchNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "const void*")] void* key, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const void*")] void* baseValue, [NativeName(NativeNameType.Param, "nmemb")] [NativeName(NativeNameType.Type, "size_t")] nuint nmemb, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size, [NativeName(NativeNameType.Param, "compare")] [NativeName(NativeNameType.Type, "int (*)(const void* key, const void* base, size_t nmemb, size_t size, int (*)(const void*, const void*)* compare)*")] delegate*> compare); + internal static extern void* SDLBsearchNative([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "const void*")] void* key, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const void*")] void* baseValue, [NativeName(NativeNameType.Param, "nmemb")] [NativeName(NativeNameType.Type, "size_t")] nuint nmemb, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size, [NativeName(NativeNameType.Param, "compare")] [NativeName(NativeNameType.Type, "int (*)(const void* key, const void* base, size_t nmemb, size_t size, int (*)(const void*, const void*)* compare)*")] delegate*, int> compare); /// /// To be documented. /// [NativeName(NativeNameType.Func, "SDL_bsearch")] [return: NativeName(NativeNameType.Type, "void*")] - public static void* SDLBsearch([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "const void*")] void* key, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const void*")] void* baseValue, [NativeName(NativeNameType.Param, "nmemb")] [NativeName(NativeNameType.Type, "size_t")] nuint nmemb, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size, [NativeName(NativeNameType.Param, "compare")] [NativeName(NativeNameType.Type, "int (*)(const void* key, const void* base, size_t nmemb, size_t size, int (*)(const void*, const void*)* compare)*")] delegate*> compare) + public static void* SDLBsearch([NativeName(NativeNameType.Param, "key")] [NativeName(NativeNameType.Type, "const void*")] void* key, [NativeName(NativeNameType.Param, "base")] [NativeName(NativeNameType.Type, "const void*")] void* baseValue, [NativeName(NativeNameType.Param, "nmemb")] [NativeName(NativeNameType.Type, "size_t")] nuint nmemb, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size, [NativeName(NativeNameType.Param, "compare")] [NativeName(NativeNameType.Type, "int (*)(const void* key, const void* base, size_t nmemb, size_t size, int (*)(const void*, const void*)* compare)*")] delegate*, int> compare) { void* ret = SDLBsearchNative(key, baseValue, nmemb, size, compare); return ret; @@ -12300,11 +12300,11 @@ public static uint SDLTLSCreate() [NativeName(NativeNameType.Func, "SDL_TLSSet")] [return: NativeName(NativeNameType.Type, "int")] [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_TLSSet")] - internal static extern int SDLTLSSetNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SDL_TLSID")] uint id, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "const void*")] void* value, [NativeName(NativeNameType.Param, "destructor")] [NativeName(NativeNameType.Type, "void (*)(SDL_TLSID id, const void* value, void (*)(void*)* destructor)*")] delegate*> destructor); + internal static extern int SDLTLSSetNative([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SDL_TLSID")] uint id, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "const void*")] void* value, [NativeName(NativeNameType.Param, "destructor")] [NativeName(NativeNameType.Type, "void (*)(SDL_TLSID id, const void* value, void (*)(void*)* destructor)*")] delegate*, void> destructor); /// /// Set the current thread's value associated with a thread local storage ID.
/// The function prototype for `destructor` is:
/// ```c
/// void destructor(void *value)
/// ```
/// where its parameter `value` is what was passed as `value` to SDL_TLSSet().
///
/// /// To be documented. /// /// /// To be documented. /// /// /// To be documented. /// /// /// To be documented. /// ///
/// /// To be documented. /// ///
/// /// To be documented. /// /// /// To be documented. /// ///
[NativeName(NativeNameType.Func, "SDL_TLSSet")] [return: NativeName(NativeNameType.Type, "int")] - public static int SDLTLSSet([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SDL_TLSID")] uint id, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "const void*")] void* value, [NativeName(NativeNameType.Param, "destructor")] [NativeName(NativeNameType.Type, "void (*)(SDL_TLSID id, const void* value, void (*)(void*)* destructor)*")] delegate*> destructor) + public static int SDLTLSSet([NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SDL_TLSID")] uint id, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "const void*")] void* value, [NativeName(NativeNameType.Param, "destructor")] [NativeName(NativeNameType.Type, "void (*)(SDL_TLSID id, const void* value, void (*)(void*)* destructor)*")] delegate*, void> destructor) { int ret = SDLTLSSetNative(id, value, destructor); return ret; diff --git a/Hexa.NET.SDL2/Generated/Structures.cs b/Hexa.NET.SDL2/Generated/Structures.cs index e69de29..732fbcb 100644 --- a/Hexa.NET.SDL2/Generated/Structures.cs +++ b/Hexa.NET.SDL2/Generated/Structures.cs @@ -0,0 +1,7588 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.SDL2 +{ + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "_SDL_iconv_t")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLIconv + { + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "SDL_AssertData")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLAssertData + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "always_ignore")] + [NativeName(NativeNameType.Type, "int")] + public int AlwaysIgnore; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "trigger_count")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint TriggerCount; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "condition")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Condition; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "filename")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Filename; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "linenum")] + [NativeName(NativeNameType.Type, "int")] + public int Linenum; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "function")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Function; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "next")] + [NativeName(NativeNameType.Type, "const SDL_AssertData*")] + public unsafe SDLAssertData* Next; + + + /// /// To be documented. /// public unsafe SDLAssertData(int alwaysIgnore = default, uint triggerCount = default, byte* condition = default, byte* filename = default, int linenum = default, byte* function = default, SDLAssertData* next = default) + { + AlwaysIgnore = alwaysIgnore; + TriggerCount = triggerCount; + Condition = condition; + Filename = filename; + Linenum = linenum; + Function = function; + Next = next; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_atomic_t")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLAtomic + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "value")] + [NativeName(NativeNameType.Type, "int")] + public int Value; + + + /// /// To be documented. /// public unsafe SDLAtomic(int value = default) + { + Value = value; + } + + + } + + /// + /// The SDL mutex structure, defined in SDL_sysmutex.c
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_mutex")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLMutex + { + + + } + + /// + /// The SDL semaphore structure, defined in SDL_syssem.c
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_semaphore")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLSemaphore + { + + + } + + /// + /// The SDL condition variable structure, defined in SDL_syscond.c
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_cond")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLCond + { + + + } + + /// + /// The SDL thread structure, defined in SDL_thread.c
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_Thread")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLThread + { + + + } + + /// + /// This is the read/write operation structure -- very basic.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_RWops")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLRWops + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Explicit)] + public partial struct HiddenUnion + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Sequential)] + public partial struct WindowsioUnion + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Sequential)] + public partial struct BufferUnion + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "data")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* Data; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "size")] + [NativeName(NativeNameType.Type, "size_t")] + public nuint Size; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "left")] + [NativeName(NativeNameType.Type, "size_t")] + public nuint Left; + + + /// /// To be documented. /// public unsafe BufferUnion(void* data = default, nuint size = default, nuint left = default) + { + Data = data; + Size = size; + Left = left; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "append")] + [NativeName(NativeNameType.Type, "SDL_bool")] + public SDLBool Append; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "h")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* H; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "buffer")] + [NativeName(NativeNameType.Type, "")] + public BufferUnion Buffer; + + + /// /// To be documented. /// public unsafe WindowsioUnion(SDLBool append = default, void* h = default, BufferUnion buffer = default) + { + Append = append; + H = h; + Buffer = buffer; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Sequential)] + public partial struct MemUnion + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "base")] + [NativeName(NativeNameType.Type, "Uint8*")] + public unsafe byte* Base; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "here")] + [NativeName(NativeNameType.Type, "Uint8*")] + public unsafe byte* Here; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "stop")] + [NativeName(NativeNameType.Type, "Uint8*")] + public unsafe byte* Stop; + + + /// /// To be documented. /// public unsafe MemUnion(byte* baseValue = default, byte* here = default, byte* stop = default) + { + Base = baseValue; + Here = here; + Stop = stop; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Sequential)] + public partial struct UnknownUnion + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "data1")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* Data1; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "data2")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* Data2; + + + /// /// To be documented. /// public unsafe UnknownUnion(void* data1 = default, void* data2 = default) + { + Data1 = data1; + Data2 = data2; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "windowsio")] + [NativeName(NativeNameType.Type, "")] + [FieldOffset(0)] + public WindowsioUnion Windowsio; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "mem")] + [NativeName(NativeNameType.Type, "")] + [FieldOffset(0)] + public MemUnion Mem; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "unknown")] + [NativeName(NativeNameType.Type, "")] + [FieldOffset(0)] + public UnknownUnion Unknown; + + + /// /// To be documented. /// public unsafe HiddenUnion(WindowsioUnion windowsio = default, MemUnion mem = default, UnknownUnion unknown = default) + { + Windowsio = windowsio; + Mem = mem; + Unknown = unknown; + } + + + } + + /// + /// Return the size of the file in this rwops, or -1 if unknown
+ ///
+ [NativeName(NativeNameType.Field, "size")] + [NativeName(NativeNameType.Type, "Sint64 (*)(SDL_RWops* context)*")] + public unsafe void* Size; + + /// + /// Seek to
+ /// + /// To be documented. + /// + /// relative to
+ /// + /// To be documented. + /// + /// one of stdio's whence values:
+ /// RW_SEEK_SET, RW_SEEK_CUR, RW_SEEK_END
+ ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.Field, "seek")] + [NativeName(NativeNameType.Type, "Sint64 (*)(SDL_RWops* context, Sint64 offset, int whence)*")] + public unsafe void* Seek; + + /// + /// Read up to
+ /// + /// To be documented. + /// + /// objects each of size
+ /// + /// To be documented. + /// + /// from the data
+ /// stream to the area pointed at by
+ /// + /// To be documented. + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.Field, "read")] + [NativeName(NativeNameType.Type, "size_t (*)(SDL_RWops* context, void* ptr, size_t size, size_t maxnum)*")] + public unsafe void* Read; + + /// + /// Write exactly
+ /// + /// To be documented. + /// + /// objects each of size
+ /// + /// To be documented. + /// + /// from the area
+ /// pointed at by
+ /// + /// To be documented. + /// + /// to data stream.
+ ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.Field, "write")] + [NativeName(NativeNameType.Type, "size_t (*)(SDL_RWops* context, const void* ptr, size_t size, size_t num)*")] + public unsafe void* Write; + + /// + /// Close and free an allocated SDL_RWops structure.
+ ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.Field, "close")] + [NativeName(NativeNameType.Type, "int (*)(SDL_RWops* context)*")] + public unsafe void* Close; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "hidden")] + [NativeName(NativeNameType.Type, "")] + public HiddenUnion Union; + + + /// /// To be documented. /// public unsafe SDLRWops(delegate* size = default, delegate* seek = default, delegate* read = default, delegate* write = default, delegate* close = default, uint type = default, HiddenUnion union = default) + { + Size = (void*)size; + Seek = (void*)seek; + Read = (void*)read; + Write = (void*)write; + Close = (void*)close; + Type = type; + Union = union; + } + + + } + + /// + /// The calculated values in this structure are calculated by SDL_OpenAudio().
+ /// For multi-channel audio, the default SDL channel mapping is:
+ /// 2: FL FR (stereo)
+ /// 3: FL FR LFE (2.1 surround)
+ /// 4: FL FR BL BR (quad)
+ /// 5: FL FR LFE BL BR (4.1 surround)
+ /// 6: FL FR FC LFE SL SR (5.1 surround - last two can also be BL BR)
+ /// 7: FL FR FC LFE BC SL SR (6.1 surround)
+ /// 8: FL FR FC LFE BL BR SL SR (7.1 surround)
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_AudioSpec")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLAudioSpec + { + /// + /// DSP frequency -- samples per second
+ ///
+ [NativeName(NativeNameType.Field, "freq")] + [NativeName(NativeNameType.Type, "int")] + public int Freq; + + /// + /// Audio data format
+ ///
+ [NativeName(NativeNameType.Field, "format")] + [NativeName(NativeNameType.Type, "SDL_AudioFormat")] + public ushort Format; + + /// + /// Number of channels: 1 mono, 2 stereo
+ ///
+ [NativeName(NativeNameType.Field, "channels")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Channels; + + /// + /// Audio buffer silence value (calculated)
+ ///
+ [NativeName(NativeNameType.Field, "silence")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Silence; + + /// + /// Audio buffer size in sample FRAMES (total samples divided by channel count)
+ ///
+ [NativeName(NativeNameType.Field, "samples")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Samples; + + /// + /// Necessary for some compile environments
+ ///
+ [NativeName(NativeNameType.Field, "padding")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Padding; + + /// + /// Audio buffer size in bytes (calculated)
+ ///
+ [NativeName(NativeNameType.Field, "size")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Size; + + /// + /// Callback that feeds the audio device (NULL to use SDL_QueueAudio()).
+ ///
+ [NativeName(NativeNameType.Field, "callback")] + [NativeName(NativeNameType.Type, "SDL_AudioCallback")] + public unsafe void* Callback; + /// + /// Userdata passed to callback (ignored for NULL callbacks).
+ ///
+ [NativeName(NativeNameType.Field, "userdata")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* Userdata; + + + /// /// To be documented. /// public unsafe SDLAudioSpec(int freq = default, ushort format = default, byte channels = default, byte silence = default, ushort samples = default, ushort padding = default, uint size = default, SDLAudioCallback callback = default, void* userdata = default) + { + Freq = freq; + Format = format; + Channels = channels; + Silence = silence; + Samples = samples; + Padding = padding; + Size = size; + Callback = (void*)Marshal.GetFunctionPointerForDelegate(callback); + Userdata = userdata; + } + + + } + + /// + ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_AudioCVT")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLAudioCV + { + /// + /// Set to 1 if conversion possible
+ ///
+ [NativeName(NativeNameType.Field, "needed")] + [NativeName(NativeNameType.Type, "int")] + public int Needed; + + /// + /// Source audio format
+ ///
+ [NativeName(NativeNameType.Field, "src_format")] + [NativeName(NativeNameType.Type, "SDL_AudioFormat")] + public ushort SrcFormat; + + /// + /// Target audio format
+ ///
+ [NativeName(NativeNameType.Field, "dst_format")] + [NativeName(NativeNameType.Type, "SDL_AudioFormat")] + public ushort DstFormat; + + /// + /// Rate conversion increment
+ ///
+ [NativeName(NativeNameType.Field, "rate_incr")] + [NativeName(NativeNameType.Type, "double")] + public double RateIncr; + + /// + /// Buffer to hold entire audio data
+ ///
+ [NativeName(NativeNameType.Field, "buf")] + [NativeName(NativeNameType.Type, "Uint8*")] + public unsafe byte* Buf; + + /// + /// Length of original audio buffer
+ ///
+ [NativeName(NativeNameType.Field, "len")] + [NativeName(NativeNameType.Type, "int")] + public int Len; + + /// + /// Length of converted audio buffer
+ ///
+ [NativeName(NativeNameType.Field, "len_cvt")] + [NativeName(NativeNameType.Type, "int")] + public int LenCvt; + + /// + /// buffer must be len*len_mult big
+ ///
+ [NativeName(NativeNameType.Field, "len_mult")] + [NativeName(NativeNameType.Type, "int")] + public int LenMult; + + /// + /// Given len, final size is len*len_ratio
+ ///
+ [NativeName(NativeNameType.Field, "len_ratio")] + [NativeName(NativeNameType.Type, "double")] + public double LenRatio; + + /// + /// NULL-terminated list of filter functions
+ ///
+ [NativeName(NativeNameType.Field, "filters")] + [NativeName(NativeNameType.Type, "SDL_AudioFilter[10]")] + public SDLAudioFilter Filters_0; + public SDLAudioFilter Filters_1; + public SDLAudioFilter Filters_2; + public SDLAudioFilter Filters_3; + public SDLAudioFilter Filters_4; + public SDLAudioFilter Filters_5; + public SDLAudioFilter Filters_6; + public SDLAudioFilter Filters_7; + public SDLAudioFilter Filters_8; + public SDLAudioFilter Filters_9; + + /// + /// Current audio conversion function
+ ///
+ [NativeName(NativeNameType.Field, "filter_index")] + [NativeName(NativeNameType.Type, "int")] + public int FilterIndex; + + + /// /// To be documented. /// public unsafe SDLAudioCV(int needed = default, ushort srcFormat = default, ushort dstFormat = default, double rateIncr = default, byte* buf = default, int len = default, int lenCvt = default, int lenMult = default, double lenRatio = default, SDLAudioFilter* filters = default, int filterIndex = default) + { + Needed = needed; + SrcFormat = srcFormat; + DstFormat = dstFormat; + RateIncr = rateIncr; + Buf = buf; + Len = len; + LenCvt = lenCvt; + LenMult = lenMult; + LenRatio = lenRatio; + if (filters != default) + { + Filters_0 = filters[0]; + Filters_1 = filters[1]; + Filters_2 = filters[2]; + Filters_3 = filters[3]; + Filters_4 = filters[4]; + Filters_5 = filters[5]; + Filters_6 = filters[6]; + Filters_7 = filters[7]; + Filters_8 = filters[8]; + Filters_9 = filters[9]; + } + FilterIndex = filterIndex; + } + + /// /// To be documented. /// public unsafe SDLAudioCV(int needed = default, ushort srcFormat = default, ushort dstFormat = default, double rateIncr = default, byte* buf = default, int len = default, int lenCvt = default, int lenMult = default, double lenRatio = default, Span filters = default, int filterIndex = default) + { + Needed = needed; + SrcFormat = srcFormat; + DstFormat = dstFormat; + RateIncr = rateIncr; + Buf = buf; + Len = len; + LenCvt = lenCvt; + LenMult = lenMult; + LenRatio = lenRatio; + if (filters != default) + { + Filters_0 = filters[0]; + Filters_1 = filters[1]; + Filters_2 = filters[2]; + Filters_3 = filters[3]; + Filters_4 = filters[4]; + Filters_5 = filters[5]; + Filters_6 = filters[6]; + Filters_7 = filters[7]; + Filters_8 = filters[8]; + Filters_9 = filters[9]; + } + FilterIndex = filterIndex; + } + + + /// + /// NULL-terminated list of filter functions
+ ///
+ public unsafe Span Filters + + { + get + { + fixed (SDLAudioFilter* p = &this.Filters_0) + { + return new Span(p, 10); + } + } + } + } + + /// + /// SDL_AudioStream is a new audio conversion interface.
+ /// The benefits vs SDL_AudioCVT:
+ /// - it can handle resampling data in chunks without generating
+ /// artifacts, when it doesn't have the complete buffer available.
+ /// - it can handle incoming data in any variable size.
+ /// - You push data as you have it, and pull it when you need it
+ /// this is opaque to the outside world.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "_SDL_AudioStream")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLAudioStream + { + + + } + + /// + /// The bits of this structure can be directly reinterpreted as an integer-packed
+ /// color which uses the SDL_PIXELFORMAT_RGBA32 format (SDL_PIXELFORMAT_ABGR8888
+ /// on little-endian systems and SDL_PIXELFORMAT_RGBA8888 on big-endian systems).
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_Color")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLColor + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "r")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte R; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "g")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte G; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "b")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte B; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "a")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte A; + + + /// /// To be documented. /// public unsafe SDLColor(byte r = default, byte g = default, byte b = default, byte a = default) + { + R = r; + G = g; + B = b; + A = a; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "SDL_Palette")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLPalette + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "ncolors")] + [NativeName(NativeNameType.Type, "int")] + public int Ncolors; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "colors")] + [NativeName(NativeNameType.Type, "SDL_Color*")] + public unsafe SDLColor* Colors; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "version")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Version; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "refcount")] + [NativeName(NativeNameType.Type, "int")] + public int Refcount; + + + /// /// To be documented. /// public unsafe SDLPalette(int ncolors = default, SDLColor* colors = default, uint version = default, int refcount = default) + { + Ncolors = ncolors; + Colors = colors; + Version = version; + Refcount = refcount; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_PixelFormat")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLPixelFormat + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "format")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Format; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "palette")] + [NativeName(NativeNameType.Type, "SDL_Palette*")] + public unsafe SDLPalette* Palette; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "BitsPerPixel")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte BitsPerPixel; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "BytesPerPixel")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte BytesPerPixel; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding")] + [NativeName(NativeNameType.Type, "Uint8[2]")] + public byte Padding_0; + public byte Padding_1; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Rmask")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Rmask; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Gmask")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Gmask; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Bmask")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Bmask; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Amask")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Amask; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Rloss")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Rloss; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Gloss")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Gloss; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Bloss")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Bloss; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Aloss")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Aloss; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Rshift")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Rshift; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Gshift")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Gshift; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Bshift")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Bshift; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "Ashift")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Ashift; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "refcount")] + [NativeName(NativeNameType.Type, "int")] + public int Refcount; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "next")] + [NativeName(NativeNameType.Type, "SDL_PixelFormat*")] + public unsafe SDLPixelFormat* Next; + + + /// /// To be documented. /// public unsafe SDLPixelFormat(uint format = default, SDLPalette* palette = default, byte bitsPerPixel = default, byte bytesPerPixel = default, byte* padding = default, uint rmask = default, uint gmask = default, uint bmask = default, uint amask = default, byte rloss = default, byte gloss = default, byte bloss = default, byte aloss = default, byte rshift = default, byte gshift = default, byte bshift = default, byte ashift = default, int refcount = default, SDLPixelFormat* next = default) + { + Format = format; + Palette = palette; + BitsPerPixel = bitsPerPixel; + BytesPerPixel = bytesPerPixel; + if (padding != default) + { + Padding_0 = padding[0]; + Padding_1 = padding[1]; + } + Rmask = rmask; + Gmask = gmask; + Bmask = bmask; + Amask = amask; + Rloss = rloss; + Gloss = gloss; + Bloss = bloss; + Aloss = aloss; + Rshift = rshift; + Gshift = gshift; + Bshift = bshift; + Ashift = ashift; + Refcount = refcount; + Next = next; + } + + /// /// To be documented. /// public unsafe SDLPixelFormat(uint format = default, SDLPalette* palette = default, byte bitsPerPixel = default, byte bytesPerPixel = default, Span padding = default, uint rmask = default, uint gmask = default, uint bmask = default, uint amask = default, byte rloss = default, byte gloss = default, byte bloss = default, byte aloss = default, byte rshift = default, byte gshift = default, byte bshift = default, byte ashift = default, int refcount = default, SDLPixelFormat* next = default) + { + Format = format; + Palette = palette; + BitsPerPixel = bitsPerPixel; + BytesPerPixel = bytesPerPixel; + if (padding != default) + { + Padding_0 = padding[0]; + Padding_1 = padding[1]; + } + Rmask = rmask; + Gmask = gmask; + Bmask = bmask; + Amask = amask; + Rloss = rloss; + Gloss = gloss; + Bloss = bloss; + Aloss = aloss; + Rshift = rshift; + Gshift = gshift; + Bshift = bshift; + Ashift = ashift; + Refcount = refcount; + Next = next; + } + + + /// + /// To be documented. + /// + } + + /// + /// The structure that defines a point (integer)
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_Point")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLPoint + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "int")] + public int X; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "int")] + public int Y; + + + /// /// To be documented. /// public unsafe SDLPoint(int x = default, int y = default) + { + X = x; + Y = y; + } + + + } + + /// + /// The structure that defines a point (floating point)
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_FPoint")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLFPoint + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "float")] + public float X; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "float")] + public float Y; + + + /// /// To be documented. /// public unsafe SDLFPoint(float x = default, float y = default) + { + X = x; + Y = y; + } + + + } + + /// + /// A rectangle, with the origin at the upper left (integer).
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_Rect")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLRect + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "int")] + public int X; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "int")] + public int Y; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "w")] + [NativeName(NativeNameType.Type, "int")] + public int W; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "h")] + [NativeName(NativeNameType.Type, "int")] + public int H; + + + /// /// To be documented. /// public unsafe SDLRect(int x = default, int y = default, int w = default, int h = default) + { + X = x; + Y = y; + W = w; + H = h; + } + + + } + + /// + /// A rectangle, with the origin at the upper left (floating point).
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_FRect")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLFRect + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "float")] + public float X; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "float")] + public float Y; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "w")] + [NativeName(NativeNameType.Type, "float")] + public float W; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "h")] + [NativeName(NativeNameType.Type, "float")] + public float H; + + + /// /// To be documented. /// public unsafe SDLFRect(float x = default, float y = default, float w = default, float h = default) + { + X = x; + Y = y; + W = w; + H = h; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "SDL_BlitMap")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLBlitMap + { + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_Surface")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLSurface + { + /// + /// Read-only
+ ///
+ [NativeName(NativeNameType.Field, "flags")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Flags; + + /// + /// Read-only
+ ///
+ [NativeName(NativeNameType.Field, "format")] + [NativeName(NativeNameType.Type, "SDL_PixelFormat*")] + public unsafe SDLPixelFormat* Format; + + /// + /// Read-only
+ ///
+ [NativeName(NativeNameType.Field, "w")] + [NativeName(NativeNameType.Type, "int")] + public int W; + + /// + /// Read-only
+ ///
+ [NativeName(NativeNameType.Field, "h")] + [NativeName(NativeNameType.Type, "int")] + public int H; + + /// + /// Read-only
+ ///
+ [NativeName(NativeNameType.Field, "pitch")] + [NativeName(NativeNameType.Type, "int")] + public int Pitch; + + /// + /// Read-write
+ ///
+ [NativeName(NativeNameType.Field, "pixels")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* Pixels; + + /// + /// Read-write
+ ///
+ [NativeName(NativeNameType.Field, "userdata")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* Userdata; + + /// + /// Read-only
+ ///
+ [NativeName(NativeNameType.Field, "locked")] + [NativeName(NativeNameType.Type, "int")] + public int Locked; + + /// + /// Private
+ ///
+ [NativeName(NativeNameType.Field, "list_blitmap")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* ListBlitmap; + + /// + /// Read-only
+ ///
+ [NativeName(NativeNameType.Field, "clip_rect")] + [NativeName(NativeNameType.Type, "SDL_Rect")] + public SDLRect ClipRect; + + /// + /// Private
+ ///
+ [NativeName(NativeNameType.Field, "map")] + [NativeName(NativeNameType.Type, "SDL_BlitMap*")] + public unsafe SDLBlitMap* Map; + + /// + /// Read-mostly
+ ///
+ [NativeName(NativeNameType.Field, "refcount")] + [NativeName(NativeNameType.Type, "int")] + public int Refcount; + + + /// /// To be documented. /// public unsafe SDLSurface(uint flags = default, SDLPixelFormat* format = default, int w = default, int h = default, int pitch = default, void* pixels = default, void* userdata = default, int locked = default, void* listBlitmap = default, SDLRect clipRect = default, SDLBlitMap* map = default, int refcount = default) + { + Flags = flags; + Format = format; + W = w; + H = h; + Pitch = pitch; + Pixels = pixels; + Userdata = userdata; + Locked = locked; + ListBlitmap = listBlitmap; + ClipRect = clipRect; + Map = map; + Refcount = refcount; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_DisplayMode")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLDisplayMode + { + /// + /// pixel format
+ ///
+ [NativeName(NativeNameType.Field, "format")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Format; + + /// + /// width, in screen coordinates
+ ///
+ [NativeName(NativeNameType.Field, "w")] + [NativeName(NativeNameType.Type, "int")] + public int W; + + /// + /// height, in screen coordinates
+ ///
+ [NativeName(NativeNameType.Field, "h")] + [NativeName(NativeNameType.Type, "int")] + public int H; + + /// + /// refresh rate (or zero for unspecified)
+ ///
+ [NativeName(NativeNameType.Field, "refresh_rate")] + [NativeName(NativeNameType.Type, "int")] + public int RefreshRate; + + /// + /// driver-specific data, initialize to 0
+ ///
+ [NativeName(NativeNameType.Field, "driverdata")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* Driverdata; + + + /// /// To be documented. /// public unsafe SDLDisplayMode(uint format = default, int w = default, int h = default, int refreshRate = default, void* driverdata = default) + { + Format = format; + W = w; + H = h; + RefreshRate = refreshRate; + Driverdata = driverdata; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_Window")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLWindow + { + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_Keysym")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLKeysym + { + /// + /// SDL physical key code - see ::SDL_Scancode for details
+ ///
+ [NativeName(NativeNameType.Field, "scancode")] + [NativeName(NativeNameType.Type, "SDL_Scancode")] + public SDLScancode Scancode; + + /// + /// SDL virtual key code - see ::SDL_Keycode for details
+ ///
+ [NativeName(NativeNameType.Field, "sym")] + [NativeName(NativeNameType.Type, "SDL_Keycode")] + public int Sym; + + /// + /// current key modifiers
+ ///
+ [NativeName(NativeNameType.Field, "mod")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Mod; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "unused")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Unused; + + + /// /// To be documented. /// public unsafe SDLKeysym(SDLScancode scancode = default, int sym = default, ushort mod = default, uint unused = default) + { + Scancode = scancode; + Sym = sym; + Mod = mod; + Unused = unused; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "SDL_Cursor")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLCursor + { + + + } + + /// + /// An SDL_GUID is a 128-bit identifier for an input device that
+ /// identifies that device across runs of SDL programs on the same
+ /// platform. If the device is detached and then re-attached to a
+ /// different port, or if the base system is rebooted, the device
+ /// should still report the same GUID.
+ /// GUIDs are as precise as possible but are not guaranteed to
+ /// distinguish physically distinct but equivalent devices. For
+ /// example, two game controllers from the same vendor with the same
+ /// product ID and revision may have the same GUID.
+ /// GUIDs may be platform-dependent (i.e., the same device may report
+ /// different GUIDs on different operating systems).
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_GUID")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SdlGuid + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "data")] + [NativeName(NativeNameType.Type, "Uint8[16]")] + public byte Data_0; + public byte Data_1; + public byte Data_2; + public byte Data_3; + public byte Data_4; + public byte Data_5; + public byte Data_6; + public byte Data_7; + public byte Data_8; + public byte Data_9; + public byte Data_10; + public byte Data_11; + public byte Data_12; + public byte Data_13; + public byte Data_14; + public byte Data_15; + + + /// /// To be documented. /// public unsafe SdlGuid(byte* data = default) + { + if (data != default) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + Data_6 = data[6]; + Data_7 = data[7]; + Data_8 = data[8]; + Data_9 = data[9]; + Data_10 = data[10]; + Data_11 = data[11]; + Data_12 = data[12]; + Data_13 = data[13]; + Data_14 = data[14]; + Data_15 = data[15]; + } + } + + /// /// To be documented. /// public unsafe SdlGuid(Span data = default) + { + if (data != default) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + Data_6 = data[6]; + Data_7 = data[7]; + Data_8 = data[8]; + Data_9 = data[9]; + Data_10 = data[10]; + Data_11 = data[11]; + Data_12 = data[12]; + Data_13 = data[13]; + Data_14 = data[14]; + Data_15 = data[15]; + } + } + + + /// + /// To be documented. + /// + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "_SDL_Joystick")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLJoystick + { + + + } + + /// + /// The structure that defines an extended virtual joystick description
+ /// The caller must zero the structure and then initialize the version with `SDL_VIRTUAL_JOYSTICK_DESC_VERSION` before passing it to SDL_JoystickAttachVirtualEx()
+ /// All other elements of this structure are optional and can be left 0.
+ ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_VirtualJoystickDesc")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLVirtualJoystickDesc + { + /// + /// `SDL_VIRTUAL_JOYSTICK_DESC_VERSION`
+ ///
+ [NativeName(NativeNameType.Field, "version")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Version; + + /// + /// `SDL_JoystickType`
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Type; + + /// + /// the number of axes on this joystick
+ ///
+ [NativeName(NativeNameType.Field, "naxes")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Naxes; + + /// + /// the number of buttons on this joystick
+ ///
+ [NativeName(NativeNameType.Field, "nbuttons")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Nbuttons; + + /// + /// the number of hats on this joystick
+ ///
+ [NativeName(NativeNameType.Field, "nhats")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Nhats; + + /// + /// the USB vendor ID of this joystick
+ ///
+ [NativeName(NativeNameType.Field, "vendor_id")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort VendorId; + + /// + /// the USB product ID of this joystick
+ ///
+ [NativeName(NativeNameType.Field, "product_id")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort ProductId; + + /// + /// unused
+ ///
+ [NativeName(NativeNameType.Field, "padding")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Padding; + + /// + /// A mask of which buttons are valid for this controller
+ /// e.g. (1
+ /// <
+ /// <
+ /// SDL_CONTROLLER_BUTTON_A)
+ ///
+ [NativeName(NativeNameType.Field, "button_mask")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint ButtonMask; + + /// + /// A mask of which axes are valid for this controller
+ /// e.g. (1
+ /// <
+ /// <
+ /// SDL_CONTROLLER_AXIS_LEFTX)
+ ///
+ [NativeName(NativeNameType.Field, "axis_mask")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint AxisMask; + + /// + /// the name of the joystick
+ ///
+ [NativeName(NativeNameType.Field, "name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Name; + + /// + /// User data pointer passed to callbacks
+ ///
+ [NativeName(NativeNameType.Field, "userdata")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* Userdata; + + /// + /// Called when the joystick state should be updated
+ ///
+ [NativeName(NativeNameType.Field, "Update")] + [NativeName(NativeNameType.Type, "void (*)(void* userdata)*")] + public unsafe void* Update; + + /// + /// Called when the player index is set
+ ///
+ [NativeName(NativeNameType.Field, "SetPlayerIndex")] + [NativeName(NativeNameType.Type, "void (*)(void* userdata, int player_index)*")] + public unsafe void* SetPlayerIndex; + + /// + /// Implements SDL_JoystickRumble()
+ ///
+ [NativeName(NativeNameType.Field, "Rumble")] + [NativeName(NativeNameType.Type, "int (*)(void* userdata, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble)*")] + public unsafe void* Rumble; + + /// + /// Implements SDL_JoystickRumbleTriggers()
+ ///
+ [NativeName(NativeNameType.Field, "RumbleTriggers")] + [NativeName(NativeNameType.Type, "int (*)(void* userdata, Uint16 left_rumble, Uint16 right_rumble)*")] + public unsafe void* RumbleTriggers; + + /// + /// Implements SDL_JoystickSetLED()
+ ///
+ [NativeName(NativeNameType.Field, "SetLED")] + [NativeName(NativeNameType.Type, "int (*)(void* userdata, Uint8 red, Uint8 green, Uint8 blue)*")] + public unsafe void* SetLED; + + /// + /// Implements SDL_JoystickSendEffect()
+ ///
+ [NativeName(NativeNameType.Field, "SendEffect")] + [NativeName(NativeNameType.Type, "int (*)(void* userdata, const void* data, int size)*")] + public unsafe void* SendEffect; + + + /// /// To be documented. /// public unsafe SDLVirtualJoystickDesc(ushort version = default, ushort type = default, ushort naxes = default, ushort nbuttons = default, ushort nhats = default, ushort vendorId = default, ushort productId = default, ushort padding = default, uint buttonMask = default, uint axisMask = default, byte* name = default, void* userdata = default, delegate* update = default, delegate* setPlayerIndex = default, delegate* rumble = default, delegate* rumbleTriggers = default, delegate* setLed = default, delegate* sendEffect = default) + { + Version = version; + Type = type; + Naxes = naxes; + Nbuttons = nbuttons; + Nhats = nhats; + VendorId = vendorId; + ProductId = productId; + Padding = padding; + ButtonMask = buttonMask; + AxisMask = axisMask; + Name = name; + Userdata = userdata; + Update = (void*)update; + SetPlayerIndex = (void*)setPlayerIndex; + Rumble = (void*)rumble; + RumbleTriggers = (void*)rumbleTriggers; + SetLED = (void*)setLed; + SendEffect = (void*)sendEffect; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + /// In order to use these functions, SDL_Init() must have been called
+ /// with the ::SDL_INIT_SENSOR flag. This causes SDL to scan the system
+ /// for sensors, and load appropriate drivers.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "_SDL_Sensor")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLSensor + { + + + } + + /// + /// The gamecontroller structure used to identify an SDL game controller
+ ///
+ [NativeName(NativeNameType.StructOrClass, "_SDL_GameController")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLGameController + { + + + } + + /// + /// Get the SDL joystick layer binding for this controller button/axis mapping
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_GameControllerButtonBind")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLGameControllerButtonBind + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Explicit)] + public partial struct ValueUnion + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Sequential)] + public partial struct HatUnion + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "hat")] + [NativeName(NativeNameType.Type, "int")] + public int Hat; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "hat_mask")] + [NativeName(NativeNameType.Type, "int")] + public int HatMask; + + + /// /// To be documented. /// public unsafe HatUnion(int hat = default, int hatMask = default) + { + Hat = hat; + HatMask = hatMask; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "button")] + [NativeName(NativeNameType.Type, "int")] + [FieldOffset(0)] + public int Button; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "axis")] + [NativeName(NativeNameType.Type, "int")] + [FieldOffset(0)] + public int Axis; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "hat")] + [NativeName(NativeNameType.Type, "")] + [FieldOffset(0)] + public HatUnion Hat; + + + /// /// To be documented. /// public unsafe ValueUnion(int button = default, int axis = default, HatUnion hat = default) + { + Button = button; + Axis = axis; + Hat = hat; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "bindType")] + [NativeName(NativeNameType.Type, "SDL_GameControllerBindType")] + public SDLGameControllerBindType BindType; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "value")] + [NativeName(NativeNameType.Type, "")] + public ValueUnion Union; + + + /// /// To be documented. /// public unsafe SDLGameControllerButtonBind(SDLGameControllerBindType bindType = default, ValueUnion union = default) + { + BindType = bindType; + Union = union; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "SDL_Finger")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLFinger + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "id")] + [NativeName(NativeNameType.Type, "SDL_FingerID")] + public long Id; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "float")] + public float X; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "float")] + public float Y; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "pressure")] + [NativeName(NativeNameType.Type, "float")] + public float Pressure; + + + /// /// To be documented. /// public unsafe SDLFinger(long id = default, float x = default, float y = default, float pressure = default) + { + Id = id; + X = x; + Y = y; + Pressure = pressure; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_CommonEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLCommonEvent + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + + /// /// To be documented. /// public unsafe SDLCommonEvent(uint type = default, uint timestamp = default) + { + Type = type; + Timestamp = timestamp; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_DisplayEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLDisplayEvent + { + /// + /// ::SDL_DISPLAYEVENT
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The associated display index
+ ///
+ [NativeName(NativeNameType.Field, "display")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Display; + + /// + /// ::SDL_DisplayEventID
+ ///
+ [NativeName(NativeNameType.Field, "event")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Event; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding1")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding1; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding2")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding2; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding3")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding3; + + /// + /// event dependent data
+ ///
+ [NativeName(NativeNameType.Field, "data1")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Data1; + + + /// /// To be documented. /// public unsafe SDLDisplayEvent(uint type = default, uint timestamp = default, uint display = default, byte evnt = default, byte padding1 = default, byte padding2 = default, byte padding3 = default, int data1 = default) + { + Type = type; + Timestamp = timestamp; + Display = display; + Event = evnt; + Padding1 = padding1; + Padding2 = padding2; + Padding3 = padding3; + Data1 = data1; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_WindowEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLWindowEvent + { + /// + /// ::SDL_WINDOWEVENT
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The associated window
+ ///
+ [NativeName(NativeNameType.Field, "windowID")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint WindowID; + + /// + /// ::SDL_WindowEventID
+ ///
+ [NativeName(NativeNameType.Field, "event")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Event; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding1")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding1; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding2")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding2; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding3")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding3; + + /// + /// event dependent data
+ ///
+ [NativeName(NativeNameType.Field, "data1")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Data1; + + /// + /// event dependent data
+ ///
+ [NativeName(NativeNameType.Field, "data2")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Data2; + + + /// /// To be documented. /// public unsafe SDLWindowEvent(uint type = default, uint timestamp = default, uint windowID = default, byte evnt = default, byte padding1 = default, byte padding2 = default, byte padding3 = default, int data1 = default, int data2 = default) + { + Type = type; + Timestamp = timestamp; + WindowID = windowID; + Event = evnt; + Padding1 = padding1; + Padding2 = padding2; + Padding3 = padding3; + Data1 = data1; + Data2 = data2; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_KeyboardEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLKeyboardEvent + { + /// + /// ::SDL_KEYDOWN or ::SDL_KEYUP
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The window with keyboard focus, if any
+ ///
+ [NativeName(NativeNameType.Field, "windowID")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint WindowID; + + /// + /// ::SDL_PRESSED or ::SDL_RELEASED
+ ///
+ [NativeName(NativeNameType.Field, "state")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte State; + + /// + /// Non-zero if this is a key repeat
+ ///
+ [NativeName(NativeNameType.Field, "repeat")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Repeat; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding2")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding2; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding3")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding3; + + /// + /// The key that was pressed or released
+ ///
+ [NativeName(NativeNameType.Field, "keysym")] + [NativeName(NativeNameType.Type, "SDL_Keysym")] + public SDLKeysym Keysym; + + + /// /// To be documented. /// public unsafe SDLKeyboardEvent(uint type = default, uint timestamp = default, uint windowID = default, byte state = default, byte repeat = default, byte padding2 = default, byte padding3 = default, SDLKeysym keysym = default) + { + Type = type; + Timestamp = timestamp; + WindowID = windowID; + State = state; + Repeat = repeat; + Padding2 = padding2; + Padding3 = padding3; + Keysym = keysym; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_TextEditingEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLTextEditingEvent + { + /// + /// ::SDL_TEXTEDITING
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The window with keyboard focus, if any
+ ///
+ [NativeName(NativeNameType.Field, "windowID")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint WindowID; + + /// + /// The editing text
+ ///
+ [NativeName(NativeNameType.Field, "text")] + [NativeName(NativeNameType.Type, "char[32]")] + public byte Text_0; + public byte Text_1; + public byte Text_2; + public byte Text_3; + public byte Text_4; + public byte Text_5; + public byte Text_6; + public byte Text_7; + public byte Text_8; + public byte Text_9; + public byte Text_10; + public byte Text_11; + public byte Text_12; + public byte Text_13; + public byte Text_14; + public byte Text_15; + public byte Text_16; + public byte Text_17; + public byte Text_18; + public byte Text_19; + public byte Text_20; + public byte Text_21; + public byte Text_22; + public byte Text_23; + public byte Text_24; + public byte Text_25; + public byte Text_26; + public byte Text_27; + public byte Text_28; + public byte Text_29; + public byte Text_30; + public byte Text_31; + + /// + /// The start cursor of selected editing text
+ ///
+ [NativeName(NativeNameType.Field, "start")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Start; + + /// + /// The length of selected editing text
+ ///
+ [NativeName(NativeNameType.Field, "length")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Length; + + + /// /// To be documented. /// public unsafe SDLTextEditingEvent(uint type = default, uint timestamp = default, uint windowID = default, byte* text = default, int start = default, int length = default) + { + Type = type; + Timestamp = timestamp; + WindowID = windowID; + if (text != default) + { + Text_0 = text[0]; + Text_1 = text[1]; + Text_2 = text[2]; + Text_3 = text[3]; + Text_4 = text[4]; + Text_5 = text[5]; + Text_6 = text[6]; + Text_7 = text[7]; + Text_8 = text[8]; + Text_9 = text[9]; + Text_10 = text[10]; + Text_11 = text[11]; + Text_12 = text[12]; + Text_13 = text[13]; + Text_14 = text[14]; + Text_15 = text[15]; + Text_16 = text[16]; + Text_17 = text[17]; + Text_18 = text[18]; + Text_19 = text[19]; + Text_20 = text[20]; + Text_21 = text[21]; + Text_22 = text[22]; + Text_23 = text[23]; + Text_24 = text[24]; + Text_25 = text[25]; + Text_26 = text[26]; + Text_27 = text[27]; + Text_28 = text[28]; + Text_29 = text[29]; + Text_30 = text[30]; + Text_31 = text[31]; + } + Start = start; + Length = length; + } + + /// /// To be documented. /// public unsafe SDLTextEditingEvent(uint type = default, uint timestamp = default, uint windowID = default, Span text = default, int start = default, int length = default) + { + Type = type; + Timestamp = timestamp; + WindowID = windowID; + if (text != default) + { + Text_0 = text[0]; + Text_1 = text[1]; + Text_2 = text[2]; + Text_3 = text[3]; + Text_4 = text[4]; + Text_5 = text[5]; + Text_6 = text[6]; + Text_7 = text[7]; + Text_8 = text[8]; + Text_9 = text[9]; + Text_10 = text[10]; + Text_11 = text[11]; + Text_12 = text[12]; + Text_13 = text[13]; + Text_14 = text[14]; + Text_15 = text[15]; + Text_16 = text[16]; + Text_17 = text[17]; + Text_18 = text[18]; + Text_19 = text[19]; + Text_20 = text[20]; + Text_21 = text[21]; + Text_22 = text[22]; + Text_23 = text[23]; + Text_24 = text[24]; + Text_25 = text[25]; + Text_26 = text[26]; + Text_27 = text[27]; + Text_28 = text[28]; + Text_29 = text[29]; + Text_30 = text[30]; + Text_31 = text[31]; + } + Start = start; + Length = length; + } + + + /// + /// The editing text
+ ///
+ } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_TextEditingExtEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLTextEditingExtEvent + { + /// + /// ::SDL_TEXTEDITING_EXT
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The window with keyboard focus, if any
+ ///
+ [NativeName(NativeNameType.Field, "windowID")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint WindowID; + + /// + /// The editing text, which should be freed with SDL_free(), and will not be NULL
+ ///
+ [NativeName(NativeNameType.Field, "text")] + [NativeName(NativeNameType.Type, "char*")] + public unsafe byte* Text; + + /// + /// The start cursor of selected editing text
+ ///
+ [NativeName(NativeNameType.Field, "start")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Start; + + /// + /// The length of selected editing text
+ ///
+ [NativeName(NativeNameType.Field, "length")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Length; + + + /// /// To be documented. /// public unsafe SDLTextEditingExtEvent(uint type = default, uint timestamp = default, uint windowID = default, byte* text = default, int start = default, int length = default) + { + Type = type; + Timestamp = timestamp; + WindowID = windowID; + Text = text; + Start = start; + Length = length; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_TextInputEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLTextInputEvent + { + /// + /// ::SDL_TEXTINPUT
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The window with keyboard focus, if any
+ ///
+ [NativeName(NativeNameType.Field, "windowID")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint WindowID; + + /// + /// The input text
+ ///
+ [NativeName(NativeNameType.Field, "text")] + [NativeName(NativeNameType.Type, "char[32]")] + public byte Text_0; + public byte Text_1; + public byte Text_2; + public byte Text_3; + public byte Text_4; + public byte Text_5; + public byte Text_6; + public byte Text_7; + public byte Text_8; + public byte Text_9; + public byte Text_10; + public byte Text_11; + public byte Text_12; + public byte Text_13; + public byte Text_14; + public byte Text_15; + public byte Text_16; + public byte Text_17; + public byte Text_18; + public byte Text_19; + public byte Text_20; + public byte Text_21; + public byte Text_22; + public byte Text_23; + public byte Text_24; + public byte Text_25; + public byte Text_26; + public byte Text_27; + public byte Text_28; + public byte Text_29; + public byte Text_30; + public byte Text_31; + + + /// /// To be documented. /// public unsafe SDLTextInputEvent(uint type = default, uint timestamp = default, uint windowID = default, byte* text = default) + { + Type = type; + Timestamp = timestamp; + WindowID = windowID; + if (text != default) + { + Text_0 = text[0]; + Text_1 = text[1]; + Text_2 = text[2]; + Text_3 = text[3]; + Text_4 = text[4]; + Text_5 = text[5]; + Text_6 = text[6]; + Text_7 = text[7]; + Text_8 = text[8]; + Text_9 = text[9]; + Text_10 = text[10]; + Text_11 = text[11]; + Text_12 = text[12]; + Text_13 = text[13]; + Text_14 = text[14]; + Text_15 = text[15]; + Text_16 = text[16]; + Text_17 = text[17]; + Text_18 = text[18]; + Text_19 = text[19]; + Text_20 = text[20]; + Text_21 = text[21]; + Text_22 = text[22]; + Text_23 = text[23]; + Text_24 = text[24]; + Text_25 = text[25]; + Text_26 = text[26]; + Text_27 = text[27]; + Text_28 = text[28]; + Text_29 = text[29]; + Text_30 = text[30]; + Text_31 = text[31]; + } + } + + /// /// To be documented. /// public unsafe SDLTextInputEvent(uint type = default, uint timestamp = default, uint windowID = default, Span text = default) + { + Type = type; + Timestamp = timestamp; + WindowID = windowID; + if (text != default) + { + Text_0 = text[0]; + Text_1 = text[1]; + Text_2 = text[2]; + Text_3 = text[3]; + Text_4 = text[4]; + Text_5 = text[5]; + Text_6 = text[6]; + Text_7 = text[7]; + Text_8 = text[8]; + Text_9 = text[9]; + Text_10 = text[10]; + Text_11 = text[11]; + Text_12 = text[12]; + Text_13 = text[13]; + Text_14 = text[14]; + Text_15 = text[15]; + Text_16 = text[16]; + Text_17 = text[17]; + Text_18 = text[18]; + Text_19 = text[19]; + Text_20 = text[20]; + Text_21 = text[21]; + Text_22 = text[22]; + Text_23 = text[23]; + Text_24 = text[24]; + Text_25 = text[25]; + Text_26 = text[26]; + Text_27 = text[27]; + Text_28 = text[28]; + Text_29 = text[29]; + Text_30 = text[30]; + Text_31 = text[31]; + } + } + + + /// + /// The input text
+ ///
+ } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_MouseMotionEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLMouseMotionEvent + { + /// + /// ::SDL_MOUSEMOTION
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The window with mouse focus, if any
+ ///
+ [NativeName(NativeNameType.Field, "windowID")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint WindowID; + + /// + /// The mouse instance id, or SDL_TOUCH_MOUSEID
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Which; + + /// + /// The current button state
+ ///
+ [NativeName(NativeNameType.Field, "state")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint State; + + /// + /// X coordinate, relative to window
+ ///
+ [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "Sint32")] + public int X; + + /// + /// Y coordinate, relative to window
+ ///
+ [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Y; + + /// + /// The relative motion in the X direction
+ ///
+ [NativeName(NativeNameType.Field, "xrel")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Xrel; + + /// + /// The relative motion in the Y direction
+ ///
+ [NativeName(NativeNameType.Field, "yrel")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Yrel; + + + /// /// To be documented. /// public unsafe SDLMouseMotionEvent(uint type = default, uint timestamp = default, uint windowID = default, uint which = default, uint state = default, int x = default, int y = default, int xrel = default, int yrel = default) + { + Type = type; + Timestamp = timestamp; + WindowID = windowID; + Which = which; + State = state; + X = x; + Y = y; + Xrel = xrel; + Yrel = yrel; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_MouseButtonEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLMouseButtonEvent + { + /// + /// ::SDL_MOUSEBUTTONDOWN or ::SDL_MOUSEBUTTONUP
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The window with mouse focus, if any
+ ///
+ [NativeName(NativeNameType.Field, "windowID")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint WindowID; + + /// + /// The mouse instance id, or SDL_TOUCH_MOUSEID
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Which; + + /// + /// The mouse button index
+ ///
+ [NativeName(NativeNameType.Field, "button")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Button; + + /// + /// ::SDL_PRESSED or ::SDL_RELEASED
+ ///
+ [NativeName(NativeNameType.Field, "state")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte State; + + /// + /// 1 for single-click, 2 for double-click, etc.
+ ///
+ [NativeName(NativeNameType.Field, "clicks")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Clicks; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding1")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding1; + + /// + /// X coordinate, relative to window
+ ///
+ [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "Sint32")] + public int X; + + /// + /// Y coordinate, relative to window
+ ///
+ [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Y; + + + /// /// To be documented. /// public unsafe SDLMouseButtonEvent(uint type = default, uint timestamp = default, uint windowID = default, uint which = default, byte button = default, byte state = default, byte clicks = default, byte padding1 = default, int x = default, int y = default) + { + Type = type; + Timestamp = timestamp; + WindowID = windowID; + Which = which; + Button = button; + State = state; + Clicks = clicks; + Padding1 = padding1; + X = x; + Y = y; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_MouseWheelEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLMouseWheelEvent + { + /// + /// ::SDL_MOUSEWHEEL
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The window with mouse focus, if any
+ ///
+ [NativeName(NativeNameType.Field, "windowID")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint WindowID; + + /// + /// The mouse instance id, or SDL_TOUCH_MOUSEID
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Which; + + /// + /// The amount scrolled horizontally, positive to the right and negative to the left
+ ///
+ [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "Sint32")] + public int X; + + /// + /// The amount scrolled vertically, positive away from the user and negative toward the user
+ ///
+ [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Y; + + /// + /// Set to one of the SDL_MOUSEWHEEL_* defines. When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back
+ ///
+ [NativeName(NativeNameType.Field, "direction")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Direction; + + /// + /// The amount scrolled horizontally, positive to the right and negative to the left, with float precision (added in 2.0.18)
+ ///
+ [NativeName(NativeNameType.Field, "preciseX")] + [NativeName(NativeNameType.Type, "float")] + public float PreciseX; + + /// + /// The amount scrolled vertically, positive away from the user and negative toward the user, with float precision (added in 2.0.18)
+ ///
+ [NativeName(NativeNameType.Field, "preciseY")] + [NativeName(NativeNameType.Type, "float")] + public float PreciseY; + + /// + /// X coordinate, relative to window (added in 2.26.0)
+ ///
+ [NativeName(NativeNameType.Field, "mouseX")] + [NativeName(NativeNameType.Type, "Sint32")] + public int MouseX; + + /// + /// Y coordinate, relative to window (added in 2.26.0)
+ ///
+ [NativeName(NativeNameType.Field, "mouseY")] + [NativeName(NativeNameType.Type, "Sint32")] + public int MouseY; + + + /// /// To be documented. /// public unsafe SDLMouseWheelEvent(uint type = default, uint timestamp = default, uint windowID = default, uint which = default, int x = default, int y = default, uint direction = default, float preciseX = default, float preciseY = default, int mouseX = default, int mouseY = default) + { + Type = type; + Timestamp = timestamp; + WindowID = windowID; + Which = which; + X = x; + Y = y; + Direction = direction; + PreciseX = preciseX; + PreciseY = preciseY; + MouseX = mouseX; + MouseY = mouseY; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_JoyAxisEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLJoyAxisEvent + { + /// + /// ::SDL_JOYAXISMOTION
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The joystick instance id
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "SDL_JoystickID")] + public int Which; + + /// + /// The joystick axis index
+ ///
+ [NativeName(NativeNameType.Field, "axis")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Axis; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding1")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding1; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding2")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding2; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding3")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding3; + + /// + /// The axis value (range: -32768 to 32767)
+ ///
+ [NativeName(NativeNameType.Field, "value")] + [NativeName(NativeNameType.Type, "Sint16")] + public short Value; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding4")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Padding4; + + + /// /// To be documented. /// public unsafe SDLJoyAxisEvent(uint type = default, uint timestamp = default, int which = default, byte axis = default, byte padding1 = default, byte padding2 = default, byte padding3 = default, short value = default, ushort padding4 = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + Axis = axis; + Padding1 = padding1; + Padding2 = padding2; + Padding3 = padding3; + Value = value; + Padding4 = padding4; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_JoyBallEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLJoyBallEvent + { + /// + /// ::SDL_JOYBALLMOTION
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The joystick instance id
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "SDL_JoystickID")] + public int Which; + + /// + /// The joystick trackball index
+ ///
+ [NativeName(NativeNameType.Field, "ball")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Ball; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding1")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding1; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding2")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding2; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding3")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding3; + + /// + /// The relative motion in the X direction
+ ///
+ [NativeName(NativeNameType.Field, "xrel")] + [NativeName(NativeNameType.Type, "Sint16")] + public short Xrel; + + /// + /// The relative motion in the Y direction
+ ///
+ [NativeName(NativeNameType.Field, "yrel")] + [NativeName(NativeNameType.Type, "Sint16")] + public short Yrel; + + + /// /// To be documented. /// public unsafe SDLJoyBallEvent(uint type = default, uint timestamp = default, int which = default, byte ball = default, byte padding1 = default, byte padding2 = default, byte padding3 = default, short xrel = default, short yrel = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + Ball = ball; + Padding1 = padding1; + Padding2 = padding2; + Padding3 = padding3; + Xrel = xrel; + Yrel = yrel; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_JoyHatEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLJoyHatEvent + { + /// + /// ::SDL_JOYHATMOTION
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The joystick instance id
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "SDL_JoystickID")] + public int Which; + + /// + /// The joystick hat index
+ ///
+ [NativeName(NativeNameType.Field, "hat")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Hat; + + /// + /// The hat position value.
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// Note that zero means the POV is centered.
+ ///
+ [NativeName(NativeNameType.Field, "value")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Value; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding1")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding1; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding2")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding2; + + + /// /// To be documented. /// public unsafe SDLJoyHatEvent(uint type = default, uint timestamp = default, int which = default, byte hat = default, byte value = default, byte padding1 = default, byte padding2 = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + Hat = hat; + Value = value; + Padding1 = padding1; + Padding2 = padding2; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_JoyButtonEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLJoyButtonEvent + { + /// + /// ::SDL_JOYBUTTONDOWN or ::SDL_JOYBUTTONUP
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The joystick instance id
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "SDL_JoystickID")] + public int Which; + + /// + /// The joystick button index
+ ///
+ [NativeName(NativeNameType.Field, "button")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Button; + + /// + /// ::SDL_PRESSED or ::SDL_RELEASED
+ ///
+ [NativeName(NativeNameType.Field, "state")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte State; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding1")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding1; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding2")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding2; + + + /// /// To be documented. /// public unsafe SDLJoyButtonEvent(uint type = default, uint timestamp = default, int which = default, byte button = default, byte state = default, byte padding1 = default, byte padding2 = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + Button = button; + State = state; + Padding1 = padding1; + Padding2 = padding2; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_JoyDeviceEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLJoyDeviceEvent + { + /// + /// ::SDL_JOYDEVICEADDED or ::SDL_JOYDEVICEREMOVED
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The joystick device index for the ADDED event, instance id for the REMOVED event
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Which; + + + /// /// To be documented. /// public unsafe SDLJoyDeviceEvent(uint type = default, uint timestamp = default, int which = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_JoyBatteryEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLJoyBatteryEvent + { + /// + /// ::SDL_JOYBATTERYUPDATED
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The joystick instance id
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "SDL_JoystickID")] + public int Which; + + /// + /// The joystick battery level
+ ///
+ [NativeName(NativeNameType.Field, "level")] + [NativeName(NativeNameType.Type, "SDL_JoystickPowerLevel")] + public SDLJoystickPowerLevel Level; + + + /// /// To be documented. /// public unsafe SDLJoyBatteryEvent(uint type = default, uint timestamp = default, int which = default, SDLJoystickPowerLevel level = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + Level = level; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_ControllerAxisEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLControllerAxisEvent + { + /// + /// ::SDL_CONTROLLERAXISMOTION
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The joystick instance id
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "SDL_JoystickID")] + public int Which; + + /// + /// The controller axis (SDL_GameControllerAxis)
+ ///
+ [NativeName(NativeNameType.Field, "axis")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Axis; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding1")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding1; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding2")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding2; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding3")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding3; + + /// + /// The axis value (range: -32768 to 32767)
+ ///
+ [NativeName(NativeNameType.Field, "value")] + [NativeName(NativeNameType.Type, "Sint16")] + public short Value; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding4")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Padding4; + + + /// /// To be documented. /// public unsafe SDLControllerAxisEvent(uint type = default, uint timestamp = default, int which = default, byte axis = default, byte padding1 = default, byte padding2 = default, byte padding3 = default, short value = default, ushort padding4 = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + Axis = axis; + Padding1 = padding1; + Padding2 = padding2; + Padding3 = padding3; + Value = value; + Padding4 = padding4; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_ControllerButtonEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLControllerButtonEvent + { + /// + /// ::SDL_CONTROLLERBUTTONDOWN or ::SDL_CONTROLLERBUTTONUP
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The joystick instance id
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "SDL_JoystickID")] + public int Which; + + /// + /// The controller button (SDL_GameControllerButton)
+ ///
+ [NativeName(NativeNameType.Field, "button")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Button; + + /// + /// ::SDL_PRESSED or ::SDL_RELEASED
+ ///
+ [NativeName(NativeNameType.Field, "state")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte State; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding1")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding1; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding2")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding2; + + + /// /// To be documented. /// public unsafe SDLControllerButtonEvent(uint type = default, uint timestamp = default, int which = default, byte button = default, byte state = default, byte padding1 = default, byte padding2 = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + Button = button; + State = state; + Padding1 = padding1; + Padding2 = padding2; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_ControllerDeviceEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLControllerDeviceEvent + { + /// + /// ::SDL_CONTROLLERDEVICEADDED, ::SDL_CONTROLLERDEVICEREMOVED, or ::SDL_CONTROLLERDEVICEREMAPPED
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The joystick device index for the ADDED event, instance id for the REMOVED or REMAPPED event
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Which; + + + /// /// To be documented. /// public unsafe SDLControllerDeviceEvent(uint type = default, uint timestamp = default, int which = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_ControllerTouchpadEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLControllerTouchpadEvent + { + /// + /// ::SDL_CONTROLLERTOUCHPADDOWN or ::SDL_CONTROLLERTOUCHPADMOTION or ::SDL_CONTROLLERTOUCHPADUP
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The joystick instance id
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "SDL_JoystickID")] + public int Which; + + /// + /// The index of the touchpad
+ ///
+ [NativeName(NativeNameType.Field, "touchpad")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Touchpad; + + /// + /// The index of the finger on the touchpad
+ ///
+ [NativeName(NativeNameType.Field, "finger")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Finger; + + /// + /// Normalized in the range 0...1 with 0 being on the left
+ ///
+ [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "float")] + public float X; + + /// + /// Normalized in the range 0...1 with 0 being at the top
+ ///
+ [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "float")] + public float Y; + + /// + /// Normalized in the range 0...1
+ ///
+ [NativeName(NativeNameType.Field, "pressure")] + [NativeName(NativeNameType.Type, "float")] + public float Pressure; + + + /// /// To be documented. /// public unsafe SDLControllerTouchpadEvent(uint type = default, uint timestamp = default, int which = default, int touchpad = default, int finger = default, float x = default, float y = default, float pressure = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + Touchpad = touchpad; + Finger = finger; + X = x; + Y = y; + Pressure = pressure; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_ControllerSensorEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLControllerSensorEvent + { + /// + /// ::SDL_CONTROLLERSENSORUPDATE
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The joystick instance id
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "SDL_JoystickID")] + public int Which; + + /// + /// The type of the sensor, one of the values of ::SDL_SensorType
+ ///
+ [NativeName(NativeNameType.Field, "sensor")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Sensor; + + /// + /// Up to 3 values from the sensor, as defined in SDL_sensor.h
+ ///
+ [NativeName(NativeNameType.Field, "data")] + [NativeName(NativeNameType.Type, "float[3]")] + public float Data_0; + public float Data_1; + public float Data_2; + + /// + /// The timestamp of the sensor reading in microseconds, if the hardware provides this information.
+ ///
+ [NativeName(NativeNameType.Field, "timestamp_us")] + [NativeName(NativeNameType.Type, "Uint64")] + public ulong TimestampUs; + + + /// /// To be documented. /// public unsafe SDLControllerSensorEvent(uint type = default, uint timestamp = default, int which = default, int sensor = default, float* data = default, ulong timestampUs = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + Sensor = sensor; + if (data != default) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + } + TimestampUs = timestampUs; + } + + /// /// To be documented. /// public unsafe SDLControllerSensorEvent(uint type = default, uint timestamp = default, int which = default, int sensor = default, Span data = default, ulong timestampUs = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + Sensor = sensor; + if (data != default) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + } + TimestampUs = timestampUs; + } + + + /// + /// Up to 3 values from the sensor, as defined in SDL_sensor.h
+ ///
+ } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_AudioDeviceEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLAudioDeviceEvent + { + /// + /// ::SDL_AUDIODEVICEADDED, or ::SDL_AUDIODEVICEREMOVED
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The audio device index for the ADDED event (valid until next SDL_GetNumAudioDevices() call), SDL_AudioDeviceID for the REMOVED event
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Which; + + /// + /// zero if an output device, non-zero if a capture device.
+ ///
+ [NativeName(NativeNameType.Field, "iscapture")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Iscapture; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding1")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding1; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding2")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding2; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding3")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Padding3; + + + /// /// To be documented. /// public unsafe SDLAudioDeviceEvent(uint type = default, uint timestamp = default, uint which = default, byte iscapture = default, byte padding1 = default, byte padding2 = default, byte padding3 = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + Iscapture = iscapture; + Padding1 = padding1; + Padding2 = padding2; + Padding3 = padding3; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_TouchFingerEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLTouchFingerEvent + { + /// + /// ::SDL_FINGERMOTION or ::SDL_FINGERDOWN or ::SDL_FINGERUP
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The touch device id
+ ///
+ [NativeName(NativeNameType.Field, "touchId")] + [NativeName(NativeNameType.Type, "SDL_TouchID")] + public long TouchId; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "fingerId")] + [NativeName(NativeNameType.Type, "SDL_FingerID")] + public long FingerId; + + /// + /// Normalized in the range 0...1
+ ///
+ [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "float")] + public float X; + + /// + /// Normalized in the range 0...1
+ ///
+ [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "float")] + public float Y; + + /// + /// Normalized in the range -1...1
+ ///
+ [NativeName(NativeNameType.Field, "dx")] + [NativeName(NativeNameType.Type, "float")] + public float Dx; + + /// + /// Normalized in the range -1...1
+ ///
+ [NativeName(NativeNameType.Field, "dy")] + [NativeName(NativeNameType.Type, "float")] + public float Dy; + + /// + /// Normalized in the range 0...1
+ ///
+ [NativeName(NativeNameType.Field, "pressure")] + [NativeName(NativeNameType.Type, "float")] + public float Pressure; + + /// + /// The window underneath the finger, if any
+ ///
+ [NativeName(NativeNameType.Field, "windowID")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint WindowID; + + + /// /// To be documented. /// public unsafe SDLTouchFingerEvent(uint type = default, uint timestamp = default, long touchId = default, long fingerId = default, float x = default, float y = default, float dx = default, float dy = default, float pressure = default, uint windowID = default) + { + Type = type; + Timestamp = timestamp; + TouchId = touchId; + FingerId = fingerId; + X = x; + Y = y; + Dx = dx; + Dy = dy; + Pressure = pressure; + WindowID = windowID; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_MultiGestureEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLMultiGestureEvent + { + /// + /// ::SDL_MULTIGESTURE
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The touch device id
+ ///
+ [NativeName(NativeNameType.Field, "touchId")] + [NativeName(NativeNameType.Type, "SDL_TouchID")] + public long TouchId; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "dTheta")] + [NativeName(NativeNameType.Type, "float")] + public float DTheta; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "dDist")] + [NativeName(NativeNameType.Type, "float")] + public float DDist; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "float")] + public float X; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "float")] + public float Y; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "numFingers")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort NumFingers; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "padding")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Padding; + + + /// /// To be documented. /// public unsafe SDLMultiGestureEvent(uint type = default, uint timestamp = default, long touchId = default, float dTheta = default, float dDist = default, float x = default, float y = default, ushort numFingers = default, ushort padding = default) + { + Type = type; + Timestamp = timestamp; + TouchId = touchId; + DTheta = dTheta; + DDist = dDist; + X = x; + Y = y; + NumFingers = numFingers; + Padding = padding; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_DollarGestureEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLDollarGestureEvent + { + /// + /// ::SDL_DOLLARGESTURE or ::SDL_DOLLARRECORD
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The touch device id
+ ///
+ [NativeName(NativeNameType.Field, "touchId")] + [NativeName(NativeNameType.Type, "SDL_TouchID")] + public long TouchId; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "gestureId")] + [NativeName(NativeNameType.Type, "SDL_GestureID")] + public long GestureId; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "numFingers")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint NumFingers; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "error")] + [NativeName(NativeNameType.Type, "float")] + public float Error; + + /// + /// Normalized center of gesture
+ ///
+ [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "float")] + public float X; + + /// + /// Normalized center of gesture
+ ///
+ [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "float")] + public float Y; + + + /// /// To be documented. /// public unsafe SDLDollarGestureEvent(uint type = default, uint timestamp = default, long touchId = default, long gestureId = default, uint numFingers = default, float error = default, float x = default, float y = default) + { + Type = type; + Timestamp = timestamp; + TouchId = touchId; + GestureId = gestureId; + NumFingers = numFingers; + Error = error; + X = x; + Y = y; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_DropEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLDropEvent + { + /// + /// ::SDL_DROPBEGIN or ::SDL_DROPFILE or ::SDL_DROPTEXT or ::SDL_DROPCOMPLETE
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The file name, which should be freed with SDL_free(), is NULL on begin/complete
+ ///
+ [NativeName(NativeNameType.Field, "file")] + [NativeName(NativeNameType.Type, "char*")] + public unsafe byte* File; + + /// + /// The window that was dropped on, if any
+ ///
+ [NativeName(NativeNameType.Field, "windowID")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint WindowID; + + + /// /// To be documented. /// public unsafe SDLDropEvent(uint type = default, uint timestamp = default, byte* file = default, uint windowID = default) + { + Type = type; + Timestamp = timestamp; + File = file; + WindowID = windowID; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_SensorEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLSensorEvent + { + /// + /// ::SDL_SENSORUPDATE
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The instance ID of the sensor
+ ///
+ [NativeName(NativeNameType.Field, "which")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Which; + + /// + /// Up to 6 values from the sensor - additional values can be queried using SDL_SensorGetData()
+ ///
+ [NativeName(NativeNameType.Field, "data")] + [NativeName(NativeNameType.Type, "float[6]")] + public float Data_0; + public float Data_1; + public float Data_2; + public float Data_3; + public float Data_4; + public float Data_5; + + /// + /// The timestamp of the sensor reading in microseconds, if the hardware provides this information.
+ ///
+ [NativeName(NativeNameType.Field, "timestamp_us")] + [NativeName(NativeNameType.Type, "Uint64")] + public ulong TimestampUs; + + + /// /// To be documented. /// public unsafe SDLSensorEvent(uint type = default, uint timestamp = default, int which = default, float* data = default, ulong timestampUs = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + if (data != default) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + } + TimestampUs = timestampUs; + } + + /// /// To be documented. /// public unsafe SDLSensorEvent(uint type = default, uint timestamp = default, int which = default, Span data = default, ulong timestampUs = default) + { + Type = type; + Timestamp = timestamp; + Which = which; + if (data != default) + { + Data_0 = data[0]; + Data_1 = data[1]; + Data_2 = data[2]; + Data_3 = data[3]; + Data_4 = data[4]; + Data_5 = data[5]; + } + TimestampUs = timestampUs; + } + + + /// + /// Up to 6 values from the sensor - additional values can be queried using SDL_SensorGetData()
+ ///
+ } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_QuitEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLQuitEvent + { + /// + /// ::SDL_QUIT
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + + /// /// To be documented. /// public unsafe SDLQuitEvent(uint type = default, uint timestamp = default) + { + Type = type; + Timestamp = timestamp; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_OSEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLOSEvent + { + /// + /// ::SDL_QUIT
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + + /// /// To be documented. /// public unsafe SDLOSEvent(uint type = default, uint timestamp = default) + { + Type = type; + Timestamp = timestamp; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_UserEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLUserEvent + { + /// + /// ::SDL_USEREVENT through ::SDL_LASTEVENT-1
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// The associated window if any
+ ///
+ [NativeName(NativeNameType.Field, "windowID")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint WindowID; + + /// + /// User defined event code
+ ///
+ [NativeName(NativeNameType.Field, "code")] + [NativeName(NativeNameType.Type, "Sint32")] + public int Code; + + /// + /// User defined data pointer
+ ///
+ [NativeName(NativeNameType.Field, "data1")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* Data1; + + /// + /// User defined data pointer
+ ///
+ [NativeName(NativeNameType.Field, "data2")] + [NativeName(NativeNameType.Type, "void*")] + public unsafe void* Data2; + + + /// /// To be documented. /// public unsafe SDLUserEvent(uint type = default, uint timestamp = default, uint windowID = default, int code = default, void* data1 = default, void* data2 = default) + { + Type = type; + Timestamp = timestamp; + WindowID = windowID; + Code = code; + Data1 = data1; + Data2 = data2; + } + + + } + + /// + /// The custom event structure.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_SysWMmsg")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLSysWMmsg + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Explicit)] + public partial struct MsgUnion + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Sequential)] + public partial struct WinUnion + { + /// + /// The window for the message
+ ///
+ [NativeName(NativeNameType.Field, "hwnd")] + [NativeName(NativeNameType.Type, "HWND")] + public nint Hwnd; + + /// + /// The type of message
+ ///
+ [NativeName(NativeNameType.Field, "msg")] + [NativeName(NativeNameType.Type, "UINT")] + public uint Msg; + + /// + /// WORD message parameter
+ ///
+ [NativeName(NativeNameType.Field, "wParam")] + [NativeName(NativeNameType.Type, "WPARAM")] + public nuint WParam; + + /// + /// LONG message parameter
+ ///
+ [NativeName(NativeNameType.Field, "lParam")] + [NativeName(NativeNameType.Type, "LPARAM")] + public nint LParam; + + + /// /// To be documented. /// public unsafe WinUnion(nint hwnd = default, uint msg = default, nuint wParam = default, nint lParam = default) + { + Hwnd = hwnd; + Msg = msg; + WParam = wParam; + LParam = lParam; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "win")] + [NativeName(NativeNameType.Type, "")] + [FieldOffset(0)] + public WinUnion Win; + + /// + /// Can't have an empty union
+ ///
+ [NativeName(NativeNameType.Field, "dummy")] + [NativeName(NativeNameType.Type, "int")] + [FieldOffset(0)] + public int Dummy; + + + /// /// To be documented. /// public unsafe MsgUnion(WinUnion win = default, int dummy = default) + { + Win = win; + Dummy = dummy; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "version")] + [NativeName(NativeNameType.Type, "SDL_version")] + public SDLVersion Version; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "subsystem")] + [NativeName(NativeNameType.Type, "SDL_SYSWM_TYPE")] + public SdlSyswmType Subsystem; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "msg")] + [NativeName(NativeNameType.Type, "")] + public MsgUnion Union; + + + /// /// To be documented. /// public unsafe SDLSysWMmsg(SDLVersion version = default, SdlSyswmType subsystem = default, MsgUnion union = default) + { + Version = version; + Subsystem = subsystem; + Union = union; + } + + + } + + /// + /// Information about the version of SDL in use.
+ /// Represents the library's version as three levels: major revision
+ /// (increments with massive changes, additions, and enhancements),
+ /// minor revision (increments with backwards-compatible changes to the
+ /// major revision), and patchlevel (increments with fixes to the minor
+ /// revision).
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_version")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLVersion + { + /// + /// major version
+ ///
+ [NativeName(NativeNameType.Field, "major")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Major; + + /// + /// minor version
+ ///
+ [NativeName(NativeNameType.Field, "minor")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Minor; + + /// + /// update version
+ ///
+ [NativeName(NativeNameType.Field, "patch")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Patch; + + + /// /// To be documented. /// public unsafe SDLVersion(byte major = default, byte minor = default, byte patch = default) + { + Major = major; + Minor = minor; + Patch = patch; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "HWND__")] + [StructLayout(LayoutKind.Sequential)] + public partial struct Hwnd + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "unused")] + [NativeName(NativeNameType.Type, "int")] + public int Unused; + + + /// /// To be documented. /// public unsafe Hwnd(int unused = default) + { + Unused = unused; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_SysWMEvent")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLSysWMEvent + { + /// + /// ::SDL_SYSWMEVENT
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Type; + + /// + /// In milliseconds, populated using SDL_GetTicks()
+ ///
+ [NativeName(NativeNameType.Field, "timestamp")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Timestamp; + + /// + /// driver dependent data, defined in SDL_syswm.h
+ ///
+ [NativeName(NativeNameType.Field, "msg")] + [NativeName(NativeNameType.Type, "SDL_SysWMmsg*")] + public unsafe SDLSysWMmsg* Msg; + + + /// /// To be documented. /// public unsafe SDLSysWMEvent(uint type = default, uint timestamp = default, SDLSysWMmsg* msg = default) + { + Type = type; + Timestamp = timestamp; + Msg = msg; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_Event")] + [StructLayout(LayoutKind.Explicit)] + public partial struct SDLEvent + { + /// + /// Event type, shared with all events
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint32")] + [FieldOffset(0)] + public uint Type; + + /// + /// Common event data
+ ///
+ [NativeName(NativeNameType.Field, "common")] + [NativeName(NativeNameType.Type, "SDL_CommonEvent")] + [FieldOffset(0)] + public SDLCommonEvent Common; + + /// + /// Display event data
+ ///
+ [NativeName(NativeNameType.Field, "display")] + [NativeName(NativeNameType.Type, "SDL_DisplayEvent")] + [FieldOffset(0)] + public SDLDisplayEvent Display; + + /// + /// Window event data
+ ///
+ [NativeName(NativeNameType.Field, "window")] + [NativeName(NativeNameType.Type, "SDL_WindowEvent")] + [FieldOffset(0)] + public SDLWindowEvent Window; + + /// + /// Keyboard event data
+ ///
+ [NativeName(NativeNameType.Field, "key")] + [NativeName(NativeNameType.Type, "SDL_KeyboardEvent")] + [FieldOffset(0)] + public SDLKeyboardEvent Key; + + /// + /// Text editing event data
+ ///
+ [NativeName(NativeNameType.Field, "edit")] + [NativeName(NativeNameType.Type, "SDL_TextEditingEvent")] + [FieldOffset(0)] + public SDLTextEditingEvent Edit; + + /// + /// Extended text editing event data
+ ///
+ [NativeName(NativeNameType.Field, "editExt")] + [NativeName(NativeNameType.Type, "SDL_TextEditingExtEvent")] + [FieldOffset(0)] + public SDLTextEditingExtEvent EditExt; + + /// + /// Text input event data
+ ///
+ [NativeName(NativeNameType.Field, "text")] + [NativeName(NativeNameType.Type, "SDL_TextInputEvent")] + [FieldOffset(0)] + public SDLTextInputEvent Text; + + /// + /// Mouse motion event data
+ ///
+ [NativeName(NativeNameType.Field, "motion")] + [NativeName(NativeNameType.Type, "SDL_MouseMotionEvent")] + [FieldOffset(0)] + public SDLMouseMotionEvent Motion; + + /// + /// Mouse button event data
+ ///
+ [NativeName(NativeNameType.Field, "button")] + [NativeName(NativeNameType.Type, "SDL_MouseButtonEvent")] + [FieldOffset(0)] + public SDLMouseButtonEvent Button; + + /// + /// Mouse wheel event data
+ ///
+ [NativeName(NativeNameType.Field, "wheel")] + [NativeName(NativeNameType.Type, "SDL_MouseWheelEvent")] + [FieldOffset(0)] + public SDLMouseWheelEvent Wheel; + + /// + /// Joystick axis event data
+ ///
+ [NativeName(NativeNameType.Field, "jaxis")] + [NativeName(NativeNameType.Type, "SDL_JoyAxisEvent")] + [FieldOffset(0)] + public SDLJoyAxisEvent Jaxis; + + /// + /// Joystick ball event data
+ ///
+ [NativeName(NativeNameType.Field, "jball")] + [NativeName(NativeNameType.Type, "SDL_JoyBallEvent")] + [FieldOffset(0)] + public SDLJoyBallEvent Jball; + + /// + /// Joystick hat event data
+ ///
+ [NativeName(NativeNameType.Field, "jhat")] + [NativeName(NativeNameType.Type, "SDL_JoyHatEvent")] + [FieldOffset(0)] + public SDLJoyHatEvent Jhat; + + /// + /// Joystick button event data
+ ///
+ [NativeName(NativeNameType.Field, "jbutton")] + [NativeName(NativeNameType.Type, "SDL_JoyButtonEvent")] + [FieldOffset(0)] + public SDLJoyButtonEvent Jbutton; + + /// + /// Joystick device change event data
+ ///
+ [NativeName(NativeNameType.Field, "jdevice")] + [NativeName(NativeNameType.Type, "SDL_JoyDeviceEvent")] + [FieldOffset(0)] + public SDLJoyDeviceEvent Jdevice; + + /// + /// Joystick battery event data
+ ///
+ [NativeName(NativeNameType.Field, "jbattery")] + [NativeName(NativeNameType.Type, "SDL_JoyBatteryEvent")] + [FieldOffset(0)] + public SDLJoyBatteryEvent Jbattery; + + /// + /// Game Controller axis event data
+ ///
+ [NativeName(NativeNameType.Field, "caxis")] + [NativeName(NativeNameType.Type, "SDL_ControllerAxisEvent")] + [FieldOffset(0)] + public SDLControllerAxisEvent Caxis; + + /// + /// Game Controller button event data
+ ///
+ [NativeName(NativeNameType.Field, "cbutton")] + [NativeName(NativeNameType.Type, "SDL_ControllerButtonEvent")] + [FieldOffset(0)] + public SDLControllerButtonEvent Cbutton; + + /// + /// Game Controller device event data
+ ///
+ [NativeName(NativeNameType.Field, "cdevice")] + [NativeName(NativeNameType.Type, "SDL_ControllerDeviceEvent")] + [FieldOffset(0)] + public SDLControllerDeviceEvent Cdevice; + + /// + /// Game Controller touchpad event data
+ ///
+ [NativeName(NativeNameType.Field, "ctouchpad")] + [NativeName(NativeNameType.Type, "SDL_ControllerTouchpadEvent")] + [FieldOffset(0)] + public SDLControllerTouchpadEvent Ctouchpad; + + /// + /// Game Controller sensor event data
+ ///
+ [NativeName(NativeNameType.Field, "csensor")] + [NativeName(NativeNameType.Type, "SDL_ControllerSensorEvent")] + [FieldOffset(0)] + public SDLControllerSensorEvent Csensor; + + /// + /// Audio device event data
+ ///
+ [NativeName(NativeNameType.Field, "adevice")] + [NativeName(NativeNameType.Type, "SDL_AudioDeviceEvent")] + [FieldOffset(0)] + public SDLAudioDeviceEvent Adevice; + + /// + /// Sensor event data
+ ///
+ [NativeName(NativeNameType.Field, "sensor")] + [NativeName(NativeNameType.Type, "SDL_SensorEvent")] + [FieldOffset(0)] + public SDLSensorEvent Sensor; + + /// + /// Quit request event data
+ ///
+ [NativeName(NativeNameType.Field, "quit")] + [NativeName(NativeNameType.Type, "SDL_QuitEvent")] + [FieldOffset(0)] + public SDLQuitEvent Quit; + + /// + /// Custom event data
+ ///
+ [NativeName(NativeNameType.Field, "user")] + [NativeName(NativeNameType.Type, "SDL_UserEvent")] + [FieldOffset(0)] + public SDLUserEvent User; + + /// + /// System dependent window event data
+ ///
+ [NativeName(NativeNameType.Field, "syswm")] + [NativeName(NativeNameType.Type, "SDL_SysWMEvent")] + [FieldOffset(0)] + public SDLSysWMEvent Syswm; + + /// + /// Touch finger event data
+ ///
+ [NativeName(NativeNameType.Field, "tfinger")] + [NativeName(NativeNameType.Type, "SDL_TouchFingerEvent")] + [FieldOffset(0)] + public SDLTouchFingerEvent Tfinger; + + /// + /// Gesture event data
+ ///
+ [NativeName(NativeNameType.Field, "mgesture")] + [NativeName(NativeNameType.Type, "SDL_MultiGestureEvent")] + [FieldOffset(0)] + public SDLMultiGestureEvent Mgesture; + + /// + /// Gesture event data
+ ///
+ [NativeName(NativeNameType.Field, "dgesture")] + [NativeName(NativeNameType.Type, "SDL_DollarGestureEvent")] + [FieldOffset(0)] + public SDLDollarGestureEvent Dgesture; + + /// + /// Drag and drop event data
+ ///
+ [NativeName(NativeNameType.Field, "drop")] + [NativeName(NativeNameType.Type, "SDL_DropEvent")] + [FieldOffset(0)] + public SDLDropEvent Drop; + + /// + /// This is necessary for ABI compatibility between Visual C++ and GCC.
+ /// Visual C++ will respect the push pack pragma and use 52 bytes (size of
+ /// SDL_TextEditingEvent, the largest structure for 32-bit and 64-bit
+ /// architectures) for this union, and GCC will use the alignment of the
+ /// largest datatype within the union, which is 8 bytes on 64-bit
+ /// architectures.
+ /// So... we'll add padding to force the size to be 56 bytes for both.
+ /// On architectures where pointers are 16 bytes, this needs rounding up to
+ /// the next multiple of 16, 64, and on architectures where pointers are
+ /// even larger the size of SDL_UserEvent will dominate as being 3 pointers.
+ ///
+ [NativeName(NativeNameType.Field, "padding")] + [NativeName(NativeNameType.Type, "Uint8[56]")] + [FieldOffset(0)] + public byte Padding_0; + [FieldOffset(56)] + public byte Padding_1; + [FieldOffset(112)] + public byte Padding_2; + [FieldOffset(168)] + public byte Padding_3; + [FieldOffset(224)] + public byte Padding_4; + [FieldOffset(280)] + public byte Padding_5; + [FieldOffset(336)] + public byte Padding_6; + [FieldOffset(392)] + public byte Padding_7; + [FieldOffset(448)] + public byte Padding_8; + [FieldOffset(504)] + public byte Padding_9; + [FieldOffset(560)] + public byte Padding_10; + [FieldOffset(616)] + public byte Padding_11; + [FieldOffset(672)] + public byte Padding_12; + [FieldOffset(728)] + public byte Padding_13; + [FieldOffset(784)] + public byte Padding_14; + [FieldOffset(840)] + public byte Padding_15; + [FieldOffset(896)] + public byte Padding_16; + [FieldOffset(952)] + public byte Padding_17; + [FieldOffset(1008)] + public byte Padding_18; + [FieldOffset(1064)] + public byte Padding_19; + [FieldOffset(1120)] + public byte Padding_20; + [FieldOffset(1176)] + public byte Padding_21; + [FieldOffset(1232)] + public byte Padding_22; + [FieldOffset(1288)] + public byte Padding_23; + [FieldOffset(1344)] + public byte Padding_24; + [FieldOffset(1400)] + public byte Padding_25; + [FieldOffset(1456)] + public byte Padding_26; + [FieldOffset(1512)] + public byte Padding_27; + [FieldOffset(1568)] + public byte Padding_28; + [FieldOffset(1624)] + public byte Padding_29; + [FieldOffset(1680)] + public byte Padding_30; + [FieldOffset(1736)] + public byte Padding_31; + [FieldOffset(1792)] + public byte Padding_32; + [FieldOffset(1848)] + public byte Padding_33; + [FieldOffset(1904)] + public byte Padding_34; + [FieldOffset(1960)] + public byte Padding_35; + [FieldOffset(2016)] + public byte Padding_36; + [FieldOffset(2072)] + public byte Padding_37; + [FieldOffset(2128)] + public byte Padding_38; + [FieldOffset(2184)] + public byte Padding_39; + [FieldOffset(2240)] + public byte Padding_40; + [FieldOffset(2296)] + public byte Padding_41; + [FieldOffset(2352)] + public byte Padding_42; + [FieldOffset(2408)] + public byte Padding_43; + [FieldOffset(2464)] + public byte Padding_44; + [FieldOffset(2520)] + public byte Padding_45; + [FieldOffset(2576)] + public byte Padding_46; + [FieldOffset(2632)] + public byte Padding_47; + [FieldOffset(2688)] + public byte Padding_48; + [FieldOffset(2744)] + public byte Padding_49; + [FieldOffset(2800)] + public byte Padding_50; + [FieldOffset(2856)] + public byte Padding_51; + [FieldOffset(2912)] + public byte Padding_52; + [FieldOffset(2968)] + public byte Padding_53; + [FieldOffset(3024)] + public byte Padding_54; + [FieldOffset(3080)] + public byte Padding_55; + + + /// /// To be documented. /// public unsafe SDLEvent(uint type = default, SDLCommonEvent common = default, SDLDisplayEvent display = default, SDLWindowEvent window = default, SDLKeyboardEvent key = default, SDLTextEditingEvent edit = default, SDLTextEditingExtEvent editExt = default, SDLTextInputEvent text = default, SDLMouseMotionEvent motion = default, SDLMouseButtonEvent button = default, SDLMouseWheelEvent wheel = default, SDLJoyAxisEvent jaxis = default, SDLJoyBallEvent jball = default, SDLJoyHatEvent jhat = default, SDLJoyButtonEvent jbutton = default, SDLJoyDeviceEvent jdevice = default, SDLJoyBatteryEvent jbattery = default, SDLControllerAxisEvent caxis = default, SDLControllerButtonEvent cbutton = default, SDLControllerDeviceEvent cdevice = default, SDLControllerTouchpadEvent ctouchpad = default, SDLControllerSensorEvent csensor = default, SDLAudioDeviceEvent adevice = default, SDLSensorEvent sensor = default, SDLQuitEvent quit = default, SDLUserEvent user = default, SDLSysWMEvent syswm = default, SDLTouchFingerEvent tfinger = default, SDLMultiGestureEvent mgesture = default, SDLDollarGestureEvent dgesture = default, SDLDropEvent drop = default, byte* padding = default) + { + Type = type; + Common = common; + Display = display; + Window = window; + Key = key; + Edit = edit; + EditExt = editExt; + Text = text; + Motion = motion; + Button = button; + Wheel = wheel; + Jaxis = jaxis; + Jball = jball; + Jhat = jhat; + Jbutton = jbutton; + Jdevice = jdevice; + Jbattery = jbattery; + Caxis = caxis; + Cbutton = cbutton; + Cdevice = cdevice; + Ctouchpad = ctouchpad; + Csensor = csensor; + Adevice = adevice; + Sensor = sensor; + Quit = quit; + User = user; + Syswm = syswm; + Tfinger = tfinger; + Mgesture = mgesture; + Dgesture = dgesture; + Drop = drop; + if (padding != default) + { + Padding_0 = padding[0]; + Padding_1 = padding[1]; + Padding_2 = padding[2]; + Padding_3 = padding[3]; + Padding_4 = padding[4]; + Padding_5 = padding[5]; + Padding_6 = padding[6]; + Padding_7 = padding[7]; + Padding_8 = padding[8]; + Padding_9 = padding[9]; + Padding_10 = padding[10]; + Padding_11 = padding[11]; + Padding_12 = padding[12]; + Padding_13 = padding[13]; + Padding_14 = padding[14]; + Padding_15 = padding[15]; + Padding_16 = padding[16]; + Padding_17 = padding[17]; + Padding_18 = padding[18]; + Padding_19 = padding[19]; + Padding_20 = padding[20]; + Padding_21 = padding[21]; + Padding_22 = padding[22]; + Padding_23 = padding[23]; + Padding_24 = padding[24]; + Padding_25 = padding[25]; + Padding_26 = padding[26]; + Padding_27 = padding[27]; + Padding_28 = padding[28]; + Padding_29 = padding[29]; + Padding_30 = padding[30]; + Padding_31 = padding[31]; + Padding_32 = padding[32]; + Padding_33 = padding[33]; + Padding_34 = padding[34]; + Padding_35 = padding[35]; + Padding_36 = padding[36]; + Padding_37 = padding[37]; + Padding_38 = padding[38]; + Padding_39 = padding[39]; + Padding_40 = padding[40]; + Padding_41 = padding[41]; + Padding_42 = padding[42]; + Padding_43 = padding[43]; + Padding_44 = padding[44]; + Padding_45 = padding[45]; + Padding_46 = padding[46]; + Padding_47 = padding[47]; + Padding_48 = padding[48]; + Padding_49 = padding[49]; + Padding_50 = padding[50]; + Padding_51 = padding[51]; + Padding_52 = padding[52]; + Padding_53 = padding[53]; + Padding_54 = padding[54]; + Padding_55 = padding[55]; + } + } + + /// /// To be documented. /// public unsafe SDLEvent(uint type = default, SDLCommonEvent common = default, SDLDisplayEvent display = default, SDLWindowEvent window = default, SDLKeyboardEvent key = default, SDLTextEditingEvent edit = default, SDLTextEditingExtEvent editExt = default, SDLTextInputEvent text = default, SDLMouseMotionEvent motion = default, SDLMouseButtonEvent button = default, SDLMouseWheelEvent wheel = default, SDLJoyAxisEvent jaxis = default, SDLJoyBallEvent jball = default, SDLJoyHatEvent jhat = default, SDLJoyButtonEvent jbutton = default, SDLJoyDeviceEvent jdevice = default, SDLJoyBatteryEvent jbattery = default, SDLControllerAxisEvent caxis = default, SDLControllerButtonEvent cbutton = default, SDLControllerDeviceEvent cdevice = default, SDLControllerTouchpadEvent ctouchpad = default, SDLControllerSensorEvent csensor = default, SDLAudioDeviceEvent adevice = default, SDLSensorEvent sensor = default, SDLQuitEvent quit = default, SDLUserEvent user = default, SDLSysWMEvent syswm = default, SDLTouchFingerEvent tfinger = default, SDLMultiGestureEvent mgesture = default, SDLDollarGestureEvent dgesture = default, SDLDropEvent drop = default, Span padding = default) + { + Type = type; + Common = common; + Display = display; + Window = window; + Key = key; + Edit = edit; + EditExt = editExt; + Text = text; + Motion = motion; + Button = button; + Wheel = wheel; + Jaxis = jaxis; + Jball = jball; + Jhat = jhat; + Jbutton = jbutton; + Jdevice = jdevice; + Jbattery = jbattery; + Caxis = caxis; + Cbutton = cbutton; + Cdevice = cdevice; + Ctouchpad = ctouchpad; + Csensor = csensor; + Adevice = adevice; + Sensor = sensor; + Quit = quit; + User = user; + Syswm = syswm; + Tfinger = tfinger; + Mgesture = mgesture; + Dgesture = dgesture; + Drop = drop; + if (padding != default) + { + Padding_0 = padding[0]; + Padding_1 = padding[1]; + Padding_2 = padding[2]; + Padding_3 = padding[3]; + Padding_4 = padding[4]; + Padding_5 = padding[5]; + Padding_6 = padding[6]; + Padding_7 = padding[7]; + Padding_8 = padding[8]; + Padding_9 = padding[9]; + Padding_10 = padding[10]; + Padding_11 = padding[11]; + Padding_12 = padding[12]; + Padding_13 = padding[13]; + Padding_14 = padding[14]; + Padding_15 = padding[15]; + Padding_16 = padding[16]; + Padding_17 = padding[17]; + Padding_18 = padding[18]; + Padding_19 = padding[19]; + Padding_20 = padding[20]; + Padding_21 = padding[21]; + Padding_22 = padding[22]; + Padding_23 = padding[23]; + Padding_24 = padding[24]; + Padding_25 = padding[25]; + Padding_26 = padding[26]; + Padding_27 = padding[27]; + Padding_28 = padding[28]; + Padding_29 = padding[29]; + Padding_30 = padding[30]; + Padding_31 = padding[31]; + Padding_32 = padding[32]; + Padding_33 = padding[33]; + Padding_34 = padding[34]; + Padding_35 = padding[35]; + Padding_36 = padding[36]; + Padding_37 = padding[37]; + Padding_38 = padding[38]; + Padding_39 = padding[39]; + Padding_40 = padding[40]; + Padding_41 = padding[41]; + Padding_42 = padding[42]; + Padding_43 = padding[43]; + Padding_44 = padding[44]; + Padding_45 = padding[45]; + Padding_46 = padding[46]; + Padding_47 = padding[47]; + Padding_48 = padding[48]; + Padding_49 = padding[49]; + Padding_50 = padding[50]; + Padding_51 = padding[51]; + Padding_52 = padding[52]; + Padding_53 = padding[53]; + Padding_54 = padding[54]; + Padding_55 = padding[55]; + } + } + + + /// + /// This is necessary for ABI compatibility between Visual C++ and GCC.
+ /// Visual C++ will respect the push pack pragma and use 52 bytes (size of
+ /// SDL_TextEditingEvent, the largest structure for 32-bit and 64-bit
+ /// architectures) for this union, and GCC will use the alignment of the
+ /// largest datatype within the union, which is 8 bytes on 64-bit
+ /// architectures.
+ /// So... we'll add padding to force the size to be 56 bytes for both.
+ /// On architectures where pointers are 16 bytes, this needs rounding up to
+ /// the next multiple of 16, 64, and on architectures where pointers are
+ /// even larger the size of SDL_UserEvent will dominate as being 3 pointers.
+ ///
+ } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ /// + /// To be documented. + /// + ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "_SDL_Haptic")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLHaptic + { + + + } + + /// + ///
+ /// + /// To be documented. + /// + /// This is the direction where the force comes from,
+ /// instead of the direction in which the force is exerted.
+ /// Directions can be specified by:
+ /// - ::SDL_HAPTIC_POLAR : Specified by polar coordinates.
+ /// - ::SDL_HAPTIC_CARTESIAN : Specified by cartesian coordinates.
+ /// - ::SDL_HAPTIC_SPHERICAL : Specified by spherical coordinates.
+ /// Cardinal directions of the haptic device are relative to the positioning
+ /// of the device. North is considered to be away from the user.
+ /// The following diagram represents the cardinal directions:
+ ///
+ /// + /// To be documented. + /// + /// If type is ::SDL_HAPTIC_POLAR, direction is encoded by hundredths of a
+ /// degree starting north and turning clockwise. ::SDL_HAPTIC_POLAR only uses
+ /// the first
+ /// + /// To be documented. + /// + /// parameter. The cardinal directions would be:
+ /// - North: 0 (0 degrees)
+ /// - East: 9000 (90 degrees)
+ /// - South: 18000 (180 degrees)
+ /// - West: 27000 (270 degrees)
+ /// If type is ::SDL_HAPTIC_CARTESIAN, direction is encoded by three positions
+ /// (X axis, Y axis and Z axis (with 3 axes)). ::SDL_HAPTIC_CARTESIAN uses
+ /// the first three
+ /// + /// To be documented. + /// + /// parameters. The cardinal directions would be:
+ /// - North: 0,-1, 0
+ /// - East: 1, 0, 0
+ /// - South: 0, 1, 0
+ /// - West: -1, 0, 0
+ /// The Z axis represents the height of the effect if supported, otherwise
+ /// it's unused. In cartesian encoding (1, 2) would be the same as (2, 4), you
+ /// can use any multiple you want, only the direction matters.
+ /// If type is ::SDL_HAPTIC_SPHERICAL, direction is encoded by two rotations.
+ /// The first two
+ /// + /// To be documented. + /// + /// parameters are used. The
+ /// + /// To be documented. + /// + /// parameters are as
+ /// follows (all values are in hundredths of degrees):
+ /// - Degrees from (1, 0) rotated towards (0, 1).
+ /// - Degrees towards (0, 0, 1) (device needs at least 3 axes).
+ /// Example of force coming from the south with all encodings (force coming
+ /// from the south means the user will have to pull the stick to counteract):
+ ///
+ /// + /// To be documented. + /// + ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_HapticDirection")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLHapticDirection + { + /// + /// The type of encoding.
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Type; + + /// + /// The encoded direction.
+ ///
+ [NativeName(NativeNameType.Field, "dir")] + [NativeName(NativeNameType.Type, "Sint32[3]")] + public int Dir_0; + public int Dir_1; + public int Dir_2; + + + /// /// To be documented. /// public unsafe SDLHapticDirection(byte type = default, int* dir = default) + { + Type = type; + if (dir != default) + { + Dir_0 = dir[0]; + Dir_1 = dir[1]; + Dir_2 = dir[2]; + } + } + + /// /// To be documented. /// public unsafe SDLHapticDirection(byte type = default, Span dir = default) + { + Type = type; + if (dir != default) + { + Dir_0 = dir[0]; + Dir_1 = dir[1]; + Dir_2 = dir[2]; + } + } + + + /// + /// The encoded direction.
+ ///
+ } + + /// + ///
+ /// + /// To be documented. + /// + /// This struct is exclusively for the ::SDL_HAPTIC_CONSTANT effect.
+ /// A constant effect applies a constant force in the specified direction
+ /// to the joystick.
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_HapticConstant")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLHapticConstant + { + /// + /// ::SDL_HAPTIC_CONSTANT
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Type; + + /// + /// Direction of the effect.
+ ///
+ [NativeName(NativeNameType.Field, "direction")] + [NativeName(NativeNameType.Type, "SDL_HapticDirection")] + public SDLHapticDirection Direction; + + /// + /// Duration of the effect.
+ ///
+ [NativeName(NativeNameType.Field, "length")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Length; + + /// + /// Delay before starting the effect.
+ ///
+ [NativeName(NativeNameType.Field, "delay")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Delay; + + /// + /// Button that triggers the effect.
+ ///
+ [NativeName(NativeNameType.Field, "button")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Button; + + /// + /// How soon it can be triggered again after button.
+ ///
+ [NativeName(NativeNameType.Field, "interval")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Interval; + + /// + /// Strength of the constant effect.
+ ///
+ [NativeName(NativeNameType.Field, "level")] + [NativeName(NativeNameType.Type, "Sint16")] + public short Level; + + /// + /// Duration of the attack.
+ ///
+ [NativeName(NativeNameType.Field, "attack_length")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort AttackLength; + + /// + /// Level at the start of the attack.
+ ///
+ [NativeName(NativeNameType.Field, "attack_level")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort AttackLevel; + + /// + /// Duration of the fade.
+ ///
+ [NativeName(NativeNameType.Field, "fade_length")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort FadeLength; + + /// + /// Level at the end of the fade.
+ ///
+ [NativeName(NativeNameType.Field, "fade_level")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort FadeLevel; + + + /// /// To be documented. /// public unsafe SDLHapticConstant(ushort type = default, SDLHapticDirection direction = default, uint length = default, ushort delay = default, ushort button = default, ushort interval = default, short level = default, ushort attackLength = default, ushort attackLevel = default, ushort fadeLength = default, ushort fadeLevel = default) + { + Type = type; + Direction = direction; + Length = length; + Delay = delay; + Button = button; + Interval = interval; + Level = level; + AttackLength = attackLength; + AttackLevel = attackLevel; + FadeLength = fadeLength; + FadeLevel = fadeLevel; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + /// The struct handles the following effects:
+ /// - ::SDL_HAPTIC_SINE
+ /// - ::SDL_HAPTIC_LEFTRIGHT
+ /// - ::SDL_HAPTIC_TRIANGLE
+ /// - ::SDL_HAPTIC_SAWTOOTHUP
+ /// - ::SDL_HAPTIC_SAWTOOTHDOWN
+ /// A periodic effect consists in a wave-shaped effect that repeats itself
+ /// over time. The type determines the shape of the wave and the parameters
+ /// determine the dimensions of the wave.
+ /// Phase is given by hundredth of a degree meaning that giving the phase a value
+ /// of 9000 will displace it 25% of its period. Here are sample values:
+ /// - 0: No phase displacement.
+ /// - 9000: Displaced 25% of its period.
+ /// - 18000: Displaced 50% of its period.
+ /// - 27000: Displaced 75% of its period.
+ /// - 36000: Displaced 100% of its period, same as 0, but 0 is preferred.
+ /// Examples:
+ ///
+ /// + /// To be documented. + /// + ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_HapticPeriodic")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLHapticPeriodic + { + /// + /// ::SDL_HAPTIC_SINE, ::SDL_HAPTIC_LEFTRIGHT,
+ /// ::SDL_HAPTIC_TRIANGLE, ::SDL_HAPTIC_SAWTOOTHUP or
+ /// ::SDL_HAPTIC_SAWTOOTHDOWN
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Type; + + /// + /// Direction of the effect.
+ ///
+ [NativeName(NativeNameType.Field, "direction")] + [NativeName(NativeNameType.Type, "SDL_HapticDirection")] + public SDLHapticDirection Direction; + + /// + /// Duration of the effect.
+ ///
+ [NativeName(NativeNameType.Field, "length")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Length; + + /// + /// Delay before starting the effect.
+ ///
+ [NativeName(NativeNameType.Field, "delay")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Delay; + + /// + /// Button that triggers the effect.
+ ///
+ [NativeName(NativeNameType.Field, "button")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Button; + + /// + /// How soon it can be triggered again after button.
+ ///
+ [NativeName(NativeNameType.Field, "interval")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Interval; + + /// + /// Period of the wave.
+ ///
+ [NativeName(NativeNameType.Field, "period")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Period; + + /// + /// Peak value; if negative, equivalent to 180 degrees extra phase shift.
+ ///
+ [NativeName(NativeNameType.Field, "magnitude")] + [NativeName(NativeNameType.Type, "Sint16")] + public short Magnitude; + + /// + /// Mean value of the wave.
+ ///
+ [NativeName(NativeNameType.Field, "offset")] + [NativeName(NativeNameType.Type, "Sint16")] + public short Offset; + + /// + /// Positive phase shift given by hundredth of a degree.
+ ///
+ [NativeName(NativeNameType.Field, "phase")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Phase; + + /// + /// Duration of the attack.
+ ///
+ [NativeName(NativeNameType.Field, "attack_length")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort AttackLength; + + /// + /// Level at the start of the attack.
+ ///
+ [NativeName(NativeNameType.Field, "attack_level")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort AttackLevel; + + /// + /// Duration of the fade.
+ ///
+ [NativeName(NativeNameType.Field, "fade_length")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort FadeLength; + + /// + /// Level at the end of the fade.
+ ///
+ [NativeName(NativeNameType.Field, "fade_level")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort FadeLevel; + + + /// /// To be documented. /// public unsafe SDLHapticPeriodic(ushort type = default, SDLHapticDirection direction = default, uint length = default, ushort delay = default, ushort button = default, ushort interval = default, ushort period = default, short magnitude = default, short offset = default, ushort phase = default, ushort attackLength = default, ushort attackLevel = default, ushort fadeLength = default, ushort fadeLevel = default) + { + Type = type; + Direction = direction; + Length = length; + Delay = delay; + Button = button; + Interval = interval; + Period = period; + Magnitude = magnitude; + Offset = offset; + Phase = phase; + AttackLength = attackLength; + AttackLevel = attackLevel; + FadeLength = fadeLength; + FadeLevel = fadeLevel; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + /// The struct handles the following effects:
+ /// - ::SDL_HAPTIC_SPRING: Effect based on axes position.
+ /// - ::SDL_HAPTIC_DAMPER: Effect based on axes velocity.
+ /// - ::SDL_HAPTIC_INERTIA: Effect based on axes acceleration.
+ /// - ::SDL_HAPTIC_FRICTION: Effect based on axes movement.
+ /// Direction is handled by condition internals instead of a direction member.
+ /// The condition effect specific members have three parameters. The first
+ /// refers to the X axis, the second refers to the Y axis and the third
+ /// refers to the Z axis. The right terms refer to the positive side of the
+ /// axis and the left terms refer to the negative side of the axis. Please
+ /// refer to the ::SDL_HapticDirection diagram for which side is positive and
+ /// which is negative.
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_HapticCondition")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLHapticCondition + { + /// + /// ::SDL_HAPTIC_SPRING, ::SDL_HAPTIC_DAMPER,
+ /// ::SDL_HAPTIC_INERTIA or ::SDL_HAPTIC_FRICTION
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Type; + + /// + /// Direction of the effect - Not used ATM.
+ ///
+ [NativeName(NativeNameType.Field, "direction")] + [NativeName(NativeNameType.Type, "SDL_HapticDirection")] + public SDLHapticDirection Direction; + + /// + /// Duration of the effect.
+ ///
+ [NativeName(NativeNameType.Field, "length")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Length; + + /// + /// Delay before starting the effect.
+ ///
+ [NativeName(NativeNameType.Field, "delay")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Delay; + + /// + /// Button that triggers the effect.
+ ///
+ [NativeName(NativeNameType.Field, "button")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Button; + + /// + /// How soon it can be triggered again after button.
+ ///
+ [NativeName(NativeNameType.Field, "interval")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Interval; + + /// + /// Level when joystick is to the positive side; max 0xFFFF.
+ ///
+ [NativeName(NativeNameType.Field, "right_sat")] + [NativeName(NativeNameType.Type, "Uint16[3]")] + public ushort RightSat_0; + public ushort RightSat_1; + public ushort RightSat_2; + + /// + /// Level when joystick is to the negative side; max 0xFFFF.
+ ///
+ [NativeName(NativeNameType.Field, "left_sat")] + [NativeName(NativeNameType.Type, "Uint16[3]")] + public ushort LeftSat_0; + public ushort LeftSat_1; + public ushort LeftSat_2; + + /// + /// How fast to increase the force towards the positive side.
+ ///
+ [NativeName(NativeNameType.Field, "right_coeff")] + [NativeName(NativeNameType.Type, "Sint16[3]")] + public short RightCoeff_0; + public short RightCoeff_1; + public short RightCoeff_2; + + /// + /// How fast to increase the force towards the negative side.
+ ///
+ [NativeName(NativeNameType.Field, "left_coeff")] + [NativeName(NativeNameType.Type, "Sint16[3]")] + public short LeftCoeff_0; + public short LeftCoeff_1; + public short LeftCoeff_2; + + /// + /// Size of the dead zone; max 0xFFFF: whole axis-range when 0-centered.
+ ///
+ [NativeName(NativeNameType.Field, "deadband")] + [NativeName(NativeNameType.Type, "Uint16[3]")] + public ushort Deadband_0; + public ushort Deadband_1; + public ushort Deadband_2; + + /// + /// Position of the dead zone.
+ ///
+ [NativeName(NativeNameType.Field, "center")] + [NativeName(NativeNameType.Type, "Sint16[3]")] + public short Center_0; + public short Center_1; + public short Center_2; + + + /// /// To be documented. /// public unsafe SDLHapticCondition(ushort type = default, SDLHapticDirection direction = default, uint length = default, ushort delay = default, ushort button = default, ushort interval = default, ushort* rightSat = default, ushort* leftSat = default, short* rightCoeff = default, short* leftCoeff = default, ushort* deadband = default, short* center = default) + { + Type = type; + Direction = direction; + Length = length; + Delay = delay; + Button = button; + Interval = interval; + if (rightSat != default) + { + RightSat_0 = rightSat[0]; + RightSat_1 = rightSat[1]; + RightSat_2 = rightSat[2]; + } + if (leftSat != default) + { + LeftSat_0 = leftSat[0]; + LeftSat_1 = leftSat[1]; + LeftSat_2 = leftSat[2]; + } + if (rightCoeff != default) + { + RightCoeff_0 = rightCoeff[0]; + RightCoeff_1 = rightCoeff[1]; + RightCoeff_2 = rightCoeff[2]; + } + if (leftCoeff != default) + { + LeftCoeff_0 = leftCoeff[0]; + LeftCoeff_1 = leftCoeff[1]; + LeftCoeff_2 = leftCoeff[2]; + } + if (deadband != default) + { + Deadband_0 = deadband[0]; + Deadband_1 = deadband[1]; + Deadband_2 = deadband[2]; + } + if (center != default) + { + Center_0 = center[0]; + Center_1 = center[1]; + Center_2 = center[2]; + } + } + + /// /// To be documented. /// public unsafe SDLHapticCondition(ushort type = default, SDLHapticDirection direction = default, uint length = default, ushort delay = default, ushort button = default, ushort interval = default, Span rightSat = default, Span leftSat = default, Span rightCoeff = default, Span leftCoeff = default, Span deadband = default, Span center = default) + { + Type = type; + Direction = direction; + Length = length; + Delay = delay; + Button = button; + Interval = interval; + if (rightSat != default) + { + RightSat_0 = rightSat[0]; + RightSat_1 = rightSat[1]; + RightSat_2 = rightSat[2]; + } + if (leftSat != default) + { + LeftSat_0 = leftSat[0]; + LeftSat_1 = leftSat[1]; + LeftSat_2 = leftSat[2]; + } + if (rightCoeff != default) + { + RightCoeff_0 = rightCoeff[0]; + RightCoeff_1 = rightCoeff[1]; + RightCoeff_2 = rightCoeff[2]; + } + if (leftCoeff != default) + { + LeftCoeff_0 = leftCoeff[0]; + LeftCoeff_1 = leftCoeff[1]; + LeftCoeff_2 = leftCoeff[2]; + } + if (deadband != default) + { + Deadband_0 = deadband[0]; + Deadband_1 = deadband[1]; + Deadband_2 = deadband[2]; + } + if (center != default) + { + Center_0 = center[0]; + Center_1 = center[1]; + Center_2 = center[2]; + } + } + + + /// + /// Level when joystick is to the positive side; max 0xFFFF.
+ ///
+ /// + /// Level when joystick is to the negative side; max 0xFFFF.
+ ///
+ /// + /// How fast to increase the force towards the positive side.
+ ///
+ /// + /// How fast to increase the force towards the negative side.
+ ///
+ /// + /// Size of the dead zone; max 0xFFFF: whole axis-range when 0-centered.
+ ///
+ /// + /// Position of the dead zone.
+ ///
+ } + + /// + ///
+ /// + /// To be documented. + /// + /// This struct is exclusively for the ::SDL_HAPTIC_RAMP effect.
+ /// The ramp effect starts at start strength and ends at end strength.
+ /// It augments in linear fashion. If you use attack and fade with a ramp
+ /// the effects get added to the ramp effect making the effect become
+ /// quadratic instead of linear.
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_HapticRamp")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLHapticRamp + { + /// + /// ::SDL_HAPTIC_RAMP
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Type; + + /// + /// Direction of the effect.
+ ///
+ [NativeName(NativeNameType.Field, "direction")] + [NativeName(NativeNameType.Type, "SDL_HapticDirection")] + public SDLHapticDirection Direction; + + /// + /// Duration of the effect.
+ ///
+ [NativeName(NativeNameType.Field, "length")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Length; + + /// + /// Delay before starting the effect.
+ ///
+ [NativeName(NativeNameType.Field, "delay")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Delay; + + /// + /// Button that triggers the effect.
+ ///
+ [NativeName(NativeNameType.Field, "button")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Button; + + /// + /// How soon it can be triggered again after button.
+ ///
+ [NativeName(NativeNameType.Field, "interval")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Interval; + + /// + /// Beginning strength level.
+ ///
+ [NativeName(NativeNameType.Field, "start")] + [NativeName(NativeNameType.Type, "Sint16")] + public short Start; + + /// + /// Ending strength level.
+ ///
+ [NativeName(NativeNameType.Field, "end")] + [NativeName(NativeNameType.Type, "Sint16")] + public short End; + + /// + /// Duration of the attack.
+ ///
+ [NativeName(NativeNameType.Field, "attack_length")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort AttackLength; + + /// + /// Level at the start of the attack.
+ ///
+ [NativeName(NativeNameType.Field, "attack_level")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort AttackLevel; + + /// + /// Duration of the fade.
+ ///
+ [NativeName(NativeNameType.Field, "fade_length")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort FadeLength; + + /// + /// Level at the end of the fade.
+ ///
+ [NativeName(NativeNameType.Field, "fade_level")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort FadeLevel; + + + /// /// To be documented. /// public unsafe SDLHapticRamp(ushort type = default, SDLHapticDirection direction = default, uint length = default, ushort delay = default, ushort button = default, ushort interval = default, short start = default, short end = default, ushort attackLength = default, ushort attackLevel = default, ushort fadeLength = default, ushort fadeLevel = default) + { + Type = type; + Direction = direction; + Length = length; + Delay = delay; + Button = button; + Interval = interval; + Start = start; + End = end; + AttackLength = attackLength; + AttackLevel = attackLevel; + FadeLength = fadeLength; + FadeLevel = fadeLevel; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + /// This struct is exclusively for the ::SDL_HAPTIC_LEFTRIGHT effect.
+ /// The Left/Right effect is used to explicitly control the large and small
+ /// motors, commonly found in modern game controllers. The small (right) motor
+ /// is high frequency, and the large (left) motor is low frequency.
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_HapticLeftRight")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLHapticLeftRight + { + /// + /// ::SDL_HAPTIC_LEFTRIGHT
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Type; + + /// + /// Duration of the effect in milliseconds.
+ ///
+ [NativeName(NativeNameType.Field, "length")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Length; + + /// + /// Control of the large controller motor.
+ ///
+ [NativeName(NativeNameType.Field, "large_magnitude")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort LargeMagnitude; + + /// + /// Control of the small controller motor.
+ ///
+ [NativeName(NativeNameType.Field, "small_magnitude")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort SmallMagnitude; + + + /// /// To be documented. /// public unsafe SDLHapticLeftRight(ushort type = default, uint length = default, ushort largeMagnitude = default, ushort smallMagnitude = default) + { + Type = type; + Length = length; + LargeMagnitude = largeMagnitude; + SmallMagnitude = smallMagnitude; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + /// This struct is exclusively for the ::SDL_HAPTIC_CUSTOM effect.
+ /// A custom force feedback effect is much like a periodic effect, where the
+ /// application can define its exact shape. You will have to allocate the
+ /// data yourself. Data should consist of channels * samples Uint16 samples.
+ /// If channels is one, the effect is rotated using the defined direction.
+ /// Otherwise it uses the samples in data for the different axes.
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_HapticCustom")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLHapticCustom + { + /// + /// ::SDL_HAPTIC_CUSTOM
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Type; + + /// + /// Direction of the effect.
+ ///
+ [NativeName(NativeNameType.Field, "direction")] + [NativeName(NativeNameType.Type, "SDL_HapticDirection")] + public SDLHapticDirection Direction; + + /// + /// Duration of the effect.
+ ///
+ [NativeName(NativeNameType.Field, "length")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Length; + + /// + /// Delay before starting the effect.
+ ///
+ [NativeName(NativeNameType.Field, "delay")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Delay; + + /// + /// Button that triggers the effect.
+ ///
+ [NativeName(NativeNameType.Field, "button")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Button; + + /// + /// How soon it can be triggered again after button.
+ ///
+ [NativeName(NativeNameType.Field, "interval")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Interval; + + /// + /// Axes to use, minimum of one.
+ ///
+ [NativeName(NativeNameType.Field, "channels")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte Channels; + + /// + /// Sample periods.
+ ///
+ [NativeName(NativeNameType.Field, "period")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Period; + + /// + /// Amount of samples.
+ ///
+ [NativeName(NativeNameType.Field, "samples")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort Samples; + + /// + /// Should contain channels*samples items.
+ ///
+ [NativeName(NativeNameType.Field, "data")] + [NativeName(NativeNameType.Type, "Uint16*")] + public unsafe ushort* Data; + + /// + /// Duration of the attack.
+ ///
+ [NativeName(NativeNameType.Field, "attack_length")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort AttackLength; + + /// + /// Level at the start of the attack.
+ ///
+ [NativeName(NativeNameType.Field, "attack_level")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort AttackLevel; + + /// + /// Duration of the fade.
+ ///
+ [NativeName(NativeNameType.Field, "fade_length")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort FadeLength; + + /// + /// Level at the end of the fade.
+ ///
+ [NativeName(NativeNameType.Field, "fade_level")] + [NativeName(NativeNameType.Type, "Uint16")] + public ushort FadeLevel; + + + /// /// To be documented. /// public unsafe SDLHapticCustom(ushort type = default, SDLHapticDirection direction = default, uint length = default, ushort delay = default, ushort button = default, ushort interval = default, byte channels = default, ushort period = default, ushort samples = default, ushort* data = default, ushort attackLength = default, ushort attackLevel = default, ushort fadeLength = default, ushort fadeLevel = default) + { + Type = type; + Direction = direction; + Length = length; + Delay = delay; + Button = button; + Interval = interval; + Channels = channels; + Period = period; + Samples = samples; + Data = data; + AttackLength = attackLength; + AttackLevel = attackLevel; + FadeLength = fadeLength; + FadeLevel = fadeLevel; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + /// All values max at 32767 (0x7FFF). Signed values also can be negative.
+ /// Time values unless specified otherwise are in milliseconds.
+ /// You can also pass ::SDL_HAPTIC_INFINITY to length instead of a 0-32767
+ /// value. Neither delay, interval, attack_length nor fade_length support
+ /// ::SDL_HAPTIC_INFINITY. Fade will also not be used since effect never ends.
+ /// Additionally, the ::SDL_HAPTIC_RAMP effect does not support a duration of
+ /// ::SDL_HAPTIC_INFINITY.
+ /// Button triggers may not be supported on all devices, it is advised to not
+ /// use them if possible. Buttons start at index 1 instead of index 0 like
+ /// the joystick.
+ /// If both attack_length and fade_level are 0, the envelope is not used,
+ /// otherwise both values are used.
+ /// Common parts:
+ ///
+ /// + /// To be documented. + /// + /// Here we have an example of a constant effect evolution in time:
+ ///
+ /// + /// To be documented. + /// + /// Note either the attack_level or the fade_level may be above the actual
+ /// effect level.
+ ///
+ /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_HapticEffect")] + [StructLayout(LayoutKind.Explicit)] + public partial struct SDLHapticEffect + { + /// + /// Effect type.
+ ///
+ [NativeName(NativeNameType.Field, "type")] + [NativeName(NativeNameType.Type, "Uint16")] + [FieldOffset(0)] + public ushort Type; + + /// + /// Constant effect.
+ ///
+ [NativeName(NativeNameType.Field, "constant")] + [NativeName(NativeNameType.Type, "SDL_HapticConstant")] + [FieldOffset(0)] + public SDLHapticConstant Constant; + + /// + /// Periodic effect.
+ ///
+ [NativeName(NativeNameType.Field, "periodic")] + [NativeName(NativeNameType.Type, "SDL_HapticPeriodic")] + [FieldOffset(0)] + public SDLHapticPeriodic Periodic; + + /// + /// Condition effect.
+ ///
+ [NativeName(NativeNameType.Field, "condition")] + [NativeName(NativeNameType.Type, "SDL_HapticCondition")] + [FieldOffset(0)] + public SDLHapticCondition Condition; + + /// + /// Ramp effect.
+ ///
+ [NativeName(NativeNameType.Field, "ramp")] + [NativeName(NativeNameType.Type, "SDL_HapticRamp")] + [FieldOffset(0)] + public SDLHapticRamp Ramp; + + /// + /// Left/Right effect.
+ ///
+ [NativeName(NativeNameType.Field, "leftright")] + [NativeName(NativeNameType.Type, "SDL_HapticLeftRight")] + [FieldOffset(0)] + public SDLHapticLeftRight Leftright; + + /// + /// Custom effect.
+ ///
+ [NativeName(NativeNameType.Field, "custom")] + [NativeName(NativeNameType.Type, "SDL_HapticCustom")] + [FieldOffset(0)] + public SDLHapticCustom Custom; + + + /// /// To be documented. /// public unsafe SDLHapticEffect(ushort type = default, SDLHapticConstant constant = default, SDLHapticPeriodic periodic = default, SDLHapticCondition condition = default, SDLHapticRamp ramp = default, SDLHapticLeftRight leftright = default, SDLHapticCustom custom = default) + { + Type = type; + Constant = constant; + Periodic = periodic; + Condition = condition; + Ramp = ramp; + Leftright = leftright; + Custom = custom; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_hid_device_")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLHidDevice + { + + + } + + /// + /// hidapi info structure
+ ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_hid_device_info")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLHidDeviceInfo + { + /// + /// Platform-specific device path
+ ///
+ [NativeName(NativeNameType.Field, "path")] + [NativeName(NativeNameType.Type, "char*")] + public unsafe byte* Path; + + /// + /// Device Vendor ID
+ ///
+ [NativeName(NativeNameType.Field, "vendor_id")] + [NativeName(NativeNameType.Type, "unsigned short")] + public ushort VendorId; + + /// + /// Device Product ID
+ ///
+ [NativeName(NativeNameType.Field, "product_id")] + [NativeName(NativeNameType.Type, "unsigned short")] + public ushort ProductId; + + /// + /// Serial Number
+ ///
+ [NativeName(NativeNameType.Field, "serial_number")] + [NativeName(NativeNameType.Type, "wchar*")] + public unsafe char* SerialNumber; + + /// + /// Device Release Number in binary-coded decimal,
+ /// also known as Device Version Number
+ ///
+ [NativeName(NativeNameType.Field, "release_number")] + [NativeName(NativeNameType.Type, "unsigned short")] + public ushort ReleaseNumber; + + /// + /// Manufacturer String
+ ///
+ [NativeName(NativeNameType.Field, "manufacturer_string")] + [NativeName(NativeNameType.Type, "wchar*")] + public unsafe char* ManufacturerString; + + /// + /// Product string
+ ///
+ [NativeName(NativeNameType.Field, "product_string")] + [NativeName(NativeNameType.Type, "wchar*")] + public unsafe char* ProductString; + + /// + /// Usage Page for this Device/Interface
+ /// (Windows/Mac only).
+ ///
+ [NativeName(NativeNameType.Field, "usage_page")] + [NativeName(NativeNameType.Type, "unsigned short")] + public ushort UsagePage; + + /// + /// Usage for this Device/Interface
+ /// (Windows/Mac only).
+ ///
+ [NativeName(NativeNameType.Field, "usage")] + [NativeName(NativeNameType.Type, "unsigned short")] + public ushort Usage; + + /// + /// The USB interface which this logical device
+ /// represents.
+ /// Valid on both Linux implementations in all cases.
+ /// Valid on the Windows implementation only if the device
+ /// contains more than one interface.
+ ///
+ [NativeName(NativeNameType.Field, "interface_number")] + [NativeName(NativeNameType.Type, "int")] + public int InterfaceNumber; + + /// + /// Additional information about the USB interface.
+ /// Valid on libusb and Android implementations.
+ ///
+ [NativeName(NativeNameType.Field, "interface_class")] + [NativeName(NativeNameType.Type, "int")] + public int InterfaceClass; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "interface_subclass")] + [NativeName(NativeNameType.Type, "int")] + public int InterfaceSubclass; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "interface_protocol")] + [NativeName(NativeNameType.Type, "int")] + public int InterfaceProtocol; + + /// + /// Pointer to the next device
+ ///
+ [NativeName(NativeNameType.Field, "next")] + [NativeName(NativeNameType.Type, "SDL_hid_device_info*")] + public unsafe SDLHidDeviceInfo* Next; + + + /// /// To be documented. /// public unsafe SDLHidDeviceInfo(byte* path = default, ushort vendorId = default, ushort productId = default, char* serialNumber = default, ushort releaseNumber = default, char* manufacturerString = default, char* productString = default, ushort usagePage = default, ushort usage = default, int interfaceNumber = default, int interfaceClass = default, int interfaceSubclass = default, int interfaceProtocol = default, SDLHidDeviceInfo* next = default) + { + Path = path; + VendorId = vendorId; + ProductId = productId; + SerialNumber = serialNumber; + ReleaseNumber = releaseNumber; + ManufacturerString = manufacturerString; + ProductString = productString; + UsagePage = usagePage; + Usage = usage; + InterfaceNumber = interfaceNumber; + InterfaceClass = interfaceClass; + InterfaceSubclass = interfaceSubclass; + InterfaceProtocol = interfaceProtocol; + Next = next; + } + + + } + + /// + /// Individual button data.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_MessageBoxButtonData")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLMessageBoxButtonData + { + /// + /// ::SDL_MessageBoxButtonFlags
+ ///
+ [NativeName(NativeNameType.Field, "flags")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Flags; + + /// + /// User defined button id (value returned via SDL_ShowMessageBox)
+ ///
+ [NativeName(NativeNameType.Field, "buttonid")] + [NativeName(NativeNameType.Type, "int")] + public int Buttonid; + + /// + /// The UTF-8 button text
+ ///
+ [NativeName(NativeNameType.Field, "text")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Text; + + + /// /// To be documented. /// public unsafe SDLMessageBoxButtonData(uint flags = default, int buttonid = default, byte* text = default) + { + Flags = flags; + Buttonid = buttonid; + Text = text; + } + + + } + + /// + /// RGB value used in a message box color scheme
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_MessageBoxColor")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLMessageBoxColor + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "r")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte R; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "g")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte G; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "b")] + [NativeName(NativeNameType.Type, "Uint8")] + public byte B; + + + /// /// To be documented. /// public unsafe SDLMessageBoxColor(byte r = default, byte g = default, byte b = default) + { + R = r; + G = g; + B = b; + } + + + } + + /// + /// A set of colors to use for message box dialogs
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_MessageBoxColorScheme")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLMessageBoxColorScheme + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "colors")] + [NativeName(NativeNameType.Type, "SDL_MessageBoxColor[5]")] + public SDLMessageBoxColor Colors_0; + public SDLMessageBoxColor Colors_1; + public SDLMessageBoxColor Colors_2; + public SDLMessageBoxColor Colors_3; + public SDLMessageBoxColor Colors_4; + + + /// /// To be documented. /// public unsafe SDLMessageBoxColorScheme(SDLMessageBoxColor* colors = default) + { + if (colors != default) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + } + } + + /// /// To be documented. /// public unsafe SDLMessageBoxColorScheme(Span colors = default) + { + if (colors != default) + { + Colors_0 = colors[0]; + Colors_1 = colors[1]; + Colors_2 = colors[2]; + Colors_3 = colors[3]; + Colors_4 = colors[4]; + } + } + + + /// + /// To be documented. + /// + public unsafe Span Colors + + { + get + { + fixed (SDLMessageBoxColor* p = &this.Colors_0) + { + return new Span(p, 5); + } + } + } + } + + /// + /// MessageBox structure containing title, text, window, etc.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_MessageBoxData")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLMessageBoxData + { + /// + /// ::SDL_MessageBoxFlags
+ ///
+ [NativeName(NativeNameType.Field, "flags")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Flags; + + /// + /// Parent window, can be NULL
+ ///
+ [NativeName(NativeNameType.Field, "window")] + [NativeName(NativeNameType.Type, "SDL_Window*")] + public unsafe SDLWindow* Window; + + /// + /// UTF-8 title
+ ///
+ [NativeName(NativeNameType.Field, "title")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Title; + + /// + /// UTF-8 message text
+ ///
+ [NativeName(NativeNameType.Field, "message")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Message; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "numbuttons")] + [NativeName(NativeNameType.Type, "int")] + public int Numbuttons; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "buttons")] + [NativeName(NativeNameType.Type, "const SDL_MessageBoxButtonData*")] + public unsafe SDLMessageBoxButtonData* Buttons; + + /// + /// ::SDL_MessageBoxColorScheme, can be NULL to use system settings
+ ///
+ [NativeName(NativeNameType.Field, "colorScheme")] + [NativeName(NativeNameType.Type, "const SDL_MessageBoxColorScheme*")] + public unsafe SDLMessageBoxColorScheme* ColorScheme; + + + /// /// To be documented. /// public unsafe SDLMessageBoxData(uint flags = default, SDLWindow* window = default, byte* title = default, byte* message = default, int numbuttons = default, SDLMessageBoxButtonData* buttons = default, SDLMessageBoxColorScheme* colorScheme = default) + { + Flags = flags; + Window = window; + Title = title; + Message = message; + Numbuttons = numbuttons; + Buttons = buttons; + ColorScheme = colorScheme; + } + + + } + + /// + /// Information on the capabilities of a render driver or context.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_RendererInfo")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLRendererInfo + { + /// + /// The name of the renderer
+ ///
+ [NativeName(NativeNameType.Field, "name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Name; + + /// + /// Supported ::SDL_RendererFlags
+ ///
+ [NativeName(NativeNameType.Field, "flags")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint Flags; + + /// + /// The number of available texture formats
+ ///
+ [NativeName(NativeNameType.Field, "num_texture_formats")] + [NativeName(NativeNameType.Type, "Uint32")] + public uint NumTextureFormats; + + /// + /// The available texture formats
+ ///
+ [NativeName(NativeNameType.Field, "texture_formats")] + [NativeName(NativeNameType.Type, "Uint32[16]")] + public uint TextureFormats_0; + public uint TextureFormats_1; + public uint TextureFormats_2; + public uint TextureFormats_3; + public uint TextureFormats_4; + public uint TextureFormats_5; + public uint TextureFormats_6; + public uint TextureFormats_7; + public uint TextureFormats_8; + public uint TextureFormats_9; + public uint TextureFormats_10; + public uint TextureFormats_11; + public uint TextureFormats_12; + public uint TextureFormats_13; + public uint TextureFormats_14; + public uint TextureFormats_15; + + /// + /// The maximum texture width
+ ///
+ [NativeName(NativeNameType.Field, "max_texture_width")] + [NativeName(NativeNameType.Type, "int")] + public int MaxTextureWidth; + + /// + /// The maximum texture height
+ ///
+ [NativeName(NativeNameType.Field, "max_texture_height")] + [NativeName(NativeNameType.Type, "int")] + public int MaxTextureHeight; + + + /// /// To be documented. /// public unsafe SDLRendererInfo(byte* name = default, uint flags = default, uint numTextureFormats = default, uint* textureFormats = default, int maxTextureWidth = default, int maxTextureHeight = default) + { + Name = name; + Flags = flags; + NumTextureFormats = numTextureFormats; + if (textureFormats != default) + { + TextureFormats_0 = textureFormats[0]; + TextureFormats_1 = textureFormats[1]; + TextureFormats_2 = textureFormats[2]; + TextureFormats_3 = textureFormats[3]; + TextureFormats_4 = textureFormats[4]; + TextureFormats_5 = textureFormats[5]; + TextureFormats_6 = textureFormats[6]; + TextureFormats_7 = textureFormats[7]; + TextureFormats_8 = textureFormats[8]; + TextureFormats_9 = textureFormats[9]; + TextureFormats_10 = textureFormats[10]; + TextureFormats_11 = textureFormats[11]; + TextureFormats_12 = textureFormats[12]; + TextureFormats_13 = textureFormats[13]; + TextureFormats_14 = textureFormats[14]; + TextureFormats_15 = textureFormats[15]; + } + MaxTextureWidth = maxTextureWidth; + MaxTextureHeight = maxTextureHeight; + } + + /// /// To be documented. /// public unsafe SDLRendererInfo(byte* name = default, uint flags = default, uint numTextureFormats = default, Span textureFormats = default, int maxTextureWidth = default, int maxTextureHeight = default) + { + Name = name; + Flags = flags; + NumTextureFormats = numTextureFormats; + if (textureFormats != default) + { + TextureFormats_0 = textureFormats[0]; + TextureFormats_1 = textureFormats[1]; + TextureFormats_2 = textureFormats[2]; + TextureFormats_3 = textureFormats[3]; + TextureFormats_4 = textureFormats[4]; + TextureFormats_5 = textureFormats[5]; + TextureFormats_6 = textureFormats[6]; + TextureFormats_7 = textureFormats[7]; + TextureFormats_8 = textureFormats[8]; + TextureFormats_9 = textureFormats[9]; + TextureFormats_10 = textureFormats[10]; + TextureFormats_11 = textureFormats[11]; + TextureFormats_12 = textureFormats[12]; + TextureFormats_13 = textureFormats[13]; + TextureFormats_14 = textureFormats[14]; + TextureFormats_15 = textureFormats[15]; + } + MaxTextureWidth = maxTextureWidth; + MaxTextureHeight = maxTextureHeight; + } + + + /// + /// The available texture formats
+ ///
+ } + + /// + /// Vertex structure
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_Vertex")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLVertex + { + /// + /// Vertex position, in SDL_Renderer coordinates
+ ///
+ [NativeName(NativeNameType.Field, "position")] + [NativeName(NativeNameType.Type, "SDL_FPoint")] + public SDLFPoint Position; + + /// + /// Vertex color
+ ///
+ [NativeName(NativeNameType.Field, "color")] + [NativeName(NativeNameType.Type, "SDL_Color")] + public SDLColor Color; + + /// + /// Normalized texture coordinates, if needed
+ ///
+ [NativeName(NativeNameType.Field, "tex_coord")] + [NativeName(NativeNameType.Type, "SDL_FPoint")] + public SDLFPoint TexCoord; + + + /// /// To be documented. /// public unsafe SDLVertex(SDLFPoint position = default, SDLColor color = default, SDLFPoint texCoord = default) + { + Position = position; + Color = color; + TexCoord = texCoord; + } + + + } + + /// + /// A structure representing rendering state
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_Renderer")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLRenderer + { + + + } + + /// + /// An efficient driver-specific representation of pixel data
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_Texture")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLTexture + { + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_WindowShapeParams")] + [StructLayout(LayoutKind.Explicit)] + public partial struct SDLWindowShapeParams + { + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.Field, "binarizationCutoff")] + [NativeName(NativeNameType.Type, "Uint8")] + [FieldOffset(0)] + public byte BinarizationCutoff; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "colorKey")] + [NativeName(NativeNameType.Type, "SDL_Color")] + [FieldOffset(0)] + public SDLColor ColorKey; + + + /// /// To be documented. /// public unsafe SDLWindowShapeParams(byte binarizationCutoff = default, SDLColor colorKey = default) + { + BinarizationCutoff = binarizationCutoff; + ColorKey = colorKey; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_WindowShapeMode")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLWindowShapeMode + { + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.Field, "mode")] + [NativeName(NativeNameType.Type, "WindowShapeMode")] + public WindowShapeMode Mode; + + /// + ///
+ /// + /// To be documented. + /// + ///
+ [NativeName(NativeNameType.Field, "parameters")] + [NativeName(NativeNameType.Type, "SDL_WindowShapeParams")] + public SDLWindowShapeParams Parameters; + + + /// /// To be documented. /// public unsafe SDLWindowShapeMode(WindowShapeMode mode = default, SDLWindowShapeParams parameters = default) + { + Mode = mode; + Parameters = parameters; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "IDirect3DDevice9")] + [StructLayout(LayoutKind.Sequential)] + public partial struct IDirect3DDevice9 + { + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "ID3D11Device")] + [StructLayout(LayoutKind.Sequential)] + public partial struct ID3D11Device + { + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "ID3D12Device")] + [StructLayout(LayoutKind.Sequential)] + public partial struct ID3D12Device + { + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "SDL_Locale")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLLocale + { + /// + /// A language name, like "en" for English.
+ ///
+ [NativeName(NativeNameType.Field, "language")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Language; + + /// + /// A country, like "US" for America. Can be NULL.
+ ///
+ [NativeName(NativeNameType.Field, "country")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Country; + + + /// /// To be documented. /// public unsafe SDLLocale(byte* language = default, byte* country = default) + { + Language = language; + Country = country; + } + + + } + + /// + ///
+ /// + /// To be documented. + /// + /// Your application has access to a special type of event ::SDL_SYSWMEVENT,
+ /// which contains window-manager specific information and arrives whenever
+ /// an unhandled window event occurs. This event is ignored by default, but
+ /// you can enable it with SDL_EventState().
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SDL_SysWMinfo")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SDLSysWMinfo + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Explicit)] + public partial struct InfoUnion + { + /// + /// To be documented. + /// + [NativeName(NativeNameType.StructOrClass, "")] + [StructLayout(LayoutKind.Sequential)] + public partial struct WinUnion + { + /// + /// The window handle
+ ///
+ [NativeName(NativeNameType.Field, "window")] + [NativeName(NativeNameType.Type, "HWND")] + public nint Window; + + /// + /// The window device context
+ ///
+ [NativeName(NativeNameType.Field, "hdc")] + [NativeName(NativeNameType.Type, "HDC")] + public nint Hdc; + + /// + /// The instance handle
+ ///
+ [NativeName(NativeNameType.Field, "hinstance")] + [NativeName(NativeNameType.Type, "HINSTANCE")] + public nint Hinstance; + + + /// /// To be documented. /// public unsafe WinUnion(nint window = default, nint hdc = default, nint hinstance = default) + { + Window = window; + Hdc = hdc; + Hinstance = hinstance; + } + + + } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "win")] + [NativeName(NativeNameType.Type, "")] + [FieldOffset(0)] + public WinUnion Win; + + /// + /// Make sure this union is always 64 bytes (8 64-bit pointers).
+ /// Be careful not to overflow this if you add a new target!
+ ///
+ [NativeName(NativeNameType.Field, "dummy")] + [NativeName(NativeNameType.Type, "Uint8[64]")] + [FieldOffset(0)] + public byte Dummy_0; + [FieldOffset(64)] + public byte Dummy_1; + [FieldOffset(128)] + public byte Dummy_2; + [FieldOffset(192)] + public byte Dummy_3; + [FieldOffset(256)] + public byte Dummy_4; + [FieldOffset(320)] + public byte Dummy_5; + [FieldOffset(384)] + public byte Dummy_6; + [FieldOffset(448)] + public byte Dummy_7; + [FieldOffset(512)] + public byte Dummy_8; + [FieldOffset(576)] + public byte Dummy_9; + [FieldOffset(640)] + public byte Dummy_10; + [FieldOffset(704)] + public byte Dummy_11; + [FieldOffset(768)] + public byte Dummy_12; + [FieldOffset(832)] + public byte Dummy_13; + [FieldOffset(896)] + public byte Dummy_14; + [FieldOffset(960)] + public byte Dummy_15; + [FieldOffset(1024)] + public byte Dummy_16; + [FieldOffset(1088)] + public byte Dummy_17; + [FieldOffset(1152)] + public byte Dummy_18; + [FieldOffset(1216)] + public byte Dummy_19; + [FieldOffset(1280)] + public byte Dummy_20; + [FieldOffset(1344)] + public byte Dummy_21; + [FieldOffset(1408)] + public byte Dummy_22; + [FieldOffset(1472)] + public byte Dummy_23; + [FieldOffset(1536)] + public byte Dummy_24; + [FieldOffset(1600)] + public byte Dummy_25; + [FieldOffset(1664)] + public byte Dummy_26; + [FieldOffset(1728)] + public byte Dummy_27; + [FieldOffset(1792)] + public byte Dummy_28; + [FieldOffset(1856)] + public byte Dummy_29; + [FieldOffset(1920)] + public byte Dummy_30; + [FieldOffset(1984)] + public byte Dummy_31; + [FieldOffset(2048)] + public byte Dummy_32; + [FieldOffset(2112)] + public byte Dummy_33; + [FieldOffset(2176)] + public byte Dummy_34; + [FieldOffset(2240)] + public byte Dummy_35; + [FieldOffset(2304)] + public byte Dummy_36; + [FieldOffset(2368)] + public byte Dummy_37; + [FieldOffset(2432)] + public byte Dummy_38; + [FieldOffset(2496)] + public byte Dummy_39; + [FieldOffset(2560)] + public byte Dummy_40; + [FieldOffset(2624)] + public byte Dummy_41; + [FieldOffset(2688)] + public byte Dummy_42; + [FieldOffset(2752)] + public byte Dummy_43; + [FieldOffset(2816)] + public byte Dummy_44; + [FieldOffset(2880)] + public byte Dummy_45; + [FieldOffset(2944)] + public byte Dummy_46; + [FieldOffset(3008)] + public byte Dummy_47; + [FieldOffset(3072)] + public byte Dummy_48; + [FieldOffset(3136)] + public byte Dummy_49; + [FieldOffset(3200)] + public byte Dummy_50; + [FieldOffset(3264)] + public byte Dummy_51; + [FieldOffset(3328)] + public byte Dummy_52; + [FieldOffset(3392)] + public byte Dummy_53; + [FieldOffset(3456)] + public byte Dummy_54; + [FieldOffset(3520)] + public byte Dummy_55; + [FieldOffset(3584)] + public byte Dummy_56; + [FieldOffset(3648)] + public byte Dummy_57; + [FieldOffset(3712)] + public byte Dummy_58; + [FieldOffset(3776)] + public byte Dummy_59; + [FieldOffset(3840)] + public byte Dummy_60; + [FieldOffset(3904)] + public byte Dummy_61; + [FieldOffset(3968)] + public byte Dummy_62; + [FieldOffset(4032)] + public byte Dummy_63; + + + /// /// To be documented. /// public unsafe InfoUnion(WinUnion win = default, byte* dummy = default) + { + Win = win; + if (dummy != default) + { + Dummy_0 = dummy[0]; + Dummy_1 = dummy[1]; + Dummy_2 = dummy[2]; + Dummy_3 = dummy[3]; + Dummy_4 = dummy[4]; + Dummy_5 = dummy[5]; + Dummy_6 = dummy[6]; + Dummy_7 = dummy[7]; + Dummy_8 = dummy[8]; + Dummy_9 = dummy[9]; + Dummy_10 = dummy[10]; + Dummy_11 = dummy[11]; + Dummy_12 = dummy[12]; + Dummy_13 = dummy[13]; + Dummy_14 = dummy[14]; + Dummy_15 = dummy[15]; + Dummy_16 = dummy[16]; + Dummy_17 = dummy[17]; + Dummy_18 = dummy[18]; + Dummy_19 = dummy[19]; + Dummy_20 = dummy[20]; + Dummy_21 = dummy[21]; + Dummy_22 = dummy[22]; + Dummy_23 = dummy[23]; + Dummy_24 = dummy[24]; + Dummy_25 = dummy[25]; + Dummy_26 = dummy[26]; + Dummy_27 = dummy[27]; + Dummy_28 = dummy[28]; + Dummy_29 = dummy[29]; + Dummy_30 = dummy[30]; + Dummy_31 = dummy[31]; + Dummy_32 = dummy[32]; + Dummy_33 = dummy[33]; + Dummy_34 = dummy[34]; + Dummy_35 = dummy[35]; + Dummy_36 = dummy[36]; + Dummy_37 = dummy[37]; + Dummy_38 = dummy[38]; + Dummy_39 = dummy[39]; + Dummy_40 = dummy[40]; + Dummy_41 = dummy[41]; + Dummy_42 = dummy[42]; + Dummy_43 = dummy[43]; + Dummy_44 = dummy[44]; + Dummy_45 = dummy[45]; + Dummy_46 = dummy[46]; + Dummy_47 = dummy[47]; + Dummy_48 = dummy[48]; + Dummy_49 = dummy[49]; + Dummy_50 = dummy[50]; + Dummy_51 = dummy[51]; + Dummy_52 = dummy[52]; + Dummy_53 = dummy[53]; + Dummy_54 = dummy[54]; + Dummy_55 = dummy[55]; + Dummy_56 = dummy[56]; + Dummy_57 = dummy[57]; + Dummy_58 = dummy[58]; + Dummy_59 = dummy[59]; + Dummy_60 = dummy[60]; + Dummy_61 = dummy[61]; + Dummy_62 = dummy[62]; + Dummy_63 = dummy[63]; + } + } + + /// /// To be documented. /// public unsafe InfoUnion(WinUnion win = default, Span dummy = default) + { + Win = win; + if (dummy != default) + { + Dummy_0 = dummy[0]; + Dummy_1 = dummy[1]; + Dummy_2 = dummy[2]; + Dummy_3 = dummy[3]; + Dummy_4 = dummy[4]; + Dummy_5 = dummy[5]; + Dummy_6 = dummy[6]; + Dummy_7 = dummy[7]; + Dummy_8 = dummy[8]; + Dummy_9 = dummy[9]; + Dummy_10 = dummy[10]; + Dummy_11 = dummy[11]; + Dummy_12 = dummy[12]; + Dummy_13 = dummy[13]; + Dummy_14 = dummy[14]; + Dummy_15 = dummy[15]; + Dummy_16 = dummy[16]; + Dummy_17 = dummy[17]; + Dummy_18 = dummy[18]; + Dummy_19 = dummy[19]; + Dummy_20 = dummy[20]; + Dummy_21 = dummy[21]; + Dummy_22 = dummy[22]; + Dummy_23 = dummy[23]; + Dummy_24 = dummy[24]; + Dummy_25 = dummy[25]; + Dummy_26 = dummy[26]; + Dummy_27 = dummy[27]; + Dummy_28 = dummy[28]; + Dummy_29 = dummy[29]; + Dummy_30 = dummy[30]; + Dummy_31 = dummy[31]; + Dummy_32 = dummy[32]; + Dummy_33 = dummy[33]; + Dummy_34 = dummy[34]; + Dummy_35 = dummy[35]; + Dummy_36 = dummy[36]; + Dummy_37 = dummy[37]; + Dummy_38 = dummy[38]; + Dummy_39 = dummy[39]; + Dummy_40 = dummy[40]; + Dummy_41 = dummy[41]; + Dummy_42 = dummy[42]; + Dummy_43 = dummy[43]; + Dummy_44 = dummy[44]; + Dummy_45 = dummy[45]; + Dummy_46 = dummy[46]; + Dummy_47 = dummy[47]; + Dummy_48 = dummy[48]; + Dummy_49 = dummy[49]; + Dummy_50 = dummy[50]; + Dummy_51 = dummy[51]; + Dummy_52 = dummy[52]; + Dummy_53 = dummy[53]; + Dummy_54 = dummy[54]; + Dummy_55 = dummy[55]; + Dummy_56 = dummy[56]; + Dummy_57 = dummy[57]; + Dummy_58 = dummy[58]; + Dummy_59 = dummy[59]; + Dummy_60 = dummy[60]; + Dummy_61 = dummy[61]; + Dummy_62 = dummy[62]; + Dummy_63 = dummy[63]; + } + } + + + /// + /// Make sure this union is always 64 bytes (8 64-bit pointers).
+ /// Be careful not to overflow this if you add a new target!
+ ///
+ } + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "version")] + [NativeName(NativeNameType.Type, "SDL_version")] + public SDLVersion Version; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "subsystem")] + [NativeName(NativeNameType.Type, "SDL_SYSWM_TYPE")] + public SdlSyswmType Subsystem; + + /// + /// To be documented. + /// + [NativeName(NativeNameType.Field, "info")] + [NativeName(NativeNameType.Type, "")] + public InfoUnion Union; + + + /// /// To be documented. /// public unsafe SDLSysWMinfo(SDLVersion version = default, SdlSyswmType subsystem = default, InfoUnion union = default) + { + Version = version; + Subsystem = subsystem; + Union = union; + } + + + } + +} diff --git a/Hexa.NET.SDL2/Hexa.NET.SDL2.csproj b/Hexa.NET.SDL2/Hexa.NET.SDL2.csproj index 98de7a0..87440a6 100644 --- a/Hexa.NET.SDL2/Hexa.NET.SDL2.csproj +++ b/Hexa.NET.SDL2/Hexa.NET.SDL2.csproj @@ -1,14 +1,13 @@ - - net7.0 - enable - enable - true - + + net8.0 + enable + enable + true + - - - - - + + + + \ No newline at end of file diff --git a/Hexa.NET.SPIRVCross/Generated/Constants.cs b/Hexa.NET.SPIRVCross/Generated/Constants.cs index 774b2af..84fd363 100644 --- a/Hexa.NET.SPIRVCross/Generated/Constants.cs +++ b/Hexa.NET.SPIRVCross/Generated/Constants.cs @@ -15,60 +15,79 @@ namespace Hexa.NET.SPIRVCross public unsafe partial class SPIRV { [NativeName(NativeNameType.Const, "_MSC_VER")] + [NativeName(NativeNameType.Value, "1930")] public const int _MSC_VER = 1930; [NativeName(NativeNameType.Const, "_WIN32")] + [NativeName(NativeNameType.Value, "1")] public const int _WIN32 = 1; [NativeName(NativeNameType.Const, "_M_AMD64")] + [NativeName(NativeNameType.Value, "100")] public const int _M_AMD64 = 100; [NativeName(NativeNameType.Const, "_M_X64")] + [NativeName(NativeNameType.Value, "100")] public const int _M_X64 = 100; [NativeName(NativeNameType.Const, "_WIN64")] + [NativeName(NativeNameType.Value, "1")] public const int _WIN64 = 1; [NativeName(NativeNameType.Const, "SPV_VERSION")] + [NativeName(NativeNameType.Value, "0x10600")] public const int SPV_VERSION = 0x10600; [NativeName(NativeNameType.Const, "SPV_REVISION")] + [NativeName(NativeNameType.Value, "1")] public const int SPV_REVISION = 1; [NativeName(NativeNameType.Const, "SPVC_C_API_VERSION_MAJOR")] + [NativeName(NativeNameType.Value, "0")] public const int SPVC_C_API_VERSION_MAJOR = 0; [NativeName(NativeNameType.Const, "SPVC_C_API_VERSION_MINOR")] + [NativeName(NativeNameType.Value, "57")] public const int SPVC_C_API_VERSION_MINOR = 57; [NativeName(NativeNameType.Const, "SPVC_C_API_VERSION_PATCH")] + [NativeName(NativeNameType.Value, "0")] public const int SPVC_C_API_VERSION_PATCH = 0; [NativeName(NativeNameType.Const, "SPVC_COMPILER_OPTION_COMMON_BIT")] + [NativeName(NativeNameType.Value, "0x1000000")] public const int SPVC_COMPILER_OPTION_COMMON_BIT = 0x1000000; [NativeName(NativeNameType.Const, "SPVC_COMPILER_OPTION_GLSL_BIT")] + [NativeName(NativeNameType.Value, "0x2000000")] public const int SPVC_COMPILER_OPTION_GLSL_BIT = 0x2000000; [NativeName(NativeNameType.Const, "SPVC_COMPILER_OPTION_HLSL_BIT")] + [NativeName(NativeNameType.Value, "0x4000000")] public const int SPVC_COMPILER_OPTION_HLSL_BIT = 0x4000000; [NativeName(NativeNameType.Const, "SPVC_COMPILER_OPTION_MSL_BIT")] + [NativeName(NativeNameType.Value, "0x8000000")] public const int SPVC_COMPILER_OPTION_MSL_BIT = 0x8000000; [NativeName(NativeNameType.Const, "SPVC_COMPILER_OPTION_LANG_BITS")] + [NativeName(NativeNameType.Value, "0x0f000000")] public const int SPVC_COMPILER_OPTION_LANG_BITS = 0x0f000000; [NativeName(NativeNameType.Const, "SPVC_COMPILER_OPTION_ENUM_BITS")] + [NativeName(NativeNameType.Value, "0xffffff")] public const int SPVC_COMPILER_OPTION_ENUM_BITS = 0xffffff; [NativeName(NativeNameType.Const, "SPVC_MSL_PUSH_CONSTANT_BINDING")] + [NativeName(NativeNameType.Value, "(0)")] public const int SPVC_MSL_PUSH_CONSTANT_BINDING = (0); [NativeName(NativeNameType.Const, "SPVC_MSL_AUX_BUFFER_STRUCT_VERSION")] + [NativeName(NativeNameType.Value, "1")] public const int SPVC_MSL_AUX_BUFFER_STRUCT_VERSION = 1; [NativeName(NativeNameType.Const, "SPVC_HLSL_PUSH_CONSTANT_BINDING")] + [NativeName(NativeNameType.Value, "(0)")] public const int SPVC_HLSL_PUSH_CONSTANT_BINDING = (0); } diff --git a/Hexa.NET.SPIRVCross/Generated/Enumerations.cs b/Hexa.NET.SPIRVCross/Generated/Enumerations.cs index 3ed3ca4..208b619 100644 --- a/Hexa.NET.SPIRVCross/Generated/Enumerations.cs +++ b/Hexa.NET.SPIRVCross/Generated/Enumerations.cs @@ -1,12145 +1,6200 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; - -namespace Hexa.NET.SPIRVCross -{ - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvSourceLanguage_")] - public enum SpvSourceLanguage - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageUnknown")] - Unknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageESSL")] - Essl = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageGLSL")] - Glsl = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageOpenCL_C")] - OpenClc = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageOpenCL_CPP")] - OpenClCpp = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageHLSL")] - Hlsl = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageCPP_for_OpenCL")] - CppForOpenCl = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageSYCL")] - Sycl = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvExecutionModel_")] - public enum SpvExecutionModel - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelVertex")] - Vertex = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTessellationControl")] - TessellationControl = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTessellationEvaluation")] - TessellationEvaluation = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelGeometry")] - Geometry = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelFragment")] - Fragment = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelGLCompute")] - GlCompute = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelKernel")] - Kernel = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTaskNV")] - TaskNv = unchecked(5267), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMeshNV")] - MeshNv = unchecked(5268), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelRayGenerationKHR")] - RayGenerationKhr = unchecked(5313), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelRayGenerationNV")] - RayGenerationNv = unchecked(5313), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelIntersectionKHR")] - IntersectionKhr = unchecked(5314), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelIntersectionNV")] - IntersectionNv = unchecked(5314), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelAnyHitKHR")] - AnyHitKhr = unchecked(5315), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelAnyHitNV")] - AnyHitNv = unchecked(5315), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelClosestHitKHR")] - ClosestHitKhr = unchecked(5316), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelClosestHitNV")] - ClosestHitNv = unchecked(5316), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMissKHR")] - MissKhr = unchecked(5317), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMissNV")] - MissNv = unchecked(5317), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelCallableKHR")] - CallableKhr = unchecked(5318), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelCallableNV")] - CallableNv = unchecked(5318), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTaskEXT")] - TaskExt = unchecked(5364), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMeshEXT")] - MeshExt = unchecked(5365), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvAddressingModel_")] - public enum SpvAddressingModel - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvAddressingModelLogical")] - Logical = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysical32")] - Physical32 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysical64")] - Physical64 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysicalStorageBuffer64")] - PhysicalStorageBuffer64 = unchecked(5348), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysicalStorageBuffer64EXT")] - PhysicalStorageBuffer64Ext = unchecked(5348), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvAddressingModelMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvMemoryModel_")] - public enum SpvMemoryModel - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryModelSimple")] - Simple = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryModelGLSL450")] - Glsl450 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryModelOpenCL")] - OpenCl = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryModelVulkan")] - Vulkan = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryModelVulkanKHR")] - VulkanKhr = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryModelMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvExecutionMode_")] - public enum SpvExecutionMode - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInvocations")] - Invocations = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSpacingEqual")] - SpacingEqual = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSpacingFractionalEven")] - SpacingFractionalEven = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSpacingFractionalOdd")] - SpacingFractionalOdd = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeVertexOrderCw")] - VertexOrderCw = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeVertexOrderCcw")] - VertexOrderCcw = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModePixelCenterInteger")] - PixelCenterInteger = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOriginUpperLeft")] - OriginUpperLeft = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOriginLowerLeft")] - OriginLowerLeft = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeEarlyFragmentTests")] - EarlyFragmentTests = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModePointMode")] - PointMode = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeXfb")] - Xfb = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthReplacing")] - DepthReplacing = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthGreater")] - DepthGreater = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthLess")] - DepthLess = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthUnchanged")] - DepthUnchanged = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSize")] - LocalSize = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSizeHint")] - LocalSizeHint = unchecked(18), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputPoints")] - InputPoints = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputLines")] - InputLines = unchecked(20), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputLinesAdjacency")] - InputLinesAdjacency = unchecked(21), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeTriangles")] - Triangles = unchecked(22), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputTrianglesAdjacency")] - InputTrianglesAdjacency = unchecked(23), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeQuads")] - Quads = unchecked(24), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeIsolines")] - Isolines = unchecked(25), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputVertices")] - OutputVertices = unchecked(26), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputPoints")] - OutputPoints = unchecked(27), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputLineStrip")] - OutputLineStrip = unchecked(28), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputTriangleStrip")] - OutputTriangleStrip = unchecked(29), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeVecTypeHint")] - VecTypeHint = unchecked(30), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeContractionOff")] - ContractionOff = unchecked(31), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInitializer")] - Initializer = unchecked(33), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeFinalizer")] - Finalizer = unchecked(34), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupSize")] - SubgroupSize = unchecked(35), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupsPerWorkgroup")] - SubgroupsPerWorkgroup = unchecked(36), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupsPerWorkgroupId")] - SubgroupsPerWorkgroupId = unchecked(37), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSizeId")] - LocalSizeId = unchecked(38), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSizeHintId")] - LocalSizeHintId = unchecked(39), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupUniformControlFlowKHR")] - SubgroupUniformControlFlowKhr = unchecked(4421), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModePostDepthCoverage")] - PostDepthCoverage = unchecked(4446), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDenormPreserve")] - DenormPreserve = unchecked(4459), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDenormFlushToZero")] - DenormFlushToZero = unchecked(4460), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSignedZeroInfNanPreserve")] - SignedZeroInfNanPreserve = unchecked(4461), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTE")] - RoundingModeRte = unchecked(4462), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTZ")] - RoundingModeRtz = unchecked(4463), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeEarlyAndLateFragmentTestsAMD")] - EarlyAndLateFragmentTestsAmd = unchecked(5017), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefReplacingEXT")] - StencilRefReplacingExt = unchecked(5027), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefUnchangedFrontAMD")] - StencilRefUnchangedFrontAmd = unchecked(5079), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefGreaterFrontAMD")] - StencilRefGreaterFrontAmd = unchecked(5080), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefLessFrontAMD")] - StencilRefLessFrontAmd = unchecked(5081), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefUnchangedBackAMD")] - StencilRefUnchangedBackAmd = unchecked(5082), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefGreaterBackAMD")] - StencilRefGreaterBackAmd = unchecked(5083), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefLessBackAMD")] - StencilRefLessBackAmd = unchecked(5084), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputLinesEXT")] - OutputLinesExt = unchecked(5269), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputLinesNV")] - OutputLinesNv = unchecked(5269), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputPrimitivesEXT")] - OutputPrimitivesExt = unchecked(5270), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputPrimitivesNV")] - OutputPrimitivesNv = unchecked(5270), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDerivativeGroupQuadsNV")] - DerivativeGroupQuadsNv = unchecked(5289), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDerivativeGroupLinearNV")] - DerivativeGroupLinearNv = unchecked(5290), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputTrianglesEXT")] - OutputTrianglesExt = unchecked(5298), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputTrianglesNV")] - OutputTrianglesNv = unchecked(5298), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModePixelInterlockOrderedEXT")] - PixelInterlockOrderedExt = unchecked(5366), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModePixelInterlockUnorderedEXT")] - PixelInterlockUnorderedExt = unchecked(5367), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSampleInterlockOrderedEXT")] - SampleInterlockOrderedExt = unchecked(5368), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSampleInterlockUnorderedEXT")] - SampleInterlockUnorderedExt = unchecked(5369), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeShadingRateInterlockOrderedEXT")] - ShadingRateInterlockOrderedExt = unchecked(5370), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeShadingRateInterlockUnorderedEXT")] - ShadingRateInterlockUnorderedExt = unchecked(5371), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSharedLocalMemorySizeINTEL")] - SharedLocalMemorySizeIntel = unchecked(5618), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTPINTEL")] - RoundingModeRtpintel = unchecked(5620), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTNINTEL")] - RoundingModeRtnintel = unchecked(5621), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeFloatingPointModeALTINTEL")] - FloatingPointModeAltintel = unchecked(5622), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeFloatingPointModeIEEEINTEL")] - FloatingPointModeIeeeintel = unchecked(5623), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeMaxWorkgroupSizeINTEL")] - MaxWorkgroupSizeIntel = unchecked(5893), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeMaxWorkDimINTEL")] - MaxWorkDimIntel = unchecked(5894), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNoGlobalOffsetINTEL")] - NoGlobalOffsetIntel = unchecked(5895), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNumSIMDWorkitemsINTEL")] - NumSimdWorkitemsIntel = unchecked(5896), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSchedulerTargetFmaxMhzINTEL")] - SchedulerTargetFmaxMhzIntel = unchecked(5903), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNamedBarrierCountINTEL")] - NamedBarrierCountIntel = unchecked(6417), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvExecutionModeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvStorageClass_")] - public enum SpvStorageClass - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassUniformConstant")] - UniformConstant = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassInput")] - Input = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassUniform")] - Uniform = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassOutput")] - Output = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassWorkgroup")] - Workgroup = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassCrossWorkgroup")] - CrossWorkgroup = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassPrivate")] - Private = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassFunction")] - Function = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassGeneric")] - Generic = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassPushConstant")] - PushConstant = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassAtomicCounter")] - AtomicCounter = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassImage")] - Image = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassStorageBuffer")] - Buffer = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassCallableDataKHR")] - CallableDataKhr = unchecked(5328), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassCallableDataNV")] - CallableDataNv = unchecked(5328), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingCallableDataKHR")] - IncomingCallableDataKhr = unchecked(5329), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingCallableDataNV")] - IncomingCallableDataNv = unchecked(5329), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassRayPayloadKHR")] - RayPayloadKhr = unchecked(5338), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassRayPayloadNV")] - RayPayloadNv = unchecked(5338), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassHitAttributeKHR")] - HitAttributeKhr = unchecked(5339), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassHitAttributeNV")] - HitAttributeNv = unchecked(5339), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingRayPayloadKHR")] - IncomingRayPayloadKhr = unchecked(5342), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingRayPayloadNV")] - IncomingRayPayloadNv = unchecked(5342), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassShaderRecordBufferKHR")] - ShaderRecordBufferKhr = unchecked(5343), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassShaderRecordBufferNV")] - ShaderRecordBufferNv = unchecked(5343), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassPhysicalStorageBuffer")] - PhysicalStorageBuffer = unchecked(5349), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassPhysicalStorageBufferEXT")] - PhysicalStorageBufferExt = unchecked(5349), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassTaskPayloadWorkgroupEXT")] - TaskPayloadWorkgroupExt = unchecked(5402), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassCodeSectionINTEL")] - CodeSectionIntel = unchecked(5605), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassDeviceOnlyINTEL")] - DeviceOnlyIntel = unchecked(5936), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassHostOnlyINTEL")] - HostOnlyIntel = unchecked(5937), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvStorageClassMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvDim_")] - public enum SpvDim - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDim1D")] - Dim1D = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDim2D")] - Dim2D = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDim3D")] - Dim3D = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDimCube")] - Cube = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDimRect")] - Rect = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDimBuffer")] - Buffer = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDimSubpassData")] - SubpassData = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDimMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvSamplerAddressingMode_")] - public enum SpvSamplerAddressingMode - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeNone")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeClampToEdge")] - ClampToEdge = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeClamp")] - Clamp = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeRepeat")] - Repeat = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeRepeatMirrored")] - RepeatMirrored = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvSamplerFilterMode_")] - public enum SpvSamplerFilterMode - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSamplerFilterModeNearest")] - Nearest = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSamplerFilterModeLinear")] - Linear = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSamplerFilterModeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvImageFormat_")] - public enum SpvImageFormat - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatUnknown")] - Unknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba32f")] - Rgba32f = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16f")] - Rgba16f = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR32f")] - Formatr32f = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8")] - Rgba8 = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8Snorm")] - Rgba8Snorm = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg32f")] - Rg32f = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16f")] - Rg16f = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR11fG11fB10f")] - Formatr11fg11fb10f = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16f")] - Formatr16f = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16")] - Rgba16 = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgb10A2")] - Rgb10a2 = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16")] - Rg16 = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8")] - Rg8 = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16")] - Formatr16 = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8")] - Formatr8 = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16Snorm")] - Rgba16Snorm = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16Snorm")] - Rg16Snorm = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8Snorm")] - Rg8Snorm = unchecked(18), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16Snorm")] - Formatr16Snorm = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8Snorm")] - Formatr8Snorm = unchecked(20), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba32i")] - Rgba32i = unchecked(21), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16i")] - Rgba16i = unchecked(22), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8i")] - Rgba8I = unchecked(23), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR32i")] - Formatr32i = unchecked(24), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg32i")] - Rg32i = unchecked(25), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16i")] - Rg16i = unchecked(26), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8i")] - Rg8I = unchecked(27), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16i")] - Formatr16i = unchecked(28), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8i")] - Formatr8I = unchecked(29), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba32ui")] - Rgba32Ui = unchecked(30), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16ui")] - Rgba16Ui = unchecked(31), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8ui")] - Rgba8Ui = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR32ui")] - Formatr32Ui = unchecked(33), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgb10a2ui")] - Rgb10a2Ui = unchecked(34), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg32ui")] - Rg32Ui = unchecked(35), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16ui")] - Rg16Ui = unchecked(36), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8ui")] - Rg8Ui = unchecked(37), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16ui")] - Formatr16Ui = unchecked(38), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8ui")] - Formatr8Ui = unchecked(39), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR64ui")] - Formatr64Ui = unchecked(40), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatR64i")] - Formatr64i = unchecked(41), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageFormatMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvImageChannelOrder_")] - public enum SpvImageChannelOrder - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderR")] - Orderr = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderA")] - Ordera = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRG")] - Rg = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRA")] - Ra = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGB")] - Rgb = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGBA")] - Rgba = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderBGRA")] - Bgra = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderARGB")] - Argb = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderIntensity")] - Intensity = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderLuminance")] - Luminance = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRx")] - Rx = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGx")] - OrderrGx = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGBx")] - RgBx = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderDepth")] - Depth = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderDepthStencil")] - DepthStencil = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersRGB")] - OrdersRgb = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersRGBx")] - OrdersRgBx = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersRGBA")] - OrdersRgba = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersBGRA")] - OrdersBgra = unchecked(18), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderABGR")] - Abgr = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvImageChannelDataType_")] - public enum SpvImageChannelDataType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSnormInt8")] - SnormInt8 = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSnormInt16")] - SnormInt16 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt8")] - UnormInt8 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt16")] - UnormInt16 = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormShort565")] - UnormShort565 = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormShort555")] - UnormShort555 = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt101010")] - UnormInt101010 = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSignedInt8")] - SignedInt8 = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSignedInt16")] - SignedInt16 = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSignedInt32")] - SignedInt32 = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnsignedInt8")] - UnsignedInt8 = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnsignedInt16")] - UnsignedInt16 = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnsignedInt32")] - UnsignedInt32 = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeHalfFloat")] - HalfFloat = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeFloat")] - Float = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt24")] - UnormInt24 = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt101010_2")] - UnormInt1010102 = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvImageOperandsShift_")] - public enum SpvImageOperandsShift - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsBiasShift")] - BiasShift = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsLodShift")] - LodShift = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsGradShift")] - GradShift = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetShift")] - ConstOffsetShift = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetShift")] - OffsetShift = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetsShift")] - ConstOffsetsShift = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSampleShift")] - SampleShift = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMinLodShift")] - MinLodShift = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableShift")] - MakeTexelAvailableShift = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableKHRShift")] - MakeTexelAvailableKhrShift = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleShift")] - MakeTexelVisibleShift = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleKHRShift")] - MakeTexelVisibleKhrShift = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelShift")] - NonPrivateTexelShift = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelKHRShift")] - NonPrivateTexelKhrShift = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelShift")] - VolatileTexelShift = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelKHRShift")] - VolatileTexelKhrShift = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSignExtendShift")] - SignExtendShift = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsZeroExtendShift")] - ZeroExtendShift = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNontemporalShift")] - NontemporalShift = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetsShift")] - OffsetsShift = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvImageOperandsMask_")] - public enum SpvImageOperandsMask - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMaskNone")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsBiasMask")] - BiasMask = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsLodMask")] - LodMask = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsGradMask")] - GradMask = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetMask")] - ConstOffsetMask = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetMask")] - OffsetMask = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetsMask")] - ConstOffsetsMask = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSampleMask")] - SampleMask = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMinLodMask")] - MinLodMask = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableMask")] - MakeTexelAvailableMask = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableKHRMask")] - MakeTexelAvailableKhrMask = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleMask")] - MakeTexelVisibleMask = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleKHRMask")] - MakeTexelVisibleKhrMask = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelMask")] - NonPrivateTexelMask = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelKHRMask")] - NonPrivateTexelKhrMask = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelMask")] - VolatileTexelMask = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelKHRMask")] - VolatileTexelKhrMask = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSignExtendMask")] - SignExtendMask = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsZeroExtendMask")] - ZeroExtendMask = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNontemporalMask")] - NontemporalMask = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetsMask")] - OffsetsMask = unchecked(65536), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvFPFastMathModeShift_")] - public enum SpvFPFastMathModeShift - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotNaNShift")] - NotNanShift = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotInfShift")] - NotInfShift = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNSZShift")] - NszShift = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowRecipShift")] - AllowRecipShift = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeFastShift")] - Shift = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowContractFastINTELShift")] - AllowContractFastIntelShift = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowReassocINTELShift")] - AllowReassocIntelShift = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvFPFastMathModeMask_")] - public enum SpvFPFastMathModeMask - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeMaskNone")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotNaNMask")] - NotNanMask = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotInfMask")] - NotInfMask = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNSZMask")] - NszMask = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowRecipMask")] - AllowRecipMask = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeFastMask")] - Mask = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowContractFastINTELMask")] - AllowContractFastIntelMask = unchecked(65536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowReassocINTELMask")] - AllowReassocIntelMask = unchecked(131072), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvFPRoundingMode_")] - public enum SpvFPRoundingMode - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTE")] - Rte = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTZ")] - Rtz = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTP")] - Rtp = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTN")] - Rtn = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvLinkageType_")] - public enum SpvLinkageType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeExport")] - Export = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeImport")] - Import = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeLinkOnceODR")] - LinkOnceOdr = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvAccessQualifier_")] - public enum SpvAccessQualifier - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierReadOnly")] - ReadOnly = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierWriteOnly")] - WriteOnly = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierReadWrite")] - ReadWrite = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvFunctionParameterAttribute_")] - public enum SpvFunctionParameterAttribute - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeZext")] - Zext = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeSext")] - Sext = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeByVal")] - ByVal = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeSret")] - Sret = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoAlias")] - NoAlias = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoCapture")] - NoCapture = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoWrite")] - NoWrite = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoReadWrite")] - NoReadWrite = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvDecoration_")] - public enum SpvDecoration - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationRelaxedPrecision")] - RelaxedPrecision = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationSpecId")] - SpecId = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBlock")] - Block = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBufferBlock")] - BufferBlock = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationRowMajor")] - RowMajor = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationColMajor")] - ColMajor = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationArrayStride")] - ArrayStride = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationMatrixStride")] - MatrixStride = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationGLSLShared")] - GlslShared = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationGLSLPacked")] - GlslPacked = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationCPacked")] - DecorationcPacked = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBuiltIn")] - BuiltIn = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationNoPerspective")] - NoPerspective = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationFlat")] - Flat = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationPatch")] - Patch = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationCentroid")] - Centroid = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationSample")] - Sample = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationInvariant")] - Invariant = unchecked(18), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationRestrict")] - Restrict = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationAliased")] - Aliased = unchecked(20), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationVolatile")] - Volatile = unchecked(21), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationConstant")] - Constant = unchecked(22), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationCoherent")] - Coherent = unchecked(23), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationNonWritable")] - NonWritable = unchecked(24), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationNonReadable")] - NonReadable = unchecked(25), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationUniform")] - Uniform = unchecked(26), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationUniformId")] - UniformId = unchecked(27), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationSaturatedConversion")] - SaturatedConversion = unchecked(28), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationStream")] - Stream = unchecked(29), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationLocation")] - Location = unchecked(30), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationComponent")] - Component = unchecked(31), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationIndex")] - Index = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBinding")] - Binding = unchecked(33), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationDescriptorSet")] - DescriptorSet = unchecked(34), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationOffset")] - Offset = unchecked(35), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationXfbBuffer")] - XfbBuffer = unchecked(36), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationXfbStride")] - XfbStride = unchecked(37), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationFuncParamAttr")] - FuncParamAttr = unchecked(38), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationFPRoundingMode")] - FpRoundingMode = unchecked(39), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationFPFastMathMode")] - FpFastMathMode = unchecked(40), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationLinkageAttributes")] - LinkageAttributes = unchecked(41), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationNoContraction")] - NoContraction = unchecked(42), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationInputAttachmentIndex")] - InputAttachmentIndex = unchecked(43), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationAlignment")] - Alignment = unchecked(44), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxByteOffset")] - MaxByteOffset = unchecked(45), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationAlignmentId")] - AlignmentId = unchecked(46), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxByteOffsetId")] - MaxByteOffsetId = unchecked(47), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationNoSignedWrap")] - NoSignedWrap = unchecked(4469), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationNoUnsignedWrap")] - NoUnsignedWrap = unchecked(4470), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationExplicitInterpAMD")] - ExplicitInterpAmd = unchecked(4999), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationOverrideCoverageNV")] - OverrideCoverageNv = unchecked(5248), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationPassthroughNV")] - PassthroughNv = unchecked(5250), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationViewportRelativeNV")] - ViewportRelativeNv = unchecked(5252), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationSecondaryViewportRelativeNV")] - SecondaryViewportRelativeNv = unchecked(5256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationPerPrimitiveEXT")] - PerPrimitiveExt = unchecked(5271), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationPerPrimitiveNV")] - PerPrimitiveNv = unchecked(5271), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationPerViewNV")] - PerViewNv = unchecked(5272), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationPerTaskNV")] - PerTaskNv = unchecked(5273), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationPerVertexKHR")] - PerVertexKhr = unchecked(5285), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationPerVertexNV")] - PerVertexNv = unchecked(5285), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationNonUniform")] - NonUniform = unchecked(5300), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationNonUniformEXT")] - NonUniformExt = unchecked(5300), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationRestrictPointer")] - RestrictPointer = unchecked(5355), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationRestrictPointerEXT")] - RestrictPointerExt = unchecked(5355), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationAliasedPointer")] - AliasedPointer = unchecked(5356), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationAliasedPointerEXT")] - AliasedPointerExt = unchecked(5356), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBindlessSamplerNV")] - BindlessSamplerNv = unchecked(5398), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBindlessImageNV")] - BindlessImageNv = unchecked(5399), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBoundSamplerNV")] - BoundSamplerNv = unchecked(5400), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBoundImageNV")] - BoundImageNv = unchecked(5401), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationSIMTCallINTEL")] - SimtCallIntel = unchecked(5599), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationReferencedIndirectlyINTEL")] - ReferencedIndirectlyIntel = unchecked(5602), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationClobberINTEL")] - ClobberIntel = unchecked(5607), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationSideEffectsINTEL")] - SideEffectsIntel = unchecked(5608), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationVectorComputeVariableINTEL")] - VectorComputeVariableIntel = unchecked(5624), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationFuncParamIOKindINTEL")] - FuncParamIoKindIntel = unchecked(5625), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationVectorComputeFunctionINTEL")] - VectorComputeFunctionIntel = unchecked(5626), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationStackCallINTEL")] - StackCallIntel = unchecked(5627), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationGlobalVariableOffsetINTEL")] - GlobalVariableOffsetIntel = unchecked(5628), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationCounterBuffer")] - CounterBuffer = unchecked(5634), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationHlslCounterBufferGOOGLE")] - HlslCounterBufferGoogle = unchecked(5634), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationHlslSemanticGOOGLE")] - HlslSemanticGoogle = unchecked(5635), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationUserSemantic")] - UserSemantic = unchecked(5635), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationUserTypeGOOGLE")] - UserTypeGoogle = unchecked(5636), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationFunctionRoundingModeINTEL")] - FunctionRoundingModeIntel = unchecked(5822), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationFunctionDenormModeINTEL")] - FunctionDenormModeIntel = unchecked(5823), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationRegisterINTEL")] - RegisterIntel = unchecked(5825), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationMemoryINTEL")] - MemoryIntel = unchecked(5826), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationNumbanksINTEL")] - NumbanksIntel = unchecked(5827), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBankwidthINTEL")] - BankwidthIntel = unchecked(5828), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxPrivateCopiesINTEL")] - MaxPrivateCopiesIntel = unchecked(5829), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationSinglepumpINTEL")] - SinglepumpIntel = unchecked(5830), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationDoublepumpINTEL")] - DoublepumpIntel = unchecked(5831), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxReplicatesINTEL")] - MaxReplicatesIntel = unchecked(5832), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationSimpleDualPortINTEL")] - SimpleDualPortIntel = unchecked(5833), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationMergeINTEL")] - MergeIntel = unchecked(5834), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBankBitsINTEL")] - BankBitsIntel = unchecked(5835), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationForcePow2DepthINTEL")] - ForcePow2DepthIntel = unchecked(5836), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBurstCoalesceINTEL")] - BurstCoalesceIntel = unchecked(5899), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationCacheSizeINTEL")] - CacheSizeIntel = unchecked(5900), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationDontStaticallyCoalesceINTEL")] - DontStaticallyCoalesceIntel = unchecked(5901), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationPrefetchINTEL")] - PrefetchIntel = unchecked(5902), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationStallEnableINTEL")] - StallEnableIntel = unchecked(5905), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationFuseLoopsInFunctionINTEL")] - FuseLoopsInFunctionIntel = unchecked(5907), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationAliasScopeINTEL")] - AliasScopeIntel = unchecked(5914), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationNoAliasINTEL")] - NoAliasIntel = unchecked(5915), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationBufferLocationINTEL")] - BufferLocationIntel = unchecked(5921), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationIOPipeStorageINTEL")] - IoPipeStorageIntel = unchecked(5944), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationFunctionFloatingPointModeINTEL")] - FunctionFloatingPointModeIntel = unchecked(6080), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationSingleElementVectorINTEL")] - SingleElementVectorIntel = unchecked(6085), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationVectorComputeCallableFunctionINTEL")] - VectorComputeCallableFunctionIntel = unchecked(6087), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationMediaBlockIOINTEL")] - MediaBlockIointel = unchecked(6140), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvDecorationMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvBuiltIn_")] - public enum SpvBuiltIn - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPosition")] - Position = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPointSize")] - PointSize = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInClipDistance")] - ClipDistance = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullDistance")] - CullDistance = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInVertexId")] - VertexId = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceId")] - InstanceId = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveId")] - PrimitiveId = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInInvocationId")] - InvocationId = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInLayer")] - Layer = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewportIndex")] - ViewportIndex = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInTessLevelOuter")] - TessLevelOuter = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInTessLevelInner")] - TessLevelInner = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInTessCoord")] - TessCoord = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPatchVertices")] - PatchVertices = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragCoord")] - FragCoord = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPointCoord")] - PointCoord = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInFrontFacing")] - FrontFacing = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSampleId")] - SampleId = unchecked(18), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSamplePosition")] - SamplePosition = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSampleMask")] - SampleMask = unchecked(20), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragDepth")] - FragDepth = unchecked(22), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInHelperInvocation")] - HelperInvocation = unchecked(23), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInNumWorkgroups")] - NumWorkgroups = unchecked(24), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorkgroupSize")] - WorkgroupSize = unchecked(25), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorkgroupId")] - WorkgroupId = unchecked(26), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInLocalInvocationId")] - LocalInvocationId = unchecked(27), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalInvocationId")] - GlobalInvocationId = unchecked(28), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInLocalInvocationIndex")] - LocalInvocationIndex = unchecked(29), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorkDim")] - WorkDim = unchecked(30), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalSize")] - GlobalSize = unchecked(31), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInEnqueuedWorkgroupSize")] - EnqueuedWorkgroupSize = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalOffset")] - GlobalOffset = unchecked(33), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalLinearId")] - GlobalLinearId = unchecked(34), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupSize")] - SubgroupSize = unchecked(36), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupMaxSize")] - SubgroupMaxSize = unchecked(37), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInNumSubgroups")] - NumSubgroups = unchecked(38), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInNumEnqueuedSubgroups")] - NumEnqueuedSubgroups = unchecked(39), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupId")] - SubgroupId = unchecked(40), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLocalInvocationId")] - SubgroupLocalInvocationId = unchecked(41), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInVertexIndex")] - VertexIndex = unchecked(42), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceIndex")] - InstanceIndex = unchecked(43), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupEqMask")] - SubgroupEqMask = unchecked(4416), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupEqMaskKHR")] - SubgroupEqMaskKhr = unchecked(4416), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGeMask")] - SubgroupGeMask = unchecked(4417), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGeMaskKHR")] - SubgroupGeMaskKhr = unchecked(4417), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGtMask")] - SubgroupGtMask = unchecked(4418), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGtMaskKHR")] - SubgroupGtMaskKhr = unchecked(4418), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLeMask")] - SubgroupLeMask = unchecked(4419), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLeMaskKHR")] - SubgroupLeMaskKhr = unchecked(4419), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLtMask")] - SubgroupLtMask = unchecked(4420), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLtMaskKHR")] - SubgroupLtMaskKhr = unchecked(4420), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaseVertex")] - BaseVertex = unchecked(4424), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaseInstance")] - BaseInstance = unchecked(4425), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInDrawIndex")] - DrawIndex = unchecked(4426), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveShadingRateKHR")] - PrimitiveShadingRateKhr = unchecked(4432), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInDeviceIndex")] - DeviceIndex = unchecked(4438), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewIndex")] - ViewIndex = unchecked(4440), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInShadingRateKHR")] - ShadingRateKhr = unchecked(4444), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspAMD")] - BaryCoordNoPerspAmd = unchecked(4992), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspCentroidAMD")] - BaryCoordNoPerspCentroidAmd = unchecked(4993), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspSampleAMD")] - BaryCoordNoPerspSampleAmd = unchecked(4994), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordSmoothAMD")] - BaryCoordSmoothAmd = unchecked(4995), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordSmoothCentroidAMD")] - BaryCoordSmoothCentroidAmd = unchecked(4996), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordSmoothSampleAMD")] - BaryCoordSmoothSampleAmd = unchecked(4997), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordPullModelAMD")] - BaryCoordPullModelAmd = unchecked(4998), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragStencilRefEXT")] - FragStencilRefExt = unchecked(5014), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewportMaskNV")] - ViewportMaskNv = unchecked(5253), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSecondaryPositionNV")] - SecondaryPositionNv = unchecked(5257), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSecondaryViewportMaskNV")] - SecondaryViewportMaskNv = unchecked(5258), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPositionPerViewNV")] - PositionPerViewNv = unchecked(5261), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewportMaskPerViewNV")] - ViewportMaskPerViewNv = unchecked(5262), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInFullyCoveredEXT")] - FullyCoveredExt = unchecked(5264), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInTaskCountNV")] - TaskCountNv = unchecked(5274), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveCountNV")] - PrimitiveCountNv = unchecked(5275), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveIndicesNV")] - PrimitiveIndicesNv = unchecked(5276), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInClipDistancePerViewNV")] - ClipDistancePerViewNv = unchecked(5277), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullDistancePerViewNV")] - CullDistancePerViewNv = unchecked(5278), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInLayerPerViewNV")] - LayerPerViewNv = unchecked(5279), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInMeshViewCountNV")] - MeshViewCountNv = unchecked(5280), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInMeshViewIndicesNV")] - MeshViewIndicesNv = unchecked(5281), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordKHR")] - BaryCoordKhr = unchecked(5286), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNV")] - BaryCoordNv = unchecked(5286), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspKHR")] - BaryCoordNoPerspKhr = unchecked(5287), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspNV")] - BaryCoordNoPerspNv = unchecked(5287), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragSizeEXT")] - FragSizeExt = unchecked(5292), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragmentSizeNV")] - FragmentSizeNv = unchecked(5292), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragInvocationCountEXT")] - FragInvocationCountExt = unchecked(5293), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInInvocationsPerPixelNV")] - InvocationsPerPixelNv = unchecked(5293), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitivePointIndicesEXT")] - PrimitivePointIndicesExt = unchecked(5294), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveLineIndicesEXT")] - PrimitiveLineIndicesExt = unchecked(5295), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveTriangleIndicesEXT")] - PrimitiveTriangleIndicesExt = unchecked(5296), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullPrimitiveEXT")] - CullPrimitiveExt = unchecked(5299), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchIdKHR")] - LaunchIdKhr = unchecked(5319), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchIdNV")] - LaunchIdNv = unchecked(5319), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchSizeKHR")] - LaunchSizeKhr = unchecked(5320), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchSizeNV")] - LaunchSizeNv = unchecked(5320), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayOriginKHR")] - WorldRayOriginKhr = unchecked(5321), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayOriginNV")] - WorldRayOriginNv = unchecked(5321), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayDirectionKHR")] - WorldRayDirectionKhr = unchecked(5322), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayDirectionNV")] - WorldRayDirectionNv = unchecked(5322), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayOriginKHR")] - ObjectRayOriginKhr = unchecked(5323), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayOriginNV")] - ObjectRayOriginNv = unchecked(5323), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayDirectionKHR")] - ObjectRayDirectionKhr = unchecked(5324), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayDirectionNV")] - ObjectRayDirectionNv = unchecked(5324), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTminKHR")] - RayTminKhr = unchecked(5325), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTminNV")] - RayTminNv = unchecked(5325), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTmaxKHR")] - RayTmaxKhr = unchecked(5326), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTmaxNV")] - RayTmaxNv = unchecked(5326), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceCustomIndexKHR")] - InstanceCustomIndexKhr = unchecked(5327), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceCustomIndexNV")] - InstanceCustomIndexNv = unchecked(5327), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectToWorldKHR")] - ObjectToWorldKhr = unchecked(5330), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectToWorldNV")] - ObjectToWorldNv = unchecked(5330), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldToObjectKHR")] - WorldToObjectKhr = unchecked(5331), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldToObjectNV")] - WorldToObjectNv = unchecked(5331), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInHitTNV")] - HitTnv = unchecked(5332), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInHitKindKHR")] - HitKindKhr = unchecked(5333), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInHitKindNV")] - HitKindNv = unchecked(5333), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInCurrentRayTimeNV")] - CurrentRayTimeNv = unchecked(5334), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInIncomingRayFlagsKHR")] - IncomingRayFlagsKhr = unchecked(5351), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInIncomingRayFlagsNV")] - IncomingRayFlagsNv = unchecked(5351), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayGeometryIndexKHR")] - RayGeometryIndexKhr = unchecked(5352), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInWarpsPerSMNV")] - WarpsPerSmnv = unchecked(5374), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSMCountNV")] - SmCountNv = unchecked(5375), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInWarpIDNV")] - WarpIdnv = unchecked(5376), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInSMIDNV")] - Smidnv = unchecked(5377), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullMaskKHR")] - CullMaskKhr = unchecked(6021), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvBuiltInMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvSelectionControlShift_")] - public enum SpvSelectionControlShift - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSelectionControlFlattenShift")] - FlattenShift = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSelectionControlDontFlattenShift")] - DontFlattenShift = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSelectionControlMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvSelectionControlMask_")] - public enum SpvSelectionControlMask - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSelectionControlMaskNone")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSelectionControlFlattenMask")] - FlattenMask = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvSelectionControlDontFlattenMask")] - DontFlattenMask = unchecked(2), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvLoopControlShift_")] - public enum SpvLoopControlShift - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlUnrollShift")] - UnrollShift = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlDontUnrollShift")] - DontUnrollShift = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyInfiniteShift")] - DependencyInfiniteShift = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyLengthShift")] - DependencyLengthShift = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlMinIterationsShift")] - MinIterationsShift = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxIterationsShift")] - MaxIterationsShift = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlIterationMultipleShift")] - IterationMultipleShift = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlPeelCountShift")] - PeelCountShift = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlPartialCountShift")] - PartialCountShift = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlInitiationIntervalINTELShift")] - InitiationIntervalIntelShift = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxConcurrencyINTELShift")] - MaxConcurrencyIntelShift = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyArrayINTELShift")] - DependencyArrayIntelShift = unchecked(18), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlPipelineEnableINTELShift")] - PipelineEnableIntelShift = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlLoopCoalesceINTELShift")] - CoalesceIntelShift = unchecked(20), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxInterleavingINTELShift")] - MaxInterleavingIntelShift = unchecked(21), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlSpeculatedIterationsINTELShift")] - SpeculatedIterationsIntelShift = unchecked(22), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlNoFusionINTELShift")] - NoFusionIntelShift = unchecked(23), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvLoopControlMask_")] - public enum SpvLoopControlMask - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaskNone")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlUnrollMask")] - UnrollMask = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlDontUnrollMask")] - DontUnrollMask = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyInfiniteMask")] - DependencyInfiniteMask = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyLengthMask")] - DependencyLengthMask = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlMinIterationsMask")] - MinIterationsMask = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxIterationsMask")] - MaxIterationsMask = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlIterationMultipleMask")] - IterationMultipleMask = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlPeelCountMask")] - PeelCountMask = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlPartialCountMask")] - PartialCountMask = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlInitiationIntervalINTELMask")] - InitiationIntervalIntelMask = unchecked(65536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxConcurrencyINTELMask")] - MaxConcurrencyIntelMask = unchecked(131072), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyArrayINTELMask")] - DependencyArrayIntelMask = unchecked(262144), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlPipelineEnableINTELMask")] - PipelineEnableIntelMask = unchecked(524288), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlLoopCoalesceINTELMask")] - CoalesceIntelMask = unchecked(1048576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxInterleavingINTELMask")] - MaxInterleavingIntelMask = unchecked(2097152), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlSpeculatedIterationsINTELMask")] - SpeculatedIterationsIntelMask = unchecked(4194304), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvLoopControlNoFusionINTELMask")] - NoFusionIntelMask = unchecked(8388608), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvFunctionControlShift_")] - public enum SpvFunctionControlShift - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlInlineShift")] - InlineShift = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlDontInlineShift")] - DontInlineShift = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlPureShift")] - PureShift = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlConstShift")] - ConstShift = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlOptNoneINTELShift")] - OptNoneIntelShift = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvFunctionControlMask_")] - public enum SpvFunctionControlMask - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlMaskNone")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlInlineMask")] - InlineMask = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlDontInlineMask")] - DontInlineMask = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlPureMask")] - PureMask = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlConstMask")] - ConstMask = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFunctionControlOptNoneINTELMask")] - OptNoneIntelMask = unchecked(65536), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvMemorySemanticsShift_")] - public enum SpvMemorySemanticsShift - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireShift")] - AcquireShift = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsReleaseShift")] - ReleaseShift = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireReleaseShift")] - AcquireReleaseShift = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSequentiallyConsistentShift")] - SequentiallyConsistentShift = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsUniformMemoryShift")] - UniformMemoryShift = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSubgroupMemoryShift")] - SubgroupMemoryShift = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsWorkgroupMemoryShift")] - WorkgroupMemoryShift = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsCrossWorkgroupMemoryShift")] - CrossWorkgroupMemoryShift = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAtomicCounterMemoryShift")] - AtomicCounterMemoryShift = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsImageMemoryShift")] - ImageMemoryShift = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryShift")] - OutputMemoryShift = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryKHRShift")] - OutputMemoryKhrShift = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableShift")] - MakeAvailableShift = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableKHRShift")] - MakeAvailableKhrShift = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleShift")] - MakeVisibleShift = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleKHRShift")] - MakeVisibleKhrShift = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsVolatileShift")] - VolatileShift = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvMemorySemanticsMask_")] - public enum SpvMemorySemanticsMask - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMaskNone")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireMask")] - AcquireMask = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsReleaseMask")] - ReleaseMask = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireReleaseMask")] - AcquireReleaseMask = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSequentiallyConsistentMask")] - SequentiallyConsistentMask = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsUniformMemoryMask")] - UniformMemoryMask = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSubgroupMemoryMask")] - SubgroupMemoryMask = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsWorkgroupMemoryMask")] - WorkgroupMemoryMask = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsCrossWorkgroupMemoryMask")] - CrossWorkgroupMemoryMask = unchecked(512), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAtomicCounterMemoryMask")] - AtomicCounterMemoryMask = unchecked(1024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsImageMemoryMask")] - ImageMemoryMask = unchecked(2048), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryMask")] - OutputMemoryMask = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryKHRMask")] - OutputMemoryKhrMask = unchecked(4096), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableMask")] - MakeAvailableMask = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableKHRMask")] - MakeAvailableKhrMask = unchecked(8192), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleMask")] - MakeVisibleMask = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleKHRMask")] - MakeVisibleKhrMask = unchecked(16384), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsVolatileMask")] - VolatileMask = unchecked(32768), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvMemoryAccessShift_")] - public enum SpvMemoryAccessShift - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessVolatileShift")] - VolatileShift = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAlignedShift")] - AlignedShift = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNontemporalShift")] - NontemporalShift = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableShift")] - MakePointerAvailableShift = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableKHRShift")] - MakePointerAvailableKhrShift = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleShift")] - MakePointerVisibleShift = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleKHRShift")] - MakePointerVisibleKhrShift = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerShift")] - NonPrivatePointerShift = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerKHRShift")] - NonPrivatePointerKhrShift = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAliasScopeINTELMaskShift")] - AliasScopeIntelMaskShift = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNoAliasINTELMaskShift")] - NoAliasIntelMaskShift = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvMemoryAccessMask_")] - public enum SpvMemoryAccessMask - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMaskNone")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessVolatileMask")] - VolatileMask = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAlignedMask")] - AlignedMask = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNontemporalMask")] - NontemporalMask = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableMask")] - MakePointerAvailableMask = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableKHRMask")] - MakePointerAvailableKhrMask = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleMask")] - MakePointerVisibleMask = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleKHRMask")] - MakePointerVisibleKhrMask = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerMask")] - NonPrivatePointerMask = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerKHRMask")] - NonPrivatePointerKhrMask = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAliasScopeINTELMaskMask")] - AliasScopeIntelMaskMask = unchecked(65536), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNoAliasINTELMaskMask")] - NoAliasIntelMaskMask = unchecked(131072), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvScope_")] - public enum SpvScope - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvScopeCrossDevice")] - CrossDevice = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvScopeDevice")] - Device = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvScopeWorkgroup")] - Workgroup = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvScopeSubgroup")] - Subgroup = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvScopeInvocation")] - Invocation = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvScopeQueueFamily")] - QueueFamily = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvScopeQueueFamilyKHR")] - QueueFamilyKhr = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvScopeShaderCallKHR")] - ShaderCallKhr = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvScopeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvGroupOperation_")] - public enum SpvGroupOperation - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvGroupOperationReduce")] - Reduce = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvGroupOperationInclusiveScan")] - InclusiveScan = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvGroupOperationExclusiveScan")] - ExclusiveScan = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvGroupOperationClusteredReduce")] - ClusteredReduce = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvGroupOperationPartitionedReduceNV")] - PartitionedReduceNv = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvGroupOperationPartitionedInclusiveScanNV")] - PartitionedInclusiveScanNv = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvGroupOperationPartitionedExclusiveScanNV")] - PartitionedExclusiveScanNv = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvGroupOperationMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvKernelEnqueueFlags_")] - public enum SpvKernelEnqueueFlags - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsNoWait")] - NoWait = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsWaitKernel")] - WaitKernel = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsWaitWorkGroup")] - WaitWorkGroup = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvKernelProfilingInfoShift_")] - public enum SpvKernelProfilingInfoShift - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoCmdExecTimeShift")] - CmdExecTimeShift = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvKernelProfilingInfoMask_")] - public enum SpvKernelProfilingInfoMask - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoMaskNone")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoCmdExecTimeMask")] - CmdExecTimeMask = unchecked(1), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvCapability_")] - public enum SpvCapability - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityMatrix")] - Matrix = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShader")] - Shader = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometry")] - Geometry = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityTessellation")] - Tessellation = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityAddresses")] - Addresses = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityLinkage")] - Linkage = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityKernel")] - Kernel = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityVector16")] - Vector16 = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat16Buffer")] - Float16Buffer = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat16")] - Float16 = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat64")] - Float64 = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt64")] - Int64 = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt64Atomics")] - Int64Atomics = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageBasic")] - ImageBasic = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageReadWrite")] - ImageReadWrite = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageMipmap")] - ImageMipmap = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityPipes")] - Pipes = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroups")] - Groups = unchecked(18), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDeviceEnqueue")] - DeviceEnqueue = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityLiteralSampler")] - LiteralSampler = unchecked(20), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicStorage")] - AtomicStorage = unchecked(21), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt16")] - Int16 = unchecked(22), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityTessellationPointSize")] - TessellationPointSize = unchecked(23), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometryPointSize")] - GeometryPointSize = unchecked(24), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageGatherExtended")] - ImageGatherExtended = unchecked(25), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageMultisample")] - StorageImageMultisample = unchecked(27), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformBufferArrayDynamicIndexing")] - UniformBufferArrayDynamicIndexing = unchecked(28), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledImageArrayDynamicIndexing")] - SampledImageArrayDynamicIndexing = unchecked(29), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBufferArrayDynamicIndexing")] - StorageBufferArrayDynamicIndexing = unchecked(30), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageArrayDynamicIndexing")] - StorageImageArrayDynamicIndexing = unchecked(31), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityClipDistance")] - ClipDistance = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityCullDistance")] - CullDistance = unchecked(33), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageCubeArray")] - ImageCubeArray = unchecked(34), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampleRateShading")] - SampleRateShading = unchecked(35), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageRect")] - ImageRect = unchecked(36), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledRect")] - SampledRect = unchecked(37), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGenericPointer")] - GenericPointer = unchecked(38), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt8")] - Int8 = unchecked(39), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachment")] - InputAttachment = unchecked(40), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySparseResidency")] - SparseResidency = unchecked(41), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityMinLod")] - MinLod = unchecked(42), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampled1D")] - Sampled1D = unchecked(43), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImage1D")] - Image1D = unchecked(44), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledCubeArray")] - SampledCubeArray = unchecked(45), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledBuffer")] - SampledBuffer = unchecked(46), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageBuffer")] - ImageBuffer = unchecked(47), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageMSArray")] - ImageMsArray = unchecked(48), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageExtendedFormats")] - StorageImageExtendedFormats = unchecked(49), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageQuery")] - ImageQuery = unchecked(50), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDerivativeControl")] - DerivativeControl = unchecked(51), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityInterpolationFunction")] - InterpolationFunction = unchecked(52), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityTransformFeedback")] - TransformFeedback = unchecked(53), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometryStreams")] - GeometryStreams = unchecked(54), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageReadWithoutFormat")] - StorageImageReadWithoutFormat = unchecked(55), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageWriteWithoutFormat")] - StorageImageWriteWithoutFormat = unchecked(56), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityMultiViewport")] - MultiViewport = unchecked(57), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupDispatch")] - SubgroupDispatch = unchecked(58), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityNamedBarrier")] - NamedBarrier = unchecked(59), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityPipeStorage")] - PipeStorage = unchecked(60), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniform")] - GroupNonUniform = unchecked(61), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformVote")] - GroupNonUniformVote = unchecked(62), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformArithmetic")] - GroupNonUniformArithmetic = unchecked(63), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformBallot")] - GroupNonUniformBallot = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformShuffle")] - GroupNonUniformShuffle = unchecked(65), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformShuffleRelative")] - GroupNonUniformShuffleRelative = unchecked(66), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformClustered")] - GroupNonUniformClustered = unchecked(67), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformQuad")] - GroupNonUniformQuad = unchecked(68), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderLayer")] - ShaderLayer = unchecked(69), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportIndex")] - ShaderViewportIndex = unchecked(70), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformDecoration")] - UniformDecoration = unchecked(71), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShadingRateKHR")] - FragmentShadingRateKhr = unchecked(4422), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupBallotKHR")] - SubgroupBallotKhr = unchecked(4423), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDrawParameters")] - DrawParameters = unchecked(4427), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityWorkgroupMemoryExplicitLayoutKHR")] - WorkgroupMemoryExplicitLayoutKhr = unchecked(4428), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityWorkgroupMemoryExplicitLayout8BitAccessKHR")] - WorkgroupMemoryExplicitLayout8AccessKhr = unchecked(4429), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityWorkgroupMemoryExplicitLayout16BitAccessKHR")] - WorkgroupMemoryExplicitLayout16AccessKhr = unchecked(4430), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupVoteKHR")] - SubgroupVoteKhr = unchecked(4431), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBuffer16BitAccess")] - StorageBuffer16Access = unchecked(4433), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageUniformBufferBlock16")] - StorageUniformBufferBlock16 = unchecked(4433), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageUniform16")] - StorageUniform16 = unchecked(4434), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformAndStorageBuffer16BitAccess")] - UniformAndStorageBuffer16Access = unchecked(4434), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStoragePushConstant16")] - StoragePushConstant16 = unchecked(4435), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageInputOutput16")] - StorageInputOutput16 = unchecked(4436), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDeviceGroup")] - DeviceGroup = unchecked(4437), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityMultiView")] - MultiView = unchecked(4439), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityVariablePointersStorageBuffer")] - VariablePointersStorageBuffer = unchecked(4441), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityVariablePointers")] - VariablePointers = unchecked(4442), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicStorageOps")] - AtomicStorageOps = unchecked(4445), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampleMaskPostDepthCoverage")] - SampleMaskPostDepthCoverage = unchecked(4447), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBuffer8BitAccess")] - StorageBuffer8Access = unchecked(4448), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformAndStorageBuffer8BitAccess")] - UniformAndStorageBuffer8Access = unchecked(4449), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStoragePushConstant8")] - StoragePushConstant8 = unchecked(4450), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDenormPreserve")] - DenormPreserve = unchecked(4464), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDenormFlushToZero")] - DenormFlushToZero = unchecked(4465), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySignedZeroInfNanPreserve")] - SignedZeroInfNanPreserve = unchecked(4466), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRoundingModeRTE")] - RoundingModeRte = unchecked(4467), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRoundingModeRTZ")] - RoundingModeRtz = unchecked(4468), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayQueryProvisionalKHR")] - RayQueryProvisionalKhr = unchecked(4471), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayQueryKHR")] - RayQueryKhr = unchecked(4472), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTraversalPrimitiveCullingKHR")] - RayTraversalPrimitiveCullingKhr = unchecked(4478), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingKHR")] - RayTracingKhr = unchecked(4479), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat16ImageAMD")] - Float16ImageAmd = unchecked(5008), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageGatherBiasLodAMD")] - ImageGatherBiasLodAmd = unchecked(5009), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentMaskAMD")] - FragmentMaskAmd = unchecked(5010), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStencilExportEXT")] - StencilExportExt = unchecked(5013), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageReadWriteLodAMD")] - ImageReadWriteLodAmd = unchecked(5015), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt64ImageEXT")] - Int64ImageExt = unchecked(5016), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderClockKHR")] - ShaderClockKhr = unchecked(5055), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampleMaskOverrideCoverageNV")] - SampleMaskOverrideCoverageNv = unchecked(5249), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometryShaderPassthroughNV")] - GeometryShaderPassthroughNv = unchecked(5251), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportIndexLayerEXT")] - ShaderViewportIndexLayerExt = unchecked(5254), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportIndexLayerNV")] - ShaderViewportIndexLayerNv = unchecked(5254), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportMaskNV")] - ShaderViewportMaskNv = unchecked(5255), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderStereoViewNV")] - ShaderStereoViewNv = unchecked(5259), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityPerViewAttributesNV")] - PerViewAttributesNv = unchecked(5260), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentFullyCoveredEXT")] - FragmentFullyCoveredExt = unchecked(5265), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityMeshShadingNV")] - MeshShadingNv = unchecked(5266), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageFootprintNV")] - ImageFootprintNv = unchecked(5282), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityMeshShadingEXT")] - MeshShadingExt = unchecked(5283), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentBarycentricKHR")] - FragmentBarycentricKhr = unchecked(5284), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentBarycentricNV")] - FragmentBarycentricNv = unchecked(5284), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityComputeDerivativeGroupQuadsNV")] - ComputeDerivativeGroupQuadsNv = unchecked(5288), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentDensityEXT")] - FragmentDensityExt = unchecked(5291), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShadingRateNV")] - ShadingRateNv = unchecked(5291), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformPartitionedNV")] - GroupNonUniformPartitionedNv = unchecked(5297), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderNonUniform")] - ShaderNonUniform = unchecked(5301), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderNonUniformEXT")] - ShaderNonUniformExt = unchecked(5301), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRuntimeDescriptorArray")] - RuntimeDescriptorArray = unchecked(5302), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRuntimeDescriptorArrayEXT")] - RuntimeDescriptorArrayExt = unchecked(5302), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayDynamicIndexing")] - InputAttachmentArrayDynamicIndexing = unchecked(5303), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayDynamicIndexingEXT")] - InputAttachmentArrayDynamicIndexingExt = unchecked(5303), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayDynamicIndexing")] - UniformTexelBufferArrayDynamicIndexing = unchecked(5304), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayDynamicIndexingEXT")] - UniformTexelBufferArrayDynamicIndexingExt = unchecked(5304), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayDynamicIndexing")] - StorageTexelBufferArrayDynamicIndexing = unchecked(5305), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayDynamicIndexingEXT")] - StorageTexelBufferArrayDynamicIndexingExt = unchecked(5305), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformBufferArrayNonUniformIndexing")] - UniformBufferArrayNonUniformIndexing = unchecked(5306), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformBufferArrayNonUniformIndexingEXT")] - UniformBufferArrayNonUniformIndexingExt = unchecked(5306), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledImageArrayNonUniformIndexing")] - SampledImageArrayNonUniformIndexing = unchecked(5307), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledImageArrayNonUniformIndexingEXT")] - SampledImageArrayNonUniformIndexingExt = unchecked(5307), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBufferArrayNonUniformIndexing")] - StorageBufferArrayNonUniformIndexing = unchecked(5308), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBufferArrayNonUniformIndexingEXT")] - StorageBufferArrayNonUniformIndexingExt = unchecked(5308), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageArrayNonUniformIndexing")] - StorageImageArrayNonUniformIndexing = unchecked(5309), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageArrayNonUniformIndexingEXT")] - StorageImageArrayNonUniformIndexingExt = unchecked(5309), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayNonUniformIndexing")] - InputAttachmentArrayNonUniformIndexing = unchecked(5310), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayNonUniformIndexingEXT")] - InputAttachmentArrayNonUniformIndexingExt = unchecked(5310), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayNonUniformIndexing")] - UniformTexelBufferArrayNonUniformIndexing = unchecked(5311), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayNonUniformIndexingEXT")] - UniformTexelBufferArrayNonUniformIndexingExt = unchecked(5311), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayNonUniformIndexing")] - StorageTexelBufferArrayNonUniformIndexing = unchecked(5312), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayNonUniformIndexingEXT")] - StorageTexelBufferArrayNonUniformIndexingExt = unchecked(5312), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingNV")] - RayTracingNv = unchecked(5340), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingMotionBlurNV")] - RayTracingMotionBlurNv = unchecked(5341), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModel")] - VulkanMemoryModel = unchecked(5345), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModelKHR")] - VulkanMemoryModelKhr = unchecked(5345), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModelDeviceScope")] - VulkanMemoryModelDeviceScope = unchecked(5346), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModelDeviceScopeKHR")] - VulkanMemoryModelDeviceScopeKhr = unchecked(5346), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityPhysicalStorageBufferAddresses")] - PhysicalStorageBufferAddresses = unchecked(5347), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityPhysicalStorageBufferAddressesEXT")] - PhysicalStorageBufferAddressesExt = unchecked(5347), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityComputeDerivativeGroupLinearNV")] - ComputeDerivativeGroupLinearNv = unchecked(5350), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingProvisionalKHR")] - RayTracingProvisionalKhr = unchecked(5353), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityCooperativeMatrixNV")] - CooperativeMatrixNv = unchecked(5357), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShaderSampleInterlockEXT")] - FragmentShaderSampleInterlockExt = unchecked(5363), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShaderShadingRateInterlockEXT")] - FragmentShaderShadingRateInterlockExt = unchecked(5372), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderSMBuiltinsNV")] - ShaderSmBuiltinsNv = unchecked(5373), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShaderPixelInterlockEXT")] - FragmentShaderPixelInterlockExt = unchecked(5378), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDemoteToHelperInvocation")] - DemoteToHelperInvocation = unchecked(5379), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDemoteToHelperInvocationEXT")] - DemoteToHelperInvocationExt = unchecked(5379), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityBindlessTextureNV")] - BindlessTextureNv = unchecked(5390), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupShuffleINTEL")] - SubgroupShuffleIntel = unchecked(5568), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupBufferBlockIOINTEL")] - SubgroupBufferBlockIointel = unchecked(5569), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupImageBlockIOINTEL")] - SubgroupImageBlockIointel = unchecked(5570), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupImageMediaBlockIOINTEL")] - SubgroupImageMediaBlockIointel = unchecked(5579), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRoundToInfinityINTEL")] - RoundToInfinityIntel = unchecked(5582), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloatingPointModeINTEL")] - FloatingPointModeIntel = unchecked(5583), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityIntegerFunctions2INTEL")] - IntegerFunctions2Intel = unchecked(5584), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFunctionPointersINTEL")] - FunctionPointersIntel = unchecked(5603), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityIndirectReferencesINTEL")] - IndirectReferencesIntel = unchecked(5604), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityAsmINTEL")] - AsmIntel = unchecked(5606), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat32MinMaxEXT")] - AtomicFloat32MinMaxExt = unchecked(5612), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat64MinMaxEXT")] - AtomicFloat64MinMaxExt = unchecked(5613), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat16MinMaxEXT")] - AtomicFloat16MinMaxExt = unchecked(5616), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityVectorComputeINTEL")] - VectorComputeIntel = unchecked(5617), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityVectorAnyINTEL")] - VectorAnyIntel = unchecked(5619), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityExpectAssumeKHR")] - ExpectAssumeKhr = unchecked(5629), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupAvcMotionEstimationINTEL")] - SubgroupAvcMotionEstimationIntel = unchecked(5696), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupAvcMotionEstimationIntraINTEL")] - SubgroupAvcMotionEstimationIntraIntel = unchecked(5697), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupAvcMotionEstimationChromaINTEL")] - SubgroupAvcMotionEstimationChromaIntel = unchecked(5698), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityVariableLengthArrayINTEL")] - VariableLengthArrayIntel = unchecked(5817), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFunctionFloatControlINTEL")] - FunctionFloatControlIntel = unchecked(5821), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAMemoryAttributesINTEL")] - FpgaMemoryAttributesIntel = unchecked(5824), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPFastMathModeINTEL")] - FpFastMathModeIntel = unchecked(5837), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityArbitraryPrecisionIntegersINTEL")] - ArbitraryPrecisionIntegersIntel = unchecked(5844), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityArbitraryPrecisionFloatingPointINTEL")] - ArbitraryPrecisionFloatingPointIntel = unchecked(5845), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUnstructuredLoopControlsINTEL")] - UnstructuredLoopControlsIntel = unchecked(5886), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGALoopControlsINTEL")] - FpgaLoopControlsIntel = unchecked(5888), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityKernelAttributesINTEL")] - KernelAttributesIntel = unchecked(5892), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAKernelAttributesINTEL")] - FpgaKernelAttributesIntel = unchecked(5897), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAMemoryAccessesINTEL")] - FpgaMemoryAccessesIntel = unchecked(5898), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAClusterAttributesINTEL")] - FpgaClusterAttributesIntel = unchecked(5904), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityLoopFuseINTEL")] - LoopFuseIntel = unchecked(5906), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityMemoryAccessAliasingINTEL")] - MemoryAccessAliasingIntel = unchecked(5910), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGABufferLocationINTEL")] - FpgaBufferLocationIntel = unchecked(5920), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityArbitraryPrecisionFixedPointINTEL")] - ArbitraryPrecisionFixedPointIntel = unchecked(5922), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityUSMStorageClassesINTEL")] - UsmStorageClassesIntel = unchecked(5935), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityIOPipesINTEL")] - IoPipesIntel = unchecked(5943), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityBlockingPipesINTEL")] - BlockingPipesIntel = unchecked(5945), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGARegINTEL")] - FpgaRegIntel = unchecked(5948), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInputAll")] - DotProductInputAll = unchecked(6016), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInputAllKHR")] - DotProductInputAllKhr = unchecked(6016), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8Bit")] - DotProductInput4X8 = unchecked(6017), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8BitKHR")] - DotProductInput4X8Khr = unchecked(6017), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8BitPacked")] - DotProductInput4X8Packed = unchecked(6018), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8BitPackedKHR")] - DotProductInput4X8PackedKhr = unchecked(6018), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProduct")] - DotProduct = unchecked(6019), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductKHR")] - DotProductKhr = unchecked(6019), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayCullMaskKHR")] - RayCullMaskKhr = unchecked(6020), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityBitInstructions")] - Instructions = unchecked(6025), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformRotateKHR")] - GroupNonUniformRotateKhr = unchecked(6026), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat32AddEXT")] - AtomicFloat32AddExt = unchecked(6033), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat64AddEXT")] - AtomicFloat64AddExt = unchecked(6034), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityLongConstantCompositeINTEL")] - LongConstantCompositeIntel = unchecked(6089), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityOptNoneINTEL")] - OptNoneIntel = unchecked(6094), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat16AddEXT")] - AtomicFloat16AddExt = unchecked(6095), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityDebugInfoModuleINTEL")] - DebugInfoModuleIntel = unchecked(6114), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilitySplitBarrierINTEL")] - SplitBarrierIntel = unchecked(6141), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupUniformArithmeticKHR")] - GroupUniformArithmeticKhr = unchecked(6400), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvCapabilityMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvRayFlagsShift_")] - public enum SpvRayFlagsShift - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsOpaqueKHRShift")] - OpaqueKhrShift = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsNoOpaqueKHRShift")] - NoOpaqueKhrShift = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsTerminateOnFirstHitKHRShift")] - TerminateOnFirstHitKhrShift = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipClosestHitShaderKHRShift")] - SkipClosestHitShaderKhrShift = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullBackFacingTrianglesKHRShift")] - CullBackFacingTrianglesKhrShift = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullFrontFacingTrianglesKHRShift")] - CullFrontFacingTrianglesKhrShift = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullOpaqueKHRShift")] - CullOpaqueKhrShift = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullNoOpaqueKHRShift")] - CullNoOpaqueKhrShift = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipTrianglesKHRShift")] - SkipTrianglesKhrShift = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipAABBsKHRShift")] - SkipAabBsKhrShift = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvRayFlagsMask_")] - public enum SpvRayFlagsMask - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsMaskNone")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsOpaqueKHRMask")] - OpaqueKhrMask = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsNoOpaqueKHRMask")] - NoOpaqueKhrMask = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsTerminateOnFirstHitKHRMask")] - TerminateOnFirstHitKhrMask = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipClosestHitShaderKHRMask")] - SkipClosestHitShaderKhrMask = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullBackFacingTrianglesKHRMask")] - CullBackFacingTrianglesKhrMask = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullFrontFacingTrianglesKHRMask")] - CullFrontFacingTrianglesKhrMask = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullOpaqueKHRMask")] - CullOpaqueKhrMask = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullNoOpaqueKHRMask")] - CullNoOpaqueKhrMask = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipTrianglesKHRMask")] - SkipTrianglesKhrMask = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipAABBsKHRMask")] - SkipAabBsKhrMask = unchecked(512), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvRayQueryIntersection_")] - public enum SpvRayQueryIntersection - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayQueryIntersectionRayQueryCandidateIntersectionKHR")] - CandidateIntersectionKhr = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayQueryIntersectionRayQueryCommittedIntersectionKHR")] - CommittedIntersectionKhr = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayQueryIntersectionMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvRayQueryCommittedIntersectionType_")] - public enum SpvRayQueryCommittedIntersectionType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionNoneKHR")] - NoneKhr = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionTriangleKHR")] - TriangleKhr = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionGeneratedKHR")] - GeneratedKhr = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvRayQueryCandidateIntersectionType_")] - public enum SpvRayQueryCandidateIntersectionType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionTriangleKHR")] - TriangleKhr = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionAABBKHR")] - Aabbkhr = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvRayQueryCandidateIntersectionTypeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvFragmentShadingRateShift_")] - public enum SpvFragmentShadingRateShift - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical2PixelsShift")] - Vertical2PixelsShift = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical4PixelsShift")] - Vertical4PixelsShift = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal2PixelsShift")] - Horizontal2PixelsShift = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal4PixelsShift")] - Horizontal4PixelsShift = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvFragmentShadingRateMask_")] - public enum SpvFragmentShadingRateMask - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateMaskNone")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical2PixelsMask")] - Vertical2PixelsMask = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical4PixelsMask")] - Vertical4PixelsMask = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal2PixelsMask")] - Horizontal2PixelsMask = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal4PixelsMask")] - Horizontal4PixelsMask = unchecked(8), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvFPDenormMode_")] - public enum SpvFPDenormMode - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPDenormModePreserve")] - Preserve = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPDenormModeFlushToZero")] - FlushToZero = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPDenormModeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvFPOperationMode_")] - public enum SpvFPOperationMode - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPOperationModeIEEE")] - Ieee = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPOperationModeALT")] - Alt = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvFPOperationModeMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvQuantizationModes_")] - public enum SpvQuantizationModes - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesTRN")] - Trn = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesTRN_ZERO")] - TrnZero = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND")] - Rnd = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_ZERO")] - RndZero = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_INF")] - RndInf = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_MIN_INF")] - RndMinInf = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_CONV")] - RndConv = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_CONV_ODD")] - RndConvOdd = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvOverflowModes_")] - public enum SpvOverflowModes - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOverflowModesWRAP")] - Wrap = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOverflowModesSAT")] - Sat = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOverflowModesSAT_ZERO")] - SatZero = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOverflowModesSAT_SYM")] - SatSym = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOverflowModesMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvPackedVectorFormat_")] - public enum SpvPackedVectorFormat - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvPackedVectorFormatPackedVectorFormat4x8Bit")] - Format4X8 = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvPackedVectorFormatPackedVectorFormat4x8BitKHR")] - Format4X8Khr = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvPackedVectorFormatMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "SpvOp_")] - public enum SpvOp - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpNop")] - Nop = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUndef")] - Undef = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSourceContinued")] - SourceContinued = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSource")] - Source = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSourceExtension")] - SourceExtension = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpName")] - Name = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpMemberName")] - MemberName = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpString")] - String = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLine")] - Line = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpExtension")] - Extension = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpExtInstImport")] - ExtInstImport = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpExtInst")] - ExtInst = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpMemoryModel")] - MemoryModel = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpEntryPoint")] - EntryPoint = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpExecutionMode")] - ExecutionMode = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCapability")] - Capability = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeVoid")] - TypeVoid = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeBool")] - TypeBool = unchecked(20), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeInt")] - TypeInt = unchecked(21), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeFloat")] - TypeFloat = unchecked(22), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeVector")] - TypeVector = unchecked(23), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeMatrix")] - TypeMatrix = unchecked(24), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeImage")] - TypeImage = unchecked(25), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeSampler")] - TypeSampler = unchecked(26), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeSampledImage")] - TypeSampledImage = unchecked(27), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeArray")] - TypeArray = unchecked(28), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeRuntimeArray")] - TypeRuntimeArray = unchecked(29), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeStruct")] - TypeStruct = unchecked(30), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeOpaque")] - TypeOpaque = unchecked(31), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypePointer")] - TypePointer = unchecked(32), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeFunction")] - TypeFunction = unchecked(33), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeEvent")] - TypeEvent = unchecked(34), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeDeviceEvent")] - TypeDeviceEvent = unchecked(35), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeReserveId")] - TypeReserveId = unchecked(36), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeQueue")] - TypeQueue = unchecked(37), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypePipe")] - TypePipe = unchecked(38), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeForwardPointer")] - TypeForwardPointer = unchecked(39), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConstantTrue")] - ConstantTrue = unchecked(41), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConstantFalse")] - ConstantFalse = unchecked(42), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConstant")] - Constant = unchecked(43), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConstantComposite")] - ConstantComposite = unchecked(44), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConstantSampler")] - ConstantSampler = unchecked(45), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConstantNull")] - ConstantNull = unchecked(46), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantTrue")] - SpecConstantTrue = unchecked(48), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantFalse")] - SpecConstantFalse = unchecked(49), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstant")] - SpecConstant = unchecked(50), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantComposite")] - SpecConstantComposite = unchecked(51), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantOp")] - SpecConstantOp = unchecked(52), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFunction")] - Function = unchecked(54), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFunctionParameter")] - FunctionParameter = unchecked(55), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFunctionEnd")] - FunctionEnd = unchecked(56), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFunctionCall")] - FunctionCall = unchecked(57), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpVariable")] - Variable = unchecked(59), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageTexelPointer")] - ImageTexelPointer = unchecked(60), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLoad")] - Load = unchecked(61), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpStore")] - Store = unchecked(62), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCopyMemory")] - CopyMemory = unchecked(63), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCopyMemorySized")] - CopyMemorySized = unchecked(64), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAccessChain")] - AccessChain = unchecked(65), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpInBoundsAccessChain")] - InBoundsAccessChain = unchecked(66), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpPtrAccessChain")] - PtrAccessChain = unchecked(67), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArrayLength")] - ArrayLength = unchecked(68), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGenericPtrMemSemantics")] - GenericPtrMemSemantics = unchecked(69), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpInBoundsPtrAccessChain")] - InBoundsPtrAccessChain = unchecked(70), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDecorate")] - Decorate = unchecked(71), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpMemberDecorate")] - MemberDecorate = unchecked(72), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDecorationGroup")] - DecorationGroup = unchecked(73), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupDecorate")] - GroupDecorate = unchecked(74), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupMemberDecorate")] - GroupMemberDecorate = unchecked(75), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpVectorExtractDynamic")] - VectorExtractDynamic = unchecked(77), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpVectorInsertDynamic")] - VectorInsertDynamic = unchecked(78), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpVectorShuffle")] - VectorShuffle = unchecked(79), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCompositeConstruct")] - CompositeConstruct = unchecked(80), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCompositeExtract")] - CompositeExtract = unchecked(81), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCompositeInsert")] - CompositeInsert = unchecked(82), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCopyObject")] - CopyObject = unchecked(83), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTranspose")] - Transpose = unchecked(84), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSampledImage")] - SampledImage = unchecked(86), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleImplicitLod")] - ImageSampleImplicitLod = unchecked(87), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleExplicitLod")] - ImageSampleExplicitLod = unchecked(88), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleDrefImplicitLod")] - ImageSampleDrefImplicitLod = unchecked(89), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleDrefExplicitLod")] - ImageSampleDrefExplicitLod = unchecked(90), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjImplicitLod")] - ImageSampleProjImplicitLod = unchecked(91), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjExplicitLod")] - ImageSampleProjExplicitLod = unchecked(92), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjDrefImplicitLod")] - ImageSampleProjDrefImplicitLod = unchecked(93), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjDrefExplicitLod")] - ImageSampleProjDrefExplicitLod = unchecked(94), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageFetch")] - ImageFetch = unchecked(95), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageGather")] - ImageGather = unchecked(96), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageDrefGather")] - ImageDrefGather = unchecked(97), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageRead")] - ImageRead = unchecked(98), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageWrite")] - ImageWrite = unchecked(99), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImage")] - Image = unchecked(100), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryFormat")] - ImageQueryFormat = unchecked(101), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryOrder")] - ImageQueryOrder = unchecked(102), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageQuerySizeLod")] - ImageQuerySizeLod = unchecked(103), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageQuerySize")] - ImageQuerySize = unchecked(104), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryLod")] - ImageQueryLod = unchecked(105), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryLevels")] - ImageQueryLevels = unchecked(106), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageQuerySamples")] - ImageQuerySamples = unchecked(107), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertFToU")] - ConvertfTou = unchecked(109), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertFToS")] - ConvertfTos = unchecked(110), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertSToF")] - ConvertsTof = unchecked(111), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToF")] - ConvertuTof = unchecked(112), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUConvert")] - OpuConvert = unchecked(113), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSConvert")] - OpsConvert = unchecked(114), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFConvert")] - OpfConvert = unchecked(115), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpQuantizeToF16")] - QuantizeTof16 = unchecked(116), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertPtrToU")] - ConvertPtrTou = unchecked(117), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSatConvertSToU")] - SatConvertsTou = unchecked(118), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSatConvertUToS")] - SatConvertuTos = unchecked(119), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToPtr")] - ConvertuToPtr = unchecked(120), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpPtrCastToGeneric")] - PtrCastToGeneric = unchecked(121), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGenericCastToPtr")] - GenericCastToPtr = unchecked(122), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGenericCastToPtrExplicit")] - GenericCastToPtrExplicit = unchecked(123), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBitcast")] - Bitcast = unchecked(124), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSNegate")] - OpsNegate = unchecked(126), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFNegate")] - OpfNegate = unchecked(127), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIAdd")] - OpiAdd = unchecked(128), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFAdd")] - OpfAdd = unchecked(129), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpISub")] - OpiSub = unchecked(130), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFSub")] - OpfSub = unchecked(131), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIMul")] - OpiMul = unchecked(132), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFMul")] - OpfMul = unchecked(133), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUDiv")] - OpuDiv = unchecked(134), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSDiv")] - OpsDiv = unchecked(135), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFDiv")] - OpfDiv = unchecked(136), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUMod")] - OpuMod = unchecked(137), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSRem")] - OpsRem = unchecked(138), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSMod")] - OpsMod = unchecked(139), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFRem")] - OpfRem = unchecked(140), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFMod")] - OpfMod = unchecked(141), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpVectorTimesScalar")] - VectorTimesScalar = unchecked(142), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpMatrixTimesScalar")] - MatrixTimesScalar = unchecked(143), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpVectorTimesMatrix")] - VectorTimesMatrix = unchecked(144), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpMatrixTimesVector")] - MatrixTimesVector = unchecked(145), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpMatrixTimesMatrix")] - MatrixTimesMatrix = unchecked(146), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpOuterProduct")] - OuterProduct = unchecked(147), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDot")] - Dot = unchecked(148), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIAddCarry")] - OpiAddCarry = unchecked(149), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpISubBorrow")] - OpiSubBorrow = unchecked(150), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUMulExtended")] - OpuMulExtended = unchecked(151), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSMulExtended")] - OpsMulExtended = unchecked(152), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAny")] - Any = unchecked(154), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAll")] - All = unchecked(155), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIsNan")] - IsNan = unchecked(156), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIsInf")] - IsInf = unchecked(157), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIsFinite")] - IsFinite = unchecked(158), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIsNormal")] - IsNormal = unchecked(159), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSignBitSet")] - SignSet = unchecked(160), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLessOrGreater")] - LessOrGreater = unchecked(161), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpOrdered")] - Ordered = unchecked(162), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUnordered")] - Unordered = unchecked(163), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLogicalEqual")] - LogicalEqual = unchecked(164), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLogicalNotEqual")] - LogicalNotEqual = unchecked(165), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLogicalOr")] - LogicalOr = unchecked(166), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLogicalAnd")] - LogicalAnd = unchecked(167), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLogicalNot")] - LogicalNot = unchecked(168), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSelect")] - Select = unchecked(169), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIEqual")] - OpiEqual = unchecked(170), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpINotEqual")] - OpiNotEqual = unchecked(171), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUGreaterThan")] - OpuGreaterThan = unchecked(172), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSGreaterThan")] - OpsGreaterThan = unchecked(173), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUGreaterThanEqual")] - OpuGreaterThanEqual = unchecked(174), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSGreaterThanEqual")] - OpsGreaterThanEqual = unchecked(175), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpULessThan")] - OpuLessThan = unchecked(176), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSLessThan")] - OpsLessThan = unchecked(177), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpULessThanEqual")] - OpuLessThanEqual = unchecked(178), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSLessThanEqual")] - OpsLessThanEqual = unchecked(179), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFOrdEqual")] - OpfOrdEqual = unchecked(180), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFUnordEqual")] - OpfUnordEqual = unchecked(181), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFOrdNotEqual")] - OpfOrdNotEqual = unchecked(182), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFUnordNotEqual")] - OpfUnordNotEqual = unchecked(183), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFOrdLessThan")] - OpfOrdLessThan = unchecked(184), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFUnordLessThan")] - OpfUnordLessThan = unchecked(185), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFOrdGreaterThan")] - OpfOrdGreaterThan = unchecked(186), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFUnordGreaterThan")] - OpfUnordGreaterThan = unchecked(187), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFOrdLessThanEqual")] - OpfOrdLessThanEqual = unchecked(188), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFUnordLessThanEqual")] - OpfUnordLessThanEqual = unchecked(189), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFOrdGreaterThanEqual")] - OpfOrdGreaterThanEqual = unchecked(190), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFUnordGreaterThanEqual")] - OpfUnordGreaterThanEqual = unchecked(191), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpShiftRightLogical")] - ShiftRightLogical = unchecked(194), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpShiftRightArithmetic")] - ShiftRightArithmetic = unchecked(195), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpShiftLeftLogical")] - ShiftLeftLogical = unchecked(196), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBitwiseOr")] - BitwiseOr = unchecked(197), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBitwiseXor")] - BitwiseXor = unchecked(198), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBitwiseAnd")] - BitwiseAnd = unchecked(199), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpNot")] - Not = unchecked(200), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBitFieldInsert")] - FieldInsert = unchecked(201), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBitFieldSExtract")] - FieldsExtract = unchecked(202), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBitFieldUExtract")] - FielduExtract = unchecked(203), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBitReverse")] - Reverse = unchecked(204), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBitCount")] - Count = unchecked(205), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDPdx")] - OpdPdx = unchecked(207), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDPdy")] - OpdPdy = unchecked(208), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFwidth")] - Fwidth = unchecked(209), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDPdxFine")] - OpdPdxFine = unchecked(210), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDPdyFine")] - OpdPdyFine = unchecked(211), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFwidthFine")] - FwidthFine = unchecked(212), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDPdxCoarse")] - OpdPdxCoarse = unchecked(213), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDPdyCoarse")] - OpdPdyCoarse = unchecked(214), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFwidthCoarse")] - FwidthCoarse = unchecked(215), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpEmitVertex")] - EmitVertex = unchecked(218), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpEndPrimitive")] - EndPrimitive = unchecked(219), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpEmitStreamVertex")] - EmitStreamVertex = unchecked(220), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpEndStreamPrimitive")] - EndStreamPrimitive = unchecked(221), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpControlBarrier")] - ControlBarrier = unchecked(224), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpMemoryBarrier")] - MemoryBarrier = unchecked(225), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicLoad")] - AtomicLoad = unchecked(227), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicStore")] - AtomicStore = unchecked(228), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicExchange")] - AtomicExchange = unchecked(229), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicCompareExchange")] - AtomicCompareExchange = unchecked(230), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicCompareExchangeWeak")] - AtomicCompareExchangeWeak = unchecked(231), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicIIncrement")] - AtomiciIncrement = unchecked(232), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicIDecrement")] - AtomiciDecrement = unchecked(233), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicIAdd")] - AtomiciAdd = unchecked(234), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicISub")] - AtomiciSub = unchecked(235), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicSMin")] - AtomicsMin = unchecked(236), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicUMin")] - AtomicuMin = unchecked(237), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicSMax")] - AtomicsMax = unchecked(238), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicUMax")] - AtomicuMax = unchecked(239), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicAnd")] - AtomicAnd = unchecked(240), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicOr")] - AtomicOr = unchecked(241), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicXor")] - AtomicXor = unchecked(242), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpPhi")] - Phi = unchecked(245), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLoopMerge")] - LoopMerge = unchecked(246), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSelectionMerge")] - SelectionMerge = unchecked(247), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLabel")] - Label = unchecked(248), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBranch")] - Branch = unchecked(249), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBranchConditional")] - BranchConditional = unchecked(250), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSwitch")] - Switch = unchecked(251), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpKill")] - Kill = unchecked(252), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReturn")] - Return = unchecked(253), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReturnValue")] - ReturnValue = unchecked(254), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUnreachable")] - Unreachable = unchecked(255), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLifetimeStart")] - LifetimeStart = unchecked(256), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLifetimeStop")] - LifetimeStop = unchecked(257), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupAsyncCopy")] - GroupAsyncCopy = unchecked(259), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupWaitEvents")] - GroupWaitEvents = unchecked(260), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupAll")] - GroupAll = unchecked(261), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupAny")] - GroupAny = unchecked(262), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupBroadcast")] - GroupBroadcast = unchecked(263), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupIAdd")] - GroupiAdd = unchecked(264), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupFAdd")] - GroupfAdd = unchecked(265), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMin")] - GroupfMin = unchecked(266), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMin")] - GroupuMin = unchecked(267), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMin")] - GroupsMin = unchecked(268), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMax")] - GroupfMax = unchecked(269), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMax")] - GroupuMax = unchecked(270), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMax")] - GroupsMax = unchecked(271), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReadPipe")] - ReadPipe = unchecked(274), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpWritePipe")] - WritePipe = unchecked(275), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReservedReadPipe")] - ReservedReadPipe = unchecked(276), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReservedWritePipe")] - ReservedWritePipe = unchecked(277), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReserveReadPipePackets")] - ReserveReadPipePackets = unchecked(278), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReserveWritePipePackets")] - ReserveWritePipePackets = unchecked(279), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCommitReadPipe")] - CommitReadPipe = unchecked(280), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCommitWritePipe")] - CommitWritePipe = unchecked(281), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIsValidReserveId")] - IsValidReserveId = unchecked(282), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGetNumPipePackets")] - GetNumPipePackets = unchecked(283), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGetMaxPipePackets")] - GetMaxPipePackets = unchecked(284), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupReserveReadPipePackets")] - GroupReserveReadPipePackets = unchecked(285), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupReserveWritePipePackets")] - GroupReserveWritePipePackets = unchecked(286), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupCommitReadPipe")] - GroupCommitReadPipe = unchecked(287), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupCommitWritePipe")] - GroupCommitWritePipe = unchecked(288), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpEnqueueMarker")] - EnqueueMarker = unchecked(291), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpEnqueueKernel")] - EnqueueKernel = unchecked(292), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelNDrangeSubGroupCount")] - GetKernelnDrangeSubGroupCount = unchecked(293), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelNDrangeMaxSubGroupSize")] - GetKernelnDrangeMaxSubGroupSize = unchecked(294), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelWorkGroupSize")] - GetKernelWorkGroupSize = unchecked(295), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelPreferredWorkGroupSizeMultiple")] - GetKernelPreferredWorkGroupSizeMultiple = unchecked(296), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRetainEvent")] - RetainEvent = unchecked(297), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReleaseEvent")] - ReleaseEvent = unchecked(298), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCreateUserEvent")] - CreateUserEvent = unchecked(299), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIsValidEvent")] - IsValidEvent = unchecked(300), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSetUserEventStatus")] - SetUserEventStatus = unchecked(301), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCaptureEventProfilingInfo")] - CaptureEventProfilingInfo = unchecked(302), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGetDefaultQueue")] - GetDefaultQueue = unchecked(303), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBuildNDRange")] - BuildNdRange = unchecked(304), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleImplicitLod")] - ImageSparseSampleImplicitLod = unchecked(305), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleExplicitLod")] - ImageSparseSampleExplicitLod = unchecked(306), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleDrefImplicitLod")] - ImageSparseSampleDrefImplicitLod = unchecked(307), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleDrefExplicitLod")] - ImageSparseSampleDrefExplicitLod = unchecked(308), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjImplicitLod")] - ImageSparseSampleProjImplicitLod = unchecked(309), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjExplicitLod")] - ImageSparseSampleProjExplicitLod = unchecked(310), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjDrefImplicitLod")] - ImageSparseSampleProjDrefImplicitLod = unchecked(311), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjDrefExplicitLod")] - ImageSparseSampleProjDrefExplicitLod = unchecked(312), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseFetch")] - ImageSparseFetch = unchecked(313), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseGather")] - ImageSparseGather = unchecked(314), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseDrefGather")] - ImageSparseDrefGather = unchecked(315), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseTexelsResident")] - ImageSparseTexelsResident = unchecked(316), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpNoLine")] - NoLine = unchecked(317), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFlagTestAndSet")] - AtomicFlagTestAndSet = unchecked(318), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFlagClear")] - AtomicFlagClear = unchecked(319), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseRead")] - ImageSparseRead = unchecked(320), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSizeOf")] - SizeOf = unchecked(321), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypePipeStorage")] - TypePipeStorage = unchecked(322), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConstantPipeStorage")] - ConstantPipeStorage = unchecked(323), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCreatePipeFromPipeStorage")] - CreatePipeFromPipeStorage = unchecked(324), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelLocalSizeForSubgroupCount")] - GetKernelLocalSizeForSubgroupCount = unchecked(325), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelMaxNumSubgroups")] - GetKernelMaxNumSubgroups = unchecked(326), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeNamedBarrier")] - TypeNamedBarrier = unchecked(327), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpNamedBarrierInitialize")] - NamedBarrierInitialize = unchecked(328), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpMemoryNamedBarrier")] - MemoryNamedBarrier = unchecked(329), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpModuleProcessed")] - ModuleProcessed = unchecked(330), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpExecutionModeId")] - ExecutionModeId = unchecked(331), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDecorateId")] - DecorateId = unchecked(332), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformElect")] - GroupNonUniformElect = unchecked(333), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformAll")] - GroupNonUniformAll = unchecked(334), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformAny")] - GroupNonUniformAny = unchecked(335), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformAllEqual")] - GroupNonUniformAllEqual = unchecked(336), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBroadcast")] - GroupNonUniformBroadcast = unchecked(337), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBroadcastFirst")] - GroupNonUniformBroadcastFirst = unchecked(338), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallot")] - GroupNonUniformBallot = unchecked(339), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformInverseBallot")] - GroupNonUniformInverseBallot = unchecked(340), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotBitExtract")] - GroupNonUniformBallotExtract = unchecked(341), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotBitCount")] - GroupNonUniformBallotCount = unchecked(342), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotFindLSB")] - GroupNonUniformBallotFindLsb = unchecked(343), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotFindMSB")] - GroupNonUniformBallotFindMsb = unchecked(344), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffle")] - GroupNonUniformShuffle = unchecked(345), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffleXor")] - GroupNonUniformShuffleXor = unchecked(346), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffleUp")] - GroupNonUniformShuffleUp = unchecked(347), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffleDown")] - GroupNonUniformShuffleDown = unchecked(348), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformIAdd")] - GroupNonUniformiAdd = unchecked(349), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFAdd")] - GroupNonUniformfAdd = unchecked(350), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformIMul")] - GroupNonUniformiMul = unchecked(351), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFMul")] - GroupNonUniformfMul = unchecked(352), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformSMin")] - GroupNonUniformsMin = unchecked(353), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformUMin")] - GroupNonUniformuMin = unchecked(354), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFMin")] - GroupNonUniformfMin = unchecked(355), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformSMax")] - GroupNonUniformsMax = unchecked(356), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformUMax")] - GroupNonUniformuMax = unchecked(357), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFMax")] - GroupNonUniformfMax = unchecked(358), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBitwiseAnd")] - GroupNonUniformBitwiseAnd = unchecked(359), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBitwiseOr")] - GroupNonUniformBitwiseOr = unchecked(360), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBitwiseXor")] - GroupNonUniformBitwiseXor = unchecked(361), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformLogicalAnd")] - GroupNonUniformLogicalAnd = unchecked(362), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformLogicalOr")] - GroupNonUniformLogicalOr = unchecked(363), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformLogicalXor")] - GroupNonUniformLogicalXor = unchecked(364), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformQuadBroadcast")] - GroupNonUniformQuadBroadcast = unchecked(365), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformQuadSwap")] - GroupNonUniformQuadSwap = unchecked(366), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCopyLogical")] - CopyLogical = unchecked(400), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpPtrEqual")] - PtrEqual = unchecked(401), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpPtrNotEqual")] - PtrNotEqual = unchecked(402), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpPtrDiff")] - PtrDiff = unchecked(403), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTerminateInvocation")] - TerminateInvocation = unchecked(4416), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupBallotKHR")] - SubgroupBallotKhr = unchecked(4421), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupFirstInvocationKHR")] - SubgroupFirstInvocationKhr = unchecked(4422), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAllKHR")] - SubgroupAllKhr = unchecked(4428), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAnyKHR")] - SubgroupAnyKhr = unchecked(4429), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAllEqualKHR")] - SubgroupAllEqualKhr = unchecked(4430), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformRotateKHR")] - GroupNonUniformRotateKhr = unchecked(4431), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupReadInvocationKHR")] - SubgroupReadInvocationKhr = unchecked(4432), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTraceRayKHR")] - TraceRayKhr = unchecked(4445), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpExecuteCallableKHR")] - ExecuteCallableKhr = unchecked(4446), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToAccelerationStructureKHR")] - ConvertuToAccelerationStructureKhr = unchecked(4447), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIgnoreIntersectionKHR")] - IgnoreIntersectionKhr = unchecked(4448), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTerminateRayKHR")] - TerminateRayKhr = unchecked(4449), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSDot")] - OpsDot = unchecked(4450), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSDotKHR")] - OpsDotKhr = unchecked(4450), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUDot")] - OpuDot = unchecked(4451), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUDotKHR")] - OpuDotKhr = unchecked(4451), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSUDot")] - SuDot = unchecked(4452), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSUDotKHR")] - SuDotKhr = unchecked(4452), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSDotAccSat")] - OpsDotAccSat = unchecked(4453), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSDotAccSatKHR")] - OpsDotAccSatKhr = unchecked(4453), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUDotAccSat")] - OpuDotAccSat = unchecked(4454), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUDotAccSatKHR")] - OpuDotAccSatKhr = unchecked(4454), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSUDotAccSat")] - SuDotAccSat = unchecked(4455), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSUDotAccSatKHR")] - SuDotAccSatKhr = unchecked(4455), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeRayQueryKHR")] - TypeRayQueryKhr = unchecked(4472), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryInitializeKHR")] - RayQueryInitializeKhr = unchecked(4473), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryTerminateKHR")] - RayQueryTerminateKhr = unchecked(4474), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGenerateIntersectionKHR")] - RayQueryGenerateIntersectionKhr = unchecked(4475), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryConfirmIntersectionKHR")] - RayQueryConfirmIntersectionKhr = unchecked(4476), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryProceedKHR")] - RayQueryProceedKhr = unchecked(4477), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionTypeKHR")] - RayQueryGetIntersectionTypeKhr = unchecked(4479), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupIAddNonUniformAMD")] - GroupiAddNonUniformAmd = unchecked(5000), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupFAddNonUniformAMD")] - GroupfAddNonUniformAmd = unchecked(5001), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMinNonUniformAMD")] - GroupfMinNonUniformAmd = unchecked(5002), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMinNonUniformAMD")] - GroupuMinNonUniformAmd = unchecked(5003), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMinNonUniformAMD")] - GroupsMinNonUniformAmd = unchecked(5004), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMaxNonUniformAMD")] - GroupfMaxNonUniformAmd = unchecked(5005), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMaxNonUniformAMD")] - GroupuMaxNonUniformAmd = unchecked(5006), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMaxNonUniformAMD")] - GroupsMaxNonUniformAmd = unchecked(5007), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFragmentMaskFetchAMD")] - FragmentMaskFetchAmd = unchecked(5011), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFragmentFetchAMD")] - FragmentFetchAmd = unchecked(5012), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReadClockKHR")] - ReadClockKhr = unchecked(5056), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleFootprintNV")] - ImageSampleFootprintNv = unchecked(5283), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpEmitMeshTasksEXT")] - EmitMeshTasksExt = unchecked(5294), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSetMeshOutputsEXT")] - SetMeshOutputsExt = unchecked(5295), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformPartitionNV")] - GroupNonUniformPartitionNv = unchecked(5296), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpWritePackedPrimitiveIndices4x8NV")] - WritePackedPrimitiveIndices4X8Nv = unchecked(5299), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReportIntersectionKHR")] - ReportIntersectionKhr = unchecked(5334), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReportIntersectionNV")] - ReportIntersectionNv = unchecked(5334), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIgnoreIntersectionNV")] - IgnoreIntersectionNv = unchecked(5335), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTerminateRayNV")] - TerminateRayNv = unchecked(5336), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTraceNV")] - TraceNv = unchecked(5337), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTraceMotionNV")] - TraceMotionNv = unchecked(5338), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTraceRayMotionNV")] - TraceRayMotionNv = unchecked(5339), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAccelerationStructureKHR")] - TypeAccelerationStructureKhr = unchecked(5341), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAccelerationStructureNV")] - TypeAccelerationStructureNv = unchecked(5341), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpExecuteCallableNV")] - ExecuteCallableNv = unchecked(5344), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeCooperativeMatrixNV")] - TypeCooperativeMatrixNv = unchecked(5358), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixLoadNV")] - CooperativeMatrixLoadNv = unchecked(5359), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixStoreNV")] - CooperativeMatrixStoreNv = unchecked(5360), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixMulAddNV")] - CooperativeMatrixMulAddNv = unchecked(5361), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixLengthNV")] - CooperativeMatrixLengthNv = unchecked(5362), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpBeginInvocationInterlockEXT")] - BeginInvocationInterlockExt = unchecked(5364), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpEndInvocationInterlockEXT")] - EndInvocationInterlockExt = unchecked(5365), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDemoteToHelperInvocation")] - DemoteToHelperInvocation = unchecked(5380), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDemoteToHelperInvocationEXT")] - DemoteToHelperInvocationExt = unchecked(5380), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIsHelperInvocationEXT")] - IsHelperInvocationExt = unchecked(5381), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToImageNV")] - ConvertuToImageNv = unchecked(5391), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToSamplerNV")] - ConvertuToSamplerNv = unchecked(5392), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertImageToUNV")] - ConvertImageToUnv = unchecked(5393), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertSamplerToUNV")] - ConvertSamplerToUnv = unchecked(5394), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToSampledImageNV")] - ConvertuToSampledImageNv = unchecked(5395), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConvertSampledImageToUNV")] - ConvertSampledImageToUnv = unchecked(5396), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSamplerImageAddressingModeNV")] - SamplerImageAddressingModeNv = unchecked(5397), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleINTEL")] - SubgroupShuffleIntel = unchecked(5571), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleDownINTEL")] - SubgroupShuffleDownIntel = unchecked(5572), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleUpINTEL")] - SubgroupShuffleUpIntel = unchecked(5573), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleXorINTEL")] - SubgroupShuffleXorIntel = unchecked(5574), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupBlockReadINTEL")] - SubgroupBlockReadIntel = unchecked(5575), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupBlockWriteINTEL")] - SubgroupBlockWriteIntel = unchecked(5576), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageBlockReadINTEL")] - SubgroupImageBlockReadIntel = unchecked(5577), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageBlockWriteINTEL")] - SubgroupImageBlockWriteIntel = unchecked(5578), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageMediaBlockReadINTEL")] - SubgroupImageMediaBlockReadIntel = unchecked(5580), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageMediaBlockWriteINTEL")] - SubgroupImageMediaBlockWriteIntel = unchecked(5581), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUCountLeadingZerosINTEL")] - OpuCountLeadingZerosIntel = unchecked(5585), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUCountTrailingZerosINTEL")] - OpuCountTrailingZerosIntel = unchecked(5586), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAbsISubINTEL")] - AbsiSubIntel = unchecked(5587), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAbsUSubINTEL")] - AbsuSubIntel = unchecked(5588), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIAddSatINTEL")] - OpiAddSatIntel = unchecked(5589), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUAddSatINTEL")] - OpuAddSatIntel = unchecked(5590), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIAverageINTEL")] - OpiAverageIntel = unchecked(5591), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUAverageINTEL")] - OpuAverageIntel = unchecked(5592), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIAverageRoundedINTEL")] - OpiAverageRoundedIntel = unchecked(5593), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUAverageRoundedINTEL")] - OpuAverageRoundedIntel = unchecked(5594), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpISubSatINTEL")] - OpiSubSatIntel = unchecked(5595), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUSubSatINTEL")] - OpuSubSatIntel = unchecked(5596), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpIMul32x16INTEL")] - OpiMul32x16Intel = unchecked(5597), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpUMul32x16INTEL")] - OpuMul32x16Intel = unchecked(5598), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConstantFunctionPointerINTEL")] - ConstantFunctionPointerIntel = unchecked(5600), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFunctionPointerCallINTEL")] - FunctionPointerCallIntel = unchecked(5601), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAsmTargetINTEL")] - AsmTargetIntel = unchecked(5609), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAsmINTEL")] - AsmIntel = unchecked(5610), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAsmCallINTEL")] - AsmCallIntel = unchecked(5611), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFMinEXT")] - AtomicfMinExt = unchecked(5614), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFMaxEXT")] - AtomicfMaxExt = unchecked(5615), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAssumeTrueKHR")] - AssumeTrueKhr = unchecked(5630), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpExpectKHR")] - ExpectKhr = unchecked(5631), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDecorateString")] - DecorateString = unchecked(5632), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpDecorateStringGOOGLE")] - DecorateStringGoogle = unchecked(5632), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpMemberDecorateString")] - MemberDecorateString = unchecked(5633), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpMemberDecorateStringGOOGLE")] - MemberDecorateStringGoogle = unchecked(5633), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpVmeImageINTEL")] - VmeImageIntel = unchecked(5699), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeVmeImageINTEL")] - TypeVmeImageIntel = unchecked(5700), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImePayloadINTEL")] - TypeAvcImePayloadIntel = unchecked(5701), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcRefPayloadINTEL")] - TypeAvcRefPayloadIntel = unchecked(5702), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcSicPayloadINTEL")] - TypeAvcSicPayloadIntel = unchecked(5703), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcMcePayloadINTEL")] - TypeAvcMcePayloadIntel = unchecked(5704), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcMceResultINTEL")] - TypeAvcMceResultIntel = unchecked(5705), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeResultINTEL")] - TypeAvcImeResultIntel = unchecked(5706), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeResultSingleReferenceStreamoutINTEL")] - TypeAvcImeResultSingleReferenceStreamoutIntel = unchecked(5707), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeResultDualReferenceStreamoutINTEL")] - TypeAvcImeResultDualReferenceStreamoutIntel = unchecked(5708), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeSingleReferenceStreaminINTEL")] - TypeAvcImeSingleReferenceStreaminIntel = unchecked(5709), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeDualReferenceStreaminINTEL")] - TypeAvcImeDualReferenceStreaminIntel = unchecked(5710), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcRefResultINTEL")] - TypeAvcRefResultIntel = unchecked(5711), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcSicResultINTEL")] - TypeAvcSicResultIntel = unchecked(5712), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL")] - SubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyIntel = unchecked(5713), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL")] - SubgroupAvcMceSetInterBaseMultiReferencePenaltyIntel = unchecked(5714), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL")] - SubgroupAvcMceGetDefaultInterShapePenaltyIntel = unchecked(5715), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetInterShapePenaltyINTEL")] - SubgroupAvcMceSetInterShapePenaltyIntel = unchecked(5716), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL")] - SubgroupAvcMceGetDefaultInterDirectionPenaltyIntel = unchecked(5717), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetInterDirectionPenaltyINTEL")] - SubgroupAvcMceSetInterDirectionPenaltyIntel = unchecked(5718), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL")] - SubgroupAvcMceGetDefaultIntraLumaShapePenaltyIntel = unchecked(5719), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL")] - SubgroupAvcMceGetDefaultInterMotionVectorCostTableIntel = unchecked(5720), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL")] - SubgroupAvcMceGetDefaultHighPenaltyCostTableIntel = unchecked(5721), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL")] - SubgroupAvcMceGetDefaultMediumPenaltyCostTableIntel = unchecked(5722), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL")] - SubgroupAvcMceGetDefaultLowPenaltyCostTableIntel = unchecked(5723), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetMotionVectorCostFunctionINTEL")] - SubgroupAvcMceSetMotionVectorCostFunctionIntel = unchecked(5724), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL")] - SubgroupAvcMceGetDefaultIntraLumaModePenaltyIntel = unchecked(5725), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL")] - SubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyIntel = unchecked(5726), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL")] - SubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyIntel = unchecked(5727), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetAcOnlyHaarINTEL")] - SubgroupAvcMceSetAcOnlyHaarIntel = unchecked(5728), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL")] - SubgroupAvcMceSetSourceInterlacedFieldPolarityIntel = unchecked(5729), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL")] - SubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityIntel = unchecked(5730), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL")] - SubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesIntel = unchecked(5731), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToImePayloadINTEL")] - SubgroupAvcMceConvertToImePayloadIntel = unchecked(5732), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToImeResultINTEL")] - SubgroupAvcMceConvertToImeResultIntel = unchecked(5733), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToRefPayloadINTEL")] - SubgroupAvcMceConvertToRefPayloadIntel = unchecked(5734), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToRefResultINTEL")] - SubgroupAvcMceConvertToRefResultIntel = unchecked(5735), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToSicPayloadINTEL")] - SubgroupAvcMceConvertToSicPayloadIntel = unchecked(5736), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToSicResultINTEL")] - SubgroupAvcMceConvertToSicResultIntel = unchecked(5737), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetMotionVectorsINTEL")] - SubgroupAvcMceGetMotionVectorsIntel = unchecked(5738), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterDistortionsINTEL")] - SubgroupAvcMceGetInterDistortionsIntel = unchecked(5739), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetBestInterDistortionsINTEL")] - SubgroupAvcMceGetBestInterDistortionsIntel = unchecked(5740), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterMajorShapeINTEL")] - SubgroupAvcMceGetInterMajorShapeIntel = unchecked(5741), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterMinorShapeINTEL")] - SubgroupAvcMceGetInterMinorShapeIntel = unchecked(5742), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterDirectionsINTEL")] - SubgroupAvcMceGetInterDirectionsIntel = unchecked(5743), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterMotionVectorCountINTEL")] - SubgroupAvcMceGetInterMotionVectorCountIntel = unchecked(5744), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterReferenceIdsINTEL")] - SubgroupAvcMceGetInterReferenceIdsIntel = unchecked(5745), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL")] - SubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesIntel = unchecked(5746), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeInitializeINTEL")] - SubgroupAvcImeInitializeIntel = unchecked(5747), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetSingleReferenceINTEL")] - SubgroupAvcImeSetSingleReferenceIntel = unchecked(5748), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetDualReferenceINTEL")] - SubgroupAvcImeSetDualReferenceIntel = unchecked(5749), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeRefWindowSizeINTEL")] - SubgroupAvcImeRefWindowSizeIntel = unchecked(5750), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeAdjustRefOffsetINTEL")] - SubgroupAvcImeAdjustRefOffsetIntel = unchecked(5751), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeConvertToMcePayloadINTEL")] - SubgroupAvcImeConvertToMcePayloadIntel = unchecked(5752), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetMaxMotionVectorCountINTEL")] - SubgroupAvcImeSetMaxMotionVectorCountIntel = unchecked(5753), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetUnidirectionalMixDisableINTEL")] - SubgroupAvcImeSetUnidirectionalMixDisableIntel = unchecked(5754), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL")] - SubgroupAvcImeSetEarlySearchTerminationThresholdIntel = unchecked(5755), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetWeightedSadINTEL")] - SubgroupAvcImeSetWeightedSadIntel = unchecked(5756), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceINTEL")] - SubgroupAvcImeEvaluateWithSingleReferenceIntel = unchecked(5757), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceINTEL")] - SubgroupAvcImeEvaluateWithDualReferenceIntel = unchecked(5758), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL")] - SubgroupAvcImeEvaluateWithSingleReferenceStreaminIntel = unchecked(5759), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL")] - SubgroupAvcImeEvaluateWithDualReferenceStreaminIntel = unchecked(5760), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL")] - SubgroupAvcImeEvaluateWithSingleReferenceStreamoutIntel = unchecked(5761), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL")] - SubgroupAvcImeEvaluateWithDualReferenceStreamoutIntel = unchecked(5762), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL")] - SubgroupAvcImeEvaluateWithSingleReferenceStreaminoutIntel = unchecked(5763), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL")] - SubgroupAvcImeEvaluateWithDualReferenceStreaminoutIntel = unchecked(5764), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeConvertToMceResultINTEL")] - SubgroupAvcImeConvertToMceResultIntel = unchecked(5765), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetSingleReferenceStreaminINTEL")] - SubgroupAvcImeGetSingleReferenceStreaminIntel = unchecked(5766), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetDualReferenceStreaminINTEL")] - SubgroupAvcImeGetDualReferenceStreaminIntel = unchecked(5767), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeStripSingleReferenceStreamoutINTEL")] - SubgroupAvcImeStripSingleReferenceStreamoutIntel = unchecked(5768), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeStripDualReferenceStreamoutINTEL")] - SubgroupAvcImeStripDualReferenceStreamoutIntel = unchecked(5769), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL")] - SubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsIntel = unchecked(5770), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL")] - SubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsIntel = unchecked(5771), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL")] - SubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsIntel = unchecked(5772), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL")] - SubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsIntel = unchecked(5773), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL")] - SubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsIntel = unchecked(5774), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL")] - SubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsIntel = unchecked(5775), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetBorderReachedINTEL")] - SubgroupAvcImeGetBorderReachedIntel = unchecked(5776), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetTruncatedSearchIndicationINTEL")] - SubgroupAvcImeGetTruncatedSearchIndicationIntel = unchecked(5777), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL")] - SubgroupAvcImeGetUnidirectionalEarlySearchTerminationIntel = unchecked(5778), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL")] - SubgroupAvcImeGetWeightingPatternMinimumMotionVectorIntel = unchecked(5779), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL")] - SubgroupAvcImeGetWeightingPatternMinimumDistortionIntel = unchecked(5780), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcFmeInitializeINTEL")] - SubgroupAvcFmeInitializeIntel = unchecked(5781), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcBmeInitializeINTEL")] - SubgroupAvcBmeInitializeIntel = unchecked(5782), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefConvertToMcePayloadINTEL")] - SubgroupAvcRefConvertToMcePayloadIntel = unchecked(5783), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefSetBidirectionalMixDisableINTEL")] - SubgroupAvcRefSetBidirectionalMixDisableIntel = unchecked(5784), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefSetBilinearFilterEnableINTEL")] - SubgroupAvcRefSetBilinearFilterEnableIntel = unchecked(5785), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithSingleReferenceINTEL")] - SubgroupAvcRefEvaluateWithSingleReferenceIntel = unchecked(5786), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithDualReferenceINTEL")] - SubgroupAvcRefEvaluateWithDualReferenceIntel = unchecked(5787), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithMultiReferenceINTEL")] - SubgroupAvcRefEvaluateWithMultiReferenceIntel = unchecked(5788), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL")] - SubgroupAvcRefEvaluateWithMultiReferenceInterlacedIntel = unchecked(5789), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefConvertToMceResultINTEL")] - SubgroupAvcRefConvertToMceResultIntel = unchecked(5790), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicInitializeINTEL")] - SubgroupAvcSicInitializeIntel = unchecked(5791), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConfigureSkcINTEL")] - SubgroupAvcSicConfigureSkcIntel = unchecked(5792), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConfigureIpeLumaINTEL")] - SubgroupAvcSicConfigureIpeLumaIntel = unchecked(5793), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConfigureIpeLumaChromaINTEL")] - SubgroupAvcSicConfigureIpeLumaChromaIntel = unchecked(5794), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetMotionVectorMaskINTEL")] - SubgroupAvcSicGetMotionVectorMaskIntel = unchecked(5795), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConvertToMcePayloadINTEL")] - SubgroupAvcSicConvertToMcePayloadIntel = unchecked(5796), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL")] - SubgroupAvcSicSetIntraLumaShapePenaltyIntel = unchecked(5797), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL")] - SubgroupAvcSicSetIntraLumaModeCostFunctionIntel = unchecked(5798), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL")] - SubgroupAvcSicSetIntraChromaModeCostFunctionIntel = unchecked(5799), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetBilinearFilterEnableINTEL")] - SubgroupAvcSicSetBilinearFilterEnableIntel = unchecked(5800), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetSkcForwardTransformEnableINTEL")] - SubgroupAvcSicSetSkcForwardTransformEnableIntel = unchecked(5801), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL")] - SubgroupAvcSicSetBlockBasedRawSkipSadIntel = unchecked(5802), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateIpeINTEL")] - SubgroupAvcSicEvaluateIpeIntel = unchecked(5803), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithSingleReferenceINTEL")] - SubgroupAvcSicEvaluateWithSingleReferenceIntel = unchecked(5804), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithDualReferenceINTEL")] - SubgroupAvcSicEvaluateWithDualReferenceIntel = unchecked(5805), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithMultiReferenceINTEL")] - SubgroupAvcSicEvaluateWithMultiReferenceIntel = unchecked(5806), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL")] - SubgroupAvcSicEvaluateWithMultiReferenceInterlacedIntel = unchecked(5807), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConvertToMceResultINTEL")] - SubgroupAvcSicConvertToMceResultIntel = unchecked(5808), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetIpeLumaShapeINTEL")] - SubgroupAvcSicGetIpeLumaShapeIntel = unchecked(5809), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetBestIpeLumaDistortionINTEL")] - SubgroupAvcSicGetBestIpeLumaDistortionIntel = unchecked(5810), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetBestIpeChromaDistortionINTEL")] - SubgroupAvcSicGetBestIpeChromaDistortionIntel = unchecked(5811), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetPackedIpeLumaModesINTEL")] - SubgroupAvcSicGetPackedIpeLumaModesIntel = unchecked(5812), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetIpeChromaModeINTEL")] - SubgroupAvcSicGetIpeChromaModeIntel = unchecked(5813), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL")] - SubgroupAvcSicGetPackedSkcLumaCountThresholdIntel = unchecked(5814), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL")] - SubgroupAvcSicGetPackedSkcLumaSumThresholdIntel = unchecked(5815), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetInterRawSadsINTEL")] - SubgroupAvcSicGetInterRawSadsIntel = unchecked(5816), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpVariableLengthArrayINTEL")] - VariableLengthArrayIntel = unchecked(5818), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSaveMemoryINTEL")] - SaveMemoryIntel = unchecked(5819), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRestoreMemoryINTEL")] - RestoreMemoryIntel = unchecked(5820), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinCosPiINTEL")] - ArbitraryFloatSinCosPiIntel = unchecked(5840), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCastINTEL")] - ArbitraryFloatCastIntel = unchecked(5841), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCastFromIntINTEL")] - ArbitraryFloatCastFromIntIntel = unchecked(5842), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCastToIntINTEL")] - ArbitraryFloatCastToIntIntel = unchecked(5843), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatAddINTEL")] - ArbitraryFloatAddIntel = unchecked(5846), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSubINTEL")] - ArbitraryFloatSubIntel = unchecked(5847), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatMulINTEL")] - ArbitraryFloatMulIntel = unchecked(5848), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatDivINTEL")] - ArbitraryFloatDivIntel = unchecked(5849), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatGTINTEL")] - ArbitraryFloatGtintel = unchecked(5850), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatGEINTEL")] - ArbitraryFloatGeintel = unchecked(5851), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLTINTEL")] - ArbitraryFloatLtintel = unchecked(5852), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLEINTEL")] - ArbitraryFloatLeintel = unchecked(5853), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatEQINTEL")] - ArbitraryFloatEqintel = unchecked(5854), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatRecipINTEL")] - ArbitraryFloatRecipIntel = unchecked(5855), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatRSqrtINTEL")] - ArbitraryFloatrSqrtIntel = unchecked(5856), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCbrtINTEL")] - ArbitraryFloatCbrtIntel = unchecked(5857), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatHypotINTEL")] - ArbitraryFloatHypotIntel = unchecked(5858), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSqrtINTEL")] - ArbitraryFloatSqrtIntel = unchecked(5859), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLogINTEL")] - ArbitraryFloatLogIntel = unchecked(5860), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLog2INTEL")] - ArbitraryFloatLog2Intel = unchecked(5861), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLog10INTEL")] - ArbitraryFloatLog10Intel = unchecked(5862), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLog1pINTEL")] - ArbitraryFloatLog1PIntel = unchecked(5863), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExpINTEL")] - ArbitraryFloatExpIntel = unchecked(5864), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExp2INTEL")] - ArbitraryFloatExp2Intel = unchecked(5865), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExp10INTEL")] - ArbitraryFloatExp10Intel = unchecked(5866), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExpm1INTEL")] - ArbitraryFloatExpm1Intel = unchecked(5867), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinINTEL")] - ArbitraryFloatSinIntel = unchecked(5868), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCosINTEL")] - ArbitraryFloatCosIntel = unchecked(5869), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinCosINTEL")] - ArbitraryFloatSinCosIntel = unchecked(5870), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinPiINTEL")] - ArbitraryFloatSinPiIntel = unchecked(5871), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCosPiINTEL")] - ArbitraryFloatCosPiIntel = unchecked(5872), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatASinINTEL")] - ArbitraryFloataSinIntel = unchecked(5873), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatASinPiINTEL")] - ArbitraryFloataSinPiIntel = unchecked(5874), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatACosINTEL")] - ArbitraryFloataCosIntel = unchecked(5875), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatACosPiINTEL")] - ArbitraryFloataCosPiIntel = unchecked(5876), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatATanINTEL")] - ArbitraryFloataTanIntel = unchecked(5877), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatATanPiINTEL")] - ArbitraryFloataTanPiIntel = unchecked(5878), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatATan2INTEL")] - ArbitraryFloataTan2Intel = unchecked(5879), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatPowINTEL")] - ArbitraryFloatPowIntel = unchecked(5880), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatPowRINTEL")] - ArbitraryFloatPowRintel = unchecked(5881), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatPowNINTEL")] - ArbitraryFloatPowNintel = unchecked(5882), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpLoopControlINTEL")] - LoopControlIntel = unchecked(5887), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAliasDomainDeclINTEL")] - AliasDomainDeclIntel = unchecked(5911), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAliasScopeDeclINTEL")] - AliasScopeDeclIntel = unchecked(5912), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAliasScopeListDeclINTEL")] - AliasScopeListDeclIntel = unchecked(5913), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFixedSqrtINTEL")] - FixedSqrtIntel = unchecked(5923), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFixedRecipINTEL")] - FixedRecipIntel = unchecked(5924), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFixedRsqrtINTEL")] - FixedRsqrtIntel = unchecked(5925), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinINTEL")] - FixedSinIntel = unchecked(5926), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFixedCosINTEL")] - FixedCosIntel = unchecked(5927), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinCosINTEL")] - FixedSinCosIntel = unchecked(5928), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinPiINTEL")] - FixedSinPiIntel = unchecked(5929), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFixedCosPiINTEL")] - FixedCosPiIntel = unchecked(5930), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinCosPiINTEL")] - FixedSinCosPiIntel = unchecked(5931), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFixedLogINTEL")] - FixedLogIntel = unchecked(5932), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFixedExpINTEL")] - FixedExpIntel = unchecked(5933), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpPtrCastToCrossWorkgroupINTEL")] - PtrCastToCrossWorkgroupIntel = unchecked(5934), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpCrossWorkgroupCastToPtrINTEL")] - CrossWorkgroupCastToPtrIntel = unchecked(5938), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpReadPipeBlockingINTEL")] - ReadPipeBlockingIntel = unchecked(5946), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpWritePipeBlockingINTEL")] - WritePipeBlockingIntel = unchecked(5947), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpFPGARegINTEL")] - FpgaRegIntel = unchecked(5949), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetRayTMinKHR")] - RayQueryGetRaytMinKhr = unchecked(6016), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetRayFlagsKHR")] - RayQueryGetRayFlagsKhr = unchecked(6017), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionTKHR")] - RayQueryGetIntersectionTkhr = unchecked(6018), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionInstanceCustomIndexKHR")] - RayQueryGetIntersectionInstanceCustomIndexKhr = unchecked(6019), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionInstanceIdKHR")] - RayQueryGetIntersectionInstanceIdKhr = unchecked(6020), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR")] - RayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKhr = unchecked(6021), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionGeometryIndexKHR")] - RayQueryGetIntersectionGeometryIndexKhr = unchecked(6022), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionPrimitiveIndexKHR")] - RayQueryGetIntersectionPrimitiveIndexKhr = unchecked(6023), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionBarycentricsKHR")] - RayQueryGetIntersectionBarycentricsKhr = unchecked(6024), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionFrontFaceKHR")] - RayQueryGetIntersectionFrontFaceKhr = unchecked(6025), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionCandidateAABBOpaqueKHR")] - RayQueryGetIntersectionCandidateAabbOpaqueKhr = unchecked(6026), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionObjectRayDirectionKHR")] - RayQueryGetIntersectionObjectRayDirectionKhr = unchecked(6027), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionObjectRayOriginKHR")] - RayQueryGetIntersectionObjectRayOriginKhr = unchecked(6028), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetWorldRayDirectionKHR")] - RayQueryGetWorldRayDirectionKhr = unchecked(6029), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetWorldRayOriginKHR")] - RayQueryGetWorldRayOriginKhr = unchecked(6030), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionObjectToWorldKHR")] - RayQueryGetIntersectionObjectToWorldKhr = unchecked(6031), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionWorldToObjectKHR")] - RayQueryGetIntersectionWorldToObjectKhr = unchecked(6032), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFAddEXT")] - AtomicfAddExt = unchecked(6035), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeBufferSurfaceINTEL")] - TypeBufferSurfaceIntel = unchecked(6086), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpTypeStructContinuedINTEL")] - TypeStructContinuedIntel = unchecked(6090), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpConstantCompositeContinuedINTEL")] - ConstantCompositeContinuedIntel = unchecked(6091), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantCompositeContinuedINTEL")] - SpecConstantCompositeContinuedIntel = unchecked(6092), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpControlBarrierArriveINTEL")] - ControlBarrierArriveIntel = unchecked(6142), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpControlBarrierWaitINTEL")] - ControlBarrierWaitIntel = unchecked(6143), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupIMulKHR")] - GroupiMulKhr = unchecked(6401), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMulKHR")] - GroupfMulKhr = unchecked(6402), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupBitwiseAndKHR")] - GroupBitwiseAndKhr = unchecked(6403), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupBitwiseOrKHR")] - GroupBitwiseOrKhr = unchecked(6404), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupBitwiseXorKHR")] - GroupBitwiseXorKhr = unchecked(6405), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupLogicalAndKHR")] - GroupLogicalAndKhr = unchecked(6406), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupLogicalOrKHR")] - GroupLogicalOrKhr = unchecked(6407), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpGroupLogicalXorKHR")] - GroupLogicalXorKhr = unchecked(6408), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SpvOpMax")] - Max = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "spvc_result")] - public enum SpvcResult - { - /// - /// Success.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_SUCCESS")] - Success = unchecked(0), - - /// - /// The SPIR-V is invalid. Should have been caught by validation ideally.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_ERROR_INVALID_SPIRV")] - ErrorInvalidSpirv = unchecked(-1), - - /// - /// The SPIR-V might be valid or invalid, but SPIRV-Cross currently cannot correctly translate this to your target language.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_ERROR_UNSUPPORTED_SPIRV")] - ErrorUnsupportedSpirv = unchecked(-2), - - /// - /// If for some reason we hit this, new or malloc failed.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_ERROR_OUT_OF_MEMORY")] - ErrorOutOfMemory = unchecked(-3), - - /// - /// Invalid API argument.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_ERROR_INVALID_ARGUMENT")] - ErrorInvalidArgument = unchecked(-4), - - /// - /// Invalid API argument.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_ERROR_INT_MAX")] - ErrorIntMax = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "spvc_capture_mode")] - public enum SpvcCaptureMode - { - /// - /// The Parsed IR payload will be copied, and the handle can be reused to create other compiler instances.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_CAPTURE_MODE_COPY")] - Copy = unchecked(0), - - /// - /// The payload will now be owned by the compiler.
- /// parsed_ir should now be considered a dead blob and must not be used further.
- /// This is optimal for performance and should be the go-to option.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_CAPTURE_MODE_TAKE_OWNERSHIP")] - TakeOwnership = unchecked(1), - - /// - /// The payload will now be owned by the compiler.
- /// parsed_ir should now be considered a dead blob and must not be used further.
- /// This is optimal for performance and should be the go-to option.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_CAPTURE_MODE_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "spvc_backend")] - public enum SpvcBackend - { - /// - /// This backend can only perform reflection, no compiler options are supported. Maps to spirv_cross::Compiler.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_NONE")] - None = unchecked(0), - - /// - /// spirv_cross::CompilerGLSL
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_GLSL")] - Glsl = unchecked(1), - - /// - /// CompilerHLSL
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_HLSL")] - Hlsl = unchecked(2), - - /// - /// CompilerMSL
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_MSL")] - Msl = unchecked(3), - - /// - /// CompilerCPP
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_CPP")] - Cpp = unchecked(4), - - /// - /// CompilerReflection w/ JSON backend
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_JSON")] - Json = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_resource_type")] - public enum SpvcResourceType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_UNKNOWN")] - Unknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_UNIFORM_BUFFER")] - UniformBuffer = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_STORAGE_BUFFER")] - StorageBuffer = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_STAGE_INPUT")] - StageInput = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_STAGE_OUTPUT")] - StageOutput = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_SUBPASS_INPUT")] - SubpassInput = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_STORAGE_IMAGE")] - StorageImage = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_SAMPLED_IMAGE")] - SampledImage = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_ATOMIC_COUNTER")] - AtomicCounter = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_PUSH_CONSTANT")] - PushConstant = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_SEPARATE_IMAGE")] - SeparateImage = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_SEPARATE_SAMPLERS")] - SeparateSamplers = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_ACCELERATION_STRUCTURE")] - AccelerationStructure = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_RAY_QUERY")] - RayQuery = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_SHADER_RECORD_BUFFER")] - ShaderRecordBuffer = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Enum, "spvc_builtin_resource_type")] - public enum SpvcBuiltinResourceType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BUILTIN_RESOURCE_TYPE_UNKNOWN")] - Unknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BUILTIN_RESOURCE_TYPE_STAGE_INPUT")] - StageInput = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BUILTIN_RESOURCE_TYPE_STAGE_OUTPUT")] - StageOutput = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BUILTIN_RESOURCE_TYPE_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to spirv_cross::SPIRType::BaseType.
- ///
- [NativeName(NativeNameType.Enum, "spvc_basetype")] - public enum SpvcBasetype - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_UNKNOWN")] - Unknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_VOID")] - Void = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_BOOLEAN")] - Boolean = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_INT8")] - Int8 = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_UINT8")] - Uint8 = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_INT16")] - Int16 = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_UINT16")] - Uint16 = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_INT32")] - Int32 = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_UINT32")] - Uint32 = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_INT64")] - Int64 = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_UINT64")] - Uint64 = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_ATOMIC_COUNTER")] - AtomicCounter = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_FP16")] - Fp16 = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_FP32")] - Fp32 = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_FP64")] - Fp64 = unchecked(14), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_STRUCT")] - Struct = unchecked(15), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_IMAGE")] - Image = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_SAMPLED_IMAGE")] - SampledImage = unchecked(17), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_SAMPLER")] - Sampler = unchecked(18), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_ACCELERATION_STRUCTURE")] - AccelerationStructure = unchecked(19), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_platform")] - public enum SpvcMslPlatform - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_PLATFORM_IOS")] - Ios = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_PLATFORM_MACOS")] - Macos = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_PLATFORM_MAX_INT")] - MaxInt = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_index_type")] - public enum SpvcMslIndexType - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_INDEX_TYPE_NONE")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_INDEX_TYPE_UINT16")] - Uint16 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_INDEX_TYPE_UINT32")] - Uint32 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_INDEX_TYPE_MAX_INT")] - MaxInt = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_shader_variable_format")] - public enum SpvcMslShaderVariableFormat - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_OTHER")] - Other = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT8")] - Uint8 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT16")] - Uint16 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY16")] - Any16 = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY32")] - Any32 = unchecked(4), - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_VERTEX_FORMAT_OTHER")] - VertexFormatOther = Other, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_VERTEX_FORMAT_UINT8")] - VertexFormatUint8 = Uint8, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_VERTEX_FORMAT_UINT16")] - VertexFormatUint16 = Uint16, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_OTHER")] - InputFormatOther = Other, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_UINT8")] - InputFormatUint8 = Uint8, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_UINT16")] - InputFormatUint16 = Uint16, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_ANY16")] - InputFormatAny16 = Any16, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_ANY32")] - InputFormatAny32 = Any32, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_INT_MAX")] - InputFormatIntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_shader_variable_rate")] - public enum SpvcMslShaderVariableRate - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_RATE_PER_VERTEX")] - PerVertex = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_RATE_PER_PRIMITIVE")] - PerPrimitive = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_RATE_PER_PATCH")] - PerPatch = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_RATE_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_sampler_coord")] - public enum SpvcMslSamplerCoord - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COORD_NORMALIZED")] - Normalized = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COORD_PIXEL")] - Pixel = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_sampler_filter")] - public enum SpvcMslSamplerFilter - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_FILTER_NEAREST")] - Nearest = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_FILTER_LINEAR")] - Linear = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_FILTER_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_sampler_mip_filter")] - public enum SpvcMslSamplerMipFilter - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_MIP_FILTER_NONE")] - None = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_MIP_FILTER_NEAREST")] - Nearest = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_MIP_FILTER_LINEAR")] - Linear = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_MIP_FILTER_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_sampler_address")] - public enum SpvcMslSamplerAddress - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_ZERO")] - ClampToZero = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_EDGE")] - ClampToEdge = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_BORDER")] - ClampToBorder = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_REPEAT")] - Repeat = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_MIRRORED_REPEAT")] - MirroredRepeat = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_sampler_compare_func")] - public enum SpvcMslSamplerCompareFunc - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_NEVER")] - Never = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_LESS")] - Less = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_LESS_EQUAL")] - LessEqual = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_GREATER")] - Greater = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_GREATER_EQUAL")] - GreaterEqual = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_EQUAL")] - Equal = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_NOT_EQUAL")] - NotEqual = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_ALWAYS")] - Always = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_sampler_border_color")] - public enum SpvcMslSamplerBorderColor - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_BORDER_COLOR_TRANSPARENT_BLACK")] - TransparentBlack = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_BORDER_COLOR_OPAQUE_BLACK")] - OpaqueBlack = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_BORDER_COLOR_OPAQUE_WHITE")] - OpaqueWhite = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_BORDER_COLOR_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_format_resolution")] - public enum SpvcMslFormatResolution - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_FORMAT_RESOLUTION_444")] - Resolution444 = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_FORMAT_RESOLUTION_422")] - Resolution422 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_FORMAT_RESOLUTION_420")] - Resolution420 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_FORMAT_RESOLUTION_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_chroma_location")] - public enum SpvcMslChromaLocation - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_CHROMA_LOCATION_COSITED_EVEN")] - CositedEven = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_CHROMA_LOCATION_MIDPOINT")] - Midpoint = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_CHROMA_LOCATION_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_component_swizzle")] - public enum SpvcMslComponentSwizzle - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_IDENTITY")] - Identity = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_ZERO")] - Zero = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_ONE")] - One = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_R")] - Swizzler = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_G")] - Swizzleg = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_B")] - Swizzleb = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_A")] - Swizzlea = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_sampler_ycbcr_model_conversion")] - public enum SpvcMslSamplerYcbcrModelConversion - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY")] - RgbIdentity = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY")] - Identity = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_709")] - Bt709 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_601")] - Bt601 = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_2020")] - Bt2020 = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C+ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_sampler_ycbcr_range")] - public enum SpvcMslSamplerYcbcrRange - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_RANGE_ITU_FULL")] - ItuFull = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_RANGE_ITU_NARROW")] - ItuNarrow = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_RANGE_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_hlsl_binding_flag_bits")] - public enum SpvcHlslBindingFlagBits - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_NONE_BIT")] - AutoNone = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_PUSH_CONSTANT_BIT")] - AutoPushConstant = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_CBV_BIT")] - AutoCbv = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_SRV_BIT")] - AutoSrv = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_UAV_BIT")] - AutoUav = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_SAMPLER_BIT")] - AutoSampler = unchecked(16), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_ALL")] - AutoAll = unchecked(2147483647), - - } - - /// - /// Maps to the various spirv_cross::Compiler*::Option structures. See C++ API for defaults and details.
- ///
- [NativeName(NativeNameType.Enum, "spvc_compiler_option")] - public enum SpvcCompilerOption - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_UNKNOWN")] - Unknown = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_FORCE_TEMPORARY")] - ForceTemporary = unchecked(16777217), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_FLATTEN_MULTIDIMENSIONAL_ARRAYS")] - FlattenMultidimensionalArrays = unchecked(16777218), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_FIXUP_DEPTH_CONVENTION")] - FixupDepthConvention = unchecked(16777219), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_FLIP_VERTEX_Y")] - FlipVertexy = unchecked(16777220), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_SUPPORT_NONZERO_BASE_INSTANCE")] - GlslSupportNonzeroBaseInstance = unchecked(33554437), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_SEPARATE_SHADER_OBJECTS")] - GlslSeparateShaderObjects = unchecked(33554438), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_ENABLE_420PACK_EXTENSION")] - GlslEnable420PackExtension = unchecked(33554439), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_VERSION")] - GlslVersion = unchecked(33554440), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_ES")] - GlslEs = unchecked(33554441), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_VULKAN_SEMANTICS")] - GlslVulkanSemantics = unchecked(33554442), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_ES_DEFAULT_FLOAT_PRECISION_HIGHP")] - GlslEsDefaultFloatPrecisionHighp = unchecked(33554443), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_ES_DEFAULT_INT_PRECISION_HIGHP")] - GlslEsDefaultIntPrecisionHighp = unchecked(33554444), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_SHADER_MODEL")] - HlslShaderModel = unchecked(67108877), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_POINT_SIZE_COMPAT")] - HlslPointSizeCompat = unchecked(67108878), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_POINT_COORD_COMPAT")] - HlslPointCoordCompat = unchecked(67108879), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_SUPPORT_NONZERO_BASE_VERTEX_BASE_INSTANCE")] - HlslSupportNonzeroBaseVertexBaseInstance = unchecked(67108880), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_VERSION")] - MslVersion = unchecked(134217745), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_TEXEL_BUFFER_TEXTURE_WIDTH")] - MslTexelBufferTextureWidth = unchecked(134217746), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_AUX_BUFFER_INDEX")] - MslAuxBufferIndex = unchecked(134217747), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SWIZZLE_BUFFER_INDEX")] - MslSwizzleBufferIndex = unchecked(134217747), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_INDIRECT_PARAMS_BUFFER_INDEX")] - MslIndirectParamsBufferIndex = unchecked(134217748), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_OUTPUT_BUFFER_INDEX")] - MslShaderOutputBufferIndex = unchecked(134217749), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_PATCH_OUTPUT_BUFFER_INDEX")] - MslShaderPatchOutputBufferIndex = unchecked(134217750), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_TESS_FACTOR_OUTPUT_BUFFER_INDEX")] - MslShaderTessFactorOutputBufferIndex = unchecked(134217751), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_INPUT_WORKGROUP_INDEX")] - MslShaderInputWorkgroupIndex = unchecked(134217752), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_POINT_SIZE_BUILTIN")] - MslEnablePointSizeBuiltin = unchecked(134217753), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_DISABLE_RASTERIZATION")] - MslDisableRasterization = unchecked(134217754), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_CAPTURE_OUTPUT_TO_BUFFER")] - MslCaptureOutputToBuffer = unchecked(134217755), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SWIZZLE_TEXTURE_SAMPLES")] - MslSwizzleTextureSamples = unchecked(134217756), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_PAD_FRAGMENT_OUTPUT_COMPONENTS")] - MslPadFragmentOutputComponents = unchecked(134217757), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_TESS_DOMAIN_ORIGIN_LOWER_LEFT")] - MslTessDomainOriginLowerLeft = unchecked(134217758), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_PLATFORM")] - MslPlatform = unchecked(134217759), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ARGUMENT_BUFFERS")] - MslArgumentBuffers = unchecked(134217760), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_EMIT_PUSH_CONSTANT_AS_UNIFORM_BUFFER")] - GlslEmitPushConstantAsUniformBuffer = unchecked(33554465), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_TEXTURE_BUFFER_NATIVE")] - MslTextureBufferNative = unchecked(134217762), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_EMIT_UNIFORM_BUFFER_AS_PLAIN_UNIFORMS")] - GlslEmitUniformBufferAsPlainUniforms = unchecked(33554467), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_BUFFER_SIZE_BUFFER_INDEX")] - MslBufferSizeBufferIndex = unchecked(134217764), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_EMIT_LINE_DIRECTIVES")] - EmitLineDirectives = unchecked(16777253), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_MULTIVIEW")] - MslMultiview = unchecked(134217766), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_VIEW_MASK_BUFFER_INDEX")] - MslViewMaskBufferIndex = unchecked(134217767), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_DEVICE_INDEX")] - MslDeviceIndex = unchecked(134217768), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_VIEW_INDEX_FROM_DEVICE_INDEX")] - MslViewIndexFromDeviceIndex = unchecked(134217769), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_DISPATCH_BASE")] - MslDispatchBase = unchecked(134217770), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_DYNAMIC_OFFSETS_BUFFER_INDEX")] - MslDynamicOffsetsBufferIndex = unchecked(134217771), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_TEXTURE_1D_AS_2D")] - MslTexture1DAs2D = unchecked(134217772), - - /// - /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_BASE_INDEX_ZERO")] - MslEnableBaseIndexZero = unchecked(134217773), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_IOS_FRAMEBUFFER_FETCH_SUBPASS")] - MslIosFramebufferFetchSubpass = unchecked(134217774), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_FRAMEBUFFER_FETCH_SUBPASS")] - MslFramebufferFetchSubpass = unchecked(134217774), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_INVARIANT_FP_MATH")] - MslInvariantFpMath = unchecked(134217775), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_EMULATE_CUBEMAP_ARRAY")] - MslEmulateCubemapArray = unchecked(134217776), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_DECORATION_BINDING")] - MslEnableDecorationBinding = unchecked(134217777), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_FORCE_ACTIVE_ARGUMENT_BUFFER_RESOURCES")] - MslForceActiveArgumentBufferResources = unchecked(134217778), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_FORCE_NATIVE_ARRAYS")] - MslForceNativeArrays = unchecked(134217779), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_ENABLE_STORAGE_IMAGE_QUALIFIER_DEDUCTION")] - EnableStorageImageQualifierDeduction = unchecked(16777268), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_FORCE_STORAGE_BUFFER_AS_UAV")] - HlslForceStorageBufferAsUav = unchecked(67108917), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_FORCE_ZERO_INITIALIZED_VARIABLES")] - ForceZeroInitializedVariables = unchecked(16777270), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_NONWRITABLE_UAV_TEXTURE_AS_SRV")] - HlslNonwritableUavTextureAsSrv = unchecked(67108919), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_OUTPUT_MASK")] - MslEnableFragOutputMask = unchecked(134217784), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_DEPTH_BUILTIN")] - MslEnableFragDepthBuiltin = unchecked(134217785), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_STENCIL_REF_BUILTIN")] - MslEnableFragStencilRefBuiltin = unchecked(134217786), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_CLIP_DISTANCE_USER_VARYING")] - MslEnableClipDistanceUserVarying = unchecked(134217787), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_ENABLE_16BIT_TYPES")] - HlslEnable16Types = unchecked(67108924), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_MULTI_PATCH_WORKGROUP")] - MslMultiPatchWorkgroup = unchecked(134217789), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_INPUT_BUFFER_INDEX")] - MslShaderInputBufferIndex = unchecked(134217790), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_INDEX_BUFFER_INDEX")] - MslShaderIndexBufferIndex = unchecked(134217791), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_VERTEX_FOR_TESSELLATION")] - MslVertexForTessellation = unchecked(134217792), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_VERTEX_INDEX_TYPE")] - MslVertexIndexType = unchecked(134217793), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_FORCE_FLATTENED_IO_BLOCKS")] - GlslForceFlattenedIoBlocks = unchecked(33554498), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_MULTIVIEW_LAYERED_RENDERING")] - MslMultiviewLayeredRendering = unchecked(134217795), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ARRAYED_SUBPASS_INPUT")] - MslArrayedSubpassInput = unchecked(134217796), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_R32UI_LINEAR_TEXTURE_ALIGNMENT")] - Mslr32UiLinearTextureAlignment = unchecked(134217797), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_R32UI_ALIGNMENT_CONSTANT_ID")] - Mslr32UiAlignmentConstantId = unchecked(134217798), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_FLATTEN_MATRIX_VERTEX_INPUT_SEMANTICS")] - HlslFlattenMatrixVertexInputSemantics = unchecked(67108935), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_IOS_USE_SIMDGROUP_FUNCTIONS")] - MslIosUseSimdgroupFunctions = unchecked(134217800), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_EMULATE_SUBGROUPS")] - MslEmulateSubgroups = unchecked(134217801), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_FIXED_SUBGROUP_SIZE")] - MslFixedSubgroupSize = unchecked(134217802), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_FORCE_SAMPLE_RATE_SHADING")] - MslForceSampleRateShading = unchecked(134217803), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_IOS_SUPPORT_BASE_VERTEX_INSTANCE")] - MslIosSupportBaseVertexInstance = unchecked(134217804), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_OVR_MULTIVIEW_VIEW_COUNT")] - GlslOvrMultiviewViewCount = unchecked(33554509), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_RELAX_NAN_CHECKS")] - RelaxNanChecks = unchecked(16777294), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_RAW_BUFFER_TESE_INPUT")] - MslRawBufferTeseInput = unchecked(134217807), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_PATCH_INPUT_BUFFER_INDEX")] - MslShaderPatchInputBufferIndex = unchecked(134217808), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_MANUAL_HELPER_INVOCATION_UPDATES")] - MslManualHelperInvocationUpdates = unchecked(134217809), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_CHECK_DISCARDED_FRAG_STORES")] - MslCheckDiscardedFragStores = unchecked(134217810), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_ENABLE_ROW_MAJOR_LOAD_WORKAROUND")] - GlslEnableRowMajorLoadWorkaround = unchecked(33554515), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ARGUMENT_BUFFERS_TIER")] - MslArgumentBuffersTier = unchecked(134217812), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SAMPLE_DREF_LOD_ARRAY_AS_GRAD")] - MslSampleDrefLodArrayAsGrad = unchecked(134217813), - - /// - /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_INT_MAX")] - IntMax = unchecked(2147483647), - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.Enum, "spvc_msl_shader_variable_format")] - public enum SpvcMslShaderInputFormat - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_OTHER")] - VariableFormatOther = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT8")] - VariableFormatUint8 = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT16")] - VariableFormatUint16 = unchecked(2), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY16")] - VariableFormatAny16 = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY32")] - VariableFormatAny32 = unchecked(4), - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_VERTEX_FORMAT_OTHER")] - VertexFormatOther = VariableFormatOther, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_VERTEX_FORMAT_UINT8")] - VertexFormatUint8 = VariableFormatUint8, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_VERTEX_FORMAT_UINT16")] - VertexFormatUint16 = VariableFormatUint16, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_OTHER")] - Other = VariableFormatOther, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_UINT8")] - Uint8 = VariableFormatUint8, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_UINT16")] - Uint16 = VariableFormatUint16, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_ANY16")] - Any16 = VariableFormatAny16, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_ANY32")] - Any32 = VariableFormatAny32, - - /// - /// Deprecated names.
- ///
- [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_INT_MAX")] - IntMax = unchecked(2147483647), - - } - -} +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using HexaGen.Runtime; + +namespace Hexa.NET.SPIRVCross +{ + [NativeName(NativeNameType.Enum, "SpvSourceLanguage_")] + public enum SpvSourceLanguage + { + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageUnknown")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageESSL")] + [NativeName(NativeNameType.Value, "1")] + Essl = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageGLSL")] + [NativeName(NativeNameType.Value, "2")] + Glsl = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageOpenCL_C")] + [NativeName(NativeNameType.Value, "3")] + OpenClc = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageOpenCL_CPP")] + [NativeName(NativeNameType.Value, "4")] + OpenClCpp = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageHLSL")] + [NativeName(NativeNameType.Value, "5")] + Hlsl = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageCPP_for_OpenCL")] + [NativeName(NativeNameType.Value, "6")] + CppForOpenCl = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageSYCL")] + [NativeName(NativeNameType.Value, "7")] + Sycl = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvExecutionModel_")] + public enum SpvExecutionModel + { + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelVertex")] + [NativeName(NativeNameType.Value, "0")] + Vertex = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTessellationControl")] + [NativeName(NativeNameType.Value, "1")] + TessellationControl = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTessellationEvaluation")] + [NativeName(NativeNameType.Value, "2")] + TessellationEvaluation = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelGeometry")] + [NativeName(NativeNameType.Value, "3")] + Geometry = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelFragment")] + [NativeName(NativeNameType.Value, "4")] + Fragment = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelGLCompute")] + [NativeName(NativeNameType.Value, "5")] + GlCompute = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelKernel")] + [NativeName(NativeNameType.Value, "6")] + Kernel = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTaskNV")] + [NativeName(NativeNameType.Value, "5267")] + TaskNv = unchecked(5267), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMeshNV")] + [NativeName(NativeNameType.Value, "5268")] + MeshNv = unchecked(5268), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelRayGenerationKHR")] + [NativeName(NativeNameType.Value, "5313")] + RayGenerationKhr = unchecked(5313), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelRayGenerationNV")] + [NativeName(NativeNameType.Value, "5313")] + RayGenerationNv = unchecked(5313), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelIntersectionKHR")] + [NativeName(NativeNameType.Value, "5314")] + IntersectionKhr = unchecked(5314), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelIntersectionNV")] + [NativeName(NativeNameType.Value, "5314")] + IntersectionNv = unchecked(5314), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelAnyHitKHR")] + [NativeName(NativeNameType.Value, "5315")] + AnyHitKhr = unchecked(5315), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelAnyHitNV")] + [NativeName(NativeNameType.Value, "5315")] + AnyHitNv = unchecked(5315), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelClosestHitKHR")] + [NativeName(NativeNameType.Value, "5316")] + ClosestHitKhr = unchecked(5316), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelClosestHitNV")] + [NativeName(NativeNameType.Value, "5316")] + ClosestHitNv = unchecked(5316), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMissKHR")] + [NativeName(NativeNameType.Value, "5317")] + MissKhr = unchecked(5317), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMissNV")] + [NativeName(NativeNameType.Value, "5317")] + MissNv = unchecked(5317), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelCallableKHR")] + [NativeName(NativeNameType.Value, "5318")] + CallableKhr = unchecked(5318), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelCallableNV")] + [NativeName(NativeNameType.Value, "5318")] + CallableNv = unchecked(5318), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTaskEXT")] + [NativeName(NativeNameType.Value, "5364")] + TaskExt = unchecked(5364), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMeshEXT")] + [NativeName(NativeNameType.Value, "5365")] + MeshExt = unchecked(5365), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvAddressingModel_")] + public enum SpvAddressingModel + { + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelLogical")] + [NativeName(NativeNameType.Value, "0")] + Logical = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysical32")] + [NativeName(NativeNameType.Value, "1")] + Physical32 = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysical64")] + [NativeName(NativeNameType.Value, "2")] + Physical64 = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysicalStorageBuffer64")] + [NativeName(NativeNameType.Value, "5348")] + PhysicalStorageBuffer64 = unchecked(5348), + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysicalStorageBuffer64EXT")] + [NativeName(NativeNameType.Value, "5348")] + PhysicalStorageBuffer64Ext = unchecked(5348), + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvMemoryModel_")] + public enum SpvMemoryModel + { + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelSimple")] + [NativeName(NativeNameType.Value, "0")] + Simple = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelGLSL450")] + [NativeName(NativeNameType.Value, "1")] + Glsl450 = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelOpenCL")] + [NativeName(NativeNameType.Value, "2")] + OpenCl = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelVulkan")] + [NativeName(NativeNameType.Value, "3")] + Vulkan = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelVulkanKHR")] + [NativeName(NativeNameType.Value, "3")] + VulkanKhr = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvExecutionMode_")] + public enum SpvExecutionMode + { + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInvocations")] + [NativeName(NativeNameType.Value, "0")] + Invocations = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSpacingEqual")] + [NativeName(NativeNameType.Value, "1")] + SpacingEqual = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSpacingFractionalEven")] + [NativeName(NativeNameType.Value, "2")] + SpacingFractionalEven = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSpacingFractionalOdd")] + [NativeName(NativeNameType.Value, "3")] + SpacingFractionalOdd = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeVertexOrderCw")] + [NativeName(NativeNameType.Value, "4")] + VertexOrderCw = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeVertexOrderCcw")] + [NativeName(NativeNameType.Value, "5")] + VertexOrderCcw = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModePixelCenterInteger")] + [NativeName(NativeNameType.Value, "6")] + PixelCenterInteger = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOriginUpperLeft")] + [NativeName(NativeNameType.Value, "7")] + OriginUpperLeft = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOriginLowerLeft")] + [NativeName(NativeNameType.Value, "8")] + OriginLowerLeft = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeEarlyFragmentTests")] + [NativeName(NativeNameType.Value, "9")] + EarlyFragmentTests = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModePointMode")] + [NativeName(NativeNameType.Value, "10")] + PointMode = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeXfb")] + [NativeName(NativeNameType.Value, "11")] + Xfb = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthReplacing")] + [NativeName(NativeNameType.Value, "12")] + DepthReplacing = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthGreater")] + [NativeName(NativeNameType.Value, "14")] + DepthGreater = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthLess")] + [NativeName(NativeNameType.Value, "15")] + DepthLess = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthUnchanged")] + [NativeName(NativeNameType.Value, "16")] + DepthUnchanged = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSize")] + [NativeName(NativeNameType.Value, "17")] + LocalSize = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSizeHint")] + [NativeName(NativeNameType.Value, "18")] + LocalSizeHint = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputPoints")] + [NativeName(NativeNameType.Value, "19")] + InputPoints = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputLines")] + [NativeName(NativeNameType.Value, "20")] + InputLines = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputLinesAdjacency")] + [NativeName(NativeNameType.Value, "21")] + InputLinesAdjacency = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeTriangles")] + [NativeName(NativeNameType.Value, "22")] + Triangles = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputTrianglesAdjacency")] + [NativeName(NativeNameType.Value, "23")] + InputTrianglesAdjacency = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeQuads")] + [NativeName(NativeNameType.Value, "24")] + Quads = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeIsolines")] + [NativeName(NativeNameType.Value, "25")] + Isolines = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputVertices")] + [NativeName(NativeNameType.Value, "26")] + OutputVertices = unchecked(26), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputPoints")] + [NativeName(NativeNameType.Value, "27")] + OutputPoints = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputLineStrip")] + [NativeName(NativeNameType.Value, "28")] + OutputLineStrip = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputTriangleStrip")] + [NativeName(NativeNameType.Value, "29")] + OutputTriangleStrip = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeVecTypeHint")] + [NativeName(NativeNameType.Value, "30")] + VecTypeHint = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeContractionOff")] + [NativeName(NativeNameType.Value, "31")] + ContractionOff = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInitializer")] + [NativeName(NativeNameType.Value, "33")] + Initializer = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeFinalizer")] + [NativeName(NativeNameType.Value, "34")] + Finalizer = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupSize")] + [NativeName(NativeNameType.Value, "35")] + SubgroupSize = unchecked(35), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupsPerWorkgroup")] + [NativeName(NativeNameType.Value, "36")] + SubgroupsPerWorkgroup = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupsPerWorkgroupId")] + [NativeName(NativeNameType.Value, "37")] + SubgroupsPerWorkgroupId = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSizeId")] + [NativeName(NativeNameType.Value, "38")] + LocalSizeId = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSizeHintId")] + [NativeName(NativeNameType.Value, "39")] + LocalSizeHintId = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupUniformControlFlowKHR")] + [NativeName(NativeNameType.Value, "4421")] + SubgroupUniformControlFlowKhr = unchecked(4421), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModePostDepthCoverage")] + [NativeName(NativeNameType.Value, "4446")] + PostDepthCoverage = unchecked(4446), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDenormPreserve")] + [NativeName(NativeNameType.Value, "4459")] + DenormPreserve = unchecked(4459), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDenormFlushToZero")] + [NativeName(NativeNameType.Value, "4460")] + DenormFlushToZero = unchecked(4460), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSignedZeroInfNanPreserve")] + [NativeName(NativeNameType.Value, "4461")] + SignedZeroInfNanPreserve = unchecked(4461), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTE")] + [NativeName(NativeNameType.Value, "4462")] + RoundingModeRte = unchecked(4462), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTZ")] + [NativeName(NativeNameType.Value, "4463")] + RoundingModeRtz = unchecked(4463), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeEarlyAndLateFragmentTestsAMD")] + [NativeName(NativeNameType.Value, "5017")] + EarlyAndLateFragmentTestsAmd = unchecked(5017), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefReplacingEXT")] + [NativeName(NativeNameType.Value, "5027")] + StencilRefReplacingExt = unchecked(5027), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefUnchangedFrontAMD")] + [NativeName(NativeNameType.Value, "5079")] + StencilRefUnchangedFrontAmd = unchecked(5079), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefGreaterFrontAMD")] + [NativeName(NativeNameType.Value, "5080")] + StencilRefGreaterFrontAmd = unchecked(5080), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefLessFrontAMD")] + [NativeName(NativeNameType.Value, "5081")] + StencilRefLessFrontAmd = unchecked(5081), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefUnchangedBackAMD")] + [NativeName(NativeNameType.Value, "5082")] + StencilRefUnchangedBackAmd = unchecked(5082), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefGreaterBackAMD")] + [NativeName(NativeNameType.Value, "5083")] + StencilRefGreaterBackAmd = unchecked(5083), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefLessBackAMD")] + [NativeName(NativeNameType.Value, "5084")] + StencilRefLessBackAmd = unchecked(5084), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputLinesEXT")] + [NativeName(NativeNameType.Value, "5269")] + OutputLinesExt = unchecked(5269), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputLinesNV")] + [NativeName(NativeNameType.Value, "5269")] + OutputLinesNv = unchecked(5269), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputPrimitivesEXT")] + [NativeName(NativeNameType.Value, "5270")] + OutputPrimitivesExt = unchecked(5270), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputPrimitivesNV")] + [NativeName(NativeNameType.Value, "5270")] + OutputPrimitivesNv = unchecked(5270), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDerivativeGroupQuadsNV")] + [NativeName(NativeNameType.Value, "5289")] + DerivativeGroupQuadsNv = unchecked(5289), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDerivativeGroupLinearNV")] + [NativeName(NativeNameType.Value, "5290")] + DerivativeGroupLinearNv = unchecked(5290), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputTrianglesEXT")] + [NativeName(NativeNameType.Value, "5298")] + OutputTrianglesExt = unchecked(5298), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputTrianglesNV")] + [NativeName(NativeNameType.Value, "5298")] + OutputTrianglesNv = unchecked(5298), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModePixelInterlockOrderedEXT")] + [NativeName(NativeNameType.Value, "5366")] + PixelInterlockOrderedExt = unchecked(5366), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModePixelInterlockUnorderedEXT")] + [NativeName(NativeNameType.Value, "5367")] + PixelInterlockUnorderedExt = unchecked(5367), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSampleInterlockOrderedEXT")] + [NativeName(NativeNameType.Value, "5368")] + SampleInterlockOrderedExt = unchecked(5368), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSampleInterlockUnorderedEXT")] + [NativeName(NativeNameType.Value, "5369")] + SampleInterlockUnorderedExt = unchecked(5369), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeShadingRateInterlockOrderedEXT")] + [NativeName(NativeNameType.Value, "5370")] + ShadingRateInterlockOrderedExt = unchecked(5370), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeShadingRateInterlockUnorderedEXT")] + [NativeName(NativeNameType.Value, "5371")] + ShadingRateInterlockUnorderedExt = unchecked(5371), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSharedLocalMemorySizeINTEL")] + [NativeName(NativeNameType.Value, "5618")] + SharedLocalMemorySizeIntel = unchecked(5618), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTPINTEL")] + [NativeName(NativeNameType.Value, "5620")] + RoundingModeRtpintel = unchecked(5620), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTNINTEL")] + [NativeName(NativeNameType.Value, "5621")] + RoundingModeRtnintel = unchecked(5621), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeFloatingPointModeALTINTEL")] + [NativeName(NativeNameType.Value, "5622")] + FloatingPointModeAltintel = unchecked(5622), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeFloatingPointModeIEEEINTEL")] + [NativeName(NativeNameType.Value, "5623")] + FloatingPointModeIeeeintel = unchecked(5623), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeMaxWorkgroupSizeINTEL")] + [NativeName(NativeNameType.Value, "5893")] + MaxWorkgroupSizeIntel = unchecked(5893), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeMaxWorkDimINTEL")] + [NativeName(NativeNameType.Value, "5894")] + MaxWorkDimIntel = unchecked(5894), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNoGlobalOffsetINTEL")] + [NativeName(NativeNameType.Value, "5895")] + NoGlobalOffsetIntel = unchecked(5895), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNumSIMDWorkitemsINTEL")] + [NativeName(NativeNameType.Value, "5896")] + NumSimdWorkitemsIntel = unchecked(5896), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSchedulerTargetFmaxMhzINTEL")] + [NativeName(NativeNameType.Value, "5903")] + SchedulerTargetFmaxMhzIntel = unchecked(5903), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNamedBarrierCountINTEL")] + [NativeName(NativeNameType.Value, "6417")] + NamedBarrierCountIntel = unchecked(6417), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvStorageClass_")] + public enum SpvStorageClass + { + [NativeName(NativeNameType.EnumItem, "SpvStorageClassUniformConstant")] + [NativeName(NativeNameType.Value, "0")] + UniformConstant = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassInput")] + [NativeName(NativeNameType.Value, "1")] + Input = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassUniform")] + [NativeName(NativeNameType.Value, "2")] + Uniform = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassOutput")] + [NativeName(NativeNameType.Value, "3")] + Output = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassWorkgroup")] + [NativeName(NativeNameType.Value, "4")] + Workgroup = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassCrossWorkgroup")] + [NativeName(NativeNameType.Value, "5")] + CrossWorkgroup = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassPrivate")] + [NativeName(NativeNameType.Value, "6")] + Private = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassFunction")] + [NativeName(NativeNameType.Value, "7")] + Function = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassGeneric")] + [NativeName(NativeNameType.Value, "8")] + Generic = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassPushConstant")] + [NativeName(NativeNameType.Value, "9")] + PushConstant = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassAtomicCounter")] + [NativeName(NativeNameType.Value, "10")] + AtomicCounter = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassImage")] + [NativeName(NativeNameType.Value, "11")] + Image = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassStorageBuffer")] + [NativeName(NativeNameType.Value, "12")] + Buffer = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassCallableDataKHR")] + [NativeName(NativeNameType.Value, "5328")] + CallableDataKhr = unchecked(5328), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassCallableDataNV")] + [NativeName(NativeNameType.Value, "5328")] + CallableDataNv = unchecked(5328), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingCallableDataKHR")] + [NativeName(NativeNameType.Value, "5329")] + IncomingCallableDataKhr = unchecked(5329), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingCallableDataNV")] + [NativeName(NativeNameType.Value, "5329")] + IncomingCallableDataNv = unchecked(5329), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassRayPayloadKHR")] + [NativeName(NativeNameType.Value, "5338")] + RayPayloadKhr = unchecked(5338), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassRayPayloadNV")] + [NativeName(NativeNameType.Value, "5338")] + RayPayloadNv = unchecked(5338), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassHitAttributeKHR")] + [NativeName(NativeNameType.Value, "5339")] + HitAttributeKhr = unchecked(5339), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassHitAttributeNV")] + [NativeName(NativeNameType.Value, "5339")] + HitAttributeNv = unchecked(5339), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingRayPayloadKHR")] + [NativeName(NativeNameType.Value, "5342")] + IncomingRayPayloadKhr = unchecked(5342), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingRayPayloadNV")] + [NativeName(NativeNameType.Value, "5342")] + IncomingRayPayloadNv = unchecked(5342), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassShaderRecordBufferKHR")] + [NativeName(NativeNameType.Value, "5343")] + ShaderRecordBufferKhr = unchecked(5343), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassShaderRecordBufferNV")] + [NativeName(NativeNameType.Value, "5343")] + ShaderRecordBufferNv = unchecked(5343), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassPhysicalStorageBuffer")] + [NativeName(NativeNameType.Value, "5349")] + PhysicalStorageBuffer = unchecked(5349), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassPhysicalStorageBufferEXT")] + [NativeName(NativeNameType.Value, "5349")] + PhysicalStorageBufferExt = unchecked(5349), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassTaskPayloadWorkgroupEXT")] + [NativeName(NativeNameType.Value, "5402")] + TaskPayloadWorkgroupExt = unchecked(5402), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassCodeSectionINTEL")] + [NativeName(NativeNameType.Value, "5605")] + CodeSectionIntel = unchecked(5605), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassDeviceOnlyINTEL")] + [NativeName(NativeNameType.Value, "5936")] + DeviceOnlyIntel = unchecked(5936), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassHostOnlyINTEL")] + [NativeName(NativeNameType.Value, "5937")] + HostOnlyIntel = unchecked(5937), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvDim_")] + public enum SpvDim + { + [NativeName(NativeNameType.EnumItem, "SpvDim1D")] + [NativeName(NativeNameType.Value, "0")] + Dim1D = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvDim2D")] + [NativeName(NativeNameType.Value, "1")] + Dim2D = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvDim3D")] + [NativeName(NativeNameType.Value, "2")] + Dim3D = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvDimCube")] + [NativeName(NativeNameType.Value, "3")] + Cube = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvDimRect")] + [NativeName(NativeNameType.Value, "4")] + Rect = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvDimBuffer")] + [NativeName(NativeNameType.Value, "5")] + Buffer = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvDimSubpassData")] + [NativeName(NativeNameType.Value, "6")] + SubpassData = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvDimMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvSamplerAddressingMode_")] + public enum SpvSamplerAddressingMode + { + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeClampToEdge")] + [NativeName(NativeNameType.Value, "1")] + ClampToEdge = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeClamp")] + [NativeName(NativeNameType.Value, "2")] + Clamp = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeRepeat")] + [NativeName(NativeNameType.Value, "3")] + Repeat = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeRepeatMirrored")] + [NativeName(NativeNameType.Value, "4")] + RepeatMirrored = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvSamplerFilterMode_")] + public enum SpvSamplerFilterMode + { + [NativeName(NativeNameType.EnumItem, "SpvSamplerFilterModeNearest")] + [NativeName(NativeNameType.Value, "0")] + Nearest = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvSamplerFilterModeLinear")] + [NativeName(NativeNameType.Value, "1")] + Linear = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvSamplerFilterModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvImageFormat_")] + public enum SpvImageFormat + { + [NativeName(NativeNameType.EnumItem, "SpvImageFormatUnknown")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba32f")] + [NativeName(NativeNameType.Value, "1")] + Rgba32f = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16f")] + [NativeName(NativeNameType.Value, "2")] + Rgba16f = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR32f")] + [NativeName(NativeNameType.Value, "3")] + Formatr32f = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8")] + [NativeName(NativeNameType.Value, "4")] + Rgba8 = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8Snorm")] + [NativeName(NativeNameType.Value, "5")] + Rgba8Snorm = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg32f")] + [NativeName(NativeNameType.Value, "6")] + Rg32f = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16f")] + [NativeName(NativeNameType.Value, "7")] + Rg16f = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR11fG11fB10f")] + [NativeName(NativeNameType.Value, "8")] + Formatr11fg11fb10f = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16f")] + [NativeName(NativeNameType.Value, "9")] + Formatr16f = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16")] + [NativeName(NativeNameType.Value, "10")] + Rgba16 = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgb10A2")] + [NativeName(NativeNameType.Value, "11")] + Rgb10a2 = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16")] + [NativeName(NativeNameType.Value, "12")] + Rg16 = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8")] + [NativeName(NativeNameType.Value, "13")] + Rg8 = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16")] + [NativeName(NativeNameType.Value, "14")] + Formatr16 = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8")] + [NativeName(NativeNameType.Value, "15")] + Formatr8 = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16Snorm")] + [NativeName(NativeNameType.Value, "16")] + Rgba16Snorm = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16Snorm")] + [NativeName(NativeNameType.Value, "17")] + Rg16Snorm = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8Snorm")] + [NativeName(NativeNameType.Value, "18")] + Rg8Snorm = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16Snorm")] + [NativeName(NativeNameType.Value, "19")] + Formatr16Snorm = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8Snorm")] + [NativeName(NativeNameType.Value, "20")] + Formatr8Snorm = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba32i")] + [NativeName(NativeNameType.Value, "21")] + Rgba32i = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16i")] + [NativeName(NativeNameType.Value, "22")] + Rgba16i = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8i")] + [NativeName(NativeNameType.Value, "23")] + Rgba8I = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR32i")] + [NativeName(NativeNameType.Value, "24")] + Formatr32i = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg32i")] + [NativeName(NativeNameType.Value, "25")] + Rg32i = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16i")] + [NativeName(NativeNameType.Value, "26")] + Rg16i = unchecked(26), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8i")] + [NativeName(NativeNameType.Value, "27")] + Rg8I = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16i")] + [NativeName(NativeNameType.Value, "28")] + Formatr16i = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8i")] + [NativeName(NativeNameType.Value, "29")] + Formatr8I = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba32ui")] + [NativeName(NativeNameType.Value, "30")] + Rgba32Ui = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16ui")] + [NativeName(NativeNameType.Value, "31")] + Rgba16Ui = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8ui")] + [NativeName(NativeNameType.Value, "32")] + Rgba8Ui = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR32ui")] + [NativeName(NativeNameType.Value, "33")] + Formatr32Ui = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgb10a2ui")] + [NativeName(NativeNameType.Value, "34")] + Rgb10a2Ui = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg32ui")] + [NativeName(NativeNameType.Value, "35")] + Rg32Ui = unchecked(35), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16ui")] + [NativeName(NativeNameType.Value, "36")] + Rg16Ui = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8ui")] + [NativeName(NativeNameType.Value, "37")] + Rg8Ui = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16ui")] + [NativeName(NativeNameType.Value, "38")] + Formatr16Ui = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8ui")] + [NativeName(NativeNameType.Value, "39")] + Formatr8Ui = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR64ui")] + [NativeName(NativeNameType.Value, "40")] + Formatr64Ui = unchecked(40), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR64i")] + [NativeName(NativeNameType.Value, "41")] + Formatr64i = unchecked(41), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvImageChannelOrder_")] + public enum SpvImageChannelOrder + { + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderR")] + [NativeName(NativeNameType.Value, "0")] + Orderr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderA")] + [NativeName(NativeNameType.Value, "1")] + Ordera = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRG")] + [NativeName(NativeNameType.Value, "2")] + Rg = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRA")] + [NativeName(NativeNameType.Value, "3")] + Ra = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGB")] + [NativeName(NativeNameType.Value, "4")] + Rgb = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGBA")] + [NativeName(NativeNameType.Value, "5")] + Rgba = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderBGRA")] + [NativeName(NativeNameType.Value, "6")] + Bgra = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderARGB")] + [NativeName(NativeNameType.Value, "7")] + Argb = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderIntensity")] + [NativeName(NativeNameType.Value, "8")] + Intensity = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderLuminance")] + [NativeName(NativeNameType.Value, "9")] + Luminance = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRx")] + [NativeName(NativeNameType.Value, "10")] + Rx = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGx")] + [NativeName(NativeNameType.Value, "11")] + OrderrGx = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGBx")] + [NativeName(NativeNameType.Value, "12")] + RgBx = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderDepth")] + [NativeName(NativeNameType.Value, "13")] + Depth = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderDepthStencil")] + [NativeName(NativeNameType.Value, "14")] + DepthStencil = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersRGB")] + [NativeName(NativeNameType.Value, "15")] + OrdersRgb = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersRGBx")] + [NativeName(NativeNameType.Value, "16")] + OrdersRgBx = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersRGBA")] + [NativeName(NativeNameType.Value, "17")] + OrdersRgba = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersBGRA")] + [NativeName(NativeNameType.Value, "18")] + OrdersBgra = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderABGR")] + [NativeName(NativeNameType.Value, "19")] + Abgr = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvImageChannelDataType_")] + public enum SpvImageChannelDataType + { + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSnormInt8")] + [NativeName(NativeNameType.Value, "0")] + SnormInt8 = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSnormInt16")] + [NativeName(NativeNameType.Value, "1")] + SnormInt16 = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt8")] + [NativeName(NativeNameType.Value, "2")] + UnormInt8 = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt16")] + [NativeName(NativeNameType.Value, "3")] + UnormInt16 = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormShort565")] + [NativeName(NativeNameType.Value, "4")] + UnormShort565 = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormShort555")] + [NativeName(NativeNameType.Value, "5")] + UnormShort555 = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt101010")] + [NativeName(NativeNameType.Value, "6")] + UnormInt101010 = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSignedInt8")] + [NativeName(NativeNameType.Value, "7")] + SignedInt8 = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSignedInt16")] + [NativeName(NativeNameType.Value, "8")] + SignedInt16 = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSignedInt32")] + [NativeName(NativeNameType.Value, "9")] + SignedInt32 = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnsignedInt8")] + [NativeName(NativeNameType.Value, "10")] + UnsignedInt8 = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnsignedInt16")] + [NativeName(NativeNameType.Value, "11")] + UnsignedInt16 = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnsignedInt32")] + [NativeName(NativeNameType.Value, "12")] + UnsignedInt32 = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeHalfFloat")] + [NativeName(NativeNameType.Value, "13")] + HalfFloat = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeFloat")] + [NativeName(NativeNameType.Value, "14")] + Float = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt24")] + [NativeName(NativeNameType.Value, "15")] + UnormInt24 = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt101010_2")] + [NativeName(NativeNameType.Value, "16")] + UnormInt1010102 = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvImageOperandsShift_")] + public enum SpvImageOperandsShift + { + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsBiasShift")] + [NativeName(NativeNameType.Value, "0")] + BiasShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsLodShift")] + [NativeName(NativeNameType.Value, "1")] + LodShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsGradShift")] + [NativeName(NativeNameType.Value, "2")] + GradShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetShift")] + [NativeName(NativeNameType.Value, "3")] + ConstOffsetShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetShift")] + [NativeName(NativeNameType.Value, "4")] + OffsetShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetsShift")] + [NativeName(NativeNameType.Value, "5")] + ConstOffsetsShift = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSampleShift")] + [NativeName(NativeNameType.Value, "6")] + SampleShift = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMinLodShift")] + [NativeName(NativeNameType.Value, "7")] + MinLodShift = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableShift")] + [NativeName(NativeNameType.Value, "8")] + MakeTexelAvailableShift = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableKHRShift")] + [NativeName(NativeNameType.Value, "8")] + MakeTexelAvailableKhrShift = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleShift")] + [NativeName(NativeNameType.Value, "9")] + MakeTexelVisibleShift = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleKHRShift")] + [NativeName(NativeNameType.Value, "9")] + MakeTexelVisibleKhrShift = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelShift")] + [NativeName(NativeNameType.Value, "10")] + NonPrivateTexelShift = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelKHRShift")] + [NativeName(NativeNameType.Value, "10")] + NonPrivateTexelKhrShift = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelShift")] + [NativeName(NativeNameType.Value, "11")] + VolatileTexelShift = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelKHRShift")] + [NativeName(NativeNameType.Value, "11")] + VolatileTexelKhrShift = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSignExtendShift")] + [NativeName(NativeNameType.Value, "12")] + SignExtendShift = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsZeroExtendShift")] + [NativeName(NativeNameType.Value, "13")] + ZeroExtendShift = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNontemporalShift")] + [NativeName(NativeNameType.Value, "14")] + NontemporalShift = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetsShift")] + [NativeName(NativeNameType.Value, "16")] + OffsetsShift = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvImageOperandsMask_")] + public enum SpvImageOperandsMask + { + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsBiasMask")] + [NativeName(NativeNameType.Value, "1")] + BiasMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsLodMask")] + [NativeName(NativeNameType.Value, "2")] + LodMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsGradMask")] + [NativeName(NativeNameType.Value, "4")] + GradMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetMask")] + [NativeName(NativeNameType.Value, "8")] + ConstOffsetMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetMask")] + [NativeName(NativeNameType.Value, "16")] + OffsetMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetsMask")] + [NativeName(NativeNameType.Value, "32")] + ConstOffsetsMask = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSampleMask")] + [NativeName(NativeNameType.Value, "64")] + SampleMask = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMinLodMask")] + [NativeName(NativeNameType.Value, "128")] + MinLodMask = unchecked(128), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableMask")] + [NativeName(NativeNameType.Value, "256")] + MakeTexelAvailableMask = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableKHRMask")] + [NativeName(NativeNameType.Value, "256")] + MakeTexelAvailableKhrMask = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleMask")] + [NativeName(NativeNameType.Value, "512")] + MakeTexelVisibleMask = unchecked(512), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleKHRMask")] + [NativeName(NativeNameType.Value, "512")] + MakeTexelVisibleKhrMask = unchecked(512), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelMask")] + [NativeName(NativeNameType.Value, "1024")] + NonPrivateTexelMask = unchecked(1024), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelKHRMask")] + [NativeName(NativeNameType.Value, "1024")] + NonPrivateTexelKhrMask = unchecked(1024), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelMask")] + [NativeName(NativeNameType.Value, "2048")] + VolatileTexelMask = unchecked(2048), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelKHRMask")] + [NativeName(NativeNameType.Value, "2048")] + VolatileTexelKhrMask = unchecked(2048), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSignExtendMask")] + [NativeName(NativeNameType.Value, "4096")] + SignExtendMask = unchecked(4096), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsZeroExtendMask")] + [NativeName(NativeNameType.Value, "8192")] + ZeroExtendMask = unchecked(8192), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNontemporalMask")] + [NativeName(NativeNameType.Value, "16384")] + NontemporalMask = unchecked(16384), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetsMask")] + [NativeName(NativeNameType.Value, "65536")] + OffsetsMask = unchecked(65536), + } + + [NativeName(NativeNameType.Enum, "SpvFPFastMathModeShift_")] + public enum SpvFPFastMathModeShift + { + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotNaNShift")] + [NativeName(NativeNameType.Value, "0")] + NotNanShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotInfShift")] + [NativeName(NativeNameType.Value, "1")] + NotInfShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNSZShift")] + [NativeName(NativeNameType.Value, "2")] + NszShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowRecipShift")] + [NativeName(NativeNameType.Value, "3")] + AllowRecipShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeFastShift")] + [NativeName(NativeNameType.Value, "4")] + Shift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowContractFastINTELShift")] + [NativeName(NativeNameType.Value, "16")] + AllowContractFastIntelShift = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowReassocINTELShift")] + [NativeName(NativeNameType.Value, "17")] + AllowReassocIntelShift = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFPFastMathModeMask_")] + public enum SpvFPFastMathModeMask + { + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotNaNMask")] + [NativeName(NativeNameType.Value, "1")] + NotNanMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotInfMask")] + [NativeName(NativeNameType.Value, "2")] + NotInfMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNSZMask")] + [NativeName(NativeNameType.Value, "4")] + NszMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowRecipMask")] + [NativeName(NativeNameType.Value, "8")] + AllowRecipMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeFastMask")] + [NativeName(NativeNameType.Value, "16")] + Mask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowContractFastINTELMask")] + [NativeName(NativeNameType.Value, "65536")] + AllowContractFastIntelMask = unchecked(65536), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowReassocINTELMask")] + [NativeName(NativeNameType.Value, "131072")] + AllowReassocIntelMask = unchecked(131072), + } + + [NativeName(NativeNameType.Enum, "SpvFPRoundingMode_")] + public enum SpvFPRoundingMode + { + [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTE")] + [NativeName(NativeNameType.Value, "0")] + Rte = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTZ")] + [NativeName(NativeNameType.Value, "1")] + Rtz = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTP")] + [NativeName(NativeNameType.Value, "2")] + Rtp = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTN")] + [NativeName(NativeNameType.Value, "3")] + Rtn = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvLinkageType_")] + public enum SpvLinkageType + { + [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeExport")] + [NativeName(NativeNameType.Value, "0")] + Export = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeImport")] + [NativeName(NativeNameType.Value, "1")] + Import = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeLinkOnceODR")] + [NativeName(NativeNameType.Value, "2")] + LinkOnceOdr = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvAccessQualifier_")] + public enum SpvAccessQualifier + { + [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierReadOnly")] + [NativeName(NativeNameType.Value, "0")] + ReadOnly = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierWriteOnly")] + [NativeName(NativeNameType.Value, "1")] + WriteOnly = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierReadWrite")] + [NativeName(NativeNameType.Value, "2")] + ReadWrite = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFunctionParameterAttribute_")] + public enum SpvFunctionParameterAttribute + { + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeZext")] + [NativeName(NativeNameType.Value, "0")] + Zext = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeSext")] + [NativeName(NativeNameType.Value, "1")] + Sext = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeByVal")] + [NativeName(NativeNameType.Value, "2")] + ByVal = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeSret")] + [NativeName(NativeNameType.Value, "3")] + Sret = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoAlias")] + [NativeName(NativeNameType.Value, "4")] + NoAlias = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoCapture")] + [NativeName(NativeNameType.Value, "5")] + NoCapture = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoWrite")] + [NativeName(NativeNameType.Value, "6")] + NoWrite = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoReadWrite")] + [NativeName(NativeNameType.Value, "7")] + NoReadWrite = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvDecoration_")] + public enum SpvDecoration + { + [NativeName(NativeNameType.EnumItem, "SpvDecorationRelaxedPrecision")] + [NativeName(NativeNameType.Value, "0")] + RelaxedPrecision = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSpecId")] + [NativeName(NativeNameType.Value, "1")] + SpecId = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBlock")] + [NativeName(NativeNameType.Value, "2")] + Block = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBufferBlock")] + [NativeName(NativeNameType.Value, "3")] + BufferBlock = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvDecorationRowMajor")] + [NativeName(NativeNameType.Value, "4")] + RowMajor = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvDecorationColMajor")] + [NativeName(NativeNameType.Value, "5")] + ColMajor = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvDecorationArrayStride")] + [NativeName(NativeNameType.Value, "6")] + ArrayStride = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMatrixStride")] + [NativeName(NativeNameType.Value, "7")] + MatrixStride = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvDecorationGLSLShared")] + [NativeName(NativeNameType.Value, "8")] + GlslShared = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvDecorationGLSLPacked")] + [NativeName(NativeNameType.Value, "9")] + GlslPacked = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvDecorationCPacked")] + [NativeName(NativeNameType.Value, "10")] + DecorationcPacked = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBuiltIn")] + [NativeName(NativeNameType.Value, "11")] + BuiltIn = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNoPerspective")] + [NativeName(NativeNameType.Value, "13")] + NoPerspective = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFlat")] + [NativeName(NativeNameType.Value, "14")] + Flat = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPatch")] + [NativeName(NativeNameType.Value, "15")] + Patch = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvDecorationCentroid")] + [NativeName(NativeNameType.Value, "16")] + Centroid = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSample")] + [NativeName(NativeNameType.Value, "17")] + Sample = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvDecorationInvariant")] + [NativeName(NativeNameType.Value, "18")] + Invariant = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvDecorationRestrict")] + [NativeName(NativeNameType.Value, "19")] + Restrict = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAliased")] + [NativeName(NativeNameType.Value, "20")] + Aliased = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvDecorationVolatile")] + [NativeName(NativeNameType.Value, "21")] + Volatile = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvDecorationConstant")] + [NativeName(NativeNameType.Value, "22")] + Constant = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvDecorationCoherent")] + [NativeName(NativeNameType.Value, "23")] + Coherent = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNonWritable")] + [NativeName(NativeNameType.Value, "24")] + NonWritable = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNonReadable")] + [NativeName(NativeNameType.Value, "25")] + NonReadable = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvDecorationUniform")] + [NativeName(NativeNameType.Value, "26")] + Uniform = unchecked(26), + [NativeName(NativeNameType.EnumItem, "SpvDecorationUniformId")] + [NativeName(NativeNameType.Value, "27")] + UniformId = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSaturatedConversion")] + [NativeName(NativeNameType.Value, "28")] + SaturatedConversion = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvDecorationStream")] + [NativeName(NativeNameType.Value, "29")] + Stream = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvDecorationLocation")] + [NativeName(NativeNameType.Value, "30")] + Location = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvDecorationComponent")] + [NativeName(NativeNameType.Value, "31")] + Component = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvDecorationIndex")] + [NativeName(NativeNameType.Value, "32")] + Index = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBinding")] + [NativeName(NativeNameType.Value, "33")] + Binding = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvDecorationDescriptorSet")] + [NativeName(NativeNameType.Value, "34")] + DescriptorSet = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvDecorationOffset")] + [NativeName(NativeNameType.Value, "35")] + Offset = unchecked(35), + [NativeName(NativeNameType.EnumItem, "SpvDecorationXfbBuffer")] + [NativeName(NativeNameType.Value, "36")] + XfbBuffer = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvDecorationXfbStride")] + [NativeName(NativeNameType.Value, "37")] + XfbStride = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFuncParamAttr")] + [NativeName(NativeNameType.Value, "38")] + FuncParamAttr = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFPRoundingMode")] + [NativeName(NativeNameType.Value, "39")] + FpRoundingMode = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFPFastMathMode")] + [NativeName(NativeNameType.Value, "40")] + FpFastMathMode = unchecked(40), + [NativeName(NativeNameType.EnumItem, "SpvDecorationLinkageAttributes")] + [NativeName(NativeNameType.Value, "41")] + LinkageAttributes = unchecked(41), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNoContraction")] + [NativeName(NativeNameType.Value, "42")] + NoContraction = unchecked(42), + [NativeName(NativeNameType.EnumItem, "SpvDecorationInputAttachmentIndex")] + [NativeName(NativeNameType.Value, "43")] + InputAttachmentIndex = unchecked(43), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAlignment")] + [NativeName(NativeNameType.Value, "44")] + Alignment = unchecked(44), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxByteOffset")] + [NativeName(NativeNameType.Value, "45")] + MaxByteOffset = unchecked(45), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAlignmentId")] + [NativeName(NativeNameType.Value, "46")] + AlignmentId = unchecked(46), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxByteOffsetId")] + [NativeName(NativeNameType.Value, "47")] + MaxByteOffsetId = unchecked(47), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNoSignedWrap")] + [NativeName(NativeNameType.Value, "4469")] + NoSignedWrap = unchecked(4469), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNoUnsignedWrap")] + [NativeName(NativeNameType.Value, "4470")] + NoUnsignedWrap = unchecked(4470), + [NativeName(NativeNameType.EnumItem, "SpvDecorationExplicitInterpAMD")] + [NativeName(NativeNameType.Value, "4999")] + ExplicitInterpAmd = unchecked(4999), + [NativeName(NativeNameType.EnumItem, "SpvDecorationOverrideCoverageNV")] + [NativeName(NativeNameType.Value, "5248")] + OverrideCoverageNv = unchecked(5248), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPassthroughNV")] + [NativeName(NativeNameType.Value, "5250")] + PassthroughNv = unchecked(5250), + [NativeName(NativeNameType.EnumItem, "SpvDecorationViewportRelativeNV")] + [NativeName(NativeNameType.Value, "5252")] + ViewportRelativeNv = unchecked(5252), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSecondaryViewportRelativeNV")] + [NativeName(NativeNameType.Value, "5256")] + SecondaryViewportRelativeNv = unchecked(5256), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerPrimitiveEXT")] + [NativeName(NativeNameType.Value, "5271")] + PerPrimitiveExt = unchecked(5271), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerPrimitiveNV")] + [NativeName(NativeNameType.Value, "5271")] + PerPrimitiveNv = unchecked(5271), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerViewNV")] + [NativeName(NativeNameType.Value, "5272")] + PerViewNv = unchecked(5272), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerTaskNV")] + [NativeName(NativeNameType.Value, "5273")] + PerTaskNv = unchecked(5273), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerVertexKHR")] + [NativeName(NativeNameType.Value, "5285")] + PerVertexKhr = unchecked(5285), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerVertexNV")] + [NativeName(NativeNameType.Value, "5285")] + PerVertexNv = unchecked(5285), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNonUniform")] + [NativeName(NativeNameType.Value, "5300")] + NonUniform = unchecked(5300), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNonUniformEXT")] + [NativeName(NativeNameType.Value, "5300")] + NonUniformExt = unchecked(5300), + [NativeName(NativeNameType.EnumItem, "SpvDecorationRestrictPointer")] + [NativeName(NativeNameType.Value, "5355")] + RestrictPointer = unchecked(5355), + [NativeName(NativeNameType.EnumItem, "SpvDecorationRestrictPointerEXT")] + [NativeName(NativeNameType.Value, "5355")] + RestrictPointerExt = unchecked(5355), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAliasedPointer")] + [NativeName(NativeNameType.Value, "5356")] + AliasedPointer = unchecked(5356), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAliasedPointerEXT")] + [NativeName(NativeNameType.Value, "5356")] + AliasedPointerExt = unchecked(5356), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBindlessSamplerNV")] + [NativeName(NativeNameType.Value, "5398")] + BindlessSamplerNv = unchecked(5398), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBindlessImageNV")] + [NativeName(NativeNameType.Value, "5399")] + BindlessImageNv = unchecked(5399), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBoundSamplerNV")] + [NativeName(NativeNameType.Value, "5400")] + BoundSamplerNv = unchecked(5400), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBoundImageNV")] + [NativeName(NativeNameType.Value, "5401")] + BoundImageNv = unchecked(5401), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSIMTCallINTEL")] + [NativeName(NativeNameType.Value, "5599")] + SimtCallIntel = unchecked(5599), + [NativeName(NativeNameType.EnumItem, "SpvDecorationReferencedIndirectlyINTEL")] + [NativeName(NativeNameType.Value, "5602")] + ReferencedIndirectlyIntel = unchecked(5602), + [NativeName(NativeNameType.EnumItem, "SpvDecorationClobberINTEL")] + [NativeName(NativeNameType.Value, "5607")] + ClobberIntel = unchecked(5607), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSideEffectsINTEL")] + [NativeName(NativeNameType.Value, "5608")] + SideEffectsIntel = unchecked(5608), + [NativeName(NativeNameType.EnumItem, "SpvDecorationVectorComputeVariableINTEL")] + [NativeName(NativeNameType.Value, "5624")] + VectorComputeVariableIntel = unchecked(5624), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFuncParamIOKindINTEL")] + [NativeName(NativeNameType.Value, "5625")] + FuncParamIoKindIntel = unchecked(5625), + [NativeName(NativeNameType.EnumItem, "SpvDecorationVectorComputeFunctionINTEL")] + [NativeName(NativeNameType.Value, "5626")] + VectorComputeFunctionIntel = unchecked(5626), + [NativeName(NativeNameType.EnumItem, "SpvDecorationStackCallINTEL")] + [NativeName(NativeNameType.Value, "5627")] + StackCallIntel = unchecked(5627), + [NativeName(NativeNameType.EnumItem, "SpvDecorationGlobalVariableOffsetINTEL")] + [NativeName(NativeNameType.Value, "5628")] + GlobalVariableOffsetIntel = unchecked(5628), + [NativeName(NativeNameType.EnumItem, "SpvDecorationCounterBuffer")] + [NativeName(NativeNameType.Value, "5634")] + CounterBuffer = unchecked(5634), + [NativeName(NativeNameType.EnumItem, "SpvDecorationHlslCounterBufferGOOGLE")] + [NativeName(NativeNameType.Value, "5634")] + HlslCounterBufferGoogle = unchecked(5634), + [NativeName(NativeNameType.EnumItem, "SpvDecorationHlslSemanticGOOGLE")] + [NativeName(NativeNameType.Value, "5635")] + HlslSemanticGoogle = unchecked(5635), + [NativeName(NativeNameType.EnumItem, "SpvDecorationUserSemantic")] + [NativeName(NativeNameType.Value, "5635")] + UserSemantic = unchecked(5635), + [NativeName(NativeNameType.EnumItem, "SpvDecorationUserTypeGOOGLE")] + [NativeName(NativeNameType.Value, "5636")] + UserTypeGoogle = unchecked(5636), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFunctionRoundingModeINTEL")] + [NativeName(NativeNameType.Value, "5822")] + FunctionRoundingModeIntel = unchecked(5822), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFunctionDenormModeINTEL")] + [NativeName(NativeNameType.Value, "5823")] + FunctionDenormModeIntel = unchecked(5823), + [NativeName(NativeNameType.EnumItem, "SpvDecorationRegisterINTEL")] + [NativeName(NativeNameType.Value, "5825")] + RegisterIntel = unchecked(5825), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMemoryINTEL")] + [NativeName(NativeNameType.Value, "5826")] + MemoryIntel = unchecked(5826), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNumbanksINTEL")] + [NativeName(NativeNameType.Value, "5827")] + NumbanksIntel = unchecked(5827), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBankwidthINTEL")] + [NativeName(NativeNameType.Value, "5828")] + BankwidthIntel = unchecked(5828), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxPrivateCopiesINTEL")] + [NativeName(NativeNameType.Value, "5829")] + MaxPrivateCopiesIntel = unchecked(5829), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSinglepumpINTEL")] + [NativeName(NativeNameType.Value, "5830")] + SinglepumpIntel = unchecked(5830), + [NativeName(NativeNameType.EnumItem, "SpvDecorationDoublepumpINTEL")] + [NativeName(NativeNameType.Value, "5831")] + DoublepumpIntel = unchecked(5831), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxReplicatesINTEL")] + [NativeName(NativeNameType.Value, "5832")] + MaxReplicatesIntel = unchecked(5832), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSimpleDualPortINTEL")] + [NativeName(NativeNameType.Value, "5833")] + SimpleDualPortIntel = unchecked(5833), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMergeINTEL")] + [NativeName(NativeNameType.Value, "5834")] + MergeIntel = unchecked(5834), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBankBitsINTEL")] + [NativeName(NativeNameType.Value, "5835")] + BankBitsIntel = unchecked(5835), + [NativeName(NativeNameType.EnumItem, "SpvDecorationForcePow2DepthINTEL")] + [NativeName(NativeNameType.Value, "5836")] + ForcePow2DepthIntel = unchecked(5836), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBurstCoalesceINTEL")] + [NativeName(NativeNameType.Value, "5899")] + BurstCoalesceIntel = unchecked(5899), + [NativeName(NativeNameType.EnumItem, "SpvDecorationCacheSizeINTEL")] + [NativeName(NativeNameType.Value, "5900")] + CacheSizeIntel = unchecked(5900), + [NativeName(NativeNameType.EnumItem, "SpvDecorationDontStaticallyCoalesceINTEL")] + [NativeName(NativeNameType.Value, "5901")] + DontStaticallyCoalesceIntel = unchecked(5901), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPrefetchINTEL")] + [NativeName(NativeNameType.Value, "5902")] + PrefetchIntel = unchecked(5902), + [NativeName(NativeNameType.EnumItem, "SpvDecorationStallEnableINTEL")] + [NativeName(NativeNameType.Value, "5905")] + StallEnableIntel = unchecked(5905), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFuseLoopsInFunctionINTEL")] + [NativeName(NativeNameType.Value, "5907")] + FuseLoopsInFunctionIntel = unchecked(5907), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAliasScopeINTEL")] + [NativeName(NativeNameType.Value, "5914")] + AliasScopeIntel = unchecked(5914), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNoAliasINTEL")] + [NativeName(NativeNameType.Value, "5915")] + NoAliasIntel = unchecked(5915), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBufferLocationINTEL")] + [NativeName(NativeNameType.Value, "5921")] + BufferLocationIntel = unchecked(5921), + [NativeName(NativeNameType.EnumItem, "SpvDecorationIOPipeStorageINTEL")] + [NativeName(NativeNameType.Value, "5944")] + IoPipeStorageIntel = unchecked(5944), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFunctionFloatingPointModeINTEL")] + [NativeName(NativeNameType.Value, "6080")] + FunctionFloatingPointModeIntel = unchecked(6080), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSingleElementVectorINTEL")] + [NativeName(NativeNameType.Value, "6085")] + SingleElementVectorIntel = unchecked(6085), + [NativeName(NativeNameType.EnumItem, "SpvDecorationVectorComputeCallableFunctionINTEL")] + [NativeName(NativeNameType.Value, "6087")] + VectorComputeCallableFunctionIntel = unchecked(6087), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMediaBlockIOINTEL")] + [NativeName(NativeNameType.Value, "6140")] + MediaBlockIointel = unchecked(6140), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvBuiltIn_")] + public enum SpvBuiltIn + { + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPosition")] + [NativeName(NativeNameType.Value, "0")] + Position = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPointSize")] + [NativeName(NativeNameType.Value, "1")] + PointSize = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInClipDistance")] + [NativeName(NativeNameType.Value, "3")] + ClipDistance = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullDistance")] + [NativeName(NativeNameType.Value, "4")] + CullDistance = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInVertexId")] + [NativeName(NativeNameType.Value, "5")] + VertexId = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceId")] + [NativeName(NativeNameType.Value, "6")] + InstanceId = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveId")] + [NativeName(NativeNameType.Value, "7")] + PrimitiveId = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInvocationId")] + [NativeName(NativeNameType.Value, "8")] + InvocationId = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLayer")] + [NativeName(NativeNameType.Value, "9")] + Layer = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewportIndex")] + [NativeName(NativeNameType.Value, "10")] + ViewportIndex = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInTessLevelOuter")] + [NativeName(NativeNameType.Value, "11")] + TessLevelOuter = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInTessLevelInner")] + [NativeName(NativeNameType.Value, "12")] + TessLevelInner = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInTessCoord")] + [NativeName(NativeNameType.Value, "13")] + TessCoord = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPatchVertices")] + [NativeName(NativeNameType.Value, "14")] + PatchVertices = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragCoord")] + [NativeName(NativeNameType.Value, "15")] + FragCoord = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPointCoord")] + [NativeName(NativeNameType.Value, "16")] + PointCoord = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFrontFacing")] + [NativeName(NativeNameType.Value, "17")] + FrontFacing = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSampleId")] + [NativeName(NativeNameType.Value, "18")] + SampleId = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSamplePosition")] + [NativeName(NativeNameType.Value, "19")] + SamplePosition = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSampleMask")] + [NativeName(NativeNameType.Value, "20")] + SampleMask = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragDepth")] + [NativeName(NativeNameType.Value, "22")] + FragDepth = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInHelperInvocation")] + [NativeName(NativeNameType.Value, "23")] + HelperInvocation = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInNumWorkgroups")] + [NativeName(NativeNameType.Value, "24")] + NumWorkgroups = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorkgroupSize")] + [NativeName(NativeNameType.Value, "25")] + WorkgroupSize = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorkgroupId")] + [NativeName(NativeNameType.Value, "26")] + WorkgroupId = unchecked(26), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLocalInvocationId")] + [NativeName(NativeNameType.Value, "27")] + LocalInvocationId = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalInvocationId")] + [NativeName(NativeNameType.Value, "28")] + GlobalInvocationId = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLocalInvocationIndex")] + [NativeName(NativeNameType.Value, "29")] + LocalInvocationIndex = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorkDim")] + [NativeName(NativeNameType.Value, "30")] + WorkDim = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalSize")] + [NativeName(NativeNameType.Value, "31")] + GlobalSize = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInEnqueuedWorkgroupSize")] + [NativeName(NativeNameType.Value, "32")] + EnqueuedWorkgroupSize = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalOffset")] + [NativeName(NativeNameType.Value, "33")] + GlobalOffset = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalLinearId")] + [NativeName(NativeNameType.Value, "34")] + GlobalLinearId = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupSize")] + [NativeName(NativeNameType.Value, "36")] + SubgroupSize = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupMaxSize")] + [NativeName(NativeNameType.Value, "37")] + SubgroupMaxSize = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInNumSubgroups")] + [NativeName(NativeNameType.Value, "38")] + NumSubgroups = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInNumEnqueuedSubgroups")] + [NativeName(NativeNameType.Value, "39")] + NumEnqueuedSubgroups = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupId")] + [NativeName(NativeNameType.Value, "40")] + SubgroupId = unchecked(40), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLocalInvocationId")] + [NativeName(NativeNameType.Value, "41")] + SubgroupLocalInvocationId = unchecked(41), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInVertexIndex")] + [NativeName(NativeNameType.Value, "42")] + VertexIndex = unchecked(42), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceIndex")] + [NativeName(NativeNameType.Value, "43")] + InstanceIndex = unchecked(43), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupEqMask")] + [NativeName(NativeNameType.Value, "4416")] + SubgroupEqMask = unchecked(4416), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupEqMaskKHR")] + [NativeName(NativeNameType.Value, "4416")] + SubgroupEqMaskKhr = unchecked(4416), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGeMask")] + [NativeName(NativeNameType.Value, "4417")] + SubgroupGeMask = unchecked(4417), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGeMaskKHR")] + [NativeName(NativeNameType.Value, "4417")] + SubgroupGeMaskKhr = unchecked(4417), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGtMask")] + [NativeName(NativeNameType.Value, "4418")] + SubgroupGtMask = unchecked(4418), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGtMaskKHR")] + [NativeName(NativeNameType.Value, "4418")] + SubgroupGtMaskKhr = unchecked(4418), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLeMask")] + [NativeName(NativeNameType.Value, "4419")] + SubgroupLeMask = unchecked(4419), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLeMaskKHR")] + [NativeName(NativeNameType.Value, "4419")] + SubgroupLeMaskKhr = unchecked(4419), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLtMask")] + [NativeName(NativeNameType.Value, "4420")] + SubgroupLtMask = unchecked(4420), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLtMaskKHR")] + [NativeName(NativeNameType.Value, "4420")] + SubgroupLtMaskKhr = unchecked(4420), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaseVertex")] + [NativeName(NativeNameType.Value, "4424")] + BaseVertex = unchecked(4424), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaseInstance")] + [NativeName(NativeNameType.Value, "4425")] + BaseInstance = unchecked(4425), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInDrawIndex")] + [NativeName(NativeNameType.Value, "4426")] + DrawIndex = unchecked(4426), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveShadingRateKHR")] + [NativeName(NativeNameType.Value, "4432")] + PrimitiveShadingRateKhr = unchecked(4432), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInDeviceIndex")] + [NativeName(NativeNameType.Value, "4438")] + DeviceIndex = unchecked(4438), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewIndex")] + [NativeName(NativeNameType.Value, "4440")] + ViewIndex = unchecked(4440), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInShadingRateKHR")] + [NativeName(NativeNameType.Value, "4444")] + ShadingRateKhr = unchecked(4444), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspAMD")] + [NativeName(NativeNameType.Value, "4992")] + BaryCoordNoPerspAmd = unchecked(4992), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspCentroidAMD")] + [NativeName(NativeNameType.Value, "4993")] + BaryCoordNoPerspCentroidAmd = unchecked(4993), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspSampleAMD")] + [NativeName(NativeNameType.Value, "4994")] + BaryCoordNoPerspSampleAmd = unchecked(4994), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordSmoothAMD")] + [NativeName(NativeNameType.Value, "4995")] + BaryCoordSmoothAmd = unchecked(4995), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordSmoothCentroidAMD")] + [NativeName(NativeNameType.Value, "4996")] + BaryCoordSmoothCentroidAmd = unchecked(4996), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordSmoothSampleAMD")] + [NativeName(NativeNameType.Value, "4997")] + BaryCoordSmoothSampleAmd = unchecked(4997), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordPullModelAMD")] + [NativeName(NativeNameType.Value, "4998")] + BaryCoordPullModelAmd = unchecked(4998), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragStencilRefEXT")] + [NativeName(NativeNameType.Value, "5014")] + FragStencilRefExt = unchecked(5014), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewportMaskNV")] + [NativeName(NativeNameType.Value, "5253")] + ViewportMaskNv = unchecked(5253), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSecondaryPositionNV")] + [NativeName(NativeNameType.Value, "5257")] + SecondaryPositionNv = unchecked(5257), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSecondaryViewportMaskNV")] + [NativeName(NativeNameType.Value, "5258")] + SecondaryViewportMaskNv = unchecked(5258), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPositionPerViewNV")] + [NativeName(NativeNameType.Value, "5261")] + PositionPerViewNv = unchecked(5261), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewportMaskPerViewNV")] + [NativeName(NativeNameType.Value, "5262")] + ViewportMaskPerViewNv = unchecked(5262), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFullyCoveredEXT")] + [NativeName(NativeNameType.Value, "5264")] + FullyCoveredExt = unchecked(5264), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInTaskCountNV")] + [NativeName(NativeNameType.Value, "5274")] + TaskCountNv = unchecked(5274), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveCountNV")] + [NativeName(NativeNameType.Value, "5275")] + PrimitiveCountNv = unchecked(5275), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveIndicesNV")] + [NativeName(NativeNameType.Value, "5276")] + PrimitiveIndicesNv = unchecked(5276), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInClipDistancePerViewNV")] + [NativeName(NativeNameType.Value, "5277")] + ClipDistancePerViewNv = unchecked(5277), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullDistancePerViewNV")] + [NativeName(NativeNameType.Value, "5278")] + CullDistancePerViewNv = unchecked(5278), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLayerPerViewNV")] + [NativeName(NativeNameType.Value, "5279")] + LayerPerViewNv = unchecked(5279), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInMeshViewCountNV")] + [NativeName(NativeNameType.Value, "5280")] + MeshViewCountNv = unchecked(5280), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInMeshViewIndicesNV")] + [NativeName(NativeNameType.Value, "5281")] + MeshViewIndicesNv = unchecked(5281), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordKHR")] + [NativeName(NativeNameType.Value, "5286")] + BaryCoordKhr = unchecked(5286), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNV")] + [NativeName(NativeNameType.Value, "5286")] + BaryCoordNv = unchecked(5286), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspKHR")] + [NativeName(NativeNameType.Value, "5287")] + BaryCoordNoPerspKhr = unchecked(5287), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspNV")] + [NativeName(NativeNameType.Value, "5287")] + BaryCoordNoPerspNv = unchecked(5287), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragSizeEXT")] + [NativeName(NativeNameType.Value, "5292")] + FragSizeExt = unchecked(5292), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragmentSizeNV")] + [NativeName(NativeNameType.Value, "5292")] + FragmentSizeNv = unchecked(5292), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragInvocationCountEXT")] + [NativeName(NativeNameType.Value, "5293")] + FragInvocationCountExt = unchecked(5293), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInvocationsPerPixelNV")] + [NativeName(NativeNameType.Value, "5293")] + InvocationsPerPixelNv = unchecked(5293), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitivePointIndicesEXT")] + [NativeName(NativeNameType.Value, "5294")] + PrimitivePointIndicesExt = unchecked(5294), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveLineIndicesEXT")] + [NativeName(NativeNameType.Value, "5295")] + PrimitiveLineIndicesExt = unchecked(5295), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveTriangleIndicesEXT")] + [NativeName(NativeNameType.Value, "5296")] + PrimitiveTriangleIndicesExt = unchecked(5296), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullPrimitiveEXT")] + [NativeName(NativeNameType.Value, "5299")] + CullPrimitiveExt = unchecked(5299), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchIdKHR")] + [NativeName(NativeNameType.Value, "5319")] + LaunchIdKhr = unchecked(5319), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchIdNV")] + [NativeName(NativeNameType.Value, "5319")] + LaunchIdNv = unchecked(5319), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchSizeKHR")] + [NativeName(NativeNameType.Value, "5320")] + LaunchSizeKhr = unchecked(5320), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchSizeNV")] + [NativeName(NativeNameType.Value, "5320")] + LaunchSizeNv = unchecked(5320), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayOriginKHR")] + [NativeName(NativeNameType.Value, "5321")] + WorldRayOriginKhr = unchecked(5321), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayOriginNV")] + [NativeName(NativeNameType.Value, "5321")] + WorldRayOriginNv = unchecked(5321), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayDirectionKHR")] + [NativeName(NativeNameType.Value, "5322")] + WorldRayDirectionKhr = unchecked(5322), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayDirectionNV")] + [NativeName(NativeNameType.Value, "5322")] + WorldRayDirectionNv = unchecked(5322), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayOriginKHR")] + [NativeName(NativeNameType.Value, "5323")] + ObjectRayOriginKhr = unchecked(5323), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayOriginNV")] + [NativeName(NativeNameType.Value, "5323")] + ObjectRayOriginNv = unchecked(5323), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayDirectionKHR")] + [NativeName(NativeNameType.Value, "5324")] + ObjectRayDirectionKhr = unchecked(5324), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayDirectionNV")] + [NativeName(NativeNameType.Value, "5324")] + ObjectRayDirectionNv = unchecked(5324), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTminKHR")] + [NativeName(NativeNameType.Value, "5325")] + RayTminKhr = unchecked(5325), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTminNV")] + [NativeName(NativeNameType.Value, "5325")] + RayTminNv = unchecked(5325), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTmaxKHR")] + [NativeName(NativeNameType.Value, "5326")] + RayTmaxKhr = unchecked(5326), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTmaxNV")] + [NativeName(NativeNameType.Value, "5326")] + RayTmaxNv = unchecked(5326), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceCustomIndexKHR")] + [NativeName(NativeNameType.Value, "5327")] + InstanceCustomIndexKhr = unchecked(5327), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceCustomIndexNV")] + [NativeName(NativeNameType.Value, "5327")] + InstanceCustomIndexNv = unchecked(5327), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectToWorldKHR")] + [NativeName(NativeNameType.Value, "5330")] + ObjectToWorldKhr = unchecked(5330), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectToWorldNV")] + [NativeName(NativeNameType.Value, "5330")] + ObjectToWorldNv = unchecked(5330), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldToObjectKHR")] + [NativeName(NativeNameType.Value, "5331")] + WorldToObjectKhr = unchecked(5331), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldToObjectNV")] + [NativeName(NativeNameType.Value, "5331")] + WorldToObjectNv = unchecked(5331), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInHitTNV")] + [NativeName(NativeNameType.Value, "5332")] + HitTnv = unchecked(5332), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInHitKindKHR")] + [NativeName(NativeNameType.Value, "5333")] + HitKindKhr = unchecked(5333), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInHitKindNV")] + [NativeName(NativeNameType.Value, "5333")] + HitKindNv = unchecked(5333), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCurrentRayTimeNV")] + [NativeName(NativeNameType.Value, "5334")] + CurrentRayTimeNv = unchecked(5334), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInIncomingRayFlagsKHR")] + [NativeName(NativeNameType.Value, "5351")] + IncomingRayFlagsKhr = unchecked(5351), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInIncomingRayFlagsNV")] + [NativeName(NativeNameType.Value, "5351")] + IncomingRayFlagsNv = unchecked(5351), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayGeometryIndexKHR")] + [NativeName(NativeNameType.Value, "5352")] + RayGeometryIndexKhr = unchecked(5352), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWarpsPerSMNV")] + [NativeName(NativeNameType.Value, "5374")] + WarpsPerSmnv = unchecked(5374), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSMCountNV")] + [NativeName(NativeNameType.Value, "5375")] + SmCountNv = unchecked(5375), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWarpIDNV")] + [NativeName(NativeNameType.Value, "5376")] + WarpIdnv = unchecked(5376), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSMIDNV")] + [NativeName(NativeNameType.Value, "5377")] + Smidnv = unchecked(5377), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullMaskKHR")] + [NativeName(NativeNameType.Value, "6021")] + CullMaskKhr = unchecked(6021), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvSelectionControlShift_")] + public enum SpvSelectionControlShift + { + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlFlattenShift")] + [NativeName(NativeNameType.Value, "0")] + FlattenShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlDontFlattenShift")] + [NativeName(NativeNameType.Value, "1")] + DontFlattenShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvSelectionControlMask_")] + public enum SpvSelectionControlMask + { + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlFlattenMask")] + [NativeName(NativeNameType.Value, "1")] + FlattenMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlDontFlattenMask")] + [NativeName(NativeNameType.Value, "2")] + DontFlattenMask = unchecked(2), + } + + [NativeName(NativeNameType.Enum, "SpvLoopControlShift_")] + public enum SpvLoopControlShift + { + [NativeName(NativeNameType.EnumItem, "SpvLoopControlUnrollShift")] + [NativeName(NativeNameType.Value, "0")] + UnrollShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDontUnrollShift")] + [NativeName(NativeNameType.Value, "1")] + DontUnrollShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyInfiniteShift")] + [NativeName(NativeNameType.Value, "2")] + DependencyInfiniteShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyLengthShift")] + [NativeName(NativeNameType.Value, "3")] + DependencyLengthShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMinIterationsShift")] + [NativeName(NativeNameType.Value, "4")] + MinIterationsShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxIterationsShift")] + [NativeName(NativeNameType.Value, "5")] + MaxIterationsShift = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlIterationMultipleShift")] + [NativeName(NativeNameType.Value, "6")] + IterationMultipleShift = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPeelCountShift")] + [NativeName(NativeNameType.Value, "7")] + PeelCountShift = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPartialCountShift")] + [NativeName(NativeNameType.Value, "8")] + PartialCountShift = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlInitiationIntervalINTELShift")] + [NativeName(NativeNameType.Value, "16")] + InitiationIntervalIntelShift = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxConcurrencyINTELShift")] + [NativeName(NativeNameType.Value, "17")] + MaxConcurrencyIntelShift = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyArrayINTELShift")] + [NativeName(NativeNameType.Value, "18")] + DependencyArrayIntelShift = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPipelineEnableINTELShift")] + [NativeName(NativeNameType.Value, "19")] + PipelineEnableIntelShift = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlLoopCoalesceINTELShift")] + [NativeName(NativeNameType.Value, "20")] + CoalesceIntelShift = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxInterleavingINTELShift")] + [NativeName(NativeNameType.Value, "21")] + MaxInterleavingIntelShift = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlSpeculatedIterationsINTELShift")] + [NativeName(NativeNameType.Value, "22")] + SpeculatedIterationsIntelShift = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlNoFusionINTELShift")] + [NativeName(NativeNameType.Value, "23")] + NoFusionIntelShift = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvLoopControlMask_")] + public enum SpvLoopControlMask + { + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlUnrollMask")] + [NativeName(NativeNameType.Value, "1")] + UnrollMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDontUnrollMask")] + [NativeName(NativeNameType.Value, "2")] + DontUnrollMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyInfiniteMask")] + [NativeName(NativeNameType.Value, "4")] + DependencyInfiniteMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyLengthMask")] + [NativeName(NativeNameType.Value, "8")] + DependencyLengthMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMinIterationsMask")] + [NativeName(NativeNameType.Value, "16")] + MinIterationsMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxIterationsMask")] + [NativeName(NativeNameType.Value, "32")] + MaxIterationsMask = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlIterationMultipleMask")] + [NativeName(NativeNameType.Value, "64")] + IterationMultipleMask = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPeelCountMask")] + [NativeName(NativeNameType.Value, "128")] + PeelCountMask = unchecked(128), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPartialCountMask")] + [NativeName(NativeNameType.Value, "256")] + PartialCountMask = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlInitiationIntervalINTELMask")] + [NativeName(NativeNameType.Value, "65536")] + InitiationIntervalIntelMask = unchecked(65536), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxConcurrencyINTELMask")] + [NativeName(NativeNameType.Value, "131072")] + MaxConcurrencyIntelMask = unchecked(131072), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyArrayINTELMask")] + [NativeName(NativeNameType.Value, "262144")] + DependencyArrayIntelMask = unchecked(262144), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPipelineEnableINTELMask")] + [NativeName(NativeNameType.Value, "524288")] + PipelineEnableIntelMask = unchecked(524288), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlLoopCoalesceINTELMask")] + [NativeName(NativeNameType.Value, "1048576")] + CoalesceIntelMask = unchecked(1048576), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxInterleavingINTELMask")] + [NativeName(NativeNameType.Value, "2097152")] + MaxInterleavingIntelMask = unchecked(2097152), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlSpeculatedIterationsINTELMask")] + [NativeName(NativeNameType.Value, "4194304")] + SpeculatedIterationsIntelMask = unchecked(4194304), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlNoFusionINTELMask")] + [NativeName(NativeNameType.Value, "8388608")] + NoFusionIntelMask = unchecked(8388608), + } + + [NativeName(NativeNameType.Enum, "SpvFunctionControlShift_")] + public enum SpvFunctionControlShift + { + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlInlineShift")] + [NativeName(NativeNameType.Value, "0")] + InlineShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlDontInlineShift")] + [NativeName(NativeNameType.Value, "1")] + DontInlineShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlPureShift")] + [NativeName(NativeNameType.Value, "2")] + PureShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlConstShift")] + [NativeName(NativeNameType.Value, "3")] + ConstShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlOptNoneINTELShift")] + [NativeName(NativeNameType.Value, "16")] + OptNoneIntelShift = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFunctionControlMask_")] + public enum SpvFunctionControlMask + { + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlInlineMask")] + [NativeName(NativeNameType.Value, "1")] + InlineMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlDontInlineMask")] + [NativeName(NativeNameType.Value, "2")] + DontInlineMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlPureMask")] + [NativeName(NativeNameType.Value, "4")] + PureMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlConstMask")] + [NativeName(NativeNameType.Value, "8")] + ConstMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlOptNoneINTELMask")] + [NativeName(NativeNameType.Value, "65536")] + OptNoneIntelMask = unchecked(65536), + } + + [NativeName(NativeNameType.Enum, "SpvMemorySemanticsShift_")] + public enum SpvMemorySemanticsShift + { + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireShift")] + [NativeName(NativeNameType.Value, "1")] + AcquireShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsReleaseShift")] + [NativeName(NativeNameType.Value, "2")] + ReleaseShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireReleaseShift")] + [NativeName(NativeNameType.Value, "3")] + AcquireReleaseShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSequentiallyConsistentShift")] + [NativeName(NativeNameType.Value, "4")] + SequentiallyConsistentShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsUniformMemoryShift")] + [NativeName(NativeNameType.Value, "6")] + UniformMemoryShift = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSubgroupMemoryShift")] + [NativeName(NativeNameType.Value, "7")] + SubgroupMemoryShift = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsWorkgroupMemoryShift")] + [NativeName(NativeNameType.Value, "8")] + WorkgroupMemoryShift = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsCrossWorkgroupMemoryShift")] + [NativeName(NativeNameType.Value, "9")] + CrossWorkgroupMemoryShift = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAtomicCounterMemoryShift")] + [NativeName(NativeNameType.Value, "10")] + AtomicCounterMemoryShift = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsImageMemoryShift")] + [NativeName(NativeNameType.Value, "11")] + ImageMemoryShift = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryShift")] + [NativeName(NativeNameType.Value, "12")] + OutputMemoryShift = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryKHRShift")] + [NativeName(NativeNameType.Value, "12")] + OutputMemoryKhrShift = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableShift")] + [NativeName(NativeNameType.Value, "13")] + MakeAvailableShift = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableKHRShift")] + [NativeName(NativeNameType.Value, "13")] + MakeAvailableKhrShift = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleShift")] + [NativeName(NativeNameType.Value, "14")] + MakeVisibleShift = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleKHRShift")] + [NativeName(NativeNameType.Value, "14")] + MakeVisibleKhrShift = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsVolatileShift")] + [NativeName(NativeNameType.Value, "15")] + VolatileShift = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvMemorySemanticsMask_")] + public enum SpvMemorySemanticsMask + { + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireMask")] + [NativeName(NativeNameType.Value, "2")] + AcquireMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsReleaseMask")] + [NativeName(NativeNameType.Value, "4")] + ReleaseMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireReleaseMask")] + [NativeName(NativeNameType.Value, "8")] + AcquireReleaseMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSequentiallyConsistentMask")] + [NativeName(NativeNameType.Value, "16")] + SequentiallyConsistentMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsUniformMemoryMask")] + [NativeName(NativeNameType.Value, "64")] + UniformMemoryMask = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSubgroupMemoryMask")] + [NativeName(NativeNameType.Value, "128")] + SubgroupMemoryMask = unchecked(128), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsWorkgroupMemoryMask")] + [NativeName(NativeNameType.Value, "256")] + WorkgroupMemoryMask = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsCrossWorkgroupMemoryMask")] + [NativeName(NativeNameType.Value, "512")] + CrossWorkgroupMemoryMask = unchecked(512), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAtomicCounterMemoryMask")] + [NativeName(NativeNameType.Value, "1024")] + AtomicCounterMemoryMask = unchecked(1024), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsImageMemoryMask")] + [NativeName(NativeNameType.Value, "2048")] + ImageMemoryMask = unchecked(2048), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryMask")] + [NativeName(NativeNameType.Value, "4096")] + OutputMemoryMask = unchecked(4096), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryKHRMask")] + [NativeName(NativeNameType.Value, "4096")] + OutputMemoryKhrMask = unchecked(4096), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableMask")] + [NativeName(NativeNameType.Value, "8192")] + MakeAvailableMask = unchecked(8192), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableKHRMask")] + [NativeName(NativeNameType.Value, "8192")] + MakeAvailableKhrMask = unchecked(8192), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleMask")] + [NativeName(NativeNameType.Value, "16384")] + MakeVisibleMask = unchecked(16384), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleKHRMask")] + [NativeName(NativeNameType.Value, "16384")] + MakeVisibleKhrMask = unchecked(16384), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsVolatileMask")] + [NativeName(NativeNameType.Value, "32768")] + VolatileMask = unchecked(32768), + } + + [NativeName(NativeNameType.Enum, "SpvMemoryAccessShift_")] + public enum SpvMemoryAccessShift + { + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessVolatileShift")] + [NativeName(NativeNameType.Value, "0")] + VolatileShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAlignedShift")] + [NativeName(NativeNameType.Value, "1")] + AlignedShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNontemporalShift")] + [NativeName(NativeNameType.Value, "2")] + NontemporalShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableShift")] + [NativeName(NativeNameType.Value, "3")] + MakePointerAvailableShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableKHRShift")] + [NativeName(NativeNameType.Value, "3")] + MakePointerAvailableKhrShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleShift")] + [NativeName(NativeNameType.Value, "4")] + MakePointerVisibleShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleKHRShift")] + [NativeName(NativeNameType.Value, "4")] + MakePointerVisibleKhrShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerShift")] + [NativeName(NativeNameType.Value, "5")] + NonPrivatePointerShift = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerKHRShift")] + [NativeName(NativeNameType.Value, "5")] + NonPrivatePointerKhrShift = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAliasScopeINTELMaskShift")] + [NativeName(NativeNameType.Value, "16")] + AliasScopeIntelMaskShift = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNoAliasINTELMaskShift")] + [NativeName(NativeNameType.Value, "17")] + NoAliasIntelMaskShift = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvMemoryAccessMask_")] + public enum SpvMemoryAccessMask + { + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessVolatileMask")] + [NativeName(NativeNameType.Value, "1")] + VolatileMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAlignedMask")] + [NativeName(NativeNameType.Value, "2")] + AlignedMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNontemporalMask")] + [NativeName(NativeNameType.Value, "4")] + NontemporalMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableMask")] + [NativeName(NativeNameType.Value, "8")] + MakePointerAvailableMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableKHRMask")] + [NativeName(NativeNameType.Value, "8")] + MakePointerAvailableKhrMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleMask")] + [NativeName(NativeNameType.Value, "16")] + MakePointerVisibleMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleKHRMask")] + [NativeName(NativeNameType.Value, "16")] + MakePointerVisibleKhrMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerMask")] + [NativeName(NativeNameType.Value, "32")] + NonPrivatePointerMask = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerKHRMask")] + [NativeName(NativeNameType.Value, "32")] + NonPrivatePointerKhrMask = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAliasScopeINTELMaskMask")] + [NativeName(NativeNameType.Value, "65536")] + AliasScopeIntelMaskMask = unchecked(65536), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNoAliasINTELMaskMask")] + [NativeName(NativeNameType.Value, "131072")] + NoAliasIntelMaskMask = unchecked(131072), + } + + [NativeName(NativeNameType.Enum, "SpvScope_")] + public enum SpvScope + { + [NativeName(NativeNameType.EnumItem, "SpvScopeCrossDevice")] + [NativeName(NativeNameType.Value, "0")] + CrossDevice = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvScopeDevice")] + [NativeName(NativeNameType.Value, "1")] + Device = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvScopeWorkgroup")] + [NativeName(NativeNameType.Value, "2")] + Workgroup = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvScopeSubgroup")] + [NativeName(NativeNameType.Value, "3")] + Subgroup = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvScopeInvocation")] + [NativeName(NativeNameType.Value, "4")] + Invocation = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvScopeQueueFamily")] + [NativeName(NativeNameType.Value, "5")] + QueueFamily = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvScopeQueueFamilyKHR")] + [NativeName(NativeNameType.Value, "5")] + QueueFamilyKhr = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvScopeShaderCallKHR")] + [NativeName(NativeNameType.Value, "6")] + ShaderCallKhr = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvScopeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvGroupOperation_")] + public enum SpvGroupOperation + { + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationReduce")] + [NativeName(NativeNameType.Value, "0")] + Reduce = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationInclusiveScan")] + [NativeName(NativeNameType.Value, "1")] + InclusiveScan = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationExclusiveScan")] + [NativeName(NativeNameType.Value, "2")] + ExclusiveScan = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationClusteredReduce")] + [NativeName(NativeNameType.Value, "3")] + ClusteredReduce = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationPartitionedReduceNV")] + [NativeName(NativeNameType.Value, "6")] + PartitionedReduceNv = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationPartitionedInclusiveScanNV")] + [NativeName(NativeNameType.Value, "7")] + PartitionedInclusiveScanNv = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationPartitionedExclusiveScanNV")] + [NativeName(NativeNameType.Value, "8")] + PartitionedExclusiveScanNv = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvKernelEnqueueFlags_")] + public enum SpvKernelEnqueueFlags + { + [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsNoWait")] + [NativeName(NativeNameType.Value, "0")] + NoWait = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsWaitKernel")] + [NativeName(NativeNameType.Value, "1")] + WaitKernel = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsWaitWorkGroup")] + [NativeName(NativeNameType.Value, "2")] + WaitWorkGroup = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvKernelProfilingInfoShift_")] + public enum SpvKernelProfilingInfoShift + { + [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoCmdExecTimeShift")] + [NativeName(NativeNameType.Value, "0")] + CmdExecTimeShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvKernelProfilingInfoMask_")] + public enum SpvKernelProfilingInfoMask + { + [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoCmdExecTimeMask")] + [NativeName(NativeNameType.Value, "1")] + CmdExecTimeMask = unchecked(1), + } + + [NativeName(NativeNameType.Enum, "SpvCapability_")] + public enum SpvCapability + { + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMatrix")] + [NativeName(NativeNameType.Value, "0")] + Matrix = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShader")] + [NativeName(NativeNameType.Value, "1")] + Shader = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometry")] + [NativeName(NativeNameType.Value, "2")] + Geometry = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTessellation")] + [NativeName(NativeNameType.Value, "3")] + Tessellation = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAddresses")] + [NativeName(NativeNameType.Value, "4")] + Addresses = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityLinkage")] + [NativeName(NativeNameType.Value, "5")] + Linkage = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityKernel")] + [NativeName(NativeNameType.Value, "6")] + Kernel = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVector16")] + [NativeName(NativeNameType.Value, "7")] + Vector16 = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat16Buffer")] + [NativeName(NativeNameType.Value, "8")] + Float16Buffer = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat16")] + [NativeName(NativeNameType.Value, "9")] + Float16 = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat64")] + [NativeName(NativeNameType.Value, "10")] + Float64 = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt64")] + [NativeName(NativeNameType.Value, "11")] + Int64 = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt64Atomics")] + [NativeName(NativeNameType.Value, "12")] + Int64Atomics = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageBasic")] + [NativeName(NativeNameType.Value, "13")] + ImageBasic = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageReadWrite")] + [NativeName(NativeNameType.Value, "14")] + ImageReadWrite = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageMipmap")] + [NativeName(NativeNameType.Value, "15")] + ImageMipmap = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityPipes")] + [NativeName(NativeNameType.Value, "17")] + Pipes = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroups")] + [NativeName(NativeNameType.Value, "18")] + Groups = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDeviceEnqueue")] + [NativeName(NativeNameType.Value, "19")] + DeviceEnqueue = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityLiteralSampler")] + [NativeName(NativeNameType.Value, "20")] + LiteralSampler = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicStorage")] + [NativeName(NativeNameType.Value, "21")] + AtomicStorage = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt16")] + [NativeName(NativeNameType.Value, "22")] + Int16 = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTessellationPointSize")] + [NativeName(NativeNameType.Value, "23")] + TessellationPointSize = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometryPointSize")] + [NativeName(NativeNameType.Value, "24")] + GeometryPointSize = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageGatherExtended")] + [NativeName(NativeNameType.Value, "25")] + ImageGatherExtended = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageMultisample")] + [NativeName(NativeNameType.Value, "27")] + StorageImageMultisample = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformBufferArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "28")] + UniformBufferArrayDynamicIndexing = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledImageArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "29")] + SampledImageArrayDynamicIndexing = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBufferArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "30")] + StorageBufferArrayDynamicIndexing = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "31")] + StorageImageArrayDynamicIndexing = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityClipDistance")] + [NativeName(NativeNameType.Value, "32")] + ClipDistance = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityCullDistance")] + [NativeName(NativeNameType.Value, "33")] + CullDistance = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageCubeArray")] + [NativeName(NativeNameType.Value, "34")] + ImageCubeArray = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampleRateShading")] + [NativeName(NativeNameType.Value, "35")] + SampleRateShading = unchecked(35), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageRect")] + [NativeName(NativeNameType.Value, "36")] + ImageRect = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledRect")] + [NativeName(NativeNameType.Value, "37")] + SampledRect = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGenericPointer")] + [NativeName(NativeNameType.Value, "38")] + GenericPointer = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt8")] + [NativeName(NativeNameType.Value, "39")] + Int8 = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachment")] + [NativeName(NativeNameType.Value, "40")] + InputAttachment = unchecked(40), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySparseResidency")] + [NativeName(NativeNameType.Value, "41")] + SparseResidency = unchecked(41), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMinLod")] + [NativeName(NativeNameType.Value, "42")] + MinLod = unchecked(42), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampled1D")] + [NativeName(NativeNameType.Value, "43")] + Sampled1D = unchecked(43), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImage1D")] + [NativeName(NativeNameType.Value, "44")] + Image1D = unchecked(44), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledCubeArray")] + [NativeName(NativeNameType.Value, "45")] + SampledCubeArray = unchecked(45), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledBuffer")] + [NativeName(NativeNameType.Value, "46")] + SampledBuffer = unchecked(46), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageBuffer")] + [NativeName(NativeNameType.Value, "47")] + ImageBuffer = unchecked(47), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageMSArray")] + [NativeName(NativeNameType.Value, "48")] + ImageMsArray = unchecked(48), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageExtendedFormats")] + [NativeName(NativeNameType.Value, "49")] + StorageImageExtendedFormats = unchecked(49), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageQuery")] + [NativeName(NativeNameType.Value, "50")] + ImageQuery = unchecked(50), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDerivativeControl")] + [NativeName(NativeNameType.Value, "51")] + DerivativeControl = unchecked(51), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInterpolationFunction")] + [NativeName(NativeNameType.Value, "52")] + InterpolationFunction = unchecked(52), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTransformFeedback")] + [NativeName(NativeNameType.Value, "53")] + TransformFeedback = unchecked(53), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometryStreams")] + [NativeName(NativeNameType.Value, "54")] + GeometryStreams = unchecked(54), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageReadWithoutFormat")] + [NativeName(NativeNameType.Value, "55")] + StorageImageReadWithoutFormat = unchecked(55), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageWriteWithoutFormat")] + [NativeName(NativeNameType.Value, "56")] + StorageImageWriteWithoutFormat = unchecked(56), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMultiViewport")] + [NativeName(NativeNameType.Value, "57")] + MultiViewport = unchecked(57), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupDispatch")] + [NativeName(NativeNameType.Value, "58")] + SubgroupDispatch = unchecked(58), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityNamedBarrier")] + [NativeName(NativeNameType.Value, "59")] + NamedBarrier = unchecked(59), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityPipeStorage")] + [NativeName(NativeNameType.Value, "60")] + PipeStorage = unchecked(60), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniform")] + [NativeName(NativeNameType.Value, "61")] + GroupNonUniform = unchecked(61), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformVote")] + [NativeName(NativeNameType.Value, "62")] + GroupNonUniformVote = unchecked(62), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformArithmetic")] + [NativeName(NativeNameType.Value, "63")] + GroupNonUniformArithmetic = unchecked(63), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformBallot")] + [NativeName(NativeNameType.Value, "64")] + GroupNonUniformBallot = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformShuffle")] + [NativeName(NativeNameType.Value, "65")] + GroupNonUniformShuffle = unchecked(65), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformShuffleRelative")] + [NativeName(NativeNameType.Value, "66")] + GroupNonUniformShuffleRelative = unchecked(66), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformClustered")] + [NativeName(NativeNameType.Value, "67")] + GroupNonUniformClustered = unchecked(67), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformQuad")] + [NativeName(NativeNameType.Value, "68")] + GroupNonUniformQuad = unchecked(68), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderLayer")] + [NativeName(NativeNameType.Value, "69")] + ShaderLayer = unchecked(69), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportIndex")] + [NativeName(NativeNameType.Value, "70")] + ShaderViewportIndex = unchecked(70), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformDecoration")] + [NativeName(NativeNameType.Value, "71")] + UniformDecoration = unchecked(71), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShadingRateKHR")] + [NativeName(NativeNameType.Value, "4422")] + FragmentShadingRateKhr = unchecked(4422), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupBallotKHR")] + [NativeName(NativeNameType.Value, "4423")] + SubgroupBallotKhr = unchecked(4423), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDrawParameters")] + [NativeName(NativeNameType.Value, "4427")] + DrawParameters = unchecked(4427), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityWorkgroupMemoryExplicitLayoutKHR")] + [NativeName(NativeNameType.Value, "4428")] + WorkgroupMemoryExplicitLayoutKhr = unchecked(4428), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityWorkgroupMemoryExplicitLayout8BitAccessKHR")] + [NativeName(NativeNameType.Value, "4429")] + WorkgroupMemoryExplicitLayout8AccessKhr = unchecked(4429), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityWorkgroupMemoryExplicitLayout16BitAccessKHR")] + [NativeName(NativeNameType.Value, "4430")] + WorkgroupMemoryExplicitLayout16AccessKhr = unchecked(4430), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupVoteKHR")] + [NativeName(NativeNameType.Value, "4431")] + SubgroupVoteKhr = unchecked(4431), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBuffer16BitAccess")] + [NativeName(NativeNameType.Value, "4433")] + StorageBuffer16Access = unchecked(4433), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageUniformBufferBlock16")] + [NativeName(NativeNameType.Value, "4433")] + StorageUniformBufferBlock16 = unchecked(4433), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageUniform16")] + [NativeName(NativeNameType.Value, "4434")] + StorageUniform16 = unchecked(4434), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformAndStorageBuffer16BitAccess")] + [NativeName(NativeNameType.Value, "4434")] + UniformAndStorageBuffer16Access = unchecked(4434), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStoragePushConstant16")] + [NativeName(NativeNameType.Value, "4435")] + StoragePushConstant16 = unchecked(4435), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageInputOutput16")] + [NativeName(NativeNameType.Value, "4436")] + StorageInputOutput16 = unchecked(4436), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDeviceGroup")] + [NativeName(NativeNameType.Value, "4437")] + DeviceGroup = unchecked(4437), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMultiView")] + [NativeName(NativeNameType.Value, "4439")] + MultiView = unchecked(4439), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVariablePointersStorageBuffer")] + [NativeName(NativeNameType.Value, "4441")] + VariablePointersStorageBuffer = unchecked(4441), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVariablePointers")] + [NativeName(NativeNameType.Value, "4442")] + VariablePointers = unchecked(4442), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicStorageOps")] + [NativeName(NativeNameType.Value, "4445")] + AtomicStorageOps = unchecked(4445), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampleMaskPostDepthCoverage")] + [NativeName(NativeNameType.Value, "4447")] + SampleMaskPostDepthCoverage = unchecked(4447), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBuffer8BitAccess")] + [NativeName(NativeNameType.Value, "4448")] + StorageBuffer8Access = unchecked(4448), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformAndStorageBuffer8BitAccess")] + [NativeName(NativeNameType.Value, "4449")] + UniformAndStorageBuffer8Access = unchecked(4449), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStoragePushConstant8")] + [NativeName(NativeNameType.Value, "4450")] + StoragePushConstant8 = unchecked(4450), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDenormPreserve")] + [NativeName(NativeNameType.Value, "4464")] + DenormPreserve = unchecked(4464), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDenormFlushToZero")] + [NativeName(NativeNameType.Value, "4465")] + DenormFlushToZero = unchecked(4465), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySignedZeroInfNanPreserve")] + [NativeName(NativeNameType.Value, "4466")] + SignedZeroInfNanPreserve = unchecked(4466), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRoundingModeRTE")] + [NativeName(NativeNameType.Value, "4467")] + RoundingModeRte = unchecked(4467), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRoundingModeRTZ")] + [NativeName(NativeNameType.Value, "4468")] + RoundingModeRtz = unchecked(4468), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayQueryProvisionalKHR")] + [NativeName(NativeNameType.Value, "4471")] + RayQueryProvisionalKhr = unchecked(4471), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayQueryKHR")] + [NativeName(NativeNameType.Value, "4472")] + RayQueryKhr = unchecked(4472), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTraversalPrimitiveCullingKHR")] + [NativeName(NativeNameType.Value, "4478")] + RayTraversalPrimitiveCullingKhr = unchecked(4478), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingKHR")] + [NativeName(NativeNameType.Value, "4479")] + RayTracingKhr = unchecked(4479), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat16ImageAMD")] + [NativeName(NativeNameType.Value, "5008")] + Float16ImageAmd = unchecked(5008), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageGatherBiasLodAMD")] + [NativeName(NativeNameType.Value, "5009")] + ImageGatherBiasLodAmd = unchecked(5009), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentMaskAMD")] + [NativeName(NativeNameType.Value, "5010")] + FragmentMaskAmd = unchecked(5010), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStencilExportEXT")] + [NativeName(NativeNameType.Value, "5013")] + StencilExportExt = unchecked(5013), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageReadWriteLodAMD")] + [NativeName(NativeNameType.Value, "5015")] + ImageReadWriteLodAmd = unchecked(5015), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt64ImageEXT")] + [NativeName(NativeNameType.Value, "5016")] + Int64ImageExt = unchecked(5016), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderClockKHR")] + [NativeName(NativeNameType.Value, "5055")] + ShaderClockKhr = unchecked(5055), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampleMaskOverrideCoverageNV")] + [NativeName(NativeNameType.Value, "5249")] + SampleMaskOverrideCoverageNv = unchecked(5249), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometryShaderPassthroughNV")] + [NativeName(NativeNameType.Value, "5251")] + GeometryShaderPassthroughNv = unchecked(5251), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportIndexLayerEXT")] + [NativeName(NativeNameType.Value, "5254")] + ShaderViewportIndexLayerExt = unchecked(5254), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportIndexLayerNV")] + [NativeName(NativeNameType.Value, "5254")] + ShaderViewportIndexLayerNv = unchecked(5254), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportMaskNV")] + [NativeName(NativeNameType.Value, "5255")] + ShaderViewportMaskNv = unchecked(5255), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderStereoViewNV")] + [NativeName(NativeNameType.Value, "5259")] + ShaderStereoViewNv = unchecked(5259), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityPerViewAttributesNV")] + [NativeName(NativeNameType.Value, "5260")] + PerViewAttributesNv = unchecked(5260), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentFullyCoveredEXT")] + [NativeName(NativeNameType.Value, "5265")] + FragmentFullyCoveredExt = unchecked(5265), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMeshShadingNV")] + [NativeName(NativeNameType.Value, "5266")] + MeshShadingNv = unchecked(5266), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageFootprintNV")] + [NativeName(NativeNameType.Value, "5282")] + ImageFootprintNv = unchecked(5282), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMeshShadingEXT")] + [NativeName(NativeNameType.Value, "5283")] + MeshShadingExt = unchecked(5283), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentBarycentricKHR")] + [NativeName(NativeNameType.Value, "5284")] + FragmentBarycentricKhr = unchecked(5284), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentBarycentricNV")] + [NativeName(NativeNameType.Value, "5284")] + FragmentBarycentricNv = unchecked(5284), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityComputeDerivativeGroupQuadsNV")] + [NativeName(NativeNameType.Value, "5288")] + ComputeDerivativeGroupQuadsNv = unchecked(5288), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentDensityEXT")] + [NativeName(NativeNameType.Value, "5291")] + FragmentDensityExt = unchecked(5291), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShadingRateNV")] + [NativeName(NativeNameType.Value, "5291")] + ShadingRateNv = unchecked(5291), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformPartitionedNV")] + [NativeName(NativeNameType.Value, "5297")] + GroupNonUniformPartitionedNv = unchecked(5297), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderNonUniform")] + [NativeName(NativeNameType.Value, "5301")] + ShaderNonUniform = unchecked(5301), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderNonUniformEXT")] + [NativeName(NativeNameType.Value, "5301")] + ShaderNonUniformExt = unchecked(5301), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRuntimeDescriptorArray")] + [NativeName(NativeNameType.Value, "5302")] + RuntimeDescriptorArray = unchecked(5302), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRuntimeDescriptorArrayEXT")] + [NativeName(NativeNameType.Value, "5302")] + RuntimeDescriptorArrayExt = unchecked(5302), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "5303")] + InputAttachmentArrayDynamicIndexing = unchecked(5303), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayDynamicIndexingEXT")] + [NativeName(NativeNameType.Value, "5303")] + InputAttachmentArrayDynamicIndexingExt = unchecked(5303), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "5304")] + UniformTexelBufferArrayDynamicIndexing = unchecked(5304), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayDynamicIndexingEXT")] + [NativeName(NativeNameType.Value, "5304")] + UniformTexelBufferArrayDynamicIndexingExt = unchecked(5304), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "5305")] + StorageTexelBufferArrayDynamicIndexing = unchecked(5305), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayDynamicIndexingEXT")] + [NativeName(NativeNameType.Value, "5305")] + StorageTexelBufferArrayDynamicIndexingExt = unchecked(5305), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformBufferArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5306")] + UniformBufferArrayNonUniformIndexing = unchecked(5306), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformBufferArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5306")] + UniformBufferArrayNonUniformIndexingExt = unchecked(5306), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledImageArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5307")] + SampledImageArrayNonUniformIndexing = unchecked(5307), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledImageArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5307")] + SampledImageArrayNonUniformIndexingExt = unchecked(5307), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBufferArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5308")] + StorageBufferArrayNonUniformIndexing = unchecked(5308), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBufferArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5308")] + StorageBufferArrayNonUniformIndexingExt = unchecked(5308), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5309")] + StorageImageArrayNonUniformIndexing = unchecked(5309), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5309")] + StorageImageArrayNonUniformIndexingExt = unchecked(5309), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5310")] + InputAttachmentArrayNonUniformIndexing = unchecked(5310), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5310")] + InputAttachmentArrayNonUniformIndexingExt = unchecked(5310), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5311")] + UniformTexelBufferArrayNonUniformIndexing = unchecked(5311), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5311")] + UniformTexelBufferArrayNonUniformIndexingExt = unchecked(5311), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5312")] + StorageTexelBufferArrayNonUniformIndexing = unchecked(5312), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5312")] + StorageTexelBufferArrayNonUniformIndexingExt = unchecked(5312), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingNV")] + [NativeName(NativeNameType.Value, "5340")] + RayTracingNv = unchecked(5340), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingMotionBlurNV")] + [NativeName(NativeNameType.Value, "5341")] + RayTracingMotionBlurNv = unchecked(5341), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModel")] + [NativeName(NativeNameType.Value, "5345")] + VulkanMemoryModel = unchecked(5345), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModelKHR")] + [NativeName(NativeNameType.Value, "5345")] + VulkanMemoryModelKhr = unchecked(5345), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModelDeviceScope")] + [NativeName(NativeNameType.Value, "5346")] + VulkanMemoryModelDeviceScope = unchecked(5346), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModelDeviceScopeKHR")] + [NativeName(NativeNameType.Value, "5346")] + VulkanMemoryModelDeviceScopeKhr = unchecked(5346), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityPhysicalStorageBufferAddresses")] + [NativeName(NativeNameType.Value, "5347")] + PhysicalStorageBufferAddresses = unchecked(5347), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityPhysicalStorageBufferAddressesEXT")] + [NativeName(NativeNameType.Value, "5347")] + PhysicalStorageBufferAddressesExt = unchecked(5347), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityComputeDerivativeGroupLinearNV")] + [NativeName(NativeNameType.Value, "5350")] + ComputeDerivativeGroupLinearNv = unchecked(5350), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingProvisionalKHR")] + [NativeName(NativeNameType.Value, "5353")] + RayTracingProvisionalKhr = unchecked(5353), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityCooperativeMatrixNV")] + [NativeName(NativeNameType.Value, "5357")] + CooperativeMatrixNv = unchecked(5357), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShaderSampleInterlockEXT")] + [NativeName(NativeNameType.Value, "5363")] + FragmentShaderSampleInterlockExt = unchecked(5363), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShaderShadingRateInterlockEXT")] + [NativeName(NativeNameType.Value, "5372")] + FragmentShaderShadingRateInterlockExt = unchecked(5372), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderSMBuiltinsNV")] + [NativeName(NativeNameType.Value, "5373")] + ShaderSmBuiltinsNv = unchecked(5373), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShaderPixelInterlockEXT")] + [NativeName(NativeNameType.Value, "5378")] + FragmentShaderPixelInterlockExt = unchecked(5378), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDemoteToHelperInvocation")] + [NativeName(NativeNameType.Value, "5379")] + DemoteToHelperInvocation = unchecked(5379), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDemoteToHelperInvocationEXT")] + [NativeName(NativeNameType.Value, "5379")] + DemoteToHelperInvocationExt = unchecked(5379), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityBindlessTextureNV")] + [NativeName(NativeNameType.Value, "5390")] + BindlessTextureNv = unchecked(5390), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupShuffleINTEL")] + [NativeName(NativeNameType.Value, "5568")] + SubgroupShuffleIntel = unchecked(5568), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupBufferBlockIOINTEL")] + [NativeName(NativeNameType.Value, "5569")] + SubgroupBufferBlockIointel = unchecked(5569), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupImageBlockIOINTEL")] + [NativeName(NativeNameType.Value, "5570")] + SubgroupImageBlockIointel = unchecked(5570), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupImageMediaBlockIOINTEL")] + [NativeName(NativeNameType.Value, "5579")] + SubgroupImageMediaBlockIointel = unchecked(5579), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRoundToInfinityINTEL")] + [NativeName(NativeNameType.Value, "5582")] + RoundToInfinityIntel = unchecked(5582), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloatingPointModeINTEL")] + [NativeName(NativeNameType.Value, "5583")] + FloatingPointModeIntel = unchecked(5583), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityIntegerFunctions2INTEL")] + [NativeName(NativeNameType.Value, "5584")] + IntegerFunctions2Intel = unchecked(5584), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFunctionPointersINTEL")] + [NativeName(NativeNameType.Value, "5603")] + FunctionPointersIntel = unchecked(5603), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityIndirectReferencesINTEL")] + [NativeName(NativeNameType.Value, "5604")] + IndirectReferencesIntel = unchecked(5604), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAsmINTEL")] + [NativeName(NativeNameType.Value, "5606")] + AsmIntel = unchecked(5606), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat32MinMaxEXT")] + [NativeName(NativeNameType.Value, "5612")] + AtomicFloat32MinMaxExt = unchecked(5612), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat64MinMaxEXT")] + [NativeName(NativeNameType.Value, "5613")] + AtomicFloat64MinMaxExt = unchecked(5613), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat16MinMaxEXT")] + [NativeName(NativeNameType.Value, "5616")] + AtomicFloat16MinMaxExt = unchecked(5616), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVectorComputeINTEL")] + [NativeName(NativeNameType.Value, "5617")] + VectorComputeIntel = unchecked(5617), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVectorAnyINTEL")] + [NativeName(NativeNameType.Value, "5619")] + VectorAnyIntel = unchecked(5619), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityExpectAssumeKHR")] + [NativeName(NativeNameType.Value, "5629")] + ExpectAssumeKhr = unchecked(5629), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupAvcMotionEstimationINTEL")] + [NativeName(NativeNameType.Value, "5696")] + SubgroupAvcMotionEstimationIntel = unchecked(5696), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupAvcMotionEstimationIntraINTEL")] + [NativeName(NativeNameType.Value, "5697")] + SubgroupAvcMotionEstimationIntraIntel = unchecked(5697), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupAvcMotionEstimationChromaINTEL")] + [NativeName(NativeNameType.Value, "5698")] + SubgroupAvcMotionEstimationChromaIntel = unchecked(5698), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVariableLengthArrayINTEL")] + [NativeName(NativeNameType.Value, "5817")] + VariableLengthArrayIntel = unchecked(5817), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFunctionFloatControlINTEL")] + [NativeName(NativeNameType.Value, "5821")] + FunctionFloatControlIntel = unchecked(5821), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAMemoryAttributesINTEL")] + [NativeName(NativeNameType.Value, "5824")] + FpgaMemoryAttributesIntel = unchecked(5824), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPFastMathModeINTEL")] + [NativeName(NativeNameType.Value, "5837")] + FpFastMathModeIntel = unchecked(5837), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityArbitraryPrecisionIntegersINTEL")] + [NativeName(NativeNameType.Value, "5844")] + ArbitraryPrecisionIntegersIntel = unchecked(5844), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityArbitraryPrecisionFloatingPointINTEL")] + [NativeName(NativeNameType.Value, "5845")] + ArbitraryPrecisionFloatingPointIntel = unchecked(5845), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUnstructuredLoopControlsINTEL")] + [NativeName(NativeNameType.Value, "5886")] + UnstructuredLoopControlsIntel = unchecked(5886), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGALoopControlsINTEL")] + [NativeName(NativeNameType.Value, "5888")] + FpgaLoopControlsIntel = unchecked(5888), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityKernelAttributesINTEL")] + [NativeName(NativeNameType.Value, "5892")] + KernelAttributesIntel = unchecked(5892), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAKernelAttributesINTEL")] + [NativeName(NativeNameType.Value, "5897")] + FpgaKernelAttributesIntel = unchecked(5897), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAMemoryAccessesINTEL")] + [NativeName(NativeNameType.Value, "5898")] + FpgaMemoryAccessesIntel = unchecked(5898), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAClusterAttributesINTEL")] + [NativeName(NativeNameType.Value, "5904")] + FpgaClusterAttributesIntel = unchecked(5904), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityLoopFuseINTEL")] + [NativeName(NativeNameType.Value, "5906")] + LoopFuseIntel = unchecked(5906), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMemoryAccessAliasingINTEL")] + [NativeName(NativeNameType.Value, "5910")] + MemoryAccessAliasingIntel = unchecked(5910), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGABufferLocationINTEL")] + [NativeName(NativeNameType.Value, "5920")] + FpgaBufferLocationIntel = unchecked(5920), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityArbitraryPrecisionFixedPointINTEL")] + [NativeName(NativeNameType.Value, "5922")] + ArbitraryPrecisionFixedPointIntel = unchecked(5922), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUSMStorageClassesINTEL")] + [NativeName(NativeNameType.Value, "5935")] + UsmStorageClassesIntel = unchecked(5935), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityIOPipesINTEL")] + [NativeName(NativeNameType.Value, "5943")] + IoPipesIntel = unchecked(5943), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityBlockingPipesINTEL")] + [NativeName(NativeNameType.Value, "5945")] + BlockingPipesIntel = unchecked(5945), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGARegINTEL")] + [NativeName(NativeNameType.Value, "5948")] + FpgaRegIntel = unchecked(5948), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInputAll")] + [NativeName(NativeNameType.Value, "6016")] + DotProductInputAll = unchecked(6016), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInputAllKHR")] + [NativeName(NativeNameType.Value, "6016")] + DotProductInputAllKhr = unchecked(6016), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8Bit")] + [NativeName(NativeNameType.Value, "6017")] + DotProductInput4X8 = unchecked(6017), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8BitKHR")] + [NativeName(NativeNameType.Value, "6017")] + DotProductInput4X8Khr = unchecked(6017), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8BitPacked")] + [NativeName(NativeNameType.Value, "6018")] + DotProductInput4X8Packed = unchecked(6018), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8BitPackedKHR")] + [NativeName(NativeNameType.Value, "6018")] + DotProductInput4X8PackedKhr = unchecked(6018), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProduct")] + [NativeName(NativeNameType.Value, "6019")] + DotProduct = unchecked(6019), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductKHR")] + [NativeName(NativeNameType.Value, "6019")] + DotProductKhr = unchecked(6019), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayCullMaskKHR")] + [NativeName(NativeNameType.Value, "6020")] + RayCullMaskKhr = unchecked(6020), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityBitInstructions")] + [NativeName(NativeNameType.Value, "6025")] + Instructions = unchecked(6025), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformRotateKHR")] + [NativeName(NativeNameType.Value, "6026")] + GroupNonUniformRotateKhr = unchecked(6026), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat32AddEXT")] + [NativeName(NativeNameType.Value, "6033")] + AtomicFloat32AddExt = unchecked(6033), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat64AddEXT")] + [NativeName(NativeNameType.Value, "6034")] + AtomicFloat64AddExt = unchecked(6034), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityLongConstantCompositeINTEL")] + [NativeName(NativeNameType.Value, "6089")] + LongConstantCompositeIntel = unchecked(6089), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityOptNoneINTEL")] + [NativeName(NativeNameType.Value, "6094")] + OptNoneIntel = unchecked(6094), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat16AddEXT")] + [NativeName(NativeNameType.Value, "6095")] + AtomicFloat16AddExt = unchecked(6095), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDebugInfoModuleINTEL")] + [NativeName(NativeNameType.Value, "6114")] + DebugInfoModuleIntel = unchecked(6114), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySplitBarrierINTEL")] + [NativeName(NativeNameType.Value, "6141")] + SplitBarrierIntel = unchecked(6141), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupUniformArithmeticKHR")] + [NativeName(NativeNameType.Value, "6400")] + GroupUniformArithmeticKhr = unchecked(6400), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvRayFlagsShift_")] + public enum SpvRayFlagsShift + { + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsOpaqueKHRShift")] + [NativeName(NativeNameType.Value, "0")] + OpaqueKhrShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsNoOpaqueKHRShift")] + [NativeName(NativeNameType.Value, "1")] + NoOpaqueKhrShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsTerminateOnFirstHitKHRShift")] + [NativeName(NativeNameType.Value, "2")] + TerminateOnFirstHitKhrShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipClosestHitShaderKHRShift")] + [NativeName(NativeNameType.Value, "3")] + SkipClosestHitShaderKhrShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullBackFacingTrianglesKHRShift")] + [NativeName(NativeNameType.Value, "4")] + CullBackFacingTrianglesKhrShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullFrontFacingTrianglesKHRShift")] + [NativeName(NativeNameType.Value, "5")] + CullFrontFacingTrianglesKhrShift = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullOpaqueKHRShift")] + [NativeName(NativeNameType.Value, "6")] + CullOpaqueKhrShift = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullNoOpaqueKHRShift")] + [NativeName(NativeNameType.Value, "7")] + CullNoOpaqueKhrShift = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipTrianglesKHRShift")] + [NativeName(NativeNameType.Value, "8")] + SkipTrianglesKhrShift = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipAABBsKHRShift")] + [NativeName(NativeNameType.Value, "9")] + SkipAabBsKhrShift = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvRayFlagsMask_")] + public enum SpvRayFlagsMask + { + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsOpaqueKHRMask")] + [NativeName(NativeNameType.Value, "1")] + OpaqueKhrMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsNoOpaqueKHRMask")] + [NativeName(NativeNameType.Value, "2")] + NoOpaqueKhrMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsTerminateOnFirstHitKHRMask")] + [NativeName(NativeNameType.Value, "4")] + TerminateOnFirstHitKhrMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipClosestHitShaderKHRMask")] + [NativeName(NativeNameType.Value, "8")] + SkipClosestHitShaderKhrMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullBackFacingTrianglesKHRMask")] + [NativeName(NativeNameType.Value, "16")] + CullBackFacingTrianglesKhrMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullFrontFacingTrianglesKHRMask")] + [NativeName(NativeNameType.Value, "32")] + CullFrontFacingTrianglesKhrMask = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullOpaqueKHRMask")] + [NativeName(NativeNameType.Value, "64")] + CullOpaqueKhrMask = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullNoOpaqueKHRMask")] + [NativeName(NativeNameType.Value, "128")] + CullNoOpaqueKhrMask = unchecked(128), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipTrianglesKHRMask")] + [NativeName(NativeNameType.Value, "256")] + SkipTrianglesKhrMask = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipAABBsKHRMask")] + [NativeName(NativeNameType.Value, "512")] + SkipAabBsKhrMask = unchecked(512), + } + + [NativeName(NativeNameType.Enum, "SpvRayQueryIntersection_")] + public enum SpvRayQueryIntersection + { + [NativeName(NativeNameType.EnumItem, "SpvRayQueryIntersectionRayQueryCandidateIntersectionKHR")] + [NativeName(NativeNameType.Value, "0")] + CandidateIntersectionKhr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryIntersectionRayQueryCommittedIntersectionKHR")] + [NativeName(NativeNameType.Value, "1")] + CommittedIntersectionKhr = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryIntersectionMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvRayQueryCommittedIntersectionType_")] + public enum SpvRayQueryCommittedIntersectionType + { + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionNoneKHR")] + [NativeName(NativeNameType.Value, "0")] + NoneKhr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionTriangleKHR")] + [NativeName(NativeNameType.Value, "1")] + TriangleKhr = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionGeneratedKHR")] + [NativeName(NativeNameType.Value, "2")] + GeneratedKhr = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvRayQueryCandidateIntersectionType_")] + public enum SpvRayQueryCandidateIntersectionType + { + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionTriangleKHR")] + [NativeName(NativeNameType.Value, "0")] + TriangleKhr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionAABBKHR")] + [NativeName(NativeNameType.Value, "1")] + Aabbkhr = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCandidateIntersectionTypeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFragmentShadingRateShift_")] + public enum SpvFragmentShadingRateShift + { + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical2PixelsShift")] + [NativeName(NativeNameType.Value, "0")] + Vertical2PixelsShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical4PixelsShift")] + [NativeName(NativeNameType.Value, "1")] + Vertical4PixelsShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal2PixelsShift")] + [NativeName(NativeNameType.Value, "2")] + Horizontal2PixelsShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal4PixelsShift")] + [NativeName(NativeNameType.Value, "3")] + Horizontal4PixelsShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFragmentShadingRateMask_")] + public enum SpvFragmentShadingRateMask + { + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical2PixelsMask")] + [NativeName(NativeNameType.Value, "1")] + Vertical2PixelsMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical4PixelsMask")] + [NativeName(NativeNameType.Value, "2")] + Vertical4PixelsMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal2PixelsMask")] + [NativeName(NativeNameType.Value, "4")] + Horizontal2PixelsMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal4PixelsMask")] + [NativeName(NativeNameType.Value, "8")] + Horizontal4PixelsMask = unchecked(8), + } + + [NativeName(NativeNameType.Enum, "SpvFPDenormMode_")] + public enum SpvFPDenormMode + { + [NativeName(NativeNameType.EnumItem, "SpvFPDenormModePreserve")] + [NativeName(NativeNameType.Value, "0")] + Preserve = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFPDenormModeFlushToZero")] + [NativeName(NativeNameType.Value, "1")] + FlushToZero = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFPDenormModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFPOperationMode_")] + public enum SpvFPOperationMode + { + [NativeName(NativeNameType.EnumItem, "SpvFPOperationModeIEEE")] + [NativeName(NativeNameType.Value, "0")] + Ieee = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFPOperationModeALT")] + [NativeName(NativeNameType.Value, "1")] + Alt = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFPOperationModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvQuantizationModes_")] + public enum SpvQuantizationModes + { + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesTRN")] + [NativeName(NativeNameType.Value, "0")] + Trn = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesTRN_ZERO")] + [NativeName(NativeNameType.Value, "1")] + TrnZero = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND")] + [NativeName(NativeNameType.Value, "2")] + Rnd = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_ZERO")] + [NativeName(NativeNameType.Value, "3")] + RndZero = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_INF")] + [NativeName(NativeNameType.Value, "4")] + RndInf = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_MIN_INF")] + [NativeName(NativeNameType.Value, "5")] + RndMinInf = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_CONV")] + [NativeName(NativeNameType.Value, "6")] + RndConv = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_CONV_ODD")] + [NativeName(NativeNameType.Value, "7")] + RndConvOdd = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvOverflowModes_")] + public enum SpvOverflowModes + { + [NativeName(NativeNameType.EnumItem, "SpvOverflowModesWRAP")] + [NativeName(NativeNameType.Value, "0")] + Wrap = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvOverflowModesSAT")] + [NativeName(NativeNameType.Value, "1")] + Sat = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvOverflowModesSAT_ZERO")] + [NativeName(NativeNameType.Value, "2")] + SatZero = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvOverflowModesSAT_SYM")] + [NativeName(NativeNameType.Value, "3")] + SatSym = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvOverflowModesMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvPackedVectorFormat_")] + public enum SpvPackedVectorFormat + { + [NativeName(NativeNameType.EnumItem, "SpvPackedVectorFormatPackedVectorFormat4x8Bit")] + [NativeName(NativeNameType.Value, "0")] + Format4X8 = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvPackedVectorFormatPackedVectorFormat4x8BitKHR")] + [NativeName(NativeNameType.Value, "0")] + Format4X8Khr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvPackedVectorFormatMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvOp_")] + public enum SpvOp + { + [NativeName(NativeNameType.EnumItem, "SpvOpNop")] + [NativeName(NativeNameType.Value, "0")] + Nop = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvOpUndef")] + [NativeName(NativeNameType.Value, "1")] + Undef = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvOpSourceContinued")] + [NativeName(NativeNameType.Value, "2")] + SourceContinued = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvOpSource")] + [NativeName(NativeNameType.Value, "3")] + Source = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvOpSourceExtension")] + [NativeName(NativeNameType.Value, "4")] + SourceExtension = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvOpName")] + [NativeName(NativeNameType.Value, "5")] + Name = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvOpMemberName")] + [NativeName(NativeNameType.Value, "6")] + MemberName = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvOpString")] + [NativeName(NativeNameType.Value, "7")] + String = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvOpLine")] + [NativeName(NativeNameType.Value, "8")] + Line = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvOpExtension")] + [NativeName(NativeNameType.Value, "10")] + Extension = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvOpExtInstImport")] + [NativeName(NativeNameType.Value, "11")] + ExtInstImport = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvOpExtInst")] + [NativeName(NativeNameType.Value, "12")] + ExtInst = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvOpMemoryModel")] + [NativeName(NativeNameType.Value, "14")] + MemoryModel = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvOpEntryPoint")] + [NativeName(NativeNameType.Value, "15")] + EntryPoint = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvOpExecutionMode")] + [NativeName(NativeNameType.Value, "16")] + ExecutionMode = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvOpCapability")] + [NativeName(NativeNameType.Value, "17")] + Capability = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeVoid")] + [NativeName(NativeNameType.Value, "19")] + TypeVoid = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeBool")] + [NativeName(NativeNameType.Value, "20")] + TypeBool = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeInt")] + [NativeName(NativeNameType.Value, "21")] + TypeInt = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeFloat")] + [NativeName(NativeNameType.Value, "22")] + TypeFloat = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeVector")] + [NativeName(NativeNameType.Value, "23")] + TypeVector = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeMatrix")] + [NativeName(NativeNameType.Value, "24")] + TypeMatrix = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeImage")] + [NativeName(NativeNameType.Value, "25")] + TypeImage = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeSampler")] + [NativeName(NativeNameType.Value, "26")] + TypeSampler = unchecked(26), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeSampledImage")] + [NativeName(NativeNameType.Value, "27")] + TypeSampledImage = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeArray")] + [NativeName(NativeNameType.Value, "28")] + TypeArray = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeRuntimeArray")] + [NativeName(NativeNameType.Value, "29")] + TypeRuntimeArray = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeStruct")] + [NativeName(NativeNameType.Value, "30")] + TypeStruct = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeOpaque")] + [NativeName(NativeNameType.Value, "31")] + TypeOpaque = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvOpTypePointer")] + [NativeName(NativeNameType.Value, "32")] + TypePointer = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeFunction")] + [NativeName(NativeNameType.Value, "33")] + TypeFunction = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeEvent")] + [NativeName(NativeNameType.Value, "34")] + TypeEvent = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeDeviceEvent")] + [NativeName(NativeNameType.Value, "35")] + TypeDeviceEvent = unchecked(35), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeReserveId")] + [NativeName(NativeNameType.Value, "36")] + TypeReserveId = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeQueue")] + [NativeName(NativeNameType.Value, "37")] + TypeQueue = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvOpTypePipe")] + [NativeName(NativeNameType.Value, "38")] + TypePipe = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeForwardPointer")] + [NativeName(NativeNameType.Value, "39")] + TypeForwardPointer = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantTrue")] + [NativeName(NativeNameType.Value, "41")] + ConstantTrue = unchecked(41), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantFalse")] + [NativeName(NativeNameType.Value, "42")] + ConstantFalse = unchecked(42), + [NativeName(NativeNameType.EnumItem, "SpvOpConstant")] + [NativeName(NativeNameType.Value, "43")] + Constant = unchecked(43), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantComposite")] + [NativeName(NativeNameType.Value, "44")] + ConstantComposite = unchecked(44), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantSampler")] + [NativeName(NativeNameType.Value, "45")] + ConstantSampler = unchecked(45), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantNull")] + [NativeName(NativeNameType.Value, "46")] + ConstantNull = unchecked(46), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantTrue")] + [NativeName(NativeNameType.Value, "48")] + SpecConstantTrue = unchecked(48), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantFalse")] + [NativeName(NativeNameType.Value, "49")] + SpecConstantFalse = unchecked(49), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstant")] + [NativeName(NativeNameType.Value, "50")] + SpecConstant = unchecked(50), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantComposite")] + [NativeName(NativeNameType.Value, "51")] + SpecConstantComposite = unchecked(51), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantOp")] + [NativeName(NativeNameType.Value, "52")] + SpecConstantOp = unchecked(52), + [NativeName(NativeNameType.EnumItem, "SpvOpFunction")] + [NativeName(NativeNameType.Value, "54")] + Function = unchecked(54), + [NativeName(NativeNameType.EnumItem, "SpvOpFunctionParameter")] + [NativeName(NativeNameType.Value, "55")] + FunctionParameter = unchecked(55), + [NativeName(NativeNameType.EnumItem, "SpvOpFunctionEnd")] + [NativeName(NativeNameType.Value, "56")] + FunctionEnd = unchecked(56), + [NativeName(NativeNameType.EnumItem, "SpvOpFunctionCall")] + [NativeName(NativeNameType.Value, "57")] + FunctionCall = unchecked(57), + [NativeName(NativeNameType.EnumItem, "SpvOpVariable")] + [NativeName(NativeNameType.Value, "59")] + Variable = unchecked(59), + [NativeName(NativeNameType.EnumItem, "SpvOpImageTexelPointer")] + [NativeName(NativeNameType.Value, "60")] + ImageTexelPointer = unchecked(60), + [NativeName(NativeNameType.EnumItem, "SpvOpLoad")] + [NativeName(NativeNameType.Value, "61")] + Load = unchecked(61), + [NativeName(NativeNameType.EnumItem, "SpvOpStore")] + [NativeName(NativeNameType.Value, "62")] + Store = unchecked(62), + [NativeName(NativeNameType.EnumItem, "SpvOpCopyMemory")] + [NativeName(NativeNameType.Value, "63")] + CopyMemory = unchecked(63), + [NativeName(NativeNameType.EnumItem, "SpvOpCopyMemorySized")] + [NativeName(NativeNameType.Value, "64")] + CopyMemorySized = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvOpAccessChain")] + [NativeName(NativeNameType.Value, "65")] + AccessChain = unchecked(65), + [NativeName(NativeNameType.EnumItem, "SpvOpInBoundsAccessChain")] + [NativeName(NativeNameType.Value, "66")] + InBoundsAccessChain = unchecked(66), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrAccessChain")] + [NativeName(NativeNameType.Value, "67")] + PtrAccessChain = unchecked(67), + [NativeName(NativeNameType.EnumItem, "SpvOpArrayLength")] + [NativeName(NativeNameType.Value, "68")] + ArrayLength = unchecked(68), + [NativeName(NativeNameType.EnumItem, "SpvOpGenericPtrMemSemantics")] + [NativeName(NativeNameType.Value, "69")] + GenericPtrMemSemantics = unchecked(69), + [NativeName(NativeNameType.EnumItem, "SpvOpInBoundsPtrAccessChain")] + [NativeName(NativeNameType.Value, "70")] + InBoundsPtrAccessChain = unchecked(70), + [NativeName(NativeNameType.EnumItem, "SpvOpDecorate")] + [NativeName(NativeNameType.Value, "71")] + Decorate = unchecked(71), + [NativeName(NativeNameType.EnumItem, "SpvOpMemberDecorate")] + [NativeName(NativeNameType.Value, "72")] + MemberDecorate = unchecked(72), + [NativeName(NativeNameType.EnumItem, "SpvOpDecorationGroup")] + [NativeName(NativeNameType.Value, "73")] + DecorationGroup = unchecked(73), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupDecorate")] + [NativeName(NativeNameType.Value, "74")] + GroupDecorate = unchecked(74), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupMemberDecorate")] + [NativeName(NativeNameType.Value, "75")] + GroupMemberDecorate = unchecked(75), + [NativeName(NativeNameType.EnumItem, "SpvOpVectorExtractDynamic")] + [NativeName(NativeNameType.Value, "77")] + VectorExtractDynamic = unchecked(77), + [NativeName(NativeNameType.EnumItem, "SpvOpVectorInsertDynamic")] + [NativeName(NativeNameType.Value, "78")] + VectorInsertDynamic = unchecked(78), + [NativeName(NativeNameType.EnumItem, "SpvOpVectorShuffle")] + [NativeName(NativeNameType.Value, "79")] + VectorShuffle = unchecked(79), + [NativeName(NativeNameType.EnumItem, "SpvOpCompositeConstruct")] + [NativeName(NativeNameType.Value, "80")] + CompositeConstruct = unchecked(80), + [NativeName(NativeNameType.EnumItem, "SpvOpCompositeExtract")] + [NativeName(NativeNameType.Value, "81")] + CompositeExtract = unchecked(81), + [NativeName(NativeNameType.EnumItem, "SpvOpCompositeInsert")] + [NativeName(NativeNameType.Value, "82")] + CompositeInsert = unchecked(82), + [NativeName(NativeNameType.EnumItem, "SpvOpCopyObject")] + [NativeName(NativeNameType.Value, "83")] + CopyObject = unchecked(83), + [NativeName(NativeNameType.EnumItem, "SpvOpTranspose")] + [NativeName(NativeNameType.Value, "84")] + Transpose = unchecked(84), + [NativeName(NativeNameType.EnumItem, "SpvOpSampledImage")] + [NativeName(NativeNameType.Value, "86")] + SampledImage = unchecked(86), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleImplicitLod")] + [NativeName(NativeNameType.Value, "87")] + ImageSampleImplicitLod = unchecked(87), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleExplicitLod")] + [NativeName(NativeNameType.Value, "88")] + ImageSampleExplicitLod = unchecked(88), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleDrefImplicitLod")] + [NativeName(NativeNameType.Value, "89")] + ImageSampleDrefImplicitLod = unchecked(89), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleDrefExplicitLod")] + [NativeName(NativeNameType.Value, "90")] + ImageSampleDrefExplicitLod = unchecked(90), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjImplicitLod")] + [NativeName(NativeNameType.Value, "91")] + ImageSampleProjImplicitLod = unchecked(91), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjExplicitLod")] + [NativeName(NativeNameType.Value, "92")] + ImageSampleProjExplicitLod = unchecked(92), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjDrefImplicitLod")] + [NativeName(NativeNameType.Value, "93")] + ImageSampleProjDrefImplicitLod = unchecked(93), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjDrefExplicitLod")] + [NativeName(NativeNameType.Value, "94")] + ImageSampleProjDrefExplicitLod = unchecked(94), + [NativeName(NativeNameType.EnumItem, "SpvOpImageFetch")] + [NativeName(NativeNameType.Value, "95")] + ImageFetch = unchecked(95), + [NativeName(NativeNameType.EnumItem, "SpvOpImageGather")] + [NativeName(NativeNameType.Value, "96")] + ImageGather = unchecked(96), + [NativeName(NativeNameType.EnumItem, "SpvOpImageDrefGather")] + [NativeName(NativeNameType.Value, "97")] + ImageDrefGather = unchecked(97), + [NativeName(NativeNameType.EnumItem, "SpvOpImageRead")] + [NativeName(NativeNameType.Value, "98")] + ImageRead = unchecked(98), + [NativeName(NativeNameType.EnumItem, "SpvOpImageWrite")] + [NativeName(NativeNameType.Value, "99")] + ImageWrite = unchecked(99), + [NativeName(NativeNameType.EnumItem, "SpvOpImage")] + [NativeName(NativeNameType.Value, "100")] + Image = unchecked(100), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryFormat")] + [NativeName(NativeNameType.Value, "101")] + ImageQueryFormat = unchecked(101), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryOrder")] + [NativeName(NativeNameType.Value, "102")] + ImageQueryOrder = unchecked(102), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQuerySizeLod")] + [NativeName(NativeNameType.Value, "103")] + ImageQuerySizeLod = unchecked(103), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQuerySize")] + [NativeName(NativeNameType.Value, "104")] + ImageQuerySize = unchecked(104), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryLod")] + [NativeName(NativeNameType.Value, "105")] + ImageQueryLod = unchecked(105), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryLevels")] + [NativeName(NativeNameType.Value, "106")] + ImageQueryLevels = unchecked(106), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQuerySamples")] + [NativeName(NativeNameType.Value, "107")] + ImageQuerySamples = unchecked(107), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertFToU")] + [NativeName(NativeNameType.Value, "109")] + ConvertfTou = unchecked(109), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertFToS")] + [NativeName(NativeNameType.Value, "110")] + ConvertfTos = unchecked(110), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertSToF")] + [NativeName(NativeNameType.Value, "111")] + ConvertsTof = unchecked(111), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToF")] + [NativeName(NativeNameType.Value, "112")] + ConvertuTof = unchecked(112), + [NativeName(NativeNameType.EnumItem, "SpvOpUConvert")] + [NativeName(NativeNameType.Value, "113")] + OpuConvert = unchecked(113), + [NativeName(NativeNameType.EnumItem, "SpvOpSConvert")] + [NativeName(NativeNameType.Value, "114")] + OpsConvert = unchecked(114), + [NativeName(NativeNameType.EnumItem, "SpvOpFConvert")] + [NativeName(NativeNameType.Value, "115")] + OpfConvert = unchecked(115), + [NativeName(NativeNameType.EnumItem, "SpvOpQuantizeToF16")] + [NativeName(NativeNameType.Value, "116")] + QuantizeTof16 = unchecked(116), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertPtrToU")] + [NativeName(NativeNameType.Value, "117")] + ConvertPtrTou = unchecked(117), + [NativeName(NativeNameType.EnumItem, "SpvOpSatConvertSToU")] + [NativeName(NativeNameType.Value, "118")] + SatConvertsTou = unchecked(118), + [NativeName(NativeNameType.EnumItem, "SpvOpSatConvertUToS")] + [NativeName(NativeNameType.Value, "119")] + SatConvertuTos = unchecked(119), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToPtr")] + [NativeName(NativeNameType.Value, "120")] + ConvertuToPtr = unchecked(120), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrCastToGeneric")] + [NativeName(NativeNameType.Value, "121")] + PtrCastToGeneric = unchecked(121), + [NativeName(NativeNameType.EnumItem, "SpvOpGenericCastToPtr")] + [NativeName(NativeNameType.Value, "122")] + GenericCastToPtr = unchecked(122), + [NativeName(NativeNameType.EnumItem, "SpvOpGenericCastToPtrExplicit")] + [NativeName(NativeNameType.Value, "123")] + GenericCastToPtrExplicit = unchecked(123), + [NativeName(NativeNameType.EnumItem, "SpvOpBitcast")] + [NativeName(NativeNameType.Value, "124")] + Bitcast = unchecked(124), + [NativeName(NativeNameType.EnumItem, "SpvOpSNegate")] + [NativeName(NativeNameType.Value, "126")] + OpsNegate = unchecked(126), + [NativeName(NativeNameType.EnumItem, "SpvOpFNegate")] + [NativeName(NativeNameType.Value, "127")] + OpfNegate = unchecked(127), + [NativeName(NativeNameType.EnumItem, "SpvOpIAdd")] + [NativeName(NativeNameType.Value, "128")] + OpiAdd = unchecked(128), + [NativeName(NativeNameType.EnumItem, "SpvOpFAdd")] + [NativeName(NativeNameType.Value, "129")] + OpfAdd = unchecked(129), + [NativeName(NativeNameType.EnumItem, "SpvOpISub")] + [NativeName(NativeNameType.Value, "130")] + OpiSub = unchecked(130), + [NativeName(NativeNameType.EnumItem, "SpvOpFSub")] + [NativeName(NativeNameType.Value, "131")] + OpfSub = unchecked(131), + [NativeName(NativeNameType.EnumItem, "SpvOpIMul")] + [NativeName(NativeNameType.Value, "132")] + OpiMul = unchecked(132), + [NativeName(NativeNameType.EnumItem, "SpvOpFMul")] + [NativeName(NativeNameType.Value, "133")] + OpfMul = unchecked(133), + [NativeName(NativeNameType.EnumItem, "SpvOpUDiv")] + [NativeName(NativeNameType.Value, "134")] + OpuDiv = unchecked(134), + [NativeName(NativeNameType.EnumItem, "SpvOpSDiv")] + [NativeName(NativeNameType.Value, "135")] + OpsDiv = unchecked(135), + [NativeName(NativeNameType.EnumItem, "SpvOpFDiv")] + [NativeName(NativeNameType.Value, "136")] + OpfDiv = unchecked(136), + [NativeName(NativeNameType.EnumItem, "SpvOpUMod")] + [NativeName(NativeNameType.Value, "137")] + OpuMod = unchecked(137), + [NativeName(NativeNameType.EnumItem, "SpvOpSRem")] + [NativeName(NativeNameType.Value, "138")] + OpsRem = unchecked(138), + [NativeName(NativeNameType.EnumItem, "SpvOpSMod")] + [NativeName(NativeNameType.Value, "139")] + OpsMod = unchecked(139), + [NativeName(NativeNameType.EnumItem, "SpvOpFRem")] + [NativeName(NativeNameType.Value, "140")] + OpfRem = unchecked(140), + [NativeName(NativeNameType.EnumItem, "SpvOpFMod")] + [NativeName(NativeNameType.Value, "141")] + OpfMod = unchecked(141), + [NativeName(NativeNameType.EnumItem, "SpvOpVectorTimesScalar")] + [NativeName(NativeNameType.Value, "142")] + VectorTimesScalar = unchecked(142), + [NativeName(NativeNameType.EnumItem, "SpvOpMatrixTimesScalar")] + [NativeName(NativeNameType.Value, "143")] + MatrixTimesScalar = unchecked(143), + [NativeName(NativeNameType.EnumItem, "SpvOpVectorTimesMatrix")] + [NativeName(NativeNameType.Value, "144")] + VectorTimesMatrix = unchecked(144), + [NativeName(NativeNameType.EnumItem, "SpvOpMatrixTimesVector")] + [NativeName(NativeNameType.Value, "145")] + MatrixTimesVector = unchecked(145), + [NativeName(NativeNameType.EnumItem, "SpvOpMatrixTimesMatrix")] + [NativeName(NativeNameType.Value, "146")] + MatrixTimesMatrix = unchecked(146), + [NativeName(NativeNameType.EnumItem, "SpvOpOuterProduct")] + [NativeName(NativeNameType.Value, "147")] + OuterProduct = unchecked(147), + [NativeName(NativeNameType.EnumItem, "SpvOpDot")] + [NativeName(NativeNameType.Value, "148")] + Dot = unchecked(148), + [NativeName(NativeNameType.EnumItem, "SpvOpIAddCarry")] + [NativeName(NativeNameType.Value, "149")] + OpiAddCarry = unchecked(149), + [NativeName(NativeNameType.EnumItem, "SpvOpISubBorrow")] + [NativeName(NativeNameType.Value, "150")] + OpiSubBorrow = unchecked(150), + [NativeName(NativeNameType.EnumItem, "SpvOpUMulExtended")] + [NativeName(NativeNameType.Value, "151")] + OpuMulExtended = unchecked(151), + [NativeName(NativeNameType.EnumItem, "SpvOpSMulExtended")] + [NativeName(NativeNameType.Value, "152")] + OpsMulExtended = unchecked(152), + [NativeName(NativeNameType.EnumItem, "SpvOpAny")] + [NativeName(NativeNameType.Value, "154")] + Any = unchecked(154), + [NativeName(NativeNameType.EnumItem, "SpvOpAll")] + [NativeName(NativeNameType.Value, "155")] + All = unchecked(155), + [NativeName(NativeNameType.EnumItem, "SpvOpIsNan")] + [NativeName(NativeNameType.Value, "156")] + IsNan = unchecked(156), + [NativeName(NativeNameType.EnumItem, "SpvOpIsInf")] + [NativeName(NativeNameType.Value, "157")] + IsInf = unchecked(157), + [NativeName(NativeNameType.EnumItem, "SpvOpIsFinite")] + [NativeName(NativeNameType.Value, "158")] + IsFinite = unchecked(158), + [NativeName(NativeNameType.EnumItem, "SpvOpIsNormal")] + [NativeName(NativeNameType.Value, "159")] + IsNormal = unchecked(159), + [NativeName(NativeNameType.EnumItem, "SpvOpSignBitSet")] + [NativeName(NativeNameType.Value, "160")] + SignSet = unchecked(160), + [NativeName(NativeNameType.EnumItem, "SpvOpLessOrGreater")] + [NativeName(NativeNameType.Value, "161")] + LessOrGreater = unchecked(161), + [NativeName(NativeNameType.EnumItem, "SpvOpOrdered")] + [NativeName(NativeNameType.Value, "162")] + Ordered = unchecked(162), + [NativeName(NativeNameType.EnumItem, "SpvOpUnordered")] + [NativeName(NativeNameType.Value, "163")] + Unordered = unchecked(163), + [NativeName(NativeNameType.EnumItem, "SpvOpLogicalEqual")] + [NativeName(NativeNameType.Value, "164")] + LogicalEqual = unchecked(164), + [NativeName(NativeNameType.EnumItem, "SpvOpLogicalNotEqual")] + [NativeName(NativeNameType.Value, "165")] + LogicalNotEqual = unchecked(165), + [NativeName(NativeNameType.EnumItem, "SpvOpLogicalOr")] + [NativeName(NativeNameType.Value, "166")] + LogicalOr = unchecked(166), + [NativeName(NativeNameType.EnumItem, "SpvOpLogicalAnd")] + [NativeName(NativeNameType.Value, "167")] + LogicalAnd = unchecked(167), + [NativeName(NativeNameType.EnumItem, "SpvOpLogicalNot")] + [NativeName(NativeNameType.Value, "168")] + LogicalNot = unchecked(168), + [NativeName(NativeNameType.EnumItem, "SpvOpSelect")] + [NativeName(NativeNameType.Value, "169")] + Select = unchecked(169), + [NativeName(NativeNameType.EnumItem, "SpvOpIEqual")] + [NativeName(NativeNameType.Value, "170")] + OpiEqual = unchecked(170), + [NativeName(NativeNameType.EnumItem, "SpvOpINotEqual")] + [NativeName(NativeNameType.Value, "171")] + OpiNotEqual = unchecked(171), + [NativeName(NativeNameType.EnumItem, "SpvOpUGreaterThan")] + [NativeName(NativeNameType.Value, "172")] + OpuGreaterThan = unchecked(172), + [NativeName(NativeNameType.EnumItem, "SpvOpSGreaterThan")] + [NativeName(NativeNameType.Value, "173")] + OpsGreaterThan = unchecked(173), + [NativeName(NativeNameType.EnumItem, "SpvOpUGreaterThanEqual")] + [NativeName(NativeNameType.Value, "174")] + OpuGreaterThanEqual = unchecked(174), + [NativeName(NativeNameType.EnumItem, "SpvOpSGreaterThanEqual")] + [NativeName(NativeNameType.Value, "175")] + OpsGreaterThanEqual = unchecked(175), + [NativeName(NativeNameType.EnumItem, "SpvOpULessThan")] + [NativeName(NativeNameType.Value, "176")] + OpuLessThan = unchecked(176), + [NativeName(NativeNameType.EnumItem, "SpvOpSLessThan")] + [NativeName(NativeNameType.Value, "177")] + OpsLessThan = unchecked(177), + [NativeName(NativeNameType.EnumItem, "SpvOpULessThanEqual")] + [NativeName(NativeNameType.Value, "178")] + OpuLessThanEqual = unchecked(178), + [NativeName(NativeNameType.EnumItem, "SpvOpSLessThanEqual")] + [NativeName(NativeNameType.Value, "179")] + OpsLessThanEqual = unchecked(179), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdEqual")] + [NativeName(NativeNameType.Value, "180")] + OpfOrdEqual = unchecked(180), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordEqual")] + [NativeName(NativeNameType.Value, "181")] + OpfUnordEqual = unchecked(181), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdNotEqual")] + [NativeName(NativeNameType.Value, "182")] + OpfOrdNotEqual = unchecked(182), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordNotEqual")] + [NativeName(NativeNameType.Value, "183")] + OpfUnordNotEqual = unchecked(183), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdLessThan")] + [NativeName(NativeNameType.Value, "184")] + OpfOrdLessThan = unchecked(184), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordLessThan")] + [NativeName(NativeNameType.Value, "185")] + OpfUnordLessThan = unchecked(185), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdGreaterThan")] + [NativeName(NativeNameType.Value, "186")] + OpfOrdGreaterThan = unchecked(186), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordGreaterThan")] + [NativeName(NativeNameType.Value, "187")] + OpfUnordGreaterThan = unchecked(187), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdLessThanEqual")] + [NativeName(NativeNameType.Value, "188")] + OpfOrdLessThanEqual = unchecked(188), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordLessThanEqual")] + [NativeName(NativeNameType.Value, "189")] + OpfUnordLessThanEqual = unchecked(189), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdGreaterThanEqual")] + [NativeName(NativeNameType.Value, "190")] + OpfOrdGreaterThanEqual = unchecked(190), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordGreaterThanEqual")] + [NativeName(NativeNameType.Value, "191")] + OpfUnordGreaterThanEqual = unchecked(191), + [NativeName(NativeNameType.EnumItem, "SpvOpShiftRightLogical")] + [NativeName(NativeNameType.Value, "194")] + ShiftRightLogical = unchecked(194), + [NativeName(NativeNameType.EnumItem, "SpvOpShiftRightArithmetic")] + [NativeName(NativeNameType.Value, "195")] + ShiftRightArithmetic = unchecked(195), + [NativeName(NativeNameType.EnumItem, "SpvOpShiftLeftLogical")] + [NativeName(NativeNameType.Value, "196")] + ShiftLeftLogical = unchecked(196), + [NativeName(NativeNameType.EnumItem, "SpvOpBitwiseOr")] + [NativeName(NativeNameType.Value, "197")] + BitwiseOr = unchecked(197), + [NativeName(NativeNameType.EnumItem, "SpvOpBitwiseXor")] + [NativeName(NativeNameType.Value, "198")] + BitwiseXor = unchecked(198), + [NativeName(NativeNameType.EnumItem, "SpvOpBitwiseAnd")] + [NativeName(NativeNameType.Value, "199")] + BitwiseAnd = unchecked(199), + [NativeName(NativeNameType.EnumItem, "SpvOpNot")] + [NativeName(NativeNameType.Value, "200")] + Not = unchecked(200), + [NativeName(NativeNameType.EnumItem, "SpvOpBitFieldInsert")] + [NativeName(NativeNameType.Value, "201")] + FieldInsert = unchecked(201), + [NativeName(NativeNameType.EnumItem, "SpvOpBitFieldSExtract")] + [NativeName(NativeNameType.Value, "202")] + FieldsExtract = unchecked(202), + [NativeName(NativeNameType.EnumItem, "SpvOpBitFieldUExtract")] + [NativeName(NativeNameType.Value, "203")] + FielduExtract = unchecked(203), + [NativeName(NativeNameType.EnumItem, "SpvOpBitReverse")] + [NativeName(NativeNameType.Value, "204")] + Reverse = unchecked(204), + [NativeName(NativeNameType.EnumItem, "SpvOpBitCount")] + [NativeName(NativeNameType.Value, "205")] + Count = unchecked(205), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdx")] + [NativeName(NativeNameType.Value, "207")] + OpdPdx = unchecked(207), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdy")] + [NativeName(NativeNameType.Value, "208")] + OpdPdy = unchecked(208), + [NativeName(NativeNameType.EnumItem, "SpvOpFwidth")] + [NativeName(NativeNameType.Value, "209")] + Fwidth = unchecked(209), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdxFine")] + [NativeName(NativeNameType.Value, "210")] + OpdPdxFine = unchecked(210), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdyFine")] + [NativeName(NativeNameType.Value, "211")] + OpdPdyFine = unchecked(211), + [NativeName(NativeNameType.EnumItem, "SpvOpFwidthFine")] + [NativeName(NativeNameType.Value, "212")] + FwidthFine = unchecked(212), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdxCoarse")] + [NativeName(NativeNameType.Value, "213")] + OpdPdxCoarse = unchecked(213), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdyCoarse")] + [NativeName(NativeNameType.Value, "214")] + OpdPdyCoarse = unchecked(214), + [NativeName(NativeNameType.EnumItem, "SpvOpFwidthCoarse")] + [NativeName(NativeNameType.Value, "215")] + FwidthCoarse = unchecked(215), + [NativeName(NativeNameType.EnumItem, "SpvOpEmitVertex")] + [NativeName(NativeNameType.Value, "218")] + EmitVertex = unchecked(218), + [NativeName(NativeNameType.EnumItem, "SpvOpEndPrimitive")] + [NativeName(NativeNameType.Value, "219")] + EndPrimitive = unchecked(219), + [NativeName(NativeNameType.EnumItem, "SpvOpEmitStreamVertex")] + [NativeName(NativeNameType.Value, "220")] + EmitStreamVertex = unchecked(220), + [NativeName(NativeNameType.EnumItem, "SpvOpEndStreamPrimitive")] + [NativeName(NativeNameType.Value, "221")] + EndStreamPrimitive = unchecked(221), + [NativeName(NativeNameType.EnumItem, "SpvOpControlBarrier")] + [NativeName(NativeNameType.Value, "224")] + ControlBarrier = unchecked(224), + [NativeName(NativeNameType.EnumItem, "SpvOpMemoryBarrier")] + [NativeName(NativeNameType.Value, "225")] + MemoryBarrier = unchecked(225), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicLoad")] + [NativeName(NativeNameType.Value, "227")] + AtomicLoad = unchecked(227), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicStore")] + [NativeName(NativeNameType.Value, "228")] + AtomicStore = unchecked(228), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicExchange")] + [NativeName(NativeNameType.Value, "229")] + AtomicExchange = unchecked(229), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicCompareExchange")] + [NativeName(NativeNameType.Value, "230")] + AtomicCompareExchange = unchecked(230), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicCompareExchangeWeak")] + [NativeName(NativeNameType.Value, "231")] + AtomicCompareExchangeWeak = unchecked(231), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicIIncrement")] + [NativeName(NativeNameType.Value, "232")] + AtomiciIncrement = unchecked(232), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicIDecrement")] + [NativeName(NativeNameType.Value, "233")] + AtomiciDecrement = unchecked(233), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicIAdd")] + [NativeName(NativeNameType.Value, "234")] + AtomiciAdd = unchecked(234), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicISub")] + [NativeName(NativeNameType.Value, "235")] + AtomiciSub = unchecked(235), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicSMin")] + [NativeName(NativeNameType.Value, "236")] + AtomicsMin = unchecked(236), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicUMin")] + [NativeName(NativeNameType.Value, "237")] + AtomicuMin = unchecked(237), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicSMax")] + [NativeName(NativeNameType.Value, "238")] + AtomicsMax = unchecked(238), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicUMax")] + [NativeName(NativeNameType.Value, "239")] + AtomicuMax = unchecked(239), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicAnd")] + [NativeName(NativeNameType.Value, "240")] + AtomicAnd = unchecked(240), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicOr")] + [NativeName(NativeNameType.Value, "241")] + AtomicOr = unchecked(241), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicXor")] + [NativeName(NativeNameType.Value, "242")] + AtomicXor = unchecked(242), + [NativeName(NativeNameType.EnumItem, "SpvOpPhi")] + [NativeName(NativeNameType.Value, "245")] + Phi = unchecked(245), + [NativeName(NativeNameType.EnumItem, "SpvOpLoopMerge")] + [NativeName(NativeNameType.Value, "246")] + LoopMerge = unchecked(246), + [NativeName(NativeNameType.EnumItem, "SpvOpSelectionMerge")] + [NativeName(NativeNameType.Value, "247")] + SelectionMerge = unchecked(247), + [NativeName(NativeNameType.EnumItem, "SpvOpLabel")] + [NativeName(NativeNameType.Value, "248")] + Label = unchecked(248), + [NativeName(NativeNameType.EnumItem, "SpvOpBranch")] + [NativeName(NativeNameType.Value, "249")] + Branch = unchecked(249), + [NativeName(NativeNameType.EnumItem, "SpvOpBranchConditional")] + [NativeName(NativeNameType.Value, "250")] + BranchConditional = unchecked(250), + [NativeName(NativeNameType.EnumItem, "SpvOpSwitch")] + [NativeName(NativeNameType.Value, "251")] + Switch = unchecked(251), + [NativeName(NativeNameType.EnumItem, "SpvOpKill")] + [NativeName(NativeNameType.Value, "252")] + Kill = unchecked(252), + [NativeName(NativeNameType.EnumItem, "SpvOpReturn")] + [NativeName(NativeNameType.Value, "253")] + Return = unchecked(253), + [NativeName(NativeNameType.EnumItem, "SpvOpReturnValue")] + [NativeName(NativeNameType.Value, "254")] + ReturnValue = unchecked(254), + [NativeName(NativeNameType.EnumItem, "SpvOpUnreachable")] + [NativeName(NativeNameType.Value, "255")] + Unreachable = unchecked(255), + [NativeName(NativeNameType.EnumItem, "SpvOpLifetimeStart")] + [NativeName(NativeNameType.Value, "256")] + LifetimeStart = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvOpLifetimeStop")] + [NativeName(NativeNameType.Value, "257")] + LifetimeStop = unchecked(257), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupAsyncCopy")] + [NativeName(NativeNameType.Value, "259")] + GroupAsyncCopy = unchecked(259), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupWaitEvents")] + [NativeName(NativeNameType.Value, "260")] + GroupWaitEvents = unchecked(260), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupAll")] + [NativeName(NativeNameType.Value, "261")] + GroupAll = unchecked(261), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupAny")] + [NativeName(NativeNameType.Value, "262")] + GroupAny = unchecked(262), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupBroadcast")] + [NativeName(NativeNameType.Value, "263")] + GroupBroadcast = unchecked(263), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupIAdd")] + [NativeName(NativeNameType.Value, "264")] + GroupiAdd = unchecked(264), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFAdd")] + [NativeName(NativeNameType.Value, "265")] + GroupfAdd = unchecked(265), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMin")] + [NativeName(NativeNameType.Value, "266")] + GroupfMin = unchecked(266), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMin")] + [NativeName(NativeNameType.Value, "267")] + GroupuMin = unchecked(267), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMin")] + [NativeName(NativeNameType.Value, "268")] + GroupsMin = unchecked(268), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMax")] + [NativeName(NativeNameType.Value, "269")] + GroupfMax = unchecked(269), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMax")] + [NativeName(NativeNameType.Value, "270")] + GroupuMax = unchecked(270), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMax")] + [NativeName(NativeNameType.Value, "271")] + GroupsMax = unchecked(271), + [NativeName(NativeNameType.EnumItem, "SpvOpReadPipe")] + [NativeName(NativeNameType.Value, "274")] + ReadPipe = unchecked(274), + [NativeName(NativeNameType.EnumItem, "SpvOpWritePipe")] + [NativeName(NativeNameType.Value, "275")] + WritePipe = unchecked(275), + [NativeName(NativeNameType.EnumItem, "SpvOpReservedReadPipe")] + [NativeName(NativeNameType.Value, "276")] + ReservedReadPipe = unchecked(276), + [NativeName(NativeNameType.EnumItem, "SpvOpReservedWritePipe")] + [NativeName(NativeNameType.Value, "277")] + ReservedWritePipe = unchecked(277), + [NativeName(NativeNameType.EnumItem, "SpvOpReserveReadPipePackets")] + [NativeName(NativeNameType.Value, "278")] + ReserveReadPipePackets = unchecked(278), + [NativeName(NativeNameType.EnumItem, "SpvOpReserveWritePipePackets")] + [NativeName(NativeNameType.Value, "279")] + ReserveWritePipePackets = unchecked(279), + [NativeName(NativeNameType.EnumItem, "SpvOpCommitReadPipe")] + [NativeName(NativeNameType.Value, "280")] + CommitReadPipe = unchecked(280), + [NativeName(NativeNameType.EnumItem, "SpvOpCommitWritePipe")] + [NativeName(NativeNameType.Value, "281")] + CommitWritePipe = unchecked(281), + [NativeName(NativeNameType.EnumItem, "SpvOpIsValidReserveId")] + [NativeName(NativeNameType.Value, "282")] + IsValidReserveId = unchecked(282), + [NativeName(NativeNameType.EnumItem, "SpvOpGetNumPipePackets")] + [NativeName(NativeNameType.Value, "283")] + GetNumPipePackets = unchecked(283), + [NativeName(NativeNameType.EnumItem, "SpvOpGetMaxPipePackets")] + [NativeName(NativeNameType.Value, "284")] + GetMaxPipePackets = unchecked(284), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupReserveReadPipePackets")] + [NativeName(NativeNameType.Value, "285")] + GroupReserveReadPipePackets = unchecked(285), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupReserveWritePipePackets")] + [NativeName(NativeNameType.Value, "286")] + GroupReserveWritePipePackets = unchecked(286), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupCommitReadPipe")] + [NativeName(NativeNameType.Value, "287")] + GroupCommitReadPipe = unchecked(287), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupCommitWritePipe")] + [NativeName(NativeNameType.Value, "288")] + GroupCommitWritePipe = unchecked(288), + [NativeName(NativeNameType.EnumItem, "SpvOpEnqueueMarker")] + [NativeName(NativeNameType.Value, "291")] + EnqueueMarker = unchecked(291), + [NativeName(NativeNameType.EnumItem, "SpvOpEnqueueKernel")] + [NativeName(NativeNameType.Value, "292")] + EnqueueKernel = unchecked(292), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelNDrangeSubGroupCount")] + [NativeName(NativeNameType.Value, "293")] + GetKernelnDrangeSubGroupCount = unchecked(293), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelNDrangeMaxSubGroupSize")] + [NativeName(NativeNameType.Value, "294")] + GetKernelnDrangeMaxSubGroupSize = unchecked(294), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelWorkGroupSize")] + [NativeName(NativeNameType.Value, "295")] + GetKernelWorkGroupSize = unchecked(295), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelPreferredWorkGroupSizeMultiple")] + [NativeName(NativeNameType.Value, "296")] + GetKernelPreferredWorkGroupSizeMultiple = unchecked(296), + [NativeName(NativeNameType.EnumItem, "SpvOpRetainEvent")] + [NativeName(NativeNameType.Value, "297")] + RetainEvent = unchecked(297), + [NativeName(NativeNameType.EnumItem, "SpvOpReleaseEvent")] + [NativeName(NativeNameType.Value, "298")] + ReleaseEvent = unchecked(298), + [NativeName(NativeNameType.EnumItem, "SpvOpCreateUserEvent")] + [NativeName(NativeNameType.Value, "299")] + CreateUserEvent = unchecked(299), + [NativeName(NativeNameType.EnumItem, "SpvOpIsValidEvent")] + [NativeName(NativeNameType.Value, "300")] + IsValidEvent = unchecked(300), + [NativeName(NativeNameType.EnumItem, "SpvOpSetUserEventStatus")] + [NativeName(NativeNameType.Value, "301")] + SetUserEventStatus = unchecked(301), + [NativeName(NativeNameType.EnumItem, "SpvOpCaptureEventProfilingInfo")] + [NativeName(NativeNameType.Value, "302")] + CaptureEventProfilingInfo = unchecked(302), + [NativeName(NativeNameType.EnumItem, "SpvOpGetDefaultQueue")] + [NativeName(NativeNameType.Value, "303")] + GetDefaultQueue = unchecked(303), + [NativeName(NativeNameType.EnumItem, "SpvOpBuildNDRange")] + [NativeName(NativeNameType.Value, "304")] + BuildNdRange = unchecked(304), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleImplicitLod")] + [NativeName(NativeNameType.Value, "305")] + ImageSparseSampleImplicitLod = unchecked(305), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleExplicitLod")] + [NativeName(NativeNameType.Value, "306")] + ImageSparseSampleExplicitLod = unchecked(306), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleDrefImplicitLod")] + [NativeName(NativeNameType.Value, "307")] + ImageSparseSampleDrefImplicitLod = unchecked(307), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleDrefExplicitLod")] + [NativeName(NativeNameType.Value, "308")] + ImageSparseSampleDrefExplicitLod = unchecked(308), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjImplicitLod")] + [NativeName(NativeNameType.Value, "309")] + ImageSparseSampleProjImplicitLod = unchecked(309), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjExplicitLod")] + [NativeName(NativeNameType.Value, "310")] + ImageSparseSampleProjExplicitLod = unchecked(310), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjDrefImplicitLod")] + [NativeName(NativeNameType.Value, "311")] + ImageSparseSampleProjDrefImplicitLod = unchecked(311), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjDrefExplicitLod")] + [NativeName(NativeNameType.Value, "312")] + ImageSparseSampleProjDrefExplicitLod = unchecked(312), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseFetch")] + [NativeName(NativeNameType.Value, "313")] + ImageSparseFetch = unchecked(313), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseGather")] + [NativeName(NativeNameType.Value, "314")] + ImageSparseGather = unchecked(314), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseDrefGather")] + [NativeName(NativeNameType.Value, "315")] + ImageSparseDrefGather = unchecked(315), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseTexelsResident")] + [NativeName(NativeNameType.Value, "316")] + ImageSparseTexelsResident = unchecked(316), + [NativeName(NativeNameType.EnumItem, "SpvOpNoLine")] + [NativeName(NativeNameType.Value, "317")] + NoLine = unchecked(317), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFlagTestAndSet")] + [NativeName(NativeNameType.Value, "318")] + AtomicFlagTestAndSet = unchecked(318), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFlagClear")] + [NativeName(NativeNameType.Value, "319")] + AtomicFlagClear = unchecked(319), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseRead")] + [NativeName(NativeNameType.Value, "320")] + ImageSparseRead = unchecked(320), + [NativeName(NativeNameType.EnumItem, "SpvOpSizeOf")] + [NativeName(NativeNameType.Value, "321")] + SizeOf = unchecked(321), + [NativeName(NativeNameType.EnumItem, "SpvOpTypePipeStorage")] + [NativeName(NativeNameType.Value, "322")] + TypePipeStorage = unchecked(322), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantPipeStorage")] + [NativeName(NativeNameType.Value, "323")] + ConstantPipeStorage = unchecked(323), + [NativeName(NativeNameType.EnumItem, "SpvOpCreatePipeFromPipeStorage")] + [NativeName(NativeNameType.Value, "324")] + CreatePipeFromPipeStorage = unchecked(324), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelLocalSizeForSubgroupCount")] + [NativeName(NativeNameType.Value, "325")] + GetKernelLocalSizeForSubgroupCount = unchecked(325), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelMaxNumSubgroups")] + [NativeName(NativeNameType.Value, "326")] + GetKernelMaxNumSubgroups = unchecked(326), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeNamedBarrier")] + [NativeName(NativeNameType.Value, "327")] + TypeNamedBarrier = unchecked(327), + [NativeName(NativeNameType.EnumItem, "SpvOpNamedBarrierInitialize")] + [NativeName(NativeNameType.Value, "328")] + NamedBarrierInitialize = unchecked(328), + [NativeName(NativeNameType.EnumItem, "SpvOpMemoryNamedBarrier")] + [NativeName(NativeNameType.Value, "329")] + MemoryNamedBarrier = unchecked(329), + [NativeName(NativeNameType.EnumItem, "SpvOpModuleProcessed")] + [NativeName(NativeNameType.Value, "330")] + ModuleProcessed = unchecked(330), + [NativeName(NativeNameType.EnumItem, "SpvOpExecutionModeId")] + [NativeName(NativeNameType.Value, "331")] + ExecutionModeId = unchecked(331), + [NativeName(NativeNameType.EnumItem, "SpvOpDecorateId")] + [NativeName(NativeNameType.Value, "332")] + DecorateId = unchecked(332), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformElect")] + [NativeName(NativeNameType.Value, "333")] + GroupNonUniformElect = unchecked(333), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformAll")] + [NativeName(NativeNameType.Value, "334")] + GroupNonUniformAll = unchecked(334), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformAny")] + [NativeName(NativeNameType.Value, "335")] + GroupNonUniformAny = unchecked(335), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformAllEqual")] + [NativeName(NativeNameType.Value, "336")] + GroupNonUniformAllEqual = unchecked(336), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBroadcast")] + [NativeName(NativeNameType.Value, "337")] + GroupNonUniformBroadcast = unchecked(337), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBroadcastFirst")] + [NativeName(NativeNameType.Value, "338")] + GroupNonUniformBroadcastFirst = unchecked(338), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallot")] + [NativeName(NativeNameType.Value, "339")] + GroupNonUniformBallot = unchecked(339), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformInverseBallot")] + [NativeName(NativeNameType.Value, "340")] + GroupNonUniformInverseBallot = unchecked(340), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotBitExtract")] + [NativeName(NativeNameType.Value, "341")] + GroupNonUniformBallotExtract = unchecked(341), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotBitCount")] + [NativeName(NativeNameType.Value, "342")] + GroupNonUniformBallotCount = unchecked(342), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotFindLSB")] + [NativeName(NativeNameType.Value, "343")] + GroupNonUniformBallotFindLsb = unchecked(343), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotFindMSB")] + [NativeName(NativeNameType.Value, "344")] + GroupNonUniformBallotFindMsb = unchecked(344), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffle")] + [NativeName(NativeNameType.Value, "345")] + GroupNonUniformShuffle = unchecked(345), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffleXor")] + [NativeName(NativeNameType.Value, "346")] + GroupNonUniformShuffleXor = unchecked(346), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffleUp")] + [NativeName(NativeNameType.Value, "347")] + GroupNonUniformShuffleUp = unchecked(347), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffleDown")] + [NativeName(NativeNameType.Value, "348")] + GroupNonUniformShuffleDown = unchecked(348), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformIAdd")] + [NativeName(NativeNameType.Value, "349")] + GroupNonUniformiAdd = unchecked(349), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFAdd")] + [NativeName(NativeNameType.Value, "350")] + GroupNonUniformfAdd = unchecked(350), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformIMul")] + [NativeName(NativeNameType.Value, "351")] + GroupNonUniformiMul = unchecked(351), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFMul")] + [NativeName(NativeNameType.Value, "352")] + GroupNonUniformfMul = unchecked(352), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformSMin")] + [NativeName(NativeNameType.Value, "353")] + GroupNonUniformsMin = unchecked(353), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformUMin")] + [NativeName(NativeNameType.Value, "354")] + GroupNonUniformuMin = unchecked(354), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFMin")] + [NativeName(NativeNameType.Value, "355")] + GroupNonUniformfMin = unchecked(355), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformSMax")] + [NativeName(NativeNameType.Value, "356")] + GroupNonUniformsMax = unchecked(356), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformUMax")] + [NativeName(NativeNameType.Value, "357")] + GroupNonUniformuMax = unchecked(357), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFMax")] + [NativeName(NativeNameType.Value, "358")] + GroupNonUniformfMax = unchecked(358), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBitwiseAnd")] + [NativeName(NativeNameType.Value, "359")] + GroupNonUniformBitwiseAnd = unchecked(359), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBitwiseOr")] + [NativeName(NativeNameType.Value, "360")] + GroupNonUniformBitwiseOr = unchecked(360), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBitwiseXor")] + [NativeName(NativeNameType.Value, "361")] + GroupNonUniformBitwiseXor = unchecked(361), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformLogicalAnd")] + [NativeName(NativeNameType.Value, "362")] + GroupNonUniformLogicalAnd = unchecked(362), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformLogicalOr")] + [NativeName(NativeNameType.Value, "363")] + GroupNonUniformLogicalOr = unchecked(363), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformLogicalXor")] + [NativeName(NativeNameType.Value, "364")] + GroupNonUniformLogicalXor = unchecked(364), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformQuadBroadcast")] + [NativeName(NativeNameType.Value, "365")] + GroupNonUniformQuadBroadcast = unchecked(365), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformQuadSwap")] + [NativeName(NativeNameType.Value, "366")] + GroupNonUniformQuadSwap = unchecked(366), + [NativeName(NativeNameType.EnumItem, "SpvOpCopyLogical")] + [NativeName(NativeNameType.Value, "400")] + CopyLogical = unchecked(400), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrEqual")] + [NativeName(NativeNameType.Value, "401")] + PtrEqual = unchecked(401), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrNotEqual")] + [NativeName(NativeNameType.Value, "402")] + PtrNotEqual = unchecked(402), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrDiff")] + [NativeName(NativeNameType.Value, "403")] + PtrDiff = unchecked(403), + [NativeName(NativeNameType.EnumItem, "SpvOpTerminateInvocation")] + [NativeName(NativeNameType.Value, "4416")] + TerminateInvocation = unchecked(4416), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupBallotKHR")] + [NativeName(NativeNameType.Value, "4421")] + SubgroupBallotKhr = unchecked(4421), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupFirstInvocationKHR")] + [NativeName(NativeNameType.Value, "4422")] + SubgroupFirstInvocationKhr = unchecked(4422), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAllKHR")] + [NativeName(NativeNameType.Value, "4428")] + SubgroupAllKhr = unchecked(4428), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAnyKHR")] + [NativeName(NativeNameType.Value, "4429")] + SubgroupAnyKhr = unchecked(4429), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAllEqualKHR")] + [NativeName(NativeNameType.Value, "4430")] + SubgroupAllEqualKhr = unchecked(4430), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformRotateKHR")] + [NativeName(NativeNameType.Value, "4431")] + GroupNonUniformRotateKhr = unchecked(4431), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupReadInvocationKHR")] + [NativeName(NativeNameType.Value, "4432")] + SubgroupReadInvocationKhr = unchecked(4432), + [NativeName(NativeNameType.EnumItem, "SpvOpTraceRayKHR")] + [NativeName(NativeNameType.Value, "4445")] + TraceRayKhr = unchecked(4445), + [NativeName(NativeNameType.EnumItem, "SpvOpExecuteCallableKHR")] + [NativeName(NativeNameType.Value, "4446")] + ExecuteCallableKhr = unchecked(4446), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToAccelerationStructureKHR")] + [NativeName(NativeNameType.Value, "4447")] + ConvertuToAccelerationStructureKhr = unchecked(4447), + [NativeName(NativeNameType.EnumItem, "SpvOpIgnoreIntersectionKHR")] + [NativeName(NativeNameType.Value, "4448")] + IgnoreIntersectionKhr = unchecked(4448), + [NativeName(NativeNameType.EnumItem, "SpvOpTerminateRayKHR")] + [NativeName(NativeNameType.Value, "4449")] + TerminateRayKhr = unchecked(4449), + [NativeName(NativeNameType.EnumItem, "SpvOpSDot")] + [NativeName(NativeNameType.Value, "4450")] + OpsDot = unchecked(4450), + [NativeName(NativeNameType.EnumItem, "SpvOpSDotKHR")] + [NativeName(NativeNameType.Value, "4450")] + OpsDotKhr = unchecked(4450), + [NativeName(NativeNameType.EnumItem, "SpvOpUDot")] + [NativeName(NativeNameType.Value, "4451")] + OpuDot = unchecked(4451), + [NativeName(NativeNameType.EnumItem, "SpvOpUDotKHR")] + [NativeName(NativeNameType.Value, "4451")] + OpuDotKhr = unchecked(4451), + [NativeName(NativeNameType.EnumItem, "SpvOpSUDot")] + [NativeName(NativeNameType.Value, "4452")] + SuDot = unchecked(4452), + [NativeName(NativeNameType.EnumItem, "SpvOpSUDotKHR")] + [NativeName(NativeNameType.Value, "4452")] + SuDotKhr = unchecked(4452), + [NativeName(NativeNameType.EnumItem, "SpvOpSDotAccSat")] + [NativeName(NativeNameType.Value, "4453")] + OpsDotAccSat = unchecked(4453), + [NativeName(NativeNameType.EnumItem, "SpvOpSDotAccSatKHR")] + [NativeName(NativeNameType.Value, "4453")] + OpsDotAccSatKhr = unchecked(4453), + [NativeName(NativeNameType.EnumItem, "SpvOpUDotAccSat")] + [NativeName(NativeNameType.Value, "4454")] + OpuDotAccSat = unchecked(4454), + [NativeName(NativeNameType.EnumItem, "SpvOpUDotAccSatKHR")] + [NativeName(NativeNameType.Value, "4454")] + OpuDotAccSatKhr = unchecked(4454), + [NativeName(NativeNameType.EnumItem, "SpvOpSUDotAccSat")] + [NativeName(NativeNameType.Value, "4455")] + SuDotAccSat = unchecked(4455), + [NativeName(NativeNameType.EnumItem, "SpvOpSUDotAccSatKHR")] + [NativeName(NativeNameType.Value, "4455")] + SuDotAccSatKhr = unchecked(4455), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeRayQueryKHR")] + [NativeName(NativeNameType.Value, "4472")] + TypeRayQueryKhr = unchecked(4472), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryInitializeKHR")] + [NativeName(NativeNameType.Value, "4473")] + RayQueryInitializeKhr = unchecked(4473), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryTerminateKHR")] + [NativeName(NativeNameType.Value, "4474")] + RayQueryTerminateKhr = unchecked(4474), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGenerateIntersectionKHR")] + [NativeName(NativeNameType.Value, "4475")] + RayQueryGenerateIntersectionKhr = unchecked(4475), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryConfirmIntersectionKHR")] + [NativeName(NativeNameType.Value, "4476")] + RayQueryConfirmIntersectionKhr = unchecked(4476), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryProceedKHR")] + [NativeName(NativeNameType.Value, "4477")] + RayQueryProceedKhr = unchecked(4477), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionTypeKHR")] + [NativeName(NativeNameType.Value, "4479")] + RayQueryGetIntersectionTypeKhr = unchecked(4479), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupIAddNonUniformAMD")] + [NativeName(NativeNameType.Value, "5000")] + GroupiAddNonUniformAmd = unchecked(5000), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFAddNonUniformAMD")] + [NativeName(NativeNameType.Value, "5001")] + GroupfAddNonUniformAmd = unchecked(5001), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMinNonUniformAMD")] + [NativeName(NativeNameType.Value, "5002")] + GroupfMinNonUniformAmd = unchecked(5002), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMinNonUniformAMD")] + [NativeName(NativeNameType.Value, "5003")] + GroupuMinNonUniformAmd = unchecked(5003), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMinNonUniformAMD")] + [NativeName(NativeNameType.Value, "5004")] + GroupsMinNonUniformAmd = unchecked(5004), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMaxNonUniformAMD")] + [NativeName(NativeNameType.Value, "5005")] + GroupfMaxNonUniformAmd = unchecked(5005), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMaxNonUniformAMD")] + [NativeName(NativeNameType.Value, "5006")] + GroupuMaxNonUniformAmd = unchecked(5006), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMaxNonUniformAMD")] + [NativeName(NativeNameType.Value, "5007")] + GroupsMaxNonUniformAmd = unchecked(5007), + [NativeName(NativeNameType.EnumItem, "SpvOpFragmentMaskFetchAMD")] + [NativeName(NativeNameType.Value, "5011")] + FragmentMaskFetchAmd = unchecked(5011), + [NativeName(NativeNameType.EnumItem, "SpvOpFragmentFetchAMD")] + [NativeName(NativeNameType.Value, "5012")] + FragmentFetchAmd = unchecked(5012), + [NativeName(NativeNameType.EnumItem, "SpvOpReadClockKHR")] + [NativeName(NativeNameType.Value, "5056")] + ReadClockKhr = unchecked(5056), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleFootprintNV")] + [NativeName(NativeNameType.Value, "5283")] + ImageSampleFootprintNv = unchecked(5283), + [NativeName(NativeNameType.EnumItem, "SpvOpEmitMeshTasksEXT")] + [NativeName(NativeNameType.Value, "5294")] + EmitMeshTasksExt = unchecked(5294), + [NativeName(NativeNameType.EnumItem, "SpvOpSetMeshOutputsEXT")] + [NativeName(NativeNameType.Value, "5295")] + SetMeshOutputsExt = unchecked(5295), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformPartitionNV")] + [NativeName(NativeNameType.Value, "5296")] + GroupNonUniformPartitionNv = unchecked(5296), + [NativeName(NativeNameType.EnumItem, "SpvOpWritePackedPrimitiveIndices4x8NV")] + [NativeName(NativeNameType.Value, "5299")] + WritePackedPrimitiveIndices4X8Nv = unchecked(5299), + [NativeName(NativeNameType.EnumItem, "SpvOpReportIntersectionKHR")] + [NativeName(NativeNameType.Value, "5334")] + ReportIntersectionKhr = unchecked(5334), + [NativeName(NativeNameType.EnumItem, "SpvOpReportIntersectionNV")] + [NativeName(NativeNameType.Value, "5334")] + ReportIntersectionNv = unchecked(5334), + [NativeName(NativeNameType.EnumItem, "SpvOpIgnoreIntersectionNV")] + [NativeName(NativeNameType.Value, "5335")] + IgnoreIntersectionNv = unchecked(5335), + [NativeName(NativeNameType.EnumItem, "SpvOpTerminateRayNV")] + [NativeName(NativeNameType.Value, "5336")] + TerminateRayNv = unchecked(5336), + [NativeName(NativeNameType.EnumItem, "SpvOpTraceNV")] + [NativeName(NativeNameType.Value, "5337")] + TraceNv = unchecked(5337), + [NativeName(NativeNameType.EnumItem, "SpvOpTraceMotionNV")] + [NativeName(NativeNameType.Value, "5338")] + TraceMotionNv = unchecked(5338), + [NativeName(NativeNameType.EnumItem, "SpvOpTraceRayMotionNV")] + [NativeName(NativeNameType.Value, "5339")] + TraceRayMotionNv = unchecked(5339), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAccelerationStructureKHR")] + [NativeName(NativeNameType.Value, "5341")] + TypeAccelerationStructureKhr = unchecked(5341), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAccelerationStructureNV")] + [NativeName(NativeNameType.Value, "5341")] + TypeAccelerationStructureNv = unchecked(5341), + [NativeName(NativeNameType.EnumItem, "SpvOpExecuteCallableNV")] + [NativeName(NativeNameType.Value, "5344")] + ExecuteCallableNv = unchecked(5344), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeCooperativeMatrixNV")] + [NativeName(NativeNameType.Value, "5358")] + TypeCooperativeMatrixNv = unchecked(5358), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixLoadNV")] + [NativeName(NativeNameType.Value, "5359")] + CooperativeMatrixLoadNv = unchecked(5359), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixStoreNV")] + [NativeName(NativeNameType.Value, "5360")] + CooperativeMatrixStoreNv = unchecked(5360), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixMulAddNV")] + [NativeName(NativeNameType.Value, "5361")] + CooperativeMatrixMulAddNv = unchecked(5361), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixLengthNV")] + [NativeName(NativeNameType.Value, "5362")] + CooperativeMatrixLengthNv = unchecked(5362), + [NativeName(NativeNameType.EnumItem, "SpvOpBeginInvocationInterlockEXT")] + [NativeName(NativeNameType.Value, "5364")] + BeginInvocationInterlockExt = unchecked(5364), + [NativeName(NativeNameType.EnumItem, "SpvOpEndInvocationInterlockEXT")] + [NativeName(NativeNameType.Value, "5365")] + EndInvocationInterlockExt = unchecked(5365), + [NativeName(NativeNameType.EnumItem, "SpvOpDemoteToHelperInvocation")] + [NativeName(NativeNameType.Value, "5380")] + DemoteToHelperInvocation = unchecked(5380), + [NativeName(NativeNameType.EnumItem, "SpvOpDemoteToHelperInvocationEXT")] + [NativeName(NativeNameType.Value, "5380")] + DemoteToHelperInvocationExt = unchecked(5380), + [NativeName(NativeNameType.EnumItem, "SpvOpIsHelperInvocationEXT")] + [NativeName(NativeNameType.Value, "5381")] + IsHelperInvocationExt = unchecked(5381), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToImageNV")] + [NativeName(NativeNameType.Value, "5391")] + ConvertuToImageNv = unchecked(5391), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToSamplerNV")] + [NativeName(NativeNameType.Value, "5392")] + ConvertuToSamplerNv = unchecked(5392), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertImageToUNV")] + [NativeName(NativeNameType.Value, "5393")] + ConvertImageToUnv = unchecked(5393), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertSamplerToUNV")] + [NativeName(NativeNameType.Value, "5394")] + ConvertSamplerToUnv = unchecked(5394), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToSampledImageNV")] + [NativeName(NativeNameType.Value, "5395")] + ConvertuToSampledImageNv = unchecked(5395), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertSampledImageToUNV")] + [NativeName(NativeNameType.Value, "5396")] + ConvertSampledImageToUnv = unchecked(5396), + [NativeName(NativeNameType.EnumItem, "SpvOpSamplerImageAddressingModeNV")] + [NativeName(NativeNameType.Value, "5397")] + SamplerImageAddressingModeNv = unchecked(5397), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleINTEL")] + [NativeName(NativeNameType.Value, "5571")] + SubgroupShuffleIntel = unchecked(5571), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleDownINTEL")] + [NativeName(NativeNameType.Value, "5572")] + SubgroupShuffleDownIntel = unchecked(5572), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleUpINTEL")] + [NativeName(NativeNameType.Value, "5573")] + SubgroupShuffleUpIntel = unchecked(5573), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleXorINTEL")] + [NativeName(NativeNameType.Value, "5574")] + SubgroupShuffleXorIntel = unchecked(5574), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupBlockReadINTEL")] + [NativeName(NativeNameType.Value, "5575")] + SubgroupBlockReadIntel = unchecked(5575), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupBlockWriteINTEL")] + [NativeName(NativeNameType.Value, "5576")] + SubgroupBlockWriteIntel = unchecked(5576), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageBlockReadINTEL")] + [NativeName(NativeNameType.Value, "5577")] + SubgroupImageBlockReadIntel = unchecked(5577), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageBlockWriteINTEL")] + [NativeName(NativeNameType.Value, "5578")] + SubgroupImageBlockWriteIntel = unchecked(5578), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageMediaBlockReadINTEL")] + [NativeName(NativeNameType.Value, "5580")] + SubgroupImageMediaBlockReadIntel = unchecked(5580), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageMediaBlockWriteINTEL")] + [NativeName(NativeNameType.Value, "5581")] + SubgroupImageMediaBlockWriteIntel = unchecked(5581), + [NativeName(NativeNameType.EnumItem, "SpvOpUCountLeadingZerosINTEL")] + [NativeName(NativeNameType.Value, "5585")] + OpuCountLeadingZerosIntel = unchecked(5585), + [NativeName(NativeNameType.EnumItem, "SpvOpUCountTrailingZerosINTEL")] + [NativeName(NativeNameType.Value, "5586")] + OpuCountTrailingZerosIntel = unchecked(5586), + [NativeName(NativeNameType.EnumItem, "SpvOpAbsISubINTEL")] + [NativeName(NativeNameType.Value, "5587")] + AbsiSubIntel = unchecked(5587), + [NativeName(NativeNameType.EnumItem, "SpvOpAbsUSubINTEL")] + [NativeName(NativeNameType.Value, "5588")] + AbsuSubIntel = unchecked(5588), + [NativeName(NativeNameType.EnumItem, "SpvOpIAddSatINTEL")] + [NativeName(NativeNameType.Value, "5589")] + OpiAddSatIntel = unchecked(5589), + [NativeName(NativeNameType.EnumItem, "SpvOpUAddSatINTEL")] + [NativeName(NativeNameType.Value, "5590")] + OpuAddSatIntel = unchecked(5590), + [NativeName(NativeNameType.EnumItem, "SpvOpIAverageINTEL")] + [NativeName(NativeNameType.Value, "5591")] + OpiAverageIntel = unchecked(5591), + [NativeName(NativeNameType.EnumItem, "SpvOpUAverageINTEL")] + [NativeName(NativeNameType.Value, "5592")] + OpuAverageIntel = unchecked(5592), + [NativeName(NativeNameType.EnumItem, "SpvOpIAverageRoundedINTEL")] + [NativeName(NativeNameType.Value, "5593")] + OpiAverageRoundedIntel = unchecked(5593), + [NativeName(NativeNameType.EnumItem, "SpvOpUAverageRoundedINTEL")] + [NativeName(NativeNameType.Value, "5594")] + OpuAverageRoundedIntel = unchecked(5594), + [NativeName(NativeNameType.EnumItem, "SpvOpISubSatINTEL")] + [NativeName(NativeNameType.Value, "5595")] + OpiSubSatIntel = unchecked(5595), + [NativeName(NativeNameType.EnumItem, "SpvOpUSubSatINTEL")] + [NativeName(NativeNameType.Value, "5596")] + OpuSubSatIntel = unchecked(5596), + [NativeName(NativeNameType.EnumItem, "SpvOpIMul32x16INTEL")] + [NativeName(NativeNameType.Value, "5597")] + OpiMul32x16Intel = unchecked(5597), + [NativeName(NativeNameType.EnumItem, "SpvOpUMul32x16INTEL")] + [NativeName(NativeNameType.Value, "5598")] + OpuMul32x16Intel = unchecked(5598), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantFunctionPointerINTEL")] + [NativeName(NativeNameType.Value, "5600")] + ConstantFunctionPointerIntel = unchecked(5600), + [NativeName(NativeNameType.EnumItem, "SpvOpFunctionPointerCallINTEL")] + [NativeName(NativeNameType.Value, "5601")] + FunctionPointerCallIntel = unchecked(5601), + [NativeName(NativeNameType.EnumItem, "SpvOpAsmTargetINTEL")] + [NativeName(NativeNameType.Value, "5609")] + AsmTargetIntel = unchecked(5609), + [NativeName(NativeNameType.EnumItem, "SpvOpAsmINTEL")] + [NativeName(NativeNameType.Value, "5610")] + AsmIntel = unchecked(5610), + [NativeName(NativeNameType.EnumItem, "SpvOpAsmCallINTEL")] + [NativeName(NativeNameType.Value, "5611")] + AsmCallIntel = unchecked(5611), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFMinEXT")] + [NativeName(NativeNameType.Value, "5614")] + AtomicfMinExt = unchecked(5614), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFMaxEXT")] + [NativeName(NativeNameType.Value, "5615")] + AtomicfMaxExt = unchecked(5615), + [NativeName(NativeNameType.EnumItem, "SpvOpAssumeTrueKHR")] + [NativeName(NativeNameType.Value, "5630")] + AssumeTrueKhr = unchecked(5630), + [NativeName(NativeNameType.EnumItem, "SpvOpExpectKHR")] + [NativeName(NativeNameType.Value, "5631")] + ExpectKhr = unchecked(5631), + [NativeName(NativeNameType.EnumItem, "SpvOpDecorateString")] + [NativeName(NativeNameType.Value, "5632")] + DecorateString = unchecked(5632), + [NativeName(NativeNameType.EnumItem, "SpvOpDecorateStringGOOGLE")] + [NativeName(NativeNameType.Value, "5632")] + DecorateStringGoogle = unchecked(5632), + [NativeName(NativeNameType.EnumItem, "SpvOpMemberDecorateString")] + [NativeName(NativeNameType.Value, "5633")] + MemberDecorateString = unchecked(5633), + [NativeName(NativeNameType.EnumItem, "SpvOpMemberDecorateStringGOOGLE")] + [NativeName(NativeNameType.Value, "5633")] + MemberDecorateStringGoogle = unchecked(5633), + [NativeName(NativeNameType.EnumItem, "SpvOpVmeImageINTEL")] + [NativeName(NativeNameType.Value, "5699")] + VmeImageIntel = unchecked(5699), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeVmeImageINTEL")] + [NativeName(NativeNameType.Value, "5700")] + TypeVmeImageIntel = unchecked(5700), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImePayloadINTEL")] + [NativeName(NativeNameType.Value, "5701")] + TypeAvcImePayloadIntel = unchecked(5701), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcRefPayloadINTEL")] + [NativeName(NativeNameType.Value, "5702")] + TypeAvcRefPayloadIntel = unchecked(5702), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcSicPayloadINTEL")] + [NativeName(NativeNameType.Value, "5703")] + TypeAvcSicPayloadIntel = unchecked(5703), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcMcePayloadINTEL")] + [NativeName(NativeNameType.Value, "5704")] + TypeAvcMcePayloadIntel = unchecked(5704), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcMceResultINTEL")] + [NativeName(NativeNameType.Value, "5705")] + TypeAvcMceResultIntel = unchecked(5705), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeResultINTEL")] + [NativeName(NativeNameType.Value, "5706")] + TypeAvcImeResultIntel = unchecked(5706), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeResultSingleReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5707")] + TypeAvcImeResultSingleReferenceStreamoutIntel = unchecked(5707), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeResultDualReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5708")] + TypeAvcImeResultDualReferenceStreamoutIntel = unchecked(5708), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeSingleReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5709")] + TypeAvcImeSingleReferenceStreaminIntel = unchecked(5709), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeDualReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5710")] + TypeAvcImeDualReferenceStreaminIntel = unchecked(5710), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcRefResultINTEL")] + [NativeName(NativeNameType.Value, "5711")] + TypeAvcRefResultIntel = unchecked(5711), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcSicResultINTEL")] + [NativeName(NativeNameType.Value, "5712")] + TypeAvcSicResultIntel = unchecked(5712), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5713")] + SubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyIntel = unchecked(5713), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5714")] + SubgroupAvcMceSetInterBaseMultiReferencePenaltyIntel = unchecked(5714), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5715")] + SubgroupAvcMceGetDefaultInterShapePenaltyIntel = unchecked(5715), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetInterShapePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5716")] + SubgroupAvcMceSetInterShapePenaltyIntel = unchecked(5716), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL")] + [NativeName(NativeNameType.Value, "5717")] + SubgroupAvcMceGetDefaultInterDirectionPenaltyIntel = unchecked(5717), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetInterDirectionPenaltyINTEL")] + [NativeName(NativeNameType.Value, "5718")] + SubgroupAvcMceSetInterDirectionPenaltyIntel = unchecked(5718), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5719")] + SubgroupAvcMceGetDefaultIntraLumaShapePenaltyIntel = unchecked(5719), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL")] + [NativeName(NativeNameType.Value, "5720")] + SubgroupAvcMceGetDefaultInterMotionVectorCostTableIntel = unchecked(5720), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL")] + [NativeName(NativeNameType.Value, "5721")] + SubgroupAvcMceGetDefaultHighPenaltyCostTableIntel = unchecked(5721), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL")] + [NativeName(NativeNameType.Value, "5722")] + SubgroupAvcMceGetDefaultMediumPenaltyCostTableIntel = unchecked(5722), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL")] + [NativeName(NativeNameType.Value, "5723")] + SubgroupAvcMceGetDefaultLowPenaltyCostTableIntel = unchecked(5723), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetMotionVectorCostFunctionINTEL")] + [NativeName(NativeNameType.Value, "5724")] + SubgroupAvcMceSetMotionVectorCostFunctionIntel = unchecked(5724), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5725")] + SubgroupAvcMceGetDefaultIntraLumaModePenaltyIntel = unchecked(5725), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL")] + [NativeName(NativeNameType.Value, "5726")] + SubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyIntel = unchecked(5726), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5727")] + SubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyIntel = unchecked(5727), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetAcOnlyHaarINTEL")] + [NativeName(NativeNameType.Value, "5728")] + SubgroupAvcMceSetAcOnlyHaarIntel = unchecked(5728), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL")] + [NativeName(NativeNameType.Value, "5729")] + SubgroupAvcMceSetSourceInterlacedFieldPolarityIntel = unchecked(5729), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL")] + [NativeName(NativeNameType.Value, "5730")] + SubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityIntel = unchecked(5730), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL")] + [NativeName(NativeNameType.Value, "5731")] + SubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesIntel = unchecked(5731), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToImePayloadINTEL")] + [NativeName(NativeNameType.Value, "5732")] + SubgroupAvcMceConvertToImePayloadIntel = unchecked(5732), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToImeResultINTEL")] + [NativeName(NativeNameType.Value, "5733")] + SubgroupAvcMceConvertToImeResultIntel = unchecked(5733), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToRefPayloadINTEL")] + [NativeName(NativeNameType.Value, "5734")] + SubgroupAvcMceConvertToRefPayloadIntel = unchecked(5734), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToRefResultINTEL")] + [NativeName(NativeNameType.Value, "5735")] + SubgroupAvcMceConvertToRefResultIntel = unchecked(5735), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToSicPayloadINTEL")] + [NativeName(NativeNameType.Value, "5736")] + SubgroupAvcMceConvertToSicPayloadIntel = unchecked(5736), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToSicResultINTEL")] + [NativeName(NativeNameType.Value, "5737")] + SubgroupAvcMceConvertToSicResultIntel = unchecked(5737), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetMotionVectorsINTEL")] + [NativeName(NativeNameType.Value, "5738")] + SubgroupAvcMceGetMotionVectorsIntel = unchecked(5738), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterDistortionsINTEL")] + [NativeName(NativeNameType.Value, "5739")] + SubgroupAvcMceGetInterDistortionsIntel = unchecked(5739), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetBestInterDistortionsINTEL")] + [NativeName(NativeNameType.Value, "5740")] + SubgroupAvcMceGetBestInterDistortionsIntel = unchecked(5740), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterMajorShapeINTEL")] + [NativeName(NativeNameType.Value, "5741")] + SubgroupAvcMceGetInterMajorShapeIntel = unchecked(5741), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterMinorShapeINTEL")] + [NativeName(NativeNameType.Value, "5742")] + SubgroupAvcMceGetInterMinorShapeIntel = unchecked(5742), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterDirectionsINTEL")] + [NativeName(NativeNameType.Value, "5743")] + SubgroupAvcMceGetInterDirectionsIntel = unchecked(5743), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterMotionVectorCountINTEL")] + [NativeName(NativeNameType.Value, "5744")] + SubgroupAvcMceGetInterMotionVectorCountIntel = unchecked(5744), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterReferenceIdsINTEL")] + [NativeName(NativeNameType.Value, "5745")] + SubgroupAvcMceGetInterReferenceIdsIntel = unchecked(5745), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL")] + [NativeName(NativeNameType.Value, "5746")] + SubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesIntel = unchecked(5746), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeInitializeINTEL")] + [NativeName(NativeNameType.Value, "5747")] + SubgroupAvcImeInitializeIntel = unchecked(5747), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetSingleReferenceINTEL")] + [NativeName(NativeNameType.Value, "5748")] + SubgroupAvcImeSetSingleReferenceIntel = unchecked(5748), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetDualReferenceINTEL")] + [NativeName(NativeNameType.Value, "5749")] + SubgroupAvcImeSetDualReferenceIntel = unchecked(5749), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeRefWindowSizeINTEL")] + [NativeName(NativeNameType.Value, "5750")] + SubgroupAvcImeRefWindowSizeIntel = unchecked(5750), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeAdjustRefOffsetINTEL")] + [NativeName(NativeNameType.Value, "5751")] + SubgroupAvcImeAdjustRefOffsetIntel = unchecked(5751), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeConvertToMcePayloadINTEL")] + [NativeName(NativeNameType.Value, "5752")] + SubgroupAvcImeConvertToMcePayloadIntel = unchecked(5752), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetMaxMotionVectorCountINTEL")] + [NativeName(NativeNameType.Value, "5753")] + SubgroupAvcImeSetMaxMotionVectorCountIntel = unchecked(5753), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetUnidirectionalMixDisableINTEL")] + [NativeName(NativeNameType.Value, "5754")] + SubgroupAvcImeSetUnidirectionalMixDisableIntel = unchecked(5754), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL")] + [NativeName(NativeNameType.Value, "5755")] + SubgroupAvcImeSetEarlySearchTerminationThresholdIntel = unchecked(5755), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetWeightedSadINTEL")] + [NativeName(NativeNameType.Value, "5756")] + SubgroupAvcImeSetWeightedSadIntel = unchecked(5756), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceINTEL")] + [NativeName(NativeNameType.Value, "5757")] + SubgroupAvcImeEvaluateWithSingleReferenceIntel = unchecked(5757), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceINTEL")] + [NativeName(NativeNameType.Value, "5758")] + SubgroupAvcImeEvaluateWithDualReferenceIntel = unchecked(5758), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5759")] + SubgroupAvcImeEvaluateWithSingleReferenceStreaminIntel = unchecked(5759), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5760")] + SubgroupAvcImeEvaluateWithDualReferenceStreaminIntel = unchecked(5760), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5761")] + SubgroupAvcImeEvaluateWithSingleReferenceStreamoutIntel = unchecked(5761), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5762")] + SubgroupAvcImeEvaluateWithDualReferenceStreamoutIntel = unchecked(5762), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL")] + [NativeName(NativeNameType.Value, "5763")] + SubgroupAvcImeEvaluateWithSingleReferenceStreaminoutIntel = unchecked(5763), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL")] + [NativeName(NativeNameType.Value, "5764")] + SubgroupAvcImeEvaluateWithDualReferenceStreaminoutIntel = unchecked(5764), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeConvertToMceResultINTEL")] + [NativeName(NativeNameType.Value, "5765")] + SubgroupAvcImeConvertToMceResultIntel = unchecked(5765), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetSingleReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5766")] + SubgroupAvcImeGetSingleReferenceStreaminIntel = unchecked(5766), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetDualReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5767")] + SubgroupAvcImeGetDualReferenceStreaminIntel = unchecked(5767), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeStripSingleReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5768")] + SubgroupAvcImeStripSingleReferenceStreamoutIntel = unchecked(5768), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeStripDualReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5769")] + SubgroupAvcImeStripDualReferenceStreamoutIntel = unchecked(5769), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL")] + [NativeName(NativeNameType.Value, "5770")] + SubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsIntel = unchecked(5770), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL")] + [NativeName(NativeNameType.Value, "5771")] + SubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsIntel = unchecked(5771), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL")] + [NativeName(NativeNameType.Value, "5772")] + SubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsIntel = unchecked(5772), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL")] + [NativeName(NativeNameType.Value, "5773")] + SubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsIntel = unchecked(5773), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL")] + [NativeName(NativeNameType.Value, "5774")] + SubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsIntel = unchecked(5774), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL")] + [NativeName(NativeNameType.Value, "5775")] + SubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsIntel = unchecked(5775), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetBorderReachedINTEL")] + [NativeName(NativeNameType.Value, "5776")] + SubgroupAvcImeGetBorderReachedIntel = unchecked(5776), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetTruncatedSearchIndicationINTEL")] + [NativeName(NativeNameType.Value, "5777")] + SubgroupAvcImeGetTruncatedSearchIndicationIntel = unchecked(5777), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL")] + [NativeName(NativeNameType.Value, "5778")] + SubgroupAvcImeGetUnidirectionalEarlySearchTerminationIntel = unchecked(5778), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL")] + [NativeName(NativeNameType.Value, "5779")] + SubgroupAvcImeGetWeightingPatternMinimumMotionVectorIntel = unchecked(5779), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL")] + [NativeName(NativeNameType.Value, "5780")] + SubgroupAvcImeGetWeightingPatternMinimumDistortionIntel = unchecked(5780), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcFmeInitializeINTEL")] + [NativeName(NativeNameType.Value, "5781")] + SubgroupAvcFmeInitializeIntel = unchecked(5781), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcBmeInitializeINTEL")] + [NativeName(NativeNameType.Value, "5782")] + SubgroupAvcBmeInitializeIntel = unchecked(5782), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefConvertToMcePayloadINTEL")] + [NativeName(NativeNameType.Value, "5783")] + SubgroupAvcRefConvertToMcePayloadIntel = unchecked(5783), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefSetBidirectionalMixDisableINTEL")] + [NativeName(NativeNameType.Value, "5784")] + SubgroupAvcRefSetBidirectionalMixDisableIntel = unchecked(5784), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefSetBilinearFilterEnableINTEL")] + [NativeName(NativeNameType.Value, "5785")] + SubgroupAvcRefSetBilinearFilterEnableIntel = unchecked(5785), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithSingleReferenceINTEL")] + [NativeName(NativeNameType.Value, "5786")] + SubgroupAvcRefEvaluateWithSingleReferenceIntel = unchecked(5786), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithDualReferenceINTEL")] + [NativeName(NativeNameType.Value, "5787")] + SubgroupAvcRefEvaluateWithDualReferenceIntel = unchecked(5787), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithMultiReferenceINTEL")] + [NativeName(NativeNameType.Value, "5788")] + SubgroupAvcRefEvaluateWithMultiReferenceIntel = unchecked(5788), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL")] + [NativeName(NativeNameType.Value, "5789")] + SubgroupAvcRefEvaluateWithMultiReferenceInterlacedIntel = unchecked(5789), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefConvertToMceResultINTEL")] + [NativeName(NativeNameType.Value, "5790")] + SubgroupAvcRefConvertToMceResultIntel = unchecked(5790), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicInitializeINTEL")] + [NativeName(NativeNameType.Value, "5791")] + SubgroupAvcSicInitializeIntel = unchecked(5791), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConfigureSkcINTEL")] + [NativeName(NativeNameType.Value, "5792")] + SubgroupAvcSicConfigureSkcIntel = unchecked(5792), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConfigureIpeLumaINTEL")] + [NativeName(NativeNameType.Value, "5793")] + SubgroupAvcSicConfigureIpeLumaIntel = unchecked(5793), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConfigureIpeLumaChromaINTEL")] + [NativeName(NativeNameType.Value, "5794")] + SubgroupAvcSicConfigureIpeLumaChromaIntel = unchecked(5794), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetMotionVectorMaskINTEL")] + [NativeName(NativeNameType.Value, "5795")] + SubgroupAvcSicGetMotionVectorMaskIntel = unchecked(5795), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConvertToMcePayloadINTEL")] + [NativeName(NativeNameType.Value, "5796")] + SubgroupAvcSicConvertToMcePayloadIntel = unchecked(5796), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5797")] + SubgroupAvcSicSetIntraLumaShapePenaltyIntel = unchecked(5797), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL")] + [NativeName(NativeNameType.Value, "5798")] + SubgroupAvcSicSetIntraLumaModeCostFunctionIntel = unchecked(5798), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL")] + [NativeName(NativeNameType.Value, "5799")] + SubgroupAvcSicSetIntraChromaModeCostFunctionIntel = unchecked(5799), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetBilinearFilterEnableINTEL")] + [NativeName(NativeNameType.Value, "5800")] + SubgroupAvcSicSetBilinearFilterEnableIntel = unchecked(5800), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetSkcForwardTransformEnableINTEL")] + [NativeName(NativeNameType.Value, "5801")] + SubgroupAvcSicSetSkcForwardTransformEnableIntel = unchecked(5801), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL")] + [NativeName(NativeNameType.Value, "5802")] + SubgroupAvcSicSetBlockBasedRawSkipSadIntel = unchecked(5802), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateIpeINTEL")] + [NativeName(NativeNameType.Value, "5803")] + SubgroupAvcSicEvaluateIpeIntel = unchecked(5803), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithSingleReferenceINTEL")] + [NativeName(NativeNameType.Value, "5804")] + SubgroupAvcSicEvaluateWithSingleReferenceIntel = unchecked(5804), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithDualReferenceINTEL")] + [NativeName(NativeNameType.Value, "5805")] + SubgroupAvcSicEvaluateWithDualReferenceIntel = unchecked(5805), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithMultiReferenceINTEL")] + [NativeName(NativeNameType.Value, "5806")] + SubgroupAvcSicEvaluateWithMultiReferenceIntel = unchecked(5806), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL")] + [NativeName(NativeNameType.Value, "5807")] + SubgroupAvcSicEvaluateWithMultiReferenceInterlacedIntel = unchecked(5807), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConvertToMceResultINTEL")] + [NativeName(NativeNameType.Value, "5808")] + SubgroupAvcSicConvertToMceResultIntel = unchecked(5808), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetIpeLumaShapeINTEL")] + [NativeName(NativeNameType.Value, "5809")] + SubgroupAvcSicGetIpeLumaShapeIntel = unchecked(5809), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetBestIpeLumaDistortionINTEL")] + [NativeName(NativeNameType.Value, "5810")] + SubgroupAvcSicGetBestIpeLumaDistortionIntel = unchecked(5810), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetBestIpeChromaDistortionINTEL")] + [NativeName(NativeNameType.Value, "5811")] + SubgroupAvcSicGetBestIpeChromaDistortionIntel = unchecked(5811), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetPackedIpeLumaModesINTEL")] + [NativeName(NativeNameType.Value, "5812")] + SubgroupAvcSicGetPackedIpeLumaModesIntel = unchecked(5812), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetIpeChromaModeINTEL")] + [NativeName(NativeNameType.Value, "5813")] + SubgroupAvcSicGetIpeChromaModeIntel = unchecked(5813), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL")] + [NativeName(NativeNameType.Value, "5814")] + SubgroupAvcSicGetPackedSkcLumaCountThresholdIntel = unchecked(5814), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL")] + [NativeName(NativeNameType.Value, "5815")] + SubgroupAvcSicGetPackedSkcLumaSumThresholdIntel = unchecked(5815), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetInterRawSadsINTEL")] + [NativeName(NativeNameType.Value, "5816")] + SubgroupAvcSicGetInterRawSadsIntel = unchecked(5816), + [NativeName(NativeNameType.EnumItem, "SpvOpVariableLengthArrayINTEL")] + [NativeName(NativeNameType.Value, "5818")] + VariableLengthArrayIntel = unchecked(5818), + [NativeName(NativeNameType.EnumItem, "SpvOpSaveMemoryINTEL")] + [NativeName(NativeNameType.Value, "5819")] + SaveMemoryIntel = unchecked(5819), + [NativeName(NativeNameType.EnumItem, "SpvOpRestoreMemoryINTEL")] + [NativeName(NativeNameType.Value, "5820")] + RestoreMemoryIntel = unchecked(5820), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinCosPiINTEL")] + [NativeName(NativeNameType.Value, "5840")] + ArbitraryFloatSinCosPiIntel = unchecked(5840), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCastINTEL")] + [NativeName(NativeNameType.Value, "5841")] + ArbitraryFloatCastIntel = unchecked(5841), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCastFromIntINTEL")] + [NativeName(NativeNameType.Value, "5842")] + ArbitraryFloatCastFromIntIntel = unchecked(5842), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCastToIntINTEL")] + [NativeName(NativeNameType.Value, "5843")] + ArbitraryFloatCastToIntIntel = unchecked(5843), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatAddINTEL")] + [NativeName(NativeNameType.Value, "5846")] + ArbitraryFloatAddIntel = unchecked(5846), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSubINTEL")] + [NativeName(NativeNameType.Value, "5847")] + ArbitraryFloatSubIntel = unchecked(5847), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatMulINTEL")] + [NativeName(NativeNameType.Value, "5848")] + ArbitraryFloatMulIntel = unchecked(5848), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatDivINTEL")] + [NativeName(NativeNameType.Value, "5849")] + ArbitraryFloatDivIntel = unchecked(5849), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatGTINTEL")] + [NativeName(NativeNameType.Value, "5850")] + ArbitraryFloatGtintel = unchecked(5850), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatGEINTEL")] + [NativeName(NativeNameType.Value, "5851")] + ArbitraryFloatGeintel = unchecked(5851), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLTINTEL")] + [NativeName(NativeNameType.Value, "5852")] + ArbitraryFloatLtintel = unchecked(5852), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLEINTEL")] + [NativeName(NativeNameType.Value, "5853")] + ArbitraryFloatLeintel = unchecked(5853), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatEQINTEL")] + [NativeName(NativeNameType.Value, "5854")] + ArbitraryFloatEqintel = unchecked(5854), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatRecipINTEL")] + [NativeName(NativeNameType.Value, "5855")] + ArbitraryFloatRecipIntel = unchecked(5855), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatRSqrtINTEL")] + [NativeName(NativeNameType.Value, "5856")] + ArbitraryFloatrSqrtIntel = unchecked(5856), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCbrtINTEL")] + [NativeName(NativeNameType.Value, "5857")] + ArbitraryFloatCbrtIntel = unchecked(5857), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatHypotINTEL")] + [NativeName(NativeNameType.Value, "5858")] + ArbitraryFloatHypotIntel = unchecked(5858), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSqrtINTEL")] + [NativeName(NativeNameType.Value, "5859")] + ArbitraryFloatSqrtIntel = unchecked(5859), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLogINTEL")] + [NativeName(NativeNameType.Value, "5860")] + ArbitraryFloatLogIntel = unchecked(5860), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLog2INTEL")] + [NativeName(NativeNameType.Value, "5861")] + ArbitraryFloatLog2Intel = unchecked(5861), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLog10INTEL")] + [NativeName(NativeNameType.Value, "5862")] + ArbitraryFloatLog10Intel = unchecked(5862), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLog1pINTEL")] + [NativeName(NativeNameType.Value, "5863")] + ArbitraryFloatLog1PIntel = unchecked(5863), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExpINTEL")] + [NativeName(NativeNameType.Value, "5864")] + ArbitraryFloatExpIntel = unchecked(5864), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExp2INTEL")] + [NativeName(NativeNameType.Value, "5865")] + ArbitraryFloatExp2Intel = unchecked(5865), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExp10INTEL")] + [NativeName(NativeNameType.Value, "5866")] + ArbitraryFloatExp10Intel = unchecked(5866), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExpm1INTEL")] + [NativeName(NativeNameType.Value, "5867")] + ArbitraryFloatExpm1Intel = unchecked(5867), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinINTEL")] + [NativeName(NativeNameType.Value, "5868")] + ArbitraryFloatSinIntel = unchecked(5868), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCosINTEL")] + [NativeName(NativeNameType.Value, "5869")] + ArbitraryFloatCosIntel = unchecked(5869), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinCosINTEL")] + [NativeName(NativeNameType.Value, "5870")] + ArbitraryFloatSinCosIntel = unchecked(5870), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinPiINTEL")] + [NativeName(NativeNameType.Value, "5871")] + ArbitraryFloatSinPiIntel = unchecked(5871), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCosPiINTEL")] + [NativeName(NativeNameType.Value, "5872")] + ArbitraryFloatCosPiIntel = unchecked(5872), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatASinINTEL")] + [NativeName(NativeNameType.Value, "5873")] + ArbitraryFloataSinIntel = unchecked(5873), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatASinPiINTEL")] + [NativeName(NativeNameType.Value, "5874")] + ArbitraryFloataSinPiIntel = unchecked(5874), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatACosINTEL")] + [NativeName(NativeNameType.Value, "5875")] + ArbitraryFloataCosIntel = unchecked(5875), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatACosPiINTEL")] + [NativeName(NativeNameType.Value, "5876")] + ArbitraryFloataCosPiIntel = unchecked(5876), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatATanINTEL")] + [NativeName(NativeNameType.Value, "5877")] + ArbitraryFloataTanIntel = unchecked(5877), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatATanPiINTEL")] + [NativeName(NativeNameType.Value, "5878")] + ArbitraryFloataTanPiIntel = unchecked(5878), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatATan2INTEL")] + [NativeName(NativeNameType.Value, "5879")] + ArbitraryFloataTan2Intel = unchecked(5879), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatPowINTEL")] + [NativeName(NativeNameType.Value, "5880")] + ArbitraryFloatPowIntel = unchecked(5880), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatPowRINTEL")] + [NativeName(NativeNameType.Value, "5881")] + ArbitraryFloatPowRintel = unchecked(5881), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatPowNINTEL")] + [NativeName(NativeNameType.Value, "5882")] + ArbitraryFloatPowNintel = unchecked(5882), + [NativeName(NativeNameType.EnumItem, "SpvOpLoopControlINTEL")] + [NativeName(NativeNameType.Value, "5887")] + LoopControlIntel = unchecked(5887), + [NativeName(NativeNameType.EnumItem, "SpvOpAliasDomainDeclINTEL")] + [NativeName(NativeNameType.Value, "5911")] + AliasDomainDeclIntel = unchecked(5911), + [NativeName(NativeNameType.EnumItem, "SpvOpAliasScopeDeclINTEL")] + [NativeName(NativeNameType.Value, "5912")] + AliasScopeDeclIntel = unchecked(5912), + [NativeName(NativeNameType.EnumItem, "SpvOpAliasScopeListDeclINTEL")] + [NativeName(NativeNameType.Value, "5913")] + AliasScopeListDeclIntel = unchecked(5913), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedSqrtINTEL")] + [NativeName(NativeNameType.Value, "5923")] + FixedSqrtIntel = unchecked(5923), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedRecipINTEL")] + [NativeName(NativeNameType.Value, "5924")] + FixedRecipIntel = unchecked(5924), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedRsqrtINTEL")] + [NativeName(NativeNameType.Value, "5925")] + FixedRsqrtIntel = unchecked(5925), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinINTEL")] + [NativeName(NativeNameType.Value, "5926")] + FixedSinIntel = unchecked(5926), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedCosINTEL")] + [NativeName(NativeNameType.Value, "5927")] + FixedCosIntel = unchecked(5927), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinCosINTEL")] + [NativeName(NativeNameType.Value, "5928")] + FixedSinCosIntel = unchecked(5928), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinPiINTEL")] + [NativeName(NativeNameType.Value, "5929")] + FixedSinPiIntel = unchecked(5929), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedCosPiINTEL")] + [NativeName(NativeNameType.Value, "5930")] + FixedCosPiIntel = unchecked(5930), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinCosPiINTEL")] + [NativeName(NativeNameType.Value, "5931")] + FixedSinCosPiIntel = unchecked(5931), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedLogINTEL")] + [NativeName(NativeNameType.Value, "5932")] + FixedLogIntel = unchecked(5932), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedExpINTEL")] + [NativeName(NativeNameType.Value, "5933")] + FixedExpIntel = unchecked(5933), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrCastToCrossWorkgroupINTEL")] + [NativeName(NativeNameType.Value, "5934")] + PtrCastToCrossWorkgroupIntel = unchecked(5934), + [NativeName(NativeNameType.EnumItem, "SpvOpCrossWorkgroupCastToPtrINTEL")] + [NativeName(NativeNameType.Value, "5938")] + CrossWorkgroupCastToPtrIntel = unchecked(5938), + [NativeName(NativeNameType.EnumItem, "SpvOpReadPipeBlockingINTEL")] + [NativeName(NativeNameType.Value, "5946")] + ReadPipeBlockingIntel = unchecked(5946), + [NativeName(NativeNameType.EnumItem, "SpvOpWritePipeBlockingINTEL")] + [NativeName(NativeNameType.Value, "5947")] + WritePipeBlockingIntel = unchecked(5947), + [NativeName(NativeNameType.EnumItem, "SpvOpFPGARegINTEL")] + [NativeName(NativeNameType.Value, "5949")] + FpgaRegIntel = unchecked(5949), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetRayTMinKHR")] + [NativeName(NativeNameType.Value, "6016")] + RayQueryGetRaytMinKhr = unchecked(6016), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetRayFlagsKHR")] + [NativeName(NativeNameType.Value, "6017")] + RayQueryGetRayFlagsKhr = unchecked(6017), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionTKHR")] + [NativeName(NativeNameType.Value, "6018")] + RayQueryGetIntersectionTkhr = unchecked(6018), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionInstanceCustomIndexKHR")] + [NativeName(NativeNameType.Value, "6019")] + RayQueryGetIntersectionInstanceCustomIndexKhr = unchecked(6019), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionInstanceIdKHR")] + [NativeName(NativeNameType.Value, "6020")] + RayQueryGetIntersectionInstanceIdKhr = unchecked(6020), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR")] + [NativeName(NativeNameType.Value, "6021")] + RayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKhr = unchecked(6021), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionGeometryIndexKHR")] + [NativeName(NativeNameType.Value, "6022")] + RayQueryGetIntersectionGeometryIndexKhr = unchecked(6022), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionPrimitiveIndexKHR")] + [NativeName(NativeNameType.Value, "6023")] + RayQueryGetIntersectionPrimitiveIndexKhr = unchecked(6023), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionBarycentricsKHR")] + [NativeName(NativeNameType.Value, "6024")] + RayQueryGetIntersectionBarycentricsKhr = unchecked(6024), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionFrontFaceKHR")] + [NativeName(NativeNameType.Value, "6025")] + RayQueryGetIntersectionFrontFaceKhr = unchecked(6025), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionCandidateAABBOpaqueKHR")] + [NativeName(NativeNameType.Value, "6026")] + RayQueryGetIntersectionCandidateAabbOpaqueKhr = unchecked(6026), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionObjectRayDirectionKHR")] + [NativeName(NativeNameType.Value, "6027")] + RayQueryGetIntersectionObjectRayDirectionKhr = unchecked(6027), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionObjectRayOriginKHR")] + [NativeName(NativeNameType.Value, "6028")] + RayQueryGetIntersectionObjectRayOriginKhr = unchecked(6028), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetWorldRayDirectionKHR")] + [NativeName(NativeNameType.Value, "6029")] + RayQueryGetWorldRayDirectionKhr = unchecked(6029), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetWorldRayOriginKHR")] + [NativeName(NativeNameType.Value, "6030")] + RayQueryGetWorldRayOriginKhr = unchecked(6030), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionObjectToWorldKHR")] + [NativeName(NativeNameType.Value, "6031")] + RayQueryGetIntersectionObjectToWorldKhr = unchecked(6031), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionWorldToObjectKHR")] + [NativeName(NativeNameType.Value, "6032")] + RayQueryGetIntersectionWorldToObjectKhr = unchecked(6032), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFAddEXT")] + [NativeName(NativeNameType.Value, "6035")] + AtomicfAddExt = unchecked(6035), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeBufferSurfaceINTEL")] + [NativeName(NativeNameType.Value, "6086")] + TypeBufferSurfaceIntel = unchecked(6086), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeStructContinuedINTEL")] + [NativeName(NativeNameType.Value, "6090")] + TypeStructContinuedIntel = unchecked(6090), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantCompositeContinuedINTEL")] + [NativeName(NativeNameType.Value, "6091")] + ConstantCompositeContinuedIntel = unchecked(6091), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantCompositeContinuedINTEL")] + [NativeName(NativeNameType.Value, "6092")] + SpecConstantCompositeContinuedIntel = unchecked(6092), + [NativeName(NativeNameType.EnumItem, "SpvOpControlBarrierArriveINTEL")] + [NativeName(NativeNameType.Value, "6142")] + ControlBarrierArriveIntel = unchecked(6142), + [NativeName(NativeNameType.EnumItem, "SpvOpControlBarrierWaitINTEL")] + [NativeName(NativeNameType.Value, "6143")] + ControlBarrierWaitIntel = unchecked(6143), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupIMulKHR")] + [NativeName(NativeNameType.Value, "6401")] + GroupiMulKhr = unchecked(6401), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMulKHR")] + [NativeName(NativeNameType.Value, "6402")] + GroupfMulKhr = unchecked(6402), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupBitwiseAndKHR")] + [NativeName(NativeNameType.Value, "6403")] + GroupBitwiseAndKhr = unchecked(6403), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupBitwiseOrKHR")] + [NativeName(NativeNameType.Value, "6404")] + GroupBitwiseOrKhr = unchecked(6404), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupBitwiseXorKHR")] + [NativeName(NativeNameType.Value, "6405")] + GroupBitwiseXorKhr = unchecked(6405), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupLogicalAndKHR")] + [NativeName(NativeNameType.Value, "6406")] + GroupLogicalAndKhr = unchecked(6406), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupLogicalOrKHR")] + [NativeName(NativeNameType.Value, "6407")] + GroupLogicalOrKhr = unchecked(6407), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupLogicalXorKHR")] + [NativeName(NativeNameType.Value, "6408")] + GroupLogicalXorKhr = unchecked(6408), + [NativeName(NativeNameType.EnumItem, "SpvOpMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "spvc_result")] + public enum SpvcResult + { + /// /// Success.
///
[NativeName(NativeNameType.EnumItem, "SPVC_SUCCESS")] + [NativeName(NativeNameType.Value, "0")] + Success = unchecked(0), + + /// /// The SPIR-V is invalid. Should have been caught by validation ideally.
///
[NativeName(NativeNameType.EnumItem, "SPVC_ERROR_INVALID_SPIRV")] + [NativeName(NativeNameType.Value, "-1")] + ErrorInvalidSpirv = unchecked(-1), + + /// /// The SPIR-V might be valid or invalid, but SPIRV-Cross currently cannot correctly translate this to your target language.
///
[NativeName(NativeNameType.EnumItem, "SPVC_ERROR_UNSUPPORTED_SPIRV")] + [NativeName(NativeNameType.Value, "-2")] + ErrorUnsupportedSpirv = unchecked(-2), + + /// /// If for some reason we hit this, new or malloc failed.
///
[NativeName(NativeNameType.EnumItem, "SPVC_ERROR_OUT_OF_MEMORY")] + [NativeName(NativeNameType.Value, "-3")] + ErrorOutOfMemory = unchecked(-3), + + /// /// Invalid API argument.
///
[NativeName(NativeNameType.EnumItem, "SPVC_ERROR_INVALID_ARGUMENT")] + [NativeName(NativeNameType.Value, "-4")] + ErrorInvalidArgument = unchecked(-4), + + /// /// Invalid API argument.
///
[NativeName(NativeNameType.EnumItem, "SPVC_ERROR_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + ErrorIntMax = unchecked(2147483647), + + } + + [NativeName(NativeNameType.Enum, "spvc_capture_mode")] + public enum SpvcCaptureMode + { + /// /// The Parsed IR payload will be copied, and the handle can be reused to create other compiler instances.
///
[NativeName(NativeNameType.EnumItem, "SPVC_CAPTURE_MODE_COPY")] + [NativeName(NativeNameType.Value, "0")] + Copy = unchecked(0), + + /// /// The payload will now be owned by the compiler.
/// parsed_ir should now be considered a dead blob and must not be used further.
/// This is optimal for performance and should be the go-to option.
///
[NativeName(NativeNameType.EnumItem, "SPVC_CAPTURE_MODE_TAKE_OWNERSHIP")] + [NativeName(NativeNameType.Value, "1")] + TakeOwnership = unchecked(1), + + /// /// The payload will now be owned by the compiler.
/// parsed_ir should now be considered a dead blob and must not be used further.
/// This is optimal for performance and should be the go-to option.
///
[NativeName(NativeNameType.EnumItem, "SPVC_CAPTURE_MODE_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + + } + + [NativeName(NativeNameType.Enum, "spvc_backend")] + public enum SpvcBackend + { + /// /// This backend can only perform reflection, no compiler options are supported. Maps to spirv_cross::Compiler.
///
[NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_NONE")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + + /// /// spirv_cross::CompilerGLSL
///
[NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_GLSL")] + [NativeName(NativeNameType.Value, "1")] + Glsl = unchecked(1), + + /// /// CompilerHLSL
///
[NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_HLSL")] + [NativeName(NativeNameType.Value, "2")] + Hlsl = unchecked(2), + + /// /// CompilerMSL
///
[NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_MSL")] + [NativeName(NativeNameType.Value, "3")] + Msl = unchecked(3), + + /// /// CompilerCPP
///
[NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_CPP")] + [NativeName(NativeNameType.Value, "4")] + Cpp = unchecked(4), + + /// /// CompilerReflection w/ JSON backend
///
[NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_JSON")] + [NativeName(NativeNameType.Value, "5")] + Json = unchecked(5), + + [NativeName(NativeNameType.EnumItem, "SPVC_BACKEND_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_resource_type")] + public enum SpvcResourceType + { + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_UNIFORM_BUFFER")] + [NativeName(NativeNameType.Value, "1")] + UniformBuffer = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_STORAGE_BUFFER")] + [NativeName(NativeNameType.Value, "2")] + StorageBuffer = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_STAGE_INPUT")] + [NativeName(NativeNameType.Value, "3")] + StageInput = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_STAGE_OUTPUT")] + [NativeName(NativeNameType.Value, "4")] + StageOutput = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_SUBPASS_INPUT")] + [NativeName(NativeNameType.Value, "5")] + SubpassInput = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_STORAGE_IMAGE")] + [NativeName(NativeNameType.Value, "6")] + StorageImage = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_SAMPLED_IMAGE")] + [NativeName(NativeNameType.Value, "7")] + SampledImage = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_ATOMIC_COUNTER")] + [NativeName(NativeNameType.Value, "8")] + AtomicCounter = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_PUSH_CONSTANT")] + [NativeName(NativeNameType.Value, "9")] + PushConstant = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_SEPARATE_IMAGE")] + [NativeName(NativeNameType.Value, "10")] + SeparateImage = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_SEPARATE_SAMPLERS")] + [NativeName(NativeNameType.Value, "11")] + SeparateSamplers = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_ACCELERATION_STRUCTURE")] + [NativeName(NativeNameType.Value, "12")] + AccelerationStructure = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_RAY_QUERY")] + [NativeName(NativeNameType.Value, "13")] + RayQuery = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_SHADER_RECORD_BUFFER")] + [NativeName(NativeNameType.Value, "14")] + ShaderRecordBuffer = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SPVC_RESOURCE_TYPE_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "spvc_builtin_resource_type")] + public enum SpvcBuiltinResourceType + { + [NativeName(NativeNameType.EnumItem, "SPVC_BUILTIN_RESOURCE_TYPE_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_BUILTIN_RESOURCE_TYPE_STAGE_INPUT")] + [NativeName(NativeNameType.Value, "1")] + StageInput = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_BUILTIN_RESOURCE_TYPE_STAGE_OUTPUT")] + [NativeName(NativeNameType.Value, "2")] + StageOutput = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_BUILTIN_RESOURCE_TYPE_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to spirv_cross::SPIRType::BaseType.
///
[NativeName(NativeNameType.Enum, "spvc_basetype")] + public enum SpvcBasetype + { + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_VOID")] + [NativeName(NativeNameType.Value, "1")] + Void = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_BOOLEAN")] + [NativeName(NativeNameType.Value, "2")] + Boolean = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_INT8")] + [NativeName(NativeNameType.Value, "3")] + Int8 = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_UINT8")] + [NativeName(NativeNameType.Value, "4")] + Uint8 = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_INT16")] + [NativeName(NativeNameType.Value, "5")] + Int16 = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_UINT16")] + [NativeName(NativeNameType.Value, "6")] + Uint16 = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_INT32")] + [NativeName(NativeNameType.Value, "7")] + Int32 = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_UINT32")] + [NativeName(NativeNameType.Value, "8")] + Uint32 = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_INT64")] + [NativeName(NativeNameType.Value, "9")] + Int64 = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_UINT64")] + [NativeName(NativeNameType.Value, "10")] + Uint64 = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_ATOMIC_COUNTER")] + [NativeName(NativeNameType.Value, "11")] + AtomicCounter = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_FP16")] + [NativeName(NativeNameType.Value, "12")] + Fp16 = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_FP32")] + [NativeName(NativeNameType.Value, "13")] + Fp32 = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_FP64")] + [NativeName(NativeNameType.Value, "14")] + Fp64 = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_STRUCT")] + [NativeName(NativeNameType.Value, "15")] + Struct = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_IMAGE")] + [NativeName(NativeNameType.Value, "16")] + Image = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_SAMPLED_IMAGE")] + [NativeName(NativeNameType.Value, "17")] + SampledImage = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_SAMPLER")] + [NativeName(NativeNameType.Value, "18")] + Sampler = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_ACCELERATION_STRUCTURE")] + [NativeName(NativeNameType.Value, "19")] + AccelerationStructure = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SPVC_BASETYPE_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_platform")] + public enum SpvcMslPlatform + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_PLATFORM_IOS")] + [NativeName(NativeNameType.Value, "0")] + Ios = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_PLATFORM_MACOS")] + [NativeName(NativeNameType.Value, "1")] + Macos = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_PLATFORM_MAX_INT")] + [NativeName(NativeNameType.Value, "2147483647")] + MaxInt = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_index_type")] + public enum SpvcMslIndexType + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_INDEX_TYPE_NONE")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_INDEX_TYPE_UINT16")] + [NativeName(NativeNameType.Value, "1")] + Uint16 = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_INDEX_TYPE_UINT32")] + [NativeName(NativeNameType.Value, "2")] + Uint32 = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_INDEX_TYPE_MAX_INT")] + [NativeName(NativeNameType.Value, "2147483647")] + MaxInt = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_shader_variable_format")] + public enum SpvcMslShaderVariableFormat + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_OTHER")] + [NativeName(NativeNameType.Value, "0")] + Other = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT8")] + [NativeName(NativeNameType.Value, "1")] + Uint8 = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT16")] + [NativeName(NativeNameType.Value, "2")] + Uint16 = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY16")] + [NativeName(NativeNameType.Value, "3")] + Any16 = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY32")] + [NativeName(NativeNameType.Value, "4")] + Any32 = unchecked(4), + /// /// Deprecated names.
///
[NativeName(NativeNameType.EnumItem, "SPVC_MSL_VERTEX_FORMAT_OTHER")] + [NativeName(NativeNameType.Value, "SPVC_MSL_SHADER_VARIABLE_FORMAT_OTHER")] + VertexFormatOther = Other, + + /// /// Deprecated names.
///
[NativeName(NativeNameType.EnumItem, "SPVC_MSL_VERTEX_FORMAT_UINT8")] + [NativeName(NativeNameType.Value, "SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT8")] + VertexFormatUint8 = Uint8, + + /// /// Deprecated names.
///
[NativeName(NativeNameType.EnumItem, "SPVC_MSL_VERTEX_FORMAT_UINT16")] + [NativeName(NativeNameType.Value, "SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT16")] + VertexFormatUint16 = Uint16, + + /// /// Deprecated names.
///
[NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_OTHER")] + [NativeName(NativeNameType.Value, "SPVC_MSL_SHADER_VARIABLE_FORMAT_OTHER")] + InputFormatOther = Other, + + /// /// Deprecated names.
///
[NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_UINT8")] + [NativeName(NativeNameType.Value, "SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT8")] + InputFormatUint8 = Uint8, + + /// /// Deprecated names.
///
[NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_UINT16")] + [NativeName(NativeNameType.Value, "SPVC_MSL_SHADER_VARIABLE_FORMAT_UINT16")] + InputFormatUint16 = Uint16, + + /// /// Deprecated names.
///
[NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_ANY16")] + [NativeName(NativeNameType.Value, "SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY16")] + InputFormatAny16 = Any16, + + /// /// Deprecated names.
///
[NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_ANY32")] + [NativeName(NativeNameType.Value, "SPVC_MSL_SHADER_VARIABLE_FORMAT_ANY32")] + InputFormatAny32 = Any32, + + /// /// Deprecated names.
///
[NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_INPUT_FORMAT_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + InputFormatIntMax = unchecked(2147483647), + + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_shader_variable_rate")] + public enum SpvcMslShaderVariableRate + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_RATE_PER_VERTEX")] + [NativeName(NativeNameType.Value, "0")] + PerVertex = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_RATE_PER_PRIMITIVE")] + [NativeName(NativeNameType.Value, "1")] + PerPrimitive = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_RATE_PER_PATCH")] + [NativeName(NativeNameType.Value, "2")] + PerPatch = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SHADER_VARIABLE_RATE_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_sampler_coord")] + public enum SpvcMslSamplerCoord + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COORD_NORMALIZED")] + [NativeName(NativeNameType.Value, "0")] + Normalized = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COORD_PIXEL")] + [NativeName(NativeNameType.Value, "1")] + Pixel = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_sampler_filter")] + public enum SpvcMslSamplerFilter + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_FILTER_NEAREST")] + [NativeName(NativeNameType.Value, "0")] + Nearest = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_FILTER_LINEAR")] + [NativeName(NativeNameType.Value, "1")] + Linear = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_FILTER_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_sampler_mip_filter")] + public enum SpvcMslSamplerMipFilter + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_MIP_FILTER_NONE")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_MIP_FILTER_NEAREST")] + [NativeName(NativeNameType.Value, "1")] + Nearest = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_MIP_FILTER_LINEAR")] + [NativeName(NativeNameType.Value, "2")] + Linear = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_MIP_FILTER_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_sampler_address")] + public enum SpvcMslSamplerAddress + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_ZERO")] + [NativeName(NativeNameType.Value, "0")] + ClampToZero = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_EDGE")] + [NativeName(NativeNameType.Value, "1")] + ClampToEdge = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_BORDER")] + [NativeName(NativeNameType.Value, "2")] + ClampToBorder = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_REPEAT")] + [NativeName(NativeNameType.Value, "3")] + Repeat = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_MIRRORED_REPEAT")] + [NativeName(NativeNameType.Value, "4")] + MirroredRepeat = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_ADDRESS_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_sampler_compare_func")] + public enum SpvcMslSamplerCompareFunc + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_NEVER")] + [NativeName(NativeNameType.Value, "0")] + Never = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_LESS")] + [NativeName(NativeNameType.Value, "1")] + Less = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_LESS_EQUAL")] + [NativeName(NativeNameType.Value, "2")] + LessEqual = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_GREATER")] + [NativeName(NativeNameType.Value, "3")] + Greater = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_GREATER_EQUAL")] + [NativeName(NativeNameType.Value, "4")] + GreaterEqual = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_EQUAL")] + [NativeName(NativeNameType.Value, "5")] + Equal = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_NOT_EQUAL")] + [NativeName(NativeNameType.Value, "6")] + NotEqual = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_ALWAYS")] + [NativeName(NativeNameType.Value, "7")] + Always = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_COMPARE_FUNC_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_sampler_border_color")] + public enum SpvcMslSamplerBorderColor + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_BORDER_COLOR_TRANSPARENT_BLACK")] + [NativeName(NativeNameType.Value, "0")] + TransparentBlack = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_BORDER_COLOR_OPAQUE_BLACK")] + [NativeName(NativeNameType.Value, "1")] + OpaqueBlack = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_BORDER_COLOR_OPAQUE_WHITE")] + [NativeName(NativeNameType.Value, "2")] + OpaqueWhite = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_BORDER_COLOR_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_format_resolution")] + public enum SpvcMslFormatResolution + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_FORMAT_RESOLUTION_444")] + [NativeName(NativeNameType.Value, "0")] + Resolution444 = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_FORMAT_RESOLUTION_422")] + [NativeName(NativeNameType.Value, "1")] + Resolution422 = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_FORMAT_RESOLUTION_420")] + [NativeName(NativeNameType.Value, "2")] + Resolution420 = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_FORMAT_RESOLUTION_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_chroma_location")] + public enum SpvcMslChromaLocation + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_CHROMA_LOCATION_COSITED_EVEN")] + [NativeName(NativeNameType.Value, "0")] + CositedEven = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_CHROMA_LOCATION_MIDPOINT")] + [NativeName(NativeNameType.Value, "1")] + Midpoint = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_CHROMA_LOCATION_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_component_swizzle")] + public enum SpvcMslComponentSwizzle + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_IDENTITY")] + [NativeName(NativeNameType.Value, "0")] + Identity = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_ZERO")] + [NativeName(NativeNameType.Value, "1")] + Zero = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_ONE")] + [NativeName(NativeNameType.Value, "2")] + One = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_R")] + [NativeName(NativeNameType.Value, "3")] + Swizzler = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_G")] + [NativeName(NativeNameType.Value, "4")] + Swizzleg = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_B")] + [NativeName(NativeNameType.Value, "5")] + Swizzleb = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_A")] + [NativeName(NativeNameType.Value, "6")] + Swizzlea = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_COMPONENT_SWIZZLE_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_sampler_ycbcr_model_conversion")] + public enum SpvcMslSamplerYcbcrModelConversion + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY")] + [NativeName(NativeNameType.Value, "0")] + RgbIdentity = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY")] + [NativeName(NativeNameType.Value, "1")] + Identity = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_709")] + [NativeName(NativeNameType.Value, "2")] + Bt709 = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_601")] + [NativeName(NativeNameType.Value, "3")] + Bt601 = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_BT_2020")] + [NativeName(NativeNameType.Value, "4")] + Bt2020 = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_MODEL_CONVERSION_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C+ API.
///
[NativeName(NativeNameType.Enum, "spvc_msl_sampler_ycbcr_range")] + public enum SpvcMslSamplerYcbcrRange + { + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_RANGE_ITU_FULL")] + [NativeName(NativeNameType.Value, "0")] + ItuFull = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_RANGE_ITU_NARROW")] + [NativeName(NativeNameType.Value, "1")] + ItuNarrow = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_MSL_SAMPLER_YCBCR_RANGE_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + } + + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Enum, "spvc_hlsl_binding_flag_bits")] + public enum SpvcHlslBindingFlagBits + { + [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_NONE_BIT")] + [NativeName(NativeNameType.Value, "0")] + AutoNone = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_PUSH_CONSTANT_BIT")] + [NativeName(NativeNameType.Value, "1")] + AutoPushConstant = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_CBV_BIT")] + [NativeName(NativeNameType.Value, "2")] + AutoCbv = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_SRV_BIT")] + [NativeName(NativeNameType.Value, "4")] + AutoSrv = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_UAV_BIT")] + [NativeName(NativeNameType.Value, "8")] + AutoUav = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_SAMPLER_BIT")] + [NativeName(NativeNameType.Value, "16")] + AutoSampler = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SPVC_HLSL_BINDING_AUTO_ALL")] + [NativeName(NativeNameType.Value, "2147483647")] + AutoAll = unchecked(2147483647), + } + + /// /// Maps to the various spirv_cross::Compiler*::Option structures. See C++ API for defaults and details.
///
[NativeName(NativeNameType.Enum, "spvc_compiler_option")] + public enum SpvcCompilerOption + { + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_UNKNOWN")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_FORCE_TEMPORARY")] + [NativeName(NativeNameType.Value, "16777217")] + ForceTemporary = unchecked(16777217), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_FLATTEN_MULTIDIMENSIONAL_ARRAYS")] + [NativeName(NativeNameType.Value, "16777218")] + FlattenMultidimensionalArrays = unchecked(16777218), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_FIXUP_DEPTH_CONVENTION")] + [NativeName(NativeNameType.Value, "16777219")] + FixupDepthConvention = unchecked(16777219), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_FLIP_VERTEX_Y")] + [NativeName(NativeNameType.Value, "16777220")] + FlipVertexy = unchecked(16777220), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_SUPPORT_NONZERO_BASE_INSTANCE")] + [NativeName(NativeNameType.Value, "33554437")] + GlslSupportNonzeroBaseInstance = unchecked(33554437), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_SEPARATE_SHADER_OBJECTS")] + [NativeName(NativeNameType.Value, "33554438")] + GlslSeparateShaderObjects = unchecked(33554438), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_ENABLE_420PACK_EXTENSION")] + [NativeName(NativeNameType.Value, "33554439")] + GlslEnable420PackExtension = unchecked(33554439), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_VERSION")] + [NativeName(NativeNameType.Value, "33554440")] + GlslVersion = unchecked(33554440), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_ES")] + [NativeName(NativeNameType.Value, "33554441")] + GlslEs = unchecked(33554441), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_VULKAN_SEMANTICS")] + [NativeName(NativeNameType.Value, "33554442")] + GlslVulkanSemantics = unchecked(33554442), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_ES_DEFAULT_FLOAT_PRECISION_HIGHP")] + [NativeName(NativeNameType.Value, "33554443")] + GlslEsDefaultFloatPrecisionHighp = unchecked(33554443), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_ES_DEFAULT_INT_PRECISION_HIGHP")] + [NativeName(NativeNameType.Value, "33554444")] + GlslEsDefaultIntPrecisionHighp = unchecked(33554444), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_SHADER_MODEL")] + [NativeName(NativeNameType.Value, "67108877")] + HlslShaderModel = unchecked(67108877), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_POINT_SIZE_COMPAT")] + [NativeName(NativeNameType.Value, "67108878")] + HlslPointSizeCompat = unchecked(67108878), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_POINT_COORD_COMPAT")] + [NativeName(NativeNameType.Value, "67108879")] + HlslPointCoordCompat = unchecked(67108879), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_SUPPORT_NONZERO_BASE_VERTEX_BASE_INSTANCE")] + [NativeName(NativeNameType.Value, "67108880")] + HlslSupportNonzeroBaseVertexBaseInstance = unchecked(67108880), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_VERSION")] + [NativeName(NativeNameType.Value, "134217745")] + MslVersion = unchecked(134217745), + [NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_TEXEL_BUFFER_TEXTURE_WIDTH")] + [NativeName(NativeNameType.Value, "134217746")] + MslTexelBufferTextureWidth = unchecked(134217746), + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_AUX_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217747")] + MslAuxBufferIndex = unchecked(134217747), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SWIZZLE_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217747")] + MslSwizzleBufferIndex = unchecked(134217747), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_INDIRECT_PARAMS_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217748")] + MslIndirectParamsBufferIndex = unchecked(134217748), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_OUTPUT_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217749")] + MslShaderOutputBufferIndex = unchecked(134217749), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_PATCH_OUTPUT_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217750")] + MslShaderPatchOutputBufferIndex = unchecked(134217750), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_TESS_FACTOR_OUTPUT_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217751")] + MslShaderTessFactorOutputBufferIndex = unchecked(134217751), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_INPUT_WORKGROUP_INDEX")] + [NativeName(NativeNameType.Value, "134217752")] + MslShaderInputWorkgroupIndex = unchecked(134217752), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_POINT_SIZE_BUILTIN")] + [NativeName(NativeNameType.Value, "134217753")] + MslEnablePointSizeBuiltin = unchecked(134217753), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_DISABLE_RASTERIZATION")] + [NativeName(NativeNameType.Value, "134217754")] + MslDisableRasterization = unchecked(134217754), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_CAPTURE_OUTPUT_TO_BUFFER")] + [NativeName(NativeNameType.Value, "134217755")] + MslCaptureOutputToBuffer = unchecked(134217755), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SWIZZLE_TEXTURE_SAMPLES")] + [NativeName(NativeNameType.Value, "134217756")] + MslSwizzleTextureSamples = unchecked(134217756), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_PAD_FRAGMENT_OUTPUT_COMPONENTS")] + [NativeName(NativeNameType.Value, "134217757")] + MslPadFragmentOutputComponents = unchecked(134217757), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_TESS_DOMAIN_ORIGIN_LOWER_LEFT")] + [NativeName(NativeNameType.Value, "134217758")] + MslTessDomainOriginLowerLeft = unchecked(134217758), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_PLATFORM")] + [NativeName(NativeNameType.Value, "134217759")] + MslPlatform = unchecked(134217759), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ARGUMENT_BUFFERS")] + [NativeName(NativeNameType.Value, "134217760")] + MslArgumentBuffers = unchecked(134217760), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_EMIT_PUSH_CONSTANT_AS_UNIFORM_BUFFER")] + [NativeName(NativeNameType.Value, "33554465")] + GlslEmitPushConstantAsUniformBuffer = unchecked(33554465), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_TEXTURE_BUFFER_NATIVE")] + [NativeName(NativeNameType.Value, "134217762")] + MslTextureBufferNative = unchecked(134217762), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_EMIT_UNIFORM_BUFFER_AS_PLAIN_UNIFORMS")] + [NativeName(NativeNameType.Value, "33554467")] + GlslEmitUniformBufferAsPlainUniforms = unchecked(33554467), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_BUFFER_SIZE_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217764")] + MslBufferSizeBufferIndex = unchecked(134217764), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_EMIT_LINE_DIRECTIVES")] + [NativeName(NativeNameType.Value, "16777253")] + EmitLineDirectives = unchecked(16777253), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_MULTIVIEW")] + [NativeName(NativeNameType.Value, "134217766")] + MslMultiview = unchecked(134217766), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_VIEW_MASK_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217767")] + MslViewMaskBufferIndex = unchecked(134217767), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_DEVICE_INDEX")] + [NativeName(NativeNameType.Value, "134217768")] + MslDeviceIndex = unchecked(134217768), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_VIEW_INDEX_FROM_DEVICE_INDEX")] + [NativeName(NativeNameType.Value, "134217769")] + MslViewIndexFromDeviceIndex = unchecked(134217769), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_DISPATCH_BASE")] + [NativeName(NativeNameType.Value, "134217770")] + MslDispatchBase = unchecked(134217770), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_DYNAMIC_OFFSETS_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217771")] + MslDynamicOffsetsBufferIndex = unchecked(134217771), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_TEXTURE_1D_AS_2D")] + [NativeName(NativeNameType.Value, "134217772")] + MslTexture1DAs2D = unchecked(134217772), + + /// /// Obsolete, use SWIZZLE_BUFFER_INDEX instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_BASE_INDEX_ZERO")] + [NativeName(NativeNameType.Value, "134217773")] + MslEnableBaseIndexZero = unchecked(134217773), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_IOS_FRAMEBUFFER_FETCH_SUBPASS")] + [NativeName(NativeNameType.Value, "134217774")] + MslIosFramebufferFetchSubpass = unchecked(134217774), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_FRAMEBUFFER_FETCH_SUBPASS")] + [NativeName(NativeNameType.Value, "134217774")] + MslFramebufferFetchSubpass = unchecked(134217774), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_INVARIANT_FP_MATH")] + [NativeName(NativeNameType.Value, "134217775")] + MslInvariantFpMath = unchecked(134217775), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_EMULATE_CUBEMAP_ARRAY")] + [NativeName(NativeNameType.Value, "134217776")] + MslEmulateCubemapArray = unchecked(134217776), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_DECORATION_BINDING")] + [NativeName(NativeNameType.Value, "134217777")] + MslEnableDecorationBinding = unchecked(134217777), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_FORCE_ACTIVE_ARGUMENT_BUFFER_RESOURCES")] + [NativeName(NativeNameType.Value, "134217778")] + MslForceActiveArgumentBufferResources = unchecked(134217778), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_FORCE_NATIVE_ARRAYS")] + [NativeName(NativeNameType.Value, "134217779")] + MslForceNativeArrays = unchecked(134217779), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_ENABLE_STORAGE_IMAGE_QUALIFIER_DEDUCTION")] + [NativeName(NativeNameType.Value, "16777268")] + EnableStorageImageQualifierDeduction = unchecked(16777268), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_FORCE_STORAGE_BUFFER_AS_UAV")] + [NativeName(NativeNameType.Value, "67108917")] + HlslForceStorageBufferAsUav = unchecked(67108917), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_FORCE_ZERO_INITIALIZED_VARIABLES")] + [NativeName(NativeNameType.Value, "16777270")] + ForceZeroInitializedVariables = unchecked(16777270), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_NONWRITABLE_UAV_TEXTURE_AS_SRV")] + [NativeName(NativeNameType.Value, "67108919")] + HlslNonwritableUavTextureAsSrv = unchecked(67108919), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_OUTPUT_MASK")] + [NativeName(NativeNameType.Value, "134217784")] + MslEnableFragOutputMask = unchecked(134217784), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_DEPTH_BUILTIN")] + [NativeName(NativeNameType.Value, "134217785")] + MslEnableFragDepthBuiltin = unchecked(134217785), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_FRAG_STENCIL_REF_BUILTIN")] + [NativeName(NativeNameType.Value, "134217786")] + MslEnableFragStencilRefBuiltin = unchecked(134217786), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ENABLE_CLIP_DISTANCE_USER_VARYING")] + [NativeName(NativeNameType.Value, "134217787")] + MslEnableClipDistanceUserVarying = unchecked(134217787), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_ENABLE_16BIT_TYPES")] + [NativeName(NativeNameType.Value, "67108924")] + HlslEnable16Types = unchecked(67108924), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_MULTI_PATCH_WORKGROUP")] + [NativeName(NativeNameType.Value, "134217789")] + MslMultiPatchWorkgroup = unchecked(134217789), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_INPUT_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217790")] + MslShaderInputBufferIndex = unchecked(134217790), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_INDEX_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217791")] + MslShaderIndexBufferIndex = unchecked(134217791), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_VERTEX_FOR_TESSELLATION")] + [NativeName(NativeNameType.Value, "134217792")] + MslVertexForTessellation = unchecked(134217792), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_VERTEX_INDEX_TYPE")] + [NativeName(NativeNameType.Value, "134217793")] + MslVertexIndexType = unchecked(134217793), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_FORCE_FLATTENED_IO_BLOCKS")] + [NativeName(NativeNameType.Value, "33554498")] + GlslForceFlattenedIoBlocks = unchecked(33554498), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_MULTIVIEW_LAYERED_RENDERING")] + [NativeName(NativeNameType.Value, "134217795")] + MslMultiviewLayeredRendering = unchecked(134217795), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ARRAYED_SUBPASS_INPUT")] + [NativeName(NativeNameType.Value, "134217796")] + MslArrayedSubpassInput = unchecked(134217796), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_R32UI_LINEAR_TEXTURE_ALIGNMENT")] + [NativeName(NativeNameType.Value, "134217797")] + Mslr32UiLinearTextureAlignment = unchecked(134217797), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_R32UI_ALIGNMENT_CONSTANT_ID")] + [NativeName(NativeNameType.Value, "134217798")] + Mslr32UiAlignmentConstantId = unchecked(134217798), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_HLSL_FLATTEN_MATRIX_VERTEX_INPUT_SEMANTICS")] + [NativeName(NativeNameType.Value, "67108935")] + HlslFlattenMatrixVertexInputSemantics = unchecked(67108935), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_IOS_USE_SIMDGROUP_FUNCTIONS")] + [NativeName(NativeNameType.Value, "134217800")] + MslIosUseSimdgroupFunctions = unchecked(134217800), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_EMULATE_SUBGROUPS")] + [NativeName(NativeNameType.Value, "134217801")] + MslEmulateSubgroups = unchecked(134217801), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_FIXED_SUBGROUP_SIZE")] + [NativeName(NativeNameType.Value, "134217802")] + MslFixedSubgroupSize = unchecked(134217802), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_FORCE_SAMPLE_RATE_SHADING")] + [NativeName(NativeNameType.Value, "134217803")] + MslForceSampleRateShading = unchecked(134217803), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_IOS_SUPPORT_BASE_VERTEX_INSTANCE")] + [NativeName(NativeNameType.Value, "134217804")] + MslIosSupportBaseVertexInstance = unchecked(134217804), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_OVR_MULTIVIEW_VIEW_COUNT")] + [NativeName(NativeNameType.Value, "33554509")] + GlslOvrMultiviewViewCount = unchecked(33554509), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_RELAX_NAN_CHECKS")] + [NativeName(NativeNameType.Value, "16777294")] + RelaxNanChecks = unchecked(16777294), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_RAW_BUFFER_TESE_INPUT")] + [NativeName(NativeNameType.Value, "134217807")] + MslRawBufferTeseInput = unchecked(134217807), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SHADER_PATCH_INPUT_BUFFER_INDEX")] + [NativeName(NativeNameType.Value, "134217808")] + MslShaderPatchInputBufferIndex = unchecked(134217808), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_MANUAL_HELPER_INVOCATION_UPDATES")] + [NativeName(NativeNameType.Value, "134217809")] + MslManualHelperInvocationUpdates = unchecked(134217809), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_CHECK_DISCARDED_FRAG_STORES")] + [NativeName(NativeNameType.Value, "134217810")] + MslCheckDiscardedFragStores = unchecked(134217810), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_GLSL_ENABLE_ROW_MAJOR_LOAD_WORKAROUND")] + [NativeName(NativeNameType.Value, "33554515")] + GlslEnableRowMajorLoadWorkaround = unchecked(33554515), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_ARGUMENT_BUFFERS_TIER")] + [NativeName(NativeNameType.Value, "134217812")] + MslArgumentBuffersTier = unchecked(134217812), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_MSL_SAMPLE_DREF_LOD_ARRAY_AS_GRAD")] + [NativeName(NativeNameType.Value, "134217813")] + MslSampleDrefLodArrayAsGrad = unchecked(134217813), + + /// /// Obsolete. Use MSL_FRAMEBUFFER_FETCH_SUBPASS instead.
///
[NativeName(NativeNameType.EnumItem, "SPVC_COMPILER_OPTION_INT_MAX")] + [NativeName(NativeNameType.Value, "2147483647")] + IntMax = unchecked(2147483647), + + } + +} diff --git a/Hexa.NET.SPIRVCross/Generated/Extensions.cs b/Hexa.NET.SPIRVCross/Generated/Extensions.cs index 3d9c7dd..466e7fe 100644 --- a/Hexa.NET.SPIRVCross/Generated/Extensions.cs +++ b/Hexa.NET.SPIRVCross/Generated/Extensions.cs @@ -46,7 +46,7 @@ public static string GetLastErrorStringS(this SpvcContext context) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_context_set_error_callback")] + [NativeName(NativeNameType.Func, "spvc_context_set_error_callback")] [return: NativeName(NativeNameType.Type, "void")] public static void SetErrorCallback(this SpvcContext context, [NativeName(NativeNameType.Param, "cb")] [NativeName(NativeNameType.Type, "spvc_error_callback")] SpvcErrorCallback cb, [NativeName(NativeNameType.Param, "userdata")] [NativeName(NativeNameType.Type, "void*")] void* userdata) { @@ -55,7 +55,7 @@ public static void SetErrorCallback(this SpvcContext context, [NativeName(Native /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] SpvId* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) + public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] uint* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] ulong wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) { SpvcResult ret = SPIRV.SpvcContextParseSpirvNative(context, spirv, wordCount, parsedIr); return ret; @@ -63,18 +63,37 @@ public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(Native /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref SpvId spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) + public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref uint spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] ulong wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) { - fixed (SpvId* pspirv = &spirv) + fixed (uint* pspirv = &spirv) { - SpvcResult ret = SPIRV.SpvcContextParseSpirvNative(context, (SpvId*)pspirv, wordCount, parsedIr); + SpvcResult ret = SPIRV.SpvcContextParseSpirvNative(context, (uint*)pspirv, wordCount, parsedIr); return ret; } } /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] SpvId* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) + public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] uint* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) + { + SpvcResult ret = SPIRV.SpvcContextParseSpirvNative(context, spirv, wordCount, parsedIr); + return ret; + } + + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref uint spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) + { + fixed (uint* pspirv = &spirv) + { + SpvcResult ret = SPIRV.SpvcContextParseSpirvNative(context, (uint*)pspirv, wordCount, parsedIr); + return ret; + } + } + + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] uint* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] ulong wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) { fixed (SpvcParsedIr* pparsedIr = &parsedIr) { @@ -85,13 +104,38 @@ public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(Native /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref SpvId spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) + public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref uint spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] ulong wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) { - fixed (SpvId* pspirv = &spirv) + fixed (uint* pspirv = &spirv) { fixed (SpvcParsedIr* pparsedIr = &parsedIr) { - SpvcResult ret = SPIRV.SpvcContextParseSpirvNative(context, (SpvId*)pspirv, wordCount, (SpvcParsedIr*)pparsedIr); + SpvcResult ret = SPIRV.SpvcContextParseSpirvNative(context, (uint*)pspirv, wordCount, (SpvcParsedIr*)pparsedIr); + return ret; + } + } + } + + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] uint* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) + { + fixed (SpvcParsedIr* pparsedIr = &parsedIr) + { + SpvcResult ret = SPIRV.SpvcContextParseSpirvNative(context, spirv, wordCount, (SpvcParsedIr*)pparsedIr); + return ret; + } + } + + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult ParseSpirv(this SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref uint spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) + { + fixed (uint* pspirv = &spirv) + { + fixed (SpvcParsedIr* pparsedIr = &parsedIr) + { + SpvcResult ret = SPIRV.SpvcContextParseSpirvNative(context, (uint*)pspirv, wordCount, (SpvcParsedIr*)pparsedIr); return ret; } } @@ -218,7 +262,7 @@ public static SpvcResult AddHeaderLine(this SpvcCompiler compiler, [NativeName(N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] + [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult RequireExtension(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "ext")] [NativeName(NativeNameType.Type, "const char*")] byte* ext) { @@ -226,7 +270,7 @@ public static SpvcResult RequireExtension(this SpvcCompiler compiler, [NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] + [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult RequireExtension(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "ext")] [NativeName(NativeNameType.Type, "const char*")] ref byte ext) { @@ -237,7 +281,7 @@ public static SpvcResult RequireExtension(this SpvcCompiler compiler, [NativeNam } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] + [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult RequireExtension(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "ext")] [NativeName(NativeNameType.Type, "const char*")] string ext) { @@ -266,15 +310,31 @@ public static SpvcResult RequireExtension(this SpvcCompiler compiler, [NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_num_required_extensions")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_num_required_extensions")] [return: NativeName(NativeNameType.Type, "size_t")] - public static nuint GetNumRequiredExtensions(this SpvcCompiler compiler) + public static ulong GetNumRequiredExtensions(this SpvcCompiler compiler) + { + ulong ret = SPIRV.SpvcCompilerGetNumRequiredExtensionsNative(compiler); + return ret; + } + + [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] + [return: NativeName(NativeNameType.Type, "const char*")] + public static byte* GetRequiredExtension(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "size_t")] ulong index) + { + byte* ret = SPIRV.SpvcCompilerGetRequiredExtensionNative(compiler, index); + return ret; + } + + [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] + [return: NativeName(NativeNameType.Type, "const char*")] + public static string GetRequiredExtensionS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "size_t")] ulong index) { - nuint ret = SPIRV.SpvcCompilerGetNumRequiredExtensionsNative(compiler); + string ret = Utils.DecodeStringUTF8(SPIRV.SpvcCompilerGetRequiredExtensionNative(compiler, index)); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* GetRequiredExtension(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "size_t")] nuint index) { @@ -282,7 +342,7 @@ public static nuint GetNumRequiredExtensions(this SpvcCompiler compiler) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] [return: NativeName(NativeNameType.Type, "const char*")] public static string GetRequiredExtensionS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "size_t")] nuint index) { @@ -290,7 +350,7 @@ public static string GetRequiredExtensionS(this SpvcCompiler compiler, [NativeNa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_flatten_buffer_block")] + [NativeName(NativeNameType.Func, "spvc_compiler_flatten_buffer_block")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult FlattenBufferBlock(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -298,7 +358,7 @@ public static SpvcResult FlattenBufferBlock(this SpvcCompiler compiler, [NativeN return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_variable_is_depth_or_compare")] + [NativeName(NativeNameType.Func, "spvc_compiler_variable_is_depth_or_compare")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte VariableIsDepthOrCompare(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -306,7 +366,7 @@ public static byte VariableIsDepthOrCompare(this SpvcCompiler compiler, [NativeN return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_mask_stage_output_by_location")] + [NativeName(NativeNameType.Func, "spvc_compiler_mask_stage_output_by_location")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MaskStageOutputByLocation(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location, [NativeName(NativeNameType.Param, "component")] [NativeName(NativeNameType.Type, "unsigned int")] uint component) { @@ -314,7 +374,7 @@ public static SpvcResult MaskStageOutputByLocation(this SpvcCompiler compiler, [ return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_mask_stage_output_by_builtin")] + [NativeName(NativeNameType.Func, "spvc_compiler_mask_stage_output_by_builtin")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MaskStageOutputByBuiltin(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "builtin")] [NativeName(NativeNameType.Type, "SpvBuiltIn")] SpvBuiltIn builtin) { @@ -322,6 +382,25 @@ public static SpvcResult MaskStageOutputByBuiltin(this SpvcCompiler compiler, [N return ret; } + /// /// HLSL specifics.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_root_constants_layout")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult HlslSetRootConstantsLayout(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constant_info")] [NativeName(NativeNameType.Type, "const spvc_hlsl_root_constants*")] SpvcHlslRootConstants* constantInfo, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] ulong count) + { + SpvcResult ret = SPIRV.SpvcCompilerHlslSetRootConstantsLayoutNative(compiler, constantInfo, count); + return ret; + } + + /// /// HLSL specifics.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_root_constants_layout")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult HlslSetRootConstantsLayout(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constant_info")] [NativeName(NativeNameType.Type, "const spvc_hlsl_root_constants*")] ref SpvcHlslRootConstants constantInfo, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] ulong count) + { + fixed (SpvcHlslRootConstants* pconstantInfo = &constantInfo) + { + SpvcResult ret = SPIRV.SpvcCompilerHlslSetRootConstantsLayoutNative(compiler, (SpvcHlslRootConstants*)pconstantInfo, count); + return ret; + } + } + /// /// HLSL specifics.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_root_constants_layout")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult HlslSetRootConstantsLayout(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constant_info")] [NativeName(NativeNameType.Type, "const spvc_hlsl_root_constants*")] SpvcHlslRootConstants* constantInfo, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) @@ -341,7 +420,26 @@ public static SpvcResult HlslSetRootConstantsLayout(this SpvcCompiler compiler, } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult HlslAddVertexAttributeRemap(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "remap")] [NativeName(NativeNameType.Type, "const spvc_hlsl_vertex_attribute_remap*")] SpvcHlslVertexAttributeRemap* remap, [NativeName(NativeNameType.Param, "remaps")] [NativeName(NativeNameType.Type, "size_t")] ulong remaps) + { + SpvcResult ret = SPIRV.SpvcCompilerHlslAddVertexAttributeRemapNative(compiler, remap, remaps); + return ret; + } + + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult HlslAddVertexAttributeRemap(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "remap")] [NativeName(NativeNameType.Type, "const spvc_hlsl_vertex_attribute_remap*")] ref SpvcHlslVertexAttributeRemap remap, [NativeName(NativeNameType.Param, "remaps")] [NativeName(NativeNameType.Type, "size_t")] ulong remaps) + { + fixed (SpvcHlslVertexAttributeRemap* premap = &remap) + { + SpvcResult ret = SPIRV.SpvcCompilerHlslAddVertexAttributeRemapNative(compiler, (SpvcHlslVertexAttributeRemap*)premap, remaps); + return ret; + } + } + + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult HlslAddVertexAttributeRemap(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "remap")] [NativeName(NativeNameType.Type, "const spvc_hlsl_vertex_attribute_remap*")] SpvcHlslVertexAttributeRemap* remap, [NativeName(NativeNameType.Param, "remaps")] [NativeName(NativeNameType.Type, "size_t")] nuint remaps) { @@ -349,7 +447,7 @@ public static SpvcResult HlslAddVertexAttributeRemap(this SpvcCompiler compiler, return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult HlslAddVertexAttributeRemap(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "remap")] [NativeName(NativeNameType.Type, "const spvc_hlsl_vertex_attribute_remap*")] ref SpvcHlslVertexAttributeRemap remap, [NativeName(NativeNameType.Param, "remaps")] [NativeName(NativeNameType.Type, "size_t")] nuint remaps) { @@ -360,7 +458,7 @@ public static SpvcResult HlslAddVertexAttributeRemap(this SpvcCompiler compiler, } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_remap_num_workgroups_builtin")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_remap_num_workgroups_builtin")] [return: NativeName(NativeNameType.Type, "spvc_variable_id")] public static uint HlslRemapNumWorkgroupsBuiltin(this SpvcCompiler compiler) { @@ -368,7 +466,7 @@ public static uint HlslRemapNumWorkgroupsBuiltin(this SpvcCompiler compiler) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_resource_binding_flags")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_resource_binding_flags")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult HlslSetResourceBindingFlags(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "spvc_hlsl_binding_flags")] uint flags) { @@ -376,7 +474,7 @@ public static SpvcResult HlslSetResourceBindingFlags(this SpvcCompiler compiler, return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_resource_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_resource_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult HlslAddResourceBinding(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_hlsl_resource_binding*")] SpvcHlslResourceBinding* binding) { @@ -384,7 +482,7 @@ public static SpvcResult HlslAddResourceBinding(this SpvcCompiler compiler, [Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_resource_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_resource_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult HlslAddResourceBinding(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_hlsl_resource_binding*")] ref SpvcHlslResourceBinding binding) { @@ -395,7 +493,7 @@ public static SpvcResult HlslAddResourceBinding(this SpvcCompiler compiler, [Nat } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_is_resource_used")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_is_resource_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte HlslIsResourceUsed(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "unsigned int")] uint set, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding) { @@ -419,7 +517,7 @@ public static byte MslNeedsAuxBuffer(this SpvcCompiler compiler) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_swizzle_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_swizzle_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte MslNeedsSwizzleBuffer(this SpvcCompiler compiler) { @@ -427,7 +525,7 @@ public static byte MslNeedsSwizzleBuffer(this SpvcCompiler compiler) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_buffer_size_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_buffer_size_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte MslNeedsBufferSizeBuffer(this SpvcCompiler compiler) { @@ -435,7 +533,7 @@ public static byte MslNeedsBufferSizeBuffer(this SpvcCompiler compiler) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_output_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_output_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte MslNeedsOutputBuffer(this SpvcCompiler compiler) { @@ -443,7 +541,7 @@ public static byte MslNeedsOutputBuffer(this SpvcCompiler compiler) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_patch_output_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_patch_output_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte MslNeedsPatchOutputBuffer(this SpvcCompiler compiler) { @@ -451,7 +549,7 @@ public static byte MslNeedsPatchOutputBuffer(this SpvcCompiler compiler) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_input_threadgroup_mem")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_input_threadgroup_mem")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte MslNeedsInputThreadgroupMem(this SpvcCompiler compiler) { @@ -459,7 +557,7 @@ public static byte MslNeedsInputThreadgroupMem(this SpvcCompiler compiler) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_vertex_attribute")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_vertex_attribute")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslAddVertexAttribute(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "attrs")] [NativeName(NativeNameType.Type, "const spvc_msl_vertex_attribute*")] SpvcMslVertexAttribute* attrs) { @@ -467,7 +565,7 @@ public static SpvcResult MslAddVertexAttribute(this SpvcCompiler compiler, [Nati return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_vertex_attribute")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_vertex_attribute")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslAddVertexAttribute(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "attrs")] [NativeName(NativeNameType.Type, "const spvc_msl_vertex_attribute*")] ref SpvcMslVertexAttribute attrs) { @@ -478,7 +576,7 @@ public static SpvcResult MslAddVertexAttribute(this SpvcCompiler compiler, [Nati } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_resource_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_resource_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslAddResourceBinding(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_msl_resource_binding*")] SpvcMslResourceBinding* binding) { @@ -486,7 +584,7 @@ public static SpvcResult MslAddResourceBinding(this SpvcCompiler compiler, [Nati return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_resource_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_resource_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslAddResourceBinding(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_msl_resource_binding*")] ref SpvcMslResourceBinding binding) { @@ -516,7 +614,7 @@ public static SpvcResult MslAddShaderInput(this SpvcCompiler compiler, [NativeNa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input_2")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input_2")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslAddShaderInput2(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] SpvcMslShaderInterfaceVar2* input) { @@ -524,7 +622,7 @@ public static SpvcResult MslAddShaderInput2(this SpvcCompiler compiler, [NativeN return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input_2")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input_2")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslAddShaderInput2(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] ref SpvcMslShaderInterfaceVar2 input) { @@ -554,7 +652,7 @@ public static SpvcResult MslAddShaderOutput(this SpvcCompiler compiler, [NativeN } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output_2")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output_2")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslAddShaderOutput2(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] SpvcMslShaderInterfaceVar2* output) { @@ -562,7 +660,7 @@ public static SpvcResult MslAddShaderOutput2(this SpvcCompiler compiler, [Native return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output_2")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output_2")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslAddShaderOutput2(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] ref SpvcMslShaderInterfaceVar2 output) { @@ -573,7 +671,7 @@ public static SpvcResult MslAddShaderOutput2(this SpvcCompiler compiler, [Native } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_discrete_descriptor_set")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_discrete_descriptor_set")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslAddDiscreteDescriptorSet(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet) { @@ -581,7 +679,7 @@ public static SpvcResult MslAddDiscreteDescriptorSet(this SpvcCompiler compiler, return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_argument_buffer_device_address_space")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_argument_buffer_device_address_space")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslSetArgumentBufferDeviceAddressSpace(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "device_address")] [NativeName(NativeNameType.Type, "spvc_bool")] byte deviceAddress) { @@ -597,7 +695,7 @@ public static byte MslIsVertexAttributeUsed(this SpvcCompiler compiler, [NativeN return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_shader_input_used")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_shader_input_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte MslIsShaderInputUsed(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location) { @@ -605,7 +703,7 @@ public static byte MslIsShaderInputUsed(this SpvcCompiler compiler, [NativeName( return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_shader_output_used")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_shader_output_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte MslIsShaderOutputUsed(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location) { @@ -613,7 +711,7 @@ public static byte MslIsShaderOutputUsed(this SpvcCompiler compiler, [NativeName return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_resource_used")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_resource_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte MslIsResourceUsed(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "unsigned int")] uint set, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding) { @@ -621,7 +719,7 @@ public static byte MslIsResourceUsed(this SpvcCompiler compiler, [NativeName(Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSampler(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler) { @@ -629,7 +727,7 @@ public static SpvcResult MslRemapConstexprSampler(this SpvcCompiler compiler, [N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSampler(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler) { @@ -640,7 +738,7 @@ public static SpvcResult MslRemapConstexprSampler(this SpvcCompiler compiler, [N } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSamplerByBinding(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler) { @@ -648,7 +746,7 @@ public static SpvcResult MslRemapConstexprSamplerByBinding(this SpvcCompiler com return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSamplerByBinding(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler) { @@ -659,7 +757,7 @@ public static SpvcResult MslRemapConstexprSamplerByBinding(this SpvcCompiler com } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSamplerYcbcr(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv) { @@ -667,7 +765,7 @@ public static SpvcResult MslRemapConstexprSamplerYcbcr(this SpvcCompiler compile return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSamplerYcbcr(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv) { @@ -678,7 +776,7 @@ public static SpvcResult MslRemapConstexprSamplerYcbcr(this SpvcCompiler compile } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSamplerYcbcr(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] ref SpvcMslSamplerYcbcrConversion conv) { @@ -689,7 +787,7 @@ public static SpvcResult MslRemapConstexprSamplerYcbcr(this SpvcCompiler compile } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSamplerYcbcr(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] ref SpvcMslSamplerYcbcrConversion conv) { @@ -703,7 +801,7 @@ public static SpvcResult MslRemapConstexprSamplerYcbcr(this SpvcCompiler compile } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSamplerByBindingYcbcr(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv) { @@ -711,7 +809,7 @@ public static SpvcResult MslRemapConstexprSamplerByBindingYcbcr(this SpvcCompile return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSamplerByBindingYcbcr(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv) { @@ -722,7 +820,7 @@ public static SpvcResult MslRemapConstexprSamplerByBindingYcbcr(this SpvcCompile } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSamplerByBindingYcbcr(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] ref SpvcMslSamplerYcbcrConversion conv) { @@ -733,7 +831,7 @@ public static SpvcResult MslRemapConstexprSamplerByBindingYcbcr(this SpvcCompile } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslRemapConstexprSamplerByBindingYcbcr(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] ref SpvcMslSamplerYcbcrConversion conv) { @@ -747,7 +845,7 @@ public static SpvcResult MslRemapConstexprSamplerByBindingYcbcr(this SpvcCompile } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_fragment_output_components")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_fragment_output_components")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslSetFragmentOutputComponents(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "unsigned int")] uint components) { @@ -755,7 +853,7 @@ public static SpvcResult MslSetFragmentOutputComponents(this SpvcCompiler compil return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_automatic_resource_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_automatic_resource_binding")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint MslGetAutomaticResourceBinding(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -763,7 +861,7 @@ public static uint MslGetAutomaticResourceBinding(this SpvcCompiler compiler, [N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_automatic_resource_binding_secondary")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_automatic_resource_binding_secondary")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint MslGetAutomaticResourceBindingSecondary(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -771,7 +869,7 @@ public static uint MslGetAutomaticResourceBindingSecondary(this SpvcCompiler com return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_dynamic_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_dynamic_buffer")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslAddDynamicBuffer(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index) { @@ -779,7 +877,7 @@ public static SpvcResult MslAddDynamicBuffer(this SpvcCompiler compiler, [Native return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_inline_uniform_block")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_inline_uniform_block")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslAddInlineUniformBlock(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding) { @@ -787,7 +885,7 @@ public static SpvcResult MslAddInlineUniformBlock(this SpvcCompiler compiler, [N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslSetCombinedSamplerSuffix(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] byte* suffix) { @@ -795,7 +893,7 @@ public static SpvcResult MslSetCombinedSamplerSuffix(this SpvcCompiler compiler, return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslSetCombinedSamplerSuffix(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] ref byte suffix) { @@ -806,7 +904,7 @@ public static SpvcResult MslSetCombinedSamplerSuffix(this SpvcCompiler compiler, } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult MslSetCombinedSamplerSuffix(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] string suffix) { @@ -835,7 +933,7 @@ public static SpvcResult MslSetCombinedSamplerSuffix(this SpvcCompiler compiler, return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_combined_sampler_suffix")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* MslGetCombinedSamplerSuffix(this SpvcCompiler compiler) { @@ -843,7 +941,7 @@ public static SpvcResult MslSetCombinedSamplerSuffix(this SpvcCompiler compiler, return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_combined_sampler_suffix")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "const char*")] public static string MslGetCombinedSamplerSuffixS(this SpvcCompiler compiler) { @@ -870,7 +968,7 @@ public static SpvcResult GetActiveInterfaceVariables(this SpvcCompiler compiler, } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_enabled_interface_variables")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_enabled_interface_variables")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SetEnabledInterfaceVariables(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "spvc_set")] SpvcSet set) { @@ -878,7 +976,7 @@ public static SpvcResult SetEnabledInterfaceVariables(this SpvcCompiler compiler return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources")] + [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult CreateShaderResources(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] SpvcResources* resources) { @@ -886,7 +984,7 @@ public static SpvcResult CreateShaderResources(this SpvcCompiler compiler, [Nati return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources")] + [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult CreateShaderResources(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] ref SpvcResources resources) { @@ -897,7 +995,7 @@ public static SpvcResult CreateShaderResources(this SpvcCompiler compiler, [Nati } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources_for_active_variables")] + [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources_for_active_variables")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult CreateShaderResourcesForActiveVariables(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] SpvcResources* resources, [NativeName(NativeNameType.Param, "active")] [NativeName(NativeNameType.Type, "spvc_set")] SpvcSet active) { @@ -905,7 +1003,7 @@ public static SpvcResult CreateShaderResourcesForActiveVariables(this SpvcCompil return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources_for_active_variables")] + [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources_for_active_variables")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult CreateShaderResourcesForActiveVariables(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] ref SpvcResources resources, [NativeName(NativeNameType.Param, "active")] [NativeName(NativeNameType.Type, "spvc_set")] SpvcSet active) { @@ -918,21 +1016,21 @@ public static SpvcResult CreateShaderResourcesForActiveVariables(this SpvcCompil /// /// Decorations.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_set_decoration")] [return: NativeName(NativeNameType.Type, "void")] - public static void SetDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "unsigned int")] uint argument) + public static void SetDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "unsigned int")] uint argument) { SPIRV.SpvcCompilerSetDecorationNative(compiler, id, decoration, argument); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] - public static void SetDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) + public static void SetDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) { SPIRV.SpvcCompilerSetDecorationStringNative(compiler, id, decoration, argument); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] - public static void SetDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) + public static void SetDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) { fixed (byte* pargument = &argument) { @@ -940,9 +1038,9 @@ public static void SetDecorationString(this SpvcCompiler compiler, [NativeName(N } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] - public static void SetDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) + public static void SetDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) { byte* pStr0 = null; int pStrSize0 = 0; @@ -968,16 +1066,16 @@ public static void SetDecorationString(this SpvcCompiler compiler, [NativeName(N } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] [return: NativeName(NativeNameType.Type, "void")] - public static void SetName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) + public static void SetName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) { SPIRV.SpvcCompilerSetNameNative(compiler, id, argument); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] [return: NativeName(NativeNameType.Type, "void")] - public static void SetName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) + public static void SetName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) { fixed (byte* pargument = &argument) { @@ -985,9 +1083,9 @@ public static void SetName(this SpvcCompiler compiler, [NativeName(NativeNameTyp } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] [return: NativeName(NativeNameType.Type, "void")] - public static void SetName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) + public static void SetName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1013,21 +1111,21 @@ public static void SetName(this SpvcCompiler compiler, [NativeName(NativeNameTyp } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration")] [return: NativeName(NativeNameType.Type, "void")] public static void SetMemberDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "unsigned int")] uint argument) { SPIRV.SpvcCompilerSetMemberDecorationNative(compiler, id, memberIndex, decoration, argument); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] public static void SetMemberDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) { SPIRV.SpvcCompilerSetMemberDecorationStringNative(compiler, id, memberIndex, decoration, argument); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] public static void SetMemberDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) { @@ -1037,7 +1135,7 @@ public static void SetMemberDecorationString(this SpvcCompiler compiler, [Native } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] public static void SetMemberDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) { @@ -1065,14 +1163,14 @@ public static void SetMemberDecorationString(this SpvcCompiler compiler, [Native } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] [return: NativeName(NativeNameType.Type, "void")] public static void SetMemberName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) { SPIRV.SpvcCompilerSetMemberNameNative(compiler, id, memberIndex, argument); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] [return: NativeName(NativeNameType.Type, "void")] public static void SetMemberName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) { @@ -1082,7 +1180,7 @@ public static void SetMemberName(this SpvcCompiler compiler, [NativeName(NativeN } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] [return: NativeName(NativeNameType.Type, "void")] public static void SetMemberName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) { @@ -1110,29 +1208,29 @@ public static void SetMemberName(this SpvcCompiler compiler, [NativeName(NativeN } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_unset_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_unset_decoration")] [return: NativeName(NativeNameType.Type, "void")] - public static void UnsetDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) + public static void UnsetDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { SPIRV.SpvcCompilerUnsetDecorationNative(compiler, id, decoration); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_unset_member_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_unset_member_decoration")] [return: NativeName(NativeNameType.Type, "void")] public static void UnsetMemberDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { SPIRV.SpvcCompilerUnsetMemberDecorationNative(compiler, id, memberIndex, decoration); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_has_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_has_decoration")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - public static byte HasDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) + public static byte HasDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { byte ret = SPIRV.SpvcCompilerHasDecorationNative(compiler, id, decoration); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_has_member_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_has_member_decoration")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte HasMemberDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { @@ -1140,47 +1238,47 @@ public static byte HasMemberDecoration(this SpvcCompiler compiler, [NativeName(N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_name")] [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* GetName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id) + public static byte* GetName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id) { byte* ret = SPIRV.SpvcCompilerGetNameNative(compiler, id); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_name")] [return: NativeName(NativeNameType.Type, "const char*")] - public static string GetNameS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id) + public static string GetNameS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id) { string ret = Utils.DecodeStringUTF8(SPIRV.SpvcCompilerGetNameNative(compiler, id)); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration")] [return: NativeName(NativeNameType.Type, "unsigned int")] - public static uint GetDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) + public static uint GetDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { uint ret = SPIRV.SpvcCompilerGetDecorationNative(compiler, id, decoration); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration_string")] [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* GetDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) + public static byte* GetDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { byte* ret = SPIRV.SpvcCompilerGetDecorationStringNative(compiler, id, decoration); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration_string")] [return: NativeName(NativeNameType.Type, "const char*")] - public static string GetDecorationStringS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) + public static string GetDecorationStringS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { string ret = Utils.DecodeStringUTF8(SPIRV.SpvcCompilerGetDecorationStringNative(compiler, id, decoration)); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint GetMemberDecoration(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { @@ -1188,7 +1286,7 @@ public static uint GetMemberDecoration(this SpvcCompiler compiler, [NativeName(N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration_string")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* GetMemberDecorationString(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { @@ -1196,7 +1294,7 @@ public static uint GetMemberDecoration(this SpvcCompiler compiler, [NativeName(N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration_string")] [return: NativeName(NativeNameType.Type, "const char*")] public static string GetMemberDecorationStringS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { @@ -1204,7 +1302,7 @@ public static string GetMemberDecorationStringS(this SpvcCompiler compiler, [Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_member_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* GetMemberName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex) { @@ -1212,7 +1310,7 @@ public static string GetMemberDecorationStringS(this SpvcCompiler compiler, [Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_member_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static string GetMemberNameS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex) { @@ -1222,7 +1320,7 @@ public static string GetMemberNameS(this SpvcCompiler compiler, [NativeName(Nati /// /// Entry points.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_entry_points")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetEntryPoints(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] SpvcEntryPoint** entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numEntryPoints) + public static SpvcResult GetEntryPoints(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] SpvcEntryPoint** entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numEntryPoints) { SpvcResult ret = SPIRV.SpvcCompilerGetEntryPointsNative(compiler, entryPoints, numEntryPoints); return ret; @@ -1230,7 +1328,7 @@ public static SpvcResult GetEntryPoints(this SpvcCompiler compiler, [NativeName( /// /// Entry points.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_entry_points")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetEntryPoints(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] ref SpvcEntryPoint* entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numEntryPoints) + public static SpvcResult GetEntryPoints(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] ref SpvcEntryPoint* entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numEntryPoints) { fixed (SpvcEntryPoint** pentryPoints = &entryPoints) { @@ -1245,7 +1343,7 @@ public static SpvcResult GetEntryPoints(this SpvcCompiler compiler, [NativeName( { fixed (nuint* pnumEntryPoints = &numEntryPoints) { - SpvcResult ret = SPIRV.SpvcCompilerGetEntryPointsNative(compiler, entryPoints, (nuint*)pnumEntryPoints); + SpvcResult ret = SPIRV.SpvcCompilerGetEntryPointsNative(compiler, entryPoints, (ulong*)pnumEntryPoints); return ret; } } @@ -1258,13 +1356,13 @@ public static SpvcResult GetEntryPoints(this SpvcCompiler compiler, [NativeName( { fixed (nuint* pnumEntryPoints = &numEntryPoints) { - SpvcResult ret = SPIRV.SpvcCompilerGetEntryPointsNative(compiler, (SpvcEntryPoint**)pentryPoints, (nuint*)pnumEntryPoints); + SpvcResult ret = SPIRV.SpvcCompilerGetEntryPointsNative(compiler, (SpvcEntryPoint**)pentryPoints, (ulong*)pnumEntryPoints); return ret; } } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SetEntryPoint(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1272,7 +1370,7 @@ public static SpvcResult SetEntryPoint(this SpvcCompiler compiler, [NativeName(N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SetEntryPoint(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1283,7 +1381,7 @@ public static SpvcResult SetEntryPoint(this SpvcCompiler compiler, [NativeName(N } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SetEntryPoint(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1312,7 +1410,7 @@ public static SpvcResult SetEntryPoint(this SpvcCompiler compiler, [NativeName(N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] byte* oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] byte* newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1320,7 +1418,7 @@ public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] byte* newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1331,7 +1429,7 @@ public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeNam } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] string oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] byte* newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1360,7 +1458,7 @@ public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] byte* oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1371,7 +1469,7 @@ public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeNam } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] byte* oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] string newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1400,7 +1498,7 @@ public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1414,7 +1512,7 @@ public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeNam } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] string oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] string newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1464,7 +1562,7 @@ public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* GetCleansedEntryPointName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1472,7 +1570,7 @@ public static SpvcResult RenameEntryPoint(this SpvcCompiler compiler, [NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static string GetCleansedEntryPointNameS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1480,7 +1578,7 @@ public static string GetCleansedEntryPointNameS(this SpvcCompiler compiler, [Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* GetCleansedEntryPointName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1491,7 +1589,7 @@ public static string GetCleansedEntryPointNameS(this SpvcCompiler compiler, [Nat } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static string GetCleansedEntryPointNameS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1502,7 +1600,7 @@ public static string GetCleansedEntryPointNameS(this SpvcCompiler compiler, [Nat } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* GetCleansedEntryPointName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1531,7 +1629,7 @@ public static string GetCleansedEntryPointNameS(this SpvcCompiler compiler, [Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static string GetCleansedEntryPointNameS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -1560,38 +1658,38 @@ public static string GetCleansedEntryPointNameS(this SpvcCompiler compiler, [Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_execution_mode")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_execution_mode")] [return: NativeName(NativeNameType.Type, "void")] public static void SetExecutionMode(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode) { SPIRV.SpvcCompilerSetExecutionModeNative(compiler, mode); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_unset_execution_mode")] + [NativeName(NativeNameType.Func, "spvc_compiler_unset_execution_mode")] [return: NativeName(NativeNameType.Type, "void")] public static void UnsetExecutionMode(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode) { SPIRV.SpvcCompilerUnsetExecutionModeNative(compiler, mode); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_execution_mode_with_arguments")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_execution_mode_with_arguments")] [return: NativeName(NativeNameType.Type, "void")] public static void SetExecutionModeWithArguments(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode, [NativeName(NativeNameType.Param, "arg0")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg0, [NativeName(NativeNameType.Param, "arg1")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg1, [NativeName(NativeNameType.Param, "arg2")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg2) { SPIRV.SpvcCompilerSetExecutionModeWithArgumentsNative(compiler, mode, arg0, arg1, arg2); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetExecutionModes(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] SpvExecutionMode** modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numModes) + public static SpvcResult GetExecutionModes(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] SpvExecutionMode** modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numModes) { SpvcResult ret = SPIRV.SpvcCompilerGetExecutionModesNative(compiler, modes, numModes); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetExecutionModes(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] ref SpvExecutionMode* modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numModes) + public static SpvcResult GetExecutionModes(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] ref SpvExecutionMode* modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numModes) { fixed (SpvExecutionMode** pmodes = &modes) { @@ -1600,18 +1698,18 @@ public static SpvcResult GetExecutionModes(this SpvcCompiler compiler, [NativeNa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetExecutionModes(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] SpvExecutionMode** modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numModes) { fixed (nuint* pnumModes = &numModes) { - SpvcResult ret = SPIRV.SpvcCompilerGetExecutionModesNative(compiler, modes, (nuint*)pnumModes); + SpvcResult ret = SPIRV.SpvcCompilerGetExecutionModesNative(compiler, modes, (ulong*)pnumModes); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetExecutionModes(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] ref SpvExecutionMode* modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numModes) { @@ -1619,13 +1717,13 @@ public static SpvcResult GetExecutionModes(this SpvcCompiler compiler, [NativeNa { fixed (nuint* pnumModes = &numModes) { - SpvcResult ret = SPIRV.SpvcCompilerGetExecutionModesNative(compiler, (SpvExecutionMode**)pmodes, (nuint*)pnumModes); + SpvcResult ret = SPIRV.SpvcCompilerGetExecutionModesNative(compiler, (SpvExecutionMode**)pmodes, (ulong*)pnumModes); return ret; } } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_mode_argument")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_mode_argument")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint GetExecutionModeArgument(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode) { @@ -1633,7 +1731,7 @@ public static uint GetExecutionModeArgument(this SpvcCompiler compiler, [NativeN return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_mode_argument_by_index")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_mode_argument_by_index")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint GetExecutionModeArgumentByIndex(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index) { @@ -1641,7 +1739,7 @@ public static uint GetExecutionModeArgumentByIndex(this SpvcCompiler compiler, [ return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_model")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_model")] [return: NativeName(NativeNameType.Type, "SpvExecutionModel")] public static SpvExecutionModel GetExecutionModel(this SpvcCompiler compiler) { @@ -1649,14 +1747,14 @@ public static SpvExecutionModel GetExecutionModel(this SpvcCompiler compiler) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_update_active_builtins")] + [NativeName(NativeNameType.Func, "spvc_compiler_update_active_builtins")] [return: NativeName(NativeNameType.Type, "void")] public static void UpdateActiveBuiltins(this SpvcCompiler compiler) { SPIRV.SpvcCompilerUpdateActiveBuiltinsNative(compiler); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_has_active_builtin")] + [NativeName(NativeNameType.Func, "spvc_compiler_has_active_builtin")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte HasActiveBuiltin(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "builtin")] [NativeName(NativeNameType.Type, "SpvBuiltIn")] SpvBuiltIn builtin, [NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "SpvStorageClass")] SpvStorageClass storage) { @@ -1674,7 +1772,7 @@ public static SpvcType GetTypeHandle(this SpvcCompiler compiler, [NativeName(Nat /// /// Buffer layout query.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetDeclaredStructSize(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* size) + public static SpvcResult GetDeclaredStructSize(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* size) { SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredStructSizeNative(compiler, structType, size); return ret; @@ -1686,50 +1784,69 @@ public static SpvcResult GetDeclaredStructSize(this SpvcCompiler compiler, [Nati { fixed (nuint* psize = &size) { - SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredStructSizeNative(compiler, structType, (nuint*)psize); + SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredStructSizeNative(compiler, structType, (ulong*)psize); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetDeclaredStructSizeRuntimeArray(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] nuint arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* size) + public static SpvcResult GetDeclaredStructSizeRuntimeArray(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] ulong arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* size) { SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative(compiler, structType, arraySize, size); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult GetDeclaredStructSizeRuntimeArray(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] nuint arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* size) + { + SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative(compiler, structType, arraySize, size); + return ret; + } + + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult GetDeclaredStructSizeRuntimeArray(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] ulong arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint size) + { + fixed (nuint* psize = &size) + { + SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative(compiler, structType, arraySize, (ulong*)psize); + return ret; + } + } + + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetDeclaredStructSizeRuntimeArray(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] nuint arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint size) { fixed (nuint* psize = &size) { - SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative(compiler, structType, arraySize, (nuint*)psize); + SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative(compiler, structType, arraySize, (ulong*)psize); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_member_size")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_member_size")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetDeclaredStructMemberSize(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* size) + public static SpvcResult GetDeclaredStructMemberSize(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* size) { SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredStructMemberSizeNative(compiler, type, index, size); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_member_size")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_member_size")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetDeclaredStructMemberSize(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint size) { fixed (nuint* psize = &size) { - SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredStructMemberSizeNative(compiler, type, index, (nuint*)psize); + SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredStructMemberSizeNative(compiler, type, index, (ulong*)psize); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_offset")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_offset")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult TypeStructMemberOffset(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* offset) { @@ -1737,7 +1854,7 @@ public static SpvcResult TypeStructMemberOffset(this SpvcCompiler compiler, [Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_offset")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_offset")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult TypeStructMemberOffset(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint offset) { @@ -1748,7 +1865,7 @@ public static SpvcResult TypeStructMemberOffset(this SpvcCompiler compiler, [Nat } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_array_stride")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_array_stride")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult TypeStructMemberArrayStride(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* stride) { @@ -1756,7 +1873,7 @@ public static SpvcResult TypeStructMemberArrayStride(this SpvcCompiler compiler, return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_array_stride")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_array_stride")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult TypeStructMemberArrayStride(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint stride) { @@ -1767,7 +1884,7 @@ public static SpvcResult TypeStructMemberArrayStride(this SpvcCompiler compiler, } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_matrix_stride")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_matrix_stride")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult TypeStructMemberMatrixStride(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* stride) { @@ -1775,7 +1892,7 @@ public static SpvcResult TypeStructMemberMatrixStride(this SpvcCompiler compiler return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_matrix_stride")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_matrix_stride")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult TypeStructMemberMatrixStride(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint stride) { @@ -1805,7 +1922,7 @@ public static SpvcResult BuildDummySamplerForCombinedImages(this SpvcCompiler co } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_build_combined_image_samplers")] + [NativeName(NativeNameType.Func, "spvc_compiler_build_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult BuildCombinedImageSamplers(this SpvcCompiler compiler) { @@ -1813,17 +1930,17 @@ public static SpvcResult BuildCombinedImageSamplers(this SpvcCompiler compiler) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetCombinedImageSamplers(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] SpvcCombinedImageSampler** samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numSamplers) + public static SpvcResult GetCombinedImageSamplers(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] SpvcCombinedImageSampler** samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numSamplers) { SpvcResult ret = SPIRV.SpvcCompilerGetCombinedImageSamplersNative(compiler, samplers, numSamplers); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetCombinedImageSamplers(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] ref SpvcCombinedImageSampler* samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numSamplers) + public static SpvcResult GetCombinedImageSamplers(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] ref SpvcCombinedImageSampler* samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numSamplers) { fixed (SpvcCombinedImageSampler** psamplers = &samplers) { @@ -1832,18 +1949,18 @@ public static SpvcResult GetCombinedImageSamplers(this SpvcCompiler compiler, [N } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetCombinedImageSamplers(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] SpvcCombinedImageSampler** samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numSamplers) { fixed (nuint* pnumSamplers = &numSamplers) { - SpvcResult ret = SPIRV.SpvcCompilerGetCombinedImageSamplersNative(compiler, samplers, (nuint*)pnumSamplers); + SpvcResult ret = SPIRV.SpvcCompilerGetCombinedImageSamplersNative(compiler, samplers, (ulong*)pnumSamplers); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetCombinedImageSamplers(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] ref SpvcCombinedImageSampler* samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numSamplers) { @@ -1851,7 +1968,7 @@ public static SpvcResult GetCombinedImageSamplers(this SpvcCompiler compiler, [N { fixed (nuint* pnumSamplers = &numSamplers) { - SpvcResult ret = SPIRV.SpvcCompilerGetCombinedImageSamplersNative(compiler, (SpvcCombinedImageSampler**)psamplers, (nuint*)pnumSamplers); + SpvcResult ret = SPIRV.SpvcCompilerGetCombinedImageSamplersNative(compiler, (SpvcCombinedImageSampler**)psamplers, (ulong*)pnumSamplers); return ret; } } @@ -1859,7 +1976,7 @@ public static SpvcResult GetCombinedImageSamplers(this SpvcCompiler compiler, [N /// /// Constants
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] SpvcSpecializationConstant** constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numConstants) + public static SpvcResult GetSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] SpvcSpecializationConstant** constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numConstants) { SpvcResult ret = SPIRV.SpvcCompilerGetSpecializationConstantsNative(compiler, constants, numConstants); return ret; @@ -1867,7 +1984,7 @@ public static SpvcResult GetSpecializationConstants(this SpvcCompiler compiler, /// /// Constants
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] ref SpvcSpecializationConstant* constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numConstants) + public static SpvcResult GetSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] ref SpvcSpecializationConstant* constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numConstants) { fixed (SpvcSpecializationConstant** pconstants = &constants) { @@ -1882,7 +1999,7 @@ public static SpvcResult GetSpecializationConstants(this SpvcCompiler compiler, { fixed (nuint* pnumConstants = &numConstants) { - SpvcResult ret = SPIRV.SpvcCompilerGetSpecializationConstantsNative(compiler, constants, (nuint*)pnumConstants); + SpvcResult ret = SPIRV.SpvcCompilerGetSpecializationConstantsNative(compiler, constants, (ulong*)pnumConstants); return ret; } } @@ -1895,13 +2012,13 @@ public static SpvcResult GetSpecializationConstants(this SpvcCompiler compiler, { fixed (nuint* pnumConstants = &numConstants) { - SpvcResult ret = SPIRV.SpvcCompilerGetSpecializationConstantsNative(compiler, (SpvcSpecializationConstant**)pconstants, (nuint*)pnumConstants); + SpvcResult ret = SPIRV.SpvcCompilerGetSpecializationConstantsNative(compiler, (SpvcSpecializationConstant**)pconstants, (ulong*)pnumConstants); return ret; } } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_constant_handle")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_constant_handle")] [return: NativeName(NativeNameType.Type, "spvc_constant")] public static SpvcConstant GetConstantHandle(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_constant_id")] uint id) { @@ -1909,7 +2026,7 @@ public static SpvcConstant GetConstantHandle(this SpvcCompiler compiler, [Native return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* z) { @@ -1917,7 +2034,7 @@ public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler com return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* z) { @@ -1928,7 +2045,7 @@ public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler com } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* z) { @@ -1939,7 +2056,7 @@ public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler com } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* z) { @@ -1953,7 +2070,7 @@ public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler com } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant z) { @@ -1964,7 +2081,7 @@ public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler com } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant z) { @@ -1978,7 +2095,7 @@ public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler com } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant z) { @@ -1992,7 +2109,7 @@ public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler com } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant z) { @@ -2011,7 +2128,7 @@ public static uint GetWorkGroupSizeSpecializationConstants(this SpvcCompiler com /// /// Buffer ranges
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_buffer_ranges")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetActiveBufferRanges(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] SpvcBufferRange** ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numRanges) + public static SpvcResult GetActiveBufferRanges(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] SpvcBufferRange** ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numRanges) { SpvcResult ret = SPIRV.SpvcCompilerGetActiveBufferRangesNative(compiler, id, ranges, numRanges); return ret; @@ -2019,7 +2136,7 @@ public static SpvcResult GetActiveBufferRanges(this SpvcCompiler compiler, [Nati /// /// Buffer ranges
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_buffer_ranges")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetActiveBufferRanges(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] ref SpvcBufferRange* ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numRanges) + public static SpvcResult GetActiveBufferRanges(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] ref SpvcBufferRange* ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numRanges) { fixed (SpvcBufferRange** pranges = &ranges) { @@ -2034,7 +2151,7 @@ public static SpvcResult GetActiveBufferRanges(this SpvcCompiler compiler, [Nati { fixed (nuint* pnumRanges = &numRanges) { - SpvcResult ret = SPIRV.SpvcCompilerGetActiveBufferRangesNative(compiler, id, ranges, (nuint*)pnumRanges); + SpvcResult ret = SPIRV.SpvcCompilerGetActiveBufferRangesNative(compiler, id, ranges, (ulong*)pnumRanges); return ret; } } @@ -2047,7 +2164,7 @@ public static SpvcResult GetActiveBufferRanges(this SpvcCompiler compiler, [Nati { fixed (nuint* pnumRanges = &numRanges) { - SpvcResult ret = SPIRV.SpvcCompilerGetActiveBufferRangesNative(compiler, id, (SpvcBufferRange**)pranges, (nuint*)pnumRanges); + SpvcResult ret = SPIRV.SpvcCompilerGetActiveBufferRangesNative(compiler, id, (SpvcBufferRange**)pranges, (ulong*)pnumRanges); return ret; } } @@ -2072,7 +2189,7 @@ public static byte GetBinaryOffsetForDecoration(this SpvcCompiler compiler, [Nat } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_buffer_is_hlsl_counter_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_buffer_is_hlsl_counter_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte BufferIsHlslCounterBuffer(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -2080,7 +2197,7 @@ public static byte BufferIsHlslCounterBuffer(this SpvcCompiler compiler, [Native return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_buffer_get_hlsl_counter_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_buffer_get_hlsl_counter_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte BufferGetHlslCounterBuffer(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "counter_id")] [NativeName(NativeNameType.Type, "spvc_variable_id*")] uint* counterId) { @@ -2088,7 +2205,7 @@ public static byte BufferGetHlslCounterBuffer(this SpvcCompiler compiler, [Nativ return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_buffer_get_hlsl_counter_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_buffer_get_hlsl_counter_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte BufferGetHlslCounterBuffer(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "counter_id")] [NativeName(NativeNameType.Type, "spvc_variable_id*")] ref uint counterId) { @@ -2099,17 +2216,17 @@ public static byte BufferGetHlslCounterBuffer(this SpvcCompiler compiler, [Nativ } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetDeclaredCapabilities(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] SpvCapability** capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numCapabilities) + public static SpvcResult GetDeclaredCapabilities(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] SpvCapability** capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numCapabilities) { SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredCapabilitiesNative(compiler, capabilities, numCapabilities); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetDeclaredCapabilities(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] ref SpvCapability* capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numCapabilities) + public static SpvcResult GetDeclaredCapabilities(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] ref SpvCapability* capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numCapabilities) { fixed (SpvCapability** pcapabilities = &capabilities) { @@ -2118,18 +2235,18 @@ public static SpvcResult GetDeclaredCapabilities(this SpvcCompiler compiler, [Na } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetDeclaredCapabilities(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] SpvCapability** capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numCapabilities) { fixed (nuint* pnumCapabilities = &numCapabilities) { - SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredCapabilitiesNative(compiler, capabilities, (nuint*)pnumCapabilities); + SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredCapabilitiesNative(compiler, capabilities, (ulong*)pnumCapabilities); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetDeclaredCapabilities(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] ref SpvCapability* capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numCapabilities) { @@ -2137,23 +2254,23 @@ public static SpvcResult GetDeclaredCapabilities(this SpvcCompiler compiler, [Na { fixed (nuint* pnumCapabilities = &numCapabilities) { - SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredCapabilitiesNative(compiler, (SpvCapability**)pcapabilities, (nuint*)pnumCapabilities); + SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredCapabilitiesNative(compiler, (SpvCapability**)pcapabilities, (ulong*)pnumCapabilities); return ret; } } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetDeclaredExtensions(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] byte*** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numExtensions) + public static SpvcResult GetDeclaredExtensions(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] byte*** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numExtensions) { SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredExtensionsNative(compiler, extensions, numExtensions); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetDeclaredExtensions(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] ref byte** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numExtensions) + public static SpvcResult GetDeclaredExtensions(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] ref byte** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numExtensions) { fixed (byte*** pextensions = &extensions) { @@ -2162,18 +2279,18 @@ public static SpvcResult GetDeclaredExtensions(this SpvcCompiler compiler, [Nati } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetDeclaredExtensions(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] byte*** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numExtensions) { fixed (nuint* pnumExtensions = &numExtensions) { - SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredExtensionsNative(compiler, extensions, (nuint*)pnumExtensions); + SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredExtensionsNative(compiler, extensions, (ulong*)pnumExtensions); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetDeclaredExtensions(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] ref byte** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numExtensions) { @@ -2181,13 +2298,13 @@ public static SpvcResult GetDeclaredExtensions(this SpvcCompiler compiler, [Nati { fixed (nuint* pnumExtensions = &numExtensions) { - SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredExtensionsNative(compiler, (byte***)pextensions, (nuint*)pnumExtensions); + SpvcResult ret = SPIRV.SpvcCompilerGetDeclaredExtensionsNative(compiler, (byte***)pextensions, (ulong*)pnumExtensions); return ret; } } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_remapped_declared_block_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_remapped_declared_block_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* GetRemappedDeclaredBlockName(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -2195,7 +2312,7 @@ public static SpvcResult GetDeclaredExtensions(this SpvcCompiler compiler, [Nati return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_remapped_declared_block_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_remapped_declared_block_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static string GetRemappedDeclaredBlockNameS(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -2203,17 +2320,17 @@ public static string GetRemappedDeclaredBlockNameS(this SpvcCompiler compiler, [ return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetBufferBlockDecorations(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] SpvDecoration** decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numDecorations) + public static SpvcResult GetBufferBlockDecorations(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] SpvDecoration** decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numDecorations) { SpvcResult ret = SPIRV.SpvcCompilerGetBufferBlockDecorationsNative(compiler, id, decorations, numDecorations); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetBufferBlockDecorations(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] ref SpvDecoration* decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numDecorations) + public static SpvcResult GetBufferBlockDecorations(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] ref SpvDecoration* decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numDecorations) { fixed (SpvDecoration** pdecorations = &decorations) { @@ -2222,18 +2339,18 @@ public static SpvcResult GetBufferBlockDecorations(this SpvcCompiler compiler, [ } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetBufferBlockDecorations(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] SpvDecoration** decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numDecorations) { fixed (nuint* pnumDecorations = &numDecorations) { - SpvcResult ret = SPIRV.SpvcCompilerGetBufferBlockDecorationsNative(compiler, id, decorations, (nuint*)pnumDecorations); + SpvcResult ret = SPIRV.SpvcCompilerGetBufferBlockDecorationsNative(compiler, id, decorations, (ulong*)pnumDecorations); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetBufferBlockDecorations(this SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] ref SpvDecoration* decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numDecorations) { @@ -2241,7 +2358,7 @@ public static SpvcResult GetBufferBlockDecorations(this SpvcCompiler compiler, [ { fixed (nuint* pnumDecorations = &numDecorations) { - SpvcResult ret = SPIRV.SpvcCompilerGetBufferBlockDecorationsNative(compiler, id, (SpvDecoration**)pdecorations, (nuint*)pnumDecorations); + SpvcResult ret = SPIRV.SpvcCompilerGetBufferBlockDecorationsNative(compiler, id, (SpvDecoration**)pdecorations, (ulong*)pnumDecorations); return ret; } } @@ -2255,7 +2372,7 @@ public static SpvcResult SetBool(this SpvcCompilerOptions options, [NativeName(N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_options_set_uint")] + [NativeName(NativeNameType.Func, "spvc_compiler_options_set_uint")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SetUint(this SpvcCompilerOptions options, [NativeName(NativeNameType.Param, "option")] [NativeName(NativeNameType.Type, "spvc_compiler_option")] SpvcCompilerOption option, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned int")] uint value) { @@ -2263,17 +2380,17 @@ public static SpvcResult SetUint(this SpvcCompilerOptions options, [NativeName(N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] SpvcReflectedResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* resourceSize) + public static SpvcResult GetResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] SpvcReflectedResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* resourceSize) { SpvcResult ret = SPIRV.SpvcResourcesGetResourceListForTypeNative(resources, type, resourceList, resourceSize); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] ref SpvcReflectedResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* resourceSize) + public static SpvcResult GetResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] ref SpvcReflectedResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* resourceSize) { fixed (SpvcReflectedResource** presourceList = &resourceList) { @@ -2282,18 +2399,18 @@ public static SpvcResult GetResourceListForType(this SpvcResources resources, [N } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] SpvcReflectedResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint resourceSize) { fixed (nuint* presourceSize = &resourceSize) { - SpvcResult ret = SPIRV.SpvcResourcesGetResourceListForTypeNative(resources, type, resourceList, (nuint*)presourceSize); + SpvcResult ret = SPIRV.SpvcResourcesGetResourceListForTypeNative(resources, type, resourceList, (ulong*)presourceSize); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] ref SpvcReflectedResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint resourceSize) { @@ -2301,23 +2418,23 @@ public static SpvcResult GetResourceListForType(this SpvcResources resources, [N { fixed (nuint* presourceSize = &resourceSize) { - SpvcResult ret = SPIRV.SpvcResourcesGetResourceListForTypeNative(resources, type, (SpvcReflectedResource**)presourceList, (nuint*)presourceSize); + SpvcResult ret = SPIRV.SpvcResourcesGetResourceListForTypeNative(resources, type, (SpvcReflectedResource**)presourceList, (ulong*)presourceSize); return ret; } } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetBuiltinResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] SpvcReflectedBuiltinResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* resourceSize) + public static SpvcResult GetBuiltinResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] SpvcReflectedBuiltinResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* resourceSize) { SpvcResult ret = SPIRV.SpvcResourcesGetBuiltinResourceListForTypeNative(resources, type, resourceList, resourceSize); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult GetBuiltinResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] ref SpvcReflectedBuiltinResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* resourceSize) + public static SpvcResult GetBuiltinResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] ref SpvcReflectedBuiltinResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* resourceSize) { fixed (SpvcReflectedBuiltinResource** presourceList = &resourceList) { @@ -2326,18 +2443,18 @@ public static SpvcResult GetBuiltinResourceListForType(this SpvcResources resour } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetBuiltinResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] SpvcReflectedBuiltinResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint resourceSize) { fixed (nuint* presourceSize = &resourceSize) { - SpvcResult ret = SPIRV.SpvcResourcesGetBuiltinResourceListForTypeNative(resources, type, resourceList, (nuint*)presourceSize); + SpvcResult ret = SPIRV.SpvcResourcesGetBuiltinResourceListForTypeNative(resources, type, resourceList, (ulong*)presourceSize); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult GetBuiltinResourceListForType(this SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] ref SpvcReflectedBuiltinResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint resourceSize) { @@ -2345,7 +2462,7 @@ public static SpvcResult GetBuiltinResourceListForType(this SpvcResources resour { fixed (nuint* presourceSize = &resourceSize) { - SpvcResult ret = SPIRV.SpvcResourcesGetBuiltinResourceListForTypeNative(resources, type, (SpvcReflectedBuiltinResource**)presourceList, (nuint*)presourceSize); + SpvcResult ret = SPIRV.SpvcResourcesGetBuiltinResourceListForTypeNative(resources, type, (SpvcReflectedBuiltinResource**)presourceList, (ulong*)presourceSize); return ret; } } @@ -2359,7 +2476,7 @@ public static uint GetBaseTypeId(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_basetype")] + [NativeName(NativeNameType.Func, "spvc_type_get_basetype")] [return: NativeName(NativeNameType.Type, "spvc_basetype")] public static SpvcBasetype GetBasetype(this SpvcType type) { @@ -2367,7 +2484,7 @@ public static SpvcBasetype GetBasetype(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_bit_width")] + [NativeName(NativeNameType.Func, "spvc_type_get_bit_width")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint GetBitWidth(this SpvcType type) { @@ -2375,7 +2492,7 @@ public static uint GetBitWidth(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_vector_size")] + [NativeName(NativeNameType.Func, "spvc_type_get_vector_size")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint GetVectorSize(this SpvcType type) { @@ -2383,7 +2500,7 @@ public static uint GetVectorSize(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_columns")] + [NativeName(NativeNameType.Func, "spvc_type_get_columns")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint GetColumns(this SpvcType type) { @@ -2391,7 +2508,7 @@ public static uint GetColumns(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_num_array_dimensions")] + [NativeName(NativeNameType.Func, "spvc_type_get_num_array_dimensions")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint GetNumArrayDimensions(this SpvcType type) { @@ -2399,7 +2516,7 @@ public static uint GetNumArrayDimensions(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_array_dimension_is_literal")] + [NativeName(NativeNameType.Func, "spvc_type_array_dimension_is_literal")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte ArrayDimensionIsLiteral(this SpvcType type, [NativeName(NativeNameType.Param, "dimension")] [NativeName(NativeNameType.Type, "unsigned int")] uint dimension) { @@ -2407,15 +2524,15 @@ public static byte ArrayDimensionIsLiteral(this SpvcType type, [NativeName(Nativ return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_array_dimension")] + [NativeName(NativeNameType.Func, "spvc_type_get_array_dimension")] [return: NativeName(NativeNameType.Type, "SpvId")] - public static SpvId GetArrayDimension(this SpvcType type, [NativeName(NativeNameType.Param, "dimension")] [NativeName(NativeNameType.Type, "unsigned int")] uint dimension) + public static uint GetArrayDimension(this SpvcType type, [NativeName(NativeNameType.Param, "dimension")] [NativeName(NativeNameType.Type, "unsigned int")] uint dimension) { - SpvId ret = SPIRV.SpvcTypeGetArrayDimensionNative(type, dimension); + uint ret = SPIRV.SpvcTypeGetArrayDimensionNative(type, dimension); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_num_member_types")] + [NativeName(NativeNameType.Func, "spvc_type_get_num_member_types")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint GetNumMemberTypes(this SpvcType type) { @@ -2423,7 +2540,7 @@ public static uint GetNumMemberTypes(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_member_type")] + [NativeName(NativeNameType.Func, "spvc_type_get_member_type")] [return: NativeName(NativeNameType.Type, "spvc_type_id")] public static uint GetMemberType(this SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index) { @@ -2431,7 +2548,7 @@ public static uint GetMemberType(this SpvcType type, [NativeName(NativeNameType. return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_storage_class")] + [NativeName(NativeNameType.Func, "spvc_type_get_storage_class")] [return: NativeName(NativeNameType.Type, "SpvStorageClass")] public static SpvStorageClass GetStorageClass(this SpvcType type) { @@ -2447,7 +2564,7 @@ public static uint GetImageSampledType(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_dimension")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_dimension")] [return: NativeName(NativeNameType.Type, "SpvDim")] public static SpvDim GetImageDimension(this SpvcType type) { @@ -2455,7 +2572,7 @@ public static SpvDim GetImageDimension(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_is_depth")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_is_depth")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte GetImageIsDepth(this SpvcType type) { @@ -2463,7 +2580,7 @@ public static byte GetImageIsDepth(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_arrayed")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_arrayed")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte GetImageArrayed(this SpvcType type) { @@ -2471,7 +2588,7 @@ public static byte GetImageArrayed(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_multisampled")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_multisampled")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte GetImageMultisampled(this SpvcType type) { @@ -2479,7 +2596,7 @@ public static byte GetImageMultisampled(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_is_storage")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_is_storage")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte GetImageIsStorage(this SpvcType type) { @@ -2487,7 +2604,7 @@ public static byte GetImageIsStorage(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_storage_format")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_storage_format")] [return: NativeName(NativeNameType.Type, "SpvImageFormat")] public static SpvImageFormat GetImageStorageFormat(this SpvcType type) { @@ -2495,7 +2612,7 @@ public static SpvImageFormat GetImageStorageFormat(this SpvcType type) return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_access_qualifier")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_access_qualifier")] [return: NativeName(NativeNameType.Type, "SpvAccessQualifier")] public static SpvAccessQualifier GetImageAccessQualifier(this SpvcType type) { @@ -2511,7 +2628,7 @@ public static float GetScalarFp16(this SpvcConstant constant, [NativeName(Native return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp32")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp32")] [return: NativeName(NativeNameType.Type, "float")] public static float GetScalarFp32(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -2519,7 +2636,7 @@ public static float GetScalarFp32(this SpvcConstant constant, [NativeName(Native return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp64")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp64")] [return: NativeName(NativeNameType.Type, "double")] public static double GetScalarFp64(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -2527,7 +2644,7 @@ public static double GetScalarFp64(this SpvcConstant constant, [NativeName(Nativ return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u32")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u32")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint GetScalarU32(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -2535,7 +2652,7 @@ public static uint GetScalarU32(this SpvcConstant constant, [NativeName(NativeNa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i32")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i32")] [return: NativeName(NativeNameType.Type, "int")] public static int GetScalarI32(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -2543,7 +2660,7 @@ public static int GetScalarI32(this SpvcConstant constant, [NativeName(NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u16")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u16")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint GetScalarU16(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -2551,7 +2668,7 @@ public static uint GetScalarU16(this SpvcConstant constant, [NativeName(NativeNa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i16")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i16")] [return: NativeName(NativeNameType.Type, "int")] public static int GetScalarI16(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -2559,7 +2676,7 @@ public static int GetScalarI16(this SpvcConstant constant, [NativeName(NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u8")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u8")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint GetScalarU8(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -2567,7 +2684,7 @@ public static uint GetScalarU8(this SpvcConstant constant, [NativeName(NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i8")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i8")] [return: NativeName(NativeNameType.Type, "int")] public static int GetScalarI8(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -2575,16 +2692,16 @@ public static int GetScalarI8(this SpvcConstant constant, [NativeName(NativeName return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] + [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] [return: NativeName(NativeNameType.Type, "void")] - public static void GetSubconstants(this SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] uint** constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] nuint* count) + public static void GetSubconstants(this SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] uint** constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] ulong* count) { SPIRV.SpvcConstantGetSubconstantsNative(constant, constituents, count); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] + [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] [return: NativeName(NativeNameType.Type, "void")] - public static void GetSubconstants(this SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] ref uint* constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] nuint* count) + public static void GetSubconstants(this SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] ref uint* constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] ulong* count) { fixed (uint** pconstituents = &constituents) { @@ -2592,17 +2709,17 @@ public static void GetSubconstants(this SpvcConstant constant, [NativeName(Nativ } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] + [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] [return: NativeName(NativeNameType.Type, "void")] public static void GetSubconstants(this SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] uint** constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint count) { fixed (nuint* pcount = &count) { - SPIRV.SpvcConstantGetSubconstantsNative(constant, constituents, (nuint*)pcount); + SPIRV.SpvcConstantGetSubconstantsNative(constant, constituents, (ulong*)pcount); } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] + [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] [return: NativeName(NativeNameType.Type, "void")] public static void GetSubconstants(this SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] ref uint* constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint count) { @@ -2610,12 +2727,12 @@ public static void GetSubconstants(this SpvcConstant constant, [NativeName(Nativ { fixed (nuint* pcount = &count) { - SPIRV.SpvcConstantGetSubconstantsNative(constant, (uint**)pconstituents, (nuint*)pcount); + SPIRV.SpvcConstantGetSubconstantsNative(constant, (uint**)pconstituents, (ulong*)pcount); } } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_type")] + [NativeName(NativeNameType.Func, "spvc_constant_get_type")] [return: NativeName(NativeNameType.Type, "spvc_type_id")] public static uint GetType(this SpvcConstant constant) { @@ -2630,56 +2747,56 @@ public static void SetScalarFp16(this SpvcConstant constant, [NativeName(NativeN SPIRV.SpvcConstantSetScalarFp16Native(constant, column, row, value); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp32")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp32")] [return: NativeName(NativeNameType.Type, "void")] public static void SetScalarFp32(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "float")] float value) { SPIRV.SpvcConstantSetScalarFp32Native(constant, column, row, value); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp64")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp64")] [return: NativeName(NativeNameType.Type, "void")] public static void SetScalarFp64(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value) { SPIRV.SpvcConstantSetScalarFp64Native(constant, column, row, value); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u32")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u32")] [return: NativeName(NativeNameType.Type, "void")] public static void SetScalarU32(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned int")] uint value) { SPIRV.SpvcConstantSetScalarU32Native(constant, column, row, value); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i32")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i32")] [return: NativeName(NativeNameType.Type, "void")] public static void SetScalarI32(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "int")] int value) { SPIRV.SpvcConstantSetScalarI32Native(constant, column, row, value); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u16")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u16")] [return: NativeName(NativeNameType.Type, "void")] public static void SetScalarU16(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned short")] ushort value) { SPIRV.SpvcConstantSetScalarU16Native(constant, column, row, value); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i16")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i16")] [return: NativeName(NativeNameType.Type, "void")] public static void SetScalarI16(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "short")] short value) { SPIRV.SpvcConstantSetScalarI16Native(constant, column, row, value); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u8")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u8")] [return: NativeName(NativeNameType.Type, "void")] public static void SetScalarU8(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned char")] byte value) { SPIRV.SpvcConstantSetScalarU8Native(constant, column, row, value); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i8")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i8")] [return: NativeName(NativeNameType.Type, "void")] public static void SetScalarI8(this SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "char")] byte value) { diff --git a/Hexa.NET.SPIRVCross/Generated/Functions.cs b/Hexa.NET.SPIRVCross/Generated/Functions.000.cs similarity index 61% rename from Hexa.NET.SPIRVCross/Generated/Functions.cs rename to Hexa.NET.SPIRVCross/Generated/Functions.000.cs index 1dfbd08..0e05255 100644 --- a/Hexa.NET.SPIRVCross/Generated/Functions.cs +++ b/Hexa.NET.SPIRVCross/Generated/Functions.000.cs @@ -24,27 +24,18 @@ public unsafe partial class SPIRV ///
[NativeName(NativeNameType.Func, "spvc_get_version")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_get_version")] - internal static extern void SpvcGetVersionNative([NativeName(NativeNameType.Param, "major")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* major, [NativeName(NativeNameType.Param, "minor")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* minor, [NativeName(NativeNameType.Param, "patch")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* patch); + [LibraryImport(LibName, EntryPoint = "spvc_get_version")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcGetVersionNative([NativeName(NativeNameType.Param, "major")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* major, [NativeName(NativeNameType.Param, "minor")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* minor, [NativeName(NativeNameType.Param, "patch")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* patch); - /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] + /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* major, [NativeName(NativeNameType.Param, "minor")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* minor, [NativeName(NativeNameType.Param, "patch")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* patch) { SpvcGetVersionNative(major, minor, patch); } - /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint major, [NativeName(NativeNameType.Param, "minor")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* minor, [NativeName(NativeNameType.Param, "patch")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* patch) - { - fixed (uint* pmajor = &major) - { - SpvcGetVersionNative((uint*)pmajor, minor, patch); - } - } - - /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] + /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* major, [NativeName(NativeNameType.Param, "minor")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint minor, [NativeName(NativeNameType.Param, "patch")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* patch) { @@ -54,20 +45,7 @@ public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [N } } - /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint major, [NativeName(NativeNameType.Param, "minor")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint minor, [NativeName(NativeNameType.Param, "patch")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* patch) - { - fixed (uint* pmajor = &major) - { - fixed (uint* pminor = &minor) - { - SpvcGetVersionNative((uint*)pmajor, (uint*)pminor, patch); - } - } - } - - /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] + /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* major, [NativeName(NativeNameType.Param, "minor")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* minor, [NativeName(NativeNameType.Param, "patch")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint patch) { @@ -77,20 +55,7 @@ public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [N } } - /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint major, [NativeName(NativeNameType.Param, "minor")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* minor, [NativeName(NativeNameType.Param, "patch")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint patch) - { - fixed (uint* pmajor = &major) - { - fixed (uint* ppatch = &patch) - { - SpvcGetVersionNative((uint*)pmajor, minor, (uint*)ppatch); - } - } - } - - /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] + /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* major, [NativeName(NativeNameType.Param, "minor")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint minor, [NativeName(NativeNameType.Param, "patch")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint patch) { @@ -103,31 +68,16 @@ public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [N } } - /// /// Gets the SPVC_C_API_VERSION_* used to build this library.
/// Can be used to check for ABI mismatch if so-versioning did not catch it.
///
[NativeName(NativeNameType.Func, "spvc_get_version")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint major, [NativeName(NativeNameType.Param, "minor")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint minor, [NativeName(NativeNameType.Param, "patch")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint patch) - { - fixed (uint* pmajor = &major) - { - fixed (uint* pminor = &minor) - { - fixed (uint* ppatch = &patch) - { - SpvcGetVersionNative((uint*)pmajor, (uint*)pminor, (uint*)ppatch); - } - } - } - } - /// /// Gets a human readable version string to identify which commit a particular binary was created from.
///
[NativeName(NativeNameType.Func, "spvc_get_commit_revision_and_timestamp")] [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_get_commit_revision_and_timestamp")] - internal static extern byte* SpvcGetCommitRevisionAndTimestampNative(); + [LibraryImport(LibName, EntryPoint = "spvc_get_commit_revision_and_timestamp")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvcGetCommitRevisionAndTimestampNative(); - /// /// Gets a human readable version string to identify which commit a particular binary was created from.
///
[NativeName(NativeNameType.Func, "spvc_get_commit_revision_and_timestamp")] + /// /// Gets a human readable version string to identify which commit a particular binary was created from.
///
[NativeName(NativeNameType.Func, "spvc_get_commit_revision_and_timestamp")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* SpvcGetCommitRevisionAndTimestamp() { @@ -135,7 +85,7 @@ public static void SpvcGetVersion([NativeName(NativeNameType.Param, "major")] [N return ret; } - /// /// Gets a human readable version string to identify which commit a particular binary was created from.
///
[NativeName(NativeNameType.Func, "spvc_get_commit_revision_and_timestamp")] + /// /// Gets a human readable version string to identify which commit a particular binary was created from.
///
[NativeName(NativeNameType.Func, "spvc_get_commit_revision_and_timestamp")] [return: NativeName(NativeNameType.Type, "const char*")] public static string SpvcGetCommitRevisionAndTimestampS() { @@ -148,137 +98,93 @@ public static string SpvcGetCommitRevisionAndTimestampS() ///
[NativeName(NativeNameType.Func, "spvc_msl_vertex_attribute_init")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_msl_vertex_attribute_init")] - internal static extern void SpvcMslVertexAttributeInitNative([NativeName(NativeNameType.Param, "attr")] [NativeName(NativeNameType.Type, "spvc_msl_vertex_attribute*")] SpvcMslVertexAttribute* attr); + [LibraryImport(LibName, EntryPoint = "spvc_msl_vertex_attribute_init")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcMslVertexAttributeInitNative([NativeName(NativeNameType.Param, "attr")] [NativeName(NativeNameType.Type, "spvc_msl_vertex_attribute*")] SpvcMslVertexAttribute* attr); - /// /// Initializes the vertex attribute struct.
///
[NativeName(NativeNameType.Func, "spvc_msl_vertex_attribute_init")] + /// /// Initializes the vertex attribute struct.
///
[NativeName(NativeNameType.Func, "spvc_msl_vertex_attribute_init")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcMslVertexAttributeInit([NativeName(NativeNameType.Param, "attr")] [NativeName(NativeNameType.Type, "spvc_msl_vertex_attribute*")] SpvcMslVertexAttribute* attr) { SpvcMslVertexAttributeInitNative(attr); } - /// /// Initializes the vertex attribute struct.
///
[NativeName(NativeNameType.Func, "spvc_msl_vertex_attribute_init")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcMslVertexAttributeInit([NativeName(NativeNameType.Param, "attr")] [NativeName(NativeNameType.Type, "spvc_msl_vertex_attribute*")] ref SpvcMslVertexAttribute attr) - { - fixed (SpvcMslVertexAttribute* pattr = &attr) - { - SpvcMslVertexAttributeInitNative((SpvcMslVertexAttribute*)pattr); - } - } - /// /// Initializes the shader input struct.
/// Deprecated. Use spvc_msl_shader_interface_var_init_2().
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_interface_var_init")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_msl_shader_interface_var_init")] - internal static extern void SpvcMslShaderInterfaceVarInitNative([NativeName(NativeNameType.Param, "var")] [NativeName(NativeNameType.Type, "spvc_msl_shader_interface_var*")] SpvcMslShaderInterfaceVar* var); + [LibraryImport(LibName, EntryPoint = "spvc_msl_shader_interface_var_init")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcMslShaderInterfaceVarInitNative([NativeName(NativeNameType.Param, "var")] [NativeName(NativeNameType.Type, "spvc_msl_shader_interface_var*")] SpvcMslShaderInterfaceVar* var); - /// /// Initializes the shader input struct.
/// Deprecated. Use spvc_msl_shader_interface_var_init_2().
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_interface_var_init")] + /// /// Initializes the shader input struct.
/// Deprecated. Use spvc_msl_shader_interface_var_init_2().
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_interface_var_init")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcMslShaderInterfaceVarInit([NativeName(NativeNameType.Param, "var")] [NativeName(NativeNameType.Type, "spvc_msl_shader_interface_var*")] SpvcMslShaderInterfaceVar* var) { SpvcMslShaderInterfaceVarInitNative(var); } - /// /// Initializes the shader input struct.
/// Deprecated. Use spvc_msl_shader_interface_var_init_2().
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_interface_var_init")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcMslShaderInterfaceVarInit([NativeName(NativeNameType.Param, "var")] [NativeName(NativeNameType.Type, "spvc_msl_shader_interface_var*")] ref SpvcMslShaderInterfaceVar var) - { - fixed (SpvcMslShaderInterfaceVar* pvar = &var) - { - SpvcMslShaderInterfaceVarInitNative((SpvcMslShaderInterfaceVar*)pvar); - } - } - /// /// Deprecated. Use spvc_msl_shader_interface_var_init_2().
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_input_init")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_msl_shader_input_init")] - internal static extern void SpvcMslShaderInputInitNative([NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "spvc_msl_shader_input*")] SpvcMslShaderInterfaceVar* input); + [LibraryImport(LibName, EntryPoint = "spvc_msl_shader_input_init")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcMslShaderInputInitNative([NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "spvc_msl_shader_input*")] SpvcMslShaderInterfaceVar* input); - /// /// Deprecated. Use spvc_msl_shader_interface_var_init_2().
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_input_init")] + /// /// Deprecated. Use spvc_msl_shader_interface_var_init_2().
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_input_init")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcMslShaderInputInit([NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "spvc_msl_shader_input*")] SpvcMslShaderInterfaceVar* input) { SpvcMslShaderInputInitNative(input); } - /// /// Deprecated. Use spvc_msl_shader_interface_var_init_2().
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_input_init")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcMslShaderInputInit([NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "spvc_msl_shader_input*")] ref SpvcMslShaderInterfaceVar input) - { - fixed (SpvcMslShaderInterfaceVar* pinput = &input) - { - SpvcMslShaderInputInitNative((SpvcMslShaderInterfaceVar*)pinput); - } - } - /// /// Initializes the shader interface variable struct.
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_interface_var_init_2")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_msl_shader_interface_var_init_2")] - internal static extern void SpvcMslShaderInterfaceVarInit2Native([NativeName(NativeNameType.Param, "var")] [NativeName(NativeNameType.Type, "spvc_msl_shader_interface_var_2*")] SpvcMslShaderInterfaceVar2* var); + [LibraryImport(LibName, EntryPoint = "spvc_msl_shader_interface_var_init_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcMslShaderInterfaceVarInit2Native([NativeName(NativeNameType.Param, "var")] [NativeName(NativeNameType.Type, "spvc_msl_shader_interface_var_2*")] SpvcMslShaderInterfaceVar2* var); - /// /// Initializes the shader interface variable struct.
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_interface_var_init_2")] + /// /// Initializes the shader interface variable struct.
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_interface_var_init_2")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcMslShaderInterfaceVarInit2([NativeName(NativeNameType.Param, "var")] [NativeName(NativeNameType.Type, "spvc_msl_shader_interface_var_2*")] SpvcMslShaderInterfaceVar2* var) { SpvcMslShaderInterfaceVarInit2Native(var); } - /// /// Initializes the shader interface variable struct.
///
[NativeName(NativeNameType.Func, "spvc_msl_shader_interface_var_init_2")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcMslShaderInterfaceVarInit2([NativeName(NativeNameType.Param, "var")] [NativeName(NativeNameType.Type, "spvc_msl_shader_interface_var_2*")] ref SpvcMslShaderInterfaceVar2 var) - { - fixed (SpvcMslShaderInterfaceVar2* pvar = &var) - { - SpvcMslShaderInterfaceVarInit2Native((SpvcMslShaderInterfaceVar2*)pvar); - } - } - /// /// Initializes the resource binding struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_msl_resource_binding_init")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_msl_resource_binding_init")] - internal static extern void SpvcMslResourceBindingInitNative([NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "spvc_msl_resource_binding*")] SpvcMslResourceBinding* binding); + [LibraryImport(LibName, EntryPoint = "spvc_msl_resource_binding_init")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcMslResourceBindingInitNative([NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "spvc_msl_resource_binding*")] SpvcMslResourceBinding* binding); - /// /// Initializes the resource binding struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_msl_resource_binding_init")] + /// /// Initializes the resource binding struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_msl_resource_binding_init")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcMslResourceBindingInit([NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "spvc_msl_resource_binding*")] SpvcMslResourceBinding* binding) { SpvcMslResourceBindingInitNative(binding); } - /// /// Initializes the resource binding struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_msl_resource_binding_init")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcMslResourceBindingInit([NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "spvc_msl_resource_binding*")] ref SpvcMslResourceBinding binding) - { - fixed (SpvcMslResourceBinding* pbinding = &binding) - { - SpvcMslResourceBindingInitNative((SpvcMslResourceBinding*)pbinding); - } - } - /// /// Runtime check for incompatibility. Obsolete.
///
[NativeName(NativeNameType.Func, "spvc_msl_get_aux_buffer_struct_version")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_msl_get_aux_buffer_struct_version")] - internal static extern uint SpvcMslGetAuxBufferStructVersionNative(); + [LibraryImport(LibName, EntryPoint = "spvc_msl_get_aux_buffer_struct_version")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcMslGetAuxBufferStructVersionNative(); - /// /// Runtime check for incompatibility. Obsolete.
///
[NativeName(NativeNameType.Func, "spvc_msl_get_aux_buffer_struct_version")] + /// /// Runtime check for incompatibility. Obsolete.
///
[NativeName(NativeNameType.Func, "spvc_msl_get_aux_buffer_struct_version")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcMslGetAuxBufferStructVersion() { @@ -292,78 +198,51 @@ public static uint SpvcMslGetAuxBufferStructVersion() ///
[NativeName(NativeNameType.Func, "spvc_msl_constexpr_sampler_init")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_msl_constexpr_sampler_init")] - internal static extern void SpvcMslConstexprSamplerInitNative([NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler); + [LibraryImport(LibName, EntryPoint = "spvc_msl_constexpr_sampler_init")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcMslConstexprSamplerInitNative([NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler); - /// /// Initializes the constexpr sampler struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_msl_constexpr_sampler_init")] + /// /// Initializes the constexpr sampler struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_msl_constexpr_sampler_init")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcMslConstexprSamplerInit([NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler) { SpvcMslConstexprSamplerInitNative(sampler); } - /// /// Initializes the constexpr sampler struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_msl_constexpr_sampler_init")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcMslConstexprSamplerInit([NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler) - { - fixed (SpvcMslConstexprSampler* psampler = &sampler) - { - SpvcMslConstexprSamplerInitNative((SpvcMslConstexprSampler*)psampler); - } - } - /// /// Initializes the constexpr sampler struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_msl_sampler_ycbcr_conversion_init")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_msl_sampler_ycbcr_conversion_init")] - internal static extern void SpvcMslSamplerYcbcrConversionInitNative([NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv); + [LibraryImport(LibName, EntryPoint = "spvc_msl_sampler_ycbcr_conversion_init")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcMslSamplerYcbcrConversionInitNative([NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv); - /// /// Initializes the constexpr sampler struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_msl_sampler_ycbcr_conversion_init")] + /// /// Initializes the constexpr sampler struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_msl_sampler_ycbcr_conversion_init")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcMslSamplerYcbcrConversionInit([NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv) { SpvcMslSamplerYcbcrConversionInitNative(conv); } - /// /// Initializes the constexpr sampler struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_msl_sampler_ycbcr_conversion_init")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcMslSamplerYcbcrConversionInit([NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "spvc_msl_sampler_ycbcr_conversion*")] ref SpvcMslSamplerYcbcrConversion conv) - { - fixed (SpvcMslSamplerYcbcrConversion* pconv = &conv) - { - SpvcMslSamplerYcbcrConversionInitNative((SpvcMslSamplerYcbcrConversion*)pconv); - } - } - /// /// Initializes the resource binding struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_hlsl_resource_binding_init")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_hlsl_resource_binding_init")] - internal static extern void SpvcHlslResourceBindingInitNative([NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding*")] SpvcHlslResourceBinding* binding); + [LibraryImport(LibName, EntryPoint = "spvc_hlsl_resource_binding_init")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcHlslResourceBindingInitNative([NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding*")] SpvcHlslResourceBinding* binding); - /// /// Initializes the resource binding struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_hlsl_resource_binding_init")] + /// /// Initializes the resource binding struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_hlsl_resource_binding_init")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcHlslResourceBindingInit([NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding*")] SpvcHlslResourceBinding* binding) { SpvcHlslResourceBindingInitNative(binding); } - /// /// Initializes the resource binding struct.
/// The defaults are non-zero.
///
[NativeName(NativeNameType.Func, "spvc_hlsl_resource_binding_init")] - [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcHlslResourceBindingInit([NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding*")] ref SpvcHlslResourceBinding binding) - { - fixed (SpvcHlslResourceBinding* pbinding = &binding) - { - SpvcHlslResourceBindingInitNative((SpvcHlslResourceBinding*)pbinding); - } - } - /// /// Context is the highest-level API construct.
/// The context owns all memory allocations made by its child object hierarchy, including various non-opaque structs and strings.
@@ -373,10 +252,11 @@ public static void SpvcHlslResourceBindingInit([NativeName(NativeNameType.Param, ///
[NativeName(NativeNameType.Func, "spvc_context_create")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_context_create")] - internal static extern SpvcResult SpvcContextCreateNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context*")] SpvcContext* context); + [LibraryImport(LibName, EntryPoint = "spvc_context_create")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcContextCreateNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context*")] SpvcContext* context); - /// /// Context is the highest-level API construct.
/// The context owns all memory allocations made by its child object hierarchy, including various non-opaque structs and strings.
/// This means that the API user only has to care about one "destroy" call ever when using the C API.
/// All pointers handed out by the APIs are only valid as long as the context
/// is alive and spvc_context_release_allocations has not been called.
///
[NativeName(NativeNameType.Func, "spvc_context_create")] + /// /// Context is the highest-level API construct.
/// The context owns all memory allocations made by its child object hierarchy, including various non-opaque structs and strings.
/// This means that the API user only has to care about one "destroy" call ever when using the C API.
/// All pointers handed out by the APIs are only valid as long as the context
/// is alive and spvc_context_release_allocations has not been called.
///
[NativeName(NativeNameType.Func, "spvc_context_create")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcContextCreate([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context*")] SpvcContext* context) { @@ -384,26 +264,16 @@ public static SpvcResult SpvcContextCreate([NativeName(NativeNameType.Param, "co return ret; } - /// /// Context is the highest-level API construct.
/// The context owns all memory allocations made by its child object hierarchy, including various non-opaque structs and strings.
/// This means that the API user only has to care about one "destroy" call ever when using the C API.
/// All pointers handed out by the APIs are only valid as long as the context
/// is alive and spvc_context_release_allocations has not been called.
///
[NativeName(NativeNameType.Func, "spvc_context_create")] - [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcContextCreate([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context*")] ref SpvcContext context) - { - fixed (SpvcContext* pcontext = &context) - { - SpvcResult ret = SpvcContextCreateNative((SpvcContext*)pcontext); - return ret; - } - } - /// /// Frees all memory allocations and objects associated with the context and its child objects.
///
[NativeName(NativeNameType.Func, "spvc_context_destroy")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_context_destroy")] - internal static extern void SpvcContextDestroyNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context); + [LibraryImport(LibName, EntryPoint = "spvc_context_destroy")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcContextDestroyNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context); - /// /// Frees all memory allocations and objects associated with the context and its child objects.
///
[NativeName(NativeNameType.Func, "spvc_context_destroy")] + /// /// Frees all memory allocations and objects associated with the context and its child objects.
///
[NativeName(NativeNameType.Func, "spvc_context_destroy")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcContextDestroy([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context) { @@ -415,10 +285,11 @@ public static void SpvcContextDestroy([NativeName(NativeNameType.Param, "context ///
[NativeName(NativeNameType.Func, "spvc_context_release_allocations")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_context_release_allocations")] - internal static extern void SpvcContextReleaseAllocationsNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context); + [LibraryImport(LibName, EntryPoint = "spvc_context_release_allocations")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcContextReleaseAllocationsNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context); - /// /// Frees all memory allocations and objects associated with the context and its child objects, but keeps the context alive.
///
[NativeName(NativeNameType.Func, "spvc_context_release_allocations")] + /// /// Frees all memory allocations and objects associated with the context and its child objects, but keeps the context alive.
///
[NativeName(NativeNameType.Func, "spvc_context_release_allocations")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcContextReleaseAllocations([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context) { @@ -430,10 +301,11 @@ public static void SpvcContextReleaseAllocations([NativeName(NativeNameType.Para ///
[NativeName(NativeNameType.Func, "spvc_context_get_last_error_string")] [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_context_get_last_error_string")] - internal static extern byte* SpvcContextGetLastErrorStringNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context); + [LibraryImport(LibName, EntryPoint = "spvc_context_get_last_error_string")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvcContextGetLastErrorStringNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context); - /// /// Get the string for the last error which was logged.
///
[NativeName(NativeNameType.Func, "spvc_context_get_last_error_string")] + /// /// Get the string for the last error which was logged.
///
[NativeName(NativeNameType.Func, "spvc_context_get_last_error_string")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* SpvcContextGetLastErrorString([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context) { @@ -441,7 +313,7 @@ public static void SpvcContextReleaseAllocations([NativeName(NativeNameType.Para return ret; } - /// /// Get the string for the last error which was logged.
///
[NativeName(NativeNameType.Func, "spvc_context_get_last_error_string")] + /// /// Get the string for the last error which was logged.
///
[NativeName(NativeNameType.Func, "spvc_context_get_last_error_string")] [return: NativeName(NativeNameType.Type, "const char*")] public static string SpvcContextGetLastErrorStringS([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context) { @@ -449,15 +321,13 @@ public static string SpvcContextGetLastErrorStringS([NativeName(NativeNameType.P return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_context_set_error_callback")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_context_set_error_callback")] - internal static extern void SpvcContextSetErrorCallbackNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "cb")] [NativeName(NativeNameType.Type, "spvc_error_callback")] SpvcErrorCallback cb, [NativeName(NativeNameType.Param, "userdata")] [NativeName(NativeNameType.Type, "void*")] void* userdata); + [LibraryImport(LibName, EntryPoint = "spvc_context_set_error_callback")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcContextSetErrorCallbackNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "cb")] [NativeName(NativeNameType.Type, "spvc_error_callback")] SpvcErrorCallback cb, [NativeName(NativeNameType.Param, "userdata")] [NativeName(NativeNameType.Type, "void*")] void* userdata); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_context_set_error_callback")] + [NativeName(NativeNameType.Func, "spvc_context_set_error_callback")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcContextSetErrorCallback([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "cb")] [NativeName(NativeNameType.Type, "spvc_error_callback")] SpvcErrorCallback cb, [NativeName(NativeNameType.Param, "userdata")] [NativeName(NativeNameType.Type, "void*")] void* userdata) { @@ -469,31 +339,76 @@ public static void SpvcContextSetErrorCallback([NativeName(NativeNameType.Param, ///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_context_parse_spirv")] - internal static extern SpvcResult SpvcContextParseSpirvNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] SpvId* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr); + [LibraryImport(LibName, EntryPoint = "spvc_context_parse_spirv")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcContextParseSpirvNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] uint* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] ulong wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr); + + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] uint* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] ulong wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) + { + SpvcResult ret = SpvcContextParseSpirvNative(context, spirv, wordCount, parsedIr); + return ret; + } + + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref uint spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] ulong wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) + { + fixed (uint* pspirv = &spirv) + { + SpvcResult ret = SpvcContextParseSpirvNative(context, (uint*)pspirv, wordCount, parsedIr); + return ret; + } + } - /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] SpvId* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) + public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] uint* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) { SpvcResult ret = SpvcContextParseSpirvNative(context, spirv, wordCount, parsedIr); return ret; } - /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref uint spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) + { + fixed (uint* pspirv = &spirv) + { + SpvcResult ret = SpvcContextParseSpirvNative(context, (uint*)pspirv, wordCount, parsedIr); + return ret; + } + } + + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref SpvId spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] SpvcParsedIr* parsedIr) + public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] uint* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] ulong wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) { - fixed (SpvId* pspirv = &spirv) + fixed (SpvcParsedIr* pparsedIr = &parsedIr) { - SpvcResult ret = SpvcContextParseSpirvNative(context, (SpvId*)pspirv, wordCount, parsedIr); + SpvcResult ret = SpvcContextParseSpirvNative(context, spirv, wordCount, (SpvcParsedIr*)pparsedIr); return ret; } } - /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref uint spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] ulong wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) + { + fixed (uint* pspirv = &spirv) + { + fixed (SpvcParsedIr* pparsedIr = &parsedIr) + { + SpvcResult ret = SpvcContextParseSpirvNative(context, (uint*)pspirv, wordCount, (SpvcParsedIr*)pparsedIr); + return ret; + } + } + } + + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] SpvId* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) + public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] uint* spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) { fixed (SpvcParsedIr* pparsedIr = &parsedIr) { @@ -502,15 +417,15 @@ public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, } } - /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] + /// /// SPIR-V parsing interface. Maps to Parser which then creates a ParsedIR, and that IR is extracted into the handle.
///
[NativeName(NativeNameType.Func, "spvc_context_parse_spirv")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref SpvId spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) + public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "spirv")] [NativeName(NativeNameType.Type, "const SpvId*")] ref uint spirv, [NativeName(NativeNameType.Param, "word_count")] [NativeName(NativeNameType.Type, "size_t")] nuint wordCount, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir*")] ref SpvcParsedIr parsedIr) { - fixed (SpvId* pspirv = &spirv) + fixed (uint* pspirv = &spirv) { fixed (SpvcParsedIr* pparsedIr = &parsedIr) { - SpvcResult ret = SpvcContextParseSpirvNative(context, (SpvId*)pspirv, wordCount, (SpvcParsedIr*)pparsedIr); + SpvcResult ret = SpvcContextParseSpirvNative(context, (uint*)pspirv, wordCount, (SpvcParsedIr*)pparsedIr); return ret; } } @@ -522,10 +437,11 @@ public static SpvcResult SpvcContextParseSpirv([NativeName(NativeNameType.Param, ///
[NativeName(NativeNameType.Func, "spvc_context_create_compiler")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_context_create_compiler")] - internal static extern SpvcResult SpvcContextCreateCompilerNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "backend")] [NativeName(NativeNameType.Type, "spvc_backend")] SpvcBackend backend, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir")] SpvcParsedIr parsedIr, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "spvc_capture_mode")] SpvcCaptureMode mode, [NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler*")] SpvcCompiler* compiler); + [LibraryImport(LibName, EntryPoint = "spvc_context_create_compiler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcContextCreateCompilerNative([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "backend")] [NativeName(NativeNameType.Type, "spvc_backend")] SpvcBackend backend, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir")] SpvcParsedIr parsedIr, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "spvc_capture_mode")] SpvcCaptureMode mode, [NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler*")] SpvcCompiler* compiler); - /// /// Create a compiler backend. Capture mode controls if we construct by copy or move semantics.
/// It is always recommended to use SPVC_CAPTURE_MODE_TAKE_OWNERSHIP if you only intend to cross-compile the IR once.
///
[NativeName(NativeNameType.Func, "spvc_context_create_compiler")] + /// /// Create a compiler backend. Capture mode controls if we construct by copy or move semantics.
/// It is always recommended to use SPVC_CAPTURE_MODE_TAKE_OWNERSHIP if you only intend to cross-compile the IR once.
///
[NativeName(NativeNameType.Func, "spvc_context_create_compiler")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcContextCreateCompiler([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "backend")] [NativeName(NativeNameType.Type, "spvc_backend")] SpvcBackend backend, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir")] SpvcParsedIr parsedIr, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "spvc_capture_mode")] SpvcCaptureMode mode, [NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler*")] SpvcCompiler* compiler) { @@ -533,7 +449,7 @@ public static SpvcResult SpvcContextCreateCompiler([NativeName(NativeNameType.Pa return ret; } - /// /// Create a compiler backend. Capture mode controls if we construct by copy or move semantics.
/// It is always recommended to use SPVC_CAPTURE_MODE_TAKE_OWNERSHIP if you only intend to cross-compile the IR once.
///
[NativeName(NativeNameType.Func, "spvc_context_create_compiler")] + /// /// Create a compiler backend. Capture mode controls if we construct by copy or move semantics.
/// It is always recommended to use SPVC_CAPTURE_MODE_TAKE_OWNERSHIP if you only intend to cross-compile the IR once.
///
[NativeName(NativeNameType.Func, "spvc_context_create_compiler")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcContextCreateCompiler([NativeName(NativeNameType.Param, "context")] [NativeName(NativeNameType.Type, "spvc_context")] SpvcContext context, [NativeName(NativeNameType.Param, "backend")] [NativeName(NativeNameType.Type, "spvc_backend")] SpvcBackend backend, [NativeName(NativeNameType.Param, "parsed_ir")] [NativeName(NativeNameType.Type, "spvc_parsed_ir")] SpvcParsedIr parsedIr, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "spvc_capture_mode")] SpvcCaptureMode mode, [NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler*")] ref SpvcCompiler compiler) { @@ -549,10 +465,11 @@ public static SpvcResult SpvcContextCreateCompiler([NativeName(NativeNameType.Pa ///
[NativeName(NativeNameType.Func, "spvc_compiler_get_current_id_bound")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_current_id_bound")] - internal static extern uint SpvcCompilerGetCurrentIdBoundNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_current_id_bound")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcCompilerGetCurrentIdBoundNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// Maps directly to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_current_id_bound")] + /// /// Maps directly to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_current_id_bound")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcCompilerGetCurrentIdBound([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -565,10 +482,11 @@ public static uint SpvcCompilerGetCurrentIdBound([NativeName(NativeNameType.Para ///
[NativeName(NativeNameType.Func, "spvc_compiler_create_compiler_options")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_create_compiler_options")] - internal static extern SpvcResult SpvcCompilerCreateCompilerOptionsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options*")] SpvcCompilerOptions* options); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_create_compiler_options")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerCreateCompilerOptionsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options*")] SpvcCompilerOptions* options); - /// /// Create compiler options, which will initialize defaults.
///
[NativeName(NativeNameType.Func, "spvc_compiler_create_compiler_options")] + /// /// Create compiler options, which will initialize defaults.
///
[NativeName(NativeNameType.Func, "spvc_compiler_create_compiler_options")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerCreateCompilerOptions([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options*")] SpvcCompilerOptions* options) { @@ -576,7 +494,7 @@ public static SpvcResult SpvcCompilerCreateCompilerOptions([NativeName(NativeNam return ret; } - /// /// Create compiler options, which will initialize defaults.
///
[NativeName(NativeNameType.Func, "spvc_compiler_create_compiler_options")] + /// /// Create compiler options, which will initialize defaults.
///
[NativeName(NativeNameType.Func, "spvc_compiler_create_compiler_options")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerCreateCompilerOptions([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options*")] ref SpvcCompilerOptions options) { @@ -592,10 +510,11 @@ public static SpvcResult SpvcCompilerCreateCompilerOptions([NativeName(NativeNam ///
[NativeName(NativeNameType.Func, "spvc_compiler_options_set_bool")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_options_set_bool")] - internal static extern SpvcResult SpvcCompilerOptionsSetBoolNative([NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options")] SpvcCompilerOptions options, [NativeName(NativeNameType.Param, "option")] [NativeName(NativeNameType.Type, "spvc_compiler_option")] SpvcCompilerOption option, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "spvc_bool")] byte value); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_options_set_bool")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerOptionsSetBoolNative([NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options")] SpvcCompilerOptions options, [NativeName(NativeNameType.Param, "option")] [NativeName(NativeNameType.Type, "spvc_compiler_option")] SpvcCompilerOption option, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "spvc_bool")] byte value); - /// /// Override options. Will return error if e.g. MSL options are used for the HLSL backend, etc.
///
[NativeName(NativeNameType.Func, "spvc_compiler_options_set_bool")] + /// /// Override options. Will return error if e.g. MSL options are used for the HLSL backend, etc.
///
[NativeName(NativeNameType.Func, "spvc_compiler_options_set_bool")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerOptionsSetBool([NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options")] SpvcCompilerOptions options, [NativeName(NativeNameType.Param, "option")] [NativeName(NativeNameType.Type, "spvc_compiler_option")] SpvcCompilerOption option, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "spvc_bool")] byte value) { @@ -603,15 +522,13 @@ public static SpvcResult SpvcCompilerOptionsSetBool([NativeName(NativeNameType.P return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_options_set_uint")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_options_set_uint")] - internal static extern SpvcResult SpvcCompilerOptionsSetUintNative([NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options")] SpvcCompilerOptions options, [NativeName(NativeNameType.Param, "option")] [NativeName(NativeNameType.Type, "spvc_compiler_option")] SpvcCompilerOption option, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned int")] uint value); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_options_set_uint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerOptionsSetUintNative([NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options")] SpvcCompilerOptions options, [NativeName(NativeNameType.Param, "option")] [NativeName(NativeNameType.Type, "spvc_compiler_option")] SpvcCompilerOption option, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned int")] uint value); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_options_set_uint")] + [NativeName(NativeNameType.Func, "spvc_compiler_options_set_uint")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerOptionsSetUint([NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options")] SpvcCompilerOptions options, [NativeName(NativeNameType.Param, "option")] [NativeName(NativeNameType.Type, "spvc_compiler_option")] SpvcCompilerOption option, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned int")] uint value) { @@ -624,10 +541,11 @@ public static SpvcResult SpvcCompilerOptionsSetUint([NativeName(NativeNameType.P ///
[NativeName(NativeNameType.Func, "spvc_compiler_install_compiler_options")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_install_compiler_options")] - internal static extern SpvcResult SpvcCompilerInstallCompilerOptionsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options")] SpvcCompilerOptions options); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_install_compiler_options")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerInstallCompilerOptionsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options")] SpvcCompilerOptions options); - /// /// Set compiler options.
///
[NativeName(NativeNameType.Func, "spvc_compiler_install_compiler_options")] + /// /// Set compiler options.
///
[NativeName(NativeNameType.Func, "spvc_compiler_install_compiler_options")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerInstallCompilerOptions([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "options")] [NativeName(NativeNameType.Type, "spvc_compiler_options")] SpvcCompilerOptions options) { @@ -640,10 +558,11 @@ public static SpvcResult SpvcCompilerInstallCompilerOptions([NativeName(NativeNa /// [NativeName(NativeNameType.Func, "spvc_compiler_compile")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_compile")] - internal static extern SpvcResult SpvcCompilerCompileNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const char**")] byte** source); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_compile")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerCompileNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const char**")] byte** source); - /// /// Compile IR into a string. *source is owned by the context, and caller must not free it themselves.
///
[NativeName(NativeNameType.Func, "spvc_compiler_compile")] + /// /// Compile IR into a string. *source is owned by the context, and caller must not free it themselves.
///
[NativeName(NativeNameType.Func, "spvc_compiler_compile")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerCompile([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const char**")] byte** source) { @@ -651,7 +570,7 @@ public static SpvcResult SpvcCompilerCompile([NativeName(NativeNameType.Param, " return ret; } - /// /// Compile IR into a string. *source is owned by the context, and caller must not free it themselves.
///
[NativeName(NativeNameType.Func, "spvc_compiler_compile")] + /// /// Compile IR into a string. *source is owned by the context, and caller must not free it themselves.
///
[NativeName(NativeNameType.Func, "spvc_compiler_compile")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerCompile([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "source")] [NativeName(NativeNameType.Type, "const char**")] ref byte* source) { @@ -667,10 +586,11 @@ public static SpvcResult SpvcCompilerCompile([NativeName(NativeNameType.Param, " /// [NativeName(NativeNameType.Func, "spvc_compiler_add_header_line")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_add_header_line")] - internal static extern SpvcResult SpvcCompilerAddHeaderLineNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "line")] [NativeName(NativeNameType.Type, "const char*")] byte* line); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_add_header_line")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerAddHeaderLineNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "line")] [NativeName(NativeNameType.Type, "const char*")] byte* line); - /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_add_header_line")] + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_add_header_line")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerAddHeaderLine([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "line")] [NativeName(NativeNameType.Type, "const char*")] byte* line) { @@ -678,7 +598,7 @@ public static SpvcResult SpvcCompilerAddHeaderLine([NativeName(NativeNameType.Pa return ret; } - /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_add_header_line")] + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_add_header_line")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerAddHeaderLine([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "line")] [NativeName(NativeNameType.Type, "const char*")] ref byte line) { @@ -689,7 +609,7 @@ public static SpvcResult SpvcCompilerAddHeaderLine([NativeName(NativeNameType.Pa } } - /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_add_header_line")] + /// /// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_add_header_line")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerAddHeaderLine([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "line")] [NativeName(NativeNameType.Type, "const char*")] string line) { @@ -718,15 +638,13 @@ public static SpvcResult SpvcCompilerAddHeaderLine([NativeName(NativeNameType.Pa return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_require_extension")] - internal static extern SpvcResult SpvcCompilerRequireExtensionNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "ext")] [NativeName(NativeNameType.Type, "const char*")] byte* ext); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_require_extension")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerRequireExtensionNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "ext")] [NativeName(NativeNameType.Type, "const char*")] byte* ext); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] + [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerRequireExtension([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "ext")] [NativeName(NativeNameType.Type, "const char*")] byte* ext) { @@ -734,7 +652,7 @@ public static SpvcResult SpvcCompilerRequireExtension([NativeName(NativeNameType return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] + [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerRequireExtension([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "ext")] [NativeName(NativeNameType.Type, "const char*")] ref byte ext) { @@ -745,7 +663,7 @@ public static SpvcResult SpvcCompilerRequireExtension([NativeName(NativeNameType } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] + [NativeName(NativeNameType.Func, "spvc_compiler_require_extension")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerRequireExtension([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "ext")] [NativeName(NativeNameType.Type, "const char*")] string ext) { @@ -774,31 +692,43 @@ public static SpvcResult SpvcCompilerRequireExtension([NativeName(NativeNameType return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_num_required_extensions")] [return: NativeName(NativeNameType.Type, "size_t")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_num_required_extensions")] - internal static extern nuint SpvcCompilerGetNumRequiredExtensionsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_num_required_extensions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial ulong SpvcCompilerGetNumRequiredExtensionsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_num_required_extensions")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_num_required_extensions")] [return: NativeName(NativeNameType.Type, "size_t")] - public static nuint SpvcCompilerGetNumRequiredExtensions([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) + public static ulong SpvcCompilerGetNumRequiredExtensions([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { - nuint ret = SpvcCompilerGetNumRequiredExtensionsNative(compiler); + ulong ret = SpvcCompilerGetNumRequiredExtensionsNative(compiler); return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_required_extension")] - internal static extern byte* SpvcCompilerGetRequiredExtensionNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "size_t")] nuint index); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_required_extension")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvcCompilerGetRequiredExtensionNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "size_t")] ulong index); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] + [return: NativeName(NativeNameType.Type, "const char*")] + public static byte* SpvcCompilerGetRequiredExtension([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "size_t")] ulong index) + { + byte* ret = SpvcCompilerGetRequiredExtensionNative(compiler, index); + return ret; + } + + [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] + [return: NativeName(NativeNameType.Type, "const char*")] + public static string SpvcCompilerGetRequiredExtensionS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "size_t")] ulong index) + { + string ret = Utils.DecodeStringUTF8(SpvcCompilerGetRequiredExtensionNative(compiler, index)); + return ret; + } + + [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* SpvcCompilerGetRequiredExtension([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "size_t")] nuint index) { @@ -806,7 +736,7 @@ public static nuint SpvcCompilerGetNumRequiredExtensions([NativeName(NativeNameT return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_required_extension")] [return: NativeName(NativeNameType.Type, "const char*")] public static string SpvcCompilerGetRequiredExtensionS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "size_t")] nuint index) { @@ -814,15 +744,13 @@ public static string SpvcCompilerGetRequiredExtensionS([NativeName(NativeNameTyp return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_flatten_buffer_block")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_flatten_buffer_block")] - internal static extern SpvcResult SpvcCompilerFlattenBufferBlockNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_flatten_buffer_block")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerFlattenBufferBlockNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_flatten_buffer_block")] + [NativeName(NativeNameType.Func, "spvc_compiler_flatten_buffer_block")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerFlattenBufferBlock([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -830,15 +758,13 @@ public static SpvcResult SpvcCompilerFlattenBufferBlock([NativeName(NativeNameTy return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_variable_is_depth_or_compare")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_variable_is_depth_or_compare")] - internal static extern byte SpvcCompilerVariableIsDepthOrCompareNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_variable_is_depth_or_compare")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerVariableIsDepthOrCompareNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_variable_is_depth_or_compare")] + [NativeName(NativeNameType.Func, "spvc_compiler_variable_is_depth_or_compare")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerVariableIsDepthOrCompare([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -846,15 +772,13 @@ public static byte SpvcCompilerVariableIsDepthOrCompare([NativeName(NativeNameTy return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_mask_stage_output_by_location")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_mask_stage_output_by_location")] - internal static extern SpvcResult SpvcCompilerMaskStageOutputByLocationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location, [NativeName(NativeNameType.Param, "component")] [NativeName(NativeNameType.Type, "unsigned int")] uint component); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_mask_stage_output_by_location")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMaskStageOutputByLocationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location, [NativeName(NativeNameType.Param, "component")] [NativeName(NativeNameType.Type, "unsigned int")] uint component); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_mask_stage_output_by_location")] + [NativeName(NativeNameType.Func, "spvc_compiler_mask_stage_output_by_location")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMaskStageOutputByLocation([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location, [NativeName(NativeNameType.Param, "component")] [NativeName(NativeNameType.Type, "unsigned int")] uint component) { @@ -862,15 +786,13 @@ public static SpvcResult SpvcCompilerMaskStageOutputByLocation([NativeName(Nativ return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_mask_stage_output_by_builtin")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_mask_stage_output_by_builtin")] - internal static extern SpvcResult SpvcCompilerMaskStageOutputByBuiltinNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "builtin")] [NativeName(NativeNameType.Type, "SpvBuiltIn")] SpvBuiltIn builtin); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_mask_stage_output_by_builtin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMaskStageOutputByBuiltinNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "builtin")] [NativeName(NativeNameType.Type, "SpvBuiltIn")] SpvBuiltIn builtin); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_mask_stage_output_by_builtin")] + [NativeName(NativeNameType.Func, "spvc_compiler_mask_stage_output_by_builtin")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMaskStageOutputByBuiltin([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "builtin")] [NativeName(NativeNameType.Type, "SpvBuiltIn")] SpvBuiltIn builtin) { @@ -884,10 +806,30 @@ public static SpvcResult SpvcCompilerMaskStageOutputByBuiltin([NativeName(Native /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_root_constants_layout")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_hlsl_set_root_constants_layout")] - internal static extern SpvcResult SpvcCompilerHlslSetRootConstantsLayoutNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constant_info")] [NativeName(NativeNameType.Type, "const spvc_hlsl_root_constants*")] SpvcHlslRootConstants* constantInfo, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_hlsl_set_root_constants_layout")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerHlslSetRootConstantsLayoutNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constant_info")] [NativeName(NativeNameType.Type, "const spvc_hlsl_root_constants*")] SpvcHlslRootConstants* constantInfo, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] ulong count); + + /// /// HLSL specifics.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_root_constants_layout")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult SpvcCompilerHlslSetRootConstantsLayout([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constant_info")] [NativeName(NativeNameType.Type, "const spvc_hlsl_root_constants*")] SpvcHlslRootConstants* constantInfo, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] ulong count) + { + SpvcResult ret = SpvcCompilerHlslSetRootConstantsLayoutNative(compiler, constantInfo, count); + return ret; + } - /// /// HLSL specifics.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_root_constants_layout")] + /// /// HLSL specifics.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_root_constants_layout")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult SpvcCompilerHlslSetRootConstantsLayout([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constant_info")] [NativeName(NativeNameType.Type, "const spvc_hlsl_root_constants*")] ref SpvcHlslRootConstants constantInfo, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] ulong count) + { + fixed (SpvcHlslRootConstants* pconstantInfo = &constantInfo) + { + SpvcResult ret = SpvcCompilerHlslSetRootConstantsLayoutNative(compiler, (SpvcHlslRootConstants*)pconstantInfo, count); + return ret; + } + } + + /// /// HLSL specifics.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_root_constants_layout")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerHlslSetRootConstantsLayout([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constant_info")] [NativeName(NativeNameType.Type, "const spvc_hlsl_root_constants*")] SpvcHlslRootConstants* constantInfo, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) { @@ -895,7 +837,7 @@ public static SpvcResult SpvcCompilerHlslSetRootConstantsLayout([NativeName(Nati return ret; } - /// /// HLSL specifics.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_root_constants_layout")] + /// /// HLSL specifics.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_root_constants_layout")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerHlslSetRootConstantsLayout([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constant_info")] [NativeName(NativeNameType.Type, "const spvc_hlsl_root_constants*")] ref SpvcHlslRootConstants constantInfo, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t")] nuint count) { @@ -906,15 +848,32 @@ public static SpvcResult SpvcCompilerHlslSetRootConstantsLayout([NativeName(Nati } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_hlsl_add_vertex_attribute_remap")] - internal static extern SpvcResult SpvcCompilerHlslAddVertexAttributeRemapNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "remap")] [NativeName(NativeNameType.Type, "const spvc_hlsl_vertex_attribute_remap*")] SpvcHlslVertexAttributeRemap* remap, [NativeName(NativeNameType.Param, "remaps")] [NativeName(NativeNameType.Type, "size_t")] nuint remaps); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_hlsl_add_vertex_attribute_remap")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerHlslAddVertexAttributeRemapNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "remap")] [NativeName(NativeNameType.Type, "const spvc_hlsl_vertex_attribute_remap*")] SpvcHlslVertexAttributeRemap* remap, [NativeName(NativeNameType.Param, "remaps")] [NativeName(NativeNameType.Type, "size_t")] ulong remaps); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult SpvcCompilerHlslAddVertexAttributeRemap([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "remap")] [NativeName(NativeNameType.Type, "const spvc_hlsl_vertex_attribute_remap*")] SpvcHlslVertexAttributeRemap* remap, [NativeName(NativeNameType.Param, "remaps")] [NativeName(NativeNameType.Type, "size_t")] ulong remaps) + { + SpvcResult ret = SpvcCompilerHlslAddVertexAttributeRemapNative(compiler, remap, remaps); + return ret; + } + + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult SpvcCompilerHlslAddVertexAttributeRemap([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "remap")] [NativeName(NativeNameType.Type, "const spvc_hlsl_vertex_attribute_remap*")] ref SpvcHlslVertexAttributeRemap remap, [NativeName(NativeNameType.Param, "remaps")] [NativeName(NativeNameType.Type, "size_t")] ulong remaps) + { + fixed (SpvcHlslVertexAttributeRemap* premap = &remap) + { + SpvcResult ret = SpvcCompilerHlslAddVertexAttributeRemapNative(compiler, (SpvcHlslVertexAttributeRemap*)premap, remaps); + return ret; + } + } + + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerHlslAddVertexAttributeRemap([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "remap")] [NativeName(NativeNameType.Type, "const spvc_hlsl_vertex_attribute_remap*")] SpvcHlslVertexAttributeRemap* remap, [NativeName(NativeNameType.Param, "remaps")] [NativeName(NativeNameType.Type, "size_t")] nuint remaps) { @@ -922,7 +881,7 @@ public static SpvcResult SpvcCompilerHlslAddVertexAttributeRemap([NativeName(Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_vertex_attribute_remap")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerHlslAddVertexAttributeRemap([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "remap")] [NativeName(NativeNameType.Type, "const spvc_hlsl_vertex_attribute_remap*")] ref SpvcHlslVertexAttributeRemap remap, [NativeName(NativeNameType.Param, "remaps")] [NativeName(NativeNameType.Type, "size_t")] nuint remaps) { @@ -933,15 +892,13 @@ public static SpvcResult SpvcCompilerHlslAddVertexAttributeRemap([NativeName(Nat } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_remap_num_workgroups_builtin")] [return: NativeName(NativeNameType.Type, "spvc_variable_id")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_hlsl_remap_num_workgroups_builtin")] - internal static extern uint SpvcCompilerHlslRemapNumWorkgroupsBuiltinNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_hlsl_remap_num_workgroups_builtin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcCompilerHlslRemapNumWorkgroupsBuiltinNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_remap_num_workgroups_builtin")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_remap_num_workgroups_builtin")] [return: NativeName(NativeNameType.Type, "spvc_variable_id")] public static uint SpvcCompilerHlslRemapNumWorkgroupsBuiltin([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -949,15 +906,13 @@ public static uint SpvcCompilerHlslRemapNumWorkgroupsBuiltin([NativeName(NativeN return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_resource_binding_flags")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_hlsl_set_resource_binding_flags")] - internal static extern SpvcResult SpvcCompilerHlslSetResourceBindingFlagsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "spvc_hlsl_binding_flags")] uint flags); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_hlsl_set_resource_binding_flags")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerHlslSetResourceBindingFlagsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "spvc_hlsl_binding_flags")] uint flags); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_resource_binding_flags")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_set_resource_binding_flags")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerHlslSetResourceBindingFlags([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "spvc_hlsl_binding_flags")] uint flags) { @@ -965,15 +920,13 @@ public static SpvcResult SpvcCompilerHlslSetResourceBindingFlags([NativeName(Nat return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_resource_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_hlsl_add_resource_binding")] - internal static extern SpvcResult SpvcCompilerHlslAddResourceBindingNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_hlsl_resource_binding*")] SpvcHlslResourceBinding* binding); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_hlsl_add_resource_binding")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerHlslAddResourceBindingNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_hlsl_resource_binding*")] SpvcHlslResourceBinding* binding); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_resource_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_resource_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerHlslAddResourceBinding([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_hlsl_resource_binding*")] SpvcHlslResourceBinding* binding) { @@ -981,7 +934,7 @@ public static SpvcResult SpvcCompilerHlslAddResourceBinding([NativeName(NativeNa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_resource_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_add_resource_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerHlslAddResourceBinding([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_hlsl_resource_binding*")] ref SpvcHlslResourceBinding binding) { @@ -992,15 +945,13 @@ public static SpvcResult SpvcCompilerHlslAddResourceBinding([NativeName(NativeNa } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_is_resource_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_hlsl_is_resource_used")] - internal static extern byte SpvcCompilerHlslIsResourceUsedNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "unsigned int")] uint set, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_hlsl_is_resource_used")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerHlslIsResourceUsedNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "unsigned int")] uint set, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_is_resource_used")] + [NativeName(NativeNameType.Func, "spvc_compiler_hlsl_is_resource_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerHlslIsResourceUsed([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "unsigned int")] uint set, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding) { @@ -1014,10 +965,11 @@ public static byte SpvcCompilerHlslIsResourceUsed([NativeName(NativeNameType.Par /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_rasterization_disabled")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_is_rasterization_disabled")] - internal static extern byte SpvcCompilerMslIsRasterizationDisabledNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_is_rasterization_disabled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerMslIsRasterizationDisabledNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// MSL specifics.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_is_rasterization_disabled")] + /// /// MSL specifics.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_is_rasterization_disabled")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerMslIsRasterizationDisabled([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -1030,10 +982,11 @@ public static byte SpvcCompilerMslIsRasterizationDisabled([NativeName(NativeName /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_aux_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_needs_aux_buffer")] - internal static extern byte SpvcCompilerMslNeedsAuxBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_needs_aux_buffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerMslNeedsAuxBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// Obsolete. Renamed to needs_swizzle_buffer.
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_aux_buffer")] + /// /// Obsolete. Renamed to needs_swizzle_buffer.
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_aux_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerMslNeedsAuxBuffer([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -1041,15 +994,13 @@ public static byte SpvcCompilerMslNeedsAuxBuffer([NativeName(NativeNameType.Para return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_swizzle_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_needs_swizzle_buffer")] - internal static extern byte SpvcCompilerMslNeedsSwizzleBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_needs_swizzle_buffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerMslNeedsSwizzleBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_swizzle_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_swizzle_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerMslNeedsSwizzleBuffer([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -1057,15 +1008,13 @@ public static byte SpvcCompilerMslNeedsSwizzleBuffer([NativeName(NativeNameType. return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_buffer_size_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_needs_buffer_size_buffer")] - internal static extern byte SpvcCompilerMslNeedsBufferSizeBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_needs_buffer_size_buffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerMslNeedsBufferSizeBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_buffer_size_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_buffer_size_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerMslNeedsBufferSizeBuffer([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -1073,15 +1022,13 @@ public static byte SpvcCompilerMslNeedsBufferSizeBuffer([NativeName(NativeNameTy return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_output_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_needs_output_buffer")] - internal static extern byte SpvcCompilerMslNeedsOutputBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_needs_output_buffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerMslNeedsOutputBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_output_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_output_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerMslNeedsOutputBuffer([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -1089,15 +1036,13 @@ public static byte SpvcCompilerMslNeedsOutputBuffer([NativeName(NativeNameType.P return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_patch_output_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_needs_patch_output_buffer")] - internal static extern byte SpvcCompilerMslNeedsPatchOutputBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_needs_patch_output_buffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerMslNeedsPatchOutputBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_patch_output_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_patch_output_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerMslNeedsPatchOutputBuffer([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -1105,15 +1050,13 @@ public static byte SpvcCompilerMslNeedsPatchOutputBuffer([NativeName(NativeNameT return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_input_threadgroup_mem")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_needs_input_threadgroup_mem")] - internal static extern byte SpvcCompilerMslNeedsInputThreadgroupMemNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_needs_input_threadgroup_mem")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerMslNeedsInputThreadgroupMemNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_input_threadgroup_mem")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_needs_input_threadgroup_mem")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerMslNeedsInputThreadgroupMem([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -1121,15 +1064,13 @@ public static byte SpvcCompilerMslNeedsInputThreadgroupMem([NativeName(NativeNam return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_vertex_attribute")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_add_vertex_attribute")] - internal static extern SpvcResult SpvcCompilerMslAddVertexAttributeNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "attrs")] [NativeName(NativeNameType.Type, "const spvc_msl_vertex_attribute*")] SpvcMslVertexAttribute* attrs); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_add_vertex_attribute")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslAddVertexAttributeNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "attrs")] [NativeName(NativeNameType.Type, "const spvc_msl_vertex_attribute*")] SpvcMslVertexAttribute* attrs); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_vertex_attribute")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_vertex_attribute")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddVertexAttribute([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "attrs")] [NativeName(NativeNameType.Type, "const spvc_msl_vertex_attribute*")] SpvcMslVertexAttribute* attrs) { @@ -1137,7 +1078,7 @@ public static SpvcResult SpvcCompilerMslAddVertexAttribute([NativeName(NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_vertex_attribute")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_vertex_attribute")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddVertexAttribute([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "attrs")] [NativeName(NativeNameType.Type, "const spvc_msl_vertex_attribute*")] ref SpvcMslVertexAttribute attrs) { @@ -1148,15 +1089,13 @@ public static SpvcResult SpvcCompilerMslAddVertexAttribute([NativeName(NativeNam } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_resource_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_add_resource_binding")] - internal static extern SpvcResult SpvcCompilerMslAddResourceBindingNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_msl_resource_binding*")] SpvcMslResourceBinding* binding); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_add_resource_binding")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslAddResourceBindingNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_msl_resource_binding*")] SpvcMslResourceBinding* binding); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_resource_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_resource_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddResourceBinding([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_msl_resource_binding*")] SpvcMslResourceBinding* binding) { @@ -1164,7 +1103,7 @@ public static SpvcResult SpvcCompilerMslAddResourceBinding([NativeName(NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_resource_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_resource_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddResourceBinding([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "const spvc_msl_resource_binding*")] ref SpvcMslResourceBinding binding) { @@ -1180,10 +1119,11 @@ public static SpvcResult SpvcCompilerMslAddResourceBinding([NativeName(NativeNam /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_add_shader_input")] - internal static extern SpvcResult SpvcCompilerMslAddShaderInputNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var*")] SpvcMslShaderInterfaceVar* input); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_add_shader_input")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslAddShaderInputNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var*")] SpvcMslShaderInterfaceVar* input); - /// /// Deprecated; use spvc_compiler_msl_add_shader_input_2().
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input")] + /// /// Deprecated; use spvc_compiler_msl_add_shader_input_2().
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddShaderInput([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var*")] SpvcMslShaderInterfaceVar* input) { @@ -1191,7 +1131,7 @@ public static SpvcResult SpvcCompilerMslAddShaderInput([NativeName(NativeNameTyp return ret; } - /// /// Deprecated; use spvc_compiler_msl_add_shader_input_2().
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input")] + /// /// Deprecated; use spvc_compiler_msl_add_shader_input_2().
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddShaderInput([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var*")] ref SpvcMslShaderInterfaceVar input) { @@ -1202,15 +1142,13 @@ public static SpvcResult SpvcCompilerMslAddShaderInput([NativeName(NativeNameTyp } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input_2")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_add_shader_input_2")] - internal static extern SpvcResult SpvcCompilerMslAddShaderInput2Native([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] SpvcMslShaderInterfaceVar2* input); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_add_shader_input_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslAddShaderInput2Native([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] SpvcMslShaderInterfaceVar2* input); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input_2")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input_2")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddShaderInput2([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] SpvcMslShaderInterfaceVar2* input) { @@ -1218,7 +1156,7 @@ public static SpvcResult SpvcCompilerMslAddShaderInput2([NativeName(NativeNameTy return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input_2")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_input_2")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddShaderInput2([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "input")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] ref SpvcMslShaderInterfaceVar2 input) { @@ -1234,10 +1172,11 @@ public static SpvcResult SpvcCompilerMslAddShaderInput2([NativeName(NativeNameTy /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_add_shader_output")] - internal static extern SpvcResult SpvcCompilerMslAddShaderOutputNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var*")] SpvcMslShaderInterfaceVar* output); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_add_shader_output")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslAddShaderOutputNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var*")] SpvcMslShaderInterfaceVar* output); - /// /// Deprecated; use spvc_compiler_msl_add_shader_output_2().
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output")] + /// /// Deprecated; use spvc_compiler_msl_add_shader_output_2().
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddShaderOutput([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var*")] SpvcMslShaderInterfaceVar* output) { @@ -1245,7 +1184,7 @@ public static SpvcResult SpvcCompilerMslAddShaderOutput([NativeName(NativeNameTy return ret; } - /// /// Deprecated; use spvc_compiler_msl_add_shader_output_2().
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output")] + /// /// Deprecated; use spvc_compiler_msl_add_shader_output_2().
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddShaderOutput([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var*")] ref SpvcMslShaderInterfaceVar output) { @@ -1256,15 +1195,13 @@ public static SpvcResult SpvcCompilerMslAddShaderOutput([NativeName(NativeNameTy } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output_2")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_add_shader_output_2")] - internal static extern SpvcResult SpvcCompilerMslAddShaderOutput2Native([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] SpvcMslShaderInterfaceVar2* output); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_add_shader_output_2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslAddShaderOutput2Native([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] SpvcMslShaderInterfaceVar2* output); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output_2")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output_2")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddShaderOutput2([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] SpvcMslShaderInterfaceVar2* output) { @@ -1272,7 +1209,7 @@ public static SpvcResult SpvcCompilerMslAddShaderOutput2([NativeName(NativeNameT return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output_2")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_shader_output_2")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddShaderOutput2([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "output")] [NativeName(NativeNameType.Type, "const spvc_msl_shader_interface_var_2*")] ref SpvcMslShaderInterfaceVar2 output) { @@ -1283,15 +1220,13 @@ public static SpvcResult SpvcCompilerMslAddShaderOutput2([NativeName(NativeNameT } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_discrete_descriptor_set")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_add_discrete_descriptor_set")] - internal static extern SpvcResult SpvcCompilerMslAddDiscreteDescriptorSetNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_add_discrete_descriptor_set")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslAddDiscreteDescriptorSetNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_discrete_descriptor_set")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_discrete_descriptor_set")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddDiscreteDescriptorSet([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet) { @@ -1299,15 +1234,13 @@ public static SpvcResult SpvcCompilerMslAddDiscreteDescriptorSet([NativeName(Nat return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_argument_buffer_device_address_space")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_set_argument_buffer_device_address_space")] - internal static extern SpvcResult SpvcCompilerMslSetArgumentBufferDeviceAddressSpaceNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "device_address")] [NativeName(NativeNameType.Type, "spvc_bool")] byte deviceAddress); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_set_argument_buffer_device_address_space")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslSetArgumentBufferDeviceAddressSpaceNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "device_address")] [NativeName(NativeNameType.Type, "spvc_bool")] byte deviceAddress); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_argument_buffer_device_address_space")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_argument_buffer_device_address_space")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslSetArgumentBufferDeviceAddressSpace([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "device_address")] [NativeName(NativeNameType.Type, "spvc_bool")] byte deviceAddress) { @@ -1320,10 +1253,11 @@ public static SpvcResult SpvcCompilerMslSetArgumentBufferDeviceAddressSpace([Nat /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_vertex_attribute_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_is_vertex_attribute_used")] - internal static extern byte SpvcCompilerMslIsVertexAttributeUsedNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_is_vertex_attribute_used")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerMslIsVertexAttributeUsedNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location); - /// /// Obsolete, use is_shader_input_used.
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_is_vertex_attribute_used")] + /// /// Obsolete, use is_shader_input_used.
///
[NativeName(NativeNameType.Func, "spvc_compiler_msl_is_vertex_attribute_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerMslIsVertexAttributeUsed([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location) { @@ -1331,15 +1265,13 @@ public static byte SpvcCompilerMslIsVertexAttributeUsed([NativeName(NativeNameTy return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_shader_input_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_is_shader_input_used")] - internal static extern byte SpvcCompilerMslIsShaderInputUsedNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_is_shader_input_used")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerMslIsShaderInputUsedNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_shader_input_used")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_shader_input_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerMslIsShaderInputUsed([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location) { @@ -1347,15 +1279,13 @@ public static byte SpvcCompilerMslIsShaderInputUsed([NativeName(NativeNameType.P return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_shader_output_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_is_shader_output_used")] - internal static extern byte SpvcCompilerMslIsShaderOutputUsedNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_is_shader_output_used")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerMslIsShaderOutputUsedNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_shader_output_used")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_shader_output_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerMslIsShaderOutputUsed([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location) { @@ -1363,15 +1293,13 @@ public static byte SpvcCompilerMslIsShaderOutputUsed([NativeName(NativeNameType. return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_resource_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_is_resource_used")] - internal static extern byte SpvcCompilerMslIsResourceUsedNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "unsigned int")] uint set, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_is_resource_used")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerMslIsResourceUsedNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "unsigned int")] uint set, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_resource_used")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_is_resource_used")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerMslIsResourceUsed([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "unsigned int")] uint set, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding) { @@ -1379,15 +1307,13 @@ public static byte SpvcCompilerMslIsResourceUsed([NativeName(NativeNameType.Para return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_remap_constexpr_sampler")] - internal static extern SpvcResult SpvcCompilerMslRemapConstexprSamplerNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_remap_constexpr_sampler")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslRemapConstexprSamplerNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSampler([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler) { @@ -1395,7 +1321,7 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSampler([NativeName(Native return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSampler([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler) { @@ -1406,15 +1332,13 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSampler([NativeName(Native } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_remap_constexpr_sampler_by_binding")] - internal static extern SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_remap_constexpr_sampler_by_binding")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBinding([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler) { @@ -1422,7 +1346,7 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBinding([NativeNa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBinding([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler) { @@ -1433,15 +1357,13 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBinding([NativeNa } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] - internal static extern SpvcResult SpvcCompilerMslRemapConstexprSamplerYcbcrNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslRemapConstexprSamplerYcbcrNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSamplerYcbcr([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv) { @@ -1449,7 +1371,7 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSamplerYcbcr([NativeName(N return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSamplerYcbcr([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv) { @@ -1460,7 +1382,7 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSamplerYcbcr([NativeName(N } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSamplerYcbcr([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] ref SpvcMslSamplerYcbcrConversion conv) { @@ -1471,7 +1393,7 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSamplerYcbcr([NativeName(N } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSamplerYcbcr([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] ref SpvcMslSamplerYcbcrConversion conv) { @@ -1485,15 +1407,13 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSamplerYcbcr([NativeName(N } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] - internal static extern SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingYcbcrNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingYcbcrNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingYcbcr([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv) { @@ -1501,7 +1421,7 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingYcbcr([Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingYcbcr([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] SpvcMslSamplerYcbcrConversion* conv) { @@ -1512,7 +1432,7 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingYcbcr([Nat } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingYcbcr([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] SpvcMslConstexprSampler* sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] ref SpvcMslSamplerYcbcrConversion conv) { @@ -1523,7 +1443,7 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingYcbcr([Nat } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingYcbcr([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "sampler")] [NativeName(NativeNameType.Type, "const spvc_msl_constexpr_sampler*")] ref SpvcMslConstexprSampler sampler, [NativeName(NativeNameType.Param, "conv")] [NativeName(NativeNameType.Type, "const spvc_msl_sampler_ycbcr_conversion*")] ref SpvcMslSamplerYcbcrConversion conv) { @@ -1537,15 +1457,13 @@ public static SpvcResult SpvcCompilerMslRemapConstexprSamplerByBindingYcbcr([Nat } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_fragment_output_components")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_set_fragment_output_components")] - internal static extern SpvcResult SpvcCompilerMslSetFragmentOutputComponentsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "unsigned int")] uint components); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_set_fragment_output_components")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslSetFragmentOutputComponentsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "unsigned int")] uint components); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_fragment_output_components")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_fragment_output_components")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslSetFragmentOutputComponents([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "unsigned int")] uint location, [NativeName(NativeNameType.Param, "components")] [NativeName(NativeNameType.Type, "unsigned int")] uint components) { @@ -1553,15 +1471,13 @@ public static SpvcResult SpvcCompilerMslSetFragmentOutputComponents([NativeName( return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_automatic_resource_binding")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_get_automatic_resource_binding")] - internal static extern uint SpvcCompilerMslGetAutomaticResourceBindingNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_get_automatic_resource_binding")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcCompilerMslGetAutomaticResourceBindingNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_automatic_resource_binding")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_automatic_resource_binding")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcCompilerMslGetAutomaticResourceBinding([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -1569,15 +1485,13 @@ public static uint SpvcCompilerMslGetAutomaticResourceBinding([NativeName(Native return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_automatic_resource_binding_secondary")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_get_automatic_resource_binding_secondary")] - internal static extern uint SpvcCompilerMslGetAutomaticResourceBindingSecondaryNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_get_automatic_resource_binding_secondary")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcCompilerMslGetAutomaticResourceBindingSecondaryNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_automatic_resource_binding_secondary")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_automatic_resource_binding_secondary")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcCompilerMslGetAutomaticResourceBindingSecondary([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -1585,15 +1499,13 @@ public static uint SpvcCompilerMslGetAutomaticResourceBindingSecondary([NativeNa return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_dynamic_buffer")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_add_dynamic_buffer")] - internal static extern SpvcResult SpvcCompilerMslAddDynamicBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_add_dynamic_buffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslAddDynamicBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_dynamic_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_dynamic_buffer")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddDynamicBuffer([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index) { @@ -1601,15 +1513,13 @@ public static SpvcResult SpvcCompilerMslAddDynamicBuffer([NativeName(NativeNameT return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_inline_uniform_block")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_add_inline_uniform_block")] - internal static extern SpvcResult SpvcCompilerMslAddInlineUniformBlockNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_add_inline_uniform_block")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslAddInlineUniformBlockNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_inline_uniform_block")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_add_inline_uniform_block")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslAddInlineUniformBlock([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "desc_set")] [NativeName(NativeNameType.Type, "unsigned int")] uint descSet, [NativeName(NativeNameType.Param, "binding")] [NativeName(NativeNameType.Type, "unsigned int")] uint binding) { @@ -1617,15 +1527,13 @@ public static SpvcResult SpvcCompilerMslAddInlineUniformBlock([NativeName(Native return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_set_combined_sampler_suffix")] - internal static extern SpvcResult SpvcCompilerMslSetCombinedSamplerSuffixNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] byte* suffix); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_set_combined_sampler_suffix")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerMslSetCombinedSamplerSuffixNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] byte* suffix); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslSetCombinedSamplerSuffix([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] byte* suffix) { @@ -1633,7 +1541,7 @@ public static SpvcResult SpvcCompilerMslSetCombinedSamplerSuffix([NativeName(Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslSetCombinedSamplerSuffix([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] ref byte suffix) { @@ -1644,7 +1552,7 @@ public static SpvcResult SpvcCompilerMslSetCombinedSamplerSuffix([NativeName(Nat } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_set_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerMslSetCombinedSamplerSuffix([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "suffix")] [NativeName(NativeNameType.Type, "const char*")] string suffix) { @@ -1673,15 +1581,13 @@ public static SpvcResult SpvcCompilerMslSetCombinedSamplerSuffix([NativeName(Nat return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_msl_get_combined_sampler_suffix")] - internal static extern byte* SpvcCompilerMslGetCombinedSamplerSuffixNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_msl_get_combined_sampler_suffix")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvcCompilerMslGetCombinedSamplerSuffixNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_combined_sampler_suffix")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* SpvcCompilerMslGetCombinedSamplerSuffix([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -1689,7 +1595,7 @@ public static SpvcResult SpvcCompilerMslSetCombinedSamplerSuffix([NativeName(Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_combined_sampler_suffix")] + [NativeName(NativeNameType.Func, "spvc_compiler_msl_get_combined_sampler_suffix")] [return: NativeName(NativeNameType.Type, "const char*")] public static string SpvcCompilerMslGetCombinedSamplerSuffixS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -1703,10 +1609,11 @@ public static string SpvcCompilerMslGetCombinedSamplerSuffixS([NativeName(Native /// [NativeName(NativeNameType.Func, "spvc_compiler_get_active_interface_variables")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_active_interface_variables")] - internal static extern SpvcResult SpvcCompilerGetActiveInterfaceVariablesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "spvc_set*")] SpvcSet* set); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_active_interface_variables")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetActiveInterfaceVariablesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "spvc_set*")] SpvcSet* set); - /// /// Reflect resources.
/// Maps almost 1:1 to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_interface_variables")] + /// /// Reflect resources.
/// Maps almost 1:1 to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_interface_variables")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetActiveInterfaceVariables([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "spvc_set*")] SpvcSet* set) { @@ -1714,7 +1621,7 @@ public static SpvcResult SpvcCompilerGetActiveInterfaceVariables([NativeName(Nat return ret; } - /// /// Reflect resources.
/// Maps almost 1:1 to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_interface_variables")] + /// /// Reflect resources.
/// Maps almost 1:1 to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_interface_variables")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetActiveInterfaceVariables([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "spvc_set*")] ref SpvcSet set) { @@ -1725,15 +1632,13 @@ public static SpvcResult SpvcCompilerGetActiveInterfaceVariables([NativeName(Nat } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_set_enabled_interface_variables")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_set_enabled_interface_variables")] - internal static extern SpvcResult SpvcCompilerSetEnabledInterfaceVariablesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "spvc_set")] SpvcSet set); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_set_enabled_interface_variables")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerSetEnabledInterfaceVariablesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "spvc_set")] SpvcSet set); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_enabled_interface_variables")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_enabled_interface_variables")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerSetEnabledInterfaceVariables([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "set")] [NativeName(NativeNameType.Type, "spvc_set")] SpvcSet set) { @@ -1741,15 +1646,13 @@ public static SpvcResult SpvcCompilerSetEnabledInterfaceVariables([NativeName(Na return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_create_shader_resources")] - internal static extern SpvcResult SpvcCompilerCreateShaderResourcesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] SpvcResources* resources); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_create_shader_resources")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerCreateShaderResourcesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] SpvcResources* resources); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources")] + [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerCreateShaderResources([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] SpvcResources* resources) { @@ -1757,7 +1660,7 @@ public static SpvcResult SpvcCompilerCreateShaderResources([NativeName(NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources")] + [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerCreateShaderResources([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] ref SpvcResources resources) { @@ -1768,15 +1671,13 @@ public static SpvcResult SpvcCompilerCreateShaderResources([NativeName(NativeNam } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources_for_active_variables")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_create_shader_resources_for_active_variables")] - internal static extern SpvcResult SpvcCompilerCreateShaderResourcesForActiveVariablesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] SpvcResources* resources, [NativeName(NativeNameType.Param, "active")] [NativeName(NativeNameType.Type, "spvc_set")] SpvcSet active); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_create_shader_resources_for_active_variables")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerCreateShaderResourcesForActiveVariablesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] SpvcResources* resources, [NativeName(NativeNameType.Param, "active")] [NativeName(NativeNameType.Type, "spvc_set")] SpvcSet active); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources_for_active_variables")] + [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources_for_active_variables")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerCreateShaderResourcesForActiveVariables([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] SpvcResources* resources, [NativeName(NativeNameType.Param, "active")] [NativeName(NativeNameType.Type, "spvc_set")] SpvcSet active) { @@ -1784,7 +1685,7 @@ public static SpvcResult SpvcCompilerCreateShaderResourcesForActiveVariables([Na return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources_for_active_variables")] + [NativeName(NativeNameType.Func, "spvc_compiler_create_shader_resources_for_active_variables")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerCreateShaderResourcesForActiveVariables([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources*")] ref SpvcResources resources, [NativeName(NativeNameType.Param, "active")] [NativeName(NativeNameType.Type, "spvc_set")] SpvcSet active) { @@ -1795,25 +1696,23 @@ public static SpvcResult SpvcCompilerCreateShaderResourcesForActiveVariables([Na } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_resources_get_resource_list_for_type")] - internal static extern SpvcResult SpvcResourcesGetResourceListForTypeNative([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] SpvcReflectedResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* resourceSize); + [LibraryImport(LibName, EntryPoint = "spvc_resources_get_resource_list_for_type")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcResourcesGetResourceListForTypeNative([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] SpvcReflectedResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* resourceSize); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcResourcesGetResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] SpvcReflectedResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* resourceSize) + public static SpvcResult SpvcResourcesGetResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] SpvcReflectedResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* resourceSize) { SpvcResult ret = SpvcResourcesGetResourceListForTypeNative(resources, type, resourceList, resourceSize); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcResourcesGetResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] ref SpvcReflectedResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* resourceSize) + public static SpvcResult SpvcResourcesGetResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] ref SpvcReflectedResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* resourceSize) { fixed (SpvcReflectedResource** presourceList = &resourceList) { @@ -1822,18 +1721,18 @@ public static SpvcResult SpvcResourcesGetResourceListForType([NativeName(NativeN } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcResourcesGetResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] SpvcReflectedResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint resourceSize) { fixed (nuint* presourceSize = &resourceSize) { - SpvcResult ret = SpvcResourcesGetResourceListForTypeNative(resources, type, resourceList, (nuint*)presourceSize); + SpvcResult ret = SpvcResourcesGetResourceListForTypeNative(resources, type, resourceList, (ulong*)presourceSize); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcResourcesGetResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_resource_type")] SpvcResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_resource**")] ref SpvcReflectedResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint resourceSize) { @@ -1841,31 +1740,29 @@ public static SpvcResult SpvcResourcesGetResourceListForType([NativeName(NativeN { fixed (nuint* presourceSize = &resourceSize) { - SpvcResult ret = SpvcResourcesGetResourceListForTypeNative(resources, type, (SpvcReflectedResource**)presourceList, (nuint*)presourceSize); + SpvcResult ret = SpvcResourcesGetResourceListForTypeNative(resources, type, (SpvcReflectedResource**)presourceList, (ulong*)presourceSize); return ret; } } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_resources_get_builtin_resource_list_for_type")] - internal static extern SpvcResult SpvcResourcesGetBuiltinResourceListForTypeNative([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] SpvcReflectedBuiltinResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* resourceSize); + [LibraryImport(LibName, EntryPoint = "spvc_resources_get_builtin_resource_list_for_type")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcResourcesGetBuiltinResourceListForTypeNative([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] SpvcReflectedBuiltinResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* resourceSize); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcResourcesGetBuiltinResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] SpvcReflectedBuiltinResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* resourceSize) + public static SpvcResult SpvcResourcesGetBuiltinResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] SpvcReflectedBuiltinResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* resourceSize) { SpvcResult ret = SpvcResourcesGetBuiltinResourceListForTypeNative(resources, type, resourceList, resourceSize); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcResourcesGetBuiltinResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] ref SpvcReflectedBuiltinResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* resourceSize) + public static SpvcResult SpvcResourcesGetBuiltinResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] ref SpvcReflectedBuiltinResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* resourceSize) { fixed (SpvcReflectedBuiltinResource** presourceList = &resourceList) { @@ -1874,18 +1771,18 @@ public static SpvcResult SpvcResourcesGetBuiltinResourceListForType([NativeName( } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcResourcesGetBuiltinResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] SpvcReflectedBuiltinResource** resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint resourceSize) { fixed (nuint* presourceSize = &resourceSize) { - SpvcResult ret = SpvcResourcesGetBuiltinResourceListForTypeNative(resources, type, resourceList, (nuint*)presourceSize); + SpvcResult ret = SpvcResourcesGetBuiltinResourceListForTypeNative(resources, type, resourceList, (ulong*)presourceSize); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] + [NativeName(NativeNameType.Func, "spvc_resources_get_builtin_resource_list_for_type")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcResourcesGetBuiltinResourceListForType([NativeName(NativeNameType.Param, "resources")] [NativeName(NativeNameType.Type, "spvc_resources")] SpvcResources resources, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_builtin_resource_type")] SpvcBuiltinResourceType type, [NativeName(NativeNameType.Param, "resource_list")] [NativeName(NativeNameType.Type, "const spvc_reflected_builtin_resource**")] ref SpvcReflectedBuiltinResource* resourceList, [NativeName(NativeNameType.Param, "resource_size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint resourceSize) { @@ -1893,7 +1790,7 @@ public static SpvcResult SpvcResourcesGetBuiltinResourceListForType([NativeName( { fixed (nuint* presourceSize = &resourceSize) { - SpvcResult ret = SpvcResourcesGetBuiltinResourceListForTypeNative(resources, type, (SpvcReflectedBuiltinResource**)presourceList, (nuint*)presourceSize); + SpvcResult ret = SpvcResourcesGetBuiltinResourceListForTypeNative(resources, type, (SpvcReflectedBuiltinResource**)presourceList, (ulong*)presourceSize); return ret; } } @@ -1905,34 +1802,33 @@ public static SpvcResult SpvcResourcesGetBuiltinResourceListForType([NativeName( /// [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_set_decoration")] - internal static extern void SpvcCompilerSetDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "unsigned int")] uint argument); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_set_decoration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerSetDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "unsigned int")] uint argument); - /// /// Decorations.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_set_decoration")] + /// /// Decorations.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_set_decoration")] [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcCompilerSetDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "unsigned int")] uint argument) + public static void SpvcCompilerSetDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "unsigned int")] uint argument) { SpvcCompilerSetDecorationNative(compiler, id, decoration, argument); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_set_decoration_string")] - internal static extern void SpvcCompilerSetDecorationStringNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_set_decoration_string")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerSetDecorationStringNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcCompilerSetDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) + public static void SpvcCompilerSetDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) { SpvcCompilerSetDecorationStringNative(compiler, id, decoration, argument); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcCompilerSetDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) + public static void SpvcCompilerSetDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) { fixed (byte* pargument = &argument) { @@ -1940,9 +1836,9 @@ public static void SpvcCompilerSetDecorationString([NativeName(NativeNameType.Pa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcCompilerSetDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) + public static void SpvcCompilerSetDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) { byte* pStr0 = null; int pStrSize0 = 0; @@ -1968,24 +1864,22 @@ public static void SpvcCompilerSetDecorationString([NativeName(NativeNameType.Pa } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_set_name")] - internal static extern void SpvcCompilerSetNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_set_name")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerSetNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcCompilerSetName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) + public static void SpvcCompilerSetName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) { SpvcCompilerSetNameNative(compiler, id, argument); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcCompilerSetName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) + public static void SpvcCompilerSetName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) { fixed (byte* pargument = &argument) { @@ -1993,9 +1887,9 @@ public static void SpvcCompilerSetName([NativeName(NativeNameType.Param, "compil } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_name")] [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcCompilerSetName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) + public static void SpvcCompilerSetName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) { byte* pStr0 = null; int pStrSize0 = 0; @@ -2021,37 +1915,33 @@ public static void SpvcCompilerSetName([NativeName(NativeNameType.Param, "compil } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_set_member_decoration")] - internal static extern void SpvcCompilerSetMemberDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "unsigned int")] uint argument); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_set_member_decoration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerSetMemberDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "unsigned int")] uint argument); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerSetMemberDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "unsigned int")] uint argument) { SpvcCompilerSetMemberDecorationNative(compiler, id, memberIndex, decoration, argument); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_set_member_decoration_string")] - internal static extern void SpvcCompilerSetMemberDecorationStringNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_set_member_decoration_string")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerSetMemberDecorationStringNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerSetMemberDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) { SpvcCompilerSetMemberDecorationStringNative(compiler, id, memberIndex, decoration, argument); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerSetMemberDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) { @@ -2061,7 +1951,7 @@ public static void SpvcCompilerSetMemberDecorationString([NativeName(NativeNameT } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_decoration_string")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerSetMemberDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) { @@ -2089,22 +1979,20 @@ public static void SpvcCompilerSetMemberDecorationString([NativeName(NativeNameT } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_set_member_name")] - internal static extern void SpvcCompilerSetMemberNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_set_member_name")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerSetMemberNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerSetMemberName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] byte* argument) { SpvcCompilerSetMemberNameNative(compiler, id, memberIndex, argument); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerSetMemberName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] ref byte argument) { @@ -2114,7 +2002,7 @@ public static void SpvcCompilerSetMemberName([NativeName(NativeNameType.Param, " } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_member_name")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerSetMemberName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "argument")] [NativeName(NativeNameType.Type, "const char*")] string argument) { @@ -2142,61 +2030,53 @@ public static void SpvcCompilerSetMemberName([NativeName(NativeNameType.Param, " } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_unset_decoration")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_unset_decoration")] - internal static extern void SpvcCompilerUnsetDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_unset_decoration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerUnsetDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_unset_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_unset_decoration")] [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcCompilerUnsetDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) + public static void SpvcCompilerUnsetDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { SpvcCompilerUnsetDecorationNative(compiler, id, decoration); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_unset_member_decoration")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_unset_member_decoration")] - internal static extern void SpvcCompilerUnsetMemberDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_unset_member_decoration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerUnsetMemberDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_unset_member_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_unset_member_decoration")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerUnsetMemberDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { SpvcCompilerUnsetMemberDecorationNative(compiler, id, memberIndex, decoration); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_has_decoration")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_has_decoration")] - internal static extern byte SpvcCompilerHasDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_has_decoration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerHasDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_has_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_has_decoration")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - public static byte SpvcCompilerHasDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) + public static byte SpvcCompilerHasDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { byte ret = SpvcCompilerHasDecorationNative(compiler, id, decoration); return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_has_member_decoration")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_has_member_decoration")] - internal static extern byte SpvcCompilerHasMemberDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_has_member_decoration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerHasMemberDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_has_member_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_has_member_decoration")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerHasMemberDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { @@ -2204,79 +2084,71 @@ public static byte SpvcCompilerHasMemberDecoration([NativeName(NativeNameType.Pa return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_name")] [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_name")] - internal static extern byte* SpvcCompilerGetNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_name")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvcCompilerGetNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_name")] [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* SpvcCompilerGetName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id) + public static byte* SpvcCompilerGetName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id) { byte* ret = SpvcCompilerGetNameNative(compiler, id); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_name")] [return: NativeName(NativeNameType.Type, "const char*")] - public static string SpvcCompilerGetNameS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id) + public static string SpvcCompilerGetNameS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id) { string ret = Utils.DecodeStringUTF8(SpvcCompilerGetNameNative(compiler, id)); return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_decoration")] - internal static extern uint SpvcCompilerGetDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_decoration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcCompilerGetDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration")] [return: NativeName(NativeNameType.Type, "unsigned int")] - public static uint SpvcCompilerGetDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) + public static uint SpvcCompilerGetDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { uint ret = SpvcCompilerGetDecorationNative(compiler, id, decoration); return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration_string")] [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_decoration_string")] - internal static extern byte* SpvcCompilerGetDecorationStringNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_decoration_string")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvcCompilerGetDecorationStringNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration_string")] [return: NativeName(NativeNameType.Type, "const char*")] - public static byte* SpvcCompilerGetDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) + public static byte* SpvcCompilerGetDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { byte* ret = SpvcCompilerGetDecorationStringNative(compiler, id, decoration); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_decoration_string")] [return: NativeName(NativeNameType.Type, "const char*")] - public static string SpvcCompilerGetDecorationStringS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] SpvId id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) + public static string SpvcCompilerGetDecorationStringS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "SpvId")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { string ret = Utils.DecodeStringUTF8(SpvcCompilerGetDecorationStringNative(compiler, id, decoration)); return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_member_decoration")] - internal static extern uint SpvcCompilerGetMemberDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_member_decoration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcCompilerGetMemberDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcCompilerGetMemberDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { @@ -2284,15 +2156,13 @@ public static uint SpvcCompilerGetMemberDecoration([NativeName(NativeNameType.Pa return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration_string")] [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_member_decoration_string")] - internal static extern byte* SpvcCompilerGetMemberDecorationStringNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_member_decoration_string")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvcCompilerGetMemberDecorationStringNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration_string")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* SpvcCompilerGetMemberDecorationString([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { @@ -2300,7 +2170,7 @@ public static uint SpvcCompilerGetMemberDecoration([NativeName(NativeNameType.Pa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration_string")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_member_decoration_string")] [return: NativeName(NativeNameType.Type, "const char*")] public static string SpvcCompilerGetMemberDecorationStringS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration) { @@ -2308,15 +2178,13 @@ public static string SpvcCompilerGetMemberDecorationStringS([NativeName(NativeNa return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_name")] [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_member_name")] - internal static extern byte* SpvcCompilerGetMemberNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_member_name")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvcCompilerGetMemberNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_member_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* SpvcCompilerGetMemberName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex) { @@ -2324,7 +2192,7 @@ public static string SpvcCompilerGetMemberDecorationStringS([NativeName(NativeNa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_member_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_member_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static string SpvcCompilerGetMemberNameS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id, [NativeName(NativeNameType.Param, "member_index")] [NativeName(NativeNameType.Type, "unsigned int")] uint memberIndex) { @@ -2338,20 +2206,21 @@ public static string SpvcCompilerGetMemberNameS([NativeName(NativeNameType.Param /// [NativeName(NativeNameType.Func, "spvc_compiler_get_entry_points")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_entry_points")] - internal static extern SpvcResult SpvcCompilerGetEntryPointsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] SpvcEntryPoint** entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numEntryPoints); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_entry_points")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetEntryPointsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] SpvcEntryPoint** entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numEntryPoints); - /// /// Entry points.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_entry_points")] + /// /// Entry points.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_entry_points")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetEntryPoints([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] SpvcEntryPoint** entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numEntryPoints) + public static SpvcResult SpvcCompilerGetEntryPoints([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] SpvcEntryPoint** entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numEntryPoints) { SpvcResult ret = SpvcCompilerGetEntryPointsNative(compiler, entryPoints, numEntryPoints); return ret; } - /// /// Entry points.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_entry_points")] + /// /// Entry points.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_entry_points")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetEntryPoints([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] ref SpvcEntryPoint* entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numEntryPoints) + public static SpvcResult SpvcCompilerGetEntryPoints([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] ref SpvcEntryPoint* entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numEntryPoints) { fixed (SpvcEntryPoint** pentryPoints = &entryPoints) { @@ -2360,18 +2229,18 @@ public static SpvcResult SpvcCompilerGetEntryPoints([NativeName(NativeNameType.P } } - /// /// Entry points.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_entry_points")] + /// /// Entry points.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_entry_points")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetEntryPoints([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] SpvcEntryPoint** entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numEntryPoints) { fixed (nuint* pnumEntryPoints = &numEntryPoints) { - SpvcResult ret = SpvcCompilerGetEntryPointsNative(compiler, entryPoints, (nuint*)pnumEntryPoints); + SpvcResult ret = SpvcCompilerGetEntryPointsNative(compiler, entryPoints, (ulong*)pnumEntryPoints); return ret; } } - /// /// Entry points.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_entry_points")] + /// /// Entry points.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_entry_points")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetEntryPoints([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "entry_points")] [NativeName(NativeNameType.Type, "const spvc_entry_point**")] ref SpvcEntryPoint* entryPoints, [NativeName(NativeNameType.Param, "num_entry_points")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numEntryPoints) { @@ -2379,21 +2248,19 @@ public static SpvcResult SpvcCompilerGetEntryPoints([NativeName(NativeNameType.P { fixed (nuint* pnumEntryPoints = &numEntryPoints) { - SpvcResult ret = SpvcCompilerGetEntryPointsNative(compiler, (SpvcEntryPoint**)pentryPoints, (nuint*)pnumEntryPoints); + SpvcResult ret = SpvcCompilerGetEntryPointsNative(compiler, (SpvcEntryPoint**)pentryPoints, (ulong*)pnumEntryPoints); return ret; } } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_set_entry_point")] - internal static extern SpvcResult SpvcCompilerSetEntryPointNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_set_entry_point")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerSetEntryPointNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerSetEntryPoint([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2401,7 +2268,7 @@ public static SpvcResult SpvcCompilerSetEntryPoint([NativeName(NativeNameType.Pa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerSetEntryPoint([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2412,7 +2279,7 @@ public static SpvcResult SpvcCompilerSetEntryPoint([NativeName(NativeNameType.Pa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerSetEntryPoint([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2441,15 +2308,13 @@ public static SpvcResult SpvcCompilerSetEntryPoint([NativeName(NativeNameType.Pa return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_rename_entry_point")] - internal static extern SpvcResult SpvcCompilerRenameEntryPointNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] byte* oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] byte* newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_rename_entry_point")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerRenameEntryPointNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] byte* oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] byte* newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] byte* oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] byte* newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2457,7 +2322,7 @@ public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] byte* newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2468,7 +2333,7 @@ public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] string oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] byte* newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2497,7 +2362,7 @@ public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] byte* oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2508,7 +2373,7 @@ public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] byte* oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] string newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2537,7 +2402,7 @@ public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] ref byte newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2551,7 +2416,7 @@ public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] + [NativeName(NativeNameType.Func, "spvc_compiler_rename_entry_point")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "old_name")] [NativeName(NativeNameType.Type, "const char*")] string oldName, [NativeName(NativeNameType.Param, "new_name")] [NativeName(NativeNameType.Type, "const char*")] string newName, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2601,15 +2466,13 @@ public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_cleansed_entry_point_name")] - internal static extern byte* SpvcCompilerGetCleansedEntryPointNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_cleansed_entry_point_name")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvcCompilerGetCleansedEntryPointNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* SpvcCompilerGetCleansedEntryPointName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2617,7 +2480,7 @@ public static SpvcResult SpvcCompilerRenameEntryPoint([NativeName(NativeNameType return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static string SpvcCompilerGetCleansedEntryPointNameS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] byte* name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2625,7 +2488,7 @@ public static string SpvcCompilerGetCleansedEntryPointNameS([NativeName(NativeNa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* SpvcCompilerGetCleansedEntryPointName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2636,7 +2499,7 @@ public static string SpvcCompilerGetCleansedEntryPointNameS([NativeName(NativeNa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static string SpvcCompilerGetCleansedEntryPointNameS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] ref byte name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2647,7 +2510,7 @@ public static string SpvcCompilerGetCleansedEntryPointNameS([NativeName(NativeNa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* SpvcCompilerGetCleansedEntryPointName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2676,7 +2539,7 @@ public static string SpvcCompilerGetCleansedEntryPointNameS([NativeName(NativeNa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_cleansed_entry_point_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static string SpvcCompilerGetCleansedEntryPointNameS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "name")] [NativeName(NativeNameType.Type, "const char*")] string name, [NativeName(NativeNameType.Param, "model")] [NativeName(NativeNameType.Type, "SpvExecutionModel")] SpvExecutionModel model) { @@ -2705,70 +2568,62 @@ public static string SpvcCompilerGetCleansedEntryPointNameS([NativeName(NativeNa return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_set_execution_mode")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_set_execution_mode")] - internal static extern void SpvcCompilerSetExecutionModeNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_set_execution_mode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerSetExecutionModeNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_execution_mode")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_execution_mode")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerSetExecutionMode([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode) { SpvcCompilerSetExecutionModeNative(compiler, mode); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_unset_execution_mode")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_unset_execution_mode")] - internal static extern void SpvcCompilerUnsetExecutionModeNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_unset_execution_mode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerUnsetExecutionModeNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_unset_execution_mode")] + [NativeName(NativeNameType.Func, "spvc_compiler_unset_execution_mode")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerUnsetExecutionMode([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode) { SpvcCompilerUnsetExecutionModeNative(compiler, mode); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_set_execution_mode_with_arguments")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_set_execution_mode_with_arguments")] - internal static extern void SpvcCompilerSetExecutionModeWithArgumentsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode, [NativeName(NativeNameType.Param, "arg0")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg0, [NativeName(NativeNameType.Param, "arg1")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg1, [NativeName(NativeNameType.Param, "arg2")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg2); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_set_execution_mode_with_arguments")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerSetExecutionModeWithArgumentsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode, [NativeName(NativeNameType.Param, "arg0")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg0, [NativeName(NativeNameType.Param, "arg1")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg1, [NativeName(NativeNameType.Param, "arg2")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg2); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_set_execution_mode_with_arguments")] + [NativeName(NativeNameType.Func, "spvc_compiler_set_execution_mode_with_arguments")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerSetExecutionModeWithArguments([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode, [NativeName(NativeNameType.Param, "arg0")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg0, [NativeName(NativeNameType.Param, "arg1")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg1, [NativeName(NativeNameType.Param, "arg2")] [NativeName(NativeNameType.Type, "unsigned int")] uint arg2) { SpvcCompilerSetExecutionModeWithArgumentsNative(compiler, mode, arg0, arg1, arg2); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_execution_modes")] - internal static extern SpvcResult SpvcCompilerGetExecutionModesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] SpvExecutionMode** modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numModes); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_execution_modes")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetExecutionModesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] SpvExecutionMode** modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numModes); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetExecutionModes([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] SpvExecutionMode** modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numModes) + public static SpvcResult SpvcCompilerGetExecutionModes([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] SpvExecutionMode** modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numModes) { SpvcResult ret = SpvcCompilerGetExecutionModesNative(compiler, modes, numModes); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetExecutionModes([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] ref SpvExecutionMode* modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numModes) + public static SpvcResult SpvcCompilerGetExecutionModes([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] ref SpvExecutionMode* modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numModes) { fixed (SpvExecutionMode** pmodes = &modes) { @@ -2777,18 +2632,18 @@ public static SpvcResult SpvcCompilerGetExecutionModes([NativeName(NativeNameTyp } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetExecutionModes([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] SpvExecutionMode** modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numModes) { fixed (nuint* pnumModes = &numModes) { - SpvcResult ret = SpvcCompilerGetExecutionModesNative(compiler, modes, (nuint*)pnumModes); + SpvcResult ret = SpvcCompilerGetExecutionModesNative(compiler, modes, (ulong*)pnumModes); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_modes")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetExecutionModes([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "modes")] [NativeName(NativeNameType.Type, "const SpvExecutionMode**")] ref SpvExecutionMode* modes, [NativeName(NativeNameType.Param, "num_modes")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numModes) { @@ -2796,21 +2651,19 @@ public static SpvcResult SpvcCompilerGetExecutionModes([NativeName(NativeNameTyp { fixed (nuint* pnumModes = &numModes) { - SpvcResult ret = SpvcCompilerGetExecutionModesNative(compiler, (SpvExecutionMode**)pmodes, (nuint*)pnumModes); + SpvcResult ret = SpvcCompilerGetExecutionModesNative(compiler, (SpvExecutionMode**)pmodes, (ulong*)pnumModes); return ret; } } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_mode_argument")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_execution_mode_argument")] - internal static extern uint SpvcCompilerGetExecutionModeArgumentNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_execution_mode_argument")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcCompilerGetExecutionModeArgumentNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_mode_argument")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_mode_argument")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcCompilerGetExecutionModeArgument([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode) { @@ -2818,15 +2671,13 @@ public static uint SpvcCompilerGetExecutionModeArgument([NativeName(NativeNameTy return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_mode_argument_by_index")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_execution_mode_argument_by_index")] - internal static extern uint SpvcCompilerGetExecutionModeArgumentByIndexNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_execution_mode_argument_by_index")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcCompilerGetExecutionModeArgumentByIndexNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_mode_argument_by_index")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_mode_argument_by_index")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcCompilerGetExecutionModeArgumentByIndex([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "mode")] [NativeName(NativeNameType.Type, "SpvExecutionMode")] SpvExecutionMode mode, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index) { @@ -2834,15 +2685,13 @@ public static uint SpvcCompilerGetExecutionModeArgumentByIndex([NativeName(Nativ return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_model")] [return: NativeName(NativeNameType.Type, "SpvExecutionModel")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_execution_model")] - internal static extern SpvExecutionModel SpvcCompilerGetExecutionModelNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_execution_model")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvExecutionModel SpvcCompilerGetExecutionModelNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_model")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_execution_model")] [return: NativeName(NativeNameType.Type, "SpvExecutionModel")] public static SpvExecutionModel SpvcCompilerGetExecutionModel([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -2850,30 +2699,26 @@ public static SpvExecutionModel SpvcCompilerGetExecutionModel([NativeName(Native return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_update_active_builtins")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_update_active_builtins")] - internal static extern void SpvcCompilerUpdateActiveBuiltinsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_update_active_builtins")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcCompilerUpdateActiveBuiltinsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_update_active_builtins")] + [NativeName(NativeNameType.Func, "spvc_compiler_update_active_builtins")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcCompilerUpdateActiveBuiltins([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { SpvcCompilerUpdateActiveBuiltinsNative(compiler); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_has_active_builtin")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_has_active_builtin")] - internal static extern byte SpvcCompilerHasActiveBuiltinNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "builtin")] [NativeName(NativeNameType.Type, "SpvBuiltIn")] SpvBuiltIn builtin, [NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "SpvStorageClass")] SpvStorageClass storage); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_has_active_builtin")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerHasActiveBuiltinNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "builtin")] [NativeName(NativeNameType.Type, "SpvBuiltIn")] SpvBuiltIn builtin, [NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "SpvStorageClass")] SpvStorageClass storage); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_has_active_builtin")] + [NativeName(NativeNameType.Func, "spvc_compiler_has_active_builtin")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerHasActiveBuiltin([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "builtin")] [NativeName(NativeNameType.Type, "SpvBuiltIn")] SpvBuiltIn builtin, [NativeName(NativeNameType.Param, "storage")] [NativeName(NativeNameType.Type, "SpvStorageClass")] SpvStorageClass storage) { @@ -2887,10 +2732,11 @@ public static byte SpvcCompilerHasActiveBuiltin([NativeName(NativeNameType.Param /// [NativeName(NativeNameType.Func, "spvc_compiler_get_type_handle")] [return: NativeName(NativeNameType.Type, "spvc_type")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_type_handle")] - internal static extern SpvcType SpvcCompilerGetTypeHandleNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_type_handle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcType SpvcCompilerGetTypeHandleNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id); - /// /// Type query interface.
/// Maps to C++ API, except it's read-only.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_type_handle")] + /// /// Type query interface.
/// Maps to C++ API, except it's read-only.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_type_handle")] [return: NativeName(NativeNameType.Type, "spvc_type")] public static SpvcType SpvcCompilerGetTypeHandle([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_type_id")] uint id) { @@ -2906,10 +2752,11 @@ public static SpvcType SpvcCompilerGetTypeHandle([NativeName(NativeNameType.Para /// [NativeName(NativeNameType.Func, "spvc_type_get_base_type_id")] [return: NativeName(NativeNameType.Type, "spvc_type_id")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_base_type_id")] - internal static extern uint SpvcTypeGetBaseTypeIdNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_base_type_id")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcTypeGetBaseTypeIdNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// Pulls out SPIRType::self. This effectively gives the type ID without array or pointer qualifiers.
/// This is necessary when reflecting decoration/name information on members of a struct,
/// which are placed in the base type, not the qualified type.
/// This is similar to spvc_reflected_resource::base_type_id.
///
[NativeName(NativeNameType.Func, "spvc_type_get_base_type_id")] + /// /// Pulls out SPIRType::self. This effectively gives the type ID without array or pointer qualifiers.
/// This is necessary when reflecting decoration/name information on members of a struct,
/// which are placed in the base type, not the qualified type.
/// This is similar to spvc_reflected_resource::base_type_id.
///
[NativeName(NativeNameType.Func, "spvc_type_get_base_type_id")] [return: NativeName(NativeNameType.Type, "spvc_type_id")] public static uint SpvcTypeGetBaseTypeId([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -2917,15 +2764,13 @@ public static uint SpvcTypeGetBaseTypeId([NativeName(NativeNameType.Param, "type return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_basetype")] [return: NativeName(NativeNameType.Type, "spvc_basetype")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_basetype")] - internal static extern SpvcBasetype SpvcTypeGetBasetypeNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_basetype")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcBasetype SpvcTypeGetBasetypeNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_basetype")] + [NativeName(NativeNameType.Func, "spvc_type_get_basetype")] [return: NativeName(NativeNameType.Type, "spvc_basetype")] public static SpvcBasetype SpvcTypeGetBasetype([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -2933,15 +2778,13 @@ public static SpvcBasetype SpvcTypeGetBasetype([NativeName(NativeNameType.Param, return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_bit_width")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_bit_width")] - internal static extern uint SpvcTypeGetBitWidthNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_bit_width")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcTypeGetBitWidthNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_bit_width")] + [NativeName(NativeNameType.Func, "spvc_type_get_bit_width")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcTypeGetBitWidth([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -2949,15 +2792,13 @@ public static uint SpvcTypeGetBitWidth([NativeName(NativeNameType.Param, "type") return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_vector_size")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_vector_size")] - internal static extern uint SpvcTypeGetVectorSizeNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_vector_size")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcTypeGetVectorSizeNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_vector_size")] + [NativeName(NativeNameType.Func, "spvc_type_get_vector_size")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcTypeGetVectorSize([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -2965,15 +2806,13 @@ public static uint SpvcTypeGetVectorSize([NativeName(NativeNameType.Param, "type return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_columns")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_columns")] - internal static extern uint SpvcTypeGetColumnsNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_columns")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcTypeGetColumnsNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_columns")] + [NativeName(NativeNameType.Func, "spvc_type_get_columns")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcTypeGetColumns([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -2981,15 +2820,13 @@ public static uint SpvcTypeGetColumns([NativeName(NativeNameType.Param, "type")] return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_num_array_dimensions")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_num_array_dimensions")] - internal static extern uint SpvcTypeGetNumArrayDimensionsNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_num_array_dimensions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcTypeGetNumArrayDimensionsNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_num_array_dimensions")] + [NativeName(NativeNameType.Func, "spvc_type_get_num_array_dimensions")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcTypeGetNumArrayDimensions([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -2997,15 +2834,13 @@ public static uint SpvcTypeGetNumArrayDimensions([NativeName(NativeNameType.Para return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_array_dimension_is_literal")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_array_dimension_is_literal")] - internal static extern byte SpvcTypeArrayDimensionIsLiteralNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "dimension")] [NativeName(NativeNameType.Type, "unsigned int")] uint dimension); + [LibraryImport(LibName, EntryPoint = "spvc_type_array_dimension_is_literal")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcTypeArrayDimensionIsLiteralNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "dimension")] [NativeName(NativeNameType.Type, "unsigned int")] uint dimension); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_array_dimension_is_literal")] + [NativeName(NativeNameType.Func, "spvc_type_array_dimension_is_literal")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcTypeArrayDimensionIsLiteral([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "dimension")] [NativeName(NativeNameType.Type, "unsigned int")] uint dimension) { @@ -3013,31 +2848,27 @@ public static byte SpvcTypeArrayDimensionIsLiteral([NativeName(NativeNameType.Pa return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_array_dimension")] [return: NativeName(NativeNameType.Type, "SpvId")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_array_dimension")] - internal static extern SpvId SpvcTypeGetArrayDimensionNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "dimension")] [NativeName(NativeNameType.Type, "unsigned int")] uint dimension); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_array_dimension")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcTypeGetArrayDimensionNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "dimension")] [NativeName(NativeNameType.Type, "unsigned int")] uint dimension); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_array_dimension")] + [NativeName(NativeNameType.Func, "spvc_type_get_array_dimension")] [return: NativeName(NativeNameType.Type, "SpvId")] - public static SpvId SpvcTypeGetArrayDimension([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "dimension")] [NativeName(NativeNameType.Type, "unsigned int")] uint dimension) + public static uint SpvcTypeGetArrayDimension([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "dimension")] [NativeName(NativeNameType.Type, "unsigned int")] uint dimension) { - SpvId ret = SpvcTypeGetArrayDimensionNative(type, dimension); + uint ret = SpvcTypeGetArrayDimensionNative(type, dimension); return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_num_member_types")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_num_member_types")] - internal static extern uint SpvcTypeGetNumMemberTypesNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_num_member_types")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcTypeGetNumMemberTypesNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_num_member_types")] + [NativeName(NativeNameType.Func, "spvc_type_get_num_member_types")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcTypeGetNumMemberTypes([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -3045,15 +2876,13 @@ public static uint SpvcTypeGetNumMemberTypes([NativeName(NativeNameType.Param, " return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_member_type")] [return: NativeName(NativeNameType.Type, "spvc_type_id")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_member_type")] - internal static extern uint SpvcTypeGetMemberTypeNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_member_type")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcTypeGetMemberTypeNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_member_type")] + [NativeName(NativeNameType.Func, "spvc_type_get_member_type")] [return: NativeName(NativeNameType.Type, "spvc_type_id")] public static uint SpvcTypeGetMemberType([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index) { @@ -3061,15 +2890,13 @@ public static uint SpvcTypeGetMemberType([NativeName(NativeNameType.Param, "type return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_storage_class")] [return: NativeName(NativeNameType.Type, "SpvStorageClass")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_storage_class")] - internal static extern SpvStorageClass SpvcTypeGetStorageClassNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_storage_class")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvStorageClass SpvcTypeGetStorageClassNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_storage_class")] + [NativeName(NativeNameType.Func, "spvc_type_get_storage_class")] [return: NativeName(NativeNameType.Type, "SpvStorageClass")] public static SpvStorageClass SpvcTypeGetStorageClass([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -3082,10 +2909,11 @@ public static SpvStorageClass SpvcTypeGetStorageClass([NativeName(NativeNameType /// [NativeName(NativeNameType.Func, "spvc_type_get_image_sampled_type")] [return: NativeName(NativeNameType.Type, "spvc_type_id")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_image_sampled_type")] - internal static extern uint SpvcTypeGetImageSampledTypeNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_image_sampled_type")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcTypeGetImageSampledTypeNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// Image type query.
///
[NativeName(NativeNameType.Func, "spvc_type_get_image_sampled_type")] + /// /// Image type query.
///
[NativeName(NativeNameType.Func, "spvc_type_get_image_sampled_type")] [return: NativeName(NativeNameType.Type, "spvc_type_id")] public static uint SpvcTypeGetImageSampledType([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -3093,15 +2921,13 @@ public static uint SpvcTypeGetImageSampledType([NativeName(NativeNameType.Param, return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_image_dimension")] [return: NativeName(NativeNameType.Type, "SpvDim")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_image_dimension")] - internal static extern SpvDim SpvcTypeGetImageDimensionNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_image_dimension")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvDim SpvcTypeGetImageDimensionNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_dimension")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_dimension")] [return: NativeName(NativeNameType.Type, "SpvDim")] public static SpvDim SpvcTypeGetImageDimension([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -3109,15 +2935,13 @@ public static SpvDim SpvcTypeGetImageDimension([NativeName(NativeNameType.Param, return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_image_is_depth")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_image_is_depth")] - internal static extern byte SpvcTypeGetImageIsDepthNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_image_is_depth")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcTypeGetImageIsDepthNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_is_depth")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_is_depth")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcTypeGetImageIsDepth([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -3125,15 +2949,13 @@ public static byte SpvcTypeGetImageIsDepth([NativeName(NativeNameType.Param, "ty return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_image_arrayed")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_image_arrayed")] - internal static extern byte SpvcTypeGetImageArrayedNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_image_arrayed")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcTypeGetImageArrayedNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_arrayed")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_arrayed")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcTypeGetImageArrayed([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -3141,15 +2963,13 @@ public static byte SpvcTypeGetImageArrayed([NativeName(NativeNameType.Param, "ty return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_image_multisampled")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_image_multisampled")] - internal static extern byte SpvcTypeGetImageMultisampledNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_image_multisampled")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcTypeGetImageMultisampledNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_multisampled")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_multisampled")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcTypeGetImageMultisampled([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -3157,15 +2977,13 @@ public static byte SpvcTypeGetImageMultisampled([NativeName(NativeNameType.Param return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_image_is_storage")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_image_is_storage")] - internal static extern byte SpvcTypeGetImageIsStorageNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_image_is_storage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcTypeGetImageIsStorageNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_is_storage")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_is_storage")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcTypeGetImageIsStorage([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -3173,15 +2991,13 @@ public static byte SpvcTypeGetImageIsStorage([NativeName(NativeNameType.Param, " return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_image_storage_format")] [return: NativeName(NativeNameType.Type, "SpvImageFormat")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_image_storage_format")] - internal static extern SpvImageFormat SpvcTypeGetImageStorageFormatNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_image_storage_format")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvImageFormat SpvcTypeGetImageStorageFormatNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_storage_format")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_storage_format")] [return: NativeName(NativeNameType.Type, "SpvImageFormat")] public static SpvImageFormat SpvcTypeGetImageStorageFormat([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -3189,15 +3005,13 @@ public static SpvImageFormat SpvcTypeGetImageStorageFormat([NativeName(NativeNam return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_type_get_image_access_qualifier")] [return: NativeName(NativeNameType.Type, "SpvAccessQualifier")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_type_get_image_access_qualifier")] - internal static extern SpvAccessQualifier SpvcTypeGetImageAccessQualifierNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); + [LibraryImport(LibName, EntryPoint = "spvc_type_get_image_access_qualifier")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvAccessQualifier SpvcTypeGetImageAccessQualifierNative([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_type_get_image_access_qualifier")] + [NativeName(NativeNameType.Func, "spvc_type_get_image_access_qualifier")] [return: NativeName(NativeNameType.Type, "SpvAccessQualifier")] public static SpvAccessQualifier SpvcTypeGetImageAccessQualifier([NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type) { @@ -3211,91 +3025,105 @@ public static SpvAccessQualifier SpvcTypeGetImageAccessQualifier([NativeName(Nat /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_declared_struct_size")] - internal static extern SpvcResult SpvcCompilerGetDeclaredStructSizeNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* size); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_declared_struct_size")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetDeclaredStructSizeNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* size); - /// /// Buffer layout query.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size")] + /// /// Buffer layout query.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetDeclaredStructSize([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* size) + public static SpvcResult SpvcCompilerGetDeclaredStructSize([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* size) { SpvcResult ret = SpvcCompilerGetDeclaredStructSizeNative(compiler, structType, size); return ret; } - /// /// Buffer layout query.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size")] + /// /// Buffer layout query.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetDeclaredStructSize([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint size) { fixed (nuint* psize = &size) { - SpvcResult ret = SpvcCompilerGetDeclaredStructSizeNative(compiler, structType, (nuint*)psize); + SpvcResult ret = SpvcCompilerGetDeclaredStructSizeNative(compiler, structType, (ulong*)psize); return ret; } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_declared_struct_size_runtime_array")] - internal static extern SpvcResult SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] nuint arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* size); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_declared_struct_size_runtime_array")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] ulong arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* size); + + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult SpvcCompilerGetDeclaredStructSizeRuntimeArray([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] ulong arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* size) + { + SpvcResult ret = SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative(compiler, structType, arraySize, size); + return ret; + } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetDeclaredStructSizeRuntimeArray([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] nuint arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* size) + public static SpvcResult SpvcCompilerGetDeclaredStructSizeRuntimeArray([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] nuint arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* size) { SpvcResult ret = SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative(compiler, structType, arraySize, size); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] + [return: NativeName(NativeNameType.Type, "spvc_result")] + public static SpvcResult SpvcCompilerGetDeclaredStructSizeRuntimeArray([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] ulong arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint size) + { + fixed (nuint* psize = &size) + { + SpvcResult ret = SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative(compiler, structType, arraySize, (ulong*)psize); + return ret; + } + } + + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_size_runtime_array")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetDeclaredStructSizeRuntimeArray([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "struct_type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType structType, [NativeName(NativeNameType.Param, "array_size")] [NativeName(NativeNameType.Type, "size_t")] nuint arraySize, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint size) { fixed (nuint* psize = &size) { - SpvcResult ret = SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative(compiler, structType, arraySize, (nuint*)psize); + SpvcResult ret = SpvcCompilerGetDeclaredStructSizeRuntimeArrayNative(compiler, structType, arraySize, (ulong*)psize); return ret; } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_member_size")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_declared_struct_member_size")] - internal static extern SpvcResult SpvcCompilerGetDeclaredStructMemberSizeNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* size); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_declared_struct_member_size")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetDeclaredStructMemberSizeNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* size); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_member_size")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_member_size")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetDeclaredStructMemberSize([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] nuint* size) + public static SpvcResult SpvcCompilerGetDeclaredStructMemberSize([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ulong* size) { SpvcResult ret = SpvcCompilerGetDeclaredStructMemberSizeNative(compiler, type, index, size); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_member_size")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_struct_member_size")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetDeclaredStructMemberSize([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint size) { fixed (nuint* psize = &size) { - SpvcResult ret = SpvcCompilerGetDeclaredStructMemberSizeNative(compiler, type, index, (nuint*)psize); + SpvcResult ret = SpvcCompilerGetDeclaredStructMemberSizeNative(compiler, type, index, (ulong*)psize); return ret; } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_offset")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_type_struct_member_offset")] - internal static extern SpvcResult SpvcCompilerTypeStructMemberOffsetNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* offset); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_type_struct_member_offset")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerTypeStructMemberOffsetNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* offset); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_offset")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_offset")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerTypeStructMemberOffset([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* offset) { @@ -3303,7 +3131,7 @@ public static SpvcResult SpvcCompilerTypeStructMemberOffset([NativeName(NativeNa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_offset")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_offset")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerTypeStructMemberOffset([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "offset")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint offset) { @@ -3314,15 +3142,13 @@ public static SpvcResult SpvcCompilerTypeStructMemberOffset([NativeName(NativeNa } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_array_stride")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_type_struct_member_array_stride")] - internal static extern SpvcResult SpvcCompilerTypeStructMemberArrayStrideNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* stride); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_type_struct_member_array_stride")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerTypeStructMemberArrayStrideNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* stride); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_array_stride")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_array_stride")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerTypeStructMemberArrayStride([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* stride) { @@ -3330,7 +3156,7 @@ public static SpvcResult SpvcCompilerTypeStructMemberArrayStride([NativeName(Nat return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_array_stride")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_array_stride")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerTypeStructMemberArrayStride([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint stride) { @@ -3341,15 +3167,13 @@ public static SpvcResult SpvcCompilerTypeStructMemberArrayStride([NativeName(Nat } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_matrix_stride")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_type_struct_member_matrix_stride")] - internal static extern SpvcResult SpvcCompilerTypeStructMemberMatrixStrideNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* stride); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_type_struct_member_matrix_stride")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerTypeStructMemberMatrixStrideNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* stride); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_matrix_stride")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_matrix_stride")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerTypeStructMemberMatrixStride([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* stride) { @@ -3357,7 +3181,7 @@ public static SpvcResult SpvcCompilerTypeStructMemberMatrixStride([NativeName(Na return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_matrix_stride")] + [NativeName(NativeNameType.Func, "spvc_compiler_type_struct_member_matrix_stride")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerTypeStructMemberMatrixStride([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "type")] [NativeName(NativeNameType.Type, "spvc_type")] SpvcType type, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "unsigned int")] uint index, [NativeName(NativeNameType.Param, "stride")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint stride) { @@ -3374,10 +3198,11 @@ public static SpvcResult SpvcCompilerTypeStructMemberMatrixStride([NativeName(Na /// [NativeName(NativeNameType.Func, "spvc_compiler_build_dummy_sampler_for_combined_images")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_build_dummy_sampler_for_combined_images")] - internal static extern SpvcResult SpvcCompilerBuildDummySamplerForCombinedImagesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id*")] uint* id); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_build_dummy_sampler_for_combined_images")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerBuildDummySamplerForCombinedImagesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id*")] uint* id); - /// /// Workaround helper functions.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_build_dummy_sampler_for_combined_images")] + /// /// Workaround helper functions.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_build_dummy_sampler_for_combined_images")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerBuildDummySamplerForCombinedImages([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id*")] uint* id) { @@ -3385,7 +3210,7 @@ public static SpvcResult SpvcCompilerBuildDummySamplerForCombinedImages([NativeN return ret; } - /// /// Workaround helper functions.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_build_dummy_sampler_for_combined_images")] + /// /// Workaround helper functions.
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_build_dummy_sampler_for_combined_images")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerBuildDummySamplerForCombinedImages([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id*")] ref uint id) { @@ -3396,15 +3221,13 @@ public static SpvcResult SpvcCompilerBuildDummySamplerForCombinedImages([NativeN } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_build_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_build_combined_image_samplers")] - internal static extern SpvcResult SpvcCompilerBuildCombinedImageSamplersNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_build_combined_image_samplers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerBuildCombinedImageSamplersNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_build_combined_image_samplers")] + [NativeName(NativeNameType.Func, "spvc_compiler_build_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerBuildCombinedImageSamplers([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler) { @@ -3412,25 +3235,23 @@ public static SpvcResult SpvcCompilerBuildCombinedImageSamplers([NativeName(Nati return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_combined_image_samplers")] - internal static extern SpvcResult SpvcCompilerGetCombinedImageSamplersNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] SpvcCombinedImageSampler** samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numSamplers); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_combined_image_samplers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetCombinedImageSamplersNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] SpvcCombinedImageSampler** samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numSamplers); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetCombinedImageSamplers([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] SpvcCombinedImageSampler** samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numSamplers) + public static SpvcResult SpvcCompilerGetCombinedImageSamplers([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] SpvcCombinedImageSampler** samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numSamplers) { SpvcResult ret = SpvcCompilerGetCombinedImageSamplersNative(compiler, samplers, numSamplers); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetCombinedImageSamplers([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] ref SpvcCombinedImageSampler* samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numSamplers) + public static SpvcResult SpvcCompilerGetCombinedImageSamplers([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] ref SpvcCombinedImageSampler* samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numSamplers) { fixed (SpvcCombinedImageSampler** psamplers = &samplers) { @@ -3439,18 +3260,18 @@ public static SpvcResult SpvcCompilerGetCombinedImageSamplers([NativeName(Native } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetCombinedImageSamplers([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] SpvcCombinedImageSampler** samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numSamplers) { fixed (nuint* pnumSamplers = &numSamplers) { - SpvcResult ret = SpvcCompilerGetCombinedImageSamplersNative(compiler, samplers, (nuint*)pnumSamplers); + SpvcResult ret = SpvcCompilerGetCombinedImageSamplersNative(compiler, samplers, (ulong*)pnumSamplers); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_combined_image_samplers")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetCombinedImageSamplers([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "samplers")] [NativeName(NativeNameType.Type, "const spvc_combined_image_sampler**")] ref SpvcCombinedImageSampler* samplers, [NativeName(NativeNameType.Param, "num_samplers")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numSamplers) { @@ -3458,7 +3279,7 @@ public static SpvcResult SpvcCompilerGetCombinedImageSamplers([NativeName(Native { fixed (nuint* pnumSamplers = &numSamplers) { - SpvcResult ret = SpvcCompilerGetCombinedImageSamplersNative(compiler, (SpvcCombinedImageSampler**)psamplers, (nuint*)pnumSamplers); + SpvcResult ret = SpvcCompilerGetCombinedImageSamplersNative(compiler, (SpvcCombinedImageSampler**)psamplers, (ulong*)pnumSamplers); return ret; } } @@ -3470,20 +3291,21 @@ public static SpvcResult SpvcCompilerGetCombinedImageSamplers([NativeName(Native /// [NativeName(NativeNameType.Func, "spvc_compiler_get_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_specialization_constants")] - internal static extern SpvcResult SpvcCompilerGetSpecializationConstantsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] SpvcSpecializationConstant** constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numConstants); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_specialization_constants")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetSpecializationConstantsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] SpvcSpecializationConstant** constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numConstants); - /// /// Constants
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_specialization_constants")] + /// /// Constants
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] SpvcSpecializationConstant** constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numConstants) + public static SpvcResult SpvcCompilerGetSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] SpvcSpecializationConstant** constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numConstants) { SpvcResult ret = SpvcCompilerGetSpecializationConstantsNative(compiler, constants, numConstants); return ret; } - /// /// Constants
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_specialization_constants")] + /// /// Constants
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] ref SpvcSpecializationConstant* constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numConstants) + public static SpvcResult SpvcCompilerGetSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] ref SpvcSpecializationConstant* constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numConstants) { fixed (SpvcSpecializationConstant** pconstants = &constants) { @@ -3492,18 +3314,18 @@ public static SpvcResult SpvcCompilerGetSpecializationConstants([NativeName(Nati } } - /// /// Constants
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_specialization_constants")] + /// /// Constants
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] SpvcSpecializationConstant** constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numConstants) { fixed (nuint* pnumConstants = &numConstants) { - SpvcResult ret = SpvcCompilerGetSpecializationConstantsNative(compiler, constants, (nuint*)pnumConstants); + SpvcResult ret = SpvcCompilerGetSpecializationConstantsNative(compiler, constants, (ulong*)pnumConstants); return ret; } } - /// /// Constants
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_specialization_constants")] + /// /// Constants
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "constants")] [NativeName(NativeNameType.Type, "const spvc_specialization_constant**")] ref SpvcSpecializationConstant* constants, [NativeName(NativeNameType.Param, "num_constants")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numConstants) { @@ -3511,21 +3333,19 @@ public static SpvcResult SpvcCompilerGetSpecializationConstants([NativeName(Nati { fixed (nuint* pnumConstants = &numConstants) { - SpvcResult ret = SpvcCompilerGetSpecializationConstantsNative(compiler, (SpvcSpecializationConstant**)pconstants, (nuint*)pnumConstants); + SpvcResult ret = SpvcCompilerGetSpecializationConstantsNative(compiler, (SpvcSpecializationConstant**)pconstants, (ulong*)pnumConstants); return ret; } } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_constant_handle")] [return: NativeName(NativeNameType.Type, "spvc_constant")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_constant_handle")] - internal static extern SpvcConstant SpvcCompilerGetConstantHandleNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_constant_id")] uint id); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_constant_handle")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcConstant SpvcCompilerGetConstantHandleNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_constant_id")] uint id); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_constant_handle")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_constant_handle")] [return: NativeName(NativeNameType.Type, "spvc_constant")] public static SpvcConstant SpvcCompilerGetConstantHandle([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_constant_id")] uint id) { @@ -3533,15 +3353,13 @@ public static SpvcConstant SpvcCompilerGetConstantHandle([NativeName(NativeNameT return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_work_group_size_specialization_constants")] - internal static extern uint SpvcCompilerGetWorkGroupSizeSpecializationConstantsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* z); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_work_group_size_specialization_constants")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcCompilerGetWorkGroupSizeSpecializationConstantsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* z); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* z) { @@ -3549,7 +3367,7 @@ public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeNa return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* z) { @@ -3560,7 +3378,7 @@ public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeNa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* z) { @@ -3571,7 +3389,7 @@ public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeNa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* z) { @@ -3585,7 +3403,7 @@ public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeNa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant z) { @@ -3596,7 +3414,7 @@ public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeNa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant z) { @@ -3610,7 +3428,7 @@ public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeNa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] SpvcSpecializationConstant* x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant z) { @@ -3624,7 +3442,7 @@ public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeNa } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_work_group_size_specialization_constants")] [return: NativeName(NativeNameType.Type, "spvc_constant_id")] public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "x")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant x, [NativeName(NativeNameType.Param, "y")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant y, [NativeName(NativeNameType.Param, "z")] [NativeName(NativeNameType.Type, "spvc_specialization_constant*")] ref SpvcSpecializationConstant z) { @@ -3647,20 +3465,21 @@ public static uint SpvcCompilerGetWorkGroupSizeSpecializationConstants([NativeNa /// [NativeName(NativeNameType.Func, "spvc_compiler_get_active_buffer_ranges")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_active_buffer_ranges")] - internal static extern SpvcResult SpvcCompilerGetActiveBufferRangesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] SpvcBufferRange** ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numRanges); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_active_buffer_ranges")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetActiveBufferRangesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] SpvcBufferRange** ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numRanges); - /// /// Buffer ranges
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_buffer_ranges")] + /// /// Buffer ranges
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_buffer_ranges")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetActiveBufferRanges([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] SpvcBufferRange** ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numRanges) + public static SpvcResult SpvcCompilerGetActiveBufferRanges([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] SpvcBufferRange** ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numRanges) { SpvcResult ret = SpvcCompilerGetActiveBufferRangesNative(compiler, id, ranges, numRanges); return ret; } - /// /// Buffer ranges
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_buffer_ranges")] + /// /// Buffer ranges
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_buffer_ranges")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetActiveBufferRanges([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] ref SpvcBufferRange* ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numRanges) + public static SpvcResult SpvcCompilerGetActiveBufferRanges([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] ref SpvcBufferRange* ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numRanges) { fixed (SpvcBufferRange** pranges = &ranges) { @@ -3669,18 +3488,18 @@ public static SpvcResult SpvcCompilerGetActiveBufferRanges([NativeName(NativeNam } } - /// /// Buffer ranges
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_buffer_ranges")] + /// /// Buffer ranges
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_buffer_ranges")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetActiveBufferRanges([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] SpvcBufferRange** ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numRanges) { fixed (nuint* pnumRanges = &numRanges) { - SpvcResult ret = SpvcCompilerGetActiveBufferRangesNative(compiler, id, ranges, (nuint*)pnumRanges); + SpvcResult ret = SpvcCompilerGetActiveBufferRangesNative(compiler, id, ranges, (ulong*)pnumRanges); return ret; } } - /// /// Buffer ranges
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_buffer_ranges")] + /// /// Buffer ranges
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_active_buffer_ranges")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetActiveBufferRanges([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "ranges")] [NativeName(NativeNameType.Type, "const spvc_buffer_range**")] ref SpvcBufferRange* ranges, [NativeName(NativeNameType.Param, "num_ranges")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numRanges) { @@ -3688,7 +3507,7 @@ public static SpvcResult SpvcCompilerGetActiveBufferRanges([NativeName(NativeNam { fixed (nuint* pnumRanges = &numRanges) { - SpvcResult ret = SpvcCompilerGetActiveBufferRangesNative(compiler, id, (SpvcBufferRange**)pranges, (nuint*)pnumRanges); + SpvcResult ret = SpvcCompilerGetActiveBufferRangesNative(compiler, id, (SpvcBufferRange**)pranges, (ulong*)pnumRanges); return ret; } } @@ -3702,10 +3521,11 @@ public static SpvcResult SpvcCompilerGetActiveBufferRanges([NativeName(NativeNam /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp16")] [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_get_scalar_fp16")] - internal static extern float SpvcConstantGetScalarFp16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); + [LibraryImport(LibName, EntryPoint = "spvc_constant_get_scalar_fp16")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float SpvcConstantGetScalarFp16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); - /// /// No stdint.h until C99, sigh :(
/// For smaller types, the result is sign or zero-extended as appropriate.
/// Maps to C++ API.
/// TODO: The SPIRConstant query interface and modification interface is not quite complete.
///
[NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp16")] + /// /// No stdint.h until C99, sigh :(
/// For smaller types, the result is sign or zero-extended as appropriate.
/// Maps to C++ API.
/// TODO: The SPIRConstant query interface and modification interface is not quite complete.
///
[NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp16")] [return: NativeName(NativeNameType.Type, "float")] public static float SpvcConstantGetScalarFp16([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -3713,15 +3533,13 @@ public static float SpvcConstantGetScalarFp16([NativeName(NativeNameType.Param, return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp32")] [return: NativeName(NativeNameType.Type, "float")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_get_scalar_fp32")] - internal static extern float SpvcConstantGetScalarFp32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); + [LibraryImport(LibName, EntryPoint = "spvc_constant_get_scalar_fp32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial float SpvcConstantGetScalarFp32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp32")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp32")] [return: NativeName(NativeNameType.Type, "float")] public static float SpvcConstantGetScalarFp32([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -3729,15 +3547,13 @@ public static float SpvcConstantGetScalarFp32([NativeName(NativeNameType.Param, return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp64")] [return: NativeName(NativeNameType.Type, "double")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_get_scalar_fp64")] - internal static extern double SpvcConstantGetScalarFp64Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); + [LibraryImport(LibName, EntryPoint = "spvc_constant_get_scalar_fp64")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial double SpvcConstantGetScalarFp64Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp64")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_fp64")] [return: NativeName(NativeNameType.Type, "double")] public static double SpvcConstantGetScalarFp64([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -3745,15 +3561,13 @@ public static double SpvcConstantGetScalarFp64([NativeName(NativeNameType.Param, return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u32")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_get_scalar_u32")] - internal static extern uint SpvcConstantGetScalarU32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); + [LibraryImport(LibName, EntryPoint = "spvc_constant_get_scalar_u32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcConstantGetScalarU32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u32")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u32")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcConstantGetScalarU32([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -3761,15 +3575,13 @@ public static uint SpvcConstantGetScalarU32([NativeName(NativeNameType.Param, "c return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i32")] [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_get_scalar_i32")] - internal static extern int SpvcConstantGetScalarI32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); + [LibraryImport(LibName, EntryPoint = "spvc_constant_get_scalar_i32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int SpvcConstantGetScalarI32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i32")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i32")] [return: NativeName(NativeNameType.Type, "int")] public static int SpvcConstantGetScalarI32([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -3777,15 +3589,13 @@ public static int SpvcConstantGetScalarI32([NativeName(NativeNameType.Param, "co return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u16")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_get_scalar_u16")] - internal static extern uint SpvcConstantGetScalarU16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); + [LibraryImport(LibName, EntryPoint = "spvc_constant_get_scalar_u16")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcConstantGetScalarU16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u16")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u16")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcConstantGetScalarU16([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -3793,15 +3603,13 @@ public static uint SpvcConstantGetScalarU16([NativeName(NativeNameType.Param, "c return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i16")] [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_get_scalar_i16")] - internal static extern int SpvcConstantGetScalarI16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); + [LibraryImport(LibName, EntryPoint = "spvc_constant_get_scalar_i16")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int SpvcConstantGetScalarI16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i16")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i16")] [return: NativeName(NativeNameType.Type, "int")] public static int SpvcConstantGetScalarI16([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -3809,15 +3617,13 @@ public static int SpvcConstantGetScalarI16([NativeName(NativeNameType.Param, "co return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u8")] [return: NativeName(NativeNameType.Type, "unsigned int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_get_scalar_u8")] - internal static extern uint SpvcConstantGetScalarU8Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); + [LibraryImport(LibName, EntryPoint = "spvc_constant_get_scalar_u8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcConstantGetScalarU8Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u8")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_u8")] [return: NativeName(NativeNameType.Type, "unsigned int")] public static uint SpvcConstantGetScalarU8([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -3825,15 +3631,13 @@ public static uint SpvcConstantGetScalarU8([NativeName(NativeNameType.Param, "co return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i8")] [return: NativeName(NativeNameType.Type, "int")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_get_scalar_i8")] - internal static extern int SpvcConstantGetScalarI8Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); + [LibraryImport(LibName, EntryPoint = "spvc_constant_get_scalar_i8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int SpvcConstantGetScalarI8Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i8")] + [NativeName(NativeNameType.Func, "spvc_constant_get_scalar_i8")] [return: NativeName(NativeNameType.Type, "int")] public static int SpvcConstantGetScalarI8([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row) { @@ -3841,24 +3645,22 @@ public static int SpvcConstantGetScalarI8([NativeName(NativeNameType.Param, "con return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_get_subconstants")] - internal static extern void SpvcConstantGetSubconstantsNative([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] uint** constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] nuint* count); + [LibraryImport(LibName, EntryPoint = "spvc_constant_get_subconstants")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcConstantGetSubconstantsNative([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] uint** constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] ulong* count); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] + [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcConstantGetSubconstants([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] uint** constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] nuint* count) + public static void SpvcConstantGetSubconstants([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] uint** constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] ulong* count) { SpvcConstantGetSubconstantsNative(constant, constituents, count); } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] + [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] [return: NativeName(NativeNameType.Type, "void")] - public static void SpvcConstantGetSubconstants([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] ref uint* constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] nuint* count) + public static void SpvcConstantGetSubconstants([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] ref uint* constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] ulong* count) { fixed (uint** pconstituents = &constituents) { @@ -3866,17 +3668,17 @@ public static void SpvcConstantGetSubconstants([NativeName(NativeNameType.Param, } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] + [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcConstantGetSubconstants([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] uint** constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint count) { fixed (nuint* pcount = &count) { - SpvcConstantGetSubconstantsNative(constant, constituents, (nuint*)pcount); + SpvcConstantGetSubconstantsNative(constant, constituents, (ulong*)pcount); } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] + [NativeName(NativeNameType.Func, "spvc_constant_get_subconstants")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcConstantGetSubconstants([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "constituents")] [NativeName(NativeNameType.Type, "const spvc_constant_id**")] ref uint* constituents, [NativeName(NativeNameType.Param, "count")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint count) { @@ -3884,20 +3686,18 @@ public static void SpvcConstantGetSubconstants([NativeName(NativeNameType.Param, { fixed (nuint* pcount = &count) { - SpvcConstantGetSubconstantsNative(constant, (uint**)pconstituents, (nuint*)pcount); + SpvcConstantGetSubconstantsNative(constant, (uint**)pconstituents, (ulong*)pcount); } } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_get_type")] [return: NativeName(NativeNameType.Type, "spvc_type_id")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_get_type")] - internal static extern uint SpvcConstantGetTypeNative([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant); + [LibraryImport(LibName, EntryPoint = "spvc_constant_get_type")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvcConstantGetTypeNative([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_get_type")] + [NativeName(NativeNameType.Func, "spvc_constant_get_type")] [return: NativeName(NativeNameType.Type, "spvc_type_id")] public static uint SpvcConstantGetType([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant) { @@ -3910,130 +3710,115 @@ public static uint SpvcConstantGetType([NativeName(NativeNameType.Param, "consta /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp16")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_set_scalar_fp16")] - internal static extern void SpvcConstantSetScalarFp16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned short")] ushort value); + [LibraryImport(LibName, EntryPoint = "spvc_constant_set_scalar_fp16")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcConstantSetScalarFp16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned short")] ushort value); - /// /// C implementation of the C++ api.
///
[NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp16")] + /// /// C implementation of the C++ api.
///
[NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp16")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcConstantSetScalarFp16([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned short")] ushort value) { SpvcConstantSetScalarFp16Native(constant, column, row, value); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp32")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_set_scalar_fp32")] - internal static extern void SpvcConstantSetScalarFp32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "float")] float value); + [LibraryImport(LibName, EntryPoint = "spvc_constant_set_scalar_fp32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcConstantSetScalarFp32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "float")] float value); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp32")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp32")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcConstantSetScalarFp32([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "float")] float value) { SpvcConstantSetScalarFp32Native(constant, column, row, value); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp64")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_set_scalar_fp64")] - internal static extern void SpvcConstantSetScalarFp64Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value); + [LibraryImport(LibName, EntryPoint = "spvc_constant_set_scalar_fp64")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcConstantSetScalarFp64Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp64")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_fp64")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcConstantSetScalarFp64([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "double")] double value) { SpvcConstantSetScalarFp64Native(constant, column, row, value); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u32")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_set_scalar_u32")] - internal static extern void SpvcConstantSetScalarU32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned int")] uint value); + [LibraryImport(LibName, EntryPoint = "spvc_constant_set_scalar_u32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcConstantSetScalarU32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned int")] uint value); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u32")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u32")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcConstantSetScalarU32([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned int")] uint value) { SpvcConstantSetScalarU32Native(constant, column, row, value); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i32")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_set_scalar_i32")] - internal static extern void SpvcConstantSetScalarI32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "int")] int value); + [LibraryImport(LibName, EntryPoint = "spvc_constant_set_scalar_i32")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcConstantSetScalarI32Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "int")] int value); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i32")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i32")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcConstantSetScalarI32([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "int")] int value) { SpvcConstantSetScalarI32Native(constant, column, row, value); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u16")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_set_scalar_u16")] - internal static extern void SpvcConstantSetScalarU16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned short")] ushort value); + [LibraryImport(LibName, EntryPoint = "spvc_constant_set_scalar_u16")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcConstantSetScalarU16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned short")] ushort value); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u16")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u16")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcConstantSetScalarU16([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned short")] ushort value) { SpvcConstantSetScalarU16Native(constant, column, row, value); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i16")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_set_scalar_i16")] - internal static extern void SpvcConstantSetScalarI16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "short")] short value); + [LibraryImport(LibName, EntryPoint = "spvc_constant_set_scalar_i16")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcConstantSetScalarI16Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "short")] short value); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i16")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i16")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcConstantSetScalarI16([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "short")] short value) { SpvcConstantSetScalarI16Native(constant, column, row, value); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u8")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_set_scalar_u8")] - internal static extern void SpvcConstantSetScalarU8Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned char")] byte value); + [LibraryImport(LibName, EntryPoint = "spvc_constant_set_scalar_u8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcConstantSetScalarU8Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned char")] byte value); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u8")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_u8")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcConstantSetScalarU8([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "unsigned char")] byte value) { SpvcConstantSetScalarU8Native(constant, column, row, value); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i8")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_constant_set_scalar_i8")] - internal static extern void SpvcConstantSetScalarI8Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "char")] byte value); + [LibraryImport(LibName, EntryPoint = "spvc_constant_set_scalar_i8")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvcConstantSetScalarI8Native([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "char")] byte value); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i8")] + [NativeName(NativeNameType.Func, "spvc_constant_set_scalar_i8")] [return: NativeName(NativeNameType.Type, "void")] public static void SpvcConstantSetScalarI8([NativeName(NativeNameType.Param, "constant")] [NativeName(NativeNameType.Type, "spvc_constant")] SpvcConstant constant, [NativeName(NativeNameType.Param, "column")] [NativeName(NativeNameType.Type, "unsigned int")] uint column, [NativeName(NativeNameType.Param, "row")] [NativeName(NativeNameType.Type, "unsigned int")] uint row, [NativeName(NativeNameType.Param, "value")] [NativeName(NativeNameType.Type, "char")] byte value) { @@ -4046,10 +3831,11 @@ public static void SpvcConstantSetScalarI8([NativeName(NativeNameType.Param, "co /// [NativeName(NativeNameType.Func, "spvc_compiler_get_binary_offset_for_decoration")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_binary_offset_for_decoration")] - internal static extern byte SpvcCompilerGetBinaryOffsetForDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "word_offset")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* wordOffset); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_binary_offset_for_decoration")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerGetBinaryOffsetForDecorationNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "word_offset")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* wordOffset); - /// /// Misc reflection
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_binary_offset_for_decoration")] + /// /// Misc reflection
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_binary_offset_for_decoration")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerGetBinaryOffsetForDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "word_offset")] [NativeName(NativeNameType.Type, "unsigned int*")] uint* wordOffset) { @@ -4057,7 +3843,7 @@ public static byte SpvcCompilerGetBinaryOffsetForDecoration([NativeName(NativeNa return ret; } - /// /// Misc reflection
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_binary_offset_for_decoration")] + /// /// Misc reflection
/// Maps to C++ API.
///
[NativeName(NativeNameType.Func, "spvc_compiler_get_binary_offset_for_decoration")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerGetBinaryOffsetForDecoration([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decoration")] [NativeName(NativeNameType.Type, "SpvDecoration")] SpvDecoration decoration, [NativeName(NativeNameType.Param, "word_offset")] [NativeName(NativeNameType.Type, "unsigned int*")] ref uint wordOffset) { @@ -4068,15 +3854,13 @@ public static byte SpvcCompilerGetBinaryOffsetForDecoration([NativeName(NativeNa } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_buffer_is_hlsl_counter_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_buffer_is_hlsl_counter_buffer")] - internal static extern byte SpvcCompilerBufferIsHlslCounterBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_buffer_is_hlsl_counter_buffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerBufferIsHlslCounterBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_buffer_is_hlsl_counter_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_buffer_is_hlsl_counter_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerBufferIsHlslCounterBuffer([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -4084,15 +3868,13 @@ public static byte SpvcCompilerBufferIsHlslCounterBuffer([NativeName(NativeNameT return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_buffer_get_hlsl_counter_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_buffer_get_hlsl_counter_buffer")] - internal static extern byte SpvcCompilerBufferGetHlslCounterBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "counter_id")] [NativeName(NativeNameType.Type, "spvc_variable_id*")] uint* counterId); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_buffer_get_hlsl_counter_buffer")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte SpvcCompilerBufferGetHlslCounterBufferNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "counter_id")] [NativeName(NativeNameType.Type, "spvc_variable_id*")] uint* counterId); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_buffer_get_hlsl_counter_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_buffer_get_hlsl_counter_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerBufferGetHlslCounterBuffer([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "counter_id")] [NativeName(NativeNameType.Type, "spvc_variable_id*")] uint* counterId) { @@ -4100,7 +3882,7 @@ public static byte SpvcCompilerBufferGetHlslCounterBuffer([NativeName(NativeName return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_buffer_get_hlsl_counter_buffer")] + [NativeName(NativeNameType.Func, "spvc_compiler_buffer_get_hlsl_counter_buffer")] [return: NativeName(NativeNameType.Type, "spvc_bool")] public static byte SpvcCompilerBufferGetHlslCounterBuffer([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "counter_id")] [NativeName(NativeNameType.Type, "spvc_variable_id*")] ref uint counterId) { @@ -4111,25 +3893,23 @@ public static byte SpvcCompilerBufferGetHlslCounterBuffer([NativeName(NativeName } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_declared_capabilities")] - internal static extern SpvcResult SpvcCompilerGetDeclaredCapabilitiesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] SpvCapability** capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numCapabilities); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_declared_capabilities")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetDeclaredCapabilitiesNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] SpvCapability** capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numCapabilities); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetDeclaredCapabilities([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] SpvCapability** capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numCapabilities) + public static SpvcResult SpvcCompilerGetDeclaredCapabilities([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] SpvCapability** capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numCapabilities) { SpvcResult ret = SpvcCompilerGetDeclaredCapabilitiesNative(compiler, capabilities, numCapabilities); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetDeclaredCapabilities([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] ref SpvCapability* capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numCapabilities) + public static SpvcResult SpvcCompilerGetDeclaredCapabilities([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] ref SpvCapability* capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numCapabilities) { fixed (SpvCapability** pcapabilities = &capabilities) { @@ -4138,18 +3918,18 @@ public static SpvcResult SpvcCompilerGetDeclaredCapabilities([NativeName(NativeN } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetDeclaredCapabilities([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] SpvCapability** capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numCapabilities) { fixed (nuint* pnumCapabilities = &numCapabilities) { - SpvcResult ret = SpvcCompilerGetDeclaredCapabilitiesNative(compiler, capabilities, (nuint*)pnumCapabilities); + SpvcResult ret = SpvcCompilerGetDeclaredCapabilitiesNative(compiler, capabilities, (ulong*)pnumCapabilities); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_capabilities")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetDeclaredCapabilities([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "capabilities")] [NativeName(NativeNameType.Type, "const SpvCapability**")] ref SpvCapability* capabilities, [NativeName(NativeNameType.Param, "num_capabilities")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numCapabilities) { @@ -4157,31 +3937,29 @@ public static SpvcResult SpvcCompilerGetDeclaredCapabilities([NativeName(NativeN { fixed (nuint* pnumCapabilities = &numCapabilities) { - SpvcResult ret = SpvcCompilerGetDeclaredCapabilitiesNative(compiler, (SpvCapability**)pcapabilities, (nuint*)pnumCapabilities); + SpvcResult ret = SpvcCompilerGetDeclaredCapabilitiesNative(compiler, (SpvCapability**)pcapabilities, (ulong*)pnumCapabilities); return ret; } } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_declared_extensions")] - internal static extern SpvcResult SpvcCompilerGetDeclaredExtensionsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] byte*** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numExtensions); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_declared_extensions")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetDeclaredExtensionsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] byte*** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numExtensions); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetDeclaredExtensions([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] byte*** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numExtensions) + public static SpvcResult SpvcCompilerGetDeclaredExtensions([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] byte*** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numExtensions) { SpvcResult ret = SpvcCompilerGetDeclaredExtensionsNative(compiler, extensions, numExtensions); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetDeclaredExtensions([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] ref byte** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numExtensions) + public static SpvcResult SpvcCompilerGetDeclaredExtensions([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] ref byte** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numExtensions) { fixed (byte*** pextensions = &extensions) { @@ -4190,18 +3968,18 @@ public static SpvcResult SpvcCompilerGetDeclaredExtensions([NativeName(NativeNam } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetDeclaredExtensions([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] byte*** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numExtensions) { fixed (nuint* pnumExtensions = &numExtensions) { - SpvcResult ret = SpvcCompilerGetDeclaredExtensionsNative(compiler, extensions, (nuint*)pnumExtensions); + SpvcResult ret = SpvcCompilerGetDeclaredExtensionsNative(compiler, extensions, (ulong*)pnumExtensions); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_declared_extensions")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetDeclaredExtensions([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "extensions")] [NativeName(NativeNameType.Type, "const char***")] ref byte** extensions, [NativeName(NativeNameType.Param, "num_extensions")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numExtensions) { @@ -4209,21 +3987,19 @@ public static SpvcResult SpvcCompilerGetDeclaredExtensions([NativeName(NativeNam { fixed (nuint* pnumExtensions = &numExtensions) { - SpvcResult ret = SpvcCompilerGetDeclaredExtensionsNative(compiler, (byte***)pextensions, (nuint*)pnumExtensions); + SpvcResult ret = SpvcCompilerGetDeclaredExtensionsNative(compiler, (byte***)pextensions, (ulong*)pnumExtensions); return ret; } } } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_remapped_declared_block_name")] [return: NativeName(NativeNameType.Type, "const char*")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_remapped_declared_block_name")] - internal static extern byte* SpvcCompilerGetRemappedDeclaredBlockNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_remapped_declared_block_name")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvcCompilerGetRemappedDeclaredBlockNameNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_remapped_declared_block_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_remapped_declared_block_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static byte* SpvcCompilerGetRemappedDeclaredBlockName([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -4231,7 +4007,7 @@ public static SpvcResult SpvcCompilerGetDeclaredExtensions([NativeName(NativeNam return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_remapped_declared_block_name")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_remapped_declared_block_name")] [return: NativeName(NativeNameType.Type, "const char*")] public static string SpvcCompilerGetRemappedDeclaredBlockNameS([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id) { @@ -4239,25 +4015,23 @@ public static string SpvcCompilerGetRemappedDeclaredBlockNameS([NativeName(Nativ return ret; } - /// - /// To be documented. - /// [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] [return: NativeName(NativeNameType.Type, "spvc_result")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "spvc_compiler_get_buffer_block_decorations")] - internal static extern SpvcResult SpvcCompilerGetBufferBlockDecorationsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] SpvDecoration** decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numDecorations); + [LibraryImport(LibName, EntryPoint = "spvc_compiler_get_buffer_block_decorations")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvcResult SpvcCompilerGetBufferBlockDecorationsNative([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] SpvDecoration** decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numDecorations); - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetBufferBlockDecorations([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] SpvDecoration** decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numDecorations) + public static SpvcResult SpvcCompilerGetBufferBlockDecorations([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] SpvDecoration** decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numDecorations) { SpvcResult ret = SpvcCompilerGetBufferBlockDecorationsNative(compiler, id, decorations, numDecorations); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] [return: NativeName(NativeNameType.Type, "spvc_result")] - public static SpvcResult SpvcCompilerGetBufferBlockDecorations([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] ref SpvDecoration* decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] nuint* numDecorations) + public static SpvcResult SpvcCompilerGetBufferBlockDecorations([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] ref SpvDecoration* decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] ulong* numDecorations) { fixed (SpvDecoration** pdecorations = &decorations) { @@ -4266,18 +4040,18 @@ public static SpvcResult SpvcCompilerGetBufferBlockDecorations([NativeName(Nativ } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetBufferBlockDecorations([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] SpvDecoration** decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numDecorations) { fixed (nuint* pnumDecorations = &numDecorations) { - SpvcResult ret = SpvcCompilerGetBufferBlockDecorationsNative(compiler, id, decorations, (nuint*)pnumDecorations); + SpvcResult ret = SpvcCompilerGetBufferBlockDecorationsNative(compiler, id, decorations, (ulong*)pnumDecorations); return ret; } } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] + [NativeName(NativeNameType.Func, "spvc_compiler_get_buffer_block_decorations")] [return: NativeName(NativeNameType.Type, "spvc_result")] public static SpvcResult SpvcCompilerGetBufferBlockDecorations([NativeName(NativeNameType.Param, "compiler")] [NativeName(NativeNameType.Type, "spvc_compiler")] SpvcCompiler compiler, [NativeName(NativeNameType.Param, "id")] [NativeName(NativeNameType.Type, "spvc_variable_id")] uint id, [NativeName(NativeNameType.Param, "decorations")] [NativeName(NativeNameType.Type, "const SpvDecoration**")] ref SpvDecoration* decorations, [NativeName(NativeNameType.Param, "num_decorations")] [NativeName(NativeNameType.Type, "size_t*")] ref nuint numDecorations) { @@ -4285,7 +4059,7 @@ public static SpvcResult SpvcCompilerGetBufferBlockDecorations([NativeName(Nativ { fixed (nuint* pnumDecorations = &numDecorations) { - SpvcResult ret = SpvcCompilerGetBufferBlockDecorationsNative(compiler, id, (SpvDecoration**)pdecorations, (nuint*)pnumDecorations); + SpvcResult ret = SpvcCompilerGetBufferBlockDecorationsNative(compiler, id, (SpvDecoration**)pdecorations, (ulong*)pnumDecorations); return ret; } } diff --git a/Hexa.NET.SPIRVCross/Generated/Handles.cs b/Hexa.NET.SPIRVCross/Generated/Handles.cs index 476baa9..ca3f606 100644 --- a/Hexa.NET.SPIRVCross/Generated/Handles.cs +++ b/Hexa.NET.SPIRVCross/Generated/Handles.cs @@ -38,9 +38,6 @@ namespace Hexa.NET.SPIRVCross private string DebuggerDisplay => string.Format("SpvcContext [0x{0}]", Handle.ToString("X")); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Typedef, "spvc_parsed_ir")] [DebuggerDisplay("{DebuggerDisplay,nq}")] public readonly partial struct SpvcParsedIr : IEquatable @@ -62,9 +59,6 @@ namespace Hexa.NET.SPIRVCross private string DebuggerDisplay => string.Format("SpvcParsedIr [0x{0}]", Handle.ToString("X")); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Typedef, "spvc_compiler")] [DebuggerDisplay("{DebuggerDisplay,nq}")] public readonly partial struct SpvcCompiler : IEquatable @@ -86,9 +80,6 @@ namespace Hexa.NET.SPIRVCross private string DebuggerDisplay => string.Format("SpvcCompiler [0x{0}]", Handle.ToString("X")); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Typedef, "spvc_compiler_options")] [DebuggerDisplay("{DebuggerDisplay,nq}")] public readonly partial struct SpvcCompilerOptions : IEquatable @@ -110,9 +101,6 @@ namespace Hexa.NET.SPIRVCross private string DebuggerDisplay => string.Format("SpvcCompilerOptions [0x{0}]", Handle.ToString("X")); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Typedef, "spvc_resources")] [DebuggerDisplay("{DebuggerDisplay,nq}")] public readonly partial struct SpvcResources : IEquatable @@ -134,9 +122,6 @@ namespace Hexa.NET.SPIRVCross private string DebuggerDisplay => string.Format("SpvcResources [0x{0}]", Handle.ToString("X")); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Typedef, "spvc_type")] [DebuggerDisplay("{DebuggerDisplay,nq}")] public readonly partial struct SpvcType : IEquatable @@ -158,9 +143,6 @@ namespace Hexa.NET.SPIRVCross private string DebuggerDisplay => string.Format("SpvcType [0x{0}]", Handle.ToString("X")); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Typedef, "spvc_constant")] [DebuggerDisplay("{DebuggerDisplay,nq}")] public readonly partial struct SpvcConstant : IEquatable @@ -182,9 +164,6 @@ namespace Hexa.NET.SPIRVCross private string DebuggerDisplay => string.Format("SpvcConstant [0x{0}]", Handle.ToString("X")); } - /// - /// To be documented. - /// [NativeName(NativeNameType.Typedef, "spvc_set")] [DebuggerDisplay("{DebuggerDisplay,nq}")] public readonly partial struct SpvcSet : IEquatable diff --git a/Hexa.NET.SPIRVCross/Generated/Structures.cs b/Hexa.NET.SPIRVCross/Generated/Structures.000.cs similarity index 64% rename from Hexa.NET.SPIRVCross/Generated/Structures.cs rename to Hexa.NET.SPIRVCross/Generated/Structures.000.cs index f016dba..7f79811 100644 --- a/Hexa.NET.SPIRVCross/Generated/Structures.cs +++ b/Hexa.NET.SPIRVCross/Generated/Structures.000.cs @@ -1,1012 +1,683 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using HexaGen.Runtime; - -namespace Hexa.NET.SPIRVCross -{ - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "spvc_context_s")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcContextS - { - - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "spvc_parsed_ir_s")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcParsedIrS - { - - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "spvc_compiler_s")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcCompilerS - { - - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "spvc_compiler_options_s")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcCompilerOptionsS - { - - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "spvc_resources_s")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcResourcesS - { - - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "spvc_type_s")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcTypeS - { - - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "spvc_constant_s")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcConstantS - { - - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "spvc_set_s")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcSetS - { - - - } - - /// - /// See C++ API.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_reflected_resource")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcReflectedResource - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "id")] - [NativeName(NativeNameType.Type, "spvc_variable_id")] - public uint Id; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "base_type_id")] - [NativeName(NativeNameType.Type, "spvc_type_id")] - public uint BaseTypeId; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "type_id")] - [NativeName(NativeNameType.Type, "spvc_type_id")] - public uint TypeId; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "name")] - [NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* Name; - - - /// /// To be documented. /// public unsafe SpvcReflectedResource(uint id = default, uint baseTypeId = default, uint typeId = default, byte* name = default) - { - Id = id; - BaseTypeId = baseTypeId; - TypeId = typeId; - Name = name; - } - - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "spvc_reflected_builtin_resource")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcReflectedBuiltinResource - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "builtin")] - [NativeName(NativeNameType.Type, "SpvBuiltIn")] - public SpvBuiltIn Builtin; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "value_type_id")] - [NativeName(NativeNameType.Type, "spvc_type_id")] - public uint ValueTypeId; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "resource")] - [NativeName(NativeNameType.Type, "spvc_reflected_resource")] - public SpvcReflectedResource Resource; - - - /// /// To be documented. /// public unsafe SpvcReflectedBuiltinResource(SpvBuiltIn builtin = default, uint valueTypeId = default, SpvcReflectedResource resource = default) - { - Builtin = builtin; - ValueTypeId = valueTypeId; - Resource = resource; - } - - - } - - /// - /// See C++ API.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_entry_point")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcEntryPoint - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "execution_model")] - [NativeName(NativeNameType.Type, "SpvExecutionModel")] - public SpvExecutionModel ExecutionModel; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "name")] - [NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* Name; - - - /// /// To be documented. /// public unsafe SpvcEntryPoint(SpvExecutionModel executionModel = default, byte* name = default) - { - ExecutionModel = executionModel; - Name = name; - } - - - } - - /// - /// See C++ API.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_combined_image_sampler")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcCombinedImageSampler - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "combined_id")] - [NativeName(NativeNameType.Type, "spvc_variable_id")] - public uint CombinedId; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "image_id")] - [NativeName(NativeNameType.Type, "spvc_variable_id")] - public uint ImageId; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "sampler_id")] - [NativeName(NativeNameType.Type, "spvc_variable_id")] - public uint SamplerId; - - - /// /// To be documented. /// public unsafe SpvcCombinedImageSampler(uint combinedId = default, uint imageId = default, uint samplerId = default) - { - CombinedId = combinedId; - ImageId = imageId; - SamplerId = samplerId; - } - - - } - - /// - /// See C++ API.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_specialization_constant")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcSpecializationConstant - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "id")] - [NativeName(NativeNameType.Type, "spvc_constant_id")] - public uint Id; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "constant_id")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint ConstantId; - - - /// /// To be documented. /// public unsafe SpvcSpecializationConstant(uint id = default, uint constantId = default) - { - Id = id; - ConstantId = constantId; - } - - - } - - /// - /// See C++ API.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_buffer_range")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcBufferRange - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "index")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Index; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "offset")] - [NativeName(NativeNameType.Type, "size_t")] - public nuint Offset; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "range")] - [NativeName(NativeNameType.Type, "size_t")] - public nuint Range; - - - /// /// To be documented. /// public unsafe SpvcBufferRange(uint index = default, nuint offset = default, nuint range = default) - { - Index = index; - Offset = offset; - Range = range; - } - - - } - - /// - /// See C++ API.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_hlsl_root_constants")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcHlslRootConstants - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "start")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Start; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "end")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint End; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "binding")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Binding; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "space")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Space; - - - /// /// To be documented. /// public unsafe SpvcHlslRootConstants(uint start = default, uint end = default, uint binding = default, uint space = default) - { - Start = start; - End = end; - Binding = binding; - Space = space; - } - - - } - - /// - /// See C++ API.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_hlsl_vertex_attribute_remap")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcHlslVertexAttributeRemap - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "location")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Location; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "semantic")] - [NativeName(NativeNameType.Type, "const char*")] - public unsafe byte* Semantic; - - - /// /// To be documented. /// public unsafe SpvcHlslVertexAttributeRemap(uint location = default, byte* semantic = default) - { - Location = location; - Semantic = semantic; - } - - - } - - /// - /// Maps to C++ API. Deprecated; use spvc_msl_shader_interface_var.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_msl_vertex_attribute")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcMslVertexAttribute - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "location")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Location; - - /// - /// Obsolete, do not use. Only lingers on for ABI compatibility.
- ///
- [NativeName(NativeNameType.Field, "msl_buffer")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint MslBuffer; - - /// - /// Obsolete, do not use. Only lingers on for ABI compatibility.
- ///
- [NativeName(NativeNameType.Field, "msl_offset")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint MslOffset; - - /// - /// Obsolete, do not use. Only lingers on for ABI compatibility.
- ///
- [NativeName(NativeNameType.Field, "msl_stride")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint MslStride; - - /// - /// Obsolete, do not use. Only lingers on for ABI compatibility.
- ///
- [NativeName(NativeNameType.Field, "per_instance")] - [NativeName(NativeNameType.Type, "spvc_bool")] - public byte PerInstance; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "format")] - [NativeName(NativeNameType.Type, "spvc_msl_vertex_format")] - public SpvcMslShaderVariableFormat Format; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "builtin")] - [NativeName(NativeNameType.Type, "SpvBuiltIn")] - public SpvBuiltIn Builtin; - - - /// /// To be documented. /// public unsafe SpvcMslVertexAttribute(uint location = default, uint mslBuffer = default, uint mslOffset = default, uint mslStride = default, byte perInstance = default, SpvcMslShaderVariableFormat format = default, SpvBuiltIn builtin = default) - { - Location = location; - MslBuffer = mslBuffer; - MslOffset = mslOffset; - MslStride = mslStride; - PerInstance = perInstance; - Format = format; - Builtin = builtin; - } - - - } - - /// - /// Maps to C++ API. Deprecated; use spvc_msl_shader_interface_var_2.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_msl_shader_interface_var")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcMslShaderInterfaceVar - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "location")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Location; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "format")] - [NativeName(NativeNameType.Type, "spvc_msl_vertex_format")] - public SpvcMslShaderVariableFormat Format; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "builtin")] - [NativeName(NativeNameType.Type, "SpvBuiltIn")] - public SpvBuiltIn Builtin; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "vecsize")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Vecsize; - - - /// /// To be documented. /// public unsafe SpvcMslShaderInterfaceVar(uint location = default, SpvcMslShaderVariableFormat format = default, SpvBuiltIn builtin = default, uint vecsize = default) - { - Location = location; - Format = format; - Builtin = builtin; - Vecsize = vecsize; - } - - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_msl_shader_interface_var_2")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcMslShaderInterfaceVar2 - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "location")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Location; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "format")] - [NativeName(NativeNameType.Type, "spvc_msl_shader_variable_format")] - public SpvcMslShaderVariableFormat Format; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "builtin")] - [NativeName(NativeNameType.Type, "SpvBuiltIn")] - public SpvBuiltIn Builtin; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "vecsize")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Vecsize; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "rate")] - [NativeName(NativeNameType.Type, "spvc_msl_shader_variable_rate")] - public SpvcMslShaderVariableRate Rate; - - - /// /// To be documented. /// public unsafe SpvcMslShaderInterfaceVar2(uint location = default, SpvcMslShaderVariableFormat format = default, SpvBuiltIn builtin = default, uint vecsize = default, SpvcMslShaderVariableRate rate = default) - { - Location = location; - Format = format; - Builtin = builtin; - Vecsize = vecsize; - Rate = rate; - } - - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_msl_resource_binding")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcMslResourceBinding - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "stage")] - [NativeName(NativeNameType.Type, "SpvExecutionModel")] - public SpvExecutionModel Stage; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "desc_set")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint DescSet; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "binding")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Binding; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "msl_buffer")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint MslBuffer; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "msl_texture")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint MslTexture; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "msl_sampler")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint MslSampler; - - - /// /// To be documented. /// public unsafe SpvcMslResourceBinding(SpvExecutionModel stage = default, uint descSet = default, uint binding = default, uint mslBuffer = default, uint mslTexture = default, uint mslSampler = default) - { - Stage = stage; - DescSet = descSet; - Binding = binding; - MslBuffer = mslBuffer; - MslTexture = mslTexture; - MslSampler = mslSampler; - } - - - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_msl_constexpr_sampler")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcMslConstexprSampler - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "coord")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_coord")] - public SpvcMslSamplerCoord Coord; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "min_filter")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_filter")] - public SpvcMslSamplerFilter MinFilter; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "mag_filter")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_filter")] - public SpvcMslSamplerFilter MagFilter; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "mip_filter")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_mip_filter")] - public SpvcMslSamplerMipFilter MipFilter; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "s_address")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_address")] - public SpvcMslSamplerAddress SAddress; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "t_address")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_address")] - public SpvcMslSamplerAddress TAddress; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "r_address")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_address")] - public SpvcMslSamplerAddress RAddress; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "compare_func")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_compare_func")] - public SpvcMslSamplerCompareFunc CompareFunc; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "border_color")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_border_color")] - public SpvcMslSamplerBorderColor BorderColor; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "lod_clamp_min")] - [NativeName(NativeNameType.Type, "float")] - public float LodClampMin; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "lod_clamp_max")] - [NativeName(NativeNameType.Type, "float")] - public float LodClampMax; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "max_anisotropy")] - [NativeName(NativeNameType.Type, "int")] - public int MaxAnisotropy; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "compare_enable")] - [NativeName(NativeNameType.Type, "spvc_bool")] - public byte CompareEnable; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "lod_clamp_enable")] - [NativeName(NativeNameType.Type, "spvc_bool")] - public byte LodClampEnable; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "anisotropy_enable")] - [NativeName(NativeNameType.Type, "spvc_bool")] - public byte AnisotropyEnable; - - - /// /// To be documented. /// public unsafe SpvcMslConstexprSampler(SpvcMslSamplerCoord coord = default, SpvcMslSamplerFilter minFilter = default, SpvcMslSamplerFilter magFilter = default, SpvcMslSamplerMipFilter mipFilter = default, SpvcMslSamplerAddress sAddress = default, SpvcMslSamplerAddress tAddress = default, SpvcMslSamplerAddress rAddress = default, SpvcMslSamplerCompareFunc compareFunc = default, SpvcMslSamplerBorderColor borderColor = default, float lodClampMin = default, float lodClampMax = default, int maxAnisotropy = default, byte compareEnable = default, byte lodClampEnable = default, byte anisotropyEnable = default) - { - Coord = coord; - MinFilter = minFilter; - MagFilter = magFilter; - MipFilter = mipFilter; - SAddress = sAddress; - TAddress = tAddress; - RAddress = rAddress; - CompareFunc = compareFunc; - BorderColor = borderColor; - LodClampMin = lodClampMin; - LodClampMax = lodClampMax; - MaxAnisotropy = maxAnisotropy; - CompareEnable = compareEnable; - LodClampEnable = lodClampEnable; - AnisotropyEnable = anisotropyEnable; - } - - - } - - /// - /// Maps to the sampler Y'CbCr conversion-related portions of MSLConstexprSampler. See C++ API for defaults and details.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_msl_sampler_ycbcr_conversion")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcMslSamplerYcbcrConversion - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "planes")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Planes; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "resolution")] - [NativeName(NativeNameType.Type, "spvc_msl_format_resolution")] - public SpvcMslFormatResolution Resolution; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "chroma_filter")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_filter")] - public SpvcMslSamplerFilter ChromaFilter; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "x_chroma_offset")] - [NativeName(NativeNameType.Type, "spvc_msl_chroma_location")] - public SpvcMslChromaLocation XChromaOffset; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "y_chroma_offset")] - [NativeName(NativeNameType.Type, "spvc_msl_chroma_location")] - public SpvcMslChromaLocation YChromaOffset; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "swizzle")] - [NativeName(NativeNameType.Type, "spvc_msl_component_swizzle[4]")] - public SpvcMslComponentSwizzle Swizzle_0; - public SpvcMslComponentSwizzle Swizzle_1; - public SpvcMslComponentSwizzle Swizzle_2; - public SpvcMslComponentSwizzle Swizzle_3; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "ycbcr_model")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_ycbcr_model_conversion")] - public SpvcMslSamplerYcbcrModelConversion YcbcrModel; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "ycbcr_range")] - [NativeName(NativeNameType.Type, "spvc_msl_sampler_ycbcr_range")] - public SpvcMslSamplerYcbcrRange YcbcrRange; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "bpc")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Bpc; - - - /// /// To be documented. /// public unsafe SpvcMslSamplerYcbcrConversion(uint planes = default, SpvcMslFormatResolution resolution = default, SpvcMslSamplerFilter chromaFilter = default, SpvcMslChromaLocation xChromaOffset = default, SpvcMslChromaLocation yChromaOffset = default, SpvcMslComponentSwizzle* swizzle = default, SpvcMslSamplerYcbcrModelConversion ycbcrModel = default, SpvcMslSamplerYcbcrRange ycbcrRange = default, uint bpc = default) - { - Planes = planes; - Resolution = resolution; - ChromaFilter = chromaFilter; - XChromaOffset = xChromaOffset; - YChromaOffset = yChromaOffset; - if (swizzle != default) - { - Swizzle_0 = swizzle[0]; - Swizzle_1 = swizzle[1]; - Swizzle_2 = swizzle[2]; - Swizzle_3 = swizzle[3]; - } - YcbcrModel = ycbcrModel; - YcbcrRange = ycbcrRange; - Bpc = bpc; - } - - /// /// To be documented. /// public unsafe SpvcMslSamplerYcbcrConversion(uint planes = default, SpvcMslFormatResolution resolution = default, SpvcMslSamplerFilter chromaFilter = default, SpvcMslChromaLocation xChromaOffset = default, SpvcMslChromaLocation yChromaOffset = default, Span swizzle = default, SpvcMslSamplerYcbcrModelConversion ycbcrModel = default, SpvcMslSamplerYcbcrRange ycbcrRange = default, uint bpc = default) - { - Planes = planes; - Resolution = resolution; - ChromaFilter = chromaFilter; - XChromaOffset = xChromaOffset; - YChromaOffset = yChromaOffset; - if (swizzle != default) - { - Swizzle_0 = swizzle[0]; - Swizzle_1 = swizzle[1]; - Swizzle_2 = swizzle[2]; - Swizzle_3 = swizzle[3]; - } - YcbcrModel = ycbcrModel; - YcbcrRange = ycbcrRange; - Bpc = bpc; - } - - - /// - /// To be documented. - /// - public unsafe Span Swizzle - - { - get - { - fixed (SpvcMslComponentSwizzle* p = &this.Swizzle_0) - { - return new Span(p, 4); - } - } - } - } - - /// - /// Maps to C++ API.
- ///
- [NativeName(NativeNameType.StructOrClass, "spvc_hlsl_resource_binding_mapping")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcHlslResourceBindingMapping - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "register_space")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint RegisterSpace; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "register_binding")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint RegisterBinding; - - - /// /// To be documented. /// public unsafe SpvcHlslResourceBindingMapping(uint registerSpace = default, uint registerBinding = default) - { - RegisterSpace = registerSpace; - RegisterBinding = registerBinding; - } - - - } - - /// - /// To be documented. - /// - [NativeName(NativeNameType.StructOrClass, "spvc_hlsl_resource_binding")] - [StructLayout(LayoutKind.Sequential)] - public partial struct SpvcHlslResourceBinding - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "stage")] - [NativeName(NativeNameType.Type, "SpvExecutionModel")] - public SpvExecutionModel Stage; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "desc_set")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint DescSet; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "binding")] - [NativeName(NativeNameType.Type, "unsigned int")] - public uint Binding; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "cbv")] - [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding_mapping")] - public SpvcHlslResourceBindingMapping Cbv; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "uav")] - [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding_mapping")] - public SpvcHlslResourceBindingMapping Uav; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "srv")] - [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding_mapping")] - public SpvcHlslResourceBindingMapping Srv; - - /// - /// To be documented. - /// - [NativeName(NativeNameType.Field, "sampler")] - [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding_mapping")] - public SpvcHlslResourceBindingMapping Sampler; - - - /// /// To be documented. /// public unsafe SpvcHlslResourceBinding(SpvExecutionModel stage = default, uint descSet = default, uint binding = default, SpvcHlslResourceBindingMapping cbv = default, SpvcHlslResourceBindingMapping uav = default, SpvcHlslResourceBindingMapping srv = default, SpvcHlslResourceBindingMapping sampler = default) - { - Stage = stage; - DescSet = descSet; - Binding = binding; - Cbv = cbv; - Uav = uav; - Srv = srv; - Sampler = sampler; - } - - - } - -} +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.SPIRVCross +{ + [NativeName(NativeNameType.StructOrClass, "spvc_context_s")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcContextS + { + + + } + + [NativeName(NativeNameType.StructOrClass, "spvc_parsed_ir_s")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcParsedIrS + { + + + } + + [NativeName(NativeNameType.StructOrClass, "spvc_compiler_s")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcCompilerS + { + + + } + + [NativeName(NativeNameType.StructOrClass, "spvc_compiler_options_s")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcCompilerOptionsS + { + + + } + + [NativeName(NativeNameType.StructOrClass, "spvc_resources_s")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcResourcesS + { + + + } + + [NativeName(NativeNameType.StructOrClass, "spvc_type_s")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcTypeS + { + + + } + + [NativeName(NativeNameType.StructOrClass, "spvc_constant_s")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcConstantS + { + + + } + + [NativeName(NativeNameType.StructOrClass, "spvc_set_s")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcSetS + { + + + } + + /// + /// See C++ API.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_reflected_resource")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcReflectedResource + { + [NativeName(NativeNameType.Field, "id")] + [NativeName(NativeNameType.Type, "spvc_variable_id")] + public uint Id; + [NativeName(NativeNameType.Field, "base_type_id")] + [NativeName(NativeNameType.Type, "spvc_type_id")] + public uint BaseTypeId; + [NativeName(NativeNameType.Field, "type_id")] + [NativeName(NativeNameType.Type, "spvc_type_id")] + public uint TypeId; + [NativeName(NativeNameType.Field, "name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Name; + + public unsafe SpvcReflectedResource(uint id = default, uint baseTypeId = default, uint typeId = default, byte* name = default) + { + Id = id; + BaseTypeId = baseTypeId; + TypeId = typeId; + Name = name; + } + + + } + + [NativeName(NativeNameType.StructOrClass, "spvc_reflected_builtin_resource")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcReflectedBuiltinResource + { + [NativeName(NativeNameType.Field, "builtin")] + [NativeName(NativeNameType.Type, "SpvBuiltIn")] + public SpvBuiltIn Builtin; + [NativeName(NativeNameType.Field, "value_type_id")] + [NativeName(NativeNameType.Type, "spvc_type_id")] + public uint ValueTypeId; + [NativeName(NativeNameType.Field, "resource")] + [NativeName(NativeNameType.Type, "spvc_reflected_resource")] + public SpvcReflectedResource Resource; + + public unsafe SpvcReflectedBuiltinResource(SpvBuiltIn builtin = default, uint valueTypeId = default, SpvcReflectedResource resource = default) + { + Builtin = builtin; + ValueTypeId = valueTypeId; + Resource = resource; + } + + + } + + /// + /// See C++ API.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_entry_point")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcEntryPoint + { + [NativeName(NativeNameType.Field, "execution_model")] + [NativeName(NativeNameType.Type, "SpvExecutionModel")] + public SpvExecutionModel ExecutionModel; + [NativeName(NativeNameType.Field, "name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Name; + + public unsafe SpvcEntryPoint(SpvExecutionModel executionModel = default, byte* name = default) + { + ExecutionModel = executionModel; + Name = name; + } + + + } + + /// + /// See C++ API.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_combined_image_sampler")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcCombinedImageSampler + { + [NativeName(NativeNameType.Field, "combined_id")] + [NativeName(NativeNameType.Type, "spvc_variable_id")] + public uint CombinedId; + [NativeName(NativeNameType.Field, "image_id")] + [NativeName(NativeNameType.Type, "spvc_variable_id")] + public uint ImageId; + [NativeName(NativeNameType.Field, "sampler_id")] + [NativeName(NativeNameType.Type, "spvc_variable_id")] + public uint SamplerId; + + public unsafe SpvcCombinedImageSampler(uint combinedId = default, uint imageId = default, uint samplerId = default) + { + CombinedId = combinedId; + ImageId = imageId; + SamplerId = samplerId; + } + + + } + + /// + /// See C++ API.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_specialization_constant")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcSpecializationConstant + { + [NativeName(NativeNameType.Field, "id")] + [NativeName(NativeNameType.Type, "spvc_constant_id")] + public uint Id; + [NativeName(NativeNameType.Field, "constant_id")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint ConstantId; + + public unsafe SpvcSpecializationConstant(uint id = default, uint constantId = default) + { + Id = id; + ConstantId = constantId; + } + + + } + + /// + /// See C++ API.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_buffer_range")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcBufferRange + { + [NativeName(NativeNameType.Field, "index")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Index; + [NativeName(NativeNameType.Field, "offset")] + [NativeName(NativeNameType.Type, "size_t")] + public ulong Offset; + [NativeName(NativeNameType.Field, "range")] + [NativeName(NativeNameType.Type, "size_t")] + public ulong Range; + + public unsafe SpvcBufferRange(uint index = default, ulong offset = default, ulong range = default) + { + Index = index; + Offset = offset; + Range = range; + } + + + } + + /// + /// See C++ API.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_hlsl_root_constants")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcHlslRootConstants + { + [NativeName(NativeNameType.Field, "start")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Start; + [NativeName(NativeNameType.Field, "end")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint End; + [NativeName(NativeNameType.Field, "binding")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Binding; + [NativeName(NativeNameType.Field, "space")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Space; + + public unsafe SpvcHlslRootConstants(uint start = default, uint end = default, uint binding = default, uint space = default) + { + Start = start; + End = end; + Binding = binding; + Space = space; + } + + + } + + /// + /// See C++ API.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_hlsl_vertex_attribute_remap")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcHlslVertexAttributeRemap + { + [NativeName(NativeNameType.Field, "location")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Location; + [NativeName(NativeNameType.Field, "semantic")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Semantic; + + public unsafe SpvcHlslVertexAttributeRemap(uint location = default, byte* semantic = default) + { + Location = location; + Semantic = semantic; + } + + + } + + /// + /// Maps to C++ API. Deprecated; use spvc_msl_shader_interface_var.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_msl_vertex_attribute")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcMslVertexAttribute + { + [NativeName(NativeNameType.Field, "location")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Location; + /// + /// Obsolete, do not use. Only lingers on for ABI compatibility.
+ ///
+ [NativeName(NativeNameType.Field, "msl_buffer")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint MslBuffer; + + /// + /// Obsolete, do not use. Only lingers on for ABI compatibility.
+ ///
+ [NativeName(NativeNameType.Field, "msl_offset")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint MslOffset; + + /// + /// Obsolete, do not use. Only lingers on for ABI compatibility.
+ ///
+ [NativeName(NativeNameType.Field, "msl_stride")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint MslStride; + + /// + /// Obsolete, do not use. Only lingers on for ABI compatibility.
+ ///
+ [NativeName(NativeNameType.Field, "per_instance")] + [NativeName(NativeNameType.Type, "spvc_bool")] + public byte PerInstance; + + [NativeName(NativeNameType.Field, "format")] + [NativeName(NativeNameType.Type, "spvc_msl_vertex_format")] + public SpvcMslShaderVariableFormat Format; + [NativeName(NativeNameType.Field, "builtin")] + [NativeName(NativeNameType.Type, "SpvBuiltIn")] + public SpvBuiltIn Builtin; + + public unsafe SpvcMslVertexAttribute(uint location = default, uint mslBuffer = default, uint mslOffset = default, uint mslStride = default, byte perInstance = default, SpvcMslShaderVariableFormat format = default, SpvBuiltIn builtin = default) + { + Location = location; + MslBuffer = mslBuffer; + MslOffset = mslOffset; + MslStride = mslStride; + PerInstance = perInstance; + Format = format; + Builtin = builtin; + } + + + } + + /// + /// Maps to C++ API. Deprecated; use spvc_msl_shader_interface_var_2.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_msl_shader_interface_var")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcMslShaderInterfaceVar + { + [NativeName(NativeNameType.Field, "location")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Location; + [NativeName(NativeNameType.Field, "format")] + [NativeName(NativeNameType.Type, "spvc_msl_vertex_format")] + public SpvcMslShaderVariableFormat Format; + [NativeName(NativeNameType.Field, "builtin")] + [NativeName(NativeNameType.Type, "SpvBuiltIn")] + public SpvBuiltIn Builtin; + [NativeName(NativeNameType.Field, "vecsize")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Vecsize; + + public unsafe SpvcMslShaderInterfaceVar(uint location = default, SpvcMslShaderVariableFormat format = default, SpvBuiltIn builtin = default, uint vecsize = default) + { + Location = location; + Format = format; + Builtin = builtin; + Vecsize = vecsize; + } + + + } + + /// + /// Maps to C++ API.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_msl_shader_interface_var_2")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcMslShaderInterfaceVar2 + { + [NativeName(NativeNameType.Field, "location")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Location; + [NativeName(NativeNameType.Field, "format")] + [NativeName(NativeNameType.Type, "spvc_msl_shader_variable_format")] + public SpvcMslShaderVariableFormat Format; + [NativeName(NativeNameType.Field, "builtin")] + [NativeName(NativeNameType.Type, "SpvBuiltIn")] + public SpvBuiltIn Builtin; + [NativeName(NativeNameType.Field, "vecsize")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Vecsize; + [NativeName(NativeNameType.Field, "rate")] + [NativeName(NativeNameType.Type, "spvc_msl_shader_variable_rate")] + public SpvcMslShaderVariableRate Rate; + + public unsafe SpvcMslShaderInterfaceVar2(uint location = default, SpvcMslShaderVariableFormat format = default, SpvBuiltIn builtin = default, uint vecsize = default, SpvcMslShaderVariableRate rate = default) + { + Location = location; + Format = format; + Builtin = builtin; + Vecsize = vecsize; + Rate = rate; + } + + + } + + /// + /// Maps to C++ API.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_msl_resource_binding")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcMslResourceBinding + { + [NativeName(NativeNameType.Field, "stage")] + [NativeName(NativeNameType.Type, "SpvExecutionModel")] + public SpvExecutionModel Stage; + [NativeName(NativeNameType.Field, "desc_set")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint DescSet; + [NativeName(NativeNameType.Field, "binding")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Binding; + [NativeName(NativeNameType.Field, "msl_buffer")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint MslBuffer; + [NativeName(NativeNameType.Field, "msl_texture")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint MslTexture; + [NativeName(NativeNameType.Field, "msl_sampler")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint MslSampler; + + public unsafe SpvcMslResourceBinding(SpvExecutionModel stage = default, uint descSet = default, uint binding = default, uint mslBuffer = default, uint mslTexture = default, uint mslSampler = default) + { + Stage = stage; + DescSet = descSet; + Binding = binding; + MslBuffer = mslBuffer; + MslTexture = mslTexture; + MslSampler = mslSampler; + } + + + } + + /// + /// Maps to C++ API.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_msl_constexpr_sampler")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcMslConstexprSampler + { + [NativeName(NativeNameType.Field, "coord")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_coord")] + public SpvcMslSamplerCoord Coord; + [NativeName(NativeNameType.Field, "min_filter")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_filter")] + public SpvcMslSamplerFilter MinFilter; + [NativeName(NativeNameType.Field, "mag_filter")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_filter")] + public SpvcMslSamplerFilter MagFilter; + [NativeName(NativeNameType.Field, "mip_filter")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_mip_filter")] + public SpvcMslSamplerMipFilter MipFilter; + [NativeName(NativeNameType.Field, "s_address")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_address")] + public SpvcMslSamplerAddress SAddress; + [NativeName(NativeNameType.Field, "t_address")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_address")] + public SpvcMslSamplerAddress TAddress; + [NativeName(NativeNameType.Field, "r_address")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_address")] + public SpvcMslSamplerAddress RAddress; + [NativeName(NativeNameType.Field, "compare_func")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_compare_func")] + public SpvcMslSamplerCompareFunc CompareFunc; + [NativeName(NativeNameType.Field, "border_color")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_border_color")] + public SpvcMslSamplerBorderColor BorderColor; + [NativeName(NativeNameType.Field, "lod_clamp_min")] + [NativeName(NativeNameType.Type, "float")] + public float LodClampMin; + [NativeName(NativeNameType.Field, "lod_clamp_max")] + [NativeName(NativeNameType.Type, "float")] + public float LodClampMax; + [NativeName(NativeNameType.Field, "max_anisotropy")] + [NativeName(NativeNameType.Type, "int")] + public int MaxAnisotropy; + [NativeName(NativeNameType.Field, "compare_enable")] + [NativeName(NativeNameType.Type, "spvc_bool")] + public byte CompareEnable; + [NativeName(NativeNameType.Field, "lod_clamp_enable")] + [NativeName(NativeNameType.Type, "spvc_bool")] + public byte LodClampEnable; + [NativeName(NativeNameType.Field, "anisotropy_enable")] + [NativeName(NativeNameType.Type, "spvc_bool")] + public byte AnisotropyEnable; + + public unsafe SpvcMslConstexprSampler(SpvcMslSamplerCoord coord = default, SpvcMslSamplerFilter minFilter = default, SpvcMslSamplerFilter magFilter = default, SpvcMslSamplerMipFilter mipFilter = default, SpvcMslSamplerAddress sAddress = default, SpvcMslSamplerAddress tAddress = default, SpvcMslSamplerAddress rAddress = default, SpvcMslSamplerCompareFunc compareFunc = default, SpvcMslSamplerBorderColor borderColor = default, float lodClampMin = default, float lodClampMax = default, int maxAnisotropy = default, byte compareEnable = default, byte lodClampEnable = default, byte anisotropyEnable = default) + { + Coord = coord; + MinFilter = minFilter; + MagFilter = magFilter; + MipFilter = mipFilter; + SAddress = sAddress; + TAddress = tAddress; + RAddress = rAddress; + CompareFunc = compareFunc; + BorderColor = borderColor; + LodClampMin = lodClampMin; + LodClampMax = lodClampMax; + MaxAnisotropy = maxAnisotropy; + CompareEnable = compareEnable; + LodClampEnable = lodClampEnable; + AnisotropyEnable = anisotropyEnable; + } + + + } + + /// + /// Maps to the sampler Y'CbCr conversion-related portions of MSLConstexprSampler. See C++ API for defaults and details.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_msl_sampler_ycbcr_conversion")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcMslSamplerYcbcrConversion + { + [NativeName(NativeNameType.Field, "planes")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Planes; + [NativeName(NativeNameType.Field, "resolution")] + [NativeName(NativeNameType.Type, "spvc_msl_format_resolution")] + public SpvcMslFormatResolution Resolution; + [NativeName(NativeNameType.Field, "chroma_filter")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_filter")] + public SpvcMslSamplerFilter ChromaFilter; + [NativeName(NativeNameType.Field, "x_chroma_offset")] + [NativeName(NativeNameType.Type, "spvc_msl_chroma_location")] + public SpvcMslChromaLocation XChromaOffset; + [NativeName(NativeNameType.Field, "y_chroma_offset")] + [NativeName(NativeNameType.Type, "spvc_msl_chroma_location")] + public SpvcMslChromaLocation YChromaOffset; + [NativeName(NativeNameType.Field, "swizzle")] + [NativeName(NativeNameType.Type, "spvc_msl_component_swizzle[4]")] + public SpvcMslComponentSwizzle Swizzle_0; + public SpvcMslComponentSwizzle Swizzle_1; + public SpvcMslComponentSwizzle Swizzle_2; + public SpvcMslComponentSwizzle Swizzle_3; + [NativeName(NativeNameType.Field, "ycbcr_model")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_ycbcr_model_conversion")] + public SpvcMslSamplerYcbcrModelConversion YcbcrModel; + [NativeName(NativeNameType.Field, "ycbcr_range")] + [NativeName(NativeNameType.Type, "spvc_msl_sampler_ycbcr_range")] + public SpvcMslSamplerYcbcrRange YcbcrRange; + [NativeName(NativeNameType.Field, "bpc")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Bpc; + + public unsafe SpvcMslSamplerYcbcrConversion(uint planes = default, SpvcMslFormatResolution resolution = default, SpvcMslSamplerFilter chromaFilter = default, SpvcMslChromaLocation xChromaOffset = default, SpvcMslChromaLocation yChromaOffset = default, SpvcMslComponentSwizzle* swizzle = default, SpvcMslSamplerYcbcrModelConversion ycbcrModel = default, SpvcMslSamplerYcbcrRange ycbcrRange = default, uint bpc = default) + { + Planes = planes; + Resolution = resolution; + ChromaFilter = chromaFilter; + XChromaOffset = xChromaOffset; + YChromaOffset = yChromaOffset; + if (swizzle != default) + { + Swizzle_0 = swizzle[0]; + Swizzle_1 = swizzle[1]; + Swizzle_2 = swizzle[2]; + Swizzle_3 = swizzle[3]; + } + YcbcrModel = ycbcrModel; + YcbcrRange = ycbcrRange; + Bpc = bpc; + } + + public unsafe SpvcMslSamplerYcbcrConversion(uint planes = default, SpvcMslFormatResolution resolution = default, SpvcMslSamplerFilter chromaFilter = default, SpvcMslChromaLocation xChromaOffset = default, SpvcMslChromaLocation yChromaOffset = default, Span swizzle = default, SpvcMslSamplerYcbcrModelConversion ycbcrModel = default, SpvcMslSamplerYcbcrRange ycbcrRange = default, uint bpc = default) + { + Planes = planes; + Resolution = resolution; + ChromaFilter = chromaFilter; + XChromaOffset = xChromaOffset; + YChromaOffset = yChromaOffset; + if (swizzle != default) + { + Swizzle_0 = swizzle[0]; + Swizzle_1 = swizzle[1]; + Swizzle_2 = swizzle[2]; + Swizzle_3 = swizzle[3]; + } + YcbcrModel = ycbcrModel; + YcbcrRange = ycbcrRange; + Bpc = bpc; + } + + + public unsafe Span Swizzle + + { + get + { + fixed (SpvcMslComponentSwizzle* p = &this.Swizzle_0) + { + return new Span(p, 4); + } + } + } + } + + /// + /// Maps to C++ API.
+ ///
+ [NativeName(NativeNameType.StructOrClass, "spvc_hlsl_resource_binding_mapping")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcHlslResourceBindingMapping + { + [NativeName(NativeNameType.Field, "register_space")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint RegisterSpace; + [NativeName(NativeNameType.Field, "register_binding")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint RegisterBinding; + + public unsafe SpvcHlslResourceBindingMapping(uint registerSpace = default, uint registerBinding = default) + { + RegisterSpace = registerSpace; + RegisterBinding = registerBinding; + } + + + } + + [NativeName(NativeNameType.StructOrClass, "spvc_hlsl_resource_binding")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvcHlslResourceBinding + { + [NativeName(NativeNameType.Field, "stage")] + [NativeName(NativeNameType.Type, "SpvExecutionModel")] + public SpvExecutionModel Stage; + [NativeName(NativeNameType.Field, "desc_set")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint DescSet; + [NativeName(NativeNameType.Field, "binding")] + [NativeName(NativeNameType.Type, "unsigned int")] + public uint Binding; + [NativeName(NativeNameType.Field, "cbv")] + [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding_mapping")] + public SpvcHlslResourceBindingMapping Cbv; + [NativeName(NativeNameType.Field, "uav")] + [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding_mapping")] + public SpvcHlslResourceBindingMapping Uav; + [NativeName(NativeNameType.Field, "srv")] + [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding_mapping")] + public SpvcHlslResourceBindingMapping Srv; + [NativeName(NativeNameType.Field, "sampler")] + [NativeName(NativeNameType.Type, "spvc_hlsl_resource_binding_mapping")] + public SpvcHlslResourceBindingMapping Sampler; + + public unsafe SpvcHlslResourceBinding(SpvExecutionModel stage = default, uint descSet = default, uint binding = default, SpvcHlslResourceBindingMapping cbv = default, SpvcHlslResourceBindingMapping uav = default, SpvcHlslResourceBindingMapping srv = default, SpvcHlslResourceBindingMapping sampler = default) + { + Stage = stage; + DescSet = descSet; + Binding = binding; + Cbv = cbv; + Uav = uav; + Srv = srv; + Sampler = sampler; + } + + + } + +} diff --git a/Hexa.NET.SPIRVCross/Hexa.NET.SPIRVCross.csproj b/Hexa.NET.SPIRVCross/Hexa.NET.SPIRVCross.csproj index 4f52f8b..f8287cf 100644 --- a/Hexa.NET.SPIRVCross/Hexa.NET.SPIRVCross.csproj +++ b/Hexa.NET.SPIRVCross/Hexa.NET.SPIRVCross.csproj @@ -95,4 +95,8 @@ true + + + + \ No newline at end of file diff --git a/Hexa.NET.SPIRVReflect/Generated/Constants.cs b/Hexa.NET.SPIRVReflect/Generated/Constants.cs new file mode 100644 index 0000000..abdb439 --- /dev/null +++ b/Hexa.NET.SPIRVReflect/Generated/Constants.cs @@ -0,0 +1,46 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using HexaGen.Runtime; + +namespace Hexa.NET.SPIRVReflect +{ + public unsafe partial class SPIRV + { + [NativeName(NativeNameType.Const, "_MSC_VER")] + [NativeName(NativeNameType.Value, "1930")] + public const int _MSC_VER = 1930; + + [NativeName(NativeNameType.Const, "_WIN32")] + [NativeName(NativeNameType.Value, "1")] + public const int _WIN32 = 1; + + [NativeName(NativeNameType.Const, "_M_AMD64")] + [NativeName(NativeNameType.Value, "100")] + public const int _M_AMD64 = 100; + + [NativeName(NativeNameType.Const, "_M_X64")] + [NativeName(NativeNameType.Value, "100")] + public const int _M_X64 = 100; + + [NativeName(NativeNameType.Const, "_WIN64")] + [NativeName(NativeNameType.Value, "1")] + public const int _WIN64 = 1; + + [NativeName(NativeNameType.Const, "SPV_VERSION")] + [NativeName(NativeNameType.Value, "0x10600")] + public const int SPV_VERSION = 0x10600; + + [NativeName(NativeNameType.Const, "SPV_REVISION")] + [NativeName(NativeNameType.Value, "1")] + public const int SPV_REVISION = 1; + + } +} diff --git a/Hexa.NET.SPIRVReflect/Generated/Delegates.cs b/Hexa.NET.SPIRVReflect/Generated/Delegates.cs new file mode 100644 index 0000000..bfa13da --- /dev/null +++ b/Hexa.NET.SPIRVReflect/Generated/Delegates.cs @@ -0,0 +1,18 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.SPIRVReflect +{ +} diff --git a/Hexa.NET.SPIRVReflect/Generated/Enumerations.cs b/Hexa.NET.SPIRVReflect/Generated/Enumerations.cs new file mode 100644 index 0000000..6b7184b --- /dev/null +++ b/Hexa.NET.SPIRVReflect/Generated/Enumerations.cs @@ -0,0 +1,6403 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using HexaGen.Runtime; + +namespace Hexa.NET.SPIRVReflect +{ + [NativeName(NativeNameType.Enum, "SpvSourceLanguage_")] + public enum SpvSourceLanguage + { + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageUnknown")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageESSL")] + [NativeName(NativeNameType.Value, "1")] + Essl = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageGLSL")] + [NativeName(NativeNameType.Value, "2")] + Glsl = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageOpenCL_C")] + [NativeName(NativeNameType.Value, "3")] + OpenClc = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageOpenCL_CPP")] + [NativeName(NativeNameType.Value, "4")] + OpenClCpp = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageHLSL")] + [NativeName(NativeNameType.Value, "5")] + Hlsl = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageCPP_for_OpenCL")] + [NativeName(NativeNameType.Value, "6")] + CppForOpenCl = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageSYCL")] + [NativeName(NativeNameType.Value, "7")] + Sycl = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageHERO_C")] + [NativeName(NativeNameType.Value, "8")] + Heroc = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageNZSL")] + [NativeName(NativeNameType.Value, "9")] + Nzsl = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvSourceLanguageMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvExecutionModel_")] + public enum SpvExecutionModel + { + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelVertex")] + [NativeName(NativeNameType.Value, "0")] + Vertex = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTessellationControl")] + [NativeName(NativeNameType.Value, "1")] + TessellationControl = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTessellationEvaluation")] + [NativeName(NativeNameType.Value, "2")] + TessellationEvaluation = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelGeometry")] + [NativeName(NativeNameType.Value, "3")] + Geometry = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelFragment")] + [NativeName(NativeNameType.Value, "4")] + Fragment = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelGLCompute")] + [NativeName(NativeNameType.Value, "5")] + GlCompute = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelKernel")] + [NativeName(NativeNameType.Value, "6")] + Kernel = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTaskNV")] + [NativeName(NativeNameType.Value, "5267")] + TaskNv = unchecked(5267), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMeshNV")] + [NativeName(NativeNameType.Value, "5268")] + MeshNv = unchecked(5268), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelRayGenerationKHR")] + [NativeName(NativeNameType.Value, "5313")] + RayGenerationKhr = unchecked(5313), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelRayGenerationNV")] + [NativeName(NativeNameType.Value, "5313")] + RayGenerationNv = unchecked(5313), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelIntersectionKHR")] + [NativeName(NativeNameType.Value, "5314")] + IntersectionKhr = unchecked(5314), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelIntersectionNV")] + [NativeName(NativeNameType.Value, "5314")] + IntersectionNv = unchecked(5314), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelAnyHitKHR")] + [NativeName(NativeNameType.Value, "5315")] + AnyHitKhr = unchecked(5315), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelAnyHitNV")] + [NativeName(NativeNameType.Value, "5315")] + AnyHitNv = unchecked(5315), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelClosestHitKHR")] + [NativeName(NativeNameType.Value, "5316")] + ClosestHitKhr = unchecked(5316), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelClosestHitNV")] + [NativeName(NativeNameType.Value, "5316")] + ClosestHitNv = unchecked(5316), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMissKHR")] + [NativeName(NativeNameType.Value, "5317")] + MissKhr = unchecked(5317), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMissNV")] + [NativeName(NativeNameType.Value, "5317")] + MissNv = unchecked(5317), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelCallableKHR")] + [NativeName(NativeNameType.Value, "5318")] + CallableKhr = unchecked(5318), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelCallableNV")] + [NativeName(NativeNameType.Value, "5318")] + CallableNv = unchecked(5318), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelTaskEXT")] + [NativeName(NativeNameType.Value, "5364")] + TaskExt = unchecked(5364), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMeshEXT")] + [NativeName(NativeNameType.Value, "5365")] + MeshExt = unchecked(5365), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModelMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvAddressingModel_")] + public enum SpvAddressingModel + { + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelLogical")] + [NativeName(NativeNameType.Value, "0")] + Logical = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysical32")] + [NativeName(NativeNameType.Value, "1")] + Physical32 = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysical64")] + [NativeName(NativeNameType.Value, "2")] + Physical64 = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysicalStorageBuffer64")] + [NativeName(NativeNameType.Value, "5348")] + PhysicalStorageBuffer64 = unchecked(5348), + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelPhysicalStorageBuffer64EXT")] + [NativeName(NativeNameType.Value, "5348")] + PhysicalStorageBuffer64Ext = unchecked(5348), + [NativeName(NativeNameType.EnumItem, "SpvAddressingModelMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvMemoryModel_")] + public enum SpvMemoryModel + { + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelSimple")] + [NativeName(NativeNameType.Value, "0")] + Simple = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelGLSL450")] + [NativeName(NativeNameType.Value, "1")] + Glsl450 = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelOpenCL")] + [NativeName(NativeNameType.Value, "2")] + OpenCl = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelVulkan")] + [NativeName(NativeNameType.Value, "3")] + Vulkan = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelVulkanKHR")] + [NativeName(NativeNameType.Value, "3")] + VulkanKhr = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvMemoryModelMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvExecutionMode_")] + public enum SpvExecutionMode + { + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInvocations")] + [NativeName(NativeNameType.Value, "0")] + Invocations = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSpacingEqual")] + [NativeName(NativeNameType.Value, "1")] + SpacingEqual = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSpacingFractionalEven")] + [NativeName(NativeNameType.Value, "2")] + SpacingFractionalEven = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSpacingFractionalOdd")] + [NativeName(NativeNameType.Value, "3")] + SpacingFractionalOdd = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeVertexOrderCw")] + [NativeName(NativeNameType.Value, "4")] + VertexOrderCw = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeVertexOrderCcw")] + [NativeName(NativeNameType.Value, "5")] + VertexOrderCcw = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModePixelCenterInteger")] + [NativeName(NativeNameType.Value, "6")] + PixelCenterInteger = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOriginUpperLeft")] + [NativeName(NativeNameType.Value, "7")] + OriginUpperLeft = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOriginLowerLeft")] + [NativeName(NativeNameType.Value, "8")] + OriginLowerLeft = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeEarlyFragmentTests")] + [NativeName(NativeNameType.Value, "9")] + EarlyFragmentTests = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModePointMode")] + [NativeName(NativeNameType.Value, "10")] + PointMode = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeXfb")] + [NativeName(NativeNameType.Value, "11")] + Xfb = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthReplacing")] + [NativeName(NativeNameType.Value, "12")] + DepthReplacing = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthGreater")] + [NativeName(NativeNameType.Value, "14")] + DepthGreater = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthLess")] + [NativeName(NativeNameType.Value, "15")] + DepthLess = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDepthUnchanged")] + [NativeName(NativeNameType.Value, "16")] + DepthUnchanged = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSize")] + [NativeName(NativeNameType.Value, "17")] + LocalSize = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSizeHint")] + [NativeName(NativeNameType.Value, "18")] + LocalSizeHint = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputPoints")] + [NativeName(NativeNameType.Value, "19")] + InputPoints = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputLines")] + [NativeName(NativeNameType.Value, "20")] + InputLines = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputLinesAdjacency")] + [NativeName(NativeNameType.Value, "21")] + InputLinesAdjacency = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeTriangles")] + [NativeName(NativeNameType.Value, "22")] + Triangles = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInputTrianglesAdjacency")] + [NativeName(NativeNameType.Value, "23")] + InputTrianglesAdjacency = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeQuads")] + [NativeName(NativeNameType.Value, "24")] + Quads = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeIsolines")] + [NativeName(NativeNameType.Value, "25")] + Isolines = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputVertices")] + [NativeName(NativeNameType.Value, "26")] + OutputVertices = unchecked(26), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputPoints")] + [NativeName(NativeNameType.Value, "27")] + OutputPoints = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputLineStrip")] + [NativeName(NativeNameType.Value, "28")] + OutputLineStrip = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputTriangleStrip")] + [NativeName(NativeNameType.Value, "29")] + OutputTriangleStrip = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeVecTypeHint")] + [NativeName(NativeNameType.Value, "30")] + VecTypeHint = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeContractionOff")] + [NativeName(NativeNameType.Value, "31")] + ContractionOff = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeInitializer")] + [NativeName(NativeNameType.Value, "33")] + Initializer = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeFinalizer")] + [NativeName(NativeNameType.Value, "34")] + Finalizer = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupSize")] + [NativeName(NativeNameType.Value, "35")] + SubgroupSize = unchecked(35), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupsPerWorkgroup")] + [NativeName(NativeNameType.Value, "36")] + SubgroupsPerWorkgroup = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupsPerWorkgroupId")] + [NativeName(NativeNameType.Value, "37")] + SubgroupsPerWorkgroupId = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSizeId")] + [NativeName(NativeNameType.Value, "38")] + LocalSizeId = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeLocalSizeHintId")] + [NativeName(NativeNameType.Value, "39")] + LocalSizeHintId = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNonCoherentColorAttachmentReadEXT")] + [NativeName(NativeNameType.Value, "4169")] + NonCoherentColorAttachmentReadExt = unchecked(4169), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNonCoherentDepthAttachmentReadEXT")] + [NativeName(NativeNameType.Value, "4170")] + NonCoherentDepthAttachmentReadExt = unchecked(4170), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNonCoherentStencilAttachmentReadEXT")] + [NativeName(NativeNameType.Value, "4171")] + NonCoherentStencilAttachmentReadExt = unchecked(4171), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSubgroupUniformControlFlowKHR")] + [NativeName(NativeNameType.Value, "4421")] + SubgroupUniformControlFlowKhr = unchecked(4421), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModePostDepthCoverage")] + [NativeName(NativeNameType.Value, "4446")] + PostDepthCoverage = unchecked(4446), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDenormPreserve")] + [NativeName(NativeNameType.Value, "4459")] + DenormPreserve = unchecked(4459), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDenormFlushToZero")] + [NativeName(NativeNameType.Value, "4460")] + DenormFlushToZero = unchecked(4460), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSignedZeroInfNanPreserve")] + [NativeName(NativeNameType.Value, "4461")] + SignedZeroInfNanPreserve = unchecked(4461), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTE")] + [NativeName(NativeNameType.Value, "4462")] + RoundingModeRte = unchecked(4462), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTZ")] + [NativeName(NativeNameType.Value, "4463")] + RoundingModeRtz = unchecked(4463), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeEarlyAndLateFragmentTestsAMD")] + [NativeName(NativeNameType.Value, "5017")] + EarlyAndLateFragmentTestsAmd = unchecked(5017), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefReplacingEXT")] + [NativeName(NativeNameType.Value, "5027")] + StencilRefReplacingExt = unchecked(5027), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefUnchangedFrontAMD")] + [NativeName(NativeNameType.Value, "5079")] + StencilRefUnchangedFrontAmd = unchecked(5079), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefGreaterFrontAMD")] + [NativeName(NativeNameType.Value, "5080")] + StencilRefGreaterFrontAmd = unchecked(5080), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefLessFrontAMD")] + [NativeName(NativeNameType.Value, "5081")] + StencilRefLessFrontAmd = unchecked(5081), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefUnchangedBackAMD")] + [NativeName(NativeNameType.Value, "5082")] + StencilRefUnchangedBackAmd = unchecked(5082), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefGreaterBackAMD")] + [NativeName(NativeNameType.Value, "5083")] + StencilRefGreaterBackAmd = unchecked(5083), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStencilRefLessBackAMD")] + [NativeName(NativeNameType.Value, "5084")] + StencilRefLessBackAmd = unchecked(5084), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputLinesEXT")] + [NativeName(NativeNameType.Value, "5269")] + OutputLinesExt = unchecked(5269), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputLinesNV")] + [NativeName(NativeNameType.Value, "5269")] + OutputLinesNv = unchecked(5269), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputPrimitivesEXT")] + [NativeName(NativeNameType.Value, "5270")] + OutputPrimitivesExt = unchecked(5270), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputPrimitivesNV")] + [NativeName(NativeNameType.Value, "5270")] + OutputPrimitivesNv = unchecked(5270), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDerivativeGroupQuadsNV")] + [NativeName(NativeNameType.Value, "5289")] + DerivativeGroupQuadsNv = unchecked(5289), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeDerivativeGroupLinearNV")] + [NativeName(NativeNameType.Value, "5290")] + DerivativeGroupLinearNv = unchecked(5290), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputTrianglesEXT")] + [NativeName(NativeNameType.Value, "5298")] + OutputTrianglesExt = unchecked(5298), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeOutputTrianglesNV")] + [NativeName(NativeNameType.Value, "5298")] + OutputTrianglesNv = unchecked(5298), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModePixelInterlockOrderedEXT")] + [NativeName(NativeNameType.Value, "5366")] + PixelInterlockOrderedExt = unchecked(5366), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModePixelInterlockUnorderedEXT")] + [NativeName(NativeNameType.Value, "5367")] + PixelInterlockUnorderedExt = unchecked(5367), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSampleInterlockOrderedEXT")] + [NativeName(NativeNameType.Value, "5368")] + SampleInterlockOrderedExt = unchecked(5368), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSampleInterlockUnorderedEXT")] + [NativeName(NativeNameType.Value, "5369")] + SampleInterlockUnorderedExt = unchecked(5369), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeShadingRateInterlockOrderedEXT")] + [NativeName(NativeNameType.Value, "5370")] + ShadingRateInterlockOrderedExt = unchecked(5370), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeShadingRateInterlockUnorderedEXT")] + [NativeName(NativeNameType.Value, "5371")] + ShadingRateInterlockUnorderedExt = unchecked(5371), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSharedLocalMemorySizeINTEL")] + [NativeName(NativeNameType.Value, "5618")] + SharedLocalMemorySizeIntel = unchecked(5618), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTPINTEL")] + [NativeName(NativeNameType.Value, "5620")] + RoundingModeRtpintel = unchecked(5620), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRoundingModeRTNINTEL")] + [NativeName(NativeNameType.Value, "5621")] + RoundingModeRtnintel = unchecked(5621), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeFloatingPointModeALTINTEL")] + [NativeName(NativeNameType.Value, "5622")] + FloatingPointModeAltintel = unchecked(5622), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeFloatingPointModeIEEEINTEL")] + [NativeName(NativeNameType.Value, "5623")] + FloatingPointModeIeeeintel = unchecked(5623), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeMaxWorkgroupSizeINTEL")] + [NativeName(NativeNameType.Value, "5893")] + MaxWorkgroupSizeIntel = unchecked(5893), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeMaxWorkDimINTEL")] + [NativeName(NativeNameType.Value, "5894")] + MaxWorkDimIntel = unchecked(5894), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNoGlobalOffsetINTEL")] + [NativeName(NativeNameType.Value, "5895")] + NoGlobalOffsetIntel = unchecked(5895), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNumSIMDWorkitemsINTEL")] + [NativeName(NativeNameType.Value, "5896")] + NumSimdWorkitemsIntel = unchecked(5896), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeSchedulerTargetFmaxMhzINTEL")] + [NativeName(NativeNameType.Value, "5903")] + SchedulerTargetFmaxMhzIntel = unchecked(5903), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeStreamingInterfaceINTEL")] + [NativeName(NativeNameType.Value, "6154")] + StreamingInterfaceIntel = unchecked(6154), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeRegisterMapInterfaceINTEL")] + [NativeName(NativeNameType.Value, "6160")] + RegisterMapInterfaceIntel = unchecked(6160), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeNamedBarrierCountINTEL")] + [NativeName(NativeNameType.Value, "6417")] + NamedBarrierCountIntel = unchecked(6417), + [NativeName(NativeNameType.EnumItem, "SpvExecutionModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvStorageClass_")] + public enum SpvStorageClass + { + [NativeName(NativeNameType.EnumItem, "SpvStorageClassUniformConstant")] + [NativeName(NativeNameType.Value, "0")] + UniformConstant = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassInput")] + [NativeName(NativeNameType.Value, "1")] + Input = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassUniform")] + [NativeName(NativeNameType.Value, "2")] + Uniform = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassOutput")] + [NativeName(NativeNameType.Value, "3")] + Output = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassWorkgroup")] + [NativeName(NativeNameType.Value, "4")] + Workgroup = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassCrossWorkgroup")] + [NativeName(NativeNameType.Value, "5")] + CrossWorkgroup = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassPrivate")] + [NativeName(NativeNameType.Value, "6")] + Private = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassFunction")] + [NativeName(NativeNameType.Value, "7")] + Function = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassGeneric")] + [NativeName(NativeNameType.Value, "8")] + Generic = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassPushConstant")] + [NativeName(NativeNameType.Value, "9")] + PushConstant = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassAtomicCounter")] + [NativeName(NativeNameType.Value, "10")] + AtomicCounter = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassImage")] + [NativeName(NativeNameType.Value, "11")] + Image = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassStorageBuffer")] + [NativeName(NativeNameType.Value, "12")] + Buffer = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassTileImageEXT")] + [NativeName(NativeNameType.Value, "4172")] + TileImageExt = unchecked(4172), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassCallableDataKHR")] + [NativeName(NativeNameType.Value, "5328")] + CallableDataKhr = unchecked(5328), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassCallableDataNV")] + [NativeName(NativeNameType.Value, "5328")] + CallableDataNv = unchecked(5328), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingCallableDataKHR")] + [NativeName(NativeNameType.Value, "5329")] + IncomingCallableDataKhr = unchecked(5329), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingCallableDataNV")] + [NativeName(NativeNameType.Value, "5329")] + IncomingCallableDataNv = unchecked(5329), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassRayPayloadKHR")] + [NativeName(NativeNameType.Value, "5338")] + RayPayloadKhr = unchecked(5338), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassRayPayloadNV")] + [NativeName(NativeNameType.Value, "5338")] + RayPayloadNv = unchecked(5338), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassHitAttributeKHR")] + [NativeName(NativeNameType.Value, "5339")] + HitAttributeKhr = unchecked(5339), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassHitAttributeNV")] + [NativeName(NativeNameType.Value, "5339")] + HitAttributeNv = unchecked(5339), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingRayPayloadKHR")] + [NativeName(NativeNameType.Value, "5342")] + IncomingRayPayloadKhr = unchecked(5342), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassIncomingRayPayloadNV")] + [NativeName(NativeNameType.Value, "5342")] + IncomingRayPayloadNv = unchecked(5342), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassShaderRecordBufferKHR")] + [NativeName(NativeNameType.Value, "5343")] + ShaderRecordBufferKhr = unchecked(5343), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassShaderRecordBufferNV")] + [NativeName(NativeNameType.Value, "5343")] + ShaderRecordBufferNv = unchecked(5343), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassPhysicalStorageBuffer")] + [NativeName(NativeNameType.Value, "5349")] + PhysicalStorageBuffer = unchecked(5349), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassPhysicalStorageBufferEXT")] + [NativeName(NativeNameType.Value, "5349")] + PhysicalStorageBufferExt = unchecked(5349), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassHitObjectAttributeNV")] + [NativeName(NativeNameType.Value, "5385")] + HitObjectAttributeNv = unchecked(5385), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassTaskPayloadWorkgroupEXT")] + [NativeName(NativeNameType.Value, "5402")] + TaskPayloadWorkgroupExt = unchecked(5402), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassCodeSectionINTEL")] + [NativeName(NativeNameType.Value, "5605")] + CodeSectionIntel = unchecked(5605), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassDeviceOnlyINTEL")] + [NativeName(NativeNameType.Value, "5936")] + DeviceOnlyIntel = unchecked(5936), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassHostOnlyINTEL")] + [NativeName(NativeNameType.Value, "5937")] + HostOnlyIntel = unchecked(5937), + [NativeName(NativeNameType.EnumItem, "SpvStorageClassMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvDim_")] + public enum SpvDim + { + [NativeName(NativeNameType.EnumItem, "SpvDim1D")] + [NativeName(NativeNameType.Value, "0")] + Dim1D = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvDim2D")] + [NativeName(NativeNameType.Value, "1")] + Dim2D = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvDim3D")] + [NativeName(NativeNameType.Value, "2")] + Dim3D = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvDimCube")] + [NativeName(NativeNameType.Value, "3")] + Cube = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvDimRect")] + [NativeName(NativeNameType.Value, "4")] + Rect = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvDimBuffer")] + [NativeName(NativeNameType.Value, "5")] + Buffer = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvDimSubpassData")] + [NativeName(NativeNameType.Value, "6")] + SubpassData = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvDimTileImageDataEXT")] + [NativeName(NativeNameType.Value, "4173")] + TileImageDataExt = unchecked(4173), + [NativeName(NativeNameType.EnumItem, "SpvDimMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvSamplerAddressingMode_")] + public enum SpvSamplerAddressingMode + { + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeClampToEdge")] + [NativeName(NativeNameType.Value, "1")] + ClampToEdge = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeClamp")] + [NativeName(NativeNameType.Value, "2")] + Clamp = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeRepeat")] + [NativeName(NativeNameType.Value, "3")] + Repeat = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeRepeatMirrored")] + [NativeName(NativeNameType.Value, "4")] + RepeatMirrored = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvSamplerAddressingModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvSamplerFilterMode_")] + public enum SpvSamplerFilterMode + { + [NativeName(NativeNameType.EnumItem, "SpvSamplerFilterModeNearest")] + [NativeName(NativeNameType.Value, "0")] + Nearest = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvSamplerFilterModeLinear")] + [NativeName(NativeNameType.Value, "1")] + Linear = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvSamplerFilterModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvImageFormat_")] + public enum SpvImageFormat + { + [NativeName(NativeNameType.EnumItem, "SpvImageFormatUnknown")] + [NativeName(NativeNameType.Value, "0")] + Unknown = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba32f")] + [NativeName(NativeNameType.Value, "1")] + Rgba32f = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16f")] + [NativeName(NativeNameType.Value, "2")] + Rgba16f = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR32f")] + [NativeName(NativeNameType.Value, "3")] + Formatr32f = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8")] + [NativeName(NativeNameType.Value, "4")] + Rgba8 = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8Snorm")] + [NativeName(NativeNameType.Value, "5")] + Rgba8Snorm = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg32f")] + [NativeName(NativeNameType.Value, "6")] + Rg32f = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16f")] + [NativeName(NativeNameType.Value, "7")] + Rg16f = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR11fG11fB10f")] + [NativeName(NativeNameType.Value, "8")] + Formatr11fg11fb10f = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16f")] + [NativeName(NativeNameType.Value, "9")] + Formatr16f = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16")] + [NativeName(NativeNameType.Value, "10")] + Rgba16 = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgb10A2")] + [NativeName(NativeNameType.Value, "11")] + Rgb10a2 = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16")] + [NativeName(NativeNameType.Value, "12")] + Rg16 = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8")] + [NativeName(NativeNameType.Value, "13")] + Rg8 = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16")] + [NativeName(NativeNameType.Value, "14")] + Formatr16 = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8")] + [NativeName(NativeNameType.Value, "15")] + Formatr8 = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16Snorm")] + [NativeName(NativeNameType.Value, "16")] + Rgba16Snorm = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16Snorm")] + [NativeName(NativeNameType.Value, "17")] + Rg16Snorm = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8Snorm")] + [NativeName(NativeNameType.Value, "18")] + Rg8Snorm = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16Snorm")] + [NativeName(NativeNameType.Value, "19")] + Formatr16Snorm = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8Snorm")] + [NativeName(NativeNameType.Value, "20")] + Formatr8Snorm = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba32i")] + [NativeName(NativeNameType.Value, "21")] + Rgba32i = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16i")] + [NativeName(NativeNameType.Value, "22")] + Rgba16i = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8i")] + [NativeName(NativeNameType.Value, "23")] + Rgba8I = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR32i")] + [NativeName(NativeNameType.Value, "24")] + Formatr32i = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg32i")] + [NativeName(NativeNameType.Value, "25")] + Rg32i = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16i")] + [NativeName(NativeNameType.Value, "26")] + Rg16i = unchecked(26), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8i")] + [NativeName(NativeNameType.Value, "27")] + Rg8I = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16i")] + [NativeName(NativeNameType.Value, "28")] + Formatr16i = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8i")] + [NativeName(NativeNameType.Value, "29")] + Formatr8I = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba32ui")] + [NativeName(NativeNameType.Value, "30")] + Rgba32Ui = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba16ui")] + [NativeName(NativeNameType.Value, "31")] + Rgba16Ui = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgba8ui")] + [NativeName(NativeNameType.Value, "32")] + Rgba8Ui = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR32ui")] + [NativeName(NativeNameType.Value, "33")] + Formatr32Ui = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRgb10a2ui")] + [NativeName(NativeNameType.Value, "34")] + Rgb10a2Ui = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg32ui")] + [NativeName(NativeNameType.Value, "35")] + Rg32Ui = unchecked(35), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg16ui")] + [NativeName(NativeNameType.Value, "36")] + Rg16Ui = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatRg8ui")] + [NativeName(NativeNameType.Value, "37")] + Rg8Ui = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR16ui")] + [NativeName(NativeNameType.Value, "38")] + Formatr16Ui = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR8ui")] + [NativeName(NativeNameType.Value, "39")] + Formatr8Ui = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR64ui")] + [NativeName(NativeNameType.Value, "40")] + Formatr64Ui = unchecked(40), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatR64i")] + [NativeName(NativeNameType.Value, "41")] + Formatr64i = unchecked(41), + [NativeName(NativeNameType.EnumItem, "SpvImageFormatMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvImageChannelOrder_")] + public enum SpvImageChannelOrder + { + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderR")] + [NativeName(NativeNameType.Value, "0")] + Orderr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderA")] + [NativeName(NativeNameType.Value, "1")] + Ordera = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRG")] + [NativeName(NativeNameType.Value, "2")] + Rg = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRA")] + [NativeName(NativeNameType.Value, "3")] + Ra = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGB")] + [NativeName(NativeNameType.Value, "4")] + Rgb = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGBA")] + [NativeName(NativeNameType.Value, "5")] + Rgba = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderBGRA")] + [NativeName(NativeNameType.Value, "6")] + Bgra = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderARGB")] + [NativeName(NativeNameType.Value, "7")] + Argb = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderIntensity")] + [NativeName(NativeNameType.Value, "8")] + Intensity = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderLuminance")] + [NativeName(NativeNameType.Value, "9")] + Luminance = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRx")] + [NativeName(NativeNameType.Value, "10")] + Rx = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGx")] + [NativeName(NativeNameType.Value, "11")] + OrderrGx = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderRGBx")] + [NativeName(NativeNameType.Value, "12")] + RgBx = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderDepth")] + [NativeName(NativeNameType.Value, "13")] + Depth = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderDepthStencil")] + [NativeName(NativeNameType.Value, "14")] + DepthStencil = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersRGB")] + [NativeName(NativeNameType.Value, "15")] + OrdersRgb = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersRGBx")] + [NativeName(NativeNameType.Value, "16")] + OrdersRgBx = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersRGBA")] + [NativeName(NativeNameType.Value, "17")] + OrdersRgba = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrdersBGRA")] + [NativeName(NativeNameType.Value, "18")] + OrdersBgra = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderABGR")] + [NativeName(NativeNameType.Value, "19")] + Abgr = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelOrderMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvImageChannelDataType_")] + public enum SpvImageChannelDataType + { + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSnormInt8")] + [NativeName(NativeNameType.Value, "0")] + SnormInt8 = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSnormInt16")] + [NativeName(NativeNameType.Value, "1")] + SnormInt16 = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt8")] + [NativeName(NativeNameType.Value, "2")] + UnormInt8 = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt16")] + [NativeName(NativeNameType.Value, "3")] + UnormInt16 = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormShort565")] + [NativeName(NativeNameType.Value, "4")] + UnormShort565 = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormShort555")] + [NativeName(NativeNameType.Value, "5")] + UnormShort555 = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt101010")] + [NativeName(NativeNameType.Value, "6")] + UnormInt101010 = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSignedInt8")] + [NativeName(NativeNameType.Value, "7")] + SignedInt8 = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSignedInt16")] + [NativeName(NativeNameType.Value, "8")] + SignedInt16 = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeSignedInt32")] + [NativeName(NativeNameType.Value, "9")] + SignedInt32 = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnsignedInt8")] + [NativeName(NativeNameType.Value, "10")] + UnsignedInt8 = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnsignedInt16")] + [NativeName(NativeNameType.Value, "11")] + UnsignedInt16 = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnsignedInt32")] + [NativeName(NativeNameType.Value, "12")] + UnsignedInt32 = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeHalfFloat")] + [NativeName(NativeNameType.Value, "13")] + HalfFloat = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeFloat")] + [NativeName(NativeNameType.Value, "14")] + Float = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt24")] + [NativeName(NativeNameType.Value, "15")] + UnormInt24 = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnormInt101010_2")] + [NativeName(NativeNameType.Value, "16")] + UnormInt1010102 = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnsignedIntRaw10EXT")] + [NativeName(NativeNameType.Value, "19")] + UnsignedIntRaw10Ext = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeUnsignedIntRaw12EXT")] + [NativeName(NativeNameType.Value, "20")] + UnsignedIntRaw12Ext = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvImageChannelDataTypeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvImageOperandsShift_")] + public enum SpvImageOperandsShift + { + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsBiasShift")] + [NativeName(NativeNameType.Value, "0")] + BiasShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsLodShift")] + [NativeName(NativeNameType.Value, "1")] + LodShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsGradShift")] + [NativeName(NativeNameType.Value, "2")] + GradShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetShift")] + [NativeName(NativeNameType.Value, "3")] + ConstOffsetShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetShift")] + [NativeName(NativeNameType.Value, "4")] + OffsetShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetsShift")] + [NativeName(NativeNameType.Value, "5")] + ConstOffsetsShift = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSampleShift")] + [NativeName(NativeNameType.Value, "6")] + SampleShift = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMinLodShift")] + [NativeName(NativeNameType.Value, "7")] + MinLodShift = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableShift")] + [NativeName(NativeNameType.Value, "8")] + MakeTexelAvailableShift = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableKHRShift")] + [NativeName(NativeNameType.Value, "8")] + MakeTexelAvailableKhrShift = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleShift")] + [NativeName(NativeNameType.Value, "9")] + MakeTexelVisibleShift = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleKHRShift")] + [NativeName(NativeNameType.Value, "9")] + MakeTexelVisibleKhrShift = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelShift")] + [NativeName(NativeNameType.Value, "10")] + NonPrivateTexelShift = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelKHRShift")] + [NativeName(NativeNameType.Value, "10")] + NonPrivateTexelKhrShift = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelShift")] + [NativeName(NativeNameType.Value, "11")] + VolatileTexelShift = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelKHRShift")] + [NativeName(NativeNameType.Value, "11")] + VolatileTexelKhrShift = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSignExtendShift")] + [NativeName(NativeNameType.Value, "12")] + SignExtendShift = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsZeroExtendShift")] + [NativeName(NativeNameType.Value, "13")] + ZeroExtendShift = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNontemporalShift")] + [NativeName(NativeNameType.Value, "14")] + NontemporalShift = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetsShift")] + [NativeName(NativeNameType.Value, "16")] + OffsetsShift = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvImageOperandsMask_")] + public enum SpvImageOperandsMask + { + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsBiasMask")] + [NativeName(NativeNameType.Value, "1")] + BiasMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsLodMask")] + [NativeName(NativeNameType.Value, "2")] + LodMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsGradMask")] + [NativeName(NativeNameType.Value, "4")] + GradMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetMask")] + [NativeName(NativeNameType.Value, "8")] + ConstOffsetMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetMask")] + [NativeName(NativeNameType.Value, "16")] + OffsetMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsConstOffsetsMask")] + [NativeName(NativeNameType.Value, "32")] + ConstOffsetsMask = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSampleMask")] + [NativeName(NativeNameType.Value, "64")] + SampleMask = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMinLodMask")] + [NativeName(NativeNameType.Value, "128")] + MinLodMask = unchecked(128), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableMask")] + [NativeName(NativeNameType.Value, "256")] + MakeTexelAvailableMask = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelAvailableKHRMask")] + [NativeName(NativeNameType.Value, "256")] + MakeTexelAvailableKhrMask = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleMask")] + [NativeName(NativeNameType.Value, "512")] + MakeTexelVisibleMask = unchecked(512), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsMakeTexelVisibleKHRMask")] + [NativeName(NativeNameType.Value, "512")] + MakeTexelVisibleKhrMask = unchecked(512), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelMask")] + [NativeName(NativeNameType.Value, "1024")] + NonPrivateTexelMask = unchecked(1024), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNonPrivateTexelKHRMask")] + [NativeName(NativeNameType.Value, "1024")] + NonPrivateTexelKhrMask = unchecked(1024), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelMask")] + [NativeName(NativeNameType.Value, "2048")] + VolatileTexelMask = unchecked(2048), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsVolatileTexelKHRMask")] + [NativeName(NativeNameType.Value, "2048")] + VolatileTexelKhrMask = unchecked(2048), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsSignExtendMask")] + [NativeName(NativeNameType.Value, "4096")] + SignExtendMask = unchecked(4096), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsZeroExtendMask")] + [NativeName(NativeNameType.Value, "8192")] + ZeroExtendMask = unchecked(8192), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsNontemporalMask")] + [NativeName(NativeNameType.Value, "16384")] + NontemporalMask = unchecked(16384), + [NativeName(NativeNameType.EnumItem, "SpvImageOperandsOffsetsMask")] + [NativeName(NativeNameType.Value, "65536")] + OffsetsMask = unchecked(65536), + } + + [NativeName(NativeNameType.Enum, "SpvFPFastMathModeShift_")] + public enum SpvFPFastMathModeShift + { + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotNaNShift")] + [NativeName(NativeNameType.Value, "0")] + NotNanShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotInfShift")] + [NativeName(NativeNameType.Value, "1")] + NotInfShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNSZShift")] + [NativeName(NativeNameType.Value, "2")] + NszShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowRecipShift")] + [NativeName(NativeNameType.Value, "3")] + AllowRecipShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeFastShift")] + [NativeName(NativeNameType.Value, "4")] + Shift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowContractFastINTELShift")] + [NativeName(NativeNameType.Value, "16")] + AllowContractFastIntelShift = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowReassocINTELShift")] + [NativeName(NativeNameType.Value, "17")] + AllowReassocIntelShift = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFPFastMathModeMask_")] + public enum SpvFPFastMathModeMask + { + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotNaNMask")] + [NativeName(NativeNameType.Value, "1")] + NotNanMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNotInfMask")] + [NativeName(NativeNameType.Value, "2")] + NotInfMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeNSZMask")] + [NativeName(NativeNameType.Value, "4")] + NszMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowRecipMask")] + [NativeName(NativeNameType.Value, "8")] + AllowRecipMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeFastMask")] + [NativeName(NativeNameType.Value, "16")] + Mask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowContractFastINTELMask")] + [NativeName(NativeNameType.Value, "65536")] + AllowContractFastIntelMask = unchecked(65536), + [NativeName(NativeNameType.EnumItem, "SpvFPFastMathModeAllowReassocINTELMask")] + [NativeName(NativeNameType.Value, "131072")] + AllowReassocIntelMask = unchecked(131072), + } + + [NativeName(NativeNameType.Enum, "SpvFPRoundingMode_")] + public enum SpvFPRoundingMode + { + [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTE")] + [NativeName(NativeNameType.Value, "0")] + Rte = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTZ")] + [NativeName(NativeNameType.Value, "1")] + Rtz = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTP")] + [NativeName(NativeNameType.Value, "2")] + Rtp = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeRTN")] + [NativeName(NativeNameType.Value, "3")] + Rtn = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvFPRoundingModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvLinkageType_")] + public enum SpvLinkageType + { + [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeExport")] + [NativeName(NativeNameType.Value, "0")] + Export = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeImport")] + [NativeName(NativeNameType.Value, "1")] + Import = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeLinkOnceODR")] + [NativeName(NativeNameType.Value, "2")] + LinkOnceOdr = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvLinkageTypeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvAccessQualifier_")] + public enum SpvAccessQualifier + { + [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierReadOnly")] + [NativeName(NativeNameType.Value, "0")] + ReadOnly = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierWriteOnly")] + [NativeName(NativeNameType.Value, "1")] + WriteOnly = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierReadWrite")] + [NativeName(NativeNameType.Value, "2")] + ReadWrite = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvAccessQualifierMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFunctionParameterAttribute_")] + public enum SpvFunctionParameterAttribute + { + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeZext")] + [NativeName(NativeNameType.Value, "0")] + Zext = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeSext")] + [NativeName(NativeNameType.Value, "1")] + Sext = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeByVal")] + [NativeName(NativeNameType.Value, "2")] + ByVal = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeSret")] + [NativeName(NativeNameType.Value, "3")] + Sret = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoAlias")] + [NativeName(NativeNameType.Value, "4")] + NoAlias = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoCapture")] + [NativeName(NativeNameType.Value, "5")] + NoCapture = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoWrite")] + [NativeName(NativeNameType.Value, "6")] + NoWrite = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeNoReadWrite")] + [NativeName(NativeNameType.Value, "7")] + NoReadWrite = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeRuntimeAlignedINTEL")] + [NativeName(NativeNameType.Value, "5940")] + RuntimeAlignedIntel = unchecked(5940), + [NativeName(NativeNameType.EnumItem, "SpvFunctionParameterAttributeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvDecoration_")] + public enum SpvDecoration + { + [NativeName(NativeNameType.EnumItem, "SpvDecorationRelaxedPrecision")] + [NativeName(NativeNameType.Value, "0")] + RelaxedPrecision = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSpecId")] + [NativeName(NativeNameType.Value, "1")] + SpecId = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBlock")] + [NativeName(NativeNameType.Value, "2")] + Block = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBufferBlock")] + [NativeName(NativeNameType.Value, "3")] + BufferBlock = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvDecorationRowMajor")] + [NativeName(NativeNameType.Value, "4")] + RowMajor = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvDecorationColMajor")] + [NativeName(NativeNameType.Value, "5")] + ColMajor = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvDecorationArrayStride")] + [NativeName(NativeNameType.Value, "6")] + ArrayStride = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMatrixStride")] + [NativeName(NativeNameType.Value, "7")] + MatrixStride = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvDecorationGLSLShared")] + [NativeName(NativeNameType.Value, "8")] + GlslShared = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvDecorationGLSLPacked")] + [NativeName(NativeNameType.Value, "9")] + GlslPacked = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvDecorationCPacked")] + [NativeName(NativeNameType.Value, "10")] + DecorationcPacked = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBuiltIn")] + [NativeName(NativeNameType.Value, "11")] + BuiltIn = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNoPerspective")] + [NativeName(NativeNameType.Value, "13")] + NoPerspective = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFlat")] + [NativeName(NativeNameType.Value, "14")] + Flat = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPatch")] + [NativeName(NativeNameType.Value, "15")] + Patch = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvDecorationCentroid")] + [NativeName(NativeNameType.Value, "16")] + Centroid = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSample")] + [NativeName(NativeNameType.Value, "17")] + Sample = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvDecorationInvariant")] + [NativeName(NativeNameType.Value, "18")] + Invariant = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvDecorationRestrict")] + [NativeName(NativeNameType.Value, "19")] + Restrict = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAliased")] + [NativeName(NativeNameType.Value, "20")] + Aliased = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvDecorationVolatile")] + [NativeName(NativeNameType.Value, "21")] + Volatile = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvDecorationConstant")] + [NativeName(NativeNameType.Value, "22")] + Constant = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvDecorationCoherent")] + [NativeName(NativeNameType.Value, "23")] + Coherent = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNonWritable")] + [NativeName(NativeNameType.Value, "24")] + NonWritable = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNonReadable")] + [NativeName(NativeNameType.Value, "25")] + NonReadable = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvDecorationUniform")] + [NativeName(NativeNameType.Value, "26")] + Uniform = unchecked(26), + [NativeName(NativeNameType.EnumItem, "SpvDecorationUniformId")] + [NativeName(NativeNameType.Value, "27")] + UniformId = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSaturatedConversion")] + [NativeName(NativeNameType.Value, "28")] + SaturatedConversion = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvDecorationStream")] + [NativeName(NativeNameType.Value, "29")] + Stream = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvDecorationLocation")] + [NativeName(NativeNameType.Value, "30")] + Location = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvDecorationComponent")] + [NativeName(NativeNameType.Value, "31")] + Component = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvDecorationIndex")] + [NativeName(NativeNameType.Value, "32")] + Index = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBinding")] + [NativeName(NativeNameType.Value, "33")] + Binding = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvDecorationDescriptorSet")] + [NativeName(NativeNameType.Value, "34")] + DescriptorSet = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvDecorationOffset")] + [NativeName(NativeNameType.Value, "35")] + Offset = unchecked(35), + [NativeName(NativeNameType.EnumItem, "SpvDecorationXfbBuffer")] + [NativeName(NativeNameType.Value, "36")] + XfbBuffer = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvDecorationXfbStride")] + [NativeName(NativeNameType.Value, "37")] + XfbStride = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFuncParamAttr")] + [NativeName(NativeNameType.Value, "38")] + FuncParamAttr = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFPRoundingMode")] + [NativeName(NativeNameType.Value, "39")] + FpRoundingMode = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFPFastMathMode")] + [NativeName(NativeNameType.Value, "40")] + FpFastMathMode = unchecked(40), + [NativeName(NativeNameType.EnumItem, "SpvDecorationLinkageAttributes")] + [NativeName(NativeNameType.Value, "41")] + LinkageAttributes = unchecked(41), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNoContraction")] + [NativeName(NativeNameType.Value, "42")] + NoContraction = unchecked(42), + [NativeName(NativeNameType.EnumItem, "SpvDecorationInputAttachmentIndex")] + [NativeName(NativeNameType.Value, "43")] + InputAttachmentIndex = unchecked(43), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAlignment")] + [NativeName(NativeNameType.Value, "44")] + Alignment = unchecked(44), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxByteOffset")] + [NativeName(NativeNameType.Value, "45")] + MaxByteOffset = unchecked(45), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAlignmentId")] + [NativeName(NativeNameType.Value, "46")] + AlignmentId = unchecked(46), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxByteOffsetId")] + [NativeName(NativeNameType.Value, "47")] + MaxByteOffsetId = unchecked(47), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNoSignedWrap")] + [NativeName(NativeNameType.Value, "4469")] + NoSignedWrap = unchecked(4469), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNoUnsignedWrap")] + [NativeName(NativeNameType.Value, "4470")] + NoUnsignedWrap = unchecked(4470), + [NativeName(NativeNameType.EnumItem, "SpvDecorationWeightTextureQCOM")] + [NativeName(NativeNameType.Value, "4487")] + WeightTextureQcom = unchecked(4487), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBlockMatchTextureQCOM")] + [NativeName(NativeNameType.Value, "4488")] + BlockMatchTextureQcom = unchecked(4488), + [NativeName(NativeNameType.EnumItem, "SpvDecorationExplicitInterpAMD")] + [NativeName(NativeNameType.Value, "4999")] + ExplicitInterpAmd = unchecked(4999), + [NativeName(NativeNameType.EnumItem, "SpvDecorationOverrideCoverageNV")] + [NativeName(NativeNameType.Value, "5248")] + OverrideCoverageNv = unchecked(5248), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPassthroughNV")] + [NativeName(NativeNameType.Value, "5250")] + PassthroughNv = unchecked(5250), + [NativeName(NativeNameType.EnumItem, "SpvDecorationViewportRelativeNV")] + [NativeName(NativeNameType.Value, "5252")] + ViewportRelativeNv = unchecked(5252), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSecondaryViewportRelativeNV")] + [NativeName(NativeNameType.Value, "5256")] + SecondaryViewportRelativeNv = unchecked(5256), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerPrimitiveEXT")] + [NativeName(NativeNameType.Value, "5271")] + PerPrimitiveExt = unchecked(5271), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerPrimitiveNV")] + [NativeName(NativeNameType.Value, "5271")] + PerPrimitiveNv = unchecked(5271), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerViewNV")] + [NativeName(NativeNameType.Value, "5272")] + PerViewNv = unchecked(5272), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerTaskNV")] + [NativeName(NativeNameType.Value, "5273")] + PerTaskNv = unchecked(5273), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerVertexKHR")] + [NativeName(NativeNameType.Value, "5285")] + PerVertexKhr = unchecked(5285), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPerVertexNV")] + [NativeName(NativeNameType.Value, "5285")] + PerVertexNv = unchecked(5285), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNonUniform")] + [NativeName(NativeNameType.Value, "5300")] + NonUniform = unchecked(5300), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNonUniformEXT")] + [NativeName(NativeNameType.Value, "5300")] + NonUniformExt = unchecked(5300), + [NativeName(NativeNameType.EnumItem, "SpvDecorationRestrictPointer")] + [NativeName(NativeNameType.Value, "5355")] + RestrictPointer = unchecked(5355), + [NativeName(NativeNameType.EnumItem, "SpvDecorationRestrictPointerEXT")] + [NativeName(NativeNameType.Value, "5355")] + RestrictPointerExt = unchecked(5355), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAliasedPointer")] + [NativeName(NativeNameType.Value, "5356")] + AliasedPointer = unchecked(5356), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAliasedPointerEXT")] + [NativeName(NativeNameType.Value, "5356")] + AliasedPointerExt = unchecked(5356), + [NativeName(NativeNameType.EnumItem, "SpvDecorationHitObjectShaderRecordBufferNV")] + [NativeName(NativeNameType.Value, "5386")] + HitObjectShaderRecordBufferNv = unchecked(5386), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBindlessSamplerNV")] + [NativeName(NativeNameType.Value, "5398")] + BindlessSamplerNv = unchecked(5398), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBindlessImageNV")] + [NativeName(NativeNameType.Value, "5399")] + BindlessImageNv = unchecked(5399), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBoundSamplerNV")] + [NativeName(NativeNameType.Value, "5400")] + BoundSamplerNv = unchecked(5400), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBoundImageNV")] + [NativeName(NativeNameType.Value, "5401")] + BoundImageNv = unchecked(5401), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSIMTCallINTEL")] + [NativeName(NativeNameType.Value, "5599")] + SimtCallIntel = unchecked(5599), + [NativeName(NativeNameType.EnumItem, "SpvDecorationReferencedIndirectlyINTEL")] + [NativeName(NativeNameType.Value, "5602")] + ReferencedIndirectlyIntel = unchecked(5602), + [NativeName(NativeNameType.EnumItem, "SpvDecorationClobberINTEL")] + [NativeName(NativeNameType.Value, "5607")] + ClobberIntel = unchecked(5607), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSideEffectsINTEL")] + [NativeName(NativeNameType.Value, "5608")] + SideEffectsIntel = unchecked(5608), + [NativeName(NativeNameType.EnumItem, "SpvDecorationVectorComputeVariableINTEL")] + [NativeName(NativeNameType.Value, "5624")] + VectorComputeVariableIntel = unchecked(5624), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFuncParamIOKindINTEL")] + [NativeName(NativeNameType.Value, "5625")] + FuncParamIoKindIntel = unchecked(5625), + [NativeName(NativeNameType.EnumItem, "SpvDecorationVectorComputeFunctionINTEL")] + [NativeName(NativeNameType.Value, "5626")] + VectorComputeFunctionIntel = unchecked(5626), + [NativeName(NativeNameType.EnumItem, "SpvDecorationStackCallINTEL")] + [NativeName(NativeNameType.Value, "5627")] + StackCallIntel = unchecked(5627), + [NativeName(NativeNameType.EnumItem, "SpvDecorationGlobalVariableOffsetINTEL")] + [NativeName(NativeNameType.Value, "5628")] + GlobalVariableOffsetIntel = unchecked(5628), + [NativeName(NativeNameType.EnumItem, "SpvDecorationCounterBuffer")] + [NativeName(NativeNameType.Value, "5634")] + CounterBuffer = unchecked(5634), + [NativeName(NativeNameType.EnumItem, "SpvDecorationHlslCounterBufferGOOGLE")] + [NativeName(NativeNameType.Value, "5634")] + HlslCounterBufferGoogle = unchecked(5634), + [NativeName(NativeNameType.EnumItem, "SpvDecorationHlslSemanticGOOGLE")] + [NativeName(NativeNameType.Value, "5635")] + HlslSemanticGoogle = unchecked(5635), + [NativeName(NativeNameType.EnumItem, "SpvDecorationUserSemantic")] + [NativeName(NativeNameType.Value, "5635")] + UserSemantic = unchecked(5635), + [NativeName(NativeNameType.EnumItem, "SpvDecorationUserTypeGOOGLE")] + [NativeName(NativeNameType.Value, "5636")] + UserTypeGoogle = unchecked(5636), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFunctionRoundingModeINTEL")] + [NativeName(NativeNameType.Value, "5822")] + FunctionRoundingModeIntel = unchecked(5822), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFunctionDenormModeINTEL")] + [NativeName(NativeNameType.Value, "5823")] + FunctionDenormModeIntel = unchecked(5823), + [NativeName(NativeNameType.EnumItem, "SpvDecorationRegisterINTEL")] + [NativeName(NativeNameType.Value, "5825")] + RegisterIntel = unchecked(5825), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMemoryINTEL")] + [NativeName(NativeNameType.Value, "5826")] + MemoryIntel = unchecked(5826), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNumbanksINTEL")] + [NativeName(NativeNameType.Value, "5827")] + NumbanksIntel = unchecked(5827), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBankwidthINTEL")] + [NativeName(NativeNameType.Value, "5828")] + BankwidthIntel = unchecked(5828), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxPrivateCopiesINTEL")] + [NativeName(NativeNameType.Value, "5829")] + MaxPrivateCopiesIntel = unchecked(5829), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSinglepumpINTEL")] + [NativeName(NativeNameType.Value, "5830")] + SinglepumpIntel = unchecked(5830), + [NativeName(NativeNameType.EnumItem, "SpvDecorationDoublepumpINTEL")] + [NativeName(NativeNameType.Value, "5831")] + DoublepumpIntel = unchecked(5831), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxReplicatesINTEL")] + [NativeName(NativeNameType.Value, "5832")] + MaxReplicatesIntel = unchecked(5832), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSimpleDualPortINTEL")] + [NativeName(NativeNameType.Value, "5833")] + SimpleDualPortIntel = unchecked(5833), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMergeINTEL")] + [NativeName(NativeNameType.Value, "5834")] + MergeIntel = unchecked(5834), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBankBitsINTEL")] + [NativeName(NativeNameType.Value, "5835")] + BankBitsIntel = unchecked(5835), + [NativeName(NativeNameType.EnumItem, "SpvDecorationForcePow2DepthINTEL")] + [NativeName(NativeNameType.Value, "5836")] + ForcePow2DepthIntel = unchecked(5836), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBurstCoalesceINTEL")] + [NativeName(NativeNameType.Value, "5899")] + BurstCoalesceIntel = unchecked(5899), + [NativeName(NativeNameType.EnumItem, "SpvDecorationCacheSizeINTEL")] + [NativeName(NativeNameType.Value, "5900")] + CacheSizeIntel = unchecked(5900), + [NativeName(NativeNameType.EnumItem, "SpvDecorationDontStaticallyCoalesceINTEL")] + [NativeName(NativeNameType.Value, "5901")] + DontStaticallyCoalesceIntel = unchecked(5901), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPrefetchINTEL")] + [NativeName(NativeNameType.Value, "5902")] + PrefetchIntel = unchecked(5902), + [NativeName(NativeNameType.EnumItem, "SpvDecorationStallEnableINTEL")] + [NativeName(NativeNameType.Value, "5905")] + StallEnableIntel = unchecked(5905), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFuseLoopsInFunctionINTEL")] + [NativeName(NativeNameType.Value, "5907")] + FuseLoopsInFunctionIntel = unchecked(5907), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMathOpDSPModeINTEL")] + [NativeName(NativeNameType.Value, "5909")] + MathOpDspModeIntel = unchecked(5909), + [NativeName(NativeNameType.EnumItem, "SpvDecorationAliasScopeINTEL")] + [NativeName(NativeNameType.Value, "5914")] + AliasScopeIntel = unchecked(5914), + [NativeName(NativeNameType.EnumItem, "SpvDecorationNoAliasINTEL")] + [NativeName(NativeNameType.Value, "5915")] + NoAliasIntel = unchecked(5915), + [NativeName(NativeNameType.EnumItem, "SpvDecorationInitiationIntervalINTEL")] + [NativeName(NativeNameType.Value, "5917")] + InitiationIntervalIntel = unchecked(5917), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMaxConcurrencyINTEL")] + [NativeName(NativeNameType.Value, "5918")] + MaxConcurrencyIntel = unchecked(5918), + [NativeName(NativeNameType.EnumItem, "SpvDecorationPipelineEnableINTEL")] + [NativeName(NativeNameType.Value, "5919")] + PipelineEnableIntel = unchecked(5919), + [NativeName(NativeNameType.EnumItem, "SpvDecorationBufferLocationINTEL")] + [NativeName(NativeNameType.Value, "5921")] + BufferLocationIntel = unchecked(5921), + [NativeName(NativeNameType.EnumItem, "SpvDecorationIOPipeStorageINTEL")] + [NativeName(NativeNameType.Value, "5944")] + IoPipeStorageIntel = unchecked(5944), + [NativeName(NativeNameType.EnumItem, "SpvDecorationFunctionFloatingPointModeINTEL")] + [NativeName(NativeNameType.Value, "6080")] + FunctionFloatingPointModeIntel = unchecked(6080), + [NativeName(NativeNameType.EnumItem, "SpvDecorationSingleElementVectorINTEL")] + [NativeName(NativeNameType.Value, "6085")] + SingleElementVectorIntel = unchecked(6085), + [NativeName(NativeNameType.EnumItem, "SpvDecorationVectorComputeCallableFunctionINTEL")] + [NativeName(NativeNameType.Value, "6087")] + VectorComputeCallableFunctionIntel = unchecked(6087), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMediaBlockIOINTEL")] + [NativeName(NativeNameType.Value, "6140")] + MediaBlockIointel = unchecked(6140), + [NativeName(NativeNameType.EnumItem, "SpvDecorationLatencyControlLabelINTEL")] + [NativeName(NativeNameType.Value, "6172")] + LatencyControlLabelIntel = unchecked(6172), + [NativeName(NativeNameType.EnumItem, "SpvDecorationLatencyControlConstraintINTEL")] + [NativeName(NativeNameType.Value, "6173")] + LatencyControlConstraintIntel = unchecked(6173), + [NativeName(NativeNameType.EnumItem, "SpvDecorationConduitKernelArgumentINTEL")] + [NativeName(NativeNameType.Value, "6175")] + ConduitKernelArgumentIntel = unchecked(6175), + [NativeName(NativeNameType.EnumItem, "SpvDecorationRegisterMapKernelArgumentINTEL")] + [NativeName(NativeNameType.Value, "6176")] + RegisterMapKernelArgumentIntel = unchecked(6176), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMMHostInterfaceAddressWidthINTEL")] + [NativeName(NativeNameType.Value, "6177")] + MmHostInterfaceAddressWidthIntel = unchecked(6177), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMMHostInterfaceDataWidthINTEL")] + [NativeName(NativeNameType.Value, "6178")] + MmHostInterfaceDataWidthIntel = unchecked(6178), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMMHostInterfaceLatencyINTEL")] + [NativeName(NativeNameType.Value, "6179")] + MmHostInterfaceLatencyIntel = unchecked(6179), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMMHostInterfaceReadWriteModeINTEL")] + [NativeName(NativeNameType.Value, "6180")] + MmHostInterfaceReadWriteModeIntel = unchecked(6180), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMMHostInterfaceMaxBurstINTEL")] + [NativeName(NativeNameType.Value, "6181")] + MmHostInterfaceMaxBurstIntel = unchecked(6181), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMMHostInterfaceWaitRequestINTEL")] + [NativeName(NativeNameType.Value, "6182")] + MmHostInterfaceWaitRequestIntel = unchecked(6182), + [NativeName(NativeNameType.EnumItem, "SpvDecorationStableKernelArgumentINTEL")] + [NativeName(NativeNameType.Value, "6183")] + StableKernelArgumentIntel = unchecked(6183), + [NativeName(NativeNameType.EnumItem, "SpvDecorationMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvBuiltIn_")] + public enum SpvBuiltIn + { + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPosition")] + [NativeName(NativeNameType.Value, "0")] + Position = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPointSize")] + [NativeName(NativeNameType.Value, "1")] + PointSize = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInClipDistance")] + [NativeName(NativeNameType.Value, "3")] + ClipDistance = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullDistance")] + [NativeName(NativeNameType.Value, "4")] + CullDistance = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInVertexId")] + [NativeName(NativeNameType.Value, "5")] + VertexId = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceId")] + [NativeName(NativeNameType.Value, "6")] + InstanceId = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveId")] + [NativeName(NativeNameType.Value, "7")] + PrimitiveId = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInvocationId")] + [NativeName(NativeNameType.Value, "8")] + InvocationId = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLayer")] + [NativeName(NativeNameType.Value, "9")] + Layer = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewportIndex")] + [NativeName(NativeNameType.Value, "10")] + ViewportIndex = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInTessLevelOuter")] + [NativeName(NativeNameType.Value, "11")] + TessLevelOuter = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInTessLevelInner")] + [NativeName(NativeNameType.Value, "12")] + TessLevelInner = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInTessCoord")] + [NativeName(NativeNameType.Value, "13")] + TessCoord = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPatchVertices")] + [NativeName(NativeNameType.Value, "14")] + PatchVertices = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragCoord")] + [NativeName(NativeNameType.Value, "15")] + FragCoord = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPointCoord")] + [NativeName(NativeNameType.Value, "16")] + PointCoord = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFrontFacing")] + [NativeName(NativeNameType.Value, "17")] + FrontFacing = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSampleId")] + [NativeName(NativeNameType.Value, "18")] + SampleId = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSamplePosition")] + [NativeName(NativeNameType.Value, "19")] + SamplePosition = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSampleMask")] + [NativeName(NativeNameType.Value, "20")] + SampleMask = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragDepth")] + [NativeName(NativeNameType.Value, "22")] + FragDepth = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInHelperInvocation")] + [NativeName(NativeNameType.Value, "23")] + HelperInvocation = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInNumWorkgroups")] + [NativeName(NativeNameType.Value, "24")] + NumWorkgroups = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorkgroupSize")] + [NativeName(NativeNameType.Value, "25")] + WorkgroupSize = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorkgroupId")] + [NativeName(NativeNameType.Value, "26")] + WorkgroupId = unchecked(26), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLocalInvocationId")] + [NativeName(NativeNameType.Value, "27")] + LocalInvocationId = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalInvocationId")] + [NativeName(NativeNameType.Value, "28")] + GlobalInvocationId = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLocalInvocationIndex")] + [NativeName(NativeNameType.Value, "29")] + LocalInvocationIndex = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorkDim")] + [NativeName(NativeNameType.Value, "30")] + WorkDim = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalSize")] + [NativeName(NativeNameType.Value, "31")] + GlobalSize = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInEnqueuedWorkgroupSize")] + [NativeName(NativeNameType.Value, "32")] + EnqueuedWorkgroupSize = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalOffset")] + [NativeName(NativeNameType.Value, "33")] + GlobalOffset = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInGlobalLinearId")] + [NativeName(NativeNameType.Value, "34")] + GlobalLinearId = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupSize")] + [NativeName(NativeNameType.Value, "36")] + SubgroupSize = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupMaxSize")] + [NativeName(NativeNameType.Value, "37")] + SubgroupMaxSize = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInNumSubgroups")] + [NativeName(NativeNameType.Value, "38")] + NumSubgroups = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInNumEnqueuedSubgroups")] + [NativeName(NativeNameType.Value, "39")] + NumEnqueuedSubgroups = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupId")] + [NativeName(NativeNameType.Value, "40")] + SubgroupId = unchecked(40), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLocalInvocationId")] + [NativeName(NativeNameType.Value, "41")] + SubgroupLocalInvocationId = unchecked(41), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInVertexIndex")] + [NativeName(NativeNameType.Value, "42")] + VertexIndex = unchecked(42), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceIndex")] + [NativeName(NativeNameType.Value, "43")] + InstanceIndex = unchecked(43), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCoreIDARM")] + [NativeName(NativeNameType.Value, "4160")] + CoreIdarm = unchecked(4160), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCoreCountARM")] + [NativeName(NativeNameType.Value, "4161")] + CoreCountArm = unchecked(4161), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCoreMaxIDARM")] + [NativeName(NativeNameType.Value, "4162")] + CoreMaxIdarm = unchecked(4162), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWarpIDARM")] + [NativeName(NativeNameType.Value, "4163")] + WarpIdarm = unchecked(4163), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWarpMaxIDARM")] + [NativeName(NativeNameType.Value, "4164")] + WarpMaxIdarm = unchecked(4164), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupEqMask")] + [NativeName(NativeNameType.Value, "4416")] + SubgroupEqMask = unchecked(4416), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupEqMaskKHR")] + [NativeName(NativeNameType.Value, "4416")] + SubgroupEqMaskKhr = unchecked(4416), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGeMask")] + [NativeName(NativeNameType.Value, "4417")] + SubgroupGeMask = unchecked(4417), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGeMaskKHR")] + [NativeName(NativeNameType.Value, "4417")] + SubgroupGeMaskKhr = unchecked(4417), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGtMask")] + [NativeName(NativeNameType.Value, "4418")] + SubgroupGtMask = unchecked(4418), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupGtMaskKHR")] + [NativeName(NativeNameType.Value, "4418")] + SubgroupGtMaskKhr = unchecked(4418), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLeMask")] + [NativeName(NativeNameType.Value, "4419")] + SubgroupLeMask = unchecked(4419), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLeMaskKHR")] + [NativeName(NativeNameType.Value, "4419")] + SubgroupLeMaskKhr = unchecked(4419), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLtMask")] + [NativeName(NativeNameType.Value, "4420")] + SubgroupLtMask = unchecked(4420), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSubgroupLtMaskKHR")] + [NativeName(NativeNameType.Value, "4420")] + SubgroupLtMaskKhr = unchecked(4420), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaseVertex")] + [NativeName(NativeNameType.Value, "4424")] + BaseVertex = unchecked(4424), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaseInstance")] + [NativeName(NativeNameType.Value, "4425")] + BaseInstance = unchecked(4425), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInDrawIndex")] + [NativeName(NativeNameType.Value, "4426")] + DrawIndex = unchecked(4426), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveShadingRateKHR")] + [NativeName(NativeNameType.Value, "4432")] + PrimitiveShadingRateKhr = unchecked(4432), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInDeviceIndex")] + [NativeName(NativeNameType.Value, "4438")] + DeviceIndex = unchecked(4438), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewIndex")] + [NativeName(NativeNameType.Value, "4440")] + ViewIndex = unchecked(4440), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInShadingRateKHR")] + [NativeName(NativeNameType.Value, "4444")] + ShadingRateKhr = unchecked(4444), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspAMD")] + [NativeName(NativeNameType.Value, "4992")] + BaryCoordNoPerspAmd = unchecked(4992), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspCentroidAMD")] + [NativeName(NativeNameType.Value, "4993")] + BaryCoordNoPerspCentroidAmd = unchecked(4993), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspSampleAMD")] + [NativeName(NativeNameType.Value, "4994")] + BaryCoordNoPerspSampleAmd = unchecked(4994), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordSmoothAMD")] + [NativeName(NativeNameType.Value, "4995")] + BaryCoordSmoothAmd = unchecked(4995), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordSmoothCentroidAMD")] + [NativeName(NativeNameType.Value, "4996")] + BaryCoordSmoothCentroidAmd = unchecked(4996), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordSmoothSampleAMD")] + [NativeName(NativeNameType.Value, "4997")] + BaryCoordSmoothSampleAmd = unchecked(4997), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordPullModelAMD")] + [NativeName(NativeNameType.Value, "4998")] + BaryCoordPullModelAmd = unchecked(4998), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragStencilRefEXT")] + [NativeName(NativeNameType.Value, "5014")] + FragStencilRefExt = unchecked(5014), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewportMaskNV")] + [NativeName(NativeNameType.Value, "5253")] + ViewportMaskNv = unchecked(5253), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSecondaryPositionNV")] + [NativeName(NativeNameType.Value, "5257")] + SecondaryPositionNv = unchecked(5257), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSecondaryViewportMaskNV")] + [NativeName(NativeNameType.Value, "5258")] + SecondaryViewportMaskNv = unchecked(5258), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPositionPerViewNV")] + [NativeName(NativeNameType.Value, "5261")] + PositionPerViewNv = unchecked(5261), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInViewportMaskPerViewNV")] + [NativeName(NativeNameType.Value, "5262")] + ViewportMaskPerViewNv = unchecked(5262), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFullyCoveredEXT")] + [NativeName(NativeNameType.Value, "5264")] + FullyCoveredExt = unchecked(5264), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInTaskCountNV")] + [NativeName(NativeNameType.Value, "5274")] + TaskCountNv = unchecked(5274), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveCountNV")] + [NativeName(NativeNameType.Value, "5275")] + PrimitiveCountNv = unchecked(5275), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveIndicesNV")] + [NativeName(NativeNameType.Value, "5276")] + PrimitiveIndicesNv = unchecked(5276), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInClipDistancePerViewNV")] + [NativeName(NativeNameType.Value, "5277")] + ClipDistancePerViewNv = unchecked(5277), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullDistancePerViewNV")] + [NativeName(NativeNameType.Value, "5278")] + CullDistancePerViewNv = unchecked(5278), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLayerPerViewNV")] + [NativeName(NativeNameType.Value, "5279")] + LayerPerViewNv = unchecked(5279), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInMeshViewCountNV")] + [NativeName(NativeNameType.Value, "5280")] + MeshViewCountNv = unchecked(5280), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInMeshViewIndicesNV")] + [NativeName(NativeNameType.Value, "5281")] + MeshViewIndicesNv = unchecked(5281), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordKHR")] + [NativeName(NativeNameType.Value, "5286")] + BaryCoordKhr = unchecked(5286), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNV")] + [NativeName(NativeNameType.Value, "5286")] + BaryCoordNv = unchecked(5286), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspKHR")] + [NativeName(NativeNameType.Value, "5287")] + BaryCoordNoPerspKhr = unchecked(5287), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInBaryCoordNoPerspNV")] + [NativeName(NativeNameType.Value, "5287")] + BaryCoordNoPerspNv = unchecked(5287), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragSizeEXT")] + [NativeName(NativeNameType.Value, "5292")] + FragSizeExt = unchecked(5292), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragmentSizeNV")] + [NativeName(NativeNameType.Value, "5292")] + FragmentSizeNv = unchecked(5292), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInFragInvocationCountEXT")] + [NativeName(NativeNameType.Value, "5293")] + FragInvocationCountExt = unchecked(5293), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInvocationsPerPixelNV")] + [NativeName(NativeNameType.Value, "5293")] + InvocationsPerPixelNv = unchecked(5293), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitivePointIndicesEXT")] + [NativeName(NativeNameType.Value, "5294")] + PrimitivePointIndicesExt = unchecked(5294), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveLineIndicesEXT")] + [NativeName(NativeNameType.Value, "5295")] + PrimitiveLineIndicesExt = unchecked(5295), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInPrimitiveTriangleIndicesEXT")] + [NativeName(NativeNameType.Value, "5296")] + PrimitiveTriangleIndicesExt = unchecked(5296), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullPrimitiveEXT")] + [NativeName(NativeNameType.Value, "5299")] + CullPrimitiveExt = unchecked(5299), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchIdKHR")] + [NativeName(NativeNameType.Value, "5319")] + LaunchIdKhr = unchecked(5319), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchIdNV")] + [NativeName(NativeNameType.Value, "5319")] + LaunchIdNv = unchecked(5319), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchSizeKHR")] + [NativeName(NativeNameType.Value, "5320")] + LaunchSizeKhr = unchecked(5320), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInLaunchSizeNV")] + [NativeName(NativeNameType.Value, "5320")] + LaunchSizeNv = unchecked(5320), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayOriginKHR")] + [NativeName(NativeNameType.Value, "5321")] + WorldRayOriginKhr = unchecked(5321), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayOriginNV")] + [NativeName(NativeNameType.Value, "5321")] + WorldRayOriginNv = unchecked(5321), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayDirectionKHR")] + [NativeName(NativeNameType.Value, "5322")] + WorldRayDirectionKhr = unchecked(5322), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldRayDirectionNV")] + [NativeName(NativeNameType.Value, "5322")] + WorldRayDirectionNv = unchecked(5322), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayOriginKHR")] + [NativeName(NativeNameType.Value, "5323")] + ObjectRayOriginKhr = unchecked(5323), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayOriginNV")] + [NativeName(NativeNameType.Value, "5323")] + ObjectRayOriginNv = unchecked(5323), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayDirectionKHR")] + [NativeName(NativeNameType.Value, "5324")] + ObjectRayDirectionKhr = unchecked(5324), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectRayDirectionNV")] + [NativeName(NativeNameType.Value, "5324")] + ObjectRayDirectionNv = unchecked(5324), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTminKHR")] + [NativeName(NativeNameType.Value, "5325")] + RayTminKhr = unchecked(5325), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTminNV")] + [NativeName(NativeNameType.Value, "5325")] + RayTminNv = unchecked(5325), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTmaxKHR")] + [NativeName(NativeNameType.Value, "5326")] + RayTmaxKhr = unchecked(5326), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayTmaxNV")] + [NativeName(NativeNameType.Value, "5326")] + RayTmaxNv = unchecked(5326), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceCustomIndexKHR")] + [NativeName(NativeNameType.Value, "5327")] + InstanceCustomIndexKhr = unchecked(5327), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInInstanceCustomIndexNV")] + [NativeName(NativeNameType.Value, "5327")] + InstanceCustomIndexNv = unchecked(5327), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectToWorldKHR")] + [NativeName(NativeNameType.Value, "5330")] + ObjectToWorldKhr = unchecked(5330), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInObjectToWorldNV")] + [NativeName(NativeNameType.Value, "5330")] + ObjectToWorldNv = unchecked(5330), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldToObjectKHR")] + [NativeName(NativeNameType.Value, "5331")] + WorldToObjectKhr = unchecked(5331), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWorldToObjectNV")] + [NativeName(NativeNameType.Value, "5331")] + WorldToObjectNv = unchecked(5331), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInHitTNV")] + [NativeName(NativeNameType.Value, "5332")] + HitTnv = unchecked(5332), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInHitKindKHR")] + [NativeName(NativeNameType.Value, "5333")] + HitKindKhr = unchecked(5333), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInHitKindNV")] + [NativeName(NativeNameType.Value, "5333")] + HitKindNv = unchecked(5333), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCurrentRayTimeNV")] + [NativeName(NativeNameType.Value, "5334")] + CurrentRayTimeNv = unchecked(5334), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInHitTriangleVertexPositionsKHR")] + [NativeName(NativeNameType.Value, "5335")] + HitTriangleVertexPositionsKhr = unchecked(5335), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInIncomingRayFlagsKHR")] + [NativeName(NativeNameType.Value, "5351")] + IncomingRayFlagsKhr = unchecked(5351), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInIncomingRayFlagsNV")] + [NativeName(NativeNameType.Value, "5351")] + IncomingRayFlagsNv = unchecked(5351), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInRayGeometryIndexKHR")] + [NativeName(NativeNameType.Value, "5352")] + RayGeometryIndexKhr = unchecked(5352), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWarpsPerSMNV")] + [NativeName(NativeNameType.Value, "5374")] + WarpsPerSmnv = unchecked(5374), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSMCountNV")] + [NativeName(NativeNameType.Value, "5375")] + SmCountNv = unchecked(5375), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInWarpIDNV")] + [NativeName(NativeNameType.Value, "5376")] + WarpIdnv = unchecked(5376), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInSMIDNV")] + [NativeName(NativeNameType.Value, "5377")] + Smidnv = unchecked(5377), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInCullMaskKHR")] + [NativeName(NativeNameType.Value, "6021")] + CullMaskKhr = unchecked(6021), + [NativeName(NativeNameType.EnumItem, "SpvBuiltInMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvSelectionControlShift_")] + public enum SpvSelectionControlShift + { + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlFlattenShift")] + [NativeName(NativeNameType.Value, "0")] + FlattenShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlDontFlattenShift")] + [NativeName(NativeNameType.Value, "1")] + DontFlattenShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvSelectionControlMask_")] + public enum SpvSelectionControlMask + { + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlFlattenMask")] + [NativeName(NativeNameType.Value, "1")] + FlattenMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvSelectionControlDontFlattenMask")] + [NativeName(NativeNameType.Value, "2")] + DontFlattenMask = unchecked(2), + } + + [NativeName(NativeNameType.Enum, "SpvLoopControlShift_")] + public enum SpvLoopControlShift + { + [NativeName(NativeNameType.EnumItem, "SpvLoopControlUnrollShift")] + [NativeName(NativeNameType.Value, "0")] + UnrollShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDontUnrollShift")] + [NativeName(NativeNameType.Value, "1")] + DontUnrollShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyInfiniteShift")] + [NativeName(NativeNameType.Value, "2")] + DependencyInfiniteShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyLengthShift")] + [NativeName(NativeNameType.Value, "3")] + DependencyLengthShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMinIterationsShift")] + [NativeName(NativeNameType.Value, "4")] + MinIterationsShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxIterationsShift")] + [NativeName(NativeNameType.Value, "5")] + MaxIterationsShift = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlIterationMultipleShift")] + [NativeName(NativeNameType.Value, "6")] + IterationMultipleShift = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPeelCountShift")] + [NativeName(NativeNameType.Value, "7")] + PeelCountShift = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPartialCountShift")] + [NativeName(NativeNameType.Value, "8")] + PartialCountShift = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlInitiationIntervalINTELShift")] + [NativeName(NativeNameType.Value, "16")] + InitiationIntervalIntelShift = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxConcurrencyINTELShift")] + [NativeName(NativeNameType.Value, "17")] + MaxConcurrencyIntelShift = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyArrayINTELShift")] + [NativeName(NativeNameType.Value, "18")] + DependencyArrayIntelShift = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPipelineEnableINTELShift")] + [NativeName(NativeNameType.Value, "19")] + PipelineEnableIntelShift = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlLoopCoalesceINTELShift")] + [NativeName(NativeNameType.Value, "20")] + CoalesceIntelShift = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxInterleavingINTELShift")] + [NativeName(NativeNameType.Value, "21")] + MaxInterleavingIntelShift = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlSpeculatedIterationsINTELShift")] + [NativeName(NativeNameType.Value, "22")] + SpeculatedIterationsIntelShift = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlNoFusionINTELShift")] + [NativeName(NativeNameType.Value, "23")] + NoFusionIntelShift = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlLoopCountINTELShift")] + [NativeName(NativeNameType.Value, "24")] + CountIntelShift = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxReinvocationDelayINTELShift")] + [NativeName(NativeNameType.Value, "25")] + MaxReinvocationDelayIntelShift = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvLoopControlMask_")] + public enum SpvLoopControlMask + { + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlUnrollMask")] + [NativeName(NativeNameType.Value, "1")] + UnrollMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDontUnrollMask")] + [NativeName(NativeNameType.Value, "2")] + DontUnrollMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyInfiniteMask")] + [NativeName(NativeNameType.Value, "4")] + DependencyInfiniteMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyLengthMask")] + [NativeName(NativeNameType.Value, "8")] + DependencyLengthMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMinIterationsMask")] + [NativeName(NativeNameType.Value, "16")] + MinIterationsMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxIterationsMask")] + [NativeName(NativeNameType.Value, "32")] + MaxIterationsMask = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlIterationMultipleMask")] + [NativeName(NativeNameType.Value, "64")] + IterationMultipleMask = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPeelCountMask")] + [NativeName(NativeNameType.Value, "128")] + PeelCountMask = unchecked(128), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPartialCountMask")] + [NativeName(NativeNameType.Value, "256")] + PartialCountMask = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlInitiationIntervalINTELMask")] + [NativeName(NativeNameType.Value, "65536")] + InitiationIntervalIntelMask = unchecked(65536), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxConcurrencyINTELMask")] + [NativeName(NativeNameType.Value, "131072")] + MaxConcurrencyIntelMask = unchecked(131072), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlDependencyArrayINTELMask")] + [NativeName(NativeNameType.Value, "262144")] + DependencyArrayIntelMask = unchecked(262144), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlPipelineEnableINTELMask")] + [NativeName(NativeNameType.Value, "524288")] + PipelineEnableIntelMask = unchecked(524288), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlLoopCoalesceINTELMask")] + [NativeName(NativeNameType.Value, "1048576")] + CoalesceIntelMask = unchecked(1048576), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxInterleavingINTELMask")] + [NativeName(NativeNameType.Value, "2097152")] + MaxInterleavingIntelMask = unchecked(2097152), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlSpeculatedIterationsINTELMask")] + [NativeName(NativeNameType.Value, "4194304")] + SpeculatedIterationsIntelMask = unchecked(4194304), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlNoFusionINTELMask")] + [NativeName(NativeNameType.Value, "8388608")] + NoFusionIntelMask = unchecked(8388608), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlLoopCountINTELMask")] + [NativeName(NativeNameType.Value, "16777216")] + CountIntelMask = unchecked(16777216), + [NativeName(NativeNameType.EnumItem, "SpvLoopControlMaxReinvocationDelayINTELMask")] + [NativeName(NativeNameType.Value, "33554432")] + MaxReinvocationDelayIntelMask = unchecked(33554432), + } + + [NativeName(NativeNameType.Enum, "SpvFunctionControlShift_")] + public enum SpvFunctionControlShift + { + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlInlineShift")] + [NativeName(NativeNameType.Value, "0")] + InlineShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlDontInlineShift")] + [NativeName(NativeNameType.Value, "1")] + DontInlineShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlPureShift")] + [NativeName(NativeNameType.Value, "2")] + PureShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlConstShift")] + [NativeName(NativeNameType.Value, "3")] + ConstShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlOptNoneINTELShift")] + [NativeName(NativeNameType.Value, "16")] + OptNoneIntelShift = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFunctionControlMask_")] + public enum SpvFunctionControlMask + { + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlInlineMask")] + [NativeName(NativeNameType.Value, "1")] + InlineMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlDontInlineMask")] + [NativeName(NativeNameType.Value, "2")] + DontInlineMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlPureMask")] + [NativeName(NativeNameType.Value, "4")] + PureMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlConstMask")] + [NativeName(NativeNameType.Value, "8")] + ConstMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvFunctionControlOptNoneINTELMask")] + [NativeName(NativeNameType.Value, "65536")] + OptNoneIntelMask = unchecked(65536), + } + + [NativeName(NativeNameType.Enum, "SpvMemorySemanticsShift_")] + public enum SpvMemorySemanticsShift + { + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireShift")] + [NativeName(NativeNameType.Value, "1")] + AcquireShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsReleaseShift")] + [NativeName(NativeNameType.Value, "2")] + ReleaseShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireReleaseShift")] + [NativeName(NativeNameType.Value, "3")] + AcquireReleaseShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSequentiallyConsistentShift")] + [NativeName(NativeNameType.Value, "4")] + SequentiallyConsistentShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsUniformMemoryShift")] + [NativeName(NativeNameType.Value, "6")] + UniformMemoryShift = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSubgroupMemoryShift")] + [NativeName(NativeNameType.Value, "7")] + SubgroupMemoryShift = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsWorkgroupMemoryShift")] + [NativeName(NativeNameType.Value, "8")] + WorkgroupMemoryShift = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsCrossWorkgroupMemoryShift")] + [NativeName(NativeNameType.Value, "9")] + CrossWorkgroupMemoryShift = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAtomicCounterMemoryShift")] + [NativeName(NativeNameType.Value, "10")] + AtomicCounterMemoryShift = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsImageMemoryShift")] + [NativeName(NativeNameType.Value, "11")] + ImageMemoryShift = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryShift")] + [NativeName(NativeNameType.Value, "12")] + OutputMemoryShift = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryKHRShift")] + [NativeName(NativeNameType.Value, "12")] + OutputMemoryKhrShift = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableShift")] + [NativeName(NativeNameType.Value, "13")] + MakeAvailableShift = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableKHRShift")] + [NativeName(NativeNameType.Value, "13")] + MakeAvailableKhrShift = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleShift")] + [NativeName(NativeNameType.Value, "14")] + MakeVisibleShift = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleKHRShift")] + [NativeName(NativeNameType.Value, "14")] + MakeVisibleKhrShift = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsVolatileShift")] + [NativeName(NativeNameType.Value, "15")] + VolatileShift = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvMemorySemanticsMask_")] + public enum SpvMemorySemanticsMask + { + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireMask")] + [NativeName(NativeNameType.Value, "2")] + AcquireMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsReleaseMask")] + [NativeName(NativeNameType.Value, "4")] + ReleaseMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAcquireReleaseMask")] + [NativeName(NativeNameType.Value, "8")] + AcquireReleaseMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSequentiallyConsistentMask")] + [NativeName(NativeNameType.Value, "16")] + SequentiallyConsistentMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsUniformMemoryMask")] + [NativeName(NativeNameType.Value, "64")] + UniformMemoryMask = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsSubgroupMemoryMask")] + [NativeName(NativeNameType.Value, "128")] + SubgroupMemoryMask = unchecked(128), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsWorkgroupMemoryMask")] + [NativeName(NativeNameType.Value, "256")] + WorkgroupMemoryMask = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsCrossWorkgroupMemoryMask")] + [NativeName(NativeNameType.Value, "512")] + CrossWorkgroupMemoryMask = unchecked(512), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsAtomicCounterMemoryMask")] + [NativeName(NativeNameType.Value, "1024")] + AtomicCounterMemoryMask = unchecked(1024), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsImageMemoryMask")] + [NativeName(NativeNameType.Value, "2048")] + ImageMemoryMask = unchecked(2048), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryMask")] + [NativeName(NativeNameType.Value, "4096")] + OutputMemoryMask = unchecked(4096), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsOutputMemoryKHRMask")] + [NativeName(NativeNameType.Value, "4096")] + OutputMemoryKhrMask = unchecked(4096), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableMask")] + [NativeName(NativeNameType.Value, "8192")] + MakeAvailableMask = unchecked(8192), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeAvailableKHRMask")] + [NativeName(NativeNameType.Value, "8192")] + MakeAvailableKhrMask = unchecked(8192), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleMask")] + [NativeName(NativeNameType.Value, "16384")] + MakeVisibleMask = unchecked(16384), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsMakeVisibleKHRMask")] + [NativeName(NativeNameType.Value, "16384")] + MakeVisibleKhrMask = unchecked(16384), + [NativeName(NativeNameType.EnumItem, "SpvMemorySemanticsVolatileMask")] + [NativeName(NativeNameType.Value, "32768")] + VolatileMask = unchecked(32768), + } + + [NativeName(NativeNameType.Enum, "SpvMemoryAccessShift_")] + public enum SpvMemoryAccessShift + { + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessVolatileShift")] + [NativeName(NativeNameType.Value, "0")] + VolatileShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAlignedShift")] + [NativeName(NativeNameType.Value, "1")] + AlignedShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNontemporalShift")] + [NativeName(NativeNameType.Value, "2")] + NontemporalShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableShift")] + [NativeName(NativeNameType.Value, "3")] + MakePointerAvailableShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableKHRShift")] + [NativeName(NativeNameType.Value, "3")] + MakePointerAvailableKhrShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleShift")] + [NativeName(NativeNameType.Value, "4")] + MakePointerVisibleShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleKHRShift")] + [NativeName(NativeNameType.Value, "4")] + MakePointerVisibleKhrShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerShift")] + [NativeName(NativeNameType.Value, "5")] + NonPrivatePointerShift = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerKHRShift")] + [NativeName(NativeNameType.Value, "5")] + NonPrivatePointerKhrShift = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAliasScopeINTELMaskShift")] + [NativeName(NativeNameType.Value, "16")] + AliasScopeIntelMaskShift = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNoAliasINTELMaskShift")] + [NativeName(NativeNameType.Value, "17")] + NoAliasIntelMaskShift = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvMemoryAccessMask_")] + public enum SpvMemoryAccessMask + { + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessVolatileMask")] + [NativeName(NativeNameType.Value, "1")] + VolatileMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAlignedMask")] + [NativeName(NativeNameType.Value, "2")] + AlignedMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNontemporalMask")] + [NativeName(NativeNameType.Value, "4")] + NontemporalMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableMask")] + [NativeName(NativeNameType.Value, "8")] + MakePointerAvailableMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerAvailableKHRMask")] + [NativeName(NativeNameType.Value, "8")] + MakePointerAvailableKhrMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleMask")] + [NativeName(NativeNameType.Value, "16")] + MakePointerVisibleMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessMakePointerVisibleKHRMask")] + [NativeName(NativeNameType.Value, "16")] + MakePointerVisibleKhrMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerMask")] + [NativeName(NativeNameType.Value, "32")] + NonPrivatePointerMask = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNonPrivatePointerKHRMask")] + [NativeName(NativeNameType.Value, "32")] + NonPrivatePointerKhrMask = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessAliasScopeINTELMaskMask")] + [NativeName(NativeNameType.Value, "65536")] + AliasScopeIntelMaskMask = unchecked(65536), + [NativeName(NativeNameType.EnumItem, "SpvMemoryAccessNoAliasINTELMaskMask")] + [NativeName(NativeNameType.Value, "131072")] + NoAliasIntelMaskMask = unchecked(131072), + } + + [NativeName(NativeNameType.Enum, "SpvScope_")] + public enum SpvScope + { + [NativeName(NativeNameType.EnumItem, "SpvScopeCrossDevice")] + [NativeName(NativeNameType.Value, "0")] + CrossDevice = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvScopeDevice")] + [NativeName(NativeNameType.Value, "1")] + Device = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvScopeWorkgroup")] + [NativeName(NativeNameType.Value, "2")] + Workgroup = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvScopeSubgroup")] + [NativeName(NativeNameType.Value, "3")] + Subgroup = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvScopeInvocation")] + [NativeName(NativeNameType.Value, "4")] + Invocation = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvScopeQueueFamily")] + [NativeName(NativeNameType.Value, "5")] + QueueFamily = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvScopeQueueFamilyKHR")] + [NativeName(NativeNameType.Value, "5")] + QueueFamilyKhr = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvScopeShaderCallKHR")] + [NativeName(NativeNameType.Value, "6")] + ShaderCallKhr = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvScopeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvGroupOperation_")] + public enum SpvGroupOperation + { + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationReduce")] + [NativeName(NativeNameType.Value, "0")] + Reduce = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationInclusiveScan")] + [NativeName(NativeNameType.Value, "1")] + InclusiveScan = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationExclusiveScan")] + [NativeName(NativeNameType.Value, "2")] + ExclusiveScan = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationClusteredReduce")] + [NativeName(NativeNameType.Value, "3")] + ClusteredReduce = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationPartitionedReduceNV")] + [NativeName(NativeNameType.Value, "6")] + PartitionedReduceNv = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationPartitionedInclusiveScanNV")] + [NativeName(NativeNameType.Value, "7")] + PartitionedInclusiveScanNv = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationPartitionedExclusiveScanNV")] + [NativeName(NativeNameType.Value, "8")] + PartitionedExclusiveScanNv = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvGroupOperationMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvKernelEnqueueFlags_")] + public enum SpvKernelEnqueueFlags + { + [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsNoWait")] + [NativeName(NativeNameType.Value, "0")] + NoWait = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsWaitKernel")] + [NativeName(NativeNameType.Value, "1")] + WaitKernel = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsWaitWorkGroup")] + [NativeName(NativeNameType.Value, "2")] + WaitWorkGroup = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvKernelEnqueueFlagsMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvKernelProfilingInfoShift_")] + public enum SpvKernelProfilingInfoShift + { + [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoCmdExecTimeShift")] + [NativeName(NativeNameType.Value, "0")] + CmdExecTimeShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvKernelProfilingInfoMask_")] + public enum SpvKernelProfilingInfoMask + { + [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvKernelProfilingInfoCmdExecTimeMask")] + [NativeName(NativeNameType.Value, "1")] + CmdExecTimeMask = unchecked(1), + } + + [NativeName(NativeNameType.Enum, "SpvCapability_")] + public enum SpvCapability + { + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMatrix")] + [NativeName(NativeNameType.Value, "0")] + Matrix = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShader")] + [NativeName(NativeNameType.Value, "1")] + Shader = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometry")] + [NativeName(NativeNameType.Value, "2")] + Geometry = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTessellation")] + [NativeName(NativeNameType.Value, "3")] + Tessellation = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAddresses")] + [NativeName(NativeNameType.Value, "4")] + Addresses = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityLinkage")] + [NativeName(NativeNameType.Value, "5")] + Linkage = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityKernel")] + [NativeName(NativeNameType.Value, "6")] + Kernel = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVector16")] + [NativeName(NativeNameType.Value, "7")] + Vector16 = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat16Buffer")] + [NativeName(NativeNameType.Value, "8")] + Float16Buffer = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat16")] + [NativeName(NativeNameType.Value, "9")] + Float16 = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat64")] + [NativeName(NativeNameType.Value, "10")] + Float64 = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt64")] + [NativeName(NativeNameType.Value, "11")] + Int64 = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt64Atomics")] + [NativeName(NativeNameType.Value, "12")] + Int64Atomics = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageBasic")] + [NativeName(NativeNameType.Value, "13")] + ImageBasic = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageReadWrite")] + [NativeName(NativeNameType.Value, "14")] + ImageReadWrite = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageMipmap")] + [NativeName(NativeNameType.Value, "15")] + ImageMipmap = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityPipes")] + [NativeName(NativeNameType.Value, "17")] + Pipes = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroups")] + [NativeName(NativeNameType.Value, "18")] + Groups = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDeviceEnqueue")] + [NativeName(NativeNameType.Value, "19")] + DeviceEnqueue = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityLiteralSampler")] + [NativeName(NativeNameType.Value, "20")] + LiteralSampler = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicStorage")] + [NativeName(NativeNameType.Value, "21")] + AtomicStorage = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt16")] + [NativeName(NativeNameType.Value, "22")] + Int16 = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTessellationPointSize")] + [NativeName(NativeNameType.Value, "23")] + TessellationPointSize = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometryPointSize")] + [NativeName(NativeNameType.Value, "24")] + GeometryPointSize = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageGatherExtended")] + [NativeName(NativeNameType.Value, "25")] + ImageGatherExtended = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageMultisample")] + [NativeName(NativeNameType.Value, "27")] + StorageImageMultisample = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformBufferArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "28")] + UniformBufferArrayDynamicIndexing = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledImageArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "29")] + SampledImageArrayDynamicIndexing = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBufferArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "30")] + StorageBufferArrayDynamicIndexing = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "31")] + StorageImageArrayDynamicIndexing = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityClipDistance")] + [NativeName(NativeNameType.Value, "32")] + ClipDistance = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityCullDistance")] + [NativeName(NativeNameType.Value, "33")] + CullDistance = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageCubeArray")] + [NativeName(NativeNameType.Value, "34")] + ImageCubeArray = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampleRateShading")] + [NativeName(NativeNameType.Value, "35")] + SampleRateShading = unchecked(35), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageRect")] + [NativeName(NativeNameType.Value, "36")] + ImageRect = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledRect")] + [NativeName(NativeNameType.Value, "37")] + SampledRect = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGenericPointer")] + [NativeName(NativeNameType.Value, "38")] + GenericPointer = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt8")] + [NativeName(NativeNameType.Value, "39")] + Int8 = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachment")] + [NativeName(NativeNameType.Value, "40")] + InputAttachment = unchecked(40), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySparseResidency")] + [NativeName(NativeNameType.Value, "41")] + SparseResidency = unchecked(41), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMinLod")] + [NativeName(NativeNameType.Value, "42")] + MinLod = unchecked(42), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampled1D")] + [NativeName(NativeNameType.Value, "43")] + Sampled1D = unchecked(43), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImage1D")] + [NativeName(NativeNameType.Value, "44")] + Image1D = unchecked(44), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledCubeArray")] + [NativeName(NativeNameType.Value, "45")] + SampledCubeArray = unchecked(45), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledBuffer")] + [NativeName(NativeNameType.Value, "46")] + SampledBuffer = unchecked(46), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageBuffer")] + [NativeName(NativeNameType.Value, "47")] + ImageBuffer = unchecked(47), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageMSArray")] + [NativeName(NativeNameType.Value, "48")] + ImageMsArray = unchecked(48), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageExtendedFormats")] + [NativeName(NativeNameType.Value, "49")] + StorageImageExtendedFormats = unchecked(49), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageQuery")] + [NativeName(NativeNameType.Value, "50")] + ImageQuery = unchecked(50), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDerivativeControl")] + [NativeName(NativeNameType.Value, "51")] + DerivativeControl = unchecked(51), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInterpolationFunction")] + [NativeName(NativeNameType.Value, "52")] + InterpolationFunction = unchecked(52), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTransformFeedback")] + [NativeName(NativeNameType.Value, "53")] + TransformFeedback = unchecked(53), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometryStreams")] + [NativeName(NativeNameType.Value, "54")] + GeometryStreams = unchecked(54), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageReadWithoutFormat")] + [NativeName(NativeNameType.Value, "55")] + StorageImageReadWithoutFormat = unchecked(55), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageWriteWithoutFormat")] + [NativeName(NativeNameType.Value, "56")] + StorageImageWriteWithoutFormat = unchecked(56), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMultiViewport")] + [NativeName(NativeNameType.Value, "57")] + MultiViewport = unchecked(57), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupDispatch")] + [NativeName(NativeNameType.Value, "58")] + SubgroupDispatch = unchecked(58), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityNamedBarrier")] + [NativeName(NativeNameType.Value, "59")] + NamedBarrier = unchecked(59), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityPipeStorage")] + [NativeName(NativeNameType.Value, "60")] + PipeStorage = unchecked(60), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniform")] + [NativeName(NativeNameType.Value, "61")] + GroupNonUniform = unchecked(61), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformVote")] + [NativeName(NativeNameType.Value, "62")] + GroupNonUniformVote = unchecked(62), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformArithmetic")] + [NativeName(NativeNameType.Value, "63")] + GroupNonUniformArithmetic = unchecked(63), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformBallot")] + [NativeName(NativeNameType.Value, "64")] + GroupNonUniformBallot = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformShuffle")] + [NativeName(NativeNameType.Value, "65")] + GroupNonUniformShuffle = unchecked(65), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformShuffleRelative")] + [NativeName(NativeNameType.Value, "66")] + GroupNonUniformShuffleRelative = unchecked(66), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformClustered")] + [NativeName(NativeNameType.Value, "67")] + GroupNonUniformClustered = unchecked(67), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformQuad")] + [NativeName(NativeNameType.Value, "68")] + GroupNonUniformQuad = unchecked(68), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderLayer")] + [NativeName(NativeNameType.Value, "69")] + ShaderLayer = unchecked(69), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportIndex")] + [NativeName(NativeNameType.Value, "70")] + ShaderViewportIndex = unchecked(70), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformDecoration")] + [NativeName(NativeNameType.Value, "71")] + UniformDecoration = unchecked(71), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityCoreBuiltinsARM")] + [NativeName(NativeNameType.Value, "4165")] + CoreBuiltinsArm = unchecked(4165), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTileImageColorReadAccessEXT")] + [NativeName(NativeNameType.Value, "4166")] + TileImageColorReadAccessExt = unchecked(4166), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTileImageDepthReadAccessEXT")] + [NativeName(NativeNameType.Value, "4167")] + TileImageDepthReadAccessExt = unchecked(4167), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTileImageStencilReadAccessEXT")] + [NativeName(NativeNameType.Value, "4168")] + TileImageStencilReadAccessExt = unchecked(4168), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShadingRateKHR")] + [NativeName(NativeNameType.Value, "4422")] + FragmentShadingRateKhr = unchecked(4422), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupBallotKHR")] + [NativeName(NativeNameType.Value, "4423")] + SubgroupBallotKhr = unchecked(4423), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDrawParameters")] + [NativeName(NativeNameType.Value, "4427")] + DrawParameters = unchecked(4427), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityWorkgroupMemoryExplicitLayoutKHR")] + [NativeName(NativeNameType.Value, "4428")] + WorkgroupMemoryExplicitLayoutKhr = unchecked(4428), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityWorkgroupMemoryExplicitLayout8BitAccessKHR")] + [NativeName(NativeNameType.Value, "4429")] + WorkgroupMemoryExplicitLayout8AccessKhr = unchecked(4429), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityWorkgroupMemoryExplicitLayout16BitAccessKHR")] + [NativeName(NativeNameType.Value, "4430")] + WorkgroupMemoryExplicitLayout16AccessKhr = unchecked(4430), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupVoteKHR")] + [NativeName(NativeNameType.Value, "4431")] + SubgroupVoteKhr = unchecked(4431), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBuffer16BitAccess")] + [NativeName(NativeNameType.Value, "4433")] + StorageBuffer16Access = unchecked(4433), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageUniformBufferBlock16")] + [NativeName(NativeNameType.Value, "4433")] + StorageUniformBufferBlock16 = unchecked(4433), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageUniform16")] + [NativeName(NativeNameType.Value, "4434")] + StorageUniform16 = unchecked(4434), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformAndStorageBuffer16BitAccess")] + [NativeName(NativeNameType.Value, "4434")] + UniformAndStorageBuffer16Access = unchecked(4434), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStoragePushConstant16")] + [NativeName(NativeNameType.Value, "4435")] + StoragePushConstant16 = unchecked(4435), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageInputOutput16")] + [NativeName(NativeNameType.Value, "4436")] + StorageInputOutput16 = unchecked(4436), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDeviceGroup")] + [NativeName(NativeNameType.Value, "4437")] + DeviceGroup = unchecked(4437), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMultiView")] + [NativeName(NativeNameType.Value, "4439")] + MultiView = unchecked(4439), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVariablePointersStorageBuffer")] + [NativeName(NativeNameType.Value, "4441")] + VariablePointersStorageBuffer = unchecked(4441), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVariablePointers")] + [NativeName(NativeNameType.Value, "4442")] + VariablePointers = unchecked(4442), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicStorageOps")] + [NativeName(NativeNameType.Value, "4445")] + AtomicStorageOps = unchecked(4445), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampleMaskPostDepthCoverage")] + [NativeName(NativeNameType.Value, "4447")] + SampleMaskPostDepthCoverage = unchecked(4447), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBuffer8BitAccess")] + [NativeName(NativeNameType.Value, "4448")] + StorageBuffer8Access = unchecked(4448), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformAndStorageBuffer8BitAccess")] + [NativeName(NativeNameType.Value, "4449")] + UniformAndStorageBuffer8Access = unchecked(4449), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStoragePushConstant8")] + [NativeName(NativeNameType.Value, "4450")] + StoragePushConstant8 = unchecked(4450), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDenormPreserve")] + [NativeName(NativeNameType.Value, "4464")] + DenormPreserve = unchecked(4464), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDenormFlushToZero")] + [NativeName(NativeNameType.Value, "4465")] + DenormFlushToZero = unchecked(4465), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySignedZeroInfNanPreserve")] + [NativeName(NativeNameType.Value, "4466")] + SignedZeroInfNanPreserve = unchecked(4466), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRoundingModeRTE")] + [NativeName(NativeNameType.Value, "4467")] + RoundingModeRte = unchecked(4467), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRoundingModeRTZ")] + [NativeName(NativeNameType.Value, "4468")] + RoundingModeRtz = unchecked(4468), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayQueryProvisionalKHR")] + [NativeName(NativeNameType.Value, "4471")] + RayQueryProvisionalKhr = unchecked(4471), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayQueryKHR")] + [NativeName(NativeNameType.Value, "4472")] + RayQueryKhr = unchecked(4472), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTraversalPrimitiveCullingKHR")] + [NativeName(NativeNameType.Value, "4478")] + RayTraversalPrimitiveCullingKhr = unchecked(4478), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingKHR")] + [NativeName(NativeNameType.Value, "4479")] + RayTracingKhr = unchecked(4479), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTextureSampleWeightedQCOM")] + [NativeName(NativeNameType.Value, "4484")] + TextureSampleWeightedQcom = unchecked(4484), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTextureBoxFilterQCOM")] + [NativeName(NativeNameType.Value, "4485")] + TextureBoxFilterQcom = unchecked(4485), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityTextureBlockMatchQCOM")] + [NativeName(NativeNameType.Value, "4486")] + TextureBlockMatchQcom = unchecked(4486), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloat16ImageAMD")] + [NativeName(NativeNameType.Value, "5008")] + Float16ImageAmd = unchecked(5008), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageGatherBiasLodAMD")] + [NativeName(NativeNameType.Value, "5009")] + ImageGatherBiasLodAmd = unchecked(5009), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentMaskAMD")] + [NativeName(NativeNameType.Value, "5010")] + FragmentMaskAmd = unchecked(5010), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStencilExportEXT")] + [NativeName(NativeNameType.Value, "5013")] + StencilExportExt = unchecked(5013), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageReadWriteLodAMD")] + [NativeName(NativeNameType.Value, "5015")] + ImageReadWriteLodAmd = unchecked(5015), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInt64ImageEXT")] + [NativeName(NativeNameType.Value, "5016")] + Int64ImageExt = unchecked(5016), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderClockKHR")] + [NativeName(NativeNameType.Value, "5055")] + ShaderClockKhr = unchecked(5055), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampleMaskOverrideCoverageNV")] + [NativeName(NativeNameType.Value, "5249")] + SampleMaskOverrideCoverageNv = unchecked(5249), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGeometryShaderPassthroughNV")] + [NativeName(NativeNameType.Value, "5251")] + GeometryShaderPassthroughNv = unchecked(5251), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportIndexLayerEXT")] + [NativeName(NativeNameType.Value, "5254")] + ShaderViewportIndexLayerExt = unchecked(5254), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportIndexLayerNV")] + [NativeName(NativeNameType.Value, "5254")] + ShaderViewportIndexLayerNv = unchecked(5254), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderViewportMaskNV")] + [NativeName(NativeNameType.Value, "5255")] + ShaderViewportMaskNv = unchecked(5255), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderStereoViewNV")] + [NativeName(NativeNameType.Value, "5259")] + ShaderStereoViewNv = unchecked(5259), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityPerViewAttributesNV")] + [NativeName(NativeNameType.Value, "5260")] + PerViewAttributesNv = unchecked(5260), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentFullyCoveredEXT")] + [NativeName(NativeNameType.Value, "5265")] + FragmentFullyCoveredExt = unchecked(5265), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMeshShadingNV")] + [NativeName(NativeNameType.Value, "5266")] + MeshShadingNv = unchecked(5266), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityImageFootprintNV")] + [NativeName(NativeNameType.Value, "5282")] + ImageFootprintNv = unchecked(5282), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMeshShadingEXT")] + [NativeName(NativeNameType.Value, "5283")] + MeshShadingExt = unchecked(5283), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentBarycentricKHR")] + [NativeName(NativeNameType.Value, "5284")] + FragmentBarycentricKhr = unchecked(5284), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentBarycentricNV")] + [NativeName(NativeNameType.Value, "5284")] + FragmentBarycentricNv = unchecked(5284), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityComputeDerivativeGroupQuadsNV")] + [NativeName(NativeNameType.Value, "5288")] + ComputeDerivativeGroupQuadsNv = unchecked(5288), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentDensityEXT")] + [NativeName(NativeNameType.Value, "5291")] + FragmentDensityExt = unchecked(5291), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShadingRateNV")] + [NativeName(NativeNameType.Value, "5291")] + ShadingRateNv = unchecked(5291), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformPartitionedNV")] + [NativeName(NativeNameType.Value, "5297")] + GroupNonUniformPartitionedNv = unchecked(5297), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderNonUniform")] + [NativeName(NativeNameType.Value, "5301")] + ShaderNonUniform = unchecked(5301), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderNonUniformEXT")] + [NativeName(NativeNameType.Value, "5301")] + ShaderNonUniformExt = unchecked(5301), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRuntimeDescriptorArray")] + [NativeName(NativeNameType.Value, "5302")] + RuntimeDescriptorArray = unchecked(5302), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRuntimeDescriptorArrayEXT")] + [NativeName(NativeNameType.Value, "5302")] + RuntimeDescriptorArrayExt = unchecked(5302), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "5303")] + InputAttachmentArrayDynamicIndexing = unchecked(5303), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayDynamicIndexingEXT")] + [NativeName(NativeNameType.Value, "5303")] + InputAttachmentArrayDynamicIndexingExt = unchecked(5303), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "5304")] + UniformTexelBufferArrayDynamicIndexing = unchecked(5304), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayDynamicIndexingEXT")] + [NativeName(NativeNameType.Value, "5304")] + UniformTexelBufferArrayDynamicIndexingExt = unchecked(5304), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayDynamicIndexing")] + [NativeName(NativeNameType.Value, "5305")] + StorageTexelBufferArrayDynamicIndexing = unchecked(5305), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayDynamicIndexingEXT")] + [NativeName(NativeNameType.Value, "5305")] + StorageTexelBufferArrayDynamicIndexingExt = unchecked(5305), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformBufferArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5306")] + UniformBufferArrayNonUniformIndexing = unchecked(5306), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformBufferArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5306")] + UniformBufferArrayNonUniformIndexingExt = unchecked(5306), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledImageArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5307")] + SampledImageArrayNonUniformIndexing = unchecked(5307), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySampledImageArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5307")] + SampledImageArrayNonUniformIndexingExt = unchecked(5307), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBufferArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5308")] + StorageBufferArrayNonUniformIndexing = unchecked(5308), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageBufferArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5308")] + StorageBufferArrayNonUniformIndexingExt = unchecked(5308), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5309")] + StorageImageArrayNonUniformIndexing = unchecked(5309), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageImageArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5309")] + StorageImageArrayNonUniformIndexingExt = unchecked(5309), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5310")] + InputAttachmentArrayNonUniformIndexing = unchecked(5310), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityInputAttachmentArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5310")] + InputAttachmentArrayNonUniformIndexingExt = unchecked(5310), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5311")] + UniformTexelBufferArrayNonUniformIndexing = unchecked(5311), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUniformTexelBufferArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5311")] + UniformTexelBufferArrayNonUniformIndexingExt = unchecked(5311), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayNonUniformIndexing")] + [NativeName(NativeNameType.Value, "5312")] + StorageTexelBufferArrayNonUniformIndexing = unchecked(5312), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityStorageTexelBufferArrayNonUniformIndexingEXT")] + [NativeName(NativeNameType.Value, "5312")] + StorageTexelBufferArrayNonUniformIndexingExt = unchecked(5312), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingPositionFetchKHR")] + [NativeName(NativeNameType.Value, "5336")] + RayTracingPositionFetchKhr = unchecked(5336), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingNV")] + [NativeName(NativeNameType.Value, "5340")] + RayTracingNv = unchecked(5340), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingMotionBlurNV")] + [NativeName(NativeNameType.Value, "5341")] + RayTracingMotionBlurNv = unchecked(5341), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModel")] + [NativeName(NativeNameType.Value, "5345")] + VulkanMemoryModel = unchecked(5345), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModelKHR")] + [NativeName(NativeNameType.Value, "5345")] + VulkanMemoryModelKhr = unchecked(5345), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModelDeviceScope")] + [NativeName(NativeNameType.Value, "5346")] + VulkanMemoryModelDeviceScope = unchecked(5346), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVulkanMemoryModelDeviceScopeKHR")] + [NativeName(NativeNameType.Value, "5346")] + VulkanMemoryModelDeviceScopeKhr = unchecked(5346), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityPhysicalStorageBufferAddresses")] + [NativeName(NativeNameType.Value, "5347")] + PhysicalStorageBufferAddresses = unchecked(5347), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityPhysicalStorageBufferAddressesEXT")] + [NativeName(NativeNameType.Value, "5347")] + PhysicalStorageBufferAddressesExt = unchecked(5347), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityComputeDerivativeGroupLinearNV")] + [NativeName(NativeNameType.Value, "5350")] + ComputeDerivativeGroupLinearNv = unchecked(5350), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingProvisionalKHR")] + [NativeName(NativeNameType.Value, "5353")] + RayTracingProvisionalKhr = unchecked(5353), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityCooperativeMatrixNV")] + [NativeName(NativeNameType.Value, "5357")] + CooperativeMatrixNv = unchecked(5357), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShaderSampleInterlockEXT")] + [NativeName(NativeNameType.Value, "5363")] + FragmentShaderSampleInterlockExt = unchecked(5363), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShaderShadingRateInterlockEXT")] + [NativeName(NativeNameType.Value, "5372")] + FragmentShaderShadingRateInterlockExt = unchecked(5372), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderSMBuiltinsNV")] + [NativeName(NativeNameType.Value, "5373")] + ShaderSmBuiltinsNv = unchecked(5373), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFragmentShaderPixelInterlockEXT")] + [NativeName(NativeNameType.Value, "5378")] + FragmentShaderPixelInterlockExt = unchecked(5378), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDemoteToHelperInvocation")] + [NativeName(NativeNameType.Value, "5379")] + DemoteToHelperInvocation = unchecked(5379), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDemoteToHelperInvocationEXT")] + [NativeName(NativeNameType.Value, "5379")] + DemoteToHelperInvocationExt = unchecked(5379), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayTracingOpacityMicromapEXT")] + [NativeName(NativeNameType.Value, "5381")] + RayTracingOpacityMicromapExt = unchecked(5381), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityShaderInvocationReorderNV")] + [NativeName(NativeNameType.Value, "5383")] + ShaderInvocationReorderNv = unchecked(5383), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityBindlessTextureNV")] + [NativeName(NativeNameType.Value, "5390")] + BindlessTextureNv = unchecked(5390), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayQueryPositionFetchKHR")] + [NativeName(NativeNameType.Value, "5391")] + RayQueryPositionFetchKhr = unchecked(5391), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupShuffleINTEL")] + [NativeName(NativeNameType.Value, "5568")] + SubgroupShuffleIntel = unchecked(5568), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupBufferBlockIOINTEL")] + [NativeName(NativeNameType.Value, "5569")] + SubgroupBufferBlockIointel = unchecked(5569), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupImageBlockIOINTEL")] + [NativeName(NativeNameType.Value, "5570")] + SubgroupImageBlockIointel = unchecked(5570), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupImageMediaBlockIOINTEL")] + [NativeName(NativeNameType.Value, "5579")] + SubgroupImageMediaBlockIointel = unchecked(5579), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRoundToInfinityINTEL")] + [NativeName(NativeNameType.Value, "5582")] + RoundToInfinityIntel = unchecked(5582), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFloatingPointModeINTEL")] + [NativeName(NativeNameType.Value, "5583")] + FloatingPointModeIntel = unchecked(5583), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityIntegerFunctions2INTEL")] + [NativeName(NativeNameType.Value, "5584")] + IntegerFunctions2Intel = unchecked(5584), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFunctionPointersINTEL")] + [NativeName(NativeNameType.Value, "5603")] + FunctionPointersIntel = unchecked(5603), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityIndirectReferencesINTEL")] + [NativeName(NativeNameType.Value, "5604")] + IndirectReferencesIntel = unchecked(5604), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAsmINTEL")] + [NativeName(NativeNameType.Value, "5606")] + AsmIntel = unchecked(5606), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat32MinMaxEXT")] + [NativeName(NativeNameType.Value, "5612")] + AtomicFloat32MinMaxExt = unchecked(5612), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat64MinMaxEXT")] + [NativeName(NativeNameType.Value, "5613")] + AtomicFloat64MinMaxExt = unchecked(5613), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat16MinMaxEXT")] + [NativeName(NativeNameType.Value, "5616")] + AtomicFloat16MinMaxExt = unchecked(5616), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVectorComputeINTEL")] + [NativeName(NativeNameType.Value, "5617")] + VectorComputeIntel = unchecked(5617), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVectorAnyINTEL")] + [NativeName(NativeNameType.Value, "5619")] + VectorAnyIntel = unchecked(5619), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityExpectAssumeKHR")] + [NativeName(NativeNameType.Value, "5629")] + ExpectAssumeKhr = unchecked(5629), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupAvcMotionEstimationINTEL")] + [NativeName(NativeNameType.Value, "5696")] + SubgroupAvcMotionEstimationIntel = unchecked(5696), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupAvcMotionEstimationIntraINTEL")] + [NativeName(NativeNameType.Value, "5697")] + SubgroupAvcMotionEstimationIntraIntel = unchecked(5697), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySubgroupAvcMotionEstimationChromaINTEL")] + [NativeName(NativeNameType.Value, "5698")] + SubgroupAvcMotionEstimationChromaIntel = unchecked(5698), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityVariableLengthArrayINTEL")] + [NativeName(NativeNameType.Value, "5817")] + VariableLengthArrayIntel = unchecked(5817), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFunctionFloatControlINTEL")] + [NativeName(NativeNameType.Value, "5821")] + FunctionFloatControlIntel = unchecked(5821), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAMemoryAttributesINTEL")] + [NativeName(NativeNameType.Value, "5824")] + FpgaMemoryAttributesIntel = unchecked(5824), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPFastMathModeINTEL")] + [NativeName(NativeNameType.Value, "5837")] + FpFastMathModeIntel = unchecked(5837), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityArbitraryPrecisionIntegersINTEL")] + [NativeName(NativeNameType.Value, "5844")] + ArbitraryPrecisionIntegersIntel = unchecked(5844), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityArbitraryPrecisionFloatingPointINTEL")] + [NativeName(NativeNameType.Value, "5845")] + ArbitraryPrecisionFloatingPointIntel = unchecked(5845), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUnstructuredLoopControlsINTEL")] + [NativeName(NativeNameType.Value, "5886")] + UnstructuredLoopControlsIntel = unchecked(5886), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGALoopControlsINTEL")] + [NativeName(NativeNameType.Value, "5888")] + FpgaLoopControlsIntel = unchecked(5888), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityKernelAttributesINTEL")] + [NativeName(NativeNameType.Value, "5892")] + KernelAttributesIntel = unchecked(5892), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAKernelAttributesINTEL")] + [NativeName(NativeNameType.Value, "5897")] + FpgaKernelAttributesIntel = unchecked(5897), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAMemoryAccessesINTEL")] + [NativeName(NativeNameType.Value, "5898")] + FpgaMemoryAccessesIntel = unchecked(5898), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAClusterAttributesINTEL")] + [NativeName(NativeNameType.Value, "5904")] + FpgaClusterAttributesIntel = unchecked(5904), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityLoopFuseINTEL")] + [NativeName(NativeNameType.Value, "5906")] + LoopFuseIntel = unchecked(5906), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGADSPControlINTEL")] + [NativeName(NativeNameType.Value, "5908")] + FpgadspControlIntel = unchecked(5908), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMemoryAccessAliasingINTEL")] + [NativeName(NativeNameType.Value, "5910")] + MemoryAccessAliasingIntel = unchecked(5910), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAInvocationPipeliningAttributesINTEL")] + [NativeName(NativeNameType.Value, "5916")] + FpgaInvocationPipeliningAttributesIntel = unchecked(5916), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGABufferLocationINTEL")] + [NativeName(NativeNameType.Value, "5920")] + FpgaBufferLocationIntel = unchecked(5920), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityArbitraryPrecisionFixedPointINTEL")] + [NativeName(NativeNameType.Value, "5922")] + ArbitraryPrecisionFixedPointIntel = unchecked(5922), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityUSMStorageClassesINTEL")] + [NativeName(NativeNameType.Value, "5935")] + UsmStorageClassesIntel = unchecked(5935), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRuntimeAlignedAttributeINTEL")] + [NativeName(NativeNameType.Value, "5939")] + RuntimeAlignedAttributeIntel = unchecked(5939), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityIOPipesINTEL")] + [NativeName(NativeNameType.Value, "5943")] + IoPipesIntel = unchecked(5943), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityBlockingPipesINTEL")] + [NativeName(NativeNameType.Value, "5945")] + BlockingPipesIntel = unchecked(5945), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGARegINTEL")] + [NativeName(NativeNameType.Value, "5948")] + FpgaRegIntel = unchecked(5948), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInputAll")] + [NativeName(NativeNameType.Value, "6016")] + DotProductInputAll = unchecked(6016), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInputAllKHR")] + [NativeName(NativeNameType.Value, "6016")] + DotProductInputAllKhr = unchecked(6016), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8Bit")] + [NativeName(NativeNameType.Value, "6017")] + DotProductInput4X8 = unchecked(6017), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8BitKHR")] + [NativeName(NativeNameType.Value, "6017")] + DotProductInput4X8Khr = unchecked(6017), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8BitPacked")] + [NativeName(NativeNameType.Value, "6018")] + DotProductInput4X8Packed = unchecked(6018), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductInput4x8BitPackedKHR")] + [NativeName(NativeNameType.Value, "6018")] + DotProductInput4X8PackedKhr = unchecked(6018), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProduct")] + [NativeName(NativeNameType.Value, "6019")] + DotProduct = unchecked(6019), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDotProductKHR")] + [NativeName(NativeNameType.Value, "6019")] + DotProductKhr = unchecked(6019), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityRayCullMaskKHR")] + [NativeName(NativeNameType.Value, "6020")] + RayCullMaskKhr = unchecked(6020), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityCooperativeMatrixKHR")] + [NativeName(NativeNameType.Value, "6022")] + CooperativeMatrixKhr = unchecked(6022), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityBitInstructions")] + [NativeName(NativeNameType.Value, "6025")] + Instructions = unchecked(6025), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupNonUniformRotateKHR")] + [NativeName(NativeNameType.Value, "6026")] + GroupNonUniformRotateKhr = unchecked(6026), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat32AddEXT")] + [NativeName(NativeNameType.Value, "6033")] + AtomicFloat32AddExt = unchecked(6033), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat64AddEXT")] + [NativeName(NativeNameType.Value, "6034")] + AtomicFloat64AddExt = unchecked(6034), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityLongConstantCompositeINTEL")] + [NativeName(NativeNameType.Value, "6089")] + LongConstantCompositeIntel = unchecked(6089), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityOptNoneINTEL")] + [NativeName(NativeNameType.Value, "6094")] + OptNoneIntel = unchecked(6094), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityAtomicFloat16AddEXT")] + [NativeName(NativeNameType.Value, "6095")] + AtomicFloat16AddExt = unchecked(6095), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityDebugInfoModuleINTEL")] + [NativeName(NativeNameType.Value, "6114")] + DebugInfoModuleIntel = unchecked(6114), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityBFloat16ConversionINTEL")] + [NativeName(NativeNameType.Value, "6115")] + CapabilitybFloat16ConversionIntel = unchecked(6115), + [NativeName(NativeNameType.EnumItem, "SpvCapabilitySplitBarrierINTEL")] + [NativeName(NativeNameType.Value, "6141")] + SplitBarrierIntel = unchecked(6141), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAKernelAttributesv2INTEL")] + [NativeName(NativeNameType.Value, "6161")] + FpgaKernelAttributesv2Intel = unchecked(6161), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGALatencyControlINTEL")] + [NativeName(NativeNameType.Value, "6171")] + FpgaLatencyControlIntel = unchecked(6171), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityFPGAArgumentInterfacesINTEL")] + [NativeName(NativeNameType.Value, "6174")] + FpgaArgumentInterfacesIntel = unchecked(6174), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityGroupUniformArithmeticKHR")] + [NativeName(NativeNameType.Value, "6400")] + GroupUniformArithmeticKhr = unchecked(6400), + [NativeName(NativeNameType.EnumItem, "SpvCapabilityMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvRayFlagsShift_")] + public enum SpvRayFlagsShift + { + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsOpaqueKHRShift")] + [NativeName(NativeNameType.Value, "0")] + OpaqueKhrShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsNoOpaqueKHRShift")] + [NativeName(NativeNameType.Value, "1")] + NoOpaqueKhrShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsTerminateOnFirstHitKHRShift")] + [NativeName(NativeNameType.Value, "2")] + TerminateOnFirstHitKhrShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipClosestHitShaderKHRShift")] + [NativeName(NativeNameType.Value, "3")] + SkipClosestHitShaderKhrShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullBackFacingTrianglesKHRShift")] + [NativeName(NativeNameType.Value, "4")] + CullBackFacingTrianglesKhrShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullFrontFacingTrianglesKHRShift")] + [NativeName(NativeNameType.Value, "5")] + CullFrontFacingTrianglesKhrShift = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullOpaqueKHRShift")] + [NativeName(NativeNameType.Value, "6")] + CullOpaqueKhrShift = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullNoOpaqueKHRShift")] + [NativeName(NativeNameType.Value, "7")] + CullNoOpaqueKhrShift = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipTrianglesKHRShift")] + [NativeName(NativeNameType.Value, "8")] + SkipTrianglesKhrShift = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipAABBsKHRShift")] + [NativeName(NativeNameType.Value, "9")] + SkipAabBsKhrShift = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsForceOpacityMicromap2StateEXTShift")] + [NativeName(NativeNameType.Value, "10")] + ForceOpacityMicromap2StateExtShift = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvRayFlagsMask_")] + public enum SpvRayFlagsMask + { + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsOpaqueKHRMask")] + [NativeName(NativeNameType.Value, "1")] + OpaqueKhrMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsNoOpaqueKHRMask")] + [NativeName(NativeNameType.Value, "2")] + NoOpaqueKhrMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsTerminateOnFirstHitKHRMask")] + [NativeName(NativeNameType.Value, "4")] + TerminateOnFirstHitKhrMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipClosestHitShaderKHRMask")] + [NativeName(NativeNameType.Value, "8")] + SkipClosestHitShaderKhrMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullBackFacingTrianglesKHRMask")] + [NativeName(NativeNameType.Value, "16")] + CullBackFacingTrianglesKhrMask = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullFrontFacingTrianglesKHRMask")] + [NativeName(NativeNameType.Value, "32")] + CullFrontFacingTrianglesKhrMask = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullOpaqueKHRMask")] + [NativeName(NativeNameType.Value, "64")] + CullOpaqueKhrMask = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsCullNoOpaqueKHRMask")] + [NativeName(NativeNameType.Value, "128")] + CullNoOpaqueKhrMask = unchecked(128), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipTrianglesKHRMask")] + [NativeName(NativeNameType.Value, "256")] + SkipTrianglesKhrMask = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsSkipAABBsKHRMask")] + [NativeName(NativeNameType.Value, "512")] + SkipAabBsKhrMask = unchecked(512), + [NativeName(NativeNameType.EnumItem, "SpvRayFlagsForceOpacityMicromap2StateEXTMask")] + [NativeName(NativeNameType.Value, "1024")] + ForceOpacityMicromap2StateExtMask = unchecked(1024), + } + + [NativeName(NativeNameType.Enum, "SpvRayQueryIntersection_")] + public enum SpvRayQueryIntersection + { + [NativeName(NativeNameType.EnumItem, "SpvRayQueryIntersectionRayQueryCandidateIntersectionKHR")] + [NativeName(NativeNameType.Value, "0")] + CandidateIntersectionKhr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryIntersectionRayQueryCommittedIntersectionKHR")] + [NativeName(NativeNameType.Value, "1")] + CommittedIntersectionKhr = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryIntersectionMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvRayQueryCommittedIntersectionType_")] + public enum SpvRayQueryCommittedIntersectionType + { + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionNoneKHR")] + [NativeName(NativeNameType.Value, "0")] + NoneKhr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionTriangleKHR")] + [NativeName(NativeNameType.Value, "1")] + TriangleKhr = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionGeneratedKHR")] + [NativeName(NativeNameType.Value, "2")] + GeneratedKhr = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCommittedIntersectionTypeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvRayQueryCandidateIntersectionType_")] + public enum SpvRayQueryCandidateIntersectionType + { + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionTriangleKHR")] + [NativeName(NativeNameType.Value, "0")] + TriangleKhr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionAABBKHR")] + [NativeName(NativeNameType.Value, "1")] + Aabbkhr = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvRayQueryCandidateIntersectionTypeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFragmentShadingRateShift_")] + public enum SpvFragmentShadingRateShift + { + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical2PixelsShift")] + [NativeName(NativeNameType.Value, "0")] + Vertical2PixelsShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical4PixelsShift")] + [NativeName(NativeNameType.Value, "1")] + Vertical4PixelsShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal2PixelsShift")] + [NativeName(NativeNameType.Value, "2")] + Horizontal2PixelsShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal4PixelsShift")] + [NativeName(NativeNameType.Value, "3")] + Horizontal4PixelsShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFragmentShadingRateMask_")] + public enum SpvFragmentShadingRateMask + { + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical2PixelsMask")] + [NativeName(NativeNameType.Value, "1")] + Vertical2PixelsMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateVertical4PixelsMask")] + [NativeName(NativeNameType.Value, "2")] + Vertical4PixelsMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal2PixelsMask")] + [NativeName(NativeNameType.Value, "4")] + Horizontal2PixelsMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvFragmentShadingRateHorizontal4PixelsMask")] + [NativeName(NativeNameType.Value, "8")] + Horizontal4PixelsMask = unchecked(8), + } + + [NativeName(NativeNameType.Enum, "SpvFPDenormMode_")] + public enum SpvFPDenormMode + { + [NativeName(NativeNameType.EnumItem, "SpvFPDenormModePreserve")] + [NativeName(NativeNameType.Value, "0")] + Preserve = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFPDenormModeFlushToZero")] + [NativeName(NativeNameType.Value, "1")] + FlushToZero = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFPDenormModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvFPOperationMode_")] + public enum SpvFPOperationMode + { + [NativeName(NativeNameType.EnumItem, "SpvFPOperationModeIEEE")] + [NativeName(NativeNameType.Value, "0")] + Ieee = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvFPOperationModeALT")] + [NativeName(NativeNameType.Value, "1")] + Alt = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvFPOperationModeMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvQuantizationModes_")] + public enum SpvQuantizationModes + { + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesTRN")] + [NativeName(NativeNameType.Value, "0")] + Trn = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesTRN_ZERO")] + [NativeName(NativeNameType.Value, "1")] + TrnZero = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND")] + [NativeName(NativeNameType.Value, "2")] + Rnd = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_ZERO")] + [NativeName(NativeNameType.Value, "3")] + RndZero = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_INF")] + [NativeName(NativeNameType.Value, "4")] + RndInf = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_MIN_INF")] + [NativeName(NativeNameType.Value, "5")] + RndMinInf = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_CONV")] + [NativeName(NativeNameType.Value, "6")] + RndConv = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesRND_CONV_ODD")] + [NativeName(NativeNameType.Value, "7")] + RndConvOdd = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvQuantizationModesMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvOverflowModes_")] + public enum SpvOverflowModes + { + [NativeName(NativeNameType.EnumItem, "SpvOverflowModesWRAP")] + [NativeName(NativeNameType.Value, "0")] + Wrap = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvOverflowModesSAT")] + [NativeName(NativeNameType.Value, "1")] + Sat = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvOverflowModesSAT_ZERO")] + [NativeName(NativeNameType.Value, "2")] + SatZero = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvOverflowModesSAT_SYM")] + [NativeName(NativeNameType.Value, "3")] + SatSym = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvOverflowModesMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvPackedVectorFormat_")] + public enum SpvPackedVectorFormat + { + [NativeName(NativeNameType.EnumItem, "SpvPackedVectorFormatPackedVectorFormat4x8Bit")] + [NativeName(NativeNameType.Value, "0")] + Format4X8 = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvPackedVectorFormatPackedVectorFormat4x8BitKHR")] + [NativeName(NativeNameType.Value, "0")] + Format4X8Khr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvPackedVectorFormatMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvCooperativeMatrixOperandsShift_")] + public enum SpvCooperativeMatrixOperandsShift + { + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsMatrixASignedComponentsShift")] + [NativeName(NativeNameType.Value, "0")] + MatrixaSignedComponentsShift = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsMatrixBSignedComponentsShift")] + [NativeName(NativeNameType.Value, "1")] + MatrixbSignedComponentsShift = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsMatrixCSignedComponentsShift")] + [NativeName(NativeNameType.Value, "2")] + MatrixcSignedComponentsShift = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsMatrixResultSignedComponentsShift")] + [NativeName(NativeNameType.Value, "3")] + ResultSignedComponentsShift = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsSaturatingAccumulationShift")] + [NativeName(NativeNameType.Value, "4")] + SaturatingAccumulationShift = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvCooperativeMatrixOperandsMask_")] + public enum SpvCooperativeMatrixOperandsMask + { + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsMaskNone")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsMatrixASignedComponentsMask")] + [NativeName(NativeNameType.Value, "1")] + MatrixaSignedComponentsMask = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsMatrixBSignedComponentsMask")] + [NativeName(NativeNameType.Value, "2")] + MatrixbSignedComponentsMask = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsMatrixCSignedComponentsMask")] + [NativeName(NativeNameType.Value, "4")] + MatrixcSignedComponentsMask = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsMatrixResultSignedComponentsMask")] + [NativeName(NativeNameType.Value, "8")] + ResultSignedComponentsMask = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixOperandsSaturatingAccumulationMask")] + [NativeName(NativeNameType.Value, "16")] + SaturatingAccumulationMask = unchecked(16), + } + + [NativeName(NativeNameType.Enum, "SpvCooperativeMatrixLayout_")] + public enum SpvCooperativeMatrixLayout + { + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixLayoutRowMajorKHR")] + [NativeName(NativeNameType.Value, "0")] + RowMajorKhr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixLayoutColumnMajorKHR")] + [NativeName(NativeNameType.Value, "1")] + ColumnMajorKhr = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixLayoutMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvCooperativeMatrixUse_")] + public enum SpvCooperativeMatrixUse + { + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixUseMatrixAKHR")] + [NativeName(NativeNameType.Value, "0")] + Akhr = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixUseMatrixBKHR")] + [NativeName(NativeNameType.Value, "1")] + Bkhr = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixUseMatrixAccumulatorKHR")] + [NativeName(NativeNameType.Value, "2")] + AccumulatorKhr = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvCooperativeMatrixUseMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + [NativeName(NativeNameType.Enum, "SpvOp_")] + public enum SpvOp + { + [NativeName(NativeNameType.EnumItem, "SpvOpNop")] + [NativeName(NativeNameType.Value, "0")] + Nop = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SpvOpUndef")] + [NativeName(NativeNameType.Value, "1")] + Undef = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SpvOpSourceContinued")] + [NativeName(NativeNameType.Value, "2")] + SourceContinued = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SpvOpSource")] + [NativeName(NativeNameType.Value, "3")] + Source = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SpvOpSourceExtension")] + [NativeName(NativeNameType.Value, "4")] + SourceExtension = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SpvOpName")] + [NativeName(NativeNameType.Value, "5")] + Name = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SpvOpMemberName")] + [NativeName(NativeNameType.Value, "6")] + MemberName = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SpvOpString")] + [NativeName(NativeNameType.Value, "7")] + String = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SpvOpLine")] + [NativeName(NativeNameType.Value, "8")] + Line = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SpvOpExtension")] + [NativeName(NativeNameType.Value, "10")] + Extension = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SpvOpExtInstImport")] + [NativeName(NativeNameType.Value, "11")] + ExtInstImport = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SpvOpExtInst")] + [NativeName(NativeNameType.Value, "12")] + ExtInst = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SpvOpMemoryModel")] + [NativeName(NativeNameType.Value, "14")] + MemoryModel = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SpvOpEntryPoint")] + [NativeName(NativeNameType.Value, "15")] + EntryPoint = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SpvOpExecutionMode")] + [NativeName(NativeNameType.Value, "16")] + ExecutionMode = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SpvOpCapability")] + [NativeName(NativeNameType.Value, "17")] + Capability = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeVoid")] + [NativeName(NativeNameType.Value, "19")] + TypeVoid = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeBool")] + [NativeName(NativeNameType.Value, "20")] + TypeBool = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeInt")] + [NativeName(NativeNameType.Value, "21")] + TypeInt = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeFloat")] + [NativeName(NativeNameType.Value, "22")] + TypeFloat = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeVector")] + [NativeName(NativeNameType.Value, "23")] + TypeVector = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeMatrix")] + [NativeName(NativeNameType.Value, "24")] + TypeMatrix = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeImage")] + [NativeName(NativeNameType.Value, "25")] + TypeImage = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeSampler")] + [NativeName(NativeNameType.Value, "26")] + TypeSampler = unchecked(26), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeSampledImage")] + [NativeName(NativeNameType.Value, "27")] + TypeSampledImage = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeArray")] + [NativeName(NativeNameType.Value, "28")] + TypeArray = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeRuntimeArray")] + [NativeName(NativeNameType.Value, "29")] + TypeRuntimeArray = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeStruct")] + [NativeName(NativeNameType.Value, "30")] + TypeStruct = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeOpaque")] + [NativeName(NativeNameType.Value, "31")] + TypeOpaque = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SpvOpTypePointer")] + [NativeName(NativeNameType.Value, "32")] + TypePointer = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeFunction")] + [NativeName(NativeNameType.Value, "33")] + TypeFunction = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeEvent")] + [NativeName(NativeNameType.Value, "34")] + TypeEvent = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeDeviceEvent")] + [NativeName(NativeNameType.Value, "35")] + TypeDeviceEvent = unchecked(35), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeReserveId")] + [NativeName(NativeNameType.Value, "36")] + TypeReserveId = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeQueue")] + [NativeName(NativeNameType.Value, "37")] + TypeQueue = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SpvOpTypePipe")] + [NativeName(NativeNameType.Value, "38")] + TypePipe = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeForwardPointer")] + [NativeName(NativeNameType.Value, "39")] + TypeForwardPointer = unchecked(39), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantTrue")] + [NativeName(NativeNameType.Value, "41")] + ConstantTrue = unchecked(41), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantFalse")] + [NativeName(NativeNameType.Value, "42")] + ConstantFalse = unchecked(42), + [NativeName(NativeNameType.EnumItem, "SpvOpConstant")] + [NativeName(NativeNameType.Value, "43")] + Constant = unchecked(43), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantComposite")] + [NativeName(NativeNameType.Value, "44")] + ConstantComposite = unchecked(44), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantSampler")] + [NativeName(NativeNameType.Value, "45")] + ConstantSampler = unchecked(45), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantNull")] + [NativeName(NativeNameType.Value, "46")] + ConstantNull = unchecked(46), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantTrue")] + [NativeName(NativeNameType.Value, "48")] + SpecConstantTrue = unchecked(48), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantFalse")] + [NativeName(NativeNameType.Value, "49")] + SpecConstantFalse = unchecked(49), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstant")] + [NativeName(NativeNameType.Value, "50")] + SpecConstant = unchecked(50), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantComposite")] + [NativeName(NativeNameType.Value, "51")] + SpecConstantComposite = unchecked(51), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantOp")] + [NativeName(NativeNameType.Value, "52")] + SpecConstantOp = unchecked(52), + [NativeName(NativeNameType.EnumItem, "SpvOpFunction")] + [NativeName(NativeNameType.Value, "54")] + Function = unchecked(54), + [NativeName(NativeNameType.EnumItem, "SpvOpFunctionParameter")] + [NativeName(NativeNameType.Value, "55")] + FunctionParameter = unchecked(55), + [NativeName(NativeNameType.EnumItem, "SpvOpFunctionEnd")] + [NativeName(NativeNameType.Value, "56")] + FunctionEnd = unchecked(56), + [NativeName(NativeNameType.EnumItem, "SpvOpFunctionCall")] + [NativeName(NativeNameType.Value, "57")] + FunctionCall = unchecked(57), + [NativeName(NativeNameType.EnumItem, "SpvOpVariable")] + [NativeName(NativeNameType.Value, "59")] + Variable = unchecked(59), + [NativeName(NativeNameType.EnumItem, "SpvOpImageTexelPointer")] + [NativeName(NativeNameType.Value, "60")] + ImageTexelPointer = unchecked(60), + [NativeName(NativeNameType.EnumItem, "SpvOpLoad")] + [NativeName(NativeNameType.Value, "61")] + Load = unchecked(61), + [NativeName(NativeNameType.EnumItem, "SpvOpStore")] + [NativeName(NativeNameType.Value, "62")] + Store = unchecked(62), + [NativeName(NativeNameType.EnumItem, "SpvOpCopyMemory")] + [NativeName(NativeNameType.Value, "63")] + CopyMemory = unchecked(63), + [NativeName(NativeNameType.EnumItem, "SpvOpCopyMemorySized")] + [NativeName(NativeNameType.Value, "64")] + CopyMemorySized = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SpvOpAccessChain")] + [NativeName(NativeNameType.Value, "65")] + AccessChain = unchecked(65), + [NativeName(NativeNameType.EnumItem, "SpvOpInBoundsAccessChain")] + [NativeName(NativeNameType.Value, "66")] + InBoundsAccessChain = unchecked(66), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrAccessChain")] + [NativeName(NativeNameType.Value, "67")] + PtrAccessChain = unchecked(67), + [NativeName(NativeNameType.EnumItem, "SpvOpArrayLength")] + [NativeName(NativeNameType.Value, "68")] + ArrayLength = unchecked(68), + [NativeName(NativeNameType.EnumItem, "SpvOpGenericPtrMemSemantics")] + [NativeName(NativeNameType.Value, "69")] + GenericPtrMemSemantics = unchecked(69), + [NativeName(NativeNameType.EnumItem, "SpvOpInBoundsPtrAccessChain")] + [NativeName(NativeNameType.Value, "70")] + InBoundsPtrAccessChain = unchecked(70), + [NativeName(NativeNameType.EnumItem, "SpvOpDecorate")] + [NativeName(NativeNameType.Value, "71")] + Decorate = unchecked(71), + [NativeName(NativeNameType.EnumItem, "SpvOpMemberDecorate")] + [NativeName(NativeNameType.Value, "72")] + MemberDecorate = unchecked(72), + [NativeName(NativeNameType.EnumItem, "SpvOpDecorationGroup")] + [NativeName(NativeNameType.Value, "73")] + DecorationGroup = unchecked(73), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupDecorate")] + [NativeName(NativeNameType.Value, "74")] + GroupDecorate = unchecked(74), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupMemberDecorate")] + [NativeName(NativeNameType.Value, "75")] + GroupMemberDecorate = unchecked(75), + [NativeName(NativeNameType.EnumItem, "SpvOpVectorExtractDynamic")] + [NativeName(NativeNameType.Value, "77")] + VectorExtractDynamic = unchecked(77), + [NativeName(NativeNameType.EnumItem, "SpvOpVectorInsertDynamic")] + [NativeName(NativeNameType.Value, "78")] + VectorInsertDynamic = unchecked(78), + [NativeName(NativeNameType.EnumItem, "SpvOpVectorShuffle")] + [NativeName(NativeNameType.Value, "79")] + VectorShuffle = unchecked(79), + [NativeName(NativeNameType.EnumItem, "SpvOpCompositeConstruct")] + [NativeName(NativeNameType.Value, "80")] + CompositeConstruct = unchecked(80), + [NativeName(NativeNameType.EnumItem, "SpvOpCompositeExtract")] + [NativeName(NativeNameType.Value, "81")] + CompositeExtract = unchecked(81), + [NativeName(NativeNameType.EnumItem, "SpvOpCompositeInsert")] + [NativeName(NativeNameType.Value, "82")] + CompositeInsert = unchecked(82), + [NativeName(NativeNameType.EnumItem, "SpvOpCopyObject")] + [NativeName(NativeNameType.Value, "83")] + CopyObject = unchecked(83), + [NativeName(NativeNameType.EnumItem, "SpvOpTranspose")] + [NativeName(NativeNameType.Value, "84")] + Transpose = unchecked(84), + [NativeName(NativeNameType.EnumItem, "SpvOpSampledImage")] + [NativeName(NativeNameType.Value, "86")] + SampledImage = unchecked(86), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleImplicitLod")] + [NativeName(NativeNameType.Value, "87")] + ImageSampleImplicitLod = unchecked(87), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleExplicitLod")] + [NativeName(NativeNameType.Value, "88")] + ImageSampleExplicitLod = unchecked(88), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleDrefImplicitLod")] + [NativeName(NativeNameType.Value, "89")] + ImageSampleDrefImplicitLod = unchecked(89), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleDrefExplicitLod")] + [NativeName(NativeNameType.Value, "90")] + ImageSampleDrefExplicitLod = unchecked(90), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjImplicitLod")] + [NativeName(NativeNameType.Value, "91")] + ImageSampleProjImplicitLod = unchecked(91), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjExplicitLod")] + [NativeName(NativeNameType.Value, "92")] + ImageSampleProjExplicitLod = unchecked(92), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjDrefImplicitLod")] + [NativeName(NativeNameType.Value, "93")] + ImageSampleProjDrefImplicitLod = unchecked(93), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleProjDrefExplicitLod")] + [NativeName(NativeNameType.Value, "94")] + ImageSampleProjDrefExplicitLod = unchecked(94), + [NativeName(NativeNameType.EnumItem, "SpvOpImageFetch")] + [NativeName(NativeNameType.Value, "95")] + ImageFetch = unchecked(95), + [NativeName(NativeNameType.EnumItem, "SpvOpImageGather")] + [NativeName(NativeNameType.Value, "96")] + ImageGather = unchecked(96), + [NativeName(NativeNameType.EnumItem, "SpvOpImageDrefGather")] + [NativeName(NativeNameType.Value, "97")] + ImageDrefGather = unchecked(97), + [NativeName(NativeNameType.EnumItem, "SpvOpImageRead")] + [NativeName(NativeNameType.Value, "98")] + ImageRead = unchecked(98), + [NativeName(NativeNameType.EnumItem, "SpvOpImageWrite")] + [NativeName(NativeNameType.Value, "99")] + ImageWrite = unchecked(99), + [NativeName(NativeNameType.EnumItem, "SpvOpImage")] + [NativeName(NativeNameType.Value, "100")] + Image = unchecked(100), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryFormat")] + [NativeName(NativeNameType.Value, "101")] + ImageQueryFormat = unchecked(101), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryOrder")] + [NativeName(NativeNameType.Value, "102")] + ImageQueryOrder = unchecked(102), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQuerySizeLod")] + [NativeName(NativeNameType.Value, "103")] + ImageQuerySizeLod = unchecked(103), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQuerySize")] + [NativeName(NativeNameType.Value, "104")] + ImageQuerySize = unchecked(104), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryLod")] + [NativeName(NativeNameType.Value, "105")] + ImageQueryLod = unchecked(105), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQueryLevels")] + [NativeName(NativeNameType.Value, "106")] + ImageQueryLevels = unchecked(106), + [NativeName(NativeNameType.EnumItem, "SpvOpImageQuerySamples")] + [NativeName(NativeNameType.Value, "107")] + ImageQuerySamples = unchecked(107), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertFToU")] + [NativeName(NativeNameType.Value, "109")] + ConvertfTou = unchecked(109), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertFToS")] + [NativeName(NativeNameType.Value, "110")] + ConvertfTos = unchecked(110), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertSToF")] + [NativeName(NativeNameType.Value, "111")] + ConvertsTof = unchecked(111), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToF")] + [NativeName(NativeNameType.Value, "112")] + ConvertuTof = unchecked(112), + [NativeName(NativeNameType.EnumItem, "SpvOpUConvert")] + [NativeName(NativeNameType.Value, "113")] + OpuConvert = unchecked(113), + [NativeName(NativeNameType.EnumItem, "SpvOpSConvert")] + [NativeName(NativeNameType.Value, "114")] + OpsConvert = unchecked(114), + [NativeName(NativeNameType.EnumItem, "SpvOpFConvert")] + [NativeName(NativeNameType.Value, "115")] + OpfConvert = unchecked(115), + [NativeName(NativeNameType.EnumItem, "SpvOpQuantizeToF16")] + [NativeName(NativeNameType.Value, "116")] + QuantizeTof16 = unchecked(116), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertPtrToU")] + [NativeName(NativeNameType.Value, "117")] + ConvertPtrTou = unchecked(117), + [NativeName(NativeNameType.EnumItem, "SpvOpSatConvertSToU")] + [NativeName(NativeNameType.Value, "118")] + SatConvertsTou = unchecked(118), + [NativeName(NativeNameType.EnumItem, "SpvOpSatConvertUToS")] + [NativeName(NativeNameType.Value, "119")] + SatConvertuTos = unchecked(119), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToPtr")] + [NativeName(NativeNameType.Value, "120")] + ConvertuToPtr = unchecked(120), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrCastToGeneric")] + [NativeName(NativeNameType.Value, "121")] + PtrCastToGeneric = unchecked(121), + [NativeName(NativeNameType.EnumItem, "SpvOpGenericCastToPtr")] + [NativeName(NativeNameType.Value, "122")] + GenericCastToPtr = unchecked(122), + [NativeName(NativeNameType.EnumItem, "SpvOpGenericCastToPtrExplicit")] + [NativeName(NativeNameType.Value, "123")] + GenericCastToPtrExplicit = unchecked(123), + [NativeName(NativeNameType.EnumItem, "SpvOpBitcast")] + [NativeName(NativeNameType.Value, "124")] + Bitcast = unchecked(124), + [NativeName(NativeNameType.EnumItem, "SpvOpSNegate")] + [NativeName(NativeNameType.Value, "126")] + OpsNegate = unchecked(126), + [NativeName(NativeNameType.EnumItem, "SpvOpFNegate")] + [NativeName(NativeNameType.Value, "127")] + OpfNegate = unchecked(127), + [NativeName(NativeNameType.EnumItem, "SpvOpIAdd")] + [NativeName(NativeNameType.Value, "128")] + OpiAdd = unchecked(128), + [NativeName(NativeNameType.EnumItem, "SpvOpFAdd")] + [NativeName(NativeNameType.Value, "129")] + OpfAdd = unchecked(129), + [NativeName(NativeNameType.EnumItem, "SpvOpISub")] + [NativeName(NativeNameType.Value, "130")] + OpiSub = unchecked(130), + [NativeName(NativeNameType.EnumItem, "SpvOpFSub")] + [NativeName(NativeNameType.Value, "131")] + OpfSub = unchecked(131), + [NativeName(NativeNameType.EnumItem, "SpvOpIMul")] + [NativeName(NativeNameType.Value, "132")] + OpiMul = unchecked(132), + [NativeName(NativeNameType.EnumItem, "SpvOpFMul")] + [NativeName(NativeNameType.Value, "133")] + OpfMul = unchecked(133), + [NativeName(NativeNameType.EnumItem, "SpvOpUDiv")] + [NativeName(NativeNameType.Value, "134")] + OpuDiv = unchecked(134), + [NativeName(NativeNameType.EnumItem, "SpvOpSDiv")] + [NativeName(NativeNameType.Value, "135")] + OpsDiv = unchecked(135), + [NativeName(NativeNameType.EnumItem, "SpvOpFDiv")] + [NativeName(NativeNameType.Value, "136")] + OpfDiv = unchecked(136), + [NativeName(NativeNameType.EnumItem, "SpvOpUMod")] + [NativeName(NativeNameType.Value, "137")] + OpuMod = unchecked(137), + [NativeName(NativeNameType.EnumItem, "SpvOpSRem")] + [NativeName(NativeNameType.Value, "138")] + OpsRem = unchecked(138), + [NativeName(NativeNameType.EnumItem, "SpvOpSMod")] + [NativeName(NativeNameType.Value, "139")] + OpsMod = unchecked(139), + [NativeName(NativeNameType.EnumItem, "SpvOpFRem")] + [NativeName(NativeNameType.Value, "140")] + OpfRem = unchecked(140), + [NativeName(NativeNameType.EnumItem, "SpvOpFMod")] + [NativeName(NativeNameType.Value, "141")] + OpfMod = unchecked(141), + [NativeName(NativeNameType.EnumItem, "SpvOpVectorTimesScalar")] + [NativeName(NativeNameType.Value, "142")] + VectorTimesScalar = unchecked(142), + [NativeName(NativeNameType.EnumItem, "SpvOpMatrixTimesScalar")] + [NativeName(NativeNameType.Value, "143")] + MatrixTimesScalar = unchecked(143), + [NativeName(NativeNameType.EnumItem, "SpvOpVectorTimesMatrix")] + [NativeName(NativeNameType.Value, "144")] + VectorTimesMatrix = unchecked(144), + [NativeName(NativeNameType.EnumItem, "SpvOpMatrixTimesVector")] + [NativeName(NativeNameType.Value, "145")] + MatrixTimesVector = unchecked(145), + [NativeName(NativeNameType.EnumItem, "SpvOpMatrixTimesMatrix")] + [NativeName(NativeNameType.Value, "146")] + MatrixTimesMatrix = unchecked(146), + [NativeName(NativeNameType.EnumItem, "SpvOpOuterProduct")] + [NativeName(NativeNameType.Value, "147")] + OuterProduct = unchecked(147), + [NativeName(NativeNameType.EnumItem, "SpvOpDot")] + [NativeName(NativeNameType.Value, "148")] + Dot = unchecked(148), + [NativeName(NativeNameType.EnumItem, "SpvOpIAddCarry")] + [NativeName(NativeNameType.Value, "149")] + OpiAddCarry = unchecked(149), + [NativeName(NativeNameType.EnumItem, "SpvOpISubBorrow")] + [NativeName(NativeNameType.Value, "150")] + OpiSubBorrow = unchecked(150), + [NativeName(NativeNameType.EnumItem, "SpvOpUMulExtended")] + [NativeName(NativeNameType.Value, "151")] + OpuMulExtended = unchecked(151), + [NativeName(NativeNameType.EnumItem, "SpvOpSMulExtended")] + [NativeName(NativeNameType.Value, "152")] + OpsMulExtended = unchecked(152), + [NativeName(NativeNameType.EnumItem, "SpvOpAny")] + [NativeName(NativeNameType.Value, "154")] + Any = unchecked(154), + [NativeName(NativeNameType.EnumItem, "SpvOpAll")] + [NativeName(NativeNameType.Value, "155")] + All = unchecked(155), + [NativeName(NativeNameType.EnumItem, "SpvOpIsNan")] + [NativeName(NativeNameType.Value, "156")] + IsNan = unchecked(156), + [NativeName(NativeNameType.EnumItem, "SpvOpIsInf")] + [NativeName(NativeNameType.Value, "157")] + IsInf = unchecked(157), + [NativeName(NativeNameType.EnumItem, "SpvOpIsFinite")] + [NativeName(NativeNameType.Value, "158")] + IsFinite = unchecked(158), + [NativeName(NativeNameType.EnumItem, "SpvOpIsNormal")] + [NativeName(NativeNameType.Value, "159")] + IsNormal = unchecked(159), + [NativeName(NativeNameType.EnumItem, "SpvOpSignBitSet")] + [NativeName(NativeNameType.Value, "160")] + SignSet = unchecked(160), + [NativeName(NativeNameType.EnumItem, "SpvOpLessOrGreater")] + [NativeName(NativeNameType.Value, "161")] + LessOrGreater = unchecked(161), + [NativeName(NativeNameType.EnumItem, "SpvOpOrdered")] + [NativeName(NativeNameType.Value, "162")] + Ordered = unchecked(162), + [NativeName(NativeNameType.EnumItem, "SpvOpUnordered")] + [NativeName(NativeNameType.Value, "163")] + Unordered = unchecked(163), + [NativeName(NativeNameType.EnumItem, "SpvOpLogicalEqual")] + [NativeName(NativeNameType.Value, "164")] + LogicalEqual = unchecked(164), + [NativeName(NativeNameType.EnumItem, "SpvOpLogicalNotEqual")] + [NativeName(NativeNameType.Value, "165")] + LogicalNotEqual = unchecked(165), + [NativeName(NativeNameType.EnumItem, "SpvOpLogicalOr")] + [NativeName(NativeNameType.Value, "166")] + LogicalOr = unchecked(166), + [NativeName(NativeNameType.EnumItem, "SpvOpLogicalAnd")] + [NativeName(NativeNameType.Value, "167")] + LogicalAnd = unchecked(167), + [NativeName(NativeNameType.EnumItem, "SpvOpLogicalNot")] + [NativeName(NativeNameType.Value, "168")] + LogicalNot = unchecked(168), + [NativeName(NativeNameType.EnumItem, "SpvOpSelect")] + [NativeName(NativeNameType.Value, "169")] + Select = unchecked(169), + [NativeName(NativeNameType.EnumItem, "SpvOpIEqual")] + [NativeName(NativeNameType.Value, "170")] + OpiEqual = unchecked(170), + [NativeName(NativeNameType.EnumItem, "SpvOpINotEqual")] + [NativeName(NativeNameType.Value, "171")] + OpiNotEqual = unchecked(171), + [NativeName(NativeNameType.EnumItem, "SpvOpUGreaterThan")] + [NativeName(NativeNameType.Value, "172")] + OpuGreaterThan = unchecked(172), + [NativeName(NativeNameType.EnumItem, "SpvOpSGreaterThan")] + [NativeName(NativeNameType.Value, "173")] + OpsGreaterThan = unchecked(173), + [NativeName(NativeNameType.EnumItem, "SpvOpUGreaterThanEqual")] + [NativeName(NativeNameType.Value, "174")] + OpuGreaterThanEqual = unchecked(174), + [NativeName(NativeNameType.EnumItem, "SpvOpSGreaterThanEqual")] + [NativeName(NativeNameType.Value, "175")] + OpsGreaterThanEqual = unchecked(175), + [NativeName(NativeNameType.EnumItem, "SpvOpULessThan")] + [NativeName(NativeNameType.Value, "176")] + OpuLessThan = unchecked(176), + [NativeName(NativeNameType.EnumItem, "SpvOpSLessThan")] + [NativeName(NativeNameType.Value, "177")] + OpsLessThan = unchecked(177), + [NativeName(NativeNameType.EnumItem, "SpvOpULessThanEqual")] + [NativeName(NativeNameType.Value, "178")] + OpuLessThanEqual = unchecked(178), + [NativeName(NativeNameType.EnumItem, "SpvOpSLessThanEqual")] + [NativeName(NativeNameType.Value, "179")] + OpsLessThanEqual = unchecked(179), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdEqual")] + [NativeName(NativeNameType.Value, "180")] + OpfOrdEqual = unchecked(180), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordEqual")] + [NativeName(NativeNameType.Value, "181")] + OpfUnordEqual = unchecked(181), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdNotEqual")] + [NativeName(NativeNameType.Value, "182")] + OpfOrdNotEqual = unchecked(182), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordNotEqual")] + [NativeName(NativeNameType.Value, "183")] + OpfUnordNotEqual = unchecked(183), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdLessThan")] + [NativeName(NativeNameType.Value, "184")] + OpfOrdLessThan = unchecked(184), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordLessThan")] + [NativeName(NativeNameType.Value, "185")] + OpfUnordLessThan = unchecked(185), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdGreaterThan")] + [NativeName(NativeNameType.Value, "186")] + OpfOrdGreaterThan = unchecked(186), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordGreaterThan")] + [NativeName(NativeNameType.Value, "187")] + OpfUnordGreaterThan = unchecked(187), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdLessThanEqual")] + [NativeName(NativeNameType.Value, "188")] + OpfOrdLessThanEqual = unchecked(188), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordLessThanEqual")] + [NativeName(NativeNameType.Value, "189")] + OpfUnordLessThanEqual = unchecked(189), + [NativeName(NativeNameType.EnumItem, "SpvOpFOrdGreaterThanEqual")] + [NativeName(NativeNameType.Value, "190")] + OpfOrdGreaterThanEqual = unchecked(190), + [NativeName(NativeNameType.EnumItem, "SpvOpFUnordGreaterThanEqual")] + [NativeName(NativeNameType.Value, "191")] + OpfUnordGreaterThanEqual = unchecked(191), + [NativeName(NativeNameType.EnumItem, "SpvOpShiftRightLogical")] + [NativeName(NativeNameType.Value, "194")] + ShiftRightLogical = unchecked(194), + [NativeName(NativeNameType.EnumItem, "SpvOpShiftRightArithmetic")] + [NativeName(NativeNameType.Value, "195")] + ShiftRightArithmetic = unchecked(195), + [NativeName(NativeNameType.EnumItem, "SpvOpShiftLeftLogical")] + [NativeName(NativeNameType.Value, "196")] + ShiftLeftLogical = unchecked(196), + [NativeName(NativeNameType.EnumItem, "SpvOpBitwiseOr")] + [NativeName(NativeNameType.Value, "197")] + BitwiseOr = unchecked(197), + [NativeName(NativeNameType.EnumItem, "SpvOpBitwiseXor")] + [NativeName(NativeNameType.Value, "198")] + BitwiseXor = unchecked(198), + [NativeName(NativeNameType.EnumItem, "SpvOpBitwiseAnd")] + [NativeName(NativeNameType.Value, "199")] + BitwiseAnd = unchecked(199), + [NativeName(NativeNameType.EnumItem, "SpvOpNot")] + [NativeName(NativeNameType.Value, "200")] + Not = unchecked(200), + [NativeName(NativeNameType.EnumItem, "SpvOpBitFieldInsert")] + [NativeName(NativeNameType.Value, "201")] + FieldInsert = unchecked(201), + [NativeName(NativeNameType.EnumItem, "SpvOpBitFieldSExtract")] + [NativeName(NativeNameType.Value, "202")] + FieldsExtract = unchecked(202), + [NativeName(NativeNameType.EnumItem, "SpvOpBitFieldUExtract")] + [NativeName(NativeNameType.Value, "203")] + FielduExtract = unchecked(203), + [NativeName(NativeNameType.EnumItem, "SpvOpBitReverse")] + [NativeName(NativeNameType.Value, "204")] + Reverse = unchecked(204), + [NativeName(NativeNameType.EnumItem, "SpvOpBitCount")] + [NativeName(NativeNameType.Value, "205")] + Count = unchecked(205), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdx")] + [NativeName(NativeNameType.Value, "207")] + OpdPdx = unchecked(207), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdy")] + [NativeName(NativeNameType.Value, "208")] + OpdPdy = unchecked(208), + [NativeName(NativeNameType.EnumItem, "SpvOpFwidth")] + [NativeName(NativeNameType.Value, "209")] + Fwidth = unchecked(209), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdxFine")] + [NativeName(NativeNameType.Value, "210")] + OpdPdxFine = unchecked(210), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdyFine")] + [NativeName(NativeNameType.Value, "211")] + OpdPdyFine = unchecked(211), + [NativeName(NativeNameType.EnumItem, "SpvOpFwidthFine")] + [NativeName(NativeNameType.Value, "212")] + FwidthFine = unchecked(212), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdxCoarse")] + [NativeName(NativeNameType.Value, "213")] + OpdPdxCoarse = unchecked(213), + [NativeName(NativeNameType.EnumItem, "SpvOpDPdyCoarse")] + [NativeName(NativeNameType.Value, "214")] + OpdPdyCoarse = unchecked(214), + [NativeName(NativeNameType.EnumItem, "SpvOpFwidthCoarse")] + [NativeName(NativeNameType.Value, "215")] + FwidthCoarse = unchecked(215), + [NativeName(NativeNameType.EnumItem, "SpvOpEmitVertex")] + [NativeName(NativeNameType.Value, "218")] + EmitVertex = unchecked(218), + [NativeName(NativeNameType.EnumItem, "SpvOpEndPrimitive")] + [NativeName(NativeNameType.Value, "219")] + EndPrimitive = unchecked(219), + [NativeName(NativeNameType.EnumItem, "SpvOpEmitStreamVertex")] + [NativeName(NativeNameType.Value, "220")] + EmitStreamVertex = unchecked(220), + [NativeName(NativeNameType.EnumItem, "SpvOpEndStreamPrimitive")] + [NativeName(NativeNameType.Value, "221")] + EndStreamPrimitive = unchecked(221), + [NativeName(NativeNameType.EnumItem, "SpvOpControlBarrier")] + [NativeName(NativeNameType.Value, "224")] + ControlBarrier = unchecked(224), + [NativeName(NativeNameType.EnumItem, "SpvOpMemoryBarrier")] + [NativeName(NativeNameType.Value, "225")] + MemoryBarrier = unchecked(225), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicLoad")] + [NativeName(NativeNameType.Value, "227")] + AtomicLoad = unchecked(227), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicStore")] + [NativeName(NativeNameType.Value, "228")] + AtomicStore = unchecked(228), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicExchange")] + [NativeName(NativeNameType.Value, "229")] + AtomicExchange = unchecked(229), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicCompareExchange")] + [NativeName(NativeNameType.Value, "230")] + AtomicCompareExchange = unchecked(230), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicCompareExchangeWeak")] + [NativeName(NativeNameType.Value, "231")] + AtomicCompareExchangeWeak = unchecked(231), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicIIncrement")] + [NativeName(NativeNameType.Value, "232")] + AtomiciIncrement = unchecked(232), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicIDecrement")] + [NativeName(NativeNameType.Value, "233")] + AtomiciDecrement = unchecked(233), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicIAdd")] + [NativeName(NativeNameType.Value, "234")] + AtomiciAdd = unchecked(234), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicISub")] + [NativeName(NativeNameType.Value, "235")] + AtomiciSub = unchecked(235), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicSMin")] + [NativeName(NativeNameType.Value, "236")] + AtomicsMin = unchecked(236), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicUMin")] + [NativeName(NativeNameType.Value, "237")] + AtomicuMin = unchecked(237), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicSMax")] + [NativeName(NativeNameType.Value, "238")] + AtomicsMax = unchecked(238), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicUMax")] + [NativeName(NativeNameType.Value, "239")] + AtomicuMax = unchecked(239), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicAnd")] + [NativeName(NativeNameType.Value, "240")] + AtomicAnd = unchecked(240), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicOr")] + [NativeName(NativeNameType.Value, "241")] + AtomicOr = unchecked(241), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicXor")] + [NativeName(NativeNameType.Value, "242")] + AtomicXor = unchecked(242), + [NativeName(NativeNameType.EnumItem, "SpvOpPhi")] + [NativeName(NativeNameType.Value, "245")] + Phi = unchecked(245), + [NativeName(NativeNameType.EnumItem, "SpvOpLoopMerge")] + [NativeName(NativeNameType.Value, "246")] + LoopMerge = unchecked(246), + [NativeName(NativeNameType.EnumItem, "SpvOpSelectionMerge")] + [NativeName(NativeNameType.Value, "247")] + SelectionMerge = unchecked(247), + [NativeName(NativeNameType.EnumItem, "SpvOpLabel")] + [NativeName(NativeNameType.Value, "248")] + Label = unchecked(248), + [NativeName(NativeNameType.EnumItem, "SpvOpBranch")] + [NativeName(NativeNameType.Value, "249")] + Branch = unchecked(249), + [NativeName(NativeNameType.EnumItem, "SpvOpBranchConditional")] + [NativeName(NativeNameType.Value, "250")] + BranchConditional = unchecked(250), + [NativeName(NativeNameType.EnumItem, "SpvOpSwitch")] + [NativeName(NativeNameType.Value, "251")] + Switch = unchecked(251), + [NativeName(NativeNameType.EnumItem, "SpvOpKill")] + [NativeName(NativeNameType.Value, "252")] + Kill = unchecked(252), + [NativeName(NativeNameType.EnumItem, "SpvOpReturn")] + [NativeName(NativeNameType.Value, "253")] + Return = unchecked(253), + [NativeName(NativeNameType.EnumItem, "SpvOpReturnValue")] + [NativeName(NativeNameType.Value, "254")] + ReturnValue = unchecked(254), + [NativeName(NativeNameType.EnumItem, "SpvOpUnreachable")] + [NativeName(NativeNameType.Value, "255")] + Unreachable = unchecked(255), + [NativeName(NativeNameType.EnumItem, "SpvOpLifetimeStart")] + [NativeName(NativeNameType.Value, "256")] + LifetimeStart = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SpvOpLifetimeStop")] + [NativeName(NativeNameType.Value, "257")] + LifetimeStop = unchecked(257), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupAsyncCopy")] + [NativeName(NativeNameType.Value, "259")] + GroupAsyncCopy = unchecked(259), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupWaitEvents")] + [NativeName(NativeNameType.Value, "260")] + GroupWaitEvents = unchecked(260), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupAll")] + [NativeName(NativeNameType.Value, "261")] + GroupAll = unchecked(261), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupAny")] + [NativeName(NativeNameType.Value, "262")] + GroupAny = unchecked(262), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupBroadcast")] + [NativeName(NativeNameType.Value, "263")] + GroupBroadcast = unchecked(263), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupIAdd")] + [NativeName(NativeNameType.Value, "264")] + GroupiAdd = unchecked(264), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFAdd")] + [NativeName(NativeNameType.Value, "265")] + GroupfAdd = unchecked(265), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMin")] + [NativeName(NativeNameType.Value, "266")] + GroupfMin = unchecked(266), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMin")] + [NativeName(NativeNameType.Value, "267")] + GroupuMin = unchecked(267), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMin")] + [NativeName(NativeNameType.Value, "268")] + GroupsMin = unchecked(268), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMax")] + [NativeName(NativeNameType.Value, "269")] + GroupfMax = unchecked(269), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMax")] + [NativeName(NativeNameType.Value, "270")] + GroupuMax = unchecked(270), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMax")] + [NativeName(NativeNameType.Value, "271")] + GroupsMax = unchecked(271), + [NativeName(NativeNameType.EnumItem, "SpvOpReadPipe")] + [NativeName(NativeNameType.Value, "274")] + ReadPipe = unchecked(274), + [NativeName(NativeNameType.EnumItem, "SpvOpWritePipe")] + [NativeName(NativeNameType.Value, "275")] + WritePipe = unchecked(275), + [NativeName(NativeNameType.EnumItem, "SpvOpReservedReadPipe")] + [NativeName(NativeNameType.Value, "276")] + ReservedReadPipe = unchecked(276), + [NativeName(NativeNameType.EnumItem, "SpvOpReservedWritePipe")] + [NativeName(NativeNameType.Value, "277")] + ReservedWritePipe = unchecked(277), + [NativeName(NativeNameType.EnumItem, "SpvOpReserveReadPipePackets")] + [NativeName(NativeNameType.Value, "278")] + ReserveReadPipePackets = unchecked(278), + [NativeName(NativeNameType.EnumItem, "SpvOpReserveWritePipePackets")] + [NativeName(NativeNameType.Value, "279")] + ReserveWritePipePackets = unchecked(279), + [NativeName(NativeNameType.EnumItem, "SpvOpCommitReadPipe")] + [NativeName(NativeNameType.Value, "280")] + CommitReadPipe = unchecked(280), + [NativeName(NativeNameType.EnumItem, "SpvOpCommitWritePipe")] + [NativeName(NativeNameType.Value, "281")] + CommitWritePipe = unchecked(281), + [NativeName(NativeNameType.EnumItem, "SpvOpIsValidReserveId")] + [NativeName(NativeNameType.Value, "282")] + IsValidReserveId = unchecked(282), + [NativeName(NativeNameType.EnumItem, "SpvOpGetNumPipePackets")] + [NativeName(NativeNameType.Value, "283")] + GetNumPipePackets = unchecked(283), + [NativeName(NativeNameType.EnumItem, "SpvOpGetMaxPipePackets")] + [NativeName(NativeNameType.Value, "284")] + GetMaxPipePackets = unchecked(284), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupReserveReadPipePackets")] + [NativeName(NativeNameType.Value, "285")] + GroupReserveReadPipePackets = unchecked(285), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupReserveWritePipePackets")] + [NativeName(NativeNameType.Value, "286")] + GroupReserveWritePipePackets = unchecked(286), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupCommitReadPipe")] + [NativeName(NativeNameType.Value, "287")] + GroupCommitReadPipe = unchecked(287), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupCommitWritePipe")] + [NativeName(NativeNameType.Value, "288")] + GroupCommitWritePipe = unchecked(288), + [NativeName(NativeNameType.EnumItem, "SpvOpEnqueueMarker")] + [NativeName(NativeNameType.Value, "291")] + EnqueueMarker = unchecked(291), + [NativeName(NativeNameType.EnumItem, "SpvOpEnqueueKernel")] + [NativeName(NativeNameType.Value, "292")] + EnqueueKernel = unchecked(292), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelNDrangeSubGroupCount")] + [NativeName(NativeNameType.Value, "293")] + GetKernelnDrangeSubGroupCount = unchecked(293), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelNDrangeMaxSubGroupSize")] + [NativeName(NativeNameType.Value, "294")] + GetKernelnDrangeMaxSubGroupSize = unchecked(294), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelWorkGroupSize")] + [NativeName(NativeNameType.Value, "295")] + GetKernelWorkGroupSize = unchecked(295), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelPreferredWorkGroupSizeMultiple")] + [NativeName(NativeNameType.Value, "296")] + GetKernelPreferredWorkGroupSizeMultiple = unchecked(296), + [NativeName(NativeNameType.EnumItem, "SpvOpRetainEvent")] + [NativeName(NativeNameType.Value, "297")] + RetainEvent = unchecked(297), + [NativeName(NativeNameType.EnumItem, "SpvOpReleaseEvent")] + [NativeName(NativeNameType.Value, "298")] + ReleaseEvent = unchecked(298), + [NativeName(NativeNameType.EnumItem, "SpvOpCreateUserEvent")] + [NativeName(NativeNameType.Value, "299")] + CreateUserEvent = unchecked(299), + [NativeName(NativeNameType.EnumItem, "SpvOpIsValidEvent")] + [NativeName(NativeNameType.Value, "300")] + IsValidEvent = unchecked(300), + [NativeName(NativeNameType.EnumItem, "SpvOpSetUserEventStatus")] + [NativeName(NativeNameType.Value, "301")] + SetUserEventStatus = unchecked(301), + [NativeName(NativeNameType.EnumItem, "SpvOpCaptureEventProfilingInfo")] + [NativeName(NativeNameType.Value, "302")] + CaptureEventProfilingInfo = unchecked(302), + [NativeName(NativeNameType.EnumItem, "SpvOpGetDefaultQueue")] + [NativeName(NativeNameType.Value, "303")] + GetDefaultQueue = unchecked(303), + [NativeName(NativeNameType.EnumItem, "SpvOpBuildNDRange")] + [NativeName(NativeNameType.Value, "304")] + BuildNdRange = unchecked(304), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleImplicitLod")] + [NativeName(NativeNameType.Value, "305")] + ImageSparseSampleImplicitLod = unchecked(305), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleExplicitLod")] + [NativeName(NativeNameType.Value, "306")] + ImageSparseSampleExplicitLod = unchecked(306), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleDrefImplicitLod")] + [NativeName(NativeNameType.Value, "307")] + ImageSparseSampleDrefImplicitLod = unchecked(307), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleDrefExplicitLod")] + [NativeName(NativeNameType.Value, "308")] + ImageSparseSampleDrefExplicitLod = unchecked(308), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjImplicitLod")] + [NativeName(NativeNameType.Value, "309")] + ImageSparseSampleProjImplicitLod = unchecked(309), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjExplicitLod")] + [NativeName(NativeNameType.Value, "310")] + ImageSparseSampleProjExplicitLod = unchecked(310), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjDrefImplicitLod")] + [NativeName(NativeNameType.Value, "311")] + ImageSparseSampleProjDrefImplicitLod = unchecked(311), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseSampleProjDrefExplicitLod")] + [NativeName(NativeNameType.Value, "312")] + ImageSparseSampleProjDrefExplicitLod = unchecked(312), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseFetch")] + [NativeName(NativeNameType.Value, "313")] + ImageSparseFetch = unchecked(313), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseGather")] + [NativeName(NativeNameType.Value, "314")] + ImageSparseGather = unchecked(314), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseDrefGather")] + [NativeName(NativeNameType.Value, "315")] + ImageSparseDrefGather = unchecked(315), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseTexelsResident")] + [NativeName(NativeNameType.Value, "316")] + ImageSparseTexelsResident = unchecked(316), + [NativeName(NativeNameType.EnumItem, "SpvOpNoLine")] + [NativeName(NativeNameType.Value, "317")] + NoLine = unchecked(317), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFlagTestAndSet")] + [NativeName(NativeNameType.Value, "318")] + AtomicFlagTestAndSet = unchecked(318), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFlagClear")] + [NativeName(NativeNameType.Value, "319")] + AtomicFlagClear = unchecked(319), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSparseRead")] + [NativeName(NativeNameType.Value, "320")] + ImageSparseRead = unchecked(320), + [NativeName(NativeNameType.EnumItem, "SpvOpSizeOf")] + [NativeName(NativeNameType.Value, "321")] + SizeOf = unchecked(321), + [NativeName(NativeNameType.EnumItem, "SpvOpTypePipeStorage")] + [NativeName(NativeNameType.Value, "322")] + TypePipeStorage = unchecked(322), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantPipeStorage")] + [NativeName(NativeNameType.Value, "323")] + ConstantPipeStorage = unchecked(323), + [NativeName(NativeNameType.EnumItem, "SpvOpCreatePipeFromPipeStorage")] + [NativeName(NativeNameType.Value, "324")] + CreatePipeFromPipeStorage = unchecked(324), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelLocalSizeForSubgroupCount")] + [NativeName(NativeNameType.Value, "325")] + GetKernelLocalSizeForSubgroupCount = unchecked(325), + [NativeName(NativeNameType.EnumItem, "SpvOpGetKernelMaxNumSubgroups")] + [NativeName(NativeNameType.Value, "326")] + GetKernelMaxNumSubgroups = unchecked(326), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeNamedBarrier")] + [NativeName(NativeNameType.Value, "327")] + TypeNamedBarrier = unchecked(327), + [NativeName(NativeNameType.EnumItem, "SpvOpNamedBarrierInitialize")] + [NativeName(NativeNameType.Value, "328")] + NamedBarrierInitialize = unchecked(328), + [NativeName(NativeNameType.EnumItem, "SpvOpMemoryNamedBarrier")] + [NativeName(NativeNameType.Value, "329")] + MemoryNamedBarrier = unchecked(329), + [NativeName(NativeNameType.EnumItem, "SpvOpModuleProcessed")] + [NativeName(NativeNameType.Value, "330")] + ModuleProcessed = unchecked(330), + [NativeName(NativeNameType.EnumItem, "SpvOpExecutionModeId")] + [NativeName(NativeNameType.Value, "331")] + ExecutionModeId = unchecked(331), + [NativeName(NativeNameType.EnumItem, "SpvOpDecorateId")] + [NativeName(NativeNameType.Value, "332")] + DecorateId = unchecked(332), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformElect")] + [NativeName(NativeNameType.Value, "333")] + GroupNonUniformElect = unchecked(333), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformAll")] + [NativeName(NativeNameType.Value, "334")] + GroupNonUniformAll = unchecked(334), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformAny")] + [NativeName(NativeNameType.Value, "335")] + GroupNonUniformAny = unchecked(335), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformAllEqual")] + [NativeName(NativeNameType.Value, "336")] + GroupNonUniformAllEqual = unchecked(336), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBroadcast")] + [NativeName(NativeNameType.Value, "337")] + GroupNonUniformBroadcast = unchecked(337), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBroadcastFirst")] + [NativeName(NativeNameType.Value, "338")] + GroupNonUniformBroadcastFirst = unchecked(338), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallot")] + [NativeName(NativeNameType.Value, "339")] + GroupNonUniformBallot = unchecked(339), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformInverseBallot")] + [NativeName(NativeNameType.Value, "340")] + GroupNonUniformInverseBallot = unchecked(340), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotBitExtract")] + [NativeName(NativeNameType.Value, "341")] + GroupNonUniformBallotExtract = unchecked(341), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotBitCount")] + [NativeName(NativeNameType.Value, "342")] + GroupNonUniformBallotCount = unchecked(342), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotFindLSB")] + [NativeName(NativeNameType.Value, "343")] + GroupNonUniformBallotFindLsb = unchecked(343), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBallotFindMSB")] + [NativeName(NativeNameType.Value, "344")] + GroupNonUniformBallotFindMsb = unchecked(344), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffle")] + [NativeName(NativeNameType.Value, "345")] + GroupNonUniformShuffle = unchecked(345), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffleXor")] + [NativeName(NativeNameType.Value, "346")] + GroupNonUniformShuffleXor = unchecked(346), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffleUp")] + [NativeName(NativeNameType.Value, "347")] + GroupNonUniformShuffleUp = unchecked(347), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformShuffleDown")] + [NativeName(NativeNameType.Value, "348")] + GroupNonUniformShuffleDown = unchecked(348), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformIAdd")] + [NativeName(NativeNameType.Value, "349")] + GroupNonUniformiAdd = unchecked(349), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFAdd")] + [NativeName(NativeNameType.Value, "350")] + GroupNonUniformfAdd = unchecked(350), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformIMul")] + [NativeName(NativeNameType.Value, "351")] + GroupNonUniformiMul = unchecked(351), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFMul")] + [NativeName(NativeNameType.Value, "352")] + GroupNonUniformfMul = unchecked(352), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformSMin")] + [NativeName(NativeNameType.Value, "353")] + GroupNonUniformsMin = unchecked(353), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformUMin")] + [NativeName(NativeNameType.Value, "354")] + GroupNonUniformuMin = unchecked(354), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFMin")] + [NativeName(NativeNameType.Value, "355")] + GroupNonUniformfMin = unchecked(355), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformSMax")] + [NativeName(NativeNameType.Value, "356")] + GroupNonUniformsMax = unchecked(356), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformUMax")] + [NativeName(NativeNameType.Value, "357")] + GroupNonUniformuMax = unchecked(357), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformFMax")] + [NativeName(NativeNameType.Value, "358")] + GroupNonUniformfMax = unchecked(358), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBitwiseAnd")] + [NativeName(NativeNameType.Value, "359")] + GroupNonUniformBitwiseAnd = unchecked(359), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBitwiseOr")] + [NativeName(NativeNameType.Value, "360")] + GroupNonUniformBitwiseOr = unchecked(360), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformBitwiseXor")] + [NativeName(NativeNameType.Value, "361")] + GroupNonUniformBitwiseXor = unchecked(361), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformLogicalAnd")] + [NativeName(NativeNameType.Value, "362")] + GroupNonUniformLogicalAnd = unchecked(362), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformLogicalOr")] + [NativeName(NativeNameType.Value, "363")] + GroupNonUniformLogicalOr = unchecked(363), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformLogicalXor")] + [NativeName(NativeNameType.Value, "364")] + GroupNonUniformLogicalXor = unchecked(364), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformQuadBroadcast")] + [NativeName(NativeNameType.Value, "365")] + GroupNonUniformQuadBroadcast = unchecked(365), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformQuadSwap")] + [NativeName(NativeNameType.Value, "366")] + GroupNonUniformQuadSwap = unchecked(366), + [NativeName(NativeNameType.EnumItem, "SpvOpCopyLogical")] + [NativeName(NativeNameType.Value, "400")] + CopyLogical = unchecked(400), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrEqual")] + [NativeName(NativeNameType.Value, "401")] + PtrEqual = unchecked(401), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrNotEqual")] + [NativeName(NativeNameType.Value, "402")] + PtrNotEqual = unchecked(402), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrDiff")] + [NativeName(NativeNameType.Value, "403")] + PtrDiff = unchecked(403), + [NativeName(NativeNameType.EnumItem, "SpvOpColorAttachmentReadEXT")] + [NativeName(NativeNameType.Value, "4160")] + ColorAttachmentReadExt = unchecked(4160), + [NativeName(NativeNameType.EnumItem, "SpvOpDepthAttachmentReadEXT")] + [NativeName(NativeNameType.Value, "4161")] + DepthAttachmentReadExt = unchecked(4161), + [NativeName(NativeNameType.EnumItem, "SpvOpStencilAttachmentReadEXT")] + [NativeName(NativeNameType.Value, "4162")] + StencilAttachmentReadExt = unchecked(4162), + [NativeName(NativeNameType.EnumItem, "SpvOpTerminateInvocation")] + [NativeName(NativeNameType.Value, "4416")] + TerminateInvocation = unchecked(4416), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupBallotKHR")] + [NativeName(NativeNameType.Value, "4421")] + SubgroupBallotKhr = unchecked(4421), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupFirstInvocationKHR")] + [NativeName(NativeNameType.Value, "4422")] + SubgroupFirstInvocationKhr = unchecked(4422), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAllKHR")] + [NativeName(NativeNameType.Value, "4428")] + SubgroupAllKhr = unchecked(4428), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAnyKHR")] + [NativeName(NativeNameType.Value, "4429")] + SubgroupAnyKhr = unchecked(4429), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAllEqualKHR")] + [NativeName(NativeNameType.Value, "4430")] + SubgroupAllEqualKhr = unchecked(4430), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformRotateKHR")] + [NativeName(NativeNameType.Value, "4431")] + GroupNonUniformRotateKhr = unchecked(4431), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupReadInvocationKHR")] + [NativeName(NativeNameType.Value, "4432")] + SubgroupReadInvocationKhr = unchecked(4432), + [NativeName(NativeNameType.EnumItem, "SpvOpTraceRayKHR")] + [NativeName(NativeNameType.Value, "4445")] + TraceRayKhr = unchecked(4445), + [NativeName(NativeNameType.EnumItem, "SpvOpExecuteCallableKHR")] + [NativeName(NativeNameType.Value, "4446")] + ExecuteCallableKhr = unchecked(4446), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToAccelerationStructureKHR")] + [NativeName(NativeNameType.Value, "4447")] + ConvertuToAccelerationStructureKhr = unchecked(4447), + [NativeName(NativeNameType.EnumItem, "SpvOpIgnoreIntersectionKHR")] + [NativeName(NativeNameType.Value, "4448")] + IgnoreIntersectionKhr = unchecked(4448), + [NativeName(NativeNameType.EnumItem, "SpvOpTerminateRayKHR")] + [NativeName(NativeNameType.Value, "4449")] + TerminateRayKhr = unchecked(4449), + [NativeName(NativeNameType.EnumItem, "SpvOpSDot")] + [NativeName(NativeNameType.Value, "4450")] + OpsDot = unchecked(4450), + [NativeName(NativeNameType.EnumItem, "SpvOpSDotKHR")] + [NativeName(NativeNameType.Value, "4450")] + OpsDotKhr = unchecked(4450), + [NativeName(NativeNameType.EnumItem, "SpvOpUDot")] + [NativeName(NativeNameType.Value, "4451")] + OpuDot = unchecked(4451), + [NativeName(NativeNameType.EnumItem, "SpvOpUDotKHR")] + [NativeName(NativeNameType.Value, "4451")] + OpuDotKhr = unchecked(4451), + [NativeName(NativeNameType.EnumItem, "SpvOpSUDot")] + [NativeName(NativeNameType.Value, "4452")] + SuDot = unchecked(4452), + [NativeName(NativeNameType.EnumItem, "SpvOpSUDotKHR")] + [NativeName(NativeNameType.Value, "4452")] + SuDotKhr = unchecked(4452), + [NativeName(NativeNameType.EnumItem, "SpvOpSDotAccSat")] + [NativeName(NativeNameType.Value, "4453")] + OpsDotAccSat = unchecked(4453), + [NativeName(NativeNameType.EnumItem, "SpvOpSDotAccSatKHR")] + [NativeName(NativeNameType.Value, "4453")] + OpsDotAccSatKhr = unchecked(4453), + [NativeName(NativeNameType.EnumItem, "SpvOpUDotAccSat")] + [NativeName(NativeNameType.Value, "4454")] + OpuDotAccSat = unchecked(4454), + [NativeName(NativeNameType.EnumItem, "SpvOpUDotAccSatKHR")] + [NativeName(NativeNameType.Value, "4454")] + OpuDotAccSatKhr = unchecked(4454), + [NativeName(NativeNameType.EnumItem, "SpvOpSUDotAccSat")] + [NativeName(NativeNameType.Value, "4455")] + SuDotAccSat = unchecked(4455), + [NativeName(NativeNameType.EnumItem, "SpvOpSUDotAccSatKHR")] + [NativeName(NativeNameType.Value, "4455")] + SuDotAccSatKhr = unchecked(4455), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeCooperativeMatrixKHR")] + [NativeName(NativeNameType.Value, "4456")] + TypeCooperativeMatrixKhr = unchecked(4456), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixLoadKHR")] + [NativeName(NativeNameType.Value, "4457")] + CooperativeMatrixLoadKhr = unchecked(4457), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixStoreKHR")] + [NativeName(NativeNameType.Value, "4458")] + CooperativeMatrixStoreKhr = unchecked(4458), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixMulAddKHR")] + [NativeName(NativeNameType.Value, "4459")] + CooperativeMatrixMulAddKhr = unchecked(4459), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixLengthKHR")] + [NativeName(NativeNameType.Value, "4460")] + CooperativeMatrixLengthKhr = unchecked(4460), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeRayQueryKHR")] + [NativeName(NativeNameType.Value, "4472")] + TypeRayQueryKhr = unchecked(4472), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryInitializeKHR")] + [NativeName(NativeNameType.Value, "4473")] + RayQueryInitializeKhr = unchecked(4473), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryTerminateKHR")] + [NativeName(NativeNameType.Value, "4474")] + RayQueryTerminateKhr = unchecked(4474), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGenerateIntersectionKHR")] + [NativeName(NativeNameType.Value, "4475")] + RayQueryGenerateIntersectionKhr = unchecked(4475), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryConfirmIntersectionKHR")] + [NativeName(NativeNameType.Value, "4476")] + RayQueryConfirmIntersectionKhr = unchecked(4476), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryProceedKHR")] + [NativeName(NativeNameType.Value, "4477")] + RayQueryProceedKhr = unchecked(4477), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionTypeKHR")] + [NativeName(NativeNameType.Value, "4479")] + RayQueryGetIntersectionTypeKhr = unchecked(4479), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleWeightedQCOM")] + [NativeName(NativeNameType.Value, "4480")] + ImageSampleWeightedQcom = unchecked(4480), + [NativeName(NativeNameType.EnumItem, "SpvOpImageBoxFilterQCOM")] + [NativeName(NativeNameType.Value, "4481")] + ImageBoxFilterQcom = unchecked(4481), + [NativeName(NativeNameType.EnumItem, "SpvOpImageBlockMatchSSDQCOM")] + [NativeName(NativeNameType.Value, "4482")] + ImageBlockMatchSsdqcom = unchecked(4482), + [NativeName(NativeNameType.EnumItem, "SpvOpImageBlockMatchSADQCOM")] + [NativeName(NativeNameType.Value, "4483")] + ImageBlockMatchSadqcom = unchecked(4483), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupIAddNonUniformAMD")] + [NativeName(NativeNameType.Value, "5000")] + GroupiAddNonUniformAmd = unchecked(5000), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFAddNonUniformAMD")] + [NativeName(NativeNameType.Value, "5001")] + GroupfAddNonUniformAmd = unchecked(5001), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMinNonUniformAMD")] + [NativeName(NativeNameType.Value, "5002")] + GroupfMinNonUniformAmd = unchecked(5002), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMinNonUniformAMD")] + [NativeName(NativeNameType.Value, "5003")] + GroupuMinNonUniformAmd = unchecked(5003), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMinNonUniformAMD")] + [NativeName(NativeNameType.Value, "5004")] + GroupsMinNonUniformAmd = unchecked(5004), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMaxNonUniformAMD")] + [NativeName(NativeNameType.Value, "5005")] + GroupfMaxNonUniformAmd = unchecked(5005), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupUMaxNonUniformAMD")] + [NativeName(NativeNameType.Value, "5006")] + GroupuMaxNonUniformAmd = unchecked(5006), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupSMaxNonUniformAMD")] + [NativeName(NativeNameType.Value, "5007")] + GroupsMaxNonUniformAmd = unchecked(5007), + [NativeName(NativeNameType.EnumItem, "SpvOpFragmentMaskFetchAMD")] + [NativeName(NativeNameType.Value, "5011")] + FragmentMaskFetchAmd = unchecked(5011), + [NativeName(NativeNameType.EnumItem, "SpvOpFragmentFetchAMD")] + [NativeName(NativeNameType.Value, "5012")] + FragmentFetchAmd = unchecked(5012), + [NativeName(NativeNameType.EnumItem, "SpvOpReadClockKHR")] + [NativeName(NativeNameType.Value, "5056")] + ReadClockKhr = unchecked(5056), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectRecordHitMotionNV")] + [NativeName(NativeNameType.Value, "5249")] + HitObjectRecordHitMotionNv = unchecked(5249), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectRecordHitWithIndexMotionNV")] + [NativeName(NativeNameType.Value, "5250")] + HitObjectRecordHitWithIndexMotionNv = unchecked(5250), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectRecordMissMotionNV")] + [NativeName(NativeNameType.Value, "5251")] + HitObjectRecordMissMotionNv = unchecked(5251), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetWorldToObjectNV")] + [NativeName(NativeNameType.Value, "5252")] + HitObjectGetWorldToObjectNv = unchecked(5252), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetObjectToWorldNV")] + [NativeName(NativeNameType.Value, "5253")] + HitObjectGetObjectToWorldNv = unchecked(5253), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetObjectRayDirectionNV")] + [NativeName(NativeNameType.Value, "5254")] + HitObjectGetObjectRayDirectionNv = unchecked(5254), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetObjectRayOriginNV")] + [NativeName(NativeNameType.Value, "5255")] + HitObjectGetObjectRayOriginNv = unchecked(5255), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectTraceRayMotionNV")] + [NativeName(NativeNameType.Value, "5256")] + HitObjectTraceRayMotionNv = unchecked(5256), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetShaderRecordBufferHandleNV")] + [NativeName(NativeNameType.Value, "5257")] + HitObjectGetShaderRecordBufferHandleNv = unchecked(5257), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetShaderBindingTableRecordIndexNV")] + [NativeName(NativeNameType.Value, "5258")] + HitObjectGetShaderBindingTableRecordIndexNv = unchecked(5258), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectRecordEmptyNV")] + [NativeName(NativeNameType.Value, "5259")] + HitObjectRecordEmptyNv = unchecked(5259), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectTraceRayNV")] + [NativeName(NativeNameType.Value, "5260")] + HitObjectTraceRayNv = unchecked(5260), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectRecordHitNV")] + [NativeName(NativeNameType.Value, "5261")] + HitObjectRecordHitNv = unchecked(5261), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectRecordHitWithIndexNV")] + [NativeName(NativeNameType.Value, "5262")] + HitObjectRecordHitWithIndexNv = unchecked(5262), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectRecordMissNV")] + [NativeName(NativeNameType.Value, "5263")] + HitObjectRecordMissNv = unchecked(5263), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectExecuteShaderNV")] + [NativeName(NativeNameType.Value, "5264")] + HitObjectExecuteShaderNv = unchecked(5264), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetCurrentTimeNV")] + [NativeName(NativeNameType.Value, "5265")] + HitObjectGetCurrentTimeNv = unchecked(5265), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetAttributesNV")] + [NativeName(NativeNameType.Value, "5266")] + HitObjectGetAttributesNv = unchecked(5266), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetHitKindNV")] + [NativeName(NativeNameType.Value, "5267")] + HitObjectGetHitKindNv = unchecked(5267), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetPrimitiveIndexNV")] + [NativeName(NativeNameType.Value, "5268")] + HitObjectGetPrimitiveIndexNv = unchecked(5268), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetGeometryIndexNV")] + [NativeName(NativeNameType.Value, "5269")] + HitObjectGetGeometryIndexNv = unchecked(5269), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetInstanceIdNV")] + [NativeName(NativeNameType.Value, "5270")] + HitObjectGetInstanceIdNv = unchecked(5270), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetInstanceCustomIndexNV")] + [NativeName(NativeNameType.Value, "5271")] + HitObjectGetInstanceCustomIndexNv = unchecked(5271), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetWorldRayDirectionNV")] + [NativeName(NativeNameType.Value, "5272")] + HitObjectGetWorldRayDirectionNv = unchecked(5272), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetWorldRayOriginNV")] + [NativeName(NativeNameType.Value, "5273")] + HitObjectGetWorldRayOriginNv = unchecked(5273), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetRayTMaxNV")] + [NativeName(NativeNameType.Value, "5274")] + HitObjectGetRaytMaxNv = unchecked(5274), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectGetRayTMinNV")] + [NativeName(NativeNameType.Value, "5275")] + HitObjectGetRaytMinNv = unchecked(5275), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectIsEmptyNV")] + [NativeName(NativeNameType.Value, "5276")] + HitObjectIsEmptyNv = unchecked(5276), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectIsHitNV")] + [NativeName(NativeNameType.Value, "5277")] + HitObjectIsHitNv = unchecked(5277), + [NativeName(NativeNameType.EnumItem, "SpvOpHitObjectIsMissNV")] + [NativeName(NativeNameType.Value, "5278")] + HitObjectIsMissNv = unchecked(5278), + [NativeName(NativeNameType.EnumItem, "SpvOpReorderThreadWithHitObjectNV")] + [NativeName(NativeNameType.Value, "5279")] + ReorderThreadWithHitObjectNv = unchecked(5279), + [NativeName(NativeNameType.EnumItem, "SpvOpReorderThreadWithHintNV")] + [NativeName(NativeNameType.Value, "5280")] + ReorderThreadWithHintNv = unchecked(5280), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeHitObjectNV")] + [NativeName(NativeNameType.Value, "5281")] + TypeHitObjectNv = unchecked(5281), + [NativeName(NativeNameType.EnumItem, "SpvOpImageSampleFootprintNV")] + [NativeName(NativeNameType.Value, "5283")] + ImageSampleFootprintNv = unchecked(5283), + [NativeName(NativeNameType.EnumItem, "SpvOpEmitMeshTasksEXT")] + [NativeName(NativeNameType.Value, "5294")] + EmitMeshTasksExt = unchecked(5294), + [NativeName(NativeNameType.EnumItem, "SpvOpSetMeshOutputsEXT")] + [NativeName(NativeNameType.Value, "5295")] + SetMeshOutputsExt = unchecked(5295), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupNonUniformPartitionNV")] + [NativeName(NativeNameType.Value, "5296")] + GroupNonUniformPartitionNv = unchecked(5296), + [NativeName(NativeNameType.EnumItem, "SpvOpWritePackedPrimitiveIndices4x8NV")] + [NativeName(NativeNameType.Value, "5299")] + WritePackedPrimitiveIndices4X8Nv = unchecked(5299), + [NativeName(NativeNameType.EnumItem, "SpvOpReportIntersectionKHR")] + [NativeName(NativeNameType.Value, "5334")] + ReportIntersectionKhr = unchecked(5334), + [NativeName(NativeNameType.EnumItem, "SpvOpReportIntersectionNV")] + [NativeName(NativeNameType.Value, "5334")] + ReportIntersectionNv = unchecked(5334), + [NativeName(NativeNameType.EnumItem, "SpvOpIgnoreIntersectionNV")] + [NativeName(NativeNameType.Value, "5335")] + IgnoreIntersectionNv = unchecked(5335), + [NativeName(NativeNameType.EnumItem, "SpvOpTerminateRayNV")] + [NativeName(NativeNameType.Value, "5336")] + TerminateRayNv = unchecked(5336), + [NativeName(NativeNameType.EnumItem, "SpvOpTraceNV")] + [NativeName(NativeNameType.Value, "5337")] + TraceNv = unchecked(5337), + [NativeName(NativeNameType.EnumItem, "SpvOpTraceMotionNV")] + [NativeName(NativeNameType.Value, "5338")] + TraceMotionNv = unchecked(5338), + [NativeName(NativeNameType.EnumItem, "SpvOpTraceRayMotionNV")] + [NativeName(NativeNameType.Value, "5339")] + TraceRayMotionNv = unchecked(5339), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionTriangleVertexPositionsKHR")] + [NativeName(NativeNameType.Value, "5340")] + RayQueryGetIntersectionTriangleVertexPositionsKhr = unchecked(5340), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAccelerationStructureKHR")] + [NativeName(NativeNameType.Value, "5341")] + TypeAccelerationStructureKhr = unchecked(5341), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAccelerationStructureNV")] + [NativeName(NativeNameType.Value, "5341")] + TypeAccelerationStructureNv = unchecked(5341), + [NativeName(NativeNameType.EnumItem, "SpvOpExecuteCallableNV")] + [NativeName(NativeNameType.Value, "5344")] + ExecuteCallableNv = unchecked(5344), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeCooperativeMatrixNV")] + [NativeName(NativeNameType.Value, "5358")] + TypeCooperativeMatrixNv = unchecked(5358), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixLoadNV")] + [NativeName(NativeNameType.Value, "5359")] + CooperativeMatrixLoadNv = unchecked(5359), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixStoreNV")] + [NativeName(NativeNameType.Value, "5360")] + CooperativeMatrixStoreNv = unchecked(5360), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixMulAddNV")] + [NativeName(NativeNameType.Value, "5361")] + CooperativeMatrixMulAddNv = unchecked(5361), + [NativeName(NativeNameType.EnumItem, "SpvOpCooperativeMatrixLengthNV")] + [NativeName(NativeNameType.Value, "5362")] + CooperativeMatrixLengthNv = unchecked(5362), + [NativeName(NativeNameType.EnumItem, "SpvOpBeginInvocationInterlockEXT")] + [NativeName(NativeNameType.Value, "5364")] + BeginInvocationInterlockExt = unchecked(5364), + [NativeName(NativeNameType.EnumItem, "SpvOpEndInvocationInterlockEXT")] + [NativeName(NativeNameType.Value, "5365")] + EndInvocationInterlockExt = unchecked(5365), + [NativeName(NativeNameType.EnumItem, "SpvOpDemoteToHelperInvocation")] + [NativeName(NativeNameType.Value, "5380")] + DemoteToHelperInvocation = unchecked(5380), + [NativeName(NativeNameType.EnumItem, "SpvOpDemoteToHelperInvocationEXT")] + [NativeName(NativeNameType.Value, "5380")] + DemoteToHelperInvocationExt = unchecked(5380), + [NativeName(NativeNameType.EnumItem, "SpvOpIsHelperInvocationEXT")] + [NativeName(NativeNameType.Value, "5381")] + IsHelperInvocationExt = unchecked(5381), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToImageNV")] + [NativeName(NativeNameType.Value, "5391")] + ConvertuToImageNv = unchecked(5391), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToSamplerNV")] + [NativeName(NativeNameType.Value, "5392")] + ConvertuToSamplerNv = unchecked(5392), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertImageToUNV")] + [NativeName(NativeNameType.Value, "5393")] + ConvertImageToUnv = unchecked(5393), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertSamplerToUNV")] + [NativeName(NativeNameType.Value, "5394")] + ConvertSamplerToUnv = unchecked(5394), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertUToSampledImageNV")] + [NativeName(NativeNameType.Value, "5395")] + ConvertuToSampledImageNv = unchecked(5395), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertSampledImageToUNV")] + [NativeName(NativeNameType.Value, "5396")] + ConvertSampledImageToUnv = unchecked(5396), + [NativeName(NativeNameType.EnumItem, "SpvOpSamplerImageAddressingModeNV")] + [NativeName(NativeNameType.Value, "5397")] + SamplerImageAddressingModeNv = unchecked(5397), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleINTEL")] + [NativeName(NativeNameType.Value, "5571")] + SubgroupShuffleIntel = unchecked(5571), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleDownINTEL")] + [NativeName(NativeNameType.Value, "5572")] + SubgroupShuffleDownIntel = unchecked(5572), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleUpINTEL")] + [NativeName(NativeNameType.Value, "5573")] + SubgroupShuffleUpIntel = unchecked(5573), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupShuffleXorINTEL")] + [NativeName(NativeNameType.Value, "5574")] + SubgroupShuffleXorIntel = unchecked(5574), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupBlockReadINTEL")] + [NativeName(NativeNameType.Value, "5575")] + SubgroupBlockReadIntel = unchecked(5575), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupBlockWriteINTEL")] + [NativeName(NativeNameType.Value, "5576")] + SubgroupBlockWriteIntel = unchecked(5576), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageBlockReadINTEL")] + [NativeName(NativeNameType.Value, "5577")] + SubgroupImageBlockReadIntel = unchecked(5577), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageBlockWriteINTEL")] + [NativeName(NativeNameType.Value, "5578")] + SubgroupImageBlockWriteIntel = unchecked(5578), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageMediaBlockReadINTEL")] + [NativeName(NativeNameType.Value, "5580")] + SubgroupImageMediaBlockReadIntel = unchecked(5580), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupImageMediaBlockWriteINTEL")] + [NativeName(NativeNameType.Value, "5581")] + SubgroupImageMediaBlockWriteIntel = unchecked(5581), + [NativeName(NativeNameType.EnumItem, "SpvOpUCountLeadingZerosINTEL")] + [NativeName(NativeNameType.Value, "5585")] + OpuCountLeadingZerosIntel = unchecked(5585), + [NativeName(NativeNameType.EnumItem, "SpvOpUCountTrailingZerosINTEL")] + [NativeName(NativeNameType.Value, "5586")] + OpuCountTrailingZerosIntel = unchecked(5586), + [NativeName(NativeNameType.EnumItem, "SpvOpAbsISubINTEL")] + [NativeName(NativeNameType.Value, "5587")] + AbsiSubIntel = unchecked(5587), + [NativeName(NativeNameType.EnumItem, "SpvOpAbsUSubINTEL")] + [NativeName(NativeNameType.Value, "5588")] + AbsuSubIntel = unchecked(5588), + [NativeName(NativeNameType.EnumItem, "SpvOpIAddSatINTEL")] + [NativeName(NativeNameType.Value, "5589")] + OpiAddSatIntel = unchecked(5589), + [NativeName(NativeNameType.EnumItem, "SpvOpUAddSatINTEL")] + [NativeName(NativeNameType.Value, "5590")] + OpuAddSatIntel = unchecked(5590), + [NativeName(NativeNameType.EnumItem, "SpvOpIAverageINTEL")] + [NativeName(NativeNameType.Value, "5591")] + OpiAverageIntel = unchecked(5591), + [NativeName(NativeNameType.EnumItem, "SpvOpUAverageINTEL")] + [NativeName(NativeNameType.Value, "5592")] + OpuAverageIntel = unchecked(5592), + [NativeName(NativeNameType.EnumItem, "SpvOpIAverageRoundedINTEL")] + [NativeName(NativeNameType.Value, "5593")] + OpiAverageRoundedIntel = unchecked(5593), + [NativeName(NativeNameType.EnumItem, "SpvOpUAverageRoundedINTEL")] + [NativeName(NativeNameType.Value, "5594")] + OpuAverageRoundedIntel = unchecked(5594), + [NativeName(NativeNameType.EnumItem, "SpvOpISubSatINTEL")] + [NativeName(NativeNameType.Value, "5595")] + OpiSubSatIntel = unchecked(5595), + [NativeName(NativeNameType.EnumItem, "SpvOpUSubSatINTEL")] + [NativeName(NativeNameType.Value, "5596")] + OpuSubSatIntel = unchecked(5596), + [NativeName(NativeNameType.EnumItem, "SpvOpIMul32x16INTEL")] + [NativeName(NativeNameType.Value, "5597")] + OpiMul32x16Intel = unchecked(5597), + [NativeName(NativeNameType.EnumItem, "SpvOpUMul32x16INTEL")] + [NativeName(NativeNameType.Value, "5598")] + OpuMul32x16Intel = unchecked(5598), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantFunctionPointerINTEL")] + [NativeName(NativeNameType.Value, "5600")] + ConstantFunctionPointerIntel = unchecked(5600), + [NativeName(NativeNameType.EnumItem, "SpvOpFunctionPointerCallINTEL")] + [NativeName(NativeNameType.Value, "5601")] + FunctionPointerCallIntel = unchecked(5601), + [NativeName(NativeNameType.EnumItem, "SpvOpAsmTargetINTEL")] + [NativeName(NativeNameType.Value, "5609")] + AsmTargetIntel = unchecked(5609), + [NativeName(NativeNameType.EnumItem, "SpvOpAsmINTEL")] + [NativeName(NativeNameType.Value, "5610")] + AsmIntel = unchecked(5610), + [NativeName(NativeNameType.EnumItem, "SpvOpAsmCallINTEL")] + [NativeName(NativeNameType.Value, "5611")] + AsmCallIntel = unchecked(5611), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFMinEXT")] + [NativeName(NativeNameType.Value, "5614")] + AtomicfMinExt = unchecked(5614), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFMaxEXT")] + [NativeName(NativeNameType.Value, "5615")] + AtomicfMaxExt = unchecked(5615), + [NativeName(NativeNameType.EnumItem, "SpvOpAssumeTrueKHR")] + [NativeName(NativeNameType.Value, "5630")] + AssumeTrueKhr = unchecked(5630), + [NativeName(NativeNameType.EnumItem, "SpvOpExpectKHR")] + [NativeName(NativeNameType.Value, "5631")] + ExpectKhr = unchecked(5631), + [NativeName(NativeNameType.EnumItem, "SpvOpDecorateString")] + [NativeName(NativeNameType.Value, "5632")] + DecorateString = unchecked(5632), + [NativeName(NativeNameType.EnumItem, "SpvOpDecorateStringGOOGLE")] + [NativeName(NativeNameType.Value, "5632")] + DecorateStringGoogle = unchecked(5632), + [NativeName(NativeNameType.EnumItem, "SpvOpMemberDecorateString")] + [NativeName(NativeNameType.Value, "5633")] + MemberDecorateString = unchecked(5633), + [NativeName(NativeNameType.EnumItem, "SpvOpMemberDecorateStringGOOGLE")] + [NativeName(NativeNameType.Value, "5633")] + MemberDecorateStringGoogle = unchecked(5633), + [NativeName(NativeNameType.EnumItem, "SpvOpVmeImageINTEL")] + [NativeName(NativeNameType.Value, "5699")] + VmeImageIntel = unchecked(5699), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeVmeImageINTEL")] + [NativeName(NativeNameType.Value, "5700")] + TypeVmeImageIntel = unchecked(5700), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImePayloadINTEL")] + [NativeName(NativeNameType.Value, "5701")] + TypeAvcImePayloadIntel = unchecked(5701), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcRefPayloadINTEL")] + [NativeName(NativeNameType.Value, "5702")] + TypeAvcRefPayloadIntel = unchecked(5702), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcSicPayloadINTEL")] + [NativeName(NativeNameType.Value, "5703")] + TypeAvcSicPayloadIntel = unchecked(5703), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcMcePayloadINTEL")] + [NativeName(NativeNameType.Value, "5704")] + TypeAvcMcePayloadIntel = unchecked(5704), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcMceResultINTEL")] + [NativeName(NativeNameType.Value, "5705")] + TypeAvcMceResultIntel = unchecked(5705), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeResultINTEL")] + [NativeName(NativeNameType.Value, "5706")] + TypeAvcImeResultIntel = unchecked(5706), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeResultSingleReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5707")] + TypeAvcImeResultSingleReferenceStreamoutIntel = unchecked(5707), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeResultDualReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5708")] + TypeAvcImeResultDualReferenceStreamoutIntel = unchecked(5708), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeSingleReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5709")] + TypeAvcImeSingleReferenceStreaminIntel = unchecked(5709), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcImeDualReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5710")] + TypeAvcImeDualReferenceStreaminIntel = unchecked(5710), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcRefResultINTEL")] + [NativeName(NativeNameType.Value, "5711")] + TypeAvcRefResultIntel = unchecked(5711), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeAvcSicResultINTEL")] + [NativeName(NativeNameType.Value, "5712")] + TypeAvcSicResultIntel = unchecked(5712), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5713")] + SubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyIntel = unchecked(5713), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5714")] + SubgroupAvcMceSetInterBaseMultiReferencePenaltyIntel = unchecked(5714), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5715")] + SubgroupAvcMceGetDefaultInterShapePenaltyIntel = unchecked(5715), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetInterShapePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5716")] + SubgroupAvcMceSetInterShapePenaltyIntel = unchecked(5716), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL")] + [NativeName(NativeNameType.Value, "5717")] + SubgroupAvcMceGetDefaultInterDirectionPenaltyIntel = unchecked(5717), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetInterDirectionPenaltyINTEL")] + [NativeName(NativeNameType.Value, "5718")] + SubgroupAvcMceSetInterDirectionPenaltyIntel = unchecked(5718), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5719")] + SubgroupAvcMceGetDefaultIntraLumaShapePenaltyIntel = unchecked(5719), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL")] + [NativeName(NativeNameType.Value, "5720")] + SubgroupAvcMceGetDefaultInterMotionVectorCostTableIntel = unchecked(5720), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL")] + [NativeName(NativeNameType.Value, "5721")] + SubgroupAvcMceGetDefaultHighPenaltyCostTableIntel = unchecked(5721), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL")] + [NativeName(NativeNameType.Value, "5722")] + SubgroupAvcMceGetDefaultMediumPenaltyCostTableIntel = unchecked(5722), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL")] + [NativeName(NativeNameType.Value, "5723")] + SubgroupAvcMceGetDefaultLowPenaltyCostTableIntel = unchecked(5723), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetMotionVectorCostFunctionINTEL")] + [NativeName(NativeNameType.Value, "5724")] + SubgroupAvcMceSetMotionVectorCostFunctionIntel = unchecked(5724), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5725")] + SubgroupAvcMceGetDefaultIntraLumaModePenaltyIntel = unchecked(5725), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL")] + [NativeName(NativeNameType.Value, "5726")] + SubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyIntel = unchecked(5726), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5727")] + SubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyIntel = unchecked(5727), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetAcOnlyHaarINTEL")] + [NativeName(NativeNameType.Value, "5728")] + SubgroupAvcMceSetAcOnlyHaarIntel = unchecked(5728), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL")] + [NativeName(NativeNameType.Value, "5729")] + SubgroupAvcMceSetSourceInterlacedFieldPolarityIntel = unchecked(5729), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL")] + [NativeName(NativeNameType.Value, "5730")] + SubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityIntel = unchecked(5730), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL")] + [NativeName(NativeNameType.Value, "5731")] + SubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesIntel = unchecked(5731), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToImePayloadINTEL")] + [NativeName(NativeNameType.Value, "5732")] + SubgroupAvcMceConvertToImePayloadIntel = unchecked(5732), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToImeResultINTEL")] + [NativeName(NativeNameType.Value, "5733")] + SubgroupAvcMceConvertToImeResultIntel = unchecked(5733), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToRefPayloadINTEL")] + [NativeName(NativeNameType.Value, "5734")] + SubgroupAvcMceConvertToRefPayloadIntel = unchecked(5734), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToRefResultINTEL")] + [NativeName(NativeNameType.Value, "5735")] + SubgroupAvcMceConvertToRefResultIntel = unchecked(5735), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToSicPayloadINTEL")] + [NativeName(NativeNameType.Value, "5736")] + SubgroupAvcMceConvertToSicPayloadIntel = unchecked(5736), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceConvertToSicResultINTEL")] + [NativeName(NativeNameType.Value, "5737")] + SubgroupAvcMceConvertToSicResultIntel = unchecked(5737), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetMotionVectorsINTEL")] + [NativeName(NativeNameType.Value, "5738")] + SubgroupAvcMceGetMotionVectorsIntel = unchecked(5738), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterDistortionsINTEL")] + [NativeName(NativeNameType.Value, "5739")] + SubgroupAvcMceGetInterDistortionsIntel = unchecked(5739), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetBestInterDistortionsINTEL")] + [NativeName(NativeNameType.Value, "5740")] + SubgroupAvcMceGetBestInterDistortionsIntel = unchecked(5740), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterMajorShapeINTEL")] + [NativeName(NativeNameType.Value, "5741")] + SubgroupAvcMceGetInterMajorShapeIntel = unchecked(5741), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterMinorShapeINTEL")] + [NativeName(NativeNameType.Value, "5742")] + SubgroupAvcMceGetInterMinorShapeIntel = unchecked(5742), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterDirectionsINTEL")] + [NativeName(NativeNameType.Value, "5743")] + SubgroupAvcMceGetInterDirectionsIntel = unchecked(5743), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterMotionVectorCountINTEL")] + [NativeName(NativeNameType.Value, "5744")] + SubgroupAvcMceGetInterMotionVectorCountIntel = unchecked(5744), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterReferenceIdsINTEL")] + [NativeName(NativeNameType.Value, "5745")] + SubgroupAvcMceGetInterReferenceIdsIntel = unchecked(5745), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL")] + [NativeName(NativeNameType.Value, "5746")] + SubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesIntel = unchecked(5746), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeInitializeINTEL")] + [NativeName(NativeNameType.Value, "5747")] + SubgroupAvcImeInitializeIntel = unchecked(5747), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetSingleReferenceINTEL")] + [NativeName(NativeNameType.Value, "5748")] + SubgroupAvcImeSetSingleReferenceIntel = unchecked(5748), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetDualReferenceINTEL")] + [NativeName(NativeNameType.Value, "5749")] + SubgroupAvcImeSetDualReferenceIntel = unchecked(5749), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeRefWindowSizeINTEL")] + [NativeName(NativeNameType.Value, "5750")] + SubgroupAvcImeRefWindowSizeIntel = unchecked(5750), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeAdjustRefOffsetINTEL")] + [NativeName(NativeNameType.Value, "5751")] + SubgroupAvcImeAdjustRefOffsetIntel = unchecked(5751), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeConvertToMcePayloadINTEL")] + [NativeName(NativeNameType.Value, "5752")] + SubgroupAvcImeConvertToMcePayloadIntel = unchecked(5752), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetMaxMotionVectorCountINTEL")] + [NativeName(NativeNameType.Value, "5753")] + SubgroupAvcImeSetMaxMotionVectorCountIntel = unchecked(5753), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetUnidirectionalMixDisableINTEL")] + [NativeName(NativeNameType.Value, "5754")] + SubgroupAvcImeSetUnidirectionalMixDisableIntel = unchecked(5754), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL")] + [NativeName(NativeNameType.Value, "5755")] + SubgroupAvcImeSetEarlySearchTerminationThresholdIntel = unchecked(5755), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeSetWeightedSadINTEL")] + [NativeName(NativeNameType.Value, "5756")] + SubgroupAvcImeSetWeightedSadIntel = unchecked(5756), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceINTEL")] + [NativeName(NativeNameType.Value, "5757")] + SubgroupAvcImeEvaluateWithSingleReferenceIntel = unchecked(5757), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceINTEL")] + [NativeName(NativeNameType.Value, "5758")] + SubgroupAvcImeEvaluateWithDualReferenceIntel = unchecked(5758), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5759")] + SubgroupAvcImeEvaluateWithSingleReferenceStreaminIntel = unchecked(5759), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5760")] + SubgroupAvcImeEvaluateWithDualReferenceStreaminIntel = unchecked(5760), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5761")] + SubgroupAvcImeEvaluateWithSingleReferenceStreamoutIntel = unchecked(5761), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5762")] + SubgroupAvcImeEvaluateWithDualReferenceStreamoutIntel = unchecked(5762), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL")] + [NativeName(NativeNameType.Value, "5763")] + SubgroupAvcImeEvaluateWithSingleReferenceStreaminoutIntel = unchecked(5763), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL")] + [NativeName(NativeNameType.Value, "5764")] + SubgroupAvcImeEvaluateWithDualReferenceStreaminoutIntel = unchecked(5764), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeConvertToMceResultINTEL")] + [NativeName(NativeNameType.Value, "5765")] + SubgroupAvcImeConvertToMceResultIntel = unchecked(5765), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetSingleReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5766")] + SubgroupAvcImeGetSingleReferenceStreaminIntel = unchecked(5766), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetDualReferenceStreaminINTEL")] + [NativeName(NativeNameType.Value, "5767")] + SubgroupAvcImeGetDualReferenceStreaminIntel = unchecked(5767), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeStripSingleReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5768")] + SubgroupAvcImeStripSingleReferenceStreamoutIntel = unchecked(5768), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeStripDualReferenceStreamoutINTEL")] + [NativeName(NativeNameType.Value, "5769")] + SubgroupAvcImeStripDualReferenceStreamoutIntel = unchecked(5769), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL")] + [NativeName(NativeNameType.Value, "5770")] + SubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsIntel = unchecked(5770), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL")] + [NativeName(NativeNameType.Value, "5771")] + SubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsIntel = unchecked(5771), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL")] + [NativeName(NativeNameType.Value, "5772")] + SubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsIntel = unchecked(5772), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL")] + [NativeName(NativeNameType.Value, "5773")] + SubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsIntel = unchecked(5773), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL")] + [NativeName(NativeNameType.Value, "5774")] + SubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsIntel = unchecked(5774), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL")] + [NativeName(NativeNameType.Value, "5775")] + SubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsIntel = unchecked(5775), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetBorderReachedINTEL")] + [NativeName(NativeNameType.Value, "5776")] + SubgroupAvcImeGetBorderReachedIntel = unchecked(5776), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetTruncatedSearchIndicationINTEL")] + [NativeName(NativeNameType.Value, "5777")] + SubgroupAvcImeGetTruncatedSearchIndicationIntel = unchecked(5777), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL")] + [NativeName(NativeNameType.Value, "5778")] + SubgroupAvcImeGetUnidirectionalEarlySearchTerminationIntel = unchecked(5778), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL")] + [NativeName(NativeNameType.Value, "5779")] + SubgroupAvcImeGetWeightingPatternMinimumMotionVectorIntel = unchecked(5779), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL")] + [NativeName(NativeNameType.Value, "5780")] + SubgroupAvcImeGetWeightingPatternMinimumDistortionIntel = unchecked(5780), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcFmeInitializeINTEL")] + [NativeName(NativeNameType.Value, "5781")] + SubgroupAvcFmeInitializeIntel = unchecked(5781), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcBmeInitializeINTEL")] + [NativeName(NativeNameType.Value, "5782")] + SubgroupAvcBmeInitializeIntel = unchecked(5782), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefConvertToMcePayloadINTEL")] + [NativeName(NativeNameType.Value, "5783")] + SubgroupAvcRefConvertToMcePayloadIntel = unchecked(5783), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefSetBidirectionalMixDisableINTEL")] + [NativeName(NativeNameType.Value, "5784")] + SubgroupAvcRefSetBidirectionalMixDisableIntel = unchecked(5784), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefSetBilinearFilterEnableINTEL")] + [NativeName(NativeNameType.Value, "5785")] + SubgroupAvcRefSetBilinearFilterEnableIntel = unchecked(5785), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithSingleReferenceINTEL")] + [NativeName(NativeNameType.Value, "5786")] + SubgroupAvcRefEvaluateWithSingleReferenceIntel = unchecked(5786), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithDualReferenceINTEL")] + [NativeName(NativeNameType.Value, "5787")] + SubgroupAvcRefEvaluateWithDualReferenceIntel = unchecked(5787), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithMultiReferenceINTEL")] + [NativeName(NativeNameType.Value, "5788")] + SubgroupAvcRefEvaluateWithMultiReferenceIntel = unchecked(5788), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL")] + [NativeName(NativeNameType.Value, "5789")] + SubgroupAvcRefEvaluateWithMultiReferenceInterlacedIntel = unchecked(5789), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcRefConvertToMceResultINTEL")] + [NativeName(NativeNameType.Value, "5790")] + SubgroupAvcRefConvertToMceResultIntel = unchecked(5790), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicInitializeINTEL")] + [NativeName(NativeNameType.Value, "5791")] + SubgroupAvcSicInitializeIntel = unchecked(5791), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConfigureSkcINTEL")] + [NativeName(NativeNameType.Value, "5792")] + SubgroupAvcSicConfigureSkcIntel = unchecked(5792), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConfigureIpeLumaINTEL")] + [NativeName(NativeNameType.Value, "5793")] + SubgroupAvcSicConfigureIpeLumaIntel = unchecked(5793), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConfigureIpeLumaChromaINTEL")] + [NativeName(NativeNameType.Value, "5794")] + SubgroupAvcSicConfigureIpeLumaChromaIntel = unchecked(5794), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetMotionVectorMaskINTEL")] + [NativeName(NativeNameType.Value, "5795")] + SubgroupAvcSicGetMotionVectorMaskIntel = unchecked(5795), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConvertToMcePayloadINTEL")] + [NativeName(NativeNameType.Value, "5796")] + SubgroupAvcSicConvertToMcePayloadIntel = unchecked(5796), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL")] + [NativeName(NativeNameType.Value, "5797")] + SubgroupAvcSicSetIntraLumaShapePenaltyIntel = unchecked(5797), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL")] + [NativeName(NativeNameType.Value, "5798")] + SubgroupAvcSicSetIntraLumaModeCostFunctionIntel = unchecked(5798), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL")] + [NativeName(NativeNameType.Value, "5799")] + SubgroupAvcSicSetIntraChromaModeCostFunctionIntel = unchecked(5799), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetBilinearFilterEnableINTEL")] + [NativeName(NativeNameType.Value, "5800")] + SubgroupAvcSicSetBilinearFilterEnableIntel = unchecked(5800), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetSkcForwardTransformEnableINTEL")] + [NativeName(NativeNameType.Value, "5801")] + SubgroupAvcSicSetSkcForwardTransformEnableIntel = unchecked(5801), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL")] + [NativeName(NativeNameType.Value, "5802")] + SubgroupAvcSicSetBlockBasedRawSkipSadIntel = unchecked(5802), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateIpeINTEL")] + [NativeName(NativeNameType.Value, "5803")] + SubgroupAvcSicEvaluateIpeIntel = unchecked(5803), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithSingleReferenceINTEL")] + [NativeName(NativeNameType.Value, "5804")] + SubgroupAvcSicEvaluateWithSingleReferenceIntel = unchecked(5804), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithDualReferenceINTEL")] + [NativeName(NativeNameType.Value, "5805")] + SubgroupAvcSicEvaluateWithDualReferenceIntel = unchecked(5805), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithMultiReferenceINTEL")] + [NativeName(NativeNameType.Value, "5806")] + SubgroupAvcSicEvaluateWithMultiReferenceIntel = unchecked(5806), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL")] + [NativeName(NativeNameType.Value, "5807")] + SubgroupAvcSicEvaluateWithMultiReferenceInterlacedIntel = unchecked(5807), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicConvertToMceResultINTEL")] + [NativeName(NativeNameType.Value, "5808")] + SubgroupAvcSicConvertToMceResultIntel = unchecked(5808), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetIpeLumaShapeINTEL")] + [NativeName(NativeNameType.Value, "5809")] + SubgroupAvcSicGetIpeLumaShapeIntel = unchecked(5809), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetBestIpeLumaDistortionINTEL")] + [NativeName(NativeNameType.Value, "5810")] + SubgroupAvcSicGetBestIpeLumaDistortionIntel = unchecked(5810), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetBestIpeChromaDistortionINTEL")] + [NativeName(NativeNameType.Value, "5811")] + SubgroupAvcSicGetBestIpeChromaDistortionIntel = unchecked(5811), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetPackedIpeLumaModesINTEL")] + [NativeName(NativeNameType.Value, "5812")] + SubgroupAvcSicGetPackedIpeLumaModesIntel = unchecked(5812), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetIpeChromaModeINTEL")] + [NativeName(NativeNameType.Value, "5813")] + SubgroupAvcSicGetIpeChromaModeIntel = unchecked(5813), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL")] + [NativeName(NativeNameType.Value, "5814")] + SubgroupAvcSicGetPackedSkcLumaCountThresholdIntel = unchecked(5814), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL")] + [NativeName(NativeNameType.Value, "5815")] + SubgroupAvcSicGetPackedSkcLumaSumThresholdIntel = unchecked(5815), + [NativeName(NativeNameType.EnumItem, "SpvOpSubgroupAvcSicGetInterRawSadsINTEL")] + [NativeName(NativeNameType.Value, "5816")] + SubgroupAvcSicGetInterRawSadsIntel = unchecked(5816), + [NativeName(NativeNameType.EnumItem, "SpvOpVariableLengthArrayINTEL")] + [NativeName(NativeNameType.Value, "5818")] + VariableLengthArrayIntel = unchecked(5818), + [NativeName(NativeNameType.EnumItem, "SpvOpSaveMemoryINTEL")] + [NativeName(NativeNameType.Value, "5819")] + SaveMemoryIntel = unchecked(5819), + [NativeName(NativeNameType.EnumItem, "SpvOpRestoreMemoryINTEL")] + [NativeName(NativeNameType.Value, "5820")] + RestoreMemoryIntel = unchecked(5820), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinCosPiINTEL")] + [NativeName(NativeNameType.Value, "5840")] + ArbitraryFloatSinCosPiIntel = unchecked(5840), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCastINTEL")] + [NativeName(NativeNameType.Value, "5841")] + ArbitraryFloatCastIntel = unchecked(5841), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCastFromIntINTEL")] + [NativeName(NativeNameType.Value, "5842")] + ArbitraryFloatCastFromIntIntel = unchecked(5842), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCastToIntINTEL")] + [NativeName(NativeNameType.Value, "5843")] + ArbitraryFloatCastToIntIntel = unchecked(5843), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatAddINTEL")] + [NativeName(NativeNameType.Value, "5846")] + ArbitraryFloatAddIntel = unchecked(5846), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSubINTEL")] + [NativeName(NativeNameType.Value, "5847")] + ArbitraryFloatSubIntel = unchecked(5847), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatMulINTEL")] + [NativeName(NativeNameType.Value, "5848")] + ArbitraryFloatMulIntel = unchecked(5848), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatDivINTEL")] + [NativeName(NativeNameType.Value, "5849")] + ArbitraryFloatDivIntel = unchecked(5849), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatGTINTEL")] + [NativeName(NativeNameType.Value, "5850")] + ArbitraryFloatGtintel = unchecked(5850), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatGEINTEL")] + [NativeName(NativeNameType.Value, "5851")] + ArbitraryFloatGeintel = unchecked(5851), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLTINTEL")] + [NativeName(NativeNameType.Value, "5852")] + ArbitraryFloatLtintel = unchecked(5852), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLEINTEL")] + [NativeName(NativeNameType.Value, "5853")] + ArbitraryFloatLeintel = unchecked(5853), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatEQINTEL")] + [NativeName(NativeNameType.Value, "5854")] + ArbitraryFloatEqintel = unchecked(5854), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatRecipINTEL")] + [NativeName(NativeNameType.Value, "5855")] + ArbitraryFloatRecipIntel = unchecked(5855), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatRSqrtINTEL")] + [NativeName(NativeNameType.Value, "5856")] + ArbitraryFloatrSqrtIntel = unchecked(5856), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCbrtINTEL")] + [NativeName(NativeNameType.Value, "5857")] + ArbitraryFloatCbrtIntel = unchecked(5857), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatHypotINTEL")] + [NativeName(NativeNameType.Value, "5858")] + ArbitraryFloatHypotIntel = unchecked(5858), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSqrtINTEL")] + [NativeName(NativeNameType.Value, "5859")] + ArbitraryFloatSqrtIntel = unchecked(5859), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLogINTEL")] + [NativeName(NativeNameType.Value, "5860")] + ArbitraryFloatLogIntel = unchecked(5860), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLog2INTEL")] + [NativeName(NativeNameType.Value, "5861")] + ArbitraryFloatLog2Intel = unchecked(5861), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLog10INTEL")] + [NativeName(NativeNameType.Value, "5862")] + ArbitraryFloatLog10Intel = unchecked(5862), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatLog1pINTEL")] + [NativeName(NativeNameType.Value, "5863")] + ArbitraryFloatLog1PIntel = unchecked(5863), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExpINTEL")] + [NativeName(NativeNameType.Value, "5864")] + ArbitraryFloatExpIntel = unchecked(5864), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExp2INTEL")] + [NativeName(NativeNameType.Value, "5865")] + ArbitraryFloatExp2Intel = unchecked(5865), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExp10INTEL")] + [NativeName(NativeNameType.Value, "5866")] + ArbitraryFloatExp10Intel = unchecked(5866), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatExpm1INTEL")] + [NativeName(NativeNameType.Value, "5867")] + ArbitraryFloatExpm1Intel = unchecked(5867), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinINTEL")] + [NativeName(NativeNameType.Value, "5868")] + ArbitraryFloatSinIntel = unchecked(5868), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCosINTEL")] + [NativeName(NativeNameType.Value, "5869")] + ArbitraryFloatCosIntel = unchecked(5869), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinCosINTEL")] + [NativeName(NativeNameType.Value, "5870")] + ArbitraryFloatSinCosIntel = unchecked(5870), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatSinPiINTEL")] + [NativeName(NativeNameType.Value, "5871")] + ArbitraryFloatSinPiIntel = unchecked(5871), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatCosPiINTEL")] + [NativeName(NativeNameType.Value, "5872")] + ArbitraryFloatCosPiIntel = unchecked(5872), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatASinINTEL")] + [NativeName(NativeNameType.Value, "5873")] + ArbitraryFloataSinIntel = unchecked(5873), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatASinPiINTEL")] + [NativeName(NativeNameType.Value, "5874")] + ArbitraryFloataSinPiIntel = unchecked(5874), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatACosINTEL")] + [NativeName(NativeNameType.Value, "5875")] + ArbitraryFloataCosIntel = unchecked(5875), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatACosPiINTEL")] + [NativeName(NativeNameType.Value, "5876")] + ArbitraryFloataCosPiIntel = unchecked(5876), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatATanINTEL")] + [NativeName(NativeNameType.Value, "5877")] + ArbitraryFloataTanIntel = unchecked(5877), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatATanPiINTEL")] + [NativeName(NativeNameType.Value, "5878")] + ArbitraryFloataTanPiIntel = unchecked(5878), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatATan2INTEL")] + [NativeName(NativeNameType.Value, "5879")] + ArbitraryFloataTan2Intel = unchecked(5879), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatPowINTEL")] + [NativeName(NativeNameType.Value, "5880")] + ArbitraryFloatPowIntel = unchecked(5880), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatPowRINTEL")] + [NativeName(NativeNameType.Value, "5881")] + ArbitraryFloatPowRintel = unchecked(5881), + [NativeName(NativeNameType.EnumItem, "SpvOpArbitraryFloatPowNINTEL")] + [NativeName(NativeNameType.Value, "5882")] + ArbitraryFloatPowNintel = unchecked(5882), + [NativeName(NativeNameType.EnumItem, "SpvOpLoopControlINTEL")] + [NativeName(NativeNameType.Value, "5887")] + LoopControlIntel = unchecked(5887), + [NativeName(NativeNameType.EnumItem, "SpvOpAliasDomainDeclINTEL")] + [NativeName(NativeNameType.Value, "5911")] + AliasDomainDeclIntel = unchecked(5911), + [NativeName(NativeNameType.EnumItem, "SpvOpAliasScopeDeclINTEL")] + [NativeName(NativeNameType.Value, "5912")] + AliasScopeDeclIntel = unchecked(5912), + [NativeName(NativeNameType.EnumItem, "SpvOpAliasScopeListDeclINTEL")] + [NativeName(NativeNameType.Value, "5913")] + AliasScopeListDeclIntel = unchecked(5913), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedSqrtINTEL")] + [NativeName(NativeNameType.Value, "5923")] + FixedSqrtIntel = unchecked(5923), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedRecipINTEL")] + [NativeName(NativeNameType.Value, "5924")] + FixedRecipIntel = unchecked(5924), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedRsqrtINTEL")] + [NativeName(NativeNameType.Value, "5925")] + FixedRsqrtIntel = unchecked(5925), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinINTEL")] + [NativeName(NativeNameType.Value, "5926")] + FixedSinIntel = unchecked(5926), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedCosINTEL")] + [NativeName(NativeNameType.Value, "5927")] + FixedCosIntel = unchecked(5927), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinCosINTEL")] + [NativeName(NativeNameType.Value, "5928")] + FixedSinCosIntel = unchecked(5928), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinPiINTEL")] + [NativeName(NativeNameType.Value, "5929")] + FixedSinPiIntel = unchecked(5929), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedCosPiINTEL")] + [NativeName(NativeNameType.Value, "5930")] + FixedCosPiIntel = unchecked(5930), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedSinCosPiINTEL")] + [NativeName(NativeNameType.Value, "5931")] + FixedSinCosPiIntel = unchecked(5931), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedLogINTEL")] + [NativeName(NativeNameType.Value, "5932")] + FixedLogIntel = unchecked(5932), + [NativeName(NativeNameType.EnumItem, "SpvOpFixedExpINTEL")] + [NativeName(NativeNameType.Value, "5933")] + FixedExpIntel = unchecked(5933), + [NativeName(NativeNameType.EnumItem, "SpvOpPtrCastToCrossWorkgroupINTEL")] + [NativeName(NativeNameType.Value, "5934")] + PtrCastToCrossWorkgroupIntel = unchecked(5934), + [NativeName(NativeNameType.EnumItem, "SpvOpCrossWorkgroupCastToPtrINTEL")] + [NativeName(NativeNameType.Value, "5938")] + CrossWorkgroupCastToPtrIntel = unchecked(5938), + [NativeName(NativeNameType.EnumItem, "SpvOpReadPipeBlockingINTEL")] + [NativeName(NativeNameType.Value, "5946")] + ReadPipeBlockingIntel = unchecked(5946), + [NativeName(NativeNameType.EnumItem, "SpvOpWritePipeBlockingINTEL")] + [NativeName(NativeNameType.Value, "5947")] + WritePipeBlockingIntel = unchecked(5947), + [NativeName(NativeNameType.EnumItem, "SpvOpFPGARegINTEL")] + [NativeName(NativeNameType.Value, "5949")] + FpgaRegIntel = unchecked(5949), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetRayTMinKHR")] + [NativeName(NativeNameType.Value, "6016")] + RayQueryGetRaytMinKhr = unchecked(6016), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetRayFlagsKHR")] + [NativeName(NativeNameType.Value, "6017")] + RayQueryGetRayFlagsKhr = unchecked(6017), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionTKHR")] + [NativeName(NativeNameType.Value, "6018")] + RayQueryGetIntersectionTkhr = unchecked(6018), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionInstanceCustomIndexKHR")] + [NativeName(NativeNameType.Value, "6019")] + RayQueryGetIntersectionInstanceCustomIndexKhr = unchecked(6019), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionInstanceIdKHR")] + [NativeName(NativeNameType.Value, "6020")] + RayQueryGetIntersectionInstanceIdKhr = unchecked(6020), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR")] + [NativeName(NativeNameType.Value, "6021")] + RayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKhr = unchecked(6021), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionGeometryIndexKHR")] + [NativeName(NativeNameType.Value, "6022")] + RayQueryGetIntersectionGeometryIndexKhr = unchecked(6022), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionPrimitiveIndexKHR")] + [NativeName(NativeNameType.Value, "6023")] + RayQueryGetIntersectionPrimitiveIndexKhr = unchecked(6023), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionBarycentricsKHR")] + [NativeName(NativeNameType.Value, "6024")] + RayQueryGetIntersectionBarycentricsKhr = unchecked(6024), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionFrontFaceKHR")] + [NativeName(NativeNameType.Value, "6025")] + RayQueryGetIntersectionFrontFaceKhr = unchecked(6025), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionCandidateAABBOpaqueKHR")] + [NativeName(NativeNameType.Value, "6026")] + RayQueryGetIntersectionCandidateAabbOpaqueKhr = unchecked(6026), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionObjectRayDirectionKHR")] + [NativeName(NativeNameType.Value, "6027")] + RayQueryGetIntersectionObjectRayDirectionKhr = unchecked(6027), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionObjectRayOriginKHR")] + [NativeName(NativeNameType.Value, "6028")] + RayQueryGetIntersectionObjectRayOriginKhr = unchecked(6028), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetWorldRayDirectionKHR")] + [NativeName(NativeNameType.Value, "6029")] + RayQueryGetWorldRayDirectionKhr = unchecked(6029), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetWorldRayOriginKHR")] + [NativeName(NativeNameType.Value, "6030")] + RayQueryGetWorldRayOriginKhr = unchecked(6030), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionObjectToWorldKHR")] + [NativeName(NativeNameType.Value, "6031")] + RayQueryGetIntersectionObjectToWorldKhr = unchecked(6031), + [NativeName(NativeNameType.EnumItem, "SpvOpRayQueryGetIntersectionWorldToObjectKHR")] + [NativeName(NativeNameType.Value, "6032")] + RayQueryGetIntersectionWorldToObjectKhr = unchecked(6032), + [NativeName(NativeNameType.EnumItem, "SpvOpAtomicFAddEXT")] + [NativeName(NativeNameType.Value, "6035")] + AtomicfAddExt = unchecked(6035), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeBufferSurfaceINTEL")] + [NativeName(NativeNameType.Value, "6086")] + TypeBufferSurfaceIntel = unchecked(6086), + [NativeName(NativeNameType.EnumItem, "SpvOpTypeStructContinuedINTEL")] + [NativeName(NativeNameType.Value, "6090")] + TypeStructContinuedIntel = unchecked(6090), + [NativeName(NativeNameType.EnumItem, "SpvOpConstantCompositeContinuedINTEL")] + [NativeName(NativeNameType.Value, "6091")] + ConstantCompositeContinuedIntel = unchecked(6091), + [NativeName(NativeNameType.EnumItem, "SpvOpSpecConstantCompositeContinuedINTEL")] + [NativeName(NativeNameType.Value, "6092")] + SpecConstantCompositeContinuedIntel = unchecked(6092), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertFToBF16INTEL")] + [NativeName(NativeNameType.Value, "6116")] + ConvertfToBf16Intel = unchecked(6116), + [NativeName(NativeNameType.EnumItem, "SpvOpConvertBF16ToFINTEL")] + [NativeName(NativeNameType.Value, "6117")] + ConvertBf16ToFintel = unchecked(6117), + [NativeName(NativeNameType.EnumItem, "SpvOpControlBarrierArriveINTEL")] + [NativeName(NativeNameType.Value, "6142")] + ControlBarrierArriveIntel = unchecked(6142), + [NativeName(NativeNameType.EnumItem, "SpvOpControlBarrierWaitINTEL")] + [NativeName(NativeNameType.Value, "6143")] + ControlBarrierWaitIntel = unchecked(6143), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupIMulKHR")] + [NativeName(NativeNameType.Value, "6401")] + GroupiMulKhr = unchecked(6401), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupFMulKHR")] + [NativeName(NativeNameType.Value, "6402")] + GroupfMulKhr = unchecked(6402), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupBitwiseAndKHR")] + [NativeName(NativeNameType.Value, "6403")] + GroupBitwiseAndKhr = unchecked(6403), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupBitwiseOrKHR")] + [NativeName(NativeNameType.Value, "6404")] + GroupBitwiseOrKhr = unchecked(6404), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupBitwiseXorKHR")] + [NativeName(NativeNameType.Value, "6405")] + GroupBitwiseXorKhr = unchecked(6405), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupLogicalAndKHR")] + [NativeName(NativeNameType.Value, "6406")] + GroupLogicalAndKhr = unchecked(6406), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupLogicalOrKHR")] + [NativeName(NativeNameType.Value, "6407")] + GroupLogicalOrKhr = unchecked(6407), + [NativeName(NativeNameType.EnumItem, "SpvOpGroupLogicalXorKHR")] + [NativeName(NativeNameType.Value, "6408")] + GroupLogicalXorKhr = unchecked(6408), + [NativeName(NativeNameType.EnumItem, "SpvOpMax")] + [NativeName(NativeNameType.Value, "2147483647")] + Max = unchecked(2147483647), + } + + /// ///
///
[NativeName(NativeNameType.Enum, "SpvReflectResult")] + public enum SpvReflectResult + { + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_SUCCESS")] + [NativeName(NativeNameType.Value, "0")] + Success = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_NOT_READY")] + [NativeName(NativeNameType.Value, "1")] + NotReady = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_PARSE_FAILED")] + [NativeName(NativeNameType.Value, "2")] + ErrorParseFailed = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_ALLOC_FAILED")] + [NativeName(NativeNameType.Value, "3")] + ErrorAllocFailed = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_RANGE_EXCEEDED")] + [NativeName(NativeNameType.Value, "4")] + ErrorRangeExceeded = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_NULL_POINTER")] + [NativeName(NativeNameType.Value, "5")] + ErrorNullPointer = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_INTERNAL_ERROR")] + [NativeName(NativeNameType.Value, "6")] + ErrorInternalError = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_COUNT_MISMATCH")] + [NativeName(NativeNameType.Value, "7")] + ErrorCountMismatch = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_ELEMENT_NOT_FOUND")] + [NativeName(NativeNameType.Value, "8")] + ErrorElementNotFound = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_CODE_SIZE")] + [NativeName(NativeNameType.Value, "9")] + ErrorSpirvInvalidCodeSize = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_MAGIC_NUMBER")] + [NativeName(NativeNameType.Value, "10")] + ErrorSpirvInvalidMagicNumber = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_UNEXPECTED_EOF")] + [NativeName(NativeNameType.Value, "11")] + ErrorSpirvUnexpectedEof = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_ID_REFERENCE")] + [NativeName(NativeNameType.Value, "12")] + ErrorSpirvInvalidIdReference = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_SET_NUMBER_OVERFLOW")] + [NativeName(NativeNameType.Value, "13")] + ErrorSpirvSetNumberOverflow = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_STORAGE_CLASS")] + [NativeName(NativeNameType.Value, "14")] + ErrorSpirvInvalidStorageClass = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_RECURSION")] + [NativeName(NativeNameType.Value, "15")] + ErrorSpirvRecursion = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_INSTRUCTION")] + [NativeName(NativeNameType.Value, "16")] + ErrorSpirvInvalidInstruction = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_UNEXPECTED_BLOCK_DATA")] + [NativeName(NativeNameType.Value, "17")] + ErrorSpirvUnexpectedBlockData = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_BLOCK_MEMBER_REFERENCE")] + [NativeName(NativeNameType.Value, "18")] + ErrorSpirvInvalidBlockMemberReference = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_ENTRY_POINT")] + [NativeName(NativeNameType.Value, "19")] + ErrorSpirvInvalidEntryPoint = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_EXECUTION_MODE")] + [NativeName(NativeNameType.Value, "20")] + ErrorSpirvInvalidExecutionMode = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESULT_ERROR_SPIRV_MAX_RECURSIVE_EXCEEDED")] + [NativeName(NativeNameType.Value, "21")] + ErrorSpirvMaxRecursiveExceeded = unchecked(21), + } + + /// ///
/// SPV_REFLECT_MODULE_FLAG_NO_COPY - Disables copying of SPIR-V code
/// when a SPIRV-Reflect shader module is created. It is the
/// responsibility of the calling program to ensure that the pointer
/// remains valid and the memory it's pointing to is not freed while
/// SPIRV-Reflect operations are taking place. Freeing the backing
/// memory will cause undefined behavior or most likely a crash.
/// This is flag is intended for cases where the memory overhead of
/// storing the copied SPIR-V is undesirable.
///
[NativeName(NativeNameType.Enum, "SpvReflectModuleFlagBits")] + public enum SpvReflectModuleFlagBits + { + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_MODULE_FLAG_NONE")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_MODULE_FLAG_NO_COPY")] + [NativeName(NativeNameType.Value, "1")] + NoCopy = unchecked(1), + } + + /// ///
///
[NativeName(NativeNameType.Enum, "SpvReflectTypeFlagBits")] + public enum SpvReflectTypeFlagBits + { + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_UNDEFINED")] + [NativeName(NativeNameType.Value, "0")] + Undefined = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_VOID")] + [NativeName(NativeNameType.Value, "1")] + Void = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_BOOL")] + [NativeName(NativeNameType.Value, "2")] + Bool = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_INT")] + [NativeName(NativeNameType.Value, "4")] + Int = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_FLOAT")] + [NativeName(NativeNameType.Value, "8")] + Float = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_VECTOR")] + [NativeName(NativeNameType.Value, "256")] + Vector = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_MATRIX")] + [NativeName(NativeNameType.Value, "512")] + Matrix = unchecked(512), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_EXTERNAL_IMAGE")] + [NativeName(NativeNameType.Value, "65536")] + ExternalImage = unchecked(65536), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_EXTERNAL_SAMPLER")] + [NativeName(NativeNameType.Value, "131072")] + ExternalSampler = unchecked(131072), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_EXTERNAL_SAMPLED_IMAGE")] + [NativeName(NativeNameType.Value, "262144")] + ExternalSampledImage = unchecked(262144), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_EXTERNAL_BLOCK")] + [NativeName(NativeNameType.Value, "524288")] + ExternalBlock = unchecked(524288), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_EXTERNAL_ACCELERATION_STRUCTURE")] + [NativeName(NativeNameType.Value, "1048576")] + ExternalAccelerationStructure = unchecked(1048576), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_EXTERNAL_MASK")] + [NativeName(NativeNameType.Value, "16711680")] + ExternalMask = unchecked(16711680), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_STRUCT")] + [NativeName(NativeNameType.Value, "268435456")] + Struct = unchecked(268435456), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_ARRAY")] + [NativeName(NativeNameType.Value, "536870912")] + Array = unchecked(536870912), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_TYPE_FLAG_REF")] + [NativeName(NativeNameType.Value, "1073741824")] + Ref = unchecked(1073741824), + } + + /// ///
/// NOTE: HLSL row_major and column_major decorations are reversed
/// in SPIR-V. Meaning that matrices declrations with row_major
/// will get reflected as column_major and vice versa. The
/// row and column decorations get appied during the compilation.
/// SPIRV-Reflect reads the data as is and does not make any
/// attempt to correct it to match what's in the source.
/// The Patch, PerVertex, and PerTask are used for Interface
/// variables that can have array
///
[NativeName(NativeNameType.Enum, "SpvReflectDecorationFlagBits")] + public enum SpvReflectDecorationFlagBits + { + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_NONE")] + [NativeName(NativeNameType.Value, "0")] + None = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_BLOCK")] + [NativeName(NativeNameType.Value, "1")] + Block = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_BUFFER_BLOCK")] + [NativeName(NativeNameType.Value, "2")] + BufferBlock = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_ROW_MAJOR")] + [NativeName(NativeNameType.Value, "4")] + RowMajor = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_COLUMN_MAJOR")] + [NativeName(NativeNameType.Value, "8")] + ColumnMajor = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_BUILT_IN")] + [NativeName(NativeNameType.Value, "16")] + BuiltIn = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_NOPERSPECTIVE")] + [NativeName(NativeNameType.Value, "32")] + Noperspective = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_FLAT")] + [NativeName(NativeNameType.Value, "64")] + Flat = unchecked(64), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_NON_WRITABLE")] + [NativeName(NativeNameType.Value, "128")] + NonWritable = unchecked(128), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_RELAXED_PRECISION")] + [NativeName(NativeNameType.Value, "256")] + RelaxedPrecision = unchecked(256), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_NON_READABLE")] + [NativeName(NativeNameType.Value, "512")] + NonReadable = unchecked(512), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_PATCH")] + [NativeName(NativeNameType.Value, "1024")] + Patch = unchecked(1024), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_PER_VERTEX")] + [NativeName(NativeNameType.Value, "2048")] + PerVertex = unchecked(2048), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_PER_TASK")] + [NativeName(NativeNameType.Value, "4096")] + PerTask = unchecked(4096), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_WEIGHT_TEXTURE")] + [NativeName(NativeNameType.Value, "8192")] + WeightTexture = unchecked(8192), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DECORATION_BLOCK_MATCH_TEXTURE")] + [NativeName(NativeNameType.Value, "16384")] + BlockMatchTexture = unchecked(16384), + } + + /// /// Based of SPV_GOOGLE_user_type
///
[NativeName(NativeNameType.Enum, "SpvReflectUserType")] + public enum SpvReflectUserType + { + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_INVALID")] + [NativeName(NativeNameType.Value, "0")] + Invalid = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_CBUFFER")] + [NativeName(NativeNameType.Value, "1")] + Cbuffer = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_TBUFFER")] + [NativeName(NativeNameType.Value, "2")] + Tbuffer = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_APPEND_STRUCTURED_BUFFER")] + [NativeName(NativeNameType.Value, "3")] + AppendStructuredBuffer = unchecked(3), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_BUFFER")] + [NativeName(NativeNameType.Value, "4")] + Buffer = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_BYTE_ADDRESS_BUFFER")] + [NativeName(NativeNameType.Value, "5")] + ByteAddressBuffer = unchecked(5), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_CONSTANT_BUFFER")] + [NativeName(NativeNameType.Value, "6")] + ConstantBuffer = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_CONSUME_STRUCTURED_BUFFER")] + [NativeName(NativeNameType.Value, "7")] + ConsumeStructuredBuffer = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_INPUT_PATCH")] + [NativeName(NativeNameType.Value, "8")] + InputPatch = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_OUTPUT_PATCH")] + [NativeName(NativeNameType.Value, "9")] + OutputPatch = unchecked(9), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_BUFFER")] + [NativeName(NativeNameType.Value, "10")] + RasterizerOrderedBuffer = unchecked(10), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_BYTE_ADDRESS_BUFFER")] + [NativeName(NativeNameType.Value, "11")] + RasterizerOrderedByteAddressBuffer = unchecked(11), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_STRUCTURED_BUFFER")] + [NativeName(NativeNameType.Value, "12")] + RasterizerOrderedStructuredBuffer = unchecked(12), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_TEXTURE_1D")] + [NativeName(NativeNameType.Value, "13")] + RasterizerOrderedTexture1D = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_TEXTURE_1D_ARRAY")] + [NativeName(NativeNameType.Value, "14")] + RasterizerOrderedTexture1DArray = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_TEXTURE_2D")] + [NativeName(NativeNameType.Value, "15")] + RasterizerOrderedTexture2D = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_TEXTURE_2D_ARRAY")] + [NativeName(NativeNameType.Value, "16")] + RasterizerOrderedTexture2DArray = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_TEXTURE_3D")] + [NativeName(NativeNameType.Value, "17")] + RasterizerOrderedTexture3D = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RAYTRACING_ACCELERATION_STRUCTURE")] + [NativeName(NativeNameType.Value, "18")] + RaytracingAccelerationStructure = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RW_BUFFER")] + [NativeName(NativeNameType.Value, "19")] + RwBuffer = unchecked(19), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RW_BYTE_ADDRESS_BUFFER")] + [NativeName(NativeNameType.Value, "20")] + RwByteAddressBuffer = unchecked(20), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RW_STRUCTURED_BUFFER")] + [NativeName(NativeNameType.Value, "21")] + RwStructuredBuffer = unchecked(21), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RW_TEXTURE_1D")] + [NativeName(NativeNameType.Value, "22")] + RwTexture1D = unchecked(22), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RW_TEXTURE_1D_ARRAY")] + [NativeName(NativeNameType.Value, "23")] + RwTexture1DArray = unchecked(23), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RW_TEXTURE_2D")] + [NativeName(NativeNameType.Value, "24")] + RwTexture2D = unchecked(24), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RW_TEXTURE_2D_ARRAY")] + [NativeName(NativeNameType.Value, "25")] + RwTexture2DArray = unchecked(25), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_RW_TEXTURE_3D")] + [NativeName(NativeNameType.Value, "26")] + RwTexture3D = unchecked(26), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_STRUCTURED_BUFFER")] + [NativeName(NativeNameType.Value, "27")] + StructuredBuffer = unchecked(27), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_SUBPASS_INPUT")] + [NativeName(NativeNameType.Value, "28")] + SubpassInput = unchecked(28), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_SUBPASS_INPUT_MS")] + [NativeName(NativeNameType.Value, "29")] + SubpassInputMs = unchecked(29), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_TEXTURE_1D")] + [NativeName(NativeNameType.Value, "30")] + Texture1D = unchecked(30), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_TEXTURE_1D_ARRAY")] + [NativeName(NativeNameType.Value, "31")] + Texture1DArray = unchecked(31), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_TEXTURE_2D")] + [NativeName(NativeNameType.Value, "32")] + Texture2D = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_TEXTURE_2D_ARRAY")] + [NativeName(NativeNameType.Value, "33")] + Texture2DArray = unchecked(33), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_TEXTURE_2DMS")] + [NativeName(NativeNameType.Value, "34")] + Texture2Dms = unchecked(34), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_TEXTURE_2DMS_ARRAY")] + [NativeName(NativeNameType.Value, "35")] + Texture2DmsArray = unchecked(35), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_TEXTURE_3D")] + [NativeName(NativeNameType.Value, "36")] + Texture3D = unchecked(36), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_TEXTURE_BUFFER")] + [NativeName(NativeNameType.Value, "37")] + TextureBuffer = unchecked(37), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_TEXTURE_CUBE")] + [NativeName(NativeNameType.Value, "38")] + TextureCube = unchecked(38), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_USER_TYPE_TEXTURE_CUBE_ARRAY")] + [NativeName(NativeNameType.Value, "39")] + TextureCubeArray = unchecked(39), + } + + /// ///
///
[NativeName(NativeNameType.Enum, "SpvReflectResourceType")] + public enum SpvReflectResourceType + { + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESOURCE_FLAG_UNDEFINED")] + [NativeName(NativeNameType.Value, "0")] + FlagUndefined = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESOURCE_FLAG_SAMPLER")] + [NativeName(NativeNameType.Value, "1")] + FlagSampler = unchecked(1), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESOURCE_FLAG_CBV")] + [NativeName(NativeNameType.Value, "2")] + FlagCbv = unchecked(2), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESOURCE_FLAG_SRV")] + [NativeName(NativeNameType.Value, "4")] + FlagSrv = unchecked(4), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_RESOURCE_FLAG_UAV")] + [NativeName(NativeNameType.Value, "8")] + FlagUav = unchecked(8), + } + + /// ///
///
[NativeName(NativeNameType.Enum, "SpvReflectFormat")] + public enum SpvReflectFormat + { + /// /// = VK_FORMAT_UNDEFINED
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_UNDEFINED")] + [NativeName(NativeNameType.Value, "0")] + Undefined = unchecked(0), + + /// /// = VK_FORMAT_R16_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16_UINT")] + [NativeName(NativeNameType.Value, "74")] + Formatr16Uint = unchecked(74), + + /// /// = VK_FORMAT_R16_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16_SINT")] + [NativeName(NativeNameType.Value, "75")] + Formatr16Sint = unchecked(75), + + /// /// = VK_FORMAT_R16_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16_SFLOAT")] + [NativeName(NativeNameType.Value, "76")] + Formatr16Sfloat = unchecked(76), + + /// /// = VK_FORMAT_R16G16_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16G16_UINT")] + [NativeName(NativeNameType.Value, "81")] + Formatr16g16Uint = unchecked(81), + + /// /// = VK_FORMAT_R16G16_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16G16_SINT")] + [NativeName(NativeNameType.Value, "82")] + Formatr16g16Sint = unchecked(82), + + /// /// = VK_FORMAT_R16G16_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16G16_SFLOAT")] + [NativeName(NativeNameType.Value, "83")] + Formatr16g16Sfloat = unchecked(83), + + /// /// = VK_FORMAT_R16G16B16_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16G16B16_UINT")] + [NativeName(NativeNameType.Value, "88")] + Formatr16g16b16Uint = unchecked(88), + + /// /// = VK_FORMAT_R16G16B16_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16G16B16_SINT")] + [NativeName(NativeNameType.Value, "89")] + Formatr16g16b16Sint = unchecked(89), + + /// /// = VK_FORMAT_R16G16B16_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16G16B16_SFLOAT")] + [NativeName(NativeNameType.Value, "90")] + Formatr16g16b16Sfloat = unchecked(90), + + /// /// = VK_FORMAT_R16G16B16A16_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16G16B16A16_UINT")] + [NativeName(NativeNameType.Value, "95")] + Formatr16g16b16a16Uint = unchecked(95), + + /// /// = VK_FORMAT_R16G16B16A16_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16G16B16A16_SINT")] + [NativeName(NativeNameType.Value, "96")] + Formatr16g16b16a16Sint = unchecked(96), + + /// /// = VK_FORMAT_R16G16B16A16_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R16G16B16A16_SFLOAT")] + [NativeName(NativeNameType.Value, "97")] + Formatr16g16b16a16Sfloat = unchecked(97), + + /// /// = VK_FORMAT_R32_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32_UINT")] + [NativeName(NativeNameType.Value, "98")] + Formatr32Uint = unchecked(98), + + /// /// = VK_FORMAT_R32_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32_SINT")] + [NativeName(NativeNameType.Value, "99")] + Formatr32Sint = unchecked(99), + + /// /// = VK_FORMAT_R32_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32_SFLOAT")] + [NativeName(NativeNameType.Value, "100")] + Formatr32Sfloat = unchecked(100), + + /// /// = VK_FORMAT_R32G32_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32G32_UINT")] + [NativeName(NativeNameType.Value, "101")] + Formatr32g32Uint = unchecked(101), + + /// /// = VK_FORMAT_R32G32_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32G32_SINT")] + [NativeName(NativeNameType.Value, "102")] + Formatr32g32Sint = unchecked(102), + + /// /// = VK_FORMAT_R32G32_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32G32_SFLOAT")] + [NativeName(NativeNameType.Value, "103")] + Formatr32g32Sfloat = unchecked(103), + + /// /// = VK_FORMAT_R32G32B32_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32G32B32_UINT")] + [NativeName(NativeNameType.Value, "104")] + Formatr32g32b32Uint = unchecked(104), + + /// /// = VK_FORMAT_R32G32B32_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32G32B32_SINT")] + [NativeName(NativeNameType.Value, "105")] + Formatr32g32b32Sint = unchecked(105), + + /// /// = VK_FORMAT_R32G32B32_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32G32B32_SFLOAT")] + [NativeName(NativeNameType.Value, "106")] + Formatr32g32b32Sfloat = unchecked(106), + + /// /// = VK_FORMAT_R32G32B32A32_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32G32B32A32_UINT")] + [NativeName(NativeNameType.Value, "107")] + Formatr32g32b32a32Uint = unchecked(107), + + /// /// = VK_FORMAT_R32G32B32A32_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32G32B32A32_SINT")] + [NativeName(NativeNameType.Value, "108")] + Formatr32g32b32a32Sint = unchecked(108), + + /// /// = VK_FORMAT_R32G32B32A32_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R32G32B32A32_SFLOAT")] + [NativeName(NativeNameType.Value, "109")] + Formatr32g32b32a32Sfloat = unchecked(109), + + /// /// = VK_FORMAT_R64_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64_UINT")] + [NativeName(NativeNameType.Value, "110")] + Formatr64Uint = unchecked(110), + + /// /// = VK_FORMAT_R64_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64_SINT")] + [NativeName(NativeNameType.Value, "111")] + Formatr64Sint = unchecked(111), + + /// /// = VK_FORMAT_R64_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64_SFLOAT")] + [NativeName(NativeNameType.Value, "112")] + Formatr64Sfloat = unchecked(112), + + /// /// = VK_FORMAT_R64G64_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64G64_UINT")] + [NativeName(NativeNameType.Value, "113")] + Formatr64g64Uint = unchecked(113), + + /// /// = VK_FORMAT_R64G64_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64G64_SINT")] + [NativeName(NativeNameType.Value, "114")] + Formatr64g64Sint = unchecked(114), + + /// /// = VK_FORMAT_R64G64_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64G64_SFLOAT")] + [NativeName(NativeNameType.Value, "115")] + Formatr64g64Sfloat = unchecked(115), + + /// /// = VK_FORMAT_R64G64B64_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64G64B64_UINT")] + [NativeName(NativeNameType.Value, "116")] + Formatr64g64b64Uint = unchecked(116), + + /// /// = VK_FORMAT_R64G64B64_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64G64B64_SINT")] + [NativeName(NativeNameType.Value, "117")] + Formatr64g64b64Sint = unchecked(117), + + /// /// = VK_FORMAT_R64G64B64_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64G64B64_SFLOAT")] + [NativeName(NativeNameType.Value, "118")] + Formatr64g64b64Sfloat = unchecked(118), + + /// /// = VK_FORMAT_R64G64B64A64_UINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64G64B64A64_UINT")] + [NativeName(NativeNameType.Value, "119")] + Formatr64g64b64a64Uint = unchecked(119), + + /// /// = VK_FORMAT_R64G64B64A64_SINT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64G64B64A64_SINT")] + [NativeName(NativeNameType.Value, "120")] + Formatr64g64b64a64Sint = unchecked(120), + + /// /// = VK_FORMAT_R64G64B64A64_SFLOAT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_FORMAT_R64G64B64A64_SFLOAT")] + [NativeName(NativeNameType.Value, "121")] + Formatr64g64b64a64Sfloat = unchecked(121), + + } + + /// ///
///
[NativeName(NativeNameType.Enum, "SpvReflectVariableFlagBits")] + public enum SpvReflectVariableFlagBits + { + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_VARIABLE_FLAGS_NONE")] + [NativeName(NativeNameType.Value, "0")] + FlagsNone = unchecked(0), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_VARIABLE_FLAGS_UNUSED")] + [NativeName(NativeNameType.Value, "1")] + FlagsUnused = unchecked(1), + /// /// If variable points to a copy of the PhysicalStorageBuffer struct
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_VARIABLE_FLAGS_PHYSICAL_POINTER_COPY")] + [NativeName(NativeNameType.Value, "2")] + FlagsPhysicalPointerCopy = unchecked(2), + + } + + /// ///
///
[NativeName(NativeNameType.Enum, "SpvReflectDescriptorType")] + public enum SpvReflectDescriptorType + { + /// /// = VK_DESCRIPTOR_TYPE_SAMPLER
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_SAMPLER")] + [NativeName(NativeNameType.Value, "0")] + Sampler = unchecked(0), + + /// /// = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER")] + [NativeName(NativeNameType.Value, "1")] + CombinedImageSampler = unchecked(1), + + /// /// = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_SAMPLED_IMAGE")] + [NativeName(NativeNameType.Value, "2")] + SampledImage = unchecked(2), + + /// /// = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_STORAGE_IMAGE")] + [NativeName(NativeNameType.Value, "3")] + StorageImage = unchecked(3), + + /// /// = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER")] + [NativeName(NativeNameType.Value, "4")] + UniformTexelBuffer = unchecked(4), + + /// /// = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER")] + [NativeName(NativeNameType.Value, "5")] + StorageTexelBuffer = unchecked(5), + + /// /// = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_UNIFORM_BUFFER")] + [NativeName(NativeNameType.Value, "6")] + UniformBuffer = unchecked(6), + + /// /// = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_STORAGE_BUFFER")] + [NativeName(NativeNameType.Value, "7")] + StorageBuffer = unchecked(7), + + /// /// = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC")] + [NativeName(NativeNameType.Value, "8")] + UniformBufferDynamic = unchecked(8), + + /// /// = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC")] + [NativeName(NativeNameType.Value, "9")] + StorageBufferDynamic = unchecked(9), + + /// /// = VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_INPUT_ATTACHMENT")] + [NativeName(NativeNameType.Value, "10")] + InputAttachment = unchecked(10), + + /// /// = VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR")] + [NativeName(NativeNameType.Value, "1000150000")] + AccelerationStructureKhr = unchecked(1000150000), + + } + + /// ///
///
[NativeName(NativeNameType.Enum, "SpvReflectShaderStageFlagBits")] + public enum SpvReflectShaderStageFlagBits + { + /// /// = VK_SHADER_STAGE_VERTEX_BIT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_VERTEX_BIT")] + [NativeName(NativeNameType.Value, "1")] + Vertex = unchecked(1), + + /// /// = VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_TESSELLATION_CONTROL_BIT")] + [NativeName(NativeNameType.Value, "2")] + TessellationControl = unchecked(2), + + /// /// = VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_TESSELLATION_EVALUATION_BIT")] + [NativeName(NativeNameType.Value, "4")] + TessellationEvaluation = unchecked(4), + + /// /// = VK_SHADER_STAGE_GEOMETRY_BIT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_GEOMETRY_BIT")] + [NativeName(NativeNameType.Value, "8")] + Geometry = unchecked(8), + + /// /// = VK_SHADER_STAGE_FRAGMENT_BIT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_FRAGMENT_BIT")] + [NativeName(NativeNameType.Value, "16")] + Fragment = unchecked(16), + + /// /// = VK_SHADER_STAGE_COMPUTE_BIT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_COMPUTE_BIT")] + [NativeName(NativeNameType.Value, "32")] + Compute = unchecked(32), + + /// /// = VK_SHADER_STAGE_TASK_BIT_NV
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_TASK_BIT_NV")] + [NativeName(NativeNameType.Value, "64")] + TaskNv = unchecked(64), + + /// /// = VK_SHADER_STAGE_CALLABLE_BIT_EXT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_TASK_BIT_EXT")] + [NativeName(NativeNameType.Value, "SPV_REFLECT_SHADER_STAGE_TASK_BIT_NV")] + TaskExt = TaskNv, + + /// /// = VK_SHADER_STAGE_MESH_BIT_NV
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_MESH_BIT_NV")] + [NativeName(NativeNameType.Value, "128")] + MeshNv = unchecked(128), + + /// /// = VK_SHADER_STAGE_CALLABLE_BIT_EXT
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_MESH_BIT_EXT")] + [NativeName(NativeNameType.Value, "SPV_REFLECT_SHADER_STAGE_MESH_BIT_NV")] + MeshExt = MeshNv, + + /// /// = VK_SHADER_STAGE_RAYGEN_BIT_KHR
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_RAYGEN_BIT_KHR")] + [NativeName(NativeNameType.Value, "256")] + RaygenKhr = unchecked(256), + + /// /// = VK_SHADER_STAGE_ANY_HIT_BIT_KHR
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_ANY_HIT_BIT_KHR")] + [NativeName(NativeNameType.Value, "512")] + AnyHitKhr = unchecked(512), + + /// /// = VK_SHADER_STAGE_CLOSEST_HIT_BIT_KHR
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_CLOSEST_HIT_BIT_KHR")] + [NativeName(NativeNameType.Value, "1024")] + ClosestHitKhr = unchecked(1024), + + /// /// = VK_SHADER_STAGE_MISS_BIT_KHR
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_MISS_BIT_KHR")] + [NativeName(NativeNameType.Value, "2048")] + MissKhr = unchecked(2048), + + /// /// = VK_SHADER_STAGE_INTERSECTION_BIT_KHR
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_INTERSECTION_BIT_KHR")] + [NativeName(NativeNameType.Value, "4096")] + IntersectionKhr = unchecked(4096), + + /// /// = VK_SHADER_STAGE_CALLABLE_BIT_KHR
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SHADER_STAGE_CALLABLE_BIT_KHR")] + [NativeName(NativeNameType.Value, "8192")] + CallableKhr = unchecked(8192), + + } + + /// ///
///
[NativeName(NativeNameType.Enum, "SpvReflectGenerator")] + public enum SpvReflectGenerator + { + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_GENERATOR_KHRONOS_LLVM_SPIRV_TRANSLATOR")] + [NativeName(NativeNameType.Value, "6")] + KhronosLlvmSpirvTranslator = unchecked(6), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_GENERATOR_KHRONOS_SPIRV_TOOLS_ASSEMBLER")] + [NativeName(NativeNameType.Value, "7")] + KhronosSpirvToolsAssembler = unchecked(7), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_GENERATOR_KHRONOS_GLSLANG_REFERENCE_FRONT_END")] + [NativeName(NativeNameType.Value, "8")] + KhronosGlslangReferenceFrontEnd = unchecked(8), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_GENERATOR_GOOGLE_SHADERC_OVER_GLSLANG")] + [NativeName(NativeNameType.Value, "13")] + GoogleShadercOverGlslang = unchecked(13), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_GENERATOR_GOOGLE_SPIREGG")] + [NativeName(NativeNameType.Value, "14")] + GoogleSpiregg = unchecked(14), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_GENERATOR_GOOGLE_RSPIRV")] + [NativeName(NativeNameType.Value, "15")] + GoogleRspirv = unchecked(15), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_GENERATOR_X_LEGEND_MESA_MESAIR_SPIRV_TRANSLATOR")] + [NativeName(NativeNameType.Value, "16")] + GeneratorxLegendMesaMesairSpirvTranslator = unchecked(16), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_GENERATOR_KHRONOS_SPIRV_TOOLS_LINKER")] + [NativeName(NativeNameType.Value, "17")] + KhronosSpirvToolsLinker = unchecked(17), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_GENERATOR_WINE_VKD3D_SHADER_COMPILER")] + [NativeName(NativeNameType.Value, "18")] + WineVkd3DShaderCompiler = unchecked(18), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_GENERATOR_CLAY_CLAY_SHADER_COMPILER")] + [NativeName(NativeNameType.Value, "19")] + ClayClayShaderCompiler = unchecked(19), + } + + [NativeName(NativeNameType.Enum, "(unnamed enum at C:\\Users\\juna\\source\\repos\\HexaGen\\HexaGen.Tests\\bin\\Debug\\net8.0\\spirvreflect\\spirv_reflect.h:330:1)")] + public enum UnknownEnum0 + { + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_MAX_ARRAY_DIMS")] + [NativeName(NativeNameType.Value, "32")] + SpvReflectMaxArrayDims = unchecked(32), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_MAX_DESCRIPTOR_SETS")] + [NativeName(NativeNameType.Value, "64")] + SpvReflectMaxDescriptorSets = unchecked(64), + } + + [NativeName(NativeNameType.Enum, "(unnamed enum at C:\\Users\\juna\\source\\repos\\HexaGen\\HexaGen.Tests\\bin\\Debug\\net8.0\\spirvreflect\\spirv_reflect.h:335:1)")] + public enum UnknownEnum1 + { + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_BINDING_NUMBER_DONT_CHANGE")] + [NativeName(NativeNameType.Value, "-1")] + SpvReflectBindingNumberDontChange = unchecked(-1), + [NativeName(NativeNameType.EnumItem, "SPV_REFLECT_SET_NUMBER_DONT_CHANGE")] + [NativeName(NativeNameType.Value, "-1")] + SpvReflectSetNumberDontChange = unchecked(-1), + } + + [NativeName(NativeNameType.Enum, "SpvReflectArrayDimType")] + public enum SpvReflectArrayDimType + { + /// /// OpTypeRuntimeArray
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_ARRAY_DIM_RUNTIME")] + [NativeName(NativeNameType.Value, "0")] + Runtime = unchecked(0), + + } + + [NativeName(NativeNameType.Enum, "SpvReflectExecutionModeValue")] + public enum SpvReflectExecutionModeValue + { + /// /// specialization constant
///
[NativeName(NativeNameType.EnumItem, "SPV_REFLECT_EXECUTION_MODE_SPEC_CONSTANT")] + [NativeName(NativeNameType.Value, "0xFFFFFFFF")] + SpecConstant = unchecked((int)0xFFFFFFFF), + + } + +} diff --git a/Hexa.NET.SPIRVReflect/Generated/Extensions.cs b/Hexa.NET.SPIRVReflect/Generated/Extensions.cs new file mode 100644 index 0000000..c6dcd21 --- /dev/null +++ b/Hexa.NET.SPIRVReflect/Generated/Extensions.cs @@ -0,0 +1,20 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.SPIRVReflect +{ + public static unsafe class Extensions + { + } +} diff --git a/Hexa.NET.SPIRVReflect/Generated/Functions.000.cs b/Hexa.NET.SPIRVReflect/Generated/Functions.000.cs new file mode 100644 index 0000000..8cee47a --- /dev/null +++ b/Hexa.NET.SPIRVReflect/Generated/Functions.000.cs @@ -0,0 +1,3979 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.SPIRVReflect +{ + public unsafe partial class SPIRV + { + internal const string LibName = "spirv-reflect-c-shared"; + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectCreateShaderModule")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectCreateShaderModule")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectCreateShaderModuleNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] ulong size, [NativeName(NativeNameType.Param, "p_code")] [NativeName(NativeNameType.Type, "const void*")] void* pCode, [NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectCreateShaderModule")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectCreateShaderModule([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] ulong size, [NativeName(NativeNameType.Param, "p_code")] [NativeName(NativeNameType.Type, "const void*")] void* pCode, [NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule) + { + SpvReflectResult ret = SpvReflectCreateShaderModuleNative(size, pCode, pModule); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectCreateShaderModule")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectCreateShaderModule([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] ulong size, [NativeName(NativeNameType.Param, "p_code")] [NativeName(NativeNameType.Type, "const void*")] void* pCode, [NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] ref SpvReflectShaderModule pModule) + { + fixed (SpvReflectShaderModule* ppModule = &pModule) + { + SpvReflectResult ret = SpvReflectCreateShaderModuleNative(size, pCode, (SpvReflectShaderModule*)ppModule); + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectCreateShaderModule2")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectCreateShaderModule2")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectCreateShaderModule2Native([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "SpvReflectModuleFlags")] SpvReflectModuleFlagBits flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] ulong size, [NativeName(NativeNameType.Param, "p_code")] [NativeName(NativeNameType.Type, "const void*")] void* pCode, [NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectCreateShaderModule2")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectCreateShaderModule2([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "SpvReflectModuleFlags")] SpvReflectModuleFlagBits flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] ulong size, [NativeName(NativeNameType.Param, "p_code")] [NativeName(NativeNameType.Type, "const void*")] void* pCode, [NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule) + { + SpvReflectResult ret = SpvReflectCreateShaderModule2Native(flags, size, pCode, pModule); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectCreateShaderModule2")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectCreateShaderModule2([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "SpvReflectModuleFlags")] SpvReflectModuleFlagBits flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size, [NativeName(NativeNameType.Param, "p_code")] [NativeName(NativeNameType.Type, "const void*")] void* pCode, [NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule) + { + SpvReflectResult ret = SpvReflectCreateShaderModule2Native(flags, size, pCode, pModule); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectCreateShaderModule2")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectCreateShaderModule2([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "SpvReflectModuleFlags")] SpvReflectModuleFlagBits flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] ulong size, [NativeName(NativeNameType.Param, "p_code")] [NativeName(NativeNameType.Type, "const void*")] void* pCode, [NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] ref SpvReflectShaderModule pModule) + { + fixed (SpvReflectShaderModule* ppModule = &pModule) + { + SpvReflectResult ret = SpvReflectCreateShaderModule2Native(flags, size, pCode, (SpvReflectShaderModule*)ppModule); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectCreateShaderModule2")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectCreateShaderModule2([NativeName(NativeNameType.Param, "flags")] [NativeName(NativeNameType.Type, "SpvReflectModuleFlags")] SpvReflectModuleFlagBits flags, [NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] nuint size, [NativeName(NativeNameType.Param, "p_code")] [NativeName(NativeNameType.Type, "const void*")] void* pCode, [NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] ref SpvReflectShaderModule pModule) + { + fixed (SpvReflectShaderModule* ppModule = &pModule) + { + SpvReflectResult ret = SpvReflectCreateShaderModule2Native(flags, size, pCode, (SpvReflectShaderModule*)ppModule); + return ret; + } + } + + [NativeName(NativeNameType.Func, "spvReflectGetShaderModule")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetShaderModule")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectGetShaderModuleNative([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] ulong size, [NativeName(NativeNameType.Param, "p_code")] [NativeName(NativeNameType.Type, "const void*")] void* pCode, [NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule); + + [NativeName(NativeNameType.Func, "spvReflectGetShaderModule")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectGetShaderModule([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] ulong size, [NativeName(NativeNameType.Param, "p_code")] [NativeName(NativeNameType.Type, "const void*")] void* pCode, [NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule) + { + SpvReflectResult ret = SpvReflectGetShaderModuleNative(size, pCode, pModule); + return ret; + } + + [NativeName(NativeNameType.Func, "spvReflectGetShaderModule")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectGetShaderModule([NativeName(NativeNameType.Param, "size")] [NativeName(NativeNameType.Type, "size_t")] ulong size, [NativeName(NativeNameType.Param, "p_code")] [NativeName(NativeNameType.Type, "const void*")] void* pCode, [NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] ref SpvReflectShaderModule pModule) + { + fixed (SpvReflectShaderModule* ppModule = &pModule) + { + SpvReflectResult ret = SpvReflectGetShaderModuleNative(size, pCode, (SpvReflectShaderModule*)ppModule); + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectDestroyShaderModule")] + [return: NativeName(NativeNameType.Type, "void")] + [LibraryImport(LibName, EntryPoint = "spvReflectDestroyShaderModule")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void SpvReflectDestroyShaderModuleNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectDestroyShaderModule")] + [return: NativeName(NativeNameType.Type, "void")] + public static void SpvReflectDestroyShaderModule([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule) + { + SpvReflectDestroyShaderModuleNative(pModule); + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetCodeSize")] + [return: NativeName(NativeNameType.Type, "uint32_t")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetCodeSize")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint SpvReflectGetCodeSizeNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetCodeSize")] + [return: NativeName(NativeNameType.Type, "uint32_t")] + public static uint SpvReflectGetCodeSize([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule) + { + uint ret = SpvReflectGetCodeSizeNative(pModule); + return ret; + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetCode")] + [return: NativeName(NativeNameType.Type, "const uint32_t*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetCode")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial uint* SpvReflectGetCodeNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetCode")] + [return: NativeName(NativeNameType.Type, "const uint32_t*")] + public static uint* SpvReflectGetCode([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule) + { + uint* ret = SpvReflectGetCodeNative(pModule); + return ret; + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetEntryPoint")] + [return: NativeName(NativeNameType.Type, "const SpvReflectEntryPoint*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetEntryPoint")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectEntryPoint* SpvReflectGetEntryPointNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPoint")] + [return: NativeName(NativeNameType.Type, "const SpvReflectEntryPoint*")] + public static SpvReflectEntryPoint* SpvReflectGetEntryPoint([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint) + { + SpvReflectEntryPoint* ret = SpvReflectGetEntryPointNative(pModule, entryPoint); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPoint")] + [return: NativeName(NativeNameType.Type, "const SpvReflectEntryPoint*")] + public static SpvReflectEntryPoint* SpvReflectGetEntryPoint([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectEntryPoint* ret = SpvReflectGetEntryPointNative(pModule, (byte*)pentryPoint); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPoint")] + [return: NativeName(NativeNameType.Type, "const SpvReflectEntryPoint*")] + public static SpvReflectEntryPoint* SpvReflectGetEntryPoint([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectEntryPoint* ret = SpvReflectGetEntryPointNative(pModule, pStr0); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateDescriptorBindings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateDescriptorBindingsNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] SpvReflectDescriptorBinding** ppBindings); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] SpvReflectDescriptorBinding** ppBindings) + { + SpvReflectResult ret = SpvReflectEnumerateDescriptorBindingsNative(pModule, pCount, ppBindings); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] SpvReflectDescriptorBinding** ppBindings) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateDescriptorBindingsNative(pModule, (uint*)ppCount, ppBindings); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] ref SpvReflectDescriptorBinding* ppBindings) + { + fixed (SpvReflectDescriptorBinding** pppBindings = &ppBindings) + { + SpvReflectResult ret = SpvReflectEnumerateDescriptorBindingsNative(pModule, pCount, (SpvReflectDescriptorBinding**)pppBindings); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] ref SpvReflectDescriptorBinding* ppBindings) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectDescriptorBinding** pppBindings = &ppBindings) + { + SpvReflectResult ret = SpvReflectEnumerateDescriptorBindingsNative(pModule, (uint*)ppCount, (SpvReflectDescriptorBinding**)pppBindings); + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateEntryPointDescriptorBindings")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindingsNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] SpvReflectDescriptorBinding** ppBindings); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] SpvReflectDescriptorBinding** ppBindings) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, entryPoint, pCount, ppBindings); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] SpvReflectDescriptorBinding** ppBindings) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, (byte*)pentryPoint, pCount, ppBindings); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] SpvReflectDescriptorBinding** ppBindings) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, pStr0, pCount, ppBindings); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] SpvReflectDescriptorBinding** ppBindings) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, entryPoint, (uint*)ppCount, ppBindings); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] SpvReflectDescriptorBinding** ppBindings) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, (byte*)pentryPoint, (uint*)ppCount, ppBindings); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] SpvReflectDescriptorBinding** ppBindings) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, pStr0, (uint*)ppCount, ppBindings); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] ref SpvReflectDescriptorBinding* ppBindings) + { + fixed (SpvReflectDescriptorBinding** pppBindings = &ppBindings) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, entryPoint, pCount, (SpvReflectDescriptorBinding**)pppBindings); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] ref SpvReflectDescriptorBinding* ppBindings) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectDescriptorBinding** pppBindings = &ppBindings) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, (byte*)pentryPoint, pCount, (SpvReflectDescriptorBinding**)pppBindings); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] ref SpvReflectDescriptorBinding* ppBindings) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectDescriptorBinding** pppBindings = &ppBindings) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, pStr0, pCount, (SpvReflectDescriptorBinding**)pppBindings); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] ref SpvReflectDescriptorBinding* ppBindings) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectDescriptorBinding** pppBindings = &ppBindings) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, entryPoint, (uint*)ppCount, (SpvReflectDescriptorBinding**)pppBindings); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] ref SpvReflectDescriptorBinding* ppBindings) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectDescriptorBinding** pppBindings = &ppBindings) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, (byte*)pentryPoint, (uint*)ppCount, (SpvReflectDescriptorBinding**)pppBindings); + return ret; + } + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorBindings")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorBindings([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_bindings")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] ref SpvReflectDescriptorBinding* ppBindings) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectDescriptorBinding** pppBindings = &ppBindings) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorBindingsNative(pModule, pStr0, (uint*)ppCount, (SpvReflectDescriptorBinding**)pppBindings); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateDescriptorSets")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateDescriptorSetsNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] SpvReflectDescriptorSet** ppSets); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] SpvReflectDescriptorSet** ppSets) + { + SpvReflectResult ret = SpvReflectEnumerateDescriptorSetsNative(pModule, pCount, ppSets); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] SpvReflectDescriptorSet** ppSets) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateDescriptorSetsNative(pModule, (uint*)ppCount, ppSets); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] ref SpvReflectDescriptorSet* ppSets) + { + fixed (SpvReflectDescriptorSet** pppSets = &ppSets) + { + SpvReflectResult ret = SpvReflectEnumerateDescriptorSetsNative(pModule, pCount, (SpvReflectDescriptorSet**)pppSets); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] ref SpvReflectDescriptorSet* ppSets) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectDescriptorSet** pppSets = &ppSets) + { + SpvReflectResult ret = SpvReflectEnumerateDescriptorSetsNative(pModule, (uint*)ppCount, (SpvReflectDescriptorSet**)pppSets); + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateEntryPointDescriptorSets")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSetsNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] SpvReflectDescriptorSet** ppSets); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] SpvReflectDescriptorSet** ppSets) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, entryPoint, pCount, ppSets); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] SpvReflectDescriptorSet** ppSets) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, (byte*)pentryPoint, pCount, ppSets); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] SpvReflectDescriptorSet** ppSets) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, pStr0, pCount, ppSets); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] SpvReflectDescriptorSet** ppSets) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, entryPoint, (uint*)ppCount, ppSets); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] SpvReflectDescriptorSet** ppSets) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, (byte*)pentryPoint, (uint*)ppCount, ppSets); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] SpvReflectDescriptorSet** ppSets) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, pStr0, (uint*)ppCount, ppSets); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] ref SpvReflectDescriptorSet* ppSets) + { + fixed (SpvReflectDescriptorSet** pppSets = &ppSets) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, entryPoint, pCount, (SpvReflectDescriptorSet**)pppSets); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] ref SpvReflectDescriptorSet* ppSets) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectDescriptorSet** pppSets = &ppSets) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, (byte*)pentryPoint, pCount, (SpvReflectDescriptorSet**)pppSets); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] ref SpvReflectDescriptorSet* ppSets) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectDescriptorSet** pppSets = &ppSets) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, pStr0, pCount, (SpvReflectDescriptorSet**)pppSets); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] ref SpvReflectDescriptorSet* ppSets) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectDescriptorSet** pppSets = &ppSets) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, entryPoint, (uint*)ppCount, (SpvReflectDescriptorSet**)pppSets); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] ref SpvReflectDescriptorSet* ppSets) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectDescriptorSet** pppSets = &ppSets) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, (byte*)pentryPoint, (uint*)ppCount, (SpvReflectDescriptorSet**)pppSets); + return ret; + } + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointDescriptorSets")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointDescriptorSets([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_sets")] [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet**")] ref SpvReflectDescriptorSet* ppSets) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectDescriptorSet** pppSets = &ppSets) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointDescriptorSetsNative(pModule, pStr0, (uint*)ppCount, (SpvReflectDescriptorSet**)pppSets); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateInterfaceVariables")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateInterfaceVariablesNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateInterfaceVariablesNative(pModule, pCount, ppVariables); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateInterfaceVariablesNative(pModule, (uint*)ppCount, ppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateInterfaceVariablesNative(pModule, pCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateInterfaceVariablesNative(pModule, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateEntryPointInterfaceVariables")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariablesNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, entryPoint, pCount, ppVariables); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, (byte*)pentryPoint, pCount, ppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, pStr0, pCount, ppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, entryPoint, (uint*)ppCount, ppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, (byte*)pentryPoint, (uint*)ppCount, ppVariables); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, pStr0, (uint*)ppCount, ppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, entryPoint, pCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, (byte*)pentryPoint, pCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, pStr0, pCount, (SpvReflectInterfaceVariable**)pppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, entryPoint, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, (byte*)pentryPoint, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInterfaceVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInterfaceVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInterfaceVariablesNative(pModule, pStr0, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateInputVariables")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateInputVariablesNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateInputVariablesNative(pModule, pCount, ppVariables); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateInputVariablesNative(pModule, (uint*)ppCount, ppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateInputVariablesNative(pModule, pCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateInputVariablesNative(pModule, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateEntryPointInputVariables")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateEntryPointInputVariablesNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, entryPoint, pCount, ppVariables); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, (byte*)pentryPoint, pCount, ppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, pStr0, pCount, ppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, entryPoint, (uint*)ppCount, ppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, (byte*)pentryPoint, (uint*)ppCount, ppVariables); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, pStr0, (uint*)ppCount, ppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, entryPoint, pCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, (byte*)pentryPoint, pCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, pStr0, pCount, (SpvReflectInterfaceVariable**)pppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, entryPoint, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, (byte*)pentryPoint, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointInputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointInputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointInputVariablesNative(pModule, pStr0, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateOutputVariables")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateOutputVariablesNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateOutputVariablesNative(pModule, pCount, ppVariables); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateOutputVariablesNative(pModule, (uint*)ppCount, ppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateOutputVariablesNative(pModule, pCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateOutputVariablesNative(pModule, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateEntryPointOutputVariables")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateEntryPointOutputVariablesNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, entryPoint, pCount, ppVariables); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, (byte*)pentryPoint, pCount, ppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, pStr0, pCount, ppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, entryPoint, (uint*)ppCount, ppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, (byte*)pentryPoint, (uint*)ppCount, ppVariables); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] SpvReflectInterfaceVariable** ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, pStr0, (uint*)ppCount, ppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, entryPoint, pCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, (byte*)pentryPoint, pCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, pStr0, pCount, (SpvReflectInterfaceVariable**)pppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, entryPoint, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, (byte*)pentryPoint, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + return ret; + } + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointOutputVariables")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointOutputVariables([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_variables")] [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] ref SpvReflectInterfaceVariable* ppVariables) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectInterfaceVariable** pppVariables = &ppVariables) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointOutputVariablesNative(pModule, pStr0, (uint*)ppCount, (SpvReflectInterfaceVariable**)pppVariables); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumeratePushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumeratePushConstantBlocks")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumeratePushConstantBlocksNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumeratePushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumeratePushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumeratePushConstantBlocksNative(pModule, pCount, ppBlocks); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumeratePushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumeratePushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumeratePushConstantBlocksNative(pModule, (uint*)ppCount, ppBlocks); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumeratePushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumeratePushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] ref SpvReflectBlockVariable* ppBlocks) + { + fixed (SpvReflectBlockVariable** pppBlocks = &ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumeratePushConstantBlocksNative(pModule, pCount, (SpvReflectBlockVariable**)pppBlocks); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumeratePushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumeratePushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] ref SpvReflectBlockVariable* ppBlocks) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectBlockVariable** pppBlocks = &ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumeratePushConstantBlocksNative(pModule, (uint*)ppCount, (SpvReflectBlockVariable**)pppBlocks); + return ret; + } + } + } + + [NativeName(NativeNameType.Func, "spvReflectEnumeratePushConstants")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumeratePushConstants")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumeratePushConstantsNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks); + + [NativeName(NativeNameType.Func, "spvReflectEnumeratePushConstants")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumeratePushConstants([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumeratePushConstantsNative(pModule, pCount, ppBlocks); + return ret; + } + + [NativeName(NativeNameType.Func, "spvReflectEnumeratePushConstants")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumeratePushConstants([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumeratePushConstantsNative(pModule, (uint*)ppCount, ppBlocks); + return ret; + } + } + + [NativeName(NativeNameType.Func, "spvReflectEnumeratePushConstants")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumeratePushConstants([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] ref SpvReflectBlockVariable* ppBlocks) + { + fixed (SpvReflectBlockVariable** pppBlocks = &ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumeratePushConstantsNative(pModule, pCount, (SpvReflectBlockVariable**)pppBlocks); + return ret; + } + } + + [NativeName(NativeNameType.Func, "spvReflectEnumeratePushConstants")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumeratePushConstants([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] ref SpvReflectBlockVariable* ppBlocks) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectBlockVariable** pppBlocks = &ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumeratePushConstantsNative(pModule, (uint*)ppCount, (SpvReflectBlockVariable**)pppBlocks); + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateEntryPointPushConstantBlocks")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocksNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, entryPoint, pCount, ppBlocks); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, (byte*)pentryPoint, pCount, ppBlocks); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, pStr0, pCount, ppBlocks); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, entryPoint, (uint*)ppCount, ppBlocks); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, (byte*)pentryPoint, (uint*)ppCount, ppBlocks); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] SpvReflectBlockVariable** ppBlocks) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, pStr0, (uint*)ppCount, ppBlocks); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] ref SpvReflectBlockVariable* ppBlocks) + { + fixed (SpvReflectBlockVariable** pppBlocks = &ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, entryPoint, pCount, (SpvReflectBlockVariable**)pppBlocks); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] ref SpvReflectBlockVariable* ppBlocks) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectBlockVariable** pppBlocks = &ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, (byte*)pentryPoint, pCount, (SpvReflectBlockVariable**)pppBlocks); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] ref SpvReflectBlockVariable* ppBlocks) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectBlockVariable** pppBlocks = &ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, pStr0, pCount, (SpvReflectBlockVariable**)pppBlocks); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] ref SpvReflectBlockVariable* ppBlocks) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectBlockVariable** pppBlocks = &ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, entryPoint, (uint*)ppCount, (SpvReflectBlockVariable**)pppBlocks); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] ref SpvReflectBlockVariable* ppBlocks) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectBlockVariable** pppBlocks = &ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, (byte*)pentryPoint, (uint*)ppCount, (SpvReflectBlockVariable**)pppBlocks); + return ret; + } + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateEntryPointPushConstantBlocks")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateEntryPointPushConstantBlocks([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_blocks")] [NativeName(NativeNameType.Type, "SpvReflectBlockVariable**")] ref SpvReflectBlockVariable* ppBlocks) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectBlockVariable** pppBlocks = &ppBlocks) + { + SpvReflectResult ret = SpvReflectEnumerateEntryPointPushConstantBlocksNative(pModule, pStr0, (uint*)ppCount, (SpvReflectBlockVariable**)pppBlocks); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectEnumerateSpecializationConstants")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectEnumerateSpecializationConstants")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectEnumerateSpecializationConstantsNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_constants")] [NativeName(NativeNameType.Type, "SpvReflectSpecializationConstant**")] SpvReflectSpecializationConstant** ppConstants); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateSpecializationConstants")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateSpecializationConstants([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_constants")] [NativeName(NativeNameType.Type, "SpvReflectSpecializationConstant**")] SpvReflectSpecializationConstant** ppConstants) + { + SpvReflectResult ret = SpvReflectEnumerateSpecializationConstantsNative(pModule, pCount, ppConstants); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateSpecializationConstants")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateSpecializationConstants([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_constants")] [NativeName(NativeNameType.Type, "SpvReflectSpecializationConstant**")] SpvReflectSpecializationConstant** ppConstants) + { + fixed (uint* ppCount = &pCount) + { + SpvReflectResult ret = SpvReflectEnumerateSpecializationConstantsNative(pModule, (uint*)ppCount, ppConstants); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateSpecializationConstants")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateSpecializationConstants([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] uint* pCount, [NativeName(NativeNameType.Param, "pp_constants")] [NativeName(NativeNameType.Type, "SpvReflectSpecializationConstant**")] ref SpvReflectSpecializationConstant* ppConstants) + { + fixed (SpvReflectSpecializationConstant** pppConstants = &ppConstants) + { + SpvReflectResult ret = SpvReflectEnumerateSpecializationConstantsNative(pModule, pCount, (SpvReflectSpecializationConstant**)pppConstants); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectEnumerateSpecializationConstants")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectEnumerateSpecializationConstants([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_count")] [NativeName(NativeNameType.Type, "uint32_t*")] ref uint pCount, [NativeName(NativeNameType.Param, "pp_constants")] [NativeName(NativeNameType.Type, "SpvReflectSpecializationConstant**")] ref SpvReflectSpecializationConstant* ppConstants) + { + fixed (uint* ppCount = &pCount) + { + fixed (SpvReflectSpecializationConstant** pppConstants = &ppConstants) + { + SpvReflectResult ret = SpvReflectEnumerateSpecializationConstantsNative(pModule, (uint*)ppCount, (SpvReflectSpecializationConstant**)pppConstants); + return ret; + } + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetDescriptorBinding")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetDescriptorBinding")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectDescriptorBinding* SpvReflectGetDescriptorBindingNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint bindingNumber, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetDescriptorBinding")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] + public static SpvReflectDescriptorBinding* SpvReflectGetDescriptorBinding([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint bindingNumber, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectDescriptorBinding* ret = SpvReflectGetDescriptorBindingNative(pModule, bindingNumber, setNumber, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetDescriptorBinding")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] + public static SpvReflectDescriptorBinding* SpvReflectGetDescriptorBinding([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint bindingNumber, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectDescriptorBinding* ret = SpvReflectGetDescriptorBindingNative(pModule, bindingNumber, setNumber, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorBinding")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetEntryPointDescriptorBinding")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectDescriptorBinding* SpvReflectGetEntryPointDescriptorBindingNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint bindingNumber, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorBinding")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] + public static SpvReflectDescriptorBinding* SpvReflectGetEntryPointDescriptorBinding([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint bindingNumber, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectDescriptorBinding* ret = SpvReflectGetEntryPointDescriptorBindingNative(pModule, entryPoint, bindingNumber, setNumber, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorBinding")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] + public static SpvReflectDescriptorBinding* SpvReflectGetEntryPointDescriptorBinding([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint bindingNumber, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectDescriptorBinding* ret = SpvReflectGetEntryPointDescriptorBindingNative(pModule, (byte*)pentryPoint, bindingNumber, setNumber, pResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorBinding")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] + public static SpvReflectDescriptorBinding* SpvReflectGetEntryPointDescriptorBinding([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint bindingNumber, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectDescriptorBinding* ret = SpvReflectGetEntryPointDescriptorBindingNative(pModule, pStr0, bindingNumber, setNumber, pResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorBinding")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] + public static SpvReflectDescriptorBinding* SpvReflectGetEntryPointDescriptorBinding([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint bindingNumber, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectDescriptorBinding* ret = SpvReflectGetEntryPointDescriptorBindingNative(pModule, entryPoint, bindingNumber, setNumber, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorBinding")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] + public static SpvReflectDescriptorBinding* SpvReflectGetEntryPointDescriptorBinding([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint bindingNumber, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectDescriptorBinding* ret = SpvReflectGetEntryPointDescriptorBindingNative(pModule, (byte*)pentryPoint, bindingNumber, setNumber, (SpvReflectResult*)ppResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorBinding")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] + public static SpvReflectDescriptorBinding* SpvReflectGetEntryPointDescriptorBinding([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint bindingNumber, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectDescriptorBinding* ret = SpvReflectGetEntryPointDescriptorBindingNative(pModule, pStr0, bindingNumber, setNumber, (SpvReflectResult*)ppResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetDescriptorSet")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetDescriptorSet")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectDescriptorSet* SpvReflectGetDescriptorSetNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetDescriptorSet")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] + public static SpvReflectDescriptorSet* SpvReflectGetDescriptorSet([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectDescriptorSet* ret = SpvReflectGetDescriptorSetNative(pModule, setNumber, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetDescriptorSet")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] + public static SpvReflectDescriptorSet* SpvReflectGetDescriptorSet([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectDescriptorSet* ret = SpvReflectGetDescriptorSetNative(pModule, setNumber, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorSet")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetEntryPointDescriptorSet")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectDescriptorSet* SpvReflectGetEntryPointDescriptorSetNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorSet")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] + public static SpvReflectDescriptorSet* SpvReflectGetEntryPointDescriptorSet([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectDescriptorSet* ret = SpvReflectGetEntryPointDescriptorSetNative(pModule, entryPoint, setNumber, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorSet")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] + public static SpvReflectDescriptorSet* SpvReflectGetEntryPointDescriptorSet([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectDescriptorSet* ret = SpvReflectGetEntryPointDescriptorSetNative(pModule, (byte*)pentryPoint, setNumber, pResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorSet")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] + public static SpvReflectDescriptorSet* SpvReflectGetEntryPointDescriptorSet([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectDescriptorSet* ret = SpvReflectGetEntryPointDescriptorSetNative(pModule, pStr0, setNumber, pResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorSet")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] + public static SpvReflectDescriptorSet* SpvReflectGetEntryPointDescriptorSet([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectDescriptorSet* ret = SpvReflectGetEntryPointDescriptorSetNative(pModule, entryPoint, setNumber, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorSet")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] + public static SpvReflectDescriptorSet* SpvReflectGetEntryPointDescriptorSet([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectDescriptorSet* ret = SpvReflectGetEntryPointDescriptorSetNative(pModule, (byte*)pentryPoint, setNumber, (SpvReflectResult*)ppResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointDescriptorSet")] + [return: NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] + public static SpvReflectDescriptorSet* SpvReflectGetEntryPointDescriptorSet([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint setNumber, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectDescriptorSet* ret = SpvReflectGetEntryPointDescriptorSetNative(pModule, pStr0, setNumber, (SpvReflectResult*)ppResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetInputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetInputVariableByLocation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectInterfaceVariable* SpvReflectGetInputVariableByLocationNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetInputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetInputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetInputVariableByLocationNative(pModule, location, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetInputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetInputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetInputVariableByLocationNative(pModule, location, (SpvReflectResult*)ppResult); + return ret; + } + } + + [NativeName(NativeNameType.Func, "spvReflectGetInputVariable")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetInputVariable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectInterfaceVariable* SpvReflectGetInputVariableNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + [NativeName(NativeNameType.Func, "spvReflectGetInputVariable")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetInputVariable([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetInputVariableNative(pModule, location, pResult); + return ret; + } + + [NativeName(NativeNameType.Func, "spvReflectGetInputVariable")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetInputVariable([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetInputVariableNative(pModule, location, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetEntryPointInputVariableByLocation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableByLocationNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableByLocationNative(pModule, entryPoint, location, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableByLocationNative(pModule, (byte*)pentryPoint, location, pResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableByLocationNative(pModule, pStr0, location, pResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableByLocationNative(pModule, entryPoint, location, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableByLocationNative(pModule, (byte*)pentryPoint, location, (SpvReflectResult*)ppResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableByLocationNative(pModule, pStr0, location, (SpvReflectResult*)ppResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetInputVariableBySemantic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectInterfaceVariable* SpvReflectGetInputVariableBySemanticNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetInputVariableBySemanticNative(pModule, semantic, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* psemantic = &semantic) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetInputVariableBySemanticNative(pModule, (byte*)psemantic, pResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (semantic != null) + { + pStrSize0 = Utils.GetByteCountUTF8(semantic); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(semantic, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectInterfaceVariable* ret = SpvReflectGetInputVariableBySemanticNative(pModule, pStr0, pResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetInputVariableBySemanticNative(pModule, semantic, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* psemantic = &semantic) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetInputVariableBySemanticNative(pModule, (byte*)psemantic, (SpvReflectResult*)ppResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (semantic != null) + { + pStrSize0 = Utils.GetByteCountUTF8(semantic); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(semantic, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetInputVariableBySemanticNative(pModule, pStr0, (SpvReflectResult*)ppResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetEntryPointInputVariableBySemantic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemanticNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, entryPoint, semantic, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, (byte*)pentryPoint, semantic, pResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, pStr0, semantic, pResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* psemantic = &semantic) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, entryPoint, (byte*)psemantic, pResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (semantic != null) + { + pStrSize0 = Utils.GetByteCountUTF8(semantic); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(semantic, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, entryPoint, pStr0, pResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (byte* psemantic = &semantic) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, (byte*)pentryPoint, (byte*)psemantic, pResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (semantic != null) + { + pStrSize1 = Utils.GetByteCountUTF8(semantic); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(semantic, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, pStr0, pStr1, pResult); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, entryPoint, semantic, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, (byte*)pentryPoint, semantic, (SpvReflectResult*)ppResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, pStr0, semantic, (SpvReflectResult*)ppResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* psemantic = &semantic) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, entryPoint, (byte*)psemantic, (SpvReflectResult*)ppResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (semantic != null) + { + pStrSize0 = Utils.GetByteCountUTF8(semantic); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(semantic, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, entryPoint, pStr0, (SpvReflectResult*)ppResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (byte* psemantic = &semantic) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, (byte*)pentryPoint, (byte*)psemantic, (SpvReflectResult*)ppResult); + return ret; + } + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointInputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointInputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (semantic != null) + { + pStrSize1 = Utils.GetByteCountUTF8(semantic); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(semantic, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointInputVariableBySemanticNative(pModule, pStr0, pStr1, (SpvReflectResult*)ppResult); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetOutputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetOutputVariableByLocation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectInterfaceVariable* SpvReflectGetOutputVariableByLocationNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetOutputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetOutputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetOutputVariableByLocationNative(pModule, location, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetOutputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetOutputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetOutputVariableByLocationNative(pModule, location, (SpvReflectResult*)ppResult); + return ret; + } + } + + [NativeName(NativeNameType.Func, "spvReflectGetOutputVariable")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetOutputVariable")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectInterfaceVariable* SpvReflectGetOutputVariableNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + [NativeName(NativeNameType.Func, "spvReflectGetOutputVariable")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetOutputVariable([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetOutputVariableNative(pModule, location, pResult); + return ret; + } + + [NativeName(NativeNameType.Func, "spvReflectGetOutputVariable")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetOutputVariable([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetOutputVariableNative(pModule, location, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetEntryPointOutputVariableByLocation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableByLocationNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableByLocationNative(pModule, entryPoint, location, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableByLocationNative(pModule, (byte*)pentryPoint, location, pResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableByLocationNative(pModule, pStr0, location, pResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableByLocationNative(pModule, entryPoint, location, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableByLocationNative(pModule, (byte*)pentryPoint, location, (SpvReflectResult*)ppResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableByLocation")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableByLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "location")] [NativeName(NativeNameType.Type, "uint32_t")] uint location, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableByLocationNative(pModule, pStr0, location, (SpvReflectResult*)ppResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetOutputVariableBySemantic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectInterfaceVariable* SpvReflectGetOutputVariableBySemanticNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetOutputVariableBySemanticNative(pModule, semantic, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* psemantic = &semantic) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetOutputVariableBySemanticNative(pModule, (byte*)psemantic, pResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (semantic != null) + { + pStrSize0 = Utils.GetByteCountUTF8(semantic); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(semantic, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectInterfaceVariable* ret = SpvReflectGetOutputVariableBySemanticNative(pModule, pStr0, pResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetOutputVariableBySemanticNative(pModule, semantic, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* psemantic = &semantic) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetOutputVariableBySemanticNative(pModule, (byte*)psemantic, (SpvReflectResult*)ppResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (semantic != null) + { + pStrSize0 = Utils.GetByteCountUTF8(semantic); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(semantic, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetOutputVariableBySemanticNative(pModule, pStr0, (SpvReflectResult*)ppResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetEntryPointOutputVariableBySemantic")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemanticNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, entryPoint, semantic, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, (byte*)pentryPoint, semantic, pResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, pStr0, semantic, pResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* psemantic = &semantic) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, entryPoint, (byte*)psemantic, pResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (semantic != null) + { + pStrSize0 = Utils.GetByteCountUTF8(semantic); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(semantic, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, entryPoint, pStr0, pResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (byte* psemantic = &semantic) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, (byte*)pentryPoint, (byte*)psemantic, pResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (semantic != null) + { + pStrSize1 = Utils.GetByteCountUTF8(semantic); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(semantic, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, pStr0, pStr1, pResult); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, entryPoint, semantic, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, (byte*)pentryPoint, semantic, (SpvReflectResult*)ppResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] byte* semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, pStr0, semantic, (SpvReflectResult*)ppResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* psemantic = &semantic) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, entryPoint, (byte*)psemantic, (SpvReflectResult*)ppResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (semantic != null) + { + pStrSize0 = Utils.GetByteCountUTF8(semantic); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(semantic, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, entryPoint, pStr0, (SpvReflectResult*)ppResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] ref byte semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (byte* psemantic = &semantic) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, (byte*)pentryPoint, (byte*)psemantic, (SpvReflectResult*)ppResult); + return ret; + } + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointOutputVariableBySemantic")] + [return: NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] + public static SpvReflectInterfaceVariable* SpvReflectGetEntryPointOutputVariableBySemantic([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "semantic")] [NativeName(NativeNameType.Type, "const char*")] string semantic, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + byte* pStr1 = null; + int pStrSize1 = 0; + if (semantic != null) + { + pStrSize1 = Utils.GetByteCountUTF8(semantic); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + pStr1 = Utils.Alloc(pStrSize1 + 1); + } + else + { + byte* pStrStack1 = stackalloc byte[pStrSize1 + 1]; + pStr1 = pStrStack1; + } + int pStrOffset1 = Utils.EncodeStringUTF8(semantic, pStr1, pStrSize1); + pStr1[pStrOffset1] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectInterfaceVariable* ret = SpvReflectGetEntryPointOutputVariableBySemanticNative(pModule, pStr0, pStr1, (SpvReflectResult*)ppResult); + if (pStrSize1 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr1); + } + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetPushConstantBlock")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetPushConstantBlock")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectBlockVariable* SpvReflectGetPushConstantBlockNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "uint32_t")] uint index, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetPushConstantBlock")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + public static SpvReflectBlockVariable* SpvReflectGetPushConstantBlock([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "uint32_t")] uint index, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectBlockVariable* ret = SpvReflectGetPushConstantBlockNative(pModule, index, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetPushConstantBlock")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + public static SpvReflectBlockVariable* SpvReflectGetPushConstantBlock([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "uint32_t")] uint index, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectBlockVariable* ret = SpvReflectGetPushConstantBlockNative(pModule, index, (SpvReflectResult*)ppResult); + return ret; + } + } + + [NativeName(NativeNameType.Func, "spvReflectGetPushConstant")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetPushConstant")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectBlockVariable* SpvReflectGetPushConstantNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "uint32_t")] uint index, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + [NativeName(NativeNameType.Func, "spvReflectGetPushConstant")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + public static SpvReflectBlockVariable* SpvReflectGetPushConstant([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "uint32_t")] uint index, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectBlockVariable* ret = SpvReflectGetPushConstantNative(pModule, index, pResult); + return ret; + } + + [NativeName(NativeNameType.Func, "spvReflectGetPushConstant")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + public static SpvReflectBlockVariable* SpvReflectGetPushConstant([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "index")] [NativeName(NativeNameType.Type, "uint32_t")] uint index, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectBlockVariable* ret = SpvReflectGetPushConstantNative(pModule, index, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectGetEntryPointPushConstantBlock")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + [LibraryImport(LibName, EntryPoint = "spvReflectGetEntryPointPushConstantBlock")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectBlockVariable* SpvReflectGetEntryPointPushConstantBlockNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointPushConstantBlock")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + public static SpvReflectBlockVariable* SpvReflectGetEntryPointPushConstantBlock([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + SpvReflectBlockVariable* ret = SpvReflectGetEntryPointPushConstantBlockNative(pModule, entryPoint, pResult); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointPushConstantBlock")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + public static SpvReflectBlockVariable* SpvReflectGetEntryPointPushConstantBlock([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + SpvReflectBlockVariable* ret = SpvReflectGetEntryPointPushConstantBlockNative(pModule, (byte*)pentryPoint, pResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointPushConstantBlock")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + public static SpvReflectBlockVariable* SpvReflectGetEntryPointPushConstantBlock([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] SpvReflectResult* pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + SpvReflectBlockVariable* ret = SpvReflectGetEntryPointPushConstantBlockNative(pModule, pStr0, pResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointPushConstantBlock")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + public static SpvReflectBlockVariable* SpvReflectGetEntryPointPushConstantBlock([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] byte* entryPoint, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectBlockVariable* ret = SpvReflectGetEntryPointPushConstantBlockNative(pModule, entryPoint, (SpvReflectResult*)ppResult); + return ret; + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointPushConstantBlock")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + public static SpvReflectBlockVariable* SpvReflectGetEntryPointPushConstantBlock([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] ref byte entryPoint, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + fixed (byte* pentryPoint = &entryPoint) + { + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectBlockVariable* ret = SpvReflectGetEntryPointPushConstantBlockNative(pModule, (byte*)pentryPoint, (SpvReflectResult*)ppResult); + return ret; + } + } + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectGetEntryPointPushConstantBlock")] + [return: NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] + public static SpvReflectBlockVariable* SpvReflectGetEntryPointPushConstantBlock([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "const SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "entry_point")] [NativeName(NativeNameType.Type, "const char*")] string entryPoint, [NativeName(NativeNameType.Param, "p_result")] [NativeName(NativeNameType.Type, "SpvReflectResult*")] ref SpvReflectResult pResult) + { + byte* pStr0 = null; + int pStrSize0 = 0; + if (entryPoint != null) + { + pStrSize0 = Utils.GetByteCountUTF8(entryPoint); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + pStr0 = Utils.Alloc(pStrSize0 + 1); + } + else + { + byte* pStrStack0 = stackalloc byte[pStrSize0 + 1]; + pStr0 = pStrStack0; + } + int pStrOffset0 = Utils.EncodeStringUTF8(entryPoint, pStr0, pStrSize0); + pStr0[pStrOffset0] = 0; + } + fixed (SpvReflectResult* ppResult = &pResult) + { + SpvReflectBlockVariable* ret = SpvReflectGetEntryPointPushConstantBlockNative(pModule, pStr0, (SpvReflectResult*)ppResult); + if (pStrSize0 >= Utils.MaxStackallocSize) + { + Utils.Free(pStr0); + } + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectChangeDescriptorBindingNumbers")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectChangeDescriptorBindingNumbers")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectChangeDescriptorBindingNumbersNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_binding")] [NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] SpvReflectDescriptorBinding* pBinding, [NativeName(NativeNameType.Param, "new_binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newBindingNumber, [NativeName(NativeNameType.Param, "new_set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newSetNumber); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectChangeDescriptorBindingNumbers")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectChangeDescriptorBindingNumbers([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_binding")] [NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] SpvReflectDescriptorBinding* pBinding, [NativeName(NativeNameType.Param, "new_binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newBindingNumber, [NativeName(NativeNameType.Param, "new_set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newSetNumber) + { + SpvReflectResult ret = SpvReflectChangeDescriptorBindingNumbersNative(pModule, pBinding, newBindingNumber, newSetNumber); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectChangeDescriptorBindingNumbers")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectChangeDescriptorBindingNumbers([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_binding")] [NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] ref SpvReflectDescriptorBinding pBinding, [NativeName(NativeNameType.Param, "new_binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newBindingNumber, [NativeName(NativeNameType.Param, "new_set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newSetNumber) + { + fixed (SpvReflectDescriptorBinding* ppBinding = &pBinding) + { + SpvReflectResult ret = SpvReflectChangeDescriptorBindingNumbersNative(pModule, (SpvReflectDescriptorBinding*)ppBinding, newBindingNumber, newSetNumber); + return ret; + } + } + + [NativeName(NativeNameType.Func, "spvReflectChangeDescriptorBindingNumber")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectChangeDescriptorBindingNumber")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectChangeDescriptorBindingNumberNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_descriptor_binding")] [NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] SpvReflectDescriptorBinding* pDescriptorBinding, [NativeName(NativeNameType.Param, "new_binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newBindingNumber, [NativeName(NativeNameType.Param, "optional_new_set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint optionalNewSetNumber); + + [NativeName(NativeNameType.Func, "spvReflectChangeDescriptorBindingNumber")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectChangeDescriptorBindingNumber([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_descriptor_binding")] [NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] SpvReflectDescriptorBinding* pDescriptorBinding, [NativeName(NativeNameType.Param, "new_binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newBindingNumber, [NativeName(NativeNameType.Param, "optional_new_set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint optionalNewSetNumber) + { + SpvReflectResult ret = SpvReflectChangeDescriptorBindingNumberNative(pModule, pDescriptorBinding, newBindingNumber, optionalNewSetNumber); + return ret; + } + + [NativeName(NativeNameType.Func, "spvReflectChangeDescriptorBindingNumber")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectChangeDescriptorBindingNumber([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_descriptor_binding")] [NativeName(NativeNameType.Type, "const SpvReflectDescriptorBinding*")] ref SpvReflectDescriptorBinding pDescriptorBinding, [NativeName(NativeNameType.Param, "new_binding_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newBindingNumber, [NativeName(NativeNameType.Param, "optional_new_set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint optionalNewSetNumber) + { + fixed (SpvReflectDescriptorBinding* ppDescriptorBinding = &pDescriptorBinding) + { + SpvReflectResult ret = SpvReflectChangeDescriptorBindingNumberNative(pModule, (SpvReflectDescriptorBinding*)ppDescriptorBinding, newBindingNumber, optionalNewSetNumber); + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectChangeDescriptorSetNumber")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectChangeDescriptorSetNumber")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectChangeDescriptorSetNumberNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_set")] [NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] SpvReflectDescriptorSet* pSet, [NativeName(NativeNameType.Param, "new_set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newSetNumber); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectChangeDescriptorSetNumber")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectChangeDescriptorSetNumber([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_set")] [NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] SpvReflectDescriptorSet* pSet, [NativeName(NativeNameType.Param, "new_set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newSetNumber) + { + SpvReflectResult ret = SpvReflectChangeDescriptorSetNumberNative(pModule, pSet, newSetNumber); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectChangeDescriptorSetNumber")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectChangeDescriptorSetNumber([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_set")] [NativeName(NativeNameType.Type, "const SpvReflectDescriptorSet*")] ref SpvReflectDescriptorSet pSet, [NativeName(NativeNameType.Param, "new_set_number")] [NativeName(NativeNameType.Type, "uint32_t")] uint newSetNumber) + { + fixed (SpvReflectDescriptorSet* ppSet = &pSet) + { + SpvReflectResult ret = SpvReflectChangeDescriptorSetNumberNative(pModule, (SpvReflectDescriptorSet*)ppSet, newSetNumber); + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectChangeInputVariableLocation")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectChangeInputVariableLocation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectChangeInputVariableLocationNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_input_variable")] [NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] SpvReflectInterfaceVariable* pInputVariable, [NativeName(NativeNameType.Param, "new_location")] [NativeName(NativeNameType.Type, "uint32_t")] uint newLocation); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectChangeInputVariableLocation")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectChangeInputVariableLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_input_variable")] [NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] SpvReflectInterfaceVariable* pInputVariable, [NativeName(NativeNameType.Param, "new_location")] [NativeName(NativeNameType.Type, "uint32_t")] uint newLocation) + { + SpvReflectResult ret = SpvReflectChangeInputVariableLocationNative(pModule, pInputVariable, newLocation); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectChangeInputVariableLocation")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectChangeInputVariableLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_input_variable")] [NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] ref SpvReflectInterfaceVariable pInputVariable, [NativeName(NativeNameType.Param, "new_location")] [NativeName(NativeNameType.Type, "uint32_t")] uint newLocation) + { + fixed (SpvReflectInterfaceVariable* ppInputVariable = &pInputVariable) + { + SpvReflectResult ret = SpvReflectChangeInputVariableLocationNative(pModule, (SpvReflectInterfaceVariable*)ppInputVariable, newLocation); + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectChangeOutputVariableLocation")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + [LibraryImport(LibName, EntryPoint = "spvReflectChangeOutputVariableLocation")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial SpvReflectResult SpvReflectChangeOutputVariableLocationNative([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_output_variable")] [NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] SpvReflectInterfaceVariable* pOutputVariable, [NativeName(NativeNameType.Param, "new_location")] [NativeName(NativeNameType.Type, "uint32_t")] uint newLocation); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectChangeOutputVariableLocation")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectChangeOutputVariableLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_output_variable")] [NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] SpvReflectInterfaceVariable* pOutputVariable, [NativeName(NativeNameType.Param, "new_location")] [NativeName(NativeNameType.Type, "uint32_t")] uint newLocation) + { + SpvReflectResult ret = SpvReflectChangeOutputVariableLocationNative(pModule, pOutputVariable, newLocation); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectChangeOutputVariableLocation")] + [return: NativeName(NativeNameType.Type, "SpvReflectResult")] + public static SpvReflectResult SpvReflectChangeOutputVariableLocation([NativeName(NativeNameType.Param, "p_module")] [NativeName(NativeNameType.Type, "SpvReflectShaderModule*")] SpvReflectShaderModule* pModule, [NativeName(NativeNameType.Param, "p_output_variable")] [NativeName(NativeNameType.Type, "const SpvReflectInterfaceVariable*")] ref SpvReflectInterfaceVariable pOutputVariable, [NativeName(NativeNameType.Param, "new_location")] [NativeName(NativeNameType.Type, "uint32_t")] uint newLocation) + { + fixed (SpvReflectInterfaceVariable* ppOutputVariable = &pOutputVariable) + { + SpvReflectResult ret = SpvReflectChangeOutputVariableLocationNative(pModule, (SpvReflectInterfaceVariable*)ppOutputVariable, newLocation); + return ret; + } + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectSourceLanguage")] + [return: NativeName(NativeNameType.Type, "const char*")] + [LibraryImport(LibName, EntryPoint = "spvReflectSourceLanguage")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvReflectSourceLanguageNative([NativeName(NativeNameType.Param, "source_lang")] [NativeName(NativeNameType.Type, "SpvSourceLanguage")] SpvSourceLanguage sourceLang); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectSourceLanguage")] + [return: NativeName(NativeNameType.Type, "const char*")] + public static byte* SpvReflectSourceLanguage([NativeName(NativeNameType.Param, "source_lang")] [NativeName(NativeNameType.Type, "SpvSourceLanguage")] SpvSourceLanguage sourceLang) + { + byte* ret = SpvReflectSourceLanguageNative(sourceLang); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectSourceLanguage")] + [return: NativeName(NativeNameType.Type, "const char*")] + public static string SpvReflectSourceLanguageS([NativeName(NativeNameType.Param, "source_lang")] [NativeName(NativeNameType.Type, "SpvSourceLanguage")] SpvSourceLanguage sourceLang) + { + string ret = Utils.DecodeStringUTF8(SpvReflectSourceLanguageNative(sourceLang)); + return ret; + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.Func, "spvReflectBlockVariableTypeName")] + [return: NativeName(NativeNameType.Type, "const char*")] + [LibraryImport(LibName, EntryPoint = "spvReflectBlockVariableTypeName")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial byte* SpvReflectBlockVariableTypeNameNative([NativeName(NativeNameType.Param, "p_var")] [NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] SpvReflectBlockVariable* pVar); + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectBlockVariableTypeName")] + [return: NativeName(NativeNameType.Type, "const char*")] + public static byte* SpvReflectBlockVariableTypeName([NativeName(NativeNameType.Param, "p_var")] [NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] SpvReflectBlockVariable* pVar) + { + byte* ret = SpvReflectBlockVariableTypeNameNative(pVar); + return ret; + } + + /// ///
///
///
[NativeName(NativeNameType.Func, "spvReflectBlockVariableTypeName")] + [return: NativeName(NativeNameType.Type, "const char*")] + public static string SpvReflectBlockVariableTypeNameS([NativeName(NativeNameType.Param, "p_var")] [NativeName(NativeNameType.Type, "const SpvReflectBlockVariable*")] SpvReflectBlockVariable* pVar) + { + string ret = Utils.DecodeStringUTF8(SpvReflectBlockVariableTypeNameNative(pVar)); + return ret; + } + + } +} diff --git a/Hexa.NET.SPIRVReflect/Generated/Handles.cs b/Hexa.NET.SPIRVReflect/Generated/Handles.cs new file mode 100644 index 0000000..7de5d12 --- /dev/null +++ b/Hexa.NET.SPIRVReflect/Generated/Handles.cs @@ -0,0 +1,17 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.SPIRVReflect +{ +} diff --git a/Hexa.NET.SPIRVReflect/Generated/Structures.000.cs b/Hexa.NET.SPIRVReflect/Generated/Structures.000.cs new file mode 100644 index 0000000..f740331 --- /dev/null +++ b/Hexa.NET.SPIRVReflect/Generated/Structures.000.cs @@ -0,0 +1,1637 @@ +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using HexaGen.Runtime; + +namespace Hexa.NET.SPIRVReflect +{ + [NativeName(NativeNameType.StructOrClass, "SpvReflectNumericTraits")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectNumericTraits + { + [NativeName(NativeNameType.StructOrClass, "SpvReflectNumericTraits::Scalar")] + [StructLayout(LayoutKind.Sequential)] + public partial struct NumericTraitScalar + { + [NativeName(NativeNameType.Field, "width")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Width; + [NativeName(NativeNameType.Field, "signedness")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Signedness; + + public unsafe NumericTraitScalar(uint width = default, uint signedness = default) + { + Width = width; + Signedness = signedness; + } + + + } + + [NativeName(NativeNameType.StructOrClass, "SpvReflectNumericTraits::Vector")] + [StructLayout(LayoutKind.Sequential)] + public partial struct NumericTraitVector + { + [NativeName(NativeNameType.Field, "component_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint ComponentCount; + + public unsafe NumericTraitVector(uint componentCount = default) + { + ComponentCount = componentCount; + } + + + } + + [NativeName(NativeNameType.StructOrClass, "SpvReflectNumericTraits::Matrix")] + [StructLayout(LayoutKind.Sequential)] + public partial struct NumericTraitMatrix + { + [NativeName(NativeNameType.Field, "column_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint ColumnCount; + [NativeName(NativeNameType.Field, "row_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint RowCount; + /// + /// Measured in bytes
+ ///
+ [NativeName(NativeNameType.Field, "stride")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Stride; + + + public unsafe NumericTraitMatrix(uint columnCount = default, uint rowCount = default, uint stride = default) + { + ColumnCount = columnCount; + RowCount = rowCount; + Stride = stride; + } + + + } + + [NativeName(NativeNameType.Field, "scalar")] + [NativeName(NativeNameType.Type, "Scalar")] + public NumericTraitScalar Scalar; + [NativeName(NativeNameType.Field, "vector")] + [NativeName(NativeNameType.Type, "Vector")] + public NumericTraitVector Vector; + [NativeName(NativeNameType.Field, "matrix")] + [NativeName(NativeNameType.Type, "Matrix")] + public NumericTraitMatrix Matrix; + + public unsafe SpvReflectNumericTraits(NumericTraitScalar scalar = default, NumericTraitVector vector = default, NumericTraitMatrix matrix = default) + { + Scalar = scalar; + Vector = vector; + Matrix = matrix; + } + + + } + + [NativeName(NativeNameType.StructOrClass, "SpvReflectImageTraits")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectImageTraits + { + [NativeName(NativeNameType.Field, "dim")] + [NativeName(NativeNameType.Type, "SpvDim")] + public SpvDim Dim; + [NativeName(NativeNameType.Field, "depth")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Depth; + [NativeName(NativeNameType.Field, "arrayed")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Arrayed; + /// + /// 0: single-sampled; 1: multisampled
+ ///
+ [NativeName(NativeNameType.Field, "ms")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Ms; + + [NativeName(NativeNameType.Field, "sampled")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Sampled; + [NativeName(NativeNameType.Field, "image_format")] + [NativeName(NativeNameType.Type, "SpvImageFormat")] + public SpvImageFormat ImageFormat; + + public unsafe SpvReflectImageTraits(SpvDim dim = default, uint depth = default, uint arrayed = default, uint ms = default, uint sampled = default, SpvImageFormat imageFormat = default) + { + Dim = dim; + Depth = depth; + Arrayed = arrayed; + Ms = ms; + Sampled = sampled; + ImageFormat = imageFormat; + } + + + } + + [NativeName(NativeNameType.StructOrClass, "SpvReflectArrayTraits")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectArrayTraits + { + [NativeName(NativeNameType.Field, "dims_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint DimsCount; + /// + /// Each entry is either:
+ /// - specialization constant dimension
+ /// - OpTypeRuntimeArray
+ /// - the array length otherwise
+ ///
+ [NativeName(NativeNameType.Field, "dims")] + [NativeName(NativeNameType.Type, "uint32_t[32]")] + public uint Dims_0; + public uint Dims_1; + public uint Dims_2; + public uint Dims_3; + public uint Dims_4; + public uint Dims_5; + public uint Dims_6; + public uint Dims_7; + public uint Dims_8; + public uint Dims_9; + public uint Dims_10; + public uint Dims_11; + public uint Dims_12; + public uint Dims_13; + public uint Dims_14; + public uint Dims_15; + public uint Dims_16; + public uint Dims_17; + public uint Dims_18; + public uint Dims_19; + public uint Dims_20; + public uint Dims_21; + public uint Dims_22; + public uint Dims_23; + public uint Dims_24; + public uint Dims_25; + public uint Dims_26; + public uint Dims_27; + public uint Dims_28; + public uint Dims_29; + public uint Dims_30; + public uint Dims_31; + + /// + /// Stores Ids for dimensions that are specialization constants
+ ///
+ [NativeName(NativeNameType.Field, "spec_constant_op_ids")] + [NativeName(NativeNameType.Type, "uint32_t[32]")] + public uint SpecConstantOpIds_0; + public uint SpecConstantOpIds_1; + public uint SpecConstantOpIds_2; + public uint SpecConstantOpIds_3; + public uint SpecConstantOpIds_4; + public uint SpecConstantOpIds_5; + public uint SpecConstantOpIds_6; + public uint SpecConstantOpIds_7; + public uint SpecConstantOpIds_8; + public uint SpecConstantOpIds_9; + public uint SpecConstantOpIds_10; + public uint SpecConstantOpIds_11; + public uint SpecConstantOpIds_12; + public uint SpecConstantOpIds_13; + public uint SpecConstantOpIds_14; + public uint SpecConstantOpIds_15; + public uint SpecConstantOpIds_16; + public uint SpecConstantOpIds_17; + public uint SpecConstantOpIds_18; + public uint SpecConstantOpIds_19; + public uint SpecConstantOpIds_20; + public uint SpecConstantOpIds_21; + public uint SpecConstantOpIds_22; + public uint SpecConstantOpIds_23; + public uint SpecConstantOpIds_24; + public uint SpecConstantOpIds_25; + public uint SpecConstantOpIds_26; + public uint SpecConstantOpIds_27; + public uint SpecConstantOpIds_28; + public uint SpecConstantOpIds_29; + public uint SpecConstantOpIds_30; + public uint SpecConstantOpIds_31; + + /// + /// Measured in bytes
+ ///
+ [NativeName(NativeNameType.Field, "stride")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Stride; + + + public unsafe SpvReflectArrayTraits(uint dimsCount = default, uint* dims = default, uint* specConstantOpIds = default, uint stride = default) + { + DimsCount = dimsCount; + if (dims != default) + { + Dims_0 = dims[0]; + Dims_1 = dims[1]; + Dims_2 = dims[2]; + Dims_3 = dims[3]; + Dims_4 = dims[4]; + Dims_5 = dims[5]; + Dims_6 = dims[6]; + Dims_7 = dims[7]; + Dims_8 = dims[8]; + Dims_9 = dims[9]; + Dims_10 = dims[10]; + Dims_11 = dims[11]; + Dims_12 = dims[12]; + Dims_13 = dims[13]; + Dims_14 = dims[14]; + Dims_15 = dims[15]; + Dims_16 = dims[16]; + Dims_17 = dims[17]; + Dims_18 = dims[18]; + Dims_19 = dims[19]; + Dims_20 = dims[20]; + Dims_21 = dims[21]; + Dims_22 = dims[22]; + Dims_23 = dims[23]; + Dims_24 = dims[24]; + Dims_25 = dims[25]; + Dims_26 = dims[26]; + Dims_27 = dims[27]; + Dims_28 = dims[28]; + Dims_29 = dims[29]; + Dims_30 = dims[30]; + Dims_31 = dims[31]; + } + if (specConstantOpIds != default) + { + SpecConstantOpIds_0 = specConstantOpIds[0]; + SpecConstantOpIds_1 = specConstantOpIds[1]; + SpecConstantOpIds_2 = specConstantOpIds[2]; + SpecConstantOpIds_3 = specConstantOpIds[3]; + SpecConstantOpIds_4 = specConstantOpIds[4]; + SpecConstantOpIds_5 = specConstantOpIds[5]; + SpecConstantOpIds_6 = specConstantOpIds[6]; + SpecConstantOpIds_7 = specConstantOpIds[7]; + SpecConstantOpIds_8 = specConstantOpIds[8]; + SpecConstantOpIds_9 = specConstantOpIds[9]; + SpecConstantOpIds_10 = specConstantOpIds[10]; + SpecConstantOpIds_11 = specConstantOpIds[11]; + SpecConstantOpIds_12 = specConstantOpIds[12]; + SpecConstantOpIds_13 = specConstantOpIds[13]; + SpecConstantOpIds_14 = specConstantOpIds[14]; + SpecConstantOpIds_15 = specConstantOpIds[15]; + SpecConstantOpIds_16 = specConstantOpIds[16]; + SpecConstantOpIds_17 = specConstantOpIds[17]; + SpecConstantOpIds_18 = specConstantOpIds[18]; + SpecConstantOpIds_19 = specConstantOpIds[19]; + SpecConstantOpIds_20 = specConstantOpIds[20]; + SpecConstantOpIds_21 = specConstantOpIds[21]; + SpecConstantOpIds_22 = specConstantOpIds[22]; + SpecConstantOpIds_23 = specConstantOpIds[23]; + SpecConstantOpIds_24 = specConstantOpIds[24]; + SpecConstantOpIds_25 = specConstantOpIds[25]; + SpecConstantOpIds_26 = specConstantOpIds[26]; + SpecConstantOpIds_27 = specConstantOpIds[27]; + SpecConstantOpIds_28 = specConstantOpIds[28]; + SpecConstantOpIds_29 = specConstantOpIds[29]; + SpecConstantOpIds_30 = specConstantOpIds[30]; + SpecConstantOpIds_31 = specConstantOpIds[31]; + } + Stride = stride; + } + + public unsafe SpvReflectArrayTraits(uint dimsCount = default, Span dims = default, Span specConstantOpIds = default, uint stride = default) + { + DimsCount = dimsCount; + if (dims != default) + { + Dims_0 = dims[0]; + Dims_1 = dims[1]; + Dims_2 = dims[2]; + Dims_3 = dims[3]; + Dims_4 = dims[4]; + Dims_5 = dims[5]; + Dims_6 = dims[6]; + Dims_7 = dims[7]; + Dims_8 = dims[8]; + Dims_9 = dims[9]; + Dims_10 = dims[10]; + Dims_11 = dims[11]; + Dims_12 = dims[12]; + Dims_13 = dims[13]; + Dims_14 = dims[14]; + Dims_15 = dims[15]; + Dims_16 = dims[16]; + Dims_17 = dims[17]; + Dims_18 = dims[18]; + Dims_19 = dims[19]; + Dims_20 = dims[20]; + Dims_21 = dims[21]; + Dims_22 = dims[22]; + Dims_23 = dims[23]; + Dims_24 = dims[24]; + Dims_25 = dims[25]; + Dims_26 = dims[26]; + Dims_27 = dims[27]; + Dims_28 = dims[28]; + Dims_29 = dims[29]; + Dims_30 = dims[30]; + Dims_31 = dims[31]; + } + if (specConstantOpIds != default) + { + SpecConstantOpIds_0 = specConstantOpIds[0]; + SpecConstantOpIds_1 = specConstantOpIds[1]; + SpecConstantOpIds_2 = specConstantOpIds[2]; + SpecConstantOpIds_3 = specConstantOpIds[3]; + SpecConstantOpIds_4 = specConstantOpIds[4]; + SpecConstantOpIds_5 = specConstantOpIds[5]; + SpecConstantOpIds_6 = specConstantOpIds[6]; + SpecConstantOpIds_7 = specConstantOpIds[7]; + SpecConstantOpIds_8 = specConstantOpIds[8]; + SpecConstantOpIds_9 = specConstantOpIds[9]; + SpecConstantOpIds_10 = specConstantOpIds[10]; + SpecConstantOpIds_11 = specConstantOpIds[11]; + SpecConstantOpIds_12 = specConstantOpIds[12]; + SpecConstantOpIds_13 = specConstantOpIds[13]; + SpecConstantOpIds_14 = specConstantOpIds[14]; + SpecConstantOpIds_15 = specConstantOpIds[15]; + SpecConstantOpIds_16 = specConstantOpIds[16]; + SpecConstantOpIds_17 = specConstantOpIds[17]; + SpecConstantOpIds_18 = specConstantOpIds[18]; + SpecConstantOpIds_19 = specConstantOpIds[19]; + SpecConstantOpIds_20 = specConstantOpIds[20]; + SpecConstantOpIds_21 = specConstantOpIds[21]; + SpecConstantOpIds_22 = specConstantOpIds[22]; + SpecConstantOpIds_23 = specConstantOpIds[23]; + SpecConstantOpIds_24 = specConstantOpIds[24]; + SpecConstantOpIds_25 = specConstantOpIds[25]; + SpecConstantOpIds_26 = specConstantOpIds[26]; + SpecConstantOpIds_27 = specConstantOpIds[27]; + SpecConstantOpIds_28 = specConstantOpIds[28]; + SpecConstantOpIds_29 = specConstantOpIds[29]; + SpecConstantOpIds_30 = specConstantOpIds[30]; + SpecConstantOpIds_31 = specConstantOpIds[31]; + } + Stride = stride; + } + + + /// + /// Each entry is either:
+ /// - specialization constant dimension
+ /// - OpTypeRuntimeArray
+ /// - the array length otherwise
+ ///
+ /// + /// Stores Ids for dimensions that are specialization constants
+ ///
+ } + + [NativeName(NativeNameType.StructOrClass, "SpvReflectBindingArrayTraits")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectBindingArrayTraits + { + [NativeName(NativeNameType.Field, "dims_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint DimsCount; + [NativeName(NativeNameType.Field, "dims")] + [NativeName(NativeNameType.Type, "uint32_t[32]")] + public uint Dims_0; + public uint Dims_1; + public uint Dims_2; + public uint Dims_3; + public uint Dims_4; + public uint Dims_5; + public uint Dims_6; + public uint Dims_7; + public uint Dims_8; + public uint Dims_9; + public uint Dims_10; + public uint Dims_11; + public uint Dims_12; + public uint Dims_13; + public uint Dims_14; + public uint Dims_15; + public uint Dims_16; + public uint Dims_17; + public uint Dims_18; + public uint Dims_19; + public uint Dims_20; + public uint Dims_21; + public uint Dims_22; + public uint Dims_23; + public uint Dims_24; + public uint Dims_25; + public uint Dims_26; + public uint Dims_27; + public uint Dims_28; + public uint Dims_29; + public uint Dims_30; + public uint Dims_31; + + public unsafe SpvReflectBindingArrayTraits(uint dimsCount = default, uint* dims = default) + { + DimsCount = dimsCount; + if (dims != default) + { + Dims_0 = dims[0]; + Dims_1 = dims[1]; + Dims_2 = dims[2]; + Dims_3 = dims[3]; + Dims_4 = dims[4]; + Dims_5 = dims[5]; + Dims_6 = dims[6]; + Dims_7 = dims[7]; + Dims_8 = dims[8]; + Dims_9 = dims[9]; + Dims_10 = dims[10]; + Dims_11 = dims[11]; + Dims_12 = dims[12]; + Dims_13 = dims[13]; + Dims_14 = dims[14]; + Dims_15 = dims[15]; + Dims_16 = dims[16]; + Dims_17 = dims[17]; + Dims_18 = dims[18]; + Dims_19 = dims[19]; + Dims_20 = dims[20]; + Dims_21 = dims[21]; + Dims_22 = dims[22]; + Dims_23 = dims[23]; + Dims_24 = dims[24]; + Dims_25 = dims[25]; + Dims_26 = dims[26]; + Dims_27 = dims[27]; + Dims_28 = dims[28]; + Dims_29 = dims[29]; + Dims_30 = dims[30]; + Dims_31 = dims[31]; + } + } + + public unsafe SpvReflectBindingArrayTraits(uint dimsCount = default, Span dims = default) + { + DimsCount = dimsCount; + if (dims != default) + { + Dims_0 = dims[0]; + Dims_1 = dims[1]; + Dims_2 = dims[2]; + Dims_3 = dims[3]; + Dims_4 = dims[4]; + Dims_5 = dims[5]; + Dims_6 = dims[6]; + Dims_7 = dims[7]; + Dims_8 = dims[8]; + Dims_9 = dims[9]; + Dims_10 = dims[10]; + Dims_11 = dims[11]; + Dims_12 = dims[12]; + Dims_13 = dims[13]; + Dims_14 = dims[14]; + Dims_15 = dims[15]; + Dims_16 = dims[16]; + Dims_17 = dims[17]; + Dims_18 = dims[18]; + Dims_19 = dims[19]; + Dims_20 = dims[20]; + Dims_21 = dims[21]; + Dims_22 = dims[22]; + Dims_23 = dims[23]; + Dims_24 = dims[24]; + Dims_25 = dims[25]; + Dims_26 = dims[26]; + Dims_27 = dims[27]; + Dims_28 = dims[28]; + Dims_29 = dims[29]; + Dims_30 = dims[30]; + Dims_31 = dims[31]; + } + } + + + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SpvReflectTypeDescription")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectTypeDescription + { + [NativeName(NativeNameType.StructOrClass, "SpvReflectTypeDescription::Traits")] + [StructLayout(LayoutKind.Sequential)] + public partial struct TypeDescriptionTraits + { + [NativeName(NativeNameType.Field, "numeric")] + [NativeName(NativeNameType.Type, "SpvReflectNumericTraits")] + public SpvReflectNumericTraits Numeric; + [NativeName(NativeNameType.Field, "image")] + [NativeName(NativeNameType.Type, "SpvReflectImageTraits")] + public SpvReflectImageTraits Image; + [NativeName(NativeNameType.Field, "array")] + [NativeName(NativeNameType.Type, "SpvReflectArrayTraits")] + public SpvReflectArrayTraits Array; + + public unsafe TypeDescriptionTraits(SpvReflectNumericTraits numeric = default, SpvReflectImageTraits image = default, SpvReflectArrayTraits array = default) + { + Numeric = numeric; + Image = image; + Array = array; + } + + + } + + [NativeName(NativeNameType.Field, "id")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Id; + [NativeName(NativeNameType.Field, "op")] + [NativeName(NativeNameType.Type, "SpvOp")] + public SpvOp Op; + [NativeName(NativeNameType.Field, "type_name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* TypeName; + /// + /// Non-NULL if type is member of a struct
+ ///
+ [NativeName(NativeNameType.Field, "struct_member_name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* StructMemberName; + + [NativeName(NativeNameType.Field, "storage_class")] + [NativeName(NativeNameType.Type, "SpvStorageClass")] + public SpvStorageClass StorageClass; + [NativeName(NativeNameType.Field, "type_flags")] + [NativeName(NativeNameType.Type, "SpvReflectTypeFlags")] + public SpvReflectTypeFlagBits TypeFlags; + [NativeName(NativeNameType.Field, "decoration_flags")] + [NativeName(NativeNameType.Type, "SpvReflectDecorationFlags")] + public SpvReflectDecorationFlagBits DecorationFlags; + [NativeName(NativeNameType.Field, "traits")] + [NativeName(NativeNameType.Type, "Traits")] + public TypeDescriptionTraits Traits; + /// + /// If underlying type is a struct (ex. array of structs)
+ /// this gives access to the OpTypeStruct
+ ///
+ [NativeName(NativeNameType.Field, "struct_type_description")] + [NativeName(NativeNameType.Type, "SpvReflectTypeDescription*")] + public unsafe SpvReflectTypeDescription* StructTypeDescription; + + /// + /// Some pointers to SpvReflectTypeDescription are really
+ /// just copies of another reference to the same OpType
+ ///
+ [NativeName(NativeNameType.Field, "copied")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Copied; + + /// + ///
+ ///
+ [NativeName(NativeNameType.Field, "member_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint MemberCount; + + /// + ///
+ ///
+ [NativeName(NativeNameType.Field, "members")] + [NativeName(NativeNameType.Type, "SpvReflectTypeDescription*")] + public unsafe SpvReflectTypeDescription* Members; + + + public unsafe SpvReflectTypeDescription(uint id = default, SpvOp op = default, byte* typeName = default, byte* structMemberName = default, SpvStorageClass storageClass = default, SpvReflectTypeFlagBits typeFlags = default, SpvReflectDecorationFlagBits decorationFlags = default, TypeDescriptionTraits traits = default, SpvReflectTypeDescription* structTypeDescription = default, uint copied = default, uint memberCount = default, SpvReflectTypeDescription* members = default) + { + Id = id; + Op = op; + TypeName = typeName; + StructMemberName = structMemberName; + StorageClass = storageClass; + TypeFlags = typeFlags; + DecorationFlags = decorationFlags; + Traits = traits; + StructTypeDescription = structTypeDescription; + Copied = copied; + MemberCount = memberCount; + Members = members; + } + + + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SpvReflectInterfaceVariable")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectInterfaceVariable + { + [NativeName(NativeNameType.StructOrClass, "SpvReflectInterfaceVariable::")] + [StructLayout(LayoutKind.Sequential)] + public partial struct WordOffsetUnion + { + [NativeName(NativeNameType.Field, "location")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Location; + + public unsafe WordOffsetUnion(uint location = default) + { + Location = location; + } + + + } + + [NativeName(NativeNameType.Field, "spirv_id")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint SpirvId; + [NativeName(NativeNameType.Field, "name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Name; + [NativeName(NativeNameType.Field, "location")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Location; + [NativeName(NativeNameType.Field, "component")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Component; + [NativeName(NativeNameType.Field, "storage_class")] + [NativeName(NativeNameType.Type, "SpvStorageClass")] + public SpvStorageClass StorageClass; + [NativeName(NativeNameType.Field, "semantic")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Semantic; + [NativeName(NativeNameType.Field, "decoration_flags")] + [NativeName(NativeNameType.Type, "SpvReflectDecorationFlags")] + public SpvReflectDecorationFlagBits DecorationFlags; + [NativeName(NativeNameType.Field, "built_in")] + [NativeName(NativeNameType.Type, "SpvBuiltIn")] + public SpvBuiltIn BuiltIn; + [NativeName(NativeNameType.Field, "numeric")] + [NativeName(NativeNameType.Type, "SpvReflectNumericTraits")] + public SpvReflectNumericTraits Numeric; + [NativeName(NativeNameType.Field, "array")] + [NativeName(NativeNameType.Type, "SpvReflectArrayTraits")] + public SpvReflectArrayTraits Array; + [NativeName(NativeNameType.Field, "member_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint MemberCount; + [NativeName(NativeNameType.Field, "members")] + [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable*")] + public unsafe SpvReflectInterfaceVariable* Members; + [NativeName(NativeNameType.Field, "format")] + [NativeName(NativeNameType.Type, "SpvReflectFormat")] + public SpvReflectFormat Format; + /// + /// NOTE: SPIR-V shares type references for variables
+ /// that have the same underlying type. This means
+ /// that the same type name will appear for multiple
+ /// variables.
+ ///
+ [NativeName(NativeNameType.Field, "type_description")] + [NativeName(NativeNameType.Type, "SpvReflectTypeDescription*")] + public unsafe SpvReflectTypeDescription* TypeDescription; + + [NativeName(NativeNameType.Field, "word_offset")] + [NativeName(NativeNameType.Type, "")] + public WordOffsetUnion WordOffset; + + public unsafe SpvReflectInterfaceVariable(uint spirvId = default, byte* name = default, uint location = default, uint component = default, SpvStorageClass storageClass = default, byte* semantic = default, SpvReflectDecorationFlagBits decorationFlags = default, SpvBuiltIn builtIn = default, SpvReflectNumericTraits numeric = default, SpvReflectArrayTraits array = default, uint memberCount = default, SpvReflectInterfaceVariable* members = default, SpvReflectFormat format = default, SpvReflectTypeDescription* typeDescription = default, WordOffsetUnion wordOffset = default) + { + SpirvId = spirvId; + Name = name; + Location = location; + Component = component; + StorageClass = storageClass; + Semantic = semantic; + DecorationFlags = decorationFlags; + BuiltIn = builtIn; + Numeric = numeric; + Array = array; + MemberCount = memberCount; + Members = members; + Format = format; + TypeDescription = typeDescription; + WordOffset = wordOffset; + } + + + } + + /// + ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SpvReflectBlockVariable")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectBlockVariable + { + [NativeName(NativeNameType.StructOrClass, "SpvReflectBlockVariable::")] + [StructLayout(LayoutKind.Sequential)] + public partial struct WordOffsetUnion + { + [NativeName(NativeNameType.Field, "offset")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Offset; + + public unsafe WordOffsetUnion(uint offset = default) + { + Offset = offset; + } + + + } + + [NativeName(NativeNameType.Field, "spirv_id")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint SpirvId; + [NativeName(NativeNameType.Field, "name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Name; + /// + /// Measured in bytes
+ ///
+ [NativeName(NativeNameType.Field, "offset")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Offset; + + /// + /// Measured in bytes
+ ///
+ [NativeName(NativeNameType.Field, "absolute_offset")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint AbsoluteOffset; + + /// + /// Measured in bytes
+ ///
+ [NativeName(NativeNameType.Field, "size")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Size; + + /// + /// Measured in bytes
+ ///
+ [NativeName(NativeNameType.Field, "padded_size")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint PaddedSize; + + [NativeName(NativeNameType.Field, "decoration_flags")] + [NativeName(NativeNameType.Type, "SpvReflectDecorationFlags")] + public SpvReflectDecorationFlagBits DecorationFlags; + [NativeName(NativeNameType.Field, "numeric")] + [NativeName(NativeNameType.Type, "SpvReflectNumericTraits")] + public SpvReflectNumericTraits Numeric; + [NativeName(NativeNameType.Field, "array")] + [NativeName(NativeNameType.Type, "SpvReflectArrayTraits")] + public SpvReflectArrayTraits Array; + [NativeName(NativeNameType.Field, "flags")] + [NativeName(NativeNameType.Type, "SpvReflectVariableFlags")] + public SpvReflectVariableFlagBits Flags; + [NativeName(NativeNameType.Field, "member_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint MemberCount; + [NativeName(NativeNameType.Field, "members")] + [NativeName(NativeNameType.Type, "SpvReflectBlockVariable*")] + public unsafe SpvReflectBlockVariable* Members; + [NativeName(NativeNameType.Field, "type_description")] + [NativeName(NativeNameType.Type, "SpvReflectTypeDescription*")] + public unsafe SpvReflectTypeDescription* TypeDescription; + [NativeName(NativeNameType.Field, "word_offset")] + [NativeName(NativeNameType.Type, "")] + public WordOffsetUnion WordOffset; + + public unsafe SpvReflectBlockVariable(uint spirvId = default, byte* name = default, uint offset = default, uint absoluteOffset = default, uint size = default, uint paddedSize = default, SpvReflectDecorationFlagBits decorationFlags = default, SpvReflectNumericTraits numeric = default, SpvReflectArrayTraits array = default, SpvReflectVariableFlagBits flags = default, uint memberCount = default, SpvReflectBlockVariable* members = default, SpvReflectTypeDescription* typeDescription = default, WordOffsetUnion wordOffset = default) + { + SpirvId = spirvId; + Name = name; + Offset = offset; + AbsoluteOffset = absoluteOffset; + Size = size; + PaddedSize = paddedSize; + DecorationFlags = decorationFlags; + Numeric = numeric; + Array = array; + Flags = flags; + MemberCount = memberCount; + Members = members; + TypeDescription = typeDescription; + WordOffset = wordOffset; + } + + + } + + /// + ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SpvReflectDescriptorBinding")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectDescriptorBinding + { + [NativeName(NativeNameType.StructOrClass, "SpvReflectDescriptorBinding::")] + [StructLayout(LayoutKind.Sequential)] + public partial struct WordOffsetUnion + { + [NativeName(NativeNameType.Field, "binding")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Binding; + [NativeName(NativeNameType.Field, "set")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Set; + + public unsafe WordOffsetUnion(uint binding = default, uint set = default) + { + Binding = binding; + Set = set; + } + + + } + + [NativeName(NativeNameType.Field, "spirv_id")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint SpirvId; + [NativeName(NativeNameType.Field, "name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Name; + [NativeName(NativeNameType.Field, "binding")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Binding; + [NativeName(NativeNameType.Field, "input_attachment_index")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint InputAttachmentIndex; + [NativeName(NativeNameType.Field, "set")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Set; + [NativeName(NativeNameType.Field, "descriptor_type")] + [NativeName(NativeNameType.Type, "SpvReflectDescriptorType")] + public SpvReflectDescriptorType DescriptorType; + [NativeName(NativeNameType.Field, "resource_type")] + [NativeName(NativeNameType.Type, "SpvReflectResourceType")] + public SpvReflectResourceType ResourceType; + [NativeName(NativeNameType.Field, "image")] + [NativeName(NativeNameType.Type, "SpvReflectImageTraits")] + public SpvReflectImageTraits Image; + [NativeName(NativeNameType.Field, "block")] + [NativeName(NativeNameType.Type, "SpvReflectBlockVariable")] + public SpvReflectBlockVariable Block; + [NativeName(NativeNameType.Field, "array")] + [NativeName(NativeNameType.Type, "SpvReflectBindingArrayTraits")] + public SpvReflectBindingArrayTraits Array; + [NativeName(NativeNameType.Field, "count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Count; + [NativeName(NativeNameType.Field, "accessed")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Accessed; + [NativeName(NativeNameType.Field, "uav_counter_id")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint UavCounterId; + [NativeName(NativeNameType.Field, "uav_counter_binding")] + [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding*")] + public unsafe SpvReflectDescriptorBinding* UavCounterBinding; + [NativeName(NativeNameType.Field, "byte_address_buffer_offset_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint ByteAddressBufferOffsetCount; + [NativeName(NativeNameType.Field, "byte_address_buffer_offsets")] + [NativeName(NativeNameType.Type, "uint32_t*")] + public unsafe uint* ByteAddressBufferOffsets; + [NativeName(NativeNameType.Field, "type_description")] + [NativeName(NativeNameType.Type, "SpvReflectTypeDescription*")] + public unsafe SpvReflectTypeDescription* TypeDescription; + [NativeName(NativeNameType.Field, "word_offset")] + [NativeName(NativeNameType.Type, "")] + public WordOffsetUnion WordOffset; + [NativeName(NativeNameType.Field, "decoration_flags")] + [NativeName(NativeNameType.Type, "SpvReflectDecorationFlags")] + public SpvReflectDecorationFlagBits DecorationFlags; + /// + /// Requires SPV_GOOGLE_user_type
+ ///
+ [NativeName(NativeNameType.Field, "user_type")] + [NativeName(NativeNameType.Type, "SpvReflectUserType")] + public SpvReflectUserType UserType; + + + public unsafe SpvReflectDescriptorBinding(uint spirvId = default, byte* name = default, uint binding = default, uint inputAttachmentIndex = default, uint set = default, SpvReflectDescriptorType descriptorType = default, SpvReflectResourceType resourceType = default, SpvReflectImageTraits image = default, SpvReflectBlockVariable block = default, SpvReflectBindingArrayTraits array = default, uint count = default, uint accessed = default, uint uavCounterId = default, SpvReflectDescriptorBinding* uavCounterBinding = default, uint byteAddressBufferOffsetCount = default, uint* byteAddressBufferOffsets = default, SpvReflectTypeDescription* typeDescription = default, WordOffsetUnion wordOffset = default, SpvReflectDecorationFlagBits decorationFlags = default, SpvReflectUserType userType = default) + { + SpirvId = spirvId; + Name = name; + Binding = binding; + InputAttachmentIndex = inputAttachmentIndex; + Set = set; + DescriptorType = descriptorType; + ResourceType = resourceType; + Image = image; + Block = block; + Array = array; + Count = count; + Accessed = accessed; + UavCounterId = uavCounterId; + UavCounterBinding = uavCounterBinding; + ByteAddressBufferOffsetCount = byteAddressBufferOffsetCount; + ByteAddressBufferOffsets = byteAddressBufferOffsets; + TypeDescription = typeDescription; + WordOffset = wordOffset; + DecorationFlags = decorationFlags; + UserType = userType; + } + + + } + + /// + ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SpvReflectDescriptorSet")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectDescriptorSet + { + [NativeName(NativeNameType.Field, "set")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Set; + [NativeName(NativeNameType.Field, "binding_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint BindingCount; + [NativeName(NativeNameType.Field, "bindings")] + [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding**")] + public unsafe SpvReflectDescriptorBinding** Bindings; + + public unsafe SpvReflectDescriptorSet(uint set = default, uint bindingCount = default, SpvReflectDescriptorBinding** bindings = default) + { + Set = set; + BindingCount = bindingCount; + Bindings = bindings; + } + + + } + + /// + ///
+ ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SpvReflectEntryPoint")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectEntryPoint + { + [NativeName(NativeNameType.StructOrClass, "SpvReflectEntryPoint::LocalSize")] + [StructLayout(LayoutKind.Sequential)] + public partial struct EntryPointLocalSize + { + [NativeName(NativeNameType.Field, "x")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint X; + [NativeName(NativeNameType.Field, "y")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Y; + [NativeName(NativeNameType.Field, "z")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Z; + + public unsafe EntryPointLocalSize(uint x = default, uint y = default, uint z = default) + { + X = x; + Y = y; + Z = z; + } + + + } + + [NativeName(NativeNameType.Field, "name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Name; + [NativeName(NativeNameType.Field, "id")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Id; + [NativeName(NativeNameType.Field, "spirv_execution_model")] + [NativeName(NativeNameType.Type, "SpvExecutionModel")] + public SpvExecutionModel SpirvExecutionModel; + [NativeName(NativeNameType.Field, "shader_stage")] + [NativeName(NativeNameType.Type, "SpvReflectShaderStageFlagBits")] + public SpvReflectShaderStageFlagBits ShaderStage; + [NativeName(NativeNameType.Field, "input_variable_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint InputVariableCount; + [NativeName(NativeNameType.Field, "input_variables")] + [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] + public unsafe SpvReflectInterfaceVariable** InputVariables; + [NativeName(NativeNameType.Field, "output_variable_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint OutputVariableCount; + [NativeName(NativeNameType.Field, "output_variables")] + [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] + public unsafe SpvReflectInterfaceVariable** OutputVariables; + [NativeName(NativeNameType.Field, "interface_variable_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint InterfaceVariableCount; + [NativeName(NativeNameType.Field, "interface_variables")] + [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable*")] + public unsafe SpvReflectInterfaceVariable* InterfaceVariables; + [NativeName(NativeNameType.Field, "descriptor_set_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint DescriptorSetCount; + [NativeName(NativeNameType.Field, "descriptor_sets")] + [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet*")] + public unsafe SpvReflectDescriptorSet* DescriptorSets; + [NativeName(NativeNameType.Field, "used_uniform_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint UsedUniformCount; + [NativeName(NativeNameType.Field, "used_uniforms")] + [NativeName(NativeNameType.Type, "uint32_t*")] + public unsafe uint* UsedUniforms; + [NativeName(NativeNameType.Field, "used_push_constant_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint UsedPushConstantCount; + [NativeName(NativeNameType.Field, "used_push_constants")] + [NativeName(NativeNameType.Type, "uint32_t*")] + public unsafe uint* UsedPushConstants; + [NativeName(NativeNameType.Field, "execution_mode_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint ExecutionModeCount; + [NativeName(NativeNameType.Field, "execution_modes")] + [NativeName(NativeNameType.Type, "SpvExecutionMode*")] + public unsafe SpvExecutionMode* ExecutionModes; + [NativeName(NativeNameType.Field, "local_size")] + [NativeName(NativeNameType.Type, "LocalSize")] + public EntryPointLocalSize LocalSize; + /// + /// valid for geometry
+ ///
+ [NativeName(NativeNameType.Field, "invocations")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint Invocations; + + /// + /// valid for geometry, tesselation
+ ///
+ [NativeName(NativeNameType.Field, "output_vertices")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint OutputVertices; + + + public unsafe SpvReflectEntryPoint(byte* name = default, uint id = default, SpvExecutionModel spirvExecutionModel = default, SpvReflectShaderStageFlagBits shaderStage = default, uint inputVariableCount = default, SpvReflectInterfaceVariable** inputVariables = default, uint outputVariableCount = default, SpvReflectInterfaceVariable** outputVariables = default, uint interfaceVariableCount = default, SpvReflectInterfaceVariable* interfaceVariables = default, uint descriptorSetCount = default, SpvReflectDescriptorSet* descriptorSets = default, uint usedUniformCount = default, uint* usedUniforms = default, uint usedPushConstantCount = default, uint* usedPushConstants = default, uint executionModeCount = default, SpvExecutionMode* executionModes = default, EntryPointLocalSize localSize = default, uint invocations = default, uint outputVertices = default) + { + Name = name; + Id = id; + SpirvExecutionModel = spirvExecutionModel; + ShaderStage = shaderStage; + InputVariableCount = inputVariableCount; + InputVariables = inputVariables; + OutputVariableCount = outputVariableCount; + OutputVariables = outputVariables; + InterfaceVariableCount = interfaceVariableCount; + InterfaceVariables = interfaceVariables; + DescriptorSetCount = descriptorSetCount; + DescriptorSets = descriptorSets; + UsedUniformCount = usedUniformCount; + UsedUniforms = usedUniforms; + UsedPushConstantCount = usedPushConstantCount; + UsedPushConstants = usedPushConstants; + ExecutionModeCount = executionModeCount; + ExecutionModes = executionModes; + LocalSize = localSize; + Invocations = invocations; + OutputVertices = outputVertices; + } + + + } + + /// + ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SpvReflectCapability")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectCapability + { + [NativeName(NativeNameType.Field, "value")] + [NativeName(NativeNameType.Type, "SpvCapability")] + public SpvCapability Value; + [NativeName(NativeNameType.Field, "word_offset")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint WordOffset; + + public unsafe SpvReflectCapability(SpvCapability value = default, uint wordOffset = default) + { + Value = value; + WordOffset = wordOffset; + } + + + } + + /// + ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SpvReflectSpecializationConstant")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectSpecializationConstant + { + [NativeName(NativeNameType.Field, "spirv_id")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint SpirvId; + [NativeName(NativeNameType.Field, "constant_id")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint ConstantId; + [NativeName(NativeNameType.Field, "name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* Name; + + public unsafe SpvReflectSpecializationConstant(uint spirvId = default, uint constantId = default, byte* name = default) + { + SpirvId = spirvId; + ConstantId = constantId; + Name = name; + } + + + } + + /// + ///
+ ///
+ [NativeName(NativeNameType.StructOrClass, "SpvReflectShaderModule")] + [StructLayout(LayoutKind.Sequential)] + public partial struct SpvReflectShaderModule + { + [NativeName(NativeNameType.StructOrClass, "SpvReflectShaderModule::Internal")] + [StructLayout(LayoutKind.Sequential)] + public partial struct ShaderModuleInternal + { + [NativeName(NativeNameType.Field, "module_flags")] + [NativeName(NativeNameType.Type, "SpvReflectModuleFlags")] + public SpvReflectModuleFlagBits ModuleFlags; + [NativeName(NativeNameType.Field, "spirv_size")] + [NativeName(NativeNameType.Type, "size_t")] + public ulong SpirvSize; + [NativeName(NativeNameType.Field, "spirv_code")] + [NativeName(NativeNameType.Type, "uint32_t*")] + public unsafe uint* SpirvCode; + [NativeName(NativeNameType.Field, "spirv_word_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint SpirvWordCount; + [NativeName(NativeNameType.Field, "type_description_count")] + [NativeName(NativeNameType.Type, "size_t")] + public ulong TypeDescriptionCount; + [NativeName(NativeNameType.Field, "type_descriptions")] + [NativeName(NativeNameType.Type, "SpvReflectTypeDescription*")] + public unsafe SpvReflectTypeDescription* TypeDescriptions; + + public unsafe ShaderModuleInternal(SpvReflectModuleFlagBits moduleFlags = default, ulong spirvSize = default, uint* spirvCode = default, uint spirvWordCount = default, ulong typeDescriptionCount = default, SpvReflectTypeDescription* typeDescriptions = default) + { + ModuleFlags = moduleFlags; + SpirvSize = spirvSize; + SpirvCode = spirvCode; + SpirvWordCount = spirvWordCount; + TypeDescriptionCount = typeDescriptionCount; + TypeDescriptions = typeDescriptions; + } + + + } + + [NativeName(NativeNameType.Field, "generator")] + [NativeName(NativeNameType.Type, "SpvReflectGenerator")] + public SpvReflectGenerator Generator; + [NativeName(NativeNameType.Field, "entry_point_name")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* EntryPointName; + [NativeName(NativeNameType.Field, "entry_point_id")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint EntryPointId; + [NativeName(NativeNameType.Field, "entry_point_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint EntryPointCount; + [NativeName(NativeNameType.Field, "entry_points")] + [NativeName(NativeNameType.Type, "SpvReflectEntryPoint*")] + public unsafe SpvReflectEntryPoint* EntryPoints; + [NativeName(NativeNameType.Field, "source_language")] + [NativeName(NativeNameType.Type, "SpvSourceLanguage")] + public SpvSourceLanguage SourceLanguage; + [NativeName(NativeNameType.Field, "source_language_version")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint SourceLanguageVersion; + [NativeName(NativeNameType.Field, "source_file")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* SourceFile; + [NativeName(NativeNameType.Field, "source_source")] + [NativeName(NativeNameType.Type, "const char*")] + public unsafe byte* SourceSource; + [NativeName(NativeNameType.Field, "capability_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint CapabilityCount; + [NativeName(NativeNameType.Field, "capabilities")] + [NativeName(NativeNameType.Type, "SpvReflectCapability*")] + public unsafe SpvReflectCapability* Capabilities; + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "spirv_execution_model")] + [NativeName(NativeNameType.Type, "SpvExecutionModel")] + public SpvExecutionModel SpirvExecutionModel; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "shader_stage")] + [NativeName(NativeNameType.Type, "SpvReflectShaderStageFlagBits")] + public SpvReflectShaderStageFlagBits ShaderStage; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "descriptor_binding_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint DescriptorBindingCount; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "descriptor_bindings")] + [NativeName(NativeNameType.Type, "SpvReflectDescriptorBinding*")] + public unsafe SpvReflectDescriptorBinding* DescriptorBindings; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "descriptor_set_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint DescriptorSetCount; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "descriptor_sets")] + [NativeName(NativeNameType.Type, "SpvReflectDescriptorSet[64]")] + public SpvReflectDescriptorSet DescriptorSets_0; + public SpvReflectDescriptorSet DescriptorSets_1; + public SpvReflectDescriptorSet DescriptorSets_2; + public SpvReflectDescriptorSet DescriptorSets_3; + public SpvReflectDescriptorSet DescriptorSets_4; + public SpvReflectDescriptorSet DescriptorSets_5; + public SpvReflectDescriptorSet DescriptorSets_6; + public SpvReflectDescriptorSet DescriptorSets_7; + public SpvReflectDescriptorSet DescriptorSets_8; + public SpvReflectDescriptorSet DescriptorSets_9; + public SpvReflectDescriptorSet DescriptorSets_10; + public SpvReflectDescriptorSet DescriptorSets_11; + public SpvReflectDescriptorSet DescriptorSets_12; + public SpvReflectDescriptorSet DescriptorSets_13; + public SpvReflectDescriptorSet DescriptorSets_14; + public SpvReflectDescriptorSet DescriptorSets_15; + public SpvReflectDescriptorSet DescriptorSets_16; + public SpvReflectDescriptorSet DescriptorSets_17; + public SpvReflectDescriptorSet DescriptorSets_18; + public SpvReflectDescriptorSet DescriptorSets_19; + public SpvReflectDescriptorSet DescriptorSets_20; + public SpvReflectDescriptorSet DescriptorSets_21; + public SpvReflectDescriptorSet DescriptorSets_22; + public SpvReflectDescriptorSet DescriptorSets_23; + public SpvReflectDescriptorSet DescriptorSets_24; + public SpvReflectDescriptorSet DescriptorSets_25; + public SpvReflectDescriptorSet DescriptorSets_26; + public SpvReflectDescriptorSet DescriptorSets_27; + public SpvReflectDescriptorSet DescriptorSets_28; + public SpvReflectDescriptorSet DescriptorSets_29; + public SpvReflectDescriptorSet DescriptorSets_30; + public SpvReflectDescriptorSet DescriptorSets_31; + public SpvReflectDescriptorSet DescriptorSets_32; + public SpvReflectDescriptorSet DescriptorSets_33; + public SpvReflectDescriptorSet DescriptorSets_34; + public SpvReflectDescriptorSet DescriptorSets_35; + public SpvReflectDescriptorSet DescriptorSets_36; + public SpvReflectDescriptorSet DescriptorSets_37; + public SpvReflectDescriptorSet DescriptorSets_38; + public SpvReflectDescriptorSet DescriptorSets_39; + public SpvReflectDescriptorSet DescriptorSets_40; + public SpvReflectDescriptorSet DescriptorSets_41; + public SpvReflectDescriptorSet DescriptorSets_42; + public SpvReflectDescriptorSet DescriptorSets_43; + public SpvReflectDescriptorSet DescriptorSets_44; + public SpvReflectDescriptorSet DescriptorSets_45; + public SpvReflectDescriptorSet DescriptorSets_46; + public SpvReflectDescriptorSet DescriptorSets_47; + public SpvReflectDescriptorSet DescriptorSets_48; + public SpvReflectDescriptorSet DescriptorSets_49; + public SpvReflectDescriptorSet DescriptorSets_50; + public SpvReflectDescriptorSet DescriptorSets_51; + public SpvReflectDescriptorSet DescriptorSets_52; + public SpvReflectDescriptorSet DescriptorSets_53; + public SpvReflectDescriptorSet DescriptorSets_54; + public SpvReflectDescriptorSet DescriptorSets_55; + public SpvReflectDescriptorSet DescriptorSets_56; + public SpvReflectDescriptorSet DescriptorSets_57; + public SpvReflectDescriptorSet DescriptorSets_58; + public SpvReflectDescriptorSet DescriptorSets_59; + public SpvReflectDescriptorSet DescriptorSets_60; + public SpvReflectDescriptorSet DescriptorSets_61; + public SpvReflectDescriptorSet DescriptorSets_62; + public SpvReflectDescriptorSet DescriptorSets_63; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "input_variable_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint InputVariableCount; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "input_variables")] + [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] + public unsafe SpvReflectInterfaceVariable** InputVariables; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "output_variable_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint OutputVariableCount; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "output_variables")] + [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable**")] + public unsafe SpvReflectInterfaceVariable** OutputVariables; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "interface_variable_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint InterfaceVariableCount; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "interface_variables")] + [NativeName(NativeNameType.Type, "SpvReflectInterfaceVariable*")] + public unsafe SpvReflectInterfaceVariable* InterfaceVariables; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "push_constant_block_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint PushConstantBlockCount; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "push_constant_blocks")] + [NativeName(NativeNameType.Type, "SpvReflectBlockVariable*")] + public unsafe SpvReflectBlockVariable* PushConstantBlocks; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "spec_constant_count")] + [NativeName(NativeNameType.Type, "uint32_t")] + public uint SpecConstantCount; + + /// + /// Uses value(s) from first entry point
+ ///
+ [NativeName(NativeNameType.Field, "spec_constants")] + [NativeName(NativeNameType.Type, "SpvReflectSpecializationConstant*")] + public unsafe SpvReflectSpecializationConstant* SpecConstants; + + [NativeName(NativeNameType.Field, "_internal")] + [NativeName(NativeNameType.Type, "Internal*")] + public unsafe ShaderModuleInternal* Internal; + + public unsafe SpvReflectShaderModule(SpvReflectGenerator generator = default, byte* entryPointName = default, uint entryPointId = default, uint entryPointCount = default, SpvReflectEntryPoint* entryPoints = default, SpvSourceLanguage sourceLanguage = default, uint sourceLanguageVersion = default, byte* sourceFile = default, byte* sourceSource = default, uint capabilityCount = default, SpvReflectCapability* capabilities = default, SpvExecutionModel spirvExecutionModel = default, SpvReflectShaderStageFlagBits shaderStage = default, uint descriptorBindingCount = default, SpvReflectDescriptorBinding* descriptorBindings = default, uint descriptorSetCount = default, SpvReflectDescriptorSet* descriptorSets = default, uint inputVariableCount = default, SpvReflectInterfaceVariable** inputVariables = default, uint outputVariableCount = default, SpvReflectInterfaceVariable** outputVariables = default, uint interfaceVariableCount = default, SpvReflectInterfaceVariable* interfaceVariables = default, uint pushConstantBlockCount = default, SpvReflectBlockVariable* pushConstantBlocks = default, uint specConstantCount = default, SpvReflectSpecializationConstant* specConstants = default, ShaderModuleInternal* @internal = default) + { + Generator = generator; + EntryPointName = entryPointName; + EntryPointId = entryPointId; + EntryPointCount = entryPointCount; + EntryPoints = entryPoints; + SourceLanguage = sourceLanguage; + SourceLanguageVersion = sourceLanguageVersion; + SourceFile = sourceFile; + SourceSource = sourceSource; + CapabilityCount = capabilityCount; + Capabilities = capabilities; + SpirvExecutionModel = spirvExecutionModel; + ShaderStage = shaderStage; + DescriptorBindingCount = descriptorBindingCount; + DescriptorBindings = descriptorBindings; + DescriptorSetCount = descriptorSetCount; + if (descriptorSets != default) + { + DescriptorSets_0 = descriptorSets[0]; + DescriptorSets_1 = descriptorSets[1]; + DescriptorSets_2 = descriptorSets[2]; + DescriptorSets_3 = descriptorSets[3]; + DescriptorSets_4 = descriptorSets[4]; + DescriptorSets_5 = descriptorSets[5]; + DescriptorSets_6 = descriptorSets[6]; + DescriptorSets_7 = descriptorSets[7]; + DescriptorSets_8 = descriptorSets[8]; + DescriptorSets_9 = descriptorSets[9]; + DescriptorSets_10 = descriptorSets[10]; + DescriptorSets_11 = descriptorSets[11]; + DescriptorSets_12 = descriptorSets[12]; + DescriptorSets_13 = descriptorSets[13]; + DescriptorSets_14 = descriptorSets[14]; + DescriptorSets_15 = descriptorSets[15]; + DescriptorSets_16 = descriptorSets[16]; + DescriptorSets_17 = descriptorSets[17]; + DescriptorSets_18 = descriptorSets[18]; + DescriptorSets_19 = descriptorSets[19]; + DescriptorSets_20 = descriptorSets[20]; + DescriptorSets_21 = descriptorSets[21]; + DescriptorSets_22 = descriptorSets[22]; + DescriptorSets_23 = descriptorSets[23]; + DescriptorSets_24 = descriptorSets[24]; + DescriptorSets_25 = descriptorSets[25]; + DescriptorSets_26 = descriptorSets[26]; + DescriptorSets_27 = descriptorSets[27]; + DescriptorSets_28 = descriptorSets[28]; + DescriptorSets_29 = descriptorSets[29]; + DescriptorSets_30 = descriptorSets[30]; + DescriptorSets_31 = descriptorSets[31]; + DescriptorSets_32 = descriptorSets[32]; + DescriptorSets_33 = descriptorSets[33]; + DescriptorSets_34 = descriptorSets[34]; + DescriptorSets_35 = descriptorSets[35]; + DescriptorSets_36 = descriptorSets[36]; + DescriptorSets_37 = descriptorSets[37]; + DescriptorSets_38 = descriptorSets[38]; + DescriptorSets_39 = descriptorSets[39]; + DescriptorSets_40 = descriptorSets[40]; + DescriptorSets_41 = descriptorSets[41]; + DescriptorSets_42 = descriptorSets[42]; + DescriptorSets_43 = descriptorSets[43]; + DescriptorSets_44 = descriptorSets[44]; + DescriptorSets_45 = descriptorSets[45]; + DescriptorSets_46 = descriptorSets[46]; + DescriptorSets_47 = descriptorSets[47]; + DescriptorSets_48 = descriptorSets[48]; + DescriptorSets_49 = descriptorSets[49]; + DescriptorSets_50 = descriptorSets[50]; + DescriptorSets_51 = descriptorSets[51]; + DescriptorSets_52 = descriptorSets[52]; + DescriptorSets_53 = descriptorSets[53]; + DescriptorSets_54 = descriptorSets[54]; + DescriptorSets_55 = descriptorSets[55]; + DescriptorSets_56 = descriptorSets[56]; + DescriptorSets_57 = descriptorSets[57]; + DescriptorSets_58 = descriptorSets[58]; + DescriptorSets_59 = descriptorSets[59]; + DescriptorSets_60 = descriptorSets[60]; + DescriptorSets_61 = descriptorSets[61]; + DescriptorSets_62 = descriptorSets[62]; + DescriptorSets_63 = descriptorSets[63]; + } + InputVariableCount = inputVariableCount; + InputVariables = inputVariables; + OutputVariableCount = outputVariableCount; + OutputVariables = outputVariables; + InterfaceVariableCount = interfaceVariableCount; + InterfaceVariables = interfaceVariables; + PushConstantBlockCount = pushConstantBlockCount; + PushConstantBlocks = pushConstantBlocks; + SpecConstantCount = specConstantCount; + SpecConstants = specConstants; + Internal = @internal; + } + + public unsafe SpvReflectShaderModule(SpvReflectGenerator generator = default, byte* entryPointName = default, uint entryPointId = default, uint entryPointCount = default, SpvReflectEntryPoint* entryPoints = default, SpvSourceLanguage sourceLanguage = default, uint sourceLanguageVersion = default, byte* sourceFile = default, byte* sourceSource = default, uint capabilityCount = default, SpvReflectCapability* capabilities = default, SpvExecutionModel spirvExecutionModel = default, SpvReflectShaderStageFlagBits shaderStage = default, uint descriptorBindingCount = default, SpvReflectDescriptorBinding* descriptorBindings = default, uint descriptorSetCount = default, Span descriptorSets = default, uint inputVariableCount = default, SpvReflectInterfaceVariable** inputVariables = default, uint outputVariableCount = default, SpvReflectInterfaceVariable** outputVariables = default, uint interfaceVariableCount = default, SpvReflectInterfaceVariable* interfaceVariables = default, uint pushConstantBlockCount = default, SpvReflectBlockVariable* pushConstantBlocks = default, uint specConstantCount = default, SpvReflectSpecializationConstant* specConstants = default, ShaderModuleInternal* @internal = default) + { + Generator = generator; + EntryPointName = entryPointName; + EntryPointId = entryPointId; + EntryPointCount = entryPointCount; + EntryPoints = entryPoints; + SourceLanguage = sourceLanguage; + SourceLanguageVersion = sourceLanguageVersion; + SourceFile = sourceFile; + SourceSource = sourceSource; + CapabilityCount = capabilityCount; + Capabilities = capabilities; + SpirvExecutionModel = spirvExecutionModel; + ShaderStage = shaderStage; + DescriptorBindingCount = descriptorBindingCount; + DescriptorBindings = descriptorBindings; + DescriptorSetCount = descriptorSetCount; + if (descriptorSets != default) + { + DescriptorSets_0 = descriptorSets[0]; + DescriptorSets_1 = descriptorSets[1]; + DescriptorSets_2 = descriptorSets[2]; + DescriptorSets_3 = descriptorSets[3]; + DescriptorSets_4 = descriptorSets[4]; + DescriptorSets_5 = descriptorSets[5]; + DescriptorSets_6 = descriptorSets[6]; + DescriptorSets_7 = descriptorSets[7]; + DescriptorSets_8 = descriptorSets[8]; + DescriptorSets_9 = descriptorSets[9]; + DescriptorSets_10 = descriptorSets[10]; + DescriptorSets_11 = descriptorSets[11]; + DescriptorSets_12 = descriptorSets[12]; + DescriptorSets_13 = descriptorSets[13]; + DescriptorSets_14 = descriptorSets[14]; + DescriptorSets_15 = descriptorSets[15]; + DescriptorSets_16 = descriptorSets[16]; + DescriptorSets_17 = descriptorSets[17]; + DescriptorSets_18 = descriptorSets[18]; + DescriptorSets_19 = descriptorSets[19]; + DescriptorSets_20 = descriptorSets[20]; + DescriptorSets_21 = descriptorSets[21]; + DescriptorSets_22 = descriptorSets[22]; + DescriptorSets_23 = descriptorSets[23]; + DescriptorSets_24 = descriptorSets[24]; + DescriptorSets_25 = descriptorSets[25]; + DescriptorSets_26 = descriptorSets[26]; + DescriptorSets_27 = descriptorSets[27]; + DescriptorSets_28 = descriptorSets[28]; + DescriptorSets_29 = descriptorSets[29]; + DescriptorSets_30 = descriptorSets[30]; + DescriptorSets_31 = descriptorSets[31]; + DescriptorSets_32 = descriptorSets[32]; + DescriptorSets_33 = descriptorSets[33]; + DescriptorSets_34 = descriptorSets[34]; + DescriptorSets_35 = descriptorSets[35]; + DescriptorSets_36 = descriptorSets[36]; + DescriptorSets_37 = descriptorSets[37]; + DescriptorSets_38 = descriptorSets[38]; + DescriptorSets_39 = descriptorSets[39]; + DescriptorSets_40 = descriptorSets[40]; + DescriptorSets_41 = descriptorSets[41]; + DescriptorSets_42 = descriptorSets[42]; + DescriptorSets_43 = descriptorSets[43]; + DescriptorSets_44 = descriptorSets[44]; + DescriptorSets_45 = descriptorSets[45]; + DescriptorSets_46 = descriptorSets[46]; + DescriptorSets_47 = descriptorSets[47]; + DescriptorSets_48 = descriptorSets[48]; + DescriptorSets_49 = descriptorSets[49]; + DescriptorSets_50 = descriptorSets[50]; + DescriptorSets_51 = descriptorSets[51]; + DescriptorSets_52 = descriptorSets[52]; + DescriptorSets_53 = descriptorSets[53]; + DescriptorSets_54 = descriptorSets[54]; + DescriptorSets_55 = descriptorSets[55]; + DescriptorSets_56 = descriptorSets[56]; + DescriptorSets_57 = descriptorSets[57]; + DescriptorSets_58 = descriptorSets[58]; + DescriptorSets_59 = descriptorSets[59]; + DescriptorSets_60 = descriptorSets[60]; + DescriptorSets_61 = descriptorSets[61]; + DescriptorSets_62 = descriptorSets[62]; + DescriptorSets_63 = descriptorSets[63]; + } + InputVariableCount = inputVariableCount; + InputVariables = inputVariables; + OutputVariableCount = outputVariableCount; + OutputVariables = outputVariables; + InterfaceVariableCount = interfaceVariableCount; + InterfaceVariables = interfaceVariables; + PushConstantBlockCount = pushConstantBlockCount; + PushConstantBlocks = pushConstantBlocks; + SpecConstantCount = specConstantCount; + SpecConstants = specConstants; + Internal = @internal; + } + + + /// + /// Uses value(s) from first entry point
+ ///
+ public unsafe Span DescriptorSets + + { + get + { + fixed (SpvReflectDescriptorSet* p = &this.DescriptorSets_0) + { + return new Span(p, 64); + } + } + } + } + +} diff --git a/Hexa.NET.SPIRVReflect/Hexa.NET.SPIRVReflect.csproj b/Hexa.NET.SPIRVReflect/Hexa.NET.SPIRVReflect.csproj new file mode 100644 index 0000000..397f630 --- /dev/null +++ b/Hexa.NET.SPIRVReflect/Hexa.NET.SPIRVReflect.csproj @@ -0,0 +1,18 @@ + + + + net8.0 + enable + enable + true + + + + + + + + + + + diff --git a/Hexa.NET.Vulkan/Hexa.NET.Vulkan.csproj b/Hexa.NET.Vulkan/Hexa.NET.Vulkan.csproj new file mode 100644 index 0000000..a52162b --- /dev/null +++ b/Hexa.NET.Vulkan/Hexa.NET.Vulkan.csproj @@ -0,0 +1,8 @@ + + + + net8.0 + enable + enable + + \ No newline at end of file diff --git a/Hexa.NET.X3DAudio/AssemblyInfo.cs b/Hexa.NET.X3DAudio/AssemblyInfo.cs new file mode 100644 index 0000000..4d6f1a1 --- /dev/null +++ b/Hexa.NET.X3DAudio/AssemblyInfo.cs @@ -0,0 +1 @@ +[assembly: System.Runtime.CompilerServices.DisableRuntimeMarshalling] diff --git a/Hexa.NET.X3DAudio/Generated/Constants.cs b/Hexa.NET.X3DAudio/Generated/Constants.cs index 521b8c9..8006c60 100644 --- a/Hexa.NET.X3DAudio/Generated/Constants.cs +++ b/Hexa.NET.X3DAudio/Generated/Constants.cs @@ -17,42 +17,55 @@ namespace Hexa.NET.X3DAudio public unsafe partial class X3DAudio { [NativeName(NativeNameType.Const, "X3DAUDIO_HANDLE_BYTESIZE")] + [NativeName(NativeNameType.Value, "20")] public const int X3DAudio_HANDLE_BYTESIZE = 20; [NativeName(NativeNameType.Const, "X3DAUDIO_PI")] + [NativeName(NativeNameType.Value, "3.141592654f")] public const float X3DAudio_PI = 3.141592654f; [NativeName(NativeNameType.Const, "X3DAUDIO_2PI")] + [NativeName(NativeNameType.Value, "6.283185307f")] public const float X3DAudio_2PI = 6.283185307f; [NativeName(NativeNameType.Const, "X3DAUDIO_SPEED_OF_SOUND")] + [NativeName(NativeNameType.Value, "343.5f")] public const float X3DAudio_SPEED_OF_SOUND = 343.5f; [NativeName(NativeNameType.Const, "X3DAUDIO_CALCULATE_MATRIX")] + [NativeName(NativeNameType.Value, "0x00000001")] public const int X3DAudio_CALCULATE_MATRIX = 0x00000001; [NativeName(NativeNameType.Const, "X3DAUDIO_CALCULATE_DELAY")] + [NativeName(NativeNameType.Value, "0x00000002")] public const int X3DAudio_CALCULATE_DELAY = 0x00000002; [NativeName(NativeNameType.Const, "X3DAUDIO_CALCULATE_LPF_DIRECT")] + [NativeName(NativeNameType.Value, "0x00000004")] public const int X3DAudio_CALCULATE_LPF_DIRECT = 0x00000004; [NativeName(NativeNameType.Const, "X3DAUDIO_CALCULATE_LPF_REVERB")] + [NativeName(NativeNameType.Value, "0x00000008")] public const int X3DAudio_CALCULATE_LPF_REVERB = 0x00000008; [NativeName(NativeNameType.Const, "X3DAUDIO_CALCULATE_REVERB")] + [NativeName(NativeNameType.Value, "0x00000010")] public const int X3DAudio_CALCULATE_REVERB = 0x00000010; [NativeName(NativeNameType.Const, "X3DAUDIO_CALCULATE_DOPPLER")] + [NativeName(NativeNameType.Value, "0x00000020")] public const int X3DAudio_CALCULATE_DOPPLER = 0x00000020; [NativeName(NativeNameType.Const, "X3DAUDIO_CALCULATE_EMITTER_ANGLE")] + [NativeName(NativeNameType.Value, "0x00000040")] public const int X3DAudio_CALCULATE_EMITTER_ANGLE = 0x00000040; [NativeName(NativeNameType.Const, "X3DAUDIO_CALCULATE_ZEROCENTER")] + [NativeName(NativeNameType.Value, "0x00010000")] public const int X3DAudio_CALCULATE_ZEROCENTER = 0x00010000; [NativeName(NativeNameType.Const, "X3DAUDIO_CALCULATE_REDIRECT_TO_LFE")] + [NativeName(NativeNameType.Value, "0x00020000")] public const int X3DAudio_CALCULATE_REDIRECT_TO_LFE = 0x00020000; } diff --git a/Hexa.NET.X3DAudio/Generated/Functions.cs b/Hexa.NET.X3DAudio/Generated/Functions.cs index 676983f..0e04636 100644 --- a/Hexa.NET.X3DAudio/Generated/Functions.cs +++ b/Hexa.NET.X3DAudio/Generated/Functions.cs @@ -20,43 +20,25 @@ public unsafe partial class X3DAudio { internal const string LibName = "x3daudio1_7.dll"; - /// - /// --------------
- /// - /// -U-N-C-T-I-O-N-S>-----------------------------------------//
- /// initializes instance handle
- ///
- [NativeName(NativeNameType.Func, "X3DAudioInitialize")] - [return: NativeName(NativeNameType.Type, "HRESULT")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "X3DAudioInitialize")] - internal static extern HResult X3DAudioInitializeNative([NativeName(NativeNameType.Param, "SpeakerChannelMask")] [NativeName(NativeNameType.Type, "UINT32")] uint speakerChannelMask, [NativeName(NativeNameType.Param, "SpeedOfSound")] [NativeName(NativeNameType.Type, "FLOAT32")] float speedOfSound, [NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "X3DAUDIO_HANDLE")] X3DAudioHandle* instance); - - /// /// --------------
/// /// -U-N-C-T-I-O-N-S>-----------------------------------------//
/// initializes instance handle
///
[NativeName(NativeNameType.Func, "X3DAudioInitialize")] - [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult X3DAudioInitialize([NativeName(NativeNameType.Param, "SpeakerChannelMask")] [NativeName(NativeNameType.Type, "UINT32")] uint speakerChannelMask, [NativeName(NativeNameType.Param, "SpeedOfSound")] [NativeName(NativeNameType.Type, "FLOAT32")] float speedOfSound, [NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "X3DAUDIO_HANDLE")] X3DAudioHandle* instance) - { - HResult ret = X3DAudioInitializeNative(speakerChannelMask, speedOfSound, instance); - return ret; - } - /// /// calculates DSP settings with respect to 3D parameters
///
[NativeName(NativeNameType.Func, "X3DAudioCalculate")] [return: NativeName(NativeNameType.Type, "void")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "X3DAudioCalculate")] - internal static extern void X3DAudioCalculateNative([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle* instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] X3DAudioListener* pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] X3DAudioEmitter* pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] X3DAudioDspSettings* pDSPSettings); + [LibraryImport(LibName, EntryPoint = "X3DAudioCalculate")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial void X3DAudioCalculateNative([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] X3DAudioListener* pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] X3DAudioEmitter* pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] X3DAudioDspSettings* pDSPSettings); /// /// calculates DSP settings with respect to 3D parameters
///
[NativeName(NativeNameType.Func, "X3DAudioCalculate")] [return: NativeName(NativeNameType.Type, "void")] - public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle* instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] X3DAudioListener* pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] X3DAudioEmitter* pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] X3DAudioDspSettings* pDSPSettings) + public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] X3DAudioListener* pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] X3DAudioEmitter* pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] X3DAudioDspSettings* pDSPSettings) { X3DAudioCalculateNative(instance, pListener, pEmitter, flags, pDSPSettings); } /// /// calculates DSP settings with respect to 3D parameters
///
[NativeName(NativeNameType.Func, "X3DAudioCalculate")] [return: NativeName(NativeNameType.Type, "void")] - public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle* instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] ref X3DAudioListener pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] X3DAudioEmitter* pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] X3DAudioDspSettings* pDSPSettings) + public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] ref X3DAudioListener pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] X3DAudioEmitter* pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] X3DAudioDspSettings* pDSPSettings) { fixed (X3DAudioListener* ppListener = &pListener) { @@ -66,7 +48,7 @@ public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance /// /// calculates DSP settings with respect to 3D parameters
///
[NativeName(NativeNameType.Func, "X3DAudioCalculate")] [return: NativeName(NativeNameType.Type, "void")] - public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle* instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] X3DAudioListener* pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] ref X3DAudioEmitter pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] X3DAudioDspSettings* pDSPSettings) + public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] X3DAudioListener* pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] ref X3DAudioEmitter pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] X3DAudioDspSettings* pDSPSettings) { fixed (X3DAudioEmitter* ppEmitter = &pEmitter) { @@ -76,7 +58,7 @@ public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance /// /// calculates DSP settings with respect to 3D parameters
///
[NativeName(NativeNameType.Func, "X3DAudioCalculate")] [return: NativeName(NativeNameType.Type, "void")] - public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle* instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] ref X3DAudioListener pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] ref X3DAudioEmitter pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] X3DAudioDspSettings* pDSPSettings) + public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] ref X3DAudioListener pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] ref X3DAudioEmitter pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] X3DAudioDspSettings* pDSPSettings) { fixed (X3DAudioListener* ppListener = &pListener) { @@ -89,7 +71,7 @@ public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance /// /// calculates DSP settings with respect to 3D parameters
///
[NativeName(NativeNameType.Func, "X3DAudioCalculate")] [return: NativeName(NativeNameType.Type, "void")] - public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle* instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] X3DAudioListener* pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] X3DAudioEmitter* pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] ref X3DAudioDspSettings pDSPSettings) + public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] X3DAudioListener* pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] X3DAudioEmitter* pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] ref X3DAudioDspSettings pDSPSettings) { fixed (X3DAudioDspSettings* ppDSPSettings = &pDSPSettings) { @@ -99,7 +81,7 @@ public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance /// /// calculates DSP settings with respect to 3D parameters
///
[NativeName(NativeNameType.Func, "X3DAudioCalculate")] [return: NativeName(NativeNameType.Type, "void")] - public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle* instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] ref X3DAudioListener pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] X3DAudioEmitter* pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] ref X3DAudioDspSettings pDSPSettings) + public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] ref X3DAudioListener pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] X3DAudioEmitter* pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] ref X3DAudioDspSettings pDSPSettings) { fixed (X3DAudioListener* ppListener = &pListener) { @@ -112,7 +94,7 @@ public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance /// /// calculates DSP settings with respect to 3D parameters
///
[NativeName(NativeNameType.Func, "X3DAudioCalculate")] [return: NativeName(NativeNameType.Type, "void")] - public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle* instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] X3DAudioListener* pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] ref X3DAudioEmitter pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] ref X3DAudioDspSettings pDSPSettings) + public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] X3DAudioListener* pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] ref X3DAudioEmitter pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] ref X3DAudioDspSettings pDSPSettings) { fixed (X3DAudioEmitter* ppEmitter = &pEmitter) { @@ -125,7 +107,7 @@ public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance /// /// calculates DSP settings with respect to 3D parameters
///
[NativeName(NativeNameType.Func, "X3DAudioCalculate")] [return: NativeName(NativeNameType.Type, "void")] - public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle* instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] ref X3DAudioListener pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] ref X3DAudioEmitter pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] ref X3DAudioDspSettings pDSPSettings) + public static void X3DAudioCalculate([NativeName(NativeNameType.Param, "Instance")] [NativeName(NativeNameType.Type, "const X3DAUDIO_HANDLE")] X3DAudioHandle instance, [NativeName(NativeNameType.Param, "pListener")] [NativeName(NativeNameType.Type, "const X3DAUDIO_LISTENER*")] ref X3DAudioListener pListener, [NativeName(NativeNameType.Param, "pEmitter")] [NativeName(NativeNameType.Type, "const X3DAUDIO_EMITTER*")] ref X3DAudioEmitter pEmitter, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "pDSPSettings")] [NativeName(NativeNameType.Type, "X3DAUDIO_DSP_SETTINGS*")] ref X3DAudioDspSettings pDSPSettings) { fixed (X3DAudioListener* ppListener = &pListener) { diff --git a/Hexa.NET.X3DAudio/Generated/Structures.cs b/Hexa.NET.X3DAudio/Generated/Structures.cs index b3e7d8d..36040a0 100644 --- a/Hexa.NET.X3DAudio/Generated/Structures.cs +++ b/Hexa.NET.X3DAudio/Generated/Structures.cs @@ -196,28 +196,28 @@ public partial struct X3DAudioListener /// [NativeName(NativeNameType.Field, "OrientFront")] [NativeName(NativeNameType.Type, "X3DAUDIO_VECTOR")] - public Vector4 OrientFront; + public Vector3 OrientFront; /// /// orientation of top direction, used only for matrix and delay calculations, must be orthonormal with OrientFront when used
///
[NativeName(NativeNameType.Field, "OrientTop")] [NativeName(NativeNameType.Type, "X3DAUDIO_VECTOR")] - public Vector4 OrientTop; + public Vector3 OrientTop; /// /// position in user-defined world units, does not affect Velocity
///
[NativeName(NativeNameType.Field, "Position")] [NativeName(NativeNameType.Type, "X3DAUDIO_VECTOR")] - public Vector4 Position; + public Vector3 Position; /// /// velocity vector in user-defined world units/second, used only for doppler calculations, does not affect Position
///
[NativeName(NativeNameType.Field, "Velocity")] [NativeName(NativeNameType.Type, "X3DAUDIO_VECTOR")] - public Vector4 Velocity; + public Vector3 Velocity; /// /// sound cone, used only for matrix, LPF (both direct and reverb paths), and reverb calculations, NULL specifies omnidirectionality
@@ -227,7 +227,7 @@ public partial struct X3DAudioListener public unsafe X3DAudioCone* PCone; - /// /// To be documented. /// public unsafe X3DAudioListener(Vector4 orientFront = default, Vector4 orientTop = default, Vector4 position = default, Vector4 velocity = default, X3DAudioCone* pCone = default) + /// /// To be documented. /// public unsafe X3DAudioListener(Vector3 orientFront = default, Vector3 orientTop = default, Vector3 position = default, Vector3 velocity = default, X3DAudioCone* pCone = default) { OrientFront = orientFront; OrientTop = orientTop; @@ -282,28 +282,28 @@ public partial struct X3DAudioEmitter ///
[NativeName(NativeNameType.Field, "OrientFront")] [NativeName(NativeNameType.Type, "X3DAUDIO_VECTOR")] - public Vector4 OrientFront; + public Vector3 OrientFront; /// /// orientation of top direction, used only with multi-channel emitters for matrix calculations, must be orthonormal with OrientFront when used
///
[NativeName(NativeNameType.Field, "OrientTop")] [NativeName(NativeNameType.Type, "X3DAUDIO_VECTOR")] - public Vector4 OrientTop; + public Vector3 OrientTop; /// /// position in user-defined world units, does not affect Velocity
///
[NativeName(NativeNameType.Field, "Position")] [NativeName(NativeNameType.Type, "X3DAUDIO_VECTOR")] - public Vector4 Position; + public Vector3 Position; /// /// velocity vector in user-defined world units/second, used only for doppler calculations, does not affect Position
///
[NativeName(NativeNameType.Field, "Velocity")] [NativeName(NativeNameType.Type, "X3DAUDIO_VECTOR")] - public Vector4 Velocity; + public Vector3 Velocity; /// /// inner radius, must be within [0.0f, FLT_MAX]
@@ -394,7 +394,7 @@ public partial struct X3DAudioEmitter public float DopplerScaler; - /// /// To be documented. /// public unsafe X3DAudioEmitter(X3DAudioCone* pCone = default, Vector4 orientFront = default, Vector4 orientTop = default, Vector4 position = default, Vector4 velocity = default, float innerRadius = default, float innerRadiusAngle = default, uint channelCount = default, float channelRadius = default, float* pChannelAzimuths = default, X3DAudioDistanceCurve* pVolumeCurve = default, X3DAudioDistanceCurve* pLFECurve = default, X3DAudioDistanceCurve* pLPFDirectCurve = default, X3DAudioDistanceCurve* pLPFReverbCurve = default, X3DAudioDistanceCurve* pReverbCurve = default, float curveDistanceScaler = default, float dopplerScaler = default) + /// /// To be documented. /// public unsafe X3DAudioEmitter(X3DAudioCone* pCone = default, Vector3 orientFront = default, Vector3 orientTop = default, Vector3 position = default, Vector3 velocity = default, float innerRadius = default, float innerRadiusAngle = default, uint channelCount = default, float channelRadius = default, float* pChannelAzimuths = default, X3DAudioDistanceCurve* pVolumeCurve = default, X3DAudioDistanceCurve* pLFECurve = default, X3DAudioDistanceCurve* pLPFDirectCurve = default, X3DAudioDistanceCurve* pLPFReverbCurve = default, X3DAudioDistanceCurve* pReverbCurve = default, float curveDistanceScaler = default, float dopplerScaler = default) { PCone = pCone; OrientFront = orientFront; diff --git a/Hexa.NET.X3DAudio/Hexa.NET.X3DAudio.csproj b/Hexa.NET.X3DAudio/Hexa.NET.X3DAudio.csproj index 49751ef..2b15193 100644 --- a/Hexa.NET.X3DAudio/Hexa.NET.X3DAudio.csproj +++ b/Hexa.NET.X3DAudio/Hexa.NET.X3DAudio.csproj @@ -12,7 +12,7 @@ true 1.0.0 - 1.0.3 + 1.0.4 A .NET Wrapper for X3DAudio (v 1.7), generated with the HexaGen code generator. HexaGen allows users to access native libraries easily and with high performance. X3DAudio XAudio2 3DAudio Audio Sound Hexa HexaGen Source Generator C# .NET DotNet Sharp Windows Bindings Wrapper Native Juna Meinhold @@ -32,4 +32,8 @@ + + + + \ No newline at end of file diff --git a/Hexa.NET.X3DAudio/X3DAudio.Manual.cs b/Hexa.NET.X3DAudio/X3DAudio.Manual.cs new file mode 100644 index 0000000..def927f --- /dev/null +++ b/Hexa.NET.X3DAudio/X3DAudio.Manual.cs @@ -0,0 +1,54 @@ +namespace Hexa.NET.X3DAudio +{ + using HexaGen.Runtime; + using System; + using System.Collections.Generic; + using System.Linq; + using System.Runtime.CompilerServices; + using System.Runtime.InteropServices; + using System.Text; + using System.Threading.Tasks; + + public unsafe partial class X3DAudio + { + /// + /// --------------
+ /// + /// -U-N-C-T-I-O-N-S>-----------------------------------------//
+ /// initializes instance handle
+ ///
+ [NativeName(NativeNameType.Func, "X3DAudioInitialize")] + [return: NativeName(NativeNameType.Type, "HRESULT")] + [LibraryImport(LibName, EntryPoint = "X3DAudioInitialize")] + [UnmanagedCallConv(CallConvs = new Type[] { typeof(System.Runtime.CompilerServices.CallConvCdecl) })] + internal static partial HResult X3DAudioInitializeNative([NativeName(NativeNameType.Param, "SpeakerChannelMask")][NativeName(NativeNameType.Type, "UINT32")] uint speakerChannelMask, [NativeName(NativeNameType.Param, "SpeedOfSound")][NativeName(NativeNameType.Type, "FLOAT32")] float speedOfSound, [NativeName(NativeNameType.Param, "Instance")][NativeName(NativeNameType.Type, "X3DAUDIO_HANDLE")] X3DAudioHandle* instance); + + /// + /// --------------
+ /// + /// -U-N-C-T-I-O-N-S>-----------------------------------------//
+ /// initializes instance handle
+ ///
+ [NativeName(NativeNameType.Func, "X3DAudioInitialize")] + [return: NativeName(NativeNameType.Type, "HRESULT")] + public static HResult X3DAudioInitialize([NativeName(NativeNameType.Param, "SpeakerChannelMask")][NativeName(NativeNameType.Type, "UINT32")] uint speakerChannelMask, [NativeName(NativeNameType.Param, "SpeedOfSound")][NativeName(NativeNameType.Type, "FLOAT32")] float speedOfSound, [NativeName(NativeNameType.Param, "Instance")][NativeName(NativeNameType.Type, "X3DAUDIO_HANDLE")] X3DAudioHandle* instance) + { + HResult ret = X3DAudioInitializeNative(speakerChannelMask, speedOfSound, instance); + return ret; + } + + /// + /// --------------
+ /// + /// -U-N-C-T-I-O-N-S>-----------------------------------------//
+ /// initializes instance handle
+ ///
+ [NativeName(NativeNameType.Func, "X3DAudioInitialize")] + [return: NativeName(NativeNameType.Type, "HRESULT")] + public static HResult X3DAudioInitialize([NativeName(NativeNameType.Param, "SpeakerChannelMask")][NativeName(NativeNameType.Type, "UINT32")] uint speakerChannelMask, [NativeName(NativeNameType.Param, "SpeedOfSound")][NativeName(NativeNameType.Type, "FLOAT32")] float speedOfSound, [NativeName(NativeNameType.Param, "Instance")][NativeName(NativeNameType.Type, "X3DAUDIO_HANDLE")] ref X3DAudioHandle instance) + { + HResult ret = X3DAudioInitializeNative(speakerChannelMask, speedOfSound, (X3DAudioHandle*)Unsafe.AsPointer(ref instance)); + return ret; + } + } +} \ No newline at end of file diff --git a/Hexa.NET.X3DAudio/X3DAudioHandle.cs b/Hexa.NET.X3DAudio/X3DAudioHandle.cs index 4592469..f3fac66 100644 --- a/Hexa.NET.X3DAudio/X3DAudioHandle.cs +++ b/Hexa.NET.X3DAudio/X3DAudioHandle.cs @@ -1,16 +1,15 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Hexa.NET.X3DAudio +namespace Hexa.NET.X3DAudio { + using System.Runtime.CompilerServices; + public unsafe struct X3DAudioHandle { - public fixed byte Data[20]; + public DataInlineArray Data; + + [InlineArray(80)] + public struct DataInlineArray + { + private byte _byte; + } } } \ No newline at end of file diff --git a/Hexa.NET.XAudio2/AssemblyInfo.cs b/Hexa.NET.XAudio2/AssemblyInfo.cs new file mode 100644 index 0000000..4d6f1a1 --- /dev/null +++ b/Hexa.NET.XAudio2/AssemblyInfo.cs @@ -0,0 +1 @@ +[assembly: System.Runtime.CompilerServices.DisableRuntimeMarshalling] diff --git a/Hexa.NET.XAudio2/Generated/Constants.cs b/Hexa.NET.XAudio2/Generated/Constants.cs index c93f89a..14927d0 100644 --- a/Hexa.NET.XAudio2/Generated/Constants.cs +++ b/Hexa.NET.XAudio2/Generated/Constants.cs @@ -16,474 +16,631 @@ namespace Hexa.NET.XAudio2 public unsafe partial class XAudio2 { [NativeName(NativeNameType.Const, "AUDCLNT_STREAMFLAGS_CROSSPROCESS")] + [NativeName(NativeNameType.Value, "0x00010000")] public const int AUDCLNT_STREAMFLAGS_CROSSPROCESS = 0x00010000; [NativeName(NativeNameType.Const, "AUDCLNT_STREAMFLAGS_LOOPBACK")] + [NativeName(NativeNameType.Value, "0x00020000")] public const int AUDCLNT_STREAMFLAGS_LOOPBACK = 0x00020000; [NativeName(NativeNameType.Const, "AUDCLNT_STREAMFLAGS_EVENTCALLBACK")] + [NativeName(NativeNameType.Value, "0x00040000")] public const int AUDCLNT_STREAMFLAGS_EVENTCALLBACK = 0x00040000; [NativeName(NativeNameType.Const, "AUDCLNT_STREAMFLAGS_NOPERSIST")] + [NativeName(NativeNameType.Value, "0x00080000")] public const int AUDCLNT_STREAMFLAGS_NOPERSIST = 0x00080000; [NativeName(NativeNameType.Const, "AUDCLNT_STREAMFLAGS_RATEADJUST")] + [NativeName(NativeNameType.Value, "0x00100000")] public const int AUDCLNT_STREAMFLAGS_RATEADJUST = 0x00100000; [NativeName(NativeNameType.Const, "AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY")] + [NativeName(NativeNameType.Value, "0x08000000")] public const int AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY = 0x08000000; [NativeName(NativeNameType.Const, "AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM")] + [NativeName(NativeNameType.Value, "0x80000000")] public const uint AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM = 0x80000000; [NativeName(NativeNameType.Const, "AUDCLNT_SESSIONFLAGS_EXPIREWHENUNOWNED")] + [NativeName(NativeNameType.Value, "0x10000000")] public const int AUDCLNT_SESSIONFLAGS_EXPIREWHENUNOWNED = 0x10000000; [NativeName(NativeNameType.Const, "AUDCLNT_SESSIONFLAGS_DISPLAY_HIDE")] + [NativeName(NativeNameType.Value, "0x20000000")] public const int AUDCLNT_SESSIONFLAGS_DISPLAY_HIDE = 0x20000000; [NativeName(NativeNameType.Const, "AUDCLNT_SESSIONFLAGS_DISPLAY_HIDEWHENEXPIRED")] + [NativeName(NativeNameType.Value, "0x40000000")] public const int AUDCLNT_SESSIONFLAGS_DISPLAY_HIDEWHENEXPIRED = 0x40000000; [NativeName(NativeNameType.Const, "XAUDIO2_DLL_A")] + [NativeName(NativeNameType.Value, "\"xaudio2_9.dll\"")] public const string XAudio2_DLL_A = "xaudio2_9.dll"; [NativeName(NativeNameType.Const, "XAUDIO2_DLL_W")] + [NativeName(NativeNameType.Value, "L\"xaudio2_9.dll\"")] public const string XAudio2_DLL_W = "xaudio2_9.dll"; [NativeName(NativeNameType.Const, "XAUDIO2D_DLL_A")] + [NativeName(NativeNameType.Value, "\"xaudio2_9d.dll\"")] public const string XAudio2D_DLL_A = "xaudio2_9d.dll"; [NativeName(NativeNameType.Const, "XAUDIO2D_DLL_W")] + [NativeName(NativeNameType.Value, "L\"xaudio2_9d.dll\"")] public const string XAudio2D_DLL_W = "xaudio2_9d.dll"; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_BUFFER_BYTES")] + [NativeName(NativeNameType.Value, "0x80000000")] public const uint XAudio2_MAX_BUFFER_BYTES = 0x80000000; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_QUEUED_BUFFERS")] + [NativeName(NativeNameType.Value, "64")] public const int XAudio2_MAX_QUEUED_BUFFERS = 64; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_BUFFERS_SYSTEM")] + [NativeName(NativeNameType.Value, "2")] public const int XAudio2_MAX_BUFFERS_SYSTEM = 2; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_AUDIO_CHANNELS")] + [NativeName(NativeNameType.Value, "64")] public const int XAudio2_MAX_AUDIO_CHANNELS = 64; [NativeName(NativeNameType.Const, "XAUDIO2_MIN_SAMPLE_RATE")] + [NativeName(NativeNameType.Value, "1000")] public const int XAudio2_MIN_SAMPLE_RATE = 1000; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_SAMPLE_RATE")] + [NativeName(NativeNameType.Value, "200000")] public const int XAudio2_MAX_SAMPLE_RATE = 200000; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_VOLUME_LEVEL")] + [NativeName(NativeNameType.Value, "16777216.0f")] public const float XAudio2_MAX_VOLUME_LEVEL = 16777216.0f; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_FREQ_RATIO")] + [NativeName(NativeNameType.Value, "1024.0f")] public const float XAudio2_MAX_FREQ_RATIO = 1024.0f; [NativeName(NativeNameType.Const, "XAUDIO2_DEFAULT_FREQ_RATIO")] + [NativeName(NativeNameType.Value, "2.0f")] public const float XAudio2_DEFAULT_FREQ_RATIO = 2.0f; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_FILTER_ONEOVERQ")] + [NativeName(NativeNameType.Value, "1.5f")] public const float XAudio2_MAX_FILTER_ONEOVERQ = 1.5f; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_FILTER_FREQUENCY")] + [NativeName(NativeNameType.Value, "1.0f")] public const float XAudio2_MAX_FILTER_FREQUENCY = 1.0f; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_LOOP_COUNT")] + [NativeName(NativeNameType.Value, "254")] public const int XAudio2_MAX_LOOP_COUNT = 254; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_INSTANCES")] + [NativeName(NativeNameType.Value, "8")] public const int XAudio2_MAX_INSTANCES = 8; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MONO")] + [NativeName(NativeNameType.Value, "600000")] public const int XAudio2_MAX_RATIO_TIMES_RATE_XMA_MONO = 600000; [NativeName(NativeNameType.Const, "XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MULTICHANNEL")] + [NativeName(NativeNameType.Value, "300000")] public const int XAudio2_MAX_RATIO_TIMES_RATE_XMA_MULTICHANNEL = 300000; [NativeName(NativeNameType.Const, "XAUDIO2_COMMIT_NOW")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2_COMMIT_NOW = 0; [NativeName(NativeNameType.Const, "XAUDIO2_COMMIT_ALL")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2_COMMIT_ALL = 0; [NativeName(NativeNameType.Const, "XAUDIO2_NO_LOOP_REGION")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2_NO_LOOP_REGION = 0; [NativeName(NativeNameType.Const, "XAUDIO2_LOOP_INFINITE")] + [NativeName(NativeNameType.Value, "255")] public const int XAudio2_LOOP_INFINITE = 255; [NativeName(NativeNameType.Const, "XAUDIO2_DEFAULT_CHANNELS")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2_DEFAULT_CHANNELS = 0; [NativeName(NativeNameType.Const, "XAUDIO2_DEFAULT_SAMPLERATE")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2_DEFAULT_SAMPLERATE = 0; [NativeName(NativeNameType.Const, "XAUDIO2_DEBUG_ENGINE")] + [NativeName(NativeNameType.Value, "0x0001")] public const int XAudio2_DEBUG_ENGINE = 0x0001; [NativeName(NativeNameType.Const, "XAUDIO2_VOICE_NOPITCH")] + [NativeName(NativeNameType.Value, "0x0002")] public const int XAudio2_VOICE_NOPITCH = 0x0002; [NativeName(NativeNameType.Const, "XAUDIO2_VOICE_NOSRC")] + [NativeName(NativeNameType.Value, "0x0004")] public const int XAudio2_VOICE_NOSRC = 0x0004; [NativeName(NativeNameType.Const, "XAUDIO2_VOICE_USEFILTER")] + [NativeName(NativeNameType.Value, "0x0008")] public const int XAudio2_VOICE_USEFILTER = 0x0008; [NativeName(NativeNameType.Const, "XAUDIO2_PLAY_TAILS")] + [NativeName(NativeNameType.Value, "0x0020")] public const int XAudio2_PLAY_TAILS = 0x0020; [NativeName(NativeNameType.Const, "XAUDIO2_END_OF_STREAM")] + [NativeName(NativeNameType.Value, "0x0040")] public const int XAudio2_END_OF_STREAM = 0x0040; [NativeName(NativeNameType.Const, "XAUDIO2_SEND_USEFILTER")] + [NativeName(NativeNameType.Value, "0x0080")] public const int XAudio2_SEND_USEFILTER = 0x0080; [NativeName(NativeNameType.Const, "XAUDIO2_VOICE_NOSAMPLESPLAYED")] + [NativeName(NativeNameType.Value, "0x0100")] public const int XAudio2_VOICE_NOSAMPLESPLAYED = 0x0100; [NativeName(NativeNameType.Const, "XAUDIO2_STOP_ENGINE_WHEN_IDLE")] + [NativeName(NativeNameType.Value, "0x2000")] public const int XAudio2_STOP_ENGINE_WHEN_IDLE = 0x2000; [NativeName(NativeNameType.Const, "XAUDIO2_1024_QUANTUM")] + [NativeName(NativeNameType.Value, "0x8000")] public const int XAudio2_1024_QUANTUM = 0x8000; [NativeName(NativeNameType.Const, "XAUDIO2_NO_VIRTUAL_AUDIO_CLIENT")] + [NativeName(NativeNameType.Value, "0x10000")] public const int XAudio2_NO_VIRTUAL_AUDIO_CLIENT = 0x10000; [NativeName(NativeNameType.Const, "XAUDIO2_DEFAULT_FILTER_ONEOVERQ")] + [NativeName(NativeNameType.Value, "1.0f")] public const float XAudio2_DEFAULT_FILTER_ONEOVERQ = 1.0f; [NativeName(NativeNameType.Const, "XAUDIO2_QUANTUM_NUMERATOR")] + [NativeName(NativeNameType.Value, "1")] public const int XAudio2_QUANTUM_NUMERATOR = 1; [NativeName(NativeNameType.Const, "XAUDIO2_QUANTUM_DENOMINATOR")] + [NativeName(NativeNameType.Value, "100")] public const int XAudio2_QUANTUM_DENOMINATOR = 100; [NativeName(NativeNameType.Const, "FACILITY_XAUDIO2")] + [NativeName(NativeNameType.Value, "0x896")] public const int FACILITY_XAudio2 = 0x896; [NativeName(NativeNameType.Const, "Processor1")] + [NativeName(NativeNameType.Value, "0x00000001")] public const int Processor1 = 0x00000001; [NativeName(NativeNameType.Const, "Processor2")] + [NativeName(NativeNameType.Value, "0x00000002")] public const int Processor2 = 0x00000002; [NativeName(NativeNameType.Const, "Processor3")] + [NativeName(NativeNameType.Value, "0x00000004")] public const int Processor3 = 0x00000004; [NativeName(NativeNameType.Const, "Processor4")] + [NativeName(NativeNameType.Value, "0x00000008")] public const int Processor4 = 0x00000008; [NativeName(NativeNameType.Const, "Processor5")] + [NativeName(NativeNameType.Value, "0x00000010")] public const int Processor5 = 0x00000010; [NativeName(NativeNameType.Const, "Processor6")] + [NativeName(NativeNameType.Value, "0x00000020")] public const int Processor6 = 0x00000020; [NativeName(NativeNameType.Const, "Processor7")] + [NativeName(NativeNameType.Value, "0x00000040")] public const int Processor7 = 0x00000040; [NativeName(NativeNameType.Const, "Processor8")] + [NativeName(NativeNameType.Value, "0x00000080")] public const int Processor8 = 0x00000080; [NativeName(NativeNameType.Const, "Processor9")] + [NativeName(NativeNameType.Value, "0x00000100")] public const int Processor9 = 0x00000100; [NativeName(NativeNameType.Const, "Processor10")] + [NativeName(NativeNameType.Value, "0x00000200")] public const int Processor10 = 0x00000200; [NativeName(NativeNameType.Const, "Processor11")] + [NativeName(NativeNameType.Value, "0x00000400")] public const int Processor11 = 0x00000400; [NativeName(NativeNameType.Const, "Processor12")] + [NativeName(NativeNameType.Value, "0x00000800")] public const int Processor12 = 0x00000800; [NativeName(NativeNameType.Const, "Processor13")] + [NativeName(NativeNameType.Value, "0x00001000")] public const int Processor13 = 0x00001000; [NativeName(NativeNameType.Const, "Processor14")] + [NativeName(NativeNameType.Value, "0x00002000")] public const int Processor14 = 0x00002000; [NativeName(NativeNameType.Const, "Processor15")] + [NativeName(NativeNameType.Value, "0x00004000")] public const int Processor15 = 0x00004000; [NativeName(NativeNameType.Const, "Processor16")] + [NativeName(NativeNameType.Value, "0x00008000")] public const int Processor16 = 0x00008000; [NativeName(NativeNameType.Const, "Processor17")] + [NativeName(NativeNameType.Value, "0x00010000")] public const int Processor17 = 0x00010000; [NativeName(NativeNameType.Const, "Processor18")] + [NativeName(NativeNameType.Value, "0x00020000")] public const int Processor18 = 0x00020000; [NativeName(NativeNameType.Const, "Processor19")] + [NativeName(NativeNameType.Value, "0x00040000")] public const int Processor19 = 0x00040000; [NativeName(NativeNameType.Const, "Processor20")] + [NativeName(NativeNameType.Value, "0x00080000")] public const int Processor20 = 0x00080000; [NativeName(NativeNameType.Const, "Processor21")] + [NativeName(NativeNameType.Value, "0x00100000")] public const int Processor21 = 0x00100000; [NativeName(NativeNameType.Const, "Processor22")] + [NativeName(NativeNameType.Value, "0x00200000")] public const int Processor22 = 0x00200000; [NativeName(NativeNameType.Const, "Processor23")] + [NativeName(NativeNameType.Value, "0x00400000")] public const int Processor23 = 0x00400000; [NativeName(NativeNameType.Const, "Processor24")] + [NativeName(NativeNameType.Value, "0x00800000")] public const int Processor24 = 0x00800000; [NativeName(NativeNameType.Const, "Processor25")] + [NativeName(NativeNameType.Value, "0x01000000")] public const int Processor25 = 0x01000000; [NativeName(NativeNameType.Const, "Processor26")] + [NativeName(NativeNameType.Value, "0x02000000")] public const int Processor26 = 0x02000000; [NativeName(NativeNameType.Const, "Processor27")] + [NativeName(NativeNameType.Value, "0x04000000")] public const int Processor27 = 0x04000000; [NativeName(NativeNameType.Const, "Processor28")] + [NativeName(NativeNameType.Value, "0x08000000")] public const int Processor28 = 0x08000000; [NativeName(NativeNameType.Const, "Processor29")] + [NativeName(NativeNameType.Value, "0x10000000")] public const int Processor29 = 0x10000000; [NativeName(NativeNameType.Const, "Processor30")] + [NativeName(NativeNameType.Value, "0x20000000")] public const int Processor30 = 0x20000000; [NativeName(NativeNameType.Const, "Processor31")] + [NativeName(NativeNameType.Value, "0x40000000")] public const int Processor31 = 0x40000000; [NativeName(NativeNameType.Const, "Processor32")] + [NativeName(NativeNameType.Value, "0x80000000")] public const uint Processor32 = 0x80000000; [NativeName(NativeNameType.Const, "XAUDIO2_ANY_PROCESSOR")] + [NativeName(NativeNameType.Value, "0xffffffff")] public const uint XAudio2_ANY_PROCESSOR = 0xffffffff; [NativeName(NativeNameType.Const, "XAUDIO2_USE_DEFAULT_PROCESSOR")] + [NativeName(NativeNameType.Value, "0x00000000")] public const int XAudio2_USE_DEFAULT_PROCESSOR = 0x00000000; [NativeName(NativeNameType.Const, "XAUDIO2_LOG_ERRORS")] + [NativeName(NativeNameType.Value, "0x0001")] public const int XAudio2_LOG_ERRORS = 0x0001; [NativeName(NativeNameType.Const, "XAUDIO2_LOG_WARNINGS")] + [NativeName(NativeNameType.Value, "0x0002")] public const int XAudio2_LOG_WARNINGS = 0x0002; [NativeName(NativeNameType.Const, "XAUDIO2_LOG_INFO")] + [NativeName(NativeNameType.Value, "0x0004")] public const int XAudio2_LOG_INFO = 0x0004; [NativeName(NativeNameType.Const, "XAUDIO2_LOG_DETAIL")] + [NativeName(NativeNameType.Value, "0x0008")] public const int XAudio2_LOG_DETAIL = 0x0008; [NativeName(NativeNameType.Const, "XAUDIO2_LOG_API_CALLS")] + [NativeName(NativeNameType.Value, "0x0010")] public const int XAudio2_LOG_API_CALLS = 0x0010; [NativeName(NativeNameType.Const, "XAUDIO2_LOG_FUNC_CALLS")] + [NativeName(NativeNameType.Value, "0x0020")] public const int XAudio2_LOG_FUNC_CALLS = 0x0020; [NativeName(NativeNameType.Const, "XAUDIO2_LOG_TIMING")] + [NativeName(NativeNameType.Value, "0x0040")] public const int XAudio2_LOG_TIMING = 0x0040; [NativeName(NativeNameType.Const, "XAUDIO2_LOG_LOCKS")] + [NativeName(NativeNameType.Value, "0x0080")] public const int XAudio2_LOG_LOCKS = 0x0080; [NativeName(NativeNameType.Const, "XAUDIO2_LOG_MEMORY")] + [NativeName(NativeNameType.Value, "0x0100")] public const int XAudio2_LOG_MEMORY = 0x0100; [NativeName(NativeNameType.Const, "XAUDIO2_LOG_STREAMING")] + [NativeName(NativeNameType.Value, "0x1000")] public const int XAudio2_LOG_STREAMING = 0x1000; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_FRAMERATE")] + [NativeName(NativeNameType.Value, "20000")] public const int XAudio2FX_REVERB_MIN_FRAMERATE = 20000; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_FRAMERATE")] + [NativeName(NativeNameType.Value, "48000")] public const int XAudio2FX_REVERB_MAX_FRAMERATE = 48000; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_WET_DRY_MIX")] + [NativeName(NativeNameType.Value, "0.0f")] public const float XAudio2FX_REVERB_MIN_WET_DRY_MIX = 0.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_REFLECTIONS_DELAY")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2FX_REVERB_MIN_REFLECTIONS_DELAY = 0; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_REVERB_DELAY")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2FX_REVERB_MIN_REVERB_DELAY = 0; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_REAR_DELAY")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2FX_REVERB_MIN_REAR_DELAY = 0; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_7POINT1_SIDE_DELAY")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2FX_REVERB_MIN_7POINT1_SIDE_DELAY = 0; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_7POINT1_REAR_DELAY")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2FX_REVERB_MIN_7POINT1_REAR_DELAY = 0; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_POSITION")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2FX_REVERB_MIN_POSITION = 0; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_DIFFUSION")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2FX_REVERB_MIN_DIFFUSION = 0; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_LOW_EQ_GAIN")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2FX_REVERB_MIN_LOW_EQ_GAIN = 0; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_LOW_EQ_CUTOFF")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2FX_REVERB_MIN_LOW_EQ_CUTOFF = 0; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_HIGH_EQ_GAIN")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2FX_REVERB_MIN_HIGH_EQ_GAIN = 0; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_HIGH_EQ_CUTOFF")] + [NativeName(NativeNameType.Value, "0")] public const int XAudio2FX_REVERB_MIN_HIGH_EQ_CUTOFF = 0; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_ROOM_FILTER_FREQ")] + [NativeName(NativeNameType.Value, "20.0f")] public const float XAudio2FX_REVERB_MIN_ROOM_FILTER_FREQ = 20.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_ROOM_FILTER_MAIN")] + [NativeName(NativeNameType.Value, "-100.0f")] public const float XAudio2FX_REVERB_MIN_ROOM_FILTER_MAIN = -100.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_ROOM_FILTER_HF")] + [NativeName(NativeNameType.Value, "-100.0f")] public const float XAudio2FX_REVERB_MIN_ROOM_FILTER_HF = -100.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_REFLECTIONS_GAIN")] + [NativeName(NativeNameType.Value, "-100.0f")] public const float XAudio2FX_REVERB_MIN_REFLECTIONS_GAIN = -100.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_REVERB_GAIN")] + [NativeName(NativeNameType.Value, "-100.0f")] public const float XAudio2FX_REVERB_MIN_REVERB_GAIN = -100.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_DECAY_TIME")] + [NativeName(NativeNameType.Value, "0.1f")] public const float XAudio2FX_REVERB_MIN_DECAY_TIME = 0.1f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_DENSITY")] + [NativeName(NativeNameType.Value, "0.0f")] public const float XAudio2FX_REVERB_MIN_DENSITY = 0.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MIN_ROOM_SIZE")] + [NativeName(NativeNameType.Value, "0.0f")] public const float XAudio2FX_REVERB_MIN_ROOM_SIZE = 0.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_WET_DRY_MIX")] + [NativeName(NativeNameType.Value, "100.0f")] public const float XAudio2FX_REVERB_MAX_WET_DRY_MIX = 100.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_REFLECTIONS_DELAY")] + [NativeName(NativeNameType.Value, "300")] public const int XAudio2FX_REVERB_MAX_REFLECTIONS_DELAY = 300; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_REVERB_DELAY")] + [NativeName(NativeNameType.Value, "85")] public const int XAudio2FX_REVERB_MAX_REVERB_DELAY = 85; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_REAR_DELAY")] + [NativeName(NativeNameType.Value, "5")] public const int XAudio2FX_REVERB_MAX_REAR_DELAY = 5; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_7POINT1_SIDE_DELAY")] + [NativeName(NativeNameType.Value, "5")] public const int XAudio2FX_REVERB_MAX_7POINT1_SIDE_DELAY = 5; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_7POINT1_REAR_DELAY")] + [NativeName(NativeNameType.Value, "20")] public const int XAudio2FX_REVERB_MAX_7POINT1_REAR_DELAY = 20; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_POSITION")] + [NativeName(NativeNameType.Value, "30")] public const int XAudio2FX_REVERB_MAX_POSITION = 30; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_DIFFUSION")] + [NativeName(NativeNameType.Value, "15")] public const int XAudio2FX_REVERB_MAX_DIFFUSION = 15; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_LOW_EQ_GAIN")] + [NativeName(NativeNameType.Value, "12")] public const int XAudio2FX_REVERB_MAX_LOW_EQ_GAIN = 12; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_LOW_EQ_CUTOFF")] + [NativeName(NativeNameType.Value, "9")] public const int XAudio2FX_REVERB_MAX_LOW_EQ_CUTOFF = 9; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_HIGH_EQ_GAIN")] + [NativeName(NativeNameType.Value, "8")] public const int XAudio2FX_REVERB_MAX_HIGH_EQ_GAIN = 8; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_HIGH_EQ_CUTOFF")] + [NativeName(NativeNameType.Value, "14")] public const int XAudio2FX_REVERB_MAX_HIGH_EQ_CUTOFF = 14; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_ROOM_FILTER_FREQ")] + [NativeName(NativeNameType.Value, "20000.0f")] public const float XAudio2FX_REVERB_MAX_ROOM_FILTER_FREQ = 20000.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_ROOM_FILTER_MAIN")] + [NativeName(NativeNameType.Value, "0.0f")] public const float XAudio2FX_REVERB_MAX_ROOM_FILTER_MAIN = 0.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_ROOM_FILTER_HF")] + [NativeName(NativeNameType.Value, "0.0f")] public const float XAudio2FX_REVERB_MAX_ROOM_FILTER_HF = 0.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_REFLECTIONS_GAIN")] + [NativeName(NativeNameType.Value, "20.0f")] public const float XAudio2FX_REVERB_MAX_REFLECTIONS_GAIN = 20.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_REVERB_GAIN")] + [NativeName(NativeNameType.Value, "20.0f")] public const float XAudio2FX_REVERB_MAX_REVERB_GAIN = 20.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_DENSITY")] + [NativeName(NativeNameType.Value, "100.0f")] public const float XAudio2FX_REVERB_MAX_DENSITY = 100.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_MAX_ROOM_SIZE")] + [NativeName(NativeNameType.Value, "100.0f")] public const float XAudio2FX_REVERB_MAX_ROOM_SIZE = 100.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_WET_DRY_MIX")] + [NativeName(NativeNameType.Value, "100.0f")] public const float XAudio2FX_REVERB_DEFAULT_WET_DRY_MIX = 100.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_DELAY")] + [NativeName(NativeNameType.Value, "5")] public const int XAudio2FX_REVERB_DEFAULT_REFLECTIONS_DELAY = 5; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_REVERB_DELAY")] + [NativeName(NativeNameType.Value, "5")] public const int XAudio2FX_REVERB_DEFAULT_REVERB_DELAY = 5; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_REAR_DELAY")] + [NativeName(NativeNameType.Value, "5")] public const int XAudio2FX_REVERB_DEFAULT_REAR_DELAY = 5; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_7POINT1_SIDE_DELAY")] + [NativeName(NativeNameType.Value, "5")] public const int XAudio2FX_REVERB_DEFAULT_7POINT1_SIDE_DELAY = 5; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_7POINT1_REAR_DELAY")] + [NativeName(NativeNameType.Value, "20")] public const int XAudio2FX_REVERB_DEFAULT_7POINT1_REAR_DELAY = 20; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_POSITION")] + [NativeName(NativeNameType.Value, "6")] public const int XAudio2FX_REVERB_DEFAULT_POSITION = 6; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_POSITION_MATRIX")] + [NativeName(NativeNameType.Value, "27")] public const int XAudio2FX_REVERB_DEFAULT_POSITION_MATRIX = 27; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_EARLY_DIFFUSION")] + [NativeName(NativeNameType.Value, "8")] public const int XAudio2FX_REVERB_DEFAULT_EARLY_DIFFUSION = 8; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_LATE_DIFFUSION")] + [NativeName(NativeNameType.Value, "8")] public const int XAudio2FX_REVERB_DEFAULT_LATE_DIFFUSION = 8; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_GAIN")] + [NativeName(NativeNameType.Value, "8")] public const int XAudio2FX_REVERB_DEFAULT_LOW_EQ_GAIN = 8; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_CUTOFF")] + [NativeName(NativeNameType.Value, "4")] public const int XAudio2FX_REVERB_DEFAULT_LOW_EQ_CUTOFF = 4; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_GAIN")] + [NativeName(NativeNameType.Value, "8")] public const int XAudio2FX_REVERB_DEFAULT_HIGH_EQ_GAIN = 8; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_CUTOFF")] + [NativeName(NativeNameType.Value, "4")] public const int XAudio2FX_REVERB_DEFAULT_HIGH_EQ_CUTOFF = 4; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_FREQ")] + [NativeName(NativeNameType.Value, "5000.0f")] public const float XAudio2FX_REVERB_DEFAULT_ROOM_FILTER_FREQ = 5000.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_MAIN")] + [NativeName(NativeNameType.Value, "0.0f")] public const float XAudio2FX_REVERB_DEFAULT_ROOM_FILTER_MAIN = 0.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_HF")] + [NativeName(NativeNameType.Value, "0.0f")] public const float XAudio2FX_REVERB_DEFAULT_ROOM_FILTER_HF = 0.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_GAIN")] + [NativeName(NativeNameType.Value, "0.0f")] public const float XAudio2FX_REVERB_DEFAULT_REFLECTIONS_GAIN = 0.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_REVERB_GAIN")] + [NativeName(NativeNameType.Value, "0.0f")] public const float XAudio2FX_REVERB_DEFAULT_REVERB_GAIN = 0.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_DECAY_TIME")] + [NativeName(NativeNameType.Value, "1.0f")] public const float XAudio2FX_REVERB_DEFAULT_DECAY_TIME = 1.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_DENSITY")] + [NativeName(NativeNameType.Value, "100.0f")] public const float XAudio2FX_REVERB_DEFAULT_DENSITY = 100.0f; [NativeName(NativeNameType.Const, "XAUDIO2FX_REVERB_DEFAULT_ROOM_SIZE")] + [NativeName(NativeNameType.Value, "100.0f")] public const float XAudio2FX_REVERB_DEFAULT_ROOM_SIZE = 100.0f; } diff --git a/Hexa.NET.XAudio2/Generated/Enumerations.cs b/Hexa.NET.XAudio2/Generated/Enumerations.cs index d331c54..fef96ed 100644 --- a/Hexa.NET.XAudio2/Generated/Enumerations.cs +++ b/Hexa.NET.XAudio2/Generated/Enumerations.cs @@ -1,223 +1,136 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -using System; -using HexaGen.Runtime; -using HexaGen.Runtime.COM; - -namespace Hexa.NET.XAudio2 -{ - /// - /// -------------------------------------------------------------------------
- /// Description: AudioClient share mode
- /// AUDCLNT_SHAREMODE_SHARED - The device will be opened in shared mode and use the
- /// WAS format.
- /// AUDCLNT_SHAREMODE_EXCLUSIVE - The device will be opened in exclusive mode and use the
- /// application specified format.
- ///
- [NativeName(NativeNameType.Enum, "_AUDCLNT_SHAREMODE")] - public enum AudclntSharemode - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AUDCLNT_SHAREMODE_SHARED")] - Shared = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AUDCLNT_SHAREMODE_EXCLUSIVE")] - Exclusive = unchecked(1), - - } - - /// - /// -------------------------------------------------------------------------
- /// Description: Audio stream categories
- /// ForegroundOnlyMedia - (deprecated for Win10) Music, Streaming audio
- /// BackgroundCapableMedia - (deprecated for Win10) Video with audio
- /// Communications - VOIP, chat, phone call
- /// Alerts - Alarm, Ring tones
- /// SoundEffects - Sound effects, clicks, dings
- /// GameEffects - Game sound effects
- /// GameMedia - Background audio for games
- /// GameChat - In game player chat
- /// Speech - Speech recognition
- /// Media - Music, Streaming audio
- /// Movie - Video with audio
- /// FarFieldSpeech - Capture of far field speech
- /// UniformSpeech - Uniform, device agnostic speech processing
- /// VoiceTyping - Dictation, typing by voice
- /// Other - All other streams (default)
- ///
- [NativeName(NativeNameType.Enum, "_AUDIO_STREAM_CATEGORY")] - public enum AudioStreamCategory - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_Other")] - Other = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_ForegroundOnlyMedia")] - ForegroundOnlyMedia = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_Communications")] - Communications = unchecked(3), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_Alerts")] - Alerts = unchecked(4), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_SoundEffects")] - SoundEffects = unchecked(5), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_GameEffects")] - GameEffects = unchecked(6), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_GameMedia")] - GameMedia = unchecked(7), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_GameChat")] - GameChat = unchecked(8), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_Speech")] - Speech = unchecked(9), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_Movie")] - Movie = unchecked(10), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_Media")] - Media = unchecked(11), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_FarFieldSpeech")] - FarFieldSpeech = unchecked(12), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_UniformSpeech")] - UniformSpeech = unchecked(13), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioCategory_VoiceTyping")] - VoiceTyping = unchecked(14), - - } - - /// - /// -------------------------------------------------------------------------
- /// Description: AudioSession State.
- /// AudioSessionStateInactive - The session has no active audio streams.
- /// AudioSessionStateActive - The session has active audio streams.
- /// AudioSessionStateExpired - The session is dormant.
- ///
- [NativeName(NativeNameType.Enum, "_AudioSessionState")] - public enum AudioSessionState - { - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioSessionStateInactive")] - Inactive = unchecked(0), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioSessionStateActive")] - Active = unchecked(1), - - /// - /// To be documented. - /// - [NativeName(NativeNameType.EnumItem, "AudioSessionStateExpired")] - Expired = unchecked(2), - - } - - /// - /// Used in XAUDIO2_FILTER_PARAMETERS below
- ///
- [NativeName(NativeNameType.Enum, "XAUDIO2_FILTER_TYPE")] - public enum XAudio2FilterType - { - /// - /// Attenuates frequencies above the cutoff frequency (state-variable filter).
- ///
- [NativeName(NativeNameType.EnumItem, "LowPassFilter")] - LowPassFilter = unchecked(0), - - /// - /// Attenuates frequencies outside a given range (state-variable filter).
- ///
- [NativeName(NativeNameType.EnumItem, "BandPassFilter")] - BandPassFilter = unchecked(1), - - /// - /// Attenuates frequencies below the cutoff frequency (state-variable filter).
- ///
- [NativeName(NativeNameType.EnumItem, "HighPassFilter")] - HighPassFilter = unchecked(2), - - /// - /// Attenuates frequencies inside a given range (state-variable filter).
- ///
- [NativeName(NativeNameType.EnumItem, "NotchFilter")] - NotchFilter = unchecked(3), - - /// - /// Attenuates frequencies above the cutoff frequency (one-pole filter, XAUDIO2_FILTER_PARAMETERS.OneOverQ has no effect)
- ///
- [NativeName(NativeNameType.EnumItem, "LowPassOnePoleFilter")] - LowPassOnePoleFilter = unchecked(4), - - /// - /// Attenuates frequencies below the cutoff frequency (one-pole filter, XAUDIO2_FILTER_PARAMETERS.OneOverQ has no effect)
- ///
- [NativeName(NativeNameType.EnumItem, "HighPassOnePoleFilter")] - HighPassOnePoleFilter = unchecked(5), - - } - -} +// ------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +// ------------------------------------------------------------------------------ + +using System; +using HexaGen.Runtime; +using HexaGen.Runtime.COM; + +namespace Hexa.NET.XAudio2 +{ + /// /// -------------------------------------------------------------------------
/// Description: AudioClient share mode
/// AUDCLNT_SHAREMODE_SHARED - The device will be opened in shared mode and use the
/// WAS format.
/// AUDCLNT_SHAREMODE_EXCLUSIVE - The device will be opened in exclusive mode and use the
/// application specified format.
///
[NativeName(NativeNameType.Enum, "_AUDCLNT_SHAREMODE")] + public enum AudclntSharemode + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AUDCLNT_SHAREMODE_SHARED")] + [NativeName(NativeNameType.Value, "0")] + Shared = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AUDCLNT_SHAREMODE_EXCLUSIVE")] + [NativeName(NativeNameType.Value, "1")] + Exclusive = unchecked(1), + + } + + /// /// -------------------------------------------------------------------------
/// Description: Audio stream categories
/// ForegroundOnlyMedia - (deprecated for Win10) Music, Streaming audio
/// BackgroundCapableMedia - (deprecated for Win10) Video with audio
/// Communications - VOIP, chat, phone call
/// Alerts - Alarm, Ring tones
/// SoundEffects - Sound effects, clicks, dings
/// GameEffects - Game sound effects
/// GameMedia - Background audio for games
/// GameChat - In game player chat
/// Speech - Speech recognition
/// Media - Music, Streaming audio
/// Movie - Video with audio
/// FarFieldSpeech - Capture of far field speech
/// UniformSpeech - Uniform, device agnostic speech processing
/// VoiceTyping - Dictation, typing by voice
/// Other - All other streams (default)
///
[NativeName(NativeNameType.Enum, "_AUDIO_STREAM_CATEGORY")] + public enum AudioStreamCategory + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_Other")] + [NativeName(NativeNameType.Value, "0")] + Other = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_ForegroundOnlyMedia")] + [NativeName(NativeNameType.Value, "1")] + ForegroundOnlyMedia = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_Communications")] + [NativeName(NativeNameType.Value, "3")] + Communications = unchecked(3), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_Alerts")] + [NativeName(NativeNameType.Value, "4")] + Alerts = unchecked(4), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_SoundEffects")] + [NativeName(NativeNameType.Value, "5")] + SoundEffects = unchecked(5), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_GameEffects")] + [NativeName(NativeNameType.Value, "6")] + GameEffects = unchecked(6), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_GameMedia")] + [NativeName(NativeNameType.Value, "7")] + GameMedia = unchecked(7), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_GameChat")] + [NativeName(NativeNameType.Value, "8")] + GameChat = unchecked(8), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_Speech")] + [NativeName(NativeNameType.Value, "9")] + Speech = unchecked(9), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_Movie")] + [NativeName(NativeNameType.Value, "10")] + Movie = unchecked(10), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_Media")] + [NativeName(NativeNameType.Value, "11")] + Media = unchecked(11), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_FarFieldSpeech")] + [NativeName(NativeNameType.Value, "12")] + FarFieldSpeech = unchecked(12), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_UniformSpeech")] + [NativeName(NativeNameType.Value, "13")] + UniformSpeech = unchecked(13), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioCategory_VoiceTyping")] + [NativeName(NativeNameType.Value, "14")] + VoiceTyping = unchecked(14), + + } + + /// /// -------------------------------------------------------------------------
/// Description: AudioSession State.
/// AudioSessionStateInactive - The session has no active audio streams.
/// AudioSessionStateActive - The session has active audio streams.
/// AudioSessionStateExpired - The session is dormant.
///
[NativeName(NativeNameType.Enum, "_AudioSessionState")] + public enum AudioSessionState + { + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioSessionStateInactive")] + [NativeName(NativeNameType.Value, "0")] + Inactive = unchecked(0), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioSessionStateActive")] + [NativeName(NativeNameType.Value, "1")] + Active = unchecked(1), + + /// /// To be documented. /// [NativeName(NativeNameType.EnumItem, "AudioSessionStateExpired")] + [NativeName(NativeNameType.Value, "2")] + Expired = unchecked(2), + + } + + /// /// Used in XAUDIO2_FILTER_PARAMETERS below
///
[NativeName(NativeNameType.Enum, "XAUDIO2_FILTER_TYPE")] + public enum XAudio2FilterType + { + /// /// Attenuates frequencies above the cutoff frequency (state-variable filter).
///
[NativeName(NativeNameType.EnumItem, "LowPassFilter")] + [NativeName(NativeNameType.Value, "0")] + LowPassFilter = unchecked(0), + + /// /// Attenuates frequencies outside a given range (state-variable filter).
///
[NativeName(NativeNameType.EnumItem, "BandPassFilter")] + [NativeName(NativeNameType.Value, "1")] + BandPassFilter = unchecked(1), + + /// /// Attenuates frequencies below the cutoff frequency (state-variable filter).
///
[NativeName(NativeNameType.EnumItem, "HighPassFilter")] + [NativeName(NativeNameType.Value, "2")] + HighPassFilter = unchecked(2), + + /// /// Attenuates frequencies inside a given range (state-variable filter).
///
[NativeName(NativeNameType.EnumItem, "NotchFilter")] + [NativeName(NativeNameType.Value, "3")] + NotchFilter = unchecked(3), + + /// /// Attenuates frequencies above the cutoff frequency (one-pole filter, XAUDIO2_FILTER_PARAMETERS.OneOverQ has no effect)
///
[NativeName(NativeNameType.EnumItem, "LowPassOnePoleFilter")] + [NativeName(NativeNameType.Value, "4")] + LowPassOnePoleFilter = unchecked(4), + + /// /// Attenuates frequencies below the cutoff frequency (one-pole filter, XAUDIO2_FILTER_PARAMETERS.OneOverQ has no effect)
///
[NativeName(NativeNameType.EnumItem, "HighPassOnePoleFilter")] + [NativeName(NativeNameType.Value, "5")] + HighPassOnePoleFilter = unchecked(5), + + } + +} diff --git a/Hexa.NET.XAudio2/Generated/Extensions.cs b/Hexa.NET.XAudio2/Generated/Extensions.cs index e1941e5..661d91e 100644 --- a/Hexa.NET.XAudio2/Generated/Extensions.cs +++ b/Hexa.NET.XAudio2/Generated/Extensions.cs @@ -19,44 +19,44 @@ public static unsafe class Extensions { /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] Guid* riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) + public static int QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] Guid* riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) { IXAudio2* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, riid, ppvObject); + int ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, riid, ppvObject); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) + public static int QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) { IXAudio2* handle = comObj.Handle; fixed (Guid* priid = &riid) { - HResult ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)priid, ppvObject); + int ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)priid, ppvObject); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject + public static int QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject { IXAudio2* handle = comObj.Handle; ppvObject = default; - HResult ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)(ComUtils.GuidPtrOf()), (void**)ppvObject.GetAddressOf()); + int ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)(ComUtils.GuidPtrOf()), (void**)ppvObject.GetAddressOf()); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject + public static int QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject { IXAudio2* handle = comObj.Handle; fixed (Guid* priid = &riid) { ppvObject = default; - HResult ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)priid, (void**)ppvObject.GetAddressOf()); + int ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)priid, (void**)ppvObject.GetAddressOf()); return ret; } } @@ -81,31 +81,31 @@ public static uint Release(this ComPtr comObj) /// /// To be documented. /// [NativeName(NativeNameType.Func, "RegisterForCallbacks")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult RegisterForCallbacks(this ComPtr comObj, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] IXAudio2EngineCallback* pCallback) + public static int RegisterForCallbacks(this ComPtr comObj, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] IXAudio2EngineCallback* pCallback) { IXAudio2* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, pCallback); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, pCallback); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "RegisterForCallbacks")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult RegisterForCallbacks(this ComPtr comObj, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] ref IXAudio2EngineCallback pCallback) + public static int RegisterForCallbacks(this ComPtr comObj, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] ref IXAudio2EngineCallback pCallback) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2EngineCallback* ppCallback = &pCallback) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, (IXAudio2EngineCallback*)ppCallback); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, (IXAudio2EngineCallback*)ppCallback); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "RegisterForCallbacks")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult RegisterForCallbacks(this ComPtr comObj, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] ComPtr pCallback) + public static int RegisterForCallbacks(this ComPtr comObj, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] ComPtr pCallback) { IXAudio2* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, (IXAudio2EngineCallback*)pCallback.Handle); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, (IXAudio2EngineCallback*)pCallback.Handle); return ret; } @@ -138,59 +138,59 @@ public static void UnregisterForCallbacks(this ComPtr comObj, [NativeN /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) { fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } } @@ -198,14 +198,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } } @@ -213,35 +213,35 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) { fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); return ret; } } @@ -249,26 +249,26 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); return ret; } } @@ -276,19 +276,19 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -297,7 +297,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); return ret; } } @@ -306,14 +306,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); return ret; } } @@ -321,26 +321,26 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -348,14 +348,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -363,14 +363,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -378,7 +378,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -387,7 +387,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -396,7 +396,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -405,7 +405,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -414,14 +414,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -429,19 +429,19 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -450,7 +450,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -459,14 +459,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -474,7 +474,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) @@ -483,7 +483,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -492,14 +492,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -507,7 +507,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -518,7 +518,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -528,7 +528,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -537,7 +537,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -546,26 +546,26 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -573,14 +573,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -588,14 +588,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -603,7 +603,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -612,7 +612,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -621,7 +621,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -630,7 +630,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -639,14 +639,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -654,19 +654,19 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -675,7 +675,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -684,14 +684,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -699,7 +699,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) @@ -708,7 +708,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -717,14 +717,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -732,7 +732,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -743,7 +743,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -753,7 +753,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -762,7 +762,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -771,14 +771,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (XAudio2VoiceSends* ppSendList = &pSendList) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -786,7 +786,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -795,7 +795,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -804,7 +804,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -813,7 +813,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -822,7 +822,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) @@ -831,7 +831,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -840,7 +840,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -851,7 +851,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -861,7 +861,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -872,7 +872,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -882,7 +882,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) @@ -891,7 +891,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -900,14 +900,14 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (XAudio2VoiceSends* ppSendList = &pSendList) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -915,7 +915,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -926,7 +926,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -936,7 +936,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -945,7 +945,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -954,7 +954,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) @@ -965,7 +965,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -975,7 +975,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) @@ -984,7 +984,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -993,7 +993,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -1006,7 +1006,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1017,7 +1017,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSourceVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -1028,7 +1028,7 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[5]))(handle, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1038,59 +1038,59 @@ public static HResult CreateSourceVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SubmixVoice** pppSubmixVoice = &ppSubmixVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSubmixVoice = &ppSubmixVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SubmixVoice** pppSubmixVoice = &ppSubmixVoice) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -1098,14 +1098,14 @@ public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSubmixVoice = &ppSubmixVoice) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -1113,26 +1113,26 @@ public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SubmixVoice** pppSubmixVoice = &ppSubmixVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1140,14 +1140,14 @@ public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSubmixVoice = &ppSubmixVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1155,14 +1155,14 @@ public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (XAudio2VoiceSends* ppSendList = &pSendList) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1170,7 +1170,7 @@ public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2SubmixVoice** pppSubmixVoice = &ppSubmixVoice) @@ -1179,7 +1179,7 @@ public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1188,7 +1188,7 @@ public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int CreateSubmixVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppSubmixVoice = &ppSubmixVoice) @@ -1197,7 +1197,7 @@ public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeNam { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1206,59 +1206,59 @@ public static HResult CreateSubmixVoice(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] IXAudio2MasteringVoice** ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public static int CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] IXAudio2MasteringVoice** ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, ppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, ppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref IXAudio2MasteringVoice* ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public static int CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref IXAudio2MasteringVoice* ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2MasteringVoice** pppMasteringVoice = &ppMasteringVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref ComPtr ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public static int CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref ComPtr ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppMasteringVoice = &ppMasteringVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] IXAudio2MasteringVoice** ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public static int CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] IXAudio2MasteringVoice** ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* handle = comObj.Handle; fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, ppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, ppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref IXAudio2MasteringVoice* ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public static int CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref IXAudio2MasteringVoice* ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* handle = comObj.Handle; fixed (IXAudio2MasteringVoice** pppMasteringVoice = &ppMasteringVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); return ret; } } @@ -1266,14 +1266,14 @@ public static HResult CreateMasteringVoice(this ComPtr comObj, [Native /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref ComPtr ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public static int CreateMasteringVoice(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref ComPtr ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* handle = comObj.Handle; fixed (ComPtr* pppMasteringVoice = &ppMasteringVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); return ret; } } @@ -1281,10 +1281,10 @@ public static HResult CreateMasteringVoice(this ComPtr comObj, [Native /// /// To be documented. /// [NativeName(NativeNameType.Func, "StartEngine")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult StartEngine(this ComPtr comObj) + public static int StartEngine(this ComPtr comObj) { IXAudio2* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle); return ret; } @@ -1298,10 +1298,10 @@ public static void StopEngine(this ComPtr comObj) /// /// To be documented. /// [NativeName(NativeNameType.Func, "CommitChanges")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CommitChanges(this ComPtr comObj, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int CommitChanges(this ComPtr comObj, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, operationSet); return ret; } @@ -1364,44 +1364,44 @@ public static void SetDebugConfiguration(this ComPtr comObj, [Nativ /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] Guid* riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) + public static int QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] Guid* riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) { IXAudio2Extension* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, riid, ppvObject); + int ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, riid, ppvObject); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) + public static int QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) { IXAudio2Extension* handle = comObj.Handle; fixed (Guid* priid = &riid) { - HResult ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)priid, ppvObject); + int ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)priid, ppvObject); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject + public static int QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject { IXAudio2Extension* handle = comObj.Handle; ppvObject = default; - HResult ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)(ComUtils.GuidPtrOf()), (void**)ppvObject.GetAddressOf()); + int ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)(ComUtils.GuidPtrOf()), (void**)ppvObject.GetAddressOf()); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject + public static int QueryInterface(this ComPtr comObj, [NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject { IXAudio2Extension* handle = comObj.Handle; fixed (Guid* priid = &riid) { ppvObject = default; - HResult ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)priid, (void**)ppvObject.GetAddressOf()); + int ret = ((delegate* unmanaged[Stdcall])(*handle->LpVtbl))(handle, (Guid*)priid, (void**)ppvObject.GetAddressOf()); return ret; } } @@ -1508,61 +1508,61 @@ public static void GetVoiceDetails(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) + public static int SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, pSendList); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, pSendList); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) + public static int SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) { IXAudio2Voice* handle = comObj.Handle; fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, (XAudio2VoiceSends*)ppSendList); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, (XAudio2VoiceSends*)ppSendList); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2Voice* handle = comObj.Handle; fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "EnableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult EnableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int EnableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, effectIndex, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "DisableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult DisableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int DisableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[4]))(handle, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[4]))(handle, effectIndex, operationSet); return ret; } @@ -1587,48 +1587,48 @@ public static void GetEffectState(this ComPtr comObj, [NativeName /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, effectIndex, pParameters, parametersByteSize, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, effectIndex, pParameters, parametersByteSize, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) + public static int GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, pParameters, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, pParameters, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject + public static int GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, (void*)pParameters.Handle, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, (void*)pParameters.Handle, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -1654,56 +1654,56 @@ public static void GetFilterParameters(this ComPtr comObj, [Nativ /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -1711,12 +1711,12 @@ public static HResult SetOutputFilterParameters(this ComPtr comOb /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -1786,10 +1786,10 @@ public static void GetOutputFilterParameters(this ComPtr comObj, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetVolume")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetVolume(this ComPtr comObj, [NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetVolume(this ComPtr comObj, [NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[12]))(handle, volume, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[12]))(handle, volume, operationSet); return ret; } @@ -1814,21 +1814,21 @@ public static void GetVolume(this ComPtr comObj, [NativeName(Nati /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, pVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, pVolumes, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; fixed (float* ppVolumes = &pVolumes) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, (float*)ppVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, (float*)ppVolumes, operationSet); return ret; } } @@ -1854,56 +1854,56 @@ public static void GetChannelVolumes(this ComPtr comObj, [NativeN /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -1911,12 +1911,12 @@ public static HResult SetOutputMatrix(this ComPtr comObj, [Native /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* handle = comObj.Handle; fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -2013,61 +2013,61 @@ public static void GetVoiceDetails(this ComPtr comObj, [Nat /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) + public static int SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, pSendList); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, pSendList); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) + public static int SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, (XAudio2VoiceSends*)ppSendList); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, (XAudio2VoiceSends*)ppSendList); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "EnableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult EnableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int EnableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, effectIndex, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "DisableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult DisableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int DisableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[4]))(handle, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[4]))(handle, effectIndex, operationSet); return ret; } @@ -2092,48 +2092,48 @@ public static void GetEffectState(this ComPtr comObj, [Nati /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, effectIndex, pParameters, parametersByteSize, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, effectIndex, pParameters, parametersByteSize, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) + public static int GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, pParameters, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, pParameters, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject + public static int GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, (void*)pParameters.Handle, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, (void*)pParameters.Handle, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -2159,56 +2159,56 @@ public static void GetFilterParameters(this ComPtr comObj, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -2216,12 +2216,12 @@ public static HResult SetOutputFilterParameters(this ComPtr /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -2291,10 +2291,10 @@ public static void GetOutputFilterParameters(this ComPtr co /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetVolume")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetVolume(this ComPtr comObj, [NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetVolume(this ComPtr comObj, [NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[12]))(handle, volume, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[12]))(handle, volume, operationSet); return ret; } @@ -2319,21 +2319,21 @@ public static void GetVolume(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, pVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, pVolumes, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (float* ppVolumes = &pVolumes) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, (float*)ppVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, (float*)ppVolumes, operationSet); return ret; } } @@ -2359,56 +2359,56 @@ public static void GetChannelVolumes(this ComPtr comObj, [N /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -2416,12 +2416,12 @@ public static HResult SetOutputMatrix(this ComPtr comObj, [ /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -2499,65 +2499,65 @@ public static void DestroyVoice(this ComPtr comObj) /// /// To be documented. /// [NativeName(NativeNameType.Func, "Start")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult Start(this ComPtr comObj, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int Start(this ComPtr comObj, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[19]))(handle, flags, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[19]))(handle, flags, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "Stop")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult Stop(this ComPtr comObj, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int Stop(this ComPtr comObj, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[20]))(handle, flags, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[20]))(handle, flags, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SubmitSourceBuffer")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SubmitSourceBuffer(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] XAudio2Buffer* pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] XAudio2BufferWma* pBufferWMA) + public static int SubmitSourceBuffer(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] XAudio2Buffer* pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] XAudio2BufferWma* pBufferWMA) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[21]))(handle, pBuffer, pBufferWMA); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[21]))(handle, pBuffer, pBufferWMA); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SubmitSourceBuffer")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SubmitSourceBuffer(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] ref XAudio2Buffer pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] XAudio2BufferWma* pBufferWMA) + public static int SubmitSourceBuffer(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] ref XAudio2Buffer pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] XAudio2BufferWma* pBufferWMA) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (XAudio2Buffer* ppBuffer = &pBuffer) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[21]))(handle, (XAudio2Buffer*)ppBuffer, pBufferWMA); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[21]))(handle, (XAudio2Buffer*)ppBuffer, pBufferWMA); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SubmitSourceBuffer")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SubmitSourceBuffer(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] XAudio2Buffer* pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] ref XAudio2BufferWma pBufferWMA) + public static int SubmitSourceBuffer(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] XAudio2Buffer* pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] ref XAudio2BufferWma pBufferWMA) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (XAudio2BufferWma* ppBufferWMA = &pBufferWMA) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[21]))(handle, pBuffer, (XAudio2BufferWma*)ppBufferWMA); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[21]))(handle, pBuffer, (XAudio2BufferWma*)ppBufferWMA); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SubmitSourceBuffer")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SubmitSourceBuffer(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] ref XAudio2Buffer pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] ref XAudio2BufferWma pBufferWMA) + public static int SubmitSourceBuffer(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] ref XAudio2Buffer pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] ref XAudio2BufferWma pBufferWMA) { IXAudio2SourceVoice* handle = comObj.Handle; fixed (XAudio2Buffer* ppBuffer = &pBuffer) { fixed (XAudio2BufferWma* ppBufferWMA = &pBufferWMA) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[21]))(handle, (XAudio2Buffer*)ppBuffer, (XAudio2BufferWma*)ppBufferWMA); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[21]))(handle, (XAudio2Buffer*)ppBuffer, (XAudio2BufferWma*)ppBufferWMA); return ret; } } @@ -2565,28 +2565,28 @@ public static HResult SubmitSourceBuffer(this ComPtr comObj /// /// To be documented. /// [NativeName(NativeNameType.Func, "FlushSourceBuffers")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult FlushSourceBuffers(this ComPtr comObj) + public static int FlushSourceBuffers(this ComPtr comObj) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[22]))(handle); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[22]))(handle); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "Discontinuity")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult Discontinuity(this ComPtr comObj) + public static int Discontinuity(this ComPtr comObj) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[23]))(handle); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[23]))(handle); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "ExitLoop")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult ExitLoop(this ComPtr comObj, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int ExitLoop(this ComPtr comObj, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[24]))(handle, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[24]))(handle, operationSet); return ret; } @@ -2611,10 +2611,10 @@ public static void GetState(this ComPtr comObj, [NativeName /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFrequencyRatio")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetFrequencyRatio(this ComPtr comObj, [NativeName(NativeNameType.Param, "Ratio")] [NativeName(NativeNameType.Type, "float")] float ratio, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetFrequencyRatio(this ComPtr comObj, [NativeName(NativeNameType.Param, "Ratio")] [NativeName(NativeNameType.Type, "float")] float ratio, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[26]))(handle, ratio, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[26]))(handle, ratio, operationSet); return ret; } @@ -2639,10 +2639,10 @@ public static void GetFrequencyRatio(this ComPtr comObj, [N /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetSourceSampleRate")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetSourceSampleRate(this ComPtr comObj, [NativeName(NativeNameType.Param, "NewSourceSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint newSourceSampleRate) + public static int SetSourceSampleRate(this ComPtr comObj, [NativeName(NativeNameType.Param, "NewSourceSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint newSourceSampleRate) { IXAudio2SourceVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[28]))(handle, newSourceSampleRate); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[28]))(handle, newSourceSampleRate); return ret; } @@ -2667,61 +2667,61 @@ public static void GetVoiceDetails(this ComPtr comObj, [Nat /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) + public static int SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, pSendList); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, pSendList); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) + public static int SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, (XAudio2VoiceSends*)ppSendList); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, (XAudio2VoiceSends*)ppSendList); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "EnableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult EnableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int EnableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, effectIndex, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "DisableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult DisableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int DisableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[4]))(handle, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[4]))(handle, effectIndex, operationSet); return ret; } @@ -2746,48 +2746,48 @@ public static void GetEffectState(this ComPtr comObj, [Nati /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, effectIndex, pParameters, parametersByteSize, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, effectIndex, pParameters, parametersByteSize, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) + public static int GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, pParameters, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, pParameters, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject + public static int GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, (void*)pParameters.Handle, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, (void*)pParameters.Handle, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -2813,56 +2813,56 @@ public static void GetFilterParameters(this ComPtr comObj, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -2870,12 +2870,12 @@ public static HResult SetOutputFilterParameters(this ComPtr /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -2945,10 +2945,10 @@ public static void GetOutputFilterParameters(this ComPtr co /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetVolume")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetVolume(this ComPtr comObj, [NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetVolume(this ComPtr comObj, [NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[12]))(handle, volume, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[12]))(handle, volume, operationSet); return ret; } @@ -2973,21 +2973,21 @@ public static void GetVolume(this ComPtr comObj, [NativeNam /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, pVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, pVolumes, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (float* ppVolumes = &pVolumes) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, (float*)ppVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, (float*)ppVolumes, operationSet); return ret; } } @@ -3013,56 +3013,56 @@ public static void GetChannelVolumes(this ComPtr comObj, [N /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -3070,12 +3070,12 @@ public static HResult SetOutputMatrix(this ComPtr comObj, [ /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* handle = comObj.Handle; fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -3172,61 +3172,61 @@ public static void GetVoiceDetails(this ComPtr comObj, [ /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) + public static int SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, pSendList); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, pSendList); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) + public static int SetOutputVoices(this ComPtr comObj, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, (XAudio2VoiceSends*)ppSendList); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[1]))(handle, (XAudio2VoiceSends*)ppSendList); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public static int SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public static int SetEffectChain(this ComPtr comObj, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "EnableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult EnableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int EnableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[3]))(handle, effectIndex, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "DisableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult DisableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int DisableEffect(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[4]))(handle, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[4]))(handle, effectIndex, operationSet); return ret; } @@ -3251,48 +3251,48 @@ public static void GetEffectState(this ComPtr comObj, [N /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, effectIndex, pParameters, parametersByteSize, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, effectIndex, pParameters, parametersByteSize, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) + public static int GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, pParameters, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, pParameters, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject + public static int GetEffectParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, (void*)pParameters.Handle, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[7]))(handle, effectIndex, (void*)pParameters.Handle, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[8]))(handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -3318,56 +3318,56 @@ public static void GetFilterParameters(this ComPtr comOb /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -3375,12 +3375,12 @@ public static HResult SetOutputFilterParameters(this ComPtr /// To be documented. ///
[NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputFilterParameters(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[10]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -3450,10 +3450,10 @@ public static void GetOutputFilterParameters(this ComPtr /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetVolume")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetVolume(this ComPtr comObj, [NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetVolume(this ComPtr comObj, [NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[12]))(handle, volume, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[12]))(handle, volume, operationSet); return ret; } @@ -3478,21 +3478,21 @@ public static void GetVolume(this ComPtr comObj, [Native /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, pVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, pVolumes, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetChannelVolumes(this ComPtr comObj, [NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (float* ppVolumes = &pVolumes) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, (float*)ppVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[14]))(handle, channels, (float*)ppVolumes, operationSet); return ret; } } @@ -3518,56 +3518,56 @@ public static void GetChannelVolumes(this ComPtr comObj, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -3575,12 +3575,12 @@ public static HResult SetOutputMatrix(this ComPtr comObj /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public static int SetOutputMatrix(this ComPtr comObj, [NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[16]))(handle, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -3658,21 +3658,21 @@ public static void DestroyVoice(this ComPtr comObj) /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetChannelMask")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult GetChannelMask(this ComPtr comObj, [NativeName(NativeNameType.Param, "pChannelmask")] [NativeName(NativeNameType.Type, "DWORD*")] uint* pChannelmask) + public static int GetChannelMask(this ComPtr comObj, [NativeName(NativeNameType.Param, "pChannelmask")] [NativeName(NativeNameType.Type, "DWORD*")] uint* pChannelmask) { IXAudio2MasteringVoice* handle = comObj.Handle; - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[19]))(handle, pChannelmask); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[19]))(handle, pChannelmask); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetChannelMask")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult GetChannelMask(this ComPtr comObj, [NativeName(NativeNameType.Param, "pChannelmask")] [NativeName(NativeNameType.Type, "DWORD*")] ref uint pChannelmask) + public static int GetChannelMask(this ComPtr comObj, [NativeName(NativeNameType.Param, "pChannelmask")] [NativeName(NativeNameType.Type, "DWORD*")] ref uint pChannelmask) { IXAudio2MasteringVoice* handle = comObj.Handle; fixed (uint* ppChannelmask = &pChannelmask) { - HResult ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[19]))(handle, (uint*)ppChannelmask); + int ret = ((delegate* unmanaged[Stdcall])(handle->LpVtbl[19]))(handle, (uint*)ppChannelmask); return ret; } } @@ -3695,10 +3695,10 @@ public static void OnProcessingPassEnd(this ComPtr comOb /// /// To be documented. /// [NativeName(NativeNameType.Func, "OnCriticalError")] [return: NativeName(NativeNameType.Type, "void")] - public static void OnCriticalError(this ComPtr comObj, [NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] HResult error) + public static void OnCriticalError(this ComPtr comObj, [NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] int error) { IXAudio2EngineCallback* handle = comObj.Handle; - ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, error); + ((delegate* unmanaged[Stdcall])(handle->LpVtbl[2]))(handle, error); } /// /// To be documented. /// [NativeName(NativeNameType.Func, "OnVoiceProcessingPassStart")] @@ -3775,18 +3775,18 @@ public static void OnLoopEnd(this ComPtr comObj, [Nati /// /// To be documented. /// [NativeName(NativeNameType.Func, "OnVoiceError")] [return: NativeName(NativeNameType.Type, "void")] - public static void OnVoiceError(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBufferContext")] [NativeName(NativeNameType.Type, "void*")] void* pBufferContext, [NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] HResult error) + public static void OnVoiceError(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBufferContext")] [NativeName(NativeNameType.Type, "void*")] void* pBufferContext, [NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] int error) { IXAudio2VoiceCallback* handle = comObj.Handle; - ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, pBufferContext, error); + ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, pBufferContext, error); } /// /// To be documented. /// [NativeName(NativeNameType.Func, "OnVoiceError")] [return: NativeName(NativeNameType.Type, "void")] - public static void OnVoiceError(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBufferContext")] [NativeName(NativeNameType.Type, "void*")] ComPtr pBufferContext, [NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] HResult error) where T : unmanaged, IComObject, IComObject + public static void OnVoiceError(this ComPtr comObj, [NativeName(NativeNameType.Param, "pBufferContext")] [NativeName(NativeNameType.Type, "void*")] ComPtr pBufferContext, [NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] int error) where T : unmanaged, IComObject, IComObject { IXAudio2VoiceCallback* handle = comObj.Handle; - ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (void*)pBufferContext.Handle, error); + ((delegate* unmanaged[Stdcall])(handle->LpVtbl[6]))(handle, (void*)pBufferContext.Handle, error); } } diff --git a/Hexa.NET.XAudio2/Generated/Functions.cs b/Hexa.NET.XAudio2/Generated/Functions.cs index fbac920..74af381 100644 --- a/Hexa.NET.XAudio2/Generated/Functions.cs +++ b/Hexa.NET.XAudio2/Generated/Functions.cs @@ -24,72 +24,32 @@ public unsafe partial class XAudio2 /// [NativeName(NativeNameType.Func, "XAudio2CreateWithVersionInfo")] [return: NativeName(NativeNameType.Type, "HRESULT")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "XAudio2CreateWithVersionInfo")] - internal static extern HResult XAudio2CreateWithVersionInfoNative([NativeName(NativeNameType.Param, "ppXAudio2")] [NativeName(NativeNameType.Type, "IXAudio2**")] IXAudio2** ppXAudio2, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "XAudio2Processor")] [NativeName(NativeNameType.Type, "XAUDIO2_PROCESSOR")] uint xAudio2Processor, [NativeName(NativeNameType.Param, "ntddiVersion")] [NativeName(NativeNameType.Type, "DWORD")] uint ntddiVersion); + [LibraryImport(LibName, EntryPoint = "XAudio2CreateWithVersionInfo")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int XAudio2CreateWithVersionInfoNative([NativeName(NativeNameType.Param, "ppXAudio2")] [NativeName(NativeNameType.Type, "IXAudio2**")] IXAudio2** ppXAudio2, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "XAudio2Processor")] [NativeName(NativeNameType.Type, "XAUDIO2_PROCESSOR")] uint xAudio2Processor, [NativeName(NativeNameType.Param, "ntddiVersion")] [NativeName(NativeNameType.Type, "DWORD")] uint ntddiVersion); /// /// To be documented. /// [NativeName(NativeNameType.Func, "XAudio2CreateWithVersionInfo")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult XAudio2CreateWithVersionInfo([NativeName(NativeNameType.Param, "ppXAudio2")] [NativeName(NativeNameType.Type, "IXAudio2**")] IXAudio2** ppXAudio2, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "XAudio2Processor")] [NativeName(NativeNameType.Type, "XAUDIO2_PROCESSOR")] uint xAudio2Processor, [NativeName(NativeNameType.Param, "ntddiVersion")] [NativeName(NativeNameType.Type, "DWORD")] uint ntddiVersion) + public static int XAudio2CreateWithVersionInfo([NativeName(NativeNameType.Param, "ppXAudio2")] [NativeName(NativeNameType.Type, "IXAudio2**")] IXAudio2** ppXAudio2, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "XAudio2Processor")] [NativeName(NativeNameType.Type, "XAUDIO2_PROCESSOR")] uint xAudio2Processor, [NativeName(NativeNameType.Param, "ntddiVersion")] [NativeName(NativeNameType.Type, "DWORD")] uint ntddiVersion) { - HResult ret = XAudio2CreateWithVersionInfoNative(ppXAudio2, flags, xAudio2Processor, ntddiVersion); + int ret = XAudio2CreateWithVersionInfoNative(ppXAudio2, flags, xAudio2Processor, ntddiVersion); return ret; } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "XAudio2CreateWithVersionInfo")] - [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult XAudio2CreateWithVersionInfo([NativeName(NativeNameType.Param, "ppXAudio2")] [NativeName(NativeNameType.Type, "IXAudio2**")] ref IXAudio2* ppXAudio2, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "XAudio2Processor")] [NativeName(NativeNameType.Type, "XAUDIO2_PROCESSOR")] uint xAudio2Processor, [NativeName(NativeNameType.Param, "ntddiVersion")] [NativeName(NativeNameType.Type, "DWORD")] uint ntddiVersion) - { - fixed (IXAudio2** pppXAudio2 = &ppXAudio2) - { - HResult ret = XAudio2CreateWithVersionInfoNative((IXAudio2**)pppXAudio2, flags, xAudio2Processor, ntddiVersion); - return ret; - } - } - - /// /// To be documented. /// [NativeName(NativeNameType.Func, "XAudio2CreateWithVersionInfo")] - [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult XAudio2CreateWithVersionInfo([NativeName(NativeNameType.Param, "ppXAudio2")] [NativeName(NativeNameType.Type, "IXAudio2**")] ref ComPtr ppXAudio2, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "XAudio2Processor")] [NativeName(NativeNameType.Type, "XAUDIO2_PROCESSOR")] uint xAudio2Processor, [NativeName(NativeNameType.Param, "ntddiVersion")] [NativeName(NativeNameType.Type, "DWORD")] uint ntddiVersion) - { - fixed (ComPtr* pppXAudio2 = &ppXAudio2) - { - HResult ret = XAudio2CreateWithVersionInfoNative((IXAudio2**)pppXAudio2, flags, xAudio2Processor, ntddiVersion); - return ret; - } - } - /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateAudioVolumeMeter")] [return: NativeName(NativeNameType.Type, "HRESULT")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "CreateAudioVolumeMeter")] - internal static extern HResult CreateAudioVolumeMeterNative([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] IUnknown** ppApo); - - /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateAudioVolumeMeter")] - [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateAudioVolumeMeter([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] IUnknown** ppApo) - { - HResult ret = CreateAudioVolumeMeterNative(ppApo); - return ret; - } - - /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateAudioVolumeMeter")] - [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateAudioVolumeMeter([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] ref IUnknown* ppApo) - { - fixed (IUnknown** pppApo = &ppApo) - { - HResult ret = CreateAudioVolumeMeterNative((IUnknown**)pppApo); - return ret; - } - } + [LibraryImport(LibName, EntryPoint = "CreateAudioVolumeMeter")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int CreateAudioVolumeMeterNative([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] IUnknown** ppApo); /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateAudioVolumeMeter")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateAudioVolumeMeter([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] out ComPtr ppApo) + public static int CreateAudioVolumeMeter([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] IUnknown** ppApo) { - ppApo = default; - HResult ret = CreateAudioVolumeMeterNative((IUnknown**)ppApo.GetAddressOf()); + int ret = CreateAudioVolumeMeterNative(ppApo); return ret; } @@ -98,34 +58,15 @@ public static HResult CreateAudioVolumeMeter([NativeName(NativeNameType.Param, " /// [NativeName(NativeNameType.Func, "CreateAudioReverb")] [return: NativeName(NativeNameType.Type, "HRESULT")] - [DllImport(LibName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "CreateAudioReverb")] - internal static extern HResult CreateAudioReverbNative([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] IUnknown** ppApo); - - /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateAudioReverb")] - [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateAudioReverb([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] IUnknown** ppApo) - { - HResult ret = CreateAudioReverbNative(ppApo); - return ret; - } - - /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateAudioReverb")] - [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateAudioReverb([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] ref IUnknown* ppApo) - { - fixed (IUnknown** pppApo = &ppApo) - { - HResult ret = CreateAudioReverbNative((IUnknown**)pppApo); - return ret; - } - } + [LibraryImport(LibName, EntryPoint = "CreateAudioReverb")] + [UnmanagedCallConv(CallConvs = new Type[] {typeof(System.Runtime.CompilerServices.CallConvCdecl)})] + internal static partial int CreateAudioReverbNative([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] IUnknown** ppApo); /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateAudioReverb")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public static HResult CreateAudioReverb([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] out ComPtr ppApo) + public static int CreateAudioReverb([NativeName(NativeNameType.Param, "ppApo")] [NativeName(NativeNameType.Type, "IUnknown**")] IUnknown** ppApo) { - ppApo = default; - HResult ret = CreateAudioReverbNative((IUnknown**)ppApo.GetAddressOf()); + int ret = CreateAudioReverbNative(ppApo); return ret; } diff --git a/Hexa.NET.XAudio2/Generated/Structures.cs b/Hexa.NET.XAudio2/Generated/Structures.cs index ff7cb52..f1c1e31 100644 --- a/Hexa.NET.XAudio2/Generated/Structures.cs +++ b/Hexa.NET.XAudio2/Generated/Structures.cs @@ -34,44 +34,44 @@ public unsafe IXAudio2 (void** lpVtbl = null) /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] Guid* riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) + public readonly unsafe int QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] Guid* riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, riid, ppvObject); + int ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, riid, ppvObject); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) + public readonly unsafe int QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (Guid* priid = &riid) { - HResult ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)priid, ppvObject); + int ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)priid, ppvObject); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult QueryInterface([NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject + public readonly unsafe int QueryInterface([NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); ppvObject = default; - HResult ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)(ComUtils.GuidPtrOf()), (void**)ppvObject.GetAddressOf()); + int ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)(ComUtils.GuidPtrOf()), (void**)ppvObject.GetAddressOf()); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject + public readonly unsafe int QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (Guid* priid = &riid) { ppvObject = default; - HResult ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)priid, (void**)ppvObject.GetAddressOf()); + int ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)priid, (void**)ppvObject.GetAddressOf()); return ret; } } @@ -96,31 +96,31 @@ public readonly unsafe uint Release() /// /// To be documented. /// [NativeName(NativeNameType.Func, "RegisterForCallbacks")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult RegisterForCallbacks([NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] IXAudio2EngineCallback* pCallback) + public readonly unsafe int RegisterForCallbacks([NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] IXAudio2EngineCallback* pCallback) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, pCallback); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, pCallback); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "RegisterForCallbacks")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult RegisterForCallbacks([NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] ref IXAudio2EngineCallback pCallback) + public readonly unsafe int RegisterForCallbacks([NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] ref IXAudio2EngineCallback pCallback) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2EngineCallback* ppCallback = &pCallback) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, (IXAudio2EngineCallback*)ppCallback); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, (IXAudio2EngineCallback*)ppCallback); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "RegisterForCallbacks")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult RegisterForCallbacks([NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] ComPtr pCallback) + public readonly unsafe int RegisterForCallbacks([NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2EngineCallback*")] ComPtr pCallback) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, (IXAudio2EngineCallback*)pCallback.Handle); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, (IXAudio2EngineCallback*)pCallback.Handle); return ret; } @@ -153,59 +153,59 @@ public readonly unsafe void UnregisterForCallbacks([NativeName(NativeNameType.Pa /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) { fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } } @@ -213,14 +213,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, pEffectChain); return ret; } } @@ -228,35 +228,35 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) { fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); return ret; } } @@ -264,26 +264,26 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); return ret; } } @@ -291,19 +291,19 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -312,7 +312,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, pEffectChain); return ret; } } @@ -321,14 +321,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, pEffectChain); return ret; } } @@ -336,26 +336,26 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -363,14 +363,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -378,14 +378,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -393,7 +393,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -402,7 +402,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -411,7 +411,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -420,7 +420,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -429,14 +429,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -444,19 +444,19 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -465,7 +465,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -474,14 +474,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -489,7 +489,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) @@ -498,7 +498,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -507,14 +507,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -522,7 +522,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -533,7 +533,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -543,7 +543,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -552,7 +552,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -561,26 +561,26 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -588,14 +588,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -603,14 +603,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -618,7 +618,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -627,7 +627,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -636,7 +636,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -645,7 +645,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -654,14 +654,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -669,19 +669,19 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -690,7 +690,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -699,14 +699,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -714,7 +714,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) @@ -723,7 +723,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -732,14 +732,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -747,7 +747,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -758,7 +758,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -768,7 +768,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -777,7 +777,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -786,14 +786,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2VoiceSends* ppSendList = &pSendList) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -801,7 +801,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -810,7 +810,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -819,7 +819,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -828,7 +828,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -837,7 +837,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) @@ -846,7 +846,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -855,7 +855,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -866,7 +866,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -876,7 +876,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] IXAudio2VoiceCallback* pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -887,7 +887,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, pCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -897,7 +897,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2VoiceCallback* ppCallback = &pCallback) @@ -906,7 +906,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -915,14 +915,14 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2VoiceSends* ppSendList = &pSendList) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -930,7 +930,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -941,7 +941,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -951,7 +951,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] WaveFormatEx* pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -960,7 +960,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, pSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -969,7 +969,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) @@ -980,7 +980,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -990,7 +990,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] IXAudio2SourceVoice** ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (WaveFormatEx* ppSourceFormat = &pSourceFormat) @@ -999,7 +999,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, ppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1008,7 +1008,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref IXAudio2SourceVoice* ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ref IXAudio2VoiceCallback pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SourceVoice** pppSourceVoice = &ppSourceVoice) @@ -1021,7 +1021,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)ppCallback, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1032,7 +1032,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSourceVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSourceVoice([NativeName(NativeNameType.Param, "ppSourceVoice")] [NativeName(NativeNameType.Type, "IXAudio2SourceVoice**")] ref ComPtr ppSourceVoice, [NativeName(NativeNameType.Param, "pSourceFormat")] [NativeName(NativeNameType.Type, "const WAVEFORMATEX*")] ref WaveFormatEx pSourceFormat, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "MaxFrequencyRatio")] [NativeName(NativeNameType.Type, "float")] float maxFrequencyRatio, [NativeName(NativeNameType.Param, "pCallback")] [NativeName(NativeNameType.Type, "IXAudio2VoiceCallback*")] ComPtr pCallback, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSourceVoice = &ppSourceVoice) @@ -1043,7 +1043,7 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[5]))(ptr, (IXAudio2SourceVoice**)pppSourceVoice, (WaveFormatEx*)ppSourceFormat, flags, maxFrequencyRatio, (IXAudio2VoiceCallback*)pCallback.Handle, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1053,59 +1053,59 @@ public readonly unsafe HResult CreateSourceVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SubmixVoice** pppSubmixVoice = &ppSubmixVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSubmixVoice = &ppSubmixVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SubmixVoice** pppSubmixVoice = &ppSubmixVoice) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -1113,14 +1113,14 @@ public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSubmixVoice = &ppSubmixVoice) { fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, pEffectChain); return ret; } } @@ -1128,26 +1128,26 @@ public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SubmixVoice** pppSubmixVoice = &ppSubmixVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1155,14 +1155,14 @@ public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSubmixVoice = &ppSubmixVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, pSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1170,14 +1170,14 @@ public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] IXAudio2SubmixVoice** ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2VoiceSends* ppSendList = &pSendList) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, ppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1185,7 +1185,7 @@ public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref IXAudio2SubmixVoice* ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2SubmixVoice** pppSubmixVoice = &ppSubmixVoice) @@ -1194,7 +1194,7 @@ public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1203,7 +1203,7 @@ public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateSubmixVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int CreateSubmixVoice([NativeName(NativeNameType.Param, "ppSubmixVoice")] [NativeName(NativeNameType.Type, "IXAudio2SubmixVoice**")] ref ComPtr ppSubmixVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "ProcessingStage")] [NativeName(NativeNameType.Type, "UINT32")] uint processingStage, [NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppSubmixVoice = &ppSubmixVoice) @@ -1212,7 +1212,7 @@ public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Para { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (IXAudio2SubmixVoice**)pppSubmixVoice, inputChannels, inputSampleRate, flags, processingStage, (XAudio2VoiceSends*)ppSendList, (XAudio2EffectChain*)ppEffectChain); return ret; } } @@ -1221,59 +1221,59 @@ public readonly unsafe HResult CreateSubmixVoice([NativeName(NativeNameType.Para /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] IXAudio2MasteringVoice** ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public readonly unsafe int CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] IXAudio2MasteringVoice** ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, ppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, ppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref IXAudio2MasteringVoice* ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public readonly unsafe int CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref IXAudio2MasteringVoice* ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2MasteringVoice** pppMasteringVoice = &ppMasteringVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref ComPtr ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public readonly unsafe int CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref ComPtr ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppMasteringVoice = &ppMasteringVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, pEffectChain, streamCategory); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] IXAudio2MasteringVoice** ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public readonly unsafe int CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] IXAudio2MasteringVoice** ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, ppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, ppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref IXAudio2MasteringVoice* ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public readonly unsafe int CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref IXAudio2MasteringVoice* ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2MasteringVoice** pppMasteringVoice = &ppMasteringVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); return ret; } } @@ -1281,14 +1281,14 @@ public readonly unsafe HResult CreateMasteringVoice([NativeName(NativeNameType.P /// /// To be documented. /// [NativeName(NativeNameType.Func, "CreateMasteringVoice")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref ComPtr ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) + public readonly unsafe int CreateMasteringVoice([NativeName(NativeNameType.Param, "ppMasteringVoice")] [NativeName(NativeNameType.Type, "IXAudio2MasteringVoice**")] ref ComPtr ppMasteringVoice, [NativeName(NativeNameType.Param, "InputChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint inputChannels, [NativeName(NativeNameType.Param, "InputSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint inputSampleRate, [NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "szDeviceId")] [NativeName(NativeNameType.Type, "LPCWSTR")] char* szDeviceId, [NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain, [NativeName(NativeNameType.Param, "StreamCategory")] [NativeName(NativeNameType.Type, "AUDIO_STREAM_CATEGORY")] AudioStreamCategory streamCategory) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (ComPtr* pppMasteringVoice = &ppMasteringVoice) { fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, (IXAudio2MasteringVoice**)pppMasteringVoice, inputChannels, inputSampleRate, flags, szDeviceId, (XAudio2EffectChain*)ppEffectChain, streamCategory); return ret; } } @@ -1296,10 +1296,10 @@ public readonly unsafe HResult CreateMasteringVoice([NativeName(NativeNameType.P /// /// To be documented. /// [NativeName(NativeNameType.Func, "StartEngine")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult StartEngine() + public readonly unsafe int StartEngine() { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr); return ret; } @@ -1313,10 +1313,10 @@ public readonly unsafe void StopEngine() /// /// To be documented. /// [NativeName(NativeNameType.Func, "CommitChanges")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult CommitChanges([NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int CommitChanges([NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2* ptr = (IXAudio2*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, operationSet); return ret; } @@ -1407,44 +1407,44 @@ public unsafe IXAudio2Extension (void** lpVtbl = null) /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] Guid* riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) + public readonly unsafe int QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] Guid* riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) { IXAudio2Extension* ptr = (IXAudio2Extension*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, riid, ppvObject); + int ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, riid, ppvObject); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) + public readonly unsafe int QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] void** ppvObject) { IXAudio2Extension* ptr = (IXAudio2Extension*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (Guid* priid = &riid) { - HResult ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)priid, ppvObject); + int ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)priid, ppvObject); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult QueryInterface([NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject + public readonly unsafe int QueryInterface([NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject { IXAudio2Extension* ptr = (IXAudio2Extension*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); ppvObject = default; - HResult ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)(ComUtils.GuidPtrOf()), (void**)ppvObject.GetAddressOf()); + int ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)(ComUtils.GuidPtrOf()), (void**)ppvObject.GetAddressOf()); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "QueryInterface")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject + public readonly unsafe int QueryInterface([NativeName(NativeNameType.Param, "riid")] [NativeName(NativeNameType.Type, "const IID&")] ref Guid riid, [NativeName(NativeNameType.Param, "ppvObject")] [NativeName(NativeNameType.Type, "void**")] out ComPtr ppvObject) where T : unmanaged, IComObject, IComObject { IXAudio2Extension* ptr = (IXAudio2Extension*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (Guid* priid = &riid) { ppvObject = default; - HResult ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)priid, (void**)ppvObject.GetAddressOf()); + int ret = ((delegate* unmanaged[Stdcall])(*LpVtbl))(ptr, (Guid*)priid, (void**)ppvObject.GetAddressOf()); return ret; } } @@ -1576,61 +1576,61 @@ public readonly unsafe void GetVoiceDetails([NativeName(NativeNameType.Param, "p /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) + public readonly unsafe int SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, pSendList); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, pSendList); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) + public readonly unsafe int SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, (XAudio2VoiceSends*)ppSendList); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, (XAudio2VoiceSends*)ppSendList); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "EnableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult EnableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int EnableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, effectIndex, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "DisableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult DisableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int DisableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[4]))(ptr, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[4]))(ptr, effectIndex, operationSet); return ret; } @@ -1655,48 +1655,48 @@ public readonly unsafe void GetEffectState([NativeName(NativeNameType.Param, "Ef /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, effectIndex, pParameters, parametersByteSize, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, effectIndex, pParameters, parametersByteSize, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) + public readonly unsafe int GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, pParameters, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, pParameters, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject + public readonly unsafe int GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, (void*)pParameters.Handle, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, (void*)pParameters.Handle, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -1722,56 +1722,56 @@ public readonly unsafe void GetFilterParameters([NativeName(NativeNameType.Param /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -1779,12 +1779,12 @@ public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameT /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -1854,10 +1854,10 @@ public readonly unsafe void GetOutputFilterParameters([NativeName(NativeNameType /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetVolume")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetVolume([NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetVolume([NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[12]))(ptr, volume, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[12]))(ptr, volume, operationSet); return ret; } @@ -1882,21 +1882,21 @@ public readonly unsafe void GetVolume([NativeName(NativeNameType.Param, "pVolume /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, pVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, pVolumes, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppVolumes = &pVolumes) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, (float*)ppVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, (float*)ppVolumes, operationSet); return ret; } } @@ -1922,56 +1922,56 @@ public readonly unsafe void GetChannelVolumes([NativeName(NativeNameType.Param, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -1979,12 +1979,12 @@ public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2Voice* ptr = (IXAudio2Voice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -2101,61 +2101,61 @@ public readonly unsafe void GetVoiceDetails([NativeName(NativeNameType.Param, "p /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) + public readonly unsafe int SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, pSendList); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, pSendList); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) + public readonly unsafe int SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, (XAudio2VoiceSends*)ppSendList); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, (XAudio2VoiceSends*)ppSendList); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "EnableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult EnableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int EnableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, effectIndex, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "DisableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult DisableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int DisableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[4]))(ptr, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[4]))(ptr, effectIndex, operationSet); return ret; } @@ -2180,48 +2180,48 @@ public readonly unsafe void GetEffectState([NativeName(NativeNameType.Param, "Ef /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, effectIndex, pParameters, parametersByteSize, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, effectIndex, pParameters, parametersByteSize, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) + public readonly unsafe int GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, pParameters, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, pParameters, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject + public readonly unsafe int GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, (void*)pParameters.Handle, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, (void*)pParameters.Handle, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -2247,56 +2247,56 @@ public readonly unsafe void GetFilterParameters([NativeName(NativeNameType.Param /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -2304,12 +2304,12 @@ public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameT /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -2379,10 +2379,10 @@ public readonly unsafe void GetOutputFilterParameters([NativeName(NativeNameType /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetVolume")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetVolume([NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetVolume([NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[12]))(ptr, volume, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[12]))(ptr, volume, operationSet); return ret; } @@ -2407,21 +2407,21 @@ public readonly unsafe void GetVolume([NativeName(NativeNameType.Param, "pVolume /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, pVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, pVolumes, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppVolumes = &pVolumes) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, (float*)ppVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, (float*)ppVolumes, operationSet); return ret; } } @@ -2447,56 +2447,56 @@ public readonly unsafe void GetChannelVolumes([NativeName(NativeNameType.Param, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -2504,12 +2504,12 @@ public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -2587,65 +2587,65 @@ public readonly unsafe void DestroyVoice() /// /// To be documented. /// [NativeName(NativeNameType.Func, "Start")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult Start([NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int Start([NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[19]))(ptr, flags, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[19]))(ptr, flags, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "Stop")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult Stop([NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int Stop([NativeName(NativeNameType.Param, "Flags")] [NativeName(NativeNameType.Type, "UINT32")] uint flags, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[20]))(ptr, flags, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[20]))(ptr, flags, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SubmitSourceBuffer")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SubmitSourceBuffer([NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] XAudio2Buffer* pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] XAudio2BufferWma* pBufferWMA) + public readonly unsafe int SubmitSourceBuffer([NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] XAudio2Buffer* pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] XAudio2BufferWma* pBufferWMA) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[21]))(ptr, pBuffer, pBufferWMA); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[21]))(ptr, pBuffer, pBufferWMA); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SubmitSourceBuffer")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SubmitSourceBuffer([NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] ref XAudio2Buffer pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] XAudio2BufferWma* pBufferWMA) + public readonly unsafe int SubmitSourceBuffer([NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] ref XAudio2Buffer pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] XAudio2BufferWma* pBufferWMA) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2Buffer* ppBuffer = &pBuffer) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[21]))(ptr, (XAudio2Buffer*)ppBuffer, pBufferWMA); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[21]))(ptr, (XAudio2Buffer*)ppBuffer, pBufferWMA); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SubmitSourceBuffer")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SubmitSourceBuffer([NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] XAudio2Buffer* pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] ref XAudio2BufferWma pBufferWMA) + public readonly unsafe int SubmitSourceBuffer([NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] XAudio2Buffer* pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] ref XAudio2BufferWma pBufferWMA) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2BufferWma* ppBufferWMA = &pBufferWMA) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[21]))(ptr, pBuffer, (XAudio2BufferWma*)ppBufferWMA); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[21]))(ptr, pBuffer, (XAudio2BufferWma*)ppBufferWMA); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SubmitSourceBuffer")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SubmitSourceBuffer([NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] ref XAudio2Buffer pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] ref XAudio2BufferWma pBufferWMA) + public readonly unsafe int SubmitSourceBuffer([NativeName(NativeNameType.Param, "pBuffer")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER*")] ref XAudio2Buffer pBuffer, [NativeName(NativeNameType.Param, "pBufferWMA")] [NativeName(NativeNameType.Type, "const XAUDIO2_BUFFER_WMA*")] ref XAudio2BufferWma pBufferWMA) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2Buffer* ppBuffer = &pBuffer) { fixed (XAudio2BufferWma* ppBufferWMA = &pBufferWMA) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[21]))(ptr, (XAudio2Buffer*)ppBuffer, (XAudio2BufferWma*)ppBufferWMA); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[21]))(ptr, (XAudio2Buffer*)ppBuffer, (XAudio2BufferWma*)ppBufferWMA); return ret; } } @@ -2653,28 +2653,28 @@ public readonly unsafe HResult SubmitSourceBuffer([NativeName(NativeNameType.Par /// /// To be documented. /// [NativeName(NativeNameType.Func, "FlushSourceBuffers")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult FlushSourceBuffers() + public readonly unsafe int FlushSourceBuffers() { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[22]))(ptr); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[22]))(ptr); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "Discontinuity")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult Discontinuity() + public readonly unsafe int Discontinuity() { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[23]))(ptr); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[23]))(ptr); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "ExitLoop")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult ExitLoop([NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int ExitLoop([NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[24]))(ptr, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[24]))(ptr, operationSet); return ret; } @@ -2699,10 +2699,10 @@ public readonly unsafe void GetState([NativeName(NativeNameType.Param, "pVoiceSt /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFrequencyRatio")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetFrequencyRatio([NativeName(NativeNameType.Param, "Ratio")] [NativeName(NativeNameType.Type, "float")] float ratio, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetFrequencyRatio([NativeName(NativeNameType.Param, "Ratio")] [NativeName(NativeNameType.Type, "float")] float ratio, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[26]))(ptr, ratio, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[26]))(ptr, ratio, operationSet); return ret; } @@ -2727,10 +2727,10 @@ public readonly unsafe void GetFrequencyRatio([NativeName(NativeNameType.Param, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetSourceSampleRate")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetSourceSampleRate([NativeName(NativeNameType.Param, "NewSourceSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint newSourceSampleRate) + public readonly unsafe int SetSourceSampleRate([NativeName(NativeNameType.Param, "NewSourceSampleRate")] [NativeName(NativeNameType.Type, "UINT32")] uint newSourceSampleRate) { IXAudio2SourceVoice* ptr = (IXAudio2SourceVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[28]))(ptr, newSourceSampleRate); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[28]))(ptr, newSourceSampleRate); return ret; } @@ -2780,61 +2780,61 @@ public readonly unsafe void GetVoiceDetails([NativeName(NativeNameType.Param, "p /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) + public readonly unsafe int SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, pSendList); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, pSendList); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) + public readonly unsafe int SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, (XAudio2VoiceSends*)ppSendList); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, (XAudio2VoiceSends*)ppSendList); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "EnableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult EnableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int EnableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, effectIndex, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "DisableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult DisableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int DisableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[4]))(ptr, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[4]))(ptr, effectIndex, operationSet); return ret; } @@ -2859,48 +2859,48 @@ public readonly unsafe void GetEffectState([NativeName(NativeNameType.Param, "Ef /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, effectIndex, pParameters, parametersByteSize, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, effectIndex, pParameters, parametersByteSize, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) + public readonly unsafe int GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, pParameters, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, pParameters, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject + public readonly unsafe int GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, (void*)pParameters.Handle, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, (void*)pParameters.Handle, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -2926,56 +2926,56 @@ public readonly unsafe void GetFilterParameters([NativeName(NativeNameType.Param /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -2983,12 +2983,12 @@ public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameT /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -3058,10 +3058,10 @@ public readonly unsafe void GetOutputFilterParameters([NativeName(NativeNameType /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetVolume")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetVolume([NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetVolume([NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[12]))(ptr, volume, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[12]))(ptr, volume, operationSet); return ret; } @@ -3086,21 +3086,21 @@ public readonly unsafe void GetVolume([NativeName(NativeNameType.Param, "pVolume /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, pVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, pVolumes, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppVolumes = &pVolumes) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, (float*)ppVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, (float*)ppVolumes, operationSet); return ret; } } @@ -3126,56 +3126,56 @@ public readonly unsafe void GetChannelVolumes([NativeName(NativeNameType.Param, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -3183,12 +3183,12 @@ public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2SubmixVoice* ptr = (IXAudio2SubmixVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -3310,61 +3310,61 @@ public readonly unsafe void GetVoiceDetails([NativeName(NativeNameType.Param, "p /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) + public readonly unsafe int SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] XAudio2VoiceSends* pSendList) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, pSendList); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, pSendList); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputVoices")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) + public readonly unsafe int SetOutputVoices([NativeName(NativeNameType.Param, "pSendList")] [NativeName(NativeNameType.Type, "const XAUDIO2_VOICE_SENDS*")] ref XAudio2VoiceSends pSendList) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2VoiceSends* ppSendList = &pSendList) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, (XAudio2VoiceSends*)ppSendList); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[1]))(ptr, (XAudio2VoiceSends*)ppSendList); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) + public readonly unsafe int SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] XAudio2EffectChain* pEffectChain) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, pEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, pEffectChain); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectChain")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) + public readonly unsafe int SetEffectChain([NativeName(NativeNameType.Param, "pEffectChain")] [NativeName(NativeNameType.Type, "const XAUDIO2_EFFECT_CHAIN*")] ref XAudio2EffectChain pEffectChain) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2EffectChain* ppEffectChain = &pEffectChain) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, (XAudio2EffectChain*)ppEffectChain); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, (XAudio2EffectChain*)ppEffectChain); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "EnableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult EnableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int EnableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[3]))(ptr, effectIndex, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "DisableEffect")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult DisableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int DisableEffect([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[4]))(ptr, effectIndex, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[4]))(ptr, effectIndex, operationSet); return ret; } @@ -3389,48 +3389,48 @@ public readonly unsafe void GetEffectState([NativeName(NativeNameType.Param, "Ef /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, effectIndex, pParameters, parametersByteSize, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, effectIndex, pParameters, parametersByteSize, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) + public readonly unsafe int GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] void* pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, pParameters, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, pParameters, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetEffectParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject + public readonly unsafe int GetEffectParameters([NativeName(NativeNameType.Param, "EffectIndex")] [NativeName(NativeNameType.Type, "UINT32")] uint effectIndex, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "void*")] ComPtr pParameters, [NativeName(NativeNameType.Param, "ParametersByteSize")] [NativeName(NativeNameType.Type, "UINT32")] uint parametersByteSize) where T : unmanaged, IComObject, IComObject { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, (void*)pParameters.Handle, parametersByteSize); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[7]))(ptr, effectIndex, (void*)pParameters.Handle, parametersByteSize); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetFilterParameters([NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[8]))(ptr, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -3456,56 +3456,56 @@ public readonly unsafe void GetFilterParameters([NativeName(NativeNameType.Param /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, pParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] XAudio2FilterParameters* pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, pParameters, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, pDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)ppDestinationVoice, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -3513,12 +3513,12 @@ public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameT /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputFilterParameters")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputFilterParameters([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "pParameters")] [NativeName(NativeNameType.Type, "const XAUDIO2_FILTER_PARAMETERS*")] ref XAudio2FilterParameters pParameters, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (XAudio2FilterParameters* ppParameters = &pParameters) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[10]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, (XAudio2FilterParameters*)ppParameters, operationSet); return ret; } } @@ -3588,10 +3588,10 @@ public readonly unsafe void GetOutputFilterParameters([NativeName(NativeNameType /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetVolume")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetVolume([NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetVolume([NativeName(NativeNameType.Param, "Volume")] [NativeName(NativeNameType.Type, "float")] float volume, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[12]))(ptr, volume, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[12]))(ptr, volume, operationSet); return ret; } @@ -3616,21 +3616,21 @@ public readonly unsafe void GetVolume([NativeName(NativeNameType.Param, "pVolume /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] float* pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, pVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, pVolumes, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetChannelVolumes")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetChannelVolumes([NativeName(NativeNameType.Param, "Channels")] [NativeName(NativeNameType.Type, "UINT32")] uint channels, [NativeName(NativeNameType.Param, "pVolumes")] [NativeName(NativeNameType.Type, "const float*")] ref float pVolumes, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppVolumes = &pVolumes) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, (float*)ppVolumes, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[14]))(ptr, channels, (float*)ppVolumes, operationSet); return ret; } } @@ -3656,56 +3656,56 @@ public readonly unsafe void GetChannelVolumes([NativeName(NativeNameType.Param, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] float* pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, pLevelMatrix, operationSet); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] IXAudio2Voice* pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, pDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ref IXAudio2Voice pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (IXAudio2Voice* ppDestinationVoice = &pDestinationVoice) { fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)ppDestinationVoice, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -3713,12 +3713,12 @@ public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, /// /// To be documented. /// [NativeName(NativeNameType.Func, "SetOutputMatrix")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) + public readonly unsafe int SetOutputMatrix([NativeName(NativeNameType.Param, "pDestinationVoice")] [NativeName(NativeNameType.Type, "IXAudio2Voice*")] ComPtr pDestinationVoice, [NativeName(NativeNameType.Param, "SourceChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint sourceChannels, [NativeName(NativeNameType.Param, "DestinationChannels")] [NativeName(NativeNameType.Type, "UINT32")] uint destinationChannels, [NativeName(NativeNameType.Param, "pLevelMatrix")] [NativeName(NativeNameType.Type, "const float*")] ref float pLevelMatrix, [NativeName(NativeNameType.Param, "OperationSet")] [NativeName(NativeNameType.Type, "UINT32")] uint operationSet) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (float* ppLevelMatrix = &pLevelMatrix) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[16]))(ptr, (IXAudio2Voice*)pDestinationVoice.Handle, sourceChannels, destinationChannels, (float*)ppLevelMatrix, operationSet); return ret; } } @@ -3796,21 +3796,21 @@ public readonly unsafe void DestroyVoice() /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetChannelMask")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult GetChannelMask([NativeName(NativeNameType.Param, "pChannelmask")] [NativeName(NativeNameType.Type, "DWORD*")] uint* pChannelmask) + public readonly unsafe int GetChannelMask([NativeName(NativeNameType.Param, "pChannelmask")] [NativeName(NativeNameType.Type, "DWORD*")] uint* pChannelmask) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[19]))(ptr, pChannelmask); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[19]))(ptr, pChannelmask); return ret; } /// /// To be documented. /// [NativeName(NativeNameType.Func, "GetChannelMask")] [return: NativeName(NativeNameType.Type, "HRESULT")] - public readonly unsafe HResult GetChannelMask([NativeName(NativeNameType.Param, "pChannelmask")] [NativeName(NativeNameType.Type, "DWORD*")] ref uint pChannelmask) + public readonly unsafe int GetChannelMask([NativeName(NativeNameType.Param, "pChannelmask")] [NativeName(NativeNameType.Type, "DWORD*")] ref uint pChannelmask) { IXAudio2MasteringVoice* ptr = (IXAudio2MasteringVoice*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); fixed (uint* ppChannelmask = &pChannelmask) { - HResult ret = ((delegate* unmanaged[Stdcall])(LpVtbl[19]))(ptr, (uint*)ppChannelmask); + int ret = ((delegate* unmanaged[Stdcall])(LpVtbl[19]))(ptr, (uint*)ppChannelmask); return ret; } } @@ -3858,10 +3858,10 @@ public readonly unsafe void OnProcessingPassEnd() /// /// To be documented. /// [NativeName(NativeNameType.Func, "OnCriticalError")] [return: NativeName(NativeNameType.Type, "void")] - public readonly unsafe void OnCriticalError([NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] HResult error) + public readonly unsafe void OnCriticalError([NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] int error) { IXAudio2EngineCallback* ptr = (IXAudio2EngineCallback*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, error); + ((delegate* unmanaged[Stdcall])(LpVtbl[2]))(ptr, error); } unsafe void*** IComObject.AsVtblPtr() @@ -3958,18 +3958,18 @@ public readonly unsafe void OnLoopEnd([NativeName(NativeNameType.Param, "pBuf /// /// To be documented. /// [NativeName(NativeNameType.Func, "OnVoiceError")] [return: NativeName(NativeNameType.Type, "void")] - public readonly unsafe void OnVoiceError([NativeName(NativeNameType.Param, "pBufferContext")] [NativeName(NativeNameType.Type, "void*")] void* pBufferContext, [NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] HResult error) + public readonly unsafe void OnVoiceError([NativeName(NativeNameType.Param, "pBufferContext")] [NativeName(NativeNameType.Type, "void*")] void* pBufferContext, [NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] int error) { IXAudio2VoiceCallback* ptr = (IXAudio2VoiceCallback*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, pBufferContext, error); + ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, pBufferContext, error); } /// /// To be documented. /// [NativeName(NativeNameType.Func, "OnVoiceError")] [return: NativeName(NativeNameType.Type, "void")] - public readonly unsafe void OnVoiceError([NativeName(NativeNameType.Param, "pBufferContext")] [NativeName(NativeNameType.Type, "void*")] ComPtr pBufferContext, [NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] HResult error) where T : unmanaged, IComObject, IComObject + public readonly unsafe void OnVoiceError([NativeName(NativeNameType.Param, "pBufferContext")] [NativeName(NativeNameType.Type, "void*")] ComPtr pBufferContext, [NativeName(NativeNameType.Param, "Error")] [NativeName(NativeNameType.Type, "HRESULT")] int error) where T : unmanaged, IComObject, IComObject { IXAudio2VoiceCallback* ptr = (IXAudio2VoiceCallback*)Unsafe.AsPointer(ref Unsafe.AsRef(in this)); - ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (void*)pBufferContext.Handle, error); + ((delegate* unmanaged[Stdcall])(LpVtbl[6]))(ptr, (void*)pBufferContext.Handle, error); } unsafe void*** IComObject.AsVtblPtr() diff --git a/Hexa.NET.XAudio2/Hexa.NET.XAudio2.csproj b/Hexa.NET.XAudio2/Hexa.NET.XAudio2.csproj index fe376c4..b0970eb 100644 --- a/Hexa.NET.XAudio2/Hexa.NET.XAudio2.csproj +++ b/Hexa.NET.XAudio2/Hexa.NET.XAudio2.csproj @@ -12,7 +12,7 @@ true 1.0.0 - 1.0.3 + 1.0.4 A .NET Wrapper for XAudio2 (v 2.9), generated with the HexaGen code generator. HexaGen allows users to access native libraries easily and with high performance. XAudio2 X3DAudio Audio Sound Hexa HexaGen Source Generator C# .NET DotNet Sharp Windows Bindings Wrapper Native Juna Meinhold @@ -32,4 +32,8 @@ + + + + \ No newline at end of file diff --git a/HexaGen.Core/CSharp/CsParameterInfo.cs b/HexaGen.Core/CSharp/CsParameterInfo.cs index d73e207..f5fab73 100644 --- a/HexaGen.Core/CSharp/CsParameterInfo.cs +++ b/HexaGen.Core/CSharp/CsParameterInfo.cs @@ -1,6 +1,9 @@ namespace HexaGen.Core.CSharp { + using CppAst; using System.Collections.Generic; + using System.Text.Json.Serialization; + using System.Xml.Serialization; [Flags] public enum ParameterFlags @@ -19,9 +22,10 @@ public enum ParameterFlags public class CsParameterInfo : ICloneable { - public CsParameterInfo(string name, CsType type, List modifiers, List attributes, Direction direction, string? defaultValue, string? fieldName) + public CsParameterInfo(string name, CppType cppType, CsType type, List modifiers, List attributes, Direction direction, string? defaultValue, string? fieldName) { Name = name; + CppType = cppType; Type = type; Modifiers = modifiers; Attributes = attributes; @@ -30,18 +34,20 @@ public CsParameterInfo(string name, CsType type, List modifiers, List modifiers, List attributes, Direction direction) + public CsParameterInfo(string name, CppType cppType, CsType type, List modifiers, List attributes, Direction direction) { Name = name; + CppType = cppType; Type = type; Modifiers = modifiers; Attributes = attributes; Direction = direction; } - public CsParameterInfo(string name, CsType type, Direction direction, string? defaultValue, string? fieldName) + public CsParameterInfo(string name, CppType cppType, CsType type, Direction direction, string? defaultValue, string? fieldName) { Name = name; + CppType = cppType; Type = type; Modifiers = new(); Attributes = new(); @@ -50,9 +56,10 @@ public CsParameterInfo(string name, CsType type, Direction direction, string? de FieldName = fieldName; } - public CsParameterInfo(string name, CsType type, Direction direction) + public CsParameterInfo(string name, CppType cppType, CsType type, Direction direction) { Name = name; + CppType = cppType; Type = type; Modifiers = new(); Attributes = new(); @@ -63,6 +70,10 @@ public CsParameterInfo(string name, CsType type, Direction direction) public string CleanName => Name.Replace("@", string.Empty); + [XmlIgnore] + [JsonIgnore] + public CppType CppType { get; set; } + public CsType Type { get; set; } public List Modifiers { get; set; } @@ -100,7 +111,7 @@ public override string ToString() public CsParameterInfo Clone() { - return new CsParameterInfo(Name, Type.Clone(), Modifiers.Clone(), Attributes.Clone(), Direction, DefaultValue, FieldName); + return new CsParameterInfo(Name, CppType, Type.Clone(), Modifiers.Clone(), Attributes.Clone(), Direction, DefaultValue, FieldName); } } } \ No newline at end of file diff --git a/HexaGen.Core/CSharp/CsPrimitiveType.cs b/HexaGen.Core/CSharp/CsPrimitiveType.cs index 14d8eff..793d060 100644 --- a/HexaGen.Core/CSharp/CsPrimitiveType.cs +++ b/HexaGen.Core/CSharp/CsPrimitiveType.cs @@ -2,6 +2,7 @@ { public enum CsPrimitiveType { + Unknown, Void, Bool, Byte, diff --git a/HexaGen.Tests/CsGeneratorTests.cs b/HexaGen.Tests/CsGeneratorTests.cs index 9d88542..7a608a3 100644 --- a/HexaGen.Tests/CsGeneratorTests.cs +++ b/HexaGen.Tests/CsGeneratorTests.cs @@ -227,6 +227,19 @@ public void SPIRVCross() Assert.Pass(); } + [Test] + public void SPIRVReflect() + { + CsCodeGeneratorSettings settings = CsCodeGeneratorSettings.Load("spirvreflect/generator.json"); + string headerFile = "spirvreflect/spirv_reflect.h"; + + CsCodeGenerator generator = new(settings); + + generator.Generate(headerFile, "../../../../Hexa.NET.SPIRVReflect/Generated"); + EvaluateResult(generator); + Assert.Pass(); + } + [Test] public void SDL2() { diff --git a/HexaGen.Tests/HexaGen.Tests.csproj b/HexaGen.Tests/HexaGen.Tests.csproj index ba6e8a8..3e03a60 100644 --- a/HexaGen.Tests/HexaGen.Tests.csproj +++ b/HexaGen.Tests/HexaGen.Tests.csproj @@ -847,6 +847,15 @@ Always + + Always + + + Always + + + Always + Always diff --git a/HexaGen.Tests/cimgui/EnumDefinition.cs b/HexaGen.Tests/cimgui/EnumDefinition.cs deleted file mode 100644 index 10fe6cd..0000000 --- a/HexaGen.Tests/cimgui/EnumDefinition.cs +++ /dev/null @@ -1,133 +0,0 @@ -namespace Test -{ - using System; - using System.Linq; - using System.Collections.Generic; - - internal class EnumDefinition : IEquatable - { - private readonly Dictionary _sanitizedNames; - - public string Name { get; } - public string[] Names { get; } - public string[] FriendlyNames { get; } - public EnumMember[] Members { get; } - public string? Comment { get; } - - public EnumDefinition(string name, EnumMember[] elements, string? comment) - { - Name = name; - if (ImguiDefinitions.AlternateEnumPrefixes.TryGetValue(name, out string? altName)) - { - Names = new[] { name, altName }; - } - else - { - Names = new[] { name }; - } - FriendlyNames = new string[Names.Length]; - for (int i = 0; i < Names.Length; i++) - { - string n = Names[i]; - if (n.EndsWith('_')) - { - FriendlyNames[i] = n[..^1]; - } - else - { - FriendlyNames[i] = n; - } - } - - Members = elements; - - _sanitizedNames = new Dictionary(); - foreach (EnumMember el in elements) - { - _sanitizedNames.Add(el.Name, SanitizeMemberName(el.Name)); - } - Comment = comment; - } - - public string SanitizeNames(string text) - { - foreach (KeyValuePair kvp in _sanitizedNames) - { - text = text.Replace(kvp.Key, kvp.Value); - } - - return text; - } - - private string SanitizeMemberName(string memberName) - { - string ret = memberName; - bool altSubstitution = false; - - // Try alternate substitution first - foreach (KeyValuePair substitutionPair in ImguiDefinitions.AlternateEnumPrefixSubstitutions) - { - if (memberName.StartsWith(substitutionPair.Key)) - { - ret = ret.Replace(substitutionPair.Key, substitutionPair.Value); - altSubstitution = true; - break; - } - } - - if (!altSubstitution) - { - foreach (string name in Names) - { - if (memberName.StartsWith(name)) - { - ret = memberName[name.Length..]; - if (ret.StartsWith("_")) - { - ret = ret[1..]; - } - } - } - } - - if (ret.EndsWith('_')) - { - ret = ret[..^1]; - } - - if (char.IsDigit(ret.First())) - ret = "_" + ret; - - return ret; - } - - public override bool Equals(object? obj) - { - return Equals(obj as EnumDefinition); - } - - public bool Equals(EnumDefinition? other) - { - return other is not null && - EqualityComparer>.Default.Equals(_sanitizedNames, other._sanitizedNames) && - EqualityComparer.Default.Equals(Names, other.Names) && - EqualityComparer.Default.Equals(FriendlyNames, other.FriendlyNames) && - EqualityComparer.Default.Equals(Members, other.Members); - } - - public static bool operator ==(EnumDefinition? left, EnumDefinition? right) - { - return EqualityComparer.Default.Equals(left, right); - } - - public static bool operator !=(EnumDefinition? left, EnumDefinition? right) - { - return !(left == right); - } - - public override int GetHashCode() - { - return HashCode.Combine(_sanitizedNames, Names, FriendlyNames, Members); - } - } -} \ No newline at end of file diff --git a/HexaGen.Tests/cimgui/EnumMember.cs b/HexaGen.Tests/cimgui/EnumMember.cs deleted file mode 100644 index 736f27f..0000000 --- a/HexaGen.Tests/cimgui/EnumMember.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace Test -{ - internal class EnumMember - { - public EnumMember(string name, string value, string? comment) - { - Name = name; - Value = value; - Comment = comment; - } - - public string Name { get; } - public string Value { get; } - public string? Comment { get; } - } -} \ No newline at end of file diff --git a/HexaGen.Tests/cimgui/FunctionDefinition.cs b/HexaGen.Tests/cimgui/FunctionDefinition.cs deleted file mode 100644 index 2afb0cd..0000000 --- a/HexaGen.Tests/cimgui/FunctionDefinition.cs +++ /dev/null @@ -1,70 +0,0 @@ -namespace Test -{ - using System.Collections.Generic; - - internal class FunctionDefinition - { - public string Name { get; } - public OverloadDefinition[] Overloads { get; } - - public FunctionDefinition(string name, OverloadDefinition[] overloads, EnumDefinition[] enums) - { - Name = name; - Overloads = ExpandOverloadVariants(overloads, enums); - } - - private static OverloadDefinition[] ExpandOverloadVariants(OverloadDefinition[] overloads, EnumDefinition[] enums) - { - List newDefinitions = new(); - - foreach (OverloadDefinition overload in overloads) - { - bool hasVariants = false; - int[] variantCounts = new int[overload.Parameters.Length]; - - for (int i = 0; i < overload.Parameters.Length; i++) - { - var parameter = overload.Parameters[i]; - if (parameter.TypeVariants != null) - { - hasVariants = true; - variantCounts[i] = parameter.TypeVariants.Length + 1; - } - else - { - variantCounts[i] = 1; - } - } - - if (hasVariants) - { - int totalVariants = variantCounts[0]; - for (int i = 1; i < variantCounts.Length; i++) totalVariants *= variantCounts[i]; - - for (int i = 0; i < totalVariants; i++) - { - TypeReference[] parameters = new TypeReference[overload.Parameters.Length]; - int div = 1; - - for (int j = 0; j < parameters.Length; j++) - { - int k = i / div % variantCounts[j]; - - parameters[j] = overload.Parameters[j].WithVariant(k, enums); - - if (j > 0) div *= variantCounts[j]; - } - - newDefinitions.Add(overload.WithParameters(parameters)); - } - } - else - { - newDefinitions.Add(overload); - } - } - - return newDefinitions.ToArray(); - } - } -} \ No newline at end of file diff --git a/HexaGen.Tests/cimgui/ImguiDefinitions.cs b/HexaGen.Tests/cimgui/ImguiDefinitions.cs index 5c1dc21..9eb5e5f 100644 --- a/HexaGen.Tests/cimgui/ImguiDefinitions.cs +++ b/HexaGen.Tests/cimgui/ImguiDefinitions.cs @@ -1,12 +1,13 @@ namespace Test { - using Newtonsoft.Json; - using Newtonsoft.Json.Linq; using System; + using System.Linq; + using System.Threading.Tasks; using System.Collections.Generic; using System.IO; - using System.Linq; - using System.Text; + using Newtonsoft.Json; + using Newtonsoft.Json.Linq; + using System.Xml.Linq; internal class ImguiDefinitions { @@ -15,40 +16,72 @@ internal class ImguiDefinitions public FunctionDefinition[] Functions; public TypedefDefinition[] Typedefs; - public static readonly List WellKnownEnums = new() + public static readonly List WellKnownEnums = new List() { "ImGuiMouseButton" }; - public static readonly Dictionary AlternateEnumPrefixes = new() + public static readonly Dictionary AlternateEnumPrefixes = new Dictionary() { { "ImGuiKey", "ImGuiMod" }, }; - public static readonly Dictionary AlternateEnumPrefixSubstitutions = new() + public static readonly Dictionary AlternateEnumPrefixSubstitutions = new Dictionary() { { "ImGuiMod_", "Mod" }, }; - public ImguiDefinitions(string directory) + private static string? GetComment(JToken? token) + { + if (token == null) + return null; + var above = token["above"]?.ToString(); + var sameline = token["sameline"]?.ToString(); + if (above == null && sameline == null) + return null; + if (above == null) + return sameline; + if (sameline == null) + return null; + return above + sameline; + } + + private static int GetInt(JToken token, string key) + { + var v = token[key]; + if (v == null) return 0; + return v.ToObject(); + } + + public ImguiDefinitions() + { + + } + + public ImguiDefinitions(string dir) + { + LoadFrom(dir); + } + + public void LoadFrom(string directory) { JObject typesJson; using (StreamReader fs = File.OpenText(Path.Combine(directory, "structs_and_enums.json"))) - using (JsonTextReader jr = new(fs)) + using (JsonTextReader jr = new JsonTextReader(fs)) { typesJson = JObject.Load(jr); } JObject functionsJson; using (StreamReader fs = File.OpenText(Path.Combine(directory, "definitions.json"))) - using (JsonTextReader jr = new(fs)) + using (JsonTextReader jr = new JsonTextReader(fs)) { functionsJson = JObject.Load(jr); } JObject typedefsJson; using (StreamReader fs = File.OpenText(Path.Combine(directory, "typedefs_dict.json"))) - using (JsonTextReader jr = new(fs)) + using (JsonTextReader jr = new JsonTextReader(fs)) { typedefsJson = JObject.Load(jr); } @@ -59,7 +92,11 @@ public ImguiDefinitions(string directory) { JProperty jp = (JProperty)jt; string name = jp.Name; - string? comment = typesJson["enum_comments"][name]?["above"]?.ToString(); + string? comment = typesJson["enum_comments"]?[name]?["above"]?.ToString(); + if (typeLocations?[jp.Name]?.Value().Contains("internal") ?? false) + { + return null; + } EnumMember[] elements = jp.Values().Select(v => { return new EnumMember(v["name"].ToString(), v["calc_value"].ToString(), v["comment"]?.ToString()); @@ -71,8 +108,11 @@ public ImguiDefinitions(string directory) { JProperty jp = (JProperty)jt; string name = jp.Name; - string? comment = typesJson["struct_comments"][name]?["above"]?.ToString(); - + string? comment = typesJson["struct_comments"]?[name]?["above"]?.ToString(); + if (typeLocations?[jp.Name]?.Value().Contains("internal") ?? false) + { + return null; + } TypeReference[] fields = jp.Values().Select(v => { if (v["type"].ToString().Contains("static")) { return null; } @@ -84,7 +124,7 @@ public ImguiDefinitions(string directory) GetInt(v, "size"), v["template_type"]?.ToString(), Enums); - }).Where(tr => tr != null).Cast().ToArray(); + }).Where(tr => tr != null).ToArray(); return new TypeDefinition(name, fields, comment); }).Where(x => x != null).ToArray(); @@ -95,36 +135,48 @@ public ImguiDefinitions(string directory) bool hasNonUdtVariants = jp.Values().Any(val => val["ov_cimguiname"]?.ToString().EndsWith("nonUDT") ?? false); OverloadDefinition[] overloads = jp.Values().Select(val => { - string? ov_cimguiname = val["ov_cimguiname"]?.ToString(); + string ov_cimguiname = val["ov_cimguiname"]?.ToString(); string cimguiname = val["cimguiname"].ToString(); - string? friendlyName = val["funcname"]?.ToString(); + string friendlyName = val["funcname"]?.ToString(); if (cimguiname.EndsWith("_destroy")) { friendlyName = "Destroy"; } - + //skip internal functions + var typename = val["stname"]?.ToString(); + if (!string.IsNullOrEmpty(typename)) + { + if (!Types.Any(x => x.Name == val["stname"]?.ToString())) + { + return null; + } + } if (friendlyName == null) { return null; } + if (val["location"]?.ToString().Contains("internal") ?? false) return null; - string? exportedName = ov_cimguiname; - exportedName ??= cimguiname; + string exportedName = ov_cimguiname; + if (exportedName == null) + { + exportedName = cimguiname; + } if (hasNonUdtVariants && !exportedName.EndsWith("nonUDT2")) { return null; } - string? selfTypeName = null; + string selfTypeName = null; int underscoreIndex = exportedName.IndexOf('_'); if (underscoreIndex > 0 && !exportedName.StartsWith("ig")) // Hack to exclude some weirdly-named non-instance functions. { - selfTypeName = exportedName[..underscoreIndex]; + selfTypeName = exportedName.Substring(0, underscoreIndex); } - List parameters = new(); + List parameters = new List(); // find any variants that can be applied to the parameters of this method based on the method name - Dictionary defaultValues = new(); + Dictionary defaultValues = new Dictionary(); foreach (JToken dv in val["defaults"]) { JProperty dvProp = (JProperty)dv; @@ -133,25 +185,12 @@ public ImguiDefinitions(string directory) string returnType = val["ret"]?.ToString() ?? "void"; string? comment = val["comment"]?.ToString(); - if (comment != null) - { - StringBuilder sb = new(); - sb.AppendLine("/// "); - var lines = comment.Replace("/", string.Empty).Split('\n', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries); - for (int i = 0; i < lines.Length; i++) - { - sb.AppendLine($"/// {lines[i]}"); - } - sb.AppendLine("/// "); - comment = sb.ToString(); - } - string structName = val["stname"].ToString(); bool isConstructor = val.Value("constructor"); bool isDestructor = val.Value("destructor"); if (isConstructor) { - returnType = structName; + returnType = structName + "*"; } return new OverloadDefinition( @@ -164,10 +203,10 @@ public ImguiDefinitions(string directory) comment, isConstructor, isDestructor); - }).Where(od => od != null).Cast().ToArray(); + }).Where(od => od != null).ToArray(); if (overloads.Length == 0) return null; return new FunctionDefinition(name, overloads, Enums); - }).Where(x => x != null).Cast().OrderBy(fd => fd.Name).ToArray(); + }).Where(x => x != null).OrderBy(fd => fd.Name).ToArray(); Typedefs = typedefsJson.Children().Select(jt => { @@ -178,27 +217,405 @@ public ImguiDefinitions(string directory) return new TypedefDefinition(name, value); }).ToArray(); } + } - private static int GetInt(JToken token, string key) + internal class EnumDefinition : IEquatable + { + private readonly Dictionary _sanitizedNames; + + public string Name { get; } + + public string[] Names { get; } + + public string[] FriendlyNames { get; } + + public EnumMember[] Members { get; } + + public string? Comment { get; } + + public EnumDefinition(string name, EnumMember[] elements, string? comment) { - var v = token[key]; - if (v == null) return 0; - return v.ToObject(); + Name = name; + + if (ImguiDefinitions.AlternateEnumPrefixes.TryGetValue(name, out string altName)) + { + Names = new[] { name, altName }; + } + else + { + Names = new[] { name }; + } + FriendlyNames = new string[Names.Length]; + for (int i = 0; i < Names.Length; i++) + { + string n = Names[i]; + if (n.EndsWith('_')) + { + FriendlyNames[i] = n.Substring(0, n.Length - 1); + } + else + { + FriendlyNames[i] = n; + } + } + + Members = elements; + + _sanitizedNames = new Dictionary(); + foreach (EnumMember el in elements) + { + _sanitizedNames.Add(el.Name, SanitizeMemberName(el.Name)); + } + + Comment = comment; } - private static string? GetComment(JToken? token) + public string SanitizeNames(string text) { - if (token == null) - return null; - var above = token["above"]?.ToString(); - var sameline = token["sameline"]?.ToString(); - if (above == null && sameline == null) - return null; - if (above == null) - return sameline; - if (sameline == null) - return null; - return above + sameline; + foreach (KeyValuePair kvp in _sanitizedNames) + { + text = text.Replace(kvp.Key, kvp.Value); + } + + return text; } + + private string SanitizeMemberName(string memberName) + { + string ret = memberName; + bool altSubstitution = false; + + // Try alternate substitution first + foreach (KeyValuePair substitutionPair in ImguiDefinitions.AlternateEnumPrefixSubstitutions) + { + if (memberName.StartsWith(substitutionPair.Key)) + { + ret = ret.Replace(substitutionPair.Key, substitutionPair.Value); + altSubstitution = true; + break; + } + } + + if (!altSubstitution) + { + foreach (string name in Names) + { + if (memberName.StartsWith(name)) + { + ret = memberName.Substring(name.Length); + if (ret.StartsWith("_")) + { + ret = ret.Substring(1); + } + } + } + } + + if (ret.EndsWith('_')) + { + ret = ret.Substring(0, ret.Length - 1); + } + + if (char.IsDigit(ret.First())) + ret = "_" + ret; + + return ret; + } + + public override bool Equals(object? obj) + { + return Equals(obj as EnumDefinition); + } + + public bool Equals(EnumDefinition? other) + { + return other is not null && + EqualityComparer>.Default.Equals(_sanitizedNames, other._sanitizedNames) && + EqualityComparer.Default.Equals(Names, other.Names) && + EqualityComparer.Default.Equals(FriendlyNames, other.FriendlyNames) && + EqualityComparer.Default.Equals(Members, other.Members); + } + + public static bool operator ==(EnumDefinition? left, EnumDefinition? right) + { + return EqualityComparer.Default.Equals(left, right); + } + + public static bool operator !=(EnumDefinition? left, EnumDefinition? right) + { + return !(left == right); + } + } + + internal class EnumMember + { + public EnumMember(string name, string value, string? comment) + { + Name = name; + Value = value; + Comment = comment; + } + + public string Name { get; } + + public string Value { get; } + + public string? Comment { get; } + } + + internal class TypeDefinition + { + public string Name { get; } + + public TypeReference[] Fields { get; } + + public string? Comment { get; } + + public TypeDefinition(string name, TypeReference[] fields, string? comment) + { + Name = name; + Fields = fields; + Comment = comment; + } + } + + internal class TypeReference + { + public string Name { get; } + + public string Type { get; } + + public string TemplateType { get; } + + public int ArraySize { get; } + + public bool IsFunctionPointer { get; } + + public string[] TypeVariants { get; } + + public bool IsEnum { get; } + + public string? Comment { get; } + + public TypeReference(string name, string? comment, string type, int asize, EnumDefinition[] enums) + : this(name, comment, type, asize, null, enums, null) { } + + public TypeReference(string name, string? comment, string type, int asize, EnumDefinition[] enums, string[] typeVariants) + : this(name, comment, type, asize, null, enums, typeVariants) { } + + public TypeReference(string name, string? comment, string type, int asize, string templateType, EnumDefinition[] enums) + : this(name, comment, type, asize, templateType, enums, null) { } + + public TypeReference(string name, string? comment, string type, int asize, string templateType, EnumDefinition[] enums, string[] typeVariants) + { + Name = name; + Type = type.Replace("const", string.Empty).Trim(); + + if (Type.StartsWith("ImVector_")) + { + if (Type.EndsWith("*")) + { + Type = "ImVector*"; + } + else + { + Type = "ImVector"; + } + } + + if (Type.StartsWith("ImChunkStream_")) + { + if (Type.EndsWith("*")) + { + Type = "ImChunkStream*"; + } + else + { + Type = "ImChunkStream"; + } + } + + TemplateType = templateType; + ArraySize = asize; + int startBracket = name.IndexOf('['); + if (startBracket != -1) + { + //This is only for older cimgui binding jsons + int endBracket = name.IndexOf(']'); + string sizePart = name.Substring(startBracket + 1, endBracket - startBracket - 1); + if (ArraySize == 0) + ArraySize = ParseSizeString(sizePart, enums); + Name = Name.Substring(0, startBracket); + } + IsFunctionPointer = Type.IndexOf('(') != -1; + + TypeVariants = typeVariants; + + IsEnum = enums.Any(t => t.Names.Contains(type) || t.FriendlyNames.Contains(type) || ImguiDefinitions.WellKnownEnums.Contains(type)); + + Comment = comment; + } + + private int ParseSizeString(string sizePart, EnumDefinition[] enums) + { + int plusStart = sizePart.IndexOf('+'); + if (plusStart != -1) + { + string first = sizePart.Substring(0, plusStart); + string second = sizePart.Substring(plusStart, sizePart.Length - plusStart); + int firstVal = int.Parse(first); + int secondVal = int.Parse(second); + return firstVal + secondVal; + } + + if (!int.TryParse(sizePart, out int ret)) + { + foreach (EnumDefinition ed in enums) + { + if (ed.Names.Any(n => sizePart.StartsWith(n))) + { + foreach (EnumMember member in ed.Members) + { + if (member.Name == sizePart) + { + return int.Parse(member.Value); + } + } + } + } + + ret = -1; + } + + return ret; + } + + public TypeReference WithVariant(int variantIndex, EnumDefinition[] enums) + { + if (variantIndex == 0) return this; + else return new TypeReference(Name, Comment, TypeVariants[variantIndex - 1], ArraySize, TemplateType, enums); + } + } + + internal class FunctionDefinition + { + public string Name { get; } + public OverloadDefinition[] Overloads { get; } + + public FunctionDefinition(string name, OverloadDefinition[] overloads, EnumDefinition[] enums) + { + Name = name; + Overloads = ExpandOverloadVariants(overloads, enums); + } + + private OverloadDefinition[] ExpandOverloadVariants(OverloadDefinition[] overloads, EnumDefinition[] enums) + { + List newDefinitions = new List(); + + foreach (OverloadDefinition overload in overloads) + { + bool hasVariants = false; + int[] variantCounts = new int[overload.Parameters.Length]; + + for (int i = 0; i < overload.Parameters.Length; i++) + { + if (overload.Parameters[i].TypeVariants != null) + { + hasVariants = true; + variantCounts[i] = overload.Parameters[i].TypeVariants.Length + 1; + } + else + { + variantCounts[i] = 1; + } + } + + if (hasVariants) + { + int totalVariants = variantCounts[0]; + for (int i = 1; i < variantCounts.Length; i++) totalVariants *= variantCounts[i]; + + for (int i = 0; i < totalVariants; i++) + { + TypeReference[] parameters = new TypeReference[overload.Parameters.Length]; + int div = 1; + + for (int j = 0; j < parameters.Length; j++) + { + int k = i / div % variantCounts[j]; + + parameters[j] = overload.Parameters[j].WithVariant(k, enums); + + if (j > 0) div *= variantCounts[j]; + } + + newDefinitions.Add(overload.WithParameters(parameters)); + } + } + else + { + newDefinitions.Add(overload); + } + } + + return newDefinitions.ToArray(); + } + } + + internal class OverloadDefinition + { + public string ExportedName { get; } + public string FriendlyName { get; } + public TypeReference[] Parameters { get; } + public Dictionary DefaultValues { get; } + public string ReturnType { get; } + public string StructName { get; } + public bool IsMemberFunction { get; } + public string Comment { get; } + public bool IsConstructor { get; } + public bool IsDestructor { get; } + + public OverloadDefinition( + string exportedName, + string friendlyName, + TypeReference[] parameters, + Dictionary defaultValues, + string returnType, + string structName, + string comment, + bool isConstructor, + bool isDestructor) + { + ExportedName = exportedName; + FriendlyName = friendlyName; + Parameters = parameters; + DefaultValues = defaultValues; + ReturnType = returnType.Replace("const", string.Empty).Replace("inline", string.Empty).Trim(); + StructName = structName; + IsMemberFunction = !string.IsNullOrEmpty(structName); + Comment = comment; + IsConstructor = isConstructor; + IsDestructor = isDestructor; + } + + public OverloadDefinition WithParameters(TypeReference[] parameters) + { + return new OverloadDefinition(ExportedName, FriendlyName, parameters, DefaultValues, ReturnType, StructName, Comment, IsConstructor, IsDestructor); + } + } + + internal class TypedefDefinition + { + public TypedefDefinition(string name, string definition) + { + Name = name; + Definition = definition; + } + + public string Name { get; set; } + + public string Definition { get; set; } + + public bool IsStruct => Definition.StartsWith("struct"); } } \ No newline at end of file diff --git a/HexaGen.Tests/cimgui/OverloadDefinition.cs b/HexaGen.Tests/cimgui/OverloadDefinition.cs deleted file mode 100644 index b31cffa..0000000 --- a/HexaGen.Tests/cimgui/OverloadDefinition.cs +++ /dev/null @@ -1,55 +0,0 @@ -namespace Test -{ - using System.Collections.Generic; - - internal class OverloadDefinition - { - public string ExportedName { get; } - - public string FriendlyName { get; } - - public TypeReference[] Parameters { get; } - - public Dictionary DefaultValues { get; } - - public string ReturnType { get; } - - public string StructName { get; } - - public bool IsMemberFunction { get; } - - public string? Comment { get; } - - public bool IsConstructor { get; } - - public bool IsDestructor { get; } - - public OverloadDefinition( - string exportedName, - string friendlyName, - TypeReference[] parameters, - Dictionary defaultValues, - string returnType, - string structName, - string? comment, - bool isConstructor, - bool isDestructor) - { - ExportedName = exportedName; - FriendlyName = friendlyName; - Parameters = parameters; - DefaultValues = defaultValues; - ReturnType = returnType.Replace("const", string.Empty).Replace("inline", string.Empty).Trim(); - StructName = structName; - IsMemberFunction = !string.IsNullOrEmpty(structName); - Comment = comment; - IsConstructor = isConstructor; - IsDestructor = isDestructor; - } - - public OverloadDefinition WithParameters(TypeReference[] parameters) - { - return new OverloadDefinition(ExportedName, FriendlyName, parameters, DefaultValues, ReturnType, StructName, Comment, IsConstructor, IsDestructor); - } - } -} \ No newline at end of file diff --git a/HexaGen.Tests/cimgui/TypeDefinition.cs b/HexaGen.Tests/cimgui/TypeDefinition.cs deleted file mode 100644 index 09ce606..0000000 --- a/HexaGen.Tests/cimgui/TypeDefinition.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Test -{ - internal class TypeDefinition - { - public string Name { get; } - public TypeReference[] Fields { get; } - - public string? Comment { get; } - - public TypeDefinition(string name, TypeReference[] fields, string? comment) - { - Name = name; - Fields = fields; - Comment = comment; - } - } -} \ No newline at end of file diff --git a/HexaGen.Tests/cimgui/TypeReference.cs b/HexaGen.Tests/cimgui/TypeReference.cs deleted file mode 100644 index f68528c..0000000 --- a/HexaGen.Tests/cimgui/TypeReference.cs +++ /dev/null @@ -1,117 +0,0 @@ -namespace Test -{ - using System; - using System.Linq; - - internal class TypeReference - { - public string Name { get; } - public string? Comment { get; } - public string Type { get; } - public string? TemplateType { get; } - public int ArraySize { get; } - public bool IsFunctionPointer { get; } - public string[]? TypeVariants { get; } - public bool IsEnum { get; } - - public TypeReference(string name, string? comment, string type, int asize, EnumDefinition[] enums) - : this(name, comment, type, asize, null, enums, null) { } - - public TypeReference(string name, string? comment, string type, int asize, EnumDefinition[] enums, string[]? typeVariants) - : this(name, comment, type, asize, null, enums, typeVariants) { } - - public TypeReference(string name, string? comment, string type, int asize, string? templateType, EnumDefinition[] enums) - : this(name, comment, type, asize, templateType, enums, null) { } - - public TypeReference(string name, string? comment, string type, int asize, string? templateType, EnumDefinition[] enums, string[]? typeVariants) - { - Name = name; - Comment = comment; - Type = type.Replace("const", string.Empty).Trim(); - - if (Type.StartsWith("ImVector_")) - { - if (Type.EndsWith("*")) - { - Type = "ImVector*"; - } - else - { - Type = "ImVector"; - } - } - - if (Type.StartsWith("ImChunkStream_")) - { - if (Type.EndsWith("*")) - { - Type = "ImChunkStream*"; - } - else - { - Type = "ImChunkStream"; - } - } - - TemplateType = templateType; - ArraySize = asize; - int startBracket = name.IndexOf('['); - if (startBracket != -1) - { - //This is only for older cimgui binding jsons - int endBracket = name.IndexOf(']'); - string sizePart = name.Substring(startBracket + 1, endBracket - startBracket - 1); - if (ArraySize == 0) - ArraySize = ParseSizeString(sizePart, enums); - Name = Name.Substring(0, startBracket); - } - IsFunctionPointer = Type.IndexOf('(') != -1; - - TypeVariants = typeVariants; - - IsEnum = enums.Any(t => t.Names.Contains(type) || t.FriendlyNames.Contains(type) || ImguiDefinitions.WellKnownEnums.Contains(type)); - } - - private int ParseSizeString(string sizePart, EnumDefinition[] enums) - { - int plusStart = sizePart.IndexOf('+'); - if (plusStart != -1) - { - string first = sizePart.Substring(0, plusStart); - string second = sizePart.Substring(plusStart, sizePart.Length - plusStart); - int firstVal = int.Parse(first); - int secondVal = int.Parse(second); - return firstVal + secondVal; - } - - if (!int.TryParse(sizePart, out int ret)) - { - foreach (EnumDefinition ed in enums) - { - if (ed.Names.Any(n => sizePart.StartsWith(n))) - { - foreach (EnumMember member in ed.Members) - { - if (member.Name == sizePart) - { - return int.Parse(member.Value); - } - } - } - } - - ret = -1; - } - - return ret; - } - - public TypeReference WithVariant(int variantIndex, EnumDefinition[] enums) - { - if (TypeVariants == null) - throw new NotSupportedException(); - if (variantIndex == 0) return this; - else return new TypeReference(Name, Comment, TypeVariants[variantIndex - 1], ArraySize, TemplateType, enums); - } - } -} \ No newline at end of file diff --git a/HexaGen.Tests/cimgui/TypedefDefinition.cs b/HexaGen.Tests/cimgui/TypedefDefinition.cs deleted file mode 100644 index 4767260..0000000 --- a/HexaGen.Tests/cimgui/TypedefDefinition.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Test -{ - internal class TypedefDefinition - { - public TypedefDefinition(string name, string definition) - { - Name = name; - Definition = definition; - } - - public string Name { get; set; } - - public string Definition { get; set; } - - public bool IsStruct => Definition.StartsWith("struct"); - } -} \ No newline at end of file diff --git a/HexaGen.Tests/cimgui/cimgui.h b/HexaGen.Tests/cimgui/cimgui.h index ad75e1f..a6e1236 100644 --- a/HexaGen.Tests/cimgui/cimgui.h +++ b/HexaGen.Tests/cimgui/cimgui.h @@ -1,5 +1,5 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui -//based on imgui.h file version "1.89.7" 18971 from Dear ImGui https://github.com/ocornut/imgui +//based on imgui.h file version "1.90 WIP" 18995 from Dear ImGui https://github.com/ocornut/imgui //with imgui_internal.h api //docking branch #ifndef CIMGUI_INCLUDED @@ -7,30 +7,31 @@ #include #include #if defined _WIN32 || defined __CYGWIN__ -#ifdef CIMGUI_NO_EXPORT -#define API + #ifdef CIMGUI_NO_EXPORT + #define API + #else + #define API __declspec(dllexport) + #endif #else -#define API __declspec(dllexport) -#endif -#else -#ifdef __GNUC__ -#define API __attribute__((__visibility__("default"))) -#else -#define API -#endif + #ifdef __GNUC__ + #define API __attribute__((__visibility__("default"))) + #else + #define API + #endif #endif #if defined __cplusplus -#define EXTERN extern "C" + #define EXTERN extern "C" #else -#include -#include -#define EXTERN extern + #include + #include + #define EXTERN extern #endif #define CIMGUI_API EXTERN API #define CONST const + #ifdef _MSC_VER typedef unsigned __int64 ImU64; #else @@ -38,7 +39,6 @@ typedef unsigned __int64 ImU64; #endif #define CIMGUI_DEFINE_ENUMS_AND_STRUCTS - #ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS typedef struct ImDrawChannel ImDrawChannel; @@ -92,6 +92,7 @@ typedef struct ImGuiLastItemData ImGuiLastItemData; typedef struct ImGuiLocEntry ImGuiLocEntry; typedef struct ImGuiMenuColumns ImGuiMenuColumns; typedef struct ImGuiNavItemData ImGuiNavItemData; +typedef struct ImGuiNavTreeNodeData ImGuiNavTreeNodeData; typedef struct ImGuiMetricsConfig ImGuiMetricsConfig; typedef struct ImGuiNextWindowData ImGuiNextWindowData; typedef struct ImGuiNextItemData ImGuiNextItemData; @@ -109,10 +110,12 @@ typedef struct ImGuiTableInstanceData ImGuiTableInstanceData; typedef struct ImGuiTableTempData ImGuiTableTempData; typedef struct ImGuiTableSettings ImGuiTableSettings; typedef struct ImGuiTableColumnsSettings ImGuiTableColumnsSettings; +typedef struct ImGuiTypingSelectState ImGuiTypingSelectState; +typedef struct ImGuiTypingSelectRequest ImGuiTypingSelectRequest; typedef struct ImGuiWindow ImGuiWindow; typedef struct ImGuiWindowTempData ImGuiWindowTempData; typedef struct ImGuiWindowSettings ImGuiWindowSettings; -typedef struct ImVector_const_charPtr { int Size; int Capacity; const char** Data; } ImVector_const_charPtr; +typedef struct ImVector_const_charPtr {int Size;int Capacity;const char** Data;} ImVector_const_charPtr; struct ImDrawChannel; struct ImDrawCmd; @@ -180,7 +183,7 @@ typedef int ImGuiTableColumnFlags; typedef int ImGuiTableRowFlags; typedef int ImGuiTreeNodeFlags; typedef int ImGuiViewportFlags; -typedef int ImGuiWindowFlags; typedef void* ImTextureID; typedef unsigned short ImDrawIdx; +typedef int ImGuiWindowFlags;typedef void* ImTextureID;typedef unsigned short ImDrawIdx; typedef unsigned int ImGuiID; typedef signed char ImS8; typedef unsigned char ImU8; @@ -190,8 +193,8 @@ typedef signed int ImS32; typedef unsigned int ImU32; typedef signed long long ImS64; typedef unsigned long long ImU64; -typedef unsigned short ImWchar16; -typedef unsigned int ImWchar32; typedef ImWchar16 ImWchar; +typedef unsigned int ImWchar32; +typedef unsigned short ImWchar16;typedef ImWchar16 ImWchar; typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data); typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data); typedef void* (*ImGuiMemAllocFunc)(size_t sz, void* user_data); @@ -199,1224 +202,1260 @@ typedef void (*ImGuiMemFreeFunc)(void* ptr, void* user_data); typedef struct ImVec2 ImVec2; struct ImVec2 { - float x, y; + float x, y; }; typedef struct ImVec4 ImVec4; struct ImVec4 { - float x, y, z, w; + float x, y, z, w; }; typedef enum { - ImGuiWindowFlags_None = 0, - ImGuiWindowFlags_NoTitleBar = 1 << 0, - ImGuiWindowFlags_NoResize = 1 << 1, - ImGuiWindowFlags_NoMove = 1 << 2, - ImGuiWindowFlags_NoScrollbar = 1 << 3, - ImGuiWindowFlags_NoScrollWithMouse = 1 << 4, - ImGuiWindowFlags_NoCollapse = 1 << 5, - ImGuiWindowFlags_AlwaysAutoResize = 1 << 6, - ImGuiWindowFlags_NoBackground = 1 << 7, - ImGuiWindowFlags_NoSavedSettings = 1 << 8, - ImGuiWindowFlags_NoMouseInputs = 1 << 9, - ImGuiWindowFlags_MenuBar = 1 << 10, - ImGuiWindowFlags_HorizontalScrollbar = 1 << 11, - ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12, - ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13, - ImGuiWindowFlags_AlwaysVerticalScrollbar = 1 << 14, - ImGuiWindowFlags_AlwaysHorizontalScrollbar = 1 << 15, - ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16, - ImGuiWindowFlags_NoNavInputs = 1 << 18, - ImGuiWindowFlags_NoNavFocus = 1 << 19, - ImGuiWindowFlags_UnsavedDocument = 1 << 20, - ImGuiWindowFlags_NoDocking = 1 << 21, + ImGuiWindowFlags_None = 0, + ImGuiWindowFlags_NoTitleBar = 1 << 0, + ImGuiWindowFlags_NoResize = 1 << 1, + ImGuiWindowFlags_NoMove = 1 << 2, + ImGuiWindowFlags_NoScrollbar = 1 << 3, + ImGuiWindowFlags_NoScrollWithMouse = 1 << 4, + ImGuiWindowFlags_NoCollapse = 1 << 5, + ImGuiWindowFlags_AlwaysAutoResize = 1 << 6, + ImGuiWindowFlags_NoBackground = 1 << 7, + ImGuiWindowFlags_NoSavedSettings = 1 << 8, + ImGuiWindowFlags_NoMouseInputs = 1 << 9, + ImGuiWindowFlags_MenuBar = 1 << 10, + ImGuiWindowFlags_HorizontalScrollbar = 1 << 11, + ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12, + ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13, + ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14, + ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15, + ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16, + ImGuiWindowFlags_NoNavInputs = 1 << 18, + ImGuiWindowFlags_NoNavFocus = 1 << 19, + ImGuiWindowFlags_UnsavedDocument = 1 << 20, + ImGuiWindowFlags_NoDocking = 1 << 21, - ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, - ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, - ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, - ImGuiWindowFlags_NavFlattened = 1 << 23, - ImGuiWindowFlags_ChildWindow = 1 << 24, - ImGuiWindowFlags_Tooltip = 1 << 25, - ImGuiWindowFlags_Popup = 1 << 26, - ImGuiWindowFlags_Modal = 1 << 27, - ImGuiWindowFlags_ChildMenu = 1 << 28, - ImGuiWindowFlags_DockNodeHost = 1 << 29, + ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, + ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + ImGuiWindowFlags_NavFlattened = 1 << 23, + ImGuiWindowFlags_ChildWindow = 1 << 24, + ImGuiWindowFlags_Tooltip = 1 << 25, + ImGuiWindowFlags_Popup = 1 << 26, + ImGuiWindowFlags_Modal = 1 << 27, + ImGuiWindowFlags_ChildMenu = 1 << 28, + ImGuiWindowFlags_DockNodeHost = 1 << 29, }ImGuiWindowFlags_; typedef enum { - ImGuiInputTextFlags_None = 0, - ImGuiInputTextFlags_CharsDecimal = 1 << 0, - ImGuiInputTextFlags_CharsHexadecimal = 1 << 1, - ImGuiInputTextFlags_CharsUppercase = 1 << 2, - ImGuiInputTextFlags_CharsNoBlank = 1 << 3, - ImGuiInputTextFlags_AutoSelectAll = 1 << 4, - ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5, - ImGuiInputTextFlags_CallbackCompletion = 1 << 6, - ImGuiInputTextFlags_CallbackHistory = 1 << 7, - ImGuiInputTextFlags_CallbackAlways = 1 << 8, - ImGuiInputTextFlags_CallbackCharFilter = 1 << 9, - ImGuiInputTextFlags_AllowTabInput = 1 << 10, - ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, - ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12, - ImGuiInputTextFlags_AlwaysOverwrite = 1 << 13, - ImGuiInputTextFlags_ReadOnly = 1 << 14, - ImGuiInputTextFlags_Password = 1 << 15, - ImGuiInputTextFlags_NoUndoRedo = 1 << 16, - ImGuiInputTextFlags_CharsScientific = 1 << 17, - ImGuiInputTextFlags_CallbackResize = 1 << 18, - ImGuiInputTextFlags_CallbackEdit = 1 << 19, - ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, + ImGuiInputTextFlags_None = 0, + ImGuiInputTextFlags_CharsDecimal = 1 << 0, + ImGuiInputTextFlags_CharsHexadecimal = 1 << 1, + ImGuiInputTextFlags_CharsUppercase = 1 << 2, + ImGuiInputTextFlags_CharsNoBlank = 1 << 3, + ImGuiInputTextFlags_AutoSelectAll = 1 << 4, + ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5, + ImGuiInputTextFlags_CallbackCompletion = 1 << 6, + ImGuiInputTextFlags_CallbackHistory = 1 << 7, + ImGuiInputTextFlags_CallbackAlways = 1 << 8, + ImGuiInputTextFlags_CallbackCharFilter = 1 << 9, + ImGuiInputTextFlags_AllowTabInput = 1 << 10, + ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, + ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12, + ImGuiInputTextFlags_AlwaysOverwrite = 1 << 13, + ImGuiInputTextFlags_ReadOnly = 1 << 14, + ImGuiInputTextFlags_Password = 1 << 15, + ImGuiInputTextFlags_NoUndoRedo = 1 << 16, + ImGuiInputTextFlags_CharsScientific = 1 << 17, + ImGuiInputTextFlags_CallbackResize = 1 << 18, + ImGuiInputTextFlags_CallbackEdit = 1 << 19, + ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, }ImGuiInputTextFlags_; typedef enum { - ImGuiTreeNodeFlags_None = 0, - ImGuiTreeNodeFlags_Selected = 1 << 0, - ImGuiTreeNodeFlags_Framed = 1 << 1, - ImGuiTreeNodeFlags_AllowOverlap = 1 << 2, - ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3, - ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4, - ImGuiTreeNodeFlags_DefaultOpen = 1 << 5, - ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6, - ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7, - ImGuiTreeNodeFlags_Leaf = 1 << 8, - ImGuiTreeNodeFlags_Bullet = 1 << 9, - ImGuiTreeNodeFlags_FramePadding = 1 << 10, - ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, - ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, - ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, - ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, + ImGuiTreeNodeFlags_None = 0, + ImGuiTreeNodeFlags_Selected = 1 << 0, + ImGuiTreeNodeFlags_Framed = 1 << 1, + ImGuiTreeNodeFlags_AllowOverlap = 1 << 2, + ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3, + ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4, + ImGuiTreeNodeFlags_DefaultOpen = 1 << 5, + ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6, + ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7, + ImGuiTreeNodeFlags_Leaf = 1 << 8, + ImGuiTreeNodeFlags_Bullet = 1 << 9, + ImGuiTreeNodeFlags_FramePadding = 1 << 10, + ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, + ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, + ImGuiTreeNodeFlags_SpanAllColumns = 1 << 13, + ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 14, + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, + + + + }ImGuiTreeNodeFlags_; typedef enum { - ImGuiPopupFlags_None = 0, - ImGuiPopupFlags_MouseButtonLeft = 0, - ImGuiPopupFlags_MouseButtonRight = 1, - ImGuiPopupFlags_MouseButtonMiddle = 2, - ImGuiPopupFlags_MouseButtonMask_ = 0x1F, - ImGuiPopupFlags_MouseButtonDefault_ = 1, - ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 5, - ImGuiPopupFlags_NoOpenOverItems = 1 << 6, - ImGuiPopupFlags_AnyPopupId = 1 << 7, - ImGuiPopupFlags_AnyPopupLevel = 1 << 8, - ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, + ImGuiPopupFlags_None = 0, + ImGuiPopupFlags_MouseButtonLeft = 0, + ImGuiPopupFlags_MouseButtonRight = 1, + ImGuiPopupFlags_MouseButtonMiddle = 2, + ImGuiPopupFlags_MouseButtonMask_ = 0x1F, + ImGuiPopupFlags_MouseButtonDefault_ = 1, + ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 5, + ImGuiPopupFlags_NoOpenOverItems = 1 << 6, + ImGuiPopupFlags_AnyPopupId = 1 << 7, + ImGuiPopupFlags_AnyPopupLevel = 1 << 8, + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, }ImGuiPopupFlags_; typedef enum { - ImGuiSelectableFlags_None = 0, - ImGuiSelectableFlags_DontClosePopups = 1 << 0, - ImGuiSelectableFlags_SpanAllColumns = 1 << 1, - ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, - ImGuiSelectableFlags_Disabled = 1 << 3, - ImGuiSelectableFlags_AllowOverlap = 1 << 4, + ImGuiSelectableFlags_None = 0, + ImGuiSelectableFlags_DontClosePopups = 1 << 0, + ImGuiSelectableFlags_SpanAllColumns = 1 << 1, + ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, + ImGuiSelectableFlags_Disabled = 1 << 3, + ImGuiSelectableFlags_AllowOverlap = 1 << 4, + + + + }ImGuiSelectableFlags_; typedef enum { - ImGuiComboFlags_None = 0, - ImGuiComboFlags_PopupAlignLeft = 1 << 0, - ImGuiComboFlags_HeightSmall = 1 << 1, - ImGuiComboFlags_HeightRegular = 1 << 2, - ImGuiComboFlags_HeightLarge = 1 << 3, - ImGuiComboFlags_HeightLargest = 1 << 4, - ImGuiComboFlags_NoArrowButton = 1 << 5, - ImGuiComboFlags_NoPreview = 1 << 6, - ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, + ImGuiComboFlags_None = 0, + ImGuiComboFlags_PopupAlignLeft = 1 << 0, + ImGuiComboFlags_HeightSmall = 1 << 1, + ImGuiComboFlags_HeightRegular = 1 << 2, + ImGuiComboFlags_HeightLarge = 1 << 3, + ImGuiComboFlags_HeightLargest = 1 << 4, + ImGuiComboFlags_NoArrowButton = 1 << 5, + ImGuiComboFlags_NoPreview = 1 << 6, + ImGuiComboFlags_WidthFitPreview = 1 << 7, + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, }ImGuiComboFlags_; typedef enum { - ImGuiTabBarFlags_None = 0, - ImGuiTabBarFlags_Reorderable = 1 << 0, - ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1, - ImGuiTabBarFlags_TabListPopupButton = 1 << 2, - ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, - ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4, - ImGuiTabBarFlags_NoTooltip = 1 << 5, - ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, - ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, - ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, - ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, + ImGuiTabBarFlags_None = 0, + ImGuiTabBarFlags_Reorderable = 1 << 0, + ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1, + ImGuiTabBarFlags_TabListPopupButton = 1 << 2, + ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, + ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4, + ImGuiTabBarFlags_NoTooltip = 1 << 5, + ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, + ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, + ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, }ImGuiTabBarFlags_; typedef enum { - ImGuiTabItemFlags_None = 0, - ImGuiTabItemFlags_UnsavedDocument = 1 << 0, - ImGuiTabItemFlags_SetSelected = 1 << 1, - ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, - ImGuiTabItemFlags_NoPushId = 1 << 3, - ImGuiTabItemFlags_NoTooltip = 1 << 4, - ImGuiTabItemFlags_NoReorder = 1 << 5, - ImGuiTabItemFlags_Leading = 1 << 6, - ImGuiTabItemFlags_Trailing = 1 << 7, + ImGuiTabItemFlags_None = 0, + ImGuiTabItemFlags_UnsavedDocument = 1 << 0, + ImGuiTabItemFlags_SetSelected = 1 << 1, + ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, + ImGuiTabItemFlags_NoPushId = 1 << 3, + ImGuiTabItemFlags_NoTooltip = 1 << 4, + ImGuiTabItemFlags_NoReorder = 1 << 5, + ImGuiTabItemFlags_Leading = 1 << 6, + ImGuiTabItemFlags_Trailing = 1 << 7, }ImGuiTabItemFlags_; typedef enum { - ImGuiTableFlags_None = 0, - ImGuiTableFlags_Resizable = 1 << 0, - ImGuiTableFlags_Reorderable = 1 << 1, - ImGuiTableFlags_Hideable = 1 << 2, - ImGuiTableFlags_Sortable = 1 << 3, - ImGuiTableFlags_NoSavedSettings = 1 << 4, - ImGuiTableFlags_ContextMenuInBody = 1 << 5, - ImGuiTableFlags_RowBg = 1 << 6, - ImGuiTableFlags_BordersInnerH = 1 << 7, - ImGuiTableFlags_BordersOuterH = 1 << 8, - ImGuiTableFlags_BordersInnerV = 1 << 9, - ImGuiTableFlags_BordersOuterV = 1 << 10, - ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH, - ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV, - ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, - ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, - ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, - ImGuiTableFlags_NoBordersInBody = 1 << 11, - ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, - ImGuiTableFlags_SizingFixedFit = 1 << 13, - ImGuiTableFlags_SizingFixedSame = 2 << 13, - ImGuiTableFlags_SizingStretchProp = 3 << 13, - ImGuiTableFlags_SizingStretchSame = 4 << 13, - ImGuiTableFlags_NoHostExtendX = 1 << 16, - ImGuiTableFlags_NoHostExtendY = 1 << 17, - ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18, - ImGuiTableFlags_PreciseWidths = 1 << 19, - ImGuiTableFlags_NoClip = 1 << 20, - ImGuiTableFlags_PadOuterX = 1 << 21, - ImGuiTableFlags_NoPadOuterX = 1 << 22, - ImGuiTableFlags_NoPadInnerX = 1 << 23, - ImGuiTableFlags_ScrollX = 1 << 24, - ImGuiTableFlags_ScrollY = 1 << 25, - ImGuiTableFlags_SortMulti = 1 << 26, - ImGuiTableFlags_SortTristate = 1 << 27, - ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, + ImGuiTableFlags_None = 0, + ImGuiTableFlags_Resizable = 1 << 0, + ImGuiTableFlags_Reorderable = 1 << 1, + ImGuiTableFlags_Hideable = 1 << 2, + ImGuiTableFlags_Sortable = 1 << 3, + ImGuiTableFlags_NoSavedSettings = 1 << 4, + ImGuiTableFlags_ContextMenuInBody = 1 << 5, + ImGuiTableFlags_RowBg = 1 << 6, + ImGuiTableFlags_BordersInnerH = 1 << 7, + ImGuiTableFlags_BordersOuterH = 1 << 8, + ImGuiTableFlags_BordersInnerV = 1 << 9, + ImGuiTableFlags_BordersOuterV = 1 << 10, + ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH, + ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV, + ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, + ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, + ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, + ImGuiTableFlags_NoBordersInBody = 1 << 11, + ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, + ImGuiTableFlags_SizingFixedFit = 1 << 13, + ImGuiTableFlags_SizingFixedSame = 2 << 13, + ImGuiTableFlags_SizingStretchProp = 3 << 13, + ImGuiTableFlags_SizingStretchSame = 4 << 13, + ImGuiTableFlags_NoHostExtendX = 1 << 16, + ImGuiTableFlags_NoHostExtendY = 1 << 17, + ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18, + ImGuiTableFlags_PreciseWidths = 1 << 19, + ImGuiTableFlags_NoClip = 1 << 20, + ImGuiTableFlags_PadOuterX = 1 << 21, + ImGuiTableFlags_NoPadOuterX = 1 << 22, + ImGuiTableFlags_NoPadInnerX = 1 << 23, + ImGuiTableFlags_ScrollX = 1 << 24, + ImGuiTableFlags_ScrollY = 1 << 25, + ImGuiTableFlags_SortMulti = 1 << 26, + ImGuiTableFlags_SortTristate = 1 << 27, + ImGuiTableFlags_HighlightHoveredColumn = 1 << 28, + ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, }ImGuiTableFlags_; typedef enum { - ImGuiTableColumnFlags_None = 0, - ImGuiTableColumnFlags_Disabled = 1 << 0, - ImGuiTableColumnFlags_DefaultHide = 1 << 1, - ImGuiTableColumnFlags_DefaultSort = 1 << 2, - ImGuiTableColumnFlags_WidthStretch = 1 << 3, - ImGuiTableColumnFlags_WidthFixed = 1 << 4, - ImGuiTableColumnFlags_NoResize = 1 << 5, - ImGuiTableColumnFlags_NoReorder = 1 << 6, - ImGuiTableColumnFlags_NoHide = 1 << 7, - ImGuiTableColumnFlags_NoClip = 1 << 8, - ImGuiTableColumnFlags_NoSort = 1 << 9, - ImGuiTableColumnFlags_NoSortAscending = 1 << 10, - ImGuiTableColumnFlags_NoSortDescending = 1 << 11, - ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12, - ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13, - ImGuiTableColumnFlags_PreferSortAscending = 1 << 14, - ImGuiTableColumnFlags_PreferSortDescending = 1 << 15, - ImGuiTableColumnFlags_IndentEnable = 1 << 16, - ImGuiTableColumnFlags_IndentDisable = 1 << 17, - ImGuiTableColumnFlags_IsEnabled = 1 << 24, - ImGuiTableColumnFlags_IsVisible = 1 << 25, - ImGuiTableColumnFlags_IsSorted = 1 << 26, - ImGuiTableColumnFlags_IsHovered = 1 << 27, - ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, - ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, - ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, - ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, + ImGuiTableColumnFlags_None = 0, + ImGuiTableColumnFlags_Disabled = 1 << 0, + ImGuiTableColumnFlags_DefaultHide = 1 << 1, + ImGuiTableColumnFlags_DefaultSort = 1 << 2, + ImGuiTableColumnFlags_WidthStretch = 1 << 3, + ImGuiTableColumnFlags_WidthFixed = 1 << 4, + ImGuiTableColumnFlags_NoResize = 1 << 5, + ImGuiTableColumnFlags_NoReorder = 1 << 6, + ImGuiTableColumnFlags_NoHide = 1 << 7, + ImGuiTableColumnFlags_NoClip = 1 << 8, + ImGuiTableColumnFlags_NoSort = 1 << 9, + ImGuiTableColumnFlags_NoSortAscending = 1 << 10, + ImGuiTableColumnFlags_NoSortDescending = 1 << 11, + ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12, + ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13, + ImGuiTableColumnFlags_PreferSortAscending = 1 << 14, + ImGuiTableColumnFlags_PreferSortDescending = 1 << 15, + ImGuiTableColumnFlags_IndentEnable = 1 << 16, + ImGuiTableColumnFlags_IndentDisable = 1 << 17, + ImGuiTableColumnFlags_AngledHeader = 1 << 18, + ImGuiTableColumnFlags_IsEnabled = 1 << 24, + ImGuiTableColumnFlags_IsVisible = 1 << 25, + ImGuiTableColumnFlags_IsSorted = 1 << 26, + ImGuiTableColumnFlags_IsHovered = 1 << 27, + ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, + ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, + ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, + ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, }ImGuiTableColumnFlags_; typedef enum { - ImGuiTableRowFlags_None = 0, - ImGuiTableRowFlags_Headers = 1 << 0, + ImGuiTableRowFlags_None = 0, + ImGuiTableRowFlags_Headers = 1 << 0, }ImGuiTableRowFlags_; typedef enum { - ImGuiTableBgTarget_None = 0, - ImGuiTableBgTarget_RowBg0 = 1, - ImGuiTableBgTarget_RowBg1 = 2, - ImGuiTableBgTarget_CellBg = 3, + ImGuiTableBgTarget_None = 0, + ImGuiTableBgTarget_RowBg0 = 1, + ImGuiTableBgTarget_RowBg1 = 2, + ImGuiTableBgTarget_CellBg = 3, }ImGuiTableBgTarget_; typedef enum { - ImGuiFocusedFlags_None = 0, - ImGuiFocusedFlags_ChildWindows = 1 << 0, - ImGuiFocusedFlags_RootWindow = 1 << 1, - ImGuiFocusedFlags_AnyWindow = 1 << 2, - ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, - ImGuiFocusedFlags_DockHierarchy = 1 << 4, - ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, + ImGuiFocusedFlags_None = 0, + ImGuiFocusedFlags_ChildWindows = 1 << 0, + ImGuiFocusedFlags_RootWindow = 1 << 1, + ImGuiFocusedFlags_AnyWindow = 1 << 2, + ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, + ImGuiFocusedFlags_DockHierarchy = 1 << 4, + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, }ImGuiFocusedFlags_; typedef enum { - ImGuiHoveredFlags_None = 0, - ImGuiHoveredFlags_ChildWindows = 1 << 0, - ImGuiHoveredFlags_RootWindow = 1 << 1, - ImGuiHoveredFlags_AnyWindow = 1 << 2, - ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3, - ImGuiHoveredFlags_DockHierarchy = 1 << 4, - ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5, - ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, - ImGuiHoveredFlags_AllowWhenOverlappedByItem = 1 << 8, - ImGuiHoveredFlags_AllowWhenOverlappedByWindow = 1 << 9, - ImGuiHoveredFlags_AllowWhenDisabled = 1 << 10, - ImGuiHoveredFlags_NoNavOverride = 1 << 11, - ImGuiHoveredFlags_AllowWhenOverlapped = ImGuiHoveredFlags_AllowWhenOverlappedByItem | ImGuiHoveredFlags_AllowWhenOverlappedByWindow, - ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, - ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, - ImGuiHoveredFlags_ForTooltip = 1 << 11, - ImGuiHoveredFlags_Stationary = 1 << 12, - ImGuiHoveredFlags_DelayNone = 1 << 13, - ImGuiHoveredFlags_DelayShort = 1 << 14, - ImGuiHoveredFlags_DelayNormal = 1 << 15, - ImGuiHoveredFlags_NoSharedDelay = 1 << 16, + ImGuiHoveredFlags_None = 0, + ImGuiHoveredFlags_ChildWindows = 1 << 0, + ImGuiHoveredFlags_RootWindow = 1 << 1, + ImGuiHoveredFlags_AnyWindow = 1 << 2, + ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3, + ImGuiHoveredFlags_DockHierarchy = 1 << 4, + ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5, + ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, + ImGuiHoveredFlags_AllowWhenOverlappedByItem = 1 << 8, + ImGuiHoveredFlags_AllowWhenOverlappedByWindow = 1 << 9, + ImGuiHoveredFlags_AllowWhenDisabled = 1 << 10, + ImGuiHoveredFlags_NoNavOverride = 1 << 11, + ImGuiHoveredFlags_AllowWhenOverlapped = ImGuiHoveredFlags_AllowWhenOverlappedByItem | ImGuiHoveredFlags_AllowWhenOverlappedByWindow, + ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, + ImGuiHoveredFlags_ForTooltip = 1 << 12, + ImGuiHoveredFlags_Stationary = 1 << 13, + ImGuiHoveredFlags_DelayNone = 1 << 14, + ImGuiHoveredFlags_DelayShort = 1 << 15, + ImGuiHoveredFlags_DelayNormal = 1 << 16, + ImGuiHoveredFlags_NoSharedDelay = 1 << 17, }ImGuiHoveredFlags_; typedef enum { - ImGuiDockNodeFlags_None = 0, - ImGuiDockNodeFlags_KeepAliveOnly = 1 << 0, - ImGuiDockNodeFlags_NoDockingInCentralNode = 1 << 2, - ImGuiDockNodeFlags_PassthruCentralNode = 1 << 3, - ImGuiDockNodeFlags_NoSplit = 1 << 4, - ImGuiDockNodeFlags_NoResize = 1 << 5, - ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6, + ImGuiDockNodeFlags_None = 0, + ImGuiDockNodeFlags_KeepAliveOnly = 1 << 0, + ImGuiDockNodeFlags_NoDockingOverCentralNode = 1 << 2, + ImGuiDockNodeFlags_PassthruCentralNode = 1 << 3, + ImGuiDockNodeFlags_NoDockingSplit = 1 << 4, + ImGuiDockNodeFlags_NoResize = 1 << 5, + ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6, + ImGuiDockNodeFlags_NoUndocking = 1 << 7, + + + + + }ImGuiDockNodeFlags_; typedef enum { - ImGuiDragDropFlags_None = 0, - ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, - ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, - ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, - ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, - ImGuiDragDropFlags_SourceExtern = 1 << 4, - ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5, - ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, - ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, - ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, - ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, + ImGuiDragDropFlags_None = 0, + ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, + ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, + ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, + ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, + ImGuiDragDropFlags_SourceExtern = 1 << 4, + ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5, + ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, + ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, + ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, }ImGuiDragDropFlags_; typedef enum { - ImGuiDataType_S8, - ImGuiDataType_U8, - ImGuiDataType_S16, - ImGuiDataType_U16, - ImGuiDataType_S32, - ImGuiDataType_U32, - ImGuiDataType_S64, - ImGuiDataType_U64, - ImGuiDataType_Float, - ImGuiDataType_Double, - ImGuiDataType_COUNT + ImGuiDataType_S8, + ImGuiDataType_U8, + ImGuiDataType_S16, + ImGuiDataType_U16, + ImGuiDataType_S32, + ImGuiDataType_U32, + ImGuiDataType_S64, + ImGuiDataType_U64, + ImGuiDataType_Float, + ImGuiDataType_Double, + ImGuiDataType_COUNT }ImGuiDataType_; typedef enum { - ImGuiDir_None = -1, - ImGuiDir_Left = 0, - ImGuiDir_Right = 1, - ImGuiDir_Up = 2, - ImGuiDir_Down = 3, - ImGuiDir_COUNT + ImGuiDir_None = -1, + ImGuiDir_Left = 0, + ImGuiDir_Right = 1, + ImGuiDir_Up = 2, + ImGuiDir_Down = 3, + ImGuiDir_COUNT }ImGuiDir_; typedef enum { - ImGuiSortDirection_None = 0, - ImGuiSortDirection_Ascending = 1, - ImGuiSortDirection_Descending = 2 + ImGuiSortDirection_None = 0, + ImGuiSortDirection_Ascending = 1, + ImGuiSortDirection_Descending = 2 }ImGuiSortDirection_; typedef enum { - ImGuiKey_None = 0, - ImGuiKey_Tab = 512, - ImGuiKey_LeftArrow = 513, - ImGuiKey_RightArrow = 514, - ImGuiKey_UpArrow = 515, - ImGuiKey_DownArrow = 516, - ImGuiKey_PageUp = 517, - ImGuiKey_PageDown = 518, - ImGuiKey_Home = 519, - ImGuiKey_End = 520, - ImGuiKey_Insert = 521, - ImGuiKey_Delete = 522, - ImGuiKey_Backspace = 523, - ImGuiKey_Space = 524, - ImGuiKey_Enter = 525, - ImGuiKey_Escape = 526, - ImGuiKey_LeftCtrl = 527, - ImGuiKey_LeftShift = 528, - ImGuiKey_LeftAlt = 529, - ImGuiKey_LeftSuper = 530, - ImGuiKey_RightCtrl = 531, - ImGuiKey_RightShift = 532, - ImGuiKey_RightAlt = 533, - ImGuiKey_RightSuper = 534, - ImGuiKey_Menu = 535, - ImGuiKey_0 = 536, - ImGuiKey_1 = 537, - ImGuiKey_2 = 538, - ImGuiKey_3 = 539, - ImGuiKey_4 = 540, - ImGuiKey_5 = 541, - ImGuiKey_6 = 542, - ImGuiKey_7 = 543, - ImGuiKey_8 = 544, - ImGuiKey_9 = 545, - ImGuiKey_A = 546, - ImGuiKey_B = 547, - ImGuiKey_C = 548, - ImGuiKey_D = 549, - ImGuiKey_E = 550, - ImGuiKey_F = 551, - ImGuiKey_G = 552, - ImGuiKey_H = 553, - ImGuiKey_I = 554, - ImGuiKey_J = 555, - ImGuiKey_K = 556, - ImGuiKey_L = 557, - ImGuiKey_M = 558, - ImGuiKey_N = 559, - ImGuiKey_O = 560, - ImGuiKey_P = 561, - ImGuiKey_Q = 562, - ImGuiKey_R = 563, - ImGuiKey_S = 564, - ImGuiKey_T = 565, - ImGuiKey_U = 566, - ImGuiKey_V = 567, - ImGuiKey_W = 568, - ImGuiKey_X = 569, - ImGuiKey_Y = 570, - ImGuiKey_Z = 571, - ImGuiKey_F1 = 572, - ImGuiKey_F2 = 573, - ImGuiKey_F3 = 574, - ImGuiKey_F4 = 575, - ImGuiKey_F5 = 576, - ImGuiKey_F6 = 577, - ImGuiKey_F7 = 578, - ImGuiKey_F8 = 579, - ImGuiKey_F9 = 580, - ImGuiKey_F10 = 581, - ImGuiKey_F11 = 582, - ImGuiKey_F12 = 583, - ImGuiKey_Apostrophe = 584, - ImGuiKey_Comma = 585, - ImGuiKey_Minus = 586, - ImGuiKey_Period = 587, - ImGuiKey_Slash = 588, - ImGuiKey_Semicolon = 589, - ImGuiKey_Equal = 590, - ImGuiKey_LeftBracket = 591, - ImGuiKey_Backslash = 592, - ImGuiKey_RightBracket = 593, - ImGuiKey_GraveAccent = 594, - ImGuiKey_CapsLock = 595, - ImGuiKey_ScrollLock = 596, - ImGuiKey_NumLock = 597, - ImGuiKey_PrintScreen = 598, - ImGuiKey_Pause = 599, - ImGuiKey_Keypad0 = 600, - ImGuiKey_Keypad1 = 601, - ImGuiKey_Keypad2 = 602, - ImGuiKey_Keypad3 = 603, - ImGuiKey_Keypad4 = 604, - ImGuiKey_Keypad5 = 605, - ImGuiKey_Keypad6 = 606, - ImGuiKey_Keypad7 = 607, - ImGuiKey_Keypad8 = 608, - ImGuiKey_Keypad9 = 609, - ImGuiKey_KeypadDecimal = 610, - ImGuiKey_KeypadDivide = 611, - ImGuiKey_KeypadMultiply = 612, - ImGuiKey_KeypadSubtract = 613, - ImGuiKey_KeypadAdd = 614, - ImGuiKey_KeypadEnter = 615, - ImGuiKey_KeypadEqual = 616, - ImGuiKey_GamepadStart = 617, - ImGuiKey_GamepadBack = 618, - ImGuiKey_GamepadFaceLeft = 619, - ImGuiKey_GamepadFaceRight = 620, - ImGuiKey_GamepadFaceUp = 621, - ImGuiKey_GamepadFaceDown = 622, - ImGuiKey_GamepadDpadLeft = 623, - ImGuiKey_GamepadDpadRight = 624, - ImGuiKey_GamepadDpadUp = 625, - ImGuiKey_GamepadDpadDown = 626, - ImGuiKey_GamepadL1 = 627, - ImGuiKey_GamepadR1 = 628, - ImGuiKey_GamepadL2 = 629, - ImGuiKey_GamepadR2 = 630, - ImGuiKey_GamepadL3 = 631, - ImGuiKey_GamepadR3 = 632, - ImGuiKey_GamepadLStickLeft = 633, - ImGuiKey_GamepadLStickRight = 634, - ImGuiKey_GamepadLStickUp = 635, - ImGuiKey_GamepadLStickDown = 636, - ImGuiKey_GamepadRStickLeft = 637, - ImGuiKey_GamepadRStickRight = 638, - ImGuiKey_GamepadRStickUp = 639, - ImGuiKey_GamepadRStickDown = 640, - ImGuiKey_MouseLeft = 641, - ImGuiKey_MouseRight = 642, - ImGuiKey_MouseMiddle = 643, - ImGuiKey_MouseX1 = 644, - ImGuiKey_MouseX2 = 645, - ImGuiKey_MouseWheelX = 646, - ImGuiKey_MouseWheelY = 647, - ImGuiKey_ReservedForModCtrl = 648, - ImGuiKey_ReservedForModShift = 649, - ImGuiKey_ReservedForModAlt = 650, - ImGuiKey_ReservedForModSuper = 651, - ImGuiKey_COUNT = 652, - ImGuiMod_None = 0, - ImGuiMod_Ctrl = 1 << 12, - ImGuiMod_Shift = 1 << 13, - ImGuiMod_Alt = 1 << 14, - ImGuiMod_Super = 1 << 15, - ImGuiMod_Shortcut = 1 << 11, - ImGuiMod_Mask_ = 0xF800, - ImGuiKey_NamedKey_BEGIN = 512, - ImGuiKey_NamedKey_END = ImGuiKey_COUNT, - ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, - ImGuiKey_KeysData_SIZE = ImGuiKey_COUNT, - ImGuiKey_KeysData_OFFSET = 0, +ImGuiKey_None=0, +ImGuiKey_Tab=512, +ImGuiKey_LeftArrow=513, +ImGuiKey_RightArrow=514, +ImGuiKey_UpArrow=515, +ImGuiKey_DownArrow=516, +ImGuiKey_PageUp=517, +ImGuiKey_PageDown=518, +ImGuiKey_Home=519, +ImGuiKey_End=520, +ImGuiKey_Insert=521, +ImGuiKey_Delete=522, +ImGuiKey_Backspace=523, +ImGuiKey_Space=524, +ImGuiKey_Enter=525, +ImGuiKey_Escape=526, +ImGuiKey_LeftCtrl=527, +ImGuiKey_LeftShift=528, +ImGuiKey_LeftAlt=529, +ImGuiKey_LeftSuper=530, +ImGuiKey_RightCtrl=531, +ImGuiKey_RightShift=532, +ImGuiKey_RightAlt=533, +ImGuiKey_RightSuper=534, +ImGuiKey_Menu=535, +ImGuiKey_0=536, +ImGuiKey_1=537, +ImGuiKey_2=538, +ImGuiKey_3=539, +ImGuiKey_4=540, +ImGuiKey_5=541, +ImGuiKey_6=542, +ImGuiKey_7=543, +ImGuiKey_8=544, +ImGuiKey_9=545, +ImGuiKey_A=546, +ImGuiKey_B=547, +ImGuiKey_C=548, +ImGuiKey_D=549, +ImGuiKey_E=550, +ImGuiKey_F=551, +ImGuiKey_G=552, +ImGuiKey_H=553, +ImGuiKey_I=554, +ImGuiKey_J=555, +ImGuiKey_K=556, +ImGuiKey_L=557, +ImGuiKey_M=558, +ImGuiKey_N=559, +ImGuiKey_O=560, +ImGuiKey_P=561, +ImGuiKey_Q=562, +ImGuiKey_R=563, +ImGuiKey_S=564, +ImGuiKey_T=565, +ImGuiKey_U=566, +ImGuiKey_V=567, +ImGuiKey_W=568, +ImGuiKey_X=569, +ImGuiKey_Y=570, +ImGuiKey_Z=571, +ImGuiKey_F1=572, +ImGuiKey_F2=573, +ImGuiKey_F3=574, +ImGuiKey_F4=575, +ImGuiKey_F5=576, +ImGuiKey_F6=577, +ImGuiKey_F7=578, +ImGuiKey_F8=579, +ImGuiKey_F9=580, +ImGuiKey_F10=581, +ImGuiKey_F11=582, +ImGuiKey_F12=583, +ImGuiKey_F13=584, +ImGuiKey_F14=585, +ImGuiKey_F15=586, +ImGuiKey_F16=587, +ImGuiKey_F17=588, +ImGuiKey_F18=589, +ImGuiKey_F19=590, +ImGuiKey_F20=591, +ImGuiKey_F21=592, +ImGuiKey_F22=593, +ImGuiKey_F23=594, +ImGuiKey_F24=595, +ImGuiKey_Apostrophe=596, +ImGuiKey_Comma=597, +ImGuiKey_Minus=598, +ImGuiKey_Period=599, +ImGuiKey_Slash=600, +ImGuiKey_Semicolon=601, +ImGuiKey_Equal=602, +ImGuiKey_LeftBracket=603, +ImGuiKey_Backslash=604, +ImGuiKey_RightBracket=605, +ImGuiKey_GraveAccent=606, +ImGuiKey_CapsLock=607, +ImGuiKey_ScrollLock=608, +ImGuiKey_NumLock=609, +ImGuiKey_PrintScreen=610, +ImGuiKey_Pause=611, +ImGuiKey_Keypad0=612, +ImGuiKey_Keypad1=613, +ImGuiKey_Keypad2=614, +ImGuiKey_Keypad3=615, +ImGuiKey_Keypad4=616, +ImGuiKey_Keypad5=617, +ImGuiKey_Keypad6=618, +ImGuiKey_Keypad7=619, +ImGuiKey_Keypad8=620, +ImGuiKey_Keypad9=621, +ImGuiKey_KeypadDecimal=622, +ImGuiKey_KeypadDivide=623, +ImGuiKey_KeypadMultiply=624, +ImGuiKey_KeypadSubtract=625, +ImGuiKey_KeypadAdd=626, +ImGuiKey_KeypadEnter=627, +ImGuiKey_KeypadEqual=628, +ImGuiKey_AppBack=629, +ImGuiKey_AppForward=630, +ImGuiKey_GamepadStart=631, +ImGuiKey_GamepadBack=632, +ImGuiKey_GamepadFaceLeft=633, +ImGuiKey_GamepadFaceRight=634, +ImGuiKey_GamepadFaceUp=635, +ImGuiKey_GamepadFaceDown=636, +ImGuiKey_GamepadDpadLeft=637, +ImGuiKey_GamepadDpadRight=638, +ImGuiKey_GamepadDpadUp=639, +ImGuiKey_GamepadDpadDown=640, +ImGuiKey_GamepadL1=641, +ImGuiKey_GamepadR1=642, +ImGuiKey_GamepadL2=643, +ImGuiKey_GamepadR2=644, +ImGuiKey_GamepadL3=645, +ImGuiKey_GamepadR3=646, +ImGuiKey_GamepadLStickLeft=647, +ImGuiKey_GamepadLStickRight=648, +ImGuiKey_GamepadLStickUp=649, +ImGuiKey_GamepadLStickDown=650, +ImGuiKey_GamepadRStickLeft=651, +ImGuiKey_GamepadRStickRight=652, +ImGuiKey_GamepadRStickUp=653, +ImGuiKey_GamepadRStickDown=654, +ImGuiKey_MouseLeft=655, +ImGuiKey_MouseRight=656, +ImGuiKey_MouseMiddle=657, +ImGuiKey_MouseX1=658, +ImGuiKey_MouseX2=659, +ImGuiKey_MouseWheelX=660, +ImGuiKey_MouseWheelY=661, +ImGuiKey_ReservedForModCtrl=662, +ImGuiKey_ReservedForModShift=663, +ImGuiKey_ReservedForModAlt=664, +ImGuiKey_ReservedForModSuper=665, +ImGuiKey_COUNT=666, +ImGuiMod_None=0, +ImGuiMod_Ctrl=1 << 12, +ImGuiMod_Shift=1 << 13, +ImGuiMod_Alt=1 << 14, +ImGuiMod_Super=1 << 15, +ImGuiMod_Shortcut=1 << 11, +ImGuiMod_Mask_=0xF800, +ImGuiKey_NamedKey_BEGIN=512, +ImGuiKey_NamedKey_END=ImGuiKey_COUNT, +ImGuiKey_NamedKey_COUNT=ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, +ImGuiKey_KeysData_SIZE=ImGuiKey_COUNT, +ImGuiKey_KeysData_OFFSET=0, }ImGuiKey; typedef enum { - ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, - ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, - ImGuiNavInput_COUNT, + ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, + ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, + ImGuiNavInput_COUNT, }ImGuiNavInput; typedef enum { - ImGuiConfigFlags_None = 0, - ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, - ImGuiConfigFlags_NavEnableGamepad = 1 << 1, - ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, - ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, - ImGuiConfigFlags_NoMouse = 1 << 4, - ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, - ImGuiConfigFlags_DockingEnable = 1 << 6, - ImGuiConfigFlags_ViewportsEnable = 1 << 10, - ImGuiConfigFlags_DpiEnableScaleViewports = 1 << 14, - ImGuiConfigFlags_DpiEnableScaleFonts = 1 << 15, - ImGuiConfigFlags_IsSRGB = 1 << 20, - ImGuiConfigFlags_IsTouchScreen = 1 << 21, + ImGuiConfigFlags_None = 0, + ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, + ImGuiConfigFlags_NavEnableGamepad = 1 << 1, + ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, + ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, + ImGuiConfigFlags_NoMouse = 1 << 4, + ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, + ImGuiConfigFlags_DockingEnable = 1 << 6, + ImGuiConfigFlags_ViewportsEnable = 1 << 10, + ImGuiConfigFlags_DpiEnableScaleViewports= 1 << 14, + ImGuiConfigFlags_DpiEnableScaleFonts = 1 << 15, + ImGuiConfigFlags_IsSRGB = 1 << 20, + ImGuiConfigFlags_IsTouchScreen = 1 << 21, }ImGuiConfigFlags_; typedef enum { - ImGuiBackendFlags_None = 0, - ImGuiBackendFlags_HasGamepad = 1 << 0, - ImGuiBackendFlags_HasMouseCursors = 1 << 1, - ImGuiBackendFlags_HasSetMousePos = 1 << 2, - ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, - ImGuiBackendFlags_PlatformHasViewports = 1 << 10, - ImGuiBackendFlags_HasMouseHoveredViewport = 1 << 11, - ImGuiBackendFlags_RendererHasViewports = 1 << 12, + ImGuiBackendFlags_None = 0, + ImGuiBackendFlags_HasGamepad = 1 << 0, + ImGuiBackendFlags_HasMouseCursors = 1 << 1, + ImGuiBackendFlags_HasSetMousePos = 1 << 2, + ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, + ImGuiBackendFlags_PlatformHasViewports = 1 << 10, + ImGuiBackendFlags_HasMouseHoveredViewport=1 << 11, + ImGuiBackendFlags_RendererHasViewports = 1 << 12, }ImGuiBackendFlags_; typedef enum { - ImGuiCol_Text, - ImGuiCol_TextDisabled, - ImGuiCol_WindowBg, - ImGuiCol_ChildBg, - ImGuiCol_PopupBg, - ImGuiCol_Border, - ImGuiCol_BorderShadow, - ImGuiCol_FrameBg, - ImGuiCol_FrameBgHovered, - ImGuiCol_FrameBgActive, - ImGuiCol_TitleBg, - ImGuiCol_TitleBgActive, - ImGuiCol_TitleBgCollapsed, - ImGuiCol_MenuBarBg, - ImGuiCol_ScrollbarBg, - ImGuiCol_ScrollbarGrab, - ImGuiCol_ScrollbarGrabHovered, - ImGuiCol_ScrollbarGrabActive, - ImGuiCol_CheckMark, - ImGuiCol_SliderGrab, - ImGuiCol_SliderGrabActive, - ImGuiCol_Button, - ImGuiCol_ButtonHovered, - ImGuiCol_ButtonActive, - ImGuiCol_Header, - ImGuiCol_HeaderHovered, - ImGuiCol_HeaderActive, - ImGuiCol_Separator, - ImGuiCol_SeparatorHovered, - ImGuiCol_SeparatorActive, - ImGuiCol_ResizeGrip, - ImGuiCol_ResizeGripHovered, - ImGuiCol_ResizeGripActive, - ImGuiCol_Tab, - ImGuiCol_TabHovered, - ImGuiCol_TabActive, - ImGuiCol_TabUnfocused, - ImGuiCol_TabUnfocusedActive, - ImGuiCol_DockingPreview, - ImGuiCol_DockingEmptyBg, - ImGuiCol_PlotLines, - ImGuiCol_PlotLinesHovered, - ImGuiCol_PlotHistogram, - ImGuiCol_PlotHistogramHovered, - ImGuiCol_TableHeaderBg, - ImGuiCol_TableBorderStrong, - ImGuiCol_TableBorderLight, - ImGuiCol_TableRowBg, - ImGuiCol_TableRowBgAlt, - ImGuiCol_TextSelectedBg, - ImGuiCol_DragDropTarget, - ImGuiCol_NavHighlight, - ImGuiCol_NavWindowingHighlight, - ImGuiCol_NavWindowingDimBg, - ImGuiCol_ModalWindowDimBg, - ImGuiCol_COUNT + ImGuiCol_Text, + ImGuiCol_TextDisabled, + ImGuiCol_WindowBg, + ImGuiCol_ChildBg, + ImGuiCol_PopupBg, + ImGuiCol_Border, + ImGuiCol_BorderShadow, + ImGuiCol_FrameBg, + ImGuiCol_FrameBgHovered, + ImGuiCol_FrameBgActive, + ImGuiCol_TitleBg, + ImGuiCol_TitleBgActive, + ImGuiCol_TitleBgCollapsed, + ImGuiCol_MenuBarBg, + ImGuiCol_ScrollbarBg, + ImGuiCol_ScrollbarGrab, + ImGuiCol_ScrollbarGrabHovered, + ImGuiCol_ScrollbarGrabActive, + ImGuiCol_CheckMark, + ImGuiCol_SliderGrab, + ImGuiCol_SliderGrabActive, + ImGuiCol_Button, + ImGuiCol_ButtonHovered, + ImGuiCol_ButtonActive, + ImGuiCol_Header, + ImGuiCol_HeaderHovered, + ImGuiCol_HeaderActive, + ImGuiCol_Separator, + ImGuiCol_SeparatorHovered, + ImGuiCol_SeparatorActive, + ImGuiCol_ResizeGrip, + ImGuiCol_ResizeGripHovered, + ImGuiCol_ResizeGripActive, + ImGuiCol_Tab, + ImGuiCol_TabHovered, + ImGuiCol_TabActive, + ImGuiCol_TabUnfocused, + ImGuiCol_TabUnfocusedActive, + ImGuiCol_DockingPreview, + ImGuiCol_DockingEmptyBg, + ImGuiCol_PlotLines, + ImGuiCol_PlotLinesHovered, + ImGuiCol_PlotHistogram, + ImGuiCol_PlotHistogramHovered, + ImGuiCol_TableHeaderBg, + ImGuiCol_TableBorderStrong, + ImGuiCol_TableBorderLight, + ImGuiCol_TableRowBg, + ImGuiCol_TableRowBgAlt, + ImGuiCol_TextSelectedBg, + ImGuiCol_DragDropTarget, + ImGuiCol_NavHighlight, + ImGuiCol_NavWindowingHighlight, + ImGuiCol_NavWindowingDimBg, + ImGuiCol_ModalWindowDimBg, + ImGuiCol_COUNT }ImGuiCol_; typedef enum { - ImGuiStyleVar_Alpha, - ImGuiStyleVar_DisabledAlpha, - ImGuiStyleVar_WindowPadding, - ImGuiStyleVar_WindowRounding, - ImGuiStyleVar_WindowBorderSize, - ImGuiStyleVar_WindowMinSize, - ImGuiStyleVar_WindowTitleAlign, - ImGuiStyleVar_ChildRounding, - ImGuiStyleVar_ChildBorderSize, - ImGuiStyleVar_PopupRounding, - ImGuiStyleVar_PopupBorderSize, - ImGuiStyleVar_FramePadding, - ImGuiStyleVar_FrameRounding, - ImGuiStyleVar_FrameBorderSize, - ImGuiStyleVar_ItemSpacing, - ImGuiStyleVar_ItemInnerSpacing, - ImGuiStyleVar_IndentSpacing, - ImGuiStyleVar_CellPadding, - ImGuiStyleVar_ScrollbarSize, - ImGuiStyleVar_ScrollbarRounding, - ImGuiStyleVar_GrabMinSize, - ImGuiStyleVar_GrabRounding, - ImGuiStyleVar_TabRounding, - ImGuiStyleVar_ButtonTextAlign, - ImGuiStyleVar_SelectableTextAlign, - ImGuiStyleVar_SeparatorTextBorderSize, - ImGuiStyleVar_SeparatorTextAlign, - ImGuiStyleVar_SeparatorTextPadding, - ImGuiStyleVar_COUNT + ImGuiStyleVar_Alpha, + ImGuiStyleVar_DisabledAlpha, + ImGuiStyleVar_WindowPadding, + ImGuiStyleVar_WindowRounding, + ImGuiStyleVar_WindowBorderSize, + ImGuiStyleVar_WindowMinSize, + ImGuiStyleVar_WindowTitleAlign, + ImGuiStyleVar_ChildRounding, + ImGuiStyleVar_ChildBorderSize, + ImGuiStyleVar_PopupRounding, + ImGuiStyleVar_PopupBorderSize, + ImGuiStyleVar_FramePadding, + ImGuiStyleVar_FrameRounding, + ImGuiStyleVar_FrameBorderSize, + ImGuiStyleVar_ItemSpacing, + ImGuiStyleVar_ItemInnerSpacing, + ImGuiStyleVar_IndentSpacing, + ImGuiStyleVar_CellPadding, + ImGuiStyleVar_ScrollbarSize, + ImGuiStyleVar_ScrollbarRounding, + ImGuiStyleVar_GrabMinSize, + ImGuiStyleVar_GrabRounding, + ImGuiStyleVar_TabRounding, + ImGuiStyleVar_TabBarBorderSize, + ImGuiStyleVar_ButtonTextAlign, + ImGuiStyleVar_SelectableTextAlign, + ImGuiStyleVar_SeparatorTextBorderSize, + ImGuiStyleVar_SeparatorTextAlign, + ImGuiStyleVar_SeparatorTextPadding, + ImGuiStyleVar_DockingSeparatorSize, + ImGuiStyleVar_COUNT }ImGuiStyleVar_; typedef enum { - ImGuiButtonFlags_None = 0, - ImGuiButtonFlags_MouseButtonLeft = 1 << 0, - ImGuiButtonFlags_MouseButtonRight = 1 << 1, - ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, - ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, - ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, + ImGuiButtonFlags_None = 0, + ImGuiButtonFlags_MouseButtonLeft = 1 << 0, + ImGuiButtonFlags_MouseButtonRight = 1 << 1, + ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, + ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, }ImGuiButtonFlags_; typedef enum { - ImGuiColorEditFlags_None = 0, - ImGuiColorEditFlags_NoAlpha = 1 << 1, - ImGuiColorEditFlags_NoPicker = 1 << 2, - ImGuiColorEditFlags_NoOptions = 1 << 3, - ImGuiColorEditFlags_NoSmallPreview = 1 << 4, - ImGuiColorEditFlags_NoInputs = 1 << 5, - ImGuiColorEditFlags_NoTooltip = 1 << 6, - ImGuiColorEditFlags_NoLabel = 1 << 7, - ImGuiColorEditFlags_NoSidePreview = 1 << 8, - ImGuiColorEditFlags_NoDragDrop = 1 << 9, - ImGuiColorEditFlags_NoBorder = 1 << 10, - ImGuiColorEditFlags_AlphaBar = 1 << 16, - ImGuiColorEditFlags_AlphaPreview = 1 << 17, - ImGuiColorEditFlags_AlphaPreviewHalf = 1 << 18, - ImGuiColorEditFlags_HDR = 1 << 19, - ImGuiColorEditFlags_DisplayRGB = 1 << 20, - ImGuiColorEditFlags_DisplayHSV = 1 << 21, - ImGuiColorEditFlags_DisplayHex = 1 << 22, - ImGuiColorEditFlags_Uint8 = 1 << 23, - ImGuiColorEditFlags_Float = 1 << 24, - ImGuiColorEditFlags_PickerHueBar = 1 << 25, - ImGuiColorEditFlags_PickerHueWheel = 1 << 26, - ImGuiColorEditFlags_InputRGB = 1 << 27, - ImGuiColorEditFlags_InputHSV = 1 << 28, - ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, - ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, - ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, - ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, - ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, + ImGuiColorEditFlags_None = 0, + ImGuiColorEditFlags_NoAlpha = 1 << 1, + ImGuiColorEditFlags_NoPicker = 1 << 2, + ImGuiColorEditFlags_NoOptions = 1 << 3, + ImGuiColorEditFlags_NoSmallPreview = 1 << 4, + ImGuiColorEditFlags_NoInputs = 1 << 5, + ImGuiColorEditFlags_NoTooltip = 1 << 6, + ImGuiColorEditFlags_NoLabel = 1 << 7, + ImGuiColorEditFlags_NoSidePreview = 1 << 8, + ImGuiColorEditFlags_NoDragDrop = 1 << 9, + ImGuiColorEditFlags_NoBorder = 1 << 10, + ImGuiColorEditFlags_AlphaBar = 1 << 16, + ImGuiColorEditFlags_AlphaPreview = 1 << 17, + ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18, + ImGuiColorEditFlags_HDR = 1 << 19, + ImGuiColorEditFlags_DisplayRGB = 1 << 20, + ImGuiColorEditFlags_DisplayHSV = 1 << 21, + ImGuiColorEditFlags_DisplayHex = 1 << 22, + ImGuiColorEditFlags_Uint8 = 1 << 23, + ImGuiColorEditFlags_Float = 1 << 24, + ImGuiColorEditFlags_PickerHueBar = 1 << 25, + ImGuiColorEditFlags_PickerHueWheel = 1 << 26, + ImGuiColorEditFlags_InputRGB = 1 << 27, + ImGuiColorEditFlags_InputHSV = 1 << 28, + ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, + ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, + ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, + ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, + ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, }ImGuiColorEditFlags_; typedef enum { - ImGuiSliderFlags_None = 0, - ImGuiSliderFlags_AlwaysClamp = 1 << 4, - ImGuiSliderFlags_Logarithmic = 1 << 5, - ImGuiSliderFlags_NoRoundToFormat = 1 << 6, - ImGuiSliderFlags_NoInput = 1 << 7, - ImGuiSliderFlags_InvalidMask_ = 0x7000000F, + ImGuiSliderFlags_None = 0, + ImGuiSliderFlags_AlwaysClamp = 1 << 4, + ImGuiSliderFlags_Logarithmic = 1 << 5, + ImGuiSliderFlags_NoRoundToFormat = 1 << 6, + ImGuiSliderFlags_NoInput = 1 << 7, + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, }ImGuiSliderFlags_; typedef enum { - ImGuiMouseButton_Left = 0, - ImGuiMouseButton_Right = 1, - ImGuiMouseButton_Middle = 2, - ImGuiMouseButton_COUNT = 5 + ImGuiMouseButton_Left = 0, + ImGuiMouseButton_Right = 1, + ImGuiMouseButton_Middle = 2, + ImGuiMouseButton_COUNT = 5 }ImGuiMouseButton_; typedef enum { - ImGuiMouseCursor_None = -1, - ImGuiMouseCursor_Arrow = 0, - ImGuiMouseCursor_TextInput, - ImGuiMouseCursor_ResizeAll, - ImGuiMouseCursor_ResizeNS, - ImGuiMouseCursor_ResizeEW, - ImGuiMouseCursor_ResizeNESW, - ImGuiMouseCursor_ResizeNWSE, - ImGuiMouseCursor_Hand, - ImGuiMouseCursor_NotAllowed, - ImGuiMouseCursor_COUNT + ImGuiMouseCursor_None = -1, + ImGuiMouseCursor_Arrow = 0, + ImGuiMouseCursor_TextInput, + ImGuiMouseCursor_ResizeAll, + ImGuiMouseCursor_ResizeNS, + ImGuiMouseCursor_ResizeEW, + ImGuiMouseCursor_ResizeNESW, + ImGuiMouseCursor_ResizeNWSE, + ImGuiMouseCursor_Hand, + ImGuiMouseCursor_NotAllowed, + ImGuiMouseCursor_COUNT }ImGuiMouseCursor_; typedef enum { - ImGuiMouseSource_Mouse = 0, - ImGuiMouseSource_TouchScreen = 1, - ImGuiMouseSource_Pen = 2, - ImGuiMouseSource_COUNT = 3, +ImGuiMouseSource_Mouse=0, +ImGuiMouseSource_TouchScreen=1, +ImGuiMouseSource_Pen=2, +ImGuiMouseSource_COUNT=3, }ImGuiMouseSource; typedef enum { - ImGuiCond_None = 0, - ImGuiCond_Always = 1 << 0, - ImGuiCond_Once = 1 << 1, - ImGuiCond_FirstUseEver = 1 << 2, - ImGuiCond_Appearing = 1 << 3, + ImGuiCond_None = 0, + ImGuiCond_Always = 1 << 0, + ImGuiCond_Once = 1 << 1, + ImGuiCond_FirstUseEver = 1 << 2, + ImGuiCond_Appearing = 1 << 3, }ImGuiCond_; struct ImGuiStyle { - float Alpha; - float DisabledAlpha; - ImVec2 WindowPadding; - float WindowRounding; - float WindowBorderSize; - ImVec2 WindowMinSize; - ImVec2 WindowTitleAlign; - ImGuiDir WindowMenuButtonPosition; - float ChildRounding; - float ChildBorderSize; - float PopupRounding; - float PopupBorderSize; - ImVec2 FramePadding; - float FrameRounding; - float FrameBorderSize; - ImVec2 ItemSpacing; - ImVec2 ItemInnerSpacing; - ImVec2 CellPadding; - ImVec2 TouchExtraPadding; - float IndentSpacing; - float ColumnsMinSpacing; - float ScrollbarSize; - float ScrollbarRounding; - float GrabMinSize; - float GrabRounding; - float LogSliderDeadzone; - float TabRounding; - float TabBorderSize; - float TabMinWidthForCloseButton; - ImGuiDir ColorButtonPosition; - ImVec2 ButtonTextAlign; - ImVec2 SelectableTextAlign; - float SeparatorTextBorderSize; - ImVec2 SeparatorTextAlign; - ImVec2 SeparatorTextPadding; - ImVec2 DisplayWindowPadding; - ImVec2 DisplaySafeAreaPadding; - float MouseCursorScale; - bool AntiAliasedLines; - bool AntiAliasedLinesUseTex; - bool AntiAliasedFill; - float CurveTessellationTol; - float CircleTessellationMaxError; - ImVec4 Colors[ImGuiCol_COUNT]; - float HoverStationaryDelay; - float HoverDelayShort; - float HoverDelayNormal; - ImGuiHoveredFlags HoverFlagsForTooltipMouse; - ImGuiHoveredFlags HoverFlagsForTooltipNav; + float Alpha; + float DisabledAlpha; + ImVec2 WindowPadding; + float WindowRounding; + float WindowBorderSize; + ImVec2 WindowMinSize; + ImVec2 WindowTitleAlign; + ImGuiDir WindowMenuButtonPosition; + float ChildRounding; + float ChildBorderSize; + float PopupRounding; + float PopupBorderSize; + ImVec2 FramePadding; + float FrameRounding; + float FrameBorderSize; + ImVec2 ItemSpacing; + ImVec2 ItemInnerSpacing; + ImVec2 CellPadding; + ImVec2 TouchExtraPadding; + float IndentSpacing; + float ColumnsMinSpacing; + float ScrollbarSize; + float ScrollbarRounding; + float GrabMinSize; + float GrabRounding; + float LogSliderDeadzone; + float TabRounding; + float TabBorderSize; + float TabMinWidthForCloseButton; + float TabBarBorderSize; + float TableAngledHeadersAngle; + ImGuiDir ColorButtonPosition; + ImVec2 ButtonTextAlign; + ImVec2 SelectableTextAlign; + float SeparatorTextBorderSize; + ImVec2 SeparatorTextAlign; + ImVec2 SeparatorTextPadding; + ImVec2 DisplayWindowPadding; + ImVec2 DisplaySafeAreaPadding; + float DockingSeparatorSize; + float MouseCursorScale; + bool AntiAliasedLines; + bool AntiAliasedLinesUseTex; + bool AntiAliasedFill; + float CurveTessellationTol; + float CircleTessellationMaxError; + ImVec4 Colors[ImGuiCol_COUNT]; + float HoverStationaryDelay; + float HoverDelayShort; + float HoverDelayNormal; + ImGuiHoveredFlags HoverFlagsForTooltipMouse; + ImGuiHoveredFlags HoverFlagsForTooltipNav; }; struct ImGuiKeyData { - bool Down; - float DownDuration; - float DownDurationPrev; - float AnalogValue; + bool Down; + float DownDuration; + float DownDurationPrev; + float AnalogValue; }; -typedef struct ImVector_ImWchar { int Size; int Capacity; ImWchar* Data; } ImVector_ImWchar; +typedef struct ImVector_ImWchar {int Size;int Capacity;ImWchar* Data;} ImVector_ImWchar; struct ImGuiIO -{ - ImGuiConfigFlags ConfigFlags; - ImGuiBackendFlags BackendFlags; - ImVec2 DisplaySize; - float DeltaTime; - float IniSavingRate; - const char* IniFilename; - const char* LogFilename; - void* UserData; ImFontAtlas* Fonts; - float FontGlobalScale; - bool FontAllowUserScaling; - ImFont* FontDefault; - ImVec2 DisplayFramebufferScale; - bool ConfigDockingNoSplit; - bool ConfigDockingWithShift; - bool ConfigDockingAlwaysTabBar; - bool ConfigDockingTransparentPayload; - bool ConfigViewportsNoAutoMerge; - bool ConfigViewportsNoTaskBarIcon; - bool ConfigViewportsNoDecoration; - bool ConfigViewportsNoDefaultParent; - bool MouseDrawCursor; - bool ConfigMacOSXBehaviors; - bool ConfigInputTrickleEventQueue; - bool ConfigInputTextCursorBlink; - bool ConfigInputTextEnterKeepActive; - bool ConfigDragClickToInputText; - bool ConfigWindowsResizeFromEdges; - bool ConfigWindowsMoveFromTitleBarOnly; - float ConfigMemoryCompactTimer; - float MouseDoubleClickTime; - float MouseDoubleClickMaxDist; - float MouseDragThreshold; - float KeyRepeatDelay; - float KeyRepeatRate; - bool ConfigDebugBeginReturnValueOnce; - bool ConfigDebugBeginReturnValueLoop; - bool ConfigDebugIgnoreFocusLoss; - bool ConfigDebugIniSettings; - const char* BackendPlatformName; - const char* BackendRendererName; - void* BackendPlatformUserData; - void* BackendRendererUserData; - void* BackendLanguageUserData; - const char* (*GetClipboardTextFn)(void* user_data); - void (*SetClipboardTextFn)(void* user_data, const char* text); - void* ClipboardUserData; - void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); void* _UnusedPadding; bool WantCaptureMouse; - bool WantCaptureKeyboard; - bool WantTextInput; - bool WantSetMousePos; - bool WantSaveIniSettings; - bool NavActive; - bool NavVisible; - float Framerate; - int MetricsRenderVertices; - int MetricsRenderIndices; - int MetricsRenderWindows; - int MetricsActiveWindows; - int MetricsActiveAllocations; - ImVec2 MouseDelta; int KeyMap[ImGuiKey_COUNT]; - bool KeysDown[ImGuiKey_COUNT]; - float NavInputs[ImGuiNavInput_COUNT]; ImGuiContext* Ctx; - ImVec2 MousePos; - bool MouseDown[5]; - float MouseWheel; - float MouseWheelH; - ImGuiMouseSource MouseSource; - ImGuiID MouseHoveredViewport; - bool KeyCtrl; - bool KeyShift; - bool KeyAlt; - bool KeySuper; - ImGuiKeyChord KeyMods; - ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; - bool WantCaptureMouseUnlessPopupClose; - ImVec2 MousePosPrev; - ImVec2 MouseClickedPos[5]; - double MouseClickedTime[5]; - bool MouseClicked[5]; - bool MouseDoubleClicked[5]; - ImU16 MouseClickedCount[5]; - ImU16 MouseClickedLastCount[5]; - bool MouseReleased[5]; - bool MouseDownOwned[5]; - bool MouseDownOwnedUnlessPopupClose[5]; - bool MouseWheelRequestAxisSwap; - float MouseDownDuration[5]; - float MouseDownDurationPrev[5]; - ImVec2 MouseDragMaxDistanceAbs[5]; - float MouseDragMaxDistanceSqr[5]; - float PenPressure; - bool AppFocusLost; - bool AppAcceptingEvents; - ImS8 BackendUsingLegacyKeyArrays; - bool BackendUsingLegacyNavInputArray; - ImWchar16 InputQueueSurrogate; - ImVector_ImWchar InputQueueCharacters; +{ ImGuiConfigFlags ConfigFlags; + ImGuiBackendFlags BackendFlags; + ImVec2 DisplaySize; + float DeltaTime; + float IniSavingRate; + const char* IniFilename; + const char* LogFilename; + void* UserData; ImFontAtlas*Fonts; + float FontGlobalScale; + bool FontAllowUserScaling; + ImFont* FontDefault; + ImVec2 DisplayFramebufferScale; + bool ConfigDockingNoSplit; + bool ConfigDockingWithShift; + bool ConfigDockingAlwaysTabBar; + bool ConfigDockingTransparentPayload; + bool ConfigViewportsNoAutoMerge; + bool ConfigViewportsNoTaskBarIcon; + bool ConfigViewportsNoDecoration; + bool ConfigViewportsNoDefaultParent; + bool MouseDrawCursor; + bool ConfigMacOSXBehaviors; + bool ConfigInputTrickleEventQueue; + bool ConfigInputTextCursorBlink; + bool ConfigInputTextEnterKeepActive; + bool ConfigDragClickToInputText; + bool ConfigWindowsResizeFromEdges; + bool ConfigWindowsMoveFromTitleBarOnly; + float ConfigMemoryCompactTimer; + float MouseDoubleClickTime; + float MouseDoubleClickMaxDist; + float MouseDragThreshold; + float KeyRepeatDelay; + float KeyRepeatRate; + bool ConfigDebugBeginReturnValueOnce; + bool ConfigDebugBeginReturnValueLoop; + bool ConfigDebugIgnoreFocusLoss; + bool ConfigDebugIniSettings; + const char* BackendPlatformName; + const char* BackendRendererName; + void* BackendPlatformUserData; + void* BackendRendererUserData; + void* BackendLanguageUserData; + const char* (*GetClipboardTextFn)(void* user_data); + void (*SetClipboardTextFn)(void* user_data, const char* text); + void* ClipboardUserData; + void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); + ImWchar PlatformLocaleDecimalPoint; bool WantCaptureMouse; + bool WantCaptureKeyboard; + bool WantTextInput; + bool WantSetMousePos; + bool WantSaveIniSettings; + bool NavActive; + bool NavVisible; + float Framerate; + int MetricsRenderVertices; + int MetricsRenderIndices; + int MetricsRenderWindows; + int MetricsActiveWindows; + ImVec2 MouseDelta; int KeyMap[ImGuiKey_COUNT]; + bool KeysDown[ImGuiKey_COUNT]; + float NavInputs[ImGuiNavInput_COUNT]; void* _UnusedPadding; ImGuiContext* Ctx; + ImVec2 MousePos; + bool MouseDown[5]; + float MouseWheel; + float MouseWheelH; + ImGuiMouseSource MouseSource; + ImGuiID MouseHoveredViewport; + bool KeyCtrl; + bool KeyShift; + bool KeyAlt; + bool KeySuper; + ImGuiKeyChord KeyMods; + ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; + bool WantCaptureMouseUnlessPopupClose; + ImVec2 MousePosPrev; + ImVec2 MouseClickedPos[5]; + double MouseClickedTime[5]; + bool MouseClicked[5]; + bool MouseDoubleClicked[5]; + ImU16 MouseClickedCount[5]; + ImU16 MouseClickedLastCount[5]; + bool MouseReleased[5]; + bool MouseDownOwned[5]; + bool MouseDownOwnedUnlessPopupClose[5]; + bool MouseWheelRequestAxisSwap; + float MouseDownDuration[5]; + float MouseDownDurationPrev[5]; + ImVec2 MouseDragMaxDistanceAbs[5]; + float MouseDragMaxDistanceSqr[5]; + float PenPressure; + bool AppFocusLost; + bool AppAcceptingEvents; + ImS8 BackendUsingLegacyKeyArrays; + bool BackendUsingLegacyNavInputArray; + ImWchar16 InputQueueSurrogate; + ImVector_ImWchar InputQueueCharacters; }; struct ImGuiInputTextCallbackData { - ImGuiContext* Ctx; - ImGuiInputTextFlags EventFlag; - ImGuiInputTextFlags Flags; - void* UserData; - ImWchar EventChar; - ImGuiKey EventKey; - char* Buf; - int BufTextLen; - int BufSize; - bool BufDirty; - int CursorPos; - int SelectionStart; - int SelectionEnd; + ImGuiContext* Ctx; + ImGuiInputTextFlags EventFlag; + ImGuiInputTextFlags Flags; + void* UserData; + ImWchar EventChar; + ImGuiKey EventKey; + char* Buf; + int BufTextLen; + int BufSize; + bool BufDirty; + int CursorPos; + int SelectionStart; + int SelectionEnd; }; struct ImGuiSizeCallbackData { - void* UserData; - ImVec2 Pos; - ImVec2 CurrentSize; - ImVec2 DesiredSize; + void* UserData; + ImVec2 Pos; + ImVec2 CurrentSize; + ImVec2 DesiredSize; }; struct ImGuiWindowClass { - ImGuiID ClassId; - ImGuiID ParentViewportId; - ImGuiViewportFlags ViewportFlagsOverrideSet; - ImGuiViewportFlags ViewportFlagsOverrideClear; - ImGuiTabItemFlags TabItemFlagsOverrideSet; - ImGuiDockNodeFlags DockNodeFlagsOverrideSet; - bool DockingAlwaysTabBar; - bool DockingAllowUnclassed; + ImGuiID ClassId; + ImGuiID ParentViewportId; + ImGuiViewportFlags ViewportFlagsOverrideSet; + ImGuiViewportFlags ViewportFlagsOverrideClear; + ImGuiTabItemFlags TabItemFlagsOverrideSet; + ImGuiDockNodeFlags DockNodeFlagsOverrideSet; + bool DockingAlwaysTabBar; + bool DockingAllowUnclassed; }; struct ImGuiPayload { - void* Data; - int DataSize; - ImGuiID SourceId; - ImGuiID SourceParentId; - int DataFrameCount; - char DataType[32 + 1]; - bool Preview; - bool Delivery; + void* Data; + int DataSize; + ImGuiID SourceId; + ImGuiID SourceParentId; + int DataFrameCount; + char DataType[32 + 1]; + bool Preview; + bool Delivery; }; struct ImGuiTableColumnSortSpecs { - ImGuiID ColumnUserID; - ImS16 ColumnIndex; - ImS16 SortOrder; - ImGuiSortDirection SortDirection : 8; + ImGuiID ColumnUserID; + ImS16 ColumnIndex; + ImS16 SortOrder; + ImGuiSortDirection SortDirection : 8; }; struct ImGuiTableSortSpecs { - const ImGuiTableColumnSortSpecs* Specs; - int SpecsCount; - bool SpecsDirty; + const ImGuiTableColumnSortSpecs* Specs; + int SpecsCount; + bool SpecsDirty; }; struct ImGuiOnceUponAFrame { - int RefFrame; + int RefFrame; }; struct ImGuiTextRange { - const char* b; - const char* e; + const char* b; + const char* e; }; typedef struct ImGuiTextRange ImGuiTextRange; -typedef struct ImVector_ImGuiTextRange { int Size; int Capacity; ImGuiTextRange* Data; } ImVector_ImGuiTextRange; +typedef struct ImVector_ImGuiTextRange {int Size;int Capacity;ImGuiTextRange* Data;} ImVector_ImGuiTextRange; struct ImGuiTextFilter { - char InputBuf[256]; - ImVector_ImGuiTextRange Filters; - int CountGrep; + char InputBuf[256]; + ImVector_ImGuiTextRange Filters; + int CountGrep; }; typedef struct ImGuiTextRange ImGuiTextRange; -typedef struct ImVector_char { int Size; int Capacity; char* Data; } ImVector_char; +typedef struct ImVector_char {int Size;int Capacity;char* Data;} ImVector_char; struct ImGuiTextBuffer { - ImVector_char Buf; + ImVector_char Buf; }; struct ImGuiStoragePair { - ImGuiID key; - union { int val_i; float val_f; void* val_p; }; + ImGuiID key; + union { int val_i; float val_f; void* val_p; }; }; typedef struct ImGuiStoragePair ImGuiStoragePair; -typedef struct ImVector_ImGuiStoragePair { int Size; int Capacity; ImGuiStoragePair* Data; } ImVector_ImGuiStoragePair; +typedef struct ImVector_ImGuiStoragePair {int Size;int Capacity;ImGuiStoragePair* Data;} ImVector_ImGuiStoragePair; struct ImGuiStorage -{ - ImVector_ImGuiStoragePair Data; +{ ImVector_ImGuiStoragePair Data; }; typedef struct ImGuiStoragePair ImGuiStoragePair; struct ImGuiListClipper { - ImGuiContext* Ctx; - int DisplayStart; - int DisplayEnd; - int ItemsCount; - float ItemsHeight; - float StartPosY; - void* TempData; + ImGuiContext* Ctx; + int DisplayStart; + int DisplayEnd; + int ItemsCount; + float ItemsHeight; + float StartPosY; + void* TempData; }; struct ImColor { - ImVec4 Value; + ImVec4 Value; }; typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); struct ImDrawCmd { - ImVec4 ClipRect; - ImTextureID TextureId; - unsigned int VtxOffset; - unsigned int IdxOffset; - unsigned int ElemCount; - ImDrawCallback UserCallback; - void* UserCallbackData; + ImVec4 ClipRect; + ImTextureID TextureId; + unsigned int VtxOffset; + unsigned int IdxOffset; + unsigned int ElemCount; + ImDrawCallback UserCallback; + void* UserCallbackData; }; struct ImDrawVert { - ImVec2 pos; - ImVec2 uv; - ImU32 col; + ImVec2 pos; + ImVec2 uv; + ImU32 col; }; typedef struct ImDrawCmdHeader ImDrawCmdHeader; struct ImDrawCmdHeader { - ImVec4 ClipRect; - ImTextureID TextureId; - unsigned int VtxOffset; + ImVec4 ClipRect; + ImTextureID TextureId; + unsigned int VtxOffset; }; -typedef struct ImVector_ImDrawCmd { int Size; int Capacity; ImDrawCmd* Data; } ImVector_ImDrawCmd; +typedef struct ImVector_ImDrawCmd {int Size;int Capacity;ImDrawCmd* Data;} ImVector_ImDrawCmd; -typedef struct ImVector_ImDrawIdx { int Size; int Capacity; ImDrawIdx* Data; } ImVector_ImDrawIdx; +typedef struct ImVector_ImDrawIdx {int Size;int Capacity;ImDrawIdx* Data;} ImVector_ImDrawIdx; struct ImDrawChannel { - ImVector_ImDrawCmd _CmdBuffer; - ImVector_ImDrawIdx _IdxBuffer; + ImVector_ImDrawCmd _CmdBuffer; + ImVector_ImDrawIdx _IdxBuffer; }; -typedef struct ImVector_ImDrawChannel { int Size; int Capacity; ImDrawChannel* Data; } ImVector_ImDrawChannel; +typedef struct ImVector_ImDrawChannel {int Size;int Capacity;ImDrawChannel* Data;} ImVector_ImDrawChannel; struct ImDrawListSplitter { - int _Current; - int _Count; - ImVector_ImDrawChannel _Channels; + int _Current; + int _Count; + ImVector_ImDrawChannel _Channels; }; typedef enum { - ImDrawFlags_None = 0, - ImDrawFlags_Closed = 1 << 0, - ImDrawFlags_RoundCornersTopLeft = 1 << 4, - ImDrawFlags_RoundCornersTopRight = 1 << 5, - ImDrawFlags_RoundCornersBottomLeft = 1 << 6, - ImDrawFlags_RoundCornersBottomRight = 1 << 7, - ImDrawFlags_RoundCornersNone = 1 << 8, - ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight, - ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, - ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft, - ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, - ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, - ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, - ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, + ImDrawFlags_None = 0, + ImDrawFlags_Closed = 1 << 0, + ImDrawFlags_RoundCornersTopLeft = 1 << 4, + ImDrawFlags_RoundCornersTopRight = 1 << 5, + ImDrawFlags_RoundCornersBottomLeft = 1 << 6, + ImDrawFlags_RoundCornersBottomRight = 1 << 7, + ImDrawFlags_RoundCornersNone = 1 << 8, + ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft, + ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, + ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, }ImDrawFlags_; typedef enum { - ImDrawListFlags_None = 0, - ImDrawListFlags_AntiAliasedLines = 1 << 0, - ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, - ImDrawListFlags_AntiAliasedFill = 1 << 2, - ImDrawListFlags_AllowVtxOffset = 1 << 3, + ImDrawListFlags_None = 0, + ImDrawListFlags_AntiAliasedLines = 1 << 0, + ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, + ImDrawListFlags_AntiAliasedFill = 1 << 2, + ImDrawListFlags_AllowVtxOffset = 1 << 3, }ImDrawListFlags_; -typedef struct ImVector_ImDrawVert { int Size; int Capacity; ImDrawVert* Data; } ImVector_ImDrawVert; +typedef struct ImVector_ImDrawVert {int Size;int Capacity;ImDrawVert* Data;} ImVector_ImDrawVert; -typedef struct ImVector_ImVec4 { int Size; int Capacity; ImVec4* Data; } ImVector_ImVec4; +typedef struct ImVector_ImVec4 {int Size;int Capacity;ImVec4* Data;} ImVector_ImVec4; -typedef struct ImVector_ImTextureID { int Size; int Capacity; ImTextureID* Data; } ImVector_ImTextureID; +typedef struct ImVector_ImTextureID {int Size;int Capacity;ImTextureID* Data;} ImVector_ImTextureID; -typedef struct ImVector_ImVec2 { int Size; int Capacity; ImVec2* Data; } ImVector_ImVec2; +typedef struct ImVector_ImVec2 {int Size;int Capacity;ImVec2* Data;} ImVector_ImVec2; struct ImDrawList { - ImVector_ImDrawCmd CmdBuffer; - ImVector_ImDrawIdx IdxBuffer; - ImVector_ImDrawVert VtxBuffer; - ImDrawListFlags Flags; - unsigned int _VtxCurrentIdx; - ImDrawListSharedData* _Data; - const char* _OwnerName; - ImDrawVert* _VtxWritePtr; - ImDrawIdx* _IdxWritePtr; - ImVector_ImVec4 _ClipRectStack; - ImVector_ImTextureID _TextureIdStack; - ImVector_ImVec2 _Path; - ImDrawCmdHeader _CmdHeader; - ImDrawListSplitter _Splitter; - float _FringeScale; + ImVector_ImDrawCmd CmdBuffer; + ImVector_ImDrawIdx IdxBuffer; + ImVector_ImDrawVert VtxBuffer; + ImDrawListFlags Flags; + unsigned int _VtxCurrentIdx; + ImDrawListSharedData* _Data; + const char* _OwnerName; + ImDrawVert* _VtxWritePtr; + ImDrawIdx* _IdxWritePtr; + ImVector_ImVec4 _ClipRectStack; + ImVector_ImTextureID _TextureIdStack; + ImVector_ImVec2 _Path; + ImDrawCmdHeader _CmdHeader; + ImDrawListSplitter _Splitter; + float _FringeScale; }; +typedef struct ImVector_ImDrawListPtr {int Size;int Capacity;ImDrawList** Data;} ImVector_ImDrawListPtr; + struct ImDrawData { - bool Valid; - int CmdListsCount; - int TotalIdxCount; - int TotalVtxCount; - ImDrawList** CmdLists; - ImVec2 DisplayPos; - ImVec2 DisplaySize; - ImVec2 FramebufferScale; - ImGuiViewport* OwnerViewport; + bool Valid; + int CmdListsCount; + int TotalIdxCount; + int TotalVtxCount; + ImVector_ImDrawListPtr CmdLists; + ImVec2 DisplayPos; + ImVec2 DisplaySize; + ImVec2 FramebufferScale; + ImGuiViewport* OwnerViewport; }; struct ImFontConfig { - void* FontData; - int FontDataSize; - bool FontDataOwnedByAtlas; - int FontNo; - float SizePixels; - int OversampleH; - int OversampleV; - bool PixelSnapH; - ImVec2 GlyphExtraSpacing; - ImVec2 GlyphOffset; - const ImWchar* GlyphRanges; - float GlyphMinAdvanceX; - float GlyphMaxAdvanceX; - bool MergeMode; - unsigned int FontBuilderFlags; - float RasterizerMultiply; - ImWchar EllipsisChar; - char Name[40]; - ImFont* DstFont; + void* FontData; + int FontDataSize; + bool FontDataOwnedByAtlas; + int FontNo; + float SizePixels; + int OversampleH; + int OversampleV; + bool PixelSnapH; + ImVec2 GlyphExtraSpacing; + ImVec2 GlyphOffset; + const ImWchar* GlyphRanges; + float GlyphMinAdvanceX; + float GlyphMaxAdvanceX; + bool MergeMode; + unsigned int FontBuilderFlags; + float RasterizerMultiply; + ImWchar EllipsisChar; + char Name[40]; + ImFont* DstFont; }; struct ImFontGlyph { - unsigned int Colored : 1; - unsigned int Visible : 1; - unsigned int Codepoint : 30; - float AdvanceX; - float X0, Y0, X1, Y1; - float U0, V0, U1, V1; + unsigned int Colored : 1; + unsigned int Visible : 1; + unsigned int Codepoint : 30; + float AdvanceX; + float X0, Y0, X1, Y1; + float U0, V0, U1, V1; }; -typedef struct ImVector_ImU32 { int Size; int Capacity; ImU32* Data; } ImVector_ImU32; +typedef struct ImVector_ImU32 {int Size;int Capacity;ImU32* Data;} ImVector_ImU32; struct ImFontGlyphRangesBuilder { - ImVector_ImU32 UsedChars; + ImVector_ImU32 UsedChars; }; typedef struct ImFontAtlasCustomRect ImFontAtlasCustomRect; struct ImFontAtlasCustomRect { - unsigned short Width, Height; - unsigned short X, Y; - unsigned int GlyphID; - float GlyphAdvanceX; - ImVec2 GlyphOffset; - ImFont* Font; + unsigned short Width, Height; + unsigned short X, Y; + unsigned int GlyphID; + float GlyphAdvanceX; + ImVec2 GlyphOffset; + ImFont* Font; }; typedef enum { - ImFontAtlasFlags_None = 0, - ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, - ImFontAtlasFlags_NoMouseCursors = 1 << 1, - ImFontAtlasFlags_NoBakedLines = 1 << 2, + ImFontAtlasFlags_None = 0, + ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, + ImFontAtlasFlags_NoMouseCursors = 1 << 1, + ImFontAtlasFlags_NoBakedLines = 1 << 2, }ImFontAtlasFlags_; -typedef struct ImVector_ImFontPtr { int Size; int Capacity; ImFont** Data; } ImVector_ImFontPtr; +typedef struct ImVector_ImFontPtr {int Size;int Capacity;ImFont** Data;} ImVector_ImFontPtr; -typedef struct ImVector_ImFontAtlasCustomRect { int Size; int Capacity; ImFontAtlasCustomRect* Data; } ImVector_ImFontAtlasCustomRect; +typedef struct ImVector_ImFontAtlasCustomRect {int Size;int Capacity;ImFontAtlasCustomRect* Data;} ImVector_ImFontAtlasCustomRect; -typedef struct ImVector_ImFontConfig { int Size; int Capacity; ImFontConfig* Data; } ImVector_ImFontConfig; +typedef struct ImVector_ImFontConfig {int Size;int Capacity;ImFontConfig* Data;} ImVector_ImFontConfig; struct ImFontAtlas -{ - ImFontAtlasFlags Flags; - ImTextureID TexID; - int TexDesiredWidth; - int TexGlyphPadding; - bool Locked; - void* UserData; - bool TexReady; - bool TexPixelsUseColors; - unsigned char* TexPixelsAlpha8; - unsigned int* TexPixelsRGBA32; - int TexWidth; - int TexHeight; - ImVec2 TexUvScale; - ImVec2 TexUvWhitePixel; - ImVector_ImFontPtr Fonts; - ImVector_ImFontAtlasCustomRect CustomRects; - ImVector_ImFontConfig ConfigData; - ImVec4 TexUvLines[(63) + 1]; - const ImFontBuilderIO* FontBuilderIO; - unsigned int FontBuilderFlags; - int PackIdMouseCursors; - int PackIdLines; +{ ImFontAtlasFlags Flags; + ImTextureID TexID; + int TexDesiredWidth; + int TexGlyphPadding; + bool Locked; + void* UserData; + bool TexReady; + bool TexPixelsUseColors; + unsigned char* TexPixelsAlpha8; + unsigned int* TexPixelsRGBA32; + int TexWidth; + int TexHeight; + ImVec2 TexUvScale; + ImVec2 TexUvWhitePixel; + ImVector_ImFontPtr Fonts; + ImVector_ImFontAtlasCustomRect CustomRects; + ImVector_ImFontConfig ConfigData; + ImVec4 TexUvLines[(63) + 1]; + const ImFontBuilderIO* FontBuilderIO; + unsigned int FontBuilderFlags; + int PackIdMouseCursors; + int PackIdLines; }; -typedef struct ImVector_float { int Size; int Capacity; float* Data; } ImVector_float; +typedef struct ImVector_float {int Size;int Capacity;float* Data;} ImVector_float; -typedef struct ImVector_ImFontGlyph { int Size; int Capacity; ImFontGlyph* Data; } ImVector_ImFontGlyph; +typedef struct ImVector_ImFontGlyph {int Size;int Capacity;ImFontGlyph* Data;} ImVector_ImFontGlyph; struct ImFont { - ImVector_float IndexAdvanceX; - float FallbackAdvanceX; - float FontSize; - ImVector_ImWchar IndexLookup; - ImVector_ImFontGlyph Glyphs; - const ImFontGlyph* FallbackGlyph; - ImFontAtlas* ContainerAtlas; - const ImFontConfig* ConfigData; - short ConfigDataCount; - ImWchar FallbackChar; - ImWchar EllipsisChar; - short EllipsisCharCount; - float EllipsisWidth; - float EllipsisCharStep; - bool DirtyLookupTables; - float Scale; - float Ascent, Descent; - int MetricsTotalSurface; - ImU8 Used4kPagesMap[(0xFFFF + 1) / 4096 / 8]; + ImVector_float IndexAdvanceX; + float FallbackAdvanceX; + float FontSize; + ImVector_ImWchar IndexLookup; + ImVector_ImFontGlyph Glyphs; + const ImFontGlyph* FallbackGlyph; + ImFontAtlas* ContainerAtlas; + const ImFontConfig* ConfigData; + short ConfigDataCount; + ImWchar FallbackChar; + ImWchar EllipsisChar; + short EllipsisCharCount; + float EllipsisWidth; + float EllipsisCharStep; + bool DirtyLookupTables; + float Scale; + float Ascent, Descent; + int MetricsTotalSurface; + ImU8 Used4kPagesMap[(0xFFFF +1)/4096/8]; }; typedef enum { - ImGuiViewportFlags_None = 0, - ImGuiViewportFlags_IsPlatformWindow = 1 << 0, - ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, - ImGuiViewportFlags_OwnedByApp = 1 << 2, - ImGuiViewportFlags_NoDecoration = 1 << 3, - ImGuiViewportFlags_NoTaskBarIcon = 1 << 4, - ImGuiViewportFlags_NoFocusOnAppearing = 1 << 5, - ImGuiViewportFlags_NoFocusOnClick = 1 << 6, - ImGuiViewportFlags_NoInputs = 1 << 7, - ImGuiViewportFlags_NoRendererClear = 1 << 8, - ImGuiViewportFlags_NoAutoMerge = 1 << 9, - ImGuiViewportFlags_TopMost = 1 << 10, - ImGuiViewportFlags_CanHostOtherWindows = 1 << 11, - ImGuiViewportFlags_IsMinimized = 1 << 12, - ImGuiViewportFlags_IsFocused = 1 << 13, + ImGuiViewportFlags_None = 0, + ImGuiViewportFlags_IsPlatformWindow = 1 << 0, + ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, + ImGuiViewportFlags_OwnedByApp = 1 << 2, + ImGuiViewportFlags_NoDecoration = 1 << 3, + ImGuiViewportFlags_NoTaskBarIcon = 1 << 4, + ImGuiViewportFlags_NoFocusOnAppearing = 1 << 5, + ImGuiViewportFlags_NoFocusOnClick = 1 << 6, + ImGuiViewportFlags_NoInputs = 1 << 7, + ImGuiViewportFlags_NoRendererClear = 1 << 8, + ImGuiViewportFlags_NoAutoMerge = 1 << 9, + ImGuiViewportFlags_TopMost = 1 << 10, + ImGuiViewportFlags_CanHostOtherWindows = 1 << 11, + ImGuiViewportFlags_IsMinimized = 1 << 12, + ImGuiViewportFlags_IsFocused = 1 << 13, }ImGuiViewportFlags_; struct ImGuiViewport { - ImGuiID ID; - ImGuiViewportFlags Flags; - ImVec2 Pos; - ImVec2 Size; - ImVec2 WorkPos; - ImVec2 WorkSize; - float DpiScale; - ImGuiID ParentViewportId; - ImDrawData* DrawData; - void* RendererUserData; - void* PlatformUserData; - void* PlatformHandle; - void* PlatformHandleRaw; - bool PlatformWindowCreated; - bool PlatformRequestMove; - bool PlatformRequestResize; - bool PlatformRequestClose; + ImGuiID ID; + ImGuiViewportFlags Flags; + ImVec2 Pos; + ImVec2 Size; + ImVec2 WorkPos; + ImVec2 WorkSize; + float DpiScale; + ImGuiID ParentViewportId; + ImDrawData* DrawData; + void* RendererUserData; + void* PlatformUserData; + void* PlatformHandle; + void* PlatformHandleRaw; + bool PlatformWindowCreated; + bool PlatformRequestMove; + bool PlatformRequestResize; + bool PlatformRequestClose; }; -typedef struct ImVector_ImGuiPlatformMonitor { int Size; int Capacity; ImGuiPlatformMonitor* Data; } ImVector_ImGuiPlatformMonitor; +typedef struct ImVector_ImGuiPlatformMonitor {int Size;int Capacity;ImGuiPlatformMonitor* Data;} ImVector_ImGuiPlatformMonitor; -typedef struct ImVector_ImGuiViewportPtr { int Size; int Capacity; ImGuiViewport** Data; } ImVector_ImGuiViewportPtr; +typedef struct ImVector_ImGuiViewportPtr {int Size;int Capacity;ImGuiViewport** Data;} ImVector_ImGuiViewportPtr; struct ImGuiPlatformIO { - void (*Platform_CreateWindow)(ImGuiViewport* vp); - void (*Platform_DestroyWindow)(ImGuiViewport* vp); - void (*Platform_ShowWindow)(ImGuiViewport* vp); - void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos); - ImVec2(*Platform_GetWindowPos)(ImGuiViewport* vp); - void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); - ImVec2(*Platform_GetWindowSize)(ImGuiViewport* vp); - void (*Platform_SetWindowFocus)(ImGuiViewport* vp); - bool (*Platform_GetWindowFocus)(ImGuiViewport* vp); - bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp); - void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str); - void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha); - void (*Platform_UpdateWindow)(ImGuiViewport* vp); - void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg); - void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg); - float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp); - void (*Platform_OnChangedViewport)(ImGuiViewport* vp); - int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface); - void (*Renderer_CreateWindow)(ImGuiViewport* vp); - void (*Renderer_DestroyWindow)(ImGuiViewport* vp); - void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); - void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg); - void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg); - ImVector_ImGuiPlatformMonitor Monitors; - ImVector_ImGuiViewportPtr Viewports; + void (*Platform_CreateWindow)(ImGuiViewport* vp); + void (*Platform_DestroyWindow)(ImGuiViewport* vp); + void (*Platform_ShowWindow)(ImGuiViewport* vp); + void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos); + ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp); + void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); + ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp); + void (*Platform_SetWindowFocus)(ImGuiViewport* vp); + bool (*Platform_GetWindowFocus)(ImGuiViewport* vp); + bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp); + void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str); + void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha); + void (*Platform_UpdateWindow)(ImGuiViewport* vp); + void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg); + void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg); + float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp); + void (*Platform_OnChangedViewport)(ImGuiViewport* vp); + int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface); + void (*Renderer_CreateWindow)(ImGuiViewport* vp); + void (*Renderer_DestroyWindow)(ImGuiViewport* vp); + void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); + void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg); + void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg); + ImVector_ImGuiPlatformMonitor Monitors; + ImVector_ImGuiViewportPtr Viewports; }; struct ImGuiPlatformMonitor { - ImVec2 MainPos, MainSize; - ImVec2 WorkPos, WorkSize; - float DpiScale; - void* PlatformHandle; + ImVec2 MainPos, MainSize; + ImVec2 WorkPos, WorkSize; + float DpiScale; + void* PlatformHandle; }; struct ImGuiPlatformImeData { - bool WantVisible; - ImVec2 InputPos; - float InputLineHeight; -}; struct ImBitVector; + bool WantVisible; + ImVec2 InputPos; + float InputLineHeight; +};struct ImBitVector; struct ImRect; struct ImDrawDataBuilder; struct ImDrawListSharedData; @@ -1436,6 +1475,7 @@ struct ImGuiLastItemData; struct ImGuiLocEntry; struct ImGuiMenuColumns; struct ImGuiNavItemData; +struct ImGuiNavTreeNodeData; struct ImGuiMetricsConfig; struct ImGuiNextWindowData; struct ImGuiNextItemData; @@ -1453,6 +1493,8 @@ struct ImGuiTableInstanceData; struct ImGuiTableTempData; struct ImGuiTableSettings; struct ImGuiTableColumnsSettings; +struct ImGuiTypingSelectState; +struct ImGuiTypingSelectRequest; struct ImGuiWindow; struct ImGuiWindowTempData; struct ImGuiWindowSettings; @@ -1473,1618 +1515,1683 @@ typedef int ImGuiScrollFlags; typedef int ImGuiSeparatorFlags; typedef int ImGuiTextFlags; typedef int ImGuiTooltipFlags; -typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...); extern ImGuiContext* GImGui; +typedef int ImGuiTypingSelectFlags; +typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...);extern ImGuiContext* GImGui; typedef struct StbUndoRecord StbUndoRecord; struct StbUndoRecord { - int where; - int insert_length; - int delete_length; - int char_storage; + int where; + int insert_length; + int delete_length; + int char_storage; }; typedef struct StbUndoState StbUndoState; struct StbUndoState { - StbUndoRecord undo_rec[99]; - ImWchar undo_char[999]; - short undo_point, redo_point; - int undo_char_point, redo_char_point; + StbUndoRecord undo_rec [99]; + ImWchar undo_char[999]; + short undo_point, redo_point; + int undo_char_point, redo_char_point; }; typedef struct STB_TexteditState STB_TexteditState; struct STB_TexteditState -{ - int cursor; int select_start; - int select_end; unsigned char insert_mode; int row_count_per_page; - unsigned char cursor_at_end_of_line; - unsigned char initialized; - unsigned char has_preferred_x; - unsigned char single_line; - unsigned char padding1, padding2, padding3; - float preferred_x; - StbUndoState undostate; +{ int cursor; int select_start; + int select_end; unsigned char insert_mode; int row_count_per_page; + unsigned char cursor_at_end_of_line; + unsigned char initialized; + unsigned char has_preferred_x; + unsigned char single_line; + unsigned char padding1, padding2, padding3; + float preferred_x; + StbUndoState undostate; }; typedef struct StbTexteditRow StbTexteditRow; struct StbTexteditRow { - float x0, x1; - float baseline_y_delta; - float ymin, ymax; - int num_chars; + float x0,x1; + float baseline_y_delta; + float ymin,ymax; + int num_chars; }; typedef FILE* ImFileHandle; typedef struct ImVec1 ImVec1; struct ImVec1 { - float x; + float x; }; typedef struct ImVec2ih ImVec2ih; struct ImVec2ih { - short x, y; + short x, y; }; struct ImRect { - ImVec2 Min; - ImVec2 Max; -}; typedef ImU32* ImBitArrayPtr; + ImVec2 Min; + ImVec2 Max; +};typedef ImU32* ImBitArrayPtr; struct ImBitVector { - ImVector_ImU32 Storage; + ImVector_ImU32 Storage; }; typedef int ImPoolIdx; typedef struct ImGuiTextIndex ImGuiTextIndex; -typedef struct ImVector_int { int Size; int Capacity; int* Data; } ImVector_int; +typedef struct ImVector_int {int Size;int Capacity;int* Data;} ImVector_int; struct ImGuiTextIndex { - ImVector_int LineOffsets; - int EndOffset; + ImVector_int LineOffsets; + int EndOffset; }; struct ImDrawListSharedData { - ImVec2 TexUvWhitePixel; - ImFont* Font; - float FontSize; - float CurveTessellationTol; - float CircleSegmentMaxError; - ImVec4 ClipRectFullscreen; - ImDrawListFlags InitialFlags; - ImVector_ImVec2 TempBuffer; - ImVec2 ArcFastVtx[48]; - float ArcFastRadiusCutoff; - ImU8 CircleSegmentCounts[64]; - const ImVec4* TexUvLines; + ImVec2 TexUvWhitePixel; + ImFont* Font; + float FontSize; + float CurveTessellationTol; + float CircleSegmentMaxError; + ImVec4 ClipRectFullscreen; + ImDrawListFlags InitialFlags; + ImVector_ImVec2 TempBuffer; + ImVec2 ArcFastVtx[48]; + float ArcFastRadiusCutoff; + ImU8 CircleSegmentCounts[64]; + const ImVec4* TexUvLines; }; -typedef struct ImVector_ImDrawListPtr { int Size; int Capacity; ImDrawList** Data; } ImVector_ImDrawListPtr; - struct ImDrawDataBuilder { - ImVector_ImDrawListPtr Layers[2]; + ImVector_ImDrawListPtr* Layers[2]; + ImVector_ImDrawListPtr LayerData1; }; typedef enum { - ImGuiItemFlags_None = 0, - ImGuiItemFlags_NoTabStop = 1 << 0, - ImGuiItemFlags_ButtonRepeat = 1 << 1, - ImGuiItemFlags_Disabled = 1 << 2, - ImGuiItemFlags_NoNav = 1 << 3, - ImGuiItemFlags_NoNavDefaultFocus = 1 << 4, - ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, - ImGuiItemFlags_MixedValue = 1 << 6, - ImGuiItemFlags_ReadOnly = 1 << 7, - ImGuiItemFlags_NoWindowHoverableCheck = 1 << 8, - ImGuiItemflags_AllowOverlap = 1 << 9, - ImGuiItemFlags_Inputable = 1 << 10, + ImGuiItemFlags_None = 0, + ImGuiItemFlags_NoTabStop = 1 << 0, + ImGuiItemFlags_ButtonRepeat = 1 << 1, + ImGuiItemFlags_Disabled = 1 << 2, + ImGuiItemFlags_NoNav = 1 << 3, + ImGuiItemFlags_NoNavDefaultFocus = 1 << 4, + ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, + ImGuiItemFlags_MixedValue = 1 << 6, + ImGuiItemFlags_ReadOnly = 1 << 7, + ImGuiItemFlags_NoWindowHoverableCheck = 1 << 8, + ImGuiItemFlags_AllowOverlap = 1 << 9, + ImGuiItemFlags_Inputable = 1 << 10, + ImGuiItemFlags_HasSelectionUserData = 1 << 11, }ImGuiItemFlags_; typedef enum { - ImGuiItemStatusFlags_None = 0, - ImGuiItemStatusFlags_HoveredRect = 1 << 0, - ImGuiItemStatusFlags_HasDisplayRect = 1 << 1, - ImGuiItemStatusFlags_Edited = 1 << 2, - ImGuiItemStatusFlags_ToggledSelection = 1 << 3, - ImGuiItemStatusFlags_ToggledOpen = 1 << 4, - ImGuiItemStatusFlags_HasDeactivated = 1 << 5, - ImGuiItemStatusFlags_Deactivated = 1 << 6, - ImGuiItemStatusFlags_HoveredWindow = 1 << 7, - ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8, - ImGuiItemStatusFlags_Visible = 1 << 9, + ImGuiItemStatusFlags_None = 0, + ImGuiItemStatusFlags_HoveredRect = 1 << 0, + ImGuiItemStatusFlags_HasDisplayRect = 1 << 1, + ImGuiItemStatusFlags_Edited = 1 << 2, + ImGuiItemStatusFlags_ToggledSelection = 1 << 3, + ImGuiItemStatusFlags_ToggledOpen = 1 << 4, + ImGuiItemStatusFlags_HasDeactivated = 1 << 5, + ImGuiItemStatusFlags_Deactivated = 1 << 6, + ImGuiItemStatusFlags_HoveredWindow = 1 << 7, + ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8, + ImGuiItemStatusFlags_Visible = 1 << 9, + + + + + + + }ImGuiItemStatusFlags_; typedef enum { - ImGuiHoveredFlags_DelayMask_ = ImGuiHoveredFlags_DelayNone | ImGuiHoveredFlags_DelayShort | ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_NoSharedDelay, - ImGuiHoveredFlags_AllowedMaskForIsWindowHovered = ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_AnyWindow | ImGuiHoveredFlags_NoPopupHierarchy | ImGuiHoveredFlags_DockHierarchy | ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_Stationary, - ImGuiHoveredFlags_AllowedMaskForIsItemHovered = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped | ImGuiHoveredFlags_AllowWhenDisabled | ImGuiHoveredFlags_NoNavOverride | ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayMask_, + ImGuiHoveredFlags_DelayMask_ = ImGuiHoveredFlags_DelayNone | ImGuiHoveredFlags_DelayShort | ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_NoSharedDelay, + ImGuiHoveredFlags_AllowedMaskForIsWindowHovered = ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_AnyWindow | ImGuiHoveredFlags_NoPopupHierarchy | ImGuiHoveredFlags_DockHierarchy | ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_Stationary, + ImGuiHoveredFlags_AllowedMaskForIsItemHovered = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped | ImGuiHoveredFlags_AllowWhenDisabled | ImGuiHoveredFlags_NoNavOverride | ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayMask_, }ImGuiHoveredFlagsPrivate_; typedef enum { - ImGuiInputTextFlags_Multiline = 1 << 26, - ImGuiInputTextFlags_NoMarkEdited = 1 << 27, - ImGuiInputTextFlags_MergedItem = 1 << 28, + ImGuiInputTextFlags_Multiline = 1 << 26, + ImGuiInputTextFlags_NoMarkEdited = 1 << 27, + ImGuiInputTextFlags_MergedItem = 1 << 28, }ImGuiInputTextFlagsPrivate_; typedef enum { - ImGuiButtonFlags_PressedOnClick = 1 << 4, - ImGuiButtonFlags_PressedOnClickRelease = 1 << 5, - ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 1 << 6, - ImGuiButtonFlags_PressedOnRelease = 1 << 7, - ImGuiButtonFlags_PressedOnDoubleClick = 1 << 8, - ImGuiButtonFlags_PressedOnDragDropHold = 1 << 9, - ImGuiButtonFlags_Repeat = 1 << 10, - ImGuiButtonFlags_FlattenChildren = 1 << 11, - ImGuiButtonFlags_AllowOverlap = 1 << 12, - ImGuiButtonFlags_DontClosePopups = 1 << 13, - ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, - ImGuiButtonFlags_NoKeyModifiers = 1 << 16, - ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, - ImGuiButtonFlags_NoNavFocus = 1 << 18, - ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, - ImGuiButtonFlags_NoSetKeyOwner = 1 << 20, - ImGuiButtonFlags_NoTestKeyOwner = 1 << 21, - ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, - ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease, + ImGuiButtonFlags_PressedOnClick = 1 << 4, + ImGuiButtonFlags_PressedOnClickRelease = 1 << 5, + ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 1 << 6, + ImGuiButtonFlags_PressedOnRelease = 1 << 7, + ImGuiButtonFlags_PressedOnDoubleClick = 1 << 8, + ImGuiButtonFlags_PressedOnDragDropHold = 1 << 9, + ImGuiButtonFlags_Repeat = 1 << 10, + ImGuiButtonFlags_FlattenChildren = 1 << 11, + ImGuiButtonFlags_AllowOverlap = 1 << 12, + ImGuiButtonFlags_DontClosePopups = 1 << 13, + ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, + ImGuiButtonFlags_NoKeyModifiers = 1 << 16, + ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, + ImGuiButtonFlags_NoNavFocus = 1 << 18, + ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, + ImGuiButtonFlags_NoSetKeyOwner = 1 << 20, + ImGuiButtonFlags_NoTestKeyOwner = 1 << 21, + ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, + ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease, }ImGuiButtonFlagsPrivate_; typedef enum { - ImGuiComboFlags_CustomPreview = 1 << 20, + ImGuiComboFlags_CustomPreview = 1 << 20, }ImGuiComboFlagsPrivate_; typedef enum { - ImGuiSliderFlags_Vertical = 1 << 20, - ImGuiSliderFlags_ReadOnly = 1 << 21, + ImGuiSliderFlags_Vertical = 1 << 20, + ImGuiSliderFlags_ReadOnly = 1 << 21, }ImGuiSliderFlagsPrivate_; typedef enum { - ImGuiSelectableFlags_NoHoldingActiveID = 1 << 20, - ImGuiSelectableFlags_SelectOnNav = 1 << 21, - ImGuiSelectableFlags_SelectOnClick = 1 << 22, - ImGuiSelectableFlags_SelectOnRelease = 1 << 23, - ImGuiSelectableFlags_SpanAvailWidth = 1 << 24, - ImGuiSelectableFlags_SetNavIdOnHover = 1 << 25, - ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 26, - ImGuiSelectableFlags_NoSetKeyOwner = 1 << 27, + ImGuiSelectableFlags_NoHoldingActiveID = 1 << 20, + ImGuiSelectableFlags_SelectOnNav = 1 << 21, + ImGuiSelectableFlags_SelectOnClick = 1 << 22, + ImGuiSelectableFlags_SelectOnRelease = 1 << 23, + ImGuiSelectableFlags_SpanAvailWidth = 1 << 24, + ImGuiSelectableFlags_SetNavIdOnHover = 1 << 25, + ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 26, + ImGuiSelectableFlags_NoSetKeyOwner = 1 << 27, }ImGuiSelectableFlagsPrivate_; typedef enum { - ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20, - ImGuiTreeNodeFlags_UpsideDownArrow = 1 << 21, + ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20, + ImGuiTreeNodeFlags_UpsideDownArrow = 1 << 21, }ImGuiTreeNodeFlagsPrivate_; typedef enum { - ImGuiSeparatorFlags_None = 0, - ImGuiSeparatorFlags_Horizontal = 1 << 0, - ImGuiSeparatorFlags_Vertical = 1 << 1, - ImGuiSeparatorFlags_SpanAllColumns = 1 << 2, + ImGuiSeparatorFlags_None = 0, + ImGuiSeparatorFlags_Horizontal = 1 << 0, + ImGuiSeparatorFlags_Vertical = 1 << 1, + ImGuiSeparatorFlags_SpanAllColumns = 1 << 2, }ImGuiSeparatorFlags_; typedef enum { - ImGuiFocusRequestFlags_None = 0, - ImGuiFocusRequestFlags_RestoreFocusedChild = 1 << 0, - ImGuiFocusRequestFlags_UnlessBelowModal = 1 << 1, + ImGuiFocusRequestFlags_None = 0, + ImGuiFocusRequestFlags_RestoreFocusedChild = 1 << 0, + ImGuiFocusRequestFlags_UnlessBelowModal = 1 << 1, }ImGuiFocusRequestFlags_; typedef enum { - ImGuiTextFlags_None = 0, - ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0, + ImGuiTextFlags_None = 0, + ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0, }ImGuiTextFlags_; typedef enum { - ImGuiTooltipFlags_None = 0, - ImGuiTooltipFlags_OverridePrevious = 1 << 1, + ImGuiTooltipFlags_None = 0, + ImGuiTooltipFlags_OverridePrevious = 1 << 1, }ImGuiTooltipFlags_; typedef enum { - ImGuiLayoutType_Horizontal = 0, - ImGuiLayoutType_Vertical = 1 + ImGuiLayoutType_Horizontal = 0, + ImGuiLayoutType_Vertical = 1 }ImGuiLayoutType_; typedef enum { - ImGuiLogType_None = 0, - ImGuiLogType_TTY, - ImGuiLogType_File, - ImGuiLogType_Buffer, - ImGuiLogType_Clipboard, + ImGuiLogType_None = 0, + ImGuiLogType_TTY, + ImGuiLogType_File, + ImGuiLogType_Buffer, + ImGuiLogType_Clipboard, }ImGuiLogType; typedef enum { - ImGuiAxis_None = -1, - ImGuiAxis_X = 0, - ImGuiAxis_Y = 1 + ImGuiAxis_None = -1, + ImGuiAxis_X = 0, + ImGuiAxis_Y = 1 }ImGuiAxis; typedef enum { - ImGuiPlotType_Lines, - ImGuiPlotType_Histogram, + ImGuiPlotType_Lines, + ImGuiPlotType_Histogram, }ImGuiPlotType; typedef enum { - ImGuiPopupPositionPolicy_Default, - ImGuiPopupPositionPolicy_ComboBox, - ImGuiPopupPositionPolicy_Tooltip, + ImGuiPopupPositionPolicy_Default, + ImGuiPopupPositionPolicy_ComboBox, + ImGuiPopupPositionPolicy_Tooltip, }ImGuiPopupPositionPolicy; struct ImGuiDataVarInfo { - ImGuiDataType Type; - ImU32 Count; - ImU32 Offset; + ImGuiDataType Type; + ImU32 Count; + ImU32 Offset; }; typedef struct ImGuiDataTypeTempStorage ImGuiDataTypeTempStorage; struct ImGuiDataTypeTempStorage { - ImU8 Data[8]; + ImU8 Data[8]; }; struct ImGuiDataTypeInfo { - size_t Size; - const char* Name; - const char* PrintFmt; - const char* ScanFmt; + size_t Size; + const char* Name; + const char* PrintFmt; + const char* ScanFmt; }; typedef enum { - ImGuiDataType_String = ImGuiDataType_COUNT + 1, - ImGuiDataType_Pointer, - ImGuiDataType_ID, + ImGuiDataType_String = ImGuiDataType_COUNT + 1, + ImGuiDataType_Pointer, + ImGuiDataType_ID, }ImGuiDataTypePrivate_; struct ImGuiColorMod { - ImGuiCol Col; - ImVec4 BackupValue; + ImGuiCol Col; + ImVec4 BackupValue; }; struct ImGuiStyleMod { - ImGuiStyleVar VarIdx; - union { int BackupInt[2]; float BackupFloat[2]; }; + ImGuiStyleVar VarIdx; + union { int BackupInt[2]; float BackupFloat[2]; }; }; typedef struct ImGuiComboPreviewData ImGuiComboPreviewData; struct ImGuiComboPreviewData { - ImRect PreviewRect; - ImVec2 BackupCursorPos; - ImVec2 BackupCursorMaxPos; - ImVec2 BackupCursorPosPrevLine; - float BackupPrevLineTextBaseOffset; - ImGuiLayoutType BackupLayout; + ImRect PreviewRect; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec2 BackupCursorPosPrevLine; + float BackupPrevLineTextBaseOffset; + ImGuiLayoutType BackupLayout; }; struct ImGuiGroupData { - ImGuiID WindowID; - ImVec2 BackupCursorPos; - ImVec2 BackupCursorMaxPos; - ImVec1 BackupIndent; - ImVec1 BackupGroupOffset; - ImVec2 BackupCurrLineSize; - float BackupCurrLineTextBaseOffset; - ImGuiID BackupActiveIdIsAlive; - bool BackupActiveIdPreviousFrameIsAlive; - bool BackupHoveredIdIsAlive; - bool EmitItem; + ImGuiID WindowID; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec2 BackupCursorPosPrevLine; + ImVec1 BackupIndent; + ImVec1 BackupGroupOffset; + ImVec2 BackupCurrLineSize; + float BackupCurrLineTextBaseOffset; + ImGuiID BackupActiveIdIsAlive; + bool BackupActiveIdPreviousFrameIsAlive; + bool BackupHoveredIdIsAlive; + bool BackupIsSameLine; + bool EmitItem; }; struct ImGuiMenuColumns { - ImU32 TotalWidth; - ImU32 NextTotalWidth; - ImU16 Spacing; - ImU16 OffsetIcon; - ImU16 OffsetLabel; - ImU16 OffsetShortcut; - ImU16 OffsetMark; - ImU16 Widths[4]; + ImU32 TotalWidth; + ImU32 NextTotalWidth; + ImU16 Spacing; + ImU16 OffsetIcon; + ImU16 OffsetLabel; + ImU16 OffsetShortcut; + ImU16 OffsetMark; + ImU16 Widths[4]; }; typedef struct ImGuiInputTextDeactivatedState ImGuiInputTextDeactivatedState; struct ImGuiInputTextDeactivatedState { - ImGuiID ID; - ImVector_char TextA; + ImGuiID ID; + ImVector_char TextA; }; struct ImGuiInputTextState { - ImGuiContext* Ctx; - ImGuiID ID; - int CurLenW, CurLenA; - ImVector_ImWchar TextW; - ImVector_char TextA; - ImVector_char InitialTextA; - bool TextAIsValid; - int BufCapacityA; - float ScrollX; - STB_TexteditState Stb; - float CursorAnim; - bool CursorFollow; - bool SelectedAllMouseLock; - bool Edited; - ImGuiInputTextFlags Flags; + ImGuiContext* Ctx; + ImGuiID ID; + int CurLenW, CurLenA; + ImVector_ImWchar TextW; + ImVector_char TextA; + ImVector_char InitialTextA; + bool TextAIsValid; + int BufCapacityA; + float ScrollX; + STB_TexteditState Stb; + float CursorAnim; + bool CursorFollow; + bool SelectedAllMouseLock; + bool Edited; + ImGuiInputTextFlags Flags; }; struct ImGuiPopupData { - ImGuiID PopupId; - ImGuiWindow* Window; - ImGuiWindow* BackupNavWindow; - int ParentNavLayer; - int OpenFrameCount; - ImGuiID OpenParentId; - ImVec2 OpenPopupPos; - ImVec2 OpenMousePos; + ImGuiID PopupId; + ImGuiWindow* Window; + ImGuiWindow* BackupNavWindow; + int ParentNavLayer; + int OpenFrameCount; + ImGuiID OpenParentId; + ImVec2 OpenPopupPos; + ImVec2 OpenMousePos; }; typedef enum { - ImGuiNextWindowDataFlags_None = 0, - ImGuiNextWindowDataFlags_HasPos = 1 << 0, - ImGuiNextWindowDataFlags_HasSize = 1 << 1, - ImGuiNextWindowDataFlags_HasContentSize = 1 << 2, - ImGuiNextWindowDataFlags_HasCollapsed = 1 << 3, - ImGuiNextWindowDataFlags_HasSizeConstraint = 1 << 4, - ImGuiNextWindowDataFlags_HasFocus = 1 << 5, - ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6, - ImGuiNextWindowDataFlags_HasScroll = 1 << 7, - ImGuiNextWindowDataFlags_HasViewport = 1 << 8, - ImGuiNextWindowDataFlags_HasDock = 1 << 9, - ImGuiNextWindowDataFlags_HasWindowClass = 1 << 10, + ImGuiNextWindowDataFlags_None = 0, + ImGuiNextWindowDataFlags_HasPos = 1 << 0, + ImGuiNextWindowDataFlags_HasSize = 1 << 1, + ImGuiNextWindowDataFlags_HasContentSize = 1 << 2, + ImGuiNextWindowDataFlags_HasCollapsed = 1 << 3, + ImGuiNextWindowDataFlags_HasSizeConstraint = 1 << 4, + ImGuiNextWindowDataFlags_HasFocus = 1 << 5, + ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6, + ImGuiNextWindowDataFlags_HasScroll = 1 << 7, + ImGuiNextWindowDataFlags_HasViewport = 1 << 8, + ImGuiNextWindowDataFlags_HasDock = 1 << 9, + ImGuiNextWindowDataFlags_HasWindowClass = 1 << 10, }ImGuiNextWindowDataFlags_; struct ImGuiNextWindowData { - ImGuiNextWindowDataFlags Flags; - ImGuiCond PosCond; - ImGuiCond SizeCond; - ImGuiCond CollapsedCond; - ImGuiCond DockCond; - ImVec2 PosVal; - ImVec2 PosPivotVal; - ImVec2 SizeVal; - ImVec2 ContentSizeVal; - ImVec2 ScrollVal; - bool PosUndock; - bool CollapsedVal; - ImRect SizeConstraintRect; - ImGuiSizeCallback SizeCallback; - void* SizeCallbackUserData; - float BgAlphaVal; - ImGuiID ViewportId; - ImGuiID DockId; - ImGuiWindowClass WindowClass; - ImVec2 MenuBarOffsetMinVal; + ImGuiNextWindowDataFlags Flags; + ImGuiCond PosCond; + ImGuiCond SizeCond; + ImGuiCond CollapsedCond; + ImGuiCond DockCond; + ImVec2 PosVal; + ImVec2 PosPivotVal; + ImVec2 SizeVal; + ImVec2 ContentSizeVal; + ImVec2 ScrollVal; + bool PosUndock; + bool CollapsedVal; + ImRect SizeConstraintRect; + ImGuiSizeCallback SizeCallback; + void* SizeCallbackUserData; + float BgAlphaVal; + ImGuiID ViewportId; + ImGuiID DockId; + ImGuiWindowClass WindowClass; + ImVec2 MenuBarOffsetMinVal; }; +typedef ImS64 ImGuiSelectionUserData; typedef enum { - ImGuiNextItemDataFlags_None = 0, - ImGuiNextItemDataFlags_HasWidth = 1 << 0, - ImGuiNextItemDataFlags_HasOpen = 1 << 1, + ImGuiNextItemDataFlags_None = 0, + ImGuiNextItemDataFlags_HasWidth = 1 << 0, + ImGuiNextItemDataFlags_HasOpen = 1 << 1, }ImGuiNextItemDataFlags_; struct ImGuiNextItemData { - ImGuiNextItemDataFlags Flags; - ImGuiItemFlags ItemFlags; - float Width; - ImGuiID FocusScopeId; - ImGuiCond OpenCond; - bool OpenVal; + ImGuiNextItemDataFlags Flags; + ImGuiItemFlags ItemFlags; + float Width; + ImGuiSelectionUserData SelectionUserData; + ImGuiCond OpenCond; + bool OpenVal; }; struct ImGuiLastItemData { - ImGuiID ID; - ImGuiItemFlags InFlags; - ImGuiItemStatusFlags StatusFlags; - ImRect Rect; - ImRect NavRect; - ImRect DisplayRect; + ImGuiID ID; + ImGuiItemFlags InFlags; + ImGuiItemStatusFlags StatusFlags; + ImRect Rect; + ImRect NavRect; + ImRect DisplayRect; +}; +struct ImGuiNavTreeNodeData +{ + ImGuiID ID; + ImGuiItemFlags InFlags; + ImRect NavRect; }; struct ImGuiStackSizes { - short SizeOfIDStack; - short SizeOfColorStack; - short SizeOfStyleVarStack; - short SizeOfFontStack; - short SizeOfFocusScopeStack; - short SizeOfGroupStack; - short SizeOfItemFlagsStack; - short SizeOfBeginPopupStack; - short SizeOfDisabledStack; + short SizeOfIDStack; + short SizeOfColorStack; + short SizeOfStyleVarStack; + short SizeOfFontStack; + short SizeOfFocusScopeStack; + short SizeOfGroupStack; + short SizeOfItemFlagsStack; + short SizeOfBeginPopupStack; + short SizeOfDisabledStack; }; typedef struct ImGuiWindowStackData ImGuiWindowStackData; struct ImGuiWindowStackData { - ImGuiWindow* Window; - ImGuiLastItemData ParentLastItemDataBackup; - ImGuiStackSizes StackSizesOnBegin; + ImGuiWindow* Window; + ImGuiLastItemData ParentLastItemDataBackup; + ImGuiStackSizes StackSizesOnBegin; }; typedef struct ImGuiShrinkWidthItem ImGuiShrinkWidthItem; struct ImGuiShrinkWidthItem { - int Index; - float Width; - float InitialWidth; + int Index; + float Width; + float InitialWidth; }; typedef struct ImGuiPtrOrIndex ImGuiPtrOrIndex; struct ImGuiPtrOrIndex { - void* Ptr; - int Index; + void* Ptr; + int Index; }; -typedef struct ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN { ImU32 Storage[(ImGuiKey_NamedKey_COUNT + 31) >> 5]; } ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN; +typedef struct ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN {ImU32 Storage[(ImGuiKey_NamedKey_COUNT+31)>>5];} ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN; typedef ImBitArray_ImGuiKey_NamedKey_COUNT__lessImGuiKey_NamedKey_BEGIN ImBitArrayForNamedKeys; typedef enum { - ImGuiInputEventType_None = 0, - ImGuiInputEventType_MousePos, - ImGuiInputEventType_MouseWheel, - ImGuiInputEventType_MouseButton, - ImGuiInputEventType_MouseViewport, - ImGuiInputEventType_Key, - ImGuiInputEventType_Text, - ImGuiInputEventType_Focus, - ImGuiInputEventType_COUNT + ImGuiInputEventType_None = 0, + ImGuiInputEventType_MousePos, + ImGuiInputEventType_MouseWheel, + ImGuiInputEventType_MouseButton, + ImGuiInputEventType_MouseViewport, + ImGuiInputEventType_Key, + ImGuiInputEventType_Text, + ImGuiInputEventType_Focus, + ImGuiInputEventType_COUNT }ImGuiInputEventType; typedef enum { - ImGuiInputSource_None = 0, - ImGuiInputSource_Mouse, - ImGuiInputSource_Keyboard, - ImGuiInputSource_Gamepad, - ImGuiInputSource_Clipboard, - ImGuiInputSource_COUNT + ImGuiInputSource_None = 0, + ImGuiInputSource_Mouse, + ImGuiInputSource_Keyboard, + ImGuiInputSource_Gamepad, + ImGuiInputSource_Clipboard, + ImGuiInputSource_COUNT }ImGuiInputSource; typedef struct ImGuiInputEventMousePos ImGuiInputEventMousePos; struct ImGuiInputEventMousePos -{ - float PosX, PosY; ImGuiMouseSource MouseSource; +{ float PosX, PosY; ImGuiMouseSource MouseSource; }; typedef struct ImGuiInputEventMouseWheel ImGuiInputEventMouseWheel; struct ImGuiInputEventMouseWheel -{ - float WheelX, WheelY; ImGuiMouseSource MouseSource; +{ float WheelX, WheelY; ImGuiMouseSource MouseSource; }; typedef struct ImGuiInputEventMouseButton ImGuiInputEventMouseButton; struct ImGuiInputEventMouseButton -{ - int Button; bool Down; ImGuiMouseSource MouseSource; +{ int Button; bool Down; ImGuiMouseSource MouseSource; }; typedef struct ImGuiInputEventMouseViewport ImGuiInputEventMouseViewport; struct ImGuiInputEventMouseViewport -{ - ImGuiID HoveredViewportID; +{ ImGuiID HoveredViewportID; }; typedef struct ImGuiInputEventKey ImGuiInputEventKey; struct ImGuiInputEventKey -{ - ImGuiKey Key; bool Down; float AnalogValue; +{ ImGuiKey Key; bool Down; float AnalogValue; }; typedef struct ImGuiInputEventText ImGuiInputEventText; struct ImGuiInputEventText -{ - unsigned int Char; +{ unsigned int Char; }; typedef struct ImGuiInputEventAppFocused ImGuiInputEventAppFocused; struct ImGuiInputEventAppFocused -{ - bool Focused; +{ bool Focused; }; typedef struct ImGuiInputEvent ImGuiInputEvent; struct ImGuiInputEvent { - ImGuiInputEventType Type; - ImGuiInputSource Source; - ImU32 EventId; - union - { - ImGuiInputEventMousePos MousePos; - ImGuiInputEventMouseWheel MouseWheel; - ImGuiInputEventMouseButton MouseButton; - ImGuiInputEventMouseViewport MouseViewport; - ImGuiInputEventKey Key; - ImGuiInputEventText Text; - ImGuiInputEventAppFocused AppFocused; - }; - bool AddedByTestEngine; -}; typedef ImS16 ImGuiKeyRoutingIndex; + ImGuiInputEventType Type; + ImGuiInputSource Source; + ImU32 EventId; + union + { + ImGuiInputEventMousePos MousePos; + ImGuiInputEventMouseWheel MouseWheel; + ImGuiInputEventMouseButton MouseButton; + ImGuiInputEventMouseViewport MouseViewport; + ImGuiInputEventKey Key; + ImGuiInputEventText Text; + ImGuiInputEventAppFocused AppFocused; + }; + bool AddedByTestEngine; +};typedef ImS16 ImGuiKeyRoutingIndex; typedef struct ImGuiKeyRoutingData ImGuiKeyRoutingData; struct ImGuiKeyRoutingData { - ImGuiKeyRoutingIndex NextEntryIndex; - ImU16 Mods; - ImU8 RoutingNextScore; - ImGuiID RoutingCurr; - ImGuiID RoutingNext; + ImGuiKeyRoutingIndex NextEntryIndex; + ImU16 Mods; + ImU8 RoutingNextScore; + ImGuiID RoutingCurr; + ImGuiID RoutingNext; }; typedef struct ImGuiKeyRoutingTable ImGuiKeyRoutingTable; -typedef struct ImVector_ImGuiKeyRoutingData { int Size; int Capacity; ImGuiKeyRoutingData* Data; } ImVector_ImGuiKeyRoutingData; +typedef struct ImVector_ImGuiKeyRoutingData {int Size;int Capacity;ImGuiKeyRoutingData* Data;} ImVector_ImGuiKeyRoutingData; struct ImGuiKeyRoutingTable { - ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]; - ImVector_ImGuiKeyRoutingData Entries; - ImVector_ImGuiKeyRoutingData EntriesNext; + ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]; + ImVector_ImGuiKeyRoutingData Entries; + ImVector_ImGuiKeyRoutingData EntriesNext; }; typedef struct ImGuiKeyOwnerData ImGuiKeyOwnerData; struct ImGuiKeyOwnerData { - ImGuiID OwnerCurr; - ImGuiID OwnerNext; - bool LockThisFrame; - bool LockUntilRelease; + ImGuiID OwnerCurr; + ImGuiID OwnerNext; + bool LockThisFrame; + bool LockUntilRelease; }; typedef enum { - ImGuiInputFlags_None = 0, - ImGuiInputFlags_Repeat = 1 << 0, - ImGuiInputFlags_RepeatRateDefault = 1 << 1, - ImGuiInputFlags_RepeatRateNavMove = 1 << 2, - ImGuiInputFlags_RepeatRateNavTweak = 1 << 3, - ImGuiInputFlags_RepeatRateMask_ = ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak, - ImGuiInputFlags_CondHovered = 1 << 4, - ImGuiInputFlags_CondActive = 1 << 5, - ImGuiInputFlags_CondDefault_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, - ImGuiInputFlags_CondMask_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, - ImGuiInputFlags_LockThisFrame = 1 << 6, - ImGuiInputFlags_LockUntilRelease = 1 << 7, - ImGuiInputFlags_RouteFocused = 1 << 8, - ImGuiInputFlags_RouteGlobalLow = 1 << 9, - ImGuiInputFlags_RouteGlobal = 1 << 10, - ImGuiInputFlags_RouteGlobalHigh = 1 << 11, - ImGuiInputFlags_RouteMask_ = ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh, - ImGuiInputFlags_RouteAlways = 1 << 12, - ImGuiInputFlags_RouteUnlessBgFocused = 1 << 13, - ImGuiInputFlags_RouteExtraMask_ = ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused, - ImGuiInputFlags_SupportedByIsKeyPressed = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_, - ImGuiInputFlags_SupportedByShortcut = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_, - ImGuiInputFlags_SupportedBySetKeyOwner = ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease, - ImGuiInputFlags_SupportedBySetItemKeyOwner = ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_, + ImGuiInputFlags_None = 0, + ImGuiInputFlags_Repeat = 1 << 0, + ImGuiInputFlags_RepeatRateDefault = 1 << 1, + ImGuiInputFlags_RepeatRateNavMove = 1 << 2, + ImGuiInputFlags_RepeatRateNavTweak = 1 << 3, + ImGuiInputFlags_RepeatRateMask_ = ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak, + ImGuiInputFlags_CondHovered = 1 << 4, + ImGuiInputFlags_CondActive = 1 << 5, + ImGuiInputFlags_CondDefault_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_CondMask_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_LockThisFrame = 1 << 6, + ImGuiInputFlags_LockUntilRelease = 1 << 7, + ImGuiInputFlags_RouteFocused = 1 << 8, + ImGuiInputFlags_RouteGlobalLow = 1 << 9, + ImGuiInputFlags_RouteGlobal = 1 << 10, + ImGuiInputFlags_RouteGlobalHigh = 1 << 11, + ImGuiInputFlags_RouteMask_ = ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh, + ImGuiInputFlags_RouteAlways = 1 << 12, + ImGuiInputFlags_RouteUnlessBgFocused= 1 << 13, + ImGuiInputFlags_RouteExtraMask_ = ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused, + ImGuiInputFlags_SupportedByIsKeyPressed = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_, + ImGuiInputFlags_SupportedByShortcut = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_, + ImGuiInputFlags_SupportedBySetKeyOwner = ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease, + ImGuiInputFlags_SupportedBySetItemKeyOwner = ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_, }ImGuiInputFlags_; typedef struct ImGuiListClipperRange ImGuiListClipperRange; struct ImGuiListClipperRange { - int Min; - int Max; - bool PosToIndexConvert; - ImS8 PosToIndexOffsetMin; - ImS8 PosToIndexOffsetMax; + int Min; + int Max; + bool PosToIndexConvert; + ImS8 PosToIndexOffsetMin; + ImS8 PosToIndexOffsetMax; }; typedef struct ImGuiListClipperData ImGuiListClipperData; -typedef struct ImVector_ImGuiListClipperRange { int Size; int Capacity; ImGuiListClipperRange* Data; } ImVector_ImGuiListClipperRange; +typedef struct ImVector_ImGuiListClipperRange {int Size;int Capacity;ImGuiListClipperRange* Data;} ImVector_ImGuiListClipperRange; struct ImGuiListClipperData { - ImGuiListClipper* ListClipper; - float LossynessOffset; - int StepNo; - int ItemsFrozen; - ImVector_ImGuiListClipperRange Ranges; + ImGuiListClipper* ListClipper; + float LossynessOffset; + int StepNo; + int ItemsFrozen; + ImVector_ImGuiListClipperRange Ranges; }; typedef enum { - ImGuiActivateFlags_None = 0, - ImGuiActivateFlags_PreferInput = 1 << 0, - ImGuiActivateFlags_PreferTweak = 1 << 1, - ImGuiActivateFlags_TryToPreserveState = 1 << 2, + ImGuiActivateFlags_None = 0, + ImGuiActivateFlags_PreferInput = 1 << 0, + ImGuiActivateFlags_PreferTweak = 1 << 1, + ImGuiActivateFlags_TryToPreserveState = 1 << 2, }ImGuiActivateFlags_; typedef enum { - ImGuiScrollFlags_None = 0, - ImGuiScrollFlags_KeepVisibleEdgeX = 1 << 0, - ImGuiScrollFlags_KeepVisibleEdgeY = 1 << 1, - ImGuiScrollFlags_KeepVisibleCenterX = 1 << 2, - ImGuiScrollFlags_KeepVisibleCenterY = 1 << 3, - ImGuiScrollFlags_AlwaysCenterX = 1 << 4, - ImGuiScrollFlags_AlwaysCenterY = 1 << 5, - ImGuiScrollFlags_NoScrollParent = 1 << 6, - ImGuiScrollFlags_MaskX_ = ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX, - ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY, + ImGuiScrollFlags_None = 0, + ImGuiScrollFlags_KeepVisibleEdgeX = 1 << 0, + ImGuiScrollFlags_KeepVisibleEdgeY = 1 << 1, + ImGuiScrollFlags_KeepVisibleCenterX = 1 << 2, + ImGuiScrollFlags_KeepVisibleCenterY = 1 << 3, + ImGuiScrollFlags_AlwaysCenterX = 1 << 4, + ImGuiScrollFlags_AlwaysCenterY = 1 << 5, + ImGuiScrollFlags_NoScrollParent = 1 << 6, + ImGuiScrollFlags_MaskX_ = ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX, + ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY, }ImGuiScrollFlags_; typedef enum { - ImGuiNavHighlightFlags_None = 0, - ImGuiNavHighlightFlags_TypeDefault = 1 << 0, - ImGuiNavHighlightFlags_TypeThin = 1 << 1, - ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, - ImGuiNavHighlightFlags_NoRounding = 1 << 3, + ImGuiNavHighlightFlags_None = 0, + ImGuiNavHighlightFlags_TypeDefault = 1 << 0, + ImGuiNavHighlightFlags_TypeThin = 1 << 1, + ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, + ImGuiNavHighlightFlags_NoRounding = 1 << 3, }ImGuiNavHighlightFlags_; typedef enum { - ImGuiNavMoveFlags_None = 0, - ImGuiNavMoveFlags_LoopX = 1 << 0, - ImGuiNavMoveFlags_LoopY = 1 << 1, - ImGuiNavMoveFlags_WrapX = 1 << 2, - ImGuiNavMoveFlags_WrapY = 1 << 3, - ImGuiNavMoveFlags_WrapMask_ = ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_LoopY | ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_WrapY, - ImGuiNavMoveFlags_AllowCurrentNavId = 1 << 4, - ImGuiNavMoveFlags_AlsoScoreVisibleSet = 1 << 5, - ImGuiNavMoveFlags_ScrollToEdgeY = 1 << 6, - ImGuiNavMoveFlags_Forwarded = 1 << 7, - ImGuiNavMoveFlags_DebugNoResult = 1 << 8, - ImGuiNavMoveFlags_FocusApi = 1 << 9, - ImGuiNavMoveFlags_Tabbing = 1 << 10, - ImGuiNavMoveFlags_Activate = 1 << 11, - ImGuiNavMoveFlags_NoSelect = 1 << 12, - ImGuiNavMoveFlags_NoSetNavHighlight = 1 << 13, + ImGuiNavMoveFlags_None = 0, + ImGuiNavMoveFlags_LoopX = 1 << 0, + ImGuiNavMoveFlags_LoopY = 1 << 1, + ImGuiNavMoveFlags_WrapX = 1 << 2, + ImGuiNavMoveFlags_WrapY = 1 << 3, + ImGuiNavMoveFlags_WrapMask_ = ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_LoopY | ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_WrapY, + ImGuiNavMoveFlags_AllowCurrentNavId = 1 << 4, + ImGuiNavMoveFlags_AlsoScoreVisibleSet = 1 << 5, + ImGuiNavMoveFlags_ScrollToEdgeY = 1 << 6, + ImGuiNavMoveFlags_Forwarded = 1 << 7, + ImGuiNavMoveFlags_DebugNoResult = 1 << 8, + ImGuiNavMoveFlags_FocusApi = 1 << 9, + ImGuiNavMoveFlags_IsTabbing = 1 << 10, + ImGuiNavMoveFlags_IsPageMove = 1 << 11, + ImGuiNavMoveFlags_Activate = 1 << 12, + ImGuiNavMoveFlags_NoSelect = 1 << 13, + ImGuiNavMoveFlags_NoSetNavHighlight = 1 << 14, }ImGuiNavMoveFlags_; typedef enum { - ImGuiNavLayer_Main = 0, - ImGuiNavLayer_Menu = 1, - ImGuiNavLayer_COUNT + ImGuiNavLayer_Main = 0, + ImGuiNavLayer_Menu = 1, + ImGuiNavLayer_COUNT }ImGuiNavLayer; struct ImGuiNavItemData { - ImGuiWindow* Window; - ImGuiID ID; - ImGuiID FocusScopeId; - ImRect RectRel; - ImGuiItemFlags InFlags; - float DistBox; - float DistCenter; - float DistAxial; + ImGuiWindow* Window; + ImGuiID ID; + ImGuiID FocusScopeId; + ImRect RectRel; + ImGuiItemFlags InFlags; + ImGuiSelectionUserData SelectionUserData; + float DistBox; + float DistCenter; + float DistAxial; +}; +typedef enum { + ImGuiTypingSelectFlags_None = 0, + ImGuiTypingSelectFlags_AllowBackspace = 1 << 0, + ImGuiTypingSelectFlags_AllowSingleCharMode = 1 << 1, +}ImGuiTypingSelectFlags_; +struct ImGuiTypingSelectRequest +{ + ImGuiTypingSelectFlags Flags; + int SearchBufferLen; + const char* SearchBuffer; + bool SelectRequest; + bool SingleCharMode; + ImS8 SingleCharSize; +}; +struct ImGuiTypingSelectState +{ + ImGuiTypingSelectRequest Request; + char SearchBuffer[64]; + ImGuiID FocusScope; + int LastRequestFrame; + float LastRequestTime; + bool SingleCharModeLock; }; typedef enum { - ImGuiOldColumnFlags_None = 0, - ImGuiOldColumnFlags_NoBorder = 1 << 0, - ImGuiOldColumnFlags_NoResize = 1 << 1, - ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, - ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, - ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4, + ImGuiOldColumnFlags_None = 0, + ImGuiOldColumnFlags_NoBorder = 1 << 0, + ImGuiOldColumnFlags_NoResize = 1 << 1, + ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, + ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, + ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4, }ImGuiOldColumnFlags_; struct ImGuiOldColumnData { - float OffsetNorm; - float OffsetNormBeforeResize; - ImGuiOldColumnFlags Flags; - ImRect ClipRect; + float OffsetNorm; + float OffsetNormBeforeResize; + ImGuiOldColumnFlags Flags; + ImRect ClipRect; }; -typedef struct ImVector_ImGuiOldColumnData { int Size; int Capacity; ImGuiOldColumnData* Data; } ImVector_ImGuiOldColumnData; +typedef struct ImVector_ImGuiOldColumnData {int Size;int Capacity;ImGuiOldColumnData* Data;} ImVector_ImGuiOldColumnData; struct ImGuiOldColumns { - ImGuiID ID; - ImGuiOldColumnFlags Flags; - bool IsFirstFrame; - bool IsBeingResized; - int Current; - int Count; - float OffMinX, OffMaxX; - float LineMinY, LineMaxY; - float HostCursorPosY; - float HostCursorMaxPosX; - ImRect HostInitialClipRect; - ImRect HostBackupClipRect; - ImRect HostBackupParentWorkRect; - ImVector_ImGuiOldColumnData Columns; - ImDrawListSplitter Splitter; + ImGuiID ID; + ImGuiOldColumnFlags Flags; + bool IsFirstFrame; + bool IsBeingResized; + int Current; + int Count; + float OffMinX, OffMaxX; + float LineMinY, LineMaxY; + float HostCursorPosY; + float HostCursorMaxPosX; + ImRect HostInitialClipRect; + ImRect HostBackupClipRect; + ImRect HostBackupParentWorkRect; + ImVector_ImGuiOldColumnData Columns; + ImDrawListSplitter Splitter; }; typedef enum { - ImGuiDockNodeFlags_DockSpace = 1 << 10, - ImGuiDockNodeFlags_CentralNode = 1 << 11, - ImGuiDockNodeFlags_NoTabBar = 1 << 12, - ImGuiDockNodeFlags_HiddenTabBar = 1 << 13, - ImGuiDockNodeFlags_NoWindowMenuButton = 1 << 14, - ImGuiDockNodeFlags_NoCloseButton = 1 << 15, - ImGuiDockNodeFlags_NoDocking = 1 << 16, - ImGuiDockNodeFlags_NoDockingSplitMe = 1 << 17, - ImGuiDockNodeFlags_NoDockingSplitOther = 1 << 18, - ImGuiDockNodeFlags_NoDockingOverMe = 1 << 19, - ImGuiDockNodeFlags_NoDockingOverOther = 1 << 20, - ImGuiDockNodeFlags_NoDockingOverEmpty = 1 << 21, - ImGuiDockNodeFlags_NoResizeX = 1 << 22, - ImGuiDockNodeFlags_NoResizeY = 1 << 23, - ImGuiDockNodeFlags_SharedFlagsInheritMask_ = ~0, - ImGuiDockNodeFlags_NoResizeFlagsMask_ = ImGuiDockNodeFlags_NoResize | ImGuiDockNodeFlags_NoResizeX | ImGuiDockNodeFlags_NoResizeY, - ImGuiDockNodeFlags_LocalFlagsMask_ = ImGuiDockNodeFlags_NoSplit | ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_AutoHideTabBar | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking, - ImGuiDockNodeFlags_LocalFlagsTransferMask_ = ImGuiDockNodeFlags_LocalFlagsMask_ & ~ImGuiDockNodeFlags_DockSpace, - ImGuiDockNodeFlags_SavedFlagsMask_ = ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking + ImGuiDockNodeFlags_DockSpace = 1 << 10, + ImGuiDockNodeFlags_CentralNode = 1 << 11, + ImGuiDockNodeFlags_NoTabBar = 1 << 12, + ImGuiDockNodeFlags_HiddenTabBar = 1 << 13, + ImGuiDockNodeFlags_NoWindowMenuButton = 1 << 14, + ImGuiDockNodeFlags_NoCloseButton = 1 << 15, + ImGuiDockNodeFlags_NoResizeX = 1 << 16, + ImGuiDockNodeFlags_NoResizeY = 1 << 17, + ImGuiDockNodeFlags_NoDockingSplitOther = 1 << 19, + ImGuiDockNodeFlags_NoDockingOverMe = 1 << 20, + ImGuiDockNodeFlags_NoDockingOverOther = 1 << 21, + ImGuiDockNodeFlags_NoDockingOverEmpty = 1 << 22, + ImGuiDockNodeFlags_NoDocking = ImGuiDockNodeFlags_NoDockingOverMe | ImGuiDockNodeFlags_NoDockingOverOther | ImGuiDockNodeFlags_NoDockingOverEmpty | ImGuiDockNodeFlags_NoDockingSplit | ImGuiDockNodeFlags_NoDockingSplitOther, + ImGuiDockNodeFlags_SharedFlagsInheritMask_ = ~0, + ImGuiDockNodeFlags_NoResizeFlagsMask_ = ImGuiDockNodeFlags_NoResize | ImGuiDockNodeFlags_NoResizeX | ImGuiDockNodeFlags_NoResizeY, + ImGuiDockNodeFlags_LocalFlagsTransferMask_ = ImGuiDockNodeFlags_NoDockingSplit | ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_AutoHideTabBar | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton, + ImGuiDockNodeFlags_SavedFlagsMask_ = ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton, }ImGuiDockNodeFlagsPrivate_; typedef enum { - ImGuiDataAuthority_Auto, - ImGuiDataAuthority_DockNode, - ImGuiDataAuthority_Window, + ImGuiDataAuthority_Auto, + ImGuiDataAuthority_DockNode, + ImGuiDataAuthority_Window, }ImGuiDataAuthority_; typedef enum { - ImGuiDockNodeState_Unknown, - ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow, - ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing, - ImGuiDockNodeState_HostWindowVisible, + ImGuiDockNodeState_Unknown, + ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow, + ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing, + ImGuiDockNodeState_HostWindowVisible, }ImGuiDockNodeState; -typedef struct ImVector_ImGuiWindowPtr { int Size; int Capacity; ImGuiWindow** Data; } ImVector_ImGuiWindowPtr; +typedef struct ImVector_ImGuiWindowPtr {int Size;int Capacity;ImGuiWindow** Data;} ImVector_ImGuiWindowPtr; struct ImGuiDockNode { - ImGuiID ID; - ImGuiDockNodeFlags SharedFlags; - ImGuiDockNodeFlags LocalFlags; - ImGuiDockNodeFlags LocalFlagsInWindows; - ImGuiDockNodeFlags MergedFlags; - ImGuiDockNodeState State; - ImGuiDockNode* ParentNode; - ImGuiDockNode* ChildNodes[2]; - ImVector_ImGuiWindowPtr Windows; - ImGuiTabBar* TabBar; - ImVec2 Pos; - ImVec2 Size; - ImVec2 SizeRef; - ImGuiAxis SplitAxis; - ImGuiWindowClass WindowClass; - ImU32 LastBgColor; ImGuiWindow* HostWindow; - ImGuiWindow* VisibleWindow; - ImGuiDockNode* CentralNode; - ImGuiDockNode* OnlyNodeWithWindows; - int CountNodeWithWindows; - int LastFrameAlive; - int LastFrameActive; - int LastFrameFocused; - ImGuiID LastFocusedNodeId; - ImGuiID SelectedTabId; - ImGuiID WantCloseTabId; - ImGuiID RefViewportId; - ImGuiDataAuthority AuthorityForPos : 3; - ImGuiDataAuthority AuthorityForSize : 3; - ImGuiDataAuthority AuthorityForViewport : 3; - bool IsVisible : 1; - bool IsFocused : 1; - bool IsBgDrawnThisFrame : 1; - bool HasCloseButton : 1; - bool HasWindowMenuButton : 1; - bool HasCentralNodeChild : 1; - bool WantCloseAll : 1; - bool WantLockSizeOnce : 1; - bool WantMouseMove : 1; - bool WantHiddenTabBarUpdate : 1; - bool WantHiddenTabBarToggle : 1; + ImGuiID ID; + ImGuiDockNodeFlags SharedFlags; + ImGuiDockNodeFlags LocalFlags; + ImGuiDockNodeFlags LocalFlagsInWindows; + ImGuiDockNodeFlags MergedFlags; + ImGuiDockNodeState State; + ImGuiDockNode* ParentNode; + ImGuiDockNode* ChildNodes[2]; + ImVector_ImGuiWindowPtr Windows; + ImGuiTabBar* TabBar; + ImVec2 Pos; + ImVec2 Size; + ImVec2 SizeRef; + ImGuiAxis SplitAxis; + ImGuiWindowClass WindowClass; + ImU32 LastBgColor; ImGuiWindow* HostWindow; + ImGuiWindow* VisibleWindow; + ImGuiDockNode* CentralNode; + ImGuiDockNode* OnlyNodeWithWindows; + int CountNodeWithWindows; + int LastFrameAlive; + int LastFrameActive; + int LastFrameFocused; + ImGuiID LastFocusedNodeId; + ImGuiID SelectedTabId; + ImGuiID WantCloseTabId; + ImGuiID RefViewportId; + ImGuiDataAuthority AuthorityForPos :3; + ImGuiDataAuthority AuthorityForSize :3; + ImGuiDataAuthority AuthorityForViewport :3; + bool IsVisible :1; + bool IsFocused :1; + bool IsBgDrawnThisFrame :1; + bool HasCloseButton :1; + bool HasWindowMenuButton :1; + bool HasCentralNodeChild :1; + bool WantCloseAll :1; + bool WantLockSizeOnce :1; + bool WantMouseMove :1; + bool WantHiddenTabBarUpdate :1; + bool WantHiddenTabBarToggle :1; }; typedef enum { - ImGuiWindowDockStyleCol_Text, - ImGuiWindowDockStyleCol_Tab, - ImGuiWindowDockStyleCol_TabHovered, - ImGuiWindowDockStyleCol_TabActive, - ImGuiWindowDockStyleCol_TabUnfocused, - ImGuiWindowDockStyleCol_TabUnfocusedActive, - ImGuiWindowDockStyleCol_COUNT + ImGuiWindowDockStyleCol_Text, + ImGuiWindowDockStyleCol_Tab, + ImGuiWindowDockStyleCol_TabHovered, + ImGuiWindowDockStyleCol_TabActive, + ImGuiWindowDockStyleCol_TabUnfocused, + ImGuiWindowDockStyleCol_TabUnfocusedActive, + ImGuiWindowDockStyleCol_COUNT }ImGuiWindowDockStyleCol; typedef struct ImGuiWindowDockStyle ImGuiWindowDockStyle; struct ImGuiWindowDockStyle { - ImU32 Colors[ImGuiWindowDockStyleCol_COUNT]; + ImU32 Colors[ImGuiWindowDockStyleCol_COUNT]; }; -typedef struct ImVector_ImGuiDockRequest { int Size; int Capacity; ImGuiDockRequest* Data; } ImVector_ImGuiDockRequest; +typedef struct ImVector_ImGuiDockRequest {int Size;int Capacity;ImGuiDockRequest* Data;} ImVector_ImGuiDockRequest; -typedef struct ImVector_ImGuiDockNodeSettings { int Size; int Capacity; ImGuiDockNodeSettings* Data; } ImVector_ImGuiDockNodeSettings; +typedef struct ImVector_ImGuiDockNodeSettings {int Size;int Capacity;ImGuiDockNodeSettings* Data;} ImVector_ImGuiDockNodeSettings; struct ImGuiDockContext { - ImGuiStorage Nodes; - ImVector_ImGuiDockRequest Requests; - ImVector_ImGuiDockNodeSettings NodesSettings; - bool WantFullRebuild; + ImGuiStorage Nodes; + ImVector_ImGuiDockRequest Requests; + ImVector_ImGuiDockNodeSettings NodesSettings; + bool WantFullRebuild; }; typedef struct ImGuiViewportP ImGuiViewportP; struct ImGuiViewportP { - ImGuiViewport _ImGuiViewport; - ImGuiWindow* Window; - int Idx; - int LastFrameActive; - int LastFocusedStampCount; - ImGuiID LastNameHash; - ImVec2 LastPos; - float Alpha; - float LastAlpha; - bool LastFocusedHadNavWindow; - short PlatformMonitor; - int DrawListsLastFrame[2]; - ImDrawList* DrawLists[2]; - ImDrawData DrawDataP; - ImDrawDataBuilder DrawDataBuilder; - ImVec2 LastPlatformPos; - ImVec2 LastPlatformSize; - ImVec2 LastRendererSize; - ImVec2 WorkOffsetMin; - ImVec2 WorkOffsetMax; - ImVec2 BuildWorkOffsetMin; - ImVec2 BuildWorkOffsetMax; + ImGuiViewport _ImGuiViewport; + ImGuiWindow* Window; + int Idx; + int LastFrameActive; + int LastFocusedStampCount; + ImGuiID LastNameHash; + ImVec2 LastPos; + float Alpha; + float LastAlpha; + bool LastFocusedHadNavWindow; + short PlatformMonitor; + int BgFgDrawListsLastFrame[2]; + ImDrawList* BgFgDrawLists[2]; + ImDrawData DrawDataP; + ImDrawDataBuilder DrawDataBuilder; + ImVec2 LastPlatformPos; + ImVec2 LastPlatformSize; + ImVec2 LastRendererSize; + ImVec2 WorkOffsetMin; + ImVec2 WorkOffsetMax; + ImVec2 BuildWorkOffsetMin; + ImVec2 BuildWorkOffsetMax; }; struct ImGuiWindowSettings { - ImGuiID ID; - ImVec2ih Pos; - ImVec2ih Size; - ImVec2ih ViewportPos; - ImGuiID ViewportId; - ImGuiID DockId; - ImGuiID ClassId; - short DockOrder; - bool Collapsed; - bool WantApply; - bool WantDelete; + ImGuiID ID; + ImVec2ih Pos; + ImVec2ih Size; + ImVec2ih ViewportPos; + ImGuiID ViewportId; + ImGuiID DockId; + ImGuiID ClassId; + short DockOrder; + bool Collapsed; + bool WantApply; + bool WantDelete; }; struct ImGuiSettingsHandler { - const char* TypeName; - ImGuiID TypeHash; - void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); - void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); - void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name); - void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line); - void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); - void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf); - void* UserData; + const char* TypeName; + ImGuiID TypeHash; + void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); + void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); + void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name); + void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line); + void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); + void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf); + void* UserData; }; typedef enum { - ImGuiLocKey_VersionStr = 0, - ImGuiLocKey_TableSizeOne = 1, - ImGuiLocKey_TableSizeAllFit = 2, - ImGuiLocKey_TableSizeAllDefault = 3, - ImGuiLocKey_TableResetOrder = 4, - ImGuiLocKey_WindowingMainMenuBar = 5, - ImGuiLocKey_WindowingPopup = 6, - ImGuiLocKey_WindowingUntitled = 7, - ImGuiLocKey_DockingHideTabBar = 8, - ImGuiLocKey_COUNT = 9, +ImGuiLocKey_VersionStr=0, +ImGuiLocKey_TableSizeOne=1, +ImGuiLocKey_TableSizeAllFit=2, +ImGuiLocKey_TableSizeAllDefault=3, +ImGuiLocKey_TableResetOrder=4, +ImGuiLocKey_WindowingMainMenuBar=5, +ImGuiLocKey_WindowingPopup=6, +ImGuiLocKey_WindowingUntitled=7, +ImGuiLocKey_DockingHideTabBar=8, +ImGuiLocKey_DockingHoldShiftToDock=9, +ImGuiLocKey_DockingDragToUndockOrMoveNode=10, +ImGuiLocKey_COUNT=11, }ImGuiLocKey; struct ImGuiLocEntry { - ImGuiLocKey Key; - const char* Text; + ImGuiLocKey Key; + const char* Text; }; typedef enum { - ImGuiDebugLogFlags_None = 0, - ImGuiDebugLogFlags_EventActiveId = 1 << 0, - ImGuiDebugLogFlags_EventFocus = 1 << 1, - ImGuiDebugLogFlags_EventPopup = 1 << 2, - ImGuiDebugLogFlags_EventNav = 1 << 3, - ImGuiDebugLogFlags_EventClipper = 1 << 4, - ImGuiDebugLogFlags_EventSelection = 1 << 5, - ImGuiDebugLogFlags_EventIO = 1 << 6, - ImGuiDebugLogFlags_EventDocking = 1 << 7, - ImGuiDebugLogFlags_EventViewport = 1 << 8, - ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventSelection | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport, - ImGuiDebugLogFlags_OutputToTTY = 1 << 10, + ImGuiDebugLogFlags_None = 0, + ImGuiDebugLogFlags_EventActiveId = 1 << 0, + ImGuiDebugLogFlags_EventFocus = 1 << 1, + ImGuiDebugLogFlags_EventPopup = 1 << 2, + ImGuiDebugLogFlags_EventNav = 1 << 3, + ImGuiDebugLogFlags_EventClipper = 1 << 4, + ImGuiDebugLogFlags_EventSelection = 1 << 5, + ImGuiDebugLogFlags_EventIO = 1 << 6, + ImGuiDebugLogFlags_EventDocking = 1 << 7, + ImGuiDebugLogFlags_EventViewport = 1 << 8, + ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventSelection | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport, + ImGuiDebugLogFlags_OutputToTTY = 1 << 10, + ImGuiDebugLogFlags_OutputToTestEngine = 1 << 11, }ImGuiDebugLogFlags_; +typedef struct ImGuiDebugAllocEntry ImGuiDebugAllocEntry; +struct ImGuiDebugAllocEntry +{ + int FrameCount; + ImS16 AllocCount; + ImS16 FreeCount; +}; +typedef struct ImGuiDebugAllocInfo ImGuiDebugAllocInfo; +struct ImGuiDebugAllocInfo +{ + int TotalAllocCount; + int TotalFreeCount; + ImS16 LastEntriesIdx; + ImGuiDebugAllocEntry LastEntriesBuf[6]; +}; struct ImGuiMetricsConfig { - bool ShowDebugLog; - bool ShowStackTool; - bool ShowWindowsRects; - bool ShowWindowsBeginOrder; - bool ShowTablesRects; - bool ShowDrawCmdMesh; - bool ShowDrawCmdBoundingBoxes; - bool ShowAtlasTintedWithTextColor; - bool ShowDockingNodes; - int ShowWindowsRectsType; - int ShowTablesRectsType; + bool ShowDebugLog; + bool ShowIDStackTool; + bool ShowWindowsRects; + bool ShowWindowsBeginOrder; + bool ShowTablesRects; + bool ShowDrawCmdMesh; + bool ShowDrawCmdBoundingBoxes; + bool ShowAtlasTintedWithTextColor; + bool ShowDockingNodes; + int ShowWindowsRectsType; + int ShowTablesRectsType; }; typedef struct ImGuiStackLevelInfo ImGuiStackLevelInfo; struct ImGuiStackLevelInfo { - ImGuiID ID; - ImS8 QueryFrameCount; - bool QuerySuccess; - ImGuiDataType DataType : 8; - char Desc[57]; + ImGuiID ID; + ImS8 QueryFrameCount; + bool QuerySuccess; + ImGuiDataType DataType : 8; + char Desc[57]; }; -typedef struct ImGuiStackTool ImGuiStackTool; -typedef struct ImVector_ImGuiStackLevelInfo { int Size; int Capacity; ImGuiStackLevelInfo* Data; } ImVector_ImGuiStackLevelInfo; +typedef struct ImGuiIDStackTool ImGuiIDStackTool; +typedef struct ImVector_ImGuiStackLevelInfo {int Size;int Capacity;ImGuiStackLevelInfo* Data;} ImVector_ImGuiStackLevelInfo; -struct ImGuiStackTool +struct ImGuiIDStackTool { - int LastActiveFrame; - int StackLevel; - ImGuiID QueryId; - ImVector_ImGuiStackLevelInfo Results; - bool CopyToClipboardOnCtrlC; - float CopyToClipboardLastTime; + int LastActiveFrame; + int StackLevel; + ImGuiID QueryId; + ImVector_ImGuiStackLevelInfo Results; + bool CopyToClipboardOnCtrlC; + float CopyToClipboardLastTime; }; typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook); typedef enum { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }ImGuiContextHookType; struct ImGuiContextHook { - ImGuiID HookId; - ImGuiContextHookType Type; - ImGuiID Owner; - ImGuiContextHookCallback Callback; - void* UserData; + ImGuiID HookId; + ImGuiContextHookType Type; + ImGuiID Owner; + ImGuiContextHookCallback Callback; + void* UserData; }; -typedef struct ImVector_ImGuiInputEvent { int Size; int Capacity; ImGuiInputEvent* Data; } ImVector_ImGuiInputEvent; +typedef struct ImVector_ImGuiInputEvent {int Size;int Capacity;ImGuiInputEvent* Data;} ImVector_ImGuiInputEvent; + +typedef struct ImVector_ImGuiWindowStackData {int Size;int Capacity;ImGuiWindowStackData* Data;} ImVector_ImGuiWindowStackData; -typedef struct ImVector_ImGuiWindowStackData { int Size; int Capacity; ImGuiWindowStackData* Data; } ImVector_ImGuiWindowStackData; +typedef struct ImVector_ImGuiColorMod {int Size;int Capacity;ImGuiColorMod* Data;} ImVector_ImGuiColorMod; -typedef struct ImVector_ImGuiColorMod { int Size; int Capacity; ImGuiColorMod* Data; } ImVector_ImGuiColorMod; +typedef struct ImVector_ImGuiStyleMod {int Size;int Capacity;ImGuiStyleMod* Data;} ImVector_ImGuiStyleMod; -typedef struct ImVector_ImGuiStyleMod { int Size; int Capacity; ImGuiStyleMod* Data; } ImVector_ImGuiStyleMod; +typedef struct ImVector_ImGuiID {int Size;int Capacity;ImGuiID* Data;} ImVector_ImGuiID; -typedef struct ImVector_ImGuiID { int Size; int Capacity; ImGuiID* Data; } ImVector_ImGuiID; +typedef struct ImVector_ImGuiItemFlags {int Size;int Capacity;ImGuiItemFlags* Data;} ImVector_ImGuiItemFlags; -typedef struct ImVector_ImGuiItemFlags { int Size; int Capacity; ImGuiItemFlags* Data; } ImVector_ImGuiItemFlags; +typedef struct ImVector_ImGuiGroupData {int Size;int Capacity;ImGuiGroupData* Data;} ImVector_ImGuiGroupData; -typedef struct ImVector_ImGuiGroupData { int Size; int Capacity; ImGuiGroupData* Data; } ImVector_ImGuiGroupData; +typedef struct ImVector_ImGuiPopupData {int Size;int Capacity;ImGuiPopupData* Data;} ImVector_ImGuiPopupData; -typedef struct ImVector_ImGuiPopupData { int Size; int Capacity; ImGuiPopupData* Data; } ImVector_ImGuiPopupData; +typedef struct ImVector_ImGuiNavTreeNodeData {int Size;int Capacity;ImGuiNavTreeNodeData* Data;} ImVector_ImGuiNavTreeNodeData; -typedef struct ImVector_ImGuiViewportPPtr { int Size; int Capacity; ImGuiViewportP** Data; } ImVector_ImGuiViewportPPtr; +typedef struct ImVector_ImGuiViewportPPtr {int Size;int Capacity;ImGuiViewportP** Data;} ImVector_ImGuiViewportPPtr; -typedef struct ImVector_unsigned_char { int Size; int Capacity; unsigned char* Data; } ImVector_unsigned_char; +typedef struct ImVector_unsigned_char {int Size;int Capacity;unsigned char* Data;} ImVector_unsigned_char; -typedef struct ImVector_ImGuiListClipperData { int Size; int Capacity; ImGuiListClipperData* Data; } ImVector_ImGuiListClipperData; +typedef struct ImVector_ImGuiListClipperData {int Size;int Capacity;ImGuiListClipperData* Data;} ImVector_ImGuiListClipperData; -typedef struct ImVector_ImGuiTableTempData { int Size; int Capacity; ImGuiTableTempData* Data; } ImVector_ImGuiTableTempData; +typedef struct ImVector_ImGuiTableTempData {int Size;int Capacity;ImGuiTableTempData* Data;} ImVector_ImGuiTableTempData; -typedef struct ImVector_ImGuiTable { int Size; int Capacity; ImGuiTable* Data; } ImVector_ImGuiTable; +typedef struct ImVector_ImGuiTable {int Size;int Capacity;ImGuiTable* Data;} ImVector_ImGuiTable; -typedef struct ImPool_ImGuiTable { ImVector_ImGuiTable Buf; ImGuiStorage Map; ImPoolIdx FreeIdx; ImPoolIdx AliveCount; } ImPool_ImGuiTable; +typedef struct ImPool_ImGuiTable {ImVector_ImGuiTable Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;ImPoolIdx AliveCount;} ImPool_ImGuiTable; -typedef struct ImVector_ImGuiTabBar { int Size; int Capacity; ImGuiTabBar* Data; } ImVector_ImGuiTabBar; +typedef struct ImVector_ImGuiTabBar {int Size;int Capacity;ImGuiTabBar* Data;} ImVector_ImGuiTabBar; -typedef struct ImPool_ImGuiTabBar { ImVector_ImGuiTabBar Buf; ImGuiStorage Map; ImPoolIdx FreeIdx; ImPoolIdx AliveCount; } ImPool_ImGuiTabBar; +typedef struct ImPool_ImGuiTabBar {ImVector_ImGuiTabBar Buf;ImGuiStorage Map;ImPoolIdx FreeIdx;ImPoolIdx AliveCount;} ImPool_ImGuiTabBar; -typedef struct ImVector_ImGuiPtrOrIndex { int Size; int Capacity; ImGuiPtrOrIndex* Data; } ImVector_ImGuiPtrOrIndex; +typedef struct ImVector_ImGuiPtrOrIndex {int Size;int Capacity;ImGuiPtrOrIndex* Data;} ImVector_ImGuiPtrOrIndex; -typedef struct ImVector_ImGuiShrinkWidthItem { int Size; int Capacity; ImGuiShrinkWidthItem* Data; } ImVector_ImGuiShrinkWidthItem; +typedef struct ImVector_ImGuiShrinkWidthItem {int Size;int Capacity;ImGuiShrinkWidthItem* Data;} ImVector_ImGuiShrinkWidthItem; -typedef struct ImVector_ImGuiSettingsHandler { int Size; int Capacity; ImGuiSettingsHandler* Data; } ImVector_ImGuiSettingsHandler; +typedef struct ImVector_ImGuiSettingsHandler {int Size;int Capacity;ImGuiSettingsHandler* Data;} ImVector_ImGuiSettingsHandler; -typedef struct ImChunkStream_ImGuiWindowSettings { ImVector_char Buf; } ImChunkStream_ImGuiWindowSettings; +typedef struct ImChunkStream_ImGuiWindowSettings {ImVector_char Buf;} ImChunkStream_ImGuiWindowSettings; -typedef struct ImChunkStream_ImGuiTableSettings { ImVector_char Buf; } ImChunkStream_ImGuiTableSettings; +typedef struct ImChunkStream_ImGuiTableSettings {ImVector_char Buf;} ImChunkStream_ImGuiTableSettings; -typedef struct ImVector_ImGuiContextHook { int Size; int Capacity; ImGuiContextHook* Data; } ImVector_ImGuiContextHook; +typedef struct ImVector_ImGuiContextHook {int Size;int Capacity;ImGuiContextHook* Data;} ImVector_ImGuiContextHook; struct ImGuiContext { - bool Initialized; - bool FontAtlasOwnedByContext; - ImGuiIO IO; - ImGuiPlatformIO PlatformIO; - ImGuiStyle Style; - ImGuiConfigFlags ConfigFlagsCurrFrame; - ImGuiConfigFlags ConfigFlagsLastFrame; - ImFont* Font; - float FontSize; - float FontBaseSize; - ImDrawListSharedData DrawListSharedData; - double Time; - int FrameCount; - int FrameCountEnded; - int FrameCountPlatformEnded; - int FrameCountRendered; - bool WithinFrameScope; - bool WithinFrameScopeWithImplicitWindow; - bool WithinEndChild; - bool GcCompactAll; - bool TestEngineHookItems; - void* TestEngine; - ImVector_ImGuiInputEvent InputEventsQueue; - ImVector_ImGuiInputEvent InputEventsTrail; - ImGuiMouseSource InputEventsNextMouseSource; - ImU32 InputEventsNextEventId; - ImVector_ImGuiWindowPtr Windows; - ImVector_ImGuiWindowPtr WindowsFocusOrder; - ImVector_ImGuiWindowPtr WindowsTempSortBuffer; - ImVector_ImGuiWindowStackData CurrentWindowStack; - ImGuiStorage WindowsById; - int WindowsActiveCount; - ImVec2 WindowsHoverPadding; - ImGuiWindow* CurrentWindow; - ImGuiWindow* HoveredWindow; - ImGuiWindow* HoveredWindowUnderMovingWindow; - ImGuiWindow* MovingWindow; - ImGuiWindow* WheelingWindow; - ImVec2 WheelingWindowRefMousePos; - int WheelingWindowStartFrame; - float WheelingWindowReleaseTimer; - ImVec2 WheelingWindowWheelRemainder; - ImVec2 WheelingAxisAvg; - ImGuiID DebugHookIdInfo; - ImGuiID HoveredId; - ImGuiID HoveredIdPreviousFrame; - bool HoveredIdAllowOverlap; - bool HoveredIdDisabled; - float HoveredIdTimer; - float HoveredIdNotActiveTimer; - ImGuiID ActiveId; - ImGuiID ActiveIdIsAlive; - float ActiveIdTimer; - bool ActiveIdIsJustActivated; - bool ActiveIdAllowOverlap; - bool ActiveIdNoClearOnFocusLoss; - bool ActiveIdHasBeenPressedBefore; - bool ActiveIdHasBeenEditedBefore; - bool ActiveIdHasBeenEditedThisFrame; - ImVec2 ActiveIdClickOffset; - ImGuiWindow* ActiveIdWindow; - ImGuiInputSource ActiveIdSource; - int ActiveIdMouseButton; - ImGuiID ActiveIdPreviousFrame; - bool ActiveIdPreviousFrameIsAlive; - bool ActiveIdPreviousFrameHasBeenEditedBefore; - ImGuiWindow* ActiveIdPreviousFrameWindow; - ImGuiID LastActiveId; - float LastActiveIdTimer; - ImGuiKeyOwnerData KeysOwnerData[ImGuiKey_NamedKey_COUNT]; - ImGuiKeyRoutingTable KeysRoutingTable; - ImU32 ActiveIdUsingNavDirMask; - bool ActiveIdUsingAllKeyboardKeys; ImU32 ActiveIdUsingNavInputMask; - ImGuiID CurrentFocusScopeId; - ImGuiItemFlags CurrentItemFlags; - ImGuiID DebugLocateId; - ImGuiNextItemData NextItemData; - ImGuiLastItemData LastItemData; - ImGuiNextWindowData NextWindowData; - ImVector_ImGuiColorMod ColorStack; - ImVector_ImGuiStyleMod StyleVarStack; - ImVector_ImFontPtr FontStack; - ImVector_ImGuiID FocusScopeStack; - ImVector_ImGuiItemFlags ItemFlagsStack; - ImVector_ImGuiGroupData GroupStack; - ImVector_ImGuiPopupData OpenPopupStack; - ImVector_ImGuiPopupData BeginPopupStack; - int BeginMenuCount; - ImVector_ImGuiViewportPPtr Viewports; - float CurrentDpiScale; - ImGuiViewportP* CurrentViewport; - ImGuiViewportP* MouseViewport; - ImGuiViewportP* MouseLastHoveredViewport; - ImGuiID PlatformLastFocusedViewportId; - ImGuiPlatformMonitor FallbackMonitor; - int ViewportCreatedCount; - int PlatformWindowsCreatedCount; - int ViewportFocusedStampCount; - ImGuiWindow* NavWindow; - ImGuiID NavId; - ImGuiID NavFocusScopeId; - ImGuiID NavActivateId; - ImGuiID NavActivateDownId; - ImGuiID NavActivatePressedId; - ImGuiActivateFlags NavActivateFlags; - ImGuiID NavJustMovedToId; - ImGuiID NavJustMovedToFocusScopeId; - ImGuiKeyChord NavJustMovedToKeyMods; - ImGuiID NavNextActivateId; - ImGuiActivateFlags NavNextActivateFlags; - ImGuiInputSource NavInputSource; - ImGuiNavLayer NavLayer; - bool NavIdIsAlive; - bool NavMousePosDirty; - bool NavDisableHighlight; - bool NavDisableMouseHover; - bool NavAnyRequest; - bool NavInitRequest; - bool NavInitRequestFromMove; - ImGuiNavItemData NavInitResult; - bool NavMoveSubmitted; - bool NavMoveScoringItems; - bool NavMoveForwardToNextFrame; - ImGuiNavMoveFlags NavMoveFlags; - ImGuiScrollFlags NavMoveScrollFlags; - ImGuiKeyChord NavMoveKeyMods; - ImGuiDir NavMoveDir; - ImGuiDir NavMoveDirForDebug; - ImGuiDir NavMoveClipDir; - ImRect NavScoringRect; - ImRect NavScoringNoClipRect; - int NavScoringDebugCount; - int NavTabbingDir; - int NavTabbingCounter; - ImGuiNavItemData NavMoveResultLocal; - ImGuiNavItemData NavMoveResultLocalVisible; - ImGuiNavItemData NavMoveResultOther; - ImGuiNavItemData NavTabbingResultFirst; - ImGuiKeyChord ConfigNavWindowingKeyNext; - ImGuiKeyChord ConfigNavWindowingKeyPrev; - ImGuiWindow* NavWindowingTarget; - ImGuiWindow* NavWindowingTargetAnim; - ImGuiWindow* NavWindowingListWindow; - float NavWindowingTimer; - float NavWindowingHighlightAlpha; - bool NavWindowingToggleLayer; - ImVec2 NavWindowingAccumDeltaPos; - ImVec2 NavWindowingAccumDeltaSize; - float DimBgRatio; - bool DragDropActive; - bool DragDropWithinSource; - bool DragDropWithinTarget; - ImGuiDragDropFlags DragDropSourceFlags; - int DragDropSourceFrameCount; - int DragDropMouseButton; - ImGuiPayload DragDropPayload; - ImRect DragDropTargetRect; - ImGuiID DragDropTargetId; - ImGuiDragDropFlags DragDropAcceptFlags; - float DragDropAcceptIdCurrRectSurface; - ImGuiID DragDropAcceptIdCurr; - ImGuiID DragDropAcceptIdPrev; - int DragDropAcceptFrameCount; - ImGuiID DragDropHoldJustPressedId; - ImVector_unsigned_char DragDropPayloadBufHeap; - unsigned char DragDropPayloadBufLocal[16]; - int ClipperTempDataStacked; - ImVector_ImGuiListClipperData ClipperTempData; - ImGuiTable* CurrentTable; - int TablesTempDataStacked; - ImVector_ImGuiTableTempData TablesTempData; - ImPool_ImGuiTable Tables; - ImVector_float TablesLastTimeActive; - ImVector_ImDrawChannel DrawChannelsTempMergeBuffer; - ImGuiTabBar* CurrentTabBar; - ImPool_ImGuiTabBar TabBars; - ImVector_ImGuiPtrOrIndex CurrentTabBarStack; - ImVector_ImGuiShrinkWidthItem ShrinkWidthBuffer; - ImGuiID HoverItemDelayId; - ImGuiID HoverItemDelayIdPreviousFrame; - float HoverItemDelayTimer; - float HoverItemDelayClearTimer; - ImGuiID HoverItemUnlockedStationaryId; - ImGuiID HoverWindowUnlockedStationaryId; - ImGuiMouseCursor MouseCursor; - float MouseStationaryTimer; - ImVec2 MouseLastValidPos; - ImGuiInputTextState InputTextState; - ImGuiInputTextDeactivatedState InputTextDeactivatedState; - ImFont InputTextPasswordFont; - ImGuiID TempInputId; - ImGuiColorEditFlags ColorEditOptions; - ImGuiID ColorEditCurrentID; - ImGuiID ColorEditSavedID; - float ColorEditSavedHue; - float ColorEditSavedSat; - ImU32 ColorEditSavedColor; - ImVec4 ColorPickerRef; - ImGuiComboPreviewData ComboPreviewData; - float SliderGrabClickOffset; - float SliderCurrentAccum; - bool SliderCurrentAccumDirty; - bool DragCurrentAccumDirty; - float DragCurrentAccum; - float DragSpeedDefaultRatio; - float ScrollbarClickDeltaToGrabCenter; - float DisabledAlphaBackup; - short DisabledStackSize; - short TooltipOverrideCount; - ImVector_char ClipboardHandlerData; - ImVector_ImGuiID MenusIdSubmittedThisFrame; - ImGuiPlatformImeData PlatformImeData; - ImGuiPlatformImeData PlatformImeDataPrev; - ImGuiID PlatformImeViewport; - char PlatformLocaleDecimalPoint; - ImGuiDockContext DockContext; - void (*DockNodeWindowMenuHandler)(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar); - bool SettingsLoaded; - float SettingsDirtyTimer; - ImGuiTextBuffer SettingsIniData; - ImVector_ImGuiSettingsHandler SettingsHandlers; - ImChunkStream_ImGuiWindowSettings SettingsWindows; - ImChunkStream_ImGuiTableSettings SettingsTables; - ImVector_ImGuiContextHook Hooks; - ImGuiID HookIdNext; - const char* LocalizationTable[ImGuiLocKey_COUNT]; - bool LogEnabled; - ImGuiLogType LogType; - ImFileHandle LogFile; - ImGuiTextBuffer LogBuffer; - const char* LogNextPrefix; - const char* LogNextSuffix; - float LogLinePosY; - bool LogLineFirstItem; - int LogDepthRef; - int LogDepthToExpand; - int LogDepthToExpandDefault; - ImGuiDebugLogFlags DebugLogFlags; - ImGuiTextBuffer DebugLogBuf; - ImGuiTextIndex DebugLogIndex; - ImU8 DebugLogClipperAutoDisableFrames; - ImU8 DebugLocateFrames; - ImS8 DebugBeginReturnValueCullDepth; - bool DebugItemPickerActive; - ImU8 DebugItemPickerMouseButton; - ImGuiID DebugItemPickerBreakId; - ImGuiMetricsConfig DebugMetricsConfig; - ImGuiStackTool DebugStackTool; - ImGuiDockNode* DebugHoveredDockNode; - float FramerateSecPerFrame[60]; - int FramerateSecPerFrameIdx; - int FramerateSecPerFrameCount; - float FramerateSecPerFrameAccum; - int WantCaptureMouseNextFrame; - int WantCaptureKeyboardNextFrame; - int WantTextInputNextFrame; - ImVector_char TempBuffer; + bool Initialized; + bool FontAtlasOwnedByContext; + ImGuiIO IO; + ImGuiPlatformIO PlatformIO; + ImGuiStyle Style; + ImGuiConfigFlags ConfigFlagsCurrFrame; + ImGuiConfigFlags ConfigFlagsLastFrame; + ImFont* Font; + float FontSize; + float FontBaseSize; + ImDrawListSharedData DrawListSharedData; + double Time; + int FrameCount; + int FrameCountEnded; + int FrameCountPlatformEnded; + int FrameCountRendered; + bool WithinFrameScope; + bool WithinFrameScopeWithImplicitWindow; + bool WithinEndChild; + bool GcCompactAll; + bool TestEngineHookItems; + void* TestEngine; + ImVector_ImGuiInputEvent InputEventsQueue; + ImVector_ImGuiInputEvent InputEventsTrail; + ImGuiMouseSource InputEventsNextMouseSource; + ImU32 InputEventsNextEventId; + ImVector_ImGuiWindowPtr Windows; + ImVector_ImGuiWindowPtr WindowsFocusOrder; + ImVector_ImGuiWindowPtr WindowsTempSortBuffer; + ImVector_ImGuiWindowStackData CurrentWindowStack; + ImGuiStorage WindowsById; + int WindowsActiveCount; + ImVec2 WindowsHoverPadding; + ImGuiWindow* CurrentWindow; + ImGuiWindow* HoveredWindow; + ImGuiWindow* HoveredWindowUnderMovingWindow; + ImGuiWindow* MovingWindow; + ImGuiWindow* WheelingWindow; + ImVec2 WheelingWindowRefMousePos; + int WheelingWindowStartFrame; + float WheelingWindowReleaseTimer; + ImVec2 WheelingWindowWheelRemainder; + ImVec2 WheelingAxisAvg; + ImGuiID DebugHookIdInfo; + ImGuiID HoveredId; + ImGuiID HoveredIdPreviousFrame; + bool HoveredIdAllowOverlap; + bool HoveredIdDisabled; + float HoveredIdTimer; + float HoveredIdNotActiveTimer; + ImGuiID ActiveId; + ImGuiID ActiveIdIsAlive; + float ActiveIdTimer; + bool ActiveIdIsJustActivated; + bool ActiveIdAllowOverlap; + bool ActiveIdNoClearOnFocusLoss; + bool ActiveIdHasBeenPressedBefore; + bool ActiveIdHasBeenEditedBefore; + bool ActiveIdHasBeenEditedThisFrame; + ImVec2 ActiveIdClickOffset; + ImGuiWindow* ActiveIdWindow; + ImGuiInputSource ActiveIdSource; + int ActiveIdMouseButton; + ImGuiID ActiveIdPreviousFrame; + bool ActiveIdPreviousFrameIsAlive; + bool ActiveIdPreviousFrameHasBeenEditedBefore; + ImGuiWindow* ActiveIdPreviousFrameWindow; + ImGuiID LastActiveId; + float LastActiveIdTimer; + ImGuiKeyOwnerData KeysOwnerData[ImGuiKey_NamedKey_COUNT]; + ImGuiKeyRoutingTable KeysRoutingTable; + ImU32 ActiveIdUsingNavDirMask; + bool ActiveIdUsingAllKeyboardKeys; ImU32 ActiveIdUsingNavInputMask; + ImGuiID CurrentFocusScopeId; + ImGuiItemFlags CurrentItemFlags; + ImGuiID DebugLocateId; + ImGuiNextItemData NextItemData; + ImGuiLastItemData LastItemData; + ImGuiNextWindowData NextWindowData; + bool DebugShowGroupRects; + ImVector_ImGuiColorMod ColorStack; + ImVector_ImGuiStyleMod StyleVarStack; + ImVector_ImFontPtr FontStack; + ImVector_ImGuiID FocusScopeStack; + ImVector_ImGuiItemFlags ItemFlagsStack; + ImVector_ImGuiGroupData GroupStack; + ImVector_ImGuiPopupData OpenPopupStack; + ImVector_ImGuiPopupData BeginPopupStack; + ImVector_ImGuiNavTreeNodeData NavTreeNodeStack; int BeginMenuCount; + ImVector_ImGuiViewportPPtr Viewports; + float CurrentDpiScale; + ImGuiViewportP* CurrentViewport; + ImGuiViewportP* MouseViewport; + ImGuiViewportP* MouseLastHoveredViewport; + ImGuiID PlatformLastFocusedViewportId; + ImGuiPlatformMonitor FallbackMonitor; + int ViewportCreatedCount; + int PlatformWindowsCreatedCount; + int ViewportFocusedStampCount; + ImGuiWindow* NavWindow; + ImGuiID NavId; + ImGuiID NavFocusScopeId; + ImGuiID NavActivateId; + ImGuiID NavActivateDownId; + ImGuiID NavActivatePressedId; + ImGuiActivateFlags NavActivateFlags; + ImGuiID NavJustMovedToId; + ImGuiID NavJustMovedToFocusScopeId; + ImGuiKeyChord NavJustMovedToKeyMods; + ImGuiID NavNextActivateId; + ImGuiActivateFlags NavNextActivateFlags; + ImGuiInputSource NavInputSource; + ImGuiNavLayer NavLayer; + ImGuiSelectionUserData NavLastValidSelectionUserData; + bool NavIdIsAlive; + bool NavMousePosDirty; + bool NavDisableHighlight; + bool NavDisableMouseHover; + bool NavAnyRequest; + bool NavInitRequest; + bool NavInitRequestFromMove; + ImGuiNavItemData NavInitResult; + bool NavMoveSubmitted; + bool NavMoveScoringItems; + bool NavMoveForwardToNextFrame; + ImGuiNavMoveFlags NavMoveFlags; + ImGuiScrollFlags NavMoveScrollFlags; + ImGuiKeyChord NavMoveKeyMods; + ImGuiDir NavMoveDir; + ImGuiDir NavMoveDirForDebug; + ImGuiDir NavMoveClipDir; + ImRect NavScoringRect; + ImRect NavScoringNoClipRect; + int NavScoringDebugCount; + int NavTabbingDir; + int NavTabbingCounter; + ImGuiNavItemData NavMoveResultLocal; + ImGuiNavItemData NavMoveResultLocalVisible; + ImGuiNavItemData NavMoveResultOther; + ImGuiNavItemData NavTabbingResultFirst; + ImGuiKeyChord ConfigNavWindowingKeyNext; + ImGuiKeyChord ConfigNavWindowingKeyPrev; + ImGuiWindow* NavWindowingTarget; + ImGuiWindow* NavWindowingTargetAnim; + ImGuiWindow* NavWindowingListWindow; + float NavWindowingTimer; + float NavWindowingHighlightAlpha; + bool NavWindowingToggleLayer; + ImVec2 NavWindowingAccumDeltaPos; + ImVec2 NavWindowingAccumDeltaSize; + float DimBgRatio; + bool DragDropActive; + bool DragDropWithinSource; + bool DragDropWithinTarget; + ImGuiDragDropFlags DragDropSourceFlags; + int DragDropSourceFrameCount; + int DragDropMouseButton; + ImGuiPayload DragDropPayload; + ImRect DragDropTargetRect; + ImGuiID DragDropTargetId; + ImGuiDragDropFlags DragDropAcceptFlags; + float DragDropAcceptIdCurrRectSurface; + ImGuiID DragDropAcceptIdCurr; + ImGuiID DragDropAcceptIdPrev; + int DragDropAcceptFrameCount; + ImGuiID DragDropHoldJustPressedId; + ImVector_unsigned_char DragDropPayloadBufHeap; + unsigned char DragDropPayloadBufLocal[16]; + int ClipperTempDataStacked; + ImVector_ImGuiListClipperData ClipperTempData; + ImGuiTable* CurrentTable; + int TablesTempDataStacked; + ImVector_ImGuiTableTempData TablesTempData; + ImPool_ImGuiTable Tables; + ImVector_float TablesLastTimeActive; + ImVector_ImDrawChannel DrawChannelsTempMergeBuffer; + ImGuiTabBar* CurrentTabBar; + ImPool_ImGuiTabBar TabBars; + ImVector_ImGuiPtrOrIndex CurrentTabBarStack; + ImVector_ImGuiShrinkWidthItem ShrinkWidthBuffer; + ImGuiID HoverItemDelayId; + ImGuiID HoverItemDelayIdPreviousFrame; + float HoverItemDelayTimer; + float HoverItemDelayClearTimer; + ImGuiID HoverItemUnlockedStationaryId; + ImGuiID HoverWindowUnlockedStationaryId; + ImGuiMouseCursor MouseCursor; + float MouseStationaryTimer; + ImVec2 MouseLastValidPos; + ImGuiInputTextState InputTextState; + ImGuiInputTextDeactivatedState InputTextDeactivatedState; + ImFont InputTextPasswordFont; + ImGuiID TempInputId; + ImGuiColorEditFlags ColorEditOptions; + ImGuiID ColorEditCurrentID; + ImGuiID ColorEditSavedID; + float ColorEditSavedHue; + float ColorEditSavedSat; + ImU32 ColorEditSavedColor; + ImVec4 ColorPickerRef; + ImGuiComboPreviewData ComboPreviewData; + float SliderGrabClickOffset; + float SliderCurrentAccum; + bool SliderCurrentAccumDirty; + bool DragCurrentAccumDirty; + float DragCurrentAccum; + float DragSpeedDefaultRatio; + float ScrollbarClickDeltaToGrabCenter; + float DisabledAlphaBackup; + short DisabledStackSize; + short LockMarkEdited; + short TooltipOverrideCount; + ImVector_char ClipboardHandlerData; + ImVector_ImGuiID MenusIdSubmittedThisFrame; + ImGuiTypingSelectState TypingSelectState; + ImGuiPlatformImeData PlatformImeData; + ImGuiPlatformImeData PlatformImeDataPrev; + ImGuiID PlatformImeViewport; + ImGuiDockContext DockContext; + void (*DockNodeWindowMenuHandler)(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar); + bool SettingsLoaded; + float SettingsDirtyTimer; + ImGuiTextBuffer SettingsIniData; + ImVector_ImGuiSettingsHandler SettingsHandlers; + ImChunkStream_ImGuiWindowSettings SettingsWindows; + ImChunkStream_ImGuiTableSettings SettingsTables; + ImVector_ImGuiContextHook Hooks; + ImGuiID HookIdNext; + const char* LocalizationTable[ImGuiLocKey_COUNT]; + bool LogEnabled; + ImGuiLogType LogType; + ImFileHandle LogFile; + ImGuiTextBuffer LogBuffer; + const char* LogNextPrefix; + const char* LogNextSuffix; + float LogLinePosY; + bool LogLineFirstItem; + int LogDepthRef; + int LogDepthToExpand; + int LogDepthToExpandDefault; + ImGuiDebugLogFlags DebugLogFlags; + ImGuiTextBuffer DebugLogBuf; + ImGuiTextIndex DebugLogIndex; + ImU8 DebugLogClipperAutoDisableFrames; + ImU8 DebugLocateFrames; + ImS8 DebugBeginReturnValueCullDepth; + bool DebugItemPickerActive; + ImU8 DebugItemPickerMouseButton; + ImGuiID DebugItemPickerBreakId; + ImGuiMetricsConfig DebugMetricsConfig; + ImGuiIDStackTool DebugIDStackTool; + ImGuiDebugAllocInfo DebugAllocInfo; + ImGuiDockNode* DebugHoveredDockNode; + float FramerateSecPerFrame[60]; + int FramerateSecPerFrameIdx; + int FramerateSecPerFrameCount; + float FramerateSecPerFrameAccum; + int WantCaptureMouseNextFrame; + int WantCaptureKeyboardNextFrame; + int WantTextInputNextFrame; + ImVector_char TempBuffer; }; struct ImGuiWindowTempData { - ImVec2 CursorPos; - ImVec2 CursorPosPrevLine; - ImVec2 CursorStartPos; - ImVec2 CursorMaxPos; - ImVec2 IdealMaxPos; - ImVec2 CurrLineSize; - ImVec2 PrevLineSize; - float CurrLineTextBaseOffset; - float PrevLineTextBaseOffset; - bool IsSameLine; - bool IsSetPos; - ImVec1 Indent; - ImVec1 ColumnsOffset; - ImVec1 GroupOffset; - ImVec2 CursorStartPosLossyness; - ImGuiNavLayer NavLayerCurrent; - short NavLayersActiveMask; - short NavLayersActiveMaskNext; - bool NavIsScrollPushableX; - bool NavHideHighlightOneFrame; - bool NavWindowHasScrollY; - bool MenuBarAppending; - ImVec2 MenuBarOffset; - ImGuiMenuColumns MenuColumns; - int TreeDepth; - ImU32 TreeJumpToParentOnPopMask; - ImVector_ImGuiWindowPtr ChildWindows; - ImGuiStorage* StateStorage; - ImGuiOldColumns* CurrentColumns; - int CurrentTableIdx; - ImGuiLayoutType LayoutType; - ImGuiLayoutType ParentLayoutType; - float ItemWidth; - float TextWrapPos; - ImVector_float ItemWidthStack; - ImVector_float TextWrapPosStack; + ImVec2 CursorPos; + ImVec2 CursorPosPrevLine; + ImVec2 CursorStartPos; + ImVec2 CursorMaxPos; + ImVec2 IdealMaxPos; + ImVec2 CurrLineSize; + ImVec2 PrevLineSize; + float CurrLineTextBaseOffset; + float PrevLineTextBaseOffset; + bool IsSameLine; + bool IsSetPos; + ImVec1 Indent; + ImVec1 ColumnsOffset; + ImVec1 GroupOffset; + ImVec2 CursorStartPosLossyness; + ImGuiNavLayer NavLayerCurrent; + short NavLayersActiveMask; + short NavLayersActiveMaskNext; + bool NavIsScrollPushableX; + bool NavHideHighlightOneFrame; + bool NavWindowHasScrollY; + bool MenuBarAppending; + ImVec2 MenuBarOffset; + ImGuiMenuColumns MenuColumns; + int TreeDepth; + ImU32 TreeJumpToParentOnPopMask; + ImVector_ImGuiWindowPtr ChildWindows; + ImGuiStorage* StateStorage; + ImGuiOldColumns* CurrentColumns; + int CurrentTableIdx; + ImGuiLayoutType LayoutType; + ImGuiLayoutType ParentLayoutType; + float ItemWidth; + float TextWrapPos; + ImVector_float ItemWidthStack; + ImVector_float TextWrapPosStack; }; -typedef struct ImVector_ImGuiOldColumns { int Size; int Capacity; ImGuiOldColumns* Data; } ImVector_ImGuiOldColumns; +typedef struct ImVector_ImGuiOldColumns {int Size;int Capacity;ImGuiOldColumns* Data;} ImVector_ImGuiOldColumns; struct ImGuiWindow { - ImGuiContext* Ctx; - char* Name; - ImGuiID ID; - ImGuiWindowFlags Flags, FlagsPreviousFrame; - ImGuiWindowClass WindowClass; - ImGuiViewportP* Viewport; - ImGuiID ViewportId; - ImVec2 ViewportPos; - int ViewportAllowPlatformMonitorExtend; - ImVec2 Pos; - ImVec2 Size; - ImVec2 SizeFull; - ImVec2 ContentSize; - ImVec2 ContentSizeIdeal; - ImVec2 ContentSizeExplicit; - ImVec2 WindowPadding; - float WindowRounding; - float WindowBorderSize; - float DecoOuterSizeX1, DecoOuterSizeY1; - float DecoOuterSizeX2, DecoOuterSizeY2; - float DecoInnerSizeX1, DecoInnerSizeY1; - int NameBufLen; - ImGuiID MoveId; - ImGuiID TabId; - ImGuiID ChildId; - ImVec2 Scroll; - ImVec2 ScrollMax; - ImVec2 ScrollTarget; - ImVec2 ScrollTargetCenterRatio; - ImVec2 ScrollTargetEdgeSnapDist; - ImVec2 ScrollbarSizes; - bool ScrollbarX, ScrollbarY; - bool ViewportOwned; - bool Active; - bool WasActive; - bool WriteAccessed; - bool Collapsed; - bool WantCollapseToggle; - bool SkipItems; - bool Appearing; - bool Hidden; - bool IsFallbackWindow; - bool IsExplicitChild; - bool HasCloseButton; - signed char ResizeBorderHeld; - short BeginCount; - short BeginCountPreviousFrame; - short BeginOrderWithinParent; - short BeginOrderWithinContext; - short FocusOrder; - ImGuiID PopupId; - ImS8 AutoFitFramesX, AutoFitFramesY; - ImS8 AutoFitChildAxises; - bool AutoFitOnlyGrows; - ImGuiDir AutoPosLastDirection; - ImS8 HiddenFramesCanSkipItems; - ImS8 HiddenFramesCannotSkipItems; - ImS8 HiddenFramesForRenderOnly; - ImS8 DisableInputsFrames; - ImGuiCond SetWindowPosAllowFlags : 8; - ImGuiCond SetWindowSizeAllowFlags : 8; - ImGuiCond SetWindowCollapsedAllowFlags : 8; - ImGuiCond SetWindowDockAllowFlags : 8; - ImVec2 SetWindowPosVal; - ImVec2 SetWindowPosPivot; ImVector_ImGuiID IDStack; - ImGuiWindowTempData DC; - ImRect OuterRectClipped; - ImRect InnerRect; - ImRect InnerClipRect; - ImRect WorkRect; - ImRect ParentWorkRect; - ImRect ClipRect; - ImRect ContentRegionRect; - ImVec2ih HitTestHoleSize; - ImVec2ih HitTestHoleOffset; int LastFrameActive; - int LastFrameJustFocused; - float LastTimeActive; - float ItemWidthDefault; - ImGuiStorage StateStorage; - ImVector_ImGuiOldColumns ColumnsStorage; - float FontWindowScale; - float FontDpiScale; - int SettingsOffset; ImDrawList* DrawList; - ImDrawList DrawListInst; - ImGuiWindow* ParentWindow; - ImGuiWindow* ParentWindowInBeginStack; - ImGuiWindow* RootWindow; - ImGuiWindow* RootWindowPopupTree; - ImGuiWindow* RootWindowDockTree; - ImGuiWindow* RootWindowForTitleBarHighlight; - ImGuiWindow* RootWindowForNav; ImGuiWindow* NavLastChildNavWindow; - ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; - ImRect NavRectRel[ImGuiNavLayer_COUNT]; - ImVec2 NavPreferredScoringPosRel[ImGuiNavLayer_COUNT]; - ImGuiID NavRootFocusScopeId; int MemoryDrawListIdxCapacity; - int MemoryDrawListVtxCapacity; - bool MemoryCompacted; - bool DockIsActive : 1; - bool DockNodeIsVisible : 1; - bool DockTabIsVisible : 1; - bool DockTabWantClose : 1; - short DockOrder; - ImGuiWindowDockStyle DockStyle; - ImGuiDockNode* DockNode; - ImGuiDockNode* DockNodeAsHost; - ImGuiID DockId; - ImGuiItemStatusFlags DockTabItemStatusFlags; - ImRect DockTabItemRect; + ImGuiContext* Ctx; + char* Name; + ImGuiID ID; + ImGuiWindowFlags Flags, FlagsPreviousFrame; + ImGuiWindowClass WindowClass; + ImGuiViewportP* Viewport; + ImGuiID ViewportId; + ImVec2 ViewportPos; + int ViewportAllowPlatformMonitorExtend; + ImVec2 Pos; + ImVec2 Size; + ImVec2 SizeFull; + ImVec2 ContentSize; + ImVec2 ContentSizeIdeal; + ImVec2 ContentSizeExplicit; + ImVec2 WindowPadding; + float WindowRounding; + float WindowBorderSize; + float DecoOuterSizeX1, DecoOuterSizeY1; + float DecoOuterSizeX2, DecoOuterSizeY2; + float DecoInnerSizeX1, DecoInnerSizeY1; + int NameBufLen; + ImGuiID MoveId; + ImGuiID TabId; + ImGuiID ChildId; + ImVec2 Scroll; + ImVec2 ScrollMax; + ImVec2 ScrollTarget; + ImVec2 ScrollTargetCenterRatio; + ImVec2 ScrollTargetEdgeSnapDist; + ImVec2 ScrollbarSizes; + bool ScrollbarX, ScrollbarY; + bool ViewportOwned; + bool Active; + bool WasActive; + bool WriteAccessed; + bool Collapsed; + bool WantCollapseToggle; + bool SkipItems; + bool Appearing; + bool Hidden; + bool IsFallbackWindow; + bool IsExplicitChild; + bool HasCloseButton; + signed char ResizeBorderHeld; + short BeginCount; + short BeginCountPreviousFrame; + short BeginOrderWithinParent; + short BeginOrderWithinContext; + short FocusOrder; + ImGuiID PopupId; + ImS8 AutoFitFramesX, AutoFitFramesY; + bool AutoFitOnlyGrows; + ImGuiDir AutoPosLastDirection; + ImS8 HiddenFramesCanSkipItems; + ImS8 HiddenFramesCannotSkipItems; + ImS8 HiddenFramesForRenderOnly; + ImS8 DisableInputsFrames; + ImGuiCond SetWindowPosAllowFlags : 8; + ImGuiCond SetWindowSizeAllowFlags : 8; + ImGuiCond SetWindowCollapsedAllowFlags : 8; + ImGuiCond SetWindowDockAllowFlags : 8; + ImVec2 SetWindowPosVal; + ImVec2 SetWindowPosPivot; ImVector_ImGuiID IDStack; + ImGuiWindowTempData DC; + ImRect OuterRectClipped; + ImRect InnerRect; + ImRect InnerClipRect; + ImRect WorkRect; + ImRect ParentWorkRect; + ImRect ClipRect; + ImRect ContentRegionRect; + ImVec2ih HitTestHoleSize; + ImVec2ih HitTestHoleOffset; int LastFrameActive; + int LastFrameJustFocused; + float LastTimeActive; + float ItemWidthDefault; + ImGuiStorage StateStorage; + ImVector_ImGuiOldColumns ColumnsStorage; + float FontWindowScale; + float FontDpiScale; + int SettingsOffset; ImDrawList* DrawList; + ImDrawList DrawListInst; + ImGuiWindow* ParentWindow; + ImGuiWindow* ParentWindowInBeginStack; + ImGuiWindow* RootWindow; + ImGuiWindow* RootWindowPopupTree; + ImGuiWindow* RootWindowDockTree; + ImGuiWindow* RootWindowForTitleBarHighlight; + ImGuiWindow* RootWindowForNav; ImGuiWindow* NavLastChildNavWindow; + ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; + ImRect NavRectRel[ImGuiNavLayer_COUNT]; + ImVec2 NavPreferredScoringPosRel[ImGuiNavLayer_COUNT]; + ImGuiID NavRootFocusScopeId; int MemoryDrawListIdxCapacity; + int MemoryDrawListVtxCapacity; + bool MemoryCompacted; + bool DockIsActive :1; + bool DockNodeIsVisible :1; + bool DockTabIsVisible :1; + bool DockTabWantClose :1; + short DockOrder; + ImGuiWindowDockStyle DockStyle; + ImGuiDockNode* DockNode; + ImGuiDockNode* DockNodeAsHost; + ImGuiID DockId; + ImGuiItemStatusFlags DockTabItemStatusFlags; + ImRect DockTabItemRect; }; typedef enum { - ImGuiTabBarFlags_DockNode = 1 << 20, - ImGuiTabBarFlags_IsFocused = 1 << 21, - ImGuiTabBarFlags_SaveSettings = 1 << 22, + ImGuiTabBarFlags_DockNode = 1 << 20, + ImGuiTabBarFlags_IsFocused = 1 << 21, + ImGuiTabBarFlags_SaveSettings = 1 << 22, }ImGuiTabBarFlagsPrivate_; typedef enum { - ImGuiTabItemFlags_SectionMask_ = ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing, - ImGuiTabItemFlags_NoCloseButton = 1 << 20, - ImGuiTabItemFlags_Button = 1 << 21, - ImGuiTabItemFlags_Unsorted = 1 << 22, - ImGuiTabItemFlags_Preview = 1 << 23, + ImGuiTabItemFlags_SectionMask_ = ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing, + ImGuiTabItemFlags_NoCloseButton = 1 << 20, + ImGuiTabItemFlags_Button = 1 << 21, + ImGuiTabItemFlags_Unsorted = 1 << 22, }ImGuiTabItemFlagsPrivate_; struct ImGuiTabItem { - ImGuiID ID; - ImGuiTabItemFlags Flags; - ImGuiWindow* Window; - int LastFrameVisible; - int LastFrameSelected; - float Offset; - float Width; - float ContentWidth; - float RequestedWidth; - ImS32 NameOffset; - ImS16 BeginOrder; - ImS16 IndexDuringLayout; - bool WantClose; + ImGuiID ID; + ImGuiTabItemFlags Flags; + ImGuiWindow* Window; + int LastFrameVisible; + int LastFrameSelected; + float Offset; + float Width; + float ContentWidth; + float RequestedWidth; + ImS32 NameOffset; + ImS16 BeginOrder; + ImS16 IndexDuringLayout; + bool WantClose; }; -typedef struct ImVector_ImGuiTabItem { int Size; int Capacity; ImGuiTabItem* Data; } ImVector_ImGuiTabItem; +typedef struct ImVector_ImGuiTabItem {int Size;int Capacity;ImGuiTabItem* Data;} ImVector_ImGuiTabItem; struct ImGuiTabBar { - ImVector_ImGuiTabItem Tabs; - ImGuiTabBarFlags Flags; - ImGuiID ID; - ImGuiID SelectedTabId; - ImGuiID NextSelectedTabId; - ImGuiID VisibleTabId; - int CurrFrameVisible; - int PrevFrameVisible; - ImRect BarRect; - float CurrTabsContentsHeight; - float PrevTabsContentsHeight; - float WidthAllTabs; - float WidthAllTabsIdeal; - float ScrollingAnim; - float ScrollingTarget; - float ScrollingTargetDistToVisibility; - float ScrollingSpeed; - float ScrollingRectMinX; - float ScrollingRectMaxX; - ImGuiID ReorderRequestTabId; - ImS16 ReorderRequestOffset; - ImS8 BeginCount; - bool WantLayout; - bool VisibleTabWasSubmitted; - bool TabsAddedNew; - ImS16 TabsActiveCount; - ImS16 LastTabItemIdx; - float ItemSpacingY; - ImVec2 FramePadding; - ImVec2 BackupCursorPos; - ImGuiTextBuffer TabsNames; + ImVector_ImGuiTabItem Tabs; + ImGuiTabBarFlags Flags; + ImGuiID ID; + ImGuiID SelectedTabId; + ImGuiID NextSelectedTabId; + ImGuiID VisibleTabId; + int CurrFrameVisible; + int PrevFrameVisible; + ImRect BarRect; + float CurrTabsContentsHeight; + float PrevTabsContentsHeight; + float WidthAllTabs; + float WidthAllTabsIdeal; + float ScrollingAnim; + float ScrollingTarget; + float ScrollingTargetDistToVisibility; + float ScrollingSpeed; + float ScrollingRectMinX; + float ScrollingRectMaxX; + float SeparatorMinX; + float SeparatorMaxX; + ImGuiID ReorderRequestTabId; + ImS16 ReorderRequestOffset; + ImS8 BeginCount; + bool WantLayout; + bool VisibleTabWasSubmitted; + bool TabsAddedNew; + ImS16 TabsActiveCount; + ImS16 LastTabItemIdx; + float ItemSpacingY; + ImVec2 FramePadding; + ImVec2 BackupCursorPos; + ImGuiTextBuffer TabsNames; }; typedef ImS16 ImGuiTableColumnIdx; typedef ImU16 ImGuiTableDrawChannelIdx; struct ImGuiTableColumn { - ImGuiTableColumnFlags Flags; - float WidthGiven; - float MinX; - float MaxX; - float WidthRequest; - float WidthAuto; - float StretchWeight; - float InitStretchWeightOrWidth; - ImRect ClipRect; - ImGuiID UserID; - float WorkMinX; - float WorkMaxX; - float ItemWidth; - float ContentMaxXFrozen; - float ContentMaxXUnfrozen; - float ContentMaxXHeadersUsed; - float ContentMaxXHeadersIdeal; - ImS16 NameOffset; - ImGuiTableColumnIdx DisplayOrder; - ImGuiTableColumnIdx IndexWithinEnabledSet; - ImGuiTableColumnIdx PrevEnabledColumn; - ImGuiTableColumnIdx NextEnabledColumn; - ImGuiTableColumnIdx SortOrder; - ImGuiTableDrawChannelIdx DrawChannelCurrent; - ImGuiTableDrawChannelIdx DrawChannelFrozen; - ImGuiTableDrawChannelIdx DrawChannelUnfrozen; - bool IsEnabled; - bool IsUserEnabled; - bool IsUserEnabledNextFrame; - bool IsVisibleX; - bool IsVisibleY; - bool IsRequestOutput; - bool IsSkipItems; - bool IsPreserveWidthAuto; - ImS8 NavLayerCurrent; - ImU8 AutoFitQueue; - ImU8 CannotSkipItemsQueue; - ImU8 SortDirection : 2; - ImU8 SortDirectionsAvailCount : 2; - ImU8 SortDirectionsAvailMask : 4; - ImU8 SortDirectionsAvailList; + ImGuiTableColumnFlags Flags; + float WidthGiven; + float MinX; + float MaxX; + float WidthRequest; + float WidthAuto; + float StretchWeight; + float InitStretchWeightOrWidth; + ImRect ClipRect; + ImGuiID UserID; + float WorkMinX; + float WorkMaxX; + float ItemWidth; + float ContentMaxXFrozen; + float ContentMaxXUnfrozen; + float ContentMaxXHeadersUsed; + float ContentMaxXHeadersIdeal; + ImS16 NameOffset; + ImGuiTableColumnIdx DisplayOrder; + ImGuiTableColumnIdx IndexWithinEnabledSet; + ImGuiTableColumnIdx PrevEnabledColumn; + ImGuiTableColumnIdx NextEnabledColumn; + ImGuiTableColumnIdx SortOrder; + ImGuiTableDrawChannelIdx DrawChannelCurrent; + ImGuiTableDrawChannelIdx DrawChannelFrozen; + ImGuiTableDrawChannelIdx DrawChannelUnfrozen; + bool IsEnabled; + bool IsUserEnabled; + bool IsUserEnabledNextFrame; + bool IsVisibleX; + bool IsVisibleY; + bool IsRequestOutput; + bool IsSkipItems; + bool IsPreserveWidthAuto; + ImS8 NavLayerCurrent; + ImU8 AutoFitQueue; + ImU8 CannotSkipItemsQueue; + ImU8 SortDirection : 2; + ImU8 SortDirectionsAvailCount : 2; + ImU8 SortDirectionsAvailMask : 4; + ImU8 SortDirectionsAvailList; }; typedef struct ImGuiTableCellData ImGuiTableCellData; struct ImGuiTableCellData { - ImU32 BgColor; - ImGuiTableColumnIdx Column; + ImU32 BgColor; + ImGuiTableColumnIdx Column; }; struct ImGuiTableInstanceData { - ImGuiID TableInstanceID; - float LastOuterHeight; - float LastFirstRowHeight; - float LastFrozenHeight; + ImGuiID TableInstanceID; + float LastOuterHeight; + float LastTopHeadersRowHeight; + float LastFrozenHeight; + int HoveredRowLast; + int HoveredRowNext; }; -typedef struct ImSpan_ImGuiTableColumn { ImGuiTableColumn* Data; ImGuiTableColumn* DataEnd; } ImSpan_ImGuiTableColumn; +typedef struct ImSpan_ImGuiTableColumn {ImGuiTableColumn* Data;ImGuiTableColumn* DataEnd;} ImSpan_ImGuiTableColumn; -typedef struct ImSpan_ImGuiTableColumnIdx { ImGuiTableColumnIdx* Data; ImGuiTableColumnIdx* DataEnd; } ImSpan_ImGuiTableColumnIdx; +typedef struct ImSpan_ImGuiTableColumnIdx {ImGuiTableColumnIdx* Data;ImGuiTableColumnIdx* DataEnd;} ImSpan_ImGuiTableColumnIdx; -typedef struct ImSpan_ImGuiTableCellData { ImGuiTableCellData* Data; ImGuiTableCellData* DataEnd; } ImSpan_ImGuiTableCellData; +typedef struct ImSpan_ImGuiTableCellData {ImGuiTableCellData* Data;ImGuiTableCellData* DataEnd;} ImSpan_ImGuiTableCellData; -typedef struct ImVector_ImGuiTableInstanceData { int Size; int Capacity; ImGuiTableInstanceData* Data; } ImVector_ImGuiTableInstanceData; +typedef struct ImVector_ImGuiTableInstanceData {int Size;int Capacity;ImGuiTableInstanceData* Data;} ImVector_ImGuiTableInstanceData; -typedef struct ImVector_ImGuiTableColumnSortSpecs { int Size; int Capacity; ImGuiTableColumnSortSpecs* Data; } ImVector_ImGuiTableColumnSortSpecs; +typedef struct ImVector_ImGuiTableColumnSortSpecs {int Size;int Capacity;ImGuiTableColumnSortSpecs* Data;} ImVector_ImGuiTableColumnSortSpecs; struct ImGuiTable { - ImGuiID ID; - ImGuiTableFlags Flags; - void* RawData; - ImGuiTableTempData* TempData; - ImSpan_ImGuiTableColumn Columns; - ImSpan_ImGuiTableColumnIdx DisplayOrderToIndex; - ImSpan_ImGuiTableCellData RowCellData; - ImBitArrayPtr EnabledMaskByDisplayOrder; - ImBitArrayPtr EnabledMaskByIndex; - ImBitArrayPtr VisibleMaskByIndex; - ImGuiTableFlags SettingsLoadedFlags; - int SettingsOffset; - int LastFrameActive; - int ColumnsCount; - int CurrentRow; - int CurrentColumn; - ImS16 InstanceCurrent; - ImS16 InstanceInteracted; - float RowPosY1; - float RowPosY2; - float RowMinHeight; - float RowTextBaseline; - float RowIndentOffsetX; - ImGuiTableRowFlags RowFlags : 16; - ImGuiTableRowFlags LastRowFlags : 16; - int RowBgColorCounter; - ImU32 RowBgColor[2]; - ImU32 BorderColorStrong; - ImU32 BorderColorLight; - float BorderX1; - float BorderX2; - float HostIndentX; - float MinColumnWidth; - float OuterPaddingX; - float CellPaddingX; - float CellPaddingY; - float CellSpacingX1; - float CellSpacingX2; - float InnerWidth; - float ColumnsGivenWidth; - float ColumnsAutoFitWidth; - float ColumnsStretchSumWeights; - float ResizedColumnNextWidth; - float ResizeLockMinContentsX2; - float RefScale; - ImRect OuterRect; - ImRect InnerRect; - ImRect WorkRect; - ImRect InnerClipRect; - ImRect BgClipRect; - ImRect Bg0ClipRectForDrawCmd; - ImRect Bg2ClipRectForDrawCmd; - ImRect HostClipRect; - ImRect HostBackupInnerClipRect; - ImGuiWindow* OuterWindow; - ImGuiWindow* InnerWindow; - ImGuiTextBuffer ColumnsNames; - ImDrawListSplitter* DrawSplitter; - ImGuiTableInstanceData InstanceDataFirst; - ImVector_ImGuiTableInstanceData InstanceDataExtra; - ImGuiTableColumnSortSpecs SortSpecsSingle; - ImVector_ImGuiTableColumnSortSpecs SortSpecsMulti; - ImGuiTableSortSpecs SortSpecs; - ImGuiTableColumnIdx SortSpecsCount; - ImGuiTableColumnIdx ColumnsEnabledCount; - ImGuiTableColumnIdx ColumnsEnabledFixedCount; - ImGuiTableColumnIdx DeclColumnsCount; - ImGuiTableColumnIdx HoveredColumnBody; - ImGuiTableColumnIdx HoveredColumnBorder; - ImGuiTableColumnIdx AutoFitSingleColumn; - ImGuiTableColumnIdx ResizedColumn; - ImGuiTableColumnIdx LastResizedColumn; - ImGuiTableColumnIdx HeldHeaderColumn; - ImGuiTableColumnIdx ReorderColumn; - ImGuiTableColumnIdx ReorderColumnDir; - ImGuiTableColumnIdx LeftMostEnabledColumn; - ImGuiTableColumnIdx RightMostEnabledColumn; - ImGuiTableColumnIdx LeftMostStretchedColumn; - ImGuiTableColumnIdx RightMostStretchedColumn; - ImGuiTableColumnIdx ContextPopupColumn; - ImGuiTableColumnIdx FreezeRowsRequest; - ImGuiTableColumnIdx FreezeRowsCount; - ImGuiTableColumnIdx FreezeColumnsRequest; - ImGuiTableColumnIdx FreezeColumnsCount; - ImGuiTableColumnIdx RowCellDataCurrent; - ImGuiTableDrawChannelIdx DummyDrawChannel; - ImGuiTableDrawChannelIdx Bg2DrawChannelCurrent; - ImGuiTableDrawChannelIdx Bg2DrawChannelUnfrozen; - bool IsLayoutLocked; - bool IsInsideRow; - bool IsInitializing; - bool IsSortSpecsDirty; - bool IsUsingHeaders; - bool IsContextPopupOpen; - bool IsSettingsRequestLoad; - bool IsSettingsDirty; - bool IsDefaultDisplayOrder; - bool IsResetAllRequest; - bool IsResetDisplayOrderRequest; - bool IsUnfrozenRows; - bool IsDefaultSizingPolicy; - bool HasScrollbarYCurr; - bool HasScrollbarYPrev; - bool MemoryCompacted; - bool HostSkipItems; + ImGuiID ID; + ImGuiTableFlags Flags; + void* RawData; + ImGuiTableTempData* TempData; + ImSpan_ImGuiTableColumn Columns; + ImSpan_ImGuiTableColumnIdx DisplayOrderToIndex; + ImSpan_ImGuiTableCellData RowCellData; + ImBitArrayPtr EnabledMaskByDisplayOrder; + ImBitArrayPtr EnabledMaskByIndex; + ImBitArrayPtr VisibleMaskByIndex; + ImGuiTableFlags SettingsLoadedFlags; + int SettingsOffset; + int LastFrameActive; + int ColumnsCount; + int CurrentRow; + int CurrentColumn; + ImS16 InstanceCurrent; + ImS16 InstanceInteracted; + float RowPosY1; + float RowPosY2; + float RowMinHeight; + float RowCellPaddingY; + float RowTextBaseline; + float RowIndentOffsetX; + ImGuiTableRowFlags RowFlags : 16; + ImGuiTableRowFlags LastRowFlags : 16; + int RowBgColorCounter; + ImU32 RowBgColor[2]; + ImU32 BorderColorStrong; + ImU32 BorderColorLight; + float BorderX1; + float BorderX2; + float HostIndentX; + float MinColumnWidth; + float OuterPaddingX; + float CellPaddingX; + float CellSpacingX1; + float CellSpacingX2; + float InnerWidth; + float ColumnsGivenWidth; + float ColumnsAutoFitWidth; + float ColumnsStretchSumWeights; + float ResizedColumnNextWidth; + float ResizeLockMinContentsX2; + float RefScale; + float AngledHeadersHeight; + float AngledHeadersSlope; + ImRect OuterRect; + ImRect InnerRect; + ImRect WorkRect; + ImRect InnerClipRect; + ImRect BgClipRect; + ImRect Bg0ClipRectForDrawCmd; + ImRect Bg2ClipRectForDrawCmd; + ImRect HostClipRect; + ImRect HostBackupInnerClipRect; + ImGuiWindow* OuterWindow; + ImGuiWindow* InnerWindow; + ImGuiTextBuffer ColumnsNames; + ImDrawListSplitter* DrawSplitter; + ImGuiTableInstanceData InstanceDataFirst; + ImVector_ImGuiTableInstanceData InstanceDataExtra; + ImGuiTableColumnSortSpecs SortSpecsSingle; + ImVector_ImGuiTableColumnSortSpecs SortSpecsMulti; + ImGuiTableSortSpecs SortSpecs; + ImGuiTableColumnIdx SortSpecsCount; + ImGuiTableColumnIdx ColumnsEnabledCount; + ImGuiTableColumnIdx ColumnsEnabledFixedCount; + ImGuiTableColumnIdx DeclColumnsCount; + ImGuiTableColumnIdx AngledHeadersCount; + ImGuiTableColumnIdx HoveredColumnBody; + ImGuiTableColumnIdx HoveredColumnBorder; + ImGuiTableColumnIdx HighlightColumnHeader; + ImGuiTableColumnIdx AutoFitSingleColumn; + ImGuiTableColumnIdx ResizedColumn; + ImGuiTableColumnIdx LastResizedColumn; + ImGuiTableColumnIdx HeldHeaderColumn; + ImGuiTableColumnIdx ReorderColumn; + ImGuiTableColumnIdx ReorderColumnDir; + ImGuiTableColumnIdx LeftMostEnabledColumn; + ImGuiTableColumnIdx RightMostEnabledColumn; + ImGuiTableColumnIdx LeftMostStretchedColumn; + ImGuiTableColumnIdx RightMostStretchedColumn; + ImGuiTableColumnIdx ContextPopupColumn; + ImGuiTableColumnIdx FreezeRowsRequest; + ImGuiTableColumnIdx FreezeRowsCount; + ImGuiTableColumnIdx FreezeColumnsRequest; + ImGuiTableColumnIdx FreezeColumnsCount; + ImGuiTableColumnIdx RowCellDataCurrent; + ImGuiTableDrawChannelIdx DummyDrawChannel; + ImGuiTableDrawChannelIdx Bg2DrawChannelCurrent; + ImGuiTableDrawChannelIdx Bg2DrawChannelUnfrozen; + bool IsLayoutLocked; + bool IsInsideRow; + bool IsInitializing; + bool IsSortSpecsDirty; + bool IsUsingHeaders; + bool IsContextPopupOpen; + bool IsSettingsRequestLoad; + bool IsSettingsDirty; + bool IsDefaultDisplayOrder; + bool IsResetAllRequest; + bool IsResetDisplayOrderRequest; + bool IsUnfrozenRows; + bool IsDefaultSizingPolicy; + bool IsActiveIdAliveBeforeTable; + bool IsActiveIdInTable; + bool HasScrollbarYCurr; + bool HasScrollbarYPrev; + bool MemoryCompacted; + bool HostSkipItems; }; struct ImGuiTableTempData { - int TableIndex; - float LastTimeActive; ImVec2 UserOuterSize; - ImDrawListSplitter DrawSplitter; ImRect HostBackupWorkRect; - ImRect HostBackupParentWorkRect; - ImVec2 HostBackupPrevLineSize; - ImVec2 HostBackupCurrLineSize; - ImVec2 HostBackupCursorMaxPos; - ImVec1 HostBackupColumnsOffset; - float HostBackupItemWidth; - int HostBackupItemWidthStackSize; + int TableIndex; + float LastTimeActive; + float AngledheadersExtraWidth; ImVec2 UserOuterSize; + ImDrawListSplitter DrawSplitter; ImRect HostBackupWorkRect; + ImRect HostBackupParentWorkRect; + ImVec2 HostBackupPrevLineSize; + ImVec2 HostBackupCurrLineSize; + ImVec2 HostBackupCursorMaxPos; + ImVec1 HostBackupColumnsOffset; + float HostBackupItemWidth; + int HostBackupItemWidthStackSize; }; typedef struct ImGuiTableColumnSettings ImGuiTableColumnSettings; struct ImGuiTableColumnSettings { - float WidthOrWeight; - ImGuiID UserID; - ImGuiTableColumnIdx Index; - ImGuiTableColumnIdx DisplayOrder; - ImGuiTableColumnIdx SortOrder; - ImU8 SortDirection : 2; - ImU8 IsEnabled : 1; - ImU8 IsStretch : 1; + float WidthOrWeight; + ImGuiID UserID; + ImGuiTableColumnIdx Index; + ImGuiTableColumnIdx DisplayOrder; + ImGuiTableColumnIdx SortOrder; + ImU8 SortDirection : 2; + ImU8 IsEnabled : 1; + ImU8 IsStretch : 1; }; struct ImGuiTableSettings { - ImGuiID ID; - ImGuiTableFlags SaveFlags; - float RefScale; - ImGuiTableColumnIdx ColumnsCount; - ImGuiTableColumnIdx ColumnsCountMax; - bool WantApply; + ImGuiID ID; + ImGuiTableFlags SaveFlags; + float RefScale; + ImGuiTableColumnIdx ColumnsCount; + ImGuiTableColumnIdx ColumnsCountMax; + bool WantApply; }; struct ImFontBuilderIO { - bool (*FontBuilder_Build)(ImFontAtlas* atlas); + bool (*FontBuilder_Build)(ImFontAtlas* atlas); }; #define IMGUI_HAS_DOCK 1 @@ -3128,6 +3235,7 @@ typedef ImVector ImVector_ImGuiItemFlags; typedef ImVector ImVector_ImGuiKeyRoutingData; typedef ImVector ImVector_ImGuiListClipperData; typedef ImVector ImVector_ImGuiListClipperRange; +typedef ImVector ImVector_ImGuiNavTreeNodeData; typedef ImVector ImVector_ImGuiOldColumnData; typedef ImVector ImVector_ImGuiOldColumns; typedef ImVector ImVector_ImGuiPlatformMonitor; @@ -3160,10 +3268,10 @@ typedef ImVector ImVector_unsigned_char; #endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void); CIMGUI_API void ImVec2_destroy(ImVec2* self); -CIMGUI_API ImVec2* ImVec2_ImVec2_Float(float _x, float _y); +CIMGUI_API ImVec2* ImVec2_ImVec2_Float(float _x,float _y); CIMGUI_API ImVec4* ImVec4_ImVec4_Nil(void); CIMGUI_API void ImVec4_destroy(ImVec4* self); -CIMGUI_API ImVec4* ImVec4_ImVec4_Float(float _x, float _y, float _z, float _w); +CIMGUI_API ImVec4* ImVec4_ImVec4_Float(float _x,float _y,float _z,float _w); CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas); CIMGUI_API void igDestroyContext(ImGuiContext* ctx); CIMGUI_API ImGuiContext* igGetCurrentContext(void); @@ -3177,7 +3285,7 @@ CIMGUI_API ImDrawData* igGetDrawData(void); CIMGUI_API void igShowDemoWindow(bool* p_open); CIMGUI_API void igShowMetricsWindow(bool* p_open); CIMGUI_API void igShowDebugLogWindow(bool* p_open); -CIMGUI_API void igShowStackToolWindow(bool* p_open); +CIMGUI_API void igShowIDStackToolWindow(bool* p_open); CIMGUI_API void igShowAboutWindow(bool* p_open); CIMGUI_API void igShowStyleEditor(ImGuiStyle* ref); CIMGUI_API bool igShowStyleSelector(const char* label); @@ -3187,10 +3295,10 @@ CIMGUI_API const char* igGetVersion(void); CIMGUI_API void igStyleColorsDark(ImGuiStyle* dst); CIMGUI_API void igStyleColorsLight(ImGuiStyle* dst); CIMGUI_API void igStyleColorsClassic(ImGuiStyle* dst); -CIMGUI_API bool igBegin(const char* name, bool* p_open, ImGuiWindowFlags flags); +CIMGUI_API bool igBegin(const char* name,bool* p_open,ImGuiWindowFlags flags); CIMGUI_API void igEnd(void); -CIMGUI_API bool igBeginChild_Str(const char* str_id, const ImVec2 size, bool border, ImGuiWindowFlags flags); -CIMGUI_API bool igBeginChild_ID(ImGuiID id, const ImVec2 size, bool border, ImGuiWindowFlags flags); +CIMGUI_API bool igBeginChild_Str(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags window_flags); +CIMGUI_API bool igBeginChild_ID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags window_flags); CIMGUI_API void igEndChild(void); CIMGUI_API bool igIsWindowAppearing(void); CIMGUI_API bool igIsWindowCollapsed(void); @@ -3198,33 +3306,33 @@ CIMGUI_API bool igIsWindowFocused(ImGuiFocusedFlags flags); CIMGUI_API bool igIsWindowHovered(ImGuiHoveredFlags flags); CIMGUI_API ImDrawList* igGetWindowDrawList(void); CIMGUI_API float igGetWindowDpiScale(void); -CIMGUI_API void igGetWindowPos(ImVec2* pOut); -CIMGUI_API void igGetWindowSize(ImVec2* pOut); +CIMGUI_API void igGetWindowPos(ImVec2 *pOut); +CIMGUI_API void igGetWindowSize(ImVec2 *pOut); CIMGUI_API float igGetWindowWidth(void); CIMGUI_API float igGetWindowHeight(void); CIMGUI_API ImGuiViewport* igGetWindowViewport(void); -CIMGUI_API void igSetNextWindowPos(const ImVec2 pos, ImGuiCond cond, const ImVec2 pivot); -CIMGUI_API void igSetNextWindowSize(const ImVec2 size, ImGuiCond cond); -CIMGUI_API void igSetNextWindowSizeConstraints(const ImVec2 size_min, const ImVec2 size_max, ImGuiSizeCallback custom_callback, void* custom_callback_data); +CIMGUI_API void igSetNextWindowPos(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot); +CIMGUI_API void igSetNextWindowSize(const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetNextWindowSizeConstraints(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data); CIMGUI_API void igSetNextWindowContentSize(const ImVec2 size); -CIMGUI_API void igSetNextWindowCollapsed(bool collapsed, ImGuiCond cond); +CIMGUI_API void igSetNextWindowCollapsed(bool collapsed,ImGuiCond cond); CIMGUI_API void igSetNextWindowFocus(void); CIMGUI_API void igSetNextWindowScroll(const ImVec2 scroll); CIMGUI_API void igSetNextWindowBgAlpha(float alpha); CIMGUI_API void igSetNextWindowViewport(ImGuiID viewport_id); -CIMGUI_API void igSetWindowPos_Vec2(const ImVec2 pos, ImGuiCond cond); -CIMGUI_API void igSetWindowSize_Vec2(const ImVec2 size, ImGuiCond cond); -CIMGUI_API void igSetWindowCollapsed_Bool(bool collapsed, ImGuiCond cond); +CIMGUI_API void igSetWindowPos_Vec2(const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_Vec2(const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_Bool(bool collapsed,ImGuiCond cond); CIMGUI_API void igSetWindowFocus_Nil(void); CIMGUI_API void igSetWindowFontScale(float scale); -CIMGUI_API void igSetWindowPos_Str(const char* name, const ImVec2 pos, ImGuiCond cond); -CIMGUI_API void igSetWindowSize_Str(const char* name, const ImVec2 size, ImGuiCond cond); -CIMGUI_API void igSetWindowCollapsed_Str(const char* name, bool collapsed, ImGuiCond cond); +CIMGUI_API void igSetWindowPos_Str(const char* name,const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_Str(const char* name,const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_Str(const char* name,bool collapsed,ImGuiCond cond); CIMGUI_API void igSetWindowFocus_Str(const char* name); -CIMGUI_API void igGetContentRegionAvail(ImVec2* pOut); -CIMGUI_API void igGetContentRegionMax(ImVec2* pOut); -CIMGUI_API void igGetWindowContentRegionMin(ImVec2* pOut); -CIMGUI_API void igGetWindowContentRegionMax(ImVec2* pOut); +CIMGUI_API void igGetContentRegionAvail(ImVec2 *pOut); +CIMGUI_API void igGetContentRegionMax(ImVec2 *pOut); +CIMGUI_API void igGetWindowContentRegionMin(ImVec2 *pOut); +CIMGUI_API void igGetWindowContentRegionMax(ImVec2 *pOut); CIMGUI_API float igGetScrollX(void); CIMGUI_API float igGetScrollY(void); CIMGUI_API void igSetScrollX_Float(float scroll_x); @@ -3233,15 +3341,15 @@ CIMGUI_API float igGetScrollMaxX(void); CIMGUI_API float igGetScrollMaxY(void); CIMGUI_API void igSetScrollHereX(float center_x_ratio); CIMGUI_API void igSetScrollHereY(float center_y_ratio); -CIMGUI_API void igSetScrollFromPosX_Float(float local_x, float center_x_ratio); -CIMGUI_API void igSetScrollFromPosY_Float(float local_y, float center_y_ratio); +CIMGUI_API void igSetScrollFromPosX_Float(float local_x,float center_x_ratio); +CIMGUI_API void igSetScrollFromPosY_Float(float local_y,float center_y_ratio); CIMGUI_API void igPushFont(ImFont* font); CIMGUI_API void igPopFont(void); -CIMGUI_API void igPushStyleColor_U32(ImGuiCol idx, ImU32 col); -CIMGUI_API void igPushStyleColor_Vec4(ImGuiCol idx, const ImVec4 col); +CIMGUI_API void igPushStyleColor_U32(ImGuiCol idx,ImU32 col); +CIMGUI_API void igPushStyleColor_Vec4(ImGuiCol idx,const ImVec4 col); CIMGUI_API void igPopStyleColor(int count); -CIMGUI_API void igPushStyleVar_Float(ImGuiStyleVar idx, float val); -CIMGUI_API void igPushStyleVar_Vec2(ImGuiStyleVar idx, const ImVec2 val); +CIMGUI_API void igPushStyleVar_Float(ImGuiStyleVar idx,float val); +CIMGUI_API void igPushStyleVar_Vec2(ImGuiStyleVar idx,const ImVec2 val); CIMGUI_API void igPopStyleVar(int count); CIMGUI_API void igPushTabStop(bool tab_stop); CIMGUI_API void igPopTabStop(void); @@ -3255,13 +3363,22 @@ CIMGUI_API void igPushTextWrapPos(float wrap_local_pos_x); CIMGUI_API void igPopTextWrapPos(void); CIMGUI_API ImFont* igGetFont(void); CIMGUI_API float igGetFontSize(void); -CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2* pOut); -CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx, float alpha_mul); +CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2 *pOut); +CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx,float alpha_mul); CIMGUI_API ImU32 igGetColorU32_Vec4(const ImVec4 col); CIMGUI_API ImU32 igGetColorU32_U32(ImU32 col); CIMGUI_API const ImVec4* igGetStyleColorVec4(ImGuiCol idx); +CIMGUI_API void igGetCursorScreenPos(ImVec2 *pOut); +CIMGUI_API void igSetCursorScreenPos(const ImVec2 pos); +CIMGUI_API void igGetCursorPos(ImVec2 *pOut); +CIMGUI_API float igGetCursorPosX(void); +CIMGUI_API float igGetCursorPosY(void); +CIMGUI_API void igSetCursorPos(const ImVec2 local_pos); +CIMGUI_API void igSetCursorPosX(float local_x); +CIMGUI_API void igSetCursorPosY(float local_y); +CIMGUI_API void igGetCursorStartPos(ImVec2 *pOut); CIMGUI_API void igSeparator(void); -CIMGUI_API void igSameLine(float offset_from_start_x, float spacing); +CIMGUI_API void igSameLine(float offset_from_start_x,float spacing); CIMGUI_API void igNewLine(void); CIMGUI_API void igSpacing(void); CIMGUI_API void igDummy(const ImVec2 size); @@ -3269,216 +3386,208 @@ CIMGUI_API void igIndent(float indent_w); CIMGUI_API void igUnindent(float indent_w); CIMGUI_API void igBeginGroup(void); CIMGUI_API void igEndGroup(void); -CIMGUI_API void igGetCursorPos(ImVec2* pOut); -CIMGUI_API float igGetCursorPosX(void); -CIMGUI_API float igGetCursorPosY(void); -CIMGUI_API void igSetCursorPos(const ImVec2 local_pos); -CIMGUI_API void igSetCursorPosX(float local_x); -CIMGUI_API void igSetCursorPosY(float local_y); -CIMGUI_API void igGetCursorStartPos(ImVec2* pOut); -CIMGUI_API void igGetCursorScreenPos(ImVec2* pOut); -CIMGUI_API void igSetCursorScreenPos(const ImVec2 pos); CIMGUI_API void igAlignTextToFramePadding(void); CIMGUI_API float igGetTextLineHeight(void); CIMGUI_API float igGetTextLineHeightWithSpacing(void); CIMGUI_API float igGetFrameHeight(void); CIMGUI_API float igGetFrameHeightWithSpacing(void); CIMGUI_API void igPushID_Str(const char* str_id); -CIMGUI_API void igPushID_StrStr(const char* str_id_begin, const char* str_id_end); +CIMGUI_API void igPushID_StrStr(const char* str_id_begin,const char* str_id_end); CIMGUI_API void igPushID_Ptr(const void* ptr_id); CIMGUI_API void igPushID_Int(int int_id); CIMGUI_API void igPopID(void); CIMGUI_API ImGuiID igGetID_Str(const char* str_id); -CIMGUI_API ImGuiID igGetID_StrStr(const char* str_id_begin, const char* str_id_end); +CIMGUI_API ImGuiID igGetID_StrStr(const char* str_id_begin,const char* str_id_end); CIMGUI_API ImGuiID igGetID_Ptr(const void* ptr_id); -CIMGUI_API void igTextUnformatted(const char* text, const char* text_end); -CIMGUI_API void igText(const char* fmt, ...); -CIMGUI_API void igTextV(const char* fmt, va_list args); -CIMGUI_API void igTextColored(const ImVec4 col, const char* fmt, ...); -CIMGUI_API void igTextColoredV(const ImVec4 col, const char* fmt, va_list args); -CIMGUI_API void igTextDisabled(const char* fmt, ...); -CIMGUI_API void igTextDisabledV(const char* fmt, va_list args); -CIMGUI_API void igTextWrapped(const char* fmt, ...); -CIMGUI_API void igTextWrappedV(const char* fmt, va_list args); -CIMGUI_API void igLabelText(const char* label, const char* fmt, ...); -CIMGUI_API void igLabelTextV(const char* label, const char* fmt, va_list args); -CIMGUI_API void igBulletText(const char* fmt, ...); -CIMGUI_API void igBulletTextV(const char* fmt, va_list args); +CIMGUI_API void igTextUnformatted(const char* text,const char* text_end); +CIMGUI_API void igText(const char* fmt,...); +CIMGUI_API void igTextV(const char* fmt,va_list args); +CIMGUI_API void igTextColored(const ImVec4 col,const char* fmt,...); +CIMGUI_API void igTextColoredV(const ImVec4 col,const char* fmt,va_list args); +CIMGUI_API void igTextDisabled(const char* fmt,...); +CIMGUI_API void igTextDisabledV(const char* fmt,va_list args); +CIMGUI_API void igTextWrapped(const char* fmt,...); +CIMGUI_API void igTextWrappedV(const char* fmt,va_list args); +CIMGUI_API void igLabelText(const char* label,const char* fmt,...); +CIMGUI_API void igLabelTextV(const char* label,const char* fmt,va_list args); +CIMGUI_API void igBulletText(const char* fmt,...); +CIMGUI_API void igBulletTextV(const char* fmt,va_list args); CIMGUI_API void igSeparatorText(const char* label); -CIMGUI_API bool igButton(const char* label, const ImVec2 size); +CIMGUI_API bool igButton(const char* label,const ImVec2 size); CIMGUI_API bool igSmallButton(const char* label); -CIMGUI_API bool igInvisibleButton(const char* str_id, const ImVec2 size, ImGuiButtonFlags flags); -CIMGUI_API bool igArrowButton(const char* str_id, ImGuiDir dir); -CIMGUI_API bool igCheckbox(const char* label, bool* v); -CIMGUI_API bool igCheckboxFlags_IntPtr(const char* label, int* flags, int flags_value); -CIMGUI_API bool igCheckboxFlags_UintPtr(const char* label, unsigned int* flags, unsigned int flags_value); -CIMGUI_API bool igRadioButton_Bool(const char* label, bool active); -CIMGUI_API bool igRadioButton_IntPtr(const char* label, int* v, int v_button); -CIMGUI_API void igProgressBar(float fraction, const ImVec2 size_arg, const char* overlay); +CIMGUI_API bool igInvisibleButton(const char* str_id,const ImVec2 size,ImGuiButtonFlags flags); +CIMGUI_API bool igArrowButton(const char* str_id,ImGuiDir dir); +CIMGUI_API bool igCheckbox(const char* label,bool* v); +CIMGUI_API bool igCheckboxFlags_IntPtr(const char* label,int* flags,int flags_value); +CIMGUI_API bool igCheckboxFlags_UintPtr(const char* label,unsigned int* flags,unsigned int flags_value); +CIMGUI_API bool igRadioButton_Bool(const char* label,bool active); +CIMGUI_API bool igRadioButton_IntPtr(const char* label,int* v,int v_button); +CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay); CIMGUI_API void igBullet(void); -CIMGUI_API void igImage(ImTextureID user_texture_id, const ImVec2 size, const ImVec2 uv0, const ImVec2 uv1, const ImVec4 tint_col, const ImVec4 border_col); -CIMGUI_API bool igImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2 size, const ImVec2 uv0, const ImVec2 uv1, const ImVec4 bg_col, const ImVec4 tint_col); -CIMGUI_API bool igBeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags); +CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col); +CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col); +CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags); CIMGUI_API void igEndCombo(void); -CIMGUI_API bool igCombo_Str_arr(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items); -CIMGUI_API bool igCombo_Str(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items); -CIMGUI_API bool igCombo_FnBoolPtr(const char* label, int* current_item, bool(*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int popup_max_height_in_items); -CIMGUI_API bool igDragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igDragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igDragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igDragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igDragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags); -CIMGUI_API bool igDragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igDragInt2(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igDragInt3(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igDragInt4(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igDragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* format, const char* format_max, ImGuiSliderFlags flags); -CIMGUI_API bool igDragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igDragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderAngle(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderInt(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igVSliderFloat(const char* label, const ImVec2 size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igVSliderInt(const char* label, const ImVec2 size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igVSliderScalar(const char* label, const ImVec2 size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igInputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); -CIMGUI_API bool igInputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); -CIMGUI_API bool igInputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); -CIMGUI_API bool igInputFloat(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags); -CIMGUI_API bool igInputFloat2(const char* label, float v[2], const char* format, ImGuiInputTextFlags flags); -CIMGUI_API bool igInputFloat3(const char* label, float v[3], const char* format, ImGuiInputTextFlags flags); -CIMGUI_API bool igInputFloat4(const char* label, float v[4], const char* format, ImGuiInputTextFlags flags); -CIMGUI_API bool igInputInt(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags); -CIMGUI_API bool igInputInt2(const char* label, int v[2], ImGuiInputTextFlags flags); -CIMGUI_API bool igInputInt3(const char* label, int v[3], ImGuiInputTextFlags flags); -CIMGUI_API bool igInputInt4(const char* label, int v[4], ImGuiInputTextFlags flags); -CIMGUI_API bool igInputDouble(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags); -CIMGUI_API bool igInputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags); -CIMGUI_API bool igInputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags); -CIMGUI_API bool igColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags); -CIMGUI_API bool igColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags); -CIMGUI_API bool igColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags); -CIMGUI_API bool igColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags, const float* ref_col); -CIMGUI_API bool igColorButton(const char* desc_id, const ImVec4 col, ImGuiColorEditFlags flags, const ImVec2 size); +CIMGUI_API bool igCombo_Str_arr(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items); +CIMGUI_API bool igCombo_Str(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items); +CIMGUI_API bool igCombo_FnStrPtr(const char* label,int* current_item,const char*(*getter)(void* user_data,int idx),void* user_data,int items_count,int popup_max_height_in_items); +CIMGUI_API bool igDragFloat(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloat2(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloat3(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloat4(const char* label,float v[4],float v_speed,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragFloatRange2(const char* label,float* v_current_min,float* v_current_max,float v_speed,float v_min,float v_max,const char* format,const char* format_max,ImGuiSliderFlags flags); +CIMGUI_API bool igDragInt(const char* label,int* v,float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragInt2(const char* label,int v[2],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragInt3(const char* label,int v[3],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragInt4(const char* label,int v[4],float v_speed,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragIntRange2(const char* label,int* v_current_min,int* v_current_max,float v_speed,int v_min,int v_max,const char* format,const char* format_max,ImGuiSliderFlags flags); +CIMGUI_API bool igDragScalar(const char* label,ImGuiDataType data_type,void* p_data,float v_speed,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igDragScalarN(const char* label,ImGuiDataType data_type,void* p_data,int components,float v_speed,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderFloat(const char* label,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderFloat2(const char* label,float v[2],float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderFloat3(const char* label,float v[3],float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderFloat4(const char* label,float v[4],float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderAngle(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt(const char* label,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt2(const char* label,int v[2],int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt3(const char* label,int v[3],int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderInt4(const char* label,int v[4],int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderScalar(const char* label,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderScalarN(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igVSliderFloat(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igVSliderInt(const char* label,const ImVec2 size,int* v,int v_min,int v_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igVSliderScalar(const char* label,const ImVec2 size,ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); +CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); +CIMGUI_API bool igInputTextWithHint(const char* label,const char* hint,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); +CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags flags); +CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags flags); +CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputScalar(const char* label,ImGuiDataType data_type,void* p_data,const void* p_step,const void* p_step_fast,const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igInputScalarN(const char* label,ImGuiDataType data_type,void* p_data,int components,const void* p_step,const void* p_step_fast,const char* format,ImGuiInputTextFlags flags); +CIMGUI_API bool igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags flags); +CIMGUI_API bool igColorEdit4(const char* label,float col[4],ImGuiColorEditFlags flags); +CIMGUI_API bool igColorPicker3(const char* label,float col[3],ImGuiColorEditFlags flags); +CIMGUI_API bool igColorPicker4(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col); +CIMGUI_API bool igColorButton(const char* desc_id,const ImVec4 col,ImGuiColorEditFlags flags,const ImVec2 size); CIMGUI_API void igSetColorEditOptions(ImGuiColorEditFlags flags); CIMGUI_API bool igTreeNode_Str(const char* label); -CIMGUI_API bool igTreeNode_StrStr(const char* str_id, const char* fmt, ...); -CIMGUI_API bool igTreeNode_Ptr(const void* ptr_id, const char* fmt, ...); -CIMGUI_API bool igTreeNodeV_Str(const char* str_id, const char* fmt, va_list args); -CIMGUI_API bool igTreeNodeV_Ptr(const void* ptr_id, const char* fmt, va_list args); -CIMGUI_API bool igTreeNodeEx_Str(const char* label, ImGuiTreeNodeFlags flags); -CIMGUI_API bool igTreeNodeEx_StrStr(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...); -CIMGUI_API bool igTreeNodeEx_Ptr(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...); -CIMGUI_API bool igTreeNodeExV_Str(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args); -CIMGUI_API bool igTreeNodeExV_Ptr(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args); +CIMGUI_API bool igTreeNode_StrStr(const char* str_id,const char* fmt,...); +CIMGUI_API bool igTreeNode_Ptr(const void* ptr_id,const char* fmt,...); +CIMGUI_API bool igTreeNodeV_Str(const char* str_id,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeV_Ptr(const void* ptr_id,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeEx_Str(const char* label,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igTreeNodeEx_StrStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,...); +CIMGUI_API bool igTreeNodeEx_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...); +CIMGUI_API bool igTreeNodeExV_Str(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); +CIMGUI_API bool igTreeNodeExV_Ptr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); CIMGUI_API void igTreePush_Str(const char* str_id); CIMGUI_API void igTreePush_Ptr(const void* ptr_id); CIMGUI_API void igTreePop(void); CIMGUI_API float igGetTreeNodeToLabelSpacing(void); -CIMGUI_API bool igCollapsingHeader_TreeNodeFlags(const char* label, ImGuiTreeNodeFlags flags); -CIMGUI_API bool igCollapsingHeader_BoolPtr(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags); -CIMGUI_API void igSetNextItemOpen(bool is_open, ImGuiCond cond); -CIMGUI_API bool igSelectable_Bool(const char* label, bool selected, ImGuiSelectableFlags flags, const ImVec2 size); -CIMGUI_API bool igSelectable_BoolPtr(const char* label, bool* p_selected, ImGuiSelectableFlags flags, const ImVec2 size); -CIMGUI_API bool igBeginListBox(const char* label, const ImVec2 size); +CIMGUI_API bool igCollapsingHeader_TreeNodeFlags(const char* label,ImGuiTreeNodeFlags flags); +CIMGUI_API bool igCollapsingHeader_BoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags); +CIMGUI_API void igSetNextItemOpen(bool is_open,ImGuiCond cond); +CIMGUI_API bool igSelectable_Bool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size); +CIMGUI_API bool igSelectable_BoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size); +CIMGUI_API bool igBeginListBox(const char* label,const ImVec2 size); CIMGUI_API void igEndListBox(void); -CIMGUI_API bool igListBox_Str_arr(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items); -CIMGUI_API bool igListBox_FnBoolPtr(const char* label, int* current_item, bool(*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int height_in_items); -CIMGUI_API void igPlotLines_FloatPtr(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride); -CIMGUI_API void igPlotLines_FnFloatPtr(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size); -CIMGUI_API void igPlotHistogram_FloatPtr(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride); -CIMGUI_API void igPlotHistogram_FnFloatPtr(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size); -CIMGUI_API void igValue_Bool(const char* prefix, bool b); -CIMGUI_API void igValue_Int(const char* prefix, int v); -CIMGUI_API void igValue_Uint(const char* prefix, unsigned int v); -CIMGUI_API void igValue_Float(const char* prefix, float v, const char* float_format); +CIMGUI_API bool igListBox_Str_arr(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items); +CIMGUI_API bool igListBox_FnStrPtr(const char* label,int* current_item,const char*(*getter)(void* user_data,int idx),void* user_data,int items_count,int height_in_items); +CIMGUI_API void igPlotLines_FloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride); +CIMGUI_API void igPlotLines_FnFloatPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size); +CIMGUI_API void igPlotHistogram_FloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride); +CIMGUI_API void igPlotHistogram_FnFloatPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size); +CIMGUI_API void igValue_Bool(const char* prefix,bool b); +CIMGUI_API void igValue_Int(const char* prefix,int v); +CIMGUI_API void igValue_Uint(const char* prefix,unsigned int v); +CIMGUI_API void igValue_Float(const char* prefix,float v,const char* float_format); CIMGUI_API bool igBeginMenuBar(void); CIMGUI_API void igEndMenuBar(void); CIMGUI_API bool igBeginMainMenuBar(void); CIMGUI_API void igEndMainMenuBar(void); -CIMGUI_API bool igBeginMenu(const char* label, bool enabled); +CIMGUI_API bool igBeginMenu(const char* label,bool enabled); CIMGUI_API void igEndMenu(void); -CIMGUI_API bool igMenuItem_Bool(const char* label, const char* shortcut, bool selected, bool enabled); -CIMGUI_API bool igMenuItem_BoolPtr(const char* label, const char* shortcut, bool* p_selected, bool enabled); +CIMGUI_API bool igMenuItem_Bool(const char* label,const char* shortcut,bool selected,bool enabled); +CIMGUI_API bool igMenuItem_BoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled); CIMGUI_API bool igBeginTooltip(void); CIMGUI_API void igEndTooltip(void); -CIMGUI_API void igSetTooltip(const char* fmt, ...); -CIMGUI_API void igSetTooltipV(const char* fmt, va_list args); +CIMGUI_API void igSetTooltip(const char* fmt,...); +CIMGUI_API void igSetTooltipV(const char* fmt,va_list args); CIMGUI_API bool igBeginItemTooltip(void); -CIMGUI_API void igSetItemTooltip(const char* fmt, ...); -CIMGUI_API void igSetItemTooltipV(const char* fmt, va_list args); -CIMGUI_API bool igBeginPopup(const char* str_id, ImGuiWindowFlags flags); -CIMGUI_API bool igBeginPopupModal(const char* name, bool* p_open, ImGuiWindowFlags flags); +CIMGUI_API void igSetItemTooltip(const char* fmt,...); +CIMGUI_API void igSetItemTooltipV(const char* fmt,va_list args); +CIMGUI_API bool igBeginPopup(const char* str_id,ImGuiWindowFlags flags); +CIMGUI_API bool igBeginPopupModal(const char* name,bool* p_open,ImGuiWindowFlags flags); CIMGUI_API void igEndPopup(void); -CIMGUI_API void igOpenPopup_Str(const char* str_id, ImGuiPopupFlags popup_flags); -CIMGUI_API void igOpenPopup_ID(ImGuiID id, ImGuiPopupFlags popup_flags); -CIMGUI_API void igOpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags); +CIMGUI_API void igOpenPopup_Str(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igOpenPopup_ID(ImGuiID id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igOpenPopupOnItemClick(const char* str_id,ImGuiPopupFlags popup_flags); CIMGUI_API void igCloseCurrentPopup(void); -CIMGUI_API bool igBeginPopupContextItem(const char* str_id, ImGuiPopupFlags popup_flags); -CIMGUI_API bool igBeginPopupContextWindow(const char* str_id, ImGuiPopupFlags popup_flags); -CIMGUI_API bool igBeginPopupContextVoid(const char* str_id, ImGuiPopupFlags popup_flags); -CIMGUI_API bool igIsPopupOpen_Str(const char* str_id, ImGuiPopupFlags flags); -CIMGUI_API bool igBeginTable(const char* str_id, int column, ImGuiTableFlags flags, const ImVec2 outer_size, float inner_width); +CIMGUI_API bool igBeginPopupContextItem(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igBeginPopupContextWindow(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igBeginPopupContextVoid(const char* str_id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igIsPopupOpen_Str(const char* str_id,ImGuiPopupFlags flags); +CIMGUI_API bool igBeginTable(const char* str_id,int column,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width); CIMGUI_API void igEndTable(void); -CIMGUI_API void igTableNextRow(ImGuiTableRowFlags row_flags, float min_row_height); +CIMGUI_API void igTableNextRow(ImGuiTableRowFlags row_flags,float min_row_height); CIMGUI_API bool igTableNextColumn(void); CIMGUI_API bool igTableSetColumnIndex(int column_n); -CIMGUI_API void igTableSetupColumn(const char* label, ImGuiTableColumnFlags flags, float init_width_or_weight, ImGuiID user_id); -CIMGUI_API void igTableSetupScrollFreeze(int cols, int rows); -CIMGUI_API void igTableHeadersRow(void); +CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id); +CIMGUI_API void igTableSetupScrollFreeze(int cols,int rows); CIMGUI_API void igTableHeader(const char* label); +CIMGUI_API void igTableHeadersRow(void); +CIMGUI_API void igTableAngledHeadersRow(void); CIMGUI_API ImGuiTableSortSpecs* igTableGetSortSpecs(void); CIMGUI_API int igTableGetColumnCount(void); CIMGUI_API int igTableGetColumnIndex(void); CIMGUI_API int igTableGetRowIndex(void); CIMGUI_API const char* igTableGetColumnName_Int(int column_n); CIMGUI_API ImGuiTableColumnFlags igTableGetColumnFlags(int column_n); -CIMGUI_API void igTableSetColumnEnabled(int column_n, bool v); -CIMGUI_API void igTableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n); -CIMGUI_API void igColumns(int count, const char* id, bool border); +CIMGUI_API void igTableSetColumnEnabled(int column_n,bool v); +CIMGUI_API void igTableSetBgColor(ImGuiTableBgTarget target,ImU32 color,int column_n); +CIMGUI_API void igColumns(int count,const char* id,bool border); CIMGUI_API void igNextColumn(void); CIMGUI_API int igGetColumnIndex(void); CIMGUI_API float igGetColumnWidth(int column_index); -CIMGUI_API void igSetColumnWidth(int column_index, float width); +CIMGUI_API void igSetColumnWidth(int column_index,float width); CIMGUI_API float igGetColumnOffset(int column_index); -CIMGUI_API void igSetColumnOffset(int column_index, float offset_x); +CIMGUI_API void igSetColumnOffset(int column_index,float offset_x); CIMGUI_API int igGetColumnsCount(void); -CIMGUI_API bool igBeginTabBar(const char* str_id, ImGuiTabBarFlags flags); +CIMGUI_API bool igBeginTabBar(const char* str_id,ImGuiTabBarFlags flags); CIMGUI_API void igEndTabBar(void); -CIMGUI_API bool igBeginTabItem(const char* label, bool* p_open, ImGuiTabItemFlags flags); +CIMGUI_API bool igBeginTabItem(const char* label,bool* p_open,ImGuiTabItemFlags flags); CIMGUI_API void igEndTabItem(void); -CIMGUI_API bool igTabItemButton(const char* label, ImGuiTabItemFlags flags); +CIMGUI_API bool igTabItemButton(const char* label,ImGuiTabItemFlags flags); CIMGUI_API void igSetTabItemClosed(const char* tab_or_docked_window_label); -CIMGUI_API ImGuiID igDockSpace(ImGuiID id, const ImVec2 size, ImGuiDockNodeFlags flags, const ImGuiWindowClass* window_class); -CIMGUI_API ImGuiID igDockSpaceOverViewport(const ImGuiViewport* viewport, ImGuiDockNodeFlags flags, const ImGuiWindowClass* window_class); -CIMGUI_API void igSetNextWindowDockID(ImGuiID dock_id, ImGuiCond cond); +CIMGUI_API ImGuiID igDockSpace(ImGuiID id,const ImVec2 size,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class); +CIMGUI_API ImGuiID igDockSpaceOverViewport(const ImGuiViewport* viewport,ImGuiDockNodeFlags flags,const ImGuiWindowClass* window_class); +CIMGUI_API void igSetNextWindowDockID(ImGuiID dock_id,ImGuiCond cond); CIMGUI_API void igSetNextWindowClass(const ImGuiWindowClass* window_class); CIMGUI_API ImGuiID igGetWindowDockID(void); CIMGUI_API bool igIsWindowDocked(void); CIMGUI_API void igLogToTTY(int auto_open_depth); -CIMGUI_API void igLogToFile(int auto_open_depth, const char* filename); +CIMGUI_API void igLogToFile(int auto_open_depth,const char* filename); CIMGUI_API void igLogToClipboard(int auto_open_depth); CIMGUI_API void igLogFinish(void); CIMGUI_API void igLogButtons(void); -CIMGUI_API void igLogTextV(const char* fmt, va_list args); +CIMGUI_API void igLogTextV(const char* fmt,va_list args); CIMGUI_API bool igBeginDragDropSource(ImGuiDragDropFlags flags); -CIMGUI_API bool igSetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond); +CIMGUI_API bool igSetDragDropPayload(const char* type,const void* data,size_t sz,ImGuiCond cond); CIMGUI_API void igEndDragDropSource(void); CIMGUI_API bool igBeginDragDropTarget(void); -CIMGUI_API const ImGuiPayload* igAcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags); +CIMGUI_API const ImGuiPayload* igAcceptDragDropPayload(const char* type,ImGuiDragDropFlags flags); CIMGUI_API void igEndDragDropTarget(void); CIMGUI_API const ImGuiPayload* igGetDragDropPayload(void); CIMGUI_API void igBeginDisabled(bool disabled); CIMGUI_API void igEndDisabled(void); -CIMGUI_API void igPushClipRect(const ImVec2 clip_rect_min, const ImVec2 clip_rect_max, bool intersect_with_current_clip_rect); +CIMGUI_API void igPushClipRect(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect); CIMGUI_API void igPopClipRect(void); CIMGUI_API void igSetItemDefaultFocus(void); CIMGUI_API void igSetKeyboardFocusHere(int offset); @@ -3497,47 +3606,47 @@ CIMGUI_API bool igIsAnyItemHovered(void); CIMGUI_API bool igIsAnyItemActive(void); CIMGUI_API bool igIsAnyItemFocused(void); CIMGUI_API ImGuiID igGetItemID(void); -CIMGUI_API void igGetItemRectMin(ImVec2* pOut); -CIMGUI_API void igGetItemRectMax(ImVec2* pOut); -CIMGUI_API void igGetItemRectSize(ImVec2* pOut); +CIMGUI_API void igGetItemRectMin(ImVec2 *pOut); +CIMGUI_API void igGetItemRectMax(ImVec2 *pOut); +CIMGUI_API void igGetItemRectSize(ImVec2 *pOut); CIMGUI_API ImGuiViewport* igGetMainViewport(void); CIMGUI_API ImDrawList* igGetBackgroundDrawList_Nil(void); CIMGUI_API ImDrawList* igGetForegroundDrawList_Nil(void); CIMGUI_API ImDrawList* igGetBackgroundDrawList_ViewportPtr(ImGuiViewport* viewport); CIMGUI_API ImDrawList* igGetForegroundDrawList_ViewportPtr(ImGuiViewport* viewport); CIMGUI_API bool igIsRectVisible_Nil(const ImVec2 size); -CIMGUI_API bool igIsRectVisible_Vec2(const ImVec2 rect_min, const ImVec2 rect_max); +CIMGUI_API bool igIsRectVisible_Vec2(const ImVec2 rect_min,const ImVec2 rect_max); CIMGUI_API double igGetTime(void); CIMGUI_API int igGetFrameCount(void); CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData(void); CIMGUI_API const char* igGetStyleColorName(ImGuiCol idx); CIMGUI_API void igSetStateStorage(ImGuiStorage* storage); CIMGUI_API ImGuiStorage* igGetStateStorage(void); -CIMGUI_API bool igBeginChildFrame(ImGuiID id, const ImVec2 size, ImGuiWindowFlags flags); +CIMGUI_API bool igBeginChildFrame(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags); CIMGUI_API void igEndChildFrame(void); -CIMGUI_API void igCalcTextSize(ImVec2* pOut, const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width); -CIMGUI_API void igColorConvertU32ToFloat4(ImVec4* pOut, ImU32 in); +CIMGUI_API void igCalcTextSize(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width); +CIMGUI_API void igColorConvertU32ToFloat4(ImVec4 *pOut,ImU32 in); CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in); -CIMGUI_API void igColorConvertRGBtoHSV(float r, float g, float b, float* out_h, float* out_s, float* out_v); -CIMGUI_API void igColorConvertHSVtoRGB(float h, float s, float v, float* out_r, float* out_g, float* out_b); +CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float* out_h,float* out_s,float* out_v); +CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,float* out_g,float* out_b); CIMGUI_API bool igIsKeyDown_Nil(ImGuiKey key); -CIMGUI_API bool igIsKeyPressed_Bool(ImGuiKey key, bool repeat); +CIMGUI_API bool igIsKeyPressed_Bool(ImGuiKey key,bool repeat); CIMGUI_API bool igIsKeyReleased_Nil(ImGuiKey key); -CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate); +CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key,float repeat_delay,float rate); CIMGUI_API const char* igGetKeyName(ImGuiKey key); CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); CIMGUI_API bool igIsMouseDown_Nil(ImGuiMouseButton button); -CIMGUI_API bool igIsMouseClicked_Bool(ImGuiMouseButton button, bool repeat); +CIMGUI_API bool igIsMouseClicked_Bool(ImGuiMouseButton button,bool repeat); CIMGUI_API bool igIsMouseReleased_Nil(ImGuiMouseButton button); CIMGUI_API bool igIsMouseDoubleClicked(ImGuiMouseButton button); CIMGUI_API int igGetMouseClickedCount(ImGuiMouseButton button); -CIMGUI_API bool igIsMouseHoveringRect(const ImVec2 r_min, const ImVec2 r_max, bool clip); +CIMGUI_API bool igIsMouseHoveringRect(const ImVec2 r_min,const ImVec2 r_max,bool clip); CIMGUI_API bool igIsMousePosValid(const ImVec2* mouse_pos); CIMGUI_API bool igIsAnyMouseDown(void); -CIMGUI_API void igGetMousePos(ImVec2* pOut); -CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(ImVec2* pOut); -CIMGUI_API bool igIsMouseDragging(ImGuiMouseButton button, float lock_threshold); -CIMGUI_API void igGetMouseDragDelta(ImVec2* pOut, ImGuiMouseButton button, float lock_threshold); +CIMGUI_API void igGetMousePos(ImVec2 *pOut); +CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(ImVec2 *pOut); +CIMGUI_API bool igIsMouseDragging(ImGuiMouseButton button,float lock_threshold); +CIMGUI_API void igGetMouseDragDelta(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold); CIMGUI_API void igResetMouseDragDelta(ImGuiMouseButton button); CIMGUI_API ImGuiMouseCursor igGetMouseCursor(void); CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor cursor_type); @@ -3545,45 +3654,45 @@ CIMGUI_API void igSetNextFrameWantCaptureMouse(bool want_capture_mouse); CIMGUI_API const char* igGetClipboardText(void); CIMGUI_API void igSetClipboardText(const char* text); CIMGUI_API void igLoadIniSettingsFromDisk(const char* ini_filename); -CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data, size_t ini_size); +CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data,size_t ini_size); CIMGUI_API void igSaveIniSettingsToDisk(const char* ini_filename); CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size); CIMGUI_API void igDebugTextEncoding(const char* text); -CIMGUI_API bool igDebugCheckVersionAndDataLayout(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); -CIMGUI_API void igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data); -CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data); +CIMGUI_API bool igDebugCheckVersionAndDataLayout(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); +CIMGUI_API void igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data); +CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data); CIMGUI_API void* igMemAlloc(size_t size); CIMGUI_API void igMemFree(void* ptr); CIMGUI_API ImGuiPlatformIO* igGetPlatformIO(void); CIMGUI_API void igUpdatePlatformWindows(void); -CIMGUI_API void igRenderPlatformWindowsDefault(void* platform_render_arg, void* renderer_render_arg); +CIMGUI_API void igRenderPlatformWindowsDefault(void* platform_render_arg,void* renderer_render_arg); CIMGUI_API void igDestroyPlatformWindows(void); CIMGUI_API ImGuiViewport* igFindViewportByID(ImGuiID id); CIMGUI_API ImGuiViewport* igFindViewportByPlatformHandle(void* platform_handle); CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void); CIMGUI_API void ImGuiStyle_destroy(ImGuiStyle* self); -CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self, float scale_factor); -CIMGUI_API void ImGuiIO_AddKeyEvent(ImGuiIO* self, ImGuiKey key, bool down); -CIMGUI_API void ImGuiIO_AddKeyAnalogEvent(ImGuiIO* self, ImGuiKey key, bool down, float v); -CIMGUI_API void ImGuiIO_AddMousePosEvent(ImGuiIO* self, float x, float y); -CIMGUI_API void ImGuiIO_AddMouseButtonEvent(ImGuiIO* self, int button, bool down); -CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self, float wheel_x, float wheel_y); -CIMGUI_API void ImGuiIO_AddMouseSourceEvent(ImGuiIO* self, ImGuiMouseSource source); -CIMGUI_API void ImGuiIO_AddMouseViewportEvent(ImGuiIO* self, ImGuiID id); -CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self, bool focused); -CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self, unsigned int c); -CIMGUI_API void ImGuiIO_AddInputCharacterUTF16(ImGuiIO* self, ImWchar16 c); -CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self, const char* str); -CIMGUI_API void ImGuiIO_SetKeyEventNativeData(ImGuiIO* self, ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index); -CIMGUI_API void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* self, bool accepting_events); -CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self); +CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor); +CIMGUI_API void ImGuiIO_AddKeyEvent(ImGuiIO* self,ImGuiKey key,bool down); +CIMGUI_API void ImGuiIO_AddKeyAnalogEvent(ImGuiIO* self,ImGuiKey key,bool down,float v); +CIMGUI_API void ImGuiIO_AddMousePosEvent(ImGuiIO* self,float x,float y); +CIMGUI_API void ImGuiIO_AddMouseButtonEvent(ImGuiIO* self,int button,bool down); +CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self,float wheel_x,float wheel_y); +CIMGUI_API void ImGuiIO_AddMouseSourceEvent(ImGuiIO* self,ImGuiMouseSource source); +CIMGUI_API void ImGuiIO_AddMouseViewportEvent(ImGuiIO* self,ImGuiID id); +CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self,bool focused); +CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self,unsigned int c); +CIMGUI_API void ImGuiIO_AddInputCharacterUTF16(ImGuiIO* self,ImWchar16 c); +CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self,const char* str); +CIMGUI_API void ImGuiIO_SetKeyEventNativeData(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index); +CIMGUI_API void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* self,bool accepting_events); +CIMGUI_API void ImGuiIO_ClearEventsQueue(ImGuiIO* self); CIMGUI_API void ImGuiIO_ClearInputKeys(ImGuiIO* self); CIMGUI_API ImGuiIO* ImGuiIO_ImGuiIO(void); CIMGUI_API void ImGuiIO_destroy(ImGuiIO* self); CIMGUI_API ImGuiInputTextCallbackData* ImGuiInputTextCallbackData_ImGuiInputTextCallbackData(void); CIMGUI_API void ImGuiInputTextCallbackData_destroy(ImGuiInputTextCallbackData* self); -CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self, int pos, int bytes_count); -CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self, int pos, const char* text, const char* text_end); +CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self,int pos,int bytes_count); +CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end); CIMGUI_API void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* self); CIMGUI_API void ImGuiInputTextCallbackData_ClearSelection(ImGuiInputTextCallbackData* self); CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self); @@ -3592,7 +3701,7 @@ CIMGUI_API void ImGuiWindowClass_destroy(ImGuiWindowClass* self); CIMGUI_API ImGuiPayload* ImGuiPayload_ImGuiPayload(void); CIMGUI_API void ImGuiPayload_destroy(ImGuiPayload* self); CIMGUI_API void ImGuiPayload_Clear(ImGuiPayload* self); -CIMGUI_API bool ImGuiPayload_IsDataType(ImGuiPayload* self, const char* type); +CIMGUI_API bool ImGuiPayload_IsDataType(ImGuiPayload* self,const char* type); CIMGUI_API bool ImGuiPayload_IsPreview(ImGuiPayload* self); CIMGUI_API bool ImGuiPayload_IsDelivery(ImGuiPayload* self); CIMGUI_API ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs(void); @@ -3603,16 +3712,16 @@ CIMGUI_API ImGuiOnceUponAFrame* ImGuiOnceUponAFrame_ImGuiOnceUponAFrame(void); CIMGUI_API void ImGuiOnceUponAFrame_destroy(ImGuiOnceUponAFrame* self); CIMGUI_API ImGuiTextFilter* ImGuiTextFilter_ImGuiTextFilter(const char* default_filter); CIMGUI_API void ImGuiTextFilter_destroy(ImGuiTextFilter* self); -CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self, const char* label, float width); -CIMGUI_API bool ImGuiTextFilter_PassFilter(ImGuiTextFilter* self, const char* text, const char* text_end); +CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self,const char* label,float width); +CIMGUI_API bool ImGuiTextFilter_PassFilter(ImGuiTextFilter* self,const char* text,const char* text_end); CIMGUI_API void ImGuiTextFilter_Build(ImGuiTextFilter* self); CIMGUI_API void ImGuiTextFilter_Clear(ImGuiTextFilter* self); CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self); CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Nil(void); CIMGUI_API void ImGuiTextRange_destroy(ImGuiTextRange* self); -CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(const char* _b, const char* _e); +CIMGUI_API ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(const char* _b,const char* _e); CIMGUI_API bool ImGuiTextRange_empty(ImGuiTextRange* self); -CIMGUI_API void ImGuiTextRange_split(ImGuiTextRange* self, char separator, ImVector_ImGuiTextRange* out); +CIMGUI_API void ImGuiTextRange_split(ImGuiTextRange* self,char separator,ImVector_ImGuiTextRange* out); CIMGUI_API ImGuiTextBuffer* ImGuiTextBuffer_ImGuiTextBuffer(void); CIMGUI_API void ImGuiTextBuffer_destroy(ImGuiTextBuffer* self); CIMGUI_API const char* ImGuiTextBuffer_begin(ImGuiTextBuffer* self); @@ -3620,43 +3729,44 @@ CIMGUI_API const char* ImGuiTextBuffer_end(ImGuiTextBuffer* self); CIMGUI_API int ImGuiTextBuffer_size(ImGuiTextBuffer* self); CIMGUI_API bool ImGuiTextBuffer_empty(ImGuiTextBuffer* self); CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self); -CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self, int capacity); +CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity); CIMGUI_API const char* ImGuiTextBuffer_c_str(ImGuiTextBuffer* self); -CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self, const char* str, const char* str_end); -CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self, const char* fmt, va_list args); -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(ImGuiID _key, int _val_i); +CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self,const char* str,const char* str_end); +CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self,const char* fmt,va_list args); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(ImGuiID _key,int _val); CIMGUI_API void ImGuiStoragePair_destroy(ImGuiStoragePair* self); -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(ImGuiID _key, float _val_f); -CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(ImGuiID _key, void* _val_p); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(ImGuiID _key,float _val); +CIMGUI_API ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(ImGuiID _key,void* _val); CIMGUI_API void ImGuiStorage_Clear(ImGuiStorage* self); -CIMGUI_API int ImGuiStorage_GetInt(ImGuiStorage* self, ImGuiID key, int default_val); -CIMGUI_API void ImGuiStorage_SetInt(ImGuiStorage* self, ImGuiID key, int val); -CIMGUI_API bool ImGuiStorage_GetBool(ImGuiStorage* self, ImGuiID key, bool default_val); -CIMGUI_API void ImGuiStorage_SetBool(ImGuiStorage* self, ImGuiID key, bool val); -CIMGUI_API float ImGuiStorage_GetFloat(ImGuiStorage* self, ImGuiID key, float default_val); -CIMGUI_API void ImGuiStorage_SetFloat(ImGuiStorage* self, ImGuiID key, float val); -CIMGUI_API void* ImGuiStorage_GetVoidPtr(ImGuiStorage* self, ImGuiID key); -CIMGUI_API void ImGuiStorage_SetVoidPtr(ImGuiStorage* self, ImGuiID key, void* val); -CIMGUI_API int* ImGuiStorage_GetIntRef(ImGuiStorage* self, ImGuiID key, int default_val); -CIMGUI_API bool* ImGuiStorage_GetBoolRef(ImGuiStorage* self, ImGuiID key, bool default_val); -CIMGUI_API float* ImGuiStorage_GetFloatRef(ImGuiStorage* self, ImGuiID key, float default_val); -CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self, ImGuiID key, void* default_val); -CIMGUI_API void ImGuiStorage_SetAllInt(ImGuiStorage* self, int val); +CIMGUI_API int ImGuiStorage_GetInt(ImGuiStorage* self,ImGuiID key,int default_val); +CIMGUI_API void ImGuiStorage_SetInt(ImGuiStorage* self,ImGuiID key,int val); +CIMGUI_API bool ImGuiStorage_GetBool(ImGuiStorage* self,ImGuiID key,bool default_val); +CIMGUI_API void ImGuiStorage_SetBool(ImGuiStorage* self,ImGuiID key,bool val); +CIMGUI_API float ImGuiStorage_GetFloat(ImGuiStorage* self,ImGuiID key,float default_val); +CIMGUI_API void ImGuiStorage_SetFloat(ImGuiStorage* self,ImGuiID key,float val); +CIMGUI_API void* ImGuiStorage_GetVoidPtr(ImGuiStorage* self,ImGuiID key); +CIMGUI_API void ImGuiStorage_SetVoidPtr(ImGuiStorage* self,ImGuiID key,void* val); +CIMGUI_API int* ImGuiStorage_GetIntRef(ImGuiStorage* self,ImGuiID key,int default_val); +CIMGUI_API bool* ImGuiStorage_GetBoolRef(ImGuiStorage* self,ImGuiID key,bool default_val); +CIMGUI_API float* ImGuiStorage_GetFloatRef(ImGuiStorage* self,ImGuiID key,float default_val); +CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self,ImGuiID key,void* default_val); CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self); +CIMGUI_API void ImGuiStorage_SetAllInt(ImGuiStorage* self,int val); CIMGUI_API ImGuiListClipper* ImGuiListClipper_ImGuiListClipper(void); CIMGUI_API void ImGuiListClipper_destroy(ImGuiListClipper* self); -CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* self, int items_count, float items_height); +CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* self,int items_count,float items_height); CIMGUI_API void ImGuiListClipper_End(ImGuiListClipper* self); CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* self); -CIMGUI_API void ImGuiListClipper_IncludeRangeByIndices(ImGuiListClipper* self, int item_begin, int item_end); +CIMGUI_API void ImGuiListClipper_IncludeItemByIndex(ImGuiListClipper* self,int item_index); +CIMGUI_API void ImGuiListClipper_IncludeItemsByIndex(ImGuiListClipper* self,int item_begin,int item_end); CIMGUI_API ImColor* ImColor_ImColor_Nil(void); CIMGUI_API void ImColor_destroy(ImColor* self); -CIMGUI_API ImColor* ImColor_ImColor_Float(float r, float g, float b, float a); +CIMGUI_API ImColor* ImColor_ImColor_Float(float r,float g,float b,float a); CIMGUI_API ImColor* ImColor_ImColor_Vec4(const ImVec4 col); -CIMGUI_API ImColor* ImColor_ImColor_Int(int r, int g, int b, int a); +CIMGUI_API ImColor* ImColor_ImColor_Int(int r,int g,int b,int a); CIMGUI_API ImColor* ImColor_ImColor_U32(ImU32 rgba); -CIMGUI_API void ImColor_SetHSV(ImColor* self, float h, float s, float v, float a); -CIMGUI_API void ImColor_HSV(ImColor* pOut, float h, float s, float v, float a); +CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a); +CIMGUI_API void ImColor_HSV(ImColor *pOut,float h,float s,float v,float a); CIMGUI_API ImDrawCmd* ImDrawCmd_ImDrawCmd(void); CIMGUI_API void ImDrawCmd_destroy(ImDrawCmd* self); CIMGUI_API ImTextureID ImDrawCmd_GetTexID(ImDrawCmd* self); @@ -3664,63 +3774,66 @@ CIMGUI_API ImDrawListSplitter* ImDrawListSplitter_ImDrawListSplitter(void); CIMGUI_API void ImDrawListSplitter_destroy(ImDrawListSplitter* self); CIMGUI_API void ImDrawListSplitter_Clear(ImDrawListSplitter* self); CIMGUI_API void ImDrawListSplitter_ClearFreeMemory(ImDrawListSplitter* self); -CIMGUI_API void ImDrawListSplitter_Split(ImDrawListSplitter* self, ImDrawList* draw_list, int count); -CIMGUI_API void ImDrawListSplitter_Merge(ImDrawListSplitter* self, ImDrawList* draw_list); -CIMGUI_API void ImDrawListSplitter_SetCurrentChannel(ImDrawListSplitter* self, ImDrawList* draw_list, int channel_idx); +CIMGUI_API void ImDrawListSplitter_Split(ImDrawListSplitter* self,ImDrawList* draw_list,int count); +CIMGUI_API void ImDrawListSplitter_Merge(ImDrawListSplitter* self,ImDrawList* draw_list); +CIMGUI_API void ImDrawListSplitter_SetCurrentChannel(ImDrawListSplitter* self,ImDrawList* draw_list,int channel_idx); CIMGUI_API ImDrawList* ImDrawList_ImDrawList(ImDrawListSharedData* shared_data); CIMGUI_API void ImDrawList_destroy(ImDrawList* self); -CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self, const ImVec2 clip_rect_min, const ImVec2 clip_rect_max, bool intersect_with_current_clip_rect); +CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect); CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* self); CIMGUI_API void ImDrawList_PopClipRect(ImDrawList* self); -CIMGUI_API void ImDrawList_PushTextureID(ImDrawList* self, ImTextureID texture_id); +CIMGUI_API void ImDrawList_PushTextureID(ImDrawList* self,ImTextureID texture_id); CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self); -CIMGUI_API void ImDrawList_GetClipRectMin(ImVec2* pOut, ImDrawList* self); -CIMGUI_API void ImDrawList_GetClipRectMax(ImVec2* pOut, ImDrawList* self); -CIMGUI_API void ImDrawList_AddLine(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, ImU32 col, float thickness); -CIMGUI_API void ImDrawList_AddRect(ImDrawList* self, const ImVec2 p_min, const ImVec2 p_max, ImU32 col, float rounding, ImDrawFlags flags, float thickness); -CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self, const ImVec2 p_min, const ImVec2 p_max, ImU32 col, float rounding, ImDrawFlags flags); -CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self, const ImVec2 p_min, const ImVec2 p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left); -CIMGUI_API void ImDrawList_AddQuad(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, ImU32 col, float thickness); -CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, ImU32 col); -CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, ImU32 col, float thickness); -CIMGUI_API void ImDrawList_AddTriangleFilled(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, ImU32 col); -CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments, float thickness); -CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments); -CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments, float thickness); -CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self, const ImVec2 center, float radius, ImU32 col, int num_segments); -CIMGUI_API void ImDrawList_AddText_Vec2(ImDrawList* self, const ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end); -CIMGUI_API void ImDrawList_AddText_FontPtr(ImDrawList* self, const ImFont* font, float font_size, const ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect); -CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags, float thickness); -CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col); -CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, ImU32 col, float thickness, int num_segments); -CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, ImU32 col, float thickness, int num_segments); -CIMGUI_API void ImDrawList_AddImage(ImDrawList* self, ImTextureID user_texture_id, const ImVec2 p_min, const ImVec2 p_max, const ImVec2 uv_min, const ImVec2 uv_max, ImU32 col); -CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self, ImTextureID user_texture_id, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, const ImVec2 uv1, const ImVec2 uv2, const ImVec2 uv3, const ImVec2 uv4, ImU32 col); -CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self, ImTextureID user_texture_id, const ImVec2 p_min, const ImVec2 p_max, const ImVec2 uv_min, const ImVec2 uv_max, ImU32 col, float rounding, ImDrawFlags flags); +CIMGUI_API void ImDrawList_GetClipRectMin(ImVec2 *pOut,ImDrawList* self); +CIMGUI_API void ImDrawList_GetClipRectMax(ImVec2 *pOut,ImDrawList* self); +CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness); +CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness); +CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags); +CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left); +CIMGUI_API void ImDrawList_AddQuad(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness); +CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col); +CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness); +CIMGUI_API void ImDrawList_AddTriangleFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col); +CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness); +CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments); +CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments,float thickness); +CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments); +CIMGUI_API void ImDrawList_AddEllipse(ImDrawList* self,const ImVec2 center,float radius_x,float radius_y,ImU32 col,float rot,int num_segments,float thickness); +CIMGUI_API void ImDrawList_AddEllipseFilled(ImDrawList* self,const ImVec2 center,float radius_x,float radius_y,ImU32 col,float rot,int num_segments); +CIMGUI_API void ImDrawList_AddText_Vec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end); +CIMGUI_API void ImDrawList_AddText_FontPtr(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect); +CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness); +CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col); +CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments); +CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments); +CIMGUI_API void ImDrawList_AddImage(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col); +CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col); +CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags); CIMGUI_API void ImDrawList_PathClear(ImDrawList* self); -CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self, const ImVec2 pos); -CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self, const ImVec2 pos); -CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self, ImU32 col); -CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self, ImU32 col, ImDrawFlags flags, float thickness); -CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self, const ImVec2 center, float radius, float a_min, float a_max, int num_segments); -CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self, const ImVec2 center, float radius, int a_min_of_12, int a_max_of_12); -CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, int num_segments); -CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self, const ImVec2 p2, const ImVec2 p3, int num_segments); -CIMGUI_API void ImDrawList_PathRect(ImDrawList* self, const ImVec2 rect_min, const ImVec2 rect_max, float rounding, ImDrawFlags flags); -CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self, ImDrawCallback callback, void* callback_data); +CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos); +CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos); +CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col); +CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness); +CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments); +CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12); +CIMGUI_API void ImDrawList_PathEllipticalArcTo(ImDrawList* self,const ImVec2 center,float radius_x,float radius_y,float rot,float a_min,float a_max,int num_segments); +CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments); +CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments); +CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags); +CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self,ImDrawCallback callback,void* callback_data); CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* self); CIMGUI_API ImDrawList* ImDrawList_CloneOutput(ImDrawList* self); -CIMGUI_API void ImDrawList_ChannelsSplit(ImDrawList* self, int count); +CIMGUI_API void ImDrawList_ChannelsSplit(ImDrawList* self,int count); CIMGUI_API void ImDrawList_ChannelsMerge(ImDrawList* self); -CIMGUI_API void ImDrawList_ChannelsSetCurrent(ImDrawList* self, int n); -CIMGUI_API void ImDrawList_PrimReserve(ImDrawList* self, int idx_count, int vtx_count); -CIMGUI_API void ImDrawList_PrimUnreserve(ImDrawList* self, int idx_count, int vtx_count); -CIMGUI_API void ImDrawList_PrimRect(ImDrawList* self, const ImVec2 a, const ImVec2 b, ImU32 col); -CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* self, const ImVec2 a, const ImVec2 b, const ImVec2 uv_a, const ImVec2 uv_b, ImU32 col); -CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self, const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 d, const ImVec2 uv_a, const ImVec2 uv_b, const ImVec2 uv_c, const ImVec2 uv_d, ImU32 col); -CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self, const ImVec2 pos, const ImVec2 uv, ImU32 col); -CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self, ImDrawIdx idx); -CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self, const ImVec2 pos, const ImVec2 uv, ImU32 col); +CIMGUI_API void ImDrawList_ChannelsSetCurrent(ImDrawList* self,int n); +CIMGUI_API void ImDrawList_PrimReserve(ImDrawList* self,int idx_count,int vtx_count); +CIMGUI_API void ImDrawList_PrimUnreserve(ImDrawList* self,int idx_count,int vtx_count); +CIMGUI_API void ImDrawList_PrimRect(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col); +CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col); +CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col); +CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col); +CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx); +CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col); CIMGUI_API void ImDrawList__ResetForNewFrame(ImDrawList* self); CIMGUI_API void ImDrawList__ClearFreeMemory(ImDrawList* self); CIMGUI_API void ImDrawList__PopUnusedDrawCmd(ImDrawList* self); @@ -3728,45 +3841,46 @@ CIMGUI_API void ImDrawList__TryMergeDrawCmds(ImDrawList* self); CIMGUI_API void ImDrawList__OnChangedClipRect(ImDrawList* self); CIMGUI_API void ImDrawList__OnChangedTextureID(ImDrawList* self); CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self); -CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(ImDrawList* self, float radius); -CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self, const ImVec2 center, float radius, int a_min_sample, int a_max_sample, int a_step); -CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self, const ImVec2 center, float radius, float a_min, float a_max, int num_segments); +CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(ImDrawList* self,float radius); +CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step); +CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments); CIMGUI_API ImDrawData* ImDrawData_ImDrawData(void); CIMGUI_API void ImDrawData_destroy(ImDrawData* self); CIMGUI_API void ImDrawData_Clear(ImDrawData* self); +CIMGUI_API void ImDrawData_AddDrawList(ImDrawData* self,ImDrawList* draw_list); CIMGUI_API void ImDrawData_DeIndexAllBuffers(ImDrawData* self); -CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* self, const ImVec2 fb_scale); +CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* self,const ImVec2 fb_scale); CIMGUI_API ImFontConfig* ImFontConfig_ImFontConfig(void); CIMGUI_API void ImFontConfig_destroy(ImFontConfig* self); CIMGUI_API ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder(void); CIMGUI_API void ImFontGlyphRangesBuilder_destroy(ImFontGlyphRangesBuilder* self); CIMGUI_API void ImFontGlyphRangesBuilder_Clear(ImFontGlyphRangesBuilder* self); -CIMGUI_API bool ImFontGlyphRangesBuilder_GetBit(ImFontGlyphRangesBuilder* self, size_t n); -CIMGUI_API void ImFontGlyphRangesBuilder_SetBit(ImFontGlyphRangesBuilder* self, size_t n); -CIMGUI_API void ImFontGlyphRangesBuilder_AddChar(ImFontGlyphRangesBuilder* self, ImWchar c); -CIMGUI_API void ImFontGlyphRangesBuilder_AddText(ImFontGlyphRangesBuilder* self, const char* text, const char* text_end); -CIMGUI_API void ImFontGlyphRangesBuilder_AddRanges(ImFontGlyphRangesBuilder* self, const ImWchar* ranges); -CIMGUI_API void ImFontGlyphRangesBuilder_BuildRanges(ImFontGlyphRangesBuilder* self, ImVector_ImWchar* out_ranges); +CIMGUI_API bool ImFontGlyphRangesBuilder_GetBit(ImFontGlyphRangesBuilder* self,size_t n); +CIMGUI_API void ImFontGlyphRangesBuilder_SetBit(ImFontGlyphRangesBuilder* self,size_t n); +CIMGUI_API void ImFontGlyphRangesBuilder_AddChar(ImFontGlyphRangesBuilder* self,ImWchar c); +CIMGUI_API void ImFontGlyphRangesBuilder_AddText(ImFontGlyphRangesBuilder* self,const char* text,const char* text_end); +CIMGUI_API void ImFontGlyphRangesBuilder_AddRanges(ImFontGlyphRangesBuilder* self,const ImWchar* ranges); +CIMGUI_API void ImFontGlyphRangesBuilder_BuildRanges(ImFontGlyphRangesBuilder* self,ImVector_ImWchar* out_ranges); CIMGUI_API ImFontAtlasCustomRect* ImFontAtlasCustomRect_ImFontAtlasCustomRect(void); CIMGUI_API void ImFontAtlasCustomRect_destroy(ImFontAtlasCustomRect* self); CIMGUI_API bool ImFontAtlasCustomRect_IsPacked(ImFontAtlasCustomRect* self); CIMGUI_API ImFontAtlas* ImFontAtlas_ImFontAtlas(void); CIMGUI_API void ImFontAtlas_destroy(ImFontAtlas* self); -CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* self, const ImFontConfig* font_cfg); -CIMGUI_API ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self, const ImFontConfig* font_cfg); -CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTF(ImFontAtlas* self, const char* filename, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); -CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryTTF(ImFontAtlas* self, void* font_data, int font_size, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); -CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* self, const void* compressed_font_data, int compressed_font_size, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); -CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self, const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges); +CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* self,const ImFontConfig* font_cfg); +CIMGUI_API ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self,const ImFontConfig* font_cfg); +CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTF(ImFontAtlas* self,const char* filename,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges); +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryTTF(ImFontAtlas* self,void* font_data,int font_data_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges); +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* self,const void* compressed_font_data,int compressed_font_data_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges); +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self,const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges); CIMGUI_API void ImFontAtlas_ClearInputData(ImFontAtlas* self); CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* self); CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self); CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* self); CIMGUI_API bool ImFontAtlas_Build(ImFontAtlas* self); -CIMGUI_API void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* self, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel); -CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel); +CIMGUI_API void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel); +CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self,unsigned char** out_pixels,int* out_width,int* out_height,int* out_bytes_per_pixel); CIMGUI_API bool ImFontAtlas_IsBuilt(ImFontAtlas* self); -CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* self, ImTextureID id); +CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* self,ImTextureID id); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesGreek(ImFontAtlas* self); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self); @@ -3776,33 +3890,33 @@ CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(ImFo CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesCyrillic(ImFontAtlas* self); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesThai(ImFontAtlas* self); CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesVietnamese(ImFontAtlas* self); -CIMGUI_API int ImFontAtlas_AddCustomRectRegular(ImFontAtlas* self, int width, int height); -CIMGUI_API int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self, ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2 offset); -CIMGUI_API ImFontAtlasCustomRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self, int index); -CIMGUI_API void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self, const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max); -CIMGUI_API bool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self, ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]); +CIMGUI_API int ImFontAtlas_AddCustomRectRegular(ImFontAtlas* self,int width,int height); +CIMGUI_API int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset); +CIMGUI_API ImFontAtlasCustomRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self,int index); +CIMGUI_API void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max); +CIMGUI_API bool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2]); CIMGUI_API ImFont* ImFont_ImFont(void); CIMGUI_API void ImFont_destroy(ImFont* self); -CIMGUI_API const ImFontGlyph* ImFont_FindGlyph(ImFont* self, ImWchar c); -CIMGUI_API const ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self, ImWchar c); -CIMGUI_API float ImFont_GetCharAdvance(ImFont* self, ImWchar c); +CIMGUI_API const ImFontGlyph* ImFont_FindGlyph(ImFont* self,ImWchar c); +CIMGUI_API const ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self,ImWchar c); +CIMGUI_API float ImFont_GetCharAdvance(ImFont* self,ImWchar c); CIMGUI_API bool ImFont_IsLoaded(ImFont* self); CIMGUI_API const char* ImFont_GetDebugName(ImFont* self); -CIMGUI_API void ImFont_CalcTextSizeA(ImVec2* pOut, ImFont* self, float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining); -CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self, float scale, const char* text, const char* text_end, float wrap_width); -CIMGUI_API void ImFont_RenderChar(ImFont* self, ImDrawList* draw_list, float size, const ImVec2 pos, ImU32 col, ImWchar c); -CIMGUI_API void ImFont_RenderText(ImFont* self, ImDrawList* draw_list, float size, const ImVec2 pos, ImU32 col, const ImVec4 clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip); +CIMGUI_API void ImFont_CalcTextSizeA(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining); +CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width); +CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c); +CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip); CIMGUI_API void ImFont_BuildLookupTable(ImFont* self); CIMGUI_API void ImFont_ClearOutputData(ImFont* self); -CIMGUI_API void ImFont_GrowIndex(ImFont* self, int new_size); -CIMGUI_API void ImFont_AddGlyph(ImFont* self, const ImFontConfig* src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x); -CIMGUI_API void ImFont_AddRemapChar(ImFont* self, ImWchar dst, ImWchar src, bool overwrite_dst); -CIMGUI_API void ImFont_SetGlyphVisible(ImFont* self, ImWchar c, bool visible); -CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self, unsigned int c_begin, unsigned int c_last); +CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size); +CIMGUI_API void ImFont_AddGlyph(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x); +CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst); +CIMGUI_API void ImFont_SetGlyphVisible(ImFont* self,ImWchar c,bool visible); +CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsigned int c_last); CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void); CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self); -CIMGUI_API void ImGuiViewport_GetCenter(ImVec2* pOut, ImGuiViewport* self); -CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2* pOut, ImGuiViewport* self); +CIMGUI_API void ImGuiViewport_GetCenter(ImVec2 *pOut,ImGuiViewport* self); +CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2 *pOut,ImGuiViewport* self); CIMGUI_API ImGuiPlatformIO* ImGuiPlatformIO_ImGuiPlatformIO(void); CIMGUI_API void ImGuiPlatformIO_destroy(ImGuiPlatformIO* self); CIMGUI_API ImGuiPlatformMonitor* ImGuiPlatformMonitor_ImGuiPlatformMonitor(void); @@ -3810,53 +3924,54 @@ CIMGUI_API void ImGuiPlatformMonitor_destroy(ImGuiPlatformMonitor* self); CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_ImGuiPlatformImeData(void); CIMGUI_API void ImGuiPlatformImeData_destroy(ImGuiPlatformImeData* self); CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key); -CIMGUI_API ImGuiID igImHashData(const void* data, size_t data_size, ImGuiID seed); -CIMGUI_API ImGuiID igImHashStr(const char* data, size_t data_size, ImGuiID seed); -CIMGUI_API void igImQsort(void* base, size_t count, size_t size_of_element, int(*compare_func)(void const*, void const*)); -CIMGUI_API ImU32 igImAlphaBlendColors(ImU32 col_a, ImU32 col_b); +CIMGUI_API ImGuiID igImHashData(const void* data,size_t data_size,ImGuiID seed); +CIMGUI_API ImGuiID igImHashStr(const char* data,size_t data_size,ImGuiID seed); +CIMGUI_API void igImQsort(void* base,size_t count,size_t size_of_element,int(*compare_func)(void const*,void const*)); +CIMGUI_API ImU32 igImAlphaBlendColors(ImU32 col_a,ImU32 col_b); CIMGUI_API bool igImIsPowerOfTwo_Int(int v); CIMGUI_API bool igImIsPowerOfTwo_U64(ImU64 v); CIMGUI_API int igImUpperPowerOfTwo(int v); -CIMGUI_API int igImStricmp(const char* str1, const char* str2); -CIMGUI_API int igImStrnicmp(const char* str1, const char* str2, size_t count); -CIMGUI_API void igImStrncpy(char* dst, const char* src, size_t count); +CIMGUI_API int igImStricmp(const char* str1,const char* str2); +CIMGUI_API int igImStrnicmp(const char* str1,const char* str2,size_t count); +CIMGUI_API void igImStrncpy(char* dst,const char* src,size_t count); CIMGUI_API char* igImStrdup(const char* str); -CIMGUI_API char* igImStrdupcpy(char* dst, size_t* p_dst_size, const char* str); -CIMGUI_API const char* igImStrchrRange(const char* str_begin, const char* str_end, char c); -CIMGUI_API int igImStrlenW(const ImWchar* str); -CIMGUI_API const char* igImStreolRange(const char* str, const char* str_end); -CIMGUI_API const ImWchar* igImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin); -CIMGUI_API const char* igImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); +CIMGUI_API char* igImStrdupcpy(char* dst,size_t* p_dst_size,const char* str); +CIMGUI_API const char* igImStrchrRange(const char* str_begin,const char* str_end,char c); +CIMGUI_API const char* igImStreolRange(const char* str,const char* str_end); +CIMGUI_API const char* igImStristr(const char* haystack,const char* haystack_end,const char* needle,const char* needle_end); CIMGUI_API void igImStrTrimBlanks(char* str); CIMGUI_API const char* igImStrSkipBlank(const char* str); +CIMGUI_API int igImStrlenW(const ImWchar* str); +CIMGUI_API const ImWchar* igImStrbolW(const ImWchar* buf_mid_line,const ImWchar* buf_begin); CIMGUI_API char igImToUpper(char c); CIMGUI_API bool igImCharIsBlankA(char c); CIMGUI_API bool igImCharIsBlankW(unsigned int c); -CIMGUI_API int igImFormatString(char* buf, size_t buf_size, const char* fmt, ...); -CIMGUI_API int igImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args); -CIMGUI_API void igImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...); -CIMGUI_API void igImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args); +CIMGUI_API int igImFormatString(char* buf,size_t buf_size,const char* fmt,...); +CIMGUI_API int igImFormatStringV(char* buf,size_t buf_size,const char* fmt,va_list args); +CIMGUI_API void igImFormatStringToTempBuffer(const char** out_buf,const char** out_buf_end,const char* fmt,...); +CIMGUI_API void igImFormatStringToTempBufferV(const char** out_buf,const char** out_buf_end,const char* fmt,va_list args); CIMGUI_API const char* igImParseFormatFindStart(const char* format); CIMGUI_API const char* igImParseFormatFindEnd(const char* format); -CIMGUI_API const char* igImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size); -CIMGUI_API void igImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size); -CIMGUI_API const char* igImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size); -CIMGUI_API int igImParseFormatPrecision(const char* format, int default_value); -CIMGUI_API const char* igImTextCharToUtf8(char out_buf[5], unsigned int c); -CIMGUI_API int igImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end); -CIMGUI_API int igImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end); -CIMGUI_API int igImTextStrFromUtf8(ImWchar* out_buf, int out_buf_size, const char* in_text, const char* in_text_end, const char** in_remaining); -CIMGUI_API int igImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end); -CIMGUI_API int igImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end); -CIMGUI_API int igImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end); -CIMGUI_API ImFileHandle igImFileOpen(const char* filename, const char* mode); +CIMGUI_API const char* igImParseFormatTrimDecorations(const char* format,char* buf,size_t buf_size); +CIMGUI_API void igImParseFormatSanitizeForPrinting(const char* fmt_in,char* fmt_out,size_t fmt_out_size); +CIMGUI_API const char* igImParseFormatSanitizeForScanning(const char* fmt_in,char* fmt_out,size_t fmt_out_size); +CIMGUI_API int igImParseFormatPrecision(const char* format,int default_value); +CIMGUI_API const char* igImTextCharToUtf8(char out_buf[5],unsigned int c); +CIMGUI_API int igImTextStrToUtf8(char* out_buf,int out_buf_size,const ImWchar* in_text,const ImWchar* in_text_end); +CIMGUI_API int igImTextCharFromUtf8(unsigned int* out_char,const char* in_text,const char* in_text_end); +CIMGUI_API int igImTextStrFromUtf8(ImWchar* out_buf,int out_buf_size,const char* in_text,const char* in_text_end,const char** in_remaining); +CIMGUI_API int igImTextCountCharsFromUtf8(const char* in_text,const char* in_text_end); +CIMGUI_API int igImTextCountUtf8BytesFromChar(const char* in_text,const char* in_text_end); +CIMGUI_API int igImTextCountUtf8BytesFromStr(const ImWchar* in_text,const ImWchar* in_text_end); +CIMGUI_API const char* igImTextFindPreviousUtf8Codepoint(const char* in_text_start,const char* in_text_curr); +CIMGUI_API ImFileHandle igImFileOpen(const char* filename,const char* mode); CIMGUI_API bool igImFileClose(ImFileHandle file); CIMGUI_API ImU64 igImFileGetSize(ImFileHandle file); -CIMGUI_API ImU64 igImFileRead(void* data, ImU64 size, ImU64 count, ImFileHandle file); -CIMGUI_API ImU64 igImFileWrite(const void* data, ImU64 size, ImU64 count, ImFileHandle file); -CIMGUI_API void* igImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size, int padding_bytes); -CIMGUI_API float igImPow_Float(float x, float y); -CIMGUI_API double igImPow_double(double x, double y); +CIMGUI_API ImU64 igImFileRead(void* data,ImU64 size,ImU64 count,ImFileHandle file); +CIMGUI_API ImU64 igImFileWrite(const void* data,ImU64 size,ImU64 count,ImFileHandle file); +CIMGUI_API void* igImFileLoadToMemory(const char* filename,const char* mode,size_t* out_file_size,int padding_bytes); +CIMGUI_API float igImPow_Float(float x,float y); +CIMGUI_API double igImPow_double(double x,double y); CIMGUI_API float igImLog_Float(float x); CIMGUI_API double igImLog_double(double x); CIMGUI_API int igImAbs_Int(int x); @@ -3866,107 +3981,106 @@ CIMGUI_API float igImSign_Float(float x); CIMGUI_API double igImSign_double(double x); CIMGUI_API float igImRsqrt_Float(float x); CIMGUI_API double igImRsqrt_double(double x); -CIMGUI_API void igImMin(ImVec2* pOut, const ImVec2 lhs, const ImVec2 rhs); -CIMGUI_API void igImMax(ImVec2* pOut, const ImVec2 lhs, const ImVec2 rhs); -CIMGUI_API void igImClamp(ImVec2* pOut, const ImVec2 v, const ImVec2 mn, ImVec2 mx); -CIMGUI_API void igImLerp_Vec2Float(ImVec2* pOut, const ImVec2 a, const ImVec2 b, float t); -CIMGUI_API void igImLerp_Vec2Vec2(ImVec2* pOut, const ImVec2 a, const ImVec2 b, const ImVec2 t); -CIMGUI_API void igImLerp_Vec4(ImVec4* pOut, const ImVec4 a, const ImVec4 b, float t); +CIMGUI_API void igImMin(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs); +CIMGUI_API void igImMax(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs); +CIMGUI_API void igImClamp(ImVec2 *pOut,const ImVec2 v,const ImVec2 mn,ImVec2 mx); +CIMGUI_API void igImLerp_Vec2Float(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t); +CIMGUI_API void igImLerp_Vec2Vec2(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t); +CIMGUI_API void igImLerp_Vec4(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t); CIMGUI_API float igImSaturate(float f); CIMGUI_API float igImLengthSqr_Vec2(const ImVec2 lhs); CIMGUI_API float igImLengthSqr_Vec4(const ImVec4 lhs); -CIMGUI_API float igImInvLength(const ImVec2 lhs, float fail_value); +CIMGUI_API float igImInvLength(const ImVec2 lhs,float fail_value); +CIMGUI_API float igImTrunc_Float(float f); +CIMGUI_API void igImTrunc_Vec2(ImVec2 *pOut,const ImVec2 v); CIMGUI_API float igImFloor_Float(float f); -CIMGUI_API float igImFloorSigned_Float(float f); -CIMGUI_API void igImFloor_Vec2(ImVec2* pOut, const ImVec2 v); -CIMGUI_API void igImFloorSigned_Vec2(ImVec2* pOut, const ImVec2 v); -CIMGUI_API int igImModPositive(int a, int b); -CIMGUI_API float igImDot(const ImVec2 a, const ImVec2 b); -CIMGUI_API void igImRotate(ImVec2* pOut, const ImVec2 v, float cos_a, float sin_a); -CIMGUI_API float igImLinearSweep(float current, float target, float speed); -CIMGUI_API void igImMul(ImVec2* pOut, const ImVec2 lhs, const ImVec2 rhs); +CIMGUI_API void igImFloor_Vec2(ImVec2 *pOut,const ImVec2 v); +CIMGUI_API int igImModPositive(int a,int b); +CIMGUI_API float igImDot(const ImVec2 a,const ImVec2 b); +CIMGUI_API void igImRotate(ImVec2 *pOut,const ImVec2 v,float cos_a,float sin_a); +CIMGUI_API float igImLinearSweep(float current,float target,float speed); +CIMGUI_API void igImMul(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs); CIMGUI_API bool igImIsFloatAboveGuaranteedIntegerPrecision(float f); -CIMGUI_API float igImExponentialMovingAverage(float avg, float sample, int n); -CIMGUI_API void igImBezierCubicCalc(ImVec2* pOut, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, float t); -CIMGUI_API void igImBezierCubicClosestPoint(ImVec2* pOut, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, const ImVec2 p, int num_segments); -CIMGUI_API void igImBezierCubicClosestPointCasteljau(ImVec2* pOut, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, const ImVec2 p4, const ImVec2 p, float tess_tol); -CIMGUI_API void igImBezierQuadraticCalc(ImVec2* pOut, const ImVec2 p1, const ImVec2 p2, const ImVec2 p3, float t); -CIMGUI_API void igImLineClosestPoint(ImVec2* pOut, const ImVec2 a, const ImVec2 b, const ImVec2 p); -CIMGUI_API bool igImTriangleContainsPoint(const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 p); -CIMGUI_API void igImTriangleClosestPoint(ImVec2* pOut, const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 p); -CIMGUI_API void igImTriangleBarycentricCoords(const ImVec2 a, const ImVec2 b, const ImVec2 c, const ImVec2 p, float* out_u, float* out_v, float* out_w); -CIMGUI_API float igImTriangleArea(const ImVec2 a, const ImVec2 b, const ImVec2 c); +CIMGUI_API float igImExponentialMovingAverage(float avg,float sample,int n); +CIMGUI_API void igImBezierCubicCalc(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t); +CIMGUI_API void igImBezierCubicClosestPoint(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments); +CIMGUI_API void igImBezierCubicClosestPointCasteljau(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol); +CIMGUI_API void igImBezierQuadraticCalc(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t); +CIMGUI_API void igImLineClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 p); +CIMGUI_API bool igImTriangleContainsPoint(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p); +CIMGUI_API void igImTriangleClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p); +CIMGUI_API void igImTriangleBarycentricCoords(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p,float* out_u,float* out_v,float* out_w); +CIMGUI_API float igImTriangleArea(const ImVec2 a,const ImVec2 b,const ImVec2 c); CIMGUI_API ImVec1* ImVec1_ImVec1_Nil(void); CIMGUI_API void ImVec1_destroy(ImVec1* self); CIMGUI_API ImVec1* ImVec1_ImVec1_Float(float _x); CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_Nil(void); CIMGUI_API void ImVec2ih_destroy(ImVec2ih* self); -CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_short(short _x, short _y); +CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_short(short _x,short _y); CIMGUI_API ImVec2ih* ImVec2ih_ImVec2ih_Vec2(const ImVec2 rhs); CIMGUI_API ImRect* ImRect_ImRect_Nil(void); CIMGUI_API void ImRect_destroy(ImRect* self); -CIMGUI_API ImRect* ImRect_ImRect_Vec2(const ImVec2 min, const ImVec2 max); +CIMGUI_API ImRect* ImRect_ImRect_Vec2(const ImVec2 min,const ImVec2 max); CIMGUI_API ImRect* ImRect_ImRect_Vec4(const ImVec4 v); -CIMGUI_API ImRect* ImRect_ImRect_Float(float x1, float y1, float x2, float y2); -CIMGUI_API void ImRect_GetCenter(ImVec2* pOut, ImRect* self); -CIMGUI_API void ImRect_GetSize(ImVec2* pOut, ImRect* self); +CIMGUI_API ImRect* ImRect_ImRect_Float(float x1,float y1,float x2,float y2); +CIMGUI_API void ImRect_GetCenter(ImVec2 *pOut,ImRect* self); +CIMGUI_API void ImRect_GetSize(ImVec2 *pOut,ImRect* self); CIMGUI_API float ImRect_GetWidth(ImRect* self); CIMGUI_API float ImRect_GetHeight(ImRect* self); CIMGUI_API float ImRect_GetArea(ImRect* self); -CIMGUI_API void ImRect_GetTL(ImVec2* pOut, ImRect* self); -CIMGUI_API void ImRect_GetTR(ImVec2* pOut, ImRect* self); -CIMGUI_API void ImRect_GetBL(ImVec2* pOut, ImRect* self); -CIMGUI_API void ImRect_GetBR(ImVec2* pOut, ImRect* self); -CIMGUI_API bool ImRect_Contains_Vec2(ImRect* self, const ImVec2 p); -CIMGUI_API bool ImRect_Contains_Rect(ImRect* self, const ImRect r); -CIMGUI_API bool ImRect_Overlaps(ImRect* self, const ImRect r); -CIMGUI_API void ImRect_Add_Vec2(ImRect* self, const ImVec2 p); -CIMGUI_API void ImRect_Add_Rect(ImRect* self, const ImRect r); -CIMGUI_API void ImRect_Expand_Float(ImRect* self, const float amount); -CIMGUI_API void ImRect_Expand_Vec2(ImRect* self, const ImVec2 amount); -CIMGUI_API void ImRect_Translate(ImRect* self, const ImVec2 d); -CIMGUI_API void ImRect_TranslateX(ImRect* self, float dx); -CIMGUI_API void ImRect_TranslateY(ImRect* self, float dy); -CIMGUI_API void ImRect_ClipWith(ImRect* self, const ImRect r); -CIMGUI_API void ImRect_ClipWithFull(ImRect* self, const ImRect r); +CIMGUI_API void ImRect_GetTL(ImVec2 *pOut,ImRect* self); +CIMGUI_API void ImRect_GetTR(ImVec2 *pOut,ImRect* self); +CIMGUI_API void ImRect_GetBL(ImVec2 *pOut,ImRect* self); +CIMGUI_API void ImRect_GetBR(ImVec2 *pOut,ImRect* self); +CIMGUI_API bool ImRect_Contains_Vec2(ImRect* self,const ImVec2 p); +CIMGUI_API bool ImRect_Contains_Rect(ImRect* self,const ImRect r); +CIMGUI_API bool ImRect_ContainsWithPad(ImRect* self,const ImVec2 p,const ImVec2 pad); +CIMGUI_API bool ImRect_Overlaps(ImRect* self,const ImRect r); +CIMGUI_API void ImRect_Add_Vec2(ImRect* self,const ImVec2 p); +CIMGUI_API void ImRect_Add_Rect(ImRect* self,const ImRect r); +CIMGUI_API void ImRect_Expand_Float(ImRect* self,const float amount); +CIMGUI_API void ImRect_Expand_Vec2(ImRect* self,const ImVec2 amount); +CIMGUI_API void ImRect_Translate(ImRect* self,const ImVec2 d); +CIMGUI_API void ImRect_TranslateX(ImRect* self,float dx); +CIMGUI_API void ImRect_TranslateY(ImRect* self,float dy); +CIMGUI_API void ImRect_ClipWith(ImRect* self,const ImRect r); +CIMGUI_API void ImRect_ClipWithFull(ImRect* self,const ImRect r); CIMGUI_API void ImRect_Floor(ImRect* self); CIMGUI_API bool ImRect_IsInverted(ImRect* self); -CIMGUI_API void ImRect_ToVec4(ImVec4* pOut, ImRect* self); +CIMGUI_API void ImRect_ToVec4(ImVec4 *pOut,ImRect* self); CIMGUI_API size_t igImBitArrayGetStorageSizeInBytes(int bitcount); -CIMGUI_API void igImBitArrayClearAllBits(ImU32* arr, int bitcount); -CIMGUI_API bool igImBitArrayTestBit(const ImU32* arr, int n); -CIMGUI_API void igImBitArrayClearBit(ImU32* arr, int n); -CIMGUI_API void igImBitArraySetBit(ImU32* arr, int n); -CIMGUI_API void igImBitArraySetBitRange(ImU32* arr, int n, int n2); -CIMGUI_API void ImBitVector_Create(ImBitVector* self, int sz); +CIMGUI_API void igImBitArrayClearAllBits(ImU32* arr,int bitcount); +CIMGUI_API bool igImBitArrayTestBit(const ImU32* arr,int n); +CIMGUI_API void igImBitArrayClearBit(ImU32* arr,int n); +CIMGUI_API void igImBitArraySetBit(ImU32* arr,int n); +CIMGUI_API void igImBitArraySetBitRange(ImU32* arr,int n,int n2); +CIMGUI_API void ImBitVector_Create(ImBitVector* self,int sz); CIMGUI_API void ImBitVector_Clear(ImBitVector* self); -CIMGUI_API bool ImBitVector_TestBit(ImBitVector* self, int n); -CIMGUI_API void ImBitVector_SetBit(ImBitVector* self, int n); -CIMGUI_API void ImBitVector_ClearBit(ImBitVector* self, int n); +CIMGUI_API bool ImBitVector_TestBit(ImBitVector* self,int n); +CIMGUI_API void ImBitVector_SetBit(ImBitVector* self,int n); +CIMGUI_API void ImBitVector_ClearBit(ImBitVector* self,int n); CIMGUI_API void ImGuiTextIndex_clear(ImGuiTextIndex* self); CIMGUI_API int ImGuiTextIndex_size(ImGuiTextIndex* self); -CIMGUI_API const char* ImGuiTextIndex_get_line_begin(ImGuiTextIndex* self, const char* base, int n); -CIMGUI_API const char* ImGuiTextIndex_get_line_end(ImGuiTextIndex* self, const char* base, int n); -CIMGUI_API void ImGuiTextIndex_append(ImGuiTextIndex* self, const char* base, int old_size, int new_size); +CIMGUI_API const char* ImGuiTextIndex_get_line_begin(ImGuiTextIndex* self,const char* base,int n); +CIMGUI_API const char* ImGuiTextIndex_get_line_end(ImGuiTextIndex* self,const char* base,int n); +CIMGUI_API void ImGuiTextIndex_append(ImGuiTextIndex* self,const char* base,int old_size,int new_size); CIMGUI_API ImDrawListSharedData* ImDrawListSharedData_ImDrawListSharedData(void); CIMGUI_API void ImDrawListSharedData_destroy(ImDrawListSharedData* self); -CIMGUI_API void ImDrawListSharedData_SetCircleTessellationMaxError(ImDrawListSharedData* self, float max_error); -CIMGUI_API void ImDrawDataBuilder_Clear(ImDrawDataBuilder* self); -CIMGUI_API void ImDrawDataBuilder_ClearFreeMemory(ImDrawDataBuilder* self); -CIMGUI_API int ImDrawDataBuilder_GetDrawListCount(ImDrawDataBuilder* self); -CIMGUI_API void ImDrawDataBuilder_FlattenIntoSingleLayer(ImDrawDataBuilder* self); -CIMGUI_API void* ImGuiDataVarInfo_GetVarPtr(ImGuiDataVarInfo* self, void* parent); -CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Int(ImGuiStyleVar idx, int v); +CIMGUI_API void ImDrawListSharedData_SetCircleTessellationMaxError(ImDrawListSharedData* self,float max_error); +CIMGUI_API ImDrawDataBuilder* ImDrawDataBuilder_ImDrawDataBuilder(void); +CIMGUI_API void ImDrawDataBuilder_destroy(ImDrawDataBuilder* self); +CIMGUI_API void* ImGuiDataVarInfo_GetVarPtr(ImGuiDataVarInfo* self,void* parent); +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Int(ImGuiStyleVar idx,int v); CIMGUI_API void ImGuiStyleMod_destroy(ImGuiStyleMod* self); -CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Float(ImGuiStyleVar idx, float v); -CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Vec2(ImGuiStyleVar idx, ImVec2 v); +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Float(ImGuiStyleVar idx,float v); +CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Vec2(ImGuiStyleVar idx,ImVec2 v); CIMGUI_API ImGuiComboPreviewData* ImGuiComboPreviewData_ImGuiComboPreviewData(void); CIMGUI_API void ImGuiComboPreviewData_destroy(ImGuiComboPreviewData* self); CIMGUI_API ImGuiMenuColumns* ImGuiMenuColumns_ImGuiMenuColumns(void); CIMGUI_API void ImGuiMenuColumns_destroy(ImGuiMenuColumns* self); -CIMGUI_API void ImGuiMenuColumns_Update(ImGuiMenuColumns* self, float spacing, bool window_reappearing); -CIMGUI_API float ImGuiMenuColumns_DeclColumns(ImGuiMenuColumns* self, float w_icon, float w_label, float w_shortcut, float w_mark); -CIMGUI_API void ImGuiMenuColumns_CalcNextTotalWidth(ImGuiMenuColumns* self, bool update_offsets); +CIMGUI_API void ImGuiMenuColumns_Update(ImGuiMenuColumns* self,float spacing,bool window_reappearing); +CIMGUI_API float ImGuiMenuColumns_DeclColumns(ImGuiMenuColumns* self,float w_icon,float w_label,float w_shortcut,float w_mark); +CIMGUI_API void ImGuiMenuColumns_CalcNextTotalWidth(ImGuiMenuColumns* self,bool update_offsets); CIMGUI_API ImGuiInputTextDeactivatedState* ImGuiInputTextDeactivatedState_ImGuiInputTextDeactivatedState(void); CIMGUI_API void ImGuiInputTextDeactivatedState_destroy(ImGuiInputTextDeactivatedState* self); CIMGUI_API void ImGuiInputTextDeactivatedState_ClearFreeMemory(ImGuiInputTextDeactivatedState* self); @@ -3976,7 +4090,7 @@ CIMGUI_API void ImGuiInputTextState_ClearText(ImGuiInputTextState* self); CIMGUI_API void ImGuiInputTextState_ClearFreeMemory(ImGuiInputTextState* self); CIMGUI_API int ImGuiInputTextState_GetUndoAvailCount(ImGuiInputTextState* self); CIMGUI_API int ImGuiInputTextState_GetRedoAvailCount(ImGuiInputTextState* self); -CIMGUI_API void ImGuiInputTextState_OnKeyPressed(ImGuiInputTextState* self, int key); +CIMGUI_API void ImGuiInputTextState_OnKeyPressed(ImGuiInputTextState* self,int key); CIMGUI_API void ImGuiInputTextState_CursorAnimReset(ImGuiInputTextState* self); CIMGUI_API void ImGuiInputTextState_CursorClamp(ImGuiInputTextState* self); CIMGUI_API bool ImGuiInputTextState_HasSelection(ImGuiInputTextState* self); @@ -3997,8 +4111,8 @@ CIMGUI_API ImGuiLastItemData* ImGuiLastItemData_ImGuiLastItemData(void); CIMGUI_API void ImGuiLastItemData_destroy(ImGuiLastItemData* self); CIMGUI_API ImGuiStackSizes* ImGuiStackSizes_ImGuiStackSizes(void); CIMGUI_API void ImGuiStackSizes_destroy(ImGuiStackSizes* self); -CIMGUI_API void ImGuiStackSizes_SetToContextState(ImGuiStackSizes* self, ImGuiContext* ctx); -CIMGUI_API void ImGuiStackSizes_CompareWithContextState(ImGuiStackSizes* self, ImGuiContext* ctx); +CIMGUI_API void ImGuiStackSizes_SetToContextState(ImGuiStackSizes* self,ImGuiContext* ctx); +CIMGUI_API void ImGuiStackSizes_CompareWithContextState(ImGuiStackSizes* self,ImGuiContext* ctx); CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr(void* ptr); CIMGUI_API void ImGuiPtrOrIndex_destroy(ImGuiPtrOrIndex* self); CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(int index); @@ -4011,14 +4125,17 @@ CIMGUI_API void ImGuiKeyRoutingTable_destroy(ImGuiKeyRoutingTable* self); CIMGUI_API void ImGuiKeyRoutingTable_Clear(ImGuiKeyRoutingTable* self); CIMGUI_API ImGuiKeyOwnerData* ImGuiKeyOwnerData_ImGuiKeyOwnerData(void); CIMGUI_API void ImGuiKeyOwnerData_destroy(ImGuiKeyOwnerData* self); -CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromIndices(int min, int max); -CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromPositions(float y1, float y2, int off_min, int off_max); +CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromIndices(int min,int max); +CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromPositions(float y1,float y2,int off_min,int off_max); CIMGUI_API ImGuiListClipperData* ImGuiListClipperData_ImGuiListClipperData(void); CIMGUI_API void ImGuiListClipperData_destroy(ImGuiListClipperData* self); -CIMGUI_API void ImGuiListClipperData_Reset(ImGuiListClipperData* self, ImGuiListClipper* clipper); +CIMGUI_API void ImGuiListClipperData_Reset(ImGuiListClipperData* self,ImGuiListClipper* clipper); CIMGUI_API ImGuiNavItemData* ImGuiNavItemData_ImGuiNavItemData(void); CIMGUI_API void ImGuiNavItemData_destroy(ImGuiNavItemData* self); CIMGUI_API void ImGuiNavItemData_Clear(ImGuiNavItemData* self); +CIMGUI_API ImGuiTypingSelectState* ImGuiTypingSelectState_ImGuiTypingSelectState(void); +CIMGUI_API void ImGuiTypingSelectState_destroy(ImGuiTypingSelectState* self); +CIMGUI_API void ImGuiTypingSelectState_Clear(ImGuiTypingSelectState* self); CIMGUI_API ImGuiOldColumnData* ImGuiOldColumnData_ImGuiOldColumnData(void); CIMGUI_API void ImGuiOldColumnData_destroy(ImGuiOldColumnData* self); CIMGUI_API ImGuiOldColumns* ImGuiOldColumns_ImGuiOldColumns(void); @@ -4034,45 +4151,47 @@ CIMGUI_API bool ImGuiDockNode_IsNoTabBar(ImGuiDockNode* self); CIMGUI_API bool ImGuiDockNode_IsSplitNode(ImGuiDockNode* self); CIMGUI_API bool ImGuiDockNode_IsLeafNode(ImGuiDockNode* self); CIMGUI_API bool ImGuiDockNode_IsEmpty(ImGuiDockNode* self); -CIMGUI_API void ImGuiDockNode_Rect(ImRect* pOut, ImGuiDockNode* self); -CIMGUI_API void ImGuiDockNode_SetLocalFlags(ImGuiDockNode* self, ImGuiDockNodeFlags flags); +CIMGUI_API void ImGuiDockNode_Rect(ImRect *pOut,ImGuiDockNode* self); +CIMGUI_API void ImGuiDockNode_SetLocalFlags(ImGuiDockNode* self,ImGuiDockNodeFlags flags); CIMGUI_API void ImGuiDockNode_UpdateMergedFlags(ImGuiDockNode* self); CIMGUI_API ImGuiDockContext* ImGuiDockContext_ImGuiDockContext(void); CIMGUI_API void ImGuiDockContext_destroy(ImGuiDockContext* self); CIMGUI_API ImGuiViewportP* ImGuiViewportP_ImGuiViewportP(void); CIMGUI_API void ImGuiViewportP_destroy(ImGuiViewportP* self); CIMGUI_API void ImGuiViewportP_ClearRequestFlags(ImGuiViewportP* self); -CIMGUI_API void ImGuiViewportP_CalcWorkRectPos(ImVec2* pOut, ImGuiViewportP* self, const ImVec2 off_min); -CIMGUI_API void ImGuiViewportP_CalcWorkRectSize(ImVec2* pOut, ImGuiViewportP* self, const ImVec2 off_min, const ImVec2 off_max); +CIMGUI_API void ImGuiViewportP_CalcWorkRectPos(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 off_min); +CIMGUI_API void ImGuiViewportP_CalcWorkRectSize(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 off_min,const ImVec2 off_max); CIMGUI_API void ImGuiViewportP_UpdateWorkRect(ImGuiViewportP* self); -CIMGUI_API void ImGuiViewportP_GetMainRect(ImRect* pOut, ImGuiViewportP* self); -CIMGUI_API void ImGuiViewportP_GetWorkRect(ImRect* pOut, ImGuiViewportP* self); -CIMGUI_API void ImGuiViewportP_GetBuildWorkRect(ImRect* pOut, ImGuiViewportP* self); +CIMGUI_API void ImGuiViewportP_GetMainRect(ImRect *pOut,ImGuiViewportP* self); +CIMGUI_API void ImGuiViewportP_GetWorkRect(ImRect *pOut,ImGuiViewportP* self); +CIMGUI_API void ImGuiViewportP_GetBuildWorkRect(ImRect *pOut,ImGuiViewportP* self); CIMGUI_API ImGuiWindowSettings* ImGuiWindowSettings_ImGuiWindowSettings(void); CIMGUI_API void ImGuiWindowSettings_destroy(ImGuiWindowSettings* self); CIMGUI_API char* ImGuiWindowSettings_GetName(ImGuiWindowSettings* self); CIMGUI_API ImGuiSettingsHandler* ImGuiSettingsHandler_ImGuiSettingsHandler(void); CIMGUI_API void ImGuiSettingsHandler_destroy(ImGuiSettingsHandler* self); +CIMGUI_API ImGuiDebugAllocInfo* ImGuiDebugAllocInfo_ImGuiDebugAllocInfo(void); +CIMGUI_API void ImGuiDebugAllocInfo_destroy(ImGuiDebugAllocInfo* self); CIMGUI_API ImGuiStackLevelInfo* ImGuiStackLevelInfo_ImGuiStackLevelInfo(void); CIMGUI_API void ImGuiStackLevelInfo_destroy(ImGuiStackLevelInfo* self); -CIMGUI_API ImGuiStackTool* ImGuiStackTool_ImGuiStackTool(void); -CIMGUI_API void ImGuiStackTool_destroy(ImGuiStackTool* self); +CIMGUI_API ImGuiIDStackTool* ImGuiIDStackTool_ImGuiIDStackTool(void); +CIMGUI_API void ImGuiIDStackTool_destroy(ImGuiIDStackTool* self); CIMGUI_API ImGuiContextHook* ImGuiContextHook_ImGuiContextHook(void); CIMGUI_API void ImGuiContextHook_destroy(ImGuiContextHook* self); CIMGUI_API ImGuiContext* ImGuiContext_ImGuiContext(ImFontAtlas* shared_font_atlas); CIMGUI_API void ImGuiContext_destroy(ImGuiContext* self); -CIMGUI_API ImGuiWindow* ImGuiWindow_ImGuiWindow(ImGuiContext* context, const char* name); +CIMGUI_API ImGuiWindow* ImGuiWindow_ImGuiWindow(ImGuiContext* context,const char* name); CIMGUI_API void ImGuiWindow_destroy(ImGuiWindow* self); -CIMGUI_API ImGuiID ImGuiWindow_GetID_Str(ImGuiWindow* self, const char* str, const char* str_end); -CIMGUI_API ImGuiID ImGuiWindow_GetID_Ptr(ImGuiWindow* self, const void* ptr); -CIMGUI_API ImGuiID ImGuiWindow_GetID_Int(ImGuiWindow* self, int n); -CIMGUI_API ImGuiID ImGuiWindow_GetIDFromRectangle(ImGuiWindow* self, const ImRect r_abs); -CIMGUI_API void ImGuiWindow_Rect(ImRect* pOut, ImGuiWindow* self); +CIMGUI_API ImGuiID ImGuiWindow_GetID_Str(ImGuiWindow* self,const char* str,const char* str_end); +CIMGUI_API ImGuiID ImGuiWindow_GetID_Ptr(ImGuiWindow* self,const void* ptr); +CIMGUI_API ImGuiID ImGuiWindow_GetID_Int(ImGuiWindow* self,int n); +CIMGUI_API ImGuiID ImGuiWindow_GetIDFromRectangle(ImGuiWindow* self,const ImRect r_abs); +CIMGUI_API void ImGuiWindow_Rect(ImRect *pOut,ImGuiWindow* self); CIMGUI_API float ImGuiWindow_CalcFontSize(ImGuiWindow* self); CIMGUI_API float ImGuiWindow_TitleBarHeight(ImGuiWindow* self); -CIMGUI_API void ImGuiWindow_TitleBarRect(ImRect* pOut, ImGuiWindow* self); +CIMGUI_API void ImGuiWindow_TitleBarRect(ImRect *pOut,ImGuiWindow* self); CIMGUI_API float ImGuiWindow_MenuBarHeight(ImGuiWindow* self); -CIMGUI_API void ImGuiWindow_MenuBarRect(ImRect* pOut, ImGuiWindow* self); +CIMGUI_API void ImGuiWindow_MenuBarRect(ImRect *pOut,ImGuiWindow* self); CIMGUI_API ImGuiTabItem* ImGuiTabItem_ImGuiTabItem(void); CIMGUI_API void ImGuiTabItem_destroy(ImGuiTabItem* self); CIMGUI_API ImGuiTabBar* ImGuiTabBar_ImGuiTabBar(void); @@ -4094,47 +4213,48 @@ CIMGUI_API ImGuiWindow* igGetCurrentWindowRead(void); CIMGUI_API ImGuiWindow* igGetCurrentWindow(void); CIMGUI_API ImGuiWindow* igFindWindowByID(ImGuiID id); CIMGUI_API ImGuiWindow* igFindWindowByName(const char* name); -CIMGUI_API void igUpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window); -CIMGUI_API void igCalcWindowNextAutoFitSize(ImVec2* pOut, ImGuiWindow* window); -CIMGUI_API bool igIsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy); -CIMGUI_API bool igIsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent); -CIMGUI_API bool igIsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below); +CIMGUI_API void igUpdateWindowParentAndRootLinks(ImGuiWindow* window,ImGuiWindowFlags flags,ImGuiWindow* parent_window); +CIMGUI_API void igCalcWindowNextAutoFitSize(ImVec2 *pOut,ImGuiWindow* window); +CIMGUI_API bool igIsWindowChildOf(ImGuiWindow* window,ImGuiWindow* potential_parent,bool popup_hierarchy,bool dock_hierarchy); +CIMGUI_API bool igIsWindowWithinBeginStackOf(ImGuiWindow* window,ImGuiWindow* potential_parent); +CIMGUI_API bool igIsWindowAbove(ImGuiWindow* potential_above,ImGuiWindow* potential_below); CIMGUI_API bool igIsWindowNavFocusable(ImGuiWindow* window); -CIMGUI_API void igSetWindowPos_WindowPtr(ImGuiWindow* window, const ImVec2 pos, ImGuiCond cond); -CIMGUI_API void igSetWindowSize_WindowPtr(ImGuiWindow* window, const ImVec2 size, ImGuiCond cond); -CIMGUI_API void igSetWindowCollapsed_WindowPtr(ImGuiWindow* window, bool collapsed, ImGuiCond cond); -CIMGUI_API void igSetWindowHitTestHole(ImGuiWindow* window, const ImVec2 pos, const ImVec2 size); +CIMGUI_API void igSetWindowPos_WindowPtr(ImGuiWindow* window,const ImVec2 pos,ImGuiCond cond); +CIMGUI_API void igSetWindowSize_WindowPtr(ImGuiWindow* window,const ImVec2 size,ImGuiCond cond); +CIMGUI_API void igSetWindowCollapsed_WindowPtr(ImGuiWindow* window,bool collapsed,ImGuiCond cond); +CIMGUI_API void igSetWindowHitTestHole(ImGuiWindow* window,const ImVec2 pos,const ImVec2 size); CIMGUI_API void igSetWindowHiddendAndSkipItemsForCurrentFrame(ImGuiWindow* window); -CIMGUI_API void igWindowRectAbsToRel(ImRect* pOut, ImGuiWindow* window, const ImRect r); -CIMGUI_API void igWindowRectRelToAbs(ImRect* pOut, ImGuiWindow* window, const ImRect r); -CIMGUI_API void igWindowPosRelToAbs(ImVec2* pOut, ImGuiWindow* window, const ImVec2 p); -CIMGUI_API void igFocusWindow(ImGuiWindow* window, ImGuiFocusRequestFlags flags); -CIMGUI_API void igFocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window, ImGuiViewport* filter_viewport, ImGuiFocusRequestFlags flags); +CIMGUI_API void igWindowRectAbsToRel(ImRect *pOut,ImGuiWindow* window,const ImRect r); +CIMGUI_API void igWindowRectRelToAbs(ImRect *pOut,ImGuiWindow* window,const ImRect r); +CIMGUI_API void igWindowPosRelToAbs(ImVec2 *pOut,ImGuiWindow* window,const ImVec2 p); +CIMGUI_API void igFocusWindow(ImGuiWindow* window,ImGuiFocusRequestFlags flags); +CIMGUI_API void igFocusTopMostWindowUnderOne(ImGuiWindow* under_this_window,ImGuiWindow* ignore_window,ImGuiViewport* filter_viewport,ImGuiFocusRequestFlags flags); CIMGUI_API void igBringWindowToFocusFront(ImGuiWindow* window); CIMGUI_API void igBringWindowToDisplayFront(ImGuiWindow* window); CIMGUI_API void igBringWindowToDisplayBack(ImGuiWindow* window); -CIMGUI_API void igBringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* above_window); +CIMGUI_API void igBringWindowToDisplayBehind(ImGuiWindow* window,ImGuiWindow* above_window); CIMGUI_API int igFindWindowDisplayIndex(ImGuiWindow* window); CIMGUI_API ImGuiWindow* igFindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window); CIMGUI_API void igSetCurrentFont(ImFont* font); CIMGUI_API ImFont* igGetDefaultFont(void); CIMGUI_API ImDrawList* igGetForegroundDrawList_WindowPtr(ImGuiWindow* window); +CIMGUI_API void igAddDrawListToDrawDataEx(ImDrawData* draw_data,ImVector_ImDrawListPtr* out_list,ImDrawList* draw_list); CIMGUI_API void igInitialize(void); CIMGUI_API void igShutdown(void); CIMGUI_API void igUpdateInputEvents(bool trickle_fast_inputs); CIMGUI_API void igUpdateHoveredWindowAndCaptureFlags(void); CIMGUI_API void igStartMouseMovingWindow(ImGuiWindow* window); -CIMGUI_API void igStartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, bool undock_floating_node); +CIMGUI_API void igStartMouseMovingWindowOrNode(ImGuiWindow* window,ImGuiDockNode* node,bool undock); CIMGUI_API void igUpdateMouseMovingWindowNewFrame(void); CIMGUI_API void igUpdateMouseMovingWindowEndFrame(void); -CIMGUI_API ImGuiID igAddContextHook(ImGuiContext* context, const ImGuiContextHook* hook); -CIMGUI_API void igRemoveContextHook(ImGuiContext* context, ImGuiID hook_to_remove); -CIMGUI_API void igCallContextHooks(ImGuiContext* context, ImGuiContextHookType type); -CIMGUI_API void igTranslateWindowsInViewport(ImGuiViewportP* viewport, const ImVec2 old_pos, const ImVec2 new_pos); -CIMGUI_API void igScaleWindowsInViewport(ImGuiViewportP* viewport, float scale); +CIMGUI_API ImGuiID igAddContextHook(ImGuiContext* context,const ImGuiContextHook* hook); +CIMGUI_API void igRemoveContextHook(ImGuiContext* context,ImGuiID hook_to_remove); +CIMGUI_API void igCallContextHooks(ImGuiContext* context,ImGuiContextHookType type); +CIMGUI_API void igTranslateWindowsInViewport(ImGuiViewportP* viewport,const ImVec2 old_pos,const ImVec2 new_pos); +CIMGUI_API void igScaleWindowsInViewport(ImGuiViewportP* viewport,float scale); CIMGUI_API void igDestroyPlatformWindow(ImGuiViewportP* viewport); -CIMGUI_API void igSetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport); -CIMGUI_API void igSetCurrentViewport(ImGuiWindow* window, ImGuiViewportP* viewport); +CIMGUI_API void igSetWindowViewport(ImGuiWindow* window,ImGuiViewportP* viewport); +CIMGUI_API void igSetCurrentViewport(ImGuiWindow* window,ImGuiViewportP* viewport); CIMGUI_API const ImGuiPlatformMonitor* igGetViewportPlatformMonitor(ImGuiViewport* viewport); CIMGUI_API ImGuiViewportP* igFindHoveredViewportFromPlatformWindowStack(const ImVec2 mouse_platform_pos); CIMGUI_API void igMarkIniSettingsDirty_Nil(void); @@ -4147,83 +4267,86 @@ CIMGUI_API ImGuiWindowSettings* igCreateNewWindowSettings(const char* name); CIMGUI_API ImGuiWindowSettings* igFindWindowSettingsByID(ImGuiID id); CIMGUI_API ImGuiWindowSettings* igFindWindowSettingsByWindow(ImGuiWindow* window); CIMGUI_API void igClearWindowSettings(const char* name); -CIMGUI_API void igLocalizeRegisterEntries(const ImGuiLocEntry* entries, int count); +CIMGUI_API void igLocalizeRegisterEntries(const ImGuiLocEntry* entries,int count); CIMGUI_API const char* igLocalizeGetMsg(ImGuiLocKey key); -CIMGUI_API void igSetScrollX_WindowPtr(ImGuiWindow* window, float scroll_x); -CIMGUI_API void igSetScrollY_WindowPtr(ImGuiWindow* window, float scroll_y); -CIMGUI_API void igSetScrollFromPosX_WindowPtr(ImGuiWindow* window, float local_x, float center_x_ratio); -CIMGUI_API void igSetScrollFromPosY_WindowPtr(ImGuiWindow* window, float local_y, float center_y_ratio); +CIMGUI_API void igSetScrollX_WindowPtr(ImGuiWindow* window,float scroll_x); +CIMGUI_API void igSetScrollY_WindowPtr(ImGuiWindow* window,float scroll_y); +CIMGUI_API void igSetScrollFromPosX_WindowPtr(ImGuiWindow* window,float local_x,float center_x_ratio); +CIMGUI_API void igSetScrollFromPosY_WindowPtr(ImGuiWindow* window,float local_y,float center_y_ratio); CIMGUI_API void igScrollToItem(ImGuiScrollFlags flags); -CIMGUI_API void igScrollToRect(ImGuiWindow* window, const ImRect rect, ImGuiScrollFlags flags); -CIMGUI_API void igScrollToRectEx(ImVec2* pOut, ImGuiWindow* window, const ImRect rect, ImGuiScrollFlags flags); -CIMGUI_API void igScrollToBringRectIntoView(ImGuiWindow* window, const ImRect rect); +CIMGUI_API void igScrollToRect(ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags); +CIMGUI_API void igScrollToRectEx(ImVec2 *pOut,ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags); +CIMGUI_API void igScrollToBringRectIntoView(ImGuiWindow* window,const ImRect rect); CIMGUI_API ImGuiItemStatusFlags igGetItemStatusFlags(void); CIMGUI_API ImGuiItemFlags igGetItemFlags(void); CIMGUI_API ImGuiID igGetActiveID(void); CIMGUI_API ImGuiID igGetFocusID(void); -CIMGUI_API void igSetActiveID(ImGuiID id, ImGuiWindow* window); -CIMGUI_API void igSetFocusID(ImGuiID id, ImGuiWindow* window); +CIMGUI_API void igSetActiveID(ImGuiID id,ImGuiWindow* window); +CIMGUI_API void igSetFocusID(ImGuiID id,ImGuiWindow* window); CIMGUI_API void igClearActiveID(void); CIMGUI_API ImGuiID igGetHoveredID(void); CIMGUI_API void igSetHoveredID(ImGuiID id); CIMGUI_API void igKeepAliveID(ImGuiID id); CIMGUI_API void igMarkItemEdited(ImGuiID id); CIMGUI_API void igPushOverrideID(ImGuiID id); -CIMGUI_API ImGuiID igGetIDWithSeed_Str(const char* str_id_begin, const char* str_id_end, ImGuiID seed); -CIMGUI_API ImGuiID igGetIDWithSeed_Int(int n, ImGuiID seed); -CIMGUI_API void igItemSize_Vec2(const ImVec2 size, float text_baseline_y); -CIMGUI_API void igItemSize_Rect(const ImRect bb, float text_baseline_y); -CIMGUI_API bool igItemAdd(const ImRect bb, ImGuiID id, const ImRect* nav_bb, ImGuiItemFlags extra_flags); -CIMGUI_API bool igItemHoverable(const ImRect bb, ImGuiID id, ImGuiItemFlags item_flags); -CIMGUI_API bool igIsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags); -CIMGUI_API bool igIsClippedEx(const ImRect bb, ImGuiID id); -CIMGUI_API void igSetLastItemData(ImGuiID item_id, ImGuiItemFlags in_flags, ImGuiItemStatusFlags status_flags, const ImRect item_rect); -CIMGUI_API void igCalcItemSize(ImVec2* pOut, ImVec2 size, float default_w, float default_h); -CIMGUI_API float igCalcWrapWidthForPos(const ImVec2 pos, float wrap_pos_x); -CIMGUI_API void igPushMultiItemsWidths(int components, float width_full); +CIMGUI_API ImGuiID igGetIDWithSeed_Str(const char* str_id_begin,const char* str_id_end,ImGuiID seed); +CIMGUI_API ImGuiID igGetIDWithSeed_Int(int n,ImGuiID seed); +CIMGUI_API void igItemSize_Vec2(const ImVec2 size,float text_baseline_y); +CIMGUI_API void igItemSize_Rect(const ImRect bb,float text_baseline_y); +CIMGUI_API bool igItemAdd(const ImRect bb,ImGuiID id,const ImRect* nav_bb,ImGuiItemFlags extra_flags); +CIMGUI_API bool igItemHoverable(const ImRect bb,ImGuiID id,ImGuiItemFlags item_flags); +CIMGUI_API bool igIsWindowContentHoverable(ImGuiWindow* window,ImGuiHoveredFlags flags); +CIMGUI_API bool igIsClippedEx(const ImRect bb,ImGuiID id); +CIMGUI_API void igSetLastItemData(ImGuiID item_id,ImGuiItemFlags in_flags,ImGuiItemStatusFlags status_flags,const ImRect item_rect); +CIMGUI_API void igCalcItemSize(ImVec2 *pOut,ImVec2 size,float default_w,float default_h); +CIMGUI_API float igCalcWrapWidthForPos(const ImVec2 pos,float wrap_pos_x); +CIMGUI_API void igPushMultiItemsWidths(int components,float width_full); CIMGUI_API bool igIsItemToggledSelection(void); -CIMGUI_API void igGetContentRegionMaxAbs(ImVec2* pOut); -CIMGUI_API void igShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess); -CIMGUI_API void igPushItemFlag(ImGuiItemFlags option, bool enabled); +CIMGUI_API void igGetContentRegionMaxAbs(ImVec2 *pOut); +CIMGUI_API void igShrinkWidths(ImGuiShrinkWidthItem* items,int count,float width_excess); +CIMGUI_API void igPushItemFlag(ImGuiItemFlags option,bool enabled); CIMGUI_API void igPopItemFlag(void); CIMGUI_API const ImGuiDataVarInfo* igGetStyleVarInfo(ImGuiStyleVar idx); -CIMGUI_API void igLogBegin(ImGuiLogType type, int auto_open_depth); +CIMGUI_API void igLogBegin(ImGuiLogType type,int auto_open_depth); CIMGUI_API void igLogToBuffer(int auto_open_depth); -CIMGUI_API void igLogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end); -CIMGUI_API void igLogSetNextTextDecoration(const char* prefix, const char* suffix); -CIMGUI_API bool igBeginChildEx(const char* name, ImGuiID id, const ImVec2 size_arg, bool border, ImGuiWindowFlags flags); -CIMGUI_API void igOpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags); -CIMGUI_API void igClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup); -CIMGUI_API void igClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup); +CIMGUI_API void igLogRenderedText(const ImVec2* ref_pos,const char* text,const char* text_end); +CIMGUI_API void igLogSetNextTextDecoration(const char* prefix,const char* suffix); +CIMGUI_API bool igBeginChildEx(const char* name,ImGuiID id,const ImVec2 size_arg,bool border,ImGuiWindowFlags window_flags); +CIMGUI_API void igOpenPopupEx(ImGuiID id,ImGuiPopupFlags popup_flags); +CIMGUI_API void igClosePopupToLevel(int remaining,bool restore_focus_to_window_under_popup); +CIMGUI_API void igClosePopupsOverWindow(ImGuiWindow* ref_window,bool restore_focus_to_window_under_popup); CIMGUI_API void igClosePopupsExceptModals(void); -CIMGUI_API bool igIsPopupOpen_ID(ImGuiID id, ImGuiPopupFlags popup_flags); -CIMGUI_API bool igBeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags); -CIMGUI_API bool igBeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags); -CIMGUI_API void igGetPopupAllowedExtentRect(ImRect* pOut, ImGuiWindow* window); +CIMGUI_API bool igIsPopupOpen_ID(ImGuiID id,ImGuiPopupFlags popup_flags); +CIMGUI_API bool igBeginPopupEx(ImGuiID id,ImGuiWindowFlags extra_flags); +CIMGUI_API bool igBeginTooltipEx(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags); +CIMGUI_API bool igBeginTooltipHidden(void); +CIMGUI_API void igGetPopupAllowedExtentRect(ImRect *pOut,ImGuiWindow* window); CIMGUI_API ImGuiWindow* igGetTopMostPopupModal(void); CIMGUI_API ImGuiWindow* igGetTopMostAndVisiblePopupModal(void); CIMGUI_API ImGuiWindow* igFindBlockingModal(ImGuiWindow* window); -CIMGUI_API void igFindBestWindowPosForPopup(ImVec2* pOut, ImGuiWindow* window); -CIMGUI_API void igFindBestWindowPosForPopupEx(ImVec2* pOut, const ImVec2 ref_pos, const ImVec2 size, ImGuiDir* last_dir, const ImRect r_outer, const ImRect r_avoid, ImGuiPopupPositionPolicy policy); -CIMGUI_API bool igBeginViewportSideBar(const char* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags window_flags); -CIMGUI_API bool igBeginMenuEx(const char* label, const char* icon, bool enabled); -CIMGUI_API bool igMenuItemEx(const char* label, const char* icon, const char* shortcut, bool selected, bool enabled); -CIMGUI_API bool igBeginComboPopup(ImGuiID popup_id, const ImRect bb, ImGuiComboFlags flags); +CIMGUI_API void igFindBestWindowPosForPopup(ImVec2 *pOut,ImGuiWindow* window); +CIMGUI_API void igFindBestWindowPosForPopupEx(ImVec2 *pOut,const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy); +CIMGUI_API bool igBeginViewportSideBar(const char* name,ImGuiViewport* viewport,ImGuiDir dir,float size,ImGuiWindowFlags window_flags); +CIMGUI_API bool igBeginMenuEx(const char* label,const char* icon,bool enabled); +CIMGUI_API bool igMenuItemEx(const char* label,const char* icon,const char* shortcut,bool selected,bool enabled); +CIMGUI_API bool igBeginComboPopup(ImGuiID popup_id,const ImRect bb,ImGuiComboFlags flags); CIMGUI_API bool igBeginComboPreview(void); CIMGUI_API void igEndComboPreview(void); -CIMGUI_API void igNavInitWindow(ImGuiWindow* window, bool force_reinit); +CIMGUI_API void igNavInitWindow(ImGuiWindow* window,bool force_reinit); CIMGUI_API void igNavInitRequestApplyResult(void); CIMGUI_API bool igNavMoveRequestButNoResultYet(void); -CIMGUI_API void igNavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); -CIMGUI_API void igNavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); +CIMGUI_API void igNavMoveRequestSubmit(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags); +CIMGUI_API void igNavMoveRequestForward(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags); CIMGUI_API void igNavMoveRequestResolveWithLastItem(ImGuiNavItemData* result); +CIMGUI_API void igNavMoveRequestResolveWithPastTreeNode(ImGuiNavItemData* result,ImGuiNavTreeNodeData* tree_node_data); CIMGUI_API void igNavMoveRequestCancel(void); CIMGUI_API void igNavMoveRequestApplyResult(void); -CIMGUI_API void igNavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); +CIMGUI_API void igNavMoveRequestTryWrapping(ImGuiWindow* window,ImGuiNavMoveFlags move_flags); CIMGUI_API void igNavClearPreferredPosForAxis(ImGuiAxis axis); +CIMGUI_API void igNavRestoreHighlightAfterMove(void); CIMGUI_API void igNavUpdateCurrentWindowIsScrollPushableX(void); CIMGUI_API void igSetNavWindow(ImGuiWindow* window); -CIMGUI_API void igSetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect rect_rel); +CIMGUI_API void igSetNavID(ImGuiID id,ImGuiNavLayer nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel); CIMGUI_API void igFocusItem(void); CIMGUI_API void igActivateItemByID(ImGuiID id); CIMGUI_API bool igIsNamedKey(ImGuiKey key); @@ -4234,105 +4357,114 @@ CIMGUI_API bool igIsGamepadKey(ImGuiKey key); CIMGUI_API bool igIsMouseKey(ImGuiKey key); CIMGUI_API bool igIsAliasKey(ImGuiKey key); CIMGUI_API ImGuiKeyChord igConvertShortcutMod(ImGuiKeyChord key_chord); -CIMGUI_API ImGuiKey igConvertSingleModFlagToKey(ImGuiContext* ctx, ImGuiKey key); -CIMGUI_API ImGuiKeyData* igGetKeyData_ContextPtr(ImGuiContext* ctx, ImGuiKey key); +CIMGUI_API ImGuiKey igConvertSingleModFlagToKey(ImGuiContext* ctx,ImGuiKey key); +CIMGUI_API ImGuiKeyData* igGetKeyData_ContextPtr(ImGuiContext* ctx,ImGuiKey key); CIMGUI_API ImGuiKeyData* igGetKeyData_Key(ImGuiKey key); -CIMGUI_API void igGetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size); +CIMGUI_API void igGetKeyChordName(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size); CIMGUI_API ImGuiKey igMouseButtonToKey(ImGuiMouseButton button); -CIMGUI_API bool igIsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold); -CIMGUI_API void igGetKeyMagnitude2d(ImVec2* pOut, ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down); +CIMGUI_API bool igIsMouseDragPastThreshold(ImGuiMouseButton button,float lock_threshold); +CIMGUI_API void igGetKeyMagnitude2d(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down); CIMGUI_API float igGetNavTweakPressedAmount(ImGuiAxis axis); -CIMGUI_API int igCalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); -CIMGUI_API void igGetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate); +CIMGUI_API int igCalcTypematicRepeatAmount(float t0,float t1,float repeat_delay,float repeat_rate); +CIMGUI_API void igGetTypematicRepeatRate(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate); +CIMGUI_API void igTeleportMousePos(const ImVec2 pos); CIMGUI_API void igSetActiveIdUsingAllKeyboardKeys(void); CIMGUI_API bool igIsActiveIdUsingNavDir(ImGuiDir dir); CIMGUI_API ImGuiID igGetKeyOwner(ImGuiKey key); -CIMGUI_API void igSetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags); -CIMGUI_API void igSetKeyOwnersForKeyChord(ImGuiKeyChord key, ImGuiID owner_id, ImGuiInputFlags flags); -CIMGUI_API void igSetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags); -CIMGUI_API bool igTestKeyOwner(ImGuiKey key, ImGuiID owner_id); -CIMGUI_API ImGuiKeyOwnerData* igGetKeyOwnerData(ImGuiContext* ctx, ImGuiKey key); -CIMGUI_API bool igIsKeyDown_ID(ImGuiKey key, ImGuiID owner_id); -CIMGUI_API bool igIsKeyPressed_ID(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags); -CIMGUI_API bool igIsKeyReleased_ID(ImGuiKey key, ImGuiID owner_id); -CIMGUI_API bool igIsMouseDown_ID(ImGuiMouseButton button, ImGuiID owner_id); -CIMGUI_API bool igIsMouseClicked_ID(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags); -CIMGUI_API bool igIsMouseReleased_ID(ImGuiMouseButton button, ImGuiID owner_id); -CIMGUI_API bool igShortcut(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags); -CIMGUI_API bool igSetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags); -CIMGUI_API bool igTestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id); +CIMGUI_API void igSetKeyOwner(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API void igSetKeyOwnersForKeyChord(ImGuiKeyChord key,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API void igSetItemKeyOwner(ImGuiKey key,ImGuiInputFlags flags); +CIMGUI_API bool igTestKeyOwner(ImGuiKey key,ImGuiID owner_id); +CIMGUI_API ImGuiKeyOwnerData* igGetKeyOwnerData(ImGuiContext* ctx,ImGuiKey key); +CIMGUI_API bool igIsKeyDown_ID(ImGuiKey key,ImGuiID owner_id); +CIMGUI_API bool igIsKeyPressed_ID(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igIsKeyReleased_ID(ImGuiKey key,ImGuiID owner_id); +CIMGUI_API bool igIsMouseDown_ID(ImGuiMouseButton button,ImGuiID owner_id); +CIMGUI_API bool igIsMouseClicked_ID(ImGuiMouseButton button,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igIsMouseReleased_ID(ImGuiMouseButton button,ImGuiID owner_id); +CIMGUI_API bool igIsKeyChordPressed(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igShortcut(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igSetShortcutRouting(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags); +CIMGUI_API bool igTestShortcutRouting(ImGuiKeyChord key_chord,ImGuiID owner_id); CIMGUI_API ImGuiKeyRoutingData* igGetShortcutRoutingData(ImGuiKeyChord key_chord); CIMGUI_API void igDockContextInitialize(ImGuiContext* ctx); CIMGUI_API void igDockContextShutdown(ImGuiContext* ctx); -CIMGUI_API void igDockContextClearNodes(ImGuiContext* ctx, ImGuiID root_id, bool clear_settings_refs); +CIMGUI_API void igDockContextClearNodes(ImGuiContext* ctx,ImGuiID root_id,bool clear_settings_refs); CIMGUI_API void igDockContextRebuildNodes(ImGuiContext* ctx); CIMGUI_API void igDockContextNewFrameUpdateUndocking(ImGuiContext* ctx); CIMGUI_API void igDockContextNewFrameUpdateDocking(ImGuiContext* ctx); CIMGUI_API void igDockContextEndFrame(ImGuiContext* ctx); CIMGUI_API ImGuiID igDockContextGenNodeID(ImGuiContext* ctx); -CIMGUI_API void igDockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer); -CIMGUI_API void igDockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window); -CIMGUI_API void igDockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node); -CIMGUI_API void igDockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* window, bool clear_persistent_docking_ref); -CIMGUI_API void igDockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node); -CIMGUI_API bool igDockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos); -CIMGUI_API ImGuiDockNode* igDockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id); -CIMGUI_API void igDockNodeWindowMenuHandler_Default(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar); +CIMGUI_API void igDockContextQueueDock(ImGuiContext* ctx,ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload,ImGuiDir split_dir,float split_ratio,bool split_outer); +CIMGUI_API void igDockContextQueueUndockWindow(ImGuiContext* ctx,ImGuiWindow* window); +CIMGUI_API void igDockContextQueueUndockNode(ImGuiContext* ctx,ImGuiDockNode* node); +CIMGUI_API void igDockContextProcessUndockWindow(ImGuiContext* ctx,ImGuiWindow* window,bool clear_persistent_docking_ref); +CIMGUI_API void igDockContextProcessUndockNode(ImGuiContext* ctx,ImGuiDockNode* node); +CIMGUI_API bool igDockContextCalcDropPosForDocking(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos); +CIMGUI_API ImGuiDockNode* igDockContextFindNodeByID(ImGuiContext* ctx,ImGuiID id); +CIMGUI_API void igDockNodeWindowMenuHandler_Default(ImGuiContext* ctx,ImGuiDockNode* node,ImGuiTabBar* tab_bar); CIMGUI_API bool igDockNodeBeginAmendTabBar(ImGuiDockNode* node); CIMGUI_API void igDockNodeEndAmendTabBar(void); CIMGUI_API ImGuiDockNode* igDockNodeGetRootNode(ImGuiDockNode* node); -CIMGUI_API bool igDockNodeIsInHierarchyOf(ImGuiDockNode* node, ImGuiDockNode* parent); +CIMGUI_API bool igDockNodeIsInHierarchyOf(ImGuiDockNode* node,ImGuiDockNode* parent); CIMGUI_API int igDockNodeGetDepth(const ImGuiDockNode* node); CIMGUI_API ImGuiID igDockNodeGetWindowMenuButtonId(const ImGuiDockNode* node); CIMGUI_API ImGuiDockNode* igGetWindowDockNode(void); CIMGUI_API bool igGetWindowAlwaysWantOwnTabBar(ImGuiWindow* window); -CIMGUI_API void igBeginDocked(ImGuiWindow* window, bool* p_open); +CIMGUI_API void igBeginDocked(ImGuiWindow* window,bool* p_open); CIMGUI_API void igBeginDockableDragDropSource(ImGuiWindow* window); CIMGUI_API void igBeginDockableDragDropTarget(ImGuiWindow* window); -CIMGUI_API void igSetWindowDock(ImGuiWindow* window, ImGuiID dock_id, ImGuiCond cond); -CIMGUI_API void igDockBuilderDockWindow(const char* window_name, ImGuiID node_id); +CIMGUI_API void igSetWindowDock(ImGuiWindow* window,ImGuiID dock_id,ImGuiCond cond); +CIMGUI_API void igDockBuilderDockWindow(const char* window_name,ImGuiID node_id); CIMGUI_API ImGuiDockNode* igDockBuilderGetNode(ImGuiID node_id); CIMGUI_API ImGuiDockNode* igDockBuilderGetCentralNode(ImGuiID node_id); -CIMGUI_API ImGuiID igDockBuilderAddNode(ImGuiID node_id, ImGuiDockNodeFlags flags); +CIMGUI_API ImGuiID igDockBuilderAddNode(ImGuiID node_id,ImGuiDockNodeFlags flags); CIMGUI_API void igDockBuilderRemoveNode(ImGuiID node_id); -CIMGUI_API void igDockBuilderRemoveNodeDockedWindows(ImGuiID node_id, bool clear_settings_refs); +CIMGUI_API void igDockBuilderRemoveNodeDockedWindows(ImGuiID node_id,bool clear_settings_refs); CIMGUI_API void igDockBuilderRemoveNodeChildNodes(ImGuiID node_id); -CIMGUI_API void igDockBuilderSetNodePos(ImGuiID node_id, ImVec2 pos); -CIMGUI_API void igDockBuilderSetNodeSize(ImGuiID node_id, ImVec2 size); -CIMGUI_API ImGuiID igDockBuilderSplitNode(ImGuiID node_id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir); -CIMGUI_API void igDockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector_const_charPtr* in_window_remap_pairs); -CIMGUI_API void igDockBuilderCopyNode(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector_ImGuiID* out_node_remap_pairs); -CIMGUI_API void igDockBuilderCopyWindowSettings(const char* src_name, const char* dst_name); +CIMGUI_API void igDockBuilderSetNodePos(ImGuiID node_id,ImVec2 pos); +CIMGUI_API void igDockBuilderSetNodeSize(ImGuiID node_id,ImVec2 size); +CIMGUI_API ImGuiID igDockBuilderSplitNode(ImGuiID node_id,ImGuiDir split_dir,float size_ratio_for_node_at_dir,ImGuiID* out_id_at_dir,ImGuiID* out_id_at_opposite_dir); +CIMGUI_API void igDockBuilderCopyDockSpace(ImGuiID src_dockspace_id,ImGuiID dst_dockspace_id,ImVector_const_charPtr* in_window_remap_pairs); +CIMGUI_API void igDockBuilderCopyNode(ImGuiID src_node_id,ImGuiID dst_node_id,ImVector_ImGuiID* out_node_remap_pairs); +CIMGUI_API void igDockBuilderCopyWindowSettings(const char* src_name,const char* dst_name); CIMGUI_API void igDockBuilderFinish(ImGuiID node_id); CIMGUI_API void igPushFocusScope(ImGuiID id); CIMGUI_API void igPopFocusScope(void); CIMGUI_API ImGuiID igGetCurrentFocusScope(void); CIMGUI_API bool igIsDragDropActive(void); -CIMGUI_API bool igBeginDragDropTargetCustom(const ImRect bb, ImGuiID id); +CIMGUI_API bool igBeginDragDropTargetCustom(const ImRect bb,ImGuiID id); CIMGUI_API void igClearDragDrop(void); CIMGUI_API bool igIsDragDropPayloadBeingAccepted(void); CIMGUI_API void igRenderDragDropTargetRect(const ImRect bb); -CIMGUI_API void igSetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect clip_rect); -CIMGUI_API void igBeginColumns(const char* str_id, int count, ImGuiOldColumnFlags flags); +CIMGUI_API ImGuiTypingSelectRequest* igGetTypingSelectRequest(ImGuiTypingSelectFlags flags); +CIMGUI_API int igTypingSelectFindMatch(ImGuiTypingSelectRequest* req,int items_count,const char*(*get_item_name_func)(void*,int),void* user_data,int nav_item_idx); +CIMGUI_API int igTypingSelectFindNextSingleCharMatch(ImGuiTypingSelectRequest* req,int items_count,const char*(*get_item_name_func)(void*,int),void* user_data,int nav_item_idx); +CIMGUI_API int igTypingSelectFindBestLeadingMatch(ImGuiTypingSelectRequest* req,int items_count,const char*(*get_item_name_func)(void*,int),void* user_data); +CIMGUI_API void igSetWindowClipRectBeforeSetChannel(ImGuiWindow* window,const ImRect clip_rect); +CIMGUI_API void igBeginColumns(const char* str_id,int count,ImGuiOldColumnFlags flags); CIMGUI_API void igEndColumns(void); CIMGUI_API void igPushColumnClipRect(int column_index); CIMGUI_API void igPushColumnsBackground(void); CIMGUI_API void igPopColumnsBackground(void); -CIMGUI_API ImGuiID igGetColumnsID(const char* str_id, int count); -CIMGUI_API ImGuiOldColumns* igFindOrCreateColumns(ImGuiWindow* window, ImGuiID id); -CIMGUI_API float igGetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm); -CIMGUI_API float igGetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset); +CIMGUI_API ImGuiID igGetColumnsID(const char* str_id,int count); +CIMGUI_API ImGuiOldColumns* igFindOrCreateColumns(ImGuiWindow* window,ImGuiID id); +CIMGUI_API float igGetColumnOffsetFromNorm(const ImGuiOldColumns* columns,float offset_norm); +CIMGUI_API float igGetColumnNormFromOffset(const ImGuiOldColumns* columns,float offset); CIMGUI_API void igTableOpenContextMenu(int column_n); -CIMGUI_API void igTableSetColumnWidth(int column_n, float width); -CIMGUI_API void igTableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs); +CIMGUI_API void igTableSetColumnWidth(int column_n,float width); +CIMGUI_API void igTableSetColumnSortDirection(int column_n,ImGuiSortDirection sort_direction,bool append_to_sort_specs); CIMGUI_API int igTableGetHoveredColumn(void); +CIMGUI_API int igTableGetHoveredRow(void); CIMGUI_API float igTableGetHeaderRowHeight(void); +CIMGUI_API float igTableGetHeaderAngledMaxLabelWidth(void); CIMGUI_API void igTablePushBackgroundChannel(void); CIMGUI_API void igTablePopBackgroundChannel(void); +CIMGUI_API void igTableAngledHeadersRowEx(float angle,float label_width); CIMGUI_API ImGuiTable* igGetCurrentTable(void); CIMGUI_API ImGuiTable* igTableFindByID(ImGuiID id); -CIMGUI_API bool igBeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags, const ImVec2 outer_size, float inner_width); -CIMGUI_API void igTableBeginInitMemory(ImGuiTable* table, int columns_count); +CIMGUI_API bool igBeginTableEx(const char* name,ImGuiID id,int columns_count,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width); +CIMGUI_API void igTableBeginInitMemory(ImGuiTable* table,int columns_count); CIMGUI_API void igTableBeginApplyRequests(ImGuiTable* table); CIMGUI_API void igTableSetupDrawChannels(ImGuiTable* table); CIMGUI_API void igTableUpdateLayout(ImGuiTable* table); @@ -4342,22 +4474,22 @@ CIMGUI_API void igTableDrawBorders(ImGuiTable* table); CIMGUI_API void igTableDrawContextMenu(ImGuiTable* table); CIMGUI_API bool igTableBeginContextMenuPopup(ImGuiTable* table); CIMGUI_API void igTableMergeDrawChannels(ImGuiTable* table); -CIMGUI_API ImGuiTableInstanceData* igTableGetInstanceData(ImGuiTable* table, int instance_no); -CIMGUI_API ImGuiID igTableGetInstanceID(ImGuiTable* table, int instance_no); +CIMGUI_API ImGuiTableInstanceData* igTableGetInstanceData(ImGuiTable* table,int instance_no); +CIMGUI_API ImGuiID igTableGetInstanceID(ImGuiTable* table,int instance_no); CIMGUI_API void igTableSortSpecsSanitize(ImGuiTable* table); CIMGUI_API void igTableSortSpecsBuild(ImGuiTable* table); CIMGUI_API ImGuiSortDirection igTableGetColumnNextSortDirection(ImGuiTableColumn* column); -CIMGUI_API void igTableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column); -CIMGUI_API float igTableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column); +CIMGUI_API void igTableFixColumnSortDirection(ImGuiTable* table,ImGuiTableColumn* column); +CIMGUI_API float igTableGetColumnWidthAuto(ImGuiTable* table,ImGuiTableColumn* column); CIMGUI_API void igTableBeginRow(ImGuiTable* table); CIMGUI_API void igTableEndRow(ImGuiTable* table); -CIMGUI_API void igTableBeginCell(ImGuiTable* table, int column_n); +CIMGUI_API void igTableBeginCell(ImGuiTable* table,int column_n); CIMGUI_API void igTableEndCell(ImGuiTable* table); -CIMGUI_API void igTableGetCellBgRect(ImRect* pOut, const ImGuiTable* table, int column_n); -CIMGUI_API const char* igTableGetColumnName_TablePtr(const ImGuiTable* table, int column_n); -CIMGUI_API ImGuiID igTableGetColumnResizeID(ImGuiTable* table, int column_n, int instance_no); -CIMGUI_API float igTableGetMaxColumnWidth(const ImGuiTable* table, int column_n); -CIMGUI_API void igTableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n); +CIMGUI_API void igTableGetCellBgRect(ImRect *pOut,const ImGuiTable* table,int column_n); +CIMGUI_API const char* igTableGetColumnName_TablePtr(const ImGuiTable* table,int column_n); +CIMGUI_API ImGuiID igTableGetColumnResizeID(ImGuiTable* table,int column_n,int instance_no); +CIMGUI_API float igTableGetMaxColumnWidth(const ImGuiTable* table,int column_n); +CIMGUI_API void igTableSetColumnWidthAutoSingle(ImGuiTable* table,int column_n); CIMGUI_API void igTableSetColumnWidthAutoAll(ImGuiTable* table); CIMGUI_API void igTableRemove(ImGuiTable* table); CIMGUI_API void igTableGcCompactTransientBuffers_TablePtr(ImGuiTable* table); @@ -4368,146 +4500,160 @@ CIMGUI_API void igTableSaveSettings(ImGuiTable* table); CIMGUI_API void igTableResetSettings(ImGuiTable* table); CIMGUI_API ImGuiTableSettings* igTableGetBoundSettings(ImGuiTable* table); CIMGUI_API void igTableSettingsAddSettingsHandler(void); -CIMGUI_API ImGuiTableSettings* igTableSettingsCreate(ImGuiID id, int columns_count); +CIMGUI_API ImGuiTableSettings* igTableSettingsCreate(ImGuiID id,int columns_count); CIMGUI_API ImGuiTableSettings* igTableSettingsFindByID(ImGuiID id); CIMGUI_API ImGuiTabBar* igGetCurrentTabBar(void); -CIMGUI_API bool igBeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect bb, ImGuiTabBarFlags flags, ImGuiDockNode* dock_node); -CIMGUI_API ImGuiTabItem* igTabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id); -CIMGUI_API ImGuiTabItem* igTabBarFindTabByOrder(ImGuiTabBar* tab_bar, int order); +CIMGUI_API bool igBeginTabBarEx(ImGuiTabBar* tab_bar,const ImRect bb,ImGuiTabBarFlags flags); +CIMGUI_API ImGuiTabItem* igTabBarFindTabByID(ImGuiTabBar* tab_bar,ImGuiID tab_id); +CIMGUI_API ImGuiTabItem* igTabBarFindTabByOrder(ImGuiTabBar* tab_bar,int order); CIMGUI_API ImGuiTabItem* igTabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar); CIMGUI_API ImGuiTabItem* igTabBarGetCurrentTab(ImGuiTabBar* tab_bar); -CIMGUI_API int igTabBarGetTabOrder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); -CIMGUI_API const char* igTabBarGetTabName(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); -CIMGUI_API void igTabBarAddTab(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window); -CIMGUI_API void igTabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id); -CIMGUI_API void igTabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); -CIMGUI_API void igTabBarQueueFocus(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); -CIMGUI_API void igTabBarQueueReorder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, int offset); -CIMGUI_API void igTabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, ImVec2 mouse_pos); +CIMGUI_API int igTabBarGetTabOrder(ImGuiTabBar* tab_bar,ImGuiTabItem* tab); +CIMGUI_API const char* igTabBarGetTabName(ImGuiTabBar* tab_bar,ImGuiTabItem* tab); +CIMGUI_API void igTabBarAddTab(ImGuiTabBar* tab_bar,ImGuiTabItemFlags tab_flags,ImGuiWindow* window); +CIMGUI_API void igTabBarRemoveTab(ImGuiTabBar* tab_bar,ImGuiID tab_id); +CIMGUI_API void igTabBarCloseTab(ImGuiTabBar* tab_bar,ImGuiTabItem* tab); +CIMGUI_API void igTabBarQueueFocus(ImGuiTabBar* tab_bar,ImGuiTabItem* tab); +CIMGUI_API void igTabBarQueueReorder(ImGuiTabBar* tab_bar,ImGuiTabItem* tab,int offset); +CIMGUI_API void igTabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar,ImGuiTabItem* tab,ImVec2 mouse_pos); CIMGUI_API bool igTabBarProcessReorder(ImGuiTabBar* tab_bar); -CIMGUI_API bool igTabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window); -CIMGUI_API void igTabItemCalcSize_Str(ImVec2* pOut, const char* label, bool has_close_button_or_unsaved_marker); -CIMGUI_API void igTabItemCalcSize_WindowPtr(ImVec2* pOut, ImGuiWindow* window); -CIMGUI_API void igTabItemBackground(ImDrawList* draw_list, const ImRect bb, ImGuiTabItemFlags flags, ImU32 col); -CIMGUI_API void igTabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped); -CIMGUI_API void igRenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash); -CIMGUI_API void igRenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width); -CIMGUI_API void igRenderTextClipped(const ImVec2 pos_min, const ImVec2 pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2 align, const ImRect* clip_rect); -CIMGUI_API void igRenderTextClippedEx(ImDrawList* draw_list, const ImVec2 pos_min, const ImVec2 pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2 align, const ImRect* clip_rect); -CIMGUI_API void igRenderTextEllipsis(ImDrawList* draw_list, const ImVec2 pos_min, const ImVec2 pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known); -CIMGUI_API void igRenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding); -CIMGUI_API void igRenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding); -CIMGUI_API void igRenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding, ImDrawFlags flags); -CIMGUI_API void igRenderNavHighlight(const ImRect bb, ImGuiID id, ImGuiNavHighlightFlags flags); -CIMGUI_API const char* igFindRenderedTextEnd(const char* text, const char* text_end); -CIMGUI_API void igRenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); -CIMGUI_API void igRenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale); -CIMGUI_API void igRenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col); -CIMGUI_API void igRenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz); -CIMGUI_API void igRenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col); -CIMGUI_API void igRenderArrowDockMenu(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col); -CIMGUI_API void igRenderRectFilledRangeH(ImDrawList* draw_list, const ImRect rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding); -CIMGUI_API void igRenderRectFilledWithHole(ImDrawList* draw_list, const ImRect outer, const ImRect inner, ImU32 col, float rounding); -CIMGUI_API ImDrawFlags igCalcRoundingFlagsForRectInRect(const ImRect r_in, const ImRect r_outer, float threshold); -CIMGUI_API void igTextEx(const char* text, const char* text_end, ImGuiTextFlags flags); -CIMGUI_API bool igButtonEx(const char* label, const ImVec2 size_arg, ImGuiButtonFlags flags); -CIMGUI_API bool igArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags); -CIMGUI_API bool igImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2 size, const ImVec2 uv0, const ImVec2 uv1, const ImVec4 bg_col, const ImVec4 tint_col, ImGuiButtonFlags flags); -CIMGUI_API void igSeparatorEx(ImGuiSeparatorFlags flags, float thickness); -CIMGUI_API void igSeparatorTextEx(ImGuiID id, const char* label, const char* label_end, float extra_width); -CIMGUI_API bool igCheckboxFlags_S64Ptr(const char* label, ImS64* flags, ImS64 flags_value); -CIMGUI_API bool igCheckboxFlags_U64Ptr(const char* label, ImU64* flags, ImU64 flags_value); -CIMGUI_API bool igCloseButton(ImGuiID id, const ImVec2 pos); -CIMGUI_API bool igCollapseButton(ImGuiID id, const ImVec2 pos, ImGuiDockNode* dock_node); +CIMGUI_API bool igTabItemEx(ImGuiTabBar* tab_bar,const char* label,bool* p_open,ImGuiTabItemFlags flags,ImGuiWindow* docked_window); +CIMGUI_API void igTabItemCalcSize_Str(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker); +CIMGUI_API void igTabItemCalcSize_WindowPtr(ImVec2 *pOut,ImGuiWindow* window); +CIMGUI_API void igTabItemBackground(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImU32 col); +CIMGUI_API void igTabItemLabelAndCloseButton(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImVec2 frame_padding,const char* label,ImGuiID tab_id,ImGuiID close_button_id,bool is_contents_visible,bool* out_just_closed,bool* out_text_clipped); +CIMGUI_API void igRenderText(ImVec2 pos,const char* text,const char* text_end,bool hide_text_after_hash); +CIMGUI_API void igRenderTextWrapped(ImVec2 pos,const char* text,const char* text_end,float wrap_width); +CIMGUI_API void igRenderTextClipped(const ImVec2 pos_min,const ImVec2 pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2 align,const ImRect* clip_rect); +CIMGUI_API void igRenderTextClippedEx(ImDrawList* draw_list,const ImVec2 pos_min,const ImVec2 pos_max,const char* text,const char* text_end,const ImVec2* text_size_if_known,const ImVec2 align,const ImRect* clip_rect); +CIMGUI_API void igRenderTextEllipsis(ImDrawList* draw_list,const ImVec2 pos_min,const ImVec2 pos_max,float clip_max_x,float ellipsis_max_x,const char* text,const char* text_end,const ImVec2* text_size_if_known); +CIMGUI_API void igRenderFrame(ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,bool border,float rounding); +CIMGUI_API void igRenderFrameBorder(ImVec2 p_min,ImVec2 p_max,float rounding); +CIMGUI_API void igRenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding,ImDrawFlags flags); +CIMGUI_API void igRenderNavHighlight(const ImRect bb,ImGuiID id,ImGuiNavHighlightFlags flags); +CIMGUI_API const char* igFindRenderedTextEnd(const char* text,const char* text_end); +CIMGUI_API void igRenderMouseCursor(ImVec2 pos,float scale,ImGuiMouseCursor mouse_cursor,ImU32 col_fill,ImU32 col_border,ImU32 col_shadow); +CIMGUI_API void igRenderArrow(ImDrawList* draw_list,ImVec2 pos,ImU32 col,ImGuiDir dir,float scale); +CIMGUI_API void igRenderBullet(ImDrawList* draw_list,ImVec2 pos,ImU32 col); +CIMGUI_API void igRenderCheckMark(ImDrawList* draw_list,ImVec2 pos,ImU32 col,float sz); +CIMGUI_API void igRenderArrowPointingAt(ImDrawList* draw_list,ImVec2 pos,ImVec2 half_sz,ImGuiDir direction,ImU32 col); +CIMGUI_API void igRenderArrowDockMenu(ImDrawList* draw_list,ImVec2 p_min,float sz,ImU32 col); +CIMGUI_API void igRenderRectFilledRangeH(ImDrawList* draw_list,const ImRect rect,ImU32 col,float x_start_norm,float x_end_norm,float rounding); +CIMGUI_API void igRenderRectFilledWithHole(ImDrawList* draw_list,const ImRect outer,const ImRect inner,ImU32 col,float rounding); +CIMGUI_API ImDrawFlags igCalcRoundingFlagsForRectInRect(const ImRect r_in,const ImRect r_outer,float threshold); +CIMGUI_API void igTextEx(const char* text,const char* text_end,ImGuiTextFlags flags); +CIMGUI_API bool igButtonEx(const char* label,const ImVec2 size_arg,ImGuiButtonFlags flags); +CIMGUI_API bool igArrowButtonEx(const char* str_id,ImGuiDir dir,ImVec2 size_arg,ImGuiButtonFlags flags); +CIMGUI_API bool igImageButtonEx(ImGuiID id,ImTextureID texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col,ImGuiButtonFlags flags); +CIMGUI_API void igSeparatorEx(ImGuiSeparatorFlags flags,float thickness); +CIMGUI_API void igSeparatorTextEx(ImGuiID id,const char* label,const char* label_end,float extra_width); +CIMGUI_API bool igCheckboxFlags_S64Ptr(const char* label,ImS64* flags,ImS64 flags_value); +CIMGUI_API bool igCheckboxFlags_U64Ptr(const char* label,ImU64* flags,ImU64 flags_value); +CIMGUI_API bool igCloseButton(ImGuiID id,const ImVec2 pos); +CIMGUI_API bool igCollapseButton(ImGuiID id,const ImVec2 pos,ImGuiDockNode* dock_node); CIMGUI_API void igScrollbar(ImGuiAxis axis); -CIMGUI_API bool igScrollbarEx(const ImRect bb, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 avail_v, ImS64 contents_v, ImDrawFlags flags); -CIMGUI_API void igGetWindowScrollbarRect(ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis); -CIMGUI_API ImGuiID igGetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis); -CIMGUI_API ImGuiID igGetWindowResizeCornerID(ImGuiWindow* window, int n); -CIMGUI_API ImGuiID igGetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir); -CIMGUI_API bool igButtonBehavior(const ImRect bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags); -CIMGUI_API bool igDragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); -CIMGUI_API bool igSliderBehavior(const ImRect bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); -CIMGUI_API bool igSplitterBehavior(const ImRect bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend, float hover_visibility_delay, ImU32 bg_col); -CIMGUI_API bool igTreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end); +CIMGUI_API bool igScrollbarEx(const ImRect bb,ImGuiID id,ImGuiAxis axis,ImS64* p_scroll_v,ImS64 avail_v,ImS64 contents_v,ImDrawFlags flags); +CIMGUI_API void igGetWindowScrollbarRect(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis); +CIMGUI_API ImGuiID igGetWindowScrollbarID(ImGuiWindow* window,ImGuiAxis axis); +CIMGUI_API ImGuiID igGetWindowResizeCornerID(ImGuiWindow* window,int n); +CIMGUI_API ImGuiID igGetWindowResizeBorderID(ImGuiWindow* window,ImGuiDir dir); +CIMGUI_API bool igButtonBehavior(const ImRect bb,ImGuiID id,bool* out_hovered,bool* out_held,ImGuiButtonFlags flags); +CIMGUI_API bool igDragBehavior(ImGuiID id,ImGuiDataType data_type,void* p_v,float v_speed,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags); +CIMGUI_API bool igSliderBehavior(const ImRect bb,ImGuiID id,ImGuiDataType data_type,void* p_v,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags,ImRect* out_grab_bb); +CIMGUI_API bool igSplitterBehavior(const ImRect bb,ImGuiID id,ImGuiAxis axis,float* size1,float* size2,float min_size1,float min_size2,float hover_extend,float hover_visibility_delay,ImU32 bg_col); +CIMGUI_API bool igTreeNodeBehavior(ImGuiID id,ImGuiTreeNodeFlags flags,const char* label,const char* label_end); CIMGUI_API void igTreePushOverrideID(ImGuiID id); -CIMGUI_API void igTreeNodeSetOpen(ImGuiID id, bool open); -CIMGUI_API bool igTreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags); +CIMGUI_API void igTreeNodeSetOpen(ImGuiID id,bool open); +CIMGUI_API bool igTreeNodeUpdateNextOpen(ImGuiID id,ImGuiTreeNodeFlags flags); +CIMGUI_API void igSetNextItemSelectionUserData(ImGuiSelectionUserData selection_user_data); CIMGUI_API const ImGuiDataTypeInfo* igDataTypeGetInfo(ImGuiDataType data_type); -CIMGUI_API int igDataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format); -CIMGUI_API void igDataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2); -CIMGUI_API bool igDataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format); -CIMGUI_API int igDataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2); -CIMGUI_API bool igDataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max); -CIMGUI_API bool igInputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2 size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); +CIMGUI_API int igDataTypeFormatString(char* buf,int buf_size,ImGuiDataType data_type,const void* p_data,const char* format); +CIMGUI_API void igDataTypeApplyOp(ImGuiDataType data_type,int op,void* output,const void* arg_1,const void* arg_2); +CIMGUI_API bool igDataTypeApplyFromText(const char* buf,ImGuiDataType data_type,void* p_data,const char* format); +CIMGUI_API int igDataTypeCompare(ImGuiDataType data_type,const void* arg_1,const void* arg_2); +CIMGUI_API bool igDataTypeClamp(ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max); +CIMGUI_API bool igInputTextEx(const char* label,const char* hint,char* buf,int buf_size,const ImVec2 size_arg,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); CIMGUI_API void igInputTextDeactivateHook(ImGuiID id); -CIMGUI_API bool igTempInputText(const ImRect bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags); -CIMGUI_API bool igTempInputScalar(const ImRect bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max); +CIMGUI_API bool igTempInputText(const ImRect bb,ImGuiID id,const char* label,char* buf,int buf_size,ImGuiInputTextFlags flags); +CIMGUI_API bool igTempInputScalar(const ImRect bb,ImGuiID id,const char* label,ImGuiDataType data_type,void* p_data,const char* format,const void* p_clamp_min,const void* p_clamp_max); CIMGUI_API bool igTempInputIsActive(ImGuiID id); CIMGUI_API ImGuiInputTextState* igGetInputTextState(ImGuiID id); -CIMGUI_API void igColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags); -CIMGUI_API void igColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags); -CIMGUI_API void igColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags); -CIMGUI_API int igPlotEx(ImGuiPlotType plot_type, const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2 size_arg); -CIMGUI_API void igShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1); -CIMGUI_API void igShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2 a, const ImVec2 b, const ImVec2 uv_a, const ImVec2 uv_b, bool clamp); +CIMGUI_API void igColorTooltip(const char* text,const float* col,ImGuiColorEditFlags flags); +CIMGUI_API void igColorEditOptionsPopup(const float* col,ImGuiColorEditFlags flags); +CIMGUI_API void igColorPickerOptionsPopup(const float* ref_col,ImGuiColorEditFlags flags); +CIMGUI_API int igPlotEx(ImGuiPlotType plot_type,const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,const ImVec2 size_arg); +CIMGUI_API void igShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,ImVec2 gradient_p0,ImVec2 gradient_p1,ImU32 col0,ImU32 col1); +CIMGUI_API void igShadeVertsLinearUV(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,bool clamp); +CIMGUI_API void igShadeVertsTransformPos(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,const ImVec2 pivot_in,float cos_a,float sin_a,const ImVec2 pivot_out); CIMGUI_API void igGcCompactTransientMiscBuffers(void); CIMGUI_API void igGcCompactTransientWindowBuffers(ImGuiWindow* window); CIMGUI_API void igGcAwakeTransientWindowBuffers(ImGuiWindow* window); -CIMGUI_API void igDebugLog(const char* fmt, ...); -CIMGUI_API void igDebugLogV(const char* fmt, va_list args); -CIMGUI_API void igErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data); -CIMGUI_API void igErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data); +CIMGUI_API void igDebugLog(const char* fmt,...); +CIMGUI_API void igDebugLogV(const char* fmt,va_list args); +CIMGUI_API void igDebugAllocHook(ImGuiDebugAllocInfo* info,int frame_count,void* ptr,size_t size); +CIMGUI_API void igErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback,void* user_data); +CIMGUI_API void igErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback,void* user_data); CIMGUI_API void igErrorCheckUsingSetCursorPosToExtendParentBoundaries(void); +CIMGUI_API void igDebugDrawCursorPos(ImU32 col); +CIMGUI_API void igDebugDrawLineExtents(ImU32 col); +CIMGUI_API void igDebugDrawItemRect(ImU32 col); CIMGUI_API void igDebugLocateItem(ImGuiID target_id); CIMGUI_API void igDebugLocateItemOnHover(ImGuiID target_id); CIMGUI_API void igDebugLocateItemResolveWithLastItem(void); -CIMGUI_API void igDebugDrawItemRect(ImU32 col); CIMGUI_API void igDebugStartItemPicker(void); CIMGUI_API void igShowFontAtlas(ImFontAtlas* atlas); -CIMGUI_API void igDebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end); +CIMGUI_API void igDebugHookIdInfo(ImGuiID id,ImGuiDataType data_type,const void* data_id,const void* data_id_end); CIMGUI_API void igDebugNodeColumns(ImGuiOldColumns* columns); -CIMGUI_API void igDebugNodeDockNode(ImGuiDockNode* node, const char* label); -CIMGUI_API void igDebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label); -CIMGUI_API void igDebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb); +CIMGUI_API void igDebugNodeDockNode(ImGuiDockNode* node,const char* label); +CIMGUI_API void igDebugNodeDrawList(ImGuiWindow* window,ImGuiViewportP* viewport,const ImDrawList* draw_list,const char* label); +CIMGUI_API void igDebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb); CIMGUI_API void igDebugNodeFont(ImFont* font); -CIMGUI_API void igDebugNodeFontGlyph(ImFont* font, const ImFontGlyph* glyph); -CIMGUI_API void igDebugNodeStorage(ImGuiStorage* storage, const char* label); -CIMGUI_API void igDebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label); +CIMGUI_API void igDebugNodeFontGlyph(ImFont* font,const ImFontGlyph* glyph); +CIMGUI_API void igDebugNodeStorage(ImGuiStorage* storage,const char* label); +CIMGUI_API void igDebugNodeTabBar(ImGuiTabBar* tab_bar,const char* label); CIMGUI_API void igDebugNodeTable(ImGuiTable* table); CIMGUI_API void igDebugNodeTableSettings(ImGuiTableSettings* settings); CIMGUI_API void igDebugNodeInputTextState(ImGuiInputTextState* state); -CIMGUI_API void igDebugNodeWindow(ImGuiWindow* window, const char* label); +CIMGUI_API void igDebugNodeTypingSelectState(ImGuiTypingSelectState* state); +CIMGUI_API void igDebugNodeWindow(ImGuiWindow* window,const char* label); CIMGUI_API void igDebugNodeWindowSettings(ImGuiWindowSettings* settings); -CIMGUI_API void igDebugNodeWindowsList(ImVector_ImGuiWindowPtr* windows, const char* label); -CIMGUI_API void igDebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack); +CIMGUI_API void igDebugNodeWindowsList(ImVector_ImGuiWindowPtr* windows,const char* label); +CIMGUI_API void igDebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows,int windows_size,ImGuiWindow* parent_in_begin_stack); CIMGUI_API void igDebugNodeViewport(ImGuiViewportP* viewport); CIMGUI_API void igDebugRenderKeyboardPreview(ImDrawList* draw_list); -CIMGUI_API void igDebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect bb); -CIMGUI_API bool igIsKeyPressedMap(ImGuiKey key, bool repeat); +CIMGUI_API void igDebugRenderViewportThumbnail(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect bb); +CIMGUI_API bool igIsKeyPressedMap(ImGuiKey key,bool repeat); CIMGUI_API const ImFontBuilderIO* igImFontAtlasGetBuilderForStbTruetype(void); +CIMGUI_API void igImFontAtlasUpdateConfigDataPointers(ImFontAtlas* atlas); CIMGUI_API void igImFontAtlasBuildInit(ImFontAtlas* atlas); -CIMGUI_API void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); -CIMGUI_API void igImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque); +CIMGUI_API void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas,ImFont* font,ImFontConfig* font_config,float ascent,float descent); +CIMGUI_API void igImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas,void* stbrp_context_opaque); CIMGUI_API void igImFontAtlasBuildFinish(ImFontAtlas* atlas); -CIMGUI_API void igImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value); -CIMGUI_API void igImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value); -CIMGUI_API void igImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_multiply_factor); -CIMGUI_API void igImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride); +CIMGUI_API void igImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value); +CIMGUI_API void igImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned int in_marker_pixel_value); +CIMGUI_API void igImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256],float in_multiply_factor); +CIMGUI_API void igImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256],unsigned char* pixels,int x,int y,int w,int h,int stride); + /////////////////////////hand written functions //no LogTextV -CIMGUI_API void igLogText(CONST char* fmt, ...); +CIMGUI_API void igLogText(CONST char *fmt, ...); //no appendfV -CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer* buffer, const char* fmt, ...); +CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const char *fmt, ...); //for getting FLT_MAX in bindings CIMGUI_API float igGET_FLT_MAX(void); //for getting FLT_MIN in bindings CIMGUI_API float igGET_FLT_MIN(void); + CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create(void); CIMGUI_API void ImVector_ImWchar_destroy(ImVector_ImWchar* self); CIMGUI_API void ImVector_ImWchar_Init(ImVector_ImWchar* p); CIMGUI_API void ImVector_ImWchar_UnInit(ImVector_ImWchar* p); + #endif //CIMGUI_INCLUDED + + + + diff --git a/HexaGen.Tests/cimgui/definitions.json b/HexaGen.Tests/cimgui/definitions.json index ac8d706..85cbbac 100644 --- a/HexaGen.Tests/cimgui/definitions.json +++ b/HexaGen.Tests/cimgui/definitions.json @@ -13,7 +13,7 @@ "cimguiname": "ImBitArray_ClearAllBits", "defaults": {}, "funcname": "ClearAllBits", - "location": "imgui_internal:582", + "location": "imgui_internal:598", "ov_cimguiname": "ImBitArray_ClearAllBits", "ret": "void", "signature": "()", @@ -39,7 +39,7 @@ "cimguiname": "ImBitArray_ClearBit", "defaults": {}, "funcname": "ClearBit", - "location": "imgui_internal:586", + "location": "imgui_internal:602", "ov_cimguiname": "ImBitArray_ClearBit", "ret": "void", "signature": "(int)", @@ -57,7 +57,7 @@ "constructor": true, "defaults": {}, "funcname": "ImBitArray", - "location": "imgui_internal:581", + "location": "imgui_internal:597", "ov_cimguiname": "ImBitArray_ImBitArray", "signature": "()", "stname": "ImBitArray", @@ -78,7 +78,7 @@ "cimguiname": "ImBitArray_SetAllBits", "defaults": {}, "funcname": "SetAllBits", - "location": "imgui_internal:583", + "location": "imgui_internal:599", "ov_cimguiname": "ImBitArray_SetAllBits", "ret": "void", "signature": "()", @@ -104,7 +104,7 @@ "cimguiname": "ImBitArray_SetBit", "defaults": {}, "funcname": "SetBit", - "location": "imgui_internal:585", + "location": "imgui_internal:601", "ov_cimguiname": "ImBitArray_SetBit", "ret": "void", "signature": "(int)", @@ -135,7 +135,7 @@ "comment": "// Works on range [n..n2)", "defaults": {}, "funcname": "SetBitRange", - "location": "imgui_internal:587", + "location": "imgui_internal:603", "ov_cimguiname": "ImBitArray_SetBitRange", "ret": "void", "signature": "(int,int)", @@ -161,7 +161,7 @@ "cimguiname": "ImBitArray_TestBit", "defaults": {}, "funcname": "TestBit", - "location": "imgui_internal:584", + "location": "imgui_internal:600", "ov_cimguiname": "ImBitArray_TestBit", "ret": "bool", "signature": "(int)const", @@ -203,7 +203,7 @@ "cimguiname": "ImBitVector_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui_internal:597", + "location": "imgui_internal:613", "ov_cimguiname": "ImBitVector_Clear", "ret": "void", "signature": "()", @@ -228,7 +228,7 @@ "cimguiname": "ImBitVector_ClearBit", "defaults": {}, "funcname": "ClearBit", - "location": "imgui_internal:600", + "location": "imgui_internal:616", "ov_cimguiname": "ImBitVector_ClearBit", "ret": "void", "signature": "(int)", @@ -253,7 +253,7 @@ "cimguiname": "ImBitVector_Create", "defaults": {}, "funcname": "Create", - "location": "imgui_internal:596", + "location": "imgui_internal:612", "ov_cimguiname": "ImBitVector_Create", "ret": "void", "signature": "(int)", @@ -278,7 +278,7 @@ "cimguiname": "ImBitVector_SetBit", "defaults": {}, "funcname": "SetBit", - "location": "imgui_internal:599", + "location": "imgui_internal:615", "ov_cimguiname": "ImBitVector_SetBit", "ret": "void", "signature": "(int)", @@ -303,7 +303,7 @@ "cimguiname": "ImBitVector_TestBit", "defaults": {}, "funcname": "TestBit", - "location": "imgui_internal:598", + "location": "imgui_internal:614", "ov_cimguiname": "ImBitVector_TestBit", "ret": "bool", "signature": "(int)const", @@ -328,7 +328,7 @@ "cimguiname": "ImChunkStream_alloc_chunk", "defaults": {}, "funcname": "alloc_chunk", - "location": "imgui_internal:704", + "location": "imgui_internal:720", "ov_cimguiname": "ImChunkStream_alloc_chunk", "ret": "T*", "signature": "(size_t)", @@ -350,7 +350,7 @@ "cimguiname": "ImChunkStream_begin", "defaults": {}, "funcname": "begin", - "location": "imgui_internal:705", + "location": "imgui_internal:721", "ov_cimguiname": "ImChunkStream_begin", "ret": "T*", "signature": "()", @@ -376,7 +376,7 @@ "cimguiname": "ImChunkStream_chunk_size", "defaults": {}, "funcname": "chunk_size", - "location": "imgui_internal:707", + "location": "imgui_internal:723", "ov_cimguiname": "ImChunkStream_chunk_size", "ret": "int", "signature": "(const T*)", @@ -398,7 +398,7 @@ "cimguiname": "ImChunkStream_clear", "defaults": {}, "funcname": "clear", - "location": "imgui_internal:701", + "location": "imgui_internal:717", "ov_cimguiname": "ImChunkStream_clear", "ret": "void", "signature": "()", @@ -420,7 +420,7 @@ "cimguiname": "ImChunkStream_empty", "defaults": {}, "funcname": "empty", - "location": "imgui_internal:702", + "location": "imgui_internal:718", "ov_cimguiname": "ImChunkStream_empty", "ret": "bool", "signature": "()const", @@ -442,7 +442,7 @@ "cimguiname": "ImChunkStream_end", "defaults": {}, "funcname": "end", - "location": "imgui_internal:708", + "location": "imgui_internal:724", "ov_cimguiname": "ImChunkStream_end", "ret": "T*", "signature": "()", @@ -468,7 +468,7 @@ "cimguiname": "ImChunkStream_next_chunk", "defaults": {}, "funcname": "next_chunk", - "location": "imgui_internal:706", + "location": "imgui_internal:722", "ov_cimguiname": "ImChunkStream_next_chunk", "ret": "T*", "signature": "(T*)", @@ -494,7 +494,7 @@ "cimguiname": "ImChunkStream_offset_from_ptr", "defaults": {}, "funcname": "offset_from_ptr", - "location": "imgui_internal:709", + "location": "imgui_internal:725", "ov_cimguiname": "ImChunkStream_offset_from_ptr", "ret": "int", "signature": "(const T*)", @@ -520,7 +520,7 @@ "cimguiname": "ImChunkStream_ptr_from_offset", "defaults": {}, "funcname": "ptr_from_offset", - "location": "imgui_internal:710", + "location": "imgui_internal:726", "ov_cimguiname": "ImChunkStream_ptr_from_offset", "ret": "T*", "signature": "(int)", @@ -542,7 +542,7 @@ "cimguiname": "ImChunkStream_size", "defaults": {}, "funcname": "size", - "location": "imgui_internal:703", + "location": "imgui_internal:719", "ov_cimguiname": "ImChunkStream_size", "ret": "int", "signature": "()const", @@ -569,7 +569,7 @@ "cimguiname": "ImChunkStream_swap", "defaults": {}, "funcname": "swap", - "location": "imgui_internal:711", + "location": "imgui_internal:727", "ov_cimguiname": "ImChunkStream_swap", "ret": "void", "signature": "(ImChunkStream_T *)", @@ -610,7 +610,7 @@ }, "funcname": "HSV", "is_static_function": true, - "location": "imgui:2585", + "location": "imgui:2619", "nonUDT": 1, "ov_cimguiname": "ImColor_HSV", "ret": "void", @@ -628,7 +628,7 @@ "constructor": true, "defaults": {}, "funcname": "ImColor", - "location": "imgui:2575", + "location": "imgui:2609", "ov_cimguiname": "ImColor_ImColor_Nil", "signature": "()", "stname": "ImColor" @@ -661,7 +661,7 @@ "a": "1.0f" }, "funcname": "ImColor", - "location": "imgui:2576", + "location": "imgui:2610", "ov_cimguiname": "ImColor_ImColor_Float", "signature": "(float,float,float,float)", "stname": "ImColor" @@ -680,7 +680,7 @@ "constructor": true, "defaults": {}, "funcname": "ImColor", - "location": "imgui:2577", + "location": "imgui:2611", "ov_cimguiname": "ImColor_ImColor_Vec4", "signature": "(const ImVec4)", "stname": "ImColor" @@ -713,7 +713,7 @@ "a": "255" }, "funcname": "ImColor", - "location": "imgui:2578", + "location": "imgui:2612", "ov_cimguiname": "ImColor_ImColor_Int", "signature": "(int,int,int,int)", "stname": "ImColor" @@ -732,7 +732,7 @@ "constructor": true, "defaults": {}, "funcname": "ImColor", - "location": "imgui:2579", + "location": "imgui:2613", "ov_cimguiname": "ImColor_ImColor_U32", "signature": "(ImU32)", "stname": "ImColor" @@ -770,7 +770,7 @@ "a": "1.0f" }, "funcname": "SetHSV", - "location": "imgui:2584", + "location": "imgui:2618", "ov_cimguiname": "ImColor_SetHSV", "ret": "void", "signature": "(float,float,float,float)", @@ -810,7 +810,7 @@ "cimguiname": "ImDrawCmd_GetTexID", "defaults": {}, "funcname": "GetTexID", - "location": "imgui:2633", + "location": "imgui:2667", "ov_cimguiname": "ImDrawCmd_GetTexID", "ret": "ImTextureID", "signature": "()const", @@ -828,7 +828,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawCmd", - "location": "imgui:2630", + "location": "imgui:2664", "ov_cimguiname": "ImDrawCmd_ImDrawCmd", "signature": "()", "stname": "ImDrawCmd" @@ -853,28 +853,23 @@ "stname": "ImDrawCmd" } ], - "ImDrawDataBuilder_Clear": [ + "ImDrawDataBuilder_ImDrawDataBuilder": [ { - "args": "(ImDrawDataBuilder* self)", - "argsT": [ - { - "name": "self", - "type": "ImDrawDataBuilder*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImDrawDataBuilder_Clear", + "cimguiname": "ImDrawDataBuilder_ImDrawDataBuilder", + "constructor": true, "defaults": {}, - "funcname": "Clear", - "location": "imgui_internal:787", - "ov_cimguiname": "ImDrawDataBuilder_Clear", - "ret": "void", + "funcname": "ImDrawDataBuilder", + "location": "imgui_internal:803", + "ov_cimguiname": "ImDrawDataBuilder_ImDrawDataBuilder", "signature": "()", "stname": "ImDrawDataBuilder" } ], - "ImDrawDataBuilder_ClearFreeMemory": [ + "ImDrawDataBuilder_destroy": [ { "args": "(ImDrawDataBuilder* self)", "argsT": [ @@ -883,58 +878,40 @@ "type": "ImDrawDataBuilder*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawDataBuilder_ClearFreeMemory", + "call_args": "(self)", + "cimguiname": "ImDrawDataBuilder_destroy", "defaults": {}, - "funcname": "ClearFreeMemory", - "location": "imgui_internal:788", - "ov_cimguiname": "ImDrawDataBuilder_ClearFreeMemory", + "destructor": true, + "ov_cimguiname": "ImDrawDataBuilder_destroy", "ret": "void", - "signature": "()", + "signature": "(ImDrawDataBuilder*)", "stname": "ImDrawDataBuilder" } ], - "ImDrawDataBuilder_FlattenIntoSingleLayer": [ + "ImDrawData_AddDrawList": [ { - "args": "(ImDrawDataBuilder* self)", + "args": "(ImDrawData* self,ImDrawList* draw_list)", "argsT": [ { "name": "self", - "type": "ImDrawDataBuilder*" - } - ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawDataBuilder_FlattenIntoSingleLayer", - "defaults": {}, - "funcname": "FlattenIntoSingleLayer", - "location": "imgui_internal:790", - "ov_cimguiname": "ImDrawDataBuilder_FlattenIntoSingleLayer", - "ret": "void", - "signature": "()", - "stname": "ImDrawDataBuilder" - } - ], - "ImDrawDataBuilder_GetDrawListCount": [ - { - "args": "(ImDrawDataBuilder* self)", - "argsT": [ + "type": "ImDrawData*" + }, { - "name": "self", - "type": "ImDrawDataBuilder*" + "name": "draw_list", + "type": "ImDrawList*" } ], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImDrawDataBuilder_GetDrawListCount", + "argsoriginal": "(ImDrawList* draw_list)", + "call_args": "(draw_list)", + "cimguiname": "ImDrawData_AddDrawList", + "comment": "// Helper to add an external draw list into an existing ImDrawData.", "defaults": {}, - "funcname": "GetDrawListCount", - "location": "imgui_internal:789", - "ov_cimguiname": "ImDrawDataBuilder_GetDrawListCount", - "ret": "int", - "signature": "()const", - "stname": "ImDrawDataBuilder" + "funcname": "AddDrawList", + "location": "imgui:2904", + "ov_cimguiname": "ImDrawData_AddDrawList", + "ret": "void", + "signature": "(ImDrawList*)", + "stname": "ImDrawData" } ], "ImDrawData_Clear": [ @@ -949,10 +926,9 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImDrawData_Clear", - "comment": "// The ImDrawList are owned by ImGuiContext!", "defaults": {}, "funcname": "Clear", - "location": "imgui:2866", + "location": "imgui:2903", "ov_cimguiname": "ImDrawData_Clear", "ret": "void", "signature": "()", @@ -974,7 +950,7 @@ "comment": "// Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering!", "defaults": {}, "funcname": "DeIndexAllBuffers", - "location": "imgui:2867", + "location": "imgui:2905", "ov_cimguiname": "ImDrawData_DeIndexAllBuffers", "ret": "void", "signature": "()", @@ -991,7 +967,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawData", - "location": "imgui:2865", + "location": "imgui:2902", "ov_cimguiname": "ImDrawData_ImDrawData", "signature": "()", "stname": "ImDrawData" @@ -1016,7 +992,7 @@ "comment": "// Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution.", "defaults": {}, "funcname": "ScaleClipRects", - "location": "imgui:2868", + "location": "imgui:2906", "ov_cimguiname": "ImDrawData_ScaleClipRects", "ret": "void", "signature": "(const ImVec2)", @@ -1052,7 +1028,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawListSharedData", - "location": "imgui_internal:779", + "location": "imgui_internal:794", "ov_cimguiname": "ImDrawListSharedData_ImDrawListSharedData", "signature": "()", "stname": "ImDrawListSharedData" @@ -1076,7 +1052,7 @@ "cimguiname": "ImDrawListSharedData_SetCircleTessellationMaxError", "defaults": {}, "funcname": "SetCircleTessellationMaxError", - "location": "imgui_internal:780", + "location": "imgui_internal:795", "ov_cimguiname": "ImDrawListSharedData_SetCircleTessellationMaxError", "ret": "void", "signature": "(float)", @@ -1117,7 +1093,7 @@ "comment": "// Do not clear Channels[] so our allocations are reused next frame", "defaults": {}, "funcname": "Clear", - "location": "imgui:2678", + "location": "imgui:2712", "ov_cimguiname": "ImDrawListSplitter_Clear", "ret": "void", "signature": "()", @@ -1138,7 +1114,7 @@ "cimguiname": "ImDrawListSplitter_ClearFreeMemory", "defaults": {}, "funcname": "ClearFreeMemory", - "location": "imgui:2679", + "location": "imgui:2713", "ov_cimguiname": "ImDrawListSplitter_ClearFreeMemory", "ret": "void", "signature": "()", @@ -1155,7 +1131,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawListSplitter", - "location": "imgui:2676", + "location": "imgui:2710", "ov_cimguiname": "ImDrawListSplitter_ImDrawListSplitter", "signature": "()", "stname": "ImDrawListSplitter" @@ -1179,7 +1155,7 @@ "cimguiname": "ImDrawListSplitter_Merge", "defaults": {}, "funcname": "Merge", - "location": "imgui:2681", + "location": "imgui:2715", "ov_cimguiname": "ImDrawListSplitter_Merge", "ret": "void", "signature": "(ImDrawList*)", @@ -1208,7 +1184,7 @@ "cimguiname": "ImDrawListSplitter_SetCurrentChannel", "defaults": {}, "funcname": "SetCurrentChannel", - "location": "imgui:2682", + "location": "imgui:2716", "ov_cimguiname": "ImDrawListSplitter_SetCurrentChannel", "ret": "void", "signature": "(ImDrawList*,int)", @@ -1237,7 +1213,7 @@ "cimguiname": "ImDrawListSplitter_Split", "defaults": {}, "funcname": "Split", - "location": "imgui:2680", + "location": "imgui:2714", "ov_cimguiname": "ImDrawListSplitter_Split", "ret": "void", "signature": "(ImDrawList*,int)", @@ -1257,7 +1233,7 @@ "cimguiname": "ImDrawListSplitter_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2677", + "location": "imgui:2711", "ov_cimguiname": "ImDrawListSplitter_destroy", "realdestructor": true, "ret": "void", @@ -1310,7 +1286,7 @@ "num_segments": "0" }, "funcname": "AddBezierCubic", - "location": "imgui:2781", + "location": "imgui:2817", "ov_cimguiname": "ImDrawList_AddBezierCubic", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", @@ -1358,7 +1334,7 @@ "num_segments": "0" }, "funcname": "AddBezierQuadratic", - "location": "imgui:2782", + "location": "imgui:2818", "ov_cimguiname": "ImDrawList_AddBezierQuadratic", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float,int)", @@ -1388,7 +1364,7 @@ "comment": "// Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles.", "defaults": {}, "funcname": "AddCallback", - "location": "imgui:2806", + "location": "imgui:2843", "ov_cimguiname": "ImDrawList_AddCallback", "ret": "void", "signature": "(ImDrawCallback,void*)", @@ -1432,7 +1408,7 @@ "thickness": "1.0f" }, "funcname": "AddCircle", - "location": "imgui:2773", + "location": "imgui:2807", "ov_cimguiname": "ImDrawList_AddCircle", "ret": "void", "signature": "(const ImVec2,float,ImU32,int,float)", @@ -1471,7 +1447,7 @@ "num_segments": "0" }, "funcname": "AddCircleFilled", - "location": "imgui:2774", + "location": "imgui:2808", "ov_cimguiname": "ImDrawList_AddCircleFilled", "ret": "void", "signature": "(const ImVec2,float,ImU32,int)", @@ -1504,7 +1480,7 @@ "cimguiname": "ImDrawList_AddConvexPolyFilled", "defaults": {}, "funcname": "AddConvexPolyFilled", - "location": "imgui:2780", + "location": "imgui:2816", "ov_cimguiname": "ImDrawList_AddConvexPolyFilled", "ret": "void", "signature": "(const ImVec2*,int,ImU32)", @@ -1526,13 +1502,114 @@ "comment": "// This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible", "defaults": {}, "funcname": "AddDrawCmd", - "location": "imgui:2807", + "location": "imgui:2844", "ov_cimguiname": "ImDrawList_AddDrawCmd", "ret": "void", "signature": "()", "stname": "ImDrawList" } ], + "ImDrawList_AddEllipse": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius_x,float radius_y,ImU32 col,float rot,int num_segments,float thickness)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius_x", + "type": "float" + }, + { + "name": "radius_y", + "type": "float" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "rot", + "type": "float" + }, + { + "name": "num_segments", + "type": "int" + }, + { + "name": "thickness", + "type": "float" + } + ], + "argsoriginal": "(const ImVec2& center,float radius_x,float radius_y,ImU32 col,float rot=0.0f,int num_segments=0,float thickness=1.0f)", + "call_args": "(center,radius_x,radius_y,col,rot,num_segments,thickness)", + "cimguiname": "ImDrawList_AddEllipse", + "defaults": { + "num_segments": "0", + "rot": "0.0f", + "thickness": "1.0f" + }, + "funcname": "AddEllipse", + "location": "imgui:2811", + "ov_cimguiname": "ImDrawList_AddEllipse", + "ret": "void", + "signature": "(const ImVec2,float,float,ImU32,float,int,float)", + "stname": "ImDrawList" + } + ], + "ImDrawList_AddEllipseFilled": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius_x,float radius_y,ImU32 col,float rot,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius_x", + "type": "float" + }, + { + "name": "radius_y", + "type": "float" + }, + { + "name": "col", + "type": "ImU32" + }, + { + "name": "rot", + "type": "float" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius_x,float radius_y,ImU32 col,float rot=0.0f,int num_segments=0)", + "call_args": "(center,radius_x,radius_y,col,rot,num_segments)", + "cimguiname": "ImDrawList_AddEllipseFilled", + "defaults": { + "num_segments": "0", + "rot": "0.0f" + }, + "funcname": "AddEllipseFilled", + "location": "imgui:2812", + "ov_cimguiname": "ImDrawList_AddEllipseFilled", + "ret": "void", + "signature": "(const ImVec2,float,float,ImU32,float,int)", + "stname": "ImDrawList" + } + ], "ImDrawList_AddImage": [ { "args": "(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col)", @@ -1575,7 +1652,7 @@ "uv_min": "ImVec2(0,0)" }, "funcname": "AddImage", - "location": "imgui:2788", + "location": "imgui:2824", "ov_cimguiname": "ImDrawList_AddImage", "ret": "void", "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -1642,7 +1719,7 @@ "uv4": "ImVec2(0,1)" }, "funcname": "AddImageQuad", - "location": "imgui:2789", + "location": "imgui:2825", "ov_cimguiname": "ImDrawList_AddImageQuad", "ret": "void", "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -1697,7 +1774,7 @@ "flags": "0" }, "funcname": "AddImageRounded", - "location": "imgui:2790", + "location": "imgui:2826", "ov_cimguiname": "ImDrawList_AddImageRounded", "ret": "void", "signature": "(ImTextureID,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", @@ -1736,7 +1813,7 @@ "thickness": "1.0f" }, "funcname": "AddLine", - "location": "imgui:2765", + "location": "imgui:2799", "ov_cimguiname": "ImDrawList_AddLine", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,float)", @@ -1779,7 +1856,7 @@ "thickness": "1.0f" }, "funcname": "AddNgon", - "location": "imgui:2775", + "location": "imgui:2809", "ov_cimguiname": "ImDrawList_AddNgon", "ret": "void", "signature": "(const ImVec2,float,ImU32,int,float)", @@ -1816,7 +1893,7 @@ "cimguiname": "ImDrawList_AddNgonFilled", "defaults": {}, "funcname": "AddNgonFilled", - "location": "imgui:2776", + "location": "imgui:2810", "ov_cimguiname": "ImDrawList_AddNgonFilled", "ret": "void", "signature": "(const ImVec2,float,ImU32,int)", @@ -1857,7 +1934,7 @@ "cimguiname": "ImDrawList_AddPolyline", "defaults": {}, "funcname": "AddPolyline", - "location": "imgui:2779", + "location": "imgui:2815", "ov_cimguiname": "ImDrawList_AddPolyline", "ret": "void", "signature": "(const ImVec2*,int,ImU32,ImDrawFlags,float)", @@ -1904,7 +1981,7 @@ "thickness": "1.0f" }, "funcname": "AddQuad", - "location": "imgui:2769", + "location": "imgui:2803", "ov_cimguiname": "ImDrawList_AddQuad", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32,float)", @@ -1945,7 +2022,7 @@ "cimguiname": "ImDrawList_AddQuadFilled", "defaults": {}, "funcname": "AddQuadFilled", - "location": "imgui:2770", + "location": "imgui:2804", "ov_cimguiname": "ImDrawList_AddQuadFilled", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -1995,7 +2072,7 @@ "thickness": "1.0f" }, "funcname": "AddRect", - "location": "imgui:2766", + "location": "imgui:2800", "ov_cimguiname": "ImDrawList_AddRect", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags,float)", @@ -2040,7 +2117,7 @@ "rounding": "0.0f" }, "funcname": "AddRectFilled", - "location": "imgui:2767", + "location": "imgui:2801", "ov_cimguiname": "ImDrawList_AddRectFilled", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,float,ImDrawFlags)", @@ -2085,7 +2162,7 @@ "cimguiname": "ImDrawList_AddRectFilledMultiColor", "defaults": {}, "funcname": "AddRectFilledMultiColor", - "location": "imgui:2768", + "location": "imgui:2802", "ov_cimguiname": "ImDrawList_AddRectFilledMultiColor", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32,ImU32,ImU32,ImU32)", @@ -2124,7 +2201,7 @@ "text_end": "NULL" }, "funcname": "AddText", - "location": "imgui:2777", + "location": "imgui:2813", "ov_cimguiname": "ImDrawList_AddText_Vec2", "ret": "void", "signature": "(const ImVec2,ImU32,const char*,const char*)", @@ -2179,7 +2256,7 @@ "wrap_width": "0.0f" }, "funcname": "AddText", - "location": "imgui:2778", + "location": "imgui:2814", "ov_cimguiname": "ImDrawList_AddText_FontPtr", "ret": "void", "signature": "(const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)", @@ -2222,7 +2299,7 @@ "thickness": "1.0f" }, "funcname": "AddTriangle", - "location": "imgui:2771", + "location": "imgui:2805", "ov_cimguiname": "ImDrawList_AddTriangle", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32,float)", @@ -2259,7 +2336,7 @@ "cimguiname": "ImDrawList_AddTriangleFilled", "defaults": {}, "funcname": "AddTriangleFilled", - "location": "imgui:2772", + "location": "imgui:2806", "ov_cimguiname": "ImDrawList_AddTriangleFilled", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -2280,7 +2357,7 @@ "cimguiname": "ImDrawList_ChannelsMerge", "defaults": {}, "funcname": "ChannelsMerge", - "location": "imgui:2817", + "location": "imgui:2854", "ov_cimguiname": "ImDrawList_ChannelsMerge", "ret": "void", "signature": "()", @@ -2305,7 +2382,7 @@ "cimguiname": "ImDrawList_ChannelsSetCurrent", "defaults": {}, "funcname": "ChannelsSetCurrent", - "location": "imgui:2818", + "location": "imgui:2855", "ov_cimguiname": "ImDrawList_ChannelsSetCurrent", "ret": "void", "signature": "(int)", @@ -2330,7 +2407,7 @@ "cimguiname": "ImDrawList_ChannelsSplit", "defaults": {}, "funcname": "ChannelsSplit", - "location": "imgui:2816", + "location": "imgui:2853", "ov_cimguiname": "ImDrawList_ChannelsSplit", "ret": "void", "signature": "(int)", @@ -2352,7 +2429,7 @@ "comment": "// Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer.", "defaults": {}, "funcname": "CloneOutput", - "location": "imgui:2808", + "location": "imgui:2845", "ov_cimguiname": "ImDrawList_CloneOutput", "ret": "ImDrawList*", "signature": "()const", @@ -2377,7 +2454,7 @@ "cimguiname": "ImDrawList_GetClipRectMax", "defaults": {}, "funcname": "GetClipRectMax", - "location": "imgui:2756", + "location": "imgui:2790", "nonUDT": 1, "ov_cimguiname": "ImDrawList_GetClipRectMax", "ret": "void", @@ -2403,7 +2480,7 @@ "cimguiname": "ImDrawList_GetClipRectMin", "defaults": {}, "funcname": "GetClipRectMin", - "location": "imgui:2755", + "location": "imgui:2789", "nonUDT": 1, "ov_cimguiname": "ImDrawList_GetClipRectMin", "ret": "void", @@ -2426,7 +2503,7 @@ "constructor": true, "defaults": {}, "funcname": "ImDrawList", - "location": "imgui:2747", + "location": "imgui:2781", "ov_cimguiname": "ImDrawList_ImDrawList", "signature": "(ImDrawListSharedData*)", "stname": "ImDrawList" @@ -2468,7 +2545,7 @@ "num_segments": "0" }, "funcname": "PathArcTo", - "location": "imgui:2799", + "location": "imgui:2835", "ov_cimguiname": "ImDrawList_PathArcTo", "ret": "void", "signature": "(const ImVec2,float,float,float,int)", @@ -2506,7 +2583,7 @@ "comment": "// Use precomputed angles for a 12 steps circle", "defaults": {}, "funcname": "PathArcToFast", - "location": "imgui:2800", + "location": "imgui:2836", "ov_cimguiname": "ImDrawList_PathArcToFast", "ret": "void", "signature": "(const ImVec2,float,int,int)", @@ -2546,7 +2623,7 @@ "num_segments": "0" }, "funcname": "PathBezierCubicCurveTo", - "location": "imgui:2801", + "location": "imgui:2838", "ov_cimguiname": "ImDrawList_PathBezierCubicCurveTo", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,int)", @@ -2582,7 +2659,7 @@ "num_segments": "0" }, "funcname": "PathBezierQuadraticCurveTo", - "location": "imgui:2802", + "location": "imgui:2839", "ov_cimguiname": "ImDrawList_PathBezierQuadraticCurveTo", "ret": "void", "signature": "(const ImVec2,const ImVec2,int)", @@ -2603,13 +2680,65 @@ "cimguiname": "ImDrawList_PathClear", "defaults": {}, "funcname": "PathClear", - "location": "imgui:2794", + "location": "imgui:2830", "ov_cimguiname": "ImDrawList_PathClear", "ret": "void", "signature": "()", "stname": "ImDrawList" } ], + "ImDrawList_PathEllipticalArcTo": [ + { + "args": "(ImDrawList* self,const ImVec2 center,float radius_x,float radius_y,float rot,float a_min,float a_max,int num_segments)", + "argsT": [ + { + "name": "self", + "type": "ImDrawList*" + }, + { + "name": "center", + "type": "const ImVec2" + }, + { + "name": "radius_x", + "type": "float" + }, + { + "name": "radius_y", + "type": "float" + }, + { + "name": "rot", + "type": "float" + }, + { + "name": "a_min", + "type": "float" + }, + { + "name": "a_max", + "type": "float" + }, + { + "name": "num_segments", + "type": "int" + } + ], + "argsoriginal": "(const ImVec2& center,float radius_x,float radius_y,float rot,float a_min,float a_max,int num_segments=0)", + "call_args": "(center,radius_x,radius_y,rot,a_min,a_max,num_segments)", + "cimguiname": "ImDrawList_PathEllipticalArcTo", + "comment": "// Ellipse", + "defaults": { + "num_segments": "0" + }, + "funcname": "PathEllipticalArcTo", + "location": "imgui:2837", + "ov_cimguiname": "ImDrawList_PathEllipticalArcTo", + "ret": "void", + "signature": "(const ImVec2,float,float,float,float,float,int)", + "stname": "ImDrawList" + } + ], "ImDrawList_PathFillConvex": [ { "args": "(ImDrawList* self,ImU32 col)", @@ -2628,7 +2757,7 @@ "cimguiname": "ImDrawList_PathFillConvex", "defaults": {}, "funcname": "PathFillConvex", - "location": "imgui:2797", + "location": "imgui:2833", "ov_cimguiname": "ImDrawList_PathFillConvex", "ret": "void", "signature": "(ImU32)", @@ -2653,7 +2782,7 @@ "cimguiname": "ImDrawList_PathLineTo", "defaults": {}, "funcname": "PathLineTo", - "location": "imgui:2795", + "location": "imgui:2831", "ov_cimguiname": "ImDrawList_PathLineTo", "ret": "void", "signature": "(const ImVec2)", @@ -2678,7 +2807,7 @@ "cimguiname": "ImDrawList_PathLineToMergeDuplicate", "defaults": {}, "funcname": "PathLineToMergeDuplicate", - "location": "imgui:2796", + "location": "imgui:2832", "ov_cimguiname": "ImDrawList_PathLineToMergeDuplicate", "ret": "void", "signature": "(const ImVec2)", @@ -2718,7 +2847,7 @@ "rounding": "0.0f" }, "funcname": "PathRect", - "location": "imgui:2803", + "location": "imgui:2840", "ov_cimguiname": "ImDrawList_PathRect", "ret": "void", "signature": "(const ImVec2,const ImVec2,float,ImDrawFlags)", @@ -2754,7 +2883,7 @@ "thickness": "1.0f" }, "funcname": "PathStroke", - "location": "imgui:2798", + "location": "imgui:2834", "ov_cimguiname": "ImDrawList_PathStroke", "ret": "void", "signature": "(ImU32,ImDrawFlags,float)", @@ -2775,7 +2904,7 @@ "cimguiname": "ImDrawList_PopClipRect", "defaults": {}, "funcname": "PopClipRect", - "location": "imgui:2752", + "location": "imgui:2786", "ov_cimguiname": "ImDrawList_PopClipRect", "ret": "void", "signature": "()", @@ -2796,7 +2925,7 @@ "cimguiname": "ImDrawList_PopTextureID", "defaults": {}, "funcname": "PopTextureID", - "location": "imgui:2754", + "location": "imgui:2788", "ov_cimguiname": "ImDrawList_PopTextureID", "ret": "void", "signature": "()", @@ -2853,7 +2982,7 @@ "cimguiname": "ImDrawList_PrimQuadUV", "defaults": {}, "funcname": "PrimQuadUV", - "location": "imgui:2827", + "location": "imgui:2864", "ov_cimguiname": "ImDrawList_PrimQuadUV", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -2887,7 +3016,7 @@ "comment": "// Axis aligned rectangle (composed of two triangles)", "defaults": {}, "funcname": "PrimRect", - "location": "imgui:2825", + "location": "imgui:2862", "ov_cimguiname": "ImDrawList_PrimRect", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32)", @@ -2928,7 +3057,7 @@ "cimguiname": "ImDrawList_PrimRectUV", "defaults": {}, "funcname": "PrimRectUV", - "location": "imgui:2826", + "location": "imgui:2863", "ov_cimguiname": "ImDrawList_PrimRectUV", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,ImU32)", @@ -2957,7 +3086,7 @@ "cimguiname": "ImDrawList_PrimReserve", "defaults": {}, "funcname": "PrimReserve", - "location": "imgui:2823", + "location": "imgui:2860", "ov_cimguiname": "ImDrawList_PrimReserve", "ret": "void", "signature": "(int,int)", @@ -2986,7 +3115,7 @@ "cimguiname": "ImDrawList_PrimUnreserve", "defaults": {}, "funcname": "PrimUnreserve", - "location": "imgui:2824", + "location": "imgui:2861", "ov_cimguiname": "ImDrawList_PrimUnreserve", "ret": "void", "signature": "(int,int)", @@ -3020,7 +3149,7 @@ "comment": "// Write vertex with unique index", "defaults": {}, "funcname": "PrimVtx", - "location": "imgui:2830", + "location": "imgui:2867", "ov_cimguiname": "ImDrawList_PrimVtx", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32)", @@ -3045,7 +3174,7 @@ "cimguiname": "ImDrawList_PrimWriteIdx", "defaults": {}, "funcname": "PrimWriteIdx", - "location": "imgui:2829", + "location": "imgui:2866", "ov_cimguiname": "ImDrawList_PrimWriteIdx", "ret": "void", "signature": "(ImDrawIdx)", @@ -3078,7 +3207,7 @@ "cimguiname": "ImDrawList_PrimWriteVtx", "defaults": {}, "funcname": "PrimWriteVtx", - "location": "imgui:2828", + "location": "imgui:2865", "ov_cimguiname": "ImDrawList_PrimWriteVtx", "ret": "void", "signature": "(const ImVec2,const ImVec2,ImU32)", @@ -3114,7 +3243,7 @@ "intersect_with_current_clip_rect": "false" }, "funcname": "PushClipRect", - "location": "imgui:2750", + "location": "imgui:2784", "ov_cimguiname": "ImDrawList_PushClipRect", "ret": "void", "signature": "(const ImVec2,const ImVec2,bool)", @@ -3135,7 +3264,7 @@ "cimguiname": "ImDrawList_PushClipRectFullScreen", "defaults": {}, "funcname": "PushClipRectFullScreen", - "location": "imgui:2751", + "location": "imgui:2785", "ov_cimguiname": "ImDrawList_PushClipRectFullScreen", "ret": "void", "signature": "()", @@ -3160,7 +3289,7 @@ "cimguiname": "ImDrawList_PushTextureID", "defaults": {}, "funcname": "PushTextureID", - "location": "imgui:2753", + "location": "imgui:2787", "ov_cimguiname": "ImDrawList_PushTextureID", "ret": "void", "signature": "(ImTextureID)", @@ -3185,7 +3314,7 @@ "cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", "defaults": {}, "funcname": "_CalcCircleAutoSegmentCount", - "location": "imgui:2844", + "location": "imgui:2881", "ov_cimguiname": "ImDrawList__CalcCircleAutoSegmentCount", "ret": "int", "signature": "(float)const", @@ -3206,7 +3335,7 @@ "cimguiname": "ImDrawList__ClearFreeMemory", "defaults": {}, "funcname": "_ClearFreeMemory", - "location": "imgui:2838", + "location": "imgui:2875", "ov_cimguiname": "ImDrawList__ClearFreeMemory", "ret": "void", "signature": "()", @@ -3227,7 +3356,7 @@ "cimguiname": "ImDrawList__OnChangedClipRect", "defaults": {}, "funcname": "_OnChangedClipRect", - "location": "imgui:2841", + "location": "imgui:2878", "ov_cimguiname": "ImDrawList__OnChangedClipRect", "ret": "void", "signature": "()", @@ -3248,7 +3377,7 @@ "cimguiname": "ImDrawList__OnChangedTextureID", "defaults": {}, "funcname": "_OnChangedTextureID", - "location": "imgui:2842", + "location": "imgui:2879", "ov_cimguiname": "ImDrawList__OnChangedTextureID", "ret": "void", "signature": "()", @@ -3269,7 +3398,7 @@ "cimguiname": "ImDrawList__OnChangedVtxOffset", "defaults": {}, "funcname": "_OnChangedVtxOffset", - "location": "imgui:2843", + "location": "imgui:2880", "ov_cimguiname": "ImDrawList__OnChangedVtxOffset", "ret": "void", "signature": "()", @@ -3310,7 +3439,7 @@ "cimguiname": "ImDrawList__PathArcToFastEx", "defaults": {}, "funcname": "_PathArcToFastEx", - "location": "imgui:2845", + "location": "imgui:2882", "ov_cimguiname": "ImDrawList__PathArcToFastEx", "ret": "void", "signature": "(const ImVec2,float,int,int,int)", @@ -3351,7 +3480,7 @@ "cimguiname": "ImDrawList__PathArcToN", "defaults": {}, "funcname": "_PathArcToN", - "location": "imgui:2846", + "location": "imgui:2883", "ov_cimguiname": "ImDrawList__PathArcToN", "ret": "void", "signature": "(const ImVec2,float,float,float,int)", @@ -3372,7 +3501,7 @@ "cimguiname": "ImDrawList__PopUnusedDrawCmd", "defaults": {}, "funcname": "_PopUnusedDrawCmd", - "location": "imgui:2839", + "location": "imgui:2876", "ov_cimguiname": "ImDrawList__PopUnusedDrawCmd", "ret": "void", "signature": "()", @@ -3393,7 +3522,7 @@ "cimguiname": "ImDrawList__ResetForNewFrame", "defaults": {}, "funcname": "_ResetForNewFrame", - "location": "imgui:2837", + "location": "imgui:2874", "ov_cimguiname": "ImDrawList__ResetForNewFrame", "ret": "void", "signature": "()", @@ -3414,7 +3543,7 @@ "cimguiname": "ImDrawList__TryMergeDrawCmds", "defaults": {}, "funcname": "_TryMergeDrawCmds", - "location": "imgui:2840", + "location": "imgui:2877", "ov_cimguiname": "ImDrawList__TryMergeDrawCmds", "ret": "void", "signature": "()", @@ -3434,7 +3563,7 @@ "cimguiname": "ImDrawList_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2749", + "location": "imgui:2783", "ov_cimguiname": "ImDrawList_destroy", "realdestructor": true, "ret": "void", @@ -3452,7 +3581,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontAtlasCustomRect", - "location": "imgui:2939", + "location": "imgui:2977", "ov_cimguiname": "ImFontAtlasCustomRect_ImFontAtlasCustomRect", "signature": "()", "stname": "ImFontAtlasCustomRect" @@ -3472,7 +3601,7 @@ "cimguiname": "ImFontAtlasCustomRect_IsPacked", "defaults": {}, "funcname": "IsPacked", - "location": "imgui:2940", + "location": "imgui:2978", "ov_cimguiname": "ImFontAtlasCustomRect_IsPacked", "ret": "bool", "signature": "()const", @@ -3538,7 +3667,7 @@ "offset": "ImVec2(0,0)" }, "funcname": "AddCustomRectFontGlyph", - "location": "imgui:3025", + "location": "imgui:3063", "ov_cimguiname": "ImFontAtlas_AddCustomRectFontGlyph", "ret": "int", "signature": "(ImFont*,ImWchar,int,int,float,const ImVec2)", @@ -3567,7 +3696,7 @@ "cimguiname": "ImFontAtlas_AddCustomRectRegular", "defaults": {}, "funcname": "AddCustomRectRegular", - "location": "imgui:3024", + "location": "imgui:3062", "ov_cimguiname": "ImFontAtlas_AddCustomRectRegular", "ret": "int", "signature": "(int,int)", @@ -3592,7 +3721,7 @@ "cimguiname": "ImFontAtlas_AddFont", "defaults": {}, "funcname": "AddFont", - "location": "imgui:2973", + "location": "imgui:3011", "ov_cimguiname": "ImFontAtlas_AddFont", "ret": "ImFont*", "signature": "(const ImFontConfig*)", @@ -3619,7 +3748,7 @@ "font_cfg": "NULL" }, "funcname": "AddFontDefault", - "location": "imgui:2974", + "location": "imgui:3012", "ov_cimguiname": "ImFontAtlas_AddFontDefault", "ret": "ImFont*", "signature": "(const ImFontConfig*)", @@ -3659,7 +3788,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromFileTTF", - "location": "imgui:2975", + "location": "imgui:3013", "ov_cimguiname": "ImFontAtlas_AddFontFromFileTTF", "ret": "ImFont*", "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", @@ -3700,7 +3829,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromMemoryCompressedBase85TTF", - "location": "imgui:2978", + "location": "imgui:3016", "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedBase85TTF", "ret": "ImFont*", "signature": "(const char*,float,const ImFontConfig*,const ImWchar*)", @@ -3709,7 +3838,7 @@ ], "ImFontAtlas_AddFontFromMemoryCompressedTTF": [ { - "args": "(ImFontAtlas* self,const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "args": "(ImFontAtlas* self,const void* compressed_font_data,int compressed_font_data_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", "argsT": [ { "name": "self", @@ -3720,7 +3849,7 @@ "type": "const void*" }, { - "name": "compressed_font_size", + "name": "compressed_font_data_size", "type": "int" }, { @@ -3736,8 +3865,8 @@ "type": "const ImWchar*" } ], - "argsoriginal": "(const void* compressed_font_data,int compressed_font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", - "call_args": "(compressed_font_data,compressed_font_size,size_pixels,font_cfg,glyph_ranges)", + "argsoriginal": "(const void* compressed_font_data,int compressed_font_data_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(compressed_font_data,compressed_font_data_size,size_pixels,font_cfg,glyph_ranges)", "cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", "comment": "// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp.", "defaults": { @@ -3745,7 +3874,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromMemoryCompressedTTF", - "location": "imgui:2977", + "location": "imgui:3015", "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryCompressedTTF", "ret": "ImFont*", "signature": "(const void*,int,float,const ImFontConfig*,const ImWchar*)", @@ -3754,7 +3883,7 @@ ], "ImFontAtlas_AddFontFromMemoryTTF": [ { - "args": "(ImFontAtlas* self,void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", + "args": "(ImFontAtlas* self,void* font_data,int font_data_size,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges)", "argsT": [ { "name": "self", @@ -3765,7 +3894,7 @@ "type": "void*" }, { - "name": "font_size", + "name": "font_data_size", "type": "int" }, { @@ -3781,8 +3910,8 @@ "type": "const ImWchar*" } ], - "argsoriginal": "(void* font_data,int font_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", - "call_args": "(font_data,font_size,size_pixels,font_cfg,glyph_ranges)", + "argsoriginal": "(void* font_data,int font_data_size,float size_pixels,const ImFontConfig* font_cfg=((void*)0),const ImWchar* glyph_ranges=((void*)0))", + "call_args": "(font_data,font_data_size,size_pixels,font_cfg,glyph_ranges)", "cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", "comment": "// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed.", "defaults": { @@ -3790,7 +3919,7 @@ "glyph_ranges": "NULL" }, "funcname": "AddFontFromMemoryTTF", - "location": "imgui:2976", + "location": "imgui:3014", "ov_cimguiname": "ImFontAtlas_AddFontFromMemoryTTF", "ret": "ImFont*", "signature": "(void*,int,float,const ImFontConfig*,const ImWchar*)", @@ -3812,7 +3941,7 @@ "comment": "// Build pixels data. This is called automatically for you by the GetTexData*** functions.", "defaults": {}, "funcname": "Build", - "location": "imgui:2989", + "location": "imgui:3027", "ov_cimguiname": "ImFontAtlas_Build", "ret": "bool", "signature": "()", @@ -3845,7 +3974,7 @@ "cimguiname": "ImFontAtlas_CalcCustomRectUV", "defaults": {}, "funcname": "CalcCustomRectUV", - "location": "imgui:3029", + "location": "imgui:3067", "ov_cimguiname": "ImFontAtlas_CalcCustomRectUV", "ret": "void", "signature": "(const ImFontAtlasCustomRect*,ImVec2*,ImVec2*)const", @@ -3867,7 +3996,7 @@ "comment": "// Clear all input and output.", "defaults": {}, "funcname": "Clear", - "location": "imgui:2982", + "location": "imgui:3020", "ov_cimguiname": "ImFontAtlas_Clear", "ret": "void", "signature": "()", @@ -3889,7 +4018,7 @@ "comment": "// Clear output font data (glyphs storage, UV coordinates).", "defaults": {}, "funcname": "ClearFonts", - "location": "imgui:2981", + "location": "imgui:3019", "ov_cimguiname": "ImFontAtlas_ClearFonts", "ret": "void", "signature": "()", @@ -3911,7 +4040,7 @@ "comment": "// Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts.", "defaults": {}, "funcname": "ClearInputData", - "location": "imgui:2979", + "location": "imgui:3017", "ov_cimguiname": "ImFontAtlas_ClearInputData", "ret": "void", "signature": "()", @@ -3933,7 +4062,7 @@ "comment": "// Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory.", "defaults": {}, "funcname": "ClearTexData", - "location": "imgui:2980", + "location": "imgui:3018", "ov_cimguiname": "ImFontAtlas_ClearTexData", "ret": "void", "signature": "()", @@ -3958,7 +4087,7 @@ "cimguiname": "ImFontAtlas_GetCustomRectByIndex", "defaults": {}, "funcname": "GetCustomRectByIndex", - "location": "imgui:3026", + "location": "imgui:3064", "ov_cimguiname": "ImFontAtlas_GetCustomRectByIndex", "ret": "ImFontAtlasCustomRect*", "signature": "(int)", @@ -3980,7 +4109,7 @@ "comment": "// Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs", "defaults": {}, "funcname": "GetGlyphRangesChineseFull", - "location": "imgui:3007", + "location": "imgui:3045", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseFull", "ret": "const ImWchar*", "signature": "()", @@ -4002,7 +4131,7 @@ "comment": "// Default + Half-Width + Japanese Hiragana/Katakana + set of 2500 CJK Unified Ideographs for common simplified Chinese", "defaults": {}, "funcname": "GetGlyphRangesChineseSimplifiedCommon", - "location": "imgui:3008", + "location": "imgui:3046", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon", "ret": "const ImWchar*", "signature": "()", @@ -4024,7 +4153,7 @@ "comment": "// Default + about 400 Cyrillic characters", "defaults": {}, "funcname": "GetGlyphRangesCyrillic", - "location": "imgui:3009", + "location": "imgui:3047", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesCyrillic", "ret": "const ImWchar*", "signature": "()", @@ -4046,7 +4175,7 @@ "comment": "// Basic Latin, Extended Latin", "defaults": {}, "funcname": "GetGlyphRangesDefault", - "location": "imgui:3003", + "location": "imgui:3041", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesDefault", "ret": "const ImWchar*", "signature": "()", @@ -4068,7 +4197,7 @@ "comment": "// Default + Greek and Coptic", "defaults": {}, "funcname": "GetGlyphRangesGreek", - "location": "imgui:3004", + "location": "imgui:3042", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesGreek", "ret": "const ImWchar*", "signature": "()", @@ -4090,7 +4219,7 @@ "comment": "// Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs", "defaults": {}, "funcname": "GetGlyphRangesJapanese", - "location": "imgui:3006", + "location": "imgui:3044", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesJapanese", "ret": "const ImWchar*", "signature": "()", @@ -4112,7 +4241,7 @@ "comment": "// Default + Korean characters", "defaults": {}, "funcname": "GetGlyphRangesKorean", - "location": "imgui:3005", + "location": "imgui:3043", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesKorean", "ret": "const ImWchar*", "signature": "()", @@ -4134,7 +4263,7 @@ "comment": "// Default + Thai characters", "defaults": {}, "funcname": "GetGlyphRangesThai", - "location": "imgui:3010", + "location": "imgui:3048", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesThai", "ret": "const ImWchar*", "signature": "()", @@ -4156,7 +4285,7 @@ "comment": "// Default + Vietnamese characters", "defaults": {}, "funcname": "GetGlyphRangesVietnamese", - "location": "imgui:3011", + "location": "imgui:3049", "ov_cimguiname": "ImFontAtlas_GetGlyphRangesVietnamese", "ret": "const ImWchar*", "signature": "()", @@ -4197,7 +4326,7 @@ "cimguiname": "ImFontAtlas_GetMouseCursorTexData", "defaults": {}, "funcname": "GetMouseCursorTexData", - "location": "imgui:3030", + "location": "imgui:3068", "ov_cimguiname": "ImFontAtlas_GetMouseCursorTexData", "ret": "bool", "signature": "(ImGuiMouseCursor,ImVec2*,ImVec2*,ImVec2[2],ImVec2[2])", @@ -4237,7 +4366,7 @@ "out_bytes_per_pixel": "NULL" }, "funcname": "GetTexDataAsAlpha8", - "location": "imgui:2990", + "location": "imgui:3028", "ov_cimguiname": "ImFontAtlas_GetTexDataAsAlpha8", "ret": "void", "signature": "(unsigned char**,int*,int*,int*)", @@ -4277,7 +4406,7 @@ "out_bytes_per_pixel": "NULL" }, "funcname": "GetTexDataAsRGBA32", - "location": "imgui:2991", + "location": "imgui:3029", "ov_cimguiname": "ImFontAtlas_GetTexDataAsRGBA32", "ret": "void", "signature": "(unsigned char**,int*,int*,int*)", @@ -4294,7 +4423,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontAtlas", - "location": "imgui:2971", + "location": "imgui:3009", "ov_cimguiname": "ImFontAtlas_ImFontAtlas", "signature": "()", "stname": "ImFontAtlas" @@ -4315,7 +4444,7 @@ "comment": "// Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent...", "defaults": {}, "funcname": "IsBuilt", - "location": "imgui:2992", + "location": "imgui:3030", "ov_cimguiname": "ImFontAtlas_IsBuilt", "ret": "bool", "signature": "()const", @@ -4340,7 +4469,7 @@ "cimguiname": "ImFontAtlas_SetTexID", "defaults": {}, "funcname": "SetTexID", - "location": "imgui:2993", + "location": "imgui:3031", "ov_cimguiname": "ImFontAtlas_SetTexID", "ret": "void", "signature": "(ImTextureID)", @@ -4360,7 +4489,7 @@ "cimguiname": "ImFontAtlas_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2972", + "location": "imgui:3010", "ov_cimguiname": "ImFontAtlas_destroy", "realdestructor": true, "ret": "void", @@ -4378,7 +4507,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontConfig", - "location": "imgui:2899", + "location": "imgui:2937", "ov_cimguiname": "ImFontConfig_ImFontConfig", "signature": "()", "stname": "ImFontConfig" @@ -4422,7 +4551,7 @@ "comment": "// Add character", "defaults": {}, "funcname": "AddChar", - "location": "imgui:2924", + "location": "imgui:2962", "ov_cimguiname": "ImFontGlyphRangesBuilder_AddChar", "ret": "void", "signature": "(ImWchar)", @@ -4448,7 +4577,7 @@ "comment": "// Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext", "defaults": {}, "funcname": "AddRanges", - "location": "imgui:2926", + "location": "imgui:2964", "ov_cimguiname": "ImFontGlyphRangesBuilder_AddRanges", "ret": "void", "signature": "(const ImWchar*)", @@ -4480,7 +4609,7 @@ "text_end": "NULL" }, "funcname": "AddText", - "location": "imgui:2925", + "location": "imgui:2963", "ov_cimguiname": "ImFontGlyphRangesBuilder_AddText", "ret": "void", "signature": "(const char*,const char*)", @@ -4506,7 +4635,7 @@ "comment": "// Output new ranges", "defaults": {}, "funcname": "BuildRanges", - "location": "imgui:2927", + "location": "imgui:2965", "ov_cimguiname": "ImFontGlyphRangesBuilder_BuildRanges", "ret": "void", "signature": "(ImVector_ImWchar*)", @@ -4527,7 +4656,7 @@ "cimguiname": "ImFontGlyphRangesBuilder_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2921", + "location": "imgui:2959", "ov_cimguiname": "ImFontGlyphRangesBuilder_Clear", "ret": "void", "signature": "()", @@ -4553,7 +4682,7 @@ "comment": "// Get bit n in the array", "defaults": {}, "funcname": "GetBit", - "location": "imgui:2922", + "location": "imgui:2960", "ov_cimguiname": "ImFontGlyphRangesBuilder_GetBit", "ret": "bool", "signature": "(size_t)const", @@ -4570,7 +4699,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFontGlyphRangesBuilder", - "location": "imgui:2920", + "location": "imgui:2958", "ov_cimguiname": "ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder", "signature": "()", "stname": "ImFontGlyphRangesBuilder" @@ -4595,7 +4724,7 @@ "comment": "// Set bit n in the array", "defaults": {}, "funcname": "SetBit", - "location": "imgui:2923", + "location": "imgui:2961", "ov_cimguiname": "ImFontGlyphRangesBuilder_SetBit", "ret": "void", "signature": "(size_t)", @@ -4679,7 +4808,7 @@ "cimguiname": "ImFont_AddGlyph", "defaults": {}, "funcname": "AddGlyph", - "location": "imgui:3120", + "location": "imgui:3158", "ov_cimguiname": "ImFont_AddGlyph", "ret": "void", "signature": "(const ImFontConfig*,ImWchar,float,float,float,float,float,float,float,float,float)", @@ -4715,7 +4844,7 @@ "overwrite_dst": "true" }, "funcname": "AddRemapChar", - "location": "imgui:3121", + "location": "imgui:3159", "ov_cimguiname": "ImFont_AddRemapChar", "ret": "void", "signature": "(ImWchar,ImWchar,bool)", @@ -4736,7 +4865,7 @@ "cimguiname": "ImFont_BuildLookupTable", "defaults": {}, "funcname": "BuildLookupTable", - "location": "imgui:3117", + "location": "imgui:3155", "ov_cimguiname": "ImFont_BuildLookupTable", "ret": "void", "signature": "()", @@ -4789,7 +4918,7 @@ "text_end": "NULL" }, "funcname": "CalcTextSizeA", - "location": "imgui:3111", + "location": "imgui:3149", "nonUDT": 1, "ov_cimguiname": "ImFont_CalcTextSizeA", "ret": "void", @@ -4827,7 +4956,7 @@ "cimguiname": "ImFont_CalcWordWrapPositionA", "defaults": {}, "funcname": "CalcWordWrapPositionA", - "location": "imgui:3112", + "location": "imgui:3150", "ov_cimguiname": "ImFont_CalcWordWrapPositionA", "ret": "const char*", "signature": "(float,const char*,const char*,float)const", @@ -4848,7 +4977,7 @@ "cimguiname": "ImFont_ClearOutputData", "defaults": {}, "funcname": "ClearOutputData", - "location": "imgui:3118", + "location": "imgui:3156", "ov_cimguiname": "ImFont_ClearOutputData", "ret": "void", "signature": "()", @@ -4873,7 +5002,7 @@ "cimguiname": "ImFont_FindGlyph", "defaults": {}, "funcname": "FindGlyph", - "location": "imgui:3103", + "location": "imgui:3141", "ov_cimguiname": "ImFont_FindGlyph", "ret": "const ImFontGlyph*", "signature": "(ImWchar)const", @@ -4898,7 +5027,7 @@ "cimguiname": "ImFont_FindGlyphNoFallback", "defaults": {}, "funcname": "FindGlyphNoFallback", - "location": "imgui:3104", + "location": "imgui:3142", "ov_cimguiname": "ImFont_FindGlyphNoFallback", "ret": "const ImFontGlyph*", "signature": "(ImWchar)const", @@ -4923,7 +5052,7 @@ "cimguiname": "ImFont_GetCharAdvance", "defaults": {}, "funcname": "GetCharAdvance", - "location": "imgui:3105", + "location": "imgui:3143", "ov_cimguiname": "ImFont_GetCharAdvance", "ret": "float", "signature": "(ImWchar)const", @@ -4944,7 +5073,7 @@ "cimguiname": "ImFont_GetDebugName", "defaults": {}, "funcname": "GetDebugName", - "location": "imgui:3107", + "location": "imgui:3145", "ov_cimguiname": "ImFont_GetDebugName", "ret": "const char*", "signature": "()const", @@ -4969,7 +5098,7 @@ "cimguiname": "ImFont_GrowIndex", "defaults": {}, "funcname": "GrowIndex", - "location": "imgui:3119", + "location": "imgui:3157", "ov_cimguiname": "ImFont_GrowIndex", "ret": "void", "signature": "(int)", @@ -4986,7 +5115,7 @@ "constructor": true, "defaults": {}, "funcname": "ImFont", - "location": "imgui:3101", + "location": "imgui:3139", "ov_cimguiname": "ImFont_ImFont", "signature": "()", "stname": "ImFont" @@ -5014,7 +5143,7 @@ "cimguiname": "ImFont_IsGlyphRangeUnused", "defaults": {}, "funcname": "IsGlyphRangeUnused", - "location": "imgui:3123", + "location": "imgui:3161", "ov_cimguiname": "ImFont_IsGlyphRangeUnused", "ret": "bool", "signature": "(unsigned int,unsigned int)", @@ -5035,7 +5164,7 @@ "cimguiname": "ImFont_IsLoaded", "defaults": {}, "funcname": "IsLoaded", - "location": "imgui:3106", + "location": "imgui:3144", "ov_cimguiname": "ImFont_IsLoaded", "ret": "bool", "signature": "()const", @@ -5076,7 +5205,7 @@ "cimguiname": "ImFont_RenderChar", "defaults": {}, "funcname": "RenderChar", - "location": "imgui:3113", + "location": "imgui:3151", "ov_cimguiname": "ImFont_RenderChar", "ret": "void", "signature": "(ImDrawList*,float,const ImVec2,ImU32,ImWchar)const", @@ -5136,7 +5265,7 @@ "wrap_width": "0.0f" }, "funcname": "RenderText", - "location": "imgui:3114", + "location": "imgui:3152", "ov_cimguiname": "ImFont_RenderText", "ret": "void", "signature": "(ImDrawList*,float,const ImVec2,ImU32,const ImVec4,const char*,const char*,float,bool)const", @@ -5165,7 +5294,7 @@ "cimguiname": "ImFont_SetGlyphVisible", "defaults": {}, "funcname": "SetGlyphVisible", - "location": "imgui:3122", + "location": "imgui:3160", "ov_cimguiname": "ImFont_SetGlyphVisible", "ret": "void", "signature": "(ImWchar,bool)", @@ -5185,7 +5314,7 @@ "cimguiname": "ImFont_destroy", "defaults": {}, "destructor": true, - "location": "imgui:3102", + "location": "imgui:3140", "ov_cimguiname": "ImFont_destroy", "realdestructor": true, "ret": "void", @@ -5203,7 +5332,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiComboPreviewData", - "location": "imgui_internal:1048", + "location": "imgui_internal:1062", "ov_cimguiname": "ImGuiComboPreviewData_ImGuiComboPreviewData", "signature": "()", "stname": "ImGuiComboPreviewData" @@ -5238,7 +5367,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiContextHook", - "location": "imgui_internal:1940", + "location": "imgui_internal:2036", "ov_cimguiname": "ImGuiContextHook_ImGuiContextHook", "signature": "()", "stname": "ImGuiContextHook" @@ -5275,11 +5404,11 @@ "argsoriginal": "(ImFontAtlas* shared_font_atlas)", "call_args": "(shared_font_atlas)", "cimguiname": "ImGuiContext_ImGuiContext", - "comment": " // Different to ensure initial submission\n PlatformImeViewport = 0;\n PlatformLocaleDecimalPoint = '.';\n\n DockNodeWindowMenuHandler = ((void *)0) ;\n\n SettingsLoaded = false;\n SettingsDirtyTimer = 0.0f;\n HookIdNext = 0;\n\n memset(LocalizationTable, 0, sizeof(LocalizationTable));\n\n LogEnabled = false;\n LogType = ImGuiLogType_None;\n LogNextPrefix = LogNextSuffix = ((void *)0) ;\n LogFile = ((void *)0) ;\n LogLinePosY = 3.40282346638528859811704183484516925e+38F;\n LogLineFirstItem = false;\n LogDepthRef = 0;\n LogDepthToExpand = LogDepthToExpandDefault = 2;\n\n DebugLogFlags = ImGuiDebugLogFlags_OutputToTTY;\n DebugLocateId = 0;\n DebugLogClipperAutoDisableFrames = 0;\n DebugLocateFrames = 0;\n DebugBeginReturnValueCullDepth = -1;\n DebugItemPickerActive = false;\n DebugItemPickerMouseButton = ImGuiMouseButton_Left;\n DebugItemPickerBreakId = 0;\n DebugHoveredDockNode = ((void *)0) ;\n\n memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame));\n FramerateSecPerFrameIdx = FramerateSecPerFrameCount = 0;\n FramerateSecPerFrameAccum = 0.0f;\n WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1;\n }", + "comment": " // Different to ensure initial submission\n PlatformImeViewport = 0;\n\n DockNodeWindowMenuHandler = ((void *)0) ;\n\n SettingsLoaded = false;\n SettingsDirtyTimer = 0.0f;\n HookIdNext = 0;\n\n memset(LocalizationTable, 0, sizeof(LocalizationTable));\n\n LogEnabled = false;\n LogType = ImGuiLogType_None;\n LogNextPrefix = LogNextSuffix = ((void *)0) ;\n LogFile = ((void *)0) ;\n LogLinePosY = 3.40282346638528859811704183484516925e+38F;\n LogLineFirstItem = false;\n LogDepthRef = 0;\n LogDepthToExpand = LogDepthToExpandDefault = 2;\n\n DebugLogFlags = ImGuiDebugLogFlags_OutputToTTY;\n DebugLocateId = 0;\n DebugLogClipperAutoDisableFrames = 0;\n DebugLocateFrames = 0;\n DebugBeginReturnValueCullDepth = -1;\n DebugItemPickerActive = false;\n DebugItemPickerMouseButton = ImGuiMouseButton_Left;\n DebugItemPickerBreakId = 0;\n DebugHoveredDockNode = ((void *)0) ;\n\n memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame));\n FramerateSecPerFrameIdx = FramerateSecPerFrameCount = 0;\n FramerateSecPerFrameAccum = 0.0f;\n WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1;\n }", "constructor": true, "defaults": {}, "funcname": "ImGuiContext", - "location": "imgui_internal:2264", + "location": "imgui_internal:2366", "ov_cimguiname": "ImGuiContext_ImGuiContext", "signature": "(ImFontAtlas*)", "stname": "ImGuiContext" @@ -5322,13 +5451,48 @@ "cimguiname": "ImGuiDataVarInfo_GetVarPtr", "defaults": {}, "funcname": "GetVarPtr", - "location": "imgui_internal:996", + "location": "imgui_internal:1010", "ov_cimguiname": "ImGuiDataVarInfo_GetVarPtr", "ret": "void*", "signature": "(void*)const", "stname": "ImGuiDataVarInfo" } ], + "ImGuiDebugAllocInfo_ImGuiDebugAllocInfo": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiDebugAllocInfo_ImGuiDebugAllocInfo", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiDebugAllocInfo", + "location": "imgui_internal:1979", + "ov_cimguiname": "ImGuiDebugAllocInfo_ImGuiDebugAllocInfo", + "signature": "()", + "stname": "ImGuiDebugAllocInfo" + } + ], + "ImGuiDebugAllocInfo_destroy": [ + { + "args": "(ImGuiDebugAllocInfo* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiDebugAllocInfo*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiDebugAllocInfo_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiDebugAllocInfo_destroy", + "ret": "void", + "signature": "(ImGuiDebugAllocInfo*)", + "stname": "ImGuiDebugAllocInfo" + } + ], "ImGuiDockContext_ImGuiDockContext": [ { "args": "()", @@ -5339,7 +5503,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiDockContext", - "location": "imgui_internal:1749", + "location": "imgui_internal:1825", "ov_cimguiname": "ImGuiDockContext_ImGuiDockContext", "signature": "()", "stname": "ImGuiDockContext" @@ -5379,7 +5543,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiDockNode", - "location": "imgui_internal:1706", + "location": "imgui_internal:1782", "ov_cimguiname": "ImGuiDockNode_ImGuiDockNode", "signature": "(ImGuiID)", "stname": "ImGuiDockNode" @@ -5399,7 +5563,7 @@ "cimguiname": "ImGuiDockNode_IsCentralNode", "defaults": {}, "funcname": "IsCentralNode", - "location": "imgui_internal:1711", + "location": "imgui_internal:1787", "ov_cimguiname": "ImGuiDockNode_IsCentralNode", "ret": "bool", "signature": "()const", @@ -5420,7 +5584,7 @@ "cimguiname": "ImGuiDockNode_IsDockSpace", "defaults": {}, "funcname": "IsDockSpace", - "location": "imgui_internal:1709", + "location": "imgui_internal:1785", "ov_cimguiname": "ImGuiDockNode_IsDockSpace", "ret": "bool", "signature": "()const", @@ -5441,7 +5605,7 @@ "cimguiname": "ImGuiDockNode_IsEmpty", "defaults": {}, "funcname": "IsEmpty", - "location": "imgui_internal:1716", + "location": "imgui_internal:1792", "ov_cimguiname": "ImGuiDockNode_IsEmpty", "ret": "bool", "signature": "()const", @@ -5462,7 +5626,7 @@ "cimguiname": "ImGuiDockNode_IsFloatingNode", "defaults": {}, "funcname": "IsFloatingNode", - "location": "imgui_internal:1710", + "location": "imgui_internal:1786", "ov_cimguiname": "ImGuiDockNode_IsFloatingNode", "ret": "bool", "signature": "()const", @@ -5484,7 +5648,7 @@ "comment": "// Hidden tab bar can be shown back by clicking the small triangle", "defaults": {}, "funcname": "IsHiddenTabBar", - "location": "imgui_internal:1712", + "location": "imgui_internal:1788", "ov_cimguiname": "ImGuiDockNode_IsHiddenTabBar", "ret": "bool", "signature": "()const", @@ -5505,7 +5669,7 @@ "cimguiname": "ImGuiDockNode_IsLeafNode", "defaults": {}, "funcname": "IsLeafNode", - "location": "imgui_internal:1715", + "location": "imgui_internal:1791", "ov_cimguiname": "ImGuiDockNode_IsLeafNode", "ret": "bool", "signature": "()const", @@ -5527,7 +5691,7 @@ "comment": "// Never show a tab bar", "defaults": {}, "funcname": "IsNoTabBar", - "location": "imgui_internal:1713", + "location": "imgui_internal:1789", "ov_cimguiname": "ImGuiDockNode_IsNoTabBar", "ret": "bool", "signature": "()const", @@ -5548,7 +5712,7 @@ "cimguiname": "ImGuiDockNode_IsRootNode", "defaults": {}, "funcname": "IsRootNode", - "location": "imgui_internal:1708", + "location": "imgui_internal:1784", "ov_cimguiname": "ImGuiDockNode_IsRootNode", "ret": "bool", "signature": "()const", @@ -5569,7 +5733,7 @@ "cimguiname": "ImGuiDockNode_IsSplitNode", "defaults": {}, "funcname": "IsSplitNode", - "location": "imgui_internal:1714", + "location": "imgui_internal:1790", "ov_cimguiname": "ImGuiDockNode_IsSplitNode", "ret": "bool", "signature": "()const", @@ -5594,7 +5758,7 @@ "cimguiname": "ImGuiDockNode_Rect", "defaults": {}, "funcname": "Rect", - "location": "imgui_internal:1717", + "location": "imgui_internal:1793", "nonUDT": 1, "ov_cimguiname": "ImGuiDockNode_Rect", "ret": "void", @@ -5620,7 +5784,7 @@ "cimguiname": "ImGuiDockNode_SetLocalFlags", "defaults": {}, "funcname": "SetLocalFlags", - "location": "imgui_internal:1719", + "location": "imgui_internal:1795", "ov_cimguiname": "ImGuiDockNode_SetLocalFlags", "ret": "void", "signature": "(ImGuiDockNodeFlags)", @@ -5641,7 +5805,7 @@ "cimguiname": "ImGuiDockNode_UpdateMergedFlags", "defaults": {}, "funcname": "UpdateMergedFlags", - "location": "imgui_internal:1720", + "location": "imgui_internal:1796", "ov_cimguiname": "ImGuiDockNode_UpdateMergedFlags", "ret": "void", "signature": "()", @@ -5661,7 +5825,7 @@ "cimguiname": "ImGuiDockNode_destroy", "defaults": {}, "destructor": true, - "location": "imgui_internal:1707", + "location": "imgui_internal:1783", "ov_cimguiname": "ImGuiDockNode_destroy", "realdestructor": true, "ret": "void", @@ -5669,6 +5833,41 @@ "stname": "ImGuiDockNode" } ], + "ImGuiIDStackTool_ImGuiIDStackTool": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiIDStackTool_ImGuiIDStackTool", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiIDStackTool", + "location": "imgui_internal:2018", + "ov_cimguiname": "ImGuiIDStackTool_ImGuiIDStackTool", + "signature": "()", + "stname": "ImGuiIDStackTool" + } + ], + "ImGuiIDStackTool_destroy": [ + { + "args": "(ImGuiIDStackTool* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiIDStackTool*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiIDStackTool_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiIDStackTool_destroy", + "ret": "void", + "signature": "(ImGuiIDStackTool*)", + "stname": "ImGuiIDStackTool" + } + ], "ImGuiIO_AddFocusEvent": [ { "args": "(ImGuiIO* self,bool focused)", @@ -5688,7 +5887,7 @@ "comment": "// Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window)", "defaults": {}, "funcname": "AddFocusEvent", - "location": "imgui:2142", + "location": "imgui:2168", "ov_cimguiname": "ImGuiIO_AddFocusEvent", "ret": "void", "signature": "(bool)", @@ -5714,7 +5913,7 @@ "comment": "// Queue a new character input", "defaults": {}, "funcname": "AddInputCharacter", - "location": "imgui:2143", + "location": "imgui:2169", "ov_cimguiname": "ImGuiIO_AddInputCharacter", "ret": "void", "signature": "(unsigned int)", @@ -5740,7 +5939,7 @@ "comment": "// Queue a new character input from a UTF-16 character, it can be a surrogate", "defaults": {}, "funcname": "AddInputCharacterUTF16", - "location": "imgui:2144", + "location": "imgui:2170", "ov_cimguiname": "ImGuiIO_AddInputCharacterUTF16", "ret": "void", "signature": "(ImWchar16)", @@ -5766,7 +5965,7 @@ "comment": "// Queue a new characters input from a UTF-8 string", "defaults": {}, "funcname": "AddInputCharactersUTF8", - "location": "imgui:2145", + "location": "imgui:2171", "ov_cimguiname": "ImGuiIO_AddInputCharactersUTF8", "ret": "void", "signature": "(const char*)", @@ -5800,7 +5999,7 @@ "comment": "// Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend.", "defaults": {}, "funcname": "AddKeyAnalogEvent", - "location": "imgui:2136", + "location": "imgui:2162", "ov_cimguiname": "ImGuiIO_AddKeyAnalogEvent", "ret": "void", "signature": "(ImGuiKey,bool,float)", @@ -5830,7 +6029,7 @@ "comment": "// Queue a new key down/up event. Key should be \"translated\" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character)", "defaults": {}, "funcname": "AddKeyEvent", - "location": "imgui:2135", + "location": "imgui:2161", "ov_cimguiname": "ImGuiIO_AddKeyEvent", "ret": "void", "signature": "(ImGuiKey,bool)", @@ -5860,7 +6059,7 @@ "comment": "// Queue a mouse button change", "defaults": {}, "funcname": "AddMouseButtonEvent", - "location": "imgui:2138", + "location": "imgui:2164", "ov_cimguiname": "ImGuiIO_AddMouseButtonEvent", "ret": "void", "signature": "(int,bool)", @@ -5890,7 +6089,7 @@ "comment": "// Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered)", "defaults": {}, "funcname": "AddMousePosEvent", - "location": "imgui:2137", + "location": "imgui:2163", "ov_cimguiname": "ImGuiIO_AddMousePosEvent", "ret": "void", "signature": "(float,float)", @@ -5916,7 +6115,7 @@ "comment": "// Queue a mouse source change (Mouse/TouchScreen/Pen)", "defaults": {}, "funcname": "AddMouseSourceEvent", - "location": "imgui:2140", + "location": "imgui:2166", "ov_cimguiname": "ImGuiIO_AddMouseSourceEvent", "ret": "void", "signature": "(ImGuiMouseSource)", @@ -5942,7 +6141,7 @@ "comment": "// Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to call this (for multi-viewport support).", "defaults": {}, "funcname": "AddMouseViewportEvent", - "location": "imgui:2141", + "location": "imgui:2167", "ov_cimguiname": "ImGuiIO_AddMouseViewportEvent", "ret": "void", "signature": "(ImGuiID)", @@ -5972,14 +6171,14 @@ "comment": "// Queue a mouse wheel update. wheel_y<0: scroll down, wheel_y>0: scroll up, wheel_x<0: scroll right, wheel_x>0: scroll left.", "defaults": {}, "funcname": "AddMouseWheelEvent", - "location": "imgui:2139", + "location": "imgui:2165", "ov_cimguiname": "ImGuiIO_AddMouseWheelEvent", "ret": "void", "signature": "(float,float)", "stname": "ImGuiIO" } ], - "ImGuiIO_ClearInputCharacters": [ + "ImGuiIO_ClearEventsQueue": [ { "args": "(ImGuiIO* self)", "argsT": [ @@ -5990,12 +6189,12 @@ ], "argsoriginal": "()", "call_args": "()", - "cimguiname": "ImGuiIO_ClearInputCharacters", - "comment": "// [Internal] Clear the text input buffer manually", + "cimguiname": "ImGuiIO_ClearEventsQueue", + "comment": "// Clear all incoming events.", "defaults": {}, - "funcname": "ClearInputCharacters", - "location": "imgui:2149", - "ov_cimguiname": "ImGuiIO_ClearInputCharacters", + "funcname": "ClearEventsQueue", + "location": "imgui:2175", + "ov_cimguiname": "ImGuiIO_ClearEventsQueue", "ret": "void", "signature": "()", "stname": "ImGuiIO" @@ -6013,10 +6212,10 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImGuiIO_ClearInputKeys", - "comment": "// [Internal] Release all keys", + "comment": "// Clear current keyboard/mouse/gamepad state + current frame text input buffer. Equivalent to releasing all keys/buttons.", "defaults": {}, "funcname": "ClearInputKeys", - "location": "imgui:2150", + "location": "imgui:2176", "ov_cimguiname": "ImGuiIO_ClearInputKeys", "ret": "void", "signature": "()", @@ -6033,7 +6232,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiIO", - "location": "imgui:2229", + "location": "imgui:2262", "ov_cimguiname": "ImGuiIO_ImGuiIO", "signature": "()", "stname": "ImGuiIO" @@ -6058,7 +6257,7 @@ "comment": "// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen.", "defaults": {}, "funcname": "SetAppAcceptingEvents", - "location": "imgui:2148", + "location": "imgui:2174", "ov_cimguiname": "ImGuiIO_SetAppAcceptingEvents", "ret": "void", "signature": "(bool)", @@ -6098,7 +6297,7 @@ "native_legacy_index": "-1" }, "funcname": "SetKeyEventNativeData", - "location": "imgui:2147", + "location": "imgui:2173", "ov_cimguiname": "ImGuiIO_SetKeyEventNativeData", "ret": "void", "signature": "(ImGuiKey,int,int,int)", @@ -6134,7 +6333,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiInputEvent", - "location": "imgui_internal:1344", + "location": "imgui_internal:1375", "ov_cimguiname": "ImGuiInputEvent_ImGuiInputEvent", "signature": "()", "stname": "ImGuiInputEvent" @@ -6173,7 +6372,7 @@ "cimguiname": "ImGuiInputTextCallbackData_ClearSelection", "defaults": {}, "funcname": "ClearSelection", - "location": "imgui:2271", + "location": "imgui:2304", "ov_cimguiname": "ImGuiInputTextCallbackData_ClearSelection", "ret": "void", "signature": "()", @@ -6202,7 +6401,7 @@ "cimguiname": "ImGuiInputTextCallbackData_DeleteChars", "defaults": {}, "funcname": "DeleteChars", - "location": "imgui:2268", + "location": "imgui:2301", "ov_cimguiname": "ImGuiInputTextCallbackData_DeleteChars", "ret": "void", "signature": "(int,int)", @@ -6223,7 +6422,7 @@ "cimguiname": "ImGuiInputTextCallbackData_HasSelection", "defaults": {}, "funcname": "HasSelection", - "location": "imgui:2272", + "location": "imgui:2305", "ov_cimguiname": "ImGuiInputTextCallbackData_HasSelection", "ret": "bool", "signature": "()const", @@ -6240,7 +6439,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiInputTextCallbackData", - "location": "imgui:2267", + "location": "imgui:2300", "ov_cimguiname": "ImGuiInputTextCallbackData_ImGuiInputTextCallbackData", "signature": "()", "stname": "ImGuiInputTextCallbackData" @@ -6274,7 +6473,7 @@ "text_end": "NULL" }, "funcname": "InsertChars", - "location": "imgui:2269", + "location": "imgui:2302", "ov_cimguiname": "ImGuiInputTextCallbackData_InsertChars", "ret": "void", "signature": "(int,const char*,const char*)", @@ -6295,7 +6494,7 @@ "cimguiname": "ImGuiInputTextCallbackData_SelectAll", "defaults": {}, "funcname": "SelectAll", - "location": "imgui:2270", + "location": "imgui:2303", "ov_cimguiname": "ImGuiInputTextCallbackData_SelectAll", "ret": "void", "signature": "()", @@ -6335,7 +6534,7 @@ "cimguiname": "ImGuiInputTextDeactivatedState_ClearFreeMemory", "defaults": {}, "funcname": "ClearFreeMemory", - "location": "imgui_internal:1092", + "location": "imgui_internal:1108", "ov_cimguiname": "ImGuiInputTextDeactivatedState_ClearFreeMemory", "ret": "void", "signature": "()", @@ -6352,7 +6551,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiInputTextDeactivatedState", - "location": "imgui_internal:1091", + "location": "imgui_internal:1107", "ov_cimguiname": "ImGuiInputTextDeactivatedState_ImGuiInputTextDeactivatedState", "signature": "()", "stname": "ImGuiInputTextDeactivatedState" @@ -6391,7 +6590,7 @@ "cimguiname": "ImGuiInputTextState_ClearFreeMemory", "defaults": {}, "funcname": "ClearFreeMemory", - "location": "imgui_internal:1116", + "location": "imgui_internal:1132", "ov_cimguiname": "ImGuiInputTextState_ClearFreeMemory", "ret": "void", "signature": "()", @@ -6412,7 +6611,7 @@ "cimguiname": "ImGuiInputTextState_ClearSelection", "defaults": {}, "funcname": "ClearSelection", - "location": "imgui_internal:1125", + "location": "imgui_internal:1141", "ov_cimguiname": "ImGuiInputTextState_ClearSelection", "ret": "void", "signature": "()", @@ -6433,7 +6632,7 @@ "cimguiname": "ImGuiInputTextState_ClearText", "defaults": {}, "funcname": "ClearText", - "location": "imgui_internal:1115", + "location": "imgui_internal:1131", "ov_cimguiname": "ImGuiInputTextState_ClearText", "ret": "void", "signature": "()", @@ -6455,7 +6654,7 @@ "comment": "// After a user-input the cursor stays on for a while without blinking", "defaults": {}, "funcname": "CursorAnimReset", - "location": "imgui_internal:1122", + "location": "imgui_internal:1138", "ov_cimguiname": "ImGuiInputTextState_CursorAnimReset", "ret": "void", "signature": "()", @@ -6476,7 +6675,7 @@ "cimguiname": "ImGuiInputTextState_CursorClamp", "defaults": {}, "funcname": "CursorClamp", - "location": "imgui_internal:1123", + "location": "imgui_internal:1139", "ov_cimguiname": "ImGuiInputTextState_CursorClamp", "ret": "void", "signature": "()", @@ -6497,7 +6696,7 @@ "cimguiname": "ImGuiInputTextState_GetCursorPos", "defaults": {}, "funcname": "GetCursorPos", - "location": "imgui_internal:1126", + "location": "imgui_internal:1142", "ov_cimguiname": "ImGuiInputTextState_GetCursorPos", "ret": "int", "signature": "()const", @@ -6518,7 +6717,7 @@ "cimguiname": "ImGuiInputTextState_GetRedoAvailCount", "defaults": {}, "funcname": "GetRedoAvailCount", - "location": "imgui_internal:1118", + "location": "imgui_internal:1134", "ov_cimguiname": "ImGuiInputTextState_GetRedoAvailCount", "ret": "int", "signature": "()const", @@ -6539,7 +6738,7 @@ "cimguiname": "ImGuiInputTextState_GetSelectionEnd", "defaults": {}, "funcname": "GetSelectionEnd", - "location": "imgui_internal:1128", + "location": "imgui_internal:1144", "ov_cimguiname": "ImGuiInputTextState_GetSelectionEnd", "ret": "int", "signature": "()const", @@ -6560,7 +6759,7 @@ "cimguiname": "ImGuiInputTextState_GetSelectionStart", "defaults": {}, "funcname": "GetSelectionStart", - "location": "imgui_internal:1127", + "location": "imgui_internal:1143", "ov_cimguiname": "ImGuiInputTextState_GetSelectionStart", "ret": "int", "signature": "()const", @@ -6581,7 +6780,7 @@ "cimguiname": "ImGuiInputTextState_GetUndoAvailCount", "defaults": {}, "funcname": "GetUndoAvailCount", - "location": "imgui_internal:1117", + "location": "imgui_internal:1133", "ov_cimguiname": "ImGuiInputTextState_GetUndoAvailCount", "ret": "int", "signature": "()const", @@ -6602,7 +6801,7 @@ "cimguiname": "ImGuiInputTextState_HasSelection", "defaults": {}, "funcname": "HasSelection", - "location": "imgui_internal:1124", + "location": "imgui_internal:1140", "ov_cimguiname": "ImGuiInputTextState_HasSelection", "ret": "bool", "signature": "()const", @@ -6619,7 +6818,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiInputTextState", - "location": "imgui_internal:1114", + "location": "imgui_internal:1130", "ov_cimguiname": "ImGuiInputTextState_ImGuiInputTextState", "signature": "()", "stname": "ImGuiInputTextState" @@ -6644,7 +6843,7 @@ "comment": "// Cannot be inline because we call in code in stb_textedit.h implementation", "defaults": {}, "funcname": "OnKeyPressed", - "location": "imgui_internal:1119", + "location": "imgui_internal:1135", "ov_cimguiname": "ImGuiInputTextState_OnKeyPressed", "ret": "void", "signature": "(int)", @@ -6665,7 +6864,7 @@ "cimguiname": "ImGuiInputTextState_SelectAll", "defaults": {}, "funcname": "SelectAll", - "location": "imgui_internal:1129", + "location": "imgui_internal:1145", "ov_cimguiname": "ImGuiInputTextState_SelectAll", "ret": "void", "signature": "()", @@ -6701,7 +6900,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiKeyOwnerData", - "location": "imgui_internal:1386", + "location": "imgui_internal:1417", "ov_cimguiname": "ImGuiKeyOwnerData_ImGuiKeyOwnerData", "signature": "()", "stname": "ImGuiKeyOwnerData" @@ -6736,7 +6935,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiKeyRoutingData", - "location": "imgui_internal:1362", + "location": "imgui_internal:1393", "ov_cimguiname": "ImGuiKeyRoutingData_ImGuiKeyRoutingData", "signature": "()", "stname": "ImGuiKeyRoutingData" @@ -6775,7 +6974,7 @@ "cimguiname": "ImGuiKeyRoutingTable_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui_internal:1374", + "location": "imgui_internal:1405", "ov_cimguiname": "ImGuiKeyRoutingTable_Clear", "ret": "void", "signature": "()", @@ -6792,7 +6991,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiKeyRoutingTable", - "location": "imgui_internal:1373", + "location": "imgui_internal:1404", "ov_cimguiname": "ImGuiKeyRoutingTable_ImGuiKeyRoutingTable", "signature": "()", "stname": "ImGuiKeyRoutingTable" @@ -6827,7 +7026,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiLastItemData", - "location": "imgui_internal:1221", + "location": "imgui_internal:1242", "ov_cimguiname": "ImGuiLastItemData_ImGuiLastItemData", "signature": "()", "stname": "ImGuiLastItemData" @@ -6862,7 +7061,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiListClipperData", - "location": "imgui_internal:1463", + "location": "imgui_internal:1494", "ov_cimguiname": "ImGuiListClipperData_ImGuiListClipperData", "signature": "()", "stname": "ImGuiListClipperData" @@ -6886,7 +7085,7 @@ "cimguiname": "ImGuiListClipperData_Reset", "defaults": {}, "funcname": "Reset", - "location": "imgui_internal:1464", + "location": "imgui_internal:1495", "ov_cimguiname": "ImGuiListClipperData_Reset", "ret": "void", "signature": "(ImGuiListClipper*)", @@ -6931,7 +7130,7 @@ "defaults": {}, "funcname": "FromIndices", "is_static_function": true, - "location": "imgui_internal:1450", + "location": "imgui_internal:1481", "ov_cimguiname": "ImGuiListClipperRange_FromIndices", "ret": "ImGuiListClipperRange", "signature": "(int,int)", @@ -6965,7 +7164,7 @@ "defaults": {}, "funcname": "FromPositions", "is_static_function": true, - "location": "imgui_internal:1451", + "location": "imgui_internal:1482", "ov_cimguiname": "ImGuiListClipperRange_FromPositions", "ret": "ImGuiListClipperRange", "signature": "(float,float,int,int)", @@ -6996,7 +7195,7 @@ "items_height": "-1.0f" }, "funcname": "Begin", - "location": "imgui:2505", + "location": "imgui:2537", "ov_cimguiname": "ImGuiListClipper_Begin", "ret": "void", "signature": "(int,float)", @@ -7018,7 +7217,7 @@ "comment": "// Automatically called on the last call of Step() that returns false.", "defaults": {}, "funcname": "End", - "location": "imgui:2506", + "location": "imgui:2538", "ov_cimguiname": "ImGuiListClipper_End", "ret": "void", "signature": "()", @@ -7035,13 +7234,38 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiListClipper", - "location": "imgui:2503", + "location": "imgui:2535", "ov_cimguiname": "ImGuiListClipper_ImGuiListClipper", "signature": "()", "stname": "ImGuiListClipper" } ], - "ImGuiListClipper_IncludeRangeByIndices": [ + "ImGuiListClipper_IncludeItemByIndex": [ + { + "args": "(ImGuiListClipper* self,int item_index)", + "argsT": [ + { + "name": "self", + "type": "ImGuiListClipper*" + }, + { + "name": "item_index", + "type": "int" + } + ], + "argsoriginal": "(int item_index)", + "call_args": "(item_index)", + "cimguiname": "ImGuiListClipper_IncludeItemByIndex", + "defaults": {}, + "funcname": "IncludeItemByIndex", + "location": "imgui:2543", + "ov_cimguiname": "ImGuiListClipper_IncludeItemByIndex", + "ret": "void", + "signature": "(int)", + "stname": "ImGuiListClipper" + } + ], + "ImGuiListClipper_IncludeItemsByIndex": [ { "args": "(ImGuiListClipper* self,int item_begin,int item_end)", "argsT": [ @@ -7060,12 +7284,12 @@ ], "argsoriginal": "(int item_begin,int item_end)", "call_args": "(item_begin,item_end)", - "cimguiname": "ImGuiListClipper_IncludeRangeByIndices", + "cimguiname": "ImGuiListClipper_IncludeItemsByIndex", "comment": "// item_end is exclusive e.g. use (42, 42+1) to make item 42 never clipped.", "defaults": {}, - "funcname": "IncludeRangeByIndices", - "location": "imgui:2511", - "ov_cimguiname": "ImGuiListClipper_IncludeRangeByIndices", + "funcname": "IncludeItemsByIndex", + "location": "imgui:2544", + "ov_cimguiname": "ImGuiListClipper_IncludeItemsByIndex", "ret": "void", "signature": "(int,int)", "stname": "ImGuiListClipper" @@ -7086,7 +7310,7 @@ "comment": "// Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items.", "defaults": {}, "funcname": "Step", - "location": "imgui:2507", + "location": "imgui:2539", "ov_cimguiname": "ImGuiListClipper_Step", "ret": "bool", "signature": "()", @@ -7106,7 +7330,7 @@ "cimguiname": "ImGuiListClipper_destroy", "defaults": {}, "destructor": true, - "location": "imgui:2504", + "location": "imgui:2536", "ov_cimguiname": "ImGuiListClipper_destroy", "realdestructor": true, "ret": "void", @@ -7132,7 +7356,7 @@ "cimguiname": "ImGuiMenuColumns_CalcNextTotalWidth", "defaults": {}, "funcname": "CalcNextTotalWidth", - "location": "imgui_internal:1082", + "location": "imgui_internal:1098", "ov_cimguiname": "ImGuiMenuColumns_CalcNextTotalWidth", "ret": "void", "signature": "(bool)", @@ -7169,7 +7393,7 @@ "cimguiname": "ImGuiMenuColumns_DeclColumns", "defaults": {}, "funcname": "DeclColumns", - "location": "imgui_internal:1081", + "location": "imgui_internal:1097", "ov_cimguiname": "ImGuiMenuColumns_DeclColumns", "ret": "float", "signature": "(float,float,float,float)", @@ -7186,7 +7410,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiMenuColumns", - "location": "imgui_internal:1079", + "location": "imgui_internal:1095", "ov_cimguiname": "ImGuiMenuColumns_ImGuiMenuColumns", "signature": "()", "stname": "ImGuiMenuColumns" @@ -7214,7 +7438,7 @@ "cimguiname": "ImGuiMenuColumns_Update", "defaults": {}, "funcname": "Update", - "location": "imgui_internal:1080", + "location": "imgui_internal:1096", "ov_cimguiname": "ImGuiMenuColumns_Update", "ret": "void", "signature": "(float,bool)", @@ -7254,7 +7478,7 @@ "cimguiname": "ImGuiNavItemData_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui_internal:1542", + "location": "imgui_internal:1575", "ov_cimguiname": "ImGuiNavItemData_Clear", "ret": "void", "signature": "()", @@ -7271,7 +7495,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiNavItemData", - "location": "imgui_internal:1541", + "location": "imgui_internal:1574", "ov_cimguiname": "ImGuiNavItemData_ImGuiNavItemData", "signature": "()", "stname": "ImGuiNavItemData" @@ -7311,7 +7535,7 @@ "comment": "// Also cleared manually by ItemAdd()!", "defaults": {}, "funcname": "ClearFlags", - "location": "imgui_internal:1208", + "location": "imgui_internal:1229", "ov_cimguiname": "ImGuiNextItemData_ClearFlags", "ret": "void", "signature": "()", @@ -7328,7 +7552,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiNextItemData", - "location": "imgui_internal:1207", + "location": "imgui_internal:1228", "ov_cimguiname": "ImGuiNextItemData_ImGuiNextItemData", "signature": "()", "stname": "ImGuiNextItemData" @@ -7367,7 +7591,7 @@ "cimguiname": "ImGuiNextWindowData_ClearFlags", "defaults": {}, "funcname": "ClearFlags", - "location": "imgui_internal:1188", + "location": "imgui_internal:1204", "ov_cimguiname": "ImGuiNextWindowData_ClearFlags", "ret": "void", "signature": "()", @@ -7384,7 +7608,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiNextWindowData", - "location": "imgui_internal:1187", + "location": "imgui_internal:1203", "ov_cimguiname": "ImGuiNextWindowData_ImGuiNextWindowData", "signature": "()", "stname": "ImGuiNextWindowData" @@ -7419,7 +7643,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiOldColumnData", - "location": "imgui_internal:1577", + "location": "imgui_internal:1647", "ov_cimguiname": "ImGuiOldColumnData_ImGuiOldColumnData", "signature": "()", "stname": "ImGuiOldColumnData" @@ -7454,7 +7678,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiOldColumns", - "location": "imgui_internal:1598", + "location": "imgui_internal:1668", "ov_cimguiname": "ImGuiOldColumns_ImGuiOldColumns", "signature": "()", "stname": "ImGuiOldColumns" @@ -7489,7 +7713,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiOnceUponAFrame", - "location": "imgui:2368", + "location": "imgui:2401", "ov_cimguiname": "ImGuiOnceUponAFrame_ImGuiOnceUponAFrame", "signature": "()", "stname": "ImGuiOnceUponAFrame" @@ -7528,7 +7752,7 @@ "cimguiname": "ImGuiPayload_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2322", + "location": "imgui:2355", "ov_cimguiname": "ImGuiPayload_Clear", "ret": "void", "signature": "()", @@ -7545,7 +7769,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPayload", - "location": "imgui:2321", + "location": "imgui:2354", "ov_cimguiname": "ImGuiPayload_ImGuiPayload", "signature": "()", "stname": "ImGuiPayload" @@ -7569,7 +7793,7 @@ "cimguiname": "ImGuiPayload_IsDataType", "defaults": {}, "funcname": "IsDataType", - "location": "imgui:2323", + "location": "imgui:2356", "ov_cimguiname": "ImGuiPayload_IsDataType", "ret": "bool", "signature": "(const char*)const", @@ -7590,7 +7814,7 @@ "cimguiname": "ImGuiPayload_IsDelivery", "defaults": {}, "funcname": "IsDelivery", - "location": "imgui:2325", + "location": "imgui:2358", "ov_cimguiname": "ImGuiPayload_IsDelivery", "ret": "bool", "signature": "()const", @@ -7611,7 +7835,7 @@ "cimguiname": "ImGuiPayload_IsPreview", "defaults": {}, "funcname": "IsPreview", - "location": "imgui:2324", + "location": "imgui:2357", "ov_cimguiname": "ImGuiPayload_IsPreview", "ret": "bool", "signature": "()const", @@ -7648,7 +7872,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPlatformIO", - "location": "imgui:3301", + "location": "imgui:3339", "ov_cimguiname": "ImGuiPlatformIO_ImGuiPlatformIO", "signature": "()", "stname": "ImGuiPlatformIO" @@ -7683,7 +7907,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPlatformImeData", - "location": "imgui:3322", + "location": "imgui:3360", "ov_cimguiname": "ImGuiPlatformImeData_ImGuiPlatformImeData", "signature": "()", "stname": "ImGuiPlatformImeData" @@ -7718,7 +7942,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPlatformMonitor", - "location": "imgui:3312", + "location": "imgui:3350", "ov_cimguiname": "ImGuiPlatformMonitor_ImGuiPlatformMonitor", "signature": "()", "stname": "ImGuiPlatformMonitor" @@ -7753,7 +7977,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPopupData", - "location": "imgui_internal:1144", + "location": "imgui_internal:1160", "ov_cimguiname": "ImGuiPopupData_ImGuiPopupData", "signature": "()", "stname": "ImGuiPopupData" @@ -7793,7 +8017,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPtrOrIndex", - "location": "imgui_internal:1261", + "location": "imgui_internal:1292", "ov_cimguiname": "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr", "signature": "(void*)", "stname": "ImGuiPtrOrIndex" @@ -7812,7 +8036,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiPtrOrIndex", - "location": "imgui_internal:1262", + "location": "imgui_internal:1293", "ov_cimguiname": "ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int", "signature": "(int)", "stname": "ImGuiPtrOrIndex" @@ -7847,7 +8071,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiSettingsHandler", - "location": "imgui_internal:1836", + "location": "imgui_internal:1912", "ov_cimguiname": "ImGuiSettingsHandler_ImGuiSettingsHandler", "signature": "()", "stname": "ImGuiSettingsHandler" @@ -7882,7 +8106,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStackLevelInfo", - "location": "imgui_internal:1909", + "location": "imgui_internal:2005", "ov_cimguiname": "ImGuiStackLevelInfo_ImGuiStackLevelInfo", "signature": "()", "stname": "ImGuiStackLevelInfo" @@ -7925,7 +8149,7 @@ "cimguiname": "ImGuiStackSizes_CompareWithContextState", "defaults": {}, "funcname": "CompareWithContextState", - "location": "imgui_internal:1238", + "location": "imgui_internal:1269", "ov_cimguiname": "ImGuiStackSizes_CompareWithContextState", "ret": "void", "signature": "(ImGuiContext*)", @@ -7942,7 +8166,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStackSizes", - "location": "imgui_internal:1236", + "location": "imgui_internal:1267", "ov_cimguiname": "ImGuiStackSizes_ImGuiStackSizes", "signature": "()", "stname": "ImGuiStackSizes" @@ -7966,7 +8190,7 @@ "cimguiname": "ImGuiStackSizes_SetToContextState", "defaults": {}, "funcname": "SetToContextState", - "location": "imgui_internal:1237", + "location": "imgui_internal:1268", "ov_cimguiname": "ImGuiStackSizes_SetToContextState", "ret": "void", "signature": "(ImGuiContext*)", @@ -7992,107 +8216,72 @@ "stname": "ImGuiStackSizes" } ], - "ImGuiStackTool_ImGuiStackTool": [ - { - "args": "()", - "argsT": [], - "argsoriginal": "()", - "call_args": "()", - "cimguiname": "ImGuiStackTool_ImGuiStackTool", - "constructor": true, - "defaults": {}, - "funcname": "ImGuiStackTool", - "location": "imgui_internal:1922", - "ov_cimguiname": "ImGuiStackTool_ImGuiStackTool", - "signature": "()", - "stname": "ImGuiStackTool" - } - ], - "ImGuiStackTool_destroy": [ - { - "args": "(ImGuiStackTool* self)", - "argsT": [ - { - "name": "self", - "type": "ImGuiStackTool*" - } - ], - "call_args": "(self)", - "cimguiname": "ImGuiStackTool_destroy", - "defaults": {}, - "destructor": true, - "ov_cimguiname": "ImGuiStackTool_destroy", - "ret": "void", - "signature": "(ImGuiStackTool*)", - "stname": "ImGuiStackTool" - } - ], "ImGuiStoragePair_ImGuiStoragePair": [ { - "args": "(ImGuiID _key,int _val_i)", + "args": "(ImGuiID _key,int _val)", "argsT": [ { "name": "_key", "type": "ImGuiID" }, { - "name": "_val_i", + "name": "_val", "type": "int" } ], - "argsoriginal": "(ImGuiID _key,int _val_i)", - "call_args": "(_key,_val_i)", + "argsoriginal": "(ImGuiID _key,int _val)", + "call_args": "(_key,_val)", "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", "constructor": true, "defaults": {}, "funcname": "ImGuiStoragePair", - "location": "imgui:2435", + "location": "imgui:2468", "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Int", "signature": "(ImGuiID,int)", "stname": "ImGuiStoragePair" }, { - "args": "(ImGuiID _key,float _val_f)", + "args": "(ImGuiID _key,float _val)", "argsT": [ { "name": "_key", "type": "ImGuiID" }, { - "name": "_val_f", + "name": "_val", "type": "float" } ], - "argsoriginal": "(ImGuiID _key,float _val_f)", - "call_args": "(_key,_val_f)", + "argsoriginal": "(ImGuiID _key,float _val)", + "call_args": "(_key,_val)", "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", "constructor": true, "defaults": {}, "funcname": "ImGuiStoragePair", - "location": "imgui:2436", + "location": "imgui:2469", "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Float", "signature": "(ImGuiID,float)", "stname": "ImGuiStoragePair" }, { - "args": "(ImGuiID _key,void* _val_p)", + "args": "(ImGuiID _key,void* _val)", "argsT": [ { "name": "_key", "type": "ImGuiID" }, { - "name": "_val_p", + "name": "_val", "type": "void*" } ], - "argsoriginal": "(ImGuiID _key,void* _val_p)", - "call_args": "(_key,_val_p)", + "argsoriginal": "(ImGuiID _key,void* _val)", + "call_args": "(_key,_val)", "cimguiname": "ImGuiStoragePair_ImGuiStoragePair", "constructor": true, "defaults": {}, "funcname": "ImGuiStoragePair", - "location": "imgui:2437", + "location": "imgui:2470", "ov_cimguiname": "ImGuiStoragePair_ImGuiStoragePair_Ptr", "signature": "(ImGuiID,void*)", "stname": "ImGuiStoragePair" @@ -8131,7 +8320,7 @@ "cimguiname": "ImGuiStorage_BuildSortByKey", "defaults": {}, "funcname": "BuildSortByKey", - "location": "imgui:2468", + "location": "imgui:2498", "ov_cimguiname": "ImGuiStorage_BuildSortByKey", "ret": "void", "signature": "()", @@ -8152,7 +8341,7 @@ "cimguiname": "ImGuiStorage_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2445", + "location": "imgui:2478", "ov_cimguiname": "ImGuiStorage_Clear", "ret": "void", "signature": "()", @@ -8183,7 +8372,7 @@ "default_val": "false" }, "funcname": "GetBool", - "location": "imgui:2448", + "location": "imgui:2481", "ov_cimguiname": "ImGuiStorage_GetBool", "ret": "bool", "signature": "(ImGuiID,bool)const", @@ -8214,7 +8403,7 @@ "default_val": "false" }, "funcname": "GetBoolRef", - "location": "imgui:2460", + "location": "imgui:2493", "ov_cimguiname": "ImGuiStorage_GetBoolRef", "ret": "bool*", "signature": "(ImGuiID,bool)", @@ -8245,7 +8434,7 @@ "default_val": "0.0f" }, "funcname": "GetFloat", - "location": "imgui:2450", + "location": "imgui:2483", "ov_cimguiname": "ImGuiStorage_GetFloat", "ret": "float", "signature": "(ImGuiID,float)const", @@ -8276,7 +8465,7 @@ "default_val": "0.0f" }, "funcname": "GetFloatRef", - "location": "imgui:2461", + "location": "imgui:2494", "ov_cimguiname": "ImGuiStorage_GetFloatRef", "ret": "float*", "signature": "(ImGuiID,float)", @@ -8307,7 +8496,7 @@ "default_val": "0" }, "funcname": "GetInt", - "location": "imgui:2446", + "location": "imgui:2479", "ov_cimguiname": "ImGuiStorage_GetInt", "ret": "int", "signature": "(ImGuiID,int)const", @@ -8338,7 +8527,7 @@ "default_val": "0" }, "funcname": "GetIntRef", - "location": "imgui:2459", + "location": "imgui:2492", "ov_cimguiname": "ImGuiStorage_GetIntRef", "ret": "int*", "signature": "(ImGuiID,int)", @@ -8364,7 +8553,7 @@ "comment": "// default_val is NULL", "defaults": {}, "funcname": "GetVoidPtr", - "location": "imgui:2452", + "location": "imgui:2485", "ov_cimguiname": "ImGuiStorage_GetVoidPtr", "ret": "void*", "signature": "(ImGuiID)const", @@ -8395,7 +8584,7 @@ "default_val": "NULL" }, "funcname": "GetVoidPtrRef", - "location": "imgui:2462", + "location": "imgui:2495", "ov_cimguiname": "ImGuiStorage_GetVoidPtrRef", "ret": "void**", "signature": "(ImGuiID,void*)", @@ -8420,7 +8609,7 @@ "cimguiname": "ImGuiStorage_SetAllInt", "defaults": {}, "funcname": "SetAllInt", - "location": "imgui:2465", + "location": "imgui:2500", "ov_cimguiname": "ImGuiStorage_SetAllInt", "ret": "void", "signature": "(int)", @@ -8449,7 +8638,7 @@ "cimguiname": "ImGuiStorage_SetBool", "defaults": {}, "funcname": "SetBool", - "location": "imgui:2449", + "location": "imgui:2482", "ov_cimguiname": "ImGuiStorage_SetBool", "ret": "void", "signature": "(ImGuiID,bool)", @@ -8478,7 +8667,7 @@ "cimguiname": "ImGuiStorage_SetFloat", "defaults": {}, "funcname": "SetFloat", - "location": "imgui:2451", + "location": "imgui:2484", "ov_cimguiname": "ImGuiStorage_SetFloat", "ret": "void", "signature": "(ImGuiID,float)", @@ -8507,7 +8696,7 @@ "cimguiname": "ImGuiStorage_SetInt", "defaults": {}, "funcname": "SetInt", - "location": "imgui:2447", + "location": "imgui:2480", "ov_cimguiname": "ImGuiStorage_SetInt", "ret": "void", "signature": "(ImGuiID,int)", @@ -8536,7 +8725,7 @@ "cimguiname": "ImGuiStorage_SetVoidPtr", "defaults": {}, "funcname": "SetVoidPtr", - "location": "imgui:2453", + "location": "imgui:2486", "ov_cimguiname": "ImGuiStorage_SetVoidPtr", "ret": "void", "signature": "(ImGuiID,void*)", @@ -8562,7 +8751,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStyleMod", - "location": "imgui_internal:1033", + "location": "imgui_internal:1047", "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleMod_Int", "signature": "(ImGuiStyleVar,int)", "stname": "ImGuiStyleMod" @@ -8585,7 +8774,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStyleMod", - "location": "imgui_internal:1034", + "location": "imgui_internal:1048", "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleMod_Float", "signature": "(ImGuiStyleVar,float)", "stname": "ImGuiStyleMod" @@ -8608,7 +8797,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStyleMod", - "location": "imgui_internal:1035", + "location": "imgui_internal:1049", "ov_cimguiname": "ImGuiStyleMod_ImGuiStyleMod_Vec2", "signature": "(ImGuiStyleVar,ImVec2)", "stname": "ImGuiStyleMod" @@ -8643,7 +8832,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiStyle", - "location": "imgui:2011", + "location": "imgui:2039", "ov_cimguiname": "ImGuiStyle_ImGuiStyle", "signature": "()", "stname": "ImGuiStyle" @@ -8667,7 +8856,7 @@ "cimguiname": "ImGuiStyle_ScaleAllSizes", "defaults": {}, "funcname": "ScaleAllSizes", - "location": "imgui:2012", + "location": "imgui:2040", "ov_cimguiname": "ImGuiStyle_ScaleAllSizes", "ret": "void", "signature": "(float)", @@ -8703,7 +8892,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTabBar", - "location": "imgui_internal:2726", + "location": "imgui_internal:2830", "ov_cimguiname": "ImGuiTabBar_ImGuiTabBar", "signature": "()", "stname": "ImGuiTabBar" @@ -8738,7 +8927,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTabItem", - "location": "imgui_internal:2688", + "location": "imgui_internal:2790", "ov_cimguiname": "ImGuiTabItem_ImGuiTabItem", "signature": "()", "stname": "ImGuiTabItem" @@ -8773,7 +8962,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableColumnSettings", - "location": "imgui_internal:2970", + "location": "imgui_internal:3084", "ov_cimguiname": "ImGuiTableColumnSettings_ImGuiTableColumnSettings", "signature": "()", "stname": "ImGuiTableColumnSettings" @@ -8808,7 +8997,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableColumnSortSpecs", - "location": "imgui:2336", + "location": "imgui:2369", "ov_cimguiname": "ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs", "signature": "()", "stname": "ImGuiTableColumnSortSpecs" @@ -8843,7 +9032,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableColumn", - "location": "imgui_internal:2788", + "location": "imgui_internal:2892", "ov_cimguiname": "ImGuiTableColumn_ImGuiTableColumn", "signature": "()", "stname": "ImGuiTableColumn" @@ -8878,7 +9067,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableInstanceData", - "location": "imgui_internal:2817", + "location": "imgui_internal:2924", "ov_cimguiname": "ImGuiTableInstanceData_ImGuiTableInstanceData", "signature": "()", "stname": "ImGuiTableInstanceData" @@ -8917,7 +9106,7 @@ "cimguiname": "ImGuiTableSettings_GetColumnSettings", "defaults": {}, "funcname": "GetColumnSettings", - "location": "imgui_internal:2993", + "location": "imgui_internal:3107", "ov_cimguiname": "ImGuiTableSettings_GetColumnSettings", "ret": "ImGuiTableColumnSettings*", "signature": "()", @@ -8934,7 +9123,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableSettings", - "location": "imgui_internal:2992", + "location": "imgui_internal:3106", "ov_cimguiname": "ImGuiTableSettings_ImGuiTableSettings", "signature": "()", "stname": "ImGuiTableSettings" @@ -8969,7 +9158,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableSortSpecs", - "location": "imgui:2349", + "location": "imgui:2382", "ov_cimguiname": "ImGuiTableSortSpecs_ImGuiTableSortSpecs", "signature": "()", "stname": "ImGuiTableSortSpecs" @@ -9004,7 +9193,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTableTempData", - "location": "imgui_internal:2955", + "location": "imgui_internal:3069", "ov_cimguiname": "ImGuiTableTempData_ImGuiTableTempData", "signature": "()", "stname": "ImGuiTableTempData" @@ -9039,7 +9228,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTable", - "location": "imgui_internal:2930", + "location": "imgui_internal:3043", "ov_cimguiname": "ImGuiTable_ImGuiTable", "signature": "()", "stname": "ImGuiTable" @@ -9058,7 +9247,7 @@ "cimguiname": "ImGuiTable_destroy", "defaults": {}, "destructor": true, - "location": "imgui_internal:2931", + "location": "imgui_internal:3044", "ov_cimguiname": "ImGuiTable_destroy", "realdestructor": true, "ret": "void", @@ -9076,7 +9265,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTextBuffer", - "location": "imgui:2406", + "location": "imgui:2439", "ov_cimguiname": "ImGuiTextBuffer_ImGuiTextBuffer", "signature": "()", "stname": "ImGuiTextBuffer" @@ -9106,7 +9295,7 @@ "str_end": "NULL" }, "funcname": "append", - "location": "imgui:2415", + "location": "imgui:2448", "ov_cimguiname": "ImGuiTextBuffer_append", "ret": "void", "signature": "(const char*,const char*)", @@ -9136,7 +9325,7 @@ "defaults": {}, "funcname": "appendf", "isvararg": "...)", - "location": "imgui:2416", + "location": "imgui:2449", "manual": true, "ov_cimguiname": "ImGuiTextBuffer_appendf", "ret": "void", @@ -9166,7 +9355,7 @@ "cimguiname": "ImGuiTextBuffer_appendfv", "defaults": {}, "funcname": "appendfv", - "location": "imgui:2417", + "location": "imgui:2450", "ov_cimguiname": "ImGuiTextBuffer_appendfv", "ret": "void", "signature": "(const char*,va_list)", @@ -9187,7 +9376,7 @@ "cimguiname": "ImGuiTextBuffer_begin", "defaults": {}, "funcname": "begin", - "location": "imgui:2408", + "location": "imgui:2441", "ov_cimguiname": "ImGuiTextBuffer_begin", "ret": "const char*", "signature": "()const", @@ -9208,7 +9397,7 @@ "cimguiname": "ImGuiTextBuffer_c_str", "defaults": {}, "funcname": "c_str", - "location": "imgui:2414", + "location": "imgui:2447", "ov_cimguiname": "ImGuiTextBuffer_c_str", "ret": "const char*", "signature": "()const", @@ -9229,7 +9418,7 @@ "cimguiname": "ImGuiTextBuffer_clear", "defaults": {}, "funcname": "clear", - "location": "imgui:2412", + "location": "imgui:2445", "ov_cimguiname": "ImGuiTextBuffer_clear", "ret": "void", "signature": "()", @@ -9269,7 +9458,7 @@ "cimguiname": "ImGuiTextBuffer_empty", "defaults": {}, "funcname": "empty", - "location": "imgui:2411", + "location": "imgui:2444", "ov_cimguiname": "ImGuiTextBuffer_empty", "ret": "bool", "signature": "()const", @@ -9291,7 +9480,7 @@ "comment": "// Buf is zero-terminated, so end() will point on the zero-terminator", "defaults": {}, "funcname": "end", - "location": "imgui:2409", + "location": "imgui:2442", "ov_cimguiname": "ImGuiTextBuffer_end", "ret": "const char*", "signature": "()const", @@ -9316,7 +9505,7 @@ "cimguiname": "ImGuiTextBuffer_reserve", "defaults": {}, "funcname": "reserve", - "location": "imgui:2413", + "location": "imgui:2446", "ov_cimguiname": "ImGuiTextBuffer_reserve", "ret": "void", "signature": "(int)", @@ -9337,7 +9526,7 @@ "cimguiname": "ImGuiTextBuffer_size", "defaults": {}, "funcname": "size", - "location": "imgui:2410", + "location": "imgui:2443", "ov_cimguiname": "ImGuiTextBuffer_size", "ret": "int", "signature": "()const", @@ -9358,7 +9547,7 @@ "cimguiname": "ImGuiTextFilter_Build", "defaults": {}, "funcname": "Build", - "location": "imgui:2379", + "location": "imgui:2412", "ov_cimguiname": "ImGuiTextFilter_Build", "ret": "void", "signature": "()", @@ -9379,7 +9568,7 @@ "cimguiname": "ImGuiTextFilter_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui:2380", + "location": "imgui:2413", "ov_cimguiname": "ImGuiTextFilter_Clear", "ret": "void", "signature": "()", @@ -9412,7 +9601,7 @@ "width": "0.0f" }, "funcname": "Draw", - "location": "imgui:2377", + "location": "imgui:2410", "ov_cimguiname": "ImGuiTextFilter_Draw", "ret": "bool", "signature": "(const char*,float)", @@ -9436,7 +9625,7 @@ "default_filter": "\"\"" }, "funcname": "ImGuiTextFilter", - "location": "imgui:2376", + "location": "imgui:2409", "ov_cimguiname": "ImGuiTextFilter_ImGuiTextFilter", "signature": "(const char*)", "stname": "ImGuiTextFilter" @@ -9456,7 +9645,7 @@ "cimguiname": "ImGuiTextFilter_IsActive", "defaults": {}, "funcname": "IsActive", - "location": "imgui:2381", + "location": "imgui:2414", "ov_cimguiname": "ImGuiTextFilter_IsActive", "ret": "bool", "signature": "()const", @@ -9487,7 +9676,7 @@ "text_end": "NULL" }, "funcname": "PassFilter", - "location": "imgui:2378", + "location": "imgui:2411", "ov_cimguiname": "ImGuiTextFilter_PassFilter", "ret": "bool", "signature": "(const char*,const char*)const", @@ -9539,7 +9728,7 @@ "cimguiname": "ImGuiTextIndex_append", "defaults": {}, "funcname": "append", - "location": "imgui_internal:726", + "location": "imgui_internal:741", "ov_cimguiname": "ImGuiTextIndex_append", "ret": "void", "signature": "(const char*,int,int)", @@ -9560,7 +9749,7 @@ "cimguiname": "ImGuiTextIndex_clear", "defaults": {}, "funcname": "clear", - "location": "imgui_internal:722", + "location": "imgui_internal:737", "ov_cimguiname": "ImGuiTextIndex_clear", "ret": "void", "signature": "()", @@ -9589,7 +9778,7 @@ "cimguiname": "ImGuiTextIndex_get_line_begin", "defaults": {}, "funcname": "get_line_begin", - "location": "imgui_internal:724", + "location": "imgui_internal:739", "ov_cimguiname": "ImGuiTextIndex_get_line_begin", "ret": "const char*", "signature": "(const char*,int)", @@ -9618,7 +9807,7 @@ "cimguiname": "ImGuiTextIndex_get_line_end", "defaults": {}, "funcname": "get_line_end", - "location": "imgui_internal:725", + "location": "imgui_internal:740", "ov_cimguiname": "ImGuiTextIndex_get_line_end", "ret": "const char*", "signature": "(const char*,int)", @@ -9639,7 +9828,7 @@ "cimguiname": "ImGuiTextIndex_size", "defaults": {}, "funcname": "size", - "location": "imgui_internal:723", + "location": "imgui_internal:738", "ov_cimguiname": "ImGuiTextIndex_size", "ret": "int", "signature": "()", @@ -9656,7 +9845,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTextRange", - "location": "imgui:2389", + "location": "imgui:2422", "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Nil", "signature": "()", "stname": "ImGuiTextRange" @@ -9679,7 +9868,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiTextRange", - "location": "imgui:2390", + "location": "imgui:2423", "ov_cimguiname": "ImGuiTextRange_ImGuiTextRange_Str", "signature": "(const char*,const char*)", "stname": "ImGuiTextRange" @@ -9718,7 +9907,7 @@ "cimguiname": "ImGuiTextRange_empty", "defaults": {}, "funcname": "empty", - "location": "imgui:2391", + "location": "imgui:2424", "ov_cimguiname": "ImGuiTextRange_empty", "ret": "bool", "signature": "()const", @@ -9747,13 +9936,70 @@ "cimguiname": "ImGuiTextRange_split", "defaults": {}, "funcname": "split", - "location": "imgui:2392", + "location": "imgui:2425", "ov_cimguiname": "ImGuiTextRange_split", "ret": "void", "signature": "(char,ImVector_ImGuiTextRange*)const", "stname": "ImGuiTextRange" } ], + "ImGuiTypingSelectState_Clear": [ + { + "args": "(ImGuiTypingSelectState* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTypingSelectState*" + } + ], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTypingSelectState_Clear", + "comment": "// We preserve remaining data for easier debugging", + "defaults": {}, + "funcname": "Clear", + "location": "imgui_internal:1612", + "ov_cimguiname": "ImGuiTypingSelectState_Clear", + "ret": "void", + "signature": "()", + "stname": "ImGuiTypingSelectState" + } + ], + "ImGuiTypingSelectState_ImGuiTypingSelectState": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "ImGuiTypingSelectState_ImGuiTypingSelectState", + "constructor": true, + "defaults": {}, + "funcname": "ImGuiTypingSelectState", + "location": "imgui_internal:1611", + "ov_cimguiname": "ImGuiTypingSelectState_ImGuiTypingSelectState", + "signature": "()", + "stname": "ImGuiTypingSelectState" + } + ], + "ImGuiTypingSelectState_destroy": [ + { + "args": "(ImGuiTypingSelectState* self)", + "argsT": [ + { + "name": "self", + "type": "ImGuiTypingSelectState*" + } + ], + "call_args": "(self)", + "cimguiname": "ImGuiTypingSelectState_destroy", + "defaults": {}, + "destructor": true, + "ov_cimguiname": "ImGuiTypingSelectState_destroy", + "ret": "void", + "signature": "(ImGuiTypingSelectState*)", + "stname": "ImGuiTypingSelectState" + } + ], "ImGuiViewportP_CalcWorkRectPos": [ { "args": "(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 off_min)", @@ -9776,7 +10022,7 @@ "cimguiname": "ImGuiViewportP_CalcWorkRectPos", "defaults": {}, "funcname": "CalcWorkRectPos", - "location": "imgui_internal:1789", + "location": "imgui_internal:1865", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_CalcWorkRectPos", "ret": "void", @@ -9810,7 +10056,7 @@ "cimguiname": "ImGuiViewportP_CalcWorkRectSize", "defaults": {}, "funcname": "CalcWorkRectSize", - "location": "imgui_internal:1790", + "location": "imgui_internal:1866", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_CalcWorkRectSize", "ret": "void", @@ -9832,7 +10078,7 @@ "cimguiname": "ImGuiViewportP_ClearRequestFlags", "defaults": {}, "funcname": "ClearRequestFlags", - "location": "imgui_internal:1786", + "location": "imgui_internal:1862", "ov_cimguiname": "ImGuiViewportP_ClearRequestFlags", "ret": "void", "signature": "()", @@ -9857,7 +10103,7 @@ "cimguiname": "ImGuiViewportP_GetBuildWorkRect", "defaults": {}, "funcname": "GetBuildWorkRect", - "location": "imgui_internal:1796", + "location": "imgui_internal:1872", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_GetBuildWorkRect", "ret": "void", @@ -9883,7 +10129,7 @@ "cimguiname": "ImGuiViewportP_GetMainRect", "defaults": {}, "funcname": "GetMainRect", - "location": "imgui_internal:1794", + "location": "imgui_internal:1870", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_GetMainRect", "ret": "void", @@ -9909,7 +10155,7 @@ "cimguiname": "ImGuiViewportP_GetWorkRect", "defaults": {}, "funcname": "GetWorkRect", - "location": "imgui_internal:1795", + "location": "imgui_internal:1871", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_GetWorkRect", "ret": "void", @@ -9927,7 +10173,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiViewportP", - "location": "imgui_internal:1784", + "location": "imgui_internal:1860", "ov_cimguiname": "ImGuiViewportP_ImGuiViewportP", "signature": "()", "stname": "ImGuiViewportP" @@ -9948,7 +10194,7 @@ "comment": "// Update public fields", "defaults": {}, "funcname": "UpdateWorkRect", - "location": "imgui_internal:1791", + "location": "imgui_internal:1867", "ov_cimguiname": "ImGuiViewportP_UpdateWorkRect", "ret": "void", "signature": "()", @@ -9968,7 +10214,7 @@ "cimguiname": "ImGuiViewportP_destroy", "defaults": {}, "destructor": true, - "location": "imgui_internal:1785", + "location": "imgui_internal:1861", "ov_cimguiname": "ImGuiViewportP_destroy", "realdestructor": true, "ret": "void", @@ -9994,7 +10240,7 @@ "cimguiname": "ImGuiViewport_GetCenter", "defaults": {}, "funcname": "GetCenter", - "location": "imgui:3189", + "location": "imgui:3227", "nonUDT": 1, "ov_cimguiname": "ImGuiViewport_GetCenter", "ret": "void", @@ -10020,7 +10266,7 @@ "cimguiname": "ImGuiViewport_GetWorkCenter", "defaults": {}, "funcname": "GetWorkCenter", - "location": "imgui:3190", + "location": "imgui:3228", "nonUDT": 1, "ov_cimguiname": "ImGuiViewport_GetWorkCenter", "ret": "void", @@ -10038,7 +10284,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiViewport", - "location": "imgui:3185", + "location": "imgui:3223", "ov_cimguiname": "ImGuiViewport_ImGuiViewport", "signature": "()", "stname": "ImGuiViewport" @@ -10057,7 +10303,7 @@ "cimguiname": "ImGuiViewport_destroy", "defaults": {}, "destructor": true, - "location": "imgui:3186", + "location": "imgui:3224", "ov_cimguiname": "ImGuiViewport_destroy", "realdestructor": true, "ret": "void", @@ -10075,7 +10321,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiWindowClass", - "location": "imgui:2303", + "location": "imgui:2336", "ov_cimguiname": "ImGuiWindowClass_ImGuiWindowClass", "signature": "()", "stname": "ImGuiWindowClass" @@ -10114,7 +10360,7 @@ "cimguiname": "ImGuiWindowSettings_GetName", "defaults": {}, "funcname": "GetName", - "location": "imgui_internal:1821", + "location": "imgui_internal:1897", "ov_cimguiname": "ImGuiWindowSettings_GetName", "ret": "char*", "signature": "()", @@ -10131,7 +10377,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiWindowSettings", - "location": "imgui_internal:1820", + "location": "imgui_internal:1896", "ov_cimguiname": "ImGuiWindowSettings_ImGuiWindowSettings", "signature": "()", "stname": "ImGuiWindowSettings" @@ -10170,7 +10416,7 @@ "cimguiname": "ImGuiWindow_CalcFontSize", "defaults": {}, "funcname": "CalcFontSize", - "location": "imgui_internal:2642", + "location": "imgui_internal:2745", "ov_cimguiname": "ImGuiWindow_CalcFontSize", "ret": "float", "signature": "()const", @@ -10201,7 +10447,7 @@ "str_end": "NULL" }, "funcname": "GetID", - "location": "imgui_internal:2635", + "location": "imgui_internal:2738", "ov_cimguiname": "ImGuiWindow_GetID_Str", "ret": "ImGuiID", "signature": "(const char*,const char*)", @@ -10224,7 +10470,7 @@ "cimguiname": "ImGuiWindow_GetID", "defaults": {}, "funcname": "GetID", - "location": "imgui_internal:2636", + "location": "imgui_internal:2739", "ov_cimguiname": "ImGuiWindow_GetID_Ptr", "ret": "ImGuiID", "signature": "(const void*)", @@ -10247,7 +10493,7 @@ "cimguiname": "ImGuiWindow_GetID", "defaults": {}, "funcname": "GetID", - "location": "imgui_internal:2637", + "location": "imgui_internal:2740", "ov_cimguiname": "ImGuiWindow_GetID_Int", "ret": "ImGuiID", "signature": "(int)", @@ -10272,7 +10518,7 @@ "cimguiname": "ImGuiWindow_GetIDFromRectangle", "defaults": {}, "funcname": "GetIDFromRectangle", - "location": "imgui_internal:2638", + "location": "imgui_internal:2741", "ov_cimguiname": "ImGuiWindow_GetIDFromRectangle", "ret": "ImGuiID", "signature": "(const ImRect)", @@ -10298,7 +10544,7 @@ "constructor": true, "defaults": {}, "funcname": "ImGuiWindow", - "location": "imgui_internal:2631", + "location": "imgui_internal:2734", "ov_cimguiname": "ImGuiWindow_ImGuiWindow", "signature": "(ImGuiContext*,const char*)", "stname": "ImGuiWindow" @@ -10318,7 +10564,7 @@ "cimguiname": "ImGuiWindow_MenuBarHeight", "defaults": {}, "funcname": "MenuBarHeight", - "location": "imgui_internal:2645", + "location": "imgui_internal:2748", "ov_cimguiname": "ImGuiWindow_MenuBarHeight", "ret": "float", "signature": "()const", @@ -10343,7 +10589,7 @@ "cimguiname": "ImGuiWindow_MenuBarRect", "defaults": {}, "funcname": "MenuBarRect", - "location": "imgui_internal:2646", + "location": "imgui_internal:2749", "nonUDT": 1, "ov_cimguiname": "ImGuiWindow_MenuBarRect", "ret": "void", @@ -10369,7 +10615,7 @@ "cimguiname": "ImGuiWindow_Rect", "defaults": {}, "funcname": "Rect", - "location": "imgui_internal:2641", + "location": "imgui_internal:2744", "nonUDT": 1, "ov_cimguiname": "ImGuiWindow_Rect", "ret": "void", @@ -10391,7 +10637,7 @@ "cimguiname": "ImGuiWindow_TitleBarHeight", "defaults": {}, "funcname": "TitleBarHeight", - "location": "imgui_internal:2643", + "location": "imgui_internal:2746", "ov_cimguiname": "ImGuiWindow_TitleBarHeight", "ret": "float", "signature": "()const", @@ -10416,7 +10662,7 @@ "cimguiname": "ImGuiWindow_TitleBarRect", "defaults": {}, "funcname": "TitleBarRect", - "location": "imgui_internal:2644", + "location": "imgui_internal:2747", "nonUDT": 1, "ov_cimguiname": "ImGuiWindow_TitleBarRect", "ret": "void", @@ -10437,7 +10683,7 @@ "cimguiname": "ImGuiWindow_destroy", "defaults": {}, "destructor": true, - "location": "imgui_internal:2633", + "location": "imgui_internal:2736", "ov_cimguiname": "ImGuiWindow_destroy", "realdestructor": true, "ret": "void", @@ -10459,7 +10705,7 @@ "cimguiname": "ImPool_Add", "defaults": {}, "funcname": "Add", - "location": "imgui_internal:675", + "location": "imgui_internal:691", "ov_cimguiname": "ImPool_Add", "ret": "T*", "signature": "()", @@ -10481,7 +10727,7 @@ "cimguiname": "ImPool_Clear", "defaults": {}, "funcname": "Clear", - "location": "imgui_internal:674", + "location": "imgui_internal:690", "ov_cimguiname": "ImPool_Clear", "ret": "void", "signature": "()", @@ -10507,7 +10753,7 @@ "cimguiname": "ImPool_Contains", "defaults": {}, "funcname": "Contains", - "location": "imgui_internal:673", + "location": "imgui_internal:689", "ov_cimguiname": "ImPool_Contains", "ret": "bool", "signature": "(const T*)const", @@ -10530,7 +10776,7 @@ "comment": "// Number of active/alive items in the pool (for display purpose)", "defaults": {}, "funcname": "GetAliveCount", - "location": "imgui_internal:682", + "location": "imgui_internal:698", "ov_cimguiname": "ImPool_GetAliveCount", "ret": "int", "signature": "()const", @@ -10552,7 +10798,7 @@ "cimguiname": "ImPool_GetBufSize", "defaults": {}, "funcname": "GetBufSize", - "location": "imgui_internal:683", + "location": "imgui_internal:699", "ov_cimguiname": "ImPool_GetBufSize", "ret": "int", "signature": "()const", @@ -10578,7 +10824,7 @@ "cimguiname": "ImPool_GetByIndex", "defaults": {}, "funcname": "GetByIndex", - "location": "imgui_internal:670", + "location": "imgui_internal:686", "ov_cimguiname": "ImPool_GetByIndex", "ret": "T*", "signature": "(ImPoolIdx)", @@ -10604,7 +10850,7 @@ "cimguiname": "ImPool_GetByKey", "defaults": {}, "funcname": "GetByKey", - "location": "imgui_internal:669", + "location": "imgui_internal:685", "ov_cimguiname": "ImPool_GetByKey", "ret": "T*", "signature": "(ImGuiID)", @@ -10630,7 +10876,7 @@ "cimguiname": "ImPool_GetIndex", "defaults": {}, "funcname": "GetIndex", - "location": "imgui_internal:671", + "location": "imgui_internal:687", "ov_cimguiname": "ImPool_GetIndex", "ret": "ImPoolIdx", "signature": "(const T*)const", @@ -10653,7 +10899,7 @@ "comment": "// It is the map we need iterate to find valid items, since we don't have \"alive\" storage anywhere", "defaults": {}, "funcname": "GetMapSize", - "location": "imgui_internal:684", + "location": "imgui_internal:700", "ov_cimguiname": "ImPool_GetMapSize", "ret": "int", "signature": "()const", @@ -10679,7 +10925,7 @@ "cimguiname": "ImPool_GetOrAddByKey", "defaults": {}, "funcname": "GetOrAddByKey", - "location": "imgui_internal:672", + "location": "imgui_internal:688", "ov_cimguiname": "ImPool_GetOrAddByKey", "ret": "T*", "signature": "(ImGuiID)", @@ -10697,7 +10943,7 @@ "constructor": true, "defaults": {}, "funcname": "ImPool", - "location": "imgui_internal:667", + "location": "imgui_internal:683", "ov_cimguiname": "ImPool_ImPool", "signature": "()", "stname": "ImPool", @@ -10726,7 +10972,7 @@ "cimguiname": "ImPool_Remove", "defaults": {}, "funcname": "Remove", - "location": "imgui_internal:676", + "location": "imgui_internal:692", "ov_cimguiname": "ImPool_Remove_TPtr", "ret": "void", "signature": "(ImGuiID,const T*)", @@ -10754,7 +11000,7 @@ "cimguiname": "ImPool_Remove", "defaults": {}, "funcname": "Remove", - "location": "imgui_internal:677", + "location": "imgui_internal:693", "ov_cimguiname": "ImPool_Remove_PoolIdx", "ret": "void", "signature": "(ImGuiID,ImPoolIdx)", @@ -10780,7 +11026,7 @@ "cimguiname": "ImPool_Reserve", "defaults": {}, "funcname": "Reserve", - "location": "imgui_internal:678", + "location": "imgui_internal:694", "ov_cimguiname": "ImPool_Reserve", "ret": "void", "signature": "(int)", @@ -10806,7 +11052,7 @@ "cimguiname": "ImPool_TryGetMapData", "defaults": {}, "funcname": "TryGetMapData", - "location": "imgui_internal:685", + "location": "imgui_internal:701", "ov_cimguiname": "ImPool_TryGetMapData", "ret": "T*", "signature": "(ImPoolIdx)", @@ -10827,7 +11073,7 @@ "cimguiname": "ImPool_destroy", "defaults": {}, "destructor": true, - "location": "imgui_internal:668", + "location": "imgui_internal:684", "ov_cimguiname": "ImPool_destroy", "realdestructor": true, "ret": "void", @@ -10854,7 +11100,7 @@ "cimguiname": "ImRect_Add", "defaults": {}, "funcname": "Add", - "location": "imgui_internal:538", + "location": "imgui_internal:554", "ov_cimguiname": "ImRect_Add_Vec2", "ret": "void", "signature": "(const ImVec2)", @@ -10877,7 +11123,7 @@ "cimguiname": "ImRect_Add", "defaults": {}, "funcname": "Add", - "location": "imgui_internal:539", + "location": "imgui_internal:555", "ov_cimguiname": "ImRect_Add_Rect", "ret": "void", "signature": "(const ImRect)", @@ -10903,7 +11149,7 @@ "comment": "// Simple version, may lead to an inverted rectangle, which is fine for Contains/Overlaps test but not for display.", "defaults": {}, "funcname": "ClipWith", - "location": "imgui_internal:545", + "location": "imgui_internal:561", "ov_cimguiname": "ImRect_ClipWith", "ret": "void", "signature": "(const ImRect)", @@ -10929,7 +11175,7 @@ "comment": "// Full version, ensure both points are fully clipped.", "defaults": {}, "funcname": "ClipWithFull", - "location": "imgui_internal:546", + "location": "imgui_internal:562", "ov_cimguiname": "ImRect_ClipWithFull", "ret": "void", "signature": "(const ImRect)", @@ -10954,7 +11200,7 @@ "cimguiname": "ImRect_Contains", "defaults": {}, "funcname": "Contains", - "location": "imgui_internal:535", + "location": "imgui_internal:550", "ov_cimguiname": "ImRect_Contains_Vec2", "ret": "bool", "signature": "(const ImVec2)const", @@ -10977,13 +11223,42 @@ "cimguiname": "ImRect_Contains", "defaults": {}, "funcname": "Contains", - "location": "imgui_internal:536", + "location": "imgui_internal:551", "ov_cimguiname": "ImRect_Contains_Rect", "ret": "bool", "signature": "(const ImRect)const", "stname": "ImRect" } ], + "ImRect_ContainsWithPad": [ + { + "args": "(ImRect* self,const ImVec2 p,const ImVec2 pad)", + "argsT": [ + { + "name": "self", + "type": "ImRect*" + }, + { + "name": "p", + "type": "const ImVec2" + }, + { + "name": "pad", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& p,const ImVec2& pad)", + "call_args": "(p,pad)", + "cimguiname": "ImRect_ContainsWithPad", + "defaults": {}, + "funcname": "ContainsWithPad", + "location": "imgui_internal:552", + "ov_cimguiname": "ImRect_ContainsWithPad", + "ret": "bool", + "signature": "(const ImVec2,const ImVec2)const", + "stname": "ImRect" + } + ], "ImRect_Expand": [ { "args": "(ImRect* self,const float amount)", @@ -11002,7 +11277,7 @@ "cimguiname": "ImRect_Expand", "defaults": {}, "funcname": "Expand", - "location": "imgui_internal:540", + "location": "imgui_internal:556", "ov_cimguiname": "ImRect_Expand_Float", "ret": "void", "signature": "(const float)", @@ -11025,7 +11300,7 @@ "cimguiname": "ImRect_Expand", "defaults": {}, "funcname": "Expand", - "location": "imgui_internal:541", + "location": "imgui_internal:557", "ov_cimguiname": "ImRect_Expand_Vec2", "ret": "void", "signature": "(const ImVec2)", @@ -11046,7 +11321,7 @@ "cimguiname": "ImRect_Floor", "defaults": {}, "funcname": "Floor", - "location": "imgui_internal:547", + "location": "imgui_internal:563", "ov_cimguiname": "ImRect_Floor", "ret": "void", "signature": "()", @@ -11067,7 +11342,7 @@ "cimguiname": "ImRect_GetArea", "defaults": {}, "funcname": "GetArea", - "location": "imgui_internal:530", + "location": "imgui_internal:545", "ov_cimguiname": "ImRect_GetArea", "ret": "float", "signature": "()const", @@ -11093,7 +11368,7 @@ "comment": "// Bottom-left", "defaults": {}, "funcname": "GetBL", - "location": "imgui_internal:533", + "location": "imgui_internal:548", "nonUDT": 1, "ov_cimguiname": "ImRect_GetBL", "ret": "void", @@ -11120,7 +11395,7 @@ "comment": "// Bottom-right", "defaults": {}, "funcname": "GetBR", - "location": "imgui_internal:534", + "location": "imgui_internal:549", "nonUDT": 1, "ov_cimguiname": "ImRect_GetBR", "ret": "void", @@ -11146,7 +11421,7 @@ "cimguiname": "ImRect_GetCenter", "defaults": {}, "funcname": "GetCenter", - "location": "imgui_internal:526", + "location": "imgui_internal:541", "nonUDT": 1, "ov_cimguiname": "ImRect_GetCenter", "ret": "void", @@ -11168,7 +11443,7 @@ "cimguiname": "ImRect_GetHeight", "defaults": {}, "funcname": "GetHeight", - "location": "imgui_internal:529", + "location": "imgui_internal:544", "ov_cimguiname": "ImRect_GetHeight", "ret": "float", "signature": "()const", @@ -11193,7 +11468,7 @@ "cimguiname": "ImRect_GetSize", "defaults": {}, "funcname": "GetSize", - "location": "imgui_internal:527", + "location": "imgui_internal:542", "nonUDT": 1, "ov_cimguiname": "ImRect_GetSize", "ret": "void", @@ -11220,7 +11495,7 @@ "comment": "// Top-left", "defaults": {}, "funcname": "GetTL", - "location": "imgui_internal:531", + "location": "imgui_internal:546", "nonUDT": 1, "ov_cimguiname": "ImRect_GetTL", "ret": "void", @@ -11247,7 +11522,7 @@ "comment": "// Top-right", "defaults": {}, "funcname": "GetTR", - "location": "imgui_internal:532", + "location": "imgui_internal:547", "nonUDT": 1, "ov_cimguiname": "ImRect_GetTR", "ret": "void", @@ -11269,7 +11544,7 @@ "cimguiname": "ImRect_GetWidth", "defaults": {}, "funcname": "GetWidth", - "location": "imgui_internal:528", + "location": "imgui_internal:543", "ov_cimguiname": "ImRect_GetWidth", "ret": "float", "signature": "()const", @@ -11286,7 +11561,7 @@ "constructor": true, "defaults": {}, "funcname": "ImRect", - "location": "imgui_internal:521", + "location": "imgui_internal:536", "ov_cimguiname": "ImRect_ImRect_Nil", "signature": "()", "stname": "ImRect" @@ -11309,7 +11584,7 @@ "constructor": true, "defaults": {}, "funcname": "ImRect", - "location": "imgui_internal:522", + "location": "imgui_internal:537", "ov_cimguiname": "ImRect_ImRect_Vec2", "signature": "(const ImVec2,const ImVec2)", "stname": "ImRect" @@ -11328,7 +11603,7 @@ "constructor": true, "defaults": {}, "funcname": "ImRect", - "location": "imgui_internal:523", + "location": "imgui_internal:538", "ov_cimguiname": "ImRect_ImRect_Vec4", "signature": "(const ImVec4)", "stname": "ImRect" @@ -11359,7 +11634,7 @@ "constructor": true, "defaults": {}, "funcname": "ImRect", - "location": "imgui_internal:524", + "location": "imgui_internal:539", "ov_cimguiname": "ImRect_ImRect_Float", "signature": "(float,float,float,float)", "stname": "ImRect" @@ -11379,7 +11654,7 @@ "cimguiname": "ImRect_IsInverted", "defaults": {}, "funcname": "IsInverted", - "location": "imgui_internal:548", + "location": "imgui_internal:564", "ov_cimguiname": "ImRect_IsInverted", "ret": "bool", "signature": "()const", @@ -11404,7 +11679,7 @@ "cimguiname": "ImRect_Overlaps", "defaults": {}, "funcname": "Overlaps", - "location": "imgui_internal:537", + "location": "imgui_internal:553", "ov_cimguiname": "ImRect_Overlaps", "ret": "bool", "signature": "(const ImRect)const", @@ -11429,7 +11704,7 @@ "cimguiname": "ImRect_ToVec4", "defaults": {}, "funcname": "ToVec4", - "location": "imgui_internal:549", + "location": "imgui_internal:565", "nonUDT": 1, "ov_cimguiname": "ImRect_ToVec4", "ret": "void", @@ -11455,7 +11730,7 @@ "cimguiname": "ImRect_Translate", "defaults": {}, "funcname": "Translate", - "location": "imgui_internal:542", + "location": "imgui_internal:558", "ov_cimguiname": "ImRect_Translate", "ret": "void", "signature": "(const ImVec2)", @@ -11480,7 +11755,7 @@ "cimguiname": "ImRect_TranslateX", "defaults": {}, "funcname": "TranslateX", - "location": "imgui_internal:543", + "location": "imgui_internal:559", "ov_cimguiname": "ImRect_TranslateX", "ret": "void", "signature": "(float)", @@ -11505,7 +11780,7 @@ "cimguiname": "ImRect_TranslateY", "defaults": {}, "funcname": "TranslateY", - "location": "imgui_internal:544", + "location": "imgui_internal:560", "ov_cimguiname": "ImRect_TranslateY", "ret": "void", "signature": "(float)", @@ -11545,7 +11820,7 @@ "cimguiname": "ImSpanAllocator_GetArenaSizeInBytes", "defaults": {}, "funcname": "GetArenaSizeInBytes", - "location": "imgui_internal:647", + "location": "imgui_internal:663", "ov_cimguiname": "ImSpanAllocator_GetArenaSizeInBytes", "ret": "int", "signature": "()", @@ -11571,7 +11846,7 @@ "cimguiname": "ImSpanAllocator_GetSpanPtrBegin", "defaults": {}, "funcname": "GetSpanPtrBegin", - "location": "imgui_internal:649", + "location": "imgui_internal:665", "ov_cimguiname": "ImSpanAllocator_GetSpanPtrBegin", "ret": "void*", "signature": "(int)", @@ -11597,7 +11872,7 @@ "cimguiname": "ImSpanAllocator_GetSpanPtrEnd", "defaults": {}, "funcname": "GetSpanPtrEnd", - "location": "imgui_internal:650", + "location": "imgui_internal:666", "ov_cimguiname": "ImSpanAllocator_GetSpanPtrEnd", "ret": "void*", "signature": "(int)", @@ -11615,7 +11890,7 @@ "constructor": true, "defaults": {}, "funcname": "ImSpanAllocator", - "location": "imgui_internal:645", + "location": "imgui_internal:661", "ov_cimguiname": "ImSpanAllocator_ImSpanAllocator", "signature": "()", "stname": "ImSpanAllocator", @@ -11650,7 +11925,7 @@ "a": "4" }, "funcname": "Reserve", - "location": "imgui_internal:646", + "location": "imgui_internal:662", "ov_cimguiname": "ImSpanAllocator_Reserve", "ret": "void", "signature": "(int,size_t,int)", @@ -11676,7 +11951,7 @@ "cimguiname": "ImSpanAllocator_SetArenaBasePtr", "defaults": {}, "funcname": "SetArenaBasePtr", - "location": "imgui_internal:648", + "location": "imgui_internal:664", "ov_cimguiname": "ImSpanAllocator_SetArenaBasePtr", "ret": "void", "signature": "(void*)", @@ -11714,7 +11989,7 @@ "constructor": true, "defaults": {}, "funcname": "ImSpan", - "location": "imgui_internal:613", + "location": "imgui_internal:629", "ov_cimguiname": "ImSpan_ImSpan_Nil", "signature": "()", "stname": "ImSpan", @@ -11738,7 +12013,7 @@ "constructor": true, "defaults": {}, "funcname": "ImSpan", - "location": "imgui_internal:614", + "location": "imgui_internal:630", "ov_cimguiname": "ImSpan_ImSpan_TPtrInt", "signature": "(T*,int)", "stname": "ImSpan", @@ -11762,7 +12037,7 @@ "constructor": true, "defaults": {}, "funcname": "ImSpan", - "location": "imgui_internal:615", + "location": "imgui_internal:631", "ov_cimguiname": "ImSpan_ImSpan_TPtrTPtr", "signature": "(T*,T*)", "stname": "ImSpan", @@ -11783,7 +12058,7 @@ "cimguiname": "ImSpan_begin", "defaults": {}, "funcname": "begin", - "location": "imgui_internal:624", + "location": "imgui_internal:640", "ov_cimguiname": "ImSpan_begin_Nil", "ret": "T*", "signature": "()", @@ -11803,7 +12078,7 @@ "cimguiname": "ImSpan_begin", "defaults": {}, "funcname": "begin", - "location": "imgui_internal:625", + "location": "imgui_internal:641", "ov_cimguiname": "ImSpan_begin__const", "ret": "const T*", "signature": "()const", @@ -11845,7 +12120,7 @@ "cimguiname": "ImSpan_end", "defaults": {}, "funcname": "end", - "location": "imgui_internal:626", + "location": "imgui_internal:642", "ov_cimguiname": "ImSpan_end_Nil", "ret": "T*", "signature": "()", @@ -11865,7 +12140,7 @@ "cimguiname": "ImSpan_end", "defaults": {}, "funcname": "end", - "location": "imgui_internal:627", + "location": "imgui_internal:643", "ov_cimguiname": "ImSpan_end__const", "ret": "const T*", "signature": "()const", @@ -11891,7 +12166,7 @@ "cimguiname": "ImSpan_index_from_ptr", "defaults": {}, "funcname": "index_from_ptr", - "location": "imgui_internal:630", + "location": "imgui_internal:646", "ov_cimguiname": "ImSpan_index_from_ptr", "ret": "int", "signature": "(const T*)const", @@ -11921,7 +12196,7 @@ "cimguiname": "ImSpan_set", "defaults": {}, "funcname": "set", - "location": "imgui_internal:617", + "location": "imgui_internal:633", "ov_cimguiname": "ImSpan_set_Int", "ret": "void", "signature": "(T*,int)", @@ -11949,7 +12224,7 @@ "cimguiname": "ImSpan_set", "defaults": {}, "funcname": "set", - "location": "imgui_internal:618", + "location": "imgui_internal:634", "ov_cimguiname": "ImSpan_set_TPtr", "ret": "void", "signature": "(T*,T*)", @@ -11971,7 +12246,7 @@ "cimguiname": "ImSpan_size", "defaults": {}, "funcname": "size", - "location": "imgui_internal:619", + "location": "imgui_internal:635", "ov_cimguiname": "ImSpan_size", "ret": "int", "signature": "()const", @@ -11993,7 +12268,7 @@ "cimguiname": "ImSpan_size_in_bytes", "defaults": {}, "funcname": "size_in_bytes", - "location": "imgui_internal:620", + "location": "imgui_internal:636", "ov_cimguiname": "ImSpan_size_in_bytes", "ret": "int", "signature": "()const", @@ -12011,7 +12286,7 @@ "constructor": true, "defaults": {}, "funcname": "ImVec1", - "location": "imgui_internal:501", + "location": "imgui_internal:516", "ov_cimguiname": "ImVec1_ImVec1_Nil", "signature": "()", "stname": "ImVec1" @@ -12030,7 +12305,7 @@ "constructor": true, "defaults": {}, "funcname": "ImVec1", - "location": "imgui_internal:502", + "location": "imgui_internal:517", "ov_cimguiname": "ImVec1_ImVec1_Float", "signature": "(float)", "stname": "ImVec1" @@ -12065,7 +12340,7 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2", - "location": "imgui:265", + "location": "imgui:267", "ov_cimguiname": "ImVec2_ImVec2_Nil", "signature": "()", "stname": "ImVec2" @@ -12088,7 +12363,7 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2", - "location": "imgui:266", + "location": "imgui:268", "ov_cimguiname": "ImVec2_ImVec2_Float", "signature": "(float,float)", "stname": "ImVec2" @@ -12123,7 +12398,7 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2ih", - "location": "imgui_internal:509", + "location": "imgui_internal:524", "ov_cimguiname": "ImVec2ih_ImVec2ih_Nil", "signature": "()", "stname": "ImVec2ih" @@ -12146,7 +12421,7 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2ih", - "location": "imgui_internal:510", + "location": "imgui_internal:525", "ov_cimguiname": "ImVec2ih_ImVec2ih_short", "signature": "(short,short)", "stname": "ImVec2ih" @@ -12165,7 +12440,7 @@ "constructor": true, "defaults": {}, "funcname": "ImVec2ih", - "location": "imgui_internal:511", + "location": "imgui_internal:526", "ov_cimguiname": "ImVec2ih_ImVec2ih_Vec2", "signature": "(const ImVec2)", "stname": "ImVec2ih" @@ -12200,7 +12475,7 @@ "constructor": true, "defaults": {}, "funcname": "ImVec4", - "location": "imgui:278", + "location": "imgui:280", "ov_cimguiname": "ImVec4_ImVec4_Nil", "signature": "()", "stname": "ImVec4" @@ -12231,7 +12506,7 @@ "constructor": true, "defaults": {}, "funcname": "ImVec4", - "location": "imgui:279", + "location": "imgui:281", "ov_cimguiname": "ImVec4_ImVec4_Float", "signature": "(float,float,float,float)", "stname": "ImVec4" @@ -12266,7 +12541,7 @@ "constructor": true, "defaults": {}, "funcname": "ImVector", - "location": "imgui:1897", + "location": "imgui:1921", "ov_cimguiname": "ImVector_ImVector_Nil", "signature": "()", "stname": "ImVector", @@ -12286,7 +12561,7 @@ "constructor": true, "defaults": {}, "funcname": "ImVector", - "location": "imgui:1898", + "location": "imgui:1922", "ov_cimguiname": "ImVector_ImVector_Vector_T_", "signature": "(const ImVector_T )", "stname": "ImVector", @@ -12311,7 +12586,7 @@ "cimguiname": "ImVector__grow_capacity", "defaults": {}, "funcname": "_grow_capacity", - "location": "imgui:1924", + "location": "imgui:1948", "ov_cimguiname": "ImVector__grow_capacity", "ret": "int", "signature": "(int)const", @@ -12333,7 +12608,7 @@ "cimguiname": "ImVector_back", "defaults": {}, "funcname": "back", - "location": "imgui:1920", + "location": "imgui:1944", "ov_cimguiname": "ImVector_back_Nil", "ret": "T*", "retref": "&", @@ -12354,7 +12629,7 @@ "cimguiname": "ImVector_back", "defaults": {}, "funcname": "back", - "location": "imgui:1921", + "location": "imgui:1945", "ov_cimguiname": "ImVector_back__const", "ret": "const T*", "retref": "&", @@ -12377,7 +12652,7 @@ "cimguiname": "ImVector_begin", "defaults": {}, "funcname": "begin", - "location": "imgui:1914", + "location": "imgui:1938", "ov_cimguiname": "ImVector_begin_Nil", "ret": "T*", "signature": "()", @@ -12397,7 +12672,7 @@ "cimguiname": "ImVector_begin", "defaults": {}, "funcname": "begin", - "location": "imgui:1915", + "location": "imgui:1939", "ov_cimguiname": "ImVector_begin__const", "ret": "const T*", "signature": "()const", @@ -12419,7 +12694,7 @@ "cimguiname": "ImVector_capacity", "defaults": {}, "funcname": "capacity", - "location": "imgui:1910", + "location": "imgui:1934", "ov_cimguiname": "ImVector_capacity", "ret": "int", "signature": "()const", @@ -12442,7 +12717,7 @@ "comment": "// Important: does not destruct anything", "defaults": {}, "funcname": "clear", - "location": "imgui:1902", + "location": "imgui:1926", "ov_cimguiname": "ImVector_clear", "ret": "void", "signature": "()", @@ -12465,7 +12740,7 @@ "comment": "// Important: never called automatically! always explicit.", "defaults": {}, "funcname": "clear_delete", - "location": "imgui:1903", + "location": "imgui:1927", "ov_cimguiname": "ImVector_clear_delete", "ret": "void", "signature": "()", @@ -12488,7 +12763,7 @@ "comment": "// Important: never called automatically! always explicit.", "defaults": {}, "funcname": "clear_destruct", - "location": "imgui:1904", + "location": "imgui:1928", "ov_cimguiname": "ImVector_clear_destruct", "ret": "void", "signature": "()", @@ -12514,7 +12789,7 @@ "cimguiname": "ImVector_contains", "defaults": {}, "funcname": "contains", - "location": "imgui:1939", + "location": "imgui:1963", "ov_cimguiname": "ImVector_contains", "ret": "bool", "signature": "(const T)const", @@ -12535,7 +12810,7 @@ "cimguiname": "ImVector_destroy", "defaults": {}, "destructor": true, - "location": "imgui:1900", + "location": "imgui:1924", "ov_cimguiname": "ImVector_destroy", "realdestructor": true, "ret": "void", @@ -12558,7 +12833,7 @@ "cimguiname": "ImVector_empty", "defaults": {}, "funcname": "empty", - "location": "imgui:1906", + "location": "imgui:1930", "ov_cimguiname": "ImVector_empty", "ret": "bool", "signature": "()const", @@ -12580,7 +12855,7 @@ "cimguiname": "ImVector_end", "defaults": {}, "funcname": "end", - "location": "imgui:1916", + "location": "imgui:1940", "ov_cimguiname": "ImVector_end_Nil", "ret": "T*", "signature": "()", @@ -12600,7 +12875,7 @@ "cimguiname": "ImVector_end", "defaults": {}, "funcname": "end", - "location": "imgui:1917", + "location": "imgui:1941", "ov_cimguiname": "ImVector_end__const", "ret": "const T*", "signature": "()const", @@ -12626,7 +12901,7 @@ "cimguiname": "ImVector_erase", "defaults": {}, "funcname": "erase", - "location": "imgui:1935", + "location": "imgui:1959", "ov_cimguiname": "ImVector_erase_Nil", "ret": "T*", "signature": "(const T*)", @@ -12654,7 +12929,7 @@ "cimguiname": "ImVector_erase", "defaults": {}, "funcname": "erase", - "location": "imgui:1936", + "location": "imgui:1960", "ov_cimguiname": "ImVector_erase_TPtr", "ret": "T*", "signature": "(const T*,const T*)", @@ -12680,7 +12955,7 @@ "cimguiname": "ImVector_erase_unsorted", "defaults": {}, "funcname": "erase_unsorted", - "location": "imgui:1937", + "location": "imgui:1961", "ov_cimguiname": "ImVector_erase_unsorted", "ret": "T*", "signature": "(const T*)", @@ -12706,7 +12981,7 @@ "cimguiname": "ImVector_find", "defaults": {}, "funcname": "find", - "location": "imgui:1940", + "location": "imgui:1964", "ov_cimguiname": "ImVector_find_Nil", "ret": "T*", "signature": "(const T)", @@ -12730,7 +13005,7 @@ "cimguiname": "ImVector_find", "defaults": {}, "funcname": "find", - "location": "imgui:1941", + "location": "imgui:1965", "ov_cimguiname": "ImVector_find__const", "ret": "const T*", "signature": "(const T)const", @@ -12756,7 +13031,7 @@ "cimguiname": "ImVector_find_erase", "defaults": {}, "funcname": "find_erase", - "location": "imgui:1942", + "location": "imgui:1967", "ov_cimguiname": "ImVector_find_erase", "ret": "bool", "signature": "(const T)", @@ -12782,7 +13057,7 @@ "cimguiname": "ImVector_find_erase_unsorted", "defaults": {}, "funcname": "find_erase_unsorted", - "location": "imgui:1943", + "location": "imgui:1968", "ov_cimguiname": "ImVector_find_erase_unsorted", "ret": "bool", "signature": "(const T)", @@ -12790,6 +13065,32 @@ "templated": true } ], + "ImVector_find_index": [ + { + "args": "(ImVector* self,const T v)", + "argsT": [ + { + "name": "self", + "type": "ImVector*" + }, + { + "name": "v", + "type": "const T" + } + ], + "argsoriginal": "(const T& v)", + "call_args": "(v)", + "cimguiname": "ImVector_find_index", + "defaults": {}, + "funcname": "find_index", + "location": "imgui:1966", + "ov_cimguiname": "ImVector_find_index", + "ret": "int", + "signature": "(const T)const", + "stname": "ImVector", + "templated": true + } + ], "ImVector_front": [ { "args": "(ImVector* self)", @@ -12804,7 +13105,7 @@ "cimguiname": "ImVector_front", "defaults": {}, "funcname": "front", - "location": "imgui:1918", + "location": "imgui:1942", "ov_cimguiname": "ImVector_front_Nil", "ret": "T*", "retref": "&", @@ -12825,7 +13126,7 @@ "cimguiname": "ImVector_front", "defaults": {}, "funcname": "front", - "location": "imgui:1919", + "location": "imgui:1943", "ov_cimguiname": "ImVector_front__const", "ret": "const T*", "retref": "&", @@ -12852,7 +13153,7 @@ "cimguiname": "ImVector_index_from_ptr", "defaults": {}, "funcname": "index_from_ptr", - "location": "imgui:1944", + "location": "imgui:1969", "ov_cimguiname": "ImVector_index_from_ptr", "ret": "int", "signature": "(const T*)const", @@ -12882,7 +13183,7 @@ "cimguiname": "ImVector_insert", "defaults": {}, "funcname": "insert", - "location": "imgui:1938", + "location": "imgui:1962", "ov_cimguiname": "ImVector_insert", "ret": "T*", "signature": "(const T*,const T)", @@ -12904,7 +13205,7 @@ "cimguiname": "ImVector_max_size", "defaults": {}, "funcname": "max_size", - "location": "imgui:1909", + "location": "imgui:1933", "ov_cimguiname": "ImVector_max_size", "ret": "int", "signature": "()const", @@ -12926,7 +13227,7 @@ "cimguiname": "ImVector_pop_back", "defaults": {}, "funcname": "pop_back", - "location": "imgui:1933", + "location": "imgui:1957", "ov_cimguiname": "ImVector_pop_back", "ret": "void", "signature": "()", @@ -12952,7 +13253,7 @@ "cimguiname": "ImVector_push_back", "defaults": {}, "funcname": "push_back", - "location": "imgui:1932", + "location": "imgui:1956", "ov_cimguiname": "ImVector_push_back", "ret": "void", "signature": "(const T)", @@ -12978,7 +13279,7 @@ "cimguiname": "ImVector_push_front", "defaults": {}, "funcname": "push_front", - "location": "imgui:1934", + "location": "imgui:1958", "ov_cimguiname": "ImVector_push_front", "ret": "void", "signature": "(const T)", @@ -13004,7 +13305,7 @@ "cimguiname": "ImVector_reserve", "defaults": {}, "funcname": "reserve", - "location": "imgui:1928", + "location": "imgui:1952", "ov_cimguiname": "ImVector_reserve", "ret": "void", "signature": "(int)", @@ -13030,7 +13331,7 @@ "cimguiname": "ImVector_reserve_discard", "defaults": {}, "funcname": "reserve_discard", - "location": "imgui:1929", + "location": "imgui:1953", "ov_cimguiname": "ImVector_reserve_discard", "ret": "void", "signature": "(int)", @@ -13056,7 +13357,7 @@ "cimguiname": "ImVector_resize", "defaults": {}, "funcname": "resize", - "location": "imgui:1925", + "location": "imgui:1949", "ov_cimguiname": "ImVector_resize_Nil", "ret": "void", "signature": "(int)", @@ -13084,7 +13385,7 @@ "cimguiname": "ImVector_resize", "defaults": {}, "funcname": "resize", - "location": "imgui:1926", + "location": "imgui:1950", "ov_cimguiname": "ImVector_resize_T", "ret": "void", "signature": "(int,const T)", @@ -13111,7 +13412,7 @@ "comment": "// Resize a vector to a smaller size, guaranteed not to cause a reallocation", "defaults": {}, "funcname": "shrink", - "location": "imgui:1927", + "location": "imgui:1951", "ov_cimguiname": "ImVector_shrink", "ret": "void", "signature": "(int)", @@ -13133,7 +13434,7 @@ "cimguiname": "ImVector_size", "defaults": {}, "funcname": "size", - "location": "imgui:1907", + "location": "imgui:1931", "ov_cimguiname": "ImVector_size", "ret": "int", "signature": "()const", @@ -13155,7 +13456,7 @@ "cimguiname": "ImVector_size_in_bytes", "defaults": {}, "funcname": "size_in_bytes", - "location": "imgui:1908", + "location": "imgui:1932", "ov_cimguiname": "ImVector_size_in_bytes", "ret": "int", "signature": "()const", @@ -13182,7 +13483,7 @@ "cimguiname": "ImVector_swap", "defaults": {}, "funcname": "swap", - "location": "imgui:1922", + "location": "imgui:1946", "ov_cimguiname": "ImVector_swap", "ret": "void", "signature": "(ImVector_T *)", @@ -13211,7 +13512,7 @@ "flags": "0" }, "funcname": "AcceptDragDropPayload", - "location": "imgui:854", + "location": "imgui:861", "namespace": "ImGui", "ov_cimguiname": "igAcceptDragDropPayload", "ret": "const ImGuiPayload*", @@ -13234,7 +13535,7 @@ "comment": "// Activate an item by ID (button, checkbox, tree node etc.). Activation is queued and processed on the next frame when the item is encountered again.", "defaults": {}, "funcname": "ActivateItemByID", - "location": "imgui_internal:3187", + "location": "imgui_internal:3305", "namespace": "ImGui", "ov_cimguiname": "igActivateItemByID", "ret": "void", @@ -13260,7 +13561,7 @@ "cimguiname": "igAddContextHook", "defaults": {}, "funcname": "AddContextHook", - "location": "imgui_internal:3055", + "location": "imgui_internal:3170", "namespace": "ImGui", "ov_cimguiname": "igAddContextHook", "ret": "ImGuiID", @@ -13268,6 +13569,36 @@ "stname": "" } ], + "igAddDrawListToDrawDataEx": [ + { + "args": "(ImDrawData* draw_data,ImVector_ImDrawListPtr* out_list,ImDrawList* draw_list)", + "argsT": [ + { + "name": "draw_data", + "type": "ImDrawData*" + }, + { + "name": "out_list", + "type": "ImVector_ImDrawListPtr*" + }, + { + "name": "draw_list", + "type": "ImDrawList*" + } + ], + "argsoriginal": "(ImDrawData* draw_data,ImVector* out_list,ImDrawList* draw_list)", + "call_args": "(draw_data,out_list,draw_list)", + "cimguiname": "igAddDrawListToDrawDataEx", + "defaults": {}, + "funcname": "AddDrawListToDrawDataEx", + "location": "imgui_internal:3155", + "namespace": "ImGui", + "ov_cimguiname": "igAddDrawListToDrawDataEx", + "ret": "void", + "signature": "(ImDrawData*,ImVector_ImDrawListPtr*,ImDrawList*)", + "stname": "" + } + ], "igAddSettingsHandler": [ { "args": "(const ImGuiSettingsHandler* handler)", @@ -13282,7 +13613,7 @@ "cimguiname": "igAddSettingsHandler", "defaults": {}, "funcname": "AddSettingsHandler", - "location": "imgui_internal:3072", + "location": "imgui_internal:3187", "namespace": "ImGui", "ov_cimguiname": "igAddSettingsHandler", "ret": "void", @@ -13300,7 +13631,7 @@ "comment": "// vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item)", "defaults": {}, "funcname": "AlignTextToFramePadding", - "location": "imgui:468", + "location": "imgui:473", "namespace": "ImGui", "ov_cimguiname": "igAlignTextToFramePadding", "ret": "void", @@ -13327,7 +13658,7 @@ "comment": "// square button with an arrow shape", "defaults": {}, "funcname": "ArrowButton", - "location": "imgui:516", + "location": "imgui:521", "namespace": "ImGui", "ov_cimguiname": "igArrowButton", "ret": "bool", @@ -13363,7 +13694,7 @@ "flags": "0" }, "funcname": "ArrowButtonEx", - "location": "imgui_internal:3458", + "location": "imgui_internal:3590", "namespace": "ImGui", "ov_cimguiname": "igArrowButtonEx", "ret": "bool", @@ -13396,7 +13727,7 @@ "p_open": "NULL" }, "funcname": "Begin", - "location": "imgui:339", + "location": "imgui:341", "namespace": "ImGui", "ov_cimguiname": "igBegin", "ret": "bool", @@ -13406,7 +13737,7 @@ ], "igBeginChild": [ { - "args": "(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags)", + "args": "(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags window_flags)", "argsT": [ { "name": "str_id", @@ -13421,20 +13752,20 @@ "type": "bool" }, { - "name": "flags", + "name": "window_flags", "type": "ImGuiWindowFlags" } ], - "argsoriginal": "(const char* str_id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)", - "call_args": "(str_id,size,border,flags)", + "argsoriginal": "(const char* str_id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags window_flags=0)", + "call_args": "(str_id,size,border,window_flags)", "cimguiname": "igBeginChild", "defaults": { "border": "false", - "flags": "0", - "size": "ImVec2(0,0)" + "size": "ImVec2(0,0)", + "window_flags": "0" }, "funcname": "BeginChild", - "location": "imgui:350", + "location": "imgui:352", "namespace": "ImGui", "ov_cimguiname": "igBeginChild_Str", "ret": "bool", @@ -13442,7 +13773,7 @@ "stname": "" }, { - "args": "(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags)", + "args": "(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags window_flags)", "argsT": [ { "name": "id", @@ -13457,20 +13788,20 @@ "type": "bool" }, { - "name": "flags", + "name": "window_flags", "type": "ImGuiWindowFlags" } ], - "argsoriginal": "(ImGuiID id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags flags=0)", - "call_args": "(id,size,border,flags)", + "argsoriginal": "(ImGuiID id,const ImVec2& size=ImVec2(0,0),bool border=false,ImGuiWindowFlags window_flags=0)", + "call_args": "(id,size,border,window_flags)", "cimguiname": "igBeginChild", "defaults": { "border": "false", - "flags": "0", - "size": "ImVec2(0,0)" + "size": "ImVec2(0,0)", + "window_flags": "0" }, "funcname": "BeginChild", - "location": "imgui:351", + "location": "imgui:353", "namespace": "ImGui", "ov_cimguiname": "igBeginChild_ID", "ret": "bool", @@ -13480,7 +13811,7 @@ ], "igBeginChildEx": [ { - "args": "(const char* name,ImGuiID id,const ImVec2 size_arg,bool border,ImGuiWindowFlags flags)", + "args": "(const char* name,ImGuiID id,const ImVec2 size_arg,bool border,ImGuiWindowFlags window_flags)", "argsT": [ { "name": "name", @@ -13499,16 +13830,16 @@ "type": "bool" }, { - "name": "flags", + "name": "window_flags", "type": "ImGuiWindowFlags" } ], - "argsoriginal": "(const char* name,ImGuiID id,const ImVec2& size_arg,bool border,ImGuiWindowFlags flags)", - "call_args": "(name,id,size_arg,border,flags)", + "argsoriginal": "(const char* name,ImGuiID id,const ImVec2& size_arg,bool border,ImGuiWindowFlags window_flags)", + "call_args": "(name,id,size_arg,border,window_flags)", "cimguiname": "igBeginChildEx", "defaults": {}, "funcname": "BeginChildEx", - "location": "imgui_internal:3143", + "location": "imgui_internal:3258", "namespace": "ImGui", "ov_cimguiname": "igBeginChildEx", "ret": "bool", @@ -13541,7 +13872,7 @@ "flags": "0" }, "funcname": "BeginChildFrame", - "location": "imgui:920", + "location": "imgui:927", "namespace": "ImGui", "ov_cimguiname": "igBeginChildFrame", "ret": "bool", @@ -13574,7 +13905,7 @@ "flags": "0" }, "funcname": "BeginColumns", - "location": "imgui_internal:3344", + "location": "imgui_internal:3473", "namespace": "ImGui", "ov_cimguiname": "igBeginColumns", "ret": "void", @@ -13606,7 +13937,7 @@ "flags": "0" }, "funcname": "BeginCombo", - "location": "imgui:533", + "location": "imgui:539", "namespace": "ImGui", "ov_cimguiname": "igBeginCombo", "ret": "bool", @@ -13636,7 +13967,7 @@ "cimguiname": "igBeginComboPopup", "defaults": {}, "funcname": "BeginComboPopup", - "location": "imgui_internal:3164", + "location": "imgui_internal:3280", "namespace": "ImGui", "ov_cimguiname": "igBeginComboPopup", "ret": "bool", @@ -13653,7 +13984,7 @@ "cimguiname": "igBeginComboPreview", "defaults": {}, "funcname": "BeginComboPreview", - "location": "imgui_internal:3165", + "location": "imgui_internal:3281", "namespace": "ImGui", "ov_cimguiname": "igBeginComboPreview", "ret": "bool", @@ -13677,7 +14008,7 @@ "disabled": "true" }, "funcname": "BeginDisabled", - "location": "imgui:862", + "location": "imgui:869", "namespace": "ImGui", "ov_cimguiname": "igBeginDisabled", "ret": "void", @@ -13699,7 +14030,7 @@ "cimguiname": "igBeginDockableDragDropSource", "defaults": {}, "funcname": "BeginDockableDragDropSource", - "location": "imgui_internal:3295", + "location": "imgui_internal:3418", "namespace": "ImGui", "ov_cimguiname": "igBeginDockableDragDropSource", "ret": "void", @@ -13721,7 +14052,7 @@ "cimguiname": "igBeginDockableDragDropTarget", "defaults": {}, "funcname": "BeginDockableDragDropTarget", - "location": "imgui_internal:3296", + "location": "imgui_internal:3419", "namespace": "ImGui", "ov_cimguiname": "igBeginDockableDragDropTarget", "ret": "void", @@ -13747,7 +14078,7 @@ "cimguiname": "igBeginDocked", "defaults": {}, "funcname": "BeginDocked", - "location": "imgui_internal:3294", + "location": "imgui_internal:3417", "namespace": "ImGui", "ov_cimguiname": "igBeginDocked", "ret": "void", @@ -13772,7 +14103,7 @@ "flags": "0" }, "funcname": "BeginDragDropSource", - "location": "imgui:850", + "location": "imgui:857", "namespace": "ImGui", "ov_cimguiname": "igBeginDragDropSource", "ret": "bool", @@ -13790,7 +14121,7 @@ "comment": "// call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget()", "defaults": {}, "funcname": "BeginDragDropTarget", - "location": "imgui:853", + "location": "imgui:860", "namespace": "ImGui", "ov_cimguiname": "igBeginDragDropTarget", "ret": "bool", @@ -13816,7 +14147,7 @@ "cimguiname": "igBeginDragDropTargetCustom", "defaults": {}, "funcname": "BeginDragDropTargetCustom", - "location": "imgui_internal:3337", + "location": "imgui_internal:3460", "namespace": "ImGui", "ov_cimguiname": "igBeginDragDropTargetCustom", "ret": "bool", @@ -13834,7 +14165,7 @@ "comment": "// lock horizontal starting position", "defaults": {}, "funcname": "BeginGroup", - "location": "imgui:457", + "location": "imgui:471", "namespace": "ImGui", "ov_cimguiname": "igBeginGroup", "ret": "void", @@ -13852,7 +14183,7 @@ "comment": "// begin/append a tooltip window if preceding item was hovered.", "defaults": {}, "funcname": "BeginItemTooltip", - "location": "imgui:690", + "location": "imgui:696", "namespace": "ImGui", "ov_cimguiname": "igBeginItemTooltip", "ret": "bool", @@ -13881,7 +14212,7 @@ "size": "ImVec2(0,0)" }, "funcname": "BeginListBox", - "location": "imgui:645", + "location": "imgui:651", "namespace": "ImGui", "ov_cimguiname": "igBeginListBox", "ret": "bool", @@ -13899,7 +14230,7 @@ "comment": "// create and append to a full screen menu-bar.", "defaults": {}, "funcname": "BeginMainMenuBar", - "location": "imgui:671", + "location": "imgui:677", "namespace": "ImGui", "ov_cimguiname": "igBeginMainMenuBar", "ret": "bool", @@ -13928,7 +14259,7 @@ "enabled": "true" }, "funcname": "BeginMenu", - "location": "imgui:673", + "location": "imgui:679", "namespace": "ImGui", "ov_cimguiname": "igBeginMenu", "ret": "bool", @@ -13946,7 +14277,7 @@ "comment": "// append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window).", "defaults": {}, "funcname": "BeginMenuBar", - "location": "imgui:669", + "location": "imgui:675", "namespace": "ImGui", "ov_cimguiname": "igBeginMenuBar", "ret": "bool", @@ -13978,7 +14309,7 @@ "enabled": "true" }, "funcname": "BeginMenuEx", - "location": "imgui_internal:3160", + "location": "imgui_internal:3276", "namespace": "ImGui", "ov_cimguiname": "igBeginMenuEx", "ret": "bool", @@ -14007,7 +14338,7 @@ "flags": "0" }, "funcname": "BeginPopup", - "location": "imgui:706", + "location": "imgui:712", "namespace": "ImGui", "ov_cimguiname": "igBeginPopup", "ret": "bool", @@ -14037,7 +14368,7 @@ "str_id": "NULL" }, "funcname": "BeginPopupContextItem", - "location": "imgui:728", + "location": "imgui:734", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupContextItem", "ret": "bool", @@ -14067,7 +14398,7 @@ "str_id": "NULL" }, "funcname": "BeginPopupContextVoid", - "location": "imgui:730", + "location": "imgui:736", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupContextVoid", "ret": "bool", @@ -14097,7 +14428,7 @@ "str_id": "NULL" }, "funcname": "BeginPopupContextWindow", - "location": "imgui:729", + "location": "imgui:735", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupContextWindow", "ret": "bool", @@ -14123,7 +14454,7 @@ "cimguiname": "igBeginPopupEx", "defaults": {}, "funcname": "BeginPopupEx", - "location": "imgui_internal:3149", + "location": "imgui_internal:3264", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupEx", "ret": "bool", @@ -14157,7 +14488,7 @@ "p_open": "NULL" }, "funcname": "BeginPopupModal", - "location": "imgui:707", + "location": "imgui:713", "namespace": "ImGui", "ov_cimguiname": "igBeginPopupModal", "ret": "bool", @@ -14186,7 +14517,7 @@ "flags": "0" }, "funcname": "BeginTabBar", - "location": "imgui:808", + "location": "imgui:815", "namespace": "ImGui", "ov_cimguiname": "igBeginTabBar", "ret": "bool", @@ -14196,7 +14527,7 @@ ], "igBeginTabBarEx": [ { - "args": "(ImGuiTabBar* tab_bar,const ImRect bb,ImGuiTabBarFlags flags,ImGuiDockNode* dock_node)", + "args": "(ImGuiTabBar* tab_bar,const ImRect bb,ImGuiTabBarFlags flags)", "argsT": [ { "name": "tab_bar", @@ -14209,22 +14540,18 @@ { "name": "flags", "type": "ImGuiTabBarFlags" - }, - { - "name": "dock_node", - "type": "ImGuiDockNode*" } ], - "argsoriginal": "(ImGuiTabBar* tab_bar,const ImRect& bb,ImGuiTabBarFlags flags,ImGuiDockNode* dock_node)", - "call_args": "(tab_bar,bb,flags,dock_node)", + "argsoriginal": "(ImGuiTabBar* tab_bar,const ImRect& bb,ImGuiTabBarFlags flags)", + "call_args": "(tab_bar,bb,flags)", "cimguiname": "igBeginTabBarEx", "defaults": {}, "funcname": "BeginTabBarEx", - "location": "imgui_internal:3410", + "location": "imgui_internal:3542", "namespace": "ImGui", "ov_cimguiname": "igBeginTabBarEx", "ret": "bool", - "signature": "(ImGuiTabBar*,const ImRect,ImGuiTabBarFlags,ImGuiDockNode*)", + "signature": "(ImGuiTabBar*,const ImRect,ImGuiTabBarFlags)", "stname": "" } ], @@ -14254,7 +14581,7 @@ "p_open": "NULL" }, "funcname": "BeginTabItem", - "location": "imgui:810", + "location": "imgui:817", "namespace": "ImGui", "ov_cimguiname": "igBeginTabItem", "ret": "bool", @@ -14296,7 +14623,7 @@ "outer_size": "ImVec2(0.0f,0.0f)" }, "funcname": "BeginTable", - "location": "imgui:761", + "location": "imgui:767", "namespace": "ImGui", "ov_cimguiname": "igBeginTable", "ret": "bool", @@ -14342,7 +14669,7 @@ "outer_size": "ImVec2(0,0)" }, "funcname": "BeginTableEx", - "location": "imgui_internal:3366", + "location": "imgui_internal:3498", "namespace": "ImGui", "ov_cimguiname": "igBeginTableEx", "ret": "bool", @@ -14360,7 +14687,7 @@ "comment": "// begin/append a tooltip window.", "defaults": {}, "funcname": "BeginTooltip", - "location": "imgui:681", + "location": "imgui:687", "namespace": "ImGui", "ov_cimguiname": "igBeginTooltip", "ret": "bool", @@ -14386,7 +14713,7 @@ "cimguiname": "igBeginTooltipEx", "defaults": {}, "funcname": "BeginTooltipEx", - "location": "imgui_internal:3150", + "location": "imgui_internal:3265", "namespace": "ImGui", "ov_cimguiname": "igBeginTooltipEx", "ret": "bool", @@ -14394,6 +14721,23 @@ "stname": "" } ], + "igBeginTooltipHidden": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igBeginTooltipHidden", + "defaults": {}, + "funcname": "BeginTooltipHidden", + "location": "imgui_internal:3266", + "namespace": "ImGui", + "ov_cimguiname": "igBeginTooltipHidden", + "ret": "bool", + "signature": "()", + "stname": "" + } + ], "igBeginViewportSideBar": [ { "args": "(const char* name,ImGuiViewport* viewport,ImGuiDir dir,float size,ImGuiWindowFlags window_flags)", @@ -14424,7 +14768,7 @@ "cimguiname": "igBeginViewportSideBar", "defaults": {}, "funcname": "BeginViewportSideBar", - "location": "imgui_internal:3159", + "location": "imgui_internal:3275", "namespace": "ImGui", "ov_cimguiname": "igBeginViewportSideBar", "ret": "bool", @@ -14446,7 +14790,7 @@ "cimguiname": "igBringWindowToDisplayBack", "defaults": {}, "funcname": "BringWindowToDisplayBack", - "location": "imgui_internal:3032", + "location": "imgui_internal:3146", "namespace": "ImGui", "ov_cimguiname": "igBringWindowToDisplayBack", "ret": "void", @@ -14472,7 +14816,7 @@ "cimguiname": "igBringWindowToDisplayBehind", "defaults": {}, "funcname": "BringWindowToDisplayBehind", - "location": "imgui_internal:3033", + "location": "imgui_internal:3147", "namespace": "ImGui", "ov_cimguiname": "igBringWindowToDisplayBehind", "ret": "void", @@ -14494,7 +14838,7 @@ "cimguiname": "igBringWindowToDisplayFront", "defaults": {}, "funcname": "BringWindowToDisplayFront", - "location": "imgui_internal:3031", + "location": "imgui_internal:3145", "namespace": "ImGui", "ov_cimguiname": "igBringWindowToDisplayFront", "ret": "void", @@ -14516,7 +14860,7 @@ "cimguiname": "igBringWindowToFocusFront", "defaults": {}, "funcname": "BringWindowToFocusFront", - "location": "imgui_internal:3030", + "location": "imgui_internal:3144", "namespace": "ImGui", "ov_cimguiname": "igBringWindowToFocusFront", "ret": "void", @@ -14534,7 +14878,7 @@ "comment": "// draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses", "defaults": {}, "funcname": "Bullet", - "location": "imgui:523", + "location": "imgui:528", "namespace": "ImGui", "ov_cimguiname": "igBullet", "ret": "void", @@ -14562,7 +14906,7 @@ "defaults": {}, "funcname": "BulletText", "isvararg": "...)", - "location": "imgui:506", + "location": "imgui:511", "namespace": "ImGui", "ov_cimguiname": "igBulletText", "ret": "void", @@ -14588,7 +14932,7 @@ "cimguiname": "igBulletTextV", "defaults": {}, "funcname": "BulletTextV", - "location": "imgui:507", + "location": "imgui:512", "namespace": "ImGui", "ov_cimguiname": "igBulletTextV", "ret": "void", @@ -14617,7 +14961,7 @@ "size": "ImVec2(0,0)" }, "funcname": "Button", - "location": "imgui:513", + "location": "imgui:518", "namespace": "ImGui", "ov_cimguiname": "igButton", "ret": "bool", @@ -14657,7 +15001,7 @@ "flags": "0" }, "funcname": "ButtonBehavior", - "location": "imgui_internal:3476", + "location": "imgui_internal:3608", "namespace": "ImGui", "ov_cimguiname": "igButtonBehavior", "ret": "bool", @@ -14690,7 +15034,7 @@ "size_arg": "ImVec2(0,0)" }, "funcname": "ButtonEx", - "location": "imgui_internal:3457", + "location": "imgui_internal:3589", "namespace": "ImGui", "ov_cimguiname": "igButtonEx", "ret": "bool", @@ -14724,7 +15068,7 @@ "cimguiname": "igCalcItemSize", "defaults": {}, "funcname": "CalcItemSize", - "location": "imgui_internal:3124", + "location": "imgui_internal:3239", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igCalcItemSize", @@ -14743,7 +15087,7 @@ "comment": "// width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions.", "defaults": {}, "funcname": "CalcItemWidth", - "location": "imgui:429", + "location": "imgui:431", "namespace": "ImGui", "ov_cimguiname": "igCalcItemWidth", "ret": "float", @@ -14773,7 +15117,7 @@ "cimguiname": "igCalcRoundingFlagsForRectInRect", "defaults": {}, "funcname": "CalcRoundingFlagsForRectInRect", - "location": "imgui_internal:3453", + "location": "imgui_internal:3585", "namespace": "ImGui", "ov_cimguiname": "igCalcRoundingFlagsForRectInRect", "ret": "ImDrawFlags", @@ -14815,7 +15159,7 @@ "wrap_width": "-1.0f" }, "funcname": "CalcTextSize", - "location": "imgui:924", + "location": "imgui:931", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igCalcTextSize", @@ -14850,7 +15194,7 @@ "cimguiname": "igCalcTypematicRepeatAmount", "defaults": {}, "funcname": "CalcTypematicRepeatAmount", - "location": "imgui_internal:3217", + "location": "imgui_internal:3335", "namespace": "ImGui", "ov_cimguiname": "igCalcTypematicRepeatAmount", "ret": "int", @@ -14876,7 +15220,7 @@ "cimguiname": "igCalcWindowNextAutoFitSize", "defaults": {}, "funcname": "CalcWindowNextAutoFitSize", - "location": "imgui_internal:3013", + "location": "imgui_internal:3127", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igCalcWindowNextAutoFitSize", @@ -14903,7 +15247,7 @@ "cimguiname": "igCalcWrapWidthForPos", "defaults": {}, "funcname": "CalcWrapWidthForPos", - "location": "imgui_internal:3125", + "location": "imgui_internal:3240", "namespace": "ImGui", "ov_cimguiname": "igCalcWrapWidthForPos", "ret": "float", @@ -14929,7 +15273,7 @@ "cimguiname": "igCallContextHooks", "defaults": {}, "funcname": "CallContextHooks", - "location": "imgui_internal:3057", + "location": "imgui_internal:3172", "namespace": "ImGui", "ov_cimguiname": "igCallContextHooks", "ret": "void", @@ -14955,7 +15299,7 @@ "cimguiname": "igCheckbox", "defaults": {}, "funcname": "Checkbox", - "location": "imgui:517", + "location": "imgui:522", "namespace": "ImGui", "ov_cimguiname": "igCheckbox", "ret": "bool", @@ -14985,7 +15329,7 @@ "cimguiname": "igCheckboxFlags", "defaults": {}, "funcname": "CheckboxFlags", - "location": "imgui:518", + "location": "imgui:523", "namespace": "ImGui", "ov_cimguiname": "igCheckboxFlags_IntPtr", "ret": "bool", @@ -15013,7 +15357,7 @@ "cimguiname": "igCheckboxFlags", "defaults": {}, "funcname": "CheckboxFlags", - "location": "imgui:519", + "location": "imgui:524", "namespace": "ImGui", "ov_cimguiname": "igCheckboxFlags_UintPtr", "ret": "bool", @@ -15041,7 +15385,7 @@ "cimguiname": "igCheckboxFlags", "defaults": {}, "funcname": "CheckboxFlags", - "location": "imgui_internal:3462", + "location": "imgui_internal:3594", "namespace": "ImGui", "ov_cimguiname": "igCheckboxFlags_S64Ptr", "ret": "bool", @@ -15069,7 +15413,7 @@ "cimguiname": "igCheckboxFlags", "defaults": {}, "funcname": "CheckboxFlags", - "location": "imgui_internal:3463", + "location": "imgui_internal:3595", "namespace": "ImGui", "ov_cimguiname": "igCheckboxFlags_U64Ptr", "ret": "bool", @@ -15086,7 +15430,7 @@ "cimguiname": "igClearActiveID", "defaults": {}, "funcname": "ClearActiveID", - "location": "imgui_internal:3107", + "location": "imgui_internal:3222", "namespace": "ImGui", "ov_cimguiname": "igClearActiveID", "ret": "void", @@ -15103,7 +15447,7 @@ "cimguiname": "igClearDragDrop", "defaults": {}, "funcname": "ClearDragDrop", - "location": "imgui_internal:3338", + "location": "imgui_internal:3461", "namespace": "ImGui", "ov_cimguiname": "igClearDragDrop", "ret": "void", @@ -15120,7 +15464,7 @@ "cimguiname": "igClearIniSettings", "defaults": {}, "funcname": "ClearIniSettings", - "location": "imgui_internal:3071", + "location": "imgui_internal:3186", "namespace": "ImGui", "ov_cimguiname": "igClearIniSettings", "ret": "void", @@ -15142,7 +15486,7 @@ "cimguiname": "igClearWindowSettings", "defaults": {}, "funcname": "ClearWindowSettings", - "location": "imgui_internal:3080", + "location": "imgui_internal:3195", "namespace": "ImGui", "ov_cimguiname": "igClearWindowSettings", "ret": "void", @@ -15168,7 +15512,7 @@ "cimguiname": "igCloseButton", "defaults": {}, "funcname": "CloseButton", - "location": "imgui_internal:3466", + "location": "imgui_internal:3598", "namespace": "ImGui", "ov_cimguiname": "igCloseButton", "ret": "bool", @@ -15186,7 +15530,7 @@ "comment": "// manually close the popup we have begin-ed into.", "defaults": {}, "funcname": "CloseCurrentPopup", - "location": "imgui:721", + "location": "imgui:727", "namespace": "ImGui", "ov_cimguiname": "igCloseCurrentPopup", "ret": "void", @@ -15212,7 +15556,7 @@ "cimguiname": "igClosePopupToLevel", "defaults": {}, "funcname": "ClosePopupToLevel", - "location": "imgui_internal:3145", + "location": "imgui_internal:3260", "namespace": "ImGui", "ov_cimguiname": "igClosePopupToLevel", "ret": "void", @@ -15229,7 +15573,7 @@ "cimguiname": "igClosePopupsExceptModals", "defaults": {}, "funcname": "ClosePopupsExceptModals", - "location": "imgui_internal:3147", + "location": "imgui_internal:3262", "namespace": "ImGui", "ov_cimguiname": "igClosePopupsExceptModals", "ret": "void", @@ -15255,7 +15599,7 @@ "cimguiname": "igClosePopupsOverWindow", "defaults": {}, "funcname": "ClosePopupsOverWindow", - "location": "imgui_internal:3146", + "location": "imgui_internal:3261", "namespace": "ImGui", "ov_cimguiname": "igClosePopupsOverWindow", "ret": "void", @@ -15285,7 +15629,7 @@ "cimguiname": "igCollapseButton", "defaults": {}, "funcname": "CollapseButton", - "location": "imgui_internal:3467", + "location": "imgui_internal:3599", "namespace": "ImGui", "ov_cimguiname": "igCollapseButton", "ret": "bool", @@ -15314,7 +15658,7 @@ "flags": "0" }, "funcname": "CollapsingHeader", - "location": "imgui:629", + "location": "imgui:635", "namespace": "ImGui", "ov_cimguiname": "igCollapsingHeader_TreeNodeFlags", "ret": "bool", @@ -15345,7 +15689,7 @@ "flags": "0" }, "funcname": "CollapsingHeader", - "location": "imgui:630", + "location": "imgui:636", "namespace": "ImGui", "ov_cimguiname": "igCollapsingHeader_BoolPtr", "ret": "bool", @@ -15383,7 +15727,7 @@ "size": "ImVec2(0,0)" }, "funcname": "ColorButton", - "location": "imgui:610", + "location": "imgui:616", "namespace": "ImGui", "ov_cimguiname": "igColorButton", "ret": "bool", @@ -15405,7 +15749,7 @@ "cimguiname": "igColorConvertFloat4ToU32", "defaults": {}, "funcname": "ColorConvertFloat4ToU32", - "location": "imgui:928", + "location": "imgui:935", "namespace": "ImGui", "ov_cimguiname": "igColorConvertFloat4ToU32", "ret": "ImU32", @@ -15450,7 +15794,7 @@ "cimguiname": "igColorConvertHSVtoRGB", "defaults": {}, "funcname": "ColorConvertHSVtoRGB", - "location": "imgui:930", + "location": "imgui:937", "namespace": "ImGui", "ov_cimguiname": "igColorConvertHSVtoRGB", "ret": "void", @@ -15495,7 +15839,7 @@ "cimguiname": "igColorConvertRGBtoHSV", "defaults": {}, "funcname": "ColorConvertRGBtoHSV", - "location": "imgui:929", + "location": "imgui:936", "namespace": "ImGui", "ov_cimguiname": "igColorConvertRGBtoHSV", "ret": "void", @@ -15521,7 +15865,7 @@ "cimguiname": "igColorConvertU32ToFloat4", "defaults": {}, "funcname": "ColorConvertU32ToFloat4", - "location": "imgui:927", + "location": "imgui:934", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igColorConvertU32ToFloat4", @@ -15554,7 +15898,7 @@ "flags": "0" }, "funcname": "ColorEdit3", - "location": "imgui:606", + "location": "imgui:612", "namespace": "ImGui", "ov_cimguiname": "igColorEdit3", "ret": "bool", @@ -15586,7 +15930,7 @@ "flags": "0" }, "funcname": "ColorEdit4", - "location": "imgui:607", + "location": "imgui:613", "namespace": "ImGui", "ov_cimguiname": "igColorEdit4", "ret": "bool", @@ -15612,7 +15956,7 @@ "cimguiname": "igColorEditOptionsPopup", "defaults": {}, "funcname": "ColorEditOptionsPopup", - "location": "imgui_internal:3513", + "location": "imgui_internal:3646", "namespace": "ImGui", "ov_cimguiname": "igColorEditOptionsPopup", "ret": "void", @@ -15644,7 +15988,7 @@ "flags": "0" }, "funcname": "ColorPicker3", - "location": "imgui:608", + "location": "imgui:614", "namespace": "ImGui", "ov_cimguiname": "igColorPicker3", "ret": "bool", @@ -15681,7 +16025,7 @@ "ref_col": "NULL" }, "funcname": "ColorPicker4", - "location": "imgui:609", + "location": "imgui:615", "namespace": "ImGui", "ov_cimguiname": "igColorPicker4", "ret": "bool", @@ -15707,7 +16051,7 @@ "cimguiname": "igColorPickerOptionsPopup", "defaults": {}, "funcname": "ColorPickerOptionsPopup", - "location": "imgui_internal:3514", + "location": "imgui_internal:3647", "namespace": "ImGui", "ov_cimguiname": "igColorPickerOptionsPopup", "ret": "void", @@ -15737,7 +16081,7 @@ "cimguiname": "igColorTooltip", "defaults": {}, "funcname": "ColorTooltip", - "location": "imgui_internal:3512", + "location": "imgui_internal:3645", "namespace": "ImGui", "ov_cimguiname": "igColorTooltip", "ret": "void", @@ -15771,7 +16115,7 @@ "id": "NULL" }, "funcname": "Columns", - "location": "imgui:797", + "location": "imgui:804", "namespace": "ImGui", "ov_cimguiname": "igColumns", "ret": "void", @@ -15811,7 +16155,7 @@ "popup_max_height_in_items": "-1" }, "funcname": "Combo", - "location": "imgui:535", + "location": "imgui:541", "namespace": "ImGui", "ov_cimguiname": "igCombo_Str_arr", "ret": "bool", @@ -15846,7 +16190,7 @@ "popup_max_height_in_items": "-1" }, "funcname": "Combo", - "location": "imgui:536", + "location": "imgui:542", "namespace": "ImGui", "ov_cimguiname": "igCombo_Str", "ret": "bool", @@ -15854,7 +16198,7 @@ "stname": "" }, { - "args": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items)", + "args": "(const char* label,int* current_item,const char*(*getter)(void* user_data,int idx),void* user_data,int items_count,int popup_max_height_in_items)", "argsT": [ { "name": "label", @@ -15865,13 +16209,13 @@ "type": "int*" }, { - "name": "items_getter", - "ret": "bool", - "signature": "(void* data,int idx,const char** out_text)", - "type": "bool(*)(void* data,int idx,const char** out_text)" + "name": "getter", + "ret": "const char*", + "signature": "(void* user_data,int idx)", + "type": "const char*(*)(void* user_data,int idx)" }, { - "name": "data", + "name": "user_data", "type": "void*" }, { @@ -15883,18 +16227,18 @@ "type": "int" } ], - "argsoriginal": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items=-1)", - "call_args": "(label,current_item,items_getter,data,items_count,popup_max_height_in_items)", + "argsoriginal": "(const char* label,int* current_item,const char*(*getter)(void* user_data,int idx),void* user_data,int items_count,int popup_max_height_in_items=-1)", + "call_args": "(label,current_item,getter,user_data,items_count,popup_max_height_in_items)", "cimguiname": "igCombo", "defaults": { "popup_max_height_in_items": "-1" }, "funcname": "Combo", - "location": "imgui:537", + "location": "imgui:543", "namespace": "ImGui", - "ov_cimguiname": "igCombo_FnBoolPtr", + "ov_cimguiname": "igCombo_FnStrPtr", "ret": "bool", - "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", + "signature": "(const char*,int*,const char*(*)(void*,int),void*,int,int)", "stname": "" } ], @@ -15912,7 +16256,7 @@ "cimguiname": "igConvertShortcutMod", "defaults": {}, "funcname": "ConvertShortcutMod", - "location": "imgui_internal:3198", + "location": "imgui_internal:3316", "namespace": "ImGui", "ov_cimguiname": "igConvertShortcutMod", "ret": "ImGuiKeyChord", @@ -15938,7 +16282,7 @@ "cimguiname": "igConvertSingleModFlagToKey", "defaults": {}, "funcname": "ConvertSingleModFlagToKey", - "location": "imgui_internal:3199", + "location": "imgui_internal:3317", "namespace": "ImGui", "ov_cimguiname": "igConvertSingleModFlagToKey", "ret": "ImGuiKey", @@ -15962,7 +16306,7 @@ "shared_font_atlas": "NULL" }, "funcname": "CreateContext", - "location": "imgui:297", + "location": "imgui:299", "namespace": "ImGui", "ov_cimguiname": "igCreateContext", "ret": "ImGuiContext*", @@ -15984,7 +16328,7 @@ "cimguiname": "igCreateNewWindowSettings", "defaults": {}, "funcname": "CreateNewWindowSettings", - "location": "imgui_internal:3077", + "location": "imgui_internal:3192", "namespace": "ImGui", "ov_cimguiname": "igCreateNewWindowSettings", "ret": "ImGuiWindowSettings*", @@ -16018,7 +16362,7 @@ "cimguiname": "igDataTypeApplyFromText", "defaults": {}, "funcname": "DataTypeApplyFromText", - "location": "imgui_internal:3499", + "location": "imgui_internal:3632", "namespace": "ImGui", "ov_cimguiname": "igDataTypeApplyFromText", "ret": "bool", @@ -16056,7 +16400,7 @@ "cimguiname": "igDataTypeApplyOp", "defaults": {}, "funcname": "DataTypeApplyOp", - "location": "imgui_internal:3498", + "location": "imgui_internal:3631", "namespace": "ImGui", "ov_cimguiname": "igDataTypeApplyOp", "ret": "void", @@ -16090,7 +16434,7 @@ "cimguiname": "igDataTypeClamp", "defaults": {}, "funcname": "DataTypeClamp", - "location": "imgui_internal:3501", + "location": "imgui_internal:3634", "namespace": "ImGui", "ov_cimguiname": "igDataTypeClamp", "ret": "bool", @@ -16120,7 +16464,7 @@ "cimguiname": "igDataTypeCompare", "defaults": {}, "funcname": "DataTypeCompare", - "location": "imgui_internal:3500", + "location": "imgui_internal:3633", "namespace": "ImGui", "ov_cimguiname": "igDataTypeCompare", "ret": "int", @@ -16158,7 +16502,7 @@ "cimguiname": "igDataTypeFormatString", "defaults": {}, "funcname": "DataTypeFormatString", - "location": "imgui_internal:3497", + "location": "imgui_internal:3630", "namespace": "ImGui", "ov_cimguiname": "igDataTypeFormatString", "ret": "int", @@ -16180,7 +16524,7 @@ "cimguiname": "igDataTypeGetInfo", "defaults": {}, "funcname": "DataTypeGetInfo", - "location": "imgui_internal:3496", + "location": "imgui_internal:3629", "namespace": "ImGui", "ov_cimguiname": "igDataTypeGetInfo", "ret": "const ImGuiDataTypeInfo*", @@ -16188,6 +16532,41 @@ "stname": "" } ], + "igDebugAllocHook": [ + { + "args": "(ImGuiDebugAllocInfo* info,int frame_count,void* ptr,size_t size)", + "argsT": [ + { + "name": "info", + "type": "ImGuiDebugAllocInfo*" + }, + { + "name": "frame_count", + "type": "int" + }, + { + "name": "ptr", + "type": "void*" + }, + { + "name": "size", + "type": "size_t" + } + ], + "argsoriginal": "(ImGuiDebugAllocInfo* info,int frame_count,void* ptr,size_t size)", + "call_args": "(info,frame_count,ptr,size)", + "cimguiname": "igDebugAllocHook", + "comment": "// size >= 0 : alloc, size = -1 : free", + "defaults": {}, + "funcname": "DebugAllocHook", + "location": "imgui_internal:3665", + "namespace": "ImGui", + "ov_cimguiname": "igDebugAllocHook", + "ret": "void", + "signature": "(ImGuiDebugAllocInfo*,int,void*,size_t)", + "stname": "" + } + ], "igDebugCheckVersionAndDataLayout": [ { "args": "(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)", @@ -16227,7 +16606,7 @@ "comment": "// This is called by IMGUI_CHECKVERSION() macro.", "defaults": {}, "funcname": "DebugCheckVersionAndDataLayout", - "location": "imgui:981", + "location": "imgui:988", "namespace": "ImGui", "ov_cimguiname": "igDebugCheckVersionAndDataLayout", "ret": "bool", @@ -16235,6 +16614,30 @@ "stname": "" } ], + "igDebugDrawCursorPos": [ + { + "args": "(ImU32 col)", + "argsT": [ + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 col=(((ImU32)(255)<<24)|((ImU32)(0)<<16)|((ImU32)(0)<<8)|((ImU32)(255)<<0)))", + "call_args": "(col)", + "cimguiname": "igDebugDrawCursorPos", + "defaults": { + "col": "4278190335" + }, + "funcname": "DebugDrawCursorPos", + "location": "imgui_internal:3671", + "namespace": "ImGui", + "ov_cimguiname": "igDebugDrawCursorPos", + "ret": "void", + "signature": "(ImU32)", + "stname": "" + } + ], "igDebugDrawItemRect": [ { "args": "(ImU32 col)", @@ -16251,7 +16654,7 @@ "col": "4278190335" }, "funcname": "DebugDrawItemRect", - "location": "imgui_internal:3539", + "location": "imgui_internal:3673", "namespace": "ImGui", "ov_cimguiname": "igDebugDrawItemRect", "ret": "void", @@ -16259,6 +16662,30 @@ "stname": "" } ], + "igDebugDrawLineExtents": [ + { + "args": "(ImU32 col)", + "argsT": [ + { + "name": "col", + "type": "ImU32" + } + ], + "argsoriginal": "(ImU32 col=(((ImU32)(255)<<24)|((ImU32)(0)<<16)|((ImU32)(0)<<8)|((ImU32)(255)<<0)))", + "call_args": "(col)", + "cimguiname": "igDebugDrawLineExtents", + "defaults": { + "col": "4278190335" + }, + "funcname": "DebugDrawLineExtents", + "location": "imgui_internal:3672", + "namespace": "ImGui", + "ov_cimguiname": "igDebugDrawLineExtents", + "ret": "void", + "signature": "(ImU32)", + "stname": "" + } + ], "igDebugHookIdInfo": [ { "args": "(ImGuiID id,ImGuiDataType data_type,const void* data_id,const void* data_id_end)", @@ -16285,7 +16712,7 @@ "cimguiname": "igDebugHookIdInfo", "defaults": {}, "funcname": "DebugHookIdInfo", - "location": "imgui_internal:3542", + "location": "imgui_internal:3679", "namespace": "ImGui", "ov_cimguiname": "igDebugHookIdInfo", "ret": "void", @@ -16308,7 +16735,7 @@ "comment": "// Call sparingly: only 1 at the same time!", "defaults": {}, "funcname": "DebugLocateItem", - "location": "imgui_internal:3536", + "location": "imgui_internal:3674", "namespace": "ImGui", "ov_cimguiname": "igDebugLocateItem", "ret": "void", @@ -16331,7 +16758,7 @@ "comment": "// Only call on reaction to a mouse Hover: because only 1 at the same time!", "defaults": {}, "funcname": "DebugLocateItemOnHover", - "location": "imgui_internal:3537", + "location": "imgui_internal:3675", "namespace": "ImGui", "ov_cimguiname": "igDebugLocateItemOnHover", "ret": "void", @@ -16348,7 +16775,7 @@ "cimguiname": "igDebugLocateItemResolveWithLastItem", "defaults": {}, "funcname": "DebugLocateItemResolveWithLastItem", - "location": "imgui_internal:3538", + "location": "imgui_internal:3676", "namespace": "ImGui", "ov_cimguiname": "igDebugLocateItemResolveWithLastItem", "ret": "void", @@ -16375,7 +16802,7 @@ "defaults": {}, "funcname": "DebugLog", "isvararg": "...)", - "location": "imgui_internal:3529", + "location": "imgui_internal:3663", "namespace": "ImGui", "ov_cimguiname": "igDebugLog", "ret": "void", @@ -16401,7 +16828,7 @@ "cimguiname": "igDebugLogV", "defaults": {}, "funcname": "DebugLogV", - "location": "imgui_internal:3530", + "location": "imgui_internal:3664", "namespace": "ImGui", "ov_cimguiname": "igDebugLogV", "ret": "void", @@ -16423,7 +16850,7 @@ "cimguiname": "igDebugNodeColumns", "defaults": {}, "funcname": "DebugNodeColumns", - "location": "imgui_internal:3543", + "location": "imgui_internal:3680", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeColumns", "ret": "void", @@ -16449,7 +16876,7 @@ "cimguiname": "igDebugNodeDockNode", "defaults": {}, "funcname": "DebugNodeDockNode", - "location": "imgui_internal:3544", + "location": "imgui_internal:3681", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeDockNode", "ret": "void", @@ -16487,7 +16914,7 @@ "cimguiname": "igDebugNodeDrawCmdShowMeshAndBoundingBox", "defaults": {}, "funcname": "DebugNodeDrawCmdShowMeshAndBoundingBox", - "location": "imgui_internal:3546", + "location": "imgui_internal:3683", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeDrawCmdShowMeshAndBoundingBox", "ret": "void", @@ -16521,7 +16948,7 @@ "cimguiname": "igDebugNodeDrawList", "defaults": {}, "funcname": "DebugNodeDrawList", - "location": "imgui_internal:3545", + "location": "imgui_internal:3682", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeDrawList", "ret": "void", @@ -16543,7 +16970,7 @@ "cimguiname": "igDebugNodeFont", "defaults": {}, "funcname": "DebugNodeFont", - "location": "imgui_internal:3547", + "location": "imgui_internal:3684", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeFont", "ret": "void", @@ -16569,7 +16996,7 @@ "cimguiname": "igDebugNodeFontGlyph", "defaults": {}, "funcname": "DebugNodeFontGlyph", - "location": "imgui_internal:3548", + "location": "imgui_internal:3685", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeFontGlyph", "ret": "void", @@ -16591,7 +17018,7 @@ "cimguiname": "igDebugNodeInputTextState", "defaults": {}, "funcname": "DebugNodeInputTextState", - "location": "imgui_internal:3553", + "location": "imgui_internal:3690", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeInputTextState", "ret": "void", @@ -16617,7 +17044,7 @@ "cimguiname": "igDebugNodeStorage", "defaults": {}, "funcname": "DebugNodeStorage", - "location": "imgui_internal:3549", + "location": "imgui_internal:3686", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeStorage", "ret": "void", @@ -16643,7 +17070,7 @@ "cimguiname": "igDebugNodeTabBar", "defaults": {}, "funcname": "DebugNodeTabBar", - "location": "imgui_internal:3550", + "location": "imgui_internal:3687", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeTabBar", "ret": "void", @@ -16665,7 +17092,7 @@ "cimguiname": "igDebugNodeTable", "defaults": {}, "funcname": "DebugNodeTable", - "location": "imgui_internal:3551", + "location": "imgui_internal:3688", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeTable", "ret": "void", @@ -16687,7 +17114,7 @@ "cimguiname": "igDebugNodeTableSettings", "defaults": {}, "funcname": "DebugNodeTableSettings", - "location": "imgui_internal:3552", + "location": "imgui_internal:3689", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeTableSettings", "ret": "void", @@ -16695,6 +17122,28 @@ "stname": "" } ], + "igDebugNodeTypingSelectState": [ + { + "args": "(ImGuiTypingSelectState* state)", + "argsT": [ + { + "name": "state", + "type": "ImGuiTypingSelectState*" + } + ], + "argsoriginal": "(ImGuiTypingSelectState* state)", + "call_args": "(state)", + "cimguiname": "igDebugNodeTypingSelectState", + "defaults": {}, + "funcname": "DebugNodeTypingSelectState", + "location": "imgui_internal:3691", + "namespace": "ImGui", + "ov_cimguiname": "igDebugNodeTypingSelectState", + "ret": "void", + "signature": "(ImGuiTypingSelectState*)", + "stname": "" + } + ], "igDebugNodeViewport": [ { "args": "(ImGuiViewportP* viewport)", @@ -16709,7 +17158,7 @@ "cimguiname": "igDebugNodeViewport", "defaults": {}, "funcname": "DebugNodeViewport", - "location": "imgui_internal:3558", + "location": "imgui_internal:3696", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeViewport", "ret": "void", @@ -16735,7 +17184,7 @@ "cimguiname": "igDebugNodeWindow", "defaults": {}, "funcname": "DebugNodeWindow", - "location": "imgui_internal:3554", + "location": "imgui_internal:3692", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeWindow", "ret": "void", @@ -16757,7 +17206,7 @@ "cimguiname": "igDebugNodeWindowSettings", "defaults": {}, "funcname": "DebugNodeWindowSettings", - "location": "imgui_internal:3555", + "location": "imgui_internal:3693", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeWindowSettings", "ret": "void", @@ -16783,7 +17232,7 @@ "cimguiname": "igDebugNodeWindowsList", "defaults": {}, "funcname": "DebugNodeWindowsList", - "location": "imgui_internal:3556", + "location": "imgui_internal:3694", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeWindowsList", "ret": "void", @@ -16813,7 +17262,7 @@ "cimguiname": "igDebugNodeWindowsListByBeginStackParent", "defaults": {}, "funcname": "DebugNodeWindowsListByBeginStackParent", - "location": "imgui_internal:3557", + "location": "imgui_internal:3695", "namespace": "ImGui", "ov_cimguiname": "igDebugNodeWindowsListByBeginStackParent", "ret": "void", @@ -16835,7 +17284,7 @@ "cimguiname": "igDebugRenderKeyboardPreview", "defaults": {}, "funcname": "DebugRenderKeyboardPreview", - "location": "imgui_internal:3559", + "location": "imgui_internal:3697", "namespace": "ImGui", "ov_cimguiname": "igDebugRenderKeyboardPreview", "ret": "void", @@ -16865,7 +17314,7 @@ "cimguiname": "igDebugRenderViewportThumbnail", "defaults": {}, "funcname": "DebugRenderViewportThumbnail", - "location": "imgui_internal:3560", + "location": "imgui_internal:3698", "namespace": "ImGui", "ov_cimguiname": "igDebugRenderViewportThumbnail", "ret": "void", @@ -16882,7 +17331,7 @@ "cimguiname": "igDebugStartItemPicker", "defaults": {}, "funcname": "DebugStartItemPicker", - "location": "imgui_internal:3540", + "location": "imgui_internal:3677", "namespace": "ImGui", "ov_cimguiname": "igDebugStartItemPicker", "ret": "void", @@ -16904,7 +17353,7 @@ "cimguiname": "igDebugTextEncoding", "defaults": {}, "funcname": "DebugTextEncoding", - "location": "imgui:980", + "location": "imgui:987", "namespace": "ImGui", "ov_cimguiname": "igDebugTextEncoding", "ret": "void", @@ -16929,7 +17378,7 @@ "ctx": "NULL" }, "funcname": "DestroyContext", - "location": "imgui:298", + "location": "imgui:300", "namespace": "ImGui", "ov_cimguiname": "igDestroyContext", "ret": "void", @@ -16951,7 +17400,7 @@ "cimguiname": "igDestroyPlatformWindow", "defaults": {}, "funcname": "DestroyPlatformWindow", - "location": "imgui_internal:3062", + "location": "imgui_internal:3177", "namespace": "ImGui", "ov_cimguiname": "igDestroyPlatformWindow", "ret": "void", @@ -16969,7 +17418,7 @@ "comment": "// call DestroyWindow platform functions for all viewports. call from backend Shutdown() if you need to close platform windows before imgui shutdown. otherwise will be called by DestroyContext().", "defaults": {}, "funcname": "DestroyPlatformWindows", - "location": "imgui:998", + "location": "imgui:1005", "namespace": "ImGui", "ov_cimguiname": "igDestroyPlatformWindows", "ret": "void", @@ -16998,7 +17447,7 @@ "node_id": "0" }, "funcname": "DockBuilderAddNode", - "location": "imgui_internal:3311", + "location": "imgui_internal:3434", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderAddNode", "ret": "ImGuiID", @@ -17028,7 +17477,7 @@ "cimguiname": "igDockBuilderCopyDockSpace", "defaults": {}, "funcname": "DockBuilderCopyDockSpace", - "location": "imgui_internal:3318", + "location": "imgui_internal:3441", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderCopyDockSpace", "ret": "void", @@ -17058,7 +17507,7 @@ "cimguiname": "igDockBuilderCopyNode", "defaults": {}, "funcname": "DockBuilderCopyNode", - "location": "imgui_internal:3319", + "location": "imgui_internal:3442", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderCopyNode", "ret": "void", @@ -17084,7 +17533,7 @@ "cimguiname": "igDockBuilderCopyWindowSettings", "defaults": {}, "funcname": "DockBuilderCopyWindowSettings", - "location": "imgui_internal:3320", + "location": "imgui_internal:3443", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderCopyWindowSettings", "ret": "void", @@ -17110,7 +17559,7 @@ "cimguiname": "igDockBuilderDockWindow", "defaults": {}, "funcname": "DockBuilderDockWindow", - "location": "imgui_internal:3308", + "location": "imgui_internal:3431", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderDockWindow", "ret": "void", @@ -17132,7 +17581,7 @@ "cimguiname": "igDockBuilderFinish", "defaults": {}, "funcname": "DockBuilderFinish", - "location": "imgui_internal:3321", + "location": "imgui_internal:3444", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderFinish", "ret": "void", @@ -17154,7 +17603,7 @@ "cimguiname": "igDockBuilderGetCentralNode", "defaults": {}, "funcname": "DockBuilderGetCentralNode", - "location": "imgui_internal:3310", + "location": "imgui_internal:3433", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderGetCentralNode", "ret": "ImGuiDockNode*", @@ -17176,7 +17625,7 @@ "cimguiname": "igDockBuilderGetNode", "defaults": {}, "funcname": "DockBuilderGetNode", - "location": "imgui_internal:3309", + "location": "imgui_internal:3432", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderGetNode", "ret": "ImGuiDockNode*", @@ -17199,7 +17648,7 @@ "comment": "// Remove node and all its child, undock all windows", "defaults": {}, "funcname": "DockBuilderRemoveNode", - "location": "imgui_internal:3312", + "location": "imgui_internal:3435", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderRemoveNode", "ret": "void", @@ -17222,7 +17671,7 @@ "comment": "// Remove all split/hierarchy. All remaining docked windows will be re-docked to the remaining root node (node_id).", "defaults": {}, "funcname": "DockBuilderRemoveNodeChildNodes", - "location": "imgui_internal:3314", + "location": "imgui_internal:3437", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderRemoveNodeChildNodes", "ret": "void", @@ -17250,7 +17699,7 @@ "clear_settings_refs": "true" }, "funcname": "DockBuilderRemoveNodeDockedWindows", - "location": "imgui_internal:3313", + "location": "imgui_internal:3436", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderRemoveNodeDockedWindows", "ret": "void", @@ -17276,7 +17725,7 @@ "cimguiname": "igDockBuilderSetNodePos", "defaults": {}, "funcname": "DockBuilderSetNodePos", - "location": "imgui_internal:3315", + "location": "imgui_internal:3438", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderSetNodePos", "ret": "void", @@ -17302,7 +17751,7 @@ "cimguiname": "igDockBuilderSetNodeSize", "defaults": {}, "funcname": "DockBuilderSetNodeSize", - "location": "imgui_internal:3316", + "location": "imgui_internal:3439", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderSetNodeSize", "ret": "void", @@ -17341,7 +17790,7 @@ "comment": "// Create 2 child nodes in this parent node.", "defaults": {}, "funcname": "DockBuilderSplitNode", - "location": "imgui_internal:3317", + "location": "imgui_internal:3440", "namespace": "ImGui", "ov_cimguiname": "igDockBuilderSplitNode", "ret": "ImGuiID", @@ -17387,7 +17836,7 @@ "cimguiname": "igDockContextCalcDropPosForDocking", "defaults": {}, "funcname": "DockContextCalcDropPosForDocking", - "location": "imgui_internal:3283", + "location": "imgui_internal:3406", "namespace": "ImGui", "ov_cimguiname": "igDockContextCalcDropPosForDocking", "ret": "bool", @@ -17418,7 +17867,7 @@ "comment": "// Use root_id==0 to clear all", "defaults": {}, "funcname": "DockContextClearNodes", - "location": "imgui_internal:3272", + "location": "imgui_internal:3395", "namespace": "ImGui", "ov_cimguiname": "igDockContextClearNodes", "ret": "void", @@ -17440,7 +17889,7 @@ "cimguiname": "igDockContextEndFrame", "defaults": {}, "funcname": "DockContextEndFrame", - "location": "imgui_internal:3276", + "location": "imgui_internal:3399", "namespace": "ImGui", "ov_cimguiname": "igDockContextEndFrame", "ret": "void", @@ -17466,7 +17915,7 @@ "cimguiname": "igDockContextFindNodeByID", "defaults": {}, "funcname": "DockContextFindNodeByID", - "location": "imgui_internal:3284", + "location": "imgui_internal:3407", "namespace": "ImGui", "ov_cimguiname": "igDockContextFindNodeByID", "ret": "ImGuiDockNode*", @@ -17488,7 +17937,7 @@ "cimguiname": "igDockContextGenNodeID", "defaults": {}, "funcname": "DockContextGenNodeID", - "location": "imgui_internal:3277", + "location": "imgui_internal:3400", "namespace": "ImGui", "ov_cimguiname": "igDockContextGenNodeID", "ret": "ImGuiID", @@ -17510,7 +17959,7 @@ "cimguiname": "igDockContextInitialize", "defaults": {}, "funcname": "DockContextInitialize", - "location": "imgui_internal:3270", + "location": "imgui_internal:3393", "namespace": "ImGui", "ov_cimguiname": "igDockContextInitialize", "ret": "void", @@ -17532,7 +17981,7 @@ "cimguiname": "igDockContextNewFrameUpdateDocking", "defaults": {}, "funcname": "DockContextNewFrameUpdateDocking", - "location": "imgui_internal:3275", + "location": "imgui_internal:3398", "namespace": "ImGui", "ov_cimguiname": "igDockContextNewFrameUpdateDocking", "ret": "void", @@ -17554,7 +18003,7 @@ "cimguiname": "igDockContextNewFrameUpdateUndocking", "defaults": {}, "funcname": "DockContextNewFrameUpdateUndocking", - "location": "imgui_internal:3274", + "location": "imgui_internal:3397", "namespace": "ImGui", "ov_cimguiname": "igDockContextNewFrameUpdateUndocking", "ret": "void", @@ -17580,7 +18029,7 @@ "cimguiname": "igDockContextProcessUndockNode", "defaults": {}, "funcname": "DockContextProcessUndockNode", - "location": "imgui_internal:3282", + "location": "imgui_internal:3405", "namespace": "ImGui", "ov_cimguiname": "igDockContextProcessUndockNode", "ret": "void", @@ -17612,7 +18061,7 @@ "clear_persistent_docking_ref": "true" }, "funcname": "DockContextProcessUndockWindow", - "location": "imgui_internal:3281", + "location": "imgui_internal:3404", "namespace": "ImGui", "ov_cimguiname": "igDockContextProcessUndockWindow", "ret": "void", @@ -17658,7 +18107,7 @@ "cimguiname": "igDockContextQueueDock", "defaults": {}, "funcname": "DockContextQueueDock", - "location": "imgui_internal:3278", + "location": "imgui_internal:3401", "namespace": "ImGui", "ov_cimguiname": "igDockContextQueueDock", "ret": "void", @@ -17684,7 +18133,7 @@ "cimguiname": "igDockContextQueueUndockNode", "defaults": {}, "funcname": "DockContextQueueUndockNode", - "location": "imgui_internal:3280", + "location": "imgui_internal:3403", "namespace": "ImGui", "ov_cimguiname": "igDockContextQueueUndockNode", "ret": "void", @@ -17710,7 +18159,7 @@ "cimguiname": "igDockContextQueueUndockWindow", "defaults": {}, "funcname": "DockContextQueueUndockWindow", - "location": "imgui_internal:3279", + "location": "imgui_internal:3402", "namespace": "ImGui", "ov_cimguiname": "igDockContextQueueUndockWindow", "ret": "void", @@ -17732,7 +18181,7 @@ "cimguiname": "igDockContextRebuildNodes", "defaults": {}, "funcname": "DockContextRebuildNodes", - "location": "imgui_internal:3273", + "location": "imgui_internal:3396", "namespace": "ImGui", "ov_cimguiname": "igDockContextRebuildNodes", "ret": "void", @@ -17754,7 +18203,7 @@ "cimguiname": "igDockContextShutdown", "defaults": {}, "funcname": "DockContextShutdown", - "location": "imgui_internal:3271", + "location": "imgui_internal:3394", "namespace": "ImGui", "ov_cimguiname": "igDockContextShutdown", "ret": "void", @@ -17776,7 +18225,7 @@ "cimguiname": "igDockNodeBeginAmendTabBar", "defaults": {}, "funcname": "DockNodeBeginAmendTabBar", - "location": "imgui_internal:3286", + "location": "imgui_internal:3409", "namespace": "ImGui", "ov_cimguiname": "igDockNodeBeginAmendTabBar", "ret": "bool", @@ -17793,7 +18242,7 @@ "cimguiname": "igDockNodeEndAmendTabBar", "defaults": {}, "funcname": "DockNodeEndAmendTabBar", - "location": "imgui_internal:3287", + "location": "imgui_internal:3410", "namespace": "ImGui", "ov_cimguiname": "igDockNodeEndAmendTabBar", "ret": "void", @@ -17815,7 +18264,7 @@ "cimguiname": "igDockNodeGetDepth", "defaults": {}, "funcname": "DockNodeGetDepth", - "location": "imgui_internal:3290", + "location": "imgui_internal:3413", "namespace": "ImGui", "ov_cimguiname": "igDockNodeGetDepth", "ret": "int", @@ -17837,7 +18286,7 @@ "cimguiname": "igDockNodeGetRootNode", "defaults": {}, "funcname": "DockNodeGetRootNode", - "location": "imgui_internal:3288", + "location": "imgui_internal:3411", "namespace": "ImGui", "ov_cimguiname": "igDockNodeGetRootNode", "ret": "ImGuiDockNode*", @@ -17859,7 +18308,7 @@ "cimguiname": "igDockNodeGetWindowMenuButtonId", "defaults": {}, "funcname": "DockNodeGetWindowMenuButtonId", - "location": "imgui_internal:3291", + "location": "imgui_internal:3414", "namespace": "ImGui", "ov_cimguiname": "igDockNodeGetWindowMenuButtonId", "ret": "ImGuiID", @@ -17885,7 +18334,7 @@ "cimguiname": "igDockNodeIsInHierarchyOf", "defaults": {}, "funcname": "DockNodeIsInHierarchyOf", - "location": "imgui_internal:3289", + "location": "imgui_internal:3412", "namespace": "ImGui", "ov_cimguiname": "igDockNodeIsInHierarchyOf", "ret": "bool", @@ -17915,7 +18364,7 @@ "cimguiname": "igDockNodeWindowMenuHandler_Default", "defaults": {}, "funcname": "DockNodeWindowMenuHandler_Default", - "location": "imgui_internal:3285", + "location": "imgui_internal:3408", "namespace": "ImGui", "ov_cimguiname": "igDockNodeWindowMenuHandler_Default", "ret": "void", @@ -17953,7 +18402,7 @@ "window_class": "NULL" }, "funcname": "DockSpace", - "location": "imgui:828", + "location": "imgui:835", "namespace": "ImGui", "ov_cimguiname": "igDockSpace", "ret": "ImGuiID", @@ -17987,7 +18436,7 @@ "window_class": "NULL" }, "funcname": "DockSpaceOverViewport", - "location": "imgui:829", + "location": "imgui:836", "namespace": "ImGui", "ov_cimguiname": "igDockSpaceOverViewport", "ret": "ImGuiID", @@ -18037,7 +18486,7 @@ "cimguiname": "igDragBehavior", "defaults": {}, "funcname": "DragBehavior", - "location": "imgui_internal:3477", + "location": "imgui_internal:3609", "namespace": "ImGui", "ov_cimguiname": "igDragBehavior", "ret": "bool", @@ -18090,7 +18539,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat", - "location": "imgui:551", + "location": "imgui:557", "namespace": "ImGui", "ov_cimguiname": "igDragFloat", "ret": "bool", @@ -18142,7 +18591,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat2", - "location": "imgui:552", + "location": "imgui:558", "namespace": "ImGui", "ov_cimguiname": "igDragFloat2", "ret": "bool", @@ -18194,7 +18643,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat3", - "location": "imgui:553", + "location": "imgui:559", "namespace": "ImGui", "ov_cimguiname": "igDragFloat3", "ret": "bool", @@ -18246,7 +18695,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloat4", - "location": "imgui:554", + "location": "imgui:560", "namespace": "ImGui", "ov_cimguiname": "igDragFloat4", "ret": "bool", @@ -18307,7 +18756,7 @@ "v_speed": "1.0f" }, "funcname": "DragFloatRange2", - "location": "imgui:555", + "location": "imgui:561", "namespace": "ImGui", "ov_cimguiname": "igDragFloatRange2", "ret": "bool", @@ -18360,7 +18809,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt", - "location": "imgui:556", + "location": "imgui:562", "namespace": "ImGui", "ov_cimguiname": "igDragInt", "ret": "bool", @@ -18412,7 +18861,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt2", - "location": "imgui:557", + "location": "imgui:563", "namespace": "ImGui", "ov_cimguiname": "igDragInt2", "ret": "bool", @@ -18464,7 +18913,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt3", - "location": "imgui:558", + "location": "imgui:564", "namespace": "ImGui", "ov_cimguiname": "igDragInt3", "ret": "bool", @@ -18516,7 +18965,7 @@ "v_speed": "1.0f" }, "funcname": "DragInt4", - "location": "imgui:559", + "location": "imgui:565", "namespace": "ImGui", "ov_cimguiname": "igDragInt4", "ret": "bool", @@ -18577,7 +19026,7 @@ "v_speed": "1.0f" }, "funcname": "DragIntRange2", - "location": "imgui:560", + "location": "imgui:566", "namespace": "ImGui", "ov_cimguiname": "igDragIntRange2", "ret": "bool", @@ -18633,7 +19082,7 @@ "v_speed": "1.0f" }, "funcname": "DragScalar", - "location": "imgui:561", + "location": "imgui:567", "namespace": "ImGui", "ov_cimguiname": "igDragScalar", "ret": "bool", @@ -18693,7 +19142,7 @@ "v_speed": "1.0f" }, "funcname": "DragScalarN", - "location": "imgui:562", + "location": "imgui:568", "namespace": "ImGui", "ov_cimguiname": "igDragScalarN", "ret": "bool", @@ -18716,7 +19165,7 @@ "comment": "// add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into.", "defaults": {}, "funcname": "Dummy", - "location": "imgui:454", + "location": "imgui:468", "namespace": "ImGui", "ov_cimguiname": "igDummy", "ret": "void", @@ -18733,7 +19182,7 @@ "cimguiname": "igEnd", "defaults": {}, "funcname": "End", - "location": "imgui:340", + "location": "imgui:342", "namespace": "ImGui", "ov_cimguiname": "igEnd", "ret": "void", @@ -18750,7 +19199,7 @@ "cimguiname": "igEndChild", "defaults": {}, "funcname": "EndChild", - "location": "imgui:352", + "location": "imgui:354", "namespace": "ImGui", "ov_cimguiname": "igEndChild", "ret": "void", @@ -18768,7 +19217,7 @@ "comment": "// always call EndChildFrame() regardless of BeginChildFrame() return values (which indicates a collapsed/clipped window)", "defaults": {}, "funcname": "EndChildFrame", - "location": "imgui:921", + "location": "imgui:928", "namespace": "ImGui", "ov_cimguiname": "igEndChildFrame", "ret": "void", @@ -18786,7 +19235,7 @@ "comment": "// close columns", "defaults": {}, "funcname": "EndColumns", - "location": "imgui_internal:3345", + "location": "imgui_internal:3474", "namespace": "ImGui", "ov_cimguiname": "igEndColumns", "ret": "void", @@ -18804,7 +19253,7 @@ "comment": "// only call EndCombo() if BeginCombo() returns true!", "defaults": {}, "funcname": "EndCombo", - "location": "imgui:534", + "location": "imgui:540", "namespace": "ImGui", "ov_cimguiname": "igEndCombo", "ret": "void", @@ -18821,7 +19270,7 @@ "cimguiname": "igEndComboPreview", "defaults": {}, "funcname": "EndComboPreview", - "location": "imgui_internal:3166", + "location": "imgui_internal:3282", "namespace": "ImGui", "ov_cimguiname": "igEndComboPreview", "ret": "void", @@ -18838,7 +19287,7 @@ "cimguiname": "igEndDisabled", "defaults": {}, "funcname": "EndDisabled", - "location": "imgui:863", + "location": "imgui:870", "namespace": "ImGui", "ov_cimguiname": "igEndDisabled", "ret": "void", @@ -18856,7 +19305,7 @@ "comment": "// only call EndDragDropSource() if BeginDragDropSource() returns true!", "defaults": {}, "funcname": "EndDragDropSource", - "location": "imgui:852", + "location": "imgui:859", "namespace": "ImGui", "ov_cimguiname": "igEndDragDropSource", "ret": "void", @@ -18874,7 +19323,7 @@ "comment": "// only call EndDragDropTarget() if BeginDragDropTarget() returns true!", "defaults": {}, "funcname": "EndDragDropTarget", - "location": "imgui:855", + "location": "imgui:862", "namespace": "ImGui", "ov_cimguiname": "igEndDragDropTarget", "ret": "void", @@ -18892,7 +19341,7 @@ "comment": "// ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all!", "defaults": {}, "funcname": "EndFrame", - "location": "imgui:306", + "location": "imgui:308", "namespace": "ImGui", "ov_cimguiname": "igEndFrame", "ret": "void", @@ -18910,7 +19359,7 @@ "comment": "// unlock horizontal starting position + capture the whole group bounding box into one \"item\" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.)", "defaults": {}, "funcname": "EndGroup", - "location": "imgui:458", + "location": "imgui:472", "namespace": "ImGui", "ov_cimguiname": "igEndGroup", "ret": "void", @@ -18928,7 +19377,7 @@ "comment": "// only call EndListBox() if BeginListBox() returned true!", "defaults": {}, "funcname": "EndListBox", - "location": "imgui:646", + "location": "imgui:652", "namespace": "ImGui", "ov_cimguiname": "igEndListBox", "ret": "void", @@ -18946,7 +19395,7 @@ "comment": "// only call EndMainMenuBar() if BeginMainMenuBar() returns true!", "defaults": {}, "funcname": "EndMainMenuBar", - "location": "imgui:672", + "location": "imgui:678", "namespace": "ImGui", "ov_cimguiname": "igEndMainMenuBar", "ret": "void", @@ -18964,7 +19413,7 @@ "comment": "// only call EndMenu() if BeginMenu() returns true!", "defaults": {}, "funcname": "EndMenu", - "location": "imgui:674", + "location": "imgui:680", "namespace": "ImGui", "ov_cimguiname": "igEndMenu", "ret": "void", @@ -18982,7 +19431,7 @@ "comment": "// only call EndMenuBar() if BeginMenuBar() returns true!", "defaults": {}, "funcname": "EndMenuBar", - "location": "imgui:670", + "location": "imgui:676", "namespace": "ImGui", "ov_cimguiname": "igEndMenuBar", "ret": "void", @@ -19000,7 +19449,7 @@ "comment": "// only call EndPopup() if BeginPopupXXX() returns true!", "defaults": {}, "funcname": "EndPopup", - "location": "imgui:708", + "location": "imgui:714", "namespace": "ImGui", "ov_cimguiname": "igEndPopup", "ret": "void", @@ -19018,7 +19467,7 @@ "comment": "// only call EndTabBar() if BeginTabBar() returns true!", "defaults": {}, "funcname": "EndTabBar", - "location": "imgui:809", + "location": "imgui:816", "namespace": "ImGui", "ov_cimguiname": "igEndTabBar", "ret": "void", @@ -19036,7 +19485,7 @@ "comment": "// only call EndTabItem() if BeginTabItem() returns true!", "defaults": {}, "funcname": "EndTabItem", - "location": "imgui:811", + "location": "imgui:818", "namespace": "ImGui", "ov_cimguiname": "igEndTabItem", "ret": "void", @@ -19054,7 +19503,7 @@ "comment": "// only call EndTable() if BeginTable() returns true!", "defaults": {}, "funcname": "EndTable", - "location": "imgui:762", + "location": "imgui:768", "namespace": "ImGui", "ov_cimguiname": "igEndTable", "ret": "void", @@ -19072,7 +19521,7 @@ "comment": "// only call EndTooltip() if BeginTooltip()/BeginItemTooltip() returns true!", "defaults": {}, "funcname": "EndTooltip", - "location": "imgui:682", + "location": "imgui:688", "namespace": "ImGui", "ov_cimguiname": "igEndTooltip", "ret": "void", @@ -19100,7 +19549,7 @@ "user_data": "NULL" }, "funcname": "ErrorCheckEndFrameRecover", - "location": "imgui_internal:3533", + "location": "imgui_internal:3668", "namespace": "ImGui", "ov_cimguiname": "igErrorCheckEndFrameRecover", "ret": "void", @@ -19128,7 +19577,7 @@ "user_data": "NULL" }, "funcname": "ErrorCheckEndWindowRecover", - "location": "imgui_internal:3534", + "location": "imgui_internal:3669", "namespace": "ImGui", "ov_cimguiname": "igErrorCheckEndWindowRecover", "ret": "void", @@ -19145,7 +19594,7 @@ "cimguiname": "igErrorCheckUsingSetCursorPosToExtendParentBoundaries", "defaults": {}, "funcname": "ErrorCheckUsingSetCursorPosToExtendParentBoundaries", - "location": "imgui_internal:3535", + "location": "imgui_internal:3670", "namespace": "ImGui", "ov_cimguiname": "igErrorCheckUsingSetCursorPosToExtendParentBoundaries", "ret": "void", @@ -19171,7 +19620,7 @@ "cimguiname": "igFindBestWindowPosForPopup", "defaults": {}, "funcname": "FindBestWindowPosForPopup", - "location": "imgui_internal:3155", + "location": "imgui_internal:3271", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igFindBestWindowPosForPopup", @@ -19218,7 +19667,7 @@ "cimguiname": "igFindBestWindowPosForPopupEx", "defaults": {}, "funcname": "FindBestWindowPosForPopupEx", - "location": "imgui_internal:3156", + "location": "imgui_internal:3272", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igFindBestWindowPosForPopupEx", @@ -19241,7 +19690,7 @@ "cimguiname": "igFindBlockingModal", "defaults": {}, "funcname": "FindBlockingModal", - "location": "imgui_internal:3154", + "location": "imgui_internal:3270", "namespace": "ImGui", "ov_cimguiname": "igFindBlockingModal", "ret": "ImGuiWindow*", @@ -19263,7 +19712,7 @@ "cimguiname": "igFindBottomMostVisibleWindowWithinBeginStack", "defaults": {}, "funcname": "FindBottomMostVisibleWindowWithinBeginStack", - "location": "imgui_internal:3035", + "location": "imgui_internal:3149", "namespace": "ImGui", "ov_cimguiname": "igFindBottomMostVisibleWindowWithinBeginStack", "ret": "ImGuiWindow*", @@ -19285,7 +19734,7 @@ "cimguiname": "igFindHoveredViewportFromPlatformWindowStack", "defaults": {}, "funcname": "FindHoveredViewportFromPlatformWindowStack", - "location": "imgui_internal:3066", + "location": "imgui_internal:3181", "namespace": "ImGui", "ov_cimguiname": "igFindHoveredViewportFromPlatformWindowStack", "ret": "ImGuiViewportP*", @@ -19311,7 +19760,7 @@ "cimguiname": "igFindOrCreateColumns", "defaults": {}, "funcname": "FindOrCreateColumns", - "location": "imgui_internal:3350", + "location": "imgui_internal:3479", "namespace": "ImGui", "ov_cimguiname": "igFindOrCreateColumns", "ret": "ImGuiOldColumns*", @@ -19340,7 +19789,7 @@ "text_end": "NULL" }, "funcname": "FindRenderedTextEnd", - "location": "imgui_internal:3442", + "location": "imgui_internal:3574", "namespace": "ImGui", "ov_cimguiname": "igFindRenderedTextEnd", "ret": "const char*", @@ -19362,7 +19811,7 @@ "cimguiname": "igFindSettingsHandler", "defaults": {}, "funcname": "FindSettingsHandler", - "location": "imgui_internal:3074", + "location": "imgui_internal:3189", "namespace": "ImGui", "ov_cimguiname": "igFindSettingsHandler", "ret": "ImGuiSettingsHandler*", @@ -19385,7 +19834,7 @@ "comment": "// this is a helper for backends.", "defaults": {}, "funcname": "FindViewportByID", - "location": "imgui:999", + "location": "imgui:1006", "namespace": "ImGui", "ov_cimguiname": "igFindViewportByID", "ret": "ImGuiViewport*", @@ -19408,7 +19857,7 @@ "comment": "// this is a helper for backends. the type platform_handle is decided by the backend (e.g. HWND, MyWindow*, GLFWwindow* etc.)", "defaults": {}, "funcname": "FindViewportByPlatformHandle", - "location": "imgui:1000", + "location": "imgui:1007", "namespace": "ImGui", "ov_cimguiname": "igFindViewportByPlatformHandle", "ret": "ImGuiViewport*", @@ -19430,7 +19879,7 @@ "cimguiname": "igFindWindowByID", "defaults": {}, "funcname": "FindWindowByID", - "location": "imgui_internal:3010", + "location": "imgui_internal:3124", "namespace": "ImGui", "ov_cimguiname": "igFindWindowByID", "ret": "ImGuiWindow*", @@ -19452,7 +19901,7 @@ "cimguiname": "igFindWindowByName", "defaults": {}, "funcname": "FindWindowByName", - "location": "imgui_internal:3011", + "location": "imgui_internal:3125", "namespace": "ImGui", "ov_cimguiname": "igFindWindowByName", "ret": "ImGuiWindow*", @@ -19474,7 +19923,7 @@ "cimguiname": "igFindWindowDisplayIndex", "defaults": {}, "funcname": "FindWindowDisplayIndex", - "location": "imgui_internal:3034", + "location": "imgui_internal:3148", "namespace": "ImGui", "ov_cimguiname": "igFindWindowDisplayIndex", "ret": "int", @@ -19496,7 +19945,7 @@ "cimguiname": "igFindWindowSettingsByID", "defaults": {}, "funcname": "FindWindowSettingsByID", - "location": "imgui_internal:3078", + "location": "imgui_internal:3193", "namespace": "ImGui", "ov_cimguiname": "igFindWindowSettingsByID", "ret": "ImGuiWindowSettings*", @@ -19518,7 +19967,7 @@ "cimguiname": "igFindWindowSettingsByWindow", "defaults": {}, "funcname": "FindWindowSettingsByWindow", - "location": "imgui_internal:3079", + "location": "imgui_internal:3194", "namespace": "ImGui", "ov_cimguiname": "igFindWindowSettingsByWindow", "ret": "ImGuiWindowSettings*", @@ -19536,7 +19985,7 @@ "comment": "// Focus last item (no selection/activation).", "defaults": {}, "funcname": "FocusItem", - "location": "imgui_internal:3186", + "location": "imgui_internal:3304", "namespace": "ImGui", "ov_cimguiname": "igFocusItem", "ret": "void", @@ -19570,7 +20019,7 @@ "cimguiname": "igFocusTopMostWindowUnderOne", "defaults": {}, "funcname": "FocusTopMostWindowUnderOne", - "location": "imgui_internal:3029", + "location": "imgui_internal:3143", "namespace": "ImGui", "ov_cimguiname": "igFocusTopMostWindowUnderOne", "ret": "void", @@ -19598,7 +20047,7 @@ "flags": "0" }, "funcname": "FocusWindow", - "location": "imgui_internal:3028", + "location": "imgui_internal:3142", "namespace": "ImGui", "ov_cimguiname": "igFocusWindow", "ret": "void", @@ -19620,7 +20069,7 @@ "cimguiname": "igGcAwakeTransientWindowBuffers", "defaults": {}, "funcname": "GcAwakeTransientWindowBuffers", - "location": "imgui_internal:3526", + "location": "imgui_internal:3660", "namespace": "ImGui", "ov_cimguiname": "igGcAwakeTransientWindowBuffers", "ret": "void", @@ -19637,7 +20086,7 @@ "cimguiname": "igGcCompactTransientMiscBuffers", "defaults": {}, "funcname": "GcCompactTransientMiscBuffers", - "location": "imgui_internal:3524", + "location": "imgui_internal:3658", "namespace": "ImGui", "ov_cimguiname": "igGcCompactTransientMiscBuffers", "ret": "void", @@ -19659,7 +20108,7 @@ "cimguiname": "igGcCompactTransientWindowBuffers", "defaults": {}, "funcname": "GcCompactTransientWindowBuffers", - "location": "imgui_internal:3525", + "location": "imgui_internal:3659", "namespace": "ImGui", "ov_cimguiname": "igGcCompactTransientWindowBuffers", "ret": "void", @@ -19676,7 +20125,7 @@ "cimguiname": "igGetActiveID", "defaults": {}, "funcname": "GetActiveID", - "location": "imgui_internal:3103", + "location": "imgui_internal:3218", "namespace": "ImGui", "ov_cimguiname": "igGetActiveID", "ret": "ImGuiID", @@ -19706,7 +20155,7 @@ "cimguiname": "igGetAllocatorFunctions", "defaults": {}, "funcname": "GetAllocatorFunctions", - "location": "imgui:988", + "location": "imgui:995", "namespace": "ImGui", "ov_cimguiname": "igGetAllocatorFunctions", "ret": "void", @@ -19724,7 +20173,7 @@ "comment": "// get background draw list for the viewport associated to the current window. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents.", "defaults": {}, "funcname": "GetBackgroundDrawList", - "location": "imgui:906", + "location": "imgui:913", "namespace": "ImGui", "ov_cimguiname": "igGetBackgroundDrawList_Nil", "ret": "ImDrawList*", @@ -19745,7 +20194,7 @@ "comment": "// get background draw list for the given viewport. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents.", "defaults": {}, "funcname": "GetBackgroundDrawList", - "location": "imgui:908", + "location": "imgui:915", "namespace": "ImGui", "ov_cimguiname": "igGetBackgroundDrawList_ViewportPtr", "ret": "ImDrawList*", @@ -19762,7 +20211,7 @@ "cimguiname": "igGetClipboardText", "defaults": {}, "funcname": "GetClipboardText", - "location": "imgui:967", + "location": "imgui:974", "namespace": "ImGui", "ov_cimguiname": "igGetClipboardText", "ret": "const char*", @@ -19791,7 +20240,7 @@ "alpha_mul": "1.0f" }, "funcname": "GetColorU32", - "location": "imgui:438", + "location": "imgui:440", "namespace": "ImGui", "ov_cimguiname": "igGetColorU32_Col", "ret": "ImU32", @@ -19812,7 +20261,7 @@ "comment": "// retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList", "defaults": {}, "funcname": "GetColorU32", - "location": "imgui:439", + "location": "imgui:441", "namespace": "ImGui", "ov_cimguiname": "igGetColorU32_Vec4", "ret": "ImU32", @@ -19833,7 +20282,7 @@ "comment": "// retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList", "defaults": {}, "funcname": "GetColorU32", - "location": "imgui:440", + "location": "imgui:442", "namespace": "ImGui", "ov_cimguiname": "igGetColorU32_U32", "ret": "ImU32", @@ -19851,7 +20300,7 @@ "comment": "// get current column index", "defaults": {}, "funcname": "GetColumnIndex", - "location": "imgui:799", + "location": "imgui:806", "namespace": "ImGui", "ov_cimguiname": "igGetColumnIndex", "ret": "int", @@ -19877,7 +20326,7 @@ "cimguiname": "igGetColumnNormFromOffset", "defaults": {}, "funcname": "GetColumnNormFromOffset", - "location": "imgui_internal:3352", + "location": "imgui_internal:3481", "namespace": "ImGui", "ov_cimguiname": "igGetColumnNormFromOffset", "ret": "float", @@ -19902,7 +20351,7 @@ "column_index": "-1" }, "funcname": "GetColumnOffset", - "location": "imgui:802", + "location": "imgui:809", "namespace": "ImGui", "ov_cimguiname": "igGetColumnOffset", "ret": "float", @@ -19928,7 +20377,7 @@ "cimguiname": "igGetColumnOffsetFromNorm", "defaults": {}, "funcname": "GetColumnOffsetFromNorm", - "location": "imgui_internal:3351", + "location": "imgui_internal:3480", "namespace": "ImGui", "ov_cimguiname": "igGetColumnOffsetFromNorm", "ret": "float", @@ -19953,7 +20402,7 @@ "column_index": "-1" }, "funcname": "GetColumnWidth", - "location": "imgui:800", + "location": "imgui:807", "namespace": "ImGui", "ov_cimguiname": "igGetColumnWidth", "ret": "float", @@ -19970,7 +20419,7 @@ "cimguiname": "igGetColumnsCount", "defaults": {}, "funcname": "GetColumnsCount", - "location": "imgui:804", + "location": "imgui:811", "namespace": "ImGui", "ov_cimguiname": "igGetColumnsCount", "ret": "int", @@ -19996,7 +20445,7 @@ "cimguiname": "igGetColumnsID", "defaults": {}, "funcname": "GetColumnsID", - "location": "imgui_internal:3349", + "location": "imgui_internal:3478", "namespace": "ImGui", "ov_cimguiname": "igGetColumnsID", "ret": "ImGuiID", @@ -20019,7 +20468,7 @@ "comment": "// == GetContentRegionMax() - GetCursorPos()", "defaults": {}, "funcname": "GetContentRegionAvail", - "location": "imgui:392", + "location": "imgui:394", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetContentRegionAvail", @@ -20043,7 +20492,7 @@ "comment": "// current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates", "defaults": {}, "funcname": "GetContentRegionMax", - "location": "imgui:393", + "location": "imgui:395", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetContentRegionMax", @@ -20066,7 +20515,7 @@ "cimguiname": "igGetContentRegionMaxAbs", "defaults": {}, "funcname": "GetContentRegionMaxAbs", - "location": "imgui_internal:3128", + "location": "imgui_internal:3243", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetContentRegionMaxAbs", @@ -20084,7 +20533,7 @@ "cimguiname": "igGetCurrentContext", "defaults": {}, "funcname": "GetCurrentContext", - "location": "imgui:299", + "location": "imgui:301", "namespace": "ImGui", "ov_cimguiname": "igGetCurrentContext", "ret": "ImGuiContext*", @@ -20102,7 +20551,7 @@ "comment": "// Focus scope we are outputting into, set by PushFocusScope()", "defaults": {}, "funcname": "GetCurrentFocusScope", - "location": "imgui_internal:3333", + "location": "imgui_internal:3456", "namespace": "ImGui", "ov_cimguiname": "igGetCurrentFocusScope", "ret": "ImGuiID", @@ -20119,7 +20568,7 @@ "cimguiname": "igGetCurrentTabBar", "defaults": {}, "funcname": "GetCurrentTabBar", - "location": "imgui_internal:3409", + "location": "imgui_internal:3541", "namespace": "ImGui", "ov_cimguiname": "igGetCurrentTabBar", "ret": "ImGuiTabBar*", @@ -20136,7 +20585,7 @@ "cimguiname": "igGetCurrentTable", "defaults": {}, "funcname": "GetCurrentTable", - "location": "imgui_internal:3364", + "location": "imgui_internal:3496", "namespace": "ImGui", "ov_cimguiname": "igGetCurrentTable", "ret": "ImGuiTable*", @@ -20153,7 +20602,7 @@ "cimguiname": "igGetCurrentWindow", "defaults": {}, "funcname": "GetCurrentWindow", - "location": "imgui_internal:3009", + "location": "imgui_internal:3123", "namespace": "ImGui", "ov_cimguiname": "igGetCurrentWindow", "ret": "ImGuiWindow*", @@ -20170,7 +20619,7 @@ "cimguiname": "igGetCurrentWindowRead", "defaults": {}, "funcname": "GetCurrentWindowRead", - "location": "imgui_internal:3008", + "location": "imgui_internal:3122", "namespace": "ImGui", "ov_cimguiname": "igGetCurrentWindowRead", "ret": "ImGuiWindow*", @@ -20190,10 +20639,10 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetCursorPos", - "comment": "// cursor position in window coordinates (relative to window position)", + "comment": "// [window-local] cursor position in window coordinates (relative to window position)", "defaults": {}, "funcname": "GetCursorPos", - "location": "imgui:459", + "location": "imgui:455", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorPos", @@ -20209,10 +20658,10 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetCursorPosX", - "comment": "// (some functions are using window-relative coordinates, such as: GetCursorPos, GetCursorStartPos, GetContentRegionMax, GetWindowContentRegion* etc.", + "comment": "// [window-local] \"", "defaults": {}, "funcname": "GetCursorPosX", - "location": "imgui:460", + "location": "imgui:456", "namespace": "ImGui", "ov_cimguiname": "igGetCursorPosX", "ret": "float", @@ -20227,10 +20676,10 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetCursorPosY", - "comment": "// other functions such as GetCursorScreenPos or everything in ImDrawList::", + "comment": "// [window-local] \"", "defaults": {}, "funcname": "GetCursorPosY", - "location": "imgui:461", + "location": "imgui:457", "namespace": "ImGui", "ov_cimguiname": "igGetCursorPosY", "ret": "float", @@ -20250,10 +20699,10 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetCursorScreenPos", - "comment": "// cursor position in absolute coordinates (useful to work with ImDrawList API). generally top-left == GetMainViewport()->Pos == (0,0) in single viewport mode, and bottom-right == GetMainViewport()->Pos+Size == io.DisplaySize in single-viewport mode.", + "comment": "// cursor position in absolute coordinates (prefer using this, also more useful to work with ImDrawList API).", "defaults": {}, "funcname": "GetCursorScreenPos", - "location": "imgui:466", + "location": "imgui:453", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorScreenPos", @@ -20274,10 +20723,10 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetCursorStartPos", - "comment": "// initial cursor position in window coordinates", + "comment": "// [window-local] initial cursor position, in window coordinates", "defaults": {}, "funcname": "GetCursorStartPos", - "location": "imgui:465", + "location": "imgui:461", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorStartPos", @@ -20295,7 +20744,7 @@ "cimguiname": "igGetDefaultFont", "defaults": {}, "funcname": "GetDefaultFont", - "location": "imgui_internal:3039", + "location": "imgui_internal:3153", "namespace": "ImGui", "ov_cimguiname": "igGetDefaultFont", "ret": "ImFont*", @@ -20310,10 +20759,10 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetDragDropPayload", - "comment": "// peek directly into the current payload from anywhere. may return NULL. use ImGuiPayload::IsDataType() to test for the payload type.", + "comment": "// peek directly into the current payload from anywhere. returns NULL when drag and drop is finished or inactive. use ImGuiPayload::IsDataType() to test for the payload type.", "defaults": {}, "funcname": "GetDragDropPayload", - "location": "imgui:856", + "location": "imgui:863", "namespace": "ImGui", "ov_cimguiname": "igGetDragDropPayload", "ret": "const ImGuiPayload*", @@ -20331,7 +20780,7 @@ "comment": "// valid after Render() and until the next call to NewFrame(). this is what you have to render.", "defaults": {}, "funcname": "GetDrawData", - "location": "imgui:308", + "location": "imgui:310", "namespace": "ImGui", "ov_cimguiname": "igGetDrawData", "ret": "ImDrawData*", @@ -20349,7 +20798,7 @@ "comment": "// you may use this when creating your own ImDrawList instances.", "defaults": {}, "funcname": "GetDrawListSharedData", - "location": "imgui:916", + "location": "imgui:923", "namespace": "ImGui", "ov_cimguiname": "igGetDrawListSharedData", "ret": "ImDrawListSharedData*", @@ -20366,7 +20815,7 @@ "cimguiname": "igGetFocusID", "defaults": {}, "funcname": "GetFocusID", - "location": "imgui_internal:3104", + "location": "imgui_internal:3219", "namespace": "ImGui", "ov_cimguiname": "igGetFocusID", "ret": "ImGuiID", @@ -20384,7 +20833,7 @@ "comment": "// get current font", "defaults": {}, "funcname": "GetFont", - "location": "imgui:435", + "location": "imgui:437", "namespace": "ImGui", "ov_cimguiname": "igGetFont", "ret": "ImFont*", @@ -20402,7 +20851,7 @@ "comment": "// get current font size (= height in pixels) of current font with current scale applied", "defaults": {}, "funcname": "GetFontSize", - "location": "imgui:436", + "location": "imgui:438", "namespace": "ImGui", "ov_cimguiname": "igGetFontSize", "ret": "float", @@ -20425,7 +20874,7 @@ "comment": "// get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API", "defaults": {}, "funcname": "GetFontTexUvWhitePixel", - "location": "imgui:437", + "location": "imgui:439", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetFontTexUvWhitePixel", @@ -20444,7 +20893,7 @@ "comment": "// get foreground draw list for the viewport associated to the current window. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents.", "defaults": {}, "funcname": "GetForegroundDrawList", - "location": "imgui:907", + "location": "imgui:914", "namespace": "ImGui", "ov_cimguiname": "igGetForegroundDrawList_Nil", "ret": "ImDrawList*", @@ -20465,7 +20914,7 @@ "comment": "// get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents.", "defaults": {}, "funcname": "GetForegroundDrawList", - "location": "imgui:909", + "location": "imgui:916", "namespace": "ImGui", "ov_cimguiname": "igGetForegroundDrawList_ViewportPtr", "ret": "ImDrawList*", @@ -20485,7 +20934,7 @@ "cimguiname": "igGetForegroundDrawList", "defaults": {}, "funcname": "GetForegroundDrawList", - "location": "imgui_internal:3040", + "location": "imgui_internal:3154", "namespace": "ImGui", "ov_cimguiname": "igGetForegroundDrawList_WindowPtr", "ret": "ImDrawList*", @@ -20503,7 +20952,7 @@ "comment": "// get global imgui frame count. incremented by 1 every frame.", "defaults": {}, "funcname": "GetFrameCount", - "location": "imgui:915", + "location": "imgui:922", "namespace": "ImGui", "ov_cimguiname": "igGetFrameCount", "ret": "int", @@ -20521,7 +20970,7 @@ "comment": "// ~ FontSize + style.FramePadding.y * 2", "defaults": {}, "funcname": "GetFrameHeight", - "location": "imgui:471", + "location": "imgui:476", "namespace": "ImGui", "ov_cimguiname": "igGetFrameHeight", "ret": "float", @@ -20539,7 +20988,7 @@ "comment": "// ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets)", "defaults": {}, "funcname": "GetFrameHeightWithSpacing", - "location": "imgui:472", + "location": "imgui:477", "namespace": "ImGui", "ov_cimguiname": "igGetFrameHeightWithSpacing", "ret": "float", @@ -20556,7 +21005,7 @@ "cimguiname": "igGetHoveredID", "defaults": {}, "funcname": "GetHoveredID", - "location": "imgui_internal:3108", + "location": "imgui_internal:3223", "namespace": "ImGui", "ov_cimguiname": "igGetHoveredID", "ret": "ImGuiID", @@ -20579,7 +21028,7 @@ "comment": "// calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself", "defaults": {}, "funcname": "GetID", - "location": "imgui:490", + "location": "imgui:495", "namespace": "ImGui", "ov_cimguiname": "igGetID_Str", "ret": "ImGuiID", @@ -20603,7 +21052,7 @@ "cimguiname": "igGetID", "defaults": {}, "funcname": "GetID", - "location": "imgui:491", + "location": "imgui:496", "namespace": "ImGui", "ov_cimguiname": "igGetID_StrStr", "ret": "ImGuiID", @@ -20623,7 +21072,7 @@ "cimguiname": "igGetID", "defaults": {}, "funcname": "GetID", - "location": "imgui:492", + "location": "imgui:497", "namespace": "ImGui", "ov_cimguiname": "igGetID_Ptr", "ret": "ImGuiID", @@ -20653,7 +21102,7 @@ "cimguiname": "igGetIDWithSeed", "defaults": {}, "funcname": "GetIDWithSeed", - "location": "imgui_internal:3113", + "location": "imgui_internal:3228", "namespace": "ImGui", "ov_cimguiname": "igGetIDWithSeed_Str", "ret": "ImGuiID", @@ -20677,7 +21126,7 @@ "cimguiname": "igGetIDWithSeed", "defaults": {}, "funcname": "GetIDWithSeed", - "location": "imgui_internal:3114", + "location": "imgui_internal:3229", "namespace": "ImGui", "ov_cimguiname": "igGetIDWithSeed_Int", "ret": "ImGuiID", @@ -20695,7 +21144,7 @@ "comment": "// access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags)", "defaults": {}, "funcname": "GetIO", - "location": "imgui:303", + "location": "imgui:305", "namespace": "ImGui", "ov_cimguiname": "igGetIO", "ret": "ImGuiIO*", @@ -20719,7 +21168,7 @@ "comment": "// Get input text state if active", "defaults": {}, "funcname": "GetInputTextState", - "location": "imgui_internal:3509", + "location": "imgui_internal:3642", "namespace": "ImGui", "ov_cimguiname": "igGetInputTextState", "ret": "ImGuiInputTextState*", @@ -20736,7 +21185,7 @@ "cimguiname": "igGetItemFlags", "defaults": {}, "funcname": "GetItemFlags", - "location": "imgui_internal:3102", + "location": "imgui_internal:3217", "namespace": "ImGui", "ov_cimguiname": "igGetItemFlags", "ret": "ImGuiItemFlags", @@ -20754,7 +21203,7 @@ "comment": "// get ID of last item (~~ often same ImGui::GetID(label) beforehand)", "defaults": {}, "funcname": "GetItemID", - "location": "imgui:894", + "location": "imgui:901", "namespace": "ImGui", "ov_cimguiname": "igGetItemID", "ret": "ImGuiID", @@ -20777,7 +21226,7 @@ "comment": "// get lower-right bounding rectangle of the last item (screen space)", "defaults": {}, "funcname": "GetItemRectMax", - "location": "imgui:896", + "location": "imgui:903", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectMax", @@ -20801,7 +21250,7 @@ "comment": "// get upper-left bounding rectangle of the last item (screen space)", "defaults": {}, "funcname": "GetItemRectMin", - "location": "imgui:895", + "location": "imgui:902", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectMin", @@ -20825,7 +21274,7 @@ "comment": "// get size of last item", "defaults": {}, "funcname": "GetItemRectSize", - "location": "imgui:897", + "location": "imgui:904", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectSize", @@ -20843,7 +21292,7 @@ "cimguiname": "igGetItemStatusFlags", "defaults": {}, "funcname": "GetItemStatusFlags", - "location": "imgui_internal:3101", + "location": "imgui_internal:3216", "namespace": "ImGui", "ov_cimguiname": "igGetItemStatusFlags", "ret": "ImGuiItemStatusFlags", @@ -20873,7 +21322,7 @@ "cimguiname": "igGetKeyChordName", "defaults": {}, "funcname": "GetKeyChordName", - "location": "imgui_internal:3212", + "location": "imgui_internal:3330", "namespace": "ImGui", "ov_cimguiname": "igGetKeyChordName", "ret": "void", @@ -20899,7 +21348,7 @@ "cimguiname": "igGetKeyData", "defaults": {}, "funcname": "GetKeyData", - "location": "imgui_internal:3210", + "location": "imgui_internal:3328", "namespace": "ImGui", "ov_cimguiname": "igGetKeyData_ContextPtr", "ret": "ImGuiKeyData*", @@ -20919,7 +21368,7 @@ "cimguiname": "igGetKeyData", "defaults": {}, "funcname": "GetKeyData", - "location": "imgui_internal:3211", + "location": "imgui_internal:3329", "namespace": "ImGui", "ov_cimguiname": "igGetKeyData_Key", "ret": "ImGuiKeyData*", @@ -20942,7 +21391,7 @@ "comment": "// map ImGuiKey_* values into legacy native key index. == io.KeyMap[key]", "defaults": {}, "funcname": "GetKeyIndex", - "location": "imgui:3334", + "location": "imgui:3372", "namespace": "ImGui", "ov_cimguiname": "igGetKeyIndex", "ret": "ImGuiKey", @@ -20980,7 +21429,7 @@ "cimguiname": "igGetKeyMagnitude2d", "defaults": {}, "funcname": "GetKeyMagnitude2d", - "location": "imgui_internal:3215", + "location": "imgui_internal:3333", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetKeyMagnitude2d", @@ -21004,7 +21453,7 @@ "comment": "// [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared.", "defaults": {}, "funcname": "GetKeyName", - "location": "imgui:941", + "location": "imgui:948", "namespace": "ImGui", "ov_cimguiname": "igGetKeyName", "ret": "const char*", @@ -21026,7 +21475,7 @@ "cimguiname": "igGetKeyOwner", "defaults": {}, "funcname": "GetKeyOwner", - "location": "imgui_internal:3233", + "location": "imgui_internal:3352", "namespace": "ImGui", "ov_cimguiname": "igGetKeyOwner", "ret": "ImGuiID", @@ -21052,7 +21501,7 @@ "cimguiname": "igGetKeyOwnerData", "defaults": {}, "funcname": "GetKeyOwnerData", - "location": "imgui_internal:3238", + "location": "imgui_internal:3357", "namespace": "ImGui", "ov_cimguiname": "igGetKeyOwnerData", "ret": "ImGuiKeyOwnerData*", @@ -21083,7 +21532,7 @@ "comment": "// uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate", "defaults": {}, "funcname": "GetKeyPressedAmount", - "location": "imgui:940", + "location": "imgui:947", "namespace": "ImGui", "ov_cimguiname": "igGetKeyPressedAmount", "ret": "int", @@ -21101,7 +21550,7 @@ "comment": "// return primary/default viewport. This can never be NULL.", "defaults": {}, "funcname": "GetMainViewport", - "location": "imgui:903", + "location": "imgui:910", "namespace": "ImGui", "ov_cimguiname": "igGetMainViewport", "ret": "ImGuiViewport*", @@ -21124,7 +21573,7 @@ "comment": "// return the number of successive mouse-clicks at the time where a click happen (otherwise 0).", "defaults": {}, "funcname": "GetMouseClickedCount", - "location": "imgui:952", + "location": "imgui:959", "namespace": "ImGui", "ov_cimguiname": "igGetMouseClickedCount", "ret": "int", @@ -21142,7 +21591,7 @@ "comment": "// get desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you", "defaults": {}, "funcname": "GetMouseCursor", - "location": "imgui:961", + "location": "imgui:968", "namespace": "ImGui", "ov_cimguiname": "igGetMouseCursor", "ret": "ImGuiMouseCursor", @@ -21176,7 +21625,7 @@ "lock_threshold": "-1.0f" }, "funcname": "GetMouseDragDelta", - "location": "imgui:959", + "location": "imgui:966", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMouseDragDelta", @@ -21200,7 +21649,7 @@ "comment": "// shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls", "defaults": {}, "funcname": "GetMousePos", - "location": "imgui:956", + "location": "imgui:963", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMousePos", @@ -21224,7 +21673,7 @@ "comment": "// retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves)", "defaults": {}, "funcname": "GetMousePosOnOpeningCurrentPopup", - "location": "imgui:957", + "location": "imgui:964", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMousePosOnOpeningCurrentPopup", @@ -21247,7 +21696,7 @@ "cimguiname": "igGetNavTweakPressedAmount", "defaults": {}, "funcname": "GetNavTweakPressedAmount", - "location": "imgui_internal:3216", + "location": "imgui_internal:3334", "namespace": "ImGui", "ov_cimguiname": "igGetNavTweakPressedAmount", "ret": "float", @@ -21265,7 +21714,7 @@ "comment": "// platform/renderer functions, for backend to setup + viewports list.", "defaults": {}, "funcname": "GetPlatformIO", - "location": "imgui:995", + "location": "imgui:1002", "namespace": "ImGui", "ov_cimguiname": "igGetPlatformIO", "ret": "ImGuiPlatformIO*", @@ -21292,7 +21741,7 @@ "cimguiname": "igGetPopupAllowedExtentRect", "defaults": {}, "funcname": "GetPopupAllowedExtentRect", - "location": "imgui_internal:3151", + "location": "imgui_internal:3267", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetPopupAllowedExtentRect", @@ -21311,7 +21760,7 @@ "comment": "// get maximum scrolling amount ~~ ContentSize.x - WindowSize.x - DecorationsSize.x", "defaults": {}, "funcname": "GetScrollMaxX", - "location": "imgui:404", + "location": "imgui:406", "namespace": "ImGui", "ov_cimguiname": "igGetScrollMaxX", "ret": "float", @@ -21329,7 +21778,7 @@ "comment": "// get maximum scrolling amount ~~ ContentSize.y - WindowSize.y - DecorationsSize.y", "defaults": {}, "funcname": "GetScrollMaxY", - "location": "imgui:405", + "location": "imgui:407", "namespace": "ImGui", "ov_cimguiname": "igGetScrollMaxY", "ret": "float", @@ -21347,7 +21796,7 @@ "comment": "// get scrolling amount [0 .. GetScrollMaxX()]", "defaults": {}, "funcname": "GetScrollX", - "location": "imgui:400", + "location": "imgui:402", "namespace": "ImGui", "ov_cimguiname": "igGetScrollX", "ret": "float", @@ -21365,7 +21814,7 @@ "comment": "// get scrolling amount [0 .. GetScrollMaxY()]", "defaults": {}, "funcname": "GetScrollY", - "location": "imgui:401", + "location": "imgui:403", "namespace": "ImGui", "ov_cimguiname": "igGetScrollY", "ret": "float", @@ -21387,7 +21836,7 @@ "cimguiname": "igGetShortcutRoutingData", "defaults": {}, "funcname": "GetShortcutRoutingData", - "location": "imgui_internal:3266", + "location": "imgui_internal:3389", "namespace": "ImGui", "ov_cimguiname": "igGetShortcutRoutingData", "ret": "ImGuiKeyRoutingData*", @@ -21404,7 +21853,7 @@ "cimguiname": "igGetStateStorage", "defaults": {}, "funcname": "GetStateStorage", - "location": "imgui:919", + "location": "imgui:926", "namespace": "ImGui", "ov_cimguiname": "igGetStateStorage", "ret": "ImGuiStorage*", @@ -21422,7 +21871,7 @@ "comment": "// access the Style structure (colors, sizes). Always use PushStyleCol(), PushStyleVar() to modify style mid-frame!", "defaults": {}, "funcname": "GetStyle", - "location": "imgui:304", + "location": "imgui:306", "namespace": "ImGui", "ov_cimguiname": "igGetStyle", "ret": "ImGuiStyle*", @@ -21446,7 +21895,7 @@ "comment": "// get a string corresponding to the enum value (for display, saving, etc.).", "defaults": {}, "funcname": "GetStyleColorName", - "location": "imgui:917", + "location": "imgui:924", "namespace": "ImGui", "ov_cimguiname": "igGetStyleColorName", "ret": "const char*", @@ -21469,7 +21918,7 @@ "comment": "// retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), otherwise use GetColorU32() to get style color with style alpha baked in.", "defaults": {}, "funcname": "GetStyleColorVec4", - "location": "imgui:441", + "location": "imgui:443", "namespace": "ImGui", "ov_cimguiname": "igGetStyleColorVec4", "ret": "const ImVec4*", @@ -21492,7 +21941,7 @@ "cimguiname": "igGetStyleVarInfo", "defaults": {}, "funcname": "GetStyleVarInfo", - "location": "imgui_internal:3134", + "location": "imgui_internal:3249", "namespace": "ImGui", "ov_cimguiname": "igGetStyleVarInfo", "ret": "const ImGuiDataVarInfo*", @@ -21510,7 +21959,7 @@ "comment": "// ~ FontSize", "defaults": {}, "funcname": "GetTextLineHeight", - "location": "imgui:469", + "location": "imgui:474", "namespace": "ImGui", "ov_cimguiname": "igGetTextLineHeight", "ret": "float", @@ -21528,7 +21977,7 @@ "comment": "// ~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text)", "defaults": {}, "funcname": "GetTextLineHeightWithSpacing", - "location": "imgui:470", + "location": "imgui:475", "namespace": "ImGui", "ov_cimguiname": "igGetTextLineHeightWithSpacing", "ret": "float", @@ -21546,7 +21995,7 @@ "comment": "// get global imgui time. incremented by io.DeltaTime every frame.", "defaults": {}, "funcname": "GetTime", - "location": "imgui:914", + "location": "imgui:921", "namespace": "ImGui", "ov_cimguiname": "igGetTime", "ret": "double", @@ -21563,7 +22012,7 @@ "cimguiname": "igGetTopMostAndVisiblePopupModal", "defaults": {}, "funcname": "GetTopMostAndVisiblePopupModal", - "location": "imgui_internal:3153", + "location": "imgui_internal:3269", "namespace": "ImGui", "ov_cimguiname": "igGetTopMostAndVisiblePopupModal", "ret": "ImGuiWindow*", @@ -21580,7 +22029,7 @@ "cimguiname": "igGetTopMostPopupModal", "defaults": {}, "funcname": "GetTopMostPopupModal", - "location": "imgui_internal:3152", + "location": "imgui_internal:3268", "namespace": "ImGui", "ov_cimguiname": "igGetTopMostPopupModal", "ret": "ImGuiWindow*", @@ -21598,7 +22047,7 @@ "comment": "// horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode", "defaults": {}, "funcname": "GetTreeNodeToLabelSpacing", - "location": "imgui:628", + "location": "imgui:634", "namespace": "ImGui", "ov_cimguiname": "igGetTreeNodeToLabelSpacing", "ret": "float", @@ -21628,7 +22077,7 @@ "cimguiname": "igGetTypematicRepeatRate", "defaults": {}, "funcname": "GetTypematicRepeatRate", - "location": "imgui_internal:3218", + "location": "imgui_internal:3336", "namespace": "ImGui", "ov_cimguiname": "igGetTypematicRepeatRate", "ret": "void", @@ -21636,6 +22085,30 @@ "stname": "" } ], + "igGetTypingSelectRequest": [ + { + "args": "(ImGuiTypingSelectFlags flags)", + "argsT": [ + { + "name": "flags", + "type": "ImGuiTypingSelectFlags" + } + ], + "argsoriginal": "(ImGuiTypingSelectFlags flags=ImGuiTypingSelectFlags_None)", + "call_args": "(flags)", + "cimguiname": "igGetTypingSelectRequest", + "defaults": { + "flags": "ImGuiTypingSelectFlags_None" + }, + "funcname": "GetTypingSelectRequest", + "location": "imgui_internal:3466", + "namespace": "ImGui", + "ov_cimguiname": "igGetTypingSelectRequest", + "ret": "ImGuiTypingSelectRequest*", + "signature": "(ImGuiTypingSelectFlags)", + "stname": "" + } + ], "igGetVersion": [ { "args": "()", @@ -21646,7 +22119,7 @@ "comment": "// get the compiled version string e.g. \"1.80 WIP\" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp)", "defaults": {}, "funcname": "GetVersion", - "location": "imgui:320", + "location": "imgui:322", "namespace": "ImGui", "ov_cimguiname": "igGetVersion", "ret": "const char*", @@ -21668,7 +22141,7 @@ "cimguiname": "igGetViewportPlatformMonitor", "defaults": {}, "funcname": "GetViewportPlatformMonitor", - "location": "imgui_internal:3065", + "location": "imgui_internal:3180", "namespace": "ImGui", "ov_cimguiname": "igGetViewportPlatformMonitor", "ret": "const ImGuiPlatformMonitor*", @@ -21690,7 +22163,7 @@ "cimguiname": "igGetWindowAlwaysWantOwnTabBar", "defaults": {}, "funcname": "GetWindowAlwaysWantOwnTabBar", - "location": "imgui_internal:3293", + "location": "imgui_internal:3416", "namespace": "ImGui", "ov_cimguiname": "igGetWindowAlwaysWantOwnTabBar", "ret": "bool", @@ -21713,7 +22186,7 @@ "comment": "// content boundaries max for the full window (roughly (0,0)+Size-Scroll) where Size can be overridden with SetNextWindowContentSize(), in window coordinates", "defaults": {}, "funcname": "GetWindowContentRegionMax", - "location": "imgui:395", + "location": "imgui:397", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowContentRegionMax", @@ -21737,7 +22210,7 @@ "comment": "// content boundaries min for the full window (roughly (0,0)-Scroll), in window coordinates", "defaults": {}, "funcname": "GetWindowContentRegionMin", - "location": "imgui:394", + "location": "imgui:396", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowContentRegionMin", @@ -21755,7 +22228,7 @@ "cimguiname": "igGetWindowDockID", "defaults": {}, "funcname": "GetWindowDockID", - "location": "imgui:832", + "location": "imgui:839", "namespace": "ImGui", "ov_cimguiname": "igGetWindowDockID", "ret": "ImGuiID", @@ -21772,7 +22245,7 @@ "cimguiname": "igGetWindowDockNode", "defaults": {}, "funcname": "GetWindowDockNode", - "location": "imgui_internal:3292", + "location": "imgui_internal:3415", "namespace": "ImGui", "ov_cimguiname": "igGetWindowDockNode", "ret": "ImGuiDockNode*", @@ -21790,7 +22263,7 @@ "comment": "// get DPI scale currently associated to the current window's viewport.", "defaults": {}, "funcname": "GetWindowDpiScale", - "location": "imgui:361", + "location": "imgui:363", "namespace": "ImGui", "ov_cimguiname": "igGetWindowDpiScale", "ret": "float", @@ -21808,7 +22281,7 @@ "comment": "// get draw list associated to the current window, to append your own drawing primitives", "defaults": {}, "funcname": "GetWindowDrawList", - "location": "imgui:360", + "location": "imgui:362", "namespace": "ImGui", "ov_cimguiname": "igGetWindowDrawList", "ret": "ImDrawList*", @@ -21826,7 +22299,7 @@ "comment": "// get current window height (shortcut for GetWindowSize().y)", "defaults": {}, "funcname": "GetWindowHeight", - "location": "imgui:365", + "location": "imgui:367", "namespace": "ImGui", "ov_cimguiname": "igGetWindowHeight", "ret": "float", @@ -21846,10 +22319,10 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetWindowPos", - "comment": "// get current window position in screen space (useful if you want to do your own drawing via the DrawList API)", + "comment": "// get current window position in screen space (note: it is unlikely you need to use this. Consider using current layout pos instead, GetCursorScreenPos())", "defaults": {}, "funcname": "GetWindowPos", - "location": "imgui:362", + "location": "imgui:364", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowPos", @@ -21876,7 +22349,7 @@ "cimguiname": "igGetWindowResizeBorderID", "defaults": {}, "funcname": "GetWindowResizeBorderID", - "location": "imgui_internal:3473", + "location": "imgui_internal:3605", "namespace": "ImGui", "ov_cimguiname": "igGetWindowResizeBorderID", "ret": "ImGuiID", @@ -21903,7 +22376,7 @@ "comment": "// 0..3: corners", "defaults": {}, "funcname": "GetWindowResizeCornerID", - "location": "imgui_internal:3472", + "location": "imgui_internal:3604", "namespace": "ImGui", "ov_cimguiname": "igGetWindowResizeCornerID", "ret": "ImGuiID", @@ -21929,7 +22402,7 @@ "cimguiname": "igGetWindowScrollbarID", "defaults": {}, "funcname": "GetWindowScrollbarID", - "location": "imgui_internal:3471", + "location": "imgui_internal:3603", "namespace": "ImGui", "ov_cimguiname": "igGetWindowScrollbarID", "ret": "ImGuiID", @@ -21959,7 +22432,7 @@ "cimguiname": "igGetWindowScrollbarRect", "defaults": {}, "funcname": "GetWindowScrollbarRect", - "location": "imgui_internal:3470", + "location": "imgui_internal:3602", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowScrollbarRect", @@ -21980,10 +22453,10 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetWindowSize", - "comment": "// get current window size", + "comment": "// get current window size (note: it is unlikely you need to use this. Consider using GetCursorScreenPos() and e.g. GetContentRegionAvail() instead)", "defaults": {}, "funcname": "GetWindowSize", - "location": "imgui:363", + "location": "imgui:365", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowSize", @@ -22002,7 +22475,7 @@ "comment": "// get viewport currently associated to the current window.", "defaults": {}, "funcname": "GetWindowViewport", - "location": "imgui:366", + "location": "imgui:368", "namespace": "ImGui", "ov_cimguiname": "igGetWindowViewport", "ret": "ImGuiViewport*", @@ -22020,7 +22493,7 @@ "comment": "// get current window width (shortcut for GetWindowSize().x)", "defaults": {}, "funcname": "GetWindowWidth", - "location": "imgui:364", + "location": "imgui:366", "namespace": "ImGui", "ov_cimguiname": "igGetWindowWidth", "ret": "float", @@ -22042,7 +22515,7 @@ "cimguiname": "igImAbs", "defaults": {}, "funcname": "ImAbs", - "location": "imgui_internal:439", + "location": "imgui_internal:454", "ov_cimguiname": "igImAbs_Int", "ret": "int", "signature": "(int)", @@ -22061,7 +22534,7 @@ "cimguiname": "igImAbs", "defaults": {}, "funcname": "ImAbs", - "location": "imgui_internal:440", + "location": "imgui_internal:455", "ov_cimguiname": "igImAbs_Float", "ret": "float", "signature": "(float)", @@ -22080,7 +22553,7 @@ "cimguiname": "igImAbs", "defaults": {}, "funcname": "ImAbs", - "location": "imgui_internal:441", + "location": "imgui_internal:456", "ov_cimguiname": "igImAbs_double", "ret": "double", "signature": "(double)", @@ -22105,7 +22578,7 @@ "cimguiname": "igImAlphaBlendColors", "defaults": {}, "funcname": "ImAlphaBlendColors", - "location": "imgui_internal:352", + "location": "imgui_internal:367", "ov_cimguiname": "igImAlphaBlendColors", "ret": "ImU32", "signature": "(ImU32,ImU32)", @@ -22146,7 +22619,7 @@ "cimguiname": "igImBezierCubicCalc", "defaults": {}, "funcname": "ImBezierCubicCalc", - "location": "imgui_internal:485", + "location": "imgui_internal:500", "nonUDT": 1, "ov_cimguiname": "igImBezierCubicCalc", "ret": "void", @@ -22193,7 +22666,7 @@ "comment": "// For curves with explicit number of segments", "defaults": {}, "funcname": "ImBezierCubicClosestPoint", - "location": "imgui_internal:486", + "location": "imgui_internal:501", "nonUDT": 1, "ov_cimguiname": "igImBezierCubicClosestPoint", "ret": "void", @@ -22240,7 +22713,7 @@ "comment": "// For auto-tessellated curves you can use tess_tol = style.CurveTessellationTol", "defaults": {}, "funcname": "ImBezierCubicClosestPointCasteljau", - "location": "imgui_internal:487", + "location": "imgui_internal:502", "nonUDT": 1, "ov_cimguiname": "igImBezierCubicClosestPointCasteljau", "ret": "void", @@ -22278,7 +22751,7 @@ "cimguiname": "igImBezierQuadraticCalc", "defaults": {}, "funcname": "ImBezierQuadraticCalc", - "location": "imgui_internal:488", + "location": "imgui_internal:503", "nonUDT": 1, "ov_cimguiname": "igImBezierQuadraticCalc", "ret": "void", @@ -22304,7 +22777,7 @@ "cimguiname": "igImBitArrayClearAllBits", "defaults": {}, "funcname": "ImBitArrayClearAllBits", - "location": "imgui_internal:556", + "location": "imgui_internal:572", "ov_cimguiname": "igImBitArrayClearAllBits", "ret": "void", "signature": "(ImU32*,int)", @@ -22329,7 +22802,7 @@ "cimguiname": "igImBitArrayClearBit", "defaults": {}, "funcname": "ImBitArrayClearBit", - "location": "imgui_internal:558", + "location": "imgui_internal:574", "ov_cimguiname": "igImBitArrayClearBit", "ret": "void", "signature": "(ImU32*,int)", @@ -22350,7 +22823,7 @@ "cimguiname": "igImBitArrayGetStorageSizeInBytes", "defaults": {}, "funcname": "ImBitArrayGetStorageSizeInBytes", - "location": "imgui_internal:555", + "location": "imgui_internal:571", "ov_cimguiname": "igImBitArrayGetStorageSizeInBytes", "ret": "size_t", "signature": "(int)", @@ -22375,7 +22848,7 @@ "cimguiname": "igImBitArraySetBit", "defaults": {}, "funcname": "ImBitArraySetBit", - "location": "imgui_internal:559", + "location": "imgui_internal:575", "ov_cimguiname": "igImBitArraySetBit", "ret": "void", "signature": "(ImU32*,int)", @@ -22404,7 +22877,7 @@ "cimguiname": "igImBitArraySetBitRange", "defaults": {}, "funcname": "ImBitArraySetBitRange", - "location": "imgui_internal:560", + "location": "imgui_internal:576", "ov_cimguiname": "igImBitArraySetBitRange", "ret": "void", "signature": "(ImU32*,int,int)", @@ -22429,7 +22902,7 @@ "cimguiname": "igImBitArrayTestBit", "defaults": {}, "funcname": "ImBitArrayTestBit", - "location": "imgui_internal:557", + "location": "imgui_internal:573", "ov_cimguiname": "igImBitArrayTestBit", "ret": "bool", "signature": "(const ImU32*,int)", @@ -22450,7 +22923,7 @@ "cimguiname": "igImCharIsBlankA", "defaults": {}, "funcname": "ImCharIsBlankA", - "location": "imgui_internal:374", + "location": "imgui_internal:389", "ov_cimguiname": "igImCharIsBlankA", "ret": "bool", "signature": "(char)", @@ -22471,7 +22944,7 @@ "cimguiname": "igImCharIsBlankW", "defaults": {}, "funcname": "ImCharIsBlankW", - "location": "imgui_internal:375", + "location": "imgui_internal:390", "ov_cimguiname": "igImCharIsBlankW", "ret": "bool", "signature": "(unsigned int)", @@ -22504,7 +22977,7 @@ "cimguiname": "igImClamp", "defaults": {}, "funcname": "ImClamp", - "location": "imgui_internal:463", + "location": "imgui_internal:478", "nonUDT": 1, "ov_cimguiname": "igImClamp", "ret": "void", @@ -22530,7 +23003,7 @@ "cimguiname": "igImDot", "defaults": {}, "funcname": "ImDot", - "location": "imgui_internal:476", + "location": "imgui_internal:491", "ov_cimguiname": "igImDot", "ret": "float", "signature": "(const ImVec2,const ImVec2)", @@ -22559,7 +23032,7 @@ "cimguiname": "igImExponentialMovingAverage", "defaults": {}, "funcname": "ImExponentialMovingAverage", - "location": "imgui_internal:481", + "location": "imgui_internal:496", "ov_cimguiname": "igImExponentialMovingAverage", "ret": "float", "signature": "(float,float,int)", @@ -22580,7 +23053,7 @@ "cimguiname": "igImFileClose", "defaults": {}, "funcname": "ImFileClose", - "location": "imgui_internal:412", + "location": "imgui_internal:428", "ov_cimguiname": "igImFileClose", "ret": "bool", "signature": "(ImFileHandle)", @@ -22601,7 +23074,7 @@ "cimguiname": "igImFileGetSize", "defaults": {}, "funcname": "ImFileGetSize", - "location": "imgui_internal:413", + "location": "imgui_internal:429", "ov_cimguiname": "igImFileGetSize", "ret": "ImU64", "signature": "(ImFileHandle)", @@ -22637,7 +23110,7 @@ "padding_bytes": "0" }, "funcname": "ImFileLoadToMemory", - "location": "imgui_internal:419", + "location": "imgui_internal:435", "ov_cimguiname": "igImFileLoadToMemory", "ret": "void*", "signature": "(const char*,const char*,size_t*,int)", @@ -22662,7 +23135,7 @@ "cimguiname": "igImFileOpen", "defaults": {}, "funcname": "ImFileOpen", - "location": "imgui_internal:411", + "location": "imgui_internal:427", "ov_cimguiname": "igImFileOpen", "ret": "ImFileHandle", "signature": "(const char*,const char*)", @@ -22695,7 +23168,7 @@ "cimguiname": "igImFileRead", "defaults": {}, "funcname": "ImFileRead", - "location": "imgui_internal:414", + "location": "imgui_internal:430", "ov_cimguiname": "igImFileRead", "ret": "ImU64", "signature": "(void*,ImU64,ImU64,ImFileHandle)", @@ -22728,7 +23201,7 @@ "cimguiname": "igImFileWrite", "defaults": {}, "funcname": "ImFileWrite", - "location": "imgui_internal:415", + "location": "imgui_internal:431", "ov_cimguiname": "igImFileWrite", "ret": "ImU64", "signature": "(const void*,ImU64,ImU64,ImFileHandle)", @@ -22747,9 +23220,10 @@ "argsoriginal": "(float f)", "call_args": "(f)", "cimguiname": "igImFloor", + "comment": "// Decent replacement for floorf()", "defaults": {}, "funcname": "ImFloor", - "location": "imgui_internal:471", + "location": "imgui_internal:488", "ov_cimguiname": "igImFloor_Float", "ret": "float", "signature": "(float)", @@ -22772,7 +23246,7 @@ "cimguiname": "igImFloor", "defaults": {}, "funcname": "ImFloor", - "location": "imgui_internal:473", + "location": "imgui_internal:489", "nonUDT": 1, "ov_cimguiname": "igImFloor_Vec2", "ret": "void", @@ -22780,52 +23254,6 @@ "stname": "" } ], - "igImFloorSigned": [ - { - "args": "(float f)", - "argsT": [ - { - "name": "f", - "type": "float" - } - ], - "argsoriginal": "(float f)", - "call_args": "(f)", - "cimguiname": "igImFloorSigned", - "comment": "// Decent replacement for floorf()", - "defaults": {}, - "funcname": "ImFloorSigned", - "location": "imgui_internal:472", - "ov_cimguiname": "igImFloorSigned_Float", - "ret": "float", - "signature": "(float)", - "stname": "" - }, - { - "args": "(ImVec2 *pOut,const ImVec2 v)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, - { - "name": "v", - "type": "const ImVec2" - } - ], - "argsoriginal": "(const ImVec2& v)", - "call_args": "(v)", - "cimguiname": "igImFloorSigned", - "defaults": {}, - "funcname": "ImFloorSigned", - "location": "imgui_internal:474", - "nonUDT": 1, - "ov_cimguiname": "igImFloorSigned_Vec2", - "ret": "void", - "signature": "(const ImVec2)", - "stname": "" - } - ], "igImFontAtlasBuildFinish": [ { "args": "(ImFontAtlas* atlas)", @@ -22840,7 +23268,7 @@ "cimguiname": "igImFontAtlasBuildFinish", "defaults": {}, "funcname": "ImFontAtlasBuildFinish", - "location": "imgui_internal:3599", + "location": "imgui_internal:3738", "ov_cimguiname": "igImFontAtlasBuildFinish", "ret": "void", "signature": "(ImFontAtlas*)", @@ -22861,7 +23289,7 @@ "cimguiname": "igImFontAtlasBuildInit", "defaults": {}, "funcname": "ImFontAtlasBuildInit", - "location": "imgui_internal:3596", + "location": "imgui_internal:3735", "ov_cimguiname": "igImFontAtlasBuildInit", "ret": "void", "signature": "(ImFontAtlas*)", @@ -22886,7 +23314,7 @@ "cimguiname": "igImFontAtlasBuildMultiplyCalcLookupTable", "defaults": {}, "funcname": "ImFontAtlasBuildMultiplyCalcLookupTable", - "location": "imgui_internal:3602", + "location": "imgui_internal:3741", "ov_cimguiname": "igImFontAtlasBuildMultiplyCalcLookupTable", "ret": "void", "signature": "(unsigned char[256],float)", @@ -22931,7 +23359,7 @@ "cimguiname": "igImFontAtlasBuildMultiplyRectAlpha8", "defaults": {}, "funcname": "ImFontAtlasBuildMultiplyRectAlpha8", - "location": "imgui_internal:3603", + "location": "imgui_internal:3742", "ov_cimguiname": "igImFontAtlasBuildMultiplyRectAlpha8", "ret": "void", "signature": "(const unsigned char[256],unsigned char*,int,int,int,int,int)", @@ -22956,7 +23384,7 @@ "cimguiname": "igImFontAtlasBuildPackCustomRects", "defaults": {}, "funcname": "ImFontAtlasBuildPackCustomRects", - "location": "imgui_internal:3598", + "location": "imgui_internal:3737", "ov_cimguiname": "igImFontAtlasBuildPackCustomRects", "ret": "void", "signature": "(ImFontAtlas*,void*)", @@ -23005,7 +23433,7 @@ "cimguiname": "igImFontAtlasBuildRender32bppRectFromString", "defaults": {}, "funcname": "ImFontAtlasBuildRender32bppRectFromString", - "location": "imgui_internal:3601", + "location": "imgui_internal:3740", "ov_cimguiname": "igImFontAtlasBuildRender32bppRectFromString", "ret": "void", "signature": "(ImFontAtlas*,int,int,int,int,const char*,char,unsigned int)", @@ -23054,7 +23482,7 @@ "cimguiname": "igImFontAtlasBuildRender8bppRectFromString", "defaults": {}, "funcname": "ImFontAtlasBuildRender8bppRectFromString", - "location": "imgui_internal:3600", + "location": "imgui_internal:3739", "ov_cimguiname": "igImFontAtlasBuildRender8bppRectFromString", "ret": "void", "signature": "(ImFontAtlas*,int,int,int,int,const char*,char,unsigned char)", @@ -23091,7 +23519,7 @@ "cimguiname": "igImFontAtlasBuildSetupFont", "defaults": {}, "funcname": "ImFontAtlasBuildSetupFont", - "location": "imgui_internal:3597", + "location": "imgui_internal:3736", "ov_cimguiname": "igImFontAtlasBuildSetupFont", "ret": "void", "signature": "(ImFontAtlas*,ImFont*,ImFontConfig*,float,float)", @@ -23107,13 +23535,34 @@ "cimguiname": "igImFontAtlasGetBuilderForStbTruetype", "defaults": {}, "funcname": "ImFontAtlasGetBuilderForStbTruetype", - "location": "imgui_internal:3594", + "location": "imgui_internal:3732", "ov_cimguiname": "igImFontAtlasGetBuilderForStbTruetype", "ret": "const ImFontBuilderIO*", "signature": "()", "stname": "" } ], + "igImFontAtlasUpdateConfigDataPointers": [ + { + "args": "(ImFontAtlas* atlas)", + "argsT": [ + { + "name": "atlas", + "type": "ImFontAtlas*" + } + ], + "argsoriginal": "(ImFontAtlas* atlas)", + "call_args": "(atlas)", + "cimguiname": "igImFontAtlasUpdateConfigDataPointers", + "defaults": {}, + "funcname": "ImFontAtlasUpdateConfigDataPointers", + "location": "imgui_internal:3734", + "ov_cimguiname": "igImFontAtlasUpdateConfigDataPointers", + "ret": "void", + "signature": "(ImFontAtlas*)", + "stname": "" + } + ], "igImFormatString": [ { "args": "(char* buf,size_t buf_size,const char* fmt,...)", @@ -23141,7 +23590,7 @@ "defaults": {}, "funcname": "ImFormatString", "isvararg": "...)", - "location": "imgui_internal:379", + "location": "imgui_internal:394", "ov_cimguiname": "igImFormatString", "ret": "int", "signature": "(char*,size_t,const char*,...)", @@ -23175,7 +23624,7 @@ "defaults": {}, "funcname": "ImFormatStringToTempBuffer", "isvararg": "...)", - "location": "imgui_internal:381", + "location": "imgui_internal:396", "ov_cimguiname": "igImFormatStringToTempBuffer", "ret": "void", "signature": "(const char**,const char**,const char*,...)", @@ -23208,7 +23657,7 @@ "cimguiname": "igImFormatStringToTempBufferV", "defaults": {}, "funcname": "ImFormatStringToTempBufferV", - "location": "imgui_internal:382", + "location": "imgui_internal:397", "ov_cimguiname": "igImFormatStringToTempBufferV", "ret": "void", "signature": "(const char**,const char**,const char*,va_list)", @@ -23241,7 +23690,7 @@ "cimguiname": "igImFormatStringV", "defaults": {}, "funcname": "ImFormatStringV", - "location": "imgui_internal:380", + "location": "imgui_internal:395", "ov_cimguiname": "igImFormatStringV", "ret": "int", "signature": "(char*,size_t,const char*,va_list)", @@ -23272,7 +23721,7 @@ "seed": "0" }, "funcname": "ImHashData", - "location": "imgui_internal:343", + "location": "imgui_internal:358", "ov_cimguiname": "igImHashData", "ret": "ImGuiID", "signature": "(const void*,size_t,ImGuiID)", @@ -23304,7 +23753,7 @@ "seed": "0" }, "funcname": "ImHashStr", - "location": "imgui_internal:344", + "location": "imgui_internal:359", "ov_cimguiname": "igImHashStr", "ret": "ImGuiID", "signature": "(const char*,size_t,ImGuiID)", @@ -23329,7 +23778,7 @@ "cimguiname": "igImInvLength", "defaults": {}, "funcname": "ImInvLength", - "location": "imgui_internal:470", + "location": "imgui_internal:485", "ov_cimguiname": "igImInvLength", "ret": "float", "signature": "(const ImVec2,float)", @@ -23350,7 +23799,7 @@ "cimguiname": "igImIsFloatAboveGuaranteedIntegerPrecision", "defaults": {}, "funcname": "ImIsFloatAboveGuaranteedIntegerPrecision", - "location": "imgui_internal:480", + "location": "imgui_internal:495", "ov_cimguiname": "igImIsFloatAboveGuaranteedIntegerPrecision", "ret": "bool", "signature": "(float)", @@ -23371,7 +23820,7 @@ "cimguiname": "igImIsPowerOfTwo", "defaults": {}, "funcname": "ImIsPowerOfTwo", - "location": "imgui_internal:355", + "location": "imgui_internal:370", "ov_cimguiname": "igImIsPowerOfTwo_Int", "ret": "bool", "signature": "(int)", @@ -23390,7 +23839,7 @@ "cimguiname": "igImIsPowerOfTwo", "defaults": {}, "funcname": "ImIsPowerOfTwo", - "location": "imgui_internal:356", + "location": "imgui_internal:371", "ov_cimguiname": "igImIsPowerOfTwo_U64", "ret": "bool", "signature": "(ImU64)", @@ -23411,7 +23860,7 @@ "cimguiname": "igImLengthSqr", "defaults": {}, "funcname": "ImLengthSqr", - "location": "imgui_internal:468", + "location": "imgui_internal:483", "ov_cimguiname": "igImLengthSqr_Vec2", "ret": "float", "signature": "(const ImVec2)", @@ -23430,7 +23879,7 @@ "cimguiname": "igImLengthSqr", "defaults": {}, "funcname": "ImLengthSqr", - "location": "imgui_internal:469", + "location": "imgui_internal:484", "ov_cimguiname": "igImLengthSqr_Vec4", "ret": "float", "signature": "(const ImVec4)", @@ -23463,7 +23912,7 @@ "cimguiname": "igImLerp", "defaults": {}, "funcname": "ImLerp", - "location": "imgui_internal:464", + "location": "imgui_internal:479", "nonUDT": 1, "ov_cimguiname": "igImLerp_Vec2Float", "ret": "void", @@ -23495,7 +23944,7 @@ "cimguiname": "igImLerp", "defaults": {}, "funcname": "ImLerp", - "location": "imgui_internal:465", + "location": "imgui_internal:480", "nonUDT": 1, "ov_cimguiname": "igImLerp_Vec2Vec2", "ret": "void", @@ -23527,7 +23976,7 @@ "cimguiname": "igImLerp", "defaults": {}, "funcname": "ImLerp", - "location": "imgui_internal:466", + "location": "imgui_internal:481", "nonUDT": 1, "ov_cimguiname": "igImLerp_Vec4", "ret": "void", @@ -23561,7 +24010,7 @@ "cimguiname": "igImLineClosestPoint", "defaults": {}, "funcname": "ImLineClosestPoint", - "location": "imgui_internal:489", + "location": "imgui_internal:504", "nonUDT": 1, "ov_cimguiname": "igImLineClosestPoint", "ret": "void", @@ -23591,7 +24040,7 @@ "cimguiname": "igImLinearSweep", "defaults": {}, "funcname": "ImLinearSweep", - "location": "imgui_internal:478", + "location": "imgui_internal:493", "ov_cimguiname": "igImLinearSweep", "ret": "float", "signature": "(float,float,float)", @@ -23613,7 +24062,7 @@ "comment": "// DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision", "defaults": {}, "funcname": "ImLog", - "location": "imgui_internal:437", + "location": "imgui_internal:452", "ov_cimguiname": "igImLog_Float", "ret": "float", "signature": "(float)", @@ -23632,7 +24081,7 @@ "cimguiname": "igImLog", "defaults": {}, "funcname": "ImLog", - "location": "imgui_internal:438", + "location": "imgui_internal:453", "ov_cimguiname": "igImLog_double", "ret": "double", "signature": "(double)", @@ -23661,7 +24110,7 @@ "cimguiname": "igImMax", "defaults": {}, "funcname": "ImMax", - "location": "imgui_internal:462", + "location": "imgui_internal:477", "nonUDT": 1, "ov_cimguiname": "igImMax", "ret": "void", @@ -23691,7 +24140,7 @@ "cimguiname": "igImMin", "defaults": {}, "funcname": "ImMin", - "location": "imgui_internal:461", + "location": "imgui_internal:476", "nonUDT": 1, "ov_cimguiname": "igImMin", "ret": "void", @@ -23717,7 +24166,7 @@ "cimguiname": "igImModPositive", "defaults": {}, "funcname": "ImModPositive", - "location": "imgui_internal:475", + "location": "imgui_internal:490", "ov_cimguiname": "igImModPositive", "ret": "int", "signature": "(int,int)", @@ -23746,7 +24195,7 @@ "cimguiname": "igImMul", "defaults": {}, "funcname": "ImMul", - "location": "imgui_internal:479", + "location": "imgui_internal:494", "nonUDT": 1, "ov_cimguiname": "igImMul", "ret": "void", @@ -23768,7 +24217,7 @@ "cimguiname": "igImParseFormatFindEnd", "defaults": {}, "funcname": "ImParseFormatFindEnd", - "location": "imgui_internal:384", + "location": "imgui_internal:399", "ov_cimguiname": "igImParseFormatFindEnd", "ret": "const char*", "signature": "(const char*)", @@ -23789,7 +24238,7 @@ "cimguiname": "igImParseFormatFindStart", "defaults": {}, "funcname": "ImParseFormatFindStart", - "location": "imgui_internal:383", + "location": "imgui_internal:398", "ov_cimguiname": "igImParseFormatFindStart", "ret": "const char*", "signature": "(const char*)", @@ -23814,7 +24263,7 @@ "cimguiname": "igImParseFormatPrecision", "defaults": {}, "funcname": "ImParseFormatPrecision", - "location": "imgui_internal:388", + "location": "imgui_internal:403", "ov_cimguiname": "igImParseFormatPrecision", "ret": "int", "signature": "(const char*,int)", @@ -23843,7 +24292,7 @@ "cimguiname": "igImParseFormatSanitizeForPrinting", "defaults": {}, "funcname": "ImParseFormatSanitizeForPrinting", - "location": "imgui_internal:386", + "location": "imgui_internal:401", "ov_cimguiname": "igImParseFormatSanitizeForPrinting", "ret": "void", "signature": "(const char*,char*,size_t)", @@ -23872,7 +24321,7 @@ "cimguiname": "igImParseFormatSanitizeForScanning", "defaults": {}, "funcname": "ImParseFormatSanitizeForScanning", - "location": "imgui_internal:387", + "location": "imgui_internal:402", "ov_cimguiname": "igImParseFormatSanitizeForScanning", "ret": "const char*", "signature": "(const char*,char*,size_t)", @@ -23901,7 +24350,7 @@ "cimguiname": "igImParseFormatTrimDecorations", "defaults": {}, "funcname": "ImParseFormatTrimDecorations", - "location": "imgui_internal:385", + "location": "imgui_internal:400", "ov_cimguiname": "igImParseFormatTrimDecorations", "ret": "const char*", "signature": "(const char*,char*,size_t)", @@ -23927,7 +24376,7 @@ "comment": "// DragBehaviorT/SliderBehaviorT uses ImPow with either float/double and need the precision", "defaults": {}, "funcname": "ImPow", - "location": "imgui_internal:435", + "location": "imgui_internal:450", "ov_cimguiname": "igImPow_Float", "ret": "float", "signature": "(float,float)", @@ -23950,7 +24399,7 @@ "cimguiname": "igImPow", "defaults": {}, "funcname": "ImPow", - "location": "imgui_internal:436", + "location": "imgui_internal:451", "ov_cimguiname": "igImPow_double", "ret": "double", "signature": "(double,double)", @@ -23985,7 +24434,7 @@ "cimguiname": "igImQsort", "defaults": {}, "funcname": "ImQsort", - "location": "imgui_internal:348", + "location": "imgui_internal:363", "ov_cimguiname": "igImQsort", "ret": "void", "signature": "(void*,size_t,size_t,int(*)(void const*,void const*))", @@ -24018,7 +24467,7 @@ "cimguiname": "igImRotate", "defaults": {}, "funcname": "ImRotate", - "location": "imgui_internal:477", + "location": "imgui_internal:492", "nonUDT": 1, "ov_cimguiname": "igImRotate", "ret": "void", @@ -24040,7 +24489,7 @@ "cimguiname": "igImRsqrt", "defaults": {}, "funcname": "ImRsqrt", - "location": "imgui_internal:445", + "location": "imgui_internal:460", "ov_cimguiname": "igImRsqrt_Float", "ret": "float", "signature": "(float)", @@ -24059,7 +24508,7 @@ "cimguiname": "igImRsqrt", "defaults": {}, "funcname": "ImRsqrt", - "location": "imgui_internal:449", + "location": "imgui_internal:464", "ov_cimguiname": "igImRsqrt_double", "ret": "double", "signature": "(double)", @@ -24080,7 +24529,7 @@ "cimguiname": "igImSaturate", "defaults": {}, "funcname": "ImSaturate", - "location": "imgui_internal:467", + "location": "imgui_internal:482", "ov_cimguiname": "igImSaturate", "ret": "float", "signature": "(float)", @@ -24102,7 +24551,7 @@ "comment": "// Sign operator - returns -1, 0 or 1 based on sign of argument", "defaults": {}, "funcname": "ImSign", - "location": "imgui_internal:442", + "location": "imgui_internal:457", "ov_cimguiname": "igImSign_Float", "ret": "float", "signature": "(float)", @@ -24121,7 +24570,7 @@ "cimguiname": "igImSign", "defaults": {}, "funcname": "ImSign", - "location": "imgui_internal:443", + "location": "imgui_internal:458", "ov_cimguiname": "igImSign_double", "ret": "double", "signature": "(double)", @@ -24140,9 +24589,10 @@ "argsoriginal": "(const char* str)", "call_args": "(str)", "cimguiname": "igImStrSkipBlank", + "comment": "// Find first non-blank character.", "defaults": {}, "funcname": "ImStrSkipBlank", - "location": "imgui_internal:371", + "location": "imgui_internal:384", "ov_cimguiname": "igImStrSkipBlank", "ret": "const char*", "signature": "(const char*)", @@ -24161,9 +24611,10 @@ "argsoriginal": "(char* str)", "call_args": "(str)", "cimguiname": "igImStrTrimBlanks", + "comment": "// Remove leading and trailing blanks from a buffer.", "defaults": {}, "funcname": "ImStrTrimBlanks", - "location": "imgui_internal:370", + "location": "imgui_internal:383", "ov_cimguiname": "igImStrTrimBlanks", "ret": "void", "signature": "(char*)", @@ -24186,10 +24637,10 @@ "argsoriginal": "(const ImWchar* buf_mid_line,const ImWchar* buf_begin)", "call_args": "(buf_mid_line,buf_begin)", "cimguiname": "igImStrbolW", - "comment": "// Find beginning-of-line", + "comment": "// Find beginning-of-line (ImWchar string)", "defaults": {}, "funcname": "ImStrbolW", - "location": "imgui_internal:368", + "location": "imgui_internal:386", "ov_cimguiname": "igImStrbolW", "ret": "const ImWchar*", "signature": "(const ImWchar*,const ImWchar*)", @@ -24216,9 +24667,10 @@ "argsoriginal": "(const char* str_begin,const char* str_end,char c)", "call_args": "(str_begin,str_end,c)", "cimguiname": "igImStrchrRange", + "comment": "// Find first occurrence of 'c' in string range.", "defaults": {}, "funcname": "ImStrchrRange", - "location": "imgui_internal:365", + "location": "imgui_internal:380", "ov_cimguiname": "igImStrchrRange", "ret": "const char*", "signature": "(const char*,const char*,char)", @@ -24237,9 +24689,10 @@ "argsoriginal": "(const char* str)", "call_args": "(str)", "cimguiname": "igImStrdup", + "comment": "// Duplicate a string.", "defaults": {}, "funcname": "ImStrdup", - "location": "imgui_internal:363", + "location": "imgui_internal:378", "ov_cimguiname": "igImStrdup", "ret": "char*", "signature": "(const char*)", @@ -24266,9 +24719,10 @@ "argsoriginal": "(char* dst,size_t* p_dst_size,const char* str)", "call_args": "(dst,p_dst_size,str)", "cimguiname": "igImStrdupcpy", + "comment": "// Copy in provided buffer, recreate buffer if needed.", "defaults": {}, "funcname": "ImStrdupcpy", - "location": "imgui_internal:364", + "location": "imgui_internal:379", "ov_cimguiname": "igImStrdupcpy", "ret": "char*", "signature": "(char*,size_t*,const char*)", @@ -24294,7 +24748,7 @@ "comment": "// End end-of-line", "defaults": {}, "funcname": "ImStreolRange", - "location": "imgui_internal:367", + "location": "imgui_internal:381", "ov_cimguiname": "igImStreolRange", "ret": "const char*", "signature": "(const char*,const char*)", @@ -24317,9 +24771,10 @@ "argsoriginal": "(const char* str1,const char* str2)", "call_args": "(str1,str2)", "cimguiname": "igImStricmp", + "comment": "// Case insensitive compare.", "defaults": {}, "funcname": "ImStricmp", - "location": "imgui_internal:360", + "location": "imgui_internal:375", "ov_cimguiname": "igImStricmp", "ret": "int", "signature": "(const char*,const char*)", @@ -24350,9 +24805,10 @@ "argsoriginal": "(const char* haystack,const char* haystack_end,const char* needle,const char* needle_end)", "call_args": "(haystack,haystack_end,needle,needle_end)", "cimguiname": "igImStristr", + "comment": "// Find a substring in a string range.", "defaults": {}, "funcname": "ImStristr", - "location": "imgui_internal:369", + "location": "imgui_internal:382", "ov_cimguiname": "igImStristr", "ret": "const char*", "signature": "(const char*,const char*,const char*,const char*)", @@ -24371,9 +24827,10 @@ "argsoriginal": "(const ImWchar* str)", "call_args": "(str)", "cimguiname": "igImStrlenW", + "comment": "// Computer string length (ImWchar string)", "defaults": {}, "funcname": "ImStrlenW", - "location": "imgui_internal:366", + "location": "imgui_internal:385", "ov_cimguiname": "igImStrlenW", "ret": "int", "signature": "(const ImWchar*)", @@ -24400,9 +24857,10 @@ "argsoriginal": "(char* dst,const char* src,size_t count)", "call_args": "(dst,src,count)", "cimguiname": "igImStrncpy", + "comment": "// Copy to a certain count and always zero terminate (strncpy doesn't).", "defaults": {}, "funcname": "ImStrncpy", - "location": "imgui_internal:362", + "location": "imgui_internal:377", "ov_cimguiname": "igImStrncpy", "ret": "void", "signature": "(char*,const char*,size_t)", @@ -24429,9 +24887,10 @@ "argsoriginal": "(const char* str1,const char* str2,size_t count)", "call_args": "(str1,str2,count)", "cimguiname": "igImStrnicmp", + "comment": "// Case insensitive compare to a certain count.", "defaults": {}, "funcname": "ImStrnicmp", - "location": "imgui_internal:361", + "location": "imgui_internal:376", "ov_cimguiname": "igImStrnicmp", "ret": "int", "signature": "(const char*,const char*,size_t)", @@ -24461,7 +24920,7 @@ "comment": "// read one character. return input UTF-8 bytes count", "defaults": {}, "funcname": "ImTextCharFromUtf8", - "location": "imgui_internal:393", + "location": "imgui_internal:408", "ov_cimguiname": "igImTextCharFromUtf8", "ret": "int", "signature": "(unsigned int*,const char*,const char*)", @@ -24487,7 +24946,7 @@ "comment": "// return out_buf", "defaults": {}, "funcname": "ImTextCharToUtf8", - "location": "imgui_internal:391", + "location": "imgui_internal:406", "ov_cimguiname": "igImTextCharToUtf8", "ret": "const char*", "signature": "(char[5],unsigned int)", @@ -24513,7 +24972,7 @@ "comment": "// return number of UTF-8 code-points (NOT bytes count)", "defaults": {}, "funcname": "ImTextCountCharsFromUtf8", - "location": "imgui_internal:395", + "location": "imgui_internal:410", "ov_cimguiname": "igImTextCountCharsFromUtf8", "ret": "int", "signature": "(const char*,const char*)", @@ -24539,7 +24998,7 @@ "comment": "// return number of bytes to express one char in UTF-8", "defaults": {}, "funcname": "ImTextCountUtf8BytesFromChar", - "location": "imgui_internal:396", + "location": "imgui_internal:411", "ov_cimguiname": "igImTextCountUtf8BytesFromChar", "ret": "int", "signature": "(const char*,const char*)", @@ -24565,13 +25024,39 @@ "comment": "// return number of bytes to express string in UTF-8", "defaults": {}, "funcname": "ImTextCountUtf8BytesFromStr", - "location": "imgui_internal:397", + "location": "imgui_internal:412", "ov_cimguiname": "igImTextCountUtf8BytesFromStr", "ret": "int", "signature": "(const ImWchar*,const ImWchar*)", "stname": "" } ], + "igImTextFindPreviousUtf8Codepoint": [ + { + "args": "(const char* in_text_start,const char* in_text_curr)", + "argsT": [ + { + "name": "in_text_start", + "type": "const char*" + }, + { + "name": "in_text_curr", + "type": "const char*" + } + ], + "argsoriginal": "(const char* in_text_start,const char* in_text_curr)", + "call_args": "(in_text_start,in_text_curr)", + "cimguiname": "igImTextFindPreviousUtf8Codepoint", + "comment": "// return previous UTF-8 code-point.", + "defaults": {}, + "funcname": "ImTextFindPreviousUtf8Codepoint", + "location": "imgui_internal:413", + "ov_cimguiname": "igImTextFindPreviousUtf8Codepoint", + "ret": "const char*", + "signature": "(const char*,const char*)", + "stname": "" + } + ], "igImTextStrFromUtf8": [ { "args": "(ImWchar* out_buf,int out_buf_size,const char* in_text,const char* in_text_end,const char** in_remaining)", @@ -24605,7 +25090,7 @@ "in_remaining": "NULL" }, "funcname": "ImTextStrFromUtf8", - "location": "imgui_internal:394", + "location": "imgui_internal:409", "ov_cimguiname": "igImTextStrFromUtf8", "ret": "int", "signature": "(ImWchar*,int,const char*,const char*,const char**)", @@ -24639,7 +25124,7 @@ "comment": "// return output UTF-8 bytes count", "defaults": {}, "funcname": "ImTextStrToUtf8", - "location": "imgui_internal:392", + "location": "imgui_internal:407", "ov_cimguiname": "igImTextStrToUtf8", "ret": "int", "signature": "(char*,int,const ImWchar*,const ImWchar*)", @@ -24660,7 +25145,7 @@ "cimguiname": "igImToUpper", "defaults": {}, "funcname": "ImToUpper", - "location": "imgui_internal:373", + "location": "imgui_internal:388", "ov_cimguiname": "igImToUpper", "ret": "char", "signature": "(char)", @@ -24689,7 +25174,7 @@ "cimguiname": "igImTriangleArea", "defaults": {}, "funcname": "ImTriangleArea", - "location": "imgui_internal:493", + "location": "imgui_internal:508", "ov_cimguiname": "igImTriangleArea", "ret": "float", "signature": "(const ImVec2,const ImVec2,const ImVec2)", @@ -24737,7 +25222,7 @@ "cimguiname": "igImTriangleBarycentricCoords", "defaults": {}, "funcname": "ImTriangleBarycentricCoords", - "location": "imgui_internal:492", + "location": "imgui_internal:507", "ov_cimguiname": "igImTriangleBarycentricCoords", "ret": "void", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float*,float*,float*)", @@ -24774,7 +25259,7 @@ "cimguiname": "igImTriangleClosestPoint", "defaults": {}, "funcname": "ImTriangleClosestPoint", - "location": "imgui_internal:491", + "location": "imgui_internal:506", "nonUDT": 1, "ov_cimguiname": "igImTriangleClosestPoint", "ret": "void", @@ -24808,13 +25293,58 @@ "cimguiname": "igImTriangleContainsPoint", "defaults": {}, "funcname": "ImTriangleContainsPoint", - "location": "imgui_internal:490", + "location": "imgui_internal:505", "ov_cimguiname": "igImTriangleContainsPoint", "ret": "bool", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2)", "stname": "" } ], + "igImTrunc": [ + { + "args": "(float f)", + "argsT": [ + { + "name": "f", + "type": "float" + } + ], + "argsoriginal": "(float f)", + "call_args": "(f)", + "cimguiname": "igImTrunc", + "defaults": {}, + "funcname": "ImTrunc", + "location": "imgui_internal:486", + "ov_cimguiname": "igImTrunc_Float", + "ret": "float", + "signature": "(float)", + "stname": "" + }, + { + "args": "(ImVec2 *pOut,const ImVec2 v)", + "argsT": [ + { + "name": "pOut", + "type": "ImVec2*" + }, + { + "name": "v", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& v)", + "call_args": "(v)", + "cimguiname": "igImTrunc", + "defaults": {}, + "funcname": "ImTrunc", + "location": "imgui_internal:487", + "nonUDT": 1, + "ov_cimguiname": "igImTrunc_Vec2", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], "igImUpperPowerOfTwo": [ { "args": "(int v)", @@ -24829,7 +25359,7 @@ "cimguiname": "igImUpperPowerOfTwo", "defaults": {}, "funcname": "ImUpperPowerOfTwo", - "location": "imgui_internal:357", + "location": "imgui_internal:372", "ov_cimguiname": "igImUpperPowerOfTwo", "ret": "int", "signature": "(int)", @@ -24875,7 +25405,7 @@ "uv1": "ImVec2(1,1)" }, "funcname": "Image", - "location": "imgui:527", + "location": "imgui:533", "namespace": "ImGui", "ov_cimguiname": "igImage", "ret": "void", @@ -24885,7 +25415,7 @@ ], "igImageButton": [ { - "args": "(const char* str_id,ImTextureID user_texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)", + "args": "(const char* str_id,ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)", "argsT": [ { "name": "str_id", @@ -24896,7 +25426,7 @@ "type": "ImTextureID" }, { - "name": "size", + "name": "image_size", "type": "const ImVec2" }, { @@ -24916,8 +25446,8 @@ "type": "const ImVec4" } ], - "argsoriginal": "(const char* str_id,ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))", - "call_args": "(str_id,user_texture_id,size,uv0,uv1,bg_col,tint_col)", + "argsoriginal": "(const char* str_id,ImTextureID user_texture_id,const ImVec2& image_size,const ImVec2& uv0=ImVec2(0,0),const ImVec2& uv1=ImVec2(1,1),const ImVec4& bg_col=ImVec4(0,0,0,0),const ImVec4& tint_col=ImVec4(1,1,1,1))", + "call_args": "(str_id,user_texture_id,image_size,uv0,uv1,bg_col,tint_col)", "cimguiname": "igImageButton", "defaults": { "bg_col": "ImVec4(0,0,0,0)", @@ -24926,7 +25456,7 @@ "uv1": "ImVec2(1,1)" }, "funcname": "ImageButton", - "location": "imgui:528", + "location": "imgui:534", "namespace": "ImGui", "ov_cimguiname": "igImageButton", "ret": "bool", @@ -24936,7 +25466,7 @@ ], "igImageButtonEx": [ { - "args": "(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col,ImGuiButtonFlags flags)", + "args": "(ImGuiID id,ImTextureID texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col,ImGuiButtonFlags flags)", "argsT": [ { "name": "id", @@ -24947,7 +25477,7 @@ "type": "ImTextureID" }, { - "name": "size", + "name": "image_size", "type": "const ImVec2" }, { @@ -24971,14 +25501,14 @@ "type": "ImGuiButtonFlags" } ], - "argsoriginal": "(ImGuiID id,ImTextureID texture_id,const ImVec2& size,const ImVec2& uv0,const ImVec2& uv1,const ImVec4& bg_col,const ImVec4& tint_col,ImGuiButtonFlags flags=0)", - "call_args": "(id,texture_id,size,uv0,uv1,bg_col,tint_col,flags)", + "argsoriginal": "(ImGuiID id,ImTextureID texture_id,const ImVec2& image_size,const ImVec2& uv0,const ImVec2& uv1,const ImVec4& bg_col,const ImVec4& tint_col,ImGuiButtonFlags flags=0)", + "call_args": "(id,texture_id,image_size,uv0,uv1,bg_col,tint_col,flags)", "cimguiname": "igImageButtonEx", "defaults": { "flags": "0" }, "funcname": "ImageButtonEx", - "location": "imgui_internal:3459", + "location": "imgui_internal:3591", "namespace": "ImGui", "ov_cimguiname": "igImageButtonEx", "ret": "bool", @@ -25003,7 +25533,7 @@ "indent_w": "0.0f" }, "funcname": "Indent", - "location": "imgui:455", + "location": "imgui:469", "namespace": "ImGui", "ov_cimguiname": "igIndent", "ret": "void", @@ -25020,7 +25550,7 @@ "cimguiname": "igInitialize", "defaults": {}, "funcname": "Initialize", - "location": "imgui_internal:3043", + "location": "imgui_internal:3158", "namespace": "ImGui", "ov_cimguiname": "igInitialize", "ret": "void", @@ -25067,7 +25597,7 @@ "step_fast": "0.0" }, "funcname": "InputDouble", - "location": "imgui:599", + "location": "imgui:605", "namespace": "ImGui", "ov_cimguiname": "igInputDouble", "ret": "bool", @@ -25114,7 +25644,7 @@ "step_fast": "0.0f" }, "funcname": "InputFloat", - "location": "imgui:591", + "location": "imgui:597", "namespace": "ImGui", "ov_cimguiname": "igInputFloat", "ret": "bool", @@ -25151,7 +25681,7 @@ "format": "\"%.3f\"" }, "funcname": "InputFloat2", - "location": "imgui:592", + "location": "imgui:598", "namespace": "ImGui", "ov_cimguiname": "igInputFloat2", "ret": "bool", @@ -25188,7 +25718,7 @@ "format": "\"%.3f\"" }, "funcname": "InputFloat3", - "location": "imgui:593", + "location": "imgui:599", "namespace": "ImGui", "ov_cimguiname": "igInputFloat3", "ret": "bool", @@ -25225,7 +25755,7 @@ "format": "\"%.3f\"" }, "funcname": "InputFloat4", - "location": "imgui:594", + "location": "imgui:600", "namespace": "ImGui", "ov_cimguiname": "igInputFloat4", "ret": "bool", @@ -25267,7 +25797,7 @@ "step_fast": "100" }, "funcname": "InputInt", - "location": "imgui:595", + "location": "imgui:601", "namespace": "ImGui", "ov_cimguiname": "igInputInt", "ret": "bool", @@ -25299,7 +25829,7 @@ "flags": "0" }, "funcname": "InputInt2", - "location": "imgui:596", + "location": "imgui:602", "namespace": "ImGui", "ov_cimguiname": "igInputInt2", "ret": "bool", @@ -25331,7 +25861,7 @@ "flags": "0" }, "funcname": "InputInt3", - "location": "imgui:597", + "location": "imgui:603", "namespace": "ImGui", "ov_cimguiname": "igInputInt3", "ret": "bool", @@ -25363,7 +25893,7 @@ "flags": "0" }, "funcname": "InputInt4", - "location": "imgui:598", + "location": "imgui:604", "namespace": "ImGui", "ov_cimguiname": "igInputInt4", "ret": "bool", @@ -25414,7 +25944,7 @@ "p_step_fast": "NULL" }, "funcname": "InputScalar", - "location": "imgui:600", + "location": "imgui:606", "namespace": "ImGui", "ov_cimguiname": "igInputScalar", "ret": "bool", @@ -25469,7 +25999,7 @@ "p_step_fast": "NULL" }, "funcname": "InputScalarN", - "location": "imgui:601", + "location": "imgui:607", "namespace": "ImGui", "ov_cimguiname": "igInputScalarN", "ret": "bool", @@ -25515,7 +26045,7 @@ "user_data": "NULL" }, "funcname": "InputText", - "location": "imgui:588", + "location": "imgui:594", "namespace": "ImGui", "ov_cimguiname": "igInputText", "ret": "bool", @@ -25537,7 +26067,7 @@ "cimguiname": "igInputTextDeactivateHook", "defaults": {}, "funcname": "InputTextDeactivateHook", - "location": "imgui_internal:3505", + "location": "imgui_internal:3638", "namespace": "ImGui", "ov_cimguiname": "igInputTextDeactivateHook", "ret": "void", @@ -25590,7 +26120,7 @@ "user_data": "NULL" }, "funcname": "InputTextEx", - "location": "imgui_internal:3504", + "location": "imgui_internal:3637", "namespace": "ImGui", "ov_cimguiname": "igInputTextEx", "ret": "bool", @@ -25641,7 +26171,7 @@ "user_data": "NULL" }, "funcname": "InputTextMultiline", - "location": "imgui:589", + "location": "imgui:595", "namespace": "ImGui", "ov_cimguiname": "igInputTextMultiline", "ret": "bool", @@ -25691,7 +26221,7 @@ "user_data": "NULL" }, "funcname": "InputTextWithHint", - "location": "imgui:590", + "location": "imgui:596", "namespace": "ImGui", "ov_cimguiname": "igInputTextWithHint", "ret": "bool", @@ -25724,7 +26254,7 @@ "flags": "0" }, "funcname": "InvisibleButton", - "location": "imgui:515", + "location": "imgui:520", "namespace": "ImGui", "ov_cimguiname": "igInvisibleButton", "ret": "bool", @@ -25746,7 +26276,7 @@ "cimguiname": "igIsActiveIdUsingNavDir", "defaults": {}, "funcname": "IsActiveIdUsingNavDir", - "location": "imgui_internal:3220", + "location": "imgui_internal:3339", "namespace": "ImGui", "ov_cimguiname": "igIsActiveIdUsingNavDir", "ret": "bool", @@ -25768,7 +26298,7 @@ "cimguiname": "igIsAliasKey", "defaults": {}, "funcname": "IsAliasKey", - "location": "imgui_internal:3197", + "location": "imgui_internal:3315", "namespace": "ImGui", "ov_cimguiname": "igIsAliasKey", "ret": "bool", @@ -25786,7 +26316,7 @@ "comment": "// is any item active?", "defaults": {}, "funcname": "IsAnyItemActive", - "location": "imgui:892", + "location": "imgui:899", "namespace": "ImGui", "ov_cimguiname": "igIsAnyItemActive", "ret": "bool", @@ -25804,7 +26334,7 @@ "comment": "// is any item focused?", "defaults": {}, "funcname": "IsAnyItemFocused", - "location": "imgui:893", + "location": "imgui:900", "namespace": "ImGui", "ov_cimguiname": "igIsAnyItemFocused", "ret": "bool", @@ -25822,7 +26352,7 @@ "comment": "// is any item hovered?", "defaults": {}, "funcname": "IsAnyItemHovered", - "location": "imgui:891", + "location": "imgui:898", "namespace": "ImGui", "ov_cimguiname": "igIsAnyItemHovered", "ret": "bool", @@ -25840,7 +26370,7 @@ "comment": "// [WILL OBSOLETE] is any mouse button held? This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid.", "defaults": {}, "funcname": "IsAnyMouseDown", - "location": "imgui:955", + "location": "imgui:962", "namespace": "ImGui", "ov_cimguiname": "igIsAnyMouseDown", "ret": "bool", @@ -25866,7 +26396,7 @@ "cimguiname": "igIsClippedEx", "defaults": {}, "funcname": "IsClippedEx", - "location": "imgui_internal:3122", + "location": "imgui_internal:3237", "namespace": "ImGui", "ov_cimguiname": "igIsClippedEx", "ret": "bool", @@ -25883,7 +26413,7 @@ "cimguiname": "igIsDragDropActive", "defaults": {}, "funcname": "IsDragDropActive", - "location": "imgui_internal:3336", + "location": "imgui_internal:3459", "namespace": "ImGui", "ov_cimguiname": "igIsDragDropActive", "ret": "bool", @@ -25900,7 +26430,7 @@ "cimguiname": "igIsDragDropPayloadBeingAccepted", "defaults": {}, "funcname": "IsDragDropPayloadBeingAccepted", - "location": "imgui_internal:3339", + "location": "imgui_internal:3462", "namespace": "ImGui", "ov_cimguiname": "igIsDragDropPayloadBeingAccepted", "ret": "bool", @@ -25922,7 +26452,7 @@ "cimguiname": "igIsGamepadKey", "defaults": {}, "funcname": "IsGamepadKey", - "location": "imgui_internal:3195", + "location": "imgui_internal:3313", "namespace": "ImGui", "ov_cimguiname": "igIsGamepadKey", "ret": "bool", @@ -25940,7 +26470,7 @@ "comment": "// was the last item just made active (item was previously inactive).", "defaults": {}, "funcname": "IsItemActivated", - "location": "imgui:887", + "location": "imgui:894", "namespace": "ImGui", "ov_cimguiname": "igIsItemActivated", "ret": "bool", @@ -25958,7 +26488,7 @@ "comment": "// is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false)", "defaults": {}, "funcname": "IsItemActive", - "location": "imgui:882", + "location": "imgui:889", "namespace": "ImGui", "ov_cimguiname": "igIsItemActive", "ret": "bool", @@ -25983,7 +26513,7 @@ "mouse_button": "0" }, "funcname": "IsItemClicked", - "location": "imgui:884", + "location": "imgui:891", "namespace": "ImGui", "ov_cimguiname": "igIsItemClicked", "ret": "bool", @@ -26001,7 +26531,7 @@ "comment": "// was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that require continuous editing.", "defaults": {}, "funcname": "IsItemDeactivated", - "location": "imgui:888", + "location": "imgui:895", "namespace": "ImGui", "ov_cimguiname": "igIsItemDeactivated", "ret": "bool", @@ -26019,7 +26549,7 @@ "comment": "// was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item).", "defaults": {}, "funcname": "IsItemDeactivatedAfterEdit", - "location": "imgui:889", + "location": "imgui:896", "namespace": "ImGui", "ov_cimguiname": "igIsItemDeactivatedAfterEdit", "ret": "bool", @@ -26037,7 +26567,7 @@ "comment": "// did the last item modify its underlying value this frame? or was pressed? This is generally the same as the \"bool\" return value of many widgets.", "defaults": {}, "funcname": "IsItemEdited", - "location": "imgui:886", + "location": "imgui:893", "namespace": "ImGui", "ov_cimguiname": "igIsItemEdited", "ret": "bool", @@ -26055,7 +26585,7 @@ "comment": "// is the last item focused for keyboard/gamepad navigation?", "defaults": {}, "funcname": "IsItemFocused", - "location": "imgui:883", + "location": "imgui:890", "namespace": "ImGui", "ov_cimguiname": "igIsItemFocused", "ret": "bool", @@ -26080,7 +26610,7 @@ "flags": "0" }, "funcname": "IsItemHovered", - "location": "imgui:881", + "location": "imgui:888", "namespace": "ImGui", "ov_cimguiname": "igIsItemHovered", "ret": "bool", @@ -26098,7 +26628,7 @@ "comment": "// was the last item open state toggled? set by TreeNode().", "defaults": {}, "funcname": "IsItemToggledOpen", - "location": "imgui:890", + "location": "imgui:897", "namespace": "ImGui", "ov_cimguiname": "igIsItemToggledOpen", "ret": "bool", @@ -26116,7 +26646,7 @@ "comment": "// Was the last item selection toggled? (after Selectable(), TreeNode() etc. We only returns toggle _event_ in order to handle clipping correctly)", "defaults": {}, "funcname": "IsItemToggledSelection", - "location": "imgui_internal:3127", + "location": "imgui_internal:3242", "namespace": "ImGui", "ov_cimguiname": "igIsItemToggledSelection", "ret": "bool", @@ -26134,7 +26664,7 @@ "comment": "// is the last item visible? (items may be out of sight because of clipping/scrolling)", "defaults": {}, "funcname": "IsItemVisible", - "location": "imgui:885", + "location": "imgui:892", "namespace": "ImGui", "ov_cimguiname": "igIsItemVisible", "ret": "bool", @@ -26142,6 +26672,38 @@ "stname": "" } ], + "igIsKeyChordPressed": [ + { + "args": "(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags)", + "argsT": [ + { + "name": "key_chord", + "type": "ImGuiKeyChord" + }, + { + "name": "owner_id", + "type": "ImGuiID" + }, + { + "name": "flags", + "type": "ImGuiInputFlags" + } + ], + "argsoriginal": "(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags=0)", + "call_args": "(key_chord,owner_id,flags)", + "cimguiname": "igIsKeyChordPressed", + "defaults": { + "flags": "0" + }, + "funcname": "IsKeyChordPressed", + "location": "imgui_internal:3385", + "namespace": "ImGui", + "ov_cimguiname": "igIsKeyChordPressed", + "ret": "bool", + "signature": "(ImGuiKeyChord,ImGuiID,ImGuiInputFlags)", + "stname": "" + } + ], "igIsKeyDown": [ { "args": "(ImGuiKey key)", @@ -26157,7 +26719,7 @@ "comment": "// is key being held.", "defaults": {}, "funcname": "IsKeyDown", - "location": "imgui:937", + "location": "imgui:944", "namespace": "ImGui", "ov_cimguiname": "igIsKeyDown_Nil", "ret": "bool", @@ -26181,7 +26743,7 @@ "cimguiname": "igIsKeyDown", "defaults": {}, "funcname": "IsKeyDown", - "location": "imgui_internal:3246", + "location": "imgui_internal:3365", "namespace": "ImGui", "ov_cimguiname": "igIsKeyDown_ID", "ret": "bool", @@ -26210,7 +26772,7 @@ "repeat": "true" }, "funcname": "IsKeyPressed", - "location": "imgui:938", + "location": "imgui:945", "namespace": "ImGui", "ov_cimguiname": "igIsKeyPressed_Bool", "ret": "bool", @@ -26241,7 +26803,7 @@ "flags": "0" }, "funcname": "IsKeyPressed", - "location": "imgui_internal:3247", + "location": "imgui_internal:3366", "namespace": "ImGui", "ov_cimguiname": "igIsKeyPressed_ID", "ret": "bool", @@ -26270,7 +26832,7 @@ "repeat": "true" }, "funcname": "IsKeyPressedMap", - "location": "imgui_internal:3576", + "location": "imgui_internal:3714", "namespace": "ImGui", "ov_cimguiname": "igIsKeyPressedMap", "ret": "bool", @@ -26293,7 +26855,7 @@ "comment": "// was key released (went from Down to !Down)?", "defaults": {}, "funcname": "IsKeyReleased", - "location": "imgui:939", + "location": "imgui:946", "namespace": "ImGui", "ov_cimguiname": "igIsKeyReleased_Nil", "ret": "bool", @@ -26317,7 +26879,7 @@ "cimguiname": "igIsKeyReleased", "defaults": {}, "funcname": "IsKeyReleased", - "location": "imgui_internal:3248", + "location": "imgui_internal:3367", "namespace": "ImGui", "ov_cimguiname": "igIsKeyReleased_ID", "ret": "bool", @@ -26339,7 +26901,7 @@ "cimguiname": "igIsKeyboardKey", "defaults": {}, "funcname": "IsKeyboardKey", - "location": "imgui_internal:3194", + "location": "imgui_internal:3312", "namespace": "ImGui", "ov_cimguiname": "igIsKeyboardKey", "ret": "bool", @@ -26361,7 +26923,7 @@ "cimguiname": "igIsLegacyKey", "defaults": {}, "funcname": "IsLegacyKey", - "location": "imgui_internal:3193", + "location": "imgui_internal:3311", "namespace": "ImGui", "ov_cimguiname": "igIsLegacyKey", "ret": "bool", @@ -26390,7 +26952,7 @@ "repeat": "false" }, "funcname": "IsMouseClicked", - "location": "imgui:949", + "location": "imgui:956", "namespace": "ImGui", "ov_cimguiname": "igIsMouseClicked_Bool", "ret": "bool", @@ -26420,7 +26982,7 @@ "flags": "0" }, "funcname": "IsMouseClicked", - "location": "imgui_internal:3250", + "location": "imgui_internal:3369", "namespace": "ImGui", "ov_cimguiname": "igIsMouseClicked_ID", "ret": "bool", @@ -26443,7 +27005,7 @@ "comment": "// did mouse button double-clicked? Same as GetMouseClickedCount() == 2. (note that a double-click will also report IsMouseClicked() == true)", "defaults": {}, "funcname": "IsMouseDoubleClicked", - "location": "imgui:951", + "location": "imgui:958", "namespace": "ImGui", "ov_cimguiname": "igIsMouseDoubleClicked", "ret": "bool", @@ -26466,7 +27028,7 @@ "comment": "// is mouse button held?", "defaults": {}, "funcname": "IsMouseDown", - "location": "imgui:948", + "location": "imgui:955", "namespace": "ImGui", "ov_cimguiname": "igIsMouseDown_Nil", "ret": "bool", @@ -26490,7 +27052,7 @@ "cimguiname": "igIsMouseDown", "defaults": {}, "funcname": "IsMouseDown", - "location": "imgui_internal:3249", + "location": "imgui_internal:3368", "namespace": "ImGui", "ov_cimguiname": "igIsMouseDown_ID", "ret": "bool", @@ -26518,7 +27080,7 @@ "lock_threshold": "-1.0f" }, "funcname": "IsMouseDragPastThreshold", - "location": "imgui_internal:3214", + "location": "imgui_internal:3332", "namespace": "ImGui", "ov_cimguiname": "igIsMouseDragPastThreshold", "ret": "bool", @@ -26547,7 +27109,7 @@ "lock_threshold": "-1.0f" }, "funcname": "IsMouseDragging", - "location": "imgui:958", + "location": "imgui:965", "namespace": "ImGui", "ov_cimguiname": "igIsMouseDragging", "ret": "bool", @@ -26580,7 +27142,7 @@ "clip": "true" }, "funcname": "IsMouseHoveringRect", - "location": "imgui:953", + "location": "imgui:960", "namespace": "ImGui", "ov_cimguiname": "igIsMouseHoveringRect", "ret": "bool", @@ -26602,7 +27164,7 @@ "cimguiname": "igIsMouseKey", "defaults": {}, "funcname": "IsMouseKey", - "location": "imgui_internal:3196", + "location": "imgui_internal:3314", "namespace": "ImGui", "ov_cimguiname": "igIsMouseKey", "ret": "bool", @@ -26627,7 +27189,7 @@ "mouse_pos": "NULL" }, "funcname": "IsMousePosValid", - "location": "imgui:954", + "location": "imgui:961", "namespace": "ImGui", "ov_cimguiname": "igIsMousePosValid", "ret": "bool", @@ -26650,7 +27212,7 @@ "comment": "// did mouse button released? (went from Down to !Down)", "defaults": {}, "funcname": "IsMouseReleased", - "location": "imgui:950", + "location": "imgui:957", "namespace": "ImGui", "ov_cimguiname": "igIsMouseReleased_Nil", "ret": "bool", @@ -26674,7 +27236,7 @@ "cimguiname": "igIsMouseReleased", "defaults": {}, "funcname": "IsMouseReleased", - "location": "imgui_internal:3251", + "location": "imgui_internal:3370", "namespace": "ImGui", "ov_cimguiname": "igIsMouseReleased_ID", "ret": "bool", @@ -26696,7 +27258,7 @@ "cimguiname": "igIsNamedKey", "defaults": {}, "funcname": "IsNamedKey", - "location": "imgui_internal:3191", + "location": "imgui_internal:3309", "namespace": "ImGui", "ov_cimguiname": "igIsNamedKey", "ret": "bool", @@ -26718,7 +27280,7 @@ "cimguiname": "igIsNamedKeyOrModKey", "defaults": {}, "funcname": "IsNamedKeyOrModKey", - "location": "imgui_internal:3192", + "location": "imgui_internal:3310", "namespace": "ImGui", "ov_cimguiname": "igIsNamedKeyOrModKey", "ret": "bool", @@ -26747,7 +27309,7 @@ "flags": "0" }, "funcname": "IsPopupOpen", - "location": "imgui:736", + "location": "imgui:742", "namespace": "ImGui", "ov_cimguiname": "igIsPopupOpen_Str", "ret": "bool", @@ -26771,7 +27333,7 @@ "cimguiname": "igIsPopupOpen", "defaults": {}, "funcname": "IsPopupOpen", - "location": "imgui_internal:3148", + "location": "imgui_internal:3263", "namespace": "ImGui", "ov_cimguiname": "igIsPopupOpen_ID", "ret": "bool", @@ -26794,7 +27356,7 @@ "comment": "// test if rectangle (of given size, starting from cursor position) is visible / not clipped.", "defaults": {}, "funcname": "IsRectVisible", - "location": "imgui:912", + "location": "imgui:919", "namespace": "ImGui", "ov_cimguiname": "igIsRectVisible_Nil", "ret": "bool", @@ -26819,7 +27381,7 @@ "comment": "// test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side.", "defaults": {}, "funcname": "IsRectVisible", - "location": "imgui:913", + "location": "imgui:920", "namespace": "ImGui", "ov_cimguiname": "igIsRectVisible_Vec2", "ret": "bool", @@ -26845,7 +27407,7 @@ "cimguiname": "igIsWindowAbove", "defaults": {}, "funcname": "IsWindowAbove", - "location": "imgui_internal:3016", + "location": "imgui_internal:3130", "namespace": "ImGui", "ov_cimguiname": "igIsWindowAbove", "ret": "bool", @@ -26862,7 +27424,7 @@ "cimguiname": "igIsWindowAppearing", "defaults": {}, "funcname": "IsWindowAppearing", - "location": "imgui:356", + "location": "imgui:358", "namespace": "ImGui", "ov_cimguiname": "igIsWindowAppearing", "ret": "bool", @@ -26896,7 +27458,7 @@ "cimguiname": "igIsWindowChildOf", "defaults": {}, "funcname": "IsWindowChildOf", - "location": "imgui_internal:3014", + "location": "imgui_internal:3128", "namespace": "ImGui", "ov_cimguiname": "igIsWindowChildOf", "ret": "bool", @@ -26913,7 +27475,7 @@ "cimguiname": "igIsWindowCollapsed", "defaults": {}, "funcname": "IsWindowCollapsed", - "location": "imgui:357", + "location": "imgui:359", "namespace": "ImGui", "ov_cimguiname": "igIsWindowCollapsed", "ret": "bool", @@ -26941,7 +27503,7 @@ "flags": "0" }, "funcname": "IsWindowContentHoverable", - "location": "imgui_internal:3121", + "location": "imgui_internal:3236", "namespace": "ImGui", "ov_cimguiname": "igIsWindowContentHoverable", "ret": "bool", @@ -26959,7 +27521,7 @@ "comment": "// is current window docked into another window?", "defaults": {}, "funcname": "IsWindowDocked", - "location": "imgui:833", + "location": "imgui:840", "namespace": "ImGui", "ov_cimguiname": "igIsWindowDocked", "ret": "bool", @@ -26984,7 +27546,7 @@ "flags": "0" }, "funcname": "IsWindowFocused", - "location": "imgui:358", + "location": "imgui:360", "namespace": "ImGui", "ov_cimguiname": "igIsWindowFocused", "ret": "bool", @@ -27009,7 +27571,7 @@ "flags": "0" }, "funcname": "IsWindowHovered", - "location": "imgui:359", + "location": "imgui:361", "namespace": "ImGui", "ov_cimguiname": "igIsWindowHovered", "ret": "bool", @@ -27031,7 +27593,7 @@ "cimguiname": "igIsWindowNavFocusable", "defaults": {}, "funcname": "IsWindowNavFocusable", - "location": "imgui_internal:3017", + "location": "imgui_internal:3131", "namespace": "ImGui", "ov_cimguiname": "igIsWindowNavFocusable", "ret": "bool", @@ -27057,7 +27619,7 @@ "cimguiname": "igIsWindowWithinBeginStackOf", "defaults": {}, "funcname": "IsWindowWithinBeginStackOf", - "location": "imgui_internal:3015", + "location": "imgui_internal:3129", "namespace": "ImGui", "ov_cimguiname": "igIsWindowWithinBeginStackOf", "ret": "bool", @@ -27094,7 +27656,7 @@ "nav_bb": "NULL" }, "funcname": "ItemAdd", - "location": "imgui_internal:3119", + "location": "imgui_internal:3234", "namespace": "ImGui", "ov_cimguiname": "igItemAdd", "ret": "bool", @@ -27124,7 +27686,7 @@ "cimguiname": "igItemHoverable", "defaults": {}, "funcname": "ItemHoverable", - "location": "imgui_internal:3120", + "location": "imgui_internal:3235", "namespace": "ImGui", "ov_cimguiname": "igItemHoverable", "ret": "bool", @@ -27152,7 +27714,7 @@ "text_baseline_y": "-1.0f" }, "funcname": "ItemSize", - "location": "imgui_internal:3117", + "location": "imgui_internal:3232", "namespace": "ImGui", "ov_cimguiname": "igItemSize_Vec2", "ret": "void", @@ -27179,7 +27741,7 @@ "text_baseline_y": "-1.0f" }, "funcname": "ItemSize", - "location": "imgui_internal:3118", + "location": "imgui_internal:3233", "namespace": "ImGui", "ov_cimguiname": "igItemSize_Rect", "ret": "void", @@ -27201,7 +27763,7 @@ "cimguiname": "igKeepAliveID", "defaults": {}, "funcname": "KeepAliveID", - "location": "imgui_internal:3110", + "location": "imgui_internal:3225", "namespace": "ImGui", "ov_cimguiname": "igKeepAliveID", "ret": "void", @@ -27233,7 +27795,7 @@ "defaults": {}, "funcname": "LabelText", "isvararg": "...)", - "location": "imgui:504", + "location": "imgui:509", "namespace": "ImGui", "ov_cimguiname": "igLabelText", "ret": "void", @@ -27263,7 +27825,7 @@ "cimguiname": "igLabelTextV", "defaults": {}, "funcname": "LabelTextV", - "location": "imgui:505", + "location": "imgui:510", "namespace": "ImGui", "ov_cimguiname": "igLabelTextV", "ret": "void", @@ -27303,7 +27865,7 @@ "height_in_items": "-1" }, "funcname": "ListBox", - "location": "imgui:647", + "location": "imgui:653", "namespace": "ImGui", "ov_cimguiname": "igListBox_Str_arr", "ret": "bool", @@ -27311,7 +27873,7 @@ "stname": "" }, { - "args": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items)", + "args": "(const char* label,int* current_item,const char*(*getter)(void* user_data,int idx),void* user_data,int items_count,int height_in_items)", "argsT": [ { "name": "label", @@ -27322,13 +27884,13 @@ "type": "int*" }, { - "name": "items_getter", - "ret": "bool", - "signature": "(void* data,int idx,const char** out_text)", - "type": "bool(*)(void* data,int idx,const char** out_text)" + "name": "getter", + "ret": "const char*", + "signature": "(void* user_data,int idx)", + "type": "const char*(*)(void* user_data,int idx)" }, { - "name": "data", + "name": "user_data", "type": "void*" }, { @@ -27340,18 +27902,18 @@ "type": "int" } ], - "argsoriginal": "(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items=-1)", - "call_args": "(label,current_item,items_getter,data,items_count,height_in_items)", + "argsoriginal": "(const char* label,int* current_item,const char*(*getter)(void* user_data,int idx),void* user_data,int items_count,int height_in_items=-1)", + "call_args": "(label,current_item,getter,user_data,items_count,height_in_items)", "cimguiname": "igListBox", "defaults": { "height_in_items": "-1" }, "funcname": "ListBox", - "location": "imgui:648", + "location": "imgui:654", "namespace": "ImGui", - "ov_cimguiname": "igListBox_FnBoolPtr", + "ov_cimguiname": "igListBox_FnStrPtr", "ret": "bool", - "signature": "(const char*,int*,bool(*)(void*,int,const char**),void*,int,int)", + "signature": "(const char*,int*,const char*(*)(void*,int),void*,int,int)", "stname": "" } ], @@ -27370,7 +27932,7 @@ "comment": "// call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename).", "defaults": {}, "funcname": "LoadIniSettingsFromDisk", - "location": "imgui:974", + "location": "imgui:981", "namespace": "ImGui", "ov_cimguiname": "igLoadIniSettingsFromDisk", "ret": "void", @@ -27399,7 +27961,7 @@ "ini_size": "0" }, "funcname": "LoadIniSettingsFromMemory", - "location": "imgui:975", + "location": "imgui:982", "namespace": "ImGui", "ov_cimguiname": "igLoadIniSettingsFromMemory", "ret": "void", @@ -27421,7 +27983,7 @@ "cimguiname": "igLocalizeGetMsg", "defaults": {}, "funcname": "LocalizeGetMsg", - "location": "imgui_internal:3084", + "location": "imgui_internal:3199", "namespace": "ImGui", "ov_cimguiname": "igLocalizeGetMsg", "ret": "const char*", @@ -27447,7 +28009,7 @@ "cimguiname": "igLocalizeRegisterEntries", "defaults": {}, "funcname": "LocalizeRegisterEntries", - "location": "imgui_internal:3083", + "location": "imgui_internal:3198", "namespace": "ImGui", "ov_cimguiname": "igLocalizeRegisterEntries", "ret": "void", @@ -27474,7 +28036,7 @@ "comment": "// -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name.", "defaults": {}, "funcname": "LogBegin", - "location": "imgui_internal:3137", + "location": "imgui_internal:3252", "namespace": "ImGui", "ov_cimguiname": "igLogBegin", "ret": "void", @@ -27492,7 +28054,7 @@ "comment": "// helper to display buttons for logging to tty/file/clipboard", "defaults": {}, "funcname": "LogButtons", - "location": "imgui:841", + "location": "imgui:848", "namespace": "ImGui", "ov_cimguiname": "igLogButtons", "ret": "void", @@ -27510,7 +28072,7 @@ "comment": "// stop logging (close file, etc.)", "defaults": {}, "funcname": "LogFinish", - "location": "imgui:840", + "location": "imgui:847", "namespace": "ImGui", "ov_cimguiname": "igLogFinish", "ret": "void", @@ -27542,7 +28104,7 @@ "text_end": "NULL" }, "funcname": "LogRenderedText", - "location": "imgui_internal:3139", + "location": "imgui_internal:3254", "namespace": "ImGui", "ov_cimguiname": "igLogRenderedText", "ret": "void", @@ -27568,7 +28130,7 @@ "cimguiname": "igLogSetNextTextDecoration", "defaults": {}, "funcname": "LogSetNextTextDecoration", - "location": "imgui_internal:3140", + "location": "imgui_internal:3255", "namespace": "ImGui", "ov_cimguiname": "igLogSetNextTextDecoration", "ret": "void", @@ -27596,7 +28158,7 @@ "defaults": {}, "funcname": "LogText", "isvararg": "...)", - "location": "imgui:842", + "location": "imgui:849", "manual": true, "namespace": "ImGui", "ov_cimguiname": "igLogText", @@ -27623,7 +28185,7 @@ "cimguiname": "igLogTextV", "defaults": {}, "funcname": "LogTextV", - "location": "imgui:843", + "location": "imgui:850", "namespace": "ImGui", "ov_cimguiname": "igLogTextV", "ret": "void", @@ -27648,7 +28210,7 @@ "auto_open_depth": "-1" }, "funcname": "LogToBuffer", - "location": "imgui_internal:3138", + "location": "imgui_internal:3253", "namespace": "ImGui", "ov_cimguiname": "igLogToBuffer", "ret": "void", @@ -27673,7 +28235,7 @@ "auto_open_depth": "-1" }, "funcname": "LogToClipboard", - "location": "imgui:839", + "location": "imgui:846", "namespace": "ImGui", "ov_cimguiname": "igLogToClipboard", "ret": "void", @@ -27703,7 +28265,7 @@ "filename": "NULL" }, "funcname": "LogToFile", - "location": "imgui:838", + "location": "imgui:845", "namespace": "ImGui", "ov_cimguiname": "igLogToFile", "ret": "void", @@ -27728,7 +28290,7 @@ "auto_open_depth": "-1" }, "funcname": "LogToTTY", - "location": "imgui:837", + "location": "imgui:844", "namespace": "ImGui", "ov_cimguiname": "igLogToTTY", "ret": "void", @@ -27745,7 +28307,7 @@ "cimguiname": "igMarkIniSettingsDirty", "defaults": {}, "funcname": "MarkIniSettingsDirty", - "location": "imgui_internal:3069", + "location": "imgui_internal:3184", "namespace": "ImGui", "ov_cimguiname": "igMarkIniSettingsDirty_Nil", "ret": "void", @@ -27765,7 +28327,7 @@ "cimguiname": "igMarkIniSettingsDirty", "defaults": {}, "funcname": "MarkIniSettingsDirty", - "location": "imgui_internal:3070", + "location": "imgui_internal:3185", "namespace": "ImGui", "ov_cimguiname": "igMarkIniSettingsDirty_WindowPtr", "ret": "void", @@ -27788,7 +28350,7 @@ "comment": "// Mark data associated to given item as \"edited\", used by IsItemDeactivatedAfterEdit() function.", "defaults": {}, "funcname": "MarkItemEdited", - "location": "imgui_internal:3111", + "location": "imgui_internal:3226", "namespace": "ImGui", "ov_cimguiname": "igMarkItemEdited", "ret": "void", @@ -27810,7 +28372,7 @@ "cimguiname": "igMemAlloc", "defaults": {}, "funcname": "MemAlloc", - "location": "imgui:989", + "location": "imgui:996", "namespace": "ImGui", "ov_cimguiname": "igMemAlloc", "ret": "void*", @@ -27832,7 +28394,7 @@ "cimguiname": "igMemFree", "defaults": {}, "funcname": "MemFree", - "location": "imgui:990", + "location": "imgui:997", "namespace": "ImGui", "ov_cimguiname": "igMemFree", "ret": "void", @@ -27871,7 +28433,7 @@ "shortcut": "NULL" }, "funcname": "MenuItem", - "location": "imgui:675", + "location": "imgui:681", "namespace": "ImGui", "ov_cimguiname": "igMenuItem_Bool", "ret": "bool", @@ -27906,7 +28468,7 @@ "enabled": "true" }, "funcname": "MenuItem", - "location": "imgui:676", + "location": "imgui:682", "namespace": "ImGui", "ov_cimguiname": "igMenuItem_BoolPtr", "ret": "bool", @@ -27948,7 +28510,7 @@ "shortcut": "NULL" }, "funcname": "MenuItemEx", - "location": "imgui_internal:3161", + "location": "imgui_internal:3277", "namespace": "ImGui", "ov_cimguiname": "igMenuItemEx", "ret": "bool", @@ -27970,7 +28532,7 @@ "cimguiname": "igMouseButtonToKey", "defaults": {}, "funcname": "MouseButtonToKey", - "location": "imgui_internal:3213", + "location": "imgui_internal:3331", "namespace": "ImGui", "ov_cimguiname": "igMouseButtonToKey", "ret": "ImGuiKey", @@ -27992,7 +28554,7 @@ "cimguiname": "igNavClearPreferredPosForAxis", "defaults": {}, "funcname": "NavClearPreferredPosForAxis", - "location": "imgui_internal:3178", + "location": "imgui_internal:3295", "namespace": "ImGui", "ov_cimguiname": "igNavClearPreferredPosForAxis", "ret": "void", @@ -28009,7 +28571,7 @@ "cimguiname": "igNavInitRequestApplyResult", "defaults": {}, "funcname": "NavInitRequestApplyResult", - "location": "imgui_internal:3170", + "location": "imgui_internal:3286", "namespace": "ImGui", "ov_cimguiname": "igNavInitRequestApplyResult", "ret": "void", @@ -28035,7 +28597,7 @@ "cimguiname": "igNavInitWindow", "defaults": {}, "funcname": "NavInitWindow", - "location": "imgui_internal:3169", + "location": "imgui_internal:3285", "namespace": "ImGui", "ov_cimguiname": "igNavInitWindow", "ret": "void", @@ -28052,7 +28614,7 @@ "cimguiname": "igNavMoveRequestApplyResult", "defaults": {}, "funcname": "NavMoveRequestApplyResult", - "location": "imgui_internal:3176", + "location": "imgui_internal:3293", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestApplyResult", "ret": "void", @@ -28069,7 +28631,7 @@ "cimguiname": "igNavMoveRequestButNoResultYet", "defaults": {}, "funcname": "NavMoveRequestButNoResultYet", - "location": "imgui_internal:3171", + "location": "imgui_internal:3287", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestButNoResultYet", "ret": "bool", @@ -28086,7 +28648,7 @@ "cimguiname": "igNavMoveRequestCancel", "defaults": {}, "funcname": "NavMoveRequestCancel", - "location": "imgui_internal:3175", + "location": "imgui_internal:3292", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestCancel", "ret": "void", @@ -28120,7 +28682,7 @@ "cimguiname": "igNavMoveRequestForward", "defaults": {}, "funcname": "NavMoveRequestForward", - "location": "imgui_internal:3173", + "location": "imgui_internal:3289", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestForward", "ret": "void", @@ -28142,7 +28704,7 @@ "cimguiname": "igNavMoveRequestResolveWithLastItem", "defaults": {}, "funcname": "NavMoveRequestResolveWithLastItem", - "location": "imgui_internal:3174", + "location": "imgui_internal:3290", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestResolveWithLastItem", "ret": "void", @@ -28150,6 +28712,32 @@ "stname": "" } ], + "igNavMoveRequestResolveWithPastTreeNode": [ + { + "args": "(ImGuiNavItemData* result,ImGuiNavTreeNodeData* tree_node_data)", + "argsT": [ + { + "name": "result", + "type": "ImGuiNavItemData*" + }, + { + "name": "tree_node_data", + "type": "ImGuiNavTreeNodeData*" + } + ], + "argsoriginal": "(ImGuiNavItemData* result,ImGuiNavTreeNodeData* tree_node_data)", + "call_args": "(result,tree_node_data)", + "cimguiname": "igNavMoveRequestResolveWithPastTreeNode", + "defaults": {}, + "funcname": "NavMoveRequestResolveWithPastTreeNode", + "location": "imgui_internal:3291", + "namespace": "ImGui", + "ov_cimguiname": "igNavMoveRequestResolveWithPastTreeNode", + "ret": "void", + "signature": "(ImGuiNavItemData*,ImGuiNavTreeNodeData*)", + "stname": "" + } + ], "igNavMoveRequestSubmit": [ { "args": "(ImGuiDir move_dir,ImGuiDir clip_dir,ImGuiNavMoveFlags move_flags,ImGuiScrollFlags scroll_flags)", @@ -28176,7 +28764,7 @@ "cimguiname": "igNavMoveRequestSubmit", "defaults": {}, "funcname": "NavMoveRequestSubmit", - "location": "imgui_internal:3172", + "location": "imgui_internal:3288", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestSubmit", "ret": "void", @@ -28202,7 +28790,7 @@ "cimguiname": "igNavMoveRequestTryWrapping", "defaults": {}, "funcname": "NavMoveRequestTryWrapping", - "location": "imgui_internal:3177", + "location": "imgui_internal:3294", "namespace": "ImGui", "ov_cimguiname": "igNavMoveRequestTryWrapping", "ret": "void", @@ -28210,6 +28798,23 @@ "stname": "" } ], + "igNavRestoreHighlightAfterMove": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igNavRestoreHighlightAfterMove", + "defaults": {}, + "funcname": "NavRestoreHighlightAfterMove", + "location": "imgui_internal:3296", + "namespace": "ImGui", + "ov_cimguiname": "igNavRestoreHighlightAfterMove", + "ret": "void", + "signature": "()", + "stname": "" + } + ], "igNavUpdateCurrentWindowIsScrollPushableX": [ { "args": "()", @@ -28219,7 +28824,7 @@ "cimguiname": "igNavUpdateCurrentWindowIsScrollPushableX", "defaults": {}, "funcname": "NavUpdateCurrentWindowIsScrollPushableX", - "location": "imgui_internal:3179", + "location": "imgui_internal:3297", "namespace": "ImGui", "ov_cimguiname": "igNavUpdateCurrentWindowIsScrollPushableX", "ret": "void", @@ -28237,7 +28842,7 @@ "comment": "// start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame().", "defaults": {}, "funcname": "NewFrame", - "location": "imgui:305", + "location": "imgui:307", "namespace": "ImGui", "ov_cimguiname": "igNewFrame", "ret": "void", @@ -28255,7 +28860,7 @@ "comment": "// undo a SameLine() or force a new line when in a horizontal-layout context.", "defaults": {}, "funcname": "NewLine", - "location": "imgui:452", + "location": "imgui:466", "namespace": "ImGui", "ov_cimguiname": "igNewLine", "ret": "void", @@ -28273,7 +28878,7 @@ "comment": "// next column, defaults to current row or next row if the current row is finished", "defaults": {}, "funcname": "NextColumn", - "location": "imgui:798", + "location": "imgui:805", "namespace": "ImGui", "ov_cimguiname": "igNextColumn", "ret": "void", @@ -28302,7 +28907,7 @@ "popup_flags": "0" }, "funcname": "OpenPopup", - "location": "imgui:718", + "location": "imgui:724", "namespace": "ImGui", "ov_cimguiname": "igOpenPopup_Str", "ret": "void", @@ -28329,7 +28934,7 @@ "popup_flags": "0" }, "funcname": "OpenPopup", - "location": "imgui:719", + "location": "imgui:725", "namespace": "ImGui", "ov_cimguiname": "igOpenPopup_ID", "ret": "void", @@ -28357,7 +28962,7 @@ "popup_flags": "ImGuiPopupFlags_None" }, "funcname": "OpenPopupEx", - "location": "imgui_internal:3144", + "location": "imgui_internal:3259", "namespace": "ImGui", "ov_cimguiname": "igOpenPopupEx", "ret": "void", @@ -28387,7 +28992,7 @@ "str_id": "NULL" }, "funcname": "OpenPopupOnItemClick", - "location": "imgui:720", + "location": "imgui:726", "namespace": "ImGui", "ov_cimguiname": "igOpenPopupOnItemClick", "ret": "void", @@ -28447,7 +29052,7 @@ "cimguiname": "igPlotEx", "defaults": {}, "funcname": "PlotEx", - "location": "imgui_internal:3517", + "location": "imgui_internal:3650", "namespace": "ImGui", "ov_cimguiname": "igPlotEx", "ret": "int", @@ -28508,7 +29113,7 @@ "values_offset": "0" }, "funcname": "PlotHistogram", - "location": "imgui:654", + "location": "imgui:660", "namespace": "ImGui", "ov_cimguiname": "igPlotHistogram_FloatPtr", "ret": "void", @@ -28568,7 +29173,7 @@ "values_offset": "0" }, "funcname": "PlotHistogram", - "location": "imgui:655", + "location": "imgui:661", "namespace": "ImGui", "ov_cimguiname": "igPlotHistogram_FnFloatPtr", "ret": "void", @@ -28629,7 +29234,7 @@ "values_offset": "0" }, "funcname": "PlotLines", - "location": "imgui:652", + "location": "imgui:658", "namespace": "ImGui", "ov_cimguiname": "igPlotLines_FloatPtr", "ret": "void", @@ -28689,7 +29294,7 @@ "values_offset": "0" }, "funcname": "PlotLines", - "location": "imgui:653", + "location": "imgui:659", "namespace": "ImGui", "ov_cimguiname": "igPlotLines_FnFloatPtr", "ret": "void", @@ -28706,7 +29311,7 @@ "cimguiname": "igPopButtonRepeat", "defaults": {}, "funcname": "PopButtonRepeat", - "location": "imgui:423", + "location": "imgui:425", "namespace": "ImGui", "ov_cimguiname": "igPopButtonRepeat", "ret": "void", @@ -28723,7 +29328,7 @@ "cimguiname": "igPopClipRect", "defaults": {}, "funcname": "PopClipRect", - "location": "imgui:868", + "location": "imgui:875", "namespace": "ImGui", "ov_cimguiname": "igPopClipRect", "ret": "void", @@ -28740,7 +29345,7 @@ "cimguiname": "igPopColumnsBackground", "defaults": {}, "funcname": "PopColumnsBackground", - "location": "imgui_internal:3348", + "location": "imgui_internal:3477", "namespace": "ImGui", "ov_cimguiname": "igPopColumnsBackground", "ret": "void", @@ -28757,7 +29362,7 @@ "cimguiname": "igPopFocusScope", "defaults": {}, "funcname": "PopFocusScope", - "location": "imgui_internal:3332", + "location": "imgui_internal:3455", "namespace": "ImGui", "ov_cimguiname": "igPopFocusScope", "ret": "void", @@ -28774,7 +29379,7 @@ "cimguiname": "igPopFont", "defaults": {}, "funcname": "PopFont", - "location": "imgui:413", + "location": "imgui:415", "namespace": "ImGui", "ov_cimguiname": "igPopFont", "ret": "void", @@ -28792,7 +29397,7 @@ "comment": "// pop from the ID stack.", "defaults": {}, "funcname": "PopID", - "location": "imgui:489", + "location": "imgui:494", "namespace": "ImGui", "ov_cimguiname": "igPopID", "ret": "void", @@ -28809,7 +29414,7 @@ "cimguiname": "igPopItemFlag", "defaults": {}, "funcname": "PopItemFlag", - "location": "imgui_internal:3133", + "location": "imgui_internal:3248", "namespace": "ImGui", "ov_cimguiname": "igPopItemFlag", "ret": "void", @@ -28826,7 +29431,7 @@ "cimguiname": "igPopItemWidth", "defaults": {}, "funcname": "PopItemWidth", - "location": "imgui:427", + "location": "imgui:429", "namespace": "ImGui", "ov_cimguiname": "igPopItemWidth", "ret": "void", @@ -28850,7 +29455,7 @@ "count": "1" }, "funcname": "PopStyleColor", - "location": "imgui:416", + "location": "imgui:418", "namespace": "ImGui", "ov_cimguiname": "igPopStyleColor", "ret": "void", @@ -28874,7 +29479,7 @@ "count": "1" }, "funcname": "PopStyleVar", - "location": "imgui:419", + "location": "imgui:421", "namespace": "ImGui", "ov_cimguiname": "igPopStyleVar", "ret": "void", @@ -28891,7 +29496,7 @@ "cimguiname": "igPopTabStop", "defaults": {}, "funcname": "PopTabStop", - "location": "imgui:421", + "location": "imgui:423", "namespace": "ImGui", "ov_cimguiname": "igPopTabStop", "ret": "void", @@ -28908,7 +29513,7 @@ "cimguiname": "igPopTextWrapPos", "defaults": {}, "funcname": "PopTextWrapPos", - "location": "imgui:431", + "location": "imgui:433", "namespace": "ImGui", "ov_cimguiname": "igPopTextWrapPos", "ret": "void", @@ -28941,7 +29546,7 @@ "size_arg": "ImVec2(-FLT_MIN,0)" }, "funcname": "ProgressBar", - "location": "imgui:522", + "location": "imgui:527", "namespace": "ImGui", "ov_cimguiname": "igProgressBar", "ret": "void", @@ -28964,7 +29569,7 @@ "comment": "// in 'repeat' mode, Button*() functions return repeated true in a typematic manner (using io.KeyRepeatDelay/io.KeyRepeatRate setting). Note that you can call IsItemActive() after any Button() to tell if the button is held in the current frame.", "defaults": {}, "funcname": "PushButtonRepeat", - "location": "imgui:422", + "location": "imgui:424", "namespace": "ImGui", "ov_cimguiname": "igPushButtonRepeat", "ret": "void", @@ -28994,7 +29599,7 @@ "cimguiname": "igPushClipRect", "defaults": {}, "funcname": "PushClipRect", - "location": "imgui:867", + "location": "imgui:874", "namespace": "ImGui", "ov_cimguiname": "igPushClipRect", "ret": "void", @@ -29016,7 +29621,7 @@ "cimguiname": "igPushColumnClipRect", "defaults": {}, "funcname": "PushColumnClipRect", - "location": "imgui_internal:3346", + "location": "imgui_internal:3475", "namespace": "ImGui", "ov_cimguiname": "igPushColumnClipRect", "ret": "void", @@ -29033,7 +29638,7 @@ "cimguiname": "igPushColumnsBackground", "defaults": {}, "funcname": "PushColumnsBackground", - "location": "imgui_internal:3347", + "location": "imgui_internal:3476", "namespace": "ImGui", "ov_cimguiname": "igPushColumnsBackground", "ret": "void", @@ -29055,7 +29660,7 @@ "cimguiname": "igPushFocusScope", "defaults": {}, "funcname": "PushFocusScope", - "location": "imgui_internal:3331", + "location": "imgui_internal:3454", "namespace": "ImGui", "ov_cimguiname": "igPushFocusScope", "ret": "void", @@ -29078,7 +29683,7 @@ "comment": "// use NULL as a shortcut to push default font", "defaults": {}, "funcname": "PushFont", - "location": "imgui:412", + "location": "imgui:414", "namespace": "ImGui", "ov_cimguiname": "igPushFont", "ret": "void", @@ -29101,7 +29706,7 @@ "comment": "// push string into the ID stack (will hash string).", "defaults": {}, "funcname": "PushID", - "location": "imgui:485", + "location": "imgui:490", "namespace": "ImGui", "ov_cimguiname": "igPushID_Str", "ret": "void", @@ -29126,7 +29731,7 @@ "comment": "// push string into the ID stack (will hash string).", "defaults": {}, "funcname": "PushID", - "location": "imgui:486", + "location": "imgui:491", "namespace": "ImGui", "ov_cimguiname": "igPushID_StrStr", "ret": "void", @@ -29147,7 +29752,7 @@ "comment": "// push pointer into the ID stack (will hash pointer).", "defaults": {}, "funcname": "PushID", - "location": "imgui:487", + "location": "imgui:492", "namespace": "ImGui", "ov_cimguiname": "igPushID_Ptr", "ret": "void", @@ -29168,7 +29773,7 @@ "comment": "// push integer into the ID stack (will hash integer).", "defaults": {}, "funcname": "PushID", - "location": "imgui:488", + "location": "imgui:493", "namespace": "ImGui", "ov_cimguiname": "igPushID_Int", "ret": "void", @@ -29194,7 +29799,7 @@ "cimguiname": "igPushItemFlag", "defaults": {}, "funcname": "PushItemFlag", - "location": "imgui_internal:3132", + "location": "imgui_internal:3247", "namespace": "ImGui", "ov_cimguiname": "igPushItemFlag", "ret": "void", @@ -29217,7 +29822,7 @@ "comment": "// push width of items for common large \"item+label\" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side).", "defaults": {}, "funcname": "PushItemWidth", - "location": "imgui:426", + "location": "imgui:428", "namespace": "ImGui", "ov_cimguiname": "igPushItemWidth", "ret": "void", @@ -29243,7 +29848,7 @@ "cimguiname": "igPushMultiItemsWidths", "defaults": {}, "funcname": "PushMultiItemsWidths", - "location": "imgui_internal:3126", + "location": "imgui_internal:3241", "namespace": "ImGui", "ov_cimguiname": "igPushMultiItemsWidths", "ret": "void", @@ -29266,7 +29871,7 @@ "comment": "// Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes)", "defaults": {}, "funcname": "PushOverrideID", - "location": "imgui_internal:3112", + "location": "imgui_internal:3227", "namespace": "ImGui", "ov_cimguiname": "igPushOverrideID", "ret": "void", @@ -29293,7 +29898,7 @@ "comment": "// modify a style color. always use this if you modify the style after NewFrame().", "defaults": {}, "funcname": "PushStyleColor", - "location": "imgui:414", + "location": "imgui:416", "namespace": "ImGui", "ov_cimguiname": "igPushStyleColor_U32", "ret": "void", @@ -29317,7 +29922,7 @@ "cimguiname": "igPushStyleColor", "defaults": {}, "funcname": "PushStyleColor", - "location": "imgui:415", + "location": "imgui:417", "namespace": "ImGui", "ov_cimguiname": "igPushStyleColor_Vec4", "ret": "void", @@ -29344,7 +29949,7 @@ "comment": "// modify a style float variable. always use this if you modify the style after NewFrame().", "defaults": {}, "funcname": "PushStyleVar", - "location": "imgui:417", + "location": "imgui:419", "namespace": "ImGui", "ov_cimguiname": "igPushStyleVar_Float", "ret": "void", @@ -29369,7 +29974,7 @@ "comment": "// modify a style ImVec2 variable. always use this if you modify the style after NewFrame().", "defaults": {}, "funcname": "PushStyleVar", - "location": "imgui:418", + "location": "imgui:420", "namespace": "ImGui", "ov_cimguiname": "igPushStyleVar_Vec2", "ret": "void", @@ -29392,7 +29997,7 @@ "comment": "// == tab stop enable. Allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgets", "defaults": {}, "funcname": "PushTabStop", - "location": "imgui:420", + "location": "imgui:422", "namespace": "ImGui", "ov_cimguiname": "igPushTabStop", "ret": "void", @@ -29417,7 +30022,7 @@ "wrap_local_pos_x": "0.0f" }, "funcname": "PushTextWrapPos", - "location": "imgui:430", + "location": "imgui:432", "namespace": "ImGui", "ov_cimguiname": "igPushTextWrapPos", "ret": "void", @@ -29444,7 +30049,7 @@ "comment": "// use with e.g. if (RadioButton(\"one\", my_value==1)) my_value = 1; ", "defaults": {}, "funcname": "RadioButton", - "location": "imgui:520", + "location": "imgui:525", "namespace": "ImGui", "ov_cimguiname": "igRadioButton_Bool", "ret": "bool", @@ -29473,7 +30078,7 @@ "comment": "// shortcut to handle the above pattern when value is an integer", "defaults": {}, "funcname": "RadioButton", - "location": "imgui:521", + "location": "imgui:526", "namespace": "ImGui", "ov_cimguiname": "igRadioButton_IntPtr", "ret": "bool", @@ -29499,7 +30104,7 @@ "cimguiname": "igRemoveContextHook", "defaults": {}, "funcname": "RemoveContextHook", - "location": "imgui_internal:3056", + "location": "imgui_internal:3171", "namespace": "ImGui", "ov_cimguiname": "igRemoveContextHook", "ret": "void", @@ -29521,7 +30126,7 @@ "cimguiname": "igRemoveSettingsHandler", "defaults": {}, "funcname": "RemoveSettingsHandler", - "location": "imgui_internal:3073", + "location": "imgui_internal:3188", "namespace": "ImGui", "ov_cimguiname": "igRemoveSettingsHandler", "ret": "void", @@ -29539,7 +30144,7 @@ "comment": "// ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData().", "defaults": {}, "funcname": "Render", - "location": "imgui:307", + "location": "imgui:309", "namespace": "ImGui", "ov_cimguiname": "igRender", "ret": "void", @@ -29579,7 +30184,7 @@ "scale": "1.0f" }, "funcname": "RenderArrow", - "location": "imgui_internal:3446", + "location": "imgui_internal:3578", "namespace": "ImGui", "ov_cimguiname": "igRenderArrow", "ret": "void", @@ -29613,7 +30218,7 @@ "cimguiname": "igRenderArrowDockMenu", "defaults": {}, "funcname": "RenderArrowDockMenu", - "location": "imgui_internal:3450", + "location": "imgui_internal:3582", "namespace": "ImGui", "ov_cimguiname": "igRenderArrowDockMenu", "ret": "void", @@ -29651,7 +30256,7 @@ "cimguiname": "igRenderArrowPointingAt", "defaults": {}, "funcname": "RenderArrowPointingAt", - "location": "imgui_internal:3449", + "location": "imgui_internal:3581", "namespace": "ImGui", "ov_cimguiname": "igRenderArrowPointingAt", "ret": "void", @@ -29681,7 +30286,7 @@ "cimguiname": "igRenderBullet", "defaults": {}, "funcname": "RenderBullet", - "location": "imgui_internal:3447", + "location": "imgui_internal:3579", "namespace": "ImGui", "ov_cimguiname": "igRenderBullet", "ret": "void", @@ -29715,7 +30320,7 @@ "cimguiname": "igRenderCheckMark", "defaults": {}, "funcname": "RenderCheckMark", - "location": "imgui_internal:3448", + "location": "imgui_internal:3580", "namespace": "ImGui", "ov_cimguiname": "igRenderCheckMark", "ret": "void", @@ -29768,7 +30373,7 @@ "rounding": "0.0f" }, "funcname": "RenderColorRectWithAlphaCheckerboard", - "location": "imgui_internal:3440", + "location": "imgui_internal:3572", "namespace": "ImGui", "ov_cimguiname": "igRenderColorRectWithAlphaCheckerboard", "ret": "void", @@ -29790,7 +30395,7 @@ "cimguiname": "igRenderDragDropTargetRect", "defaults": {}, "funcname": "RenderDragDropTargetRect", - "location": "imgui_internal:3340", + "location": "imgui_internal:3463", "namespace": "ImGui", "ov_cimguiname": "igRenderDragDropTargetRect", "ret": "void", @@ -29831,7 +30436,7 @@ "rounding": "0.0f" }, "funcname": "RenderFrame", - "location": "imgui_internal:3438", + "location": "imgui_internal:3570", "namespace": "ImGui", "ov_cimguiname": "igRenderFrame", "ret": "void", @@ -29863,7 +30468,7 @@ "rounding": "0.0f" }, "funcname": "RenderFrameBorder", - "location": "imgui_internal:3439", + "location": "imgui_internal:3571", "namespace": "ImGui", "ov_cimguiname": "igRenderFrameBorder", "ret": "void", @@ -29905,7 +30510,7 @@ "cimguiname": "igRenderMouseCursor", "defaults": {}, "funcname": "RenderMouseCursor", - "location": "imgui_internal:3443", + "location": "imgui_internal:3575", "namespace": "ImGui", "ov_cimguiname": "igRenderMouseCursor", "ret": "void", @@ -29938,7 +30543,7 @@ "flags": "ImGuiNavHighlightFlags_TypeDefault" }, "funcname": "RenderNavHighlight", - "location": "imgui_internal:3441", + "location": "imgui_internal:3573", "namespace": "ImGui", "ov_cimguiname": "igRenderNavHighlight", "ret": "void", @@ -29968,7 +30573,7 @@ "renderer_render_arg": "NULL" }, "funcname": "RenderPlatformWindowsDefault", - "location": "imgui:997", + "location": "imgui:1004", "namespace": "ImGui", "ov_cimguiname": "igRenderPlatformWindowsDefault", "ret": "void", @@ -30010,7 +30615,7 @@ "cimguiname": "igRenderRectFilledRangeH", "defaults": {}, "funcname": "RenderRectFilledRangeH", - "location": "imgui_internal:3451", + "location": "imgui_internal:3583", "namespace": "ImGui", "ov_cimguiname": "igRenderRectFilledRangeH", "ret": "void", @@ -30048,7 +30653,7 @@ "cimguiname": "igRenderRectFilledWithHole", "defaults": {}, "funcname": "RenderRectFilledWithHole", - "location": "imgui_internal:3452", + "location": "imgui_internal:3584", "namespace": "ImGui", "ov_cimguiname": "igRenderRectFilledWithHole", "ret": "void", @@ -30085,7 +30690,7 @@ "text_end": "NULL" }, "funcname": "RenderText", - "location": "imgui_internal:3433", + "location": "imgui_internal:3565", "namespace": "ImGui", "ov_cimguiname": "igRenderText", "ret": "void", @@ -30134,7 +30739,7 @@ "clip_rect": "NULL" }, "funcname": "RenderTextClipped", - "location": "imgui_internal:3435", + "location": "imgui_internal:3567", "namespace": "ImGui", "ov_cimguiname": "igRenderTextClipped", "ret": "void", @@ -30187,7 +30792,7 @@ "clip_rect": "NULL" }, "funcname": "RenderTextClippedEx", - "location": "imgui_internal:3436", + "location": "imgui_internal:3568", "namespace": "ImGui", "ov_cimguiname": "igRenderTextClippedEx", "ret": "void", @@ -30237,7 +30842,7 @@ "cimguiname": "igRenderTextEllipsis", "defaults": {}, "funcname": "RenderTextEllipsis", - "location": "imgui_internal:3437", + "location": "imgui_internal:3569", "namespace": "ImGui", "ov_cimguiname": "igRenderTextEllipsis", "ret": "void", @@ -30271,7 +30876,7 @@ "cimguiname": "igRenderTextWrapped", "defaults": {}, "funcname": "RenderTextWrapped", - "location": "imgui_internal:3434", + "location": "imgui_internal:3566", "namespace": "ImGui", "ov_cimguiname": "igRenderTextWrapped", "ret": "void", @@ -30296,7 +30901,7 @@ "button": "0" }, "funcname": "ResetMouseDragDelta", - "location": "imgui:960", + "location": "imgui:967", "namespace": "ImGui", "ov_cimguiname": "igResetMouseDragDelta", "ret": "void", @@ -30326,7 +30931,7 @@ "spacing": "-1.0f" }, "funcname": "SameLine", - "location": "imgui:451", + "location": "imgui:465", "namespace": "ImGui", "ov_cimguiname": "igSameLine", "ret": "void", @@ -30349,7 +30954,7 @@ "comment": "// this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext).", "defaults": {}, "funcname": "SaveIniSettingsToDisk", - "location": "imgui:976", + "location": "imgui:983", "namespace": "ImGui", "ov_cimguiname": "igSaveIniSettingsToDisk", "ret": "void", @@ -30374,7 +30979,7 @@ "out_ini_size": "NULL" }, "funcname": "SaveIniSettingsToMemory", - "location": "imgui:977", + "location": "imgui:984", "namespace": "ImGui", "ov_cimguiname": "igSaveIniSettingsToMemory", "ret": "const char*", @@ -30400,7 +31005,7 @@ "cimguiname": "igScaleWindowsInViewport", "defaults": {}, "funcname": "ScaleWindowsInViewport", - "location": "imgui_internal:3061", + "location": "imgui_internal:3176", "namespace": "ImGui", "ov_cimguiname": "igScaleWindowsInViewport", "ret": "void", @@ -30426,7 +31031,7 @@ "cimguiname": "igScrollToBringRectIntoView", "defaults": {}, "funcname": "ScrollToBringRectIntoView", - "location": "imgui_internal:3097", + "location": "imgui_internal:3212", "namespace": "ImGui", "ov_cimguiname": "igScrollToBringRectIntoView", "ret": "void", @@ -30450,7 +31055,7 @@ "flags": "0" }, "funcname": "ScrollToItem", - "location": "imgui_internal:3093", + "location": "imgui_internal:3208", "namespace": "ImGui", "ov_cimguiname": "igScrollToItem", "ret": "void", @@ -30482,7 +31087,7 @@ "flags": "0" }, "funcname": "ScrollToRect", - "location": "imgui_internal:3094", + "location": "imgui_internal:3209", "namespace": "ImGui", "ov_cimguiname": "igScrollToRect", "ret": "void", @@ -30518,7 +31123,7 @@ "flags": "0" }, "funcname": "ScrollToRectEx", - "location": "imgui_internal:3095", + "location": "imgui_internal:3210", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igScrollToRectEx", @@ -30541,7 +31146,7 @@ "cimguiname": "igScrollbar", "defaults": {}, "funcname": "Scrollbar", - "location": "imgui_internal:3468", + "location": "imgui_internal:3600", "namespace": "ImGui", "ov_cimguiname": "igScrollbar", "ret": "void", @@ -30587,7 +31192,7 @@ "cimguiname": "igScrollbarEx", "defaults": {}, "funcname": "ScrollbarEx", - "location": "imgui_internal:3469", + "location": "imgui_internal:3601", "namespace": "ImGui", "ov_cimguiname": "igScrollbarEx", "ret": "bool", @@ -30626,7 +31231,7 @@ "size": "ImVec2(0,0)" }, "funcname": "Selectable", - "location": "imgui:636", + "location": "imgui:642", "namespace": "ImGui", "ov_cimguiname": "igSelectable_Bool", "ret": "bool", @@ -30662,7 +31267,7 @@ "size": "ImVec2(0,0)" }, "funcname": "Selectable", - "location": "imgui:637", + "location": "imgui:643", "namespace": "ImGui", "ov_cimguiname": "igSelectable_BoolPtr", "ret": "bool", @@ -30680,7 +31285,7 @@ "comment": "// separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator.", "defaults": {}, "funcname": "Separator", - "location": "imgui:450", + "location": "imgui:464", "namespace": "ImGui", "ov_cimguiname": "igSeparator", "ret": "void", @@ -30708,7 +31313,7 @@ "thickness": "1.0f" }, "funcname": "SeparatorEx", - "location": "imgui_internal:3460", + "location": "imgui_internal:3592", "namespace": "ImGui", "ov_cimguiname": "igSeparatorEx", "ret": "void", @@ -30731,7 +31336,7 @@ "comment": "// currently: formatted text with an horizontal line", "defaults": {}, "funcname": "SeparatorText", - "location": "imgui:508", + "location": "imgui:513", "namespace": "ImGui", "ov_cimguiname": "igSeparatorText", "ret": "void", @@ -30765,7 +31370,7 @@ "cimguiname": "igSeparatorTextEx", "defaults": {}, "funcname": "SeparatorTextEx", - "location": "imgui_internal:3461", + "location": "imgui_internal:3593", "namespace": "ImGui", "ov_cimguiname": "igSeparatorTextEx", "ret": "void", @@ -30791,7 +31396,7 @@ "cimguiname": "igSetActiveID", "defaults": {}, "funcname": "SetActiveID", - "location": "imgui_internal:3105", + "location": "imgui_internal:3220", "namespace": "ImGui", "ov_cimguiname": "igSetActiveID", "ret": "void", @@ -30808,7 +31413,7 @@ "cimguiname": "igSetActiveIdUsingAllKeyboardKeys", "defaults": {}, "funcname": "SetActiveIdUsingAllKeyboardKeys", - "location": "imgui_internal:3219", + "location": "imgui_internal:3338", "namespace": "ImGui", "ov_cimguiname": "igSetActiveIdUsingAllKeyboardKeys", "ret": "void", @@ -30840,7 +31445,7 @@ "user_data": "NULL" }, "funcname": "SetAllocatorFunctions", - "location": "imgui:987", + "location": "imgui:994", "namespace": "ImGui", "ov_cimguiname": "igSetAllocatorFunctions", "ret": "void", @@ -30862,7 +31467,7 @@ "cimguiname": "igSetClipboardText", "defaults": {}, "funcname": "SetClipboardText", - "location": "imgui:968", + "location": "imgui:975", "namespace": "ImGui", "ov_cimguiname": "igSetClipboardText", "ret": "void", @@ -30885,7 +31490,7 @@ "comment": "// initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls.", "defaults": {}, "funcname": "SetColorEditOptions", - "location": "imgui:611", + "location": "imgui:617", "namespace": "ImGui", "ov_cimguiname": "igSetColorEditOptions", "ret": "void", @@ -30912,7 +31517,7 @@ "comment": "// set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column", "defaults": {}, "funcname": "SetColumnOffset", - "location": "imgui:803", + "location": "imgui:810", "namespace": "ImGui", "ov_cimguiname": "igSetColumnOffset", "ret": "void", @@ -30939,7 +31544,7 @@ "comment": "// set column width (in pixels). pass -1 to use current column", "defaults": {}, "funcname": "SetColumnWidth", - "location": "imgui:801", + "location": "imgui:808", "namespace": "ImGui", "ov_cimguiname": "igSetColumnWidth", "ret": "void", @@ -30961,7 +31566,7 @@ "cimguiname": "igSetCurrentContext", "defaults": {}, "funcname": "SetCurrentContext", - "location": "imgui:300", + "location": "imgui:302", "namespace": "ImGui", "ov_cimguiname": "igSetCurrentContext", "ret": "void", @@ -30983,7 +31588,7 @@ "cimguiname": "igSetCurrentFont", "defaults": {}, "funcname": "SetCurrentFont", - "location": "imgui_internal:3038", + "location": "imgui_internal:3152", "namespace": "ImGui", "ov_cimguiname": "igSetCurrentFont", "ret": "void", @@ -31009,7 +31614,7 @@ "cimguiname": "igSetCurrentViewport", "defaults": {}, "funcname": "SetCurrentViewport", - "location": "imgui_internal:3064", + "location": "imgui_internal:3179", "namespace": "ImGui", "ov_cimguiname": "igSetCurrentViewport", "ret": "void", @@ -31029,10 +31634,10 @@ "argsoriginal": "(const ImVec2& local_pos)", "call_args": "(local_pos)", "cimguiname": "igSetCursorPos", - "comment": "// are using the main, absolute coordinate system.", + "comment": "// [window-local] \"", "defaults": {}, "funcname": "SetCursorPos", - "location": "imgui:462", + "location": "imgui:458", "namespace": "ImGui", "ov_cimguiname": "igSetCursorPos", "ret": "void", @@ -31052,10 +31657,10 @@ "argsoriginal": "(float local_x)", "call_args": "(local_x)", "cimguiname": "igSetCursorPosX", - "comment": "// GetWindowPos() + GetCursorPos() == GetCursorScreenPos() etc.)", + "comment": "// [window-local] \"", "defaults": {}, "funcname": "SetCursorPosX", - "location": "imgui:463", + "location": "imgui:459", "namespace": "ImGui", "ov_cimguiname": "igSetCursorPosX", "ret": "void", @@ -31075,10 +31680,10 @@ "argsoriginal": "(float local_y)", "call_args": "(local_y)", "cimguiname": "igSetCursorPosY", - "comment": "//", + "comment": "// [window-local] \"", "defaults": {}, "funcname": "SetCursorPosY", - "location": "imgui:464", + "location": "imgui:460", "namespace": "ImGui", "ov_cimguiname": "igSetCursorPosY", "ret": "void", @@ -31101,7 +31706,7 @@ "comment": "// cursor position in absolute coordinates", "defaults": {}, "funcname": "SetCursorScreenPos", - "location": "imgui:467", + "location": "imgui:454", "namespace": "ImGui", "ov_cimguiname": "igSetCursorScreenPos", "ret": "void", @@ -31138,7 +31743,7 @@ "cond": "0" }, "funcname": "SetDragDropPayload", - "location": "imgui:851", + "location": "imgui:858", "namespace": "ImGui", "ov_cimguiname": "igSetDragDropPayload", "ret": "bool", @@ -31164,7 +31769,7 @@ "cimguiname": "igSetFocusID", "defaults": {}, "funcname": "SetFocusID", - "location": "imgui_internal:3106", + "location": "imgui_internal:3221", "namespace": "ImGui", "ov_cimguiname": "igSetFocusID", "ret": "void", @@ -31186,7 +31791,7 @@ "cimguiname": "igSetHoveredID", "defaults": {}, "funcname": "SetHoveredID", - "location": "imgui_internal:3109", + "location": "imgui_internal:3224", "namespace": "ImGui", "ov_cimguiname": "igSetHoveredID", "ret": "void", @@ -31204,7 +31809,7 @@ "comment": "// make last item the default focused item of a window.", "defaults": {}, "funcname": "SetItemDefaultFocus", - "location": "imgui:872", + "location": "imgui:879", "namespace": "ImGui", "ov_cimguiname": "igSetItemDefaultFocus", "ret": "void", @@ -31233,7 +31838,7 @@ "flags": "0" }, "funcname": "SetItemKeyOwner", - "location": "imgui_internal:3236", + "location": "imgui_internal:3355", "namespace": "ImGui", "ov_cimguiname": "igSetItemKeyOwner", "ret": "void", @@ -31261,7 +31866,7 @@ "defaults": {}, "funcname": "SetItemTooltip", "isvararg": "...)", - "location": "imgui:691", + "location": "imgui:697", "namespace": "ImGui", "ov_cimguiname": "igSetItemTooltip", "ret": "void", @@ -31287,7 +31892,7 @@ "cimguiname": "igSetItemTooltipV", "defaults": {}, "funcname": "SetItemTooltipV", - "location": "imgui:692", + "location": "imgui:698", "namespace": "ImGui", "ov_cimguiname": "igSetItemTooltipV", "ret": "void", @@ -31319,7 +31924,7 @@ "flags": "0" }, "funcname": "SetKeyOwner", - "location": "imgui_internal:3234", + "location": "imgui_internal:3353", "namespace": "ImGui", "ov_cimguiname": "igSetKeyOwner", "ret": "void", @@ -31351,7 +31956,7 @@ "flags": "0" }, "funcname": "SetKeyOwnersForKeyChord", - "location": "imgui_internal:3235", + "location": "imgui_internal:3354", "namespace": "ImGui", "ov_cimguiname": "igSetKeyOwnersForKeyChord", "ret": "void", @@ -31376,7 +31981,7 @@ "offset": "0" }, "funcname": "SetKeyboardFocusHere", - "location": "imgui:873", + "location": "imgui:880", "namespace": "ImGui", "ov_cimguiname": "igSetKeyboardFocusHere", "ret": "void", @@ -31410,7 +32015,7 @@ "cimguiname": "igSetLastItemData", "defaults": {}, "funcname": "SetLastItemData", - "location": "imgui_internal:3123", + "location": "imgui_internal:3238", "namespace": "ImGui", "ov_cimguiname": "igSetLastItemData", "ret": "void", @@ -31433,7 +32038,7 @@ "comment": "// set desired mouse cursor shape", "defaults": {}, "funcname": "SetMouseCursor", - "location": "imgui:962", + "location": "imgui:969", "namespace": "ImGui", "ov_cimguiname": "igSetMouseCursor", "ret": "void", @@ -31467,7 +32072,7 @@ "cimguiname": "igSetNavID", "defaults": {}, "funcname": "SetNavID", - "location": "imgui_internal:3181", + "location": "imgui_internal:3299", "namespace": "ImGui", "ov_cimguiname": "igSetNavID", "ret": "void", @@ -31489,7 +32094,7 @@ "cimguiname": "igSetNavWindow", "defaults": {}, "funcname": "SetNavWindow", - "location": "imgui_internal:3180", + "location": "imgui_internal:3298", "namespace": "ImGui", "ov_cimguiname": "igSetNavWindow", "ret": "void", @@ -31512,7 +32117,7 @@ "comment": "// Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting \"io.WantCaptureKeyboard = want_capture_keyboard\"; after the next NewFrame() call.", "defaults": {}, "funcname": "SetNextFrameWantCaptureKeyboard", - "location": "imgui:942", + "location": "imgui:949", "namespace": "ImGui", "ov_cimguiname": "igSetNextFrameWantCaptureKeyboard", "ret": "void", @@ -31535,7 +32140,7 @@ "comment": "// Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instucts your app to ignore inputs). This is equivalent to setting \"io.WantCaptureMouse = want_capture_mouse;\" after the next NewFrame() call.", "defaults": {}, "funcname": "SetNextFrameWantCaptureMouse", - "location": "imgui:963", + "location": "imgui:970", "namespace": "ImGui", "ov_cimguiname": "igSetNextFrameWantCaptureMouse", "ret": "void", @@ -31553,7 +32158,7 @@ "comment": "// allow next item to be overlapped by a subsequent item. Useful with invisible buttons, selectable, treenode covering an area where subsequent items may need to be added. Note that both Selectable() and TreeNode() have dedicated flags doing this.", "defaults": {}, "funcname": "SetNextItemAllowOverlap", - "location": "imgui:876", + "location": "imgui:883", "namespace": "ImGui", "ov_cimguiname": "igSetNextItemAllowOverlap", "ret": "void", @@ -31582,7 +32187,7 @@ "cond": "0" }, "funcname": "SetNextItemOpen", - "location": "imgui:631", + "location": "imgui:637", "namespace": "ImGui", "ov_cimguiname": "igSetNextItemOpen", "ret": "void", @@ -31590,6 +32195,28 @@ "stname": "" } ], + "igSetNextItemSelectionUserData": [ + { + "args": "(ImGuiSelectionUserData selection_user_data)", + "argsT": [ + { + "name": "selection_user_data", + "type": "ImGuiSelectionUserData" + } + ], + "argsoriginal": "(ImGuiSelectionUserData selection_user_data)", + "call_args": "(selection_user_data)", + "cimguiname": "igSetNextItemSelectionUserData", + "defaults": {}, + "funcname": "SetNextItemSelectionUserData", + "location": "imgui_internal:3616", + "namespace": "ImGui", + "ov_cimguiname": "igSetNextItemSelectionUserData", + "ret": "void", + "signature": "(ImGuiSelectionUserData)", + "stname": "" + } + ], "igSetNextItemWidth": [ { "args": "(float item_width)", @@ -31605,7 +32232,7 @@ "comment": "// set width of the _next_ common large \"item+label\" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side)", "defaults": {}, "funcname": "SetNextItemWidth", - "location": "imgui:428", + "location": "imgui:430", "namespace": "ImGui", "ov_cimguiname": "igSetNextItemWidth", "ret": "void", @@ -31628,7 +32255,7 @@ "comment": "// set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground.", "defaults": {}, "funcname": "SetNextWindowBgAlpha", - "location": "imgui:377", + "location": "imgui:379", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowBgAlpha", "ret": "void", @@ -31651,7 +32278,7 @@ "comment": "// set next window class (control docking compatibility + provide hints to platform backend via custom viewport flags and platform parent/child relationship)", "defaults": {}, "funcname": "SetNextWindowClass", - "location": "imgui:831", + "location": "imgui:838", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowClass", "ret": "void", @@ -31680,7 +32307,7 @@ "cond": "0" }, "funcname": "SetNextWindowCollapsed", - "location": "imgui:374", + "location": "imgui:376", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowCollapsed", "ret": "void", @@ -31703,7 +32330,7 @@ "comment": "// set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin()", "defaults": {}, "funcname": "SetNextWindowContentSize", - "location": "imgui:373", + "location": "imgui:375", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowContentSize", "ret": "void", @@ -31732,7 +32359,7 @@ "cond": "0" }, "funcname": "SetNextWindowDockID", - "location": "imgui:830", + "location": "imgui:837", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowDockID", "ret": "void", @@ -31750,7 +32377,7 @@ "comment": "// set next window to be focused / top-most. call before Begin()", "defaults": {}, "funcname": "SetNextWindowFocus", - "location": "imgui:375", + "location": "imgui:377", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowFocus", "ret": "void", @@ -31784,7 +32411,7 @@ "pivot": "ImVec2(0,0)" }, "funcname": "SetNextWindowPos", - "location": "imgui:370", + "location": "imgui:372", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowPos", "ret": "void", @@ -31807,7 +32434,7 @@ "comment": "// set next window scrolling value (use < 0.0f to not affect a given axis).", "defaults": {}, "funcname": "SetNextWindowScroll", - "location": "imgui:376", + "location": "imgui:378", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowScroll", "ret": "void", @@ -31836,7 +32463,7 @@ "cond": "0" }, "funcname": "SetNextWindowSize", - "location": "imgui:371", + "location": "imgui:373", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowSize", "ret": "void", @@ -31874,7 +32501,7 @@ "custom_callback_data": "NULL" }, "funcname": "SetNextWindowSizeConstraints", - "location": "imgui:372", + "location": "imgui:374", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowSizeConstraints", "ret": "void", @@ -31897,7 +32524,7 @@ "comment": "// set next window viewport", "defaults": {}, "funcname": "SetNextWindowViewport", - "location": "imgui:378", + "location": "imgui:380", "namespace": "ImGui", "ov_cimguiname": "igSetNextWindowViewport", "ret": "void", @@ -31926,7 +32553,7 @@ "center_x_ratio": "0.5f" }, "funcname": "SetScrollFromPosX", - "location": "imgui:408", + "location": "imgui:410", "namespace": "ImGui", "ov_cimguiname": "igSetScrollFromPosX_Float", "ret": "void", @@ -31954,7 +32581,7 @@ "cimguiname": "igSetScrollFromPosX", "defaults": {}, "funcname": "SetScrollFromPosX", - "location": "imgui_internal:3089", + "location": "imgui_internal:3204", "namespace": "ImGui", "ov_cimguiname": "igSetScrollFromPosX_WindowPtr", "ret": "void", @@ -31983,7 +32610,7 @@ "center_y_ratio": "0.5f" }, "funcname": "SetScrollFromPosY", - "location": "imgui:409", + "location": "imgui:411", "namespace": "ImGui", "ov_cimguiname": "igSetScrollFromPosY_Float", "ret": "void", @@ -32011,7 +32638,7 @@ "cimguiname": "igSetScrollFromPosY", "defaults": {}, "funcname": "SetScrollFromPosY", - "location": "imgui_internal:3090", + "location": "imgui_internal:3205", "namespace": "ImGui", "ov_cimguiname": "igSetScrollFromPosY_WindowPtr", "ret": "void", @@ -32036,7 +32663,7 @@ "center_x_ratio": "0.5f" }, "funcname": "SetScrollHereX", - "location": "imgui:406", + "location": "imgui:408", "namespace": "ImGui", "ov_cimguiname": "igSetScrollHereX", "ret": "void", @@ -32061,7 +32688,7 @@ "center_y_ratio": "0.5f" }, "funcname": "SetScrollHereY", - "location": "imgui:407", + "location": "imgui:409", "namespace": "ImGui", "ov_cimguiname": "igSetScrollHereY", "ret": "void", @@ -32084,7 +32711,7 @@ "comment": "// set scrolling amount [0 .. GetScrollMaxX()]", "defaults": {}, "funcname": "SetScrollX", - "location": "imgui:402", + "location": "imgui:404", "namespace": "ImGui", "ov_cimguiname": "igSetScrollX_Float", "ret": "void", @@ -32108,7 +32735,7 @@ "cimguiname": "igSetScrollX", "defaults": {}, "funcname": "SetScrollX", - "location": "imgui_internal:3087", + "location": "imgui_internal:3202", "namespace": "ImGui", "ov_cimguiname": "igSetScrollX_WindowPtr", "ret": "void", @@ -32131,7 +32758,7 @@ "comment": "// set scrolling amount [0 .. GetScrollMaxY()]", "defaults": {}, "funcname": "SetScrollY", - "location": "imgui:403", + "location": "imgui:405", "namespace": "ImGui", "ov_cimguiname": "igSetScrollY_Float", "ret": "void", @@ -32155,7 +32782,7 @@ "cimguiname": "igSetScrollY", "defaults": {}, "funcname": "SetScrollY", - "location": "imgui_internal:3088", + "location": "imgui_internal:3203", "namespace": "ImGui", "ov_cimguiname": "igSetScrollY_WindowPtr", "ret": "void", @@ -32188,7 +32815,7 @@ "owner_id": "0" }, "funcname": "SetShortcutRouting", - "location": "imgui_internal:3264", + "location": "imgui_internal:3387", "namespace": "ImGui", "ov_cimguiname": "igSetShortcutRouting", "ret": "bool", @@ -32211,7 +32838,7 @@ "comment": "// replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it)", "defaults": {}, "funcname": "SetStateStorage", - "location": "imgui:918", + "location": "imgui:925", "namespace": "ImGui", "ov_cimguiname": "igSetStateStorage", "ret": "void", @@ -32234,7 +32861,7 @@ "comment": "// notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name.", "defaults": {}, "funcname": "SetTabItemClosed", - "location": "imgui:813", + "location": "imgui:820", "namespace": "ImGui", "ov_cimguiname": "igSetTabItemClosed", "ret": "void", @@ -32262,7 +32889,7 @@ "defaults": {}, "funcname": "SetTooltip", "isvararg": "...)", - "location": "imgui:683", + "location": "imgui:689", "namespace": "ImGui", "ov_cimguiname": "igSetTooltip", "ret": "void", @@ -32288,7 +32915,7 @@ "cimguiname": "igSetTooltipV", "defaults": {}, "funcname": "SetTooltipV", - "location": "imgui:684", + "location": "imgui:690", "namespace": "ImGui", "ov_cimguiname": "igSetTooltipV", "ret": "void", @@ -32314,7 +32941,7 @@ "cimguiname": "igSetWindowClipRectBeforeSetChannel", "defaults": {}, "funcname": "SetWindowClipRectBeforeSetChannel", - "location": "imgui_internal:3343", + "location": "imgui_internal:3472", "namespace": "ImGui", "ov_cimguiname": "igSetWindowClipRectBeforeSetChannel", "ret": "void", @@ -32343,7 +32970,7 @@ "cond": "0" }, "funcname": "SetWindowCollapsed", - "location": "imgui:381", + "location": "imgui:383", "namespace": "ImGui", "ov_cimguiname": "igSetWindowCollapsed_Bool", "ret": "void", @@ -32374,7 +33001,7 @@ "cond": "0" }, "funcname": "SetWindowCollapsed", - "location": "imgui:386", + "location": "imgui:388", "namespace": "ImGui", "ov_cimguiname": "igSetWindowCollapsed_Str", "ret": "void", @@ -32404,7 +33031,7 @@ "cond": "0" }, "funcname": "SetWindowCollapsed", - "location": "imgui_internal:3020", + "location": "imgui_internal:3134", "namespace": "ImGui", "ov_cimguiname": "igSetWindowCollapsed_WindowPtr", "ret": "void", @@ -32434,7 +33061,7 @@ "cimguiname": "igSetWindowDock", "defaults": {}, "funcname": "SetWindowDock", - "location": "imgui_internal:3297", + "location": "imgui_internal:3420", "namespace": "ImGui", "ov_cimguiname": "igSetWindowDock", "ret": "void", @@ -32452,7 +33079,7 @@ "comment": "// (not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus().", "defaults": {}, "funcname": "SetWindowFocus", - "location": "imgui:382", + "location": "imgui:384", "namespace": "ImGui", "ov_cimguiname": "igSetWindowFocus_Nil", "ret": "void", @@ -32473,7 +33100,7 @@ "comment": "// set named window to be focused / top-most. use NULL to remove focus.", "defaults": {}, "funcname": "SetWindowFocus", - "location": "imgui:387", + "location": "imgui:389", "namespace": "ImGui", "ov_cimguiname": "igSetWindowFocus_Str", "ret": "void", @@ -32496,7 +33123,7 @@ "comment": "// [OBSOLETE] set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes().", "defaults": {}, "funcname": "SetWindowFontScale", - "location": "imgui:383", + "location": "imgui:385", "namespace": "ImGui", "ov_cimguiname": "igSetWindowFontScale", "ret": "void", @@ -32518,7 +33145,7 @@ "cimguiname": "igSetWindowHiddendAndSkipItemsForCurrentFrame", "defaults": {}, "funcname": "SetWindowHiddendAndSkipItemsForCurrentFrame", - "location": "imgui_internal:3022", + "location": "imgui_internal:3136", "namespace": "ImGui", "ov_cimguiname": "igSetWindowHiddendAndSkipItemsForCurrentFrame", "ret": "void", @@ -32548,7 +33175,7 @@ "cimguiname": "igSetWindowHitTestHole", "defaults": {}, "funcname": "SetWindowHitTestHole", - "location": "imgui_internal:3021", + "location": "imgui_internal:3135", "namespace": "ImGui", "ov_cimguiname": "igSetWindowHitTestHole", "ret": "void", @@ -32577,7 +33204,7 @@ "cond": "0" }, "funcname": "SetWindowPos", - "location": "imgui:379", + "location": "imgui:381", "namespace": "ImGui", "ov_cimguiname": "igSetWindowPos_Vec2", "ret": "void", @@ -32608,7 +33235,7 @@ "cond": "0" }, "funcname": "SetWindowPos", - "location": "imgui:384", + "location": "imgui:386", "namespace": "ImGui", "ov_cimguiname": "igSetWindowPos_Str", "ret": "void", @@ -32638,7 +33265,7 @@ "cond": "0" }, "funcname": "SetWindowPos", - "location": "imgui_internal:3018", + "location": "imgui_internal:3132", "namespace": "ImGui", "ov_cimguiname": "igSetWindowPos_WindowPtr", "ret": "void", @@ -32667,7 +33294,7 @@ "cond": "0" }, "funcname": "SetWindowSize", - "location": "imgui:380", + "location": "imgui:382", "namespace": "ImGui", "ov_cimguiname": "igSetWindowSize_Vec2", "ret": "void", @@ -32698,7 +33325,7 @@ "cond": "0" }, "funcname": "SetWindowSize", - "location": "imgui:385", + "location": "imgui:387", "namespace": "ImGui", "ov_cimguiname": "igSetWindowSize_Str", "ret": "void", @@ -32728,7 +33355,7 @@ "cond": "0" }, "funcname": "SetWindowSize", - "location": "imgui_internal:3019", + "location": "imgui_internal:3133", "namespace": "ImGui", "ov_cimguiname": "igSetWindowSize_WindowPtr", "ret": "void", @@ -32754,7 +33381,7 @@ "cimguiname": "igSetWindowViewport", "defaults": {}, "funcname": "SetWindowViewport", - "location": "imgui_internal:3063", + "location": "imgui_internal:3178", "namespace": "ImGui", "ov_cimguiname": "igSetWindowViewport", "ret": "void", @@ -32800,7 +33427,7 @@ "cimguiname": "igShadeVertsLinearColorGradientKeepAlpha", "defaults": {}, "funcname": "ShadeVertsLinearColorGradientKeepAlpha", - "location": "imgui_internal:3520", + "location": "imgui_internal:3653", "namespace": "ImGui", "ov_cimguiname": "igShadeVertsLinearColorGradientKeepAlpha", "ret": "void", @@ -32850,7 +33477,7 @@ "cimguiname": "igShadeVertsLinearUV", "defaults": {}, "funcname": "ShadeVertsLinearUV", - "location": "imgui_internal:3521", + "location": "imgui_internal:3654", "namespace": "ImGui", "ov_cimguiname": "igShadeVertsLinearUV", "ret": "void", @@ -32858,6 +33485,52 @@ "stname": "" } ], + "igShadeVertsTransformPos": [ + { + "args": "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,const ImVec2 pivot_in,float cos_a,float sin_a,const ImVec2 pivot_out)", + "argsT": [ + { + "name": "draw_list", + "type": "ImDrawList*" + }, + { + "name": "vert_start_idx", + "type": "int" + }, + { + "name": "vert_end_idx", + "type": "int" + }, + { + "name": "pivot_in", + "type": "const ImVec2" + }, + { + "name": "cos_a", + "type": "float" + }, + { + "name": "sin_a", + "type": "float" + }, + { + "name": "pivot_out", + "type": "const ImVec2" + } + ], + "argsoriginal": "(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,const ImVec2& pivot_in,float cos_a,float sin_a,const ImVec2& pivot_out)", + "call_args": "(draw_list,vert_start_idx,vert_end_idx,pivot_in,cos_a,sin_a,pivot_out)", + "cimguiname": "igShadeVertsTransformPos", + "defaults": {}, + "funcname": "ShadeVertsTransformPos", + "location": "imgui_internal:3655", + "namespace": "ImGui", + "ov_cimguiname": "igShadeVertsTransformPos", + "ret": "void", + "signature": "(ImDrawList*,int,int,const ImVec2,float,float,const ImVec2)", + "stname": "" + } + ], "igShortcut": [ { "args": "(ImGuiKeyChord key_chord,ImGuiID owner_id,ImGuiInputFlags flags)", @@ -32883,7 +33556,7 @@ "owner_id": "0" }, "funcname": "Shortcut", - "location": "imgui_internal:3263", + "location": "imgui_internal:3386", "namespace": "ImGui", "ov_cimguiname": "igShortcut", "ret": "bool", @@ -32908,7 +33581,7 @@ "p_open": "NULL" }, "funcname": "ShowAboutWindow", - "location": "imgui:315", + "location": "imgui:317", "namespace": "ImGui", "ov_cimguiname": "igShowAboutWindow", "ret": "void", @@ -32933,7 +33606,7 @@ "p_open": "NULL" }, "funcname": "ShowDebugLogWindow", - "location": "imgui:313", + "location": "imgui:315", "namespace": "ImGui", "ov_cimguiname": "igShowDebugLogWindow", "ret": "void", @@ -32958,7 +33631,7 @@ "p_open": "NULL" }, "funcname": "ShowDemoWindow", - "location": "imgui:311", + "location": "imgui:313", "namespace": "ImGui", "ov_cimguiname": "igShowDemoWindow", "ret": "void", @@ -32980,7 +33653,7 @@ "cimguiname": "igShowFontAtlas", "defaults": {}, "funcname": "ShowFontAtlas", - "location": "imgui_internal:3541", + "location": "imgui_internal:3678", "namespace": "ImGui", "ov_cimguiname": "igShowFontAtlas", "ret": "void", @@ -33003,7 +33676,7 @@ "comment": "// add font selector block (not a window), essentially a combo listing the loaded fonts.", "defaults": {}, "funcname": "ShowFontSelector", - "location": "imgui:318", + "location": "imgui:320", "namespace": "ImGui", "ov_cimguiname": "igShowFontSelector", "ret": "void", @@ -33011,7 +33684,7 @@ "stname": "" } ], - "igShowMetricsWindow": [ + "igShowIDStackToolWindow": [ { "args": "(bool* p_open)", "argsT": [ @@ -33022,21 +33695,21 @@ ], "argsoriginal": "(bool* p_open=((void*)0))", "call_args": "(p_open)", - "cimguiname": "igShowMetricsWindow", - "comment": "// create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc.", + "cimguiname": "igShowIDStackToolWindow", + "comment": "// create Stack Tool window. hover items with mouse to query information about the source of their unique ID.", "defaults": { "p_open": "NULL" }, - "funcname": "ShowMetricsWindow", - "location": "imgui:312", + "funcname": "ShowIDStackToolWindow", + "location": "imgui:316", "namespace": "ImGui", - "ov_cimguiname": "igShowMetricsWindow", + "ov_cimguiname": "igShowIDStackToolWindow", "ret": "void", "signature": "(bool*)", "stname": "" } ], - "igShowStackToolWindow": [ + "igShowMetricsWindow": [ { "args": "(bool* p_open)", "argsT": [ @@ -33047,15 +33720,15 @@ ], "argsoriginal": "(bool* p_open=((void*)0))", "call_args": "(p_open)", - "cimguiname": "igShowStackToolWindow", - "comment": "// create Stack Tool window. hover items with mouse to query information about the source of their unique ID.", + "cimguiname": "igShowMetricsWindow", + "comment": "// create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc.", "defaults": { "p_open": "NULL" }, - "funcname": "ShowStackToolWindow", + "funcname": "ShowMetricsWindow", "location": "imgui:314", "namespace": "ImGui", - "ov_cimguiname": "igShowStackToolWindow", + "ov_cimguiname": "igShowMetricsWindow", "ret": "void", "signature": "(bool*)", "stname": "" @@ -33078,7 +33751,7 @@ "ref": "NULL" }, "funcname": "ShowStyleEditor", - "location": "imgui:316", + "location": "imgui:318", "namespace": "ImGui", "ov_cimguiname": "igShowStyleEditor", "ret": "void", @@ -33101,7 +33774,7 @@ "comment": "// add style selector block (not a window), essentially a combo listing the default styles.", "defaults": {}, "funcname": "ShowStyleSelector", - "location": "imgui:317", + "location": "imgui:319", "namespace": "ImGui", "ov_cimguiname": "igShowStyleSelector", "ret": "bool", @@ -33119,7 +33792,7 @@ "comment": "// add basic help/info block (not a window): how to manipulate ImGui as an end-user (mouse/keyboard controls).", "defaults": {}, "funcname": "ShowUserGuide", - "location": "imgui:319", + "location": "imgui:321", "namespace": "ImGui", "ov_cimguiname": "igShowUserGuide", "ret": "void", @@ -33149,7 +33822,7 @@ "cimguiname": "igShrinkWidths", "defaults": {}, "funcname": "ShrinkWidths", - "location": "imgui_internal:3129", + "location": "imgui_internal:3244", "namespace": "ImGui", "ov_cimguiname": "igShrinkWidths", "ret": "void", @@ -33167,7 +33840,7 @@ "comment": "// Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext().", "defaults": {}, "funcname": "Shutdown", - "location": "imgui_internal:3044", + "location": "imgui_internal:3159", "namespace": "ImGui", "ov_cimguiname": "igShutdown", "ret": "void", @@ -33214,7 +33887,7 @@ "v_degrees_min": "-360.0f" }, "funcname": "SliderAngle", - "location": "imgui:574", + "location": "imgui:580", "namespace": "ImGui", "ov_cimguiname": "igSliderAngle", "ret": "bool", @@ -33268,7 +33941,7 @@ "cimguiname": "igSliderBehavior", "defaults": {}, "funcname": "SliderBehavior", - "location": "imgui_internal:3478", + "location": "imgui_internal:3610", "namespace": "ImGui", "ov_cimguiname": "igSliderBehavior", "ret": "bool", @@ -33314,7 +33987,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat", - "location": "imgui:570", + "location": "imgui:576", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat", "ret": "bool", @@ -33359,7 +34032,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat2", - "location": "imgui:571", + "location": "imgui:577", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat2", "ret": "bool", @@ -33404,7 +34077,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat3", - "location": "imgui:572", + "location": "imgui:578", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat3", "ret": "bool", @@ -33449,7 +34122,7 @@ "format": "\"%.3f\"" }, "funcname": "SliderFloat4", - "location": "imgui:573", + "location": "imgui:579", "namespace": "ImGui", "ov_cimguiname": "igSliderFloat4", "ret": "bool", @@ -33494,7 +34167,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt", - "location": "imgui:575", + "location": "imgui:581", "namespace": "ImGui", "ov_cimguiname": "igSliderInt", "ret": "bool", @@ -33539,7 +34212,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt2", - "location": "imgui:576", + "location": "imgui:582", "namespace": "ImGui", "ov_cimguiname": "igSliderInt2", "ret": "bool", @@ -33584,7 +34257,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt3", - "location": "imgui:577", + "location": "imgui:583", "namespace": "ImGui", "ov_cimguiname": "igSliderInt3", "ret": "bool", @@ -33629,7 +34302,7 @@ "format": "\"%d\"" }, "funcname": "SliderInt4", - "location": "imgui:578", + "location": "imgui:584", "namespace": "ImGui", "ov_cimguiname": "igSliderInt4", "ret": "bool", @@ -33678,7 +34351,7 @@ "format": "NULL" }, "funcname": "SliderScalar", - "location": "imgui:579", + "location": "imgui:585", "namespace": "ImGui", "ov_cimguiname": "igSliderScalar", "ret": "bool", @@ -33731,7 +34404,7 @@ "format": "NULL" }, "funcname": "SliderScalarN", - "location": "imgui:580", + "location": "imgui:586", "namespace": "ImGui", "ov_cimguiname": "igSliderScalarN", "ret": "bool", @@ -33751,10 +34424,10 @@ "argsoriginal": "(const char* label)", "call_args": "(label)", "cimguiname": "igSmallButton", - "comment": "// button with FramePadding=(0,0) to easily embed within text", + "comment": "// button with (FramePadding.y == 0) to easily embed within text", "defaults": {}, "funcname": "SmallButton", - "location": "imgui:514", + "location": "imgui:519", "namespace": "ImGui", "ov_cimguiname": "igSmallButton", "ret": "bool", @@ -33772,7 +34445,7 @@ "comment": "// add vertical spacing.", "defaults": {}, "funcname": "Spacing", - "location": "imgui:453", + "location": "imgui:467", "namespace": "ImGui", "ov_cimguiname": "igSpacing", "ret": "void", @@ -33834,7 +34507,7 @@ "hover_visibility_delay": "0.0f" }, "funcname": "SplitterBehavior", - "location": "imgui_internal:3479", + "location": "imgui_internal:3611", "namespace": "ImGui", "ov_cimguiname": "igSplitterBehavior", "ret": "bool", @@ -33856,7 +34529,7 @@ "cimguiname": "igStartMouseMovingWindow", "defaults": {}, "funcname": "StartMouseMovingWindow", - "location": "imgui_internal:3049", + "location": "imgui_internal:3164", "namespace": "ImGui", "ov_cimguiname": "igStartMouseMovingWindow", "ret": "void", @@ -33866,7 +34539,7 @@ ], "igStartMouseMovingWindowOrNode": [ { - "args": "(ImGuiWindow* window,ImGuiDockNode* node,bool undock_floating_node)", + "args": "(ImGuiWindow* window,ImGuiDockNode* node,bool undock)", "argsT": [ { "name": "window", @@ -33877,16 +34550,16 @@ "type": "ImGuiDockNode*" }, { - "name": "undock_floating_node", + "name": "undock", "type": "bool" } ], - "argsoriginal": "(ImGuiWindow* window,ImGuiDockNode* node,bool undock_floating_node)", - "call_args": "(window,node,undock_floating_node)", + "argsoriginal": "(ImGuiWindow* window,ImGuiDockNode* node,bool undock)", + "call_args": "(window,node,undock)", "cimguiname": "igStartMouseMovingWindowOrNode", "defaults": {}, "funcname": "StartMouseMovingWindowOrNode", - "location": "imgui_internal:3050", + "location": "imgui_internal:3165", "namespace": "ImGui", "ov_cimguiname": "igStartMouseMovingWindowOrNode", "ret": "void", @@ -33911,7 +34584,7 @@ "dst": "NULL" }, "funcname": "StyleColorsClassic", - "location": "imgui:325", + "location": "imgui:327", "namespace": "ImGui", "ov_cimguiname": "igStyleColorsClassic", "ret": "void", @@ -33936,7 +34609,7 @@ "dst": "NULL" }, "funcname": "StyleColorsDark", - "location": "imgui:323", + "location": "imgui:325", "namespace": "ImGui", "ov_cimguiname": "igStyleColorsDark", "ret": "void", @@ -33961,7 +34634,7 @@ "dst": "NULL" }, "funcname": "StyleColorsLight", - "location": "imgui:324", + "location": "imgui:326", "namespace": "ImGui", "ov_cimguiname": "igStyleColorsLight", "ret": "void", @@ -33991,7 +34664,7 @@ "cimguiname": "igTabBarAddTab", "defaults": {}, "funcname": "TabBarAddTab", - "location": "imgui_internal:3417", + "location": "imgui_internal:3549", "namespace": "ImGui", "ov_cimguiname": "igTabBarAddTab", "ret": "void", @@ -34017,7 +34690,7 @@ "cimguiname": "igTabBarCloseTab", "defaults": {}, "funcname": "TabBarCloseTab", - "location": "imgui_internal:3419", + "location": "imgui_internal:3551", "namespace": "ImGui", "ov_cimguiname": "igTabBarCloseTab", "ret": "void", @@ -34039,7 +34712,7 @@ "cimguiname": "igTabBarFindMostRecentlySelectedTabForActiveWindow", "defaults": {}, "funcname": "TabBarFindMostRecentlySelectedTabForActiveWindow", - "location": "imgui_internal:3413", + "location": "imgui_internal:3545", "namespace": "ImGui", "ov_cimguiname": "igTabBarFindMostRecentlySelectedTabForActiveWindow", "ret": "ImGuiTabItem*", @@ -34065,7 +34738,7 @@ "cimguiname": "igTabBarFindTabByID", "defaults": {}, "funcname": "TabBarFindTabByID", - "location": "imgui_internal:3411", + "location": "imgui_internal:3543", "namespace": "ImGui", "ov_cimguiname": "igTabBarFindTabByID", "ret": "ImGuiTabItem*", @@ -34091,7 +34764,7 @@ "cimguiname": "igTabBarFindTabByOrder", "defaults": {}, "funcname": "TabBarFindTabByOrder", - "location": "imgui_internal:3412", + "location": "imgui_internal:3544", "namespace": "ImGui", "ov_cimguiname": "igTabBarFindTabByOrder", "ret": "ImGuiTabItem*", @@ -34113,7 +34786,7 @@ "cimguiname": "igTabBarGetCurrentTab", "defaults": {}, "funcname": "TabBarGetCurrentTab", - "location": "imgui_internal:3414", + "location": "imgui_internal:3546", "namespace": "ImGui", "ov_cimguiname": "igTabBarGetCurrentTab", "ret": "ImGuiTabItem*", @@ -34139,7 +34812,7 @@ "cimguiname": "igTabBarGetTabName", "defaults": {}, "funcname": "TabBarGetTabName", - "location": "imgui_internal:3416", + "location": "imgui_internal:3548", "namespace": "ImGui", "ov_cimguiname": "igTabBarGetTabName", "ret": "const char*", @@ -34165,7 +34838,7 @@ "cimguiname": "igTabBarGetTabOrder", "defaults": {}, "funcname": "TabBarGetTabOrder", - "location": "imgui_internal:3415", + "location": "imgui_internal:3547", "namespace": "ImGui", "ov_cimguiname": "igTabBarGetTabOrder", "ret": "int", @@ -34187,7 +34860,7 @@ "cimguiname": "igTabBarProcessReorder", "defaults": {}, "funcname": "TabBarProcessReorder", - "location": "imgui_internal:3423", + "location": "imgui_internal:3555", "namespace": "ImGui", "ov_cimguiname": "igTabBarProcessReorder", "ret": "bool", @@ -34213,7 +34886,7 @@ "cimguiname": "igTabBarQueueFocus", "defaults": {}, "funcname": "TabBarQueueFocus", - "location": "imgui_internal:3420", + "location": "imgui_internal:3552", "namespace": "ImGui", "ov_cimguiname": "igTabBarQueueFocus", "ret": "void", @@ -34243,7 +34916,7 @@ "cimguiname": "igTabBarQueueReorder", "defaults": {}, "funcname": "TabBarQueueReorder", - "location": "imgui_internal:3421", + "location": "imgui_internal:3553", "namespace": "ImGui", "ov_cimguiname": "igTabBarQueueReorder", "ret": "void", @@ -34273,7 +34946,7 @@ "cimguiname": "igTabBarQueueReorderFromMousePos", "defaults": {}, "funcname": "TabBarQueueReorderFromMousePos", - "location": "imgui_internal:3422", + "location": "imgui_internal:3554", "namespace": "ImGui", "ov_cimguiname": "igTabBarQueueReorderFromMousePos", "ret": "void", @@ -34299,7 +34972,7 @@ "cimguiname": "igTabBarRemoveTab", "defaults": {}, "funcname": "TabBarRemoveTab", - "location": "imgui_internal:3418", + "location": "imgui_internal:3550", "namespace": "ImGui", "ov_cimguiname": "igTabBarRemoveTab", "ret": "void", @@ -34333,7 +35006,7 @@ "cimguiname": "igTabItemBackground", "defaults": {}, "funcname": "TabItemBackground", - "location": "imgui_internal:3427", + "location": "imgui_internal:3559", "namespace": "ImGui", "ov_cimguiname": "igTabItemBackground", "ret": "void", @@ -34362,7 +35035,7 @@ "flags": "0" }, "funcname": "TabItemButton", - "location": "imgui:812", + "location": "imgui:819", "namespace": "ImGui", "ov_cimguiname": "igTabItemButton", "ret": "bool", @@ -34392,7 +35065,7 @@ "cimguiname": "igTabItemCalcSize", "defaults": {}, "funcname": "TabItemCalcSize", - "location": "imgui_internal:3425", + "location": "imgui_internal:3557", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igTabItemCalcSize_Str", @@ -34417,7 +35090,7 @@ "cimguiname": "igTabItemCalcSize", "defaults": {}, "funcname": "TabItemCalcSize", - "location": "imgui_internal:3426", + "location": "imgui_internal:3558", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igTabItemCalcSize_WindowPtr", @@ -34456,7 +35129,7 @@ "cimguiname": "igTabItemEx", "defaults": {}, "funcname": "TabItemEx", - "location": "imgui_internal:3424", + "location": "imgui_internal:3556", "namespace": "ImGui", "ov_cimguiname": "igTabItemEx", "ret": "bool", @@ -34514,7 +35187,7 @@ "cimguiname": "igTabItemLabelAndCloseButton", "defaults": {}, "funcname": "TabItemLabelAndCloseButton", - "location": "imgui_internal:3428", + "location": "imgui_internal:3560", "namespace": "ImGui", "ov_cimguiname": "igTabItemLabelAndCloseButton", "ret": "void", @@ -34522,6 +35195,52 @@ "stname": "" } ], + "igTableAngledHeadersRow": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableAngledHeadersRow", + "comment": "// submit a row with angled headers for every column with the ImGuiTableColumnFlags_AngledHeader flag. MUST BE FIRST ROW.", + "defaults": {}, + "funcname": "TableAngledHeadersRow", + "location": "imgui:785", + "namespace": "ImGui", + "ov_cimguiname": "igTableAngledHeadersRow", + "ret": "void", + "signature": "()", + "stname": "" + } + ], + "igTableAngledHeadersRowEx": [ + { + "args": "(float angle,float label_width)", + "argsT": [ + { + "name": "angle", + "type": "float" + }, + { + "name": "label_width", + "type": "float" + } + ], + "argsoriginal": "(float angle,float label_width=0.0f)", + "call_args": "(angle,label_width)", + "cimguiname": "igTableAngledHeadersRowEx", + "defaults": { + "label_width": "0.0f" + }, + "funcname": "TableAngledHeadersRowEx", + "location": "imgui_internal:3493", + "namespace": "ImGui", + "ov_cimguiname": "igTableAngledHeadersRowEx", + "ret": "void", + "signature": "(float,float)", + "stname": "" + } + ], "igTableBeginApplyRequests": [ { "args": "(ImGuiTable* table)", @@ -34536,7 +35255,7 @@ "cimguiname": "igTableBeginApplyRequests", "defaults": {}, "funcname": "TableBeginApplyRequests", - "location": "imgui_internal:3368", + "location": "imgui_internal:3500", "namespace": "ImGui", "ov_cimguiname": "igTableBeginApplyRequests", "ret": "void", @@ -34562,7 +35281,7 @@ "cimguiname": "igTableBeginCell", "defaults": {}, "funcname": "TableBeginCell", - "location": "imgui_internal:3386", + "location": "imgui_internal:3518", "namespace": "ImGui", "ov_cimguiname": "igTableBeginCell", "ret": "void", @@ -34584,7 +35303,7 @@ "cimguiname": "igTableBeginContextMenuPopup", "defaults": {}, "funcname": "TableBeginContextMenuPopup", - "location": "imgui_internal:3375", + "location": "imgui_internal:3507", "namespace": "ImGui", "ov_cimguiname": "igTableBeginContextMenuPopup", "ret": "bool", @@ -34610,7 +35329,7 @@ "cimguiname": "igTableBeginInitMemory", "defaults": {}, "funcname": "TableBeginInitMemory", - "location": "imgui_internal:3367", + "location": "imgui_internal:3499", "namespace": "ImGui", "ov_cimguiname": "igTableBeginInitMemory", "ret": "void", @@ -34632,7 +35351,7 @@ "cimguiname": "igTableBeginRow", "defaults": {}, "funcname": "TableBeginRow", - "location": "imgui_internal:3384", + "location": "imgui_internal:3516", "namespace": "ImGui", "ov_cimguiname": "igTableBeginRow", "ret": "void", @@ -34654,7 +35373,7 @@ "cimguiname": "igTableDrawBorders", "defaults": {}, "funcname": "TableDrawBorders", - "location": "imgui_internal:3373", + "location": "imgui_internal:3505", "namespace": "ImGui", "ov_cimguiname": "igTableDrawBorders", "ret": "void", @@ -34676,7 +35395,7 @@ "cimguiname": "igTableDrawContextMenu", "defaults": {}, "funcname": "TableDrawContextMenu", - "location": "imgui_internal:3374", + "location": "imgui_internal:3506", "namespace": "ImGui", "ov_cimguiname": "igTableDrawContextMenu", "ret": "void", @@ -34698,7 +35417,7 @@ "cimguiname": "igTableEndCell", "defaults": {}, "funcname": "TableEndCell", - "location": "imgui_internal:3387", + "location": "imgui_internal:3519", "namespace": "ImGui", "ov_cimguiname": "igTableEndCell", "ret": "void", @@ -34720,7 +35439,7 @@ "cimguiname": "igTableEndRow", "defaults": {}, "funcname": "TableEndRow", - "location": "imgui_internal:3385", + "location": "imgui_internal:3517", "namespace": "ImGui", "ov_cimguiname": "igTableEndRow", "ret": "void", @@ -34742,7 +35461,7 @@ "cimguiname": "igTableFindByID", "defaults": {}, "funcname": "TableFindByID", - "location": "imgui_internal:3365", + "location": "imgui_internal:3497", "namespace": "ImGui", "ov_cimguiname": "igTableFindByID", "ret": "ImGuiTable*", @@ -34768,7 +35487,7 @@ "cimguiname": "igTableFixColumnSortDirection", "defaults": {}, "funcname": "TableFixColumnSortDirection", - "location": "imgui_internal:3382", + "location": "imgui_internal:3514", "namespace": "ImGui", "ov_cimguiname": "igTableFixColumnSortDirection", "ret": "void", @@ -34785,7 +35504,7 @@ "cimguiname": "igTableGcCompactSettings", "defaults": {}, "funcname": "TableGcCompactSettings", - "location": "imgui_internal:3397", + "location": "imgui_internal:3529", "namespace": "ImGui", "ov_cimguiname": "igTableGcCompactSettings", "ret": "void", @@ -34807,7 +35526,7 @@ "cimguiname": "igTableGcCompactTransientBuffers", "defaults": {}, "funcname": "TableGcCompactTransientBuffers", - "location": "imgui_internal:3395", + "location": "imgui_internal:3527", "namespace": "ImGui", "ov_cimguiname": "igTableGcCompactTransientBuffers_TablePtr", "ret": "void", @@ -34827,7 +35546,7 @@ "cimguiname": "igTableGcCompactTransientBuffers", "defaults": {}, "funcname": "TableGcCompactTransientBuffers", - "location": "imgui_internal:3396", + "location": "imgui_internal:3528", "namespace": "ImGui", "ov_cimguiname": "igTableGcCompactTransientBuffers_TableTempDataPtr", "ret": "void", @@ -34849,7 +35568,7 @@ "cimguiname": "igTableGetBoundSettings", "defaults": {}, "funcname": "TableGetBoundSettings", - "location": "imgui_internal:3403", + "location": "imgui_internal:3535", "namespace": "ImGui", "ov_cimguiname": "igTableGetBoundSettings", "ret": "ImGuiTableSettings*", @@ -34879,7 +35598,7 @@ "cimguiname": "igTableGetCellBgRect", "defaults": {}, "funcname": "TableGetCellBgRect", - "location": "imgui_internal:3388", + "location": "imgui_internal:3520", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igTableGetCellBgRect", @@ -34898,7 +35617,7 @@ "comment": "// return number of columns (value passed to BeginTable)", "defaults": {}, "funcname": "TableGetColumnCount", - "location": "imgui:787", + "location": "imgui:794", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnCount", "ret": "int", @@ -34923,7 +35642,7 @@ "column_n": "-1" }, "funcname": "TableGetColumnFlags", - "location": "imgui:791", + "location": "imgui:798", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnFlags", "ret": "ImGuiTableColumnFlags", @@ -34941,7 +35660,7 @@ "comment": "// return current column index.", "defaults": {}, "funcname": "TableGetColumnIndex", - "location": "imgui:788", + "location": "imgui:795", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnIndex", "ret": "int", @@ -34966,7 +35685,7 @@ "column_n": "-1" }, "funcname": "TableGetColumnName", - "location": "imgui:790", + "location": "imgui:797", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnName_Int", "ret": "const char*", @@ -34990,7 +35709,7 @@ "cimguiname": "igTableGetColumnName", "defaults": {}, "funcname": "TableGetColumnName", - "location": "imgui_internal:3389", + "location": "imgui_internal:3521", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnName_TablePtr", "ret": "const char*", @@ -35012,7 +35731,7 @@ "cimguiname": "igTableGetColumnNextSortDirection", "defaults": {}, "funcname": "TableGetColumnNextSortDirection", - "location": "imgui_internal:3381", + "location": "imgui_internal:3513", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnNextSortDirection", "ret": "ImGuiSortDirection", @@ -35044,7 +35763,7 @@ "instance_no": "0" }, "funcname": "TableGetColumnResizeID", - "location": "imgui_internal:3390", + "location": "imgui_internal:3522", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnResizeID", "ret": "ImGuiID", @@ -35070,7 +35789,7 @@ "cimguiname": "igTableGetColumnWidthAuto", "defaults": {}, "funcname": "TableGetColumnWidthAuto", - "location": "imgui_internal:3383", + "location": "imgui_internal:3515", "namespace": "ImGui", "ov_cimguiname": "igTableGetColumnWidthAuto", "ret": "float", @@ -35078,6 +35797,23 @@ "stname": "" } ], + "igTableGetHeaderAngledMaxLabelWidth": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetHeaderAngledMaxLabelWidth", + "defaults": {}, + "funcname": "TableGetHeaderAngledMaxLabelWidth", + "location": "imgui_internal:3490", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetHeaderAngledMaxLabelWidth", + "ret": "float", + "signature": "()", + "stname": "" + } + ], "igTableGetHeaderRowHeight": [ { "args": "()", @@ -35087,7 +35823,7 @@ "cimguiname": "igTableGetHeaderRowHeight", "defaults": {}, "funcname": "TableGetHeaderRowHeight", - "location": "imgui_internal:3359", + "location": "imgui_internal:3489", "namespace": "ImGui", "ov_cimguiname": "igTableGetHeaderRowHeight", "ret": "float", @@ -35105,7 +35841,7 @@ "comment": "// May use (TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) instead. Return hovered column. return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered.", "defaults": {}, "funcname": "TableGetHoveredColumn", - "location": "imgui_internal:3358", + "location": "imgui_internal:3487", "namespace": "ImGui", "ov_cimguiname": "igTableGetHoveredColumn", "ret": "int", @@ -35113,6 +35849,24 @@ "stname": "" } ], + "igTableGetHoveredRow": [ + { + "args": "()", + "argsT": [], + "argsoriginal": "()", + "call_args": "()", + "cimguiname": "igTableGetHoveredRow", + "comment": "// Retrieve *PREVIOUS FRAME* hovered row. This difference with TableGetHoveredColumn() is the reason why this is not public yet.", + "defaults": {}, + "funcname": "TableGetHoveredRow", + "location": "imgui_internal:3488", + "namespace": "ImGui", + "ov_cimguiname": "igTableGetHoveredRow", + "ret": "int", + "signature": "()", + "stname": "" + } + ], "igTableGetInstanceData": [ { "args": "(ImGuiTable* table,int instance_no)", @@ -35131,7 +35885,7 @@ "cimguiname": "igTableGetInstanceData", "defaults": {}, "funcname": "TableGetInstanceData", - "location": "imgui_internal:3377", + "location": "imgui_internal:3509", "namespace": "ImGui", "ov_cimguiname": "igTableGetInstanceData", "ret": "ImGuiTableInstanceData*", @@ -35157,7 +35911,7 @@ "cimguiname": "igTableGetInstanceID", "defaults": {}, "funcname": "TableGetInstanceID", - "location": "imgui_internal:3378", + "location": "imgui_internal:3510", "namespace": "ImGui", "ov_cimguiname": "igTableGetInstanceID", "ret": "ImGuiID", @@ -35183,7 +35937,7 @@ "cimguiname": "igTableGetMaxColumnWidth", "defaults": {}, "funcname": "TableGetMaxColumnWidth", - "location": "imgui_internal:3391", + "location": "imgui_internal:3523", "namespace": "ImGui", "ov_cimguiname": "igTableGetMaxColumnWidth", "ret": "float", @@ -35201,7 +35955,7 @@ "comment": "// return current row index.", "defaults": {}, "funcname": "TableGetRowIndex", - "location": "imgui:789", + "location": "imgui:796", "namespace": "ImGui", "ov_cimguiname": "igTableGetRowIndex", "ret": "int", @@ -35219,7 +35973,7 @@ "comment": "// get latest sort specs for the table (NULL if not sorting). Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable().", "defaults": {}, "funcname": "TableGetSortSpecs", - "location": "imgui:786", + "location": "imgui:793", "namespace": "ImGui", "ov_cimguiname": "igTableGetSortSpecs", "ret": "ImGuiTableSortSpecs*", @@ -35242,7 +35996,7 @@ "comment": "// submit one header cell manually (rarely used)", "defaults": {}, "funcname": "TableHeader", - "location": "imgui:778", + "location": "imgui:783", "namespace": "ImGui", "ov_cimguiname": "igTableHeader", "ret": "void", @@ -35257,10 +36011,10 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "igTableHeadersRow", - "comment": "// submit all headers cells based on data provided to TableSetupColumn() + submit context menu", + "comment": "// submit a row with headers cells based on data provided to TableSetupColumn() + submit context menu", "defaults": {}, "funcname": "TableHeadersRow", - "location": "imgui:777", + "location": "imgui:784", "namespace": "ImGui", "ov_cimguiname": "igTableHeadersRow", "ret": "void", @@ -35282,7 +36036,7 @@ "cimguiname": "igTableLoadSettings", "defaults": {}, "funcname": "TableLoadSettings", - "location": "imgui_internal:3400", + "location": "imgui_internal:3532", "namespace": "ImGui", "ov_cimguiname": "igTableLoadSettings", "ret": "void", @@ -35304,7 +36058,7 @@ "cimguiname": "igTableMergeDrawChannels", "defaults": {}, "funcname": "TableMergeDrawChannels", - "location": "imgui_internal:3376", + "location": "imgui_internal:3508", "namespace": "ImGui", "ov_cimguiname": "igTableMergeDrawChannels", "ret": "void", @@ -35322,7 +36076,7 @@ "comment": "// append into the next column (or first column of next row if currently in last column). Return true when column is visible.", "defaults": {}, "funcname": "TableNextColumn", - "location": "imgui:764", + "location": "imgui:770", "namespace": "ImGui", "ov_cimguiname": "igTableNextColumn", "ret": "bool", @@ -35352,7 +36106,7 @@ "row_flags": "0" }, "funcname": "TableNextRow", - "location": "imgui:763", + "location": "imgui:769", "namespace": "ImGui", "ov_cimguiname": "igTableNextRow", "ret": "void", @@ -35376,7 +36130,7 @@ "column_n": "-1" }, "funcname": "TableOpenContextMenu", - "location": "imgui_internal:3355", + "location": "imgui_internal:3484", "namespace": "ImGui", "ov_cimguiname": "igTableOpenContextMenu", "ret": "void", @@ -35393,7 +36147,7 @@ "cimguiname": "igTablePopBackgroundChannel", "defaults": {}, "funcname": "TablePopBackgroundChannel", - "location": "imgui_internal:3361", + "location": "imgui_internal:3492", "namespace": "ImGui", "ov_cimguiname": "igTablePopBackgroundChannel", "ret": "void", @@ -35410,7 +36164,7 @@ "cimguiname": "igTablePushBackgroundChannel", "defaults": {}, "funcname": "TablePushBackgroundChannel", - "location": "imgui_internal:3360", + "location": "imgui_internal:3491", "namespace": "ImGui", "ov_cimguiname": "igTablePushBackgroundChannel", "ret": "void", @@ -35432,7 +36186,7 @@ "cimguiname": "igTableRemove", "defaults": {}, "funcname": "TableRemove", - "location": "imgui_internal:3394", + "location": "imgui_internal:3526", "namespace": "ImGui", "ov_cimguiname": "igTableRemove", "ret": "void", @@ -35454,7 +36208,7 @@ "cimguiname": "igTableResetSettings", "defaults": {}, "funcname": "TableResetSettings", - "location": "imgui_internal:3402", + "location": "imgui_internal:3534", "namespace": "ImGui", "ov_cimguiname": "igTableResetSettings", "ret": "void", @@ -35476,7 +36230,7 @@ "cimguiname": "igTableSaveSettings", "defaults": {}, "funcname": "TableSaveSettings", - "location": "imgui_internal:3401", + "location": "imgui_internal:3533", "namespace": "ImGui", "ov_cimguiname": "igTableSaveSettings", "ret": "void", @@ -35509,7 +36263,7 @@ "column_n": "-1" }, "funcname": "TableSetBgColor", - "location": "imgui:793", + "location": "imgui:800", "namespace": "ImGui", "ov_cimguiname": "igTableSetBgColor", "ret": "void", @@ -35536,7 +36290,7 @@ "comment": "// change user accessible enabled/disabled state of a column. Set to false to hide the column. User can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody)", "defaults": {}, "funcname": "TableSetColumnEnabled", - "location": "imgui:792", + "location": "imgui:799", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnEnabled", "ret": "void", @@ -35559,7 +36313,7 @@ "comment": "// append into the specified column. Return true when column is visible.", "defaults": {}, "funcname": "TableSetColumnIndex", - "location": "imgui:765", + "location": "imgui:771", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnIndex", "ret": "bool", @@ -35589,7 +36343,7 @@ "cimguiname": "igTableSetColumnSortDirection", "defaults": {}, "funcname": "TableSetColumnSortDirection", - "location": "imgui_internal:3357", + "location": "imgui_internal:3486", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnSortDirection", "ret": "void", @@ -35615,7 +36369,7 @@ "cimguiname": "igTableSetColumnWidth", "defaults": {}, "funcname": "TableSetColumnWidth", - "location": "imgui_internal:3356", + "location": "imgui_internal:3485", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnWidth", "ret": "void", @@ -35637,7 +36391,7 @@ "cimguiname": "igTableSetColumnWidthAutoAll", "defaults": {}, "funcname": "TableSetColumnWidthAutoAll", - "location": "imgui_internal:3393", + "location": "imgui_internal:3525", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnWidthAutoAll", "ret": "void", @@ -35663,7 +36417,7 @@ "cimguiname": "igTableSetColumnWidthAutoSingle", "defaults": {}, "funcname": "TableSetColumnWidthAutoSingle", - "location": "imgui_internal:3392", + "location": "imgui_internal:3524", "namespace": "ImGui", "ov_cimguiname": "igTableSetColumnWidthAutoSingle", "ret": "void", @@ -35680,7 +36434,7 @@ "cimguiname": "igTableSettingsAddSettingsHandler", "defaults": {}, "funcname": "TableSettingsAddSettingsHandler", - "location": "imgui_internal:3404", + "location": "imgui_internal:3536", "namespace": "ImGui", "ov_cimguiname": "igTableSettingsAddSettingsHandler", "ret": "void", @@ -35706,7 +36460,7 @@ "cimguiname": "igTableSettingsCreate", "defaults": {}, "funcname": "TableSettingsCreate", - "location": "imgui_internal:3405", + "location": "imgui_internal:3537", "namespace": "ImGui", "ov_cimguiname": "igTableSettingsCreate", "ret": "ImGuiTableSettings*", @@ -35728,7 +36482,7 @@ "cimguiname": "igTableSettingsFindByID", "defaults": {}, "funcname": "TableSettingsFindByID", - "location": "imgui_internal:3406", + "location": "imgui_internal:3538", "namespace": "ImGui", "ov_cimguiname": "igTableSettingsFindByID", "ret": "ImGuiTableSettings*", @@ -35766,7 +36520,7 @@ "user_id": "0" }, "funcname": "TableSetupColumn", - "location": "imgui:775", + "location": "imgui:781", "namespace": "ImGui", "ov_cimguiname": "igTableSetupColumn", "ret": "void", @@ -35788,7 +36542,7 @@ "cimguiname": "igTableSetupDrawChannels", "defaults": {}, "funcname": "TableSetupDrawChannels", - "location": "imgui_internal:3369", + "location": "imgui_internal:3501", "namespace": "ImGui", "ov_cimguiname": "igTableSetupDrawChannels", "ret": "void", @@ -35815,7 +36569,7 @@ "comment": "// lock columns/rows so they stay visible when scrolled.", "defaults": {}, "funcname": "TableSetupScrollFreeze", - "location": "imgui:776", + "location": "imgui:782", "namespace": "ImGui", "ov_cimguiname": "igTableSetupScrollFreeze", "ret": "void", @@ -35837,7 +36591,7 @@ "cimguiname": "igTableSortSpecsBuild", "defaults": {}, "funcname": "TableSortSpecsBuild", - "location": "imgui_internal:3380", + "location": "imgui_internal:3512", "namespace": "ImGui", "ov_cimguiname": "igTableSortSpecsBuild", "ret": "void", @@ -35859,7 +36613,7 @@ "cimguiname": "igTableSortSpecsSanitize", "defaults": {}, "funcname": "TableSortSpecsSanitize", - "location": "imgui_internal:3379", + "location": "imgui_internal:3511", "namespace": "ImGui", "ov_cimguiname": "igTableSortSpecsSanitize", "ret": "void", @@ -35881,7 +36635,7 @@ "cimguiname": "igTableUpdateBorders", "defaults": {}, "funcname": "TableUpdateBorders", - "location": "imgui_internal:3371", + "location": "imgui_internal:3503", "namespace": "ImGui", "ov_cimguiname": "igTableUpdateBorders", "ret": "void", @@ -35903,7 +36657,7 @@ "cimguiname": "igTableUpdateColumnsWeightFromWidth", "defaults": {}, "funcname": "TableUpdateColumnsWeightFromWidth", - "location": "imgui_internal:3372", + "location": "imgui_internal:3504", "namespace": "ImGui", "ov_cimguiname": "igTableUpdateColumnsWeightFromWidth", "ret": "void", @@ -35925,7 +36679,7 @@ "cimguiname": "igTableUpdateLayout", "defaults": {}, "funcname": "TableUpdateLayout", - "location": "imgui_internal:3370", + "location": "imgui_internal:3502", "namespace": "ImGui", "ov_cimguiname": "igTableUpdateLayout", "ret": "void", @@ -35933,6 +36687,28 @@ "stname": "" } ], + "igTeleportMousePos": [ + { + "args": "(const ImVec2 pos)", + "argsT": [ + { + "name": "pos", + "type": "const ImVec2" + } + ], + "argsoriginal": "(const ImVec2& pos)", + "call_args": "(pos)", + "cimguiname": "igTeleportMousePos", + "defaults": {}, + "funcname": "TeleportMousePos", + "location": "imgui_internal:3337", + "namespace": "ImGui", + "ov_cimguiname": "igTeleportMousePos", + "ret": "void", + "signature": "(const ImVec2)", + "stname": "" + } + ], "igTempInputIsActive": [ { "args": "(ImGuiID id)", @@ -35947,7 +36723,7 @@ "cimguiname": "igTempInputIsActive", "defaults": {}, "funcname": "TempInputIsActive", - "location": "imgui_internal:3508", + "location": "imgui_internal:3641", "namespace": "ImGui", "ov_cimguiname": "igTempInputIsActive", "ret": "bool", @@ -36000,7 +36776,7 @@ "p_clamp_min": "NULL" }, "funcname": "TempInputScalar", - "location": "imgui_internal:3507", + "location": "imgui_internal:3640", "namespace": "ImGui", "ov_cimguiname": "igTempInputScalar", "ret": "bool", @@ -36042,7 +36818,7 @@ "cimguiname": "igTempInputText", "defaults": {}, "funcname": "TempInputText", - "location": "imgui_internal:3506", + "location": "imgui_internal:3639", "namespace": "ImGui", "ov_cimguiname": "igTempInputText", "ret": "bool", @@ -36069,7 +36845,7 @@ "comment": "// Test that key is either not owned, either owned by 'owner_id'", "defaults": {}, "funcname": "TestKeyOwner", - "location": "imgui_internal:3237", + "location": "imgui_internal:3356", "namespace": "ImGui", "ov_cimguiname": "igTestKeyOwner", "ret": "bool", @@ -36095,7 +36871,7 @@ "cimguiname": "igTestShortcutRouting", "defaults": {}, "funcname": "TestShortcutRouting", - "location": "imgui_internal:3265", + "location": "imgui_internal:3388", "namespace": "ImGui", "ov_cimguiname": "igTestShortcutRouting", "ret": "bool", @@ -36123,7 +36899,7 @@ "defaults": {}, "funcname": "Text", "isvararg": "...)", - "location": "imgui:496", + "location": "imgui:501", "namespace": "ImGui", "ov_cimguiname": "igText", "ret": "void", @@ -36155,7 +36931,7 @@ "defaults": {}, "funcname": "TextColored", "isvararg": "...)", - "location": "imgui:498", + "location": "imgui:503", "namespace": "ImGui", "ov_cimguiname": "igTextColored", "ret": "void", @@ -36185,7 +36961,7 @@ "cimguiname": "igTextColoredV", "defaults": {}, "funcname": "TextColoredV", - "location": "imgui:499", + "location": "imgui:504", "namespace": "ImGui", "ov_cimguiname": "igTextColoredV", "ret": "void", @@ -36213,7 +36989,7 @@ "defaults": {}, "funcname": "TextDisabled", "isvararg": "...)", - "location": "imgui:500", + "location": "imgui:505", "namespace": "ImGui", "ov_cimguiname": "igTextDisabled", "ret": "void", @@ -36239,7 +37015,7 @@ "cimguiname": "igTextDisabledV", "defaults": {}, "funcname": "TextDisabledV", - "location": "imgui:501", + "location": "imgui:506", "namespace": "ImGui", "ov_cimguiname": "igTextDisabledV", "ret": "void", @@ -36272,7 +37048,7 @@ "text_end": "NULL" }, "funcname": "TextEx", - "location": "imgui_internal:3456", + "location": "imgui_internal:3588", "namespace": "ImGui", "ov_cimguiname": "igTextEx", "ret": "void", @@ -36301,7 +37077,7 @@ "text_end": "NULL" }, "funcname": "TextUnformatted", - "location": "imgui:495", + "location": "imgui:500", "namespace": "ImGui", "ov_cimguiname": "igTextUnformatted", "ret": "void", @@ -36327,7 +37103,7 @@ "cimguiname": "igTextV", "defaults": {}, "funcname": "TextV", - "location": "imgui:497", + "location": "imgui:502", "namespace": "ImGui", "ov_cimguiname": "igTextV", "ret": "void", @@ -36355,7 +37131,7 @@ "defaults": {}, "funcname": "TextWrapped", "isvararg": "...)", - "location": "imgui:502", + "location": "imgui:507", "namespace": "ImGui", "ov_cimguiname": "igTextWrapped", "ret": "void", @@ -36381,7 +37157,7 @@ "cimguiname": "igTextWrappedV", "defaults": {}, "funcname": "TextWrappedV", - "location": "imgui:503", + "location": "imgui:508", "namespace": "ImGui", "ov_cimguiname": "igTextWrappedV", "ret": "void", @@ -36411,7 +37187,7 @@ "cimguiname": "igTranslateWindowsInViewport", "defaults": {}, "funcname": "TranslateWindowsInViewport", - "location": "imgui_internal:3060", + "location": "imgui_internal:3175", "namespace": "ImGui", "ov_cimguiname": "igTranslateWindowsInViewport", "ret": "void", @@ -36433,7 +37209,7 @@ "cimguiname": "igTreeNode", "defaults": {}, "funcname": "TreeNode", - "location": "imgui:615", + "location": "imgui:621", "namespace": "ImGui", "ov_cimguiname": "igTreeNode_Str", "ret": "bool", @@ -36463,7 +37239,7 @@ "defaults": {}, "funcname": "TreeNode", "isvararg": "...)", - "location": "imgui:616", + "location": "imgui:622", "namespace": "ImGui", "ov_cimguiname": "igTreeNode_StrStr", "ret": "bool", @@ -36493,7 +37269,7 @@ "defaults": {}, "funcname": "TreeNode", "isvararg": "...)", - "location": "imgui:617", + "location": "imgui:623", "namespace": "ImGui", "ov_cimguiname": "igTreeNode_Ptr", "ret": "bool", @@ -36529,7 +37305,7 @@ "label_end": "NULL" }, "funcname": "TreeNodeBehavior", - "location": "imgui_internal:3480", + "location": "imgui_internal:3612", "namespace": "ImGui", "ov_cimguiname": "igTreeNodeBehavior", "ret": "bool", @@ -36557,7 +37333,7 @@ "flags": "0" }, "funcname": "TreeNodeEx", - "location": "imgui:620", + "location": "imgui:626", "namespace": "ImGui", "ov_cimguiname": "igTreeNodeEx_Str", "ret": "bool", @@ -36590,7 +37366,7 @@ "defaults": {}, "funcname": "TreeNodeEx", "isvararg": "...)", - "location": "imgui:621", + "location": "imgui:627", "namespace": "ImGui", "ov_cimguiname": "igTreeNodeEx_StrStr", "ret": "bool", @@ -36623,7 +37399,7 @@ "defaults": {}, "funcname": "TreeNodeEx", "isvararg": "...)", - "location": "imgui:622", + "location": "imgui:628", "namespace": "ImGui", "ov_cimguiname": "igTreeNodeEx_Ptr", "ret": "bool", @@ -36657,7 +37433,7 @@ "cimguiname": "igTreeNodeExV", "defaults": {}, "funcname": "TreeNodeExV", - "location": "imgui:623", + "location": "imgui:629", "namespace": "ImGui", "ov_cimguiname": "igTreeNodeExV_Str", "ret": "bool", @@ -36689,7 +37465,7 @@ "cimguiname": "igTreeNodeExV", "defaults": {}, "funcname": "TreeNodeExV", - "location": "imgui:624", + "location": "imgui:630", "namespace": "ImGui", "ov_cimguiname": "igTreeNodeExV_Ptr", "ret": "bool", @@ -36715,7 +37491,7 @@ "cimguiname": "igTreeNodeSetOpen", "defaults": {}, "funcname": "TreeNodeSetOpen", - "location": "imgui_internal:3482", + "location": "imgui_internal:3614", "namespace": "ImGui", "ov_cimguiname": "igTreeNodeSetOpen", "ret": "void", @@ -36742,7 +37518,7 @@ "comment": "// Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging.", "defaults": {}, "funcname": "TreeNodeUpdateNextOpen", - "location": "imgui_internal:3483", + "location": "imgui_internal:3615", "namespace": "ImGui", "ov_cimguiname": "igTreeNodeUpdateNextOpen", "ret": "bool", @@ -36772,7 +37548,7 @@ "cimguiname": "igTreeNodeV", "defaults": {}, "funcname": "TreeNodeV", - "location": "imgui:618", + "location": "imgui:624", "namespace": "ImGui", "ov_cimguiname": "igTreeNodeV_Str", "ret": "bool", @@ -36800,7 +37576,7 @@ "cimguiname": "igTreeNodeV", "defaults": {}, "funcname": "TreeNodeV", - "location": "imgui:619", + "location": "imgui:625", "namespace": "ImGui", "ov_cimguiname": "igTreeNodeV_Ptr", "ret": "bool", @@ -36818,7 +37594,7 @@ "comment": "// ~ Unindent()+PopId()", "defaults": {}, "funcname": "TreePop", - "location": "imgui:627", + "location": "imgui:633", "namespace": "ImGui", "ov_cimguiname": "igTreePop", "ret": "void", @@ -36841,7 +37617,7 @@ "comment": "// ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired.", "defaults": {}, "funcname": "TreePush", - "location": "imgui:625", + "location": "imgui:631", "namespace": "ImGui", "ov_cimguiname": "igTreePush_Str", "ret": "void", @@ -36862,7 +37638,7 @@ "comment": "// \"", "defaults": {}, "funcname": "TreePush", - "location": "imgui:626", + "location": "imgui:632", "namespace": "ImGui", "ov_cimguiname": "igTreePush_Ptr", "ret": "void", @@ -36884,7 +37660,7 @@ "cimguiname": "igTreePushOverrideID", "defaults": {}, "funcname": "TreePushOverrideID", - "location": "imgui_internal:3481", + "location": "imgui_internal:3613", "namespace": "ImGui", "ov_cimguiname": "igTreePushOverrideID", "ret": "void", @@ -36892,6 +37668,122 @@ "stname": "" } ], + "igTypingSelectFindBestLeadingMatch": [ + { + "args": "(ImGuiTypingSelectRequest* req,int items_count,const char*(*get_item_name_func)(void*,int),void* user_data)", + "argsT": [ + { + "name": "req", + "type": "ImGuiTypingSelectRequest*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "get_item_name_func", + "ret": "const char*", + "signature": "(void*,int)", + "type": "const char*(*)(void*,int)" + }, + { + "name": "user_data", + "type": "void*" + } + ], + "argsoriginal": "(ImGuiTypingSelectRequest* req,int items_count,const char*(*get_item_name_func)(void*,int),void* user_data)", + "call_args": "(req,items_count,get_item_name_func,user_data)", + "cimguiname": "igTypingSelectFindBestLeadingMatch", + "defaults": {}, + "funcname": "TypingSelectFindBestLeadingMatch", + "location": "imgui_internal:3469", + "namespace": "ImGui", + "ov_cimguiname": "igTypingSelectFindBestLeadingMatch", + "ret": "int", + "signature": "(ImGuiTypingSelectRequest*,int,const char*(*)(void*,int),void*)", + "stname": "" + } + ], + "igTypingSelectFindMatch": [ + { + "args": "(ImGuiTypingSelectRequest* req,int items_count,const char*(*get_item_name_func)(void*,int),void* user_data,int nav_item_idx)", + "argsT": [ + { + "name": "req", + "type": "ImGuiTypingSelectRequest*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "get_item_name_func", + "ret": "const char*", + "signature": "(void*,int)", + "type": "const char*(*)(void*,int)" + }, + { + "name": "user_data", + "type": "void*" + }, + { + "name": "nav_item_idx", + "type": "int" + } + ], + "argsoriginal": "(ImGuiTypingSelectRequest* req,int items_count,const char*(*get_item_name_func)(void*,int),void* user_data,int nav_item_idx)", + "call_args": "(req,items_count,get_item_name_func,user_data,nav_item_idx)", + "cimguiname": "igTypingSelectFindMatch", + "defaults": {}, + "funcname": "TypingSelectFindMatch", + "location": "imgui_internal:3467", + "namespace": "ImGui", + "ov_cimguiname": "igTypingSelectFindMatch", + "ret": "int", + "signature": "(ImGuiTypingSelectRequest*,int,const char*(*)(void*,int),void*,int)", + "stname": "" + } + ], + "igTypingSelectFindNextSingleCharMatch": [ + { + "args": "(ImGuiTypingSelectRequest* req,int items_count,const char*(*get_item_name_func)(void*,int),void* user_data,int nav_item_idx)", + "argsT": [ + { + "name": "req", + "type": "ImGuiTypingSelectRequest*" + }, + { + "name": "items_count", + "type": "int" + }, + { + "name": "get_item_name_func", + "ret": "const char*", + "signature": "(void*,int)", + "type": "const char*(*)(void*,int)" + }, + { + "name": "user_data", + "type": "void*" + }, + { + "name": "nav_item_idx", + "type": "int" + } + ], + "argsoriginal": "(ImGuiTypingSelectRequest* req,int items_count,const char*(*get_item_name_func)(void*,int),void* user_data,int nav_item_idx)", + "call_args": "(req,items_count,get_item_name_func,user_data,nav_item_idx)", + "cimguiname": "igTypingSelectFindNextSingleCharMatch", + "defaults": {}, + "funcname": "TypingSelectFindNextSingleCharMatch", + "location": "imgui_internal:3468", + "namespace": "ImGui", + "ov_cimguiname": "igTypingSelectFindNextSingleCharMatch", + "ret": "int", + "signature": "(ImGuiTypingSelectRequest*,int,const char*(*)(void*,int),void*,int)", + "stname": "" + } + ], "igUnindent": [ { "args": "(float indent_w)", @@ -36909,7 +37801,7 @@ "indent_w": "0.0f" }, "funcname": "Unindent", - "location": "imgui:456", + "location": "imgui:470", "namespace": "ImGui", "ov_cimguiname": "igUnindent", "ret": "void", @@ -36926,7 +37818,7 @@ "cimguiname": "igUpdateHoveredWindowAndCaptureFlags", "defaults": {}, "funcname": "UpdateHoveredWindowAndCaptureFlags", - "location": "imgui_internal:3048", + "location": "imgui_internal:3163", "namespace": "ImGui", "ov_cimguiname": "igUpdateHoveredWindowAndCaptureFlags", "ret": "void", @@ -36948,7 +37840,7 @@ "cimguiname": "igUpdateInputEvents", "defaults": {}, "funcname": "UpdateInputEvents", - "location": "imgui_internal:3047", + "location": "imgui_internal:3162", "namespace": "ImGui", "ov_cimguiname": "igUpdateInputEvents", "ret": "void", @@ -36965,7 +37857,7 @@ "cimguiname": "igUpdateMouseMovingWindowEndFrame", "defaults": {}, "funcname": "UpdateMouseMovingWindowEndFrame", - "location": "imgui_internal:3052", + "location": "imgui_internal:3167", "namespace": "ImGui", "ov_cimguiname": "igUpdateMouseMovingWindowEndFrame", "ret": "void", @@ -36982,7 +37874,7 @@ "cimguiname": "igUpdateMouseMovingWindowNewFrame", "defaults": {}, "funcname": "UpdateMouseMovingWindowNewFrame", - "location": "imgui_internal:3051", + "location": "imgui_internal:3166", "namespace": "ImGui", "ov_cimguiname": "igUpdateMouseMovingWindowNewFrame", "ret": "void", @@ -37000,7 +37892,7 @@ "comment": "// call in main loop. will call CreateWindow/ResizeWindow/etc. platform functions for each secondary viewport, and DestroyWindow for each inactive viewport.", "defaults": {}, "funcname": "UpdatePlatformWindows", - "location": "imgui:996", + "location": "imgui:1003", "namespace": "ImGui", "ov_cimguiname": "igUpdatePlatformWindows", "ret": "void", @@ -37030,7 +37922,7 @@ "cimguiname": "igUpdateWindowParentAndRootLinks", "defaults": {}, "funcname": "UpdateWindowParentAndRootLinks", - "location": "imgui_internal:3012", + "location": "imgui_internal:3126", "namespace": "ImGui", "ov_cimguiname": "igUpdateWindowParentAndRootLinks", "ret": "void", @@ -37079,7 +37971,7 @@ "format": "\"%.3f\"" }, "funcname": "VSliderFloat", - "location": "imgui:581", + "location": "imgui:587", "namespace": "ImGui", "ov_cimguiname": "igVSliderFloat", "ret": "bool", @@ -37128,7 +38020,7 @@ "format": "\"%d\"" }, "funcname": "VSliderInt", - "location": "imgui:582", + "location": "imgui:588", "namespace": "ImGui", "ov_cimguiname": "igVSliderInt", "ret": "bool", @@ -37181,7 +38073,7 @@ "format": "NULL" }, "funcname": "VSliderScalar", - "location": "imgui:583", + "location": "imgui:589", "namespace": "ImGui", "ov_cimguiname": "igVSliderScalar", "ret": "bool", @@ -37207,7 +38099,7 @@ "cimguiname": "igValue", "defaults": {}, "funcname": "Value", - "location": "imgui:659", + "location": "imgui:665", "namespace": "ImGui", "ov_cimguiname": "igValue_Bool", "ret": "void", @@ -37231,7 +38123,7 @@ "cimguiname": "igValue", "defaults": {}, "funcname": "Value", - "location": "imgui:660", + "location": "imgui:666", "namespace": "ImGui", "ov_cimguiname": "igValue_Int", "ret": "void", @@ -37255,7 +38147,7 @@ "cimguiname": "igValue", "defaults": {}, "funcname": "Value", - "location": "imgui:661", + "location": "imgui:667", "namespace": "ImGui", "ov_cimguiname": "igValue_Uint", "ret": "void", @@ -37285,7 +38177,7 @@ "float_format": "NULL" }, "funcname": "Value", - "location": "imgui:662", + "location": "imgui:668", "namespace": "ImGui", "ov_cimguiname": "igValue_Float", "ret": "void", @@ -37315,7 +38207,7 @@ "cimguiname": "igWindowPosRelToAbs", "defaults": {}, "funcname": "WindowPosRelToAbs", - "location": "imgui_internal:3025", + "location": "imgui_internal:3139", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igWindowPosRelToAbs", @@ -37346,7 +38238,7 @@ "cimguiname": "igWindowRectAbsToRel", "defaults": {}, "funcname": "WindowRectAbsToRel", - "location": "imgui_internal:3023", + "location": "imgui_internal:3137", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igWindowRectAbsToRel", @@ -37377,7 +38269,7 @@ "cimguiname": "igWindowRectRelToAbs", "defaults": {}, "funcname": "WindowRectRelToAbs", - "location": "imgui_internal:3024", + "location": "imgui_internal:3138", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igWindowRectRelToAbs", diff --git a/HexaGen.Tests/cimgui/generator.json b/HexaGen.Tests/cimgui/generator.json index a408cf3..3fc249f 100644 --- a/HexaGen.Tests/cimgui/generator.json +++ b/HexaGen.Tests/cimgui/generator.json @@ -1,7 +1,10 @@ { - "Namespace": "Hexa.NET.ImGuiNET", + "Namespace": "Hexa.NET.ImGui", "ApiName": "ImGui", "LibName": "cimgui", + "UseLibraryImport": true, + "EnableExperimentalOptions": true, + "GenerateConstructorsForStructs": true, "GenerateSizeOfStructs": false, "KnownConstantNames": {}, "KnownEnumValueNames": { "": "" }, @@ -13,6 +16,20 @@ "PreserveCaps": [ "" ], "Keywords": [ "object", "event", "out", "base" ], "IgnoredTypes": [ "ImVec4", "ImVec3", "ImVec2" ], + "IgnoredFunctions": [ + "igInputText", + "igInputTextMultiline", + "igInputTextWithHint", + "igImFormatString", + "igImFormatStringV", + "igImParseFormatTrimDecorations", + "igImTextStrToUtf8", + "igImTextStrFromUtf8", + "igGetKeyChordName", + "igDataTypeFormatString", + "igInputTextEx", + "igTempInputText" + ], "ArrayMappings": [ { "Primitive": 11, diff --git a/HexaGen.Tests/cimgui/structs_and_enums.json b/HexaGen.Tests/cimgui/structs_and_enums.json index 4d26f50..325e486 100644 --- a/HexaGen.Tests/cimgui/structs_and_enums.json +++ b/HexaGen.Tests/cimgui/structs_and_enums.json @@ -168,6 +168,9 @@ "ImGuiTreeNodeFlags_": { "above": "// Flags for ImGui::TreeNodeEx(), ImGui::CollapsingHeader*()" }, + "ImGuiTypingSelectFlags_": { + "above": "// Flags for GetTypingSelectRequest()" + }, "ImGuiViewportFlags_": { "above": "// Flags stored in ImGuiViewport::Flags, giving indications to the platform backends." }, @@ -1081,6 +1084,12 @@ "name": "ImGuiComboFlags_NoPreview", "value": "1 << 6" }, + { + "calc_value": 128, + "comment": "// Width dynamically calculated from preview contents", + "name": "ImGuiComboFlags_WidthFitPreview", + "value": "1 << 7" + }, { "calc_value": 30, "name": "ImGuiComboFlags_HeightMask_", @@ -1402,6 +1411,12 @@ "comment": "// Also send output to TTY", "name": "ImGuiDebugLogFlags_OutputToTTY", "value": "1 << 10" + }, + { + "calc_value": 2048, + "comment": "// Also send output to Test Engine", + "name": "ImGuiDebugLogFlags_OutputToTestEngine", + "value": "1 << 11" } ], "ImGuiDir_": [ @@ -1439,87 +1454,80 @@ "ImGuiDockNodeFlagsPrivate_": [ { "calc_value": 1024, - "comment": "// Local, Saved // A dockspace is a node that occupy space within an existing user window. Otherwise the node is floating and create its own window.", + "comment": "// Saved // A dockspace is a node that occupy space within an existing user window. Otherwise the node is floating and create its own window.", "name": "ImGuiDockNodeFlags_DockSpace", "value": "1 << 10" }, { "calc_value": 2048, - "comment": "// Local, Saved // The central node has 2 main properties: stay visible when empty, only use \"remaining\" spaces from its neighbor.", + "comment": "// Saved // The central node has 2 main properties: stay visible when empty, only use \"remaining\" spaces from its neighbor.", "name": "ImGuiDockNodeFlags_CentralNode", "value": "1 << 11" }, { "calc_value": 4096, - "comment": "// Local, Saved // Tab bar is completely unavailable. No triangle in the corner to enable it back.", + "comment": "// Saved // Tab bar is completely unavailable. No triangle in the corner to enable it back.", "name": "ImGuiDockNodeFlags_NoTabBar", "value": "1 << 12" }, { "calc_value": 8192, - "comment": "// Local, Saved // Tab bar is hidden, with a triangle in the corner to show it again (NB: actual tab-bar instance may be destroyed as this is only used for single-window tab bar)", + "comment": "// Saved // Tab bar is hidden, with a triangle in the corner to show it again (NB: actual tab-bar instance may be destroyed as this is only used for single-window tab bar)", "name": "ImGuiDockNodeFlags_HiddenTabBar", "value": "1 << 13" }, { "calc_value": 16384, - "comment": "// Local, Saved // Disable window/docking menu (that one that appears instead of the collapse button)", + "comment": "// Saved // Disable window/docking menu (that one that appears instead of the collapse button)", "name": "ImGuiDockNodeFlags_NoWindowMenuButton", "value": "1 << 14" }, { "calc_value": 32768, - "comment": "// Local, Saved //", + "comment": "// Saved // Disable close button", "name": "ImGuiDockNodeFlags_NoCloseButton", "value": "1 << 15" }, { "calc_value": 65536, - "comment": "// Local, Saved // Disable any form of docking in this dockspace or individual node. (On a whole dockspace, this pretty much defeat the purpose of using a dockspace at all). Note: when turned on, existing docked nodes will be preserved.", - "name": "ImGuiDockNodeFlags_NoDocking", + "comment": "// //", + "name": "ImGuiDockNodeFlags_NoResizeX", "value": "1 << 16" }, { "calc_value": 131072, - "comment": "// [EXPERIMENTAL] Prevent another window/node from splitting this node.", - "name": "ImGuiDockNodeFlags_NoDockingSplitMe", + "comment": "// //", + "name": "ImGuiDockNodeFlags_NoResizeY", "value": "1 << 17" }, - { - "calc_value": 262144, - "comment": "// [EXPERIMENTAL] Prevent this node from splitting another window/node.", - "name": "ImGuiDockNodeFlags_NoDockingSplitOther", - "value": "1 << 18" - }, { "calc_value": 524288, - "comment": "// [EXPERIMENTAL] Prevent another window/node to be docked over this node.", - "name": "ImGuiDockNodeFlags_NoDockingOverMe", + "comment": "// // Disable this node from splitting other windows/nodes.", + "name": "ImGuiDockNodeFlags_NoDockingSplitOther", "value": "1 << 19" }, { "calc_value": 1048576, - "comment": "// [EXPERIMENTAL] Prevent this node to be docked over another window or non-empty node.", - "name": "ImGuiDockNodeFlags_NoDockingOverOther", + "comment": "// // Disable other windows/nodes from being docked over this node.", + "name": "ImGuiDockNodeFlags_NoDockingOverMe", "value": "1 << 20" }, { "calc_value": 2097152, - "comment": "// [EXPERIMENTAL] Prevent this node to be docked over an empty node (e.g. DockSpace with no other windows)", - "name": "ImGuiDockNodeFlags_NoDockingOverEmpty", + "comment": "// // Disable this node from being docked over another window or non-empty node.", + "name": "ImGuiDockNodeFlags_NoDockingOverOther", "value": "1 << 21" }, { "calc_value": 4194304, - "comment": "// [EXPERIMENTAL]", - "name": "ImGuiDockNodeFlags_NoResizeX", + "comment": "// // Disable this node from being docked over an empty node (e.g. DockSpace with no other windows)", + "name": "ImGuiDockNodeFlags_NoDockingOverEmpty", "value": "1 << 22" }, { - "calc_value": 8388608, - "comment": "// [EXPERIMENTAL]", - "name": "ImGuiDockNodeFlags_NoResizeY", - "value": "1 << 23" + "calc_value": 7864336, + "name": "ImGuiDockNodeFlags_NoDocking", + "value": "ImGuiDockNodeFlags_NoDockingOverMe | ImGuiDockNodeFlags_NoDockingOverOther | ImGuiDockNodeFlags_NoDockingOverEmpty | ImGuiDockNodeFlags_NoDockingSplit | ImGuiDockNodeFlags_NoDockingSplitOther" }, { "calc_value": -1, @@ -1527,25 +1535,19 @@ "value": "~0" }, { - "calc_value": 12582944, + "calc_value": 196640, "name": "ImGuiDockNodeFlags_NoResizeFlagsMask_", "value": "ImGuiDockNodeFlags_NoResize | ImGuiDockNodeFlags_NoResizeX | ImGuiDockNodeFlags_NoResizeY" }, { - "calc_value": 12713072, - "name": "ImGuiDockNodeFlags_LocalFlagsMask_", - "value": "ImGuiDockNodeFlags_NoSplit | ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_AutoHideTabBar | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking" - }, - { - "calc_value": 12712048, - "comment": "// When splitting those flags are moved to the inheriting child, never duplicated", + "calc_value": 260208, "name": "ImGuiDockNodeFlags_LocalFlagsTransferMask_", - "value": "ImGuiDockNodeFlags_LocalFlagsMask_ & ~ImGuiDockNodeFlags_DockSpace" + "value": "ImGuiDockNodeFlags_NoDockingSplit | ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_AutoHideTabBar | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton" }, { - "calc_value": 12712992, + "calc_value": 261152, "name": "ImGuiDockNodeFlags_SavedFlagsMask_", - "value": "ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton | ImGuiDockNodeFlags_NoDocking" + "value": "ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton" } ], "ImGuiDockNodeFlags_": [ @@ -1556,39 +1558,45 @@ }, { "calc_value": 1, - "comment": "// Shared // Don't display the dockspace node but keep it alive. Windows docked into this dockspace node won't be undocked.", + "comment": "// // Don't display the dockspace node but keep it alive. Windows docked into this dockspace node won't be undocked.", "name": "ImGuiDockNodeFlags_KeepAliveOnly", "value": "1 << 0" }, { "calc_value": 4, - "comment": "// Shared // Disable docking inside the Central Node, which will be always kept empty.", - "name": "ImGuiDockNodeFlags_NoDockingInCentralNode", + "comment": "// // Disable docking over the Central Node, which will be always kept empty.", + "name": "ImGuiDockNodeFlags_NoDockingOverCentralNode", "value": "1 << 2" }, { "calc_value": 8, - "comment": "// Shared // Enable passthru dockspace: 1) DockSpace() will render a ImGuiCol_WindowBg background covering everything excepted the Central Node when empty. Meaning the host window should probably use SetNextWindowBgAlpha(0.0f) prior to Begin() when using this. 2) When Central Node is empty: let inputs pass-through + won't display a DockingEmptyBg background. See demo for details.", + "comment": "// // Enable passthru dockspace: 1) DockSpace() will render a ImGuiCol_WindowBg background covering everything excepted the Central Node when empty. Meaning the host window should probably use SetNextWindowBgAlpha(0.0f) prior to Begin() when using this. 2) When Central Node is empty: let inputs pass-through + won't display a DockingEmptyBg background. See demo for details.", "name": "ImGuiDockNodeFlags_PassthruCentralNode", "value": "1 << 3" }, { "calc_value": 16, - "comment": "// Shared/Local // Disable splitting the node into smaller nodes. Useful e.g. when embedding dockspaces into a main root one (the root one may have splitting disabled to reduce confusion). Note: when turned off, existing splits will be preserved.", - "name": "ImGuiDockNodeFlags_NoSplit", + "comment": "// // Disable other windows/nodes from splitting this node.", + "name": "ImGuiDockNodeFlags_NoDockingSplit", "value": "1 << 4" }, { "calc_value": 32, - "comment": "// Shared/Local // Disable resizing node using the splitter/separators. Useful with programmatically setup dockspaces.", + "comment": "// Saved // Disable resizing node using the splitter/separators. Useful with programmatically setup dockspaces.", "name": "ImGuiDockNodeFlags_NoResize", "value": "1 << 5" }, { "calc_value": 64, - "comment": "// Shared/Local // Tab bar will automatically hide when there is a single window in the dock node.", + "comment": "// // Tab bar will automatically hide when there is a single window in the dock node.", "name": "ImGuiDockNodeFlags_AutoHideTabBar", "value": "1 << 6" + }, + { + "calc_value": 128, + "comment": "// // Disable undocking this node.", + "name": "ImGuiDockNodeFlags_NoUndocking", + "value": "1 << 7" } ], "ImGuiDockNodeState": [ @@ -1743,17 +1751,17 @@ ], "ImGuiHoveredFlagsPrivate_": [ { - "calc_value": 122880, + "calc_value": 245760, "name": "ImGuiHoveredFlags_DelayMask_", "value": "ImGuiHoveredFlags_DelayNone | ImGuiHoveredFlags_DelayShort | ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_NoSharedDelay" }, { - "calc_value": 6335, + "calc_value": 12479, "name": "ImGuiHoveredFlags_AllowedMaskForIsWindowHovered", "value": "ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_AnyWindow | ImGuiHoveredFlags_NoPopupHierarchy | ImGuiHoveredFlags_DockHierarchy | ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_Stationary" }, { - "calc_value": 130976, + "calc_value": 262048, "name": "ImGuiHoveredFlags_AllowedMaskForIsItemHovered", "value": "ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped | ImGuiHoveredFlags_AllowWhenDisabled | ImGuiHoveredFlags_NoNavOverride | ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayMask_" } @@ -1847,40 +1855,40 @@ "value": "ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows" }, { - "calc_value": 2048, + "calc_value": 4096, "comment": "// Shortcut for standard flags when using IsItemHovered() + SetTooltip() sequence.", "name": "ImGuiHoveredFlags_ForTooltip", - "value": "1 << 11" + "value": "1 << 12" }, { - "calc_value": 4096, + "calc_value": 8192, "comment": "// Require mouse to be stationary for style.HoverStationaryDelay (~0.15 sec) _at least one time_. After this, can move on same item/window. Using the stationary test tends to reduces the need for a long delay.", "name": "ImGuiHoveredFlags_Stationary", - "value": "1 << 12" + "value": "1 << 13" }, { - "calc_value": 8192, + "calc_value": 16384, "comment": "// IsItemHovered() only: Return true immediately (default). As this is the default you generally ignore this.", "name": "ImGuiHoveredFlags_DelayNone", - "value": "1 << 13" + "value": "1 << 14" }, { - "calc_value": 16384, + "calc_value": 32768, "comment": "// IsItemHovered() only: Return true after style.HoverDelayShort elapsed (~0.15 sec) (shared between items) + requires mouse to be stationary for style.HoverStationaryDelay (once per item).", "name": "ImGuiHoveredFlags_DelayShort", - "value": "1 << 14" + "value": "1 << 15" }, { - "calc_value": 32768, + "calc_value": 65536, "comment": "// IsItemHovered() only: Return true after style.HoverDelayNormal elapsed (~0.40 sec) (shared between items) + requires mouse to be stationary for style.HoverStationaryDelay (once per item).", "name": "ImGuiHoveredFlags_DelayNormal", - "value": "1 << 15" + "value": "1 << 16" }, { - "calc_value": 65536, + "calc_value": 131072, "comment": "// IsItemHovered() only: Disable shared delay system where moving from one item to the next keeps the previous timer for a short time (standard for tooltips with long delays)", "name": "ImGuiHoveredFlags_NoSharedDelay", - "value": "1 << 16" + "value": "1 << 17" } ], "ImGuiInputEventType": [ @@ -2317,7 +2325,7 @@ { "calc_value": 512, "comment": "// false // Allow being overlapped by another widget. Not-hovered to Hovered transition deferred by a frame.", - "name": "ImGuiItemflags_AllowOverlap", + "name": "ImGuiItemFlags_AllowOverlap", "value": "1 << 9" }, { @@ -2325,6 +2333,12 @@ "comment": "// false // [WIP] Auto-activate input mode when tab focused. Currently only used and supported by a few items before it becomes a generic feature.", "name": "ImGuiItemFlags_Inputable", "value": "1 << 10" + }, + { + "calc_value": 2048, + "comment": "// false // Set by SetNextItemSelectionUserData()", + "name": "ImGuiItemFlags_HasSelectionUserData", + "value": "1 << 11" } ], "ImGuiItemStatusFlags_": [ @@ -2763,384 +2777,455 @@ }, { "calc_value": 584, - "comment": "// '", - "name": "ImGuiKey_Apostrophe", + "name": "ImGuiKey_F13", "value": "584" }, { "calc_value": 585, - "comment": "// ,", - "name": "ImGuiKey_Comma", + "name": "ImGuiKey_F14", "value": "585" }, { "calc_value": 586, - "comment": "// -", - "name": "ImGuiKey_Minus", + "name": "ImGuiKey_F15", "value": "586" }, { "calc_value": 587, - "comment": "// .", - "name": "ImGuiKey_Period", + "name": "ImGuiKey_F16", "value": "587" }, { "calc_value": 588, - "comment": "// /", - "name": "ImGuiKey_Slash", + "name": "ImGuiKey_F17", "value": "588" }, { "calc_value": 589, - "comment": "// ;", - "name": "ImGuiKey_Semicolon", + "name": "ImGuiKey_F18", "value": "589" }, { "calc_value": 590, - "comment": "// =", - "name": "ImGuiKey_Equal", + "name": "ImGuiKey_F19", "value": "590" }, { "calc_value": 591, - "comment": "// [", - "name": "ImGuiKey_LeftBracket", + "name": "ImGuiKey_F20", "value": "591" }, { "calc_value": 592, - "comment": "// \\ (this text inhibit multiline comment caused by backslash)", - "name": "ImGuiKey_Backslash", + "name": "ImGuiKey_F21", "value": "592" }, { "calc_value": 593, - "comment": "// ]", - "name": "ImGuiKey_RightBracket", + "name": "ImGuiKey_F22", "value": "593" }, { "calc_value": 594, - "comment": "// `", - "name": "ImGuiKey_GraveAccent", + "name": "ImGuiKey_F23", "value": "594" }, { "calc_value": 595, - "name": "ImGuiKey_CapsLock", + "name": "ImGuiKey_F24", "value": "595" }, { "calc_value": 596, - "name": "ImGuiKey_ScrollLock", + "comment": "// '", + "name": "ImGuiKey_Apostrophe", "value": "596" }, { "calc_value": 597, - "name": "ImGuiKey_NumLock", + "comment": "// ,", + "name": "ImGuiKey_Comma", "value": "597" }, { "calc_value": 598, - "name": "ImGuiKey_PrintScreen", + "comment": "// -", + "name": "ImGuiKey_Minus", "value": "598" }, { "calc_value": 599, - "name": "ImGuiKey_Pause", + "comment": "// .", + "name": "ImGuiKey_Period", "value": "599" }, { "calc_value": 600, - "name": "ImGuiKey_Keypad0", + "comment": "// /", + "name": "ImGuiKey_Slash", "value": "600" }, { "calc_value": 601, - "name": "ImGuiKey_Keypad1", + "comment": "// ;", + "name": "ImGuiKey_Semicolon", "value": "601" }, { "calc_value": 602, - "name": "ImGuiKey_Keypad2", + "comment": "// =", + "name": "ImGuiKey_Equal", "value": "602" }, { "calc_value": 603, - "name": "ImGuiKey_Keypad3", + "comment": "// [", + "name": "ImGuiKey_LeftBracket", "value": "603" }, { "calc_value": 604, - "name": "ImGuiKey_Keypad4", + "comment": "// \\ (this text inhibit multiline comment caused by backslash)", + "name": "ImGuiKey_Backslash", "value": "604" }, { "calc_value": 605, - "name": "ImGuiKey_Keypad5", + "comment": "// ]", + "name": "ImGuiKey_RightBracket", "value": "605" }, { "calc_value": 606, - "name": "ImGuiKey_Keypad6", + "comment": "// `", + "name": "ImGuiKey_GraveAccent", "value": "606" }, { "calc_value": 607, - "name": "ImGuiKey_Keypad7", + "name": "ImGuiKey_CapsLock", "value": "607" }, { "calc_value": 608, - "name": "ImGuiKey_Keypad8", + "name": "ImGuiKey_ScrollLock", "value": "608" }, { "calc_value": 609, - "name": "ImGuiKey_Keypad9", + "name": "ImGuiKey_NumLock", "value": "609" }, { "calc_value": 610, - "name": "ImGuiKey_KeypadDecimal", + "name": "ImGuiKey_PrintScreen", "value": "610" }, { "calc_value": 611, - "name": "ImGuiKey_KeypadDivide", + "name": "ImGuiKey_Pause", "value": "611" }, { "calc_value": 612, - "name": "ImGuiKey_KeypadMultiply", + "name": "ImGuiKey_Keypad0", "value": "612" }, { "calc_value": 613, - "name": "ImGuiKey_KeypadSubtract", + "name": "ImGuiKey_Keypad1", "value": "613" }, { "calc_value": 614, - "name": "ImGuiKey_KeypadAdd", + "name": "ImGuiKey_Keypad2", "value": "614" }, { "calc_value": 615, - "name": "ImGuiKey_KeypadEnter", + "name": "ImGuiKey_Keypad3", "value": "615" }, { "calc_value": 616, - "name": "ImGuiKey_KeypadEqual", + "name": "ImGuiKey_Keypad4", "value": "616" }, { "calc_value": 617, - "comment": "// Menu (Xbox) + (Switch) Start/Options (PS)", - "name": "ImGuiKey_GamepadStart", + "name": "ImGuiKey_Keypad5", "value": "617" }, { "calc_value": 618, - "comment": "// View (Xbox) - (Switch) Share (PS)", - "name": "ImGuiKey_GamepadBack", + "name": "ImGuiKey_Keypad6", "value": "618" }, { "calc_value": 619, - "comment": "// X (Xbox) Y (Switch) Square (PS) // Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows)", - "name": "ImGuiKey_GamepadFaceLeft", + "name": "ImGuiKey_Keypad7", "value": "619" }, { "calc_value": 620, - "comment": "// B (Xbox) A (Switch) Circle (PS) // Cancel / Close / Exit", - "name": "ImGuiKey_GamepadFaceRight", + "name": "ImGuiKey_Keypad8", "value": "620" }, { "calc_value": 621, - "comment": "// Y (Xbox) X (Switch) Triangle (PS) // Text Input / On-screen Keyboard", - "name": "ImGuiKey_GamepadFaceUp", + "name": "ImGuiKey_Keypad9", "value": "621" }, { "calc_value": 622, - "comment": "// A (Xbox) B (Switch) Cross (PS) // Activate / Open / Toggle / Tweak", - "name": "ImGuiKey_GamepadFaceDown", + "name": "ImGuiKey_KeypadDecimal", "value": "622" }, { "calc_value": 623, - "comment": "// D-pad Left // Move / Tweak / Resize Window (in Windowing mode)", - "name": "ImGuiKey_GamepadDpadLeft", + "name": "ImGuiKey_KeypadDivide", "value": "623" }, { "calc_value": 624, - "comment": "// D-pad Right // Move / Tweak / Resize Window (in Windowing mode)", - "name": "ImGuiKey_GamepadDpadRight", + "name": "ImGuiKey_KeypadMultiply", "value": "624" }, { "calc_value": 625, - "comment": "// D-pad Up // Move / Tweak / Resize Window (in Windowing mode)", - "name": "ImGuiKey_GamepadDpadUp", + "name": "ImGuiKey_KeypadSubtract", "value": "625" }, { "calc_value": 626, - "comment": "// D-pad Down // Move / Tweak / Resize Window (in Windowing mode)", - "name": "ImGuiKey_GamepadDpadDown", + "name": "ImGuiKey_KeypadAdd", "value": "626" }, { "calc_value": 627, - "comment": "// L Bumper (Xbox) L (Switch) L1 (PS) // Tweak Slower / Focus Previous (in Windowing mode)", - "name": "ImGuiKey_GamepadL1", + "name": "ImGuiKey_KeypadEnter", "value": "627" }, { "calc_value": 628, - "comment": "// R Bumper (Xbox) R (Switch) R1 (PS) // Tweak Faster / Focus Next (in Windowing mode)", - "name": "ImGuiKey_GamepadR1", + "name": "ImGuiKey_KeypadEqual", "value": "628" }, { "calc_value": 629, - "comment": "// L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog]", - "name": "ImGuiKey_GamepadL2", + "comment": "// Available on some keyboard/mouses. Often referred as \"Browser Back\"", + "name": "ImGuiKey_AppBack", "value": "629" }, { "calc_value": 630, - "comment": "// R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog]", - "name": "ImGuiKey_GamepadR2", + "name": "ImGuiKey_AppForward", "value": "630" }, { "calc_value": 631, - "comment": "// L Stick (Xbox) L3 (Switch) L3 (PS)", - "name": "ImGuiKey_GamepadL3", + "comment": "// Menu (Xbox) + (Switch) Start/Options (PS)", + "name": "ImGuiKey_GamepadStart", "value": "631" }, { "calc_value": 632, - "comment": "// R Stick (Xbox) R3 (Switch) R3 (PS)", - "name": "ImGuiKey_GamepadR3", + "comment": "// View (Xbox) - (Switch) Share (PS)", + "name": "ImGuiKey_GamepadBack", "value": "632" }, { "calc_value": 633, - "comment": "// [Analog] // Move Window (in Windowing mode)", - "name": "ImGuiKey_GamepadLStickLeft", + "comment": "// X (Xbox) Y (Switch) Square (PS) // Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows)", + "name": "ImGuiKey_GamepadFaceLeft", "value": "633" }, { "calc_value": 634, - "comment": "// [Analog] // Move Window (in Windowing mode)", - "name": "ImGuiKey_GamepadLStickRight", + "comment": "// B (Xbox) A (Switch) Circle (PS) // Cancel / Close / Exit", + "name": "ImGuiKey_GamepadFaceRight", "value": "634" }, { "calc_value": 635, - "comment": "// [Analog] // Move Window (in Windowing mode)", - "name": "ImGuiKey_GamepadLStickUp", + "comment": "// Y (Xbox) X (Switch) Triangle (PS) // Text Input / On-screen Keyboard", + "name": "ImGuiKey_GamepadFaceUp", "value": "635" }, { "calc_value": 636, - "comment": "// [Analog] // Move Window (in Windowing mode)", - "name": "ImGuiKey_GamepadLStickDown", + "comment": "// A (Xbox) B (Switch) Cross (PS) // Activate / Open / Toggle / Tweak", + "name": "ImGuiKey_GamepadFaceDown", "value": "636" }, { "calc_value": 637, - "comment": "// [Analog]", - "name": "ImGuiKey_GamepadRStickLeft", + "comment": "// D-pad Left // Move / Tweak / Resize Window (in Windowing mode)", + "name": "ImGuiKey_GamepadDpadLeft", "value": "637" }, { "calc_value": 638, - "comment": "// [Analog]", - "name": "ImGuiKey_GamepadRStickRight", + "comment": "// D-pad Right // Move / Tweak / Resize Window (in Windowing mode)", + "name": "ImGuiKey_GamepadDpadRight", "value": "638" }, { "calc_value": 639, - "comment": "// [Analog]", - "name": "ImGuiKey_GamepadRStickUp", + "comment": "// D-pad Up // Move / Tweak / Resize Window (in Windowing mode)", + "name": "ImGuiKey_GamepadDpadUp", "value": "639" }, { "calc_value": 640, - "comment": "// [Analog]", - "name": "ImGuiKey_GamepadRStickDown", + "comment": "// D-pad Down // Move / Tweak / Resize Window (in Windowing mode)", + "name": "ImGuiKey_GamepadDpadDown", "value": "640" }, { "calc_value": 641, - "name": "ImGuiKey_MouseLeft", + "comment": "// L Bumper (Xbox) L (Switch) L1 (PS) // Tweak Slower / Focus Previous (in Windowing mode)", + "name": "ImGuiKey_GamepadL1", "value": "641" }, { "calc_value": 642, - "name": "ImGuiKey_MouseRight", + "comment": "// R Bumper (Xbox) R (Switch) R1 (PS) // Tweak Faster / Focus Next (in Windowing mode)", + "name": "ImGuiKey_GamepadR1", "value": "642" }, { "calc_value": 643, - "name": "ImGuiKey_MouseMiddle", + "comment": "// L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog]", + "name": "ImGuiKey_GamepadL2", "value": "643" }, { "calc_value": 644, - "name": "ImGuiKey_MouseX1", + "comment": "// R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog]", + "name": "ImGuiKey_GamepadR2", "value": "644" }, { "calc_value": 645, - "name": "ImGuiKey_MouseX2", + "comment": "// L Stick (Xbox) L3 (Switch) L3 (PS)", + "name": "ImGuiKey_GamepadL3", "value": "645" }, { "calc_value": 646, - "name": "ImGuiKey_MouseWheelX", + "comment": "// R Stick (Xbox) R3 (Switch) R3 (PS)", + "name": "ImGuiKey_GamepadR3", "value": "646" }, { "calc_value": 647, - "name": "ImGuiKey_MouseWheelY", + "comment": "// [Analog] // Move Window (in Windowing mode)", + "name": "ImGuiKey_GamepadLStickLeft", "value": "647" }, { "calc_value": 648, - "name": "ImGuiKey_ReservedForModCtrl", + "comment": "// [Analog] // Move Window (in Windowing mode)", + "name": "ImGuiKey_GamepadLStickRight", "value": "648" }, { "calc_value": 649, - "name": "ImGuiKey_ReservedForModShift", + "comment": "// [Analog] // Move Window (in Windowing mode)", + "name": "ImGuiKey_GamepadLStickUp", "value": "649" }, { "calc_value": 650, - "name": "ImGuiKey_ReservedForModAlt", + "comment": "// [Analog] // Move Window (in Windowing mode)", + "name": "ImGuiKey_GamepadLStickDown", "value": "650" }, { "calc_value": 651, - "name": "ImGuiKey_ReservedForModSuper", + "comment": "// [Analog]", + "name": "ImGuiKey_GamepadRStickLeft", "value": "651" }, { "calc_value": 652, - "name": "ImGuiKey_COUNT", + "comment": "// [Analog]", + "name": "ImGuiKey_GamepadRStickRight", "value": "652" }, + { + "calc_value": 653, + "comment": "// [Analog]", + "name": "ImGuiKey_GamepadRStickUp", + "value": "653" + }, + { + "calc_value": 654, + "comment": "// [Analog]", + "name": "ImGuiKey_GamepadRStickDown", + "value": "654" + }, + { + "calc_value": 655, + "name": "ImGuiKey_MouseLeft", + "value": "655" + }, + { + "calc_value": 656, + "name": "ImGuiKey_MouseRight", + "value": "656" + }, + { + "calc_value": 657, + "name": "ImGuiKey_MouseMiddle", + "value": "657" + }, + { + "calc_value": 658, + "name": "ImGuiKey_MouseX1", + "value": "658" + }, + { + "calc_value": 659, + "name": "ImGuiKey_MouseX2", + "value": "659" + }, + { + "calc_value": 660, + "name": "ImGuiKey_MouseWheelX", + "value": "660" + }, + { + "calc_value": 661, + "name": "ImGuiKey_MouseWheelY", + "value": "661" + }, + { + "calc_value": 662, + "name": "ImGuiKey_ReservedForModCtrl", + "value": "662" + }, + { + "calc_value": 663, + "name": "ImGuiKey_ReservedForModShift", + "value": "663" + }, + { + "calc_value": 664, + "name": "ImGuiKey_ReservedForModAlt", + "value": "664" + }, + { + "calc_value": 665, + "name": "ImGuiKey_ReservedForModSuper", + "value": "665" + }, + { + "calc_value": 666, + "name": "ImGuiKey_COUNT", + "value": "666" + }, { "calc_value": 0, "name": "ImGuiMod_None", @@ -3188,17 +3273,17 @@ "value": "512" }, { - "calc_value": 652, + "calc_value": 666, "name": "ImGuiKey_NamedKey_END", "value": "ImGuiKey_COUNT" }, { - "calc_value": 140, + "calc_value": 154, "name": "ImGuiKey_NamedKey_COUNT", "value": "ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN" }, { - "calc_value": 652, + "calc_value": 666, "comment": "// Size of KeysData[]: hold legacy 0..512 keycodes + named keys", "name": "ImGuiKey_KeysData_SIZE", "value": "ImGuiKey_COUNT" @@ -3270,8 +3355,18 @@ }, { "calc_value": 9, - "name": "ImGuiLocKey_COUNT", + "name": "ImGuiLocKey_DockingHoldShiftToDock", "value": "9" + }, + { + "calc_value": 10, + "name": "ImGuiLocKey_DockingDragToUndockOrMoveNode", + "value": "10" + }, + { + "calc_value": 11, + "name": "ImGuiLocKey_COUNT", + "value": "11" } ], "ImGuiLogType": [ @@ -3619,26 +3714,32 @@ { "calc_value": 1024, "comment": "// == Focus + Activate if item is Inputable + DontChangeNavHighlight", - "name": "ImGuiNavMoveFlags_Tabbing", + "name": "ImGuiNavMoveFlags_IsTabbing", "value": "1 << 10" }, { "calc_value": 2048, - "comment": "// Activate/select target item.", - "name": "ImGuiNavMoveFlags_Activate", + "comment": "// Identify a PageDown/PageUp request.", + "name": "ImGuiNavMoveFlags_IsPageMove", "value": "1 << 11" }, { "calc_value": 4096, - "comment": "// Don't trigger selection by not setting g.NavJustMovedTo", - "name": "ImGuiNavMoveFlags_NoSelect", + "comment": "// Activate/select target item.", + "name": "ImGuiNavMoveFlags_Activate", "value": "1 << 12" }, { "calc_value": 8192, + "comment": "// Don't trigger selection by not setting g.NavJustMovedTo", + "name": "ImGuiNavMoveFlags_NoSelect", + "value": "1 << 13" + }, + { + "calc_value": 16384, "comment": "// Do not alter the visible state of keyboard vs mouse nav highlight", "name": "ImGuiNavMoveFlags_NoSetNavHighlight", - "value": "1 << 13" + "value": "1 << 14" } ], "ImGuiNextItemDataFlags_": [ @@ -3972,7 +4073,7 @@ }, { "calc_value": 2, - "comment": "// Selectable frame can span all columns (text will still fit in current column)", + "comment": "// Frame will span all columns of its container table (text will still fit in current column)", "name": "ImGuiSelectableFlags_SpanAllColumns", "value": "1 << 1" }, @@ -4028,6 +4129,7 @@ }, { "calc_value": 2097152, + "comment": "// Consider using g.NextItemData.ItemFlags |= ImGuiItemFlags_ReadOnly instead.", "name": "ImGuiSliderFlags_ReadOnly", "value": "1 << 21" } @@ -4229,38 +4331,50 @@ }, { "calc_value": 23, - "comment": "// ImVec2 ButtonTextAlign", - "name": "ImGuiStyleVar_ButtonTextAlign", + "comment": "// float TabBarBorderSize", + "name": "ImGuiStyleVar_TabBarBorderSize", "value": "23" }, { "calc_value": 24, - "comment": "// ImVec2 SelectableTextAlign", - "name": "ImGuiStyleVar_SelectableTextAlign", + "comment": "// ImVec2 ButtonTextAlign", + "name": "ImGuiStyleVar_ButtonTextAlign", "value": "24" }, { "calc_value": 25, - "comment": "// float SeparatorTextBorderSize", - "name": "ImGuiStyleVar_SeparatorTextBorderSize", + "comment": "// ImVec2 SelectableTextAlign", + "name": "ImGuiStyleVar_SelectableTextAlign", "value": "25" }, { "calc_value": 26, - "comment": "// ImVec2 SeparatorTextAlign", - "name": "ImGuiStyleVar_SeparatorTextAlign", + "comment": "// float SeparatorTextBorderSize", + "name": "ImGuiStyleVar_SeparatorTextBorderSize", "value": "26" }, { "calc_value": 27, - "comment": "// ImVec2 SeparatorTextPadding", - "name": "ImGuiStyleVar_SeparatorTextPadding", + "comment": "// ImVec2 SeparatorTextAlign", + "name": "ImGuiStyleVar_SeparatorTextAlign", "value": "27" }, { "calc_value": 28, - "name": "ImGuiStyleVar_COUNT", + "comment": "// ImVec2 SeparatorTextPadding", + "name": "ImGuiStyleVar_SeparatorTextPadding", "value": "28" + }, + { + "calc_value": 29, + "comment": "// float DockingSeparatorSize", + "name": "ImGuiStyleVar_DockingSeparatorSize", + "value": "29" + }, + { + "calc_value": 30, + "name": "ImGuiStyleVar_COUNT", + "value": "30" } ], "ImGuiTabBarFlagsPrivate_": [ @@ -4370,12 +4484,6 @@ "comment": "// [Docking] Trailing tabs with the _Unsorted flag will be sorted based on the DockOrder of their Window.", "name": "ImGuiTabItemFlags_Unsorted", "value": "1 << 22" - }, - { - "calc_value": 8388608, - "comment": "// [Docking] Display tab shape for docking preview (height is adjusted slightly to compensate for the yet missing tab bar)", - "name": "ImGuiTabItemFlags_Preview", - "value": "1 << 23" } ], "ImGuiTabItemFlags_": [ @@ -4538,7 +4646,7 @@ }, { "calc_value": 4096, - "comment": "// TableHeadersRow() will not submit label for this column. Convenient for some small columns. Name will still appear in context menu.", + "comment": "// TableHeadersRow() will not submit horizontal label for this column. Convenient for some small columns. Name will still appear in context menu or in angled headers.", "name": "ImGuiTableColumnFlags_NoHeaderLabel", "value": "1 << 12" }, @@ -4572,6 +4680,12 @@ "name": "ImGuiTableColumnFlags_IndentDisable", "value": "1 << 17" }, + { + "calc_value": 262144, + "comment": "// TableHeadersRow() will submit an angled header row for this column. Note this will add an extra row.", + "name": "ImGuiTableColumnFlags_AngledHeader", + "value": "1 << 18" + }, { "calc_value": 16777216, "comment": "// Status: is enabled == not hidden by user/api (referred to as \"Hide\" in _DefaultHide and _NoHide) flags.", @@ -4828,6 +4942,12 @@ "name": "ImGuiTableFlags_SortTristate", "value": "1 << 27" }, + { + "calc_value": 268435456, + "comment": "// Highlight column headers when hovered (may evolve into a fuller highlight)", + "name": "ImGuiTableFlags_HighlightHoveredColumn", + "value": "1 << 28" + }, { "calc_value": 57344, "name": "ImGuiTableFlags_SizingMask_", @@ -4947,7 +5067,7 @@ }, { "calc_value": 512, - "comment": "// Display a bullet instead of arrow", + "comment": "// Display a bullet instead of arrow. IMPORTANT: node can still be marked open/close if you don't set the _Leaf flag!", "name": "ImGuiTreeNodeFlags_Bullet", "value": "1 << 9" }, @@ -4971,9 +5091,15 @@ }, { "calc_value": 8192, + "comment": "// Frame will span all columns of its container table (text will still fit in current column)", + "name": "ImGuiTreeNodeFlags_SpanAllColumns", + "value": "1 << 13" + }, + { + "calc_value": 16384, "comment": "// (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop)", "name": "ImGuiTreeNodeFlags_NavLeftJumpsBackHere", - "value": "1 << 13" + "value": "1 << 14" }, { "calc_value": 26, @@ -4981,6 +5107,25 @@ "value": "ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog" } ], + "ImGuiTypingSelectFlags_": [ + { + "calc_value": 0, + "name": "ImGuiTypingSelectFlags_None", + "value": "0" + }, + { + "calc_value": 1, + "comment": "// Backspace to delete character inputs. If using: ensure GetTypingSelectRequest() is not called more than once per frame (filter by e.g. focus state)", + "name": "ImGuiTypingSelectFlags_AllowBackspace", + "value": "1 << 0" + }, + { + "calc_value": 2, + "comment": "// Allow \"single char\" search mode which is activated when pressing the same character multiple times.", + "name": "ImGuiTypingSelectFlags_AllowSingleCharMode", + "value": "1 << 1" + } + ], "ImGuiViewportFlags_": [ { "calc_value": 0, @@ -5306,182 +5451,188 @@ "ImGuiMouseSource": "int" }, "locations": { - "ImBitVector": "imgui_internal:593", - "ImColor": "imgui:2571", - "ImDrawChannel": "imgui:2661", - "ImDrawCmd": "imgui:2620", - "ImDrawCmdHeader": "imgui:2653", - "ImDrawData": "imgui:2852", - "ImDrawDataBuilder": "imgui_internal:783", - "ImDrawFlags_": "imgui:2687", - "ImDrawList": "imgui:2725", - "ImDrawListFlags_": "imgui:2707", - "ImDrawListSharedData": "imgui_internal:760", - "ImDrawListSplitter": "imgui:2670", - "ImDrawVert": "imgui:2638", - "ImFont": "imgui:3073", - "ImFontAtlas": "imgui:2969", - "ImFontAtlasCustomRect": "imgui:2931", - "ImFontAtlasFlags_": "imgui:2944", - "ImFontBuilderIO": "imgui_internal:3587", - "ImFontConfig": "imgui:2875", - "ImFontGlyph": "imgui:2904", - "ImFontGlyphRangesBuilder": "imgui:2916", - "ImGuiActivateFlags_": "imgui_internal:1471", - "ImGuiAxis": "imgui_internal:971", - "ImGuiBackendFlags_": "imgui:1613", - "ImGuiButtonFlagsPrivate_": "imgui_internal:865", - "ImGuiButtonFlags_": "imgui:1730", - "ImGuiCol_": "imgui:1628", - "ImGuiColorEditFlags_": "imgui:1743", - "ImGuiColorMod": "imgui_internal:1022", - "ImGuiComboFlagsPrivate_": "imgui_internal:890", - "ImGuiComboFlags_": "imgui:1145", - "ImGuiComboPreviewData": "imgui_internal:1039", - "ImGuiCond_": "imgui:1844", - "ImGuiConfigFlags_": "imgui:1588", - "ImGuiContext": "imgui_internal:1947", - "ImGuiContextHook": "imgui_internal:1932", - "ImGuiContextHookType": "imgui_internal:1930", - "ImGuiDataAuthority_": "imgui_internal:1644", - "ImGuiDataTypeInfo": "imgui_internal:1005", - "ImGuiDataTypePrivate_": "imgui_internal:1014", - "ImGuiDataTypeTempStorage": "imgui_internal:999", - "ImGuiDataType_": "imgui:1411", - "ImGuiDataVarInfo": "imgui_internal:991", - "ImGuiDebugLogFlags_": "imgui_internal:1869", - "ImGuiDir_": "imgui:1427", - "ImGuiDockContext": "imgui_internal:1743", - "ImGuiDockNode": "imgui_internal:1660", - "ImGuiDockNodeFlagsPrivate_": "imgui_internal:1619", - "ImGuiDockNodeFlags_": "imgui:1376", - "ImGuiDockNodeState": "imgui_internal:1651", - "ImGuiDragDropFlags_": "imgui:1389", - "ImGuiFocusRequestFlags_": "imgui_internal:934", - "ImGuiFocusedFlags_": "imgui:1322", - "ImGuiGroupData": "imgui_internal:1052", - "ImGuiHoveredFlagsPrivate_": "imgui_internal:848", - "ImGuiHoveredFlags_": "imgui:1336", - "ImGuiIO": "imgui:2032", - "ImGuiInputEvent": "imgui_internal:1327", - "ImGuiInputEventAppFocused": "imgui_internal:1325", - "ImGuiInputEventKey": "imgui_internal:1323", - "ImGuiInputEventMouseButton": "imgui_internal:1321", - "ImGuiInputEventMousePos": "imgui_internal:1319", - "ImGuiInputEventMouseViewport": "imgui_internal:1322", - "ImGuiInputEventMouseWheel": "imgui_internal:1320", - "ImGuiInputEventText": "imgui_internal:1324", - "ImGuiInputEventType": "imgui_internal:1294", - "ImGuiInputFlags_": "imgui_internal:1391", - "ImGuiInputSource": "imgui_internal:1307", - "ImGuiInputTextCallbackData": "imgui:2245", - "ImGuiInputTextDeactivatedState": "imgui_internal:1086", - "ImGuiInputTextFlagsPrivate_": "imgui_internal:856", - "ImGuiInputTextFlags_": "imgui:1051", - "ImGuiInputTextState": "imgui_internal:1096", - "ImGuiItemFlags_": "imgui_internal:802", - "ImGuiItemStatusFlags_": "imgui_internal:823", - "ImGuiKey": "imgui:1450", - "ImGuiKeyData": "imgui:2024", - "ImGuiKeyOwnerData": "imgui_internal:1379", - "ImGuiKeyRoutingData": "imgui_internal:1354", - "ImGuiKeyRoutingTable": "imgui_internal:1367", - "ImGuiLastItemData": "imgui_internal:1212", - "ImGuiLayoutType_": "imgui_internal:955", - "ImGuiListClipper": "imgui:2491", - "ImGuiListClipperData": "imgui_internal:1455", - "ImGuiListClipperRange": "imgui_internal:1442", - "ImGuiLocEntry": "imgui_internal:1858", - "ImGuiLocKey": "imgui_internal:1844", - "ImGuiLogType": "imgui_internal:961", - "ImGuiMenuColumns": "imgui_internal:1068", - "ImGuiMetricsConfig": "imgui_internal:1886", - "ImGuiMouseButton_": "imgui:1804", - "ImGuiMouseCursor_": "imgui:1814", - "ImGuiMouseSource": "imgui:1833", - "ImGuiNavHighlightFlags_": "imgui_internal:1494", - "ImGuiNavInput": "imgui:1579", - "ImGuiNavItemData": "imgui_internal:1530", - "ImGuiNavLayer": "imgui_internal:1523", - "ImGuiNavMoveFlags_": "imgui_internal:1503", - "ImGuiNextItemData": "imgui_internal:1198", - "ImGuiNextItemDataFlags_": "imgui_internal:1191", - "ImGuiNextWindowData": "imgui_internal:1164", - "ImGuiNextWindowDataFlags_": "imgui_internal:1147", - "ImGuiOldColumnData": "imgui_internal:1570", - "ImGuiOldColumnFlags_": "imgui_internal:1550", - "ImGuiOldColumns": "imgui_internal:1580", - "ImGuiOnceUponAFrame": "imgui:2366", - "ImGuiPayload": "imgui:2307", - "ImGuiPlatformIO": "imgui:3243", - "ImGuiPlatformImeData": "imgui:3316", - "ImGuiPlatformMonitor": "imgui:3306", - "ImGuiPlotType": "imgui_internal:978", - "ImGuiPopupData": "imgui_internal:1133", - "ImGuiPopupFlags_": "imgui:1114", - "ImGuiPopupPositionPolicy": "imgui_internal:984", - "ImGuiPtrOrIndex": "imgui_internal:1256", - "ImGuiScrollFlags_": "imgui_internal:1480", - "ImGuiSelectableFlagsPrivate_": "imgui_internal:903", - "ImGuiSelectableFlags_": "imgui:1130", - "ImGuiSeparatorFlags_": "imgui_internal:923", - "ImGuiSettingsHandler": "imgui_internal:1824", - "ImGuiShrinkWidthItem": "imgui_internal:1249", - "ImGuiSizeCallbackData": "imgui:2277", - "ImGuiSliderFlagsPrivate_": "imgui_internal:896", - "ImGuiSliderFlags_": "imgui:1789", - "ImGuiSortDirection_": "imgui:1438", - "ImGuiStackLevelInfo": "imgui_internal:1901", - "ImGuiStackSizes": "imgui_internal:1224", - "ImGuiStackTool": "imgui_internal:1913", - "ImGuiStorage": "imgui:2428", - "ImGuiStoragePair": "imgui:2431", - "ImGuiStyle": "imgui:1956", - "ImGuiStyleMod": "imgui_internal:1029", - "ImGuiStyleVar_": "imgui:1695", - "ImGuiTabBar": "imgui_internal:2692", - "ImGuiTabBarFlagsPrivate_": "imgui_internal:2654", - "ImGuiTabBarFlags_": "imgui:1159", - "ImGuiTabItem": "imgui_internal:2672", - "ImGuiTabItemFlagsPrivate_": "imgui_internal:2662", - "ImGuiTabItemFlags_": "imgui:1175", - "ImGuiTable": "imgui_internal:2822", - "ImGuiTableBgTarget_": "imgui:1313", - "ImGuiTableCellData": "imgui_internal:2803", - "ImGuiTableColumn": "imgui_internal:2744", - "ImGuiTableColumnFlags_": "imgui:1261", - "ImGuiTableColumnSettings": "imgui_internal:2959", - "ImGuiTableColumnSortSpecs": "imgui:2329", - "ImGuiTableFlags_": "imgui:1210", - "ImGuiTableInstanceData": "imgui_internal:2810", - "ImGuiTableRowFlags_": "imgui:1298", - "ImGuiTableSettings": "imgui_internal:2983", - "ImGuiTableSortSpecs": "imgui:2343", - "ImGuiTableTempData": "imgui_internal:2938", - "ImGuiTextBuffer": "imgui:2401", - "ImGuiTextFilter": "imgui:2374", - "ImGuiTextFlags_": "imgui_internal:941", - "ImGuiTextIndex": "imgui_internal:717", - "ImGuiTextRange": "imgui:2384", - "ImGuiTooltipFlags_": "imgui_internal:947", - "ImGuiTreeNodeFlagsPrivate_": "imgui_internal:917", - "ImGuiTreeNodeFlags_": "imgui:1081", - "ImGuiViewport": "imgui:3159", - "ImGuiViewportFlags_": "imgui:3131", - "ImGuiViewportP": "imgui_internal:1760", - "ImGuiWindow": "imgui_internal:2505", - "ImGuiWindowClass": "imgui:2292", - "ImGuiWindowDockStyle": "imgui_internal:1738", - "ImGuiWindowDockStyleCol": "imgui_internal:1727", - "ImGuiWindowFlags_": "imgui:1010", - "ImGuiWindowSettings": "imgui_internal:1806", - "ImGuiWindowStackData": "imgui_internal:1242", - "ImGuiWindowTempData": "imgui_internal:2456", - "ImRect": "imgui_internal:516", - "ImVec1": "imgui_internal:498", - "ImVec2": "imgui:262", - "ImVec2ih": "imgui_internal:506", - "ImVec4": "imgui:275", + "ImBitVector": "imgui_internal:609", + "ImColor": "imgui:2605", + "ImDrawChannel": "imgui:2695", + "ImDrawCmd": "imgui:2654", + "ImDrawCmdHeader": "imgui:2687", + "ImDrawData": "imgui:2889", + "ImDrawDataBuilder": "imgui_internal:798", + "ImDrawFlags_": "imgui:2721", + "ImDrawList": "imgui:2759", + "ImDrawListFlags_": "imgui:2741", + "ImDrawListSharedData": "imgui_internal:775", + "ImDrawListSplitter": "imgui:2704", + "ImDrawVert": "imgui:2672", + "ImFont": "imgui:3111", + "ImFontAtlas": "imgui:3007", + "ImFontAtlasCustomRect": "imgui:2969", + "ImFontAtlasFlags_": "imgui:2982", + "ImFontBuilderIO": "imgui_internal:3725", + "ImFontConfig": "imgui:2913", + "ImFontGlyph": "imgui:2942", + "ImFontGlyphRangesBuilder": "imgui:2954", + "ImGuiActivateFlags_": "imgui_internal:1502", + "ImGuiAxis": "imgui_internal:985", + "ImGuiBackendFlags_": "imgui:1635", + "ImGuiButtonFlagsPrivate_": "imgui_internal:879", + "ImGuiButtonFlags_": "imgui:1754", + "ImGuiCol_": "imgui:1650", + "ImGuiColorEditFlags_": "imgui:1767", + "ImGuiColorMod": "imgui_internal:1036", + "ImGuiComboFlagsPrivate_": "imgui_internal:904", + "ImGuiComboFlags_": "imgui:1153", + "ImGuiComboPreviewData": "imgui_internal:1053", + "ImGuiCond_": "imgui:1868", + "ImGuiConfigFlags_": "imgui:1610", + "ImGuiContext": "imgui_internal:2043", + "ImGuiContextHook": "imgui_internal:2028", + "ImGuiContextHookType": "imgui_internal:2026", + "ImGuiDataAuthority_": "imgui_internal:1720", + "ImGuiDataTypeInfo": "imgui_internal:1019", + "ImGuiDataTypePrivate_": "imgui_internal:1028", + "ImGuiDataTypeTempStorage": "imgui_internal:1013", + "ImGuiDataType_": "imgui:1429", + "ImGuiDataVarInfo": "imgui_internal:1005", + "ImGuiDebugAllocEntry": "imgui_internal:1965", + "ImGuiDebugAllocInfo": "imgui_internal:1972", + "ImGuiDebugLogFlags_": "imgui_internal:1947", + "ImGuiDir_": "imgui:1445", + "ImGuiDockContext": "imgui_internal:1819", + "ImGuiDockNode": "imgui_internal:1736", + "ImGuiDockNodeFlagsPrivate_": "imgui_internal:1692", + "ImGuiDockNodeFlags_": "imgui:1388", + "ImGuiDockNodeState": "imgui_internal:1727", + "ImGuiDragDropFlags_": "imgui:1407", + "ImGuiFocusRequestFlags_": "imgui_internal:948", + "ImGuiFocusedFlags_": "imgui:1334", + "ImGuiGroupData": "imgui_internal:1066", + "ImGuiHoveredFlagsPrivate_": "imgui_internal:862", + "ImGuiHoveredFlags_": "imgui:1348", + "ImGuiIDStackTool": "imgui_internal:2009", + "ImGuiIO": "imgui:2060", + "ImGuiInputEvent": "imgui_internal:1358", + "ImGuiInputEventAppFocused": "imgui_internal:1356", + "ImGuiInputEventKey": "imgui_internal:1354", + "ImGuiInputEventMouseButton": "imgui_internal:1352", + "ImGuiInputEventMousePos": "imgui_internal:1350", + "ImGuiInputEventMouseViewport": "imgui_internal:1353", + "ImGuiInputEventMouseWheel": "imgui_internal:1351", + "ImGuiInputEventText": "imgui_internal:1355", + "ImGuiInputEventType": "imgui_internal:1325", + "ImGuiInputFlags_": "imgui_internal:1422", + "ImGuiInputSource": "imgui_internal:1338", + "ImGuiInputTextCallbackData": "imgui:2278", + "ImGuiInputTextDeactivatedState": "imgui_internal:1102", + "ImGuiInputTextFlagsPrivate_": "imgui_internal:870", + "ImGuiInputTextFlags_": "imgui:1058", + "ImGuiInputTextState": "imgui_internal:1112", + "ImGuiItemFlags_": "imgui_internal:815", + "ImGuiItemStatusFlags_": "imgui_internal:837", + "ImGuiKey": "imgui:1468", + "ImGuiKeyData": "imgui:2052", + "ImGuiKeyOwnerData": "imgui_internal:1410", + "ImGuiKeyRoutingData": "imgui_internal:1385", + "ImGuiKeyRoutingTable": "imgui_internal:1398", + "ImGuiLastItemData": "imgui_internal:1233", + "ImGuiLayoutType_": "imgui_internal:969", + "ImGuiListClipper": "imgui:2523", + "ImGuiListClipperData": "imgui_internal:1486", + "ImGuiListClipperRange": "imgui_internal:1473", + "ImGuiLocEntry": "imgui_internal:1936", + "ImGuiLocKey": "imgui_internal:1920", + "ImGuiLogType": "imgui_internal:975", + "ImGuiMenuColumns": "imgui_internal:1084", + "ImGuiMetricsConfig": "imgui_internal:1982", + "ImGuiMouseButton_": "imgui:1828", + "ImGuiMouseCursor_": "imgui:1838", + "ImGuiMouseSource": "imgui:1857", + "ImGuiNavHighlightFlags_": "imgui_internal:1525", + "ImGuiNavInput": "imgui:1601", + "ImGuiNavItemData": "imgui_internal:1562", + "ImGuiNavLayer": "imgui_internal:1555", + "ImGuiNavMoveFlags_": "imgui_internal:1534", + "ImGuiNavTreeNodeData": "imgui_internal:1248", + "ImGuiNextItemData": "imgui_internal:1218", + "ImGuiNextItemDataFlags_": "imgui_internal:1211", + "ImGuiNextWindowData": "imgui_internal:1180", + "ImGuiNextWindowDataFlags_": "imgui_internal:1163", + "ImGuiOldColumnData": "imgui_internal:1640", + "ImGuiOldColumnFlags_": "imgui_internal:1620", + "ImGuiOldColumns": "imgui_internal:1650", + "ImGuiOnceUponAFrame": "imgui:2399", + "ImGuiPayload": "imgui:2340", + "ImGuiPlatformIO": "imgui:3281", + "ImGuiPlatformImeData": "imgui:3354", + "ImGuiPlatformMonitor": "imgui:3344", + "ImGuiPlotType": "imgui_internal:992", + "ImGuiPopupData": "imgui_internal:1149", + "ImGuiPopupFlags_": "imgui:1122", + "ImGuiPopupPositionPolicy": "imgui_internal:998", + "ImGuiPtrOrIndex": "imgui_internal:1287", + "ImGuiScrollFlags_": "imgui_internal:1511", + "ImGuiSelectableFlagsPrivate_": "imgui_internal:917", + "ImGuiSelectableFlags_": "imgui:1138", + "ImGuiSeparatorFlags_": "imgui_internal:937", + "ImGuiSettingsHandler": "imgui_internal:1900", + "ImGuiShrinkWidthItem": "imgui_internal:1280", + "ImGuiSizeCallbackData": "imgui:2310", + "ImGuiSliderFlagsPrivate_": "imgui_internal:910", + "ImGuiSliderFlags_": "imgui:1813", + "ImGuiSortDirection_": "imgui:1456", + "ImGuiStackLevelInfo": "imgui_internal:1997", + "ImGuiStackSizes": "imgui_internal:1255", + "ImGuiStorage": "imgui:2461", + "ImGuiStoragePair": "imgui:2464", + "ImGuiStyle": "imgui:1981", + "ImGuiStyleMod": "imgui_internal:1043", + "ImGuiStyleVar_": "imgui:1717", + "ImGuiTabBar": "imgui_internal:2794", + "ImGuiTabBarFlagsPrivate_": "imgui_internal:2757", + "ImGuiTabBarFlags_": "imgui:1168", + "ImGuiTabItem": "imgui_internal:2774", + "ImGuiTabItemFlagsPrivate_": "imgui_internal:2765", + "ImGuiTabItemFlags_": "imgui:1184", + "ImGuiTable": "imgui_internal:2929", + "ImGuiTableBgTarget_": "imgui:1325", + "ImGuiTableCellData": "imgui_internal:2907", + "ImGuiTableColumn": "imgui_internal:2848", + "ImGuiTableColumnFlags_": "imgui:1272", + "ImGuiTableColumnSettings": "imgui_internal:3073", + "ImGuiTableColumnSortSpecs": "imgui:2362", + "ImGuiTableFlags_": "imgui:1219", + "ImGuiTableInstanceData": "imgui_internal:2915", + "ImGuiTableRowFlags_": "imgui:1310", + "ImGuiTableSettings": "imgui_internal:3097", + "ImGuiTableSortSpecs": "imgui:2376", + "ImGuiTableTempData": "imgui_internal:3051", + "ImGuiTextBuffer": "imgui:2434", + "ImGuiTextFilter": "imgui:2407", + "ImGuiTextFlags_": "imgui_internal:955", + "ImGuiTextIndex": "imgui_internal:732", + "ImGuiTextRange": "imgui:2417", + "ImGuiTooltipFlags_": "imgui_internal:961", + "ImGuiTreeNodeFlagsPrivate_": "imgui_internal:931", + "ImGuiTreeNodeFlags_": "imgui:1088", + "ImGuiTypingSelectFlags_": "imgui_internal:1583", + "ImGuiTypingSelectRequest": "imgui_internal:1591", + "ImGuiTypingSelectState": "imgui_internal:1602", + "ImGuiViewport": "imgui:3197", + "ImGuiViewportFlags_": "imgui:3169", + "ImGuiViewportP": "imgui_internal:1836", + "ImGuiWindow": "imgui_internal:2609", + "ImGuiWindowClass": "imgui:2325", + "ImGuiWindowDockStyle": "imgui_internal:1814", + "ImGuiWindowDockStyleCol": "imgui_internal:1803", + "ImGuiWindowFlags_": "imgui:1017", + "ImGuiWindowSettings": "imgui_internal:1882", + "ImGuiWindowStackData": "imgui_internal:1273", + "ImGuiWindowTempData": "imgui_internal:2560", + "ImRect": "imgui_internal:531", + "ImVec1": "imgui_internal:513", + "ImVec2": "imgui:264", + "ImVec2ih": "imgui_internal:521", + "ImVec4": "imgui:277", "STB_TexteditState": "imstb_textedit:320", "StbTexteditRow": "imstb_textedit:367", "StbUndoRecord": "imstb_textedit:302", @@ -5548,6 +5699,9 @@ "ImGuiGroupData": { "above": "// Stacked storage data for BeginGroup()/EndGroup()" }, + "ImGuiIDStackTool": { + "above": "// State for ID Stack tool queries" + }, "ImGuiInputEventMousePos": { "above": "// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension?\n// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor'" }, @@ -5587,6 +5741,9 @@ "ImGuiMenuColumns": { "above": "// Simple column measurement, currently used for MenuItem() only.. This is very short-sighted/throw-away code and NOT a generic helper." }, + "ImGuiNavTreeNodeData": { + "above": "// Store data emitted by TreeNode() for usage by TreePop() to implement ImGuiTreeNodeFlags_NavLeftJumpsBackHere.\n// This is the minimum amount of data that we need to perform the equivalent of NavApplyItemToResult() and which we can't infer in TreePop()\n// Only stored when the node is a potential candidate for landing on a Left arrow jump." + }, "ImGuiNextWindowData": { "above": "// Storage for SetNexWindow** functions" }, @@ -5611,9 +5768,6 @@ "ImGuiSizeCallbackData": { "above": "// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin().\n// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough." }, - "ImGuiStackTool": { - "above": "// State for Stack tool queries" - }, "ImGuiStorage": { "above": "// Helper: Key->Value storage\n// Typically you don't have to worry about this since a storage is held within each Window.\n// We use it to e.g. store collapse state for a tree (Int 0/1)\n// This is optimized for efficient lookup (dichotomy into a contiguous buffer) and rare insertion (typically tied to user interactions aka max once a frame)\n// You can use it as custom user storage for temporary values. Declare your own storage if, for example:\n// - You want to manipulate the open/close state of a particular sub-tree in your interface (tree node uses Int 0/1 to store their state).\n// - You want to store custom debug data easily without adding or editing structures in your code (probably not efficient, but convenient)\n// Types are NOT stored, so it is up to you to make sure your Key don't collide with different types." }, @@ -5645,7 +5799,7 @@ "above": "// Sorting specification for one column of a table (sizeof == 12 bytes)" }, "ImGuiTableInstanceData": { - "above": "// Per-instance data that needs preserving across frames (seemingly most others do not need to be preserved aside from debug needs. Does that means they could be moved to ImGuiTableTempData?)" + "above": "// Per-instance data that needs preserving across frames (seemingly most others do not need to be preserved aside from debug needs. Does that means they could be moved to ImGuiTableTempData?)\n// sizeof() ~ 24 bytes" }, "ImGuiTableSettings": { "above": "// This is designed to be stored in a single ImChunkStream (1 header followed by N ImGuiTableColumnSettings, etc.)" @@ -5654,7 +5808,7 @@ "above": "// Sorting specifications for a table (often handling sort specs for a single column, occasionally more)\n// Obtained by calling TableGetSortSpecs().\n// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time.\n// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame!" }, "ImGuiTableTempData": { - "above": "// Transient data that are only needed between BeginTable() and EndTable(), those buffers are shared (1 per level of stacked table).\n// - Accessing those requires chasing an extra pointer so for very frequently used data we leave them in the main table structure.\n// - We also leave out of this structure data that tend to be particularly useful for debugging/metrics.\n// sizeof() ~ 112 bytes." + "above": "// Transient data that are only needed between BeginTable() and EndTable(), those buffers are shared (1 per level of stacked table).\n// - Accessing those requires chasing an extra pointer so for very frequently used data we leave them in the main table structure.\n// - We also leave out of this structure data that tend to be particularly useful for debugging/metrics.\n// sizeof() ~ 120 bytes." }, "ImGuiTextBuffer": { "above": "// Helper: Growable text buffer for logging/accumulating text\n// (this could be called 'ImGuiTextBuilder' / 'ImGuiStringBuilder')" @@ -5668,6 +5822,12 @@ "ImGuiTextRange": { "above": " // [Internal]" }, + "ImGuiTypingSelectRequest": { + "above": "// Returned by GetTypingSelectRequest(), designed to eventually be public." + }, + "ImGuiTypingSelectState": { + "above": "// Storage for GetTypingSelectRequest()" + }, "ImGuiViewport": { "above": "// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.\n// - With multi-viewport enabled, we extend this concept to have multiple active viewports.\n// - In the future we will extend this concept further to also represent Platform Monitor and support a \"no main platform window\" operation mode.\n// - About Main Area vs Work Area:\n// - Main Area = entire viewport.\n// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).\n// - Windows are generally trying to stay within the Work Area of their host viewport." }, @@ -5827,10 +5987,11 @@ }, { "comment": { - "sameline": "// Array of ImDrawList* to render. The ImDrawList are owned by ImGuiContext and only pointed to from here." + "sameline": "// Array of ImDrawList* to render. The ImDrawLists are owned by ImGuiContext and only pointed to from here." }, "name": "CmdLists", - "type": "ImDrawList**" + "template_type": "ImDrawList*", + "type": "ImVector_ImDrawListPtr" }, { "comment": { @@ -5864,11 +6025,16 @@ "ImDrawDataBuilder": [ { "comment": { - "sameline": "// Global layers for: regular, tooltip" + "sameline": "// Pointers to global layers for: regular, tooltip. LayersP[0] is owned by DrawData." }, "name": "Layers[2]", "size": 2, "template_type": "ImDrawList*", + "type": "ImVector_ImDrawListPtr*" + }, + { + "name": "LayerData1", + "template_type": "ImDrawList*", "type": "ImVector_ImDrawListPtr" } ], @@ -6529,7 +6695,7 @@ }, { "comment": { - "sameline": "// 3 // Rasterize at higher quality for sub-pixel positioning. Note the difference between 2 and 3 is minimal so you can reduce this to 2 to save memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details." + "sameline": "// 2 // Rasterize at higher quality for sub-pixel positioning. Note the difference between 2 and 3 is minimal. You can reduce this to 1 for large glyphs save memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details." }, "name": "OversampleH", "type": "int" @@ -7019,7 +7185,7 @@ { "comment": { "above": " // Item/widgets state and tracking information", - "sameline": "// Will call core hooks: DebugHookIdInfo() from GetID functions, used by Stack Tool [next HoveredId/ActiveId to not pull in an extra cache-line]" + "sameline": "// Will call core hooks: DebugHookIdInfo() from GetID functions, used by ID Stack Tool [next HoveredId/ActiveId to not pull in an extra cache-line]" }, "name": "DebugHookIdInfo", "type": "ImGuiID" @@ -7174,7 +7340,7 @@ "above": " // [EXPERIMENTAL] Key/Input Ownership + Shortcut Routing system\n // - The idea is that instead of \"eating\" a given key, we can link to an owner.\n // - Input query can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID.\n // - Routing is requested ahead of time for a given chord (Key + Mods) and granted in NewFrame()." }, "name": "KeysOwnerData[ImGuiKey_NamedKey_COUNT]", - "size": 140, + "size": 154, "type": "ImGuiKeyOwnerData" }, { @@ -7245,6 +7411,10 @@ "name": "NextWindowData", "type": "ImGuiNextWindowData" }, + { + "name": "DebugShowGroupRects", + "type": "bool" + }, { "comment": { "above": " // Shared stacks", @@ -7310,6 +7480,14 @@ "template_type": "ImGuiPopupData", "type": "ImVector_ImGuiPopupData" }, + { + "comment": { + "sameline": "// Stack for TreeNode() when a NavLeft requested is emitted." + }, + "name": "NavTreeNodeStack", + "template_type": "ImGuiNavTreeNodeData", + "type": "ImVector_ImGuiNavTreeNodeData" + }, { "name": "BeginMenuCount", "type": "int" @@ -7470,6 +7648,13 @@ "name": "NavLayer", "type": "ImGuiNavLayer" }, + { + "comment": { + "sameline": "// Last valid data passed to SetNextItemSelectionUser(), or -1. For current window. Not reset when focusing an item that doesn't have selection data." + }, + "name": "NavLastValidSelectionUserData", + "type": "ImGuiSelectionUserData" + }, { "comment": { "sameline": "// Nav widget has been seen this frame ~~ NavRectRel is valid" @@ -8065,6 +8250,10 @@ "name": "DisabledStackSize", "type": "short" }, + { + "name": "LockMarkEdited", + "type": "short" + }, { "name": "TooltipOverrideCount", "type": "short" @@ -8085,6 +8274,13 @@ "template_type": "ImGuiID", "type": "ImVector_ImGuiID" }, + { + "comment": { + "sameline": "// State for GetTypingSelectRequest()" + }, + "name": "TypingSelectState", + "type": "ImGuiTypingSelectState" + }, { "comment": { "above": " // Platform support", @@ -8104,13 +8300,6 @@ "name": "PlatformImeViewport", "type": "ImGuiID" }, - { - "comment": { - "sameline": "// '.' or *localeconv()->decimal_point" - }, - "name": "PlatformLocaleDecimalPoint", - "type": "char" - }, { "comment": { "above": " // Extensions\n // FIXME: We could provide an API to register one slot in an array held in ImGuiContext?" @@ -8187,7 +8376,7 @@ "above": " // Localization" }, "name": "LocalizationTable[ImGuiLocKey_COUNT]", - "size": 9, + "size": 11, "type": "const char*" }, { @@ -8306,8 +8495,12 @@ "type": "ImGuiMetricsConfig" }, { - "name": "DebugStackTool", - "type": "ImGuiStackTool" + "name": "DebugIDStackTool", + "type": "ImGuiIDStackTool" + }, + { + "name": "DebugAllocInfo", + "type": "ImGuiDebugAllocInfo" }, { "comment": { @@ -8449,6 +8642,48 @@ "type": "ImU32" } ], + "ImGuiDebugAllocEntry": [ + { + "name": "FrameCount", + "type": "int" + }, + { + "name": "AllocCount", + "type": "ImS16" + }, + { + "name": "FreeCount", + "type": "ImS16" + } + ], + "ImGuiDebugAllocInfo": [ + { + "comment": { + "sameline": "// Number of call to MemAlloc()." + }, + "name": "TotalAllocCount", + "type": "int" + }, + { + "name": "TotalFreeCount", + "type": "int" + }, + { + "comment": { + "sameline": "// Current index in buffer" + }, + "name": "LastEntriesIdx", + "type": "ImS16" + }, + { + "comment": { + "sameline": "// Track last 6 frames that had allocations" + }, + "name": "LastEntriesBuf[6]", + "size": 6, + "type": "ImGuiDebugAllocEntry" + } + ], "ImGuiDockContext": [ { "comment": { @@ -8749,6 +8984,10 @@ "name": "BackupCursorMaxPos", "type": "ImVec2" }, + { + "name": "BackupCursorPosPrevLine", + "type": "ImVec2" + }, { "name": "BackupIndent", "type": "ImVec1" @@ -8777,11 +9016,48 @@ "name": "BackupHoveredIdIsAlive", "type": "bool" }, + { + "name": "BackupIsSameLine", + "type": "bool" + }, { "name": "EmitItem", "type": "bool" } ], + "ImGuiIDStackTool": [ + { + "name": "LastActiveFrame", + "type": "int" + }, + { + "comment": { + "sameline": "// -1: query stack and resize Results, >= 0: individual stack level" + }, + "name": "StackLevel", + "type": "int" + }, + { + "comment": { + "sameline": "// ID to query details for" + }, + "name": "QueryId", + "type": "ImGuiID" + }, + { + "name": "Results", + "template_type": "ImGuiStackLevelInfo", + "type": "ImVector_ImGuiStackLevelInfo" + }, + { + "name": "CopyToClipboardOnCtrlC", + "type": "bool" + }, + { + "name": "CopyToClipboardLastTime", + "type": "float" + } + ], "ImGuiIO": [ { "comment": { @@ -9123,10 +9399,11 @@ }, { "comment": { - "sameline": "// Unused field to keep data structure the same size." + "above": " // Optional: Platform locale", + "sameline": "// '.' // [Experimental] Configure decimal point e.g. '.' or ',' useful for some languages (e.g. German), generally pulled from *localeconv()->decimal_point" }, - "name": "_UnusedPadding", - "type": "void*" + "name": "PlatformLocaleDecimalPoint", + "type": "ImWchar" }, { "comment": { @@ -9212,13 +9489,6 @@ "name": "MetricsActiveWindows", "type": "int" }, - { - "comment": { - "sameline": "// Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts." - }, - "name": "MetricsActiveAllocations", - "type": "int" - }, { "comment": { "sameline": "// Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta." @@ -9231,7 +9501,7 @@ "sameline": "// [LEGACY] Input: map of indices into the KeysDown[512] entries array which represent your \"native\" keyboard state. The first 512 are now unused and should be kept zero. Legacy backend will write into KeyMap[] using ImGuiKey_ indices which are always >512." }, "name": "KeyMap[ImGuiKey_COUNT]", - "size": 652, + "size": 666, "type": "int" }, { @@ -9239,7 +9509,7 @@ "sameline": "// [LEGACY] Input: Keyboard keys that are pressed (ideally left in the \"native\" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). This used to be [512] sized. It is now ImGuiKey_COUNT to allow legacy io.KeysDown[GetKeyIndex(...)] to work without an overflow." }, "name": "KeysDown[ImGuiKey_COUNT]", - "size": 652, + "size": 666, "type": "bool" }, { @@ -9250,6 +9520,10 @@ "size": 16, "type": "float" }, + { + "name": "_UnusedPadding", + "type": "void*" + }, { "comment": { "sameline": "// Parent UI context (needs to be set explicitly by parent)." @@ -9342,7 +9616,7 @@ "sameline": "// Key state for all known keys. Use IsKeyXXX() functions to access this." }, "name": "KeysData[ImGuiKey_KeysData_SIZE]", - "size": 652, + "size": 666, "type": "ImGuiKeyData" }, { @@ -9939,7 +10213,7 @@ "sameline": "// Index of first entry in Entries[]" }, "name": "Index[ImGuiKey_NamedKey_COUNT]", - "size": 140, + "size": 154, "type": "ImGuiKeyRoutingIndex" }, { @@ -10162,7 +10436,7 @@ "type": "bool" }, { - "name": "ShowStackTool", + "name": "ShowIDStackTool", "type": "bool" }, { @@ -10238,6 +10512,13 @@ "name": "InFlags", "type": "ImGuiItemFlags" }, + { + "comment": { + "sameline": "//I+Mov // Best candidate SetNextItemSelectionData() value." + }, + "name": "SelectionUserData", + "type": "ImGuiSelectionUserData" + }, { "comment": { "sameline": "// Move // Best candidate box distance to current NavId" @@ -10260,6 +10541,20 @@ "type": "float" } ], + "ImGuiNavTreeNodeData": [ + { + "name": "ID", + "type": "ImGuiID" + }, + { + "name": "InFlags", + "type": "ImGuiItemFlags" + }, + { + "name": "NavRect", + "type": "ImRect" + } + ], "ImGuiNextItemData": [ { "name": "Flags", @@ -10267,13 +10562,14 @@ }, { "comment": { - "sameline": "// Currently only tested/used for ImGuiItemflags_AllowOverlap." + "sameline": "// Currently only tested/used for ImGuiItemFlags_AllowOverlap." }, "name": "ItemFlags", "type": "ImGuiItemFlags" }, { "comment": { + "above": "\n // Non-flags members are NOT cleared by ItemAdd() meaning they are still valid during NavProcessItem()", "sameline": "// Set by SetNextItemWidth()" }, "name": "Width", @@ -10281,10 +10577,10 @@ }, { "comment": { - "sameline": "// Set by SetNextItemMultiSelectData() (!= 0 signify value has been set, so it's an alternate version of HasSelectionData, we don't use Flags for this because they are cleared too early. This is mostly used for debugging)" + "sameline": "// Set by SetNextItemSelectionUserData() (note that NULL/0 is a valid value, we use -1 == ImGuiSelectionUserData_Invalid to mark invalid values)" }, - "name": "FocusScopeId", - "type": "ImGuiID" + "name": "SelectionUserData", + "type": "ImGuiSelectionUserData" }, { "name": "OpenCond", @@ -11069,39 +11365,6 @@ "type": "short" } ], - "ImGuiStackTool": [ - { - "name": "LastActiveFrame", - "type": "int" - }, - { - "comment": { - "sameline": "// -1: query stack and resize Results, >= 0: individual stack level" - }, - "name": "StackLevel", - "type": "int" - }, - { - "comment": { - "sameline": "// ID to query details for" - }, - "name": "QueryId", - "type": "ImGuiID" - }, - { - "name": "Results", - "template_type": "ImGuiStackLevelInfo", - "type": "ImVector_ImGuiStackLevelInfo" - }, - { - "name": "CopyToClipboardOnCtrlC", - "type": "bool" - }, - { - "name": "CopyToClipboardLastTime", - "type": "float" - } - ], "ImGuiStorage": [ { "name": "Data", @@ -11241,7 +11504,7 @@ }, { "comment": { - "sameline": "// Padding within a table cell" + "sameline": "// Padding within a table cell. CellPadding.y may be altered between different rows." }, "name": "CellPadding", "type": "ImVec2" @@ -11323,6 +11586,20 @@ "name": "TabMinWidthForCloseButton", "type": "float" }, + { + "comment": { + "sameline": "// Thickness of tab-bar separator, which takes on the tab active color to denote focus." + }, + "name": "TabBarBorderSize", + "type": "float" + }, + { + "comment": { + "sameline": "// Angle of angled headers (supported values range from -50.0f degrees to +50.0f degrees)." + }, + "name": "TableAngledHeadersAngle", + "type": "float" + }, { "comment": { "sameline": "// Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right." @@ -11379,6 +11656,13 @@ "name": "DisplaySafeAreaPadding", "type": "ImVec2" }, + { + "comment": { + "sameline": "// Thickness of resizing border between docked windows" + }, + "name": "DockingSeparatorSize", + "type": "float" + }, { "comment": { "sameline": "// Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). We apply per-monitor DPI scaling over this scale. May be removed later." @@ -11572,6 +11856,14 @@ "name": "ScrollingRectMaxX", "type": "float" }, + { + "name": "SeparatorMinX", + "type": "float" + }, + { + "name": "SeparatorMaxX", + "type": "float" + }, { "name": "ReorderRequestTabId", "type": "ImGuiID" @@ -11850,6 +12142,13 @@ "name": "RowMinHeight", "type": "float" }, + { + "comment": { + "sameline": "// Top and bottom padding. Reloaded during row change." + }, + "name": "RowCellPaddingY", + "type": "float" + }, { "name": "RowTextBaseline", "type": "float" @@ -11916,18 +12215,14 @@ }, { "comment": { - "sameline": "// Padding from each borders" + "sameline": "// Padding from each borders. Locked in BeginTable()/Layout." }, "name": "CellPaddingX", "type": "float" }, - { - "name": "CellPaddingY", - "type": "float" - }, { "comment": { - "sameline": "// Spacing between non-bordered cells" + "sameline": "// Spacing between non-bordered cells. Locked in BeginTable()/Layout." }, "name": "CellSpacingX1", "type": "float" @@ -11982,6 +12277,20 @@ "name": "RefScale", "type": "float" }, + { + "comment": { + "sameline": "// Set by TableAngledHeadersRow(), used in TableUpdateLayout()" + }, + "name": "AngledHeadersHeight", + "type": "float" + }, + { + "comment": { + "sameline": "// Set by TableAngledHeadersRow(), used in TableUpdateLayout()" + }, + "name": "AngledHeadersSlope", + "type": "float" + }, { "comment": { "sameline": "// Note: for non-scrolling table, OuterRect.Max.y is often FLT_MAX until EndTable(), unless a height has been specified in BeginTable()." @@ -12123,6 +12432,13 @@ "name": "DeclColumnsCount", "type": "ImGuiTableColumnIdx" }, + { + "comment": { + "sameline": "// Count columns with angled headers" + }, + "name": "AngledHeadersCount", + "type": "ImGuiTableColumnIdx" + }, { "comment": { "sameline": "// Index of column whose visible region is being hovered. Important: == ColumnsCount when hovering empty region after the right-most column!" @@ -12137,6 +12453,13 @@ "name": "HoveredColumnBorder", "type": "ImGuiTableColumnIdx" }, + { + "comment": { + "sameline": "// Index of column which should be highlighted." + }, + "name": "HighlightColumnHeader", + "type": "ImGuiTableColumnIdx" + }, { "comment": { "sameline": "// Index of single column requesting auto-fit." @@ -12343,6 +12666,14 @@ "name": "IsDefaultSizingPolicy", "type": "bool" }, + { + "name": "IsActiveIdAliveBeforeTable", + "type": "bool" + }, + { + "name": "IsActiveIdInTable", + "type": "bool" + }, { "comment": { "sameline": "// Whether ANY instance of this table had a vertical scrollbar during the current frame." @@ -12724,7 +13055,7 @@ { "bitfield": "8", "comment": { - "sameline": "// ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending (you can use this or SortSign, whichever is more convenient for your sort function)" + "sameline": "// ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending" }, "name": "SortDirection", "type": "ImGuiSortDirection" @@ -12744,9 +13075,9 @@ }, { "comment": { - "sameline": "// Height of first row from last frame (FIXME: this is used as \"header height\" and may be reworked)" + "sameline": "// Height of first consecutive header rows from last frame (FIXME: this is used assuming consecutive headers are in same frozen set)" }, - "name": "LastFirstRowHeight", + "name": "LastTopHeadersRowHeight", "type": "float" }, { @@ -12755,6 +13086,20 @@ }, "name": "LastFrozenHeight", "type": "float" + }, + { + "comment": { + "sameline": "// Index of row which was hovered last frame." + }, + "name": "HoveredRowLast", + "type": "int" + }, + { + "comment": { + "sameline": "// Index of row hovered this frame, set after encountering it." + }, + "name": "HoveredRowNext", + "type": "int" } ], "ImGuiTableSettings": [ @@ -12836,6 +13181,13 @@ "name": "LastTimeActive", "type": "float" }, + { + "comment": { + "sameline": "// Used in EndTable()" + }, + "name": "AngledheadersExtraWidth", + "type": "float" + }, { "comment": { "sameline": "// outer_size.x passed to BeginTable()" @@ -12951,6 +13303,83 @@ "type": "const char*" } ], + "ImGuiTypingSelectRequest": [ + { + "comment": { + "sameline": "// Flags passed to GetTypingSelectRequest()" + }, + "name": "Flags", + "type": "ImGuiTypingSelectFlags" + }, + { + "name": "SearchBufferLen", + "type": "int" + }, + { + "comment": { + "sameline": "// Search buffer contents (use full string. unless SingleCharMode is set, in which case use SingleCharSize)." + }, + "name": "SearchBuffer", + "type": "const char*" + }, + { + "comment": { + "sameline": "// Set when buffer was modified this frame, requesting a selection." + }, + "name": "SelectRequest", + "type": "bool" + }, + { + "comment": { + "sameline": "// Notify when buffer contains same character repeated, to implement special mode. In this situation it preferred to not display any on-screen search indication." + }, + "name": "SingleCharMode", + "type": "bool" + }, + { + "comment": { + "sameline": "// Length in bytes of first letter codepoint (1 for ascii, 2-4 for UTF-8). If (SearchBufferLen==RepeatCharSize) only 1 letter has been input." + }, + "name": "SingleCharSize", + "type": "ImS8" + } + ], + "ImGuiTypingSelectState": [ + { + "comment": { + "sameline": "// User-facing data" + }, + "name": "Request", + "type": "ImGuiTypingSelectRequest" + }, + { + "comment": { + "sameline": "// Search buffer: no need to make dynamic as this search is very transient." + }, + "name": "SearchBuffer[64]", + "size": 64, + "type": "char" + }, + { + "name": "FocusScope", + "type": "ImGuiID" + }, + { + "name": "LastRequestFrame", + "type": "int" + }, + { + "name": "LastRequestTime", + "type": "float" + }, + { + "comment": { + "sameline": "// After a certain single char repeat count we lock into SingleCharMode. Two benefits: 1) buffer never fill, 2) we can provide an immediate SingleChar mode without timer elapsing." + }, + "name": "SingleCharModeLock", + "type": "bool" + } + ], "ImGuiViewport": [ { "comment": { @@ -13137,7 +13566,7 @@ "comment": { "sameline": "// Last frame number the background (0) and foreground (1) draw lists were used" }, - "name": "DrawListsLastFrame[2]", + "name": "BgFgDrawListsLastFrame[2]", "size": 2, "type": "int" }, @@ -13145,7 +13574,7 @@ "comment": { "sameline": "// Convenience background (0) and foreground (1) draw lists. We use them to draw software mouser cursor when io.MouseDrawCursor is set and to draw most debug overlays." }, - "name": "DrawLists[2]", + "name": "BgFgDrawLists[2]", "size": 2, "type": "ImDrawList*" }, @@ -13154,6 +13583,9 @@ "type": "ImDrawData" }, { + "comment": { + "sameline": "// Temporary data while building final ImDrawData" + }, "name": "DrawDataBuilder", "type": "ImDrawDataBuilder" }, @@ -13581,10 +14013,6 @@ "name": "AutoFitFramesY", "type": "ImS8" }, - { - "name": "AutoFitChildAxises", - "type": "ImS8" - }, { "name": "AutoFitOnlyGrows", "type": "bool" @@ -14574,5 +15002,176 @@ "type": "int" } ] + }, + "templated_structs": { + "ImBitArray": [ + { + "name": "Storage[(BITCOUNT+31)>>5]", + "type": "ImU32" + } + ], + "ImChunkStream": [ + { + "name": "Buf", + "template_type": "char", + "type": "ImVector_char" + } + ], + "ImPool": [ + { + "comment": { + "sameline": "// Contiguous data" + }, + "name": "Buf", + "type": "ImVector" + }, + { + "comment": { + "sameline": "// ID->Index" + }, + "name": "Map", + "type": "ImGuiStorage" + }, + { + "comment": { + "sameline": "// Next free idx to use" + }, + "name": "FreeIdx", + "type": "ImPoolIdx" + }, + { + "comment": { + "sameline": "// Number of active/alive items (for display purpose)" + }, + "name": "AliveCount", + "type": "ImPoolIdx" + } + ], + "ImSpan": [ + { + "name": "Data", + "type": "T*" + }, + { + "name": "DataEnd", + "type": "T*" + } + ], + "ImSpanAllocator": [ + { + "name": "BasePtr", + "type": "char*" + }, + { + "name": "CurrOff", + "type": "int" + }, + { + "name": "CurrIdx", + "type": "int" + }, + { + "name": "Offsets[CHUNKS]", + "type": "int" + }, + { + "name": "Sizes[CHUNKS]", + "type": "int" + } + ], + "ImVector": [ + { + "name": "Size", + "type": "int" + }, + { + "name": "Capacity", + "type": "int" + }, + { + "name": "Data", + "type": "T*" + } + ] + }, + "templates_done": { + "ImBitArray": { + "ImGuiKey_NamedKey_COUNT, -ImGuiKey_NamedKey_BEGIN": true + }, + "ImChunkStream": { + "ImGuiTableSettings": true, + "ImGuiWindowSettings": true + }, + "ImPool": { + "ImGuiTabBar": true, + "ImGuiTable": true + }, + "ImSpan": { + "ImGuiTableCellData": true, + "ImGuiTableColumn": true, + "ImGuiTableColumnIdx": true + }, + "ImVector": { + "ImDrawChannel": true, + "ImDrawCmd": true, + "ImDrawIdx": true, + "ImDrawList*": true, + "ImDrawVert": true, + "ImFont*": true, + "ImFontAtlasCustomRect": true, + "ImFontConfig": true, + "ImFontGlyph": true, + "ImGuiColorMod": true, + "ImGuiContextHook": true, + "ImGuiDockNodeSettings": true, + "ImGuiDockRequest": true, + "ImGuiGroupData": true, + "ImGuiID": true, + "ImGuiInputEvent": true, + "ImGuiItemFlags": true, + "ImGuiKeyRoutingData": true, + "ImGuiListClipperData": true, + "ImGuiListClipperRange": true, + "ImGuiNavTreeNodeData": true, + "ImGuiOldColumnData": true, + "ImGuiOldColumns": true, + "ImGuiPlatformMonitor": true, + "ImGuiPopupData": true, + "ImGuiPtrOrIndex": true, + "ImGuiSettingsHandler": true, + "ImGuiShrinkWidthItem": true, + "ImGuiStackLevelInfo": true, + "ImGuiStoragePair": true, + "ImGuiStyleMod": true, + "ImGuiTabBar": true, + "ImGuiTabItem": true, + "ImGuiTable": true, + "ImGuiTableColumnSortSpecs": true, + "ImGuiTableInstanceData": true, + "ImGuiTableTempData": true, + "ImGuiTextRange": true, + "ImGuiViewport*": true, + "ImGuiViewportP*": true, + "ImGuiWindow*": true, + "ImGuiWindowStackData": true, + "ImTextureID": true, + "ImU32": true, + "ImVec2": true, + "ImVec4": true, + "ImWchar": true, + "char": true, + "const char*": true, + "float": true, + "int": true, + "unsigned char": true + } + }, + "typenames": { + "ImBitArray": "int BITCOUNT, int OFFSET = 0", + "ImChunkStream": "T", + "ImPool": "T", + "ImSpan": "T", + "ImSpanAllocator": "int CHUNKS", + "ImVector": "T" } } \ No newline at end of file diff --git a/HexaGen.Tests/cimgui/typedefs_dict.json b/HexaGen.Tests/cimgui/typedefs_dict.json index 7105e20..e318b32 100644 --- a/HexaGen.Tests/cimgui/typedefs_dict.json +++ b/HexaGen.Tests/cimgui/typedefs_dict.json @@ -43,6 +43,8 @@ "ImGuiDataTypeInfo": "struct ImGuiDataTypeInfo", "ImGuiDataTypeTempStorage": "struct ImGuiDataTypeTempStorage", "ImGuiDataVarInfo": "struct ImGuiDataVarInfo", + "ImGuiDebugAllocEntry": "struct ImGuiDebugAllocEntry", + "ImGuiDebugAllocInfo": "struct ImGuiDebugAllocInfo", "ImGuiDebugLogFlags": "int", "ImGuiDir": "int", "ImGuiDockContext": "struct ImGuiDockContext", @@ -57,6 +59,7 @@ "ImGuiGroupData": "struct ImGuiGroupData", "ImGuiHoveredFlags": "int", "ImGuiID": "unsigned int", + "ImGuiIDStackTool": "struct ImGuiIDStackTool", "ImGuiIO": "struct ImGuiIO", "ImGuiInputEvent": "struct ImGuiInputEvent", "ImGuiInputEventAppFocused": "struct ImGuiInputEventAppFocused", @@ -96,6 +99,7 @@ "ImGuiNavHighlightFlags": "int", "ImGuiNavItemData": "struct ImGuiNavItemData", "ImGuiNavMoveFlags": "int", + "ImGuiNavTreeNodeData": "struct ImGuiNavTreeNodeData", "ImGuiNextItemData": "struct ImGuiNextItemData", "ImGuiNextItemDataFlags": "int", "ImGuiNextWindowData": "struct ImGuiNextWindowData", @@ -113,6 +117,7 @@ "ImGuiPtrOrIndex": "struct ImGuiPtrOrIndex", "ImGuiScrollFlags": "int", "ImGuiSelectableFlags": "int", + "ImGuiSelectionUserData": "ImS64", "ImGuiSeparatorFlags": "int", "ImGuiSettingsHandler": "struct ImGuiSettingsHandler", "ImGuiShrinkWidthItem": "struct ImGuiShrinkWidthItem", @@ -122,7 +127,6 @@ "ImGuiSortDirection": "int", "ImGuiStackLevelInfo": "struct ImGuiStackLevelInfo", "ImGuiStackSizes": "struct ImGuiStackSizes", - "ImGuiStackTool": "struct ImGuiStackTool", "ImGuiStorage": "struct ImGuiStorage", "ImGuiStoragePair": "struct ImGuiStoragePair", "ImGuiStyle": "struct ImGuiStyle", @@ -155,6 +159,9 @@ "ImGuiTextRange": "struct ImGuiTextRange", "ImGuiTooltipFlags": "int", "ImGuiTreeNodeFlags": "int", + "ImGuiTypingSelectFlags": "int", + "ImGuiTypingSelectRequest": "struct ImGuiTypingSelectRequest", + "ImGuiTypingSelectState": "struct ImGuiTypingSelectState", "ImGuiViewport": "struct ImGuiViewport", "ImGuiViewportFlags": "int", "ImGuiViewportP": "struct ImGuiViewportP", diff --git a/HexaGen.Tests/cpp2c/imgui/.editorconfig b/HexaGen.Tests/cpp2c/imgui/.editorconfig new file mode 100644 index 0000000..5adfefa --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/.editorconfig @@ -0,0 +1,28 @@ +# See http://editorconfig.org to read about the EditorConfig format. +# - In theory automatically supported by VS2017+ and most common IDE or text editors. +# - In practice VS2019-VS2022 stills don't trim trailing whitespaces correctly :( +# - Suggest installing this to trim whitespaces: +# GitHub https://github.com/madskristensen/TrailingWhitespace +# VS2019 https://marketplace.visualstudio.com/items?itemName=MadsKristensen.TrailingWhitespaceVisualizer +# VS2022 https://marketplace.visualstudio.com/items?itemName=MadsKristensen.TrailingWhitespace64 +# (in spite of its name doesn't only visualize but also trims) +# - Alternative for older VS2010 to VS2015: https://marketplace.visualstudio.com/items?itemName=EditorConfigTeam.EditorConfig + +# top-most EditorConfig file +root = true + +# Default settings: +# Use 4 spaces as indentation +[*] +indent_style = space +indent_size = 4 +insert_final_newline = true +trim_trailing_whitespace = true + +[imstb_*] +indent_size = 3 +trim_trailing_whitespace = false + +[Makefile] +indent_style = tab +indent_size = 4 diff --git a/HexaGen.Tests/cpp2c/imgui/.gitattributes b/HexaGen.Tests/cpp2c/imgui/.gitattributes new file mode 100644 index 0000000..d48470e --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/.gitattributes @@ -0,0 +1,30 @@ +* text=auto + +*.c text +*.cpp text +*.h text +*.m text +*.mm text +*.md text +*.txt text +*.html text +*.bat text +*.frag text +*.vert text +*.mkb text +*.icf text + +*.sln text eol=crlf +*.vcxproj text eol=crlf +*.vcxproj.filters text eol=crlf +*.natvis text eol=crlf + +Makefile text eol=lf +*.sh text eol=lf +*.pbxproj text eol=lf +*.storyboard text eol=lf +*.plist text eol=lf + +*.png binary +*.ttf binary +*.lib binary diff --git a/HexaGen.Tests/cpp2c/imgui/.github/FUNDING.yml b/HexaGen.Tests/cpp2c/imgui/.github/FUNDING.yml new file mode 100644 index 0000000..2aa08b4 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: ['https://github.com/ocornut/imgui/wiki/Sponsors'] diff --git a/HexaGen.Tests/cpp2c/imgui/.github/issue_template.md b/HexaGen.Tests/cpp2c/imgui/.github/issue_template.md new file mode 100644 index 0000000..0172e09 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/.github/issue_template.md @@ -0,0 +1,46 @@ +(Click "Preview" above ^ to turn URL into clickable links) + +1. FOR FIRST-TIME USERS PROBLEMS COMPILING/LINKING/RUNNING or LOADING FONTS, please use [GitHub Discussions](https://github.com/ocornut/imgui/discussions). EVERYTHING ELSE CAN BE POSTED HERE! + +2. PLEASE CAREFULLY READ: [FAQ](https://github.com/ocornut/imgui/blob/master/docs/FAQ.md) + +3. PLEASE CAREFULLY READ: [Contributing Guidelines](https://github.com/ocornut/imgui/blob/master/docs/CONTRIBUTING.md) + +4. PLEASE MAKE SURE that you have: read the FAQ; explored the contents of `ShowDemoWindow()` including the Examples menu; searched among Issues; used your IDE to search for keywords in all sources and text files; and read the links above. + +5. Be mindful that messages are being sent to the e-mail box of "Watching" users. Try to proof-read your messages before sending them. Edits are not seen by those users. + +6. Delete points 1-6 and PLEASE FILL THE TEMPLATE BELOW before submitting your issue. + +Thank you! + +---- + +_(you may also go to Demo>About Window, and click "Config/Build Information" to obtain a bunch of detailed information that you can paste here)_ + +**Version/Branch of Dear ImGui:** + +Version: XXX +Branch: XXX _(master/viewport/docking/etc.)_ + +**Back-end/Renderer/Compiler/OS** + +Back-ends: imgui_impl_XXX.cpp + imgui_impl_XXX.cpp _(or specify if using a custom engine/back-end)_ +Compiler: XXX _(if the question is related to building or platform specific features)_ +Operating System: XXX + +**My Issue/Question:** + +XXX _(please provide as much context as possible)_ + +**Screenshots/Video** + +XXX _(you can drag files here)_ + +**Standalone, minimal, complete and verifiable example:** _(see https://github.com/ocornut/imgui/issues/2261)_ +``` +// Here's some code anyone can copy and paste to reproduce your issue +ImGui::Begin("Example Bug"); +MoreCodeToExplainMyIssue(); +ImGui::End(); +``` diff --git a/HexaGen.Tests/cpp2c/imgui/.github/pull_request_template.md b/HexaGen.Tests/cpp2c/imgui/.github/pull_request_template.md new file mode 100644 index 0000000..638545b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/.github/pull_request_template.md @@ -0,0 +1,6 @@ +(Click "Preview" to turn any http URL into a clickable link) + +1. PLEASE CAREFULLY READ: [Contributing Guidelines](https://github.com/ocornut/imgui/blob/master/docs/CONTRIBUTING.md) + +2. Clear this template before submitting your PR. + diff --git a/HexaGen.Tests/cpp2c/imgui/.github/workflows/build.yml b/HexaGen.Tests/cpp2c/imgui/.github/workflows/build.yml new file mode 100644 index 0000000..45688c4 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/.github/workflows/build.yml @@ -0,0 +1,507 @@ +name: build + +on: + push: + pull_request: + workflow_run: + # Use a workflow as a trigger of scheduled builds. Forked repositories can disable scheduled builds by disabling + # "scheduled" workflow, while maintaining ability to perform local CI builds. + workflows: + - scheduled + branches: + - master + - docking + types: + - requested + +jobs: + Windows: + runs-on: windows-2019 + env: + VS_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\ + MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\ + steps: + - uses: actions/checkout@v3 + + - name: Install Dependencies + shell: powershell + run: | + Invoke-WebRequest -Uri "https://www.libsdl.org/release/SDL2-devel-2.26.3-VC.zip" -OutFile "SDL2-devel-2.26.3-VC.zip" + Expand-Archive -Path SDL2-devel-2.26.3-VC.zip + echo "SDL2_DIR=$(pwd)\SDL2-devel-2.26.3-VC\SDL2-2.26.3\" >>${env:GITHUB_ENV} + + Invoke-WebRequest -Uri "https://github.com/ocornut/imgui/files/3789205/vulkan-sdk-1.1.121.2.zip" -OutFile vulkan-sdk-1.1.121.2.zip + Expand-Archive -Path vulkan-sdk-1.1.121.2.zip + echo "VULKAN_SDK=$(pwd)\vulkan-sdk-1.1.121.2\" >>${env:GITHUB_ENV} + + - name: Fix Projects + shell: powershell + run: | + # CI workers do not supporter older Visual Studio versions. Fix projects to target newer available version. + gci -recurse -filter "*.vcxproj" | ForEach-Object { + (Get-Content $_.FullName) -Replace "v\d{3}","v142" | Set-Content -Path $_.FullName + (Get-Content $_.FullName) -Replace "[\d\.]+","10.0.18362.0" | Set-Content -Path $_.FullName + } + + # Not using matrix here because it would inflate job count too much. Check out and setup is done for every job and that makes build times way too long. + - name: Build example_null (extra warnings, mingw 64-bit) + run: mingw32-make -C examples/example_null WITH_EXTRA_WARNINGS=1 + + - name: Build example_null (mingw 64-bit, as DLL) + shell: bash + run: | + echo '#ifdef _EXPORT' > example_single_file.cpp + echo '# define IMGUI_API __declspec(dllexport)' >> example_single_file.cpp + echo '#else' >> example_single_file.cpp + echo '# define IMGUI_API __declspec(dllimport)' >> example_single_file.cpp + echo '#endif' >> example_single_file.cpp + echo '#define IMGUI_IMPLEMENTATION' >> example_single_file.cpp + echo '#include "misc/single_file/imgui_single_file.h"' >> example_single_file.cpp + g++ -I. -Wall -Wformat -D_EXPORT -shared -o libimgui.dll -Wl,--out-implib,libimgui.a example_single_file.cpp -limm32 + g++ -I. -Wall -Wformat -o example_null.exe examples/example_null/main.cpp -L. -limgui + rm -f example_null.exe libimgui.* example_single_file.* + + - name: Build example_null (extra warnings, msvc 64-bit) + shell: cmd + run: | + cd examples\example_null + call "%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat" + .\build_win32.bat /W4 + + - name: Build example_null (single file build) + shell: bash + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -Wall -Wformat -o example_single_file.exe example_single_file.cpp -limm32 + + - name: Build example_null (with IMGUI_DISABLE_WIN32_FUNCTIONS) + shell: bash + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_DISABLE_WIN32_FUNCTIONS + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -Wall -Wformat -o example_single_file.exe example_single_file.cpp -limm32 + + - name: Build example_null (as DLL) + shell: cmd + run: | + call "%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat" + + echo #ifdef _EXPORT > example_single_file.cpp + echo # define IMGUI_API __declspec(dllexport) >> example_single_file.cpp + echo #else >> example_single_file.cpp + echo # define IMGUI_API __declspec(dllimport) >> example_single_file.cpp + echo #endif >> example_single_file.cpp + echo #define IMGUI_IMPLEMENTATION >> example_single_file.cpp + echo #include "misc/single_file/imgui_single_file.h" >> example_single_file.cpp + + cl.exe /D_USRDLL /D_WINDLL /D_EXPORT /I. example_single_file.cpp /LD /FeImGui.dll /link + cl.exe /I. ImGui.lib /Feexample_null.exe examples/example_null/main.cpp + + - name: Build Win32 example_glfw_opengl2 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj /p:Platform=Win32 /p:Configuration=Release' + + - name: Build Win32 example_glfw_opengl3 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj /p:Platform=Win32 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build Win32 example_glfw_vulkan + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj /p:Platform=Win32 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build Win32 example_sdl2_vulkan + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_vulkan/example_sdl2_vulkan.vcxproj /p:Platform=Win32 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build Win32 example_sdl2_opengl2 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_opengl2/example_sdl2_opengl2.vcxproj /p:Platform=Win32 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build Win32 example_sdl2_opengl3 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_opengl3/example_sdl2_opengl3.vcxproj /p:Platform=Win32 /p:Configuration=Release' + + - name: Build Win32 example_sdl2_directx11 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj /p:Platform=Win32 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build Win32 example_win32_directx9 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx9/example_win32_directx9.vcxproj /p:Platform=Win32 /p:Configuration=Release' + + - name: Build Win32 example_win32_directx10 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx10/example_win32_directx10.vcxproj /p:Platform=Win32 /p:Configuration=Release' + + - name: Build Win32 example_win32_directx11 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx11/example_win32_directx11.vcxproj /p:Platform=Win32 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build x64 example_glfw_opengl2 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj /p:Platform=x64 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build x64 example_glfw_opengl3 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj /p:Platform=x64 /p:Configuration=Release' + + - name: Build x64 example_glfw_vulkan + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj /p:Platform=x64 /p:Configuration=Release' + + - name: Build x64 example_sdl2_vulkan + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_vulkan/example_sdl2_vulkan.vcxproj /p:Platform=x64 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build x64 example_sdl2_opengl2 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_opengl2/example_sdl2_opengl2.vcxproj /p:Platform=x64 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build x64 example_sdl2_opengl3 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_opengl3/example_sdl2_opengl3.vcxproj /p:Platform=x64 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build x64 example_sdl2_directx11 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj /p:Platform=x64 /p:Configuration=Release' + + - name: Build x64 example_win32_directx9 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx9/example_win32_directx9.vcxproj /p:Platform=x64 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build x64 example_win32_directx10 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx10/example_win32_directx10.vcxproj /p:Platform=x64 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build x64 example_win32_directx11 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx11/example_win32_directx11.vcxproj /p:Platform=x64 /p:Configuration=Release' + if: github.event_name == 'workflow_run' + + - name: Build x64 example_win32_directx12 + shell: cmd + run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx12/example_win32_directx12.vcxproj /p:Platform=x64 /p:Configuration=Release' + + Linux: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + + - name: Install Dependencies + run: | + sudo apt-get update + sudo apt-get install -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib libfreetype6-dev libvulkan-dev + + - name: Build example_null (extra warnings, gcc 32-bit) + run: | + make -C examples/example_null clean + CXXFLAGS="$CXXFLAGS -m32 -Werror" make -C examples/example_null WITH_EXTRA_WARNINGS=1 + + - name: Build example_null (extra warnings, gcc 64-bit) + run: | + make -C examples/example_null clean + CXXFLAGS="$CXXFLAGS -m64 -Werror" make -C examples/example_null WITH_EXTRA_WARNINGS=1 + + - name: Build example_null (extra warnings, clang 32-bit) + run: | + make -C examples/example_null clean + CXXFLAGS="$CXXFLAGS -m32 -Werror" CXX=clang++ make -C examples/example_null WITH_EXTRA_WARNINGS=1 + + - name: Build example_null (extra warnings, clang 64-bit) + run: | + make -C examples/example_null clean + CXXFLAGS="$CXXFLAGS -m64 -Werror" CXX=clang++ make -C examples/example_null WITH_EXTRA_WARNINGS=1 + + - name: Build example_null (extra warnings, empty IM_ASSERT) + run: | + cat > example_single_file.cpp <<'EOF' + + #define IM_ASSERT(x) + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -std=c++11 -Wall -Wformat -Wextra -Werror -Wno-zero-as-null-pointer-constant -Wno-double-promotion -Wno-variadic-macros -Wno-empty-body -o example_single_file example_single_file.cpp + + - name: Build example_null (freetype) + run: | + make -C examples/example_null clean + make -C examples/example_null WITH_FREETYPE=1 + + - name: Build example_null (single file build) + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp + + - name: Build example_null (with ImWchar32) + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_USE_WCHAR32 + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp + + - name: Build example_null (with large ImDrawIdx + pointer ImTextureID) + run: | + cat > example_single_file.cpp <<'EOF' + + #define ImTextureID void* + #define ImDrawIdx unsigned int + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp + + - name: Build example_null (with IMGUI_DISABLE_OBSOLETE_FUNCTIONS) + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_DISABLE_OBSOLETE_FUNCTIONS + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp + + - name: Build example_null (with IMGUI_DISABLE_OBSOLETE_KEYIO) + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_DISABLE_OBSOLETE_KEYIO + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp + + - name: Build example_null (with IMGUI_DISABLE_DEMO_WINDOWS and IMGUI_DISABLE_DEBUG_TOOLS) + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_DISABLE_DEMO_WINDOWS + #define IMGUI_DISABLE_DEBUG_TOOLS + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp + + - name: Build example_null (with IMGUI_DISABLE_FILE_FUNCTIONS) + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_DISABLE_FILE_FUNCTIONS + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp + + - name: Build example_null (with IMGUI_USE_BGRA_PACKED_COLOR) + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_USE_BGRA_PACKED_COLOR + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp + + - name: Build example_null (with IM_VEC2_CLASS_EXTRA and IM_VEC4_CLASS_EXTRA) + run: | + cat > example_single_file.cpp <<'EOF' + + struct MyVec2 { float x; float y; MyVec2(float x, float y) : x(x), y(y) { } }; + struct MyVec4 { float x; float y; float z; float w; + MyVec4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) { } }; + #define IM_VEC2_CLASS_EXTRA \ + ImVec2(const MyVec2& f) { x = f.x; y = f.y; } \ + operator MyVec2() const { return MyVec2(x, y); } + #define IM_VEC4_CLASS_EXTRA \ + ImVec4(const MyVec4& f) { x = f.x; y = f.y; z = f.z; w = f.w; } \ + operator MyVec4() const { return MyVec4(x, y, z, w); } + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + g++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp + + - name: Build example_null (without c++ runtime, Clang) + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_IMPLEMENTATION + #define IMGUI_DISABLE_DEMO_WINDOWS + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + clang++ -I. -std=c++11 -Wall -Wformat -nodefaultlibs -fno-rtti -fno-exceptions -fno-threadsafe-statics -lc -lm -o example_single_file example_single_file.cpp + + - name: Build example_glfw_opengl2 + run: make -C examples/example_glfw_opengl2 + + - name: Build example_glfw_opengl3 + run: make -C examples/example_glfw_opengl3 + if: github.event_name == 'workflow_run' + + - name: Build example_sdl2_opengl2 + run: make -C examples/example_sdl2_opengl2 + if: github.event_name == 'workflow_run' + + - name: Build example_sdl2_opengl3 + run: make -C examples/example_sdl2_opengl3 + + - name: Build with IMGUI_IMPL_VULKAN_NO_PROTOTYPES + run: g++ -c -I. -std=c++11 -DIMGUI_IMPL_VULKAN_NO_PROTOTYPES=1 backends/imgui_impl_vulkan.cpp + + MacOS: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + + - name: Install Dependencies + run: | + brew install glfw3 sdl2 + + - name: Build example_null (extra warnings, clang 64-bit) + run: make -C examples/example_null WITH_EXTRA_WARNINGS=1 + + - name: Build example_null (single file build) + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + clang++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp + + - name: Build example_null (without c++ runtime) + run: | + cat > example_single_file.cpp <<'EOF' + + #define IMGUI_IMPLEMENTATION + #include "misc/single_file/imgui_single_file.h" + #include "examples/example_null/main.cpp" + + EOF + clang++ -I. -std=c++11 -Wall -Wformat -nodefaultlibs -fno-rtti -fno-exceptions -fno-threadsafe-statics -lc -lm -o example_single_file example_single_file.cpp + + - name: Build example_glfw_opengl2 + run: make -C examples/example_glfw_opengl2 + + - name: Build example_glfw_opengl3 + run: make -C examples/example_glfw_opengl3 + if: github.event_name == 'workflow_run' + + - name: Build example_glfw_metal + run: make -C examples/example_glfw_metal + + - name: Build example_sdl2_metal + run: make -C examples/example_sdl2_metal + + - name: Build example_sdl2_opengl2 + run: make -C examples/example_sdl2_opengl2 + if: github.event_name == 'workflow_run' + + - name: Build example_sdl2_opengl3 + run: make -C examples/example_sdl2_opengl3 + + - name: Build example_apple_metal + run: xcodebuild -project examples/example_apple_metal/example_apple_metal.xcodeproj -target example_apple_metal_macos + + - name: Build example_apple_opengl2 + run: xcodebuild -project examples/example_apple_opengl2/example_apple_opengl2.xcodeproj -target example_osx_opengl2 + + iOS: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + + - name: Build example_apple_metal + run: | + # Code signing is required, but we disable it because it is irrelevant for CI builds. + xcodebuild -project examples/example_apple_metal/example_apple_metal.xcodeproj -target example_apple_metal_ios CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO + + Emscripten: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + + - name: Install Dependencies + run: | + wget -q https://github.com/emscripten-core/emsdk/archive/master.tar.gz + tar -xvf master.tar.gz + emsdk-master/emsdk update + emsdk-master/emsdk install latest + emsdk-master/emsdk activate latest + + - name: Build example_sdl2_opengl3 with Emscripten + run: | + pushd emsdk-master + source ./emsdk_env.sh + popd + make -C examples/example_sdl2_opengl3 -f Makefile.emscripten + + - name: Build example_emscripten_wgpu + run: | + pushd emsdk-master + source ./emsdk_env.sh + popd + make -C examples/example_emscripten_wgpu + + Android: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + + - name: Build example_android_opengl3 + run: | + cd examples/example_android_opengl3/android + gradle assembleDebug --stacktrace diff --git a/HexaGen.Tests/cpp2c/imgui/.github/workflows/scheduled.yml b/HexaGen.Tests/cpp2c/imgui/.github/workflows/scheduled.yml new file mode 100644 index 0000000..2a08578 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/.github/workflows/scheduled.yml @@ -0,0 +1,15 @@ +# +# This is a dummy workflow used to trigger scheduled builds. Forked repositories most likely should disable this +# workflow to avoid daily builds of inactive repositories. +# +name: scheduled + +on: + schedule: + - cron: '0 9 * * *' + +jobs: + scheduled: + runs-on: ubuntu-latest + steps: + - run: exit 0 diff --git a/HexaGen.Tests/cpp2c/imgui/.github/workflows/static-analysis.yml b/HexaGen.Tests/cpp2c/imgui/.github/workflows/static-analysis.yml new file mode 100644 index 0000000..caa9b3a --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/.github/workflows/static-analysis.yml @@ -0,0 +1,46 @@ +name: static-analysis + +on: + workflow_run: + # Perform static analysis together with build workflow. Build triggers of "build" workflow do not need to be repeated here. + workflows: + - build + types: + - requested + +jobs: + PVS-Studio: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + + - name: Install Dependencies + env: + # The Secret variable setup in GitHub must be in format: "name_or_email key", on a single line + PVS_STUDIO_LICENSE: ${{ secrets.PVS_STUDIO_LICENSE }} + run: | + if [[ "$PVS_STUDIO_LICENSE" != "" ]]; + then + wget -q https://files.viva64.com/etc/pubkey.txt + sudo apt-key add pubkey.txt + sudo wget -O /etc/apt/sources.list.d/viva64.list https://files.viva64.com/etc/viva64.list + sudo apt-get update + sudo apt-get install -y pvs-studio + pvs-studio-analyzer credentials -o pvs-studio.lic $PVS_STUDIO_LICENSE + fi + + - name: PVS-Studio static analysis + run: | + if [[ ! -f pvs-studio.lic ]]; + then + echo "PVS Studio license is missing. No analysis will be performed." + echo "If you have a PVS Studio license please create a project secret named PVS_STUDIO_LICENSE with your license." + echo "You may use a free license. More information at https://www.viva64.com/en/b/0457/" + exit 0 + fi + cd examples/example_null + pvs-studio-analyzer trace -- make WITH_EXTRA_WARNINGS=1 + pvs-studio-analyzer analyze -e ../../imstb_rectpack.h -e ../../imstb_textedit.h -e ../../imstb_truetype.h -l ../../pvs-studio.lic -o pvs-studio.log + plog-converter -a 'GA:1,2;OP:1' -d V1071 -t errorfile -w pvs-studio.log diff --git a/HexaGen.Tests/cpp2c/imgui/.gitignore b/HexaGen.Tests/cpp2c/imgui/.gitignore new file mode 100644 index 0000000..211d21d --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/.gitignore @@ -0,0 +1,59 @@ +## OSX artifacts +.DS_Store + +## Dear ImGui artifacts +imgui.ini + +## General build artifacts +*.o +*.obj +*.exe +examples/*/Debug/* +examples/*/Release/* +examples/*/x64/* + +## Visual Studio artifacts +.vs +ipch +*.opensdf +*.log +*.pdb +*.ilk +*.user +*.sdf +*.suo +*.VC.db +*.VC.VC.opendb + +## Getting files created in JSON/Schemas/Catalog/ from a VS2022 update +JSON/ + +## Commonly used CMake directories +build*/ + +## Xcode artifacts +project.xcworkspace +xcuserdata + +## Emscripten artifacts +examples/*.o.tmp +examples/*.out.js +examples/*.out.wasm +examples/example_glfw_opengl3/web/* +examples/example_sdl2_opengl3/web/* +examples/example_emscripten_wgpu/web/* + +## JetBrains IDE artifacts +.idea +cmake-build-* + +## Unix executables from our example Makefiles +examples/example_glfw_metal/example_glfw_metal +examples/example_glfw_opengl2/example_glfw_opengl2 +examples/example_glfw_opengl3/example_glfw_opengl3 +examples/example_glut_opengl2/example_glut_opengl2 +examples/example_null/example_null +examples/example_sdl2_metal/example_sdl2_metal +examples/example_sdl2_opengl2/example_sdl2_opengl2 +examples/example_sdl2_opengl3/example_sdl2_opengl3 +examples/example_sdl2_sdlrenderer/example_sdl2_sdlrenderer diff --git a/HexaGen.Tests/cpp2c/imgui/LICENSE.txt b/HexaGen.Tests/cpp2c/imgui/LICENSE.txt new file mode 100644 index 0000000..fb715bd --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-2023 Omar Cornut + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_allegro5.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_allegro5.cpp new file mode 100644 index 0000000..3d98636 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_allegro5.cpp @@ -0,0 +1,614 @@ +// dear imgui: Renderer + Platform Backend for Allegro 5 +// (Info: Allegro 5 is a cross-platform general purpose library for handling windows, inputs, graphics, etc.) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'ALLEGRO_BITMAP*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy ALLEGRO_KEY_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Clipboard support (from Allegro 5.1.12) +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// Missing features: +// [ ] Renderer: Multi-viewport support (multiple windows).. +// [ ] Renderer: The renderer is suboptimal as we need to convert vertices manually. +// [ ] Platform: Missing gamepad support. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2022-11-30: Renderer: Restoring using al_draw_indexed_prim() when Allegro version is >= 5.2.5. +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2022-09-26: Inputs: Renamed ImGuiKey_ModXXX introduced in 1.87 to ImGuiMod_XXX (old names still supported). +// 2022-01-26: Inputs: replaced short-lived io.AddKeyModsEvent() (added two weeks ago) with io.AddKeyEvent() using ImGuiKey_ModXXX flags. Sorry for the confusion. +// 2022-01-17: Inputs: calling new io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() API (1.87+). +// 2022-01-17: Inputs: always calling io.AddKeyModsEvent() next and before key event (not in NewFrame) to fix input queue with very low framerates. +// 2022-01-10: Inputs: calling new io.AddKeyEvent(), io.AddKeyModsEvent() + io.SetKeyEventNativeData() API (1.87+). Support for full ImGuiKey range. +// 2021-12-08: Renderer: Fixed mishandling of the the ImDrawCmd::IdxOffset field! This is an old bug but it never had an effect until some internal rendering changes in 1.86. +// 2021-08-17: Calling io.AddFocusEvent() on ALLEGRO_EVENT_DISPLAY_SWITCH_OUT/ALLEGRO_EVENT_DISPLAY_SWITCH_IN events. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-05-19: Renderer: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-02-18: Change blending equation to preserve alpha in output buffer. +// 2020-08-10: Inputs: Fixed horizontal mouse wheel direction. +// 2019-12-05: Inputs: Added support for ImGuiMouseCursor_NotAllowed mouse cursor. +// 2019-07-21: Inputs: Added mapping for ImGuiKey_KeyPadEnter. +// 2019-05-11: Inputs: Don't filter character value from ALLEGRO_EVENT_KEY_CHAR before calling AddInputCharacter(). +// 2019-04-30: Renderer: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2018-11-30: Platform: Added touchscreen support. +// 2018-11-30: Misc: Setting up io.BackendPlatformName/io.BackendRendererName so they can be displayed in the About Window. +// 2018-06-13: Platform: Added clipboard support (from Allegro 5.1.12). +// 2018-06-13: Renderer: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-06-13: Renderer: Stopped using al_draw_indexed_prim() as it is buggy in Allegro's DX9 backend. +// 2018-06-13: Renderer: Backup/restore transform and clipping rectangle. +// 2018-06-11: Misc: Setup io.BackendFlags ImGuiBackendFlags_HasMouseCursors flag + honor ImGuiConfigFlags_NoMouseCursorChange flag. +// 2018-04-18: Misc: Renamed file from imgui_impl_a5.cpp to imgui_impl_allegro5.cpp. +// 2018-04-18: Misc: Added support for 32-bit vertex indices to avoid conversion at runtime. Added imconfig_allegro5.h to enforce 32-bit indices when included from imgui.h. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplAllegro5_RenderDrawData() in the .h file so you can call it yourself. +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. +// 2018-02-06: Inputs: Added mapping for ImGuiKey_Space. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_allegro5.h" +#include // uint64_t +#include // memcpy + +// Allegro +#include +#include +#ifdef _WIN32 +#include +#endif +#define ALLEGRO_HAS_CLIPBOARD (ALLEGRO_VERSION_INT >= ((5 << 24) | (1 << 16) | (12 << 8))) // Clipboard only supported from Allegro 5.1.12 +#define ALLEGRO_HAS_DRAW_INDEXED_PRIM (ALLEGRO_VERSION_INT >= ((5 << 24) | (2 << 16) | ( 5 << 8))) // DX9 implementation of al_draw_indexed_prim() got fixed in Allegro 5.2.5 + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#endif + +struct ImDrawVertAllegro +{ + ImVec2 pos; + ImVec2 uv; + ALLEGRO_COLOR col; +}; + +// FIXME-OPT: Unfortunately Allegro doesn't support 32-bit packed colors so we have to convert them to 4 float as well.. +// FIXME-OPT: Consider inlining al_map_rgba()? +// see https://github.com/liballeg/allegro5/blob/master/src/pixels.c#L554 +// and https://github.com/liballeg/allegro5/blob/master/include/allegro5/internal/aintern_pixels.h +#define DRAW_VERT_IMGUI_TO_ALLEGRO(DST, SRC) { (DST)->pos = (SRC)->pos; (DST)->uv = (SRC)->uv; unsigned char* c = (unsigned char*)&(SRC)->col; (DST)->col = al_map_rgba(c[0], c[1], c[2], c[3]); } + +// Allegro Data +struct ImGui_ImplAllegro5_Data +{ + ALLEGRO_DISPLAY* Display; + ALLEGRO_BITMAP* Texture; + double Time; + ALLEGRO_MOUSE_CURSOR* MouseCursorInvisible; + ALLEGRO_VERTEX_DECL* VertexDecl; + char* ClipboardTextData; + + ImVector BufVertices; + ImVector BufIndices; + + ImGui_ImplAllegro5_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendPlatformUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +// FIXME: multi-context support is not well tested and probably dysfunctional in this backend. +static ImGui_ImplAllegro5_Data* ImGui_ImplAllegro5_GetBackendData() { return ImGui::GetCurrentContext() ? (ImGui_ImplAllegro5_Data*)ImGui::GetIO().BackendPlatformUserData : nullptr; } + +static void ImGui_ImplAllegro5_SetupRenderState(ImDrawData* draw_data) +{ + // Setup blending + al_set_separate_blender(ALLEGRO_ADD, ALLEGRO_ALPHA, ALLEGRO_INVERSE_ALPHA, ALLEGRO_ADD, ALLEGRO_ONE, ALLEGRO_INVERSE_ALPHA); + + // Setup orthographic projection matrix + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). + { + float L = draw_data->DisplayPos.x; + float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; + float T = draw_data->DisplayPos.y; + float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; + ALLEGRO_TRANSFORM transform; + al_identity_transform(&transform); + al_use_transform(&transform); + al_orthographic_transform(&transform, L, T, 1.0f, R, B, -1.0f); + al_use_projection_transform(&transform); + } +} + +// Render function. +void ImGui_ImplAllegro5_RenderDrawData(ImDrawData* draw_data) +{ + // Avoid rendering when minimized + if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) + return; + + // Backup Allegro state that will be modified + ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); + ALLEGRO_TRANSFORM last_transform = *al_get_current_transform(); + ALLEGRO_TRANSFORM last_projection_transform = *al_get_current_projection_transform(); + int last_clip_x, last_clip_y, last_clip_w, last_clip_h; + al_get_clipping_rectangle(&last_clip_x, &last_clip_y, &last_clip_w, &last_clip_h); + int last_blender_op, last_blender_src, last_blender_dst; + al_get_blender(&last_blender_op, &last_blender_src, &last_blender_dst); + + // Setup desired render state + ImGui_ImplAllegro5_SetupRenderState(draw_data); + + // Render command lists + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + + ImVector& vertices = bd->BufVertices; +#if ALLEGRO_HAS_DRAW_INDEXED_PRIM + vertices.resize(cmd_list->VtxBuffer.Size); + for (int i = 0; i < cmd_list->VtxBuffer.Size; i++) + { + const ImDrawVert* src_v = &cmd_list->VtxBuffer[i]; + ImDrawVertAllegro* dst_v = &vertices[i]; + DRAW_VERT_IMGUI_TO_ALLEGRO(dst_v, src_v); + } + const int* indices = nullptr; + if (sizeof(ImDrawIdx) == 2) + { + // FIXME-OPT: Allegro doesn't support 16-bit indices. + // You can '#define ImDrawIdx int' in imconfig.h to request Dear ImGui to output 32-bit indices. + // Otherwise, we convert them from 16-bit to 32-bit at runtime here, which works perfectly but is a little wasteful. + bd->BufIndices.resize(cmd_list->IdxBuffer.Size); + for (int i = 0; i < cmd_list->IdxBuffer.Size; ++i) + bd->BufIndices[i] = (int)cmd_list->IdxBuffer.Data[i]; + indices = bd->BufIndices.Data; + } + else if (sizeof(ImDrawIdx) == 4) + { + indices = (const int*)cmd_list->IdxBuffer.Data; + } +#else + // Allegro's implementation of al_draw_indexed_prim() for DX9 was broken until 5.2.5. Unindex buffers ourselves while converting vertex format. + vertices.resize(cmd_list->IdxBuffer.Size); + for (int i = 0; i < cmd_list->IdxBuffer.Size; i++) + { + const ImDrawVert* src_v = &cmd_list->VtxBuffer[cmd_list->IdxBuffer[i]]; + ImDrawVertAllegro* dst_v = &vertices[i]; + DRAW_VERT_IMGUI_TO_ALLEGRO(dst_v, src_v); + } +#endif + + // Render command lists + ImVec2 clip_off = draw_data->DisplayPos; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplAllegro5_SetupRenderState(draw_data); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply scissor/clipping rectangle, Draw + ALLEGRO_BITMAP* texture = (ALLEGRO_BITMAP*)pcmd->GetTexID(); + al_set_clipping_rectangle(clip_min.x, clip_min.y, clip_max.x - clip_min.x, clip_max.y - clip_min.y); +#if ALLEGRO_HAS_DRAW_INDEXED_PRIM + al_draw_indexed_prim(&vertices[0], bd->VertexDecl, texture, &indices[pcmd->IdxOffset], pcmd->ElemCount, ALLEGRO_PRIM_TRIANGLE_LIST); +#else + al_draw_prim(&vertices[0], bd->VertexDecl, texture, pcmd->IdxOffset, pcmd->IdxOffset + pcmd->ElemCount, ALLEGRO_PRIM_TRIANGLE_LIST); +#endif + } + } + } + + // Restore modified Allegro state + al_set_blender(last_blender_op, last_blender_src, last_blender_dst); + al_set_clipping_rectangle(last_clip_x, last_clip_y, last_clip_w, last_clip_h); + al_use_transform(&last_transform); + al_use_projection_transform(&last_projection_transform); +} + +bool ImGui_ImplAllegro5_CreateDeviceObjects() +{ + // Build texture atlas + ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + + // Create texture + // (Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling) + int flags = al_get_new_bitmap_flags(); + int fmt = al_get_new_bitmap_format(); + al_set_new_bitmap_flags(ALLEGRO_MEMORY_BITMAP | ALLEGRO_MIN_LINEAR | ALLEGRO_MAG_LINEAR); + al_set_new_bitmap_format(ALLEGRO_PIXEL_FORMAT_ABGR_8888_LE); + ALLEGRO_BITMAP* img = al_create_bitmap(width, height); + al_set_new_bitmap_flags(flags); + al_set_new_bitmap_format(fmt); + if (!img) + return false; + + ALLEGRO_LOCKED_REGION* locked_img = al_lock_bitmap(img, al_get_bitmap_format(img), ALLEGRO_LOCK_WRITEONLY); + if (!locked_img) + { + al_destroy_bitmap(img); + return false; + } + memcpy(locked_img->data, pixels, sizeof(int) * width * height); + al_unlock_bitmap(img); + + // Convert software texture to hardware texture. + ALLEGRO_BITMAP* cloned_img = al_clone_bitmap(img); + al_destroy_bitmap(img); + if (!cloned_img) + return false; + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)(intptr_t)cloned_img); + bd->Texture = cloned_img; + + // Create an invisible mouse cursor + // Because al_hide_mouse_cursor() seems to mess up with the actual inputs.. + ALLEGRO_BITMAP* mouse_cursor = al_create_bitmap(8, 8); + bd->MouseCursorInvisible = al_create_mouse_cursor(mouse_cursor, 0, 0); + al_destroy_bitmap(mouse_cursor); + + return true; +} + +void ImGui_ImplAllegro5_InvalidateDeviceObjects() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); + if (bd->Texture) + { + io.Fonts->SetTexID(0); + al_destroy_bitmap(bd->Texture); + bd->Texture = nullptr; + } + if (bd->MouseCursorInvisible) + { + al_destroy_mouse_cursor(bd->MouseCursorInvisible); + bd->MouseCursorInvisible = nullptr; + } +} + +#if ALLEGRO_HAS_CLIPBOARD +static const char* ImGui_ImplAllegro5_GetClipboardText(void*) +{ + ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); + if (bd->ClipboardTextData) + al_free(bd->ClipboardTextData); + bd->ClipboardTextData = al_get_clipboard_text(bd->Display); + return bd->ClipboardTextData; +} + +static void ImGui_ImplAllegro5_SetClipboardText(void*, const char* text) +{ + ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); + al_set_clipboard_text(bd->Display, text); +} +#endif + +static ImGuiKey ImGui_ImplAllegro5_KeyCodeToImGuiKey(int key_code) +{ + switch (key_code) + { + case ALLEGRO_KEY_TAB: return ImGuiKey_Tab; + case ALLEGRO_KEY_LEFT: return ImGuiKey_LeftArrow; + case ALLEGRO_KEY_RIGHT: return ImGuiKey_RightArrow; + case ALLEGRO_KEY_UP: return ImGuiKey_UpArrow; + case ALLEGRO_KEY_DOWN: return ImGuiKey_DownArrow; + case ALLEGRO_KEY_PGUP: return ImGuiKey_PageUp; + case ALLEGRO_KEY_PGDN: return ImGuiKey_PageDown; + case ALLEGRO_KEY_HOME: return ImGuiKey_Home; + case ALLEGRO_KEY_END: return ImGuiKey_End; + case ALLEGRO_KEY_INSERT: return ImGuiKey_Insert; + case ALLEGRO_KEY_DELETE: return ImGuiKey_Delete; + case ALLEGRO_KEY_BACKSPACE: return ImGuiKey_Backspace; + case ALLEGRO_KEY_SPACE: return ImGuiKey_Space; + case ALLEGRO_KEY_ENTER: return ImGuiKey_Enter; + case ALLEGRO_KEY_ESCAPE: return ImGuiKey_Escape; + case ALLEGRO_KEY_QUOTE: return ImGuiKey_Apostrophe; + case ALLEGRO_KEY_COMMA: return ImGuiKey_Comma; + case ALLEGRO_KEY_MINUS: return ImGuiKey_Minus; + case ALLEGRO_KEY_FULLSTOP: return ImGuiKey_Period; + case ALLEGRO_KEY_SLASH: return ImGuiKey_Slash; + case ALLEGRO_KEY_SEMICOLON: return ImGuiKey_Semicolon; + case ALLEGRO_KEY_EQUALS: return ImGuiKey_Equal; + case ALLEGRO_KEY_OPENBRACE: return ImGuiKey_LeftBracket; + case ALLEGRO_KEY_BACKSLASH: return ImGuiKey_Backslash; + case ALLEGRO_KEY_CLOSEBRACE: return ImGuiKey_RightBracket; + case ALLEGRO_KEY_TILDE: return ImGuiKey_GraveAccent; + case ALLEGRO_KEY_CAPSLOCK: return ImGuiKey_CapsLock; + case ALLEGRO_KEY_SCROLLLOCK: return ImGuiKey_ScrollLock; + case ALLEGRO_KEY_NUMLOCK: return ImGuiKey_NumLock; + case ALLEGRO_KEY_PRINTSCREEN: return ImGuiKey_PrintScreen; + case ALLEGRO_KEY_PAUSE: return ImGuiKey_Pause; + case ALLEGRO_KEY_PAD_0: return ImGuiKey_Keypad0; + case ALLEGRO_KEY_PAD_1: return ImGuiKey_Keypad1; + case ALLEGRO_KEY_PAD_2: return ImGuiKey_Keypad2; + case ALLEGRO_KEY_PAD_3: return ImGuiKey_Keypad3; + case ALLEGRO_KEY_PAD_4: return ImGuiKey_Keypad4; + case ALLEGRO_KEY_PAD_5: return ImGuiKey_Keypad5; + case ALLEGRO_KEY_PAD_6: return ImGuiKey_Keypad6; + case ALLEGRO_KEY_PAD_7: return ImGuiKey_Keypad7; + case ALLEGRO_KEY_PAD_8: return ImGuiKey_Keypad8; + case ALLEGRO_KEY_PAD_9: return ImGuiKey_Keypad9; + case ALLEGRO_KEY_PAD_DELETE: return ImGuiKey_KeypadDecimal; + case ALLEGRO_KEY_PAD_SLASH: return ImGuiKey_KeypadDivide; + case ALLEGRO_KEY_PAD_ASTERISK: return ImGuiKey_KeypadMultiply; + case ALLEGRO_KEY_PAD_MINUS: return ImGuiKey_KeypadSubtract; + case ALLEGRO_KEY_PAD_PLUS: return ImGuiKey_KeypadAdd; + case ALLEGRO_KEY_PAD_ENTER: return ImGuiKey_KeypadEnter; + case ALLEGRO_KEY_PAD_EQUALS: return ImGuiKey_KeypadEqual; + case ALLEGRO_KEY_LCTRL: return ImGuiKey_LeftCtrl; + case ALLEGRO_KEY_LSHIFT: return ImGuiKey_LeftShift; + case ALLEGRO_KEY_ALT: return ImGuiKey_LeftAlt; + case ALLEGRO_KEY_LWIN: return ImGuiKey_LeftSuper; + case ALLEGRO_KEY_RCTRL: return ImGuiKey_RightCtrl; + case ALLEGRO_KEY_RSHIFT: return ImGuiKey_RightShift; + case ALLEGRO_KEY_ALTGR: return ImGuiKey_RightAlt; + case ALLEGRO_KEY_RWIN: return ImGuiKey_RightSuper; + case ALLEGRO_KEY_MENU: return ImGuiKey_Menu; + case ALLEGRO_KEY_0: return ImGuiKey_0; + case ALLEGRO_KEY_1: return ImGuiKey_1; + case ALLEGRO_KEY_2: return ImGuiKey_2; + case ALLEGRO_KEY_3: return ImGuiKey_3; + case ALLEGRO_KEY_4: return ImGuiKey_4; + case ALLEGRO_KEY_5: return ImGuiKey_5; + case ALLEGRO_KEY_6: return ImGuiKey_6; + case ALLEGRO_KEY_7: return ImGuiKey_7; + case ALLEGRO_KEY_8: return ImGuiKey_8; + case ALLEGRO_KEY_9: return ImGuiKey_9; + case ALLEGRO_KEY_A: return ImGuiKey_A; + case ALLEGRO_KEY_B: return ImGuiKey_B; + case ALLEGRO_KEY_C: return ImGuiKey_C; + case ALLEGRO_KEY_D: return ImGuiKey_D; + case ALLEGRO_KEY_E: return ImGuiKey_E; + case ALLEGRO_KEY_F: return ImGuiKey_F; + case ALLEGRO_KEY_G: return ImGuiKey_G; + case ALLEGRO_KEY_H: return ImGuiKey_H; + case ALLEGRO_KEY_I: return ImGuiKey_I; + case ALLEGRO_KEY_J: return ImGuiKey_J; + case ALLEGRO_KEY_K: return ImGuiKey_K; + case ALLEGRO_KEY_L: return ImGuiKey_L; + case ALLEGRO_KEY_M: return ImGuiKey_M; + case ALLEGRO_KEY_N: return ImGuiKey_N; + case ALLEGRO_KEY_O: return ImGuiKey_O; + case ALLEGRO_KEY_P: return ImGuiKey_P; + case ALLEGRO_KEY_Q: return ImGuiKey_Q; + case ALLEGRO_KEY_R: return ImGuiKey_R; + case ALLEGRO_KEY_S: return ImGuiKey_S; + case ALLEGRO_KEY_T: return ImGuiKey_T; + case ALLEGRO_KEY_U: return ImGuiKey_U; + case ALLEGRO_KEY_V: return ImGuiKey_V; + case ALLEGRO_KEY_W: return ImGuiKey_W; + case ALLEGRO_KEY_X: return ImGuiKey_X; + case ALLEGRO_KEY_Y: return ImGuiKey_Y; + case ALLEGRO_KEY_Z: return ImGuiKey_Z; + case ALLEGRO_KEY_F1: return ImGuiKey_F1; + case ALLEGRO_KEY_F2: return ImGuiKey_F2; + case ALLEGRO_KEY_F3: return ImGuiKey_F3; + case ALLEGRO_KEY_F4: return ImGuiKey_F4; + case ALLEGRO_KEY_F5: return ImGuiKey_F5; + case ALLEGRO_KEY_F6: return ImGuiKey_F6; + case ALLEGRO_KEY_F7: return ImGuiKey_F7; + case ALLEGRO_KEY_F8: return ImGuiKey_F8; + case ALLEGRO_KEY_F9: return ImGuiKey_F9; + case ALLEGRO_KEY_F10: return ImGuiKey_F10; + case ALLEGRO_KEY_F11: return ImGuiKey_F11; + case ALLEGRO_KEY_F12: return ImGuiKey_F12; + default: return ImGuiKey_None; + } +} + +bool ImGui_ImplAllegro5_Init(ALLEGRO_DISPLAY* display) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendPlatformUserData == nullptr && "Already initialized a platform backend!"); + + // Setup backend capabilities flags + ImGui_ImplAllegro5_Data* bd = IM_NEW(ImGui_ImplAllegro5_Data)(); + io.BackendPlatformUserData = (void*)bd; + io.BackendPlatformName = io.BackendRendererName = "imgui_impl_allegro5"; + io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) + + bd->Display = display; + + // Create custom vertex declaration. + // Unfortunately Allegro doesn't support 32-bit packed colors so we have to convert them to 4 floats. + // We still use a custom declaration to use 'ALLEGRO_PRIM_TEX_COORD' instead of 'ALLEGRO_PRIM_TEX_COORD_PIXEL' else we can't do a reliable conversion. + ALLEGRO_VERTEX_ELEMENT elems[] = + { + { ALLEGRO_PRIM_POSITION, ALLEGRO_PRIM_FLOAT_2, IM_OFFSETOF(ImDrawVertAllegro, pos) }, + { ALLEGRO_PRIM_TEX_COORD, ALLEGRO_PRIM_FLOAT_2, IM_OFFSETOF(ImDrawVertAllegro, uv) }, + { ALLEGRO_PRIM_COLOR_ATTR, 0, IM_OFFSETOF(ImDrawVertAllegro, col) }, + { 0, 0, 0 } + }; + bd->VertexDecl = al_create_vertex_decl(elems, sizeof(ImDrawVertAllegro)); + +#if ALLEGRO_HAS_CLIPBOARD + io.SetClipboardTextFn = ImGui_ImplAllegro5_SetClipboardText; + io.GetClipboardTextFn = ImGui_ImplAllegro5_GetClipboardText; + io.ClipboardUserData = nullptr; +#endif + + return true; +} + +void ImGui_ImplAllegro5_Shutdown() +{ + ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); + IM_ASSERT(bd != nullptr && "No platform backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplAllegro5_InvalidateDeviceObjects(); + if (bd->VertexDecl) + al_destroy_vertex_decl(bd->VertexDecl); + if (bd->ClipboardTextData) + al_free(bd->ClipboardTextData); + + io.BackendPlatformName = io.BackendRendererName = nullptr; + io.BackendPlatformUserData = nullptr; + io.BackendFlags &= ~ImGuiBackendFlags_HasMouseCursors; + IM_DELETE(bd); +} + +// ev->keyboard.modifiers seems always zero so using that... +static void ImGui_ImplAllegro5_UpdateKeyModifiers() +{ + ImGuiIO& io = ImGui::GetIO(); + ALLEGRO_KEYBOARD_STATE keys; + al_get_keyboard_state(&keys); + io.AddKeyEvent(ImGuiMod_Ctrl, al_key_down(&keys, ALLEGRO_KEY_LCTRL) || al_key_down(&keys, ALLEGRO_KEY_RCTRL)); + io.AddKeyEvent(ImGuiMod_Shift, al_key_down(&keys, ALLEGRO_KEY_LSHIFT) || al_key_down(&keys, ALLEGRO_KEY_RSHIFT)); + io.AddKeyEvent(ImGuiMod_Alt, al_key_down(&keys, ALLEGRO_KEY_ALT) || al_key_down(&keys, ALLEGRO_KEY_ALTGR)); + io.AddKeyEvent(ImGuiMod_Super, al_key_down(&keys, ALLEGRO_KEY_LWIN) || al_key_down(&keys, ALLEGRO_KEY_RWIN)); +} + +// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. +// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. +// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. +// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. +bool ImGui_ImplAllegro5_ProcessEvent(ALLEGRO_EVENT* ev) +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); + + switch (ev->type) + { + case ALLEGRO_EVENT_MOUSE_AXES: + if (ev->mouse.display == bd->Display) + { + io.AddMousePosEvent(ev->mouse.x, ev->mouse.y); + io.AddMouseWheelEvent(-ev->mouse.dw, ev->mouse.dz); + } + return true; + case ALLEGRO_EVENT_MOUSE_BUTTON_DOWN: + case ALLEGRO_EVENT_MOUSE_BUTTON_UP: + if (ev->mouse.display == bd->Display && ev->mouse.button > 0 && ev->mouse.button <= 5) + io.AddMouseButtonEvent(ev->mouse.button - 1, ev->type == ALLEGRO_EVENT_MOUSE_BUTTON_DOWN); + return true; + case ALLEGRO_EVENT_TOUCH_MOVE: + if (ev->touch.display == bd->Display) + io.AddMousePosEvent(ev->touch.x, ev->touch.y); + return true; + case ALLEGRO_EVENT_TOUCH_BEGIN: + case ALLEGRO_EVENT_TOUCH_END: + case ALLEGRO_EVENT_TOUCH_CANCEL: + if (ev->touch.display == bd->Display && ev->touch.primary) + io.AddMouseButtonEvent(0, ev->type == ALLEGRO_EVENT_TOUCH_BEGIN); + return true; + case ALLEGRO_EVENT_MOUSE_LEAVE_DISPLAY: + if (ev->mouse.display == bd->Display) + io.AddMousePosEvent(-FLT_MAX, -FLT_MAX); + return true; + case ALLEGRO_EVENT_KEY_CHAR: + if (ev->keyboard.display == bd->Display) + if (ev->keyboard.unichar != 0) + io.AddInputCharacter((unsigned int)ev->keyboard.unichar); + return true; + case ALLEGRO_EVENT_KEY_DOWN: + case ALLEGRO_EVENT_KEY_UP: + if (ev->keyboard.display == bd->Display) + { + ImGui_ImplAllegro5_UpdateKeyModifiers(); + ImGuiKey key = ImGui_ImplAllegro5_KeyCodeToImGuiKey(ev->keyboard.keycode); + io.AddKeyEvent(key, (ev->type == ALLEGRO_EVENT_KEY_DOWN)); + io.SetKeyEventNativeData(key, ev->keyboard.keycode, -1); // To support legacy indexing (<1.87 user code) + } + return true; + case ALLEGRO_EVENT_DISPLAY_SWITCH_OUT: + if (ev->display.source == bd->Display) + io.AddFocusEvent(false); + return true; + case ALLEGRO_EVENT_DISPLAY_SWITCH_IN: + if (ev->display.source == bd->Display) + { + io.AddFocusEvent(true); +#if defined(ALLEGRO_UNSTABLE) + al_clear_keyboard_state(bd->Display); +#endif + } + return true; + } + return false; +} + +static void ImGui_ImplAllegro5_UpdateMouseCursor() +{ + ImGuiIO& io = ImGui::GetIO(); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) + return; + + ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); + ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); + if (io.MouseDrawCursor || imgui_cursor == ImGuiMouseCursor_None) + { + // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor + al_set_mouse_cursor(bd->Display, bd->MouseCursorInvisible); + } + else + { + ALLEGRO_SYSTEM_MOUSE_CURSOR cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_DEFAULT; + switch (imgui_cursor) + { + case ImGuiMouseCursor_TextInput: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_EDIT; break; + case ImGuiMouseCursor_ResizeAll: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_MOVE; break; + case ImGuiMouseCursor_ResizeNS: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_N; break; + case ImGuiMouseCursor_ResizeEW: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_E; break; + case ImGuiMouseCursor_ResizeNESW: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NE; break; + case ImGuiMouseCursor_ResizeNWSE: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NW; break; + case ImGuiMouseCursor_NotAllowed: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_UNAVAILABLE; break; + } + al_set_system_mouse_cursor(bd->Display, cursor_id); + } +} + +void ImGui_ImplAllegro5_NewFrame() +{ + ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplAllegro5_Init()?"); + + if (!bd->Texture) + ImGui_ImplAllegro5_CreateDeviceObjects(); + + ImGuiIO& io = ImGui::GetIO(); + + // Setup display size (every frame to accommodate for window resizing) + int w, h; + w = al_get_display_width(bd->Display); + h = al_get_display_height(bd->Display); + io.DisplaySize = ImVec2((float)w, (float)h); + + // Setup time step + double current_time = al_get_time(); + io.DeltaTime = bd->Time > 0.0 ? (float)(current_time - bd->Time) : (float)(1.0f / 60.0f); + bd->Time = current_time; + + // Setup mouse cursor shape + ImGui_ImplAllegro5_UpdateMouseCursor(); +} + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_allegro5.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_allegro5.h new file mode 100644 index 0000000..a7f7c0e --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_allegro5.h @@ -0,0 +1,39 @@ +// dear imgui: Renderer + Platform Backend for Allegro 5 +// (Info: Allegro 5 is a cross-platform general purpose library for handling windows, inputs, graphics, etc.) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'ALLEGRO_BITMAP*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy ALLEGRO_KEY_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Clipboard support (from Allegro 5.1.12) +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// Missing features: +// [ ] Renderer: Multi-viewport support (multiple windows).. +// [ ] Renderer: The renderer is suboptimal as we need to unindex our buffers and convert vertices manually. +// [ ] Platform: Missing gamepad support. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +struct ALLEGRO_DISPLAY; +union ALLEGRO_EVENT; + +IMGUI_IMPL_API bool ImGui_ImplAllegro5_Init(ALLEGRO_DISPLAY* display); +IMGUI_IMPL_API void ImGui_ImplAllegro5_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplAllegro5_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplAllegro5_RenderDrawData(ImDrawData* draw_data); +IMGUI_IMPL_API bool ImGui_ImplAllegro5_ProcessEvent(ALLEGRO_EVENT* event); + +// Use if you want to reset your rendering device without losing Dear ImGui state. +IMGUI_IMPL_API bool ImGui_ImplAllegro5_CreateDeviceObjects(); +IMGUI_IMPL_API void ImGui_ImplAllegro5_InvalidateDeviceObjects(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_android.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_android.cpp new file mode 100644 index 0000000..b679ac3 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_android.cpp @@ -0,0 +1,305 @@ +// dear imgui: Platform Binding for Android native app +// This needs to be used along with the OpenGL 3 Renderer (imgui_impl_opengl3) + +// Implemented features: +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy AKEYCODE_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen. +// Missing features: +// [ ] Platform: Clipboard support. +// [ ] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [ ] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. FIXME: Check if this is even possible with Android. +// [ ] Platform: Multi-viewport support (multiple windows). Not meaningful on Android. +// Important: +// - Consider using SDL or GLFW backend on Android, which will be more full-featured than this. +// - FIXME: On-screen keyboard currently needs to be enabled by the application (see examples/ and issue #3446) +// - FIXME: Unicode character inputs needs to be passed by Dear ImGui by the application (see examples/ and issue #3446) + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2022-09-26: Inputs: Renamed ImGuiKey_ModXXX introduced in 1.87 to ImGuiMod_XXX (old names still supported). +// 2022-01-26: Inputs: replaced short-lived io.AddKeyModsEvent() (added two weeks ago) with io.AddKeyEvent() using ImGuiKey_ModXXX flags. Sorry for the confusion. +// 2022-01-17: Inputs: calling new io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() API (1.87+). +// 2022-01-10: Inputs: calling new io.AddKeyEvent(), io.AddKeyModsEvent() + io.SetKeyEventNativeData() API (1.87+). Support for full ImGuiKey range. +// 2021-03-04: Initial version. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_android.h" +#include +#include +#include +#include +#include + +// Android data +static double g_Time = 0.0; +static ANativeWindow* g_Window; +static char g_LogTag[] = "ImGuiExample"; + +static ImGuiKey ImGui_ImplAndroid_KeyCodeToImGuiKey(int32_t key_code) +{ + switch (key_code) + { + case AKEYCODE_TAB: return ImGuiKey_Tab; + case AKEYCODE_DPAD_LEFT: return ImGuiKey_LeftArrow; + case AKEYCODE_DPAD_RIGHT: return ImGuiKey_RightArrow; + case AKEYCODE_DPAD_UP: return ImGuiKey_UpArrow; + case AKEYCODE_DPAD_DOWN: return ImGuiKey_DownArrow; + case AKEYCODE_PAGE_UP: return ImGuiKey_PageUp; + case AKEYCODE_PAGE_DOWN: return ImGuiKey_PageDown; + case AKEYCODE_MOVE_HOME: return ImGuiKey_Home; + case AKEYCODE_MOVE_END: return ImGuiKey_End; + case AKEYCODE_INSERT: return ImGuiKey_Insert; + case AKEYCODE_FORWARD_DEL: return ImGuiKey_Delete; + case AKEYCODE_DEL: return ImGuiKey_Backspace; + case AKEYCODE_SPACE: return ImGuiKey_Space; + case AKEYCODE_ENTER: return ImGuiKey_Enter; + case AKEYCODE_ESCAPE: return ImGuiKey_Escape; + case AKEYCODE_APOSTROPHE: return ImGuiKey_Apostrophe; + case AKEYCODE_COMMA: return ImGuiKey_Comma; + case AKEYCODE_MINUS: return ImGuiKey_Minus; + case AKEYCODE_PERIOD: return ImGuiKey_Period; + case AKEYCODE_SLASH: return ImGuiKey_Slash; + case AKEYCODE_SEMICOLON: return ImGuiKey_Semicolon; + case AKEYCODE_EQUALS: return ImGuiKey_Equal; + case AKEYCODE_LEFT_BRACKET: return ImGuiKey_LeftBracket; + case AKEYCODE_BACKSLASH: return ImGuiKey_Backslash; + case AKEYCODE_RIGHT_BRACKET: return ImGuiKey_RightBracket; + case AKEYCODE_GRAVE: return ImGuiKey_GraveAccent; + case AKEYCODE_CAPS_LOCK: return ImGuiKey_CapsLock; + case AKEYCODE_SCROLL_LOCK: return ImGuiKey_ScrollLock; + case AKEYCODE_NUM_LOCK: return ImGuiKey_NumLock; + case AKEYCODE_SYSRQ: return ImGuiKey_PrintScreen; + case AKEYCODE_BREAK: return ImGuiKey_Pause; + case AKEYCODE_NUMPAD_0: return ImGuiKey_Keypad0; + case AKEYCODE_NUMPAD_1: return ImGuiKey_Keypad1; + case AKEYCODE_NUMPAD_2: return ImGuiKey_Keypad2; + case AKEYCODE_NUMPAD_3: return ImGuiKey_Keypad3; + case AKEYCODE_NUMPAD_4: return ImGuiKey_Keypad4; + case AKEYCODE_NUMPAD_5: return ImGuiKey_Keypad5; + case AKEYCODE_NUMPAD_6: return ImGuiKey_Keypad6; + case AKEYCODE_NUMPAD_7: return ImGuiKey_Keypad7; + case AKEYCODE_NUMPAD_8: return ImGuiKey_Keypad8; + case AKEYCODE_NUMPAD_9: return ImGuiKey_Keypad9; + case AKEYCODE_NUMPAD_DOT: return ImGuiKey_KeypadDecimal; + case AKEYCODE_NUMPAD_DIVIDE: return ImGuiKey_KeypadDivide; + case AKEYCODE_NUMPAD_MULTIPLY: return ImGuiKey_KeypadMultiply; + case AKEYCODE_NUMPAD_SUBTRACT: return ImGuiKey_KeypadSubtract; + case AKEYCODE_NUMPAD_ADD: return ImGuiKey_KeypadAdd; + case AKEYCODE_NUMPAD_ENTER: return ImGuiKey_KeypadEnter; + case AKEYCODE_NUMPAD_EQUALS: return ImGuiKey_KeypadEqual; + case AKEYCODE_CTRL_LEFT: return ImGuiKey_LeftCtrl; + case AKEYCODE_SHIFT_LEFT: return ImGuiKey_LeftShift; + case AKEYCODE_ALT_LEFT: return ImGuiKey_LeftAlt; + case AKEYCODE_META_LEFT: return ImGuiKey_LeftSuper; + case AKEYCODE_CTRL_RIGHT: return ImGuiKey_RightCtrl; + case AKEYCODE_SHIFT_RIGHT: return ImGuiKey_RightShift; + case AKEYCODE_ALT_RIGHT: return ImGuiKey_RightAlt; + case AKEYCODE_META_RIGHT: return ImGuiKey_RightSuper; + case AKEYCODE_MENU: return ImGuiKey_Menu; + case AKEYCODE_0: return ImGuiKey_0; + case AKEYCODE_1: return ImGuiKey_1; + case AKEYCODE_2: return ImGuiKey_2; + case AKEYCODE_3: return ImGuiKey_3; + case AKEYCODE_4: return ImGuiKey_4; + case AKEYCODE_5: return ImGuiKey_5; + case AKEYCODE_6: return ImGuiKey_6; + case AKEYCODE_7: return ImGuiKey_7; + case AKEYCODE_8: return ImGuiKey_8; + case AKEYCODE_9: return ImGuiKey_9; + case AKEYCODE_A: return ImGuiKey_A; + case AKEYCODE_B: return ImGuiKey_B; + case AKEYCODE_C: return ImGuiKey_C; + case AKEYCODE_D: return ImGuiKey_D; + case AKEYCODE_E: return ImGuiKey_E; + case AKEYCODE_F: return ImGuiKey_F; + case AKEYCODE_G: return ImGuiKey_G; + case AKEYCODE_H: return ImGuiKey_H; + case AKEYCODE_I: return ImGuiKey_I; + case AKEYCODE_J: return ImGuiKey_J; + case AKEYCODE_K: return ImGuiKey_K; + case AKEYCODE_L: return ImGuiKey_L; + case AKEYCODE_M: return ImGuiKey_M; + case AKEYCODE_N: return ImGuiKey_N; + case AKEYCODE_O: return ImGuiKey_O; + case AKEYCODE_P: return ImGuiKey_P; + case AKEYCODE_Q: return ImGuiKey_Q; + case AKEYCODE_R: return ImGuiKey_R; + case AKEYCODE_S: return ImGuiKey_S; + case AKEYCODE_T: return ImGuiKey_T; + case AKEYCODE_U: return ImGuiKey_U; + case AKEYCODE_V: return ImGuiKey_V; + case AKEYCODE_W: return ImGuiKey_W; + case AKEYCODE_X: return ImGuiKey_X; + case AKEYCODE_Y: return ImGuiKey_Y; + case AKEYCODE_Z: return ImGuiKey_Z; + case AKEYCODE_F1: return ImGuiKey_F1; + case AKEYCODE_F2: return ImGuiKey_F2; + case AKEYCODE_F3: return ImGuiKey_F3; + case AKEYCODE_F4: return ImGuiKey_F4; + case AKEYCODE_F5: return ImGuiKey_F5; + case AKEYCODE_F6: return ImGuiKey_F6; + case AKEYCODE_F7: return ImGuiKey_F7; + case AKEYCODE_F8: return ImGuiKey_F8; + case AKEYCODE_F9: return ImGuiKey_F9; + case AKEYCODE_F10: return ImGuiKey_F10; + case AKEYCODE_F11: return ImGuiKey_F11; + case AKEYCODE_F12: return ImGuiKey_F12; + default: return ImGuiKey_None; + } +} + +int32_t ImGui_ImplAndroid_HandleInputEvent(AInputEvent* input_event) +{ + ImGuiIO& io = ImGui::GetIO(); + int32_t event_type = AInputEvent_getType(input_event); + switch (event_type) + { + case AINPUT_EVENT_TYPE_KEY: + { + int32_t event_key_code = AKeyEvent_getKeyCode(input_event); + int32_t event_scan_code = AKeyEvent_getScanCode(input_event); + int32_t event_action = AKeyEvent_getAction(input_event); + int32_t event_meta_state = AKeyEvent_getMetaState(input_event); + + io.AddKeyEvent(ImGuiMod_Ctrl, (event_meta_state & AMETA_CTRL_ON) != 0); + io.AddKeyEvent(ImGuiMod_Shift, (event_meta_state & AMETA_SHIFT_ON) != 0); + io.AddKeyEvent(ImGuiMod_Alt, (event_meta_state & AMETA_ALT_ON) != 0); + io.AddKeyEvent(ImGuiMod_Super, (event_meta_state & AMETA_META_ON) != 0); + + switch (event_action) + { + // FIXME: AKEY_EVENT_ACTION_DOWN and AKEY_EVENT_ACTION_UP occur at once as soon as a touch pointer + // goes up from a key. We use a simple key event queue/ and process one event per key per frame in + // ImGui_ImplAndroid_NewFrame()...or consider using IO queue, if suitable: https://github.com/ocornut/imgui/issues/2787 + case AKEY_EVENT_ACTION_DOWN: + case AKEY_EVENT_ACTION_UP: + { + ImGuiKey key = ImGui_ImplAndroid_KeyCodeToImGuiKey(event_key_code); + if (key != ImGuiKey_None && (event_action == AKEY_EVENT_ACTION_DOWN || event_action == AKEY_EVENT_ACTION_UP)) + { + io.AddKeyEvent(key, event_action == AKEY_EVENT_ACTION_DOWN); + io.SetKeyEventNativeData(key, event_key_code, event_scan_code); + } + + break; + } + default: + break; + } + break; + } + case AINPUT_EVENT_TYPE_MOTION: + { + int32_t event_action = AMotionEvent_getAction(input_event); + int32_t event_pointer_index = (event_action & AMOTION_EVENT_ACTION_POINTER_INDEX_MASK) >> AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT; + event_action &= AMOTION_EVENT_ACTION_MASK; + + switch (AMotionEvent_getToolType(input_event, event_pointer_index)) + { + case AMOTION_EVENT_TOOL_TYPE_MOUSE: + io.AddMouseSourceEvent(ImGuiMouseSource_Mouse); + break; + case AMOTION_EVENT_TOOL_TYPE_STYLUS: + case AMOTION_EVENT_TOOL_TYPE_ERASER: + io.AddMouseSourceEvent(ImGuiMouseSource_Pen); + break; + case AMOTION_EVENT_TOOL_TYPE_FINGER: + default: + io.AddMouseSourceEvent(ImGuiMouseSource_TouchScreen); + break; + } + + switch (event_action) + { + case AMOTION_EVENT_ACTION_DOWN: + case AMOTION_EVENT_ACTION_UP: + // Physical mouse buttons (and probably other physical devices) also invoke the actions AMOTION_EVENT_ACTION_DOWN/_UP, + // but we have to process them separately to identify the actual button pressed. This is done below via + // AMOTION_EVENT_ACTION_BUTTON_PRESS/_RELEASE. Here, we only process "FINGER" input (and "UNKNOWN", as a fallback). + if((AMotionEvent_getToolType(input_event, event_pointer_index) == AMOTION_EVENT_TOOL_TYPE_FINGER) + || (AMotionEvent_getToolType(input_event, event_pointer_index) == AMOTION_EVENT_TOOL_TYPE_UNKNOWN)) + { + io.AddMousePosEvent(AMotionEvent_getX(input_event, event_pointer_index), AMotionEvent_getY(input_event, event_pointer_index)); + io.AddMouseButtonEvent(0, event_action == AMOTION_EVENT_ACTION_DOWN); + } + break; + case AMOTION_EVENT_ACTION_BUTTON_PRESS: + case AMOTION_EVENT_ACTION_BUTTON_RELEASE: + { + int32_t button_state = AMotionEvent_getButtonState(input_event); + io.AddMouseButtonEvent(0, (button_state & AMOTION_EVENT_BUTTON_PRIMARY) != 0); + io.AddMouseButtonEvent(1, (button_state & AMOTION_EVENT_BUTTON_SECONDARY) != 0); + io.AddMouseButtonEvent(2, (button_state & AMOTION_EVENT_BUTTON_TERTIARY) != 0); + } + break; + case AMOTION_EVENT_ACTION_HOVER_MOVE: // Hovering: Tool moves while NOT pressed (such as a physical mouse) + case AMOTION_EVENT_ACTION_MOVE: // Touch pointer moves while DOWN + io.AddMousePosEvent(AMotionEvent_getX(input_event, event_pointer_index), AMotionEvent_getY(input_event, event_pointer_index)); + break; + case AMOTION_EVENT_ACTION_SCROLL: + io.AddMouseWheelEvent(AMotionEvent_getAxisValue(input_event, AMOTION_EVENT_AXIS_HSCROLL, event_pointer_index), AMotionEvent_getAxisValue(input_event, AMOTION_EVENT_AXIS_VSCROLL, event_pointer_index)); + break; + default: + break; + } + } + return 1; + default: + break; + } + + return 0; +} + +bool ImGui_ImplAndroid_Init(ANativeWindow* window) +{ + g_Window = window; + g_Time = 0.0; + + // Setup backend capabilities flags + ImGuiIO& io = ImGui::GetIO(); + io.BackendPlatformName = "imgui_impl_android"; + + return true; +} + +void ImGui_ImplAndroid_Shutdown() +{ + ImGuiIO& io = ImGui::GetIO(); + io.BackendPlatformName = nullptr; +} + +void ImGui_ImplAndroid_NewFrame() +{ + ImGuiIO& io = ImGui::GetIO(); + + // Setup display size (every frame to accommodate for window resizing) + int32_t window_width = ANativeWindow_getWidth(g_Window); + int32_t window_height = ANativeWindow_getHeight(g_Window); + int display_width = window_width; + int display_height = window_height; + + io.DisplaySize = ImVec2((float)window_width, (float)window_height); + if (window_width > 0 && window_height > 0) + io.DisplayFramebufferScale = ImVec2((float)display_width / window_width, (float)display_height / window_height); + + // Setup time step + struct timespec current_timespec; + clock_gettime(CLOCK_MONOTONIC, ¤t_timespec); + double current_time = (double)(current_timespec.tv_sec) + (current_timespec.tv_nsec / 1000000000.0); + io.DeltaTime = g_Time > 0.0 ? (float)(current_time - g_Time) : (float)(1.0f / 60.0f); + g_Time = current_time; +} + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_android.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_android.h new file mode 100644 index 0000000..e078b25 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_android.h @@ -0,0 +1,37 @@ +// dear imgui: Platform Binding for Android native app +// This needs to be used along with the OpenGL 3 Renderer (imgui_impl_opengl3) + +// Implemented features: +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy AKEYCODE_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen. +// Missing features: +// [ ] Platform: Clipboard support. +// [ ] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [ ] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. FIXME: Check if this is even possible with Android. +// [ ] Platform: Multi-viewport support (multiple windows). Not meaningful on Android. +// Important: +// - Consider using SDL or GLFW backend on Android, which will be more full-featured than this. +// - FIXME: On-screen keyboard currently needs to be enabled by the application (see examples/ and issue #3446) +// - FIXME: Unicode character inputs needs to be passed by Dear ImGui by the application (see examples/ and issue #3446) + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +struct ANativeWindow; +struct AInputEvent; + +IMGUI_IMPL_API bool ImGui_ImplAndroid_Init(ANativeWindow* window); +IMGUI_IMPL_API int32_t ImGui_ImplAndroid_HandleInputEvent(AInputEvent* input_event); +IMGUI_IMPL_API void ImGui_ImplAndroid_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplAndroid_NewFrame(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx10.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx10.cpp new file mode 100644 index 0000000..2d53e18 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx10.cpp @@ -0,0 +1,722 @@ +// dear imgui: Renderer Backend for DirectX10 +// This needs to be used along with a Platform Backend (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'ID3D10ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-05-19: DirectX10: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-02-18: DirectX10: Change blending equation to preserve alpha in output buffer. +// 2019-07-21: DirectX10: Backup, clear and restore Geometry Shader is any is bound when calling ImGui_ImplDX10_RenderDrawData(). +// 2019-05-29: DirectX10: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: DirectX10: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2018-12-03: Misc: Added #pragma comment statement to automatically link with d3dcompiler.lib when using D3DCompile(). +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-07-13: DirectX10: Fixed unreleased resources in Init and Shutdown functions. +// 2018-06-08: Misc: Extracted imgui_impl_dx10.cpp/.h away from the old combined DX10+Win32 example. +// 2018-06-08: DirectX10: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-04-09: Misc: Fixed erroneous call to io.Fonts->ClearInputData() + ClearTexData() that was left in DX10 example but removed in 1.47 (Nov 2015) on other backends. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplDX10_RenderDrawData() in the .h file so you can call it yourself. +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. +// 2016-05-07: DirectX10: Disabling depth-write. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_dx10.h" + +// DirectX +#include +#include +#include +#include +#ifdef _MSC_VER +#pragma comment(lib, "d3dcompiler") // Automatically link with d3dcompiler.lib as we are using D3DCompile() below. +#endif + +// DirectX data +struct ImGui_ImplDX10_Data +{ + ID3D10Device* pd3dDevice; + IDXGIFactory* pFactory; + ID3D10Buffer* pVB; + ID3D10Buffer* pIB; + ID3D10VertexShader* pVertexShader; + ID3D10InputLayout* pInputLayout; + ID3D10Buffer* pVertexConstantBuffer; + ID3D10PixelShader* pPixelShader; + ID3D10SamplerState* pFontSampler; + ID3D10ShaderResourceView* pFontTextureView; + ID3D10RasterizerState* pRasterizerState; + ID3D10BlendState* pBlendState; + ID3D10DepthStencilState* pDepthStencilState; + int VertexBufferSize; + int IndexBufferSize; + + ImGui_ImplDX10_Data() { memset((void*)this, 0, sizeof(*this)); VertexBufferSize = 5000; IndexBufferSize = 10000; } +}; + +struct VERTEX_CONSTANT_BUFFER_DX10 +{ + float mvp[4][4]; +}; + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplDX10_Data* ImGui_ImplDX10_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplDX10_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplDX10_InitPlatformInterface(); +static void ImGui_ImplDX10_ShutdownPlatformInterface(); + +// Functions +static void ImGui_ImplDX10_SetupRenderState(ImDrawData* draw_data, ID3D10Device* ctx) +{ + ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); + + // Setup viewport + D3D10_VIEWPORT vp; + memset(&vp, 0, sizeof(D3D10_VIEWPORT)); + vp.Width = (UINT)draw_data->DisplaySize.x; + vp.Height = (UINT)draw_data->DisplaySize.y; + vp.MinDepth = 0.0f; + vp.MaxDepth = 1.0f; + vp.TopLeftX = vp.TopLeftY = 0; + ctx->RSSetViewports(1, &vp); + + // Bind shader and vertex buffers + unsigned int stride = sizeof(ImDrawVert); + unsigned int offset = 0; + ctx->IASetInputLayout(bd->pInputLayout); + ctx->IASetVertexBuffers(0, 1, &bd->pVB, &stride, &offset); + ctx->IASetIndexBuffer(bd->pIB, sizeof(ImDrawIdx) == 2 ? DXGI_FORMAT_R16_UINT : DXGI_FORMAT_R32_UINT, 0); + ctx->IASetPrimitiveTopology(D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST); + ctx->VSSetShader(bd->pVertexShader); + ctx->VSSetConstantBuffers(0, 1, &bd->pVertexConstantBuffer); + ctx->PSSetShader(bd->pPixelShader); + ctx->PSSetSamplers(0, 1, &bd->pFontSampler); + ctx->GSSetShader(nullptr); + + // Setup render state + const float blend_factor[4] = { 0.f, 0.f, 0.f, 0.f }; + ctx->OMSetBlendState(bd->pBlendState, blend_factor, 0xffffffff); + ctx->OMSetDepthStencilState(bd->pDepthStencilState, 0); + ctx->RSSetState(bd->pRasterizerState); +} + +// Render function +void ImGui_ImplDX10_RenderDrawData(ImDrawData* draw_data) +{ + // Avoid rendering when minimized + if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) + return; + + ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); + ID3D10Device* ctx = bd->pd3dDevice; + + // Create and grow vertex/index buffers if needed + if (!bd->pVB || bd->VertexBufferSize < draw_data->TotalVtxCount) + { + if (bd->pVB) { bd->pVB->Release(); bd->pVB = nullptr; } + bd->VertexBufferSize = draw_data->TotalVtxCount + 5000; + D3D10_BUFFER_DESC desc; + memset(&desc, 0, sizeof(D3D10_BUFFER_DESC)); + desc.Usage = D3D10_USAGE_DYNAMIC; + desc.ByteWidth = bd->VertexBufferSize * sizeof(ImDrawVert); + desc.BindFlags = D3D10_BIND_VERTEX_BUFFER; + desc.CPUAccessFlags = D3D10_CPU_ACCESS_WRITE; + desc.MiscFlags = 0; + if (ctx->CreateBuffer(&desc, nullptr, &bd->pVB) < 0) + return; + } + + if (!bd->pIB || bd->IndexBufferSize < draw_data->TotalIdxCount) + { + if (bd->pIB) { bd->pIB->Release(); bd->pIB = nullptr; } + bd->IndexBufferSize = draw_data->TotalIdxCount + 10000; + D3D10_BUFFER_DESC desc; + memset(&desc, 0, sizeof(D3D10_BUFFER_DESC)); + desc.Usage = D3D10_USAGE_DYNAMIC; + desc.ByteWidth = bd->IndexBufferSize * sizeof(ImDrawIdx); + desc.BindFlags = D3D10_BIND_INDEX_BUFFER; + desc.CPUAccessFlags = D3D10_CPU_ACCESS_WRITE; + if (ctx->CreateBuffer(&desc, nullptr, &bd->pIB) < 0) + return; + } + + // Copy and convert all vertices into a single contiguous buffer + ImDrawVert* vtx_dst = nullptr; + ImDrawIdx* idx_dst = nullptr; + bd->pVB->Map(D3D10_MAP_WRITE_DISCARD, 0, (void**)&vtx_dst); + bd->pIB->Map(D3D10_MAP_WRITE_DISCARD, 0, (void**)&idx_dst); + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); + memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); + vtx_dst += cmd_list->VtxBuffer.Size; + idx_dst += cmd_list->IdxBuffer.Size; + } + bd->pVB->Unmap(); + bd->pIB->Unmap(); + + // Setup orthographic projection matrix into our constant buffer + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. + { + void* mapped_resource; + if (bd->pVertexConstantBuffer->Map(D3D10_MAP_WRITE_DISCARD, 0, &mapped_resource) != S_OK) + return; + VERTEX_CONSTANT_BUFFER_DX10* constant_buffer = (VERTEX_CONSTANT_BUFFER_DX10*)mapped_resource; + float L = draw_data->DisplayPos.x; + float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; + float T = draw_data->DisplayPos.y; + float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; + float mvp[4][4] = + { + { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, + { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, + { 0.0f, 0.0f, 0.5f, 0.0f }, + { (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f }, + }; + memcpy(&constant_buffer->mvp, mvp, sizeof(mvp)); + bd->pVertexConstantBuffer->Unmap(); + } + + // Backup DX state that will be modified to restore it afterwards (unfortunately this is very ugly looking and verbose. Close your eyes!) + struct BACKUP_DX10_STATE + { + UINT ScissorRectsCount, ViewportsCount; + D3D10_RECT ScissorRects[D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; + D3D10_VIEWPORT Viewports[D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; + ID3D10RasterizerState* RS; + ID3D10BlendState* BlendState; + FLOAT BlendFactor[4]; + UINT SampleMask; + UINT StencilRef; + ID3D10DepthStencilState* DepthStencilState; + ID3D10ShaderResourceView* PSShaderResource; + ID3D10SamplerState* PSSampler; + ID3D10PixelShader* PS; + ID3D10VertexShader* VS; + ID3D10GeometryShader* GS; + D3D10_PRIMITIVE_TOPOLOGY PrimitiveTopology; + ID3D10Buffer* IndexBuffer, *VertexBuffer, *VSConstantBuffer; + UINT IndexBufferOffset, VertexBufferStride, VertexBufferOffset; + DXGI_FORMAT IndexBufferFormat; + ID3D10InputLayout* InputLayout; + }; + BACKUP_DX10_STATE old = {}; + old.ScissorRectsCount = old.ViewportsCount = D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE; + ctx->RSGetScissorRects(&old.ScissorRectsCount, old.ScissorRects); + ctx->RSGetViewports(&old.ViewportsCount, old.Viewports); + ctx->RSGetState(&old.RS); + ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); + ctx->OMGetDepthStencilState(&old.DepthStencilState, &old.StencilRef); + ctx->PSGetShaderResources(0, 1, &old.PSShaderResource); + ctx->PSGetSamplers(0, 1, &old.PSSampler); + ctx->PSGetShader(&old.PS); + ctx->VSGetShader(&old.VS); + ctx->VSGetConstantBuffers(0, 1, &old.VSConstantBuffer); + ctx->GSGetShader(&old.GS); + ctx->IAGetPrimitiveTopology(&old.PrimitiveTopology); + ctx->IAGetIndexBuffer(&old.IndexBuffer, &old.IndexBufferFormat, &old.IndexBufferOffset); + ctx->IAGetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); + ctx->IAGetInputLayout(&old.InputLayout); + + // Setup desired DX state + ImGui_ImplDX10_SetupRenderState(draw_data, ctx); + + // Render command lists + // (Because we merged all buffers into a single one, we maintain our own offset into them) + int global_vtx_offset = 0; + int global_idx_offset = 0; + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplDX10_SetupRenderState(draw_data, ctx); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply scissor/clipping rectangle + const D3D10_RECT r = { (LONG)clip_min.x, (LONG)clip_min.y, (LONG)clip_max.x, (LONG)clip_max.y }; + ctx->RSSetScissorRects(1, &r); + + // Bind texture, Draw + ID3D10ShaderResourceView* texture_srv = (ID3D10ShaderResourceView*)pcmd->GetTexID(); + ctx->PSSetShaderResources(0, 1, &texture_srv); + ctx->DrawIndexed(pcmd->ElemCount, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset); + } + } + global_idx_offset += cmd_list->IdxBuffer.Size; + global_vtx_offset += cmd_list->VtxBuffer.Size; + } + + // Restore modified DX state + ctx->RSSetScissorRects(old.ScissorRectsCount, old.ScissorRects); + ctx->RSSetViewports(old.ViewportsCount, old.Viewports); + ctx->RSSetState(old.RS); if (old.RS) old.RS->Release(); + ctx->OMSetBlendState(old.BlendState, old.BlendFactor, old.SampleMask); if (old.BlendState) old.BlendState->Release(); + ctx->OMSetDepthStencilState(old.DepthStencilState, old.StencilRef); if (old.DepthStencilState) old.DepthStencilState->Release(); + ctx->PSSetShaderResources(0, 1, &old.PSShaderResource); if (old.PSShaderResource) old.PSShaderResource->Release(); + ctx->PSSetSamplers(0, 1, &old.PSSampler); if (old.PSSampler) old.PSSampler->Release(); + ctx->PSSetShader(old.PS); if (old.PS) old.PS->Release(); + ctx->VSSetShader(old.VS); if (old.VS) old.VS->Release(); + ctx->GSSetShader(old.GS); if (old.GS) old.GS->Release(); + ctx->VSSetConstantBuffers(0, 1, &old.VSConstantBuffer); if (old.VSConstantBuffer) old.VSConstantBuffer->Release(); + ctx->IASetPrimitiveTopology(old.PrimitiveTopology); + ctx->IASetIndexBuffer(old.IndexBuffer, old.IndexBufferFormat, old.IndexBufferOffset); if (old.IndexBuffer) old.IndexBuffer->Release(); + ctx->IASetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); if (old.VertexBuffer) old.VertexBuffer->Release(); + ctx->IASetInputLayout(old.InputLayout); if (old.InputLayout) old.InputLayout->Release(); +} + +static void ImGui_ImplDX10_CreateFontsTexture() +{ + // Build texture atlas + ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + + // Upload texture to graphics system + { + D3D10_TEXTURE2D_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.Width = width; + desc.Height = height; + desc.MipLevels = 1; + desc.ArraySize = 1; + desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + desc.SampleDesc.Count = 1; + desc.Usage = D3D10_USAGE_DEFAULT; + desc.BindFlags = D3D10_BIND_SHADER_RESOURCE; + desc.CPUAccessFlags = 0; + + ID3D10Texture2D* pTexture = nullptr; + D3D10_SUBRESOURCE_DATA subResource; + subResource.pSysMem = pixels; + subResource.SysMemPitch = desc.Width * 4; + subResource.SysMemSlicePitch = 0; + bd->pd3dDevice->CreateTexture2D(&desc, &subResource, &pTexture); + IM_ASSERT(pTexture != nullptr); + + // Create texture view + D3D10_SHADER_RESOURCE_VIEW_DESC srv_desc; + ZeroMemory(&srv_desc, sizeof(srv_desc)); + srv_desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + srv_desc.ViewDimension = D3D10_SRV_DIMENSION_TEXTURE2D; + srv_desc.Texture2D.MipLevels = desc.MipLevels; + srv_desc.Texture2D.MostDetailedMip = 0; + bd->pd3dDevice->CreateShaderResourceView(pTexture, &srv_desc, &bd->pFontTextureView); + pTexture->Release(); + } + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)bd->pFontTextureView); + + // Create texture sampler + // (Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling) + { + D3D10_SAMPLER_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.Filter = D3D10_FILTER_MIN_MAG_MIP_LINEAR; + desc.AddressU = D3D10_TEXTURE_ADDRESS_WRAP; + desc.AddressV = D3D10_TEXTURE_ADDRESS_WRAP; + desc.AddressW = D3D10_TEXTURE_ADDRESS_WRAP; + desc.MipLODBias = 0.f; + desc.ComparisonFunc = D3D10_COMPARISON_ALWAYS; + desc.MinLOD = 0.f; + desc.MaxLOD = 0.f; + bd->pd3dDevice->CreateSamplerState(&desc, &bd->pFontSampler); + } +} + +bool ImGui_ImplDX10_CreateDeviceObjects() +{ + ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); + if (!bd->pd3dDevice) + return false; + if (bd->pFontSampler) + ImGui_ImplDX10_InvalidateDeviceObjects(); + + // By using D3DCompile() from / d3dcompiler.lib, we introduce a dependency to a given version of d3dcompiler_XX.dll (see D3DCOMPILER_DLL_A) + // If you would like to use this DX10 sample code but remove this dependency you can: + // 1) compile once, save the compiled shader blobs into a file or source code and pass them to CreateVertexShader()/CreatePixelShader() [preferred solution] + // 2) use code to detect any version of the DLL and grab a pointer to D3DCompile from the DLL. + // See https://github.com/ocornut/imgui/pull/638 for sources and details. + + // Create the vertex shader + { + static const char* vertexShader = + "cbuffer vertexBuffer : register(b0) \ + {\ + float4x4 ProjectionMatrix; \ + };\ + struct VS_INPUT\ + {\ + float2 pos : POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + \ + struct PS_INPUT\ + {\ + float4 pos : SV_POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + \ + PS_INPUT main(VS_INPUT input)\ + {\ + PS_INPUT output;\ + output.pos = mul( ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f));\ + output.col = input.col;\ + output.uv = input.uv;\ + return output;\ + }"; + + ID3DBlob* vertexShaderBlob; + if (FAILED(D3DCompile(vertexShader, strlen(vertexShader), nullptr, nullptr, nullptr, "main", "vs_4_0", 0, 0, &vertexShaderBlob, nullptr))) + return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! + if (bd->pd3dDevice->CreateVertexShader(vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), &bd->pVertexShader) != S_OK) + { + vertexShaderBlob->Release(); + return false; + } + + // Create the input layout + D3D10_INPUT_ELEMENT_DESC local_layout[] = + { + { "POSITION", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, pos), D3D10_INPUT_PER_VERTEX_DATA, 0 }, + { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, uv), D3D10_INPUT_PER_VERTEX_DATA, 0 }, + { "COLOR", 0, DXGI_FORMAT_R8G8B8A8_UNORM, 0, (UINT)IM_OFFSETOF(ImDrawVert, col), D3D10_INPUT_PER_VERTEX_DATA, 0 }, + }; + if (bd->pd3dDevice->CreateInputLayout(local_layout, 3, vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), &bd->pInputLayout) != S_OK) + { + vertexShaderBlob->Release(); + return false; + } + vertexShaderBlob->Release(); + + // Create the constant buffer + { + D3D10_BUFFER_DESC desc; + desc.ByteWidth = sizeof(VERTEX_CONSTANT_BUFFER_DX10); + desc.Usage = D3D10_USAGE_DYNAMIC; + desc.BindFlags = D3D10_BIND_CONSTANT_BUFFER; + desc.CPUAccessFlags = D3D10_CPU_ACCESS_WRITE; + desc.MiscFlags = 0; + bd->pd3dDevice->CreateBuffer(&desc, nullptr, &bd->pVertexConstantBuffer); + } + } + + // Create the pixel shader + { + static const char* pixelShader = + "struct PS_INPUT\ + {\ + float4 pos : SV_POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + sampler sampler0;\ + Texture2D texture0;\ + \ + float4 main(PS_INPUT input) : SV_Target\ + {\ + float4 out_col = input.col * texture0.Sample(sampler0, input.uv); \ + return out_col; \ + }"; + + ID3DBlob* pixelShaderBlob; + if (FAILED(D3DCompile(pixelShader, strlen(pixelShader), nullptr, nullptr, nullptr, "main", "ps_4_0", 0, 0, &pixelShaderBlob, nullptr))) + return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! + if (bd->pd3dDevice->CreatePixelShader(pixelShaderBlob->GetBufferPointer(), pixelShaderBlob->GetBufferSize(), &bd->pPixelShader) != S_OK) + { + pixelShaderBlob->Release(); + return false; + } + pixelShaderBlob->Release(); + } + + // Create the blending setup + { + D3D10_BLEND_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.AlphaToCoverageEnable = false; + desc.BlendEnable[0] = true; + desc.SrcBlend = D3D10_BLEND_SRC_ALPHA; + desc.DestBlend = D3D10_BLEND_INV_SRC_ALPHA; + desc.BlendOp = D3D10_BLEND_OP_ADD; + desc.SrcBlendAlpha = D3D10_BLEND_ONE; + desc.DestBlendAlpha = D3D10_BLEND_INV_SRC_ALPHA; + desc.BlendOpAlpha = D3D10_BLEND_OP_ADD; + desc.RenderTargetWriteMask[0] = D3D10_COLOR_WRITE_ENABLE_ALL; + bd->pd3dDevice->CreateBlendState(&desc, &bd->pBlendState); + } + + // Create the rasterizer state + { + D3D10_RASTERIZER_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.FillMode = D3D10_FILL_SOLID; + desc.CullMode = D3D10_CULL_NONE; + desc.ScissorEnable = true; + desc.DepthClipEnable = true; + bd->pd3dDevice->CreateRasterizerState(&desc, &bd->pRasterizerState); + } + + // Create depth-stencil State + { + D3D10_DEPTH_STENCIL_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.DepthEnable = false; + desc.DepthWriteMask = D3D10_DEPTH_WRITE_MASK_ALL; + desc.DepthFunc = D3D10_COMPARISON_ALWAYS; + desc.StencilEnable = false; + desc.FrontFace.StencilFailOp = desc.FrontFace.StencilDepthFailOp = desc.FrontFace.StencilPassOp = D3D10_STENCIL_OP_KEEP; + desc.FrontFace.StencilFunc = D3D10_COMPARISON_ALWAYS; + desc.BackFace = desc.FrontFace; + bd->pd3dDevice->CreateDepthStencilState(&desc, &bd->pDepthStencilState); + } + + ImGui_ImplDX10_CreateFontsTexture(); + + return true; +} + +void ImGui_ImplDX10_InvalidateDeviceObjects() +{ + ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); + if (!bd->pd3dDevice) + return; + + if (bd->pFontSampler) { bd->pFontSampler->Release(); bd->pFontSampler = nullptr; } + if (bd->pFontTextureView) { bd->pFontTextureView->Release(); bd->pFontTextureView = nullptr; ImGui::GetIO().Fonts->SetTexID(0); } // We copied bd->pFontTextureView to io.Fonts->TexID so let's clear that as well. + if (bd->pIB) { bd->pIB->Release(); bd->pIB = nullptr; } + if (bd->pVB) { bd->pVB->Release(); bd->pVB = nullptr; } + if (bd->pBlendState) { bd->pBlendState->Release(); bd->pBlendState = nullptr; } + if (bd->pDepthStencilState) { bd->pDepthStencilState->Release(); bd->pDepthStencilState = nullptr; } + if (bd->pRasterizerState) { bd->pRasterizerState->Release(); bd->pRasterizerState = nullptr; } + if (bd->pPixelShader) { bd->pPixelShader->Release(); bd->pPixelShader = nullptr; } + if (bd->pVertexConstantBuffer) { bd->pVertexConstantBuffer->Release(); bd->pVertexConstantBuffer = nullptr; } + if (bd->pInputLayout) { bd->pInputLayout->Release(); bd->pInputLayout = nullptr; } + if (bd->pVertexShader) { bd->pVertexShader->Release(); bd->pVertexShader = nullptr; } +} + +bool ImGui_ImplDX10_Init(ID3D10Device* device) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + + // Setup backend capabilities flags + ImGui_ImplDX10_Data* bd = IM_NEW(ImGui_ImplDX10_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_dx10"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + + // Get factory from device + IDXGIDevice* pDXGIDevice = nullptr; + IDXGIAdapter* pDXGIAdapter = nullptr; + IDXGIFactory* pFactory = nullptr; + if (device->QueryInterface(IID_PPV_ARGS(&pDXGIDevice)) == S_OK) + if (pDXGIDevice->GetParent(IID_PPV_ARGS(&pDXGIAdapter)) == S_OK) + if (pDXGIAdapter->GetParent(IID_PPV_ARGS(&pFactory)) == S_OK) + { + bd->pd3dDevice = device; + bd->pFactory = pFactory; + } + if (pDXGIDevice) pDXGIDevice->Release(); + if (pDXGIAdapter) pDXGIAdapter->Release(); + bd->pd3dDevice->AddRef(); + + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplDX10_InitPlatformInterface(); + return true; +} + +void ImGui_ImplDX10_Shutdown() +{ + ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplDX10_ShutdownPlatformInterface(); + ImGui_ImplDX10_InvalidateDeviceObjects(); + if (bd->pFactory) { bd->pFactory->Release(); } + if (bd->pd3dDevice) { bd->pd3dDevice->Release(); } + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_RendererHasVtxOffset | ImGuiBackendFlags_RendererHasViewports); + IM_DELETE(bd); +} + +void ImGui_ImplDX10_NewFrame() +{ + ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplDX10_Init()?"); + + if (!bd->pFontSampler) + ImGui_ImplDX10_CreateDeviceObjects(); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +// Helper structure we store in the void* RendererUserData field of each ImGuiViewport to easily retrieve our backend data. +struct ImGui_ImplDX10_ViewportData +{ + IDXGISwapChain* SwapChain; + ID3D10RenderTargetView* RTView; + + ImGui_ImplDX10_ViewportData() { SwapChain = nullptr; RTView = nullptr; } + ~ImGui_ImplDX10_ViewportData() { IM_ASSERT(SwapChain == nullptr && RTView == nullptr); } +}; + +static void ImGui_ImplDX10_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); + ImGui_ImplDX10_ViewportData* vd = IM_NEW(ImGui_ImplDX10_ViewportData)(); + viewport->RendererUserData = vd; + + // PlatformHandleRaw should always be a HWND, whereas PlatformHandle might be a higher-level handle (e.g. GLFWWindow*, SDL_Window*). + // Some backends will leave PlatformHandleRaw == 0, in which case we assume PlatformHandle will contain the HWND. + HWND hwnd = viewport->PlatformHandleRaw ? (HWND)viewport->PlatformHandleRaw : (HWND)viewport->PlatformHandle; + IM_ASSERT(hwnd != 0); + + // Create swap chain + DXGI_SWAP_CHAIN_DESC sd; + ZeroMemory(&sd, sizeof(sd)); + sd.BufferDesc.Width = (UINT)viewport->Size.x; + sd.BufferDesc.Height = (UINT)viewport->Size.y; + sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + sd.SampleDesc.Count = 1; + sd.SampleDesc.Quality = 0; + sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + sd.BufferCount = 1; + sd.OutputWindow = hwnd; + sd.Windowed = TRUE; + sd.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; + sd.Flags = 0; + + IM_ASSERT(vd->SwapChain == nullptr && vd->RTView == nullptr); + bd->pFactory->CreateSwapChain(bd->pd3dDevice, &sd, &vd->SwapChain); + + // Create the render target + if (vd->SwapChain) + { + ID3D10Texture2D* pBackBuffer; + vd->SwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); + bd->pd3dDevice->CreateRenderTargetView(pBackBuffer, nullptr, &vd->RTView); + pBackBuffer->Release(); + } +} + +static void ImGui_ImplDX10_DestroyWindow(ImGuiViewport* viewport) +{ + // The main viewport (owned by the application) will always have RendererUserData == 0 here since we didn't create the data for it. + if (ImGui_ImplDX10_ViewportData* vd = (ImGui_ImplDX10_ViewportData*)viewport->RendererUserData) + { + if (vd->SwapChain) + vd->SwapChain->Release(); + vd->SwapChain = nullptr; + if (vd->RTView) + vd->RTView->Release(); + vd->RTView = nullptr; + IM_DELETE(vd); + } + viewport->RendererUserData = nullptr; +} + +static void ImGui_ImplDX10_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); + ImGui_ImplDX10_ViewportData* vd = (ImGui_ImplDX10_ViewportData*)viewport->RendererUserData; + if (vd->RTView) + { + vd->RTView->Release(); + vd->RTView = nullptr; + } + if (vd->SwapChain) + { + ID3D10Texture2D* pBackBuffer = nullptr; + vd->SwapChain->ResizeBuffers(0, (UINT)size.x, (UINT)size.y, DXGI_FORMAT_UNKNOWN, 0); + vd->SwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); + if (pBackBuffer == nullptr) { fprintf(stderr, "ImGui_ImplDX10_SetWindowSize() failed creating buffers.\n"); return; } + bd->pd3dDevice->CreateRenderTargetView(pBackBuffer, nullptr, &vd->RTView); + pBackBuffer->Release(); + } +} + +static void ImGui_ImplDX10_RenderViewport(ImGuiViewport* viewport, void*) +{ + ImGui_ImplDX10_Data* bd = ImGui_ImplDX10_GetBackendData(); + ImGui_ImplDX10_ViewportData* vd = (ImGui_ImplDX10_ViewportData*)viewport->RendererUserData; + ImVec4 clear_color = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); + bd->pd3dDevice->OMSetRenderTargets(1, &vd->RTView, nullptr); + if (!(viewport->Flags & ImGuiViewportFlags_NoRendererClear)) + bd->pd3dDevice->ClearRenderTargetView(vd->RTView, (float*)&clear_color); + ImGui_ImplDX10_RenderDrawData(viewport->DrawData); +} + +static void ImGui_ImplDX10_SwapBuffers(ImGuiViewport* viewport, void*) +{ + ImGui_ImplDX10_ViewportData* vd = (ImGui_ImplDX10_ViewportData*)viewport->RendererUserData; + vd->SwapChain->Present(0, 0); // Present without vsync +} + +void ImGui_ImplDX10_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Renderer_CreateWindow = ImGui_ImplDX10_CreateWindow; + platform_io.Renderer_DestroyWindow = ImGui_ImplDX10_DestroyWindow; + platform_io.Renderer_SetWindowSize = ImGui_ImplDX10_SetWindowSize; + platform_io.Renderer_RenderWindow = ImGui_ImplDX10_RenderViewport; + platform_io.Renderer_SwapBuffers = ImGui_ImplDX10_SwapBuffers; +} + +void ImGui_ImplDX10_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx10.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx10.h new file mode 100644 index 0000000..39259bd --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx10.h @@ -0,0 +1,32 @@ +// dear imgui: Renderer Backend for DirectX10 +// This needs to be used along with a Platform Backend (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'ID3D10ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +struct ID3D10Device; + +IMGUI_IMPL_API bool ImGui_ImplDX10_Init(ID3D10Device* device); +IMGUI_IMPL_API void ImGui_ImplDX10_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplDX10_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplDX10_RenderDrawData(ImDrawData* draw_data); + +// Use if you want to reset your rendering device without losing Dear ImGui state. +IMGUI_IMPL_API void ImGui_ImplDX10_InvalidateDeviceObjects(); +IMGUI_IMPL_API bool ImGui_ImplDX10_CreateDeviceObjects(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx11.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx11.cpp new file mode 100644 index 0000000..f2b20e4 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx11.cpp @@ -0,0 +1,739 @@ +// dear imgui: Renderer Backend for DirectX11 +// This needs to be used along with a Platform Backend (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-05-19: DirectX11: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-02-18: DirectX11: Change blending equation to preserve alpha in output buffer. +// 2019-08-01: DirectX11: Fixed code querying the Geometry Shader state (would generally error with Debug layer enabled). +// 2019-07-21: DirectX11: Backup, clear and restore Geometry Shader is any is bound when calling ImGui_ImplDX10_RenderDrawData. Clearing Hull/Domain/Compute shaders without backup/restore. +// 2019-05-29: DirectX11: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: DirectX11: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2018-12-03: Misc: Added #pragma comment statement to automatically link with d3dcompiler.lib when using D3DCompile(). +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-08-01: DirectX11: Querying for IDXGIFactory instead of IDXGIFactory1 to increase compatibility. +// 2018-07-13: DirectX11: Fixed unreleased resources in Init and Shutdown functions. +// 2018-06-08: Misc: Extracted imgui_impl_dx11.cpp/.h away from the old combined DX11+Win32 example. +// 2018-06-08: DirectX11: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplDX11_RenderDrawData() in the .h file so you can call it yourself. +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. +// 2016-05-07: DirectX11: Disabling depth-write. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_dx11.h" + +// DirectX +#include +#include +#include +#ifdef _MSC_VER +#pragma comment(lib, "d3dcompiler") // Automatically link with d3dcompiler.lib as we are using D3DCompile() below. +#endif + +// DirectX11 data +struct ImGui_ImplDX11_Data +{ + ID3D11Device* pd3dDevice; + ID3D11DeviceContext* pd3dDeviceContext; + IDXGIFactory* pFactory; + ID3D11Buffer* pVB; + ID3D11Buffer* pIB; + ID3D11VertexShader* pVertexShader; + ID3D11InputLayout* pInputLayout; + ID3D11Buffer* pVertexConstantBuffer; + ID3D11PixelShader* pPixelShader; + ID3D11SamplerState* pFontSampler; + ID3D11ShaderResourceView* pFontTextureView; + ID3D11RasterizerState* pRasterizerState; + ID3D11BlendState* pBlendState; + ID3D11DepthStencilState* pDepthStencilState; + int VertexBufferSize; + int IndexBufferSize; + + ImGui_ImplDX11_Data() { memset((void*)this, 0, sizeof(*this)); VertexBufferSize = 5000; IndexBufferSize = 10000; } +}; + +struct VERTEX_CONSTANT_BUFFER_DX11 +{ + float mvp[4][4]; +}; + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplDX11_Data* ImGui_ImplDX11_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplDX11_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplDX11_InitPlatformInterface(); +static void ImGui_ImplDX11_ShutdownPlatformInterface(); + +// Functions +static void ImGui_ImplDX11_SetupRenderState(ImDrawData* draw_data, ID3D11DeviceContext* ctx) +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + + // Setup viewport + D3D11_VIEWPORT vp; + memset(&vp, 0, sizeof(D3D11_VIEWPORT)); + vp.Width = draw_data->DisplaySize.x; + vp.Height = draw_data->DisplaySize.y; + vp.MinDepth = 0.0f; + vp.MaxDepth = 1.0f; + vp.TopLeftX = vp.TopLeftY = 0; + ctx->RSSetViewports(1, &vp); + + // Setup shader and vertex buffers + unsigned int stride = sizeof(ImDrawVert); + unsigned int offset = 0; + ctx->IASetInputLayout(bd->pInputLayout); + ctx->IASetVertexBuffers(0, 1, &bd->pVB, &stride, &offset); + ctx->IASetIndexBuffer(bd->pIB, sizeof(ImDrawIdx) == 2 ? DXGI_FORMAT_R16_UINT : DXGI_FORMAT_R32_UINT, 0); + ctx->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); + ctx->VSSetShader(bd->pVertexShader, nullptr, 0); + ctx->VSSetConstantBuffers(0, 1, &bd->pVertexConstantBuffer); + ctx->PSSetShader(bd->pPixelShader, nullptr, 0); + ctx->PSSetSamplers(0, 1, &bd->pFontSampler); + ctx->GSSetShader(nullptr, nullptr, 0); + ctx->HSSetShader(nullptr, nullptr, 0); // In theory we should backup and restore this as well.. very infrequently used.. + ctx->DSSetShader(nullptr, nullptr, 0); // In theory we should backup and restore this as well.. very infrequently used.. + ctx->CSSetShader(nullptr, nullptr, 0); // In theory we should backup and restore this as well.. very infrequently used.. + + // Setup blend state + const float blend_factor[4] = { 0.f, 0.f, 0.f, 0.f }; + ctx->OMSetBlendState(bd->pBlendState, blend_factor, 0xffffffff); + ctx->OMSetDepthStencilState(bd->pDepthStencilState, 0); + ctx->RSSetState(bd->pRasterizerState); +} + +// Render function +void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data) +{ + // Avoid rendering when minimized + if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) + return; + + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + ID3D11DeviceContext* ctx = bd->pd3dDeviceContext; + + // Create and grow vertex/index buffers if needed + if (!bd->pVB || bd->VertexBufferSize < draw_data->TotalVtxCount) + { + if (bd->pVB) { bd->pVB->Release(); bd->pVB = nullptr; } + bd->VertexBufferSize = draw_data->TotalVtxCount + 5000; + D3D11_BUFFER_DESC desc; + memset(&desc, 0, sizeof(D3D11_BUFFER_DESC)); + desc.Usage = D3D11_USAGE_DYNAMIC; + desc.ByteWidth = bd->VertexBufferSize * sizeof(ImDrawVert); + desc.BindFlags = D3D11_BIND_VERTEX_BUFFER; + desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + desc.MiscFlags = 0; + if (bd->pd3dDevice->CreateBuffer(&desc, nullptr, &bd->pVB) < 0) + return; + } + if (!bd->pIB || bd->IndexBufferSize < draw_data->TotalIdxCount) + { + if (bd->pIB) { bd->pIB->Release(); bd->pIB = nullptr; } + bd->IndexBufferSize = draw_data->TotalIdxCount + 10000; + D3D11_BUFFER_DESC desc; + memset(&desc, 0, sizeof(D3D11_BUFFER_DESC)); + desc.Usage = D3D11_USAGE_DYNAMIC; + desc.ByteWidth = bd->IndexBufferSize * sizeof(ImDrawIdx); + desc.BindFlags = D3D11_BIND_INDEX_BUFFER; + desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + if (bd->pd3dDevice->CreateBuffer(&desc, nullptr, &bd->pIB) < 0) + return; + } + + // Upload vertex/index data into a single contiguous GPU buffer + D3D11_MAPPED_SUBRESOURCE vtx_resource, idx_resource; + if (ctx->Map(bd->pVB, 0, D3D11_MAP_WRITE_DISCARD, 0, &vtx_resource) != S_OK) + return; + if (ctx->Map(bd->pIB, 0, D3D11_MAP_WRITE_DISCARD, 0, &idx_resource) != S_OK) + return; + ImDrawVert* vtx_dst = (ImDrawVert*)vtx_resource.pData; + ImDrawIdx* idx_dst = (ImDrawIdx*)idx_resource.pData; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); + memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); + vtx_dst += cmd_list->VtxBuffer.Size; + idx_dst += cmd_list->IdxBuffer.Size; + } + ctx->Unmap(bd->pVB, 0); + ctx->Unmap(bd->pIB, 0); + + // Setup orthographic projection matrix into our constant buffer + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. + { + D3D11_MAPPED_SUBRESOURCE mapped_resource; + if (ctx->Map(bd->pVertexConstantBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mapped_resource) != S_OK) + return; + VERTEX_CONSTANT_BUFFER_DX11* constant_buffer = (VERTEX_CONSTANT_BUFFER_DX11*)mapped_resource.pData; + float L = draw_data->DisplayPos.x; + float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; + float T = draw_data->DisplayPos.y; + float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; + float mvp[4][4] = + { + { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, + { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, + { 0.0f, 0.0f, 0.5f, 0.0f }, + { (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f }, + }; + memcpy(&constant_buffer->mvp, mvp, sizeof(mvp)); + ctx->Unmap(bd->pVertexConstantBuffer, 0); + } + + // Backup DX state that will be modified to restore it afterwards (unfortunately this is very ugly looking and verbose. Close your eyes!) + struct BACKUP_DX11_STATE + { + UINT ScissorRectsCount, ViewportsCount; + D3D11_RECT ScissorRects[D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; + D3D11_VIEWPORT Viewports[D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; + ID3D11RasterizerState* RS; + ID3D11BlendState* BlendState; + FLOAT BlendFactor[4]; + UINT SampleMask; + UINT StencilRef; + ID3D11DepthStencilState* DepthStencilState; + ID3D11ShaderResourceView* PSShaderResource; + ID3D11SamplerState* PSSampler; + ID3D11PixelShader* PS; + ID3D11VertexShader* VS; + ID3D11GeometryShader* GS; + UINT PSInstancesCount, VSInstancesCount, GSInstancesCount; + ID3D11ClassInstance *PSInstances[256], *VSInstances[256], *GSInstances[256]; // 256 is max according to PSSetShader documentation + D3D11_PRIMITIVE_TOPOLOGY PrimitiveTopology; + ID3D11Buffer* IndexBuffer, *VertexBuffer, *VSConstantBuffer; + UINT IndexBufferOffset, VertexBufferStride, VertexBufferOffset; + DXGI_FORMAT IndexBufferFormat; + ID3D11InputLayout* InputLayout; + }; + BACKUP_DX11_STATE old = {}; + old.ScissorRectsCount = old.ViewportsCount = D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE; + ctx->RSGetScissorRects(&old.ScissorRectsCount, old.ScissorRects); + ctx->RSGetViewports(&old.ViewportsCount, old.Viewports); + ctx->RSGetState(&old.RS); + ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); + ctx->OMGetDepthStencilState(&old.DepthStencilState, &old.StencilRef); + ctx->PSGetShaderResources(0, 1, &old.PSShaderResource); + ctx->PSGetSamplers(0, 1, &old.PSSampler); + old.PSInstancesCount = old.VSInstancesCount = old.GSInstancesCount = 256; + ctx->PSGetShader(&old.PS, old.PSInstances, &old.PSInstancesCount); + ctx->VSGetShader(&old.VS, old.VSInstances, &old.VSInstancesCount); + ctx->VSGetConstantBuffers(0, 1, &old.VSConstantBuffer); + ctx->GSGetShader(&old.GS, old.GSInstances, &old.GSInstancesCount); + + ctx->IAGetPrimitiveTopology(&old.PrimitiveTopology); + ctx->IAGetIndexBuffer(&old.IndexBuffer, &old.IndexBufferFormat, &old.IndexBufferOffset); + ctx->IAGetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); + ctx->IAGetInputLayout(&old.InputLayout); + + // Setup desired DX state + ImGui_ImplDX11_SetupRenderState(draw_data, ctx); + + // Render command lists + // (Because we merged all buffers into a single one, we maintain our own offset into them) + int global_idx_offset = 0; + int global_vtx_offset = 0; + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback != nullptr) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplDX11_SetupRenderState(draw_data, ctx); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply scissor/clipping rectangle + const D3D11_RECT r = { (LONG)clip_min.x, (LONG)clip_min.y, (LONG)clip_max.x, (LONG)clip_max.y }; + ctx->RSSetScissorRects(1, &r); + + // Bind texture, Draw + ID3D11ShaderResourceView* texture_srv = (ID3D11ShaderResourceView*)pcmd->GetTexID(); + ctx->PSSetShaderResources(0, 1, &texture_srv); + ctx->DrawIndexed(pcmd->ElemCount, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset); + } + } + global_idx_offset += cmd_list->IdxBuffer.Size; + global_vtx_offset += cmd_list->VtxBuffer.Size; + } + + // Restore modified DX state + ctx->RSSetScissorRects(old.ScissorRectsCount, old.ScissorRects); + ctx->RSSetViewports(old.ViewportsCount, old.Viewports); + ctx->RSSetState(old.RS); if (old.RS) old.RS->Release(); + ctx->OMSetBlendState(old.BlendState, old.BlendFactor, old.SampleMask); if (old.BlendState) old.BlendState->Release(); + ctx->OMSetDepthStencilState(old.DepthStencilState, old.StencilRef); if (old.DepthStencilState) old.DepthStencilState->Release(); + ctx->PSSetShaderResources(0, 1, &old.PSShaderResource); if (old.PSShaderResource) old.PSShaderResource->Release(); + ctx->PSSetSamplers(0, 1, &old.PSSampler); if (old.PSSampler) old.PSSampler->Release(); + ctx->PSSetShader(old.PS, old.PSInstances, old.PSInstancesCount); if (old.PS) old.PS->Release(); + for (UINT i = 0; i < old.PSInstancesCount; i++) if (old.PSInstances[i]) old.PSInstances[i]->Release(); + ctx->VSSetShader(old.VS, old.VSInstances, old.VSInstancesCount); if (old.VS) old.VS->Release(); + ctx->VSSetConstantBuffers(0, 1, &old.VSConstantBuffer); if (old.VSConstantBuffer) old.VSConstantBuffer->Release(); + ctx->GSSetShader(old.GS, old.GSInstances, old.GSInstancesCount); if (old.GS) old.GS->Release(); + for (UINT i = 0; i < old.VSInstancesCount; i++) if (old.VSInstances[i]) old.VSInstances[i]->Release(); + ctx->IASetPrimitiveTopology(old.PrimitiveTopology); + ctx->IASetIndexBuffer(old.IndexBuffer, old.IndexBufferFormat, old.IndexBufferOffset); if (old.IndexBuffer) old.IndexBuffer->Release(); + ctx->IASetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); if (old.VertexBuffer) old.VertexBuffer->Release(); + ctx->IASetInputLayout(old.InputLayout); if (old.InputLayout) old.InputLayout->Release(); +} + +static void ImGui_ImplDX11_CreateFontsTexture() +{ + // Build texture atlas + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + + // Upload texture to graphics system + { + D3D11_TEXTURE2D_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.Width = width; + desc.Height = height; + desc.MipLevels = 1; + desc.ArraySize = 1; + desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + desc.SampleDesc.Count = 1; + desc.Usage = D3D11_USAGE_DEFAULT; + desc.BindFlags = D3D11_BIND_SHADER_RESOURCE; + desc.CPUAccessFlags = 0; + + ID3D11Texture2D* pTexture = nullptr; + D3D11_SUBRESOURCE_DATA subResource; + subResource.pSysMem = pixels; + subResource.SysMemPitch = desc.Width * 4; + subResource.SysMemSlicePitch = 0; + bd->pd3dDevice->CreateTexture2D(&desc, &subResource, &pTexture); + IM_ASSERT(pTexture != nullptr); + + // Create texture view + D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc; + ZeroMemory(&srvDesc, sizeof(srvDesc)); + srvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + srvDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; + srvDesc.Texture2D.MipLevels = desc.MipLevels; + srvDesc.Texture2D.MostDetailedMip = 0; + bd->pd3dDevice->CreateShaderResourceView(pTexture, &srvDesc, &bd->pFontTextureView); + pTexture->Release(); + } + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)bd->pFontTextureView); + + // Create texture sampler + // (Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling) + { + D3D11_SAMPLER_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR; + desc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP; + desc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP; + desc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP; + desc.MipLODBias = 0.f; + desc.ComparisonFunc = D3D11_COMPARISON_ALWAYS; + desc.MinLOD = 0.f; + desc.MaxLOD = 0.f; + bd->pd3dDevice->CreateSamplerState(&desc, &bd->pFontSampler); + } +} + +bool ImGui_ImplDX11_CreateDeviceObjects() +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + if (!bd->pd3dDevice) + return false; + if (bd->pFontSampler) + ImGui_ImplDX11_InvalidateDeviceObjects(); + + // By using D3DCompile() from / d3dcompiler.lib, we introduce a dependency to a given version of d3dcompiler_XX.dll (see D3DCOMPILER_DLL_A) + // If you would like to use this DX11 sample code but remove this dependency you can: + // 1) compile once, save the compiled shader blobs into a file or source code and pass them to CreateVertexShader()/CreatePixelShader() [preferred solution] + // 2) use code to detect any version of the DLL and grab a pointer to D3DCompile from the DLL. + // See https://github.com/ocornut/imgui/pull/638 for sources and details. + + // Create the vertex shader + { + static const char* vertexShader = + "cbuffer vertexBuffer : register(b0) \ + {\ + float4x4 ProjectionMatrix; \ + };\ + struct VS_INPUT\ + {\ + float2 pos : POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + \ + struct PS_INPUT\ + {\ + float4 pos : SV_POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + \ + PS_INPUT main(VS_INPUT input)\ + {\ + PS_INPUT output;\ + output.pos = mul( ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f));\ + output.col = input.col;\ + output.uv = input.uv;\ + return output;\ + }"; + + ID3DBlob* vertexShaderBlob; + if (FAILED(D3DCompile(vertexShader, strlen(vertexShader), nullptr, nullptr, nullptr, "main", "vs_4_0", 0, 0, &vertexShaderBlob, nullptr))) + return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! + if (bd->pd3dDevice->CreateVertexShader(vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), nullptr, &bd->pVertexShader) != S_OK) + { + vertexShaderBlob->Release(); + return false; + } + + // Create the input layout + D3D11_INPUT_ELEMENT_DESC local_layout[] = + { + { "POSITION", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, pos), D3D11_INPUT_PER_VERTEX_DATA, 0 }, + { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, uv), D3D11_INPUT_PER_VERTEX_DATA, 0 }, + { "COLOR", 0, DXGI_FORMAT_R8G8B8A8_UNORM, 0, (UINT)IM_OFFSETOF(ImDrawVert, col), D3D11_INPUT_PER_VERTEX_DATA, 0 }, + }; + if (bd->pd3dDevice->CreateInputLayout(local_layout, 3, vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), &bd->pInputLayout) != S_OK) + { + vertexShaderBlob->Release(); + return false; + } + vertexShaderBlob->Release(); + + // Create the constant buffer + { + D3D11_BUFFER_DESC desc; + desc.ByteWidth = sizeof(VERTEX_CONSTANT_BUFFER_DX11); + desc.Usage = D3D11_USAGE_DYNAMIC; + desc.BindFlags = D3D11_BIND_CONSTANT_BUFFER; + desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + desc.MiscFlags = 0; + bd->pd3dDevice->CreateBuffer(&desc, nullptr, &bd->pVertexConstantBuffer); + } + } + + // Create the pixel shader + { + static const char* pixelShader = + "struct PS_INPUT\ + {\ + float4 pos : SV_POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + sampler sampler0;\ + Texture2D texture0;\ + \ + float4 main(PS_INPUT input) : SV_Target\ + {\ + float4 out_col = input.col * texture0.Sample(sampler0, input.uv); \ + return out_col; \ + }"; + + ID3DBlob* pixelShaderBlob; + if (FAILED(D3DCompile(pixelShader, strlen(pixelShader), nullptr, nullptr, nullptr, "main", "ps_4_0", 0, 0, &pixelShaderBlob, nullptr))) + return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! + if (bd->pd3dDevice->CreatePixelShader(pixelShaderBlob->GetBufferPointer(), pixelShaderBlob->GetBufferSize(), nullptr, &bd->pPixelShader) != S_OK) + { + pixelShaderBlob->Release(); + return false; + } + pixelShaderBlob->Release(); + } + + // Create the blending setup + { + D3D11_BLEND_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.AlphaToCoverageEnable = false; + desc.RenderTarget[0].BlendEnable = true; + desc.RenderTarget[0].SrcBlend = D3D11_BLEND_SRC_ALPHA; + desc.RenderTarget[0].DestBlend = D3D11_BLEND_INV_SRC_ALPHA; + desc.RenderTarget[0].BlendOp = D3D11_BLEND_OP_ADD; + desc.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_ONE; + desc.RenderTarget[0].DestBlendAlpha = D3D11_BLEND_INV_SRC_ALPHA; + desc.RenderTarget[0].BlendOpAlpha = D3D11_BLEND_OP_ADD; + desc.RenderTarget[0].RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL; + bd->pd3dDevice->CreateBlendState(&desc, &bd->pBlendState); + } + + // Create the rasterizer state + { + D3D11_RASTERIZER_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.FillMode = D3D11_FILL_SOLID; + desc.CullMode = D3D11_CULL_NONE; + desc.ScissorEnable = true; + desc.DepthClipEnable = true; + bd->pd3dDevice->CreateRasterizerState(&desc, &bd->pRasterizerState); + } + + // Create depth-stencil State + { + D3D11_DEPTH_STENCIL_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.DepthEnable = false; + desc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL; + desc.DepthFunc = D3D11_COMPARISON_ALWAYS; + desc.StencilEnable = false; + desc.FrontFace.StencilFailOp = desc.FrontFace.StencilDepthFailOp = desc.FrontFace.StencilPassOp = D3D11_STENCIL_OP_KEEP; + desc.FrontFace.StencilFunc = D3D11_COMPARISON_ALWAYS; + desc.BackFace = desc.FrontFace; + bd->pd3dDevice->CreateDepthStencilState(&desc, &bd->pDepthStencilState); + } + + ImGui_ImplDX11_CreateFontsTexture(); + + return true; +} + +void ImGui_ImplDX11_InvalidateDeviceObjects() +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + if (!bd->pd3dDevice) + return; + + if (bd->pFontSampler) { bd->pFontSampler->Release(); bd->pFontSampler = nullptr; } + if (bd->pFontTextureView) { bd->pFontTextureView->Release(); bd->pFontTextureView = nullptr; ImGui::GetIO().Fonts->SetTexID(0); } // We copied data->pFontTextureView to io.Fonts->TexID so let's clear that as well. + if (bd->pIB) { bd->pIB->Release(); bd->pIB = nullptr; } + if (bd->pVB) { bd->pVB->Release(); bd->pVB = nullptr; } + if (bd->pBlendState) { bd->pBlendState->Release(); bd->pBlendState = nullptr; } + if (bd->pDepthStencilState) { bd->pDepthStencilState->Release(); bd->pDepthStencilState = nullptr; } + if (bd->pRasterizerState) { bd->pRasterizerState->Release(); bd->pRasterizerState = nullptr; } + if (bd->pPixelShader) { bd->pPixelShader->Release(); bd->pPixelShader = nullptr; } + if (bd->pVertexConstantBuffer) { bd->pVertexConstantBuffer->Release(); bd->pVertexConstantBuffer = nullptr; } + if (bd->pInputLayout) { bd->pInputLayout->Release(); bd->pInputLayout = nullptr; } + if (bd->pVertexShader) { bd->pVertexShader->Release(); bd->pVertexShader = nullptr; } +} + +bool ImGui_ImplDX11_Init(ID3D11Device* device, ID3D11DeviceContext* device_context) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + + // Setup backend capabilities flags + ImGui_ImplDX11_Data* bd = IM_NEW(ImGui_ImplDX11_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_dx11"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + + // Get factory from device + IDXGIDevice* pDXGIDevice = nullptr; + IDXGIAdapter* pDXGIAdapter = nullptr; + IDXGIFactory* pFactory = nullptr; + + if (device->QueryInterface(IID_PPV_ARGS(&pDXGIDevice)) == S_OK) + if (pDXGIDevice->GetParent(IID_PPV_ARGS(&pDXGIAdapter)) == S_OK) + if (pDXGIAdapter->GetParent(IID_PPV_ARGS(&pFactory)) == S_OK) + { + bd->pd3dDevice = device; + bd->pd3dDeviceContext = device_context; + bd->pFactory = pFactory; + } + if (pDXGIDevice) pDXGIDevice->Release(); + if (pDXGIAdapter) pDXGIAdapter->Release(); + bd->pd3dDevice->AddRef(); + bd->pd3dDeviceContext->AddRef(); + + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplDX11_InitPlatformInterface(); + + return true; +} + +void ImGui_ImplDX11_Shutdown() +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplDX11_ShutdownPlatformInterface(); + ImGui_ImplDX11_InvalidateDeviceObjects(); + if (bd->pFactory) { bd->pFactory->Release(); } + if (bd->pd3dDevice) { bd->pd3dDevice->Release(); } + if (bd->pd3dDeviceContext) { bd->pd3dDeviceContext->Release(); } + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_RendererHasVtxOffset | ImGuiBackendFlags_RendererHasViewports); + IM_DELETE(bd); +} + +void ImGui_ImplDX11_NewFrame() +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplDX11_Init()?"); + + if (!bd->pFontSampler) + ImGui_ImplDX11_CreateDeviceObjects(); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +// Helper structure we store in the void* RendererUserData field of each ImGuiViewport to easily retrieve our backend data. +struct ImGui_ImplDX11_ViewportData +{ + IDXGISwapChain* SwapChain; + ID3D11RenderTargetView* RTView; + + ImGui_ImplDX11_ViewportData() { SwapChain = nullptr; RTView = nullptr; } + ~ImGui_ImplDX11_ViewportData() { IM_ASSERT(SwapChain == nullptr && RTView == nullptr); } +}; + +static void ImGui_ImplDX11_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + ImGui_ImplDX11_ViewportData* vd = IM_NEW(ImGui_ImplDX11_ViewportData)(); + viewport->RendererUserData = vd; + + // PlatformHandleRaw should always be a HWND, whereas PlatformHandle might be a higher-level handle (e.g. GLFWWindow*, SDL_Window*). + // Some backends will leave PlatformHandleRaw == 0, in which case we assume PlatformHandle will contain the HWND. + HWND hwnd = viewport->PlatformHandleRaw ? (HWND)viewport->PlatformHandleRaw : (HWND)viewport->PlatformHandle; + IM_ASSERT(hwnd != 0); + + // Create swap chain + DXGI_SWAP_CHAIN_DESC sd; + ZeroMemory(&sd, sizeof(sd)); + sd.BufferDesc.Width = (UINT)viewport->Size.x; + sd.BufferDesc.Height = (UINT)viewport->Size.y; + sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + sd.SampleDesc.Count = 1; + sd.SampleDesc.Quality = 0; + sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + sd.BufferCount = 1; + sd.OutputWindow = hwnd; + sd.Windowed = TRUE; + sd.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; + sd.Flags = 0; + + IM_ASSERT(vd->SwapChain == nullptr && vd->RTView == nullptr); + bd->pFactory->CreateSwapChain(bd->pd3dDevice, &sd, &vd->SwapChain); + + // Create the render target + if (vd->SwapChain) + { + ID3D11Texture2D* pBackBuffer; + vd->SwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); + bd->pd3dDevice->CreateRenderTargetView(pBackBuffer, nullptr, &vd->RTView); + pBackBuffer->Release(); + } +} + +static void ImGui_ImplDX11_DestroyWindow(ImGuiViewport* viewport) +{ + // The main viewport (owned by the application) will always have RendererUserData == nullptr since we didn't create the data for it. + if (ImGui_ImplDX11_ViewportData* vd = (ImGui_ImplDX11_ViewportData*)viewport->RendererUserData) + { + if (vd->SwapChain) + vd->SwapChain->Release(); + vd->SwapChain = nullptr; + if (vd->RTView) + vd->RTView->Release(); + vd->RTView = nullptr; + IM_DELETE(vd); + } + viewport->RendererUserData = nullptr; +} + +static void ImGui_ImplDX11_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + ImGui_ImplDX11_ViewportData* vd = (ImGui_ImplDX11_ViewportData*)viewport->RendererUserData; + if (vd->RTView) + { + vd->RTView->Release(); + vd->RTView = nullptr; + } + if (vd->SwapChain) + { + ID3D11Texture2D* pBackBuffer = nullptr; + vd->SwapChain->ResizeBuffers(0, (UINT)size.x, (UINT)size.y, DXGI_FORMAT_UNKNOWN, 0); + vd->SwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); + if (pBackBuffer == nullptr) { fprintf(stderr, "ImGui_ImplDX11_SetWindowSize() failed creating buffers.\n"); return; } + bd->pd3dDevice->CreateRenderTargetView(pBackBuffer, nullptr, &vd->RTView); + pBackBuffer->Release(); + } +} + +static void ImGui_ImplDX11_RenderWindow(ImGuiViewport* viewport, void*) +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + ImGui_ImplDX11_ViewportData* vd = (ImGui_ImplDX11_ViewportData*)viewport->RendererUserData; + ImVec4 clear_color = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); + bd->pd3dDeviceContext->OMSetRenderTargets(1, &vd->RTView, nullptr); + if (!(viewport->Flags & ImGuiViewportFlags_NoRendererClear)) + bd->pd3dDeviceContext->ClearRenderTargetView(vd->RTView, (float*)&clear_color); + ImGui_ImplDX11_RenderDrawData(viewport->DrawData); +} + +static void ImGui_ImplDX11_SwapBuffers(ImGuiViewport* viewport, void*) +{ + ImGui_ImplDX11_ViewportData* vd = (ImGui_ImplDX11_ViewportData*)viewport->RendererUserData; + vd->SwapChain->Present(0, 0); // Present without vsync +} + +static void ImGui_ImplDX11_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Renderer_CreateWindow = ImGui_ImplDX11_CreateWindow; + platform_io.Renderer_DestroyWindow = ImGui_ImplDX11_DestroyWindow; + platform_io.Renderer_SetWindowSize = ImGui_ImplDX11_SetWindowSize; + platform_io.Renderer_RenderWindow = ImGui_ImplDX11_RenderWindow; + platform_io.Renderer_SwapBuffers = ImGui_ImplDX11_SwapBuffers; +} + +static void ImGui_ImplDX11_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx11.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx11.h new file mode 100644 index 0000000..1713fbd --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx11.h @@ -0,0 +1,33 @@ +// dear imgui: Renderer Backend for DirectX11 +// This needs to be used along with a Platform Backend (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +struct ID3D11Device; +struct ID3D11DeviceContext; + +IMGUI_IMPL_API bool ImGui_ImplDX11_Init(ID3D11Device* device, ID3D11DeviceContext* device_context); +IMGUI_IMPL_API void ImGui_ImplDX11_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplDX11_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data); + +// Use if you want to reset your rendering device without losing Dear ImGui state. +IMGUI_IMPL_API void ImGui_ImplDX11_InvalidateDeviceObjects(); +IMGUI_IMPL_API bool ImGui_ImplDX11_CreateDeviceObjects(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx12.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx12.cpp new file mode 100644 index 0000000..22261a1 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx12.cpp @@ -0,0 +1,1084 @@ +// dear imgui: Renderer Backend for DirectX12 +// This needs to be used along with a Platform Backend (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'D3D12_GPU_DESCRIPTOR_HANDLE' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. +// FIXME: The transition from removing a viewport and moving the window in an existing hosted viewport tends to flicker. + +// Important: to compile on 32-bit systems, this backend requires code to be compiled with '#define ImTextureID ImU64'. +// This is because we need ImTextureID to carry a 64-bit value and by default ImTextureID is defined as void*. +// To build this on 32-bit systems: +// - [Solution 1] IDE/msbuild: in "Properties/C++/Preprocessor Definitions" add 'ImTextureID=ImU64' (this is what we do in the 'example_win32_direct12/example_win32_direct12.vcxproj' project file) +// - [Solution 2] IDE/msbuild: in "Properties/C++/Preprocessor Definitions" add 'IMGUI_USER_CONFIG="my_imgui_config.h"' and inside 'my_imgui_config.h' add '#define ImTextureID ImU64' and as many other options as you like. +// - [Solution 3] IDE/msbuild: edit imconfig.h and add '#define ImTextureID ImU64' (prefer solution 2 to create your own config file!) +// - [Solution 4] command-line: add '/D ImTextureID=ImU64' to your cl.exe command-line (this is what we do in the example_win32_direct12/build_win32.bat file) + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-05-19: DirectX12: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-02-18: DirectX12: Change blending equation to preserve alpha in output buffer. +// 2021-01-11: DirectX12: Improve Windows 7 compatibility (for D3D12On7) by loading d3d12.dll dynamically. +// 2020-09-16: DirectX12: Avoid rendering calls with zero-sized scissor rectangle since it generates a validation layer warning. +// 2020-09-08: DirectX12: Clarified support for building on 32-bit systems by redefining ImTextureID. +// 2019-10-18: DirectX12: *BREAKING CHANGE* Added extra ID3D12DescriptorHeap parameter to ImGui_ImplDX12_Init() function. +// 2019-05-29: DirectX12: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: DirectX12: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2019-03-29: Misc: Various minor tidying up. +// 2018-12-03: Misc: Added #pragma comment statement to automatically link with d3dcompiler.lib when using D3DCompile(). +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-06-12: DirectX12: Moved the ID3D12GraphicsCommandList* parameter from NewFrame() to RenderDrawData(). +// 2018-06-08: Misc: Extracted imgui_impl_dx12.cpp/.h away from the old combined DX12+Win32 example. +// 2018-06-08: DirectX12: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle (to ease support for future multi-viewport). +// 2018-02-22: Merged into master with all Win32 code synchronized to other examples. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_dx12.h" + +// DirectX +#include +#include +#include +#ifdef _MSC_VER +#pragma comment(lib, "d3dcompiler") // Automatically link with d3dcompiler.lib as we are using D3DCompile() below. +#endif + +// DirectX data +struct ImGui_ImplDX12_Data +{ + ID3D12Device* pd3dDevice; + ID3D12RootSignature* pRootSignature; + ID3D12PipelineState* pPipelineState; + DXGI_FORMAT RTVFormat; + ID3D12Resource* pFontTextureResource; + D3D12_CPU_DESCRIPTOR_HANDLE hFontSrvCpuDescHandle; + D3D12_GPU_DESCRIPTOR_HANDLE hFontSrvGpuDescHandle; + ID3D12DescriptorHeap* pd3dSrvDescHeap; + UINT numFramesInFlight; + + ImGui_ImplDX12_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplDX12_Data* ImGui_ImplDX12_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplDX12_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +// Buffers used during the rendering of a frame +struct ImGui_ImplDX12_RenderBuffers +{ + ID3D12Resource* IndexBuffer; + ID3D12Resource* VertexBuffer; + int IndexBufferSize; + int VertexBufferSize; +}; + +// Buffers used for secondary viewports created by the multi-viewports systems +struct ImGui_ImplDX12_FrameContext +{ + ID3D12CommandAllocator* CommandAllocator; + ID3D12Resource* RenderTarget; + D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetCpuDescriptors; +}; + +// Helper structure we store in the void* RendererUserData field of each ImGuiViewport to easily retrieve our backend data. +// Main viewport created by application will only use the Resources field. +// Secondary viewports created by this backend will use all the fields (including Window fields), +struct ImGui_ImplDX12_ViewportData +{ + // Window + ID3D12CommandQueue* CommandQueue; + ID3D12GraphicsCommandList* CommandList; + ID3D12DescriptorHeap* RtvDescHeap; + IDXGISwapChain3* SwapChain; + ID3D12Fence* Fence; + UINT64 FenceSignaledValue; + HANDLE FenceEvent; + UINT NumFramesInFlight; + ImGui_ImplDX12_FrameContext* FrameCtx; + + // Render buffers + UINT FrameIndex; + ImGui_ImplDX12_RenderBuffers* FrameRenderBuffers; + + ImGui_ImplDX12_ViewportData(UINT num_frames_in_flight) + { + CommandQueue = nullptr; + CommandList = nullptr; + RtvDescHeap = nullptr; + SwapChain = nullptr; + Fence = nullptr; + FenceSignaledValue = 0; + FenceEvent = nullptr; + NumFramesInFlight = num_frames_in_flight; + FrameCtx = new ImGui_ImplDX12_FrameContext[NumFramesInFlight]; + FrameIndex = UINT_MAX; + FrameRenderBuffers = new ImGui_ImplDX12_RenderBuffers[NumFramesInFlight]; + + for (UINT i = 0; i < NumFramesInFlight; ++i) + { + FrameCtx[i].CommandAllocator = nullptr; + FrameCtx[i].RenderTarget = nullptr; + + // Create buffers with a default size (they will later be grown as needed) + FrameRenderBuffers[i].IndexBuffer = nullptr; + FrameRenderBuffers[i].VertexBuffer = nullptr; + FrameRenderBuffers[i].VertexBufferSize = 5000; + FrameRenderBuffers[i].IndexBufferSize = 10000; + } + } + ~ImGui_ImplDX12_ViewportData() + { + IM_ASSERT(CommandQueue == nullptr && CommandList == nullptr); + IM_ASSERT(RtvDescHeap == nullptr); + IM_ASSERT(SwapChain == nullptr); + IM_ASSERT(Fence == nullptr); + IM_ASSERT(FenceEvent == nullptr); + + for (UINT i = 0; i < NumFramesInFlight; ++i) + { + IM_ASSERT(FrameCtx[i].CommandAllocator == nullptr && FrameCtx[i].RenderTarget == nullptr); + IM_ASSERT(FrameRenderBuffers[i].IndexBuffer == nullptr && FrameRenderBuffers[i].VertexBuffer == nullptr); + } + + delete[] FrameCtx; FrameCtx = nullptr; + delete[] FrameRenderBuffers; FrameRenderBuffers = nullptr; + } +}; + +struct VERTEX_CONSTANT_BUFFER_DX12 +{ + float mvp[4][4]; +}; + +// Forward Declarations +static void ImGui_ImplDX12_InitPlatformInterface(); +static void ImGui_ImplDX12_ShutdownPlatformInterface(); + +// Functions +static void ImGui_ImplDX12_SetupRenderState(ImDrawData* draw_data, ID3D12GraphicsCommandList* ctx, ImGui_ImplDX12_RenderBuffers* fr) +{ + ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); + + // Setup orthographic projection matrix into our constant buffer + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). + VERTEX_CONSTANT_BUFFER_DX12 vertex_constant_buffer; + { + float L = draw_data->DisplayPos.x; + float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; + float T = draw_data->DisplayPos.y; + float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; + float mvp[4][4] = + { + { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, + { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, + { 0.0f, 0.0f, 0.5f, 0.0f }, + { (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f }, + }; + memcpy(&vertex_constant_buffer.mvp, mvp, sizeof(mvp)); + } + + // Setup viewport + D3D12_VIEWPORT vp; + memset(&vp, 0, sizeof(D3D12_VIEWPORT)); + vp.Width = draw_data->DisplaySize.x; + vp.Height = draw_data->DisplaySize.y; + vp.MinDepth = 0.0f; + vp.MaxDepth = 1.0f; + vp.TopLeftX = vp.TopLeftY = 0.0f; + ctx->RSSetViewports(1, &vp); + + // Bind shader and vertex buffers + unsigned int stride = sizeof(ImDrawVert); + unsigned int offset = 0; + D3D12_VERTEX_BUFFER_VIEW vbv; + memset(&vbv, 0, sizeof(D3D12_VERTEX_BUFFER_VIEW)); + vbv.BufferLocation = fr->VertexBuffer->GetGPUVirtualAddress() + offset; + vbv.SizeInBytes = fr->VertexBufferSize * stride; + vbv.StrideInBytes = stride; + ctx->IASetVertexBuffers(0, 1, &vbv); + D3D12_INDEX_BUFFER_VIEW ibv; + memset(&ibv, 0, sizeof(D3D12_INDEX_BUFFER_VIEW)); + ibv.BufferLocation = fr->IndexBuffer->GetGPUVirtualAddress(); + ibv.SizeInBytes = fr->IndexBufferSize * sizeof(ImDrawIdx); + ibv.Format = sizeof(ImDrawIdx) == 2 ? DXGI_FORMAT_R16_UINT : DXGI_FORMAT_R32_UINT; + ctx->IASetIndexBuffer(&ibv); + ctx->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST); + ctx->SetPipelineState(bd->pPipelineState); + ctx->SetGraphicsRootSignature(bd->pRootSignature); + ctx->SetGraphicsRoot32BitConstants(0, 16, &vertex_constant_buffer, 0); + + // Setup blend factor + const float blend_factor[4] = { 0.f, 0.f, 0.f, 0.f }; + ctx->OMSetBlendFactor(blend_factor); +} + +template +static inline void SafeRelease(T*& res) +{ + if (res) + res->Release(); + res = nullptr; +} + +// Render function +void ImGui_ImplDX12_RenderDrawData(ImDrawData* draw_data, ID3D12GraphicsCommandList* ctx) +{ + // Avoid rendering when minimized + if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) + return; + + ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); + ImGui_ImplDX12_ViewportData* vd = (ImGui_ImplDX12_ViewportData*)draw_data->OwnerViewport->RendererUserData; + vd->FrameIndex++; + ImGui_ImplDX12_RenderBuffers* fr = &vd->FrameRenderBuffers[vd->FrameIndex % bd->numFramesInFlight]; + + // Create and grow vertex/index buffers if needed + if (fr->VertexBuffer == nullptr || fr->VertexBufferSize < draw_data->TotalVtxCount) + { + SafeRelease(fr->VertexBuffer); + fr->VertexBufferSize = draw_data->TotalVtxCount + 5000; + D3D12_HEAP_PROPERTIES props; + memset(&props, 0, sizeof(D3D12_HEAP_PROPERTIES)); + props.Type = D3D12_HEAP_TYPE_UPLOAD; + props.CPUPageProperty = D3D12_CPU_PAGE_PROPERTY_UNKNOWN; + props.MemoryPoolPreference = D3D12_MEMORY_POOL_UNKNOWN; + D3D12_RESOURCE_DESC desc; + memset(&desc, 0, sizeof(D3D12_RESOURCE_DESC)); + desc.Dimension = D3D12_RESOURCE_DIMENSION_BUFFER; + desc.Width = fr->VertexBufferSize * sizeof(ImDrawVert); + desc.Height = 1; + desc.DepthOrArraySize = 1; + desc.MipLevels = 1; + desc.Format = DXGI_FORMAT_UNKNOWN; + desc.SampleDesc.Count = 1; + desc.Layout = D3D12_TEXTURE_LAYOUT_ROW_MAJOR; + desc.Flags = D3D12_RESOURCE_FLAG_NONE; + if (bd->pd3dDevice->CreateCommittedResource(&props, D3D12_HEAP_FLAG_NONE, &desc, D3D12_RESOURCE_STATE_GENERIC_READ, nullptr, IID_PPV_ARGS(&fr->VertexBuffer)) < 0) + return; + } + if (fr->IndexBuffer == nullptr || fr->IndexBufferSize < draw_data->TotalIdxCount) + { + SafeRelease(fr->IndexBuffer); + fr->IndexBufferSize = draw_data->TotalIdxCount + 10000; + D3D12_HEAP_PROPERTIES props; + memset(&props, 0, sizeof(D3D12_HEAP_PROPERTIES)); + props.Type = D3D12_HEAP_TYPE_UPLOAD; + props.CPUPageProperty = D3D12_CPU_PAGE_PROPERTY_UNKNOWN; + props.MemoryPoolPreference = D3D12_MEMORY_POOL_UNKNOWN; + D3D12_RESOURCE_DESC desc; + memset(&desc, 0, sizeof(D3D12_RESOURCE_DESC)); + desc.Dimension = D3D12_RESOURCE_DIMENSION_BUFFER; + desc.Width = fr->IndexBufferSize * sizeof(ImDrawIdx); + desc.Height = 1; + desc.DepthOrArraySize = 1; + desc.MipLevels = 1; + desc.Format = DXGI_FORMAT_UNKNOWN; + desc.SampleDesc.Count = 1; + desc.Layout = D3D12_TEXTURE_LAYOUT_ROW_MAJOR; + desc.Flags = D3D12_RESOURCE_FLAG_NONE; + if (bd->pd3dDevice->CreateCommittedResource(&props, D3D12_HEAP_FLAG_NONE, &desc, D3D12_RESOURCE_STATE_GENERIC_READ, nullptr, IID_PPV_ARGS(&fr->IndexBuffer)) < 0) + return; + } + + // Upload vertex/index data into a single contiguous GPU buffer + void* vtx_resource, *idx_resource; + D3D12_RANGE range; + memset(&range, 0, sizeof(D3D12_RANGE)); + if (fr->VertexBuffer->Map(0, &range, &vtx_resource) != S_OK) + return; + if (fr->IndexBuffer->Map(0, &range, &idx_resource) != S_OK) + return; + ImDrawVert* vtx_dst = (ImDrawVert*)vtx_resource; + ImDrawIdx* idx_dst = (ImDrawIdx*)idx_resource; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); + memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); + vtx_dst += cmd_list->VtxBuffer.Size; + idx_dst += cmd_list->IdxBuffer.Size; + } + fr->VertexBuffer->Unmap(0, &range); + fr->IndexBuffer->Unmap(0, &range); + + // Setup desired DX state + ImGui_ImplDX12_SetupRenderState(draw_data, ctx, fr); + + // Render command lists + // (Because we merged all buffers into a single one, we maintain our own offset into them) + int global_vtx_offset = 0; + int global_idx_offset = 0; + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback != nullptr) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplDX12_SetupRenderState(draw_data, ctx, fr); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply Scissor/clipping rectangle, Bind texture, Draw + const D3D12_RECT r = { (LONG)clip_min.x, (LONG)clip_min.y, (LONG)clip_max.x, (LONG)clip_max.y }; + D3D12_GPU_DESCRIPTOR_HANDLE texture_handle = {}; + texture_handle.ptr = (UINT64)pcmd->GetTexID(); + ctx->SetGraphicsRootDescriptorTable(1, texture_handle); + ctx->RSSetScissorRects(1, &r); + ctx->DrawIndexedInstanced(pcmd->ElemCount, 1, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset, 0); + } + } + global_idx_offset += cmd_list->IdxBuffer.Size; + global_vtx_offset += cmd_list->VtxBuffer.Size; + } +} + +static void ImGui_ImplDX12_CreateFontsTexture() +{ + // Build texture atlas + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + + // Upload texture to graphics system + { + D3D12_HEAP_PROPERTIES props; + memset(&props, 0, sizeof(D3D12_HEAP_PROPERTIES)); + props.Type = D3D12_HEAP_TYPE_DEFAULT; + props.CPUPageProperty = D3D12_CPU_PAGE_PROPERTY_UNKNOWN; + props.MemoryPoolPreference = D3D12_MEMORY_POOL_UNKNOWN; + + D3D12_RESOURCE_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D; + desc.Alignment = 0; + desc.Width = width; + desc.Height = height; + desc.DepthOrArraySize = 1; + desc.MipLevels = 1; + desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + desc.SampleDesc.Count = 1; + desc.SampleDesc.Quality = 0; + desc.Layout = D3D12_TEXTURE_LAYOUT_UNKNOWN; + desc.Flags = D3D12_RESOURCE_FLAG_NONE; + + ID3D12Resource* pTexture = nullptr; + bd->pd3dDevice->CreateCommittedResource(&props, D3D12_HEAP_FLAG_NONE, &desc, + D3D12_RESOURCE_STATE_COPY_DEST, nullptr, IID_PPV_ARGS(&pTexture)); + + UINT uploadPitch = (width * 4 + D3D12_TEXTURE_DATA_PITCH_ALIGNMENT - 1u) & ~(D3D12_TEXTURE_DATA_PITCH_ALIGNMENT - 1u); + UINT uploadSize = height * uploadPitch; + desc.Dimension = D3D12_RESOURCE_DIMENSION_BUFFER; + desc.Alignment = 0; + desc.Width = uploadSize; + desc.Height = 1; + desc.DepthOrArraySize = 1; + desc.MipLevels = 1; + desc.Format = DXGI_FORMAT_UNKNOWN; + desc.SampleDesc.Count = 1; + desc.SampleDesc.Quality = 0; + desc.Layout = D3D12_TEXTURE_LAYOUT_ROW_MAJOR; + desc.Flags = D3D12_RESOURCE_FLAG_NONE; + + props.Type = D3D12_HEAP_TYPE_UPLOAD; + props.CPUPageProperty = D3D12_CPU_PAGE_PROPERTY_UNKNOWN; + props.MemoryPoolPreference = D3D12_MEMORY_POOL_UNKNOWN; + + ID3D12Resource* uploadBuffer = nullptr; + HRESULT hr = bd->pd3dDevice->CreateCommittedResource(&props, D3D12_HEAP_FLAG_NONE, &desc, + D3D12_RESOURCE_STATE_GENERIC_READ, nullptr, IID_PPV_ARGS(&uploadBuffer)); + IM_ASSERT(SUCCEEDED(hr)); + + void* mapped = nullptr; + D3D12_RANGE range = { 0, uploadSize }; + hr = uploadBuffer->Map(0, &range, &mapped); + IM_ASSERT(SUCCEEDED(hr)); + for (int y = 0; y < height; y++) + memcpy((void*) ((uintptr_t) mapped + y * uploadPitch), pixels + y * width * 4, width * 4); + uploadBuffer->Unmap(0, &range); + + D3D12_TEXTURE_COPY_LOCATION srcLocation = {}; + srcLocation.pResource = uploadBuffer; + srcLocation.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT; + srcLocation.PlacedFootprint.Footprint.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + srcLocation.PlacedFootprint.Footprint.Width = width; + srcLocation.PlacedFootprint.Footprint.Height = height; + srcLocation.PlacedFootprint.Footprint.Depth = 1; + srcLocation.PlacedFootprint.Footprint.RowPitch = uploadPitch; + + D3D12_TEXTURE_COPY_LOCATION dstLocation = {}; + dstLocation.pResource = pTexture; + dstLocation.Type = D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX; + dstLocation.SubresourceIndex = 0; + + D3D12_RESOURCE_BARRIER barrier = {}; + barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION; + barrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE; + barrier.Transition.pResource = pTexture; + barrier.Transition.Subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES; + barrier.Transition.StateBefore = D3D12_RESOURCE_STATE_COPY_DEST; + barrier.Transition.StateAfter = D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE; + + ID3D12Fence* fence = nullptr; + hr = bd->pd3dDevice->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&fence)); + IM_ASSERT(SUCCEEDED(hr)); + + HANDLE event = CreateEvent(0, 0, 0, 0); + IM_ASSERT(event != nullptr); + + D3D12_COMMAND_QUEUE_DESC queueDesc = {}; + queueDesc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT; + queueDesc.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE; + queueDesc.NodeMask = 1; + + ID3D12CommandQueue* cmdQueue = nullptr; + hr = bd->pd3dDevice->CreateCommandQueue(&queueDesc, IID_PPV_ARGS(&cmdQueue)); + IM_ASSERT(SUCCEEDED(hr)); + + ID3D12CommandAllocator* cmdAlloc = nullptr; + hr = bd->pd3dDevice->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(&cmdAlloc)); + IM_ASSERT(SUCCEEDED(hr)); + + ID3D12GraphicsCommandList* cmdList = nullptr; + hr = bd->pd3dDevice->CreateCommandList(0, D3D12_COMMAND_LIST_TYPE_DIRECT, cmdAlloc, nullptr, IID_PPV_ARGS(&cmdList)); + IM_ASSERT(SUCCEEDED(hr)); + + cmdList->CopyTextureRegion(&dstLocation, 0, 0, 0, &srcLocation, nullptr); + cmdList->ResourceBarrier(1, &barrier); + + hr = cmdList->Close(); + IM_ASSERT(SUCCEEDED(hr)); + + cmdQueue->ExecuteCommandLists(1, (ID3D12CommandList* const*)&cmdList); + hr = cmdQueue->Signal(fence, 1); + IM_ASSERT(SUCCEEDED(hr)); + + fence->SetEventOnCompletion(1, event); + WaitForSingleObject(event, INFINITE); + + cmdList->Release(); + cmdAlloc->Release(); + cmdQueue->Release(); + CloseHandle(event); + fence->Release(); + uploadBuffer->Release(); + + // Create texture view + D3D12_SHADER_RESOURCE_VIEW_DESC srvDesc; + ZeroMemory(&srvDesc, sizeof(srvDesc)); + srvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + srvDesc.ViewDimension = D3D12_SRV_DIMENSION_TEXTURE2D; + srvDesc.Texture2D.MipLevels = desc.MipLevels; + srvDesc.Texture2D.MostDetailedMip = 0; + srvDesc.Shader4ComponentMapping = D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING; + bd->pd3dDevice->CreateShaderResourceView(pTexture, &srvDesc, bd->hFontSrvCpuDescHandle); + SafeRelease(bd->pFontTextureResource); + bd->pFontTextureResource = pTexture; + } + + // Store our identifier + // READ THIS IF THE STATIC_ASSERT() TRIGGERS: + // - Important: to compile on 32-bit systems, this backend requires code to be compiled with '#define ImTextureID ImU64'. + // - This is because we need ImTextureID to carry a 64-bit value and by default ImTextureID is defined as void*. + // [Solution 1] IDE/msbuild: in "Properties/C++/Preprocessor Definitions" add 'ImTextureID=ImU64' (this is what we do in the 'example_win32_direct12/example_win32_direct12.vcxproj' project file) + // [Solution 2] IDE/msbuild: in "Properties/C++/Preprocessor Definitions" add 'IMGUI_USER_CONFIG="my_imgui_config.h"' and inside 'my_imgui_config.h' add '#define ImTextureID ImU64' and as many other options as you like. + // [Solution 3] IDE/msbuild: edit imconfig.h and add '#define ImTextureID ImU64' (prefer solution 2 to create your own config file!) + // [Solution 4] command-line: add '/D ImTextureID=ImU64' to your cl.exe command-line (this is what we do in the example_win32_direct12/build_win32.bat file) + static_assert(sizeof(ImTextureID) >= sizeof(bd->hFontSrvGpuDescHandle.ptr), "Can't pack descriptor handle into TexID, 32-bit not supported yet."); + io.Fonts->SetTexID((ImTextureID)bd->hFontSrvGpuDescHandle.ptr); +} + +bool ImGui_ImplDX12_CreateDeviceObjects() +{ + ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); + if (!bd || !bd->pd3dDevice) + return false; + if (bd->pPipelineState) + ImGui_ImplDX12_InvalidateDeviceObjects(); + + // Create the root signature + { + D3D12_DESCRIPTOR_RANGE descRange = {}; + descRange.RangeType = D3D12_DESCRIPTOR_RANGE_TYPE_SRV; + descRange.NumDescriptors = 1; + descRange.BaseShaderRegister = 0; + descRange.RegisterSpace = 0; + descRange.OffsetInDescriptorsFromTableStart = 0; + + D3D12_ROOT_PARAMETER param[2] = {}; + + param[0].ParameterType = D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS; + param[0].Constants.ShaderRegister = 0; + param[0].Constants.RegisterSpace = 0; + param[0].Constants.Num32BitValues = 16; + param[0].ShaderVisibility = D3D12_SHADER_VISIBILITY_VERTEX; + + param[1].ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE; + param[1].DescriptorTable.NumDescriptorRanges = 1; + param[1].DescriptorTable.pDescriptorRanges = &descRange; + param[1].ShaderVisibility = D3D12_SHADER_VISIBILITY_PIXEL; + + // Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling. + D3D12_STATIC_SAMPLER_DESC staticSampler = {}; + staticSampler.Filter = D3D12_FILTER_MIN_MAG_MIP_LINEAR; + staticSampler.AddressU = D3D12_TEXTURE_ADDRESS_MODE_WRAP; + staticSampler.AddressV = D3D12_TEXTURE_ADDRESS_MODE_WRAP; + staticSampler.AddressW = D3D12_TEXTURE_ADDRESS_MODE_WRAP; + staticSampler.MipLODBias = 0.f; + staticSampler.MaxAnisotropy = 0; + staticSampler.ComparisonFunc = D3D12_COMPARISON_FUNC_ALWAYS; + staticSampler.BorderColor = D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK; + staticSampler.MinLOD = 0.f; + staticSampler.MaxLOD = 0.f; + staticSampler.ShaderRegister = 0; + staticSampler.RegisterSpace = 0; + staticSampler.ShaderVisibility = D3D12_SHADER_VISIBILITY_PIXEL; + + D3D12_ROOT_SIGNATURE_DESC desc = {}; + desc.NumParameters = _countof(param); + desc.pParameters = param; + desc.NumStaticSamplers = 1; + desc.pStaticSamplers = &staticSampler; + desc.Flags = + D3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT | + D3D12_ROOT_SIGNATURE_FLAG_DENY_HULL_SHADER_ROOT_ACCESS | + D3D12_ROOT_SIGNATURE_FLAG_DENY_DOMAIN_SHADER_ROOT_ACCESS | + D3D12_ROOT_SIGNATURE_FLAG_DENY_GEOMETRY_SHADER_ROOT_ACCESS; + + // Load d3d12.dll and D3D12SerializeRootSignature() function address dynamically to facilitate using with D3D12On7. + // See if any version of d3d12.dll is already loaded in the process. If so, give preference to that. + static HINSTANCE d3d12_dll = ::GetModuleHandleA("d3d12.dll"); + if (d3d12_dll == nullptr) + { + // Attempt to load d3d12.dll from local directories. This will only succeed if + // (1) the current OS is Windows 7, and + // (2) there exists a version of d3d12.dll for Windows 7 (D3D12On7) in one of the following directories. + // See https://github.com/ocornut/imgui/pull/3696 for details. + const char* localD3d12Paths[] = { ".\\d3d12.dll", ".\\d3d12on7\\d3d12.dll", ".\\12on7\\d3d12.dll" }; // A. current directory, B. used by some games, C. used in Microsoft D3D12On7 sample + for (int i = 0; i < IM_ARRAYSIZE(localD3d12Paths); i++) + if ((d3d12_dll = ::LoadLibraryA(localD3d12Paths[i])) != nullptr) + break; + + // If failed, we are on Windows >= 10. + if (d3d12_dll == nullptr) + d3d12_dll = ::LoadLibraryA("d3d12.dll"); + + if (d3d12_dll == nullptr) + return false; + } + + PFN_D3D12_SERIALIZE_ROOT_SIGNATURE D3D12SerializeRootSignatureFn = (PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)::GetProcAddress(d3d12_dll, "D3D12SerializeRootSignature"); + if (D3D12SerializeRootSignatureFn == nullptr) + return false; + + ID3DBlob* blob = nullptr; + if (D3D12SerializeRootSignatureFn(&desc, D3D_ROOT_SIGNATURE_VERSION_1, &blob, nullptr) != S_OK) + return false; + + bd->pd3dDevice->CreateRootSignature(0, blob->GetBufferPointer(), blob->GetBufferSize(), IID_PPV_ARGS(&bd->pRootSignature)); + blob->Release(); + } + + // By using D3DCompile() from / d3dcompiler.lib, we introduce a dependency to a given version of d3dcompiler_XX.dll (see D3DCOMPILER_DLL_A) + // If you would like to use this DX12 sample code but remove this dependency you can: + // 1) compile once, save the compiled shader blobs into a file or source code and assign them to psoDesc.VS/PS [preferred solution] + // 2) use code to detect any version of the DLL and grab a pointer to D3DCompile from the DLL. + // See https://github.com/ocornut/imgui/pull/638 for sources and details. + + D3D12_GRAPHICS_PIPELINE_STATE_DESC psoDesc; + memset(&psoDesc, 0, sizeof(D3D12_GRAPHICS_PIPELINE_STATE_DESC)); + psoDesc.NodeMask = 1; + psoDesc.PrimitiveTopologyType = D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE; + psoDesc.pRootSignature = bd->pRootSignature; + psoDesc.SampleMask = UINT_MAX; + psoDesc.NumRenderTargets = 1; + psoDesc.RTVFormats[0] = bd->RTVFormat; + psoDesc.SampleDesc.Count = 1; + psoDesc.Flags = D3D12_PIPELINE_STATE_FLAG_NONE; + + ID3DBlob* vertexShaderBlob; + ID3DBlob* pixelShaderBlob; + + // Create the vertex shader + { + static const char* vertexShader = + "cbuffer vertexBuffer : register(b0) \ + {\ + float4x4 ProjectionMatrix; \ + };\ + struct VS_INPUT\ + {\ + float2 pos : POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + \ + struct PS_INPUT\ + {\ + float4 pos : SV_POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + \ + PS_INPUT main(VS_INPUT input)\ + {\ + PS_INPUT output;\ + output.pos = mul( ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f));\ + output.col = input.col;\ + output.uv = input.uv;\ + return output;\ + }"; + + if (FAILED(D3DCompile(vertexShader, strlen(vertexShader), nullptr, nullptr, nullptr, "main", "vs_5_0", 0, 0, &vertexShaderBlob, nullptr))) + return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! + psoDesc.VS = { vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize() }; + + // Create the input layout + static D3D12_INPUT_ELEMENT_DESC local_layout[] = + { + { "POSITION", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, pos), D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 }, + { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, uv), D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 }, + { "COLOR", 0, DXGI_FORMAT_R8G8B8A8_UNORM, 0, (UINT)IM_OFFSETOF(ImDrawVert, col), D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 }, + }; + psoDesc.InputLayout = { local_layout, 3 }; + } + + // Create the pixel shader + { + static const char* pixelShader = + "struct PS_INPUT\ + {\ + float4 pos : SV_POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + SamplerState sampler0 : register(s0);\ + Texture2D texture0 : register(t0);\ + \ + float4 main(PS_INPUT input) : SV_Target\ + {\ + float4 out_col = input.col * texture0.Sample(sampler0, input.uv); \ + return out_col; \ + }"; + + if (FAILED(D3DCompile(pixelShader, strlen(pixelShader), nullptr, nullptr, nullptr, "main", "ps_5_0", 0, 0, &pixelShaderBlob, nullptr))) + { + vertexShaderBlob->Release(); + return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! + } + psoDesc.PS = { pixelShaderBlob->GetBufferPointer(), pixelShaderBlob->GetBufferSize() }; + } + + // Create the blending setup + { + D3D12_BLEND_DESC& desc = psoDesc.BlendState; + desc.AlphaToCoverageEnable = false; + desc.RenderTarget[0].BlendEnable = true; + desc.RenderTarget[0].SrcBlend = D3D12_BLEND_SRC_ALPHA; + desc.RenderTarget[0].DestBlend = D3D12_BLEND_INV_SRC_ALPHA; + desc.RenderTarget[0].BlendOp = D3D12_BLEND_OP_ADD; + desc.RenderTarget[0].SrcBlendAlpha = D3D12_BLEND_ONE; + desc.RenderTarget[0].DestBlendAlpha = D3D12_BLEND_INV_SRC_ALPHA; + desc.RenderTarget[0].BlendOpAlpha = D3D12_BLEND_OP_ADD; + desc.RenderTarget[0].RenderTargetWriteMask = D3D12_COLOR_WRITE_ENABLE_ALL; + } + + // Create the rasterizer state + { + D3D12_RASTERIZER_DESC& desc = psoDesc.RasterizerState; + desc.FillMode = D3D12_FILL_MODE_SOLID; + desc.CullMode = D3D12_CULL_MODE_NONE; + desc.FrontCounterClockwise = FALSE; + desc.DepthBias = D3D12_DEFAULT_DEPTH_BIAS; + desc.DepthBiasClamp = D3D12_DEFAULT_DEPTH_BIAS_CLAMP; + desc.SlopeScaledDepthBias = D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS; + desc.DepthClipEnable = true; + desc.MultisampleEnable = FALSE; + desc.AntialiasedLineEnable = FALSE; + desc.ForcedSampleCount = 0; + desc.ConservativeRaster = D3D12_CONSERVATIVE_RASTERIZATION_MODE_OFF; + } + + // Create depth-stencil State + { + D3D12_DEPTH_STENCIL_DESC& desc = psoDesc.DepthStencilState; + desc.DepthEnable = false; + desc.DepthWriteMask = D3D12_DEPTH_WRITE_MASK_ALL; + desc.DepthFunc = D3D12_COMPARISON_FUNC_ALWAYS; + desc.StencilEnable = false; + desc.FrontFace.StencilFailOp = desc.FrontFace.StencilDepthFailOp = desc.FrontFace.StencilPassOp = D3D12_STENCIL_OP_KEEP; + desc.FrontFace.StencilFunc = D3D12_COMPARISON_FUNC_ALWAYS; + desc.BackFace = desc.FrontFace; + } + + HRESULT result_pipeline_state = bd->pd3dDevice->CreateGraphicsPipelineState(&psoDesc, IID_PPV_ARGS(&bd->pPipelineState)); + vertexShaderBlob->Release(); + pixelShaderBlob->Release(); + if (result_pipeline_state != S_OK) + return false; + + ImGui_ImplDX12_CreateFontsTexture(); + + return true; +} + +static void ImGui_ImplDX12_DestroyRenderBuffers(ImGui_ImplDX12_RenderBuffers* render_buffers) +{ + SafeRelease(render_buffers->IndexBuffer); + SafeRelease(render_buffers->VertexBuffer); + render_buffers->IndexBufferSize = render_buffers->VertexBufferSize = 0; +} + +void ImGui_ImplDX12_InvalidateDeviceObjects() +{ + ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); + if (!bd || !bd->pd3dDevice) + return; + + ImGuiIO& io = ImGui::GetIO(); + SafeRelease(bd->pRootSignature); + SafeRelease(bd->pPipelineState); + SafeRelease(bd->pFontTextureResource); + io.Fonts->SetTexID(0); // We copied bd->pFontTextureView to io.Fonts->TexID so let's clear that as well. +} + +bool ImGui_ImplDX12_Init(ID3D12Device* device, int num_frames_in_flight, DXGI_FORMAT rtv_format, ID3D12DescriptorHeap* cbv_srv_heap, + D3D12_CPU_DESCRIPTOR_HANDLE font_srv_cpu_desc_handle, D3D12_GPU_DESCRIPTOR_HANDLE font_srv_gpu_desc_handle) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + + // Setup backend capabilities flags + ImGui_ImplDX12_Data* bd = IM_NEW(ImGui_ImplDX12_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_dx12"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplDX12_InitPlatformInterface(); + + bd->pd3dDevice = device; + bd->RTVFormat = rtv_format; + bd->hFontSrvCpuDescHandle = font_srv_cpu_desc_handle; + bd->hFontSrvGpuDescHandle = font_srv_gpu_desc_handle; + bd->numFramesInFlight = num_frames_in_flight; + bd->pd3dSrvDescHeap = cbv_srv_heap; + + // Create a dummy ImGui_ImplDX12_ViewportData holder for the main viewport, + // Since this is created and managed by the application, we will only use the ->Resources[] fields. + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + main_viewport->RendererUserData = IM_NEW(ImGui_ImplDX12_ViewportData)(bd->numFramesInFlight); + + return true; +} + +void ImGui_ImplDX12_Shutdown() +{ + ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + // Manually delete main viewport render resources in-case we haven't initialized for viewports + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + if (ImGui_ImplDX12_ViewportData* vd = (ImGui_ImplDX12_ViewportData*)main_viewport->RendererUserData) + { + // We could just call ImGui_ImplDX12_DestroyWindow(main_viewport) as a convenience but that would be misleading since we only use data->Resources[] + for (UINT i = 0; i < bd->numFramesInFlight; i++) + ImGui_ImplDX12_DestroyRenderBuffers(&vd->FrameRenderBuffers[i]); + IM_DELETE(vd); + main_viewport->RendererUserData = nullptr; + } + + // Clean up windows and device objects + ImGui_ImplDX12_ShutdownPlatformInterface(); + ImGui_ImplDX12_InvalidateDeviceObjects(); + + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_RendererHasVtxOffset | ImGuiBackendFlags_RendererHasViewports); + IM_DELETE(bd); +} + +void ImGui_ImplDX12_NewFrame() +{ + ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplDX12_Init()?"); + + if (!bd->pPipelineState) + ImGui_ImplDX12_CreateDeviceObjects(); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +static void ImGui_ImplDX12_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); + ImGui_ImplDX12_ViewportData* vd = IM_NEW(ImGui_ImplDX12_ViewportData)(bd->numFramesInFlight); + viewport->RendererUserData = vd; + + // PlatformHandleRaw should always be a HWND, whereas PlatformHandle might be a higher-level handle (e.g. GLFWWindow*, SDL_Window*). + // Some backends will leave PlatformHandleRaw == 0, in which case we assume PlatformHandle will contain the HWND. + HWND hwnd = viewport->PlatformHandleRaw ? (HWND)viewport->PlatformHandleRaw : (HWND)viewport->PlatformHandle; + IM_ASSERT(hwnd != 0); + + vd->FrameIndex = UINT_MAX; + + // Create command queue. + D3D12_COMMAND_QUEUE_DESC queue_desc = {}; + queue_desc.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE; + queue_desc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT; + + HRESULT res = S_OK; + res = bd->pd3dDevice->CreateCommandQueue(&queue_desc, IID_PPV_ARGS(&vd->CommandQueue)); + IM_ASSERT(res == S_OK); + + // Create command allocator. + for (UINT i = 0; i < bd->numFramesInFlight; ++i) + { + res = bd->pd3dDevice->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(&vd->FrameCtx[i].CommandAllocator)); + IM_ASSERT(res == S_OK); + } + + // Create command list. + res = bd->pd3dDevice->CreateCommandList(0, D3D12_COMMAND_LIST_TYPE_DIRECT, vd->FrameCtx[0].CommandAllocator, nullptr, IID_PPV_ARGS(&vd->CommandList)); + IM_ASSERT(res == S_OK); + vd->CommandList->Close(); + + // Create fence. + res = bd->pd3dDevice->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&vd->Fence)); + IM_ASSERT(res == S_OK); + + vd->FenceEvent = CreateEvent(nullptr, FALSE, FALSE, nullptr); + IM_ASSERT(vd->FenceEvent != nullptr); + + // Create swap chain + // FIXME-VIEWPORT: May want to copy/inherit swap chain settings from the user/application. + DXGI_SWAP_CHAIN_DESC1 sd1; + ZeroMemory(&sd1, sizeof(sd1)); + sd1.BufferCount = bd->numFramesInFlight; + sd1.Width = (UINT)viewport->Size.x; + sd1.Height = (UINT)viewport->Size.y; + sd1.Format = bd->RTVFormat; + sd1.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + sd1.SampleDesc.Count = 1; + sd1.SampleDesc.Quality = 0; + sd1.SwapEffect = DXGI_SWAP_EFFECT_FLIP_DISCARD; + sd1.AlphaMode = DXGI_ALPHA_MODE_UNSPECIFIED; + sd1.Scaling = DXGI_SCALING_STRETCH; + sd1.Stereo = FALSE; + + IDXGIFactory4* dxgi_factory = nullptr; + res = ::CreateDXGIFactory1(IID_PPV_ARGS(&dxgi_factory)); + IM_ASSERT(res == S_OK); + + IDXGISwapChain1* swap_chain = nullptr; + res = dxgi_factory->CreateSwapChainForHwnd(vd->CommandQueue, hwnd, &sd1, nullptr, nullptr, &swap_chain); + IM_ASSERT(res == S_OK); + + dxgi_factory->Release(); + + // Or swapChain.As(&mSwapChain) + IM_ASSERT(vd->SwapChain == nullptr); + swap_chain->QueryInterface(IID_PPV_ARGS(&vd->SwapChain)); + swap_chain->Release(); + + // Create the render targets + if (vd->SwapChain) + { + D3D12_DESCRIPTOR_HEAP_DESC desc = {}; + desc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_RTV; + desc.NumDescriptors = bd->numFramesInFlight; + desc.Flags = D3D12_DESCRIPTOR_HEAP_FLAG_NONE; + desc.NodeMask = 1; + + HRESULT hr = bd->pd3dDevice->CreateDescriptorHeap(&desc, IID_PPV_ARGS(&vd->RtvDescHeap)); + IM_ASSERT(hr == S_OK); + + SIZE_T rtv_descriptor_size = bd->pd3dDevice->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_RTV); + D3D12_CPU_DESCRIPTOR_HANDLE rtv_handle = vd->RtvDescHeap->GetCPUDescriptorHandleForHeapStart(); + for (UINT i = 0; i < bd->numFramesInFlight; i++) + { + vd->FrameCtx[i].RenderTargetCpuDescriptors = rtv_handle; + rtv_handle.ptr += rtv_descriptor_size; + } + + ID3D12Resource* back_buffer; + for (UINT i = 0; i < bd->numFramesInFlight; i++) + { + IM_ASSERT(vd->FrameCtx[i].RenderTarget == nullptr); + vd->SwapChain->GetBuffer(i, IID_PPV_ARGS(&back_buffer)); + bd->pd3dDevice->CreateRenderTargetView(back_buffer, nullptr, vd->FrameCtx[i].RenderTargetCpuDescriptors); + vd->FrameCtx[i].RenderTarget = back_buffer; + } + } + + for (UINT i = 0; i < bd->numFramesInFlight; i++) + ImGui_ImplDX12_DestroyRenderBuffers(&vd->FrameRenderBuffers[i]); +} + +static void ImGui_WaitForPendingOperations(ImGui_ImplDX12_ViewportData* vd) +{ + HRESULT hr = S_FALSE; + if (vd && vd->CommandQueue && vd->Fence && vd->FenceEvent) + { + hr = vd->CommandQueue->Signal(vd->Fence, ++vd->FenceSignaledValue); + IM_ASSERT(hr == S_OK); + ::WaitForSingleObject(vd->FenceEvent, 0); // Reset any forgotten waits + hr = vd->Fence->SetEventOnCompletion(vd->FenceSignaledValue, vd->FenceEvent); + IM_ASSERT(hr == S_OK); + ::WaitForSingleObject(vd->FenceEvent, INFINITE); + } +} + +static void ImGui_ImplDX12_DestroyWindow(ImGuiViewport* viewport) +{ + // The main viewport (owned by the application) will always have RendererUserData == 0 since we didn't create the data for it. + ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); + if (ImGui_ImplDX12_ViewportData* vd = (ImGui_ImplDX12_ViewportData*)viewport->RendererUserData) + { + ImGui_WaitForPendingOperations(vd); + + SafeRelease(vd->CommandQueue); + SafeRelease(vd->CommandList); + SafeRelease(vd->SwapChain); + SafeRelease(vd->RtvDescHeap); + SafeRelease(vd->Fence); + ::CloseHandle(vd->FenceEvent); + vd->FenceEvent = nullptr; + + for (UINT i = 0; i < bd->numFramesInFlight; i++) + { + SafeRelease(vd->FrameCtx[i].RenderTarget); + SafeRelease(vd->FrameCtx[i].CommandAllocator); + ImGui_ImplDX12_DestroyRenderBuffers(&vd->FrameRenderBuffers[i]); + } + IM_DELETE(vd); + } + viewport->RendererUserData = nullptr; +} + +static void ImGui_ImplDX12_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); + ImGui_ImplDX12_ViewportData* vd = (ImGui_ImplDX12_ViewportData*)viewport->RendererUserData; + + ImGui_WaitForPendingOperations(vd); + + for (UINT i = 0; i < bd->numFramesInFlight; i++) + SafeRelease(vd->FrameCtx[i].RenderTarget); + + if (vd->SwapChain) + { + ID3D12Resource* back_buffer = nullptr; + vd->SwapChain->ResizeBuffers(0, (UINT)size.x, (UINT)size.y, DXGI_FORMAT_UNKNOWN, 0); + for (UINT i = 0; i < bd->numFramesInFlight; i++) + { + vd->SwapChain->GetBuffer(i, IID_PPV_ARGS(&back_buffer)); + bd->pd3dDevice->CreateRenderTargetView(back_buffer, nullptr, vd->FrameCtx[i].RenderTargetCpuDescriptors); + vd->FrameCtx[i].RenderTarget = back_buffer; + } + } +} + +static void ImGui_ImplDX12_RenderWindow(ImGuiViewport* viewport, void*) +{ + ImGui_ImplDX12_Data* bd = ImGui_ImplDX12_GetBackendData(); + ImGui_ImplDX12_ViewportData* vd = (ImGui_ImplDX12_ViewportData*)viewport->RendererUserData; + + ImGui_ImplDX12_FrameContext* frame_context = &vd->FrameCtx[vd->FrameIndex % bd->numFramesInFlight]; + UINT back_buffer_idx = vd->SwapChain->GetCurrentBackBufferIndex(); + + const ImVec4 clear_color = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); + D3D12_RESOURCE_BARRIER barrier = {}; + barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION; + barrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE; + barrier.Transition.pResource = vd->FrameCtx[back_buffer_idx].RenderTarget; + barrier.Transition.Subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES; + barrier.Transition.StateBefore = D3D12_RESOURCE_STATE_PRESENT; + barrier.Transition.StateAfter = D3D12_RESOURCE_STATE_RENDER_TARGET; + + // Draw + ID3D12GraphicsCommandList* cmd_list = vd->CommandList; + + frame_context->CommandAllocator->Reset(); + cmd_list->Reset(frame_context->CommandAllocator, nullptr); + cmd_list->ResourceBarrier(1, &barrier); + cmd_list->OMSetRenderTargets(1, &vd->FrameCtx[back_buffer_idx].RenderTargetCpuDescriptors, FALSE, nullptr); + if (!(viewport->Flags & ImGuiViewportFlags_NoRendererClear)) + cmd_list->ClearRenderTargetView(vd->FrameCtx[back_buffer_idx].RenderTargetCpuDescriptors, (float*)&clear_color, 0, nullptr); + cmd_list->SetDescriptorHeaps(1, &bd->pd3dSrvDescHeap); + + ImGui_ImplDX12_RenderDrawData(viewport->DrawData, cmd_list); + + barrier.Transition.StateBefore = D3D12_RESOURCE_STATE_RENDER_TARGET; + barrier.Transition.StateAfter = D3D12_RESOURCE_STATE_PRESENT; + cmd_list->ResourceBarrier(1, &barrier); + cmd_list->Close(); + + vd->CommandQueue->Wait(vd->Fence, vd->FenceSignaledValue); + vd->CommandQueue->ExecuteCommandLists(1, (ID3D12CommandList* const*)&cmd_list); + vd->CommandQueue->Signal(vd->Fence, ++vd->FenceSignaledValue); +} + +static void ImGui_ImplDX12_SwapBuffers(ImGuiViewport* viewport, void*) +{ + ImGui_ImplDX12_ViewportData* vd = (ImGui_ImplDX12_ViewportData*)viewport->RendererUserData; + + vd->SwapChain->Present(0, 0); + while (vd->Fence->GetCompletedValue() < vd->FenceSignaledValue) + ::SwitchToThread(); +} + +void ImGui_ImplDX12_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Renderer_CreateWindow = ImGui_ImplDX12_CreateWindow; + platform_io.Renderer_DestroyWindow = ImGui_ImplDX12_DestroyWindow; + platform_io.Renderer_SetWindowSize = ImGui_ImplDX12_SetWindowSize; + platform_io.Renderer_RenderWindow = ImGui_ImplDX12_RenderWindow; + platform_io.Renderer_SwapBuffers = ImGui_ImplDX12_SwapBuffers; +} + +void ImGui_ImplDX12_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx12.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx12.h new file mode 100644 index 0000000..f304cca --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx12.h @@ -0,0 +1,45 @@ +// dear imgui: Renderer Backend for DirectX12 +// This needs to be used along with a Platform Backend (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'D3D12_GPU_DESCRIPTOR_HANDLE' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// Important: to compile on 32-bit systems, this backend requires code to be compiled with '#define ImTextureID ImU64'. +// See imgui_impl_dx12.cpp file for details. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE +#include // DXGI_FORMAT + +struct ID3D12Device; +struct ID3D12DescriptorHeap; +struct ID3D12GraphicsCommandList; +struct D3D12_CPU_DESCRIPTOR_HANDLE; +struct D3D12_GPU_DESCRIPTOR_HANDLE; + +// cmd_list is the command list that the implementation will use to render imgui draw lists. +// Before calling the render function, caller must prepare cmd_list by resetting it and setting the appropriate +// render target and descriptor heap that contains font_srv_cpu_desc_handle/font_srv_gpu_desc_handle. +// font_srv_cpu_desc_handle and font_srv_gpu_desc_handle are handles to a single SRV descriptor to use for the internal font texture. +IMGUI_IMPL_API bool ImGui_ImplDX12_Init(ID3D12Device* device, int num_frames_in_flight, DXGI_FORMAT rtv_format, ID3D12DescriptorHeap* cbv_srv_heap, + D3D12_CPU_DESCRIPTOR_HANDLE font_srv_cpu_desc_handle, D3D12_GPU_DESCRIPTOR_HANDLE font_srv_gpu_desc_handle); +IMGUI_IMPL_API void ImGui_ImplDX12_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplDX12_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplDX12_RenderDrawData(ImDrawData* draw_data, ID3D12GraphicsCommandList* graphics_command_list); + +// Use if you want to reset your rendering device without losing Dear ImGui state. +IMGUI_IMPL_API void ImGui_ImplDX12_InvalidateDeviceObjects(); +IMGUI_IMPL_API bool ImGui_ImplDX12_CreateDeviceObjects(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx9.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx9.cpp new file mode 100644 index 0000000..0aeb43d --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx9.cpp @@ -0,0 +1,550 @@ +// dear imgui: Renderer Backend for DirectX9 +// This needs to be used along with a Platform Backend (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'LPDIRECT3DTEXTURE9' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-06-25: DirectX9: Explicitly disable texture state stages after >= 1. +// 2021-05-19: DirectX9: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-04-23: DirectX9: Explicitly setting up more graphics states to increase compatibility with unusual non-default states. +// 2021-03-18: DirectX9: Calling IDirect3DStateBlock9::Capture() after CreateStateBlock() as a workaround for state restoring issues (see #3857). +// 2021-03-03: DirectX9: Added support for IMGUI_USE_BGRA_PACKED_COLOR in user's imconfig file. +// 2021-02-18: DirectX9: Change blending equation to preserve alpha in output buffer. +// 2019-05-29: DirectX9: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: DirectX9: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2019-03-29: Misc: Fixed erroneous assert in ImGui_ImplDX9_InvalidateDeviceObjects(). +// 2019-01-16: Misc: Disabled fog before drawing UI's. Fixes issue #2288. +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-06-08: Misc: Extracted imgui_impl_dx9.cpp/.h away from the old combined DX9+Win32 example. +// 2018-06-08: DirectX9: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-05-07: Render: Saving/restoring Transform because they don't seem to be included in the StateBlock. Setting shading mode to Gouraud. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplDX9_RenderDrawData() in the .h file so you can call it yourself. +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_dx9.h" + +// DirectX +#include + +// DirectX data +struct ImGui_ImplDX9_Data +{ + LPDIRECT3DDEVICE9 pd3dDevice; + LPDIRECT3DVERTEXBUFFER9 pVB; + LPDIRECT3DINDEXBUFFER9 pIB; + LPDIRECT3DTEXTURE9 FontTexture; + int VertexBufferSize; + int IndexBufferSize; + + ImGui_ImplDX9_Data() { memset((void*)this, 0, sizeof(*this)); VertexBufferSize = 5000; IndexBufferSize = 10000; } +}; + +struct CUSTOMVERTEX +{ + float pos[3]; + D3DCOLOR col; + float uv[2]; +}; +#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ|D3DFVF_DIFFUSE|D3DFVF_TEX1) + +#ifdef IMGUI_USE_BGRA_PACKED_COLOR +#define IMGUI_COL_TO_DX9_ARGB(_COL) (_COL) +#else +#define IMGUI_COL_TO_DX9_ARGB(_COL) (((_COL) & 0xFF00FF00) | (((_COL) & 0xFF0000) >> 16) | (((_COL) & 0xFF) << 16)) +#endif + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplDX9_Data* ImGui_ImplDX9_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplDX9_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplDX9_InitPlatformInterface(); +static void ImGui_ImplDX9_ShutdownPlatformInterface(); +static void ImGui_ImplDX9_CreateDeviceObjectsForPlatformWindows(); +static void ImGui_ImplDX9_InvalidateDeviceObjectsForPlatformWindows(); + +// Functions +static void ImGui_ImplDX9_SetupRenderState(ImDrawData* draw_data) +{ + ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); + + // Setup viewport + D3DVIEWPORT9 vp; + vp.X = vp.Y = 0; + vp.Width = (DWORD)draw_data->DisplaySize.x; + vp.Height = (DWORD)draw_data->DisplaySize.y; + vp.MinZ = 0.0f; + vp.MaxZ = 1.0f; + bd->pd3dDevice->SetViewport(&vp); + + // Setup render state: fixed-pipeline, alpha-blending, no face culling, no depth testing, shade mode (for gradient), bilinear sampling. + bd->pd3dDevice->SetPixelShader(nullptr); + bd->pd3dDevice->SetVertexShader(nullptr); + bd->pd3dDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID); + bd->pd3dDevice->SetRenderState(D3DRS_SHADEMODE, D3DSHADE_GOURAUD); + bd->pd3dDevice->SetRenderState(D3DRS_ZWRITEENABLE, FALSE); + bd->pd3dDevice->SetRenderState(D3DRS_ALPHATESTENABLE, FALSE); + bd->pd3dDevice->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE); + bd->pd3dDevice->SetRenderState(D3DRS_ZENABLE, FALSE); + bd->pd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, TRUE); + bd->pd3dDevice->SetRenderState(D3DRS_BLENDOP, D3DBLENDOP_ADD); + bd->pd3dDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA); + bd->pd3dDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA); + bd->pd3dDevice->SetRenderState(D3DRS_SEPARATEALPHABLENDENABLE, TRUE); + bd->pd3dDevice->SetRenderState(D3DRS_SRCBLENDALPHA, D3DBLEND_ONE); + bd->pd3dDevice->SetRenderState(D3DRS_DESTBLENDALPHA, D3DBLEND_INVSRCALPHA); + bd->pd3dDevice->SetRenderState(D3DRS_SCISSORTESTENABLE, TRUE); + bd->pd3dDevice->SetRenderState(D3DRS_FOGENABLE, FALSE); + bd->pd3dDevice->SetRenderState(D3DRS_RANGEFOGENABLE, FALSE); + bd->pd3dDevice->SetRenderState(D3DRS_SPECULARENABLE, FALSE); + bd->pd3dDevice->SetRenderState(D3DRS_STENCILENABLE, FALSE); + bd->pd3dDevice->SetRenderState(D3DRS_CLIPPING, TRUE); + bd->pd3dDevice->SetRenderState(D3DRS_LIGHTING, FALSE); + bd->pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE); + bd->pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE); + bd->pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG2, D3DTA_DIFFUSE); + bd->pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE); + bd->pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE); + bd->pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG2, D3DTA_DIFFUSE); + bd->pd3dDevice->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_DISABLE); + bd->pd3dDevice->SetTextureStageState(1, D3DTSS_ALPHAOP, D3DTOP_DISABLE); + bd->pd3dDevice->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR); + bd->pd3dDevice->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR); + + // Setup orthographic projection matrix + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. + // Being agnostic of whether or can be used, we aren't relying on D3DXMatrixIdentity()/D3DXMatrixOrthoOffCenterLH() or DirectX::XMMatrixIdentity()/DirectX::XMMatrixOrthographicOffCenterLH() + { + float L = draw_data->DisplayPos.x + 0.5f; + float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x + 0.5f; + float T = draw_data->DisplayPos.y + 0.5f; + float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y + 0.5f; + D3DMATRIX mat_identity = { { { 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f } } }; + D3DMATRIX mat_projection = + { { { + 2.0f/(R-L), 0.0f, 0.0f, 0.0f, + 0.0f, 2.0f/(T-B), 0.0f, 0.0f, + 0.0f, 0.0f, 0.5f, 0.0f, + (L+R)/(L-R), (T+B)/(B-T), 0.5f, 1.0f + } } }; + bd->pd3dDevice->SetTransform(D3DTS_WORLD, &mat_identity); + bd->pd3dDevice->SetTransform(D3DTS_VIEW, &mat_identity); + bd->pd3dDevice->SetTransform(D3DTS_PROJECTION, &mat_projection); + } +} + +// Render function. +void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data) +{ + // Avoid rendering when minimized + if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) + return; + + // Create and grow buffers if needed + ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); + if (!bd->pVB || bd->VertexBufferSize < draw_data->TotalVtxCount) + { + if (bd->pVB) { bd->pVB->Release(); bd->pVB = nullptr; } + bd->VertexBufferSize = draw_data->TotalVtxCount + 5000; + if (bd->pd3dDevice->CreateVertexBuffer(bd->VertexBufferSize * sizeof(CUSTOMVERTEX), D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY, D3DFVF_CUSTOMVERTEX, D3DPOOL_DEFAULT, &bd->pVB, nullptr) < 0) + return; + } + if (!bd->pIB || bd->IndexBufferSize < draw_data->TotalIdxCount) + { + if (bd->pIB) { bd->pIB->Release(); bd->pIB = nullptr; } + bd->IndexBufferSize = draw_data->TotalIdxCount + 10000; + if (bd->pd3dDevice->CreateIndexBuffer(bd->IndexBufferSize * sizeof(ImDrawIdx), D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY, sizeof(ImDrawIdx) == 2 ? D3DFMT_INDEX16 : D3DFMT_INDEX32, D3DPOOL_DEFAULT, &bd->pIB, nullptr) < 0) + return; + } + + // Backup the DX9 state + IDirect3DStateBlock9* d3d9_state_block = nullptr; + if (bd->pd3dDevice->CreateStateBlock(D3DSBT_ALL, &d3d9_state_block) < 0) + return; + if (d3d9_state_block->Capture() < 0) + { + d3d9_state_block->Release(); + return; + } + + // Backup the DX9 transform (DX9 documentation suggests that it is included in the StateBlock but it doesn't appear to) + D3DMATRIX last_world, last_view, last_projection; + bd->pd3dDevice->GetTransform(D3DTS_WORLD, &last_world); + bd->pd3dDevice->GetTransform(D3DTS_VIEW, &last_view); + bd->pd3dDevice->GetTransform(D3DTS_PROJECTION, &last_projection); + + // Allocate buffers + CUSTOMVERTEX* vtx_dst; + ImDrawIdx* idx_dst; + if (bd->pVB->Lock(0, (UINT)(draw_data->TotalVtxCount * sizeof(CUSTOMVERTEX)), (void**)&vtx_dst, D3DLOCK_DISCARD) < 0) + { + d3d9_state_block->Release(); + return; + } + if (bd->pIB->Lock(0, (UINT)(draw_data->TotalIdxCount * sizeof(ImDrawIdx)), (void**)&idx_dst, D3DLOCK_DISCARD) < 0) + { + bd->pVB->Unlock(); + d3d9_state_block->Release(); + return; + } + + // Copy and convert all vertices into a single contiguous buffer, convert colors to DX9 default format. + // FIXME-OPT: This is a minor waste of resource, the ideal is to use imconfig.h and + // 1) to avoid repacking colors: #define IMGUI_USE_BGRA_PACKED_COLOR + // 2) to avoid repacking vertices: #define IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT struct ImDrawVert { ImVec2 pos; float z; ImU32 col; ImVec2 uv; } + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_src = cmd_list->VtxBuffer.Data; + for (int i = 0; i < cmd_list->VtxBuffer.Size; i++) + { + vtx_dst->pos[0] = vtx_src->pos.x; + vtx_dst->pos[1] = vtx_src->pos.y; + vtx_dst->pos[2] = 0.0f; + vtx_dst->col = IMGUI_COL_TO_DX9_ARGB(vtx_src->col); + vtx_dst->uv[0] = vtx_src->uv.x; + vtx_dst->uv[1] = vtx_src->uv.y; + vtx_dst++; + vtx_src++; + } + memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); + idx_dst += cmd_list->IdxBuffer.Size; + } + bd->pVB->Unlock(); + bd->pIB->Unlock(); + bd->pd3dDevice->SetStreamSource(0, bd->pVB, 0, sizeof(CUSTOMVERTEX)); + bd->pd3dDevice->SetIndices(bd->pIB); + bd->pd3dDevice->SetFVF(D3DFVF_CUSTOMVERTEX); + + // Setup desired DX state + ImGui_ImplDX9_SetupRenderState(draw_data); + + // Render command lists + // (Because we merged all buffers into a single one, we maintain our own offset into them) + int global_vtx_offset = 0; + int global_idx_offset = 0; + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback != nullptr) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplDX9_SetupRenderState(draw_data); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply Scissor/clipping rectangle, Bind texture, Draw + const RECT r = { (LONG)clip_min.x, (LONG)clip_min.y, (LONG)clip_max.x, (LONG)clip_max.y }; + const LPDIRECT3DTEXTURE9 texture = (LPDIRECT3DTEXTURE9)pcmd->GetTexID(); + bd->pd3dDevice->SetTexture(0, texture); + bd->pd3dDevice->SetScissorRect(&r); + bd->pd3dDevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, pcmd->VtxOffset + global_vtx_offset, 0, (UINT)cmd_list->VtxBuffer.Size, pcmd->IdxOffset + global_idx_offset, pcmd->ElemCount / 3); + } + } + global_idx_offset += cmd_list->IdxBuffer.Size; + global_vtx_offset += cmd_list->VtxBuffer.Size; + } + + // When using multi-viewports, it appears that there's an odd logic in DirectX9 which prevent subsequent windows + // from rendering until the first window submits at least one draw call, even once. That's our workaround. (see #2560) + if (global_vtx_offset == 0) + bd->pd3dDevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, 0, 0, 0); + + // Restore the DX9 transform + bd->pd3dDevice->SetTransform(D3DTS_WORLD, &last_world); + bd->pd3dDevice->SetTransform(D3DTS_VIEW, &last_view); + bd->pd3dDevice->SetTransform(D3DTS_PROJECTION, &last_projection); + + // Restore the DX9 state + d3d9_state_block->Apply(); + d3d9_state_block->Release(); +} + +bool ImGui_ImplDX9_Init(IDirect3DDevice9* device) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + + // Setup backend capabilities flags + ImGui_ImplDX9_Data* bd = IM_NEW(ImGui_ImplDX9_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_dx9"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + + bd->pd3dDevice = device; + bd->pd3dDevice->AddRef(); + + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplDX9_InitPlatformInterface(); + + return true; +} + +void ImGui_ImplDX9_Shutdown() +{ + ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplDX9_ShutdownPlatformInterface(); + ImGui_ImplDX9_InvalidateDeviceObjects(); + if (bd->pd3dDevice) { bd->pd3dDevice->Release(); } + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_RendererHasVtxOffset | ImGuiBackendFlags_RendererHasViewports); + IM_DELETE(bd); +} + +static bool ImGui_ImplDX9_CreateFontsTexture() +{ + // Build texture atlas + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); + unsigned char* pixels; + int width, height, bytes_per_pixel; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height, &bytes_per_pixel); + + // Convert RGBA32 to BGRA32 (because RGBA32 is not well supported by DX9 devices) +#ifndef IMGUI_USE_BGRA_PACKED_COLOR + if (io.Fonts->TexPixelsUseColors) + { + ImU32* dst_start = (ImU32*)ImGui::MemAlloc((size_t)width * height * bytes_per_pixel); + for (ImU32* src = (ImU32*)pixels, *dst = dst_start, *dst_end = dst_start + (size_t)width * height; dst < dst_end; src++, dst++) + *dst = IMGUI_COL_TO_DX9_ARGB(*src); + pixels = (unsigned char*)dst_start; + } +#endif + + // Upload texture to graphics system + bd->FontTexture = nullptr; + if (bd->pd3dDevice->CreateTexture(width, height, 1, D3DUSAGE_DYNAMIC, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &bd->FontTexture, nullptr) < 0) + return false; + D3DLOCKED_RECT tex_locked_rect; + if (bd->FontTexture->LockRect(0, &tex_locked_rect, nullptr, 0) != D3D_OK) + return false; + for (int y = 0; y < height; y++) + memcpy((unsigned char*)tex_locked_rect.pBits + (size_t)tex_locked_rect.Pitch * y, pixels + (size_t)width * bytes_per_pixel * y, (size_t)width * bytes_per_pixel); + bd->FontTexture->UnlockRect(0); + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)bd->FontTexture); + +#ifndef IMGUI_USE_BGRA_PACKED_COLOR + if (io.Fonts->TexPixelsUseColors) + ImGui::MemFree(pixels); +#endif + + return true; +} + +bool ImGui_ImplDX9_CreateDeviceObjects() +{ + ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); + if (!bd || !bd->pd3dDevice) + return false; + if (!ImGui_ImplDX9_CreateFontsTexture()) + return false; + ImGui_ImplDX9_CreateDeviceObjectsForPlatformWindows(); + return true; +} + +void ImGui_ImplDX9_InvalidateDeviceObjects() +{ + ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); + if (!bd || !bd->pd3dDevice) + return; + if (bd->pVB) { bd->pVB->Release(); bd->pVB = nullptr; } + if (bd->pIB) { bd->pIB->Release(); bd->pIB = nullptr; } + if (bd->FontTexture) { bd->FontTexture->Release(); bd->FontTexture = nullptr; ImGui::GetIO().Fonts->SetTexID(0); } // We copied bd->pFontTextureView to io.Fonts->TexID so let's clear that as well. + ImGui_ImplDX9_InvalidateDeviceObjectsForPlatformWindows(); +} + +void ImGui_ImplDX9_NewFrame() +{ + ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplDX9_Init()?"); + + if (!bd->FontTexture) + ImGui_ImplDX9_CreateDeviceObjects(); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +// Helper structure we store in the void* RendererUserData field of each ImGuiViewport to easily retrieve our backend data. +struct ImGui_ImplDX9_ViewportData +{ + IDirect3DSwapChain9* SwapChain; + D3DPRESENT_PARAMETERS d3dpp; + + ImGui_ImplDX9_ViewportData() { SwapChain = nullptr; ZeroMemory(&d3dpp, sizeof(D3DPRESENT_PARAMETERS)); } + ~ImGui_ImplDX9_ViewportData() { IM_ASSERT(SwapChain == nullptr); } +}; + +static void ImGui_ImplDX9_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); + ImGui_ImplDX9_ViewportData* vd = IM_NEW(ImGui_ImplDX9_ViewportData)(); + viewport->RendererUserData = vd; + + // PlatformHandleRaw should always be a HWND, whereas PlatformHandle might be a higher-level handle (e.g. GLFWWindow*, SDL_Window*). + // Some backends will leave PlatformHandleRaw == 0, in which case we assume PlatformHandle will contain the HWND. + HWND hwnd = viewport->PlatformHandleRaw ? (HWND)viewport->PlatformHandleRaw : (HWND)viewport->PlatformHandle; + IM_ASSERT(hwnd != 0); + + ZeroMemory(&vd->d3dpp, sizeof(D3DPRESENT_PARAMETERS)); + vd->d3dpp.Windowed = TRUE; + vd->d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; + vd->d3dpp.BackBufferWidth = (UINT)viewport->Size.x; + vd->d3dpp.BackBufferHeight = (UINT)viewport->Size.y; + vd->d3dpp.BackBufferFormat = D3DFMT_UNKNOWN; + vd->d3dpp.hDeviceWindow = hwnd; + vd->d3dpp.EnableAutoDepthStencil = FALSE; + vd->d3dpp.AutoDepthStencilFormat = D3DFMT_D16; + vd->d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE; // Present without vsync + + HRESULT hr = bd->pd3dDevice->CreateAdditionalSwapChain(&vd->d3dpp, &vd->SwapChain); IM_UNUSED(hr); + IM_ASSERT(hr == D3D_OK); + IM_ASSERT(vd->SwapChain != nullptr); +} + +static void ImGui_ImplDX9_DestroyWindow(ImGuiViewport* viewport) +{ + // The main viewport (owned by the application) will always have RendererUserData == 0 since we didn't create the data for it. + if (ImGui_ImplDX9_ViewportData* vd = (ImGui_ImplDX9_ViewportData*)viewport->RendererUserData) + { + if (vd->SwapChain) + vd->SwapChain->Release(); + vd->SwapChain = nullptr; + ZeroMemory(&vd->d3dpp, sizeof(D3DPRESENT_PARAMETERS)); + IM_DELETE(vd); + } + viewport->RendererUserData = nullptr; +} + +static void ImGui_ImplDX9_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); + ImGui_ImplDX9_ViewportData* vd = (ImGui_ImplDX9_ViewportData*)viewport->RendererUserData; + if (vd->SwapChain) + { + vd->SwapChain->Release(); + vd->SwapChain = nullptr; + vd->d3dpp.BackBufferWidth = (UINT)size.x; + vd->d3dpp.BackBufferHeight = (UINT)size.y; + HRESULT hr = bd->pd3dDevice->CreateAdditionalSwapChain(&vd->d3dpp, &vd->SwapChain); IM_UNUSED(hr); + IM_ASSERT(hr == D3D_OK); + } +} + +static void ImGui_ImplDX9_RenderWindow(ImGuiViewport* viewport, void*) +{ + ImGui_ImplDX9_Data* bd = ImGui_ImplDX9_GetBackendData(); + ImGui_ImplDX9_ViewportData* vd = (ImGui_ImplDX9_ViewportData*)viewport->RendererUserData; + ImVec4 clear_color = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); + + LPDIRECT3DSURFACE9 render_target = nullptr; + LPDIRECT3DSURFACE9 last_render_target = nullptr; + LPDIRECT3DSURFACE9 last_depth_stencil = nullptr; + vd->SwapChain->GetBackBuffer(0, D3DBACKBUFFER_TYPE_MONO, &render_target); + bd->pd3dDevice->GetRenderTarget(0, &last_render_target); + bd->pd3dDevice->GetDepthStencilSurface(&last_depth_stencil); + bd->pd3dDevice->SetRenderTarget(0, render_target); + bd->pd3dDevice->SetDepthStencilSurface(nullptr); + + if (!(viewport->Flags & ImGuiViewportFlags_NoRendererClear)) + { + D3DCOLOR clear_col_dx = D3DCOLOR_RGBA((int)(clear_color.x*255.0f), (int)(clear_color.y*255.0f), (int)(clear_color.z*255.0f), (int)(clear_color.w*255.0f)); + bd->pd3dDevice->Clear(0, nullptr, D3DCLEAR_TARGET, clear_col_dx, 1.0f, 0); + } + + ImGui_ImplDX9_RenderDrawData(viewport->DrawData); + + // Restore render target + bd->pd3dDevice->SetRenderTarget(0, last_render_target); + bd->pd3dDevice->SetDepthStencilSurface(last_depth_stencil); + render_target->Release(); + last_render_target->Release(); + if (last_depth_stencil) last_depth_stencil->Release(); +} + +static void ImGui_ImplDX9_SwapBuffers(ImGuiViewport* viewport, void*) +{ + ImGui_ImplDX9_ViewportData* vd = (ImGui_ImplDX9_ViewportData*)viewport->RendererUserData; + HRESULT hr = vd->SwapChain->Present(nullptr, nullptr, vd->d3dpp.hDeviceWindow, nullptr, 0); + // Let main application handle D3DERR_DEVICELOST by resetting the device. + IM_ASSERT(SUCCEEDED(hr) || hr == D3DERR_DEVICELOST); +} + +static void ImGui_ImplDX9_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Renderer_CreateWindow = ImGui_ImplDX9_CreateWindow; + platform_io.Renderer_DestroyWindow = ImGui_ImplDX9_DestroyWindow; + platform_io.Renderer_SetWindowSize = ImGui_ImplDX9_SetWindowSize; + platform_io.Renderer_RenderWindow = ImGui_ImplDX9_RenderWindow; + platform_io.Renderer_SwapBuffers = ImGui_ImplDX9_SwapBuffers; +} + +static void ImGui_ImplDX9_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +static void ImGui_ImplDX9_CreateDeviceObjectsForPlatformWindows() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int i = 1; i < platform_io.Viewports.Size; i++) + if (!platform_io.Viewports[i]->RendererUserData) + ImGui_ImplDX9_CreateWindow(platform_io.Viewports[i]); +} + +static void ImGui_ImplDX9_InvalidateDeviceObjectsForPlatformWindows() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int i = 1; i < platform_io.Viewports.Size; i++) + if (platform_io.Viewports[i]->RendererUserData) + ImGui_ImplDX9_DestroyWindow(platform_io.Viewports[i]); +} + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx9.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx9.h new file mode 100644 index 0000000..ecf7181 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_dx9.h @@ -0,0 +1,32 @@ +// dear imgui: Renderer Backend for DirectX9 +// This needs to be used along with a Platform Backend (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'LPDIRECT3DTEXTURE9' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +struct IDirect3DDevice9; + +IMGUI_IMPL_API bool ImGui_ImplDX9_Init(IDirect3DDevice9* device); +IMGUI_IMPL_API void ImGui_ImplDX9_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplDX9_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data); + +// Use if you want to reset your rendering device without losing Dear ImGui state. +IMGUI_IMPL_API bool ImGui_ImplDX9_CreateDeviceObjects(); +IMGUI_IMPL_API void ImGui_ImplDX9_InvalidateDeviceObjects(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glfw.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glfw.cpp new file mode 100644 index 0000000..d5d3769 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glfw.cpp @@ -0,0 +1,1324 @@ +// dear imgui: Platform Backend for GLFW +// This needs to be used along with a Renderer (e.g. OpenGL3, Vulkan, WebGPU..) +// (Info: GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) +// (Requires: GLFW 3.1+. Prefer GLFW 3.3+ or GLFW 3.4+ for full feature support.) + +// Implemented features: +// [X] Platform: Clipboard support. +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen (Windows only). +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy GLFW_KEY_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange' (note: the resizing cursors requires GLFW 3.4+). +// [X] Platform: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// Issues: +// [ ] Platform: Multi-viewport support: ParentViewportID not honored, and so io.ConfigViewportsNoDefaultParent has no effect (minor). + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2023-10-05: Inputs: Added support for extra ImGuiKey values: F13 to F24 function keys. +// 2023-07-18: Inputs: Revert ignoring mouse data on GLFW_CURSOR_DISABLED as it can be used differently. User may set ImGuiConfigFLags_NoMouse if desired. (#5625, #6609) +// 2023-06-12: Accept glfwGetTime() not returning a monotonically increasing value. This seems to happens on some Windows setup when peripherals disconnect, and is likely to also happen on browser + Emscripten. (#6491) +// 2023-04-04: Inputs: Added support for io.AddMouseSourceEvent() to discriminate ImGuiMouseSource_Mouse/ImGuiMouseSource_TouchScreen/ImGuiMouseSource_Pen on Windows ONLY, using a custom WndProc hook. (#2702) +// 2023-03-16: Inputs: Fixed key modifiers handling on secondary viewports (docking branch). Broken on 2023/01/04. (#6248, #6034) +// 2023-03-14: Emscripten: Avoid using glfwGetError() and glfwGetGamepadState() which are not correctly implemented in Emscripten emulation. (#6240) +// 2023-02-03: Emscripten: Registering custom low-level mouse wheel handler to get more accurate scrolling impulses on Emscripten. (#4019, #6096) +// 2023-01-18: Handle unsupported glfwGetVideoMode() call on e.g. Emscripten. +// 2023-01-04: Inputs: Fixed mods state on Linux when using Alt-GR text input (e.g. German keyboard layout), could lead to broken text input. Revert a 2022/01/17 change were we resumed using mods provided by GLFW, turns out they were faulty. +// 2022-11-22: Perform a dummy glfwGetError() read to cancel missing names with glfwGetKeyName(). (#5908) +// 2022-10-18: Perform a dummy glfwGetError() read to cancel missing mouse cursors errors. Using GLFW_VERSION_COMBINED directly. (#5785) +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2022-09-26: Inputs: Renamed ImGuiKey_ModXXX introduced in 1.87 to ImGuiMod_XXX (old names still supported). +// 2022-09-01: Inputs: Honor GLFW_CURSOR_DISABLED by not setting mouse position *EDIT* Reverted 2023-07-18. +// 2022-04-30: Inputs: Fixed ImGui_ImplGlfw_TranslateUntranslatedKey() for lower case letters on OSX. +// 2022-03-23: Inputs: Fixed a regression in 1.87 which resulted in keyboard modifiers events being reported incorrectly on Linux/X11. +// 2022-02-07: Added ImGui_ImplGlfw_InstallCallbacks()/ImGui_ImplGlfw_RestoreCallbacks() helpers to facilitate user installing callbacks after initializing backend. +// 2022-01-26: Inputs: replaced short-lived io.AddKeyModsEvent() (added two weeks ago) with io.AddKeyEvent() using ImGuiKey_ModXXX flags. Sorry for the confusion. +// 2021-01-20: Inputs: calling new io.AddKeyAnalogEvent() for gamepad support, instead of writing directly to io.NavInputs[]. +// 2022-01-17: Inputs: calling new io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() API (1.87+). +// 2022-01-17: Inputs: always update key mods next and before key event (not in NewFrame) to fix input queue with very low framerates. +// 2022-01-12: *BREAKING CHANGE*: Now using glfwSetCursorPosCallback(). If you called ImGui_ImplGlfw_InitXXX() with install_callbacks = false, you MUST install glfwSetCursorPosCallback() and forward it to the backend via ImGui_ImplGlfw_CursorPosCallback(). +// 2022-01-10: Inputs: calling new io.AddKeyEvent(), io.AddKeyModsEvent() + io.SetKeyEventNativeData() API (1.87+). Support for full ImGuiKey range. +// 2022-01-05: Inputs: Converting GLFW untranslated keycodes back to translated keycodes (in the ImGui_ImplGlfw_KeyCallback() function) in order to match the behavior of every other backend, and facilitate the use of GLFW with lettered-shortcuts API. +// 2021-08-17: *BREAKING CHANGE*: Now using glfwSetWindowFocusCallback() to calling io.AddFocusEvent(). If you called ImGui_ImplGlfw_InitXXX() with install_callbacks = false, you MUST install glfwSetWindowFocusCallback() and forward it to the backend via ImGui_ImplGlfw_WindowFocusCallback(). +// 2021-07-29: *BREAKING CHANGE*: Now using glfwSetCursorEnterCallback(). MousePos is correctly reported when the host platform window is hovered but not focused. If you called ImGui_ImplGlfw_InitXXX() with install_callbacks = false, you MUST install glfwSetWindowFocusCallback() callback and forward it to the backend via ImGui_ImplGlfw_CursorEnterCallback(). +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2020-01-17: Inputs: Disable error callback while assigning mouse cursors because some X11 setup don't have them and it generates errors. +// 2019-12-05: Inputs: Added support for new mouse cursors added in GLFW 3.4+ (resizing cursors, not allowed cursor). +// 2019-10-18: Misc: Previously installed user callbacks are now restored on shutdown. +// 2019-07-21: Inputs: Added mapping for ImGuiKey_KeyPadEnter. +// 2019-05-11: Inputs: Don't filter value from character callback before calling AddInputCharacter(). +// 2019-03-12: Misc: Preserve DisplayFramebufferScale when main window is minimized. +// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. +// 2018-11-07: Inputs: When installing our GLFW callbacks, we save user's previously installed ones - if any - and chain call them. +// 2018-08-01: Inputs: Workaround for Emscripten which doesn't seem to handle focus related calls. +// 2018-06-29: Inputs: Added support for the ImGuiMouseCursor_Hand cursor. +// 2018-06-08: Misc: Extracted imgui_impl_glfw.cpp/.h away from the old combined GLFW+OpenGL/Vulkan examples. +// 2018-03-20: Misc: Setup io.BackendFlags ImGuiBackendFlags_HasMouseCursors flag + honor ImGuiConfigFlags_NoMouseCursorChange flag. +// 2018-02-20: Inputs: Added support for mouse cursors (ImGui::GetMouseCursor() value, passed to glfwSetCursor()). +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. +// 2018-02-06: Inputs: Added mapping for ImGuiKey_Space. +// 2018-01-25: Inputs: Added gamepad support if ImGuiConfigFlags_NavEnableGamepad is set. +// 2018-01-25: Inputs: Honoring the io.WantSetMousePos by repositioning the mouse (when using navigation and ImGuiConfigFlags_NavMoveMouse is set). +// 2018-01-20: Inputs: Added Horizontal Mouse Wheel support. +// 2018-01-18: Inputs: Added mapping for ImGuiKey_Insert. +// 2017-08-25: Inputs: MousePos set to -FLT_MAX,-FLT_MAX when mouse is unavailable/missing (instead of -1,-1). +// 2016-10-15: Misc: Added a void* user_data parameter to Clipboard function handlers. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_glfw.h" + +// Clang warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#endif + +// GLFW +#include + +#ifdef _WIN32 +#undef APIENTRY +#define GLFW_EXPOSE_NATIVE_WIN32 +#include // for glfwGetWin32Window() +#endif +#ifdef __APPLE__ +#define GLFW_EXPOSE_NATIVE_COCOA +#include // for glfwGetCocoaWindow() +#endif + +#ifdef __EMSCRIPTEN__ +#include +#include +#endif + +// We gather version tests as define in order to easily see which features are version-dependent. +#define GLFW_VERSION_COMBINED (GLFW_VERSION_MAJOR * 1000 + GLFW_VERSION_MINOR * 100 + GLFW_VERSION_REVISION) +#define GLFW_HAS_WINDOW_TOPMOST (GLFW_VERSION_COMBINED >= 3200) // 3.2+ GLFW_FLOATING +#define GLFW_HAS_WINDOW_HOVERED (GLFW_VERSION_COMBINED >= 3300) // 3.3+ GLFW_HOVERED +#define GLFW_HAS_WINDOW_ALPHA (GLFW_VERSION_COMBINED >= 3300) // 3.3+ glfwSetWindowOpacity +#define GLFW_HAS_PER_MONITOR_DPI (GLFW_VERSION_COMBINED >= 3300) // 3.3+ glfwGetMonitorContentScale +#if defined(__EMSCRIPTEN__) || defined(__SWITCH__) // no Vulkan support in GLFW for Emscripten or homebrew Nintendo Switch +#define GLFW_HAS_VULKAN (0) +#else +#define GLFW_HAS_VULKAN (GLFW_VERSION_COMBINED >= 3200) // 3.2+ glfwCreateWindowSurface +#endif +#define GLFW_HAS_FOCUS_WINDOW (GLFW_VERSION_COMBINED >= 3200) // 3.2+ glfwFocusWindow +#define GLFW_HAS_FOCUS_ON_SHOW (GLFW_VERSION_COMBINED >= 3300) // 3.3+ GLFW_FOCUS_ON_SHOW +#define GLFW_HAS_MONITOR_WORK_AREA (GLFW_VERSION_COMBINED >= 3300) // 3.3+ glfwGetMonitorWorkarea +#define GLFW_HAS_OSX_WINDOW_POS_FIX (GLFW_VERSION_COMBINED >= 3301) // 3.3.1+ Fixed: Resizing window repositions it on MacOS #1553 +#ifdef GLFW_RESIZE_NESW_CURSOR // Let's be nice to people who pulled GLFW between 2019-04-16 (3.4 define) and 2019-11-29 (cursors defines) // FIXME: Remove when GLFW 3.4 is released? +#define GLFW_HAS_NEW_CURSORS (GLFW_VERSION_COMBINED >= 3400) // 3.4+ GLFW_RESIZE_ALL_CURSOR, GLFW_RESIZE_NESW_CURSOR, GLFW_RESIZE_NWSE_CURSOR, GLFW_NOT_ALLOWED_CURSOR +#else +#define GLFW_HAS_NEW_CURSORS (0) +#endif +#ifdef GLFW_MOUSE_PASSTHROUGH // Let's be nice to people who pulled GLFW between 2019-04-16 (3.4 define) and 2020-07-17 (passthrough) +#define GLFW_HAS_MOUSE_PASSTHROUGH (GLFW_VERSION_COMBINED >= 3400) // 3.4+ GLFW_MOUSE_PASSTHROUGH +#else +#define GLFW_HAS_MOUSE_PASSTHROUGH (0) +#endif +#define GLFW_HAS_GAMEPAD_API (GLFW_VERSION_COMBINED >= 3300) // 3.3+ glfwGetGamepadState() new api +#define GLFW_HAS_GETKEYNAME (GLFW_VERSION_COMBINED >= 3200) // 3.2+ glfwGetKeyName() +#define GLFW_HAS_GETERROR (GLFW_VERSION_COMBINED >= 3300) // 3.3+ glfwGetError() + +// GLFW data +enum GlfwClientApi +{ + GlfwClientApi_Unknown, + GlfwClientApi_OpenGL, + GlfwClientApi_Vulkan +}; + +struct ImGui_ImplGlfw_Data +{ + GLFWwindow* Window; + GlfwClientApi ClientApi; + double Time; + GLFWwindow* MouseWindow; + GLFWcursor* MouseCursors[ImGuiMouseCursor_COUNT]; + ImVec2 LastValidMousePos; + GLFWwindow* KeyOwnerWindows[GLFW_KEY_LAST]; + bool InstalledCallbacks; + bool CallbacksChainForAllWindows; + bool WantUpdateMonitors; + + // Chain GLFW callbacks: our callbacks will call the user's previously installed callbacks, if any. + GLFWwindowfocusfun PrevUserCallbackWindowFocus; + GLFWcursorposfun PrevUserCallbackCursorPos; + GLFWcursorenterfun PrevUserCallbackCursorEnter; + GLFWmousebuttonfun PrevUserCallbackMousebutton; + GLFWscrollfun PrevUserCallbackScroll; + GLFWkeyfun PrevUserCallbackKey; + GLFWcharfun PrevUserCallbackChar; + GLFWmonitorfun PrevUserCallbackMonitor; +#ifdef _WIN32 + WNDPROC PrevWndProc; +#endif + + ImGui_ImplGlfw_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendPlatformUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +// FIXME: multi-context support is not well tested and probably dysfunctional in this backend. +// - Because glfwPollEvents() process all windows and some events may be called outside of it, you will need to register your own callbacks +// (passing install_callbacks=false in ImGui_ImplGlfw_InitXXX functions), set the current dear imgui context and then call our callbacks. +// - Otherwise we may need to store a GLFWWindow* -> ImGuiContext* map and handle this in the backend, adding a little bit of extra complexity to it. +// FIXME: some shared resources (mouse cursor shape, gamepad) are mishandled when using multi-context. +static ImGui_ImplGlfw_Data* ImGui_ImplGlfw_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplGlfw_Data*)ImGui::GetIO().BackendPlatformUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplGlfw_UpdateMonitors(); +static void ImGui_ImplGlfw_InitPlatformInterface(); +static void ImGui_ImplGlfw_ShutdownPlatformInterface(); + +// Functions +static const char* ImGui_ImplGlfw_GetClipboardText(void* user_data) +{ + return glfwGetClipboardString((GLFWwindow*)user_data); +} + +static void ImGui_ImplGlfw_SetClipboardText(void* user_data, const char* text) +{ + glfwSetClipboardString((GLFWwindow*)user_data, text); +} + +static ImGuiKey ImGui_ImplGlfw_KeyToImGuiKey(int key) +{ + switch (key) + { + case GLFW_KEY_TAB: return ImGuiKey_Tab; + case GLFW_KEY_LEFT: return ImGuiKey_LeftArrow; + case GLFW_KEY_RIGHT: return ImGuiKey_RightArrow; + case GLFW_KEY_UP: return ImGuiKey_UpArrow; + case GLFW_KEY_DOWN: return ImGuiKey_DownArrow; + case GLFW_KEY_PAGE_UP: return ImGuiKey_PageUp; + case GLFW_KEY_PAGE_DOWN: return ImGuiKey_PageDown; + case GLFW_KEY_HOME: return ImGuiKey_Home; + case GLFW_KEY_END: return ImGuiKey_End; + case GLFW_KEY_INSERT: return ImGuiKey_Insert; + case GLFW_KEY_DELETE: return ImGuiKey_Delete; + case GLFW_KEY_BACKSPACE: return ImGuiKey_Backspace; + case GLFW_KEY_SPACE: return ImGuiKey_Space; + case GLFW_KEY_ENTER: return ImGuiKey_Enter; + case GLFW_KEY_ESCAPE: return ImGuiKey_Escape; + case GLFW_KEY_APOSTROPHE: return ImGuiKey_Apostrophe; + case GLFW_KEY_COMMA: return ImGuiKey_Comma; + case GLFW_KEY_MINUS: return ImGuiKey_Minus; + case GLFW_KEY_PERIOD: return ImGuiKey_Period; + case GLFW_KEY_SLASH: return ImGuiKey_Slash; + case GLFW_KEY_SEMICOLON: return ImGuiKey_Semicolon; + case GLFW_KEY_EQUAL: return ImGuiKey_Equal; + case GLFW_KEY_LEFT_BRACKET: return ImGuiKey_LeftBracket; + case GLFW_KEY_BACKSLASH: return ImGuiKey_Backslash; + case GLFW_KEY_RIGHT_BRACKET: return ImGuiKey_RightBracket; + case GLFW_KEY_GRAVE_ACCENT: return ImGuiKey_GraveAccent; + case GLFW_KEY_CAPS_LOCK: return ImGuiKey_CapsLock; + case GLFW_KEY_SCROLL_LOCK: return ImGuiKey_ScrollLock; + case GLFW_KEY_NUM_LOCK: return ImGuiKey_NumLock; + case GLFW_KEY_PRINT_SCREEN: return ImGuiKey_PrintScreen; + case GLFW_KEY_PAUSE: return ImGuiKey_Pause; + case GLFW_KEY_KP_0: return ImGuiKey_Keypad0; + case GLFW_KEY_KP_1: return ImGuiKey_Keypad1; + case GLFW_KEY_KP_2: return ImGuiKey_Keypad2; + case GLFW_KEY_KP_3: return ImGuiKey_Keypad3; + case GLFW_KEY_KP_4: return ImGuiKey_Keypad4; + case GLFW_KEY_KP_5: return ImGuiKey_Keypad5; + case GLFW_KEY_KP_6: return ImGuiKey_Keypad6; + case GLFW_KEY_KP_7: return ImGuiKey_Keypad7; + case GLFW_KEY_KP_8: return ImGuiKey_Keypad8; + case GLFW_KEY_KP_9: return ImGuiKey_Keypad9; + case GLFW_KEY_KP_DECIMAL: return ImGuiKey_KeypadDecimal; + case GLFW_KEY_KP_DIVIDE: return ImGuiKey_KeypadDivide; + case GLFW_KEY_KP_MULTIPLY: return ImGuiKey_KeypadMultiply; + case GLFW_KEY_KP_SUBTRACT: return ImGuiKey_KeypadSubtract; + case GLFW_KEY_KP_ADD: return ImGuiKey_KeypadAdd; + case GLFW_KEY_KP_ENTER: return ImGuiKey_KeypadEnter; + case GLFW_KEY_KP_EQUAL: return ImGuiKey_KeypadEqual; + case GLFW_KEY_LEFT_SHIFT: return ImGuiKey_LeftShift; + case GLFW_KEY_LEFT_CONTROL: return ImGuiKey_LeftCtrl; + case GLFW_KEY_LEFT_ALT: return ImGuiKey_LeftAlt; + case GLFW_KEY_LEFT_SUPER: return ImGuiKey_LeftSuper; + case GLFW_KEY_RIGHT_SHIFT: return ImGuiKey_RightShift; + case GLFW_KEY_RIGHT_CONTROL: return ImGuiKey_RightCtrl; + case GLFW_KEY_RIGHT_ALT: return ImGuiKey_RightAlt; + case GLFW_KEY_RIGHT_SUPER: return ImGuiKey_RightSuper; + case GLFW_KEY_MENU: return ImGuiKey_Menu; + case GLFW_KEY_0: return ImGuiKey_0; + case GLFW_KEY_1: return ImGuiKey_1; + case GLFW_KEY_2: return ImGuiKey_2; + case GLFW_KEY_3: return ImGuiKey_3; + case GLFW_KEY_4: return ImGuiKey_4; + case GLFW_KEY_5: return ImGuiKey_5; + case GLFW_KEY_6: return ImGuiKey_6; + case GLFW_KEY_7: return ImGuiKey_7; + case GLFW_KEY_8: return ImGuiKey_8; + case GLFW_KEY_9: return ImGuiKey_9; + case GLFW_KEY_A: return ImGuiKey_A; + case GLFW_KEY_B: return ImGuiKey_B; + case GLFW_KEY_C: return ImGuiKey_C; + case GLFW_KEY_D: return ImGuiKey_D; + case GLFW_KEY_E: return ImGuiKey_E; + case GLFW_KEY_F: return ImGuiKey_F; + case GLFW_KEY_G: return ImGuiKey_G; + case GLFW_KEY_H: return ImGuiKey_H; + case GLFW_KEY_I: return ImGuiKey_I; + case GLFW_KEY_J: return ImGuiKey_J; + case GLFW_KEY_K: return ImGuiKey_K; + case GLFW_KEY_L: return ImGuiKey_L; + case GLFW_KEY_M: return ImGuiKey_M; + case GLFW_KEY_N: return ImGuiKey_N; + case GLFW_KEY_O: return ImGuiKey_O; + case GLFW_KEY_P: return ImGuiKey_P; + case GLFW_KEY_Q: return ImGuiKey_Q; + case GLFW_KEY_R: return ImGuiKey_R; + case GLFW_KEY_S: return ImGuiKey_S; + case GLFW_KEY_T: return ImGuiKey_T; + case GLFW_KEY_U: return ImGuiKey_U; + case GLFW_KEY_V: return ImGuiKey_V; + case GLFW_KEY_W: return ImGuiKey_W; + case GLFW_KEY_X: return ImGuiKey_X; + case GLFW_KEY_Y: return ImGuiKey_Y; + case GLFW_KEY_Z: return ImGuiKey_Z; + case GLFW_KEY_F1: return ImGuiKey_F1; + case GLFW_KEY_F2: return ImGuiKey_F2; + case GLFW_KEY_F3: return ImGuiKey_F3; + case GLFW_KEY_F4: return ImGuiKey_F4; + case GLFW_KEY_F5: return ImGuiKey_F5; + case GLFW_KEY_F6: return ImGuiKey_F6; + case GLFW_KEY_F7: return ImGuiKey_F7; + case GLFW_KEY_F8: return ImGuiKey_F8; + case GLFW_KEY_F9: return ImGuiKey_F9; + case GLFW_KEY_F10: return ImGuiKey_F10; + case GLFW_KEY_F11: return ImGuiKey_F11; + case GLFW_KEY_F12: return ImGuiKey_F12; + case GLFW_KEY_F13: return ImGuiKey_F13; + case GLFW_KEY_F14: return ImGuiKey_F14; + case GLFW_KEY_F15: return ImGuiKey_F15; + case GLFW_KEY_F16: return ImGuiKey_F16; + case GLFW_KEY_F17: return ImGuiKey_F17; + case GLFW_KEY_F18: return ImGuiKey_F18; + case GLFW_KEY_F19: return ImGuiKey_F19; + case GLFW_KEY_F20: return ImGuiKey_F20; + case GLFW_KEY_F21: return ImGuiKey_F21; + case GLFW_KEY_F22: return ImGuiKey_F22; + case GLFW_KEY_F23: return ImGuiKey_F23; + case GLFW_KEY_F24: return ImGuiKey_F24; + default: return ImGuiKey_None; + } +} + +// X11 does not include current pressed/released modifier key in 'mods' flags submitted by GLFW +// See https://github.com/ocornut/imgui/issues/6034 and https://github.com/glfw/glfw/issues/1630 +static void ImGui_ImplGlfw_UpdateKeyModifiers(GLFWwindow* window) +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddKeyEvent(ImGuiMod_Ctrl, (glfwGetKey(window, GLFW_KEY_LEFT_CONTROL) == GLFW_PRESS) || (glfwGetKey(window, GLFW_KEY_RIGHT_CONTROL) == GLFW_PRESS)); + io.AddKeyEvent(ImGuiMod_Shift, (glfwGetKey(window, GLFW_KEY_LEFT_SHIFT) == GLFW_PRESS) || (glfwGetKey(window, GLFW_KEY_RIGHT_SHIFT) == GLFW_PRESS)); + io.AddKeyEvent(ImGuiMod_Alt, (glfwGetKey(window, GLFW_KEY_LEFT_ALT) == GLFW_PRESS) || (glfwGetKey(window, GLFW_KEY_RIGHT_ALT) == GLFW_PRESS)); + io.AddKeyEvent(ImGuiMod_Super, (glfwGetKey(window, GLFW_KEY_LEFT_SUPER) == GLFW_PRESS) || (glfwGetKey(window, GLFW_KEY_RIGHT_SUPER) == GLFW_PRESS)); +} + +static bool ImGui_ImplGlfw_ShouldChainCallback(GLFWwindow* window) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + return bd->CallbacksChainForAllWindows ? true : (window == bd->Window); +} + +void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window, int button, int action, int mods) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackMousebutton != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackMousebutton(window, button, action, mods); + + ImGui_ImplGlfw_UpdateKeyModifiers(window); + + ImGuiIO& io = ImGui::GetIO(); + if (button >= 0 && button < ImGuiMouseButton_COUNT) + io.AddMouseButtonEvent(button, action == GLFW_PRESS); +} + +void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window, double xoffset, double yoffset) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackScroll != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackScroll(window, xoffset, yoffset); + +#ifdef __EMSCRIPTEN__ + // Ignore GLFW events: will be processed in ImGui_ImplEmscripten_WheelCallback(). + return; +#endif + + ImGuiIO& io = ImGui::GetIO(); + io.AddMouseWheelEvent((float)xoffset, (float)yoffset); +} + +static int ImGui_ImplGlfw_TranslateUntranslatedKey(int key, int scancode) +{ +#if GLFW_HAS_GETKEYNAME && !defined(__EMSCRIPTEN__) + // GLFW 3.1+ attempts to "untranslate" keys, which goes the opposite of what every other framework does, making using lettered shortcuts difficult. + // (It had reasons to do so: namely GLFW is/was more likely to be used for WASD-type game controls rather than lettered shortcuts, but IHMO the 3.1 change could have been done differently) + // See https://github.com/glfw/glfw/issues/1502 for details. + // Adding a workaround to undo this (so our keys are translated->untranslated->translated, likely a lossy process). + // This won't cover edge cases but this is at least going to cover common cases. + if (key >= GLFW_KEY_KP_0 && key <= GLFW_KEY_KP_EQUAL) + return key; + GLFWerrorfun prev_error_callback = glfwSetErrorCallback(nullptr); + const char* key_name = glfwGetKeyName(key, scancode); + glfwSetErrorCallback(prev_error_callback); +#if GLFW_HAS_GETERROR && !defined(__EMSCRIPTEN__) // Eat errors (see #5908) + (void)glfwGetError(nullptr); +#endif + if (key_name && key_name[0] != 0 && key_name[1] == 0) + { + const char char_names[] = "`-=[]\\,;\'./"; + const int char_keys[] = { GLFW_KEY_GRAVE_ACCENT, GLFW_KEY_MINUS, GLFW_KEY_EQUAL, GLFW_KEY_LEFT_BRACKET, GLFW_KEY_RIGHT_BRACKET, GLFW_KEY_BACKSLASH, GLFW_KEY_COMMA, GLFW_KEY_SEMICOLON, GLFW_KEY_APOSTROPHE, GLFW_KEY_PERIOD, GLFW_KEY_SLASH, 0 }; + IM_ASSERT(IM_ARRAYSIZE(char_names) == IM_ARRAYSIZE(char_keys)); + if (key_name[0] >= '0' && key_name[0] <= '9') { key = GLFW_KEY_0 + (key_name[0] - '0'); } + else if (key_name[0] >= 'A' && key_name[0] <= 'Z') { key = GLFW_KEY_A + (key_name[0] - 'A'); } + else if (key_name[0] >= 'a' && key_name[0] <= 'z') { key = GLFW_KEY_A + (key_name[0] - 'a'); } + else if (const char* p = strchr(char_names, key_name[0])) { key = char_keys[p - char_names]; } + } + // if (action == GLFW_PRESS) printf("key %d scancode %d name '%s'\n", key, scancode, key_name); +#else + IM_UNUSED(scancode); +#endif + return key; +} + +void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window, int keycode, int scancode, int action, int mods) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackKey != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackKey(window, keycode, scancode, action, mods); + + if (action != GLFW_PRESS && action != GLFW_RELEASE) + return; + + ImGui_ImplGlfw_UpdateKeyModifiers(window); + + if (keycode >= 0 && keycode < IM_ARRAYSIZE(bd->KeyOwnerWindows)) + bd->KeyOwnerWindows[keycode] = (action == GLFW_PRESS) ? window : nullptr; + + keycode = ImGui_ImplGlfw_TranslateUntranslatedKey(keycode, scancode); + + ImGuiIO& io = ImGui::GetIO(); + ImGuiKey imgui_key = ImGui_ImplGlfw_KeyToImGuiKey(keycode); + io.AddKeyEvent(imgui_key, (action == GLFW_PRESS)); + io.SetKeyEventNativeData(imgui_key, keycode, scancode); // To support legacy indexing (<1.87 user code) +} + +void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window, int focused) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackWindowFocus != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackWindowFocus(window, focused); + + ImGuiIO& io = ImGui::GetIO(); + io.AddFocusEvent(focused != 0); +} + +void ImGui_ImplGlfw_CursorPosCallback(GLFWwindow* window, double x, double y) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackCursorPos != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackCursorPos(window, x, y); + + ImGuiIO& io = ImGui::GetIO(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + int window_x, window_y; + glfwGetWindowPos(window, &window_x, &window_y); + x += window_x; + y += window_y; + } + io.AddMousePosEvent((float)x, (float)y); + bd->LastValidMousePos = ImVec2((float)x, (float)y); +} + +// Workaround: X11 seems to send spurious Leave/Enter events which would make us lose our position, +// so we back it up and restore on Leave/Enter (see https://github.com/ocornut/imgui/issues/4984) +void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window, int entered) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackCursorEnter != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackCursorEnter(window, entered); + + ImGuiIO& io = ImGui::GetIO(); + if (entered) + { + bd->MouseWindow = window; + io.AddMousePosEvent(bd->LastValidMousePos.x, bd->LastValidMousePos.y); + } + else if (!entered && bd->MouseWindow == window) + { + bd->LastValidMousePos = io.MousePos; + bd->MouseWindow = nullptr; + io.AddMousePosEvent(-FLT_MAX, -FLT_MAX); + } +} + +void ImGui_ImplGlfw_CharCallback(GLFWwindow* window, unsigned int c) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackChar != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackChar(window, c); + + ImGuiIO& io = ImGui::GetIO(); + io.AddInputCharacter(c); +} + +void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor*, int) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + bd->WantUpdateMonitors = true; +} + +#ifdef __EMSCRIPTEN__ +static EM_BOOL ImGui_ImplEmscripten_WheelCallback(int, const EmscriptenWheelEvent* ev, void*) +{ + // Mimic Emscripten_HandleWheel() in SDL. + // Corresponding equivalent in GLFW JS emulation layer has incorrect quantizing preventing small values. See #6096 + float multiplier = 0.0f; + if (ev->deltaMode == DOM_DELTA_PIXEL) { multiplier = 1.0f / 100.0f; } // 100 pixels make up a step. + else if (ev->deltaMode == DOM_DELTA_LINE) { multiplier = 1.0f / 3.0f; } // 3 lines make up a step. + else if (ev->deltaMode == DOM_DELTA_PAGE) { multiplier = 80.0f; } // A page makes up 80 steps. + float wheel_x = ev->deltaX * -multiplier; + float wheel_y = ev->deltaY * -multiplier; + ImGuiIO& io = ImGui::GetIO(); + io.AddMouseWheelEvent(wheel_x, wheel_y); + //IMGUI_DEBUG_LOG("[Emsc] mode %d dx: %.2f, dy: %.2f, dz: %.2f --> feed %.2f %.2f\n", (int)ev->deltaMode, ev->deltaX, ev->deltaY, ev->deltaZ, wheel_x, wheel_y); + return EM_TRUE; +} +#endif + +#ifdef _WIN32 +static LRESULT CALLBACK ImGui_ImplGlfw_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); +#endif + +void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + IM_ASSERT(bd->InstalledCallbacks == false && "Callbacks already installed!"); + IM_ASSERT(bd->Window == window); + + bd->PrevUserCallbackWindowFocus = glfwSetWindowFocusCallback(window, ImGui_ImplGlfw_WindowFocusCallback); + bd->PrevUserCallbackCursorEnter = glfwSetCursorEnterCallback(window, ImGui_ImplGlfw_CursorEnterCallback); + bd->PrevUserCallbackCursorPos = glfwSetCursorPosCallback(window, ImGui_ImplGlfw_CursorPosCallback); + bd->PrevUserCallbackMousebutton = glfwSetMouseButtonCallback(window, ImGui_ImplGlfw_MouseButtonCallback); + bd->PrevUserCallbackScroll = glfwSetScrollCallback(window, ImGui_ImplGlfw_ScrollCallback); + bd->PrevUserCallbackKey = glfwSetKeyCallback(window, ImGui_ImplGlfw_KeyCallback); + bd->PrevUserCallbackChar = glfwSetCharCallback(window, ImGui_ImplGlfw_CharCallback); + bd->PrevUserCallbackMonitor = glfwSetMonitorCallback(ImGui_ImplGlfw_MonitorCallback); + bd->InstalledCallbacks = true; +} + +void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + IM_ASSERT(bd->InstalledCallbacks == true && "Callbacks not installed!"); + IM_ASSERT(bd->Window == window); + + glfwSetWindowFocusCallback(window, bd->PrevUserCallbackWindowFocus); + glfwSetCursorEnterCallback(window, bd->PrevUserCallbackCursorEnter); + glfwSetCursorPosCallback(window, bd->PrevUserCallbackCursorPos); + glfwSetMouseButtonCallback(window, bd->PrevUserCallbackMousebutton); + glfwSetScrollCallback(window, bd->PrevUserCallbackScroll); + glfwSetKeyCallback(window, bd->PrevUserCallbackKey); + glfwSetCharCallback(window, bd->PrevUserCallbackChar); + glfwSetMonitorCallback(bd->PrevUserCallbackMonitor); + bd->InstalledCallbacks = false; + bd->PrevUserCallbackWindowFocus = nullptr; + bd->PrevUserCallbackCursorEnter = nullptr; + bd->PrevUserCallbackCursorPos = nullptr; + bd->PrevUserCallbackMousebutton = nullptr; + bd->PrevUserCallbackScroll = nullptr; + bd->PrevUserCallbackKey = nullptr; + bd->PrevUserCallbackChar = nullptr; + bd->PrevUserCallbackMonitor = nullptr; +} + +// Set to 'true' to enable chaining installed callbacks for all windows (including secondary viewports created by backends or by user. +// This is 'false' by default meaning we only chain callbacks for the main viewport. +// We cannot set this to 'true' by default because user callbacks code may be not testing the 'window' parameter of their callback. +// If you set this to 'true' your user callback code will need to make sure you are testing the 'window' parameter. +void ImGui_ImplGlfw_SetCallbacksChainForAllWindows(bool chain_for_all_windows) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + bd->CallbacksChainForAllWindows = chain_for_all_windows; +} + +static bool ImGui_ImplGlfw_Init(GLFWwindow* window, bool install_callbacks, GlfwClientApi client_api) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendPlatformUserData == nullptr && "Already initialized a platform backend!"); + //printf("GLFW_VERSION: %d.%d.%d (%d)", GLFW_VERSION_MAJOR, GLFW_VERSION_MINOR, GLFW_VERSION_REVISION, GLFW_VERSION_COMBINED); + + // Setup backend capabilities flags + ImGui_ImplGlfw_Data* bd = IM_NEW(ImGui_ImplGlfw_Data)(); + io.BackendPlatformUserData = (void*)bd; + io.BackendPlatformName = "imgui_impl_glfw"; + io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) + io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used) +#ifndef __EMSCRIPTEN__ + io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports; // We can create multi-viewports on the Platform side (optional) +#endif +#if GLFW_HAS_MOUSE_PASSTHROUGH || (GLFW_HAS_WINDOW_HOVERED && defined(_WIN32)) + io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport; // We can call io.AddMouseViewportEvent() with correct data (optional) +#endif + + bd->Window = window; + bd->Time = 0.0; + bd->WantUpdateMonitors = true; + + io.SetClipboardTextFn = ImGui_ImplGlfw_SetClipboardText; + io.GetClipboardTextFn = ImGui_ImplGlfw_GetClipboardText; + io.ClipboardUserData = bd->Window; + + // Create mouse cursors + // (By design, on X11 cursors are user configurable and some cursors may be missing. When a cursor doesn't exist, + // GLFW will emit an error which will often be printed by the app, so we temporarily disable error reporting. + // Missing cursors will return nullptr and our _UpdateMouseCursor() function will use the Arrow cursor instead.) + GLFWerrorfun prev_error_callback = glfwSetErrorCallback(nullptr); + bd->MouseCursors[ImGuiMouseCursor_Arrow] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_TextInput] = glfwCreateStandardCursor(GLFW_IBEAM_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeNS] = glfwCreateStandardCursor(GLFW_VRESIZE_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeEW] = glfwCreateStandardCursor(GLFW_HRESIZE_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_Hand] = glfwCreateStandardCursor(GLFW_HAND_CURSOR); +#if GLFW_HAS_NEW_CURSORS + bd->MouseCursors[ImGuiMouseCursor_ResizeAll] = glfwCreateStandardCursor(GLFW_RESIZE_ALL_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeNESW] = glfwCreateStandardCursor(GLFW_RESIZE_NESW_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeNWSE] = glfwCreateStandardCursor(GLFW_RESIZE_NWSE_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = glfwCreateStandardCursor(GLFW_NOT_ALLOWED_CURSOR); +#else + bd->MouseCursors[ImGuiMouseCursor_ResizeAll] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeNESW] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeNWSE] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); +#endif + glfwSetErrorCallback(prev_error_callback); +#if GLFW_HAS_GETERROR && !defined(__EMSCRIPTEN__) // Eat errors (see #5908) + (void)glfwGetError(nullptr); +#endif + + // Chain GLFW callbacks: our callbacks will call the user's previously installed callbacks, if any. + if (install_callbacks) + ImGui_ImplGlfw_InstallCallbacks(window); + // Register Emscripten Wheel callback to workaround issue in Emscripten GLFW Emulation (#6096) + // We intentionally do not check 'if (install_callbacks)' here, as some users may set it to false and call GLFW callback themselves. + // FIXME: May break chaining in case user registered their own Emscripten callback? +#ifdef __EMSCRIPTEN__ + emscripten_set_wheel_callback(EMSCRIPTEN_EVENT_TARGET_DOCUMENT, nullptr, false, ImGui_ImplEmscripten_WheelCallback); +#endif + + // Update monitors the first time (note: monitor callback are broken in GLFW 3.2 and earlier, see github.com/glfw/glfw/issues/784) + ImGui_ImplGlfw_UpdateMonitors(); + glfwSetMonitorCallback(ImGui_ImplGlfw_MonitorCallback); + + // Set platform dependent data in viewport + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + main_viewport->PlatformHandle = (void*)bd->Window; +#ifdef _WIN32 + main_viewport->PlatformHandleRaw = glfwGetWin32Window(bd->Window); +#elif defined(__APPLE__) + main_viewport->PlatformHandleRaw = (void*)glfwGetCocoaWindow(bd->Window); +#else + IM_UNUSED(main_viewport); +#endif + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplGlfw_InitPlatformInterface(); + + // Windows: register a WndProc hook so we can intercept some messages. +#ifdef _WIN32 + bd->PrevWndProc = (WNDPROC)::GetWindowLongPtr((HWND)main_viewport->PlatformHandleRaw, GWLP_WNDPROC); + IM_ASSERT(bd->PrevWndProc != nullptr); + ::SetWindowLongPtr((HWND)main_viewport->PlatformHandleRaw, GWLP_WNDPROC, (LONG_PTR)ImGui_ImplGlfw_WndProc); +#endif + + bd->ClientApi = client_api; + return true; +} + +bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window, bool install_callbacks) +{ + return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_OpenGL); +} + +bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window, bool install_callbacks) +{ + return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_Vulkan); +} + +bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window, bool install_callbacks) +{ + return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_Unknown); +} + +void ImGui_ImplGlfw_Shutdown() +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + IM_ASSERT(bd != nullptr && "No platform backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplGlfw_ShutdownPlatformInterface(); + + if (bd->InstalledCallbacks) + ImGui_ImplGlfw_RestoreCallbacks(bd->Window); +#ifdef __EMSCRIPTEN__ + emscripten_set_wheel_callback(EMSCRIPTEN_EVENT_TARGET_DOCUMENT, nullptr, false, nullptr); +#endif + + for (ImGuiMouseCursor cursor_n = 0; cursor_n < ImGuiMouseCursor_COUNT; cursor_n++) + glfwDestroyCursor(bd->MouseCursors[cursor_n]); + + // Windows: restore our WndProc hook +#ifdef _WIN32 + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ::SetWindowLongPtr((HWND)main_viewport->PlatformHandleRaw, GWLP_WNDPROC, (LONG_PTR)bd->PrevWndProc); + bd->PrevWndProc = nullptr; +#endif + + io.BackendPlatformName = nullptr; + io.BackendPlatformUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_HasMouseCursors | ImGuiBackendFlags_HasSetMousePos | ImGuiBackendFlags_HasGamepad | ImGuiBackendFlags_PlatformHasViewports | ImGuiBackendFlags_HasMouseHoveredViewport); + IM_DELETE(bd); +} + +static void ImGui_ImplGlfw_UpdateMouseData() +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + + + ImGuiID mouse_viewport_id = 0; + const ImVec2 mouse_pos_prev = io.MousePos; + for (int n = 0; n < platform_io.Viewports.Size; n++) + { + ImGuiViewport* viewport = platform_io.Viewports[n]; + GLFWwindow* window = (GLFWwindow*)viewport->PlatformHandle; + +#ifdef __EMSCRIPTEN__ + const bool is_window_focused = true; +#else + const bool is_window_focused = glfwGetWindowAttrib(window, GLFW_FOCUSED) != 0; +#endif + if (is_window_focused) + { + // (Optional) Set OS mouse position from Dear ImGui if requested (rarely used, only when ImGuiConfigFlags_NavEnableSetMousePos is enabled by user) + // When multi-viewports are enabled, all Dear ImGui positions are same as OS positions. + if (io.WantSetMousePos) + glfwSetCursorPos(window, (double)(mouse_pos_prev.x - viewport->Pos.x), (double)(mouse_pos_prev.y - viewport->Pos.y)); + + // (Optional) Fallback to provide mouse position when focused (ImGui_ImplGlfw_CursorPosCallback already provides this when hovered or captured) + if (bd->MouseWindow == nullptr) + { + double mouse_x, mouse_y; + glfwGetCursorPos(window, &mouse_x, &mouse_y); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + // Single viewport mode: mouse position in client window coordinates (io.MousePos is (0,0) when the mouse is on the upper-left corner of the app window) + // Multi-viewport mode: mouse position in OS absolute coordinates (io.MousePos is (0,0) when the mouse is on the upper-left of the primary monitor) + int window_x, window_y; + glfwGetWindowPos(window, &window_x, &window_y); + mouse_x += window_x; + mouse_y += window_y; + } + bd->LastValidMousePos = ImVec2((float)mouse_x, (float)mouse_y); + io.AddMousePosEvent((float)mouse_x, (float)mouse_y); + } + } + + // (Optional) When using multiple viewports: call io.AddMouseViewportEvent() with the viewport the OS mouse cursor is hovering. + // If ImGuiBackendFlags_HasMouseHoveredViewport is not set by the backend, Dear imGui will ignore this field and infer the information using its flawed heuristic. + // - [X] GLFW >= 3.3 backend ON WINDOWS ONLY does correctly ignore viewports with the _NoInputs flag. + // - [!] GLFW <= 3.2 backend CANNOT correctly ignore viewports with the _NoInputs flag, and CANNOT reported Hovered Viewport because of mouse capture. + // Some backend are not able to handle that correctly. If a backend report an hovered viewport that has the _NoInputs flag (e.g. when dragging a window + // for docking, the viewport has the _NoInputs flag in order to allow us to find the viewport under), then Dear ImGui is forced to ignore the value reported + // by the backend, and use its flawed heuristic to guess the viewport behind. + // - [X] GLFW backend correctly reports this regardless of another viewport behind focused and dragged from (we need this to find a useful drag and drop target). + // FIXME: This is currently only correct on Win32. See what we do below with the WM_NCHITTEST, missing an equivalent for other systems. + // See https://github.com/glfw/glfw/issues/1236 if you want to help in making this a GLFW feature. +#if GLFW_HAS_MOUSE_PASSTHROUGH || (GLFW_HAS_WINDOW_HOVERED && defined(_WIN32)) + const bool window_no_input = (viewport->Flags & ImGuiViewportFlags_NoInputs) != 0; +#if GLFW_HAS_MOUSE_PASSTHROUGH + glfwSetWindowAttrib(window, GLFW_MOUSE_PASSTHROUGH, window_no_input); +#endif + if (glfwGetWindowAttrib(window, GLFW_HOVERED) && !window_no_input) + mouse_viewport_id = viewport->ID; +#else + // We cannot use bd->MouseWindow maintained from CursorEnter/Leave callbacks, because it is locked to the window capturing mouse. +#endif + } + + if (io.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport) + io.AddMouseViewportEvent(mouse_viewport_id); +} + +static void ImGui_ImplGlfw_UpdateMouseCursor() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if ((io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) || glfwGetInputMode(bd->Window, GLFW_CURSOR) == GLFW_CURSOR_DISABLED) + return; + + ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int n = 0; n < platform_io.Viewports.Size; n++) + { + GLFWwindow* window = (GLFWwindow*)platform_io.Viewports[n]->PlatformHandle; + if (imgui_cursor == ImGuiMouseCursor_None || io.MouseDrawCursor) + { + // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor + glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_HIDDEN); + } + else + { + // Show OS mouse cursor + // FIXME-PLATFORM: Unfocused windows seems to fail changing the mouse cursor with GLFW 3.2, but 3.3 works here. + glfwSetCursor(window, bd->MouseCursors[imgui_cursor] ? bd->MouseCursors[imgui_cursor] : bd->MouseCursors[ImGuiMouseCursor_Arrow]); + glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); + } + } +} + +// Update gamepad inputs +static inline float Saturate(float v) { return v < 0.0f ? 0.0f : v > 1.0f ? 1.0f : v; } +static void ImGui_ImplGlfw_UpdateGamepads() +{ + ImGuiIO& io = ImGui::GetIO(); + if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) // FIXME: Technically feeding gamepad shouldn't depend on this now that they are regular inputs. + return; + + io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; +#if GLFW_HAS_GAMEPAD_API && !defined(__EMSCRIPTEN__) + GLFWgamepadstate gamepad; + if (!glfwGetGamepadState(GLFW_JOYSTICK_1, &gamepad)) + return; + #define MAP_BUTTON(KEY_NO, BUTTON_NO, _UNUSED) do { io.AddKeyEvent(KEY_NO, gamepad.buttons[BUTTON_NO] != 0); } while (0) + #define MAP_ANALOG(KEY_NO, AXIS_NO, _UNUSED, V0, V1) do { float v = gamepad.axes[AXIS_NO]; v = (v - V0) / (V1 - V0); io.AddKeyAnalogEvent(KEY_NO, v > 0.10f, Saturate(v)); } while (0) +#else + int axes_count = 0, buttons_count = 0; + const float* axes = glfwGetJoystickAxes(GLFW_JOYSTICK_1, &axes_count); + const unsigned char* buttons = glfwGetJoystickButtons(GLFW_JOYSTICK_1, &buttons_count); + if (axes_count == 0 || buttons_count == 0) + return; + #define MAP_BUTTON(KEY_NO, _UNUSED, BUTTON_NO) do { io.AddKeyEvent(KEY_NO, (buttons_count > BUTTON_NO && buttons[BUTTON_NO] == GLFW_PRESS)); } while (0) + #define MAP_ANALOG(KEY_NO, _UNUSED, AXIS_NO, V0, V1) do { float v = (axes_count > AXIS_NO) ? axes[AXIS_NO] : V0; v = (v - V0) / (V1 - V0); io.AddKeyAnalogEvent(KEY_NO, v > 0.10f, Saturate(v)); } while (0) +#endif + io.BackendFlags |= ImGuiBackendFlags_HasGamepad; + MAP_BUTTON(ImGuiKey_GamepadStart, GLFW_GAMEPAD_BUTTON_START, 7); + MAP_BUTTON(ImGuiKey_GamepadBack, GLFW_GAMEPAD_BUTTON_BACK, 6); + MAP_BUTTON(ImGuiKey_GamepadFaceLeft, GLFW_GAMEPAD_BUTTON_X, 2); // Xbox X, PS Square + MAP_BUTTON(ImGuiKey_GamepadFaceRight, GLFW_GAMEPAD_BUTTON_B, 1); // Xbox B, PS Circle + MAP_BUTTON(ImGuiKey_GamepadFaceUp, GLFW_GAMEPAD_BUTTON_Y, 3); // Xbox Y, PS Triangle + MAP_BUTTON(ImGuiKey_GamepadFaceDown, GLFW_GAMEPAD_BUTTON_A, 0); // Xbox A, PS Cross + MAP_BUTTON(ImGuiKey_GamepadDpadLeft, GLFW_GAMEPAD_BUTTON_DPAD_LEFT, 13); + MAP_BUTTON(ImGuiKey_GamepadDpadRight, GLFW_GAMEPAD_BUTTON_DPAD_RIGHT, 11); + MAP_BUTTON(ImGuiKey_GamepadDpadUp, GLFW_GAMEPAD_BUTTON_DPAD_UP, 10); + MAP_BUTTON(ImGuiKey_GamepadDpadDown, GLFW_GAMEPAD_BUTTON_DPAD_DOWN, 12); + MAP_BUTTON(ImGuiKey_GamepadL1, GLFW_GAMEPAD_BUTTON_LEFT_BUMPER, 4); + MAP_BUTTON(ImGuiKey_GamepadR1, GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER, 5); + MAP_ANALOG(ImGuiKey_GamepadL2, GLFW_GAMEPAD_AXIS_LEFT_TRIGGER, 4, -0.75f, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadR2, GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER, 5, -0.75f, +1.0f); + MAP_BUTTON(ImGuiKey_GamepadL3, GLFW_GAMEPAD_BUTTON_LEFT_THUMB, 8); + MAP_BUTTON(ImGuiKey_GamepadR3, GLFW_GAMEPAD_BUTTON_RIGHT_THUMB, 9); + MAP_ANALOG(ImGuiKey_GamepadLStickLeft, GLFW_GAMEPAD_AXIS_LEFT_X, 0, -0.25f, -1.0f); + MAP_ANALOG(ImGuiKey_GamepadLStickRight, GLFW_GAMEPAD_AXIS_LEFT_X, 0, +0.25f, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadLStickUp, GLFW_GAMEPAD_AXIS_LEFT_Y, 1, -0.25f, -1.0f); + MAP_ANALOG(ImGuiKey_GamepadLStickDown, GLFW_GAMEPAD_AXIS_LEFT_Y, 1, +0.25f, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickLeft, GLFW_GAMEPAD_AXIS_RIGHT_X, 2, -0.25f, -1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickRight, GLFW_GAMEPAD_AXIS_RIGHT_X, 2, +0.25f, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickUp, GLFW_GAMEPAD_AXIS_RIGHT_Y, 3, -0.25f, -1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickDown, GLFW_GAMEPAD_AXIS_RIGHT_Y, 3, +0.25f, +1.0f); + #undef MAP_BUTTON + #undef MAP_ANALOG +} + +static void ImGui_ImplGlfw_UpdateMonitors() +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + bd->WantUpdateMonitors = false; + + int monitors_count = 0; + GLFWmonitor** glfw_monitors = glfwGetMonitors(&monitors_count); + if (monitors_count == 0) // Preserve existing monitor list if there are none. Happens on macOS sleeping (#5683) + return; + + platform_io.Monitors.resize(0); + for (int n = 0; n < monitors_count; n++) + { + ImGuiPlatformMonitor monitor; + int x, y; + glfwGetMonitorPos(glfw_monitors[n], &x, &y); + const GLFWvidmode* vid_mode = glfwGetVideoMode(glfw_monitors[n]); + if (vid_mode == nullptr) + continue; // Failed to get Video mode (e.g. Emscripten does not support this function) + monitor.MainPos = monitor.WorkPos = ImVec2((float)x, (float)y); + monitor.MainSize = monitor.WorkSize = ImVec2((float)vid_mode->width, (float)vid_mode->height); +#if GLFW_HAS_MONITOR_WORK_AREA + int w, h; + glfwGetMonitorWorkarea(glfw_monitors[n], &x, &y, &w, &h); + if (w > 0 && h > 0) // Workaround a small GLFW issue reporting zero on monitor changes: https://github.com/glfw/glfw/pull/1761 + { + monitor.WorkPos = ImVec2((float)x, (float)y); + monitor.WorkSize = ImVec2((float)w, (float)h); + } +#endif +#if GLFW_HAS_PER_MONITOR_DPI + // Warning: the validity of monitor DPI information on Windows depends on the application DPI awareness settings, which generally needs to be set in the manifest or at runtime. + float x_scale, y_scale; + glfwGetMonitorContentScale(glfw_monitors[n], &x_scale, &y_scale); + monitor.DpiScale = x_scale; +#endif + monitor.PlatformHandle = (void*)glfw_monitors[n]; // [...] GLFW doc states: "guaranteed to be valid only until the monitor configuration changes" + platform_io.Monitors.push_back(monitor); + } +} + +void ImGui_ImplGlfw_NewFrame() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplGlfw_InitForXXX()?"); + + // Setup display size (every frame to accommodate for window resizing) + int w, h; + int display_w, display_h; + glfwGetWindowSize(bd->Window, &w, &h); + glfwGetFramebufferSize(bd->Window, &display_w, &display_h); + io.DisplaySize = ImVec2((float)w, (float)h); + if (w > 0 && h > 0) + io.DisplayFramebufferScale = ImVec2((float)display_w / (float)w, (float)display_h / (float)h); + if (bd->WantUpdateMonitors) + ImGui_ImplGlfw_UpdateMonitors(); + + // Setup time step + // (Accept glfwGetTime() not returning a monotonically increasing value. Seems to happens on disconnecting peripherals and probably on VMs and Emscripten, see #6491, #6189, #6114, #3644) + double current_time = glfwGetTime(); + if (current_time <= bd->Time) + current_time = bd->Time + 0.00001f; + io.DeltaTime = bd->Time > 0.0 ? (float)(current_time - bd->Time) : (float)(1.0f / 60.0f); + bd->Time = current_time; + + ImGui_ImplGlfw_UpdateMouseData(); + ImGui_ImplGlfw_UpdateMouseCursor(); + + // Update game controllers (if enabled and available) + ImGui_ImplGlfw_UpdateGamepads(); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +// Helper structure we store in the void* RendererUserData field of each ImGuiViewport to easily retrieve our backend data. +struct ImGui_ImplGlfw_ViewportData +{ + GLFWwindow* Window; + bool WindowOwned; + int IgnoreWindowPosEventFrame; + int IgnoreWindowSizeEventFrame; +#ifdef _WIN32 + WNDPROC PrevWndProc; +#endif + + ImGui_ImplGlfw_ViewportData() { memset(this, 0, sizeof(*this)); IgnoreWindowSizeEventFrame = IgnoreWindowPosEventFrame = -1; } + ~ImGui_ImplGlfw_ViewportData() { IM_ASSERT(Window == nullptr); } +}; + +static void ImGui_ImplGlfw_WindowCloseCallback(GLFWwindow* window) +{ + if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle(window)) + viewport->PlatformRequestClose = true; +} + +// GLFW may dispatch window pos/size events after calling glfwSetWindowPos()/glfwSetWindowSize(). +// However: depending on the platform the callback may be invoked at different time: +// - on Windows it appears to be called within the glfwSetWindowPos()/glfwSetWindowSize() call +// - on Linux it is queued and invoked during glfwPollEvents() +// Because the event doesn't always fire on glfwSetWindowXXX() we use a frame counter tag to only +// ignore recent glfwSetWindowXXX() calls. +static void ImGui_ImplGlfw_WindowPosCallback(GLFWwindow* window, int, int) +{ + if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle(window)) + { + if (ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData) + { + bool ignore_event = (ImGui::GetFrameCount() <= vd->IgnoreWindowPosEventFrame + 1); + //data->IgnoreWindowPosEventFrame = -1; + if (ignore_event) + return; + } + viewport->PlatformRequestMove = true; + } +} + +static void ImGui_ImplGlfw_WindowSizeCallback(GLFWwindow* window, int, int) +{ + if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle(window)) + { + if (ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData) + { + bool ignore_event = (ImGui::GetFrameCount() <= vd->IgnoreWindowSizeEventFrame + 1); + //data->IgnoreWindowSizeEventFrame = -1; + if (ignore_event) + return; + } + viewport->PlatformRequestResize = true; + } +} + +static void ImGui_ImplGlfw_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGui_ImplGlfw_ViewportData* vd = IM_NEW(ImGui_ImplGlfw_ViewportData)(); + viewport->PlatformUserData = vd; + + // GLFW 3.2 unfortunately always set focus on glfwCreateWindow() if GLFW_VISIBLE is set, regardless of GLFW_FOCUSED + // With GLFW 3.3, the hint GLFW_FOCUS_ON_SHOW fixes this problem + glfwWindowHint(GLFW_VISIBLE, false); + glfwWindowHint(GLFW_FOCUSED, false); +#if GLFW_HAS_FOCUS_ON_SHOW + glfwWindowHint(GLFW_FOCUS_ON_SHOW, false); + #endif + glfwWindowHint(GLFW_DECORATED, (viewport->Flags & ImGuiViewportFlags_NoDecoration) ? false : true); +#if GLFW_HAS_WINDOW_TOPMOST + glfwWindowHint(GLFW_FLOATING, (viewport->Flags & ImGuiViewportFlags_TopMost) ? true : false); +#endif + GLFWwindow* share_window = (bd->ClientApi == GlfwClientApi_OpenGL) ? bd->Window : nullptr; + vd->Window = glfwCreateWindow((int)viewport->Size.x, (int)viewport->Size.y, "No Title Yet", nullptr, share_window); + vd->WindowOwned = true; + viewport->PlatformHandle = (void*)vd->Window; +#ifdef _WIN32 + viewport->PlatformHandleRaw = glfwGetWin32Window(vd->Window); +#elif defined(__APPLE__) + viewport->PlatformHandleRaw = (void*)glfwGetCocoaWindow(vd->Window); +#endif + glfwSetWindowPos(vd->Window, (int)viewport->Pos.x, (int)viewport->Pos.y); + + // Install GLFW callbacks for secondary viewports + glfwSetWindowFocusCallback(vd->Window, ImGui_ImplGlfw_WindowFocusCallback); + glfwSetCursorEnterCallback(vd->Window, ImGui_ImplGlfw_CursorEnterCallback); + glfwSetCursorPosCallback(vd->Window, ImGui_ImplGlfw_CursorPosCallback); + glfwSetMouseButtonCallback(vd->Window, ImGui_ImplGlfw_MouseButtonCallback); + glfwSetScrollCallback(vd->Window, ImGui_ImplGlfw_ScrollCallback); + glfwSetKeyCallback(vd->Window, ImGui_ImplGlfw_KeyCallback); + glfwSetCharCallback(vd->Window, ImGui_ImplGlfw_CharCallback); + glfwSetWindowCloseCallback(vd->Window, ImGui_ImplGlfw_WindowCloseCallback); + glfwSetWindowPosCallback(vd->Window, ImGui_ImplGlfw_WindowPosCallback); + glfwSetWindowSizeCallback(vd->Window, ImGui_ImplGlfw_WindowSizeCallback); + if (bd->ClientApi == GlfwClientApi_OpenGL) + { + glfwMakeContextCurrent(vd->Window); + glfwSwapInterval(0); + } +} + +static void ImGui_ImplGlfw_DestroyWindow(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData) + { + if (vd->WindowOwned) + { +#if !GLFW_HAS_MOUSE_PASSTHROUGH && GLFW_HAS_WINDOW_HOVERED && defined(_WIN32) + HWND hwnd = (HWND)viewport->PlatformHandleRaw; + ::RemovePropA(hwnd, "IMGUI_VIEWPORT"); +#endif + + // Release any keys that were pressed in the window being destroyed and are still held down, + // because we will not receive any release events after window is destroyed. + for (int i = 0; i < IM_ARRAYSIZE(bd->KeyOwnerWindows); i++) + if (bd->KeyOwnerWindows[i] == vd->Window) + ImGui_ImplGlfw_KeyCallback(vd->Window, i, 0, GLFW_RELEASE, 0); // Later params are only used for main viewport, on which this function is never called. + + glfwDestroyWindow(vd->Window); + } + vd->Window = nullptr; + IM_DELETE(vd); + } + viewport->PlatformUserData = viewport->PlatformHandle = nullptr; +} + +static void ImGui_ImplGlfw_ShowWindow(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + +#if defined(_WIN32) + // GLFW hack: Hide icon from task bar + HWND hwnd = (HWND)viewport->PlatformHandleRaw; + if (viewport->Flags & ImGuiViewportFlags_NoTaskBarIcon) + { + LONG ex_style = ::GetWindowLong(hwnd, GWL_EXSTYLE); + ex_style &= ~WS_EX_APPWINDOW; + ex_style |= WS_EX_TOOLWINDOW; + ::SetWindowLong(hwnd, GWL_EXSTYLE, ex_style); + } + + // GLFW hack: install hook for WM_NCHITTEST message handler +#if !GLFW_HAS_MOUSE_PASSTHROUGH && GLFW_HAS_WINDOW_HOVERED && defined(_WIN32) + ::SetPropA(hwnd, "IMGUI_VIEWPORT", viewport); + vd->PrevWndProc = (WNDPROC)::GetWindowLongPtr(hwnd, GWLP_WNDPROC); + ::SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR)ImGui_ImplGlfw_WndProc); +#endif + +#if !GLFW_HAS_FOCUS_ON_SHOW + // GLFW hack: GLFW 3.2 has a bug where glfwShowWindow() also activates/focus the window. + // The fix was pushed to GLFW repository on 2018/01/09 and should be included in GLFW 3.3 via a GLFW_FOCUS_ON_SHOW window attribute. + // See https://github.com/glfw/glfw/issues/1189 + // FIXME-VIEWPORT: Implement same work-around for Linux/OSX in the meanwhile. + if (viewport->Flags & ImGuiViewportFlags_NoFocusOnAppearing) + { + ::ShowWindow(hwnd, SW_SHOWNA); + return; + } +#endif +#endif + + glfwShowWindow(vd->Window); +} + +static ImVec2 ImGui_ImplGlfw_GetWindowPos(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + int x = 0, y = 0; + glfwGetWindowPos(vd->Window, &x, &y); + return ImVec2((float)x, (float)y); +} + +static void ImGui_ImplGlfw_SetWindowPos(ImGuiViewport* viewport, ImVec2 pos) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + vd->IgnoreWindowPosEventFrame = ImGui::GetFrameCount(); + glfwSetWindowPos(vd->Window, (int)pos.x, (int)pos.y); +} + +static ImVec2 ImGui_ImplGlfw_GetWindowSize(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + int w = 0, h = 0; + glfwGetWindowSize(vd->Window, &w, &h); + return ImVec2((float)w, (float)h); +} + +static void ImGui_ImplGlfw_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; +#if __APPLE__ && !GLFW_HAS_OSX_WINDOW_POS_FIX + // Native OS windows are positioned from the bottom-left corner on macOS, whereas on other platforms they are + // positioned from the upper-left corner. GLFW makes an effort to convert macOS style coordinates, however it + // doesn't handle it when changing size. We are manually moving the window in order for changes of size to be based + // on the upper-left corner. + int x, y, width, height; + glfwGetWindowPos(vd->Window, &x, &y); + glfwGetWindowSize(vd->Window, &width, &height); + glfwSetWindowPos(vd->Window, x, y - height + size.y); +#endif + vd->IgnoreWindowSizeEventFrame = ImGui::GetFrameCount(); + glfwSetWindowSize(vd->Window, (int)size.x, (int)size.y); +} + +static void ImGui_ImplGlfw_SetWindowTitle(ImGuiViewport* viewport, const char* title) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + glfwSetWindowTitle(vd->Window, title); +} + +static void ImGui_ImplGlfw_SetWindowFocus(ImGuiViewport* viewport) +{ +#if GLFW_HAS_FOCUS_WINDOW + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + glfwFocusWindow(vd->Window); +#else + // FIXME: What are the effect of not having this function? At the moment imgui doesn't actually call SetWindowFocus - we set that up ahead, will answer that question later. + (void)viewport; +#endif +} + +static bool ImGui_ImplGlfw_GetWindowFocus(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + return glfwGetWindowAttrib(vd->Window, GLFW_FOCUSED) != 0; +} + +static bool ImGui_ImplGlfw_GetWindowMinimized(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + return glfwGetWindowAttrib(vd->Window, GLFW_ICONIFIED) != 0; +} + +#if GLFW_HAS_WINDOW_ALPHA +static void ImGui_ImplGlfw_SetWindowAlpha(ImGuiViewport* viewport, float alpha) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + glfwSetWindowOpacity(vd->Window, alpha); +} +#endif + +static void ImGui_ImplGlfw_RenderWindow(ImGuiViewport* viewport, void*) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + if (bd->ClientApi == GlfwClientApi_OpenGL) + glfwMakeContextCurrent(vd->Window); +} + +static void ImGui_ImplGlfw_SwapBuffers(ImGuiViewport* viewport, void*) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + if (bd->ClientApi == GlfwClientApi_OpenGL) + { + glfwMakeContextCurrent(vd->Window); + glfwSwapBuffers(vd->Window); + } +} + +//-------------------------------------------------------------------------------------------------------- +// Vulkan support (the Vulkan renderer needs to call a platform-side support function to create the surface) +//-------------------------------------------------------------------------------------------------------- + +// Avoid including so we can build without it +#if GLFW_HAS_VULKAN +#ifndef VULKAN_H_ +#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object; +#if defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__) +#define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object; +#else +#define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object; +#endif +VK_DEFINE_HANDLE(VkInstance) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR) +struct VkAllocationCallbacks; +enum VkResult { VK_RESULT_MAX_ENUM = 0x7FFFFFFF }; +#endif // VULKAN_H_ +extern "C" { extern GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); } +static int ImGui_ImplGlfw_CreateVkSurface(ImGuiViewport* viewport, ImU64 vk_instance, const void* vk_allocator, ImU64* out_vk_surface) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + IM_UNUSED(bd); + IM_ASSERT(bd->ClientApi == GlfwClientApi_Vulkan); + VkResult err = glfwCreateWindowSurface((VkInstance)vk_instance, vd->Window, (const VkAllocationCallbacks*)vk_allocator, (VkSurfaceKHR*)out_vk_surface); + return (int)err; +} +#endif // GLFW_HAS_VULKAN + +static void ImGui_ImplGlfw_InitPlatformInterface() +{ + // Register platform interface (will be coupled with a renderer interface) + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Platform_CreateWindow = ImGui_ImplGlfw_CreateWindow; + platform_io.Platform_DestroyWindow = ImGui_ImplGlfw_DestroyWindow; + platform_io.Platform_ShowWindow = ImGui_ImplGlfw_ShowWindow; + platform_io.Platform_SetWindowPos = ImGui_ImplGlfw_SetWindowPos; + platform_io.Platform_GetWindowPos = ImGui_ImplGlfw_GetWindowPos; + platform_io.Platform_SetWindowSize = ImGui_ImplGlfw_SetWindowSize; + platform_io.Platform_GetWindowSize = ImGui_ImplGlfw_GetWindowSize; + platform_io.Platform_SetWindowFocus = ImGui_ImplGlfw_SetWindowFocus; + platform_io.Platform_GetWindowFocus = ImGui_ImplGlfw_GetWindowFocus; + platform_io.Platform_GetWindowMinimized = ImGui_ImplGlfw_GetWindowMinimized; + platform_io.Platform_SetWindowTitle = ImGui_ImplGlfw_SetWindowTitle; + platform_io.Platform_RenderWindow = ImGui_ImplGlfw_RenderWindow; + platform_io.Platform_SwapBuffers = ImGui_ImplGlfw_SwapBuffers; +#if GLFW_HAS_WINDOW_ALPHA + platform_io.Platform_SetWindowAlpha = ImGui_ImplGlfw_SetWindowAlpha; +#endif +#if GLFW_HAS_VULKAN + platform_io.Platform_CreateVkSurface = ImGui_ImplGlfw_CreateVkSurface; +#endif + + // Register main window handle (which is owned by the main application, not by us) + // This is mostly for simplicity and consistency, so that our code (e.g. mouse handling etc.) can use same logic for main and secondary viewports. + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGui_ImplGlfw_ViewportData* vd = IM_NEW(ImGui_ImplGlfw_ViewportData)(); + vd->Window = bd->Window; + vd->WindowOwned = false; + main_viewport->PlatformUserData = vd; + main_viewport->PlatformHandle = (void*)bd->Window; +} + +static void ImGui_ImplGlfw_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +// WndProc hook (declared here because we will need access to ImGui_ImplGlfw_ViewportData) +#ifdef _WIN32 +static ImGuiMouseSource GetMouseSourceFromMessageExtraInfo() +{ + LPARAM extra_info = ::GetMessageExtraInfo(); + if ((extra_info & 0xFFFFFF80) == 0xFF515700) + return ImGuiMouseSource_Pen; + if ((extra_info & 0xFFFFFF80) == 0xFF515780) + return ImGuiMouseSource_TouchScreen; + return ImGuiMouseSource_Mouse; +} +static LRESULT CALLBACK ImGui_ImplGlfw_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + WNDPROC prev_wndproc = bd->PrevWndProc; + ImGuiViewport* viewport = (ImGuiViewport*)::GetPropA(hWnd, "IMGUI_VIEWPORT"); + if (viewport != NULL) + if (ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData) + prev_wndproc = vd->PrevWndProc; + + switch (msg) + { + // GLFW doesn't allow to distinguish Mouse vs TouchScreen vs Pen. + // Add support for Win32 (based on imgui_impl_win32), because we rely on _TouchScreen info to trickle inputs differently. + case WM_MOUSEMOVE: case WM_NCMOUSEMOVE: + case WM_LBUTTONDOWN: case WM_LBUTTONDBLCLK: case WM_LBUTTONUP: + case WM_RBUTTONDOWN: case WM_RBUTTONDBLCLK: case WM_RBUTTONUP: + case WM_MBUTTONDOWN: case WM_MBUTTONDBLCLK: case WM_MBUTTONUP: + case WM_XBUTTONDOWN: case WM_XBUTTONDBLCLK: case WM_XBUTTONUP: + ImGui::GetIO().AddMouseSourceEvent(GetMouseSourceFromMessageExtraInfo()); + break; + + // We have submitted https://github.com/glfw/glfw/pull/1568 to allow GLFW to support "transparent inputs". + // In the meanwhile we implement custom per-platform workarounds here (FIXME-VIEWPORT: Implement same work-around for Linux/OSX!) +#if !GLFW_HAS_MOUSE_PASSTHROUGH && GLFW_HAS_WINDOW_HOVERED + case WM_NCHITTEST: + { + // Let mouse pass-through the window. This will allow the backend to call io.AddMouseViewportEvent() properly (which is OPTIONAL). + // The ImGuiViewportFlags_NoInputs flag is set while dragging a viewport, as want to detect the window behind the one we are dragging. + // If you cannot easily access those viewport flags from your windowing/event code: you may manually synchronize its state e.g. in + // your main loop after calling UpdatePlatformWindows(). Iterate all viewports/platform windows and pass the flag to your windowing system. + if (viewport && (viewport->Flags & ImGuiViewportFlags_NoInputs)) + return HTTRANSPARENT; + break; + } +#endif + } + return ::CallWindowProc(prev_wndproc, hWnd, msg, wParam, lParam); +} +#endif // #ifdef _WIN32 + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glfw.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glfw.h new file mode 100644 index 0000000..d2fcbbb --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glfw.h @@ -0,0 +1,58 @@ +// dear imgui: Platform Backend for GLFW +// This needs to be used along with a Renderer (e.g. OpenGL3, Vulkan, WebGPU..) +// (Info: GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) +// (Requires: GLFW 3.1+. Prefer GLFW 3.3+ for full feature support.) + +// Implemented features: +// [X] Platform: Clipboard support. +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen (Windows only). +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy GLFW_KEY_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [x] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange' (note: the resizing cursors requires GLFW 3.4+). +// [X] Platform: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// Issues: +// [ ] Platform: Multi-viewport support: ParentViewportID not honored, and so io.ConfigViewportsNoDefaultParent has no effect (minor). + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +struct GLFWwindow; +struct GLFWmonitor; + +IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window, bool install_callbacks); +IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window, bool install_callbacks); +IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window, bool install_callbacks); +IMGUI_IMPL_API void ImGui_ImplGlfw_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplGlfw_NewFrame(); + +// GLFW callbacks install +// - When calling Init with 'install_callbacks=true': ImGui_ImplGlfw_InstallCallbacks() is called. GLFW callbacks will be installed for you. They will chain-call user's previously installed callbacks, if any. +// - When calling Init with 'install_callbacks=false': GLFW callbacks won't be installed. You will need to call individual function yourself from your own GLFW callbacks. +IMGUI_IMPL_API void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window); +IMGUI_IMPL_API void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window); + +// GFLW callbacks options: +// - Set 'chain_for_all_windows=true' to enable chaining callbacks for all windows (including secondary viewports created by backends or by user) +IMGUI_IMPL_API void ImGui_ImplGlfw_SetCallbacksChainForAllWindows(bool chain_for_all_windows); + +// GLFW callbacks (individual callbacks to call yourself if you didn't install callbacks) +IMGUI_IMPL_API void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window, int focused); // Since 1.84 +IMGUI_IMPL_API void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window, int entered); // Since 1.84 +IMGUI_IMPL_API void ImGui_ImplGlfw_CursorPosCallback(GLFWwindow* window, double x, double y); // Since 1.87 +IMGUI_IMPL_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window, int button, int action, int mods); +IMGUI_IMPL_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window, double xoffset, double yoffset); +IMGUI_IMPL_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods); +IMGUI_IMPL_API void ImGui_ImplGlfw_CharCallback(GLFWwindow* window, unsigned int c); +IMGUI_IMPL_API void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor* monitor, int event); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glut.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glut.cpp new file mode 100644 index 0000000..a6f02d7 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glut.cpp @@ -0,0 +1,308 @@ +// dear imgui: Platform Backend for GLUT/FreeGLUT +// This needs to be used along with a Renderer (e.g. OpenGL2) + +// !!! GLUT/FreeGLUT IS OBSOLETE PREHISTORIC SOFTWARE. Using GLUT is not recommended unless you really miss the 90's. !!! +// !!! If someone or something is teaching you GLUT today, you are being abused. Please show some resistance. !!! +// !!! Nowadays, prefer using GLFW or SDL instead! + +// Implemented features: +// [X] Platform: Partial keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy GLUT values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// Missing features: +// [ ] Platform: GLUT is unable to distinguish e.g. Backspace from CTRL+H or TAB from CTRL+I +// [ ] Platform: Missing horizontal mouse wheel support. +// [ ] Platform: Missing mouse cursor shape/visibility support. +// [ ] Platform: Missing clipboard support (not supported by Glut). +// [ ] Platform: Missing gamepad support. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-04-17: BREAKING: Removed call to ImGui::NewFrame() from ImGui_ImplGLUT_NewFrame(). Needs to be called from the main application loop, like with every other backends. +// 2022-09-26: Inputs: Renamed ImGuiKey_ModXXX introduced in 1.87 to ImGuiMod_XXX (old names still supported). +// 2022-01-26: Inputs: replaced short-lived io.AddKeyModsEvent() (added two weeks ago) with io.AddKeyEvent() using ImGuiKey_ModXXX flags. Sorry for the confusion. +// 2022-01-17: Inputs: calling new io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() API (1.87+). +// 2022-01-10: Inputs: calling new io.AddKeyEvent(), io.AddKeyModsEvent() + io.SetKeyEventNativeData() API (1.87+). Support for full ImGuiKey range. +// 2019-04-03: Misc: Renamed imgui_impl_freeglut.cpp/.h to imgui_impl_glut.cpp/.h. +// 2019-03-25: Misc: Made io.DeltaTime always above zero. +// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. +// 2018-03-22: Added GLUT Platform binding. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_glut.h" +#define GL_SILENCE_DEPRECATION +#ifdef __APPLE__ +#include +#else +#include +#endif + +#ifdef _MSC_VER +#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) +#endif + +static int g_Time = 0; // Current time, in milliseconds + +// Glut has 1 function for characters and one for "special keys". We map the characters in the 0..255 range and the keys above. +static ImGuiKey ImGui_ImplGLUT_KeyToImGuiKey(int key) +{ + switch (key) + { + case '\t': return ImGuiKey_Tab; + case 256 + GLUT_KEY_LEFT: return ImGuiKey_LeftArrow; + case 256 + GLUT_KEY_RIGHT: return ImGuiKey_RightArrow; + case 256 + GLUT_KEY_UP: return ImGuiKey_UpArrow; + case 256 + GLUT_KEY_DOWN: return ImGuiKey_DownArrow; + case 256 + GLUT_KEY_PAGE_UP: return ImGuiKey_PageUp; + case 256 + GLUT_KEY_PAGE_DOWN: return ImGuiKey_PageDown; + case 256 + GLUT_KEY_HOME: return ImGuiKey_Home; + case 256 + GLUT_KEY_END: return ImGuiKey_End; + case 256 + GLUT_KEY_INSERT: return ImGuiKey_Insert; + case 127: return ImGuiKey_Delete; + case 8: return ImGuiKey_Backspace; + case ' ': return ImGuiKey_Space; + case 13: return ImGuiKey_Enter; + case 27: return ImGuiKey_Escape; + case 39: return ImGuiKey_Apostrophe; + case 44: return ImGuiKey_Comma; + case 45: return ImGuiKey_Minus; + case 46: return ImGuiKey_Period; + case 47: return ImGuiKey_Slash; + case 59: return ImGuiKey_Semicolon; + case 61: return ImGuiKey_Equal; + case 91: return ImGuiKey_LeftBracket; + case 92: return ImGuiKey_Backslash; + case 93: return ImGuiKey_RightBracket; + case 96: return ImGuiKey_GraveAccent; + //case 0: return ImGuiKey_CapsLock; + //case 0: return ImGuiKey_ScrollLock; + case 256 + 0x006D: return ImGuiKey_NumLock; + //case 0: return ImGuiKey_PrintScreen; + //case 0: return ImGuiKey_Pause; + //case '0': return ImGuiKey_Keypad0; + //case '1': return ImGuiKey_Keypad1; + //case '2': return ImGuiKey_Keypad2; + //case '3': return ImGuiKey_Keypad3; + //case '4': return ImGuiKey_Keypad4; + //case '5': return ImGuiKey_Keypad5; + //case '6': return ImGuiKey_Keypad6; + //case '7': return ImGuiKey_Keypad7; + //case '8': return ImGuiKey_Keypad8; + //case '9': return ImGuiKey_Keypad9; + //case 46: return ImGuiKey_KeypadDecimal; + //case 47: return ImGuiKey_KeypadDivide; + case 42: return ImGuiKey_KeypadMultiply; + //case 45: return ImGuiKey_KeypadSubtract; + case 43: return ImGuiKey_KeypadAdd; + //case 13: return ImGuiKey_KeypadEnter; + //case 0: return ImGuiKey_KeypadEqual; + case 256 + 0x0072: return ImGuiKey_LeftCtrl; + case 256 + 0x0070: return ImGuiKey_LeftShift; + case 256 + 0x0074: return ImGuiKey_LeftAlt; + //case 0: return ImGuiKey_LeftSuper; + case 256 + 0x0073: return ImGuiKey_RightCtrl; + case 256 + 0x0071: return ImGuiKey_RightShift; + case 256 + 0x0075: return ImGuiKey_RightAlt; + //case 0: return ImGuiKey_RightSuper; + //case 0: return ImGuiKey_Menu; + case '0': return ImGuiKey_0; + case '1': return ImGuiKey_1; + case '2': return ImGuiKey_2; + case '3': return ImGuiKey_3; + case '4': return ImGuiKey_4; + case '5': return ImGuiKey_5; + case '6': return ImGuiKey_6; + case '7': return ImGuiKey_7; + case '8': return ImGuiKey_8; + case '9': return ImGuiKey_9; + case 'A': case 'a': return ImGuiKey_A; + case 'B': case 'b': return ImGuiKey_B; + case 'C': case 'c': return ImGuiKey_C; + case 'D': case 'd': return ImGuiKey_D; + case 'E': case 'e': return ImGuiKey_E; + case 'F': case 'f': return ImGuiKey_F; + case 'G': case 'g': return ImGuiKey_G; + case 'H': case 'h': return ImGuiKey_H; + case 'I': case 'i': return ImGuiKey_I; + case 'J': case 'j': return ImGuiKey_J; + case 'K': case 'k': return ImGuiKey_K; + case 'L': case 'l': return ImGuiKey_L; + case 'M': case 'm': return ImGuiKey_M; + case 'N': case 'n': return ImGuiKey_N; + case 'O': case 'o': return ImGuiKey_O; + case 'P': case 'p': return ImGuiKey_P; + case 'Q': case 'q': return ImGuiKey_Q; + case 'R': case 'r': return ImGuiKey_R; + case 'S': case 's': return ImGuiKey_S; + case 'T': case 't': return ImGuiKey_T; + case 'U': case 'u': return ImGuiKey_U; + case 'V': case 'v': return ImGuiKey_V; + case 'W': case 'w': return ImGuiKey_W; + case 'X': case 'x': return ImGuiKey_X; + case 'Y': case 'y': return ImGuiKey_Y; + case 'Z': case 'z': return ImGuiKey_Z; + case 256 + GLUT_KEY_F1: return ImGuiKey_F1; + case 256 + GLUT_KEY_F2: return ImGuiKey_F2; + case 256 + GLUT_KEY_F3: return ImGuiKey_F3; + case 256 + GLUT_KEY_F4: return ImGuiKey_F4; + case 256 + GLUT_KEY_F5: return ImGuiKey_F5; + case 256 + GLUT_KEY_F6: return ImGuiKey_F6; + case 256 + GLUT_KEY_F7: return ImGuiKey_F7; + case 256 + GLUT_KEY_F8: return ImGuiKey_F8; + case 256 + GLUT_KEY_F9: return ImGuiKey_F9; + case 256 + GLUT_KEY_F10: return ImGuiKey_F10; + case 256 + GLUT_KEY_F11: return ImGuiKey_F11; + case 256 + GLUT_KEY_F12: return ImGuiKey_F12; + default: return ImGuiKey_None; + } +} + +bool ImGui_ImplGLUT_Init() +{ + ImGuiIO& io = ImGui::GetIO(); + +#ifdef FREEGLUT + io.BackendPlatformName = "imgui_impl_glut (freeglut)"; +#else + io.BackendPlatformName = "imgui_impl_glut"; +#endif + g_Time = 0; + + return true; +} + +void ImGui_ImplGLUT_InstallFuncs() +{ + glutReshapeFunc(ImGui_ImplGLUT_ReshapeFunc); + glutMotionFunc(ImGui_ImplGLUT_MotionFunc); + glutPassiveMotionFunc(ImGui_ImplGLUT_MotionFunc); + glutMouseFunc(ImGui_ImplGLUT_MouseFunc); +#ifdef __FREEGLUT_EXT_H__ + glutMouseWheelFunc(ImGui_ImplGLUT_MouseWheelFunc); +#endif + glutKeyboardFunc(ImGui_ImplGLUT_KeyboardFunc); + glutKeyboardUpFunc(ImGui_ImplGLUT_KeyboardUpFunc); + glutSpecialFunc(ImGui_ImplGLUT_SpecialFunc); + glutSpecialUpFunc(ImGui_ImplGLUT_SpecialUpFunc); +} + +void ImGui_ImplGLUT_Shutdown() +{ + ImGuiIO& io = ImGui::GetIO(); + io.BackendPlatformName = nullptr; +} + +void ImGui_ImplGLUT_NewFrame() +{ + // Setup time step + ImGuiIO& io = ImGui::GetIO(); + int current_time = glutGet(GLUT_ELAPSED_TIME); + int delta_time_ms = (current_time - g_Time); + if (delta_time_ms <= 0) + delta_time_ms = 1; + io.DeltaTime = delta_time_ms / 1000.0f; + g_Time = current_time; +} + +static void ImGui_ImplGLUT_UpdateKeyModifiers() +{ + ImGuiIO& io = ImGui::GetIO(); + int glut_key_mods = glutGetModifiers(); + io.AddKeyEvent(ImGuiMod_Ctrl, (glut_key_mods & GLUT_ACTIVE_CTRL) != 0); + io.AddKeyEvent(ImGuiMod_Shift, (glut_key_mods & GLUT_ACTIVE_SHIFT) != 0); + io.AddKeyEvent(ImGuiMod_Alt, (glut_key_mods & GLUT_ACTIVE_ALT) != 0); +} + +static void ImGui_ImplGLUT_AddKeyEvent(ImGuiKey key, bool down, int native_keycode) +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddKeyEvent(key, down); + io.SetKeyEventNativeData(key, native_keycode, -1); // To support legacy indexing (<1.87 user code) +} + +void ImGui_ImplGLUT_KeyboardFunc(unsigned char c, int x, int y) +{ + // Send character to imgui + //printf("char_down_func %d '%c'\n", c, c); + ImGuiIO& io = ImGui::GetIO(); + if (c >= 32) + io.AddInputCharacter((unsigned int)c); + + ImGuiKey key = ImGui_ImplGLUT_KeyToImGuiKey(c); + ImGui_ImplGLUT_AddKeyEvent(key, true, c); + ImGui_ImplGLUT_UpdateKeyModifiers(); + (void)x; (void)y; // Unused +} + +void ImGui_ImplGLUT_KeyboardUpFunc(unsigned char c, int x, int y) +{ + //printf("char_up_func %d '%c'\n", c, c); + ImGuiKey key = ImGui_ImplGLUT_KeyToImGuiKey(c); + ImGui_ImplGLUT_AddKeyEvent(key, false, c); + ImGui_ImplGLUT_UpdateKeyModifiers(); + (void)x; (void)y; // Unused +} + +void ImGui_ImplGLUT_SpecialFunc(int key, int x, int y) +{ + //printf("key_down_func %d\n", key); + ImGuiKey imgui_key = ImGui_ImplGLUT_KeyToImGuiKey(key + 256); + ImGui_ImplGLUT_AddKeyEvent(imgui_key, true, key + 256); + ImGui_ImplGLUT_UpdateKeyModifiers(); + (void)x; (void)y; // Unused +} + +void ImGui_ImplGLUT_SpecialUpFunc(int key, int x, int y) +{ + //printf("key_up_func %d\n", key); + ImGuiKey imgui_key = ImGui_ImplGLUT_KeyToImGuiKey(key + 256); + ImGui_ImplGLUT_AddKeyEvent(imgui_key, false, key + 256); + ImGui_ImplGLUT_UpdateKeyModifiers(); + (void)x; (void)y; // Unused +} + +void ImGui_ImplGLUT_MouseFunc(int glut_button, int state, int x, int y) +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddMousePosEvent((float)x, (float)y); + int button = -1; + if (glut_button == GLUT_LEFT_BUTTON) button = 0; + if (glut_button == GLUT_RIGHT_BUTTON) button = 1; + if (glut_button == GLUT_MIDDLE_BUTTON) button = 2; + if (button != -1 && (state == GLUT_DOWN || state == GLUT_UP)) + io.AddMouseButtonEvent(button, state == GLUT_DOWN); +} + +#ifdef __FREEGLUT_EXT_H__ +void ImGui_ImplGLUT_MouseWheelFunc(int button, int dir, int x, int y) +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddMousePosEvent((float)x, (float)y); + if (dir != 0) + io.AddMouseWheelEvent(0.0f, dir > 0 ? 1.0f : -1.0f); + (void)button; // Unused +} +#endif + +void ImGui_ImplGLUT_ReshapeFunc(int w, int h) +{ + ImGuiIO& io = ImGui::GetIO(); + io.DisplaySize = ImVec2((float)w, (float)h); +} + +void ImGui_ImplGLUT_MotionFunc(int x, int y) +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddMousePosEvent((float)x, (float)y); +} + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glut.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glut.h new file mode 100644 index 0000000..0067192 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_glut.h @@ -0,0 +1,46 @@ +// dear imgui: Platform Backend for GLUT/FreeGLUT +// This needs to be used along with a Renderer (e.g. OpenGL2) + +// !!! GLUT/FreeGLUT IS OBSOLETE PREHISTORIC SOFTWARE. Using GLUT is not recommended unless you really miss the 90's. !!! +// !!! If someone or something is teaching you GLUT today, you are being abused. Please show some resistance. !!! +// !!! Nowadays, prefer using GLFW or SDL instead! + +// Implemented features: +// [X] Platform: Partial keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy GLUT values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// Missing features: +// [ ] Platform: GLUT is unable to distinguish e.g. Backspace from CTRL+H or TAB from CTRL+I +// [ ] Platform: Missing horizontal mouse wheel support. +// [ ] Platform: Missing mouse cursor shape/visibility support. +// [ ] Platform: Missing clipboard support (not supported by Glut). +// [ ] Platform: Missing gamepad support. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#ifndef IMGUI_DISABLE +#include "imgui.h" // IMGUI_IMPL_API + +IMGUI_IMPL_API bool ImGui_ImplGLUT_Init(); +IMGUI_IMPL_API void ImGui_ImplGLUT_InstallFuncs(); +IMGUI_IMPL_API void ImGui_ImplGLUT_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplGLUT_NewFrame(); + +// You can call ImGui_ImplGLUT_InstallFuncs() to get all those functions installed automatically, +// or call them yourself from your own GLUT handlers. We are using the same weird names as GLUT for consistency.. +//------------------------------------ GLUT name ---------------------------------------------- Decent Name --------- +IMGUI_IMPL_API void ImGui_ImplGLUT_ReshapeFunc(int w, int h); // ~ ResizeFunc +IMGUI_IMPL_API void ImGui_ImplGLUT_MotionFunc(int x, int y); // ~ MouseMoveFunc +IMGUI_IMPL_API void ImGui_ImplGLUT_MouseFunc(int button, int state, int x, int y); // ~ MouseButtonFunc +IMGUI_IMPL_API void ImGui_ImplGLUT_MouseWheelFunc(int button, int dir, int x, int y); // ~ MouseWheelFunc +IMGUI_IMPL_API void ImGui_ImplGLUT_KeyboardFunc(unsigned char c, int x, int y); // ~ CharPressedFunc +IMGUI_IMPL_API void ImGui_ImplGLUT_KeyboardUpFunc(unsigned char c, int x, int y); // ~ CharReleasedFunc +IMGUI_IMPL_API void ImGui_ImplGLUT_SpecialFunc(int key, int x, int y); // ~ KeyPressedFunc +IMGUI_IMPL_API void ImGui_ImplGLUT_SpecialUpFunc(int key, int x, int y); // ~ KeyReleasedFunc + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_metal.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_metal.h new file mode 100644 index 0000000..d9540fb --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_metal.h @@ -0,0 +1,73 @@ +// dear imgui: Renderer Backend for Metal +// This needs to be used along with a Platform Backend (e.g. OSX) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'MTLTexture' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// ObjC API +//----------------------------------------------------------------------------- + +#ifdef __OBJC__ + +@class MTLRenderPassDescriptor; +@protocol MTLDevice, MTLCommandBuffer, MTLRenderCommandEncoder; + +IMGUI_IMPL_API bool ImGui_ImplMetal_Init(id device); +IMGUI_IMPL_API void ImGui_ImplMetal_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplMetal_NewFrame(MTLRenderPassDescriptor* renderPassDescriptor); +IMGUI_IMPL_API void ImGui_ImplMetal_RenderDrawData(ImDrawData* drawData, + id commandBuffer, + id commandEncoder); + +// Called by Init/NewFrame/Shutdown +IMGUI_IMPL_API bool ImGui_ImplMetal_CreateFontsTexture(id device); +IMGUI_IMPL_API void ImGui_ImplMetal_DestroyFontsTexture(); +IMGUI_IMPL_API bool ImGui_ImplMetal_CreateDeviceObjects(id device); +IMGUI_IMPL_API void ImGui_ImplMetal_DestroyDeviceObjects(); + +#endif + +//----------------------------------------------------------------------------- +// C++ API +//----------------------------------------------------------------------------- + +// Enable Metal C++ binding support with '#define IMGUI_IMPL_METAL_CPP' in your imconfig.h file +// More info about using Metal from C++: https://developer.apple.com/metal/cpp/ + +#ifdef IMGUI_IMPL_METAL_CPP +#include +#ifndef __OBJC__ + +IMGUI_IMPL_API bool ImGui_ImplMetal_Init(MTL::Device* device); +IMGUI_IMPL_API void ImGui_ImplMetal_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplMetal_NewFrame(MTL::RenderPassDescriptor* renderPassDescriptor); +IMGUI_IMPL_API void ImGui_ImplMetal_RenderDrawData(ImDrawData* draw_data, + MTL::CommandBuffer* commandBuffer, + MTL::RenderCommandEncoder* commandEncoder); + +// Called by Init/NewFrame/Shutdown +IMGUI_IMPL_API bool ImGui_ImplMetal_CreateFontsTexture(MTL::Device* device); +IMGUI_IMPL_API void ImGui_ImplMetal_DestroyFontsTexture(); +IMGUI_IMPL_API bool ImGui_ImplMetal_CreateDeviceObjects(MTL::Device* device); +IMGUI_IMPL_API void ImGui_ImplMetal_DestroyDeviceObjects(); + +#endif +#endif + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_metal.mm b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_metal.mm new file mode 100644 index 0000000..55af1b1 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_metal.mm @@ -0,0 +1,750 @@ +// dear imgui: Renderer Backend for Metal +// This needs to be used along with a Platform Backend (e.g. OSX) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'MTLTexture' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Metal: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2022-08-23: Metal: Update deprecated property 'sampleCount'->'rasterSampleCount'. +// 2022-07-05: Metal: Add dispatch synchronization. +// 2022-06-30: Metal: Use __bridge for ARC based systems. +// 2022-06-01: Metal: Fixed null dereference on exit inside command buffer completion handler. +// 2022-04-27: Misc: Store backend data in a per-context struct, allowing to use this backend with multiple contexts. +// 2022-01-03: Metal: Ignore ImDrawCmd where ElemCount == 0 (very rare but can technically be manufactured by user code). +// 2021-12-30: Metal: Added Metal C++ support. Enable with '#define IMGUI_IMPL_METAL_CPP' in your imconfig.h file. +// 2021-08-24: Metal: Fixed a crash when clipping rect larger than framebuffer is submitted. (#4464) +// 2021-05-19: Metal: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-02-18: Metal: Change blending equation to preserve alpha in output buffer. +// 2021-01-25: Metal: Fixed texture storage mode when building on Mac Catalyst. +// 2019-05-29: Metal: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: Metal: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2019-02-11: Metal: Projecting clipping rectangles correctly using draw_data->FramebufferScale to allow multi-viewports for retina display. +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-07-05: Metal: Added new Metal backend implementation. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_metal.h" +#import +#import + +// Forward Declarations +static void ImGui_ImplMetal_InitPlatformInterface(); +static void ImGui_ImplMetal_ShutdownPlatformInterface(); +static void ImGui_ImplMetal_CreateDeviceObjectsForPlatformWindows(); +static void ImGui_ImplMetal_InvalidateDeviceObjectsForPlatformWindows(); + +#pragma mark - Support classes + +// A wrapper around a MTLBuffer object that knows the last time it was reused +@interface MetalBuffer : NSObject +@property (nonatomic, strong) id buffer; +@property (nonatomic, assign) double lastReuseTime; +- (instancetype)initWithBuffer:(id)buffer; +@end + +// An object that encapsulates the data necessary to uniquely identify a +// render pipeline state. These are used as cache keys. +@interface FramebufferDescriptor : NSObject +@property (nonatomic, assign) unsigned long sampleCount; +@property (nonatomic, assign) MTLPixelFormat colorPixelFormat; +@property (nonatomic, assign) MTLPixelFormat depthPixelFormat; +@property (nonatomic, assign) MTLPixelFormat stencilPixelFormat; +- (instancetype)initWithRenderPassDescriptor:(MTLRenderPassDescriptor*)renderPassDescriptor; +@end + +// A singleton that stores long-lived objects that are needed by the Metal +// renderer backend. Stores the render pipeline state cache and the default +// font texture, and manages the reusable buffer cache. +@interface MetalContext : NSObject +@property (nonatomic, strong) id device; +@property (nonatomic, strong) id depthStencilState; +@property (nonatomic, strong) FramebufferDescriptor* framebufferDescriptor; // framebuffer descriptor for current frame; transient +@property (nonatomic, strong) NSMutableDictionary* renderPipelineStateCache; // pipeline cache; keyed on framebuffer descriptors +@property (nonatomic, strong, nullable) id fontTexture; +@property (nonatomic, strong) NSMutableArray* bufferCache; +@property (nonatomic, assign) double lastBufferCachePurge; +- (MetalBuffer*)dequeueReusableBufferOfLength:(NSUInteger)length device:(id)device; +- (id)renderPipelineStateForFramebufferDescriptor:(FramebufferDescriptor*)descriptor device:(id)device; +@end + +struct ImGui_ImplMetal_Data +{ + MetalContext* SharedMetalContext; + + ImGui_ImplMetal_Data() { memset(this, 0, sizeof(*this)); } +}; + +static ImGui_ImplMetal_Data* ImGui_ImplMetal_CreateBackendData() { return IM_NEW(ImGui_ImplMetal_Data)(); } +static ImGui_ImplMetal_Data* ImGui_ImplMetal_GetBackendData() { return ImGui::GetCurrentContext() ? (ImGui_ImplMetal_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; } +static void ImGui_ImplMetal_DestroyBackendData(){ IM_DELETE(ImGui_ImplMetal_GetBackendData()); } + +static inline CFTimeInterval GetMachAbsoluteTimeInSeconds() { return (CFTimeInterval)(double)(clock_gettime_nsec_np(CLOCK_UPTIME_RAW) / 1e9); } + +#ifdef IMGUI_IMPL_METAL_CPP + +#pragma mark - Dear ImGui Metal C++ Backend API + +bool ImGui_ImplMetal_Init(MTL::Device* device) +{ + return ImGui_ImplMetal_Init((__bridge id)(device)); +} + +void ImGui_ImplMetal_NewFrame(MTL::RenderPassDescriptor* renderPassDescriptor) +{ + ImGui_ImplMetal_NewFrame((__bridge MTLRenderPassDescriptor*)(renderPassDescriptor)); +} + +void ImGui_ImplMetal_RenderDrawData(ImDrawData* draw_data, + MTL::CommandBuffer* commandBuffer, + MTL::RenderCommandEncoder* commandEncoder) +{ + ImGui_ImplMetal_RenderDrawData(draw_data, + (__bridge id)(commandBuffer), + (__bridge id)(commandEncoder)); + +} + +bool ImGui_ImplMetal_CreateFontsTexture(MTL::Device* device) +{ + return ImGui_ImplMetal_CreateFontsTexture((__bridge id)(device)); +} + +bool ImGui_ImplMetal_CreateDeviceObjects(MTL::Device* device) +{ + return ImGui_ImplMetal_CreateDeviceObjects((__bridge id)(device)); +} + +#endif // #ifdef IMGUI_IMPL_METAL_CPP + +#pragma mark - Dear ImGui Metal Backend API + +bool ImGui_ImplMetal_Init(id device) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_CreateBackendData(); + ImGuiIO& io = ImGui::GetIO(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_metal"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + + bd->SharedMetalContext = [[MetalContext alloc] init]; + bd->SharedMetalContext.device = device; + + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplMetal_InitPlatformInterface(); + + return true; +} + +void ImGui_ImplMetal_Shutdown() +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGui_ImplMetal_ShutdownPlatformInterface(); + ImGui_ImplMetal_DestroyDeviceObjects(); + ImGui_ImplMetal_DestroyBackendData(); + + ImGuiIO& io = ImGui::GetIO(); + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_RendererHasVtxOffset | ImGuiBackendFlags_RendererHasViewports); +} + +void ImGui_ImplMetal_NewFrame(MTLRenderPassDescriptor* renderPassDescriptor) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + IM_ASSERT(bd->SharedMetalContext != nil && "No Metal context. Did you call ImGui_ImplMetal_Init() ?"); + bd->SharedMetalContext.framebufferDescriptor = [[FramebufferDescriptor alloc] initWithRenderPassDescriptor:renderPassDescriptor]; + + if (bd->SharedMetalContext.depthStencilState == nil) + ImGui_ImplMetal_CreateDeviceObjects(bd->SharedMetalContext.device); +} + +static void ImGui_ImplMetal_SetupRenderState(ImDrawData* drawData, id commandBuffer, + id commandEncoder, id renderPipelineState, + MetalBuffer* vertexBuffer, size_t vertexBufferOffset) +{ + IM_UNUSED(commandBuffer); + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + [commandEncoder setCullMode:MTLCullModeNone]; + [commandEncoder setDepthStencilState:bd->SharedMetalContext.depthStencilState]; + + // Setup viewport, orthographic projection matrix + // Our visible imgui space lies from draw_data->DisplayPos (top left) to + // draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayMin is typically (0,0) for single viewport apps. + MTLViewport viewport = + { + .originX = 0.0, + .originY = 0.0, + .width = (double)(drawData->DisplaySize.x * drawData->FramebufferScale.x), + .height = (double)(drawData->DisplaySize.y * drawData->FramebufferScale.y), + .znear = 0.0, + .zfar = 1.0 + }; + [commandEncoder setViewport:viewport]; + + float L = drawData->DisplayPos.x; + float R = drawData->DisplayPos.x + drawData->DisplaySize.x; + float T = drawData->DisplayPos.y; + float B = drawData->DisplayPos.y + drawData->DisplaySize.y; + float N = (float)viewport.znear; + float F = (float)viewport.zfar; + const float ortho_projection[4][4] = + { + { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, + { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, + { 0.0f, 0.0f, 1/(F-N), 0.0f }, + { (R+L)/(L-R), (T+B)/(B-T), N/(F-N), 1.0f }, + }; + [commandEncoder setVertexBytes:&ortho_projection length:sizeof(ortho_projection) atIndex:1]; + + [commandEncoder setRenderPipelineState:renderPipelineState]; + + [commandEncoder setVertexBuffer:vertexBuffer.buffer offset:0 atIndex:0]; + [commandEncoder setVertexBufferOffset:vertexBufferOffset atIndex:0]; +} + +// Metal Render function. +void ImGui_ImplMetal_RenderDrawData(ImDrawData* drawData, id commandBuffer, id commandEncoder) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + MetalContext* ctx = bd->SharedMetalContext; + + // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) + int fb_width = (int)(drawData->DisplaySize.x * drawData->FramebufferScale.x); + int fb_height = (int)(drawData->DisplaySize.y * drawData->FramebufferScale.y); + if (fb_width <= 0 || fb_height <= 0 || drawData->CmdListsCount == 0) + return; + + // Try to retrieve a render pipeline state that is compatible with the framebuffer config for this frame + // The hit rate for this cache should be very near 100%. + id renderPipelineState = ctx.renderPipelineStateCache[ctx.framebufferDescriptor]; + if (renderPipelineState == nil) + { + // No luck; make a new render pipeline state + renderPipelineState = [ctx renderPipelineStateForFramebufferDescriptor:ctx.framebufferDescriptor device:commandBuffer.device]; + + // Cache render pipeline state for later reuse + ctx.renderPipelineStateCache[ctx.framebufferDescriptor] = renderPipelineState; + } + + size_t vertexBufferLength = (size_t)drawData->TotalVtxCount * sizeof(ImDrawVert); + size_t indexBufferLength = (size_t)drawData->TotalIdxCount * sizeof(ImDrawIdx); + MetalBuffer* vertexBuffer = [ctx dequeueReusableBufferOfLength:vertexBufferLength device:commandBuffer.device]; + MetalBuffer* indexBuffer = [ctx dequeueReusableBufferOfLength:indexBufferLength device:commandBuffer.device]; + + ImGui_ImplMetal_SetupRenderState(drawData, commandBuffer, commandEncoder, renderPipelineState, vertexBuffer, 0); + + // Will project scissor/clipping rectangles into framebuffer space + ImVec2 clip_off = drawData->DisplayPos; // (0,0) unless using multi-viewports + ImVec2 clip_scale = drawData->FramebufferScale; // (1,1) unless using retina display which are often (2,2) + + // Render command lists + size_t vertexBufferOffset = 0; + size_t indexBufferOffset = 0; + for (int n = 0; n < drawData->CmdListsCount; n++) + { + const ImDrawList* cmd_list = drawData->CmdLists[n]; + + memcpy((char*)vertexBuffer.buffer.contents + vertexBufferOffset, cmd_list->VtxBuffer.Data, (size_t)cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); + memcpy((char*)indexBuffer.buffer.contents + indexBufferOffset, cmd_list->IdxBuffer.Data, (size_t)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); + + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplMetal_SetupRenderState(drawData, commandBuffer, commandEncoder, renderPipelineState, vertexBuffer, vertexBufferOffset); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); + ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); + + // Clamp to viewport as setScissorRect() won't accept values that are off bounds + if (clip_min.x < 0.0f) { clip_min.x = 0.0f; } + if (clip_min.y < 0.0f) { clip_min.y = 0.0f; } + if (clip_max.x > fb_width) { clip_max.x = (float)fb_width; } + if (clip_max.y > fb_height) { clip_max.y = (float)fb_height; } + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + if (pcmd->ElemCount == 0) // drawIndexedPrimitives() validation doesn't accept this + continue; + + // Apply scissor/clipping rectangle + MTLScissorRect scissorRect = + { + .x = NSUInteger(clip_min.x), + .y = NSUInteger(clip_min.y), + .width = NSUInteger(clip_max.x - clip_min.x), + .height = NSUInteger(clip_max.y - clip_min.y) + }; + [commandEncoder setScissorRect:scissorRect]; + + // Bind texture, Draw + if (ImTextureID tex_id = pcmd->GetTexID()) + [commandEncoder setFragmentTexture:(__bridge id)(tex_id) atIndex:0]; + + [commandEncoder setVertexBufferOffset:(vertexBufferOffset + pcmd->VtxOffset * sizeof(ImDrawVert)) atIndex:0]; + [commandEncoder drawIndexedPrimitives:MTLPrimitiveTypeTriangle + indexCount:pcmd->ElemCount + indexType:sizeof(ImDrawIdx) == 2 ? MTLIndexTypeUInt16 : MTLIndexTypeUInt32 + indexBuffer:indexBuffer.buffer + indexBufferOffset:indexBufferOffset + pcmd->IdxOffset * sizeof(ImDrawIdx)]; + } + } + + vertexBufferOffset += (size_t)cmd_list->VtxBuffer.Size * sizeof(ImDrawVert); + indexBufferOffset += (size_t)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx); + } + + [commandBuffer addCompletedHandler:^(id) + { + dispatch_async(dispatch_get_main_queue(), ^{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + if (bd != nullptr) + { + @synchronized(bd->SharedMetalContext.bufferCache) + { + [bd->SharedMetalContext.bufferCache addObject:vertexBuffer]; + [bd->SharedMetalContext.bufferCache addObject:indexBuffer]; + } + } + }); + }]; +} + +bool ImGui_ImplMetal_CreateFontsTexture(id device) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + + // We are retrieving and uploading the font atlas as a 4-channels RGBA texture here. + // In theory we could call GetTexDataAsAlpha8() and upload a 1-channel texture to save on memory access bandwidth. + // However, using a shader designed for 1-channel texture would make it less obvious to use the ImTextureID facility to render users own textures. + // You can make that change in your implementation. + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + MTLTextureDescriptor* textureDescriptor = [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA8Unorm + width:(NSUInteger)width + height:(NSUInteger)height + mipmapped:NO]; + textureDescriptor.usage = MTLTextureUsageShaderRead; +#if TARGET_OS_OSX || TARGET_OS_MACCATALYST + textureDescriptor.storageMode = MTLStorageModeManaged; +#else + textureDescriptor.storageMode = MTLStorageModeShared; +#endif + id texture = [device newTextureWithDescriptor:textureDescriptor]; + [texture replaceRegion:MTLRegionMake2D(0, 0, (NSUInteger)width, (NSUInteger)height) mipmapLevel:0 withBytes:pixels bytesPerRow:(NSUInteger)width * 4]; + bd->SharedMetalContext.fontTexture = texture; + io.Fonts->SetTexID((__bridge void*)bd->SharedMetalContext.fontTexture); // ImTextureID == void* + + return (bd->SharedMetalContext.fontTexture != nil); +} + +void ImGui_ImplMetal_DestroyFontsTexture() +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + bd->SharedMetalContext.fontTexture = nil; + io.Fonts->SetTexID(0); +} + +bool ImGui_ImplMetal_CreateDeviceObjects(id device) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + MTLDepthStencilDescriptor* depthStencilDescriptor = [[MTLDepthStencilDescriptor alloc] init]; + depthStencilDescriptor.depthWriteEnabled = NO; + depthStencilDescriptor.depthCompareFunction = MTLCompareFunctionAlways; + bd->SharedMetalContext.depthStencilState = [device newDepthStencilStateWithDescriptor:depthStencilDescriptor]; + ImGui_ImplMetal_CreateDeviceObjectsForPlatformWindows(); + ImGui_ImplMetal_CreateFontsTexture(device); + + return true; +} + +void ImGui_ImplMetal_DestroyDeviceObjects() +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + ImGui_ImplMetal_DestroyFontsTexture(); + ImGui_ImplMetal_InvalidateDeviceObjectsForPlatformWindows(); + [bd->SharedMetalContext.renderPipelineStateCache removeAllObjects]; +} + +#pragma mark - Multi-viewport support + +#import + +#if TARGET_OS_OSX +#import +#endif + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the back-end to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +struct ImGuiViewportDataMetal +{ + CAMetalLayer* MetalLayer; + id CommandQueue; + MTLRenderPassDescriptor* RenderPassDescriptor; + void* Handle = nullptr; + bool FirstFrame = true; +}; + +static void ImGui_ImplMetal_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + ImGuiViewportDataMetal* data = IM_NEW(ImGuiViewportDataMetal)(); + viewport->RendererUserData = data; + + // PlatformHandleRaw should always be a NSWindow*, whereas PlatformHandle might be a higher-level handle (e.g. GLFWWindow*, SDL_Window*). + // Some back-ends will leave PlatformHandleRaw == 0, in which case we assume PlatformHandle will contain the NSWindow*. + void* handle = viewport->PlatformHandleRaw ? viewport->PlatformHandleRaw : viewport->PlatformHandle; + IM_ASSERT(handle != nullptr); + + id device = bd->SharedMetalContext.device; + CAMetalLayer* layer = [CAMetalLayer layer]; + layer.device = device; + layer.framebufferOnly = YES; + layer.pixelFormat = bd->SharedMetalContext.framebufferDescriptor.colorPixelFormat; +#if TARGET_OS_OSX + NSWindow* window = (__bridge NSWindow*)handle; + NSView* view = window.contentView; + view.layer = layer; + view.wantsLayer = YES; +#endif + data->MetalLayer = layer; + data->CommandQueue = [device newCommandQueue]; + data->RenderPassDescriptor = [[MTLRenderPassDescriptor alloc] init]; + data->Handle = handle; +} + +static void ImGui_ImplMetal_DestroyWindow(ImGuiViewport* viewport) +{ + // The main viewport (owned by the application) will always have RendererUserData == 0 since we didn't create the data for it. + if (ImGuiViewportDataMetal* data = (ImGuiViewportDataMetal*)viewport->RendererUserData) + IM_DELETE(data); + viewport->RendererUserData = nullptr; +} + +inline static CGSize MakeScaledSize(CGSize size, CGFloat scale) +{ + return CGSizeMake(size.width * scale, size.height * scale); +} + +static void ImGui_ImplMetal_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGuiViewportDataMetal* data = (ImGuiViewportDataMetal*)viewport->RendererUserData; + data->MetalLayer.drawableSize = MakeScaledSize(CGSizeMake(size.x, size.y), viewport->DpiScale); +} + +static void ImGui_ImplMetal_RenderWindow(ImGuiViewport* viewport, void*) +{ + ImGuiViewportDataMetal* data = (ImGuiViewportDataMetal*)viewport->RendererUserData; + +#if TARGET_OS_OSX + void* handle = viewport->PlatformHandleRaw ? viewport->PlatformHandleRaw : viewport->PlatformHandle; + NSWindow* window = (__bridge NSWindow*)handle; + + // Always render the first frame, regardless of occlusionState, to avoid an initial flicker + if ((window.occlusionState & NSWindowOcclusionStateVisible) == 0 && !data->FirstFrame) + { + // Do not render windows which are completely occluded. Calling -[CAMetalLayer nextDrawable] will hang for + // approximately 1 second if the Metal layer is completely occluded. + return; + } + data->FirstFrame = false; + + viewport->DpiScale = (float)window.backingScaleFactor; + if (data->MetalLayer.contentsScale != viewport->DpiScale) + { + data->MetalLayer.contentsScale = viewport->DpiScale; + data->MetalLayer.drawableSize = MakeScaledSize(window.frame.size, viewport->DpiScale); + } + viewport->DrawData->FramebufferScale = ImVec2(viewport->DpiScale, viewport->DpiScale); +#endif + + id drawable = [data->MetalLayer nextDrawable]; + if (drawable == nil) + return; + + MTLRenderPassDescriptor* renderPassDescriptor = data->RenderPassDescriptor; + renderPassDescriptor.colorAttachments[0].texture = drawable.texture; + renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColorMake(0, 0, 0, 0); + if ((viewport->Flags & ImGuiViewportFlags_NoRendererClear) == 0) + renderPassDescriptor.colorAttachments[0].loadAction = MTLLoadActionClear; + + id commandBuffer = [data->CommandQueue commandBuffer]; + id renderEncoder = [commandBuffer renderCommandEncoderWithDescriptor:renderPassDescriptor]; + ImGui_ImplMetal_RenderDrawData(viewport->DrawData, commandBuffer, renderEncoder); + [renderEncoder endEncoding]; + + [commandBuffer presentDrawable:drawable]; + [commandBuffer commit]; +} + +static void ImGui_ImplMetal_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Renderer_CreateWindow = ImGui_ImplMetal_CreateWindow; + platform_io.Renderer_DestroyWindow = ImGui_ImplMetal_DestroyWindow; + platform_io.Renderer_SetWindowSize = ImGui_ImplMetal_SetWindowSize; + platform_io.Renderer_RenderWindow = ImGui_ImplMetal_RenderWindow; +} + +static void ImGui_ImplMetal_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +static void ImGui_ImplMetal_CreateDeviceObjectsForPlatformWindows() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int i = 1; i < platform_io.Viewports.Size; i++) + if (!platform_io.Viewports[i]->RendererUserData) + ImGui_ImplMetal_CreateWindow(platform_io.Viewports[i]); +} + +static void ImGui_ImplMetal_InvalidateDeviceObjectsForPlatformWindows() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int i = 1; i < platform_io.Viewports.Size; i++) + if (platform_io.Viewports[i]->RendererUserData) + ImGui_ImplMetal_DestroyWindow(platform_io.Viewports[i]); +} + +#pragma mark - MetalBuffer implementation + +@implementation MetalBuffer +- (instancetype)initWithBuffer:(id)buffer +{ + if ((self = [super init])) + { + _buffer = buffer; + _lastReuseTime = GetMachAbsoluteTimeInSeconds(); + } + return self; +} +@end + +#pragma mark - FramebufferDescriptor implementation + +@implementation FramebufferDescriptor +- (instancetype)initWithRenderPassDescriptor:(MTLRenderPassDescriptor*)renderPassDescriptor +{ + if ((self = [super init])) + { + _sampleCount = renderPassDescriptor.colorAttachments[0].texture.sampleCount; + _colorPixelFormat = renderPassDescriptor.colorAttachments[0].texture.pixelFormat; + _depthPixelFormat = renderPassDescriptor.depthAttachment.texture.pixelFormat; + _stencilPixelFormat = renderPassDescriptor.stencilAttachment.texture.pixelFormat; + } + return self; +} + +- (nonnull id)copyWithZone:(nullable NSZone*)zone +{ + FramebufferDescriptor* copy = [[FramebufferDescriptor allocWithZone:zone] init]; + copy.sampleCount = self.sampleCount; + copy.colorPixelFormat = self.colorPixelFormat; + copy.depthPixelFormat = self.depthPixelFormat; + copy.stencilPixelFormat = self.stencilPixelFormat; + return copy; +} + +- (NSUInteger)hash +{ + NSUInteger sc = _sampleCount & 0x3; + NSUInteger cf = _colorPixelFormat & 0x3FF; + NSUInteger df = _depthPixelFormat & 0x3FF; + NSUInteger sf = _stencilPixelFormat & 0x3FF; + NSUInteger hash = (sf << 22) | (df << 12) | (cf << 2) | sc; + return hash; +} + +- (BOOL)isEqual:(id)object +{ + FramebufferDescriptor* other = object; + if (![other isKindOfClass:[FramebufferDescriptor class]]) + return NO; + return other.sampleCount == self.sampleCount && + other.colorPixelFormat == self.colorPixelFormat && + other.depthPixelFormat == self.depthPixelFormat && + other.stencilPixelFormat == self.stencilPixelFormat; +} + +@end + +#pragma mark - MetalContext implementation + +@implementation MetalContext +- (instancetype)init +{ + if ((self = [super init])) + { + self.renderPipelineStateCache = [NSMutableDictionary dictionary]; + self.bufferCache = [NSMutableArray array]; + _lastBufferCachePurge = GetMachAbsoluteTimeInSeconds(); + } + return self; +} + +- (MetalBuffer*)dequeueReusableBufferOfLength:(NSUInteger)length device:(id)device +{ + uint64_t now = GetMachAbsoluteTimeInSeconds(); + + @synchronized(self.bufferCache) + { + // Purge old buffers that haven't been useful for a while + if (now - self.lastBufferCachePurge > 1.0) + { + NSMutableArray* survivors = [NSMutableArray array]; + for (MetalBuffer* candidate in self.bufferCache) + if (candidate.lastReuseTime > self.lastBufferCachePurge) + [survivors addObject:candidate]; + self.bufferCache = [survivors mutableCopy]; + self.lastBufferCachePurge = now; + } + + // See if we have a buffer we can reuse + MetalBuffer* bestCandidate = nil; + for (MetalBuffer* candidate in self.bufferCache) + if (candidate.buffer.length >= length && (bestCandidate == nil || bestCandidate.lastReuseTime > candidate.lastReuseTime)) + bestCandidate = candidate; + + if (bestCandidate != nil) + { + [self.bufferCache removeObject:bestCandidate]; + bestCandidate.lastReuseTime = now; + return bestCandidate; + } + } + + // No luck; make a new buffer + id backing = [device newBufferWithLength:length options:MTLResourceStorageModeShared]; + return [[MetalBuffer alloc] initWithBuffer:backing]; +} + +// Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling. +- (id)renderPipelineStateForFramebufferDescriptor:(FramebufferDescriptor*)descriptor device:(id)device +{ + NSError* error = nil; + + NSString* shaderSource = @"" + "#include \n" + "using namespace metal;\n" + "\n" + "struct Uniforms {\n" + " float4x4 projectionMatrix;\n" + "};\n" + "\n" + "struct VertexIn {\n" + " float2 position [[attribute(0)]];\n" + " float2 texCoords [[attribute(1)]];\n" + " uchar4 color [[attribute(2)]];\n" + "};\n" + "\n" + "struct VertexOut {\n" + " float4 position [[position]];\n" + " float2 texCoords;\n" + " float4 color;\n" + "};\n" + "\n" + "vertex VertexOut vertex_main(VertexIn in [[stage_in]],\n" + " constant Uniforms &uniforms [[buffer(1)]]) {\n" + " VertexOut out;\n" + " out.position = uniforms.projectionMatrix * float4(in.position, 0, 1);\n" + " out.texCoords = in.texCoords;\n" + " out.color = float4(in.color) / float4(255.0);\n" + " return out;\n" + "}\n" + "\n" + "fragment half4 fragment_main(VertexOut in [[stage_in]],\n" + " texture2d texture [[texture(0)]]) {\n" + " constexpr sampler linearSampler(coord::normalized, min_filter::linear, mag_filter::linear, mip_filter::linear);\n" + " half4 texColor = texture.sample(linearSampler, in.texCoords);\n" + " return half4(in.color) * texColor;\n" + "}\n"; + + id library = [device newLibraryWithSource:shaderSource options:nil error:&error]; + if (library == nil) + { + NSLog(@"Error: failed to create Metal library: %@", error); + return nil; + } + + id vertexFunction = [library newFunctionWithName:@"vertex_main"]; + id fragmentFunction = [library newFunctionWithName:@"fragment_main"]; + + if (vertexFunction == nil || fragmentFunction == nil) + { + NSLog(@"Error: failed to find Metal shader functions in library: %@", error); + return nil; + } + + MTLVertexDescriptor* vertexDescriptor = [MTLVertexDescriptor vertexDescriptor]; + vertexDescriptor.attributes[0].offset = IM_OFFSETOF(ImDrawVert, pos); + vertexDescriptor.attributes[0].format = MTLVertexFormatFloat2; // position + vertexDescriptor.attributes[0].bufferIndex = 0; + vertexDescriptor.attributes[1].offset = IM_OFFSETOF(ImDrawVert, uv); + vertexDescriptor.attributes[1].format = MTLVertexFormatFloat2; // texCoords + vertexDescriptor.attributes[1].bufferIndex = 0; + vertexDescriptor.attributes[2].offset = IM_OFFSETOF(ImDrawVert, col); + vertexDescriptor.attributes[2].format = MTLVertexFormatUChar4; // color + vertexDescriptor.attributes[2].bufferIndex = 0; + vertexDescriptor.layouts[0].stepRate = 1; + vertexDescriptor.layouts[0].stepFunction = MTLVertexStepFunctionPerVertex; + vertexDescriptor.layouts[0].stride = sizeof(ImDrawVert); + + MTLRenderPipelineDescriptor* pipelineDescriptor = [[MTLRenderPipelineDescriptor alloc] init]; + pipelineDescriptor.vertexFunction = vertexFunction; + pipelineDescriptor.fragmentFunction = fragmentFunction; + pipelineDescriptor.vertexDescriptor = vertexDescriptor; + pipelineDescriptor.rasterSampleCount = self.framebufferDescriptor.sampleCount; + pipelineDescriptor.colorAttachments[0].pixelFormat = self.framebufferDescriptor.colorPixelFormat; + pipelineDescriptor.colorAttachments[0].blendingEnabled = YES; + pipelineDescriptor.colorAttachments[0].rgbBlendOperation = MTLBlendOperationAdd; + pipelineDescriptor.colorAttachments[0].sourceRGBBlendFactor = MTLBlendFactorSourceAlpha; + pipelineDescriptor.colorAttachments[0].destinationRGBBlendFactor = MTLBlendFactorOneMinusSourceAlpha; + pipelineDescriptor.colorAttachments[0].alphaBlendOperation = MTLBlendOperationAdd; + pipelineDescriptor.colorAttachments[0].sourceAlphaBlendFactor = MTLBlendFactorOne; + pipelineDescriptor.colorAttachments[0].destinationAlphaBlendFactor = MTLBlendFactorOneMinusSourceAlpha; + pipelineDescriptor.depthAttachmentPixelFormat = self.framebufferDescriptor.depthPixelFormat; + pipelineDescriptor.stencilAttachmentPixelFormat = self.framebufferDescriptor.stencilPixelFormat; + + id renderPipelineState = [device newRenderPipelineStateWithDescriptor:pipelineDescriptor error:&error]; + if (error != nil) + NSLog(@"Error: failed to create Metal pipeline state: %@", error); + + return renderPipelineState; +} + +@end + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl2.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl2.cpp new file mode 100644 index 0000000..8defd84 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl2.cpp @@ -0,0 +1,343 @@ +// dear imgui: Renderer Backend for OpenGL2 (legacy OpenGL, fixed pipeline) +// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)** +// **Prefer using the code in imgui_impl_opengl3.cpp** +// This code is mostly provided as a reference to learn how ImGui integration works, because it is shorter to read. +// If your code is using GL3+ context or any semi modern OpenGL calls, using this is likely to make everything more +// complicated, will require your code to reset every single OpenGL attributes to their initial state, and might +// confuse your GPU driver. +// The GL2 code is unable to reset attributes or even call e.g. "glUseProgram(0)" because they don't exist in that API. + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2021-12-08: OpenGL: Fixed mishandling of the the ImDrawCmd::IdxOffset field! This is an old bug but it never had an effect until some internal rendering changes in 1.86. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-05-19: OpenGL: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-01-03: OpenGL: Backup, setup and restore GL_SHADE_MODEL state, disable GL_STENCIL_TEST and disable GL_NORMAL_ARRAY client state to increase compatibility with legacy OpenGL applications. +// 2020-01-23: OpenGL: Backup, setup and restore GL_TEXTURE_ENV to increase compatibility with legacy OpenGL applications. +// 2019-04-30: OpenGL: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2019-02-11: OpenGL: Projecting clipping rectangles correctly using draw_data->FramebufferScale to allow multi-viewports for retina display. +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-08-03: OpenGL: Disabling/restoring GL_LIGHTING and GL_COLOR_MATERIAL to increase compatibility with legacy OpenGL applications. +// 2018-06-08: Misc: Extracted imgui_impl_opengl2.cpp/.h away from the old combined GLFW/SDL+OpenGL2 examples. +// 2018-06-08: OpenGL: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplOpenGL2_RenderDrawData() in the .h file so you can call it yourself. +// 2017-09-01: OpenGL: Save and restore current polygon mode. +// 2016-09-10: OpenGL: Uploading font texture as RGBA32 to increase compatibility with users shaders (not ideal). +// 2016-09-05: OpenGL: Fixed save and restore of current scissor rectangle. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_opengl2.h" +#include // intptr_t + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-macros" // warning: macro is not used +#pragma clang diagnostic ignored "-Wnonportable-system-include-path" +#endif + +// Include OpenGL header (without an OpenGL loader) requires a bit of fiddling +#if defined(_WIN32) && !defined(APIENTRY) +#define APIENTRY __stdcall // It is customary to use APIENTRY for OpenGL function pointer declarations on all platforms. Additionally, the Windows OpenGL header needs APIENTRY. +#endif +#if defined(_WIN32) && !defined(WINGDIAPI) +#define WINGDIAPI __declspec(dllimport) // Some Windows OpenGL headers need this +#endif +#if defined(__APPLE__) +#define GL_SILENCE_DEPRECATION +#include +#else +#include +#endif + +struct ImGui_ImplOpenGL2_Data +{ + GLuint FontTexture; + + ImGui_ImplOpenGL2_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplOpenGL2_Data* ImGui_ImplOpenGL2_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplOpenGL2_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplOpenGL2_InitPlatformInterface(); +static void ImGui_ImplOpenGL2_ShutdownPlatformInterface(); + +// Functions +bool ImGui_ImplOpenGL2_Init() +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + + // Setup backend capabilities flags + ImGui_ImplOpenGL2_Data* bd = IM_NEW(ImGui_ImplOpenGL2_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_opengl2"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplOpenGL2_InitPlatformInterface(); + + return true; +} + +void ImGui_ImplOpenGL2_Shutdown() +{ + ImGui_ImplOpenGL2_Data* bd = ImGui_ImplOpenGL2_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplOpenGL2_ShutdownPlatformInterface(); + ImGui_ImplOpenGL2_DestroyDeviceObjects(); + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~ImGuiBackendFlags_RendererHasViewports; + IM_DELETE(bd); +} + +void ImGui_ImplOpenGL2_NewFrame() +{ + ImGui_ImplOpenGL2_Data* bd = ImGui_ImplOpenGL2_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplOpenGL2_Init()?"); + + if (!bd->FontTexture) + ImGui_ImplOpenGL2_CreateDeviceObjects(); +} + +static void ImGui_ImplOpenGL2_SetupRenderState(ImDrawData* draw_data, int fb_width, int fb_height) +{ + // Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled, vertex/texcoord/color pointers, polygon fill. + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + //glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); // In order to composite our output buffer we need to preserve alpha + glDisable(GL_CULL_FACE); + glDisable(GL_DEPTH_TEST); + glDisable(GL_STENCIL_TEST); + glDisable(GL_LIGHTING); + glDisable(GL_COLOR_MATERIAL); + glEnable(GL_SCISSOR_TEST); + glEnableClientState(GL_VERTEX_ARRAY); + glEnableClientState(GL_TEXTURE_COORD_ARRAY); + glEnableClientState(GL_COLOR_ARRAY); + glDisableClientState(GL_NORMAL_ARRAY); + glEnable(GL_TEXTURE_2D); + glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); + glShadeModel(GL_SMOOTH); + glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); + + // If you are using this code with non-legacy OpenGL header/contexts (which you should not, prefer using imgui_impl_opengl3.cpp!!), + // you may need to backup/reset/restore other state, e.g. for current shader using the commented lines below. + // (DO NOT MODIFY THIS FILE! Add the code in your calling function) + // GLint last_program; + // glGetIntegerv(GL_CURRENT_PROGRAM, &last_program); + // glUseProgram(0); + // ImGui_ImplOpenGL2_RenderDrawData(...); + // glUseProgram(last_program) + // There are potentially many more states you could need to clear/setup that we can't access from default headers. + // e.g. glBindBuffer(GL_ARRAY_BUFFER, 0), glDisable(GL_TEXTURE_CUBE_MAP). + + // Setup viewport, orthographic projection matrix + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. + glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); + glMatrixMode(GL_PROJECTION); + glPushMatrix(); + glLoadIdentity(); + glOrtho(draw_data->DisplayPos.x, draw_data->DisplayPos.x + draw_data->DisplaySize.x, draw_data->DisplayPos.y + draw_data->DisplaySize.y, draw_data->DisplayPos.y, -1.0f, +1.0f); + glMatrixMode(GL_MODELVIEW); + glPushMatrix(); + glLoadIdentity(); +} + +// OpenGL2 Render function. +// Note that this implementation is little overcomplicated because we are saving/setting up/restoring every OpenGL state explicitly. +// This is in order to be able to run within an OpenGL engine that doesn't do so. +void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data) +{ + // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) + int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); + int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); + if (fb_width == 0 || fb_height == 0) + return; + + // Backup GL state + GLint last_texture; glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); + GLint last_polygon_mode[2]; glGetIntegerv(GL_POLYGON_MODE, last_polygon_mode); + GLint last_viewport[4]; glGetIntegerv(GL_VIEWPORT, last_viewport); + GLint last_scissor_box[4]; glGetIntegerv(GL_SCISSOR_BOX, last_scissor_box); + GLint last_shade_model; glGetIntegerv(GL_SHADE_MODEL, &last_shade_model); + GLint last_tex_env_mode; glGetTexEnviv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, &last_tex_env_mode); + glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT | GL_TRANSFORM_BIT); + + // Setup desired GL state + ImGui_ImplOpenGL2_SetupRenderState(draw_data, fb_width, fb_height); + + // Will project scissor/clipping rectangles into framebuffer space + ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports + ImVec2 clip_scale = draw_data->FramebufferScale; // (1,1) unless using retina display which are often (2,2) + + // Render command lists + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; + const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; + glVertexPointer(2, GL_FLOAT, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + IM_OFFSETOF(ImDrawVert, pos))); + glTexCoordPointer(2, GL_FLOAT, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + IM_OFFSETOF(ImDrawVert, uv))); + glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + IM_OFFSETOF(ImDrawVert, col))); + + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplOpenGL2_SetupRenderState(draw_data, fb_width, fb_height); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); + ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply scissor/clipping rectangle (Y is inverted in OpenGL) + glScissor((int)clip_min.x, (int)((float)fb_height - clip_max.y), (int)(clip_max.x - clip_min.x), (int)(clip_max.y - clip_min.y)); + + // Bind texture, Draw + glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->GetTexID()); + glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer + pcmd->IdxOffset); + } + } + } + + // Restore modified GL state + glDisableClientState(GL_COLOR_ARRAY); + glDisableClientState(GL_TEXTURE_COORD_ARRAY); + glDisableClientState(GL_VERTEX_ARRAY); + glBindTexture(GL_TEXTURE_2D, (GLuint)last_texture); + glMatrixMode(GL_MODELVIEW); + glPopMatrix(); + glMatrixMode(GL_PROJECTION); + glPopMatrix(); + glPopAttrib(); + glPolygonMode(GL_FRONT, (GLenum)last_polygon_mode[0]); glPolygonMode(GL_BACK, (GLenum)last_polygon_mode[1]); + glViewport(last_viewport[0], last_viewport[1], (GLsizei)last_viewport[2], (GLsizei)last_viewport[3]); + glScissor(last_scissor_box[0], last_scissor_box[1], (GLsizei)last_scissor_box[2], (GLsizei)last_scissor_box[3]); + glShadeModel(last_shade_model); + glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, last_tex_env_mode); +} + +bool ImGui_ImplOpenGL2_CreateFontsTexture() +{ + // Build texture atlas + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplOpenGL2_Data* bd = ImGui_ImplOpenGL2_GetBackendData(); + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // Load as RGBA 32-bit (75% of the memory is wasted, but default font is so small) because it is more likely to be compatible with user's existing shaders. If your ImTextureId represent a higher-level concept than just a GL texture id, consider calling GetTexDataAsAlpha8() instead to save on GPU memory. + + // Upload texture to graphics system + // (Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling) + GLint last_texture; + glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); + glGenTextures(1, &bd->FontTexture); + glBindTexture(GL_TEXTURE_2D, bd->FontTexture); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)(intptr_t)bd->FontTexture); + + // Restore state + glBindTexture(GL_TEXTURE_2D, last_texture); + + return true; +} + +void ImGui_ImplOpenGL2_DestroyFontsTexture() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplOpenGL2_Data* bd = ImGui_ImplOpenGL2_GetBackendData(); + if (bd->FontTexture) + { + glDeleteTextures(1, &bd->FontTexture); + io.Fonts->SetTexID(0); + bd->FontTexture = 0; + } +} + +bool ImGui_ImplOpenGL2_CreateDeviceObjects() +{ + return ImGui_ImplOpenGL2_CreateFontsTexture(); +} + +void ImGui_ImplOpenGL2_DestroyDeviceObjects() +{ + ImGui_ImplOpenGL2_DestroyFontsTexture(); +} + + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +static void ImGui_ImplOpenGL2_RenderWindow(ImGuiViewport* viewport, void*) +{ + if (!(viewport->Flags & ImGuiViewportFlags_NoRendererClear)) + { + ImVec4 clear_color = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); + glClearColor(clear_color.x, clear_color.y, clear_color.z, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + } + ImGui_ImplOpenGL2_RenderDrawData(viewport->DrawData); +} + +static void ImGui_ImplOpenGL2_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Renderer_RenderWindow = ImGui_ImplOpenGL2_RenderWindow; +} + +static void ImGui_ImplOpenGL2_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl2.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl2.h new file mode 100644 index 0000000..be8fb6c --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl2.h @@ -0,0 +1,39 @@ +// dear imgui: Renderer Backend for OpenGL2 (legacy OpenGL, fixed pipeline) +// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)** +// **Prefer using the code in imgui_impl_opengl3.cpp** +// This code is mostly provided as a reference to learn how ImGui integration works, because it is shorter to read. +// If your code is using GL3+ context or any semi modern OpenGL calls, using this is likely to make everything more +// complicated, will require your code to reset every single OpenGL attributes to their initial state, and might +// confuse your GPU driver. +// The GL2 code is unable to reset attributes or even call e.g. "glUseProgram(0)" because they don't exist in that API. + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +IMGUI_IMPL_API bool ImGui_ImplOpenGL2_Init(); +IMGUI_IMPL_API void ImGui_ImplOpenGL2_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplOpenGL2_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data); + +// Called by Init/NewFrame/Shutdown +IMGUI_IMPL_API bool ImGui_ImplOpenGL2_CreateFontsTexture(); +IMGUI_IMPL_API void ImGui_ImplOpenGL2_DestroyFontsTexture(); +IMGUI_IMPL_API bool ImGui_ImplOpenGL2_CreateDeviceObjects(); +IMGUI_IMPL_API void ImGui_ImplOpenGL2_DestroyDeviceObjects(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl3.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl3.cpp new file mode 100644 index 0000000..6aa49ea --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl3.cpp @@ -0,0 +1,985 @@ +// dear imgui: Renderer Backend for modern OpenGL with shaders / programmatic pipeline +// - Desktop GL: 2.x 3.x 4.x +// - Embedded GL: ES 2.0 (WebGL 1.0), ES 3.0 (WebGL 2.0) +// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices (Desktop OpenGL only). +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// About WebGL/ES: +// - You need to '#define IMGUI_IMPL_OPENGL_ES2' or '#define IMGUI_IMPL_OPENGL_ES3' to use WebGL or OpenGL ES. +// - This is done automatically on iOS, Android and Emscripten targets. +// - For other targets, the define needs to be visible from the imgui_impl_opengl3.cpp compilation unit. If unsure, define globally or in imconfig.h. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2023-10-05: OpenGL: Rename symbols in our internal loader so that LTO compilation with another copy of gl3w is possible. (#6875, #6668, #4445) +// 2023-06-20: OpenGL: Fixed erroneous use glGetIntegerv(GL_CONTEXT_PROFILE_MASK) on contexts lower than 3.2. (#6539, #6333) +// 2023-05-09: OpenGL: Support for glBindSampler() backup/restore on ES3. (#6375) +// 2023-04-18: OpenGL: Restore front and back polygon mode separately when supported by context. (#6333) +// 2023-03-23: OpenGL: Properly restoring "no shader program bound" if it was the case prior to running the rendering function. (#6267, #6220, #6224) +// 2023-03-15: OpenGL: Fixed GL loader crash when GL_VERSION returns NULL. (#6154, #4445, #3530) +// 2023-03-06: OpenGL: Fixed restoration of a potentially deleted OpenGL program, by calling glIsProgram(). (#6220, #6224) +// 2022-11-09: OpenGL: Reverted use of glBufferSubData(), too many corruptions issues + old issues seemingly can't be reproed with Intel drivers nowadays (revert 2021-12-15 and 2022-05-23 changes). +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2022-09-27: OpenGL: Added ability to '#define IMGUI_IMPL_OPENGL_DEBUG'. +// 2022-05-23: OpenGL: Reworking 2021-12-15 "Using buffer orphaning" so it only happens on Intel GPU, seems to cause problems otherwise. (#4468, #4825, #4832, #5127). +// 2022-05-13: OpenGL: Fixed state corruption on OpenGL ES 2.0 due to not preserving GL_ELEMENT_ARRAY_BUFFER_BINDING and vertex attribute states. +// 2021-12-15: OpenGL: Using buffer orphaning + glBufferSubData(), seems to fix leaks with multi-viewports with some Intel HD drivers. +// 2021-08-23: OpenGL: Fixed ES 3.0 shader ("#version 300 es") use normal precision floats to avoid wobbly rendering at HD resolutions. +// 2021-08-19: OpenGL: Embed and use our own minimal GL loader (imgui_impl_opengl3_loader.h), removing requirement and support for third-party loader. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-06-25: OpenGL: Use OES_vertex_array extension on Emscripten + backup/restore current state. +// 2021-06-21: OpenGL: Destroy individual vertex/fragment shader objects right after they are linked into the main shader. +// 2021-05-24: OpenGL: Access GL_CLIP_ORIGIN when "GL_ARB_clip_control" extension is detected, inside of just OpenGL 4.5 version. +// 2021-05-19: OpenGL: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-04-06: OpenGL: Don't try to read GL_CLIP_ORIGIN unless we're OpenGL 4.5 or greater. +// 2021-02-18: OpenGL: Change blending equation to preserve alpha in output buffer. +// 2021-01-03: OpenGL: Backup, setup and restore GL_STENCIL_TEST state. +// 2020-10-23: OpenGL: Backup, setup and restore GL_PRIMITIVE_RESTART state. +// 2020-10-15: OpenGL: Use glGetString(GL_VERSION) instead of glGetIntegerv(GL_MAJOR_VERSION, ...) when the later returns zero (e.g. Desktop GL 2.x) +// 2020-09-17: OpenGL: Fix to avoid compiling/calling glBindSampler() on ES or pre 3.3 context which have the defines set by a loader. +// 2020-07-10: OpenGL: Added support for glad2 OpenGL loader. +// 2020-05-08: OpenGL: Made default GLSL version 150 (instead of 130) on OSX. +// 2020-04-21: OpenGL: Fixed handling of glClipControl(GL_UPPER_LEFT) by inverting projection matrix. +// 2020-04-12: OpenGL: Fixed context version check mistakenly testing for 4.0+ instead of 3.2+ to enable ImGuiBackendFlags_RendererHasVtxOffset. +// 2020-03-24: OpenGL: Added support for glbinding 2.x OpenGL loader. +// 2020-01-07: OpenGL: Added support for glbinding 3.x OpenGL loader. +// 2019-10-25: OpenGL: Using a combination of GL define and runtime GL version to decide whether to use glDrawElementsBaseVertex(). Fix building with pre-3.2 GL loaders. +// 2019-09-22: OpenGL: Detect default GL loader using __has_include compiler facility. +// 2019-09-16: OpenGL: Tweak initialization code to allow application calling ImGui_ImplOpenGL3_CreateFontsTexture() before the first NewFrame() call. +// 2019-05-29: OpenGL: Desktop GL only: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: OpenGL: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2019-03-29: OpenGL: Not calling glBindBuffer more than necessary in the render loop. +// 2019-03-15: OpenGL: Added a GL call + comments in ImGui_ImplOpenGL3_Init() to detect uninitialized GL function loaders early. +// 2019-03-03: OpenGL: Fix support for ES 2.0 (WebGL 1.0). +// 2019-02-20: OpenGL: Fix for OSX not supporting OpenGL 4.5, we don't try to read GL_CLIP_ORIGIN even if defined by the headers/loader. +// 2019-02-11: OpenGL: Projecting clipping rectangles correctly using draw_data->FramebufferScale to allow multi-viewports for retina display. +// 2019-02-01: OpenGL: Using GLSL 410 shaders for any version over 410 (e.g. 430, 450). +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-11-13: OpenGL: Support for GL 4.5's glClipControl(GL_UPPER_LEFT) / GL_CLIP_ORIGIN. +// 2018-08-29: OpenGL: Added support for more OpenGL loaders: glew and glad, with comments indicative that any loader can be used. +// 2018-08-09: OpenGL: Default to OpenGL ES 3 on iOS and Android. GLSL version default to "#version 300 ES". +// 2018-07-30: OpenGL: Support for GLSL 300 ES and 410 core. Fixes for Emscripten compilation. +// 2018-07-10: OpenGL: Support for more GLSL versions (based on the GLSL version string). Added error output when shaders fail to compile/link. +// 2018-06-08: Misc: Extracted imgui_impl_opengl3.cpp/.h away from the old combined GLFW/SDL+OpenGL3 examples. +// 2018-06-08: OpenGL: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-05-25: OpenGL: Removed unnecessary backup/restore of GL_ELEMENT_ARRAY_BUFFER_BINDING since this is part of the VAO state. +// 2018-05-14: OpenGL: Making the call to glBindSampler() optional so 3.2 context won't fail if the function is a nullptr pointer. +// 2018-03-06: OpenGL: Added const char* glsl_version parameter to ImGui_ImplOpenGL3_Init() so user can override the GLSL version e.g. "#version 150". +// 2018-02-23: OpenGL: Create the VAO in the render function so the setup can more easily be used with multiple shared GL context. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplSdlGL3_RenderDrawData() in the .h file so you can call it yourself. +// 2018-01-07: OpenGL: Changed GLSL shader version from 330 to 150. +// 2017-09-01: OpenGL: Save and restore current bound sampler. Save and restore current polygon mode. +// 2017-05-01: OpenGL: Fixed save and restore of current blend func state. +// 2017-05-01: OpenGL: Fixed save and restore of current GL_ACTIVE_TEXTURE. +// 2016-09-05: OpenGL: Fixed save and restore of current scissor rectangle. +// 2016-07-29: OpenGL: Explicitly setting GL_UNPACK_ROW_LENGTH to reduce issues because SDL changes it. (#752) + +//---------------------------------------- +// OpenGL GLSL GLSL +// version version string +//---------------------------------------- +// 2.0 110 "#version 110" +// 2.1 120 "#version 120" +// 3.0 130 "#version 130" +// 3.1 140 "#version 140" +// 3.2 150 "#version 150" +// 3.3 330 "#version 330 core" +// 4.0 400 "#version 400 core" +// 4.1 410 "#version 410 core" +// 4.2 420 "#version 410 core" +// 4.3 430 "#version 430 core" +// ES 2.0 100 "#version 100" = WebGL 1.0 +// ES 3.0 300 "#version 300 es" = WebGL 2.0 +//---------------------------------------- + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_opengl3.h" +#include +#include // intptr_t +#if defined(__APPLE__) +#include +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wunused-macros" // warning: macro is not used +#pragma clang diagnostic ignored "-Wnonportable-system-include-path" +#pragma clang diagnostic ignored "-Wcast-function-type" // warning: cast between incompatible function types (for loader) +#endif +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' +#pragma GCC diagnostic ignored "-Wcast-function-type" // warning: cast between incompatible function types (for loader) +#endif + +// GL includes +#if defined(IMGUI_IMPL_OPENGL_ES2) +#if (defined(__APPLE__) && (TARGET_OS_IOS || TARGET_OS_TV)) +#include // Use GL ES 2 +#else +#include // Use GL ES 2 +#endif +#if defined(__EMSCRIPTEN__) +#ifndef GL_GLEXT_PROTOTYPES +#define GL_GLEXT_PROTOTYPES +#endif +#include +#endif +#elif defined(IMGUI_IMPL_OPENGL_ES3) +#if (defined(__APPLE__) && (TARGET_OS_IOS || TARGET_OS_TV)) +#include // Use GL ES 3 +#else +#include // Use GL ES 3 +#endif +#elif !defined(IMGUI_IMPL_OPENGL_LOADER_CUSTOM) +// Modern desktop OpenGL doesn't have a standard portable header file to load OpenGL function pointers. +// Helper libraries are often used for this purpose! Here we are using our own minimal custom loader based on gl3w. +// In the rest of your app/engine, you can use another loader of your choice (gl3w, glew, glad, glbinding, glext, glLoadGen, etc.). +// If you happen to be developing a new feature for this backend (imgui_impl_opengl3.cpp): +// - You may need to regenerate imgui_impl_opengl3_loader.h to add new symbols. See https://github.com/dearimgui/gl3w_stripped +// - You can temporarily use an unstripped version. See https://github.com/dearimgui/gl3w_stripped/releases +// Changes to this backend using new APIs should be accompanied by a regenerated stripped loader version. +#define IMGL3W_IMPL +#include "imgui_impl_opengl3_loader.h" +#endif + +// Vertex arrays are not supported on ES2/WebGL1 unless Emscripten which uses an extension +#ifndef IMGUI_IMPL_OPENGL_ES2 +#define IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY +#elif defined(__EMSCRIPTEN__) +#define IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY +#define glBindVertexArray glBindVertexArrayOES +#define glGenVertexArrays glGenVertexArraysOES +#define glDeleteVertexArrays glDeleteVertexArraysOES +#define GL_VERTEX_ARRAY_BINDING GL_VERTEX_ARRAY_BINDING_OES +#endif + +// Desktop GL 2.0+ has glPolygonMode() which GL ES and WebGL don't have. +#ifdef GL_POLYGON_MODE +#define IMGUI_IMPL_HAS_POLYGON_MODE +#endif + +// Desktop GL 3.2+ has glDrawElementsBaseVertex() which GL ES and WebGL don't have. +#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && defined(GL_VERSION_3_2) +#define IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET +#endif + +// Desktop GL 3.3+ and GL ES 3.0+ have glBindSampler() +#if !defined(IMGUI_IMPL_OPENGL_ES2) && (defined(IMGUI_IMPL_OPENGL_ES3) || defined(GL_VERSION_3_3)) +#define IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER +#endif + +// Desktop GL 3.1+ has GL_PRIMITIVE_RESTART state +#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && defined(GL_VERSION_3_1) +#define IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART +#endif + +// Desktop GL use extension detection +#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) +#define IMGUI_IMPL_OPENGL_MAY_HAVE_EXTENSIONS +#endif + +// [Debugging] +//#define IMGUI_IMPL_OPENGL_DEBUG +#ifdef IMGUI_IMPL_OPENGL_DEBUG +#include +#define GL_CALL(_CALL) do { _CALL; GLenum gl_err = glGetError(); if (gl_err != 0) fprintf(stderr, "GL error 0x%x returned from '%s'.\n", gl_err, #_CALL); } while (0) // Call with error check +#else +#define GL_CALL(_CALL) _CALL // Call without error check +#endif + +// OpenGL Data +struct ImGui_ImplOpenGL3_Data +{ + GLuint GlVersion; // Extracted at runtime using GL_MAJOR_VERSION, GL_MINOR_VERSION queries (e.g. 320 for GL 3.2) + char GlslVersionString[32]; // Specified by user or detected based on compile time GL settings. + bool GlProfileIsES2; + bool GlProfileIsES3; + bool GlProfileIsCompat; + GLint GlProfileMask; + GLuint FontTexture; + GLuint ShaderHandle; + GLint AttribLocationTex; // Uniforms location + GLint AttribLocationProjMtx; + GLuint AttribLocationVtxPos; // Vertex attributes location + GLuint AttribLocationVtxUV; + GLuint AttribLocationVtxColor; + unsigned int VboHandle, ElementsHandle; + GLsizeiptr VertexBufferSize; + GLsizeiptr IndexBufferSize; + bool HasClipOrigin; + bool UseBufferSubData; + + ImGui_ImplOpenGL3_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplOpenGL3_Data* ImGui_ImplOpenGL3_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplOpenGL3_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplOpenGL3_InitPlatformInterface(); +static void ImGui_ImplOpenGL3_ShutdownPlatformInterface(); + +// OpenGL vertex attribute state (for ES 1.0 and ES 2.0 only) +#ifndef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY +struct ImGui_ImplOpenGL3_VtxAttribState +{ + GLint Enabled, Size, Type, Normalized, Stride; + GLvoid* Ptr; + + void GetState(GLint index) + { + glGetVertexAttribiv(index, GL_VERTEX_ATTRIB_ARRAY_ENABLED, &Enabled); + glGetVertexAttribiv(index, GL_VERTEX_ATTRIB_ARRAY_SIZE, &Size); + glGetVertexAttribiv(index, GL_VERTEX_ATTRIB_ARRAY_TYPE, &Type); + glGetVertexAttribiv(index, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, &Normalized); + glGetVertexAttribiv(index, GL_VERTEX_ATTRIB_ARRAY_STRIDE, &Stride); + glGetVertexAttribPointerv(index, GL_VERTEX_ATTRIB_ARRAY_POINTER, &Ptr); + } + void SetState(GLint index) + { + glVertexAttribPointer(index, Size, Type, (GLboolean)Normalized, Stride, Ptr); + if (Enabled) glEnableVertexAttribArray(index); else glDisableVertexAttribArray(index); + } +}; +#endif + +// Functions +bool ImGui_ImplOpenGL3_Init(const char* glsl_version) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + + // Initialize our loader +#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && !defined(IMGUI_IMPL_OPENGL_LOADER_CUSTOM) + if (imgl3wInit() != 0) + { + fprintf(stderr, "Failed to initialize OpenGL loader!\n"); + return false; + } +#endif + + // Setup backend capabilities flags + ImGui_ImplOpenGL3_Data* bd = IM_NEW(ImGui_ImplOpenGL3_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_opengl3"; + + // Query for GL version (e.g. 320 for GL 3.2) +#if defined(IMGUI_IMPL_OPENGL_ES2) + // GLES 2 + bd->GlVersion = 200; + bd->GlProfileIsES2 = true; +#else + // Desktop or GLES 3 + GLint major = 0; + GLint minor = 0; + glGetIntegerv(GL_MAJOR_VERSION, &major); + glGetIntegerv(GL_MINOR_VERSION, &minor); + if (major == 0 && minor == 0) + { + // Query GL_VERSION in desktop GL 2.x, the string will start with "." + const char* gl_version = (const char*)glGetString(GL_VERSION); + sscanf(gl_version, "%d.%d", &major, &minor); + } + bd->GlVersion = (GLuint)(major * 100 + minor * 10); +#if defined(GL_CONTEXT_PROFILE_MASK) + if (bd->GlVersion >= 320) + glGetIntegerv(GL_CONTEXT_PROFILE_MASK, &bd->GlProfileMask); + bd->GlProfileIsCompat = (bd->GlProfileMask & GL_CONTEXT_COMPATIBILITY_PROFILE_BIT) != 0; +#endif + +#if defined(IMGUI_IMPL_OPENGL_ES3) + bd->GlProfileIsES3 = true; +#endif + + bd->UseBufferSubData = false; + /* + // Query vendor to enable glBufferSubData kludge +#ifdef _WIN32 + if (const char* vendor = (const char*)glGetString(GL_VENDOR)) + if (strncmp(vendor, "Intel", 5) == 0) + bd->UseBufferSubData = true; +#endif + */ +#endif + +#ifdef IMGUI_IMPL_OPENGL_DEBUG + printf("GlVersion = %d\nGlProfileIsCompat = %d\nGlProfileMask = 0x%X\nGlProfileIsES2 = %d, GlProfileIsES3 = %d\nGL_VENDOR = '%s'\nGL_RENDERER = '%s'\n", bd->GlVersion, bd->GlProfileIsCompat, bd->GlProfileMask, bd->GlProfileIsES2, bd->GlProfileIsES3, (const char*)glGetString(GL_VENDOR), (const char*)glGetString(GL_RENDERER)); // [DEBUG] +#endif + +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET + if (bd->GlVersion >= 320) + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. +#endif + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + + // Store GLSL version string so we can refer to it later in case we recreate shaders. + // Note: GLSL version is NOT the same as GL version. Leave this to nullptr if unsure. + if (glsl_version == nullptr) + { +#if defined(IMGUI_IMPL_OPENGL_ES2) + glsl_version = "#version 100"; +#elif defined(IMGUI_IMPL_OPENGL_ES3) + glsl_version = "#version 300 es"; +#elif defined(__APPLE__) + glsl_version = "#version 150"; +#else + glsl_version = "#version 130"; +#endif + } + IM_ASSERT((int)strlen(glsl_version) + 2 < IM_ARRAYSIZE(bd->GlslVersionString)); + strcpy(bd->GlslVersionString, glsl_version); + strcat(bd->GlslVersionString, "\n"); + + // Make an arbitrary GL call (we don't actually need the result) + // IF YOU GET A CRASH HERE: it probably means the OpenGL function loader didn't do its job. Let us know! + GLint current_texture; + glGetIntegerv(GL_TEXTURE_BINDING_2D, ¤t_texture); + + // Detect extensions we support + bd->HasClipOrigin = (bd->GlVersion >= 450); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_EXTENSIONS + GLint num_extensions = 0; + glGetIntegerv(GL_NUM_EXTENSIONS, &num_extensions); + for (GLint i = 0; i < num_extensions; i++) + { + const char* extension = (const char*)glGetStringi(GL_EXTENSIONS, i); + if (extension != nullptr && strcmp(extension, "GL_ARB_clip_control") == 0) + bd->HasClipOrigin = true; + } +#endif + + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplOpenGL3_InitPlatformInterface(); + + return true; +} + +void ImGui_ImplOpenGL3_Shutdown() +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplOpenGL3_ShutdownPlatformInterface(); + ImGui_ImplOpenGL3_DestroyDeviceObjects(); + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_RendererHasVtxOffset | ImGuiBackendFlags_RendererHasViewports); + IM_DELETE(bd); +} + +void ImGui_ImplOpenGL3_NewFrame() +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplOpenGL3_Init()?"); + + if (!bd->ShaderHandle) + ImGui_ImplOpenGL3_CreateDeviceObjects(); +} + +static void ImGui_ImplOpenGL3_SetupRenderState(ImDrawData* draw_data, int fb_width, int fb_height, GLuint vertex_array_object) +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + + // Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled, polygon fill + glEnable(GL_BLEND); + glBlendEquation(GL_FUNC_ADD); + glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); + glDisable(GL_CULL_FACE); + glDisable(GL_DEPTH_TEST); + glDisable(GL_STENCIL_TEST); + glEnable(GL_SCISSOR_TEST); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART + if (bd->GlVersion >= 310) + glDisable(GL_PRIMITIVE_RESTART); +#endif +#ifdef IMGUI_IMPL_HAS_POLYGON_MODE + glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); +#endif + + // Support for GL 4.5 rarely used glClipControl(GL_UPPER_LEFT) +#if defined(GL_CLIP_ORIGIN) + bool clip_origin_lower_left = true; + if (bd->HasClipOrigin) + { + GLenum current_clip_origin = 0; glGetIntegerv(GL_CLIP_ORIGIN, (GLint*)¤t_clip_origin); + if (current_clip_origin == GL_UPPER_LEFT) + clip_origin_lower_left = false; + } +#endif + + // Setup viewport, orthographic projection matrix + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. + GL_CALL(glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height)); + float L = draw_data->DisplayPos.x; + float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; + float T = draw_data->DisplayPos.y; + float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; +#if defined(GL_CLIP_ORIGIN) + if (!clip_origin_lower_left) { float tmp = T; T = B; B = tmp; } // Swap top and bottom if origin is upper left +#endif + const float ortho_projection[4][4] = + { + { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, + { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, + { 0.0f, 0.0f, -1.0f, 0.0f }, + { (R+L)/(L-R), (T+B)/(B-T), 0.0f, 1.0f }, + }; + glUseProgram(bd->ShaderHandle); + glUniform1i(bd->AttribLocationTex, 0); + glUniformMatrix4fv(bd->AttribLocationProjMtx, 1, GL_FALSE, &ortho_projection[0][0]); + +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER + if (bd->GlVersion >= 330 || bd->GlProfileIsES3) + glBindSampler(0, 0); // We use combined texture/sampler state. Applications using GL 3.3 and GL ES 3.0 may set that otherwise. +#endif + + (void)vertex_array_object; +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + glBindVertexArray(vertex_array_object); +#endif + + // Bind vertex/index buffers and setup attributes for ImDrawVert + GL_CALL(glBindBuffer(GL_ARRAY_BUFFER, bd->VboHandle)); + GL_CALL(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, bd->ElementsHandle)); + GL_CALL(glEnableVertexAttribArray(bd->AttribLocationVtxPos)); + GL_CALL(glEnableVertexAttribArray(bd->AttribLocationVtxUV)); + GL_CALL(glEnableVertexAttribArray(bd->AttribLocationVtxColor)); + GL_CALL(glVertexAttribPointer(bd->AttribLocationVtxPos, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, pos))); + GL_CALL(glVertexAttribPointer(bd->AttribLocationVtxUV, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, uv))); + GL_CALL(glVertexAttribPointer(bd->AttribLocationVtxColor, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, col))); +} + +// OpenGL3 Render function. +// Note that this implementation is little overcomplicated because we are saving/setting up/restoring every OpenGL state explicitly. +// This is in order to be able to run within an OpenGL engine that doesn't do so. +void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data) +{ + // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) + int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); + int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); + if (fb_width <= 0 || fb_height <= 0) + return; + + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + + // Backup GL state + GLenum last_active_texture; glGetIntegerv(GL_ACTIVE_TEXTURE, (GLint*)&last_active_texture); + glActiveTexture(GL_TEXTURE0); + GLuint last_program; glGetIntegerv(GL_CURRENT_PROGRAM, (GLint*)&last_program); + GLuint last_texture; glGetIntegerv(GL_TEXTURE_BINDING_2D, (GLint*)&last_texture); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER + GLuint last_sampler; if (bd->GlVersion >= 330 || bd->GlProfileIsES3) { glGetIntegerv(GL_SAMPLER_BINDING, (GLint*)&last_sampler); } else { last_sampler = 0; } +#endif + GLuint last_array_buffer; glGetIntegerv(GL_ARRAY_BUFFER_BINDING, (GLint*)&last_array_buffer); +#ifndef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + // This is part of VAO on OpenGL 3.0+ and OpenGL ES 3.0+. + GLint last_element_array_buffer; glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &last_element_array_buffer); + ImGui_ImplOpenGL3_VtxAttribState last_vtx_attrib_state_pos; last_vtx_attrib_state_pos.GetState(bd->AttribLocationVtxPos); + ImGui_ImplOpenGL3_VtxAttribState last_vtx_attrib_state_uv; last_vtx_attrib_state_uv.GetState(bd->AttribLocationVtxUV); + ImGui_ImplOpenGL3_VtxAttribState last_vtx_attrib_state_color; last_vtx_attrib_state_color.GetState(bd->AttribLocationVtxColor); +#endif +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + GLuint last_vertex_array_object; glGetIntegerv(GL_VERTEX_ARRAY_BINDING, (GLint*)&last_vertex_array_object); +#endif +#ifdef IMGUI_IMPL_HAS_POLYGON_MODE + GLint last_polygon_mode[2]; glGetIntegerv(GL_POLYGON_MODE, last_polygon_mode); +#endif + GLint last_viewport[4]; glGetIntegerv(GL_VIEWPORT, last_viewport); + GLint last_scissor_box[4]; glGetIntegerv(GL_SCISSOR_BOX, last_scissor_box); + GLenum last_blend_src_rgb; glGetIntegerv(GL_BLEND_SRC_RGB, (GLint*)&last_blend_src_rgb); + GLenum last_blend_dst_rgb; glGetIntegerv(GL_BLEND_DST_RGB, (GLint*)&last_blend_dst_rgb); + GLenum last_blend_src_alpha; glGetIntegerv(GL_BLEND_SRC_ALPHA, (GLint*)&last_blend_src_alpha); + GLenum last_blend_dst_alpha; glGetIntegerv(GL_BLEND_DST_ALPHA, (GLint*)&last_blend_dst_alpha); + GLenum last_blend_equation_rgb; glGetIntegerv(GL_BLEND_EQUATION_RGB, (GLint*)&last_blend_equation_rgb); + GLenum last_blend_equation_alpha; glGetIntegerv(GL_BLEND_EQUATION_ALPHA, (GLint*)&last_blend_equation_alpha); + GLboolean last_enable_blend = glIsEnabled(GL_BLEND); + GLboolean last_enable_cull_face = glIsEnabled(GL_CULL_FACE); + GLboolean last_enable_depth_test = glIsEnabled(GL_DEPTH_TEST); + GLboolean last_enable_stencil_test = glIsEnabled(GL_STENCIL_TEST); + GLboolean last_enable_scissor_test = glIsEnabled(GL_SCISSOR_TEST); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART + GLboolean last_enable_primitive_restart = (bd->GlVersion >= 310) ? glIsEnabled(GL_PRIMITIVE_RESTART) : GL_FALSE; +#endif + + // Setup desired GL state + // Recreate the VAO every time (this is to easily allow multiple GL contexts to be rendered to. VAO are not shared among GL contexts) + // The renderer would actually work without any VAO bound, but then our VertexAttrib calls would overwrite the default one currently bound. + GLuint vertex_array_object = 0; +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + GL_CALL(glGenVertexArrays(1, &vertex_array_object)); +#endif + ImGui_ImplOpenGL3_SetupRenderState(draw_data, fb_width, fb_height, vertex_array_object); + + // Will project scissor/clipping rectangles into framebuffer space + ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports + ImVec2 clip_scale = draw_data->FramebufferScale; // (1,1) unless using retina display which are often (2,2) + + // Render command lists + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + + // Upload vertex/index buffers + // - OpenGL drivers are in a very sorry state nowadays.... + // During 2021 we attempted to switch from glBufferData() to orphaning+glBufferSubData() following reports + // of leaks on Intel GPU when using multi-viewports on Windows. + // - After this we kept hearing of various display corruptions issues. We started disabling on non-Intel GPU, but issues still got reported on Intel. + // - We are now back to using exclusively glBufferData(). So bd->UseBufferSubData IS ALWAYS FALSE in this code. + // We are keeping the old code path for a while in case people finding new issues may want to test the bd->UseBufferSubData path. + // - See https://github.com/ocornut/imgui/issues/4468 and please report any corruption issues. + const GLsizeiptr vtx_buffer_size = (GLsizeiptr)cmd_list->VtxBuffer.Size * (int)sizeof(ImDrawVert); + const GLsizeiptr idx_buffer_size = (GLsizeiptr)cmd_list->IdxBuffer.Size * (int)sizeof(ImDrawIdx); + if (bd->UseBufferSubData) + { + if (bd->VertexBufferSize < vtx_buffer_size) + { + bd->VertexBufferSize = vtx_buffer_size; + GL_CALL(glBufferData(GL_ARRAY_BUFFER, bd->VertexBufferSize, nullptr, GL_STREAM_DRAW)); + } + if (bd->IndexBufferSize < idx_buffer_size) + { + bd->IndexBufferSize = idx_buffer_size; + GL_CALL(glBufferData(GL_ELEMENT_ARRAY_BUFFER, bd->IndexBufferSize, nullptr, GL_STREAM_DRAW)); + } + GL_CALL(glBufferSubData(GL_ARRAY_BUFFER, 0, vtx_buffer_size, (const GLvoid*)cmd_list->VtxBuffer.Data)); + GL_CALL(glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, 0, idx_buffer_size, (const GLvoid*)cmd_list->IdxBuffer.Data)); + } + else + { + GL_CALL(glBufferData(GL_ARRAY_BUFFER, vtx_buffer_size, (const GLvoid*)cmd_list->VtxBuffer.Data, GL_STREAM_DRAW)); + GL_CALL(glBufferData(GL_ELEMENT_ARRAY_BUFFER, idx_buffer_size, (const GLvoid*)cmd_list->IdxBuffer.Data, GL_STREAM_DRAW)); + } + + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback != nullptr) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplOpenGL3_SetupRenderState(draw_data, fb_width, fb_height, vertex_array_object); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); + ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply scissor/clipping rectangle (Y is inverted in OpenGL) + GL_CALL(glScissor((int)clip_min.x, (int)((float)fb_height - clip_max.y), (int)(clip_max.x - clip_min.x), (int)(clip_max.y - clip_min.y))); + + // Bind texture, Draw + GL_CALL(glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->GetTexID())); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET + if (bd->GlVersion >= 320) + GL_CALL(glDrawElementsBaseVertex(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, (void*)(intptr_t)(pcmd->IdxOffset * sizeof(ImDrawIdx)), (GLint)pcmd->VtxOffset)); + else +#endif + GL_CALL(glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, (void*)(intptr_t)(pcmd->IdxOffset * sizeof(ImDrawIdx)))); + } + } + } + + // Destroy the temporary VAO +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + GL_CALL(glDeleteVertexArrays(1, &vertex_array_object)); +#endif + + // Restore modified GL state + // This "glIsProgram()" check is required because if the program is "pending deletion" at the time of binding backup, it will have been deleted by now and will cause an OpenGL error. See #6220. + if (last_program == 0 || glIsProgram(last_program)) glUseProgram(last_program); + glBindTexture(GL_TEXTURE_2D, last_texture); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER + if (bd->GlVersion >= 330 || bd->GlProfileIsES3) + glBindSampler(0, last_sampler); +#endif + glActiveTexture(last_active_texture); +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + glBindVertexArray(last_vertex_array_object); +#endif + glBindBuffer(GL_ARRAY_BUFFER, last_array_buffer); +#ifndef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, last_element_array_buffer); + last_vtx_attrib_state_pos.SetState(bd->AttribLocationVtxPos); + last_vtx_attrib_state_uv.SetState(bd->AttribLocationVtxUV); + last_vtx_attrib_state_color.SetState(bd->AttribLocationVtxColor); +#endif + glBlendEquationSeparate(last_blend_equation_rgb, last_blend_equation_alpha); + glBlendFuncSeparate(last_blend_src_rgb, last_blend_dst_rgb, last_blend_src_alpha, last_blend_dst_alpha); + if (last_enable_blend) glEnable(GL_BLEND); else glDisable(GL_BLEND); + if (last_enable_cull_face) glEnable(GL_CULL_FACE); else glDisable(GL_CULL_FACE); + if (last_enable_depth_test) glEnable(GL_DEPTH_TEST); else glDisable(GL_DEPTH_TEST); + if (last_enable_stencil_test) glEnable(GL_STENCIL_TEST); else glDisable(GL_STENCIL_TEST); + if (last_enable_scissor_test) glEnable(GL_SCISSOR_TEST); else glDisable(GL_SCISSOR_TEST); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART + if (bd->GlVersion >= 310) { if (last_enable_primitive_restart) glEnable(GL_PRIMITIVE_RESTART); else glDisable(GL_PRIMITIVE_RESTART); } +#endif + +#ifdef IMGUI_IMPL_HAS_POLYGON_MODE + // Desktop OpenGL 3.0 and OpenGL 3.1 had separate polygon draw modes for front-facing and back-facing faces of polygons + if (bd->GlVersion <= 310 || bd->GlProfileIsCompat) + { + glPolygonMode(GL_FRONT, (GLenum)last_polygon_mode[0]); + glPolygonMode(GL_BACK, (GLenum)last_polygon_mode[1]); + } + else + { + glPolygonMode(GL_FRONT_AND_BACK, (GLenum)last_polygon_mode[0]); + } +#endif // IMGUI_IMPL_HAS_POLYGON_MODE + + glViewport(last_viewport[0], last_viewport[1], (GLsizei)last_viewport[2], (GLsizei)last_viewport[3]); + glScissor(last_scissor_box[0], last_scissor_box[1], (GLsizei)last_scissor_box[2], (GLsizei)last_scissor_box[3]); + (void)bd; // Not all compilation paths use this +} + +bool ImGui_ImplOpenGL3_CreateFontsTexture() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + + // Build texture atlas + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // Load as RGBA 32-bit (75% of the memory is wasted, but default font is so small) because it is more likely to be compatible with user's existing shaders. If your ImTextureId represent a higher-level concept than just a GL texture id, consider calling GetTexDataAsAlpha8() instead to save on GPU memory. + + // Upload texture to graphics system + // (Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling) + GLint last_texture; + GL_CALL(glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture)); + GL_CALL(glGenTextures(1, &bd->FontTexture)); + GL_CALL(glBindTexture(GL_TEXTURE_2D, bd->FontTexture)); + GL_CALL(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)); + GL_CALL(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); +#ifdef GL_UNPACK_ROW_LENGTH // Not on WebGL/ES + GL_CALL(glPixelStorei(GL_UNPACK_ROW_LENGTH, 0)); +#endif + GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels)); + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)(intptr_t)bd->FontTexture); + + // Restore state + GL_CALL(glBindTexture(GL_TEXTURE_2D, last_texture)); + + return true; +} + +void ImGui_ImplOpenGL3_DestroyFontsTexture() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + if (bd->FontTexture) + { + glDeleteTextures(1, &bd->FontTexture); + io.Fonts->SetTexID(0); + bd->FontTexture = 0; + } +} + +// If you get an error please report on github. You may try different GL context version or GLSL version. See GL<>GLSL version table at the top of this file. +static bool CheckShader(GLuint handle, const char* desc) +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + GLint status = 0, log_length = 0; + glGetShaderiv(handle, GL_COMPILE_STATUS, &status); + glGetShaderiv(handle, GL_INFO_LOG_LENGTH, &log_length); + if ((GLboolean)status == GL_FALSE) + fprintf(stderr, "ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile %s! With GLSL: %s\n", desc, bd->GlslVersionString); + if (log_length > 1) + { + ImVector buf; + buf.resize((int)(log_length + 1)); + glGetShaderInfoLog(handle, log_length, nullptr, (GLchar*)buf.begin()); + fprintf(stderr, "%s\n", buf.begin()); + } + return (GLboolean)status == GL_TRUE; +} + +// If you get an error please report on GitHub. You may try different GL context version or GLSL version. +static bool CheckProgram(GLuint handle, const char* desc) +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + GLint status = 0, log_length = 0; + glGetProgramiv(handle, GL_LINK_STATUS, &status); + glGetProgramiv(handle, GL_INFO_LOG_LENGTH, &log_length); + if ((GLboolean)status == GL_FALSE) + fprintf(stderr, "ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to link %s! With GLSL %s\n", desc, bd->GlslVersionString); + if (log_length > 1) + { + ImVector buf; + buf.resize((int)(log_length + 1)); + glGetProgramInfoLog(handle, log_length, nullptr, (GLchar*)buf.begin()); + fprintf(stderr, "%s\n", buf.begin()); + } + return (GLboolean)status == GL_TRUE; +} + +bool ImGui_ImplOpenGL3_CreateDeviceObjects() +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + + // Backup GL state + GLint last_texture, last_array_buffer; + glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); + glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &last_array_buffer); +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + GLint last_vertex_array; + glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &last_vertex_array); +#endif + + // Parse GLSL version string + int glsl_version = 130; + sscanf(bd->GlslVersionString, "#version %d", &glsl_version); + + const GLchar* vertex_shader_glsl_120 = + "uniform mat4 ProjMtx;\n" + "attribute vec2 Position;\n" + "attribute vec2 UV;\n" + "attribute vec4 Color;\n" + "varying vec2 Frag_UV;\n" + "varying vec4 Frag_Color;\n" + "void main()\n" + "{\n" + " Frag_UV = UV;\n" + " Frag_Color = Color;\n" + " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" + "}\n"; + + const GLchar* vertex_shader_glsl_130 = + "uniform mat4 ProjMtx;\n" + "in vec2 Position;\n" + "in vec2 UV;\n" + "in vec4 Color;\n" + "out vec2 Frag_UV;\n" + "out vec4 Frag_Color;\n" + "void main()\n" + "{\n" + " Frag_UV = UV;\n" + " Frag_Color = Color;\n" + " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" + "}\n"; + + const GLchar* vertex_shader_glsl_300_es = + "precision highp float;\n" + "layout (location = 0) in vec2 Position;\n" + "layout (location = 1) in vec2 UV;\n" + "layout (location = 2) in vec4 Color;\n" + "uniform mat4 ProjMtx;\n" + "out vec2 Frag_UV;\n" + "out vec4 Frag_Color;\n" + "void main()\n" + "{\n" + " Frag_UV = UV;\n" + " Frag_Color = Color;\n" + " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" + "}\n"; + + const GLchar* vertex_shader_glsl_410_core = + "layout (location = 0) in vec2 Position;\n" + "layout (location = 1) in vec2 UV;\n" + "layout (location = 2) in vec4 Color;\n" + "uniform mat4 ProjMtx;\n" + "out vec2 Frag_UV;\n" + "out vec4 Frag_Color;\n" + "void main()\n" + "{\n" + " Frag_UV = UV;\n" + " Frag_Color = Color;\n" + " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" + "}\n"; + + const GLchar* fragment_shader_glsl_120 = + "#ifdef GL_ES\n" + " precision mediump float;\n" + "#endif\n" + "uniform sampler2D Texture;\n" + "varying vec2 Frag_UV;\n" + "varying vec4 Frag_Color;\n" + "void main()\n" + "{\n" + " gl_FragColor = Frag_Color * texture2D(Texture, Frag_UV.st);\n" + "}\n"; + + const GLchar* fragment_shader_glsl_130 = + "uniform sampler2D Texture;\n" + "in vec2 Frag_UV;\n" + "in vec4 Frag_Color;\n" + "out vec4 Out_Color;\n" + "void main()\n" + "{\n" + " Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n" + "}\n"; + + const GLchar* fragment_shader_glsl_300_es = + "precision mediump float;\n" + "uniform sampler2D Texture;\n" + "in vec2 Frag_UV;\n" + "in vec4 Frag_Color;\n" + "layout (location = 0) out vec4 Out_Color;\n" + "void main()\n" + "{\n" + " Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n" + "}\n"; + + const GLchar* fragment_shader_glsl_410_core = + "in vec2 Frag_UV;\n" + "in vec4 Frag_Color;\n" + "uniform sampler2D Texture;\n" + "layout (location = 0) out vec4 Out_Color;\n" + "void main()\n" + "{\n" + " Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n" + "}\n"; + + // Select shaders matching our GLSL versions + const GLchar* vertex_shader = nullptr; + const GLchar* fragment_shader = nullptr; + if (glsl_version < 130) + { + vertex_shader = vertex_shader_glsl_120; + fragment_shader = fragment_shader_glsl_120; + } + else if (glsl_version >= 410) + { + vertex_shader = vertex_shader_glsl_410_core; + fragment_shader = fragment_shader_glsl_410_core; + } + else if (glsl_version == 300) + { + vertex_shader = vertex_shader_glsl_300_es; + fragment_shader = fragment_shader_glsl_300_es; + } + else + { + vertex_shader = vertex_shader_glsl_130; + fragment_shader = fragment_shader_glsl_130; + } + + // Create shaders + const GLchar* vertex_shader_with_version[2] = { bd->GlslVersionString, vertex_shader }; + GLuint vert_handle = glCreateShader(GL_VERTEX_SHADER); + glShaderSource(vert_handle, 2, vertex_shader_with_version, nullptr); + glCompileShader(vert_handle); + CheckShader(vert_handle, "vertex shader"); + + const GLchar* fragment_shader_with_version[2] = { bd->GlslVersionString, fragment_shader }; + GLuint frag_handle = glCreateShader(GL_FRAGMENT_SHADER); + glShaderSource(frag_handle, 2, fragment_shader_with_version, nullptr); + glCompileShader(frag_handle); + CheckShader(frag_handle, "fragment shader"); + + // Link + bd->ShaderHandle = glCreateProgram(); + glAttachShader(bd->ShaderHandle, vert_handle); + glAttachShader(bd->ShaderHandle, frag_handle); + glLinkProgram(bd->ShaderHandle); + CheckProgram(bd->ShaderHandle, "shader program"); + + glDetachShader(bd->ShaderHandle, vert_handle); + glDetachShader(bd->ShaderHandle, frag_handle); + glDeleteShader(vert_handle); + glDeleteShader(frag_handle); + + bd->AttribLocationTex = glGetUniformLocation(bd->ShaderHandle, "Texture"); + bd->AttribLocationProjMtx = glGetUniformLocation(bd->ShaderHandle, "ProjMtx"); + bd->AttribLocationVtxPos = (GLuint)glGetAttribLocation(bd->ShaderHandle, "Position"); + bd->AttribLocationVtxUV = (GLuint)glGetAttribLocation(bd->ShaderHandle, "UV"); + bd->AttribLocationVtxColor = (GLuint)glGetAttribLocation(bd->ShaderHandle, "Color"); + + // Create buffers + glGenBuffers(1, &bd->VboHandle); + glGenBuffers(1, &bd->ElementsHandle); + + ImGui_ImplOpenGL3_CreateFontsTexture(); + + // Restore modified GL state + glBindTexture(GL_TEXTURE_2D, last_texture); + glBindBuffer(GL_ARRAY_BUFFER, last_array_buffer); +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + glBindVertexArray(last_vertex_array); +#endif + + return true; +} + +void ImGui_ImplOpenGL3_DestroyDeviceObjects() +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + if (bd->VboHandle) { glDeleteBuffers(1, &bd->VboHandle); bd->VboHandle = 0; } + if (bd->ElementsHandle) { glDeleteBuffers(1, &bd->ElementsHandle); bd->ElementsHandle = 0; } + if (bd->ShaderHandle) { glDeleteProgram(bd->ShaderHandle); bd->ShaderHandle = 0; } + ImGui_ImplOpenGL3_DestroyFontsTexture(); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +static void ImGui_ImplOpenGL3_RenderWindow(ImGuiViewport* viewport, void*) +{ + if (!(viewport->Flags & ImGuiViewportFlags_NoRendererClear)) + { + ImVec4 clear_color = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); + glClearColor(clear_color.x, clear_color.y, clear_color.z, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + } + ImGui_ImplOpenGL3_RenderDrawData(viewport->DrawData); +} + +static void ImGui_ImplOpenGL3_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Renderer_RenderWindow = ImGui_ImplOpenGL3_RenderWindow; +} + +static void ImGui_ImplOpenGL3_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl3.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl3.h new file mode 100644 index 0000000..ab779e0 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl3.h @@ -0,0 +1,67 @@ +// dear imgui: Renderer Backend for modern OpenGL with shaders / programmatic pipeline +// - Desktop GL: 2.x 3.x 4.x +// - Embedded GL: ES 2.0 (WebGL 1.0), ES 3.0 (WebGL 2.0) +// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices (Desktop OpenGL only). +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// About WebGL/ES: +// - You need to '#define IMGUI_IMPL_OPENGL_ES2' or '#define IMGUI_IMPL_OPENGL_ES3' to use WebGL or OpenGL ES. +// - This is done automatically on iOS, Android and Emscripten targets. +// - For other targets, the define needs to be visible from the imgui_impl_opengl3.cpp compilation unit. If unsure, define globally or in imconfig.h. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// About GLSL version: +// The 'glsl_version' initialization parameter should be nullptr (default) or a "#version XXX" string. +// On computer platform the GLSL version default to "#version 130". On OpenGL ES 3 platform it defaults to "#version 300 es" +// Only override if your GL version doesn't handle this GLSL version. See GLSL version table at the top of imgui_impl_opengl3.cpp. + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +// Backend API +IMGUI_IMPL_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version = nullptr); +IMGUI_IMPL_API void ImGui_ImplOpenGL3_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplOpenGL3_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data); + +// (Optional) Called by Init/NewFrame/Shutdown +IMGUI_IMPL_API bool ImGui_ImplOpenGL3_CreateFontsTexture(); +IMGUI_IMPL_API void ImGui_ImplOpenGL3_DestroyFontsTexture(); +IMGUI_IMPL_API bool ImGui_ImplOpenGL3_CreateDeviceObjects(); +IMGUI_IMPL_API void ImGui_ImplOpenGL3_DestroyDeviceObjects(); + +// Specific OpenGL ES versions +//#define IMGUI_IMPL_OPENGL_ES2 // Auto-detected on Emscripten +//#define IMGUI_IMPL_OPENGL_ES3 // Auto-detected on iOS/Android + +// You can explicitly select GLES2 or GLES3 API by using one of the '#define IMGUI_IMPL_OPENGL_LOADER_XXX' in imconfig.h or compiler command-line. +#if !defined(IMGUI_IMPL_OPENGL_ES2) \ + && !defined(IMGUI_IMPL_OPENGL_ES3) + +// Try to detect GLES on matching platforms +#if defined(__APPLE__) +#include +#endif +#if (defined(__APPLE__) && (TARGET_OS_IOS || TARGET_OS_TV)) || (defined(__ANDROID__)) +#define IMGUI_IMPL_OPENGL_ES3 // iOS, Android -> GL ES 3, "#version 300 es" +#elif defined(__EMSCRIPTEN__) || defined(__amigaos4__) +#define IMGUI_IMPL_OPENGL_ES2 // Emscripten -> GL ES 2, "#version 100" +#else +// Otherwise imgui_impl_opengl3_loader.h will be used. +#endif + +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl3_loader.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl3_loader.h new file mode 100644 index 0000000..a077751 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_opengl3_loader.h @@ -0,0 +1,809 @@ +//----------------------------------------------------------------------------- +// About imgui_impl_opengl3_loader.h: +// +// We embed our own OpenGL loader to not require user to provide their own or to have to use ours, +// which proved to be endless problems for users. +// Our loader is custom-generated, based on gl3w but automatically filtered to only include +// enums/functions that we use in our imgui_impl_opengl3.cpp source file in order to be small. +// +// YOU SHOULD NOT NEED TO INCLUDE/USE THIS DIRECTLY. THIS IS USED BY imgui_impl_opengl3.cpp ONLY. +// THE REST OF YOUR APP SHOULD USE A DIFFERENT GL LOADER: ANY GL LOADER OF YOUR CHOICE. +// +// IF YOU GET BUILD ERRORS IN THIS FILE (commonly macro redefinitions or function redefinitions): +// IT LIKELY MEANS THAT YOU ARE BUILDING 'imgui_impl_opengl3.cpp' OR INCUDING 'imgui_impl_opengl3_loader.h' +// IN THE SAME COMPILATION UNIT AS ONE OF YOUR FILE WHICH IS USING A THIRD-PARTY OPENGL LOADER. +// (e.g. COULD HAPPEN IF YOU ARE DOING A UNITY/JUMBO BUILD, OR INCLUDING .CPP FILES FROM OTHERS) +// YOU SHOULD NOT BUILD BOTH IN THE SAME COMPILATION UNIT. +// BUT IF YOU REALLY WANT TO, you can '#define IMGUI_IMPL_OPENGL_LOADER_CUSTOM' and imgui_impl_opengl3.cpp +// WILL NOT BE USING OUR LOADER, AND INSTEAD EXPECT ANOTHER/YOUR LOADER TO BE AVAILABLE IN THE COMPILATION UNIT. +// +// Regenerate with: +// python gl3w_gen.py --output ../imgui/backends/imgui_impl_opengl3_loader.h --ref ../imgui/backends/imgui_impl_opengl3.cpp ./extra_symbols.txt +// +// More info: +// https://github.com/dearimgui/gl3w_stripped +// https://github.com/ocornut/imgui/issues/4445 +//----------------------------------------------------------------------------- + +/* + * This file was generated with gl3w_gen.py, part of imgl3w + * (hosted at https://github.com/dearimgui/gl3w_stripped) + * + * This is free and unencumbered software released into the public domain. + * + * Anyone is free to copy, modify, publish, use, compile, sell, or + * distribute this software, either in source code form or as a compiled + * binary, for any purpose, commercial or non-commercial, and by any + * means. + * + * In jurisdictions that recognize copyright laws, the author or authors + * of this software dedicate any and all copyright interest in the + * software to the public domain. We make this dedication for the benefit + * of the public at large and to the detriment of our heirs and + * successors. We intend this dedication to be an overt act of + * relinquishment in perpetuity of all present and future rights to this + * software under copyright law. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#ifndef __gl3w_h_ +#define __gl3w_h_ + +// Adapted from KHR/khrplatform.h to avoid including entire file. +#ifndef __khrplatform_h_ +typedef float khronos_float_t; +typedef signed char khronos_int8_t; +typedef unsigned char khronos_uint8_t; +typedef signed short int khronos_int16_t; +typedef unsigned short int khronos_uint16_t; +#ifdef _WIN64 +typedef signed long long int khronos_intptr_t; +typedef signed long long int khronos_ssize_t; +#else +typedef signed long int khronos_intptr_t; +typedef signed long int khronos_ssize_t; +#endif + +#if defined(_MSC_VER) && !defined(__clang__) +typedef signed __int64 khronos_int64_t; +typedef unsigned __int64 khronos_uint64_t; +#elif (defined(__clang__) || defined(__GNUC__)) && (__cplusplus < 201100) +#include +typedef int64_t khronos_int64_t; +typedef uint64_t khronos_uint64_t; +#else +typedef signed long long khronos_int64_t; +typedef unsigned long long khronos_uint64_t; +#endif +#endif // __khrplatform_h_ + +#ifndef __gl_glcorearb_h_ +#define __gl_glcorearb_h_ 1 +#ifdef __cplusplus +extern "C" { +#endif +/* +** Copyright 2013-2020 The Khronos Group Inc. +** SPDX-License-Identifier: MIT +** +** This header is generated from the Khronos OpenGL / OpenGL ES XML +** API Registry. The current version of the Registry, generator scripts +** used to make the header, and the header can be found at +** https://github.com/KhronosGroup/OpenGL-Registry +*/ +#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif +#include +#endif +#ifndef APIENTRY +#define APIENTRY +#endif +#ifndef APIENTRYP +#define APIENTRYP APIENTRY * +#endif +#ifndef GLAPI +#define GLAPI extern +#endif +/* glcorearb.h is for use with OpenGL core profile implementations. +** It should should be placed in the same directory as gl.h and +** included as . +** +** glcorearb.h includes only APIs in the latest OpenGL core profile +** implementation together with APIs in newer ARB extensions which +** can be supported by the core profile. It does not, and never will +** include functionality removed from the core profile, such as +** fixed-function vertex and fragment processing. +** +** Do not #include both and either of or +** in the same source file. +*/ +/* Generated C header for: + * API: gl + * Profile: core + * Versions considered: .* + * Versions emitted: .* + * Default extensions included: glcore + * Additional extensions included: _nomatch_^ + * Extensions removed: _nomatch_^ + */ +#ifndef GL_VERSION_1_0 +typedef void GLvoid; +typedef unsigned int GLenum; + +typedef khronos_float_t GLfloat; +typedef int GLint; +typedef int GLsizei; +typedef unsigned int GLbitfield; +typedef double GLdouble; +typedef unsigned int GLuint; +typedef unsigned char GLboolean; +typedef khronos_uint8_t GLubyte; +#define GL_COLOR_BUFFER_BIT 0x00004000 +#define GL_FALSE 0 +#define GL_TRUE 1 +#define GL_TRIANGLES 0x0004 +#define GL_ONE 1 +#define GL_SRC_ALPHA 0x0302 +#define GL_ONE_MINUS_SRC_ALPHA 0x0303 +#define GL_FRONT 0x0404 +#define GL_BACK 0x0405 +#define GL_FRONT_AND_BACK 0x0408 +#define GL_POLYGON_MODE 0x0B40 +#define GL_CULL_FACE 0x0B44 +#define GL_DEPTH_TEST 0x0B71 +#define GL_STENCIL_TEST 0x0B90 +#define GL_VIEWPORT 0x0BA2 +#define GL_BLEND 0x0BE2 +#define GL_SCISSOR_BOX 0x0C10 +#define GL_SCISSOR_TEST 0x0C11 +#define GL_UNPACK_ROW_LENGTH 0x0CF2 +#define GL_PACK_ALIGNMENT 0x0D05 +#define GL_TEXTURE_2D 0x0DE1 +#define GL_UNSIGNED_BYTE 0x1401 +#define GL_UNSIGNED_SHORT 0x1403 +#define GL_UNSIGNED_INT 0x1405 +#define GL_FLOAT 0x1406 +#define GL_RGBA 0x1908 +#define GL_FILL 0x1B02 +#define GL_VENDOR 0x1F00 +#define GL_RENDERER 0x1F01 +#define GL_VERSION 0x1F02 +#define GL_EXTENSIONS 0x1F03 +#define GL_LINEAR 0x2601 +#define GL_TEXTURE_MAG_FILTER 0x2800 +#define GL_TEXTURE_MIN_FILTER 0x2801 +typedef void (APIENTRYP PFNGLPOLYGONMODEPROC) (GLenum face, GLenum mode); +typedef void (APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask); +typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (APIENTRYP PFNGLDISABLEPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLENABLEPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLFLUSHPROC) (void); +typedef void (APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); +typedef GLenum (APIENTRYP PFNGLGETERRORPROC) (void); +typedef void (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *data); +typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGPROC) (GLenum name); +typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode); +GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glClear (GLbitfield mask); +GLAPI void APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +GLAPI void APIENTRY glDisable (GLenum cap); +GLAPI void APIENTRY glEnable (GLenum cap); +GLAPI void APIENTRY glFlush (void); +GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param); +GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); +GLAPI GLenum APIENTRY glGetError (void); +GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *data); +GLAPI const GLubyte *APIENTRY glGetString (GLenum name); +GLAPI GLboolean APIENTRY glIsEnabled (GLenum cap); +GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); +#endif +#endif /* GL_VERSION_1_0 */ +#ifndef GL_VERSION_1_1 +typedef khronos_float_t GLclampf; +typedef double GLclampd; +#define GL_TEXTURE_BINDING_2D 0x8069 +typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices); +typedef void (APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture); +typedef void (APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures); +typedef void (APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices); +GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture); +GLAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); +GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures); +#endif +#endif /* GL_VERSION_1_1 */ +#ifndef GL_VERSION_1_3 +#define GL_TEXTURE0 0x84C0 +#define GL_ACTIVE_TEXTURE 0x84E0 +typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glActiveTexture (GLenum texture); +#endif +#endif /* GL_VERSION_1_3 */ +#ifndef GL_VERSION_1_4 +#define GL_BLEND_DST_RGB 0x80C8 +#define GL_BLEND_SRC_RGB 0x80C9 +#define GL_BLEND_DST_ALPHA 0x80CA +#define GL_BLEND_SRC_ALPHA 0x80CB +#define GL_FUNC_ADD 0x8006 +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +GLAPI void APIENTRY glBlendEquation (GLenum mode); +#endif +#endif /* GL_VERSION_1_4 */ +#ifndef GL_VERSION_1_5 +typedef khronos_ssize_t GLsizeiptr; +typedef khronos_intptr_t GLintptr; +#define GL_ARRAY_BUFFER 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER 0x8893 +#define GL_ARRAY_BUFFER_BINDING 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 +#define GL_STREAM_DRAW 0x88E0 +typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); +typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers); +typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers); +typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage); +typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer); +GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers); +GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers); +GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage); +GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data); +#endif +#endif /* GL_VERSION_1_5 */ +#ifndef GL_VERSION_2_0 +typedef char GLchar; +typedef khronos_int16_t GLshort; +typedef khronos_int8_t GLbyte; +typedef khronos_uint16_t GLushort; +#define GL_BLEND_EQUATION_RGB 0x8009 +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 +#define GL_BLEND_EQUATION_ALPHA 0x883D +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A +#define GL_FRAGMENT_SHADER 0x8B30 +#define GL_VERTEX_SHADER 0x8B31 +#define GL_COMPILE_STATUS 0x8B81 +#define GL_LINK_STATUS 0x8B82 +#define GL_INFO_LOG_LENGTH 0x8B84 +#define GL_CURRENT_PROGRAM 0x8B8D +#define GL_UPPER_LEFT 0x8CA2 +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha); +typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader); +typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void); +typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type); +typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader); +typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); +typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha); +GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader); +GLAPI void APIENTRY glCompileShader (GLuint shader); +GLAPI GLuint APIENTRY glCreateProgram (void); +GLAPI GLuint APIENTRY glCreateShader (GLenum type); +GLAPI void APIENTRY glDeleteProgram (GLuint program); +GLAPI void APIENTRY glDeleteShader (GLuint shader); +GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader); +GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index); +GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index); +GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name); +GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name); +GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer); +GLAPI GLboolean APIENTRY glIsProgram (GLuint program); +GLAPI void APIENTRY glLinkProgram (GLuint program); +GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); +GLAPI void APIENTRY glUseProgram (GLuint program); +GLAPI void APIENTRY glUniform1i (GLint location, GLint v0); +GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); +#endif +#endif /* GL_VERSION_2_0 */ +#ifndef GL_VERSION_3_0 +typedef khronos_uint16_t GLhalf; +#define GL_MAJOR_VERSION 0x821B +#define GL_MINOR_VERSION 0x821C +#define GL_NUM_EXTENSIONS 0x821D +#define GL_FRAMEBUFFER_SRGB 0x8DB9 +#define GL_VERTEX_ARRAY_BINDING 0x85B5 +typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data); +typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data); +typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index); +typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array); +typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays); +typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI const GLubyte *APIENTRY glGetStringi (GLenum name, GLuint index); +GLAPI void APIENTRY glBindVertexArray (GLuint array); +GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays); +GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays); +#endif +#endif /* GL_VERSION_3_0 */ +#ifndef GL_VERSION_3_1 +#define GL_VERSION_3_1 1 +#define GL_PRIMITIVE_RESTART 0x8F9D +#endif /* GL_VERSION_3_1 */ +#ifndef GL_VERSION_3_2 +#define GL_VERSION_3_2 1 +typedef struct __GLsync *GLsync; +typedef khronos_uint64_t GLuint64; +typedef khronos_int64_t GLint64; +#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 +#define GL_CONTEXT_PROFILE_MASK 0x9126 +typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); +typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); +#endif +#endif /* GL_VERSION_3_2 */ +#ifndef GL_VERSION_3_3 +#define GL_VERSION_3_3 1 +#define GL_SAMPLER_BINDING 0x8919 +typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler); +#endif +#endif /* GL_VERSION_3_3 */ +#ifndef GL_VERSION_4_1 +typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data); +typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data); +#endif /* GL_VERSION_4_1 */ +#ifndef GL_VERSION_4_3 +typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); +#endif /* GL_VERSION_4_3 */ +#ifndef GL_VERSION_4_5 +#define GL_CLIP_ORIGIN 0x935C +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint *param); +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint64 *param); +#endif /* GL_VERSION_4_5 */ +#ifndef GL_ARB_bindless_texture +typedef khronos_uint64_t GLuint64EXT; +#endif /* GL_ARB_bindless_texture */ +#ifndef GL_ARB_cl_event +struct _cl_context; +struct _cl_event; +#endif /* GL_ARB_cl_event */ +#ifndef GL_ARB_clip_control +#define GL_ARB_clip_control 1 +#endif /* GL_ARB_clip_control */ +#ifndef GL_ARB_debug_output +typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); +#endif /* GL_ARB_debug_output */ +#ifndef GL_EXT_EGL_image_storage +typedef void *GLeglImageOES; +#endif /* GL_EXT_EGL_image_storage */ +#ifndef GL_EXT_direct_state_access +typedef void (APIENTRYP PFNGLGETFLOATI_VEXTPROC) (GLenum pname, GLuint index, GLfloat *params); +typedef void (APIENTRYP PFNGLGETDOUBLEI_VEXTPROC) (GLenum pname, GLuint index, GLdouble *params); +typedef void (APIENTRYP PFNGLGETPOINTERI_VEXTPROC) (GLenum pname, GLuint index, void **params); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, void **param); +#endif /* GL_EXT_direct_state_access */ +#ifndef GL_NV_draw_vulkan_image +typedef void (APIENTRY *GLVULKANPROCNV)(void); +#endif /* GL_NV_draw_vulkan_image */ +#ifndef GL_NV_gpu_shader5 +typedef khronos_int64_t GLint64EXT; +#endif /* GL_NV_gpu_shader5 */ +#ifndef GL_NV_vertex_buffer_unified_memory +typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result); +#endif /* GL_NV_vertex_buffer_unified_memory */ +#ifdef __cplusplus +} +#endif +#endif + +#ifndef GL3W_API +#define GL3W_API +#endif + +#ifndef __gl_h_ +#define __gl_h_ +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#define GL3W_OK 0 +#define GL3W_ERROR_INIT -1 +#define GL3W_ERROR_LIBRARY_OPEN -2 +#define GL3W_ERROR_OPENGL_VERSION -3 + +typedef void (*GL3WglProc)(void); +typedef GL3WglProc (*GL3WGetProcAddressProc)(const char *proc); + +/* gl3w api */ +GL3W_API int imgl3wInit(void); +GL3W_API int imgl3wInit2(GL3WGetProcAddressProc proc); +GL3W_API int imgl3wIsSupported(int major, int minor); +GL3W_API GL3WglProc imgl3wGetProcAddress(const char *proc); + +/* gl3w internal state */ +union ImGL3WProcs { + GL3WglProc ptr[59]; + struct { + PFNGLACTIVETEXTUREPROC ActiveTexture; + PFNGLATTACHSHADERPROC AttachShader; + PFNGLBINDBUFFERPROC BindBuffer; + PFNGLBINDSAMPLERPROC BindSampler; + PFNGLBINDTEXTUREPROC BindTexture; + PFNGLBINDVERTEXARRAYPROC BindVertexArray; + PFNGLBLENDEQUATIONPROC BlendEquation; + PFNGLBLENDEQUATIONSEPARATEPROC BlendEquationSeparate; + PFNGLBLENDFUNCSEPARATEPROC BlendFuncSeparate; + PFNGLBUFFERDATAPROC BufferData; + PFNGLBUFFERSUBDATAPROC BufferSubData; + PFNGLCLEARPROC Clear; + PFNGLCLEARCOLORPROC ClearColor; + PFNGLCOMPILESHADERPROC CompileShader; + PFNGLCREATEPROGRAMPROC CreateProgram; + PFNGLCREATESHADERPROC CreateShader; + PFNGLDELETEBUFFERSPROC DeleteBuffers; + PFNGLDELETEPROGRAMPROC DeleteProgram; + PFNGLDELETESHADERPROC DeleteShader; + PFNGLDELETETEXTURESPROC DeleteTextures; + PFNGLDELETEVERTEXARRAYSPROC DeleteVertexArrays; + PFNGLDETACHSHADERPROC DetachShader; + PFNGLDISABLEPROC Disable; + PFNGLDISABLEVERTEXATTRIBARRAYPROC DisableVertexAttribArray; + PFNGLDRAWELEMENTSPROC DrawElements; + PFNGLDRAWELEMENTSBASEVERTEXPROC DrawElementsBaseVertex; + PFNGLENABLEPROC Enable; + PFNGLENABLEVERTEXATTRIBARRAYPROC EnableVertexAttribArray; + PFNGLFLUSHPROC Flush; + PFNGLGENBUFFERSPROC GenBuffers; + PFNGLGENTEXTURESPROC GenTextures; + PFNGLGENVERTEXARRAYSPROC GenVertexArrays; + PFNGLGETATTRIBLOCATIONPROC GetAttribLocation; + PFNGLGETERRORPROC GetError; + PFNGLGETINTEGERVPROC GetIntegerv; + PFNGLGETPROGRAMINFOLOGPROC GetProgramInfoLog; + PFNGLGETPROGRAMIVPROC GetProgramiv; + PFNGLGETSHADERINFOLOGPROC GetShaderInfoLog; + PFNGLGETSHADERIVPROC GetShaderiv; + PFNGLGETSTRINGPROC GetString; + PFNGLGETSTRINGIPROC GetStringi; + PFNGLGETUNIFORMLOCATIONPROC GetUniformLocation; + PFNGLGETVERTEXATTRIBPOINTERVPROC GetVertexAttribPointerv; + PFNGLGETVERTEXATTRIBIVPROC GetVertexAttribiv; + PFNGLISENABLEDPROC IsEnabled; + PFNGLISPROGRAMPROC IsProgram; + PFNGLLINKPROGRAMPROC LinkProgram; + PFNGLPIXELSTOREIPROC PixelStorei; + PFNGLPOLYGONMODEPROC PolygonMode; + PFNGLREADPIXELSPROC ReadPixels; + PFNGLSCISSORPROC Scissor; + PFNGLSHADERSOURCEPROC ShaderSource; + PFNGLTEXIMAGE2DPROC TexImage2D; + PFNGLTEXPARAMETERIPROC TexParameteri; + PFNGLUNIFORM1IPROC Uniform1i; + PFNGLUNIFORMMATRIX4FVPROC UniformMatrix4fv; + PFNGLUSEPROGRAMPROC UseProgram; + PFNGLVERTEXATTRIBPOINTERPROC VertexAttribPointer; + PFNGLVIEWPORTPROC Viewport; + } gl; +}; + +GL3W_API extern union ImGL3WProcs imgl3wProcs; + +/* OpenGL functions */ +#define glActiveTexture imgl3wProcs.gl.ActiveTexture +#define glAttachShader imgl3wProcs.gl.AttachShader +#define glBindBuffer imgl3wProcs.gl.BindBuffer +#define glBindSampler imgl3wProcs.gl.BindSampler +#define glBindTexture imgl3wProcs.gl.BindTexture +#define glBindVertexArray imgl3wProcs.gl.BindVertexArray +#define glBlendEquation imgl3wProcs.gl.BlendEquation +#define glBlendEquationSeparate imgl3wProcs.gl.BlendEquationSeparate +#define glBlendFuncSeparate imgl3wProcs.gl.BlendFuncSeparate +#define glBufferData imgl3wProcs.gl.BufferData +#define glBufferSubData imgl3wProcs.gl.BufferSubData +#define glClear imgl3wProcs.gl.Clear +#define glClearColor imgl3wProcs.gl.ClearColor +#define glCompileShader imgl3wProcs.gl.CompileShader +#define glCreateProgram imgl3wProcs.gl.CreateProgram +#define glCreateShader imgl3wProcs.gl.CreateShader +#define glDeleteBuffers imgl3wProcs.gl.DeleteBuffers +#define glDeleteProgram imgl3wProcs.gl.DeleteProgram +#define glDeleteShader imgl3wProcs.gl.DeleteShader +#define glDeleteTextures imgl3wProcs.gl.DeleteTextures +#define glDeleteVertexArrays imgl3wProcs.gl.DeleteVertexArrays +#define glDetachShader imgl3wProcs.gl.DetachShader +#define glDisable imgl3wProcs.gl.Disable +#define glDisableVertexAttribArray imgl3wProcs.gl.DisableVertexAttribArray +#define glDrawElements imgl3wProcs.gl.DrawElements +#define glDrawElementsBaseVertex imgl3wProcs.gl.DrawElementsBaseVertex +#define glEnable imgl3wProcs.gl.Enable +#define glEnableVertexAttribArray imgl3wProcs.gl.EnableVertexAttribArray +#define glFlush imgl3wProcs.gl.Flush +#define glGenBuffers imgl3wProcs.gl.GenBuffers +#define glGenTextures imgl3wProcs.gl.GenTextures +#define glGenVertexArrays imgl3wProcs.gl.GenVertexArrays +#define glGetAttribLocation imgl3wProcs.gl.GetAttribLocation +#define glGetError imgl3wProcs.gl.GetError +#define glGetIntegerv imgl3wProcs.gl.GetIntegerv +#define glGetProgramInfoLog imgl3wProcs.gl.GetProgramInfoLog +#define glGetProgramiv imgl3wProcs.gl.GetProgramiv +#define glGetShaderInfoLog imgl3wProcs.gl.GetShaderInfoLog +#define glGetShaderiv imgl3wProcs.gl.GetShaderiv +#define glGetString imgl3wProcs.gl.GetString +#define glGetStringi imgl3wProcs.gl.GetStringi +#define glGetUniformLocation imgl3wProcs.gl.GetUniformLocation +#define glGetVertexAttribPointerv imgl3wProcs.gl.GetVertexAttribPointerv +#define glGetVertexAttribiv imgl3wProcs.gl.GetVertexAttribiv +#define glIsEnabled imgl3wProcs.gl.IsEnabled +#define glIsProgram imgl3wProcs.gl.IsProgram +#define glLinkProgram imgl3wProcs.gl.LinkProgram +#define glPixelStorei imgl3wProcs.gl.PixelStorei +#define glPolygonMode imgl3wProcs.gl.PolygonMode +#define glReadPixels imgl3wProcs.gl.ReadPixels +#define glScissor imgl3wProcs.gl.Scissor +#define glShaderSource imgl3wProcs.gl.ShaderSource +#define glTexImage2D imgl3wProcs.gl.TexImage2D +#define glTexParameteri imgl3wProcs.gl.TexParameteri +#define glUniform1i imgl3wProcs.gl.Uniform1i +#define glUniformMatrix4fv imgl3wProcs.gl.UniformMatrix4fv +#define glUseProgram imgl3wProcs.gl.UseProgram +#define glVertexAttribPointer imgl3wProcs.gl.VertexAttribPointer +#define glViewport imgl3wProcs.gl.Viewport + +#ifdef __cplusplus +} +#endif + +#endif + +#ifdef IMGL3W_IMPL +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + +#if defined(_WIN32) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif +#include + +static HMODULE libgl; +typedef PROC(__stdcall* GL3WglGetProcAddr)(LPCSTR); +static GL3WglGetProcAddr wgl_get_proc_address; + +static int open_libgl(void) +{ + libgl = LoadLibraryA("opengl32.dll"); + if (!libgl) + return GL3W_ERROR_LIBRARY_OPEN; + wgl_get_proc_address = (GL3WglGetProcAddr)GetProcAddress(libgl, "wglGetProcAddress"); + return GL3W_OK; +} + +static void close_libgl(void) { FreeLibrary(libgl); } +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res; + res = (GL3WglProc)wgl_get_proc_address(proc); + if (!res) + res = (GL3WglProc)GetProcAddress(libgl, proc); + return res; +} +#elif defined(__APPLE__) +#include + +static void *libgl; +static int open_libgl(void) +{ + libgl = dlopen("/System/Library/Frameworks/OpenGL.framework/OpenGL", RTLD_LAZY | RTLD_LOCAL); + if (!libgl) + return GL3W_ERROR_LIBRARY_OPEN; + return GL3W_OK; +} + +static void close_libgl(void) { dlclose(libgl); } + +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res; + *(void **)(&res) = dlsym(libgl, proc); + return res; +} +#else +#include + +static void *libgl; +static GL3WglProc (*glx_get_proc_address)(const GLubyte *); + +static int open_libgl(void) +{ + libgl = dlopen("libGL.so.1", RTLD_LAZY | RTLD_LOCAL); + if (!libgl) + return GL3W_ERROR_LIBRARY_OPEN; + *(void **)(&glx_get_proc_address) = dlsym(libgl, "glXGetProcAddressARB"); + return GL3W_OK; +} + +static void close_libgl(void) { dlclose(libgl); } + +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res; + res = glx_get_proc_address((const GLubyte *)proc); + if (!res) + *(void **)(&res) = dlsym(libgl, proc); + return res; +} +#endif + +static struct { int major, minor; } version; + +static int parse_version(void) +{ + if (!glGetIntegerv) + return GL3W_ERROR_INIT; + glGetIntegerv(GL_MAJOR_VERSION, &version.major); + glGetIntegerv(GL_MINOR_VERSION, &version.minor); + if (version.major == 0 && version.minor == 0) + { + // Query GL_VERSION in desktop GL 2.x, the string will start with "." + if (const char* gl_version = (const char*)glGetString(GL_VERSION)) + sscanf(gl_version, "%d.%d", &version.major, &version.minor); + } + if (version.major < 2) + return GL3W_ERROR_OPENGL_VERSION; + return GL3W_OK; +} + +static void load_procs(GL3WGetProcAddressProc proc); + +int imgl3wInit(void) +{ + int res = open_libgl(); + if (res) + return res; + atexit(close_libgl); + return imgl3wInit2(get_proc); +} + +int imgl3wInit2(GL3WGetProcAddressProc proc) +{ + load_procs(proc); + return parse_version(); +} + +int imgl3wIsSupported(int major, int minor) +{ + if (major < 2) + return 0; + if (version.major == major) + return version.minor >= minor; + return version.major >= major; +} + +GL3WglProc imgl3wGetProcAddress(const char *proc) { return get_proc(proc); } + +static const char *proc_names[] = { + "glActiveTexture", + "glAttachShader", + "glBindBuffer", + "glBindSampler", + "glBindTexture", + "glBindVertexArray", + "glBlendEquation", + "glBlendEquationSeparate", + "glBlendFuncSeparate", + "glBufferData", + "glBufferSubData", + "glClear", + "glClearColor", + "glCompileShader", + "glCreateProgram", + "glCreateShader", + "glDeleteBuffers", + "glDeleteProgram", + "glDeleteShader", + "glDeleteTextures", + "glDeleteVertexArrays", + "glDetachShader", + "glDisable", + "glDisableVertexAttribArray", + "glDrawElements", + "glDrawElementsBaseVertex", + "glEnable", + "glEnableVertexAttribArray", + "glFlush", + "glGenBuffers", + "glGenTextures", + "glGenVertexArrays", + "glGetAttribLocation", + "glGetError", + "glGetIntegerv", + "glGetProgramInfoLog", + "glGetProgramiv", + "glGetShaderInfoLog", + "glGetShaderiv", + "glGetString", + "glGetStringi", + "glGetUniformLocation", + "glGetVertexAttribPointerv", + "glGetVertexAttribiv", + "glIsEnabled", + "glIsProgram", + "glLinkProgram", + "glPixelStorei", + "glPolygonMode", + "glReadPixels", + "glScissor", + "glShaderSource", + "glTexImage2D", + "glTexParameteri", + "glUniform1i", + "glUniformMatrix4fv", + "glUseProgram", + "glVertexAttribPointer", + "glViewport", +}; + +GL3W_API union ImGL3WProcs imgl3wProcs; + +static void load_procs(GL3WGetProcAddressProc proc) +{ + size_t i; + for (i = 0; i < ARRAY_SIZE(proc_names); i++) + imgl3wProcs.ptr[i] = proc(proc_names[i]); +} + +#ifdef __cplusplus +} +#endif +#endif diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_osx.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_osx.h new file mode 100644 index 0000000..360317f --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_osx.h @@ -0,0 +1,52 @@ +// dear imgui: Platform Backend for OSX / Cocoa +// This needs to be used along with a Renderer (e.g. OpenGL2, OpenGL3, Vulkan, Metal..) +// - Not well tested. If you want a portable application, prefer using the GLFW or SDL platform Backends on Mac. +// - Requires linking with the GameController framework ("-framework GameController"). + +// Implemented features: +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// [X] Platform: Mouse support. Can discriminate Mouse/Pen. +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy kVK_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: OSX clipboard is supported within core Dear ImGui (no specific code in this backend). +// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [X] Platform: IME support. +// [X] Platform: Multi-viewport / platform windows. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +#ifdef __OBJC__ + +@class NSEvent; +@class NSView; + +IMGUI_IMPL_API bool ImGui_ImplOSX_Init(NSView* _Nonnull view); +IMGUI_IMPL_API void ImGui_ImplOSX_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplOSX_NewFrame(NSView* _Nullable view); + +#endif + +//----------------------------------------------------------------------------- +// C++ API +//----------------------------------------------------------------------------- + +#ifdef IMGUI_IMPL_METAL_CPP_EXTENSIONS +// #include +#ifndef __OBJC__ + +IMGUI_IMPL_API bool ImGui_ImplOSX_Init(void* _Nonnull view); +IMGUI_IMPL_API void ImGui_ImplOSX_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplOSX_NewFrame(void* _Nullable view); + +#endif +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_osx.mm b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_osx.mm new file mode 100644 index 0000000..56de6c1 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_osx.mm @@ -0,0 +1,1120 @@ +// dear imgui: Platform Backend for OSX / Cocoa +// This needs to be used along with a Renderer (e.g. OpenGL2, OpenGL3, Vulkan, Metal..) +// - Not well tested. If you want a portable application, prefer using the GLFW or SDL platform Backends on Mac. +// - Requires linking with the GameController framework ("-framework GameController"). + +// Implemented features: +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// [X] Platform: Mouse support. Can discriminate Mouse/Pen. +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy kVK_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: OSX clipboard is supported within core Dear ImGui (no specific code in this backend). +// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [X] Platform: IME support. +// [X] Platform: Multi-viewport / platform windows. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#import "imgui.h" +#ifndef IMGUI_DISABLE +#import "imgui_impl_osx.h" +#import +#import +#import +#import + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2023-10-05: Inputs: Added support for extra ImGuiKey values: F13 to F20 function keys. Stopped mapping F13 into PrintScreen. +// 2023-04-09: Inputs: Added support for io.AddMouseSourceEvent() to discriminate ImGuiMouseSource_Mouse/ImGuiMouseSource_Pen. +// 2023-02-01: Fixed scroll wheel scaling for devices emitting events with hasPreciseScrollingDeltas==false (e.g. non-Apple mices). +// 2022-11-02: Fixed mouse coordinates before clicking the host window. +// 2022-10-06: Fixed mouse inputs on flipped views. +// 2022-09-26: Inputs: Renamed ImGuiKey_ModXXX introduced in 1.87 to ImGuiMod_XXX (old names still supported). +// 2022-05-03: Inputs: Removed ImGui_ImplOSX_HandleEvent() from backend API in favor of backend automatically handling event capture. +// 2022-04-27: Misc: Store backend data in a per-context struct, allowing to use this backend with multiple contexts. +// 2022-03-22: Inputs: Monitor NSKeyUp events to catch missing keyUp for key when user press Cmd + key +// 2022-02-07: Inputs: Forward keyDown/keyUp events to OS when unused by dear imgui. +// 2022-01-31: Fixed building with old Xcode versions that are missing gamepad features. +// 2022-01-26: Inputs: replaced short-lived io.AddKeyModsEvent() (added two weeks ago) with io.AddKeyEvent() using ImGuiKey_ModXXX flags. Sorry for the confusion. +// 2021-01-20: Inputs: calling new io.AddKeyAnalogEvent() for gamepad support, instead of writing directly to io.NavInputs[]. +// 2022-01-17: Inputs: calling new io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() API (1.87+). +// 2022-01-12: Inputs: Added basic Platform IME support, hooking the io.SetPlatformImeDataFn() function. +// 2022-01-10: Inputs: calling new io.AddKeyEvent(), io.AddKeyModsEvent() + io.SetKeyEventNativeData() API (1.87+). Support for full ImGuiKey range. +// 2021-12-13: *BREAKING CHANGE* Add NSView parameter to ImGui_ImplOSX_Init(). Generally fix keyboard support. Using kVK_* codes for keyboard keys. +// 2021-12-13: Add game controller support. +// 2021-09-21: Use mach_absolute_time as CFAbsoluteTimeGetCurrent can jump backwards. +// 2021-08-17: Calling io.AddFocusEvent() on NSApplicationDidBecomeActiveNotification/NSApplicationDidResignActiveNotification events. +// 2021-06-23: Inputs: Added a fix for shortcuts using CTRL key instead of CMD key. +// 2021-04-19: Inputs: Added a fix for keys remaining stuck in pressed state when CMD-tabbing into different application. +// 2021-01-27: Inputs: Added a fix for mouse position not being reported when mouse buttons other than left one are down. +// 2020-10-28: Inputs: Added a fix for handling keypad-enter key. +// 2020-05-25: Inputs: Added a fix for missing trackpad clicks when done with "soft tap". +// 2019-12-05: Inputs: Added support for ImGuiMouseCursor_NotAllowed mouse cursor. +// 2019-10-11: Inputs: Fix using Backspace key. +// 2019-07-21: Re-added clipboard handlers as they are not enabled by default in core imgui.cpp (reverted 2019-05-18 change). +// 2019-05-28: Inputs: Added mouse cursor shape and visibility support. +// 2019-05-18: Misc: Removed clipboard handlers as they are now supported by core imgui.cpp. +// 2019-05-11: Inputs: Don't filter character values before calling AddInputCharacter() apart from 0xF700..0xFFFF range. +// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. +// 2018-07-07: Initial version. + +#define APPLE_HAS_BUTTON_OPTIONS (__IPHONE_OS_VERSION_MIN_REQUIRED >= 130000 || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500 || __TV_OS_VERSION_MIN_REQUIRED >= 130000) +#define APPLE_HAS_CONTROLLER (__IPHONE_OS_VERSION_MIN_REQUIRED >= 140000 || __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000 || __TV_OS_VERSION_MIN_REQUIRED >= 140000) +#define APPLE_HAS_THUMBSTICKS (__IPHONE_OS_VERSION_MIN_REQUIRED >= 120100 || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101401 || __TV_OS_VERSION_MIN_REQUIRED >= 120100) + +@class ImGuiObserver; +@class KeyEventResponder; + +// Data +struct ImGui_ImplOSX_Data +{ + CFTimeInterval Time; + NSCursor* MouseCursors[ImGuiMouseCursor_COUNT]; + bool MouseCursorHidden; + ImGuiObserver* Observer; + KeyEventResponder* KeyEventResponder; + NSTextInputContext* InputContext; + id Monitor; + NSWindow* Window; + + ImGui_ImplOSX_Data() { memset(this, 0, sizeof(*this)); } +}; + +static ImGui_ImplOSX_Data* ImGui_ImplOSX_CreateBackendData() { return IM_NEW(ImGui_ImplOSX_Data)(); } +static ImGui_ImplOSX_Data* ImGui_ImplOSX_GetBackendData() { return (ImGui_ImplOSX_Data*)ImGui::GetIO().BackendPlatformUserData; } +static void ImGui_ImplOSX_DestroyBackendData() { IM_DELETE(ImGui_ImplOSX_GetBackendData()); } + +static inline CFTimeInterval GetMachAbsoluteTimeInSeconds() { return (CFTimeInterval)(double)(clock_gettime_nsec_np(CLOCK_UPTIME_RAW) / 1e9); } + +// Forward Declarations +static void ImGui_ImplOSX_InitPlatformInterface(); +static void ImGui_ImplOSX_ShutdownPlatformInterface(); +static void ImGui_ImplOSX_UpdateMonitors(); +static void ImGui_ImplOSX_AddTrackingArea(NSView* _Nonnull view); +static bool ImGui_ImplOSX_HandleEvent(NSEvent* event, NSView* view); + +// Undocumented methods for creating cursors. +@interface NSCursor() ++ (id)_windowResizeNorthWestSouthEastCursor; ++ (id)_windowResizeNorthEastSouthWestCursor; ++ (id)_windowResizeNorthSouthCursor; ++ (id)_windowResizeEastWestCursor; +@end + +/** + KeyEventResponder implements the NSTextInputClient protocol as is required by the macOS text input manager. + + The macOS text input manager is invoked by calling the interpretKeyEvents method from the keyDown method. + Keyboard events are then evaluated by the macOS input manager and valid text input is passed back via the + insertText:replacementRange method. + + This is the same approach employed by other cross-platform libraries such as SDL2: + https://github.com/spurious/SDL-mirror/blob/e17aacbd09e65a4fd1e166621e011e581fb017a8/src/video/cocoa/SDL_cocoakeyboard.m#L53 + and GLFW: + https://github.com/glfw/glfw/blob/b55a517ae0c7b5127dffa79a64f5406021bf9076/src/cocoa_window.m#L722-L723 + */ +@interface KeyEventResponder: NSView +@end + +@implementation KeyEventResponder +{ + float _posX; + float _posY; + NSRect _imeRect; +} + +#pragma mark - Public + +- (void)setImePosX:(float)posX imePosY:(float)posY +{ + _posX = posX; + _posY = posY; +} + +- (void)updateImePosWithView:(NSView *)view +{ + NSWindow *window = view.window; + if (!window) + return; + NSRect contentRect = [window contentRectForFrameRect:window.frame]; + NSRect rect = NSMakeRect(_posX, contentRect.size.height - _posY, 0, 0); + _imeRect = [window convertRectToScreen:rect]; +} + +- (void)viewDidMoveToWindow +{ + // Ensure self is a first responder to receive the input events. + [self.window makeFirstResponder:self]; +} + +- (void)keyDown:(NSEvent*)event +{ + if (!ImGui_ImplOSX_HandleEvent(event, self)) + [super keyDown:event]; + + // Call to the macOS input manager system. + [self interpretKeyEvents:@[event]]; +} + +- (void)keyUp:(NSEvent*)event +{ + if (!ImGui_ImplOSX_HandleEvent(event, self)) + [super keyUp:event]; +} + +- (void)insertText:(id)aString replacementRange:(NSRange)replacementRange +{ + ImGuiIO& io = ImGui::GetIO(); + + NSString* characters; + if ([aString isKindOfClass:[NSAttributedString class]]) + characters = [aString string]; + else + characters = (NSString*)aString; + + io.AddInputCharactersUTF8(characters.UTF8String); +} + +- (BOOL)acceptsFirstResponder +{ + return YES; +} + +- (void)doCommandBySelector:(SEL)myselector +{ +} + +- (nullable NSAttributedString*)attributedSubstringForProposedRange:(NSRange)range actualRange:(nullable NSRangePointer)actualRange +{ + return nil; +} + +- (NSUInteger)characterIndexForPoint:(NSPoint)point +{ + return 0; +} + +- (NSRect)firstRectForCharacterRange:(NSRange)range actualRange:(nullable NSRangePointer)actualRange +{ + return _imeRect; +} + +- (BOOL)hasMarkedText +{ + return NO; +} + +- (NSRange)markedRange +{ + return NSMakeRange(NSNotFound, 0); +} + +- (NSRange)selectedRange +{ + return NSMakeRange(NSNotFound, 0); +} + +- (void)setMarkedText:(nonnull id)string selectedRange:(NSRange)selectedRange replacementRange:(NSRange)replacementRange +{ +} + +- (void)unmarkText +{ +} + +- (nonnull NSArray*)validAttributesForMarkedText +{ + return @[]; +} + +@end + +@interface ImGuiObserver : NSObject + +- (void)onApplicationBecomeActive:(NSNotification*)aNotification; +- (void)onApplicationBecomeInactive:(NSNotification*)aNotification; +- (void)displaysDidChange:(NSNotification*)aNotification; + +@end + +@implementation ImGuiObserver + +- (void)onApplicationBecomeActive:(NSNotification*)aNotification +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddFocusEvent(true); +} + +- (void)onApplicationBecomeInactive:(NSNotification*)aNotification +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddFocusEvent(false); +} + +- (void)displaysDidChange:(NSNotification*)aNotification +{ + ImGui_ImplOSX_UpdateMonitors(); +} + +@end + +// Functions +static ImGuiKey ImGui_ImplOSX_KeyCodeToImGuiKey(int key_code) +{ + switch (key_code) + { + case kVK_ANSI_A: return ImGuiKey_A; + case kVK_ANSI_S: return ImGuiKey_S; + case kVK_ANSI_D: return ImGuiKey_D; + case kVK_ANSI_F: return ImGuiKey_F; + case kVK_ANSI_H: return ImGuiKey_H; + case kVK_ANSI_G: return ImGuiKey_G; + case kVK_ANSI_Z: return ImGuiKey_Z; + case kVK_ANSI_X: return ImGuiKey_X; + case kVK_ANSI_C: return ImGuiKey_C; + case kVK_ANSI_V: return ImGuiKey_V; + case kVK_ANSI_B: return ImGuiKey_B; + case kVK_ANSI_Q: return ImGuiKey_Q; + case kVK_ANSI_W: return ImGuiKey_W; + case kVK_ANSI_E: return ImGuiKey_E; + case kVK_ANSI_R: return ImGuiKey_R; + case kVK_ANSI_Y: return ImGuiKey_Y; + case kVK_ANSI_T: return ImGuiKey_T; + case kVK_ANSI_1: return ImGuiKey_1; + case kVK_ANSI_2: return ImGuiKey_2; + case kVK_ANSI_3: return ImGuiKey_3; + case kVK_ANSI_4: return ImGuiKey_4; + case kVK_ANSI_6: return ImGuiKey_6; + case kVK_ANSI_5: return ImGuiKey_5; + case kVK_ANSI_Equal: return ImGuiKey_Equal; + case kVK_ANSI_9: return ImGuiKey_9; + case kVK_ANSI_7: return ImGuiKey_7; + case kVK_ANSI_Minus: return ImGuiKey_Minus; + case kVK_ANSI_8: return ImGuiKey_8; + case kVK_ANSI_0: return ImGuiKey_0; + case kVK_ANSI_RightBracket: return ImGuiKey_RightBracket; + case kVK_ANSI_O: return ImGuiKey_O; + case kVK_ANSI_U: return ImGuiKey_U; + case kVK_ANSI_LeftBracket: return ImGuiKey_LeftBracket; + case kVK_ANSI_I: return ImGuiKey_I; + case kVK_ANSI_P: return ImGuiKey_P; + case kVK_ANSI_L: return ImGuiKey_L; + case kVK_ANSI_J: return ImGuiKey_J; + case kVK_ANSI_Quote: return ImGuiKey_Apostrophe; + case kVK_ANSI_K: return ImGuiKey_K; + case kVK_ANSI_Semicolon: return ImGuiKey_Semicolon; + case kVK_ANSI_Backslash: return ImGuiKey_Backslash; + case kVK_ANSI_Comma: return ImGuiKey_Comma; + case kVK_ANSI_Slash: return ImGuiKey_Slash; + case kVK_ANSI_N: return ImGuiKey_N; + case kVK_ANSI_M: return ImGuiKey_M; + case kVK_ANSI_Period: return ImGuiKey_Period; + case kVK_ANSI_Grave: return ImGuiKey_GraveAccent; + case kVK_ANSI_KeypadDecimal: return ImGuiKey_KeypadDecimal; + case kVK_ANSI_KeypadMultiply: return ImGuiKey_KeypadMultiply; + case kVK_ANSI_KeypadPlus: return ImGuiKey_KeypadAdd; + case kVK_ANSI_KeypadClear: return ImGuiKey_NumLock; + case kVK_ANSI_KeypadDivide: return ImGuiKey_KeypadDivide; + case kVK_ANSI_KeypadEnter: return ImGuiKey_KeypadEnter; + case kVK_ANSI_KeypadMinus: return ImGuiKey_KeypadSubtract; + case kVK_ANSI_KeypadEquals: return ImGuiKey_KeypadEqual; + case kVK_ANSI_Keypad0: return ImGuiKey_Keypad0; + case kVK_ANSI_Keypad1: return ImGuiKey_Keypad1; + case kVK_ANSI_Keypad2: return ImGuiKey_Keypad2; + case kVK_ANSI_Keypad3: return ImGuiKey_Keypad3; + case kVK_ANSI_Keypad4: return ImGuiKey_Keypad4; + case kVK_ANSI_Keypad5: return ImGuiKey_Keypad5; + case kVK_ANSI_Keypad6: return ImGuiKey_Keypad6; + case kVK_ANSI_Keypad7: return ImGuiKey_Keypad7; + case kVK_ANSI_Keypad8: return ImGuiKey_Keypad8; + case kVK_ANSI_Keypad9: return ImGuiKey_Keypad9; + case kVK_Return: return ImGuiKey_Enter; + case kVK_Tab: return ImGuiKey_Tab; + case kVK_Space: return ImGuiKey_Space; + case kVK_Delete: return ImGuiKey_Backspace; + case kVK_Escape: return ImGuiKey_Escape; + case kVK_CapsLock: return ImGuiKey_CapsLock; + case kVK_Control: return ImGuiKey_LeftCtrl; + case kVK_Shift: return ImGuiKey_LeftShift; + case kVK_Option: return ImGuiKey_LeftAlt; + case kVK_Command: return ImGuiKey_LeftSuper; + case kVK_RightControl: return ImGuiKey_RightCtrl; + case kVK_RightShift: return ImGuiKey_RightShift; + case kVK_RightOption: return ImGuiKey_RightAlt; + case kVK_RightCommand: return ImGuiKey_RightSuper; +// case kVK_Function: return ImGuiKey_; +// case kVK_VolumeUp: return ImGuiKey_; +// case kVK_VolumeDown: return ImGuiKey_; +// case kVK_Mute: return ImGuiKey_; + case kVK_F1: return ImGuiKey_F1; + case kVK_F2: return ImGuiKey_F2; + case kVK_F3: return ImGuiKey_F3; + case kVK_F4: return ImGuiKey_F4; + case kVK_F5: return ImGuiKey_F5; + case kVK_F6: return ImGuiKey_F6; + case kVK_F7: return ImGuiKey_F7; + case kVK_F8: return ImGuiKey_F8; + case kVK_F9: return ImGuiKey_F9; + case kVK_F10: return ImGuiKey_F10; + case kVK_F11: return ImGuiKey_F11; + case kVK_F12: return ImGuiKey_F12; + case kVK_F13: return ImGuiKey_F13; + case kVK_F14: return ImGuiKey_F14; + case kVK_F15: return ImGuiKey_F15; + case kVK_F16: return ImGuiKey_F16; + case kVK_F17: return ImGuiKey_F17; + case kVK_F18: return ImGuiKey_F18; + case kVK_F19: return ImGuiKey_F19; + case kVK_F20: return ImGuiKey_F20; + case 0x6E: return ImGuiKey_Menu; + case kVK_Help: return ImGuiKey_Insert; + case kVK_Home: return ImGuiKey_Home; + case kVK_PageUp: return ImGuiKey_PageUp; + case kVK_ForwardDelete: return ImGuiKey_Delete; + case kVK_End: return ImGuiKey_End; + case kVK_PageDown: return ImGuiKey_PageDown; + case kVK_LeftArrow: return ImGuiKey_LeftArrow; + case kVK_RightArrow: return ImGuiKey_RightArrow; + case kVK_DownArrow: return ImGuiKey_DownArrow; + case kVK_UpArrow: return ImGuiKey_UpArrow; + default: return ImGuiKey_None; + } +} + +#ifdef IMGUI_IMPL_METAL_CPP_EXTENSIONS + +IMGUI_IMPL_API bool ImGui_ImplOSX_Init(void* _Nonnull view) { + return ImGui_ImplOSX_Init((__bridge NSView*)(view)); +} + +IMGUI_IMPL_API void ImGui_ImplOSX_NewFrame(void* _Nullable view) { + return ImGui_ImplOSX_NewFrame((__bridge NSView*)(view)); +} + +#endif + + +bool ImGui_ImplOSX_Init(NSView* view) +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_CreateBackendData(); + io.BackendPlatformUserData = (void*)bd; + + // Setup backend capabilities flags + io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) + //io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used) + io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports; // We can create multi-viewports on the Platform side (optional) + //io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport; // We can call io.AddMouseViewportEvent() with correct data (optional) + io.BackendPlatformName = "imgui_impl_osx"; + + bd->Observer = [ImGuiObserver new]; + bd->Window = view.window ?: NSApp.orderedWindows.firstObject; + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + main_viewport->PlatformHandle = main_viewport->PlatformHandleRaw = (__bridge_retained void*)bd->Window; + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplOSX_InitPlatformInterface(); + + // Load cursors. Some of them are undocumented. + bd->MouseCursorHidden = false; + bd->MouseCursors[ImGuiMouseCursor_Arrow] = [NSCursor arrowCursor]; + bd->MouseCursors[ImGuiMouseCursor_TextInput] = [NSCursor IBeamCursor]; + bd->MouseCursors[ImGuiMouseCursor_ResizeAll] = [NSCursor closedHandCursor]; + bd->MouseCursors[ImGuiMouseCursor_Hand] = [NSCursor pointingHandCursor]; + bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = [NSCursor operationNotAllowedCursor]; + bd->MouseCursors[ImGuiMouseCursor_ResizeNS] = [NSCursor respondsToSelector:@selector(_windowResizeNorthSouthCursor)] ? [NSCursor _windowResizeNorthSouthCursor] : [NSCursor resizeUpDownCursor]; + bd->MouseCursors[ImGuiMouseCursor_ResizeEW] = [NSCursor respondsToSelector:@selector(_windowResizeEastWestCursor)] ? [NSCursor _windowResizeEastWestCursor] : [NSCursor resizeLeftRightCursor]; + bd->MouseCursors[ImGuiMouseCursor_ResizeNESW] = [NSCursor respondsToSelector:@selector(_windowResizeNorthEastSouthWestCursor)] ? [NSCursor _windowResizeNorthEastSouthWestCursor] : [NSCursor closedHandCursor]; + bd->MouseCursors[ImGuiMouseCursor_ResizeNWSE] = [NSCursor respondsToSelector:@selector(_windowResizeNorthWestSouthEastCursor)] ? [NSCursor _windowResizeNorthWestSouthEastCursor] : [NSCursor closedHandCursor]; + + // Note that imgui.cpp also include default OSX clipboard handlers which can be enabled + // by adding '#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS' in imconfig.h and adding '-framework ApplicationServices' to your linker command-line. + // Since we are already in ObjC land here, it is easy for us to add a clipboard handler using the NSPasteboard api. + io.SetClipboardTextFn = [](void*, const char* str) -> void + { + NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; + [pasteboard declareTypes:[NSArray arrayWithObject:NSPasteboardTypeString] owner:nil]; + [pasteboard setString:[NSString stringWithUTF8String:str] forType:NSPasteboardTypeString]; + }; + + io.GetClipboardTextFn = [](void*) -> const char* + { + NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; + NSString* available = [pasteboard availableTypeFromArray: [NSArray arrayWithObject:NSPasteboardTypeString]]; + if (![available isEqualToString:NSPasteboardTypeString]) + return nullptr; + + NSString* string = [pasteboard stringForType:NSPasteboardTypeString]; + if (string == nil) + return nullptr; + + const char* string_c = (const char*)[string UTF8String]; + size_t string_len = strlen(string_c); + static ImVector s_clipboard; + s_clipboard.resize((int)string_len + 1); + strcpy(s_clipboard.Data, string_c); + return s_clipboard.Data; + }; + + [[NSNotificationCenter defaultCenter] addObserver:bd->Observer + selector:@selector(onApplicationBecomeActive:) + name:NSApplicationDidBecomeActiveNotification + object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:bd->Observer + selector:@selector(onApplicationBecomeInactive:) + name:NSApplicationDidResignActiveNotification + object:nil]; + + // Add the NSTextInputClient to the view hierarchy, + // to receive keyboard events and translate them to input text. + bd->KeyEventResponder = [[KeyEventResponder alloc] initWithFrame:NSZeroRect]; + bd->InputContext = [[NSTextInputContext alloc] initWithClient:bd->KeyEventResponder]; + [view addSubview:bd->KeyEventResponder]; + ImGui_ImplOSX_AddTrackingArea(view); + + io.SetPlatformImeDataFn = [](ImGuiViewport* viewport, ImGuiPlatformImeData* data) -> void + { + ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData(); + if (data->WantVisible) + { + [bd->InputContext activate]; + } + else + { + [bd->InputContext discardMarkedText]; + [bd->InputContext invalidateCharacterCoordinates]; + [bd->InputContext deactivate]; + } + [bd->KeyEventResponder setImePosX:data->InputPos.x imePosY:data->InputPos.y + data->InputLineHeight]; + }; + + return true; +} + +void ImGui_ImplOSX_Shutdown() +{ + ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData(); + IM_ASSERT(bd != nullptr && "No platform backend to shutdown, or already shutdown?"); + + bd->Observer = nullptr; + if (bd->Monitor != nullptr) + { + [NSEvent removeMonitor:bd->Monitor]; + bd->Monitor = nullptr; + } + + ImGui_ImplOSX_ShutdownPlatformInterface(); + ImGui_ImplOSX_DestroyBackendData(); + ImGuiIO& io = ImGui::GetIO(); + io.BackendPlatformName = nullptr; + io.BackendPlatformUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_HasMouseCursors | ImGuiBackendFlags_HasGamepad | ImGuiBackendFlags_PlatformHasViewports); +} + +static void ImGui_ImplOSX_UpdateMouseCursor() +{ + ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) + return; + + ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); + if (io.MouseDrawCursor || imgui_cursor == ImGuiMouseCursor_None) + { + // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor + if (!bd->MouseCursorHidden) + { + bd->MouseCursorHidden = true; + [NSCursor hide]; + } + } + else + { + NSCursor* desired = bd->MouseCursors[imgui_cursor] ?: bd->MouseCursors[ImGuiMouseCursor_Arrow]; + // -[NSCursor set] generates measureable overhead if called unconditionally. + if (desired != NSCursor.currentCursor) + { + [desired set]; + } + if (bd->MouseCursorHidden) + { + bd->MouseCursorHidden = false; + [NSCursor unhide]; + } + } +} + +static void ImGui_ImplOSX_UpdateGamepads() +{ + ImGuiIO& io = ImGui::GetIO(); + memset(io.NavInputs, 0, sizeof(io.NavInputs)); + if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) // FIXME: Technically feeding gamepad shouldn't depend on this now that they are regular inputs. + return; + +#if APPLE_HAS_CONTROLLER + GCController* controller = GCController.current; +#else + GCController* controller = GCController.controllers.firstObject; +#endif + if (controller == nil || controller.extendedGamepad == nil) + { + io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; + return; + } + + GCExtendedGamepad* gp = controller.extendedGamepad; + + // Update gamepad inputs + #define IM_SATURATE(V) (V < 0.0f ? 0.0f : V > 1.0f ? 1.0f : V) + #define MAP_BUTTON(KEY_NO, BUTTON_NAME) { io.AddKeyEvent(KEY_NO, gp.BUTTON_NAME.isPressed); } + #define MAP_ANALOG(KEY_NO, AXIS_NAME, V0, V1) { float vn = (float)(gp.AXIS_NAME.value - V0) / (float)(V1 - V0); vn = IM_SATURATE(vn); io.AddKeyAnalogEvent(KEY_NO, vn > 0.1f, vn); } + const float thumb_dead_zone = 0.0f; + +#if APPLE_HAS_BUTTON_OPTIONS + MAP_BUTTON(ImGuiKey_GamepadBack, buttonOptions); +#endif + MAP_BUTTON(ImGuiKey_GamepadFaceLeft, buttonX); // Xbox X, PS Square + MAP_BUTTON(ImGuiKey_GamepadFaceRight, buttonB); // Xbox B, PS Circle + MAP_BUTTON(ImGuiKey_GamepadFaceUp, buttonY); // Xbox Y, PS Triangle + MAP_BUTTON(ImGuiKey_GamepadFaceDown, buttonA); // Xbox A, PS Cross + MAP_BUTTON(ImGuiKey_GamepadDpadLeft, dpad.left); + MAP_BUTTON(ImGuiKey_GamepadDpadRight, dpad.right); + MAP_BUTTON(ImGuiKey_GamepadDpadUp, dpad.up); + MAP_BUTTON(ImGuiKey_GamepadDpadDown, dpad.down); + MAP_ANALOG(ImGuiKey_GamepadL1, leftShoulder, 0.0f, 1.0f); + MAP_ANALOG(ImGuiKey_GamepadR1, rightShoulder, 0.0f, 1.0f); + MAP_ANALOG(ImGuiKey_GamepadL2, leftTrigger, 0.0f, 1.0f); + MAP_ANALOG(ImGuiKey_GamepadR2, rightTrigger, 0.0f, 1.0f); +#if APPLE_HAS_THUMBSTICKS + MAP_BUTTON(ImGuiKey_GamepadL3, leftThumbstickButton); + MAP_BUTTON(ImGuiKey_GamepadR3, rightThumbstickButton); +#endif + MAP_ANALOG(ImGuiKey_GamepadLStickLeft, leftThumbstick.xAxis, -thumb_dead_zone, -1.0f); + MAP_ANALOG(ImGuiKey_GamepadLStickRight, leftThumbstick.xAxis, +thumb_dead_zone, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadLStickUp, leftThumbstick.yAxis, +thumb_dead_zone, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadLStickDown, leftThumbstick.yAxis, -thumb_dead_zone, -1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickLeft, rightThumbstick.xAxis, -thumb_dead_zone, -1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickRight, rightThumbstick.xAxis, +thumb_dead_zone, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickUp, rightThumbstick.yAxis, +thumb_dead_zone, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickDown, rightThumbstick.yAxis, -thumb_dead_zone, -1.0f); + #undef MAP_BUTTON + #undef MAP_ANALOG + + io.BackendFlags |= ImGuiBackendFlags_HasGamepad; +} + +static void ImGui_ImplOSX_UpdateImePosWithView(NSView* view) +{ + ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + if (io.WantTextInput) + [bd->KeyEventResponder updateImePosWithView:view]; +} + +void ImGui_ImplOSX_NewFrame(NSView* view) +{ + ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + + // Setup display size + if (view) + { + const float dpi = (float)[view.window backingScaleFactor]; + io.DisplaySize = ImVec2((float)view.bounds.size.width, (float)view.bounds.size.height); + io.DisplayFramebufferScale = ImVec2(dpi, dpi); + } + + // Setup time step + if (bd->Time == 0.0) + bd->Time = GetMachAbsoluteTimeInSeconds(); + + double current_time = GetMachAbsoluteTimeInSeconds(); + io.DeltaTime = (float)(current_time - bd->Time); + bd->Time = current_time; + + ImGui_ImplOSX_UpdateMouseCursor(); + ImGui_ImplOSX_UpdateGamepads(); + ImGui_ImplOSX_UpdateImePosWithView(view); +} + +// Must only be called for a mouse event, otherwise an exception occurs +// (Note that NSEventTypeScrollWheel is considered "other input". Oddly enough an exception does not occur with it, but the value will sometimes be wrong!) +static ImGuiMouseSource GetMouseSource(NSEvent* event) +{ + switch (event.subtype) + { + case NSEventSubtypeTabletPoint: + return ImGuiMouseSource_Pen; + // macOS considers input from relative touch devices (like the trackpad or Apple Magic Mouse) to be touch input. + // This doesn't really make sense for Dear ImGui, which expects absolute touch devices only. + // There does not seem to be a simple way to disambiguate things here so we consider NSEventSubtypeTouch events to always come from mice. + // See https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/EventOverview/HandlingTouchEvents/HandlingTouchEvents.html#//apple_ref/doc/uid/10000060i-CH13-SW24 + //case NSEventSubtypeTouch: + // return ImGuiMouseSource_TouchScreen; + case NSEventSubtypeMouseEvent: + default: + return ImGuiMouseSource_Mouse; + } +} + +static bool ImGui_ImplOSX_HandleEvent(NSEvent* event, NSView* view) +{ + ImGuiIO& io = ImGui::GetIO(); + + if (event.type == NSEventTypeLeftMouseDown || event.type == NSEventTypeRightMouseDown || event.type == NSEventTypeOtherMouseDown) + { + int button = (int)[event buttonNumber]; + if (button >= 0 && button < ImGuiMouseButton_COUNT) + { + io.AddMouseSourceEvent(GetMouseSource(event)); + io.AddMouseButtonEvent(button, true); + } + return io.WantCaptureMouse; + } + + if (event.type == NSEventTypeLeftMouseUp || event.type == NSEventTypeRightMouseUp || event.type == NSEventTypeOtherMouseUp) + { + int button = (int)[event buttonNumber]; + if (button >= 0 && button < ImGuiMouseButton_COUNT) + { + io.AddMouseSourceEvent(GetMouseSource(event)); + io.AddMouseButtonEvent(button, false); + } + return io.WantCaptureMouse; + } + + if (event.type == NSEventTypeMouseMoved || event.type == NSEventTypeLeftMouseDragged || event.type == NSEventTypeRightMouseDragged || event.type == NSEventTypeOtherMouseDragged) + { + NSPoint mousePoint; + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + mousePoint = NSEvent.mouseLocation; + mousePoint.y = CGDisplayPixelsHigh(kCGDirectMainDisplay) - mousePoint.y; // Normalize y coordinate to top-left of main display. + } + else + { + mousePoint = event.locationInWindow; + if (event.window == nil) + mousePoint = [[view window] convertPointFromScreen:mousePoint]; + mousePoint = [view convertPoint:mousePoint fromView:nil]; // Convert to local coordinates of view + if ([view isFlipped]) + mousePoint = NSMakePoint(mousePoint.x, mousePoint.y); + else + mousePoint = NSMakePoint(mousePoint.x, view.bounds.size.height - mousePoint.y); + } + io.AddMouseSourceEvent(GetMouseSource(event)); + io.AddMousePosEvent((float)mousePoint.x, (float)mousePoint.y); + return io.WantCaptureMouse; + } + + if (event.type == NSEventTypeScrollWheel) + { + // Ignore canceled events. + // + // From macOS 12.1, scrolling with two fingers and then decelerating + // by tapping two fingers results in two events appearing: + // + // 1. A scroll wheel NSEvent, with a phase == NSEventPhaseMayBegin, when the user taps + // two fingers to decelerate or stop the scroll events. + // + // 2. A scroll wheel NSEvent, with a phase == NSEventPhaseCancelled, when the user releases the + // two-finger tap. It is this event that sometimes contains large values for scrollingDeltaX and + // scrollingDeltaY. When these are added to the current x and y positions of the scrolling view, + // it appears to jump up or down. It can be observed in Preview, various JetBrains IDEs and here. + if (event.phase == NSEventPhaseCancelled) + return false; + + double wheel_dx = 0.0; + double wheel_dy = 0.0; + + #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 + if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) + { + wheel_dx = [event scrollingDeltaX]; + wheel_dy = [event scrollingDeltaY]; + if ([event hasPreciseScrollingDeltas]) + { + wheel_dx *= 0.01; + wheel_dy *= 0.01; + } + } + else + #endif // MAC_OS_X_VERSION_MAX_ALLOWED + { + wheel_dx = [event deltaX] * 0.1; + wheel_dy = [event deltaY] * 0.1; + } + if (wheel_dx != 0.0 || wheel_dy != 0.0) + io.AddMouseWheelEvent((float)wheel_dx, (float)wheel_dy); + + return io.WantCaptureMouse; + } + + if (event.type == NSEventTypeKeyDown || event.type == NSEventTypeKeyUp) + { + if ([event isARepeat]) + return io.WantCaptureKeyboard; + + int key_code = (int)[event keyCode]; + ImGuiKey key = ImGui_ImplOSX_KeyCodeToImGuiKey(key_code); + io.AddKeyEvent(key, event.type == NSEventTypeKeyDown); + io.SetKeyEventNativeData(key, key_code, -1); // To support legacy indexing (<1.87 user code) + + return io.WantCaptureKeyboard; + } + + if (event.type == NSEventTypeFlagsChanged) + { + unsigned short key_code = [event keyCode]; + NSEventModifierFlags modifier_flags = [event modifierFlags]; + + io.AddKeyEvent(ImGuiMod_Shift, (modifier_flags & NSEventModifierFlagShift) != 0); + io.AddKeyEvent(ImGuiMod_Ctrl, (modifier_flags & NSEventModifierFlagControl) != 0); + io.AddKeyEvent(ImGuiMod_Alt, (modifier_flags & NSEventModifierFlagOption) != 0); + io.AddKeyEvent(ImGuiMod_Super, (modifier_flags & NSEventModifierFlagCommand) != 0); + + ImGuiKey key = ImGui_ImplOSX_KeyCodeToImGuiKey(key_code); + if (key != ImGuiKey_None) + { + // macOS does not generate down/up event for modifiers. We're trying + // to use hardware dependent masks to extract that information. + // 'imgui_mask' is left as a fallback. + NSEventModifierFlags mask = 0; + switch (key) + { + case ImGuiKey_LeftCtrl: mask = 0x0001; break; + case ImGuiKey_RightCtrl: mask = 0x2000; break; + case ImGuiKey_LeftShift: mask = 0x0002; break; + case ImGuiKey_RightShift: mask = 0x0004; break; + case ImGuiKey_LeftSuper: mask = 0x0008; break; + case ImGuiKey_RightSuper: mask = 0x0010; break; + case ImGuiKey_LeftAlt: mask = 0x0020; break; + case ImGuiKey_RightAlt: mask = 0x0040; break; + default: + return io.WantCaptureKeyboard; + } + + NSEventModifierFlags modifier_flags = [event modifierFlags]; + io.AddKeyEvent(key, (modifier_flags & mask) != 0); + io.SetKeyEventNativeData(key, key_code, -1); // To support legacy indexing (<1.87 user code) + } + + return io.WantCaptureKeyboard; + } + + return false; +} + +static void ImGui_ImplOSX_AddTrackingArea(NSView* _Nonnull view) +{ + // If we want to receive key events, we either need to be in the responder chain of the key view, + // or else we can install a local monitor. The consequence of this heavy-handed approach is that + // we receive events for all controls, not just Dear ImGui widgets. If we had native controls in our + // window, we'd want to be much more careful than just ingesting the complete event stream. + // To match the behavior of other backends, we pass every event down to the OS. + ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData(); + if (bd->Monitor) + return; + NSEventMask eventMask = 0; + eventMask |= NSEventMaskMouseMoved | NSEventMaskScrollWheel; + eventMask |= NSEventMaskLeftMouseDown | NSEventMaskLeftMouseUp | NSEventMaskLeftMouseDragged; + eventMask |= NSEventMaskRightMouseDown | NSEventMaskRightMouseUp | NSEventMaskRightMouseDragged; + eventMask |= NSEventMaskOtherMouseDown | NSEventMaskOtherMouseUp | NSEventMaskOtherMouseDragged; + eventMask |= NSEventMaskKeyDown | NSEventMaskKeyUp | NSEventMaskFlagsChanged; + bd->Monitor = [NSEvent addLocalMonitorForEventsMatchingMask:eventMask + handler:^NSEvent* _Nullable(NSEvent* event) + { + ImGui_ImplOSX_HandleEvent(event, view); + return event; + }]; +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the back-end to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +struct ImGuiViewportDataOSX +{ + NSWindow* Window; + bool WindowOwned; + + ImGuiViewportDataOSX() { WindowOwned = false; } + ~ImGuiViewportDataOSX() { IM_ASSERT(Window == nil); } +}; + +@interface ImGui_ImplOSX_Window: NSWindow +@end + +@implementation ImGui_ImplOSX_Window + +- (BOOL)canBecomeKeyWindow +{ + return YES; +} + +@end + +static void ConvertNSRect(NSScreen* screen, NSRect* r) +{ + r->origin.y = screen.frame.size.height - r->origin.y - r->size.height; +} + +static void ImGui_ImplOSX_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData(); + ImGuiViewportDataOSX* data = IM_NEW(ImGuiViewportDataOSX)(); + viewport->PlatformUserData = data; + + NSScreen* screen = bd->Window.screen; + NSRect rect = NSMakeRect(viewport->Pos.x, viewport->Pos.y, viewport->Size.x, viewport->Size.y); + ConvertNSRect(screen, &rect); + + NSWindowStyleMask styleMask = 0; + if (viewport->Flags & ImGuiViewportFlags_NoDecoration) + styleMask |= NSWindowStyleMaskBorderless; + else + styleMask |= NSWindowStyleMaskTitled | NSWindowStyleMaskResizable | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable; + + NSWindow* window = [[ImGui_ImplOSX_Window alloc] initWithContentRect:rect + styleMask:styleMask + backing:NSBackingStoreBuffered + defer:YES + screen:screen]; + if (viewport->Flags & ImGuiViewportFlags_TopMost) + [window setLevel:NSFloatingWindowLevel]; + + window.title = @"Untitled"; + window.opaque = YES; + + KeyEventResponder* view = [[KeyEventResponder alloc] initWithFrame:rect]; + if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) + [view setWantsBestResolutionOpenGLSurface:YES]; + + window.contentView = view; + + data->Window = window; + data->WindowOwned = true; + viewport->PlatformRequestResize = false; + viewport->PlatformHandle = viewport->PlatformHandleRaw = (__bridge_retained void*)window; +} + +static void ImGui_ImplOSX_DestroyWindow(ImGuiViewport* viewport) +{ + NSWindow* window = (__bridge_transfer NSWindow*)viewport->PlatformHandleRaw; + window = nil; + + if (ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData) + { + NSWindow* window = data->Window; + if (window != nil && data->WindowOwned) + { + window.contentView = nil; + window.contentViewController = nil; + [window orderOut:nil]; + } + data->Window = nil; + IM_DELETE(data); + } + viewport->PlatformUserData = viewport->PlatformHandle = viewport->PlatformHandleRaw = nullptr; +} + +static void ImGui_ImplOSX_ShowWindow(ImGuiViewport* viewport) +{ + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData; + IM_ASSERT(data->Window != 0); + + if (viewport->Flags & ImGuiViewportFlags_NoFocusOnAppearing) + [data->Window orderFront:nil]; + else + [data->Window makeKeyAndOrderFront:nil]; + + [data->Window setIsVisible:YES]; +} + +static ImVec2 ImGui_ImplOSX_GetWindowPos(ImGuiViewport* viewport) +{ + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData; + IM_ASSERT(data->Window != 0); + + NSWindow* window = data->Window; + NSScreen* screen = window.screen; + NSSize size = screen.frame.size; + NSRect frame = window.frame; + NSRect rect = window.contentLayoutRect; + return ImVec2(frame.origin.x, size.height - frame.origin.y - rect.size.height); +} + +static void ImGui_ImplOSX_SetWindowPos(ImGuiViewport* viewport, ImVec2 pos) +{ + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData; + IM_ASSERT(data->Window != 0); + + NSWindow* window = data->Window; + NSSize size = window.frame.size; + + NSRect r = NSMakeRect(pos.x, pos.y, size.width, size.height); + ConvertNSRect(window.screen, &r); + [window setFrameOrigin:r.origin]; +} + +static ImVec2 ImGui_ImplOSX_GetWindowSize(ImGuiViewport* viewport) +{ + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData; + IM_ASSERT(data->Window != 0); + + NSWindow* window = data->Window; + NSSize size = window.contentLayoutRect.size; + return ImVec2(size.width, size.height); +} + +static void ImGui_ImplOSX_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData; + IM_ASSERT(data->Window != 0); + + NSWindow* window = data->Window; + NSRect rect = window.frame; + rect.origin.y -= (size.y - rect.size.height); + rect.size.width = size.x; + rect.size.height = size.y; + [window setFrame:rect display:YES]; +} + +static void ImGui_ImplOSX_SetWindowFocus(ImGuiViewport* viewport) +{ + ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData(); + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData; + IM_ASSERT(data->Window != 0); + [data->Window makeKeyAndOrderFront:bd->Window]; +} + +static bool ImGui_ImplOSX_GetWindowFocus(ImGuiViewport* viewport) +{ + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData; + IM_ASSERT(data->Window != 0); + + return data->Window.isKeyWindow; +} + +static bool ImGui_ImplOSX_GetWindowMinimized(ImGuiViewport* viewport) +{ + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData; + IM_ASSERT(data->Window != 0); + + return data->Window.isMiniaturized; +} + +static void ImGui_ImplOSX_SetWindowTitle(ImGuiViewport* viewport, const char* title) +{ + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData; + IM_ASSERT(data->Window != 0); + + data->Window.title = [NSString stringWithUTF8String:title]; +} + +static void ImGui_ImplOSX_SetWindowAlpha(ImGuiViewport* viewport, float alpha) +{ + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData; + IM_ASSERT(data->Window != 0); + IM_ASSERT(alpha >= 0.0f && alpha <= 1.0f); + + data->Window.alphaValue = alpha; +} + +static float ImGui_ImplOSX_GetWindowDpiScale(ImGuiViewport* viewport) +{ + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)viewport->PlatformUserData; + IM_ASSERT(data->Window != 0); + + return data->Window.backingScaleFactor; +} + +static void ImGui_ImplOSX_UpdateMonitors() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Monitors.resize(0); + + for (NSScreen* screen in NSScreen.screens) + { + NSRect frame = screen.frame; + NSRect visibleFrame = screen.visibleFrame; + + ImGuiPlatformMonitor imgui_monitor; + imgui_monitor.MainPos = ImVec2(frame.origin.x, frame.origin.y); + imgui_monitor.MainSize = ImVec2(frame.size.width, frame.size.height); + imgui_monitor.WorkPos = ImVec2(visibleFrame.origin.x, visibleFrame.origin.y); + imgui_monitor.WorkSize = ImVec2(visibleFrame.size.width, visibleFrame.size.height); + imgui_monitor.DpiScale = screen.backingScaleFactor; + imgui_monitor.PlatformHandle = (__bridge_retained void*)screen; + + platform_io.Monitors.push_back(imgui_monitor); + } +} + +static void ImGui_ImplOSX_InitPlatformInterface() +{ + ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData(); + ImGui_ImplOSX_UpdateMonitors(); + + // Register platform interface (will be coupled with a renderer interface) + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Platform_CreateWindow = ImGui_ImplOSX_CreateWindow; + platform_io.Platform_DestroyWindow = ImGui_ImplOSX_DestroyWindow; + platform_io.Platform_ShowWindow = ImGui_ImplOSX_ShowWindow; + platform_io.Platform_SetWindowPos = ImGui_ImplOSX_SetWindowPos; + platform_io.Platform_GetWindowPos = ImGui_ImplOSX_GetWindowPos; + platform_io.Platform_SetWindowSize = ImGui_ImplOSX_SetWindowSize; + platform_io.Platform_GetWindowSize = ImGui_ImplOSX_GetWindowSize; + platform_io.Platform_SetWindowFocus = ImGui_ImplOSX_SetWindowFocus; + platform_io.Platform_GetWindowFocus = ImGui_ImplOSX_GetWindowFocus; + platform_io.Platform_GetWindowMinimized = ImGui_ImplOSX_GetWindowMinimized; + platform_io.Platform_SetWindowTitle = ImGui_ImplOSX_SetWindowTitle; + platform_io.Platform_SetWindowAlpha = ImGui_ImplOSX_SetWindowAlpha; + platform_io.Platform_GetWindowDpiScale = ImGui_ImplOSX_GetWindowDpiScale; // FIXME-DPI + + // Register main window handle (which is owned by the main application, not by us) + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGuiViewportDataOSX* data = IM_NEW(ImGuiViewportDataOSX)(); + data->Window = bd->Window; + data->WindowOwned = false; + main_viewport->PlatformUserData = data; + main_viewport->PlatformHandle = (__bridge void*)bd->Window; + + [NSNotificationCenter.defaultCenter addObserver:bd->Observer + selector:@selector(displaysDidChange:) + name:NSApplicationDidChangeScreenParametersNotification + object:nil]; +} + +static void ImGui_ImplOSX_ShutdownPlatformInterface() +{ + ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData(); + [NSNotificationCenter.defaultCenter removeObserver:bd->Observer + name:NSApplicationDidChangeScreenParametersNotification + object:nil]; + bd->Observer = nullptr; + bd->Window = nullptr; + if (bd->Monitor != nullptr) + { + [NSEvent removeMonitor:bd->Monitor]; + bd->Monitor = nullptr; + } + + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGuiViewportDataOSX* data = (ImGuiViewportDataOSX*)main_viewport->PlatformUserData; + IM_DELETE(data); + main_viewport->PlatformUserData = nullptr; + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl2.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl2.cpp new file mode 100644 index 0000000..65fa70f --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl2.cpp @@ -0,0 +1,1068 @@ +// dear imgui: Platform Backend for SDL2 +// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) +// (Info: SDL2 is a cross-platform general purpose library for handling windows, inputs, graphics context creation, etc.) +// (Prefer SDL 2.0.5+ for full feature support.) + +// Implemented features: +// [X] Platform: Clipboard support. +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen. +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy SDL_SCANCODE_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// [X] Platform: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. +// Missing features: +// [ ] Platform: Multi-viewport + Minimized windows seems to break mouse wheel events (at least under Windows). +// [x] Platform: Basic IME support. App needs to call 'SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1");' before SDL_CreateWindow()!. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2023-10-05: Inputs: Added support for extra ImGuiKey values: F13 to F24 function keys, app back/forward keys. +// 2023-04-06: Inputs: Avoid calling SDL_StartTextInput()/SDL_StopTextInput() as they don't only pertain to IME. It's unclear exactly what their relation is to IME. (#6306) +// 2023-04-04: Inputs: Added support for io.AddMouseSourceEvent() to discriminate ImGuiMouseSource_Mouse/ImGuiMouseSource_TouchScreen. (#2702) +// 2023-02-23: Accept SDL_GetPerformanceCounter() not returning a monotonically increasing value. (#6189, #6114, #3644) +// 2023-02-07: Implement IME handler (io.SetPlatformImeDataFn will call SDL_SetTextInputRect()/SDL_StartTextInput()). +// 2023-02-07: *BREAKING CHANGE* Renamed this backend file from imgui_impl_sdl.cpp/.h to imgui_impl_sdl2.cpp/.h in prevision for the future release of SDL3. +// 2023-02-02: Avoid calling SDL_SetCursor() when cursor has not changed, as the function is surprisingly costly on Mac with latest SDL (may be fixed in next SDL version). +// 2023-02-02: Added support for SDL 2.0.18+ preciseX/preciseY mouse wheel data for smooth scrolling + Scaling X value on Emscripten (bug?). (#4019, #6096) +// 2023-02-02: Removed SDL_MOUSEWHEEL value clamping, as values seem correct in latest Emscripten. (#4019) +// 2023-02-01: Flipping SDL_MOUSEWHEEL 'wheel.x' value to match other backends and offer consistent horizontal scrolling direction. (#4019, #6096, #1463) +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2022-09-26: Inputs: Disable SDL 2.0.22 new "auto capture" (SDL_HINT_MOUSE_AUTO_CAPTURE) which prevents drag and drop across windows for multi-viewport support + don't capture when drag and dropping. (#5710) +// 2022-09-26: Inputs: Renamed ImGuiKey_ModXXX introduced in 1.87 to ImGuiMod_XXX (old names still supported). +// 2022-03-22: Inputs: Fix mouse position issues when dragging outside of boundaries. SDL_CaptureMouse() erroneously still gives out LEAVE events when hovering OS decorations. +// 2022-03-22: Inputs: Added support for extra mouse buttons (SDL_BUTTON_X1/SDL_BUTTON_X2). +// 2022-02-04: Added SDL_Renderer* parameter to ImGui_ImplSDL2_InitForSDLRenderer(), so we can use SDL_GetRendererOutputSize() instead of SDL_GL_GetDrawableSize() when bound to a SDL_Renderer. +// 2022-01-26: Inputs: replaced short-lived io.AddKeyModsEvent() (added two weeks ago) with io.AddKeyEvent() using ImGuiKey_ModXXX flags. Sorry for the confusion. +// 2021-01-20: Inputs: calling new io.AddKeyAnalogEvent() for gamepad support, instead of writing directly to io.NavInputs[]. +// 2022-01-17: Inputs: calling new io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() API (1.87+). +// 2022-01-17: Inputs: always update key mods next and before key event (not in NewFrame) to fix input queue with very low framerates. +// 2022-01-12: Update mouse inputs using SDL_MOUSEMOTION/SDL_WINDOWEVENT_LEAVE + fallback to provide it when focused but not hovered/captured. More standard and will allow us to pass it to future input queue API. +// 2022-01-12: Maintain our own copy of MouseButtonsDown mask instead of using ImGui::IsAnyMouseDown() which will be obsoleted. +// 2022-01-10: Inputs: calling new io.AddKeyEvent(), io.AddKeyModsEvent() + io.SetKeyEventNativeData() API (1.87+). Support for full ImGuiKey range. +// 2021-08-17: Calling io.AddFocusEvent() on SDL_WINDOWEVENT_FOCUS_GAINED/SDL_WINDOWEVENT_FOCUS_LOST. +// 2021-07-29: Inputs: MousePos is correctly reported when the host platform window is hovered but not focused (using SDL_GetMouseFocus() + SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, requires SDL 2.0.5+) +// 2021-06:29: *BREAKING CHANGE* Removed 'SDL_Window* window' parameter to ImGui_ImplSDL2_NewFrame() which was unnecessary. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-03-22: Rework global mouse pos availability check listing supported platforms explicitly, effectively fixing mouse access on Raspberry Pi. (#2837, #3950) +// 2020-05-25: Misc: Report a zero display-size when window is minimized, to be consistent with other backends. +// 2020-02-20: Inputs: Fixed mapping for ImGuiKey_KeyPadEnter (using SDL_SCANCODE_KP_ENTER instead of SDL_SCANCODE_RETURN2). +// 2019-12-17: Inputs: On Wayland, use SDL_GetMouseState (because there is no global mouse state). +// 2019-12-05: Inputs: Added support for ImGuiMouseCursor_NotAllowed mouse cursor. +// 2019-07-21: Inputs: Added mapping for ImGuiKey_KeyPadEnter. +// 2019-04-23: Inputs: Added support for SDL_GameController (if ImGuiConfigFlags_NavEnableGamepad is set by user application). +// 2019-03-12: Misc: Preserve DisplayFramebufferScale when main window is minimized. +// 2018-12-21: Inputs: Workaround for Android/iOS which don't seem to handle focus related calls. +// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. +// 2018-11-14: Changed the signature of ImGui_ImplSDL2_ProcessEvent() to take a 'const SDL_Event*'. +// 2018-08-01: Inputs: Workaround for Emscripten which doesn't seem to handle focus related calls. +// 2018-06-29: Inputs: Added support for the ImGuiMouseCursor_Hand cursor. +// 2018-06-08: Misc: Extracted imgui_impl_sdl.cpp/.h away from the old combined SDL2+OpenGL/Vulkan examples. +// 2018-06-08: Misc: ImGui_ImplSDL2_InitForOpenGL() now takes a SDL_GLContext parameter. +// 2018-05-09: Misc: Fixed clipboard paste memory leak (we didn't call SDL_FreeMemory on the data returned by SDL_GetClipboardText). +// 2018-03-20: Misc: Setup io.BackendFlags ImGuiBackendFlags_HasMouseCursors flag + honor ImGuiConfigFlags_NoMouseCursorChange flag. +// 2018-02-16: Inputs: Added support for mouse cursors, honoring ImGui::GetMouseCursor() value. +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. +// 2018-02-06: Inputs: Added mapping for ImGuiKey_Space. +// 2018-02-05: Misc: Using SDL_GetPerformanceCounter() instead of SDL_GetTicks() to be able to handle very high framerate (1000+ FPS). +// 2018-02-05: Inputs: Keyboard mapping is using scancodes everywhere instead of a confusing mixture of keycodes and scancodes. +// 2018-01-20: Inputs: Added Horizontal Mouse Wheel support. +// 2018-01-19: Inputs: When available (SDL 2.0.4+) using SDL_CaptureMouse() to retrieve coordinates outside of client area when dragging. Otherwise (SDL 2.0.3 and before) testing for SDL_WINDOW_INPUT_FOCUS instead of SDL_WINDOW_MOUSE_FOCUS. +// 2018-01-18: Inputs: Added mapping for ImGuiKey_Insert. +// 2017-08-25: Inputs: MousePos set to -FLT_MAX,-FLT_MAX when mouse is unavailable/missing (instead of -1,-1). +// 2016-10-15: Misc: Added a void* user_data parameter to Clipboard function handlers. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_sdl2.h" + +// Clang warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#endif + +// SDL +// (the multi-viewports feature requires SDL features supported from SDL 2.0.4+. SDL 2.0.5+ is highly recommended) +#include +#include +#if defined(__APPLE__) +#include +#endif + +#if SDL_VERSION_ATLEAST(2,0,4) && !defined(__EMSCRIPTEN__) && !defined(__ANDROID__) && !(defined(__APPLE__) && TARGET_OS_IOS) && !defined(__amigaos4__) +#define SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE 1 +#else +#define SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE 0 +#endif +#define SDL_HAS_WINDOW_ALPHA SDL_VERSION_ATLEAST(2,0,5) +#define SDL_HAS_ALWAYS_ON_TOP SDL_VERSION_ATLEAST(2,0,5) +#define SDL_HAS_USABLE_DISPLAY_BOUNDS SDL_VERSION_ATLEAST(2,0,5) +#define SDL_HAS_PER_MONITOR_DPI SDL_VERSION_ATLEAST(2,0,4) +#define SDL_HAS_VULKAN SDL_VERSION_ATLEAST(2,0,6) +#define SDL_HAS_DISPLAY_EVENT SDL_VERSION_ATLEAST(2,0,9) +#if !SDL_HAS_VULKAN +static const Uint32 SDL_WINDOW_VULKAN = 0x10000000; +#endif + +// SDL Data +struct ImGui_ImplSDL2_Data +{ + SDL_Window* Window; + SDL_Renderer* Renderer; + Uint64 Time; + Uint32 MouseWindowID; + int MouseButtonsDown; + SDL_Cursor* MouseCursors[ImGuiMouseCursor_COUNT]; + SDL_Cursor* LastMouseCursor; + int PendingMouseLeaveFrame; + char* ClipboardTextData; + bool MouseCanUseGlobalState; + bool MouseCanReportHoveredViewport; // This is hard to use/unreliable on SDL so we'll set ImGuiBackendFlags_HasMouseHoveredViewport dynamically based on state. + bool UseVulkan; + bool WantUpdateMonitors; + + ImGui_ImplSDL2_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendPlatformUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +// FIXME: multi-context support is not well tested and probably dysfunctional in this backend. +// FIXME: some shared resources (mouse cursor shape, gamepad) are mishandled when using multi-context. +static ImGui_ImplSDL2_Data* ImGui_ImplSDL2_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplSDL2_Data*)ImGui::GetIO().BackendPlatformUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplSDL2_UpdateMonitors(); +static void ImGui_ImplSDL2_InitPlatformInterface(SDL_Window* window, void* sdl_gl_context); +static void ImGui_ImplSDL2_ShutdownPlatformInterface(); + +// Functions +static const char* ImGui_ImplSDL2_GetClipboardText(void*) +{ + ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); + if (bd->ClipboardTextData) + SDL_free(bd->ClipboardTextData); + bd->ClipboardTextData = SDL_GetClipboardText(); + return bd->ClipboardTextData; +} + +static void ImGui_ImplSDL2_SetClipboardText(void*, const char* text) +{ + SDL_SetClipboardText(text); +} + +// Note: native IME will only display if user calls SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1") _before_ SDL_CreateWindow(). +static void ImGui_ImplSDL2_SetPlatformImeData(ImGuiViewport* viewport, ImGuiPlatformImeData* data) +{ + if (data->WantVisible) + { + SDL_Rect r; + r.x = (int)(data->InputPos.x - viewport->Pos.x); + r.y = (int)(data->InputPos.y - viewport->Pos.y + data->InputLineHeight); + r.w = 1; + r.h = (int)data->InputLineHeight; + SDL_SetTextInputRect(&r); + } +} + +static ImGuiKey ImGui_ImplSDL2_KeycodeToImGuiKey(int keycode) +{ + switch (keycode) + { + case SDLK_TAB: return ImGuiKey_Tab; + case SDLK_LEFT: return ImGuiKey_LeftArrow; + case SDLK_RIGHT: return ImGuiKey_RightArrow; + case SDLK_UP: return ImGuiKey_UpArrow; + case SDLK_DOWN: return ImGuiKey_DownArrow; + case SDLK_PAGEUP: return ImGuiKey_PageUp; + case SDLK_PAGEDOWN: return ImGuiKey_PageDown; + case SDLK_HOME: return ImGuiKey_Home; + case SDLK_END: return ImGuiKey_End; + case SDLK_INSERT: return ImGuiKey_Insert; + case SDLK_DELETE: return ImGuiKey_Delete; + case SDLK_BACKSPACE: return ImGuiKey_Backspace; + case SDLK_SPACE: return ImGuiKey_Space; + case SDLK_RETURN: return ImGuiKey_Enter; + case SDLK_ESCAPE: return ImGuiKey_Escape; + case SDLK_QUOTE: return ImGuiKey_Apostrophe; + case SDLK_COMMA: return ImGuiKey_Comma; + case SDLK_MINUS: return ImGuiKey_Minus; + case SDLK_PERIOD: return ImGuiKey_Period; + case SDLK_SLASH: return ImGuiKey_Slash; + case SDLK_SEMICOLON: return ImGuiKey_Semicolon; + case SDLK_EQUALS: return ImGuiKey_Equal; + case SDLK_LEFTBRACKET: return ImGuiKey_LeftBracket; + case SDLK_BACKSLASH: return ImGuiKey_Backslash; + case SDLK_RIGHTBRACKET: return ImGuiKey_RightBracket; + case SDLK_BACKQUOTE: return ImGuiKey_GraveAccent; + case SDLK_CAPSLOCK: return ImGuiKey_CapsLock; + case SDLK_SCROLLLOCK: return ImGuiKey_ScrollLock; + case SDLK_NUMLOCKCLEAR: return ImGuiKey_NumLock; + case SDLK_PRINTSCREEN: return ImGuiKey_PrintScreen; + case SDLK_PAUSE: return ImGuiKey_Pause; + case SDLK_KP_0: return ImGuiKey_Keypad0; + case SDLK_KP_1: return ImGuiKey_Keypad1; + case SDLK_KP_2: return ImGuiKey_Keypad2; + case SDLK_KP_3: return ImGuiKey_Keypad3; + case SDLK_KP_4: return ImGuiKey_Keypad4; + case SDLK_KP_5: return ImGuiKey_Keypad5; + case SDLK_KP_6: return ImGuiKey_Keypad6; + case SDLK_KP_7: return ImGuiKey_Keypad7; + case SDLK_KP_8: return ImGuiKey_Keypad8; + case SDLK_KP_9: return ImGuiKey_Keypad9; + case SDLK_KP_PERIOD: return ImGuiKey_KeypadDecimal; + case SDLK_KP_DIVIDE: return ImGuiKey_KeypadDivide; + case SDLK_KP_MULTIPLY: return ImGuiKey_KeypadMultiply; + case SDLK_KP_MINUS: return ImGuiKey_KeypadSubtract; + case SDLK_KP_PLUS: return ImGuiKey_KeypadAdd; + case SDLK_KP_ENTER: return ImGuiKey_KeypadEnter; + case SDLK_KP_EQUALS: return ImGuiKey_KeypadEqual; + case SDLK_LCTRL: return ImGuiKey_LeftCtrl; + case SDLK_LSHIFT: return ImGuiKey_LeftShift; + case SDLK_LALT: return ImGuiKey_LeftAlt; + case SDLK_LGUI: return ImGuiKey_LeftSuper; + case SDLK_RCTRL: return ImGuiKey_RightCtrl; + case SDLK_RSHIFT: return ImGuiKey_RightShift; + case SDLK_RALT: return ImGuiKey_RightAlt; + case SDLK_RGUI: return ImGuiKey_RightSuper; + case SDLK_APPLICATION: return ImGuiKey_Menu; + case SDLK_0: return ImGuiKey_0; + case SDLK_1: return ImGuiKey_1; + case SDLK_2: return ImGuiKey_2; + case SDLK_3: return ImGuiKey_3; + case SDLK_4: return ImGuiKey_4; + case SDLK_5: return ImGuiKey_5; + case SDLK_6: return ImGuiKey_6; + case SDLK_7: return ImGuiKey_7; + case SDLK_8: return ImGuiKey_8; + case SDLK_9: return ImGuiKey_9; + case SDLK_a: return ImGuiKey_A; + case SDLK_b: return ImGuiKey_B; + case SDLK_c: return ImGuiKey_C; + case SDLK_d: return ImGuiKey_D; + case SDLK_e: return ImGuiKey_E; + case SDLK_f: return ImGuiKey_F; + case SDLK_g: return ImGuiKey_G; + case SDLK_h: return ImGuiKey_H; + case SDLK_i: return ImGuiKey_I; + case SDLK_j: return ImGuiKey_J; + case SDLK_k: return ImGuiKey_K; + case SDLK_l: return ImGuiKey_L; + case SDLK_m: return ImGuiKey_M; + case SDLK_n: return ImGuiKey_N; + case SDLK_o: return ImGuiKey_O; + case SDLK_p: return ImGuiKey_P; + case SDLK_q: return ImGuiKey_Q; + case SDLK_r: return ImGuiKey_R; + case SDLK_s: return ImGuiKey_S; + case SDLK_t: return ImGuiKey_T; + case SDLK_u: return ImGuiKey_U; + case SDLK_v: return ImGuiKey_V; + case SDLK_w: return ImGuiKey_W; + case SDLK_x: return ImGuiKey_X; + case SDLK_y: return ImGuiKey_Y; + case SDLK_z: return ImGuiKey_Z; + case SDLK_F1: return ImGuiKey_F1; + case SDLK_F2: return ImGuiKey_F2; + case SDLK_F3: return ImGuiKey_F3; + case SDLK_F4: return ImGuiKey_F4; + case SDLK_F5: return ImGuiKey_F5; + case SDLK_F6: return ImGuiKey_F6; + case SDLK_F7: return ImGuiKey_F7; + case SDLK_F8: return ImGuiKey_F8; + case SDLK_F9: return ImGuiKey_F9; + case SDLK_F10: return ImGuiKey_F10; + case SDLK_F11: return ImGuiKey_F11; + case SDLK_F12: return ImGuiKey_F12; + case SDLK_F13: return ImGuiKey_F13; + case SDLK_F14: return ImGuiKey_F14; + case SDLK_F15: return ImGuiKey_F15; + case SDLK_F16: return ImGuiKey_F16; + case SDLK_F17: return ImGuiKey_F17; + case SDLK_F18: return ImGuiKey_F18; + case SDLK_F19: return ImGuiKey_F19; + case SDLK_F20: return ImGuiKey_F20; + case SDLK_F21: return ImGuiKey_F21; + case SDLK_F22: return ImGuiKey_F22; + case SDLK_F23: return ImGuiKey_F23; + case SDLK_F24: return ImGuiKey_F24; + case SDLK_AC_BACK: return ImGuiKey_AppBack; + case SDLK_AC_FORWARD: return ImGuiKey_AppForward; + } + return ImGuiKey_None; +} + +static void ImGui_ImplSDL2_UpdateKeyModifiers(SDL_Keymod sdl_key_mods) +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddKeyEvent(ImGuiMod_Ctrl, (sdl_key_mods & KMOD_CTRL) != 0); + io.AddKeyEvent(ImGuiMod_Shift, (sdl_key_mods & KMOD_SHIFT) != 0); + io.AddKeyEvent(ImGuiMod_Alt, (sdl_key_mods & KMOD_ALT) != 0); + io.AddKeyEvent(ImGuiMod_Super, (sdl_key_mods & KMOD_GUI) != 0); +} + +// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. +// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. +// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. +// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. +// If you have multiple SDL events and some of them are not meant to be used by dear imgui, you may need to filter events based on their windowID field. +bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event) +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); + + switch (event->type) + { + case SDL_MOUSEMOTION: + { + ImVec2 mouse_pos((float)event->motion.x, (float)event->motion.y); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + int window_x, window_y; + SDL_GetWindowPosition(SDL_GetWindowFromID(event->motion.windowID), &window_x, &window_y); + mouse_pos.x += window_x; + mouse_pos.y += window_y; + } + io.AddMouseSourceEvent(event->motion.which == SDL_TOUCH_MOUSEID ? ImGuiMouseSource_TouchScreen : ImGuiMouseSource_Mouse); + io.AddMousePosEvent(mouse_pos.x, mouse_pos.y); + return true; + } + case SDL_MOUSEWHEEL: + { + //IMGUI_DEBUG_LOG("wheel %.2f %.2f, precise %.2f %.2f\n", (float)event->wheel.x, (float)event->wheel.y, event->wheel.preciseX, event->wheel.preciseY); +#if SDL_VERSION_ATLEAST(2,0,18) // If this fails to compile on Emscripten: update to latest Emscripten! + float wheel_x = -event->wheel.preciseX; + float wheel_y = event->wheel.preciseY; +#else + float wheel_x = -(float)event->wheel.x; + float wheel_y = (float)event->wheel.y; +#endif +#ifdef __EMSCRIPTEN__ + wheel_x /= 100.0f; +#endif + io.AddMouseSourceEvent(event->wheel.which == SDL_TOUCH_MOUSEID ? ImGuiMouseSource_TouchScreen : ImGuiMouseSource_Mouse); + io.AddMouseWheelEvent(wheel_x, wheel_y); + return true; + } + case SDL_MOUSEBUTTONDOWN: + case SDL_MOUSEBUTTONUP: + { + int mouse_button = -1; + if (event->button.button == SDL_BUTTON_LEFT) { mouse_button = 0; } + if (event->button.button == SDL_BUTTON_RIGHT) { mouse_button = 1; } + if (event->button.button == SDL_BUTTON_MIDDLE) { mouse_button = 2; } + if (event->button.button == SDL_BUTTON_X1) { mouse_button = 3; } + if (event->button.button == SDL_BUTTON_X2) { mouse_button = 4; } + if (mouse_button == -1) + break; + io.AddMouseSourceEvent(event->button.which == SDL_TOUCH_MOUSEID ? ImGuiMouseSource_TouchScreen : ImGuiMouseSource_Mouse); + io.AddMouseButtonEvent(mouse_button, (event->type == SDL_MOUSEBUTTONDOWN)); + bd->MouseButtonsDown = (event->type == SDL_MOUSEBUTTONDOWN) ? (bd->MouseButtonsDown | (1 << mouse_button)) : (bd->MouseButtonsDown & ~(1 << mouse_button)); + return true; + } + case SDL_TEXTINPUT: + { + io.AddInputCharactersUTF8(event->text.text); + return true; + } + case SDL_KEYDOWN: + case SDL_KEYUP: + { + ImGui_ImplSDL2_UpdateKeyModifiers((SDL_Keymod)event->key.keysym.mod); + ImGuiKey key = ImGui_ImplSDL2_KeycodeToImGuiKey(event->key.keysym.sym); + io.AddKeyEvent(key, (event->type == SDL_KEYDOWN)); + io.SetKeyEventNativeData(key, event->key.keysym.sym, event->key.keysym.scancode, event->key.keysym.scancode); // To support legacy indexing (<1.87 user code). Legacy backend uses SDLK_*** as indices to IsKeyXXX() functions. + return true; + } +#if SDL_HAS_DISPLAY_EVENT + case SDL_DISPLAYEVENT: + { + // 2.0.26 has SDL_DISPLAYEVENT_CONNECTED/SDL_DISPLAYEVENT_DISCONNECTED/SDL_DISPLAYEVENT_ORIENTATION, + // so change of DPI/Scaling are not reflected in this event. (SDL3 has it) + bd->WantUpdateMonitors = true; + return true; + } +#endif + case SDL_WINDOWEVENT: + { + // - When capturing mouse, SDL will send a bunch of conflicting LEAVE/ENTER event on every mouse move, but the final ENTER tends to be right. + // - However we won't get a correct LEAVE event for a captured window. + // - In some cases, when detaching a window from main viewport SDL may send SDL_WINDOWEVENT_ENTER one frame too late, + // causing SDL_WINDOWEVENT_LEAVE on previous frame to interrupt drag operation by clear mouse position. This is why + // we delay process the SDL_WINDOWEVENT_LEAVE events by one frame. See issue #5012 for details. + Uint8 window_event = event->window.event; + if (window_event == SDL_WINDOWEVENT_ENTER) + { + bd->MouseWindowID = event->window.windowID; + bd->PendingMouseLeaveFrame = 0; + } + if (window_event == SDL_WINDOWEVENT_LEAVE) + bd->PendingMouseLeaveFrame = ImGui::GetFrameCount() + 1; + if (window_event == SDL_WINDOWEVENT_FOCUS_GAINED) + io.AddFocusEvent(true); + else if (window_event == SDL_WINDOWEVENT_FOCUS_LOST) + io.AddFocusEvent(false); + if (window_event == SDL_WINDOWEVENT_CLOSE || window_event == SDL_WINDOWEVENT_MOVED || window_event == SDL_WINDOWEVENT_RESIZED) + if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle((void*)SDL_GetWindowFromID(event->window.windowID))) + { + if (window_event == SDL_WINDOWEVENT_CLOSE) + viewport->PlatformRequestClose = true; + if (window_event == SDL_WINDOWEVENT_MOVED) + viewport->PlatformRequestMove = true; + if (window_event == SDL_WINDOWEVENT_RESIZED) + viewport->PlatformRequestResize = true; + return true; + } + return true; + } + } + return false; +} + +static bool ImGui_ImplSDL2_Init(SDL_Window* window, SDL_Renderer* renderer, void* sdl_gl_context) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendPlatformUserData == nullptr && "Already initialized a platform backend!"); + + // Check and store if we are on a SDL backend that supports global mouse position + // ("wayland" and "rpi" don't support it, but we chose to use a white-list instead of a black-list) + bool mouse_can_use_global_state = false; +#if SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE + const char* sdl_backend = SDL_GetCurrentVideoDriver(); + const char* global_mouse_whitelist[] = { "windows", "cocoa", "x11", "DIVE", "VMAN" }; + for (int n = 0; n < IM_ARRAYSIZE(global_mouse_whitelist); n++) + if (strncmp(sdl_backend, global_mouse_whitelist[n], strlen(global_mouse_whitelist[n])) == 0) + mouse_can_use_global_state = true; +#endif + + // Setup backend capabilities flags + ImGui_ImplSDL2_Data* bd = IM_NEW(ImGui_ImplSDL2_Data)(); + io.BackendPlatformUserData = (void*)bd; + io.BackendPlatformName = "imgui_impl_sdl2"; + io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) + io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used) + if (mouse_can_use_global_state) + io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports; // We can create multi-viewports on the Platform side (optional) + + bd->Window = window; + bd->Renderer = renderer; + + // SDL on Linux/OSX doesn't report events for unfocused windows (see https://github.com/ocornut/imgui/issues/4960) + // We will use 'MouseCanReportHoveredViewport' to set 'ImGuiBackendFlags_HasMouseHoveredViewport' dynamically each frame. + bd->MouseCanUseGlobalState = mouse_can_use_global_state; +#ifndef __APPLE__ + bd->MouseCanReportHoveredViewport = bd->MouseCanUseGlobalState; +#else + bd->MouseCanReportHoveredViewport = false; +#endif + bd->WantUpdateMonitors = true; + + io.SetClipboardTextFn = ImGui_ImplSDL2_SetClipboardText; + io.GetClipboardTextFn = ImGui_ImplSDL2_GetClipboardText; + io.ClipboardUserData = nullptr; + io.SetPlatformImeDataFn = ImGui_ImplSDL2_SetPlatformImeData; + + // Load mouse cursors + bd->MouseCursors[ImGuiMouseCursor_Arrow] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW); + bd->MouseCursors[ImGuiMouseCursor_TextInput] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_IBEAM); + bd->MouseCursors[ImGuiMouseCursor_ResizeAll] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEALL); + bd->MouseCursors[ImGuiMouseCursor_ResizeNS] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENS); + bd->MouseCursors[ImGuiMouseCursor_ResizeEW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEWE); + bd->MouseCursors[ImGuiMouseCursor_ResizeNESW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENESW); + bd->MouseCursors[ImGuiMouseCursor_ResizeNWSE] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENWSE); + bd->MouseCursors[ImGuiMouseCursor_Hand] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_HAND); + bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_NO); + + // Set platform dependent data in viewport + // Our mouse update function expect PlatformHandle to be filled for the main viewport + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + main_viewport->PlatformHandle = (void*)window; + main_viewport->PlatformHandleRaw = nullptr; + SDL_SysWMinfo info; + SDL_VERSION(&info.version); + if (SDL_GetWindowWMInfo(window, &info)) + { +#if defined(SDL_VIDEO_DRIVER_WINDOWS) + main_viewport->PlatformHandleRaw = (void*)info.info.win.window; +#elif defined(__APPLE__) && defined(SDL_VIDEO_DRIVER_COCOA) + main_viewport->PlatformHandleRaw = (void*)info.info.cocoa.window; +#endif + } + + // From 2.0.5: Set SDL hint to receive mouse click events on window focus, otherwise SDL doesn't emit the event. + // Without this, when clicking to gain focus, our widgets wouldn't activate even though they showed as hovered. + // (This is unfortunately a global SDL setting, so enabling it might have a side-effect on your application. + // It is unlikely to make a difference, but if your app absolutely needs to ignore the initial on-focus click: + // you can ignore SDL_MOUSEBUTTONDOWN events coming right after a SDL_WINDOWEVENT_FOCUS_GAINED) +#ifdef SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH + SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1"); +#endif + + // From 2.0.18: Enable native IME. + // IMPORTANT: This is used at the time of SDL_CreateWindow() so this will only affects secondary windows, if any. + // For the main window to be affected, your application needs to call this manually before calling SDL_CreateWindow(). +#ifdef SDL_HINT_IME_SHOW_UI + SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); +#endif + + // From 2.0.22: Disable auto-capture, this is preventing drag and drop across multiple windows (see #5710) +#ifdef SDL_HINT_MOUSE_AUTO_CAPTURE + SDL_SetHint(SDL_HINT_MOUSE_AUTO_CAPTURE, "0"); +#endif + + // We need SDL_CaptureMouse(), SDL_GetGlobalMouseState() from SDL 2.0.4+ to support multiple viewports. + // We left the call to ImGui_ImplSDL2_InitPlatformInterface() outside of #ifdef to avoid unused-function warnings. + if ((io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) && (io.BackendFlags & ImGuiBackendFlags_PlatformHasViewports)) + ImGui_ImplSDL2_InitPlatformInterface(window, sdl_gl_context); + + return true; +} + +bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window, void* sdl_gl_context) +{ + return ImGui_ImplSDL2_Init(window, nullptr, sdl_gl_context); +} + +bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window) +{ +#if !SDL_HAS_VULKAN + IM_ASSERT(0 && "Unsupported"); +#endif + if (!ImGui_ImplSDL2_Init(window, nullptr, nullptr)) + return false; + ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); + bd->UseVulkan = true; + return true; +} + +bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window) +{ +#if !defined(_WIN32) + IM_ASSERT(0 && "Unsupported"); +#endif + return ImGui_ImplSDL2_Init(window, nullptr, nullptr); +} + +bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window) +{ + return ImGui_ImplSDL2_Init(window, nullptr, nullptr); +} + +bool ImGui_ImplSDL2_InitForSDLRenderer(SDL_Window* window, SDL_Renderer* renderer) +{ + return ImGui_ImplSDL2_Init(window, renderer, nullptr); +} + +bool ImGui_ImplSDL2_InitForOther(SDL_Window* window) +{ + return ImGui_ImplSDL2_Init(window, nullptr, nullptr); +} + +void ImGui_ImplSDL2_Shutdown() +{ + ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); + IM_ASSERT(bd != nullptr && "No platform backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplSDL2_ShutdownPlatformInterface(); + + if (bd->ClipboardTextData) + SDL_free(bd->ClipboardTextData); + for (ImGuiMouseCursor cursor_n = 0; cursor_n < ImGuiMouseCursor_COUNT; cursor_n++) + SDL_FreeCursor(bd->MouseCursors[cursor_n]); + bd->LastMouseCursor = nullptr; + + io.BackendPlatformName = nullptr; + io.BackendPlatformUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_HasMouseCursors | ImGuiBackendFlags_HasSetMousePos | ImGuiBackendFlags_HasGamepad | ImGuiBackendFlags_PlatformHasViewports | ImGuiBackendFlags_HasMouseHoveredViewport); + IM_DELETE(bd); +} + +// This code is incredibly messy because some of the functions we need for full viewport support are not available in SDL < 2.0.4. +static void ImGui_ImplSDL2_UpdateMouseData() +{ + ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + + // We forward mouse input when hovered or captured (via SDL_MOUSEMOTION) or when focused (below) +#if SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE + // SDL_CaptureMouse() let the OS know e.g. that our imgui drag outside the SDL window boundaries shouldn't e.g. trigger other operations outside + SDL_CaptureMouse((bd->MouseButtonsDown != 0) ? SDL_TRUE : SDL_FALSE); + SDL_Window* focused_window = SDL_GetKeyboardFocus(); + const bool is_app_focused = (focused_window && (bd->Window == focused_window || ImGui::FindViewportByPlatformHandle((void*)focused_window))); +#else + SDL_Window* focused_window = bd->Window; + const bool is_app_focused = (SDL_GetWindowFlags(bd->Window) & SDL_WINDOW_INPUT_FOCUS) != 0; // SDL 2.0.3 and non-windowed systems: single-viewport only +#endif + + if (is_app_focused) + { + // (Optional) Set OS mouse position from Dear ImGui if requested (rarely used, only when ImGuiConfigFlags_NavEnableSetMousePos is enabled by user) + if (io.WantSetMousePos) + { +#if SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + SDL_WarpMouseGlobal((int)io.MousePos.x, (int)io.MousePos.y); + else +#endif + SDL_WarpMouseInWindow(bd->Window, (int)io.MousePos.x, (int)io.MousePos.y); + } + + // (Optional) Fallback to provide mouse position when focused (SDL_MOUSEMOTION already provides this when hovered or captured) + if (bd->MouseCanUseGlobalState && bd->MouseButtonsDown == 0) + { + // Single-viewport mode: mouse position in client window coordinates (io.MousePos is (0,0) when the mouse is on the upper-left corner of the app window) + // Multi-viewport mode: mouse position in OS absolute coordinates (io.MousePos is (0,0) when the mouse is on the upper-left of the primary monitor) + int mouse_x, mouse_y, window_x, window_y; + SDL_GetGlobalMouseState(&mouse_x, &mouse_y); + if (!(io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)) + { + SDL_GetWindowPosition(focused_window, &window_x, &window_y); + mouse_x -= window_x; + mouse_y -= window_y; + } + io.AddMousePosEvent((float)mouse_x, (float)mouse_y); + } + } + + // (Optional) When using multiple viewports: call io.AddMouseViewportEvent() with the viewport the OS mouse cursor is hovering. + // If ImGuiBackendFlags_HasMouseHoveredViewport is not set by the backend, Dear imGui will ignore this field and infer the information using its flawed heuristic. + // - [!] SDL backend does NOT correctly ignore viewports with the _NoInputs flag. + // Some backend are not able to handle that correctly. If a backend report an hovered viewport that has the _NoInputs flag (e.g. when dragging a window + // for docking, the viewport has the _NoInputs flag in order to allow us to find the viewport under), then Dear ImGui is forced to ignore the value reported + // by the backend, and use its flawed heuristic to guess the viewport behind. + // - [X] SDL backend correctly reports this regardless of another viewport behind focused and dragged from (we need this to find a useful drag and drop target). + if (io.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport) + { + ImGuiID mouse_viewport_id = 0; + if (SDL_Window* sdl_mouse_window = SDL_GetWindowFromID(bd->MouseWindowID)) + if (ImGuiViewport* mouse_viewport = ImGui::FindViewportByPlatformHandle((void*)sdl_mouse_window)) + mouse_viewport_id = mouse_viewport->ID; + io.AddMouseViewportEvent(mouse_viewport_id); + } +} + +static void ImGui_ImplSDL2_UpdateMouseCursor() +{ + ImGuiIO& io = ImGui::GetIO(); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) + return; + ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); + + ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); + if (io.MouseDrawCursor || imgui_cursor == ImGuiMouseCursor_None) + { + // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor + SDL_ShowCursor(SDL_FALSE); + } + else + { + // Show OS mouse cursor + SDL_Cursor* expected_cursor = bd->MouseCursors[imgui_cursor] ? bd->MouseCursors[imgui_cursor] : bd->MouseCursors[ImGuiMouseCursor_Arrow]; + if (bd->LastMouseCursor != expected_cursor) + { + SDL_SetCursor(expected_cursor); // SDL function doesn't have an early out (see #6113) + bd->LastMouseCursor = expected_cursor; + } + SDL_ShowCursor(SDL_TRUE); + } +} + +static void ImGui_ImplSDL2_UpdateGamepads() +{ + ImGuiIO& io = ImGui::GetIO(); + if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) // FIXME: Technically feeding gamepad shouldn't depend on this now that they are regular inputs. + return; + + // Get gamepad + io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; + SDL_GameController* game_controller = SDL_GameControllerOpen(0); + if (!game_controller) + return; + io.BackendFlags |= ImGuiBackendFlags_HasGamepad; + + // Update gamepad inputs + #define IM_SATURATE(V) (V < 0.0f ? 0.0f : V > 1.0f ? 1.0f : V) + #define MAP_BUTTON(KEY_NO, BUTTON_NO) { io.AddKeyEvent(KEY_NO, SDL_GameControllerGetButton(game_controller, BUTTON_NO) != 0); } + #define MAP_ANALOG(KEY_NO, AXIS_NO, V0, V1) { float vn = (float)(SDL_GameControllerGetAxis(game_controller, AXIS_NO) - V0) / (float)(V1 - V0); vn = IM_SATURATE(vn); io.AddKeyAnalogEvent(KEY_NO, vn > 0.1f, vn); } + const int thumb_dead_zone = 8000; // SDL_gamecontroller.h suggests using this value. + MAP_BUTTON(ImGuiKey_GamepadStart, SDL_CONTROLLER_BUTTON_START); + MAP_BUTTON(ImGuiKey_GamepadBack, SDL_CONTROLLER_BUTTON_BACK); + MAP_BUTTON(ImGuiKey_GamepadFaceLeft, SDL_CONTROLLER_BUTTON_X); // Xbox X, PS Square + MAP_BUTTON(ImGuiKey_GamepadFaceRight, SDL_CONTROLLER_BUTTON_B); // Xbox B, PS Circle + MAP_BUTTON(ImGuiKey_GamepadFaceUp, SDL_CONTROLLER_BUTTON_Y); // Xbox Y, PS Triangle + MAP_BUTTON(ImGuiKey_GamepadFaceDown, SDL_CONTROLLER_BUTTON_A); // Xbox A, PS Cross + MAP_BUTTON(ImGuiKey_GamepadDpadLeft, SDL_CONTROLLER_BUTTON_DPAD_LEFT); + MAP_BUTTON(ImGuiKey_GamepadDpadRight, SDL_CONTROLLER_BUTTON_DPAD_RIGHT); + MAP_BUTTON(ImGuiKey_GamepadDpadUp, SDL_CONTROLLER_BUTTON_DPAD_UP); + MAP_BUTTON(ImGuiKey_GamepadDpadDown, SDL_CONTROLLER_BUTTON_DPAD_DOWN); + MAP_BUTTON(ImGuiKey_GamepadL1, SDL_CONTROLLER_BUTTON_LEFTSHOULDER); + MAP_BUTTON(ImGuiKey_GamepadR1, SDL_CONTROLLER_BUTTON_RIGHTSHOULDER); + MAP_ANALOG(ImGuiKey_GamepadL2, SDL_CONTROLLER_AXIS_TRIGGERLEFT, 0.0f, 32767); + MAP_ANALOG(ImGuiKey_GamepadR2, SDL_CONTROLLER_AXIS_TRIGGERRIGHT, 0.0f, 32767); + MAP_BUTTON(ImGuiKey_GamepadL3, SDL_CONTROLLER_BUTTON_LEFTSTICK); + MAP_BUTTON(ImGuiKey_GamepadR3, SDL_CONTROLLER_BUTTON_RIGHTSTICK); + MAP_ANALOG(ImGuiKey_GamepadLStickLeft, SDL_CONTROLLER_AXIS_LEFTX, -thumb_dead_zone, -32768); + MAP_ANALOG(ImGuiKey_GamepadLStickRight, SDL_CONTROLLER_AXIS_LEFTX, +thumb_dead_zone, +32767); + MAP_ANALOG(ImGuiKey_GamepadLStickUp, SDL_CONTROLLER_AXIS_LEFTY, -thumb_dead_zone, -32768); + MAP_ANALOG(ImGuiKey_GamepadLStickDown, SDL_CONTROLLER_AXIS_LEFTY, +thumb_dead_zone, +32767); + MAP_ANALOG(ImGuiKey_GamepadRStickLeft, SDL_CONTROLLER_AXIS_RIGHTX, -thumb_dead_zone, -32768); + MAP_ANALOG(ImGuiKey_GamepadRStickRight, SDL_CONTROLLER_AXIS_RIGHTX, +thumb_dead_zone, +32767); + MAP_ANALOG(ImGuiKey_GamepadRStickUp, SDL_CONTROLLER_AXIS_RIGHTY, -thumb_dead_zone, -32768); + MAP_ANALOG(ImGuiKey_GamepadRStickDown, SDL_CONTROLLER_AXIS_RIGHTY, +thumb_dead_zone, +32767); + #undef MAP_BUTTON + #undef MAP_ANALOG +} + +// FIXME: Note that doesn't update with DPI/Scaling change only as SDL2 doesn't have an event for it (SDL3 has). +static void ImGui_ImplSDL2_UpdateMonitors() +{ + ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Monitors.resize(0); + bd->WantUpdateMonitors = false; + int display_count = SDL_GetNumVideoDisplays(); + for (int n = 0; n < display_count; n++) + { + // Warning: the validity of monitor DPI information on Windows depends on the application DPI awareness settings, which generally needs to be set in the manifest or at runtime. + ImGuiPlatformMonitor monitor; + SDL_Rect r; + SDL_GetDisplayBounds(n, &r); + monitor.MainPos = monitor.WorkPos = ImVec2((float)r.x, (float)r.y); + monitor.MainSize = monitor.WorkSize = ImVec2((float)r.w, (float)r.h); +#if SDL_HAS_USABLE_DISPLAY_BOUNDS + SDL_GetDisplayUsableBounds(n, &r); + monitor.WorkPos = ImVec2((float)r.x, (float)r.y); + monitor.WorkSize = ImVec2((float)r.w, (float)r.h); +#endif +#if SDL_HAS_PER_MONITOR_DPI + // FIXME-VIEWPORT: On MacOS SDL reports actual monitor DPI scale, ignoring OS configuration. We may want to set + // DpiScale to cocoa_window.backingScaleFactor here. + float dpi = 0.0f; + if (!SDL_GetDisplayDPI(n, &dpi, nullptr, nullptr)) + monitor.DpiScale = dpi / 96.0f; +#endif + monitor.PlatformHandle = (void*)(intptr_t)n; + platform_io.Monitors.push_back(monitor); + } +} + +void ImGui_ImplSDL2_NewFrame() +{ + ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplSDL2_Init()?"); + ImGuiIO& io = ImGui::GetIO(); + + // Setup display size (every frame to accommodate for window resizing) + int w, h; + int display_w, display_h; + SDL_GetWindowSize(bd->Window, &w, &h); + if (SDL_GetWindowFlags(bd->Window) & SDL_WINDOW_MINIMIZED) + w = h = 0; + if (bd->Renderer != nullptr) + SDL_GetRendererOutputSize(bd->Renderer, &display_w, &display_h); + else + SDL_GL_GetDrawableSize(bd->Window, &display_w, &display_h); + io.DisplaySize = ImVec2((float)w, (float)h); + if (w > 0 && h > 0) + io.DisplayFramebufferScale = ImVec2((float)display_w / w, (float)display_h / h); + + // Update monitors + if (bd->WantUpdateMonitors) + ImGui_ImplSDL2_UpdateMonitors(); + + // Setup time step (we don't use SDL_GetTicks() because it is using millisecond resolution) + // (Accept SDL_GetPerformanceCounter() not returning a monotonically increasing value. Happens in VMs and Emscripten, see #6189, #6114, #3644) + static Uint64 frequency = SDL_GetPerformanceFrequency(); + Uint64 current_time = SDL_GetPerformanceCounter(); + if (current_time <= bd->Time) + current_time = bd->Time + 1; + io.DeltaTime = bd->Time > 0 ? (float)((double)(current_time - bd->Time) / frequency) : (float)(1.0f / 60.0f); + bd->Time = current_time; + + if (bd->PendingMouseLeaveFrame && bd->PendingMouseLeaveFrame >= ImGui::GetFrameCount() && bd->MouseButtonsDown == 0) + { + bd->MouseWindowID = 0; + bd->PendingMouseLeaveFrame = 0; + io.AddMousePosEvent(-FLT_MAX, -FLT_MAX); + } + + // Our io.AddMouseViewportEvent() calls will only be valid when not capturing. + // Technically speaking testing for 'bd->MouseButtonsDown == 0' would be more rygorous, but testing for payload reduces noise and potential side-effects. + if (bd->MouseCanReportHoveredViewport && ImGui::GetDragDropPayload() == nullptr) + io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport; + else + io.BackendFlags &= ~ImGuiBackendFlags_HasMouseHoveredViewport; + + ImGui_ImplSDL2_UpdateMouseData(); + ImGui_ImplSDL2_UpdateMouseCursor(); + + // Update game controllers (if enabled and available) + ImGui_ImplSDL2_UpdateGamepads(); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +// Helper structure we store in the void* RendererUserData field of each ImGuiViewport to easily retrieve our backend data. +struct ImGui_ImplSDL2_ViewportData +{ + SDL_Window* Window; + Uint32 WindowID; + bool WindowOwned; + SDL_GLContext GLContext; + + ImGui_ImplSDL2_ViewportData() { Window = nullptr; WindowID = 0; WindowOwned = false; GLContext = nullptr; } + ~ImGui_ImplSDL2_ViewportData() { IM_ASSERT(Window == nullptr && GLContext == nullptr); } +}; + +static void ImGui_ImplSDL2_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplSDL2_Data* bd = ImGui_ImplSDL2_GetBackendData(); + ImGui_ImplSDL2_ViewportData* vd = IM_NEW(ImGui_ImplSDL2_ViewportData)(); + viewport->PlatformUserData = vd; + + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGui_ImplSDL2_ViewportData* main_viewport_data = (ImGui_ImplSDL2_ViewportData*)main_viewport->PlatformUserData; + + // Share GL resources with main context + bool use_opengl = (main_viewport_data->GLContext != nullptr); + SDL_GLContext backup_context = nullptr; + if (use_opengl) + { + backup_context = SDL_GL_GetCurrentContext(); + SDL_GL_SetAttribute(SDL_GL_SHARE_WITH_CURRENT_CONTEXT, 1); + SDL_GL_MakeCurrent(main_viewport_data->Window, main_viewport_data->GLContext); + } + + Uint32 sdl_flags = 0; + sdl_flags |= use_opengl ? SDL_WINDOW_OPENGL : (bd->UseVulkan ? SDL_WINDOW_VULKAN : 0); + sdl_flags |= SDL_GetWindowFlags(bd->Window) & SDL_WINDOW_ALLOW_HIGHDPI; + sdl_flags |= SDL_WINDOW_HIDDEN; + sdl_flags |= (viewport->Flags & ImGuiViewportFlags_NoDecoration) ? SDL_WINDOW_BORDERLESS : 0; + sdl_flags |= (viewport->Flags & ImGuiViewportFlags_NoDecoration) ? 0 : SDL_WINDOW_RESIZABLE; +#if !defined(_WIN32) + // See SDL hack in ImGui_ImplSDL2_ShowWindow(). + sdl_flags |= (viewport->Flags & ImGuiViewportFlags_NoTaskBarIcon) ? SDL_WINDOW_SKIP_TASKBAR : 0; +#endif +#if SDL_HAS_ALWAYS_ON_TOP + sdl_flags |= (viewport->Flags & ImGuiViewportFlags_TopMost) ? SDL_WINDOW_ALWAYS_ON_TOP : 0; +#endif + vd->Window = SDL_CreateWindow("No Title Yet", (int)viewport->Pos.x, (int)viewport->Pos.y, (int)viewport->Size.x, (int)viewport->Size.y, sdl_flags); + vd->WindowOwned = true; + if (use_opengl) + { + vd->GLContext = SDL_GL_CreateContext(vd->Window); + SDL_GL_SetSwapInterval(0); + } + if (use_opengl && backup_context) + SDL_GL_MakeCurrent(vd->Window, backup_context); + + viewport->PlatformHandle = (void*)vd->Window; + viewport->PlatformHandleRaw = nullptr; + SDL_SysWMinfo info; + SDL_VERSION(&info.version); + if (SDL_GetWindowWMInfo(vd->Window, &info)) + { +#if defined(SDL_VIDEO_DRIVER_WINDOWS) + viewport->PlatformHandleRaw = info.info.win.window; +#elif defined(__APPLE__) && defined(SDL_VIDEO_DRIVER_COCOA) + viewport->PlatformHandleRaw = (void*)info.info.cocoa.window; +#endif + } +} + +static void ImGui_ImplSDL2_DestroyWindow(ImGuiViewport* viewport) +{ + if (ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData) + { + if (vd->GLContext && vd->WindowOwned) + SDL_GL_DeleteContext(vd->GLContext); + if (vd->Window && vd->WindowOwned) + SDL_DestroyWindow(vd->Window); + vd->GLContext = nullptr; + vd->Window = nullptr; + IM_DELETE(vd); + } + viewport->PlatformUserData = viewport->PlatformHandle = nullptr; +} + +static void ImGui_ImplSDL2_ShowWindow(ImGuiViewport* viewport) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; +#if defined(_WIN32) + HWND hwnd = (HWND)viewport->PlatformHandleRaw; + + // SDL hack: Hide icon from task bar + // Note: SDL 2.0.6+ has a SDL_WINDOW_SKIP_TASKBAR flag which is supported under Windows but the way it create the window breaks our seamless transition. + if (viewport->Flags & ImGuiViewportFlags_NoTaskBarIcon) + { + LONG ex_style = ::GetWindowLong(hwnd, GWL_EXSTYLE); + ex_style &= ~WS_EX_APPWINDOW; + ex_style |= WS_EX_TOOLWINDOW; + ::SetWindowLong(hwnd, GWL_EXSTYLE, ex_style); + } + + // SDL hack: SDL always activate/focus windows :/ + if (viewport->Flags & ImGuiViewportFlags_NoFocusOnAppearing) + { + ::ShowWindow(hwnd, SW_SHOWNA); + return; + } +#endif + + SDL_ShowWindow(vd->Window); +} + +static ImVec2 ImGui_ImplSDL2_GetWindowPos(ImGuiViewport* viewport) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + int x = 0, y = 0; + SDL_GetWindowPosition(vd->Window, &x, &y); + return ImVec2((float)x, (float)y); +} + +static void ImGui_ImplSDL2_SetWindowPos(ImGuiViewport* viewport, ImVec2 pos) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + SDL_SetWindowPosition(vd->Window, (int)pos.x, (int)pos.y); +} + +static ImVec2 ImGui_ImplSDL2_GetWindowSize(ImGuiViewport* viewport) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + int w = 0, h = 0; + SDL_GetWindowSize(vd->Window, &w, &h); + return ImVec2((float)w, (float)h); +} + +static void ImGui_ImplSDL2_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + SDL_SetWindowSize(vd->Window, (int)size.x, (int)size.y); +} + +static void ImGui_ImplSDL2_SetWindowTitle(ImGuiViewport* viewport, const char* title) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + SDL_SetWindowTitle(vd->Window, title); +} + +#if SDL_HAS_WINDOW_ALPHA +static void ImGui_ImplSDL2_SetWindowAlpha(ImGuiViewport* viewport, float alpha) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + SDL_SetWindowOpacity(vd->Window, alpha); +} +#endif + +static void ImGui_ImplSDL2_SetWindowFocus(ImGuiViewport* viewport) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + SDL_RaiseWindow(vd->Window); +} + +static bool ImGui_ImplSDL2_GetWindowFocus(ImGuiViewport* viewport) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + return (SDL_GetWindowFlags(vd->Window) & SDL_WINDOW_INPUT_FOCUS) != 0; +} + +static bool ImGui_ImplSDL2_GetWindowMinimized(ImGuiViewport* viewport) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + return (SDL_GetWindowFlags(vd->Window) & SDL_WINDOW_MINIMIZED) != 0; +} + +static void ImGui_ImplSDL2_RenderWindow(ImGuiViewport* viewport, void*) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + if (vd->GLContext) + SDL_GL_MakeCurrent(vd->Window, vd->GLContext); +} + +static void ImGui_ImplSDL2_SwapBuffers(ImGuiViewport* viewport, void*) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + if (vd->GLContext) + { + SDL_GL_MakeCurrent(vd->Window, vd->GLContext); + SDL_GL_SwapWindow(vd->Window); + } +} + +// Vulkan support (the Vulkan renderer needs to call a platform-side support function to create the surface) +// SDL is graceful enough to _not_ need so we can safely include this. +#if SDL_HAS_VULKAN +#include +static int ImGui_ImplSDL2_CreateVkSurface(ImGuiViewport* viewport, ImU64 vk_instance, const void* vk_allocator, ImU64* out_vk_surface) +{ + ImGui_ImplSDL2_ViewportData* vd = (ImGui_ImplSDL2_ViewportData*)viewport->PlatformUserData; + (void)vk_allocator; + SDL_bool ret = SDL_Vulkan_CreateSurface(vd->Window, (VkInstance)vk_instance, (VkSurfaceKHR*)out_vk_surface); + return ret ? 0 : 1; // ret ? VK_SUCCESS : VK_NOT_READY +} +#endif // SDL_HAS_VULKAN + +static void ImGui_ImplSDL2_InitPlatformInterface(SDL_Window* window, void* sdl_gl_context) +{ + // Register platform interface (will be coupled with a renderer interface) + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Platform_CreateWindow = ImGui_ImplSDL2_CreateWindow; + platform_io.Platform_DestroyWindow = ImGui_ImplSDL2_DestroyWindow; + platform_io.Platform_ShowWindow = ImGui_ImplSDL2_ShowWindow; + platform_io.Platform_SetWindowPos = ImGui_ImplSDL2_SetWindowPos; + platform_io.Platform_GetWindowPos = ImGui_ImplSDL2_GetWindowPos; + platform_io.Platform_SetWindowSize = ImGui_ImplSDL2_SetWindowSize; + platform_io.Platform_GetWindowSize = ImGui_ImplSDL2_GetWindowSize; + platform_io.Platform_SetWindowFocus = ImGui_ImplSDL2_SetWindowFocus; + platform_io.Platform_GetWindowFocus = ImGui_ImplSDL2_GetWindowFocus; + platform_io.Platform_GetWindowMinimized = ImGui_ImplSDL2_GetWindowMinimized; + platform_io.Platform_SetWindowTitle = ImGui_ImplSDL2_SetWindowTitle; + platform_io.Platform_RenderWindow = ImGui_ImplSDL2_RenderWindow; + platform_io.Platform_SwapBuffers = ImGui_ImplSDL2_SwapBuffers; +#if SDL_HAS_WINDOW_ALPHA + platform_io.Platform_SetWindowAlpha = ImGui_ImplSDL2_SetWindowAlpha; +#endif +#if SDL_HAS_VULKAN + platform_io.Platform_CreateVkSurface = ImGui_ImplSDL2_CreateVkSurface; +#endif + + // Register main window handle (which is owned by the main application, not by us) + // This is mostly for simplicity and consistency, so that our code (e.g. mouse handling etc.) can use same logic for main and secondary viewports. + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGui_ImplSDL2_ViewportData* vd = IM_NEW(ImGui_ImplSDL2_ViewportData)(); + vd->Window = window; + vd->WindowID = SDL_GetWindowID(window); + vd->WindowOwned = false; + vd->GLContext = sdl_gl_context; + main_viewport->PlatformUserData = vd; + main_viewport->PlatformHandle = vd->Window; +} + +static void ImGui_ImplSDL2_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl2.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl2.h new file mode 100644 index 0000000..dee37fb --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl2.h @@ -0,0 +1,46 @@ +// dear imgui: Platform Backend for SDL2 +// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) +// (Info: SDL2 is a cross-platform general purpose library for handling windows, inputs, graphics context creation, etc.) + +// Implemented features: +// [X] Platform: Clipboard support. +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen. +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy SDL_SCANCODE_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// [X] Platform: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. +// Missing features: +// [ ] Platform: Multi-viewport + Minimized windows seems to break mouse wheel events (at least under Windows). +// [x] Platform: Basic IME support. App needs to call 'SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1");' before SDL_CreateWindow()!. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +struct SDL_Window; +struct SDL_Renderer; +typedef union SDL_Event SDL_Event; + +IMGUI_IMPL_API bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window, void* sdl_gl_context); +IMGUI_IMPL_API bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window); +IMGUI_IMPL_API bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window); +IMGUI_IMPL_API bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window); +IMGUI_IMPL_API bool ImGui_ImplSDL2_InitForSDLRenderer(SDL_Window* window, SDL_Renderer* renderer); +IMGUI_IMPL_API bool ImGui_ImplSDL2_InitForOther(SDL_Window* window); +IMGUI_IMPL_API void ImGui_ImplSDL2_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplSDL2_NewFrame(); +IMGUI_IMPL_API bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event); + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +static inline void ImGui_ImplSDL2_NewFrame(SDL_Window*) { ImGui_ImplSDL2_NewFrame(); } // 1.84: removed unnecessary parameter +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl3.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl3.cpp new file mode 100644 index 0000000..0e91cc7 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl3.cpp @@ -0,0 +1,977 @@ +// dear imgui: Platform Backend for SDL3 (*EXPERIMENTAL*) +// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) +// (Info: SDL3 is a cross-platform general purpose library for handling windows, inputs, graphics context creation, etc.) +// (IMPORTANT: SDL 3.0.0 is NOT YET RELEASED. IT IS POSSIBLE THAT ITS SPECS/API WILL CHANGE BEFORE RELEASE) + +// Implemented features: +// [X] Platform: Clipboard support. +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen. +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy SDL_SCANCODE_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// [x] Platform: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable' -> the OS animation effect when window gets created/destroyed is problematic. SDL2 backend doesn't have issue. +// Missing features: +// [ ] Platform: Multi-viewport + Minimized windows seems to break mouse wheel events (at least under Windows). +// [x] Platform: Basic IME support. Position somehow broken in SDL3 + app needs to call 'SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1");' before SDL_CreateWindow()!. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2023-10-05: Inputs: Added support for extra ImGuiKey values: F13 to F24 function keys, app back/forward keys. +// 2023-05-04: Fixed build on Emscripten/iOS/Android. (#6391) +// 2023-04-06: Inputs: Avoid calling SDL_StartTextInput()/SDL_StopTextInput() as they don't only pertain to IME. It's unclear exactly what their relation is to IME. (#6306) +// 2023-04-04: Inputs: Added support for io.AddMouseSourceEvent() to discriminate ImGuiMouseSource_Mouse/ImGuiMouseSource_TouchScreen. (#2702) +// 2023-02-23: Accept SDL_GetPerformanceCounter() not returning a monotonically increasing value. (#6189, #6114, #3644) +// 2023-02-07: Forked "imgui_impl_sdl2" into "imgui_impl_sdl3". Removed version checks for old feature. Refer to imgui_impl_sdl2.cpp for older changelog. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_sdl3.h" + +// Clang warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#endif + +// SDL +#include +#include +#if defined(__APPLE__) +#include +#endif + +#if !defined(__EMSCRIPTEN__) && !defined(__ANDROID__) && !(defined(__APPLE__) && TARGET_OS_IOS) && !defined(__amigaos4__) +#define SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE 1 +#else +#define SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE 0 +#endif + +// SDL Data +struct ImGui_ImplSDL3_Data +{ + SDL_Window* Window; + SDL_Renderer* Renderer; + Uint64 Time; + Uint32 MouseWindowID; + int MouseButtonsDown; + SDL_Cursor* MouseCursors[ImGuiMouseCursor_COUNT]; + SDL_Cursor* LastMouseCursor; + int PendingMouseLeaveFrame; + char* ClipboardTextData; + bool MouseCanUseGlobalState; + bool MouseCanReportHoveredViewport; // This is hard to use/unreliable on SDL so we'll set ImGuiBackendFlags_HasMouseHoveredViewport dynamically based on state. + bool UseVulkan; + bool WantUpdateMonitors; + + ImGui_ImplSDL3_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendPlatformUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +// FIXME: multi-context support is not well tested and probably dysfunctional in this backend. +// FIXME: some shared resources (mouse cursor shape, gamepad) are mishandled when using multi-context. +static ImGui_ImplSDL3_Data* ImGui_ImplSDL3_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplSDL3_Data*)ImGui::GetIO().BackendPlatformUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplSDL3_UpdateMonitors(); +static void ImGui_ImplSDL3_InitPlatformInterface(SDL_Window* window, void* sdl_gl_context); +static void ImGui_ImplSDL3_ShutdownPlatformInterface(); + +// Functions +static const char* ImGui_ImplSDL3_GetClipboardText(void*) +{ + ImGui_ImplSDL3_Data* bd = ImGui_ImplSDL3_GetBackendData(); + if (bd->ClipboardTextData) + SDL_free(bd->ClipboardTextData); + bd->ClipboardTextData = SDL_GetClipboardText(); + return bd->ClipboardTextData; +} + +static void ImGui_ImplSDL3_SetClipboardText(void*, const char* text) +{ + SDL_SetClipboardText(text); +} + +static void ImGui_ImplSDL3_SetPlatformImeData(ImGuiViewport* viewport, ImGuiPlatformImeData* data) +{ + if (data->WantVisible) + { + SDL_Rect r; + r.x = (int)(data->InputPos.x - viewport->Pos.x); + r.y = (int)(data->InputPos.y - viewport->Pos.y + data->InputLineHeight); + r.w = 1; + r.h = (int)data->InputLineHeight; + SDL_SetTextInputRect(&r); + } +} + +static ImGuiKey ImGui_ImplSDL3_KeycodeToImGuiKey(int keycode) +{ + switch (keycode) + { + case SDLK_TAB: return ImGuiKey_Tab; + case SDLK_LEFT: return ImGuiKey_LeftArrow; + case SDLK_RIGHT: return ImGuiKey_RightArrow; + case SDLK_UP: return ImGuiKey_UpArrow; + case SDLK_DOWN: return ImGuiKey_DownArrow; + case SDLK_PAGEUP: return ImGuiKey_PageUp; + case SDLK_PAGEDOWN: return ImGuiKey_PageDown; + case SDLK_HOME: return ImGuiKey_Home; + case SDLK_END: return ImGuiKey_End; + case SDLK_INSERT: return ImGuiKey_Insert; + case SDLK_DELETE: return ImGuiKey_Delete; + case SDLK_BACKSPACE: return ImGuiKey_Backspace; + case SDLK_SPACE: return ImGuiKey_Space; + case SDLK_RETURN: return ImGuiKey_Enter; + case SDLK_ESCAPE: return ImGuiKey_Escape; + case SDLK_QUOTE: return ImGuiKey_Apostrophe; + case SDLK_COMMA: return ImGuiKey_Comma; + case SDLK_MINUS: return ImGuiKey_Minus; + case SDLK_PERIOD: return ImGuiKey_Period; + case SDLK_SLASH: return ImGuiKey_Slash; + case SDLK_SEMICOLON: return ImGuiKey_Semicolon; + case SDLK_EQUALS: return ImGuiKey_Equal; + case SDLK_LEFTBRACKET: return ImGuiKey_LeftBracket; + case SDLK_BACKSLASH: return ImGuiKey_Backslash; + case SDLK_RIGHTBRACKET: return ImGuiKey_RightBracket; + case SDLK_BACKQUOTE: return ImGuiKey_GraveAccent; + case SDLK_CAPSLOCK: return ImGuiKey_CapsLock; + case SDLK_SCROLLLOCK: return ImGuiKey_ScrollLock; + case SDLK_NUMLOCKCLEAR: return ImGuiKey_NumLock; + case SDLK_PRINTSCREEN: return ImGuiKey_PrintScreen; + case SDLK_PAUSE: return ImGuiKey_Pause; + case SDLK_KP_0: return ImGuiKey_Keypad0; + case SDLK_KP_1: return ImGuiKey_Keypad1; + case SDLK_KP_2: return ImGuiKey_Keypad2; + case SDLK_KP_3: return ImGuiKey_Keypad3; + case SDLK_KP_4: return ImGuiKey_Keypad4; + case SDLK_KP_5: return ImGuiKey_Keypad5; + case SDLK_KP_6: return ImGuiKey_Keypad6; + case SDLK_KP_7: return ImGuiKey_Keypad7; + case SDLK_KP_8: return ImGuiKey_Keypad8; + case SDLK_KP_9: return ImGuiKey_Keypad9; + case SDLK_KP_PERIOD: return ImGuiKey_KeypadDecimal; + case SDLK_KP_DIVIDE: return ImGuiKey_KeypadDivide; + case SDLK_KP_MULTIPLY: return ImGuiKey_KeypadMultiply; + case SDLK_KP_MINUS: return ImGuiKey_KeypadSubtract; + case SDLK_KP_PLUS: return ImGuiKey_KeypadAdd; + case SDLK_KP_ENTER: return ImGuiKey_KeypadEnter; + case SDLK_KP_EQUALS: return ImGuiKey_KeypadEqual; + case SDLK_LCTRL: return ImGuiKey_LeftCtrl; + case SDLK_LSHIFT: return ImGuiKey_LeftShift; + case SDLK_LALT: return ImGuiKey_LeftAlt; + case SDLK_LGUI: return ImGuiKey_LeftSuper; + case SDLK_RCTRL: return ImGuiKey_RightCtrl; + case SDLK_RSHIFT: return ImGuiKey_RightShift; + case SDLK_RALT: return ImGuiKey_RightAlt; + case SDLK_RGUI: return ImGuiKey_RightSuper; + case SDLK_APPLICATION: return ImGuiKey_Menu; + case SDLK_0: return ImGuiKey_0; + case SDLK_1: return ImGuiKey_1; + case SDLK_2: return ImGuiKey_2; + case SDLK_3: return ImGuiKey_3; + case SDLK_4: return ImGuiKey_4; + case SDLK_5: return ImGuiKey_5; + case SDLK_6: return ImGuiKey_6; + case SDLK_7: return ImGuiKey_7; + case SDLK_8: return ImGuiKey_8; + case SDLK_9: return ImGuiKey_9; + case SDLK_a: return ImGuiKey_A; + case SDLK_b: return ImGuiKey_B; + case SDLK_c: return ImGuiKey_C; + case SDLK_d: return ImGuiKey_D; + case SDLK_e: return ImGuiKey_E; + case SDLK_f: return ImGuiKey_F; + case SDLK_g: return ImGuiKey_G; + case SDLK_h: return ImGuiKey_H; + case SDLK_i: return ImGuiKey_I; + case SDLK_j: return ImGuiKey_J; + case SDLK_k: return ImGuiKey_K; + case SDLK_l: return ImGuiKey_L; + case SDLK_m: return ImGuiKey_M; + case SDLK_n: return ImGuiKey_N; + case SDLK_o: return ImGuiKey_O; + case SDLK_p: return ImGuiKey_P; + case SDLK_q: return ImGuiKey_Q; + case SDLK_r: return ImGuiKey_R; + case SDLK_s: return ImGuiKey_S; + case SDLK_t: return ImGuiKey_T; + case SDLK_u: return ImGuiKey_U; + case SDLK_v: return ImGuiKey_V; + case SDLK_w: return ImGuiKey_W; + case SDLK_x: return ImGuiKey_X; + case SDLK_y: return ImGuiKey_Y; + case SDLK_z: return ImGuiKey_Z; + case SDLK_F1: return ImGuiKey_F1; + case SDLK_F2: return ImGuiKey_F2; + case SDLK_F3: return ImGuiKey_F3; + case SDLK_F4: return ImGuiKey_F4; + case SDLK_F5: return ImGuiKey_F5; + case SDLK_F6: return ImGuiKey_F6; + case SDLK_F7: return ImGuiKey_F7; + case SDLK_F8: return ImGuiKey_F8; + case SDLK_F9: return ImGuiKey_F9; + case SDLK_F10: return ImGuiKey_F10; + case SDLK_F11: return ImGuiKey_F11; + case SDLK_F12: return ImGuiKey_F12; + case SDLK_F13: return ImGuiKey_F13; + case SDLK_F14: return ImGuiKey_F14; + case SDLK_F15: return ImGuiKey_F15; + case SDLK_F16: return ImGuiKey_F16; + case SDLK_F17: return ImGuiKey_F17; + case SDLK_F18: return ImGuiKey_F18; + case SDLK_F19: return ImGuiKey_F19; + case SDLK_F20: return ImGuiKey_F20; + case SDLK_F21: return ImGuiKey_F21; + case SDLK_F22: return ImGuiKey_F22; + case SDLK_F23: return ImGuiKey_F23; + case SDLK_F24: return ImGuiKey_F24; + case SDLK_AC_BACK: return ImGuiKey_AppBack; + case SDLK_AC_FORWARD: return ImGuiKey_AppForward; + } + return ImGuiKey_None; +} + +static void ImGui_ImplSDL3_UpdateKeyModifiers(SDL_Keymod sdl_key_mods) +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddKeyEvent(ImGuiMod_Ctrl, (sdl_key_mods & SDL_KMOD_CTRL) != 0); + io.AddKeyEvent(ImGuiMod_Shift, (sdl_key_mods & SDL_KMOD_SHIFT) != 0); + io.AddKeyEvent(ImGuiMod_Alt, (sdl_key_mods & SDL_KMOD_ALT) != 0); + io.AddKeyEvent(ImGuiMod_Super, (sdl_key_mods & SDL_KMOD_GUI) != 0); +} + +// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. +// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. +// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. +// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. +// If you have multiple SDL events and some of them are not meant to be used by dear imgui, you may need to filter events based on their windowID field. +bool ImGui_ImplSDL3_ProcessEvent(const SDL_Event* event) +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplSDL3_Data* bd = ImGui_ImplSDL3_GetBackendData(); + + switch (event->type) + { + case SDL_EVENT_MOUSE_MOTION: + { + ImVec2 mouse_pos((float)event->motion.x, (float)event->motion.y); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + int window_x, window_y; + SDL_GetWindowPosition(SDL_GetWindowFromID(event->motion.windowID), &window_x, &window_y); + mouse_pos.x += window_x; + mouse_pos.y += window_y; + } + io.AddMouseSourceEvent(event->motion.which == SDL_TOUCH_MOUSEID ? ImGuiMouseSource_TouchScreen : ImGuiMouseSource_Mouse); + io.AddMousePosEvent(mouse_pos.x, mouse_pos.y); + return true; + } + case SDL_EVENT_MOUSE_WHEEL: + { + //IMGUI_DEBUG_LOG("wheel %.2f %.2f, precise %.2f %.2f\n", (float)event->wheel.x, (float)event->wheel.y, event->wheel.preciseX, event->wheel.preciseY); + float wheel_x = -event->wheel.x; + float wheel_y = event->wheel.y; + #ifdef __EMSCRIPTEN__ + wheel_x /= 100.0f; + #endif + io.AddMouseSourceEvent(event->wheel.which == SDL_TOUCH_MOUSEID ? ImGuiMouseSource_TouchScreen : ImGuiMouseSource_Mouse); + io.AddMouseWheelEvent(wheel_x, wheel_y); + return true; + } + case SDL_EVENT_MOUSE_BUTTON_DOWN: + case SDL_EVENT_MOUSE_BUTTON_UP: + { + int mouse_button = -1; + if (event->button.button == SDL_BUTTON_LEFT) { mouse_button = 0; } + if (event->button.button == SDL_BUTTON_RIGHT) { mouse_button = 1; } + if (event->button.button == SDL_BUTTON_MIDDLE) { mouse_button = 2; } + if (event->button.button == SDL_BUTTON_X1) { mouse_button = 3; } + if (event->button.button == SDL_BUTTON_X2) { mouse_button = 4; } + if (mouse_button == -1) + break; + io.AddMouseSourceEvent(event->button.which == SDL_TOUCH_MOUSEID ? ImGuiMouseSource_TouchScreen : ImGuiMouseSource_Mouse); + io.AddMouseButtonEvent(mouse_button, (event->type == SDL_EVENT_MOUSE_BUTTON_DOWN)); + bd->MouseButtonsDown = (event->type == SDL_EVENT_MOUSE_BUTTON_DOWN) ? (bd->MouseButtonsDown | (1 << mouse_button)) : (bd->MouseButtonsDown & ~(1 << mouse_button)); + return true; + } + case SDL_EVENT_TEXT_INPUT: + { + io.AddInputCharactersUTF8(event->text.text); + return true; + } + case SDL_EVENT_KEY_DOWN: + case SDL_EVENT_KEY_UP: + { + ImGui_ImplSDL3_UpdateKeyModifiers((SDL_Keymod)event->key.keysym.mod); + ImGuiKey key = ImGui_ImplSDL3_KeycodeToImGuiKey(event->key.keysym.sym); + io.AddKeyEvent(key, (event->type == SDL_EVENT_KEY_DOWN)); + io.SetKeyEventNativeData(key, event->key.keysym.sym, event->key.keysym.scancode, event->key.keysym.scancode); // To support legacy indexing (<1.87 user code). Legacy backend uses SDLK_*** as indices to IsKeyXXX() functions. + return true; + } + case SDL_EVENT_DISPLAY_ORIENTATION: + case SDL_EVENT_DISPLAY_CONNECTED: + case SDL_EVENT_DISPLAY_DISCONNECTED: + case SDL_EVENT_DISPLAY_MOVED: + case SDL_EVENT_DISPLAY_CONTENT_SCALE_CHANGED: + { + bd->WantUpdateMonitors = true; + return true; + } + case SDL_EVENT_WINDOW_MOUSE_ENTER: + { + bd->MouseWindowID = event->window.windowID; + bd->PendingMouseLeaveFrame = 0; + return true; + } + // - In some cases, when detaching a window from main viewport SDL may send SDL_WINDOWEVENT_ENTER one frame too late, + // causing SDL_WINDOWEVENT_LEAVE on previous frame to interrupt drag operation by clear mouse position. This is why + // we delay process the SDL_WINDOWEVENT_LEAVE events by one frame. See issue #5012 for details. + // FIXME: Unconfirmed whether this is still needed with SDL3. + case SDL_EVENT_WINDOW_MOUSE_LEAVE: + { + bd->PendingMouseLeaveFrame = ImGui::GetFrameCount() + 1; + return true; + } + case SDL_EVENT_WINDOW_FOCUS_GAINED: + io.AddFocusEvent(true); + return true; + case SDL_EVENT_WINDOW_FOCUS_LOST: + io.AddFocusEvent(false); + return true; + case SDL_EVENT_WINDOW_CLOSE_REQUESTED: + case SDL_EVENT_WINDOW_MOVED: + case SDL_EVENT_WINDOW_RESIZED: + if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle((void*)SDL_GetWindowFromID(event->window.windowID))) + { + if (event->type == SDL_EVENT_WINDOW_CLOSE_REQUESTED) + viewport->PlatformRequestClose = true; + if (event->type == SDL_EVENT_WINDOW_MOVED) + viewport->PlatformRequestMove = true; + if (event->type == SDL_EVENT_WINDOW_RESIZED) + viewport->PlatformRequestResize = true; + return true; + } + return true; + } + return false; +} + +static bool ImGui_ImplSDL3_Init(SDL_Window* window, SDL_Renderer* renderer, void* sdl_gl_context) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendPlatformUserData == nullptr && "Already initialized a platform backend!"); + + // Check and store if we are on a SDL backend that supports global mouse position + // ("wayland" and "rpi" don't support it, but we chose to use a white-list instead of a black-list) + bool mouse_can_use_global_state = false; +#if SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE + const char* sdl_backend = SDL_GetCurrentVideoDriver(); + const char* global_mouse_whitelist[] = { "windows", "cocoa", "x11", "DIVE", "VMAN" }; + for (int n = 0; n < IM_ARRAYSIZE(global_mouse_whitelist); n++) + if (strncmp(sdl_backend, global_mouse_whitelist[n], strlen(global_mouse_whitelist[n])) == 0) + mouse_can_use_global_state = true; +#endif + + // Setup backend capabilities flags + ImGui_ImplSDL3_Data* bd = IM_NEW(ImGui_ImplSDL3_Data)(); + io.BackendPlatformUserData = (void*)bd; + io.BackendPlatformName = "imgui_impl_sdl3"; + io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) + io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used) + if (mouse_can_use_global_state) + io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports; // We can create multi-viewports on the Platform side (optional) + + bd->Window = window; + bd->Renderer = renderer; + + // SDL on Linux/OSX doesn't report events for unfocused windows (see https://github.com/ocornut/imgui/issues/4960) + // We will use 'MouseCanReportHoveredViewport' to set 'ImGuiBackendFlags_HasMouseHoveredViewport' dynamically each frame. + bd->MouseCanUseGlobalState = mouse_can_use_global_state; +#ifndef __APPLE__ + bd->MouseCanReportHoveredViewport = bd->MouseCanUseGlobalState; +#else + bd->MouseCanReportHoveredViewport = false; +#endif + bd->WantUpdateMonitors = true; + + io.SetClipboardTextFn = ImGui_ImplSDL3_SetClipboardText; + io.GetClipboardTextFn = ImGui_ImplSDL3_GetClipboardText; + io.ClipboardUserData = nullptr; + io.SetPlatformImeDataFn = ImGui_ImplSDL3_SetPlatformImeData; + + // Load mouse cursors + bd->MouseCursors[ImGuiMouseCursor_Arrow] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW); + bd->MouseCursors[ImGuiMouseCursor_TextInput] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_IBEAM); + bd->MouseCursors[ImGuiMouseCursor_ResizeAll] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEALL); + bd->MouseCursors[ImGuiMouseCursor_ResizeNS] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENS); + bd->MouseCursors[ImGuiMouseCursor_ResizeEW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEWE); + bd->MouseCursors[ImGuiMouseCursor_ResizeNESW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENESW); + bd->MouseCursors[ImGuiMouseCursor_ResizeNWSE] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENWSE); + bd->MouseCursors[ImGuiMouseCursor_Hand] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_HAND); + bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_NO); + + // Set platform dependent data in viewport + // Our mouse update function expect PlatformHandle to be filled for the main viewport + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + main_viewport->PlatformHandle = (void*)window; + main_viewport->PlatformHandleRaw = nullptr; + SDL_SysWMinfo info; + if (SDL_GetWindowWMInfo(window, &info, SDL_SYSWM_CURRENT_VERSION) == 0) + { +#if defined(SDL_ENABLE_SYSWM_WINDOWS) + main_viewport->PlatformHandleRaw = (void*)info.info.win.window; +#elif defined(__APPLE__) && defined(SDL_ENABLE_SYSWM_COCOA) + main_viewport->PlatformHandleRaw = (void*)info.info.cocoa.window; +#endif + } + + // From 2.0.5: Set SDL hint to receive mouse click events on window focus, otherwise SDL doesn't emit the event. + // Without this, when clicking to gain focus, our widgets wouldn't activate even though they showed as hovered. + // (This is unfortunately a global SDL setting, so enabling it might have a side-effect on your application. + // It is unlikely to make a difference, but if your app absolutely needs to ignore the initial on-focus click: + // you can ignore SDL_EVENT_MOUSE_BUTTON_DOWN events coming right after a SDL_WINDOWEVENT_FOCUS_GAINED) + SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1"); + + // From 2.0.22: Disable auto-capture, this is preventing drag and drop across multiple windows (see #5710) + SDL_SetHint(SDL_HINT_MOUSE_AUTO_CAPTURE, "0"); + + // SDL 3.x : see https://github.com/libsdl-org/SDL/issues/6659 + SDL_SetHint("SDL_BORDERLESS_WINDOWED_STYLE", "0"); + + // We need SDL_CaptureMouse(), SDL_GetGlobalMouseState() from SDL 2.0.4+ to support multiple viewports. + // We left the call to ImGui_ImplSDL3_InitPlatformInterface() outside of #ifdef to avoid unused-function warnings. + if ((io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) && (io.BackendFlags & ImGuiBackendFlags_PlatformHasViewports)) + ImGui_ImplSDL3_InitPlatformInterface(window, sdl_gl_context); + + return true; +} + +bool ImGui_ImplSDL3_InitForOpenGL(SDL_Window* window, void* sdl_gl_context) +{ + return ImGui_ImplSDL3_Init(window, nullptr, sdl_gl_context); +} + +bool ImGui_ImplSDL3_InitForVulkan(SDL_Window* window) +{ + if (!ImGui_ImplSDL3_Init(window, nullptr, nullptr)) + return false; + ImGui_ImplSDL3_Data* bd = ImGui_ImplSDL3_GetBackendData(); + bd->UseVulkan = true; + return true; +} + +bool ImGui_ImplSDL3_InitForD3D(SDL_Window* window) +{ +#if !defined(_WIN32) + IM_ASSERT(0 && "Unsupported"); +#endif + return ImGui_ImplSDL3_Init(window, nullptr, nullptr); +} + +bool ImGui_ImplSDL3_InitForMetal(SDL_Window* window) +{ + return ImGui_ImplSDL3_Init(window, nullptr, nullptr); +} + +bool ImGui_ImplSDL3_InitForSDLRenderer(SDL_Window* window, SDL_Renderer* renderer) +{ + return ImGui_ImplSDL3_Init(window, renderer, nullptr); +} + +bool ImGui_ImplSDL3_InitForOther(SDL_Window* window) +{ + return ImGui_ImplSDL3_Init(window, nullptr, nullptr); +} + +void ImGui_ImplSDL3_Shutdown() +{ + ImGui_ImplSDL3_Data* bd = ImGui_ImplSDL3_GetBackendData(); + IM_ASSERT(bd != nullptr && "No platform backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplSDL3_ShutdownPlatformInterface(); + + if (bd->ClipboardTextData) + SDL_free(bd->ClipboardTextData); + for (ImGuiMouseCursor cursor_n = 0; cursor_n < ImGuiMouseCursor_COUNT; cursor_n++) + SDL_DestroyCursor(bd->MouseCursors[cursor_n]); + bd->LastMouseCursor = nullptr; + + io.BackendPlatformName = nullptr; + io.BackendPlatformUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_HasMouseCursors | ImGuiBackendFlags_HasSetMousePos | ImGuiBackendFlags_HasGamepad | ImGuiBackendFlags_PlatformHasViewports | ImGuiBackendFlags_HasMouseHoveredViewport); + IM_DELETE(bd); +} + +// This code is incredibly messy because some of the functions we need for full viewport support are not available in SDL < 2.0.4. +static void ImGui_ImplSDL3_UpdateMouseData() +{ + ImGui_ImplSDL3_Data* bd = ImGui_ImplSDL3_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + + // We forward mouse input when hovered or captured (via SDL_EVENT_MOUSE_MOTION) or when focused (below) +#if SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE + // SDL_CaptureMouse() let the OS know e.g. that our imgui drag outside the SDL window boundaries shouldn't e.g. trigger other operations outside + SDL_CaptureMouse((bd->MouseButtonsDown != 0) ? SDL_TRUE : SDL_FALSE); + SDL_Window* focused_window = SDL_GetKeyboardFocus(); + const bool is_app_focused = (focused_window && (bd->Window == focused_window || ImGui::FindViewportByPlatformHandle((void*)focused_window))); +#else + SDL_Window* focused_window = bd->Window; + const bool is_app_focused = (SDL_GetWindowFlags(bd->Window) & SDL_WINDOW_INPUT_FOCUS) != 0; // SDL 2.0.3 and non-windowed systems: single-viewport only +#endif + if (is_app_focused) + { + // (Optional) Set OS mouse position from Dear ImGui if requested (rarely used, only when ImGuiConfigFlags_NavEnableSetMousePos is enabled by user) + if (io.WantSetMousePos) + { +#if SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + SDL_WarpMouseGlobal(io.MousePos.x, io.MousePos.y); + else +#endif + SDL_WarpMouseInWindow(bd->Window, io.MousePos.x, io.MousePos.y); + } + + // (Optional) Fallback to provide mouse position when focused (SDL_EVENT_MOUSE_MOTION already provides this when hovered or captured) + if (bd->MouseCanUseGlobalState && bd->MouseButtonsDown == 0) + { + // Single-viewport mode: mouse position in client window coordinates (io.MousePos is (0,0) when the mouse is on the upper-left corner of the app window) + // Multi-viewport mode: mouse position in OS absolute coordinates (io.MousePos is (0,0) when the mouse is on the upper-left of the primary monitor) + float mouse_x, mouse_y; + int window_x, window_y; + SDL_GetGlobalMouseState(&mouse_x, &mouse_y); + if (!(io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)) + { + SDL_GetWindowPosition(focused_window, &window_x, &window_y); + mouse_x -= window_x; + mouse_y -= window_y; + } + io.AddMousePosEvent((float)mouse_x, (float)mouse_y); + } + } + + // (Optional) When using multiple viewports: call io.AddMouseViewportEvent() with the viewport the OS mouse cursor is hovering. + // If ImGuiBackendFlags_HasMouseHoveredViewport is not set by the backend, Dear imGui will ignore this field and infer the information using its flawed heuristic. + // - [!] SDL backend does NOT correctly ignore viewports with the _NoInputs flag. + // Some backend are not able to handle that correctly. If a backend report an hovered viewport that has the _NoInputs flag (e.g. when dragging a window + // for docking, the viewport has the _NoInputs flag in order to allow us to find the viewport under), then Dear ImGui is forced to ignore the value reported + // by the backend, and use its flawed heuristic to guess the viewport behind. + // - [X] SDL backend correctly reports this regardless of another viewport behind focused and dragged from (we need this to find a useful drag and drop target). + if (io.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport) + { + ImGuiID mouse_viewport_id = 0; + if (SDL_Window* sdl_mouse_window = SDL_GetWindowFromID(bd->MouseWindowID)) + if (ImGuiViewport* mouse_viewport = ImGui::FindViewportByPlatformHandle((void*)sdl_mouse_window)) + mouse_viewport_id = mouse_viewport->ID; + io.AddMouseViewportEvent(mouse_viewport_id); + } +} + +static void ImGui_ImplSDL3_UpdateMouseCursor() +{ + ImGuiIO& io = ImGui::GetIO(); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) + return; + ImGui_ImplSDL3_Data* bd = ImGui_ImplSDL3_GetBackendData(); + + ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); + if (io.MouseDrawCursor || imgui_cursor == ImGuiMouseCursor_None) + { + // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor + SDL_HideCursor(); + } + else + { + // Show OS mouse cursor + SDL_Cursor* expected_cursor = bd->MouseCursors[imgui_cursor] ? bd->MouseCursors[imgui_cursor] : bd->MouseCursors[ImGuiMouseCursor_Arrow]; + if (bd->LastMouseCursor != expected_cursor) + { + SDL_SetCursor(expected_cursor); // SDL function doesn't have an early out (see #6113) + bd->LastMouseCursor = expected_cursor; + } + SDL_ShowCursor(); + } +} + +static void ImGui_ImplSDL3_UpdateGamepads() +{ + ImGuiIO& io = ImGui::GetIO(); + if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) // FIXME: Technically feeding gamepad shouldn't depend on this now that they are regular inputs. + return; + + // Get gamepad + io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; + SDL_Gamepad* gamepad = SDL_OpenGamepad(0); + if (!gamepad) + return; + io.BackendFlags |= ImGuiBackendFlags_HasGamepad; + + // Update gamepad inputs + #define IM_SATURATE(V) (V < 0.0f ? 0.0f : V > 1.0f ? 1.0f : V) + #define MAP_BUTTON(KEY_NO, BUTTON_NO) { io.AddKeyEvent(KEY_NO, SDL_GetGamepadButton(gamepad, BUTTON_NO) != 0); } + #define MAP_ANALOG(KEY_NO, AXIS_NO, V0, V1) { float vn = (float)(SDL_GetGamepadAxis(gamepad, AXIS_NO) - V0) / (float)(V1 - V0); vn = IM_SATURATE(vn); io.AddKeyAnalogEvent(KEY_NO, vn > 0.1f, vn); } + const int thumb_dead_zone = 8000; // SDL_gamecontroller.h suggests using this value. + MAP_BUTTON(ImGuiKey_GamepadStart, SDL_GAMEPAD_BUTTON_START); + MAP_BUTTON(ImGuiKey_GamepadBack, SDL_GAMEPAD_BUTTON_BACK); + MAP_BUTTON(ImGuiKey_GamepadFaceLeft, SDL_GAMEPAD_BUTTON_X); // Xbox X, PS Square + MAP_BUTTON(ImGuiKey_GamepadFaceRight, SDL_GAMEPAD_BUTTON_B); // Xbox B, PS Circle + MAP_BUTTON(ImGuiKey_GamepadFaceUp, SDL_GAMEPAD_BUTTON_Y); // Xbox Y, PS Triangle + MAP_BUTTON(ImGuiKey_GamepadFaceDown, SDL_GAMEPAD_BUTTON_A); // Xbox A, PS Cross + MAP_BUTTON(ImGuiKey_GamepadDpadLeft, SDL_GAMEPAD_BUTTON_DPAD_LEFT); + MAP_BUTTON(ImGuiKey_GamepadDpadRight, SDL_GAMEPAD_BUTTON_DPAD_RIGHT); + MAP_BUTTON(ImGuiKey_GamepadDpadUp, SDL_GAMEPAD_BUTTON_DPAD_UP); + MAP_BUTTON(ImGuiKey_GamepadDpadDown, SDL_GAMEPAD_BUTTON_DPAD_DOWN); + MAP_BUTTON(ImGuiKey_GamepadL1, SDL_GAMEPAD_BUTTON_LEFT_SHOULDER); + MAP_BUTTON(ImGuiKey_GamepadR1, SDL_GAMEPAD_BUTTON_RIGHT_SHOULDER); + MAP_ANALOG(ImGuiKey_GamepadL2, SDL_GAMEPAD_AXIS_LEFT_TRIGGER, 0.0f, 32767); + MAP_ANALOG(ImGuiKey_GamepadR2, SDL_GAMEPAD_AXIS_RIGHT_TRIGGER, 0.0f, 32767); + MAP_BUTTON(ImGuiKey_GamepadL3, SDL_GAMEPAD_BUTTON_LEFT_STICK); + MAP_BUTTON(ImGuiKey_GamepadR3, SDL_GAMEPAD_BUTTON_RIGHT_STICK); + MAP_ANALOG(ImGuiKey_GamepadLStickLeft, SDL_GAMEPAD_AXIS_LEFTX, -thumb_dead_zone, -32768); + MAP_ANALOG(ImGuiKey_GamepadLStickRight, SDL_GAMEPAD_AXIS_LEFTX, +thumb_dead_zone, +32767); + MAP_ANALOG(ImGuiKey_GamepadLStickUp, SDL_GAMEPAD_AXIS_LEFTY, -thumb_dead_zone, -32768); + MAP_ANALOG(ImGuiKey_GamepadLStickDown, SDL_GAMEPAD_AXIS_LEFTY, +thumb_dead_zone, +32767); + MAP_ANALOG(ImGuiKey_GamepadRStickLeft, SDL_GAMEPAD_AXIS_RIGHTX, -thumb_dead_zone, -32768); + MAP_ANALOG(ImGuiKey_GamepadRStickRight, SDL_GAMEPAD_AXIS_RIGHTX, +thumb_dead_zone, +32767); + MAP_ANALOG(ImGuiKey_GamepadRStickUp, SDL_GAMEPAD_AXIS_RIGHTY, -thumb_dead_zone, -32768); + MAP_ANALOG(ImGuiKey_GamepadRStickDown, SDL_GAMEPAD_AXIS_RIGHTY, +thumb_dead_zone, +32767); + #undef MAP_BUTTON + #undef MAP_ANALOG +} + +static void ImGui_ImplSDL3_UpdateMonitors() +{ + ImGui_ImplSDL3_Data* bd = ImGui_ImplSDL3_GetBackendData(); + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Monitors.resize(0); + bd->WantUpdateMonitors = false; + + int display_count; + SDL_DisplayID* displays = SDL_GetDisplays(&display_count); + for (int n = 0; n < display_count; n++) + { + // Warning: the validity of monitor DPI information on Windows depends on the application DPI awareness settings, which generally needs to be set in the manifest or at runtime. + SDL_DisplayID display_id = displays[n]; + ImGuiPlatformMonitor monitor; + SDL_Rect r; + SDL_GetDisplayBounds(display_id, &r); + monitor.MainPos = monitor.WorkPos = ImVec2((float)r.x, (float)r.y); + monitor.MainSize = monitor.WorkSize = ImVec2((float)r.w, (float)r.h); + SDL_GetDisplayUsableBounds(display_id, &r); + monitor.WorkPos = ImVec2((float)r.x, (float)r.y); + monitor.WorkSize = ImVec2((float)r.w, (float)r.h); + // FIXME-VIEWPORT: On MacOS SDL reports actual monitor DPI scale, ignoring OS configuration. We may want to set + // DpiScale to cocoa_window.backingScaleFactor here. + monitor.DpiScale = SDL_GetDisplayContentScale(display_id); + monitor.PlatformHandle = (void*)(intptr_t)n; + platform_io.Monitors.push_back(monitor); + } +} + +void ImGui_ImplSDL3_NewFrame() +{ + ImGui_ImplSDL3_Data* bd = ImGui_ImplSDL3_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplSDL3_Init()?"); + ImGuiIO& io = ImGui::GetIO(); + + // Setup display size (every frame to accommodate for window resizing) + int w, h; + int display_w, display_h; + SDL_GetWindowSize(bd->Window, &w, &h); + if (SDL_GetWindowFlags(bd->Window) & SDL_WINDOW_MINIMIZED) + w = h = 0; + SDL_GetWindowSizeInPixels(bd->Window, &display_w, &display_h); + io.DisplaySize = ImVec2((float)w, (float)h); + if (w > 0 && h > 0) + io.DisplayFramebufferScale = ImVec2((float)display_w / w, (float)display_h / h); + + // Update monitors + if (bd->WantUpdateMonitors) + ImGui_ImplSDL3_UpdateMonitors(); + + // Setup time step (we don't use SDL_GetTicks() because it is using millisecond resolution) + // (Accept SDL_GetPerformanceCounter() not returning a monotonically increasing value. Happens in VMs and Emscripten, see #6189, #6114, #3644) + static Uint64 frequency = SDL_GetPerformanceFrequency(); + Uint64 current_time = SDL_GetPerformanceCounter(); + if (current_time <= bd->Time) + current_time = bd->Time + 1; + io.DeltaTime = bd->Time > 0 ? (float)((double)(current_time - bd->Time) / frequency) : (float)(1.0f / 60.0f); + bd->Time = current_time; + + if (bd->PendingMouseLeaveFrame && bd->PendingMouseLeaveFrame >= ImGui::GetFrameCount() && bd->MouseButtonsDown == 0) + { + bd->MouseWindowID = 0; + bd->PendingMouseLeaveFrame = 0; + io.AddMousePosEvent(-FLT_MAX, -FLT_MAX); + } + + // Our io.AddMouseViewportEvent() calls will only be valid when not capturing. + // Technically speaking testing for 'bd->MouseButtonsDown == 0' would be more rygorous, but testing for payload reduces noise and potential side-effects. + if (bd->MouseCanReportHoveredViewport && ImGui::GetDragDropPayload() == nullptr) + io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport; + else + io.BackendFlags &= ~ImGuiBackendFlags_HasMouseHoveredViewport; + + ImGui_ImplSDL3_UpdateMouseData(); + ImGui_ImplSDL3_UpdateMouseCursor(); + + // Update game controllers (if enabled and available) + ImGui_ImplSDL3_UpdateGamepads(); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +// Helper structure we store in the void* RendererUserData field of each ImGuiViewport to easily retrieve our backend data. +struct ImGui_ImplSDL3_ViewportData +{ + SDL_Window* Window; + Uint32 WindowID; + bool WindowOwned; + SDL_GLContext GLContext; + + ImGui_ImplSDL3_ViewportData() { Window = nullptr; WindowID = 0; WindowOwned = false; GLContext = nullptr; } + ~ImGui_ImplSDL3_ViewportData() { IM_ASSERT(Window == nullptr && GLContext == nullptr); } +}; + +static void ImGui_ImplSDL3_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplSDL3_Data* bd = ImGui_ImplSDL3_GetBackendData(); + ImGui_ImplSDL3_ViewportData* vd = IM_NEW(ImGui_ImplSDL3_ViewportData)(); + viewport->PlatformUserData = vd; + + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGui_ImplSDL3_ViewportData* main_viewport_data = (ImGui_ImplSDL3_ViewportData*)main_viewport->PlatformUserData; + + // Share GL resources with main context + bool use_opengl = (main_viewport_data->GLContext != nullptr); + SDL_GLContext backup_context = nullptr; + if (use_opengl) + { + backup_context = SDL_GL_GetCurrentContext(); + SDL_GL_SetAttribute(SDL_GL_SHARE_WITH_CURRENT_CONTEXT, 1); + SDL_GL_MakeCurrent(main_viewport_data->Window, main_viewport_data->GLContext); + } + + Uint32 sdl_flags = 0; + sdl_flags |= use_opengl ? SDL_WINDOW_OPENGL : (bd->UseVulkan ? SDL_WINDOW_VULKAN : 0); + sdl_flags |= SDL_GetWindowFlags(bd->Window); + sdl_flags |= (viewport->Flags & ImGuiViewportFlags_NoDecoration) ? SDL_WINDOW_BORDERLESS : 0; + sdl_flags |= (viewport->Flags & ImGuiViewportFlags_NoDecoration) ? 0 : SDL_WINDOW_RESIZABLE; +#if !defined(_WIN32) + // See SDL hack in ImGui_ImplSDL3_ShowWindow(). + sdl_flags |= (viewport->Flags & ImGuiViewportFlags_NoTaskBarIcon) ? SDL_WINDOW_UTILITY : 0; +#endif + sdl_flags |= (viewport->Flags & ImGuiViewportFlags_TopMost) ? SDL_WINDOW_ALWAYS_ON_TOP : 0; + vd->Window = SDL_CreateWindow("No Title Yet", (int)viewport->Size.x, (int)viewport->Size.y, sdl_flags); + SDL_SetWindowPosition(vd->Window, (int)viewport->Pos.x, (int)viewport->Pos.y); + vd->WindowOwned = true; + if (use_opengl) + { + vd->GLContext = SDL_GL_CreateContext(vd->Window); + SDL_GL_SetSwapInterval(0); + } + if (use_opengl && backup_context) + SDL_GL_MakeCurrent(vd->Window, backup_context); + + viewport->PlatformHandle = (void*)vd->Window; + viewport->PlatformHandleRaw = nullptr; + SDL_SysWMinfo info; + if (SDL_GetWindowWMInfo(vd->Window, &info, SDL_SYSWM_CURRENT_VERSION)) + { +#if defined(SDL_VIDEO_DRIVER_WINDOWS) + viewport->PlatformHandleRaw = info.info.win.window; +#elif defined(__APPLE__) && defined(SDL_VIDEO_DRIVER_COCOA) + viewport->PlatformHandleRaw = (void*)info.info.cocoa.window; +#endif + } +} + +static void ImGui_ImplSDL3_DestroyWindow(ImGuiViewport* viewport) +{ + if (ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData) + { + if (vd->GLContext && vd->WindowOwned) + SDL_GL_DeleteContext(vd->GLContext); + if (vd->Window && vd->WindowOwned) + SDL_DestroyWindow(vd->Window); + vd->GLContext = nullptr; + vd->Window = nullptr; + IM_DELETE(vd); + } + viewport->PlatformUserData = viewport->PlatformHandle = nullptr; +} + +static void ImGui_ImplSDL3_ShowWindow(ImGuiViewport* viewport) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; +#if defined(_WIN32) + HWND hwnd = (HWND)viewport->PlatformHandleRaw; + + // SDL hack: Hide icon from task bar + // Note: SDL 3.0.0+ has a SDL_WINDOW_UTILITY flag which is supported under Windows but the way it create the window breaks our seamless transition. + if (viewport->Flags & ImGuiViewportFlags_NoTaskBarIcon) + { + LONG ex_style = ::GetWindowLong(hwnd, GWL_EXSTYLE); + ex_style &= ~WS_EX_APPWINDOW; + ex_style |= WS_EX_TOOLWINDOW; + ::SetWindowLong(hwnd, GWL_EXSTYLE, ex_style); + } + + // SDL hack: SDL always activate/focus windows :/ + if (viewport->Flags & ImGuiViewportFlags_NoFocusOnAppearing) + { + ::ShowWindow(hwnd, SW_SHOWNA); + return; + } +#endif + + SDL_ShowWindow(vd->Window); +} + +static ImVec2 ImGui_ImplSDL3_GetWindowPos(ImGuiViewport* viewport) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + int x = 0, y = 0; + SDL_GetWindowPosition(vd->Window, &x, &y); + return ImVec2((float)x, (float)y); +} + +static void ImGui_ImplSDL3_SetWindowPos(ImGuiViewport* viewport, ImVec2 pos) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + SDL_SetWindowPosition(vd->Window, (int)pos.x, (int)pos.y); +} + +static ImVec2 ImGui_ImplSDL3_GetWindowSize(ImGuiViewport* viewport) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + int w = 0, h = 0; + SDL_GetWindowSize(vd->Window, &w, &h); + return ImVec2((float)w, (float)h); +} + +static void ImGui_ImplSDL3_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + SDL_SetWindowSize(vd->Window, (int)size.x, (int)size.y); +} + +static void ImGui_ImplSDL3_SetWindowTitle(ImGuiViewport* viewport, const char* title) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + SDL_SetWindowTitle(vd->Window, title); +} + +static void ImGui_ImplSDL3_SetWindowAlpha(ImGuiViewport* viewport, float alpha) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + SDL_SetWindowOpacity(vd->Window, alpha); +} + +static void ImGui_ImplSDL3_SetWindowFocus(ImGuiViewport* viewport) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + SDL_RaiseWindow(vd->Window); +} + +static bool ImGui_ImplSDL3_GetWindowFocus(ImGuiViewport* viewport) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + return (SDL_GetWindowFlags(vd->Window) & SDL_WINDOW_INPUT_FOCUS) != 0; +} + +static bool ImGui_ImplSDL3_GetWindowMinimized(ImGuiViewport* viewport) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + return (SDL_GetWindowFlags(vd->Window) & SDL_WINDOW_MINIMIZED) != 0; +} + +static void ImGui_ImplSDL3_RenderWindow(ImGuiViewport* viewport, void*) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + if (vd->GLContext) + SDL_GL_MakeCurrent(vd->Window, vd->GLContext); +} + +static void ImGui_ImplSDL3_SwapBuffers(ImGuiViewport* viewport, void*) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + if (vd->GLContext) + { + SDL_GL_MakeCurrent(vd->Window, vd->GLContext); + SDL_GL_SwapWindow(vd->Window); + } +} + +// Vulkan support (the Vulkan renderer needs to call a platform-side support function to create the surface) +// SDL is graceful enough to _not_ need so we can safely include this. +#include +static int ImGui_ImplSDL3_CreateVkSurface(ImGuiViewport* viewport, ImU64 vk_instance, const void* vk_allocator, ImU64* out_vk_surface) +{ + ImGui_ImplSDL3_ViewportData* vd = (ImGui_ImplSDL3_ViewportData*)viewport->PlatformUserData; + (void)vk_allocator; + SDL_bool ret = SDL_Vulkan_CreateSurface(vd->Window, (VkInstance)vk_instance, (VkSurfaceKHR*)out_vk_surface); + return ret ? 0 : 1; // ret ? VK_SUCCESS : VK_NOT_READY +} + +static void ImGui_ImplSDL3_InitPlatformInterface(SDL_Window* window, void* sdl_gl_context) +{ + // Register platform interface (will be coupled with a renderer interface) + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Platform_CreateWindow = ImGui_ImplSDL3_CreateWindow; + platform_io.Platform_DestroyWindow = ImGui_ImplSDL3_DestroyWindow; + platform_io.Platform_ShowWindow = ImGui_ImplSDL3_ShowWindow; + platform_io.Platform_SetWindowPos = ImGui_ImplSDL3_SetWindowPos; + platform_io.Platform_GetWindowPos = ImGui_ImplSDL3_GetWindowPos; + platform_io.Platform_SetWindowSize = ImGui_ImplSDL3_SetWindowSize; + platform_io.Platform_GetWindowSize = ImGui_ImplSDL3_GetWindowSize; + platform_io.Platform_SetWindowFocus = ImGui_ImplSDL3_SetWindowFocus; + platform_io.Platform_GetWindowFocus = ImGui_ImplSDL3_GetWindowFocus; + platform_io.Platform_GetWindowMinimized = ImGui_ImplSDL3_GetWindowMinimized; + platform_io.Platform_SetWindowTitle = ImGui_ImplSDL3_SetWindowTitle; + platform_io.Platform_RenderWindow = ImGui_ImplSDL3_RenderWindow; + platform_io.Platform_SwapBuffers = ImGui_ImplSDL3_SwapBuffers; + platform_io.Platform_SetWindowAlpha = ImGui_ImplSDL3_SetWindowAlpha; + platform_io.Platform_CreateVkSurface = ImGui_ImplSDL3_CreateVkSurface; + + // Register main window handle (which is owned by the main application, not by us) + // This is mostly for simplicity and consistency, so that our code (e.g. mouse handling etc.) can use same logic for main and secondary viewports. + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGui_ImplSDL3_ViewportData* vd = IM_NEW(ImGui_ImplSDL3_ViewportData)(); + vd->Window = window; + vd->WindowID = SDL_GetWindowID(window); + vd->WindowOwned = false; + vd->GLContext = sdl_gl_context; + main_viewport->PlatformUserData = vd; + main_viewport->PlatformHandle = vd->Window; +} + +static void ImGui_ImplSDL3_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl3.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl3.h new file mode 100644 index 0000000..1a4b317 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdl3.h @@ -0,0 +1,43 @@ +// dear imgui: Platform Backend for SDL3 (*EXPERIMENTAL*) +// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) +// (Info: SDL3 is a cross-platform general purpose library for handling windows, inputs, graphics context creation, etc.) +// (IMPORTANT: SDL 3.0.0 is NOT YET RELEASED. IT IS POSSIBLE THAT ITS SPECS/API WILL CHANGE BEFORE RELEASE) + +// Implemented features: +// [X] Platform: Clipboard support. +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen. +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy SDL_SCANCODE_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// [x] Platform: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable' -> the OS animation effect when window gets created/destroyed is problematic. SDL2 backend doesn't have issue. +// Missing features: +// [ ] Platform: Multi-viewport + Minimized windows seems to break mouse wheel events (at least under Windows). +// [x] Platform: Basic IME support. Position somehow broken in SDL3 + app needs to call 'SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1");' before SDL_CreateWindow()!. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +struct SDL_Window; +struct SDL_Renderer; +typedef union SDL_Event SDL_Event; + +IMGUI_IMPL_API bool ImGui_ImplSDL3_InitForOpenGL(SDL_Window* window, void* sdl_gl_context); +IMGUI_IMPL_API bool ImGui_ImplSDL3_InitForVulkan(SDL_Window* window); +IMGUI_IMPL_API bool ImGui_ImplSDL3_InitForD3D(SDL_Window* window); +IMGUI_IMPL_API bool ImGui_ImplSDL3_InitForMetal(SDL_Window* window); +IMGUI_IMPL_API bool ImGui_ImplSDL3_InitForSDLRenderer(SDL_Window* window, SDL_Renderer* renderer); +IMGUI_IMPL_API bool ImGui_ImplSDL3_InitForOther(SDL_Window* window); +IMGUI_IMPL_API void ImGui_ImplSDL3_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplSDL3_NewFrame(); +IMGUI_IMPL_API bool ImGui_ImplSDL3_ProcessEvent(const SDL_Event* event); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer2.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer2.cpp new file mode 100644 index 0000000..affa139 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer2.cpp @@ -0,0 +1,268 @@ +// dear imgui: Renderer Backend for SDL_Renderer for SDL2 +// (Requires: SDL 2.0.17+) + +// Note how SDL_Renderer is an _optional_ component of SDL2. +// For a multi-platform app consider using e.g. SDL+DirectX on Windows and SDL+OpenGL on Linux/OSX. +// If your application will want to render any non trivial amount of graphics other than UI, +// please be aware that SDL_Renderer currently offers a limited graphic API to the end-user and +// it might be difficult to step out of those boundaries. + +// Implemented features: +// [X] Renderer: User texture binding. Use 'SDL_Texture*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// Missing features: +// [ ] Renderer: Multi-viewport support (multiple windows). + +// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// 2023-05-30: Renamed imgui_impl_sdlrenderer.h/.cpp to imgui_impl_sdlrenderer2.h/.cpp to accommodate for upcoming SDL3. +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2021-12-21: Update SDL_RenderGeometryRaw() format to work with SDL 2.0.19. +// 2021-12-03: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2021-10-06: Backup and restore modified ClipRect/Viewport. +// 2021-09-21: Initial version. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_sdlrenderer2.h" +#include // intptr_t + +// Clang warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#endif + +// SDL +#include +#if !SDL_VERSION_ATLEAST(2,0,17) +#error This backend requires SDL 2.0.17+ because of SDL_RenderGeometry() function +#endif + +// SDL_Renderer data +struct ImGui_ImplSDLRenderer2_Data +{ + SDL_Renderer* SDLRenderer; + SDL_Texture* FontTexture; + ImGui_ImplSDLRenderer2_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplSDLRenderer2_Data* ImGui_ImplSDLRenderer2_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplSDLRenderer2_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +// Functions +bool ImGui_ImplSDLRenderer2_Init(SDL_Renderer* renderer) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + IM_ASSERT(renderer != nullptr && "SDL_Renderer not initialized!"); + + // Setup backend capabilities flags + ImGui_ImplSDLRenderer2_Data* bd = IM_NEW(ImGui_ImplSDLRenderer2_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_sdlrenderer2"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + + bd->SDLRenderer = renderer; + + return true; +} + +void ImGui_ImplSDLRenderer2_Shutdown() +{ + ImGui_ImplSDLRenderer2_Data* bd = ImGui_ImplSDLRenderer2_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplSDLRenderer2_DestroyDeviceObjects(); + + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~ImGuiBackendFlags_RendererHasVtxOffset; + IM_DELETE(bd); +} + +static void ImGui_ImplSDLRenderer2_SetupRenderState() +{ + ImGui_ImplSDLRenderer2_Data* bd = ImGui_ImplSDLRenderer2_GetBackendData(); + + // Clear out any viewports and cliprect set by the user + // FIXME: Technically speaking there are lots of other things we could backup/setup/restore during our render process. + SDL_RenderSetViewport(bd->SDLRenderer, nullptr); + SDL_RenderSetClipRect(bd->SDLRenderer, nullptr); +} + +void ImGui_ImplSDLRenderer2_NewFrame() +{ + ImGui_ImplSDLRenderer2_Data* bd = ImGui_ImplSDLRenderer2_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplSDLRenderer2_Init()?"); + + if (!bd->FontTexture) + ImGui_ImplSDLRenderer2_CreateDeviceObjects(); +} + +void ImGui_ImplSDLRenderer2_RenderDrawData(ImDrawData* draw_data) +{ + ImGui_ImplSDLRenderer2_Data* bd = ImGui_ImplSDLRenderer2_GetBackendData(); + + // If there's a scale factor set by the user, use that instead + // If the user has specified a scale factor to SDL_Renderer already via SDL_RenderSetScale(), SDL will scale whatever we pass + // to SDL_RenderGeometryRaw() by that scale factor. In that case we don't want to be also scaling it ourselves here. + float rsx = 1.0f; + float rsy = 1.0f; + SDL_RenderGetScale(bd->SDLRenderer, &rsx, &rsy); + ImVec2 render_scale; + render_scale.x = (rsx == 1.0f) ? draw_data->FramebufferScale.x : 1.0f; + render_scale.y = (rsy == 1.0f) ? draw_data->FramebufferScale.y : 1.0f; + + // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) + int fb_width = (int)(draw_data->DisplaySize.x * render_scale.x); + int fb_height = (int)(draw_data->DisplaySize.y * render_scale.y); + if (fb_width == 0 || fb_height == 0) + return; + + // Backup SDL_Renderer state that will be modified to restore it afterwards + struct BackupSDLRendererState + { + SDL_Rect Viewport; + bool ClipEnabled; + SDL_Rect ClipRect; + }; + BackupSDLRendererState old = {}; + old.ClipEnabled = SDL_RenderIsClipEnabled(bd->SDLRenderer) == SDL_TRUE; + SDL_RenderGetViewport(bd->SDLRenderer, &old.Viewport); + SDL_RenderGetClipRect(bd->SDLRenderer, &old.ClipRect); + + // Will project scissor/clipping rectangles into framebuffer space + ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports + ImVec2 clip_scale = render_scale; + + // Render command lists + ImGui_ImplSDLRenderer2_SetupRenderState(); + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; + const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; + + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplSDLRenderer2_SetupRenderState(); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); + ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); + if (clip_min.x < 0.0f) { clip_min.x = 0.0f; } + if (clip_min.y < 0.0f) { clip_min.y = 0.0f; } + if (clip_max.x > (float)fb_width) { clip_max.x = (float)fb_width; } + if (clip_max.y > (float)fb_height) { clip_max.y = (float)fb_height; } + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + SDL_Rect r = { (int)(clip_min.x), (int)(clip_min.y), (int)(clip_max.x - clip_min.x), (int)(clip_max.y - clip_min.y) }; + SDL_RenderSetClipRect(bd->SDLRenderer, &r); + + const float* xy = (const float*)(const void*)((const char*)(vtx_buffer + pcmd->VtxOffset) + IM_OFFSETOF(ImDrawVert, pos)); + const float* uv = (const float*)(const void*)((const char*)(vtx_buffer + pcmd->VtxOffset) + IM_OFFSETOF(ImDrawVert, uv)); +#if SDL_VERSION_ATLEAST(2,0,19) + const SDL_Color* color = (const SDL_Color*)(const void*)((const char*)(vtx_buffer + pcmd->VtxOffset) + IM_OFFSETOF(ImDrawVert, col)); // SDL 2.0.19+ +#else + const int* color = (const int*)(const void*)((const char*)(vtx_buffer + pcmd->VtxOffset) + IM_OFFSETOF(ImDrawVert, col)); // SDL 2.0.17 and 2.0.18 +#endif + + // Bind texture, Draw + SDL_Texture* tex = (SDL_Texture*)pcmd->GetTexID(); + SDL_RenderGeometryRaw(bd->SDLRenderer, tex, + xy, (int)sizeof(ImDrawVert), + color, (int)sizeof(ImDrawVert), + uv, (int)sizeof(ImDrawVert), + cmd_list->VtxBuffer.Size - pcmd->VtxOffset, + idx_buffer + pcmd->IdxOffset, pcmd->ElemCount, sizeof(ImDrawIdx)); + } + } + } + + // Restore modified SDL_Renderer state + SDL_RenderSetViewport(bd->SDLRenderer, &old.Viewport); + SDL_RenderSetClipRect(bd->SDLRenderer, old.ClipEnabled ? &old.ClipRect : nullptr); +} + +// Called by Init/NewFrame/Shutdown +bool ImGui_ImplSDLRenderer2_CreateFontsTexture() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplSDLRenderer2_Data* bd = ImGui_ImplSDLRenderer2_GetBackendData(); + + // Build texture atlas + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // Load as RGBA 32-bit (75% of the memory is wasted, but default font is so small) because it is more likely to be compatible with user's existing shaders. If your ImTextureId represent a higher-level concept than just a GL texture id, consider calling GetTexDataAsAlpha8() instead to save on GPU memory. + + // Upload texture to graphics system + // (Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling) + bd->FontTexture = SDL_CreateTexture(bd->SDLRenderer, SDL_PIXELFORMAT_ABGR8888, SDL_TEXTUREACCESS_STATIC, width, height); + if (bd->FontTexture == nullptr) + { + SDL_Log("error creating texture"); + return false; + } + SDL_UpdateTexture(bd->FontTexture, nullptr, pixels, 4 * width); + SDL_SetTextureBlendMode(bd->FontTexture, SDL_BLENDMODE_BLEND); + SDL_SetTextureScaleMode(bd->FontTexture, SDL_ScaleModeLinear); + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)(intptr_t)bd->FontTexture); + + return true; +} + +void ImGui_ImplSDLRenderer2_DestroyFontsTexture() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplSDLRenderer2_Data* bd = ImGui_ImplSDLRenderer2_GetBackendData(); + if (bd->FontTexture) + { + io.Fonts->SetTexID(0); + SDL_DestroyTexture(bd->FontTexture); + bd->FontTexture = nullptr; + } +} + +bool ImGui_ImplSDLRenderer2_CreateDeviceObjects() +{ + return ImGui_ImplSDLRenderer2_CreateFontsTexture(); +} + +void ImGui_ImplSDLRenderer2_DestroyDeviceObjects() +{ + ImGui_ImplSDLRenderer2_DestroyFontsTexture(); +} + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer2.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer2.h new file mode 100644 index 0000000..1b02c74 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer2.h @@ -0,0 +1,41 @@ +// dear imgui: Renderer Backend for SDL_Renderer for SDL2 +// (Requires: SDL 2.0.17+) + +// Note how SDL_Renderer is an _optional_ component of SDL2. +// For a multi-platform app consider using e.g. SDL+DirectX on Windows and SDL+OpenGL on Linux/OSX. +// If your application will want to render any non trivial amount of graphics other than UI, +// please be aware that SDL_Renderer currently offers a limited graphic API to the end-user and +// it might be difficult to step out of those boundaries. + +// Implemented features: +// [X] Renderer: User texture binding. Use 'SDL_Texture*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// Missing features: +// [ ] Renderer: Multi-viewport support (multiple windows). + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#ifndef IMGUI_DISABLE +#include "imgui.h" // IMGUI_IMPL_API + +struct SDL_Renderer; + +IMGUI_IMPL_API bool ImGui_ImplSDLRenderer2_Init(SDL_Renderer* renderer); +IMGUI_IMPL_API void ImGui_ImplSDLRenderer2_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplSDLRenderer2_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplSDLRenderer2_RenderDrawData(ImDrawData* draw_data); + +// Called by Init/NewFrame/Shutdown +IMGUI_IMPL_API bool ImGui_ImplSDLRenderer2_CreateFontsTexture(); +IMGUI_IMPL_API void ImGui_ImplSDLRenderer2_DestroyFontsTexture(); +IMGUI_IMPL_API bool ImGui_ImplSDLRenderer2_CreateDeviceObjects(); +IMGUI_IMPL_API void ImGui_ImplSDLRenderer2_DestroyDeviceObjects(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer3.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer3.cpp new file mode 100644 index 0000000..2deb607 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer3.cpp @@ -0,0 +1,263 @@ +// dear imgui: Renderer Backend for SDL_Renderer for SDL3 +// (Requires: SDL 3.0.0+) + +// Note how SDL_Renderer is an _optional_ component of SDL3. +// For a multi-platform app consider using e.g. SDL+DirectX on Windows and SDL+OpenGL on Linux/OSX. +// If your application will want to render any non trivial amount of graphics other than UI, +// please be aware that SDL_Renderer currently offers a limited graphic API to the end-user and +// it might be difficult to step out of those boundaries. + +// Implemented features: +// [X] Renderer: User texture binding. Use 'SDL_Texture*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// Missing features: +// [ ] Renderer: Multi-viewport support (multiple windows). + +// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// 2023-05-30: Initial version. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_sdlrenderer3.h" +#include // intptr_t + +// Clang warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#endif + +// SDL +#include +#if !SDL_VERSION_ATLEAST(3,0,0) +#error This backend requires SDL 3.0.0+ +#endif + +// SDL_Renderer data +struct ImGui_ImplSDLRenderer3_Data +{ + SDL_Renderer* SDLRenderer; + SDL_Texture* FontTexture; + ImGui_ImplSDLRenderer3_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplSDLRenderer3_Data* ImGui_ImplSDLRenderer3_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplSDLRenderer3_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +// Functions +bool ImGui_ImplSDLRenderer3_Init(SDL_Renderer* renderer) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + IM_ASSERT(renderer != nullptr && "SDL_Renderer not initialized!"); + + // Setup backend capabilities flags + ImGui_ImplSDLRenderer3_Data* bd = IM_NEW(ImGui_ImplSDLRenderer3_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_sdlrenderer3"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + + bd->SDLRenderer = renderer; + + return true; +} + +void ImGui_ImplSDLRenderer3_Shutdown() +{ + ImGui_ImplSDLRenderer3_Data* bd = ImGui_ImplSDLRenderer3_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplSDLRenderer3_DestroyDeviceObjects(); + + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~ImGuiBackendFlags_RendererHasVtxOffset; + IM_DELETE(bd); +} + +static void ImGui_ImplSDLRenderer3_SetupRenderState() +{ + ImGui_ImplSDLRenderer3_Data* bd = ImGui_ImplSDLRenderer3_GetBackendData(); + + // Clear out any viewports and cliprect set by the user + // FIXME: Technically speaking there are lots of other things we could backup/setup/restore during our render process. + SDL_SetRenderViewport(bd->SDLRenderer, nullptr); + SDL_SetRenderClipRect(bd->SDLRenderer, nullptr); +} + +void ImGui_ImplSDLRenderer3_NewFrame() +{ + ImGui_ImplSDLRenderer3_Data* bd = ImGui_ImplSDLRenderer3_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplSDLRenderer3_Init()?"); + + if (!bd->FontTexture) + ImGui_ImplSDLRenderer3_CreateDeviceObjects(); +} + +void ImGui_ImplSDLRenderer3_RenderDrawData(ImDrawData* draw_data) +{ + ImGui_ImplSDLRenderer3_Data* bd = ImGui_ImplSDLRenderer3_GetBackendData(); + + // If there's a scale factor set by the user, use that instead + // If the user has specified a scale factor to SDL_Renderer already via SDL_RenderSetScale(), SDL will scale whatever we pass + // to SDL_RenderGeometryRaw() by that scale factor. In that case we don't want to be also scaling it ourselves here. + float rsx = 1.0f; + float rsy = 1.0f; + SDL_GetRenderScale(bd->SDLRenderer, &rsx, &rsy); + ImVec2 render_scale; + render_scale.x = (rsx == 1.0f) ? draw_data->FramebufferScale.x : 1.0f; + render_scale.y = (rsy == 1.0f) ? draw_data->FramebufferScale.y : 1.0f; + + // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) + int fb_width = (int)(draw_data->DisplaySize.x * render_scale.x); + int fb_height = (int)(draw_data->DisplaySize.y * render_scale.y); + if (fb_width == 0 || fb_height == 0) + return; + + // Backup SDL_Renderer state that will be modified to restore it afterwards + struct BackupSDLRendererState + { + SDL_Rect Viewport; + bool ClipEnabled; + SDL_Rect ClipRect; + }; + BackupSDLRendererState old = {}; + old.ClipEnabled = SDL_RenderClipEnabled(bd->SDLRenderer) == SDL_TRUE; + SDL_GetRenderViewport(bd->SDLRenderer, &old.Viewport); + SDL_GetRenderClipRect(bd->SDLRenderer, &old.ClipRect); + + // Will project scissor/clipping rectangles into framebuffer space + ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports + ImVec2 clip_scale = render_scale; + + // Render command lists + ImGui_ImplSDLRenderer3_SetupRenderState(); + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; + const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; + + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplSDLRenderer3_SetupRenderState(); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); + ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); + if (clip_min.x < 0.0f) { clip_min.x = 0.0f; } + if (clip_min.y < 0.0f) { clip_min.y = 0.0f; } + if (clip_max.x > (float)fb_width) { clip_max.x = (float)fb_width; } + if (clip_max.y > (float)fb_height) { clip_max.y = (float)fb_height; } + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + SDL_Rect r = { (int)(clip_min.x), (int)(clip_min.y), (int)(clip_max.x - clip_min.x), (int)(clip_max.y - clip_min.y) }; + SDL_SetRenderClipRect(bd->SDLRenderer, &r); + + const float* xy = (const float*)(const void*)((const char*)(vtx_buffer + pcmd->VtxOffset) + IM_OFFSETOF(ImDrawVert, pos)); + const float* uv = (const float*)(const void*)((const char*)(vtx_buffer + pcmd->VtxOffset) + IM_OFFSETOF(ImDrawVert, uv)); +#if SDL_VERSION_ATLEAST(2,0,19) + const SDL_Color* color = (const SDL_Color*)(const void*)((const char*)(vtx_buffer + pcmd->VtxOffset) + IM_OFFSETOF(ImDrawVert, col)); // SDL 2.0.19+ +#else + const int* color = (const int*)(const void*)((const char*)(vtx_buffer + pcmd->VtxOffset) + IM_OFFSETOF(ImDrawVert, col)); // SDL 2.0.17 and 2.0.18 +#endif + + // Bind texture, Draw + SDL_Texture* tex = (SDL_Texture*)pcmd->GetTexID(); + SDL_RenderGeometryRaw(bd->SDLRenderer, tex, + xy, (int)sizeof(ImDrawVert), + color, (int)sizeof(ImDrawVert), + uv, (int)sizeof(ImDrawVert), + cmd_list->VtxBuffer.Size - pcmd->VtxOffset, + idx_buffer + pcmd->IdxOffset, pcmd->ElemCount, sizeof(ImDrawIdx)); + } + } + } + + // Restore modified SDL_Renderer state + SDL_SetRenderViewport(bd->SDLRenderer, &old.Viewport); + SDL_SetRenderClipRect(bd->SDLRenderer, old.ClipEnabled ? &old.ClipRect : nullptr); +} + +// Called by Init/NewFrame/Shutdown +bool ImGui_ImplSDLRenderer3_CreateFontsTexture() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplSDLRenderer3_Data* bd = ImGui_ImplSDLRenderer3_GetBackendData(); + + // Build texture atlas + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // Load as RGBA 32-bit (75% of the memory is wasted, but default font is so small) because it is more likely to be compatible with user's existing shaders. If your ImTextureId represent a higher-level concept than just a GL texture id, consider calling GetTexDataAsAlpha8() instead to save on GPU memory. + + // Upload texture to graphics system + // (Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling) + bd->FontTexture = SDL_CreateTexture(bd->SDLRenderer, SDL_PIXELFORMAT_ABGR8888, SDL_TEXTUREACCESS_STATIC, width, height); + if (bd->FontTexture == nullptr) + { + SDL_Log("error creating texture"); + return false; + } + SDL_UpdateTexture(bd->FontTexture, nullptr, pixels, 4 * width); + SDL_SetTextureBlendMode(bd->FontTexture, SDL_BLENDMODE_BLEND); + SDL_SetTextureScaleMode(bd->FontTexture, SDL_SCALEMODE_LINEAR); + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)(intptr_t)bd->FontTexture); + + return true; +} + +void ImGui_ImplSDLRenderer3_DestroyFontsTexture() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplSDLRenderer3_Data* bd = ImGui_ImplSDLRenderer3_GetBackendData(); + if (bd->FontTexture) + { + io.Fonts->SetTexID(0); + SDL_DestroyTexture(bd->FontTexture); + bd->FontTexture = nullptr; + } +} + +bool ImGui_ImplSDLRenderer3_CreateDeviceObjects() +{ + return ImGui_ImplSDLRenderer3_CreateFontsTexture(); +} + +void ImGui_ImplSDLRenderer3_DestroyDeviceObjects() +{ + ImGui_ImplSDLRenderer3_DestroyFontsTexture(); +} + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer3.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer3.h new file mode 100644 index 0000000..fd3cc17 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_sdlrenderer3.h @@ -0,0 +1,41 @@ +// dear imgui: Renderer Backend for SDL_Renderer for SDL3 +// (Requires: SDL 3.0.0+) + +// Note how SDL_Renderer is an _optional_ component of SDL3. +// For a multi-platform app consider using e.g. SDL+DirectX on Windows and SDL+OpenGL on Linux/OSX. +// If your application will want to render any non trivial amount of graphics other than UI, +// please be aware that SDL_Renderer currently offers a limited graphic API to the end-user and +// it might be difficult to step out of those boundaries. + +// Implemented features: +// [X] Renderer: User texture binding. Use 'SDL_Texture*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// Missing features: +// [ ] Renderer: Multi-viewport support (multiple windows). + +// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +struct SDL_Renderer; + +IMGUI_IMPL_API bool ImGui_ImplSDLRenderer3_Init(SDL_Renderer* renderer); +IMGUI_IMPL_API void ImGui_ImplSDLRenderer3_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplSDLRenderer3_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplSDLRenderer3_RenderDrawData(ImDrawData* draw_data); + +// Called by Init/NewFrame/Shutdown +IMGUI_IMPL_API bool ImGui_ImplSDLRenderer3_CreateFontsTexture(); +IMGUI_IMPL_API void ImGui_ImplSDLRenderer3_DestroyFontsTexture(); +IMGUI_IMPL_API bool ImGui_ImplSDLRenderer3_CreateDeviceObjects(); +IMGUI_IMPL_API void ImGui_ImplSDLRenderer3_DestroyDeviceObjects(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_vulkan.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_vulkan.cpp new file mode 100644 index 0000000..c75ceb3 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_vulkan.cpp @@ -0,0 +1,1816 @@ +// dear imgui: Renderer Backend for Vulkan +// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) + +// Implemented features: +// [x] Renderer: User texture binding. Use 'VkDescriptorSet' as ImTextureID. Read the FAQ about ImTextureID! See https://github.com/ocornut/imgui/pull/914 for discussions. +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [x] Renderer: Multi-viewport / platform windows. With issues (flickering when creating a new viewport). + +// Important: on 32-bit systems, user texture binding is only supported if your imconfig file has '#define ImTextureID ImU64'. +// This is because we need ImTextureID to carry a 64-bit value and by default ImTextureID is defined as void*. +// To build this on 32-bit systems and support texture changes: +// - [Solution 1] IDE/msbuild: in "Properties/C++/Preprocessor Definitions" add 'ImTextureID=ImU64' (this is what we do in our .vcxproj files) +// - [Solution 2] IDE/msbuild: in "Properties/C++/Preprocessor Definitions" add 'IMGUI_USER_CONFIG="my_imgui_config.h"' and inside 'my_imgui_config.h' add '#define ImTextureID ImU64' and as many other options as you like. +// - [Solution 3] IDE/msbuild: edit imconfig.h and add '#define ImTextureID ImU64' (prefer solution 2 to create your own config file!) +// - [Solution 4] command-line: add '/D ImTextureID=ImU64' to your cl.exe command-line (this is what we do in our batch files) + +// The aim of imgui_impl_vulkan.h/.cpp is to be usable in your engine without any modification. +// IF YOU FEEL YOU NEED TO MAKE ANY CHANGE TO THIS CODE, please share them and your feedback at https://github.com/ocornut/imgui/ + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// Important note to the reader who wish to integrate imgui_impl_vulkan.cpp/.h in their own engine/app. +// - Common ImGui_ImplVulkan_XXX functions and structures are used to interface with imgui_impl_vulkan.cpp/.h. +// You will use those if you want to use this rendering backend in your engine/app. +// - Helper ImGui_ImplVulkanH_XXX functions and structures are only used by this example (main.cpp) and by +// the backend itself (imgui_impl_vulkan.cpp), but should PROBABLY NOT be used by your own engine/app code. +// Read comments in imgui_impl_vulkan.h. + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2023-07-04: Vulkan: Added optional support for VK_KHR_dynamic_rendering. User needs to set init_info->UseDynamicRendering = true and init_info->ColorAttachmentFormat. +// 2023-01-02: Vulkan: Fixed sampler passed to ImGui_ImplVulkan_AddTexture() not being honored + removed a bunch of duplicate code. +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2022-10-04: Vulkan: Added experimental ImGui_ImplVulkan_RemoveTexture() for api symetry. (#914, #5738). +// 2022-01-20: Vulkan: Added support for ImTextureID as VkDescriptorSet. User need to call ImGui_ImplVulkan_AddTexture(). Building for 32-bit targets requires '#define ImTextureID ImU64'. (#914). +// 2021-10-15: Vulkan: Call vkCmdSetScissor() at the end of render a full-viewport to reduce likehood of issues with people using VK_DYNAMIC_STATE_SCISSOR in their app without calling vkCmdSetScissor() explicitly every frame. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-03-22: Vulkan: Fix mapped memory validation error when buffer sizes are not multiple of VkPhysicalDeviceLimits::nonCoherentAtomSize. +// 2021-02-18: Vulkan: Change blending equation to preserve alpha in output buffer. +// 2021-01-27: Vulkan: Added support for custom function load and IMGUI_IMPL_VULKAN_NO_PROTOTYPES by using ImGui_ImplVulkan_LoadFunctions(). +// 2020-11-11: Vulkan: Added support for specifying which subpass to reference during VkPipeline creation. +// 2020-09-07: Vulkan: Added VkPipeline parameter to ImGui_ImplVulkan_RenderDrawData (default to one passed to ImGui_ImplVulkan_Init). +// 2020-05-04: Vulkan: Fixed crash if initial frame has no vertices. +// 2020-04-26: Vulkan: Fixed edge case where render callbacks wouldn't be called if the ImDrawData didn't have vertices. +// 2019-08-01: Vulkan: Added support for specifying multisample count. Set ImGui_ImplVulkan_InitInfo::MSAASamples to one of the VkSampleCountFlagBits values to use, default is non-multisampled as before. +// 2019-05-29: Vulkan: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: Vulkan: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2019-04-04: *BREAKING CHANGE*: Vulkan: Added ImageCount/MinImageCount fields in ImGui_ImplVulkan_InitInfo, required for initialization (was previously a hard #define IMGUI_VK_QUEUED_FRAMES 2). Added ImGui_ImplVulkan_SetMinImageCount(). +// 2019-04-04: Vulkan: Added VkInstance argument to ImGui_ImplVulkanH_CreateWindow() optional helper. +// 2019-04-04: Vulkan: Avoid passing negative coordinates to vkCmdSetScissor, which debug validation layers do not like. +// 2019-04-01: Vulkan: Support for 32-bit index buffer (#define ImDrawIdx unsigned int). +// 2019-02-16: Vulkan: Viewport and clipping rectangles correctly using draw_data->FramebufferScale to allow retina display. +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-08-25: Vulkan: Fixed mishandled VkSurfaceCapabilitiesKHR::maxImageCount=0 case. +// 2018-06-22: Inverted the parameters to ImGui_ImplVulkan_RenderDrawData() to be consistent with other backends. +// 2018-06-08: Misc: Extracted imgui_impl_vulkan.cpp/.h away from the old combined GLFW+Vulkan example. +// 2018-06-08: Vulkan: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-03-03: Vulkan: Various refactor, created a couple of ImGui_ImplVulkanH_XXX helper that the example can use and that viewport support will use. +// 2018-03-01: Vulkan: Renamed ImGui_ImplVulkan_Init_Info to ImGui_ImplVulkan_InitInfo and fields to match more closely Vulkan terminology. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback, ImGui_ImplVulkan_Render() calls ImGui_ImplVulkan_RenderDrawData() itself. +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. +// 2017-05-15: Vulkan: Fix scissor offset being negative. Fix new Vulkan validation warnings. Set required depth member for buffer image copy. +// 2016-11-13: Vulkan: Fix validation layer warnings and errors and redeclare gl_PerVertex. +// 2016-10-18: Vulkan: Add location decorators & change to use structs as in/out in glsl, update embedded spv (produced with glslangValidator -x). Null the released resources. +// 2016-08-27: Vulkan: Fix Vulkan example for use when a depth buffer is active. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_vulkan.h" +#include + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#endif + +// Reusable buffers used for rendering 1 current in-flight frame, for ImGui_ImplVulkan_RenderDrawData() +// [Please zero-clear before use!] +struct ImGui_ImplVulkanH_FrameRenderBuffers +{ + VkDeviceMemory VertexBufferMemory; + VkDeviceMemory IndexBufferMemory; + VkDeviceSize VertexBufferSize; + VkDeviceSize IndexBufferSize; + VkBuffer VertexBuffer; + VkBuffer IndexBuffer; +}; + +// Each viewport will hold 1 ImGui_ImplVulkanH_WindowRenderBuffers +// [Please zero-clear before use!] +struct ImGui_ImplVulkanH_WindowRenderBuffers +{ + uint32_t Index; + uint32_t Count; + ImGui_ImplVulkanH_FrameRenderBuffers* FrameRenderBuffers; +}; + +// For multi-viewport support: +// Helper structure we store in the void* RendererUserData field of each ImGuiViewport to easily retrieve our backend data. +struct ImGui_ImplVulkan_ViewportData +{ + bool WindowOwned; + ImGui_ImplVulkanH_Window Window; // Used by secondary viewports only + ImGui_ImplVulkanH_WindowRenderBuffers RenderBuffers; // Used by all viewports + + ImGui_ImplVulkan_ViewportData() { WindowOwned = false; memset(&RenderBuffers, 0, sizeof(RenderBuffers)); } + ~ImGui_ImplVulkan_ViewportData() { } +}; + +// Vulkan data +struct ImGui_ImplVulkan_Data +{ + ImGui_ImplVulkan_InitInfo VulkanInitInfo; + VkRenderPass RenderPass; + VkDeviceSize BufferMemoryAlignment; + VkPipelineCreateFlags PipelineCreateFlags; + VkDescriptorSetLayout DescriptorSetLayout; + VkPipelineLayout PipelineLayout; + VkPipeline Pipeline; + uint32_t Subpass; + VkShaderModule ShaderModuleVert; + VkShaderModule ShaderModuleFrag; + + // Font data + VkSampler FontSampler; + VkDeviceMemory FontMemory; + VkImage FontImage; + VkImageView FontView; + VkDescriptorSet FontDescriptorSet; + VkDeviceMemory UploadBufferMemory; + VkBuffer UploadBuffer; + + // Render buffers for main window + ImGui_ImplVulkanH_WindowRenderBuffers MainWindowRenderBuffers; + + ImGui_ImplVulkan_Data() + { + memset((void*)this, 0, sizeof(*this)); + BufferMemoryAlignment = 256; + } +}; + +// Forward Declarations +bool ImGui_ImplVulkan_CreateDeviceObjects(); +void ImGui_ImplVulkan_DestroyDeviceObjects(); +void ImGui_ImplVulkanH_DestroyFrame(VkDevice device, ImGui_ImplVulkanH_Frame* fd, const VkAllocationCallbacks* allocator); +void ImGui_ImplVulkanH_DestroyFrameSemaphores(VkDevice device, ImGui_ImplVulkanH_FrameSemaphores* fsd, const VkAllocationCallbacks* allocator); +void ImGui_ImplVulkanH_DestroyFrameRenderBuffers(VkDevice device, ImGui_ImplVulkanH_FrameRenderBuffers* buffers, const VkAllocationCallbacks* allocator); +void ImGui_ImplVulkanH_DestroyWindowRenderBuffers(VkDevice device, ImGui_ImplVulkanH_WindowRenderBuffers* buffers, const VkAllocationCallbacks* allocator); +void ImGui_ImplVulkanH_DestroyAllViewportsRenderBuffers(VkDevice device, const VkAllocationCallbacks* allocator); +void ImGui_ImplVulkanH_CreateWindowSwapChain(VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wd, const VkAllocationCallbacks* allocator, int w, int h, uint32_t min_image_count); +void ImGui_ImplVulkanH_CreateWindowCommandBuffers(VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wd, uint32_t queue_family, const VkAllocationCallbacks* allocator); + +// Vulkan prototypes for use with custom loaders +// (see description of IMGUI_IMPL_VULKAN_NO_PROTOTYPES in imgui_impl_vulkan.h +#ifdef VK_NO_PROTOTYPES +static bool g_FunctionsLoaded = false; +#else +static bool g_FunctionsLoaded = true; +#endif +#ifdef VK_NO_PROTOTYPES +#define IMGUI_VULKAN_FUNC_MAP(IMGUI_VULKAN_FUNC_MAP_MACRO) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkAllocateCommandBuffers) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkAllocateDescriptorSets) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkAllocateMemory) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkBindBufferMemory) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkBindImageMemory) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdBindDescriptorSets) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdBindIndexBuffer) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdBindPipeline) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdBindVertexBuffers) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdCopyBufferToImage) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdDrawIndexed) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdPipelineBarrier) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdPushConstants) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdSetScissor) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdSetViewport) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateBuffer) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateCommandPool) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateDescriptorSetLayout) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateFence) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateFramebuffer) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateGraphicsPipelines) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateImage) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateImageView) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreatePipelineLayout) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateRenderPass) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateSampler) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateSemaphore) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateShaderModule) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateSwapchainKHR) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyBuffer) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyCommandPool) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyDescriptorSetLayout) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyFence) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyFramebuffer) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyImage) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyImageView) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyPipeline) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyPipelineLayout) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyRenderPass) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroySampler) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroySemaphore) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyShaderModule) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroySurfaceKHR) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroySwapchainKHR) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkDeviceWaitIdle) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkFlushMappedMemoryRanges) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkFreeCommandBuffers) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkFreeDescriptorSets) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkFreeMemory) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetBufferMemoryRequirements) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetImageMemoryRequirements) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetPhysicalDeviceMemoryProperties) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetPhysicalDeviceSurfaceCapabilitiesKHR) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetPhysicalDeviceSurfaceFormatsKHR) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetPhysicalDeviceSurfacePresentModesKHR) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetSwapchainImagesKHR) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkMapMemory) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkUnmapMemory) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkUpdateDescriptorSets) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetPhysicalDeviceSurfaceSupportKHR) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkWaitForFences) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdBeginRenderPass) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdEndRenderPass) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkQueuePresentKHR) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkBeginCommandBuffer) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkEndCommandBuffer) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkResetFences) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkQueueSubmit) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkResetCommandPool) \ + IMGUI_VULKAN_FUNC_MAP_MACRO(vkAcquireNextImageKHR) + +// Define function pointers +#define IMGUI_VULKAN_FUNC_DEF(func) static PFN_##func func; +IMGUI_VULKAN_FUNC_MAP(IMGUI_VULKAN_FUNC_DEF) +#undef IMGUI_VULKAN_FUNC_DEF +#endif // VK_NO_PROTOTYPES + +#if defined(VK_VERSION_1_3) || defined(VK_KHR_dynamic_rendering) +#define IMGUI_IMPL_VULKAN_HAS_DYNAMIC_RENDERING +static PFN_vkCmdBeginRenderingKHR ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR; +static PFN_vkCmdEndRenderingKHR ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR; +#endif + +//----------------------------------------------------------------------------- +// SHADERS +//----------------------------------------------------------------------------- + +// Forward Declarations +static void ImGui_ImplVulkan_InitPlatformInterface(); +static void ImGui_ImplVulkan_ShutdownPlatformInterface(); + +// glsl_shader.vert, compiled with: +// # glslangValidator -V -x -o glsl_shader.vert.u32 glsl_shader.vert +/* +#version 450 core +layout(location = 0) in vec2 aPos; +layout(location = 1) in vec2 aUV; +layout(location = 2) in vec4 aColor; +layout(push_constant) uniform uPushConstant { vec2 uScale; vec2 uTranslate; } pc; + +out gl_PerVertex { vec4 gl_Position; }; +layout(location = 0) out struct { vec4 Color; vec2 UV; } Out; + +void main() +{ + Out.Color = aColor; + Out.UV = aUV; + gl_Position = vec4(aPos * pc.uScale + pc.uTranslate, 0, 1); +} +*/ +static uint32_t __glsl_shader_vert_spv[] = +{ + 0x07230203,0x00010000,0x00080001,0x0000002e,0x00000000,0x00020011,0x00000001,0x0006000b, + 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, + 0x000a000f,0x00000000,0x00000004,0x6e69616d,0x00000000,0x0000000b,0x0000000f,0x00000015, + 0x0000001b,0x0000001c,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d, + 0x00000000,0x00030005,0x00000009,0x00000000,0x00050006,0x00000009,0x00000000,0x6f6c6f43, + 0x00000072,0x00040006,0x00000009,0x00000001,0x00005655,0x00030005,0x0000000b,0x0074754f, + 0x00040005,0x0000000f,0x6c6f4361,0x0000726f,0x00030005,0x00000015,0x00565561,0x00060005, + 0x00000019,0x505f6c67,0x65567265,0x78657472,0x00000000,0x00060006,0x00000019,0x00000000, + 0x505f6c67,0x7469736f,0x006e6f69,0x00030005,0x0000001b,0x00000000,0x00040005,0x0000001c, + 0x736f5061,0x00000000,0x00060005,0x0000001e,0x73755075,0x6e6f4368,0x6e617473,0x00000074, + 0x00050006,0x0000001e,0x00000000,0x61635375,0x0000656c,0x00060006,0x0000001e,0x00000001, + 0x61725475,0x616c736e,0x00006574,0x00030005,0x00000020,0x00006370,0x00040047,0x0000000b, + 0x0000001e,0x00000000,0x00040047,0x0000000f,0x0000001e,0x00000002,0x00040047,0x00000015, + 0x0000001e,0x00000001,0x00050048,0x00000019,0x00000000,0x0000000b,0x00000000,0x00030047, + 0x00000019,0x00000002,0x00040047,0x0000001c,0x0000001e,0x00000000,0x00050048,0x0000001e, + 0x00000000,0x00000023,0x00000000,0x00050048,0x0000001e,0x00000001,0x00000023,0x00000008, + 0x00030047,0x0000001e,0x00000002,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002, + 0x00030016,0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000004,0x00040017, + 0x00000008,0x00000006,0x00000002,0x0004001e,0x00000009,0x00000007,0x00000008,0x00040020, + 0x0000000a,0x00000003,0x00000009,0x0004003b,0x0000000a,0x0000000b,0x00000003,0x00040015, + 0x0000000c,0x00000020,0x00000001,0x0004002b,0x0000000c,0x0000000d,0x00000000,0x00040020, + 0x0000000e,0x00000001,0x00000007,0x0004003b,0x0000000e,0x0000000f,0x00000001,0x00040020, + 0x00000011,0x00000003,0x00000007,0x0004002b,0x0000000c,0x00000013,0x00000001,0x00040020, + 0x00000014,0x00000001,0x00000008,0x0004003b,0x00000014,0x00000015,0x00000001,0x00040020, + 0x00000017,0x00000003,0x00000008,0x0003001e,0x00000019,0x00000007,0x00040020,0x0000001a, + 0x00000003,0x00000019,0x0004003b,0x0000001a,0x0000001b,0x00000003,0x0004003b,0x00000014, + 0x0000001c,0x00000001,0x0004001e,0x0000001e,0x00000008,0x00000008,0x00040020,0x0000001f, + 0x00000009,0x0000001e,0x0004003b,0x0000001f,0x00000020,0x00000009,0x00040020,0x00000021, + 0x00000009,0x00000008,0x0004002b,0x00000006,0x00000028,0x00000000,0x0004002b,0x00000006, + 0x00000029,0x3f800000,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8, + 0x00000005,0x0004003d,0x00000007,0x00000010,0x0000000f,0x00050041,0x00000011,0x00000012, + 0x0000000b,0x0000000d,0x0003003e,0x00000012,0x00000010,0x0004003d,0x00000008,0x00000016, + 0x00000015,0x00050041,0x00000017,0x00000018,0x0000000b,0x00000013,0x0003003e,0x00000018, + 0x00000016,0x0004003d,0x00000008,0x0000001d,0x0000001c,0x00050041,0x00000021,0x00000022, + 0x00000020,0x0000000d,0x0004003d,0x00000008,0x00000023,0x00000022,0x00050085,0x00000008, + 0x00000024,0x0000001d,0x00000023,0x00050041,0x00000021,0x00000025,0x00000020,0x00000013, + 0x0004003d,0x00000008,0x00000026,0x00000025,0x00050081,0x00000008,0x00000027,0x00000024, + 0x00000026,0x00050051,0x00000006,0x0000002a,0x00000027,0x00000000,0x00050051,0x00000006, + 0x0000002b,0x00000027,0x00000001,0x00070050,0x00000007,0x0000002c,0x0000002a,0x0000002b, + 0x00000028,0x00000029,0x00050041,0x00000011,0x0000002d,0x0000001b,0x0000000d,0x0003003e, + 0x0000002d,0x0000002c,0x000100fd,0x00010038 +}; + +// glsl_shader.frag, compiled with: +// # glslangValidator -V -x -o glsl_shader.frag.u32 glsl_shader.frag +/* +#version 450 core +layout(location = 0) out vec4 fColor; +layout(set=0, binding=0) uniform sampler2D sTexture; +layout(location = 0) in struct { vec4 Color; vec2 UV; } In; +void main() +{ + fColor = In.Color * texture(sTexture, In.UV.st); +} +*/ +static uint32_t __glsl_shader_frag_spv[] = +{ + 0x07230203,0x00010000,0x00080001,0x0000001e,0x00000000,0x00020011,0x00000001,0x0006000b, + 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, + 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000009,0x0000000d,0x00030010, + 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d, + 0x00000000,0x00040005,0x00000009,0x6c6f4366,0x0000726f,0x00030005,0x0000000b,0x00000000, + 0x00050006,0x0000000b,0x00000000,0x6f6c6f43,0x00000072,0x00040006,0x0000000b,0x00000001, + 0x00005655,0x00030005,0x0000000d,0x00006e49,0x00050005,0x00000016,0x78655473,0x65727574, + 0x00000000,0x00040047,0x00000009,0x0000001e,0x00000000,0x00040047,0x0000000d,0x0000001e, + 0x00000000,0x00040047,0x00000016,0x00000022,0x00000000,0x00040047,0x00000016,0x00000021, + 0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006, + 0x00000020,0x00040017,0x00000007,0x00000006,0x00000004,0x00040020,0x00000008,0x00000003, + 0x00000007,0x0004003b,0x00000008,0x00000009,0x00000003,0x00040017,0x0000000a,0x00000006, + 0x00000002,0x0004001e,0x0000000b,0x00000007,0x0000000a,0x00040020,0x0000000c,0x00000001, + 0x0000000b,0x0004003b,0x0000000c,0x0000000d,0x00000001,0x00040015,0x0000000e,0x00000020, + 0x00000001,0x0004002b,0x0000000e,0x0000000f,0x00000000,0x00040020,0x00000010,0x00000001, + 0x00000007,0x00090019,0x00000013,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000, + 0x00000001,0x00000000,0x0003001b,0x00000014,0x00000013,0x00040020,0x00000015,0x00000000, + 0x00000014,0x0004003b,0x00000015,0x00000016,0x00000000,0x0004002b,0x0000000e,0x00000018, + 0x00000001,0x00040020,0x00000019,0x00000001,0x0000000a,0x00050036,0x00000002,0x00000004, + 0x00000000,0x00000003,0x000200f8,0x00000005,0x00050041,0x00000010,0x00000011,0x0000000d, + 0x0000000f,0x0004003d,0x00000007,0x00000012,0x00000011,0x0004003d,0x00000014,0x00000017, + 0x00000016,0x00050041,0x00000019,0x0000001a,0x0000000d,0x00000018,0x0004003d,0x0000000a, + 0x0000001b,0x0000001a,0x00050057,0x00000007,0x0000001c,0x00000017,0x0000001b,0x00050085, + 0x00000007,0x0000001d,0x00000012,0x0000001c,0x0003003e,0x00000009,0x0000001d,0x000100fd, + 0x00010038 +}; + +//----------------------------------------------------------------------------- +// FUNCTIONS +//----------------------------------------------------------------------------- + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +// FIXME: multi-context support is not tested and probably dysfunctional in this backend. +static ImGui_ImplVulkan_Data* ImGui_ImplVulkan_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplVulkan_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +static uint32_t ImGui_ImplVulkan_MemoryType(VkMemoryPropertyFlags properties, uint32_t type_bits) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + VkPhysicalDeviceMemoryProperties prop; + vkGetPhysicalDeviceMemoryProperties(v->PhysicalDevice, &prop); + for (uint32_t i = 0; i < prop.memoryTypeCount; i++) + if ((prop.memoryTypes[i].propertyFlags & properties) == properties && type_bits & (1 << i)) + return i; + return 0xFFFFFFFF; // Unable to find memoryType +} + +static void check_vk_result(VkResult err) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + if (!bd) + return; + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + if (v->CheckVkResultFn) + v->CheckVkResultFn(err); +} + +static void CreateOrResizeBuffer(VkBuffer& buffer, VkDeviceMemory& buffer_memory, VkDeviceSize& p_buffer_size, size_t new_size, VkBufferUsageFlagBits usage) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + VkResult err; + if (buffer != VK_NULL_HANDLE) + vkDestroyBuffer(v->Device, buffer, v->Allocator); + if (buffer_memory != VK_NULL_HANDLE) + vkFreeMemory(v->Device, buffer_memory, v->Allocator); + + VkDeviceSize vertex_buffer_size_aligned = ((new_size - 1) / bd->BufferMemoryAlignment + 1) * bd->BufferMemoryAlignment; + VkBufferCreateInfo buffer_info = {}; + buffer_info.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO; + buffer_info.size = vertex_buffer_size_aligned; + buffer_info.usage = usage; + buffer_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; + err = vkCreateBuffer(v->Device, &buffer_info, v->Allocator, &buffer); + check_vk_result(err); + + VkMemoryRequirements req; + vkGetBufferMemoryRequirements(v->Device, buffer, &req); + bd->BufferMemoryAlignment = (bd->BufferMemoryAlignment > req.alignment) ? bd->BufferMemoryAlignment : req.alignment; + VkMemoryAllocateInfo alloc_info = {}; + alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; + alloc_info.allocationSize = req.size; + alloc_info.memoryTypeIndex = ImGui_ImplVulkan_MemoryType(VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT, req.memoryTypeBits); + err = vkAllocateMemory(v->Device, &alloc_info, v->Allocator, &buffer_memory); + check_vk_result(err); + + err = vkBindBufferMemory(v->Device, buffer, buffer_memory, 0); + check_vk_result(err); + p_buffer_size = req.size; +} + +static void ImGui_ImplVulkan_SetupRenderState(ImDrawData* draw_data, VkPipeline pipeline, VkCommandBuffer command_buffer, ImGui_ImplVulkanH_FrameRenderBuffers* rb, int fb_width, int fb_height) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + + // Bind pipeline: + { + vkCmdBindPipeline(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline); + } + + // Bind Vertex And Index Buffer: + if (draw_data->TotalVtxCount > 0) + { + VkBuffer vertex_buffers[1] = { rb->VertexBuffer }; + VkDeviceSize vertex_offset[1] = { 0 }; + vkCmdBindVertexBuffers(command_buffer, 0, 1, vertex_buffers, vertex_offset); + vkCmdBindIndexBuffer(command_buffer, rb->IndexBuffer, 0, sizeof(ImDrawIdx) == 2 ? VK_INDEX_TYPE_UINT16 : VK_INDEX_TYPE_UINT32); + } + + // Setup viewport: + { + VkViewport viewport; + viewport.x = 0; + viewport.y = 0; + viewport.width = (float)fb_width; + viewport.height = (float)fb_height; + viewport.minDepth = 0.0f; + viewport.maxDepth = 1.0f; + vkCmdSetViewport(command_buffer, 0, 1, &viewport); + } + + // Setup scale and translation: + // Our visible imgui space lies from draw_data->DisplayPps (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. + { + float scale[2]; + scale[0] = 2.0f / draw_data->DisplaySize.x; + scale[1] = 2.0f / draw_data->DisplaySize.y; + float translate[2]; + translate[0] = -1.0f - draw_data->DisplayPos.x * scale[0]; + translate[1] = -1.0f - draw_data->DisplayPos.y * scale[1]; + vkCmdPushConstants(command_buffer, bd->PipelineLayout, VK_SHADER_STAGE_VERTEX_BIT, sizeof(float) * 0, sizeof(float) * 2, scale); + vkCmdPushConstants(command_buffer, bd->PipelineLayout, VK_SHADER_STAGE_VERTEX_BIT, sizeof(float) * 2, sizeof(float) * 2, translate); + } +} + +// Render function +void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer, VkPipeline pipeline) +{ + // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) + int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); + int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); + if (fb_width <= 0 || fb_height <= 0) + return; + + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + if (pipeline == VK_NULL_HANDLE) + pipeline = bd->Pipeline; + + // Allocate array to store enough vertex/index buffers. Each unique viewport gets its own storage. + ImGui_ImplVulkan_ViewportData* viewport_renderer_data = (ImGui_ImplVulkan_ViewportData*)draw_data->OwnerViewport->RendererUserData; + IM_ASSERT(viewport_renderer_data != nullptr); + ImGui_ImplVulkanH_WindowRenderBuffers* wrb = &viewport_renderer_data->RenderBuffers; + if (wrb->FrameRenderBuffers == nullptr) + { + wrb->Index = 0; + wrb->Count = v->ImageCount; + wrb->FrameRenderBuffers = (ImGui_ImplVulkanH_FrameRenderBuffers*)IM_ALLOC(sizeof(ImGui_ImplVulkanH_FrameRenderBuffers) * wrb->Count); + memset(wrb->FrameRenderBuffers, 0, sizeof(ImGui_ImplVulkanH_FrameRenderBuffers) * wrb->Count); + } + IM_ASSERT(wrb->Count == v->ImageCount); + wrb->Index = (wrb->Index + 1) % wrb->Count; + ImGui_ImplVulkanH_FrameRenderBuffers* rb = &wrb->FrameRenderBuffers[wrb->Index]; + + if (draw_data->TotalVtxCount > 0) + { + // Create or resize the vertex/index buffers + size_t vertex_size = draw_data->TotalVtxCount * sizeof(ImDrawVert); + size_t index_size = draw_data->TotalIdxCount * sizeof(ImDrawIdx); + if (rb->VertexBuffer == VK_NULL_HANDLE || rb->VertexBufferSize < vertex_size) + CreateOrResizeBuffer(rb->VertexBuffer, rb->VertexBufferMemory, rb->VertexBufferSize, vertex_size, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT); + if (rb->IndexBuffer == VK_NULL_HANDLE || rb->IndexBufferSize < index_size) + CreateOrResizeBuffer(rb->IndexBuffer, rb->IndexBufferMemory, rb->IndexBufferSize, index_size, VK_BUFFER_USAGE_INDEX_BUFFER_BIT); + + // Upload vertex/index data into a single contiguous GPU buffer + ImDrawVert* vtx_dst = nullptr; + ImDrawIdx* idx_dst = nullptr; + VkResult err = vkMapMemory(v->Device, rb->VertexBufferMemory, 0, rb->VertexBufferSize, 0, (void**)(&vtx_dst)); + check_vk_result(err); + err = vkMapMemory(v->Device, rb->IndexBufferMemory, 0, rb->IndexBufferSize, 0, (void**)(&idx_dst)); + check_vk_result(err); + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); + memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); + vtx_dst += cmd_list->VtxBuffer.Size; + idx_dst += cmd_list->IdxBuffer.Size; + } + VkMappedMemoryRange range[2] = {}; + range[0].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; + range[0].memory = rb->VertexBufferMemory; + range[0].size = VK_WHOLE_SIZE; + range[1].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; + range[1].memory = rb->IndexBufferMemory; + range[1].size = VK_WHOLE_SIZE; + err = vkFlushMappedMemoryRanges(v->Device, 2, range); + check_vk_result(err); + vkUnmapMemory(v->Device, rb->VertexBufferMemory); + vkUnmapMemory(v->Device, rb->IndexBufferMemory); + } + + // Setup desired Vulkan state + ImGui_ImplVulkan_SetupRenderState(draw_data, pipeline, command_buffer, rb, fb_width, fb_height); + + // Will project scissor/clipping rectangles into framebuffer space + ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports + ImVec2 clip_scale = draw_data->FramebufferScale; // (1,1) unless using retina display which are often (2,2) + + // Render command lists + // (Because we merged all buffers into a single one, we maintain our own offset into them) + int global_vtx_offset = 0; + int global_idx_offset = 0; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback != nullptr) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplVulkan_SetupRenderState(draw_data, pipeline, command_buffer, rb, fb_width, fb_height); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); + ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); + + // Clamp to viewport as vkCmdSetScissor() won't accept values that are off bounds + if (clip_min.x < 0.0f) { clip_min.x = 0.0f; } + if (clip_min.y < 0.0f) { clip_min.y = 0.0f; } + if (clip_max.x > fb_width) { clip_max.x = (float)fb_width; } + if (clip_max.y > fb_height) { clip_max.y = (float)fb_height; } + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply scissor/clipping rectangle + VkRect2D scissor; + scissor.offset.x = (int32_t)(clip_min.x); + scissor.offset.y = (int32_t)(clip_min.y); + scissor.extent.width = (uint32_t)(clip_max.x - clip_min.x); + scissor.extent.height = (uint32_t)(clip_max.y - clip_min.y); + vkCmdSetScissor(command_buffer, 0, 1, &scissor); + + // Bind DescriptorSet with font or user texture + VkDescriptorSet desc_set[1] = { (VkDescriptorSet)pcmd->TextureId }; + if (sizeof(ImTextureID) < sizeof(ImU64)) + { + // We don't support texture switches if ImTextureID hasn't been redefined to be 64-bit. Do a flaky check that other textures haven't been used. + IM_ASSERT(pcmd->TextureId == (ImTextureID)bd->FontDescriptorSet); + desc_set[0] = bd->FontDescriptorSet; + } + vkCmdBindDescriptorSets(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, bd->PipelineLayout, 0, 1, desc_set, 0, nullptr); + + // Draw + vkCmdDrawIndexed(command_buffer, pcmd->ElemCount, 1, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset, 0); + } + } + global_idx_offset += cmd_list->IdxBuffer.Size; + global_vtx_offset += cmd_list->VtxBuffer.Size; + } + + // Note: at this point both vkCmdSetViewport() and vkCmdSetScissor() have been called. + // Our last values will leak into user/application rendering IF: + // - Your app uses a pipeline with VK_DYNAMIC_STATE_VIEWPORT or VK_DYNAMIC_STATE_SCISSOR dynamic state + // - And you forgot to call vkCmdSetViewport() and vkCmdSetScissor() yourself to explicitly set that state. + // If you use VK_DYNAMIC_STATE_VIEWPORT or VK_DYNAMIC_STATE_SCISSOR you are responsible for setting the values before rendering. + // In theory we should aim to backup/restore those values but I am not sure this is possible. + // We perform a call to vkCmdSetScissor() to set back a full viewport which is likely to fix things for 99% users but technically this is not perfect. (See github #4644) + VkRect2D scissor = { { 0, 0 }, { (uint32_t)fb_width, (uint32_t)fb_height } }; + vkCmdSetScissor(command_buffer, 0, 1, &scissor); +} + +bool ImGui_ImplVulkan_CreateFontsTexture(VkCommandBuffer command_buffer) +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + size_t upload_size = width * height * 4 * sizeof(char); + + VkResult err; + + // Create the Image: + { + VkImageCreateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; + info.imageType = VK_IMAGE_TYPE_2D; + info.format = VK_FORMAT_R8G8B8A8_UNORM; + info.extent.width = width; + info.extent.height = height; + info.extent.depth = 1; + info.mipLevels = 1; + info.arrayLayers = 1; + info.samples = VK_SAMPLE_COUNT_1_BIT; + info.tiling = VK_IMAGE_TILING_OPTIMAL; + info.usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; + info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; + info.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; + err = vkCreateImage(v->Device, &info, v->Allocator, &bd->FontImage); + check_vk_result(err); + VkMemoryRequirements req; + vkGetImageMemoryRequirements(v->Device, bd->FontImage, &req); + VkMemoryAllocateInfo alloc_info = {}; + alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; + alloc_info.allocationSize = req.size; + alloc_info.memoryTypeIndex = ImGui_ImplVulkan_MemoryType(VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, req.memoryTypeBits); + err = vkAllocateMemory(v->Device, &alloc_info, v->Allocator, &bd->FontMemory); + check_vk_result(err); + err = vkBindImageMemory(v->Device, bd->FontImage, bd->FontMemory, 0); + check_vk_result(err); + } + + // Create the Image View: + { + VkImageViewCreateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO; + info.image = bd->FontImage; + info.viewType = VK_IMAGE_VIEW_TYPE_2D; + info.format = VK_FORMAT_R8G8B8A8_UNORM; + info.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; + info.subresourceRange.levelCount = 1; + info.subresourceRange.layerCount = 1; + err = vkCreateImageView(v->Device, &info, v->Allocator, &bd->FontView); + check_vk_result(err); + } + + // Create the Descriptor Set: + bd->FontDescriptorSet = (VkDescriptorSet)ImGui_ImplVulkan_AddTexture(bd->FontSampler, bd->FontView, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL); + + // Create the Upload Buffer: + { + VkBufferCreateInfo buffer_info = {}; + buffer_info.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO; + buffer_info.size = upload_size; + buffer_info.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT; + buffer_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; + err = vkCreateBuffer(v->Device, &buffer_info, v->Allocator, &bd->UploadBuffer); + check_vk_result(err); + VkMemoryRequirements req; + vkGetBufferMemoryRequirements(v->Device, bd->UploadBuffer, &req); + bd->BufferMemoryAlignment = (bd->BufferMemoryAlignment > req.alignment) ? bd->BufferMemoryAlignment : req.alignment; + VkMemoryAllocateInfo alloc_info = {}; + alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; + alloc_info.allocationSize = req.size; + alloc_info.memoryTypeIndex = ImGui_ImplVulkan_MemoryType(VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT, req.memoryTypeBits); + err = vkAllocateMemory(v->Device, &alloc_info, v->Allocator, &bd->UploadBufferMemory); + check_vk_result(err); + err = vkBindBufferMemory(v->Device, bd->UploadBuffer, bd->UploadBufferMemory, 0); + check_vk_result(err); + } + + // Upload to Buffer: + { + char* map = nullptr; + err = vkMapMemory(v->Device, bd->UploadBufferMemory, 0, upload_size, 0, (void**)(&map)); + check_vk_result(err); + memcpy(map, pixels, upload_size); + VkMappedMemoryRange range[1] = {}; + range[0].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; + range[0].memory = bd->UploadBufferMemory; + range[0].size = upload_size; + err = vkFlushMappedMemoryRanges(v->Device, 1, range); + check_vk_result(err); + vkUnmapMemory(v->Device, bd->UploadBufferMemory); + } + + // Copy to Image: + { + VkImageMemoryBarrier copy_barrier[1] = {}; + copy_barrier[0].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; + copy_barrier[0].dstAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT; + copy_barrier[0].oldLayout = VK_IMAGE_LAYOUT_UNDEFINED; + copy_barrier[0].newLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; + copy_barrier[0].srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; + copy_barrier[0].dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; + copy_barrier[0].image = bd->FontImage; + copy_barrier[0].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; + copy_barrier[0].subresourceRange.levelCount = 1; + copy_barrier[0].subresourceRange.layerCount = 1; + vkCmdPipelineBarrier(command_buffer, VK_PIPELINE_STAGE_HOST_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, 0, 0, nullptr, 0, nullptr, 1, copy_barrier); + + VkBufferImageCopy region = {}; + region.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; + region.imageSubresource.layerCount = 1; + region.imageExtent.width = width; + region.imageExtent.height = height; + region.imageExtent.depth = 1; + vkCmdCopyBufferToImage(command_buffer, bd->UploadBuffer, bd->FontImage, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, ®ion); + + VkImageMemoryBarrier use_barrier[1] = {}; + use_barrier[0].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; + use_barrier[0].srcAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT; + use_barrier[0].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; + use_barrier[0].oldLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; + use_barrier[0].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; + use_barrier[0].srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; + use_barrier[0].dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; + use_barrier[0].image = bd->FontImage; + use_barrier[0].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; + use_barrier[0].subresourceRange.levelCount = 1; + use_barrier[0].subresourceRange.layerCount = 1; + vkCmdPipelineBarrier(command_buffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, 0, 0, nullptr, 0, nullptr, 1, use_barrier); + } + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)bd->FontDescriptorSet); + + return true; +} + +static void ImGui_ImplVulkan_CreateShaderModules(VkDevice device, const VkAllocationCallbacks* allocator) +{ + // Create the shader modules + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + if (bd->ShaderModuleVert == VK_NULL_HANDLE) + { + VkShaderModuleCreateInfo vert_info = {}; + vert_info.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; + vert_info.codeSize = sizeof(__glsl_shader_vert_spv); + vert_info.pCode = (uint32_t*)__glsl_shader_vert_spv; + VkResult err = vkCreateShaderModule(device, &vert_info, allocator, &bd->ShaderModuleVert); + check_vk_result(err); + } + if (bd->ShaderModuleFrag == VK_NULL_HANDLE) + { + VkShaderModuleCreateInfo frag_info = {}; + frag_info.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; + frag_info.codeSize = sizeof(__glsl_shader_frag_spv); + frag_info.pCode = (uint32_t*)__glsl_shader_frag_spv; + VkResult err = vkCreateShaderModule(device, &frag_info, allocator, &bd->ShaderModuleFrag); + check_vk_result(err); + } +} + +static void ImGui_ImplVulkan_CreatePipeline(VkDevice device, const VkAllocationCallbacks* allocator, VkPipelineCache pipelineCache, VkRenderPass renderPass, VkSampleCountFlagBits MSAASamples, VkPipeline* pipeline, uint32_t subpass) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_CreateShaderModules(device, allocator); + + VkPipelineShaderStageCreateInfo stage[2] = {}; + stage[0].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; + stage[0].stage = VK_SHADER_STAGE_VERTEX_BIT; + stage[0].module = bd->ShaderModuleVert; + stage[0].pName = "main"; + stage[1].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; + stage[1].stage = VK_SHADER_STAGE_FRAGMENT_BIT; + stage[1].module = bd->ShaderModuleFrag; + stage[1].pName = "main"; + + VkVertexInputBindingDescription binding_desc[1] = {}; + binding_desc[0].stride = sizeof(ImDrawVert); + binding_desc[0].inputRate = VK_VERTEX_INPUT_RATE_VERTEX; + + VkVertexInputAttributeDescription attribute_desc[3] = {}; + attribute_desc[0].location = 0; + attribute_desc[0].binding = binding_desc[0].binding; + attribute_desc[0].format = VK_FORMAT_R32G32_SFLOAT; + attribute_desc[0].offset = IM_OFFSETOF(ImDrawVert, pos); + attribute_desc[1].location = 1; + attribute_desc[1].binding = binding_desc[0].binding; + attribute_desc[1].format = VK_FORMAT_R32G32_SFLOAT; + attribute_desc[1].offset = IM_OFFSETOF(ImDrawVert, uv); + attribute_desc[2].location = 2; + attribute_desc[2].binding = binding_desc[0].binding; + attribute_desc[2].format = VK_FORMAT_R8G8B8A8_UNORM; + attribute_desc[2].offset = IM_OFFSETOF(ImDrawVert, col); + + VkPipelineVertexInputStateCreateInfo vertex_info = {}; + vertex_info.sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO; + vertex_info.vertexBindingDescriptionCount = 1; + vertex_info.pVertexBindingDescriptions = binding_desc; + vertex_info.vertexAttributeDescriptionCount = 3; + vertex_info.pVertexAttributeDescriptions = attribute_desc; + + VkPipelineInputAssemblyStateCreateInfo ia_info = {}; + ia_info.sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO; + ia_info.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; + + VkPipelineViewportStateCreateInfo viewport_info = {}; + viewport_info.sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO; + viewport_info.viewportCount = 1; + viewport_info.scissorCount = 1; + + VkPipelineRasterizationStateCreateInfo raster_info = {}; + raster_info.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO; + raster_info.polygonMode = VK_POLYGON_MODE_FILL; + raster_info.cullMode = VK_CULL_MODE_NONE; + raster_info.frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE; + raster_info.lineWidth = 1.0f; + + VkPipelineMultisampleStateCreateInfo ms_info = {}; + ms_info.sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO; + ms_info.rasterizationSamples = (MSAASamples != 0) ? MSAASamples : VK_SAMPLE_COUNT_1_BIT; + + VkPipelineColorBlendAttachmentState color_attachment[1] = {}; + color_attachment[0].blendEnable = VK_TRUE; + color_attachment[0].srcColorBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA; + color_attachment[0].dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA; + color_attachment[0].colorBlendOp = VK_BLEND_OP_ADD; + color_attachment[0].srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE; + color_attachment[0].dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA; + color_attachment[0].alphaBlendOp = VK_BLEND_OP_ADD; + color_attachment[0].colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT; + + VkPipelineDepthStencilStateCreateInfo depth_info = {}; + depth_info.sType = VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO; + + VkPipelineColorBlendStateCreateInfo blend_info = {}; + blend_info.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO; + blend_info.attachmentCount = 1; + blend_info.pAttachments = color_attachment; + + VkDynamicState dynamic_states[2] = { VK_DYNAMIC_STATE_VIEWPORT, VK_DYNAMIC_STATE_SCISSOR }; + VkPipelineDynamicStateCreateInfo dynamic_state = {}; + dynamic_state.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO; + dynamic_state.dynamicStateCount = (uint32_t)IM_ARRAYSIZE(dynamic_states); + dynamic_state.pDynamicStates = dynamic_states; + + VkGraphicsPipelineCreateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO; + info.flags = bd->PipelineCreateFlags; + info.stageCount = 2; + info.pStages = stage; + info.pVertexInputState = &vertex_info; + info.pInputAssemblyState = &ia_info; + info.pViewportState = &viewport_info; + info.pRasterizationState = &raster_info; + info.pMultisampleState = &ms_info; + info.pDepthStencilState = &depth_info; + info.pColorBlendState = &blend_info; + info.pDynamicState = &dynamic_state; + info.layout = bd->PipelineLayout; + info.renderPass = renderPass; + info.subpass = subpass; + +#ifdef IMGUI_IMPL_VULKAN_HAS_DYNAMIC_RENDERING + VkPipelineRenderingCreateInfoKHR pipelineRenderingCreateInfo = {}; + pipelineRenderingCreateInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO_KHR; + pipelineRenderingCreateInfo.colorAttachmentCount = 1; + pipelineRenderingCreateInfo.pColorAttachmentFormats = &bd->VulkanInitInfo.ColorAttachmentFormat; + if (bd->VulkanInitInfo.UseDynamicRendering) + { + info.pNext = &pipelineRenderingCreateInfo; + info.renderPass = VK_NULL_HANDLE; // Just make sure it's actually nullptr. + } +#endif + + VkResult err = vkCreateGraphicsPipelines(device, pipelineCache, 1, &info, allocator, pipeline); + check_vk_result(err); +} + +bool ImGui_ImplVulkan_CreateDeviceObjects() +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + VkResult err; + + if (!bd->FontSampler) + { + // Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling. + VkSamplerCreateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO; + info.magFilter = VK_FILTER_LINEAR; + info.minFilter = VK_FILTER_LINEAR; + info.mipmapMode = VK_SAMPLER_MIPMAP_MODE_LINEAR; + info.addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT; + info.addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT; + info.addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT; + info.minLod = -1000; + info.maxLod = 1000; + info.maxAnisotropy = 1.0f; + err = vkCreateSampler(v->Device, &info, v->Allocator, &bd->FontSampler); + check_vk_result(err); + } + + if (!bd->DescriptorSetLayout) + { + VkDescriptorSetLayoutBinding binding[1] = {}; + binding[0].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; + binding[0].descriptorCount = 1; + binding[0].stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT; + VkDescriptorSetLayoutCreateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO; + info.bindingCount = 1; + info.pBindings = binding; + err = vkCreateDescriptorSetLayout(v->Device, &info, v->Allocator, &bd->DescriptorSetLayout); + check_vk_result(err); + } + + if (!bd->PipelineLayout) + { + // Constants: we are using 'vec2 offset' and 'vec2 scale' instead of a full 3d projection matrix + VkPushConstantRange push_constants[1] = {}; + push_constants[0].stageFlags = VK_SHADER_STAGE_VERTEX_BIT; + push_constants[0].offset = sizeof(float) * 0; + push_constants[0].size = sizeof(float) * 4; + VkDescriptorSetLayout set_layout[1] = { bd->DescriptorSetLayout }; + VkPipelineLayoutCreateInfo layout_info = {}; + layout_info.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO; + layout_info.setLayoutCount = 1; + layout_info.pSetLayouts = set_layout; + layout_info.pushConstantRangeCount = 1; + layout_info.pPushConstantRanges = push_constants; + err = vkCreatePipelineLayout(v->Device, &layout_info, v->Allocator, &bd->PipelineLayout); + check_vk_result(err); + } + + ImGui_ImplVulkan_CreatePipeline(v->Device, v->Allocator, v->PipelineCache, bd->RenderPass, v->MSAASamples, &bd->Pipeline, bd->Subpass); + + return true; +} + +void ImGui_ImplVulkan_DestroyFontUploadObjects() +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + if (bd->UploadBuffer) + { + vkDestroyBuffer(v->Device, bd->UploadBuffer, v->Allocator); + bd->UploadBuffer = VK_NULL_HANDLE; + } + if (bd->UploadBufferMemory) + { + vkFreeMemory(v->Device, bd->UploadBufferMemory, v->Allocator); + bd->UploadBufferMemory = VK_NULL_HANDLE; + } +} + +void ImGui_ImplVulkan_DestroyDeviceObjects() +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + ImGui_ImplVulkanH_DestroyAllViewportsRenderBuffers(v->Device, v->Allocator); + ImGui_ImplVulkan_DestroyFontUploadObjects(); + + if (bd->ShaderModuleVert) { vkDestroyShaderModule(v->Device, bd->ShaderModuleVert, v->Allocator); bd->ShaderModuleVert = VK_NULL_HANDLE; } + if (bd->ShaderModuleFrag) { vkDestroyShaderModule(v->Device, bd->ShaderModuleFrag, v->Allocator); bd->ShaderModuleFrag = VK_NULL_HANDLE; } + if (bd->FontView) { vkDestroyImageView(v->Device, bd->FontView, v->Allocator); bd->FontView = VK_NULL_HANDLE; } + if (bd->FontImage) { vkDestroyImage(v->Device, bd->FontImage, v->Allocator); bd->FontImage = VK_NULL_HANDLE; } + if (bd->FontMemory) { vkFreeMemory(v->Device, bd->FontMemory, v->Allocator); bd->FontMemory = VK_NULL_HANDLE; } + if (bd->FontSampler) { vkDestroySampler(v->Device, bd->FontSampler, v->Allocator); bd->FontSampler = VK_NULL_HANDLE; } + if (bd->DescriptorSetLayout) { vkDestroyDescriptorSetLayout(v->Device, bd->DescriptorSetLayout, v->Allocator); bd->DescriptorSetLayout = VK_NULL_HANDLE; } + if (bd->PipelineLayout) { vkDestroyPipelineLayout(v->Device, bd->PipelineLayout, v->Allocator); bd->PipelineLayout = VK_NULL_HANDLE; } + if (bd->Pipeline) { vkDestroyPipeline(v->Device, bd->Pipeline, v->Allocator); bd->Pipeline = VK_NULL_HANDLE; } +} + +bool ImGui_ImplVulkan_LoadFunctions(PFN_vkVoidFunction(*loader_func)(const char* function_name, void* user_data), void* user_data) +{ + // Load function pointers + // You can use the default Vulkan loader using: + // ImGui_ImplVulkan_LoadFunctions([](const char* function_name, void*) { return vkGetInstanceProcAddr(your_vk_isntance, function_name); }); + // But this would be equivalent to not setting VK_NO_PROTOTYPES. +#ifdef VK_NO_PROTOTYPES +#define IMGUI_VULKAN_FUNC_LOAD(func) \ + func = reinterpret_cast(loader_func(#func, user_data)); \ + if (func == nullptr) \ + return false; + IMGUI_VULKAN_FUNC_MAP(IMGUI_VULKAN_FUNC_LOAD) +#undef IMGUI_VULKAN_FUNC_LOAD + +#ifdef IMGUI_IMPL_VULKAN_HAS_DYNAMIC_RENDERING + // Manually load those two (see #5446) + ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR = reinterpret_cast(loader_func("vkCmdBeginRenderingKHR", user_data)); + ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR = reinterpret_cast(loader_func("vkCmdEndRenderingKHR", user_data)); +#endif +#else + IM_UNUSED(loader_func); + IM_UNUSED(user_data); +#endif + + g_FunctionsLoaded = true; + return true; +} + +bool ImGui_ImplVulkan_Init(ImGui_ImplVulkan_InitInfo* info, VkRenderPass render_pass) +{ + IM_ASSERT(g_FunctionsLoaded && "Need to call ImGui_ImplVulkan_LoadFunctions() if IMGUI_IMPL_VULKAN_NO_PROTOTYPES or VK_NO_PROTOTYPES are set!"); + + if (info->UseDynamicRendering) + { +#ifdef IMGUI_IMPL_VULKAN_HAS_DYNAMIC_RENDERING +#ifndef VK_NO_PROTOTYPES + ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR = reinterpret_cast(vkGetInstanceProcAddr(info->Instance, "vkCmdBeginRenderingKHR")); + ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR = reinterpret_cast(vkGetInstanceProcAddr(info->Instance, "vkCmdEndRenderingKHR")); +#endif + IM_ASSERT(ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR != nullptr); + IM_ASSERT(ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR != nullptr); +#else + IM_ASSERT(0 && "Can't use dynamic rendering when neither VK_VERSION_1_3 or VK_KHR_dynamic_rendering is defined."); +#endif + } + + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + + // Setup backend capabilities flags + ImGui_ImplVulkan_Data* bd = IM_NEW(ImGui_ImplVulkan_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_vulkan"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + + IM_ASSERT(info->Instance != VK_NULL_HANDLE); + IM_ASSERT(info->PhysicalDevice != VK_NULL_HANDLE); + IM_ASSERT(info->Device != VK_NULL_HANDLE); + IM_ASSERT(info->Queue != VK_NULL_HANDLE); + IM_ASSERT(info->DescriptorPool != VK_NULL_HANDLE); + IM_ASSERT(info->MinImageCount >= 2); + IM_ASSERT(info->ImageCount >= info->MinImageCount); + if (info->UseDynamicRendering == false) + IM_ASSERT(render_pass != VK_NULL_HANDLE); + + bd->VulkanInitInfo = *info; + bd->RenderPass = render_pass; + bd->Subpass = info->Subpass; + + ImGui_ImplVulkan_CreateDeviceObjects(); + + // Our render function expect RendererUserData to be storing the window render buffer we need (for the main viewport we won't use ->Window) + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + main_viewport->RendererUserData = IM_NEW(ImGui_ImplVulkan_ViewportData)(); + + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplVulkan_InitPlatformInterface(); + + return true; +} + +void ImGui_ImplVulkan_Shutdown() +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + // First destroy objects in all viewports + ImGui_ImplVulkan_DestroyDeviceObjects(); + + // Manually delete main viewport render data in-case we haven't initialized for viewports + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + if (ImGui_ImplVulkan_ViewportData* vd = (ImGui_ImplVulkan_ViewportData*)main_viewport->RendererUserData) + IM_DELETE(vd); + main_viewport->RendererUserData = nullptr; + + // Clean up windows + ImGui_ImplVulkan_ShutdownPlatformInterface(); + + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_RendererHasVtxOffset | ImGuiBackendFlags_RendererHasViewports); + IM_DELETE(bd); +} + +void ImGui_ImplVulkan_NewFrame() +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplVulkan_Init()?"); + IM_UNUSED(bd); +} + +void ImGui_ImplVulkan_SetMinImageCount(uint32_t min_image_count) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + IM_ASSERT(min_image_count >= 2); + if (bd->VulkanInitInfo.MinImageCount == min_image_count) + return; + + IM_ASSERT(0); // FIXME-VIEWPORT: Unsupported. Need to recreate all swap chains! + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + VkResult err = vkDeviceWaitIdle(v->Device); + check_vk_result(err); + ImGui_ImplVulkanH_DestroyAllViewportsRenderBuffers(v->Device, v->Allocator); + + bd->VulkanInitInfo.MinImageCount = min_image_count; +} + +// Register a texture +// FIXME: This is experimental in the sense that we are unsure how to best design/tackle this problem, please post to https://github.com/ocornut/imgui/pull/914 if you have suggestions. +VkDescriptorSet ImGui_ImplVulkan_AddTexture(VkSampler sampler, VkImageView image_view, VkImageLayout image_layout) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + + // Create Descriptor Set: + VkDescriptorSet descriptor_set; + { + VkDescriptorSetAllocateInfo alloc_info = {}; + alloc_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; + alloc_info.descriptorPool = v->DescriptorPool; + alloc_info.descriptorSetCount = 1; + alloc_info.pSetLayouts = &bd->DescriptorSetLayout; + VkResult err = vkAllocateDescriptorSets(v->Device, &alloc_info, &descriptor_set); + check_vk_result(err); + } + + // Update the Descriptor Set: + { + VkDescriptorImageInfo desc_image[1] = {}; + desc_image[0].sampler = sampler; + desc_image[0].imageView = image_view; + desc_image[0].imageLayout = image_layout; + VkWriteDescriptorSet write_desc[1] = {}; + write_desc[0].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; + write_desc[0].dstSet = descriptor_set; + write_desc[0].descriptorCount = 1; + write_desc[0].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; + write_desc[0].pImageInfo = desc_image; + vkUpdateDescriptorSets(v->Device, 1, write_desc, 0, nullptr); + } + return descriptor_set; +} + +void ImGui_ImplVulkan_RemoveTexture(VkDescriptorSet descriptor_set) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + vkFreeDescriptorSets(v->Device, v->DescriptorPool, 1, &descriptor_set); +} + +//------------------------------------------------------------------------- +// Internal / Miscellaneous Vulkan Helpers +// (Used by example's main.cpp. Used by multi-viewport features. PROBABLY NOT used by your own app.) +//------------------------------------------------------------------------- +// You probably do NOT need to use or care about those functions. +// Those functions only exist because: +// 1) they facilitate the readability and maintenance of the multiple main.cpp examples files. +// 2) the upcoming multi-viewport feature will need them internally. +// Generally we avoid exposing any kind of superfluous high-level helpers in the backends, +// but it is too much code to duplicate everywhere so we exceptionally expose them. +// +// Your engine/app will likely _already_ have code to setup all that stuff (swap chain, render pass, frame buffers, etc.). +// You may read this code to learn about Vulkan, but it is recommended you use you own custom tailored code to do equivalent work. +// (The ImGui_ImplVulkanH_XXX functions do not interact with any of the state used by the regular ImGui_ImplVulkan_XXX functions) +//------------------------------------------------------------------------- + +VkSurfaceFormatKHR ImGui_ImplVulkanH_SelectSurfaceFormat(VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkFormat* request_formats, int request_formats_count, VkColorSpaceKHR request_color_space) +{ + IM_ASSERT(g_FunctionsLoaded && "Need to call ImGui_ImplVulkan_LoadFunctions() if IMGUI_IMPL_VULKAN_NO_PROTOTYPES or VK_NO_PROTOTYPES are set!"); + IM_ASSERT(request_formats != nullptr); + IM_ASSERT(request_formats_count > 0); + + // Per Spec Format and View Format are expected to be the same unless VK_IMAGE_CREATE_MUTABLE_BIT was set at image creation + // Assuming that the default behavior is without setting this bit, there is no need for separate Swapchain image and image view format + // Additionally several new color spaces were introduced with Vulkan Spec v1.0.40, + // hence we must make sure that a format with the mostly available color space, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR, is found and used. + uint32_t avail_count; + vkGetPhysicalDeviceSurfaceFormatsKHR(physical_device, surface, &avail_count, nullptr); + ImVector avail_format; + avail_format.resize((int)avail_count); + vkGetPhysicalDeviceSurfaceFormatsKHR(physical_device, surface, &avail_count, avail_format.Data); + + // First check if only one format, VK_FORMAT_UNDEFINED, is available, which would imply that any format is available + if (avail_count == 1) + { + if (avail_format[0].format == VK_FORMAT_UNDEFINED) + { + VkSurfaceFormatKHR ret; + ret.format = request_formats[0]; + ret.colorSpace = request_color_space; + return ret; + } + else + { + // No point in searching another format + return avail_format[0]; + } + } + else + { + // Request several formats, the first found will be used + for (int request_i = 0; request_i < request_formats_count; request_i++) + for (uint32_t avail_i = 0; avail_i < avail_count; avail_i++) + if (avail_format[avail_i].format == request_formats[request_i] && avail_format[avail_i].colorSpace == request_color_space) + return avail_format[avail_i]; + + // If none of the requested image formats could be found, use the first available + return avail_format[0]; + } +} + +VkPresentModeKHR ImGui_ImplVulkanH_SelectPresentMode(VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkPresentModeKHR* request_modes, int request_modes_count) +{ + IM_ASSERT(g_FunctionsLoaded && "Need to call ImGui_ImplVulkan_LoadFunctions() if IMGUI_IMPL_VULKAN_NO_PROTOTYPES or VK_NO_PROTOTYPES are set!"); + IM_ASSERT(request_modes != nullptr); + IM_ASSERT(request_modes_count > 0); + + // Request a certain mode and confirm that it is available. If not use VK_PRESENT_MODE_FIFO_KHR which is mandatory + uint32_t avail_count = 0; + vkGetPhysicalDeviceSurfacePresentModesKHR(physical_device, surface, &avail_count, nullptr); + ImVector avail_modes; + avail_modes.resize((int)avail_count); + vkGetPhysicalDeviceSurfacePresentModesKHR(physical_device, surface, &avail_count, avail_modes.Data); + //for (uint32_t avail_i = 0; avail_i < avail_count; avail_i++) + // printf("[vulkan] avail_modes[%d] = %d\n", avail_i, avail_modes[avail_i]); + + for (int request_i = 0; request_i < request_modes_count; request_i++) + for (uint32_t avail_i = 0; avail_i < avail_count; avail_i++) + if (request_modes[request_i] == avail_modes[avail_i]) + return request_modes[request_i]; + + return VK_PRESENT_MODE_FIFO_KHR; // Always available +} + +void ImGui_ImplVulkanH_CreateWindowCommandBuffers(VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wd, uint32_t queue_family, const VkAllocationCallbacks* allocator) +{ + IM_ASSERT(physical_device != VK_NULL_HANDLE && device != VK_NULL_HANDLE); + (void)physical_device; + (void)allocator; + + // Create Command Buffers + VkResult err; + for (uint32_t i = 0; i < wd->ImageCount; i++) + { + ImGui_ImplVulkanH_Frame* fd = &wd->Frames[i]; + ImGui_ImplVulkanH_FrameSemaphores* fsd = &wd->FrameSemaphores[i]; + { + VkCommandPoolCreateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO; + info.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; + info.queueFamilyIndex = queue_family; + err = vkCreateCommandPool(device, &info, allocator, &fd->CommandPool); + check_vk_result(err); + } + { + VkCommandBufferAllocateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO; + info.commandPool = fd->CommandPool; + info.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY; + info.commandBufferCount = 1; + err = vkAllocateCommandBuffers(device, &info, &fd->CommandBuffer); + check_vk_result(err); + } + { + VkFenceCreateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO; + info.flags = VK_FENCE_CREATE_SIGNALED_BIT; + err = vkCreateFence(device, &info, allocator, &fd->Fence); + check_vk_result(err); + } + { + VkSemaphoreCreateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO; + err = vkCreateSemaphore(device, &info, allocator, &fsd->ImageAcquiredSemaphore); + check_vk_result(err); + err = vkCreateSemaphore(device, &info, allocator, &fsd->RenderCompleteSemaphore); + check_vk_result(err); + } + } +} + +int ImGui_ImplVulkanH_GetMinImageCountFromPresentMode(VkPresentModeKHR present_mode) +{ + if (present_mode == VK_PRESENT_MODE_MAILBOX_KHR) + return 3; + if (present_mode == VK_PRESENT_MODE_FIFO_KHR || present_mode == VK_PRESENT_MODE_FIFO_RELAXED_KHR) + return 2; + if (present_mode == VK_PRESENT_MODE_IMMEDIATE_KHR) + return 1; + IM_ASSERT(0); + return 1; +} + +// Also destroy old swap chain and in-flight frames data, if any. +void ImGui_ImplVulkanH_CreateWindowSwapChain(VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wd, const VkAllocationCallbacks* allocator, int w, int h, uint32_t min_image_count) +{ + VkResult err; + VkSwapchainKHR old_swapchain = wd->Swapchain; + wd->Swapchain = VK_NULL_HANDLE; + err = vkDeviceWaitIdle(device); + check_vk_result(err); + + // We don't use ImGui_ImplVulkanH_DestroyWindow() because we want to preserve the old swapchain to create the new one. + // Destroy old Framebuffer + for (uint32_t i = 0; i < wd->ImageCount; i++) + { + ImGui_ImplVulkanH_DestroyFrame(device, &wd->Frames[i], allocator); + ImGui_ImplVulkanH_DestroyFrameSemaphores(device, &wd->FrameSemaphores[i], allocator); + } + IM_FREE(wd->Frames); + IM_FREE(wd->FrameSemaphores); + wd->Frames = nullptr; + wd->FrameSemaphores = nullptr; + wd->ImageCount = 0; + if (wd->RenderPass) + vkDestroyRenderPass(device, wd->RenderPass, allocator); + if (wd->Pipeline) + vkDestroyPipeline(device, wd->Pipeline, allocator); + + // If min image count was not specified, request different count of images dependent on selected present mode + if (min_image_count == 0) + min_image_count = ImGui_ImplVulkanH_GetMinImageCountFromPresentMode(wd->PresentMode); + + // Create Swapchain + { + VkSwapchainCreateInfoKHR info = {}; + info.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR; + info.surface = wd->Surface; + info.minImageCount = min_image_count; + info.imageFormat = wd->SurfaceFormat.format; + info.imageColorSpace = wd->SurfaceFormat.colorSpace; + info.imageArrayLayers = 1; + info.imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; + info.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE; // Assume that graphics family == present family + info.preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR; + info.compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR; + info.presentMode = wd->PresentMode; + info.clipped = VK_TRUE; + info.oldSwapchain = old_swapchain; + VkSurfaceCapabilitiesKHR cap; + err = vkGetPhysicalDeviceSurfaceCapabilitiesKHR(physical_device, wd->Surface, &cap); + check_vk_result(err); + if (info.minImageCount < cap.minImageCount) + info.minImageCount = cap.minImageCount; + else if (cap.maxImageCount != 0 && info.minImageCount > cap.maxImageCount) + info.minImageCount = cap.maxImageCount; + + if (cap.currentExtent.width == 0xffffffff) + { + info.imageExtent.width = wd->Width = w; + info.imageExtent.height = wd->Height = h; + } + else + { + info.imageExtent.width = wd->Width = cap.currentExtent.width; + info.imageExtent.height = wd->Height = cap.currentExtent.height; + } + err = vkCreateSwapchainKHR(device, &info, allocator, &wd->Swapchain); + check_vk_result(err); + err = vkGetSwapchainImagesKHR(device, wd->Swapchain, &wd->ImageCount, nullptr); + check_vk_result(err); + VkImage backbuffers[16] = {}; + IM_ASSERT(wd->ImageCount >= min_image_count); + IM_ASSERT(wd->ImageCount < IM_ARRAYSIZE(backbuffers)); + err = vkGetSwapchainImagesKHR(device, wd->Swapchain, &wd->ImageCount, backbuffers); + check_vk_result(err); + + IM_ASSERT(wd->Frames == nullptr); + wd->Frames = (ImGui_ImplVulkanH_Frame*)IM_ALLOC(sizeof(ImGui_ImplVulkanH_Frame) * wd->ImageCount); + wd->FrameSemaphores = (ImGui_ImplVulkanH_FrameSemaphores*)IM_ALLOC(sizeof(ImGui_ImplVulkanH_FrameSemaphores) * wd->ImageCount); + memset(wd->Frames, 0, sizeof(wd->Frames[0]) * wd->ImageCount); + memset(wd->FrameSemaphores, 0, sizeof(wd->FrameSemaphores[0]) * wd->ImageCount); + for (uint32_t i = 0; i < wd->ImageCount; i++) + wd->Frames[i].Backbuffer = backbuffers[i]; + } + if (old_swapchain) + vkDestroySwapchainKHR(device, old_swapchain, allocator); + + // Create the Render Pass + if (wd->UseDynamicRendering == false) + { + VkAttachmentDescription attachment = {}; + attachment.format = wd->SurfaceFormat.format; + attachment.samples = VK_SAMPLE_COUNT_1_BIT; + attachment.loadOp = wd->ClearEnable ? VK_ATTACHMENT_LOAD_OP_CLEAR : VK_ATTACHMENT_LOAD_OP_DONT_CARE; + attachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE; + attachment.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; + attachment.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; + attachment.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; + attachment.finalLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; + VkAttachmentReference color_attachment = {}; + color_attachment.attachment = 0; + color_attachment.layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; + VkSubpassDescription subpass = {}; + subpass.pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS; + subpass.colorAttachmentCount = 1; + subpass.pColorAttachments = &color_attachment; + VkSubpassDependency dependency = {}; + dependency.srcSubpass = VK_SUBPASS_EXTERNAL; + dependency.dstSubpass = 0; + dependency.srcStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT; + dependency.dstStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT; + dependency.srcAccessMask = 0; + dependency.dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; + VkRenderPassCreateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO; + info.attachmentCount = 1; + info.pAttachments = &attachment; + info.subpassCount = 1; + info.pSubpasses = &subpass; + info.dependencyCount = 1; + info.pDependencies = &dependency; + err = vkCreateRenderPass(device, &info, allocator, &wd->RenderPass); + check_vk_result(err); + + // We do not create a pipeline by default as this is also used by examples' main.cpp, + // but secondary viewport in multi-viewport mode may want to create one with: + //ImGui_ImplVulkan_CreatePipeline(device, allocator, VK_NULL_HANDLE, wd->RenderPass, VK_SAMPLE_COUNT_1_BIT, &wd->Pipeline, bd->Subpass); + } + + // Create The Image Views + { + VkImageViewCreateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO; + info.viewType = VK_IMAGE_VIEW_TYPE_2D; + info.format = wd->SurfaceFormat.format; + info.components.r = VK_COMPONENT_SWIZZLE_R; + info.components.g = VK_COMPONENT_SWIZZLE_G; + info.components.b = VK_COMPONENT_SWIZZLE_B; + info.components.a = VK_COMPONENT_SWIZZLE_A; + VkImageSubresourceRange image_range = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1 }; + info.subresourceRange = image_range; + for (uint32_t i = 0; i < wd->ImageCount; i++) + { + ImGui_ImplVulkanH_Frame* fd = &wd->Frames[i]; + info.image = fd->Backbuffer; + err = vkCreateImageView(device, &info, allocator, &fd->BackbufferView); + check_vk_result(err); + } + } + + // Create Framebuffer + if (wd->UseDynamicRendering == false) + { + VkImageView attachment[1]; + VkFramebufferCreateInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO; + info.renderPass = wd->RenderPass; + info.attachmentCount = 1; + info.pAttachments = attachment; + info.width = wd->Width; + info.height = wd->Height; + info.layers = 1; + for (uint32_t i = 0; i < wd->ImageCount; i++) + { + ImGui_ImplVulkanH_Frame* fd = &wd->Frames[i]; + attachment[0] = fd->BackbufferView; + err = vkCreateFramebuffer(device, &info, allocator, &fd->Framebuffer); + check_vk_result(err); + } + } +} + +// Create or resize window +void ImGui_ImplVulkanH_CreateOrResizeWindow(VkInstance instance, VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wd, uint32_t queue_family, const VkAllocationCallbacks* allocator, int width, int height, uint32_t min_image_count) +{ + IM_ASSERT(g_FunctionsLoaded && "Need to call ImGui_ImplVulkan_LoadFunctions() if IMGUI_IMPL_VULKAN_NO_PROTOTYPES or VK_NO_PROTOTYPES are set!"); + (void)instance; + ImGui_ImplVulkanH_CreateWindowSwapChain(physical_device, device, wd, allocator, width, height, min_image_count); + //ImGui_ImplVulkan_CreatePipeline(device, allocator, VK_NULL_HANDLE, wd->RenderPass, VK_SAMPLE_COUNT_1_BIT, &wd->Pipeline, g_VulkanInitInfo.Subpass); + ImGui_ImplVulkanH_CreateWindowCommandBuffers(physical_device, device, wd, queue_family, allocator); +} + +void ImGui_ImplVulkanH_DestroyWindow(VkInstance instance, VkDevice device, ImGui_ImplVulkanH_Window* wd, const VkAllocationCallbacks* allocator) +{ + vkDeviceWaitIdle(device); // FIXME: We could wait on the Queue if we had the queue in wd-> (otherwise VulkanH functions can't use globals) + //vkQueueWaitIdle(bd->Queue); + + for (uint32_t i = 0; i < wd->ImageCount; i++) + { + ImGui_ImplVulkanH_DestroyFrame(device, &wd->Frames[i], allocator); + ImGui_ImplVulkanH_DestroyFrameSemaphores(device, &wd->FrameSemaphores[i], allocator); + } + IM_FREE(wd->Frames); + IM_FREE(wd->FrameSemaphores); + wd->Frames = nullptr; + wd->FrameSemaphores = nullptr; + vkDestroyPipeline(device, wd->Pipeline, allocator); + vkDestroyRenderPass(device, wd->RenderPass, allocator); + vkDestroySwapchainKHR(device, wd->Swapchain, allocator); + vkDestroySurfaceKHR(instance, wd->Surface, allocator); + + *wd = ImGui_ImplVulkanH_Window(); +} + +void ImGui_ImplVulkanH_DestroyFrame(VkDevice device, ImGui_ImplVulkanH_Frame* fd, const VkAllocationCallbacks* allocator) +{ + vkDestroyFence(device, fd->Fence, allocator); + vkFreeCommandBuffers(device, fd->CommandPool, 1, &fd->CommandBuffer); + vkDestroyCommandPool(device, fd->CommandPool, allocator); + fd->Fence = VK_NULL_HANDLE; + fd->CommandBuffer = VK_NULL_HANDLE; + fd->CommandPool = VK_NULL_HANDLE; + + vkDestroyImageView(device, fd->BackbufferView, allocator); + vkDestroyFramebuffer(device, fd->Framebuffer, allocator); +} + +void ImGui_ImplVulkanH_DestroyFrameSemaphores(VkDevice device, ImGui_ImplVulkanH_FrameSemaphores* fsd, const VkAllocationCallbacks* allocator) +{ + vkDestroySemaphore(device, fsd->ImageAcquiredSemaphore, allocator); + vkDestroySemaphore(device, fsd->RenderCompleteSemaphore, allocator); + fsd->ImageAcquiredSemaphore = fsd->RenderCompleteSemaphore = VK_NULL_HANDLE; +} + +void ImGui_ImplVulkanH_DestroyFrameRenderBuffers(VkDevice device, ImGui_ImplVulkanH_FrameRenderBuffers* buffers, const VkAllocationCallbacks* allocator) +{ + if (buffers->VertexBuffer) { vkDestroyBuffer(device, buffers->VertexBuffer, allocator); buffers->VertexBuffer = VK_NULL_HANDLE; } + if (buffers->VertexBufferMemory) { vkFreeMemory(device, buffers->VertexBufferMemory, allocator); buffers->VertexBufferMemory = VK_NULL_HANDLE; } + if (buffers->IndexBuffer) { vkDestroyBuffer(device, buffers->IndexBuffer, allocator); buffers->IndexBuffer = VK_NULL_HANDLE; } + if (buffers->IndexBufferMemory) { vkFreeMemory(device, buffers->IndexBufferMemory, allocator); buffers->IndexBufferMemory = VK_NULL_HANDLE; } + buffers->VertexBufferSize = 0; + buffers->IndexBufferSize = 0; +} + +void ImGui_ImplVulkanH_DestroyWindowRenderBuffers(VkDevice device, ImGui_ImplVulkanH_WindowRenderBuffers* buffers, const VkAllocationCallbacks* allocator) +{ + for (uint32_t n = 0; n < buffers->Count; n++) + ImGui_ImplVulkanH_DestroyFrameRenderBuffers(device, &buffers->FrameRenderBuffers[n], allocator); + IM_FREE(buffers->FrameRenderBuffers); + buffers->FrameRenderBuffers = nullptr; + buffers->Index = 0; + buffers->Count = 0; +} + +void ImGui_ImplVulkanH_DestroyAllViewportsRenderBuffers(VkDevice device, const VkAllocationCallbacks* allocator) +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int n = 0; n < platform_io.Viewports.Size; n++) + if (ImGui_ImplVulkan_ViewportData* vd = (ImGui_ImplVulkan_ViewportData*)platform_io.Viewports[n]->RendererUserData) + ImGui_ImplVulkanH_DestroyWindowRenderBuffers(device, &vd->RenderBuffers, allocator); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +static void ImGui_ImplVulkan_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_ViewportData* vd = IM_NEW(ImGui_ImplVulkan_ViewportData)(); + viewport->RendererUserData = vd; + ImGui_ImplVulkanH_Window* wd = &vd->Window; + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + + // Create surface + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + VkResult err = (VkResult)platform_io.Platform_CreateVkSurface(viewport, (ImU64)v->Instance, (const void*)v->Allocator, (ImU64*)&wd->Surface); + check_vk_result(err); + + // Check for WSI support + VkBool32 res; + vkGetPhysicalDeviceSurfaceSupportKHR(v->PhysicalDevice, v->QueueFamily, wd->Surface, &res); + if (res != VK_TRUE) + { + IM_ASSERT(0); // Error: no WSI support on physical device + return; + } + + // Select Surface Format + const VkFormat requestSurfaceImageFormat[] = { VK_FORMAT_B8G8R8A8_UNORM, VK_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_B8G8R8_UNORM, VK_FORMAT_R8G8B8_UNORM }; + const VkColorSpaceKHR requestSurfaceColorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR; + wd->SurfaceFormat = ImGui_ImplVulkanH_SelectSurfaceFormat(v->PhysicalDevice, wd->Surface, requestSurfaceImageFormat, (size_t)IM_ARRAYSIZE(requestSurfaceImageFormat), requestSurfaceColorSpace); + + // Select Present Mode + // FIXME-VULKAN: Even thought mailbox seems to get us maximum framerate with a single window, it halves framerate with a second window etc. (w/ Nvidia and SDK 1.82.1) + VkPresentModeKHR present_modes[] = { VK_PRESENT_MODE_MAILBOX_KHR, VK_PRESENT_MODE_IMMEDIATE_KHR, VK_PRESENT_MODE_FIFO_KHR }; + wd->PresentMode = ImGui_ImplVulkanH_SelectPresentMode(v->PhysicalDevice, wd->Surface, &present_modes[0], IM_ARRAYSIZE(present_modes)); + //printf("[vulkan] Secondary window selected PresentMode = %d\n", wd->PresentMode); + + // Create SwapChain, RenderPass, Framebuffer, etc. + wd->ClearEnable = (viewport->Flags & ImGuiViewportFlags_NoRendererClear) ? false : true; + wd->UseDynamicRendering = v->UseDynamicRendering; + ImGui_ImplVulkanH_CreateOrResizeWindow(v->Instance, v->PhysicalDevice, v->Device, wd, v->QueueFamily, v->Allocator, (int)viewport->Size.x, (int)viewport->Size.y, v->MinImageCount); + vd->WindowOwned = true; +} + +static void ImGui_ImplVulkan_DestroyWindow(ImGuiViewport* viewport) +{ + // The main viewport (owned by the application) will always have RendererUserData == 0 since we didn't create the data for it. + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + if (ImGui_ImplVulkan_ViewportData* vd = (ImGui_ImplVulkan_ViewportData*)viewport->RendererUserData) + { + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + if (vd->WindowOwned) + ImGui_ImplVulkanH_DestroyWindow(v->Instance, v->Device, &vd->Window, v->Allocator); + ImGui_ImplVulkanH_DestroyWindowRenderBuffers(v->Device, &vd->RenderBuffers, v->Allocator); + IM_DELETE(vd); + } + viewport->RendererUserData = nullptr; +} + +static void ImGui_ImplVulkan_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_ViewportData* vd = (ImGui_ImplVulkan_ViewportData*)viewport->RendererUserData; + if (vd == nullptr) // This is nullptr for the main viewport (which is left to the user/app to handle) + return; + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + vd->Window.ClearEnable = (viewport->Flags & ImGuiViewportFlags_NoRendererClear) ? false : true; + ImGui_ImplVulkanH_CreateOrResizeWindow(v->Instance, v->PhysicalDevice, v->Device, &vd->Window, v->QueueFamily, v->Allocator, (int)size.x, (int)size.y, v->MinImageCount); +} + +static void ImGui_ImplVulkan_RenderWindow(ImGuiViewport* viewport, void*) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_ViewportData* vd = (ImGui_ImplVulkan_ViewportData*)viewport->RendererUserData; + ImGui_ImplVulkanH_Window* wd = &vd->Window; + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + VkResult err; + + ImGui_ImplVulkanH_Frame* fd = &wd->Frames[wd->FrameIndex]; + ImGui_ImplVulkanH_FrameSemaphores* fsd = &wd->FrameSemaphores[wd->SemaphoreIndex]; + { + { + err = vkAcquireNextImageKHR(v->Device, wd->Swapchain, UINT64_MAX, fsd->ImageAcquiredSemaphore, VK_NULL_HANDLE, &wd->FrameIndex); + check_vk_result(err); + fd = &wd->Frames[wd->FrameIndex]; + } + for (;;) + { + err = vkWaitForFences(v->Device, 1, &fd->Fence, VK_TRUE, 100); + if (err == VK_SUCCESS) break; + if (err == VK_TIMEOUT) continue; + check_vk_result(err); + } + { + err = vkResetCommandPool(v->Device, fd->CommandPool, 0); + check_vk_result(err); + VkCommandBufferBeginInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; + info.flags |= VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; + err = vkBeginCommandBuffer(fd->CommandBuffer, &info); + check_vk_result(err); + } + { + ImVec4 clear_color = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); + memcpy(&wd->ClearValue.color.float32[0], &clear_color, 4 * sizeof(float)); + } +#ifdef IMGUI_IMPL_VULKAN_HAS_DYNAMIC_RENDERING + if (v->UseDynamicRendering) + { + // Transition swapchain image to a layout suitable for drawing. + VkImageMemoryBarrier barrier = {}; + barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; + barrier.dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; + barrier.oldLayout = VK_IMAGE_LAYOUT_UNDEFINED; + barrier.newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; + barrier.image = fd->Backbuffer; + barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; + barrier.subresourceRange.levelCount = 1; + barrier.subresourceRange.layerCount = 1; + vkCmdPipelineBarrier(fd->CommandBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, 0, 0, nullptr, 0, nullptr, 1, &barrier); + + VkRenderingAttachmentInfo attachmentInfo = {}; + attachmentInfo.sType = VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO_KHR; + attachmentInfo.imageView = fd->BackbufferView; + attachmentInfo.imageLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; + attachmentInfo.resolveMode = VK_RESOLVE_MODE_NONE; + attachmentInfo.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; + attachmentInfo.storeOp = VK_ATTACHMENT_STORE_OP_STORE; + attachmentInfo.clearValue = wd->ClearValue; + + VkRenderingInfo renderingInfo = {}; + renderingInfo.sType = VK_STRUCTURE_TYPE_RENDERING_INFO_KHR; + renderingInfo.renderArea.extent.width = wd->Width; + renderingInfo.renderArea.extent.height = wd->Height; + renderingInfo.layerCount = 1; + renderingInfo.viewMask = 0; + renderingInfo.colorAttachmentCount = 1; + renderingInfo.pColorAttachments = &attachmentInfo; + + ImGuiImplVulkanFuncs_vkCmdBeginRenderingKHR(fd->CommandBuffer, &renderingInfo); + } + else +#endif + { + VkRenderPassBeginInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; + info.renderPass = wd->RenderPass; + info.framebuffer = fd->Framebuffer; + info.renderArea.extent.width = wd->Width; + info.renderArea.extent.height = wd->Height; + info.clearValueCount = (viewport->Flags & ImGuiViewportFlags_NoRendererClear) ? 0 : 1; + info.pClearValues = (viewport->Flags & ImGuiViewportFlags_NoRendererClear) ? nullptr : &wd->ClearValue; + vkCmdBeginRenderPass(fd->CommandBuffer, &info, VK_SUBPASS_CONTENTS_INLINE); + } + } + + ImGui_ImplVulkan_RenderDrawData(viewport->DrawData, fd->CommandBuffer, wd->Pipeline); + + { +#ifdef IMGUI_IMPL_VULKAN_HAS_DYNAMIC_RENDERING + if (v->UseDynamicRendering) + { + ImGuiImplVulkanFuncs_vkCmdEndRenderingKHR(fd->CommandBuffer); + + // Transition image to a layout suitable for presentation + VkImageMemoryBarrier barrier = {}; + barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; + barrier.srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; + barrier.oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; + barrier.newLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; + barrier.image = fd->Backbuffer; + barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; + barrier.subresourceRange.levelCount = 1; + barrier.subresourceRange.layerCount = 1; + vkCmdPipelineBarrier(fd->CommandBuffer, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, 0, 0, nullptr, 0, nullptr, 1, &barrier); + } + else +#endif + { + vkCmdEndRenderPass(fd->CommandBuffer); + } + { + VkPipelineStageFlags wait_stage = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT; + VkSubmitInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; + info.waitSemaphoreCount = 1; + info.pWaitSemaphores = &fsd->ImageAcquiredSemaphore; + info.pWaitDstStageMask = &wait_stage; + info.commandBufferCount = 1; + info.pCommandBuffers = &fd->CommandBuffer; + info.signalSemaphoreCount = 1; + info.pSignalSemaphores = &fsd->RenderCompleteSemaphore; + + err = vkEndCommandBuffer(fd->CommandBuffer); + check_vk_result(err); + err = vkResetFences(v->Device, 1, &fd->Fence); + check_vk_result(err); + err = vkQueueSubmit(v->Queue, 1, &info, fd->Fence); + check_vk_result(err); + } + } +} + +static void ImGui_ImplVulkan_SwapBuffers(ImGuiViewport* viewport, void*) +{ + ImGui_ImplVulkan_Data* bd = ImGui_ImplVulkan_GetBackendData(); + ImGui_ImplVulkan_ViewportData* vd = (ImGui_ImplVulkan_ViewportData*)viewport->RendererUserData; + ImGui_ImplVulkanH_Window* wd = &vd->Window; + ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo; + + VkResult err; + uint32_t present_index = wd->FrameIndex; + + ImGui_ImplVulkanH_FrameSemaphores* fsd = &wd->FrameSemaphores[wd->SemaphoreIndex]; + VkPresentInfoKHR info = {}; + info.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR; + info.waitSemaphoreCount = 1; + info.pWaitSemaphores = &fsd->RenderCompleteSemaphore; + info.swapchainCount = 1; + info.pSwapchains = &wd->Swapchain; + info.pImageIndices = &present_index; + err = vkQueuePresentKHR(v->Queue, &info); + if (err == VK_ERROR_OUT_OF_DATE_KHR || err == VK_SUBOPTIMAL_KHR) + ImGui_ImplVulkanH_CreateOrResizeWindow(v->Instance, v->PhysicalDevice, v->Device, &vd->Window, v->QueueFamily, v->Allocator, (int)viewport->Size.x, (int)viewport->Size.y, v->MinImageCount); + else + check_vk_result(err); + + wd->FrameIndex = (wd->FrameIndex + 1) % wd->ImageCount; // This is for the next vkWaitForFences() + wd->SemaphoreIndex = (wd->SemaphoreIndex + 1) % wd->ImageCount; // Now we can use the next set of semaphores +} + +void ImGui_ImplVulkan_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + if (ImGui::GetIO().ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + IM_ASSERT(platform_io.Platform_CreateVkSurface != nullptr && "Platform needs to setup the CreateVkSurface handler."); + platform_io.Renderer_CreateWindow = ImGui_ImplVulkan_CreateWindow; + platform_io.Renderer_DestroyWindow = ImGui_ImplVulkan_DestroyWindow; + platform_io.Renderer_SetWindowSize = ImGui_ImplVulkan_SetWindowSize; + platform_io.Renderer_RenderWindow = ImGui_ImplVulkan_RenderWindow; + platform_io.Renderer_SwapBuffers = ImGui_ImplVulkan_SwapBuffers; +} + +void ImGui_ImplVulkan_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_vulkan.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_vulkan.h new file mode 100644 index 0000000..53388c8 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_vulkan.h @@ -0,0 +1,170 @@ +// dear imgui: Renderer Backend for Vulkan +// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) + +// Implemented features: +// [x] Renderer: User texture binding. Use 'VkDescriptorSet' as ImTextureID. Read the FAQ about ImTextureID! See https://github.com/ocornut/imgui/pull/914 for discussions. +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [x] Renderer: Multi-viewport / platform windows. With issues (flickering when creating a new viewport). + +// Important: on 32-bit systems, user texture binding is only supported if your imconfig file has '#define ImTextureID ImU64'. +// See imgui_impl_vulkan.cpp file for details. + +// The aim of imgui_impl_vulkan.h/.cpp is to be usable in your engine without any modification. +// IF YOU FEEL YOU NEED TO MAKE ANY CHANGE TO THIS CODE, please share them and your feedback at https://github.com/ocornut/imgui/ + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// Important note to the reader who wish to integrate imgui_impl_vulkan.cpp/.h in their own engine/app. +// - Common ImGui_ImplVulkan_XXX functions and structures are used to interface with imgui_impl_vulkan.cpp/.h. +// You will use those if you want to use this rendering backend in your engine/app. +// - Helper ImGui_ImplVulkanH_XXX functions and structures are only used by this example (main.cpp) and by +// the backend itself (imgui_impl_vulkan.cpp), but should PROBABLY NOT be used by your own engine/app code. +// Read comments in imgui_impl_vulkan.h. + +#pragma once +#ifndef IMGUI_DISABLE +#include "imgui.h" // IMGUI_IMPL_API + +// [Configuration] in order to use a custom Vulkan function loader: +// (1) You'll need to disable default Vulkan function prototypes. +// We provide a '#define IMGUI_IMPL_VULKAN_NO_PROTOTYPES' convenience configuration flag. +// In order to make sure this is visible from the imgui_impl_vulkan.cpp compilation unit: +// - Add '#define IMGUI_IMPL_VULKAN_NO_PROTOTYPES' in your imconfig.h file +// - Or as a compilation flag in your build system +// - Or uncomment here (not recommended because you'd be modifying imgui sources!) +// - Do not simply add it in a .cpp file! +// (2) Call ImGui_ImplVulkan_LoadFunctions() before ImGui_ImplVulkan_Init() with your custom function. +// If you have no idea what this is, leave it alone! +//#define IMGUI_IMPL_VULKAN_NO_PROTOTYPES + +// Vulkan includes +#if defined(IMGUI_IMPL_VULKAN_NO_PROTOTYPES) && !defined(VK_NO_PROTOTYPES) +#define VK_NO_PROTOTYPES +#endif +#include + +// Initialization data, for ImGui_ImplVulkan_Init() +// [Please zero-clear before use!] +struct ImGui_ImplVulkan_InitInfo +{ + VkInstance Instance; + VkPhysicalDevice PhysicalDevice; + VkDevice Device; + uint32_t QueueFamily; + VkQueue Queue; + VkPipelineCache PipelineCache; + VkDescriptorPool DescriptorPool; + uint32_t Subpass; + uint32_t MinImageCount; // >= 2 + uint32_t ImageCount; // >= MinImageCount + VkSampleCountFlagBits MSAASamples; // >= VK_SAMPLE_COUNT_1_BIT (0 -> default to VK_SAMPLE_COUNT_1_BIT) + + // Dynamic Rendering (Optional) + bool UseDynamicRendering; // Need to explicitly enable VK_KHR_dynamic_rendering extension to use this, even for Vulkan 1.3. + VkFormat ColorAttachmentFormat; // Required for dynamic rendering + + // Allocation, Debugging + const VkAllocationCallbacks* Allocator; + void (*CheckVkResultFn)(VkResult err); +}; + +// Called by user code +IMGUI_IMPL_API bool ImGui_ImplVulkan_Init(ImGui_ImplVulkan_InitInfo* info, VkRenderPass render_pass); +IMGUI_IMPL_API void ImGui_ImplVulkan_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplVulkan_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer, VkPipeline pipeline = VK_NULL_HANDLE); +IMGUI_IMPL_API bool ImGui_ImplVulkan_CreateFontsTexture(VkCommandBuffer command_buffer); +IMGUI_IMPL_API void ImGui_ImplVulkan_DestroyFontUploadObjects(); +IMGUI_IMPL_API void ImGui_ImplVulkan_SetMinImageCount(uint32_t min_image_count); // To override MinImageCount after initialization (e.g. if swap chain is recreated) + +// Register a texture (VkDescriptorSet == ImTextureID) +// FIXME: This is experimental in the sense that we are unsure how to best design/tackle this problem +// Please post to https://github.com/ocornut/imgui/pull/914 if you have suggestions. +IMGUI_IMPL_API VkDescriptorSet ImGui_ImplVulkan_AddTexture(VkSampler sampler, VkImageView image_view, VkImageLayout image_layout); +IMGUI_IMPL_API void ImGui_ImplVulkan_RemoveTexture(VkDescriptorSet descriptor_set); + +// Optional: load Vulkan functions with a custom function loader +// This is only useful with IMGUI_IMPL_VULKAN_NO_PROTOTYPES / VK_NO_PROTOTYPES +IMGUI_IMPL_API bool ImGui_ImplVulkan_LoadFunctions(PFN_vkVoidFunction(*loader_func)(const char* function_name, void* user_data), void* user_data = nullptr); + +//------------------------------------------------------------------------- +// Internal / Miscellaneous Vulkan Helpers +// (Used by example's main.cpp. Used by multi-viewport features. PROBABLY NOT used by your own engine/app.) +//------------------------------------------------------------------------- +// You probably do NOT need to use or care about those functions. +// Those functions only exist because: +// 1) they facilitate the readability and maintenance of the multiple main.cpp examples files. +// 2) the multi-viewport / platform window implementation needs them internally. +// Generally we avoid exposing any kind of superfluous high-level helpers in the bindings, +// but it is too much code to duplicate everywhere so we exceptionally expose them. +// +// Your engine/app will likely _already_ have code to setup all that stuff (swap chain, render pass, frame buffers, etc.). +// You may read this code to learn about Vulkan, but it is recommended you use you own custom tailored code to do equivalent work. +// (The ImGui_ImplVulkanH_XXX functions do not interact with any of the state used by the regular ImGui_ImplVulkan_XXX functions) +//------------------------------------------------------------------------- + +struct ImGui_ImplVulkanH_Frame; +struct ImGui_ImplVulkanH_Window; + +// Helpers +IMGUI_IMPL_API void ImGui_ImplVulkanH_CreateOrResizeWindow(VkInstance instance, VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wnd, uint32_t queue_family, const VkAllocationCallbacks* allocator, int w, int h, uint32_t min_image_count); +IMGUI_IMPL_API void ImGui_ImplVulkanH_DestroyWindow(VkInstance instance, VkDevice device, ImGui_ImplVulkanH_Window* wnd, const VkAllocationCallbacks* allocator); +IMGUI_IMPL_API VkSurfaceFormatKHR ImGui_ImplVulkanH_SelectSurfaceFormat(VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkFormat* request_formats, int request_formats_count, VkColorSpaceKHR request_color_space); +IMGUI_IMPL_API VkPresentModeKHR ImGui_ImplVulkanH_SelectPresentMode(VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkPresentModeKHR* request_modes, int request_modes_count); +IMGUI_IMPL_API int ImGui_ImplVulkanH_GetMinImageCountFromPresentMode(VkPresentModeKHR present_mode); + +// Helper structure to hold the data needed by one rendering frame +// (Used by example's main.cpp. Used by multi-viewport features. Probably NOT used by your own engine/app.) +// [Please zero-clear before use!] +struct ImGui_ImplVulkanH_Frame +{ + VkCommandPool CommandPool; + VkCommandBuffer CommandBuffer; + VkFence Fence; + VkImage Backbuffer; + VkImageView BackbufferView; + VkFramebuffer Framebuffer; +}; + +struct ImGui_ImplVulkanH_FrameSemaphores +{ + VkSemaphore ImageAcquiredSemaphore; + VkSemaphore RenderCompleteSemaphore; +}; + +// Helper structure to hold the data needed by one rendering context into one OS window +// (Used by example's main.cpp. Used by multi-viewport features. Probably NOT used by your own engine/app.) +struct ImGui_ImplVulkanH_Window +{ + int Width; + int Height; + VkSwapchainKHR Swapchain; + VkSurfaceKHR Surface; + VkSurfaceFormatKHR SurfaceFormat; + VkPresentModeKHR PresentMode; + VkRenderPass RenderPass; + VkPipeline Pipeline; // The window pipeline may uses a different VkRenderPass than the one passed in ImGui_ImplVulkan_InitInfo + bool UseDynamicRendering; + bool ClearEnable; + VkClearValue ClearValue; + uint32_t FrameIndex; // Current frame being rendered to (0 <= FrameIndex < FrameInFlightCount) + uint32_t ImageCount; // Number of simultaneous in-flight frames (returned by vkGetSwapchainImagesKHR, usually derived from min_image_count) + uint32_t SemaphoreIndex; // Current set of swapchain wait semaphores we're using (needs to be distinct from per frame data) + ImGui_ImplVulkanH_Frame* Frames; + ImGui_ImplVulkanH_FrameSemaphores* FrameSemaphores; + + ImGui_ImplVulkanH_Window() + { + memset((void*)this, 0, sizeof(*this)); + PresentMode = (VkPresentModeKHR)~0; // Ensure we get an error if user doesn't set this. + ClearEnable = true; + } +}; + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_wgpu.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_wgpu.cpp new file mode 100644 index 0000000..d6f886b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_wgpu.cpp @@ -0,0 +1,774 @@ +// dear imgui: Renderer for WebGPU +// This needs to be used along with a Platform Binding (e.g. GLFW) +// (Please note that WebGPU is currently experimental, will not run on non-beta browsers, and may break.) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'WGPUTextureView' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// Missing features: +// [ ] Renderer: Multi-viewport support (multiple windows). Not meaningful on the web. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-07-13: Use WGPUShaderModuleWGSLDescriptor's code instead of source. use WGPUMipmapFilterMode_Linear instead of WGPUFilterMode_Linear. (#6602) +// 2023-04-11: Align buffer sizes. Use WGSL shaders instead of precompiled SPIR-V. +// 2023-04-11: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2023-01-25: Revert automatic pipeline layout generation (see https://github.com/gpuweb/gpuweb/issues/2470) +// 2022-11-24: Fixed validation error with default depth buffer settings. +// 2022-11-10: Fixed rendering when a depth buffer is enabled. Added 'WGPUTextureFormat depth_format' parameter to ImGui_ImplWGPU_Init(). +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2021-11-29: Passing explicit buffer sizes to wgpuRenderPassEncoderSetVertexBuffer()/wgpuRenderPassEncoderSetIndexBuffer(). +// 2021-08-24: Fixed for latest specs. +// 2021-05-24: Add support for draw_data->FramebufferScale. +// 2021-05-19: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-05-16: Update to latest WebGPU specs (compatible with Emscripten 2.0.20 and Chrome Canary 92). +// 2021-02-18: Change blending equation to preserve alpha in output buffer. +// 2021-01-28: Initial version. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_wgpu.h" +#include +#include + +// Dear ImGui prototypes from imgui_internal.h +extern ImGuiID ImHashData(const void* data_p, size_t data_size, ImU32 seed = 0); +#define MEMALIGN(_SIZE,_ALIGN) (((_SIZE) + ((_ALIGN) - 1)) & ~((_ALIGN) - 1)) // Memory align (copied from IM_ALIGN() macro). + +// WebGPU data +struct RenderResources +{ + WGPUTexture FontTexture = nullptr; // Font texture + WGPUTextureView FontTextureView = nullptr; // Texture view for font texture + WGPUSampler Sampler = nullptr; // Sampler for the font texture + WGPUBuffer Uniforms = nullptr; // Shader uniforms + WGPUBindGroup CommonBindGroup = nullptr; // Resources bind-group to bind the common resources to pipeline + ImGuiStorage ImageBindGroups; // Resources bind-group to bind the font/image resources to pipeline (this is a key->value map) + WGPUBindGroup ImageBindGroup = nullptr; // Default font-resource of Dear ImGui + WGPUBindGroupLayout ImageBindGroupLayout = nullptr; // Cache layout used for the image bind group. Avoids allocating unnecessary JS objects when working with WebASM +}; + +struct FrameResources +{ + WGPUBuffer IndexBuffer; + WGPUBuffer VertexBuffer; + ImDrawIdx* IndexBufferHost; + ImDrawVert* VertexBufferHost; + int IndexBufferSize; + int VertexBufferSize; +}; + +struct Uniforms +{ + float MVP[4][4]; + float Gamma; +}; + +struct ImGui_ImplWGPU_Data +{ + WGPUDevice wgpuDevice = nullptr; + WGPUQueue defaultQueue = nullptr; + WGPUTextureFormat renderTargetFormat = WGPUTextureFormat_Undefined; + WGPUTextureFormat depthStencilFormat = WGPUTextureFormat_Undefined; + WGPURenderPipeline pipelineState = nullptr; + + RenderResources renderResources; + FrameResources* pFrameResources = nullptr; + unsigned int numFramesInFlight = 0; + unsigned int frameIndex = UINT_MAX; +}; + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplWGPU_Data* ImGui_ImplWGPU_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplWGPU_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +//----------------------------------------------------------------------------- +// SHADERS +//----------------------------------------------------------------------------- + +static const char __shader_vert_wgsl[] = R"( +struct VertexInput { + @location(0) position: vec2, + @location(1) uv: vec2, + @location(2) color: vec4, +}; + +struct VertexOutput { + @builtin(position) position: vec4, + @location(0) color: vec4, + @location(1) uv: vec2, +}; + +struct Uniforms { + mvp: mat4x4, + gamma: f32, +}; + +@group(0) @binding(0) var uniforms: Uniforms; + +@vertex +fn main(in: VertexInput) -> VertexOutput { + var out: VertexOutput; + out.position = uniforms.mvp * vec4(in.position, 0.0, 1.0); + out.color = in.color; + out.uv = in.uv; + return out; +} +)"; + +static const char __shader_frag_wgsl[] = R"( +struct VertexOutput { + @builtin(position) position: vec4, + @location(0) color: vec4, + @location(1) uv: vec2, +}; + +struct Uniforms { + mvp: mat4x4, + gamma: f32, +}; + +@group(0) @binding(0) var uniforms: Uniforms; +@group(0) @binding(1) var s: sampler; +@group(1) @binding(0) var t: texture_2d; + +@fragment +fn main(in: VertexOutput) -> @location(0) vec4 { + let color = in.color * textureSample(t, s, in.uv); + let corrected_color = pow(color.rgb, vec3(uniforms.gamma)); + return vec4(corrected_color, color.a); +} +)"; + +static void SafeRelease(ImDrawIdx*& res) +{ + if (res) + delete[] res; + res = nullptr; +} +static void SafeRelease(ImDrawVert*& res) +{ + if (res) + delete[] res; + res = nullptr; +} +static void SafeRelease(WGPUBindGroupLayout& res) +{ + if (res) + wgpuBindGroupLayoutRelease(res); + res = nullptr; +} +static void SafeRelease(WGPUBindGroup& res) +{ + if (res) + wgpuBindGroupRelease(res); + res = nullptr; +} +static void SafeRelease(WGPUBuffer& res) +{ + if (res) + wgpuBufferRelease(res); + res = nullptr; +} +static void SafeRelease(WGPURenderPipeline& res) +{ + if (res) + wgpuRenderPipelineRelease(res); + res = nullptr; +} +static void SafeRelease(WGPUSampler& res) +{ + if (res) + wgpuSamplerRelease(res); + res = nullptr; +} +static void SafeRelease(WGPUShaderModule& res) +{ + if (res) + wgpuShaderModuleRelease(res); + res = nullptr; +} +static void SafeRelease(WGPUTextureView& res) +{ + if (res) + wgpuTextureViewRelease(res); + res = nullptr; +} +static void SafeRelease(WGPUTexture& res) +{ + if (res) + wgpuTextureRelease(res); + res = nullptr; +} + +static void SafeRelease(RenderResources& res) +{ + SafeRelease(res.FontTexture); + SafeRelease(res.FontTextureView); + SafeRelease(res.Sampler); + SafeRelease(res.Uniforms); + SafeRelease(res.CommonBindGroup); + SafeRelease(res.ImageBindGroup); + SafeRelease(res.ImageBindGroupLayout); +}; + +static void SafeRelease(FrameResources& res) +{ + SafeRelease(res.IndexBuffer); + SafeRelease(res.VertexBuffer); + SafeRelease(res.IndexBufferHost); + SafeRelease(res.VertexBufferHost); +} + +static WGPUProgrammableStageDescriptor ImGui_ImplWGPU_CreateShaderModule(const char* wgsl_source) +{ + ImGui_ImplWGPU_Data* bd = ImGui_ImplWGPU_GetBackendData(); + + WGPUShaderModuleWGSLDescriptor wgsl_desc = {}; + wgsl_desc.chain.sType = WGPUSType_ShaderModuleWGSLDescriptor; + wgsl_desc.code = wgsl_source; + + WGPUShaderModuleDescriptor desc = {}; + desc.nextInChain = reinterpret_cast(&wgsl_desc); + + WGPUProgrammableStageDescriptor stage_desc = {}; + stage_desc.module = wgpuDeviceCreateShaderModule(bd->wgpuDevice, &desc); + stage_desc.entryPoint = "main"; + return stage_desc; +} + +static WGPUBindGroup ImGui_ImplWGPU_CreateImageBindGroup(WGPUBindGroupLayout layout, WGPUTextureView texture) +{ + ImGui_ImplWGPU_Data* bd = ImGui_ImplWGPU_GetBackendData(); + WGPUBindGroupEntry image_bg_entries[] = { { nullptr, 0, 0, 0, 0, 0, texture } }; + + WGPUBindGroupDescriptor image_bg_descriptor = {}; + image_bg_descriptor.layout = layout; + image_bg_descriptor.entryCount = sizeof(image_bg_entries) / sizeof(WGPUBindGroupEntry); + image_bg_descriptor.entries = image_bg_entries; + return wgpuDeviceCreateBindGroup(bd->wgpuDevice, &image_bg_descriptor); +} + +static void ImGui_ImplWGPU_SetupRenderState(ImDrawData* draw_data, WGPURenderPassEncoder ctx, FrameResources* fr) +{ + ImGui_ImplWGPU_Data* bd = ImGui_ImplWGPU_GetBackendData(); + + // Setup orthographic projection matrix into our constant buffer + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). + { + float L = draw_data->DisplayPos.x; + float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; + float T = draw_data->DisplayPos.y; + float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; + float mvp[4][4] = + { + { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, + { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, + { 0.0f, 0.0f, 0.5f, 0.0f }, + { (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f }, + }; + wgpuQueueWriteBuffer(bd->defaultQueue, bd->renderResources.Uniforms, offsetof(Uniforms, MVP), mvp, sizeof(Uniforms::MVP)); + float gamma; + switch (bd->renderTargetFormat) + { + case WGPUTextureFormat_ASTC10x10UnormSrgb: + case WGPUTextureFormat_ASTC10x5UnormSrgb: + case WGPUTextureFormat_ASTC10x6UnormSrgb: + case WGPUTextureFormat_ASTC10x8UnormSrgb: + case WGPUTextureFormat_ASTC12x10UnormSrgb: + case WGPUTextureFormat_ASTC12x12UnormSrgb: + case WGPUTextureFormat_ASTC4x4UnormSrgb: + case WGPUTextureFormat_ASTC5x5UnormSrgb: + case WGPUTextureFormat_ASTC6x5UnormSrgb: + case WGPUTextureFormat_ASTC6x6UnormSrgb: + case WGPUTextureFormat_ASTC8x5UnormSrgb: + case WGPUTextureFormat_ASTC8x6UnormSrgb: + case WGPUTextureFormat_ASTC8x8UnormSrgb: + case WGPUTextureFormat_BC1RGBAUnormSrgb: + case WGPUTextureFormat_BC2RGBAUnormSrgb: + case WGPUTextureFormat_BC3RGBAUnormSrgb: + case WGPUTextureFormat_BC7RGBAUnormSrgb: + case WGPUTextureFormat_BGRA8UnormSrgb: + case WGPUTextureFormat_ETC2RGB8A1UnormSrgb: + case WGPUTextureFormat_ETC2RGB8UnormSrgb: + case WGPUTextureFormat_ETC2RGBA8UnormSrgb: + case WGPUTextureFormat_RGBA8UnormSrgb: + gamma = 2.2f; + break; + default: + gamma = 1.0f; + } + wgpuQueueWriteBuffer(bd->defaultQueue, bd->renderResources.Uniforms, offsetof(Uniforms, Gamma), &gamma, sizeof(Uniforms::Gamma)); + } + + // Setup viewport + wgpuRenderPassEncoderSetViewport(ctx, 0, 0, draw_data->FramebufferScale.x * draw_data->DisplaySize.x, draw_data->FramebufferScale.y * draw_data->DisplaySize.y, 0, 1); + + // Bind shader and vertex buffers + wgpuRenderPassEncoderSetVertexBuffer(ctx, 0, fr->VertexBuffer, 0, fr->VertexBufferSize * sizeof(ImDrawVert)); + wgpuRenderPassEncoderSetIndexBuffer(ctx, fr->IndexBuffer, sizeof(ImDrawIdx) == 2 ? WGPUIndexFormat_Uint16 : WGPUIndexFormat_Uint32, 0, fr->IndexBufferSize * sizeof(ImDrawIdx)); + wgpuRenderPassEncoderSetPipeline(ctx, bd->pipelineState); + wgpuRenderPassEncoderSetBindGroup(ctx, 0, bd->renderResources.CommonBindGroup, 0, nullptr); + + // Setup blend factor + WGPUColor blend_color = { 0.f, 0.f, 0.f, 0.f }; + wgpuRenderPassEncoderSetBlendConstant(ctx, &blend_color); +} + +// Render function +// (this used to be set in io.RenderDrawListsFn and called by ImGui::Render(), but you can now call this directly from your main loop) +void ImGui_ImplWGPU_RenderDrawData(ImDrawData* draw_data, WGPURenderPassEncoder pass_encoder) +{ + // Avoid rendering when minimized + if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) + return; + + // FIXME: Assuming that this only gets called once per frame! + // If not, we can't just re-allocate the IB or VB, we'll have to do a proper allocator. + ImGui_ImplWGPU_Data* bd = ImGui_ImplWGPU_GetBackendData(); + bd->frameIndex = bd->frameIndex + 1; + FrameResources* fr = &bd->pFrameResources[bd->frameIndex % bd->numFramesInFlight]; + + // Create and grow vertex/index buffers if needed + if (fr->VertexBuffer == nullptr || fr->VertexBufferSize < draw_data->TotalVtxCount) + { + if (fr->VertexBuffer) + { + wgpuBufferDestroy(fr->VertexBuffer); + wgpuBufferRelease(fr->VertexBuffer); + } + SafeRelease(fr->VertexBufferHost); + fr->VertexBufferSize = draw_data->TotalVtxCount + 5000; + + WGPUBufferDescriptor vb_desc = + { + nullptr, + "Dear ImGui Vertex buffer", + WGPUBufferUsage_CopyDst | WGPUBufferUsage_Vertex, + MEMALIGN(fr->VertexBufferSize * sizeof(ImDrawVert), 4), + false + }; + fr->VertexBuffer = wgpuDeviceCreateBuffer(bd->wgpuDevice, &vb_desc); + if (!fr->VertexBuffer) + return; + + fr->VertexBufferHost = new ImDrawVert[fr->VertexBufferSize]; + } + if (fr->IndexBuffer == nullptr || fr->IndexBufferSize < draw_data->TotalIdxCount) + { + if (fr->IndexBuffer) + { + wgpuBufferDestroy(fr->IndexBuffer); + wgpuBufferRelease(fr->IndexBuffer); + } + SafeRelease(fr->IndexBufferHost); + fr->IndexBufferSize = draw_data->TotalIdxCount + 10000; + + WGPUBufferDescriptor ib_desc = + { + nullptr, + "Dear ImGui Index buffer", + WGPUBufferUsage_CopyDst | WGPUBufferUsage_Index, + MEMALIGN(fr->IndexBufferSize * sizeof(ImDrawIdx), 4), + false + }; + fr->IndexBuffer = wgpuDeviceCreateBuffer(bd->wgpuDevice, &ib_desc); + if (!fr->IndexBuffer) + return; + + fr->IndexBufferHost = new ImDrawIdx[fr->IndexBufferSize]; + } + + // Upload vertex/index data into a single contiguous GPU buffer + ImDrawVert* vtx_dst = (ImDrawVert*)fr->VertexBufferHost; + ImDrawIdx* idx_dst = (ImDrawIdx*)fr->IndexBufferHost; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); + memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); + vtx_dst += cmd_list->VtxBuffer.Size; + idx_dst += cmd_list->IdxBuffer.Size; + } + int64_t vb_write_size = MEMALIGN((char*)vtx_dst - (char*)fr->VertexBufferHost, 4); + int64_t ib_write_size = MEMALIGN((char*)idx_dst - (char*)fr->IndexBufferHost, 4); + wgpuQueueWriteBuffer(bd->defaultQueue, fr->VertexBuffer, 0, fr->VertexBufferHost, vb_write_size); + wgpuQueueWriteBuffer(bd->defaultQueue, fr->IndexBuffer, 0, fr->IndexBufferHost, ib_write_size); + + // Setup desired render state + ImGui_ImplWGPU_SetupRenderState(draw_data, pass_encoder, fr); + + // Render command lists + // (Because we merged all buffers into a single one, we maintain our own offset into them) + int global_vtx_offset = 0; + int global_idx_offset = 0; + ImVec2 clip_scale = draw_data->FramebufferScale; + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback != nullptr) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplWGPU_SetupRenderState(draw_data, pass_encoder, fr); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Bind custom texture + ImTextureID tex_id = pcmd->GetTexID(); + ImGuiID tex_id_hash = ImHashData(&tex_id, sizeof(tex_id)); + auto bind_group = bd->renderResources.ImageBindGroups.GetVoidPtr(tex_id_hash); + if (bind_group) + { + wgpuRenderPassEncoderSetBindGroup(pass_encoder, 1, (WGPUBindGroup)bind_group, 0, nullptr); + } + else + { + WGPUBindGroup image_bind_group = ImGui_ImplWGPU_CreateImageBindGroup(bd->renderResources.ImageBindGroupLayout, (WGPUTextureView)tex_id); + bd->renderResources.ImageBindGroups.SetVoidPtr(tex_id_hash, image_bind_group); + wgpuRenderPassEncoderSetBindGroup(pass_encoder, 1, image_bind_group, 0, nullptr); + } + + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); + ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply scissor/clipping rectangle, Draw + wgpuRenderPassEncoderSetScissorRect(pass_encoder, (uint32_t)clip_min.x, (uint32_t)clip_min.y, (uint32_t)(clip_max.x - clip_min.x), (uint32_t)(clip_max.y - clip_min.y)); + wgpuRenderPassEncoderDrawIndexed(pass_encoder, pcmd->ElemCount, 1, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset, 0); + } + } + global_idx_offset += cmd_list->IdxBuffer.Size; + global_vtx_offset += cmd_list->VtxBuffer.Size; + } +} + +static void ImGui_ImplWGPU_CreateFontsTexture() +{ + // Build texture atlas + ImGui_ImplWGPU_Data* bd = ImGui_ImplWGPU_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + unsigned char* pixels; + int width, height, size_pp; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height, &size_pp); + + // Upload texture to graphics system + { + WGPUTextureDescriptor tex_desc = {}; + tex_desc.label = "Dear ImGui Font Texture"; + tex_desc.dimension = WGPUTextureDimension_2D; + tex_desc.size.width = width; + tex_desc.size.height = height; + tex_desc.size.depthOrArrayLayers = 1; + tex_desc.sampleCount = 1; + tex_desc.format = WGPUTextureFormat_RGBA8Unorm; + tex_desc.mipLevelCount = 1; + tex_desc.usage = WGPUTextureUsage_CopyDst | WGPUTextureUsage_TextureBinding; + bd->renderResources.FontTexture = wgpuDeviceCreateTexture(bd->wgpuDevice, &tex_desc); + + WGPUTextureViewDescriptor tex_view_desc = {}; + tex_view_desc.format = WGPUTextureFormat_RGBA8Unorm; + tex_view_desc.dimension = WGPUTextureViewDimension_2D; + tex_view_desc.baseMipLevel = 0; + tex_view_desc.mipLevelCount = 1; + tex_view_desc.baseArrayLayer = 0; + tex_view_desc.arrayLayerCount = 1; + tex_view_desc.aspect = WGPUTextureAspect_All; + bd->renderResources.FontTextureView = wgpuTextureCreateView(bd->renderResources.FontTexture, &tex_view_desc); + } + + // Upload texture data + { + WGPUImageCopyTexture dst_view = {}; + dst_view.texture = bd->renderResources.FontTexture; + dst_view.mipLevel = 0; + dst_view.origin = { 0, 0, 0 }; + dst_view.aspect = WGPUTextureAspect_All; + WGPUTextureDataLayout layout = {}; + layout.offset = 0; + layout.bytesPerRow = width * size_pp; + layout.rowsPerImage = height; + WGPUExtent3D size = { (uint32_t)width, (uint32_t)height, 1 }; + wgpuQueueWriteTexture(bd->defaultQueue, &dst_view, pixels, (uint32_t)(width * size_pp * height), &layout, &size); + } + + // Create the associated sampler + // (Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling) + { + WGPUSamplerDescriptor sampler_desc = {}; + sampler_desc.minFilter = WGPUFilterMode_Linear; + sampler_desc.magFilter = WGPUFilterMode_Linear; + sampler_desc.mipmapFilter = WGPUMipmapFilterMode_Linear; + sampler_desc.addressModeU = WGPUAddressMode_Repeat; + sampler_desc.addressModeV = WGPUAddressMode_Repeat; + sampler_desc.addressModeW = WGPUAddressMode_Repeat; + sampler_desc.maxAnisotropy = 1; + bd->renderResources.Sampler = wgpuDeviceCreateSampler(bd->wgpuDevice, &sampler_desc); + } + + // Store our identifier + static_assert(sizeof(ImTextureID) >= sizeof(bd->renderResources.FontTexture), "Can't pack descriptor handle into TexID, 32-bit not supported yet."); + io.Fonts->SetTexID((ImTextureID)bd->renderResources.FontTextureView); +} + +static void ImGui_ImplWGPU_CreateUniformBuffer() +{ + ImGui_ImplWGPU_Data* bd = ImGui_ImplWGPU_GetBackendData(); + WGPUBufferDescriptor ub_desc = + { + nullptr, + "Dear ImGui Uniform buffer", + WGPUBufferUsage_CopyDst | WGPUBufferUsage_Uniform, + MEMALIGN(sizeof(Uniforms), 16), + false + }; + bd->renderResources.Uniforms = wgpuDeviceCreateBuffer(bd->wgpuDevice, &ub_desc); +} + +bool ImGui_ImplWGPU_CreateDeviceObjects() +{ + ImGui_ImplWGPU_Data* bd = ImGui_ImplWGPU_GetBackendData(); + if (!bd->wgpuDevice) + return false; + if (bd->pipelineState) + ImGui_ImplWGPU_InvalidateDeviceObjects(); + + // Create render pipeline + WGPURenderPipelineDescriptor graphics_pipeline_desc = {}; + graphics_pipeline_desc.primitive.topology = WGPUPrimitiveTopology_TriangleList; + graphics_pipeline_desc.primitive.stripIndexFormat = WGPUIndexFormat_Undefined; + graphics_pipeline_desc.primitive.frontFace = WGPUFrontFace_CW; + graphics_pipeline_desc.primitive.cullMode = WGPUCullMode_None; + graphics_pipeline_desc.multisample.count = 1; + graphics_pipeline_desc.multisample.mask = UINT_MAX; + graphics_pipeline_desc.multisample.alphaToCoverageEnabled = false; + + // Bind group layouts + WGPUBindGroupLayoutEntry common_bg_layout_entries[2] = {}; + common_bg_layout_entries[0].binding = 0; + common_bg_layout_entries[0].visibility = WGPUShaderStage_Vertex | WGPUShaderStage_Fragment; + common_bg_layout_entries[0].buffer.type = WGPUBufferBindingType_Uniform; + common_bg_layout_entries[1].binding = 1; + common_bg_layout_entries[1].visibility = WGPUShaderStage_Fragment; + common_bg_layout_entries[1].sampler.type = WGPUSamplerBindingType_Filtering; + + WGPUBindGroupLayoutEntry image_bg_layout_entries[1] = {}; + image_bg_layout_entries[0].binding = 0; + image_bg_layout_entries[0].visibility = WGPUShaderStage_Fragment; + image_bg_layout_entries[0].texture.sampleType = WGPUTextureSampleType_Float; + image_bg_layout_entries[0].texture.viewDimension = WGPUTextureViewDimension_2D; + + WGPUBindGroupLayoutDescriptor common_bg_layout_desc = {}; + common_bg_layout_desc.entryCount = 2; + common_bg_layout_desc.entries = common_bg_layout_entries; + + WGPUBindGroupLayoutDescriptor image_bg_layout_desc = {}; + image_bg_layout_desc.entryCount = 1; + image_bg_layout_desc.entries = image_bg_layout_entries; + + WGPUBindGroupLayout bg_layouts[2]; + bg_layouts[0] = wgpuDeviceCreateBindGroupLayout(bd->wgpuDevice, &common_bg_layout_desc); + bg_layouts[1] = wgpuDeviceCreateBindGroupLayout(bd->wgpuDevice, &image_bg_layout_desc); + + WGPUPipelineLayoutDescriptor layout_desc = {}; + layout_desc.bindGroupLayoutCount = 2; + layout_desc.bindGroupLayouts = bg_layouts; + graphics_pipeline_desc.layout = wgpuDeviceCreatePipelineLayout(bd->wgpuDevice, &layout_desc); + + // Create the vertex shader + WGPUProgrammableStageDescriptor vertex_shader_desc = ImGui_ImplWGPU_CreateShaderModule(__shader_vert_wgsl); + graphics_pipeline_desc.vertex.module = vertex_shader_desc.module; + graphics_pipeline_desc.vertex.entryPoint = vertex_shader_desc.entryPoint; + + // Vertex input configuration + WGPUVertexAttribute attribute_desc[] = + { + { WGPUVertexFormat_Float32x2, (uint64_t)IM_OFFSETOF(ImDrawVert, pos), 0 }, + { WGPUVertexFormat_Float32x2, (uint64_t)IM_OFFSETOF(ImDrawVert, uv), 1 }, + { WGPUVertexFormat_Unorm8x4, (uint64_t)IM_OFFSETOF(ImDrawVert, col), 2 }, + }; + + WGPUVertexBufferLayout buffer_layouts[1]; + buffer_layouts[0].arrayStride = sizeof(ImDrawVert); + buffer_layouts[0].stepMode = WGPUVertexStepMode_Vertex; + buffer_layouts[0].attributeCount = 3; + buffer_layouts[0].attributes = attribute_desc; + + graphics_pipeline_desc.vertex.bufferCount = 1; + graphics_pipeline_desc.vertex.buffers = buffer_layouts; + + // Create the pixel shader + WGPUProgrammableStageDescriptor pixel_shader_desc = ImGui_ImplWGPU_CreateShaderModule(__shader_frag_wgsl); + + // Create the blending setup + WGPUBlendState blend_state = {}; + blend_state.alpha.operation = WGPUBlendOperation_Add; + blend_state.alpha.srcFactor = WGPUBlendFactor_One; + blend_state.alpha.dstFactor = WGPUBlendFactor_OneMinusSrcAlpha; + blend_state.color.operation = WGPUBlendOperation_Add; + blend_state.color.srcFactor = WGPUBlendFactor_SrcAlpha; + blend_state.color.dstFactor = WGPUBlendFactor_OneMinusSrcAlpha; + + WGPUColorTargetState color_state = {}; + color_state.format = bd->renderTargetFormat; + color_state.blend = &blend_state; + color_state.writeMask = WGPUColorWriteMask_All; + + WGPUFragmentState fragment_state = {}; + fragment_state.module = pixel_shader_desc.module; + fragment_state.entryPoint = pixel_shader_desc.entryPoint; + fragment_state.targetCount = 1; + fragment_state.targets = &color_state; + + graphics_pipeline_desc.fragment = &fragment_state; + + // Create depth-stencil State + WGPUDepthStencilState depth_stencil_state = {}; + depth_stencil_state.format = bd->depthStencilFormat; + depth_stencil_state.depthWriteEnabled = false; + depth_stencil_state.depthCompare = WGPUCompareFunction_Always; + depth_stencil_state.stencilFront.compare = WGPUCompareFunction_Always; + depth_stencil_state.stencilBack.compare = WGPUCompareFunction_Always; + + // Configure disabled depth-stencil state + graphics_pipeline_desc.depthStencil = (bd->depthStencilFormat == WGPUTextureFormat_Undefined) ? nullptr : &depth_stencil_state; + + bd->pipelineState = wgpuDeviceCreateRenderPipeline(bd->wgpuDevice, &graphics_pipeline_desc); + + ImGui_ImplWGPU_CreateFontsTexture(); + ImGui_ImplWGPU_CreateUniformBuffer(); + + // Create resource bind group + WGPUBindGroupEntry common_bg_entries[] = + { + { nullptr, 0, bd->renderResources.Uniforms, 0, MEMALIGN(sizeof(Uniforms), 16), 0, 0 }, + { nullptr, 1, 0, 0, 0, bd->renderResources.Sampler, 0 }, + }; + + WGPUBindGroupDescriptor common_bg_descriptor = {}; + common_bg_descriptor.layout = bg_layouts[0]; + common_bg_descriptor.entryCount = sizeof(common_bg_entries) / sizeof(WGPUBindGroupEntry); + common_bg_descriptor.entries = common_bg_entries; + bd->renderResources.CommonBindGroup = wgpuDeviceCreateBindGroup(bd->wgpuDevice, &common_bg_descriptor); + + WGPUBindGroup image_bind_group = ImGui_ImplWGPU_CreateImageBindGroup(bg_layouts[1], bd->renderResources.FontTextureView); + bd->renderResources.ImageBindGroup = image_bind_group; + bd->renderResources.ImageBindGroupLayout = bg_layouts[1]; + bd->renderResources.ImageBindGroups.SetVoidPtr(ImHashData(&bd->renderResources.FontTextureView, sizeof(ImTextureID)), image_bind_group); + + SafeRelease(vertex_shader_desc.module); + SafeRelease(pixel_shader_desc.module); + SafeRelease(bg_layouts[0]); + + return true; +} + +void ImGui_ImplWGPU_InvalidateDeviceObjects() +{ + ImGui_ImplWGPU_Data* bd = ImGui_ImplWGPU_GetBackendData(); + if (!bd->wgpuDevice) + return; + + SafeRelease(bd->pipelineState); + SafeRelease(bd->renderResources); + + ImGuiIO& io = ImGui::GetIO(); + io.Fonts->SetTexID(0); // We copied g_pFontTextureView to io.Fonts->TexID so let's clear that as well. + + for (unsigned int i = 0; i < bd->numFramesInFlight; i++) + SafeRelease(bd->pFrameResources[i]); +} + +bool ImGui_ImplWGPU_Init(WGPUDevice device, int num_frames_in_flight, WGPUTextureFormat rt_format, WGPUTextureFormat depth_format) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + + // Setup backend capabilities flags + ImGui_ImplWGPU_Data* bd = IM_NEW(ImGui_ImplWGPU_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_webgpu"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + + bd->wgpuDevice = device; + bd->defaultQueue = wgpuDeviceGetQueue(bd->wgpuDevice); + bd->renderTargetFormat = rt_format; + bd->depthStencilFormat = depth_format; + bd->numFramesInFlight = num_frames_in_flight; + bd->frameIndex = UINT_MAX; + + bd->renderResources.FontTexture = nullptr; + bd->renderResources.FontTextureView = nullptr; + bd->renderResources.Sampler = nullptr; + bd->renderResources.Uniforms = nullptr; + bd->renderResources.CommonBindGroup = nullptr; + bd->renderResources.ImageBindGroups.Data.reserve(100); + bd->renderResources.ImageBindGroup = nullptr; + bd->renderResources.ImageBindGroupLayout = nullptr; + + // Create buffers with a default size (they will later be grown as needed) + bd->pFrameResources = new FrameResources[num_frames_in_flight]; + for (int i = 0; i < num_frames_in_flight; i++) + { + FrameResources* fr = &bd->pFrameResources[i]; + fr->IndexBuffer = nullptr; + fr->VertexBuffer = nullptr; + fr->IndexBufferHost = nullptr; + fr->VertexBufferHost = nullptr; + fr->IndexBufferSize = 10000; + fr->VertexBufferSize = 5000; + } + + return true; +} + +void ImGui_ImplWGPU_Shutdown() +{ + ImGui_ImplWGPU_Data* bd = ImGui_ImplWGPU_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplWGPU_InvalidateDeviceObjects(); + delete[] bd->pFrameResources; + bd->pFrameResources = nullptr; + wgpuQueueRelease(bd->defaultQueue); + bd->wgpuDevice = nullptr; + bd->numFramesInFlight = 0; + bd->frameIndex = UINT_MAX; + + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~ImGuiBackendFlags_RendererHasVtxOffset; + IM_DELETE(bd); +} + +void ImGui_ImplWGPU_NewFrame() +{ + ImGui_ImplWGPU_Data* bd = ImGui_ImplWGPU_GetBackendData(); + if (!bd->pipelineState) + ImGui_ImplWGPU_CreateDeviceObjects(); +} + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_wgpu.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_wgpu.h new file mode 100644 index 0000000..b83ef0e --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_wgpu.h @@ -0,0 +1,34 @@ +// dear imgui: Renderer for WebGPU +// This needs to be used along with a Platform Binding (e.g. GLFW) +// (Please note that WebGPU is currently experimental, will not run on non-beta browsers, and may break.) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'WGPUTextureView' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// Missing features: +// [ ] Renderer: Multi-viewport support (multiple windows). Not meaningful on the web. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +#include + +IMGUI_IMPL_API bool ImGui_ImplWGPU_Init(WGPUDevice device, int num_frames_in_flight, WGPUTextureFormat rt_format, WGPUTextureFormat depth_format = WGPUTextureFormat_Undefined); +IMGUI_IMPL_API void ImGui_ImplWGPU_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplWGPU_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplWGPU_RenderDrawData(ImDrawData* draw_data, WGPURenderPassEncoder pass_encoder); + +// Use if you want to reset your rendering device without losing Dear ImGui state. +IMGUI_IMPL_API void ImGui_ImplWGPU_InvalidateDeviceObjects(); +IMGUI_IMPL_API bool ImGui_ImplWGPU_CreateDeviceObjects(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_win32.cpp b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_win32.cpp new file mode 100644 index 0000000..924f2f1 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_win32.cpp @@ -0,0 +1,1327 @@ +// dear imgui: Platform Backend for Windows (standard windows API for 32-bits AND 64-bits applications) +// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) + +// Implemented features: +// [X] Platform: Clipboard support (for Win32 this is actually part of core dear imgui) +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen. +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy VK_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// [X] Platform: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_win32.h" +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#include +#include // GET_X_LPARAM(), GET_Y_LPARAM() +#include +#include + +// Configuration flags to add in your imconfig.h file: +//#define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD // Disable gamepad support. This was meaningful before <1.81 but we now load XInput dynamically so the option is now less relevant. + +// Using XInput for gamepad (will load DLL dynamically) +#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD +#include +typedef DWORD (WINAPI *PFN_XInputGetCapabilities)(DWORD, DWORD, XINPUT_CAPABILITIES*); +typedef DWORD (WINAPI *PFN_XInputGetState)(DWORD, XINPUT_STATE*); +#endif + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2023-10-05: Inputs: Added support for extra ImGuiKey values: F13 to F24 function keys, app back/forward keys. +// 2023-09-25: Inputs: Synthesize key-down event on key-up for VK_SNAPSHOT / ImGuiKey_PrintScreen as Windows doesn't emit it (same behavior as GLFW/SDL). +// 2023-09-07: Inputs: Added support for keyboard codepage conversion for when application is compiled in MBCS mode and using a non-Unicode window. +// 2023-04-19: Added ImGui_ImplWin32_InitForOpenGL() to facilitate combining raw Win32/Winapi with OpenGL. (#3218) +// 2023-04-04: Inputs: Added support for io.AddMouseSourceEvent() to discriminate ImGuiMouseSource_Mouse/ImGuiMouseSource_TouchScreen/ImGuiMouseSource_Pen. (#2702) +// 2023-02-15: Inputs: Use WM_NCMOUSEMOVE / WM_NCMOUSELEAVE to track mouse position over non-client area (e.g. OS decorations) when app is not focused. (#6045, #6162) +// 2023-02-02: Inputs: Flipping WM_MOUSEHWHEEL (horizontal mouse-wheel) value to match other backends and offer consistent horizontal scrolling direction. (#4019, #6096, #1463) +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2022-09-28: Inputs: Convert WM_CHAR values with MultiByteToWideChar() when window class was registered as MBCS (not Unicode). +// 2022-09-26: Inputs: Renamed ImGuiKey_ModXXX introduced in 1.87 to ImGuiMod_XXX (old names still supported). +// 2022-01-26: Inputs: replaced short-lived io.AddKeyModsEvent() (added two weeks ago) with io.AddKeyEvent() using ImGuiKey_ModXXX flags. Sorry for the confusion. +// 2021-01-20: Inputs: calling new io.AddKeyAnalogEvent() for gamepad support, instead of writing directly to io.NavInputs[]. +// 2022-01-17: Inputs: calling new io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() API (1.87+). +// 2022-01-17: Inputs: always update key mods next and before a key event (not in NewFrame) to fix input queue with very low framerates. +// 2022-01-12: Inputs: Update mouse inputs using WM_MOUSEMOVE/WM_MOUSELEAVE + fallback to provide it when focused but not hovered/captured. More standard and will allow us to pass it to future input queue API. +// 2022-01-12: Inputs: Maintain our own copy of MouseButtonsDown mask instead of using ImGui::IsAnyMouseDown() which will be obsoleted. +// 2022-01-10: Inputs: calling new io.AddKeyEvent(), io.AddKeyModsEvent() + io.SetKeyEventNativeData() API (1.87+). Support for full ImGuiKey range. +// 2021-12-16: Inputs: Fill VK_LCONTROL/VK_RCONTROL/VK_LSHIFT/VK_RSHIFT/VK_LMENU/VK_RMENU for completeness. +// 2021-08-17: Calling io.AddFocusEvent() on WM_SETFOCUS/WM_KILLFOCUS messages. +// 2021-08-02: Inputs: Fixed keyboard modifiers being reported when host window doesn't have focus. +// 2021-07-29: Inputs: MousePos is correctly reported when the host platform window is hovered but not focused (using TrackMouseEvent() to receive WM_MOUSELEAVE events). +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-06-08: Fixed ImGui_ImplWin32_EnableDpiAwareness() and ImGui_ImplWin32_GetDpiScaleForMonitor() to handle Windows 8.1/10 features without a manifest (per-monitor DPI, and properly calls SetProcessDpiAwareness() on 8.1). +// 2021-03-23: Inputs: Clearing keyboard down array when losing focus (WM_KILLFOCUS). +// 2021-02-18: Added ImGui_ImplWin32_EnableAlphaCompositing(). Non Visual Studio users will need to link with dwmapi.lib (MinGW/gcc: use -ldwmapi). +// 2021-02-17: Fixed ImGui_ImplWin32_EnableDpiAwareness() attempting to get SetProcessDpiAwareness from shcore.dll on Windows 8 whereas it is only supported on Windows 8.1. +// 2021-01-25: Inputs: Dynamically loading XInput DLL. +// 2020-12-04: Misc: Fixed setting of io.DisplaySize to invalid/uninitialized data when after hwnd has been closed. +// 2020-03-03: Inputs: Calling AddInputCharacterUTF16() to support surrogate pairs leading to codepoint >= 0x10000 (for more complete CJK inputs) +// 2020-02-17: Added ImGui_ImplWin32_EnableDpiAwareness(), ImGui_ImplWin32_GetDpiScaleForHwnd(), ImGui_ImplWin32_GetDpiScaleForMonitor() helper functions. +// 2020-01-14: Inputs: Added support for #define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD/IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT. +// 2019-12-05: Inputs: Added support for ImGuiMouseCursor_NotAllowed mouse cursor. +// 2019-05-11: Inputs: Don't filter value from WM_CHAR before calling AddInputCharacter(). +// 2019-01-17: Misc: Using GetForegroundWindow()+IsChild() instead of GetActiveWindow() to be compatible with windows created in a different thread or parent. +// 2019-01-17: Inputs: Added support for mouse buttons 4 and 5 via WM_XBUTTON* messages. +// 2019-01-15: Inputs: Added support for XInput gamepads (if ImGuiConfigFlags_NavEnableGamepad is set by user application). +// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. +// 2018-06-29: Inputs: Added support for the ImGuiMouseCursor_Hand cursor. +// 2018-06-10: Inputs: Fixed handling of mouse wheel messages to support fine position messages (typically sent by track-pads). +// 2018-06-08: Misc: Extracted imgui_impl_win32.cpp/.h away from the old combined DX9/DX10/DX11/DX12 examples. +// 2018-03-20: Misc: Setup io.BackendFlags ImGuiBackendFlags_HasMouseCursors and ImGuiBackendFlags_HasSetMousePos flags + honor ImGuiConfigFlags_NoMouseCursorChange flag. +// 2018-02-20: Inputs: Added support for mouse cursors (ImGui::GetMouseCursor() value and WM_SETCURSOR message handling). +// 2018-02-06: Inputs: Added mapping for ImGuiKey_Space. +// 2018-02-06: Inputs: Honoring the io.WantSetMousePos by repositioning the mouse (when using navigation and ImGuiConfigFlags_NavMoveMouse is set). +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. +// 2018-01-20: Inputs: Added Horizontal Mouse Wheel support. +// 2018-01-08: Inputs: Added mapping for ImGuiKey_Insert. +// 2018-01-05: Inputs: Added WM_LBUTTONDBLCLK double-click handlers for window classes with the CS_DBLCLKS flag. +// 2017-10-23: Inputs: Added WM_SYSKEYDOWN / WM_SYSKEYUP handlers so e.g. the VK_MENU key can be read. +// 2017-10-23: Inputs: Using Win32 ::SetCapture/::GetCapture() to retrieve mouse positions outside the client area when dragging. +// 2016-11-12: Inputs: Only call Win32 ::SetCursor(nullptr) when io.MouseDrawCursor is set. + +// Forward Declarations +static void ImGui_ImplWin32_InitPlatformInterface(bool platformHasOwnDC); +static void ImGui_ImplWin32_ShutdownPlatformInterface(); +static void ImGui_ImplWin32_UpdateMonitors(); + +struct ImGui_ImplWin32_Data +{ + HWND hWnd; + HWND MouseHwnd; + int MouseTrackedArea; // 0: not tracked, 1: client are, 2: non-client area + int MouseButtonsDown; + INT64 Time; + INT64 TicksPerSecond; + ImGuiMouseCursor LastMouseCursor; + UINT32 KeyboardCodePage; + bool WantUpdateMonitors; + +#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD + bool HasGamepad; + bool WantUpdateHasGamepad; + HMODULE XInputDLL; + PFN_XInputGetCapabilities XInputGetCapabilities; + PFN_XInputGetState XInputGetState; +#endif + + ImGui_ImplWin32_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendPlatformUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +// FIXME: multi-context support is not well tested and probably dysfunctional in this backend. +// FIXME: some shared resources (mouse cursor shape, gamepad) are mishandled when using multi-context. +static ImGui_ImplWin32_Data* ImGui_ImplWin32_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplWin32_Data*)ImGui::GetIO().BackendPlatformUserData : nullptr; +} + +// Functions +static void ImGui_ImplWin32_UpdateKeyboardCodePage() +{ + // Retrieve keyboard code page, required for handling of non-Unicode Windows. + ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); + HKL keyboard_layout = ::GetKeyboardLayout(0); + LCID keyboard_lcid = MAKELCID(HIWORD(keyboard_layout), SORT_DEFAULT); + if (::GetLocaleInfoA(keyboard_lcid, (LOCALE_RETURN_NUMBER | LOCALE_IDEFAULTANSICODEPAGE), (LPSTR)&bd->KeyboardCodePage, sizeof(bd->KeyboardCodePage)) == 0) + bd->KeyboardCodePage = CP_ACP; // Fallback to default ANSI code page when fails. +} + +static bool ImGui_ImplWin32_InitEx(void* hwnd, bool platform_has_own_dc) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendPlatformUserData == nullptr && "Already initialized a platform backend!"); + + INT64 perf_frequency, perf_counter; + if (!::QueryPerformanceFrequency((LARGE_INTEGER*)&perf_frequency)) + return false; + if (!::QueryPerformanceCounter((LARGE_INTEGER*)&perf_counter)) + return false; + + // Setup backend capabilities flags + ImGui_ImplWin32_Data* bd = IM_NEW(ImGui_ImplWin32_Data)(); + io.BackendPlatformUserData = (void*)bd; + io.BackendPlatformName = "imgui_impl_win32"; + io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) + io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used) + io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports; // We can create multi-viewports on the Platform side (optional) + io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport; // We can call io.AddMouseViewportEvent() with correct data (optional) + + bd->hWnd = (HWND)hwnd; + bd->WantUpdateMonitors = true; + bd->TicksPerSecond = perf_frequency; + bd->Time = perf_counter; + bd->LastMouseCursor = ImGuiMouseCursor_COUNT; + ImGui_ImplWin32_UpdateKeyboardCodePage(); + + // Our mouse update function expect PlatformHandle to be filled for the main viewport + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + main_viewport->PlatformHandle = main_viewport->PlatformHandleRaw = (void*)bd->hWnd; + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplWin32_InitPlatformInterface(platform_has_own_dc); + + // Dynamically load XInput library +#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD + bd->WantUpdateHasGamepad = true; + const char* xinput_dll_names[] = + { + "xinput1_4.dll", // Windows 8+ + "xinput1_3.dll", // DirectX SDK + "xinput9_1_0.dll", // Windows Vista, Windows 7 + "xinput1_2.dll", // DirectX SDK + "xinput1_1.dll" // DirectX SDK + }; + for (int n = 0; n < IM_ARRAYSIZE(xinput_dll_names); n++) + if (HMODULE dll = ::LoadLibraryA(xinput_dll_names[n])) + { + bd->XInputDLL = dll; + bd->XInputGetCapabilities = (PFN_XInputGetCapabilities)::GetProcAddress(dll, "XInputGetCapabilities"); + bd->XInputGetState = (PFN_XInputGetState)::GetProcAddress(dll, "XInputGetState"); + break; + } +#endif // IMGUI_IMPL_WIN32_DISABLE_GAMEPAD + + return true; +} + +IMGUI_IMPL_API bool ImGui_ImplWin32_Init(void* hwnd) +{ + return ImGui_ImplWin32_InitEx(hwnd, false); +} + +IMGUI_IMPL_API bool ImGui_ImplWin32_InitForOpenGL(void* hwnd) +{ + // OpenGL needs CS_OWNDC + return ImGui_ImplWin32_InitEx(hwnd, true); +} + +void ImGui_ImplWin32_Shutdown() +{ + ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); + IM_ASSERT(bd != nullptr && "No platform backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplWin32_ShutdownPlatformInterface(); + + // Unload XInput library +#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD + if (bd->XInputDLL) + ::FreeLibrary(bd->XInputDLL); +#endif // IMGUI_IMPL_WIN32_DISABLE_GAMEPAD + + io.BackendPlatformName = nullptr; + io.BackendPlatformUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_HasMouseCursors | ImGuiBackendFlags_HasSetMousePos | ImGuiBackendFlags_HasGamepad | ImGuiBackendFlags_PlatformHasViewports | ImGuiBackendFlags_HasMouseHoveredViewport); + IM_DELETE(bd); +} + +static bool ImGui_ImplWin32_UpdateMouseCursor() +{ + ImGuiIO& io = ImGui::GetIO(); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) + return false; + + ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); + if (imgui_cursor == ImGuiMouseCursor_None || io.MouseDrawCursor) + { + // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor + ::SetCursor(nullptr); + } + else + { + // Show OS mouse cursor + LPTSTR win32_cursor = IDC_ARROW; + switch (imgui_cursor) + { + case ImGuiMouseCursor_Arrow: win32_cursor = IDC_ARROW; break; + case ImGuiMouseCursor_TextInput: win32_cursor = IDC_IBEAM; break; + case ImGuiMouseCursor_ResizeAll: win32_cursor = IDC_SIZEALL; break; + case ImGuiMouseCursor_ResizeEW: win32_cursor = IDC_SIZEWE; break; + case ImGuiMouseCursor_ResizeNS: win32_cursor = IDC_SIZENS; break; + case ImGuiMouseCursor_ResizeNESW: win32_cursor = IDC_SIZENESW; break; + case ImGuiMouseCursor_ResizeNWSE: win32_cursor = IDC_SIZENWSE; break; + case ImGuiMouseCursor_Hand: win32_cursor = IDC_HAND; break; + case ImGuiMouseCursor_NotAllowed: win32_cursor = IDC_NO; break; + } + ::SetCursor(::LoadCursor(nullptr, win32_cursor)); + } + return true; +} + +static bool IsVkDown(int vk) +{ + return (::GetKeyState(vk) & 0x8000) != 0; +} + +static void ImGui_ImplWin32_AddKeyEvent(ImGuiKey key, bool down, int native_keycode, int native_scancode = -1) +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddKeyEvent(key, down); + io.SetKeyEventNativeData(key, native_keycode, native_scancode); // To support legacy indexing (<1.87 user code) + IM_UNUSED(native_scancode); +} + +static void ImGui_ImplWin32_ProcessKeyEventsWorkarounds() +{ + // Left & right Shift keys: when both are pressed together, Windows tend to not generate the WM_KEYUP event for the first released one. + if (ImGui::IsKeyDown(ImGuiKey_LeftShift) && !IsVkDown(VK_LSHIFT)) + ImGui_ImplWin32_AddKeyEvent(ImGuiKey_LeftShift, false, VK_LSHIFT); + if (ImGui::IsKeyDown(ImGuiKey_RightShift) && !IsVkDown(VK_RSHIFT)) + ImGui_ImplWin32_AddKeyEvent(ImGuiKey_RightShift, false, VK_RSHIFT); + + // Sometimes WM_KEYUP for Win key is not passed down to the app (e.g. for Win+V on some setups, according to GLFW). + if (ImGui::IsKeyDown(ImGuiKey_LeftSuper) && !IsVkDown(VK_LWIN)) + ImGui_ImplWin32_AddKeyEvent(ImGuiKey_LeftSuper, false, VK_LWIN); + if (ImGui::IsKeyDown(ImGuiKey_RightSuper) && !IsVkDown(VK_RWIN)) + ImGui_ImplWin32_AddKeyEvent(ImGuiKey_RightSuper, false, VK_RWIN); +} + +static void ImGui_ImplWin32_UpdateKeyModifiers() +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddKeyEvent(ImGuiMod_Ctrl, IsVkDown(VK_CONTROL)); + io.AddKeyEvent(ImGuiMod_Shift, IsVkDown(VK_SHIFT)); + io.AddKeyEvent(ImGuiMod_Alt, IsVkDown(VK_MENU)); + io.AddKeyEvent(ImGuiMod_Super, IsVkDown(VK_APPS)); +} + +// This code supports multi-viewports (multiple OS Windows mapped into different Dear ImGui viewports) +// Because of that, it is a little more complicated than your typical single-viewport binding code! +static void ImGui_ImplWin32_UpdateMouseData() +{ + ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(bd->hWnd != 0); + + POINT mouse_screen_pos; + bool has_mouse_screen_pos = ::GetCursorPos(&mouse_screen_pos) != 0; + + HWND focused_window = ::GetForegroundWindow(); + const bool is_app_focused = (focused_window && (focused_window == bd->hWnd || ::IsChild(focused_window, bd->hWnd) || ImGui::FindViewportByPlatformHandle((void*)focused_window))); + if (is_app_focused) + { + // (Optional) Set OS mouse position from Dear ImGui if requested (rarely used, only when ImGuiConfigFlags_NavEnableSetMousePos is enabled by user) + // When multi-viewports are enabled, all Dear ImGui positions are same as OS positions. + if (io.WantSetMousePos) + { + POINT pos = { (int)io.MousePos.x, (int)io.MousePos.y }; + if ((io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) == 0) + ::ClientToScreen(focused_window, &pos); + ::SetCursorPos(pos.x, pos.y); + } + + // (Optional) Fallback to provide mouse position when focused (WM_MOUSEMOVE already provides this when hovered or captured) + // This also fills a short gap when clicking non-client area: WM_NCMOUSELEAVE -> modal OS move -> gap -> WM_NCMOUSEMOVE + if (!io.WantSetMousePos && bd->MouseTrackedArea == 0 && has_mouse_screen_pos) + { + // Single viewport mode: mouse position in client window coordinates (io.MousePos is (0,0) when the mouse is on the upper-left corner of the app window) + // (This is the position you can get with ::GetCursorPos() + ::ScreenToClient() or WM_MOUSEMOVE.) + // Multi-viewport mode: mouse position in OS absolute coordinates (io.MousePos is (0,0) when the mouse is on the upper-left of the primary monitor) + // (This is the position you can get with ::GetCursorPos() or WM_MOUSEMOVE + ::ClientToScreen(). In theory adding viewport->Pos to a client position would also be the same.) + POINT mouse_pos = mouse_screen_pos; + if (!(io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)) + ::ScreenToClient(bd->hWnd, &mouse_pos); + io.AddMousePosEvent((float)mouse_pos.x, (float)mouse_pos.y); + } + } + + // (Optional) When using multiple viewports: call io.AddMouseViewportEvent() with the viewport the OS mouse cursor is hovering. + // If ImGuiBackendFlags_HasMouseHoveredViewport is not set by the backend, Dear imGui will ignore this field and infer the information using its flawed heuristic. + // - [X] Win32 backend correctly ignore viewports with the _NoInputs flag (here using ::WindowFromPoint with WM_NCHITTEST + HTTRANSPARENT in WndProc does that) + // Some backend are not able to handle that correctly. If a backend report an hovered viewport that has the _NoInputs flag (e.g. when dragging a window + // for docking, the viewport has the _NoInputs flag in order to allow us to find the viewport under), then Dear ImGui is forced to ignore the value reported + // by the backend, and use its flawed heuristic to guess the viewport behind. + // - [X] Win32 backend correctly reports this regardless of another viewport behind focused and dragged from (we need this to find a useful drag and drop target). + ImGuiID mouse_viewport_id = 0; + if (has_mouse_screen_pos) + if (HWND hovered_hwnd = ::WindowFromPoint(mouse_screen_pos)) + if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle((void*)hovered_hwnd)) + mouse_viewport_id = viewport->ID; + io.AddMouseViewportEvent(mouse_viewport_id); +} + +// Gamepad navigation mapping +static void ImGui_ImplWin32_UpdateGamepads() +{ +#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); + //if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) // FIXME: Technically feeding gamepad shouldn't depend on this now that they are regular inputs. + // return; + + // Calling XInputGetState() every frame on disconnected gamepads is unfortunately too slow. + // Instead we refresh gamepad availability by calling XInputGetCapabilities() _only_ after receiving WM_DEVICECHANGE. + if (bd->WantUpdateHasGamepad) + { + XINPUT_CAPABILITIES caps = {}; + bd->HasGamepad = bd->XInputGetCapabilities ? (bd->XInputGetCapabilities(0, XINPUT_FLAG_GAMEPAD, &caps) == ERROR_SUCCESS) : false; + bd->WantUpdateHasGamepad = false; + } + + io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; + XINPUT_STATE xinput_state; + XINPUT_GAMEPAD& gamepad = xinput_state.Gamepad; + if (!bd->HasGamepad || bd->XInputGetState == nullptr || bd->XInputGetState(0, &xinput_state) != ERROR_SUCCESS) + return; + io.BackendFlags |= ImGuiBackendFlags_HasGamepad; + + #define IM_SATURATE(V) (V < 0.0f ? 0.0f : V > 1.0f ? 1.0f : V) + #define MAP_BUTTON(KEY_NO, BUTTON_ENUM) { io.AddKeyEvent(KEY_NO, (gamepad.wButtons & BUTTON_ENUM) != 0); } + #define MAP_ANALOG(KEY_NO, VALUE, V0, V1) { float vn = (float)(VALUE - V0) / (float)(V1 - V0); io.AddKeyAnalogEvent(KEY_NO, vn > 0.10f, IM_SATURATE(vn)); } + MAP_BUTTON(ImGuiKey_GamepadStart, XINPUT_GAMEPAD_START); + MAP_BUTTON(ImGuiKey_GamepadBack, XINPUT_GAMEPAD_BACK); + MAP_BUTTON(ImGuiKey_GamepadFaceLeft, XINPUT_GAMEPAD_X); + MAP_BUTTON(ImGuiKey_GamepadFaceRight, XINPUT_GAMEPAD_B); + MAP_BUTTON(ImGuiKey_GamepadFaceUp, XINPUT_GAMEPAD_Y); + MAP_BUTTON(ImGuiKey_GamepadFaceDown, XINPUT_GAMEPAD_A); + MAP_BUTTON(ImGuiKey_GamepadDpadLeft, XINPUT_GAMEPAD_DPAD_LEFT); + MAP_BUTTON(ImGuiKey_GamepadDpadRight, XINPUT_GAMEPAD_DPAD_RIGHT); + MAP_BUTTON(ImGuiKey_GamepadDpadUp, XINPUT_GAMEPAD_DPAD_UP); + MAP_BUTTON(ImGuiKey_GamepadDpadDown, XINPUT_GAMEPAD_DPAD_DOWN); + MAP_BUTTON(ImGuiKey_GamepadL1, XINPUT_GAMEPAD_LEFT_SHOULDER); + MAP_BUTTON(ImGuiKey_GamepadR1, XINPUT_GAMEPAD_RIGHT_SHOULDER); + MAP_ANALOG(ImGuiKey_GamepadL2, gamepad.bLeftTrigger, XINPUT_GAMEPAD_TRIGGER_THRESHOLD, 255); + MAP_ANALOG(ImGuiKey_GamepadR2, gamepad.bRightTrigger, XINPUT_GAMEPAD_TRIGGER_THRESHOLD, 255); + MAP_BUTTON(ImGuiKey_GamepadL3, XINPUT_GAMEPAD_LEFT_THUMB); + MAP_BUTTON(ImGuiKey_GamepadR3, XINPUT_GAMEPAD_RIGHT_THUMB); + MAP_ANALOG(ImGuiKey_GamepadLStickLeft, gamepad.sThumbLX, -XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, -32768); + MAP_ANALOG(ImGuiKey_GamepadLStickRight, gamepad.sThumbLX, +XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, +32767); + MAP_ANALOG(ImGuiKey_GamepadLStickUp, gamepad.sThumbLY, +XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, +32767); + MAP_ANALOG(ImGuiKey_GamepadLStickDown, gamepad.sThumbLY, -XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, -32768); + MAP_ANALOG(ImGuiKey_GamepadRStickLeft, gamepad.sThumbRX, -XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, -32768); + MAP_ANALOG(ImGuiKey_GamepadRStickRight, gamepad.sThumbRX, +XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, +32767); + MAP_ANALOG(ImGuiKey_GamepadRStickUp, gamepad.sThumbRY, +XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, +32767); + MAP_ANALOG(ImGuiKey_GamepadRStickDown, gamepad.sThumbRY, -XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, -32768); + #undef MAP_BUTTON + #undef MAP_ANALOG +#endif // #ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD +} + +static BOOL CALLBACK ImGui_ImplWin32_UpdateMonitors_EnumFunc(HMONITOR monitor, HDC, LPRECT, LPARAM) +{ + MONITORINFO info = {}; + info.cbSize = sizeof(MONITORINFO); + if (!::GetMonitorInfo(monitor, &info)) + return TRUE; + ImGuiPlatformMonitor imgui_monitor; + imgui_monitor.MainPos = ImVec2((float)info.rcMonitor.left, (float)info.rcMonitor.top); + imgui_monitor.MainSize = ImVec2((float)(info.rcMonitor.right - info.rcMonitor.left), (float)(info.rcMonitor.bottom - info.rcMonitor.top)); + imgui_monitor.WorkPos = ImVec2((float)info.rcWork.left, (float)info.rcWork.top); + imgui_monitor.WorkSize = ImVec2((float)(info.rcWork.right - info.rcWork.left), (float)(info.rcWork.bottom - info.rcWork.top)); + imgui_monitor.DpiScale = ImGui_ImplWin32_GetDpiScaleForMonitor(monitor); + imgui_monitor.PlatformHandle = (void*)monitor; + ImGuiPlatformIO& io = ImGui::GetPlatformIO(); + if (info.dwFlags & MONITORINFOF_PRIMARY) + io.Monitors.push_front(imgui_monitor); + else + io.Monitors.push_back(imgui_monitor); + return TRUE; +} + +static void ImGui_ImplWin32_UpdateMonitors() +{ + ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); + ImGui::GetPlatformIO().Monitors.resize(0); + ::EnumDisplayMonitors(nullptr, nullptr, ImGui_ImplWin32_UpdateMonitors_EnumFunc, 0); + bd->WantUpdateMonitors = false; +} + +void ImGui_ImplWin32_NewFrame() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplWin32_Init()?"); + + // Setup display size (every frame to accommodate for window resizing) + RECT rect = { 0, 0, 0, 0 }; + ::GetClientRect(bd->hWnd, &rect); + io.DisplaySize = ImVec2((float)(rect.right - rect.left), (float)(rect.bottom - rect.top)); + if (bd->WantUpdateMonitors) + ImGui_ImplWin32_UpdateMonitors(); + + // Setup time step + INT64 current_time = 0; + ::QueryPerformanceCounter((LARGE_INTEGER*)¤t_time); + io.DeltaTime = (float)(current_time - bd->Time) / bd->TicksPerSecond; + bd->Time = current_time; + + // Update OS mouse position + ImGui_ImplWin32_UpdateMouseData(); + + // Process workarounds for known Windows key handling issues + ImGui_ImplWin32_ProcessKeyEventsWorkarounds(); + + // Update OS mouse cursor with the cursor requested by imgui + ImGuiMouseCursor mouse_cursor = io.MouseDrawCursor ? ImGuiMouseCursor_None : ImGui::GetMouseCursor(); + if (bd->LastMouseCursor != mouse_cursor) + { + bd->LastMouseCursor = mouse_cursor; + ImGui_ImplWin32_UpdateMouseCursor(); + } + + // Update game controllers (if enabled and available) + ImGui_ImplWin32_UpdateGamepads(); +} + +// There is no distinct VK_xxx for keypad enter, instead it is VK_RETURN + KF_EXTENDED, we assign it an arbitrary value to make code more readable (VK_ codes go up to 255) +#define IM_VK_KEYPAD_ENTER (VK_RETURN + 256) + +// Map VK_xxx to ImGuiKey_xxx. +static ImGuiKey ImGui_ImplWin32_VirtualKeyToImGuiKey(WPARAM wParam) +{ + switch (wParam) + { + case VK_TAB: return ImGuiKey_Tab; + case VK_LEFT: return ImGuiKey_LeftArrow; + case VK_RIGHT: return ImGuiKey_RightArrow; + case VK_UP: return ImGuiKey_UpArrow; + case VK_DOWN: return ImGuiKey_DownArrow; + case VK_PRIOR: return ImGuiKey_PageUp; + case VK_NEXT: return ImGuiKey_PageDown; + case VK_HOME: return ImGuiKey_Home; + case VK_END: return ImGuiKey_End; + case VK_INSERT: return ImGuiKey_Insert; + case VK_DELETE: return ImGuiKey_Delete; + case VK_BACK: return ImGuiKey_Backspace; + case VK_SPACE: return ImGuiKey_Space; + case VK_RETURN: return ImGuiKey_Enter; + case VK_ESCAPE: return ImGuiKey_Escape; + case VK_OEM_7: return ImGuiKey_Apostrophe; + case VK_OEM_COMMA: return ImGuiKey_Comma; + case VK_OEM_MINUS: return ImGuiKey_Minus; + case VK_OEM_PERIOD: return ImGuiKey_Period; + case VK_OEM_2: return ImGuiKey_Slash; + case VK_OEM_1: return ImGuiKey_Semicolon; + case VK_OEM_PLUS: return ImGuiKey_Equal; + case VK_OEM_4: return ImGuiKey_LeftBracket; + case VK_OEM_5: return ImGuiKey_Backslash; + case VK_OEM_6: return ImGuiKey_RightBracket; + case VK_OEM_3: return ImGuiKey_GraveAccent; + case VK_CAPITAL: return ImGuiKey_CapsLock; + case VK_SCROLL: return ImGuiKey_ScrollLock; + case VK_NUMLOCK: return ImGuiKey_NumLock; + case VK_SNAPSHOT: return ImGuiKey_PrintScreen; + case VK_PAUSE: return ImGuiKey_Pause; + case VK_NUMPAD0: return ImGuiKey_Keypad0; + case VK_NUMPAD1: return ImGuiKey_Keypad1; + case VK_NUMPAD2: return ImGuiKey_Keypad2; + case VK_NUMPAD3: return ImGuiKey_Keypad3; + case VK_NUMPAD4: return ImGuiKey_Keypad4; + case VK_NUMPAD5: return ImGuiKey_Keypad5; + case VK_NUMPAD6: return ImGuiKey_Keypad6; + case VK_NUMPAD7: return ImGuiKey_Keypad7; + case VK_NUMPAD8: return ImGuiKey_Keypad8; + case VK_NUMPAD9: return ImGuiKey_Keypad9; + case VK_DECIMAL: return ImGuiKey_KeypadDecimal; + case VK_DIVIDE: return ImGuiKey_KeypadDivide; + case VK_MULTIPLY: return ImGuiKey_KeypadMultiply; + case VK_SUBTRACT: return ImGuiKey_KeypadSubtract; + case VK_ADD: return ImGuiKey_KeypadAdd; + case IM_VK_KEYPAD_ENTER: return ImGuiKey_KeypadEnter; + case VK_LSHIFT: return ImGuiKey_LeftShift; + case VK_LCONTROL: return ImGuiKey_LeftCtrl; + case VK_LMENU: return ImGuiKey_LeftAlt; + case VK_LWIN: return ImGuiKey_LeftSuper; + case VK_RSHIFT: return ImGuiKey_RightShift; + case VK_RCONTROL: return ImGuiKey_RightCtrl; + case VK_RMENU: return ImGuiKey_RightAlt; + case VK_RWIN: return ImGuiKey_RightSuper; + case VK_APPS: return ImGuiKey_Menu; + case '0': return ImGuiKey_0; + case '1': return ImGuiKey_1; + case '2': return ImGuiKey_2; + case '3': return ImGuiKey_3; + case '4': return ImGuiKey_4; + case '5': return ImGuiKey_5; + case '6': return ImGuiKey_6; + case '7': return ImGuiKey_7; + case '8': return ImGuiKey_8; + case '9': return ImGuiKey_9; + case 'A': return ImGuiKey_A; + case 'B': return ImGuiKey_B; + case 'C': return ImGuiKey_C; + case 'D': return ImGuiKey_D; + case 'E': return ImGuiKey_E; + case 'F': return ImGuiKey_F; + case 'G': return ImGuiKey_G; + case 'H': return ImGuiKey_H; + case 'I': return ImGuiKey_I; + case 'J': return ImGuiKey_J; + case 'K': return ImGuiKey_K; + case 'L': return ImGuiKey_L; + case 'M': return ImGuiKey_M; + case 'N': return ImGuiKey_N; + case 'O': return ImGuiKey_O; + case 'P': return ImGuiKey_P; + case 'Q': return ImGuiKey_Q; + case 'R': return ImGuiKey_R; + case 'S': return ImGuiKey_S; + case 'T': return ImGuiKey_T; + case 'U': return ImGuiKey_U; + case 'V': return ImGuiKey_V; + case 'W': return ImGuiKey_W; + case 'X': return ImGuiKey_X; + case 'Y': return ImGuiKey_Y; + case 'Z': return ImGuiKey_Z; + case VK_F1: return ImGuiKey_F1; + case VK_F2: return ImGuiKey_F2; + case VK_F3: return ImGuiKey_F3; + case VK_F4: return ImGuiKey_F4; + case VK_F5: return ImGuiKey_F5; + case VK_F6: return ImGuiKey_F6; + case VK_F7: return ImGuiKey_F7; + case VK_F8: return ImGuiKey_F8; + case VK_F9: return ImGuiKey_F9; + case VK_F10: return ImGuiKey_F10; + case VK_F11: return ImGuiKey_F11; + case VK_F12: return ImGuiKey_F12; + case VK_F13: return ImGuiKey_F13; + case VK_F14: return ImGuiKey_F14; + case VK_F15: return ImGuiKey_F15; + case VK_F16: return ImGuiKey_F16; + case VK_F17: return ImGuiKey_F17; + case VK_F18: return ImGuiKey_F18; + case VK_F19: return ImGuiKey_F19; + case VK_F20: return ImGuiKey_F20; + case VK_F21: return ImGuiKey_F21; + case VK_F22: return ImGuiKey_F22; + case VK_F23: return ImGuiKey_F23; + case VK_F24: return ImGuiKey_F24; + case VK_BROWSER_BACK: return ImGuiKey_AppBack; + case VK_BROWSER_FORWARD: return ImGuiKey_AppForward; + default: return ImGuiKey_None; + } +} + +// Allow compilation with old Windows SDK. MinGW doesn't have default _WIN32_WINNT/WINVER versions. +#ifndef WM_MOUSEHWHEEL +#define WM_MOUSEHWHEEL 0x020E +#endif +#ifndef DBT_DEVNODES_CHANGED +#define DBT_DEVNODES_CHANGED 0x0007 +#endif + +// Win32 message handler (process Win32 mouse/keyboard inputs, etc.) +// Call from your application's message handler. Keep calling your message handler unless this function returns TRUE. +// When implementing your own backend, you can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if Dear ImGui wants to use your inputs. +// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. +// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. +// Generally you may always pass all inputs to Dear ImGui, and hide them from your application based on those two flags. +// PS: In this Win32 handler, we use the capture API (GetCapture/SetCapture/ReleaseCapture) to be able to read mouse coordinates when dragging mouse outside of our window bounds. +// PS: We treat DBLCLK messages as regular mouse down messages, so this code will work on windows classes that have the CS_DBLCLKS flag set. Our own example app code doesn't set this flag. +#if 0 +// Copy this line into your .cpp file to forward declare the function. +extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); +#endif + +// See https://learn.microsoft.com/en-us/windows/win32/tablet/system-events-and-mouse-messages +// Prefer to call this at the top of the message handler to avoid the possibility of other Win32 calls interfering with this. +static ImGuiMouseSource GetMouseSourceFromMessageExtraInfo() +{ + LPARAM extra_info = ::GetMessageExtraInfo(); + if ((extra_info & 0xFFFFFF80) == 0xFF515700) + return ImGuiMouseSource_Pen; + if ((extra_info & 0xFFFFFF80) == 0xFF515780) + return ImGuiMouseSource_TouchScreen; + return ImGuiMouseSource_Mouse; +} + +IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + if (ImGui::GetCurrentContext() == nullptr) + return 0; + + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); + + switch (msg) + { + case WM_MOUSEMOVE: + case WM_NCMOUSEMOVE: + { + // We need to call TrackMouseEvent in order to receive WM_MOUSELEAVE events + ImGuiMouseSource mouse_source = GetMouseSourceFromMessageExtraInfo(); + const int area = (msg == WM_MOUSEMOVE) ? 1 : 2; + bd->MouseHwnd = hwnd; + if (bd->MouseTrackedArea != area) + { + TRACKMOUSEEVENT tme_cancel = { sizeof(tme_cancel), TME_CANCEL, hwnd, 0 }; + TRACKMOUSEEVENT tme_track = { sizeof(tme_track), (DWORD)((area == 2) ? (TME_LEAVE | TME_NONCLIENT) : TME_LEAVE), hwnd, 0 }; + if (bd->MouseTrackedArea != 0) + ::TrackMouseEvent(&tme_cancel); + ::TrackMouseEvent(&tme_track); + bd->MouseTrackedArea = area; + } + POINT mouse_pos = { (LONG)GET_X_LPARAM(lParam), (LONG)GET_Y_LPARAM(lParam) }; + bool want_absolute_pos = (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) != 0; + if (msg == WM_MOUSEMOVE && want_absolute_pos) // WM_MOUSEMOVE are client-relative coordinates. + ::ClientToScreen(hwnd, &mouse_pos); + if (msg == WM_NCMOUSEMOVE && !want_absolute_pos) // WM_NCMOUSEMOVE are absolute coordinates. + ::ScreenToClient(hwnd, &mouse_pos); + io.AddMouseSourceEvent(mouse_source); + io.AddMousePosEvent((float)mouse_pos.x, (float)mouse_pos.y); + break; + } + case WM_MOUSELEAVE: + case WM_NCMOUSELEAVE: + { + const int area = (msg == WM_MOUSELEAVE) ? 1 : 2; + if (bd->MouseTrackedArea == area) + { + if (bd->MouseHwnd == hwnd) + bd->MouseHwnd = nullptr; + bd->MouseTrackedArea = 0; + io.AddMousePosEvent(-FLT_MAX, -FLT_MAX); + } + break; + } + case WM_LBUTTONDOWN: case WM_LBUTTONDBLCLK: + case WM_RBUTTONDOWN: case WM_RBUTTONDBLCLK: + case WM_MBUTTONDOWN: case WM_MBUTTONDBLCLK: + case WM_XBUTTONDOWN: case WM_XBUTTONDBLCLK: + { + ImGuiMouseSource mouse_source = GetMouseSourceFromMessageExtraInfo(); + int button = 0; + if (msg == WM_LBUTTONDOWN || msg == WM_LBUTTONDBLCLK) { button = 0; } + if (msg == WM_RBUTTONDOWN || msg == WM_RBUTTONDBLCLK) { button = 1; } + if (msg == WM_MBUTTONDOWN || msg == WM_MBUTTONDBLCLK) { button = 2; } + if (msg == WM_XBUTTONDOWN || msg == WM_XBUTTONDBLCLK) { button = (GET_XBUTTON_WPARAM(wParam) == XBUTTON1) ? 3 : 4; } + if (bd->MouseButtonsDown == 0 && ::GetCapture() == nullptr) + ::SetCapture(hwnd); + bd->MouseButtonsDown |= 1 << button; + io.AddMouseSourceEvent(mouse_source); + io.AddMouseButtonEvent(button, true); + return 0; + } + case WM_LBUTTONUP: + case WM_RBUTTONUP: + case WM_MBUTTONUP: + case WM_XBUTTONUP: + { + ImGuiMouseSource mouse_source = GetMouseSourceFromMessageExtraInfo(); + int button = 0; + if (msg == WM_LBUTTONUP) { button = 0; } + if (msg == WM_RBUTTONUP) { button = 1; } + if (msg == WM_MBUTTONUP) { button = 2; } + if (msg == WM_XBUTTONUP) { button = (GET_XBUTTON_WPARAM(wParam) == XBUTTON1) ? 3 : 4; } + bd->MouseButtonsDown &= ~(1 << button); + if (bd->MouseButtonsDown == 0 && ::GetCapture() == hwnd) + ::ReleaseCapture(); + io.AddMouseSourceEvent(mouse_source); + io.AddMouseButtonEvent(button, false); + return 0; + } + case WM_MOUSEWHEEL: + io.AddMouseWheelEvent(0.0f, (float)GET_WHEEL_DELTA_WPARAM(wParam) / (float)WHEEL_DELTA); + return 0; + case WM_MOUSEHWHEEL: + io.AddMouseWheelEvent(-(float)GET_WHEEL_DELTA_WPARAM(wParam) / (float)WHEEL_DELTA, 0.0f); + return 0; + case WM_KEYDOWN: + case WM_KEYUP: + case WM_SYSKEYDOWN: + case WM_SYSKEYUP: + { + const bool is_key_down = (msg == WM_KEYDOWN || msg == WM_SYSKEYDOWN); + if (wParam < 256) + { + // Submit modifiers + ImGui_ImplWin32_UpdateKeyModifiers(); + + // Obtain virtual key code + // (keypad enter doesn't have its own... VK_RETURN with KF_EXTENDED flag means keypad enter, see IM_VK_KEYPAD_ENTER definition for details, it is mapped to ImGuiKey_KeyPadEnter.) + int vk = (int)wParam; + if ((wParam == VK_RETURN) && (HIWORD(lParam) & KF_EXTENDED)) + vk = IM_VK_KEYPAD_ENTER; + const ImGuiKey key = ImGui_ImplWin32_VirtualKeyToImGuiKey(vk); + const int scancode = (int)LOBYTE(HIWORD(lParam)); + + // Special behavior for VK_SNAPSHOT / ImGuiKey_PrintScreen as Windows doesn't emit the key down event. + if (key == ImGuiKey_PrintScreen && !is_key_down) + ImGui_ImplWin32_AddKeyEvent(key, true, vk, scancode); + + // Submit key event + if (key != ImGuiKey_None) + ImGui_ImplWin32_AddKeyEvent(key, is_key_down, vk, scancode); + + // Submit individual left/right modifier events + if (vk == VK_SHIFT) + { + // Important: Shift keys tend to get stuck when pressed together, missing key-up events are corrected in ImGui_ImplWin32_ProcessKeyEventsWorkarounds() + if (IsVkDown(VK_LSHIFT) == is_key_down) { ImGui_ImplWin32_AddKeyEvent(ImGuiKey_LeftShift, is_key_down, VK_LSHIFT, scancode); } + if (IsVkDown(VK_RSHIFT) == is_key_down) { ImGui_ImplWin32_AddKeyEvent(ImGuiKey_RightShift, is_key_down, VK_RSHIFT, scancode); } + } + else if (vk == VK_CONTROL) + { + if (IsVkDown(VK_LCONTROL) == is_key_down) { ImGui_ImplWin32_AddKeyEvent(ImGuiKey_LeftCtrl, is_key_down, VK_LCONTROL, scancode); } + if (IsVkDown(VK_RCONTROL) == is_key_down) { ImGui_ImplWin32_AddKeyEvent(ImGuiKey_RightCtrl, is_key_down, VK_RCONTROL, scancode); } + } + else if (vk == VK_MENU) + { + if (IsVkDown(VK_LMENU) == is_key_down) { ImGui_ImplWin32_AddKeyEvent(ImGuiKey_LeftAlt, is_key_down, VK_LMENU, scancode); } + if (IsVkDown(VK_RMENU) == is_key_down) { ImGui_ImplWin32_AddKeyEvent(ImGuiKey_RightAlt, is_key_down, VK_RMENU, scancode); } + } + } + return 0; + } + case WM_SETFOCUS: + case WM_KILLFOCUS: + io.AddFocusEvent(msg == WM_SETFOCUS); + return 0; + case WM_INPUTLANGCHANGE: + ImGui_ImplWin32_UpdateKeyboardCodePage(); + return 0; + case WM_CHAR: + if (::IsWindowUnicode(hwnd)) + { + // You can also use ToAscii()+GetKeyboardState() to retrieve characters. + if (wParam > 0 && wParam < 0x10000) + io.AddInputCharacterUTF16((unsigned short)wParam); + } + else + { + wchar_t wch = 0; + ::MultiByteToWideChar(bd->KeyboardCodePage, MB_PRECOMPOSED, (char*)&wParam, 1, &wch, 1); + io.AddInputCharacter(wch); + } + return 0; + case WM_SETCURSOR: + // This is required to restore cursor when transitioning from e.g resize borders to client area. + if (LOWORD(lParam) == HTCLIENT && ImGui_ImplWin32_UpdateMouseCursor()) + return 1; + return 0; + case WM_DEVICECHANGE: +#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD + if ((UINT)wParam == DBT_DEVNODES_CHANGED) + bd->WantUpdateHasGamepad = true; +#endif + return 0; + case WM_DISPLAYCHANGE: + bd->WantUpdateMonitors = true; + return 0; + } + return 0; +} + + +//-------------------------------------------------------------------------------------------------------- +// DPI-related helpers (optional) +//-------------------------------------------------------------------------------------------------------- +// - Use to enable DPI awareness without having to create an application manifest. +// - Your own app may already do this via a manifest or explicit calls. This is mostly useful for our examples/ apps. +// - In theory we could call simple functions from Windows SDK such as SetProcessDPIAware(), SetProcessDpiAwareness(), etc. +// but most of the functions provided by Microsoft require Windows 8.1/10+ SDK at compile time and Windows 8/10+ at runtime, +// neither we want to require the user to have. So we dynamically select and load those functions to avoid dependencies. +//--------------------------------------------------------------------------------------------------------- +// This is the scheme successfully used by GLFW (from which we borrowed some of the code) and other apps aiming to be highly portable. +// ImGui_ImplWin32_EnableDpiAwareness() is just a helper called by main.cpp, we don't call it automatically. +// If you are trying to implement your own backend for your own engine, you may ignore that noise. +//--------------------------------------------------------------------------------------------------------- + +// Perform our own check with RtlVerifyVersionInfo() instead of using functions from as they +// require a manifest to be functional for checks above 8.1. See https://github.com/ocornut/imgui/issues/4200 +static BOOL _IsWindowsVersionOrGreater(WORD major, WORD minor, WORD) +{ + typedef LONG(WINAPI* PFN_RtlVerifyVersionInfo)(OSVERSIONINFOEXW*, ULONG, ULONGLONG); + static PFN_RtlVerifyVersionInfo RtlVerifyVersionInfoFn = nullptr; + if (RtlVerifyVersionInfoFn == nullptr) + if (HMODULE ntdllModule = ::GetModuleHandleA("ntdll.dll")) + RtlVerifyVersionInfoFn = (PFN_RtlVerifyVersionInfo)GetProcAddress(ntdllModule, "RtlVerifyVersionInfo"); + if (RtlVerifyVersionInfoFn == nullptr) + return FALSE; + + RTL_OSVERSIONINFOEXW versionInfo = { }; + ULONGLONG conditionMask = 0; + versionInfo.dwOSVersionInfoSize = sizeof(RTL_OSVERSIONINFOEXW); + versionInfo.dwMajorVersion = major; + versionInfo.dwMinorVersion = minor; + VER_SET_CONDITION(conditionMask, VER_MAJORVERSION, VER_GREATER_EQUAL); + VER_SET_CONDITION(conditionMask, VER_MINORVERSION, VER_GREATER_EQUAL); + return (RtlVerifyVersionInfoFn(&versionInfo, VER_MAJORVERSION | VER_MINORVERSION, conditionMask) == 0) ? TRUE : FALSE; +} + +#define _IsWindowsVistaOrGreater() _IsWindowsVersionOrGreater(HIBYTE(0x0600), LOBYTE(0x0600), 0) // _WIN32_WINNT_VISTA +#define _IsWindows8OrGreater() _IsWindowsVersionOrGreater(HIBYTE(0x0602), LOBYTE(0x0602), 0) // _WIN32_WINNT_WIN8 +#define _IsWindows8Point1OrGreater() _IsWindowsVersionOrGreater(HIBYTE(0x0603), LOBYTE(0x0603), 0) // _WIN32_WINNT_WINBLUE +#define _IsWindows10OrGreater() _IsWindowsVersionOrGreater(HIBYTE(0x0A00), LOBYTE(0x0A00), 0) // _WIN32_WINNT_WINTHRESHOLD / _WIN32_WINNT_WIN10 + +#ifndef DPI_ENUMS_DECLARED +typedef enum { PROCESS_DPI_UNAWARE = 0, PROCESS_SYSTEM_DPI_AWARE = 1, PROCESS_PER_MONITOR_DPI_AWARE = 2 } PROCESS_DPI_AWARENESS; +typedef enum { MDT_EFFECTIVE_DPI = 0, MDT_ANGULAR_DPI = 1, MDT_RAW_DPI = 2, MDT_DEFAULT = MDT_EFFECTIVE_DPI } MONITOR_DPI_TYPE; +#endif +#ifndef _DPI_AWARENESS_CONTEXTS_ +DECLARE_HANDLE(DPI_AWARENESS_CONTEXT); +#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE (DPI_AWARENESS_CONTEXT)-3 +#endif +#ifndef DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 +#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 (DPI_AWARENESS_CONTEXT)-4 +#endif +typedef HRESULT(WINAPI* PFN_SetProcessDpiAwareness)(PROCESS_DPI_AWARENESS); // Shcore.lib + dll, Windows 8.1+ +typedef HRESULT(WINAPI* PFN_GetDpiForMonitor)(HMONITOR, MONITOR_DPI_TYPE, UINT*, UINT*); // Shcore.lib + dll, Windows 8.1+ +typedef DPI_AWARENESS_CONTEXT(WINAPI* PFN_SetThreadDpiAwarenessContext)(DPI_AWARENESS_CONTEXT); // User32.lib + dll, Windows 10 v1607+ (Creators Update) + +// Helper function to enable DPI awareness without setting up a manifest +void ImGui_ImplWin32_EnableDpiAwareness() +{ + // Make sure monitors will be updated with latest correct scaling + if (ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData()) + bd->WantUpdateMonitors = true; + + if (_IsWindows10OrGreater()) + { + static HINSTANCE user32_dll = ::LoadLibraryA("user32.dll"); // Reference counted per-process + if (PFN_SetThreadDpiAwarenessContext SetThreadDpiAwarenessContextFn = (PFN_SetThreadDpiAwarenessContext)::GetProcAddress(user32_dll, "SetThreadDpiAwarenessContext")) + { + SetThreadDpiAwarenessContextFn(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); + return; + } + } + if (_IsWindows8Point1OrGreater()) + { + static HINSTANCE shcore_dll = ::LoadLibraryA("shcore.dll"); // Reference counted per-process + if (PFN_SetProcessDpiAwareness SetProcessDpiAwarenessFn = (PFN_SetProcessDpiAwareness)::GetProcAddress(shcore_dll, "SetProcessDpiAwareness")) + { + SetProcessDpiAwarenessFn(PROCESS_PER_MONITOR_DPI_AWARE); + return; + } + } +#if _WIN32_WINNT >= 0x0600 + ::SetProcessDPIAware(); +#endif +} + +#if defined(_MSC_VER) && !defined(NOGDI) +#pragma comment(lib, "gdi32") // Link with gdi32.lib for GetDeviceCaps(). MinGW will require linking with '-lgdi32' +#endif + +float ImGui_ImplWin32_GetDpiScaleForMonitor(void* monitor) +{ + UINT xdpi = 96, ydpi = 96; + if (_IsWindows8Point1OrGreater()) + { + static HINSTANCE shcore_dll = ::LoadLibraryA("shcore.dll"); // Reference counted per-process + static PFN_GetDpiForMonitor GetDpiForMonitorFn = nullptr; + if (GetDpiForMonitorFn == nullptr && shcore_dll != nullptr) + GetDpiForMonitorFn = (PFN_GetDpiForMonitor)::GetProcAddress(shcore_dll, "GetDpiForMonitor"); + if (GetDpiForMonitorFn != nullptr) + { + GetDpiForMonitorFn((HMONITOR)monitor, MDT_EFFECTIVE_DPI, &xdpi, &ydpi); + IM_ASSERT(xdpi == ydpi); // Please contact me if you hit this assert! + return xdpi / 96.0f; + } + } +#ifndef NOGDI + const HDC dc = ::GetDC(nullptr); + xdpi = ::GetDeviceCaps(dc, LOGPIXELSX); + ydpi = ::GetDeviceCaps(dc, LOGPIXELSY); + IM_ASSERT(xdpi == ydpi); // Please contact me if you hit this assert! + ::ReleaseDC(nullptr, dc); +#endif + return xdpi / 96.0f; +} + +float ImGui_ImplWin32_GetDpiScaleForHwnd(void* hwnd) +{ + HMONITOR monitor = ::MonitorFromWindow((HWND)hwnd, MONITOR_DEFAULTTONEAREST); + return ImGui_ImplWin32_GetDpiScaleForMonitor(monitor); +} + +//--------------------------------------------------------------------------------------------------------- +// Transparency related helpers (optional) +//-------------------------------------------------------------------------------------------------------- + +#if defined(_MSC_VER) +#pragma comment(lib, "dwmapi") // Link with dwmapi.lib. MinGW will require linking with '-ldwmapi' +#endif + +// [experimental] +// Borrowed from GLFW's function updateFramebufferTransparency() in src/win32_window.c +// (the Dwm* functions are Vista era functions but we are borrowing logic from GLFW) +void ImGui_ImplWin32_EnableAlphaCompositing(void* hwnd) +{ + if (!_IsWindowsVistaOrGreater()) + return; + + BOOL composition; + if (FAILED(::DwmIsCompositionEnabled(&composition)) || !composition) + return; + + BOOL opaque; + DWORD color; + if (_IsWindows8OrGreater() || (SUCCEEDED(::DwmGetColorizationColor(&color, &opaque)) && !opaque)) + { + HRGN region = ::CreateRectRgn(0, 0, -1, -1); + DWM_BLURBEHIND bb = {}; + bb.dwFlags = DWM_BB_ENABLE | DWM_BB_BLURREGION; + bb.hRgnBlur = region; + bb.fEnable = TRUE; + ::DwmEnableBlurBehindWindow((HWND)hwnd, &bb); + ::DeleteObject(region); + } + else + { + DWM_BLURBEHIND bb = {}; + bb.dwFlags = DWM_BB_ENABLE; + ::DwmEnableBlurBehindWindow((HWND)hwnd, &bb); + } +} + +//--------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +// Helper structure we store in the void* RendererUserData field of each ImGuiViewport to easily retrieve our backend data. +struct ImGui_ImplWin32_ViewportData +{ + HWND Hwnd; + HWND HwndParent; + bool HwndOwned; + DWORD DwStyle; + DWORD DwExStyle; + + ImGui_ImplWin32_ViewportData() { Hwnd = HwndParent = nullptr; HwndOwned = false; DwStyle = DwExStyle = 0; } + ~ImGui_ImplWin32_ViewportData() { IM_ASSERT(Hwnd == nullptr); } +}; + +static void ImGui_ImplWin32_GetWin32StyleFromViewportFlags(ImGuiViewportFlags flags, DWORD* out_style, DWORD* out_ex_style) +{ + if (flags & ImGuiViewportFlags_NoDecoration) + *out_style = WS_POPUP; + else + *out_style = WS_OVERLAPPEDWINDOW; + + if (flags & ImGuiViewportFlags_NoTaskBarIcon) + *out_ex_style = WS_EX_TOOLWINDOW; + else + *out_ex_style = WS_EX_APPWINDOW; + + if (flags & ImGuiViewportFlags_TopMost) + *out_ex_style |= WS_EX_TOPMOST; +} + +static HWND ImGui_ImplWin32_GetHwndFromViewportID(ImGuiID viewport_id) +{ + if (viewport_id != 0) + if (ImGuiViewport* viewport = ImGui::FindViewportByID(viewport_id)) + return (HWND)viewport->PlatformHandle; + return nullptr; +} + +static void ImGui_ImplWin32_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplWin32_ViewportData* vd = IM_NEW(ImGui_ImplWin32_ViewportData)(); + viewport->PlatformUserData = vd; + + // Select style and parent window + ImGui_ImplWin32_GetWin32StyleFromViewportFlags(viewport->Flags, &vd->DwStyle, &vd->DwExStyle); + vd->HwndParent = ImGui_ImplWin32_GetHwndFromViewportID(viewport->ParentViewportId); + + // Create window + RECT rect = { (LONG)viewport->Pos.x, (LONG)viewport->Pos.y, (LONG)(viewport->Pos.x + viewport->Size.x), (LONG)(viewport->Pos.y + viewport->Size.y) }; + ::AdjustWindowRectEx(&rect, vd->DwStyle, FALSE, vd->DwExStyle); + vd->Hwnd = ::CreateWindowEx( + vd->DwExStyle, _T("ImGui Platform"), _T("Untitled"), vd->DwStyle, // Style, class name, window name + rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, // Window area + vd->HwndParent, nullptr, ::GetModuleHandle(nullptr), nullptr); // Owner window, Menu, Instance, Param + vd->HwndOwned = true; + viewport->PlatformRequestResize = false; + viewport->PlatformHandle = viewport->PlatformHandleRaw = vd->Hwnd; +} + +static void ImGui_ImplWin32_DestroyWindow(ImGuiViewport* viewport) +{ + ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); + if (ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData) + { + if (::GetCapture() == vd->Hwnd) + { + // Transfer capture so if we started dragging from a window that later disappears, we'll still receive the MOUSEUP event. + ::ReleaseCapture(); + ::SetCapture(bd->hWnd); + } + if (vd->Hwnd && vd->HwndOwned) + ::DestroyWindow(vd->Hwnd); + vd->Hwnd = nullptr; + IM_DELETE(vd); + } + viewport->PlatformUserData = viewport->PlatformHandle = nullptr; +} + +static void ImGui_ImplWin32_ShowWindow(ImGuiViewport* viewport) +{ + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + if (viewport->Flags & ImGuiViewportFlags_NoFocusOnAppearing) + ::ShowWindow(vd->Hwnd, SW_SHOWNA); + else + ::ShowWindow(vd->Hwnd, SW_SHOW); +} + +static void ImGui_ImplWin32_UpdateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + + // Update Win32 parent if it changed _after_ creation + // Unlike style settings derived from configuration flags, this is more likely to change for advanced apps that are manipulating ParentViewportID manually. + HWND new_parent = ImGui_ImplWin32_GetHwndFromViewportID(viewport->ParentViewportId); + if (new_parent != vd->HwndParent) + { + // Win32 windows can either have a "Parent" (for WS_CHILD window) or an "Owner" (which among other thing keeps window above its owner). + // Our Dear Imgui-side concept of parenting only mostly care about what Win32 call "Owner". + // The parent parameter of CreateWindowEx() sets up Parent OR Owner depending on WS_CHILD flag. In our case an Owner as we never use WS_CHILD. + // Calling ::SetParent() here would be incorrect: it will create a full child relation, alter coordinate system and clipping. + // Calling ::SetWindowLongPtr() with GWLP_HWNDPARENT seems correct although poorly documented. + // https://devblogs.microsoft.com/oldnewthing/20100315-00/?p=14613 + vd->HwndParent = new_parent; + ::SetWindowLongPtr(vd->Hwnd, GWLP_HWNDPARENT, (LONG_PTR)vd->HwndParent); + } + + // (Optional) Update Win32 style if it changed _after_ creation. + // Generally they won't change unless configuration flags are changed, but advanced uses (such as manually rewriting viewport flags) make this useful. + DWORD new_style; + DWORD new_ex_style; + ImGui_ImplWin32_GetWin32StyleFromViewportFlags(viewport->Flags, &new_style, &new_ex_style); + + // Only reapply the flags that have been changed from our point of view (as other flags are being modified by Windows) + if (vd->DwStyle != new_style || vd->DwExStyle != new_ex_style) + { + // (Optional) Update TopMost state if it changed _after_ creation + bool top_most_changed = (vd->DwExStyle & WS_EX_TOPMOST) != (new_ex_style & WS_EX_TOPMOST); + HWND insert_after = top_most_changed ? ((viewport->Flags & ImGuiViewportFlags_TopMost) ? HWND_TOPMOST : HWND_NOTOPMOST) : 0; + UINT swp_flag = top_most_changed ? 0 : SWP_NOZORDER; + + // Apply flags and position (since it is affected by flags) + vd->DwStyle = new_style; + vd->DwExStyle = new_ex_style; + ::SetWindowLong(vd->Hwnd, GWL_STYLE, vd->DwStyle); + ::SetWindowLong(vd->Hwnd, GWL_EXSTYLE, vd->DwExStyle); + RECT rect = { (LONG)viewport->Pos.x, (LONG)viewport->Pos.y, (LONG)(viewport->Pos.x + viewport->Size.x), (LONG)(viewport->Pos.y + viewport->Size.y) }; + ::AdjustWindowRectEx(&rect, vd->DwStyle, FALSE, vd->DwExStyle); // Client to Screen + ::SetWindowPos(vd->Hwnd, insert_after, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, swp_flag | SWP_NOACTIVATE | SWP_FRAMECHANGED); + ::ShowWindow(vd->Hwnd, SW_SHOWNA); // This is necessary when we alter the style + viewport->PlatformRequestMove = viewport->PlatformRequestResize = true; + } +} + +static ImVec2 ImGui_ImplWin32_GetWindowPos(ImGuiViewport* viewport) +{ + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + POINT pos = { 0, 0 }; + ::ClientToScreen(vd->Hwnd, &pos); + return ImVec2((float)pos.x, (float)pos.y); +} + +static void ImGui_ImplWin32_SetWindowPos(ImGuiViewport* viewport, ImVec2 pos) +{ + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + RECT rect = { (LONG)pos.x, (LONG)pos.y, (LONG)pos.x, (LONG)pos.y }; + ::AdjustWindowRectEx(&rect, vd->DwStyle, FALSE, vd->DwExStyle); + ::SetWindowPos(vd->Hwnd, nullptr, rect.left, rect.top, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE); +} + +static ImVec2 ImGui_ImplWin32_GetWindowSize(ImGuiViewport* viewport) +{ + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + RECT rect; + ::GetClientRect(vd->Hwnd, &rect); + return ImVec2(float(rect.right - rect.left), float(rect.bottom - rect.top)); +} + +static void ImGui_ImplWin32_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + RECT rect = { 0, 0, (LONG)size.x, (LONG)size.y }; + ::AdjustWindowRectEx(&rect, vd->DwStyle, FALSE, vd->DwExStyle); // Client to Screen + ::SetWindowPos(vd->Hwnd, nullptr, 0, 0, rect.right - rect.left, rect.bottom - rect.top, SWP_NOZORDER | SWP_NOMOVE | SWP_NOACTIVATE); +} + +static void ImGui_ImplWin32_SetWindowFocus(ImGuiViewport* viewport) +{ + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + ::BringWindowToTop(vd->Hwnd); + ::SetForegroundWindow(vd->Hwnd); + ::SetFocus(vd->Hwnd); +} + +static bool ImGui_ImplWin32_GetWindowFocus(ImGuiViewport* viewport) +{ + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + return ::GetForegroundWindow() == vd->Hwnd; +} + +static bool ImGui_ImplWin32_GetWindowMinimized(ImGuiViewport* viewport) +{ + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + return ::IsIconic(vd->Hwnd) != 0; +} + +static void ImGui_ImplWin32_SetWindowTitle(ImGuiViewport* viewport, const char* title) +{ + // ::SetWindowTextA() doesn't properly handle UTF-8 so we explicitely convert our string. + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + int n = ::MultiByteToWideChar(CP_UTF8, 0, title, -1, nullptr, 0); + ImVector title_w; + title_w.resize(n); + ::MultiByteToWideChar(CP_UTF8, 0, title, -1, title_w.Data, n); + ::SetWindowTextW(vd->Hwnd, title_w.Data); +} + +static void ImGui_ImplWin32_SetWindowAlpha(ImGuiViewport* viewport, float alpha) +{ + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + IM_ASSERT(alpha >= 0.0f && alpha <= 1.0f); + if (alpha < 1.0f) + { + DWORD style = ::GetWindowLongW(vd->Hwnd, GWL_EXSTYLE) | WS_EX_LAYERED; + ::SetWindowLongW(vd->Hwnd, GWL_EXSTYLE, style); + ::SetLayeredWindowAttributes(vd->Hwnd, 0, (BYTE)(255 * alpha), LWA_ALPHA); + } + else + { + DWORD style = ::GetWindowLongW(vd->Hwnd, GWL_EXSTYLE) & ~WS_EX_LAYERED; + ::SetWindowLongW(vd->Hwnd, GWL_EXSTYLE, style); + } +} + +static float ImGui_ImplWin32_GetWindowDpiScale(ImGuiViewport* viewport) +{ + ImGui_ImplWin32_ViewportData* vd = (ImGui_ImplWin32_ViewportData*)viewport->PlatformUserData; + IM_ASSERT(vd->Hwnd != 0); + return ImGui_ImplWin32_GetDpiScaleForHwnd(vd->Hwnd); +} + +// FIXME-DPI: Testing DPI related ideas +static void ImGui_ImplWin32_OnChangedViewport(ImGuiViewport* viewport) +{ + (void)viewport; +#if 0 + ImGuiStyle default_style; + //default_style.WindowPadding = ImVec2(0, 0); + //default_style.WindowBorderSize = 0.0f; + //default_style.ItemSpacing.y = 3.0f; + //default_style.FramePadding = ImVec2(0, 0); + default_style.ScaleAllSizes(viewport->DpiScale); + ImGuiStyle& style = ImGui::GetStyle(); + style = default_style; +#endif +} + +static LRESULT CALLBACK ImGui_ImplWin32_WndProcHandler_PlatformWindow(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam)) + return true; + + if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle((void*)hWnd)) + { + switch (msg) + { + case WM_CLOSE: + viewport->PlatformRequestClose = true; + return 0; + case WM_MOVE: + viewport->PlatformRequestMove = true; + break; + case WM_SIZE: + viewport->PlatformRequestResize = true; + break; + case WM_MOUSEACTIVATE: + if (viewport->Flags & ImGuiViewportFlags_NoFocusOnClick) + return MA_NOACTIVATE; + break; + case WM_NCHITTEST: + // Let mouse pass-through the window. This will allow the backend to call io.AddMouseViewportEvent() correctly. (which is optional). + // The ImGuiViewportFlags_NoInputs flag is set while dragging a viewport, as want to detect the window behind the one we are dragging. + // If you cannot easily access those viewport flags from your windowing/event code: you may manually synchronize its state e.g. in + // your main loop after calling UpdatePlatformWindows(). Iterate all viewports/platform windows and pass the flag to your windowing system. + if (viewport->Flags & ImGuiViewportFlags_NoInputs) + return HTTRANSPARENT; + break; + } + } + + return DefWindowProc(hWnd, msg, wParam, lParam); +} + +static void ImGui_ImplWin32_InitPlatformInterface(bool platform_has_own_dc) +{ + WNDCLASSEX wcex; + wcex.cbSize = sizeof(WNDCLASSEX); + wcex.style = CS_HREDRAW | CS_VREDRAW | (platform_has_own_dc ? CS_OWNDC : 0); + wcex.lpfnWndProc = ImGui_ImplWin32_WndProcHandler_PlatformWindow; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = ::GetModuleHandle(nullptr); + wcex.hIcon = nullptr; + wcex.hCursor = nullptr; + wcex.hbrBackground = (HBRUSH)(COLOR_BACKGROUND + 1); + wcex.lpszMenuName = nullptr; + wcex.lpszClassName = _T("ImGui Platform"); + wcex.hIconSm = nullptr; + ::RegisterClassEx(&wcex); + + ImGui_ImplWin32_UpdateMonitors(); + + // Register platform interface (will be coupled with a renderer interface) + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Platform_CreateWindow = ImGui_ImplWin32_CreateWindow; + platform_io.Platform_DestroyWindow = ImGui_ImplWin32_DestroyWindow; + platform_io.Platform_ShowWindow = ImGui_ImplWin32_ShowWindow; + platform_io.Platform_SetWindowPos = ImGui_ImplWin32_SetWindowPos; + platform_io.Platform_GetWindowPos = ImGui_ImplWin32_GetWindowPos; + platform_io.Platform_SetWindowSize = ImGui_ImplWin32_SetWindowSize; + platform_io.Platform_GetWindowSize = ImGui_ImplWin32_GetWindowSize; + platform_io.Platform_SetWindowFocus = ImGui_ImplWin32_SetWindowFocus; + platform_io.Platform_GetWindowFocus = ImGui_ImplWin32_GetWindowFocus; + platform_io.Platform_GetWindowMinimized = ImGui_ImplWin32_GetWindowMinimized; + platform_io.Platform_SetWindowTitle = ImGui_ImplWin32_SetWindowTitle; + platform_io.Platform_SetWindowAlpha = ImGui_ImplWin32_SetWindowAlpha; + platform_io.Platform_UpdateWindow = ImGui_ImplWin32_UpdateWindow; + platform_io.Platform_GetWindowDpiScale = ImGui_ImplWin32_GetWindowDpiScale; // FIXME-DPI + platform_io.Platform_OnChangedViewport = ImGui_ImplWin32_OnChangedViewport; // FIXME-DPI + + // Register main window handle (which is owned by the main application, not by us) + // This is mostly for simplicity and consistency, so that our code (e.g. mouse handling etc.) can use same logic for main and secondary viewports. + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGui_ImplWin32_Data* bd = ImGui_ImplWin32_GetBackendData(); + ImGui_ImplWin32_ViewportData* vd = IM_NEW(ImGui_ImplWin32_ViewportData)(); + vd->Hwnd = bd->hWnd; + vd->HwndOwned = false; + main_viewport->PlatformUserData = vd; + main_viewport->PlatformHandle = (void*)bd->hWnd; +} + +static void ImGui_ImplWin32_ShutdownPlatformInterface() +{ + ::UnregisterClass(_T("ImGui Platform"), ::GetModuleHandle(nullptr)); + ImGui::DestroyPlatformWindows(); +} + +//--------------------------------------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_win32.h b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_win32.h new file mode 100644 index 0000000..cebe661 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/imgui_impl_win32.h @@ -0,0 +1,53 @@ +// dear imgui: Platform Backend for Windows (standard windows API for 32-bits AND 64-bits applications) +// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) + +// Implemented features: +// [X] Platform: Clipboard support (for Win32 this is actually part of core dear imgui) +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen. +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy VK_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// [X] Platform: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +IMGUI_IMPL_API bool ImGui_ImplWin32_Init(void* hwnd); +IMGUI_IMPL_API bool ImGui_ImplWin32_InitForOpenGL(void* hwnd); +IMGUI_IMPL_API void ImGui_ImplWin32_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplWin32_NewFrame(); + +// Win32 message handler your application need to call. +// - Intentionally commented out in a '#if 0' block to avoid dragging dependencies on from this helper. +// - You should COPY the line below into your .cpp code to forward declare the function and then you can call it. +// - Call from your application's message handler. Keep calling your message handler unless this function returns TRUE. + +#if 0 +extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); +#endif + +// DPI-related helpers (optional) +// - Use to enable DPI awareness without having to create an application manifest. +// - Your own app may already do this via a manifest or explicit calls. This is mostly useful for our examples/ apps. +// - In theory we could call simple functions from Windows SDK such as SetProcessDPIAware(), SetProcessDpiAwareness(), etc. +// but most of the functions provided by Microsoft require Windows 8.1/10+ SDK at compile time and Windows 8/10+ at runtime, +// neither we want to require the user to have. So we dynamically select and load those functions to avoid dependencies. +IMGUI_IMPL_API void ImGui_ImplWin32_EnableDpiAwareness(); +IMGUI_IMPL_API float ImGui_ImplWin32_GetDpiScaleForHwnd(void* hwnd); // HWND hwnd +IMGUI_IMPL_API float ImGui_ImplWin32_GetDpiScaleForMonitor(void* monitor); // HMONITOR monitor + +// Transparency related helpers (optional) [experimental] +// - Use to enable alpha compositing transparency with the desktop. +// - Use together with e.g. clearing your framebuffer with zero-alpha. +IMGUI_IMPL_API void ImGui_ImplWin32_EnableAlphaCompositing(void* hwnd); // HWND hwnd + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/backends/vulkan/generate_spv.sh b/HexaGen.Tests/cpp2c/imgui/backends/vulkan/generate_spv.sh new file mode 100644 index 0000000..948ef77 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/vulkan/generate_spv.sh @@ -0,0 +1,6 @@ +#!/bin/bash +## -V: create SPIR-V binary +## -x: save binary output as text-based 32-bit hexadecimal numbers +## -o: output file +glslangValidator -V -x -o glsl_shader.frag.u32 glsl_shader.frag +glslangValidator -V -x -o glsl_shader.vert.u32 glsl_shader.vert diff --git a/HexaGen.Tests/cpp2c/imgui/backends/vulkan/glsl_shader.frag b/HexaGen.Tests/cpp2c/imgui/backends/vulkan/glsl_shader.frag new file mode 100644 index 0000000..ce7e6f7 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/vulkan/glsl_shader.frag @@ -0,0 +1,14 @@ +#version 450 core +layout(location = 0) out vec4 fColor; + +layout(set=0, binding=0) uniform sampler2D sTexture; + +layout(location = 0) in struct { + vec4 Color; + vec2 UV; +} In; + +void main() +{ + fColor = In.Color * texture(sTexture, In.UV.st); +} diff --git a/HexaGen.Tests/cpp2c/imgui/backends/vulkan/glsl_shader.vert b/HexaGen.Tests/cpp2c/imgui/backends/vulkan/glsl_shader.vert new file mode 100644 index 0000000..9425365 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/backends/vulkan/glsl_shader.vert @@ -0,0 +1,25 @@ +#version 450 core +layout(location = 0) in vec2 aPos; +layout(location = 1) in vec2 aUV; +layout(location = 2) in vec4 aColor; + +layout(push_constant) uniform uPushConstant { + vec2 uScale; + vec2 uTranslate; +} pc; + +out gl_PerVertex { + vec4 gl_Position; +}; + +layout(location = 0) out struct { + vec4 Color; + vec2 UV; +} Out; + +void main() +{ + Out.Color = aColor; + Out.UV = aUV; + gl_Position = vec4(aPos * pc.uScale + pc.uTranslate, 0, 1); +} diff --git a/HexaGen.Tests/cpp2c/imgui/docs/BACKENDS.md b/HexaGen.Tests/cpp2c/imgui/docs/BACKENDS.md new file mode 100644 index 0000000..e5aa79b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/docs/BACKENDS.md @@ -0,0 +1,146 @@ +_(You may browse this at https://github.com/ocornut/imgui/blob/master/docs/BACKENDS.md or view this file with any Markdown viewer)_ + +## Dear ImGui: Backends + +**The backends/ folder contains backends for popular platforms/graphics API, which you can use in +your application or engine to easily integrate Dear ImGui.** Each backend is typically self-contained in a pair of files: imgui_impl_XXXX.cpp + imgui_impl_XXXX.h. + +- The 'Platform' backends are in charge of: mouse/keyboard/gamepad inputs, cursor shape, timing, and windowing.
+ e.g. Windows ([imgui_impl_win32.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_win32.cpp)), GLFW ([imgui_impl_glfw.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_glfw.cpp)), SDL2 ([imgui_impl_sdl2.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_sdl2.cpp)), etc. + +- The 'Renderer' backends are in charge of: creating atlas texture, and rendering imgui draw data.
+ e.g. DirectX11 ([imgui_impl_dx11.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_dx11.cpp)), OpenGL/WebGL ([imgui_impl_opengl3.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_opengl3.cpp)), Vulkan ([imgui_impl_vulkan.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_vulkan.cpp)), etc. + +- For some high-level frameworks, a single backend usually handles both 'Platform' and 'Renderer' parts.
+ e.g. Allegro 5 ([imgui_impl_allegro5.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_allegro5.cpp)). If you end up creating a custom backend for your engine, you may want to do the same. + +An application usually combines one Platform backend + one Renderer backend + main Dear ImGui sources. +For example, the [example_win32_directx11](https://github.com/ocornut/imgui/tree/master/examples/example_win32_directx11) application combines imgui_impl_win32.cpp + imgui_impl_dx11.cpp. There are 20+ examples in the [examples/](https://github.com/ocornut/imgui/blob/master/examples/) folder. See [EXAMPLES.MD](https://github.com/ocornut/imgui/blob/master/docs/EXAMPLES.md) for details. + +**Once Dear ImGui is setup and running, run and refer to `ImGui::ShowDemoWindow()` in imgui_demo.cpp for usage of the end-user API.** + + +### What are backends? + +Dear ImGui is highly portable and only requires a few things to run and render, typically: + + - Required: providing mouse/keyboard inputs (fed into the `ImGuiIO` structure). + - Required: uploading the font atlas texture into graphics memory. + - Required: rendering indexed textured triangles with a clipping rectangle. + + Extra features are opt-in, our backends try to support as many as possible: + + - Optional: custom texture binding support. + - Optional: clipboard support. + - Optional: gamepad support. + - Optional: mouse cursor shape support. + - Optional: IME support. + - Optional: multi-viewports support. + etc. + +This is essentially what each backend is doing + obligatory portability cruft. Using default backends ensure you can get all those features including the ones that would be harder to implement on your side (e.g. multi-viewports support). + +It is important to understand the difference between the core Dear ImGui library (files in the root folder) +and the backends which we are describing here (backends/ folder). + +- Some issues may only be backend or platform specific. +- You should be able to write backends for pretty much any platform and any 3D graphics API. + e.g. you can get creative and use software rendering or render remotely on a different machine. + + +### Integrating a backend + +See "Getting Started" section of [EXAMPLES.MD](https://github.com/ocornut/imgui/blob/master/docs/EXAMPLES.md) for more details. + + +### List of backends + +In the [backends/](https://github.com/ocornut/imgui/blob/master/backends) folder: + +List of Platforms Backends: + + imgui_impl_android.cpp ; Android native app API + imgui_impl_glfw.cpp ; GLFW (Windows, macOS, Linux, etc.) http://www.glfw.org/ + imgui_impl_osx.mm ; macOS native API (not as feature complete as glfw/sdl backends) + imgui_impl_sdl2.cpp ; SDL2 (Windows, macOS, Linux, iOS, Android) https://www.libsdl.org + imgui_impl_sdl3.cpp ; SDL3 (Windows, macOS, Linux, iOS, Android) https://www.libsdl.org (*EXPERIMENTAL UNTIL SDL3 IS RELEASED*) + imgui_impl_win32.cpp ; Win32 native API (Windows) + imgui_impl_glut.cpp ; GLUT/FreeGLUT (this is prehistoric software and absolutely not recommended today!) + +List of Renderer Backends: + + imgui_impl_dx9.cpp ; DirectX9 + imgui_impl_dx10.cpp ; DirectX10 + imgui_impl_dx11.cpp ; DirectX11 + imgui_impl_dx12.cpp ; DirectX12 + imgui_impl_metal.mm ; Metal (with ObjC) + imgui_impl_opengl2.cpp ; OpenGL 2 (legacy, fixed pipeline <- don't use with modern OpenGL context) + imgui_impl_opengl3.cpp ; OpenGL 3/4, OpenGL ES 2, OpenGL ES 3 (modern programmable pipeline) + imgui_impl_sdlrenderer2.cpp ; SDL_Renderer (optional component of SDL2 available from SDL 2.0.18+) + imgui_impl_sdlrenderer3.cpp ; SDL_Renderer (optional component of SDL3 available from SDL 3.0.0+) + imgui_impl_vulkan.cpp ; Vulkan + imgui_impl_wgpu.cpp ; WebGPU + +List of high-level Frameworks Backends (combining Platform + Renderer): + + imgui_impl_allegro5.cpp + +Emscripten is also supported! +The SDL+GL, GLFW+GL and SDL+WebGPU examples are all ready to build and run with Emscripten. + +### Backends for third-party frameworks, graphics API or other languages + +See https://github.com/ocornut/imgui/wiki/Bindings for the full list (e.g. Adventure Game Studio, Cinder, Cocos2d-x, Game Maker Studio2, Godot, LÖVE+LUA, Magnum, Monogame, Ogre, openFrameworks, OpenSceneGraph, SFML, Sokol, Unity, Unreal Engine and many others). + +### Recommended Backends + +If you are not sure which backend to use, the recommended platform/frameworks for portable applications: + +|Library |Website |Backend |Note | +|--------|--------|--------|-----| +| GLFW | https://github.com/glfw/glfw | imgui_impl_glfw.cpp | | +| SDL2 | https://www.libsdl.org | imgui_impl_sdl2.cpp | | +| Sokol | https://github.com/floooh/sokol | [util/sokol_imgui.h](https://github.com/floooh/sokol/blob/master/util/sokol_imgui.h) | Lower-level than GLFW/SDL | + + +### Using a custom engine? + +You will likely be tempted to start by rewrite your own backend using your own custom/high-level facilities...
+Think twice! + +If you are new to Dear ImGui, first try using the existing backends as-is. +You will save lots of time integrating the library. +You can LATER decide to rewrite yourself a custom backend if you really need to. +In most situations, custom backends have fewer features and more bugs than the standard backends we provide. +If you want portability, you can use multiple backends and choose between them either at compile time +or at runtime. + +**Example A**: your engine is built over Windows + DirectX11 but you have your own high-level rendering +system layered over DirectX11.
+Suggestion: try using imgui_impl_win32.cpp + imgui_impl_dx11.cpp first. +Once it works, if you really need it, you can replace the imgui_impl_dx11.cpp code with a +custom renderer using your own rendering functions, and keep using the standard Win32 code etc. + +**Example B**: your engine runs on Windows, Mac, Linux and uses DirectX11, Metal, and Vulkan respectively.
+Suggestion: use multiple generic backends! +Once it works, if you really need it, you can replace parts of backends with your own abstractions. + +**Example C**: your engine runs on platforms we can't provide public backends for (e.g. PS4/PS5, Switch), +and you have high-level systems everywhere.
+Suggestion: try using a non-portable backend first (e.g. win32 + underlying graphics API) to get +your desktop builds working first. This will get you running faster and get your acquainted with +how Dear ImGui works and is setup. You can then rewrite a custom backend using your own engine API... + +Generally: +It is unlikely you will add value to your project by creating your own backend. + +Also: +The [multi-viewports feature](https://github.com/ocornut/imgui/issues/1542) of the 'docking' branch allows +Dear ImGui windows to be seamlessly detached from the main application window. This is achieved using an +extra layer to the Platform and Renderer backends, which allows Dear ImGui to communicate platform-specific +requests such as: "create an additional OS window", "create a render context", "get the OS position of this +window" etc. See 'ImGuiPlatformIO' for details. +Supporting the multi-viewports feature correctly using 100% of your own abstractions is more difficult +than supporting single-viewport. +If you decide to use unmodified imgui_impl_XXXX.cpp files, you can automatically benefit from +improvements and fixes related to viewports and platform windows without extra work on your side. diff --git a/HexaGen.Tests/cpp2c/imgui/docs/CHANGELOG.txt b/HexaGen.Tests/cpp2c/imgui/docs/CHANGELOG.txt new file mode 100644 index 0000000..56ccd88 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/docs/CHANGELOG.txt @@ -0,0 +1,5652 @@ +dear imgui +CHANGELOG + +This document holds the user-facing changelog that we also use in release notes. +We generally fold multiple commits pertaining to the same topic as a single entry. +Changes to backends are also included within the individual .cpp files of each backend. + +FAQ https://www.dearimgui.com/faq/ +RELEASE NOTES: https://github.com/ocornut/imgui/releases +WIKI https://github.com/ocornut/imgui/wiki +GETTING STARTED https://github.com/ocornut/imgui/wiki/Getting-Started +GLOSSARY https://github.com/ocornut/imgui/wiki/Glossary +ISSUES & SUPPORT https://github.com/ocornut/imgui/issues + +WHEN TO UPDATE? + +- Keeping your copy of Dear ImGui updated regularly is recommended. +- It is generally safe and recommended to sync to the latest commit in 'master' or 'docking' + branches. The library is fairly stable and regressions tends to be fixed fast when reported. + +HOW TO UPDATE? + +- Update submodule or copy/overwrite every file. +- About imconfig.h: + - You may modify your copy of imconfig.h, in this case don't overwrite it. + - or you may locally branch to modify imconfig.h and merge/rebase latest. + - or you may '#define IMGUI_USER_CONFIG "my_config_file.h"' globally from your build system to + specify a custom path for your imconfig.h file and instead not have to modify the default one. +- Read the `Breaking Changes` section (in imgui.cpp or here in the Changelog). +- If you have a problem with a missing function/symbols, search for its name in the code, there will likely be a comment about it. +- If you are copying this repository in your codebase, please leave the demo and documentations files in there, they will be useful. +- You may diff your previous Changelog with the one you just copied and read that diff. +- You may enable `IMGUI_DISABLE_OBSOLETE_FUNCTIONS` in imconfig.h to forcefully disable legacy names and symbols. + Doing it every once in a while is a good way to make sure you are not using obsolete symbols. Dear ImGui is in active development, + and API updates have been a little more frequent lately. They are documented below and in imgui.cpp and should not affect all users. +- Please report any issue! + + +----------------------------------------------------------------------- + VERSION 1.90 WIP (In Progress) +----------------------------------------------------------------------- + +Breaking changes: + + - Debug Tools: Renamed ShowStackToolWindow() ("Stack Tool") to ShowIDStackToolWindow() ("ID Stack Tool"), + as earlier name was misleading. Kept inline redirection function. (#4631) + - IO: Removed io.MetricsActiveAllocations introduced in 1.63, was displayed in Metrics and unlikely to + be accessed by end-user. Value still visible in the UI and easily to recompute from a delta. + - ListBox, Combo: Changed signature of "name getter" callback in old one-liner ListBox()/Combo() apis. + Before: + getter type: bool (*getter)(void* user_data, int idx, const char** out_text) + function: bool Combo(const char* label, int* current_item, bool (*getter)(void* user_data, int idx, const char** out_text), ...); + function: bool ListBox(const char* label, int* current_item, bool (*getting)(void* user_data, int idx, const char** out_text), ...); + After: + getter type: const char* (*getter)(void* user_data, int idx) + function: bool Combo(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), ...); + function: bool ListBox(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), ...); + Old type was unnecessarily complex and harder to wrap in e.g. a lambda. Kept inline redirection function (will obsolete). + - Commented out obsolete redirecting enums/functions that were marked obsolete two years ago: + - GetWindowContentRegionWidth() -> use GetWindowContentRegionMax().x - GetWindowContentRegionMin().x. + Consider that generally 'GetContentRegionAvail().x' is more useful. + - ImDrawCornerFlags_XXX -> use ImDrawFlags_RoundCornersXXX names. + Read 1.82 changelog for details + grep commented names in sources + . + - Commented out runtime support for hardcoded ~0 or 0x01..0x0F rounding flags values for + AddRect()/AddRectFilled()/PathRect()/AddImageRounded(). -> Use ImDrawFlags_RoundCornersXXX flags. + Read 1.82 Changelog for details. + +Other changes: + +- Nav: Tabbing always enable nav highlight when ImGuiConfigFlags_NavEnableKeyboard is set. + Previously was inconsistent and only enabled when stepping through a non-input item. + (#6802, #3092, #5759, #787) +- Windows: + - Popups: clarified meaning of 'p_open != NULL' in BeginPopupModal() + set back user value + to false when popup is closed in ways other than clicking the close button. (#6900) + - Can also auto-resize by double-clicking lower-left resize grip (not only lower-right one). +- Separators: + - Altered end-points to use more standard boundaries. (#205, #4787, #1643) + Left position is always current cursor X position. + Right position is always work-rect rightmost edge. + - Effectively means that: + - A separator in the root of a window will end up a little more distant from edges + than previously (essentially following WindowPadding instead of clipping edges). + - A separator inside a table cell end up a little distance from edges instead of + touching them (essentially following CellPadding instead of clipping edges). + - Matches tree indentation (was not the case before). + - Matches SeparatorText(). (#1643) + - Makes things correct inside groups without specific/hard-coded handling. (#205) + - Mostly legacy behavior when used inside old Columns(), as we favored that idiom back then, + only different is left position follows indentation level, to match calling a Separator() + inside or outside Columns(). +- Tooltips: + - Made using SetItemTooltip()/IsItemHovered(ImGuiHoveredFlags_ForTooltip) defaults to + activate tooltips on disabled items. This is done by adding ImGuiHoveredFlags_AllowWhenDisabled + to the default value of style.HoverFlagsForTooltipMouse/HoverFlagsForTooltipNav. (#1485) + - Made is possible to combine ImGuiHoveredFlags_ForTooltip with a ImGuiHoveredFlags_DelayXXX + override. (#1485) +- Drag and Drop: + - Reworked drop target highlight: reduce rectangle to its visible portion, and + then expand slightly. A full rectangle is always visible and it may protrude slightly. (#4281, #3272) + - Fixed submitting a tooltip from drop target location when using AcceptDragDropPayload() + with ImGuiDragDropFlags_AcceptNoPreviewTooltip and submitting a tooltip manually. +- Tables: + - Added angled headers support. You need to set ImGuiTableColumnFlags_AngledHeader on selected + columns and call TableAngledHeadersRow(). Added style.TableAngledHeadersAngle style option. + - Added ImGuiTableFlags_HighlightHoveredColumn flag, currently highlighting column header. + - Fixed an edge-case when no columns are visible + table scrollbar is visible + user + code is always testing return value of TableSetColumnIndex() to coarse clip. With an active + clipper it would have asserted. Without a clipper, the scrollbar range would be wrong. + - Request user to submit contents when outer host-window is requesting auto-resize, + so a scrolling table can contribute to initial window size. (#6510) + - Fixed subtle drawing overlap between borders in some situations. + - Fixed bottom-most and right-most outer border offset by one. (#6765, #3752) [@v-ein] + - Fixed top-most and left-most outer border overlapping inner clip-rect when scrolling. (#6765) + - Fixed top-most outer border being drawn with both TableBorderLight and TableBorderStrong + in some situations, causing the earlier to be visible underneath when alpha is not 1.0f. + - Fixed right-clicking right-most section (past right-most column) from highlighting a column. + - Fixed an issue with ScrollX enabled where an extraneous draw command would be created. +- Menus: + - Menus: Fixed a bug where activating an item in a child-menu and dragging mouse over the + parent-menu would erroneously close the child-menu. (Regression from 1.88). (#6869) + - MenuBar: Fixed an issue where layouting an item in the menu-bar would erroneously + register contents size in a way that would affect the scrolling layer. + Was most often noticable when using an horizontal scrollbar. (#6789) +- TreeNode: Added ImGuiTreeNodeFlags_SpanAllColumns for use in tables. (#3151, #3565, #2451, #2438) +- TabBar: Fixed position of unsaved document marker (ImGuiTabItemFlags_UnsavedDocument) which was + accidentally offset in 1.89.9. (#6862) [@alektron] +- InputTextMultiline: Fixed a crash pressing Down on last empty line of a multiline buffer. + (regression from 1.89.2, only happened in some states). (#6783, #6000) +- InputTextMultiline: Fixed Tabbing cycle leading to a situation where Enter key wouldn't + be accepted by the widget when navigation highlight is visible. (#6802, #3092, #5759, #787) +- BeginGroup(): Fixed a bug pushing line lower extent too far down when called after a call + to SameLine() followed by manual cursor manipulation. +- BeginCombo(): Added ImGuiComboFlags_WidthFitPreview flag. (#6881) [@mpv-enjoyer] +- BeginListBox(): Fixed not consuming SetNextWindowXXX data when returning false. +- Fonts: + - Arument 'float size_pixels' passed to AddFontXXX() functions is now rounded to lowest integer. + This is because our layout/font system currently doesn't fully support non-integer sizes. Until + it does, this has been a common pitfall leading to more or less subtle issues. (#3164, #3309, #6800) + - Better assert during load when passing truncated font data or wrong data size. (#6822) + - Ensure calling AddFontXXX function doesn't invalidates ImFont's ConfigData pointers + prior to building again. (#6825) + - imgui_freetype: Fixed a warning and leak in IMGUI_ENABLE_FREETYPE_LUNASVG support. (#6842, #6591) +- Misc: Most text functions also treat "%.*s" (along with "%s") specially to avoid formatting. (#3466, #6846) +- IO: Add extra keys to ImGuiKey enum: ImGuiKey_F13 to ImGuiKey_F24. (#6891, #4921) +- IO: Add extra keys to ImGuiKey enum: ImGuiKey_AppBack, ImGuiKey_AppForward. (#4921) +- IO: Setting io.WantSetMousePos ignores incoming MousePos events. (#6837, #228) [@bertaye] +- Debug Tools: Metrics: Added log of recent alloc/free calls. +- Debug Tools: Metrics: Added "Show groups rectangles" in tools. +- ImDrawList: Added AddEllipse(), AddEllipseFilled(), PathEllipticalArcTo(). (#2743) [@Doohl] +- ImVector: Added find_index() helper. +- Demo: Added "Drag and Drop -> Tooltip at target location" demo. +- Backends: GLFW: Clear emscripten's MouseWheel callback before shutdown. (#6790, #6096, #4019) [@halx99] +- Backends: GLFW: Added support for F13 to F24 function keys. (#6891) +- Backends: SDL2, SDL3: Added support for F13 to F24 function keys, AppBack, AppForward. (#6891) +- Backends: Win32: Added support for F13 to F24 function keys, AppBack, AppForward. (#6891) +- Backends: Win32: Added support for keyboard codepage conversion for when application + is compiled in MBCS mode and using a non-Unicode window. (#6785, #6782, #5725, #5961) [@sneakyevil] +- Backends: Win32: Synthesize key-down event on key-up for VK_SNAPSHOT / ImGuiKey_PrintScreen as Windows + doesn't emit it (same behavior as GLFW/SDL). (#6859) [@thedmd, @SuperWangKai] +- Backends: OpenGL3: rename symbols in our internal loader so that LTO compilation with another + copy of gl3w becomes possible. (#6875, #6668, #4445) [@nicolasnoble] +- Backends: OSX: Added support for F13 to F20 function keys. Support mapping F13 to PrintScreen. (#6891) +- Internals: Renamed ImFloor() to ImTrunc(). Renamed ImFloorSigned() to ImFloor(). (#6861) + +Docking+Viewports Branch: + +- Viewports: Fixed window inner clipping rectangle off by one when window is located on a monitor + with negative coordinates. While it is expected that other small issues with arise from this + situation, at the moment we are fixing the most noticeable one. (#6861, #2884) [@Vuhdo, @alektron] +- Docking: revised undocking to reduce accidental whole-node undocking: + - cannot undock a whole node by dragging from empty space in tab-bar. + - can undock whole node by dragging from window/collapse menu button. + - can undock single window by dragging from its tab. + - can still move (but not undock) whole node or whole hierarchy when node is part of a + floating hierarchy. + - added tooltip when hovering the collapse/window menu button, to faciliate understanding + that whole dock node may be undocked or grabbed from here. +- Docking: Fixed an issue leading to incorrect restoration of selected tab in dock nodes that + don't carry the currently focused window. (#2304) +- Docking: added ImGuiDockNodeFlags_NoUndocking. (#2999, #6823, #6780, #3492) +- Docking: renamed ImGuiDockNodeFlags_NoSplit to ImGuiDockNodeFlags_NoDockingSplit. +- Docking: renamed ImGuiDockNodeFlags_NoDockingInCentralNode to ImGuiDockNodeFlags_NoDockingOverCentralNode. +- Docking: Internals: renamed ImGuiDockNodeFlags_NoDockingSplitMe to ImGuiDockNodeFlags_NoDockingSplit. +- Docking: Fixed a bug where ClassId compare tests (when using SetNextWindowClass) on success would + prevent further filter from running, namely the one that prevent docking over a popup. +- Backends: GLFW: Fixed an assertion in situation where the WndProc handler is different between + main and secondary viewport (may happen due to third-party hooks). (#6889) +- Backends: DX9: Fixed incorrect assert triggering on reopening session with minimized windows. (#3424) + + +----------------------------------------------------------------------- + VERSION 1.89.9 (Released 2023-09-04) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.9 + +Breaking changes: + +- Clipper: Renamed IncludeRangeByIndices(), also called ForceDisplayRangeByIndices() + before 1.89.6, to IncludeItemsByIndex(). Kept inline redirection function. (#6424, #3841) + +Other changes: + +- Tables: Made it possible to use SameLine(0,0) after TableNextColumn() or + TableSetColumnIndex() in order to reuse line pos/height from previous cell. (#3740) +- Tables: Made it possible to change style.CellPadding.y between rows. (#3740) +- Nav, TreeNode: Pressing Left with ImGuiTreeNodeFlags_NavLeftJumpsBackHere now goes + through proper navigation logic: honor scrolling and selection. (#1079, #1131) +- Sliders: Fixed an integer overflow and div-by-zero in SliderInt() when + v_max=INT_MAX (#6675, #6679) [@jbarthelmes] +- Windows: Layout of Close/Collapse buttons uses style.ItemInnerSpacing.x between items, + stopped incorrectly using FramePadding in a way where hit-boxes could overlap when + setting large values. (#6749) +- TabBar, Style: added style.TabBarBorderSize and associated ImGuiStyleVar_TabBarBorderSize. + Tweaked rendering of that separator to allow thicker values. (#6820, #4859, #5022, #5239) +- InputFloat, SliderFloat, DragFloat: always turn both '.' and ',' into the current decimal + point character when using Decimal/Scientific character filter. (#6719, #2278) [@adamsepp] +- ColorEdit, ColorPicker: Manipulating options popup don't mark item as edited. (#6722) + (Note that they may still be marked as Active/Hovered.) +- Clipper: Added IncludeItemByIndex() helper to include a single item. (#6424, #3841) +- Clipper: Fixed a bug if attempt to force-include a range which matches an already + included range, clipper would end earlier. (#3841) +- ImDrawData: Fixed an issue where TotalVtxCount/TotalIdxCount does not match the sum + of individual ImDrawList's buffer sizes when a dimming/modal background is rendered. (#6716) +- ImDrawList: Automatically calling ChannelsMerge() if not done after a split. +- ImDrawList: Fixed OOB access in _CalcCircleAutoSegmentCount when passing excessively + large radius to AddCircle(). (#6657, #5317) [@EggsyCRO, @jdpatdiscord] +- IO: Exposed io.PlatformLocaleDecimalPoint to configure decimal point ('.' or ',') for + languages needing it. Should ideally be set to the value of '*localeconv()->decimal_point' + but our backends don't do it yet. (#6719, #2278) +- IO: Fixed io.AddMousePosEvent() and io.AddMouseButtonEvent() writing MouseSource to + wrong union section. Was semantically incorrect and accidentally had no side-effects + with default compiler alignment settings. (#6727) [@RickHuang2001] +- Misc: Made multiple calls to Render() during the same frame early out faster. +- Debug Tools: Metrics: Fixed "Drawlists" section and per-viewport equivalent + appearing empty (regression in 1.89.8). +- Demo: Reorganized "Examples" menu. +- Demo: Tables: Demonstrate using SameLine() between cells. (#3740) +- Demo: Tables: Demonstrate altering CellPadding.y between rows. (#3740) +- Demo: Custom Rendering: Demonstrate out-of-order rendering using ImDrawListSplitter. +- Backends: SDL2,SDL3: added ImGui_ImplSDL2_InitForOther()/ImGui_ImplSDL3_InitForOther() + for consistency (matching GLFW backend) and as most initialization paths don't actually + need to care about rendering backend. +- Examples: Emscripten+WebGPU: Fixed WGPUInstance creation process + use preferred + framebuffer format. (#6640, #6748) [@smileorigin] + +Docking+Viewports Branch: + +- Docking: when io.ConfigDockingWithShift is enabled, staying stationary while moving + a window displays an help tooltip to increase affordance. (#6709, #4643) + + +----------------------------------------------------------------------- + VERSION 1.89.8 (Released 2023-08-01) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.8 + +Breaking changes: + +- IO: Obsoleted io.ClearInputCharacters() (added in 1.47) as it now ambiguous + and often incorrect/misleading considering the existence of a higher-level + input queue. This is automatically cleared by io.ClearInputsKeys(). (#4921) +- ImDrawData: CmdLists[] array is now owned, changed from 'ImDrawList**' to + 'ImVector'. Majority of users shouldn't be affected, but you + cannot compare to NULL nor reassign manually anymore. + Instead use AddDrawList(). Allocation count are identical. (#6406, #4879, #1878) + +Other changes: + +- Fonts: ImFontConfig::OversampleH now defaults to 2 instead of 3, since the + quality increase is largely minimal. +- Fonts, imgui_freetype: Added support to render OpenType SVG fonts using lunasvg. + Requires enabling IMGUI_ENABLE_FREETYPE_LUNASVG along with IMGUI_ENABLE_FREETYPE, + and providing headers/libraries for lunasvg. (#6591, #6607) [@sakiodre] +- ImDrawData: CmdLists[] array is now an ImVector<> owned by ImDrawData rather + than a pointer to internal state. + - This makes it easier for user to create their own or append to an existing draw data. + Added a ImDrawData::AddDrawList() helper function to do that. (#6406, #4879, #1878) + - This makes it easier to perform a deep-swap instead of a deep-copy, as array + ownership is now clear. (#6597, #6475, #6167, #5776, #5109, #4763, #3515, #1860) + - Syntax and allocation count are otherwise identical. +- Fixed CTRL+Tab dimming background assert when target window has a callback + in the last ImDrawCmd. (#4857, #5937) +- IsItemHovered: Fixed ImGuiHoveredFlags_ForTooltip for Keyboard/Gamepad navigation, + got broken prior to 1.89.7 due to an unrelated change making flags conflict. (#6622, #1485) +- InputText: Fixed a case where deactivation frame would write to underlying + buffer or call CallbackResize although unnecessary, in a frame where the + return value was false. +- Tables: fixed GetContentRegionAvail().y report not taking account of lower cell + padding or of using ImGuiTableFlags_NoHostExtendY. Not taking it into account + would make the idiom of creating vertically bottom-aligned content (e.g. a child + window) inside a table make the parent window erroneously have a scrollbar. (#6619) +- Tables: fixed calculation of multi-instance shared decoration/scrollbar width of + scrolling tables, to avoid flickering width variation when resizing down a table + hosting a child window. (#5920, #6619) +- Scrollbar: layout needs to take account of window border size, so a border size + will slightly reduce scrollbar size. Generally we tried to make it that window + border size has no incidence on layout but this can't work with thick borders. (#2522) +- IO: Added io.ClearEventsQueue() to clear incoming inputs events. (#4921) + May be useful in conjunction with io.ClearInputsKeys() if you need to clear + both current inputs state and queued events (e.g. when using blocking native + dialogs such as Windows's ::MessageBox() or ::GetOpenFileName()). +- IO: Changed io.ClearInputsKeys() specs to also clear current frame character buffer + (what now obsoleted io.ClearInputCharacters() did), as this is effectively the + desirable behavior. +- Misc: Added IMGUI_DISABLE_STB_SPRINTF_IMPLEMENTATION config macro to disable + stb_sprintf implementation when using IMGUI_USE_STB_SPRINTF. (#6626) [@septag] +- Misc: Avoid stb_textedit.h reincluding string.h while in a namespace, which + messes up with building with Clang Modules. (#6653, #4791) [@JohelEGP] +- Demo: Better showcase use of SetNextItemAllowOverlap(). (#6574, #6512, #3909, #517) +- Demo: Showcase a few more InputText() flags. +- Backends: Made all backends sources files support global IMGUI_DISABLE. (#6601) +- Backends: GLFW: Revert ignoring mouse data on GLFW_CURSOR_DISABLED as it can be used + differently. User may set ImGuiConfigFlags_NoMouse if desired. (#5625, #6609) [@scorpion-26] +- Backends: WebGPU: Update for changes in Dawn. (#6602, #6188) [@williamhCode] +- Examples: Vulkan: Creating minimal descriptor pools to fit only what is needed by + example. (#6642) [@SaschaWillem] + +Docking+Viewports Branch: + +- Docking, Style: resizing separators use same colors as window borders (ImGuiCol_Border) + for consistency. With default styles it doesn't make a big difference. (#2522) [@rmitton] + In the future if we promote using thick value for inner/outer docking padding we may + need to introduce new colors for it. +- Docking: added style.DockingSeparatorSize, ImGuiStyleVar_DockingSeparatorSize. Now + also scaled by style.ScaleAllSizes(). (#3481, #4721, #2522) [@PossiblyAShrub, @wobbier] +- Docking: fixed rendering of docked-window scrollbar above outer border. (#2522) + + +----------------------------------------------------------------------- + VERSION 1.89.7 (Released 2023-07-04) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.7 + +Breaking changes: + +- Moved io.HoverDelayShort/io.HoverDelayNormal to style.HoverDelayShort/style.HoverDelayNormal. + As the fields were added in 1.89 and expected to be left unchanged by most users, or only + tweaked once during app initialisation, we are exceptionally accepting the breakage. + Majority of users should not even notice. +- Overlapping items: (#6512, #3909, #517) + - Added 'SetNextItemAllowOverlap()' (called before an item) as a replacement for using + 'SetItemAllowOverlap()' (called after an item). This is roughly equivalent to using the + legacy 'SetItemAllowOverlap()' call (public API) + ImGuiButtonFlags_AllowOverlap (internal). + - Obsoleted 'SetItemAllowOverlap()': it didn't and couldn't work reliably since 1.89 (2022-11-15), + and relied on ambiguously defined design. Use 'SetNextItemAllowOverlap()' before item instead. + - Selectable, TreeNode: When using ImGuiSelectableFlags_AllowOverlap/ImGuiTreeNodeFlags_AllowOverlap + and holding item held, overlapping widgets won't appear as hovered. (#6512, #3909) + While this fixes a common small visual issue, it also means that calling IsItemHovered() + after a non-reactive elements - e.g. Text() - overlapping an active one may fail if you don't + use IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem). (#6610) + - Renamed 'ImGuiTreeNodeFlags_AllowItemOverlap' to 'ImGuiTreeNodeFlags_AllowOverlap'. + - Renamed 'ImGuiSelectableFlags_AllowItemOverlap' to 'ImGuiSelectableFlags_AllowOverlap' + - Kept redirecting enums (will obsolete). + +Other changes: + +- Tooltips/IsItemHovered() related changes: + - Tooltips: Added SetItemTooltip() and BeginItemTooltip() functions. + They are shortcuts for the common idiom of using IsItemHovered(). + - SetItemTooltip("Hello") == if (IsItemHovered(ImGuiHoveredFlags_Tooltip)) { SetTooltip("Hello"); } + - BeginItemTooltip() == IsItemHovered(ImGuiHoveredFlags_Tooltip) && BeginTooltip() + The newly added ImGuiHoveredFlags_Tooltip is meant to facilitate standardizing + mouse hovering delays and rules for a given application. + The previously common idiom of using 'if (IsItemHovered()) { SetTooltip(...); }' + won't use delay or stationary test. + - IsItemHovered: Added ImGuiHoveredFlags_Stationary to require mouse being + stationary when hovering a new item. Added style.HoverStationaryDelay (~0.15 sec). + Once the mouse has been stationary once the state is preserved for same item. (#1485) + - IsItemHovered: Added ImGuiHoveredFlags_ForTooltip as a shortcut for pulling flags + from style.HoverFlagsForTooltipMouse or style.HoverFlagsForTooltipNav depending + on active inputs (#1485) + - style.HoverFlagsForTooltipMouse defaults to 'ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort' + - style.HoverFlagsForTooltipNav defaults to 'ImGuiHoveredFlags_NoSharedDelay | ImGuiHoveredFlags_DelayNormal'. + - Tooltips: Tweak default offset for non-drag and drop tooltips so underlying items + isn't covered as much. (Match offset for drag and drop tooltips) + - IsItemHovered: Tweaked default value of style.HoverDelayNormal from 0.30 to 0.40, + Tweaked default value of style.HoverDelayShort from 0.10 to 0.15. (#1485) + - IsItemHovered: Added ImGuiHoveredFlags_AllowWhenOverlappedByWindow to ignore window-overlap only. + Option ImGuiHoveredFlags_AllowWhenOverlapped now expand into a combination of both + _AllowWhenOverlappedByWindow + _AllowWhenOverlappedByItem, matching old behavior. +- Overlapping items: (#6512, #3909, #517) + - Most item types should now work with SetNextItemAllowOverlap(). (#6512, #3909, #517) + - Fixed first frame of an overlap highlighting underlying item if previous frame didn't hover anything. + - IsItemHovered: Changed to return false when querying an item using AllowOverlap mode which + is being overlapped. Added ImGuiHoveredFlags_AllowWhenOverlappedByItem to opt-out. (#6512, #3909, #517) +- IsWindowHovered: Added support for ImGuiHoveredFlags_Stationary. +- IsWindowHovered, IsItemHovered: Assert when passed any unsupported flags. +- Tables: Fixed a regression in 1.89.6 leading to the first column of tables with either + ScrollX or ScrollY flags from being impossible to resize. (#6503) +- CollapsingHeader/TreeNode: Fixed text padding when using _Framed+_Leaf flags. (#6549) [@BobbyAnguelov] +- InputText: Fixed not returning true when buffer is cleared while using the + ImGuiInputTextFlags_EscapeClearsAll flag. (#5688, #2620) +- InputText: Fixed a crash on deactivating a ReadOnly buffer. (#6570, #6292, #4714) +- InputText: ImGuiInputTextCallbackData::InsertChars() accept (NULL,NULL) range, in order to conform + to common idioms (e.g. passing .data(), .data() + .size() from a null string). (#6565, #6566, #3615) +- Combo: Made simple/legacy Combo() function not returns true when picking already selected item. + This is consistent with other widgets. If you need something else, you can use BeginCombo(). (#1182) +- Clipper: Rework inner logic to allow functioning with a zero-clear constructor. + This is order to facilitate usage for language bindings (e.g cimgui or dear_binding) + where user may not be calling a constructor manually. (#5856) +- Drag and Drop: Apply default behavior of drag source not reporting itself as hovered + at lower-level, so DragXXX, SliderXXX, InputXXX, Plot widgets are fulfilling it. + (Behavior doesn't apply when ImGuiDragDropFlags_SourceNoDisableHover is set). +- Modals: In the case of nested modal, made sure that focused or appearing windows are + moved below the lowest blocking modal (rather than the highest one). (#4317) +- GetKeyName(): Fixed assert with ImGuiMod_XXX values when IMGUI_DISABLE_OBSOLETE_KEYIO is set. +- Debug Tools: Added 'io.ConfigDebugIniSettings' option to save .ini data with extra + comments. Currently mainly for inspecting Docking .ini data, but makes saving slower. +- Demo: Added more developed "Widgets->Tooltips" section. (#1485) +- Backends: OpenGL3: Fixed support for glBindSampler() backup/restore on ES3. (#6375, #6508) [@jsm174] +- Backends: OpenGL3: Fixed erroneous use glGetIntegerv(GL_CONTEXT_PROFILE_MASK) on contexts + lower than 3.2. (#6539, #6333) [@krumelmonster] +- Backends: Vulkan: Added optional support for VK_KHR_dynamic_rendering (Vulkan 1.3+) in the + backend for applications using it. User needs to set 'init_info->UseDynamicRendering = true' + and 'init_info->ColorAttachmentFormat'. RenderPass becomes unused. (#5446, #5037) [@spnda, @cmarcelo] +- Backends: GLFW: Accept glfwGetTime() not returning a monotonically increasing value. + This seems to happens on some Windows setup when peripherals disconnect, and is likely + to also happen on browser+Emscripten. Matches similar 1.89.4 fix in SDL backend. (#6491) +- Examples: Win32+OpenGL3: Changed DefWindowProc() to DefWindowProcW() to match other examples + and support the example app being compiled without UNICODE. (#6516, #5725, #5961, #5975) [@yenixing] + +Docking+Viewports Branch: + +- Viewports+Docking: Fixed extraneous viewport+platform-window recreation in various + combination of showing or hiding windows, docking with/without split, undocking. + While with some backends and without OS decorations, some extraneous window recreation + were visibly not noticeable, they would typically become noticeable when enabling + OS decorations on those windows (e.g. Windows title bar fade-in/animation). +- Viewports: Closing a viewport via OS/platform means (e.g. OS close button or task-bar menu), + mark all windows in this viewport as closed. +- Docking: Fixed one-frame flickering on reappearing windows binding to a dock node + where a later-submitted window was already bound. +- Docking: Fixed dragging from title-bar empty space (regression from 1.88 related to + keeping ID alive when calling low-level ButtonBehavior() directly). (#5181, #2645) +- Docking: [Internal] DockBuilderDockWindow() API calls don't clear docking order + if the target node is same as existing one. +- Backends: Win32: Added support for changing ParentViewportID after viewport creation. + + +----------------------------------------------------------------------- + VERSION 1.89.6 (Released 2023-05-31) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.6 + +Breaking changes: + +- Clipper: Commented out obsolete redirection constructor which was marked obsolete in 1.79: + 'ImGuiListClipper(int items_count, float items_height)' --> Use 'ImGuiListClipper() + clipper.Begin()'. +- Clipper: Renamed ForceDisplayRangeByIndices() to IncludeRangeByIndices(), kept + inline redirection function (introduced in 1.86 and rarely used). (#6424, #3841) +- Commented out obsolete/redirecting functions that were marked obsolete more than two years ago: + - ListBoxHeader() -> use BeginListBox() + - ListBoxFooter() -> use EndListBox() + - Note how two variants of ListBoxHeader() existed. Check commented versions in imgui.h for refeence. +- Backends: SDL_Renderer: Renamed 'imgui_impl_sdlrenderer.h/cpp' to 'imgui_impl_sdlrenderer2.h/cpp', + in order to accomodate for upcoming SDL3 and change in its SDL_Renderer API. (#6286) +- Backends: GLUT: Removed call to ImGui::NewFrame() from ImGui_ImplGLUT_NewFrame(). + It needs to be called from the main app loop, like with every other backends. (#6337) [@GereonV] + +Other changes: + +- Window: Fixed resizing from upper border when io.ConfigWindowsMoveFromTitleBarOnly is set. (#6390) +- Tables: Fixed a small miscalculation in TableHeader() leading to an empty tooltip + showing when a sorting column has no visible name. (#6342) [@lukaasm] +- Tables: Fixed command merging when compiling with VS2013 (one array on stack was not + initialized on VS2013. Unsure if due to a bug or UB/standard conformance). (#6377) +- InputText: Avoid setting io.WantTextInputNextFrame during the deactivation frame. + (#6341) [@lukaasm] +- Drag, Sliders: if the format string doesn't contain any %, CTRL+Click to input text will + use the default format specifier for the type. Allow display/input of raw value when using + "enums" patterns (display label instead of value) + allow using when value is hidden. (#6405) +- Nav: Record/restore preferred position on each given axis after a movement on that axis, + then score movement on the other axis using this as a bias. This allows going up and down + between e.g. a large header spanning horizontal space and three-ways-columns, landing + on the same column as before. +- Nav: Fixed navigation within tables/columns where item boundaries goes beyond columns limits, + unclipped bounding boxes would interfere with other columns. (#2221) [@zzzyap, @ocornut] +- Nav: Fixed CTRL+Tab into a root window with only childs with _NavFlattened flags + erroneously initializing default nav layer to menu layer. +- Menus: Fixed an issue when opening a menu hierarchy in a given menu-bar would allow + opening another via simple hovering. (#3496, #4797) +- Fonts: Fixed crash when merging fonts and the first font has no valid glyph. (#6446) [@JaedanC] +- Fonts: Fixed crash when manually specifying an EllipsisChar that doesn't exist. (#6480) +- Misc: Added ImVec2 unary minus operator. (#6368) [@Koostosh] +- Debug Tools: Debug Log: Fixed not parsing 0xXXXXXXXX values for geo-locating on mouse + hover hover when the identifier is at the end of the line. (#5855) +- Debug Tools: Added 'io.ConfigDebugIgnoreFocusLoss' option to disable 'io.AddFocusEvent(false)' + handling. May facilitate interactions with a debugger when focus loss leads to clearing + inputs data. (#4388, #4921) +- Backends: Clear bits sets io.BackendFlags on backend Shutdown(). (#6334, #6335] [@GereonV] + Potentially this would facilitate switching runtime backend mid-session. +- Backends: Win32: Added ImGui_ImplWin32_InitForOpenGL() to facilitate combining raw + Win32/Winapi with OpenGL. (#3218) +- Backends: OpenGL3: Restore front and back polygon mode separately when supported + by context (Desktop 3.0, 3.1, or 3.2+ with compat bit). (#6333) [@GereonV] +- Backends: OpenGL3: Support for glBindSampler() backup/restore on ES3. (#6375) [@jsm174] +- Backends: SDL3: Fixed build on Emscripten/iOS/Android. (#6391) [@jo-codegirl] +- Backends: SDLRenderer3: Added SDL_Renderer for SDL3 backend. (#6286) [@Carcons, @ocornut] +- Examples: Added native Win32+OpenGL3 example. We don't recommend using this setup but we + provide it for completeness. (#3218, #5170, #6086, #2772, #2600, #2359, #2022, #1553) [@learn-more] +- Examples: Vulkan: Use integrated GPU if nothing else is available. (#6359) [@kimidaisuki22] +- Examples: DX9, DX10, DX11: Queue framebuffer resize instead of processing in WM_SIZE, + as some drivers tends to only cleanup after existing the native resize modal loop. (#6374) +- Examples: Added SDL3+SDL_Renderer example. (#6286) +- Examples: Updated all Visual Studio projects and batches to use /utf-8 argument. + +Docking+Viewports Branch: + +- Viewports: Fixed platform-side focus (e.g. Alt+Tab) from leading to accidental + closure of Modal windows. Regression from 1.89.5. (#6357, #6299) +- Viewports: Fixed loss of imgui-side focus when dragging a secondary viewport back in + main viewport, due to platform-side handling changes. Regression from 1.89.5 (#6299) +- Viewports: Avoid applying imgui-side focus when focus change is due to a viewport + destruction. Fixes erroneous popup closure on closing a previous popup. (#6462, #6299) +- Viewports: Added void* ImGuiPlatformMonitor::PlatformHandle field (backend-dependant), + for usage by user code. +- Backends: GLFW: Preserve monitor list when there are no monitor, may briefly + happen when recovering from macOS sleeping mode. (#5683) [@Guistac] +- Backends: SDL2: Update monitor list when receiving a display event. (#6348) + Note however that SDL2 currently doesn't have an event for a DPI/Scaling change, + so monitor data won't be updated in this situation. +- Backends: SDL3: Update monitor list when receiving a display event. (#6348) + + +----------------------------------------------------------------------- + VERSION 1.89.5 (Released 2023-04-13) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.5 + +Other changes: + +- InputText: Reworked prev/next-word behavior to more closely match Visual Studio + text editor. Include '.' as a delimiter and alter varying subtle behavior with how + blanks and separators are treated when skipping words. (#6067) [@ajweeks] +- InputText: Fixed a tricky edge case, ensuring value is always written back on the + frame where IsItemDeactivated() returns true, in order to allow usage without user + retaining underlying data. While we don't really want to encourage user not retaining + underlying data, in the absence of a "late commit" behavior/flag we understand it may + be desirable to take advantage of this trick. (#4714) +- Drag, Sliders: Fixed parsing of text input when '+' or '#' format flags are used + in the format string. (#6259) [@idbrii] +- Nav: Made Ctrl+Tab/Ctrl+Shift+Tab windowing register ownership to held modifier so + it doesn't interfere with other code when remapping those actions. (#4828, #3255, #5641) +- Nav: Made PageUp/PageDown/Home/End navigation also scroll parent windows when + necessary to make the target location fully visible (same as e.g. arrow keys). +- ColorEdit: Fixed shading of S/V triangle in Hue Wheel mode. (#5200, #6254) [@jamesthomasgriffin] +- TabBar: Tab-bars with ImGuiTabBarFlags_FittingPolicyScroll can be scrolled with + horizontal mouse-wheel (or Shift + WheelY). (#2702) +- Rendering: Using adaptive tessellation for RadioButton, ColorEdit preview circles, + Windows Close and Collapse Buttons. +- ButtonBehavior: Fixed an edge case where changing widget type/behavior while active + and using same id could lead to an assert. (#6304) +- Misc: Fixed ImVec2 operator[] violating aliasing rules causing issue with Intel C++ + compiler. (#6272) [@BayesBug] +- IO: Input queue trickling adjustment for touch screens. (#2702, #4921) + This fixes single-tapping to move simulated mouse and immediately click on a widget + that is using the ImGuiButtonFlags_AllowItemOverlap policy. + - This only works if the backend can distinguish TouchScreen vs Mouse. + See 'Demo->Tools->Metrics->Inputs->Mouse Source' to verify. + - Fixed tapping on BeginTabItem() on a touch-screen. (#2702) + - Fixed tapping on CollapsingHeader() with a close button on a touch-screen. + - Fixed tapping on TreeNode() using ImGuiTreeNodeFlags_AllowItemOverlap on a touch-screen. + - Fixed tapping on Selectable() using ImGuiSelectableFlags_AllowItemOverlap on a touch-screen. + - Fixed tapping on TableHeader() on a touch-screen. +- IO: Added io.AddMouseSourceEvent() and ImGuiMouseSource enum. This is to allow backend to + specify actual event source between Mouse/TouchScreen/Pen. (#2702, #2334, #2372, #3453, #5693) +- IO: Fixed support for calling io.AddXXXX functions from inactive context (wrongly + advertised as supported in 1.89.4). (#6199, #6256, #5856) [@cfillion] +- Backends: OpenGL3: Fixed GL loader crash when GL_VERSION returns NULL. (#6154, #4445, #3530) +- Backends: OpenGL3: Properly restoring "no shader program bound" if it was the case prior to + running the rendering function. (#6267, #6220, #6224) [@BrunoLevy] +- Backends: Win32: Added support for io.AddMouseSourceEvent() to discriminate Mouse/TouchScreen/Pen. (#2334, #2702) +- Backends: SDL2/SDL3: Added support for io.AddMouseSourceEvent() to discriminate Mouse/TouchScreen. + This is relying on SDL passing SDL_TOUCH_MOUSEID in the event's 'which' field. (#2334, #2702) +- Backends: SDL2/SDL3: Avoid calling SDL_StartTextInput()/SDL_StopTextInput() as they actually + block text input input and don't only pertain to IME. It's unclear exactly what their relation + is to other IME function such as SDL_SetTextInputRect(). (#6306, #6071, #1953) +- Backends: GLFW: Added support on Win32 only for io.AddMouseSourceEvent() to discriminate + Mouse/TouchScreen/Pen. (#2334, #2702) +- Backends: Android: Added support for io.AddMouseSourceEvent() to discriminate Mouse/TouchScreen/Pen. + (#6315) [@PathogenDavid] +- Backends: OSX: Added support for io.AddMouseSourceEvent() to discriminate Mouse/Pen. + (#6314) [@PathogenDavid] +- Backends: WebGPU: Align buffers. Use WGSL shaders instead of SPIR-V. Add gamma uniform. (#6188) [@eliemichel] +- Backends: WebGPU: Reorganized to store data in io.BackendRendererUserData like other backends. +- Examples: Vulkan: Fixed validation errors with newer VulkanSDK by explicitly querying and enabling + "VK_KHR_get_physical_device_properties2", "VK_KHR_portability_enumeration", and + VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR. (#6109, #6172, #6101) +- Examples: Windows: Added 'misc/debuggers/imgui.natstepfilter' file to all Visual Studio projects, + now that VS 2022 17.6 Preview 2 support adding Debug Step Filter spec files into projects. +- Examples: SDL3: Updated for latest WIP SDL3 branch. (#6243) +- TestSuite: Added variety of new regression tests and improved/amended existing ones + in imgui_test_engine/ repo. [@PathogenDavid, @ocornut] + +Docking+Viewports Branch: + +- Viewports: Setting focus from Platform/OS (e.g. via decoration, or Alt-Tab) sets corresponding + focus at Dear ImGui level (generally last focused window in the viewport). (#6299) +- Docking: Fixed using GetItemXXX() or IsItemXXX() functions after a DockSpace(). (#6217) +- Backends: GLFW: Fixed key modifiers handling on secondary viewports. (#6248, #6034) [@aiekick] +- Backends: GLFW: Fixed Emscripten erroneously enabling multi-viewport support, leading to assert. (#5683) +- Backends: SDL2/SDL3: Fixed IME text input rectangle position with viewports. (#6071, #1953) +- Backends: SDL3: Fixed for compilation with multi-viewports. (#6255) [@P3RK4N] + + +----------------------------------------------------------------------- + VERSION 1.89.4 (Released 2023-03-14) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.4 + +Breaking Changes: + +- Renamed PushAllowKeyboardFocus()/PopAllowKeyboardFocus() to PushTabStop()/PopTabStop(). + Kept inline redirection functions (will obsolete). +- Moved the optional "courtesy maths operators" implementation from imgui_internal.h in imgui.h. + Even though we encourage using your own maths types and operators by setting up IM_VEC2_CLASS_EXTRA, + it has been frequently requested by people to use our own. We had an opt-in define which was + previously fulfilled by imgui_internal.h. It is now fulfilled by imgui.h. (#6164, #6137, #5966, #2832) + OK: #define IMGUI_DEFINE_MATH_OPERATORS / #include "imgui.h" / #include "imgui_internal.h" + Error: #include "imgui.h" / #define IMGUI_DEFINE_MATH_OPERATORS / #include "imgui_internal.h" + Added a dedicated compile-time check message to help diagnose this. +- Tooltips: Added 'bool' return value to BeginTooltip() for API consistency. + Please only submit contents and call EndTooltip() if BeginTooltip() returns true. + In reality the function will _currently_ always return true, but further changes down the + line may change this, best to clarify API sooner. Updated demo code accordingly. +- Commented out redirecting enums/functions names that were marked obsolete two years ago: + - ImGuiSliderFlags_ClampOnInput -> use ImGuiSliderFlags_AlwaysClamp + - ImGuiInputTextFlags_AlwaysInsertMode -> use ImGuiInputTextFlags_AlwaysOverwrite + - ImDrawList::AddBezierCurve() -> use ImDrawList::AddBezierCubic() + - ImDrawList::PathBezierCurveTo() -> use ImDrawList::PathBezierCubicCurveTo() + +Other changes: + +- Nav: Tabbing now cycles through all items when ImGuiConfigFlags_NavEnableKeyboard is set. + (#3092, #5759, #787) + While this was generally desired and requested by many, note that its addition means + that some types of UI may become more fastidious to use TAB key with, if the navigation + cursor cycles through too many items. You can mark items items as not tab-spottable: + - Public API: PushTabStop(false) / PopTabStop() + - Internal: PushItemFlag(ImGuiItemFlags_NoTabStop, true); + - Internal: Directly pass ImGuiItemFlags_NoTabStop to ItemAdd() for custom widgets. +- Nav: Tabbing/Shift-Tabbing can more reliably be used to step out of an item that is not + tab-stoppable. (#3092, #5759, #787) +- Nav: Made Enter key submit the same type of Activation event as Space key, + allowing to press buttons with Enter. (#5606) + (Enter emulates a "prefer text input" activation vs. + Space emulates a "prefer tweak" activation which is to closer to gamepad controls). +- Nav: Fixed an issue with Gamepad navigation when the movement lead to a scroll and + frame time > repeat rate. Triggering a new move request on the same frame as a move + result lead to an incorrect calculation and loss of navigation id. (#6171) +- Nav: Fixed SetItemDefaultFocus() from not scrolling when item is partially visible. + (#2814, #2812) [@DomGries] +- Tables: Fixed an issue where user's Y cursor movement within a hidden column would + have side-effects. +- IO: Lifted constraint to call io.AddEventXXX functions from current context. (#4921, #5856, #6199) +- InputText: Fixed not being able to use CTRL+Tab while an InputText() using Tab + for completion or text data is active (regression from 1.89). +- Drag and Drop: Fixed handling of overlapping targets when smaller one is submitted + before and can accept the same data type. (#6183). +- Drag and Drop: Clear drag and drop state as soon as delivery is accepted in order to + avoid interferences. (#5817, #6183) [@DimaKoltun] +- Debug Tools: Added io.ConfigDebugBeginReturnValueOnce / io.ConfigDebugBeginReturnValueLoop + options to simulate Begin/BeginChild returning false to facilitate debugging user behavior. +- Demo: Updated to test return value of BeginTooltip(). +- Backends: OpenGL3: Fixed restoration of a potentially deleted OpenGL program. If an active + program was pending deletion, attempting to restore it would error. (#6220, #6224) [@Cyphall] +- Backends: Win32: Use WM_NCMOUSEMOVE / WM_NCMOUSELEAVE to track mouse positions over + non-client area (e.g. OS decorations) when app is not focused. (#6045, #6162) +- Backends: SDL2, SDL3: Accept SDL_GetPerformanceCounter() not returning a monotonically + increasing value. (#6189, #6114, #3644) [@adamkewley] +- Backends: GLFW: Avoid using glfwGetError() and glfwGetGamepadState() on Emscripten, which + recently updated its GLFW emulation layer to GLFW 3.3 without supporting those. (#6240) +- Examples: Android: Fixed example build for Gradle 8. (#6229, #6227) [@duddel] +- Examples: Updated all examples application to enable ImGuiConfigFlags_NavEnableKeyboard + and ImGuiConfigFlags_NavEnableGamepad by default. (#787) +- Internals: Misc tweaks to facilitate applying an explicit-context patch. (#5856) [@Dragnalith] + +----------------------------------------------------------------------- + VERSION 1.89.3 (Released 2023-02-14) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.3 + +Breaking Changes: + +- Backends+Examples: SDL2: renamed all unnumbered references to "sdl" to "sdl2". + This is in prevision for the future release of SDL3 and its associated backend. (#6146) + - imgui_impl_sdl.cpp -> imgui_impl_sdl2.cpp + - imgui_impl_sdl.h -> imgui_impl_sdl2.h + - example_sdl_xxxx/ -> example_sdl2_xxxx/ (folders and projects) + +Other changes: + +- SeparatorText(): Added SeparatorText() widget. (#1643) [@phed, @ocornut] + - Added to style: float SeparatorTextBorderSize. + - Added to style: ImVec2 SeparatorTextAlign, SeparatorTextPadding. +- Tables: Raised max Columns count from 64 to 512. (#6094, #5305, #4876, #3572) + The previous limit was due to using 64-bit integers but we moved to bits-array + and tweaked the system enough to ensure no performance loss. +- Tables: Solved an ID conflict issue with multiple-instances of a same table, + due to how unique table instance id was generated. (#6140) [@ocornut, @rodrigorc] +- Inputs, Scrolling: Made horizontal scroll wheel and horizontal scroll direction consistent + across backends/os. (#4019, #6096, #1463) [@PathogenDavid, @ocornut, @rokups] + - Clarified that 'wheel_y > 0.0f' scrolls Up, 'wheel_y > 0.0f' scrolls Down. + Clarified that 'wheel_x > 0.0f' scrolls Left, 'wheel_x > 0.0f' scrolls Right. + - Backends: Fixed horizontal scroll direction for Win32 and SDL backends. (#4019) + - Shift+WheelY support on non-OSX machines was already correct. (#2424, #1463) + (whereas on OSX machines Shift+WheelY turns into WheelX at the OS level). + - If you use a custom backend, you should verify horizontal wheel direction. + - Axises are flipped by OSX for mouse & touch-pad when 'Natural Scrolling' is on. + - Axises are flipped by Windows for touch-pad when 'Settings->Touchpad->Down motion scrolls up' is on. + - You can use 'Demo->Tools->Debug Log->IO" to visualize values submitted to Dear ImGui. + - Known issues remaining with Emscripten: + - The magnitude of wheeling values on Emscripten was improved but isn't perfect. (#6096) + - When running the Emscripten app on a Mac with a mouse, SHIFT+WheelY doesn't turn into WheelX. + This is because we don't know that we are running on Mac and apply our own Shift+swapping + on top of OSX' own swapping, so wheel axises are swapped twice. Emscripten apps may need + to find a way to detect this and set io.ConfigMacOSXBehaviors manually (if you know a way + let us know!), or offer the "OSX-style behavior" option to their user. +- Window: Avoid rendering shapes for hidden resize grips. +- Text: Fixed layouting of wrapped-text block skipping successive empty lines, + regression from the fix in 1.89.2. (#5720, #5919) +- Text: Fixed clipping of single-character "..." ellipsis (U+2026 or U+0085) when font + is scaled. Scaling wasn't taken into account, leading to ellipsis character straying + slightly out of its expected boundaries. (#2775) +- Text: Tweaked rendering of three-dots "..." ellipsis variant. (#2775, #4269) +- InputText: Added support for Ctrl+Delete to delete up to end-of-word. (#6067) [@ajweeks] + (Not adding Super+Delete to delete to up to end-of-line on OSX, as OSX doesn't have it) +- InputText: On OSX, inhibit usage of Alt key to toggle menu when active (used for work skip). +- Menus: Fixed layout of MenuItem()/BeginMenu() when label contains a '\n'. (#6116) [@imkcy9] +- ColorEdit, ColorPicker: Fixed hue/saturation preservation logic from interfering with + the displayed value (but not stored value) of others widgets instances. (#6155) +- PlotHistogram, PlotLines: Passing negative sizes honor alignment like other widgets. +- Combo: Allow SetNextWindowSize() to alter combo popup size. (#6130) +- Fonts: Assert that in each GlyphRanges[] pairs first is <= second. +- ImDrawList: Added missing early-out in AddPolyline() and AddConvexPolyFilled() when + color alpha is zero. +- Misc: Most text functions treat "%s" as a shortcut to no-formatting. (#3466) +- Misc: Tolerate zero delta-time under Emscripten as backends are imprecise in their + values for io.DeltaTime, and browser features such as "privacy.resistFingerprinting=true" + can exacerbate that. (#6114, #3644) +- Backends: OSX: Fixed scroll/wheel scaling for devices emitting events with + hasPreciseScrollingDeltas==false (e.g. non-Apple mices). +- Backends: Win32: flipping WM_MOUSEHWHEEL horizontal value to match other backends and + offer consistent horizontal scrolling direction. (#4019) +- Backends: SDL2: flipping SDL_MOUSEWHEEL horizontal value to match other backends and + offer consistent horizontal scrolling direction. (#4019) +- Backends: SDL2: Removed SDL_MOUSEWHEEL value clamping. (#4019, #6096, #6081) +- Backends: SDL2: Added support for SDL 2.0.18+ preciseX/preciseY mouse wheel data + for smooth scrolling as reported by SDL. (#4019, #6096) +- Backends: SDL2: Avoid calling SDL_SetCursor() when cursor has not changed, as the function + is surprisingly costly on Mac with latest SDL (already fixed in SDL latest trunk). (#6113) +- Backends: SDL2: Implement IME handler to call SDL_SetTextInputRect()/SDL_StartTextInput(). + It will only works with SDL 2.0.18+ if your code calls 'SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1")' + prior to calling SDL_CreateWindow(). Updated all examples accordingly. (#6071, #1953) +- Backends: SDL3: Added experimental imgui_impl_sdl3.cpp backend. (#6146) [@dovker, @ocornut] + SDL 3.0.0 has not yet been released, so it is possible that its specs/api will change before + release. This backend is provided as a convenience for early adopters etc. We don't recommend + switching to SDL3 before it is released. +- Backends: GLFW: Registering custom low-level mouse wheel handler to get more accurate + scrolling impulses on Emscripten. (#4019, #6096) [@ocornut, @wolfpld, @tolopolarity] +- Backends: GLFW: Added ImGui_ImplGlfw_SetCallbacksChainForAllWindows() to instruct backend + to chain callbacks even for secondary viewports/windows. User callbacks may need to test + the 'window' parameter. (#6142) +- Backends: OpenGL3: Fixed GL loader compatibility with 2.x profiles. (#6154, #4445, #3530) [@grauw] +- Backends: WebGPU: Fixed building for latest WebGPU specs (remove implicit layout generation). + (#6117, #4116, #3632) [@tonygrue, @bfierz] +- Examples: refactored SDL2+GL and GLFW+GL examples to compile with Emscripten. + (#2492, #2494, #3699, #3705) [@ocornut, @nicolasnoble] + The dedicated example_emscripten_opengl3/ has been removed. +- Examples: Added SDL3+GL experimental example. (#6146) +- Examples: Win32: Fixed examples using RegisterClassW() since 1.89 to also call + DefWindowProcW() instead of DefWindowProc() so that title text are correctly converted + when application is compiled without /DUNICODE. (#5725, #5961, #5975) [@markreidvfx] +- Examples: SDL2+SDL_Renderer: Added call to SDL_RenderSetScale() to fix display on a + Retina display (albeit lower-res as our other unmodified examples). (#6121, #6065, #5931). + +Docking+Viewports Branch: + +- Backends: GLFW: Handle unsupported glfwGetVideoMode() for Emscripten. (#6096) + + +----------------------------------------------------------------------- + VERSION 1.89.2 (Released 2023-01-05) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.2 + +All changes: + +- Tables, Nav, Scrolling: fixed scrolling functions and focus tracking with frozen rows and + frozen columns. Windows now have a better understanding of outer/inner decoration sizes, + which should later lead us toward more flexible uses of menu/status bars. (#5143, #3692) +- Tables, Nav: frozen columns are not part of menu layer and can be crossed over. (#5143, #3692) +- Tables, Columns: fixed cases where empty columns may lead to empty ImDrawCmd. (#4857, #5937) +- Tables: fixed matching width of synchronized tables (multiple tables with same id) when only + some instances have a vertical scrollbar and not all. (#5920) +- Fixed cases where CTRL+Tab or Modal can occasionally lead to the creation of ImDrawCmd with + zero triangles, which would makes the render loop of some backends assert (e.g. Metal with + debugging, Allegro). (#4857, #5937) +- Inputs, IO: reworked ImGuiMod_Shortcut to redirect to Ctrl/Super at runtime instead of + compile-time, being consistent with our support for io.ConfigMacOSXBehaviors and making it + easier for bindings generators to process that value. (#5923, #456) +- Inputs, Scrolling: better selection of scrolling window when hovering nested windows + and when backend/OS is emitting dual-axis wheeling inputs (typically touch pads on macOS). + We now select a primary axis based on recent events, and select a target window based on it. + We expect this behavior to be further improved/tweaked. (#3795, #4559) [@ocornut, @folays] +- InputText: fixed cursor navigation when pressing Up Arrow on the last character of a + multiline buffer which doesn't end with a carriage return. (#6000) +- Text: fixed layouting of wrapped-text block when the last source line is above the + clipping region. Regression added in 1.89. (#5720, #5919) +- Misc: added GetItemID() in public API. It is not often expected that you would use this, + but it is useful for Shortcut() and upcoming owner-aware input functions which wants to + be implemented with public API. +- Fonts: imgui_freetype: fixed a packing issue which in some occurrences would prevent large + amount of glyphs from being packed correctly. (#5788, #5829) +- Fonts: added a 'void* UserData' field in ImFontAtlas, as a convenience for use by + applications using multiple font atlases. +- Demo: simplified "Inputs" section, moved contents to Metrics->Inputs. +- Debug Tools: Metrics: added "Inputs" section, moved from Demo for consistency. +- Misc: fixed parameters to IMGUI_DEBUG_LOG() not being dead-stripped when building + with IMGUI_DISABLE_DEBUG_TOOLS is used. (#5901) [@Teselka] +- Misc: fixed compile-time detection of SSE features on MSVC 32-bits builds. (#5943) [@TheMostDiligent] +- Examples: DirectX10, DirectX11: try WARP software driver if hardware driver is not available. (#5924, #5562) +- Backends: GLFW: Fixed mods state on Linux when using Alt-GR text input (e.g. German keyboard layout), which + could lead to broken text input. Revert a 2022/01/17 change were we resumed using mods provided by GLFW, + turns out they are faulty in this specific situation. (#6034) +- Backends: Allegro5: restoring using al_draw_indexed_prim() when Allegro version is >= 5.2.5. (#5937) [@Espyo] +- Backends: Vulkan: Fixed sampler passed to ImGui_ImplVulkan_AddTexture() not being honored as we were using + an immutable sampler. (#5502, #6001, #914) [@martin-ejdestig, @rytisss] + +Docking+Viewports Branch: + +- Docking: Internals: fixed DockBuilderCopyDockSpace() crashing when windows not in the + remapping list are docked on the left or top side of a split. (#6035) +- Docking: fixed DockSpace() with ImGuiDockNodeFlags_KeepAliveOnly marking current window + as written to, even if it doesn't technically submit an item. This allow using KeepAliveOnly + from any window location. (#6037) +- Backends: OSX: fixed typo in ImGui_ImplOSX_GetWindowSize that would cause issues when resiing + from OS decorations, if they are enabled on secondary viewports. (#6009) [@sivu] +- Backends: Metal: fixed secondary viewport rendering. (#6015) [@dmirty-kuzmenko] + + +----------------------------------------------------------------------- + VERSION 1.89.1 (Released 2022-11-24) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89.1 + +Other changes: + +- Scrolling, Focus: fixed SetKeyboardFocusHere()/SetItemDefaultFocus() during a window-appearing + frame (and associated lower-level functions e.g. ScrollToRectEx()) from not centering item. (#5902) +- Inputs: fixed moving a window or drag and dropping from preventing input-owner-unaware code + from accessing keys. (#5888, #4921, #456) +- Inputs: fixed moving a window or drag and dropping from capturing mods. (#5888, #4921, #456) +- Layout: fixed End()/EndChild() incorrectly asserting if users manipulates cursor position + inside a collapsed/culled window and IMGUI_DISABLE_OBSOLETE_FUNCTIONS is enabled. (#5548, #5911) +- Combo: fixed selected item (marked with SetItemDefaultFocus()) from not being centered when + the combo window initially appears. (#5902). +- ColorEdit: fixed label overlapping when using style.ColorButtonPosition == ImGuiDir_Left to + move the color button on the left side (regression introduced in 1.88 WIP 2022/02/28). (#5912) +- Drag and Drop: fixed GetDragDropPayload() returning a non-NULL value if a drag source is + active but a payload hasn't been submitted yet. This is convenient to detect new payload + from within a drag source handler. (#5910, #143) +- Backends: GLFW: cancel out errors emitted by glfwGetKeyName() when a name is missing. (#5908) +- Backends: WebGPU: fixed validation error with default depth buffer settings. (#5869, #5914) [@kdchambers] + +Docking+Viewports Branch: + +- Viewports: Fixed collapsed windows setting ImGuiViewportFlags_NoRendererClear without + making title bar color opaque, leading to potential texture/fb garbage being visible. + Right now as we don't fully support transparent viewports (#2766), so we turn that + 'TitleBgCollapsed' color opaque just lke we do for 'WindowBG' on uncollapsed windows. + + +----------------------------------------------------------------------- + VERSION 1.89 (Released 2022-11-15) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.89 + +Breaking changes: + +- Layout: Obsoleted using SetCursorPos()/SetCursorScreenPos() to extend parent window/cell boundaries. (#5548) + This relates to when moving the cursor position beyond current boundaries WITHOUT submitting an item. + - Previously this would make the window content size ~200x200: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); + - Instead, please submit an item: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); + - Alternative: + Begin(...) + Dummy(ImVec2(200,200)) + End(); + Content size is now only extended when submitting an item. + With '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will now be detected and assert. + Without '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will silently be fixed until we obsolete it. + (This incorrect pattern has been mentioned or suggested in: #4510, #3355, #1760, #1490, #4152, #150, + threads have been amended to refer to this issue). +- Inputs: ImGuiKey is now a typed enum, allowing ImGuiKey_XXX symbols to be named in debuggers. (#4921) + This will require uses of legacy backend-dependent indices to be casted, e.g. + - with imgui_impl_glfw: IsKeyPressed(GLFW_KEY_A) -> IsKeyPressed((ImGuiKey)GLFW_KEY_A); + - with imgui_impl_win32: IsKeyPressed('A') -> IsKeyPressed((ImGuiKey)'A') + - etc. however if you are upgrading code you might as well use the backend-agnostic IsKeyPressed(ImGuiKey_A) now. +- Renamed and merged keyboard modifiers key enums and flags into a same set: (#4921, #456) + - ImGuiKey_ModCtrl and ImGuiModFlags_Ctrl -> ImGuiMod_Ctrl + - ImGuiKey_ModShift and ImGuiModFlags_Shift -> ImGuiMod_Shift + - ImGuiKey_ModAlt and ImGuiModFlags_Alt -> ImGuiMod_Alt + - ImGuiKey_ModSuper and ImGuiModFlags_Super -> ImGuiMod_Super + Kept inline redirection enums (will obsolete). + This change simplifies a few things, reduces confusion, and will facilitate upcoming + shortcut/input ownership apis. + - The ImGuiKey_ModXXX were introduced in 1.87 and mostly used by backends. + - The ImGuiModFlags_XXX have been exposed in imgui.h but not really used by any public api, + only by third-party extensions. They were however subject to a recent rename + (ImGuiKeyModFlags_XXX -> ImGuiModFlags_XXX) and we are exceptionally commenting out + the older ImGuiKeyModFlags_XXX names ahead of obsolescence schedule to reduce confusion + and because they were not meant to be used anyway. +- Removed io.NavInputs[] and ImGuiNavInput enum that were used to feed gamepad inputs. + Basically 1.87 already obsoleted them from the backend's point of view, but internally + our navigation code still used this array and enum, so they were still present. + Not anymore! (#4921, #4858, #787, #1599, #323) + Transition guide: + - Official backends from 1.87+ -> no issue. + - Official backends from 1.60 to 1.86 -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need updating! + - Custom backends not writing to io.NavInputs[] -> no issue. + - Custom backends writing to io.NavInputs[] -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need fixing! + - TL;DR: Backends should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values instead of filling io.NavInput[]. + The ImGuiNavInput enum was essentially 1.60's attempt to combine keyboard and gamepad inputs with named + semantic, but the additional indirection and copy added complexity and got in the way of other + incoming work. User's code (other than backends) should not be affected, unless you have custom + widgets intercepting navigation events via the named enums (in which case you can upgrade your code). +- DragInt()/SliderInt(): Removed runtime patching of invalid "%f"/"%.0f" types of format strings. + This was obsoleted in 1.61 (May 2018). See 1.61 changelog for details. +- Changed signature of ImageButton() function: (#5533, #4471, #2464, #1390) + - Added 'const char* str_id' parameter + removed 'int frame_padding = -1' parameter. + - Old signature: bool ImageButton(ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), int frame_padding = -1, ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - used the ImTextureID value to create an ID. This was inconsistent with other functions, led to ID conflicts, and caused problems with engines using transient ImTextureID values. + - had a FramePadding override which was inconsistent with other functions and made the already-long signature even longer. + - New signature: bool ImageButton(const char* str_id, ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - requires an explicit identifier. You may still use e.g. PushID() calls and then pass an empty identifier. + - always uses style.FramePadding for padding, to be consistent with other buttons. You may use PushStyleVar() to alter this. + - As always we are keeping a redirection function available (will obsolete later). +- Removed the bizarre legacy default argument for 'TreePush(const void* ptr = NULL)'. (#1057) + Must always pass a pointer value explicitly, NULL/nullptr is ok but require cast, e.g. TreePush((void*)nullptr); + If you used TreePush() replace with TreePush((void*)NULL); +- Removed support for 1.42-era IMGUI_DISABLE_INCLUDE_IMCONFIG_H / IMGUI_INCLUDE_IMCONFIG_H. (#255) + They only made sense before we could use IMGUI_USER_CONFIG. + +Other Changes: + +- Popups & Modals: fixed nested Begin() inside a popup being erroneously input-inhibited. + While it is unusual, you can nest a Begin() inside a popup or modal, it is occasionally + useful to achieve certain things (e.g. to implement suggestion popups #718, #4461). +- Inputs: Standard widgets now claim for key/button ownership and test for them. + - Fixes scenario where e.g. a Popup with a Selectable() reacting on mouse down + (e.g. double click) closes, and behind it is another window with an item reacting + on mouse up. Previously this would lead to both items reacting, now the item in the + window behind won't react on the mouse up since the mouse button ownership has already + been claimed earlier. + - Internals: There are MANY more aspects to this changes. Added experimental/internal APIs + to allow handling input/shorting routing and key ownership. Things will be moved into + public APIs over time. For now this release is a way to test the solidity of underlying + systems while letting early adopters adopters toy with internals. + (#456, #2637, #2620, #2891, #3370, #3724, #4828, #5108, #5242, #5641) +- Scrolling: Tweak mouse-wheel locked window timer so it is shorter but also gets reset + whenever scrolling again. Modulate for small (sub-pixel) amounts. (#2604) +- Scrolling: Mitigated issue where multi-axis mouse-wheel inputs (usually from touch pad + events) are incorrectly locking scrolling in a parent window. (#4559, #3795, #2604) +- Scrolling: Exposed SetNextWindowScroll() in public API. Useful to remove a scrolling + delay in some situations where e.g. windows need to be synched. (#1526) +- InputText: added experimental io.ConfigInputTextEnterKeepActive feature to make pressing + Enter keep the input active and select all text. +- InputText: numerical fields automatically accept full-width characters (U+FF01..U+FF5E) + by converting them to half-width (U+0021..U+007E). +- InputText: added ImGuiInputTextFlags_EscapeClearsAll flag: first press on Escape clears + text if any, second press deactivate the InputText(). (#5688, #2620) +- InputText: added support for shift+click style selection. (#5619) [@procedural] +- InputText: clarified that callbacks cannot modify buffer when using the ReadOnly flag. +- InputText: fixed minor one-frame selection glitch when reverting with Escape. +- ColorEdit3: fixed id collision leading to an assertion. (#5707) +- IsItemHovered: Added ImGuiHoveredFlags_DelayNormal and ImGuiHoveredFlags_DelayShort flags, + allowing to introduce a shared delay for tooltip idioms. The delays are respectively + io.HoverDelayNormal (default to 0.30f) and io.HoverDelayShort (default to 0.10f). (#1485) +- IsItemHovered: Added ImGuiHoveredFlags_NoSharedDelay to disable sharing delays between items, + so moving from one item to a nearby one will requires delay to elapse again. (#1485) +- Tables: activating an ID (e.g. clicking button inside) column doesn't prevent columns + output flags from having ImGuiTableColumnFlags_IsHovered set. (#2957) +- Tables,Columns: fixed a layout issue where SameLine() prior to a row change would set the + next row in such state where subsequent SameLine() would move back to previous row. +- Tabs: Fixed a crash when closing multiple windows (possible with docking only) with an + appended TabItemButton(). (#5515, #3291) [@rokups] +- Tabs: Fixed shrinking policy leading to infinite loops when fed unrounded tab widths. (#5652) +- Tabs: Fixed shrinking policy sometimes erroneously making right-most tabs stray a little out + bar boundaries (bug in 1.88). (#5652). +- Tabs: Enforcing minimum size of 1.0f, fixed asserting on zero-tab widths. (#5572) +- Window: Fixed a potential crash when appending to a child window. (#5515, #3496, #4797) [@rokups] +- Window: Fixed an issue where uncollapsed a window would show a scrollbar for a frame. +- Window: Auto-fit size takes account of work rectangle (menu bars eating from viewport). (#5843) +- Window: Fixed position not being clamped while auto-resizing (fixes appearing windows without + .ini data from moving for a frame when using io.ConfigWindowsMoveFromTitleBarOnly). (#5843) +- IO: Added ImGuiMod_Shortcut which is ImGuiMod_Super on Mac and ImGuiMod_Ctrl otherwise. (#456) +- IO: Added ImGuiKey_MouseXXX aliases for mouse buttons/wheel so all operations done on ImGuiKey + can apply to mouse data as well. (#4921) +- IO: Filter duplicate input events during the AddXXX() calls. (#5599, #4921) +- IO: Fixed AddFocusEvent(false) to also clear MouseDown[] state. (#4921) +- Menus: Fixed incorrect sub-menu parent association when opening a menu by closing another. + Among other things, it would accidentally break part of the closing heuristic logic when moving + towards a sub-menu. (#2517, #5614). [@rokups] +- Menus: Fixed gaps in closing logic which would make child-menu erroneously close when crossing + the gap between a menu item inside a window and a child-menu in a secondary viewport. (#5614) +- Menus: Fixed using IsItemHovered()/IsItemClicked() on BeginMenu(). (#5775) +- Menus, Popups: Experimental fix for issue where clicking on an open BeginMenu() item called from + a window which is neither a popup neither a menu used to incorrectly close and reopen the menu + (the fix may have side-effect and is labelld as experimental as we may need to revert). (#5775) +- Menus, Nav: Fixed keyboard/gamepad navigation occasionally erroneously landing on menu-item + in parent window when the parent is not a popup. (#5730) +- Menus, Nav: Fixed not being able to close a menu with Left arrow when parent is not a popup. (#5730) +- Menus, Nav: Fixed using left/right navigation when appending to an existing menu (multiple + BeginMenu() call with same names). (#1207) +- Menus: Fixed a one-frame issue where SetNextWindowXXX data are not consumed by a BeginMenu() + returning false. +- Nav: Fixed moving/resizing window with gamepad or keyboard when running at very high framerate. +- Nav: Pressing Space/GamepadFaceDown on a repeating button uses the same repeating rate as a mouse hold. +- Nav: Fixed an issue opening a menu with Right key from a non-menu window. +- Text: Fixed wrapped-text not doing a fast-forward on lines above the clipping region, + which would result in an abnormal number of vertices created (was slower and more likely to + asserts with 16-bits ImDrawVtx). (#5720) +- Fonts: Added GetGlyphRangesGreek() helper for Greek & Coptic glyph range. (#5676, #5727) [@azonenberg] +- ImDrawList: Not using alloca() anymore, lift single polygon size limits. (#5704, #1811) + - Note: now using a temporary buffer stored in ImDrawListSharedData. + This change made it more visible than you cannot append to multiple ImDrawList from multiple + threads if they share the same ImDrawListSharedData. Previously it was a little more likely + for this to "accidentally" work, but was already incorrect. (#6167) +- Platform IME: [Windows] Removed call to ImmAssociateContextEx() leading to freeze on some setups. + (#2589, #5535, #5264, #4972) +- Misc: better error reporting for PopStyleColor()/PopStyleVar() + easier to recover. (#1651) +- Misc: io.Framerate moving average now converge in 60 frames instead of 120. (#5236, #4138) +- Debug Tools: Debug Log: Visually locate items when hovering a 0xXXXXXXXX value. (#5855) +- Debug Tools: Debug Log: Added 'IO' and 'Clipper' events logging. (#5855) +- Debug Tools: Metrics: Visually locate items when hovering a 0xXXXXXXXX value (in most places). +- Debug Tools: Item Picker: Mouse button can be changed by holding Ctrl+Shift, making it easier + to use the Item Picker in e.g. menus. (#2673) +- Docs: Fixed various typos in comments and documentations. (#5649, #5675, #5679) [@tocic, @lessigsx] +- Demo: Improved "Constrained-resizing window" example, more clearly showcase aspect-ratio. (#5627) +- Demo: Added more explicit "Center window" mode to "Overlay example". (#5618) +- Demo: Fixed Log & Console from losing scrolling position with Auto-Scroll when child is clipped. (#5721) +- Examples: Added all SDL examples to default VS solution. +- Examples: Win32: Always use RegisterClassW() to ensure windows are Unicode. (#5725) +- Examples: Android: Enable .ini file loading/saving into application internal data folder. (#5836) [@rewtio] +- Backends: GLFW: Honor GLFW_CURSOR_DISABLED by not setting mouse position. (#5625) [@scorpion-26] +- Backends: GLFW: Add glfwGetError() call on GLFW 3.3 to inhibit missing mouse cursor errors. (#5785) [@mitchellh] +- Backends: SDL: Disable SDL 2.0.22 new "auto capture" which prevents drag and drop across windows + (e.g. for multi-viewport support) and don't capture mouse when drag and dropping. (#5710) +- Backends: Win32: Convert WM_CHAR values with MultiByteToWideChar() when window class was + registered as MBCS (not Unicode). (#5725, #1807, #471, #2815, #1060) [@or75, @ocornut] +- Backends: OSX: Fixed mouse inputs on flipped views. (#5756) [@Nemirtingas] +- Backends: OSX: Fixed mouse coordinate before clicking on the host window. (#5842) [@maezawa-akira] +- Backends: OSX: Fixes to support full app creation in C++. (#5403) [@stack] +- Backends: OpenGL3: Reverted use of glBufferSubData(), too many corruptions issues were reported, + and old leaks issues seemingly can't be reproed with Intel drivers nowadays (revert earlier changes). + (#4468, #4504, #3381, #2981, #4825, #4832, #5127). +- Backends: Metal: Use __bridge for ARC based systems. (#5403) [@stack] +- Backends: Metal: Add dispatch synchronization. (#5447) [@luigifcruz] +- Backends: Metal: Update deprecated property 'sampleCount'->'rasterSampleCount'. (#5603) [@dcvz] +- Backends: Vulkan: Added experimental ImGui_ImplVulkan_RemoveTexture() for api symetry. (#914, #5738). +- Backends: WebGPU: fixed rendering when a depth buffer is enabled. (#5869) [@brainlag] + +Docking+Viewports Branch: + +- Docking: Fixed incorrect focus highlight on docking node when focusing a menu. (#5702) +- Docking, Nav: Fixed using gamepad/keyboard navigation not being able enter menu layer when + it only contained the standard Collapse/Close buttons and no actual menu. (#5463, #4792) +- Docking: Fixed regression introduced in v1.87 when docked window content not rendered + while switching between with CTRL+Tab. [@rokups] +- Docking: Fixed amending into an existing tab bar from rendering invisible items. (#5515) +- Docking: Made spacing between dock nodes not a dropping gap. When hovering it only + outer-docking drop markers are visible. +- Docking+Viewports: Fixed undocking window node causing parent viewports to become unresponsive + in certain situation (e.g. hidden tab bar). (#5503) [@rokups] +- Backends: SDL: Fixed building backend under non-OSX Apple targets (e.g. iPhone). (#5665) +- Backends: SDL: Fixed drag'n drop crossing a viewport border losing mouse coordinates. (#5710, #5012) +- Backends: GLFW: Fixed leftover static variable preventing from changing or + reinitializing backend while application is running. (#4616, #5434) [@rtoumazet] + + +----------------------------------------------------------------------- + VERSION 1.88 (Released 2022-06-21) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.88 + +Breaking changes: + +- Renamed IMGUI_DISABLE_METRICS_WINDOW to IMGUI_DISABLE_DEBUG_TOOLS for correctness. + Kept support for old define (will obsolete). +- Renamed CaptureMouseFromApp() and CaptureKeyboardFromApp() to SetNextFrameWantCaptureMouse() + and SetNextFrameWantCaptureKeyboard() to clarify purpose, old name was too misleading. + Kept inline redirection functions (will obsolete). +- Renamed ImGuiKeyModFlags to ImGuiModFlags. Kept inline redirection enums (will obsolete). + (This was never used in public API functions but technically present in imgui.h and ImGuiIO). +- Backends: OSX: Removed ImGui_ImplOSX_HandleEvent() from backend API in favor of backend + automatically handling event capture. Examples that are using the OSX backend have removed + all the now-unnecessary calls to ImGui_ImplOSX_HandleEvent(), applications can do as well. + [@stuartcarnie] (#4821) +- Internals: calling ButtonBehavior() without calling ItemAdd() now requires a KeepAliveID() + call. This is because the KeepAliveID() call was moved from GetID() to ItemAdd(). (#5181) + +Other Changes: + +- IO: Fixed backward-compatibility regression introduced in 1.87: (#4921, #4858) + - Direct accesses to io.KeysDown[] with legacy indices didn't work (with new backends). + - Direct accesses to io.KeysDown[GetKeyIndex(XXX)] would access invalid data (with old/new backends). + - Calling IsKeyDown() didn't have those problems, and is recommended as io.KeysDown[] is obsolete. +- IO: Fixed input queue trickling of interleaved keys/chars events (which are frequent especially + when holding down a key as OS submits chars repeat events) delaying key presses and mouse movements. + In particular, using the input system for fast game-like actions (e.g. WASD camera move) would + typically have been impacted, as well as holding a key while dragging mouse. Constraints have + been lifted and are now only happening when e.g. an InputText() widget is active. (#4921, #4858) + Note that even thought you shouldn't need to disable io.ConfigInputTrickleEventQueue, you can + technically dynamically change its setting based on the context (e.g. disable only when hovering + or interacting with a game/3D view). +- IO: Fixed input queue trickling of mouse wheel events: multiple wheel events are merged, while + a mouse pos followed by a mouse wheel are now trickled. (#4921, #4821) +- IO: Added io.SetAppAcceptingEvents() to set a master flag for accepting key/mouse/characters + events (default to true). Useful if you have native dialog boxes that are interrupting your + application loop/refresh, and you want to disable events being queued while your app is frozen. +- Windows: Fixed first-time windows appearing in negative coordinates from being initialized + with a wrong size. This would most often be noticeable in multi-viewport mode (docking branch) + when spawning a window in a monitor with negative coordinates. (#5215, #3414) [@DimaKoltun] +- Clipper: Fixed a regression in 1.86 when not calling clipper.End() and late destructing the + clipper instance. High-level languages (Lua,Rust etc.) would typically be affected. (#4822) +- Layout: Fixed mixing up SameLine() and SetCursorPos() together from creating situations where line + height would be emitted from the wrong location (e.g. 'ItemA+SameLine()+SetCursorPos()+ItemB' would + emit ItemA worth of height from the position of ItemB, which is not necessarily aligned with ItemA). +- Sliders: An initial click within the knob/grab doesn't shift its position. (#1946, #5328) +- Sliders, Drags: Fixed dragging when using hexadecimal display format string. (#5165, #3133) +- Sliders, Drags: Fixed manual input when using hexadecimal display format string. (#5165, #3133) +- InputScalar: Fixed manual input when using %03d style width in display format string. (#5165, #3133) +- InputScalar: Automatically allow hexadecimal input when format is %X (without extra flag). +- InputScalar: Automatically allow scientific input when format is float/double (without extra flag). +- Nav: Fixed nav movement in a scope with only one disabled item from focusing the disabled item. (#5189) +- Nav: Fixed issues with nav request being transferred to another window when calling SetKeyboardFocusHere() + and simultaneous changing window focus. (#4449) +- Nav: Changed SetKeyboardFocusHere() to not behave if a drag or window moving is in progress. +- Nav: Fixed inability to cancel nav in modal popups. (#5400) [@rokups] +- IsItemHovered(): added ImGuiHoveredFlags_NoNavOverride to disable the behavior where the + return value is overridden by focus when gamepad/keyboard navigation is active. +- InputText: Fixed pressing Tab emitting two tabs characters because of dual Keys/Chars events being + trickled with the new input queue (happened on some backends only). (#2467, #1336) +- InputText: Fixed a one-frame display glitch where pressing Escape to revert after a deletion + would lead to small garbage being displayed for one frame. Curiously a rather old bug! (#3008) +- InputText: Fixed an undo-state corruption issue when editing main buffer before reactivating item. (#4947) +- InputText: Fixed an undo-state corruption issue when editing in-flight buffer in user callback. + (#4947, #4949] [@JoshuaWebb] +- Tables: Fixed incorrect border height used for logic when resizing one of several synchronized + instance of a same table ID, when instances have a different height. (#3955). +- Tables: Fixed incorrect auto-fit of parent windows when using non-resizable weighted columns. (#5276) +- Tables: Fixed draw-call merging of last column. Depending on some unrelated settings (e.g. BorderH) + merging draw-call of the last column didn't always work (regression since 1.87). (#4843, #4844) [@rokups] +- Inputs: Fixed IsMouseClicked() repeat mode rate being half of keyboard repeat rate. +- ColorEdit: Fixed text baseline alignment after a SameLine() after a ColorEdit() with visible label. +- Tabs: BeginTabItem() now reacts to SetNextItemWidth(). (#5262) +- Tabs: Tweak shrinking policy so that while resizing tabs that don't need shrinking keep their + initial width more precisely (without the occasional +1 worth of width). +- Menus: Adjusted BeginMenu() closing logic so hovering void or non-MenuItem() in parent window + always lead to menu closure. Fixes using items that are not MenuItem() or BeginItem() at the root + level of a popup with a child menu opened. +- Menus: Menus emitted from the main/scrolling layer are not part of the same menu-set as menus emitted + from the menu-bar, avoiding accidental hovering from one to the other. (#3496, #4797) [@rokups] +- Style: Adjust default value of GrabMinSize from 10.0f to 12.0f. +- Stack Tool: Added option to copy item path to clipboard. (#4631) +- Settings: Fixed out-of-bounds read when .ini file on disk is empty. (#5351) [@quantum5] +- Settings: Fixed some SetNextWindowPos/SetNextWindowSize API calls not marking settings as dirty. +- DrawList: Fixed PathArcTo() emitting terminating vertices too close to arc vertices. (#4993) [@thedmd] +- DrawList: Fixed texture-based anti-aliasing path with RGBA textures (#5132, #3245) [@cfillion] +- DrawList: Fixed divide-by-zero or glitches with Radius/Rounding values close to zero. (#5249, #5293, #3491) +- DrawList: Circle with a radius smaller than 0.5f won't appear, to be consistent with other primitives. [@thedmd] +- Debug Tools: Debug Log: Added ShowDebugLogWindow() showing an opt-in synthetic log of principal events + (focus, popup, active id changes) helping to diagnose issues. +- Debug Tools: Added DebugTextEncoding() function to facilitate diagnosing issues when not sure about + whether you have a UTF-8 text encoding issue or a font loading issue. [@LaMarche05, @ocornut] +- Demo: Add better demo of how to use SetNextFrameWantCaptureMouse()/SetNextFrameWantCaptureKeyboard(). +- Metrics: Added a "UTF-8 Encoding Viewer" section using the aforementioned DebugTextEncoding() function. +- Metrics: Added "InputText" section to visualize internal state (#4947, #4949). +- Misc: Fixed calling GetID("label") _before_ a widget emitting this item inside a group (such as InputInt()) + from causing an assertion when closing the group. (#5181). +- Misc: Fixed IsAnyItemHovered() returning false when using navigation. +- Misc: Allow redefining IM_COL32_XXX layout macros to facilitate use on big-endian systems. (#5190, #767, #844) +- Misc: Added IMGUI_STB_SPRINTF_FILENAME to support custom path to stb_sprintf. (#5068, #2954) [@jakubtomsu] +- Misc: Added constexpr to ImVec2/ImVec4 inline constructors. (#4995) [@Myriachan] +- Misc: Updated stb_truetype.h from 1.20 to 1.26 (many fixes). (#5075) +- Misc: Updated stb_textedit.h from 1.13 to 1.14 (our changes so this effectively is a no-op). (#5075) +- Misc: Updated stb_rect_pack.h from 1.00 to 1.01 (minor). (#5075) +- Misc: binary_to_compressed_c tool: Added -nostatic option. (#5021) [@podsvirov] +- ImVector: Fixed erase() with empty range. (#5009) [@thedmd] +- Backends: Vulkan: Don't use VK_PRESENT_MODE_MAX_ENUM_KHR as specs state it isn't part of the API. (#5254) +- Backends: GLFW: Fixed a regression in 1.87 which resulted in keyboard modifiers events being + reported incorrectly on Linux/X11, due to a bug in GLFW. [@rokups] +- Backends: GLFW: Fixed untranslated keys when pressing lower case letters on OSX (#5260, #5261) [@cpichard] +- Backends: SDL: Fixed dragging out viewport broken on some SDL setups. (#5012) [@rokups] +- Backends: SDL: Added support for extra mouse buttons (SDL_BUTTON_X1/SDL_BUTTON_X2). (#5125) [@sgiurgiu] +- Backends: SDL, OpenGL3: Fixes to facilitate building on AmigaOS4. (#5190) [@afxgroup] +- Backends: OSX: Monitor NSKeyUp events to catch missing keyUp for key when user press Cmd + key (#5128) [@thedmd] +- Backends: OSX, Metal: Store backend data in a per-context struct, allowing to use these backends with + multiple contexts. (#5203, #5221, #4141) [@noisewuwei] +- Backends: Metal: Fixed null dereference on exit inside command buffer completion handler. (#5363, #5365) [@warrenm] +- Backends: OpenGL3: Partially revert 1.86 change of using glBufferSubData(): now only done on Windows and + Intel GPU, based on querying glGetString(GL_VENDOR). Essentially we got report of accumulating leaks on Intel + with multi-viewports when using simple glBufferData() without orphaning, and report of corruptions on other + GPUs with multi-viewports when using orphaning and glBufferSubData(), so currently switching technique based + on GPU vendor, which unfortunately reinforce the cargo-cult nature of dealing with OpenGL drivers. + Navigating the space of mysterious OpenGL drivers is particularly difficult as they are known to rely on + application specific whitelisting. (#4468, #3381, #2981, #4825, #4832, #5127). +- Backends: OpenGL3: Fix state corruption on OpenGL ES 2.0 due to not preserving GL_ELEMENT_ARRAY_BUFFER_BINDING + and vertex attribute states. [@rokups] +- Examples: Emscripten+WebGPU: Fix building for latest WebGPU specs. (#3632) +- Examples: OSX+Metal, OSX+OpenGL: Removed now-unnecessary calls to ImGui_ImplOSX_HandleEvent(). (#4821) + +Docking+Viewports Branch: + +- Docking: Fixed floating docked nodes not being clamped into viewport workrect to stay reachable + when io.ConfigWindowsMoveFromTitleBarOnly is true and multi-viewports are disabled. (#5044) +- Docking: Fixed a regression where moving window would be interrupted after undocking a tab + when io.ConfigDockingAlwaysTabBar is true. (#5324) [@rokups] +- Docking: Fixed incorrect focus highlight on docking node when focusing empty central node + or a child window which was manually injected into a dockspace window. +- Docking, Modal: Fixed a crash when opening popup from a parent which is being docked on the same frame. (#5401) +- Viewports: Fixed an issue where MouseViewport was lagging by a frame when using 1.87 Input Queue. + A common side-effect would be that when releasing a window drag the underlying window would highlight + for a frame. (#5837, #4921) [@cfillion] +- Viewports: Fixed translating a host viewport from briefly altering the size of AlwaysAutoResize windows. (#5057) +- Viewports: Fixed main viewport size not matching ImDrawData::DisplaySize for one frame during resize + when multi-viewports are disabled. (#4900) +- Backends: SDL: Fixed dragging out main viewport broken on some SDL setups. (#5012) [@rokups] +- Backends: OSX: Added support for multi-viewports. [@stuartcarnie, @metarutaiga] (#4821, #2778) +- Backends: Metal: Added support for multi-viewports. [@stuartcarnie, @metarutaiga] (#4821, #2778) +- Examples: OSX+Metal, SDL+Metal, GLFW+Metal: Added support for multi-viewports. [@rokups] + + +----------------------------------------------------------------------- + VERSION 1.87 (Released 2022-02-07) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.87 + +Breaking Changes: + +- Removed support for pre-C++11 compilers. We'll stop supporting VS2010. (#4537) +- Reworked IO mouse input API: (#4921, #4858) [@thedmd, @ocornut] + - Added io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() functions, + obsoleting writing directly to io.MousePos, io.MouseDown[], io.MouseWheel, etc. + - This enable input queue trickling to support low framerates. (#2787, #1992, #3383, #2525, #1320) + - For all calls to IO new functions, the Dear ImGui context should be bound/current. +- Reworked IO keyboard input API: (#4921, #2625, #3724) [@thedmd, @ocornut] + - Added io.AddKeyEvent() function, obsoleting writing directly to io.KeyMap[], io.KeysDown[] arrays. + - For keyboard modifiers, you can call io.AddKeyEvent() with ImGuiKey_ModXXX values, + obsoleting writing directly to io.KeyCtrl, io.KeyShift etc. + - Added io.SetKeyEventNativeData() function (optional) to pass native and old legacy indices. + - Added full range of key enums in ImGuiKey (e.g. ImGuiKey_F1). + - Added GetKeyName() helper function. + - Obsoleted GetKeyIndex(): it is now unnecessary and will now return the same value. + - All keyboard related functions taking 'int user_key_index' now take 'ImGuiKey key': + - IsKeyDown(), IsKeyPressed(), IsKeyReleased(), GetKeyPressedAmount(). + - Added io.ConfigInputTrickleEventQueue (defaulting to true) to disable input queue trickling. + - Backward compatibility: + - All backends updated to use new functions. + - Old backends populating those arrays should still work! + - Calling e.g. IsKeyPressed(MY_NATIVE_KEY_XXX) will still work! (for a while) + - Those legacy arrays will only be disabled if '#define IMGUI_DISABLE_OBSOLETE_KEYIO' is set in your imconfig. + In a few versions, IMGUI_DISABLE_OBSOLETE_FUNCTIONS will automatically enable IMGUI_DISABLE_OBSOLETE_KEYIO, + so this will be moved into the regular obsolescence path. + - BREAKING: If your custom backend used ImGuiKey as mock native indices (e.g. "io.KeyMap[ImGuiKey_A] = ImGuiKey_A") + this is a use case that will now assert and be breaking for your old backend. + - Transition guide: + - IsKeyPressed(MY_NATIVE_KEY_XXX) -> use IsKeyPressed(ImGuiKey_XXX) + - IsKeyPressed(GetKeyIndex(ImGuiKey_XXX)) -> use IsKeyPressed(ImGuiKey_XXX) + - Backend writing to io.KeyMap[],KeysDown[] -> backend should call io.AddKeyEvent(), if legacy indexing is desired, call io.SetKeyEventNativeData() + - Basically the trick we took advantage of is that we previously only supported native keycode from 0 to 511, + so ImGuiKey values can still express a legacy native keycode, and new named keys are all >= 512. + - This will enable a few things in the future: + - Access to portable keys allows for backend-agnostic keyboard input code. Until now it was difficult + to share code using keyboard across project because of this gap. (#2625, #3724) + - Access to full key ranges will allow us to develop a proper keyboard shortcut system. (#456) + - io.SetKeyEventNativeData() include native keycode/scancode which may later be exposed. (#3141, #2959) +- Reworked IO nav/gamepad input API and unifying inputs sources: (#4921, #4858, #787) + - Added full range of ImGuiKey_GamepadXXXX enums (e.g. ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadR2) to use with + io.AddKeyEvent(), io.AddKeyAnalogEvent(). + - Added io.AddKeyAnalogEvent() function, obsoleting writing directly to io.NavInputs[] arrays. +- Renamed ImGuiKey_KeyPadEnter to ImGuiKey_KeypadEnter to align with new symbols. Kept redirection enum. (#2625) +- Removed support for legacy arithmetic operators (+,+-,*,/) when inputing text into a slider/drag. (#4917, #3184) + This doesn't break any api/code but a feature that was accessible by end-users (which seemingly no one used). + (Instead you may implement custom expression evaluators to provide a better version of this). +- Backends: GLFW: backend now uses glfwSetCursorPosCallback(). + - If calling ImGui_ImplGlfw_InitXXX with install_callbacks=true: nothing to do. is already done for you. + - If calling ImGui_ImplGlfw_InitXXX with install_callbacks=false: you WILL NEED to register the GLFW callback + using glfwSetCursorPosCallback() and forward it to the backend function ImGui_ImplGlfw_CursorPosCallback(). +- Backends: SDL: Added SDL_Renderer* parameter to ImGui_ImplSDL2_InitForSDLRenderer(), so backend can call + SDL_GetRendererOutputSize() to obtain framebuffer size valid for hi-dpi. (#4927) [@Clownacy] +- Commented out redirecting functions/enums names that were marked obsolete in 1.69, 1.70, 1.71, 1.72 (March-July 2019) + - ImGui::SetNextTreeNodeOpen() -> use ImGui::SetNextItemOpen() + - ImGui::GetContentRegionAvailWidth() -> use ImGui::GetContentRegionAvail().x + - ImGui::TreeAdvanceToLabelPos() -> use ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetTreeNodeToLabelSpacing()); + - ImFontAtlas::CustomRect -> use ImFontAtlasCustomRect + - ImGuiColorEditFlags_RGB/HSV/HEX -> use ImGuiColorEditFlags_DisplayRGB/HSV/Hex +- Removed io.ImeSetInputScreenPosFn() in favor of more flexible io.SetPlatformImeDataFn() for IME support. + Because this field was mostly only ever used by Dear ImGui internally, not by backends nor the vast majority + of user code, this should only affect a very small fraction for users who are already very IME-aware. +- Obsoleted 'void* io.ImeWindowHandle' in favor of writing to 'void* ImGuiViewport::PlatformHandleRaw'. + This removes an incompatibility between 'master' and 'multi-viewports' backends and toward enabling + better support for IME. Updated backends accordingly. Because the old field is set by existing backends, + we are keeping it (marked as obsolete). + +Other Changes: + +- IO: Added event based input queue API, which now trickles events to support low framerates. [@thedmd, @ocornut] + Previously the most common issue case (button presses in low framerates) was handled by backend. This is now + handled by core automatically for all kind of inputs. (#4858, #2787, #1992, #3383, #2525, #1320) + - New IO functions for keyboard/gamepad: AddKeyEvent(), AddKeyAnalogEvent(). + - New IO functions for mouse: AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent(). +- IO: Unified key enums allow using key functions on key mods and gamepad values. +- Fixed CTRL+Tab into an empty window causing artifacts on the highlight rectangle due to bad reordering on ImDrawCmd. +- Fixed a situation where CTRL+Tab or Modal can occasionally lead to the creation of ImDrawCmd with zero triangles, + which would makes the draw operation of some backends assert (e.g. Metal with debugging). (#4857) +- Popups: Fixed a regression crash when a new window is created after a modal on the same frame. (#4920) [@rokups] +- Popups: Fixed an issue when reopening a same popup multiple times would offset them by 1 pixel on the right. (#4936) +- Tables, ImDrawListSplitter: Fixed erroneously stripping trailing ImDrawList::AddCallback() when submitted in + last column or last channel and when there are no other drawing operation. (#4843, #4844) [@hoffstadt] +- Tables: Fixed positioning of Sort icon on right-most column with some settings (not resizable + no borders). (#4918). +- Nav: Fixed gamepad navigation in wrapping popups not wrapping all the way. (#4365) +- Sliders, Drags: Fixed text input of values with a leading sign, common when using a format enforcing sign. (#4917) +- Demo: draw a section of keyboard in "Inputs > Keyboard, Gamepad & Navigation state" to visualize keys. [@thedmd] +- Platform IME: changed io.ImeSetInputScreenPosFn() to io.SetPlatformImeDataFn() API, + now taking a ImGuiPlatformImeData structure which we can more easily extend in the future. +- Platform IME: moved io.ImeWindowHandle to GetMainViewport()->PlatformHandleRaw. +- Platform IME: add ImGuiPlatformImeData::WantVisible, hide IME composition window when not used. (#2589) [@actboy168] +- Platform IME: add ImGuiPlatformImeData::InputLineHeight. (#3113) [@liuliu] +- Platform IME: [windows] call ImmSetCandidateWindow() to position candidate window. +- Backends: GLFW: Pass localized keys (matching keyboard layout). Fix e.g. CTRL+A, CTRL+Z, CTRL+Y shortcuts. + We are now converting GLFW untranslated keycodes back to translated keycodes in order to match the behavior of + other backend, and facilitate the use of GLFW with lettered-shortcuts API. (#456, #2625) +- Backends: GLFW: Submit keys and key mods using io.AddKeyEvent(). (#2625, #4921) +- Backends: GLFW: Submit mouse data using io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() functions. (#4921) +- Backends: GLFW: Retrieve mouse position using glfwSetCursorPosCallback() + fallback when focused but not hovered/captured. +- Backends: GLFW: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent() functions, stopped writing to io.NavInputs[]. (#4921) +- Backends: GLFW: Added ImGui_ImplGlfw_InstallCallbacks()/ImGui_ImplGlfw_RestoreCallbacks() helpers to facilitate user installing + callbacks after iniitializing backend. (#4981) +- Backends: Win32: Submit keys and key mods using io.AddKeyEvent(). (#2625, #4921) +- Backends: Win32: Retrieve mouse position using WM_MOUSEMOVE/WM_MOUSELEAVE + fallback when focused but not hovered/captured. +- Backends: Win32: Submit mouse data using io.AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921) +- Backends: Win32: Maintain a MouseButtonsDown mask instead of using ImGui::IsAnyMouseDown() which will be obsoleted. +- Backends: Win32: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent() functions, stopped writing to io.NavInputs[]. (#4921) +- Backends: SDL: Pass localized keys (matching keyboard layout). Fix e.g. CTRL+A, CTRL+Z, CTRL+Y shortcuts. (#456, #2625) +- Backends: SDL: Submit key data using io.AddKeyEvent(). Submit keymods using io.AddKeyModsEvent() at the same time. (#2625) +- Backends: SDL: Retrieve mouse position using SDL_MOUSEMOTION/SDL_WINDOWEVENT_LEAVE + fallback when focused but not hovered/captured. +- Backends: SDL: Submit mouse data using io.AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921) +- Backends: SDL: Maintain a MouseButtonsDown mask instead of using ImGui::IsAnyMouseDown() which will be obsoleted. +- Backends: SDL: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent() functions, stopped writing to io.NavInputs[]. (#4921) +- Backends: Allegro5: Submit keys using io.AddKeyEvent(). Submit keymods using io.AddKeyModsEvent() at the same time. (#2625) +- Backends: Allegro5: Submit mouse data using io.AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921) +- Backends: OSX: Submit keys using io.AddKeyEvent(). Submit keymods using io.AddKeyModsEvent() at the same time. (#2625) +- Backends: OSX: Submit mouse data using io.AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4921) +- Backends: OSX: Submit gamepad data using io.AddKeyEvent/AddKeyAnalogEvent() functions, stopped writing to io.NavInputs[]. (#4921) +- Backends: OSX: Added basic Platform IME support. (#3108, #2598) [@liuliu] +- Backends: OSX: Fix Game Controller nav mapping to use shoulder for both focusing and tweak speed. (#4759) +- Backends: OSX: Fix building with old Xcode versions that are missing gamepad features. [@rokups] +- Backends: OSX: Forward keyDown/keyUp events to OS when unused by Dear ImGui. +- Backends: Android, GLUT: Submit keys using io.AddKeyEvent(). Submit keymods using io.AddKeyModsEvent() at the same time. (#2625) +- Backends: Android, GLUT: Submit mouse data using io.AddMousePosEvent(), AddMouseButtonEvent(), AddMouseWheelEvent() functions. (#4858) +- Backends: OpenGL3: Fixed a buffer overflow in imgui_impl_opengl3_loader.h init (added in 1.86). (#4468, #4830) [@dymk] + It would generally not have noticeable side-effect at runtime but would be detected by runtime checkers. +- Backends: OpenGL3: Fix OpenGL ES2 includes on Apple systems. [@rokups] +- Backends: Metal: Added Apple Metal C++ API support. (#4824, #4746) [@luigifcruz] + Enable with '#define IMGUI_IMPL_METAL_CPP' in your imconfig.h file. +- Backends: Metal: Ignore ImDrawCmd where ElemCount == 0, which are normally not emitted by the library but + can theoretically be created by user code manipulating a ImDrawList. (#4857) +- Backends: Vulkan: Added support for ImTextureID as VkDescriptorSet, add ImGui_ImplVulkan_AddTexture(). (#914) [@martty] +- Backends: SDL_Renderer: Fix texture atlas format on big-endian hardware (#4927) [@Clownacy] +- Backends: WebGPU: Fixed incorrect size parameters in wgpuRenderPassEncoderSetIndexBuffer() and + wgpuRenderPassEncoderSetVertexBuffer() calls. (#4891) [@FeepsDev] + +Docking+Viewports Branch: + +- Docking: Fixed a CTRL+TAB crash when aiming at an empty docked window. (#4792) +- Docking: Tabs use their own identifier instead of the Window identifier. + (This will invalidate some stored .ini data such as last selected tab, sorry!) +- Docking: Fixed size constraints not working on single window holding on a dock id (still doesn't work on docked windows). +- Docking: Fixed CTRL+TAB back into a docked window not selecting menu layer when no item are on main layer. +- Viewports, IO: Added io.AddMouseViewportEvent() function to queue hovered viewport change (when known by backend). +- Viewports: Relaxed specs for backend supporting ImGuiBackendFlags_HasMouseHoveredViewport: it is now _optional_ + for the backend to have to ignore viewports with the _NoInputs flag when call io.AddMouseViewportEvent(). It is + much better if they can (Win32 and GLFW 3.3+ backends can, SDL and GLFW 3.2 backends cannot, they are lacking data). + A concrete example is: when dragging a viewport for docking, the viewport is marked with _NoInputs to allow us + to pick the target viewports for docking. If the backend reports a viewport with _NoInputs when calling the + io.AddMouseViewportEvent() function, then Dear ImGui will revert to its flawed heuristic to find the viewport under. + By lowering those specs, we allow the SDL and more backend to support this, only relying on the heuristic in a few + drag and drop situations rather that relying on it everywhere. +- Viewports: Fixed a CTRL+TAB crash with viewports enabled when the window list needs to appears in + its own viewport (regression from 1.86). (#4023, #787) +- Viewports: Fixed active InputText() from preventing viewports to merge. (#4212) +- Backends: SDL: Added support for ImGuiBackendFlags_HasMouseHoveredViewport now that its specs have been lowered. +- (Breaking) Removed ImGuiPlatformIO::Platform_SetImeInputPos() in favor of newly standardized + io.SetPlatformImeDataFn() function. Should not affect more than default backends. + + +----------------------------------------------------------------------- + VERSION 1.86 (Released 2021-12-22) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.86 + +Breaking Changes: + +- Removed CalcListClipping() function. Prefer using ImGuiListClipper which can return non-contiguous ranges. + Please open an issue if you think you really need this function. (#3841) +- Backends: OSX: Added NSView* parameter to ImGui_ImplOSX_Init(). (#4759) [@stuartcarnie] +- Backends: Marmalade: Removed obsolete Marmalade backend (imgui_impl_marmalade.cpp) + example app. (#368, #375) + Find last supported version at https://github.com/ocornut/imgui/wiki/Bindings + +Other Changes: + +- Added an assertion for the common user mistake of using "" as an identifier at the root level of a window + instead of using "##something". Empty identifiers are valid and useful in a very small amount of cases, + but 99.9% of the time if you need an empty label you should use "##something". (#1414, #2562, #2807, #4008, + #4158, #4375, #4548, #4657, #4796). READ THE FAQ ABOUT HOW THE ID STACK WORKS -> https://dearimgui.com/faq +- Added GetMouseClickedCount() function, returning the number of successive clicks. (#3229) [@kudaba] + (so IsMouseDoubleClicked(ImGuiMouseButton_Left) is same as GetMouseClickedCount(ImGuiMouseButton_Left) == 2, + but it allows testing for triple clicks and more). +- Modals: fixed issue hovering popups inside a child windows inside a modal. (#4676, #4527) +- Modals, Popups, Windows: changes how appearing windows are interrupting popups and modals. (#4317) [@rokups] + - appearing windows created from within the begin stack of a popup/modal will no longer close it. + - appearing windows created not within the begin stack of a modal will no longer close the modal, + and automatically appear behind it. +- Fixed IsWindowFocused()/IsWindowHovered() issues with child windows inside popups. (#4676) +- Nav: Ctrl+tabbing to cycle through windows is now enabled regardless of using the _NavEnableKeyboard + configuration flag. This is part of an effort to generalize the use of keyboard inputs. (#4023, #787). + Note that while this is active you can also moving windows (with arrow) and resize (shift+arrows). +- Nav: tabbing now cycles through clipped items and scroll accordingly. (#4449) +- Nav: pressing PageUp/PageDown/Home/End when in Menu layer automatically moves back to Main layer. +- Nav: fixed resizing window from borders setting navigation to Menu layer. +- Nav: prevent child from clipping items when using _NavFlattened and parent has a pending request. +- Nav: pressing Esc to exit a child window reactivates the Nav highlight if it was disabled by mouse. +- Nav: with ImGuiConfigFlags_NavEnableSetMousePos enabled: Fixed absolute mouse position when using + Home/End leads to scrolling. Fixed not setting mouse position when a failed move request (e.g. when + already at edge) reactivates the navigation highlight. +- Menus: fixed closing a menu inside a popup/modal by clicking on the popup/modal. (#3496, #4797) +- Menus: fixed closing a menu by clicking on its menu-bar item when inside a popup. (#3496, #4797) [@xndcn] +- Menus: fixed menu inside a popup/modal not inhibiting hovering of items in the popup/modal. (#3496, #4797) +- Menus: fixed sub-menu items inside a popups from closing the popup. +- Menus: fixed top-level menu from not consistently using style.PopupRounding. (#4788) +- InputText, Nav: fixed repeated calls to SetKeyboardFocusHere() preventing to use InputText(). (#4682) +- Inputtext, Nav: fixed using SetKeyboardFocusHere() on InputTextMultiline(). (#4761) +- InputText: made double-click select word, triple-line select line. Word delimitation logic differs + slightly from the one used by CTRL+arrows. (#2244) +- InputText: fixed ReadOnly flag preventing callbacks from receiving the text buffer. (#4762) [@actondev] +- InputText: fixed Shift+Delete from not cutting into clipboard. (#4818, #1541) [@corporateshark] +- InputTextMultiline: fixed incorrect padding when FrameBorder > 0. (#3781, #4794) +- InputTextMultiline: fixed vertical tracking with large values of FramePadding.y. (#3781, #4794) +- Separator: fixed cover all columns while called inside a table. (#4787) +- Clipper: currently focused item is automatically included in clipper range. + Fixes issue where e.g. drag and dropping an item and scrolling ensure the item source location is + still submitted. (#3841, #1725) [@GamingMinds-DanielC, @ocornut] +- Clipper: added ForceDisplayRangeByIndices() to force a given item (or several) to be stepped out + during a clipping operation. (#3841) [@GamingMinds-DanielC] +- Clipper: rework so gamepad/keyboard navigation doesn't create spikes in number of items requested + by the clipper to display. (#3841) +- Clipper: fixed content height declaration slightly mismatching the value of when not using a clipper. + (an additional ItemSpacing.y was declared, affecting scrollbar range). +- Clipper: various and incomplete changes to tame down scrolling and precision issues on very large ranges. + Passing an explicit height to the clipper now allows larger ranges. (#3609, #3962). +- Clipper: fixed invalid state when number of frozen table row is smaller than ItemCount. +- Drag and Drop: BeginDragDropSource() with ImGuiDragDropFlags_SourceAllowNullID doesn't lose + tooltip when scrolling. (#143) +- Fonts: fixed infinite loop in ImFontGlyphRangesBuilder::AddRanges() when passing UINT16_MAX or UINT32_MAX + without the IMGUI_USE_WCHAR32 compile-time option. (#4802) [@SlavicPotato] +- Metrics: Added a node showing windows in submission order and showing the Begin() stack. +- Misc: Added missing ImGuiMouseCursor_NotAllowed cursor for software rendering (when the + io.MouseDrawCursor flag is enabled). (#4713) [@nobody-special666] +- Misc: Fixed software mouse cursor being rendered multiple times if Render() is called more than once. +- Misc: Fix MinGW DLL build issue (when IMGUI_API is defined). [@rokups] +- CI: Add MinGW DLL build to test suite. [@rokups] +- Backends: Vulkan: Call vkCmdSetScissor() at the end of render with a full-viewport to reduce + likehood of issues with people using VK_DYNAMIC_STATE_SCISSOR in their app without calling + vkCmdSetScissor() explicitly every frame. (#4644) +- Backends: OpenGL3: Using buffer orphaning + glBufferSubData(), seems to fix leaks with multi-viewports + with some Intel HD drivers, and perhaps improve performances. (#4468, #4504, #2981, #3381) [@parbo] +- Backends: OpenGL2, Allegro5, Marmalade: Fixed mishandling of the ImDrawCmd::IdxOffset field. + This is an old bug, but due to the way we created drawlists, it never had any visible side-effect before. + The new code for handling Modal and CTRL+Tab dimming/whitening recently made the bug surface. (#4790) +- Backends: Win32: Store left/right variants of Ctrl/Shift/Alt mods in KeysDown[] array. (#2625) [@thedmd] +- Backends: DX12: Fixed DRAW_EMPTY_SCISSOR_RECTANGLE warnings. (#4775) +- Backends: SDL_Renderer: Added support for large meshes (64k+ vertices) with 16-bit indices, + enabling 'ImGuiBackendFlags_RendererHasVtxOffset' in the backend. (#3926) [@rokups] +- Backends: SDL_Renderer: Fix for SDL 2.0.19+ RenderGeometryRaw() API signature change. (#4819) [@sridenour] +- Backends: OSX: Generally fix keyboard support. Keyboard arrays indexed using kVK_* codes, e.g. + ImGui::IsKeyPressed(kVK_Space). Don't set mouse cursor shape unconditionally. Handle two fingers scroll + cancel event. (#4759, #4253, #1873) [@stuartcarnie] +- Backends: OSX: Add Game Controller support (need linking GameController framework) (#4759) [@stuartcarnie] +- Backends: WebGPU: Passing explicit buffer sizes to wgpuRenderPassEncoderSetVertexBuffer() and + wgpuRenderPassEncoderSetIndexBuffer() functions as validation layers appears to not do what the + in-flux specs says. (#4766) [@meshula] + +Docking+Viewports Branch: + +- Docking: Revert removal of io.ConfigDockingWithShift config option (removed in 1.83). (#4643) +- Docking: Fixed a bug undocking windows docked into a non-visible or _KeepAliveOnly dockspace + when unrelated windows submitted before the dockspace have dynamic visibility. (#4757) +- Docking, Style: Docked windows honor ImGuiCol_WindowBg. (#2700, #2539) +- Docking, Style: Docked windows honor display their border properly. (#2522) +- Docking: Fixed incorrectly rounded tab bars for dock node that are not at the top of their dock tree. +- Docking: Fixed single-frame node pos/size inconsistencies when window stop or start being submitted. +- Docking: Prevent docking any window created above a popup/modal. (#4317) +- Viewports: Made it possible to explicitly assign ImGuiWindowClass::ParentViewportId to 0 in order + to ensure a window is not parented. Previously this would use the global default (which might be 0, + but not always as it would depend on io.ConfigViewportsNoDefaultParent). (#3152, #2871) +- Viewports: Fixed tooltip in own viewport over modal from being incorrectly dimmed. (#4729) +- Viewports: Fixed CTRL+TAB highlight outline on docked windows not always fitting in host viewport. +- Backends: Made it possible to shutdown default Platform Backends before the Renderer backends. (#4656) +- Disabled: Fixed nested BeginDisabled()/EndDisabled() bug in Docking branch due to bad merge. (#4655, #4452, #4453, #4462) + + +----------------------------------------------------------------------- + VERSION 1.85 (Released 2021-10-12) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.85 + +This is the last release officially supporting C++03 and Visual Studio 2008/2010. (#4537) +We expect that the next release will require a subset of the C++11 language (VS 2012~, GCC 4.8.1, Clang 3.3). +We may use some C++11 language features but we will not use any C++ library headers. +If you are stuck on ancient compiler you may need to stay at this version onward. + +Breaking Changes: + +- Removed GetWindowContentRegionWidth() function. Kept inline redirection helper. + Can use 'GetWindowContentRegionMax().x - GetWindowContentRegionMin().x' instead but it's not + very useful in practice, and the only use of it in the demo was illfit. + Using 'GetContentRegionAvail().x' is generally a better choice. +- (Docking branch) IsWindowFocused() and IsWindowHovered() with only the _ChildWindows flag + and without the _RootWindow flag used to leak docking hierarchy, so a docked window would + return as the child of the window hosting the dockspace. This was inconsistent and incorrect + with other behaviors so we fixed it. Added a new _DockHierarchy flag to opt-in this behavior. + +Other Changes: + +- Debug: Stack Tool: Added "Stack Tool" available in "Demo->Tools->Stack Tool", "Metrics->Tools", + or by calling the ShowStackToolWindow() function. The tool run queries on hovered id to display + details about individual components that were hashed to create an ID. It helps understanding + the ID stack system and debugging potential ID collisions. (#4631) [@ocornut, @rokups] +- Windows: Fixed background order of overlapping childs submitted sequentially. (#4493) +- IsWindowFocused: Added ImGuiFocusedFlags_NoPopupHierarchy flag allowing to exclude child popups + from the tested windows when combined with _ChildWindows. +- IsWindowHovered: Added ImGuiHoveredFlags_NoPopupHierarchy flag allowing to exclude child popups + from the tested windows when combined with _ChildWindows. +- InputTextMultiline: Fixed label size not being included into window contents rect unless + the whole widget is clipped. +- InputText: Allow activating/cancelling/validating input with gamepad nav events. (#2321, #4552) +- InputText: Fixed selection rectangle appearing one frame late when selecting all. +- TextUnformatted: Accept null ranges including (NULL,NULL) without asserting, in order to conform + to common idioms (e.g. passing .data(), .data() + .size() from a null string). (#3615) +- Disabled: Added assert guard for mismatching BeginDisabled()/EndDisabled() blocks. (#211) +- Nav: Fixed using SetKeyboardFocusHere() on non-visible/clipped items. It now works and will scroll + toward the item. When called during a frame where the parent window is appearing, scrolling will + aim to center the item in the window. When calling during a frame where the parent window is already + visible, scrolling will aim to scroll as little as possible to make the item visible. We will later + expose scroll functions and flags in public API to select those behaviors. (#343, #4079, #2352) +- Nav: Fixed using SetKeyboardFocusHere() from activating a different item on the next frame if + submitted items have changed during that frame. (#432) +- Nav: Fixed toggling menu layer with Alt or exiting menu layer with Esc not moving mouse when + the ImGuiConfigFlags_NavEnableSetMousePos config flag is set. +- Nav: Fixed a few widgets from not setting reference keyboard/gamepad navigation ID when + activated with mouse. More specifically: BeginTabItem(), the scrolling arrows of BeginTabBar(), + the arrow section of TreeNode(), the +/- buttons of InputInt()/InputFloat(), Selectable() with + ImGuiSelectableFlags_SelectOnRelease. More generally: any direct use of ButtonBehavior() with + the PressedOnClick/PressedOnDoubleClick/PressedOnRelease button policy. +- Nav: Fixed an issue with losing focus on docked windows when pressing Alt while keyboard navigation + is disabled. (#4547, #4439) [@PathogenDavid] +- Nav: Fixed vertical scoring offset when wrapping on Y in a decorated window. +- Nav: Improve scrolling behavior when navigating to an item larger than view. +- TreePush(): removed unnecessary/inconsistent legacy behavior where passing a NULL value to + the TreePush(const char*) and TreePush(const void*) functions would use an hard-coded replacement. + The only situation where that change would make a meaningful difference is TreePush((const char*)NULL) + (_explicitly_ casting a null pointer to const char*), which is unlikely and will now crash. + You may replace it with anything else. +- ColorEdit4: Fixed not being able to change hue when saturation is 0. (#4014) [@rokups] +- ColorEdit4: Fixed hue resetting to 0 when it is set to 255. [@rokups] +- ColorEdit4: Fixed hue value jitter when source color is stored as RGB in 32-bit integer and perform + RGB<>HSV round trips every frames. [@rokups] +- ColorPicker4: Fixed picker being unable to select exact 1.0f color when dragging toward the edges + of the SV square (previously picked 0.999989986f). (#3517) [@rokups] +- Menus: Fixed vertical alignments of MenuItem() calls within a menu bar (broken in 1.84). (#4538) +- Menus: Improve closing logic when moving diagonally in empty between between parent and child menus to + accommodate for varying font size and dpi. +- Menus: Fixed crash when navigating left inside a child window inside a sub-menu. (#4510). +- Menus: Fixed an assertion happening in some situations when closing nested menus (broken in 1.83). (#4640) +- Drag and Drop: Fixed using BeginDragDropSource() inside a BeginChild() that returned false. (#4515) +- PlotHistogram: Fixed zero-line position when manually specifying min<0 and max>0. (#4349) [@filippocrocchini] +- Misc: Added asserts for missing PopItemFlag() calls. +- Misc: Fixed printf-style format checks on Clang+MinGW. (#4626, #4183, #3592) [@guusw] +- IO: Added 'io.WantCaptureMouseUnlessPopupClose' alternative to `io.WantCaptureMouse'. (#4480) + This allows apps to receive the click on void when that click is used to close popup (by default, + clicking on a void when a popup is open will close the popup but not release io.WantCaptureMouse). +- Fonts: imgui_freetype: Fixed crash when FT_Render_Glyph() fails to render a glyph and returns NULL + (which apparently happens with Freetype 2.11). (#4394, #4145?). +- Fonts: Fixed ImFontAtlas::ClearInputData() marking atlas as not built. (#4455, #3487) +- Backends: Added more implicit asserts to detect invalid/redundant calls to Shutdown functions. (#4562) +- Backends: OpenGL3: Fixed our custom GL loader conflicting with user using GL3W. (#4445) [@rokups] +- Backends: WebGPU: Fixed for latest specs. (#4472, #4512) [@Kangz, @bfierz] +- Backends: SDL_Renderer: Added SDL_Renderer backend compatible with upcoming SDL 2.0.18. (#3926) [@1bsyl] +- Backends: Metal: Fixed a crash when clipping rect larger than framebuffer is submitted via + a direct unclipped PushClipRect() call. (#4464) +- Backends: OSX: Use mach_absolute_time as CFAbsoluteTimeGetCurrent can jump backwards. (#4557, #4563) [@lfnoise] +- Backends: All renderers: Normalize clipping rect handling across backends. (#4464) +- Examples: Added SDL + SDL_Renderer example in "examples/example_sdl_sdlrenderer/" folder. (#3926) [@1bsyl] + +Docking+Viewports Branch: + +- IsWindowFocused: Fixed using ImGuiFocusedFlags_ChildWindows (without _RootWindow) from leaking the + docking hierarchy. Added ImGuiFocusedFlags_DockHierarchy flag to consider docking hierarchy in the test. +- IsWindowHovered: Fixed using ImGuiHoveredFlags_ChildWindows (without _RootWindow) from leaking the + docking hierarchy. Added ImGuiHoveredFlags_DockHierarchy flag to consider docking hierarchy in the test. +- Nav: Fixed an issue with losing focus on docked windows when pressing Alt while keyboard navigation + is disabled. (#4547, #4439) [@PathogenDavid] +- Docking: Fixed IsItemHovered() and functions depending on it (e.g. BeginPopupContextItem()) when + called after Begin() on a docked window (broken 2021/03/04). (#3851) +- Docking: Improved resizing system so that non-central zone are better at keeping their fixed size. + The algorithm is still not handling the allocation of size ideally for nested sibling, but it got better. +- Docking: Fixed settings load issue when mouse wheeling. (#4310) +- Docking: Fixed manually created floating node with a central node from not hiding when windows are gone. +- Docking + Drag and Drop: Fixed using BeginDragDropSource() or BeginDragDropTarget() inside a Begin() + that returned false because the window is docked. (#4515) +- Viewports: Fixed a crash while a window owning its viewport disappear while being dragged. + It would manifest when e.g. reconfiguring dock nodes while dragging. +- Viewports: Fixed unnecessary creation of temporary viewports when multiple docked windows + got reassigned to a new node (created mid-frame) which already has a HostWindow. +- Viewports: Fixed window with viewport ini data immediately merged into a host viewport from + leaving a temporary viewport alive for a frame (would leak into backend). + + +----------------------------------------------------------------------- + VERSION 1.84.2 (Released 2021-08-23) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.84.2 + +- Disabled: Fixed nested BeginDisabled()/EndDisabled() calls. (#211, #4452, #4453, #4462) [@Legulysse] +- Backends: OpenGL3: OpenGL: Fixed ES 3.0 shader ("#version 300 es") to use normal precision + floats. Avoid wobbly rendering at HD resolutions. (#4463) [@nicolasnoble] + + +----------------------------------------------------------------------- + VERSION 1.84.1 (Released 2021-08-20) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.84.1 + +- Disabled: Fixed BeginDisabled(false) - BeginDisabled(true) was working. (#211, #4452, #4453) + + +----------------------------------------------------------------------- + VERSION 1.84 (Released 2021-08-20) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.84 + +Breaking Changes: + +- Commented out redirecting functions/enums names that were marked obsolete in 1.67 and 1.69 (March 2019): + - ImGui::GetOverlayDrawList() -> use ImGui::GetForegroundDrawList() + - ImFont::GlyphRangesBuilder -> use ImFontGlyphRangesBuilder +- Backends: OpenGL3: added a third source file "imgui_impl_opengl3_loader.h". (#4445) [@rokups] +- Backends: GLFW: backend now uses glfwSetCursorEnterCallback(). (#3751, #4377, #2445) +- Backends: GLFW: backend now uses glfwSetWindowFocusCallback(). (#4388) [@thedmd] + - If calling ImGui_ImplGlfw_InitXXX with install_callbacks=true: this is already done for you. + - If calling ImGui_ImplGlfw_InitXXX with install_callbacks=false: you WILL NEED to register the GLFW callbacks + and forward them to the backend: + - Register glfwSetCursorEnterCallback, forward events to ImGui_ImplGlfw_CursorEnterCallback(). + - Register glfwSetWindowFocusCallback, forward events to ImGui_ImplGlfw_WindowFocusCallback(). +- Backends: SDL2: removed unnecessary SDL_Window* parameter from ImGui_ImplSDL2_NewFrame(). (#3244) [@funchal] + Kept inline redirection function (will obsolete). +- Backends: SDL2: backend needs to set 'SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1")' in order to + receive mouse clicks events on window focus, otherwise SDL doesn't emit the event. (#3751, #4377, #2445) + This is unfortunately a global SDL setting, so enabling it _might_ have a side-effect on your application. + It is unlikely to make a difference, but if your app absolutely needs to ignore the initial on-focus click: + you can ignore SDL_MOUSEBUTTONDOWN events coming right after a SDL_WINDOWEVENT_FOCUS_GAINED event). +- Internals: (for custom widgets): because disabled items now sets HoveredId, if you want custom widgets to + not react as hovered when disabled, in the majority of use cases it is preferable to check the "hovered" + return value of ButtonBehavior() rather than (HoveredId == id). + +Other Changes: + +- IO: Added io.AddFocusEvent() api for backend to tell when host window has gained/lost focus. (#4388) [@thedmd] + If you use a custom backend, consider adding support for this! +- Disabled: added BeginDisabled()/EndDisabled() api to create a scope where interactions are disabled. (#211) + - Added style.DisabledAlpha (default to 0.60f) and ImGuiStyleVar_DisabledAlpha. (#211) + - Unlike the internal-and-undocumented-but-somehow-known PushItemFlag(ImGuiItemFlags_Disabled), this also alters + visuals. Currently this is done by lowering alpha of all widgets. Future styling system may do that differently. + - Disabled items set HoveredId, allowing e.g. HoveredIdTimer to run. (#211, #3419) [@rokups] + - Disabled items more consistently release ActiveId if the active item got disabled. (#211) + - Nav: Fixed disabled items from being candidate for default focus. (#211, #787) + - Fixed Selectable() selection not showing when disabled. (#211) + - Fixed IsItemHovered() returning true on disabled item when navigated to. (#211) + - Fixed IsItemHovered() when popping disabled state after item, or when using Selectable_Disabled. (#211) +- Windows: ImGuiWindowFlags_UnsavedDocument/ImGuiTabItemFlags_UnsavedDocument displays a dot instead of a '*' so it + is independent from font style. When in a tab, the dot is displayed at the same position as the close button. + Added extra comments to clarify the purpose of this flag in the context of docked windows. +- Tables: Added ImGuiTableColumnFlags_Disabled acting a master disable over (hidden from user/context menu). (#3935) +- Tables: Clarified that TableSetColumnEnabled() requires the table to use the ImGuiTableFlags_Hideable flag, + because it manipulates the user-accessible show/hide state. (#3935) +- Tables: Added ImGuiTableColumnFlags_NoHeaderLabel to request TableHeadersRow() to not submit label for a column. + Convenient for some small columns. Name will still appear in context menu. (#4206). +- Tables: Fixed columns order on TableSetupScrollFreeze() if previous data got frozen columns out of their section. +- Tables: Fixed invalid data in TableGetSortSpecs() when SpecsDirty flag is unset. (#4233) +- Tabs: Fixed using more than 32 KB-worth of tab names. (#4176) +- InputInt/InputFloat: When used with Steps values and _ReadOnly flag, the step button look disabled. (#211) +- InputText: Fixed named filtering flags disabling newline or tabs in multiline inputs (#4409, #4410) [@kfsone] +- Drag and Drop: drop target highlight doesn't try to bypass host clipping rectangle. (#4281, #3272) +- Drag and Drop: Fixed using AcceptDragDropPayload() with ImGuiDragDropFlags_AcceptNoPreviewTooltip. [@JeffM2501] +- Menus: MenuItem() and BeginMenu() are not affected/overlapping when style.SelectableTextAlign is altered. +- Menus: Fixed hovering a disabled menu or menu item not closing other menus. (#211) +- Popups: Fixed BeginPopup/OpenPopup sequence failing when there are no focused windows. (#4308) [@rokups] +- Nav: Alt doesn't toggle menu layer if other modifiers are held. (#4439) +- Fixed printf-style format checks on non-MinGW flavors. (#4183, #3592) +- Fonts: Functions with a 'float size_pixels' parameter can accept zero if it is set in ImFontSize::SizePixels. +- Fonts: Prefer using U+FFFD character for fallback instead of '?', if available. (#4269) +- Fonts: Use U+FF0E dot character to construct an ellipsis if U+002E '.' is not available. (#4269) +- Fonts: Added U+FFFD ("replacement character") to default asian glyphs ranges. (#4269) +- Fonts: Fixed calling ClearTexData() (clearing CPU side font data) triggering an assert in NewFrame(). (#3487) +- DrawList: Fixed AddCircle/AddCircleFilled() with auto-tesselation not using accelerated paths for small circles. + Fixed AddCircle/AddCircleFilled() with 12 segments which had a broken edge. (#4419, #4421) [@thedmd] +- Demo: Fixed requirement in 1.83 to link with imgui_demo.cpp if IMGUI_DISABLE_METRICS_WINDOW is not set. (#4171) + Normally the right way to disable compiling the demo is to set IMGUI_DISABLE_DEMO_WINDOWS, but we want to avoid + implying that the file is required. +- Metrics: Fixed a crash when inspecting the individual draw command of a foreground drawlist. [@rokups] +- Backends: Reorganized most backends (Win32, SDL, GLFW, OpenGL2/3, DX9/10/11/12, Vulkan, Allegro) to pull their + data from a single structure stored inside the main Dear ImGui context. This facilitate/allow usage of standard + backends with multiple-contexts BUT is only partially tested and not well supported. It is generally advised to + instead use the multi-viewports feature of docking branch where a single Dear ImGui context can be used across + multiple windows. (#586, #1851, #2004, #3012, #3934, #4141) +- Backends: Win32: Rework to handle certain Windows 8.1/10 features without a manifest. (#4200, #4191) + - ImGui_ImplWin32_GetDpiScaleForMonitor() will handle per-monitor DPI on Windows 10 without a manifest. + - ImGui_ImplWin32_EnableDpiAwareness() will call SetProcessDpiAwareness() fallback on Windows 8.1 without a manifest. +- Backends: Win32: IME functions are disabled by default for non-Visual Studio compilers (MinGW etc.). Enable with + '#define IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS' for those compilers. Undo change from 1.82. (#2590, #738, #4185, #4301) +- Backends: Win32: Mouse position is correctly reported when the host window is hovered but not focused. (#2445, #2696, #3751, #4377) +- Backends: Win32, SDL2, GLFW, OSX, Allegro: now calling io.AddFocusEvent() on focus gain/loss. (#4388) [@thedmd] + This allow us to ignore certain inputs on focus loss (previously relied on mouse loss but backends are now + reporting mouse even when host window is unfocused, as per #2445, #2696, #3751, #4377) +- Backends: Fixed keyboard modifiers being reported when host window doesn't have focus. (#2622) +- Backends: GLFW: Mouse position is correctly reported when the host window is hovered but not focused. (#3751, #4377, #2445) + (backend now uses glfwSetCursorEnterCallback(). If you called ImGui_ImplGlfw_InitXXX with install_callbacks=false, you will + need to install this callback and forward the data to the backend via ImGui_ImplGlfw_CursorEnterCallback). +- Backends: SDL2: Mouse position is correctly reported when the host window is hovered but not focused. (#3751, #4377, #2445) + (enabled with SDL 2.0.5+ as SDL_GetMouseFocus() is only usable with SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH). +- Backends: DX9: Explicitly disable texture state stages after >= 1. (#4268) [@NZJenkins] +- Backends: DX12: Fix texture casting crash on 32-bit systems (introduced on 2021/05/19 and v1.83) + added comments + about building on 32-bit systems. (#4225) [@kingofthebongo2008] +- Backends: OpenGL3: Embed our own minimal GL headers/loader (imgui_impl_opengl3_loader.h) based on gl3w. + Reduces the frequent issues and confusion coming from having to support multiple loaders and requiring users to use and + initialize the same loader as the backend. (#4445) [@rokups] + Removed support for gl3w, glew, glad, glad2, glbinding2, glbinding3 (all now unnecessary). +- Backends: OpenGL3: Handle GL_CLIP_ORIGIN on <4.5 contexts if "GL_ARB_clip_control" extension is detected. (#4170, #3998) +- Backends: OpenGL3: Destroy vertex/fragment shader objects right after they are linked into main shader. (#4244) [@Crowbarous] +- Backends: OpenGL3: Use OES_vertex_array extension on Emscripten + backup/restore current state. (#4266, #4267) [@harry75369] +- Backends: GLFW: Installing and exposed ImGui_ImplGlfw_MonitorCallback() for forward compatibility with docking branch. +- Backends: OSX: Added a fix for shortcuts using CTRL key instead of CMD key. (#4253) [@rokups] +- Examples: DX12: Fixed handling of Alt+Enter in example app (using swapchain's ResizeBuffers). (#4346) [@PathogenDavid] +- Examples: DX12: Removed unnecessary recreation of backend-owned device objects when window is resized. (#4347) [@PathogenDavid] +- Examples: OpenGL3+GLFW,SDL: Remove include cruft to support variety of GL loaders (no longer necessary). [@rokups] +- Examples: OSX+OpenGL2: Fix event forwarding (fix key remaining stuck when using shortcuts with Cmd/Super key). + Other OSX examples were not affected. (#4253, #1873) [@rokups] +- Examples: Updated all .vcxproj to VS2015 (toolset v140) to facilitate usage with vcpkg. +- Examples: SDL2: Accommodate for vcpkg install having headers in SDL2/SDL.h vs SDL.h. + +Docking+Viewports Branch: + +- Docking: Clicking on the right-most close button of a docking node closes all windows. (#4186) +- Docking: Fix IsWindowAppearing() and ImGuiCond_Appearing on docked windows. (#4177, #3982, #1497, #1061) +- Docking: Fix crash using DockBuilderRemoveNode() in some situations. (#3111, #3179, #3203, #4295) [@hsimyu] +- Docking: Fix crash when a dock node gets re-qualified as dockspace>floating>dockspace, which tends to happen + when incorrectly calling DockBuilderAddNode() without ImGuiDockNodeFlags_Dockspace and using it as a Dockspace + on the next frame after the floating window hosting the node has been automatically created. (#3203, #4295) +- Docking: Reworked node flags saving/inheritance so that flags enforced by docked windows via the + DockNodeFlagsOverrideSet mechanism are are not left in empty dockspace nodes once the windows gets undocked. + (#4292, #3834, #3633, #3521, #3492, #3335, #2999, #2648) +- Docking: (Internal/Experimental) Removed DockNodeFlagsOverrideClear flags from ImGuiWindowClass as + it is ambiguous how to apply them and we haven't got a use out of them yet. +- Docking: Fixed ImGuiWindowFlags_UnsavedDocument clipping label in docked windows when there are + no close button. (#5745) +- Viewports: Fix popup/tooltip created without a parent window from being given a ParentViewportId value + from the implicit/fallback window. (#4236, #2409) +- Backends: Vulkan: Fix the use of the incorrect fence for secondary viewports. (#4208) [@FunMiles] + + +----------------------------------------------------------------------- + VERSION 1.83 (Released 2021-05-24) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.83 + +Breaking Changes: + +- Backends: Obsoleted direct access to ImDrawCmd::TextureId in favor of calling ImDrawCmd::GetTexID(). (#3761) [@thedmd] + - If you are using official backends from the source tree: you have nothing to do. + - If you copied old backend code or using your own: change access to draw_cmd->TextureId to draw_cmd->GetTexID(). + Why are we doing this? + - This change will be required in the future when adding support for incremental texture atlas updates. + - Please note this won't break soon, but we are making the change ahead of time. + +Other Changes: + +- Scrolling: Fix scroll tracking with e.g. SetScrollHereX/Y() when WindowPadding < ItemSpacing. +- Scrolling: Fix scroll snapping on edge of scroll region when both scrollbars are enabled. +- Scrolling: Fix mouse wheel axis swap when using SHIFT on macOS (system already does it). (#4010) +- Window: Fix IsWindowAppearing() from returning true twice in most cases. (#3982, #1497, #1061) +- Nav: Fixed toggling menu layer while an InputText() is active not stealing active id. (#787) +- Nav: Fixed pressing Escape to leave menu layer while in a popup or child window. (#787) +- Nav, InputText: Fixed accidental menu toggling while typing non-ascii characters using AltGR. [@rokups] (#370) +- Nav: Fixed using SetItemDefaultFocus() on windows with _NavFlattened flag. (#787) +- Nav: Fixed Tabbing initial activation from skipping the first item if it is tabbable through. (#787) +- Nav: Fixed fast CTRL+Tab (where keys are only held for one single frame) from properly enabling the + menu layer of target window if it doesn't have other active layers. +- Tables: Expose TableSetColumnEnabled() in public api. (#3935) +- Tables: Better preserve widths when columns count changes. (#4046) +- Tables: Sharing more memory buffers between tables, reducing general memory footprints. (#3740) +- Tabs: Fixed mouse reordering with very fast movements (e.g. crossing multiple tabs in a single + frame and then immediately standing still (would only affect automation/bots). [@rokups] +- Menus: made MenuItem() in a menu bar reflect the 'selected' argument with a highlight. (#4128) [@mattelegende] +- Drags, Sliders, Inputs: Specifying a NULL format to Float functions default them to "%.3f" to be + consistent with the compile-time default. (#3922) +- DragScalar: Add default value for v_speed argument to match higher-level functions. (#3922) [@eliasdaler] +- ColorEdit4: Alpha default to 255 (instead of 0) when omitted in hex input. (#3973) [@squadack] +- InputText: Fix handling of paste failure (buffer full) which in some cases could corrupt the undo stack. (#4038) + (fix submitted to https://github.com/nothings/stb/pull/1158) [@Unit2Ed, @ocornut] +- InputText: Do not filter private unicode codepoints (e.g. icons) when pasted from clipboard. (#4005) [@dougbinks] +- InputText: Align caret/cursor to pixel coordinates. (#4080) [@elvissteinjr] +- InputText: Fixed CTRL+Arrow or OSX double-click leaking the presence of spaces when ImGuiInputTextFlags_Password + is used. (#4155, #4156) [@michael-swan] +- LabelText: Fixed clipping of multi-line value text when label is single-line. (#4004) +- LabelText: Fixed vertical alignment of single-line value text when label is multi-line. (#4004) +- Combos: Changed the combo popup to use a different id to also using a context menu with the default item id. + Fixed using BeginPopupContextItem() with no parameter after a combo. (#4167) +- Popups: Added 'OpenPopup(ImGuiID id)' overload to facilitate calling from nested stacks. (#3993, #331) [@zlash] +- Tweak computation of io.Framerate so it is less biased toward high-values in the first 120 frames. (#4138) +- Optimization: Disabling some of MSVC most aggressive Debug runtime checks for some simple/low-level functions + (e.g. ImVec2, ImVector) leading to a 10-20% increase of performances with MSVC "default" Debug settings. +- ImDrawList: Add and use SSE-enabled ImRsqrt() in place of 1.0f / ImSqrt(). (#4091) [@wolfpld] +- ImDrawList: Fixed/improved thickness of thick strokes with sharp angles. (#4053, #3366, #2964, #2868, #2518, #2183) + Effectively introduced a regression in 1.67 (Jan 2019), and a fix in 1.70 (Apr 2019) but the fix wasn't actually on + par with original version. Now incorporating the correct revert. +- ImDrawList: Fixed PathArcTo() regression from 1.82 preventing use of counter-clockwise angles. (#4030, #3491) [@thedmd] +- Demo: Improved popups demo and comments. +- Metrics: Added "Fonts" section with same information as available in "Style Editor">"Fonts". +- Backends: SDL2: Rework global mouse pos availability check listing supported platforms explicitly, + effectively fixing mouse access on Raspberry Pi. (#2837, #3950) [@lethal-guitar, @hinxx] +- Backends: Win32: Clearing keyboard down array when losing focus (WM_KILLFOCUS). (#2062, #3532, #3961) + [@1025798851] +- Backends: OSX: Fix keys remaining stuck when CMD-tabbing to a different application. (#3832) [@rokups] +- Backends: DirectX9: calling IDirect3DStateBlock9::Capture() after CreateStateBlock() which appears to + workaround/fix state restoring issues. Unknown exactly why so, bit of a cargo-cult fix. (#3857) +- Backends: DirectX9: explicitly setting up more graphics states to increase compatibility with unusual + non-default states. (#4063) +- Backends: DirectX10, DirectX11: fixed a crash when backing/restoring state if nothing is bound when + entering the rendering function. (#4045) [@Nemirtingas] +- Backends: GLFW: Adding bound check in KeyCallback because GLFW appears to send -1 on some setups. [#4124] +- Backends: Vulkan: Fix mapped memory Vulkan validation error when buffer sizes are not multiple of + VkPhysicalDeviceLimits::nonCoherentAtomSize. (#3957) [@AgentX1994] +- Backends: WebGPU: Update to latest specs (Chrome Canary 92 and Emscripten 2.0.20). (#4116, #3632) [@bfierz, @Kangz] +- Backends: OpenGL3: Don't try to read GL_CLIP_ORIGIN unless we're OpenGL 4.5. (#3998, #2366, #2186) [@s7jones] +- Examples: OpenGL: Add OpenGL ES 2.0 support to modern GL examples. (#2837, #3951) [@lethal-guitar, @hinxx] +- Examples: Vulkan: Rebuild swapchain on VK_SUBOPTIMAL_KHR. (#3881) +- Examples: Vulkan: Prefer using discrete GPU if there are more than one available. (#4012) [@rokups] +- Examples: SDL2: Link with shell32.lib required by SDL2main.lib since SDL 2.0.12. [#3988] +- Examples: Android: Make Android example build compatible with Gradle 7.0. (#3446) +- Docs: Improvements to description of using colored glyphs/emojis. (#4169, #3369) +- Docs: Improvements to minor mistakes in documentation comments (#3923) [@ANF-Studios] + +Docking+Viewports Branch: + +- [Breaking] Removed io.ConfigDockingWithShift config option. Behavior always equivalent to having the + option set to false (dock/undock by default, hold shift to avoid docking). (#2109) +- Docking: DockSpace() returns its node ID. +- Docking: Dockspace() never draws a background. (#3924) +- Docking: Undocking nodes/windows covering most of the monitor max their size down to 90% to ease manipulations. +- Docking: Docking node tab bar honors ItemInnerSpacing.x before first tab. (#4130) +- Docking: Tweak rendering and alignment of dock node menu marker. (#4130) +- Docking: Fixed restoring of tab order within a dockspace or a split node. +- Docking: Fixed reappearing docked windows with no close button showing a tab with extraneous space for one frame. +- Docking: Fixed multiple simultaneously reappearing window from appearing undocked for one frame. +- Viewports: Hotfix for crash in monitor array access, caused by 4b9bc4902. (#3967) +- Backends, Viewports: GLFW: Add a workaround for stuck keys after closing a GLFW window (#3837). +- Backends, Viewports: Vulkan: Rebuild swapchain on VK_SUBOPTIMAL_KHR. (#3881) + + +----------------------------------------------------------------------- + VERSION 1.82 (Released 2021-02-15) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.82 + +Breaking Changes: + +- Removed redirecting functions/enums names that were marked obsolete in 1.66 (September 2018): + - ImGui::SetScrollHere() --> use ImGui::SetScrollHereY() +- ImDrawList: upgraded AddPolyline()/PathStroke()'s "bool closed" parameter to use "ImDrawFlags flags". + - bool closed = false --> use ImDrawFlags_None, or 0 + - bool closed = true --> use ImDrawFlags_Closed + The matching ImDrawFlags_Closed value is guaranteed to always stay == 1 in the future. + Difference may not be noticeable for most but zealous type-checking tools may report a need to change. +- ImDrawList: upgraded AddRect(), AddRectFilled(), PathRect() to use ImDrawFlags instead of ImDrawCornersFlags. + - ImDrawCornerFlags_TopLeft --> use ImDrawFlags_RoundCornersTopLeft + - ImDrawCornerFlags_BotRight --> use ImDrawFlags_RoundCornersBottomRight + - ImDrawCornerFlags_None --> use ImDrawFlags_RoundCornersNone etc. + Flags now sanely defaults to 0 instead of 0x0F, consistent with all other flags in the API. + IMPORTANT: The default with rounding > 0.0f is now "round all corners" vs old implicit "round no corners": + - rounding == 0.0f + flags == 0 --> meant no rounding --> unchanged (common use) + - rounding > 0.0f + flags != 0 --> meant rounding --> unchanged (common use) + - rounding == 0.0f + flags != 0 --> meant no rounding --> unchanged (unlikely use) + - rounding > 0.0f + flags == 0 --> meant no rounding --> BREAKING (unlikely use)! + - this ONLY matters for hardcoded use of 0 with rounding > 0.0f. + - fix by using named ImDrawFlags_RoundCornersNone or rounding == 0.0f! + - this is technically the only real breaking change which we can't solve automatically (it's also uncommon). + The old ImDrawCornersFlags used awkward default values of ~0 or 0xF (4 lower bits set) to signify "round all corners" + and we sometimes encouraged using them as shortcuts. As a result the legacy path still support use of hardcoded ~0 + or any value from 0x1 or 0xF. They will behave the same with legacy paths enabled (will assert otherwise). + Courtesy of legacy untangling commity: [@rokups, @ocornut, @thedmd] +- ImDrawList: clarified that PathArcTo()/PathArcToFast() won't render with radius < 0.0f. Previously it sorts + of accidentally worked but would lead to counter-clockwise paths which and have an effect on anti-aliasing. +- InputText: renamed ImGuiInputTextFlags_AlwaysInsertMode to ImGuiInputTextFlags_AlwaysOverwrite, old name was an + incorrect description of behavior. Was ostly used by memory editor. Kept inline redirection function. (#2863) +- Moved 'misc/natvis/imgui.natvis' to 'misc/debuggers/imgui.natvis' as we will provide scripts for other debuggers. +- Style: renamed rarely used style.CircleSegmentMaxError (old default = 1.60f) + to style.CircleTessellationMaxError (new default = 0.30f) as its meaning changed. (#3808) [@thedmd] +- Win32+MinGW: Re-enabled IME functions by default even under MinGW. In July 2016, issue #738 had me incorrectly + disable those default functions for MinGW. MinGW users should: either link with -limm32, either set their + imconfig file with '#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS'. (#2590, #738) [@actboy168] + *EDIT* Undid in 1.84. +- Backends: Win32: Pragma linking with dwmapi.lib (Vista-era, ~9 kb). MinGW users will need to link with -ldwmapi. + +Other Changes: + +- Window, Nav: Fixed crash when calling SetWindowFocus(NULL) at the time a new window appears. (#3865) [@nem0] +- Window: Shrink close button hit-testing region when it covers an abnormally high portion of the window visible + area (e.g. when window is collapsed + moved in a corner) to facilitate moving the window away. (#3825) +- Nav: Various fixes for losing gamepad/keyboard navigation reference point when a window reappears or + when it appears while gamepad/keyboard are not being used. (#787) +- Drags: Fixed crash when using DragScalar() directly (not via common wrapper like DragFloat() etc.) + with ImGuiSliderFlags_AlwaysClamp + only one of either p_min or p_max set. (#3824) [@harry75369] +- Drags, Sliders: Fixed a bug where editing value would use wrong number if there were digits right after + format specifier (e.g. using "%f123" as a format string). [@rokups] +- Drags, Sliders: Fixed a bug where using custom formatting flags (',$,_) supported by stb_sprintf.h + would cause incorrect value to be displayed. (#3604) [@rokups] +- Drags, Sliders: Support ImGuiSliderFlags_Logarithmic flag with integers. Because why not? (#3786) +- Tables: Fixed unaligned accesses when using TableSetBgColor(ImGuiTableBgTarget_CellBg). (#3872) +- IsItemHovered(): fixed return value false positive when used after EndChild(), EndGroup() or widgets using + either of them, when the hovered location is located within a child window, e.g. InputTextMultiline(). + This is intended to have no side effects, but brace yourself for the possible comeback.. (#3851, #1370) +- Drag and Drop: can use BeginDragDropSource() for other than the left mouse button as long as the item + has an ID (for ID-less items will add new functionalities later). (#1637, #3885) +- ImFontAtlas: Added 'bool TexPixelsUseColors' output to help backend decide of underlying texture format. (#3369) + This can currently only ever be set by the Freetype renderer. +- imgui_freetype: Added ImGuiFreeTypeBuilderFlags_Bitmap flag to request Freetype loading bitmap data. + This may have an effect on size and must be called with correct size values. (#3879) [@metarutaiga] +- ImDrawList: PathArcTo() now supports "int num_segments = 0" (new default) and adaptively tessellate. + The adaptive tessellation uses look up tables, tends to be faster than old PathArcTo() while maintaining + quality for large arcs (tessellation quality derived from "style.CircleTessellationMaxError") (#3491) [@thedmd] +- ImDrawList: PathArcToFast() also adaptively tessellate efficiently. This means that large rounded corners + in e.g. hi-dpi settings will generally look better. (#3491) [@thedmd] +- ImDrawList: AddCircle, AddCircleFilled(): Tweaked default segment count calculation to honor MaxError + with more accuracy. Made default segment count always even for better looking result. (#3808) [@thedmd] +- Misc: Added GetAllocatorFunctions() to facilitate sharing allocators across DLL boundaries. (#3836) +- Misc: Added 'debuggers/imgui.gdb' and 'debuggers/imgui.natstepfilter' (along with existing 'imgui.natvis') + scripts to configure popular debuggers into skipping trivial functions when using StepInto. [@rokups] +- Backends: Android: Added native Android backend. (#3446) [@duddel] +- Backends: Win32: Added ImGui_ImplWin32_EnableAlphaCompositing() to facilitate experimenting with + alpha compositing and transparent windows. (#2766, #3447 etc.). +- Backends: OpenGL, Vulkan, DX9, DX10, DX11, DX12, Metal, WebGPU, Allegro: Rework blending equation to + preserve alpha in output buffer (using SrcBlendAlpha = ONE, DstBlendAlpha = ONE_MINUS_SRC_ALPHA consistently + accross all backends), facilitating compositing of the output buffer with another buffer. + (#2693, #2764, #2766, #2873, #3447, #3813, #3816) [@ocornut, @thedmd, @ShawnM427, @Ubpa, @aiekick] +- Backends: DX9: Fix to support IMGUI_USE_BGRA_PACKED_COLOR. (#3844) [@Xiliusha] +- Backends: DX9: Fix to support colored glyphs, using newly introduced 'TexPixelsUseColors' info. (#3844) +- Examples: Android: Added Android + GL ES3 example. (#3446) [@duddel] +- Examples: Reworked setup of clear color to be compatible with transparent values. +- CI: Use a dedicated "scheduled" workflow to trigger scheduled builds. Forks may disable this workflow if + scheduled builds builds are not required. [@rokups] +- Log/Capture: Added LogTextV, a va_list variant of LogText. [@PathogenDavid] + +Docking+Viewports Branch: + +- Viewports: Fix setting of ImGuiViewportFlags_NoRendererClear. (#3213) +- Viewports: Added GetViewportPlatformMonitor() with a safety net to keep code portable. +- Viewports, Backends: SDL: Fix missing ImGuiBackendFlags_HasSetMousePos flag in docking branch. +- Viewports, Backends: GLFW: Fix application of WantSetMousePos. (#1542, #787) + + +----------------------------------------------------------------------- + VERSION 1.81 (Released 2021-02-10) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.81 + +Breaking Changes: + +- ListBox helpers: + - Renamed ListBoxHeader(const char* label, ImVec2 size) to BeginListBox(). + - Renamed ListBoxFooter() to EndListBox(). + - Removed ListBoxHeader(const char* label, int items_count, int height_in_items = -1) in favor of specifying size. + In the redirection function, made vertical padding consistent regardless of (items_count <= height_in_items) or not. + - Kept inline redirection function for all threes (will obsolete). +- imgui_freetype: + - Removed ImGuiFreeType::BuildFontAtlas(). Kept inline redirection function. + Prefer using '#define IMGUI_ENABLE_FREETYPE', but there's a runtime selection path available too. + - The shared extra flags parameters (very rarely used) are now stored in ImFontAtlas::FontBuilderFlags. + - Renamed ImFontConfig::RasterizerFlags (used by FreeType) to ImFontConfig::FontBuilderFlags. + - Renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API. + +Other Changes: + +- Viewports Added ImGui::GetMainViewport() as a way to get the bounds and work area of the host display. (#3789, #1542) + - In 'master' branch or without multi-viewports feature enabled: + - GetMainViewport()->Pos is always == (0,0) + - GetMainViewport()->Size is always == io.DisplaySize + - In 'docking' branch and with the multi-viewports feature enabled: + - GetMainViewport() will return information from your host Platform Window. + - In the future, we will support a "no main viewport" mode and this may return bounds of your main monitor. + - For forward compatibility with multi-viewports/multi-monitors: + - Code using (0,0) as a way to signify "upper-left of the host window" should use GetMainViewport()->Pos. + - Code using io.DisplaySize as a way to signify "size of the host window" should use GetMainViewport()->Size. + - We are also exposing a work area in ImGuiViewport ('WorkPos', 'WorkSize' vs 'Pos', 'Size' for full area): + - For a Platform Window, the work area is generally the full area minus space used by menu-bars. + - For a Platform Monitor, the work area is generally the full area minus space used by task-bars. + - All of this has been the case in 'docking' branch for a long time. What we've done is merely merging + a small chunk of the multi-viewport logic into 'master' to standardize some concepts ahead of time. +- Tables: Fixed PopItemWidth() or multi-components items not restoring per-colum ItemWidth correctly. (#3760) +- Window: Fixed minor title bar text clipping issue when FramePadding is small/zero and there are no + close button in the window. (#3731) +- SliderInt: Fixed click/drag when v_min==v_max from setting the value to zero. (#3774) [@erwincoumans] + Would also repro with DragFloat() when using ImGuiSliderFlags_Logarithmic with v_min==v_max. +- Menus: Fixed an issue with child-menu auto sizing (issue introduced in 1.80 on 2021/01/25) (#3779) +- InputText: Fixed slightly off ScrollX tracking, noticeable with large values of FramePadding.x. (#3781) +- InputText: Multiline: Fixed padding/cliprect not precisely matching single-line version. (#3781) +- InputText: Multiline: Fixed FramePadding.y worth of vertical offset when aiming with mouse. +- ListBox: Tweaked default height calculation. +- Fonts: imgui_freetype: Facilitated using FreeType integration: [@Xipiryon, @ocornut] + - Use '#define IMGUI_ENABLE_FREETYPE' in imconfig.h should make it work with no other modifications + other than compiling misc/freetype/imgui_freetype.cpp and linking with FreeType. + - Use '#define IMGUI_ENABLE_STB_TRUETYPE' if you somehow need the stb_truetype rasterizer to be + compiled in along with the FreeType one, otherwise it is enabled by default. +- Fonts: imgui_freetype: Added support for colored glyphs as supported by Freetype 2.10+ (for .ttf using CPAL/COLR + tables only). Enable the ImGuiFreeTypeBuilderFlags_LoadColor on a given font. Atlas always output directly + as RGBA8 in this situation. Likely to make sense with IMGUI_USE_WCHAR32. (#3369) [@pshurgal] +- Fonts: Fixed CalcTextSize() width rounding so it behaves more like a ceil. This is in order for text wrapping + to have enough space when provided width precisely calculated with CalcTextSize().x. (#3776) + Note that the rounding of either positions and widths are technically undesirable (e.g. #3437, #791) but + variety of code is currently on it so we are first fixing current behavior before we'll eventually change it. +- Log/Capture: Fix various new line/spacing issue when logging widgets. [@Xipiryon, @ocornut] +- Log/Capture: Improved the ASCII look of various widgets, making large dumps more easily human readable. +- ImDrawList: Fixed AddCircle()/AddCircleFilled() with (rad > 0.0f && rad < 1.0f && num_segments == 0). (#3738) + Would lead to a buffer read overflow. +- ImDrawList: Clarified PathArcTo() need for a_min <= a_max with an assert. +- ImDrawList: Fixed PathArcToFast() handling of a_min > a_max. +- Metrics: Back-ported "Viewports" debug visualizer from 'docking' branch. +- Demo: Added 'Examples->Fullscreen Window' demo using GetMainViewport() values. (#3789) +- Demo: 'Simple Overlay' demo now moves under main menu-bar (if any) using GetMainViewport()'s work area. +- Backends: Win32: Dynamically loading XInput DLL instead of linking with it, facilitate compiling with + old WindowSDK versions or running on Windows 7. (#3646, #3645, #3248, #2716) [@Demonese] +- Backends: Vulkan: Add support for custom Vulkan function loader and VK_NO_PROTOTYPES. (#3759, #3227) [@Hossein-Noroozpour] + User needs to call ImGui_ImplVulkan_LoadFunctions() with their custom loader prior to other functions. +- Backends: Metal: Fixed texture storage mode when building on Mac Catalyst. (#3748) [@Belinsky-L-V] +- Backends: OSX: Fixed mouse position not being reported when mouse buttons other than left one are down. (#3762) [@rokups] +- Backends: WebGPU: Added enderer backend for WebGPU support (imgui_impl_wgpu.cpp) (#3632) [@bfierz] + Please note that WebGPU is currently experimental, will not run on non-beta browsers, and may break. +- Examples: WebGPU: Added Emscripten+WebGPU example. (#3632) [@bfierz] +- Backends: GLFW: Added ImGui_ImplGlfw_InitForOther() initialization call to use with non OpenGL API. (#3632) + +Docking+Viewports Branch: + +- Docking: Fix losing docking information on closed windows for which the hosting node was split. (#3716) [@GamingMinds-DanielC] +- Docking: Fix gap in hit test hole when using ImGuiDockNodeFlags_PassthruCentralNode touching the edge of a viewport. (#3733) +- Viewports: (Breaking) removed ImGuiPlatformIO::MainViewport which is now pretty much unused and duplicate + (and misleading as we will evolve the concept). +- Viewports: (Breaking) turned ImGuiViewport::GetWorkPos(), ImGuiViewport::GetWorkSize() into regular fields + (WorkPos, WorkSize) before exposing in master branch. +- Viewports: Fix issue inferring viewport z-order when new popups gets created. (#3734) + Metrics updates. +- Viewports, Backends: Vulkan: handle VK_ERROR_OUT_OF_DATE_KHR when resizing secondary viewport (#3766, #3758) + + +----------------------------------------------------------------------- + VERSION 1.80 (Released 2021-01-21) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.80 + +Breaking Changes: + +- Added imgui_tables.cpp file! Manually constructed project files will need the new file added! (#3740) +- Backends: moved all backends files (imgui_impl_XXXX.cpp, imgui_impl_XXXX.h) from examples/ to backends/. (#3513) +- Renamed ImDrawList::AddBezierCurve() to ImDrawList::AddBezierCubic(). Kept inline redirection function (will obsolete). +- Renamed ImDrawList::PathBezierCurveTo() to ImDrawList::PathBezierCubicCurveTo(). Kept inline redirection function (will obsolete). +- Removed redirecting functions/enums names that were marked obsolete in 1.60 (April 2018): + - io.RenderDrawListsFn pointer -> use ImGui::GetDrawData() value and call the render function of your backend + - ImGui::IsAnyWindowFocused() -> use ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow) + - ImGui::IsAnyWindowHovered() -> use ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow) + - ImGuiStyleVar_Count_ -> use ImGuiStyleVar_COUNT + - ImGuiMouseCursor_Count_ -> use ImGuiMouseCursor_COUNT +- Removed redirecting functions/enums names that were marked obsolete in 1.61 (May 2018): + - InputFloat (... int decimal_precision ...) -> use InputFloat (... const char* format ...) with format = "%.Xf" where X was value for decimal_precision. + - same for InputFloat2()/InputFloat3()/InputFloat4() variants taking a `int decimal_precision` parameter. +- Removed redirecting functions/enums names that were marked obsolete in 1.63 (August 2018): + - ImGui::IsItemDeactivatedAfterChange() -> use ImGui::IsItemDeactivatedAfterEdit(). + - ImGuiCol_ModalWindowDarkening -> use ImGuiCol_ModalWindowDimBg + - ImGuiInputTextCallback -> use ImGuiTextEditCallback + - ImGuiInputTextCallbackData -> use ImGuiTextEditCallbackData +- If you were still using the old names, while you are cleaning up, considering enabling + IMGUI_DISABLE_OBSOLETE_FUNCTIONS in imconfig.h even temporarily to have a pass at finding + and removing up old API calls, if any remaining. +- Internals: Columns: renamed undocumented/internals ImGuiColumnsFlags_* to ImGuiOldColumnFlags_* to reduce + confusion with Tables API. Keep redirection enums (will obsolete). (#125, #513, #913, #1204, #1444, #2142, #2707) +- Renamed io.ConfigWindowsMemoryCompactTimer to io.ConfigMemoryCompactTimer as the feature now applies + to other data structures. (#2636) + +Other Changes: + +- Tables: added new Tables Beta API as a replacement for old Columns. (#3740, #2957, #125) + Check out 'Demo->Tables' for many demos. + Read API comments in imgui.h for details. Read extra commentary in imgui_tables.cpp. + - Added 16 functions: + - BeginTable(), EndTable() + - TableNextRow(), TableNextColumn(), TableSetColumnIndex() + - TableSetupColumn(), TableSetupScrollFreeze() + - TableHeadersRow(), TableHeader() + - TableGetRowIndex(), TableGetColumnCount(), TableGetColumnIndex(), TableGetColumnName(), TableGetColumnFlags() + - TableGetSortSpecs(), TableSetBgColor() + - Added 3 flags sets: + - ImGuiTableFlags (29 flags for: features, decorations, sizing policies, padding, clipping, scrolling, sorting etc.) + - ImGuiTableColumnFlags (24 flags for: width policies, default settings, sorting options, indentation options etc.) + - ImGuiTableRowFlags (1 flag for: header row) + - Added 2 structures: ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs + - Added 2 enums: ImGuiSortDirection, ImGuiTableBgTarget + - Added 1 style variable: ImGuiStyleVar_CellPadding + - Added 5 style colors: ImGuiCol_TableHeaderBg, ImGuiCol_TableBorderStrong, ImGuiCol_TableBorderLight, ImGuiCol_TableRowBg, ImGuiCol_TableRowBgAlt. +- Tabs: Made it possible to append to an existing tab bar by calling BeginTabBar()/EndTabBar() again. +- Tabs: Fixed using more than 128 tabs in a tab bar (scrolling policy recommended). +- Tabs: Do not display a tooltip if the name already fits over a given tab. (#3521) +- Tabs: Fixed minor/unlikely bug skipping over a button when scrolling left with arrows. +- Tabs: Requested ideal content size (for auto-fit) doesn't affect horizontal scrolling. (#3414) +- Drag and Drop: Fix losing drop source ActiveID (and often source tooltip) when opening a TreeNode() + or CollapsingHeader() while dragging. (#1738) +- Drag and Drop: Fix drag and drop to tie same-size drop targets by chosen the later one. Fixes dragging + into a full-window-sized dockspace inside a zero-padded window. (#3519, #2717) [@Black-Cat] +- Checkbox: Added CheckboxFlags() helper with int* type (internals have a template version, not exposed). +- Clipper: Fixed incorrect end-list positioning when using ImGuiListClipper with 1 item (bug in 1.79). (#3663) [@nyorain] +- InputText: Fixed updating cursor/selection position when a callback altered the buffer in a way + where the byte count is unchanged but the decoded character count changes. (#3587) [@gqw] +- InputText: Fixed switching from single to multi-line while preserving same ID. +- Combo: Fixed using IsItemEdited() after Combo() not matching the return value from Combo(). (#2034) +- DragFloat, DragInt: very slightly increased mouse drag threshold + expressing it as a factor of default value. +- DragFloat, DragInt: added experimental io.ConfigDragClickToInputText feature to enable turning DragXXX widgets + into text input with a simple mouse click-release (without moving). (#3737) +- Nav: Fixed IsItemFocused() from returning false when Nav highlight is hidden because mouse has moved. + It's essentially been always the case but it doesn't make much sense. Instead we will aim at exposing + feedback and control of keyboard/gamepad navigation highlight and mouse hover disable flag. (#787, #2048) +- Metrics: Fixed mishandling of ImDrawCmd::VtxOffset in wireframe mesh renderer. +- Metrics: Rebranded as "Dear ImGui Metrics/Debugger" to clarify its purpose. +- ImDrawList: Added ImDrawList::AddQuadBezierCurve(), ImDrawList::PathQuadBezierCurveTo() quadratic bezier + helpers. (#3127, #3664, #3665) [@aiekick] +- Fonts: Updated GetGlyphRangesJapanese() to include a larger 2999 ideograms selection of Joyo/Jinmeiyo + kanjis, from the previous 1946 ideograms selection. This will consume a some more memory but be generally + much more fitting for Japanese display, until we switch to a more dynamic atlas. (#3627) [@vaiorabbit] +- Log/Capture: fix capture to work on clipped child windows. +- Misc: Made the ItemFlags stack shared, so effectively the ButtonRepeat/AllowKeyboardFocus states + (and others exposed in internals such as PushItemFlag) are inherited by stacked Begin/End pairs, + vs previously a non-child stacked Begin() would reset those flags back to zero for the stacked window. +- Misc: Replaced UTF-8 decoder with one based on branchless one by Christopher Wellons. [@rokups] + Super minor fix handling incomplete UTF-8 contents: if input does not contain enough bytes, decoder + returns IM_UNICODE_CODEPOINT_INVALID and consume remaining bytes (vs old decoded consumed only 1 byte). +- Misc: Fix format warnings when using gnu printf extensions in a setup that supports them (gcc/mingw). (#3592) +- Misc: Made EndFrame() assertion for key modifiers being unchanged during the frame (added in 1.76) more + lenient, allowing full mid-frame releases. This is to accommodate the use of mid-frame modal native + windows calls, which leads backends such as GLFW to send key clearing events on focus loss. (#3575) +- Style: Changed default style.WindowRounding value to 0.0f (matches default for multi-viewports). +- Style: Reduced the size of the resizing grip, made alpha less prominent. +- Style: Classic: Increase the default alpha value of WindowBg to be closer to other styles. +- Demo: Clarify usage of right-aligned items in Demo>Layout>Widgets Width. +- Backends: OpenGL3: Use glGetString(GL_VERSION) query instead of glGetIntegerv(GL_MAJOR_VERSION, ...) + when the later returns zero (e.g. Desktop GL 2.x). (#3530) [@xndcn] +- Backends: OpenGL2: Backup and restore GL_SHADE_MODEL and disable GL_NORMAL_ARRAY state to increase + compatibility with legacy code. (#3671) +- Backends: OpenGL3: Backup and restore GL_PRIMITIVE_RESTART state. (#3544) [@Xipiryon] +- Backends: OpenGL2, OpenGL3: Backup and restore GL_STENCIL_TEST enable state. (#3668) +- Backends: Vulkan: Added support for specifying which sub-pass to reference during VkPipeline creation. (@3579) [@bdero] +- Backends: DX12: Improve Windows 7 compatibility (for D3D12On7) by loading d3d12.dll dynamically. (#3696) [@Mattiwatti] +- Backends: Win32: Fix setting of io.DisplaySize to invalid/uninitialized data after hwnd has been closed. +- Backends: OSX: Fix keypad-enter key not working on MacOS. (#3554) [@rokups, @lfnoise] +- Examples: Apple+Metal: Consolidated/simplified to get closer to other examples. (#3543) [@warrenm] +- Examples: Apple+Metal: Forward events down so OS key combination like Cmd+Q can work. (#3554) [@rokups] +- Examples: Emscripten: Renamed example_emscripten/ to example_emscripten_opengl3/. (#3632) +- Examples: Emscripten: Added 'make serve' helper to spawn a web-server on localhost. (#3705) [@Horki] +- Examples: DirectX12: Move ImGui::Render() call above the first barrier to clarify its lack of effect on the graphics pipe. +- CI: Fix testing for Windows DLL builds. (#3603, #3601) [@iboB] +- Docs: Improved the wiki and added a https://github.com/ocornut/imgui/wiki/Useful-Widgets page. [@Xipiryon] + [2021/05/20: moved to https://github.com/ocornut/imgui/wiki/Useful-Extensions] +- Docs: Split examples/README.txt into docs/BACKENDS.md and docs/EXAMPLES.md, and improved them. +- Docs: Consistently renamed all occurrences of "binding" and "back-end" to "backend" in comments and docs. + +Docking+Viewports Branch: + +- Docking: Docked windows honor change of tab and text colors. (#2771) +- Docking: Support for appending into existing tab-bar made to work with Docking + internal helper DockNodeBeginAmendTabBar(). +- Docking: Added experimental TabItemFlagsOverrideSet to ImGuiWindowClass. +- Viewports: Fixed incorrect whitening of popups above a modal if both use their own viewport. +- Viewports: Backends: Vulkan: Fixed build, removed extraneous pipeline creation. (#3459, #3579) + + +----------------------------------------------------------------------- + VERSION 1.79 (Released 2020-10-08) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.79 + +Breaking Changes: + +- Fonts: Removed ImFont::DisplayOffset in favor of ImFontConfig::GlyphOffset. DisplayOffset was applied + after scaling and not very meaningful/useful outside of being needed by the default ProggyClean font. + It was also getting in the way of better font scaling, so let's get rid of it now! + If you used DisplayOffset it was probably in association to rasterizing a font at a specific size, + in which case the corresponding offset may be reported into GlyphOffset. (#1619) + If you scaled this value after calling AddFontDefault(), this is now done automatically. +- ImGuiListClipper: Renamed constructor parameters which created an ambiguous alternative to using + the ImGuiListClipper::Begin() function, with misleading edge cases. Always use ImGuiListClipper::Begin()! + Kept inline redirection function (will obsolete). + (note: imgui_memory_editor <0.40 from imgui_club/ used this old clipper API. Update your copy if needed). +- Style: Renamed style.TabMinWidthForUnselectedCloseButton to style.TabMinWidthForCloseButton. +- Renamed ImGuiSliderFlags_ClampOnInput to ImGuiSliderFlags_AlwaysClamp. Kept redirection enum (will obsolete). +- Renamed OpenPopupContextItem() back to OpenPopupOnItemClick(), REVERTED CHANGE FROM 1.77. + For variety of reason this is more self-explanatory and less error-prone. Kept inline redirection function. +- Removed return value from OpenPopupOnItemClick() - returned true on mouse release on an item - because it + is inconsistent with other popups API and makes others misleading. It's also and unnecessary: you can + use IsWindowAppearing() after BeginPopup() for a similar result. + +Other Changes: + +- Window: Fixed using non-zero pivot in SetNextWindowPos() when the window is collapsed. (#3433) +- Nav: Fixed navigation resuming on first visible item when using gamepad. [@rokups] +- Nav: Fixed using Alt to toggle the Menu layer when inside a Modal window. (#787) +- Scrolling: Fixed SetScrollHere(0) functions edge snapping when called during a frame where + ContentSize is changing (issue introduced in 1.78). (#3452). +- InputText: Added support for Page Up/Down in InputTextMultiline(). (#3430) [@Xipiryon] +- InputText: Added selection helpers in ImGuiInputTextCallbackData(). +- InputText: Added ImGuiInputTextFlags_CallbackEdit to modify internally owned buffer after an edit. + (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the + underlying buffer while focus is active). +- InputText: Fixed using ImGuiInputTextFlags_Password with InputTextMultiline(). (#3427, #3428) + It is a rather unusual or useless combination of features but no reason it shouldn't work! +- InputText: Fixed minor scrolling glitch when erasing trailing lines in InputTextMultiline(). +- InputText: Fixed cursor being partially covered after using Ctrl+End key. +- InputText: Fixed callback's helper DeleteChars() function when cursor is inside the deleted block. (#3454) +- InputText: Made pressing Down arrow on the last line when it doesn't have a carriage return not move to + the end of the line (so it is consistent with Up arrow, and behave same as Notepad and Visual Studio. + Note that some other text editors instead would move the cursor to the end of the line). [@Xipiryon] +- DragFloat, DragScalar: Fixed ImGuiSliderFlags_ClampOnInput not being honored in the special case + where v_min == v_max. (#3361) +- SliderInt, SliderScalar: Fixed reaching of maximum value with inverted integer min/max ranges, both + with signed and unsigned types. Added reverse Sliders to Demo. (#3432, #3449) [@rokups] +- Text: Bypass unnecessary formatting when using the TextColored()/TextWrapped()/TextDisabled() helpers + with a "%s" format string. (#3466) +- CheckboxFlags: Display mixed-value/tristate marker when passed flags that have multiple bits set and + stored value matches neither zero neither the full set. +- BeginMenuBar: Fixed minor bug where CursorPosMax gets pushed to CursorPos prior to calling BeginMenuBar(), + so e.g. calling the function at the end of a window would often add +ItemSpacing.y to scrolling range. +- TreeNode, CollapsingHeader: Made clicking on arrow toggle toggle the open state on the Mouse Down event + rather than the Mouse Down+Up sequence, even if the _OpenOnArrow flag isn't set. This is standard behavior + and amends the change done in 1.76 which only affected cases were _OpenOnArrow flag was set. + (This is also necessary to support full multi/range-select/drag and drop operations.) +- Tabs: Added TabItemButton() to submit tab that behave like a button. (#3291) [@Xipiryon] +- Tabs: Added ImGuiTabItemFlags_Leading and ImGuiTabItemFlags_Trailing flags to position tabs or button + at either end of the tab bar. Those tabs won't be part of the scrolling region, and when reordering cannot + be moving outside of their section. Most often used with TabItemButton(). (#3291) [@Xipiryon] +- Tabs: Added ImGuiTabItemFlags_NoReorder flag to disable reordering a given tab. +- Tabs: Keep tab item close button visible while dragging a tab (independent of hovering state). +- Tabs: Fixed a small bug where closing a tab that is not selected would leave a tab hole for a frame. +- Tabs: Fixed a small bug where scrolling buttons (with ImGuiTabBarFlags_FittingPolicyScroll) would + generate an unnecessary extra draw call. +- Tabs: Fixed a small bug where toggling a tab bar from Reorderable to not Reorderable would leave + tabs reordered in the tab list popup. [@Xipiryon] +- Columns: Fix inverted ClipRect being passed to renderer when using certain primitives inside of + a fully clipped column. (#3475) [@szreder] +- Popups, Tooltips: Fix edge cases issues with positioning popups and tooltips when they are larger than + viewport on either or both axises. [@Rokups] +- Fonts: AddFontDefault() adjust its vertical offset based on floor(size/13) instead of always +1. + Was previously done by altering DisplayOffset.y but wouldn't work for DPI scaled font. +- Metrics: Various tweaks, listing windows front-to-back, greying inactive items when possible. +- Demo: Add simple InputText() callbacks demo (aside from the more elaborate ones in 'Examples->Console'). +- Backends: OpenGL3: Fix to avoid compiling/calling glBindSampler() on ES or pre 3.3 contexts which have + the defines set by a loader. (#3467, #1985) [@jjwebb] +- Backends: Vulkan: Some internal refactor aimed at allowing multi-viewport feature to create their + own render pass. (#3455, #3459) [@FunMiles] +- Backends: DX12: Clarified that imgui_impl_dx12 can be compiled on 32-bit systems by redefining + the ImTextureID to be 64-bit (e.g. '#define ImTextureID ImU64' in imconfig.h). (#301) +- Backends: DX12: Fix debug layer warning when scissor rect is zero-sized. (#3472, #3462) [@StoneWolf] +- Examples: Vulkan: Reworked buffer resize handling, fix for Linux/X11. (#3390, #2626) [@RoryO] +- Examples: Vulkan: Switch validation layer to use "VK_LAYER_KHRONOS_validation" instead of + "VK_LAYER_LUNARG_standard_validation" which is deprecated (#3459) [@FunMiles] +- Examples: DX12: Enable breaking on any warning/error when debug interface is enabled. +- Examples: DX12: Added '#define ImTextureID ImU64' in project and build files to also allow building + on 32-bit systems. Added project to default Visual Studio solution file. (#301) + +Docking+Viewports Branch: + +- Docking: DockSpace() emits ItemSize() properly (useful when not filling all space). +- Docking: Fixed docking while hovering a child window. (#3420) broken by 85a661d. Improve metrics debugging. +- Docking: Fix honoring payload filter with overlapping nodes (we incorrectly over-relied on g.HoveredDockNode + when making change for #3398). +- Docking: Fix handling of WindowMenuButtonPosition == ImGuiDir_None in Docking Nodes. (#3499) +- Viewports: Fixed a rare edge-case if the window targeted by CTRL+Tab stops being rendered. +- Viewports, Backends: DX12: Make secondary viewport format match main viewport one (#3462) {@BeastLe9enD] +- Viewports: Backends: Vulkan: Removed unused shader code. Fix leaks. Avoid unnecessary pipeline creation for main + viewport. (#3459) + Add ImGui_ImplVulkanH_CreateWindowSwapChain in ImGui_ImplVulkanH_CreateOrResizeWindow(). +- Viewports: Backends: DirectX9: Recover from D3DERR_DEVICELOST on secondary viewports. (#3424) +- Viewports, Backends: Win32: Fix toggling of ImGuiViewportFlags_TopMost (#3477) [@Kodokuna] +- Viewports: Backends: GLFW: Workaround for cases where glfwGetMonitorWorkarea fails (#3457) [@dougbinks] + + +----------------------------------------------------------------------- + VERSION 1.78 (Released 2020-08-18) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.78 + +Breaking Changes: + +- Obsoleted use of the trailing 'float power=1.0f' parameter for those functions: [@Shironekoben, @ocornut] + - DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(), DragFloatRange2(), DragScalar(), DragScalarN() + - SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(), SliderScalar(), SliderScalarN() + - VSliderFloat(), VSliderScalar() + Replaced the final 'float power=1.0f' argument with ImGuiSliderFlags defaulting to 0 (as with all our flags). + Worked out a backward-compatibility scheme so hopefully most C++ codebase should not be affected. + In short, when calling those functions: + - If you omitted the 'power' parameter (likely!), you are not affected. + - If you set the 'power' parameter to 1.0f (same as previous default value): + - Your compiler may warn on float>int conversion. + - Everything else will work (but will assert if IMGUI_DISABLE_OBSOLETE_FUNCTIONS is defined). + - You can replace the 1.0f value with 0 to fix the warning, and be technically correct. + - If you set the 'power' parameter to >1.0f (to enable non-linear editing): + - Your compiler may warn on float>int conversion. + - Code will assert at runtime for IM_ASSERT(power == 1.0f) with the following assert description: + "Call Drag function with ImGuiSliderFlags_Logarithmic instead of using the old 'float power' function!". + - In case asserts are disabled, the code will not crash and enable the _Logarithmic flag. + - You can replace the >1.0f value with ImGuiSliderFlags_Logarithmic to fix the warning/assert + and get a _similar_ effect as previous uses of power >1.0f. + See https://github.com/ocornut/imgui/issues/3361 for all details. + For shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. + Kept inline redirection functions (will obsolete) apart for: DragFloatRange2(), VSliderFloat(), VSliderScalar(). + For those three the 'float power=1.0f' version was removed directly as they were most unlikely ever used. +- DragInt, DragFloat, DragScalar: Obsoleted use of v_min > v_max to lock edits (introduced in 1.73, this was not + demoed nor documented much, will be replaced a more generic ReadOnly feature). + +Other Changes: + +- Nav: Fixed clicking on void (behind any windows) from not clearing the focused window. + This would be problematic e.g. in situation where the application relies on io.WantCaptureKeyboard + flag being cleared accordingly. (bug introduced in 1.77 WIP on 2020/06/16) (#3344, #2880) +- Window: Fixed clicking over an item which hovering has been disabled (e.g inhibited by a popup) + from marking the window as moved. +- Drag, Slider: Added ImGuiSliderFlags parameters. + - For float functions they replace the old trailing 'float power=1.0' parameter. + (See #3361 and the "Breaking Changes" block above for all details). + - Added ImGuiSliderFlags_Logarithmic flag to enable logarithmic editing + (generally more precision around zero), as a replacement to the old 'float power' parameter + which was obsoleted. (#1823, #1316, #642) [@Shironekoben, @AndrewBelt] + - Added ImGuiSliderFlags_ClampOnInput flag to force clamping value when using + CTRL+Click to type in a value manually. (#1829, #3209, #946, #413). + [note: RENAMED to ImGuiSliderFlags_AlwaysClamp in 1.79]. + - Added ImGuiSliderFlags_NoRoundToFormat flag to disable rounding underlying + value to match precision of the display format string. (#642) + - Added ImGuiSliderFlags_NoInput flag to disable turning widget into a text input + with CTRL+Click or Nav Enter. +- Nav, Slider: Fix using keyboard/gamepad controls with certain logarithmic sliders where + pushing a direction near zero values would be cancelled out. [@Shironekoben] +- DragFloatRange2, DragIntRange2: Fixed an issue allowing to drag out of bounds when both + min and max value are on the same value. (#1441) +- InputText, ImDrawList: Fixed assert triggering when drawing single line of text with more + than ~16 KB characters. (Note that current code is going to show corrupted display if after + clipping, more than 16 KB characters are visible in the same low-level ImDrawList::RenderText() + call. ImGui-level functions such as TextUnformatted() are not affected. This is quite rare + but it will be addressed later). (#3349) +- Selectable: Fixed highlight/hit extent when used with horizontal scrolling (in or outside columns). + Also fixed related text clipping when used in a column after the first one. (#3187, #3386) +- Scrolling: Avoid SetScroll, SetScrollFromPos functions from snapping on the edge of scroll + limits when close-enough by (WindowPadding - ItemPadding), which was a tweak with too many + side-effects. The behavior is still present in SetScrollHere functions as they are more explicitly + aiming at making widgets visible. May later be moved to a flag. +- Tabs: Allow calling SetTabItemClosed() after a tab has been submitted (will process next frame). +- InvisibleButton: Made public a small selection of ImGuiButtonFlags (previously in imgui_internal.h) + and allowed to pass them to InvisibleButton(): ImGuiButtonFlags_MouseButtonLeft/Right/Middle. + This is a small but rather important change because lots of multi-button behaviors could previously + only be achieved using lower-level/internal API. Now also available via high-level InvisibleButton() + with is a de-facto versatile building block to creating custom widgets with the public API. +- Fonts: Fixed ImFontConfig::GlyphExtraSpacing and ImFontConfig::PixelSnapH settings being pulled + from the merged/target font settings when merging fonts, instead of being pulled from the source + font settings. +- ImDrawList: Thick anti-aliased strokes (> 1.0f) with integer thickness now use a texture-based + path, reducing the amount of vertices/indices and CPU/GPU usage. (#3245) [@Shironekoben] + - This change will facilitate the wider use of thick borders in future style changes. + - Requires an extra bit of texture space (~64x64 by default), relies on GPU bilinear filtering. + - Set `io.AntiAliasedLinesUseTex = false` to disable rendering using this method. + - Clear `ImFontAtlasFlags_NoBakedLines` in ImFontAtlas::Flags to disable baking data in texture. +- ImDrawList: changed AddCircle(), AddCircleFilled() default num_segments from 12 to 0, effectively + enabling auto-tessellation by default. Tweak tessellation in Style Editor->Rendering section, or + by modifying the 'style.CircleSegmentMaxError' value. [@ShironekoBen] +- ImDrawList: Fixed minor bug introduced in 1.75 where AddCircle() with 12 segments would generate + an extra vertex. (This bug was mistakenly marked as fixed in earlier 1.77 release). [@ShironekoBen] +- Demo: Improved "Custom Rendering"->"Canvas" demo with a grid, scrolling and context menu. + Also showcase using InvisibleButton() with multiple mouse buttons flags. +- Demo: Improved "Layout & Scrolling" -> "Clipping" section. +- Demo: Improved "Layout & Scrolling" -> "Child Windows" section. +- Style Editor: Added preview of circle auto-tessellation when editing the corresponding value. +- Backends: OpenGL3: Added support for glad2 loader. (#3330) [@moritz-h] +- Backends: Allegro 5: Fixed horizontal scrolling direction with mouse wheel / touch pads (it seems + like Allegro 5 reports it differently from GLFW and SDL). (#3394, #2424, #1463) [@nobody-special666] +- Examples: Vulkan: Fixed GLFW+Vulkan and SDL+Vulkan clear color not being set. (#3390) [@RoryO] +- CI: Emscripten has stopped their support for their fastcomp backend, switching to latest sdk [@Xipiryon] + +Docking+Viewports Branch: + +- Docking: Made DockBuilderAddNode() automatically call DockBuilderRemoveNode(). (#3399, #2109) +- Docking: Storing HoveredDockNode in context which can be useful for easily detecting e.g. hovering an + empty node. (#3398) +- Docking: Fixed docking overlay bits appearing at (0,0), because of 43bd80a. Most typically noticeable + when disabling multi-viewport. +- Docking: Workaround recovery for node created without the _DockSpace flags later becoming a DockSpace. (#3340) +- Docking: Rework size allocations to recover when there's no enough room for nodes + do not hold on + _WantLockSizeOnce forever. (#3328) +- Docking: Rework size allocation to allow user code to override node sizes. Not all edge cases will be + properly handled but this is a step toward toolbar emitting size constraints. +- Docking: Added experimental flags to perform more docking filtering and disable resize per axis. + Designed for toolbar patterns. +- Viewports, Backends, GLFW: Use GLFW_MOUSE_PASSTHROUGH when available. +- Viewports, Backends: DX12: Fixed issue on shutdown when viewports are disabled. (#3347) + + +----------------------------------------------------------------------- + VERSION 1.77 (Released 2020-06-29) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.77 + +Breaking Changes: + +- Removed unnecessary ID (first arg) of ImFontAtlas::AddCustomRectRegular() function. Please + note that this is a Beta api and will likely be reworked in order to support multi-DPI across + multiple monitors. +- Renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). + [NOTE: THIS WAS REVERTED IN 1.79] +- Removed BeginPopupContextWindow(const char*, int mouse_button, bool also_over_items) in favor + of BeginPopupContextWindow(const char*, ImGuiPopupFlags flags) with ImGuiPopupFlags_NoOverItems. + Kept inline redirection function (will obsolete). +- Removed obsoleted CalcItemRectClosestPoint() entry point (has been asserting since December 2017). + +Other Changes: + +- TreeNode: Fixed bug where BeginDragDropSource() failed when the _OpenOnDoubleClick flag is + enabled (bug introduced in 1.76, but pre-1.76 it would also fail unless the _OpenOnArrow + flag was also set, and _OpenOnArrow is frequently set along with _OpenOnDoubleClick). +- TreeNode: Fixed bug where dragging a payload over a TreeNode() with either _OpenOnDoubleClick + or _OpenOnArrow would open the node. (#143) +- Windows: Fix unintended feedback loops when resizing windows close to main viewport edges. [@rokups] +- Tabs: Added style.TabMinWidthForUnselectedCloseButton settings: + - Set to 0.0f (default) to always make a close button appear on hover (same as Chrome, VS). + - Set to FLT_MAX to only display a close button when selected (merely hovering is not enough). + - Set to an intermediary value to toggle behavior based on width (same as Firefox). +- Tabs: Added a ImGuiTabItemFlags_NoTooltip flag to disable the tooltip for individual tab item + (vs ImGuiTabBarFlags_NoTooltip for entire tab bar). [@Xipiryon] +- Popups: All functions capable of opening popups (OpenPopup*, BeginPopupContext*) now take a new + ImGuiPopupFlags sets of flags instead of a mouse button index. The API is automatically backward + compatible as ImGuiPopupFlags is guaranteed to hold mouse button index in the lower bits. +- Popups: Added ImGuiPopupFlags_NoOpenOverExistingPopup for OpenPopup*/BeginPopupContext* functions + to first test for the presence of another popup at the same level. +- Popups: Added ImGuiPopupFlags_NoOpenOverItems for BeginPopupContextWindow() - similar to testing + for !IsAnyItemHovered() prior to doing an OpenPopup(). +- Popups: Added ImGuiPopupFlags_AnyPopupId and ImGuiPopupFlags_AnyPopupLevel flags for IsPopupOpen(), + allowing to check if any popup is open at the current level, if a given popup is open at any popup + level, if any popup is open at all. +- Popups: Fix an edge case where programmatically closing a popup while clicking on its empty space + would attempt to focus it and close other popups. (#2880) +- Popups: Fix BeginPopupContextVoid() when clicking over the area made unavailable by a modal. (#1636) +- Popups: Clarified some of the comments and function prototypes. +- Modals: BeginPopupModal() doesn't set the ImGuiWindowFlags_NoSavedSettings flag anymore, and will + not always be auto-centered. Note that modals are more similar to regular windows than they are to + popups, so api and behavior may evolve further toward embracing this. (#915, #3091) + Enforce centering using e.g. SetNextWindowPos(io.DisplaySize * 0.5f, ImGuiCond_Appearing, ImVec2(0.5f,0.5f)). +- Metrics: Added a "Settings" section with some details about persistent ini settings. +- Nav, Menus: Fix vertical wrap-around in menus or popups created with multiple appending calls to + BeginMenu()/EndMenu() or BeginPopup(0/EndPopup(). (#3223, #1207) [@rokups] +- Drag and Drop: Fixed unintended fallback "..." tooltip display during drag operation when + drag source uses _SourceNoPreviewTooltip flags. (#3160) [@rokups] +- Columns: Lower overhead on column switches and switching to background channel. + Benefits Columns but was primarily made with Tables in mind! +- Fonts: Fix GetGlyphRangesKorean() end-range to end at 0xD7A3 (instead of 0xD79D). (#348, #3217) [@marukrap] +- ImDrawList: Fixed an issue where draw command merging or primitive unreserve while crossing the + VtxOffset boundary would lead to draw commands with wrong VtxOffset. (#3129, #3163, #3232, #2591) + [@thedmd, @Shironekoben, @sergeyn, @ocornut] +- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where changing channels with different + TextureId, VtxOffset would incorrectly apply new settings to draw channels. (#3129, #3163) + [@ocornut, @thedmd, @Shironekoben] +- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where starting a split when current + VtxOffset was not zero would lead to draw commands with wrong VtxOffset. (#2591) +- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where starting a split right after + a callback draw command would incorrectly override the callback draw command. +- Misc, Freetype: Fix for rare case where FT_Get_Char_Index() succeeds but FT_Load_Glyph() fails. +- Docs: Improved and moved font documentation to docs/FONTS.md so it can be readable on the web. + Updated various links/wiki accordingly. Added FAQ entry about DPI. (#2861) [@ButternCream, @ocornut] +- CI: Added CI test to verify we're never accidentally dragging libstdc++ (on some compiler setups, + static constructors for non-pod data seems to drag in libstdc++ due to thread-safety concerns). + Fixed a static constructor which led to this dependency on some compiler setups. [@rokups] +- Backends: Win32: Support for #define NOGDI, won't try to call GetDeviceCaps(). (#3137, #2327) +- Backends: Win32: Fix _WIN32_WINNT < 0x0600 (MinGW defaults to 0x502 == Windows 2003). (#3183) +- Backends: SDL: Report a zero display-size when window is minimized, consistent with other backends, + making more render/clipping code use an early out path. +- Backends: OpenGL: Fixed handling of GL 4.5+ glClipControl(GL_UPPER_LEFT) by inverting the + projection matrix top and bottom values. (#3143, #3146) [@u3shit] +- Backends: OpenGL: On OSX, if unspecified by app, made default GLSL version 150. (#3199) [@albertvaka] +- Backends: OpenGL: Fixed loader auto-detection to not interfere with ES2/ES3 defines. (#3246) [@funchal] +- Backends: Vulkan: Fixed error in if initial frame has no vertices. (#3177) +- Backends: Vulkan: Fixed edge case where render callbacks wouldn't be called if the ImDrawData + structure didn't have any vertices. (#2697) [@kudaba] +- Backends: OSX: Added workaround to avoid fast mouse clicks. (#3261, #1992, #2525) [@nburrus] +- Examples: GLFW+Vulkan, SDL+Vulkan: Fix for handling of minimized windows. (#3259) +- Examples: Apple: Fixed example_apple_metal and example_apple_opengl2 using imgui_impl_osx.mm + not forwarding right and center mouse clicks. (#3260) [@nburrus] + +Docking+Viewports Branch: + +- Viewports: Don't set ImGuiViewportFlags_NoRendererClear when ImGuiWindowFlags_NoBackground is set. (#3213) +- Viewports: Report minimized viewports as zero DisplaySize to be consistent with main branch. (#1542) +- Docking, Settings: Allow reload of settings data at runtime. (#2573) +- Backends, GLFW: Fix windows resizing incorrectly on Linux due to GLFW firing window positioning + callbacks on next frame after window is resized manually. (#2117) +- Backends: DX12: Fix OBJECT_DELETED_WHILE_STILL_IN_USE on viewport resizing. (#3210) +- Backends: DX12: Fix for crash caused by early resource release. (#3121) +- Backends, Win32: Request monitor update when DPI awareness is enabled to make sure they have the correct DPI settings. + + +----------------------------------------------------------------------- + VERSION 1.76 (Released 2020-04-12) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.76 + +Other Changes: + +- Drag and Drop, Nav: Disabling navigation arrow keys when drag and drop is active. In the docking + branch pressing arrow keys while dragging a window from a tab could trigger an assert. (#3025) +- BeginMenu: Using same ID multiple times appends content to a menu. (#1207) [@rokups] +- BeginMenu: Fixed a bug where SetNextWindowXXX data before a BeginMenu() would not be cleared + when the menu is not open. (#3030) +- InputText: Fixed password fields displaying ASCII spaces as blanks instead of using the '*' + glyph. (#2149, #515) +- Selectable: Fixed honoring style.SelectableTextAlign with unspecified size. (#2347, #2601) +- Selectable: Allow using ImGuiSelectableFlags_SpanAllColumns in other columns than first. (#125) +- TreeNode: Made clicking on arrow with _OpenOnArrow toggle the open state on the Mouse Down + event rather than the Mouse Down+Up sequence (this is rather standard behavior). +- ColorButton: Added ImGuiColorEditFlags_NoBorder flag to remove the border normally enforced + by default for standalone ColorButton. +- Nav: Fixed interactions with ImGuiListClipper, so e.g. Home/End result would not clip the + landing item on the landing frame. (#787) +- Nav: Fixed currently focused item from ever being clipped by ItemAdd(). (#787) +- Scrolling: Fixed scrolling centering API leading to non-integer scrolling values and initial + cursor position. This would often get fixed after the fix item submission, but using the + ImGuiListClipper as the first thing after Begin() could largely break size calculations. (#3073) +- Added optional support for Unicode plane 1-16 (#2538, #2541, #2815) [@cloudwu, @samhocevar] + - Compile-time enable with '#define IMGUI_USE_WCHAR32' in imconfig.h. + - More onsistent handling of unsupported code points (0xFFFD). + - Surrogate pairs are supported when submitting UTF-16 data via io.AddInputCharacterUTF16(), + allowing for more complete CJK input. + - sizeof(ImWchar) goes from 2 to 4. IM_UNICODE_CODEPOINT_MAX goes from 0xFFFF to 0x10FFFF. + - Various structures such as ImFont, ImFontGlyphRangesBuilder will use more memory, this + is currently not particularly efficient. +- Columns: undid the change in 1.75 were Columns()/BeginColumns() were preemptively limited + to 64 columns with an assert. (#3037, #125) +- Window: Fixed a bug with child window inheriting ItemFlags from their parent when the child + window also manipulate the ItemFlags stack. (#3024) [@Stanbroek] +- Font: Fixed non-ASCII space occasionally creating unnecessary empty looking polygons. +- Misc: Added an explicit compile-time test for non-scoped IM_ASSERT() macros to redirect users + to a solution rather than encourage people to add braces in the codebase. +- Misc: Added additional checks in EndFrame() to verify that io.KeyXXX values have not been + tampered with between NewFrame() and EndFrame(). +- Misc: Made default clipboard handlers for Win32 and OSX use a buffer inside the main context + instead of a static buffer, so it can be freed properly on Shutdown. (#3110) +- Misc, Freetype: Fixed support for IMGUI_STB_RECT_PACK_FILENAME compile time directive + in imgui_freetype.cpp (matching support in the regular code path). (#3062) [@DonKult] +- Metrics: Made Tools section more prominent. Showing wire-frame mesh directly hovering the ImDrawCmd + instead of requiring to open it. Added options to disable bounding box and mesh display. + Added notes on inactive/gc-ed windows. +- Demo: Added black and white and color gradients to Demo>Examples>Custom Rendering. +- CI: Added more tests on the continuous-integration server: extra warnings for Clang/GCC, building + SDL+Metal example, building imgui_freetype.cpp, more compile-time imconfig.h settings: disabling + obsolete functions, enabling 32-bit ImDrawIdx, enabling 32-bit ImWchar, disabling demo. [@rokups] +- Backends: OpenGL3: Fixed version check mistakenly testing for GL 4.0+ instead of 3.2+ to enable + ImGuiBackendFlags_RendererHasVtxOffset, leaving 3.2 contexts without it. (#3119, #2866) [@wolfpld] +- Backends: OpenGL3: Added include support for older glbinding 2.x loader. (#3061) [@DonKult] +- Backends: Win32: Added ImGui_ImplWin32_EnableDpiAwareness(), ImGui_ImplWin32_GetDpiScaleForHwnd(), + ImGui_ImplWin32_GetDpiScaleForMonitor() helpers functions (backported from the docking branch). + Those functions makes it easier for example apps to support hi-dpi features without setting up + a manifest. +- Backends: Win32: Calling AddInputCharacterUTF16() from WM_CHAR message handler in order to support + high-plane surrogate pairs. (#2815) [@cloudwu, @samhocevar] +- Backends: SDL: Added ImGui_ImplSDL2_InitForMetal() for API consistency (even though the function + currently does nothing). +- Backends: SDL: Fixed mapping for ImGuiKey_KeyPadEnter. (#3031) [@Davido71] +- Examples: Win32+DX12: Fixed resizing main window, enabled debug layer. (#3087, #3115) [@sergeyn] +- Examples: SDL+DX11: Fixed resizing main window. (#3057) [@joeslay] +- Examples: Added SDL+Metal example application. (#3017) [@coding-jackalope] + +Docking+Viewports Branch: + +- Docking: Fixed assert preventing dockspace from being created instead a hidden tab. (#3101) +- Viewports: Fixed secondary viewports accidentally merging into a minimized host viewport. (#3118) +- Viewports, Docking: Added per-viewport work area system for e.g. menu-bars. Fixed DockspaceOverViewport() + and demo code (overlay etc) accordingly. (#3035, #2889, #2474, #1542, #2109) +- Viewports: Improve menu positioning in multi-monitor setups. [@rokups] +- Viewports: Software mouse cursor is also scaled by current DpiScale. (amend #939) +- Viewports: Avoid manually clipping resize grips and borders, which messes up with automation ability + to locate those items. Also simpler and more standard. +- Viewports: Fix for UWP in the imgui_impl_win32.cpp IME handler. (#2895, #2892). +- Viewports: Bunch of extra of comments to facilitate setting up multi-viewports. +- Viewports, GLFW: Avoid using window positioning workaround for GLFW 3.3+ versions that have it fixed. + + +----------------------------------------------------------------------- + VERSION 1.75 (Released 2020-02-10) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.75 + +Breaking Changes: + +- Removed redirecting functions/enums names that were marked obsolete in 1.53 (December 2017): + - ShowTestWindow() -> use ShowDemoWindow() + - IsRootWindowFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootWindow) + - IsRootWindowOrAnyChildFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) + - SetNextWindowContentWidth(w) -> use SetNextWindowContentSize(ImVec2(w, 0.0f) + - GetItemsLineHeightWithSpacing() -> use GetFrameHeightWithSpacing() + - ImGuiCol_ChildWindowBg -> use ImGuiCol_ChildBg + - ImGuiStyleVar_ChildWindowRounding -> use ImGuiStyleVar_ChildRounding + - ImGuiTreeNodeFlags_AllowOverlapMode -> use ImGuiTreeNodeFlags_AllowItemOverlap + - IMGUI_DISABLE_TEST_WINDOWS -> use IMGUI_DISABLE_DEMO_WINDOWS + If you were still using the old names, while you are cleaning up, considering enabling + IMGUI_DISABLE_OBSOLETE_FUNCTIONS in imconfig.h even temporarily to have a pass at finding + and removing up old API calls, if any remaining. +- Removed implicit default parameter to IsMouseDragging(int button = 0) to be consistent + with other mouse functions (none of the other functions have it). +- Obsoleted calling ImDrawList::PrimReserve() with a negative count (which was vaguely + documented and rarely if ever used). Instead we added an explicit PrimUnreserve() API + which can be implemented faster. Also clarified pre-existing constraints which weren't + documented (can only unreserve from the last reserve call). If you suspect you ever + used that feature before (very unlikely, but grep for call to PrimReserve in your code), + you can #define IMGUI_DEBUG_PARANOID in imconfig.h to catch existing calls. [@ShironekoBen] +- ImDrawList::AddCircle()/AddCircleFilled() functions don't accept negative radius. +- Limiting Columns()/BeginColumns() api to 64 columns with an assert. While the current code + technically supports it, future code may not so we're putting the restriction ahead. + [Undid that change in 1.76] +- imgui_internal.h: changed ImRect() default constructor initializes all fields to 0.0f instead + of (FLT_MAX,FLT_MAX,-FLT_MAX,-FLT_MAX). If you used ImRect::Add() to create bounding boxes by + adding points into it without explicit initialization, you may need to fix your initial value. + +Other Changes: + +- Inputs: Added ImGuiMouseButton enum for convenience (e.g. ImGuiMouseButton_Right=1). + We forever guarantee that the existing value will not changes so existing code is free to use 0/1/2. +- Nav: Fixed a bug where the initial CTRL-Tab press while in a child window sometimes selected + the current root window instead of always selecting the previous root window. (#787) +- ColorEdit: Fix label alignment when using ImGuiColorEditFlags_NoInputs. (#2955) [@rokups] +- ColorEdit: In HSV display of a RGB stored value, attempt to locally preserve Saturation + when Value==0.0 (similar to changes done in 1.73 for Hue). Removed Hue editing lock since + those improvements in 1.73 makes them unnecessary. (#2722, #2770). [@rokups] +- ColorEdit: "Copy As" context-menu tool shows hex values with a '#' prefix instead of '0x'. +- ColorEdit: "Copy As" content-menu tool shows hex values both with/without alpha when available. +- InputText: Fix corruption or crash when executing undo after clearing input with ESC, as a + byproduct we are allowing to later undo the revert with a CTRL+Z. (#3008). +- InputText: Fix using a combination of _CallbackResize (e.g. for std::string binding), along with the + _EnterReturnsTrue flag along with the rarely used property of using an InputText without persisting + user-side storage. Previously if you had e.g. a local unsaved std::string and reading result back + from the widget, the user string object wouldn't be resized when Enter key was pressed. (#3009) +- MenuBar: Fix minor clipping issue where occasionally a menu text can overlap the right-most border. +- Window: Fix SetNextWindowBgAlpha(1.0f) failing to override alpha component. (#3007) [@Albog] +- Window: When testing for the presence of the ImGuiWindowFlags_NoBringToFrontOnFocus flag we + test both the focused/clicked window (which could be a child window) and the root window. +- ImDrawList: AddCircle(), AddCircleFilled() API can now auto-tessellate when provided a segment + count of zero. Alter tessellation quality with 'style.CircleSegmentMaxError'. [@ShironekoBen] +- ImDrawList: Add AddNgon(), AddNgonFilled() API with a guarantee on the explicit segment count. + In the current branch they are essentially the same as AddCircle(), AddCircleFilled() but as + we will rework the circle rendering functions to use textures and automatic segment count + selection, those new api can fill a gap. [@ShironekoBen] +- Columns: ImDrawList::Channels* functions now work inside columns. Added extra comments to + suggest using user-owned ImDrawListSplitter instead of ImDrawList functions. [@rokups] +- Misc: Added ImGuiMouseCursor_NotAllowed enum so it can be used by more shared widgets. [@rokups] +- Misc: Added IMGUI_DISABLE compile-time definition to make all headers and sources empty. +- Misc: Disable format checks when using stb_printf, to allow using extra formats. + Made IMGUI_USE_STB_SPRINTF a properly documented imconfig.h flag. (#2954) [@loicmolinari] +- Misc: Added misc/single_file/imgui_single_file.h, We use this to validate compiling all *.cpp + files in a same compilation unit. Actual users of that technique (also called "Unity builds") + can generally provide this themselves, so we don't really recommend you use this. [@rokups] +- CI: Added PVS-Studio static analysis on the continuous-integration server. [@rokups] +- Backends: GLFW, SDL, Win32, OSX, Allegro: Added support for ImGuiMouseCursor_NotAllowed. [@rokups] +- Backends: GLFW: Added support for the missing mouse cursors newly added in GLFW 3.4+. [@rokups] +- Backends: SDL: Wayland: use SDL_GetMouseState (because there is no global mouse state available + on Wayland). (#2800, #2802) [@NeroBurner] +- Backends: GLFW, SDL: report Windows key (io.KeySuper) as always released. Neither GLFW nor SDL can + correctly report the key release in every cases (e.g. when using Win+V) causing problems with some + widgets. The next release of GLFW (3.4+) will have a fix for it. However since it is both difficult + and discouraged to make use of this key for Windows application anyway, we just hide it. (#2976) +- Backends: Win32: Added support for #define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD to disable all + XInput using code, and IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT to disable linking with XInput, + the later may be problematic if compiling with recent Windows SDK and you want your app to run + on Windows 7. You can instead try linking with Xinput9_1_0.lib instead. (#2716) +- Backends: Glut: Improved FreeGLUT support for MinGW. (#3004) [@podsvirov] +- Backends: Emscripten: Avoid forcefully setting IMGUI_DISABLE_FILE_FUNCTIONS. (#3005) [@podsvirov] +- Examples: OpenGL: Explicitly adding -DIMGUI_IMPL_OPENGL_LOADER_GL3W to Makefile to match linking + settings (otherwise if another loader such as Glew is accessible, the OpenGL3 backend might + automatically use it). (#2919, #2798) +- Examples: OpenGL: Added support for glbinding OpenGL loader. (#2870) [@rokups] +- Examples: Emscripten: Demonstrating embedding fonts in Makefile and code. (#2953) [@Oipo] +- Examples: Metal: Wrapped main loop in @autoreleasepool block to ensure allocations get freed + even if underlying system event loop gets paused due to app nap. (#2910, #2917) [@bear24rw] + +Docking+Viewports Branch: + +- Docking + Nav: Fixed messed up Ctrl+Tab order with docked windows. +- Docking + Nav: Fixed failing to restore NavId when refocusing a child within a docked window. +- Docking + Nav: Fixed failing to restore NavId when refocusing due to missing nav window (when + it stops being submitted). +- Docking: Fixed a bug where the tab bar of a hidden dockspace would keep requesting focus. (#2960) +- Docking: Added experimental DockNodeFlagsOverrideSet/DockNodeFlagsOverrideClear flags in ImGuiWindowClass + (currently experimenting with toolbar idioms). +- Viewports: Fix resizing viewport-owning windows when mouse pos is outside the InnerClipRect + (can happen with OS decoration enabled). +- Viewports: Preserve last known size for minimized main viewport to be consistent with secondary viewports. +- Backends: SDL: Honor NoTaskBarIcon flag under non Win32 OS. (#2117) +- Backends: GLFW, SDL: Platform monitors declared properly even if multi-viewport is not enabled. + + +----------------------------------------------------------------------- + VERSION 1.74 (Released 2019-11-25) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.74 + +Breaking Changes: + +- Removed redirecting functions/enums names that were marked obsolete in 1.52 (October 2017): + - Begin() [old 5 args version] -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed + - IsRootWindowOrAnyChildHovered() -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows) + - AlignFirstTextHeightToWidgets() -> use AlignTextToFramePadding() + - SetNextWindowPosCenter() -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f) + - ImFont::Glyph -> use ImFontGlyph + If you were still using the old names, read "API Breaking Changes" section of imgui.cpp to find out + the new names or equivalent features, or see how they were implemented until 1.73. +- Inputs: Fixed a miscalculation in the keyboard/mouse "typematic" repeat delay/rate calculation, used + by keys and e.g. repeating mouse buttons as well as the GetKeyPressedAmount() function. + If you were using a non-default value for io.KeyRepeatRate (previous default was 0.250), you can + add +io.KeyRepeatDelay to it to compensate for the fix. + The function was triggering on: 0.0 and (delay+rate*N) where (N>=1). Fixed formula responds to (N>=0). + Effectively it made io.KeyRepeatRate behave like it was set to (io.KeyRepeatRate + io.KeyRepeatDelay). + Fixed the code and altered default io.KeyRepeatRate,Delay from 0.250,0.050 to 0.300,0.050 to compensate. + If you never altered io.KeyRepeatRate nor used GetKeyPressedAmount() this won't affect you. +- Misc: Renamed IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS to IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS. (#1038) +- Misc: Renamed IMGUI_DISABLE_MATH_FUNCTIONS to IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS. +- Fonts: ImFontAtlas::AddCustomRectRegular() now requires an ID larger than 0x110000 (instead of 0x10000) to + conform with supporting Unicode planes 1-16 in a future update. ID below 0x110000 will now assert. +- Backends: DX12: Added extra ID3D12DescriptorHeap parameter to ImGui_ImplDX12_Init() function. + The value is unused in master branch but will be used by the multi-viewport feature. (#2851) [@obfuscate] + +Other Changes: + +- InputText, Nav: Fixed Home/End key broken when activating Keyboard Navigation. (#787) +- InputText: Filter out ASCII 127 (DEL) emitted by low-level OSX layer, as we are using the Key value. (#2578) +- Layout: Fixed a couple of subtle bounding box vertical positioning issues relating to the handling of text + baseline alignment. The issue would generally manifest when laying out multiple items on a same line, + with varying heights and text baseline offsets. + Some specific examples, e.g. a button with regular frame padding followed by another item with a + multi-line label and no frame padding, such as: multi-line text, small button, tree node item, etc. + The second item was correctly offset to match text baseline, and would interact/display correctly, + but it wouldn't push the contents area boundary low enough. +- Scrollbar: Fixed an issue where scrollbars wouldn't display on the frame following a frame where + all child window contents would be culled. +- ColorPicker: Fixed SV triangle gradient to block (broken in 1.73). (#2864, #2711). [@lewa-j] +- TreeNode: Fixed combination of ImGuiTreeNodeFlags_SpanFullWidth and ImGuiTreeNodeFlags_OpenOnArrow + incorrectly locating the arrow hit position to the left of the frame. (#2451, #2438, #1897) +- TreeNode: The collapsing arrow accepts click even if modifier keys are being held, facilitating + interactions with custom multi-selections patterns. (#2886, #1896, #1861) +- TreeNode: Added IsItemToggledOpen() to explicitly query if item was just open/closed, facilitating + interactions with custom multi-selections patterns. (#1896, #1861) +- DragScalar, SliderScalar, InputScalar: Added p_ prefix to parameter that are pointers to the data + to clarify how they are used, and more comments redirecting to the demo code. (#2844) +- Error handling: Assert if user mistakenly calls End() instead of EndChild() on a child window. (#1651) +- Misc: Optimized storage of window settings data (reducing allocation count). +- Misc: Windows: Do not use _wfopen() if IMGUI_DISABLE_WIN32_FUNCTIONS is defined. (#2815) +- Misc: Windows: Disabled win32 function by default when building with UWP. (#2892, #2895) +- Misc: Using static_assert() when using C++11, instead of our own construct (avoid zealous Clang warnings). +- Misc: Added IMGUI_DISABLE_FILE_FUNCTIONS/IMGUI_DISABLE_DEFAULT_FILE_FUNCTION to nullify or disable + default implementation of ImFileXXX functions linking with fopen/fclose/fread/fwrite. (#2734) +- Docs: Improved and moved FAQ to docs/FAQ.md so it can be readable on the web. [@ButternCream, @ocornut] +- Docs: Moved misc/fonts/README.txt to docs/FONTS.txt. +- Docs: Added permanent redirect from https://www.dearimgui.com/faq to FAQ page. +- Demo: Added simple item reordering demo in Widgets -> Drag and Drop section. (#2823, #143) [@rokups] +- Metrics: Show wire-frame mesh and approximate surface area when hovering ImDrawCmd. [@ShironekoBen] +- Metrics: Expose basic details of each window key/value state storage. +- Examples: DX12: Using IDXGIDebug1::ReportLiveObjects() when DX12_ENABLE_DEBUG_LAYER is enabled. +- Examples: Emscripten: Removed BINARYEN_TRAP_MODE=clamp from Makefile which was removed in Emscripten 1.39.0 + but required prior to 1.39.0, making life easier for absolutely no-one. (#2877, #2878) [@podsvirov] +- Backends: OpenGL2: Explicitly backup, setup and restore GL_TEXTURE_ENV to increase compatibility with + legacy OpenGL applications. (#3000) +- Backends: OpenGL3: Fix building with pre-3.2 GL loaders which do not expose glDrawElementsBaseVertex(), + using runtime GL version to decide if we set ImGuiBackendFlags_RendererHasVtxOffset. (#2866, #2852) [@dpilawa] +- Backends: OSX: Fix using Backspace key. (#2578, #2817, #2818) [@DiligentGraphics] +- Backends: GLFW: Previously installed user callbacks are now restored on shutdown. (#2836) [@malte-v] +- CI: Set up a bunch of continuous-integration tests using GitHub Actions. We now compile many of the example + applications on Windows, Linux, MacOS, iOS, Emscripten. Removed Travis integration. (#2865) [@rokups] + +Docking+Viewports Branch: + +- Docking: Can undock from the small triangle button. (#2109,. #2645) +- Docking: Fixed node->HasCloseButton not honoring ImGuiDockNodeFlags_NoCloseButton in a floating node, + leading to empty space at the right of tab-bars with those flags. (#2109) +- Docking: Made docked windows not use style.ChildRounding. +- Multi-viewports: Added multi-viewport support in the DX12 back-end. (#2851) [@obfuscate] + + +----------------------------------------------------------------------- + VERSION 1.73 (Released 2019-09-24) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.73 + +Other Changes: + +- Nav, Scrolling: Added support for Home/End key. (#787) +- ColorEdit: Disable Hue edit when Saturation==0 instead of letting Hue values jump around. +- ColorEdit, ColorPicker: In HSV display of a RGB stored value, attempt to locally preserve Hue + when Saturation==0, which reduces accidentally lossy interactions. (#2722, #2770) [@rokups] +- ColorPicker: Made rendering aware of global style alpha of the picker can be faded out. (#2711) + Note that some elements won't accurately fade down with the same intensity, and the color wheel + when enabled will have small overlap glitches with (style.Alpha < 1.0). +- Tabs: Fixed single-tab not shrinking their width down. +- Tabs: Fixed clicking on a tab larger than tab-bar width creating a bouncing feedback loop. +- Tabs: Feed desired width (sum of unclipped tabs width) into layout system to allow for auto-resize. (#2768) + (before 1.71 tab bars fed the sum of current width which created feedback loops in certain situations). +- Tabs: Improved shrinking for large number of tabs to avoid leaving extraneous space on the right side. + Individuals tabs are given integer-rounded width and remainder is spread between tabs left-to-right. +- Columns, Separator: Fixed a bug where non-visible separators within columns would alter the next row position + differently than visible ones. +- SliderScalar: Improved assert when using U32 or U64 types with a large v_max value. (#2765) [@loicmouton] +- DragInt, DragFloat, DragScalar: Using (v_min > v_max) allows locking any edits to the value. +- DragScalar: Fixed dragging of unsigned values on ARM cpu (float to uint cast is undefined). (#2780) [@dBagrat] +- TreeNode: Added ImGuiTreeNodeFlags_SpanAvailWidth flag. (#2451, #2438, #1897) [@Melix19, @PathogenDavid] + This extends the hit-box to the right-most edge, even if the node is not framed. + (Note: this is not the default in order to allow adding other items on the same line. In the future we will + aim toward refactoring the hit-system to be front-to-back, allowing more natural overlapping of items, + and then we will be able to make this the default.) +- TreeNode: Added ImGuiTreeNodeFlags_SpanFullWidth flag. This extends the hit-box to both the left-most and + right-most edge of the working area, bypassing indentation. +- CollapsingHeader: Added support for ImGuiTreeNodeFlags_Bullet and ImGuiTreeNodeFlags_Leaf on framed nodes, + mostly for consistency. (#2159, #2160) [@goran-w] +- Selectable: Added ImGuiSelectableFlags_AllowItemOverlap flag in public api (was previously internal only). +- Style: Allow style.WindowMenuButtonPosition to be set to ImGuiDir_None to hide the collapse button. (#2634, #2639) +- Font: Better ellipsis ("...") drawing implementation. Instead of drawing three pixel-ey dots (which was glaringly + unfitting with many types of fonts) we first attempt to find a standard ellipsis glyphs within the loaded set. + Otherwise we render ellipsis using '.' from the font from where we trim excessive spacing to make it as narrow + as possible. (#2775) [@rokups] +- ImDrawList: Clarified the name of many parameters so reading the code is a little easier. (#2740) +- ImDrawListSplitter: Fixed merging channels if the last submitted draw command used a different texture. (#2506) +- Using offsetof() when available in C++11. Avoids Clang sanitizer complaining about old-style macros. (#94) +- ImVector: Added find(), find_erase(), find_erase_unsorted() helpers. +- Added a mechanism to compact/free the larger allocations of unused windows (buffers are compacted when + a window is unused for 60 seconds, as per io.ConfigWindowsMemoryCompactTimer = 60.0f). Note that memory + usage has never been reported as a problem, so this is merely a touch of overzealous luxury. (#2636) +- Documentation: Various tweaks and improvements to the README page. [@ker0chan] +- Backends: OpenGL3: Tweaked initialization code allow application calling ImGui_ImplOpenGL3_CreateFontsTexture() + before ImGui_ImplOpenGL3_NewFrame(), which sometimes can be convenient. +- Backends: OpenGL3: Attempt to automatically detect default GL loader by using __has_include. (#2798) [@o-micron] +- Backends: DX11: Fixed GSGetShader() call not passing an initialized instance count, which would + generally make the DX11 debug layer complain (bug added in 1.72). +- Backends: Vulkan: Added support for specifying multisample count. Set 'ImGui_ImplVulkan_InitInfo::MSAASamples' to + one of the VkSampleCountFlagBits values to use, default is non-multisampled as before. (#2705, #2706) [@vilya] +- Examples: OSX: Fix example_apple_opengl2/main.mm not forwarding mouse clicks and drags correctly. (#1961, #2710) + [@intonarumori, @ElectricMagic] +- Misc: Updated stb_rect_pack.h from 0.99 to 1.00 (fixes by @rygorous: off-by-1 bug in best-fit heuristic, + fix handling of rectangles too large to fit inside texture). (#2762) [@tido64] + +Docking+Viewports Branch: + +- Docking: Fix BeginDocked() path that creates node so that SetNextWindowDockID() doesn't immediately discard the node. (#2109) +- Docking: Fix for node created at the same time as windows that are still resizing (typically with + io.ConfigDockingAlwaysTabBar) to not be zero/min sized. (#2109). The fix delays their visibility by one frame, + which is not ideal but not very problematic as the .ini data gets populated after that. +- Docking: Fix a crash that could occur with a malformed ini file (DockNode Parent value pointing to a missing node). +- Viewport: Fix modal/popup window being stuck in unowned hidden viewport associated to fallback window without stealing + it back. Fix modal reference viewport when opened outside of another window. (#1542) +- Viewport: Modals don't need to set ImGuiViewportFlags_NoFocusOnClick, this also mitigate the issue described by #2445, + which becomes particularly bad with unfocused modal. (#1542) +- Viewport: better case case where host window gets moved and resized simultaneous (toggling maximized state). + There's no perfect solution there, than using io.ConfigViewportsNoAutoMerge = false. (#1542) +- Viewport, Docking: Fixed incorrect assignment of IsFallbackWindow which would tag dock node host windows created + in NewFrame() as such, messing with popup viewport inheritance. +- Viewport: Fixed issue where resize grip would display as hovered while mouse is still off the OS bounds so a click + would miss it and focus the OS window behind expected one. (#1542) +- Viewport: Fix to allow multiple shutdown / calls to DestroyPlatformWindows(). (#2769) +- Viewport: Backends: GLFW: Fix setting window size on macOS (#2767, #2117) [@rokups] +- Viewport: Backends: GLFW+Linux: Fix window having incorrect size after uncollapse. (#2756, #2117) [@rokups] +- Viewport: Backends: DirectX9: Workaround for windows not refreshing when main viewport has no draw call. (#2560) + + +----------------------------------------------------------------------- + VERSION 1.72b (Released 2019-07-31) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.72b + +Other Changes: + +- Nav, Scrolling: Fixed programmatic scroll leading to a slightly incorrect scroll offset when + the window has decorations or a menu-bar (broken in 1.71). This was mostly noticeable when + a keyboard/gamepad movement led to scrolling the view, or using e.g. SetScrollHereY() function. +- Nav: Made hovering non-MenuItem Selectable not re-assign the source item for keyboard navigation. +- Nav: Fixed an issue with NavFlattened window flag (beta) where widgets not entirely fitting + in child window (often selectables because of their protruding sides) would be not considered + as entry points to to navigate toward the child window. (#787) + + +----------------------------------------------------------------------- + VERSION 1.72 (Released 2019-07-27) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.72 + +Breaking Changes: + +- Removed redirecting functions/enums names that were marked obsolete in 1.51 (June 2017): + - ImGuiCol_Column*, ImGuiSetCond_* enums. + - IsItemHoveredRect(), IsPosHoveringAnyWindow(), IsMouseHoveringAnyWindow(), IsMouseHoveringWindow() functions. + - IMGUI_ONCE_UPON_A_FRAME macro. + If you were still using the old names, read "API Breaking Changes" section of imgui.cpp to find out + the new names or equivalent features. +- Renamed ImFontAtlas::CustomRect to ImFontAtlasCustomRect. Kept redirection typedef (will obsolete). +- Removed TreeAdvanceToLabelPos() which is rarely used and only does SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()). + Kept redirection function (will obsolete). (#581, #324) + +Other Changes: + +- Scrolling: Made mouse-wheel scrolling lock the underlying window until the mouse is moved again or + until a short delay expires (~2 seconds). This allow uninterrupted scroll even if child windows are + passing under the mouse cursor. (#2604) +- Scrolling: Made it possible for mouse wheel and navigation-triggered scrolling to override a call to + SetScrollX()/SetScrollY(), making it possible to use a simpler stateless pattern for auto-scrolling: + // (Submit items..) + if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) // If scrolling at the already at the bottom.. + ImGui::SetScrollHereY(1.0f); // ..make last item fully visible +- Scrolling: Added SetScrollHereX(), SetScrollFromPosX() for completeness. (#1580) [@kevreco] +- Scrolling: Mouse wheel scrolling while hovering a child window is automatically forwarded to parent window + if ScrollMax is zero on the scrolling axis. + Also still the case if ImGuiWindowFlags_NoScrollWithMouse is set (not new), but previously the forwarding + would be disabled if ImGuiWindowFlags_NoScrollbar was set on the child window, which is not the case + any more. Forwarding can still be disabled by setting ImGuiWindowFlags_NoInputs. (amend #1502, #1380). +- Window: Fixed InnerClipRect right-most coordinates using wrong padding setting (introduced in 1.71). +- Window: Fixed old SetWindowFontScale() api value from not being inherited by child window. Added + comments about the right way to scale your UI (load a font at the right side, rebuild atlas, scale style). +- Scrollbar: Avoid overlapping the opposite side when window (often a child window) is forcibly too small. +- Combo: Hide arrow when there's not enough space even for the square button. +- InputText: Testing for newly added ImGuiKey_KeyPadEnter key. (#2677, #2005) [@amc522] +- Tabs: Fixed unfocused tab bar separator color (was using ImGuiCol_Tab, should use ImGuiCol_TabUnfocusedActive). +- Columns: Fixed a regression from 1.71 where the right-side of the contents rectangle within each column + would wrongly use a WindowPadding.x instead of ItemSpacing.x like it always did. (#125, #2666) +- Columns: Made the right-most edge reaches up to the clipping rectangle (removing half of WindowPadding.x + worth of asymmetrical/extraneous padding, note that there's another half that conservatively has to offset + the right-most column, otherwise it's clipping width won't match the other columns). (#125, #2666) +- Columns: Improved honoring alignment with various values of ItemSpacing.x and WindowPadding.x. (#125, #2666) +- Columns: Made GetColumnOffset() and GetColumnWidth() behave when there's no column set, consistently with + other column functions. (#2683) +- InputTextMultiline: Fixed vertical scrolling tracking glitch. +- Word-wrapping: Fixed overzealous word-wrapping when glyph edge lands exactly on the limit. Because + of this, auto-fitting exactly unwrapped text would make it wrap. (fixes initial 1.15 commit, 78645a7d). +- Style: Attenuated default opacity of ImGuiCol_Separator in Classic and Light styles. +- Style: Added style.ColorButtonPosition (left/right, defaults to ImGuiDir_Right) to move the color button + of ColorEdit3/ColorEdit4 functions to either side of the inputs. +- IO: Added ImGuiKey_KeyPadEnter and support in various backends (previously backends would need to + specifically redirect key-pad keys to their regular counterpart). This is a temporary attenuating measure + until we actually refactor and add whole sets of keys into the ImGuiKey enum. (#2677, #2005) [@amc522] +- Misc: Made Button(), ColorButton() not trigger an "edited" event leading to IsItemDeactivatedAfterEdit() + returning true. This also effectively make ColorEdit4() not incorrect trigger IsItemDeactivatedAfterEdit() + when clicking the color button to open the picker popup. (#1875) +- Misc: Added IMGUI_DISABLE_METRICS_WINDOW imconfig.h setting to explicitly compile out ShowMetricsWindow(). +- Debug Tools: Added "Metrics->Tools->Item Picker" tool which allow clicking on a widget to break in the + debugger within the item code. The tool calls IM_DEBUG_BREAK() which can be redefined in imconfig.h. +- ImDrawList: Fixed CloneOutput() helper crashing. (#1860) [@gviot] +- ImDrawList::ChannelsSplit(), ImDrawListSplitter: Fixed an issue with merging draw commands between + channel 0 and 1. (#2624) +- ImDrawListSplitter: Fixed memory leak when using low-level split api (was not affecting ImDrawList api, + also this type was added in 1.71 and not advertised as a public-facing feature). +- Fonts: binary_to_compressed_c.cpp: Display an error message if failing to open/read the input font file. +- Demo: Log, Console: Using a simpler stateless pattern for auto-scrolling. +- Demo: Widgets: Showing how to use the format parameter of Slider/Drag functions to display the name + of an enum value instead of the underlying integer value. +- Demo: Renamed the "Help" menu to "Tools" (more accurate). +- Backends: DX10/DX11: Backup, clear and restore Geometry Shader is any is bound when calling renderer. +- Backends: DX11: Clear Hull Shader, Domain Shader, Compute Shader before rendering. Not backing/restoring them. +- Backends: OSX: Disabled default native Mac clipboard copy/paste implementation in core library (added in 1.71), + because it needs application to be linked with '-framework ApplicationServices'. It can be explicitly + enabled back by using '#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS' in imconfig.h. Re-added + equivalent using NSPasteboard api in the imgui_impl_osx.mm experimental backend. (#2546) +- Backends: SDL2: Added ImGui_ImplSDL2_InitForD3D() function to make D3D support more visible. + (#2482, #2632) [@josiahmanson] +- Examples: Added SDL2+DirectX11 example application. (#2632, #2612, #2482) [@vincenthamm] + +Docking+Viewports Branch: + +- Docking: Making it possible to undock a node by clicking on the tab bar / title bar for the node. (#2645). +- Docking: Explicitly inhibit constraint when docked for now. Fix clipping issue related to constraints. (#2690). +- Docking: Fixed dragging/resizing from OS decoration not marking settings as dirty. +- Docking: Renamed io.ConfigDockingTabBarOnSingleWindows to io.ConfigDockingAlwaysTabBar. + Added ImGuiWindowClass::DockingAlwaysTabBar to set on individual windows. +- Docking: Perform simple check: assert if Docking or Viewport are enabled exactly on frame 1 (instead of frame 0 + or later), which is a common user error leading to loss of .ini data on load. +- Docking: Fix so that an appearing window making a dock node reappear won't have a zero-size on its first frame. +- Docking: Fixed using ImGuiDockNodeFlags_AutoHideTabBar with io.ConfigDockingTabBarOnSingleWindows. +- Docking: Added ImGuiDockNode to .natvis file. +- Docking: Fixed support for large meshes in GetBackgroundDrawList(), GetForegroundDrawList(). (#2638) +- Viewport: Fix monitor dpi info not being copied to main viewport when multi-viewports are not enabled. (#2621, #1676) +- Viewport: Refactored ImGuiWindowClass's ViewportFlagsOverrideMask + ViewportFlagsOverrideValue into + ViewportFlagsOverrideSet + ViewportFlagsOverrideClear which appears easier to grasp. (#1542) +- Viewport: Added ImGuiViewportFlags_NoAutoMerge to prevent merging into host viewport in a per-window basis + via the ImGuiWindowClass override mechanism. (#1542) + + +----------------------------------------------------------------------- + VERSION 1.71 (Released 2019-06-12) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.71 + +Breaking Changes: + +- IO: changed AddInputCharacter(unsigned short c) signature to AddInputCharacter(unsigned int c). +- Renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Kept inline redirection function (will obsolete). +- Window: rendering of child windows outer decorations (e.g. bg color, border, scrollbars) is now + performed as part of their parent window, avoiding the creation of an extraneous draw commands. + If you have overlapping child windows with decorations, and relied on their relative z-order to be + mapped to submission their order, this will affect your rendering. The optimization is disabled + if the parent window has no visual output because it appears to be the most common situation leading + to the creation of overlapping child windows. Please reach out if you are affected by this change! + +Other Changes: + +- Window: clarified behavior of SetNextWindowContentSize(). Content size is defined as the size available + after removal of WindowPadding on each sides. So SetNextWindowContentSize(ImVec2(100,100)) + auto-resize + will always allow submitting a 100x100 item without creating a scrollbar, regarding of WindowPadding. + The exact meaning of ContentSize for decorated windows was previously ill-defined. +- Window: Fixed auto-resize with AlwaysVerticalScrollbar or AlwaysHorizontalScrollbar flags. +- Window: Fixed one case where auto-resize by double-clicking the resize grip would make either scrollbar + appear for a single frame after the resize. +- Separator: Revert 1.70 "Declare its thickness (1.0f) to the layout" change. It's not incorrect + but it breaks existing some layout patterns. Will return back to it when we expose Separator flags. +- Fixed InputScalar, InputScalarN, SliderScalarN, DragScalarN with non-visible label from inserting + style.ItemInnerSpacing.x worth of trailing spacing. +- Fixed InputFloatX, SliderFloatX, DragFloatX functions erroneously reporting IsItemEdited() multiple + times when the text input doesn't match the formatted output value (e.g. input "1" shows "1.000"). + It wasn't much of a problem because we typically use the return value instead of IsItemEdited() here. +- Fixed uses of IsItemDeactivated(), IsItemDeactivatedAfterEdit() on multi-components widgets and + after EndGroup(). (#2550, #1875) +- Fixed crash when appending with BeginMainMenuBar() more than once and no other window are showing. (#2567) +- ColorEdit: Fixed the color picker popup only displaying inputs as HSV instead of showing multiple + options. (#2587, broken in 1.69 by #2384). +- CollapsingHeader: Better clipping when a close button is enabled and it overlaps the label. (#600) +- Scrollbar: Minor bounding box adjustment to cope with various border size. +- Scrollbar, Style: Changed default style.ScrollbarSize from 16 to 14. +- Combo: Fixed rounding not applying with the ImGuiComboFlags_NoArrowButton flag. (#2607) [@DucaRii] +- Nav: Fixed gamepad/keyboard moving of window affecting contents size incorrectly, sometimes leading + to scrollbars appearing during the movement. +- Nav: Fixed rare crash when e.g. releasing Alt-key while focusing a window with a menu at the same + frame as clearing the focus. This was in most noticeable in backends such as Glfw and SDL which + emits key release events when focusing another viewport, leading to Alt+clicking on void on another + viewport triggering the issue. (#2609) +- TreeNode, CollapsingHeader: Fixed highlight frame not covering horizontal area fully when using + horizontal scrolling. (#2211, #2579) +- Tabs: Fixed BeginTabBar() within a window with horizontal scrolling from creating a feedback + loop with the horizontal contents size. +- Columns: Fixed Columns() within a window with horizontal scrolling from not covering the full + horizontal area (previously only worked with an explicit contents size). (#125) +- Columns: Fixed Separator from creating an extraneous draw command. (#125) +- Columns: Fixed Selectable with SpanAllColumns flag from creating an extraneous draw command. (#125) +- Style: Added style.WindowMenuButtonPosition (left/right, defaults to ImGuiDir_Left) to move the + collapsing/docking button to the other side of the title bar. +- Style: Made window close button cross slightly smaller. +- Log/Capture: Fixed BeginTabItem() label not being included in a text log/capture. +- ImDrawList: Added ImDrawCmd::VtxOffset value to support large meshes (64k+ vertices) using 16-bit indices. + The renderer backend needs to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' to enable + this, and honor the ImDrawCmd::VtxOffset field. Otherwise the value will always be zero. (#2591) + This has the advantage of preserving smaller index buffers and allowing to execute on hardware that do not + support 32-bit indices. Most examples backends have been modified to support the VtxOffset field. +- ImDrawList: Added ImDrawCmd::IdxOffset value, equivalent to summing element count for each draw command. + This is provided for convenience and consistency with VtxOffset. (#2591) +- ImDrawCallback: Allow to override the signature of ImDrawCallback by #define-ing it. This is meant to + facilitate custom rendering backends passing local render-specific data to the draw callback. +- ImFontAtlas: FreeType: Added RasterizerFlags::Monochrome flag to disable font anti-aliasing. Combine + with RasterizerFlags::MonoHinting for best results. (#2545) [@HolyBlackCat] +- ImFontGlyphRangesBuilder: Fixed unnecessarily over-sized buffer, which incidentally was also not + fully cleared. Fixed edge-case overflow when adding character 0xFFFF. (#2568). [@NIKE3500] +- Demo: Added full "Dear ImGui" prefix to the title of "Dear ImGui Demo" and "Dear ImGui Metrics" windows. +- Backends: Add native Mac clipboard copy/paste default implementation in core library to match what we are + dealing with Win32, and to facilitate integration in custom engines. (#2546) [@andrewwillmott] +- Backends: OSX: imgui_impl_osx: Added mouse cursor support. (#2585, #1873) [@actboy168] +- Examples/Backends: DirectX9/10/11/12, Metal, Vulkan, OpenGL3 (Desktop GL only): Added support for large meshes + (64k+ vertices) with 16-bit indices, enable 'ImGuiBackendFlags_RendererHasVtxOffset' in those backends. (#2591) +- Examples/Backends: Don't filter characters under 0x10000 before calling io.AddInputCharacter(), + the filtering is done in io.AddInputCharacter() itself. This is in prevision for fuller Unicode + support. (#2538, #2541) + + +----------------------------------------------------------------------- + VERSION 1.70 (Released 2019-05-06) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.70 + +Breaking Changes: + +- ImDrawList: Improved algorithm for mitre joints on thick lines, preserving correct thickness + up to 90 degrees angles (e.g. rectangles). If you have custom rendering using thick lines, + they will appear a little thicker now. (#2518) [@rmitton] +- Obsoleted GetContentRegionAvailWidth(), use GetContentRegionAvail().x instead. + Kept inline redirection function. +- Examples: Vulkan: Added MinImageCount/ImageCount fields in ImGui_ImplVulkan_InitInfo, required + during initialization to specify the number of in-flight image requested by swap chains. + (was previously a hard #define IMGUI_VK_QUEUED_FRAMES 2). (#2071, #1677) [@nathanvoglsam] +- Examples: Vulkan: Tidying up the demo/internals helpers (most engine/app should not rely + on them but it is possible you have!). + +Other Changes: + +- ImDrawList: Added ImDrawCallback_ResetRenderState, a special ImDrawList::AddCallback() value + to request the renderer backend to reset its render state. (#2037, #1639, #2452) + Examples: Added support for ImDrawCallback_ResetRenderState in all renderer backends. Each + renderer code setting up initial render state has been moved to a function so it could be + called at the start of rendering and when a ResetRenderState is requested. [@ocornut, @bear24rw] +- InputText: Fixed selection background rendering one frame after the cursor movement when + first transitioning from no-selection to has-selection. (Bug in 1.69) (#2436) [@Nazg-Gul] +- InputText: Work-around for buggy standard libraries where isprint('\t') returns true. (#2467, #1336) +- InputText: Fixed ImGuiInputTextFlags_AllowTabInput leading to two tabs characters being inserted + if the backend provided both Key and Character input. (#2467, #1336) +- Layout: Added SetNextItemWidth() helper to avoid using PushItemWidth/PopItemWidth() for single items. + Note that SetNextItemWidth() currently only affect the same subset of items as PushItemWidth(), + generally referred to as the large framed+labeled items. Because the new SetNextItemWidth() + function is explicit we may later extend its effect to more items. +- Layout: Fixed PushItemWidth(-width) for right-side alignment laying out some items (button, listbox, etc.) + with negative sizes if the 'width' argument was smaller than the available width at the time of item + submission. +- Window: Fixed window with the AlwaysAutoResize flag unnecessarily extending their hovering boundaries + by a few pixels (this is used to facilitate resizing from borders when available for a given window). + One of the noticeable minor side effect was that navigating menus would have had a tendency to disable + highlight from parent menu items earlier than necessary while approaching the child menu. +- Window: Close button is horizontally aligned with style.FramePadding.x. +- Window: Fixed contents region being off by WindowBorderSize amount on the right when scrollbar is active. +- Window: Fixed SetNextWindowSizeConstraints() with non-rounded positions making windows drift. (#2067, #2530) +- Popups: Closing a popup restores the focused/nav window in place at the time of the popup opening, + instead of restoring the window that was in the window stack at the time of the OpenPopup call. (#2517) + Among other things, this allows opening a popup while no window are focused, and pressing Escape to + clear the focus again. +- Popups: Fixed right-click from closing all popups instead of aiming at the hovered popup level + (regression in 1.67). +- Selectable: With ImGuiSelectableFlags_AllowDoubleClick doesn't return true on the mouse button release + following the double-click. Only first mouse release + second mouse down (double-click) returns true. + Likewise for internal ButtonBehavior() with both _PressedOnClickRelease | _PressedOnDoubleClick. (#2503) +- GetMouseDragDelta(): also returns the delta on the mouse button released frame. (#2419) +- GetMouseDragDelta(): verify that mouse positions are valid otherwise returns zero. +- Inputs: Also add support for horizontal scroll with Shift+Mouse Wheel. (#2424, #1463) [@LucaRood] +- PlotLines, PlotHistogram: Ignore NaN values when calculating min/max bounds. (#2485) +- Columns: Fixed boundary of clipping being off by 1 pixel within the left column. (#125) +- Separator: Declare its thickness (1.0f) to the layout, making items around separator more symmetrical. +- Combo, Slider, Scrollbar: Improve rendering in situation when there's only a few pixels available (<3 pixels). +- Nav: Fixed Drag/Slider functions going into text input mode when keyboard CTRL is held while pressing NavActivate. +- Drag and Drop: Fixed drag source with ImGuiDragDropFlags_SourceAllowNullID and null ID from receiving click + regardless of being covered by another window (it didn't honor correct hovering rules). (#2521) +- ImDrawList: Improved algorithm for mitre joints on thick lines, preserving correct thickness up to 90 degrees + angles, also faster to output. (#2518) [@rmitton] +- Misc: Added IM_MALLOC/IM_FREE macros mimicking IM_NEW/IM_DELETE so user doesn't need to revert + to using the ImGui::MemAlloc()/MemFree() calls directly. +- Misc: Made IMGUI_CHECKVERSION() macro also check for matching size of ImDrawIdx. +- Metrics: Added "Show windows rectangles" tool to visualize the different rectangles. +- Demo: Improved trees in columns demo. +- Examples: OpenGL: Added a test GL call + comments in ImGui_ImplOpenGL3_Init() to detect uninitialized + GL function loaders early, and help users understand what they are missing. (#2421) +- Examples: SDL: Added support for SDL_GameController gamepads (enable with ImGuiConfigFlags_NavEnableGamepad). (#2509) [@DJLink] +- Examples: Emscripten: Added Emscripten+SDL+GLES2 example. (#2494, #2492, #2351, #336) [@nicolasnoble, @redblobgames] +- Examples: Metal: Added Glfw+Metal example. (#2527) [@bear24rw] +- Examples: OpenGL3: Minor tweaks + not calling glBindBuffer more than necessary in the render loop. +- Examples: Vulkan: Fixed in-flight buffers issues when using multi-viewports. (#2461, #2348, #2378, #2097) +- Examples: Vulkan: Added missing support for 32-bit indices (#define ImDrawIdx unsigned int). +- Examples: Vulkan: Avoid passing negative coordinates to vkCmdSetScissor, which debug validation layers do not like. +- Examples: Vulkan: Added ImGui_ImplVulkan_SetMinImageCount() to change min image count at runtime. (#2071) [@nathanvoglsam] +- Examples: DirectX9: Fixed erroneous assert in ImGui_ImplDX9_InvalidateDeviceObjects(). (#2454) +- Examples: DirectX10/11/12, Allegro, Marmalade: Render functions early out when display size is zero (minimized). (#2496) +- Examples: GLUT: Fixed existing FreeGLUT example to work with regular GLUT. (#2465) [@andrewwillmott] +- Examples: GLUT: Renamed imgui_impl_freeglut.cpp/.h to imgui_impl_glut.cpp/.h. (#2465) [@andrewwillmott] +- Examples: GLUT: Made io.DeltaTime always > 0. (#2430) +- Examples: Visual Studio: Updated default platform toolset+sdk in vcproj files from v100+sdk7 (vs2010) + to v110+sdk8 (vs2012). This is mostly so we can remove reliance on DXSDK_DIR for the DX10/DX11 example, + which if existing and when switching to recent SDK ends up conflicting and creating warnings. + + +----------------------------------------------------------------------- + VERSION 1.69 (Released 2019-03-13) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.69 + +Breaking Changes: + +- Renamed ColorEdit/ColorPicker's ImGuiColorEditFlags_RGB/_HSV/_HEX flags to respectively + ImGuiColorEditFlags_DisplayRGB/_DisplayHSV/_DisplayHex. This is because the addition of + new flag ImGuiColorEditFlags_InputHSV makes the earlier one ambiguous. + Kept redirection enum values (will obsolete). (#2384) [@haldean] +- Renamed GetOverlayDrawList() to GetForegroundDrawList(). Kept redirection function (will obsolete). (#2391) + +Other Changes: + +- Added GetBackgroundDrawList() helper to quickly get access to a ImDrawList that will be rendered + behind every other windows. (#2391, #545) +- DragScalar, InputScalar, SliderScalar: Added support for u8/s8/u16/s16 data types (ImGuiDataType_S8, etc.) + We are reusing function instances of larger types to reduce code size. (#643, #320, #708, #1011) +- Added InputTextWithHint() to display a description/hint in the text box when no text + has been entered. (#2400) [@Organic-Code, @ocornut] +- Nav: Fixed a tap on AltGR (e.g. German keyboard) from navigating to the menu layer. +- Nav: Fixed Ctrl+Tab keeping active InputText() of a previous window active after the switch. (#2380) +- Fixed IsItemDeactivated()/IsItemDeactivatedAfterEdit() from not correctly returning true + when tabbing out of a focusable widget (Input/Slider/Drag) in most situations. (#2215, #1875) +- InputInt, InputFloat, InputScalar: Fix to keep the label of the +/- buttons centered when + style.FramePadding.x is abnormally larger than style.FramePadding.y. Since the buttons are + meant to be square (to align with e.g. color button) we always use FramePadding.y. (#2367) +- InputInt, InputScalar: +/- buttons now respects the natural type limits instead of + overflowing or underflowing the value. +- InputText: Fixed an edge case crash that would happen if another widget sharing the same ID + is being swapped with an InputText that has yet to be activated. +- InputText: Fixed various display corruption related to swapping the underlying buffer while + a input widget is active (both for writable and read-only paths). Often they would manifest + when manipulating the scrollbar of a multi-line input text. +- ColorEdit, ColorPicker, ColorButton: Added ImGuiColorEditFlags_InputHSV to manipulate color + values encoded as HSV (in order to avoid HSV<>RGB round trips and associated singularities). + (#2383, #2384) [@haldean] +- ColorPicker: Fixed a bug/assertion when displaying a color picker in a collapsed window + while dragging its title bar. (#2389) +- ColorEdit: Fixed tooltip not honoring the ImGuiColorEditFlags_NoAlpha contract of never + reading the 4th float in the array (value was read and discarded). (#2384) [@haldean] +- MenuItem, Selectable: Fixed disabled widget interfering with navigation (fix c2db7f63 in 1.67). +- Tabs: Fixed a crash when using many BeginTabBar() recursively (didn't affect docking). (#2371) +- Tabs: Added extra mis-usage error recovery. Past the assert, common mis-usage don't lead to + hard crashes any more, facilitating integration with scripting languages. (#1651) +- Tabs: Fixed ImGuiTabItemFlags_SetSelected being ignored if the tab is not visible (with + scrolling policy enabled) or if is currently appearing. +- Tabs: Fixed Tab tooltip code making drag and drop tooltip disappear during the frame where + the drag payload activate a tab. +- Tabs: Reworked scrolling policy (when ImGuiTabBarFlags_FittingPolicyScroll is set) to + teleport the view when aiming at a tab far away the visible section, and otherwise accelerate + the scrolling speed to cap the scrolling time to 0.3 seconds. +- Text: Fixed large Text/TextUnformatted calls not feeding their size into layout when starting + below the lower point of the current clipping rectangle. This bug has been there since v1.0! + It was hardly noticeable but would affect the scrolling range, which in turn would affect + some scrolling request functions when called during the appearing frame of a window. +- Plot: Fixed divide-by-zero in PlotLines() when passing a count of 1. (#2387) [@Lectem] +- Log/Capture: Fixed LogXXX functions emitting extraneous leading carriage return. +- Log/Capture: Fixed an issue when empty string on a new line would not emit a carriage return. +- Log/Capture: Fixed LogXXX functions 'auto_open_depth' parameter being treated as an absolute + tree depth instead of a relative one. +- Log/Capture: Fixed CollapsingHeader trailing ascii representation being "#" instead of "##". +- ImFont: Added GetGlyphRangesVietnamese() helper. (#2403) +- Misc: Asserting in NewFrame() if style.WindowMinSize is zero or smaller than (1.0f,1.0f). +- Demo: Using GetBackgroundDrawList() and GetForegroundDrawList() in "Custom Rendering" demo. +- Demo: InputText: Demonstrating use of ImGuiInputTextFlags_CallbackResize. (#2006, #1443, #1008). +- Examples: GLFW, SDL: Preserve DisplayFramebufferScale when main viewport is minimized. + (This is particularly useful for the viewport branch because we are not supporting per-viewport + frame-buffer scale. It fixes windows not refreshing when main viewport is minimized.) (#2416) +- Examples: OpenGL: Fix to be able to run on ES 2.0 / WebGL 1.0. [@rmitton, @gabrielcuvillier] +- Examples: OpenGL: Fix for OSX not supporting OpenGL 4.5, we don't try to read GL_CLIP_ORIGIN + even if the OpenGL headers/loader happens to define the value. (#2366, #2186) +- Examples: Allegro: Added support for touch events (emulating mouse). (#2219) [@dos1] +- Examples: DirectX9: Minor changes to match the other DirectX examples more closely. (#2394) + + +----------------------------------------------------------------------- + VERSION 1.68 (Released 2019-02-19) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.68 + +Breaking Changes: + +- Removed io.DisplayVisibleMin/DisplayVisibleMax (which were marked obsolete and removed from viewport/docking branch already). +- Made it illegal/assert when io.DisplayTime == 0.0f (with an exception for the first frame). + If for some reason your time step calculation gives you a zero value, replace it with a arbitrarily small value! + +Other Changes: + +- Added .editorconfig file for text editors to standardize using spaces. (#2038) [@kudaba] +- ImDrawData: Added FramebufferScale field (currently a copy of the value from io.DisplayFramebufferScale). + This is to allow render functions being written without pulling any data from ImGuiIO, allowing incoming + multi-viewport feature to behave on Retina display and with multiple displays. + If you are not using a custom backend, please update your render function code ahead of time, + and use draw_data->FramebufferScale instead of io.DisplayFramebufferScale. (#2306, #1676) +- Added IsItemActivated() as an extension to the IsItemDeactivated/IsItemDeactivatedAfterEdit functions + which are useful to implement variety of undo patterns. (#820, #956, #1875) +- InputText: Fixed a bug where ESCAPE would not restore the initial value in all situations. (#2321) [@relick] +- InputText: Fixed a bug where ESCAPE would be first captured by the Keyboard Navigation code. (#2321, #787) +- InputText: Fixed redo buffer exhaustion handling (rare) which could corrupt the undo character buffer. (#2333) + The way the redo/undo buffers work would have made it generally unnoticeable to the user. +- Fixed range-version of PushID() and GetID() not honoring the ### operator to restart from the seed value. +- Fixed CloseCurrentPopup() on a child-menu of a modal incorrectly closing the modal. (#2308) +- Tabs: Added ImGuiTabBarFlags_TabListPopupButton flag to show a popup button on manual tab bars. (#261, #351) +- Tabs: Removed ImGuiTabBarFlags_NoTabListPopupButton which was available in 1.67 but actually had zero use. +- Tabs: Fixed a minor clipping glitch when changing style's FramePadding from frame to frame. +- Tabs: Fixed border (when enabled) so it is aligned correctly mid-pixel and appears as bright as other borders. +- Style, Selectable: Added ImGuiStyle::SelectableTextAlign and ImGuiStyleVar_SelectableTextAlign. (#2347) [@haldean] +- Menus: Tweaked horizontal overlap between parent and child menu (to help convey relative depth) + from using style.ItemSpacing.x to style.ItemInnerSpacing.x, the later being expected to be smaller. (#1086) +- RadioButton: Fixed label horizontal alignment to precisely match Checkbox(). +- Window: When resizing from an edge, the border is more visible and better follow the rounded corners. +- Window: Fixed initial width of collapsed windows not taking account of contents width (broken in 1.67). (#2336, #176) +- Scrollbar: Fade out and disable interaction when too small, in order to facilitate using the resize grab on very + small window, as well as reducing visual noise/overlap. +- ListBox: Better optimized when clipped / non-visible. +- InputTextMultiline: Better optimized when clipped / non-visible. +- Font: Fixed high-level ImGui::CalcTextSize() used by most widgets from erroneously subtracting 1.0f*scale to + calculated text width. Among noticeable side-effects, it would make sequences of repeated Text/SameLine calls + not align the same as a single call, and create mismatch between high-level size calculation and those performed + with the lower-level ImDrawList api. (#792) [@SlNPacifist] +- Font: Fixed building atlas when specifying duplicate/overlapping ranges within a same font. (#2353, #2233) +- ImDrawList: Fixed AddCircle(), AddCircleFilled() angle step being off, which was visible when drawing a "circle" + with a small number of segments (e.g. an hexagon). (#2287) [@baktery] +- ImGuiTextBuffer: Added append() function (unformatted). +- ImFontAtlas: Added 0x2000-0x206F general punctuation range to default ChineseFull/ChineseSimplifiedCommon ranges. (#2093) +- ImFontAtlas: FreeType: Added support for imgui allocators + custom FreeType only SetAllocatorFunctions. (#2285) [@Vuhdo] +- ImFontAtlas: FreeType: Fixed using imgui_freetype.cpp in unity builds. (#2302) +- Demo: Fixed "Log" demo not initializing properly, leading to the first line not showing before a Clear. (#2318) [@bluescan] +- Demo: Added "Auto-scroll" option in Log/Console demos. (#2300) [@nicolasnoble, @ocornut] +- Examples: Metal, OpenGL2, OpenGL3, Vulkan: Fixed offsetting of clipping rectangle with ImDrawData::DisplayPos != (0,0) + when the display frame-buffer scale scale is not (1,1). While this doesn't make a difference when using master branch, + this is effectively fixing support for multi-viewport with Mac Retina Displays on those examples. (#2306) [@rasky, @ocornut] + Also using ImDrawData::FramebufferScale instead of io.DisplayFramebufferScale. +- Examples: Clarified the use the ImDrawData::DisplayPos to offset clipping rectangles. +- Examples: Win32: Using GetForegroundWindow()+IsChild() instead of GetActiveWindow() to be compatible with windows created + in a different thread or parent. (#1951, #2087, #2156, #2232) [many people] +- Examples: SDL: Using the SDL_WINDOW_ALLOW_HIGHDPI flag. (#2306, #1676) [@rasky] +- Examples: Win32: Added support for XInput gamepads (if ImGuiConfigFlags_NavEnableGamepad is enabled). +- Examples: Win32: Added support for mouse buttons 4 and 5 via WM_XBUTTON* messages. (#2264) +- Examples: DirectX9: Explicitly disable fog (D3DRS_FOGENABLE) before drawing in case user state has it set. (#2288, #2230) +- Examples: OpenGL2: Added #define GL_SILENCE_DEPRECATION to cope with newer XCode warnings. +- Examples: OpenGL3: Using GLSL 4.10 shaders for any GLSL version over 410 (e.g. 430, 450). (#2329) [@BrutPitt] + + +----------------------------------------------------------------------- + VERSION 1.67 (Released 2019-01-14) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.67 + +Breaking Changes: + +- Made it illegal to call Begin("") with an empty string. This somehow half-worked before but had various undesirable + side-effect because the window would have ID zero. In particular it is causing problems in viewport/docking branches. +- Renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges and removed its [Beta] mark. + The addition of new configuration options in the Docking branch is pushing for a little reorganization of those names. +- Renamed ImFontAtlas::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Kept redirection typedef (will obsolete). + +Other Changes: + +- Added BETA api for Tab Bar/Tabs widgets: (#261, #351) + - Added BeginTabBar(), EndTabBar(), BeginTabItem(), EndTabItem(), SetTabItemClosed() API. + - Added ImGuiTabBarFlags flags for BeginTabBar(). + - Added ImGuiTabItemFlags flags for BeginTabItem(). + - Style: Added ImGuiCol_Tab, ImGuiCol_TabHovered, ImGuiCol_TabActive, ImGuiCol_TabUnfocused, ImGuiCol_TabUnfocusedActive colors. + - Demo: Added Layout->Tabs demo code. + - Demo: Added "Documents" example app showcasing possible use for tabs. + This feature was merged from the Docking branch in order to allow the use of regular tabs in your code. + (It does not provide the docking/splitting/merging of windows available in the Docking branch) +- Added ImGuiWindowFlags_UnsavedDocument window flag to append '*' to title without altering the ID, as a convenience + to avoid using the ### operator. In the Docking branch this also has an effect on tab closing behavior. +- Window, Focus, Popup: Fixed an issue where closing a popup by clicking another window with the _NoMove flag would refocus + the parent window of the popup instead of the newly clicked window. +- Window: Contents size is preserved while a window collapsed. Fix auto-resizing window losing their size for one frame when uncollapsed. +- Window: Contents size is preserved while a window contents is hidden (unless it is hidden for resizing purpose). +- Window: Resizing windows from edge is now enabled by default (io.ConfigWindowsResizeFromEdges=true). Note that + it only works _if_ the backend sets ImGuiBackendFlags_HasMouseCursors, which the standard backends do. +- Window: Added io.ConfigWindowsMoveFromTitleBarOnly option. This is ignored by window with no title bars (often popups). + This affects clamping window within the visible area: with this option enabled title bars need to be visible. (#899) +- Window: Fixed using SetNextWindowPos() on a child window (which wasn't really documented) position the cursor as expected + in the parent window, so there is no mismatch between the layout in parent and the position of the child window. +- InputFloat: When using ImGuiInputTextFlags_ReadOnly the step buttons are disabled. (#2257) +- DragFloat: Fixed broken mouse direction change with power!=1.0. (#2174, #2206) [@Joshhua5] +- Nav: Fixed an keyboard issue where holding Activate/Space for longer than two frames on a button would unnecessary + keep the focus on the parent window, which could steal it from newly appearing windows. (#787) +- Nav: Fixed animated window titles from being updated when displayed in the CTRL+Tab list. (#787) +- Error recovery: Extraneous/undesired calls to End() are now being caught by an assert in the End() function closer + to the user call site (instead of being reported in EndFrame). Past the assert, they don't lead to crashes any more. (#1651) + Missing calls to End(), past the assert, should not lead to crashes or to the fallback Debug window appearing on screen. + Those changes makes it easier to integrate dear imgui with a scripting language allowing, given asserts are redirected + into e.g. an error log and stopping the script execution. +- ImFontAtlas: Stb and FreeType: Atlas width is now properly based on total surface rather than glyph count (unless overridden with TexDesiredWidth). +- ImFontAtlas: Stb and FreeType: Fixed atlas builder so missing glyphs won't influence the atlas texture width. (#2233) +- ImFontAtlas: Stb and FreeType: Fixed atlas builder so duplicate glyphs (when merging fonts) won't be included in the rasterized atlas. +- ImFontAtlas: FreeType: Fixed abnormally high atlas height. +- ImFontAtlas: FreeType: Fixed support for any values of TexGlyphPadding (not just only 1). +- ImDrawList: Optimized some of the functions for performance of debug builds where non-inline function call cost are non-negligible. + (Our test UI scene on VS2015 Debug Win64 with /RTC1 went ~5.9 ms -> ~4.9 ms. In Release same scene stays at ~0.3 ms.) +- IO: Added BackendPlatformUserData, BackendRendererUserData, BackendLanguageUserData void* for storage use by backends. +- IO: Renamed InputCharacters[], marked internal as was always intended. Please don't access directly, and use AddInputCharacter() instead! +- IO: AddInputCharacter() goes into a queue which can receive as many characters as needed during the frame. This is useful + for automation to not have an upper limit on typing speed. Will later transition key/mouse to use the event queue later. +- Style: Tweaked default value of style.DisplayWindowPadding from (20,20) to (19,19) so the default style as a value + which is the same as the title bar height. +- Demo: "Simple Layout" and "Style Editor" are now using tabs. +- Demo: Added a few more things under "Child windows" (changing ImGuiCol_ChildBg, positioning child, using IsItemHovered after a child). +- Examples: DirectX10/11/12: Made imgui_impl_dx10/dx11/dx12.cpp link d3dcompiler.lib from the .cpp file to ease integration. +- Examples: Allegro 5: Properly destroy globals on shutdown to allow for restart. (#2262) [@DomRe] + + +----------------------------------------------------------------------- + VERSION 1.66b (Released 2018-12-01) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.66b + +Other Changes: + +- Fixed a text rendering/clipping bug introduced in 1.66 (on 2018-10-12, commit ede3a3b9) that affect single ImDrawList::AddText() + calls with single strings larger than 10k. Text/TextUnformatted() calls were not affected, but e.g. InputText() was. [@pdoane] +- When the focused window become inactive don't restore focus to a window with the ImGuiWindowFlags_NoInputs flag. (#2213) [@zzzyap] +- Separator: Fixed Separator() outputting an extraneous empty line when captured into clipboard/text/file. +- Demo: Added ShowAboutWindow() call, previously was only accessible from the demo window. +- Demo: ShowAboutWindow() now display various Build/Config Information (compiler, os, etc.) that can easily be copied into bug reports. +- Fixed build issue with osxcross and macOS. (#2218) [@dos1] +- Examples: Setting up 'io.BackendPlatformName'/'io.BackendRendererName' fields to the current backend can be displayed in the About window. +- Examples: SDL: changed the signature of ImGui_ImplSDL2_ProcessEvent() to use a const SDL_Event*. (#2187) + + +----------------------------------------------------------------------- + VERSION 1.66 (Released 2018-11-22) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.66 + +Breaking Changes: + +- Renamed SetScrollHere() to SetScrollHereY(). Kept redirection function (will obsolete). +- Renamed misc/stl/imgui_stl.* to misc/cpp/imgui_stdlib.* in prevision for other C++ helper files. (#2035, #2096) + +Other Changes: + +- Fixed calling SetNextWindowSize()/SetWindowSize() with non-integer values leading to + accidental alteration of window position. We now round the provided size. (#2067) +- Fixed calling DestroyContext() always saving .ini data with the current context instead + of the supplied context pointer. (#2066) +- Nav, Focus: Fixed ImGuiWindowFlags_NoBringToFrontOnFocus windows not being restoring focus + properly after the main menu bar or last focused window is deactivated. +- Nav: Fixed an assert in certain circumstance (mostly when using popups) when mouse positions stop being valid. (#2168) +- Nav: Fixed explicit directional input not re-highlighting current nav item if there is a single item in the window + and highlight has been previously disabled by the mouse. (#787) +- DragFloat: Fixed a situation where dragging with value rounding enabled or with a power curve + erroneously wrapped the value to one of the min/max edge. (#2024, #708, #320, #2075). +- DragFloat: Disabled using power curve when one edge is FLT_MAX (broken in 1.61). (#2024) +- DragFloat: Disabled setting a default drag speed when one edge is FLT_MAX. (#2024) +- SliderAngle: Added optional format argument to alter precision or localize the string. (#2150) [@podsvirov] +- Window: Resizing from edges (with io.ConfigResizeWindowsFromEdges Beta flag) extends the hit region + of root floating windows outside the window, making it easier to resize windows. Resize grips are also + extended accordingly so there are no discontinuity when hovering between borders and corners. (#1495, #822) +- Window: Added ImGuiWindowFlags_NoBackground flag to avoid rendering window background. This is mostly to allow + the creation of new flag combinations, as we could already use SetNextWindowBgAlpha(0.0f). (#1660) [@biojppm, @ocornut] +- Window: Added ImGuiWindowFlags_NoDecoration helper flag which is essentially NoTitleBar+NoResize+NoScrollbar+NoCollapse. +- Window: Added ImGuiWindowFlags_NoMouseInputs which is basically the old ImGuiWindowFlags_NoInputs (essentially + we have renamed ImGuiWindowFlags_NoInputs to ImGuiWindowFlags_NoMouseInputs). Made the new ImGuiWindowFlags_NoInputs + encompass both NoMouseInputs+NoNav, which is consistent with its description. (#1660, #787) +- Window, Inputs: Fixed resizing from edges when io.MousePos is not pixel-rounded by rounding mouse position input. (#2110) +- BeginChild(): Fixed BeginChild(const char*, ...) variation erroneously not applying the ID stack + to the provided string to uniquely identify the child window. This was undoing an intentional change + introduced in 1.50 and broken in 1.60. (#1698, #894, #713). +- TextUnformatted(): Fixed a case where large-text path would read bytes past the text_end marker depending + on the position of new lines in the buffer (it wasn't affecting the output but still not the right thing to do!) +- ListBox(): Fixed frame sizing when items_count==1 unnecessarily showing a scrollbar. (#2173) [@luk1337, @ocornut] +- ListBox(): Tweaked frame sizing so list boxes will look more consistent when FramePadding is far from ItemSpacing. +- RenderText(): Some optimization for very large text buffers, useful for non-optimized builds. +- BeginMenu(): Fixed menu popup horizontal offset being off the item in the menu bar when WindowPadding=0.0f. +- ArrowButton(): Fixed arrow shape being horizontally misaligned by (FramePadding.y-FramePadding.x) if they are different. +- Demo: Split the contents of ShowDemoWindow() into smaller functions as it appears to speed up link time with VS. (#2152) +- Drag and Drop: Added GetDragDropPayload() to peek directly into the payload (if any) from anywhere. (#143) +- ImGuiTextBuffer: Avoid heap allocation when empty. +- ImDrawList: Fixed AddConvexPolyFilled() undefined behavior when passing points_count smaller than 3, + in particular, points_count==0 could lead to a memory stomp if the draw list was previously empty. +- Examples: DirectX10, DirectX11: Removed seemingly unnecessary calls to invalidate and recreate device objects + in the WM_SIZE handler. (#2088) [@ice1000] +- Examples: GLFW: User previously installed GLFW callbacks are now saved and chain-called by the default callbacks. (#1759) +- Examples: OpenGL3: Added support for GL 4.5's glClipControl(GL_UPPER_LEFT). (#2186) +- Examples: OpenGL3+GLFW: Fixed error condition when using the GLAD loader. (#2157) [@blackball] +- Examples: OpenGL3+GLFW/SDL: Made main.cpp compile with IMGUI_IMPL_OPENGL_LOADER_CUSTOM (may be missing init). (#2178) [@doug-moen] +- Examples: SDL2+Vulkan: Fixed application shutdown which could deadlock on Linux + Xorg. (#2181) [@eRabbit0] + + +----------------------------------------------------------------------- + VERSION 1.65 (Released 2018-09-06) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.65 + +Breaking Changes: + +- Renamed stb_truetype.h to imstb_truetype.h, stb_textedit.h to imstb_textedit.h, and + stb_rect_pack.h to imstb_rectpack.h. If you were conveniently using the imgui copy of those + STB headers in your project, you will have to update your include paths. (#1718, #2036) + The reason for this change is to avoid conflicts for projects that may also be importing + their own copy of the STB libraries. Note that imgui's copy of stb_textedit.h is modified. +- Renamed io.ConfigCursorBlink to io.ConfigInputTextCursorBlink. (#1427) + +Other Changes: + +- This is a minor release following the 1.64 refactor, with a little more shuffling of code. +- Clarified and improved the source code sectioning in all files (easier to search or browse sections). +- Nav: Removed the [Beta] tag from various descriptions of the gamepad/keyboard navigation system. + Although it is not perfect and will keep being improved, it is fairly functional and used by many. (#787) +- Fixed a build issue with non-Cygwin GCC under Windows. +- Demo: Added a "Configuration" block to make io.ConfigFlags/io.BackendFlags more prominent. +- Examples: OpenGL3+SDL2: Fixed error condition when using the GLAD loader. (#2059, #2002) [@jiri] + + +----------------------------------------------------------------------- + VERSION 1.64 (Released 2018-08-31) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.64 + +Changes: + +- Moved README, CHANGELOG and TODO files to the docs/ folder. + If you are updating dear imgui by copying files, take the chance to delete the old files. +- Added imgui_widgets.cpp file, extracted and moved widgets code out of imgui.cpp into imgui_widgets.cpp. + Re-ordered some of the code remaining in imgui.cpp. + NONE OF THE FUNCTIONS HAVE CHANGED. THE CODE IS SEMANTICALLY 100% IDENTICAL, BUT _EVERY_ FUNCTIONS HAS BEEN MOVED. + Because of this, any local modifications to imgui.cpp will likely conflict when you update. + If you have any modifications to imgui.cpp, it is suggested that you first update to 1.63, then + isolate your patches. You can peak at imgui_widgets.cpp from 1.64 to get a sense of what is included in it, + then separate your changes into several patches that can more easily be applied to 1.64 on a per-file basis. + What I found worked nicely for me, was to open the diff of the old patches in an interactive merge/diff tool, + search for the corresponding function in the new code and apply the chunks manually. +- As a reminder, if you have any change to imgui.cpp it is a good habit to discuss them on the github, + so a solution applicable on the Master branch can be found. If your company has changes that you cannot + disclose you may also contact me privately. + + +----------------------------------------------------------------------- + VERSION 1.63 (Released 2018-08-29) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.63 + +Breaking Changes: + +- Style: Renamed ImGuiCol_ModalWindowDarkening to ImGuiCol_ModalWindowDimBg for consistency with other features. + Kept redirection enum (will obsolete). +- Changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecision over time. +- Removed per-window ImGuiWindowFlags_ResizeFromAnySide Beta flag in favor `io.ConfigResizeWindowsFromEdges=true` to + enable the feature globally. (#1495) + The feature is not currently enabled by default because it is not satisfying enough, but will eventually be. +- InputText: Renamed ImGuiTextEditCallback to ImGuiInputTextCallback, ImGuiTextEditCallbackData to ImGuiInputTextCallbackData + for consistency. Kept redirection types (will obsolete). +- InputText: Removed ImGuiTextEditCallbackData::ReadOnly because it is a duplication of (::Flags & ImGuiInputTextFlags_ReadOnly). +- Renamed IsItemDeactivatedAfterChange() to IsItemDeactivatedAfterEdit() for consistency with new IsItemEdited() API. + Kept redirection function (will obsolete soonish as IsItemDeactivatedAfterChange() is very recent). +- Renamed io.OptCursorBlink to io.ConfigCursorBlink [-> io.ConfigInputTextCursorBlink in 1.65], io.OptMacOSXBehaviors to + io.ConfigMacOSXBehaviors for consistency. (#1427, #473) +- Removed obsolete redirection functions: CollapsingHeader() variation with 2 bools - marked obsolete in v1.49, May 2016. + +Other Changes: + +- ArrowButton: Fixed to honor PushButtonRepeat() setting (and internals' ImGuiItemFlags_ButtonRepeat). +- ArrowButton: Setup current line text baseline so that ArrowButton() + SameLine() + Text() are aligned properly. +- Nav: Added a CTRL+TAB window list and changed the highlight system accordingly. The change is motivated by upcoming + Docking features. (#787) +- Nav: Made CTRL+TAB skip menus + skip the current navigation window if is has the ImGuiWindow_NoNavFocus set. (#787) + While it was previously possible, you won't be able to CTRL-TAB out and immediately back in a window with the + ImGuiWindow_NoNavFocus flag. +- Window: Allow menu and popups windows from ignoring the style.WindowMinSize values so short menus/popups are not padded. (#1909) +- Window: Added global io.ConfigResizeWindowsFromEdges option to enable resizing windows from their edges and from + the lower-left corner. (#1495) +- Window: Collapse button shows hovering highlight + clicking and dragging on it allows to drag the window as well. +- Added IsItemEdited() to query if the last item modified its value (or was pressed). This is equivalent to the bool + returned by most widgets. + It is useful in some situation e.g. using InputText() with ImGuiInputTextFlags_EnterReturnsTrue. (#2034) +- InputText: Added support for buffer size/capacity changes via the ImGuiInputTextFlags_CallbackResize flag. (#2006, #1443, #1008). +- InputText: Fixed not tracking the cursor horizontally when modifying the text buffer through a callback. +- InputText: Fixed minor off-by-one issue when submitting a buffer size smaller than the initial zero-terminated buffer contents. +- InputText: Fixed a few pathological crash cases on single-line InputText widget with multiple millions characters worth of contents. + Because the current text drawing function reserve for a worst-case amount of vertices and how we handle horizontal clipping, + we currently just avoid displaying those single-line widgets when they are over a threshold of 2 millions characters, + until a better solution is found. +- Drag and Drop: Fixed an incorrect assert when dropping a source that is submitted after the target (bug introduced with 1.62 changes + related to the addition of IsItemDeactivated()). (#1875, #143) +- Drag and Drop: Fixed ImGuiDragDropFlags_SourceNoDisableHover to affect hovering state prior to calling IsItemHovered() + fixed description. (#143) +- Drag and Drop: Calling BeginTooltip() between a BeginDragSource()/EndDragSource() or BeginDropTarget()/EndDropTarget() uses adjusted tooltip + settings matching the one created when calling BeginDragSource() without the ImGuiDragDropFlags_SourceNoPreviewTooltip flag. (#143) +- Drag and Drop: Payload stays available and under the mouse if the source stops being submitted, however the tooltip is replaced by "...". (#1725) +- Drag and Drop: Added ImGuiDragDropFlags_SourceAutoExpirePayload flag to force payload to expire if the source stops being submitted. (#1725, #143). +- IsItemHovered(): Added ImGuiHoveredFlags_AllowWhenDisabled flag to query hovered status on disabled items. (#1940, #211) +- Selectable: Added ImGuiSelectableFlags_Disabled flag in the public API. (#211) +- ColorEdit4: Fixed a bug when text input or drag and drop leading to unsaturated HSV values would erroneously alter the resulting color. (#2050) +- Misc: Added optional misc/stl/imgui_stl.h wrapper to use with STL types (e.g. InputText with std::string). (#2006, #1443, #1008) + [*EDIT* renamed to misc/std/imgui_stdlib.h in 1.66] +- Misc: Added IMGUI_VERSION_NUM for easy compile-time testing. (#2025) +- Misc: Added ImGuiMouseCursor_Hand cursor enum + corresponding software cursor. (#1913, 1914) [@aiekick, @ocornut] +- Misc: Tweaked software mouse cursor offset to match the offset of the corresponding Windows 10 cursors. +- Made assertion more clear when trying to call Begin() outside of the NewFrame()..EndFrame() scope. (#1987) +- Fixed assertion when transitioning from an active ID to another within a group, affecting ColorPicker (broken in 1.62). (#2023, #820, #956, #1875). +- Fixed PushID() from keeping alive the new ID Stack top value (if a previously active widget shared the ID it would be erroneously kept alive). +- Fixed horizontal mouse wheel not forwarding the request to the parent window if ImGuiWindowFlags_NoScrollWithMouse is set. (#1463, #1380, #1502) +- Fixed a include build issue for Cygwin in non-POSIX (Win32) mode. (#1917, #1319, #276) +- ImDrawList: Improved handling for worst-case vertices reservation policy when large amount of text (e.g. 1+ million character strings) + are being submitted in a single call. It would typically have crashed InputTextMultiline(). (#200) +- OS/Windows: Fixed missing ImmReleaseContext() call in the default Win32 IME handler. (#1932) [@vby] +- Metrics: Changed io.MetricsActiveWindows to reflect the number of active windows (!= from visible windows), which is useful + for lazy/idle render mechanisms as new windows are typically not visible for one frame. +- Metrics: Added io.MetricsRenderWindow to reflect the number of visible windows. +- Metrics: Added io.MetricsActiveAllocations, moving away from the cross-context global counters than we previously used. (#1565, #1599, #586) +- Demo: Added basic Drag and Drop demo. (#143) +- Demo: Modified the Console example to use InsertChars() in the input text callback instead of poking directly into the buffer. + Although this won't make a difference in the example itself, using InsertChars() will honor the resizing callback properly. (#2006, #1443, #1008). +- Demo: Clarified the use of IsItemHovered()/IsItemActive() right after being in the "Active, Focused, Hovered & Focused Tests" section. +- Examples: Tweaked the main.cpp of each example. +- Examples: Metal: Added Metal rendering backend. (#1929, #1873) [@warrenm] +- Examples: OSX: Added early raw OSX platform backend. (#1873) [@pagghiu, @itamago, @ocornut] +- Examples: Added mac OSX & iOS + Metal example in example_apple_metal/. (#1929, #1873) [@warrenm] +- Examples: Added mac OSX + OpenGL2 example in example_apple_opengl2/. (#1873) +- Examples: OpenGL3: Added shaders more versions of GLSL. (#1938, #1941, #1900, #1513, #1466, etc.) +- Examples: OpenGL3: Tweaked the imgui_impl_opengl3.cpp to work as-is with Emscripten + WebGL 2.0. (#1941). [@o-micron] +- Examples: OpenGL3: Made the example app default to GL 3.0 + GLSL 130 (instead of GL 3.2 + GLSL 150) unless on Mac. +- Examples: OpenGL3: Added error output when shaders fail to compile/link. +- Examples: OpenGL3: Added support for glew and glad OpenGL loaders out of the box. (#2001, #2002) [@jdumas] +- Examples: OpenGL2: Disabling/restoring GL_LIGHTING and GL_COLOR_MATERIAL to increase compatibility with legacy OpenGL applications. (#1996) +- Examples: DirectX10, DirectX11: Fixed unreleased resources in Init and Shutdown functions. (#1944) +- Examples: DirectX11: Querying for IDXGIFactory instead of IDXGIFactory1 to increase compatibility. (#1989) [@matt77hias] +- Examples: Vulkan: Fixed handling of VkSurfaceCapabilitiesKHR::maxImageCount = 0 case. Tweaked present mode selections. +- Examples: Win32, Glfw, SDL: Added support for the ImGuiMouseCursor_Hand cursor. + + +----------------------------------------------------------------------- + VERSION 1.62 (Released 2018-06-22) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.62 + +Breaking Changes: + +- TreeNodeEx(): The helper ImGuiTreeNodeFlags_CollapsingHeader flag now include ImGuiTreeNodeFlags_NoTreePushOnOpen. + The flag was already set by CollapsingHeader(). + The only difference is if you were using TreeNodeEx() manually with ImGuiTreeNodeFlags_CollapsingHeader and without + ImGuiTreeNodeFlags_NoTreePushOnOpen. In this case you can remove the ImGuiTreeNodeFlags_NoTreePushOnOpen flag from + your call (ImGuiTreeNodeFlags_CollapsingHeader & ~ImGuiTreeNodeFlags_NoTreePushOnOpen). (#1864) + This also apply if you were using internal's TreeNodeBehavior() with the ImGuiTreeNodeFlags_CollapsingHeader flag directly. +- ImFontAtlas: Renamed GetGlyphRangesChinese() to GetGlyphRangesChineseFull() to distinguish new smaller variants and + discourage using the full set. (#1859) + +Other Changes: + +- Examples backends have been refactored to separate the platform code (e.g. Win32, Glfw, SDL2) from the renderer code (e.g. DirectX11, OpenGL3, Vulkan). + The "Platform" backends are in charge of: mouse/keyboard/gamepad inputs, cursor shape, timing, etc. + The "Renderer" backends are in charge of: creating the main font texture, rendering imgui draw data. + before: imgui_impl_dx11.cpp --> after: imgui_impl_win32.cpp + imgui_impl_dx11.cpp + before: imgui_impl_dx12.cpp --> after: imgui_impl_win32.cpp + imgui_impl_dx12.cpp + before: imgui_impl_glfw_gl3.cpp --> after: imgui_impl_glfw.cpp + imgui_impl_opengl2.cpp + before: imgui_impl_glfw_vulkan.cpp --> after: imgui_impl_glfw.cpp + imgui_impl_vulkan.cpp + before: imgui_impl_sdl_gl3.cpp --> after: imgui_impl_sdl2.cpp + imgui_impl_opengl2.cpp + before: imgui_impl_sdl_gl3.cpp --> after: imgui_impl_sdl2.cpp + imgui_impl_opengl3.cpp etc. + - The idea is what we can now easily combine and maintain backends and reduce code redundancy. Individual files are + smaller and more reusable. Integration of imgui into a new/custom engine may also be easier as there is less overlap + between "windowing / inputs" and "rendering" code, so you may study or grab one half of the code and not the other. + - This change was motivated by the fact that adding support for the upcoming multi-viewport feature requires more work + from the Platform and Renderer backends, and the amount of redundancy across files was becoming too difficult to + maintain. If you use default backends, you'll benefit from an easy update path to support multi-viewports later + (for future ImGui 1.7x). + - This is not strictly a breaking change if you keep your old backends, but when you'll want to fully update your backends, + expect to have to reshuffle a few things. + - Each example still has its own main.cpp which you may refer you to understand how to initialize and glue everything together. + - Some frameworks (such as the Allegro, Marmalade) handle both the "platform" and "rendering" part, and your custom engine may as well. + - Read examples/README.txt for details. +- Added IsItemDeactivated() to query if the last item was active previously and isn't anymore. Useful for Undo/Redo patterns. (#820, #956, #1875) +- Added IsItemDeactivatedAfterChange() [*EDIT* renamed to IsItemDeactivatedAfterEdit() in 1.63] if the last item was active previously, + is not anymore, and during its active state modified a value. Note that you may still get false positive (e.g. drag value and while + holding return on the same value). (#820, #956, #1875) +- Nav: Added support for PageUp/PageDown (explorer-style: first aim at bottom/top most item, when scroll a page worth of contents). (#787) +- Nav: To keep the navigated item in view we also attempt to scroll the parent window as well as the current window. (#787) +- ColorEdit3, ColorEdit4, ColorButton: Added ImGuiColorEditFlags_NoDragDrop flag to disable ColorEditX as drag target and ColorButton as drag source. (#1826) +- BeginDragDropSource(): Offset tooltip position so it is off the mouse cursor, but also closer to it than regular tooltips, + and not clamped by viewport. (#1739) +- BeginDragDropTarget(): Added ImGuiDragDropFlags_AcceptNoPreviewTooltip flag to request hiding the drag source tooltip + from the target site. (#143) +- BeginCombo(), BeginMainMenuBar(), BeginChildFrame(): Temporary style modification are restored at the end of BeginXXX + instead of EndXXX, to not affect tooltips and child windows. +- Popup: Improved handling of (erroneously) repeating calls to OpenPopup() to not close the popup's child popups. (#1497, #1533, #1865). +- InputTextMultiline(): Fixed double navigation highlight when scrollbar is active. (#787) +- InputText(): Fixed Undo corruption after pasting large amount of text (Redo will still fail when undo buffers are exhausted, + but text won't be corrupted). +- SliderFloat(): When using keyboard/gamepad and a zero precision format string (e.g. "%.0f"), always step in integer units. (#1866) +- ImFontConfig: Added GlyphMinAdvanceX/GlyphMaxAdvanceX settings useful to make a font appears monospaced, particularly useful + for icon fonts. (#1869) +- ImFontAtlas: Added GetGlyphRangesChineseSimplifiedCommon() helper that returns a list of ~2500 most common Simplified Chinese + characters. (#1859) [@JX-Master, @ocornut] +- Examples: OSX: Added imgui_impl_osx.mm backend to be used along with e.g. imgui_impl_opengl2.cpp. (#281, #1870) [@pagghiu, @itamago, @ocornut] +- Examples: GLFW: Made it possible to Shutdown/Init the backend again (by resetting the time storage properly). (#1827) [@ice1000] +- Examples: Win32: Fixed handling of mouse wheel messages to support sub-unit scrolling messages (typically sent by track-pads). (#1874) [@zx64] +- Examples: SDL+Vulkan: Added SDL+Vulkan example. +- Examples: Allegro5: Added support for ImGuiConfigFlags_NoMouseCursorChange flag. Added clipboard support. +- Examples: Allegro5: Unindexing buffers ourselves as Allegro indexed drawing primitives are buggy in the DirectX9 backend + (will be fixed in Allegro 5.2.5+). +- Examples: DirectX12: Moved the ID3D12GraphicsCommandList* parameter from ImGui_ImplDX12_NewFrame() to ImGui_ImplDX12_RenderDrawData() which makes a lots more sense. (#301) +- Examples: Vulkan: Reordered parameters ImGui_ImplVulkan_RenderDrawData() to be consistent with other backends, + a good occasion since we refactored the code. +- Examples: FreeGLUT: Added FreeGLUT backends. Added FreeGLUT+OpenGL2 example. (#801) +- Examples: The functions in imgui_impl_xxx.cpp are prefixed with IMGUI_IMPL_API (which defaults to IMGUI_API) to facilitate + some uses. (#1888) +- Examples: Fixed backends to use ImGuiMouseCursor_COUNT instead of old name ImGuiMouseCursor_Count_ so they can compile + with IMGUI_DISABLE_OBSOLETE_FUNCTIONS. (#1887) +- Misc: Updated stb_textedit from 1.09 + patches to 1.12 + minor patches. +- Internals: PushItemFlag() flags are inherited by BeginChild(). + + +----------------------------------------------------------------------- + VERSION 1.61 (Released 2018-05-14) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.61 + +Breaking Changes: + +- DragInt(): The default compile-time format string has been changed from "%.0f" to "%d", as we are not using integers internally + any more. If you used DragInt() with custom format strings, make sure you change them to use %d or an integer-compatible format. + To honor backward-compatibility, the DragInt() code will currently parse and modify format strings to replace %*f with %d, + giving time to users to upgrade their code. + If you have IMGUI_DISABLE_OBSOLETE_FUNCTIONS enabled, the code will instead assert! You may run a reg-exp search on your + codebase for e.g. "DragInt.*%f" to you find them. +- InputFloat(): Obsoleted InputFloat() functions taking an optional "int decimal_precision" in favor of an equivalent and more + flexible "const char* format", consistent with other functions. Kept redirection functions (will obsolete). +- Misc: IM_DELETE() helper function added in 1.60 doesn't set the input pointer to NULL, more consistent with standard + expectation and allows passing r-values. + +Other Changes: + +- Added DragScalar, DragScalarN: supports signed/unsigned, 32/64 bits, float/double data types. (#643, #320, #708, #1011) +- Added InputScalar, InputScalarN: supports signed/unsigned, 32/64 bits, float/double data types. (#643, #320, #708, #1011) +- Added SliderScalar, SliderScalarN: supports signed/unsigned, 32/64 bits, float/double data types. (#643, #320, #708, #1011) +- Window: Fixed pop-ups/tooltips/menus not honoring style.DisplaySafeAreaPadding as well as it should have (part of menus + displayed outside the safe area, etc.). +- Window: Fixed windows using the ImGuiWindowFlags_NoSavedSettings flag from not using the same default position as other windows. (#1760) +- Window: Relaxed the internal stack size checker to allow Push/Begin/Pop/.../End patterns to be used with PushStyleColor, PushStyleVar, PushFont without causing a false positive assert. (#1767) +- Window: Fixed the default proportional item width lagging by one frame on resize. +- Columns: Fixed a bug introduced in 1.51 where columns would affect the contents size of their container, often creating + feedback loops when ImGuiWindowFlags_AlwaysAutoResize was used. (#1760) +- Settings: Fixed saving an empty .ini file if CreateContext/DestroyContext are called without a single call to NewFrame(). (#1741) +- Settings: Added LoadIniSettingsFromDisk(), LoadIniSettingsFromMemory(), SaveIniSettingsToDisk(), SaveIniSettingsToMemory() + to manually load/save .ini settings. (#923, #993) +- Settings: Added io.WantSaveIniSettings flag, which is set to notify the application that e.g. SaveIniSettingsToMemory() + should be called. (#923, #993) +- Scrolling: Fixed a case where using SetScrollHere(1.0f) at the bottom of a window on the same frame the window height + has been growing would have the scroll clamped using the previous height. (#1804) +- MenuBar: Made BeginMainMenuBar() honor style.DisplaySafeAreaPadding so the text can be made visible on TV settings that + don't display all pixels. (#1439) [@dougbinks] +- InputText: On Mac OS X, filter out characters when the CMD modifier is held. (#1747) [@sivu] +- InputText: On Mac OS X, support CMD+SHIFT+Z for Redo. CMD+Y is also supported as major apps seems to default to support both. (#1765) [@lfnoise] +- InputText: Fixed returning true when edition is cancelled with ESC and the current buffer matches the initial value. +- InputFloat,InputFloat2,InputFloat3,InputFloat4: Added variations taking a more flexible and consistent optional + "const char* format" parameter instead of "int decimal_precision". This allow using custom formats to display values + in scientific notation, and is generally more consistent with other API. + Obsoleted functions using the optional "int decimal_precision" parameter. (#648, #712) +- DragFloat, DragInt: Cancel mouse tweak when current value is initially past the min/max boundaries and mouse is pushing + in the same direction (keyboard/gamepad version already did this). +- DragFloat, DragInt: Honor natural type limits (e.g. INT_MAX, FLT_MAX) instead of wrapping around. (#708, #320) +- DragFloat, SliderFloat: Fixes to allow input of scientific notation numbers when using CTRL+Click to input the value. (~#648, #1011) +- DragFloat, SliderFloat: Rounding-on-write uses the provided format string instead of parsing the precision from the string, + which allows for finer uses of %e %g etc. (#648, #642) +- DragFloat: Improved computation when using the power curve. Improved lost of input precision with very small steps. + Added an assert than power-curve requires a min/max range. (~#642) +- DragFloat: The 'power' parameter is only honored if the min/max parameter are also setup. +- DragInt, SliderInt: Fixed handling of large integers (we previously passed data around internally as float, which reduced + the range of valid integers). +- ColorEdit: Fixed not being able to pass the ImGuiColorEditFlags_NoAlpha or ImGuiColorEditFlags_HDR flags to SetColorEditOptions(). +- Nav: Fixed hovering a Selectable() with the mouse so that it update the navigation cursor (as it happened in the pre-1.60 navigation branch). (#787) +- Style: Changed default style.DisplaySafeAreaPadding values from (4,4) to (3,3) so it is smaller than FramePadding and has no effect on main menu bar on a computer. (#1439) +- Fonts: When building font atlas, glyphs that are missing in the fonts are not using the glyph slot to render the default glyph. Saves space and allow merging fonts with + overlapping font ranges such as FontAwesome5 which split out the Brands separately from the Solid fonts. (#1703, #1671) +- Misc: Added IMGUI_CHECKVERSION() macro to compare version string and data structure sizes in order to catch issues with mismatching compilation unit settings. (#1695, #1769) +- Misc: Added IMGUI_DISABLE_MATH_FUNCTIONS in imconfig.h to make it easier to redefine wrappers for std/crt math functions. +- Misc: Fix to allow compiling in unity builds where stb_rectpack/stb_truetype may be already included in the same compilation unit. +- Demo: Simple Overlay: Added a context menu item to enable freely moving the window. +- Demo: Added demo for DragScalar(), InputScalar(), SliderScalar(). (#643) +- Examples: Calling IMGUI_CHECKVERSION() in the main.cpp of every example application. +- Examples: Allegro 5: Added support for 32-bit indices setup via defining ImDrawIdx, to avoid an unnecessary conversion (Allegro 5 doesn't support 16-bit indices). +- Examples: Allegro 5: Renamed backend from imgui_impl_a5.cpp to imgui_impl_allegro5.cpp. +- Examples: DirectX 9: Saving/restoring Transform because they don't seem to be included in the StateBlock. Setting shading mode to Gouraud. (#1790, #1687) [@sr-tream] +- Examples: SDL: Fixed clipboard paste memory leak in the SDL backend code. (#1803) [@eliasdaler] +- Various minor fixes, tweaks, refactoring, comments. + + +----------------------------------------------------------------------- + VERSION 1.60 (Released 2018-04-07) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.60 + +The gamepad/keyboard navigation branch (which has been in the work since July 2016) has been merged. +Gamepad/keyboard navigation is still marked as Beta and has to be enabled explicitly. +Various internal refactoring have also been done, as part of the navigation work and as part of the upcoming viewport/docking work. + +Breaking Changes: + +- Obsoleted the io.RenderDrawListsFn callback, you can call your graphics engine render function after ImGui::Render(). + e.g. with example backends, call ImDrawData* draw_data = ImGui::GetDrawData(); ImGui_ImplXXXX_RenderDrawData(draw_data). +- Reorganized context handling to be more explicit: (#1599) + - YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END. + - removed Shutdown() function, as DestroyContext() serve this purpose. If you are using an old backend from the examples/ folder, remove the line that calls Shutdown(). + - you may pass a ImFontAtlas* pointer to CreateContext() to share a font atlas between contexts. Otherwise CreateContext() will create its own font atlas instance. + - removed allocator parameters from CreateContext(), they are now setup with SetAllocatorFunctions(), and shared by all contexts. + - removed the default global context and font atlas instance, which were confusing for users of DLL reloading and users of multiple contexts. +- Renamed ImGuiStyleVar_Count_ to ImGuiStyleVar_COUNT and ImGuiMouseCursor_Count_ to ImGuiMouseCursor_COUNT for consistency with other public enums. +- Fonts: Moved sample TTF files from extra_fonts/ to misc/fonts/. If you loaded files directly from the imgui repo you may need to update your paths. +- Fonts: Changed ImFont::DisplayOffset.y to defaults to 0 instead of +1. Fixed vertical rounding of Ascent/Descent to match TrueType renderer. + If you were adding or subtracting (not assigning) to ImFont::DisplayOffset check if your fonts are correctly aligned vertically. (#1619) +- BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter because it is not really usable in many situations at the moment. +- Obsoleted IsAnyWindowHovered() in favor of IsWindowHovered(ImGuiHoveredFlags_AnyWindow). Kept redirection function (will obsolete). +- Obsoleted IsAnyWindowFocused() in favor of IsWindowFocused(ImGuiFocusedFlags_AnyWindow). Kept redirection function (will obsolete). +- Renamed io.WantMoveMouse to io.WantSetMousePos for consistency and ease of understanding (was added in 1.52, not used by core, and honored by some backend ahead of merging the Nav branch). +- Removed ImGuiCol_CloseButton, ImGuiCol_CloseButtonActive, ImGuiCol_CloseButtonHovered style colors as the closing cross uses regular button colors now. +- Renamed ImGuiSizeConstraintCallback to ImGuiSizeCallback, ImGuiSizeConstraintCallbackData to ImGuiSizeCallbackData. +- Removed CalcItemRectClosestPoint() which was weird and not really used by anyone except demo code. If you need it should be easy to replicate on your side (you can find the code in 1.53). +- [EDITED] Window: BeginChild() with an explicit name doesn't include the hash within the internal window name. (#1698) + This change was erroneously introduced, undoing the change done for #894, #713, and not documented properly in the original + 1.60 release Changelog. It was fixed on 2018-09-28 (1.66) and I wrote this paragraph the same day. + +Other Changes: + +- Doc: Added a Changelog file in the repository to ease comparing versions (it goes back to dear imgui 1.48), until now it was only on GitHub. +- Navigation: merged in the gamepad/keyboard navigation (about a million changes!). (#787, #323) + The initial focus was to support game controllers, but keyboard is becoming increasingly and decently usable. +- To use Gamepad Navigation: + - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. + - Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + fill the io.NavInputs[] fields before calling NewFrame(). Read imgui.cpp for more details. + - See https://github.com/ocornut/imgui/issues/1599 for recommended gamepad mapping or download PNG/PSD at http://goo.gl/9LgVZW + - See 'enum ImGuiNavInput_' in imgui.h for a description of inputs. Read imgui.cpp for more details. +- To use Keyboard Navigation: + - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. NewFrame() will automatically fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays. + - Basic controls: arrows to navigate, Alt to enter menus, Space to activate item, Enter to edit text, Escape to cancel/close, Ctrl-Tab to focus windows, etc. + - When keyboard navigation is active (io.NavActive + ImGuiConfigFlags_NavEnableKeyboard), the io.WantCaptureKeyboard flag will be set. + For more advanced uses, you may want to read from io.NavActive or io.NavVisible. Read imgui.cpp for more details. +- Navigation: SetItemDefaultFocus() sets the navigation position in addition to scrolling. (#787) +- Navigation: Added IsItemFocused(), added IsAnyItemFocused(). (#787) +- Navigation: Added window flags: ImGuiWindowFlags_NoNav (== ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus). +- Navigation: Style: Added ImGuiCol_NavHighlight, ImGuiCol_NavWindowingHighlight colors. (#787) +- Navigation: TreeNode: Added ImGuiTreeNodeFlags_NavLeftJumpsBackHere flag to allow Nav Left direction to jump back to parent tree node from any of its child. (#1079) +- Navigation: IO: Added io.ConfigFlags (input), io.NavActive (output), io.NavVisible (output). (#787) +- Context: Removed the default global context and font atlas instances, which caused various problems to users of multiple contexts and DLL users. (#1565, #1599) + YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END. Existing apps will assert/crash without it. +- Context: Added SetAllocatorFunctions() to rewire memory allocators (as a replacement to previous parameters to CreateContext()). Allocators are shared by all contexts and imgui helpers. (#1565, #586, #992, #1007, #1558) +- Context: You may pass a ImFontAtlas to CreateContext() to specify a font atlas to share. Shared font atlas are not owned by the context and not destroyed along with it. (#1599) +- Context: Added IMGUI_DISABLE_DEFAULT_ALLOCATORS to disable linking with malloc/free. (#1565, #586, #992, #1007, #1558) +- IO: Added io.ConfigFlags for user application to store settings for imgui and for the backend: + - ImGuiConfigFlags_NavEnableKeyboard: Enable keyboard navigation. + - ImGuiConfigFlags_NavEnableGamepad: Enable gamepad navigation (provided ImGuiBackendFlags_HasGamepad is also set by backend). + - ImGuiConfigFlags_NavEnableSetMousePos: Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. + - ImGuiConfigFlags_NoMouseCursorChange: Instruct backend to not alter mouse cursor shape and visibility (by default the example backend use mouse cursor API of the platform when available) + - ImGuiConfigFlags_NoMouse: Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information passed by the backend. + - ImGuiConfigFlags_IsSRGB, ImGuiConfigFlags_IsTouchScreen: Flags for general application use. +- IO: Added io.BackendFlags for backend to store its capabilities (currently: _HasGamepad, _HasMouseCursors, _HasSetMousePos). This will be used more in the next version. +- IO: Added ImGuiKey_Insert, ImGuiKey_Space keys. Setup in all example backends. (#1541) +- IO: Added Horizontal Mouse Wheel support for horizontal scrolling. (#1463) [@tseeker] +- IO: Added IsAnyMouseDown() helper which is helpful for backends to handle mouse capturing. +- Window: Clicking on a window with the ImGuiWIndowFlags_NoMove flags takes an ActiveId so we can't hover something else when dragging afterwards. (#1381, #1337) +- Window: IsWindowHovered(): Added ImGuiHoveredFlags_AnyWindow, ImGuiFocusedFlags_AnyWindow flags (See Breaking Changes). Added to demo. (#1382) +- Window: Added SetNextWindowBgAlpha() helper. Particularly helpful since the legacy 5-parameters version of Begin() has been marked as obsolete in 1.53. (#1567) +- Window: Fixed SetNextWindowContentSize() with 0.0f on Y axis (or SetNextWindowContentWidth()) overwriting the contents size. Got broken on Dec 10 (1.53). (#1363) +- ArrowButton: Added ArrowButton() given a cardinal direction (e.g. ImGuiDir_Left). +- InputText: Added alternative clipboard shortcuts: Shift+Delete (cut), CTRL+Insert (copy), Shift+Insert (paste). (#1541) +- InputText: Fixed losing Cursor X position when clicking outside on an item that's submitted after the InputText(). It was only noticeable when restoring focus programmatically. (#1418, #1554) +- InputText: Added ImGuiInputTextFlags_CharsScientific flag to also allow 'e'/'E' for input of values using scientific notation. Automatically used by InputFloat. +- Style: Default style is now StyleColorsDark(), instead of the old StyleColorsClassic(). (#707) +- Style: Enable window border by default. (#707) +- Style: Exposed ImGuiStyleVar_WindowTitleAlign, ImGuiStyleVar_ScrollbarSize, ImGuiStyleVar_ScrollbarRounding, ImGuiStyleVar_GrabRounding + added an assert to reduce accidental breakage. (#1181) +- Style: Added style.MouseCursorScale help when using the software mouse cursor facility. (#939). +- Style: Close button nows display a cross before hovering. Fixed cross positioning being a little off. Uses button colors for highlight when hovering. (#707) +- Popup: OpenPopup() Always reopen existing pop-ups. (Removed imgui_internal.h's OpenPopupEx() which was used for this.) (#1497, #1533). +- Popup: BeginPopupContextItem(), BeginPopupContextWindow(), BeginPopupContextVoid(), OpenPopupOnItemClick() all react on mouse release instead of mouse press. (~#439) +- Popup: Better handling of user mistakenly calling OpenPopup() every frame (with reopen_existing option). The error will now be more visible and easier to understand. (#1497) +- Popup: BeginPopup(): Exposed extra_flags parameter that are passed through to Begin(). (#1533) +- Popup: BeginPopupModal: fixed the conditional test for SetNextWindowPos() which was polling the wrong window, which in practice made the test succeed all the time. +- Tooltip: BeginTooltip() sets ImGuiWindowFlags_NoInputs flag. +- Scrollbar: Fixed ScrollbarY enable test after ScrollbarX has been enabled being a little off (small regression from Nov 2017). (#1574) +- Scrollbar: Fixed ScrollbarX enable test subtracting WindowPadding.x (this has been there since the addition of horizontal scroll bar!). +- Columns: Clear offsets data when columns count changed. (#1525) +- Columns: Fixed a memory leak of ImGuiColumnsSet's Columns vector. (#1529) [@unprompted] +- Columns: Fixed resizing a window very small breaking some columns positioning (broken in 1.53). +- Columns: The available column extent takes consideration of the right-most clipped pixel, so the right-most column may look a little wider but will contain the same amount of visible contents. +- MenuBar: Fixed menu bar pushing a clipping rect outside of its allocated bound (usually unnoticeable). +- TreeNode: nodes with the ImGuiTreeNodeFlags_Leaf flag correctly disable highlight when DragDrop is active. (#143, #581) +- Drag and Drop: Increased payload type string to 32 characters instead of 8. (#143) +- Drag and Drop: TreeNode as drop target displays rectangle over full frame. (#1597, #143) +- DragFloat: Fix/workaround for backends which do not preserve a valid mouse position when dragged out of bounds. (#1559) +- InputFloat: Allow inputing value using scientific notation e.g. "1e+10". +- InputDouble: Added InputDouble() function. We use a format string instead of a decimal_precision parameter to also for "%e" and variants. (#1011) +- Slider, Combo: Use ImGuiCol_FrameBgHovered color when hovered. (#1456) [@stfx] +- Combo: BeginCombo(): Added ImGuiComboFlags_NoArrowButton to disable the arrow button and only display the wide value preview box. +- Combo: BeginCombo(): Added ImGuiComboFlags_NoPreview to disable the preview and only display a square arrow button. +- Combo: Arrow button isn't displayed over frame background so its blended color matches other buttons. Left side of the button isn't rounded. +- PlotLines: plot a flat line if scale_min==scale_max. (#1621) +- Fonts: Changed DisplayOffset.y to defaults to 0 instead of +1. Fixed rounding of Ascent/Descent to match TrueType renderer. + If you were adding or subtracting (not assigning) to ImFont::DisplayOffset check if your fonts are correctly aligned vertically. (#1619) +- Fonts: Updated stb_truetype from 1.14 to stb_truetype 1.19. (w/ include fix from some platforms #1622) +- Fonts: Added optional FreeType rasterizer in misc/freetype. Moved from imgui_club repo. (#618) [@Vuhdo, @mikesart, @ocornut] +- Fonts: Moved extra_fonts/ to misc/fonts/. +- ImFontAtlas: Fixed cfg.MergeMode not reusing existing glyphs if available (always overwrote). +- ImFontAtlas: Handle stb_truetype stbtt_InitFont() and stbtt_PackBegin() possible failures more gracefully, GetTexDataAsRGBA32() won't crash during conversion. (#1527) +- ImFontAtlas: Moved mouse cursor data out of ImGuiContext, fix drawing them with multiple contexts. Also remove the last remaining undesirable dependency on ImGui in imgui_draw.cpp. (#939) +- ImFontAtlas: Added ImFontAtlasFlags_NoPowerOfTwoHeight flag to disable padding font height to nearest power of two. (#1613) +- ImFontAtlas: Added ImFontAtlasFlags_NoMouseCursors flag to disable baking software mouse cursors, mostly to save texture memory on very low end hardware. (#1613) +- ImDrawList: Fixed AddRect() with anti-aliasing disabled (lower-right corner pixel was often missing, rounding looks a little better.) (#1646) +- ImDrawList: Added CloneOutput() helper to facilitate the cloning of ImDrawData or ImDrawList for multi-threaded rendering. +- Misc: Functions passed to libc qsort are explicitly marked cdecl to support compiling with vectorcall as the default calling convention. (#1230, #1611) [@RandyGaul] +- Misc: ImVec2: added [] operator. This is becoming desirable for some code working of either axes independently. Better adding it sooner than later. +- Misc: NewFrame(): Added an assert to detect incorrect filling of the io.KeyMap[] array earlier. (#1555) +- Misc: Added IM_OFFSETOF() helper in imgui.h (previously was in imgui_internal.h) +- Misc: Added IM_NEW(), IM_DELETE() helpers in imgui.h (previously were in imgui_internal.h) +- Misc: Added obsolete redirection function GetItemsLineHeightWithSpacing() (which redirects to GetFrameHeightWithSpacing()), as intended and stated in docs of 1.53. +- Misc: Added misc/natvis/imgui.natvis for visual studio debugger users to easily visualize imgui internal types. Added to examples projects. +- Misc: Added IMGUI_USER_CONFIG to define a custom configuration filename. (#255, #1573, #1144, #41) +- Misc: Added IMGUI_STB_TRUETYPE_FILENAME and IMGUI_STB_RECT_PACK_FILENAME compile time directives to use another version of the stb_ files. +- Misc: Updated stb_rect_pack from 0.10 to 0.11 (minor changes). + (Those flags are not used by ImGui itself, they only exists to make it easy for the engine/backend to pass information to the application in a standard manner.) +- Metrics: Added display of Columns state. +- Demo: Improved Selectable() examples. (#1528) +- Demo: Tweaked the Child demos, added a menu bar to the second child to test some navigation functions. +- Demo: Console: Using ImGuiCol_Text to be more friendly to color changes. +- Demo: Using IM_COL32() instead of ImColor() in ImDrawList centric contexts. Trying to phase out use of the ImColor helper whenever possible. +- Examples: Files in examples/ now include their own changelog so it is easier to occasionally update your backends if needed. +- Examples: Using Dark theme by default. (#707). Tweaked demo code. +- Examples: Added support for horizontal mouse wheel for API that allows it. (#1463) [@tseeker] +- Examples: All examples now setup the io.BackendFlags to signify they can honor mouse cursors, gamepad, etc. +- Examples: DirectX10: Fixed erroneous call to io.Fonts->ClearInputData() + ClearTexData() that was left in DX10 example but removed in 1.47 (Nov 2015) in every other backends. (#1733) +- Examples: DirectX12: Added DirectX 12 example. (#301) [@jdm3] +- Examples: OpenGL3+GLFW,SDL: Changed GLSL shader version from 330 to 150. (#1466, #1504) +- Examples: OpenGL3+GLFW,SDL: Added a way to override the GLSL version string in the Init function. (#1466, #1504). +- Examples: OpenGL3+GLFW,SDL: Creating VAO in the render function so it can be more easily used by multiple shared OpenGL contexts. (#1217) +- Examples: OpenGL3+GLFW: Using 3.2 context instead of 3.3. (#1466) +- Examples: OpenGL: Setting up glPixelStorei() explicitly before uploading texture. +- Examples: OpenGL: Calls to glPolygonMode() are casting parameters as GLEnum to not fail with more strict backends. (#1628) [@ilia-glushchenko] +- Examples: Win32 (DirectX9,10,11,12): Added support for mouse cursor shapes. (#1495) +- Examples: Win32 (DirectX9,10,11,12: Support for windows using the CS_DBLCLKS class flag by handling the double-click messages (WM_LBUTTONDBLCLK etc.). (#1538, #754) [@ndandoulakis] +- Examples: Win32 (DirectX9,10,11,12): Made the Win32 proc handlers not assert if there is no active context yet, to be more flexible with creation order. (#1565) +- Examples: GLFW: Added support for mouse cursor shapes (the diagonal resize cursors are unfortunately not supported by GLFW at the moment. (#1495) +- Examples: GLFW: Don't attempt to change the mouse cursor input mode if it is set to GLFW_CURSOR_DISABLED by the application. (#1202) [@PhilCK] +- Examples: SDL: Added support for mouse cursor shapes. (#1626) [@olls] +- Examples: SDL: Using SDL_CaptureMouse() to retrieve coordinates outside of client area when dragging (SDL 2.0.4+ only, otherwise using SDL_WINDOW_INPUT_FOCUS instead of previously SDL_WINDOW_MOUSE_FOCUS). (#1559) +- Examples: SDL: Enabled vsync by default so people don't come at us when the examples are running at 2000 FPS and burning a CPU core. +- Examples: SDL: Using SDL_GetPerformanceCounter() / SDL_GetPerformanceFrequency() to handle frame-rate over 1000 FPS properly. (#996) +- Examples: SDL: Using scan-code exclusively instead of a confusing mixture of scan-codes and key-codes. +- Examples: SDL: Visual Studio: Added .vcxproj file. Using %SDL2_DIR% in the default .vcxproj and build files instead of %SDL_DIR%, the earlier being more standard. +- Examples: Vulkan: Visual Studio: Added .vcxproj file. +- Examples: Apple: Fixed filenames in OSX xcode project. Various other Mac friendly fixes. [@gerryhernandez etc.] +- Examples: Visual Studio: Disabled extraneous function-level check in Release build. +- Various fixes, tweaks, internal refactoring, optimizations, comments. + + +----------------------------------------------------------------------- + VERSION 1.53 (Released 2017-12-25) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.53 + +Breaking Changes: + +- Renamed the emblematic `ShowTestWindow()` function to `ShowDemoWindow()`. Kept redirection function (will obsolete). +- Renamed `GetItemsLineHeightWithSpacing()` to `GetFrameHeightWithSpacing()` for consistency. Kept redirection function (will obsolete). +- Renamed `ImGuiTreeNodeFlags_AllowOverlapMode` flag to `ImGuiTreeNodeFlags_AllowItemOverlap`. Kept redirection enum (will obsolete). +- Obsoleted `IsRootWindowFocused()` in favor of using `IsWindowFocused(ImGuiFocusedFlags_RootWindow)`. Kept redirection function (will obsolete). (#1382) +- Obsoleted `IsRootWindowOrAnyChildFocused()` in favor of using `IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows)`. Kept redirection function (will obsolete). (#1382) +- Obsoleted `IsRootWindowOrAnyChildHovered()` in favor of using `IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows)`. Kept redirection function (will obsolete). (#1382) +- Obsoleted `SetNextWindowContentWidth() in favor of using `SetNextWindowContentSize()`. Kept redirection function (will obsolete). +- Renamed `ImGuiTextBuffer::append()` helper to `appendf()`, and `appendv()` to `appendfv()` for consistency. If you copied the 'Log' demo in your code, it uses appendv() so that needs to be renamed. +- ImDrawList: Removed 'bool anti_aliased = true' final parameter of `ImDrawList::AddPolyline()` and `ImDrawList::AddConvexPolyFilled()`. Prefer manipulating ImDrawList::Flags if you need to toggle them during the frame. +- Style, ImDrawList: Renamed `style.AntiAliasedShapes` to `style.AntiAliasedFill` for consistency and as a way to explicitly break code that manipulate those flag at runtime. You can now manipulate ImDrawList::Flags. +- Style, Begin: Removed `ImGuiWindowFlags_ShowBorders` window flag. Borders are now fully set up in the ImGuiStyle structure (see e.g. `style.FrameBorderSize`, `style.WindowBorderSize`, `style.PopupBorderSize`). + Use `ImGui::ShowStyleEditor()` to look them up. + Please note that the style system will keep evolving (hopefully stabilizing in Q1 2018), and so custom styles will probably subtly break over time. + It is recommended that you use the `StyleColorsClassic()`, `StyleColorsDark()`, `StyleColorsLight()` functions. Also see `ShowStyleSelector()`. +- Style: Removed `ImGuiCol_ComboBg` in favor of combo boxes using `ImGuiCol_PopupBg` for consistency. Combo are normal pop-ups. +- Style: Renamed `ImGuiCol_ChildWindowBg` to `ImGuiCol_ChildBg`. +- Style: Renamed `style.ChildWindowRounding` to `style.ChildRounding`, `ImGuiStyleVar_ChildWindowRounding` to `ImGuiStyleVar_ChildRounding`. +- Removed obsolete redirection functions: SetScrollPosHere() - marked obsolete in v1.42, July 2015. +- Removed obsolete redirection functions: GetWindowFont(), GetWindowFontSize() - marked obsolete in v1.48, March 2016. + +Other Changes: + +- Added `io.OptCursorBlink` option to allow disabling cursor blinking. (#1427) [renamed to io.ConfigCursorBlink in 1.63] +- Added `GetOverlayDrawList()` helper to quickly get access to a ImDrawList that will be rendered in front of every windows. +- Added `GetFrameHeight()` helper which returns `(FontSize + style.FramePadding.y * 2)`. +- Drag and Drop: Added Beta API to easily use drag and drop patterns between imgui widgets. + - Setup a source on a widget with `BeginDragDropSource()`, `SetDragDropPayload()`, `EndDragDropSource()` functions. + - Receive data with `BeginDragDropTarget()`, `AcceptDragDropPayload()`, `EndDragDropTarget()`. + - See ImGuiDragDropFlags for various options. + - The ColorEdit4() and ColorButton() widgets now support Drag and Drop. + - The API is tagged as Beta as it still may be subject to small changes. +- Drag and Drop: When drag and drop is active, tree nodes and collapsing header can be opened by hovering on them for 0.7 seconds. +- Renamed io.OSXBehaviors to io.OptMacOSXBehaviors. Should not affect users as the compile-time default is usually enough. (#473, #650) +- Style: Added StyleColorsDark() style. (#707) [@dougbinks] +- Style: Added StyleColorsLight() style. Best used with frame borders + thicker font than the default font. (#707) +- Style: Added style.PopupRounding setting. (#1112) +- Style: Added style.FrameBorderSize, style.WindowBorderSize, style.PopupBorderSize. Removed ImGuiWindowFlags_ShowBorders window flag! + Borders are now fully set up in the ImGuiStyle structure. Use ImGui::ShowStyleEditor() to look them up. (#707, fix #819, #1031) +- Style: Various small changes to the classic style (most noticeably, buttons are now using blue shades). (#707) +- Style: Renamed ImGuiCol_ChildWindowBg to ImGuiCol_ChildBg. +- Style: Renamed style.ChildWindowRounding to style.ChildRounding, ImGuiStyleVar_ChildWindowRounding to ImGuiStyleVar_ChildRounding. +- Style: Removed ImGuiCol_ComboBg in favor of combo boxes using ImGuiCol_PopupBg for consistency. (#707) +- Style: Made the ScaleAllSizes() helper rounds down every values so they are aligned on integers. +- Focus: Added SetItemDefaultFocus(), which in the current (master) branch behave the same as doing `if (IsWindowAppearing()) SetScrollHere()`. + In the navigation branch this will also set the default focus. Prefer using this when creating combo boxes with `BeginCombo()` so your code will be forward-compatible with gamepad/keyboard navigation features. (#787) +- Combo: Pop-up grows horizontally to accommodate for contents that is larger then the parent combo button. +- Combo: Added BeginCombo()/EndCombo() API which allows use to submit content of any form and manage your selection state without relying on indices. +- Combo: Added ImGuiComboFlags_PopupAlignLeft flag to BeginCombo() to prioritize keeping the pop-up on the left side (for small-button-looking combos). +- Combo: Added ImGuiComboFlags_HeightSmall, ImGuiComboFlags_HeightLarge, ImGuiComboFlags_HeightLargest to easily provide desired pop-up height. +- Combo: You can use SetNextWindowSizeConstraints() before BeginCombo() to specify specific pop-up width/height constraints. +- Combo: Offset popup position by border size so that a double border isn't so visible. (#707) +- Combo: Recycling windows by using a stack number instead of a unique id, wasting less memory (like menus do). +- InputText: Added ImGuiInputTextFlags_NoUndoRedo flag. (#1506, #1508) [@ibachar] +- Window: Fixed auto-resize allocating too much space for scrollbar when SizeContents is bigger than maximum window size (fixes c0547d3). (#1417) +- Window: Child windows with MenuBar use regular WindowPadding.y so layout look consistent as child or as a regular window. +- Window: Begin(): Fixed appending into a child window with a second Begin() from a different window stack querying the wrong window for the window->Collapsed test. +- Window: Calling IsItemActive(), IsItemHovered() etc. after a call to Begin() provides item data for the title bar, so you can easily test if the title bar is being hovered, etc. (#823) +- Window: Made it possible to use SetNextWindowPos() on a child window. +- Window: Fixed a one frame glitch. When an appearing window claimed the focus themselves, the title bar wouldn't use the focused color for one frame. +- Window: Added ImGuiWindowFlags_ResizeFromAnySide flag to resize from any borders or from the lower-left corner of a window. This requires your backend to honor GetMouseCursor() requests for full usability. (#822) +- Window: Sizing fixes when using SetNextWindowSize() on individual axises. +- Window: Hide new window for one frame until they calculate their size. Also fixes SetNextWindowPos() given a non-zero pivot. (#1694) +- Window: Made mouse wheel scrolling accommodate better to windows that are smaller than the scroll step. +- Window: SetNextWindowContentSize() adjust for the size of decorations (title bar/menu bar), but _not_ for borders are we consistently make borders not affect layout. + If you need a non-child window of an exact size with border enabled but zero window padding, you'll need to accommodate for the border size yourself. +- Window: Using the ImGuiWindowFlags_NoScrollWithMouse flag on a child window forwards the mouse wheel event to the parent window, unless either ImGuiWindowFlags_NoInputs or ImGuiWindowFlags_NoScrollbar are also set. (#1380, #1502) +- Window: Active Modal window always set the WantCaptureKeyboard flag. (#744) +- Window: Moving window doesn't use accumulating MouseDelta so straying out of imgui boundaries keeps moved imgui window at the same cursor-relative position. +- IsWindowFocused(): Added ImGuiFocusedFlags_ChildWindows flag to include child windows in the focused test. (#1382). +- IsWindowFocused(): Added ImGuiFocusedFlags_RootWindow flag to start focused test from the root (top-most) window. Obsolete IsRootWindowFocused(). (#1382) +- IsWindowHovered(): Added ImGuiHoveredFlags_ChildWindows flag to include child windows in the hovered test. (#1382). +- IsWindowHovered(): Added ImGuiHoveredFlags_RootWindow flag to start hovered test from the root (top-most) window. The combination of both flags obsoletes IsRootWindowOrAnyChildHovered(). (#1382) +- IsWindowHovered(): Fixed return value when an item is active to use the same logic as IsItemHovered(). (#1382, #1404) +- IsWindowHovered(): Always return true when current window is being moved. (#1382) +- Scrollbar: Fixed issues with vertical scrollbar flickering/appearing, typically when manually resizing and using a pattern of filling available height (e.g. full sized BeginChild). +- Scrollbar: Minor graphical fix for when scrollbar don't have enough visible space to display the full grab. +- Scrolling: Fixed padding and scrolling asymmetry where lower/right sides of a window wouldn't use WindowPadding properly + causing minor scrolling glitches. +- Tree: TreePush with zero arguments was ambiguous. Resolved by making it call TreePush(const void*). [@JasonWilkins] +- Tree: Renamed ImGuiTreeNodeFlags_AllowOverlapMode to ImGuiTreeNodeFlags_AllowItemOverlap. (#600, #1330) +- MenuBar: Fixed minor rendering issues on the right size when resizing a window very small and using rounded window corners. +- MenuBar: better software clipping to handle small windows, in particular child window don't have minimum constraints so we need to render clipped menus better. +- BeginMenu(): Tweaked the Arrow/Triangle displayed on child menu items. +- Columns: Clipping columns borders on Y axis on CPU because some Linux GPU drivers appears to be unhappy with triangle spanning large regions. (#125) +- Columns: Added ImGuiColumnsFlags_GrowParentContentsSize to internal API to restore old content sizes behavior (may be obsolete). (#1444, #125) +- Columns: Columns width is no longer lost when dragging a column to the right side of the window, until releasing the mouse button you have a chance to save them. (#1499, #125). [@ggtucker] +- Columns: Fixed dragging when using a same of columns multiple times in the frame. (#125) +- Indent(), Unindent(): Allow passing negative values. +- ColorEdit4(): Made IsItemActive() return true when picker pop-up is active. (#1489) +- ColorEdit4(): Tweaked tooltip so that the color button aligns more correctly with text. +- ColorEdit4(): Support drag and drop. Color buttons can be used as drag sources, and ColorEdit widgets as drag targets. (#143) +- ColorPicker4(): Fixed continuously returning true when holding mouse button on the sat/value/alpha locations. We only return true on value change. (#1489) +- NewFrame(): using literal strings in the most-frequently firing IM_ASSERT expressions to increase the odd of programmers seeing them (especially those who don't use a debugger). +- NewFrame() now asserts if neither Render or EndFrame have been called. Exposed EndFrame(). Made it legal to call EndFrame() more than one. (#1423) +- ImGuiStorage: Added BuildSortByKey() helper to rebuild storage from scratch. +- ImFont: Added GetDebugName() helper. +- ImFontAtlas: Added missing Thai punctuation in the GetGlyphRangesThai() ranges. (#1396) [@nProtect] +- ImDrawList: Removed 'bool anti_aliased = true' final parameter of ImDrawList::AddPolyline() and ImDrawList::AddConvexPolyFilled(). Anti-aliasing is controlled via the regular style.AntiAliased flags. +- ImDrawList: Added ImDrawList::AddImageRounded() helper. (#845) [@thedmd] +- ImDrawList: Refactored to make ImDrawList independent of ImGui. Removed static variable in PathArcToFast() which caused linking issues to some. +- ImDrawList: Exposed ImDrawCornerFlags, replaced occurrences of ~0 with an explicit ImDrawCornerFlags_All. NB: Inversed BotLeft (prev 1<<3, now 1<<2) and BotRight (prev 1<<2, now 1<<3). +- ImVector: Added ImVector::push_front() helper. +- ImVector: Added ImVector::contains() helper. +- ImVector: insert() uses grow_capacity() instead of using grow policy inconsistent with push_back(). +- Internals: Remove requirement to define IMGUI_DEFINE_PLACEMENT_NEW to use the IM_PLACEMENT_NEW macro. (#1103) +- Internals: ButtonBehavior: Fixed ImGuiButtonFlags_NoHoldingActiveID flag from incorrectly setting the ActiveIdClickOffset field. + This had no known effect within imgui code but could have affected custom drag and drop patterns. And it is more correct this way! (#1418) +- Internals: ButtonBehavior: Fixed ImGuiButtonFlags_AllowOverlapMode to avoid temporarily activating widgets on click before they have been correctly double-hovered. (#319, #600) +- Internals: Added SplitterBehavior() helper. (#319) +- Internals: Added IM_NEW(), IM_DELETE() helpers. (#484, #504, #1517) +- Internals: Basic refactor of the settings API which now allows external elements to be loaded/saved. +- Demo: Added ShowFontSelector() showing loaded fonts. +- Demo: Added ShowStyleSelector() to select among default styles. (#707) +- Demo: Renamed the emblematic ShowTestWindow() function to ShowDemoWindow(). +- Demo: Style Editor: Added a "Simplified settings" sections with check-boxes for border size and frame rounding. (#707, #1019) +- Demo: Style Editor: Added combo box to select stock styles and select current font when multiple are loaded. (#707) +- Demo: Style Editor: Using local storage so Save/Revert button makes more sense without code passing its storage. Added horizontal scroll bar. Fixed Save/Revert button to be always accessible. (#1211) +- Demo: Console: Fixed context menu issue. (#1404) +- Demo: Console: Fixed incorrect positioning which was hidden by a minor scroll issue (this would affect people who copied the Console code as is). +- Demo: Constrained Resize: Added more test cases. (#1417) +- Demo: Custom Rendering: Fixed clipping rectangle extruding out of parent window. +- Demo: Layout: Removed unnecessary and misleading BeginChild/EndChild calls. +- Demo: The "Color Picker with Palette" demo supports drag and drop. (#143) +- Demo: Display better mouse cursor info for debugging backends. +- Demo: Stopped using rand() function in demo code. +- Examples: Added a handful of extra comments (about fonts, third-party libraries used in the examples, etc.). +- Examples: DirectX9: Handle loss of D3D9 device (D3DERR_DEVICELOST). (#1464) +- Examples: Added null_example/ which is helpful for quick testing on multiple compilers/settings without relying on graphics library. +- Fix for using alloca() in "Clang with Microsoft Codechain" mode. +- Various fixes, optimizations, comments. + + +----------------------------------------------------------------------- + VERSION 1.52 (2017-10-27) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.52 + +Breaking Changes: + +- IO: `io.MousePos` needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing, instead of ImVec2(-1,-1) as previously) This is needed so we can clear `io.MouseDelta` field when the mouse is made available again. +- Renamed `AlignFirstTextHeightToWidgets()` to `AlignTextToFramePadding()`. Kept inline redirection function (will obsolete). +- Obsoleted the legacy 5 parameters version of Begin(). Please avoid using it. If you need a transparent window background, uses `PushStyleColor()`. The old size parameter there was also misleading and equivalent to calling `SetNextWindowSize(size, ImGuiCond_FirstTimeEver)`. Kept inline redirection function (will obsolete). +- Obsoleted `IsItemHoveredRect()`, `IsMouseHoveringWindow()` in favor of using the newly introduced flags of `IsItemHovered()` and `IsWindowHovered()`. Kept inline redirection function (will obsolete). (#1382) +- Obsoleted 'SetNextWindowPosCenter()' in favor of using 1SetNextWindowPos()` with a pivot value which allows to do the same and more. Keep inline redirection function. +- Removed `IsItemRectHovered()`, `IsWindowRectHovered()` recently introduced in 1.51 which were merely the more consistent/correct names for the above functions which are now obsolete anyway. (#1382) +- Changed `IsWindowHovered()` default parameters behavior to return false if an item is active in another window (e.g. click-dragging item from another window to this window). You can use the newly introduced IsWindowHovered() flags to requests this specific behavior if you need it. (#1382) +- Renamed imconfig.h's `IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS`/`IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS` to `IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS`/`IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS` for consistency. +- Renamed ImFont::Glyph to ImFontGlyph. Kept redirection typedef (will obsolete). + +Other Changes: + +- ProgressBar: fixed rendering when straddling rounded area. (#1296) +- SliderFloat, DragFloat: Using scientific notation e.g. "%.1e" in the displayed format string doesn't mistakenly trigger rounding of the value. [@MomentsInGraphics] +- Combo, InputFloat, InputInt: Made the small button on the right side align properly with the equivalent colored button of ColorEdit4(). +- IO: Tweaked logic for `io.WantCaptureMouse` so it now outputs false when e.g. hovering over void while an InputText() is active. (#621) [@pdoane] +- IO: Fixed `io.WantTextInput` from mistakenly outputting true when an activated Drag or Slider was previously turned into an InputText(). (#1317) +- Misc: Added flags to `IsItemHovered()`, `IsWindowHovered()` to access advanced hovering-test behavior. Generally useful for pop-ups and drag and drop behaviors: (relates to ~#439, #1013, #143, #925) + - `ImGuiHoveredFlags_AllowWhenBlockedByPopup` + - `ImGuiHoveredFlags_AllowWhenBlockedByActiveItem` + - `ImGuiHoveredFlags_AllowWhenOverlapped` + - `ImGuiHoveredFlags_RectOnly` +- Input: Added `IsMousePosValid()` helper. +- Input: Added `GetKeyPressedAmount()` to easily measure press count when the repeat rate is faster than the frame rate. +- Input/Focus: Disabled TAB and Shift+TAB when CTRL key is held. +- CheckBox: Now rendering a tick mark instead of a full square. +- ColorEdit4: Added "Copy as..." option in context menu. (#346) +- ColorPicker: Improved ColorPicker hue wheel color interpolation. (#1313) [@thevaber] +- ColorButton: Reduced bordering artifact that would be particularly visible with an opaque Col_FrameBg and FrameRounding enabled. +- ColorButton: Fixed rendering color button with a checkerboard if the transparency comes from the global style.Alpha and not from the actual source color. +- TreeNode: Added `ImGuiTreeNodeFlags_FramePadding` flag to conveniently create a tree node with full padding at the beginning of a line, without having to call `AlignTextToFramePadding()`. +- Trees: Fixed calling `SetNextTreeNodeOpen()` on a collapsed window leaking to the first tree node item of the next frame. +- Layout: Horizontal layout is automatically enforced in a menu bar, so you can use non-MenuItem elements without calling SameLine(). +- Separator: Output a vertical separator when used inside a menu bar (or in general when horizontal layout is active, but that isn't exposed yet!). +- Window: Added `IsWindowAppearing()` helper (helpful e.g. as a condition before initializing some of your own things.). +- Window: Added pivot parameter to `SetNextWindowPos()`, making it possible to center or right align a window. Obsoleted `SetNextWindowPosCenter()`. +- Window: Fixed title bar color of top-most window under a modal window. +- Window: Fixed not being able to move a window by clicking on one of its child window. (#1337, #635) +- Window: Fixed `Begin()` auto-fit calculation code that predict the presence of a scrollbar so it works better when window size constraints are used. +- Window: Fixed calling `Begin()` more than once per frame setting `window_just_activated_by_user` which in turn would set enable the Appearing condition for that frame. +- Window: The implicit "Debug" window now uses a "Debug##Default" identifier instead of "Debug" to allow user creating a window called "Debug" without losing their custom flags. +- Window: Made the `ImGuiWindowFlags_NoMove` flag properly inherited from parent to child. In a setup with ParentWindow (no flag) -> Child (NoMove) -> SubChild (no flag), the user won't be able to move the parent window by clicking on SubChild. (#1381) +- Popups: Pop-ups can be closed with a right-click anywhere, without altering focus under the pop-up. (~#439) +- Popups: `BeginPopupContextItem()`, `BeginPopupContextWindow()` are now setup to allow reopening a context menu by right-clicking again. (~#439) +- Popups: `BeginPopupContextItem()` now supports a NULL string identifier and uses the last item ID if available. +- Popups: Added `OpenPopupOnItemClick()` helper which mimic `BeginPopupContextItem()` but doesn't do the BeginPopup(). +- MenuItem: Only activating on mouse release. [@Urmeli0815] (was already fixed in nav branch). +- MenuItem: Made tick mark thicker (thick mark?). +- MenuItem: Tweaks to be usable inside a menu bar (nb: it looks like a regular menu and thus is misleading, prefer using Button() and regular widgets in menu bar if you need to). (#1387) +- ImDrawList: Fixed a rare draw call merging bug which could lead to undisplayed triangles. (#1172, #1368) +- ImDrawList: Fixed a rare bug in `ChannelsMerge()` when all contents has been clipped, leading to an extraneous draw call being created. (#1172, #1368) +- ImFont: Added `AddGlyph()` building helper for use by custom atlas builders. +- ImFontAtlas: Added support for CustomRect API to submit custom rectangles to be packed into the atlas. You can map them as font glyphs, or use them for custom purposes. + After the atlas is built you can query the position of your rectangles in the texture and then copy your data there. You can use this features to create e.g. full color font-mapped icons. +- ImFontAtlas: Fixed fall-back handling when merging fonts, if a glyph was missing from the second font input it could have used a glyph from the first one. (#1349) [@inolen] +- ImFontAtlas: Fixed memory leak on build failure case when stbtt_InitFont failed (generally due to incorrect or supported font type). (#1391) (@Moka42) +- ImFontConfig: Added `RasterizerMultiply` option to alter the brightness of individual fonts at rasterization time, which may help increasing readability for some. +- ImFontConfig: Added `RasterizerFlags` to pass options to custom rasterizer (e.g. the [imgui_freetype](https://github.com/ocornut/imgui_club/tree/master/imgui_freetype) rasterizer in imgui_club has such options). +- ImVector: added resize() variant with initialization value. +- Misc: Changed the internal name formatting of child windows identifier to use slashes (instead of dots) as separator, more readable. +- Misc: Fixed compilation with `IMGUI_DISABLE_OBSOLETE_FUNCTIONS` defined. +- Misc: Marked all format+va_list functions with format attribute so GCC/Clang can warn about misuses. +- Misc: Fixed compilation on NetBSD due to missing alloca.h (#1319) [@RyuKojiro] +- Misc: Improved warnings compilation for newer versions of Clang. (#1324) (@waywardmonkeys) +- Misc: Added `io.WantMoveMouse flags` (from Nav branch) and honored in Examples applications. Currently unused but trying to spread Examples applications code that supports it. +- Misc: Added `IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS` support in imconfig.h to allow user reimplementing the `ImFormatString()` functions e.g. to use stb_printf(). (#1038) +- Misc: [Windows] Fixed default Win32 `SetClipboardText()` handler leaving the Win32 clipboard handler unclosed on failure. [@pdoane] +- Style: Added `ImGuiStyle::ScaleAllSizes(float)` helper to make it easier to have application transition e.g. from low to high DPI with a matching style. +- Metrics: Draw window bounding boxes when hovering Pos/Size; List all draw layers; Trimming empty commands like Render() does. +- Examples: OpenGL3: Save and restore sampler state. (#1145) [@nlguillemot] +- Examples: OpenGL2, OpenGL3: Save and restore polygon mode. (#1307) [@JJscott] +- Examples: DirectX11: Allow creating device with feature level 10 since we don't really need much for that example. (#1333) +- Examples: DirectX9/10/12: Using the Win32 SetCapture/ReleaseCapture API to read mouse coordinates when they are out of bounds. (#1375) [@Gargaj, @ocornut] +- Tools: Fixed binary_to_compressed_c tool to return 0 when successful. (#1350) [@benvanik] +- Internals: Exposed more helpers and unfinished features in imgui_internal.h. (use at your own risk!). +- Internals: A bunch of internal refactoring, hopefully haven't broken anything! Merged a bunch of internal changes from the upcoming Navigation branch. +- Various tweaks, fixes and documentation changes. + +Beta Navigation Branch: +(Lots of work has been done toward merging the Beta Gamepad/Keyboard Navigation branch (#787) in master.) +(Please note that this branch is always kept up to date with master. If you are using the navigation branch, some of the changes include:) +- Nav: Added `#define IMGUI_HAS_NAV` in imgui.h to ease sharing code between both branches. (#787) +- Nav: MainMenuBar now releases focus when user gets out of the menu layer. (#787) +- Nav: When applying focus to a window with only menus, the menu layer is automatically activated. (#787) +- Nav: Added `ImGuiNavInput_KeyMenu` (~Alt key) aside from ImGuiNavInput_PadMenu input as it is one differentiator of pad vs keyboard that was detrimental to the keyboard experience. Although isn't officially supported, it makes the current experience better. (#787) +- Nav: Move requests now wrap vertically inside Menus and Pop-ups. (#787) +- Nav: Allow to collapse tree nodes with NavLeft and open them with NavRight. (#787, #1079). +- Nav: It's now possible to navigate sibling of a menu-bar while navigating inside one of their child. If a Left<>Right navigation request fails to find a match we forward the request to the root menu. (#787, #126) +- Nav: Fixed `SetItemDefaultFocus` from stealing default focus when we are initializing default focus for a menu bar layer. (#787) +- Nav: Support for fall-back horizontal scrolling with PadLeft/PadRight (nb: fall-back scrolling is only used to navigate windows that have no interactive items). (#787) +- Nav: Fixed tool-tip from being selectable in the window selection list. (#787) +- Nav: `CollapsingHeader(bool*)` variant: fixed for `IsItemHovered()` not working properly in the nav branch. (#600, #787) +- Nav: InputText: Fixed using Up/Down history callback feature when Nav is enabled. (#787) +- Nav: InputTextMultiline: Fixed navigation/selection. Disabled selecting all when activating a multi-line text editor. (#787) +- Nav: More consistently drawing a (thin) navigation rectangle hover filled frames such as tree nodes, collapsing header, menus. (#787) +- Nav: Various internal refactoring. + + +----------------------------------------------------------------------- + VERSION 1.51 (2017-08-24) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.51 + +Breaking Changes: + +Work on dear imgui has been gradually resuming. It means that fixes and new features should be tackled at a faster rate than last year. However, in order to move forward with the library and get rid of some cruft, I have taken the liberty to be a little bit more aggressive than usual with API breaking changes. Read the details below and search for those names in your code! In the grand scheme of things, those changes are small and should not affect everyone, but this is technically our most aggressive release so far in term of API breakage. If you want to be extra forward-facing, you can enable `#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS` in your imconfig.h to disable the obsolete names/redirection. + +- Renamed `IsItemHoveredRect()` to `IsItemRectHovered()`. Kept inline redirection function (will obsolete). +- Renamed `IsMouseHoveringWindow()` to `IsWindowRectHovered()` for consistency. Kept inline redirection function (will obsolete). +- Renamed `IsMouseHoveringAnyWindow()` to `IsAnyWindowHovered()` for consistency. Kept inline redirection function (will obsolete). +- Renamed `ImGuiCol_Columns***` enums to `ImGuiCol_Separator***`. Kept redirection enums (will obsolete). +- Renamed `ImGuiSetCond***` types and enums to `ImGuiCond***`. Kept redirection enums (will obsolete). +- Renamed `GetStyleColName()` to `GetStyleColorName()` for consistency. Unlikely to be used by end-user! +- Added `PushStyleColor(ImGuiCol idx, ImU32 col)` overload, which _might_ cause an "ambiguous call" compilation error if you are using ImColor() with implicit cast. Cast to ImU32 or ImVec4 explicitly to fix. +- Marked the weird `IMGUI_ONCE_UPON_A_FRAME` helper macro as obsolete. Prefer using the more explicit `ImGuiOnceUponAFrame`. +- Changed `ColorEdit4(const char* label, float col[4], bool show_alpha = true)` signature to `ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0)`, where flags 0x01 is a safe no-op (hello dodgy backward compatibility!). The new `ColorEdit4`/`ColorPicker4` functions have lots of available flags! Check and run the demo window, under "Color/Picker Widgets", to understand the various new options. +- Changed signature of `ColorButton(ImVec4 col, bool small_height = false, bool outline_border = true)` to `ColorButton(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0,0))`. This function was rarely used and was very dodgy (no explicit ID!). +- Changed `BeginPopupContextWindow(bool also_over_items=true, const char* str_id=NULL, int mouse_button=1)` signature to `(const char* str_id=NULL, int mouse_button=1, bool also_over_items=true)`. This is perhaps the most aggressive change in this update, but note that the majority of users relied on default parameters completely, so this will affect only a fraction of users of this already rarely used function. +- Removed `IsPosHoveringAnyWindow()`, which was partly broken and misleading. In the vast majority of cases, people using that function wanted to use `io.WantCaptureMouse` flag. Replaced with IM_ASSERT + comment redirecting user to `io.WantCaptureMouse`. (#1237) +- Removed the old `ValueColor()` helpers, they are equivalent to calling `Text(label)` + `SameLine()` + `ColorButton()`. +- Removed `ColorEditMode()` and `ImGuiColorEditMode` type in favor of `ImGuiColorEditFlags` and parameters to the various Color*() functions. The `SetColorEditOptions()` function allows to initialize default but the user can still change them with right-click context menu. Commenting out your old call to `ColorEditMode()` may just be fine! + +Other Changes: + +- Added flags to `ColorEdit3()`, `ColorEdit4()`. The color edit widget now has a context-menu and access to the color picker. (#346) +- Added flags to `ColorButton()`. (#346) +- Added `ColorPicker3()`, `ColorPicker4()`. The API along with those of the updated `ColorEdit4()` was designed so you may use them in various situation and hopefully compose your own picker if required. There are a bunch of available flags, check the Demo window and comment for `ImGuiColorEditFlags_`. Some of the options it supports are: two color picker types (hue bar + sat/val rectangle, hue wheel + rotating sat/val triangle), display as u8 or float, lifting 0.0..1.0 constraints (currently rgba only), context menus, alpha bar, background checkerboard options, preview tooltip, basic revert. For simple use, calling the existing `ColorEdit4()` function as you did before will be enough, as you can now open the color picker from there. (#346) [@r-lyeh, @nem0, @thennequin, @dariomanesku and @ocornut] +- Added `SetColorEditOptions()` to set default color options (e.g. if you want HSV over RGBA, float over u8, select a default picker mode etc. at startup time without a user intervention. Note that the user can still change options with the context menu unless disabled with `ImGuiColorFlags_NoOptions` or explicitly enforcing a display type/picker mode etc.). +- Added user-facing `IsPopupOpen()` function. (#891) [@mkeeter] +- Added `GetColorU32(u32)` variant that perform the style alpha multiply without a floating-point round trip, and helps makes code more consistent when using ImDrawList APIs. +- Added `PushStyleColor(ImGuiCol idx, ImU32 col)` overload. +- Added `GetStyleColorVec4(ImGuiCol idx)` which is equivalent to accessing `ImGui::GetStyle().Colors[idx]` (aka return the raw style color without alpha alteration). +- ImFontAtlas: Added `GlyphRangesBuilder` helper class, which makes it easier to build custom glyph ranges from your app/game localization data, or add into existing glyph ranges. +- ImFontAtlas: Added `TexGlyphPadding` option. (#1282) [@jadwallis] +- ImFontAtlas: Made it possible to override size of AddFontDefault() (even if it isn't really recommended!). +- ImDrawList: Added `GetClipRectMin()`, `GetClipRectMax()` helpers. +- Fixed Ini saving crash if the ImGuiWindowFlags_NoSavedSettings gets removed from a window after its creation (unlikely!). (#1000) +- Fixed `PushID()`/`PopID()` from marking parent window as Accessed (which needlessly woke up the root "Debug" window when used outside of a regular window). (#747) +- Fixed an assert when calling `CloseCurrentPopup()` twice in a row. [@nem0] +- Window size can be loaded from .ini data even if ImGuiWindowFlags_NoResize flag is set. (#1048, #1056) +- Columns: Added `SetColumnWidth()`. (#913) [@ggtucker] +- Columns: Dragging a column preserve its width by default. (#913) [@ggtucker] +- Columns: Fixed first column appearing wider than others. (#1266) +- Columns: Fixed allocating space on the right-most side with the assumption of a vertical scrollbar. The space is only allocated when needed. (#125, #913, #893, #1138) +- Columns: Fixed the right-most column from registering its content width to the parent window, which led to various issues when using auto-resizing window or e.g. horizontal scrolling. (#519, #125, #913) +- Columns: Refactored some of the columns code internally toward a better API (not yet exposed) + minor optimizations. (#913) [@ggtucker, @ocornut] +- Popups: Most pop-ups windows can be moved by the user after appearing (if they don't have explicit positions provided by caller, or e.g. sub-menu pop-up). The previous restriction was totally arbitrary. (#1252) +- Tooltip: `SetTooltip()` is expanded immediately into a window, honoring current font / styling setting. Add internal mechanism to override tooltips. (#862) +- PlotHistogram: bars are drawn based on zero-line, so negative values are going under. (#828) +- Scrolling: Fixed return values of `GetScrollMaxX()`, `GetScrollMaxY()` when both scrollbars were enabled. Tweak demo to display more data. (#1271) [@degracode] +- Scrolling: Fixes for Vertical Scrollbar not automatically getting enabled if enabled Horizontal Scrollbar straddle the vertical limit. (#1271, #246) +- Scrolling: `SetScrollHere()`, `SetScrollFromPosY()`: Fixed Y scroll aiming when Horizontal Scrollbar is enabled. (#665). +- [Windows] Clipboard: Fixed not closing Win32 clipboard on early open failure path. (#1264) +- Removed an unnecessary dependency on int64_t which failed on some older compilers. +- Demo: Rearranged everything under Widgets in a more consistent way. +- Demo: Columns: Added Horizontal Scrolling demo. Tweaked another Columns demo. (#519, #125, #913) +- Examples: OpenGL: Various makefiles for MINGW, Linux. (#1209, #1229, #1209) [@fr500, @acda] +- Examples: Enabled vsync by default in example applications, so it doesn't confuse people that the sample run at 2000+ fps and waste an entire CPU. (#1213, #1151). +- Various other small fixes, tweaks, comments, optimizations. + + +----------------------------------------------------------------------- + VERSION 1.50 (2017-06-02) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.50 + +Breaking Changes: + +- Added a void* user_data parameter to Clipboard function handlers. (#875) +- SameLine(x) with x>0.0f is now relative to left of column/group if any, and not always to left of window. This was sort of always the intent and hopefully breakage should be minimal. +- Renamed ImDrawList::PathFill() - rarely used directly - to ImDrawList::PathFillConvex() for clarity and consistency. +- Removed ImFontConfig::MergeGlyphCenterV in favor of a more multipurpose ImFontConfig::GlyphOffset. +- Style: style.WindowTitleAlign is now a ImVec2 (ImGuiAlign enum was removed). set to (0.5f,0.5f) for horizontal+vertical centering, (0.0f,0.0f) for upper-left, etc. +- BeginChild(const char*) now applies the stack id to the provided label, consistently with other functions as it should always have been. It shouldn't affect you unless (extremely unlikely) you were appending multiple times to a same child from different locations of the stack id. If that's the case, generate an id with GetId() and use it instead of passing string to BeginChild(). + +Other Changes: + +- InputText(): Added support for CTRL+Backspace (delete word). +- InputText(): OSX uses Super+Arrows for home/end. Add Shortcut+Backspace support. (#650) [@michaelbartnett] +- InputText(): Got rid of individual OSX-specific options in ImGuiIO, added a single io.OSXBehaviors flag. (#473, #650) +- InputText(): Fixed pressing home key on last character when it isn't a trailing \n (#588, #815) +- InputText(): Fixed state corruption/crash bug in stb_textedit.h redo logic when exhausting undo/redo char buffer. (#715. #681) +- InputTextMultiline(): Fixed CTRL+DownArrow moving scrolling out of bounds. +- InputTextMultiline(): Scrollbar fix for when input and latched internal buffers differs in a way that affects vertical scrollbar existence. (#725) +- ImFormatString(): Fixed an overflow handling bug with implementation of vsnprintf() that do not return -1. (#793) +- BeginChild(const char*) now applies stack id to provided label, consistent with other widgets. (#894, #713) +- SameLine() with explicit X position is relative to left of group/columns. (ref #746, #125, #630) +- SliderInt(), SliderFloat() supports reverse direction (where v_min > v_max). (#854) +- SliderInt(), SliderFloat() better support for when v_min==v_max. (#919) +- SliderInt(), SliderFloat() enforces writing back value when interacting, to be consistent with other widgets. (#919) +- SliderInt, SliderFloat(): Fixed edge case where style.GrabMinSize being bigger than slider width can lead to a division by zero. (#919) +- Added IsRectVisible() variation with explicit start-end positions. (#768) [@thedmd] +- Fixed TextUnformatted() clipping bug in the large-text path when horizontal scroll has been applied. (#692, #246) +- Fixed minor text clipping issue in window title when using font straying above usual line. (#699) +- Fixed SetCursorScreenPos() fixed not adjusting CursorMaxPos as well. +- Fixed scrolling offset when using SetScrollY(), SetScrollFromPosY(), SetScrollHere() with menu bar. +- Fixed using IsItemActive() after EndGroup() or any widget using groups. (#840, #479) +- Fixed IsItemActive() lagging by one frame on initial widget activation. (#840) +- Fixed Separator() zero-height bounding box resulting in clipping when laying exactly on top line of clipping rectangle (#860) +- Fixed PlotLines() PlotHistogram() calling with values_count == 0. +- Fixed clicking on a window's void while staying still overzealously marking .ini settings as dirty. (#923) +- Fixed assert triggering when a window has zero rendering but has a callback. (#810) +- Scrollbar: Fixed rendering when sizes are negative to reduce glitches (which can happen with certain style settings and zero WindowMinSize). +- EndGroup(): Made IsItemHovered() work when an item was activated within the group. (#849) +- BulletText(): Fixed stopping to display formatted string after the '##' mark. +- Closing the focused window restore focus to the first active root window in descending z-order .(part of #727) +- Word-wrapping: Fixed a bug where we never wrapped after a 1 character word. [@sronsse] +- Word-wrapping: Fixed TextWrapped() overriding wrap position if one is already set. (#690) +- Word-wrapping: Fixed incorrect testing for negative wrap coordinates, they are perfectly legal. (#706) +- ImGuiListClipper: Fixed automatic-height calc path dumbly having user display element 0 twice. (#661, #716) +- ImGuiListClipper: Fix to behave within column. (#661, #662, #716) +- ImDrawList: Renamed ImDrawList::PathFill() to ImDrawList::PathFillConvex() for clarity. (BREAKING API) +- Columns: End() avoid calling Columns(1) if no columns set is open, not sure why it wasn't the case already (pros: faster, cons: exercise less code). +- ColorButton(): Fix ColorButton showing wrong hex value for alpha. (#1068) [@codecat] +- ColorEdit4(): better preserve inputting value out of 0..255 range, display then clamped in Hexadecimal form. +- Shutdown() clear out some remaining pointers for sanity. (#836) +- Added IMGUI_USE_BGRA_PACKED_COLOR option in imconfig.h (#767, #844) [@thedmd] +- Style: Removed the inconsistent shadow under RenderCollapseTriangle() (~#707) +- Style: Added ButtonTextAlign, ImGuiStyleVar_ButtonTextAlign. (#842) +- ImFont: Allowing to use up to 0xFFFE glyphs in same font (increased from previous 0x8000). +- ImFont: Added GetGlyphRangesThai() helper. [@nProtect] +- ImFont: CalcWordWrapPositionA() fixed font scaling with fallback character. +- ImFont: Calculate and store the approximate texture surface to get an idea of how costly each source font is. +- ImFontConfig: Added GlyphOffset to explicitly offset glyphs at font build time, useful for merged fonts. Removed MergeGlyphCenterV. (BREAKING API) +- Clarified asserts in CheckStacksSize() when there is a stack mismatch. +- Context: Support for #define-ing GImGui and IMGUI_SET_CURRENT_CONTEXT_FUNC to enable custom thread-based hackery (#586) +- Updated stb_truetype.h to 1.14 (added OTF support, removed warnings). (#883, #976) +- Updated stb_rect_pack.h to 0.10 (removed warnings). (#883) +- Added ImGuiMouseCursor_None enum value for convenient usage by app/backends. +- Clipboard: Added a void* user_data parameter to Clipboard function handlers. (#875) (BREAKING API) +- Internals: Refactor internal text alignment options to use ImVec2, removed ImGuiAlign. (#842, #222) +- Internals: Renamed ImLoadFileToMemory to ImFileLoadToMemory to be consistent with ImFileOpen + fix mismatching .h name. (#917) +- OS/Windows: Fixed Windows default clipboard handler leaving its buffer unfreed on application's exit. (#714) +- OS/Windows: No default IME handler when compiling for Windows using GCC. (#738) +- OS/Windows: Now using _wfopen() instead of fopen() to allow passing in paths/filenames with UTF-8 characters. (#917) +- Tools: binary_to_compressed_c: Avoid ?? trigraphs sequences in string outputs which break some older compilers. (#839) +- Demo: Added an extra 3-way columns demo. +- Demo: ShowStyleEditor: show font character map / grid in more details. +- Demo: Console: Fixed a completion bug when multiple candidates are equals and match until the end. +- Demo: Fixed 1-byte off overflow in the ShowStyleEditor() combo usage. (#783) [@bear24rw] +- Examples: Accessing ImVector fields directly, feel less stl-ey. (#810) +- Examples: OpenGL*: Saving/restoring existing scissor rectangle for completeness. (#807) +- Examples: OpenGL*: Saving/restoring active texture number (the value modified by glActiveTexture). (#1087, #1088, #1116) +- Examples: OpenGL*: Saving/restoring separate color/alpha blend functions correctly. (#1120) [@greggman] +- Examples: OpenGL2: Uploading font texture as RGBA32 to increase compatibility with users shaders for beginners. (#824) +- Examples: Vulkan: Countless fixes and improvements. (#785, #804, #910, #1017, #1039, #1041, #1042, #1043, #1080) [@martty, @Loftilus, @ParticlePeter, @SaschaWillems] +- Examples: DirectX9/10/10: Only call SetCursor(NULL) is io.MouseDrawCursor is set. (#585, #909) +- Examples: DirectX9: Explicitly setting viewport to match that other examples are doing. (#937) +- Examples: GLFW+OpenGL3: Fixed Shutdown() calling GL functions with NULL parameters if NewFrame was never called. (#800) +- Examples: GLFW+OpenGL2: Renaming opengl_example/ to opengl2_example/ for clarity. +- Examples: SDL+OpenGL: explicitly setting GL_UNPACK_ROW_LENGTH to reduce issues because SDL changes it. (#752) +- Examples: SDL2: Added build .bat files for Win32. +- Added various links to language/engine bindings. +- Various other minor fixes, tweaks, comments, optimizations. + + +----------------------------------------------------------------------- + VERSION 1.49 (2016-05-09) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.49 + +Breaking Changes: + +- Renamed `SetNextTreeNodeOpened()` to `SetNextTreeNodeOpen()` for consistency, no redirection. +- Removed confusing set of `GetInternalState()`, `GetInternalStateSize()`, `SetInternalState()` functions. Now using `CreateContext()`, `DestroyContext()`, `GetCurrentContext()`, `SetCurrentContext()`. If you were using multiple contexts the change should be obvious and trivial. +- Obsoleted old signature of `CollapsingHeader(const char* label, const char* str_id = NULL, bool display_frame = true, bool default_open = false)`, as extra parameters were badly designed and rarely used. Most uses were using 1 parameter and shouldn't affect you. You can replace the "default_open = true" flag in new API with `CollapsingHeader(label, ImGuiTreeNodeFlags_DefaultOpen)`. +- Changed `ImDrawList::PushClipRect(ImVec4 rect)` to `ImDraw::PushClipRect(ImVec2 min,ImVec2 max,bool intersect_with_current_clip_rect=false)`. Note that higher-level `ImGui::PushClipRect()` is preferable because it will clip at logic/widget level, whereas `ImDrawList::PushClipRect()` only affect your renderer. +- Title bar (using ImGuiCol_TitleBg/ImGuiCol_TitleBgActive colors) isn't rendered over a window background (ImGuiCol_WindowBg color) anymore (see #655). If your TitleBg/TitleBgActive alpha was 1.0f or you are using the default theme it will not affect you. However if your TitleBg/TitleBgActive alpha was <1.0f you need to tweak your custom theme to readjust for the fact that we don't draw a WindowBg background behind the title bar. + This helper function will convert an old TitleBg/TitleBgActive color into a new one with the same visual output, given the OLD color and the OLD WindowBg color. (Or If this is confusing, just pick the RGB value from title bar from an old screenshot and apply this as TitleBg/TitleBgActive. Or you may just create TitleBgActive from a tweaked TitleBg color.) + + ImVec4 ConvertTitleBgCol(const ImVec4& win_bg_col, const ImVec4& title_bg_col) + { + float new_a = 1.0f - ((1.0f - win_bg_col.w) * (1.0f - title_bg_col.w)); + float k = title_bg_col.w / new_a; + return ImVec4((win_bg_col.x * win_bg_col.w + title_bg_col.x) * k, (win_bg_col.y * win_bg_col.w + title_bg_col.y) * k, (win_bg_col.z * win_bg_col.w + title_bg_col.z) * k, new_a); + } + +Other changes: + +- New version of ImGuiListClipper helper calculates item height automatically. See comments and demo code. (#662, #661, #660) +- Added SetNextWindowSizeConstraints() to enable basic min/max and programmatic size constraints on window. Added demo. (#668) +- Added PushClipRect()/PopClipRect() (previously part of imgui_internal.h). Changed ImDrawList::PushClipRect() prototype. (#610) +- Added IsRootWindowOrAnyChildHovered() helper. (#615) +- Added TreeNodeEx() functions. (#581, #600, #190) +- Added ImGuiTreeNodeFlags_Selected flag to display TreeNode as "selected". (#581, #190) +- Added ImGuiTreeNodeFlags_AllowOverlapMode flag. (#600) +- Added ImGuiTreeNodeFlags_NoTreePushOnOpen flag (#590). +- Added ImGuiTreeNodeFlags_NoAutoOpenOnLog flag (previously private). +- Added ImGuiTreeNodeFlags_DefaultOpen flag (previously private). +- Added ImGuiTreeNodeFlags_OpenOnDoubleClick flag. +- Added ImGuiTreeNodeFlags_OpenOnArrow flag. +- Added ImGuiTreeNodeFlags_Leaf flag, always opened, no arrow, for convenience. For simple use case prefer using TreeAdvanceToLabelPos()+Text(). +- Added ImGuiTreeNodeFlags_Bullet flag, to add a bullet to Leaf node or replace Arrow with a bullet. +- Added TreeAdvanceToLabelPos(), GetTreeNodeToLabelSpacing() helpers. (#581, #324) +- Added CreateContext()/DestroyContext()/GetCurrentContext()/SetCurrentContext(). Obsoleted nearly identical GetInternalState()/SetInternalState() functions. (#586, #269) +- Added NewLine() to undo a SameLine() and as a shy reminder that horizontal layout support hasn't been implemented yet. +- Added IsItemClicked() helper. (#581) +- Added CollapsingHeader() variant with close button. (#600) +- Fixed MenuBar missing lower border when borders are enabled. +- InputText(): Fixed clipping of cursor rendering in case it gets out of the box (which can be forced w/ ImGuiInputTextFlags_NoHorizontalScroll. (#601) +- Style: Changed default IndentSpacing from 22 to 21. (#581, #324) +- Style: Fixed TitleBg/TitleBgActive color being rendered above WindowBg color, which was inconsistent and causing visual artifact. (#655) + This broke the meaning of TitleBg and TitleBgActive. Only affect values where Alpha<1.0f. Fixed default theme. Read comments in "API BREAKING CHANGES" section to convert. +- Relative rendering of order of Child windows creation is preserved, to allow more control with overlapping children. (#595) +- Fixed GetWindowContentRegionMax() being off by ScrollbarSize amount when explicit SizeContents is set. +- Indent(), Unindent(): optional non-default indenting width. (#324, #581) +- Bullet(), BulletText(): Slightly bigger. Less polygons. +- ButtonBehavior(): fixed subtle old bug when a repeating button would also return true on mouse release (barely noticeable unless RepeatRate is set to be very slow). (#656) +- BeginMenu(): a menu that becomes disabled while open gets closed down, facilitate user's code. (#126) +- BeginGroup(): fixed using within Columns set. (#630) +- Fixed a lag in reading the currently hovered window when dragging a window. (#635) +- Obsoleted 4 parameters version of CollapsingHeader(). Refactored code into TreeNodeBehavior. (#600, #579) +- Scrollbar: minor fix for top-right rounding of scrollbar background when window has menu bar but no title bar. +- MenuItem(): the check mark renders in disabled color when menu item is disabled. +- Fixed clipping rectangle floating point representation to ensure renderer-side float point operations yield correct results in typical DirectX/GL settings. (#582, 597) +- Fixed GetFrontMostModalRootWindow(), fixing missing fade-out when a combo pop was used stacked over a modal window. (#604) +- ImDrawList: Added AddQuad(), AddQuadFilled() helpers. +- ImDrawList: AddText() refactor, moving some code to ImFont, reserving less unused vertices when large vertical clipping occurs. +- ImFont: Added RenderChar() helper. +- ImFont: Added AddRemapChar() helper. (#609) +- ImFontConfig: Clarified persistence requirement of GlyphRanges array. (#651) +- ImGuiStorage: Added bool helper functions for completeness. +- AddFontFromMemoryCompressedTTF(): Fix ImFontConfig propagation. (#587) +- Renamed majority of use of the word "opened" to "open" for clarity. Renamed SetNextTreeNodeOpened() to SetNextTreeNodeOpen(). (#625, #579) +- Examples: OpenGL3: Saving/restoring glActiveTexture() state. (#602) +- Examples: DirectX9: save/restore all device state. +- Examples: DirectX9: Removed dependency on d3dx9.h, d3dx9.lib, dxguid.lib so it can be used in a DirectXMath.h only environment. (#611) +- Examples: DirectX10/X11: Apply depth-stencil state (no use of depth buffer). (#640, #636) +- Examples: DirectX11/X11: Added comments on removing dependency on D3DCompiler. (#638) +- Examples: SDL: Initialize video+timer subsystem only. +- Examples: Apple/iOS: lowered XCode project deployment target from 10.7 to 10.11. (#598, #575) + + +----------------------------------------------------------------------- + VERSION 1.48 (2016-04-09) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.48 + +Breaking Changes: + +- Consistently honoring exact width passed to PushItemWidth() (when positive), previously it would add extra FramePadding.x*2 over that width. Some hand-tuned layout may be affected slightly. (#346) +- Style: removed `style.WindowFillAlphaDefault` which was confusing and redundant, baked alpha into `ImGuiCol_WindowBg` color. If you had a custom WindowBg color but didn't change WindowFillAlphaDefault, multiply WindowBg alpha component by 0.7. Renamed `ImGuiCol_TooltipBg` to `ImGuiCol_PopupBG`, applies to other types of pop-ups. `bg_alpha` parameter of 5-parameters version of Begin() is an override. (#337) +- InputText(): Added BufTextLen field in ImGuiTextEditCallbackData. Requesting user to update it if the buffer is modified in the callback. Added a temporary length-check assert to minimize panic for the 3 people using the callback. (#541) +- Renamed GetWindowFont() to GetFont(), GetWindowFontSize() to GetFontSize(). Kept inline redirection function (will obsolete). (#340) + +Other Changes: + +- Consistently honoring exact width passed to PushItemWidth(), previously it would add extra FramePadding.x*2 over that width. Some hand-tuned layout may be affected slightly. (#346) +- Fixed clipping of child windows within parent not taking account of child outer clipping boundaries (including scrollbar, etc.). (#506) +- TextUnformatted(): Fixed rare crash bug with large blurb of text (2k+) not finished with a '\n' and fully above the clipping Y line. (#535) +- IO: Added 'KeySuper' field to hold CMD keyboard modifiers for OS X. Updated all examples accordingly. (#473) +- Added ImGuiWindowFlags_ForceVerticalScrollbar, ImGuiWindowFlags_ForceHorizontalScrollbar flags. (#476) +- Added IM_COL32 macros to generate a U32 packed color, convenient for direct use of ImDrawList api. (#346) +- Added GetFontTexUvWhitePixel() helper, convenient for direct use of ImDrawList api. +- Selectable(): Added ImGuiSelectableFlags_AllowDoubleClick flag to allow user reacting on double-click. (@zapolnov) (#516) +- Begin(): made the close button explicitly set the boolean to false instead of toggling it. (#499) +- BeginChild()/EndChild(): fixed incorrect layout to allow widgets submitted after an auto-fitted child window. (#540) +- BeginChild(): Added ImGuiWindowFlags_AlwaysUseWindowPadding flag to ensure non-bordered child window uses window padding. (#462) +- Fixed InputTextMultiLine(), ListBox(), BeginChildFrame(), ProgressBar(): outer frame not honoring bordering. (#462, #503) +- Fixed Image(), ImageButtion() rendering a rectangle 1 px too large on each axis. (#457) +- SetItemAllowOverlap(): Promoted from imgui_internal.h to public imgui.h api. (#517) +- Combo(): Right-most button stays highlighted when pop-up is open. +- Combo(): Display pop-up above if there's isn't enough space below / or select largest side. (#505) +- DragFloat(), SliderFloat(), InputFloat(): fixed cases of erroneously returning true repeatedly after a text input modification (e.g. "0.0" --> "0.000" would keep returning true). (#564) +- DragFloat(): Always apply value when mouse is held/widget active, so that an always-resetting variable (e.g. non saved local) can be passed. +- InputText(): OS X friendly behaviors: Word movement uses ALT key; Shortcuts uses CMD key; Double-clicking text select a single word; Jumping to next word sets cursor to end of current word instead of beginning of current word. (@zhiayang), (#473) +- InputText(): Added BufTextLen in ImGuiTextEditCallbackData. Requesting user to maintain it if buffer is modified. Zero-ing structure properly before use. (#541) +- CheckboxFlags(): Added support for testing/setting multiple flags at the same time. (@DMartinek) (#555) +- TreeNode(), CollapsingHeader() fixed not being able to use "##" sequence in a formatted label. +- ColorEdit4(): Empty label doesn't add InnerSpacing.x, matching behavior of other widgets. (#346) +- ColorEdit4(): Removed unnecessary calls to scanf() when idle in hexadecimal edit mode. +- BeginPopupContextItem(), BeginPopupContextWindow(): added early out optimization. +- CaptureKeyboardFromApp() / CaptureMouseFromApp(): added argument to allow clearing the capture flag. (#533) +- ImDrawList: Fixed index-overflow check broken by AddText() casting current index back to ImDrawIdx. (#514) +- ImDrawList: Fixed incorrect removal of trailing draw command if it is a callback command. +- ImDrawList: Allow windows with only a callback only to be functional. (#524) +- ImDrawList: Fixed ImDrawList::AddRect() which used to render a rectangle 1 px too large on each axis. (#457) +- ImDrawList: Fixed ImDrawList::AddCircle() to fit precisely within bounding box like AddCircleFilled() and AddRectFilled(). (#457) +- ImDrawList: AddCircle(), AddRect() takes optional thickness parameter. +- ImDrawList: Added AddTriangle(). +- ImDrawList: Added PrimQuadUV() helper to ease custom rendering of textured quads (require primitive reserve). +- ImDrawList: Allow AddText(ImFont\* font, float font_size, ...) variant to take NULL/0.0f as default. +- ImFontAtlas: heuristic increase default texture width up for large number of glyphs. (#491) +- ImTextBuffer: Fixed empty() helper which was utterly broken. +- Metrics: allow to inspect individual triangles in draw calls. +- Demo: added more draw primitives in the Custom Rendering example. (#457) +- Demo: extra comments and example for PushItemWidth(-1) patterns. +- Demo: InputText password demo filters out blanks. (#515) +- Demo: Fixed malloc/free mismatch and leak when destructing demo console, if it has been used. (@fungos) (#536) +- Demo: plot code doesn't use ImVector to avoid heap allocation and be more friendly to custom allocator users. (#538) +- Fixed compilation on DragonFly BSD (@mneumann) (#563) +- Examples: Vulkan: Added a Vulkan example (@Loftilus) (#549) +- Examples: DX10, DX11: Saving/restoring most device state so dropping render function in your codebase shouldn't have DX device side-effects. (#570) +- Examples: DX10, DX11: Fixed ImGui_ImplDX??_NewFrame() from recreating device objects if render isn't called (g_pVB not set). +- Examples: OpenGL3: Fix BindVertexArray/BindBuffer order. (@nlguillemot) (#527) +- Examples: OpenGL: skip rendering and calling glViewport() if we have zero-fixed buffer. (#486) +- Examples: SDL2+OpenGL3: Fix context creation options. Made ImGui_ImplSdlGL3_NewFrame() signature match GL2 one. (#468, #463) +- Examples: SDL2+OpenGL2/3: Fix for high-dpi displays. (@nickgravelyn) +- Various extra comments and clarification in the code. +- Various other fixes and optimizations. + + +----------------------------------------------------------------------- + VERSION 1.47 (2015-12-25) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.47 + +Changes: + +- Rebranding "ImGui" -> "dear imgui" as an optional first name to reduce ambiguity with IMGUI term. (#21) +- Added ProgressBar(). (#333) +- InputText(): Added ImGuiInputTextFlags_Password mode: hide display, disable logging/copying to clipboard. (#237, #363, #374) +- Added GetColorU32() helper to retrieve color given enum with global alpha and extra applied. +- Added ImGuiIO::ClearInputCharacters() superfluous helper. +- Fixed ImDrawList draw command merging bug where using PopClipRect() along with PushTextureID()/PopTextureID() functions + would occasionally restore an incorrect clipping rectangle. +- Fixed ImDrawList draw command merging so PushTextureID(XXX)/PopTextureID()/PushTextureID(XXX) sequence are now properly merged. +- Fixed large popups positioning issues when their contents on either axis is larger than DisplaySize, + and WindowPadding < DisplaySafeAreaPadding. +- Fixed border rendering in various situations when using non-pixel aligned glyphs. +- Fixed border rendering of windows to always contain the border within the window. +- Fixed Shutdown() leaking font atlas data if NewFrame() was never called. (#396, #303) +- Fixed int>void\* warnings for 64-bit architectures with fancy warnings enabled. +- Renamed the dubious Color() helpers to ValueColor() - dangerously named, rarely used and probably to be made obsolete. +- InputText(): Fixed and better handling of using keyboard while mouse button if being held and dragging. (#429) +- InputText(): Replace OS IME (Input Method Editor) cursor on top-left when we are not text editing. +- TreeNode(), CollapsingHeader(), Bullet(), BulletText(): various sizing and layout fixes to better support laying out + multiple item with different height on same line. (#414, #282) +- Begin(): Initial window creation with ImGuiWindowFlags_NoBringToFrontOnFocus flag pushes it at the front of global window list. +- BeginPopupContextWindow() and BeginPopupContextVoid() reopen window on subsequent click. (#439) +- ColorEdit4(): Fixed broken tooltip on hovering the color button. (actually fixes #373, #380) +- ImageButton(): uses FrameRounding up to a maximum of available framing size. (#394) +- Columns: Fixed bug with indentation within columns, also making code a bit shorter/faster. (#414, #125) +- Columns: Columns set with no implicit id include the columns count within the id to reduce collisions. (#125) +- Columns: Removed one unnecessary allocation when columns are not used by a window. (#125) +- ImFontAtlas: Tweaked GetGlyphRangesJapanese() so it is easier to modify. +- ImFontAtlas: Updated stb_rect_pack.h to 0.08. +- Metrics: Fixed computing ImDrawCmd bounding box when the draw buffer have been unindexed. +- Demo: Added a simple "Property Editor" demo applet. (#125, #414) +- Demo: Fixed assertion in "Custom Rendering" demo when holding both mouse buttons. (#393) +- Demo: Lots of extra comments, fixes. +- Demo: Tweaks to Style Editor. +- Examples: Not clearing input data/tex data in atlas (will be required for dynamic atlas anyway). +- Examples: Added /Zi (output debug information) to Win32 batch files. +- Examples: Various fixes for resizing window and recreating graphic context. +- Examples: OpenGL2/3: Save/restore viewport as part of default render function. (#392, #441). +- Examples; OpenGL3: Fixed gl3w.c for Linux when compiled with a C++ compiler. (#411) +- Examples: DirectX: Removed assumption about Unicode build in example main.cpp. (#399) +- Examples: DirectX10: Added DirectX10 example. (#424) +- Examples: DirectX11: Downgraded requirement from shader model 5.0 to 4.0. (#420) +- Examples: DirectX11: Removed Debug flag from graphics context. (#415) +- Examples: Added SDL+OpenGL3 example. (#356) + + +----------------------------------------------------------------------- + VERSION 1.46 (2015-10-18) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.46 + +Changes: + +- Begin*(): added ImGuiWindowFlags_NoFocusOnAppearing flag. (#314) +- Begin*(): added ImGuiWindowFlags_NoBringToFrontOnFocus flag. +- Added GetDrawData() alternative to setting a Render function pointer in ImGuiIO structure. +- Added SetClipboardText(), GetClipboardText() helper shortcuts that user code can call directly without reading + from the ImGuiIO structure (to match MemAlloc/MemFree) +- Fixed handling of malformed UTF-8 at the end of a non-zero terminated string range. +- Fixed mouse click detection when passing DeltaTime 0.0. (#338) +- Fixed IsKeyReleased() and IsMouseReleased() returning true on the first frame. +- Fixed using SetNextWindow\* functions on Modal windows with a ImGuiSetCond_Appearing condition. (#377) +- IsMouseHoveringRect(): Added 'bool clip' parameter to disable clipping provided rectangle. (#316) +- InputText(): added ImGuiInputTextFlags_ReadOnly flag. (#211) +- InputText(): lose cursor/undo-stack when reactivating focus is buffer has changed size. +- InputText(): fixed ignoring text inputs when ALT or ALTGR are pressed. (#334) +- InputText(): fixed mouse-dragging not tracking the cursor when text doesn't fit. (#339) +- InputText(): fixed cursor pixel-perfect alignment when horizontally scrolling. +- InputText(): fixed crash when passing a buf_size==0 (which can be of use for read-only selectable text boxes). (#360) +- InputFloat() fixed explicit precision modifier, both display and input were broken. +- PlotHistogram(): improved rendering of histogram with a lot of values. +- Dummy(): creates an item so functions such as IsItemHovered() can be used. +- BeginChildFrame() helper: added the extra_flags parameter. +- Scrollbar: fixed rounding of background + child window consistenly have ChildWindowBg color under ScrollbarBg fill. (#355). +- Scrollbar: background color less translucent in default style so it works better when changing background color. +- Scrollbar: fixed minor rendering offset when borders are enabled. (#365) +- ImDrawList: fixed 1 leak per ImDrawList using the ChannelsSplit() API (via Columns). (#318) +- ImDrawList: fixed rectangle rendering glitches with width/height <= 1/2 and rounding enabled. +- ImDrawList: AddImage() uv parameters default to (0,0) and (1,1). +- ImFontAtlas: Added TexDesiredWidth and tweaked default cheapo best-width choice. (#327) +- ImFontAtlas: Added GetGlyphRangesKorean() helper to retrieve unicode ranges for Korean. (#348) +- ImGuiTextFilter::Draw() helper return bool and build when filter is modified. +- ImGuiTextBuffer: added c_str() helper. +- ColorEdit4(): fixed hovering the color button always showing 1.0 alpha. (#373) +- ColorConvertFloat4ToU32() round the floats instead of truncating them. +- Window: Fixed window lower-right clipping limit so it plays more friendly with both OpenGL and DirectX coordinates. +- Internal: Extracted a EndFrame() function out of Render() but kept it internal/private + clarified some asserts. (#335) +- Internal: Added missing IMGUI_API definitions in imgui_internal.h (#326) +- Internal: ImLoadFileToMemory() return void\* instead of taking void*\* + allow optional int\* file_size. +- Demo: Horizontal scrollbar demo allows to enable simultanaeous scrollbars on both axises. +- Tools: binary_to_compressed_c.cpp: added -nocompress option. +- Examples: Added example for the Marmalade platform. +- Examples: Added batch files to build Windows examples with VS. +- Examples: OpenGL3: Saving/restoring more GL state correctly. (#347) +- Examples: OpenGL2/3: Added msys2/mingw64 target to Makefiles. + + +----------------------------------------------------------------------- + VERSION 1.45 (2015-09-01) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.45 + +Breaking Changes: + +- With the addition of better horizontal scrolling primitives I had to make some consistency fixes. + `GetCursorPos()` `SetCursorPos()` `GetContentRegionMax()` `GetWindowContentRegionMin()` `GetWindowContentRegionMax()` + are now incorporating the scrolling amount. They were incorrectly not incorporating this amount previously. + It PROBABLY shouldn't break anything, but that depends on how you used them. Namely: + - If you always used SetCursorPos() with values relative to GetCursorPos() there shouldn't be a problem. + However if you used absolute coordinates, note that SetCursorPosY(100.0f) will put you at +100 from the initial Y position (which may be scrolled out of the view), NOT at +100 from the window top border. Since there wasn't any official scrolling value on X axis (past just manually moving the cursor) this can only affect you if you used to set absolute coordinates on the Y axis which is hopefully rare/unlikely, and trivial to fix. + - The value of GetWindowContentRegionMax() isn't necessarily close to GetWindowWidth() if horizontally scrolling. + Previously they were roughly interchangeable (roughly because the content region exclude window padding). + +Other Changes: + +- Added Horizontal Scrollbar via ImGuiWindowFlags_HorizontalScroll (#246). +- Added GetScrollX(), GetScrollX(), GetScrollMaxX() apis (#246). +- Added SetNextWindowContentSize(), SetNextWindowContentWidth() to explicitly set the content size of a window, which + define the range of scrollbar. When set explicitly it also define the base value from which widget width are derived. +- Added IO.WantTextInput telling when ImGui is expecting text input, so that e.g. OS on-screen keyboard can be enabled. +- Added printf attribute to printf-like text formatting functions (Clang/GCC). +- Added GetMousePosOnOpeningCurrentPopup() helper. +- Added GetContentRegionAvailWidth() helper. +- Malformed UTF-8 data don't terminate string, output 0xFFFD instead (#307). +- ImDrawList: Added AddBezierCurve(), PathBezierCurveTo() API for cubic bezier curves (#311). +- ImDrawList: Allow to override ImDrawIdx type (#292). +- ImDrawList: Added an assert on overflowing index value (#292). +- ImDrawList: Fixed issues with channels split/merge. Now functional without manually adding a draw cmd. Added comments. +- ImDrawData: Added ScaleClipRects() helper useful when rendering scaled. (#287). +- Fixed Bullet() inconsistent layout behaviour when clipped. +- Fixed IsWindowHovered() not taking account of window hoverability (may be disabled because of a popup). +- Fixed InvisibleButton() not honoring negative size consistently with other widgets that do so. +- Fixed OpenPopup() accessing current window, effectively opening "Debug" when called from an empty window stack. +- TreeNode(): Fixed IsItemHovered() result being inconsistent with interaction visuals (#282). +- TreeNode(): Fixed mouse interaction padding past the node label being accounted for in layout (#282). +- BeginChild(): Passing a ImGuiWindowFlags_NoMove inhibits moving parent window from this child. +- BeginChild() fixed missing rounding for child sizes which leaked into layout and have items misaligned. +- Begin(): Removed default name = "Debug" parameter. We already have a "Debug" window pushed to the stack in the first place so it's not really a useful default. +- Begin(): Minor fixes with windows main clipping rectangle (e.g. child window with border). +- Begin(): Window flags are only read on the first call of the frame. Subsequent calls ignore flags, which allows appending to a window without worryin about flags. +- InputText(): ignore character input when ctrl/alt are held. (Normally those text input are ignored by most wrappers.) (#279). +- Demo: Fixed incorrectly formed string passed to Combo (#298). +- Demo: Added simple Log demo. +- Demo: Added horizontal scrolling example + enabled in console, log and child examples (#246). +- Style: made scrollbars rounded by default. Because nice. Minor menu bar background alpha tweak. (#246) +- Metrics: display indices along with triangles count (#299) and some internal state. +- ImGuiTextFilter::PassFilter() supports string range. Added [] helper to ImGuiTextBuffer. +- ImGuiTextFilter::Draw() default parameter width=0.0f for no override, allow override with negative values. +- Examples: OpenGL2/OpenGL3: fix for retina displays. Default font current lack crispness. +- Examples: OpenGL2/OpenGL3: save/restore more GL state correctly. +- Examples: DirectX9/DirectX11: resizing buffers dynamically (#299). +- Examples: DirectX9/DirectX11: added missing middle mouse button to Windows event handler. +- Examples: DirectX11: fix for Visual Studio 2015 presumably shipping with an updated version of DX11. +- Examples: iOS: fixed missing files in project. + + +----------------------------------------------------------------------- + VERSION 1.44 (2015-08-08) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.44 + +Breaking Changes: + +- imgui.cpp has been split intro extra files: imgui_demo.cpp, imgui_draw.cpp, imgui_internal.h. + Add the two extra .cpp to your project or #include them from another .cpp file. (#219) + +Other Changes: + +- Internal data structure and several useful functions are now exposed in imgui_internal.h. This should make it easier + and more natural to extend ImGui. However please note that none of the content in imgui_internal.h is guaranteed + for forward-compatibility and code using those types/functions may occasionally break. (#219) +- All sample code is in imgui_demo.cpp. Please keep this file in your project and consider allowing your code to call + the ShowTestWindow() function as de-facto guide to ImGui features. It will be stripped out by the linker when unused. +- Added GetContentRegionAvail() helper (basically GetContentRegionMax() - GetCursorPos()). +- Added ImGuiWindowFlags_NoInputs for totally input-passthru window. +- Button(): honor negative size consistently with other widgets that do so (width -100 to align the button 100 pixels + before the right-most position of the contents region). +- InputTextMultiline(): honor negative size consistently with other widgets that do so. +- Combo() clamp popup to lower edge of visible area. +- InputInt(): value doesn't pass through an int>float>int casting chain, fix handling lost of precision with "large" integer. +- InputInt() allow hexadecimal input (awkwardly via ImGuiInputTextFlags_CharsHexadecimal but we will allow format + string in InputInt* later). +- Checkbox(), RadioButton(): fixed scaling of checkbox and radio button for the filling of "active" visual. +- Columns: never assume horizontal space for scrollbar if NoScrollbar flag is explicitly set. +- Slider: fixed using FramePadding between frame and grab visual. Scaling that spacing would look odd. +- Fixed lower-right resize grip hit box not scaling along with its rendered size (#287) +- ImDrawList: Fixed angles in ImDrawList::PathArcTo(), PathArcToFast() (v1.43) being off by an extra PI for no reason. +- ImDrawList: Added ImDrawList::AddText() shorthand helper. +- ImDrawList: Add missing support for anti-aliased thick-lines (#133, also ref #288) +- ImFontAtlas: Added AddFontFromMemoryCompressedBase85TTF() to load base85 encoded font string. Default font encoded + as base85 saves ~100 lines / 26 KB of source code. Added base85 output to the binary_to_compressed_c tool. +- Build fix for MinGW (#276). +- Examples: OpenGL3: Fixed running on script core profiles for OSX (#277). +- Examples: OpenGL3: Simplified code using glBufferData for vertices as well (#277, #278) +- Examples: DirectX11: Clear font texture view to ensure Release() doesn't get called twice (#290). +- Updated to stb_truetype 1.07 (back to vanilla version as our minor changes are now in master & fix unlikely assert + with odd fonts (#280) + + +----------------------------------------------------------------------- + VERSION 1.43 (2015-07-17) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.43 + +Breaking Changes: + +- This is a rather important release and we unfortunately had to break the rendering API. + ImGui now requires you to render indexed vertices instead of non-indexed ones. The fix should be very easy. + Sorry for that! This change is saving a fair amount of CPU/GPU and enables us to get anti-aliasing for a marginal cost. + Each ImDrawList now contains both a vertex buffer and an index buffer. For each command, render ElemCount/3 triangles + using indices from the index buffer. +- If you are using a vanilla copy of one of the imgui_impl_XXXX.cpp provided in the example, you just need to update + your copy and you can ignore the rest. +- The signature of the io.RenderDrawListsFn handler has changed + From: ImGui_XXXX_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_count) + To: ImGui_XXXX_RenderDrawLists(ImDrawData* draw_data) + With: argument 'cmd_lists' -> 'draw_data->CmdLists' + argument 'cmd_lists_count' -> 'draw_data->CmdListsCount' + ImDrawList 'commands' -> 'CmdBuffer' + ImDrawList 'vtx_buffer' -> 'VtxBuffer' + ImDrawList n/a -> 'IdxBuffer' (new) + ImDrawCmd 'vtx_count' -> 'ElemCount' + ImDrawCmd 'clip_rect' -> 'ClipRect' + ImDrawCmd 'user_callback' -> 'UserCallback' + ImDrawCmd 'texture_id' -> 'TextureId' +- If you REALLY cannot render indexed primitives, you can call the draw_data->DeIndexAllBuffers() method to de-index + the buffers. This is slow and a waste of CPU/GPU. Prefer using indexed rendering! + Refer to code in the examples/ folder or ask on the GitHub if you are unsure of how to upgrade. Please upgrade! + +Other Changes: + +- Added anti-aliasing on lines and shapes based on primitives by @MikkoMononen (#133). + Between the use of indexed-rendering and the fact that the entire rendering codebase has been optimized and massaged + enough, with anti-aliasing enabled ImGui 1.43 is now running FASTER than 1.41. + Made some extra effort in making the code run faster in your typical Debug build. +- Anti-aliasing can be disabled in the ImGuiStyle structure via the AntiAliasedLines/AntiAliasedShapes fields for further gains. +- ImDrawList: Added AddPolyline(), AddConvexPolyFilled() with optional anti-aliasing. +- ImDrawList: Added stateful path building and stroking API. PathLineTo(), PathArcTo(), PathRect(), PathFill(), PathStroke() + with optional anti-aliasing. +- ImDrawList: Added AddRectFilledMultiColor() helper. +- ImDrawList: Added multi-channel rendering so out of order elements can be rendered in separate channels and then merged + back together (used by columns). +- ImDrawList: Fixed merging draw commands when equal clip rectangles are in the two first commands. +- ImDrawList: Fixed window draw lists not destructed properly on Shutdown(). +- ImDrawData: Added DeIndexAllBuffers() helper. +- Added lots of new font options ImFontAtlas::AddFont() and the new ImFontConfig structure. + - Added support for oversampling (ImFontConfig: OversampleH, OversampleV) and sub-pixel positioning (ImFontConfig: PixelSnapH). + Oversampling allows sub-pixel positioning but can also be used as a way to get some leeway with scaling fonts without re-rasterizing. + - Added GlyphExtraSpacing option to add extra horizontal spacing between characters (#242). + - Added MergeMode option to merge glyphs from different font inputs into a same font (#182, #232). + - Added FontDataOwnedByAtlas option to keep ownership from the TTF data buffer and request the atlas to make a copy (#220). +- Updated to stb_truetype 1.06 (+ minor mods) with better font rasterization. +- InputText: Added ImGuiInputTextFlags_NoHorizontalScroll flag. +- InputText: Added ImGuiInputTextFlags_AlwaysInsertMode flag. +- InputText: Added HasSelection() helper in ImGuiTextEditCallbackData as a clarification. +- InputText: Fix for using END key on a multi-line text editor (#275) +- Columns: Dispatch render of each column in a sub-draw list and merge on closure, saving a lot of draw calls! (#125) +- Popups: Fixed Combo boxes inside menus. (#272) +- Style: Added GrabRounding setting to make the sliders etc. grabs rounded. +- Changed SameLine() parameters from int to float. +- Fixed incorrect assert triggering when code stole ActiveID from user moving a window by calling e.g. SetKeyboardFocusHere(). +- Fixed CollapsingHeader() label rendering outside its frame in columns context where ClipRect max isn't aligned with the + right-side of the header. +- Metrics window: calculate bounding box of actual vertices when hovering a draw list. +- Examples: Showing more information in the Fonts section. +- Examples: Added a gratuitous About window. +- Examples: Updated all examples code (OpenGL/DX9/DX11/SDL/Allegro/iOS) to use indexed rendering. +- Examples: Fixed the SDL2 example to support Unicode text input (#274). + + +----------------------------------------------------------------------- + VERSION 1.42 (2015-07-08) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.42 + +Breaking Changes: + +- Renamed SetScrollPosHere() to SetScrollHere(). Kept inline redirection function (will obsolete). +- Renamed GetScrollPosY() to GetScrollY(). Necessary to reduce confusion and make scrolling API consistent, + because positions (e.g. cursor position) are not equivalent to scrolling amount. +- Removed obsolete GetDefaultFontData() function that would assert anyway. + If you are updating from <1.30 you'll get a compile error instead of an assertion. (obsoleted 2015/01/11) + +Other Changes: + +- Added SDL2 example application (courtesy of @CedricGuillemet) +- Added iOS example application (courtesy of @joeld42) +- Added Allegro 5 example application (courtesy of @bggd) +- Added TitleBgActive color in style so focused window is made visible. (#253) +- Added CaptureKeyboardFromApp() / CaptureMouseFromApp() to manually enforce inputs capturing. +- Added DragFloatRange2() DragIntRange2() helpers. (#76) +- Added a Y centering ratio to SetScrollFromCursorPos() which can be used to aim the top or bottom of the window. (#150) +- Added SetScrollY(), SetScrollFromPos(), GetCursorStartPos() for manual scrolling manipulations. (#150). +- Added GetKeyIndex() helper for converting from ImGuiKey_\* enum to user's keycodes. Basically pulls from io.KeysMap[]. +- Added missing ImGuiKey_PageUp, ImGuiKey_PageDown so more UI code can be written without referring to implementation-side keycodes. +- MenuItem() can be activated on release. (#245) +- Allowing NewFrame() with DeltaTime==0.0f to not assert. +- Fixed IsMouseDragging(). (#260) +- Fixed PlotLines(), PlotHistogram() using incorrect hovering test so they would show their tooltip even when there is + a popup between mouse and the graph. +- Fixed window padding being reported incorrectly for child windows with borders when parent have no borders. +- Fixed a bug with TextUnformatted() clipping of long text blob when clipping y1 line sits on the first line of text. (#257) +- Fixed text baseline alignment of small button (no padding) after regular buttons. +- Fixed ListBoxHeader() not honoring negative sizes the same way as BeginChild() or BeginChildFrame(). (#263) +- Fixed warnings for more pedantic compiler settings (#258). +- ImVector<> cannot be re-defined anymore, cannot be replaced with std::vector<>. Allowed us to clean up and optimize + lots of code. Yeah! (#262) +- ImDrawList: store pointer to their owner name for easier auditing/debugging. +- Examples: added scroll tracking example with SetScrollFromCursorPos(). +- Examples: metrics windows render clip rectangle when hovering over a draw call. +- Lots of small optimization (particularly to run faster on unoptimized builds) and tidying up. +- Added font links in extra_fonts/ + instructions for using compressed fonts in C array. + + +----------------------------------------------------------------------- + VERSION 1.41 (2015-06-26) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.41 + +Breaking Changes: + +- Changed ImageButton() default bg_col parameter from (0,0,0,1) (black) to (0,0,0,0) (transparent). + Only makes a difference when texture have transparency. +- Changed Selectable() API from (label, selected, size) to (label, selected, flags, size). + Size override should be used very rarely so hopefully it doesn't affect many people. Sorry! + +Other Changes: + +- Added InputTextMultiline() multi-line text editor, vertical scrolling, selection, optimized enough to handle rather + big chunks of text in stateless context (thousands of lines are ok), option for allowing Tab to be input, option + for validating with Return or Ctrl+Return (#200). +- Added modal window API, BeginPopupModal(), follows the popup api scheme. Modal windows can be closed by clicking + outside. By default the rest of the screen is dimmed (using ImGuiCol_ModalWindowDarkening). Modal windows can be stacked. +- Added GetGlyphRangesCyrillic() helper (#237). +- Added SetNextWindowPosCenter() to center a window prior to knowing its size. (#249) +- Added IsWindowHovered() helper. +- Added IsMouseReleased(), IsKeyReleased() helpers to allow to user to avoid tracking them. (#248) +- Allow Set*WindowSize() calls to be used with popups. +- Window: AutoFit can be triggered on each axis separately via SetNextWindowSize(), etc. +- Window: fixed scrolling with mouse wheel while window was collapsed. +- Window: fixed mouse wheel scroll issues. +- DragFloat(), SliderFloat(): Fixed rounding of negative numbers which sometime made the negative lower bound unreachable. +- InputText(): lifted character count limit. +- InputText(): fixes in case of using per-window font scaling. +- Selectable(), MenuItem(): do not use frame rounding for hovering/selection. +- Selectable(): Added flag ImGuiSelectableFlags_DontClosePopups. +- Selectable(): Added flag ImGuiSelectableFlags_SpanAllColumns (#125). +- Combo(): Fixed issue with activating a Combo() not taking active id (#241). +- ColorButton(), ColorEdit4(): fix to ensure that the colored square stays square when non-default padding settings are used. +- BeginChildFrame(): returns bool like BeginChild() for clipping. +- SetScrollPosHere(): takes account of item height + more accurate centering + fixed precision issue. +- ImFont: ignoring '\r'. +- ImFont: added GetCharAdvance() helper. Exposed font Ascent and font Descent. +- ImFont: additional rendering optimizations. +- Metrics windows display storage size. + + +----------------------------------------------------------------------- + VERSION 1.40 (2015-05-31) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.40 + +Breaking Changes: + +- The BeginPopup() API (introduced in 1.37) had to be changed to allow for stacked popups and menus. + Use OpenPopup() to toggle the opened state and BeginPopup() to append.** +- The third parameter of Button(), 'repeat_if_held' has been removed. While it's been very rarely used, + some code will possibly break if you didn't rely on the default parameter. + Use PushButtonRepeat()/PopButtonRepeat() to configure repeat. +- Renamed IsRectClipped() to !IsRectVisible() for consistency (opposite return value!). Kept inline redirection function (will obsolete) +- Renamed GetWindowCollapsed() to IsWindowCollapsed() for consistency. Kept inline indirection function (will obsolete). + +Other Changes: + +- Menus: Added a menu system! Menus are typically populated with menu items and sub-menus, but you can add any sort of + widgets in them (buttons, text inputs, sliders, etc.). (#126) +- Menus: Added MenuItem() to append a menu item. Optional shortcut display, acts a button & toggle with checked/unchecked state, + disabled mode. Menu items can be used in any window. +- Menus: Added BeginMenu() to append a sub-menu. Note that you generally want to add sub-menu inside a popup or a menu-bar. + They will work inside a normal window but it will be a bit unusual. +- Menus: Added BeginMenuBar() to append to window menu-bar (set ImGuiWindowFlags_MenuBar to enable). +- Menus: Added BeginMainMenuBar() helper to append to a fullscreen main menu-bar. +- Popups: Support for stacked popups. Each popup level inhibit inputs to lower levels. The menus system is based on this. (#126). +- Popups: Added BeginPopupContextItem(), BeginPopupContextWindow(), BeginPopupContextVoid() to create a popup window on mouse-click. +- Popups: Popups have borders by default (#197), attenuated border alpha in default theme. +- Popups & Tooltip: Fit within display. Handling various positioning/sizing/scrolling edge cases. Better hysteresis when moving + in corners. Tooltip always tries to stay away from mouse-cursor. +- Added ImGuiStorage::GetVoidPtrRef() for manipulating stored void*. +- Added IsKeyDown() IsMouseDown() as convenience and for consistency with existing functions (instead of reading them from IO structures). +- Added Dummy() helper to advance layout by a given size. Unlike InvisibleButton() this doesn't catch any click. +- Added configurable io.KeyRepeatDelay, io.KeyRepeatRate keyboard and mouse repeat rate. +- Added PushButtonRepeat() / PopButtonRepeat() to enable hold-button-to-repeat press on any button. +- Removed the third 'repeat' parameter of Button(). +- Added IsAnyItemHovered() helper. +- Added GetItemsLineHeightWithSpacing() helper. +- Added ImGuiListClipper helper for clipping large list of evenly sized items, to avoid using CalcListClipping() directly. +- Separator: within group start on group horizontal offset. (#205) +- InputText: Fixed incorrect edit state after text buffer is appended to by user via the callback. (#206) +- InputText: CTRL+letter-key shortcuts (e.g. CTRL+C/V/X) makes sure only CTRL is pressed. (#214) +- InputText: Fixed cursor generating a zero-width wire-frame rectangle turning into a division by zero (would go unnoticed + unless you trapped exceptions). +- InputFloatN/InputIntN: Flags parameter added to match scalar versions. (#218) +- Selectable: Horizontal filling not declared to ItemSize() so Selectable(),SameLine() works and we can better auto-fit the window. +- Selectable: Handling text baseline alignment for line that aren't of text height. +- Combo: Empty label doesn't add ItemInnerSpacing alignment, matching other widgets. +- EndGroup: Carries the text base offset from the last line of the group (sort of incorrect but better than nothing, + should use the first line of the group, will implement in the future). +- Columns: distinguish columns-set ID from other widgets as a convenience, added asserts and sailors. +- ListBox: ListBox() function only use public API to encourage creating custom versions. ListBoxHeader() can return false. +- ListBox: Uses ImGuiListClipper and assume items of matching height, so large lists can be handled. +- Plot: overlay label clipped within frame when not fitting. +- Window: Added ImGuiSetCond_Appearing to test the hidden->visible transition in SetWindow***/SetNextWindow*** functions. +- Window: Auto-fitting cancel out one worth of vertical spacing for vertical symmetry (like what group and tooltip do). +- Window: Default item width for auto-resizing windows expressed as a factor of font height, scales better with different font. +- Window: Fixed auto-fit calculation mismatch of whether a scrollbar will be added by maximum height clamping. Also honor NoScrollBar in the case of height clamping, not adding extra horizontal space. +- Window: Hovering require to hover same child window. Reverted 860cf57 (December 3). Might break something if you have + child overlapping items in parent window. +- Window: Fixed appending multiple times to an existing child via multiple BeginChild/EndChild calls to same child name. + Allows a simple form of out-of-order appending. +- Window: Fixed auto-filling child window using WindowMinSize at their minimum size, irrelevant. +- Metrics: Added io.MetricsActiveWindows counter. (#213. +- Metrics: Added io.MetricsAllocs counter (number of active memory allocations). +- Metrics: ShowMetricsWindow() shows popups stack, allocations. +- Style: Added style.DisplayWindowPadding to prevent windows from reaching edges of display (similar to style.DisplaySafeAreaPadding which is still in effect and also affect popups/tooltips). +- Style: Removed style.AutoFitPadding, using style.WindowPadding makes more sense (the default values were already the same). +- Style: Added style.ScrollbarRounding. (#212) +- Style: Added ImGuiCol_TextDisabled for disabled text. Added TextDisabled() helper. +- Style: Added style.WindowTitleAlign alignment options, to e.g. center title on windows. (#222) +- ImVector: tweak growth strategy, matches vector from VS2010. +- ImFontAtlas: Added ClearFonts(), making the different clear funcs more explicit. (#224) +- ImFontAtlas: Fixed appending new fonts without clearing existing fonts. Clearing input data left to application. (#224) +- ImDrawList: Merge draw command better, cases of multiple Begin/End gets merged properly. +- Store common stacked settings contiguously in memory to avoid heap allocation for unused features, and reduce cache misses. +- Shutdown() tests for g.IO.Fonts not being NULL to ease use of multiple ImGui contexts. (#207) +- Added IMGUI_DISABLE_OBSOLETE_FUNCTIONS define to disable the functions that are meant to be removed. +- Examples: Added ? marks with tooltips next to various widgets. Added more comments in the demo window. +- Examples: Added Menu-bar example. +- Examples: Added Simple Layout example. +- Examples: AutoResize demo doesn't use TextWrapped(). +- Examples: Console example uses standard malloc/free, makes more sense as a copy & pastable example. +- Examples: DirectX9/11: Fixed key mapping for down arrow. +- Examples: DirectX9/11: hide OS cursor if ImGui is drawing it. (#155) +- Examples: DirectX11: explicitly set rasterizer state. +- Examples: OpenGL3: Add conditional compilation of forward compat as required by glfw on OSX. (#229) +- Fixed build with Visual Studio 2008 (possibly earlier versions as well). +- Other fixes, comments, tweaks. + + +----------------------------------------------------------------------- + VERSION 1.38 (2015-04-20) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.38 + +Breaking Changes: + +- Renamed IsClipped() to IsRectClipped(). Kept inline redirection function (will obsolete). +- Renamed ImDrawList::AddArc() to ImDrawList::AddArcFast(). + +Other Changes: + +- Added DragFloat(), DragInt() widget, click and drag to adjust value with given step. + Hold SHIFT/ALT to speed-up/slow-down. Double-click or CTRL+click to input text. + Passing min >= max makes the widget unbounded. +- Added DragFloat2(), DragFloat3(), DragFloat4(), DragInt2(), DragInt3(), DragInt4() helper variants. +- Added ShowMetricsWindow() which is mainly useful to debug ImGui internals. Added IO.MetricsRenderVertices counter. +- Added ResetMouseDragDelta() for iterative dragging operations. +- Added ImFontAtlas::AddFontFromCompressedTTF() helper + binary_to_compressed_c.cpp tool to compress a file and create a .c array from it. +- Added PushId() GetId() variants that takes string range to avoid user making unnecessary copies. +- Added IsItemVisible(). +- Fixed IsRectClipped() incorrectly returning false when log is enabled. +- Slider: visual fix in the unlikely that style.GrabMinSize is larger than a slider. +- SliderFloat: removed support for unbound slider (using FLT_MAX), caused various inconsistency. Use InputFloat()/DragFloat(). +- ColorEdit4: hide components prefix if there's no space for them. +- Combo: adding frame padding inside the combo box. +- Columns: mouse dragging uses absolute mouse coordinates.Fixed dragging left-most column of an auto-resizable window. #125 +- Selectable: render highlight into AutoFitPadding region but do not extend it, fixing visual gap. +- Focus: Allow SetWindowFocus(NULL) to remove focus. +- Focus: Clicking on void (outside an ImGui windows) loses keyboard-focus so application can use TAB. +- Popup: Fixed hovering over a popup's child (popups disable hovering on other windows but not their childs) #197 +- Fixed active widget not releasing its active state while being clipped. +- Fixed user-facing version of IsItemHovered() ignoring overlapping windows. +- Fixed label vertical alignment for InputInt2(), InputInt3(), InputInt4(). +- Fixed new collapsed auto-resizing window with saved .ini settings not calculating their initial width #176 +- Fixed Begin() returning true on collapsed windows that had loaded settings #176 +- Fixed style.DisplaySafeAreaPadding handling from being applied on window prior to them auto-fitting. +- ShowTestWindow(): added examples for DragFloat, DragInt and only custom label embedded in format strings. +- ShowTestWindow(): fixed "manipulating titles" example not doing the right thing, broken in ff35d24 +- Examples: OpenGL/GLFW: Fixed modifier key state setting in GLFW callbacks. +- Examples: OpenGL/GLFW: Added glBindTexture(0) in OpenGL fixed pipeline examples. Save restore current program and texture in the OpenGL3 example. +- Examples: DirectX11: Removed unnecessary vertices conversion and CUSTOMVERTEX types. +- Comments, fixes, tweaks. + + +----------------------------------------------------------------------- + VERSION 1.37 (2015-03-26) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.37 + +Other Changes: + +- Added a more convenient three parameters version of Begin() which covers the common uses better. +- Added mouse cursor types handling (resize, move, text input cursors, etc.) that user can query with GetMouseCursor(). Added demo and instructions in ShowTestWindow(). +- Added embedded mouse cursor data for MouseDrawCursor software cursor rendering, for consoles/tablets/etc. (#155). +- Added first version of BeginPopup/EndPopup() helper API to create popup menus. Popups automatically lock their position to the mouse cursor when first appearing. They close automatically when clicking outside, and inhibit hovering items from other windows when active (to allow for clicking outside). (#126) +- Added thickness parameter to ImDrawList::AddLine(). +- Added ImDrawList::PushClipRectFullScreen() helper. +- Added style.DisplaySafeAreaPadding which was previously hard-coded (useful if you can't see the edges of your display, e.g. TV screens). +- Added CalcItemRectClosestPoint() helper. +- Added GetMouseDragDelta(), IsMouseDragging() helpers, given a mouse button and an optional "unlock" threshold. Added io.MouseDragThreshold setting. (#167) +- IsItemHovered() return false if another widget is active, aka we can't use what we are hovering now. +- Added IsItemHoveredRect() if old behavior of IsItemHovered() is needed (e.g. for implementing the drop side of a drag'n drop operation). +- IsItemhovered() include space taken by label and behave consistently for all widgets (#145) +- Auto-filling child window feed their content size to parent (#170) +- InputText() removed the odd ~ characters when clipping. +- InputText() update its width in case of resize initiated programmatically while the widget is active. +- InputText() last active preserve scrolling position. Reset scroll if widget size becomes bigger than contents. +- Selectable(): not specifying a width defaults to using max of label width and remaining width. +- Selectable(const char*, bool) version has bool defaulting to false. +- Selectable(): fixed misusage of GetContentRegionMax().x leaking into auto-fitting. +- Windows starting Collapsed runs initial auto-fit to retrieve a width for their title bar (#175) +- Fixed new window from having an incorrect content size on their first frame, if queried by user. Fixed SetWindowPos/SetNextWindowPos having a side-effect size computation (#175) +- InputFloat(): fixed label alignment if total widget width forcefully bigger than space available. +- Auto contents size aware of enforced vertical scrollbar if window is larger than display size. +- Fixed new windows auto-fitting bigger than their .ini saved size. This was a bug but it may be a desirable effect sometimes, may reconsider it. +- Fixed negative clipping rectangle when collapsing windows that could affect manual submission to ImDrawList and end-user rendering function if unhandled (#177) +- Fixed bounding measurement of empty groups (fix #162) +- Fixed assignment order in Begin() making auto-fit size effectively lag by one frame. Also disabling "clamp into view" while windows are auto-fitting so that auto-fitting window in corners don't get pushed away. +- Fixed MouseClickedPos not updated on double-click update (#167) +- Fixed MouseDrawCursor feature submitting an empty trailing command in the draw list. Fixed unmerged draw calls for software mouse cursor. +- Fixed double-clicking on resize grip keeping the grip active if mouse button is kept held. +- Bounding box tests exclude higher bound, so touching items (zero spacing) don't report double hover when cursor is on edge. +- Setting io.LogFilename to NULL disable default LogToFile() (part of #175) +- Tweak stb_textedit integration to be lenient if another piece of code are leaking their STB_TEXTEDIT definitions/symbols. +- Shutdown() freeing a few extra vectors so they don't have to freed by destruction (#169) +- Examples: OpenGL2/3 examples automatically hide the OS mouse cursor if software cursor rendering is used. +- ShowTestWindow: Added Widgets Alignment demo under Layout section +- ShowTestWindow: Added simple dragging widget example. +- ShowTestWindow: Graph has checkbox under the label, also demo using BeginGroup/EndGroup(). +- ShowTestWindow: Using SetNextWindowSize() in examples to encourage its use. +- Fixes, tweaks, comments. + + +----------------------------------------------------------------------- + VERSION 1.36 (2015-03-18) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.36 + +Other Changes: + +- Added ImGui::GetVersion(), IMGUI_VERSION (#127) +- Added BeginGroup()/EndGroup() layout tools (#160). +- Added Indent() / Unindent(). +- Added InputInt2(), InputInt3(), InputInt4() for completeness. +- Added GetItemRectSize(). +- Added VSliderFloat(), VSliderInt(), vertical sliders. +- Added IsRootWindowFocused(), IsRootWindowOrAnyChildFocused(). +- Added io.KeyAlt + support in examples apps, in prevision for future usage of Alt modifier (was missing). +- Added ImGuiStyleVar_GrabMinSize enum value for PushStyleVar(). +- Various fixes related to vertical alignment of text after widget of varied sizes. Allow for multiple blocks of multiple lines text on the same "line". Added demos. +- Explicit size passed to Plot*(), Button() includes the frame padding. +- Style: Changed default Border and Column border colors to be most subtle. +- Renamed style.TreeNodeSpacing to style.IndentSpacing, ImGuiStyleVar_TreeNodeSpacing to ImGuiStyleVar_IndentSpacing. +- Renamed GetWindowIsFocused() to IsWindowFocused(), kept inline redirection with old name (will obsolete). +- Renamed GetItemRectMin()/GetItemRectMax() to GetItemRectMin()/GetItemRectMax(), kept inline redirection with old name (will obsolete). +- Sliders: Fast-path when power=1.0f, also makes code easier to read. +- Sliders: Fixed parsing of decimal precision back from format string when using %%. +- Sliders: Fixed hovering bounding test excluding padding between outer frame and grab (there was a few pixels dead-zone). +- Separator() logs itself as text when passing through text log. +- Optimisation: TreeNodeV() early out if SkipItems is set without formatting. +- Moved various static buffers into state. Increase the formatted string buffer from 1K to 3K. +- Examples: Example console keeps focus on input box at all times. +- Examples: Updated to GLFW 3.1. Moved to examples/libs/ folder. +- Examples: Added 64-bit projects for MSVC. +- Examples: Increase warning level from /W3 to /W4 for MSVC. +- Examples: DirectX9: fixed duplicate creation of vertex buffer. +- Renamed internal type ImGuiAabb to ImRect. Changed mentions of 'box' or 'aabb' to say 'rect'. +- Tweaks, minor fixes and comments. + + +----------------------------------------------------------------------- + VERSION 1.35 (2015-03-09) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.35 + +Other Changes: + +- Examples: refactored all examples application to make it easier to isolate and grab the code you need for OpenGL 2/3, DirectX 9/11, and toward a more sensible format for samples. +- Scrollbar grab have a minimum size (style.GrabSizeMin), always visible even with huge scroll amount. (#150). +- Scrollbar: Clicking inside the grab box doesn't modify scroll value. Subsequent movement always relative. +- Added "###" labelling syntax to pass a label that isn't part of the hashed ID (#107), e.g. ("%d###static_id",rand()). +- Added GetColumnIndex(), GetColumnsCount() (#154) +- Added GetScrollPosY(), GetScrollMaxY(). +- Fixed the Chinese/Japanese glyph ranges; include missing punctuations (#156) +- Fixed Combo() and ListBox() labels not included in declared size, for use with SameLine(), etc. (fix #149, #151). +- Fixed ListBoxHeader() incorrect handling of SkipItems early out when window is collapsed. +- Fixed using IsItemHovered() after EndChild() (#151) +- Fixed malformed UTF-8 decoding errors leading to infinite loops (#158) +- InputText() handles buffer limit correctly for multi-byte UTF-8 characters, won't insert an incomplete UTF-8 character when reaching buffer limit (fix #158) +- Handle double-width space (0x3000) in various places the same as single-width spaces, for Chinese/Japanese users. +- Collapse triangle uses text color (not border color). +- Fixed font fallback glyph width. +- Renamed style.ScrollBarWidth to style.ScrollbarWidth to be consistent with other casing. +- Windows: setup a default handler for ImeSetInputScreenPosFn so the IME dialog (for Japanese/Chinese, etc.) is positioned correctly as you input text. +- Windows: default clipboard handlers for Windows handle UTF-8. +- Examples: Fixed DirectX 9/11 examples applications handling of Microsoft IME. +- Examples: Allow DirectX 9/11 examples applications to resize the window. +- ShowTestWindow: Fixed "undo" button of custom rendering applet. +- ShowTestWindow: Added "Manipulating Window Title" example. + + +----------------------------------------------------------------------- + VERSION 1.34 (2015-03-02) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.34 + +Other Changes: + +- Added Bullet() helper - equivalent to BulletText(""), SameLine(). +- Added SetWindowFocus(), SetWindowFocus(const char*), SetNextWindowFocus() (#146) +- Added SetWindowPos(), SetWindowSize(), SetWindowCollaposed() given a window name. +- Added SetNextTreeNodeOpened() with optional condition flag in replacement of OpenNextNode() and consistent with other API. +- Renamed ImGuiSetCondition_* to ImGuiSetCond_* and ImGuiCondition_FirstUseThisSession to ImGuiCond_Once. +- Added missing definition for ImGui::GetWindowCollapsed(). +- Fixed GetGlyphRangesJapanese() actually missing katakana ranges and a few useful extensions. +- Fixed clicking on a widget in a child window not focusing the parent window (#147). +- Fixed clicking on empty space of child window not setting keyboard focus for the child window (#147). +- Fixed IsItemHovered() behaving differently on Combo() (#145) +- Fixed ColumnOffsets storage not honoring SetStateStorage() (not very useful but consistent). +- Examples: Removed dependency on Glew for OpenGL examples. Removed Glew binaries for Windows. +- Examples: Fixed link warning for OpenGL windows examples. +- Comments, tweaks. + +----------------------------------------------------------------------- + VERSION 1.33b (2015-02-23) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.33b + +Other Changes: + +- Fixed resizing columns. + + +----------------------------------------------------------------------- + VERSION 1.33 (2015-02-22) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.33 + +Other Changes: + +- InputText: having a InputText widget active doesn't steal mouse inputs from clicking on a button before losing focus (relate to #134) +- InputText: cursor/selection/undo stack persist when using other widgets and getting back to same (#134). +- InputText: fix effective buffer size being smaller than necessary by 1 byte (so if you give 3 bytes you can input 2 ascii chars + zero terminator, which is correct). +- Added IsAnyItemActive(). +- Child window explicitly inherit collapse state from parent (so if user keeps submitting items even thought Begin has returned 'false' the child items will be clipped faster). +- BeginChild() return a bool the same way Begin() does. if true you can skip submitting content. +- Removed extraneous (1,1) padding on child window (pointed out in #125) +- Columns: doesn't bail out when SkipItems is set (fix #136) +- Columns: Separator() within column correctly vertical offset all cells (pointed out in #125) +- GetColumnOffset() / SetColumnOffset() handles padding values more correctly so matching columns can be lined up between a parent and a child window (cf. #125) +- Fix ImFont::BuildLookupTable() potential dangling pointer dereference (fix #131) +- Fix hovering of child window extending past their parent not taking account of parent clipping rectangle (fix #137) +- Sliders: value text is clipped inside the frame when resizing sliders to be small. +- ImGuITextFilter::Draw() use regular width call rather than computing its own arbitrary width. +- ImGuiTextFilter: can take a default filter string during construction. + + +----------------------------------------------------------------------- + VERSION 1.32 (2015-02-11) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.32 + +Other Changes: + +- Added Selectable() building block for various list boxes, combo boxes, etc. +- Added ListBox() (#129). +- Added ListBoxHeader(), ListBoxFooter() for customized list traversal and creating multi-selection boxes. +- Fixed title bar text clipping issue (fix #128). +- InputText: added ImGuiInputTextFlags_CallbackCharFilter system for filtering/replacement (#130). Callback now passed an "EventFlag" parameter. +- InputText: Added ImGuiInputTextFlags_CharsUppercase and ImGuiInputTextFlags_CharsNoBlank stock filters. +- PushItemWidth() can take negative value to right-align items. +- Optimisation: Columns offsets cached to avoid unnecessary binary search. +- Optimisation: Optimized CalcTextSize() function by about 25% (they are often the bottleneck when submitting thousands of clipped items). +- Added ImGuiCol_ChildWindowBg, ImGuiStyleVar_ChildWindowRounding for completeness and flexibility. +- Added BeginChild() variant that takes an ImGuiID. +- Tweak default ImGuiCol_HeaderActive color to be less bright. +- Calculate framerate for the user (IO.Framerate), as a purely luxurious feature and to reduce sample code size a little. + + +----------------------------------------------------------------------- + VERSION 1.31 (2015-02-08) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.31 + +Other Changes: + +- Added ImGuiWindowFlags_NoCollapse flag. +- Added a way to replace the internal state pointer so that we can optionally share it between modules (e.g. multiple DLLs). +- Added tint_col parameter to ImageButton(). +- Added CalcListClipping() helper to perform faster/coarse clipping on user side (when manipulating lists with thousands of items). +- Added GetCursorPosX() / GetCursorPosY() shortcuts. +- Renamed GetTextLineSpacing() to GetTextLineHeightWithSpacing(). +- Combo box always appears above other child windows of a same parent. +- Combo/Label: label is properly clipped inside the frame (#23). +- Added cpu-side text clipping functions which are used in some instances to avoid extra draw calls. +- InputText: Filtering private Unicode range 0xE000-0xF8FF. +- Fixed holding button over scrollbar creating a small feedback loop with calculation of contents size. +- Calling SetCursorPos() automatically extends the contents size. +- Track ownership of mouse clicks. Avoid requesting IO.WantCaptureMouse if initial click was outside of ImGui. +- Removed the dependency on realloc(). +- Other fixes, tweaks and comments. + + +----------------------------------------------------------------------- + VERSION 1.30 (2015-02-01) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.30 + +Breaking Changes: + +- Big update! Initialisation had to be changed. You don't need to load PNG data anymore. The new system gives you uncompressed texture data. + - This sequence: + const void* png_data; + unsigned int png_size; + ImGui::GetDefaultFontData(NULL, NULL, &png_data, &png_size); + // + - Became: + unsigned char* pixels; + int width, height; + // io.Fonts->AddFontFromFileTTF("myfontfile.ttf", 24.0f); // Optionally load another font + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + // + io.Fonts->TexID = (your_texture_identifier); + - PixelCenterOffset has been removed and isn't a necessary setting anymore. Offset your projection matrix by 0.5 if you have rendering problems. + +Other Changes: + +- Loading TTF files with stb_truetype.h. +- We still embed a compressed pixel-perfect TTF version of ProggyClean for convenience. +- Runtime font rendering is a little faster than previously. +- You can load multiple fonts with multiple size inside the font atlas. Rendering with multiple fonts are still merged into a single draw call whenever possible. +- The system handles UTF-8 and provide ranges to easily load e.g. characters for Japanese display. +- Added PushFont() / PopFont(). +- Added Image() and ImageButton() to display your own texture data. +- Added callback system in command-list. This can be used if you want to do your own rendering (e.g. render a 3D scene) inside ImGui widgets. +- Added IsItemActive() to tell if last widget is being held / modified (as opposed to just being hovered). Useful for custom dragging behaviors. +- Style: Added FrameRounding setting for a more rounded look (default to 0 for now). +- Window: Fixed using multiple Begin/End pair on the same wnidow. +- Window: Fixed style.WindowMinSize not being honored properly. +- Window: Added SetCursorScreenPos() helper (WindowPos+CursorPos = ScreenPos). +- ColorEdit3: clicking on color square change the edition. The toggle button is hidden by default. +- Clipboard: Fixed logging to clipboard on architectures where va_list are passed by reference to vsnprintf. +- Clipboard: Improve memory reserve policy for Clipboard / ImGuiTextBuffer. +- Tooltip: Always auto-resize. +- Tooltip: Fixed TooltigBg color not being honored properly. +- Tooltip: Allow SetNextWindowPos() to be used on tooltips. +- Added io.DisplayVisibleMin / io.DisplayVisibleMax to ease integration of virtual / scrolling display. +- Added Set/GetVoidPtr in ImGuiStorage. +- Added ColorConvertHSVtoRGB, ColorConvertRGBtoHSV, ColorConvertFloat4ToU32 helpers. +- Added ImColor() inline helper to easily convert colors to packed 4x1 byte or 4x1 float formats. +- Added io.MouseDrawCursor option to draw a mouse cursor for now (on systems that don't have one) +- Examples: Added custom drawing app example for using ImDrawList api. +- Lots of others fixes, tweaks and comments! + + +----------------------------------------------------------------------- + VERSION 1.20 (2015-01-07) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.20 + +- Fixed InputInt() InputFloat() label not declaring their width, breaking usage of SameLine(). +- Fixed hovering of combo boxes that extend beyond the parent window limits. +- Fixed text input of Unicode character in the 128-255 range. +- Fixed clipboard pasting into an InputText box not filtering the characters according to contents semantic. +- Dragging outside area of a widget while it is active doesn't trigger hover on other widgets. +- Activating widget bring parent window to front if not already. +- Checkbox and Radio buttons activate on click-release to be consistent with other widgets and most UI. +- InputText() nows consume input characters immediately so they cannot be reused if ImGui::Update is called again with a call to ImGui::Render(). (fixes #105) +- Examples: Console: added support for History callbacks + some cleanup. +- Various small optimisations. +- Cleanup and other fixes. + + +----------------------------------------------------------------------- + VERSION 1.19 (2014-12-30) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.19 + +- Tightening default style a little. +- Added ImGuiStyleVar_WindowRounding enum for PushStyleVar() API. +- Added SliderInt2(), SliderInt3(), SliderInt4() for consistency. +- Widgets more consistently handle empty labels (starting with ## mark) for their size calculation. +- Fixed crashing with zero sized frame-buffer. +- Fixed ImGui::Combo() not registering its size properly when clipped out of screen. +- Renamed second parameter to Begin() to 'bool* p_opened' to be a little more self-explanatory. Added more comments on the use of Begin(). +- Logging: Added LogText() to pass text straight to the log output (tty/clipboard/file) without rendering it. +- Logging: Added LogFinish() to stop logging at an arbitrary point. +- Logging: Log depth padding relative to start depth. +- Logging: Tree nodes and headers looking better when logged to text. +- Logging: Log outputs \r\n under Windows to play it nicely with \n unaware tools such as Notepad. +- Style editor: added a button to output colors to clipboard/tty. +- OpenGL3 example: fix growing of VBO. +- Cleanup and other minor fixes. + + +----------------------------------------------------------------------- + VERSION 1.18 (2014-12-11) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.18 + +- Added ImGuiWindowFlags_NoScrollWithMouse, disable mouse wheel scrolling on a window. +- Added ImGuiWindowFlags_NoSavedSettings, disable loading/saving window state to .ini file. +- Added SetNextWindowPos(), SetNextWindowSize(), SetNextWindowCollapsed() API along with SetWindowPos(), SetWindowSize(), SetWindowCollapsed(). All functions include an optional second parameter to easily set current value vs session default value vs persistent default value. +- Removed rarely useful SetNewWindowDefaultPos() in favor of new API. +- Fixed hovering of lower-right resize grip when it is above a child window. +- Fixed InputInt() writing to output when it doesn't need to. +- Added IMGUI_INCLUDE_IMGUI_USER_H define to include user file at the bottom of imgui.h without modifying the vanilla distribution. +- ImGuiStorage helper can store float + added helpers to get pointer to stored data. +- Setup Travis CI integration. Builds the OpenGL examples on Linux with GCC and Clang. +- Examples: Added a "Fixed overlay" example in ShowTestWindow(). +- Examples: Re-added OpenGL 3 programmable-pipeline example (along with the existing fixed pipeline example). +- Examples: OpenGL examples can now resize the application window. +- Other minor fixes and comments. + + +----------------------------------------------------------------------- + VERSION 1.17 (2014-12-03) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.17 + +- Added ImGuiWindowFlags_AlwaysAutoResize + example app. +- Calling ImGui::SetWindowSize(0,0) force an autofit without zero-sizing first. +- ImGui::InputText() support for completion/history/custom callback + added fancy completion example in the console demo app. +- Not word-wrapping on apostrophes. +- Increased visibility of check box and radio button with smaller size. +- Smooth mouse scrolling on OSX (uses floating point scroll/wheel input). +- New version of IMGUI_ONCE_UPON_A_FRAME helper macro that works with all compilers. +- Moved IO.Font*** options to inside the IO.Font-> structure.. Added IO.FontGlobalScale setting (in addition to Font->Scale per individual font). +- Fixed more Clang -Weverything warnings. +- Examples: Added DirectX11 example application. +- Examples: Created single .sln solution for all example projects. +- Examples: Fixed DirectX9 example window initially showing an hourglass cursor. +- Examples: Removed Microsoft IME handler in examples, too niche/confusing. Moved equivalent code to imgui.cpp instruction block. + + +----------------------------------------------------------------------- + VERSION 1.16b (2014-11-21) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.16b + +- Fix broken PopStyleVar() crashing. + + +----------------------------------------------------------------------- + VERSION 1.16 (2014-11-21) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.16 + +- General fixing of Columns API to allow filling a cell with multiple widgets before switching to the next column. +- Added documentation INDEX to top of imgui.cpp. +- Fixed unaligned memory access for Emscripten compatibility. +- Various pedantic warning fixes (now testing with Clang). +- Added extra asserts to catch incorrect usage. +- PushStyleColor() / PushStyleVar() can be used outside the scope of a window (namely to change variables that are used within the Begin() call). +- PushTextWrapPos() defaults to 0.0 (right-end of current drawing region). +- Fixed compatibility with std::vector if user decide to #define ImVector. +- MouseWheel input is now normalized. +- Added IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT compile-time option to redefine the vertex layout. +- Style editor: colors listed inside a scrolling region. +- Examples: tweaks and fixes. + + +----------------------------------------------------------------------- + VERSION 1.15 (2014-11-07) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.15 + +- Renamed IsHovered() to IsItemHovered(). +- Added word-wrapping API: TextWrapped(), PushTextWrapPos(), PopTextWrapPos(). +- Added IsItemFocused() to tell if last widget is being focused for keyboard input. +- Added overloads of ImGui::PlotLines() and ImGui::PlotHistogram() taking a function pointer to get values. +- Added SetWindowSize(). +- Added GetContentRegionMax() supporting columns. Some bug fixes with using columns. +- Added PushStyleVar(),PopStyleVar() helpers to modify style from user code. +- Added dummy IMGUI_API definition in front of all entry-points for silly DLL action. +- Allowing BeginChild() allows to specify negative sizes to specify "use remaining minus xx". +- Windows with the NoResize flag can still use auto-fitting. +- Added a simple example console into the demo window. +- Comments and fixes. + + +----------------------------------------------------------------------- + VERSION 1.14 (2014-10-25) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.14 + +- Comments and fixes. +- Added SetKeyboardFocusHere() to set input focus from code. +- Added GetWindowFont(), GetWindowFontSize() for users of the low-level ImDrawList API. +- Added a UserData void *pointer so that the callback functions can access user state "Just in case a project has adverse reactions to adding globals or statics in their own code." +- Renamed IMGUI_INCLUDE_IMGUI_USER_CPP to IMGUI_INCLUDE_IMGUI_USER_INL + + +---------------------------------------------------------------------- + VERSION 1.13 (2014-09-30) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.13 + +- Added support for UTF-8 for international text display and text edition/input (if the font supports it). +- Added sample "M+ font" by Coji Morishita in extra_fonts/ to display Japanese text. +- Added IO.ImeSetInputScreenPosFn callback for positioning OS IME input. +- Added IO.FontFallbackGlyph (default to '?'). +- OpenGL example: added commented code to load custom font from file-system. +- OpenGL example: shared makefile for Linux and MacOSX. + + +---------------------------------------------------------------------- + VERSION 1.12 (2014-09-24) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.12 + +- Added IO.FontBaseScale value for easy scaling of all windows. +- Added IsMouseHoveringWindow(), IsMouseHoveringAnyWindow(), IsPosHoveringAnyWindow() helpers. +- Added va_list variations of all functions taking ellipsis (...) parameters. +- Added section in documentation to explicitly document cases of API breaking changes (e.g. renamed IM_MALLOC below). +- Moved IM_MALLOC / IM_FREE defines. to IO structure members that can be set at runtime (also allowing precompiled ImGui to cover more use cases). +- Fixed OpenGL samples for Retina display. +- Comments and minor fixes. + + +---------------------------------------------------------------------- + VERSION 1.11 (2014-09-10) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.11 + +- Added more comments in the code. +- Made radio buttons render ascii when logged into tty/file/clipboard. +- Added ImGuiInputTextFlags_EnterReturnsTrue flag to InputText() and variants. +- Added #define IMGUI_INCLUDE_IMGUI_USER_CPP to optionally include imgui_user.cpp from the end of imgui.cpp +- Fixed file-descriptor leak if ImBitmapFont::LoadFromFile() calls to fseek/ftell fails. + + +---------------------------------------------------------------------- + VERSION 1.10 (2014-08-31) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.10 + +- User can override memory allocators by #define-ing IM_MALLOC, IM_FREE, IM_REALLOC, +- Added SetCursorPosX(), SetCursorPosY() shortcuts. +- Checkbox() returns true when pressed. +- Added optional external fonts data in extra_fonts/ for reference. +- Removed the need to setup IO.FontHeight when using a custom font. +- Added comments on external fonts usage. + + +---------------------------------------------------------------------- + VERSION 1.09 (2014-08-28) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.09 + +Breaking Changes: + +- The behaviour of PixelCenterOffset changed! You may need to change your value if you had set it to non-default in your code and/or offset your projection matrix by 0.5 pixels. It is likely that the default PixelCenterOffset value of 0.0 is now suitable unless your rendering uses some form of multisampling. + +Other Changes: + +- Various minor render tweaks and fixes. Better support for renderers using multisampling. +- Moved IMGUI_FONT_TEX_UV_FOR_WHITE #define to a variable in the IO structure so font can be changed at runtime. +- Minor other fixes, tweaks, comments. + + +---------------------------------------------------------------------- + VERSION 1.08 (2014-08-25) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.09 + +- Fixed ImGuiTextFilter trimming of leading/trailing blanks. +- Fixed file descriptor leak on LoadSettings() failure. +- Fix type conversion compiler warnings. +- Added basic sizes edition in the style editor. +- Added CalcTextSize(), GetCursorScreenPos() functions. +- Disable client state in OpenGL example after rendering. +- Converted all Tabs to Spaces in sources. + + +---------------------------------------------------------------------- + VERSION 1.07 (2014-08-18) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.07 + +- Added InputFloat4(), SliderFloat4() helpers. +- Added global Alpha in ImGuiStyle structure. When Alpha=0.0, ImGui skips most of logic and all rendering processing. +- Fix clipping of title bar text. +- Fix to allow the user to call NewFrame() multiple times without calling Render(). +- Reduce inner window clipping to take account for the extend of CollapsingHeader() - share same clipping rectangle. +- Fix for child windows with inverted clip rectangles (when scrolled and out of screen, Etc.). +- Minor fixes, tweaks, comments. + + +---------------------------------------------------------------------- + VERSION 1.06 (2014-08-15) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.06 + +- Added BeginTooltip()/EndTooltip() helpers to create tooltips with custom contents. +- Added TextColored() helper. +- Added a 'stride' parameter to PlotLines() / PlotHistogram(). +- Fixed PlotLines() / PlotHistogram() from occasionally wrapping back to the most-left value. +- TreeNode() / CollapsingHeader() ignore clicks when CTRL or SHIFT are held. +- Slowed down mouse wheel scrolling inside combo boxes. +- Minor tweaks. +- Fixed trailing '\n' in text strings reporting extra line height. +- Fixed tooltip position needlessly leaking into .ini file. +- Fixed invalid .ini file data persistently being saved back into the file. + + +---------------------------------------------------------------------- + VERSION 1.05 (2014-08-14) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.05 + +- Added default clipboard functions for Windows + "private" clipboard on other systems (user can still override). +- Fixed logarithmic sliders and HSV conversions on Mac/Linux. +- Tidying up example applications so it looks easier to just grab code. +- Added GetItemBoxMin(), GetItemBoxMax(). +- Tweaks, more consistent #define names. +- Fix for doing multiple Begin()/End() during the same frame. + + +---------------------------------------------------------------------- + VERSION 1.04 (2014-08-13) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.04 + +- Fixes (v1.03 introduced a bug with combo box & scissoring bug OpenGL sample). +- Added ImGui::InputFloat2() and ImGui::SliderFloat2() functions. + + +---------------------------------------------------------------------- + VERSION 1.03 (2014-08-13) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.03 + +- OpenGL example now use the fixed function-pipeline + cleanups, down by 150 lines. +- Added quick & dirty Makefiles for MacOSX and Linux. +- Simplified the DrawList system, ImDrawCmd include the clipping rectangle + some optimisations. +- Fixed warnings for more stringent compilation settings. + + +---------------------------------------------------------------------- + VERSION 1.02 (2014-08-12) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.02 + +- Comments. +- Portability fixes. +- Fixing and tidying up sample applications. +- Checkboxes and radio buttons can be clicked on their labels as well as their icon. +- Checkboxes and radio buttons display in a different color when hovered. + + +---------------------------------------------------------------------- + VERSION 1.01 (2014-08-11) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.01 + +- Added PixelCenterOffset for OpenGL/DirectX compatibility. +- Commented and tweaked samples. +- Added Git ignore list. + + +---------------------------------------------------------------------- + VERSION 1.00 (2014-08-10) +----------------------------------------------------------------------- + +Decorated log and release notes: https://github.com/ocornut/imgui/releases/tag/v1.00 + +- Initial release. + diff --git a/HexaGen.Tests/cpp2c/imgui/docs/CONTRIBUTING.md b/HexaGen.Tests/cpp2c/imgui/docs/CONTRIBUTING.md new file mode 100644 index 0000000..7d6738d --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/docs/CONTRIBUTING.md @@ -0,0 +1,81 @@ +# Contributing Guidelines + +## Index + +- [Getting Started & General Advice](#getting-started--general-advice) +- [Issues vs Discussions](#issues-vs-discussions) +- [How to open an Issue](#how-to-open-an-issue) +- [How to open a Pull Request](#how-to-open-a-pull-request) +- [Copyright / Contributor License Agreement](#copyright--contributor-license-agreement) + +## Getting Started & General Advice + +- Article: [How To Ask Good Questions](https://bit.ly/3nwRnx1). +- Please browse the [Wiki](https://github.com/ocornut/imgui/wiki) to find code snippets, links and other resources (e.g. [Getting Started](https://github.com/ocornut/imgui/wiki/Getting-Started), [Useful extensions](https://github.com/ocornut/imgui/wiki/Useful-Extensions)). +- Please read [Getting Started](https://github.com/ocornut/imgui/wiki/Getting-Started) if your question relates to setting up Dear ImGui. +- Please read [docs/FAQ.md](https://github.com/ocornut/imgui/blob/master/docs/FAQ.md). +- Please read [docs/FONTS.md](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md) if your question relates to fonts or text. +- Please run `ImGui::ShowDemoWindow()` to explore the demo and its sources. +- Please use the search function of your IDE to search for symbols and comments related to your situation. +- Please use the search function of GitHub to look for similar topics (always include 'Closed' issues/pr in your search). +- You may [browse issues by Labels](https://github.com/ocornut/imgui/labels). +- Please use a web search engine to look for similar issues. +- If you get a crash or assert, use a debugger to locate the line triggering it and read the comments around. +- Please don't be a [Help Vampire](https://slash7.com/2006/12/22/vampires/). + +## 'Issues' vs 'Discussions' + +We are happy to use 'Issues' for many type of open-ended questions. We are encouraging 'Issues' becoming an enormous, centralized and cross-referenced database of Dear ImGui contents. + +Only if you: +- Cannot BUILD or LINK examples. +- Cannot BUILD, or LINK, or RUN Dear ImGui in your application or custom engine. +- Cannot LOAD a font. + +Then please [use the Discussions forums](https://github.com/ocornut/imgui/discussions) instead of opening an issue. + +If Dear ImGui is successfully showing in your app and you have used Dear ImGui before, you can open an Issue. Any form of discussions is welcome as a new issue. + +## How to open an issue + +You may use the Issue Tracker to submit bug reports, feature requests or suggestions. You may ask for help or advice as well. But **PLEASE CAREFULLY READ THIS WALL OF TEXT. ISSUES IGNORING THOSE GUIDELINES MAY BE CLOSED. USERS IGNORING THOSE GUIDELINES MIGHT BE BLOCKED.** + +Please do your best to clarify your request. The amount of incomplete or ambiguous requests due to people not following those guidelines is often overwhelming. Issues created without the requested information may be closed prematurely. Exceptionally entitled, impolite, or lazy requests may lead to bans. + +**PLEASE UNDERSTAND THAT OPEN-SOURCE SOFTWARE LIVES OR DIES BY THE AMOUNT OF ENERGY MAINTAINERS CAN SPARE. WE HAVE LOTS OF STUFF TO DO. THIS IS AN ATTENTION ECONOMY AND MANY LAZY OR MINOR ISSUES ARE HOGGING OUR ATTENTION AND DRAINING ENERGY, TAKING US AWAY FROM MORE IMPORTANT WORK.** + +Steps: + +- Article: [How To Ask Good Questions](https://bit.ly/3nwRnx1). +- **PLEASE DO FILL THE REQUESTED NEW ISSUE TEMPLATE.** Including Dear ImGui version number, branch name, platform/renderer back-ends (imgui_impl_XXX files), operating system. +- **Try to be explicit with your GOALS, your EXPECTATIONS and what you have tried**. Be mindful of [The XY Problem](http://xyproblem.info/). What you have in mind or in your code is not obvious to other people. People frequently discuss problems and suggest incorrect solutions without first clarifying their goals. When requesting a new feature, please describe the usage context (how you intend to use it, why you need it, etc.). If you tried something and it failed, show us what you tried. +- **Please INCLUDE CODE. Provide a Minimal, Complete, and Verifiable Example ([MCVE](https://stackoverflow.com/help/mcve)) to demonstrate your problem**. An ideal submission includes a small piece of code that anyone can paste into one of the examples applications (examples/../main.cpp) or demo (imgui_demo.cpp) to understand and reproduce it. **Narrowing your problem to its shortest and purest form is the easiest way to understand it, explain it and fix it**. Please test your shortened code to ensure it exhibits the problem. **Often while creating the MCVE you will solve the problem!** Many questions that are missing a standalone verifiable example are missing the actual cause of their issue in the description, which ends up wasting everyone's time. +- **Attach screenshots (or GIF/video) to clarify the context**. They often convey useful information that is omitted by the description. You can drag pictures/files in the message edit box. Avoid using 3rd party image hosting services, prefer the long-term longevity of GitHub attachments (you can drag pictures into your post). On Windows, you can use [ScreenToGif](https://www.screentogif.com/) to easily capture .gif files. +- **If you are discussing an assert or a crash, please provide a debugger callstack**. Never state "it crashes" without additional information. If you don't know how to use a debugger and retrieve a callstack, learning about it will be useful. +- **Please make sure that your project has asserts enabled.** Calls to IM_ASSERT() are scattered in the code to help catch common issues. When an assert is triggered read the comments around it. By default IM_ASSERT() calls the standard assert() function. To verify that your asserts are enabled, add the line `IM_ASSERT(false);` in your main() function. Your application should display an error message and abort. If your application doesn't report an error, your asserts are disabled. +- Please state if you have made substantial modifications to your copy of Dear ImGui or the back-end. +- If you are not calling Dear ImGui directly from C++, please provide information about your Language and the wrapper/binding you are using. +- Be mindful that messages are being sent to the mailbox of "Watching" users. Try to proofread your messages before sending them. Edits are not seen by those users unless they browse the site. + +**Some unfortunate words of warning** +- If you are involved in cheating schemes (e.g. DLL injection) for competitive online multiplayer games, please don't post here. We won't answer and you will be blocked. It doesn't matter if your question relates to said project. We've had too many of you and need to project our time and sanity. +- Due to frequent abuse of this service from the aforementioned users, if your GitHub account is anonymous and was created five minutes ago please understand that your post will receive more scrutiny and incomplete questions will be harshly dismissed. + +If you have been using Dear ImGui for a while or have been using C/C++ for several years or have demonstrated good behavior here, it is ok to not fulfill every item to the letter. Those are guidelines and experienced users or members of the community will know which information is useful in a given context. + +## How to open a Pull Request + +- **Please understand that by submitting a PR you are also submitting a request for the maintainer to review your code and then take over its maintenance.** PR should be crafted both in the interest of the end-users and also to ease the maintainer into understanding and accepting it. +- Many PRs are useful to demonstrate a need and a possible solution but aren't adequate for merging (causing other issues, not seeing other aspects of the big picture, etc.). In doubt, don't hesitate to push a PR because that is always the first step toward pointing toward a problem, and finding the mergeable solution! Even if a PR stays unmerged for a long time, its presence can be useful for other users and helps toward finding a general solution. +- **When adding a feature,** please describe the usage context (how you intend to use it, why you need it, etc.). Be mindful of [The XY Problem](http://xyproblem.info/). +- **When fixing a warning or compilation problem,** please post the compiler log and specify the compiler version and platform you are using. +- **Attach screenshots (or GIF/video) to clarify the context and demonstrate the feature at a glance.** You can drag pictures/files in the message edit box. Prefer the long-term longevity of GitHub attachments over 3rd party hosting (you can drag pictures into your post). +- **Make sure your code follows the coding style already used in the codebase:** 4 spaces indentations (no tabs), `local_variable`, `FunctionName()`, `MemberName`, `// Text Comment`, `//CodeComment();`, C-style casts, etc.. We don't use modern C++ idioms and tend to use only a minimum of C++11 features. The applications under examples/ are generally less consistent because they sometimes try to mimic the coding style often adopted by a certain ecosystem (e.g. DirectX-related code tend to use the style of their sample). +- **Make sure you create a branch dedicated to the pull request**. In Git, 1 PR is associated to 1 branch. If you keep pushing to the same branch after you submitted the PR, your new commits will appear in the PR (we can still cherry-pick individual commits). + +## Copyright / Contributor License Agreement + +Any code you submit will become part of the repository and be distributed under the [Dear ImGui license](https://github.com/ocornut/imgui/blob/master/LICENSE.txt). By submitting code to the project you agree that the code is your work and that you can give it to the project. + +You also agree by submitting your code that you grant all transferrable rights to the code to the project maintainer, including for example re-licensing the code, modifying the code, and distributing it in source or binary forms. Specifically, this includes a requirement that you assign copyright to the project maintainer. For this reason, do not modify any copyright statements in files in any PRs. + diff --git a/HexaGen.Tests/cpp2c/imgui/docs/EXAMPLES.md b/HexaGen.Tests/cpp2c/imgui/docs/EXAMPLES.md new file mode 100644 index 0000000..edaddb0 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/docs/EXAMPLES.md @@ -0,0 +1,245 @@ +_(You may browse this at https://github.com/ocornut/imgui/blob/master/docs/EXAMPLES.md or view this file with any Markdown viewer)_ + +## Dear ImGui: Examples + +**The [examples/](https://github.com/ocornut/imgui/blob/master/examples) folder example applications (standalone, ready-to-build) for variety of +platforms and graphics APIs.** They all use standard backends from the [backends/](https://github.com/ocornut/imgui/blob/master/backends) folder (see [BACKENDS.md](https://github.com/ocornut/imgui/blob/master/docs/BACKENDS.md)). + +The purpose of Examples is to showcase integration with backends, let you try Dear ImGui, and guide you toward +integrating Dear ImGui in your own application/game/engine. +**Once Dear ImGui is setup and running, run and refer to `ImGui::ShowDemoWindow()` in imgui_demo.cpp for usage of the end-user API.** + +You can find Windows binaries for some of those example applications at: + https://www.dearimgui.com/binaries + + +### Getting Started + +Integration in a typical existing application, should take <20 lines when using standard backends. + +```cpp +At initialization: + call ImGui::CreateContext() + call ImGui_ImplXXXX_Init() for each backend. + +At the beginning of your frame: + call ImGui_ImplXXXX_NewFrame() for each backend. + call ImGui::NewFrame() + +At the end of your frame: + call ImGui::Render() + call ImGui_ImplXXXX_RenderDrawData() for your Renderer backend. + +At shutdown: + call ImGui_ImplXXXX_Shutdown() for each backend. + call ImGui::DestroyContext() +``` + +Example (using [backends/imgui_impl_win32.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_win32.cpp) + [backends/imgui_impl_dx11.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_dx11.cpp)): + +```cpp +// Create a Dear ImGui context, setup some options +ImGui::CreateContext(); +ImGuiIO& io = ImGui::GetIO(); +io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable some options + +// Initialize Platform + Renderer backends (here: using imgui_impl_win32.cpp + imgui_impl_dx11.cpp) +ImGui_ImplWin32_Init(my_hwnd); +ImGui_ImplDX11_Init(my_d3d_device, my_d3d_device_context); + +// Application main loop +while (true) +{ + // Beginning of frame: update Renderer + Platform backend, start Dear ImGui frame + ImGui_ImplDX11_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + // Any application code here + ImGui::Text("Hello, world!"); + + // End of frame: render Dear ImGui + ImGui::Render(); + ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); + + // Swap + g_pSwapChain->Present(1, 0); +} + +// Shutdown +ImGui_ImplDX11_Shutdown(); +ImGui_ImplWin32_Shutdown(); +ImGui::DestroyContext(); +``` + +Please read 'PROGRAMMER GUIDE' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. +Please read the comments and instruction at the top of each file. +Please read FAQ at https://www.dearimgui.com/faq + +If you are using any of the backends provided here, you can add the backends/imgui_impl_xxxx(.cpp,.h) +files to your project and use as-in. Each imgui_impl_xxxx.cpp file comes with its own individual +Changelog, so if you want to update them later it will be easier to catch up with what changed. + + +### Examples Applications + +[example_allegro5/](https://github.com/ocornut/imgui/blob/master/examples/example_allegro5/)
+Allegro 5 example.
+= main.cpp + imgui_impl_allegro5.cpp + +[example_android_opengl3/](https://github.com/ocornut/imgui/blob/master/examples/example_android_opengl3/)
+Android + OpenGL3 (ES) example.
+= main.cpp + imgui_impl_android.cpp + imgui_impl_opengl3.cpp + +[example_apple_metal/](https://github.com/ocornut/imgui/blob/master/examples/example_metal/)
+OSX & iOS + Metal example.
+= main.m + imgui_impl_osx.mm + imgui_impl_metal.mm
+It is based on the "cross-platform" game template provided with Xcode as of Xcode 9. +(NB: imgui_impl_osx.mm is currently not as feature complete as other platforms backends. +You may prefer to use the GLFW Or SDL backends, which will also support Windows and Linux.) + +[example_apple_opengl2/](https://github.com/ocornut/imgui/blob/master/examples/example_apple_opengl2/)
+OSX + OpenGL2 example.
+= main.mm + imgui_impl_osx.mm + imgui_impl_opengl2.cpp
+(NB: imgui_impl_osx.mm is currently not as feature complete as other platforms backends. + You may prefer to use the GLFW Or SDL backends, which will also support Windows and Linux.) + +[example_emscripten_wgpu/](https://github.com/ocornut/imgui/blob/master/examples/example_emscripten_wgpu/)
+Emcripten + GLFW + WebGPU example.
+= main.cpp + imgui_impl_glfw.cpp + imgui_impl_wgpu.cpp +Note that the 'example_glfw_opengl3' and 'example_sdl2_opengl3' examples also supports Emscripten! + +[example_glfw_metal/](https://github.com/ocornut/imgui/blob/master/examples/example_glfw_metal/)
+GLFW (Mac) + Metal example.
+= main.mm + imgui_impl_glfw.cpp + imgui_impl_metal.mm + +[example_glfw_opengl2/](https://github.com/ocornut/imgui/blob/master/examples/example_glfw_opengl2/)
+GLFW + OpenGL2 example (legacy, fixed pipeline).
+= main.cpp + imgui_impl_glfw.cpp + imgui_impl_opengl2.cpp
+**DO NOT USE THIS IF YOUR CODE/ENGINE IS USING MODERN GL or WEBGL (SHADERS, VBO, VAO, etc.)**
+This code is mostly provided as a reference to learn about Dear ImGui integration, because it is shorter. +If your code is using GL3+ context or any semi modern GL calls, using this renderer is likely to +make things more complicated, will require your code to reset many GL attributes to their initial +state, and might confuse your GPU driver. One star, not recommended. + +[example_glfw_opengl3/](https://github.com/ocornut/imgui/blob/master/examples/example_glfw_opengl3/)
+GLFW (Win32, Mac, Linux) + OpenGL3+/ES2/ES3 example (modern, programmable pipeline).
+= main.cpp + imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
+This uses more modern GL calls and custom shaders.
+This support building with Emscripten and targetting WebGL.
+Prefer using that if you are using modern GL or WebGL in your application. + +[example_glfw_vulkan/](https://github.com/ocornut/imgui/blob/master/examples/example_glfw_vulkan/)
+GLFW (Win32, Mac, Linux) + Vulkan example.
+= main.cpp + imgui_impl_glfw.cpp + imgui_impl_vulkan.cpp
+This is quite long and tedious, because: Vulkan. +For this example, the main.cpp file exceptionally use helpers function from imgui_impl_vulkan.h/cpp. + +[example_glut_opengl2/](https://github.com/ocornut/imgui/blob/master/examples/example_glut_opengl2/)
+GLUT (e.g., FreeGLUT on Linux/Windows, GLUT framework on OSX) + OpenGL2 example.
+= main.cpp + imgui_impl_glut.cpp + imgui_impl_opengl2.cpp
+Note that GLUT/FreeGLUT is largely obsolete software, prefer using GLFW or SDL. + +[example_null/](https://github.com/ocornut/imgui/blob/master/examples/example_null/)
+Null example, compile and link imgui, create context, run headless with no inputs and no graphics output.
+= main.cpp
+This is used to quickly test compilation of core imgui files in as many setups as possible. +Because this application doesn't create a window nor a graphic context, there's no graphics output. + +[example_sdl2_directx11/](https://github.com/ocornut/imgui/blob/master/examples/example_sdl2_directx11/)
+SDL2 + DirectX11 example, Windows only.
+= main.cpp + imgui_impl_sdl2.cpp + imgui_impl_dx11.cpp
+This to demonstrate usage of DirectX with SDL2. + +[example_sdl2_metal/](https://github.com/ocornut/imgui/blob/master/examples/example_sdl2_metal/)
+SDL2 + Metal example, Mac only.
+= main.mm + imgui_impl_sdl2.cpp + imgui_impl_metal.mm + +[example_sdl2_opengl2/](https://github.com/ocornut/imgui/blob/master/examples/example_sdl2_opengl2/)
+SDL2 (Win32, Mac, Linux etc.) + OpenGL example (legacy, fixed pipeline).
+= main.cpp + imgui_impl_sdl2.cpp + imgui_impl_opengl2.cpp
+**DO NOT USE OPENGL2 CODE IF YOUR CODE/ENGINE IS USING GL OR WEBGL (SHADERS, VBO, VAO, etc.)**
+This code is mostly provided as a reference to learn about Dear ImGui integration, because it is shorter. +If your code is using GL3+ context or any semi modern GL calls, using this renderer is likely to +make things more complicated, will require your code to reset many GL attributes to their initial +state, and might confuse your GPU driver. One star, not recommended. + +[example_sdl2_opengl3/](https://github.com/ocornut/imgui/blob/master/examples/example_sdl2_opengl3/)
+SDL2 (Win32, Mac, Linux, etc.) + OpenGL3+/ES2/ES3 example.
+= main.cpp + imgui_impl_sdl2.cpp + imgui_impl_opengl3.cpp
+This uses more modern GL calls and custom shaders.
+This support building with Emscripten and targetting WebGL.
+Prefer using that if you are using modern GL or WebGL in your application. + +[example_sdl2_sdlrenderer2/](https://github.com/ocornut/imgui/blob/master/examples/example_sdl2_sdlrenderer2/)
+SDL2 (Win32, Mac, Linux, etc.) + SDL_Renderer for SDL2 (most graphics backends are supported underneath)
+= main.cpp + imgui_impl_sdl2.cpp + imgui_impl_sdlrenderer.cpp
+This requires SDL 2.0.18+ (released November 2021)
+ +[example_sdl2_vulkan/](https://github.com/ocornut/imgui/blob/master/examples/example_sdl2_vulkan/)
+SDL2 (Win32, Mac, Linux, etc.) + Vulkan example.
+= main.cpp + imgui_impl_sdl2.cpp + imgui_impl_vulkan.cpp
+This is quite long and tedious, because: Vulkan.
+For this example, the main.cpp file exceptionally use helpers function from imgui_impl_vulkan.h/cpp. + +[example_win32_directx9/](https://github.com/ocornut/imgui/blob/master/examples/example_win32_directx9/)
+DirectX9 example, Windows only.
+= main.cpp + imgui_impl_win32.cpp + imgui_impl_dx9.cpp + +[example_win32_directx10/](https://github.com/ocornut/imgui/blob/master/examples/example_win32_directx10/)
+DirectX10 example, Windows only.
+= main.cpp + imgui_impl_win32.cpp + imgui_impl_dx10.cpp + +[example_win32_directx11/](https://github.com/ocornut/imgui/blob/master/examples/example_win32_directx11/)
+DirectX11 example, Windows only.
+= main.cpp + imgui_impl_win32.cpp + imgui_impl_dx11.cpp + +[example_win32_directx12/](https://github.com/ocornut/imgui/blob/master/examples/example_win32_directx12/)
+DirectX12 example, Windows only.
+= main.cpp + imgui_impl_win32.cpp + imgui_impl_dx12.cpp
+This is quite long and tedious, because: DirectX12. + +[example_win32_opengl3/](https://github.com/ocornut/imgui/blob/master/examples/example_win32_opengl3/)
+Raw Windows + OpenGL3 + example (modern, programmable pipeline)
+= main.cpp + imgui_impl_win32.cpp + imgui_impl_opengl3.cpp
+ + +### Miscellaneous + +**Building** + +Unfortunately nowadays it is still tedious to create and maintain portable build files using external +libraries (the kind we're using here to create a window and render 3D triangles) without relying on +third party software and build systems. For most examples here we choose to provide: + - Makefiles for Linux/OSX + - Batch files for Visual Studio 2008+ + - A .sln project file for Visual Studio 2012+ + - Xcode project files for the Apple examples +Please let us know if they don't work with your setup! +You can probably just import the imgui_impl_xxx.cpp/.h files into your own codebase or compile those +directly with a command-line compiler. + +If you are interested in using Cmake to build and links examples, see: + https://github.com/ocornut/imgui/pull/1713 and https://github.com/ocornut/imgui/pull/3027 + +**About mouse cursor latency** + +Dear ImGui has no particular extra lag for most behaviors, +e.g. the last value passed to 'io.AddMousePosEvent()' before NewFrame() will result in windows being moved +to the right spot at the time of EndFrame()/Render(). At 60 FPS your experience should be pleasant. + +However, consider that OS mouse cursors are typically drawn through a very specific hardware accelerated +path and will feel smoother than the majority of contents rendered via regular graphics API (including, +but not limited to Dear ImGui windows). Because UI rendering and interaction happens on the same plane +as the mouse, that disconnect may be jarring to particularly sensitive users. +You may experiment with enabling the io.MouseDrawCursor flag to request Dear ImGui to draw a mouse cursor +using the regular graphics API, to help you visualize the difference between a "hardware" cursor and a +regularly rendered software cursor. +However, rendering a mouse cursor at 60 FPS will feel sluggish so you likely won't want to enable that at +all times. It might be beneficial for the user experience to switch to a software rendered cursor _only_ +when an interactive drag is in progress. + +Note that some setup or GPU drivers are likely to be causing extra display lag depending on their settings. +If you feel that dragging windows feels laggy and you are not sure what the cause is: try to build a simple +drawing a flat 2D shape directly under the mouse cursor! + diff --git a/HexaGen.Tests/cpp2c/imgui/docs/FAQ.md b/HexaGen.Tests/cpp2c/imgui/docs/FAQ.md new file mode 100644 index 0000000..be79376 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/docs/FAQ.md @@ -0,0 +1,680 @@ +# FAQ (Frequently Asked Questions) + +You may link to this document using short form: + https://www.dearimgui.com/faq +or its real address: + https://github.com/ocornut/imgui/blob/master/docs/FAQ.md +or view this file with any Markdown viewer. + + +## Index + +| **Q&A: Basics** | +:---------------------------------------------------------- | +| [Where is the documentation?](#q-where-is-the-documentation) | +| [What is this library called?](#q-what-is-this-library-called) | +| [Which version should I get?](#q-which-version-should-i-get) | +| **Q&A: Integration** | +| **[How to get started?](#q-how-to-get-started)** | +| **[How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application?](#q-how-can-i-tell-whether-to-dispatch-mousekeyboard-to-dear-imgui-or-my-application)** | +| [How can I enable keyboard or gamepad controls?](#q-how-can-i-enable-keyboard-or-gamepad-controls) | +| [How can I use this on a machine without mouse, keyboard or screen? (input share, remote display)](#q-how-can-i-use-this-on-a-machine-without-mouse-keyboard-or-screen-input-share-remote-display) | +| [I integrated Dear ImGui in my engine and little squares are showing instead of text...](#q-i-integrated-dear-imgui-in-my-engine-and-little-squares-are-showing-instead-of-text) | +| [I integrated Dear ImGui in my engine and some elements are clipping or disappearing when I move windows around...](#q-i-integrated-dear-imgui-in-my-engine-and-some-elements-are-clipping-or-disappearing-when-i-move-windows-around) | +| [I integrated Dear ImGui in my engine and some elements are displaying outside their expected windows boundaries...](#q-i-integrated-dear-imgui-in-my-engine-and-some-elements-are-displaying-outside-their-expected-windows-boundaries) | +| **Q&A: Usage** | +| **[About the ID Stack system..
Why is my widget not reacting when I click on it?
How can I have widgets with an empty label?
How can I have multiple widgets with the same label?
How can I have multiple windows with the same label?](#q-about-the-id-stack-system)** | +| [How can I display an image? What is ImTextureID, how does it work?](#q-how-can-i-display-an-image-what-is-imtextureid-how-does-it-work)| +| [How can I use maths operators with ImVec2?](#q-how-can-i-use-maths-operators-with-imvec2) | +| [How can I use my own maths types instead of ImVec2/ImVec4?](#q-how-can-i-use-my-own-maths-types-instead-of-imvec2imvec4) | +| [How can I interact with standard C++ types (such as std::string and std::vector)?](#q-how-can-i-interact-with-standard-c-types-such-as-stdstring-and-stdvector) | +| [How can I display custom shapes? (using low-level ImDrawList API)](#q-how-can-i-display-custom-shapes-using-low-level-imdrawlist-api) | +| **Q&A: Fonts, Text** | +| [How should I handle DPI in my application?](#q-how-should-i-handle-dpi-in-my-application) | +| [How can I load a different font than the default?](#q-how-can-i-load-a-different-font-than-the-default) | +| [How can I easily use icons in my application?](#q-how-can-i-easily-use-icons-in-my-application) | +| [How can I load multiple fonts?](#q-how-can-i-load-multiple-fonts) | +| [How can I display and input non-Latin characters such as Chinese, Japanese, Korean, Cyrillic?](#q-how-can-i-display-and-input-non-latin-characters-such-as-chinese-japanese-korean-cyrillic) | +| **Q&A: Concerns** | +| [Who uses Dear ImGui?](#q-who-uses-dear-imgui) | +| [Can you create elaborate/serious tools with Dear ImGui?](#q-can-you-create-elaborateserious-tools-with-dear-imgui) | +| [Can you reskin the look of Dear ImGui?](#q-can-you-reskin-the-look-of-dear-imgui) | +| [Why using C++ (as opposed to C)?](#q-why-using-c-as-opposed-to-c) | +| **Q&A: Community** | +| [How can I help?](#q-how-can-i-help) | + + +# Q&A: Basics + +### Q: Where is the documentation? + +**This library is poorly documented at the moment and expects the user to be acquainted with C/C++.** +- The [Wiki](https://github.com/ocornut/imgui/wiki) is a hub to many resources and links. +- Handy [Getting Started](https://github.com/ocornut/imgui/wiki/Getting-Started) guide to integrate Dear ImGui in an existing application. +- 20+ standalone example applications using e.g. OpenGL/DirectX are provided in the [examples/](https://github.com/ocornut/imgui/blob/master/examples/) folder to explain how to integrate Dear ImGui with your own engine/application. You can run those applications and explore them. +- See demo code in [imgui_demo.cpp](https://github.com/ocornut/imgui/blob/master/imgui_demo.cpp) and particularly the `ImGui::ShowDemoWindow()` function. The demo covers most features of Dear ImGui, so you can read the code and see its output. +- See documentation: [Backends](https://github.com/ocornut/imgui/blob/master/docs/BACKENDS.md), [Examples](https://github.com/ocornut/imgui/blob/master/docs/EXAMPLES.md), [Fonts](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md). +- See documentation and comments at the top of [imgui.cpp](https://github.com/ocornut/imgui/blob/master/imgui.cpp) + general API comments in [imgui.h](https://github.com/ocornut/imgui/blob/master/imgui.h). +- The [Glossary](https://github.com/ocornut/imgui/wiki/Glossary) page may be useful. +- The [Issues](https://github.com/ocornut/imgui/issues) and [Discussions](https://github.com/ocornut/imgui/discussions) sections can be searched for past questions and issues. +- Your programming IDE is your friend, find the type or function declaration to find comments associated with it. +- The `ImGui::ShowMetricsWindow()` function exposes lots of internal information and tools. Although it is primarily designed as a debugging tool, having access to that information tends to help understands concepts. + +##### [Return to Index](#index) + +--- + +### Q. What is this library called? + +**This library is called Dear ImGui**. Please refer to it as Dear ImGui (not ImGui, not IMGUI). + +(The library misleadingly started its life in 2014 as "ImGui" due to the fact that I didn't give it a proper name when I released 1.0, and had no particular expectation that it would take off. However, the term IMGUI (immediate-mode graphical user interface) was coined before and is being used in variety of other situations e.g. Unity uses it own implementation of the IMGUI paradigm. To reduce the ambiguity without affecting existing code bases, I have decided in December 2015 a fully qualified name "Dear ImGui" for this library. + +##### [Return to Index](#index) + +--- + +### Q: Which version should I get? +I occasionally tag [Releases](https://github.com/ocornut/imgui/releases) but it is generally safe and recommended to sync to master/latest. The library is fairly stable and regressions tend to be fixed fast when reported. + +You may use the [docking](https://github.com/ocornut/imgui/tree/docking) branch which includes: +- [Docking features](https://github.com/ocornut/imgui/issues/2109) +- [Multi-viewport features](https://github.com/ocornut/imgui/issues/1542) + +Many projects are using this branch and it is kept in sync with master regularly. + +##### [Return to Index](#index) + +---- + +# Q&A: Integration + +### Q: How to get started? + +Read [Getting Started](https://github.com/ocornut/imgui/wiki/Getting-Started).
+Read [EXAMPLES.md](https://github.com/ocornut/imgui/blob/master/docs/EXAMPLES.md).
+Read [BACKENDS.md](https://github.com/ocornut/imgui/blob/master/docs/BACKENDS.md).
+Read `PROGRAMMER GUIDE` section of [imgui.cpp](https://github.com/ocornut/imgui/blob/master/imgui.cpp).
+The [Wiki](https://github.com/ocornut/imgui/wiki) is a hub to many resources and links. + +For first-time users having issues compiling/linking/running or issues loading fonts, please use [GitHub Discussions](https://github.com/ocornut/imgui/discussions). + +##### [Return to Index](#index) + +--- + +### Q: How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application? + +You can read the `io.WantCaptureMouse`, `io.WantCaptureKeyboard` and `io.WantTextInput` flags from the ImGuiIO structure. +- When `io.WantCaptureMouse` is set, you need to discard/hide the mouse inputs from your underlying application. +- When `io.WantCaptureKeyboard` is set, you need to discard/hide the keyboard inputs from your underlying application. +- When `io.WantTextInput` is set, you can notify your OS/engine to popup an on-screen keyboard, if available (e.g. on a mobile phone, or console OS). + +Important: you should always pass your mouse/keyboard inputs to Dear ImGui, regardless of the value `io.WantCaptureMouse`/`io.WantCaptureKeyboard`. This is because e.g. we need to detect that you clicked in the void to unfocus its own windows, and other reasons. + +```cpp +void MyLowLevelMouseButtonHandler(int button, bool down) +{ + // (1) ALWAYS forward mouse data to ImGui! This is automatic with default backends. With your own backend: + ImGuiIO& io = ImGui::GetIO(); + io.AddMouseButtonEvent(button, down); + + // (2) ONLY forward mouse data to your underlying app/game. + if (!io.WantCaptureMouse) + my_game->HandleMouseData(...); +} +``` + + +**Note:** The `io.WantCaptureMouse` is more correct that any manual attempt to "check if the mouse is hovering a window" (don't do that!). It handles mouse dragging correctly (both dragging that started over your application or over a Dear ImGui window) and handle e.g. popup and modal windows blocking inputs. + +**Note:** Those flags are updated by `ImGui::NewFrame()`. However it is generally more correct and easier that you poll flags from the previous frame, then submit your inputs, then call `NewFrame()`. If you attempt to do the opposite (which is generally harder) you are likely going to submit your inputs after `NewFrame()`, and therefore too late. + +**Note:** If you are using a touch device, you may find use for an early call to `UpdateHoveredWindowAndCaptureFlags()` to correctly dispatch your initial touch. We will work on better out-of-the-box touch support in the future. + +**Note:** Text input widget releases focus on the "KeyDown" event of the Return key, so the subsequent "KeyUp" event that your application receive will typically have `io.WantCaptureKeyboard == false`. Depending on your application logic it may or not be inconvenient to receive that KeyUp event. You might want to track which key-downs were targeted for Dear ImGui, e.g. with an array of bool, and filter out the corresponding key-ups.) + +##### [Return to Index](#index) + +--- + +### Q: How can I enable keyboard or gamepad controls? +- The gamepad/keyboard navigation is fairly functional and keeps being improved. The initial focus was to support game controllers, but keyboard is becoming increasingly and decently usable. Gamepad support is particularly useful to use Dear ImGui on a game console (e.g. PS4, Switch, XB1) without a mouse connected! +- Keyboard: set `io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard` to enable. +- Gamepad: set `io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad` to enable (with a supporting backend). +- See [Control Sheets for Gamepads](https://www.dearimgui.com/controls_sheets) (reference PNG/PSD for PS4, XB1, Switch gamepads). +- See `USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS` section of [imgui.cpp](https://github.com/ocornut/imgui/blob/master/imgui.cpp) for more details. + +##### [Return to Index](#index) + +--- + +### Q: How can I use this on a machine without mouse, keyboard or screen? (input share, remote display) +- You can share your computer mouse seamlessly with your console/tablet/phone using solutions such as [Synergy](https://symless.com/synergy) +This is the preferred solution for developer productivity. +In particular, the [micro-synergy-client repository](https://github.com/symless/micro-synergy-client) has simple +and portable source code (uSynergy.c/.h) for a small embeddable client that you can use on any platform to connect +to your host computer, based on the Synergy 1.x protocol. Make sure you download the Synergy 1 server on your computer. +Console SDK also sometimes provide equivalent tooling or wrapper for Synergy-like protocols. +- Game console users: consider emulating a mouse cursor with DualShock4 touch pad or a spare analog stick as a mouse-emulation fallback. +- You may also use a third party solution such as [netImgui](https://github.com/sammyfreg/netImgui), [Remote ImGui](https://github.com/JordiRos/remoteimgui) or [imgui-ws](https://github.com/ggerganov/imgui-ws) which sends the vertices to render over the local network, allowing you to use Dear ImGui even on a screen-less machine. See [Wiki](https://github.com/ocornut/imgui/wiki) index for most details. +- For touch inputs, you can increase the hit box of widgets (via the `style.TouchPadding` setting) to accommodate for the lack of precision of touch inputs, but it is recommended you use a mouse or gamepad to allow optimizing for screen real-estate and precision. + +##### [Return to Index](#index) + +--- + +### Q: I integrated Dear ImGui in my engine and little squares are showing instead of text... +Your renderer backend is not using the font texture correctly or it hasn't been uploaded to the GPU. +- If this happens using the standard backends: A) have you modified the font atlas after `ImGui_ImplXXX_NewFrame()`? B) maybe the texture failed to upload, which **can if your texture atlas is too big**. Also see [docs/FONTS.md](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md). +- If this happens with a custom backend: make sure you have uploaded the font texture to the GPU, that all shaders are rendering states are setup properly (e.g. texture is bound). Compare your code to existing backends and use a graphics debugger such as [RenderDoc](https://renderdoc.org) to debug your rendering states. + +##### [Return to Index](#index) + +--- + +### Q: I integrated Dear ImGui in my engine and some elements are clipping or disappearing when I move windows around... +### Q: I integrated Dear ImGui in my engine and some elements are displaying outside their expected windows boundaries... +You are probably mishandling the clipping rectangles in your render function. +Each draw command needs the triangle rendered using the clipping rectangle provided in the ImDrawCmd structure (`ImDrawCmd->CllipRect`). +Rectangles provided by Dear ImGui are defined as +`(x1=left,y1=top,x2=right,y2=bottom)` +and **NOT** as +`(x1,y1,width,height)`. +Refer to rendering backends in the [backends/](https://github.com/ocornut/imgui/tree/master/backends) folder for references of how to handle the `ClipRect` field. +For example, the [DirectX11 backend](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_dx11.cpp) does this: +```cpp +// Project scissor/clipping rectangles into framebuffer space +ImVec2 clip_off = draw_data->DisplayPos; +ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); +ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); +if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + +// Apply scissor/clipping rectangle +const D3D11_RECT r = { (LONG)clip_min.x, (LONG)clip_min.y, (LONG)clip_max.x, (LONG)clip_max.y }; +ctx->RSSetScissorRects(1, &r); +``` + +##### [Return to Index](#index) + +--- + +# Q&A: Usage + +### Q: About the ID Stack system... +### Q: Why is my widget not reacting when I click on it? +### Q: How can I have widgets with an empty label? +### Q: How can I have multiple widgets with the same label? +### Q: How can I have multiple windows with the same label? + +A primer on labels and the ID Stack... + +Dear ImGui internally needs to uniquely identify UI elements. +Elements that are typically not clickable (such as calls to the Text functions) don't need an ID. +Interactive widgets (such as calls to Button buttons) need a unique ID. + +**Unique IDs are used internally to track active widgets and occasionally associate state to widgets.
+Unique IDs are implicitly built from the hash of multiple elements that identify the "path" to the UI element.** + +Since Dear ImGui 1.85, you can use `Demo>Tools>ID Stack Tool` or call `ImGui::ShowIDStackToolWindow()`. The tool display intermediate values leading to the creation of a unique ID, making things easier to debug and understand. + +![Stack tool](https://user-images.githubusercontent.com/8225057/136235657-a0ea5665-dcd1-423f-9be6-dc3f8ced8f12.png) + +- Unique ID are often derived from a string label and at minimum scoped within their host window: +```cpp +Begin("MyWindow"); +Button("OK"); // Label = "OK", ID = hash of ("MyWindow", "OK") +Button("Cancel"); // Label = "Cancel", ID = hash of ("MyWindow", "Cancel") +End(); +``` +- Other elements such as tree nodes, etc. also pushes to the ID stack: +```cpp +Begin("MyWindow"); +if (TreeNode("MyTreeNode")) +{ + Button("OK"); // Label = "OK", ID = hash of ("MyWindow", "MyTreeNode", "OK") + TreePop(); +} +End(); +``` +- Two items labeled "OK" in different windows or different tree locations won't collide: +```cpp +Begin("MyFirstWindow"); +Button("OK"); // Label = "OK", ID = hash of ("MyFirstWindow", "OK") +End(); +Begin("MyOtherWindow"); +Button("OK"); // Label = "OK", ID = hash of ("MyOtherWindow", "OK") +End(); +``` + +- If you have a same ID twice in the same location, you'll have a conflict: +```cpp +Begin("MyWindow"); +Button("OK"); +Button("OK"); // ERROR: ID collision with the first button! Interacting with either button will trigger the first one. +Button(""); // ERROR: ID collision with Begin("MyWindow")! +End(); +``` +Fear not! This is easy to solve and there are many ways to solve it! + +- Solving ID conflict in a simple/local context: +When passing a label you can optionally specify extra ID information within the string itself. +Use "##" to pass a complement to the ID that won't be visible to the end-user. +This helps solve the simple collision cases when you know e.g. at compilation time which items +are going to be created: +```cpp +Begin("MyWindow"); +Button("Play"); // Label = "Play", ID = hash of ("MyWindow", "Play") +Button("Play##foo1"); // Label = "Play", ID = hash of ("MyWindow", "Play##foo1") // Different from other buttons +Button("Play##foo2"); // Label = "Play", ID = hash of ("MyWindow", "Play##foo2") // Different from other buttons +Button("##foo"); // Label = "", ID = hash of ("MyWindow", "##foo") // Different from window +End(); +``` +- If you want to completely hide the label, but still need an ID: +```cpp +Checkbox("##On", &b); // Label = "", ID = hash of (..., "##On") // No visible label, just a checkbox! +``` +- Occasionally/rarely you might want to change a label while preserving a constant ID. This allows +you to animate labels. For example, you may want to include varying information in a window title bar, +but windows are uniquely identified by their ID. Use "###" to pass a label that isn't part of ID: +```cpp +Button("Hello###ID"); // Label = "Hello", ID = hash of (..., "###ID") +Button("World###ID"); // Label = "World", ID = hash of (..., "###ID") // Same ID, different label + +sprintf(buf, "My game (%f FPS)###MyGame", fps); +Begin(buf); // Variable title, ID = hash of "MyGame" +``` +- Solving ID conflict in a more general manner: +Use `PushID()` / `PopID()` to create scopes and manipulate the ID stack, as to avoid ID conflicts +within the same window. This is the most convenient way of distinguishing ID when iterating and +creating many UI elements programmatically. +You can push a pointer, a string, or an integer value into the ID stack. +Remember that IDs are formed from the concatenation of _everything_ pushed into the ID stack. +At each level of the stack, we store the seed used for items at this level of the ID stack. +```cpp +Begin("Window"); +for (int i = 0; i < 100; i++) +{ + PushID(i); // Push i to the id tack + Button("Click"); // Label = "Click", ID = hash of ("Window", i, "Click") + PopID(); +} +for (int i = 0; i < 100; i++) +{ + MyObject* obj = Objects[i]; + PushID(obj); + Button("Click"); // Label = "Click", ID = hash of ("Window", obj pointer, "Click") + PopID(); +} +for (int i = 0; i < 100; i++) +{ + MyObject* obj = Objects[i]; + PushID(obj->Name); + Button("Click"); // Label = "Click", ID = hash of ("Window", obj->Name, "Click") + PopID(); +} +End(); +``` +- You can stack multiple prefixes into the ID stack: +```cpp +Button("Click"); // Label = "Click", ID = hash of (..., "Click") +PushID("node"); + Button("Click"); // Label = "Click", ID = hash of (..., "node", "Click") + PushID(my_ptr); + Button("Click"); // Label = "Click", ID = hash of (..., "node", my_ptr, "Click") + PopID(); +PopID(); +``` +- Tree nodes implicitly create a scope for you by calling `PushID()`: +```cpp +Button("Click"); // Label = "Click", ID = hash of (..., "Click") +if (TreeNode("node")) // <-- this function call will do a PushID() for you (unless instructed not to, with a special flag) +{ + Button("Click"); // Label = "Click", ID = hash of (..., "node", "Click") + TreePop(); +} +``` + +When working with trees, IDs are used to preserve the open/close state of each tree node. +Depending on your use cases you may want to use strings, indices, or pointers as ID. +- e.g. when following a single pointer that may change over time, using a static string as ID +will preserve your node open/closed state when the targeted object change. +- e.g. when displaying a list of objects, using indices or pointers as ID will preserve the +node open/closed state differently. See what makes more sense in your situation! + +##### [Return to Index](#index) + +--- + +### Q: How can I display an image? What is ImTextureID, how does it work? + +Short explanation: +- Refer to [Image Loading and Displaying Examples](https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples) on the [Wiki](https://github.com/ocornut/imgui/wiki). +- You may use functions such as `ImGui::Image()`, `ImGui::ImageButton()` or lower-level `ImDrawList::AddImage()` to emit draw calls that will use your own textures. +- Actual textures are identified in a way that is up to the user/engine. Those identifiers are stored and passed as ImTextureID (void*) value. +- Loading image files from the disk and turning them into a texture is not within the scope of Dear ImGui (for a good reason). + +**Please read documentations or tutorials on your graphics API to understand how to display textures on the screen before moving onward.** + +Long explanation: +- Dear ImGui's job is to create "meshes", defined in a renderer-agnostic format made of draw commands and vertices. At the end of the frame, those meshes (ImDrawList) will be displayed by your rendering function. They are made up of textured polygons and the code to render them is generally fairly short (a few dozen lines). In the examples/ folder, we provide functions for popular graphics APIs (OpenGL, DirectX, etc.). +- Each rendering function decides on a data type to represent "textures". The concept of what is a "texture" is entirely tied to your underlying engine/graphics API. + We carry the information to identify a "texture" in the ImTextureID type. +ImTextureID is nothing more than a void*, aka 4/8 bytes worth of data: just enough to store one pointer or integer of your choice. +Dear ImGui doesn't know or understand what you are storing in ImTextureID, it merely passes ImTextureID values until they reach your rendering function. +- In the [examples/](https://github.com/ocornut/imgui/tree/master/examples) backends, for each graphics API we decided on a type that is likely to be a good representation for specifying an image from the end-user perspective. This is what the _examples_ rendering functions are using: +```cpp +OpenGL: +- ImTextureID = GLuint +- See ImGui_ImplOpenGL3_RenderDrawData() function in imgui_impl_opengl3.cpp +``` +```cpp +DirectX9: +- ImTextureID = LPDIRECT3DTEXTURE9 +- See ImGui_ImplDX9_RenderDrawData() function in imgui_impl_dx9.cpp +``` +```cpp +DirectX11: +- ImTextureID = ID3D11ShaderResourceView* +- See ImGui_ImplDX11_RenderDrawData() function in imgui_impl_dx11.cpp +``` +```cpp +DirectX12: +- ImTextureID = D3D12_GPU_DESCRIPTOR_HANDLE +- See ImGui_ImplDX12_RenderDrawData() function in imgui_impl_dx12.cpp +``` +For example, in the OpenGL example backend we store raw OpenGL texture identifier (GLuint) inside ImTextureID. +Whereas in the DirectX11 example backend we store a pointer to ID3D11ShaderResourceView inside ImTextureID, which is a higher-level structure tying together both the texture and information about its format and how to read it. + +- If you have a custom engine built over e.g. OpenGL, instead of passing GLuint around you may decide to use a high-level data type to carry information about the texture as well as how to display it (shaders, etc.). The decision of what to use as ImTextureID can always be made better by knowing how your codebase is designed. If your engine has high-level data types for "textures" and "material" then you may want to use them. +If you are starting with OpenGL or DirectX or Vulkan and haven't built much of a rendering engine over them, keeping the default ImTextureID representation suggested by the example backends is probably the best choice. +(Advanced users may also decide to keep a low-level type in ImTextureID, use ImDrawList callback and pass information to their renderer) + +User code may do: +```cpp +// Cast our texture type to ImTextureID / void* +MyTexture* texture = g_CoffeeTableTexture; +ImGui::Image((void*)texture, ImVec2(texture->Width, texture->Height)); +``` +The renderer function called after ImGui::Render() will receive that same value that the user code passed: +```cpp +// Cast ImTextureID / void* stored in the draw command as our texture type +MyTexture* texture = (MyTexture*)pcmd->GetTexID(); +MyEngineBindTexture2D(texture); +``` +Once you understand this design, you will understand that loading image files and turning them into displayable textures is not within the scope of Dear ImGui. +This is by design and is a good thing because it means your code has full control over your data types and how you display them. +If you want to display an image file (e.g. PNG file) on the screen, please refer to documentation and tutorials for the graphics API you are using. + +Refer to [Image Loading and Displaying Examples](https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples) on the [Wiki](https://github.com/ocornut/imgui/wiki) to find simplified examples for loading textures with OpenGL, DirectX9 and DirectX11. + +C/C++ tip: a void* is pointer-sized storage. You may safely store any pointer or integer into it by casting your value to ImTextureID / void*, and vice-versa. +Because both end-points (user code and rendering function) are under your control, you know exactly what is stored inside the ImTextureID / void*. +Here are some examples: +```cpp +GLuint my_tex = XXX; +void* my_void_ptr; +my_void_ptr = (void*)(intptr_t)my_tex; // cast a GLuint into a void* (we don't take its address! we literally store the value inside the pointer) +my_tex = (GLuint)(intptr_t)my_void_ptr; // cast a void* into a GLuint + +ID3D11ShaderResourceView* my_dx11_srv = XXX; +void* my_void_ptr; +my_void_ptr = (void*)my_dx11_srv; // cast a ID3D11ShaderResourceView* into an opaque void* +my_dx11_srv = (ID3D11ShaderResourceView*)my_void_ptr; // cast a void* into a ID3D11ShaderResourceView* +``` +Finally, you may call `ImGui::ShowMetricsWindow()` to explore/visualize/understand how the ImDrawList are generated. + +##### [Return to Index](#index) + +--- + +### Q: How can I use maths operators with ImVec2? + +We do not export maths operators by default in imgui.h in order to not conflict with the use of your own maths types and maths operators. As a convenience, you may use `#defne IMGUI_DEFINE_MATH_OPERATORS` + `#include "imgui.h"` to access our basic maths operators. + +##### [Return to Index](#index) + +--- + +### Q: How can I use my own maths types instead of ImVec2/ImVec4? + +You can setup your [imconfig.h](https://github.com/ocornut/imgui/blob/master/imconfig.h) file with `IM_VEC2_CLASS_EXTRA`/`IM_VEC4_CLASS_EXTRA` macros to add implicit type conversions to our own maths types. +This way you will be able to use your own types everywhere, e.g. passing `MyVector2` or `glm::vec2` to ImGui functions instead of `ImVec2`. + +##### [Return to Index](#index) + +--- + +### Q: How can I interact with standard C++ types (such as std::string and std::vector)? +- Being highly portable (backends/bindings for several languages, frameworks, programming styles, obscure or older platforms/compilers), and aiming for compatibility & performance suitable for every modern real-time game engine, Dear ImGui does not use any of std C++ types. We use raw types (e.g. char* instead of std::string) because they adapt to more use cases. +- To use ImGui::InputText() with a std::string or any resizable string class, see [misc/cpp/imgui_stdlib.h](https://github.com/ocornut/imgui/blob/master/misc/cpp/imgui_stdlib.h). +- To use combo boxes and list boxes with `std::vector` or any other data structure: the `BeginCombo()/EndCombo()` API +lets you iterate and submit items yourself, so does the `ListBoxHeader()/ListBoxFooter()` API. +Prefer using them over the old and awkward `Combo()/ListBox()` api. +- Generally for most high-level types you should be able to access the underlying data type. +You may write your own one-liner wrappers to facilitate user code (tip: add new functions in ImGui:: namespace from your code). +- Dear ImGui applications often need to make intensive use of strings. It is expected that many of the strings you will pass +to the API are raw literals (free in C/C++) or allocated in a manner that won't incur a large cost on your application. +Please bear in mind that using `std::string` on applications with a large amount of UI may incur unsatisfactory performances. +Modern implementations of `std::string` often include small-string optimization (which is often a local buffer) but those +are not configurable and not the same across implementations. +- If you are finding your UI traversal cost to be too large, make sure your string usage is not leading to an excessive amount +of heap allocations. Consider using literals, statically sized buffers, and your own helper functions. A common pattern +is that you will need to build lots of strings on the fly, and their maximum length can be easily scoped ahead. +One possible implementation of a helper to facilitate printf-style building of strings: https://github.com/ocornut/Str +This is a small helper where you can instance strings with configurable local buffers length. Many game engines will +provide similar or better string helpers. + +##### [Return to Index](#index) + +--- + +### Q: How can I display custom shapes? (using low-level ImDrawList API) + +- You can use the low-level `ImDrawList` api to render shapes within a window. +```cpp +ImGui::Begin("My shapes"); + +ImDrawList* draw_list = ImGui::GetWindowDrawList(); + +// Get the current ImGui cursor position +ImVec2 p = ImGui::GetCursorScreenPos(); + +// Draw a red circle +draw_list->AddCircleFilled(ImVec2(p.x + 50, p.y + 50), 30.0f, IM_COL32(255, 0, 0, 255)); + +// Draw a 3 pixel thick yellow line +draw_list->AddLine(ImVec2(p.x, p.y), ImVec2(p.x + 100.0f, p.y + 100.0f), IM_COL32(255, 255, 0, 255), 3.0f); + +// Advance the ImGui cursor to claim space in the window (otherwise the window will appear small and needs to be resized) +ImGui::Dummy(ImVec2(200, 200)); + +ImGui::End(); +``` +![ImDrawList usage](https://raw.githubusercontent.com/wiki/ocornut/imgui/tutorials/CustomRendering01.png) + +- Refer to "Demo > Examples > Custom Rendering" in the demo window and read the code of `ShowExampleAppCustomRendering()` in `imgui_demo.cpp` from more examples. +- To generate colors: you can use the macro `IM_COL32(255,255,255,255)` to generate them at compile time, or use `ImGui::GetColorU32(IM_COL32(255,255,255,255))` or `ImGui::GetColorU32(ImVec4(1.0f,1.0f,1.0f,1.0f))` to generate a color that is multiplied by the current value of `style.Alpha`. +- Math operators: if you have setup `IM_VEC2_CLASS_EXTRA` in `imconfig.h` to bind your own math types, you can use your own math types and their natural operators instead of ImVec2. ImVec2 by default doesn't export any math operators in the public API. You may use `#define IMGUI_DEFINE_MATH_OPERATORS` `#include "imgui.h"` to use our math operators, but instead prefer using your own math library and set it up in `imconfig.h`. +- You can use `ImGui::GetBackgroundDrawList()` or `ImGui::GetForegroundDrawList()` to access draw lists which will be displayed behind and over every other Dear ImGui window (one bg/fg drawlist per viewport). This is very convenient if you need to quickly display something on the screen that is not associated with a Dear ImGui window. +- You can also create your own empty window and draw inside it. Call Begin() with the NoBackground | NoDecoration | NoSavedSettings | NoInputs flags (The `ImGuiWindowFlags_NoDecoration` flag itself is a shortcut for NoTitleBar | NoResize | NoScrollbar | NoCollapse). Then you can retrieve the ImDrawList* via `GetWindowDrawList()` and draw to it in any way you like. +- You can create your own ImDrawList instance. You'll need to initialize them with `ImGui::GetDrawListSharedData()`, or create your own instancing `ImDrawListSharedData`, and then call your renderer function with your own ImDrawList or ImDrawData data. +- Looking for fun? The [ImDrawList coding party 2020](https://github.com/ocornut/imgui/issues/3606) thread is full of "don't do this at home" extreme uses of the ImDrawList API. + +##### [Return to Index](#index) + +--- + +# Q&A: Fonts, Text + +### Q: How should I handle DPI in my application? + +The short answer is: obtain the desired DPI scale, load your fonts resized with that scale (always round down fonts size to the nearest integer), and scale your Style structure accordingly using `style.ScaleAllSizes()`. + +Your application may want to detect DPI change and reload the fonts and reset style between frames. + +Your ui code should avoid using hardcoded constants for size and positioning. Prefer to express values as multiple of reference values such as `ImGui::GetFontSize()` or `ImGui::GetFrameHeight()`. So e.g. instead of seeing a hardcoded height of 500 for a given item/window, you may want to use `30*ImGui::GetFontSize()` instead. + +Down the line Dear ImGui will provide a variety of standardized reference values to facilitate using this. + +Applications in the `examples/` folder are not DPI aware partly because they are unable to load a custom font from the file-system (may change that in the future). + +The reason DPI is not auto-magically solved in stock examples is that we don't yet have a satisfying solution for the "multi-dpi" problem (using the `docking` branch: when multiple viewport windows are over multiple monitors using different DPI scales). The current way to handle this on the application side is: +- Create and maintain one font atlas per active DPI scale (e.g. by iterating `platform_io.Monitors[]` before `NewFrame()`). +- Hook `platform_io.OnChangedViewport()` to detect when a `Begin()` call makes a Dear ImGui window change monitor (and therefore DPI). +- In the hook: swap atlas, swap style with correctly sized one, and remap the current font from one atlas to the other (you may need to maintain a remapping table of your fonts at varying DPI scales). + +This approach is relatively easy and functional but comes with two issues: +- It's not possibly to reliably size or position a window ahead of `Begin()` without knowing on which monitor it'll land. +- Style override may be lost during the `Begin()` call crossing monitor boundaries. You may need to do some custom scaling mumbo-jumbo if you want your `OnChangedViewport()` handler to preserve style overrides. + +Please note that if you are not using multi-viewports with multi-monitors using different DPI scales, you can ignore that and use the simpler technique recommended at the top. + +On Windows, in addition to scaling the font size (make sure to round to an integer) and using `style.ScaleAllSizes()`, you will need to inform Windows that your application is DPI aware. If this is not done, Windows will scale the application window and the UI text will be blurry. Potential solutions to indicate DPI awareness on Windows are: + +- For SDL: the flag `SDL_WINDOW_ALLOW_HIGHDPI` needs to be passed to `SDL_CreateWindow()``. +- For GLFW: this is done automatically. +- For other Windows projects with other backends, or wrapper projects: + - We provide a `ImGui_ImplWin32_EnableDpiAwareness()` helper method in the Win32 backend. + - Use an [application manifest file](https://learn.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process) to set the `` property. + +### Q: How can I load a different font than the default? +Use the font atlas to load the TTF/OTF file you want: + +```cpp +ImGuiIO& io = ImGui::GetIO(); +io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels); +io.Fonts->GetTexDataAsRGBA32() or GetTexDataAsAlpha8() +``` + +Default is ProggyClean.ttf, monospace, rendered at size 13, embedded in dear imgui's source code. + +(Tip: monospace fonts are convenient because they allow to facilitate horizontal alignment directly at the string level.) + +(Read the [docs/FONTS.md](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md) file for more details about font loading.) + +New programmers: remember that in C/C++ and most programming languages if you want to use a +backslash \ within a string literal, you need to write it double backslash "\\": + +```cpp +io.Fonts->AddFontFromFileTTF("MyFolder\MyFont.ttf", size); // WRONG (you are escaping the M here!) +io.Fonts->AddFontFromFileTTF("MyFolder\\MyFont.ttf", size); // CORRECT (Windows only) +io.Fonts->AddFontFromFileTTF("MyFolder/MyFont.ttf", size); // ALSO CORRECT +``` + +##### [Return to Index](#index) + +--- + +### Q: How can I easily use icons in my application? +The most convenient and practical way is to merge an icon font such as FontAwesome inside your +main font. Then you can refer to icons within your strings. +Read the [docs/FONTS.md](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md) file for more details about icons font loading. + +##### [Return to Index](#index) + +--- + +### Q: How can I load multiple fonts? + +Use the font atlas to pack them into a single texture. Read [docs/FONTS.md](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md) for more details. + +##### [Return to Index](#index) + +--- + +### Q: How can I display and input non-Latin characters such as Chinese, Japanese, Korean, Cyrillic? +When loading a font, pass custom Unicode ranges to specify the glyphs to load. + +```cpp +// Add default Japanese ranges +io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels, nullptr, io.Fonts->GetGlyphRangesJapanese()); + +// Or create your own custom ranges (e.g. for a game you can feed your entire game script and only build the characters the game need) +ImVector ranges; +ImFontGlyphRangesBuilder builder; +builder.AddText("Hello world"); // Add a string (here "Hello world" contains 7 unique characters) +builder.AddChar(0x7262); // Add a specific character +builder.AddRanges(io.Fonts->GetGlyphRangesJapanese()); // Add one of the default ranges +builder.BuildRanges(&ranges); // Build the final result (ordered ranges with all the unique characters submitted) +io.Fonts->AddFontFromFileTTF("myfontfile.ttf", 16.0f, nullptr, ranges.Data); +``` + +All your strings need to use UTF-8 encoding. +You need to tell your compiler to use UTF-8, or in C++11 you can encode a string literal in UTF-8 by using the u8"hello" syntax. +Specifying literal in your source code using a local code page (such as CP-923 for Japanese or CP-1251 for Cyrillic) will NOT work! +See [About UTF-8 Encoding](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md#about-utf-8-encoding) section +of [FONTS.md](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md) for details about UTF-8 Encoding. + +Text input: it is up to your application to pass the right character code by calling `io.AddInputCharacter()`. +The applications in examples/ are doing that. +Windows: you can use the WM_CHAR or WM_UNICHAR or WM_IME_CHAR message (depending if your app is built using Unicode or MultiByte mode). +You may also use `MultiByteToWideChar()` or `ToUnicode()` to retrieve Unicode codepoints from MultiByte characters or keyboard state. +Windows: if your language is relying on an Input Method Editor (IME), you can write your HWND to ImGui::GetMainViewport()->PlatformHandleRaw +for the default implementation of io.SetPlatformImeDataFn() to set your Microsoft IME position correctly. + +##### [Return to Index](#index) + +--- + +# Q&A: Concerns + +### Q: Who uses Dear ImGui? + +You may take a look at: + +- [Quotes](https://github.com/ocornut/imgui/wiki/Quotes) +- [Software using Dear ImGui](https://github.com/ocornut/imgui/wiki/Software-using-dear-imgui) +- [Sponsors](https://github.com/ocornut/imgui/wiki/Sponsors) +- [Gallery](https://github.com/ocornut/imgui/issues/6897) + +##### [Return to Index](#index) + +--- + +### Q: Can you create elaborate/serious tools with Dear ImGui? + +Yes. People have written game editors, data browsers, debuggers, profilers, and all sorts of non-trivial tools with the library. In my experience, the simplicity of the API is very empowering. Your UI runs close to your live data. Make the tools always-on and everybody in the team will be inclined to create new tools (as opposed to more "offline" UI toolkits where only a fraction of your team effectively creates tools). The list of sponsors below is also an indicator that serious game teams have been using the library. + +Dear ImGui is very programmer centric and the immediate-mode GUI paradigm might require you to readjust some habits before you can realize its full potential. Dear ImGui is about making things that are simple, efficient, and powerful. + +Dear ImGui is built to be efficient and scalable toward the needs for AAA-quality applications running all day. The IMGUI paradigm offers different opportunities for optimization than the more typical RMGUI paradigm. + +##### [Return to Index](#index) + +--- + +### Q: Can you reskin the look of Dear ImGui? + +Somewhat. You can alter the look of the interface to some degree: changing colors, sizes, padding, rounding, and fonts. However, as Dear ImGui is designed and optimized to create debug tools, the amount of skinning you can apply is limited. There is only so much you can stray away from the default look and feel of the interface. Dear ImGui is NOT designed to create a user interface for games, although with ingenious use of the low-level API you can do it. + +A reasonably skinned application may look like (screenshot from [#2529](https://github.com/ocornut/imgui/issues/2529#issuecomment-524281119)): +![minipars](https://user-images.githubusercontent.com/314805/63589441-d9794f00-c5b1-11e9-8d96-cfc1b93702f7.png) + +##### [Return to Index](#index) + +--- + +### Q: Why using C++ (as opposed to C)? + +Dear ImGui takes advantage of a few C++ language features for convenience but nothing anywhere Boost insanity/quagmire. Dear ImGui doesn't use any C++ header file. Dear ImGui uses a very small subset of C++11 features. In particular, function overloading and default parameters are used to make the API easier to use and code terser. Doing so I believe the API is sitting on a sweet spot and giving up on those features would make the API more cumbersome. Other features such as namespace, constructors, and templates (in the case of the ImVector<> class) are also relied on as a convenience. + +There is an auto-generated [c-api for Dear ImGui (cimgui)](https://github.com/cimgui/cimgui) by Sonoro1234 and Stephan Dilly. It is designed for creating bindings to other languages. If possible, I would suggest using your target language functionalities to try replicating the function overloading and default parameters used in C++ else the API may be harder to use. Also see [Bindings](https://github.com/ocornut/imgui/wiki/Bindings) for various third-party bindings. + +##### [Return to Index](#index) + +--- + +# Q&A: Community + +### Q: How can I help? +- Businesses: please reach out to `omar AT dearimgui.com` if you work in a place using Dear ImGui! We can discuss ways for your company to fund development via invoiced technical support, maintenance, or sponsoring contacts. This is among the most useful thing you can do for Dear ImGui. With increased funding, we can hire more people to work on this project. +- Individuals: you can support continued maintenance and development via PayPal donations. See [README](https://github.com/ocornut/imgui/blob/master/docs/README.md). +- If you are experienced with Dear ImGui and C++, look at [GitHub Issues](https://github.com/ocornut/imgui/issues), [GitHub Discussions](https://github.com/ocornut/imgui/discussions), the [Wiki](https://github.com/ocornut/imgui/wiki), read [docs/TODO.txt](https://github.com/ocornut/imgui/blob/master/docs/TODO.txt), and see how you want to help and can help! +- Disclose your usage of Dear ImGui via a dev blog post, a tweet, a screenshot, a mention somewhere, etc. +You may post screenshots or links in the [gallery threads](https://github.com/ocornut/imgui/issues/6897). Visuals are ideal as they inspire other programmers. Disclosing your use of Dear ImGui helps the library grow credibility, and helps other teams and programmers with taking decisions. +- If you have issues or if you need to hack into the library, even if you don't expect any support it is useful that you share your issues or sometimes incomplete PR. + +##### [Return to Index](#index) + diff --git a/HexaGen.Tests/cpp2c/imgui/docs/FONTS.md b/HexaGen.Tests/cpp2c/imgui/docs/FONTS.md new file mode 100644 index 0000000..b0876a3 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/docs/FONTS.md @@ -0,0 +1,502 @@ +_(You may browse this at https://github.com/ocornut/imgui/blob/master/docs/FONTS.md or view this file with any Markdown viewer)_ + +## Dear ImGui: Using Fonts + +The code in imgui.cpp embeds a copy of 'ProggyClean.ttf' (by Tristan Grimmer), +a 13 pixels high, pixel-perfect font used by default. We embed it in the source code so you can use Dear ImGui without any file system access. ProggyClean does not scale smoothly, therefore it is recommended that you load your own file when using Dear ImGui in an application aiming to look nice and wanting to support multiple resolutions. + +You may also load external .TTF/.OTF files. +In the [misc/fonts/](https://github.com/ocornut/imgui/tree/master/misc/fonts) folder you can find a few suggested fonts, provided as a convenience. + +**Also read the FAQ:** https://www.dearimgui.com/faq (there is a Fonts section!) + +## Index +- [Troubleshooting](#troubleshooting) +- [How should I handle DPI in my application?](#how-should-i-handle-dpi-in-my-application) +- [Fonts Loading Instructions](#fonts-loading-instructions) +- [Loading Font Data from Memory](#loading-font-data-from-memory) +- [Loading Font Data Embedded In Source Code](#loading-font-data-embedded-in-source-code) +- [Using Icon Fonts](#using-icon-fonts) +- [Using FreeType Rasterizer (imgui_freetype)](#using-freetype-rasterizer-imgui_freetype) +- [Using Colorful Glyphs/Emojis](#using-colorful-glyphsemojis) +- [Using Custom Glyph Ranges](#using-custom-glyph-ranges) +- [Using Custom Colorful Icons](#using-custom-colorful-icons) +- [About Filenames](#about-filenames) +- [About UTF-8 Encoding](#about-utf-8-encoding) +- [Debug Tools](#debug-tools) +- [Credits/Licenses For Fonts Included In Repository](#creditslicenses-for-fonts-included-in-repository) +- [Font Links](#font-links) + +--------------------------------------- + +## Troubleshooting + +**A vast majority of font and text related issues encountered comes from 4 things:** + +### (1) Invalid filename due to use of `\` or unexpected working directory. + +See [About Filenames](#about-filenames). AddFontXXX functions should assert if the filename is incorrect. + +### (2) Invalid UTF-8 encoding of your non-ASCII strings. + +See [About UTF-8 Encoding](#about-utf-8-encoding). Use the encoding viewer to confirm encoding of string literal in your source code is correct. + +### (3) Missing glyph ranges. + +You need to load a font with explicit glyph ranges if you want to use non-ASCII characters. See [Fonts Loading Instructions](#fonts-loading-instructions). Use [Debug Tools](#debug-tools) confirm loaded fonts and loaded glyph ranges. + +This is a current constraint of Dear ImGui (which we will lift in the future): when loading a font you need to specify which characters glyphs to load. +All loaded fonts glyphs are rendered into a single texture atlas ahead of time. Calling either of `io.Fonts->GetTexDataAsAlpha8()`, `io.Fonts->GetTexDataAsRGBA32()` or `io.Fonts->Build()` will build the atlas. This is generally called by the Renderer backend, e.g. `ImGui_ImplDX11_NewFrame()` calls it. **If you use custom glyphs ranges, make sure the array is persistent** and available during the calls to `GetTexDataAsAlpha8()/GetTexDataAsRGBA32()/Build()`. + +### (4) Font atlas texture fails to upload to GPU. + +This is often of byproduct of point 3. If you have large number of glyphs or multiple fonts, the texture may become too big for your graphics API. **The typical result of failing to upload a texture is if every glyph or everything appears as empty black or white rectangle.** Mind the fact that some graphics drivers have texture size limitation. If you are building a PC application, mind the fact that your users may use hardware with lower limitations than yours. + +Some solutions: +- You may reduce oversampling, e.g. `font_config.OversampleH = 1`, this will half your texture size for a quality looss. + Note that while OversampleH = 2 looks visibly very close to 3 in most situations, with OversampleH = 1 the quality drop will be noticeable. Read about oversampling [here](https://github.com/nothings/stb/blob/master/tests/oversample). +- Reduce glyphs ranges by calculating them from source localization data. + You can use the `ImFontGlyphRangesBuilder` for this purpose and rebuilding your atlas between frames when new characters are needed. This will be the biggest win! +- Set `io.Fonts.Flags |= ImFontAtlasFlags_NoPowerOfTwoHeight;` to disable rounding the texture height to the next power of two. +- Set `io.Fonts.TexDesiredWidth` to specify a texture width to reduce maximum texture height (see comment in `ImFontAtlas::Build()` function). + +##### [Return to Index](#index) + +--------------------------------------- + +## How should I handle DPI in my application? + +See [FAQ entry](https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-how-should-i-handle-dpi-in-my-application). + +##### [Return to Index](#index) + +--------------------------------------- + +## Fonts Loading Instructions + +**Load default font:** +```cpp +ImGuiIO& io = ImGui::GetIO(); +io.Fonts->AddFontDefault(); +``` + +**Load .TTF/.OTF file with:** +```cpp +ImGuiIO& io = ImGui::GetIO(); +io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels); +``` +If you get an assert stating "Could not load font file!", your font filename is likely incorrect. Read [About filenames](#about-filenames) carefully. + +**Load multiple fonts:** +```cpp +// Init +ImGuiIO& io = ImGui::GetIO(); +ImFont* font1 = io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels); +ImFont* font2 = io.Fonts->AddFontFromFileTTF("anotherfont.otf", size_pixels); +``` + +In your application loop, select which font to use: +```cpp +ImGui::Text("Hello"); // use the default font (which is the first loaded font) +ImGui::PushFont(font2); +ImGui::Text("Hello with another font"); +ImGui::PopFont(); +``` + +**For advanced options create a ImFontConfig structure and pass it to the AddFont() function (it will be copied internally):** +```cpp +ImFontConfig config; +config.OversampleH = 2; +config.OversampleV = 1; +config.GlyphExtraSpacing.x = 1.0f; +ImFont* font = io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels, &config); +``` + +**Combine multiple fonts into one:** +```cpp +// Load a first font +ImFont* font = io.Fonts->AddFontDefault(); + +// Add character ranges and merge into the previous font +// The ranges array is not copied by the AddFont* functions and is used lazily +// so ensure it is available at the time of building or calling GetTexDataAsRGBA32(). +static const ImWchar icons_ranges[] = { 0xf000, 0xf3ff, 0 }; // Will not be copied by AddFont* so keep in scope. +ImFontConfig config; +config.MergeMode = true; +io.Fonts->AddFontFromFileTTF("DroidSans.ttf", 18.0f, &config, io.Fonts->GetGlyphRangesJapanese()); // Merge into first font +io.Fonts->AddFontFromFileTTF("fontawesome-webfont.ttf", 18.0f, &config, icons_ranges); // Merge into first font +io.Fonts->Build(); +``` + +**Add a fourth parameter to bake specific font ranges only:** + +```cpp +// Basic Latin, Extended Latin +io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels, nullptr, io.Fonts->GetGlyphRangesDefault()); + +// Default + Selection of 2500 Ideographs used by Simplified Chinese +io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels, nullptr, io.Fonts->GetGlyphRangesChineseSimplifiedCommon()); + +// Default + Hiragana, Katakana, Half-Width, Selection of 1946 Ideographs +io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels, nullptr, io.Fonts->GetGlyphRangesJapanese()); +``` +See [Using Custom Glyph Ranges](#using-custom-glyph-ranges) section to create your own ranges. + +**Example loading and using a Japanese font:** + +```cpp +ImGuiIO& io = ImGui::GetIO(); +io.Fonts->AddFontFromFileTTF("NotoSansCJKjp-Medium.otf", 20.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); +``` +```cpp +ImGui::Text(u8"こんにちは!テスト %d", 123); +if (ImGui::Button(u8"ロード")) +{ + // do stuff +} +ImGui::InputText("string", buf, IM_ARRAYSIZE(buf)); +ImGui::SliderFloat("float", &f, 0.0f, 1.0f); +``` + +![sample code output](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v160/code_sample_02_jp.png) +
_(settings: Dark style (left), Light style (right) / Font: NotoSansCJKjp-Medium, 20px / Rounding: 5)_ + +##### [Return to Index](#index) + +--------------------------------------- + +## Loading Font Data from Memory + +```cpp +ImFont* font = io.Fonts->AddFontFromMemoryTTF(data, data_size, size_pixels, ...); +``` + +IMPORTANT: `AddFontFromMemoryTTF()` by default transfer ownership of the data buffer to the font atlas, which will attempt to free it on destruction. +This was to avoid an unnecessary copy, and is perhaps not a good API (a future version will redesign it). +If you want to keep ownership of the data and free it yourself, you need to clear the `FontDataOwnedByAtlas` field: + +```cpp +ImFontConfig font_cfg; +font_cfg.FontDataOwnedByAtlas = false; +ImFont* font = io.Fonts->AddFontFromMemoryTTF(data, data_size, size_pixels, &font_cfg); +``` + +##### [Return to Index](#index) + +--------------------------------------- + +## Loading Font Data Embedded In Source Code + +- Compile and use [binary_to_compressed_c.cpp](https://github.com/ocornut/imgui/blob/master/misc/fonts/binary_to_compressed_c.cpp) to create a compressed C style array that you can embed in source code. +- See the documentation in [binary_to_compressed_c.cpp](https://github.com/ocornut/imgui/blob/master/misc/fonts/binary_to_compressed_c.cpp) for instructions on how to use the tool. +- You may find a precompiled version binary_to_compressed_c.exe for Windows inside the demo binaries package (see [README](https://github.com/ocornut/imgui/blob/master/docs/README.md)). +- The tool can optionally output Base85 encoding to reduce the size of _source code_ but the read-only arrays in the actual binary will be about 20% bigger. + +Then load the font with: +```cpp +ImFont* font = io.Fonts->AddFontFromMemoryCompressedTTF(compressed_data, compressed_data_size, size_pixels, ...); +``` +or +```cpp +ImFont* font = io.Fonts->AddFontFromMemoryCompressedBase85TTF(compressed_data_base85, size_pixels, ...); +``` + +##### [Return to Index](#index) + +--------------------------------------- + +## Using Icon Fonts + +Using an icon font (such as [FontAwesome](http://fontawesome.io) or [OpenFontIcons](https://github.com/traverseda/OpenFontIcons)) is an easy and practical way to use icons in your Dear ImGui application. +A common pattern is to merge the icon font within your main font, so you can embed icons directly from your strings without having to change fonts back and forth. + +To refer to the icon UTF-8 codepoints from your C++ code, you may use those headers files created by Juliette Foucaut: https://github.com/juliettef/IconFontCppHeaders. + +So you can use `ICON_FA_SEARCH` as a string that will render as a "Search" icon. + +Example Setup: +```cpp +// Merge icons into default tool font +#include "IconsFontAwesome.h" +ImGuiIO& io = ImGui::GetIO(); +io.Fonts->AddFontDefault(); + +ImFontConfig config; +config.MergeMode = true; +config.GlyphMinAdvanceX = 13.0f; // Use if you want to make the icon monospaced +static const ImWchar icon_ranges[] = { ICON_MIN_FA, ICON_MAX_FA, 0 }; +io.Fonts->AddFontFromFileTTF("fonts/fontawesome-webfont.ttf", 13.0f, &config, icon_ranges); +``` +Example Usage: +```cpp +// Usage, e.g. +ImGui::Text("%s among %d items", ICON_FA_SEARCH, count); +ImGui::Button(ICON_FA_SEARCH " Search"); +// C string _literals_ can be concatenated at compilation time, e.g. "hello" " world" +// ICON_FA_SEARCH is defined as a string literal so this is the same as "A" "B" becoming "AB" +``` +See Links below for other icons fonts and related tools. + +**Monospace Icons?** + +To make your icon look more monospace and facilitate alignment, you may want to set the ImFontConfig::GlyphMinAdvanceX value when loading an icon font. + +**Screenshot** + +Here's an application using icons ("Avoyd", https://www.avoyd.com): +![avoyd](https://user-images.githubusercontent.com/8225057/81696852-c15d9e80-9464-11ea-9cab-2a4d4fc84396.jpg) + +##### [Return to Index](#index) + +--------------------------------------- + +## Using FreeType Rasterizer (imgui_freetype) + +- Dear ImGui uses imstb\_truetype.h to rasterize fonts (with optional oversampling). This technique and its implementation are not ideal for fonts rendered at small sizes, which may appear a little blurry or hard to read. +- There is an implementation of the ImFontAtlas builder using FreeType that you can use in the [misc/freetype/](https://github.com/ocornut/imgui/tree/master/misc/freetype) folder. +- FreeType supports auto-hinting which tends to improve the readability of small fonts. +- Read documentation in the [misc/freetype/](https://github.com/ocornut/imgui/tree/master/misc/freetype) folder. +- Correct sRGB space blending will have an important effect on your font rendering quality. + +##### [Return to Index](#index) + +--------------------------------------- + +## Using Colorful Glyphs/Emojis + +- Rendering of colored emojis is supported by imgui_freetype with FreeType 2.10+. +- You will need to load fonts with the `ImGuiFreeTypeBuilderFlags_LoadColor` flag. +- Emojis are frequently encoded in upper Unicode layers (character codes >0x10000) and will need dear imgui compiled with `IMGUI_USE_WCHAR32`. +- Not all types of color fonts are supported by FreeType at the moment. +- Stateful Unicode features such as skin tone modifiers are not supported by the text renderer. + +![colored glyphs](https://user-images.githubusercontent.com/8225057/106171241-9dc4ba80-6191-11eb-8a69-ca1467b206d1.png) + +```cpp +io.Fonts->AddFontFromFileTTF("../../../imgui_dev/data/fonts/NotoSans-Regular.ttf", 16.0f); +static ImWchar ranges[] = { 0x1, 0x1FFFF, 0 }; +static ImFontConfig cfg; +cfg.OversampleH = cfg.OversampleV = 1; +cfg.MergeMode = true; +cfg.FontBuilderFlags |= ImGuiFreeTypeBuilderFlags_LoadColor; +io.Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\seguiemj.ttf", 16.0f, &cfg, ranges); +``` + +##### [Return to Index](#index) + +--------------------------------------- + +## Using Custom Glyph Ranges + +You can use the `ImFontGlyphRangesBuilder` helper to create glyph ranges based on text input. For example: for a game where your script is known, if you can feed your entire script to it and only build the characters the game needs. +```cpp +ImVector ranges; +ImFontGlyphRangesBuilder builder; +builder.AddText("Hello world"); // Add a string (here "Hello world" contains 7 unique characters) +builder.AddChar(0x7262); // Add a specific character +builder.AddRanges(io.Fonts->GetGlyphRangesJapanese()); // Add one of the default ranges +builder.BuildRanges(&ranges); // Build the final result (ordered ranges with all the unique characters submitted) + +io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels, nullptr, ranges.Data); +io.Fonts->Build(); // Build the atlas while 'ranges' is still in scope and not deleted. +``` + +##### [Return to Index](#index) + +--------------------------------------- + +## Using Custom Colorful Icons + +As an alternative to rendering colorful glyphs using imgui_freetype with `ImGuiFreeTypeBuilderFlags_LoadColor`, you may allocate your own space in the texture atlas and write yourself into it. **(This is a BETA api, use if you are familiar with dear imgui and with your rendering backend)** + +- You can use the `ImFontAtlas::AddCustomRect()` and `ImFontAtlas::AddCustomRectFontGlyph()` api to register rectangles that will be packed into the font atlas texture. Register them before building the atlas, then call Build()`. +- You can then use `ImFontAtlas::GetCustomRectByIndex(int)` to query the position/size of your rectangle within the texture, and blit/copy any graphics data of your choice into those rectangles. +- This API is beta because it is likely to change in order to support multi-dpi (multiple viewports on multiple monitors with varying DPI scale). + +#### Pseudo-code: +```cpp +// Add font, then register two custom 13x13 rectangles mapped to glyph 'a' and 'b' of this font +ImFont* font = io.Fonts->AddFontDefault(); +int rect_ids[2]; +rect_ids[0] = io.Fonts->AddCustomRectFontGlyph(font, 'a', 13, 13, 13+1); +rect_ids[1] = io.Fonts->AddCustomRectFontGlyph(font, 'b', 13, 13, 13+1); + +// Build atlas +io.Fonts->Build(); + +// Retrieve texture in RGBA format +unsigned char* tex_pixels = nullptr; +int tex_width, tex_height; +io.Fonts->GetTexDataAsRGBA32(&tex_pixels, &tex_width, &tex_height); + +for (int rect_n = 0; rect_n < IM_ARRAYSIZE(rect_ids); rect_n++) +{ + int rect_id = rect_ids[rect_n]; + if (const ImFontAtlasCustomRect* rect = io.Fonts->GetCustomRectByIndex(rect_id)) + { + // Fill the custom rectangle with red pixels (in reality you would draw/copy your bitmap data here!) + for (int y = 0; y < rect->Height; y++) + { + ImU32* p = (ImU32*)tex_pixels + (rect->Y + y) * tex_width + (rect->X); + for (int x = rect->Width; x > 0; x--) + *p++ = IM_COL32(255, 0, 0, 255); + } + } +} +``` + +##### [Return to Index](#index) + +--------------------------------------- + +## About Filenames + +**Please note that many new C/C++ users have issues loading their files _because the filename they provide is wrong_ due to incorrect assumption of what is the current directory.** + +Two things to watch for: + +(1) In C/C++ and most programming languages if you want to use a backslash `\` within a string literal, you need to write it double backslash `\\`. At it happens, Windows uses backslashes as a path separator, so be mindful. +```cpp +io.Fonts->AddFontFromFileTTF("MyFiles\MyImage01.jpg", ...); // This is INCORRECT!! +io.Fonts->AddFontFromFileTTF("MyFiles\\MyImage01.jpg", ...); // This is CORRECT +``` +In some situations, you may also use `/` path separator under Windows. + +(2) Make sure your IDE/debugger settings starts your executable from the right working (current) directory. In Visual Studio you can change your working directory in project `Properties > General > Debugging > Working Directory`. People assume that their execution will start from the root folder of the project, where by default it often starts from the folder where object or executable files are stored. +```cpp +io.Fonts->AddFontFromFileTTF("MyImage01.jpg", ...); // Relative filename depends on your Working Directory when running your program! +io.Fonts->AddFontFromFileTTF("../MyImage01.jpg", ...); // Load from the parent folder of your Working Directory +``` +##### [Return to Index](#index) + +--------------------------------------- + +## About UTF-8 Encoding + +**For non-ASCII characters display, a common user issue is not passing correctly UTF-8 encoded strings.** + +(1) We provide a function `ImGui::DebugTextEncoding(const char* text)` which you can call to verify the content of your UTF-8 strings. +This is a convenient way to confirm that your encoding is correct. + +```cpp +ImGui::SeparatorText("CORRECT"); +ImGui::DebugTextEncoding(u8"こんにちは"); + +ImGui::SeparatorText("INCORRECT"); +ImGui::DebugTextEncoding("こんにちは"); +``` +![UTF-8 Encoding viewer](https://github.com/ocornut/imgui/assets/8225057/61c1696a-9a94-46c5-9627-cf91211111f0) + +You can also find this tool under `Metrics/Debuggers->Tools->UTF-8 Encoding viewer` if you want to paste from clipboard, but this won't validate the UTF-8 encoding done by your compiler. + +(2) To encode in UTF-8: + +There are also compiler-specific ways to enforce UTF-8 encoding by default: + +- Visual Studio compiler: `/utf-8` command-line flag. +- Visual Studio compiler: `#pragma execution_character_set("utf-8")` inside your code. +- Since May 2023 we have changed the Visual Studio projects of all our examples to use `/utf-8` ([see commit](https://github.com/ocornut/imgui/commit/513af1efc9080857bbd10000d98f98f2a0c96803)). + +Or, since C++11, you can use the `u8"my text"` syntax to encode literal strings as UTF-8. e.g.: +```cpp +ImGui::Text(u8"hello"); +ImGui::Text(u8"こんにちは"); // this will always be encoded as UTF-8 +ImGui::Text("こんにちは"); // the encoding of this is depending on compiler settings/flags and may be incorrect. +``` + +Since C++20, because the C++ committee hate its users, they decided to change the `u8""` syntax to not return `const char*` but a new type `const char_t*` which doesn't cast to `const char*`. +Because of type usage of `u8""` in C++20 is a little more tedious: +```cpp +ImGui::Text((const char*)u8"こんにちは"); +``` +We suggest using a macro in your codebase: +```cpp +#define U8(_S) (const char*)u8##_S +ImGui::Text(U8("こんにちは")); +``` +##### [Return to Index](#index) + +--------------------------------------- + +## Debug Tools + +#### Metrics/Debugger->Fonts +You can use the `Metrics/Debugger` window (available in `Demo>Tools`) to browse your fonts and understand what's going on if you have an issue. You can also reach it in `Demo->Tools->Style Editor->Fonts`. The same information are also available in the Style Editor under Fonts. + +![Fonts debugging](https://user-images.githubusercontent.com/8225057/135429892-0e41ef8d-33c5-4991-bcf6-f997a0bcfd6b.png) + +#### UTF-8 Encoding Viewer** +You can use the `UTF-8 Encoding viewer` in `Metrics/Debugger` to verify the content of your UTF-8 strings. From C/C++ code, you can call `ImGui::DebugTextEncoding("my string");` function to verify that your UTF-8 encoding is correct. + +![UTF-8 Encoding viewer](https://user-images.githubusercontent.com/8225057/166505963-8a0d7899-8ee8-4558-abb2-1ae523dc02f9.png) + +##### [Return to Index](#index) + +--------------------------------------- + +## Credits/Licenses For Fonts Included In Repository + +Some fonts files are available in the `misc/fonts/` folder: + +**Roboto-Medium.ttf**, by Christian Robetson +
Apache License 2.0 +
https://fonts.google.com/specimen/Roboto + +**Cousine-Regular.ttf**, by Steve Matteson +
Digitized data copyright (c) 2010 Google Corporation. +
Licensed under the SIL Open Font License, Version 1.1 +
https://fonts.google.com/specimen/Cousine + +**DroidSans.ttf**, by Steve Matteson +
Apache License 2.0 +
https://www.fontsquirrel.com/fonts/droid-sans + +**ProggyClean.ttf**, by Tristan Grimmer +
MIT License +
(recommended loading setting: Size = 13.0, GlyphOffset.y = +1) +
http://www.proggyfonts.net/ + +**ProggyTiny.ttf**, by Tristan Grimmer +
MIT License +
(recommended loading setting: Size = 10.0, GlyphOffset.y = +1) +
http://www.proggyfonts.net/ + +**Karla-Regular.ttf**, by Jonathan Pinhorn +
SIL OPEN FONT LICENSE Version 1.1 + +##### [Return to Index](#index) + +## Font Links + +#### ICON FONTS + +- C/C++ header for icon fonts (#define with code points to use in source code string literals) https://github.com/juliettef/IconFontCppHeaders +- FontAwesome https://fortawesome.github.io/Font-Awesome +- OpenFontIcons https://github.com/traverseda/OpenFontIcons +- Google Icon Fonts https://design.google.com/icons/ +- Kenney Icon Font (Game Controller Icons) https://github.com/nicodinh/kenney-icon-font +- IcoMoon - Custom Icon font builder https://icomoon.io/app + +#### REGULAR FONTS + +- Google Noto Fonts (worldwide languages) https://www.google.com/get/noto/ +- Open Sans Fonts https://fonts.google.com/specimen/Open+Sans +- (Japanese) M+ fonts by Coji Morishita http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/index-en.html + +#### MONOSPACE FONTS + +Pixel Perfect: +- Proggy Fonts, by Tristan Grimmer http://www.proggyfonts.net or http://upperbounds.net +- Sweet16, Sweet16 Mono, by Martin Sedlak (Latin + Supplemental + Extended A) https://github.com/kmar/Sweet16Font (also include an .inl file to use directly in dear imgui.) + +Regular: +- Google Noto Mono Fonts https://www.google.com/get/noto/ +- Typefaces for source code beautification https://github.com/chrissimpkins/codeface +- Programmation fonts http://s9w.github.io/font_compare/ +- Inconsolata http://www.levien.com/type/myfonts/inconsolata.html +- Adobe Source Code Pro: Monospaced font family for ui & coding environments https://github.com/adobe-fonts/source-code-pro +- Monospace/Fixed Width Programmer's Fonts http://www.lowing.org/fonts/ + +Or use Arial Unicode or other Unicode fonts provided with Windows for full characters coverage (not sure of their licensing). + +##### [Return to Index](#index) diff --git a/HexaGen.Tests/cpp2c/imgui/docs/README.md b/HexaGen.Tests/cpp2c/imgui/docs/README.md new file mode 100644 index 0000000..bd7ee8d --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/docs/README.md @@ -0,0 +1,218 @@ +Dear ImGui +===== + +
"Give someone state and they'll have a bug one day, but teach them how to represent state in two separate locations that have to be kept in sync and they'll have bugs for a lifetime."
-ryg + +---- + +[![Build Status](https://github.com/ocornut/imgui/workflows/build/badge.svg)](https://github.com/ocornut/imgui/actions?workflow=build) [![Static Analysis Status](https://github.com/ocornut/imgui/workflows/static-analysis/badge.svg)](https://github.com/ocornut/imgui/actions?workflow=static-analysis) [![Tests Status](https://github.com/ocornut/imgui_test_engine/workflows/tests/badge.svg)](https://github.com/ocornut/imgui_test_engine/actions?workflow=tests) + +(This library is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added. If your company is using Dear ImGui, please consider reaching out.) + +Businesses: support continued development and maintenance via invoiced sponsoring/support contracts: +
  _E-mail: contact @ dearimgui dot com_ +
Individuals: support continued development and maintenance [here](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WGHNC6MBFLZ2S). Also see [Sponsors](https://github.com/ocornut/imgui/wiki/Sponsors) page. + +| [The Pitch](#the-pitch) - [Usage](#usage) - [How it works](#how-it-works) - [Releases & Changelogs](#releases--changelogs) - [Demo](#demo) - [Integration](#integration) | +:----------------------------------------------------------: | +| [Gallery](#gallery) - [Support, FAQ](#support-frequently-asked-questions-faq) - [How to help](#how-to-help) - [Sponsors](https://github.com/ocornut/imgui/wiki/Sponsors) - [Credits](#credits) - [License](#license) | +| [Wiki](https://github.com/ocornut/imgui/wiki) - [Languages & frameworks backends/bindings](https://github.com/ocornut/imgui/wiki/Bindings) - [Software using Dear ImGui](https://github.com/ocornut/imgui/wiki/Software-using-dear-imgui) - [User quotes](https://github.com/ocornut/imgui/wiki/Quotes) | + +### The Pitch + +Dear ImGui is a **bloat-free graphical user interface library for C++**. It outputs optimized vertex buffers that you can render anytime in your 3D-pipeline-enabled application. It is fast, portable, renderer agnostic, and self-contained (no external dependencies). + +Dear ImGui is designed to **enable fast iterations** and to **empower programmers** to create **content creation tools and visualization / debug tools** (as opposed to UI for the average end-user). It favors simplicity and productivity toward this goal and lacks certain features commonly found in more high-level libraries. + +Dear ImGui is particularly suited to integration in game engines (for tooling), real-time 3D applications, fullscreen applications, embedded applications, or any applications on console platforms where operating system features are non-standard. + + - Minimize state synchronization. + - Minimize state storage on user side. + - Minimize setup and maintenance. + - Easy to use to create dynamic UI which are the reflection of a dynamic data set. + - Easy to use to create code-driven and data-driven tools. + - Easy to use to create ad hoc short-lived tools and long-lived, more elaborate tools. + - Easy to hack and improve. + - Portable, minimize dependencies, run on target (consoles, phones, etc.). + - Efficient runtime and memory consumption. + - Battle-tested, used by [many major actors in the game industry](https://github.com/ocornut/imgui/wiki/Software-using-dear-imgui). + +### Usage + +**The core of Dear ImGui is self-contained within a few platform-agnostic files** which you can easily compile in your application/engine. They are all the files in the root folder of the repository (imgui*.cpp, imgui*.h). **No specific build process is required**. You can add the .cpp files into your existing project. + +**Backends for a variety of graphics API and rendering platforms** are provided in the [backends/](https://github.com/ocornut/imgui/tree/master/backends) folder, along with example applications in the [examples/](https://github.com/ocornut/imgui/tree/master/examples) folder. You may also create your own backend. Anywhere where you can render textured triangles, you can render Dear ImGui. + +See the [Getting Started](https://github.com/ocornut/imgui/wiki/Getting-Started) guide and [Integration](#integration) section of this document for more details. + +After Dear ImGui is set up in your application, you can use it from \_anywhere\_ in your program loop: +```cpp +ImGui::Text("Hello, world %d", 123); +if (ImGui::Button("Save")) + MySaveFunction(); +ImGui::InputText("string", buf, IM_ARRAYSIZE(buf)); +ImGui::SliderFloat("float", &f, 0.0f, 1.0f); +``` +![sample code output (dark, segoeui font, freetype)](https://user-images.githubusercontent.com/8225057/191050833-b7ecf528-bfae-4a9f-ac1b-f3d83437a2f4.png) +![sample code output (light, segoeui font, freetype)](https://user-images.githubusercontent.com/8225057/191050838-8742efd4-504d-4334-a9a2-e756d15bc2ab.png) + +```cpp +// Create a window called "My First Tool", with a menu bar. +ImGui::Begin("My First Tool", &my_tool_active, ImGuiWindowFlags_MenuBar); +if (ImGui::BeginMenuBar()) +{ + if (ImGui::BeginMenu("File")) + { + if (ImGui::MenuItem("Open..", "Ctrl+O")) { /* Do stuff */ } + if (ImGui::MenuItem("Save", "Ctrl+S")) { /* Do stuff */ } + if (ImGui::MenuItem("Close", "Ctrl+W")) { my_tool_active = false; } + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); +} + +// Edit a color stored as 4 floats +ImGui::ColorEdit4("Color", my_color); + +// Generate samples and plot them +float samples[100]; +for (int n = 0; n < 100; n++) + samples[n] = sinf(n * 0.2f + ImGui::GetTime() * 1.5f); +ImGui::PlotLines("Samples", samples, 100); + +// Display contents in a scrolling region +ImGui::TextColored(ImVec4(1,1,0,1), "Important Stuff"); +ImGui::BeginChild("Scrolling"); +for (int n = 0; n < 50; n++) + ImGui::Text("%04d: Some text", n); +ImGui::EndChild(); +ImGui::End(); +``` +![my_first_tool_v188](https://user-images.githubusercontent.com/8225057/191055698-690a5651-458f-4856-b5a9-e8cc95c543e2.gif) + +Dear ImGui allows you to **create elaborate tools** as well as very short-lived ones. On the extreme side of short-livedness: using the Edit&Continue (hot code reload) feature of modern compilers you can add a few widgets to tweak variables while your application is running, and remove the code a minute later! Dear ImGui is not just for tweaking values. You can use it to trace a running algorithm by just emitting text commands. You can use it along with your own reflection data to browse your dataset live. You can use it to expose the internals of a subsystem in your engine, to create a logger, an inspection tool, a profiler, a debugger, an entire game-making editor/framework, etc. + +### How it works + +The IMGUI paradigm through its API tries to minimize superfluous state duplication, state synchronization, and state retention from the user's point of view. It is less error-prone (less code and fewer bugs) than traditional retained-mode interfaces, and lends itself to creating dynamic user interfaces. Check out the Wiki's [About the IMGUI paradigm](https://github.com/ocornut/imgui/wiki#about-the-imgui-paradigm) section for more details. + +Dear ImGui outputs vertex buffers and command lists that you can easily render in your application. The number of draw calls and state changes required to render them is fairly small. Because Dear ImGui doesn't know or touch graphics state directly, you can call its functions anywhere in your code (e.g. in the middle of a running algorithm, or in the middle of your own rendering process). Refer to the sample applications in the examples/ folder for instructions on how to integrate Dear ImGui with your existing codebase. + +_A common misunderstanding is to mistake immediate mode GUI for immediate mode rendering, which usually implies hammering your driver/GPU with a bunch of inefficient draw calls and state changes as the GUI functions are called. This is NOT what Dear ImGui does. Dear ImGui outputs vertex buffers and a small list of draw calls batches. It never touches your GPU directly. The draw call batches are decently optimal and you can render them later, in your app or even remotely._ + +### Releases & Changelogs + +See [Releases](https://github.com/ocornut/imgui/releases) page for decorated Changelogs. +Reading the changelogs is a good way to keep up to date with the things Dear ImGui has to offer, and maybe will give you ideas of some features that you've been ignoring until now! + +### Demo + +Calling the `ImGui::ShowDemoWindow()` function will create a demo window showcasing a variety of features and examples. The code is always available for reference in `imgui_demo.cpp`. [Here's how the demo looks](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v167/v167-misc.png). + +You should be able to build the examples from sources. If you don't, let us know! If you want to have a quick look at some Dear ImGui features, you can download Windows binaries of the demo app here: +- [imgui-demo-binaries-20230704.zip](https://www.dearimgui.com/binaries/imgui-demo-binaries-20230704.zip) (Windows, 1.89.7, built 2023/07/04, master) or [older binaries](https://www.dearimgui.com/binaries). + +The demo applications are not DPI aware so expect some blurriness on a 4K screen. For DPI awareness in your application, you can load/reload your font at a different scale and scale your style with `style.ScaleAllSizes()` (see [FAQ](https://www.dearimgui.com/faq)). + +### Integration + +See the [Getting Started](https://github.com/ocornut/imgui/wiki/Getting-Started) guide for details. + +On most platforms and when using C++, **you should be able to use a combination of the [imgui_impl_xxxx](https://github.com/ocornut/imgui/tree/master/backends) backends without modification** (e.g. `imgui_impl_win32.cpp` + `imgui_impl_dx11.cpp`). If your engine supports multiple platforms, consider using more imgui_impl_xxxx files instead of rewriting them: this will be less work for you, and you can get Dear ImGui running immediately. You can _later_ decide to rewrite a custom backend using your custom engine functions if you wish so. + +Integrating Dear ImGui within your custom engine is a matter of 1) wiring mouse/keyboard/gamepad inputs 2) uploading a texture to your GPU/render engine 3) providing a render function that can bind textures and render textured triangles, which is essentially what Backends are doing. The [examples/](https://github.com/ocornut/imgui/tree/master/examples) folder is populated with applications doing just that: setting up a window and using backends. If you follow the [Getting Started](https://github.com/ocornut/imgui/wiki/Getting-Started) guide it should in theory takes you less than an hour to integrate Dear ImGui. **Make sure to spend time reading the [FAQ](https://www.dearimgui.com/faq), comments, and the examples applications!** + +Officially maintained backends/bindings (in repository): +- Renderers: DirectX9, DirectX10, DirectX11, DirectX12, Metal, OpenGL/ES/ES2, SDL_Renderer, Vulkan, WebGPU. +- Platforms: GLFW, SDL2/SDL3, Win32, Glut, OSX, Android. +- Frameworks: Allegro5, Emscripten. + +[Third-party backends/bindings](https://github.com/ocornut/imgui/wiki/Bindings) wiki page: +- Languages: C, C# and: Beef, ChaiScript, Crystal, D, Go, Haskell, Haxe/hxcpp, Java, JavaScript, Julia, Kotlin, Lobster, Lua, Odin, Pascal, PureBasic, Python, Ruby, Rust, Swift... +- Frameworks: AGS/Adventure Game Studio, Amethyst, Blender, bsf, Cinder, Cocos2d-x, Diligent Engine, Flexium, GML/Game Maker Studio2, GLEQ, Godot, GTK3+OpenGL3, Irrlicht Engine, LÖVE+LUA, Magnum, Monogame, NanoRT, nCine, Nim Game Lib, Nintendo 3DS & Switch (homebrew), Ogre, openFrameworks, OSG/OpenSceneGraph, Orx, Photoshop, px_render, Qt/QtDirect3D, SDL_Renderer, SFML, Sokol, Unity, Unreal Engine 4, vtk, VulkanHpp, VulkanSceneGraph, Win32 GDI, WxWidgets. +- Many bindings are auto-generated (by good old [cimgui](https://github.com/cimgui/cimgui) or newer/experimental [dear_bindings](https://github.com/dearimgui/dear_bindings)), you can use their metadata output to generate bindings for other languages. + +[Useful Extensions/Widgets](https://github.com/ocornut/imgui/wiki/Useful-Extensions) wiki page: +- Automation/testing, Text editors, node editors, timeline editors, plotting, software renderers, remote network access, memory editors, gizmos, etc. One of the most notable and well supported extension is [ImPlot](https://github.com/epezent/implot). + +Also see [Wiki](https://github.com/ocornut/imgui/wiki) for more links and ideas. + +### Gallery + +For more user-submitted screenshots of projects using Dear ImGui, check out the [Gallery Threads](https://github.com/ocornut/imgui/issues/6897)! + +For a list of third-party widgets and extensions, check out the [Useful Extensions/Widgets](https://github.com/ocornut/imgui/wiki/Useful-Extensions) wiki page. + +| | | +|--|--| +| Custom engine [erhe](https://github.com/tksuoran/erhe) (docking branch)
[![erhe](https://user-images.githubusercontent.com/8225057/190203358-6988b846-0686-480e-8663-1311fbd18abd.jpg)](https://user-images.githubusercontent.com/994606/147875067-a848991e-2ad2-4fd3-bf71-4aeb8a547bcf.png) | Custom engine for [Wonder Boy: The Dragon's Trap](http://www.TheDragonsTrap.com) (2017)
[![the dragon's trap](https://user-images.githubusercontent.com/8225057/190203379-57fcb80e-4aec-4fec-959e-17ddd3cd71e5.jpg)](https://cloud.githubusercontent.com/assets/8225057/20628927/33e14cac-b329-11e6-80f6-9524e93b048a.png) | +| Custom engine (untitled)
[![editor white](https://user-images.githubusercontent.com/8225057/190203393-c5ac9f22-b900-4d1e-bfeb-6027c63e3d92.jpg)](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v160/editor_white.png) | Tracy Profiler ([github](https://github.com/wolfpld/tracy))
[![tracy profiler](https://user-images.githubusercontent.com/8225057/190203401-7b595f6e-607c-44d3-97ea-4c2673244dfb.jpg)](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v176/tracy_profiler.png) | + +### Support, Frequently Asked Questions (FAQ) + +See: [Frequently Asked Questions (FAQ)](https://github.com/ocornut/imgui/blob/master/docs/FAQ.md) where common questions are answered. + +See: [Getting Started](https://github.com/ocornut/imgui/wiki/Getting-Started) and [Wiki](https://github.com/ocornut/imgui/wiki) for many links, references, articles. + +See: [Articles about the IMGUI paradigm](https://github.com/ocornut/imgui/wiki#about-the-imgui-paradigm) to read/learn about the Immediate Mode GUI paradigm. + +See: [Upcoming Changes](https://github.com/ocornut/imgui/wiki/Upcoming-Changes). + +See: [Dear ImGui Test Engine + Test Suite](https://github.com/ocornut/imgui_test_engine) for Automation & Testing. + +Getting started? For first-time users having issues compiling/linking/running or issues loading fonts, please use [GitHub Discussions](https://github.com/ocornut/imgui/discussions). For other questions, bug reports, requests, feedback, you may post on [GitHub Issues](https://github.com/ocornut/imgui/issues). Please read and fill the New Issue template carefully. + +Private support is available for paying business customers (E-mail: _contact @ dearimgui dot com_). + +**Which version should I get?** + +We occasionally tag [Releases](https://github.com/ocornut/imgui/releases) (with nice releases notes) but it is generally safe and recommended to sync to latest `master` or `docking` branch. The library is fairly stable and regressions tend to be fixed fast when reported. Advanced users may want to use the `docking` branch with [Multi-Viewport](https://github.com/ocornut/imgui/issues/1542) and [Docking](https://github.com/ocornut/imgui/issues/2109) features. This branch is kept in sync with master regularly. + +**Who uses Dear ImGui?** + +See the [Quotes](https://github.com/ocornut/imgui/wiki/Quotes), [Sponsors](https://github.com/ocornut/imgui/wiki/Sponsors), and [Software using Dear ImGui](https://github.com/ocornut/imgui/wiki/Software-using-dear-imgui) Wiki pages for an idea of who is using Dear ImGui. Please add your game/software if you can! Also, see the [Gallery Threads](https://github.com/ocornut/imgui/issues/6897)! + +How to help +----------- + +**How can I help?** + +- See [GitHub Forum/Issues](https://github.com/ocornut/imgui/issues) and [GitHub Discussions](https://github.com/ocornut/imgui/discussions). +- You may help with development and submit pull requests! Please understand that by submitting a PR you are also submitting a request for the maintainer to review your code and then take over its maintenance forever. PR should be crafted both in the interest of the end-users and also to ease the maintainer into understanding and accepting it. +- See [Help wanted](https://github.com/ocornut/imgui/wiki/Help-Wanted) on the [Wiki](https://github.com/ocornut/imgui/wiki/) for some more ideas. +- Have your company financially support this project with invoiced sponsoring/support contracts or by buying a license for [Dear ImGui Test Engine](https://github.com/ocornut/imgui_test_engine) (please reach out: omar AT dearimgui DOT com). + +Sponsors +-------- + +Ongoing Dear ImGui development is and has been financially supported by users and private sponsors. +
Please see the **[detailed list of current and past Dear ImGui supporters](https://github.com/ocornut/imgui/wiki/Sponsors)** for details. +
From November 2014 to December 2019, ongoing development has also been financially supported by its users on Patreon and through individual donations. + +**THANK YOU to all past and present supporters for helping to keep this project alive and thriving!** + +Dear ImGui is using software and services provided free of charge for open source projects: +- [PVS-Studio](https://www.viva64.com/en/b/0570/) for static analysis. +- [GitHub actions](https://github.com/features/actions) for continuous integration systems. +- [OpenCppCoverage](https://github.com/OpenCppCoverage/OpenCppCoverage) for code coverage analysis. + +Credits +------- + +Developed by [Omar Cornut](https://www.miracleworld.net) and every direct or indirect [contributors](https://github.com/ocornut/imgui/graphs/contributors) to the GitHub. The early version of this library was developed with the support of [Media Molecule](https://www.mediamolecule.com) and first used internally on the game [Tearaway](https://tearaway.mediamolecule.com) (PS Vita). + +Recurring contributors (2022): Omar Cornut [@ocornut](https://github.com/ocornut), Rokas Kupstys [@rokups](https://github.com/rokups) (a good portion of work on automation system and regression tests now available in [Dear ImGui Test Engine](https://github.com/ocornut/imgui_test_engine)). + +Sponsoring, support contracts and other B2B transactions are hosted and handled by [Disco Hello](https://www.discohello.com). + +Omar: "I first discovered the IMGUI paradigm at [Q-Games](https://www.q-games.com) where Atman Binstock had dropped his own simple implementation in the codebase, which I spent quite some time improving and thinking about. It turned out that Atman was exposed to the concept directly by working with Casey. When I moved to Media Molecule I rewrote a new library trying to overcome the flaws and limitations of the first one I've worked with. It became this library and since then I have spent an unreasonable amount of time iterating and improving it." + +Embeds [ProggyClean.ttf](http://upperbounds.net) font by Tristan Grimmer (MIT license). +
Embeds [stb_textedit.h, stb_truetype.h, stb_rect_pack.h](https://github.com/nothings/stb/) by Sean Barrett (public domain). + +Inspiration, feedback, and testing for early versions: Casey Muratori, Atman Binstock, Mikko Mononen, Emmanuel Briney, Stefan Kamoda, Anton Mikhailov, Matt Willis. Also thank you to everyone posting feedback, questions and patches on GitHub. + +License +------- + +Dear ImGui is licensed under the MIT License, see [LICENSE.txt](https://github.com/ocornut/imgui/blob/master/LICENSE.txt) for more information. diff --git a/HexaGen.Tests/cpp2c/imgui/docs/TODO.txt b/HexaGen.Tests/cpp2c/imgui/docs/TODO.txt new file mode 100644 index 0000000..4df57e5 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/docs/TODO.txt @@ -0,0 +1,388 @@ +dear imgui +ISSUES & TODO LIST + +Issue numbers (#) refer to GitHub issues listed at https://github.com/ocornut/imgui/issues/XXXX +THIS LIST IS NOT WELL MAINTAINED. MOST OF THE WORK HAPPENS ON GITHUB NOWADAYS. +The list below consist mostly of ideas noted down before they are requested/discussed by users (at which point they usually exist on the github issue tracker). +It's mostly a bunch of personal notes, probably incomplete. Feel free to query if you have any questions. + + - doc: add a proper documentation system (maybe relying on automation? #435) + - doc: checklist app to verify backends/integration of imgui (test inputs, rendering, callback, etc.). + - doc/tips: tips of the day: website? applet in imgui_club? + - doc/wiki: work on the wiki https://github.com/ocornut/imgui/wiki + + - window: preserve/restore relative focus ordering (persistent or not), and e.g. of multiple reappearing windows (#2304) -> also see docking reference to same #. + - window: calling SetNextWindowSize() every frame with <= 0 doesn't do anything, may be useful to allow (particularly when used for a single axis). (#690) + - window: add a way for very transient windows (non-saved, temporary overlay over hundreds of objects) to "clean" up from the global window list. perhaps a lightweight explicit cleanup pass. + - window: auto-fit feedback loop when user relies on any dynamic layout (window width multiplier, column) appears weird to end-user. clarify. + - window: begin with *p_open == false could return false. + - window: get size/pos helpers given names (see discussion in #249) + - window: when window is very small, prioritize resize button over close button. + - window: double-clicking on title bar to minimize isn't consistent interaction, perhaps move to single-click on left-most collapse icon? + - window: expose contents size. (#1045) + - window: using SetWindowPos() inside Begin() and moving the window with the mouse reacts a very ugly glitch. We should just defer the SetWindowPos() call. + - window: GetWindowSize() returns (0,0) when not calculated? (#1045) + - window: investigate better auto-positioning for new windows. + - window: top most window flag? more z-order contrl? (#2574) + - window/size: manually triggered auto-fit (double-click on grip) shouldn't resize window down to viewport size? + - window/size: how to allow to e.g. auto-size vertically to fit contents, but be horizontally resizable? Assuming SetNextWindowSize() is modified to treat -1.0f on each axis as "keep as-is" (would be good but might break erroneous code): Problem is UpdateWindowManualResize() and lots of code treat (window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) together. + - window/opt: freeze window flag: if not focused/hovered, return false, render with previous ImDrawList. and/or reduce refresh rate. -> this may require enforcing that it is illegal to submit contents if Begin returns false. + - window/child: background options for child windows, border option (disable rounding). + - window/child: allow resizing of child windows (possibly given min/max for each axis?.) + - window/child: allow SetNextWindowContentSize() to work on child windows. + - window/clipping: some form of clipping when DisplaySize (or corresponding viewport) is zero. + - window/tabbing: add a way to signify that a window or docked window requires attention (e.g. blinking title bar, trying to click behind a modal). + - window/id_stack: add e.g. window->GetIDFromPath() with support for leading / and ../ (#1390, #331) -> model from test engine. + ! scrolling: exposing horizontal scrolling with Shift+Wheel even when scrollbar is disabled expose lots of issues (#2424, #1463) + - scrolling: while holding down a scrollbar, try to keep the same contents visible (at least while not moving mouse) + - scrolling: allow immediately effective change of scroll after Begin() if we haven't appended items yet. + - scrolling: forward mouse wheel scrolling to parent window when at the edge of scrolling limits? (useful for listbox,tables?) + - scrolling/style: shadows on scrollable areas to denote that there is more contents (see e.g. DaVinci Resolve ui) + + - drawdata: make it easy to deep-copy (or swap?) a full ImDrawData so user can easily save that data if they use threaded rendering. (e.g. #2646) + ! drawlist: add CalcTextSize() func to facilitate consistent code from user pov (currently need to use ImGui or ImFont alternatives!) + - drawlist: maintaining bounding box per command would allow to merge draw command when clipping isn't relied on (typical non-scrolling window or non-overflowing column would merge with previous command). (WIP branch) + - drawlist: make it easier to toggle AA per primitive, so we can use e.g. non-AA fill + AA borders more naturally + - drawlist: non-AA strokes have gaps between points (#593, #288), glitch especially on RenderCheckmark() and ColorPicker4(). + - drawlist: callback: add an extra void* in ImDrawCallback to allow passing render-local data to the callback (would break API). + - drawlist: AddRect vs AddLine position confusing (#2441) + - drawlist/opt: store rounded corners in texture to use 1 quad per corner (filled and wireframe) to lower the cost of rounding. (#1962) + - drawlist/opt: AddRect() axis aligned pixel aligned (no-aa) could use 8 triangles instead of 16 and no normal calculation. + - drawlist/opt: thick AA line could be doable in same number of triangles as 1.0 AA line by storing gradient+full color in atlas. + + - items: IsItemHovered() info stored in a stack? so that 'if TreeNode() { Text; TreePop; } if IsHovered' return the hover state of the TreeNode? + + - widgets: display mode: widget-label, label-widget (aligned on column or using fixed size), label-newline-tab-widget etc. (#395) + - widgets: clean up widgets internal toward exposing everything and stabilizing imgui_internals.h. + - widgets: add always-allow-overlap mode. This should perhaps be the default? one problem is that highlight after mouse-wheel scrolling gets deferred, makes scrolling more flickery. + - widgets: start exposing PushItemFlag() and ImGuiItemFlags + - widgets: alignment options in style (e.g. center Selectable, Right-Align within Button, etc.) #1260 + - widgets: activate by identifier (trigger button, focus given id) + - widgets: custom glyph/shapes replacements for stock sapes. (also #6090 #2431 #2235 #6517) + - widgets: coloredit: keep reporting as active when picker is on? + - widgets: group/scalarn functions: expose more per-component information. e.g. store NextItemData.ComponentIdx set by scalarn function, groups can expose them back somehow. + - selectable: using (size.x == 0.0f) and (SelectableTextAlign.x > 0.0f) followed by SameLine() is currently not supported. + - selectable: generic BeginSelectable()/EndSelectable() mechanism. (work out alongside range-select branch) + - selectable: a way to visualize partial/mixed selection (e.g. parent tree node has children with mixed selection) + + - input text: clean up the mess caused by converting UTF-8 <> wchar. the code is rather inefficient right now and super fragile. (WIP branch) + - input text: preserve scrolling when unfocused? + - input text: reorganize event handling, allow CharFilter to modify buffers, allow multiple events? (#541) + - input text: expose CursorPos in char filter event (#816) + - input text: try usage idiom of using InputText with data only exposed through get/set accessors, without extraneous copy/alloc. (#3009) + - input text: access public fields via a non-callback API e.g. InputTextGetState("xxx") that may return nullptr if not active (available in internals) + - input text: flag to disable live update of the user buffer (also applies to float/int text input) (#701) + - input text: hover tooltip could show unclamped text + - input text: support for INSERT key to toggle overwrite mode. currently disabled because stb_textedit behavior is unsatisfactory on multi-line. (#2863) + - input text: option to Tab after an Enter validation. + - input text: add ImGuiInputTextFlags_EnterToApply? (off #218) + - input text: easier ways to update buffer (from source char*) while owned. preserve some sort of cursor position for multi-line text. + - input text: add discard flag (e.g. ImGuiInputTextFlags_DiscardActiveBuffer) or make it easier to clear active focus for text replacement during edition (#725) + - input text: display bug when clicking a drag/slider after an input text in a different window has all-selected text (order dependent). actually a very old bug but no one appears to have noticed it. + - input text: allow centering/positioning text so that ctrl+clicking Drag or Slider keeps the textual value at the same pixel position. + - input text: decorrelate display layout from inputs with custom template - e.g. what's the easiest way to implement a nice IP/Mac address input editor? + - input text: global callback system so user can plug in an expression evaluator easily. (#1691) + - input text: force scroll to end or scroll to a given line/contents (so user can implement a log or a search feature) + - input text: a way to preview completion (e.g. disabled text completing from the cursor) + - input text: a side bar that could e.g. preview where errors are. probably left to the user to draw but we'd need to give them the info there. + - input text: a way for the user to provide syntax coloring. + - input text: Shift+TAB with ImGuiInputTextFlags_AllowTabInput could eat preceding blanks, up to tab_count. + - input text multi-line: don't directly call AddText() which does an unnecessary vertex reserve for character count prior to clipping. and/or more line-based clipping to AddText(). and/or reorganize TextUnformatted/RenderText for more efficiency for large text (e.g TextUnformatted could clip and log separately, etc). + - input text multi-line: support for copy/cut without selection (copy/cut current line?) + - input text multi-line: line numbers? status bar? (follow up on #200) + - input text multi-line: behave better when user changes input buffer while editing is active (even though it is illegal behavior). namely, the change of buffer can create a scrollbar glitch (#725) + - input text multi-line: better horizontal scrolling support (#383, #1224) + - input text multi-line: single call to AddText() should be coarse clipped on InputTextEx() end. + - input number: optional range min/max for Input*() functions + - input number: holding [-]/[+] buttons could increase the step speed non-linearly (or user-controlled) + - input number: use mouse wheel to step up/down + + - layout: helper or a way to express ImGui::SameLine(ImGui::GetCursorStartPos().x + ImGui::CalcItemWidth() + ImGui::GetStyle().ItemInnerSpacing.x); in a simpler manner. + - layout, font: horizontal tab support, A) text mode: forward only tabs (e.g. every 4 characters/N pixels from pos x1), B) manual mode: explicit tab stops acting as mini columns, no clipping (for menu items, many kind of uses, also vaguely relate to #267, #395) + - layout: horizontal layout helper (#97) + - layout: horizontal flow until no space left (#404) + - layout: more generic alignment state (left/right/centered) for single items? + - layout: clean up the InputFloatN/SliderFloatN/ColorEdit4 layout code. item width should include frame padding. + - layout: vertical alignment of mixed height items (e.g. buttons) within a same line (#1284) + - layout: null layout mode were items are not rendered but user can query GetItemRectMin()/Max/Size. + - layout: (R&D) local multi-pass layout mode. + - layout: (R&D) bind authored layout data (created by an off-line tool), items fetch their pos/size at submission, self-optimize data structures to stable linear access. + + - tables: see https://github.com/ocornut/imgui/issues/2957#issuecomment-569726095 + + - group: BeginGroup() needs a border option. (~#1496) + - group: IsItemHovered() after EndGroup() covers whole AABB rather than the intersection of individual items. Is that desirable? + - group: merge deactivation/activation within same group (fwd WasEdited flag). (#2550) + +!- color: the color conversion helpers/types are a mess and needs sorting out. + - color: (api breaking) ImGui::ColorConvertXXX functions should be loose ImColorConvertXX to match imgui_internals.h + + - plot: full featured plot/graph api w/ scrolling, zooming etc. --> ImPlot + - (plot: deleted all other todo lines on 2023-06-28) + + - clipper: ability to disable the clipping through a simple flag/bool. + - clipper: ability to run without knowing full count in advance. + - clipper: horizontal clipping support. (#2580) + + - separator: expose flags (#759) + - separator: take indent into consideration (optional) + - separator: width, thickness, centering (#1643, #2657) + - splitter: formalize the splitter idiom into an official api (we want to handle n-way split) (#319) + + - docking: B: ordering currently held in tab bar should be implicitly held by windows themselves (also see #2304) + - docking: B- tab bar: the order/focus restoring code could be part of TabBar and not DockNode? (#8) + - docking: B~ rework code to be able to lazily create tab bar instance in a single place. The _Unsorted tab flag could be replacing a trailing-counter in DockNode? + - docking: B~ fully track windows/settings reference in dock nodes. perhaps find a representation that allows facilitate use of dock builder functions. + - docking: B~ Unreal style document system (requires low-level controls of dockspace serialization fork/copy/delete). this is mostly working but the DockBuilderXXX api are not exposed/finished. + - docking: B: when docking outer, perform size locking on neighbors nodes the same way we do it with splitters, so other nodes are not resized. + - docking: B~ central node resizing behavior incorrect. + - docking: B: changing title font/style per-window is not supported as dock nodes are created in NewFrame. + - docking: B- dock node inside its own viewports creates 1 temporary viewport per window on startup before ditching them (doesn't affect the user nor request platform windows to be created, but unnecessary) + - docking: B- resize sibling locking behavior may be less desirable if we merged same-axis sibling in a same node level? + - docking: B- single visible node part of a hidden split hierarchy (OnlyNodeWithWindows != NULL) should show a normal title bar (not a tab bar) + - docking: B~ SetNextWindowDock() calls (with conditional) -> defer everything to DockContextUpdate (repro: Documents->[X]Windows->Dock 1 elsewhere->Click Redock All + - docking: B~ tidy up tab list popup buttons features (available with manual tab-bar, see ImGuiTabBarFlags_NoTabListPopupButton code, not used by docking nodes) + - docking: B- SetNextWindowDockId(0) with a second Begin() in the frame will asserts + - docking: B: resize grip drawn in host window typically appears under scrollbar. + - docking: B: resize grip auto-resize on multiple node hierarchy doesn't make much sense or should be improved? + - docking: B- SetNextWindowFocus() doesn't seem to apply if the window is hidden this frame, need repro (#4) + - docking: B- resizing a dock tree small currently has glitches (overlapping collapse and close button, etc.) + - docking: B- dpi: look at interaction with the hi-dpi and multi-dpi stuff. + - docking: B- tab bar: appearing on first frame with a dumb layout would do less harm that not appearing? (when behind dynamic branch) or store titles + render in EndTabBar() + - docking: B- tab bar: make selected tab always shows its full title? + - docking: B- hide close button on single tab bar? + - docking: B- nav: design interactions so nav controls can dock/undock + - docking: B- dockspace: flag to lock the dock tree and/or sizes (ImGuiDockNodeFlags_Locked?) + - docking: B- reintroduce collapsing a floating dock node. also collapsing a docked dock node! + - docking: B- allow dragging a non-floating dock node by clicking on the title-bar-looking section (not just the collapse/menu button) + - docking: B- option to remember undocked window size? (instead of keeping their docked size) (relate to #2104) + - docking: C- nav: CTRL+TAB highlighting tabs shows the mismatch between focus-stack and tab-order (not visible in VS because it doesn't highlight the tabs) + - docking: C- after a dock/undock, the Scrollbar Status update in Begin() should use an updated e.g. size_y_for_scrollbars to avoid a 1 frame scrollbar flicker. + + - tabs: "there is currently a problem because TabItem() will try to submit their own tooltip after 0.50 second, and this will have the effect of making your tooltip flicker once." -> tooltip priority work (WIP branch) + - tabs: make EndTabBar fail if users doesn't respect BeginTabBar return value, for consistency/future-proofing. + - tabs: persistent order/focus in BeginTabBar() api (#261, #351) + - tabs: explicit api (even if internal) to cleanly manipulate tab order. + + - image/image button: misalignment on padded/bordered button? + - image/image button: parameters are confusing, image() has tint_col,border_col whereas imagebutton() has bg_col/tint_col. Even thou they are different parameters ordering could be more consistent. can we fix that? + - slider: allow using the [-]/[+] buttons used by InputFloat()/InputInt() + - slider: add dragging-based widgets to edit values with mouse (on 2 axises), saving screen real-estate. + - slider: tint background based on value (e.g. v_min -> v_max, or use 0.0f either side of the sign) + - slider: relative dragging? + precision dragging + - slider: step option (#1183) + - slider: style: fill % of the bar instead of positioning a drag. + - knob: rotating knob widget (#942) + - drag float: support for reversed drags (min > max) (removed is_locked, also see fdc526e) + - drag float: up/down axis + - drag float: power != 0.0f with current value being outside the range keeps the value stuck. + - drag float: added leeway on edge (e.g. a few invisible steps past the clamp limits) + + - combo: use clipper. + - combo: a way/helper to customize the combo preview (#1658) -> experimental BeginComboPreview() + - combo/listbox: keyboard control. need InputText-like non-active focus + key handling. considering keyboard for custom listbox (pr #203) + - listbox: multiple selection (WIP range-select branch) + - listbox: unselect option (#1208) + - listbox: make it easier/more natural to implement range-select (need some sort of info/ref about the last clicked/focused item that user can translate to an index?) (WIP range-select branch) + - listbox: user may want to initial scroll to focus on the one selected value? + - listbox: disable capturing mouse wheel if the listbox has no scrolling. (#1681) + - listbox: scrolling should track modified selection. + - listbox: future api should allow to enable horizontal scrolling (#2510) + +!- popups/menus: clarify usage of popups id, how MenuItem/Selectable closing parent popups affects the ID, etc. this is quite fishy needs improvement! (#331, #402) + - modals: make modal title bar blink when trying to click outside the modal + - modals: technically speaking, we could make Begin() with ImGuiWindowFlags_Modal work without involving popup. May help untangle a few things, as modals are more like regular windows than popups. + - popups: if the popup functions took explicit ImGuiID it would allow the user to manage the scope of those ID. (#331) + - popups: clicking outside (to close popup) and holding shouldn't drag window below. + - popups: add variant using global identifier similar to Begin/End (#402) + - popups: border options. richer api like BeginChild() perhaps? (#197) + - popups/modals: although it is sometimes convenient that popups/modals lifetime is owned by imgui, we could also a bool-owned-by-user api as long as Begin() return value testing is enforced. + + - tooltip: drag and drop with tooltip near monitor edges lose/changes its last direction instead of locking one. The drag and drop tooltip should always follow without changing direction. + - tooltip: allow to set the width of a tooltip to allow TextWrapped() etc. while keeping the height automatic. + - tooltip: drag tooltip hovering over source widget with IsItemHovered/SetTooltip flickers (WIP branch) + + - status-bar: add a per-window status bar helper similar to what menu-bar does. generalize concept of layer0 rect in window (can make _MenuBar window flag obsolete too). + - shortcuts: local-style shortcut api, e.g. parse "&Save" + - shortcuts,menus: global-style shortcut api e.g. "Save (CTRL+S)" -> explicit flag for recursing into closed menu + - shortcuts: programmatically access shortcuts "Focus("&Save")) + - menus: menu-bar: main menu-bar could affect clamping of windows position (~ akin to modifying DisplayMin) + - menus: hovering from menu to menu on a menu-bar has 1 frame without any menu, which is a little annoying. ideally either 0 either longer. + - menus: would be nice if the Selectable() supported horizontal alignment (must be given the equivalent of WorkRect.Max.x matching the position of the shortcut column) + + - tree node: add treenode/treepush int variants? not there because (void*) cast from int warns on some platforms/settings? + - tree node: try to apply scrolling at time of TreePop() if node was just opened and end of node is past scrolling limits? + - tree node / selectable render mismatch which is visible if you use them both next to each other (e.g. cf. property viewer) + - tree node: tweak color scheme to distinguish headers from selected tree node (#581) + - tree node: leaf/non-leaf highlight mismatch. + - tree node/opt: could avoid formatting when clipped (flag assuming we don't care about width/height, assume single line height? format only %s/%c to be able to count height?) + + - settings: write more decent code to allow saving/loading new fields: columns, selected tree nodes? + - settings: api for per-tool simple persistent data (bool,int,float,columns sizes,etc.) in .ini file (#437) + - settings/persistence: helpers to make TreeNodeBehavior persist (even during dev!) - may need to store some semantic and/or data type in ImGuiStoragePair + + - style: better default styles. (#707) + - style: PushStyleVar: allow direct access to individual float X/Y elements. + - style: add a highlighted text color (for headers, etc.) + - style: border types: out-screen, in-screen, etc. (#447) + - style: add window shadow (fading away from the window. Paint-style calculation of vertices alpha after drawlist would be easier) + - style: a concept of "compact style" that the end-user can easily rely on (e.g. PushStyleCompact()?) that maps to other settings? avoid implementing duplicate helpers such as SmallCheckbox(), etc. + - style: try to make PushStyleVar() more robust to incorrect parameters (to be more friendly to edit & continues situation). + - style: global scale setting. + - style: FramePadding could be different for up vs down (#584) + - style: WindowPadding needs to be EVEN as the 0.5 multiplier used on this value probably have a subtle effect on clip rectangle + - style: have a more global HSV setter (e.g. alter hue on all elements). consider replacing active/hovered by offset in HSV space? (#438, #707, #1223) + - style: gradients fill (#1223) ~ 2 bg colors for each fill? tricky with rounded shapes and using textures for corners. + - style editor: color child window height expressed in multiple of line height. + + - log: improve logging of ArrowButton, ListBox, TabItem + - log: carry on indent / tree depth when opening a child window + - log: enabling log ends up pushing and growing vertices buffers because we don't distinguish layout vs render clipping + - log: have more control over the log scope (e.g. stop logging when leaving current tree node scope) + - log: be able to log anything (e.g. right-click on a window/tree-node, shows context menu? log into tty/file/clipboard) + - log: let user copy any window content to clipboard easily (CTRL+C on windows? while moving it? context menu?). code is commented because it fails with multiple Begin/End pairs. + - log: obsolete LogButtons().... (was: LogButtons() options for specifying depth and/or hiding depth slider) + + - filters: set a current filter that certains items (e.g. tree node) can automatically query to hide themselves + - filters: handle wild-cards (with implicit leading/trailing *), reg-exprs + - filters: fuzzy matches (may use code at blog.forrestthewoods.com/4cffeed33fdb) + + - drag and drop: focus drag target window on hold (even without open) + - drag and drop: releasing a drop shows the "..." tooltip for one frame - since e13e598 (#1725) + - drag and drop: drag source on a group object (would need e.g. an invisible button covering group in EndGroup) https://twitter.com/paniq/status/1121446364909535233 + - drag and drop: have some way to know when a drag begin from BeginDragDropSource() pov. (see 2018/01/11 post in #143) + - drag and drop: allow preview tooltip to be submitted from a different place than the drag source. (#1725) + - drag and drop: make it easier and provide a demo to have tooltip both are source and target site, with a more detailed one on target site (tooltip ordering problem) + - drag and drop: demo with reordering nodes (in a list, or a tree node). (#143) + - drag and drop: test integrating with os drag and drop (make it easy to do a naive WM_DROPFILE integration) + - drag and drop: allow for multiple payload types. (#143) + - drag and drop: make payload optional? payload promise? (see 2018/01/11 post in #143) + - drag and drop: (#143) "both an in-process pointer and a promise to generate a serialized version, for whether the drag ends inside or outside the same process" + - drag and drop: feedback when hovering a region blocked by modal (mouse cursor "NO"?) + + - markup: simple markup language for color change? (#902, #3130) + + - text: selectable text (for copy) as a generic feature (ItemFlags?) + - text: proper alignment options in imgui_internal.h + - text: provided a framed text helper, e.g. https://pastebin.com/1Laxy8bT + - text: refactor TextUnformatted (or underlying function) to more explicitly request if we need width measurement or not + - text/layout/tabs: \t pulling position from base pos + step, or offset array (e.g. could be used in text edit, menus for simple icon+text alignment, etc.) + - text link/url button: underlined. should api expose an ID or use text contents as ID? which colors enum to use? + - text/wrapped: should be a more first-class citizen, e.g. wrapped text within a Selectable with known width. + - text/wrapped: custom separator for text wrapping. (#3002) + - text/wrapped: figure out better way to use TextWrapped() in an always auto-resize context (tooltip, etc.) (#249) + + - font: arbitrary line spacing. (#2945) + - font: MergeMode: flags to select overwriting or not (this is now very easy with refactored ImFontAtlasBuildWithStbTruetype) + - font: free the Alpha buffer if user only requested RGBA. +!- font: better CalcTextSizeA() API, at least for simple use cases. current one is horrible (perhaps have simple vs extended versions). + - font: for the purpose of RenderTextEllipsis(), it might be useful that CalcTextSizeA() can ignore the trailing padding? + - font: a CalcTextHeight() helper could run faster than CalcTextSize().y + - font: enforce monospace through ImFontConfig (for icons?) + create dual ImFont output from same input, reusing rasterized data but with different glyphs/AdvanceX + - font: finish CustomRectRegister() to allow mapping Unicode codepoint to custom texture data + - font: remove ID from CustomRect registration, it seems unnecessary! + - font: make it easier to submit own bitmap font (same texture, another texture?). (#2127, #2575) + - font: PushFontSize API (#1018) + - font: MemoryTTF taking ownership confusing/not obvious, maybe default should be opposite? + - font: storing MinAdvanceX per font would allow us to skip calculating line width (under a threshold of character count) in loops looking for block width + - font/demo: add tools to show glyphs used by a text blob, display U16 value, list missing glyphs. + - font/demo: demonstrate use of ImFontGlyphRangesBuilder. + - font/atlas: add a missing Glyphs.reserve() + - font/atlas: incremental updates + - font/atlas: dynamic font atlas to avoid baking huge ranges into bitmap and make scaling easier. + - font/draw: vertical and/or rotated text renderer (#705) - vertical is easier clipping wise + - font/draw: need to be able to specify wrap start position. + - font/draw: better reserve policy for large horizontal block of text (shouldn't reserve for all clipped lines). also see #3349. + - font/draw: fix for drawing 16k+ visible characters in same call. + - font/draw: underline, squiggle line rendering helpers. + - font: optimization: for monospace font (like the default one) we can trim IndexXAdvance as long as trailing value is == FallbackXAdvance (need to make sure TAB is still correct), would save on cache line. + - font: add support for kerning, probably optional. A) perhaps default to (32..128)^2 matrix ~ 9K entries = 36KB, then hash for non-ascii?. B) or sparse lookup into per-char list? + - font: add a simpler CalcTextSizeA() api? current one ok but not welcome if user needs to call it directly (without going through ImGui::CalcTextSize) + - font: fix AddRemapChar() to work before atlas has been built. + - font: (api breaking) remove "TTF" from symbol names. also because it now supports OTF. + - font/opt: Considering storing standalone AdvanceX table as 16-bit fixed point integer? + - font/opt: Glyph currently 40 bytes (2+9*4). Consider storing UV as 16-bits integer? (->32 bytes). X0/Y0/X1/Y1 as 16 fixed-point integers? Or X0/Y0 as float and X1/Y1 as fixed8_8? + + - nav: visual feedback on button press. + - nav: some features such as PageUp/Down/Home/End should probably work without ImGuiConfigFlags_NavEnableKeyboard? (where do we draw the line? how about CTRL+Tab) + ! nav: never clear NavId on some setup (e.g. gamepad centric) + - nav: there's currently no way to completely clear focus with the keyboard. depending on patterns used by the application to dispatch inputs, it may be desirable. + - nav: Home/End behavior when navigable item is not fully visible at the edge of scrolling? should be backtrack to keep item into view? + - nav: NavScrollToBringItemIntoView() with item bigger than view should focus top-right? Repro: using Nav in "About Window" + - nav: wrap around logic to allow e.g. grid based layout (pressing NavRight on the right-most element would go to the next row, etc.). see internal's NavMoveRequestTryWrapping(). + - nav: patterns to make it possible for arrows key to update selection (see JustMovedTo in range_select branch) + - nav: restore/find nearest NavId when current one disappear (e.g. pressed a button that disappear, or perhaps auto restoring when current button change name) + - nav: SetItemDefaultFocus() level of priority, so widget like Selectable when inside a popup could claim a low-priority default focus on the first selected iem + - nav: NavFlattened: init requests don't work properly on flattened siblings. + - nav: NavFlattened: pageup/pagedown/home/end don't work properly on flattened siblings. + - nav: NavFlattened: ESC on a flattened child should select something. + - nav: NavFlattened: broken: in typical usage scenario, the items of a fully clipped child are currently not considered to enter into a NavFlattened child. + - nav: NavFlattened: cannot access menu-bar of a flattened child window with Alt/menu key (not a very common use case..). + - nav: simulate right-click or context activation? (SHIFT+F10, keyboard Menu key?) + - nav/popup: esc/enter default behavior for popups, e.g. be able to mark an "ok" or "cancel" button that would get triggered by those keys, default validation button, etc. + - nav/treenode: left within a tree node block as a fallback (ImGuiTreeNodeFlags_NavLeftJumpsBackHere by default?) + - nav/menus: pressing left-right on a vertically clipped menu bar tends to jump to the collapse/close buttons. + - nav/menus: allow pressing Menu to leave a sub-menu. + - nav/menus: a way to access the main menu bar with Alt? (currently needs CTRL+TAB) or last focused window menu bar? + - nav/menus: when using the main menu bar, even though we restore focus after, the underlying window loses its title bar highlight during menu manipulation. could we prevent it? + - nav/menus: main menu bar currently cannot restore a nullptr focus. Could save NavWindow at the time of being focused, similarly to what popup do? + - nav/menus: Alt,Up could open the first menu (e.g. "File") currently it tends to nav into the window/collapse menu. Do do that we would need custom transition? + - nav/windowing: when CTRL+Tab/windowing is active, the HoveredWindow detection doesn't take account of the window display re-ordering. + - nav/windowing: Resizing window will currently fail with certain types of resizing constraints/callback applied + - focus: preserve ActiveId/focus stack state, e.g. when opening a menu and close it, previously selected InputText() focus gets restored (#622) + + - viewport: make it possible to have no main/hosting viewport + - viewport: We set ImGuiViewportFlags_NoFocusOnAppearing in a way that is required for GLFW/SDL binding, but could be handled better without + on a custom e.g. Win32 bindings. It prevents newly dragged-out viewports from taking the focus, which makes ALT+F4 more ambiguous. + - viewport: not focusing newly undocked viewport means clicking back on previous one doesn't bring OS window to front. + - viewport: with platform decoration enabled, platform may force constraint (e.g. minimum size) + - viewport: use getfocus/setfocus api to synchronize imgui<>platform focus better (e.g imgui-side ctrl-tab can focus os window, OS initial setup and alt-tab can focus imgui window etc.) + - viewport: store per-viewport/monitor DPI in .ini file so an application reload or main window changing DPI on reload can be properly patched for. + - viewport: implicit/fallback Debug window can hog a zombie viewport (harmless, noisy?) > could at least clear out the reference on a per session basis? + - viewport: need to clarify how to use GetMousePos() from a user point of view. + - platform: glfw: no support for ImGuiBackendFlags_HasMouseHoveredViewport. + - platform: sdl: no support for ImGuiBackendFlags_HasMouseHoveredViewport. maybe we could use SDL_GetMouseFocus() / SDL_WINDOW_MOUSE_FOCUS if imgui could fallback on its heuristic when NoInputs is set + - platform: sdl: no refresh of monitor/display (SDL doesn't seem to have an event for it). + - platform: sdl: multi-viewport + minimized window seems to break mouse wheel events (at least under Win32). + + - inputs: support track pad style scrolling & slider edit. + - inputs/io: backspace and arrows in the context of a text input could use system repeat rate. + - inputs/io: clarify/standardize/expose repeat rate and repeat delays (#1808) + - inputs/scrolling: support for smooth scrolling (#2462, #2569) + + - misc: idle: expose "woken up" boolean (set by inputs) and/or animation time (for cursor blink) for backend to be able stop refreshing easily. + - misc: idle: if cursor blink if the _only_ visible animation, core imgui could rewrite vertex alpha to avoid CPU pass on ImGui:: calls. + - misc: idle: if cursor blink if the _only_ visible animation, could even expose a dirty rectangle that optionally can be leverage by some app to render in a smaller viewport, getting rid of much pixel shading cost. + - misc: no way to run a root-most GetID() with ImGui:: api since there's always a Debug window in the stack. (mentioned in #2960) + - misc: make the ImGuiCond values linear (non-power-of-two). internal storage for ImGuiWindow can use integers to combine into flags (Why?) + - misc: PushItemFlag(): add a flag to disable keyboard capture when used with mouse? (#1682) + - misc: use more size_t in public api? + - misc: possible compile-time support for string view/range instead of char* would e.g. facilitate usage with Rust (#683, #3038, WIP string_view branch) + - misc: possible compile-time support for wchar_t instead of char*? + + - demo: demonstrate using PushStyleVar() in more details. + - demo: add vertical separator demo + - demo: add virtual scrolling example? + - demo: demonstrate Plot offset + - demo: window size constraint: square demo is broken when resizing from edges (#1975), would need to rework the callback system to solve this + + - examples: window minimize, maximize (#583) + - examples: provide a zero frame-rate/idle example. + - examples: dx11/dx12: try to use new swapchain blit models (#2970) + - backends: report it better when not able to create texture? + - backends: glfw: could go idle when minimized? if (glfwGetWindowAttrib(window, GLFW_ICONIFIED)) { glfwWaitEvents(); continue; } // issue: DeltaTime will be super high on resume, perhaps provide a way to let impl know (#440) + - backends: opengl: rename imgui_impl_opengl2 to impl_opengl_legacy and imgui_impl_opengl3 to imgui_impl_opengl? (#1900) + - backends: opengl: could use a single vertex buffer and glBufferSubData for uploads? + - backends: opengl: explicitly disable GL_STENCIL_TEST in bindings. + - backends: vulkan: viewport: support for synchronized swapping of multiple swap chains. + - backends: bgfx: https://gist.github.com/RichardGale/6e2b74bc42b3005e08397236e4be0fd0 + - backends: emscriptem: with refactored examples, we could provide a direct imgui_impl_emscripten platform layer (see eg. https://github.com/floooh/sokol-samples/blob/master/html5/imgui-emsc.cc#L42) + + - bindings: ways to use clang ast dump to generate bindings or helpers for bindings? (e.g. clang++ -Xclang -ast-dump=json imgui.h) (WIP project "dear-bindings" still private) + + - optimization: replace vsnprintf with stb_printf? using IMGUI_USE_STB_SPRINTF. (#1038 + needed for string_view) + - optimization: add clipping for multi-component widgets (SliderFloatX, ColorEditX, etc.). one problem is that nav branch can't easily clip parent group when there is a move request. + - optimization: add a flag to disable most of rendering, for the case where the user expect to skip it (#335) + - optimization: fully covered window (covered by another with non-translucent bg + WindowRounding worth of padding) may want to clip rendering. + - optimization: use another hash function than crc32, e.g. FNV1a + - optimization: turn some the various stack vectors into statically-sized arrays diff --git a/HexaGen.Tests/cpp2c/imgui/examples/README.txt b/HexaGen.Tests/cpp2c/imgui/examples/README.txt new file mode 100644 index 0000000..6db2f3c --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/README.txt @@ -0,0 +1,9 @@ +See BACKENDS and EXAMPLES files in the docs/ folder, or on the web at: https://github.com/ocornut/imgui/tree/master/docs + +Backends = Helper code to facilitate integration with platforms/graphics api (used by Examples + should be used by your app). +Examples = Standalone applications showcasing integration with platforms/graphics api. + +Some Examples have extra README files in their respective directory, please check them too! + +Once Dear ImGui is running (in either examples or your own application/game/engine), +run and refer to ImGui::ShowDemoWindow() in imgui_demo.cpp for the end-user API. diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/README.md b/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/README.md new file mode 100644 index 0000000..4af31f6 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/README.md @@ -0,0 +1,36 @@ + +# Configuration + +Dear ImGui outputs 16-bit vertex indices by default. +Allegro doesn't support them natively, so we have two solutions: convert the indices manually in imgui_impl_allegro5.cpp, or compile dear imgui with 32-bit indices. +You can either modify imconfig.h that comes with Dear ImGui (easier), or set a C++ preprocessor option IMGUI_USER_CONFIG to find to a filename. +We are providing `imconfig_allegro5.h` that enables 32-bit indices. +Note that the backend supports _BOTH_ 16-bit and 32-bit indices, but 32-bit indices will be slightly faster as they won't require a manual conversion. + +# How to Build + +### On Ubuntu 14.04+ and macOS + +```bash +g++ -DIMGUI_USER_CONFIG=\"examples/example_allegro5/imconfig_allegro5.h\" -I .. -I ../.. -I ../../backends main.cpp ../../backends/imgui_impl_allegro5.cpp ../../imgui*.cpp -lallegro -lallegro_main -lallegro_primitives -o allegro5_example +``` + +On macOS, install Allegro with homebrew: `brew install allegro`. + +### On Windows with Visual Studio's CLI + +You may install Allegro using vcpkg: +``` +git clone https://github.com/Microsoft/vcpkg +cd vcpkg +bootstrap-vcpkg.bat +vcpkg install allegro5 --triplet=x86-windows ; for win32 +vcpkg install allegro5 --triplet=x64-windows ; for win64 +vcpkg integrate install ; register include / libs in Visual Studio +``` + +Build: +``` +set ALLEGRODIR=path_to_your_allegro5_folder +cl /Zi /MD /utf-8 /I %ALLEGRODIR%\include /DIMGUI_USER_CONFIG=\"examples/example_allegro5/imconfig_allegro5.h\" /I .. /I ..\.. /I ..\..\backends main.cpp ..\..\backends\imgui_impl_allegro5.cpp ..\..\imgui*.cpp /link /LIBPATH:%ALLEGRODIR%\lib allegro-5.0.10-monolith-md.lib user32.lib +``` diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/example_allegro5.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/example_allegro5.vcxproj new file mode 100644 index 0000000..02f6a47 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/example_allegro5.vcxproj @@ -0,0 +1,185 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {73F235B5-7D31-4FC6-8682-DDC5A097B9C1} + example_allegro5 + 8.1 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + ..\..;..\..\backends;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %(AdditionalLibraryDirectories) + opengl32.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + ..\..;..\..\backends;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %(AdditionalLibraryDirectories) + opengl32.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %(AdditionalLibraryDirectories) + opengl32.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %(AdditionalLibraryDirectories) + opengl32.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/example_allegro5.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/example_allegro5.vcxproj.filters new file mode 100644 index 0000000..84881d3 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/example_allegro5.vcxproj.filters @@ -0,0 +1,61 @@ + + + + + {20b90ce4-7fcb-4731-b9a0-075f875de82d} + + + {f18ab499-84e1-499f-8eff-9754361e0e52} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + sources + + + imgui + + + imgui + + + + + imgui + + + imgui + + + imgui + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/imconfig_allegro5.h b/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/imconfig_allegro5.h new file mode 100644 index 0000000..35afa67 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/imconfig_allegro5.h @@ -0,0 +1,11 @@ +//----------------------------------------------------------------------------- +// COMPILE-TIME OPTIONS FOR DEAR IMGUI ALLEGRO 5 EXAMPLE +// See imconfig.h for the full template +// Because Allegro doesn't support 16-bit vertex indices, we enable the compile-time option of imgui to use 32-bit indices +//----------------------------------------------------------------------------- + +#pragma once + +// Use 32-bit vertex indices because Allegro doesn't support 16-bit ones +// This allows us to avoid converting vertices format at runtime +#define ImDrawIdx int diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/main.cpp new file mode 100644 index 0000000..298c845 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_allegro5/main.cpp @@ -0,0 +1,150 @@ +// Dear ImGui: standalone example application for Allegro 5 + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// On Windows, you can install Allegro5 using vcpkg: +// git clone https://github.com/Microsoft/vcpkg +// cd vcpkg +// bootstrap - vcpkg.bat +// vcpkg install allegro5 --triplet=x86-windows ; for win32 +// vcpkg install allegro5 --triplet=x64-windows ; for win64 +// vcpkg integrate install ; register include and libs in Visual Studio + +#include +#include +#include +#include "imgui.h" +#include "imgui_impl_allegro5.h" + +int main(int, char**) +{ + // Setup Allegro + al_init(); + al_install_keyboard(); + al_install_mouse(); + al_init_primitives_addon(); + al_set_new_display_flags(ALLEGRO_RESIZABLE); + ALLEGRO_DISPLAY* display = al_create_display(1280, 720); + al_set_window_title(display, "Dear ImGui Allegro 5 example"); + ALLEGRO_EVENT_QUEUE* queue = al_create_event_queue(); + al_register_event_source(queue, al_get_display_event_source(display)); + al_register_event_source(queue, al_get_keyboard_event_source()); + al_register_event_source(queue, al_get_mouse_event_source()); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // Setup Platform/Renderer backends + ImGui_ImplAllegro5_Init(display); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool running = true; + while (running) + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + ALLEGRO_EVENT ev; + while (al_get_next_event(queue, &ev)) + { + ImGui_ImplAllegro5_ProcessEvent(&ev); + if (ev.type == ALLEGRO_EVENT_DISPLAY_CLOSE) + running = false; + if (ev.type == ALLEGRO_EVENT_DISPLAY_RESIZE) + { + ImGui_ImplAllegro5_InvalidateDeviceObjects(); + al_acknowledge_resize(display); + ImGui_ImplAllegro5_CreateDeviceObjects(); + } + } + + // Start the Dear ImGui frame + ImGui_ImplAllegro5_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + al_clear_to_color(al_map_rgba_f(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w)); + ImGui_ImplAllegro5_RenderDrawData(ImGui::GetDrawData()); + al_flip_display(); + } + + // Cleanup + ImGui_ImplAllegro5_Shutdown(); + ImGui::DestroyContext(); + al_destroy_event_queue(queue); + al_destroy_display(display); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/CMakeLists.txt b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/CMakeLists.txt new file mode 100644 index 0000000..63531f4 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.6) + +project(ImGuiExample) + +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + +add_library(${CMAKE_PROJECT_NAME} SHARED + ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_demo.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_draw.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_tables.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_widgets.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../backends/imgui_impl_android.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/../../backends/imgui_impl_opengl3.cpp + ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c +) + +set(CMAKE_SHARED_LINKER_FLAGS + "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate" +) + +target_compile_definitions(${CMAKE_PROJECT_NAME} PRIVATE + IMGUI_IMPL_OPENGL_ES3 +) + +target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR}/../.. + ${CMAKE_CURRENT_SOURCE_DIR}/../../backends + ${ANDROID_NDK}/sources/android/native_app_glue +) + +target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE + android + EGL + GLESv3 + log +) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/.gitignore b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/.gitignore new file mode 100644 index 0000000..3c7a619 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/.gitignore @@ -0,0 +1,12 @@ +.cxx +.externalNativeBuild +build/ +*.iml + +.idea +.gradle +local.properties + +# Android Studio puts a Gradle wrapper here, that we don't want: +gradle/ +gradlew* diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/app/build.gradle b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/app/build.gradle new file mode 100644 index 0000000..53181ba --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/app/build.gradle @@ -0,0 +1,46 @@ +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' + +android { + compileSdkVersion 33 + buildToolsVersion "33.0.2" + ndkVersion "25.2.9519653" + + defaultConfig { + applicationId "imgui.example.android" + namespace "imgui.example.android" + minSdkVersion 24 + targetSdkVersion 33 + versionCode 1 + versionName "1.0" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt') + } + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 + } + + kotlinOptions { + jvmTarget="11" + } + + externalNativeBuild { + cmake { + path "../../CMakeLists.txt" + version '3.22.1' + } + } +} +repositories { + mavenCentral() +} +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/app/src/main/AndroidManifest.xml b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..a87b95b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/app/src/main/java/MainActivity.kt b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/app/src/main/java/MainActivity.kt new file mode 100644 index 0000000..896a88c --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/app/src/main/java/MainActivity.kt @@ -0,0 +1,40 @@ +package imgui.example.android + +import android.app.NativeActivity +import android.os.Bundle +import android.content.Context +import android.view.inputmethod.InputMethodManager +import android.view.KeyEvent +import java.util.concurrent.LinkedBlockingQueue + +class MainActivity : NativeActivity() { + public override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + } + + fun showSoftInput() { + val inputMethodManager = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager + inputMethodManager.showSoftInput(this.window.decorView, 0) + } + + fun hideSoftInput() { + val inputMethodManager = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager + inputMethodManager.hideSoftInputFromWindow(this.window.decorView.windowToken, 0) + } + + // Queue for the Unicode characters to be polled from native code (via pollUnicodeChar()) + private var unicodeCharacterQueue: LinkedBlockingQueue = LinkedBlockingQueue() + + // We assume dispatchKeyEvent() of the NativeActivity is actually called for every + // KeyEvent and not consumed by any View before it reaches here + override fun dispatchKeyEvent(event: KeyEvent): Boolean { + if (event.action == KeyEvent.ACTION_DOWN) { + unicodeCharacterQueue.offer(event.getUnicodeChar(event.metaState)) + } + return super.dispatchKeyEvent(event) + } + + fun pollUnicodeChar(): Int { + return unicodeCharacterQueue.poll() ?: 0 + } +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/build.gradle b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/build.gradle new file mode 100644 index 0000000..ccd2185 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/build.gradle @@ -0,0 +1,24 @@ +buildscript { + ext.kotlin_version = '1.8.0' + repositories { + google() + mavenCentral() + + } + dependencies { + classpath 'com.android.tools.build:gradle:7.4.1' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/settings.gradle b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/settings.gradle new file mode 100644 index 0000000..e7b4def --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/android/settings.gradle @@ -0,0 +1 @@ +include ':app' diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/main.cpp new file mode 100644 index 0000000..2316ce6 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_android_opengl3/main.cpp @@ -0,0 +1,383 @@ +// dear imgui: standalone example application for Android + OpenGL ES 3 + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#include "imgui_impl_android.h" +#include "imgui_impl_opengl3.h" +#include +#include +#include +#include +#include +#include + +// Data +static EGLDisplay g_EglDisplay = EGL_NO_DISPLAY; +static EGLSurface g_EglSurface = EGL_NO_SURFACE; +static EGLContext g_EglContext = EGL_NO_CONTEXT; +static struct android_app* g_App = nullptr; +static bool g_Initialized = false; +static char g_LogTag[] = "ImGuiExample"; +static std::string g_IniFilename = ""; + +// Forward declarations of helper functions +static void Init(struct android_app* app); +static void Shutdown(); +static void MainLoopStep(); +static int ShowSoftKeyboardInput(); +static int PollUnicodeChars(); +static int GetAssetData(const char* filename, void** out_data); + +// Main code +static void handleAppCmd(struct android_app* app, int32_t appCmd) +{ + switch (appCmd) + { + case APP_CMD_SAVE_STATE: + break; + case APP_CMD_INIT_WINDOW: + Init(app); + break; + case APP_CMD_TERM_WINDOW: + Shutdown(); + break; + case APP_CMD_GAINED_FOCUS: + case APP_CMD_LOST_FOCUS: + break; + } +} + +static int32_t handleInputEvent(struct android_app* app, AInputEvent* inputEvent) +{ + return ImGui_ImplAndroid_HandleInputEvent(inputEvent); +} + +void android_main(struct android_app* app) +{ + app->onAppCmd = handleAppCmd; + app->onInputEvent = handleInputEvent; + + while (true) + { + int out_events; + struct android_poll_source* out_data; + + // Poll all events. If the app is not visible, this loop blocks until g_Initialized == true. + while (ALooper_pollAll(g_Initialized ? 0 : -1, nullptr, &out_events, (void**)&out_data) >= 0) + { + // Process one event + if (out_data != nullptr) + out_data->process(app, out_data); + + // Exit the app by returning from within the infinite loop + if (app->destroyRequested != 0) + { + // shutdown() should have been called already while processing the + // app command APP_CMD_TERM_WINDOW. But we play save here + if (!g_Initialized) + Shutdown(); + + return; + } + } + + // Initiate a new frame + MainLoopStep(); + } +} + +void Init(struct android_app* app) +{ + if (g_Initialized) + return; + + g_App = app; + ANativeWindow_acquire(g_App->window); + + // Initialize EGL + // This is mostly boilerplate code for EGL... + { + g_EglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); + if (g_EglDisplay == EGL_NO_DISPLAY) + __android_log_print(ANDROID_LOG_ERROR, g_LogTag, "%s", "eglGetDisplay(EGL_DEFAULT_DISPLAY) returned EGL_NO_DISPLAY"); + + if (eglInitialize(g_EglDisplay, 0, 0) != EGL_TRUE) + __android_log_print(ANDROID_LOG_ERROR, g_LogTag, "%s", "eglInitialize() returned with an error"); + + const EGLint egl_attributes[] = { EGL_BLUE_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_RED_SIZE, 8, EGL_DEPTH_SIZE, 24, EGL_SURFACE_TYPE, EGL_WINDOW_BIT, EGL_NONE }; + EGLint num_configs = 0; + if (eglChooseConfig(g_EglDisplay, egl_attributes, nullptr, 0, &num_configs) != EGL_TRUE) + __android_log_print(ANDROID_LOG_ERROR, g_LogTag, "%s", "eglChooseConfig() returned with an error"); + if (num_configs == 0) + __android_log_print(ANDROID_LOG_ERROR, g_LogTag, "%s", "eglChooseConfig() returned 0 matching config"); + + // Get the first matching config + EGLConfig egl_config; + eglChooseConfig(g_EglDisplay, egl_attributes, &egl_config, 1, &num_configs); + EGLint egl_format; + eglGetConfigAttrib(g_EglDisplay, egl_config, EGL_NATIVE_VISUAL_ID, &egl_format); + ANativeWindow_setBuffersGeometry(g_App->window, 0, 0, egl_format); + + const EGLint egl_context_attributes[] = { EGL_CONTEXT_CLIENT_VERSION, 3, EGL_NONE }; + g_EglContext = eglCreateContext(g_EglDisplay, egl_config, EGL_NO_CONTEXT, egl_context_attributes); + + if (g_EglContext == EGL_NO_CONTEXT) + __android_log_print(ANDROID_LOG_ERROR, g_LogTag, "%s", "eglCreateContext() returned EGL_NO_CONTEXT"); + + g_EglSurface = eglCreateWindowSurface(g_EglDisplay, egl_config, g_App->window, nullptr); + eglMakeCurrent(g_EglDisplay, g_EglSurface, g_EglSurface, g_EglContext); + } + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + + // Redirect loading/saving of .ini file to our location. + // Make sure 'g_IniFilename' persists while we use Dear ImGui. + g_IniFilename = std::string(app->activity->internalDataPath) + "/imgui.ini"; + io.IniFilename = g_IniFilename.c_str();; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // Setup Platform/Renderer backends + ImGui_ImplAndroid_Init(g_App->window); + ImGui_ImplOpenGL3_Init("#version 300 es"); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + // - Android: The TTF files have to be placed into the assets/ directory (android/app/src/main/assets), we use our GetAssetData() helper to retrieve them. + + // We load the default font with increased size to improve readability on many devices with "high" DPI. + // FIXME: Put some effort into DPI awareness. + // Important: when calling AddFontFromMemoryTTF(), ownership of font_data is transfered by Dear ImGui by default (deleted is handled by Dear ImGui), unless we set FontDataOwnedByAtlas=false in ImFontConfig + ImFontConfig font_cfg; + font_cfg.SizePixels = 22.0f; + io.Fonts->AddFontDefault(&font_cfg); + //void* font_data; + //int font_data_size; + //ImFont* font; + //font_data_size = GetAssetData("segoeui.ttf", &font_data); + //font = io.Fonts->AddFontFromMemoryTTF(font_data, font_data_size, 16.0f); + //IM_ASSERT(font != nullptr); + //font_data_size = GetAssetData("DroidSans.ttf", &font_data); + //font = io.Fonts->AddFontFromMemoryTTF(font_data, font_data_size, 16.0f); + //IM_ASSERT(font != nullptr); + //font_data_size = GetAssetData("Roboto-Medium.ttf", &font_data); + //font = io.Fonts->AddFontFromMemoryTTF(font_data, font_data_size, 16.0f); + //IM_ASSERT(font != nullptr); + //font_data_size = GetAssetData("Cousine-Regular.ttf", &font_data); + //font = io.Fonts->AddFontFromMemoryTTF(font_data, font_data_size, 15.0f); + //IM_ASSERT(font != nullptr); + //font_data_size = GetAssetData("ArialUni.ttf", &font_data); + //font = io.Fonts->AddFontFromMemoryTTF(font_data, font_data_size, 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Arbitrary scale-up + // FIXME: Put some effort into DPI awareness + ImGui::GetStyle().ScaleAllSizes(3.0f); + + g_Initialized = true; +} + +void MainLoopStep() +{ + ImGuiIO& io = ImGui::GetIO(); + if (g_EglDisplay == EGL_NO_DISPLAY) + return; + + // Our state + // (we use static, which essentially makes the variable globals, as a convenience to keep the example code easy to follow) + static bool show_demo_window = true; + static bool show_another_window = false; + static ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Poll Unicode characters via JNI + // FIXME: do not call this every frame because of JNI overhead + PollUnicodeChars(); + + // Open on-screen (soft) input if requested by Dear ImGui + static bool WantTextInputLast = false; + if (io.WantTextInput && !WantTextInputLast) + ShowSoftKeyboardInput(); + WantTextInputLast = io.WantTextInput; + + // Start the Dear ImGui frame + ImGui_ImplOpenGL3_NewFrame(); + ImGui_ImplAndroid_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + glViewport(0, 0, (int)io.DisplaySize.x, (int)io.DisplaySize.y); + glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); + eglSwapBuffers(g_EglDisplay, g_EglSurface); +} + +void Shutdown() +{ + if (!g_Initialized) + return; + + // Cleanup + ImGui_ImplOpenGL3_Shutdown(); + ImGui_ImplAndroid_Shutdown(); + ImGui::DestroyContext(); + + if (g_EglDisplay != EGL_NO_DISPLAY) + { + eglMakeCurrent(g_EglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); + + if (g_EglContext != EGL_NO_CONTEXT) + eglDestroyContext(g_EglDisplay, g_EglContext); + + if (g_EglSurface != EGL_NO_SURFACE) + eglDestroySurface(g_EglDisplay, g_EglSurface); + + eglTerminate(g_EglDisplay); + } + + g_EglDisplay = EGL_NO_DISPLAY; + g_EglContext = EGL_NO_CONTEXT; + g_EglSurface = EGL_NO_SURFACE; + ANativeWindow_release(g_App->window); + + g_Initialized = false; +} + +// Helper functions + +// Unfortunately, there is no way to show the on-screen input from native code. +// Therefore, we call ShowSoftKeyboardInput() of the main activity implemented in MainActivity.kt via JNI. +static int ShowSoftKeyboardInput() +{ + JavaVM* java_vm = g_App->activity->vm; + JNIEnv* java_env = nullptr; + + jint jni_return = java_vm->GetEnv((void**)&java_env, JNI_VERSION_1_6); + if (jni_return == JNI_ERR) + return -1; + + jni_return = java_vm->AttachCurrentThread(&java_env, nullptr); + if (jni_return != JNI_OK) + return -2; + + jclass native_activity_clazz = java_env->GetObjectClass(g_App->activity->clazz); + if (native_activity_clazz == nullptr) + return -3; + + jmethodID method_id = java_env->GetMethodID(native_activity_clazz, "showSoftInput", "()V"); + if (method_id == nullptr) + return -4; + + java_env->CallVoidMethod(g_App->activity->clazz, method_id); + + jni_return = java_vm->DetachCurrentThread(); + if (jni_return != JNI_OK) + return -5; + + return 0; +} + +// Unfortunately, the native KeyEvent implementation has no getUnicodeChar() function. +// Therefore, we implement the processing of KeyEvents in MainActivity.kt and poll +// the resulting Unicode characters here via JNI and send them to Dear ImGui. +static int PollUnicodeChars() +{ + JavaVM* java_vm = g_App->activity->vm; + JNIEnv* java_env = nullptr; + + jint jni_return = java_vm->GetEnv((void**)&java_env, JNI_VERSION_1_6); + if (jni_return == JNI_ERR) + return -1; + + jni_return = java_vm->AttachCurrentThread(&java_env, nullptr); + if (jni_return != JNI_OK) + return -2; + + jclass native_activity_clazz = java_env->GetObjectClass(g_App->activity->clazz); + if (native_activity_clazz == nullptr) + return -3; + + jmethodID method_id = java_env->GetMethodID(native_activity_clazz, "pollUnicodeChar", "()I"); + if (method_id == nullptr) + return -4; + + // Send the actual characters to Dear ImGui + ImGuiIO& io = ImGui::GetIO(); + jint unicode_character; + while ((unicode_character = java_env->CallIntMethod(g_App->activity->clazz, method_id)) != 0) + io.AddInputCharacter(unicode_character); + + jni_return = java_vm->DetachCurrentThread(); + if (jni_return != JNI_OK) + return -5; + + return 0; +} + +// Helper to retrieve data placed into the assets/ directory (android/app/src/main/assets) +static int GetAssetData(const char* filename, void** outData) +{ + int num_bytes = 0; + AAsset* asset_descriptor = AAssetManager_open(g_App->activity->assetManager, filename, AASSET_MODE_BUFFER); + if (asset_descriptor) + { + num_bytes = AAsset_getLength(asset_descriptor); + *outData = IM_ALLOC(num_bytes); + int64_t num_bytes_read = AAsset_read(asset_descriptor, *outData, num_bytes); + AAsset_close(asset_descriptor); + IM_ASSERT(num_bytes_read == num_bytes); + } + return num_bytes; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/README.md b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/README.md new file mode 100644 index 0000000..48a2b57 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/README.md @@ -0,0 +1,10 @@ +# iOS / OSX Metal example + +## Introduction + +This example shows how to integrate Dear ImGui with Metal. It is based on the "cross-platform" game template provided with Xcode as of Xcode 9. + +Consider basing your work off the example_glfw_metal/ or example_sdl2_metal/ examples. They are better supported and will be portable unlike this one. + + + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/example_apple_metal.xcodeproj/project.pbxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/example_apple_metal.xcodeproj/project.pbxproj new file mode 100644 index 0000000..3ebf9cc --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/example_apple_metal.xcodeproj/project.pbxproj @@ -0,0 +1,516 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 050450AB2768052600AB6805 /* imgui_tables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5079822D257677DB0038A28D /* imgui_tables.cpp */; }; + 050450AD276863B000AB6805 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 050450AC276863B000AB6805 /* QuartzCore.framework */; }; + 05318E0F274C397200A8DE2E /* GameController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 05318E0E274C397200A8DE2E /* GameController.framework */; }; + 05A275442773BEA20084EF39 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 05A275432773BEA20084EF39 /* QuartzCore.framework */; }; + 07A82ED82139413D0078D120 /* imgui_widgets.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07A82ED72139413C0078D120 /* imgui_widgets.cpp */; }; + 07A82ED92139418F0078D120 /* imgui_widgets.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07A82ED72139413C0078D120 /* imgui_widgets.cpp */; }; + 5079822E257677DB0038A28D /* imgui_tables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5079822D257677DB0038A28D /* imgui_tables.cpp */; }; + 8309BD8F253CCAAA0045E2A1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8309BD8E253CCAAA0045E2A1 /* UIKit.framework */; }; + 8309BDA5253CCC070045E2A1 /* main.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8309BDA0253CCBC10045E2A1 /* main.mm */; }; + 8309BDA8253CCC080045E2A1 /* main.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8309BDA0253CCBC10045E2A1 /* main.mm */; }; + 8309BDBB253CCCAD0045E2A1 /* imgui_impl_metal.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8309BDB5253CCC9D0045E2A1 /* imgui_impl_metal.mm */; }; + 8309BDBE253CCCB60045E2A1 /* imgui_impl_metal.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8309BDB5253CCC9D0045E2A1 /* imgui_impl_metal.mm */; }; + 8309BDBF253CCCB60045E2A1 /* imgui_impl_osx.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8309BDB6253CCC9D0045E2A1 /* imgui_impl_osx.mm */; }; + 8309BDC6253CCCFE0045E2A1 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8309BDC5253CCCFE0045E2A1 /* AppKit.framework */; }; + 8309BDFC253CDAB30045E2A1 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8309BDF7253CDAAE0045E2A1 /* LaunchScreen.storyboard */; }; + 8309BE04253CDAB60045E2A1 /* MainMenu.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8309BDFA253CDAAE0045E2A1 /* MainMenu.storyboard */; }; + 83BBE9E520EB46B900295997 /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 83BBE9E420EB46B900295997 /* Metal.framework */; }; + 83BBE9E720EB46BD00295997 /* MetalKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 83BBE9E620EB46BD00295997 /* MetalKit.framework */; }; + 83BBE9EC20EB471700295997 /* MetalKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 83BBE9EA20EB471700295997 /* MetalKit.framework */; }; + 83BBE9ED20EB471700295997 /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 83BBE9EB20EB471700295997 /* Metal.framework */; }; + 83BBEA0520EB54E700295997 /* imgui_draw.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0120EB54E700295997 /* imgui_draw.cpp */; }; + 83BBEA0620EB54E700295997 /* imgui_draw.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0120EB54E700295997 /* imgui_draw.cpp */; }; + 83BBEA0720EB54E700295997 /* imgui_demo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0220EB54E700295997 /* imgui_demo.cpp */; }; + 83BBEA0820EB54E700295997 /* imgui_demo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0220EB54E700295997 /* imgui_demo.cpp */; }; + 83BBEA0920EB54E700295997 /* imgui.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0320EB54E700295997 /* imgui.cpp */; }; + 83BBEA0A20EB54E700295997 /* imgui.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0320EB54E700295997 /* imgui.cpp */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 050450AC276863B000AB6805 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; + 05318E0E274C397200A8DE2E /* GameController.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameController.framework; path = System/Library/Frameworks/GameController.framework; sourceTree = SDKROOT; }; + 05A2754027728F5B0084EF39 /* imgui_impl_metal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui_impl_metal.h; path = ../../backends/imgui_impl_metal.h; sourceTree = ""; }; + 05A2754127728F5B0084EF39 /* imgui_impl_osx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui_impl_osx.h; path = ../../backends/imgui_impl_osx.h; sourceTree = ""; }; + 05A275432773BEA20084EF39 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/QuartzCore.framework; sourceTree = DEVELOPER_DIR; }; + 07A82ED62139413C0078D120 /* imgui_internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui_internal.h; path = ../../imgui_internal.h; sourceTree = ""; }; + 07A82ED72139413C0078D120 /* imgui_widgets.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_widgets.cpp; path = ../../imgui_widgets.cpp; sourceTree = ""; }; + 5079822D257677DB0038A28D /* imgui_tables.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_tables.cpp; path = ../../imgui_tables.cpp; sourceTree = ""; }; + 8307E7C420E9F9C900473790 /* example_apple_metal.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example_apple_metal.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 8307E7DA20E9F9C900473790 /* example_apple_metal.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example_apple_metal.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 8309BD8E253CCAAA0045E2A1 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; + 8309BDA0253CCBC10045E2A1 /* main.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = main.mm; sourceTree = ""; }; + 8309BDB5253CCC9D0045E2A1 /* imgui_impl_metal.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = imgui_impl_metal.mm; path = ../../backends/imgui_impl_metal.mm; sourceTree = ""; }; + 8309BDB6253CCC9D0045E2A1 /* imgui_impl_osx.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = imgui_impl_osx.mm; path = ../../backends/imgui_impl_osx.mm; sourceTree = ""; }; + 8309BDC5253CCCFE0045E2A1 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; + 8309BDF7253CDAAE0045E2A1 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = ""; }; + 8309BDF8253CDAAE0045E2A1 /* Info-iOS.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-iOS.plist"; sourceTree = ""; }; + 8309BDFA253CDAAE0045E2A1 /* MainMenu.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = MainMenu.storyboard; sourceTree = ""; }; + 8309BDFB253CDAAE0045E2A1 /* Info-macOS.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-macOS.plist"; sourceTree = ""; }; + 83BBE9E420EB46B900295997 /* Metal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Metal.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Metal.framework; sourceTree = DEVELOPER_DIR; }; + 83BBE9E620EB46BD00295997 /* MetalKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MetalKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/MetalKit.framework; sourceTree = DEVELOPER_DIR; }; + 83BBE9E820EB46C100295997 /* ModelIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ModelIO.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/ModelIO.framework; sourceTree = DEVELOPER_DIR; }; + 83BBE9EA20EB471700295997 /* MetalKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MetalKit.framework; path = System/Library/Frameworks/MetalKit.framework; sourceTree = SDKROOT; }; + 83BBE9EB20EB471700295997 /* Metal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Metal.framework; path = System/Library/Frameworks/Metal.framework; sourceTree = SDKROOT; }; + 83BBE9EE20EB471C00295997 /* ModelIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ModelIO.framework; path = System/Library/Frameworks/ModelIO.framework; sourceTree = SDKROOT; }; + 83BBEA0020EB54E700295997 /* imgui.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui.h; path = ../../imgui.h; sourceTree = ""; }; + 83BBEA0120EB54E700295997 /* imgui_draw.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_draw.cpp; path = ../../imgui_draw.cpp; sourceTree = ""; }; + 83BBEA0220EB54E700295997 /* imgui_demo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_demo.cpp; path = ../../imgui_demo.cpp; sourceTree = ""; }; + 83BBEA0320EB54E700295997 /* imgui.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui.cpp; path = ../../imgui.cpp; sourceTree = ""; }; + 83BBEA0420EB54E700295997 /* imconfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imconfig.h; path = ../../imconfig.h; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 8307E7C120E9F9C900473790 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 05A275442773BEA20084EF39 /* QuartzCore.framework in Frameworks */, + 8309BD8F253CCAAA0045E2A1 /* UIKit.framework in Frameworks */, + 83BBE9E720EB46BD00295997 /* MetalKit.framework in Frameworks */, + 83BBE9E520EB46B900295997 /* Metal.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8307E7D720E9F9C900473790 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 050450AD276863B000AB6805 /* QuartzCore.framework in Frameworks */, + 8309BDC6253CCCFE0045E2A1 /* AppKit.framework in Frameworks */, + 83BBE9EC20EB471700295997 /* MetalKit.framework in Frameworks */, + 05318E0F274C397200A8DE2E /* GameController.framework in Frameworks */, + 83BBE9ED20EB471700295997 /* Metal.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 8307E7B520E9F9C700473790 = { + isa = PBXGroup; + children = ( + 83BBE9F020EB544400295997 /* imgui */, + 8309BD9E253CCBA70045E2A1 /* example */, + 8307E7C520E9F9C900473790 /* Products */, + 83BBE9E320EB46B800295997 /* Frameworks */, + ); + sourceTree = ""; + }; + 8307E7C520E9F9C900473790 /* Products */ = { + isa = PBXGroup; + children = ( + 8307E7C420E9F9C900473790 /* example_apple_metal.app */, + 8307E7DA20E9F9C900473790 /* example_apple_metal.app */, + ); + name = Products; + sourceTree = ""; + }; + 8309BD9E253CCBA70045E2A1 /* example */ = { + isa = PBXGroup; + children = ( + 8309BDF6253CDAAE0045E2A1 /* iOS */, + 8309BDF9253CDAAE0045E2A1 /* macOS */, + 8309BDA0253CCBC10045E2A1 /* main.mm */, + ); + name = example; + sourceTree = ""; + }; + 8309BDF6253CDAAE0045E2A1 /* iOS */ = { + isa = PBXGroup; + children = ( + 8309BDF7253CDAAE0045E2A1 /* LaunchScreen.storyboard */, + 8309BDF8253CDAAE0045E2A1 /* Info-iOS.plist */, + ); + path = iOS; + sourceTree = ""; + }; + 8309BDF9253CDAAE0045E2A1 /* macOS */ = { + isa = PBXGroup; + children = ( + 8309BDFA253CDAAE0045E2A1 /* MainMenu.storyboard */, + 8309BDFB253CDAAE0045E2A1 /* Info-macOS.plist */, + ); + path = macOS; + sourceTree = ""; + }; + 83BBE9E320EB46B800295997 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 050450AC276863B000AB6805 /* QuartzCore.framework */, + 05A275432773BEA20084EF39 /* QuartzCore.framework */, + 05318E0E274C397200A8DE2E /* GameController.framework */, + 8309BDC5253CCCFE0045E2A1 /* AppKit.framework */, + 8309BD8E253CCAAA0045E2A1 /* UIKit.framework */, + 83BBE9EE20EB471C00295997 /* ModelIO.framework */, + 83BBE9EB20EB471700295997 /* Metal.framework */, + 83BBE9EA20EB471700295997 /* MetalKit.framework */, + 83BBE9E820EB46C100295997 /* ModelIO.framework */, + 83BBE9E620EB46BD00295997 /* MetalKit.framework */, + 83BBE9E420EB46B900295997 /* Metal.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 83BBE9F020EB544400295997 /* imgui */ = { + isa = PBXGroup; + children = ( + 5079822D257677DB0038A28D /* imgui_tables.cpp */, + 05A2754027728F5B0084EF39 /* imgui_impl_metal.h */, + 8309BDB5253CCC9D0045E2A1 /* imgui_impl_metal.mm */, + 05A2754127728F5B0084EF39 /* imgui_impl_osx.h */, + 8309BDB6253CCC9D0045E2A1 /* imgui_impl_osx.mm */, + 83BBEA0420EB54E700295997 /* imconfig.h */, + 83BBEA0320EB54E700295997 /* imgui.cpp */, + 83BBEA0020EB54E700295997 /* imgui.h */, + 83BBEA0220EB54E700295997 /* imgui_demo.cpp */, + 83BBEA0120EB54E700295997 /* imgui_draw.cpp */, + 07A82ED62139413C0078D120 /* imgui_internal.h */, + 07A82ED72139413C0078D120 /* imgui_widgets.cpp */, + ); + name = imgui; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 8307E7C320E9F9C900473790 /* example_apple_metal_ios */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8307E7F020E9F9C900473790 /* Build configuration list for PBXNativeTarget "example_apple_metal_ios" */; + buildPhases = ( + 8307E7C020E9F9C900473790 /* Sources */, + 8307E7C120E9F9C900473790 /* Frameworks */, + 8307E7C220E9F9C900473790 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = example_apple_metal_ios; + productName = "imguiex iOS"; + productReference = 8307E7C420E9F9C900473790 /* example_apple_metal.app */; + productType = "com.apple.product-type.application"; + }; + 8307E7D920E9F9C900473790 /* example_apple_metal_macos */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8307E7F320E9F9C900473790 /* Build configuration list for PBXNativeTarget "example_apple_metal_macos" */; + buildPhases = ( + 8307E7D620E9F9C900473790 /* Sources */, + 8307E7D720E9F9C900473790 /* Frameworks */, + 8307E7D820E9F9C900473790 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = example_apple_metal_macos; + productName = "imguiex macOS"; + productReference = 8307E7DA20E9F9C900473790 /* example_apple_metal.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 8307E7B620E9F9C700473790 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1200; + ORGANIZATIONNAME = "Warren Moore"; + TargetAttributes = { + 8307E7C320E9F9C900473790 = { + CreatedOnToolsVersion = 9.4.1; + ProvisioningStyle = Automatic; + }; + 8307E7D920E9F9C900473790 = { + CreatedOnToolsVersion = 9.4.1; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 8307E7B920E9F9C700473790 /* Build configuration list for PBXProject "example_apple_metal" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 8307E7B520E9F9C700473790; + productRefGroup = 8307E7C520E9F9C900473790 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8307E7C320E9F9C900473790 /* example_apple_metal_ios */, + 8307E7D920E9F9C900473790 /* example_apple_metal_macos */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 8307E7C220E9F9C900473790 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8309BDFC253CDAB30045E2A1 /* LaunchScreen.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8307E7D820E9F9C900473790 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8309BE04253CDAB60045E2A1 /* MainMenu.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 8307E7C020E9F9C900473790 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8309BDBB253CCCAD0045E2A1 /* imgui_impl_metal.mm in Sources */, + 83BBEA0920EB54E700295997 /* imgui.cpp in Sources */, + 83BBEA0720EB54E700295997 /* imgui_demo.cpp in Sources */, + 83BBEA0520EB54E700295997 /* imgui_draw.cpp in Sources */, + 5079822E257677DB0038A28D /* imgui_tables.cpp in Sources */, + 07A82ED82139413D0078D120 /* imgui_widgets.cpp in Sources */, + 8309BDA5253CCC070045E2A1 /* main.mm in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8307E7D620E9F9C900473790 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8309BDBE253CCCB60045E2A1 /* imgui_impl_metal.mm in Sources */, + 8309BDBF253CCCB60045E2A1 /* imgui_impl_osx.mm in Sources */, + 83BBEA0A20EB54E700295997 /* imgui.cpp in Sources */, + 83BBEA0820EB54E700295997 /* imgui_demo.cpp in Sources */, + 83BBEA0620EB54E700295997 /* imgui_draw.cpp in Sources */, + 050450AB2768052600AB6805 /* imgui_tables.cpp in Sources */, + 07A82ED92139418F0078D120 /* imgui_widgets.cpp in Sources */, + 8309BDA8253CCC080045E2A1 /* main.mm in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 8307E7EE20E9F9C900473790 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + }; + name = Debug; + }; + 8307E7EF20E9F9C900473790 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MTL_ENABLE_DEBUG_INFO = NO; + }; + name = Release; + }; + 8307E7F120E9F9C900473790 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = "$(SRCROOT)/iOS/Info-iOS.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.imgui.example.apple-metal-ios"; + PRODUCT_NAME = example_apple_metal; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../**"; + }; + name = Debug; + }; + 8307E7F220E9F9C900473790 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = "$(SRCROOT)/iOS/Info-iOS.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.imgui.example.apple-metal-ios"; + PRODUCT_NAME = example_apple_metal; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../**"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 8307E7F420E9F9C900473790 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_IDENTITY = "-"; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = "$(SRCROOT)/macOS/Info-macOS.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.12; + PRODUCT_BUNDLE_IDENTIFIER = "org.imgui.example.apple-metal-macos"; + PRODUCT_NAME = example_apple_metal; + SDKROOT = macosx; + USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../**"; + }; + name = Debug; + }; + 8307E7F520E9F9C900473790 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_IDENTITY = "-"; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = "$(SRCROOT)/macOS/Info-macOS.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.12; + PRODUCT_BUNDLE_IDENTIFIER = "org.imgui.example.apple-metal-macos"; + PRODUCT_NAME = example_apple_metal; + SDKROOT = macosx; + USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../**"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 8307E7B920E9F9C700473790 /* Build configuration list for PBXProject "example_apple_metal" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8307E7EE20E9F9C900473790 /* Debug */, + 8307E7EF20E9F9C900473790 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8307E7F020E9F9C900473790 /* Build configuration list for PBXNativeTarget "example_apple_metal_ios" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8307E7F120E9F9C900473790 /* Debug */, + 8307E7F220E9F9C900473790 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8307E7F320E9F9C900473790 /* Build configuration list for PBXNativeTarget "example_apple_metal_macos" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8307E7F420E9F9C900473790 /* Debug */, + 8307E7F520E9F9C900473790 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 8307E7B620E9F9C700473790 /* Project object */; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/iOS/Info-iOS.plist b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/iOS/Info-iOS.plist new file mode 100644 index 0000000..93ef078 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/iOS/Info-iOS.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + imgui + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + metal + + UIRequiresFullScreen + + UIStatusBarHidden + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortraitUpsideDown + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/iOS/LaunchScreen.storyboard b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/iOS/LaunchScreen.storyboard new file mode 100644 index 0000000..12c52cf --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/iOS/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/macOS/Info-macOS.plist b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/macOS/Info-macOS.plist new file mode 100644 index 0000000..6f4a2b2 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/macOS/Info-macOS.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + imgui + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSMainStoryboardFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/macOS/MainMenu.storyboard b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/macOS/MainMenu.storyboard new file mode 100644 index 0000000..38ad432 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/macOS/MainMenu.storyboard @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/main.mm b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/main.mm new file mode 100644 index 0000000..d184dd6 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_metal/main.mm @@ -0,0 +1,354 @@ +// Dear ImGui: standalone example application for OSX + Metal. + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#import + +#if TARGET_OS_OSX +#import +#else +#import +#endif + +#import +#import + +#include "imgui.h" +#include "imgui_impl_metal.h" +#if TARGET_OS_OSX +#include "imgui_impl_osx.h" +@interface AppViewController : NSViewController +@end +#else +@interface AppViewController : UIViewController +@end +#endif + +@interface AppViewController () +@property (nonatomic, readonly) MTKView *mtkView; +@property (nonatomic, strong) id device; +@property (nonatomic, strong) id commandQueue; +@end + +//----------------------------------------------------------------------------------- +// AppViewController +//----------------------------------------------------------------------------------- + +@implementation AppViewController + +-(instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + + _device = MTLCreateSystemDefaultDevice(); + _commandQueue = [_device newCommandQueue]; + + if (!self.device) + { + NSLog(@"Metal is not supported"); + abort(); + } + + // Setup Dear ImGui context + // FIXME: This example doesn't have proper cleanup... + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Renderer backend + ImGui_ImplMetal_Init(_device); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + return self; +} + +-(MTKView *)mtkView +{ + return (MTKView *)self.view; +} + +-(void)loadView +{ + self.view = [[MTKView alloc] initWithFrame:CGRectMake(0, 0, 1200, 720)]; +} + +-(void)viewDidLoad +{ + [super viewDidLoad]; + + self.mtkView.device = self.device; + self.mtkView.delegate = self; + +#if TARGET_OS_OSX + ImGui_ImplOSX_Init(self.view); + [NSApp activateIgnoringOtherApps:YES]; +#endif +} + +-(void)drawInMTKView:(MTKView*)view +{ + ImGuiIO& io = ImGui::GetIO(); + io.DisplaySize.x = view.bounds.size.width; + io.DisplaySize.y = view.bounds.size.height; + +#if TARGET_OS_OSX + CGFloat framebufferScale = view.window.screen.backingScaleFactor ?: NSScreen.mainScreen.backingScaleFactor; +#else + CGFloat framebufferScale = view.window.screen.scale ?: UIScreen.mainScreen.scale; +#endif + io.DisplayFramebufferScale = ImVec2(framebufferScale, framebufferScale); + + id commandBuffer = [self.commandQueue commandBuffer]; + + MTLRenderPassDescriptor* renderPassDescriptor = view.currentRenderPassDescriptor; + if (renderPassDescriptor == nil) + { + [commandBuffer commit]; + return; + } + + // Start the Dear ImGui frame + ImGui_ImplMetal_NewFrame(renderPassDescriptor); +#if TARGET_OS_OSX + ImGui_ImplOSX_NewFrame(view); +#endif + ImGui::NewFrame(); + + // Our state (make them static = more or less global) as a convenience to keep the example terse. + static bool show_demo_window = true; + static bool show_another_window = false; + static ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + ImDrawData* draw_data = ImGui::GetDrawData(); + + renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColorMake(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); + id renderEncoder = [commandBuffer renderCommandEncoderWithDescriptor:renderPassDescriptor]; + [renderEncoder pushDebugGroup:@"Dear ImGui rendering"]; + ImGui_ImplMetal_RenderDrawData(draw_data, commandBuffer, renderEncoder); + [renderEncoder popDebugGroup]; + [renderEncoder endEncoding]; + + // Present + [commandBuffer presentDrawable:view.currentDrawable]; + [commandBuffer commit]; + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + } +} + +-(void)mtkView:(MTKView*)view drawableSizeWillChange:(CGSize)size +{ +} + +//----------------------------------------------------------------------------------- +// Input processing +//----------------------------------------------------------------------------------- + +#if TARGET_OS_OSX + +- (void)viewWillAppear +{ + [super viewWillAppear]; + self.view.window.delegate = self; +} + +- (void)windowWillClose:(NSNotification *)notification +{ + ImGui_ImplMetal_Shutdown(); + ImGui_ImplOSX_Shutdown(); + ImGui::DestroyContext(); +} + +#else + +// This touch mapping is super cheesy/hacky. We treat any touch on the screen +// as if it were a depressed left mouse button, and we don't bother handling +// multitouch correctly at all. This causes the "cursor" to behave very erratically +// when there are multiple active touches. But for demo purposes, single-touch +// interaction actually works surprisingly well. +-(void)updateIOWithTouchEvent:(UIEvent *)event +{ + UITouch *anyTouch = event.allTouches.anyObject; + CGPoint touchLocation = [anyTouch locationInView:self.view]; + ImGuiIO &io = ImGui::GetIO(); + io.AddMouseSourceEvent(ImGuiMouseSource_TouchScreen); + io.AddMousePosEvent(touchLocation.x, touchLocation.y); + + BOOL hasActiveTouch = NO; + for (UITouch *touch in event.allTouches) + { + if (touch.phase != UITouchPhaseEnded && touch.phase != UITouchPhaseCancelled) + { + hasActiveTouch = YES; + break; + } + } + io.AddMouseButtonEvent(0, hasActiveTouch); +} + +-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self updateIOWithTouchEvent:event]; } +-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { [self updateIOWithTouchEvent:event]; } +-(void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event { [self updateIOWithTouchEvent:event]; } +-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { [self updateIOWithTouchEvent:event]; } + +#endif + +@end + +//----------------------------------------------------------------------------------- +// AppDelegate +//----------------------------------------------------------------------------------- + +#if TARGET_OS_OSX + +@interface AppDelegate : NSObject +@property (nonatomic, strong) NSWindow *window; +@end + +@implementation AppDelegate + +-(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender +{ + return YES; +} + +-(instancetype)init +{ + if (self = [super init]) + { + NSViewController *rootViewController = [[AppViewController alloc] initWithNibName:nil bundle:nil]; + self.window = [[NSWindow alloc] initWithContentRect:NSZeroRect + styleMask:NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskResizable | NSWindowStyleMaskMiniaturizable + backing:NSBackingStoreBuffered + defer:NO]; + self.window.contentViewController = rootViewController; + [self.window center]; + [self.window makeKeyAndOrderFront:self]; + } + return self; +} + +@end + +#else + +@interface AppDelegate : UIResponder +@property (strong, nonatomic) UIWindow *window; +@end + +@implementation AppDelegate + +-(BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + UIViewController *rootViewController = [[AppViewController alloc] init]; + self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds]; + self.window.rootViewController = rootViewController; + [self.window makeKeyAndVisible]; + return YES; +} + +@end + +#endif + +//----------------------------------------------------------------------------------- +// Application main() function +//----------------------------------------------------------------------------------- + +#if TARGET_OS_OSX + +int main(int argc, const char * argv[]) +{ + return NSApplicationMain(argc, argv); +} + +#else + +int main(int argc, char * argv[]) +{ + @autoreleasepool + { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} + +#endif diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_apple_opengl2/example_apple_opengl2.xcodeproj/project.pbxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_opengl2/example_apple_opengl2.xcodeproj/project.pbxproj new file mode 100644 index 0000000..a168373 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_opengl2/example_apple_opengl2.xcodeproj/project.pbxproj @@ -0,0 +1,332 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 05E31B59274EF0700083FCB6 /* GameController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 05E31B57274EF0360083FCB6 /* GameController.framework */; }; + 07A82EDB213941D00078D120 /* imgui_widgets.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07A82EDA213941D00078D120 /* imgui_widgets.cpp */; }; + 4080A99820B02D340036BA46 /* main.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4080A98A20B02CD90036BA46 /* main.mm */; }; + 4080A9A220B034280036BA46 /* imgui_impl_opengl2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4080A99E20B034280036BA46 /* imgui_impl_opengl2.cpp */; }; + 4080A9AD20B0343C0036BA46 /* imgui_demo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4080A9A620B0343C0036BA46 /* imgui_demo.cpp */; }; + 4080A9AE20B0343C0036BA46 /* imgui.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4080A9A720B0343C0036BA46 /* imgui.cpp */; }; + 4080A9AF20B0343C0036BA46 /* imgui_draw.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4080A9AA20B0343C0036BA46 /* imgui_draw.cpp */; }; + 4080A9B020B0347A0036BA46 /* imgui_impl_osx.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4080A99F20B034280036BA46 /* imgui_impl_osx.mm */; }; + 4080A9B320B034E40036BA46 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4080A9B220B034E40036BA46 /* Cocoa.framework */; }; + 4080A9B520B034EA0036BA46 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4080A9B420B034EA0036BA46 /* OpenGL.framework */; }; + 50798230257677FD0038A28D /* imgui_tables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5079822F257677FC0038A28D /* imgui_tables.cpp */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 4080A96920B029B00036BA46 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = /usr/share/man/man1/; + dstSubfolderSpec = 0; + files = ( + ); + runOnlyForDeploymentPostprocessing = 1; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 05E31B57274EF0360083FCB6 /* GameController.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GameController.framework; path = System/Library/Frameworks/GameController.framework; sourceTree = SDKROOT; }; + 07A82EDA213941D00078D120 /* imgui_widgets.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_widgets.cpp; path = ../../imgui_widgets.cpp; sourceTree = ""; }; + 4080A96B20B029B00036BA46 /* example_osx_opengl2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = example_osx_opengl2; sourceTree = BUILT_PRODUCTS_DIR; }; + 4080A98A20B02CD90036BA46 /* main.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = main.mm; sourceTree = SOURCE_ROOT; }; + 4080A99E20B034280036BA46 /* imgui_impl_opengl2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_impl_opengl2.cpp; path = ../../backends/imgui_impl_opengl2.cpp; sourceTree = ""; }; + 4080A99F20B034280036BA46 /* imgui_impl_osx.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = imgui_impl_osx.mm; path = ../../backends/imgui_impl_osx.mm; sourceTree = ""; }; + 4080A9A020B034280036BA46 /* imgui_impl_opengl2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui_impl_opengl2.h; path = ../../backends/imgui_impl_opengl2.h; sourceTree = ""; }; + 4080A9A120B034280036BA46 /* imgui_impl_osx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui_impl_osx.h; path = ../../backends/imgui_impl_osx.h; sourceTree = ""; }; + 4080A9A520B0343C0036BA46 /* imgui_internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui_internal.h; path = ../../imgui_internal.h; sourceTree = ""; }; + 4080A9A620B0343C0036BA46 /* imgui_demo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_demo.cpp; path = ../../imgui_demo.cpp; sourceTree = ""; }; + 4080A9A720B0343C0036BA46 /* imgui.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui.cpp; path = ../../imgui.cpp; sourceTree = ""; }; + 4080A9A820B0343C0036BA46 /* imgui.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui.h; path = ../../imgui.h; sourceTree = ""; }; + 4080A9AA20B0343C0036BA46 /* imgui_draw.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_draw.cpp; path = ../../imgui_draw.cpp; sourceTree = ""; }; + 4080A9AC20B0343C0036BA46 /* imconfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imconfig.h; path = ../../imconfig.h; sourceTree = ""; }; + 4080A9B220B034E40036BA46 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; + 4080A9B420B034EA0036BA46 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; }; + 5079822F257677FC0038A28D /* imgui_tables.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_tables.cpp; path = ../../imgui_tables.cpp; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4080A96820B029B00036BA46 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4080A9B520B034EA0036BA46 /* OpenGL.framework in Frameworks */, + 4080A9B320B034E40036BA46 /* Cocoa.framework in Frameworks */, + 05E31B59274EF0700083FCB6 /* GameController.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4080A96220B029B00036BA46 = { + isa = PBXGroup; + children = ( + 5079822F257677FC0038A28D /* imgui_tables.cpp */, + 4080A9AC20B0343C0036BA46 /* imconfig.h */, + 4080A9A720B0343C0036BA46 /* imgui.cpp */, + 4080A9A820B0343C0036BA46 /* imgui.h */, + 07A82EDA213941D00078D120 /* imgui_widgets.cpp */, + 4080A9A620B0343C0036BA46 /* imgui_demo.cpp */, + 4080A9AA20B0343C0036BA46 /* imgui_draw.cpp */, + 4080A9A520B0343C0036BA46 /* imgui_internal.h */, + 4080A99E20B034280036BA46 /* imgui_impl_opengl2.cpp */, + 4080A9A020B034280036BA46 /* imgui_impl_opengl2.h */, + 4080A9A120B034280036BA46 /* imgui_impl_osx.h */, + 4080A99F20B034280036BA46 /* imgui_impl_osx.mm */, + 4080A98A20B02CD90036BA46 /* main.mm */, + 4080A96C20B029B00036BA46 /* Products */, + 4080A9B120B034E40036BA46 /* Frameworks */, + ); + sourceTree = ""; + }; + 4080A96C20B029B00036BA46 /* Products */ = { + isa = PBXGroup; + children = ( + 4080A96B20B029B00036BA46 /* example_osx_opengl2 */, + ); + name = Products; + sourceTree = ""; + }; + 4080A9B120B034E40036BA46 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 05E31B57274EF0360083FCB6 /* GameController.framework */, + 4080A9B420B034EA0036BA46 /* OpenGL.framework */, + 4080A9B220B034E40036BA46 /* Cocoa.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 4080A96A20B029B00036BA46 /* example_osx_opengl2 */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4080A97220B029B00036BA46 /* Build configuration list for PBXNativeTarget "example_osx_opengl2" */; + buildPhases = ( + 4080A96720B029B00036BA46 /* Sources */, + 4080A96820B029B00036BA46 /* Frameworks */, + 4080A96920B029B00036BA46 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = example_osx_opengl2; + productName = example_osx_opengl2; + productReference = 4080A96B20B029B00036BA46 /* example_osx_opengl2 */; + productType = "com.apple.product-type.tool"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 4080A96320B029B00036BA46 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0930; + ORGANIZATIONNAME = ImGui; + TargetAttributes = { + 4080A96A20B029B00036BA46 = { + CreatedOnToolsVersion = 9.3.1; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 4080A96620B029B00036BA46 /* Build configuration list for PBXProject "example_apple_opengl2" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 4080A96220B029B00036BA46; + productRefGroup = 4080A96C20B029B00036BA46 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 4080A96A20B029B00036BA46 /* example_osx_opengl2 */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 4080A96720B029B00036BA46 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4080A99820B02D340036BA46 /* main.mm in Sources */, + 4080A9AD20B0343C0036BA46 /* imgui_demo.cpp in Sources */, + 4080A9AF20B0343C0036BA46 /* imgui_draw.cpp in Sources */, + 4080A9A220B034280036BA46 /* imgui_impl_opengl2.cpp in Sources */, + 4080A9B020B0347A0036BA46 /* imgui_impl_osx.mm in Sources */, + 4080A9AE20B0343C0036BA46 /* imgui.cpp in Sources */, + 50798230257677FD0038A28D /* imgui_tables.cpp in Sources */, + 07A82EDB213941D00078D120 /* imgui_widgets.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 4080A97020B029B00036BA46 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.13; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + }; + name = Debug; + }; + 4080A97120B029B00036BA46 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.13; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + }; + name = Release; + }; + 4080A97320B029B00036BA46 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + MACOSX_DEPLOYMENT_TARGET = 10.12; + PRODUCT_NAME = "$(TARGET_NAME)"; + USER_HEADER_SEARCH_PATHS = ../..; + }; + name = Debug; + }; + 4080A97420B029B00036BA46 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + MACOSX_DEPLOYMENT_TARGET = 10.12; + PRODUCT_NAME = "$(TARGET_NAME)"; + USER_HEADER_SEARCH_PATHS = ../..; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4080A96620B029B00036BA46 /* Build configuration list for PBXProject "example_apple_opengl2" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4080A97020B029B00036BA46 /* Debug */, + 4080A97120B029B00036BA46 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4080A97220B029B00036BA46 /* Build configuration list for PBXNativeTarget "example_osx_opengl2" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4080A97320B029B00036BA46 /* Debug */, + 4080A97420B029B00036BA46 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 4080A96320B029B00036BA46 /* Project object */; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_apple_opengl2/main.mm b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_opengl2/main.mm new file mode 100644 index 0000000..11829a8 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_apple_opengl2/main.mm @@ -0,0 +1,273 @@ +// Dear ImGui: standalone example application for OSX + OpenGL2, using legacy fixed pipeline + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#import +#import +#import + +#include "imgui.h" +#include "imgui_impl_opengl2.h" +#include "imgui_impl_osx.h" + +//----------------------------------------------------------------------------------- +// AppView +//----------------------------------------------------------------------------------- + +@interface AppView : NSOpenGLView +{ + NSTimer* animationTimer; +} +@end + +@implementation AppView + +-(void)prepareOpenGL +{ + [super prepareOpenGL]; + +#ifndef DEBUG + GLint swapInterval = 1; + [[self openGLContext] setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval]; + if (swapInterval == 0) + NSLog(@"Error: Cannot set swap interval."); +#endif +} + +-(void)initialize +{ + // Setup Dear ImGui context + // FIXME: This example doesn't have proper cleanup... + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplOSX_Init(self); + ImGui_ImplOpenGL2_Init(); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); +} + +-(void)updateAndDrawDemoView +{ + // Start the Dear ImGui frame + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplOpenGL2_NewFrame(); + ImGui_ImplOSX_NewFrame(self); + ImGui::NewFrame(); + + // Our state (make them static = more or less global) as a convenience to keep the example terse. + static bool show_demo_window = true; + static bool show_another_window = false; + static ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + ImDrawData* draw_data = ImGui::GetDrawData(); + + [[self openGLContext] makeCurrentContext]; + GLsizei width = (GLsizei)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); + GLsizei height = (GLsizei)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); + glViewport(0, 0, width, height); + glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + + ImGui_ImplOpenGL2_RenderDrawData(draw_data); + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + } + + // Present + [[self openGLContext] flushBuffer]; + + if (!animationTimer) + animationTimer = [NSTimer scheduledTimerWithTimeInterval:0.017 target:self selector:@selector(animationTimerFired:) userInfo:nil repeats:YES]; +} + +-(void)reshape { [super reshape]; [[self openGLContext] update]; [self updateAndDrawDemoView]; } +-(void)drawRect:(NSRect)bounds { [self updateAndDrawDemoView]; } +-(void)animationTimerFired:(NSTimer*)timer { [self setNeedsDisplay:YES]; } +-(void)dealloc { animationTimer = nil; } + +@end + +//----------------------------------------------------------------------------------- +// AppDelegate +//----------------------------------------------------------------------------------- + +@interface AppDelegate : NSObject +@property (nonatomic, readonly) NSWindow* window; +@end + +@implementation AppDelegate +@synthesize window = _window; + +-(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication +{ + return YES; +} + +-(NSWindow*)window +{ + if (_window != nil) + return (_window); + + NSRect viewRect = NSMakeRect(100.0, 100.0, 100.0 + 1280.0, 100 + 720.0); + + _window = [[NSWindow alloc] initWithContentRect:viewRect styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskMiniaturizable|NSWindowStyleMaskResizable|NSWindowStyleMaskClosable backing:NSBackingStoreBuffered defer:YES]; + [_window setTitle:@"Dear ImGui OSX+OpenGL2 Example"]; + [_window setAcceptsMouseMovedEvents:YES]; + [_window setOpaque:YES]; + [_window makeKeyAndOrderFront:NSApp]; + + return (_window); +} + +-(void)setupMenu +{ + NSMenu* mainMenuBar = [[NSMenu alloc] init]; + NSMenu* appMenu; + NSMenuItem* menuItem; + + appMenu = [[NSMenu alloc] initWithTitle:@"Dear ImGui OSX+OpenGL2 Example"]; + menuItem = [appMenu addItemWithTitle:@"Quit Dear ImGui OSX+OpenGL2 Example" action:@selector(terminate:) keyEquivalent:@"q"]; + [menuItem setKeyEquivalentModifierMask:NSEventModifierFlagCommand]; + + menuItem = [[NSMenuItem alloc] init]; + [menuItem setSubmenu:appMenu]; + + [mainMenuBar addItem:menuItem]; + + appMenu = nil; + [NSApp setMainMenu:mainMenuBar]; +} + +-(void)dealloc +{ + _window = nil; +} + +-(void)applicationDidFinishLaunching:(NSNotification *)aNotification +{ + // Make the application a foreground application (else it won't receive keyboard events) + ProcessSerialNumber psn = {0, kCurrentProcess}; + TransformProcessType(&psn, kProcessTransformToForegroundApplication); + + // Menu + [self setupMenu]; + + NSOpenGLPixelFormatAttribute attrs[] = + { + NSOpenGLPFADoubleBuffer, + NSOpenGLPFADepthSize, 32, + 0 + }; + + NSOpenGLPixelFormat* format = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs]; + AppView* view = [[AppView alloc] initWithFrame:self.window.frame pixelFormat:format]; + format = nil; +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 + if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) + [view setWantsBestResolutionOpenGLSurface:YES]; +#endif // MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 + [self.window setContentView:view]; + + if ([view openGLContext] == nil) + NSLog(@"No OpenGL Context!"); + + [view initialize]; +} + +@end + +//----------------------------------------------------------------------------------- +// Application main() function +//----------------------------------------------------------------------------------- + +int main(int argc, const char* argv[]) +{ + @autoreleasepool + { + NSApp = [NSApplication sharedApplication]; + AppDelegate* delegate = [[AppDelegate alloc] init]; + [[NSApplication sharedApplication] setDelegate:delegate]; + [NSApp run]; + } + return NSApplicationMain(argc, argv); +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_emscripten_wgpu/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_emscripten_wgpu/Makefile new file mode 100644 index 0000000..5c79f0c --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_emscripten_wgpu/Makefile @@ -0,0 +1,88 @@ +# +# Makefile to use with emscripten +# See https://emscripten.org/docs/getting_started/downloads.html +# for installation instructions. +# +# This Makefile assumes you have loaded emscripten's environment. +# (On Windows, you may need to execute emsdk_env.bat or encmdprompt.bat ahead) +# +# Running `make` will produce three files: +# - web/index.html (current stored in the repository) +# - web/index.js +# - web/index.wasm +# +# All three are needed to run the demo. + +CC = emcc +CXX = em++ +WEB_DIR = web +EXE = $(WEB_DIR)/index.js +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_wgpu.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) +CPPFLAGS = +LDFLAGS = +EMS = + +##--------------------------------------------------------------------- +## EMSCRIPTEN OPTIONS +##--------------------------------------------------------------------- + +# ("EMS" options gets added to both CPPFLAGS and LDFLAGS, whereas some options are for linker only) +EMS += -s DISABLE_EXCEPTION_CATCHING=1 +LDFLAGS += -s USE_GLFW=3 -s USE_WEBGPU=1 +LDFLAGS += -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s NO_EXIT_RUNTIME=0 -s ASSERTIONS=1 + +# Emscripten allows preloading a file or folder to be accessible at runtime. +# The Makefile for this example project suggests embedding the misc/fonts/ folder into our application, it will then be accessible as "/fonts" +# See documentation for more details: https://emscripten.org/docs/porting/files/packaging_files.html +# (Default value is 0. Set to 1 to enable file-system and include the misc/fonts/ folder as part of the build.) +USE_FILE_SYSTEM ?= 0 +ifeq ($(USE_FILE_SYSTEM), 0) +LDFLAGS += -s NO_FILESYSTEM=1 +CPPFLAGS += -DIMGUI_DISABLE_FILE_FUNCTIONS +endif +ifeq ($(USE_FILE_SYSTEM), 1) +LDFLAGS += --no-heap-copy --preload-file ../../misc/fonts@/fonts +endif + +##--------------------------------------------------------------------- +## FINAL BUILD FLAGS +##--------------------------------------------------------------------- + +CPPFLAGS += -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +#CPPFLAGS += -g +CPPFLAGS += -Wall -Wformat -Os $(EMS) +#LDFLAGS += --shell-file shell_minimal.html +LDFLAGS += $(EMS) + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(EXE) + +$(WEB_DIR): + mkdir $@ + +serve: all + python3 -m http.server -d $(WEB_DIR) + +$(EXE): $(OBJS) $(WEB_DIR) + $(CXX) -o $@ $(OBJS) $(LDFLAGS) + +clean: + rm -f $(EXE) $(OBJS) $(WEB_DIR)/*.js $(WEB_DIR)/*.wasm $(WEB_DIR)/*.wasm.pre diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_emscripten_wgpu/README.md b/HexaGen.Tests/cpp2c/imgui/examples/example_emscripten_wgpu/README.md new file mode 100644 index 0000000..c4c4dec --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_emscripten_wgpu/README.md @@ -0,0 +1,24 @@ +## How to Build + +- You need to install Emscripten from https://emscripten.org/docs/getting_started/downloads.html, and have the environment variables set, as described in https://emscripten.org/docs/getting_started/downloads.html#installation-instructions + +- Depending on your configuration, in Windows you may need to run `emsdk/emsdk_env.bat` in your console to access the Emscripten command-line tools. + +- You may also refer to our [Continuous Integration setup](https://github.com/ocornut/imgui/tree/master/.github/workflows) for Emscripten setup. + +- Then build using `make` while in the `example_emscripten_wgpu/` directory. + +- Requires recent Emscripten as WGPU is still a work-in-progress API. + +## How to Run + +To run on a local machine: +- Make sure your browse supports WGPU and it is enabled. WGPU is still WIP not enabled by default in most browser. +- `make serve` will use Python3 to spawn a local webserver, you can then browse http://localhost:8000 to access your build. +- Otherwise, generally you will need a local webserver: + - Quoting [https://emscripten.org/docs/getting_started](https://emscripten.org/docs/getting_started/Tutorial.html#generating-html):
+_"Unfortunately several browsers (including Chrome, Safari, and Internet Explorer) do not support file:// [XHR](https://emscripten.org/docs/site/glossary.html#term-xhr) requests, and can’t load extra files needed by the HTML (like a .wasm file, or packaged file data as mentioned lower down). For these browsers you’ll need to serve the files using a [local webserver](https://emscripten.org/docs/getting_started/FAQ.html#faq-local-webserver) and then open http://localhost:8000/hello.html."_ + - Emscripten SDK has a handy `emrun` command: `emrun web/example_emscripten_opengl3.html --browser firefox` which will spawn a temporary local webserver (in Firefox). See https://emscripten.org/docs/compiling/Running-html-files-with-emrun.html for details. + - You may use Python 3 builtin webserver: `python -m http.server -d web` (this is what `make serve` uses). + - You may use Python 2 builtin webserver: `cd web && python -m SimpleHTTPServer`. + - If you are accessing the files over a network, certain browsers, such as Firefox, will restrict Gamepad API access to secure contexts only (e.g. https only). diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_emscripten_wgpu/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_emscripten_wgpu/main.cpp new file mode 100644 index 0000000..a2126bc --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_emscripten_wgpu/main.cpp @@ -0,0 +1,253 @@ +// Dear ImGui: standalone example application for Emscripten, using GLFW + WebGPU +// (Emscripten is a C++-to-javascript compiler, used to publish executables for the web. See https://emscripten.org/) + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#include "imgui_impl_glfw.h" +#include "imgui_impl_wgpu.h" +#include +#include +#include +#include +#include +#include +#include + +// Global WebGPU required states +static WGPUDevice wgpu_device = nullptr; +static WGPUSurface wgpu_surface = nullptr; +static WGPUTextureFormat wgpu_preferred_fmt = WGPUTextureFormat_RGBA8Unorm; +static WGPUSwapChain wgpu_swap_chain = nullptr; +static int wgpu_swap_chain_width = 0; +static int wgpu_swap_chain_height = 0; + +// Forward declarations +static void MainLoopStep(void* window); +static bool InitWGPU(); +static void print_glfw_error(int error, const char* description); +static void print_wgpu_error(WGPUErrorType error_type, const char* message, void*); + +// Main code +int main(int, char**) +{ + glfwSetErrorCallback(print_glfw_error); + if (!glfwInit()) + return 1; + + // Make sure GLFW does not initialize any graphics context. + // This needs to be done explicitly later. + glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); + GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+WebGPU example", nullptr, nullptr); + if (!window) + { + glfwTerminate(); + return 1; + } + + // Initialize the WebGPU environment + if (!InitWGPU()) + { + if (window) + glfwDestroyWindow(window); + glfwTerminate(); + return 1; + } + glfwShowWindow(window); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + + // For an Emscripten build we are disabling file-system access, so let's not attempt to do a fopen() of the imgui.ini file. + // You may manually call LoadIniSettingsFromMemory() to load settings from your own storage. + io.IniFilename = nullptr; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // Setup Platform/Renderer backends + ImGui_ImplGlfw_InitForOther(window, true); + ImGui_ImplWGPU_Init(wgpu_device, 3, wgpu_preferred_fmt, WGPUTextureFormat_Undefined); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + // - Emscripten allows preloading a file or folder to be accessible at runtime. See Makefile for details. + //io.Fonts->AddFontDefault(); +#ifndef IMGUI_DISABLE_FILE_FUNCTIONS + //io.Fonts->AddFontFromFileTTF("fonts/segoeui.ttf", 18.0f); + io.Fonts->AddFontFromFileTTF("fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("fonts/Cousine-Regular.ttf", 15.0f); + //io.Fonts->AddFontFromFileTTF("fonts/ProggyTiny.ttf", 10.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("fonts/ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); +#endif + + // This function will directly return and exit the main function. + // Make sure that no required objects get cleaned up. + // This way we can use the browsers 'requestAnimationFrame' to control the rendering. + emscripten_set_main_loop_arg(MainLoopStep, window, 0, false); + + return 0; +} + +static bool InitWGPU() +{ + wgpu_device = emscripten_webgpu_get_device(); + if (!wgpu_device) + return false; + + wgpuDeviceSetUncapturedErrorCallback(wgpu_device, print_wgpu_error, nullptr); + + // Use C++ wrapper due to misbehavior in Emscripten. + // Some offset computation for wgpuInstanceCreateSurface in JavaScript + // seem to be inline with struct alignments in the C++ structure + wgpu::SurfaceDescriptorFromCanvasHTMLSelector html_surface_desc = {}; + html_surface_desc.selector = "#canvas"; + + wgpu::SurfaceDescriptor surface_desc = {}; + surface_desc.nextInChain = &html_surface_desc; + + wgpu::Instance instance = wgpuCreateInstance(nullptr); + wgpu::Surface surface = instance.CreateSurface(&surface_desc); + wgpu::Adapter adapter = {}; + wgpu_preferred_fmt = (WGPUTextureFormat)surface.GetPreferredFormat(adapter); + wgpu_surface = surface.Release(); + + return true; +} + +static void MainLoopStep(void* window) +{ + ImGuiIO& io = ImGui::GetIO(); + + glfwPollEvents(); + + int width, height; + glfwGetFramebufferSize((GLFWwindow*)window, &width, &height); + + // React to changes in screen size + if (width != wgpu_swap_chain_width && height != wgpu_swap_chain_height) + { + ImGui_ImplWGPU_InvalidateDeviceObjects(); + if (wgpu_swap_chain) + wgpuSwapChainRelease(wgpu_swap_chain); + wgpu_swap_chain_width = width; + wgpu_swap_chain_height = height; + WGPUSwapChainDescriptor swap_chain_desc = {}; + swap_chain_desc.usage = WGPUTextureUsage_RenderAttachment; + swap_chain_desc.format = wgpu_preferred_fmt; + swap_chain_desc.width = width; + swap_chain_desc.height = height; + swap_chain_desc.presentMode = WGPUPresentMode_Fifo; + wgpu_swap_chain = wgpuDeviceCreateSwapChain(wgpu_device, wgpu_surface, &swap_chain_desc); + ImGui_ImplWGPU_CreateDeviceObjects(); + } + + // Start the Dear ImGui frame + ImGui_ImplWGPU_NewFrame(); + ImGui_ImplGlfw_NewFrame(); + ImGui::NewFrame(); + + // Our state + // (we use static, which essentially makes the variable globals, as a convenience to keep the example code easy to follow) + static bool show_demo_window = true; + static bool show_another_window = false; + static ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + + WGPURenderPassColorAttachment color_attachments = {}; + color_attachments.loadOp = WGPULoadOp_Clear; + color_attachments.storeOp = WGPUStoreOp_Store; + color_attachments.clearValue = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; + color_attachments.view = wgpuSwapChainGetCurrentTextureView(wgpu_swap_chain); + WGPURenderPassDescriptor render_pass_desc = {}; + render_pass_desc.colorAttachmentCount = 1; + render_pass_desc.colorAttachments = &color_attachments; + render_pass_desc.depthStencilAttachment = nullptr; + + WGPUCommandEncoderDescriptor enc_desc = {}; + WGPUCommandEncoder encoder = wgpuDeviceCreateCommandEncoder(wgpu_device, &enc_desc); + + WGPURenderPassEncoder pass = wgpuCommandEncoderBeginRenderPass(encoder, &render_pass_desc); + ImGui_ImplWGPU_RenderDrawData(ImGui::GetDrawData(), pass); + wgpuRenderPassEncoderEnd(pass); + + WGPUCommandBufferDescriptor cmd_buffer_desc = {}; + WGPUCommandBuffer cmd_buffer = wgpuCommandEncoderFinish(encoder, &cmd_buffer_desc); + WGPUQueue queue = wgpuDeviceGetQueue(wgpu_device); + wgpuQueueSubmit(queue, 1, &cmd_buffer); +} + +static void print_glfw_error(int error, const char* description) +{ + printf("GLFW Error %d: %s\n", error, description); +} + +static void print_wgpu_error(WGPUErrorType error_type, const char* message, void*) +{ + const char* error_type_lbl = ""; + switch (error_type) + { + case WGPUErrorType_Validation: error_type_lbl = "Validation"; break; + case WGPUErrorType_OutOfMemory: error_type_lbl = "Out of memory"; break; + case WGPUErrorType_Unknown: error_type_lbl = "Unknown"; break; + case WGPUErrorType_DeviceLost: error_type_lbl = "Device lost"; break; + default: error_type_lbl = "Unknown"; + } + printf("%s error: %s\n", error_type_lbl, message); +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_metal/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_metal/Makefile new file mode 100644 index 0000000..82d5ac9 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_metal/Makefile @@ -0,0 +1,46 @@ +# +# You will need GLFW (http://www.glfw.org): +# brew install glfw +# + +#CXX = g++ +#CXX = clang++ + +EXE = example_glfw_metal +IMGUI_DIR = ../.. +SOURCES = main.mm +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_metal.mm +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) + +LIBS = -framework Metal -framework MetalKit -framework Cocoa -framework IOKit -framework CoreVideo -framework QuartzCore +LIBS += -L/usr/local/lib -L/opt/homebrew/lib +LIBS += -lglfw + +CXXFLAGS = -std=c++11 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -I/usr/local/include -I/opt/homebrew/include +CXXFLAGS += -Wall -Wformat +CFLAGS = $(CXXFLAGS) + +%.o:%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:%.mm + $(CXX) $(CXXFLAGS) -ObjC++ -fobjc-weak -fobjc-arc -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.mm + $(CXX) $(CXXFLAGS) -ObjC++ -fobjc-weak -fobjc-arc -c -o $@ $< + +all: $(EXE) + @echo Build complete + +$(EXE): $(OBJS) + $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) + +clean: + rm -f $(EXE) $(OBJS) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_metal/main.mm b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_metal/main.mm new file mode 100644 index 0000000..2f346ff --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_metal/main.mm @@ -0,0 +1,194 @@ +// Dear ImGui: standalone example application for GLFW + Metal, using programmable pipeline +// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#include "imgui_impl_glfw.h" +#include "imgui_impl_metal.h" +#include + +#define GLFW_INCLUDE_NONE +#define GLFW_EXPOSE_NATIVE_COCOA +#include +#include + +#import +#import + +static void glfw_error_callback(int error, const char* description) +{ + fprintf(stderr, "Glfw Error %d: %s\n", error, description); +} + +int main(int, char**) +{ + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + + // Setup style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Setup window + glfwSetErrorCallback(glfw_error_callback); + if (!glfwInit()) + return 1; + + // Create window with graphics context + glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); + GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+Metal example", nullptr, nullptr); + if (window == nullptr) + return 1; + + id device = MTLCreateSystemDefaultDevice(); + id commandQueue = [device newCommandQueue]; + + // Setup Platform/Renderer backends + ImGui_ImplGlfw_InitForOther(window, true); + ImGui_ImplMetal_Init(device); + + NSWindow *nswin = glfwGetCocoaWindow(window); + CAMetalLayer *layer = [CAMetalLayer layer]; + layer.device = device; + layer.pixelFormat = MTLPixelFormatBGRA8Unorm; + nswin.contentView.layer = layer; + nswin.contentView.wantsLayer = YES; + + MTLRenderPassDescriptor *renderPassDescriptor = [MTLRenderPassDescriptor new]; + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + float clear_color[4] = {0.45f, 0.55f, 0.60f, 1.00f}; + + // Main loop + while (!glfwWindowShouldClose(window)) + { + @autoreleasepool + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + glfwPollEvents(); + + int width, height; + glfwGetFramebufferSize(window, &width, &height); + layer.drawableSize = CGSizeMake(width, height); + id drawable = [layer nextDrawable]; + + id commandBuffer = [commandQueue commandBuffer]; + renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColorMake(clear_color[0] * clear_color[3], clear_color[1] * clear_color[3], clear_color[2] * clear_color[3], clear_color[3]); + renderPassDescriptor.colorAttachments[0].texture = drawable.texture; + renderPassDescriptor.colorAttachments[0].loadAction = MTLLoadActionClear; + renderPassDescriptor.colorAttachments[0].storeAction = MTLStoreActionStore; + id renderEncoder = [commandBuffer renderCommandEncoderWithDescriptor:renderPassDescriptor]; + [renderEncoder pushDebugGroup:@"ImGui demo"]; + + // Start the Dear ImGui frame + ImGui_ImplMetal_NewFrame(renderPassDescriptor); + ImGui_ImplGlfw_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + ImGui_ImplMetal_RenderDrawData(ImGui::GetDrawData(), commandBuffer, renderEncoder); + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + } + + [renderEncoder popDebugGroup]; + [renderEncoder endEncoding]; + + [commandBuffer presentDrawable:drawable]; + [commandBuffer commit]; + } + } + + // Cleanup + ImGui_ImplMetal_Shutdown(); + ImGui_ImplGlfw_Shutdown(); + ImGui::DestroyContext(); + + glfwDestroyWindow(window); + glfwTerminate(); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/Makefile new file mode 100644 index 0000000..1f15c15 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/Makefile @@ -0,0 +1,81 @@ +# +# Cross Platform Makefile +# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X +# +# You will need GLFW (http://www.glfw.org): +# Linux: +# apt-get install libglfw-dev +# Mac OS X: +# brew install glfw +# MSYS2: +# pacman -S --noconfirm --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-glfw +# + +#CXX = g++ +#CXX = clang++ + +EXE = example_glfw_opengl2 +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl2.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) + +CXXFLAGS = -std=c++11 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +CXXFLAGS += -g -Wall -Wformat +LIBS = + +##--------------------------------------------------------------------- +## BUILD FLAGS PER PLATFORM +##--------------------------------------------------------------------- + +ifeq ($(UNAME_S), Linux) #LINUX + ECHO_MESSAGE = "Linux" + LIBS += -lGL `pkg-config --static --libs glfw3` + + CXXFLAGS += `pkg-config --cflags glfw3` + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(UNAME_S), Darwin) #APPLE + ECHO_MESSAGE = "Mac OS X" + LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo + LIBS += -L/usr/local/lib -L/opt/local/lib -L/opt/homebrew/lib + #LIBS += -lglfw3 + LIBS += -lglfw + + CXXFLAGS += -I/usr/local/include -I/opt/local/include -I/opt/homebrew/include + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(OS), Windows_NT) + ECHO_MESSAGE = "MinGW" + LIBS += -lglfw3 -lgdi32 -lopengl32 -limm32 + + CXXFLAGS += `pkg-config --cflags glfw3` + CFLAGS = $(CXXFLAGS) +endif + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(ECHO_MESSAGE) + +$(EXE): $(OBJS) + $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) + +clean: + rm -f $(EXE) $(OBJS) + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/build_win32.bat new file mode 100644 index 0000000..24c0e08 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/build_win32.bat @@ -0,0 +1,8 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_glfw_opengl2 +@set INCLUDES=/I..\.. /I..\..\backends /I..\libs\glfw\include +@set SOURCES=main.cpp ..\..\backends\imgui_impl_opengl2.cpp ..\..\backends\imgui_impl_glfw.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:..\libs\glfw\lib-vc2010-32 glfw3.lib opengl32.lib gdi32.lib shell32.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj new file mode 100644 index 0000000..2aa2550 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj @@ -0,0 +1,186 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {9CDA7840-B7A5-496D-A527-E95571496D18} + example_glfw_opengl2 + 8.1 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + ..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) + opengl32.lib;glfw3.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + ..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) + opengl32.lib;glfw3.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + ..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) + opengl32.lib;glfw3.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + ..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) + opengl32.lib;glfw3.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj.filters new file mode 100644 index 0000000..049b0b1 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj.filters @@ -0,0 +1,64 @@ + + + + + {c336cfe3-f0c4-464c-9ef0-a9e17a7ff222} + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + sources + + + imgui + + + imgui + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/main.cpp new file mode 100644 index 0000000..1ed2083 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl2/main.cpp @@ -0,0 +1,189 @@ +// Dear ImGui: standalone example application for GLFW + OpenGL2, using legacy fixed pipeline +// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)** +// **Prefer using the code in the example_glfw_opengl2/ folder** +// See imgui_impl_glfw.cpp for details. + +#include "imgui.h" +#include "imgui_impl_glfw.h" +#include "imgui_impl_opengl2.h" +#include +#ifdef __APPLE__ +#define GL_SILENCE_DEPRECATION +#endif +#include + +// [Win32] Our example includes a copy of glfw3.lib pre-compiled with VS2010 to maximize ease of testing and compatibility with old VS compilers. +// To link with VS2010-era libraries, VS2015+ requires linking with legacy_stdio_definitions.lib, which we do using this pragma. +// Your own project should not be affected, as you are likely to link with a newer binary of GLFW that is adequate for your version of Visual Studio. +#if defined(_MSC_VER) && (_MSC_VER >= 1900) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#pragma comment(lib, "legacy_stdio_definitions") +#endif + +static void glfw_error_callback(int error, const char* description) +{ + fprintf(stderr, "GLFW Error %d: %s\n", error, description); +} + +// Main code +int main(int, char**) +{ + glfwSetErrorCallback(glfw_error_callback); + if (!glfwInit()) + return 1; + + // Create window with graphics context + GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+OpenGL2 example", nullptr, nullptr); + if (window == nullptr) + return 1; + glfwMakeContextCurrent(window); + glfwSwapInterval(1); // Enable vsync + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigViewportsNoAutoMerge = true; + //io.ConfigViewportsNoTaskBarIcon = true; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplGlfw_InitForOpenGL(window, true); + ImGui_ImplOpenGL2_Init(); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + while (!glfwWindowShouldClose(window)) + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + glfwPollEvents(); + + // Start the Dear ImGui frame + ImGui_ImplOpenGL2_NewFrame(); + ImGui_ImplGlfw_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + int display_w, display_h; + glfwGetFramebufferSize(window, &display_w, &display_h); + glViewport(0, 0, display_w, display_h); + glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + + // If you are using this code with non-legacy OpenGL header/contexts (which you should not, prefer using imgui_impl_opengl3.cpp!!), + // you may need to backup/reset/restore other state, e.g. for current shader using the commented lines below. + //GLint last_program; + //glGetIntegerv(GL_CURRENT_PROGRAM, &last_program); + //glUseProgram(0); + ImGui_ImplOpenGL2_RenderDrawData(ImGui::GetDrawData()); + //glUseProgram(last_program); + + // Update and Render additional Platform Windows + // (Platform functions may change the current OpenGL context, so we save/restore it to make it easier to paste this code elsewhere. + // For this specific demo app we could also call glfwMakeContextCurrent(window) directly) + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + GLFWwindow* backup_current_context = glfwGetCurrentContext(); + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + glfwMakeContextCurrent(backup_current_context); + } + + glfwMakeContextCurrent(window); + glfwSwapBuffers(window); + } + + // Cleanup + ImGui_ImplOpenGL2_Shutdown(); + ImGui_ImplGlfw_Shutdown(); + ImGui::DestroyContext(); + + glfwDestroyWindow(window); + glfwTerminate(); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/Makefile new file mode 100644 index 0000000..252ce57 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/Makefile @@ -0,0 +1,89 @@ +# +# Cross Platform Makefile +# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X +# +# You will need GLFW (http://www.glfw.org): +# Linux: +# apt-get install libglfw-dev +# Mac OS X: +# brew install glfw +# MSYS2: +# pacman -S --noconfirm --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-glfw +# + +#CXX = g++ +#CXX = clang++ + +EXE = example_glfw_opengl3 +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) +LINUX_GL_LIBS = -lGL + +CXXFLAGS = -std=c++11 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +CXXFLAGS += -g -Wall -Wformat +LIBS = + +##--------------------------------------------------------------------- +## OPENGL ES +##--------------------------------------------------------------------- + +## This assumes a GL ES library available in the system, e.g. libGLESv2.so +# CXXFLAGS += -DIMGUI_IMPL_OPENGL_ES2 +# LINUX_GL_LIBS = -lGLESv2 + +##--------------------------------------------------------------------- +## BUILD FLAGS PER PLATFORM +##--------------------------------------------------------------------- + +ifeq ($(UNAME_S), Linux) #LINUX + ECHO_MESSAGE = "Linux" + LIBS += $(LINUX_GL_LIBS) `pkg-config --static --libs glfw3` + + CXXFLAGS += `pkg-config --cflags glfw3` + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(UNAME_S), Darwin) #APPLE + ECHO_MESSAGE = "Mac OS X" + LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo + LIBS += -L/usr/local/lib -L/opt/local/lib -L/opt/homebrew/lib + #LIBS += -lglfw3 + LIBS += -lglfw + + CXXFLAGS += -I/usr/local/include -I/opt/local/include -I/opt/homebrew/include + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(OS), Windows_NT) + ECHO_MESSAGE = "MinGW" + LIBS += -lglfw3 -lgdi32 -lopengl32 -limm32 + + CXXFLAGS += `pkg-config --cflags glfw3` + CFLAGS = $(CXXFLAGS) +endif + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(ECHO_MESSAGE) + +$(EXE): $(OBJS) + $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) + +clean: + rm -f $(EXE) $(OBJS) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/Makefile.emscripten b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/Makefile.emscripten new file mode 100644 index 0000000..8ea4eac --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/Makefile.emscripten @@ -0,0 +1,91 @@ +# +# Makefile to use with GLFW+emscripten +# See https://emscripten.org/docs/getting_started/downloads.html +# for installation instructions. +# +# This Makefile assumes you have loaded emscripten's environment. +# (On Windows, you may need to execute emsdk_env.bat or encmdprompt.bat ahead) +# +# Running `make -f Makefile.emscripten` will produce three files: +# - web/index.html +# - web/index.js +# - web/index.wasm +# +# All three are needed to run the demo. + +CC = emcc +CXX = em++ +WEB_DIR = web +EXE = $(WEB_DIR)/index.html +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) +CPPFLAGS = +LDFLAGS = +EMS = + +##--------------------------------------------------------------------- +## EMSCRIPTEN OPTIONS +##--------------------------------------------------------------------- + +# ("EMS" options gets added to both CPPFLAGS and LDFLAGS, whereas some options are for linker only) +EMS += -s DISABLE_EXCEPTION_CATCHING=1 +LDFLAGS += -s USE_GLFW=3 -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s NO_EXIT_RUNTIME=0 -s ASSERTIONS=1 + +# Uncomment next line to fix possible rendering bugs with Emscripten version older then 1.39.0 (https://github.com/ocornut/imgui/issues/2877) +#EMS += -s BINARYEN_TRAP_MODE=clamp +#EMS += -s SAFE_HEAP=1 ## Adds overhead + +# Emscripten allows preloading a file or folder to be accessible at runtime. +# The Makefile for this example project suggests embedding the misc/fonts/ folder into our application, it will then be accessible as "/fonts" +# See documentation for more details: https://emscripten.org/docs/porting/files/packaging_files.html +# (Default value is 0. Set to 1 to enable file-system and include the misc/fonts/ folder as part of the build.) +USE_FILE_SYSTEM ?= 0 +ifeq ($(USE_FILE_SYSTEM), 0) +LDFLAGS += -s NO_FILESYSTEM=1 +CPPFLAGS += -DIMGUI_DISABLE_FILE_FUNCTIONS +endif +ifeq ($(USE_FILE_SYSTEM), 1) +LDFLAGS += --no-heap-copy --preload-file ../../misc/fonts@/fonts +endif + +##--------------------------------------------------------------------- +## FINAL BUILD FLAGS +##--------------------------------------------------------------------- + +CPPFLAGS += -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +#CPPFLAGS += -g +CPPFLAGS += -Wall -Wformat -Os $(EMS) +# LDFLAGS += --shell-file ../libs/emscripten/shell_minimal.html +LDFLAGS += $(EMS) + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(EXE) + +$(WEB_DIR): + mkdir $@ + +serve: all + python3 -m http.server -d $(WEB_DIR) + +$(EXE): $(OBJS) $(WEB_DIR) + $(CXX) -o $@ $(OBJS) $(LDFLAGS) + +clean: + rm -rf $(OBJS) $(WEB_DIR) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/build_win32.bat new file mode 100644 index 0000000..b5979ad --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/build_win32.bat @@ -0,0 +1,8 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_glfw_opengl3 +@set INCLUDES=/I..\.. /I..\..\backends /I..\libs\glfw\include +@set SOURCES=main.cpp ..\..\backends\imgui_impl_glfw.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:..\libs\glfw\lib-vc2010-32 glfw3.lib opengl32.lib gdi32.lib shell32.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj new file mode 100644 index 0000000..4bd503a --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj @@ -0,0 +1,187 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {4a1fb5ea-22f5-42a8-ab92-1d2df5d47fb9} + example_glfw_opengl3 + 8.1 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + ..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) + opengl32.lib;glfw3.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + ..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) + opengl32.lib;glfw3.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + ..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) + opengl32.lib;glfw3.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + ..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) + opengl32.lib;glfw3.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj.filters new file mode 100644 index 0000000..bc79bb1 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj.filters @@ -0,0 +1,67 @@ + + + + + {20b90ce4-7fcb-4731-b9a0-075f875de82d} + + + {f18ab499-84e1-499f-8eff-9754361e0e52} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + sources + + + imgui + + + imgui + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/main.cpp new file mode 100644 index 0000000..2e369fb --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_opengl3/main.cpp @@ -0,0 +1,217 @@ +// Dear ImGui: standalone example application for GLFW + OpenGL 3, using programmable pipeline +// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#include "imgui_impl_glfw.h" +#include "imgui_impl_opengl3.h" +#include +#define GL_SILENCE_DEPRECATION +#if defined(IMGUI_IMPL_OPENGL_ES2) +#include +#endif +#include // Will drag system OpenGL headers + +// [Win32] Our example includes a copy of glfw3.lib pre-compiled with VS2010 to maximize ease of testing and compatibility with old VS compilers. +// To link with VS2010-era libraries, VS2015+ requires linking with legacy_stdio_definitions.lib, which we do using this pragma. +// Your own project should not be affected, as you are likely to link with a newer binary of GLFW that is adequate for your version of Visual Studio. +#if defined(_MSC_VER) && (_MSC_VER >= 1900) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#pragma comment(lib, "legacy_stdio_definitions") +#endif + +// This example can also compile and run with Emscripten! See 'Makefile.emscripten' for details. +#ifdef __EMSCRIPTEN__ +#include "../libs/emscripten/emscripten_mainloop_stub.h" +#endif + +static void glfw_error_callback(int error, const char* description) +{ + fprintf(stderr, "GLFW Error %d: %s\n", error, description); +} + +// Main code +int main(int, char**) +{ + glfwSetErrorCallback(glfw_error_callback); + if (!glfwInit()) + return 1; + + // Decide GL+GLSL versions +#if defined(IMGUI_IMPL_OPENGL_ES2) + // GL ES 2.0 + GLSL 100 + const char* glsl_version = "#version 100"; + glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); + glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); + glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API); +#elif defined(__APPLE__) + // GL 3.2 + GLSL 150 + const char* glsl_version = "#version 150"; + glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); + glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); + glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 3.2+ only + glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // Required on Mac +#else + // GL 3.0 + GLSL 130 + const char* glsl_version = "#version 130"; + glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); + glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); + //glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 3.2+ only + //glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // 3.0+ only +#endif + + // Create window with graphics context + GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+OpenGL3 example", nullptr, nullptr); + if (window == nullptr) + return 1; + glfwMakeContextCurrent(window); + glfwSwapInterval(1); // Enable vsync + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigViewportsNoAutoMerge = true; + //io.ConfigViewportsNoTaskBarIcon = true; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplGlfw_InitForOpenGL(window, true); + ImGui_ImplOpenGL3_Init(glsl_version); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + // - Our Emscripten build process allows embedding fonts to be accessible at runtime from the "fonts/" folder. See Makefile.emscripten for details. + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop +#ifdef __EMSCRIPTEN__ + // For an Emscripten build we are disabling file-system access, so let's not attempt to do a fopen() of the imgui.ini file. + // You may manually call LoadIniSettingsFromMemory() to load settings from your own storage. + io.IniFilename = nullptr; + EMSCRIPTEN_MAINLOOP_BEGIN +#else + while (!glfwWindowShouldClose(window)) +#endif + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + glfwPollEvents(); + + // Start the Dear ImGui frame + ImGui_ImplOpenGL3_NewFrame(); + ImGui_ImplGlfw_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + int display_w, display_h; + glfwGetFramebufferSize(window, &display_w, &display_h); + glViewport(0, 0, display_w, display_h); + glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); + + // Update and Render additional Platform Windows + // (Platform functions may change the current OpenGL context, so we save/restore it to make it easier to paste this code elsewhere. + // For this specific demo app we could also call glfwMakeContextCurrent(window) directly) + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + GLFWwindow* backup_current_context = glfwGetCurrentContext(); + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + glfwMakeContextCurrent(backup_current_context); + } + + glfwSwapBuffers(window); + } +#ifdef __EMSCRIPTEN__ + EMSCRIPTEN_MAINLOOP_END; +#endif + + // Cleanup + ImGui_ImplOpenGL3_Shutdown(); + ImGui_ImplGlfw_Shutdown(); + ImGui::DestroyContext(); + + glfwDestroyWindow(window); + glfwTerminate(); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/CMakeLists.txt b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/CMakeLists.txt new file mode 100644 index 0000000..a6e5bf9 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/CMakeLists.txt @@ -0,0 +1,45 @@ +# Example usage: +# mkdir build +# cd build +# cmake -g "Visual Studio 14 2015" .. + +cmake_minimum_required(VERSION 2.8) +project(imgui_example_glfw_vulkan C CXX) + +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Debug CACHE STRING "" FORCE) +endif() + +set(CMAKE_CXX_STANDARD 11) +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DVK_PROTOTYPES") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_PROTOTYPES") + +# GLFW +set(GLFW_DIR ../../../glfw) # Set this to point to an up-to-date GLFW repo +option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" OFF) +option(GLFW_BUILD_TESTS "Build the GLFW test programs" OFF) +option(GLFW_BUILD_DOCS "Build the GLFW documentation" OFF) +option(GLFW_INSTALL "Generate installation target" OFF) +option(GLFW_DOCUMENT_INTERNALS "Include internals in documentation" OFF) +add_subdirectory(${GLFW_DIR} binary_dir EXCLUDE_FROM_ALL) +include_directories(${GLFW_DIR}/include) + +# Dear ImGui +set(IMGUI_DIR ../../) +include_directories(${IMGUI_DIR} ${IMGUI_DIR}/backends ..) + +# Libraries +find_package(Vulkan REQUIRED) +#find_library(VULKAN_LIBRARY + #NAMES vulkan vulkan-1) +#set(LIBRARIES "glfw;${VULKAN_LIBRARY}") +set(LIBRARIES "glfw;Vulkan::Vulkan") + +# Use vulkan headers from glfw: +include_directories(${GLFW_DIR}/deps) + +file(GLOB sources *.cpp) + +add_executable(example_glfw_vulkan ${sources} ${IMGUI_DIR}/backends/imgui_impl_glfw.cpp ${IMGUI_DIR}/backends/imgui_impl_vulkan.cpp ${IMGUI_DIR}/imgui.cpp ${IMGUI_DIR}/imgui_draw.cpp ${IMGUI_DIR}/imgui_demo.cpp ${IMGUI_DIR}/imgui_tables.cpp ${IMGUI_DIR}/imgui_widgets.cpp) +target_link_libraries(example_glfw_vulkan ${LIBRARIES}) +target_compile_definitions(example_glfw_vulkan PUBLIC -DImTextureID=ImU64) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/build_win32.bat new file mode 100644 index 0000000..be92398 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/build_win32.bat @@ -0,0 +1,14 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. + +@set OUT_EXE=example_glfw_vulkan +@set INCLUDES=/I..\.. /I..\..\backends /I..\libs\glfw\include /I %VULKAN_SDK%\include +@set SOURCES=main.cpp ..\..\backends\imgui_impl_vulkan.cpp ..\..\backends\imgui_impl_glfw.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:..\libs\glfw\lib-vc2010-32 /libpath:%VULKAN_SDK%\lib32 glfw3.lib opengl32.lib gdi32.lib shell32.lib vulkan-1.lib + +@set OUT_DIR=Debug +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% /D ImTextureID=ImU64 %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% + +@set OUT_DIR=Release +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 /Ox /Oi %INCLUDES% /D ImTextureID=ImU64 %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/build_win64.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/build_win64.bat new file mode 100644 index 0000000..c60b027 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/build_win64.bat @@ -0,0 +1,13 @@ +@REM Build for Visual Studio compiler. Run your copy of amd64/vcvars32.bat to setup 64-bit command-line compiler. + +@set INCLUDES=/I..\.. /I..\..\backends /I..\libs\glfw\include /I %VULKAN_SDK%\include +@set SOURCES=main.cpp ..\..\backends\imgui_impl_vulkan.cpp ..\..\backends\imgui_impl_glfw.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:..\libs\glfw\lib-vc2010-64 /libpath:%VULKAN_SDK%\lib glfw3.lib opengl32.lib gdi32.lib shell32.lib vulkan-1.lib + +@set OUT_DIR=Debug +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% /D ImTextureID=ImU64 %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% + +@set OUT_DIR=Release +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 /Ox /Oi %INCLUDES% /D ImTextureID=ImU64 %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj new file mode 100644 index 0000000..d0d1c5f --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj @@ -0,0 +1,190 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {57E2DF5A-6FC8-45BB-99DD-91A18C646E80} + example_glfw_vulkan + 8.1 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + ..\..;..\..\backends;%VULKAN_SDK%\include;..\libs\glfw\include;%(AdditionalIncludeDirectories) + ImTextureID=ImU64;_MBCS;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + %VULKAN_SDK%\lib32;..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) + vulkan-1.lib;glfw3.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + ..\..;..\..\backends;%VULKAN_SDK%\include;..\libs\glfw\include;%(AdditionalIncludeDirectories) + ImTextureID=ImU64;_MBCS;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + %VULKAN_SDK%\lib;..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) + vulkan-1.lib;glfw3.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%VULKAN_SDK%\include;..\libs\glfw\include;%(AdditionalIncludeDirectories) + false + ImTextureID=ImU64;_MBCS;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + true + true + %VULKAN_SDK%\lib32;..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) + vulkan-1.lib;glfw3.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%VULKAN_SDK%\include;..\libs\glfw\include;%(AdditionalIncludeDirectories) + false + ImTextureID=ImU64;_MBCS;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + true + true + %VULKAN_SDK%\lib;..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) + vulkan-1.lib;glfw3.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj.filters new file mode 100644 index 0000000..510fc85 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj.filters @@ -0,0 +1,64 @@ + + + + + {20b90ce4-7fcb-4731-b9a0-075f875de82d} + + + {f18ab499-84e1-499f-8eff-9754361e0e52} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + sources + + + imgui + + + imgui + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/main.cpp new file mode 100644 index 0000000..7d0a05f --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glfw_vulkan/main.cpp @@ -0,0 +1,611 @@ +// Dear ImGui: standalone example application for Glfw + Vulkan + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// Important note to the reader who wish to integrate imgui_impl_vulkan.cpp/.h in their own engine/app. +// - Common ImGui_ImplVulkan_XXX functions and structures are used to interface with imgui_impl_vulkan.cpp/.h. +// You will use those if you want to use this rendering backend in your engine/app. +// - Helper ImGui_ImplVulkanH_XXX functions and structures are only used by this example (main.cpp) and by +// the backend itself (imgui_impl_vulkan.cpp), but should PROBABLY NOT be used by your own engine/app code. +// Read comments in imgui_impl_vulkan.h. + +#include "imgui.h" +#include "imgui_impl_glfw.h" +#include "imgui_impl_vulkan.h" +#include // printf, fprintf +#include // abort +#define GLFW_INCLUDE_NONE +#define GLFW_INCLUDE_VULKAN +#include +#include +//#include + +// [Win32] Our example includes a copy of glfw3.lib pre-compiled with VS2010 to maximize ease of testing and compatibility with old VS compilers. +// To link with VS2010-era libraries, VS2015+ requires linking with legacy_stdio_definitions.lib, which we do using this pragma. +// Your own project should not be affected, as you are likely to link with a newer binary of GLFW that is adequate for your version of Visual Studio. +#if defined(_MSC_VER) && (_MSC_VER >= 1900) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#pragma comment(lib, "legacy_stdio_definitions") +#endif + +//#define IMGUI_UNLIMITED_FRAME_RATE +#ifdef _DEBUG +#define IMGUI_VULKAN_DEBUG_REPORT +#endif + +// Data +static VkAllocationCallbacks* g_Allocator = nullptr; +static VkInstance g_Instance = VK_NULL_HANDLE; +static VkPhysicalDevice g_PhysicalDevice = VK_NULL_HANDLE; +static VkDevice g_Device = VK_NULL_HANDLE; +static uint32_t g_QueueFamily = (uint32_t)-1; +static VkQueue g_Queue = VK_NULL_HANDLE; +static VkDebugReportCallbackEXT g_DebugReport = VK_NULL_HANDLE; +static VkPipelineCache g_PipelineCache = VK_NULL_HANDLE; +static VkDescriptorPool g_DescriptorPool = VK_NULL_HANDLE; + +static ImGui_ImplVulkanH_Window g_MainWindowData; +static int g_MinImageCount = 2; +static bool g_SwapChainRebuild = false; + +static void glfw_error_callback(int error, const char* description) +{ + fprintf(stderr, "GLFW Error %d: %s\n", error, description); +} +static void check_vk_result(VkResult err) +{ + if (err == 0) + return; + fprintf(stderr, "[vulkan] Error: VkResult = %d\n", err); + if (err < 0) + abort(); +} + +#ifdef IMGUI_VULKAN_DEBUG_REPORT +static VKAPI_ATTR VkBool32 VKAPI_CALL debug_report(VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage, void* pUserData) +{ + (void)flags; (void)object; (void)location; (void)messageCode; (void)pUserData; (void)pLayerPrefix; // Unused arguments + fprintf(stderr, "[vulkan] Debug report from ObjectType: %i\nMessage: %s\n\n", objectType, pMessage); + return VK_FALSE; +} +#endif // IMGUI_VULKAN_DEBUG_REPORT + +static bool IsExtensionAvailable(const ImVector& properties, const char* extension) +{ + for (const VkExtensionProperties& p : properties) + if (strcmp(p.extensionName, extension) == 0) + return true; + return false; +} + +static VkPhysicalDevice SetupVulkan_SelectPhysicalDevice() +{ + uint32_t gpu_count; + VkResult err = vkEnumeratePhysicalDevices(g_Instance, &gpu_count, nullptr); + check_vk_result(err); + IM_ASSERT(gpu_count > 0); + + ImVector gpus; + gpus.resize(gpu_count); + err = vkEnumeratePhysicalDevices(g_Instance, &gpu_count, gpus.Data); + check_vk_result(err); + + // If a number >1 of GPUs got reported, find discrete GPU if present, or use first one available. This covers + // most common cases (multi-gpu/integrated+dedicated graphics). Handling more complicated setups (multiple + // dedicated GPUs) is out of scope of this sample. + for (VkPhysicalDevice& device : gpus) + { + VkPhysicalDeviceProperties properties; + vkGetPhysicalDeviceProperties(device, &properties); + if (properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU) + return device; + } + + // Use first GPU (Integrated) is a Discrete one is not available. + if (gpu_count > 0) + return gpus[0]; + return VK_NULL_HANDLE; +} + +static void SetupVulkan(ImVector instance_extensions) +{ + VkResult err; + + // Create Vulkan Instance + { + VkInstanceCreateInfo create_info = {}; + create_info.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO; + + // Enumerate available extensions + uint32_t properties_count; + ImVector properties; + vkEnumerateInstanceExtensionProperties(nullptr, &properties_count, nullptr); + properties.resize(properties_count); + err = vkEnumerateInstanceExtensionProperties(nullptr, &properties_count, properties.Data); + check_vk_result(err); + + // Enable required extensions + if (IsExtensionAvailable(properties, VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME)) + instance_extensions.push_back(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME); +#ifdef VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME + if (IsExtensionAvailable(properties, VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME)) + { + instance_extensions.push_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME); + create_info.flags |= VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR; + } +#endif + + // Enabling validation layers +#ifdef IMGUI_VULKAN_DEBUG_REPORT + const char* layers[] = { "VK_LAYER_KHRONOS_validation" }; + create_info.enabledLayerCount = 1; + create_info.ppEnabledLayerNames = layers; + instance_extensions.push_back("VK_EXT_debug_report"); +#endif + + // Create Vulkan Instance + create_info.enabledExtensionCount = (uint32_t)instance_extensions.Size; + create_info.ppEnabledExtensionNames = instance_extensions.Data; + err = vkCreateInstance(&create_info, g_Allocator, &g_Instance); + check_vk_result(err); + + // Setup the debug report callback +#ifdef IMGUI_VULKAN_DEBUG_REPORT + auto vkCreateDebugReportCallbackEXT = (PFN_vkCreateDebugReportCallbackEXT)vkGetInstanceProcAddr(g_Instance, "vkCreateDebugReportCallbackEXT"); + IM_ASSERT(vkCreateDebugReportCallbackEXT != nullptr); + VkDebugReportCallbackCreateInfoEXT debug_report_ci = {}; + debug_report_ci.sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT; + debug_report_ci.flags = VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT | VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT; + debug_report_ci.pfnCallback = debug_report; + debug_report_ci.pUserData = nullptr; + err = vkCreateDebugReportCallbackEXT(g_Instance, &debug_report_ci, g_Allocator, &g_DebugReport); + check_vk_result(err); +#endif + } + + // Select Physical Device (GPU) + g_PhysicalDevice = SetupVulkan_SelectPhysicalDevice(); + + // Select graphics queue family + { + uint32_t count; + vkGetPhysicalDeviceQueueFamilyProperties(g_PhysicalDevice, &count, nullptr); + VkQueueFamilyProperties* queues = (VkQueueFamilyProperties*)malloc(sizeof(VkQueueFamilyProperties) * count); + vkGetPhysicalDeviceQueueFamilyProperties(g_PhysicalDevice, &count, queues); + for (uint32_t i = 0; i < count; i++) + if (queues[i].queueFlags & VK_QUEUE_GRAPHICS_BIT) + { + g_QueueFamily = i; + break; + } + free(queues); + IM_ASSERT(g_QueueFamily != (uint32_t)-1); + } + + // Create Logical Device (with 1 queue) + { + ImVector device_extensions; + device_extensions.push_back("VK_KHR_swapchain"); + + // Enumerate physical device extension + uint32_t properties_count; + ImVector properties; + vkEnumerateDeviceExtensionProperties(g_PhysicalDevice, nullptr, &properties_count, nullptr); + properties.resize(properties_count); + vkEnumerateDeviceExtensionProperties(g_PhysicalDevice, nullptr, &properties_count, properties.Data); +#ifdef VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME + if (IsExtensionAvailable(properties, VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME)) + device_extensions.push_back(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME); +#endif + + const float queue_priority[] = { 1.0f }; + VkDeviceQueueCreateInfo queue_info[1] = {}; + queue_info[0].sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO; + queue_info[0].queueFamilyIndex = g_QueueFamily; + queue_info[0].queueCount = 1; + queue_info[0].pQueuePriorities = queue_priority; + VkDeviceCreateInfo create_info = {}; + create_info.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; + create_info.queueCreateInfoCount = sizeof(queue_info) / sizeof(queue_info[0]); + create_info.pQueueCreateInfos = queue_info; + create_info.enabledExtensionCount = (uint32_t)device_extensions.Size; + create_info.ppEnabledExtensionNames = device_extensions.Data; + err = vkCreateDevice(g_PhysicalDevice, &create_info, g_Allocator, &g_Device); + check_vk_result(err); + vkGetDeviceQueue(g_Device, g_QueueFamily, 0, &g_Queue); + } + + // Create Descriptor Pool + // The example only requires a single combined image sampler descriptor for the font image and only uses one descriptor set (for that) + // If you wish to load e.g. additional textures you may need to alter pools sizes. + { + VkDescriptorPoolSize pool_sizes[] = + { + { VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1 }, + }; + VkDescriptorPoolCreateInfo pool_info = {}; + pool_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO; + pool_info.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT; + pool_info.maxSets = 1; + pool_info.poolSizeCount = (uint32_t)IM_ARRAYSIZE(pool_sizes); + pool_info.pPoolSizes = pool_sizes; + err = vkCreateDescriptorPool(g_Device, &pool_info, g_Allocator, &g_DescriptorPool); + check_vk_result(err); + } +} + +// All the ImGui_ImplVulkanH_XXX structures/functions are optional helpers used by the demo. +// Your real engine/app may not use them. +static void SetupVulkanWindow(ImGui_ImplVulkanH_Window* wd, VkSurfaceKHR surface, int width, int height) +{ + wd->Surface = surface; + + // Check for WSI support + VkBool32 res; + vkGetPhysicalDeviceSurfaceSupportKHR(g_PhysicalDevice, g_QueueFamily, wd->Surface, &res); + if (res != VK_TRUE) + { + fprintf(stderr, "Error no WSI support on physical device 0\n"); + exit(-1); + } + + // Select Surface Format + const VkFormat requestSurfaceImageFormat[] = { VK_FORMAT_B8G8R8A8_UNORM, VK_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_B8G8R8_UNORM, VK_FORMAT_R8G8B8_UNORM }; + const VkColorSpaceKHR requestSurfaceColorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR; + wd->SurfaceFormat = ImGui_ImplVulkanH_SelectSurfaceFormat(g_PhysicalDevice, wd->Surface, requestSurfaceImageFormat, (size_t)IM_ARRAYSIZE(requestSurfaceImageFormat), requestSurfaceColorSpace); + + // Select Present Mode +#ifdef IMGUI_UNLIMITED_FRAME_RATE + VkPresentModeKHR present_modes[] = { VK_PRESENT_MODE_MAILBOX_KHR, VK_PRESENT_MODE_IMMEDIATE_KHR, VK_PRESENT_MODE_FIFO_KHR }; +#else + VkPresentModeKHR present_modes[] = { VK_PRESENT_MODE_FIFO_KHR }; +#endif + wd->PresentMode = ImGui_ImplVulkanH_SelectPresentMode(g_PhysicalDevice, wd->Surface, &present_modes[0], IM_ARRAYSIZE(present_modes)); + //printf("[vulkan] Selected PresentMode = %d\n", wd->PresentMode); + + // Create SwapChain, RenderPass, Framebuffer, etc. + IM_ASSERT(g_MinImageCount >= 2); + ImGui_ImplVulkanH_CreateOrResizeWindow(g_Instance, g_PhysicalDevice, g_Device, wd, g_QueueFamily, g_Allocator, width, height, g_MinImageCount); +} + +static void CleanupVulkan() +{ + vkDestroyDescriptorPool(g_Device, g_DescriptorPool, g_Allocator); + +#ifdef IMGUI_VULKAN_DEBUG_REPORT + // Remove the debug report callback + auto vkDestroyDebugReportCallbackEXT = (PFN_vkDestroyDebugReportCallbackEXT)vkGetInstanceProcAddr(g_Instance, "vkDestroyDebugReportCallbackEXT"); + vkDestroyDebugReportCallbackEXT(g_Instance, g_DebugReport, g_Allocator); +#endif // IMGUI_VULKAN_DEBUG_REPORT + + vkDestroyDevice(g_Device, g_Allocator); + vkDestroyInstance(g_Instance, g_Allocator); +} + +static void CleanupVulkanWindow() +{ + ImGui_ImplVulkanH_DestroyWindow(g_Instance, g_Device, &g_MainWindowData, g_Allocator); +} + +static void FrameRender(ImGui_ImplVulkanH_Window* wd, ImDrawData* draw_data) +{ + VkResult err; + + VkSemaphore image_acquired_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].ImageAcquiredSemaphore; + VkSemaphore render_complete_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].RenderCompleteSemaphore; + err = vkAcquireNextImageKHR(g_Device, wd->Swapchain, UINT64_MAX, image_acquired_semaphore, VK_NULL_HANDLE, &wd->FrameIndex); + if (err == VK_ERROR_OUT_OF_DATE_KHR || err == VK_SUBOPTIMAL_KHR) + { + g_SwapChainRebuild = true; + return; + } + check_vk_result(err); + + ImGui_ImplVulkanH_Frame* fd = &wd->Frames[wd->FrameIndex]; + { + err = vkWaitForFences(g_Device, 1, &fd->Fence, VK_TRUE, UINT64_MAX); // wait indefinitely instead of periodically checking + check_vk_result(err); + + err = vkResetFences(g_Device, 1, &fd->Fence); + check_vk_result(err); + } + { + err = vkResetCommandPool(g_Device, fd->CommandPool, 0); + check_vk_result(err); + VkCommandBufferBeginInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; + info.flags |= VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; + err = vkBeginCommandBuffer(fd->CommandBuffer, &info); + check_vk_result(err); + } + { + VkRenderPassBeginInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; + info.renderPass = wd->RenderPass; + info.framebuffer = fd->Framebuffer; + info.renderArea.extent.width = wd->Width; + info.renderArea.extent.height = wd->Height; + info.clearValueCount = 1; + info.pClearValues = &wd->ClearValue; + vkCmdBeginRenderPass(fd->CommandBuffer, &info, VK_SUBPASS_CONTENTS_INLINE); + } + + // Record dear imgui primitives into command buffer + ImGui_ImplVulkan_RenderDrawData(draw_data, fd->CommandBuffer); + + // Submit command buffer + vkCmdEndRenderPass(fd->CommandBuffer); + { + VkPipelineStageFlags wait_stage = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT; + VkSubmitInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; + info.waitSemaphoreCount = 1; + info.pWaitSemaphores = &image_acquired_semaphore; + info.pWaitDstStageMask = &wait_stage; + info.commandBufferCount = 1; + info.pCommandBuffers = &fd->CommandBuffer; + info.signalSemaphoreCount = 1; + info.pSignalSemaphores = &render_complete_semaphore; + + err = vkEndCommandBuffer(fd->CommandBuffer); + check_vk_result(err); + err = vkQueueSubmit(g_Queue, 1, &info, fd->Fence); + check_vk_result(err); + } +} + +static void FramePresent(ImGui_ImplVulkanH_Window* wd) +{ + if (g_SwapChainRebuild) + return; + VkSemaphore render_complete_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].RenderCompleteSemaphore; + VkPresentInfoKHR info = {}; + info.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR; + info.waitSemaphoreCount = 1; + info.pWaitSemaphores = &render_complete_semaphore; + info.swapchainCount = 1; + info.pSwapchains = &wd->Swapchain; + info.pImageIndices = &wd->FrameIndex; + VkResult err = vkQueuePresentKHR(g_Queue, &info); + if (err == VK_ERROR_OUT_OF_DATE_KHR || err == VK_SUBOPTIMAL_KHR) + { + g_SwapChainRebuild = true; + return; + } + check_vk_result(err); + wd->SemaphoreIndex = (wd->SemaphoreIndex + 1) % wd->ImageCount; // Now we can use the next set of semaphores +} + +// Main code +int main(int, char**) +{ + glfwSetErrorCallback(glfw_error_callback); + if (!glfwInit()) + return 1; + + // Create window with Vulkan context + glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); + GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+Vulkan example", nullptr, nullptr); + if (!glfwVulkanSupported()) + { + printf("GLFW: Vulkan Not Supported\n"); + return 1; + } + + ImVector extensions; + uint32_t extensions_count = 0; + const char** glfw_extensions = glfwGetRequiredInstanceExtensions(&extensions_count); + for (uint32_t i = 0; i < extensions_count; i++) + extensions.push_back(glfw_extensions[i]); + SetupVulkan(extensions); + + // Create Window Surface + VkSurfaceKHR surface; + VkResult err = glfwCreateWindowSurface(g_Instance, window, g_Allocator, &surface); + check_vk_result(err); + + // Create Framebuffers + int w, h; + glfwGetFramebufferSize(window, &w, &h); + ImGui_ImplVulkanH_Window* wd = &g_MainWindowData; + SetupVulkanWindow(wd, surface, w, h); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigViewportsNoAutoMerge = true; + //io.ConfigViewportsNoTaskBarIcon = true; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplGlfw_InitForVulkan(window, true); + ImGui_ImplVulkan_InitInfo init_info = {}; + init_info.Instance = g_Instance; + init_info.PhysicalDevice = g_PhysicalDevice; + init_info.Device = g_Device; + init_info.QueueFamily = g_QueueFamily; + init_info.Queue = g_Queue; + init_info.PipelineCache = g_PipelineCache; + init_info.DescriptorPool = g_DescriptorPool; + init_info.Subpass = 0; + init_info.MinImageCount = g_MinImageCount; + init_info.ImageCount = wd->ImageCount; + init_info.MSAASamples = VK_SAMPLE_COUNT_1_BIT; + init_info.Allocator = g_Allocator; + init_info.CheckVkResultFn = check_vk_result; + ImGui_ImplVulkan_Init(&init_info, wd->RenderPass); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Upload Fonts + { + // Use any command queue + VkCommandPool command_pool = wd->Frames[wd->FrameIndex].CommandPool; + VkCommandBuffer command_buffer = wd->Frames[wd->FrameIndex].CommandBuffer; + + err = vkResetCommandPool(g_Device, command_pool, 0); + check_vk_result(err); + VkCommandBufferBeginInfo begin_info = {}; + begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; + begin_info.flags |= VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; + err = vkBeginCommandBuffer(command_buffer, &begin_info); + check_vk_result(err); + + ImGui_ImplVulkan_CreateFontsTexture(command_buffer); + + VkSubmitInfo end_info = {}; + end_info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; + end_info.commandBufferCount = 1; + end_info.pCommandBuffers = &command_buffer; + err = vkEndCommandBuffer(command_buffer); + check_vk_result(err); + err = vkQueueSubmit(g_Queue, 1, &end_info, VK_NULL_HANDLE); + check_vk_result(err); + + err = vkDeviceWaitIdle(g_Device); + check_vk_result(err); + ImGui_ImplVulkan_DestroyFontUploadObjects(); + } + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + while (!glfwWindowShouldClose(window)) + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + glfwPollEvents(); + + // Resize swap chain? + if (g_SwapChainRebuild) + { + int width, height; + glfwGetFramebufferSize(window, &width, &height); + if (width > 0 && height > 0) + { + ImGui_ImplVulkan_SetMinImageCount(g_MinImageCount); + ImGui_ImplVulkanH_CreateOrResizeWindow(g_Instance, g_PhysicalDevice, g_Device, &g_MainWindowData, g_QueueFamily, g_Allocator, width, height, g_MinImageCount); + g_MainWindowData.FrameIndex = 0; + g_SwapChainRebuild = false; + } + } + + // Start the Dear ImGui frame + ImGui_ImplVulkan_NewFrame(); + ImGui_ImplGlfw_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + ImDrawData* main_draw_data = ImGui::GetDrawData(); + const bool main_is_minimized = (main_draw_data->DisplaySize.x <= 0.0f || main_draw_data->DisplaySize.y <= 0.0f); + wd->ClearValue.color.float32[0] = clear_color.x * clear_color.w; + wd->ClearValue.color.float32[1] = clear_color.y * clear_color.w; + wd->ClearValue.color.float32[2] = clear_color.z * clear_color.w; + wd->ClearValue.color.float32[3] = clear_color.w; + if (!main_is_minimized) + FrameRender(wd, main_draw_data); + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + } + + // Present Main Platform Window + if (!main_is_minimized) + FramePresent(wd); + } + + // Cleanup + err = vkDeviceWaitIdle(g_Device); + check_vk_result(err); + ImGui_ImplVulkan_Shutdown(); + ImGui_ImplGlfw_Shutdown(); + ImGui::DestroyContext(); + + CleanupVulkanWindow(); + CleanupVulkan(); + + glfwDestroyWindow(window); + glfwTerminate(); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/Makefile new file mode 100644 index 0000000..7af289d --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/Makefile @@ -0,0 +1,75 @@ +# +# Cross Platform Makefile +# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X +# +# Linux: +# apt-get install freeglut3-dev +# + +#CXX = g++ +#CXX = clang++ + +EXE = example_glut_opengl2 +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glut.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl2.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) + +CXXFLAGS = -std=c++11 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +CXXFLAGS += -g -Wall -Wformat +LIBS = + +##--------------------------------------------------------------------- +## BUILD FLAGS PER PLATFORM +##--------------------------------------------------------------------- + +ifeq ($(UNAME_S), Linux) #LINUX + ECHO_MESSAGE = "Linux" + LIBS += -lGL -lglut + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(UNAME_S), Darwin) #APPLE + ECHO_MESSAGE = "Mac OS X" + LIBS += -framework OpenGL -framework GLUT + LIBS += -L/usr/local/lib -L/opt/local/lib + + CXXFLAGS += -I/usr/local/include -I/opt/local/include + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(OS), Windows_NT) + ECHO_MESSAGE = "MinGW" + LIBS += -lgdi32 -lopengl32 -limm32 +ifeq ($(shell pkg-config freeglut --exists 2> /dev/null && echo yes || echo no),yes) + CXXFLAGS += $(shell pkg-config freeglut --cflags) + LIBS += $(shell pkg-config freeglut --libs) +else + LIBS += -lglut +endif + CFLAGS = $(CXXFLAGS) +endif + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(ECHO_MESSAGE) + +$(EXE): $(OBJS) + $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) + +clean: + rm -f $(EXE) $(OBJS) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj new file mode 100644 index 0000000..c56452b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj @@ -0,0 +1,186 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {F90D0333-5FB1-440D-918D-DD39A1B5187E} + example_glut_opengl2 + 8.1 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + $(GLUT_INCLUDE_DIR);..\..;..\..\backends;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + $(GLUT_ROOT_PATH)/lib;%(AdditionalLibraryDirectories) + opengl32.lib;freeglut.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + $(GLUT_INCLUDE_DIR);..\..;..\..\backends;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + $(GLUT_ROOT_PATH)/lib/x64;%(AdditionalLibraryDirectories) + opengl32.lib;freeglut.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + $(GLUT_INCLUDE_DIR);..\..;..\..\backends;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + $(GLUT_ROOT_PATH)/lib;%(AdditionalLibraryDirectories) + opengl32.lib;freeglut.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + $(GLUT_INCLUDE_DIR);..\..;..\..\backends;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + $(GLUT_ROOT_PATH)/lib/x64;%(AdditionalLibraryDirectories) + opengl32.lib;freeglut.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj.filters new file mode 100644 index 0000000..0ac4a0b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj.filters @@ -0,0 +1,64 @@ + + + + + {c336cfe3-f0c4-464c-9ef0-a9e17a7ff222} + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + sources + + + imgui + + + imgui + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/main.cpp new file mode 100644 index 0000000..4edae6f --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_glut_opengl2/main.cpp @@ -0,0 +1,164 @@ +// Dear ImGui: standalone example application for GLUT/FreeGLUT + OpenGL2, using legacy fixed pipeline + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// !!! GLUT/FreeGLUT IS OBSOLETE PREHISTORIC SOFTWARE. Using GLUT is not recommended unless you really miss the 90's. !!! +// !!! If someone or something is teaching you GLUT today, you are being abused. Please show some resistance. !!! +// !!! Nowadays, prefer using GLFW or SDL instead! + +// On Windows, you can install Freeglut using vcpkg: +// git clone https://github.com/Microsoft/vcpkg +// cd vcpkg +// bootstrap - vcpkg.bat +// vcpkg install freeglut --triplet=x86-windows ; for win32 +// vcpkg install freeglut --triplet=x64-windows ; for win64 +// vcpkg integrate install ; register include and libs in Visual Studio + +#include "imgui.h" +#include "imgui_impl_glut.h" +#include "imgui_impl_opengl2.h" +#define GL_SILENCE_DEPRECATION +#ifdef __APPLE__ +#include +#else +#include +#endif + +#ifdef _MSC_VER +#pragma warning (disable: 4505) // unreferenced local function has been removed +#endif + +// Forward declarations of helper functions +void MainLoopStep(); + +// Our state +static bool show_demo_window = true; +static bool show_another_window = false; +static ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + +int main(int argc, char** argv) +{ + // Create GLUT window + glutInit(&argc, argv); +#ifdef __FREEGLUT_EXT_H__ + glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINLOOP_RETURNS); +#endif + glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_MULTISAMPLE); + glutInitWindowSize(1280, 720); + glutCreateWindow("Dear ImGui GLUT+OpenGL2 Example"); + + // Setup GLUT display function + // We will also call ImGui_ImplGLUT_InstallFuncs() to get all the other functions installed for us, + // otherwise it is possible to install our own functions and call the imgui_impl_glut.h functions ourselves. + glutDisplayFunc(MainLoopStep); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // Setup Platform/Renderer backends + // FIXME: Consider reworking this example to install our own GLUT funcs + forward calls ImGui_ImplGLUT_XXX ones, instead of using ImGui_ImplGLUT_InstallFuncs(). + ImGui_ImplGLUT_Init(); + ImGui_ImplOpenGL2_Init(); + + // Install GLUT handlers (glutReshapeFunc(), glutMotionFunc(), glutPassiveMotionFunc(), glutMouseFunc(), glutKeyboardFunc() etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + ImGui_ImplGLUT_InstallFuncs(); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Main loop + glutMainLoop(); + + // Cleanup + ImGui_ImplOpenGL2_Shutdown(); + ImGui_ImplGLUT_Shutdown(); + ImGui::DestroyContext(); + + return 0; +} + +void MainLoopStep() +{ + // Start the Dear ImGui frame + ImGui_ImplOpenGL2_NewFrame(); + ImGui_ImplGLUT_NewFrame(); + ImGui::NewFrame(); + ImGuiIO& io = ImGui::GetIO(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + glViewport(0, 0, (GLsizei)io.DisplaySize.x, (GLsizei)io.DisplaySize.y); + glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + //glUseProgram(0); // You may want this if using this code in an OpenGL 3+ context where shaders may be bound, but prefer using the GL3+ code. + ImGui_ImplOpenGL2_RenderDrawData(ImGui::GetDrawData()); + + glutSwapBuffers(); + glutPostRedisplay(); +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_null/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_null/Makefile new file mode 100644 index 0000000..9ceb353 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_null/Makefile @@ -0,0 +1,92 @@ +# +# Cross Platform Makefile +# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X +# +# Important: This is a "null backend" application, with no visible output or interaction! +# This is used for testing purpose and continuous integration, and has little use for end-user. +# + +# Options +WITH_EXTRA_WARNINGS ?= 0 +WITH_FREETYPE ?= 0 + +EXE = example_null +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) + +CXXFLAGS += -std=c++11 -I$(IMGUI_DIR) +CXXFLAGS += -g -Wall -Wformat +LIBS = + +# We use the WITH_EXTRA_WARNINGS flag on our CI setup to eagerly catch zealous warnings +ifeq ($(WITH_EXTRA_WARNINGS), 1) + CXXFLAGS += -Wno-zero-as-null-pointer-constant -Wno-double-promotion -Wno-variadic-macros +endif + +# We use the WITH_FREETYPE flag on our CI setup to test compiling misc/freetype/imgui_freetype.cpp +# (only supported on Linux, and note that the imgui_freetype code currently won't be executed) +ifeq ($(WITH_FREETYPE), 1) + SOURCES += $(IMGUI_DIR)/misc/freetype/imgui_freetype.cpp + CXXFLAGS += $(shell pkg-config --cflags freetype2) + LIBS += $(shell pkg-config --libs freetype2) +endif + +##--------------------------------------------------------------------- +## BUILD FLAGS PER PLATFORM +##--------------------------------------------------------------------- + +ifeq ($(UNAME_S), Linux) #LINUX + ECHO_MESSAGE = "Linux" + ifeq ($(WITH_EXTRA_WARNINGS), 1) + CXXFLAGS += -Wextra -Wpedantic + ifeq ($(shell $(CXX) -v 2>&1 | grep -c "clang version"), 1) + CXXFLAGS += -Wshadow -Wsign-conversion + endif + endif + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(UNAME_S), Darwin) #APPLE + ECHO_MESSAGE = "Mac OS X" + ifeq ($(WITH_EXTRA_WARNINGS), 1) + CXXFLAGS += -Weverything -Wno-reserved-id-macro -Wno-c++98-compat-pedantic -Wno-padded -Wno-poison-system-directories + endif + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(OS), Windows_NT) + ECHO_MESSAGE = "MinGW" + ifeq ($(WITH_EXTRA_WARNINGS), 1) + CXXFLAGS += -Wextra -Wpedantic + endif + LIBS += -limm32 + CFLAGS = $(CXXFLAGS) +endif + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/misc/freetype/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(ECHO_MESSAGE) + +$(EXE): $(OBJS) + $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) + +clean: + rm -f $(EXE) $(OBJS) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_null/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_null/build_win32.bat new file mode 100644 index 0000000..be81d80 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_null/build_win32.bat @@ -0,0 +1,3 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +mkdir Debug +cl /nologo /Zi /MD /utf-8 /I ..\.. %* *.cpp ..\..\*.cpp /FeDebug/example_null.exe /FoDebug/ /link gdi32.lib shell32.lib imm32.lib diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_null/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_null/main.cpp new file mode 100644 index 0000000..f7153cc --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_null/main.cpp @@ -0,0 +1,37 @@ +// dear imgui: "null" example application +// (compile and link imgui, create context, run headless with NO INPUTS, NO GRAPHICS OUTPUT) +// This is useful to test building, but you cannot interact with anything here! +#include "imgui.h" +#include + +int main(int, char**) +{ + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + + // Build atlas + unsigned char* tex_pixels = nullptr; + int tex_w, tex_h; + io.Fonts->GetTexDataAsRGBA32(&tex_pixels, &tex_w, &tex_h); + + for (int n = 0; n < 20; n++) + { + printf("NewFrame() %d\n", n); + io.DisplaySize = ImVec2(1920, 1080); + io.DeltaTime = 1.0f / 60.0f; + ImGui::NewFrame(); + + static float f = 0.0f; + ImGui::Text("Hello, world!"); + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::ShowDemoWindow(nullptr); + + ImGui::Render(); + } + + printf("DestroyContext()\n"); + ImGui::DestroyContext(); + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/build_win32.bat new file mode 100644 index 0000000..f0b485c --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/build_win32.bat @@ -0,0 +1,8 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_sdl2_directx11 +@set INCLUDES=/I..\.. /I..\..\backends /I%SDL2_DIR%\include /I "%WindowsSdkDir%Include\um" /I "%WindowsSdkDir%Include\shared" /I "%DXSDK_DIR%Include" +@set SOURCES=main.cpp ..\..\backends\imgui_impl_sdl2.cpp ..\..\backends\imgui_impl_dx11.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib /LIBPATH:"%DXSDK_DIR%/Lib/x86" d3d11.lib d3dcompiler.lib shell32.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% /subsystem:console diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj new file mode 100644 index 0000000..c23800c --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj @@ -0,0 +1,187 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {9E1987E3-1F19-45CA-B9C9-D31E791836D8} + example_sdl2_directx11 + 8.1 + example_sdl2_directx11 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL2_DIR%\lib\x86;$(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) + SDL2.lib;SDL2main.lib;d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL2_DIR%\lib\x64;$(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) + SDL2.lib;SDL2main.lib;d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL2_DIR%\lib\x86;$(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) + SDL2.lib;SDL2main.lib;d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL2_DIR%\lib\x64;$(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) + SDL2.lib;SDL2main.lib;d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj.filters new file mode 100644 index 0000000..92d11f8 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/example_sdl2_directx11.vcxproj.filters @@ -0,0 +1,63 @@ + + + + + {0587d7a3-f2ce-4d56-b84f-a0005d3bfce6} + + + {08e36723-ce4f-4cff-9662-c40801cf1acf} + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + imgui + + + sources + + + imgui + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/main.cpp new file mode 100644 index 0000000..69d4da1 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_directx11/main.cpp @@ -0,0 +1,258 @@ +// Dear ImGui: standalone example application for SDL2 + DirectX 11 +// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#include "imgui_impl_sdl2.h" +#include "imgui_impl_dx11.h" +#include +#include +#include +#include + +// Data +static ID3D11Device* g_pd3dDevice = nullptr; +static ID3D11DeviceContext* g_pd3dDeviceContext = nullptr; +static IDXGISwapChain* g_pSwapChain = nullptr; +static ID3D11RenderTargetView* g_mainRenderTargetView = nullptr; + +// Forward declarations of helper functions +bool CreateDeviceD3D(HWND hWnd); +void CleanupDeviceD3D(); +void CreateRenderTarget(); +void CleanupRenderTarget(); + +// Main code +int main(int, char**) +{ + // Setup SDL + // (Some versions of SDL before <2.0.10 appears to have performance/stalling issues on a minority of Windows systems, + // depending on whether SDL_INIT_GAMECONTROLLER is enabled or disabled.. updating to the latest version of SDL is recommended!) + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) + { + printf("Error: %s\n", SDL_GetError()); + return -1; + } + + // From 2.0.18: Enable native IME. +#ifdef SDL_HINT_IME_SHOW_UI + SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); +#endif + + // Setup window + SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); + SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+DirectX11 example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); + SDL_SysWMinfo wmInfo; + SDL_VERSION(&wmInfo.version); + SDL_GetWindowWMInfo(window, &wmInfo); + HWND hwnd = (HWND)wmInfo.info.win.window; + + // Initialize Direct3D + if (!CreateDeviceD3D(hwnd)) + { + CleanupDeviceD3D(); + return 1; + } + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigViewportsNoAutoMerge = true; + //io.ConfigViewportsNoTaskBarIcon = true; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplSDL2_InitForD3D(window); + ImGui_ImplDX11_Init(g_pd3dDevice, g_pd3dDeviceContext); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; + while (!done) + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + SDL_Event event; + while (SDL_PollEvent(&event)) + { + ImGui_ImplSDL2_ProcessEvent(&event); + if (event.type == SDL_QUIT) + done = true; + if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) + done = true; + if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_RESIZED && event.window.windowID == SDL_GetWindowID(window)) + { + // Release all outstanding references to the swap chain's buffers before resizing. + CleanupRenderTarget(); + g_pSwapChain->ResizeBuffers(0, 0, 0, DXGI_FORMAT_UNKNOWN, 0); + CreateRenderTarget(); + } + } + + // Start the Dear ImGui frame + ImGui_ImplDX11_NewFrame(); + ImGui_ImplSDL2_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + const float clear_color_with_alpha[4] = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; + g_pd3dDeviceContext->OMSetRenderTargets(1, &g_mainRenderTargetView, nullptr); + g_pd3dDeviceContext->ClearRenderTargetView(g_mainRenderTargetView, clear_color_with_alpha); + ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + } + + g_pSwapChain->Present(1, 0); // Present with vsync + //g_pSwapChain->Present(0, 0); // Present without vsync + } + + // Cleanup + ImGui_ImplDX11_Shutdown(); + ImGui_ImplSDL2_Shutdown(); + ImGui::DestroyContext(); + + CleanupDeviceD3D(); + SDL_DestroyWindow(window); + SDL_Quit(); + + return 0; +} + +// Helper functions to use DirectX11 +bool CreateDeviceD3D(HWND hWnd) +{ + // Setup swap chain + DXGI_SWAP_CHAIN_DESC sd; + ZeroMemory(&sd, sizeof(sd)); + sd.BufferCount = 2; + sd.BufferDesc.Width = 0; + sd.BufferDesc.Height = 0; + sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + sd.BufferDesc.RefreshRate.Numerator = 60; + sd.BufferDesc.RefreshRate.Denominator = 1; + sd.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH; + sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + sd.OutputWindow = hWnd; + sd.SampleDesc.Count = 1; + sd.SampleDesc.Quality = 0; + sd.Windowed = TRUE; + sd.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; + + UINT createDeviceFlags = 0; + //createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG; + D3D_FEATURE_LEVEL featureLevel; + const D3D_FEATURE_LEVEL featureLevelArray[2] = { D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_10_0, }; + if (D3D11CreateDeviceAndSwapChain(nullptr, D3D_DRIVER_TYPE_HARDWARE, nullptr, createDeviceFlags, featureLevelArray, 2, D3D11_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice, &featureLevel, &g_pd3dDeviceContext) != S_OK) + return false; + + CreateRenderTarget(); + return true; +} + +void CleanupDeviceD3D() +{ + CleanupRenderTarget(); + if (g_pSwapChain) { g_pSwapChain->Release(); g_pSwapChain = nullptr; } + if (g_pd3dDeviceContext) { g_pd3dDeviceContext->Release(); g_pd3dDeviceContext = nullptr; } + if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = nullptr; } +} + +void CreateRenderTarget() +{ + ID3D11Texture2D* pBackBuffer; + g_pSwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); + g_pd3dDevice->CreateRenderTargetView(pBackBuffer, nullptr, &g_mainRenderTargetView); + pBackBuffer->Release(); +} + +void CleanupRenderTarget() +{ + if (g_mainRenderTargetView) { g_mainRenderTargetView->Release(); g_mainRenderTargetView = nullptr; } +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_metal/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_metal/Makefile new file mode 100644 index 0000000..53c5f75 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_metal/Makefile @@ -0,0 +1,47 @@ +# +# You will need SDL2 (http://www.libsdl.org): +# brew install sdl2 +# + +#CXX = g++ +#CXX = clang++ + +EXE = example_sdl2_metal +IMGUI_DIR = ../.. +SOURCES = main.mm +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl2.cpp $(IMGUI_DIR)/backends/imgui_impl_metal.mm +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) + +LIBS = -framework Metal -framework MetalKit -framework Cocoa -framework IOKit -framework CoreVideo -framework QuartzCore +LIBS += `sdl2-config --libs` +LIBS += -L/usr/local/lib + +CXXFLAGS = -std=c++11 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -I/usr/local/include +CXXFLAGS += `sdl2-config --cflags` +CXXFLAGS += -Wall -Wformat +CFLAGS = $(CXXFLAGS) + +%.o:%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:%.mm + $(CXX) $(CXXFLAGS) -ObjC++ -fobjc-weak -fobjc-arc -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.mm + $(CXX) $(CXXFLAGS) -ObjC++ -fobjc-weak -fobjc-arc -c -o $@ $< + +all: $(EXE) + @echo Build complete + +$(EXE): $(OBJS) + $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) + +clean: + rm -f $(EXE) $(OBJS) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_metal/main.mm b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_metal/main.mm new file mode 100644 index 0000000..5cd7043 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_metal/main.mm @@ -0,0 +1,206 @@ +// Dear ImGui: standalone example application for SDL2 + Metal +// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#include "imgui_impl_sdl2.h" +#include "imgui_impl_metal.h" +#include +#include + +#import +#import + +int main(int, char**) +{ + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + + // Setup style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Setup SDL + // (Some versions of SDL before <2.0.10 appears to have performance/stalling issues on a minority of Windows systems, + // depending on whether SDL_INIT_GAMECONTROLLER is enabled or disabled.. updating to latest version of SDL is recommended!) + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) + { + printf("Error: %s\n", SDL_GetError()); + return -1; + } + + // Inform SDL that we will be using metal for rendering. Without this hint initialization of metal renderer may fail. + SDL_SetHint(SDL_HINT_RENDER_DRIVER, "metal"); + + // Enable native IME. + SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); + + SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL+Metal example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); + if (window == nullptr) + { + printf("Error creating window: %s\n", SDL_GetError()); + return -2; + } + + SDL_Renderer* renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); + if (renderer == nullptr) + { + printf("Error creating renderer: %s\n", SDL_GetError()); + return -3; + } + + // Setup Platform/Renderer backends + CAMetalLayer* layer = (__bridge CAMetalLayer*)SDL_RenderGetMetalLayer(renderer); + layer.pixelFormat = MTLPixelFormatBGRA8Unorm; + ImGui_ImplMetal_Init(layer.device); + ImGui_ImplSDL2_InitForMetal(window); + + id commandQueue = [layer.device newCommandQueue]; + MTLRenderPassDescriptor* renderPassDescriptor = [MTLRenderPassDescriptor new]; + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + float clear_color[4] = {0.45f, 0.55f, 0.60f, 1.00f}; + + // Main loop + bool done = false; + while (!done) + { + @autoreleasepool + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + SDL_Event event; + while (SDL_PollEvent(&event)) + { + ImGui_ImplSDL2_ProcessEvent(&event); + if (event.type == SDL_QUIT) + done = true; + if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) + done = true; + } + + int width, height; + SDL_GetRendererOutputSize(renderer, &width, &height); + layer.drawableSize = CGSizeMake(width, height); + id drawable = [layer nextDrawable]; + + id commandBuffer = [commandQueue commandBuffer]; + renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColorMake(clear_color[0] * clear_color[3], clear_color[1] * clear_color[3], clear_color[2] * clear_color[3], clear_color[3]); + renderPassDescriptor.colorAttachments[0].texture = drawable.texture; + renderPassDescriptor.colorAttachments[0].loadAction = MTLLoadActionClear; + renderPassDescriptor.colorAttachments[0].storeAction = MTLStoreActionStore; + id renderEncoder = [commandBuffer renderCommandEncoderWithDescriptor:renderPassDescriptor]; + [renderEncoder pushDebugGroup:@"ImGui demo"]; + + // Start the Dear ImGui frame + ImGui_ImplMetal_NewFrame(renderPassDescriptor); + ImGui_ImplSDL2_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + ImGui_ImplMetal_RenderDrawData(ImGui::GetDrawData(), commandBuffer, renderEncoder); + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + } + + [renderEncoder popDebugGroup]; + [renderEncoder endEncoding]; + + [commandBuffer presentDrawable:drawable]; + [commandBuffer commit]; + } + } + + // Cleanup + ImGui_ImplMetal_Shutdown(); + ImGui_ImplSDL2_Shutdown(); + ImGui::DestroyContext(); + + SDL_DestroyRenderer(renderer); + SDL_DestroyWindow(window); + SDL_Quit(); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/Makefile new file mode 100644 index 0000000..a85ced0 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/Makefile @@ -0,0 +1,79 @@ +# +# Cross Platform Makefile +# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X +# +# You will need SDL2 (http://www.libsdl.org): +# Linux: +# apt-get install libsdl2-dev +# Mac OS X: +# brew install sdl2 +# MSYS2: +# pacman -S mingw-w64-i686-SDL2 +# + +#CXX = g++ +#CXX = clang++ + +EXE = example_sdl2_opengl2 +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl2.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl2.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) + +CXXFLAGS = -std=c++11 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +CXXFLAGS += -g -Wall -Wformat +LIBS = + +##--------------------------------------------------------------------- +## BUILD FLAGS PER PLATFORM +##--------------------------------------------------------------------- + +ifeq ($(UNAME_S), Linux) #LINUX + ECHO_MESSAGE = "Linux" + LIBS += -lGL -ldl `sdl2-config --libs` + + CXXFLAGS += `sdl2-config --cflags` + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(UNAME_S), Darwin) #APPLE + ECHO_MESSAGE = "Mac OS X" + LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo `sdl2-config --libs` + LIBS += -L/usr/local/lib -L/opt/local/lib + + CXXFLAGS += `sdl2-config --cflags` + CXXFLAGS += -I/usr/local/include -I/opt/local/include + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(OS), Windows_NT) + ECHO_MESSAGE = "MinGW" + LIBS += -lgdi32 -lopengl32 -limm32 `pkg-config --static --libs sdl2` + + CXXFLAGS += `pkg-config --cflags sdl2` + CFLAGS = $(CXXFLAGS) +endif + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(ECHO_MESSAGE) + +$(EXE): $(OBJS) + $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) + +clean: + rm -f $(EXE) $(OBJS) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/README.md b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/README.md new file mode 100644 index 0000000..40a49e6 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/README.md @@ -0,0 +1,29 @@ + +# How to Build + +- On Windows with Visual Studio's IDE + +Use the provided project file (.vcxproj). Add to solution (imgui_examples.sln) if necessary. + +- On Windows with Visual Studio's CLI + +``` +set SDL2_DIR=path_to_your_sdl2_folder +cl /Zi /MD /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl2.cpp ..\..\backends\imgui_impl_opengl2.cpp ..\..\imgui*.cpp /FeDebug/example_sdl2_opengl2.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib opengl32.lib /subsystem:console +# ^^ include paths ^^ source files ^^ output exe ^^ output dir ^^ libraries +# or for 64-bit: +cl /Zi /MD /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl2.cpp ..\..\backends\imgui_impl_opengl2.cpp ..\..\imgui*.cpp /FeDebug/example_sdl2_opengl2.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x64 SDL2.lib SDL2main.lib opengl32.lib /subsystem:console +``` + +- On Linux and similar Unixes + +``` +c++ `sdl2-config --cflags` -I .. -I ../.. -I ../../backends main.cpp ../../backends/imgui_impl_sdl2.cpp ../../backends/imgui_impl_opengl2.cpp ../../imgui*.cpp `sdl2-config --libs` -lGL +``` + +- On Mac OS X + +``` +brew install sdl2 +c++ `sdl2-config --cflags` -I .. -I ../.. -I ../../backends main.cpp ../../backends/imgui_impl_sdl2.cpp ../../backends/imgui_impl_opengl2.cpp ../../imgui*.cpp `sdl2-config --libs` -framework OpenGl +``` diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/build_win32.bat new file mode 100644 index 0000000..7543eda --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/build_win32.bat @@ -0,0 +1,8 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_sdl2_opengl2 +@set INCLUDES=/I..\.. /I..\..\backends /I%SDL2_DIR%\include +@set SOURCES=main.cpp ..\..\backends\imgui_impl_sdl2.cpp ..\..\backends\imgui_impl_opengl2.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib opengl32.lib shell32.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% /subsystem:console diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/example_sdl2_opengl2.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/example_sdl2_opengl2.vcxproj new file mode 100644 index 0000000..036463f --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/example_sdl2_opengl2.vcxproj @@ -0,0 +1,186 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {2AE17FDE-F7F3-4CAC-ADAB-0710EDA4F741} + example_sdl2_opengl2 + 8.1 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/example_sdl2_opengl2.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/example_sdl2_opengl2.vcxproj.filters new file mode 100644 index 0000000..752a196 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/example_sdl2_opengl2.vcxproj.filters @@ -0,0 +1,64 @@ + + + + + {20b90ce4-7fcb-4731-b9a0-075f875de82d} + + + {f18ab499-84e1-499f-8eff-9754361e0e52} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + imgui + + + imgui + + + imgui + + + sources + + + imgui + + + imgui + + + sources + + + sources + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/main.cpp new file mode 100644 index 0000000..f4f1f21 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl2/main.cpp @@ -0,0 +1,190 @@ +// Dear ImGui: standalone example application for SDL2 + OpenGL +// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)** +// **Prefer using the code in the example_sdl2_opengl3/ folder** +// See imgui_impl_sdl2.cpp for details. + +#include "imgui.h" +#include "imgui_impl_sdl2.h" +#include "imgui_impl_opengl2.h" +#include +#include +#include + +// Main code +int main(int, char**) +{ + // Setup SDL + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) + { + printf("Error: %s\n", SDL_GetError()); + return -1; + } + + // From 2.0.18: Enable native IME. +#ifdef SDL_HINT_IME_SHOW_UI + SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); +#endif + + // Setup window + SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); + SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); + SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2); + SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); + SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+OpenGL example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); + SDL_GLContext gl_context = SDL_GL_CreateContext(window); + SDL_GL_MakeCurrent(window, gl_context); + SDL_GL_SetSwapInterval(1); // Enable vsync + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigViewportsNoAutoMerge = true; + //io.ConfigViewportsNoTaskBarIcon = true; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplSDL2_InitForOpenGL(window, gl_context); + ImGui_ImplOpenGL2_Init(); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; + while (!done) + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + SDL_Event event; + while (SDL_PollEvent(&event)) + { + ImGui_ImplSDL2_ProcessEvent(&event); + if (event.type == SDL_QUIT) + done = true; + if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) + done = true; + } + + // Start the Dear ImGui frame + ImGui_ImplOpenGL2_NewFrame(); + ImGui_ImplSDL2_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + glViewport(0, 0, (int)io.DisplaySize.x, (int)io.DisplaySize.y); + glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + //glUseProgram(0); // You may want this if using this code in an OpenGL 3+ context where shaders may be bound + ImGui_ImplOpenGL2_RenderDrawData(ImGui::GetDrawData()); + + // Update and Render additional Platform Windows + // (Platform functions may change the current OpenGL context, so we save/restore it to make it easier to paste this code elsewhere. + // For this specific demo app we could also call SDL_GL_MakeCurrent(window, gl_context) directly) + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + SDL_Window* backup_current_window = SDL_GL_GetCurrentWindow(); + SDL_GLContext backup_current_context = SDL_GL_GetCurrentContext(); + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + SDL_GL_MakeCurrent(backup_current_window, backup_current_context); + } + + SDL_GL_SwapWindow(window); + } + + // Cleanup + ImGui_ImplOpenGL2_Shutdown(); + ImGui_ImplSDL2_Shutdown(); + ImGui::DestroyContext(); + + SDL_GL_DeleteContext(gl_context); + SDL_DestroyWindow(window); + SDL_Quit(); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/Makefile new file mode 100644 index 0000000..5b4f941 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/Makefile @@ -0,0 +1,91 @@ +# +# Cross Platform Makefile +# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X +# +# You will need SDL2 (http://www.libsdl.org): +# Linux: +# apt-get install libsdl2-dev +# Mac OS X: +# brew install sdl2 +# MSYS2: +# pacman -S mingw-w64-i686-SDL2 +# + +#CXX = g++ +#CXX = clang++ + +EXE = example_sdl2_opengl3 +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl2.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) +LINUX_GL_LIBS = -lGL + +CXXFLAGS = -std=c++11 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +CXXFLAGS += -g -Wall -Wformat +LIBS = + +##--------------------------------------------------------------------- +## OPENGL ES +##--------------------------------------------------------------------- + +## This assumes a GL ES library available in the system, e.g. libGLESv2.so +# CXXFLAGS += -DIMGUI_IMPL_OPENGL_ES2 +# LINUX_GL_LIBS = -lGLESv2 +## If you're on a Raspberry Pi and want to use the legacy drivers, +## use the following instead: +# LINUX_GL_LIBS = -L/opt/vc/lib -lbrcmGLESv2 + +##--------------------------------------------------------------------- +## BUILD FLAGS PER PLATFORM +##--------------------------------------------------------------------- + +ifeq ($(UNAME_S), Linux) #LINUX + ECHO_MESSAGE = "Linux" + LIBS += $(LINUX_GL_LIBS) -ldl `sdl2-config --libs` + + CXXFLAGS += `sdl2-config --cflags` + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(UNAME_S), Darwin) #APPLE + ECHO_MESSAGE = "Mac OS X" + LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo `sdl2-config --libs` + LIBS += -L/usr/local/lib -L/opt/local/lib + + CXXFLAGS += `sdl2-config --cflags` + CXXFLAGS += -I/usr/local/include -I/opt/local/include + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(OS), Windows_NT) + ECHO_MESSAGE = "MinGW" + LIBS += -lgdi32 -lopengl32 -limm32 `pkg-config --static --libs sdl2` + + CXXFLAGS += `pkg-config --cflags sdl2` + CFLAGS = $(CXXFLAGS) +endif + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(ECHO_MESSAGE) + +$(EXE): $(OBJS) + $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) + +clean: + rm -f $(EXE) $(OBJS) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/Makefile.emscripten b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/Makefile.emscripten new file mode 100644 index 0000000..da03484 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/Makefile.emscripten @@ -0,0 +1,92 @@ +# +# Makefile to use with SDL+emscripten +# See https://emscripten.org/docs/getting_started/downloads.html +# for installation instructions. +# +# This Makefile assumes you have loaded emscripten's environment. +# (On Windows, you may need to execute emsdk_env.bat or encmdprompt.bat ahead) +# +# Running `make -f Makefile.emscripten` will produce three files: +# - web/index.html +# - web/index.js +# - web/index.wasm +# +# All three are needed to run the demo. + +CC = emcc +CXX = em++ +WEB_DIR = web +EXE = $(WEB_DIR)/index.html +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl2.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) +CPPFLAGS = +LDFLAGS = +EMS = + +##--------------------------------------------------------------------- +## EMSCRIPTEN OPTIONS +##--------------------------------------------------------------------- + +# ("EMS" options gets added to both CPPFLAGS and LDFLAGS, whereas some options are for linker only) +EMS += -s USE_SDL=2 +EMS += -s DISABLE_EXCEPTION_CATCHING=1 +LDFLAGS += -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s NO_EXIT_RUNTIME=0 -s ASSERTIONS=1 + +# Uncomment next line to fix possible rendering bugs with Emscripten version older then 1.39.0 (https://github.com/ocornut/imgui/issues/2877) +#EMS += -s BINARYEN_TRAP_MODE=clamp +#EMS += -s SAFE_HEAP=1 ## Adds overhead + +# Emscripten allows preloading a file or folder to be accessible at runtime. +# The Makefile for this example project suggests embedding the misc/fonts/ folder into our application, it will then be accessible as "/fonts" +# See documentation for more details: https://emscripten.org/docs/porting/files/packaging_files.html +# (Default value is 0. Set to 1 to enable file-system and include the misc/fonts/ folder as part of the build.) +USE_FILE_SYSTEM ?= 0 +ifeq ($(USE_FILE_SYSTEM), 0) +LDFLAGS += -s NO_FILESYSTEM=1 +CPPFLAGS += -DIMGUI_DISABLE_FILE_FUNCTIONS +endif +ifeq ($(USE_FILE_SYSTEM), 1) +LDFLAGS += --no-heap-copy --preload-file ../../misc/fonts@/fonts +endif + +##--------------------------------------------------------------------- +## FINAL BUILD FLAGS +##--------------------------------------------------------------------- + +CPPFLAGS += -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +#CPPFLAGS += -g +CPPFLAGS += -Wall -Wformat -Os $(EMS) +LDFLAGS += --shell-file ../libs/emscripten/shell_minimal.html +LDFLAGS += $(EMS) + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(EXE) + +$(WEB_DIR): + mkdir $@ + +serve: all + python3 -m http.server -d $(WEB_DIR) + +$(EXE): $(OBJS) $(WEB_DIR) + $(CXX) -o $@ $(OBJS) $(LDFLAGS) + +clean: + rm -rf $(OBJS) $(WEB_DIR) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/README.md b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/README.md new file mode 100644 index 0000000..81fd9fe --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/README.md @@ -0,0 +1,57 @@ + +# How to Build + +## Windows with Visual Studio's IDE + +Use the provided project file (.vcxproj). Add to solution (imgui_examples.sln) if necessary. + +## Windows with Visual Studio's CLI + +Use build_win32.bat or directly: +``` +set SDL2_DIR=path_to_your_sdl2_folder +cl /Zi /MD /utf-8 /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl2.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\imgui*.cpp /FeDebug/example_sdl2_opengl3.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib opengl32.lib /subsystem:console +# ^^ include paths ^^ source files ^^ output exe ^^ output dir ^^ libraries +# or for 64-bit: +cl /Zi /MD /utf-8 /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl2.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\imgui*.cpp /FeDebug/example_sdl2_opengl3.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x64 SDL2.lib SDL2main.lib opengl32.lib /subsystem:console +``` + +## Linux and similar Unixes + +Use our Makefile or directly: +``` +c++ `sdl2-config --cflags` -I .. -I ../.. -I ../../backends + main.cpp ../../backends/imgui_impl_sdl2.cpp ../../backends/imgui_impl_opengl3.cpp ../../imgui*.cpp + `sdl2-config --libs` -lGL -ldl +``` + +## macOS + +Use our Makefile or directly: +``` +brew install sdl2 +c++ `sdl2-config --cflags` -I .. -I ../.. -I ../../backends + main.cpp ../../backends/imgui_impl_sdl2.cpp ../../backends/imgui_impl_opengl3.cpp ../../imgui*.cpp + `sdl2-config --libs` -framework OpenGl -framework CoreFoundation +``` + +## Emscripten + +**Building** + +You need to install Emscripten from https://emscripten.org/docs/getting_started/downloads.html, and have the environment variables set, as described in https://emscripten.org/docs/getting_started/downloads.html#installation-instructions + +- Depending on your configuration, in Windows you may need to run `emsdk/emsdk_env.bat` in your console to access the Emscripten command-line tools. +- You may also refer to our [Continuous Integration setup](https://github.com/ocornut/imgui/tree/master/.github/workflows) for Emscripten setup. +- Then build using `make -f Makefile.emscripten` while in the current directory. + +**Running an Emscripten project** + +To run on a local machine: +- `make -f Makefile.emscripten serve` will use Python3 to spawn a local webserver, you can then browse http://localhost:8000 to access your build. +- Otherwise, generally you will need a local webserver. Quoting [https://emscripten.org/docs/getting_started](https://emscripten.org/docs/getting_started/Tutorial.html#generating-html):
+_"Unfortunately several browsers (including Chrome, Safari, and Internet Explorer) do not support file:// [XHR](https://emscripten.org/docs/site/glossary.html#term-xhr) requests, and can’t load extra files needed by the HTML (like a .wasm file, or packaged file data as mentioned lower down). For these browsers you’ll need to serve the files using a [local webserver](https://emscripten.org/docs/getting_started/FAQ.html#faq-local-webserver) and then open http://localhost:8000/hello.html."_ +- Emscripten SDK has a handy `emrun` command: `emrun web/index.html --browser firefox` which will spawn a temporary local webserver (in Firefox). See https://emscripten.org/docs/compiling/Running-html-files-with-emrun.html for details. +- You may use Python 3 builtin webserver: `python -m http.server -d web` (this is what `make serve` uses). +- You may use Python 2 builtin webserver: `cd web && python -m SimpleHTTPServer`. +- If you are accessing the files over a network, certain browsers, such as Firefox, will restrict Gamepad API access to secure contexts only (e.g. https only). diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/build_win32.bat new file mode 100644 index 0000000..7b2fac9 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/build_win32.bat @@ -0,0 +1,8 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_sdl2_opengl3 +@set INCLUDES=/I..\.. /I..\..\backends /I%SDL2_DIR%\include +@set SOURCES=main.cpp ..\..\backends\imgui_impl_sdl2.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib opengl32.lib shell32.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% /subsystem:console diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/example_sdl2_opengl3.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/example_sdl2_opengl3.vcxproj new file mode 100644 index 0000000..6a81c67 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/example_sdl2_opengl3.vcxproj @@ -0,0 +1,187 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {BBAEB705-1669-40F3-8567-04CF6A991F4C} + example_sdl2_opengl3 + 8.1 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/example_sdl2_opengl3.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/example_sdl2_opengl3.vcxproj.filters new file mode 100644 index 0000000..846d557 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/example_sdl2_opengl3.vcxproj.filters @@ -0,0 +1,67 @@ + + + + + {20b90ce4-7fcb-4731-b9a0-075f875de82d} + + + {f18ab499-84e1-499f-8eff-9754361e0e52} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + sources + + + imgui + + + imgui + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/main.cpp new file mode 100644 index 0000000..e298e0a --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_opengl3/main.cpp @@ -0,0 +1,227 @@ +// Dear ImGui: standalone example application for SDL2 + OpenGL +// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#include "imgui_impl_sdl2.h" +#include "imgui_impl_opengl3.h" +#include +#include +#if defined(IMGUI_IMPL_OPENGL_ES2) +#include +#else +#include +#endif + +// This example can also compile and run with Emscripten! See 'Makefile.emscripten' for details. +#ifdef __EMSCRIPTEN__ +#include "../libs/emscripten/emscripten_mainloop_stub.h" +#endif + +// Main code +int main(int, char**) +{ + // Setup SDL + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) + { + printf("Error: %s\n", SDL_GetError()); + return -1; + } + + // Decide GL+GLSL versions +#if defined(IMGUI_IMPL_OPENGL_ES2) + // GL ES 2.0 + GLSL 100 + const char* glsl_version = "#version 100"; + SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, 0); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); +#elif defined(__APPLE__) + // GL 3.2 Core + GLSL 150 + const char* glsl_version = "#version 150"; + SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG); // Always required on Mac + SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2); +#else + // GL 3.0 + GLSL 130 + const char* glsl_version = "#version 130"; + SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, 0); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); +#endif + + // From 2.0.18: Enable native IME. +#ifdef SDL_HINT_IME_SHOW_UI + SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); +#endif + + // Create window with graphics context + SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); + SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); + SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); + SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); + SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+OpenGL3 example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); + SDL_GLContext gl_context = SDL_GL_CreateContext(window); + SDL_GL_MakeCurrent(window, gl_context); + SDL_GL_SetSwapInterval(1); // Enable vsync + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigViewportsNoAutoMerge = true; + //io.ConfigViewportsNoTaskBarIcon = true; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplSDL2_InitForOpenGL(window, gl_context); + ImGui_ImplOpenGL3_Init(glsl_version); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + // - Our Emscripten build process allows embedding fonts to be accessible at runtime from the "fonts/" folder. See Makefile.emscripten for details. + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; +#ifdef __EMSCRIPTEN__ + // For an Emscripten build we are disabling file-system access, so let's not attempt to do a fopen() of the imgui.ini file. + // You may manually call LoadIniSettingsFromMemory() to load settings from your own storage. + io.IniFilename = nullptr; + EMSCRIPTEN_MAINLOOP_BEGIN +#else + while (!done) +#endif + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + SDL_Event event; + while (SDL_PollEvent(&event)) + { + ImGui_ImplSDL2_ProcessEvent(&event); + if (event.type == SDL_QUIT) + done = true; + if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) + done = true; + } + + // Start the Dear ImGui frame + ImGui_ImplOpenGL3_NewFrame(); + ImGui_ImplSDL2_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + glViewport(0, 0, (int)io.DisplaySize.x, (int)io.DisplaySize.y); + glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); + + // Update and Render additional Platform Windows + // (Platform functions may change the current OpenGL context, so we save/restore it to make it easier to paste this code elsewhere. + // For this specific demo app we could also call SDL_GL_MakeCurrent(window, gl_context) directly) + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + SDL_Window* backup_current_window = SDL_GL_GetCurrentWindow(); + SDL_GLContext backup_current_context = SDL_GL_GetCurrentContext(); + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + SDL_GL_MakeCurrent(backup_current_window, backup_current_context); + } + + SDL_GL_SwapWindow(window); + } +#ifdef __EMSCRIPTEN__ + EMSCRIPTEN_MAINLOOP_END; +#endif + + // Cleanup + ImGui_ImplOpenGL3_Shutdown(); + ImGui_ImplSDL2_Shutdown(); + ImGui::DestroyContext(); + + SDL_GL_DeleteContext(gl_context); + SDL_DestroyWindow(window); + SDL_Quit(); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/Makefile new file mode 100644 index 0000000..5820d9b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/Makefile @@ -0,0 +1,79 @@ +# +# Cross Platform Makefile +# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X +# +# You will need SDL2 (http://www.libsdl.org): +# Linux: +# apt-get install libsdl2-dev +# Mac OS X: +# brew install sdl2 +# MSYS2: +# pacman -S mingw-w64-i686-SDL2 +# + +#CXX = g++ +#CXX = clang++ + +EXE = example_sdl2_sdlrenderer2 +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl2.cpp $(IMGUI_DIR)/backends/imgui_impl_sdlrenderer2.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) + +CXXFLAGS = -std=c++11 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +CXXFLAGS += -g -Wall -Wformat +LIBS = + +##--------------------------------------------------------------------- +## BUILD FLAGS PER PLATFORM +##--------------------------------------------------------------------- + +ifeq ($(UNAME_S), Linux) #LINUX + ECHO_MESSAGE = "Linux" + LIBS += -lGL -ldl `sdl2-config --libs` + + CXXFLAGS += `sdl2-config --cflags` + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(UNAME_S), Darwin) #APPLE + ECHO_MESSAGE = "Mac OS X" + LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo `sdl2-config --libs` + LIBS += -L/usr/local/lib -L/opt/local/lib + + CXXFLAGS += `sdl2-config --cflags` + CXXFLAGS += -I/usr/local/include -I/opt/local/include + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(OS), Windows_NT) + ECHO_MESSAGE = "MinGW" + LIBS += -lgdi32 -lopengl32 -limm32 `pkg-config --static --libs sdl2` + + CXXFLAGS += `pkg-config --cflags sdl2` + CFLAGS = $(CXXFLAGS) +endif + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(ECHO_MESSAGE) + +$(EXE): $(OBJS) + $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) + +clean: + rm -f $(EXE) $(OBJS) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/README.md b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/README.md new file mode 100644 index 0000000..ef6fe85 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/README.md @@ -0,0 +1,25 @@ + +# How to Build + +- On Windows with Visual Studio's CLI + +``` +set SDL2_DIR=path_to_your_sdl2_folder +cl /Zi /MD /utf-8 /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl2.cpp ..\..\backends\imgui_impl_sdlrenderer2.cpp ..\..\imgui*.cpp /FeDebug/example_sdl2_sdlrenderer.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib /subsystem:console +# ^^ include paths ^^ source files ^^ output exe ^^ output dir ^^ libraries +# or for 64-bit: +cl /Zi /MD /utf-8 /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl2.cpp ..\..\backends\imgui_impl_sdlrenderer2.cpp ..\..\imgui*.cpp /FeDebug/example_sdl2_sdlrenderer.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x64 SDL2.lib SDL2main.lib /subsystem:console +``` + +- On Linux and similar Unixes + +``` +c++ `sdl2-config --cflags` -I .. -I ../.. main.cpp ../../backends/imgui_impl_sdl2.cpp ../../backends/imgui_impl_sdlrenderer2.cpp ../../imgui*.cpp `sdl2-config --libs` -lGL +``` + +- On Mac OS X + +``` +brew install sdl2 +c++ `sdl2-config --cflags` -I .. -I ../.. main.cpp ../../backends/imgui_impl_sdl2.cpp ../../backends/imgui_impl_sdlrenderer2.cpp ../../imgui*.cpp `sdl2-config --libs` -framework OpenGl +``` diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/build_win32.bat new file mode 100644 index 0000000..e311bfc --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/build_win32.bat @@ -0,0 +1,8 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_sdl2_sdlrenderer_ +@set INCLUDES=/I..\.. /I..\..\backends /I%SDL2_DIR%\include +@set SOURCES=main.cpp ..\..\backends\imgui_impl_sdl2.cpp ..\..\backends\imgui_impl_sdlrenderer2.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% /subsystem:console diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/example_sdl2_sdlrenderer2.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/example_sdl2_sdlrenderer2.vcxproj new file mode 100644 index 0000000..cf2c890 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/example_sdl2_sdlrenderer2.vcxproj @@ -0,0 +1,187 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {0C0B2BEA-311F-473C-9652-87923EF639E3} + example_sdl2_sdlrenderer2 + 8.1 + example_sdl2_sdlrenderer2 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) + SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) + SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) + SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) + SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/example_sdl2_sdlrenderer2.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/example_sdl2_sdlrenderer2.vcxproj.filters new file mode 100644 index 0000000..5c6da42 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/example_sdl2_sdlrenderer2.vcxproj.filters @@ -0,0 +1,64 @@ + + + + + {20b90ce4-7fcb-4731-b9a0-075f875de82d} + + + {f18ab499-84e1-499f-8eff-9754361e0e52} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + imgui + + + imgui + + + imgui + + + sources + + + imgui + + + imgui + + + sources + + + sources + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + + imgui + + + imgui + + + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/main.cpp new file mode 100644 index 0000000..bc7603e --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_sdlrenderer2/main.cpp @@ -0,0 +1,167 @@ +// Dear ImGui: standalone example application for SDL2 + SDL_Renderer +// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// Important to understand: SDL_Renderer is an _optional_ component of SDL2. +// For a multi-platform app consider using e.g. SDL+DirectX on Windows and SDL+OpenGL on Linux/OSX. + +#include "imgui.h" +#include "imgui_impl_sdl2.h" +#include "imgui_impl_sdlrenderer2.h" +#include +#include + +#if !SDL_VERSION_ATLEAST(2,0,17) +#error This backend requires SDL 2.0.17+ because of SDL_RenderGeometry() function +#endif + +// Main code +int main(int, char**) +{ + // Setup SDL + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) + { + printf("Error: %s\n", SDL_GetError()); + return -1; + } + + // From 2.0.18: Enable native IME. +#ifdef SDL_HINT_IME_SHOW_UI + SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); +#endif + + // Create window with SDL_Renderer graphics context + SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); + SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+SDL_Renderer example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); + SDL_Renderer* renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED); + if (renderer == nullptr) + { + SDL_Log("Error creating SDL_Renderer!"); + return 0; + } + //SDL_RendererInfo info; + //SDL_GetRendererInfo(renderer, &info); + //SDL_Log("Current SDL_Renderer: %s", info.name); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // Setup Platform/Renderer backends + ImGui_ImplSDL2_InitForSDLRenderer(window, renderer); + ImGui_ImplSDLRenderer2_Init(renderer); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; + while (!done) + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + SDL_Event event; + while (SDL_PollEvent(&event)) + { + ImGui_ImplSDL2_ProcessEvent(&event); + if (event.type == SDL_QUIT) + done = true; + if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) + done = true; + } + + // Start the Dear ImGui frame + ImGui_ImplSDLRenderer2_NewFrame(); + ImGui_ImplSDL2_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + SDL_RenderSetScale(renderer, io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + SDL_SetRenderDrawColor(renderer, (Uint8)(clear_color.x * 255), (Uint8)(clear_color.y * 255), (Uint8)(clear_color.z * 255), (Uint8)(clear_color.w * 255)); + SDL_RenderClear(renderer); + ImGui_ImplSDLRenderer2_RenderDrawData(ImGui::GetDrawData()); + SDL_RenderPresent(renderer); + } + + // Cleanup + ImGui_ImplSDLRenderer2_Shutdown(); + ImGui_ImplSDL2_Shutdown(); + ImGui::DestroyContext(); + + SDL_DestroyRenderer(renderer); + SDL_DestroyWindow(window); + SDL_Quit(); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/build_win32.bat new file mode 100644 index 0000000..8a4aefc --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/build_win32.bat @@ -0,0 +1,10 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. + +@set OUT_EXE=example_sdl2_vulkan +@set INCLUDES=/I..\.. /I..\..\backends /I%SDL2_DIR%\include /I %VULKAN_SDK%\include +@set SOURCES=main.cpp ..\..\backends\imgui_impl_sdl2.cpp ..\..\backends\imgui_impl_vulkan.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:%SDL2_DIR%\lib\x86 /libpath:%VULKAN_SDK%\lib32 SDL2.lib SDL2main.lib shell32.lib vulkan-1.lib + +@set OUT_DIR=Debug +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% /D ImTextureID=ImU64 %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% /subsystem:console diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/example_sdl2_vulkan.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/example_sdl2_vulkan.vcxproj new file mode 100644 index 0000000..ba6afaf --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/example_sdl2_vulkan.vcxproj @@ -0,0 +1,190 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {BAE3D0B5-9695-4EB1-AD0F-75890EB4A3B3} + example_sdl2_vulkan + 8.1 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + ..\..;..\..\backends;%VULKAN_SDK%\include;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + ImTextureID=ImU64;_MBCS;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + %VULKAN_SDK%\lib32;%SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) + vulkan-1.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + ..\..;..\..\backends;%VULKAN_SDK%\include;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + ImTextureID=ImU64;_MBCS;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + %VULKAN_SDK%\lib;%SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) + vulkan-1.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%VULKAN_SDK%\include;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + false + ImTextureID=ImU64;_MBCS;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + true + true + %VULKAN_SDK%\lib32;%SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) + vulkan-1.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%VULKAN_SDK%\include;%SDL2_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL2;%(AdditionalIncludeDirectories) + false + ImTextureID=ImU64;_MBCS;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + true + true + %VULKAN_SDK%\lib;%SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) + vulkan-1.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/example_sdl2_vulkan.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/example_sdl2_vulkan.vcxproj.filters new file mode 100644 index 0000000..ab42485 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/example_sdl2_vulkan.vcxproj.filters @@ -0,0 +1,64 @@ + + + + + {20b90ce4-7fcb-4731-b9a0-075f875de82d} + + + {f18ab499-84e1-499f-8eff-9754361e0e52} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + sources + + + imgui + + + imgui + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/main.cpp new file mode 100644 index 0000000..7d353d4 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl2_vulkan/main.cpp @@ -0,0 +1,615 @@ +// Dear ImGui: standalone example application for SDL2 + Vulkan + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// Important note to the reader who wish to integrate imgui_impl_vulkan.cpp/.h in their own engine/app. +// - Common ImGui_ImplVulkan_XXX functions and structures are used to interface with imgui_impl_vulkan.cpp/.h. +// You will use those if you want to use this rendering backend in your engine/app. +// - Helper ImGui_ImplVulkanH_XXX functions and structures are only used by this example (main.cpp) and by +// the backend itself (imgui_impl_vulkan.cpp), but should PROBABLY NOT be used by your own engine/app code. +// Read comments in imgui_impl_vulkan.h. + +#include "imgui.h" +#include "imgui_impl_sdl2.h" +#include "imgui_impl_vulkan.h" +#include // printf, fprintf +#include // abort +#include +#include +#include +//#include + +//#define IMGUI_UNLIMITED_FRAME_RATE +#ifdef _DEBUG +#define IMGUI_VULKAN_DEBUG_REPORT +#endif + +// Data +static VkAllocationCallbacks* g_Allocator = nullptr; +static VkInstance g_Instance = VK_NULL_HANDLE; +static VkPhysicalDevice g_PhysicalDevice = VK_NULL_HANDLE; +static VkDevice g_Device = VK_NULL_HANDLE; +static uint32_t g_QueueFamily = (uint32_t)-1; +static VkQueue g_Queue = VK_NULL_HANDLE; +static VkDebugReportCallbackEXT g_DebugReport = VK_NULL_HANDLE; +static VkPipelineCache g_PipelineCache = VK_NULL_HANDLE; +static VkDescriptorPool g_DescriptorPool = VK_NULL_HANDLE; + +static ImGui_ImplVulkanH_Window g_MainWindowData; +static uint32_t g_MinImageCount = 2; +static bool g_SwapChainRebuild = false; + +static void check_vk_result(VkResult err) +{ + if (err == 0) + return; + fprintf(stderr, "[vulkan] Error: VkResult = %d\n", err); + if (err < 0) + abort(); +} + +#ifdef IMGUI_VULKAN_DEBUG_REPORT +static VKAPI_ATTR VkBool32 VKAPI_CALL debug_report(VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage, void* pUserData) +{ + (void)flags; (void)object; (void)location; (void)messageCode; (void)pUserData; (void)pLayerPrefix; // Unused arguments + fprintf(stderr, "[vulkan] Debug report from ObjectType: %i\nMessage: %s\n\n", objectType, pMessage); + return VK_FALSE; +} +#endif // IMGUI_VULKAN_DEBUG_REPORT + +static bool IsExtensionAvailable(const ImVector& properties, const char* extension) +{ + for (const VkExtensionProperties& p : properties) + if (strcmp(p.extensionName, extension) == 0) + return true; + return false; +} + +static VkPhysicalDevice SetupVulkan_SelectPhysicalDevice() +{ + uint32_t gpu_count; + VkResult err = vkEnumeratePhysicalDevices(g_Instance, &gpu_count, nullptr); + check_vk_result(err); + IM_ASSERT(gpu_count > 0); + + ImVector gpus; + gpus.resize(gpu_count); + err = vkEnumeratePhysicalDevices(g_Instance, &gpu_count, gpus.Data); + check_vk_result(err); + + // If a number >1 of GPUs got reported, find discrete GPU if present, or use first one available. This covers + // most common cases (multi-gpu/integrated+dedicated graphics). Handling more complicated setups (multiple + // dedicated GPUs) is out of scope of this sample. + for (VkPhysicalDevice& device : gpus) + { + VkPhysicalDeviceProperties properties; + vkGetPhysicalDeviceProperties(device, &properties); + if (properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU) + return device; + } + + // Use first GPU (Integrated) is a Discrete one is not available. + if (gpu_count > 0) + return gpus[0]; + return VK_NULL_HANDLE; +} + +static void SetupVulkan(ImVector instance_extensions) +{ + VkResult err; + + // Create Vulkan Instance + { + VkInstanceCreateInfo create_info = {}; + create_info.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO; + + // Enumerate available extensions + uint32_t properties_count; + ImVector properties; + vkEnumerateInstanceExtensionProperties(nullptr, &properties_count, nullptr); + properties.resize(properties_count); + err = vkEnumerateInstanceExtensionProperties(nullptr, &properties_count, properties.Data); + check_vk_result(err); + + // Enable required extensions + if (IsExtensionAvailable(properties, VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME)) + instance_extensions.push_back(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME); +#ifdef VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME + if (IsExtensionAvailable(properties, VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME)) + { + instance_extensions.push_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME); + create_info.flags |= VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR; + } +#endif + + // Enabling validation layers +#ifdef IMGUI_VULKAN_DEBUG_REPORT + const char* layers[] = { "VK_LAYER_KHRONOS_validation" }; + create_info.enabledLayerCount = 1; + create_info.ppEnabledLayerNames = layers; + instance_extensions.push_back("VK_EXT_debug_report"); +#endif + + // Create Vulkan Instance + create_info.enabledExtensionCount = (uint32_t)instance_extensions.Size; + create_info.ppEnabledExtensionNames = instance_extensions.Data; + err = vkCreateInstance(&create_info, g_Allocator, &g_Instance); + check_vk_result(err); + + // Setup the debug report callback +#ifdef IMGUI_VULKAN_DEBUG_REPORT + auto vkCreateDebugReportCallbackEXT = (PFN_vkCreateDebugReportCallbackEXT)vkGetInstanceProcAddr(g_Instance, "vkCreateDebugReportCallbackEXT"); + IM_ASSERT(vkCreateDebugReportCallbackEXT != nullptr); + VkDebugReportCallbackCreateInfoEXT debug_report_ci = {}; + debug_report_ci.sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT; + debug_report_ci.flags = VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT | VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT; + debug_report_ci.pfnCallback = debug_report; + debug_report_ci.pUserData = nullptr; + err = vkCreateDebugReportCallbackEXT(g_Instance, &debug_report_ci, g_Allocator, &g_DebugReport); + check_vk_result(err); +#endif + } + + // Select Physical Device (GPU) + g_PhysicalDevice = SetupVulkan_SelectPhysicalDevice(); + + // Select graphics queue family + { + uint32_t count; + vkGetPhysicalDeviceQueueFamilyProperties(g_PhysicalDevice, &count, nullptr); + VkQueueFamilyProperties* queues = (VkQueueFamilyProperties*)malloc(sizeof(VkQueueFamilyProperties) * count); + vkGetPhysicalDeviceQueueFamilyProperties(g_PhysicalDevice, &count, queues); + for (uint32_t i = 0; i < count; i++) + if (queues[i].queueFlags & VK_QUEUE_GRAPHICS_BIT) + { + g_QueueFamily = i; + break; + } + free(queues); + IM_ASSERT(g_QueueFamily != (uint32_t)-1); + } + + // Create Logical Device (with 1 queue) + { + ImVector device_extensions; + device_extensions.push_back("VK_KHR_swapchain"); + + // Enumerate physical device extension + uint32_t properties_count; + ImVector properties; + vkEnumerateDeviceExtensionProperties(g_PhysicalDevice, nullptr, &properties_count, nullptr); + properties.resize(properties_count); + vkEnumerateDeviceExtensionProperties(g_PhysicalDevice, nullptr, &properties_count, properties.Data); +#ifdef VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME + if (IsExtensionAvailable(properties, VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME)) + device_extensions.push_back(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME); +#endif + + const float queue_priority[] = { 1.0f }; + VkDeviceQueueCreateInfo queue_info[1] = {}; + queue_info[0].sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO; + queue_info[0].queueFamilyIndex = g_QueueFamily; + queue_info[0].queueCount = 1; + queue_info[0].pQueuePriorities = queue_priority; + VkDeviceCreateInfo create_info = {}; + create_info.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; + create_info.queueCreateInfoCount = sizeof(queue_info) / sizeof(queue_info[0]); + create_info.pQueueCreateInfos = queue_info; + create_info.enabledExtensionCount = (uint32_t)device_extensions.Size; + create_info.ppEnabledExtensionNames = device_extensions.Data; + err = vkCreateDevice(g_PhysicalDevice, &create_info, g_Allocator, &g_Device); + check_vk_result(err); + vkGetDeviceQueue(g_Device, g_QueueFamily, 0, &g_Queue); + } + + // Create Descriptor Pool + // The example only requires a single combined image sampler descriptor for the font image and only uses one descriptor set (for that) + // If you wish to load e.g. additional textures you may need to alter pools sizes. + { + VkDescriptorPoolSize pool_sizes[] = + { + { VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1 }, + }; + VkDescriptorPoolCreateInfo pool_info = {}; + pool_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO; + pool_info.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT; + pool_info.maxSets = 1; + pool_info.poolSizeCount = (uint32_t)IM_ARRAYSIZE(pool_sizes); + pool_info.pPoolSizes = pool_sizes; + err = vkCreateDescriptorPool(g_Device, &pool_info, g_Allocator, &g_DescriptorPool); + check_vk_result(err); + } +} + +// All the ImGui_ImplVulkanH_XXX structures/functions are optional helpers used by the demo. +// Your real engine/app may not use them. +static void SetupVulkanWindow(ImGui_ImplVulkanH_Window* wd, VkSurfaceKHR surface, int width, int height) +{ + wd->Surface = surface; + + // Check for WSI support + VkBool32 res; + vkGetPhysicalDeviceSurfaceSupportKHR(g_PhysicalDevice, g_QueueFamily, wd->Surface, &res); + if (res != VK_TRUE) + { + fprintf(stderr, "Error no WSI support on physical device 0\n"); + exit(-1); + } + + // Select Surface Format + const VkFormat requestSurfaceImageFormat[] = { VK_FORMAT_B8G8R8A8_UNORM, VK_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_B8G8R8_UNORM, VK_FORMAT_R8G8B8_UNORM }; + const VkColorSpaceKHR requestSurfaceColorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR; + wd->SurfaceFormat = ImGui_ImplVulkanH_SelectSurfaceFormat(g_PhysicalDevice, wd->Surface, requestSurfaceImageFormat, (size_t)IM_ARRAYSIZE(requestSurfaceImageFormat), requestSurfaceColorSpace); + + // Select Present Mode +#ifdef IMGUI_UNLIMITED_FRAME_RATE + VkPresentModeKHR present_modes[] = { VK_PRESENT_MODE_MAILBOX_KHR, VK_PRESENT_MODE_IMMEDIATE_KHR, VK_PRESENT_MODE_FIFO_KHR }; +#else + VkPresentModeKHR present_modes[] = { VK_PRESENT_MODE_FIFO_KHR }; +#endif + wd->PresentMode = ImGui_ImplVulkanH_SelectPresentMode(g_PhysicalDevice, wd->Surface, &present_modes[0], IM_ARRAYSIZE(present_modes)); + //printf("[vulkan] Selected PresentMode = %d\n", wd->PresentMode); + + // Create SwapChain, RenderPass, Framebuffer, etc. + IM_ASSERT(g_MinImageCount >= 2); + ImGui_ImplVulkanH_CreateOrResizeWindow(g_Instance, g_PhysicalDevice, g_Device, wd, g_QueueFamily, g_Allocator, width, height, g_MinImageCount); +} + +static void CleanupVulkan() +{ + vkDestroyDescriptorPool(g_Device, g_DescriptorPool, g_Allocator); + +#ifdef IMGUI_VULKAN_DEBUG_REPORT + // Remove the debug report callback + auto vkDestroyDebugReportCallbackEXT = (PFN_vkDestroyDebugReportCallbackEXT)vkGetInstanceProcAddr(g_Instance, "vkDestroyDebugReportCallbackEXT"); + vkDestroyDebugReportCallbackEXT(g_Instance, g_DebugReport, g_Allocator); +#endif // IMGUI_VULKAN_DEBUG_REPORT + + vkDestroyDevice(g_Device, g_Allocator); + vkDestroyInstance(g_Instance, g_Allocator); +} + +static void CleanupVulkanWindow() +{ + ImGui_ImplVulkanH_DestroyWindow(g_Instance, g_Device, &g_MainWindowData, g_Allocator); +} + +static void FrameRender(ImGui_ImplVulkanH_Window* wd, ImDrawData* draw_data) +{ + VkResult err; + + VkSemaphore image_acquired_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].ImageAcquiredSemaphore; + VkSemaphore render_complete_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].RenderCompleteSemaphore; + err = vkAcquireNextImageKHR(g_Device, wd->Swapchain, UINT64_MAX, image_acquired_semaphore, VK_NULL_HANDLE, &wd->FrameIndex); + if (err == VK_ERROR_OUT_OF_DATE_KHR || err == VK_SUBOPTIMAL_KHR) + { + g_SwapChainRebuild = true; + return; + } + check_vk_result(err); + + ImGui_ImplVulkanH_Frame* fd = &wd->Frames[wd->FrameIndex]; + { + err = vkWaitForFences(g_Device, 1, &fd->Fence, VK_TRUE, UINT64_MAX); // wait indefinitely instead of periodically checking + check_vk_result(err); + + err = vkResetFences(g_Device, 1, &fd->Fence); + check_vk_result(err); + } + { + err = vkResetCommandPool(g_Device, fd->CommandPool, 0); + check_vk_result(err); + VkCommandBufferBeginInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; + info.flags |= VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; + err = vkBeginCommandBuffer(fd->CommandBuffer, &info); + check_vk_result(err); + } + { + VkRenderPassBeginInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; + info.renderPass = wd->RenderPass; + info.framebuffer = fd->Framebuffer; + info.renderArea.extent.width = wd->Width; + info.renderArea.extent.height = wd->Height; + info.clearValueCount = 1; + info.pClearValues = &wd->ClearValue; + vkCmdBeginRenderPass(fd->CommandBuffer, &info, VK_SUBPASS_CONTENTS_INLINE); + } + + // Record dear imgui primitives into command buffer + ImGui_ImplVulkan_RenderDrawData(draw_data, fd->CommandBuffer); + + // Submit command buffer + vkCmdEndRenderPass(fd->CommandBuffer); + { + VkPipelineStageFlags wait_stage = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT; + VkSubmitInfo info = {}; + info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; + info.waitSemaphoreCount = 1; + info.pWaitSemaphores = &image_acquired_semaphore; + info.pWaitDstStageMask = &wait_stage; + info.commandBufferCount = 1; + info.pCommandBuffers = &fd->CommandBuffer; + info.signalSemaphoreCount = 1; + info.pSignalSemaphores = &render_complete_semaphore; + + err = vkEndCommandBuffer(fd->CommandBuffer); + check_vk_result(err); + err = vkQueueSubmit(g_Queue, 1, &info, fd->Fence); + check_vk_result(err); + } +} + +static void FramePresent(ImGui_ImplVulkanH_Window* wd) +{ + if (g_SwapChainRebuild) + return; + VkSemaphore render_complete_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].RenderCompleteSemaphore; + VkPresentInfoKHR info = {}; + info.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR; + info.waitSemaphoreCount = 1; + info.pWaitSemaphores = &render_complete_semaphore; + info.swapchainCount = 1; + info.pSwapchains = &wd->Swapchain; + info.pImageIndices = &wd->FrameIndex; + VkResult err = vkQueuePresentKHR(g_Queue, &info); + if (err == VK_ERROR_OUT_OF_DATE_KHR || err == VK_SUBOPTIMAL_KHR) + { + g_SwapChainRebuild = true; + return; + } + check_vk_result(err); + wd->SemaphoreIndex = (wd->SemaphoreIndex + 1) % wd->ImageCount; // Now we can use the next set of semaphores +} + +// Main code +int main(int, char**) +{ + // Setup SDL + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) + { + printf("Error: %s\n", SDL_GetError()); + return -1; + } + + // From 2.0.18: Enable native IME. +#ifdef SDL_HINT_IME_SHOW_UI + SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); +#endif + + // Create window with Vulkan graphics context + SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); + SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+Vulkan example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); + + ImVector extensions; + uint32_t extensions_count = 0; + SDL_Vulkan_GetInstanceExtensions(window, &extensions_count, nullptr); + extensions.resize(extensions_count); + SDL_Vulkan_GetInstanceExtensions(window, &extensions_count, extensions.Data); + SetupVulkan(extensions); + + // Create Window Surface + VkSurfaceKHR surface; + VkResult err; + if (SDL_Vulkan_CreateSurface(window, g_Instance, &surface) == 0) + { + printf("Failed to create Vulkan surface.\n"); + return 1; + } + + // Create Framebuffers + int w, h; + SDL_GetWindowSize(window, &w, &h); + ImGui_ImplVulkanH_Window* wd = &g_MainWindowData; + SetupVulkanWindow(wd, surface, w, h); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigFlags |= ImGuiConfigFlags_ViewportsNoTaskBarIcons; + //io.ConfigFlags |= ImGuiConfigFlags_ViewportsNoMerge; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplSDL2_InitForVulkan(window); + ImGui_ImplVulkan_InitInfo init_info = {}; + init_info.Instance = g_Instance; + init_info.PhysicalDevice = g_PhysicalDevice; + init_info.Device = g_Device; + init_info.QueueFamily = g_QueueFamily; + init_info.Queue = g_Queue; + init_info.PipelineCache = g_PipelineCache; + init_info.DescriptorPool = g_DescriptorPool; + init_info.Subpass = 0; + init_info.MinImageCount = g_MinImageCount; + init_info.ImageCount = wd->ImageCount; + init_info.MSAASamples = VK_SAMPLE_COUNT_1_BIT; + init_info.Allocator = g_Allocator; + init_info.CheckVkResultFn = check_vk_result; + ImGui_ImplVulkan_Init(&init_info, wd->RenderPass); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Upload Fonts + { + // Use any command queue + VkCommandPool command_pool = wd->Frames[wd->FrameIndex].CommandPool; + VkCommandBuffer command_buffer = wd->Frames[wd->FrameIndex].CommandBuffer; + + err = vkResetCommandPool(g_Device, command_pool, 0); + check_vk_result(err); + VkCommandBufferBeginInfo begin_info = {}; + begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; + begin_info.flags |= VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; + err = vkBeginCommandBuffer(command_buffer, &begin_info); + check_vk_result(err); + + ImGui_ImplVulkan_CreateFontsTexture(command_buffer); + + VkSubmitInfo end_info = {}; + end_info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; + end_info.commandBufferCount = 1; + end_info.pCommandBuffers = &command_buffer; + err = vkEndCommandBuffer(command_buffer); + check_vk_result(err); + err = vkQueueSubmit(g_Queue, 1, &end_info, VK_NULL_HANDLE); + check_vk_result(err); + + err = vkDeviceWaitIdle(g_Device); + check_vk_result(err); + ImGui_ImplVulkan_DestroyFontUploadObjects(); + } + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; + while (!done) + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + SDL_Event event; + while (SDL_PollEvent(&event)) + { + ImGui_ImplSDL2_ProcessEvent(&event); + if (event.type == SDL_QUIT) + done = true; + if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) + done = true; + } + + // Resize swap chain? + if (g_SwapChainRebuild) + { + int width, height; + SDL_GetWindowSize(window, &width, &height); + if (width > 0 && height > 0) + { + ImGui_ImplVulkan_SetMinImageCount(g_MinImageCount); + ImGui_ImplVulkanH_CreateOrResizeWindow(g_Instance, g_PhysicalDevice, g_Device, &g_MainWindowData, g_QueueFamily, g_Allocator, width, height, g_MinImageCount); + g_MainWindowData.FrameIndex = 0; + g_SwapChainRebuild = false; + } + } + + // Start the Dear ImGui frame + ImGui_ImplVulkan_NewFrame(); + ImGui_ImplSDL2_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + ImDrawData* main_draw_data = ImGui::GetDrawData(); + const bool main_is_minimized = (main_draw_data->DisplaySize.x <= 0.0f || main_draw_data->DisplaySize.y <= 0.0f); + wd->ClearValue.color.float32[0] = clear_color.x * clear_color.w; + wd->ClearValue.color.float32[1] = clear_color.y * clear_color.w; + wd->ClearValue.color.float32[2] = clear_color.z * clear_color.w; + wd->ClearValue.color.float32[3] = clear_color.w; + if (!main_is_minimized) + FrameRender(wd, main_draw_data); + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + } + + // Present Main Platform Window + if (!main_is_minimized) + FramePresent(wd); + } + + // Cleanup + err = vkDeviceWaitIdle(g_Device); + check_vk_result(err); + ImGui_ImplVulkan_Shutdown(); + ImGui_ImplSDL2_Shutdown(); + ImGui::DestroyContext(); + + CleanupVulkanWindow(); + CleanupVulkan(); + + SDL_DestroyWindow(window); + SDL_Quit(); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/Makefile new file mode 100644 index 0000000..3a00a31 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/Makefile @@ -0,0 +1,84 @@ +# +# Cross Platform Makefile +# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X +# +# You will need SDL3 (http://www.libsdl.org) which is still unreleased/unpackaged. + +#CXX = g++ +#CXX = clang++ + +EXE = example_sdl3_opengl3 +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl3.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) +LINUX_GL_LIBS = -lGL + +CXXFLAGS = -std=c++11 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +CXXFLAGS += -g -Wall -Wformat +LIBS = + +##--------------------------------------------------------------------- +## OPENGL ES +##--------------------------------------------------------------------- + +## This assumes a GL ES library available in the system, e.g. libGLESv2.so +# CXXFLAGS += -DIMGUI_IMPL_OPENGL_ES2 +# LINUX_GL_LIBS = -lGLESv2 +## If you're on a Raspberry Pi and want to use the legacy drivers, +## use the following instead: +# LINUX_GL_LIBS = -L/opt/vc/lib -lbrcmGLESv2 + +##--------------------------------------------------------------------- +## BUILD FLAGS PER PLATFORM +##--------------------------------------------------------------------- + +ifeq ($(UNAME_S), Linux) #LINUX + ECHO_MESSAGE = "Linux" + LIBS += $(LINUX_GL_LIBS) -ldl `sdl3-config --libs` + + CXXFLAGS += `sdl3-config --cflags` + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(UNAME_S), Darwin) #APPLE + ECHO_MESSAGE = "Mac OS X" + LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo `sdl3-config --libs` + LIBS += -L/usr/local/lib -L/opt/local/lib + + CXXFLAGS += `sdl3-config --cflags` + CXXFLAGS += -I/usr/local/include -I/opt/local/include + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(OS), Windows_NT) + ECHO_MESSAGE = "MinGW" + LIBS += -lgdi32 -lopengl32 -limm32 `pkg-config --static --libs sdl3` + + CXXFLAGS += `pkg-config --cflags sdl3` + CFLAGS = $(CXXFLAGS) +endif + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(ECHO_MESSAGE) + +$(EXE): $(OBJS) + $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) + +clean: + rm -f $(EXE) $(OBJS) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/Makefile.emscripten b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/Makefile.emscripten new file mode 100644 index 0000000..9e9ffd6 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/Makefile.emscripten @@ -0,0 +1,96 @@ + +# IMPORTANT: SDL3 IS IN DEVELOPMENT, AS OF 2023-05-30, EMSCRIPTEN DOESN'T SUPPORT SDL3 YET. +# WE ARE LEAVING THIS MAKEFILE AROUND FOR THE DAY IT WILL SUPPORT IT. + +# +# Makefile to use with SDL+emscripten +# See https://emscripten.org/docs/getting_started/downloads.html +# for installation instructions. +# +# This Makefile assumes you have loaded emscripten's environment. +# (On Windows, you may need to execute emsdk_env.bat or encmdprompt.bat ahead) +# +# Running `make -f Makefile.emscripten` will produce three files: +# - web/index.html +# - web/index.js +# - web/index.wasm +# +# All three are needed to run the demo. + +CC = emcc +CXX = em++ +WEB_DIR = web +EXE = $(WEB_DIR)/index.html +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl3.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) +CPPFLAGS = +LDFLAGS = +EMS = + +##--------------------------------------------------------------------- +## EMSCRIPTEN OPTIONS +##--------------------------------------------------------------------- + +# ("EMS" options gets added to both CPPFLAGS and LDFLAGS, whereas some options are for linker only) +EMS += -s USE_SDL=2 +EMS += -s DISABLE_EXCEPTION_CATCHING=1 +LDFLAGS += -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s NO_EXIT_RUNTIME=0 -s ASSERTIONS=1 + +# Uncomment next line to fix possible rendering bugs with Emscripten version older then 1.39.0 (https://github.com/ocornut/imgui/issues/2877) +#EMS += -s BINARYEN_TRAP_MODE=clamp +#EMS += -s SAFE_HEAP=1 ## Adds overhead + +# Emscripten allows preloading a file or folder to be accessible at runtime. +# The Makefile for this example project suggests embedding the misc/fonts/ folder into our application, it will then be accessible as "/fonts" +# See documentation for more details: https://emscripten.org/docs/porting/files/packaging_files.html +# (Default value is 0. Set to 1 to enable file-system and include the misc/fonts/ folder as part of the build.) +USE_FILE_SYSTEM ?= 0 +ifeq ($(USE_FILE_SYSTEM), 0) +LDFLAGS += -s NO_FILESYSTEM=1 +CPPFLAGS += -DIMGUI_DISABLE_FILE_FUNCTIONS +endif +ifeq ($(USE_FILE_SYSTEM), 1) +LDFLAGS += --no-heap-copy --preload-file ../../misc/fonts@/fonts +endif + +##--------------------------------------------------------------------- +## FINAL BUILD FLAGS +##--------------------------------------------------------------------- + +CPPFLAGS += -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +#CPPFLAGS += -g +CPPFLAGS += -Wall -Wformat -Os $(EMS) +LDFLAGS += --shell-file ../libs/emscripten/shell_minimal.html +LDFLAGS += $(EMS) + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(EXE) + +$(WEB_DIR): + mkdir $@ + +serve: all + python3 -m http.server -d $(WEB_DIR) + +$(EXE): $(OBJS) $(WEB_DIR) + $(CXX) -o $@ $(OBJS) $(LDFLAGS) + +clean: + rm -rf $(OBJS) $(WEB_DIR) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/README.md b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/README.md new file mode 100644 index 0000000..5828e4b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/README.md @@ -0,0 +1,40 @@ + +# How to Build + +## Windows with Visual Studio's IDE + +Use the provided project file (.vcxproj). Add to solution (imgui_examples.sln) if necessary. + +## Windows with Visual Studio's CLI + +Use build_win32.bat or directly: +``` +set SDL2_DIR=path_to_your_sdl3_folder +cl /Zi /MD /utf-8 /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl3.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\imgui*.cpp /FeDebug/example_sdl3_opengl3.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x86 SDL3.lib opengl32.lib /subsystem:console +# ^^ include paths ^^ source files ^^ output exe ^^ output dir ^^ libraries +# or for 64-bit: +cl /Zi /MD /utf-8 /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl3.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\imgui*.cpp /FeDebug/example_sdl3_opengl3.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x64 SDL3.lib SDL2mainopengl32.lib /subsystem:console +``` + +## Linux and similar Unixes + +Use our Makefile or directly: +``` +c++ `sdl3-config --cflags` -I .. -I ../.. -I ../../backends + main.cpp ../../backends/imgui_impl_sdl3.cpp ../../backends/imgui_impl_opengl3.cpp ../../imgui*.cpp + `sdl3-config --libs` -lGL -ldl +``` + +## macOS + +Use our Makefile or directly: +``` +brew install sdl3 +c++ `sdl3-config --cflags` -I .. -I ../.. -I ../../backends + main.cpp ../../backends/imgui_impl_sdl3.cpp ../../backends/imgui_impl_opengl3.cpp ../../imgui*.cpp + `sdl3-config --libs` -framework OpenGl -framework CoreFoundation +``` + +## Emscripten + +As of 2023-05-30 Emscripten doesn't support SDL3 yet. diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/build_win32.bat new file mode 100644 index 0000000..5b8d5f8 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/build_win32.bat @@ -0,0 +1,8 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_sdl3_opengl3 +@set INCLUDES=/I..\.. /I..\..\backends /I%SDL3_DIR%\include +@set SOURCES=main.cpp ..\..\backends\imgui_impl_sdl3.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:%SDL3_DIR%\lib\x86 SDL3.lib opengl32.lib shell32.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% /subsystem:console diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/example_sdl3_opengl3.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/example_sdl3_opengl3.vcxproj new file mode 100644 index 0000000..051f87d --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/example_sdl3_opengl3.vcxproj @@ -0,0 +1,187 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {84AAA301-84FE-428B-9E3E-817BC8123C0C} + example_sdl3_opengl3 + 8.1 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL3_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL3;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL3_DIR%\lib\x86;%(AdditionalLibraryDirectories) + opengl32.lib;SDL3.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL3_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL3;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL3_DIR%\lib\x64;%(AdditionalLibraryDirectories) + opengl32.lib;SDL3.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL3_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL3;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL3_DIR%\lib\x86;%(AdditionalLibraryDirectories) + opengl32.lib;SDL3.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL3_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL3;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL3_DIR%\lib\x64;%(AdditionalLibraryDirectories) + opengl32.lib;SDL3.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/example_sdl3_opengl3.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/example_sdl3_opengl3.vcxproj.filters new file mode 100644 index 0000000..f365473 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/example_sdl3_opengl3.vcxproj.filters @@ -0,0 +1,67 @@ + + + + + {20b90ce4-7fcb-4731-b9a0-075f875de82d} + + + {f18ab499-84e1-499f-8eff-9754361e0e52} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + sources + + + imgui + + + imgui + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/main.cpp new file mode 100644 index 0000000..8d1ff95 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_opengl3/main.cpp @@ -0,0 +1,232 @@ +// Dear ImGui: standalone example application for SDL3 + OpenGL +// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#include "imgui_impl_sdl3.h" +#include "imgui_impl_opengl3.h" +#include +#include +#if defined(IMGUI_IMPL_OPENGL_ES2) +#include +#else +#include +#endif + +// This example doesn't compile with Emscripten yet! Awaiting SDL3 support. +#ifdef __EMSCRIPTEN__ +#include "../libs/emscripten/emscripten_mainloop_stub.h" +#endif + +// Main code +int main(int, char**) +{ + // Setup SDL + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMEPAD) != 0) + { + printf("Error: SDL_Init(): %s\n", SDL_GetError()); + return -1; + } + + // Decide GL+GLSL versions +#if defined(IMGUI_IMPL_OPENGL_ES2) + // GL ES 2.0 + GLSL 100 + const char* glsl_version = "#version 100"; + SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, 0); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); +#elif defined(__APPLE__) + // GL 3.2 Core + GLSL 150 + const char* glsl_version = "#version 150"; + SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG); // Always required on Mac + SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2); +#else + // GL 3.0 + GLSL 130 + const char* glsl_version = "#version 130"; + SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, 0); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); +#endif + + // Enable native IME. + SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); + + // Create window with graphics context + SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); + SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); + SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); + SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIDDEN); + SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL3+OpenGL3 example", 1280, 720, window_flags); + if (window == nullptr) + { + printf("Error: SDL_CreateWindow(): %s\n", SDL_GetError()); + return -1; + } + SDL_SetWindowPosition(window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED); + SDL_GLContext gl_context = SDL_GL_CreateContext(window); + SDL_GL_MakeCurrent(window, gl_context); + SDL_GL_SetSwapInterval(1); // Enable vsync + SDL_ShowWindow(window); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigViewportsNoAutoMerge = true; + //io.ConfigViewportsNoTaskBarIcon = true; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplSDL3_InitForOpenGL(window, gl_context); + ImGui_ImplOpenGL3_Init(glsl_version); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + // - Our Emscripten build process allows embedding fonts to be accessible at runtime from the "fonts/" folder. See Makefile.emscripten for details. + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; +#ifdef __EMSCRIPTEN__ + // For an Emscripten build we are disabling file-system access, so let's not attempt to do a fopen() of the imgui.ini file. + // You may manually call LoadIniSettingsFromMemory() to load settings from your own storage. + io.IniFilename = nullptr; + EMSCRIPTEN_MAINLOOP_BEGIN +#else + while (!done) +#endif + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + SDL_Event event; + while (SDL_PollEvent(&event)) + { + ImGui_ImplSDL3_ProcessEvent(&event); + if (event.type == SDL_EVENT_QUIT) + done = true; + if (event.type == SDL_EVENT_WINDOW_CLOSE_REQUESTED && event.window.windowID == SDL_GetWindowID(window)) + done = true; + } + + // Start the Dear ImGui frame + ImGui_ImplOpenGL3_NewFrame(); + ImGui_ImplSDL3_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + glViewport(0, 0, (int)io.DisplaySize.x, (int)io.DisplaySize.y); + glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); + + // Update and Render additional Platform Windows + // (Platform functions may change the current OpenGL context, so we save/restore it to make it easier to paste this code elsewhere. + // For this specific demo app we could also call SDL_GL_MakeCurrent(window, gl_context) directly) + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + SDL_Window* backup_current_window = SDL_GL_GetCurrentWindow(); + SDL_GLContext backup_current_context = SDL_GL_GetCurrentContext(); + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + SDL_GL_MakeCurrent(backup_current_window, backup_current_context); + } + + SDL_GL_SwapWindow(window); + } +#ifdef __EMSCRIPTEN__ + EMSCRIPTEN_MAINLOOP_END; +#endif + + // Cleanup + ImGui_ImplOpenGL3_Shutdown(); + ImGui_ImplSDL3_Shutdown(); + ImGui::DestroyContext(); + + SDL_GL_DeleteContext(gl_context); + SDL_DestroyWindow(window); + SDL_Quit(); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/Makefile b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/Makefile new file mode 100644 index 0000000..d0a73bf --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/Makefile @@ -0,0 +1,73 @@ +# +# Cross Platform Makefile +# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X +# +# You will need SDL3 (http://www.libsdl.org) which is still unreleased/unpackaged. + +#CXX = g++ +#CXX = clang++ + +EXE = example_sdl3_sdlrenderer3 +IMGUI_DIR = ../.. +SOURCES = main.cpp +SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp +SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl3.cpp $(IMGUI_DIR)/backends/imgui_impl_sdlrenderer3.cpp +OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) +UNAME_S := $(shell uname -s) +LINUX_GL_LIBS = -lGL + +CXXFLAGS = -std=c++11 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends +CXXFLAGS += -g -Wall -Wformat +LIBS = + +##--------------------------------------------------------------------- +## BUILD FLAGS PER PLATFORM +##--------------------------------------------------------------------- + +ifeq ($(UNAME_S), Linux) #LINUX + ECHO_MESSAGE = "Linux" + LIBS += -ldl `sdl3-config --libs` + + CXXFLAGS += `sdl3-config --cflags` + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(UNAME_S), Darwin) #APPLE + ECHO_MESSAGE = "Mac OS X" + LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo `sdl3-config --libs` + LIBS += -L/usr/local/lib -L/opt/local/lib + + CXXFLAGS += `sdl3-config --cflags` + CXXFLAGS += -I/usr/local/include -I/opt/local/include + CFLAGS = $(CXXFLAGS) +endif + +ifeq ($(OS), Windows_NT) + ECHO_MESSAGE = "MinGW" + LIBS += -lgdi32 -lopengl32 -limm32 `pkg-config --static --libs sdl3` + + CXXFLAGS += `pkg-config --cflags sdl3` + CFLAGS = $(CXXFLAGS) +endif + +##--------------------------------------------------------------------- +## BUILD RULES +##--------------------------------------------------------------------- + +%.o:%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +%.o:$(IMGUI_DIR)/backends/%.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $< + +all: $(EXE) + @echo Build complete for $(ECHO_MESSAGE) + +$(EXE): $(OBJS) + $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) + +clean: + rm -f $(EXE) $(OBJS) diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/build_win32.bat new file mode 100644 index 0000000..7bc131a --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/build_win32.bat @@ -0,0 +1,8 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_sdl3_sdlrenderer3 +@set INCLUDES=/I..\.. /I..\..\backends /I%SDL3_DIR%\include +@set SOURCES=main.cpp ..\..\backends\imgui_impl_sdl3.cpp ..\..\backends\imgui_impl_sdlrenderer3.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:%SDL3_DIR%\lib\x86 SDL3.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% /subsystem:console diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/example_sdl3_sdlrenderer3.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/example_sdl3_sdlrenderer3.vcxproj new file mode 100644 index 0000000..8b71324 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/example_sdl3_sdlrenderer3.vcxproj @@ -0,0 +1,186 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {C0290D21-3AD2-4A35-ABBC-A2F5F48326DA} + example_sdl3_opengl3 + 8.1 + + + + Application + true + MultiByte + v140 + + + Application + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + Application + false + true + MultiByte + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + $(IncludePath) + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL3_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL3;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL3_DIR%\lib\x86;%(AdditionalLibraryDirectories) + opengl32.lib;SDL3.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + Disabled + ..\..;..\..\backends;%SDL3_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL3;%(AdditionalIncludeDirectories) + /utf-8 %(AdditionalOptions) + + + true + %SDL3_DIR%\lib\x64;%(AdditionalLibraryDirectories) + opengl32.lib;SDL3.lib;%(AdditionalDependencies) + Console + msvcrt.lib + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL3_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL3;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL3_DIR%\lib\x86;%(AdditionalLibraryDirectories) + opengl32.lib;SDL3.lib;%(AdditionalDependencies) + Console + + + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%SDL3_DIR%\include;$(VcpkgCurrentInstalledDir)include\SDL3;%(AdditionalIncludeDirectories) + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %SDL3_DIR%\lib\x64;%(AdditionalLibraryDirectories) + opengl32.lib;SDL3.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/example_sdl3_sdlrenderer3.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/example_sdl3_sdlrenderer3.vcxproj.filters new file mode 100644 index 0000000..c41210d --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/example_sdl3_sdlrenderer3.vcxproj.filters @@ -0,0 +1,64 @@ + + + + + {20b90ce4-7fcb-4731-b9a0-075f875de82d} + + + {f18ab499-84e1-499f-8eff-9754361e0e52} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + imgui + + + imgui + + + sources + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/main.cpp new file mode 100644 index 0000000..3b8e789 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_sdl3_sdlrenderer3/main.cpp @@ -0,0 +1,178 @@ +// Dear ImGui: standalone example application for SDL3 + SDL_Renderer +// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// Important to understand: SDL_Renderer is an _optional_ component of SDL3. +// For a multi-platform app consider using e.g. SDL+DirectX on Windows and SDL+OpenGL on Linux/OSX. + +#include "imgui.h" +#include "imgui_impl_sdl3.h" +#include "imgui_impl_sdlrenderer3.h" +#include +#include +#if defined(IMGUI_IMPL_OPENGL_ES2) +#include +#else +#include +#endif + +// Main code +int main(int, char**) +{ + // Setup SDL + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMEPAD) != 0) + { + printf("Error: SDL_Init(): %s\n", SDL_GetError()); + return -1; + } + + // Enable native IME. + SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); + + // Create window with SDL_Renderer graphics context + SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIDDEN); + SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL3+SDL_Renderer example", 1280, 720, window_flags); + if (window == nullptr) + { + printf("Error: SDL_CreateWindow(): %s\n", SDL_GetError()); + return -1; + } + SDL_Renderer* renderer = SDL_CreateRenderer(window, NULL, SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED); + if (renderer == nullptr) + { + SDL_Log("Error: SDL_CreateRenderer(): %s\n", SDL_GetError()); + return -1; +} + SDL_SetWindowPosition(window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED); + SDL_ShowWindow(window); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // Setup Platform/Renderer backends + ImGui_ImplSDL3_InitForSDLRenderer(window, renderer); + ImGui_ImplSDLRenderer3_Init(renderer); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + // - Our Emscripten build process allows embedding fonts to be accessible at runtime from the "fonts/" folder. See Makefile.emscripten for details. + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; +#ifdef __EMSCRIPTEN__ + // For an Emscripten build we are disabling file-system access, so let's not attempt to do a fopen() of the imgui.ini file. + // You may manually call LoadIniSettingsFromMemory() to load settings from your own storage. + io.IniFilename = nullptr; + EMSCRIPTEN_MAINLOOP_BEGIN +#else + while (!done) +#endif + { + // Poll and handle events (inputs, window resize, etc.) + // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. + // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. + // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. + // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. + SDL_Event event; + while (SDL_PollEvent(&event)) + { + ImGui_ImplSDL3_ProcessEvent(&event); + if (event.type == SDL_EVENT_QUIT) + done = true; + if (event.type == SDL_EVENT_WINDOW_CLOSE_REQUESTED && event.window.windowID == SDL_GetWindowID(window)) + done = true; + } + + // Start the Dear ImGui frame + ImGui_ImplSDLRenderer3_NewFrame(); + ImGui_ImplSDL3_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + //SDL_RenderSetScale(renderer, io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + SDL_SetRenderDrawColor(renderer, (Uint8)(clear_color.x * 255), (Uint8)(clear_color.y * 255), (Uint8)(clear_color.z * 255), (Uint8)(clear_color.w * 255)); + SDL_RenderClear(renderer); + ImGui_ImplSDLRenderer3_RenderDrawData(ImGui::GetDrawData()); + SDL_RenderPresent(renderer); + } + + // Cleanup + ImGui_ImplSDLRenderer3_Shutdown(); + ImGui_ImplSDL3_Shutdown(); + ImGui::DestroyContext(); + + SDL_DestroyRenderer(renderer); + SDL_DestroyWindow(window); + SDL_Quit(); + + return 0; +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/build_win32.bat new file mode 100644 index 0000000..78a6e37 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/build_win32.bat @@ -0,0 +1,8 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_win32_directx10 +@set INCLUDES=/I..\.. /I..\..\backends /I "%WindowsSdkDir%Include\um" /I "%WindowsSdkDir%Include\shared" /I "%DXSDK_DIR%Include" +@set SOURCES=main.cpp ..\..\backends\imgui_impl_win32.cpp ..\..\backends\imgui_impl_dx10.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:"%DXSDK_DIR%/Lib/x86" d3d10.lib d3dcompiler.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% /D UNICODE /D _UNICODE %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj new file mode 100644 index 0000000..d11aed8 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj @@ -0,0 +1,176 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {345A953E-A004-4648-B442-DC5F9F11068C} + example_win32_directx10 + 8.1 + + + + Application + true + Unicode + v140 + + + Application + true + Unicode + v140 + + + Application + false + true + Unicode + v140 + + + Application + false + true + Unicode + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + + Level4 + Disabled + ..\..;..\..\backends;%(AdditionalIncludeDirectories); + /utf-8 %(AdditionalOptions) + + + true + d3d10.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) + Console + + + + + Level4 + Disabled + ..\..;..\..\backends;%(AdditionalIncludeDirectories); + /utf-8 %(AdditionalOptions) + + + true + d3d10.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) + Console + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%(AdditionalIncludeDirectories); + false + /utf-8 %(AdditionalOptions) + + + true + true + true + d3d10.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) + Console + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%(AdditionalIncludeDirectories); + false + /utf-8 %(AdditionalOptions) + + + true + true + true + d3d10.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj.filters new file mode 100644 index 0000000..33ab99b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj.filters @@ -0,0 +1,63 @@ + + + + + {0587d7a3-f2ce-4d56-b84f-a0005d3bfce6} + + + {08e36723-ce4f-4cff-9662-c40801cf1acf} + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + imgui + + + sources + + + imgui + + + imgui + + + sources + + + sources + + + imgui + + + imgui + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/main.cpp new file mode 100644 index 0000000..dc1b72b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx10/main.cpp @@ -0,0 +1,277 @@ +// Dear ImGui: standalone example application for DirectX 10 + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#include "imgui_impl_win32.h" +#include "imgui_impl_dx10.h" +#include +#include +#include + +// Data +static ID3D10Device* g_pd3dDevice = nullptr; +static IDXGISwapChain* g_pSwapChain = nullptr; +static UINT g_ResizeWidth = 0, g_ResizeHeight = 0; +static ID3D10RenderTargetView* g_mainRenderTargetView = nullptr; + +// Forward declarations of helper functions +bool CreateDeviceD3D(HWND hWnd); +void CleanupDeviceD3D(); +void CreateRenderTarget(); +void CleanupRenderTarget(); +LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +// Main code +int main(int, char**) +{ + // Create application window + //ImGui_ImplWin32_EnableDpiAwareness(); + WNDCLASSEXW wc = { sizeof(wc), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(nullptr), nullptr, nullptr, nullptr, nullptr, L"ImGui Example", nullptr }; + ::RegisterClassExW(&wc); + HWND hwnd = ::CreateWindowW(wc.lpszClassName, L"Dear ImGui DirectX10 Example", WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, nullptr, nullptr, wc.hInstance, nullptr); + + // Initialize Direct3D + if (!CreateDeviceD3D(hwnd)) + { + CleanupDeviceD3D(); + ::UnregisterClassW(wc.lpszClassName, wc.hInstance); + return 1; + } + + // Show the window + ::ShowWindow(hwnd, SW_SHOWDEFAULT); + ::UpdateWindow(hwnd); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigViewportsNoAutoMerge = true; + //io.ConfigViewportsNoTaskBarIcon = true; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplWin32_Init(hwnd); + ImGui_ImplDX10_Init(g_pd3dDevice); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; + while (!done) + { + // Poll and handle messages (inputs, window resize, etc.) + // See the WndProc() function below for our to dispatch events to the Win32 backend. + MSG msg; + while (::PeekMessage(&msg, nullptr, 0U, 0U, PM_REMOVE)) + { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + if (msg.message == WM_QUIT) + done = true; + } + if (done) + break; + + // Handle window resize (we don't resize directly in the WM_SIZE handler) + if (g_ResizeWidth != 0 && g_ResizeHeight != 0) + { + CleanupRenderTarget(); + g_pSwapChain->ResizeBuffers(0, g_ResizeWidth, g_ResizeHeight, DXGI_FORMAT_UNKNOWN, 0); + g_ResizeWidth = g_ResizeHeight = 0; + CreateRenderTarget(); + } + + // Start the Dear ImGui frame + ImGui_ImplDX10_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + const float clear_color_with_alpha[4] = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; + g_pd3dDevice->OMSetRenderTargets(1, &g_mainRenderTargetView, nullptr); + g_pd3dDevice->ClearRenderTargetView(g_mainRenderTargetView, clear_color_with_alpha); + ImGui_ImplDX10_RenderDrawData(ImGui::GetDrawData()); + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + } + + g_pSwapChain->Present(1, 0); // Present with vsync + //g_pSwapChain->Present(0, 0); // Present without vsync + } + + ImGui_ImplDX10_Shutdown(); + ImGui_ImplWin32_Shutdown(); + ImGui::DestroyContext(); + + CleanupDeviceD3D(); + ::DestroyWindow(hwnd); + ::UnregisterClassW(wc.lpszClassName, wc.hInstance); + + return 0; +} + +// Helper functions +bool CreateDeviceD3D(HWND hWnd) +{ + // Setup swap chain + DXGI_SWAP_CHAIN_DESC sd; + ZeroMemory(&sd, sizeof(sd)); + sd.BufferCount = 2; + sd.BufferDesc.Width = 0; + sd.BufferDesc.Height = 0; + sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + sd.BufferDesc.RefreshRate.Numerator = 60; + sd.BufferDesc.RefreshRate.Denominator = 1; + sd.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH; + sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + sd.OutputWindow = hWnd; + sd.SampleDesc.Count = 1; + sd.SampleDesc.Quality = 0; + sd.Windowed = TRUE; + sd.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; + + UINT createDeviceFlags = 0; + //createDeviceFlags |= D3D10_CREATE_DEVICE_DEBUG; + HRESULT res = D3D10CreateDeviceAndSwapChain(nullptr, D3D10_DRIVER_TYPE_HARDWARE, nullptr, createDeviceFlags, D3D10_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice); + if (res == DXGI_ERROR_UNSUPPORTED) // Try high-performance WARP software driver if hardware is not available. + res = D3D10CreateDeviceAndSwapChain(nullptr, D3D10_DRIVER_TYPE_WARP, nullptr, createDeviceFlags, D3D10_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice); + if (res != S_OK) + return false; + + CreateRenderTarget(); + return true; +} + +void CleanupDeviceD3D() +{ + CleanupRenderTarget(); + if (g_pSwapChain) { g_pSwapChain->Release(); g_pSwapChain = nullptr; } + if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = nullptr; } +} + +void CreateRenderTarget() +{ + ID3D10Texture2D* pBackBuffer; + g_pSwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); + g_pd3dDevice->CreateRenderTargetView(pBackBuffer, nullptr, &g_mainRenderTargetView); + pBackBuffer->Release(); +} + +void CleanupRenderTarget() +{ + if (g_mainRenderTargetView) { g_mainRenderTargetView->Release(); g_mainRenderTargetView = nullptr; } +} + +// Forward declare message handler from imgui_impl_win32.cpp +extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +// Win32 message handler +// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. +// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. +// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. +// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. +LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam)) + return true; + + switch (msg) + { + case WM_SIZE: + if (wParam == SIZE_MINIMIZED) + return 0; + g_ResizeWidth = (UINT)LOWORD(lParam); // Queue resize + g_ResizeHeight = (UINT)HIWORD(lParam); + return 0; + case WM_SYSCOMMAND: + if ((wParam & 0xfff0) == SC_KEYMENU) // Disable ALT application menu + return 0; + break; + case WM_DESTROY: + ::PostQuitMessage(0); + return 0; + } + return ::DefWindowProcW(hWnd, msg, wParam, lParam); +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/build_win32.bat new file mode 100644 index 0000000..c9a717c --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/build_win32.bat @@ -0,0 +1,9 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_win32_directx11 +@set INCLUDES=/I..\.. /I..\..\backends /I "%WindowsSdkDir%Include\um" /I "%WindowsSdkDir%Include\shared" /I "%DXSDK_DIR%Include" +@set SOURCES=main.cpp ..\..\backends\imgui_impl_dx11.cpp ..\..\backends\imgui_impl_win32.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:"%DXSDK_DIR%/Lib/x86" d3d11.lib d3dcompiler.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% /D UNICODE /D _UNICODE %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj new file mode 100644 index 0000000..bace6a2 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj @@ -0,0 +1,175 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {9F316E83-5AE5-4939-A723-305A94F48005} + example_win32_directx11 + + + + Application + true + Unicode + v140 + + + Application + true + Unicode + v140 + + + Application + false + true + Unicode + v140 + + + Application + false + true + Unicode + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + + Level4 + Disabled + ..\..;..\..\backends;%(AdditionalIncludeDirectories); + /utf-8 %(AdditionalOptions) + + + true + d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) + Console + + + + + Level4 + Disabled + ..\..;..\..\backends;%(AdditionalIncludeDirectories); + /utf-8 %(AdditionalOptions) + + + true + d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) + Console + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%(AdditionalIncludeDirectories); + false + /utf-8 %(AdditionalOptions) + + + true + true + true + d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) + Console + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%(AdditionalIncludeDirectories); + false + /utf-8 %(AdditionalOptions) + + + true + true + true + d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj.filters new file mode 100644 index 0000000..63032a6 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj.filters @@ -0,0 +1,63 @@ + + + + + {0587d7a3-f2ce-4d56-b84f-a0005d3bfce6} + + + {08e36723-ce4f-4cff-9662-c40801cf1acf} + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + imgui + + + sources + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + imgui + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/main.cpp new file mode 100644 index 0000000..e9e907b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx11/main.cpp @@ -0,0 +1,299 @@ +// Dear ImGui: standalone example application for DirectX 11 + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#include "imgui_impl_win32.h" +#include "imgui_impl_dx11.h" +#include +#include + +// Data +static ID3D11Device* g_pd3dDevice = nullptr; +static ID3D11DeviceContext* g_pd3dDeviceContext = nullptr; +static IDXGISwapChain* g_pSwapChain = nullptr; +static UINT g_ResizeWidth = 0, g_ResizeHeight = 0; +static ID3D11RenderTargetView* g_mainRenderTargetView = nullptr; + +// Forward declarations of helper functions +bool CreateDeviceD3D(HWND hWnd); +void CleanupDeviceD3D(); +void CreateRenderTarget(); +void CleanupRenderTarget(); +LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +// Main code +int main(int, char**) +{ + // Create application window + //ImGui_ImplWin32_EnableDpiAwareness(); + WNDCLASSEXW wc = { sizeof(wc), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(nullptr), nullptr, nullptr, nullptr, nullptr, L"ImGui Example", nullptr }; + ::RegisterClassExW(&wc); + HWND hwnd = ::CreateWindowW(wc.lpszClassName, L"Dear ImGui DirectX11 Example", WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, nullptr, nullptr, wc.hInstance, nullptr); + + // Initialize Direct3D + if (!CreateDeviceD3D(hwnd)) + { + CleanupDeviceD3D(); + ::UnregisterClassW(wc.lpszClassName, wc.hInstance); + return 1; + } + + // Show the window + ::ShowWindow(hwnd, SW_SHOWDEFAULT); + ::UpdateWindow(hwnd); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigViewportsNoAutoMerge = true; + //io.ConfigViewportsNoTaskBarIcon = true; + //io.ConfigViewportsNoDefaultParent = true; + //io.ConfigDockingAlwaysTabBar = true; + //io.ConfigDockingTransparentPayload = true; + //io.ConfigFlags |= ImGuiConfigFlags_DpiEnableScaleFonts; // FIXME-DPI: Experimental. THIS CURRENTLY DOESN'T WORK AS EXPECTED. DON'T USE IN USER APP! + //io.ConfigFlags |= ImGuiConfigFlags_DpiEnableScaleViewports; // FIXME-DPI: Experimental. + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplWin32_Init(hwnd); + ImGui_ImplDX11_Init(g_pd3dDevice, g_pd3dDeviceContext); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; + while (!done) + { + // Poll and handle messages (inputs, window resize, etc.) + // See the WndProc() function below for our to dispatch events to the Win32 backend. + MSG msg; + while (::PeekMessage(&msg, nullptr, 0U, 0U, PM_REMOVE)) + { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + if (msg.message == WM_QUIT) + done = true; + } + if (done) + break; + + // Handle window resize (we don't resize directly in the WM_SIZE handler) + if (g_ResizeWidth != 0 && g_ResizeHeight != 0) + { + CleanupRenderTarget(); + g_pSwapChain->ResizeBuffers(0, g_ResizeWidth, g_ResizeHeight, DXGI_FORMAT_UNKNOWN, 0); + g_ResizeWidth = g_ResizeHeight = 0; + CreateRenderTarget(); + } + + // Start the Dear ImGui frame + ImGui_ImplDX11_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + const float clear_color_with_alpha[4] = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; + g_pd3dDeviceContext->OMSetRenderTargets(1, &g_mainRenderTargetView, nullptr); + g_pd3dDeviceContext->ClearRenderTargetView(g_mainRenderTargetView, clear_color_with_alpha); + ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + } + + g_pSwapChain->Present(1, 0); // Present with vsync + //g_pSwapChain->Present(0, 0); // Present without vsync + } + + // Cleanup + ImGui_ImplDX11_Shutdown(); + ImGui_ImplWin32_Shutdown(); + ImGui::DestroyContext(); + + CleanupDeviceD3D(); + ::DestroyWindow(hwnd); + ::UnregisterClassW(wc.lpszClassName, wc.hInstance); + + return 0; +} + +// Helper functions +bool CreateDeviceD3D(HWND hWnd) +{ + // Setup swap chain + DXGI_SWAP_CHAIN_DESC sd; + ZeroMemory(&sd, sizeof(sd)); + sd.BufferCount = 2; + sd.BufferDesc.Width = 0; + sd.BufferDesc.Height = 0; + sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + sd.BufferDesc.RefreshRate.Numerator = 60; + sd.BufferDesc.RefreshRate.Denominator = 1; + sd.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH; + sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + sd.OutputWindow = hWnd; + sd.SampleDesc.Count = 1; + sd.SampleDesc.Quality = 0; + sd.Windowed = TRUE; + sd.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; + + UINT createDeviceFlags = 0; + //createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG; + D3D_FEATURE_LEVEL featureLevel; + const D3D_FEATURE_LEVEL featureLevelArray[2] = { D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_10_0, }; + HRESULT res = D3D11CreateDeviceAndSwapChain(nullptr, D3D_DRIVER_TYPE_HARDWARE, nullptr, createDeviceFlags, featureLevelArray, 2, D3D11_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice, &featureLevel, &g_pd3dDeviceContext); + if (res == DXGI_ERROR_UNSUPPORTED) // Try high-performance WARP software driver if hardware is not available. + res = D3D11CreateDeviceAndSwapChain(nullptr, D3D_DRIVER_TYPE_WARP, nullptr, createDeviceFlags, featureLevelArray, 2, D3D11_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice, &featureLevel, &g_pd3dDeviceContext); + if (res != S_OK) + return false; + + CreateRenderTarget(); + return true; +} + +void CleanupDeviceD3D() +{ + CleanupRenderTarget(); + if (g_pSwapChain) { g_pSwapChain->Release(); g_pSwapChain = nullptr; } + if (g_pd3dDeviceContext) { g_pd3dDeviceContext->Release(); g_pd3dDeviceContext = nullptr; } + if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = nullptr; } +} + +void CreateRenderTarget() +{ + ID3D11Texture2D* pBackBuffer; + g_pSwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); + g_pd3dDevice->CreateRenderTargetView(pBackBuffer, nullptr, &g_mainRenderTargetView); + pBackBuffer->Release(); +} + +void CleanupRenderTarget() +{ + if (g_mainRenderTargetView) { g_mainRenderTargetView->Release(); g_mainRenderTargetView = nullptr; } +} + +#ifndef WM_DPICHANGED +#define WM_DPICHANGED 0x02E0 // From Windows SDK 8.1+ headers +#endif + +// Forward declare message handler from imgui_impl_win32.cpp +extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +// Win32 message handler +// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. +// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. +// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. +// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. +LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam)) + return true; + + switch (msg) + { + case WM_SIZE: + if (wParam == SIZE_MINIMIZED) + return 0; + g_ResizeWidth = (UINT)LOWORD(lParam); // Queue resize + g_ResizeHeight = (UINT)HIWORD(lParam); + return 0; + case WM_SYSCOMMAND: + if ((wParam & 0xfff0) == SC_KEYMENU) // Disable ALT application menu + return 0; + break; + case WM_DESTROY: + ::PostQuitMessage(0); + return 0; + case WM_DPICHANGED: + if (ImGui::GetIO().ConfigFlags & ImGuiConfigFlags_DpiEnableScaleViewports) + { + //const int dpi = HIWORD(wParam); + //printf("WM_DPICHANGED to %d (%.0f%%)\n", dpi, (float)dpi / 96.0f * 100.0f); + const RECT* suggested_rect = (RECT*)lParam; + ::SetWindowPos(hWnd, nullptr, suggested_rect->left, suggested_rect->top, suggested_rect->right - suggested_rect->left, suggested_rect->bottom - suggested_rect->top, SWP_NOZORDER | SWP_NOACTIVATE); + } + break; + } + return ::DefWindowProcW(hWnd, msg, wParam, lParam); +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/build_win32.bat new file mode 100644 index 0000000..68e3c92 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/build_win32.bat @@ -0,0 +1,9 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@REM Important: to build on 32-bit systems, the DX12 backends needs '#define ImTextureID ImU64', so we pass it here. +@set OUT_DIR=Debug +@set OUT_EXE=example_win32_directx12 +@set INCLUDES=/I..\.. /I..\..\backends /I "%WindowsSdkDir%Include\um" /I "%WindowsSdkDir%Include\shared" +@set SOURCES=main.cpp ..\..\backends\imgui_impl_dx12.cpp ..\..\backends\imgui_impl_win32.cpp ..\..\imgui*.cpp +@set LIBS=d3d12.lib d3dcompiler.lib dxgi.lib +mkdir Debug +cl /nologo /Zi /MD /utf-8 %INCLUDES% /D ImTextureID=ImU64 /D UNICODE /D _UNICODE %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj new file mode 100644 index 0000000..7b64371 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj @@ -0,0 +1,180 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {b4cf9797-519d-4afe-a8f4-5141a6b521d3} + example_win32_directx12 + 10.0.18362.0 + + + + Application + true + Unicode + v140 + + + Application + true + Unicode + v140 + + + Application + false + true + Unicode + v140 + + + Application + false + true + Unicode + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + + Level4 + Disabled + ..\..;..\..\backends;%(AdditionalIncludeDirectories) + ImTextureID=ImU64;_UNICODE;UNICODE;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + d3d12.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + %(AdditionalLibraryDirectories) + Console + + + + + Level4 + Disabled + ..\..;..\..\backends;%(AdditionalIncludeDirectories) + ImTextureID=ImU64;_UNICODE;UNICODE;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + d3d12.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + %(AdditionalLibraryDirectories) + Console + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%(AdditionalIncludeDirectories) + ImTextureID=ImU64;_UNICODE;UNICODE;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + true + true + d3d12.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + %(AdditionalLibraryDirectories) + Console + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%(AdditionalIncludeDirectories) + ImTextureID=ImU64;_UNICODE;UNICODE;%(PreprocessorDefinitions) + /utf-8 %(AdditionalOptions) + + + true + true + true + d3d12.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) + %(AdditionalLibraryDirectories) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj.filters new file mode 100644 index 0000000..23a9952 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj.filters @@ -0,0 +1,65 @@ + + + + + {fb3d294f-51ec-478e-a627-25831c80fefd} + + + {4f33ddea-9910-456d-b868-4267eb3c2b19} + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + imgui + + + sources + + + imgui + + + imgui + + + sources + + + sources + + + imgui + + + imgui + + + + + + imgui + + + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/main.cpp new file mode 100644 index 0000000..1ef5ae8 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx12/main.cpp @@ -0,0 +1,488 @@ +// Dear ImGui: standalone example application for DirectX 12 + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// Important: to compile on 32-bit systems, the DirectX12 backend requires code to be compiled with '#define ImTextureID ImU64'. +// This is because we need ImTextureID to carry a 64-bit value and by default ImTextureID is defined as void*. +// This define is set in the example .vcxproj file and need to be replicated in your app or by adding it to your imconfig.h file. + +#include "imgui.h" +#include "imgui_impl_win32.h" +#include "imgui_impl_dx12.h" +#include +#include +#include + +#ifdef _DEBUG +#define DX12_ENABLE_DEBUG_LAYER +#endif + +#ifdef DX12_ENABLE_DEBUG_LAYER +#include +#pragma comment(lib, "dxguid.lib") +#endif + +struct FrameContext +{ + ID3D12CommandAllocator* CommandAllocator; + UINT64 FenceValue; +}; + +// Data +static int const NUM_FRAMES_IN_FLIGHT = 3; +static FrameContext g_frameContext[NUM_FRAMES_IN_FLIGHT] = {}; +static UINT g_frameIndex = 0; + +static int const NUM_BACK_BUFFERS = 3; +static ID3D12Device* g_pd3dDevice = nullptr; +static ID3D12DescriptorHeap* g_pd3dRtvDescHeap = nullptr; +static ID3D12DescriptorHeap* g_pd3dSrvDescHeap = nullptr; +static ID3D12CommandQueue* g_pd3dCommandQueue = nullptr; +static ID3D12GraphicsCommandList* g_pd3dCommandList = nullptr; +static ID3D12Fence* g_fence = nullptr; +static HANDLE g_fenceEvent = nullptr; +static UINT64 g_fenceLastSignaledValue = 0; +static IDXGISwapChain3* g_pSwapChain = nullptr; +static HANDLE g_hSwapChainWaitableObject = nullptr; +static ID3D12Resource* g_mainRenderTargetResource[NUM_BACK_BUFFERS] = {}; +static D3D12_CPU_DESCRIPTOR_HANDLE g_mainRenderTargetDescriptor[NUM_BACK_BUFFERS] = {}; + +// Forward declarations of helper functions +bool CreateDeviceD3D(HWND hWnd); +void CleanupDeviceD3D(); +void CreateRenderTarget(); +void CleanupRenderTarget(); +void WaitForLastSubmittedFrame(); +FrameContext* WaitForNextFrameResources(); +LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +// Main code +int main(int, char**) +{ + // Create application window + //ImGui_ImplWin32_EnableDpiAwareness(); + WNDCLASSEXW wc = { sizeof(wc), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(nullptr), nullptr, nullptr, nullptr, nullptr, L"ImGui Example", nullptr }; + ::RegisterClassExW(&wc); + HWND hwnd = ::CreateWindowW(wc.lpszClassName, L"Dear ImGui DirectX12 Example", WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, nullptr, nullptr, wc.hInstance, nullptr); + + // Initialize Direct3D + if (!CreateDeviceD3D(hwnd)) + { + CleanupDeviceD3D(); + ::UnregisterClassW(wc.lpszClassName, wc.hInstance); + return 1; + } + + // Show the window + ::ShowWindow(hwnd, SW_SHOWDEFAULT); + ::UpdateWindow(hwnd); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigViewportsNoAutoMerge = true; + //io.ConfigViewportsNoTaskBarIcon = true; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplWin32_Init(hwnd); + ImGui_ImplDX12_Init(g_pd3dDevice, NUM_FRAMES_IN_FLIGHT, + DXGI_FORMAT_R8G8B8A8_UNORM, g_pd3dSrvDescHeap, + g_pd3dSrvDescHeap->GetCPUDescriptorHandleForHeapStart(), + g_pd3dSrvDescHeap->GetGPUDescriptorHandleForHeapStart()); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; + while (!done) + { + // Poll and handle messages (inputs, window resize, etc.) + // See the WndProc() function below for our to dispatch events to the Win32 backend. + MSG msg; + while (::PeekMessage(&msg, nullptr, 0U, 0U, PM_REMOVE)) + { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + if (msg.message == WM_QUIT) + done = true; + } + if (done) + break; + + // Start the Dear ImGui frame + ImGui_ImplDX12_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + + FrameContext* frameCtx = WaitForNextFrameResources(); + UINT backBufferIdx = g_pSwapChain->GetCurrentBackBufferIndex(); + frameCtx->CommandAllocator->Reset(); + + D3D12_RESOURCE_BARRIER barrier = {}; + barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION; + barrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE; + barrier.Transition.pResource = g_mainRenderTargetResource[backBufferIdx]; + barrier.Transition.Subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES; + barrier.Transition.StateBefore = D3D12_RESOURCE_STATE_PRESENT; + barrier.Transition.StateAfter = D3D12_RESOURCE_STATE_RENDER_TARGET; + g_pd3dCommandList->Reset(frameCtx->CommandAllocator, nullptr); + g_pd3dCommandList->ResourceBarrier(1, &barrier); + + // Render Dear ImGui graphics + const float clear_color_with_alpha[4] = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; + g_pd3dCommandList->ClearRenderTargetView(g_mainRenderTargetDescriptor[backBufferIdx], clear_color_with_alpha, 0, nullptr); + g_pd3dCommandList->OMSetRenderTargets(1, &g_mainRenderTargetDescriptor[backBufferIdx], FALSE, nullptr); + g_pd3dCommandList->SetDescriptorHeaps(1, &g_pd3dSrvDescHeap); + ImGui_ImplDX12_RenderDrawData(ImGui::GetDrawData(), g_pd3dCommandList); + barrier.Transition.StateBefore = D3D12_RESOURCE_STATE_RENDER_TARGET; + barrier.Transition.StateAfter = D3D12_RESOURCE_STATE_PRESENT; + g_pd3dCommandList->ResourceBarrier(1, &barrier); + g_pd3dCommandList->Close(); + + g_pd3dCommandQueue->ExecuteCommandLists(1, (ID3D12CommandList* const*)&g_pd3dCommandList); + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(nullptr, (void*)g_pd3dCommandList); + } + + g_pSwapChain->Present(1, 0); // Present with vsync + //g_pSwapChain->Present(0, 0); // Present without vsync + + UINT64 fenceValue = g_fenceLastSignaledValue + 1; + g_pd3dCommandQueue->Signal(g_fence, fenceValue); + g_fenceLastSignaledValue = fenceValue; + frameCtx->FenceValue = fenceValue; + } + + WaitForLastSubmittedFrame(); + + // Cleanup + ImGui_ImplDX12_Shutdown(); + ImGui_ImplWin32_Shutdown(); + ImGui::DestroyContext(); + + CleanupDeviceD3D(); + ::DestroyWindow(hwnd); + ::UnregisterClassW(wc.lpszClassName, wc.hInstance); + + return 0; +} + +// Helper functions +bool CreateDeviceD3D(HWND hWnd) +{ + // Setup swap chain + DXGI_SWAP_CHAIN_DESC1 sd; + { + ZeroMemory(&sd, sizeof(sd)); + sd.BufferCount = NUM_BACK_BUFFERS; + sd.Width = 0; + sd.Height = 0; + sd.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + sd.Flags = DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT; + sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + sd.SampleDesc.Count = 1; + sd.SampleDesc.Quality = 0; + sd.SwapEffect = DXGI_SWAP_EFFECT_FLIP_DISCARD; + sd.AlphaMode = DXGI_ALPHA_MODE_UNSPECIFIED; + sd.Scaling = DXGI_SCALING_STRETCH; + sd.Stereo = FALSE; + } + + // [DEBUG] Enable debug interface +#ifdef DX12_ENABLE_DEBUG_LAYER + ID3D12Debug* pdx12Debug = nullptr; + if (SUCCEEDED(D3D12GetDebugInterface(IID_PPV_ARGS(&pdx12Debug)))) + pdx12Debug->EnableDebugLayer(); +#endif + + // Create device + D3D_FEATURE_LEVEL featureLevel = D3D_FEATURE_LEVEL_11_0; + if (D3D12CreateDevice(nullptr, featureLevel, IID_PPV_ARGS(&g_pd3dDevice)) != S_OK) + return false; + + // [DEBUG] Setup debug interface to break on any warnings/errors +#ifdef DX12_ENABLE_DEBUG_LAYER + if (pdx12Debug != nullptr) + { + ID3D12InfoQueue* pInfoQueue = nullptr; + g_pd3dDevice->QueryInterface(IID_PPV_ARGS(&pInfoQueue)); + pInfoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_ERROR, true); + pInfoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_CORRUPTION, true); + pInfoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_WARNING, true); + pInfoQueue->Release(); + pdx12Debug->Release(); + } +#endif + + { + D3D12_DESCRIPTOR_HEAP_DESC desc = {}; + desc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_RTV; + desc.NumDescriptors = NUM_BACK_BUFFERS; + desc.Flags = D3D12_DESCRIPTOR_HEAP_FLAG_NONE; + desc.NodeMask = 1; + if (g_pd3dDevice->CreateDescriptorHeap(&desc, IID_PPV_ARGS(&g_pd3dRtvDescHeap)) != S_OK) + return false; + + SIZE_T rtvDescriptorSize = g_pd3dDevice->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_RTV); + D3D12_CPU_DESCRIPTOR_HANDLE rtvHandle = g_pd3dRtvDescHeap->GetCPUDescriptorHandleForHeapStart(); + for (UINT i = 0; i < NUM_BACK_BUFFERS; i++) + { + g_mainRenderTargetDescriptor[i] = rtvHandle; + rtvHandle.ptr += rtvDescriptorSize; + } + } + + { + D3D12_DESCRIPTOR_HEAP_DESC desc = {}; + desc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV; + desc.NumDescriptors = 1; + desc.Flags = D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE; + if (g_pd3dDevice->CreateDescriptorHeap(&desc, IID_PPV_ARGS(&g_pd3dSrvDescHeap)) != S_OK) + return false; + } + + { + D3D12_COMMAND_QUEUE_DESC desc = {}; + desc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT; + desc.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE; + desc.NodeMask = 1; + if (g_pd3dDevice->CreateCommandQueue(&desc, IID_PPV_ARGS(&g_pd3dCommandQueue)) != S_OK) + return false; + } + + for (UINT i = 0; i < NUM_FRAMES_IN_FLIGHT; i++) + if (g_pd3dDevice->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(&g_frameContext[i].CommandAllocator)) != S_OK) + return false; + + if (g_pd3dDevice->CreateCommandList(0, D3D12_COMMAND_LIST_TYPE_DIRECT, g_frameContext[0].CommandAllocator, nullptr, IID_PPV_ARGS(&g_pd3dCommandList)) != S_OK || + g_pd3dCommandList->Close() != S_OK) + return false; + + if (g_pd3dDevice->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&g_fence)) != S_OK) + return false; + + g_fenceEvent = CreateEvent(nullptr, FALSE, FALSE, nullptr); + if (g_fenceEvent == nullptr) + return false; + + { + IDXGIFactory4* dxgiFactory = nullptr; + IDXGISwapChain1* swapChain1 = nullptr; + if (CreateDXGIFactory1(IID_PPV_ARGS(&dxgiFactory)) != S_OK) + return false; + if (dxgiFactory->CreateSwapChainForHwnd(g_pd3dCommandQueue, hWnd, &sd, nullptr, nullptr, &swapChain1) != S_OK) + return false; + if (swapChain1->QueryInterface(IID_PPV_ARGS(&g_pSwapChain)) != S_OK) + return false; + swapChain1->Release(); + dxgiFactory->Release(); + g_pSwapChain->SetMaximumFrameLatency(NUM_BACK_BUFFERS); + g_hSwapChainWaitableObject = g_pSwapChain->GetFrameLatencyWaitableObject(); + } + + CreateRenderTarget(); + return true; +} + +void CleanupDeviceD3D() +{ + CleanupRenderTarget(); + if (g_pSwapChain) { g_pSwapChain->SetFullscreenState(false, nullptr); g_pSwapChain->Release(); g_pSwapChain = nullptr; } + if (g_hSwapChainWaitableObject != nullptr) { CloseHandle(g_hSwapChainWaitableObject); } + for (UINT i = 0; i < NUM_FRAMES_IN_FLIGHT; i++) + if (g_frameContext[i].CommandAllocator) { g_frameContext[i].CommandAllocator->Release(); g_frameContext[i].CommandAllocator = nullptr; } + if (g_pd3dCommandQueue) { g_pd3dCommandQueue->Release(); g_pd3dCommandQueue = nullptr; } + if (g_pd3dCommandList) { g_pd3dCommandList->Release(); g_pd3dCommandList = nullptr; } + if (g_pd3dRtvDescHeap) { g_pd3dRtvDescHeap->Release(); g_pd3dRtvDescHeap = nullptr; } + if (g_pd3dSrvDescHeap) { g_pd3dSrvDescHeap->Release(); g_pd3dSrvDescHeap = nullptr; } + if (g_fence) { g_fence->Release(); g_fence = nullptr; } + if (g_fenceEvent) { CloseHandle(g_fenceEvent); g_fenceEvent = nullptr; } + if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = nullptr; } + +#ifdef DX12_ENABLE_DEBUG_LAYER + IDXGIDebug1* pDebug = nullptr; + if (SUCCEEDED(DXGIGetDebugInterface1(0, IID_PPV_ARGS(&pDebug)))) + { + pDebug->ReportLiveObjects(DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_SUMMARY); + pDebug->Release(); + } +#endif +} + +void CreateRenderTarget() +{ + for (UINT i = 0; i < NUM_BACK_BUFFERS; i++) + { + ID3D12Resource* pBackBuffer = nullptr; + g_pSwapChain->GetBuffer(i, IID_PPV_ARGS(&pBackBuffer)); + g_pd3dDevice->CreateRenderTargetView(pBackBuffer, nullptr, g_mainRenderTargetDescriptor[i]); + g_mainRenderTargetResource[i] = pBackBuffer; + } +} + +void CleanupRenderTarget() +{ + WaitForLastSubmittedFrame(); + + for (UINT i = 0; i < NUM_BACK_BUFFERS; i++) + if (g_mainRenderTargetResource[i]) { g_mainRenderTargetResource[i]->Release(); g_mainRenderTargetResource[i] = nullptr; } +} + +void WaitForLastSubmittedFrame() +{ + FrameContext* frameCtx = &g_frameContext[g_frameIndex % NUM_FRAMES_IN_FLIGHT]; + + UINT64 fenceValue = frameCtx->FenceValue; + if (fenceValue == 0) + return; // No fence was signaled + + frameCtx->FenceValue = 0; + if (g_fence->GetCompletedValue() >= fenceValue) + return; + + g_fence->SetEventOnCompletion(fenceValue, g_fenceEvent); + WaitForSingleObject(g_fenceEvent, INFINITE); +} + +FrameContext* WaitForNextFrameResources() +{ + UINT nextFrameIndex = g_frameIndex + 1; + g_frameIndex = nextFrameIndex; + + HANDLE waitableObjects[] = { g_hSwapChainWaitableObject, nullptr }; + DWORD numWaitableObjects = 1; + + FrameContext* frameCtx = &g_frameContext[nextFrameIndex % NUM_FRAMES_IN_FLIGHT]; + UINT64 fenceValue = frameCtx->FenceValue; + if (fenceValue != 0) // means no fence was signaled + { + frameCtx->FenceValue = 0; + g_fence->SetEventOnCompletion(fenceValue, g_fenceEvent); + waitableObjects[1] = g_fenceEvent; + numWaitableObjects = 2; + } + + WaitForMultipleObjects(numWaitableObjects, waitableObjects, TRUE, INFINITE); + + return frameCtx; +} + +// Forward declare message handler from imgui_impl_win32.cpp +extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +// Win32 message handler +// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. +// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. +// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. +// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. +LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam)) + return true; + + switch (msg) + { + case WM_SIZE: + if (g_pd3dDevice != nullptr && wParam != SIZE_MINIMIZED) + { + WaitForLastSubmittedFrame(); + CleanupRenderTarget(); + HRESULT result = g_pSwapChain->ResizeBuffers(0, (UINT)LOWORD(lParam), (UINT)HIWORD(lParam), DXGI_FORMAT_UNKNOWN, DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT); + assert(SUCCEEDED(result) && "Failed to resize swapchain."); + CreateRenderTarget(); + } + return 0; + case WM_SYSCOMMAND: + if ((wParam & 0xfff0) == SC_KEYMENU) // Disable ALT application menu + return 0; + break; + case WM_DESTROY: + ::PostQuitMessage(0); + return 0; + } + return ::DefWindowProcW(hWnd, msg, wParam, lParam); +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/build_win32.bat new file mode 100644 index 0000000..ece5ea1 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/build_win32.bat @@ -0,0 +1,8 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_win32_directx9 +@set INCLUDES=/I..\.. /I..\..\backends /I "%DXSDK_DIR%/Include" +@set SOURCES=main.cpp ..\..\backends\imgui_impl_dx9.cpp ..\..\backends\imgui_impl_win32.cpp ..\..\imgui*.cpp +@set LIBS=/LIBPATH:"%DXSDK_DIR%/Lib/x86" d3d9.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% /D UNICODE /D _UNICODE %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj new file mode 100644 index 0000000..8c3f995 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj @@ -0,0 +1,176 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {4165A294-21F2-44CA-9B38-E3F935ABADF5} + example_win32_directx9 + 8.1 + + + + Application + true + Unicode + v140 + + + Application + true + Unicode + v140 + + + Application + false + true + Unicode + v140 + + + Application + false + true + Unicode + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + + Level4 + Disabled + ..\..;..\..\backends;%(AdditionalIncludeDirectories);$(DXSDK_DIR)Include; + /utf-8 %(AdditionalOptions) + + + true + $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) + d3d9.lib;%(AdditionalDependencies) + Console + + + + + Level4 + Disabled + ..\..;..\..\backends;%(AdditionalIncludeDirectories);$(DXSDK_DIR)Include; + /utf-8 %(AdditionalOptions) + + + true + $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) + d3d9.lib;%(AdditionalDependencies) + Console + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%(AdditionalIncludeDirectories);$(DXSDK_DIR)Include; + false + /utf-8 %(AdditionalOptions) + + + true + true + true + $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) + d3d9.lib;%(AdditionalDependencies) + Console + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends;%(AdditionalIncludeDirectories);$(DXSDK_DIR)Include; + false + /utf-8 %(AdditionalOptions) + + + true + true + true + $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) + d3d9.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj.filters new file mode 100644 index 0000000..5ed89d6 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj.filters @@ -0,0 +1,64 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {a82cba23-9de0-45c2-b1e3-2eb1666702de} + + + + + sources + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + imgui + + + imgui + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + + + + imgui + + + imgui + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/main.cpp new file mode 100644 index 0000000..89190b0 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_directx9/main.cpp @@ -0,0 +1,282 @@ +// Dear ImGui: standalone example application for DirectX 9 + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" +#include "imgui_impl_dx9.h" +#include "imgui_impl_win32.h" +#include +#include + +// Data +static LPDIRECT3D9 g_pD3D = nullptr; +static LPDIRECT3DDEVICE9 g_pd3dDevice = nullptr; +static UINT g_ResizeWidth = 0, g_ResizeHeight = 0; +static D3DPRESENT_PARAMETERS g_d3dpp = {}; + +// Forward declarations of helper functions +bool CreateDeviceD3D(HWND hWnd); +void CleanupDeviceD3D(); +void ResetDevice(); +LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +// Main code +int main(int, char**) +{ + // Create application window + //ImGui_ImplWin32_EnableDpiAwareness(); + WNDCLASSEXW wc = { sizeof(wc), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(nullptr), nullptr, nullptr, nullptr, nullptr, L"ImGui Example", nullptr }; + ::RegisterClassExW(&wc); + HWND hwnd = ::CreateWindowW(wc.lpszClassName, L"Dear ImGui DirectX9 Example", WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, nullptr, nullptr, wc.hInstance, nullptr); + + // Initialize Direct3D + if (!CreateDeviceD3D(hwnd)) + { + CleanupDeviceD3D(); + ::UnregisterClassW(wc.lpszClassName, wc.hInstance); + return 1; + } + + // Show the window + ::ShowWindow(hwnd, SW_SHOWDEFAULT); + ::UpdateWindow(hwnd); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + //io.ConfigViewportsNoAutoMerge = true; + //io.ConfigViewportsNoTaskBarIcon = true; + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsLight(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplWin32_Init(hwnd); + ImGui_ImplDX9_Init(g_pd3dDevice); + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != nullptr); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; + while (!done) + { + // Poll and handle messages (inputs, window resize, etc.) + // See the WndProc() function below for our to dispatch events to the Win32 backend. + MSG msg; + while (::PeekMessage(&msg, nullptr, 0U, 0U, PM_REMOVE)) + { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + if (msg.message == WM_QUIT) + done = true; + } + if (done) + break; + + // Handle window resize (we don't resize directly in the WM_SIZE handler) + if (g_ResizeWidth != 0 && g_ResizeHeight != 0) + { + g_d3dpp.BackBufferWidth = g_ResizeWidth; + g_d3dpp.BackBufferHeight = g_ResizeHeight; + g_ResizeWidth = g_ResizeHeight = 0; + ResetDevice(); + } + + // Start the Dear ImGui frame + ImGui_ImplDX9_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::EndFrame(); + g_pd3dDevice->SetRenderState(D3DRS_ZENABLE, FALSE); + g_pd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, FALSE); + g_pd3dDevice->SetRenderState(D3DRS_SCISSORTESTENABLE, FALSE); + D3DCOLOR clear_col_dx = D3DCOLOR_RGBA((int)(clear_color.x*clear_color.w*255.0f), (int)(clear_color.y*clear_color.w*255.0f), (int)(clear_color.z*clear_color.w*255.0f), (int)(clear_color.w*255.0f)); + g_pd3dDevice->Clear(0, nullptr, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, clear_col_dx, 1.0f, 0); + if (g_pd3dDevice->BeginScene() >= 0) + { + ImGui::Render(); + ImGui_ImplDX9_RenderDrawData(ImGui::GetDrawData()); + g_pd3dDevice->EndScene(); + } + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + } + + HRESULT result = g_pd3dDevice->Present(nullptr, nullptr, nullptr, nullptr); + + // Handle loss of D3D9 device + if (result == D3DERR_DEVICELOST && g_pd3dDevice->TestCooperativeLevel() == D3DERR_DEVICENOTRESET) + ResetDevice(); + } + + ImGui_ImplDX9_Shutdown(); + ImGui_ImplWin32_Shutdown(); + ImGui::DestroyContext(); + + CleanupDeviceD3D(); + ::DestroyWindow(hwnd); + ::UnregisterClassW(wc.lpszClassName, wc.hInstance); + + return 0; +} + +// Helper functions +bool CreateDeviceD3D(HWND hWnd) +{ + if ((g_pD3D = Direct3DCreate9(D3D_SDK_VERSION)) == nullptr) + return false; + + // Create the D3DDevice + ZeroMemory(&g_d3dpp, sizeof(g_d3dpp)); + g_d3dpp.Windowed = TRUE; + g_d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; + g_d3dpp.BackBufferFormat = D3DFMT_UNKNOWN; // Need to use an explicit format with alpha if needing per-pixel alpha composition. + g_d3dpp.EnableAutoDepthStencil = TRUE; + g_d3dpp.AutoDepthStencilFormat = D3DFMT_D16; + g_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_ONE; // Present with vsync + //g_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE; // Present without vsync, maximum unthrottled framerate + if (g_pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &g_d3dpp, &g_pd3dDevice) < 0) + return false; + + return true; +} + +void CleanupDeviceD3D() +{ + if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = nullptr; } + if (g_pD3D) { g_pD3D->Release(); g_pD3D = nullptr; } +} + +void ResetDevice() +{ + ImGui_ImplDX9_InvalidateDeviceObjects(); + HRESULT hr = g_pd3dDevice->Reset(&g_d3dpp); + if (hr == D3DERR_INVALIDCALL) + IM_ASSERT(0); + ImGui_ImplDX9_CreateDeviceObjects(); +} + +#ifndef WM_DPICHANGED +#define WM_DPICHANGED 0x02E0 // From Windows SDK 8.1+ headers +#endif + +// Forward declare message handler from imgui_impl_win32.cpp +extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +// Win32 message handler +// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. +// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. +// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. +// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. +LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam)) + return true; + + switch (msg) + { + case WM_SIZE: + if (wParam == SIZE_MINIMIZED) + return 0; + g_ResizeWidth = (UINT)LOWORD(lParam); // Queue resize + g_ResizeHeight = (UINT)HIWORD(lParam); + return 0; + case WM_SYSCOMMAND: + if ((wParam & 0xfff0) == SC_KEYMENU) // Disable ALT application menu + return 0; + break; + case WM_DESTROY: + ::PostQuitMessage(0); + return 0; + case WM_DPICHANGED: + if (ImGui::GetIO().ConfigFlags & ImGuiConfigFlags_DpiEnableScaleViewports) + { + //const int dpi = HIWORD(wParam); + //printf("WM_DPICHANGED to %d (%.0f%%)\n", dpi, (float)dpi / 96.0f * 100.0f); + const RECT* suggested_rect = (RECT*)lParam; + ::SetWindowPos(hWnd, nullptr, suggested_rect->left, suggested_rect->top, suggested_rect->right - suggested_rect->left, suggested_rect->bottom - suggested_rect->top, SWP_NOZORDER | SWP_NOACTIVATE); + } + break; + } + return ::DefWindowProcW(hWnd, msg, wParam, lParam); +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/build_win32.bat b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/build_win32.bat new file mode 100644 index 0000000..48df080 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/build_win32.bat @@ -0,0 +1,8 @@ +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. +@set OUT_DIR=Debug +@set OUT_EXE=example_win32_opengl3 +@set INCLUDES=/I..\.. /I..\..\backends +@set SOURCES=main.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\backends\imgui_impl_win32.cpp ..\..\imgui*.cpp +@set LIBS=opengl32.lib +mkdir %OUT_DIR% +cl /nologo /Zi /MD /utf-8 %INCLUDES% /D UNICODE /D _UNICODE %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/example_win32_opengl3.vcxproj b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/example_win32_opengl3.vcxproj new file mode 100644 index 0000000..98fc38f --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/example_win32_opengl3.vcxproj @@ -0,0 +1,176 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {C624E5FF-D4FE-4D35-9164-B8A91864F98E} + example_win32_opengl2 + 8.1 + + + + Application + true + Unicode + v140 + + + Application + true + Unicode + v140 + + + Application + false + true + Unicode + v140 + + + Application + false + true + Unicode + v140 + + + + + + + + + + + + + + + + + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + $(ProjectDir)$(Configuration)\ + $(ProjectDir)$(Configuration)\ + + + + Level4 + Disabled + ..\..;..\..\backends; + /utf-8 %(AdditionalOptions) + + + true + %(AdditionalLibraryDirectories) + opengl32.lib;%(AdditionalDependencies) + Console + + + + + Level4 + Disabled + ..\..;..\..\backends; + /utf-8 %(AdditionalOptions) + + + true + %(AdditionalLibraryDirectories) + opengl32.lib;%(AdditionalDependencies) + Console + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends; + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %(AdditionalLibraryDirectories) + opengl32.lib;%(AdditionalDependencies) + Console + + + + + Level4 + MaxSpeed + true + true + ..\..;..\..\backends; + false + /utf-8 %(AdditionalOptions) + + + true + true + true + %(AdditionalLibraryDirectories) + opengl32.lib;%(AdditionalDependencies) + Console + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/example_win32_opengl3.vcxproj.filters b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/example_win32_opengl3.vcxproj.filters new file mode 100644 index 0000000..47ed299 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/example_win32_opengl3.vcxproj.filters @@ -0,0 +1,64 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {a82cba23-9de0-45c2-b1e3-2eb1666702de} + + + + + sources + + + imgui + + + imgui + + + imgui + + + imgui + + + sources + + + imgui + + + sources + + + + + imgui + + + imgui + + + imgui + + + sources + + + sources + + + sources + + + + + + sources + + + \ No newline at end of file diff --git a/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/main.cpp b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/main.cpp new file mode 100644 index 0000000..3dc71de --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/example_win32_opengl3/main.cpp @@ -0,0 +1,308 @@ +// Dear ImGui: standalone example application for Win32 + OpenGL 3 + +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// This is provided for completeness, however it is strongly recommended you use OpenGL with SDL or GLFW. + +#include "imgui.h" +#include "imgui_impl_opengl3.h" +#include "imgui_impl_win32.h" +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#include +#include +#include + +// Data stored per platform window +struct WGL_WindowData { HDC hDC; }; + +// Data +static HGLRC g_hRC; +static WGL_WindowData g_MainWindow; +static int g_Width; +static int g_Height; + +// Forward declarations of helper functions +bool CreateDeviceWGL(HWND hWnd, WGL_WindowData* data); +void CleanupDeviceWGL(HWND hWnd, WGL_WindowData* data); +void ResetDeviceWGL(); +LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +// Support function for multi-viewports +// Unlike most other backend combination, we need specific hooks to combine Win32+OpenGL. +// We could in theory decide to support Win32-specific code in OpenGL backend via e.g. an hypothetical ImGui_ImplOpenGL3_InitForRawWin32(). +static void Hook_Renderer_CreateWindow(ImGuiViewport* viewport) +{ + assert(viewport->RendererUserData == NULL); + + WGL_WindowData* data = IM_NEW(WGL_WindowData); + CreateDeviceWGL((HWND)viewport->PlatformHandle, data); + viewport->RendererUserData = data; +} + +static void Hook_Renderer_DestroyWindow(ImGuiViewport* viewport) +{ + if (viewport->RendererUserData != NULL) + { + WGL_WindowData* data = (WGL_WindowData*)viewport->RendererUserData; + CleanupDeviceWGL((HWND)viewport->PlatformHandle, data); + IM_DELETE(data); + viewport->RendererUserData = NULL; + } +} + +static void Hook_Platform_RenderWindow(ImGuiViewport* viewport, void*) +{ + // Activate the platform window DC in the OpenGL rendering context + if (WGL_WindowData* data = (WGL_WindowData*)viewport->RendererUserData) + wglMakeCurrent(data->hDC, g_hRC); +} + +static void Hook_Renderer_SwapBuffers(ImGuiViewport* viewport, void*) +{ + if (WGL_WindowData* data = (WGL_WindowData*)viewport->RendererUserData) + ::SwapBuffers(data->hDC); +} + +// Main code +int main(int, char**) +{ + // Create application window + //ImGui_ImplWin32_EnableDpiAwareness(); + WNDCLASSEXW wc = { sizeof(wc), CS_OWNDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, NULL, NULL, NULL, L"ImGui Example", NULL }; + ::RegisterClassExW(&wc); + HWND hwnd = ::CreateWindowW(wc.lpszClassName, L"Dear ImGui Win32+OpenGL3 Example", WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, NULL, NULL, wc.hInstance, NULL); + + // Initialize OpenGL + if (!CreateDeviceWGL(hwnd, &g_MainWindow)) + { + CleanupDeviceWGL(hwnd, &g_MainWindow); + ::DestroyWindow(hwnd); + ::UnregisterClassW(wc.lpszClassName, wc.hInstance); + return 1; + } + wglMakeCurrent(g_MainWindow.hDC, g_hRC); + + // Show the window + ::ShowWindow(hwnd, SW_SHOWDEFAULT); + ::UpdateWindow(hwnd); + + // Setup Dear ImGui context + IMGUI_CHECKVERSION(); + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls + io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking + io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows + + // Setup Dear ImGui style + ImGui::StyleColorsDark(); + //ImGui::StyleColorsClassic(); + + // When viewports are enabled we tweak WindowRounding/WindowBg so platform windows can look identical to regular ones. + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + + // Setup Platform/Renderer backends + ImGui_ImplWin32_InitForOpenGL(hwnd); + ImGui_ImplOpenGL3_Init(); + + // Win32+GL needs specific hooks for viewport, as there are specific things needed to tie Win32 and GL api. + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + IM_ASSERT(platform_io.Renderer_CreateWindow == NULL); + IM_ASSERT(platform_io.Renderer_DestroyWindow == NULL); + IM_ASSERT(platform_io.Renderer_SwapBuffers == NULL); + IM_ASSERT(platform_io.Platform_RenderWindow == NULL); + platform_io.Renderer_CreateWindow = Hook_Renderer_CreateWindow; + platform_io.Renderer_DestroyWindow = Hook_Renderer_DestroyWindow; + platform_io.Renderer_SwapBuffers = Hook_Renderer_SwapBuffers; + platform_io.Platform_RenderWindow = Hook_Platform_RenderWindow; + } + + // Load Fonts + // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. + // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. + // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). + // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. + // - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering. + // - Read 'docs/FONTS.md' for more instructions and details. + // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! + //io.Fonts->AddFontDefault(); + //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); + //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); + //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); + //IM_ASSERT(font != NULL); + + // Our state + bool show_demo_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); + + // Main loop + bool done = false; + while (!done) + { + // Poll and handle messages (inputs, window resize, etc.) + // See the WndProc() function below for our to dispatch events to the Win32 backend. + MSG msg; + while (::PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE)) + { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + if (msg.message == WM_QUIT) + done = true; + } + if (done) + break; + + // Start the Dear ImGui frame + ImGui_ImplOpenGL3_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). + if (show_demo_window) + ImGui::ShowDemoWindow(&show_demo_window); + + // 2. Show a simple window that we create ourselves. We use a Begin/End pair to create a named window. + { + static float f = 0.0f; + static int counter = 0; + + ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. + + ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) + ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state + ImGui::Checkbox("Another Window", &show_another_window); + + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f + ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color + + if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) + counter++; + ImGui::SameLine(); + ImGui::Text("counter = %d", counter); + + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::End(); + } + + // 3. Show another simple window. + if (show_another_window) + { + ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) + ImGui::Text("Hello from another window!"); + if (ImGui::Button("Close Me")) + show_another_window = false; + ImGui::End(); + } + + // Rendering + ImGui::Render(); + glViewport(0, 0, g_Width, g_Height); + glClearColor(clear_color.x, clear_color.y, clear_color.z, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); + + // Update and Render additional Platform Windows + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::UpdatePlatformWindows(); + ImGui::RenderPlatformWindowsDefault(); + + // Restore the OpenGL rendering context to the main window DC, since platform windows might have changed it. + wglMakeCurrent(g_MainWindow.hDC, g_hRC); + } + + // Present + ::SwapBuffers(g_MainWindow.hDC); + } + + ImGui_ImplOpenGL3_Shutdown(); + ImGui_ImplWin32_Shutdown(); + ImGui::DestroyContext(); + + CleanupDeviceWGL(hwnd, &g_MainWindow); + wglDeleteContext(g_hRC); + ::DestroyWindow(hwnd); + ::UnregisterClassW(wc.lpszClassName, wc.hInstance); + + return 0; +} + +// Helper functions +bool CreateDeviceWGL(HWND hWnd, WGL_WindowData* data) +{ + HDC hDc = ::GetDC(hWnd); + PIXELFORMATDESCRIPTOR pfd = { 0 }; + pfd.nSize = sizeof(pfd); + pfd.nVersion = 1; + pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; + pfd.iPixelType = PFD_TYPE_RGBA; + pfd.cColorBits = 32; + + const int pf = ::ChoosePixelFormat(hDc, &pfd); + if (pf == 0) + return false; + if (::SetPixelFormat(hDc, pf, &pfd) == FALSE) + return false; + ::ReleaseDC(hWnd, hDc); + + data->hDC = ::GetDC(hWnd); + if (!g_hRC) + g_hRC = wglCreateContext(data->hDC); + return true; +} + +void CleanupDeviceWGL(HWND hWnd, WGL_WindowData* data) +{ + wglMakeCurrent(NULL, NULL); + ::ReleaseDC(hWnd, data->hDC); +} + +// Forward declare message handler from imgui_impl_win32.cpp +extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +// Win32 message handler +// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. +// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application, or clear/overwrite your copy of the mouse data. +// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application, or clear/overwrite your copy of the keyboard data. +// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. +LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam)) + return true; + + switch (msg) + { + case WM_SIZE: + if (wParam != SIZE_MINIMIZED) + { + g_Width = LOWORD(lParam); + g_Height = HIWORD(lParam); + } + return 0; + case WM_SYSCOMMAND: + if ((wParam & 0xfff0) == SC_KEYMENU) // Disable ALT application menu + return 0; + break; + case WM_DESTROY: + ::PostQuitMessage(0); + return 0; + } + return ::DefWindowProcW(hWnd, msg, wParam, lParam); +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/imgui_examples.sln b/HexaGen.Tests/cpp2c/imgui/examples/imgui_examples.sln new file mode 100644 index 0000000..071bcbd --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/imgui_examples.sln @@ -0,0 +1,151 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32616.157 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_win32_directx9", "example_win32_directx9\example_win32_directx9.vcxproj", "{4165A294-21F2-44CA-9B38-E3F935ABADF5}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_win32_directx10", "example_win32_directx10\example_win32_directx10.vcxproj", "{345A953E-A004-4648-B442-DC5F9F11068C}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_win32_directx11", "example_win32_directx11\example_win32_directx11.vcxproj", "{9F316E83-5AE5-4939-A723-305A94F48005}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_win32_directx12", "example_win32_directx12\example_win32_directx12.vcxproj", "{B4CF9797-519D-4AFE-A8F4-5141A6B521D3}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_glfw_opengl2", "example_glfw_opengl2\example_glfw_opengl2.vcxproj", "{9CDA7840-B7A5-496D-A527-E95571496D18}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_glfw_opengl3", "example_glfw_opengl3\example_glfw_opengl3.vcxproj", "{4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_glfw_vulkan", "example_glfw_vulkan\example_glfw_vulkan.vcxproj", "{57E2DF5A-6FC8-45BB-99DD-91A18C646E80}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_sdl2_directx11", "example_sdl2_directx11\example_sdl2_directx11.vcxproj", "{9E1987E3-1F19-45CA-B9C9-D31E791836D8}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_sdl2_opengl2", "example_sdl2_opengl2\example_sdl2_opengl2.vcxproj", "{2AE17FDE-F7F3-4CAC-ADAB-0710EDA4F741}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_sdl2_opengl3", "example_sdl2_opengl3\example_sdl2_opengl3.vcxproj", "{BBAEB705-1669-40F3-8567-04CF6A991F4C}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_sdl2_vulkan", "example_sdl2_vulkan\example_sdl2_vulkan.vcxproj", "{BAE3D0B5-9695-4EB1-AD0F-75890EB4A3B3}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_win32_opengl3", "example_win32_opengl3\example_win32_opengl3.vcxproj", "{C624E5FF-D4FE-4D35-9164-B8A91864F98E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_sdl2_sdlrenderer2", "example_sdl2_sdlrenderer2\example_sdl2_sdlrenderer2.vcxproj", "{0C0B2BEA-311F-473C-9652-87923EF639E3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Debug|Win32.ActiveCfg = Debug|Win32 + {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Debug|Win32.Build.0 = Debug|Win32 + {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Debug|x64.ActiveCfg = Debug|x64 + {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Debug|x64.Build.0 = Debug|x64 + {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Release|Win32.ActiveCfg = Release|Win32 + {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Release|Win32.Build.0 = Release|Win32 + {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Release|x64.ActiveCfg = Release|x64 + {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Release|x64.Build.0 = Release|x64 + {345A953E-A004-4648-B442-DC5F9F11068C}.Debug|Win32.ActiveCfg = Debug|Win32 + {345A953E-A004-4648-B442-DC5F9F11068C}.Debug|Win32.Build.0 = Debug|Win32 + {345A953E-A004-4648-B442-DC5F9F11068C}.Debug|x64.ActiveCfg = Debug|x64 + {345A953E-A004-4648-B442-DC5F9F11068C}.Debug|x64.Build.0 = Debug|x64 + {345A953E-A004-4648-B442-DC5F9F11068C}.Release|Win32.ActiveCfg = Release|Win32 + {345A953E-A004-4648-B442-DC5F9F11068C}.Release|Win32.Build.0 = Release|Win32 + {345A953E-A004-4648-B442-DC5F9F11068C}.Release|x64.ActiveCfg = Release|x64 + {345A953E-A004-4648-B442-DC5F9F11068C}.Release|x64.Build.0 = Release|x64 + {9F316E83-5AE5-4939-A723-305A94F48005}.Debug|Win32.ActiveCfg = Debug|Win32 + {9F316E83-5AE5-4939-A723-305A94F48005}.Debug|Win32.Build.0 = Debug|Win32 + {9F316E83-5AE5-4939-A723-305A94F48005}.Debug|x64.ActiveCfg = Debug|x64 + {9F316E83-5AE5-4939-A723-305A94F48005}.Debug|x64.Build.0 = Debug|x64 + {9F316E83-5AE5-4939-A723-305A94F48005}.Release|Win32.ActiveCfg = Release|Win32 + {9F316E83-5AE5-4939-A723-305A94F48005}.Release|Win32.Build.0 = Release|Win32 + {9F316E83-5AE5-4939-A723-305A94F48005}.Release|x64.ActiveCfg = Release|x64 + {9F316E83-5AE5-4939-A723-305A94F48005}.Release|x64.Build.0 = Release|x64 + {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Debug|Win32.ActiveCfg = Debug|Win32 + {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Debug|Win32.Build.0 = Debug|Win32 + {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Debug|x64.ActiveCfg = Debug|x64 + {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Debug|x64.Build.0 = Debug|x64 + {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Release|Win32.ActiveCfg = Release|Win32 + {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Release|Win32.Build.0 = Release|Win32 + {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Release|x64.ActiveCfg = Release|x64 + {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Release|x64.Build.0 = Release|x64 + {9CDA7840-B7A5-496D-A527-E95571496D18}.Debug|Win32.ActiveCfg = Debug|Win32 + {9CDA7840-B7A5-496D-A527-E95571496D18}.Debug|Win32.Build.0 = Debug|Win32 + {9CDA7840-B7A5-496D-A527-E95571496D18}.Debug|x64.ActiveCfg = Debug|x64 + {9CDA7840-B7A5-496D-A527-E95571496D18}.Debug|x64.Build.0 = Debug|x64 + {9CDA7840-B7A5-496D-A527-E95571496D18}.Release|Win32.ActiveCfg = Release|Win32 + {9CDA7840-B7A5-496D-A527-E95571496D18}.Release|Win32.Build.0 = Release|Win32 + {9CDA7840-B7A5-496D-A527-E95571496D18}.Release|x64.ActiveCfg = Release|x64 + {9CDA7840-B7A5-496D-A527-E95571496D18}.Release|x64.Build.0 = Release|x64 + {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Debug|Win32.ActiveCfg = Debug|Win32 + {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Debug|Win32.Build.0 = Debug|Win32 + {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Debug|x64.ActiveCfg = Debug|x64 + {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Debug|x64.Build.0 = Debug|x64 + {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Release|Win32.ActiveCfg = Release|Win32 + {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Release|Win32.Build.0 = Release|Win32 + {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Release|x64.ActiveCfg = Release|x64 + {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Release|x64.Build.0 = Release|x64 + {57E2DF5A-6FC8-45BB-99DD-91A18C646E80}.Debug|Win32.ActiveCfg = Debug|Win32 + {57E2DF5A-6FC8-45BB-99DD-91A18C646E80}.Debug|Win32.Build.0 = Debug|Win32 + {57E2DF5A-6FC8-45BB-99DD-91A18C646E80}.Debug|x64.ActiveCfg = Debug|x64 + {57E2DF5A-6FC8-45BB-99DD-91A18C646E80}.Debug|x64.Build.0 = Debug|x64 + {57E2DF5A-6FC8-45BB-99DD-91A18C646E80}.Release|Win32.ActiveCfg = Release|Win32 + {57E2DF5A-6FC8-45BB-99DD-91A18C646E80}.Release|Win32.Build.0 = Release|Win32 + {57E2DF5A-6FC8-45BB-99DD-91A18C646E80}.Release|x64.ActiveCfg = Release|x64 + {57E2DF5A-6FC8-45BB-99DD-91A18C646E80}.Release|x64.Build.0 = Release|x64 + {9E1987E3-1F19-45CA-B9C9-D31E791836D8}.Debug|Win32.ActiveCfg = Debug|Win32 + {9E1987E3-1F19-45CA-B9C9-D31E791836D8}.Debug|Win32.Build.0 = Debug|Win32 + {9E1987E3-1F19-45CA-B9C9-D31E791836D8}.Debug|x64.ActiveCfg = Debug|x64 + {9E1987E3-1F19-45CA-B9C9-D31E791836D8}.Debug|x64.Build.0 = Debug|x64 + {9E1987E3-1F19-45CA-B9C9-D31E791836D8}.Release|Win32.ActiveCfg = Release|Win32 + {9E1987E3-1F19-45CA-B9C9-D31E791836D8}.Release|Win32.Build.0 = Release|Win32 + {9E1987E3-1F19-45CA-B9C9-D31E791836D8}.Release|x64.ActiveCfg = Release|x64 + {9E1987E3-1F19-45CA-B9C9-D31E791836D8}.Release|x64.Build.0 = Release|x64 + {2AE17FDE-F7F3-4CAC-ADAB-0710EDA4F741}.Debug|Win32.ActiveCfg = Debug|Win32 + {2AE17FDE-F7F3-4CAC-ADAB-0710EDA4F741}.Debug|Win32.Build.0 = Debug|Win32 + {2AE17FDE-F7F3-4CAC-ADAB-0710EDA4F741}.Debug|x64.ActiveCfg = Debug|x64 + {2AE17FDE-F7F3-4CAC-ADAB-0710EDA4F741}.Debug|x64.Build.0 = Debug|x64 + {2AE17FDE-F7F3-4CAC-ADAB-0710EDA4F741}.Release|Win32.ActiveCfg = Release|Win32 + {2AE17FDE-F7F3-4CAC-ADAB-0710EDA4F741}.Release|Win32.Build.0 = Release|Win32 + {2AE17FDE-F7F3-4CAC-ADAB-0710EDA4F741}.Release|x64.ActiveCfg = Release|x64 + {2AE17FDE-F7F3-4CAC-ADAB-0710EDA4F741}.Release|x64.Build.0 = Release|x64 + {BBAEB705-1669-40F3-8567-04CF6A991F4C}.Debug|Win32.ActiveCfg = Debug|Win32 + {BBAEB705-1669-40F3-8567-04CF6A991F4C}.Debug|Win32.Build.0 = Debug|Win32 + {BBAEB705-1669-40F3-8567-04CF6A991F4C}.Debug|x64.ActiveCfg = Debug|x64 + {BBAEB705-1669-40F3-8567-04CF6A991F4C}.Debug|x64.Build.0 = Debug|x64 + {BBAEB705-1669-40F3-8567-04CF6A991F4C}.Release|Win32.ActiveCfg = Release|Win32 + {BBAEB705-1669-40F3-8567-04CF6A991F4C}.Release|Win32.Build.0 = Release|Win32 + {BBAEB705-1669-40F3-8567-04CF6A991F4C}.Release|x64.ActiveCfg = Release|x64 + {BBAEB705-1669-40F3-8567-04CF6A991F4C}.Release|x64.Build.0 = Release|x64 + {BAE3D0B5-9695-4EB1-AD0F-75890EB4A3B3}.Debug|Win32.ActiveCfg = Debug|Win32 + {BAE3D0B5-9695-4EB1-AD0F-75890EB4A3B3}.Debug|Win32.Build.0 = Debug|Win32 + {BAE3D0B5-9695-4EB1-AD0F-75890EB4A3B3}.Debug|x64.ActiveCfg = Debug|x64 + {BAE3D0B5-9695-4EB1-AD0F-75890EB4A3B3}.Debug|x64.Build.0 = Debug|x64 + {BAE3D0B5-9695-4EB1-AD0F-75890EB4A3B3}.Release|Win32.ActiveCfg = Release|Win32 + {BAE3D0B5-9695-4EB1-AD0F-75890EB4A3B3}.Release|Win32.Build.0 = Release|Win32 + {BAE3D0B5-9695-4EB1-AD0F-75890EB4A3B3}.Release|x64.ActiveCfg = Release|x64 + {BAE3D0B5-9695-4EB1-AD0F-75890EB4A3B3}.Release|x64.Build.0 = Release|x64 + {C624E5FF-D4FE-4D35-9164-B8A91864F98E}.Debug|Win32.ActiveCfg = Debug|Win32 + {C624E5FF-D4FE-4D35-9164-B8A91864F98E}.Debug|Win32.Build.0 = Debug|Win32 + {C624E5FF-D4FE-4D35-9164-B8A91864F98E}.Debug|x64.ActiveCfg = Debug|x64 + {C624E5FF-D4FE-4D35-9164-B8A91864F98E}.Debug|x64.Build.0 = Debug|x64 + {C624E5FF-D4FE-4D35-9164-B8A91864F98E}.Release|Win32.ActiveCfg = Release|Win32 + {C624E5FF-D4FE-4D35-9164-B8A91864F98E}.Release|Win32.Build.0 = Release|Win32 + {C624E5FF-D4FE-4D35-9164-B8A91864F98E}.Release|x64.ActiveCfg = Release|x64 + {C624E5FF-D4FE-4D35-9164-B8A91864F98E}.Release|x64.Build.0 = Release|x64 + {0C0B2BEA-311F-473C-9652-87923EF639E3}.Debug|Win32.ActiveCfg = Debug|Win32 + {0C0B2BEA-311F-473C-9652-87923EF639E3}.Debug|Win32.Build.0 = Debug|Win32 + {0C0B2BEA-311F-473C-9652-87923EF639E3}.Debug|x64.ActiveCfg = Debug|x64 + {0C0B2BEA-311F-473C-9652-87923EF639E3}.Debug|x64.Build.0 = Debug|x64 + {0C0B2BEA-311F-473C-9652-87923EF639E3}.Release|Win32.ActiveCfg = Release|Win32 + {0C0B2BEA-311F-473C-9652-87923EF639E3}.Release|Win32.Build.0 = Release|Win32 + {0C0B2BEA-311F-473C-9652-87923EF639E3}.Release|x64.ActiveCfg = Release|x64 + {0C0B2BEA-311F-473C-9652-87923EF639E3}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B1ACFD20-A0A9-4A4C-ADBA-E7608F0E2BEE} + EndGlobalSection +EndGlobal diff --git a/HexaGen.Tests/cpp2c/imgui/examples/libs/emscripten/emscripten_mainloop_stub.h b/HexaGen.Tests/cpp2c/imgui/examples/libs/emscripten/emscripten_mainloop_stub.h new file mode 100644 index 0000000..05cf60f --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/libs/emscripten/emscripten_mainloop_stub.h @@ -0,0 +1,37 @@ +// What does this file solves? +// - Since Dear ImGui 1.00 we took pride that most of our examples applications had their entire +// main-loop inside the main() function. That's because: +// - It makes the examples easier to read, keeping the code sequential. +// - It permit the use of local variables, making it easier to try things and perform quick +// changes when someone needs to quickly test something (vs having to structure the example +// in order to pass data around). This is very important because people use those examples +// to craft easy-to-past repro when they want to discuss features or report issues. +// - It conveys at a glance that this is a no-BS framework, it won't take your main loop away from you. +// - It is generally nice and elegant. +// - However, comes Emscripten... it is a wonderful and magical tech but it requires a "main loop" function. +// - Only some of our examples would run on Emscripten. Typically the ones rendering with GL or WGPU ones. +// - I tried to refactor those examples but felt it was problematic that other examples didn't follow the +// same layout. Why would the SDL+GL example be structured one way and the SGL+DX11 be structured differently? +// Especially as we are trying hard to convey that using a Dear ImGui backend in an *existing application* +// should requires only a few dozens lines of code, and this should be consistent and symmetrical for all backends. +// - So the next logical step was to refactor all examples to follow that layout of using a "main loop" function. +// This worked, but it made us lose all the nice things we had... + +// Since only about 3 examples really need to run with Emscripten, here's our solution: +// - Use some weird macros and capturing lambda to turn a loop in main() into a function. +// - Hide all that crap in this file so it doesn't make our examples unusually ugly. +// As a stance and principle of Dear ImGui development we don't use C++ headers and we don't +// want to suggest to the newcomer that we would ever use C++ headers as this would affect +// the initial judgment of many of our target audience. +// - Technique is based on this idea: https://github.com/ocornut/imgui/pull/2492/ +#ifdef __EMSCRIPTEN__ +#include +#include +static std::function MainLoopForEmscriptenP; +static void MainLoopForEmscripten() { MainLoopForEmscriptenP(); } +#define EMSCRIPTEN_MAINLOOP_BEGIN MainLoopForEmscriptenP = [&]() +#define EMSCRIPTEN_MAINLOOP_END ; emscripten_set_main_loop(MainLoopForEmscripten, 0, true) +#else +#define EMSCRIPTEN_MAINLOOP_BEGIN +#define EMSCRIPTEN_MAINLOOP_END +#endif diff --git a/HexaGen.Tests/cpp2c/imgui/examples/libs/emscripten/shell_minimal.html b/HexaGen.Tests/cpp2c/imgui/examples/libs/emscripten/shell_minimal.html new file mode 100644 index 0000000..bcf6262 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/libs/emscripten/shell_minimal.html @@ -0,0 +1,65 @@ + + + + + + Dear ImGui Emscripten example + + + + + + {{{ SCRIPT }}} + + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/COPYING.txt b/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/COPYING.txt new file mode 100644 index 0000000..b30c701 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/COPYING.txt @@ -0,0 +1,22 @@ +Copyright (c) 2002-2006 Marcus Geelnard +Copyright (c) 2006-2010 Camilla Berglund + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would + be appreciated but is not required. + +2. Altered source versions must be plainly marked as such, and must not + be misrepresented as being the original software. + +3. This notice may not be removed or altered from any source + distribution. + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/include/GLFW/glfw3.h b/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/include/GLFW/glfw3.h new file mode 100644 index 0000000..f8ca3d6 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/include/GLFW/glfw3.h @@ -0,0 +1,4227 @@ +/************************************************************************* + * GLFW 3.2 - www.glfw.org + * A library for OpenGL, window and input + *------------------------------------------------------------------------ + * Copyright (c) 2002-2006 Marcus Geelnard + * Copyright (c) 2006-2010 Camilla Berglund + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would + * be appreciated but is not required. + * + * 2. Altered source versions must be plainly marked as such, and must not + * be misrepresented as being the original software. + * + * 3. This notice may not be removed or altered from any source + * distribution. + * + *************************************************************************/ + +#ifndef _glfw3_h_ +#define _glfw3_h_ + +#ifdef __cplusplus +extern "C" { +#endif + + +/************************************************************************* + * Doxygen documentation + *************************************************************************/ + +/*! @file glfw3.h + * @brief The header of the GLFW 3 API. + * + * This is the header file of the GLFW 3 API. It defines all its types and + * declares all its functions. + * + * For more information about how to use this file, see @ref build_include. + */ +/*! @defgroup context Context reference + * + * This is the reference documentation for OpenGL and OpenGL ES context related + * functions. For more task-oriented information, see the @ref context_guide. + */ +/*! @defgroup vulkan Vulkan reference + * + * This is the reference documentation for Vulkan related functions and types. + * For more task-oriented information, see the @ref vulkan_guide. + */ +/*! @defgroup init Initialization, version and error reference + * + * This is the reference documentation for initialization and termination of + * the library, version management and error handling. For more task-oriented + * information, see the @ref intro_guide. + */ +/*! @defgroup input Input reference + * + * This is the reference documentation for input related functions and types. + * For more task-oriented information, see the @ref input_guide. + */ +/*! @defgroup monitor Monitor reference + * + * This is the reference documentation for monitor related functions and types. + * For more task-oriented information, see the @ref monitor_guide. + */ +/*! @defgroup window Window reference + * + * This is the reference documentation for window related functions and types, + * including creation, deletion and event polling. For more task-oriented + * information, see the @ref window_guide. + */ + + +/************************************************************************* + * Compiler- and platform-specific preprocessor work + *************************************************************************/ + +/* If we are we on Windows, we want a single define for it. + */ +#if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__)) + #define _WIN32 +#endif /* _WIN32 */ + +/* It is customary to use APIENTRY for OpenGL function pointer declarations on + * all platforms. Additionally, the Windows OpenGL header needs APIENTRY. + */ +#ifndef APIENTRY + #ifdef _WIN32 + #define APIENTRY __stdcall + #else + #define APIENTRY + #endif +#endif /* APIENTRY */ + +/* Some Windows OpenGL headers need this. + */ +#if !defined(WINGDIAPI) && defined(_WIN32) + #define WINGDIAPI __declspec(dllimport) + #define GLFW_WINGDIAPI_DEFINED +#endif /* WINGDIAPI */ + +/* Some Windows GLU headers need this. + */ +#if !defined(CALLBACK) && defined(_WIN32) + #define CALLBACK __stdcall + #define GLFW_CALLBACK_DEFINED +#endif /* CALLBACK */ + +/* Most Windows GLU headers need wchar_t. + * The OS X OpenGL header blocks the definition of ptrdiff_t by glext.h. + * Include it unconditionally to avoid surprising side-effects. + */ +#include +#include + +/* Include the chosen client API headers. + */ +#if defined(__APPLE__) + #if defined(GLFW_INCLUDE_GLCOREARB) + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + #elif !defined(GLFW_INCLUDE_NONE) + #if !defined(GLFW_INCLUDE_GLEXT) + #define GL_GLEXT_LEGACY + #endif + #include + #endif + #if defined(GLFW_INCLUDE_GLU) + #include + #endif +#else + #if defined(GLFW_INCLUDE_GLCOREARB) + #include + #elif defined(GLFW_INCLUDE_ES1) + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + #elif defined(GLFW_INCLUDE_ES2) + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + #elif defined(GLFW_INCLUDE_ES3) + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + #elif defined(GLFW_INCLUDE_ES31) + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + #elif defined(GLFW_INCLUDE_VULKAN) + #include + #elif !defined(GLFW_INCLUDE_NONE) + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + #endif + #if defined(GLFW_INCLUDE_GLU) + #include + #endif +#endif + +#if defined(GLFW_DLL) && defined(_GLFW_BUILD_DLL) + /* GLFW_DLL must be defined by applications that are linking against the DLL + * version of the GLFW library. _GLFW_BUILD_DLL is defined by the GLFW + * configuration header when compiling the DLL version of the library. + */ + #error "You must not have both GLFW_DLL and _GLFW_BUILD_DLL defined" +#endif + +/* GLFWAPI is used to declare public API functions for export + * from the DLL / shared library / dynamic library. + */ +#if defined(_WIN32) && defined(_GLFW_BUILD_DLL) + /* We are building GLFW as a Win32 DLL */ + #define GLFWAPI __declspec(dllexport) +#elif defined(_WIN32) && defined(GLFW_DLL) + /* We are calling GLFW as a Win32 DLL */ + #define GLFWAPI __declspec(dllimport) +#elif defined(__GNUC__) && defined(_GLFW_BUILD_DLL) + /* We are building GLFW as a shared / dynamic library */ + #define GLFWAPI __attribute__((visibility("default"))) +#else + /* We are building or calling GLFW as a static library */ + #define GLFWAPI +#endif + + +/************************************************************************* + * GLFW API tokens + *************************************************************************/ + +/*! @name GLFW version macros + * @{ */ +/*! @brief The major version number of the GLFW library. + * + * This is incremented when the API is changed in non-compatible ways. + * @ingroup init + */ +#define GLFW_VERSION_MAJOR 3 +/*! @brief The minor version number of the GLFW library. + * + * This is incremented when features are added to the API but it remains + * backward-compatible. + * @ingroup init + */ +#define GLFW_VERSION_MINOR 2 +/*! @brief The revision number of the GLFW library. + * + * This is incremented when a bug fix release is made that does not contain any + * API changes. + * @ingroup init + */ +#define GLFW_VERSION_REVISION 0 +/*! @} */ + +/*! @name Boolean values + * @{ */ +/*! @brief One. + * + * One. Seriously. You don't _need_ to use this symbol in your code. It's + * just semantic sugar for the number 1. You can use `1` or `true` or `_True` + * or `GL_TRUE` or whatever you want. + */ +#define GLFW_TRUE 1 +/*! @brief Zero. + * + * Zero. Seriously. You don't _need_ to use this symbol in your code. It's + * just just semantic sugar for the number 0. You can use `0` or `false` or + * `_False` or `GL_FALSE` or whatever you want. + */ +#define GLFW_FALSE 0 +/*! @} */ + +/*! @name Key and button actions + * @{ */ +/*! @brief The key or mouse button was released. + * + * The key or mouse button was released. + * + * @ingroup input + */ +#define GLFW_RELEASE 0 +/*! @brief The key or mouse button was pressed. + * + * The key or mouse button was pressed. + * + * @ingroup input + */ +#define GLFW_PRESS 1 +/*! @brief The key was held down until it repeated. + * + * The key was held down until it repeated. + * + * @ingroup input + */ +#define GLFW_REPEAT 2 +/*! @} */ + +/*! @defgroup keys Keyboard keys + * + * See [key input](@ref input_key) for how these are used. + * + * These key codes are inspired by the _USB HID Usage Tables v1.12_ (p. 53-60), + * but re-arranged to map to 7-bit ASCII for printable keys (function keys are + * put in the 256+ range). + * + * The naming of the key codes follow these rules: + * - The US keyboard layout is used + * - Names of printable alpha-numeric characters are used (e.g. "A", "R", + * "3", etc.) + * - For non-alphanumeric characters, Unicode:ish names are used (e.g. + * "COMMA", "LEFT_SQUARE_BRACKET", etc.). Note that some names do not + * correspond to the Unicode standard (usually for brevity) + * - Keys that lack a clear US mapping are named "WORLD_x" + * - For non-printable keys, custom names are used (e.g. "F4", + * "BACKSPACE", etc.) + * + * @ingroup input + * @{ + */ + +/* The unknown key */ +#define GLFW_KEY_UNKNOWN -1 + +/* Printable keys */ +#define GLFW_KEY_SPACE 32 +#define GLFW_KEY_APOSTROPHE 39 /* ' */ +#define GLFW_KEY_COMMA 44 /* , */ +#define GLFW_KEY_MINUS 45 /* - */ +#define GLFW_KEY_PERIOD 46 /* . */ +#define GLFW_KEY_SLASH 47 /* / */ +#define GLFW_KEY_0 48 +#define GLFW_KEY_1 49 +#define GLFW_KEY_2 50 +#define GLFW_KEY_3 51 +#define GLFW_KEY_4 52 +#define GLFW_KEY_5 53 +#define GLFW_KEY_6 54 +#define GLFW_KEY_7 55 +#define GLFW_KEY_8 56 +#define GLFW_KEY_9 57 +#define GLFW_KEY_SEMICOLON 59 /* ; */ +#define GLFW_KEY_EQUAL 61 /* = */ +#define GLFW_KEY_A 65 +#define GLFW_KEY_B 66 +#define GLFW_KEY_C 67 +#define GLFW_KEY_D 68 +#define GLFW_KEY_E 69 +#define GLFW_KEY_F 70 +#define GLFW_KEY_G 71 +#define GLFW_KEY_H 72 +#define GLFW_KEY_I 73 +#define GLFW_KEY_J 74 +#define GLFW_KEY_K 75 +#define GLFW_KEY_L 76 +#define GLFW_KEY_M 77 +#define GLFW_KEY_N 78 +#define GLFW_KEY_O 79 +#define GLFW_KEY_P 80 +#define GLFW_KEY_Q 81 +#define GLFW_KEY_R 82 +#define GLFW_KEY_S 83 +#define GLFW_KEY_T 84 +#define GLFW_KEY_U 85 +#define GLFW_KEY_V 86 +#define GLFW_KEY_W 87 +#define GLFW_KEY_X 88 +#define GLFW_KEY_Y 89 +#define GLFW_KEY_Z 90 +#define GLFW_KEY_LEFT_BRACKET 91 /* [ */ +#define GLFW_KEY_BACKSLASH 92 /* \ */ +#define GLFW_KEY_RIGHT_BRACKET 93 /* ] */ +#define GLFW_KEY_GRAVE_ACCENT 96 /* ` */ +#define GLFW_KEY_WORLD_1 161 /* non-US #1 */ +#define GLFW_KEY_WORLD_2 162 /* non-US #2 */ + +/* Function keys */ +#define GLFW_KEY_ESCAPE 256 +#define GLFW_KEY_ENTER 257 +#define GLFW_KEY_TAB 258 +#define GLFW_KEY_BACKSPACE 259 +#define GLFW_KEY_INSERT 260 +#define GLFW_KEY_DELETE 261 +#define GLFW_KEY_RIGHT 262 +#define GLFW_KEY_LEFT 263 +#define GLFW_KEY_DOWN 264 +#define GLFW_KEY_UP 265 +#define GLFW_KEY_PAGE_UP 266 +#define GLFW_KEY_PAGE_DOWN 267 +#define GLFW_KEY_HOME 268 +#define GLFW_KEY_END 269 +#define GLFW_KEY_CAPS_LOCK 280 +#define GLFW_KEY_SCROLL_LOCK 281 +#define GLFW_KEY_NUM_LOCK 282 +#define GLFW_KEY_PRINT_SCREEN 283 +#define GLFW_KEY_PAUSE 284 +#define GLFW_KEY_F1 290 +#define GLFW_KEY_F2 291 +#define GLFW_KEY_F3 292 +#define GLFW_KEY_F4 293 +#define GLFW_KEY_F5 294 +#define GLFW_KEY_F6 295 +#define GLFW_KEY_F7 296 +#define GLFW_KEY_F8 297 +#define GLFW_KEY_F9 298 +#define GLFW_KEY_F10 299 +#define GLFW_KEY_F11 300 +#define GLFW_KEY_F12 301 +#define GLFW_KEY_F13 302 +#define GLFW_KEY_F14 303 +#define GLFW_KEY_F15 304 +#define GLFW_KEY_F16 305 +#define GLFW_KEY_F17 306 +#define GLFW_KEY_F18 307 +#define GLFW_KEY_F19 308 +#define GLFW_KEY_F20 309 +#define GLFW_KEY_F21 310 +#define GLFW_KEY_F22 311 +#define GLFW_KEY_F23 312 +#define GLFW_KEY_F24 313 +#define GLFW_KEY_F25 314 +#define GLFW_KEY_KP_0 320 +#define GLFW_KEY_KP_1 321 +#define GLFW_KEY_KP_2 322 +#define GLFW_KEY_KP_3 323 +#define GLFW_KEY_KP_4 324 +#define GLFW_KEY_KP_5 325 +#define GLFW_KEY_KP_6 326 +#define GLFW_KEY_KP_7 327 +#define GLFW_KEY_KP_8 328 +#define GLFW_KEY_KP_9 329 +#define GLFW_KEY_KP_DECIMAL 330 +#define GLFW_KEY_KP_DIVIDE 331 +#define GLFW_KEY_KP_MULTIPLY 332 +#define GLFW_KEY_KP_SUBTRACT 333 +#define GLFW_KEY_KP_ADD 334 +#define GLFW_KEY_KP_ENTER 335 +#define GLFW_KEY_KP_EQUAL 336 +#define GLFW_KEY_LEFT_SHIFT 340 +#define GLFW_KEY_LEFT_CONTROL 341 +#define GLFW_KEY_LEFT_ALT 342 +#define GLFW_KEY_LEFT_SUPER 343 +#define GLFW_KEY_RIGHT_SHIFT 344 +#define GLFW_KEY_RIGHT_CONTROL 345 +#define GLFW_KEY_RIGHT_ALT 346 +#define GLFW_KEY_RIGHT_SUPER 347 +#define GLFW_KEY_MENU 348 + +#define GLFW_KEY_LAST GLFW_KEY_MENU + +/*! @} */ + +/*! @defgroup mods Modifier key flags + * + * See [key input](@ref input_key) for how these are used. + * + * @ingroup input + * @{ */ + +/*! @brief If this bit is set one or more Shift keys were held down. + */ +#define GLFW_MOD_SHIFT 0x0001 +/*! @brief If this bit is set one or more Control keys were held down. + */ +#define GLFW_MOD_CONTROL 0x0002 +/*! @brief If this bit is set one or more Alt keys were held down. + */ +#define GLFW_MOD_ALT 0x0004 +/*! @brief If this bit is set one or more Super keys were held down. + */ +#define GLFW_MOD_SUPER 0x0008 + +/*! @} */ + +/*! @defgroup buttons Mouse buttons + * + * See [mouse button input](@ref input_mouse_button) for how these are used. + * + * @ingroup input + * @{ */ +#define GLFW_MOUSE_BUTTON_1 0 +#define GLFW_MOUSE_BUTTON_2 1 +#define GLFW_MOUSE_BUTTON_3 2 +#define GLFW_MOUSE_BUTTON_4 3 +#define GLFW_MOUSE_BUTTON_5 4 +#define GLFW_MOUSE_BUTTON_6 5 +#define GLFW_MOUSE_BUTTON_7 6 +#define GLFW_MOUSE_BUTTON_8 7 +#define GLFW_MOUSE_BUTTON_LAST GLFW_MOUSE_BUTTON_8 +#define GLFW_MOUSE_BUTTON_LEFT GLFW_MOUSE_BUTTON_1 +#define GLFW_MOUSE_BUTTON_RIGHT GLFW_MOUSE_BUTTON_2 +#define GLFW_MOUSE_BUTTON_MIDDLE GLFW_MOUSE_BUTTON_3 +/*! @} */ + +/*! @defgroup joysticks Joysticks + * + * See [joystick input](@ref joystick) for how these are used. + * + * @ingroup input + * @{ */ +#define GLFW_JOYSTICK_1 0 +#define GLFW_JOYSTICK_2 1 +#define GLFW_JOYSTICK_3 2 +#define GLFW_JOYSTICK_4 3 +#define GLFW_JOYSTICK_5 4 +#define GLFW_JOYSTICK_6 5 +#define GLFW_JOYSTICK_7 6 +#define GLFW_JOYSTICK_8 7 +#define GLFW_JOYSTICK_9 8 +#define GLFW_JOYSTICK_10 9 +#define GLFW_JOYSTICK_11 10 +#define GLFW_JOYSTICK_12 11 +#define GLFW_JOYSTICK_13 12 +#define GLFW_JOYSTICK_14 13 +#define GLFW_JOYSTICK_15 14 +#define GLFW_JOYSTICK_16 15 +#define GLFW_JOYSTICK_LAST GLFW_JOYSTICK_16 +/*! @} */ + +/*! @defgroup errors Error codes + * + * See [error handling](@ref error_handling) for how these are used. + * + * @ingroup init + * @{ */ +/*! @brief GLFW has not been initialized. + * + * This occurs if a GLFW function was called that must not be called unless the + * library is [initialized](@ref intro_init). + * + * @analysis Application programmer error. Initialize GLFW before calling any + * function that requires initialization. + */ +#define GLFW_NOT_INITIALIZED 0x00010001 +/*! @brief No context is current for this thread. + * + * This occurs if a GLFW function was called that needs and operates on the + * current OpenGL or OpenGL ES context but no context is current on the calling + * thread. One such function is @ref glfwSwapInterval. + * + * @analysis Application programmer error. Ensure a context is current before + * calling functions that require a current context. + */ +#define GLFW_NO_CURRENT_CONTEXT 0x00010002 +/*! @brief One of the arguments to the function was an invalid enum value. + * + * One of the arguments to the function was an invalid enum value, for example + * requesting [GLFW_RED_BITS](@ref window_hints_fb) with @ref + * glfwGetWindowAttrib. + * + * @analysis Application programmer error. Fix the offending call. + */ +#define GLFW_INVALID_ENUM 0x00010003 +/*! @brief One of the arguments to the function was an invalid value. + * + * One of the arguments to the function was an invalid value, for example + * requesting a non-existent OpenGL or OpenGL ES version like 2.7. + * + * Requesting a valid but unavailable OpenGL or OpenGL ES version will instead + * result in a @ref GLFW_VERSION_UNAVAILABLE error. + * + * @analysis Application programmer error. Fix the offending call. + */ +#define GLFW_INVALID_VALUE 0x00010004 +/*! @brief A memory allocation failed. + * + * A memory allocation failed. + * + * @analysis A bug in GLFW or the underlying operating system. Report the bug + * to our [issue tracker](https://github.com/glfw/glfw/issues). + */ +#define GLFW_OUT_OF_MEMORY 0x00010005 +/*! @brief GLFW could not find support for the requested API on the system. + * + * GLFW could not find support for the requested API on the system. + * + * @analysis The installed graphics driver does not support the requested + * API, or does not support it via the chosen context creation backend. + * Below are a few examples. + * + * @par + * Some pre-installed Windows graphics drivers do not support OpenGL. AMD only + * supports OpenGL ES via EGL, while Nvidia and Intel only support it via + * a WGL or GLX extension. OS X does not provide OpenGL ES at all. The Mesa + * EGL, OpenGL and OpenGL ES libraries do not interface with the Nvidia binary + * driver. Older graphics drivers do not support Vulkan. + */ +#define GLFW_API_UNAVAILABLE 0x00010006 +/*! @brief The requested OpenGL or OpenGL ES version is not available. + * + * The requested OpenGL or OpenGL ES version (including any requested context + * or framebuffer hints) is not available on this machine. + * + * @analysis The machine does not support your requirements. If your + * application is sufficiently flexible, downgrade your requirements and try + * again. Otherwise, inform the user that their machine does not match your + * requirements. + * + * @par + * Future invalid OpenGL and OpenGL ES versions, for example OpenGL 4.8 if 5.0 + * comes out before the 4.x series gets that far, also fail with this error and + * not @ref GLFW_INVALID_VALUE, because GLFW cannot know what future versions + * will exist. + */ +#define GLFW_VERSION_UNAVAILABLE 0x00010007 +/*! @brief A platform-specific error occurred that does not match any of the + * more specific categories. + * + * A platform-specific error occurred that does not match any of the more + * specific categories. + * + * @analysis A bug or configuration error in GLFW, the underlying operating + * system or its drivers, or a lack of required resources. Report the issue to + * our [issue tracker](https://github.com/glfw/glfw/issues). + */ +#define GLFW_PLATFORM_ERROR 0x00010008 +/*! @brief The requested format is not supported or available. + * + * If emitted during window creation, the requested pixel format is not + * supported. + * + * If emitted when querying the clipboard, the contents of the clipboard could + * not be converted to the requested format. + * + * @analysis If emitted during window creation, one or more + * [hard constraints](@ref window_hints_hard) did not match any of the + * available pixel formats. If your application is sufficiently flexible, + * downgrade your requirements and try again. Otherwise, inform the user that + * their machine does not match your requirements. + * + * @par + * If emitted when querying the clipboard, ignore the error or report it to + * the user, as appropriate. + */ +#define GLFW_FORMAT_UNAVAILABLE 0x00010009 +/*! @brief The specified window does not have an OpenGL or OpenGL ES context. + * + * A window that does not have an OpenGL or OpenGL ES context was passed to + * a function that requires it to have one. + * + * @analysis Application programmer error. Fix the offending call. + */ +#define GLFW_NO_WINDOW_CONTEXT 0x0001000A +/*! @} */ + +#define GLFW_FOCUSED 0x00020001 +#define GLFW_ICONIFIED 0x00020002 +#define GLFW_RESIZABLE 0x00020003 +#define GLFW_VISIBLE 0x00020004 +#define GLFW_DECORATED 0x00020005 +#define GLFW_AUTO_ICONIFY 0x00020006 +#define GLFW_FLOATING 0x00020007 +#define GLFW_MAXIMIZED 0x00020008 + +#define GLFW_RED_BITS 0x00021001 +#define GLFW_GREEN_BITS 0x00021002 +#define GLFW_BLUE_BITS 0x00021003 +#define GLFW_ALPHA_BITS 0x00021004 +#define GLFW_DEPTH_BITS 0x00021005 +#define GLFW_STENCIL_BITS 0x00021006 +#define GLFW_ACCUM_RED_BITS 0x00021007 +#define GLFW_ACCUM_GREEN_BITS 0x00021008 +#define GLFW_ACCUM_BLUE_BITS 0x00021009 +#define GLFW_ACCUM_ALPHA_BITS 0x0002100A +#define GLFW_AUX_BUFFERS 0x0002100B +#define GLFW_STEREO 0x0002100C +#define GLFW_SAMPLES 0x0002100D +#define GLFW_SRGB_CAPABLE 0x0002100E +#define GLFW_REFRESH_RATE 0x0002100F +#define GLFW_DOUBLEBUFFER 0x00021010 + +#define GLFW_CLIENT_API 0x00022001 +#define GLFW_CONTEXT_VERSION_MAJOR 0x00022002 +#define GLFW_CONTEXT_VERSION_MINOR 0x00022003 +#define GLFW_CONTEXT_REVISION 0x00022004 +#define GLFW_CONTEXT_ROBUSTNESS 0x00022005 +#define GLFW_OPENGL_FORWARD_COMPAT 0x00022006 +#define GLFW_OPENGL_DEBUG_CONTEXT 0x00022007 +#define GLFW_OPENGL_PROFILE 0x00022008 +#define GLFW_CONTEXT_RELEASE_BEHAVIOR 0x00022009 +#define GLFW_CONTEXT_NO_ERROR 0x0002200A + +#define GLFW_NO_API 0 +#define GLFW_OPENGL_API 0x00030001 +#define GLFW_OPENGL_ES_API 0x00030002 + +#define GLFW_NO_ROBUSTNESS 0 +#define GLFW_NO_RESET_NOTIFICATION 0x00031001 +#define GLFW_LOSE_CONTEXT_ON_RESET 0x00031002 + +#define GLFW_OPENGL_ANY_PROFILE 0 +#define GLFW_OPENGL_CORE_PROFILE 0x00032001 +#define GLFW_OPENGL_COMPAT_PROFILE 0x00032002 + +#define GLFW_CURSOR 0x00033001 +#define GLFW_STICKY_KEYS 0x00033002 +#define GLFW_STICKY_MOUSE_BUTTONS 0x00033003 + +#define GLFW_CURSOR_NORMAL 0x00034001 +#define GLFW_CURSOR_HIDDEN 0x00034002 +#define GLFW_CURSOR_DISABLED 0x00034003 + +#define GLFW_ANY_RELEASE_BEHAVIOR 0 +#define GLFW_RELEASE_BEHAVIOR_FLUSH 0x00035001 +#define GLFW_RELEASE_BEHAVIOR_NONE 0x00035002 + +/*! @defgroup shapes Standard cursor shapes + * + * See [standard cursor creation](@ref cursor_standard) for how these are used. + * + * @ingroup input + * @{ */ + +/*! @brief The regular arrow cursor shape. + * + * The regular arrow cursor. + */ +#define GLFW_ARROW_CURSOR 0x00036001 +/*! @brief The text input I-beam cursor shape. + * + * The text input I-beam cursor shape. + */ +#define GLFW_IBEAM_CURSOR 0x00036002 +/*! @brief The crosshair shape. + * + * The crosshair shape. + */ +#define GLFW_CROSSHAIR_CURSOR 0x00036003 +/*! @brief The hand shape. + * + * The hand shape. + */ +#define GLFW_HAND_CURSOR 0x00036004 +/*! @brief The horizontal resize arrow shape. + * + * The horizontal resize arrow shape. + */ +#define GLFW_HRESIZE_CURSOR 0x00036005 +/*! @brief The vertical resize arrow shape. + * + * The vertical resize arrow shape. + */ +#define GLFW_VRESIZE_CURSOR 0x00036006 +/*! @} */ + +#define GLFW_CONNECTED 0x00040001 +#define GLFW_DISCONNECTED 0x00040002 + +#define GLFW_DONT_CARE -1 + + +/************************************************************************* + * GLFW API types + *************************************************************************/ + +/*! @brief Client API function pointer type. + * + * Generic function pointer used for returning client API function pointers + * without forcing a cast from a regular pointer. + * + * @sa @ref context_glext + * @sa glfwGetProcAddress + * + * @since Added in version 3.0. + + * @ingroup context + */ +typedef void (*GLFWglproc)(void); + +/*! @brief Vulkan API function pointer type. + * + * Generic function pointer used for returning Vulkan API function pointers + * without forcing a cast from a regular pointer. + * + * @sa @ref vulkan_proc + * @sa glfwGetInstanceProcAddress + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +typedef void (*GLFWvkproc)(void); + +/*! @brief Opaque monitor object. + * + * Opaque monitor object. + * + * @see @ref monitor_object + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +typedef struct GLFWmonitor GLFWmonitor; + +/*! @brief Opaque window object. + * + * Opaque window object. + * + * @see @ref window_object + * + * @since Added in version 3.0. + * + * @ingroup window + */ +typedef struct GLFWwindow GLFWwindow; + +/*! @brief Opaque cursor object. + * + * Opaque cursor object. + * + * @see @ref cursor_object + * + * @since Added in version 3.1. + * + * @ingroup cursor + */ +typedef struct GLFWcursor GLFWcursor; + +/*! @brief The function signature for error callbacks. + * + * This is the function signature for error callback functions. + * + * @param[in] error An [error code](@ref errors). + * @param[in] description A UTF-8 encoded string describing the error. + * + * @sa @ref error_handling + * @sa glfwSetErrorCallback + * + * @since Added in version 3.0. + * + * @ingroup init + */ +typedef void (* GLFWerrorfun)(int,const char*); + +/*! @brief The function signature for window position callbacks. + * + * This is the function signature for window position callback functions. + * + * @param[in] window The window that was moved. + * @param[in] xpos The new x-coordinate, in screen coordinates, of the + * upper-left corner of the client area of the window. + * @param[in] ypos The new y-coordinate, in screen coordinates, of the + * upper-left corner of the client area of the window. + * + * @sa @ref window_pos + * @sa glfwSetWindowPosCallback + * + * @since Added in version 3.0. + * + * @ingroup window + */ +typedef void (* GLFWwindowposfun)(GLFWwindow*,int,int); + +/*! @brief The function signature for window resize callbacks. + * + * This is the function signature for window size callback functions. + * + * @param[in] window The window that was resized. + * @param[in] width The new width, in screen coordinates, of the window. + * @param[in] height The new height, in screen coordinates, of the window. + * + * @sa @ref window_size + * @sa glfwSetWindowSizeCallback + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +typedef void (* GLFWwindowsizefun)(GLFWwindow*,int,int); + +/*! @brief The function signature for window close callbacks. + * + * This is the function signature for window close callback functions. + * + * @param[in] window The window that the user attempted to close. + * + * @sa @ref window_close + * @sa glfwSetWindowCloseCallback + * + * @since Added in version 2.5. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +typedef void (* GLFWwindowclosefun)(GLFWwindow*); + +/*! @brief The function signature for window content refresh callbacks. + * + * This is the function signature for window refresh callback functions. + * + * @param[in] window The window whose content needs to be refreshed. + * + * @sa @ref window_refresh + * @sa glfwSetWindowRefreshCallback + * + * @since Added in version 2.5. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +typedef void (* GLFWwindowrefreshfun)(GLFWwindow*); + +/*! @brief The function signature for window focus/defocus callbacks. + * + * This is the function signature for window focus callback functions. + * + * @param[in] window The window that gained or lost input focus. + * @param[in] focused `GLFW_TRUE` if the window was given input focus, or + * `GLFW_FALSE` if it lost it. + * + * @sa @ref window_focus + * @sa glfwSetWindowFocusCallback + * + * @since Added in version 3.0. + * + * @ingroup window + */ +typedef void (* GLFWwindowfocusfun)(GLFWwindow*,int); + +/*! @brief The function signature for window iconify/restore callbacks. + * + * This is the function signature for window iconify/restore callback + * functions. + * + * @param[in] window The window that was iconified or restored. + * @param[in] iconified `GLFW_TRUE` if the window was iconified, or + * `GLFW_FALSE` if it was restored. + * + * @sa @ref window_iconify + * @sa glfwSetWindowIconifyCallback + * + * @since Added in version 3.0. + * + * @ingroup window + */ +typedef void (* GLFWwindowiconifyfun)(GLFWwindow*,int); + +/*! @brief The function signature for framebuffer resize callbacks. + * + * This is the function signature for framebuffer resize callback + * functions. + * + * @param[in] window The window whose framebuffer was resized. + * @param[in] width The new width, in pixels, of the framebuffer. + * @param[in] height The new height, in pixels, of the framebuffer. + * + * @sa @ref window_fbsize + * @sa glfwSetFramebufferSizeCallback + * + * @since Added in version 3.0. + * + * @ingroup window + */ +typedef void (* GLFWframebuffersizefun)(GLFWwindow*,int,int); + +/*! @brief The function signature for mouse button callbacks. + * + * This is the function signature for mouse button callback functions. + * + * @param[in] window The window that received the event. + * @param[in] button The [mouse button](@ref buttons) that was pressed or + * released. + * @param[in] action One of `GLFW_PRESS` or `GLFW_RELEASE`. + * @param[in] mods Bit field describing which [modifier keys](@ref mods) were + * held down. + * + * @sa @ref input_mouse_button + * @sa glfwSetMouseButtonCallback + * + * @since Added in version 1.0. + * @glfw3 Added window handle and modifier mask parameters. + * + * @ingroup input + */ +typedef void (* GLFWmousebuttonfun)(GLFWwindow*,int,int,int); + +/*! @brief The function signature for cursor position callbacks. + * + * This is the function signature for cursor position callback functions. + * + * @param[in] window The window that received the event. + * @param[in] xpos The new cursor x-coordinate, relative to the left edge of + * the client area. + * @param[in] ypos The new cursor y-coordinate, relative to the top edge of the + * client area. + * + * @sa @ref cursor_pos + * @sa glfwSetCursorPosCallback + * + * @since Added in version 3.0. Replaces `GLFWmouseposfun`. + * + * @ingroup input + */ +typedef void (* GLFWcursorposfun)(GLFWwindow*,double,double); + +/*! @brief The function signature for cursor enter/leave callbacks. + * + * This is the function signature for cursor enter/leave callback functions. + * + * @param[in] window The window that received the event. + * @param[in] entered `GLFW_TRUE` if the cursor entered the window's client + * area, or `GLFW_FALSE` if it left it. + * + * @sa @ref cursor_enter + * @sa glfwSetCursorEnterCallback + * + * @since Added in version 3.0. + * + * @ingroup input + */ +typedef void (* GLFWcursorenterfun)(GLFWwindow*,int); + +/*! @brief The function signature for scroll callbacks. + * + * This is the function signature for scroll callback functions. + * + * @param[in] window The window that received the event. + * @param[in] xoffset The scroll offset along the x-axis. + * @param[in] yoffset The scroll offset along the y-axis. + * + * @sa @ref scrolling + * @sa glfwSetScrollCallback + * + * @since Added in version 3.0. Replaces `GLFWmousewheelfun`. + * + * @ingroup input + */ +typedef void (* GLFWscrollfun)(GLFWwindow*,double,double); + +/*! @brief The function signature for keyboard key callbacks. + * + * This is the function signature for keyboard key callback functions. + * + * @param[in] window The window that received the event. + * @param[in] key The [keyboard key](@ref keys) that was pressed or released. + * @param[in] scancode The system-specific scancode of the key. + * @param[in] action `GLFW_PRESS`, `GLFW_RELEASE` or `GLFW_REPEAT`. + * @param[in] mods Bit field describing which [modifier keys](@ref mods) were + * held down. + * + * @sa @ref input_key + * @sa glfwSetKeyCallback + * + * @since Added in version 1.0. + * @glfw3 Added window handle, scancode and modifier mask parameters. + * + * @ingroup input + */ +typedef void (* GLFWkeyfun)(GLFWwindow*,int,int,int,int); + +/*! @brief The function signature for Unicode character callbacks. + * + * This is the function signature for Unicode character callback functions. + * + * @param[in] window The window that received the event. + * @param[in] codepoint The Unicode code point of the character. + * + * @sa @ref input_char + * @sa glfwSetCharCallback + * + * @since Added in version 2.4. + * @glfw3 Added window handle parameter. + * + * @ingroup input + */ +typedef void (* GLFWcharfun)(GLFWwindow*,unsigned int); + +/*! @brief The function signature for Unicode character with modifiers + * callbacks. + * + * This is the function signature for Unicode character with modifiers callback + * functions. It is called for each input character, regardless of what + * modifier keys are held down. + * + * @param[in] window The window that received the event. + * @param[in] codepoint The Unicode code point of the character. + * @param[in] mods Bit field describing which [modifier keys](@ref mods) were + * held down. + * + * @sa @ref input_char + * @sa glfwSetCharModsCallback + * + * @since Added in version 3.1. + * + * @ingroup input + */ +typedef void (* GLFWcharmodsfun)(GLFWwindow*,unsigned int,int); + +/*! @brief The function signature for file drop callbacks. + * + * This is the function signature for file drop callbacks. + * + * @param[in] window The window that received the event. + * @param[in] count The number of dropped files. + * @param[in] paths The UTF-8 encoded file and/or directory path names. + * + * @sa @ref path_drop + * @sa glfwSetDropCallback + * + * @since Added in version 3.1. + * + * @ingroup input + */ +typedef void (* GLFWdropfun)(GLFWwindow*,int,const char**); + +/*! @brief The function signature for monitor configuration callbacks. + * + * This is the function signature for monitor configuration callback functions. + * + * @param[in] monitor The monitor that was connected or disconnected. + * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. + * + * @sa @ref monitor_event + * @sa glfwSetMonitorCallback + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +typedef void (* GLFWmonitorfun)(GLFWmonitor*,int); + +/*! @brief The function signature for joystick configuration callbacks. + * + * This is the function signature for joystick configuration callback + * functions. + * + * @param[in] joy The joystick that was connected or disconnected. + * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. + * + * @sa @ref joystick_event + * @sa glfwSetJoystickCallback + * + * @since Added in version 3.2. + * + * @ingroup input + */ +typedef void (* GLFWjoystickfun)(int,int); + +/*! @brief Video mode type. + * + * This describes a single video mode. + * + * @sa @ref monitor_modes + * @sa glfwGetVideoMode glfwGetVideoModes + * + * @since Added in version 1.0. + * @glfw3 Added refresh rate member. + * + * @ingroup monitor + */ +typedef struct GLFWvidmode +{ + /*! The width, in screen coordinates, of the video mode. + */ + int width; + /*! The height, in screen coordinates, of the video mode. + */ + int height; + /*! The bit depth of the red channel of the video mode. + */ + int redBits; + /*! The bit depth of the green channel of the video mode. + */ + int greenBits; + /*! The bit depth of the blue channel of the video mode. + */ + int blueBits; + /*! The refresh rate, in Hz, of the video mode. + */ + int refreshRate; +} GLFWvidmode; + +/*! @brief Gamma ramp. + * + * This describes the gamma ramp for a monitor. + * + * @sa @ref monitor_gamma + * @sa glfwGetGammaRamp glfwSetGammaRamp + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +typedef struct GLFWgammaramp +{ + /*! An array of value describing the response of the red channel. + */ + unsigned short* red; + /*! An array of value describing the response of the green channel. + */ + unsigned short* green; + /*! An array of value describing the response of the blue channel. + */ + unsigned short* blue; + /*! The number of elements in each array. + */ + unsigned int size; +} GLFWgammaramp; + +/*! @brief Image data. + * + * @sa @ref cursor_custom + * + * @since Added in version 2.1. + * @glfw3 Removed format and bytes-per-pixel members. + */ +typedef struct GLFWimage +{ + /*! The width, in pixels, of this image. + */ + int width; + /*! The height, in pixels, of this image. + */ + int height; + /*! The pixel data of this image, arranged left-to-right, top-to-bottom. + */ + unsigned char* pixels; +} GLFWimage; + + +/************************************************************************* + * GLFW API functions + *************************************************************************/ + +/*! @brief Initializes the GLFW library. + * + * This function initializes the GLFW library. Before most GLFW functions can + * be used, GLFW must be initialized, and before an application terminates GLFW + * should be terminated in order to free any resources allocated during or + * after initialization. + * + * If this function fails, it calls @ref glfwTerminate before returning. If it + * succeeds, you should call @ref glfwTerminate before the application exits. + * + * Additional calls to this function after successful initialization but before + * termination will return `GLFW_TRUE` immediately. + * + * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_PLATFORM_ERROR. + * + * @remark @osx This function will change the current directory of the + * application to the `Contents/Resources` subdirectory of the application's + * bundle, if present. This can be disabled with a + * [compile-time option](@ref compile_options_osx). + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref intro_init + * @sa glfwTerminate + * + * @since Added in version 1.0. + * + * @ingroup init + */ +GLFWAPI int glfwInit(void); + +/*! @brief Terminates the GLFW library. + * + * This function destroys all remaining windows and cursors, restores any + * modified gamma ramps and frees any other allocated resources. Once this + * function is called, you must again call @ref glfwInit successfully before + * you will be able to use most GLFW functions. + * + * If GLFW has been successfully initialized, this function should be called + * before the application exits. If initialization fails, there is no need to + * call this function, as it is called by @ref glfwInit before it returns + * failure. + * + * @errors Possible errors include @ref GLFW_PLATFORM_ERROR. + * + * @remark This function may be called before @ref glfwInit. + * + * @warning The contexts of any remaining windows must not be current on any + * other thread when this function is called. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref intro_init + * @sa glfwInit + * + * @since Added in version 1.0. + * + * @ingroup init + */ +GLFWAPI void glfwTerminate(void); + +/*! @brief Retrieves the version of the GLFW library. + * + * This function retrieves the major, minor and revision numbers of the GLFW + * library. It is intended for when you are using GLFW as a shared library and + * want to ensure that you are using the minimum required version. + * + * Any or all of the version arguments may be `NULL`. + * + * @param[out] major Where to store the major version number, or `NULL`. + * @param[out] minor Where to store the minor version number, or `NULL`. + * @param[out] rev Where to store the revision number, or `NULL`. + * + * @errors None. + * + * @remark This function may be called before @ref glfwInit. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref intro_version + * @sa glfwGetVersionString + * + * @since Added in version 1.0. + * + * @ingroup init + */ +GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev); + +/*! @brief Returns a string describing the compile-time configuration. + * + * This function returns the compile-time generated + * [version string](@ref intro_version_string) of the GLFW library binary. It + * describes the version, platform, compiler and any platform-specific + * compile-time options. It should not be confused with the OpenGL or OpenGL + * ES version string, queried with `glGetString`. + * + * __Do not use the version string__ to parse the GLFW library version. The + * @ref glfwGetVersion function provides the version of the running library + * binary in numerical format. + * + * @return The ASCII encoded GLFW version string. + * + * @errors None. + * + * @remark This function may be called before @ref glfwInit. + * + * @pointer_lifetime The returned string is static and compile-time generated. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref intro_version + * @sa glfwGetVersion + * + * @since Added in version 3.0. + * + * @ingroup init + */ +GLFWAPI const char* glfwGetVersionString(void); + +/*! @brief Sets the error callback. + * + * This function sets the error callback, which is called with an error code + * and a human-readable description each time a GLFW error occurs. + * + * The error callback is called on the thread where the error occurred. If you + * are using GLFW from multiple threads, your error callback needs to be + * written accordingly. + * + * Because the description string may have been generated specifically for that + * error, it is not guaranteed to be valid after the callback has returned. If + * you wish to use it after the callback returns, you need to make a copy. + * + * Once set, the error callback remains set even after the library has been + * terminated. + * + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set. + * + * @errors None. + * + * @remark This function may be called before @ref glfwInit. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref error_handling + * + * @since Added in version 3.0. + * + * @ingroup init + */ +GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun); + +/*! @brief Returns the currently connected monitors. + * + * This function returns an array of handles for all currently connected + * monitors. The primary monitor is always first in the returned array. If no + * monitors were found, this function returns `NULL`. + * + * @param[out] count Where to store the number of monitors in the returned + * array. This is set to zero if an error occurred. + * @return An array of monitor handles, or `NULL` if no monitors were found or + * if an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is guaranteed to be valid only until the + * monitor configuration changes or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_monitors + * @sa @ref monitor_event + * @sa glfwGetPrimaryMonitor + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI GLFWmonitor** glfwGetMonitors(int* count); + +/*! @brief Returns the primary monitor. + * + * This function returns the primary monitor. This is usually the monitor + * where elements like the task bar or global menu bar are located. + * + * @return The primary monitor, or `NULL` if no monitors were found or if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @remark The primary monitor is always first in the array returned by @ref + * glfwGetMonitors. + * + * @sa @ref monitor_monitors + * @sa glfwGetMonitors + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void); + +/*! @brief Returns the position of the monitor's viewport on the virtual screen. + * + * This function returns the position, in screen coordinates, of the upper-left + * corner of the specified monitor. + * + * Any or all of the position arguments may be `NULL`. If an error occurs, all + * non-`NULL` position arguments will be set to zero. + * + * @param[in] monitor The monitor to query. + * @param[out] xpos Where to store the monitor x-coordinate, or `NULL`. + * @param[out] ypos Where to store the monitor y-coordinate, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_properties + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI void glfwGetMonitorPos(GLFWmonitor* monitor, int* xpos, int* ypos); + +/*! @brief Returns the physical size of the monitor. + * + * This function returns the size, in millimetres, of the display area of the + * specified monitor. + * + * Some systems do not provide accurate monitor size information, either + * because the monitor + * [EDID](https://en.wikipedia.org/wiki/Extended_display_identification_data) + * data is incorrect or because the driver does not report it accurately. + * + * Any or all of the size arguments may be `NULL`. If an error occurs, all + * non-`NULL` size arguments will be set to zero. + * + * @param[in] monitor The monitor to query. + * @param[out] widthMM Where to store the width, in millimetres, of the + * monitor's display area, or `NULL`. + * @param[out] heightMM Where to store the height, in millimetres, of the + * monitor's display area, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @remark @win32 calculates the returned physical size from the + * current resolution and system DPI instead of querying the monitor EDID data. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_properties + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* widthMM, int* heightMM); + +/*! @brief Returns the name of the specified monitor. + * + * This function returns a human-readable name, encoded as UTF-8, of the + * specified monitor. The name typically reflects the make and model of the + * monitor and is not guaranteed to be unique among the connected monitors. + * + * @param[in] monitor The monitor to query. + * @return The UTF-8 encoded name of the monitor, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified monitor is + * disconnected or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_properties + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* monitor); + +/*! @brief Sets the monitor configuration callback. + * + * This function sets the monitor configuration callback, or removes the + * currently set callback. This is called when a monitor is connected to or + * disconnected from the system. + * + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_event + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun cbfun); + +/*! @brief Returns the available video modes for the specified monitor. + * + * This function returns an array of all video modes supported by the specified + * monitor. The returned array is sorted in ascending order, first by color + * bit depth (the sum of all channel depths) and then by resolution area (the + * product of width and height). + * + * @param[in] monitor The monitor to query. + * @param[out] count Where to store the number of video modes in the returned + * array. This is set to zero if an error occurred. + * @return An array of video modes, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified monitor is + * disconnected, this function is called again for that monitor or the library + * is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_modes + * @sa glfwGetVideoMode + * + * @since Added in version 1.0. + * @glfw3 Changed to return an array of modes for a specific monitor. + * + * @ingroup monitor + */ +GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* monitor, int* count); + +/*! @brief Returns the current mode of the specified monitor. + * + * This function returns the current video mode of the specified monitor. If + * you have created a full screen window for that monitor, the return value + * will depend on whether that window is iconified. + * + * @param[in] monitor The monitor to query. + * @return The current mode of the monitor, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified monitor is + * disconnected or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_modes + * @sa glfwGetVideoModes + * + * @since Added in version 3.0. Replaces `glfwGetDesktopMode`. + * + * @ingroup monitor + */ +GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* monitor); + +/*! @brief Generates a gamma ramp and sets it for the specified monitor. + * + * This function generates a 256-element gamma ramp from the specified exponent + * and then calls @ref glfwSetGammaRamp with it. The value must be a finite + * number greater than zero. + * + * @param[in] monitor The monitor whose gamma ramp to set. + * @param[in] gamma The desired exponent. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_gamma + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI void glfwSetGamma(GLFWmonitor* monitor, float gamma); + +/*! @brief Returns the current gamma ramp for the specified monitor. + * + * This function returns the current gamma ramp of the specified monitor. + * + * @param[in] monitor The monitor to query. + * @return The current gamma ramp, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned structure and its arrays are allocated and + * freed by GLFW. You should not free them yourself. They are valid until the + * specified monitor is disconnected, this function is called again for that + * monitor or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_gamma + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* monitor); + +/*! @brief Sets the current gamma ramp for the specified monitor. + * + * This function sets the current gamma ramp for the specified monitor. The + * original gamma ramp for that monitor is saved by GLFW the first time this + * function is called and is restored by @ref glfwTerminate. + * + * @param[in] monitor The monitor whose gamma ramp to set. + * @param[in] ramp The gamma ramp to use. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark Gamma ramp sizes other than 256 are not supported by all platforms + * or graphics hardware. + * + * @remark @win32 The gamma ramp size must be 256. + * + * @pointer_lifetime The specified gamma ramp is copied before this function + * returns. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_gamma + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI void glfwSetGammaRamp(GLFWmonitor* monitor, const GLFWgammaramp* ramp); + +/*! @brief Resets all window hints to their default values. + * + * This function resets all window hints to their + * [default values](@ref window_hints_values). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_hints + * @sa glfwWindowHint + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwDefaultWindowHints(void); + +/*! @brief Sets the specified window hint to the desired value. + * + * This function sets hints for the next call to @ref glfwCreateWindow. The + * hints, once set, retain their values until changed by a call to @ref + * glfwWindowHint or @ref glfwDefaultWindowHints, or until the library is + * terminated. + * + * This function does not check whether the specified hint values are valid. + * If you set hints to invalid values this will instead be reported by the next + * call to @ref glfwCreateWindow. + * + * @param[in] hint The [window hint](@ref window_hints) to set. + * @param[in] value The new value of the window hint. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_ENUM. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_hints + * @sa glfwDefaultWindowHints + * + * @since Added in version 3.0. Replaces `glfwOpenWindowHint`. + * + * @ingroup window + */ +GLFWAPI void glfwWindowHint(int hint, int value); + +/*! @brief Creates a window and its associated context. + * + * This function creates a window and its associated OpenGL or OpenGL ES + * context. Most of the options controlling how the window and its context + * should be created are specified with [window hints](@ref window_hints). + * + * Successful creation does not change which context is current. Before you + * can use the newly created context, you need to + * [make it current](@ref context_current). For information about the `share` + * parameter, see @ref context_sharing. + * + * The created window, framebuffer and context may differ from what you + * requested, as not all parameters and hints are + * [hard constraints](@ref window_hints_hard). This includes the size of the + * window, especially for full screen windows. To query the actual attributes + * of the created window, framebuffer and context, see @ref + * glfwGetWindowAttrib, @ref glfwGetWindowSize and @ref glfwGetFramebufferSize. + * + * To create a full screen window, you need to specify the monitor the window + * will cover. If no monitor is specified, the window will be windowed mode. + * Unless you have a way for the user to choose a specific monitor, it is + * recommended that you pick the primary monitor. For more information on how + * to query connected monitors, see @ref monitor_monitors. + * + * For full screen windows, the specified size becomes the resolution of the + * window's _desired video mode_. As long as a full screen window is not + * iconified, the supported video mode most closely matching the desired video + * mode is set for the specified monitor. For more information about full + * screen windows, including the creation of so called _windowed full screen_ + * or _borderless full screen_ windows, see @ref window_windowed_full_screen. + * + * By default, newly created windows use the placement recommended by the + * window system. To create the window at a specific position, make it + * initially invisible using the [GLFW_VISIBLE](@ref window_hints_wnd) window + * hint, set its [position](@ref window_pos) and then [show](@ref window_hide) + * it. + * + * As long as at least one full screen window is not iconified, the screensaver + * is prohibited from starting. + * + * Window systems put limits on window sizes. Very large or very small window + * dimensions may be overridden by the window system on creation. Check the + * actual [size](@ref window_size) after creation. + * + * The [swap interval](@ref buffer_swap) is not set during window creation and + * the initial value may vary depending on driver settings and defaults. + * + * @param[in] width The desired width, in screen coordinates, of the window. + * This must be greater than zero. + * @param[in] height The desired height, in screen coordinates, of the window. + * This must be greater than zero. + * @param[in] title The initial, UTF-8 encoded window title. + * @param[in] monitor The monitor to use for full screen mode, or `NULL` for + * windowed mode. + * @param[in] share The window whose context to share resources with, or `NULL` + * to not share resources. + * @return The handle of the created window, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM, @ref GLFW_INVALID_VALUE, @ref GLFW_API_UNAVAILABLE, @ref + * GLFW_VERSION_UNAVAILABLE, @ref GLFW_FORMAT_UNAVAILABLE and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @win32 Window creation will fail if the Microsoft GDI software + * OpenGL implementation is the only one available. + * + * @remark @win32 If the executable has an icon resource named `GLFW_ICON,` + * it will be set as the icon for the window. If no such icon is present, the + * `IDI_WINLOGO` icon will be used instead. + * + * @remark @win32 The context to share resources with must not be current on + * any other thread. + * + * @remark @osx The GLFW window has no icon, as it is not a document + * window, but the dock icon will be the same as the application bundle's icon. + * For more information on bundles, see the + * [Bundle Programming Guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/) + * in the Mac Developer Library. + * + * @remark @osx The first time a window is created the menu bar is populated + * with common commands like Hide, Quit and About. The About entry opens + * a minimal about dialog with information from the application's bundle. The + * menu bar can be disabled with a + * [compile-time option](@ref compile_options_osx). + * + * @remark @osx On OS X 10.10 and later the window frame will not be rendered + * at full resolution on Retina displays unless the `NSHighResolutionCapable` + * key is enabled in the application bundle's `Info.plist`. For more + * information, see + * [High Resolution Guidelines for OS X](https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html) + * in the Mac Developer Library. The GLFW test and example programs use + * a custom `Info.plist` template for this, which can be found as + * `CMake/MacOSXBundleInfo.plist.in` in the source tree. + * + * @remark @x11 There is no mechanism for setting the window icon yet. + * + * @remark @x11 Some window managers will not respect the placement of + * initially hidden windows. + * + * @remark @x11 Due to the asynchronous nature of X11, it may take a moment for + * a window to reach its requested state. This means you may not be able to + * query the final size, position or other attributes directly after window + * creation. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_creation + * @sa glfwDestroyWindow + * + * @since Added in version 3.0. Replaces `glfwOpenWindow`. + * + * @ingroup window + */ +GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share); + +/*! @brief Destroys the specified window and its context. + * + * This function destroys the specified window and its context. On calling + * this function, no further callbacks will be called for that window. + * + * If the context of the specified window is current on the main thread, it is + * detached before being destroyed. + * + * @param[in] window The window to destroy. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @note The context of the specified window must not be current on any other + * thread when this function is called. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_creation + * @sa glfwCreateWindow + * + * @since Added in version 3.0. Replaces `glfwCloseWindow`. + * + * @ingroup window + */ +GLFWAPI void glfwDestroyWindow(GLFWwindow* window); + +/*! @brief Checks the close flag of the specified window. + * + * This function returns the value of the close flag of the specified window. + * + * @param[in] window The window to query. + * @return The value of the close flag. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref window_close + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI int glfwWindowShouldClose(GLFWwindow* window); + +/*! @brief Sets the close flag of the specified window. + * + * This function sets the value of the close flag of the specified window. + * This can be used to override the user's attempt to close the window, or + * to signal that it should be closed. + * + * @param[in] window The window whose flag to change. + * @param[in] value The new value. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref window_close + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* window, int value); + +/*! @brief Sets the title of the specified window. + * + * This function sets the window title, encoded as UTF-8, of the specified + * window. + * + * @param[in] window The window whose title to change. + * @param[in] title The UTF-8 encoded window title. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @osx The window title will not be updated until the next time you + * process events. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_title + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowTitle(GLFWwindow* window, const char* title); + +/*! @brief Sets the icon for the specified window. + * + * This function sets the icon of the specified window. If passed an array of + * candidate images, those of or closest to the sizes desired by the system are + * selected. If no images are specified, the window reverts to its default + * icon. + * + * The desired image sizes varies depending on platform and system settings. + * The selected images will be rescaled as needed. Good sizes include 16x16, + * 32x32 and 48x48. + * + * @param[in] window The window whose icon to set. + * @param[in] count The number of images in the specified array, or zero to + * revert to the default window icon. + * @param[in] images The images to create the icon from. This is ignored if + * count is zero. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The specified image data is copied before this function + * returns. + * + * @remark @osx The GLFW window has no icon, as it is not a document + * window, but the dock icon will be the same as the application bundle's icon. + * For more information on bundles, see the + * [Bundle Programming Guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/) + * in the Mac Developer Library. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_icon + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowIcon(GLFWwindow* window, int count, const GLFWimage* images); + +/*! @brief Retrieves the position of the client area of the specified window. + * + * This function retrieves the position, in screen coordinates, of the + * upper-left corner of the client area of the specified window. + * + * Any or all of the position arguments may be `NULL`. If an error occurs, all + * non-`NULL` position arguments will be set to zero. + * + * @param[in] window The window to query. + * @param[out] xpos Where to store the x-coordinate of the upper-left corner of + * the client area, or `NULL`. + * @param[out] ypos Where to store the y-coordinate of the upper-left corner of + * the client area, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_pos + * @sa glfwSetWindowPos + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwGetWindowPos(GLFWwindow* window, int* xpos, int* ypos); + +/*! @brief Sets the position of the client area of the specified window. + * + * This function sets the position, in screen coordinates, of the upper-left + * corner of the client area of the specified windowed mode window. If the + * window is a full screen window, this function does nothing. + * + * __Do not use this function__ to move an already visible window unless you + * have very good reasons for doing so, as it will confuse and annoy the user. + * + * The window manager may put limits on what positions are allowed. GLFW + * cannot and should not override these limits. + * + * @param[in] window The window to query. + * @param[in] xpos The x-coordinate of the upper-left corner of the client area. + * @param[in] ypos The y-coordinate of the upper-left corner of the client area. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_pos + * @sa glfwGetWindowPos + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowPos(GLFWwindow* window, int xpos, int ypos); + +/*! @brief Retrieves the size of the client area of the specified window. + * + * This function retrieves the size, in screen coordinates, of the client area + * of the specified window. If you wish to retrieve the size of the + * framebuffer of the window in pixels, see @ref glfwGetFramebufferSize. + * + * Any or all of the size arguments may be `NULL`. If an error occurs, all + * non-`NULL` size arguments will be set to zero. + * + * @param[in] window The window whose size to retrieve. + * @param[out] width Where to store the width, in screen coordinates, of the + * client area, or `NULL`. + * @param[out] height Where to store the height, in screen coordinates, of the + * client area, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_size + * @sa glfwSetWindowSize + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwGetWindowSize(GLFWwindow* window, int* width, int* height); + +/*! @brief Sets the size limits of the specified window. + * + * This function sets the size limits of the client area of the specified + * window. If the window is full screen, the size limits only take effect if + * once it is made windowed. If the window is not resizable, this function + * does nothing. + * + * The size limits are applied immediately to a windowed mode window and may + * cause it to be resized. + * + * @param[in] window The window to set limits for. + * @param[in] minwidth The minimum width, in screen coordinates, of the client + * area, or `GLFW_DONT_CARE`. + * @param[in] minheight The minimum height, in screen coordinates, of the + * client area, or `GLFW_DONT_CARE`. + * @param[in] maxwidth The maximum width, in screen coordinates, of the client + * area, or `GLFW_DONT_CARE`. + * @param[in] maxheight The maximum height, in screen coordinates, of the + * client area, or `GLFW_DONT_CARE`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark If you set size limits and an aspect ratio that conflict, the + * results are undefined. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_sizelimits + * @sa glfwSetWindowAspectRatio + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowSizeLimits(GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); + +/*! @brief Sets the aspect ratio of the specified window. + * + * This function sets the required aspect ratio of the client area of the + * specified window. If the window is full screen, the aspect ratio only takes + * effect once it is made windowed. If the window is not resizable, this + * function does nothing. + * + * The aspect ratio is specified as a numerator and a denominator and both + * values must be greater than zero. For example, the common 16:9 aspect ratio + * is specified as 16 and 9, respectively. + * + * If the numerator and denominator is set to `GLFW_DONT_CARE` then the aspect + * ratio limit is disabled. + * + * The aspect ratio is applied immediately to a windowed mode window and may + * cause it to be resized. + * + * @param[in] window The window to set limits for. + * @param[in] numer The numerator of the desired aspect ratio, or + * `GLFW_DONT_CARE`. + * @param[in] denom The denominator of the desired aspect ratio, or + * `GLFW_DONT_CARE`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. + * + * @remark If you set size limits and an aspect ratio that conflict, the + * results are undefined. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_sizelimits + * @sa glfwSetWindowSizeLimits + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowAspectRatio(GLFWwindow* window, int numer, int denom); + +/*! @brief Sets the size of the client area of the specified window. + * + * This function sets the size, in screen coordinates, of the client area of + * the specified window. + * + * For full screen windows, this function updates the resolution of its desired + * video mode and switches to the video mode closest to it, without affecting + * the window's context. As the context is unaffected, the bit depths of the + * framebuffer remain unchanged. + * + * If you wish to update the refresh rate of the desired video mode in addition + * to its resolution, see @ref glfwSetWindowMonitor. + * + * The window manager may put limits on what sizes are allowed. GLFW cannot + * and should not override these limits. + * + * @param[in] window The window to resize. + * @param[in] width The desired width, in screen coordinates, of the window + * client area. + * @param[in] height The desired height, in screen coordinates, of the window + * client area. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_size + * @sa glfwGetWindowSize + * @sa glfwSetWindowMonitor + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowSize(GLFWwindow* window, int width, int height); + +/*! @brief Retrieves the size of the framebuffer of the specified window. + * + * This function retrieves the size, in pixels, of the framebuffer of the + * specified window. If you wish to retrieve the size of the window in screen + * coordinates, see @ref glfwGetWindowSize. + * + * Any or all of the size arguments may be `NULL`. If an error occurs, all + * non-`NULL` size arguments will be set to zero. + * + * @param[in] window The window whose framebuffer to query. + * @param[out] width Where to store the width, in pixels, of the framebuffer, + * or `NULL`. + * @param[out] height Where to store the height, in pixels, of the framebuffer, + * or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_fbsize + * @sa glfwSetFramebufferSizeCallback + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwGetFramebufferSize(GLFWwindow* window, int* width, int* height); + +/*! @brief Retrieves the size of the frame of the window. + * + * This function retrieves the size, in screen coordinates, of each edge of the + * frame of the specified window. This size includes the title bar, if the + * window has one. The size of the frame may vary depending on the + * [window-related hints](@ref window_hints_wnd) used to create it. + * + * Because this function retrieves the size of each window frame edge and not + * the offset along a particular coordinate axis, the retrieved values will + * always be zero or positive. + * + * Any or all of the size arguments may be `NULL`. If an error occurs, all + * non-`NULL` size arguments will be set to zero. + * + * @param[in] window The window whose frame size to query. + * @param[out] left Where to store the size, in screen coordinates, of the left + * edge of the window frame, or `NULL`. + * @param[out] top Where to store the size, in screen coordinates, of the top + * edge of the window frame, or `NULL`. + * @param[out] right Where to store the size, in screen coordinates, of the + * right edge of the window frame, or `NULL`. + * @param[out] bottom Where to store the size, in screen coordinates, of the + * bottom edge of the window frame, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_size + * + * @since Added in version 3.1. + * + * @ingroup window + */ +GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* window, int* left, int* top, int* right, int* bottom); + +/*! @brief Iconifies the specified window. + * + * This function iconifies (minimizes) the specified window if it was + * previously restored. If the window is already iconified, this function does + * nothing. + * + * If the specified window is a full screen window, the original monitor + * resolution is restored until the window is restored. + * + * @param[in] window The window to iconify. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_iconify + * @sa glfwRestoreWindow + * @sa glfwMaximizeWindow + * + * @since Added in version 2.1. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwIconifyWindow(GLFWwindow* window); + +/*! @brief Restores the specified window. + * + * This function restores the specified window if it was previously iconified + * (minimized) or maximized. If the window is already restored, this function + * does nothing. + * + * If the specified window is a full screen window, the resolution chosen for + * the window is restored on the selected monitor. + * + * @param[in] window The window to restore. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_iconify + * @sa glfwIconifyWindow + * @sa glfwMaximizeWindow + * + * @since Added in version 2.1. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwRestoreWindow(GLFWwindow* window); + +/*! @brief Maximizes the specified window. + * + * This function maximizes the specified window if it was previously not + * maximized. If the window is already maximized, this function does nothing. + * + * If the specified window is a full screen window, this function does nothing. + * + * @param[in] window The window to maximize. + * + * @par Thread Safety + * This function may only be called from the main thread. + * + * @sa @ref window_iconify + * @sa glfwIconifyWindow + * @sa glfwRestoreWindow + * + * @since Added in GLFW 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwMaximizeWindow(GLFWwindow* window); + +/*! @brief Makes the specified window visible. + * + * This function makes the specified window visible if it was previously + * hidden. If the window is already visible or is in full screen mode, this + * function does nothing. + * + * @param[in] window The window to make visible. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_hide + * @sa glfwHideWindow + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwShowWindow(GLFWwindow* window); + +/*! @brief Hides the specified window. + * + * This function hides the specified window if it was previously visible. If + * the window is already hidden or is in full screen mode, this function does + * nothing. + * + * @param[in] window The window to hide. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_hide + * @sa glfwShowWindow + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwHideWindow(GLFWwindow* window); + +/*! @brief Brings the specified window to front and sets input focus. + * + * This function brings the specified window to front and sets input focus. + * The window should already be visible and not iconified. + * + * By default, both windowed and full screen mode windows are focused when + * initially created. Set the [GLFW_FOCUSED](@ref window_hints_wnd) to disable + * this behavior. + * + * __Do not use this function__ to steal focus from other applications unless + * you are certain that is what the user wants. Focus stealing can be + * extremely disruptive. + * + * @param[in] window The window to give input focus. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_focus + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwFocusWindow(GLFWwindow* window); + +/*! @brief Returns the monitor that the window uses for full screen mode. + * + * This function returns the handle of the monitor that the specified window is + * in full screen on. + * + * @param[in] window The window to query. + * @return The monitor, or `NULL` if the window is in windowed mode or an error + * occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_monitor + * @sa glfwSetWindowMonitor + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* window); + +/*! @brief Sets the mode, monitor, video mode and placement of a window. + * + * This function sets the monitor that the window uses for full screen mode or, + * if the monitor is `NULL`, makes it windowed mode. + * + * When setting a monitor, this function updates the width, height and refresh + * rate of the desired video mode and switches to the video mode closest to it. + * The window position is ignored when setting a monitor. + * + * When the monitor is `NULL`, the position, width and height are used to + * place the window client area. The refresh rate is ignored when no monitor + * is specified. + * + * If you only wish to update the resolution of a full screen window or the + * size of a windowed mode window, see @ref glfwSetWindowSize. + * + * When a window transitions from full screen to windowed mode, this function + * restores any previous window settings such as whether it is decorated, + * floating, resizable, has size or aspect ratio limits, etc.. + * + * @param[in] window The window whose monitor, size or video mode to set. + * @param[in] monitor The desired monitor, or `NULL` to set windowed mode. + * @param[in] xpos The desired x-coordinate of the upper-left corner of the + * client area. + * @param[in] ypos The desired y-coordinate of the upper-left corner of the + * client area. + * @param[in] width The desired with, in screen coordinates, of the client area + * or video mode. + * @param[in] height The desired height, in screen coordinates, of the client + * area or video mode. + * @param[in] refreshRate The desired refresh rate, in Hz, of the video mode. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_monitor + * @sa @ref window_full_screen + * @sa glfwGetWindowMonitor + * @sa glfwSetWindowSize + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowMonitor(GLFWwindow* window, GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); + +/*! @brief Returns an attribute of the specified window. + * + * This function returns the value of an attribute of the specified window or + * its OpenGL or OpenGL ES context. + * + * @param[in] window The window to query. + * @param[in] attrib The [window attribute](@ref window_attribs) whose value to + * return. + * @return The value of the attribute, or zero if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @remark Framebuffer related hints are not window attributes. See @ref + * window_attribs_fb for more information. + * + * @remark Zero is a valid value for many window and context related + * attributes so you cannot use a return value of zero as an indication of + * errors. However, this function should not fail as long as it is passed + * valid arguments and the library has been [initialized](@ref intro_init). + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_attribs + * + * @since Added in version 3.0. Replaces `glfwGetWindowParam` and + * `glfwGetGLVersion`. + * + * @ingroup window + */ +GLFWAPI int glfwGetWindowAttrib(GLFWwindow* window, int attrib); + +/*! @brief Sets the user pointer of the specified window. + * + * This function sets the user-defined pointer of the specified window. The + * current value is retained until the window is destroyed. The initial value + * is `NULL`. + * + * @param[in] window The window whose pointer to set. + * @param[in] pointer The new value. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref window_userptr + * @sa glfwGetWindowUserPointer + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowUserPointer(GLFWwindow* window, void* pointer); + +/*! @brief Returns the user pointer of the specified window. + * + * This function returns the current value of the user-defined pointer of the + * specified window. The initial value is `NULL`. + * + * @param[in] window The window whose pointer to return. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref window_userptr + * @sa glfwSetWindowUserPointer + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* window); + +/*! @brief Sets the position callback for the specified window. + * + * This function sets the position callback of the specified window, which is + * called when the window is moved. The callback is provided with the screen + * position of the upper-left corner of the client area of the window. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_pos + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* window, GLFWwindowposfun cbfun); + +/*! @brief Sets the size callback for the specified window. + * + * This function sets the size callback of the specified window, which is + * called when the window is resized. The callback is provided with the size, + * in screen coordinates, of the client area of the window. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_size + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup window + */ +GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* window, GLFWwindowsizefun cbfun); + +/*! @brief Sets the close callback for the specified window. + * + * This function sets the close callback of the specified window, which is + * called when the user attempts to close the window, for example by clicking + * the close widget in the title bar. + * + * The close flag is set before this callback is called, but you can modify it + * at any time with @ref glfwSetWindowShouldClose. + * + * The close callback is not triggered by @ref glfwDestroyWindow. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @remark @osx Selecting Quit from the application menu will trigger the close + * callback for all windows. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_close + * + * @since Added in version 2.5. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup window + */ +GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwindowclosefun cbfun); + +/*! @brief Sets the refresh callback for the specified window. + * + * This function sets the refresh callback of the specified window, which is + * called when the client area of the window needs to be redrawn, for example + * if the window has been exposed after having been covered by another window. + * + * On compositing window systems such as Aero, Compiz or Aqua, where the window + * contents are saved off-screen, this callback may be called only very + * infrequently or never at all. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_refresh + * + * @since Added in version 2.5. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup window + */ +GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GLFWwindowrefreshfun cbfun); + +/*! @brief Sets the focus callback for the specified window. + * + * This function sets the focus callback of the specified window, which is + * called when the window gains or loses input focus. + * + * After the focus callback is called for a window that lost input focus, + * synthetic key and mouse button release events will be generated for all such + * that had been pressed. For more information, see @ref glfwSetKeyCallback + * and @ref glfwSetMouseButtonCallback. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_focus + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwindowfocusfun cbfun); + +/*! @brief Sets the iconify callback for the specified window. + * + * This function sets the iconification callback of the specified window, which + * is called when the window is iconified or restored. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_iconify + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* window, GLFWwindowiconifyfun cbfun); + +/*! @brief Sets the framebuffer resize callback for the specified window. + * + * This function sets the framebuffer resize callback of the specified window, + * which is called when the framebuffer of the specified window is resized. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_fbsize + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* window, GLFWframebuffersizefun cbfun); + +/*! @brief Processes all pending events. + * + * This function processes only those events that are already in the event + * queue and then returns immediately. Processing events will cause the window + * and input callbacks associated with those events to be called. + * + * On some platforms, a window move, resize or menu operation will cause event + * processing to block. This is due to how event processing is designed on + * those platforms. You can use the + * [window refresh callback](@ref window_refresh) to redraw the contents of + * your window when necessary during such operations. + * + * On some platforms, certain events are sent directly to the application + * without going through the event queue, causing callbacks to be called + * outside of a call to one of the event processing functions. + * + * Event processing is not required for joystick input to work. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref events + * @sa glfwWaitEvents + * @sa glfwWaitEventsTimeout + * + * @since Added in version 1.0. + * + * @ingroup window + */ +GLFWAPI void glfwPollEvents(void); + +/*! @brief Waits until events are queued and processes them. + * + * This function puts the calling thread to sleep until at least one event is + * available in the event queue. Once one or more events are available, + * it behaves exactly like @ref glfwPollEvents, i.e. the events in the queue + * are processed and the function then returns immediately. Processing events + * will cause the window and input callbacks associated with those events to be + * called. + * + * Since not all events are associated with callbacks, this function may return + * without a callback having been called even if you are monitoring all + * callbacks. + * + * On some platforms, a window move, resize or menu operation will cause event + * processing to block. This is due to how event processing is designed on + * those platforms. You can use the + * [window refresh callback](@ref window_refresh) to redraw the contents of + * your window when necessary during such operations. + * + * On some platforms, certain callbacks may be called outside of a call to one + * of the event processing functions. + * + * If no windows exist, this function returns immediately. For synchronization + * of threads in applications that do not create windows, use your threading + * library of choice. + * + * Event processing is not required for joystick input to work. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref events + * @sa glfwPollEvents + * @sa glfwWaitEventsTimeout + * + * @since Added in version 2.5. + * + * @ingroup window + */ +GLFWAPI void glfwWaitEvents(void); + +/*! @brief Waits with timeout until events are queued and processes them. + * + * This function puts the calling thread to sleep until at least one event is + * available in the event queue, or until the specified timeout is reached. If + * one or more events are available, it behaves exactly like @ref + * glfwPollEvents, i.e. the events in the queue are processed and the function + * then returns immediately. Processing events will cause the window and input + * callbacks associated with those events to be called. + * + * The timeout value must be a positive finite number. + * + * Since not all events are associated with callbacks, this function may return + * without a callback having been called even if you are monitoring all + * callbacks. + * + * On some platforms, a window move, resize or menu operation will cause event + * processing to block. This is due to how event processing is designed on + * those platforms. You can use the + * [window refresh callback](@ref window_refresh) to redraw the contents of + * your window when necessary during such operations. + * + * On some platforms, certain callbacks may be called outside of a call to one + * of the event processing functions. + * + * If no windows exist, this function returns immediately. For synchronization + * of threads in applications that do not create windows, use your threading + * library of choice. + * + * Event processing is not required for joystick input to work. + * + * @param[in] timeout The maximum amount of time, in seconds, to wait. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref events + * @sa glfwPollEvents + * @sa glfwWaitEvents + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwWaitEventsTimeout(double timeout); + +/*! @brief Posts an empty event to the event queue. + * + * This function posts an empty event from the current thread to the event + * queue, causing @ref glfwWaitEvents to return. + * + * If no windows exist, this function returns immediately. For synchronization + * of threads in applications that do not create windows, use your threading + * library of choice. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref events + * @sa glfwWaitEvents + * + * @since Added in version 3.1. + * + * @ingroup window + */ +GLFWAPI void glfwPostEmptyEvent(void); + +/*! @brief Returns the value of an input option for the specified window. + * + * This function returns the value of an input option for the specified window. + * The mode must be one of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or + * `GLFW_STICKY_MOUSE_BUTTONS`. + * + * @param[in] window The window to query. + * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or + * `GLFW_STICKY_MOUSE_BUTTONS`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_ENUM. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa glfwSetInputMode + * + * @since Added in version 3.0. + * + * @ingroup input + */ +GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode); + +/*! @brief Sets an input option for the specified window. + * + * This function sets an input mode option for the specified window. The mode + * must be one of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or + * `GLFW_STICKY_MOUSE_BUTTONS`. + * + * If the mode is `GLFW_CURSOR`, the value must be one of the following cursor + * modes: + * - `GLFW_CURSOR_NORMAL` makes the cursor visible and behaving normally. + * - `GLFW_CURSOR_HIDDEN` makes the cursor invisible when it is over the client + * area of the window but does not restrict the cursor from leaving. + * - `GLFW_CURSOR_DISABLED` hides and grabs the cursor, providing virtual + * and unlimited cursor movement. This is useful for implementing for + * example 3D camera controls. + * + * If the mode is `GLFW_STICKY_KEYS`, the value must be either `GLFW_TRUE` to + * enable sticky keys, or `GLFW_FALSE` to disable it. If sticky keys are + * enabled, a key press will ensure that @ref glfwGetKey returns `GLFW_PRESS` + * the next time it is called even if the key had been released before the + * call. This is useful when you are only interested in whether keys have been + * pressed but not when or in which order. + * + * If the mode is `GLFW_STICKY_MOUSE_BUTTONS`, the value must be either + * `GLFW_TRUE` to enable sticky mouse buttons, or `GLFW_FALSE` to disable it. + * If sticky mouse buttons are enabled, a mouse button press will ensure that + * @ref glfwGetMouseButton returns `GLFW_PRESS` the next time it is called even + * if the mouse button had been released before the call. This is useful when + * you are only interested in whether mouse buttons have been pressed but not + * when or in which order. + * + * @param[in] window The window whose input mode to set. + * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or + * `GLFW_STICKY_MOUSE_BUTTONS`. + * @param[in] value The new value of the specified input mode. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa glfwGetInputMode + * + * @since Added in version 3.0. Replaces `glfwEnable` and `glfwDisable`. + * + * @ingroup input + */ +GLFWAPI void glfwSetInputMode(GLFWwindow* window, int mode, int value); + +/*! @brief Returns the localized name of the specified printable key. + * + * This function returns the localized name of the specified printable key. + * This is intended for displaying key bindings to the user. + * + * If the key is `GLFW_KEY_UNKNOWN`, the scancode is used instead, otherwise + * the scancode is ignored. If a non-printable key or (if the key is + * `GLFW_KEY_UNKNOWN`) a scancode that maps to a non-printable key is + * specified, this function returns `NULL`. + * + * This behavior allows you to pass in the arguments passed to the + * [key callback](@ref input_key) without modification. + * + * The printable keys are: + * - `GLFW_KEY_APOSTROPHE` + * - `GLFW_KEY_COMMA` + * - `GLFW_KEY_MINUS` + * - `GLFW_KEY_PERIOD` + * - `GLFW_KEY_SLASH` + * - `GLFW_KEY_SEMICOLON` + * - `GLFW_KEY_EQUAL` + * - `GLFW_KEY_LEFT_BRACKET` + * - `GLFW_KEY_RIGHT_BRACKET` + * - `GLFW_KEY_BACKSLASH` + * - `GLFW_KEY_WORLD_1` + * - `GLFW_KEY_WORLD_2` + * - `GLFW_KEY_0` to `GLFW_KEY_9` + * - `GLFW_KEY_A` to `GLFW_KEY_Z` + * - `GLFW_KEY_KP_0` to `GLFW_KEY_KP_9` + * - `GLFW_KEY_KP_DECIMAL` + * - `GLFW_KEY_KP_DIVIDE` + * - `GLFW_KEY_KP_MULTIPLY` + * - `GLFW_KEY_KP_SUBTRACT` + * - `GLFW_KEY_KP_ADD` + * - `GLFW_KEY_KP_EQUAL` + * + * @param[in] key The key to query, or `GLFW_KEY_UNKNOWN`. + * @param[in] scancode The scancode of the key to query. + * @return The localized name of the key, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the next call to @ref + * glfwGetKeyName, or until the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_key_name + * + * @since Added in version 3.2. + * + * @ingroup input + */ +GLFWAPI const char* glfwGetKeyName(int key, int scancode); + +/*! @brief Returns the last reported state of a keyboard key for the specified + * window. + * + * This function returns the last state reported for the specified key to the + * specified window. The returned state is one of `GLFW_PRESS` or + * `GLFW_RELEASE`. The higher-level action `GLFW_REPEAT` is only reported to + * the key callback. + * + * If the `GLFW_STICKY_KEYS` input mode is enabled, this function returns + * `GLFW_PRESS` the first time you call it for a key that was pressed, even if + * that key has already been released. + * + * The key functions deal with physical keys, with [key tokens](@ref keys) + * named after their use on the standard US keyboard layout. If you want to + * input text, use the Unicode character callback instead. + * + * The [modifier key bit masks](@ref mods) are not key tokens and cannot be + * used with this function. + * + * __Do not use this function__ to implement [text input](@ref input_char). + * + * @param[in] window The desired window. + * @param[in] key The desired [keyboard key](@ref keys). `GLFW_KEY_UNKNOWN` is + * not a valid key for this function. + * @return One of `GLFW_PRESS` or `GLFW_RELEASE`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_ENUM. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_key + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup input + */ +GLFWAPI int glfwGetKey(GLFWwindow* window, int key); + +/*! @brief Returns the last reported state of a mouse button for the specified + * window. + * + * This function returns the last state reported for the specified mouse button + * to the specified window. The returned state is one of `GLFW_PRESS` or + * `GLFW_RELEASE`. + * + * If the `GLFW_STICKY_MOUSE_BUTTONS` input mode is enabled, this function + * `GLFW_PRESS` the first time you call it for a mouse button that was pressed, + * even if that mouse button has already been released. + * + * @param[in] window The desired window. + * @param[in] button The desired [mouse button](@ref buttons). + * @return One of `GLFW_PRESS` or `GLFW_RELEASE`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_ENUM. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_mouse_button + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup input + */ +GLFWAPI int glfwGetMouseButton(GLFWwindow* window, int button); + +/*! @brief Retrieves the position of the cursor relative to the client area of + * the window. + * + * This function returns the position of the cursor, in screen coordinates, + * relative to the upper-left corner of the client area of the specified + * window. + * + * If the cursor is disabled (with `GLFW_CURSOR_DISABLED`) then the cursor + * position is unbounded and limited only by the minimum and maximum values of + * a `double`. + * + * The coordinate can be converted to their integer equivalents with the + * `floor` function. Casting directly to an integer type works for positive + * coordinates, but fails for negative ones. + * + * Any or all of the position arguments may be `NULL`. If an error occurs, all + * non-`NULL` position arguments will be set to zero. + * + * @param[in] window The desired window. + * @param[out] xpos Where to store the cursor x-coordinate, relative to the + * left edge of the client area, or `NULL`. + * @param[out] ypos Where to store the cursor y-coordinate, relative to the to + * top edge of the client area, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_pos + * @sa glfwSetCursorPos + * + * @since Added in version 3.0. Replaces `glfwGetMousePos`. + * + * @ingroup input + */ +GLFWAPI void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos); + +/*! @brief Sets the position of the cursor, relative to the client area of the + * window. + * + * This function sets the position, in screen coordinates, of the cursor + * relative to the upper-left corner of the client area of the specified + * window. The window must have input focus. If the window does not have + * input focus when this function is called, it fails silently. + * + * __Do not use this function__ to implement things like camera controls. GLFW + * already provides the `GLFW_CURSOR_DISABLED` cursor mode that hides the + * cursor, transparently re-centers it and provides unconstrained cursor + * motion. See @ref glfwSetInputMode for more information. + * + * If the cursor mode is `GLFW_CURSOR_DISABLED` then the cursor position is + * unconstrained and limited only by the minimum and maximum values of + * a `double`. + * + * @param[in] window The desired window. + * @param[in] xpos The desired x-coordinate, relative to the left edge of the + * client area. + * @param[in] ypos The desired y-coordinate, relative to the top edge of the + * client area. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @x11 Due to the asynchronous nature of X11, it may take a moment for + * the window focus event to arrive. This means you may not be able to set the + * cursor position directly after window creation. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_pos + * @sa glfwGetCursorPos + * + * @since Added in version 3.0. Replaces `glfwSetMousePos`. + * + * @ingroup input + */ +GLFWAPI void glfwSetCursorPos(GLFWwindow* window, double xpos, double ypos); + +/*! @brief Creates a custom cursor. + * + * Creates a new custom cursor image that can be set for a window with @ref + * glfwSetCursor. The cursor can be destroyed with @ref glfwDestroyCursor. + * Any remaining cursors are destroyed by @ref glfwTerminate. + * + * The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight + * bits per channel. They are arranged canonically as packed sequential rows, + * starting from the top-left corner. + * + * The cursor hotspot is specified in pixels, relative to the upper-left corner + * of the cursor image. Like all other coordinate systems in GLFW, the X-axis + * points to the right and the Y-axis points down. + * + * @param[in] image The desired cursor image. + * @param[in] xhot The desired x-coordinate, in pixels, of the cursor hotspot. + * @param[in] yhot The desired y-coordinate, in pixels, of the cursor hotspot. + * @return The handle of the created cursor, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The specified image data is copied before this function + * returns. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_object + * @sa glfwDestroyCursor + * @sa glfwCreateStandardCursor + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot); + +/*! @brief Creates a cursor with a standard shape. + * + * Returns a cursor with a [standard shape](@ref shapes), that can be set for + * a window with @ref glfwSetCursor. + * + * @param[in] shape One of the [standard shapes](@ref shapes). + * @return A new cursor ready to use or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_object + * @sa glfwCreateCursor + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape); + +/*! @brief Destroys a cursor. + * + * This function destroys a cursor previously created with @ref + * glfwCreateCursor. Any remaining cursors will be destroyed by @ref + * glfwTerminate. + * + * @param[in] cursor The cursor object to destroy. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_object + * @sa glfwCreateCursor + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI void glfwDestroyCursor(GLFWcursor* cursor); + +/*! @brief Sets the cursor for the window. + * + * This function sets the cursor image to be used when the cursor is over the + * client area of the specified window. The set cursor will only be visible + * when the [cursor mode](@ref cursor_mode) of the window is + * `GLFW_CURSOR_NORMAL`. + * + * On some platforms, the set cursor may not be visible unless the window also + * has input focus. + * + * @param[in] window The window to set the cursor for. + * @param[in] cursor The cursor to set, or `NULL` to switch back to the default + * arrow cursor. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_object + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI void glfwSetCursor(GLFWwindow* window, GLFWcursor* cursor); + +/*! @brief Sets the key callback. + * + * This function sets the key callback of the specified window, which is called + * when a key is pressed, repeated or released. + * + * The key functions deal with physical keys, with layout independent + * [key tokens](@ref keys) named after their values in the standard US keyboard + * layout. If you want to input text, use the + * [character callback](@ref glfwSetCharCallback) instead. + * + * When a window loses input focus, it will generate synthetic key release + * events for all pressed keys. You can tell these events from user-generated + * events by the fact that the synthetic ones are generated after the focus + * loss event has been processed, i.e. after the + * [window focus callback](@ref glfwSetWindowFocusCallback) has been called. + * + * The scancode of a key is specific to that platform or sometimes even to that + * machine. Scancodes are intended to allow users to bind keys that don't have + * a GLFW key token. Such keys have `key` set to `GLFW_KEY_UNKNOWN`, their + * state is not saved and so it cannot be queried with @ref glfwGetKey. + * + * Sometimes GLFW needs to generate synthetic key events, in which case the + * scancode may be zero. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new key callback, or `NULL` to remove the currently + * set callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_key + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup input + */ +GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* window, GLFWkeyfun cbfun); + +/*! @brief Sets the Unicode character callback. + * + * This function sets the character callback of the specified window, which is + * called when a Unicode character is input. + * + * The character callback is intended for Unicode text input. As it deals with + * characters, it is keyboard layout dependent, whereas the + * [key callback](@ref glfwSetKeyCallback) is not. Characters do not map 1:1 + * to physical keys, as a key may produce zero, one or more characters. If you + * want to know whether a specific physical key was pressed or released, see + * the key callback instead. + * + * The character callback behaves as system text input normally does and will + * not be called if modifier keys are held down that would prevent normal text + * input on that platform, for example a Super (Command) key on OS X or Alt key + * on Windows. There is a + * [character with modifiers callback](@ref glfwSetCharModsCallback) that + * receives these events. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_char + * + * @since Added in version 2.4. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup input + */ +GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* window, GLFWcharfun cbfun); + +/*! @brief Sets the Unicode character with modifiers callback. + * + * This function sets the character with modifiers callback of the specified + * window, which is called when a Unicode character is input regardless of what + * modifier keys are used. + * + * The character with modifiers callback is intended for implementing custom + * Unicode character input. For regular Unicode text input, see the + * [character callback](@ref glfwSetCharCallback). Like the character + * callback, the character with modifiers callback deals with characters and is + * keyboard layout dependent. Characters do not map 1:1 to physical keys, as + * a key may produce zero, one or more characters. If you want to know whether + * a specific physical key was pressed or released, see the + * [key callback](@ref glfwSetKeyCallback) instead. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or an + * error occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_char + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmodsfun cbfun); + +/*! @brief Sets the mouse button callback. + * + * This function sets the mouse button callback of the specified window, which + * is called when a mouse button is pressed or released. + * + * When a window loses input focus, it will generate synthetic mouse button + * release events for all pressed mouse buttons. You can tell these events + * from user-generated events by the fact that the synthetic ones are generated + * after the focus loss event has been processed, i.e. after the + * [window focus callback](@ref glfwSetWindowFocusCallback) has been called. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_mouse_button + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup input + */ +GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* window, GLFWmousebuttonfun cbfun); + +/*! @brief Sets the cursor position callback. + * + * This function sets the cursor position callback of the specified window, + * which is called when the cursor is moved. The callback is provided with the + * position, in screen coordinates, relative to the upper-left corner of the + * client area of the window. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_pos + * + * @since Added in version 3.0. Replaces `glfwSetMousePosCallback`. + * + * @ingroup input + */ +GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* window, GLFWcursorposfun cbfun); + +/*! @brief Sets the cursor enter/exit callback. + * + * This function sets the cursor boundary crossing callback of the specified + * window, which is called when the cursor enters or leaves the client area of + * the window. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_enter + * + * @since Added in version 3.0. + * + * @ingroup input + */ +GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* window, GLFWcursorenterfun cbfun); + +/*! @brief Sets the scroll callback. + * + * This function sets the scroll callback of the specified window, which is + * called when a scrolling device is used, such as a mouse wheel or scrolling + * area of a touchpad. + * + * The scroll callback receives all scrolling input, like that from a mouse + * wheel or a touchpad scrolling area. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new scroll callback, or `NULL` to remove the currently + * set callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref scrolling + * + * @since Added in version 3.0. Replaces `glfwSetMouseWheelCallback`. + * + * @ingroup input + */ +GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* window, GLFWscrollfun cbfun); + +/*! @brief Sets the file drop callback. + * + * This function sets the file drop callback of the specified window, which is + * called when one or more dragged files are dropped on the window. + * + * Because the path array and its strings may have been generated specifically + * for that event, they are not guaranteed to be valid after the callback has + * returned. If you wish to use them after the callback returns, you need to + * make a deep copy. + * + * @param[in] window The window whose callback to set. + * @param[in] cbfun The new file drop callback, or `NULL` to remove the + * currently set callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref path_drop + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* window, GLFWdropfun cbfun); + +/*! @brief Returns whether the specified joystick is present. + * + * This function returns whether the specified joystick is present. + * + * @param[in] joy The [joystick](@ref joysticks) to query. + * @return `GLFW_TRUE` if the joystick is present, or `GLFW_FALSE` otherwise. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref joystick + * + * @since Added in version 3.0. Replaces `glfwGetJoystickParam`. + * + * @ingroup input + */ +GLFWAPI int glfwJoystickPresent(int joy); + +/*! @brief Returns the values of all axes of the specified joystick. + * + * This function returns the values of all axes of the specified joystick. + * Each element in the array is a value between -1.0 and 1.0. + * + * Querying a joystick slot with no device present is not an error, but will + * cause this function to return `NULL`. Call @ref glfwJoystickPresent to + * check device presence. + * + * @param[in] joy The [joystick](@ref joysticks) to query. + * @param[out] count Where to store the number of axis values in the returned + * array. This is set to zero if an error occurred. + * @return An array of axis values, or `NULL` if the joystick is not present. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified joystick is + * disconnected, this function is called again for that joystick or the library + * is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref joystick_axis + * + * @since Added in version 3.0. Replaces `glfwGetJoystickPos`. + * + * @ingroup input + */ +GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count); + +/*! @brief Returns the state of all buttons of the specified joystick. + * + * This function returns the state of all buttons of the specified joystick. + * Each element in the array is either `GLFW_PRESS` or `GLFW_RELEASE`. + * + * Querying a joystick slot with no device present is not an error, but will + * cause this function to return `NULL`. Call @ref glfwJoystickPresent to + * check device presence. + * + * @param[in] joy The [joystick](@ref joysticks) to query. + * @param[out] count Where to store the number of button states in the returned + * array. This is set to zero if an error occurred. + * @return An array of button states, or `NULL` if the joystick is not present. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified joystick is + * disconnected, this function is called again for that joystick or the library + * is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref joystick_button + * + * @since Added in version 2.2. + * @glfw3 Changed to return a dynamic array. + * + * @ingroup input + */ +GLFWAPI const unsigned char* glfwGetJoystickButtons(int joy, int* count); + +/*! @brief Returns the name of the specified joystick. + * + * This function returns the name, encoded as UTF-8, of the specified joystick. + * The returned string is allocated and freed by GLFW. You should not free it + * yourself. + * + * Querying a joystick slot with no device present is not an error, but will + * cause this function to return `NULL`. Call @ref glfwJoystickPresent to + * check device presence. + * + * @param[in] joy The [joystick](@ref joysticks) to query. + * @return The UTF-8 encoded name of the joystick, or `NULL` if the joystick + * is not present. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified joystick is + * disconnected, this function is called again for that joystick or the library + * is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref joystick_name + * + * @since Added in version 3.0. + * + * @ingroup input + */ +GLFWAPI const char* glfwGetJoystickName(int joy); + +/*! @brief Sets the joystick configuration callback. + * + * This function sets the joystick configuration callback, or removes the + * currently set callback. This is called when a joystick is connected to or + * disconnected from the system. + * + * @param[in] cbfun The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref joystick_event + * + * @since Added in version 3.2. + * + * @ingroup input + */ +GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun cbfun); + +/*! @brief Sets the clipboard to the specified string. + * + * This function sets the system clipboard to the specified, UTF-8 encoded + * string. + * + * @param[in] window The window that will own the clipboard contents. + * @param[in] string A UTF-8 encoded string. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The specified string is copied before this function + * returns. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref clipboard + * @sa glfwGetClipboardString + * + * @since Added in version 3.0. + * + * @ingroup input + */ +GLFWAPI void glfwSetClipboardString(GLFWwindow* window, const char* string); + +/*! @brief Returns the contents of the clipboard as a string. + * + * This function returns the contents of the system clipboard, if it contains + * or is convertible to a UTF-8 encoded string. If the clipboard is empty or + * if its contents cannot be converted, `NULL` is returned and a @ref + * GLFW_FORMAT_UNAVAILABLE error is generated. + * + * @param[in] window The window that will request the clipboard contents. + * @return The contents of the clipboard as a UTF-8 encoded string, or `NULL` + * if an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the next call to @ref + * glfwGetClipboardString or @ref glfwSetClipboardString, or until the library + * is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref clipboard + * @sa glfwSetClipboardString + * + * @since Added in version 3.0. + * + * @ingroup input + */ +GLFWAPI const char* glfwGetClipboardString(GLFWwindow* window); + +/*! @brief Returns the value of the GLFW timer. + * + * This function returns the value of the GLFW timer. Unless the timer has + * been set using @ref glfwSetTime, the timer measures time elapsed since GLFW + * was initialized. + * + * The resolution of the timer is system dependent, but is usually on the order + * of a few micro- or nanoseconds. It uses the highest-resolution monotonic + * time source on each supported platform. + * + * @return The current value, in seconds, or zero if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Reading of the + * internal timer offset is not atomic. + * + * @sa @ref time + * + * @since Added in version 1.0. + * + * @ingroup input + */ +GLFWAPI double glfwGetTime(void); + +/*! @brief Sets the GLFW timer. + * + * This function sets the value of the GLFW timer. It then continues to count + * up from that value. The value must be a positive finite number less than + * or equal to 18446744073.0, which is approximately 584.5 years. + * + * @param[in] time The new value, in seconds. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_VALUE. + * + * @remark The upper limit of the timer is calculated as + * floor((264 - 1) / 109) and is due to implementations + * storing nanoseconds in 64 bits. The limit may be increased in the future. + * + * @thread_safety This function may be called from any thread. Writing of the + * internal timer offset is not atomic. + * + * @sa @ref time + * + * @since Added in version 2.2. + * + * @ingroup input + */ +GLFWAPI void glfwSetTime(double time); + +/*! @brief Returns the current value of the raw timer. + * + * This function returns the current value of the raw timer, measured in + * 1 / frequency seconds. To get the frequency, call @ref + * glfwGetTimerFrequency. + * + * @return The value of the timer, or zero if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref time + * @sa glfwGetTimerFrequency + * + * @since Added in version 3.2. + * + * @ingroup input + */ +GLFWAPI uint64_t glfwGetTimerValue(void); + +/*! @brief Returns the frequency, in Hz, of the raw timer. + * + * This function returns the frequency, in Hz, of the raw timer. + * + * @return The frequency of the timer, in Hz, or zero if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref time + * @sa glfwGetTimerValue + * + * @since Added in version 3.2. + * + * @ingroup input + */ +GLFWAPI uint64_t glfwGetTimerFrequency(void); + +/*! @brief Makes the context of the specified window current for the calling + * thread. + * + * This function makes the OpenGL or OpenGL ES context of the specified window + * current on the calling thread. A context can only be made current on + * a single thread at a time and each thread can have only a single current + * context at a time. + * + * By default, making a context non-current implicitly forces a pipeline flush. + * On machines that support `GL_KHR_context_flush_control`, you can control + * whether a context performs this flush by setting the + * [GLFW_CONTEXT_RELEASE_BEHAVIOR](@ref window_hints_ctx) window hint. + * + * The specified window must have an OpenGL or OpenGL ES context. Specifying + * a window without a context will generate a @ref GLFW_NO_WINDOW_CONTEXT + * error. + * + * @param[in] window The window whose context to make current, or `NULL` to + * detach the current context. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_ERROR. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref context_current + * @sa glfwGetCurrentContext + * + * @since Added in version 3.0. + * + * @ingroup context + */ +GLFWAPI void glfwMakeContextCurrent(GLFWwindow* window); + +/*! @brief Returns the window whose context is current on the calling thread. + * + * This function returns the window whose OpenGL or OpenGL ES context is + * current on the calling thread. + * + * @return The window whose context is current, or `NULL` if no window's + * context is current. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref context_current + * @sa glfwMakeContextCurrent + * + * @since Added in version 3.0. + * + * @ingroup context + */ +GLFWAPI GLFWwindow* glfwGetCurrentContext(void); + +/*! @brief Swaps the front and back buffers of the specified window. + * + * This function swaps the front and back buffers of the specified window when + * rendering with OpenGL or OpenGL ES. If the swap interval is greater than + * zero, the GPU driver waits the specified number of screen updates before + * swapping the buffers. + * + * The specified window must have an OpenGL or OpenGL ES context. Specifying + * a window without a context will generate a @ref GLFW_NO_WINDOW_CONTEXT + * error. + * + * This function does not apply to Vulkan. If you are rendering with Vulkan, + * see `vkQueuePresentKHR` instead. + * + * @param[in] window The window whose buffers to swap. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_ERROR. + * + * @remark __EGL:__ The context of the specified window must be current on the + * calling thread. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref buffer_swap + * @sa glfwSwapInterval + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwSwapBuffers(GLFWwindow* window); + +/*! @brief Sets the swap interval for the current context. + * + * This function sets the swap interval for the current OpenGL or OpenGL ES + * context, i.e. the number of screen updates to wait from the time @ref + * glfwSwapBuffers was called before swapping the buffers and returning. This + * is sometimes called _vertical synchronization_, _vertical retrace + * synchronization_ or just _vsync_. + * + * Contexts that support either of the `WGL_EXT_swap_control_tear` and + * `GLX_EXT_swap_control_tear` extensions also accept negative swap intervals, + * which allow the driver to swap even if a frame arrives a little bit late. + * You can check for the presence of these extensions using @ref + * glfwExtensionSupported. For more information about swap tearing, see the + * extension specifications. + * + * A context must be current on the calling thread. Calling this function + * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. + * + * This function does not apply to Vulkan. If you are rendering with Vulkan, + * see the present mode of your swapchain instead. + * + * @param[in] interval The minimum number of screen updates to wait for + * until the buffers are swapped by @ref glfwSwapBuffers. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_NO_CURRENT_CONTEXT and @ref GLFW_PLATFORM_ERROR. + * + * @remark This function is not called during context creation, leaving the + * swap interval set to whatever is the default on that platform. This is done + * because some swap interval extensions used by GLFW do not allow the swap + * interval to be reset to zero once it has been set to a non-zero value. + * + * @remark Some GPU drivers do not honor the requested swap interval, either + * because of a user setting that overrides the application's request or due to + * bugs in the driver. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref buffer_swap + * @sa glfwSwapBuffers + * + * @since Added in version 1.0. + * + * @ingroup context + */ +GLFWAPI void glfwSwapInterval(int interval); + +/*! @brief Returns whether the specified extension is available. + * + * This function returns whether the specified + * [API extension](@ref context_glext) is supported by the current OpenGL or + * OpenGL ES context. It searches both for client API extension and context + * creation API extensions. + * + * A context must be current on the calling thread. Calling this function + * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. + * + * As this functions retrieves and searches one or more extension strings each + * call, it is recommended that you cache its results if it is going to be used + * frequently. The extension strings will not change during the lifetime of + * a context, so there is no danger in doing this. + * + * This function does not apply to Vulkan. If you are using Vulkan, see @ref + * glfwGetRequiredInstanceExtensions, `vkEnumerateInstanceExtensionProperties` + * and `vkEnumerateDeviceExtensionProperties` instead. + * + * @param[in] extension The ASCII encoded name of the extension. + * @return `GLFW_TRUE` if the extension is available, or `GLFW_FALSE` + * otherwise. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_NO_CURRENT_CONTEXT, @ref GLFW_INVALID_VALUE and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref context_glext + * @sa glfwGetProcAddress + * + * @since Added in version 1.0. + * + * @ingroup context + */ +GLFWAPI int glfwExtensionSupported(const char* extension); + +/*! @brief Returns the address of the specified function for the current + * context. + * + * This function returns the address of the specified OpenGL or OpenGL ES + * [core or extension function](@ref context_glext), if it is supported + * by the current context. + * + * A context must be current on the calling thread. Calling this function + * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. + * + * This function does not apply to Vulkan. If you are rendering with Vulkan, + * see @ref glfwGetInstanceProcAddress, `vkGetInstanceProcAddr` and + * `vkGetDeviceProcAddr` instead. + * + * @param[in] procname The ASCII encoded name of the function. + * @return The address of the function, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_NO_CURRENT_CONTEXT and @ref GLFW_PLATFORM_ERROR. + * + * @remark The address of a given function is not guaranteed to be the same + * between contexts. + * + * @remark This function may return a non-`NULL` address despite the + * associated version or extension not being available. Always check the + * context version or extension string first. + * + * @pointer_lifetime The returned function pointer is valid until the context + * is destroyed or the library is terminated. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref context_glext + * @sa glfwExtensionSupported + * + * @since Added in version 1.0. + * + * @ingroup context + */ +GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname); + +/*! @brief Returns whether the Vulkan loader has been found. + * + * This function returns whether the Vulkan loader has been found. This check + * is performed by @ref glfwInit. + * + * The availability of a Vulkan loader does not by itself guarantee that window + * surface creation or even device creation is possible. Call @ref + * glfwGetRequiredInstanceExtensions to check whether the extensions necessary + * for Vulkan surface creation are available and @ref + * glfwGetPhysicalDevicePresentationSupport to check whether a queue family of + * a physical device supports image presentation. + * + * @return `GLFW_TRUE` if Vulkan is available, or `GLFW_FALSE` otherwise. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref vulkan_support + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +GLFWAPI int glfwVulkanSupported(void); + +/*! @brief Returns the Vulkan instance extensions required by GLFW. + * + * This function returns an array of names of Vulkan instance extensions required + * by GLFW for creating Vulkan surfaces for GLFW windows. If successful, the + * list will always contains `VK_KHR_surface`, so if you don't require any + * additional extensions you can pass this list directly to the + * `VkInstanceCreateInfo` struct. + * + * If Vulkan is not available on the machine, this function returns `NULL` and + * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported + * to check whether Vulkan is available. + * + * If Vulkan is available but no set of extensions allowing window surface + * creation was found, this function returns `NULL`. You may still use Vulkan + * for off-screen rendering and compute work. + * + * @param[out] count Where to store the number of extensions in the returned + * array. This is set to zero if an error occurred. + * @return An array of ASCII encoded extension names, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_API_UNAVAILABLE. + * + * @remarks Additional extensions may be required by future versions of GLFW. + * You should check if any extensions you wish to enable are already in the + * returned array, as it is an error to specify an extension more than once in + * the `VkInstanceCreateInfo` struct. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is guaranteed to be valid only until the + * library is terminated. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref vulkan_ext + * @sa glfwCreateWindowSurface + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count); + +#if defined(VK_VERSION_1_0) + +/*! @brief Returns the address of the specified Vulkan instance function. + * + * This function returns the address of the specified Vulkan core or extension + * function for the specified instance. If instance is set to `NULL` it can + * return any function exported from the Vulkan loader, including at least the + * following functions: + * + * - `vkEnumerateInstanceExtensionProperties` + * - `vkEnumerateInstanceLayerProperties` + * - `vkCreateInstance` + * - `vkGetInstanceProcAddr` + * + * If Vulkan is not available on the machine, this function returns `NULL` and + * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported + * to check whether Vulkan is available. + * + * This function is equivalent to calling `vkGetInstanceProcAddr` with + * a platform-specific query of the Vulkan loader as a fallback. + * + * @param[in] instance The Vulkan instance to query, or `NULL` to retrieve + * functions related to instance creation. + * @param[in] procname The ASCII encoded name of the function. + * @return The address of the function, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_API_UNAVAILABLE. + * + * @pointer_lifetime The returned function pointer is valid until the library + * is terminated. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref vulkan_proc + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, const char* procname); + +/*! @brief Returns whether the specified queue family can present images. + * + * This function returns whether the specified queue family of the specified + * physical device supports presentation to the platform GLFW was built for. + * + * If Vulkan or the required window surface creation instance extensions are + * not available on the machine, or if the specified instance was not created + * with the required extensions, this function returns `GLFW_FALSE` and + * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported + * to check whether Vulkan is available and @ref + * glfwGetRequiredInstanceExtensions to check what instance extensions are + * required. + * + * @param[in] instance The instance that the physical device belongs to. + * @param[in] device The physical device that the queue family belongs to. + * @param[in] queuefamily The index of the queue family to query. + * @return `GLFW_TRUE` if the queue family supports presentation, or + * `GLFW_FALSE` otherwise. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_API_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR. + * + * @thread_safety This function may be called from any thread. For + * synchronization details of Vulkan objects, see the Vulkan specification. + * + * @sa @ref vulkan_present + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); + +/*! @brief Creates a Vulkan surface for the specified window. + * + * This function creates a Vulkan surface for the specified window. + * + * If the Vulkan loader was not found at initialization, this function returns + * `VK_ERROR_INITIALIZATION_FAILED` and generates a @ref GLFW_API_UNAVAILABLE + * error. Call @ref glfwVulkanSupported to check whether the Vulkan loader was + * found. + * + * If the required window surface creation instance extensions are not + * available or if the specified instance was not created with these extensions + * enabled, this function returns `VK_ERROR_EXTENSION_NOT_PRESENT` and + * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref + * glfwGetRequiredInstanceExtensions to check what instance extensions are + * required. + * + * The window surface must be destroyed before the specified Vulkan instance. + * It is the responsibility of the caller to destroy the window surface. GLFW + * does not destroy it for you. Call `vkDestroySurfaceKHR` to destroy the + * surface. + * + * @param[in] instance The Vulkan instance to create the surface in. + * @param[in] window The window to create the surface for. + * @param[in] allocator The allocator to use, or `NULL` to use the default + * allocator. + * @param[out] surface Where to store the handle of the surface. This is set + * to `VK_NULL_HANDLE` if an error occurred. + * @return `VK_SUCCESS` if successful, or a Vulkan error code if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_API_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR. + * + * @remarks If an error occurs before the creation call is made, GLFW returns + * the Vulkan error code most appropriate for the error. Appropriate use of + * @ref glfwVulkanSupported and @ref glfwGetRequiredInstanceExtensions should + * eliminate almost all occurrences of these errors. + * + * @thread_safety This function may be called from any thread. For + * synchronization details of Vulkan objects, see the Vulkan specification. + * + * @sa @ref vulkan_surface + * @sa glfwGetRequiredInstanceExtensions + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); + +#endif /*VK_VERSION_1_0*/ + + +/************************************************************************* + * Global definition cleanup + *************************************************************************/ + +/* ------------------- BEGIN SYSTEM/COMPILER SPECIFIC -------------------- */ + +#ifdef GLFW_WINGDIAPI_DEFINED + #undef WINGDIAPI + #undef GLFW_WINGDIAPI_DEFINED +#endif + +#ifdef GLFW_CALLBACK_DEFINED + #undef CALLBACK + #undef GLFW_CALLBACK_DEFINED +#endif + +/* -------------------- END SYSTEM/COMPILER SPECIFIC --------------------- */ + + +#ifdef __cplusplus +} +#endif + +#endif /* _glfw3_h_ */ + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/include/GLFW/glfw3native.h b/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/include/GLFW/glfw3native.h new file mode 100644 index 0000000..9fa955e --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/include/GLFW/glfw3native.h @@ -0,0 +1,456 @@ +/************************************************************************* + * GLFW 3.2 - www.glfw.org + * A library for OpenGL, window and input + *------------------------------------------------------------------------ + * Copyright (c) 2002-2006 Marcus Geelnard + * Copyright (c) 2006-2010 Camilla Berglund + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would + * be appreciated but is not required. + * + * 2. Altered source versions must be plainly marked as such, and must not + * be misrepresented as being the original software. + * + * 3. This notice may not be removed or altered from any source + * distribution. + * + *************************************************************************/ + +#ifndef _glfw3_native_h_ +#define _glfw3_native_h_ + +#ifdef __cplusplus +extern "C" { +#endif + + +/************************************************************************* + * Doxygen documentation + *************************************************************************/ + +/*! @file glfw3native.h + * @brief The header of the native access functions. + * + * This is the header file of the native access functions. See @ref native for + * more information. + */ +/*! @defgroup native Native access + * + * **By using the native access functions you assert that you know what you're + * doing and how to fix problems caused by using them. If you don't, you + * shouldn't be using them.** + * + * Before the inclusion of @ref glfw3native.h, you may define exactly one + * window system API macro and zero or more context creation API macros. + * + * The chosen backends must match those the library was compiled for. Failure + * to do this will cause a link-time error. + * + * The available window API macros are: + * * `GLFW_EXPOSE_NATIVE_WIN32` + * * `GLFW_EXPOSE_NATIVE_COCOA` + * * `GLFW_EXPOSE_NATIVE_X11` + * * `GLFW_EXPOSE_NATIVE_WAYLAND` + * * `GLFW_EXPOSE_NATIVE_MIR` + * + * The available context API macros are: + * * `GLFW_EXPOSE_NATIVE_WGL` + * * `GLFW_EXPOSE_NATIVE_NSGL` + * * `GLFW_EXPOSE_NATIVE_GLX` + * * `GLFW_EXPOSE_NATIVE_EGL` + * + * These macros select which of the native access functions that are declared + * and which platform-specific headers to include. It is then up your (by + * definition platform-specific) code to handle which of these should be + * defined. + */ + + +/************************************************************************* + * System headers and types + *************************************************************************/ + +#if defined(GLFW_EXPOSE_NATIVE_WIN32) + // This is a workaround for the fact that glfw3.h needs to export APIENTRY (for + // example to allow applications to correctly declare a GL_ARB_debug_output + // callback) but windows.h assumes no one will define APIENTRY before it does + #undef APIENTRY + #include +#elif defined(GLFW_EXPOSE_NATIVE_COCOA) + #include + #if defined(__OBJC__) + #import + #else + typedef void* id; + #endif +#elif defined(GLFW_EXPOSE_NATIVE_X11) + #include + #include +#elif defined(GLFW_EXPOSE_NATIVE_WAYLAND) + #include +#elif defined(GLFW_EXPOSE_NATIVE_MIR) + #include +#endif + +#if defined(GLFW_EXPOSE_NATIVE_WGL) + /* WGL is declared by windows.h */ +#endif +#if defined(GLFW_EXPOSE_NATIVE_NSGL) + /* NSGL is declared by Cocoa.h */ +#endif +#if defined(GLFW_EXPOSE_NATIVE_GLX) + #include +#endif +#if defined(GLFW_EXPOSE_NATIVE_EGL) + #include +#endif + + +/************************************************************************* + * Functions + *************************************************************************/ + +#if defined(GLFW_EXPOSE_NATIVE_WIN32) +/*! @brief Returns the adapter device name of the specified monitor. + * + * @return The UTF-8 encoded adapter device name (for example `\\.\DISPLAY1`) + * of the specified monitor, or `NULL` if an [error](@ref error_handling) + * occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.1. + * + * @ingroup native + */ +GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* monitor); + +/*! @brief Returns the display device name of the specified monitor. + * + * @return The UTF-8 encoded display device name (for example + * `\\.\DISPLAY1\Monitor0`) of the specified monitor, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.1. + * + * @ingroup native + */ +GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* monitor); + +/*! @brief Returns the `HWND` of the specified window. + * + * @return The `HWND` of the specified window, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI HWND glfwGetWin32Window(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_WGL) +/*! @brief Returns the `HGLRC` of the specified window. + * + * @return The `HGLRC` of the specified window, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_COCOA) +/*! @brief Returns the `CGDirectDisplayID` of the specified monitor. + * + * @return The `CGDirectDisplayID` of the specified monitor, or + * `kCGNullDirectDisplay` if an [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.1. + * + * @ingroup native + */ +GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor); + +/*! @brief Returns the `NSWindow` of the specified window. + * + * @return The `NSWindow` of the specified window, or `nil` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI id glfwGetCocoaWindow(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_NSGL) +/*! @brief Returns the `NSOpenGLContext` of the specified window. + * + * @return The `NSOpenGLContext` of the specified window, or `nil` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI id glfwGetNSGLContext(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_X11) +/*! @brief Returns the `Display` used by GLFW. + * + * @return The `Display` used by GLFW, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI Display* glfwGetX11Display(void); + +/*! @brief Returns the `RRCrtc` of the specified monitor. + * + * @return The `RRCrtc` of the specified monitor, or `None` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.1. + * + * @ingroup native + */ +GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor); + +/*! @brief Returns the `RROutput` of the specified monitor. + * + * @return The `RROutput` of the specified monitor, or `None` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.1. + * + * @ingroup native + */ +GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* monitor); + +/*! @brief Returns the `Window` of the specified window. + * + * @return The `Window` of the specified window, or `None` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI Window glfwGetX11Window(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_GLX) +/*! @brief Returns the `GLXContext` of the specified window. + * + * @return The `GLXContext` of the specified window, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* window); + +/*! @brief Returns the `GLXWindow` of the specified window. + * + * @return The `GLXWindow` of the specified window, or `None` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.2. + * + * @ingroup native + */ +GLFWAPI GLXWindow glfwGetGLXWindow(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_WAYLAND) +/*! @brief Returns the `struct wl_display*` used by GLFW. + * + * @return The `struct wl_display*` used by GLFW, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.2. + * + * @ingroup native + */ +GLFWAPI struct wl_display* glfwGetWaylandDisplay(void); + +/*! @brief Returns the `struct wl_output*` of the specified monitor. + * + * @return The `struct wl_output*` of the specified monitor, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.2. + * + * @ingroup native + */ +GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* monitor); + +/*! @brief Returns the main `struct wl_surface*` of the specified window. + * + * @return The main `struct wl_surface*` of the specified window, or `NULL` if + * an [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.2. + * + * @ingroup native + */ +GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_MIR) +/*! @brief Returns the `MirConnection*` used by GLFW. + * + * @return The `MirConnection*` used by GLFW, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.2. + * + * @ingroup native + */ +GLFWAPI MirConnection* glfwGetMirDisplay(void); + +/*! @brief Returns the Mir output ID of the specified monitor. + * + * @return The Mir output ID of the specified monitor, or zero if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.2. + * + * @ingroup native + */ +GLFWAPI int glfwGetMirMonitor(GLFWmonitor* monitor); + +/*! @brief Returns the `MirSurface*` of the specified window. + * + * @return The `MirSurface*` of the specified window, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.2. + * + * @ingroup native + */ +GLFWAPI MirSurface* glfwGetMirWindow(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_EGL) +/*! @brief Returns the `EGLDisplay` used by GLFW. + * + * @return The `EGLDisplay` used by GLFW, or `EGL_NO_DISPLAY` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI EGLDisplay glfwGetEGLDisplay(void); + +/*! @brief Returns the `EGLContext` of the specified window. + * + * @return The `EGLContext` of the specified window, or `EGL_NO_CONTEXT` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* window); + +/*! @brief Returns the `EGLSurface` of the specified window. + * + * @return The `EGLSurface` of the specified window, or `EGL_NO_SURFACE` if an + * [error](@ref error_handling) occurred. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* window); +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* _glfw3_native_h_ */ + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/lib-vc2010-32/glfw3.lib b/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/lib-vc2010-32/glfw3.lib new file mode 100644 index 0000000..348abec Binary files /dev/null and b/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/lib-vc2010-32/glfw3.lib differ diff --git a/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/lib-vc2010-64/glfw3.lib b/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/lib-vc2010-64/glfw3.lib new file mode 100644 index 0000000..768f308 Binary files /dev/null and b/HexaGen.Tests/cpp2c/imgui/examples/libs/glfw/lib-vc2010-64/glfw3.lib differ diff --git a/HexaGen.Tests/cpp2c/imgui/examples/libs/usynergy/README.txt b/HexaGen.Tests/cpp2c/imgui/examples/libs/usynergy/README.txt new file mode 100644 index 0000000..c86b909 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/libs/usynergy/README.txt @@ -0,0 +1,8 @@ + +uSynergy client -- Implementation for the embedded Synergy client library +version 1.0.0, July 7th, 2012 +Copyright (c) 2012 Alex Evans + +This is a copy of the files once found at: + https://github.com/symless/synergy-core/tree/790d108a56ada9caad8e56ff777d444485a69da9/src/micro + diff --git a/HexaGen.Tests/cpp2c/imgui/examples/libs/usynergy/uSynergy.c b/HexaGen.Tests/cpp2c/imgui/examples/libs/usynergy/uSynergy.c new file mode 100644 index 0000000..8dce47b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/libs/usynergy/uSynergy.c @@ -0,0 +1,636 @@ +/* +uSynergy client -- Implementation for the embedded Synergy client library + version 1.0.0, July 7th, 2012 + +Copyright (c) 2012 Alex Evans + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source + distribution. +*/ +#include "uSynergy.h" +#include +#include + + + +//--------------------------------------------------------------------------------------------------------------------- +// Internal helpers +//--------------------------------------------------------------------------------------------------------------------- + + + +/** +@brief Read 16 bit integer in network byte order and convert to native byte order +**/ +static int16_t sNetToNative16(const unsigned char *value) +{ +#ifdef USYNERGY_LITTLE_ENDIAN + return value[1] | (value[0] << 8); +#else + return value[0] | (value[1] << 8); +#endif +} + + + +/** +@brief Read 32 bit integer in network byte order and convert to native byte order +**/ +static int32_t sNetToNative32(const unsigned char *value) +{ +#ifdef USYNERGY_LITTLE_ENDIAN + return value[3] | (value[2] << 8) | (value[1] << 16) | (value[0] << 24); +#else + return value[0] | (value[1] << 8) | (value[2] << 16) | (value[3] << 24); +#endif +} + + + +/** +@brief Trace text to client +**/ +static void sTrace(uSynergyContext *context, const char* text) +{ + // Don't trace if we don't have a trace function + if (context->m_traceFunc != 0L) + context->m_traceFunc(context->m_cookie, text); +} + + + +/** +@brief Add string to reply packet +**/ +static void sAddString(uSynergyContext *context, const char *string) +{ + size_t len = strlen(string); + memcpy(context->m_replyCur, string, len); + context->m_replyCur += len; +} + + + +/** +@brief Add uint8 to reply packet +**/ +static void sAddUInt8(uSynergyContext *context, uint8_t value) +{ + *context->m_replyCur++ = value; +} + + + +/** +@brief Add uint16 to reply packet +**/ +static void sAddUInt16(uSynergyContext *context, uint16_t value) +{ + uint8_t *reply = context->m_replyCur; + *reply++ = (uint8_t)(value >> 8); + *reply++ = (uint8_t)value; + context->m_replyCur = reply; +} + + + +/** +@brief Add uint32 to reply packet +**/ +static void sAddUInt32(uSynergyContext *context, uint32_t value) +{ + uint8_t *reply = context->m_replyCur; + *reply++ = (uint8_t)(value >> 24); + *reply++ = (uint8_t)(value >> 16); + *reply++ = (uint8_t)(value >> 8); + *reply++ = (uint8_t)value; + context->m_replyCur = reply; +} + + + +/** +@brief Send reply packet +**/ +static uSynergyBool sSendReply(uSynergyContext *context) +{ + // Set header size + uint8_t *reply_buf = context->m_replyBuffer; + uint32_t reply_len = (uint32_t)(context->m_replyCur - reply_buf); /* Total size of reply */ + uint32_t body_len = reply_len - 4; /* Size of body */ + uSynergyBool ret; + reply_buf[0] = (uint8_t)(body_len >> 24); + reply_buf[1] = (uint8_t)(body_len >> 16); + reply_buf[2] = (uint8_t)(body_len >> 8); + reply_buf[3] = (uint8_t)body_len; + + // Send reply + ret = context->m_sendFunc(context->m_cookie, context->m_replyBuffer, reply_len); + + // Reset reply buffer write pointer + context->m_replyCur = context->m_replyBuffer+4; + return ret; +} + + + +/** +@brief Call mouse callback after a mouse event +**/ +static void sSendMouseCallback(uSynergyContext *context) +{ + // Skip if no callback is installed + if (context->m_mouseCallback == 0L) + return; + + // Send callback + context->m_mouseCallback(context->m_cookie, context->m_mouseX, context->m_mouseY, context->m_mouseWheelX, + context->m_mouseWheelY, context->m_mouseButtonLeft, context->m_mouseButtonRight, context->m_mouseButtonMiddle); +} + + + +/** +@brief Send keyboard callback when a key has been pressed or released +**/ +static void sSendKeyboardCallback(uSynergyContext *context, uint16_t key, uint16_t modifiers, uSynergyBool down, uSynergyBool repeat) +{ + // Skip if no callback is installed + if (context->m_keyboardCallback == 0L) + return; + + // Send callback + context->m_keyboardCallback(context->m_cookie, key, modifiers, down, repeat); +} + + + +/** +@brief Send joystick callback +**/ +static void sSendJoystickCallback(uSynergyContext *context, uint8_t joyNum) +{ + int8_t *sticks; + + // Skip if no callback is installed + if (context->m_joystickCallback == 0L) + return; + + // Send callback + sticks = context->m_joystickSticks[joyNum]; + context->m_joystickCallback(context->m_cookie, joyNum, context->m_joystickButtons[joyNum], sticks[0], sticks[1], sticks[2], sticks[3]); +} + + + +/** +@brief Parse a single client message, update state, send callbacks and send replies +**/ +#define USYNERGY_IS_PACKET(pkt_id) memcmp(message+4, pkt_id, 4)==0 +static void sProcessMessage(uSynergyContext *context, const uint8_t *message) +{ + // We have a packet! + if (memcmp(message+4, "Synergy", 7)==0) + { + // Welcome message + // kMsgHello = "Synergy%2i%2i" + // kMsgHelloBack = "Synergy%2i%2i%s" + sAddString(context, "Synergy"); + sAddUInt16(context, USYNERGY_PROTOCOL_MAJOR); + sAddUInt16(context, USYNERGY_PROTOCOL_MINOR); + sAddUInt32(context, (uint32_t)strlen(context->m_clientName)); + sAddString(context, context->m_clientName); + if (!sSendReply(context)) + { + // Send reply failed, let's try to reconnect + sTrace(context, "SendReply failed, trying to reconnect in a second"); + context->m_connected = USYNERGY_FALSE; + context->m_sleepFunc(context->m_cookie, 1000); + } + else + { + // Let's assume we're connected + char buffer[256+1]; + sprintf(buffer, "Connected as client \"%s\"", context->m_clientName); + sTrace(context, buffer); + context->m_hasReceivedHello = USYNERGY_TRUE; + } + return; + } + else if (USYNERGY_IS_PACKET("QINF")) + { + // Screen info. Reply with DINF + // kMsgQInfo = "QINF" + // kMsgDInfo = "DINF%2i%2i%2i%2i%2i%2i%2i" + uint16_t x = 0, y = 0, warp = 0; + sAddString(context, "DINF"); + sAddUInt16(context, x); + sAddUInt16(context, y); + sAddUInt16(context, context->m_clientWidth); + sAddUInt16(context, context->m_clientHeight); + sAddUInt16(context, warp); + sAddUInt16(context, 0); // mx? + sAddUInt16(context, 0); // my? + sSendReply(context); + return; + } + else if (USYNERGY_IS_PACKET("CIAK")) + { + // Do nothing? + // kMsgCInfoAck = "CIAK" + return; + } + else if (USYNERGY_IS_PACKET("CROP")) + { + // Do nothing? + // kMsgCResetOptions = "CROP" + return; + } + else if (USYNERGY_IS_PACKET("CINN")) + { + // Screen enter. Reply with CNOP + // kMsgCEnter = "CINN%2i%2i%4i%2i" + + // Obtain the Synergy sequence number + context->m_sequenceNumber = sNetToNative32(message + 12); + context->m_isCaptured = USYNERGY_TRUE; + + // Call callback + if (context->m_screenActiveCallback != 0L) + context->m_screenActiveCallback(context->m_cookie, USYNERGY_TRUE); + } + else if (USYNERGY_IS_PACKET("COUT")) + { + // Screen leave + // kMsgCLeave = "COUT" + context->m_isCaptured = USYNERGY_FALSE; + + // Call callback + if (context->m_screenActiveCallback != 0L) + context->m_screenActiveCallback(context->m_cookie, USYNERGY_FALSE); + } + else if (USYNERGY_IS_PACKET("DMDN")) + { + // Mouse down + // kMsgDMouseDown = "DMDN%1i" + char btn = message[8]-1; + if (btn==2) + context->m_mouseButtonRight = USYNERGY_TRUE; + else if (btn==1) + context->m_mouseButtonMiddle = USYNERGY_TRUE; + else + context->m_mouseButtonLeft = USYNERGY_TRUE; + sSendMouseCallback(context); + } + else if (USYNERGY_IS_PACKET("DMUP")) + { + // Mouse up + // kMsgDMouseUp = "DMUP%1i" + char btn = message[8]-1; + if (btn==2) + context->m_mouseButtonRight = USYNERGY_FALSE; + else if (btn==1) + context->m_mouseButtonMiddle = USYNERGY_FALSE; + else + context->m_mouseButtonLeft = USYNERGY_FALSE; + sSendMouseCallback(context); + } + else if (USYNERGY_IS_PACKET("DMMV")) + { + // Mouse move. Reply with CNOP + // kMsgDMouseMove = "DMMV%2i%2i" + context->m_mouseX = sNetToNative16(message+8); + context->m_mouseY = sNetToNative16(message+10); + sSendMouseCallback(context); + } + else if (USYNERGY_IS_PACKET("DMWM")) + { + // Mouse wheel + // kMsgDMouseWheel = "DMWM%2i%2i" + // kMsgDMouseWheel1_0 = "DMWM%2i" + context->m_mouseWheelX += sNetToNative16(message+8); + context->m_mouseWheelY += sNetToNative16(message+10); + sSendMouseCallback(context); + } + else if (USYNERGY_IS_PACKET("DKDN")) + { + // Key down + // kMsgDKeyDown = "DKDN%2i%2i%2i" + // kMsgDKeyDown1_0 = "DKDN%2i%2i" + //uint16_t id = sNetToNative16(message+8); + uint16_t mod = sNetToNative16(message+10); + uint16_t key = sNetToNative16(message+12); + sSendKeyboardCallback(context, key, mod, USYNERGY_TRUE, USYNERGY_FALSE); + } + else if (USYNERGY_IS_PACKET("DKRP")) + { + // Key repeat + // kMsgDKeyRepeat = "DKRP%2i%2i%2i%2i" + // kMsgDKeyRepeat1_0 = "DKRP%2i%2i%2i" + uint16_t mod = sNetToNative16(message+10); +// uint16_t count = sNetToNative16(message+12); + uint16_t key = sNetToNative16(message+14); + sSendKeyboardCallback(context, key, mod, USYNERGY_TRUE, USYNERGY_TRUE); + } + else if (USYNERGY_IS_PACKET("DKUP")) + { + // Key up + // kMsgDKeyUp = "DKUP%2i%2i%2i" + // kMsgDKeyUp1_0 = "DKUP%2i%2i" + //uint16 id=Endian::sNetToNative(sbuf[4]); + uint16_t mod = sNetToNative16(message+10); + uint16_t key = sNetToNative16(message+12); + sSendKeyboardCallback(context, key, mod, USYNERGY_FALSE, USYNERGY_FALSE); + } + else if (USYNERGY_IS_PACKET("DGBT")) + { + // Joystick buttons + // kMsgDGameButtons = "DGBT%1i%2i"; + uint8_t joy_num = message[8]; + if (joy_numm_joystickButtons[joy_num] = (message[9] << 8) | message[10]; + sSendJoystickCallback(context, joy_num); + } + } + else if (USYNERGY_IS_PACKET("DGST")) + { + // Joystick sticks + // kMsgDGameSticks = "DGST%1i%1i%1i%1i%1i"; + uint8_t joy_num = message[8]; + if (joy_numm_joystickSticks[joy_num], message+9, 4); + sSendJoystickCallback(context, joy_num); + } + } + else if (USYNERGY_IS_PACKET("DSOP")) + { + // Set options + // kMsgDSetOptions = "DSOP%4I" + } + else if (USYNERGY_IS_PACKET("CALV")) + { + // Keepalive, reply with CALV and then CNOP + // kMsgCKeepAlive = "CALV" + sAddString(context, "CALV"); + sSendReply(context); + // now reply with CNOP + } + else if (USYNERGY_IS_PACKET("DCLP")) + { + // Clipboard message + // kMsgDClipboard = "DCLP%1i%4i%s" + // + // The clipboard message contains: + // 1 uint32: The size of the message + // 4 chars: The identifier ("DCLP") + // 1 uint8: The clipboard index + // 1 uint32: The sequence number. It's zero, because this message is always coming from the server? + // 1 uint32: The total size of the remaining 'string' (as per the Synergy %s string format (which is 1 uint32 for size followed by a char buffer (not necessarily null terminated)). + // 1 uint32: The number of formats present in the message + // And then 'number of formats' times the following: + // 1 uint32: The format of the clipboard data + // 1 uint32: The size n of the clipboard data + // n uint8: The clipboard data + const uint8_t * parse_msg = message+17; + uint32_t num_formats = sNetToNative32(parse_msg); + parse_msg += 4; + for (; num_formats; num_formats--) + { + // Parse clipboard format header + uint32_t format = sNetToNative32(parse_msg); + uint32_t size = sNetToNative32(parse_msg+4); + parse_msg += 8; + + // Call callback + if (context->m_clipboardCallback) + context->m_clipboardCallback(context->m_cookie, format, parse_msg, size); + + parse_msg += size; + } + } + else + { + // Unknown packet, could be any of these + // kMsgCNoop = "CNOP" + // kMsgCClose = "CBYE" + // kMsgCClipboard = "CCLP%1i%4i" + // kMsgCScreenSaver = "CSEC%1i" + // kMsgDKeyRepeat = "DKRP%2i%2i%2i%2i" + // kMsgDKeyRepeat1_0 = "DKRP%2i%2i%2i" + // kMsgDMouseRelMove = "DMRM%2i%2i" + // kMsgEIncompatible = "EICV%2i%2i" + // kMsgEBusy = "EBSY" + // kMsgEUnknown = "EUNK" + // kMsgEBad = "EBAD" + char buffer[64]; + sprintf(buffer, "Unknown packet '%c%c%c%c'", message[4], message[5], message[6], message[7]); + sTrace(context, buffer); + return; + } + + // Reply with CNOP maybe? + sAddString(context, "CNOP"); + sSendReply(context); +} +#undef USYNERGY_IS_PACKET + + + +/** +@brief Mark context as being disconnected +**/ +static void sSetDisconnected(uSynergyContext *context) +{ + context->m_connected = USYNERGY_FALSE; + context->m_hasReceivedHello = USYNERGY_FALSE; + context->m_isCaptured = USYNERGY_FALSE; + context->m_replyCur = context->m_replyBuffer + 4; + context->m_sequenceNumber = 0; +} + + + +/** +@brief Update a connected context +**/ +static void sUpdateContext(uSynergyContext *context) +{ + /* Receive data (blocking) */ + int receive_size = USYNERGY_RECEIVE_BUFFER_SIZE - context->m_receiveOfs; + int num_received = 0; + int packlen = 0; + if (context->m_receiveFunc(context->m_cookie, context->m_receiveBuffer + context->m_receiveOfs, receive_size, &num_received) == USYNERGY_FALSE) + { + /* Receive failed, let's try to reconnect */ + char buffer[128]; + sprintf(buffer, "Receive failed (%d bytes asked, %d bytes received), trying to reconnect in a second", receive_size, num_received); + sTrace(context, buffer); + sSetDisconnected(context); + context->m_sleepFunc(context->m_cookie, 1000); + return; + } + context->m_receiveOfs += num_received; + + /* If we didn't receive any data then we're probably still polling to get connected and + therefore not getting any data back. To avoid overloading the system with a Synergy + thread that would hammer on polling, we let it rest for a bit if there's no data. */ + if (num_received == 0) + context->m_sleepFunc(context->m_cookie, 500); + + /* Check for timeouts */ + if (context->m_hasReceivedHello) + { + uint32_t cur_time = context->m_getTimeFunc(); + if (num_received == 0) + { + /* Timeout after 2 secs of inactivity (we received no CALV) */ + if ((cur_time - context->m_lastMessageTime) > USYNERGY_IDLE_TIMEOUT) + sSetDisconnected(context); + } + else + context->m_lastMessageTime = cur_time; + } + + /* Eat packets */ + for (;;) + { + /* Grab packet length and bail out if the packet goes beyond the end of the buffer */ + packlen = sNetToNative32(context->m_receiveBuffer); + if (packlen+4 > context->m_receiveOfs) + break; + + /* Process message */ + sProcessMessage(context, context->m_receiveBuffer); + + /* Move packet to front of buffer */ + memmove(context->m_receiveBuffer, context->m_receiveBuffer+packlen+4, context->m_receiveOfs-packlen-4); + context->m_receiveOfs -= packlen+4; + } + + /* Throw away over-sized packets */ + if (packlen > USYNERGY_RECEIVE_BUFFER_SIZE) + { + /* Oversized packet, ditch tail end */ + char buffer[128]; + sprintf(buffer, "Oversized packet: '%c%c%c%c' (length %d)", context->m_receiveBuffer[4], context->m_receiveBuffer[5], context->m_receiveBuffer[6], context->m_receiveBuffer[7], packlen); + sTrace(context, buffer); + num_received = context->m_receiveOfs-4; // 4 bytes for the size field + while (num_received != packlen) + { + int buffer_left = packlen - num_received; + int to_receive = buffer_left < USYNERGY_RECEIVE_BUFFER_SIZE ? buffer_left : USYNERGY_RECEIVE_BUFFER_SIZE; + int ditch_received = 0; + if (context->m_receiveFunc(context->m_cookie, context->m_receiveBuffer, to_receive, &ditch_received) == USYNERGY_FALSE) + { + /* Receive failed, let's try to reconnect */ + sTrace(context, "Receive failed, trying to reconnect in a second"); + sSetDisconnected(context); + context->m_sleepFunc(context->m_cookie, 1000); + break; + } + else + { + num_received += ditch_received; + } + } + context->m_receiveOfs = 0; + } +} + + +//--------------------------------------------------------------------------------------------------------------------- +// Public interface +//--------------------------------------------------------------------------------------------------------------------- + + + +/** +@brief Initialize uSynergy context +**/ +void uSynergyInit(uSynergyContext *context) +{ + /* Zero memory */ + memset(context, 0, sizeof(uSynergyContext)); + + /* Initialize to default state */ + sSetDisconnected(context); +} + + +/** +@brief Update uSynergy +**/ +void uSynergyUpdate(uSynergyContext *context) +{ + if (context->m_connected) + { + /* Update context, receive data, call callbacks */ + sUpdateContext(context); + } + else + { + /* Try to connect */ + if (context->m_connectFunc(context->m_cookie)) + context->m_connected = USYNERGY_TRUE; + } +} + + + +/** +@brief Send clipboard data +**/ +void uSynergySendClipboard(uSynergyContext *context, const char *text) +{ + // Calculate maximum size that will fit in a reply packet + uint32_t overhead_size = 4 + /* Message size */ + 4 + /* Message ID */ + 1 + /* Clipboard index */ + 4 + /* Sequence number */ + 4 + /* Rest of message size (because it's a Synergy string from here on) */ + 4 + /* Number of clipboard formats */ + 4 + /* Clipboard format */ + 4; /* Clipboard data length */ + uint32_t max_length = USYNERGY_REPLY_BUFFER_SIZE - overhead_size; + + // Clip text to max length + uint32_t text_length = (uint32_t)strlen(text); + if (text_length > max_length) + { + char buffer[128]; + sprintf(buffer, "Clipboard buffer too small, clipboard truncated at %d characters", max_length); + sTrace(context, buffer); + text_length = max_length; + } + + // Assemble packet + sAddString(context, "DCLP"); + sAddUInt8(context, 0); /* Clipboard index */ + sAddUInt32(context, context->m_sequenceNumber); + sAddUInt32(context, 4+4+4+text_length); /* Rest of message size: numFormats, format, length, data */ + sAddUInt32(context, 1); /* Number of formats (only text for now) */ + sAddUInt32(context, USYNERGY_CLIPBOARD_FORMAT_TEXT); + sAddUInt32(context, text_length); + sAddString(context, text); + sSendReply(context); +} diff --git a/HexaGen.Tests/cpp2c/imgui/examples/libs/usynergy/uSynergy.h b/HexaGen.Tests/cpp2c/imgui/examples/libs/usynergy/uSynergy.h new file mode 100644 index 0000000..cedc387 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/examples/libs/usynergy/uSynergy.h @@ -0,0 +1,420 @@ +/* +uSynergy client -- Interface for the embedded Synergy client library + version 1.0.0, July 7th, 2012 + +Copyright (C) 2012 Synergy Si Ltd. +Copyright (c) 2012 Alex Evans + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source + distribution. +*/ +#include + +#ifdef __cplusplus +extern "C" { +#endif + + + +//--------------------------------------------------------------------------------------------------------------------- +// Configuration +//--------------------------------------------------------------------------------------------------------------------- + + + +/** +@brief Determine endianness +**/ +#if defined(USYNERGY_LITTLE_ENDIAN) && defined(USYNERGY_BIG_ENDIAN) + /* Ambiguous: both endians specified */ + #error "Can't define both USYNERGY_LITTLE_ENDIAN and USYNERGY_BIG_ENDIAN" +#elif !defined(USYNERGY_LITTLE_ENDIAN) && !defined(USYNERGY_BIG_ENDIAN) + /* Attempt to auto detect */ + #if defined(__LITTLE_ENDIAN__) || defined(LITTLE_ENDIAN) || (_BYTE_ORDER == _LITTLE_ENDIAN) + #define USYNERGY_LITTLE_ENDIAN + #elif defined(__BIG_ENDIAN__) || defined(BIG_ENDIAN) || (_BYTE_ORDER == _BIG_ENDIAN) + #define USYNERGY_BIG_ENDIAN + #else + #error "Can't detect endian-nes, please defined either USYNERGY_LITTLE_ENDIAN or USYNERGY_BIG_ENDIAN"; + #endif +#else + /* User-specified endian-nes, nothing to do for us */ +#endif + + + +//--------------------------------------------------------------------------------------------------------------------- +// Types and Constants +//--------------------------------------------------------------------------------------------------------------------- + + + +/** +@brief Boolean type +**/ +typedef int uSynergyBool; +#define USYNERGY_FALSE 0 /* False value */ +#define USYNERGY_TRUE 1 /* True value */ + + +/** +@brief User context type + +The uSynergyCookie type is an opaque type that is used by uSynergy to communicate to the client. It is passed along to +callback functions as context. +**/ +typedef struct { int ignored; } * uSynergyCookie; + + + +/** +@brief Clipboard types +**/ +enum uSynergyClipboardFormat +{ + USYNERGY_CLIPBOARD_FORMAT_TEXT = 0, /* Text format, UTF-8, newline is LF */ + USYNERGY_CLIPBOARD_FORMAT_BITMAP = 1, /* Bitmap format, BMP 24/32bpp, BI_RGB */ + USYNERGY_CLIPBOARD_FORMAT_HTML = 2, /* HTML format, HTML fragment, UTF-8, newline is LF */ +}; + + + +/** +@brief Constants and limits +**/ +#define USYNERGY_NUM_JOYSTICKS 4 /* Maximum number of supported joysticks */ + +#define USYNERGY_PROTOCOL_MAJOR 1 /* Major protocol version */ +#define USYNERGY_PROTOCOL_MINOR 4 /* Minor protocol version */ + +#define USYNERGY_IDLE_TIMEOUT 2000 /* Timeout in milliseconds before reconnecting */ + +#define USYNERGY_TRACE_BUFFER_SIZE 1024 /* Maximum length of traced message */ +#define USYNERGY_REPLY_BUFFER_SIZE 1024 /* Maximum size of a reply packet */ +#define USYNERGY_RECEIVE_BUFFER_SIZE 4096 /* Maximum size of an incoming packet */ + + + +/** +@brief Keyboard constants +**/ +#define USYNERGY_MODIFIER_SHIFT 0x0001 /* Shift key modifier */ +#define USYNERGY_MODIFIER_CTRL 0x0002 /* Ctrl key modifier */ +#define USYNERGY_MODIFIER_ALT 0x0004 /* Alt key modifier */ +#define USYNERGY_MODIFIER_META 0x0008 /* Meta key modifier */ +#define USYNERGY_MODIFIER_WIN 0x0010 /* Windows key modifier */ +#define USYNERGY_MODIFIER_ALT_GR 0x0020 /* AltGr key modifier */ +#define USYNERGY_MODIFIER_LEVEL5LOCK 0x0040 /* Level5Lock key modifier */ +#define USYNERGY_MODIFIER_CAPSLOCK 0x1000 /* CapsLock key modifier */ +#define USYNERGY_MODIFIER_NUMLOCK 0x2000 /* NumLock key modifier */ +#define USYNERGY_MODIFIER_SCROLLOCK 0x4000 /* ScrollLock key modifier */ + + + + +//--------------------------------------------------------------------------------------------------------------------- +// Functions and Callbacks +//--------------------------------------------------------------------------------------------------------------------- + + + +/** +@brief Connect function + +This function is called when uSynergy needs to connect to the host. It doesn't imply a network implementation or +destination address, that must all be handled on the user side. The function should return USYNERGY_TRUE if a +connection was established or USYNERGY_FALSE if it could not connect. + +When network errors occur (e.g. uSynergySend or uSynergyReceive fail) then the connect call will be called again +so the implementation of the function must close any old connections and clean up resources before retrying. + +@param cookie Cookie supplied in the Synergy context +**/ +typedef uSynergyBool (*uSynergyConnectFunc)(uSynergyCookie cookie); + + + +/** +@brief Send function + +This function is called when uSynergy needs to send something over the default connection. It should return +USYNERGY_TRUE if sending succeeded and USYNERGY_FALSE otherwise. This function should block until the send +operation is completed. + +@param cookie Cookie supplied in the Synergy context +@param buffer Address of buffer to send +@param length Length of buffer to send +**/ +typedef uSynergyBool (*uSynergySendFunc)(uSynergyCookie cookie, const uint8_t *buffer, int length); + + + +/** +@brief Receive function + +This function is called when uSynergy needs to receive data from the default connection. It should return +USYNERGY_TRUE if receiving data succeeded and USYNERGY_FALSE otherwise. This function should block until data +has been received and wait for data to become available. If @a outLength is set to 0 upon completion it is +assumed that the connection is alive, but still in a connecting state and needs time to settle. + +@param cookie Cookie supplied in the Synergy context +@param buffer Address of buffer to receive data into +@param maxLength Maximum amount of bytes to write into the receive buffer +@param outLength Address of integer that receives the actual amount of bytes written into @a buffer +**/ +typedef uSynergyBool (*uSynergyReceiveFunc)(uSynergyCookie cookie, uint8_t *buffer, int maxLength, int* outLength); + + + +/** +@brief Thread sleep function + +This function is called when uSynergy wants to suspend operation for a while before retrying an operation. It +is mostly used when a socket times out or disconnect occurs to prevent uSynergy from continuously hammering a +network connection in case the network is down. + +@param cookie Cookie supplied in the Synergy context +@param timeMs Time to sleep the current thread (in milliseconds) +**/ +typedef void (*uSynergySleepFunc)(uSynergyCookie cookie, int timeMs); + + + +/** +@brief Get time function + +This function is called when uSynergy needs to know the current time. This is used to determine when timeouts +have occured. The time base should be a cyclic millisecond time value. + +@returns Time value in milliseconds +**/ +typedef uint32_t (*uSynergyGetTimeFunc)(); + + + +/** +@brief Trace function + +This function is called when uSynergy wants to trace something. It is optional to show these messages, but they +are often useful when debugging. uSynergy only traces major events like connecting and disconnecting. Usually +only a single trace is shown when the connection is established and no more trace are called. + +@param cookie Cookie supplied in the Synergy context +@param text Text to be traced +**/ +typedef void (*uSynergyTraceFunc)(uSynergyCookie cookie, const char *text); + + + +/** +@brief Screen active callback + +This callback is called when Synergy makes the screen active or inactive. This +callback is usually sent when the mouse enters or leaves the screen. + +@param cookie Cookie supplied in the Synergy context +@param active Activation flag, 1 if the screen has become active, 0 if the screen has become inactive +**/ +typedef void (*uSynergyScreenActiveCallback)(uSynergyCookie cookie, uSynergyBool active); + + + +/** +@brief Mouse callback + +This callback is called when a mouse events happens. The mouse X and Y position, +wheel and button state is communicated in the message. It's up to the user to +interpret if this is a mouse up, down, double-click or other message. + +@param cookie Cookie supplied in the Synergy context +@param x Mouse X position +@param y Mouse Y position +@param wheelX Mouse wheel X position +@param wheelY Mouse wheel Y position +@param buttonLeft Left button pressed status, 0 for released, 1 for pressed +@param buttonMiddle Middle button pressed status, 0 for released, 1 for pressed +@param buttonRight Right button pressed status, 0 for released, 1 for pressed +**/ +typedef void (*uSynergyMouseCallback)(uSynergyCookie cookie, uint16_t x, uint16_t y, int16_t wheelX, int16_t wheelY, uSynergyBool buttonLeft, uSynergyBool buttonRight, uSynergyBool buttonMiddle); + + + +/** +@brief Key event callback + +This callback is called when a key is pressed or released. + +@param cookie Cookie supplied in the Synergy context +@param key Key code of key that was pressed or released +@param modifiers Status of modifier keys (alt, shift, etc.) +@param down Down or up status, 1 is key is pressed down, 0 if key is released (up) +@param repeat Repeat flag, 1 if the key is down because the key is repeating, 0 if the key is initially pressed by the user +**/ +typedef void (*uSynergyKeyboardCallback)(uSynergyCookie cookie, uint16_t key, uint16_t modifiers, uSynergyBool down, uSynergyBool repeat); + + + +/** +@brief Joystick event callback + +This callback is called when a joystick stick or button changes. It is possible that multiple callbacks are +fired when different sticks or buttons change as these are individual messages in the packet stream. Each +callback will contain all the valid state for the different axes and buttons. The last callback received will +represent the most current joystick state. + +@param cookie Cookie supplied in the Synergy context +@param joyNum Joystick number, always in the range [0 ... USYNERGY_NUM_JOYSTICKS> +@param buttons Button pressed mask +@param leftStickX Left stick X position, in range [-127 ... 127] +@param leftStickY Left stick Y position, in range [-127 ... 127] +@param rightStickX Right stick X position, in range [-127 ... 127] +@param rightStickY Right stick Y position, in range [-127 ... 127] +**/ +typedef void (*uSynergyJoystickCallback)(uSynergyCookie cookie, uint8_t joyNum, uint16_t buttons, int8_t leftStickX, int8_t leftStickY, int8_t rightStickX, int8_t rightStickY); + + + +/** +@brief Clipboard event callback + +This callback is called when something is placed on the clipboard. Multiple callbacks may be fired for +multiple clipboard formats if they are supported. The data provided is read-only and may not be modified +by the application. + +@param cookie Cookie supplied in the Synergy context +@param format Clipboard format +@param data Memory area containing the clipboard raw data +@param size Size of clipboard data +**/ +typedef void (*uSynergyClipboardCallback)(uSynergyCookie cookie, enum uSynergyClipboardFormat format, const uint8_t *data, uint32_t size); + + + +//--------------------------------------------------------------------------------------------------------------------- +// Context +//--------------------------------------------------------------------------------------------------------------------- + + + +/** +@brief uSynergy context +**/ +typedef struct +{ + /* Mandatory configuration data, filled in by client */ + uSynergyConnectFunc m_connectFunc; /* Connect function */ + uSynergySendFunc m_sendFunc; /* Send data function */ + uSynergyReceiveFunc m_receiveFunc; /* Receive data function */ + uSynergySleepFunc m_sleepFunc; /* Thread sleep function */ + uSynergyGetTimeFunc m_getTimeFunc; /* Get current time function */ + const char* m_clientName; /* Name of Synergy Screen / Client */ + uint16_t m_clientWidth; /* Width of screen */ + uint16_t m_clientHeight; /* Height of screen */ + + /* Optional configuration data, filled in by client */ + uSynergyCookie m_cookie; /* Cookie pointer passed to callback functions (can be NULL) */ + uSynergyTraceFunc m_traceFunc; /* Function for tracing status (can be NULL) */ + uSynergyScreenActiveCallback m_screenActiveCallback; /* Callback for entering and leaving screen */ + uSynergyMouseCallback m_mouseCallback; /* Callback for mouse events */ + uSynergyKeyboardCallback m_keyboardCallback; /* Callback for keyboard events */ + uSynergyJoystickCallback m_joystickCallback; /* Callback for joystick events */ + uSynergyClipboardCallback m_clipboardCallback; /* Callback for clipboard events */ + + /* State data, used internall by client, initialized by uSynergyInit() */ + uSynergyBool m_connected; /* Is our socket connected? */ + uSynergyBool m_hasReceivedHello; /* Have we received a 'Hello' from the server? */ + uSynergyBool m_isCaptured; /* Is Synergy active (i.e. this client is receiving input messages?) */ + uint32_t m_lastMessageTime; /* Time at which last message was received */ + uint32_t m_sequenceNumber; /* Packet sequence number */ + uint8_t m_receiveBuffer[USYNERGY_RECEIVE_BUFFER_SIZE]; /* Receive buffer */ + int m_receiveOfs; /* Receive buffer offset */ + uint8_t m_replyBuffer[USYNERGY_REPLY_BUFFER_SIZE]; /* Reply buffer */ + uint8_t* m_replyCur; /* Write offset into reply buffer */ + uint16_t m_mouseX; /* Mouse X position */ + uint16_t m_mouseY; /* Mouse Y position */ + int16_t m_mouseWheelX; /* Mouse wheel X position */ + int16_t m_mouseWheelY; /* Mouse wheel Y position */ + uSynergyBool m_mouseButtonLeft; /* Mouse left button */ + uSynergyBool m_mouseButtonRight; /* Mouse right button */ + uSynergyBool m_mouseButtonMiddle; /* Mouse middle button */ + int8_t m_joystickSticks[USYNERGY_NUM_JOYSTICKS][4]; /* Joystick stick position in 2 axes for 2 sticks */ + uint16_t m_joystickButtons[USYNERGY_NUM_JOYSTICKS]; /* Joystick button state */ +} uSynergyContext; + + + +//--------------------------------------------------------------------------------------------------------------------- +// Interface +//--------------------------------------------------------------------------------------------------------------------- + + + +/** +@brief Initialize uSynergy context + +This function initializes @a context for use. Call this function directly after +creating the context, before filling in any configuration data in it. Not calling +this function will cause undefined behavior. + +@param context Context to be initialized +**/ +extern void uSynergyInit(uSynergyContext *context); + + + +/** +@brief Update uSynergy + +This function updates uSynergy and does the bulk of the work. It does connection management, +receiving data, reconnecting after errors or timeouts and so on. It assumes that networking +operations are blocking and it can suspend the current thread if it needs to wait. It is +best practice to call uSynergyUpdate from a background thread so it is responsive. + +Because uSynergy relies mostly on blocking calls it will mostly stay in thread sleep state +waiting for system mutexes and won't eat much memory. + +uSynergyUpdate doesn't do any memory allocations or have any side effects beyond those of +the callbacks it calls. + +@param context Context to be updated +**/ +extern void uSynergyUpdate(uSynergyContext *context); + + + +/** +@brief Send clipboard data + +This function sets new clipboard data and sends it to the server. Use this function if +your client cuts or copies data onto the clipboard that it needs to share with the +server. + +Currently there is only support for plaintext, but HTML and image data could be +supported with some effort. + +@param context Context to send clipboard data to +@param text Text to set to the clipboard +**/ +extern void uSynergySendClipboard(uSynergyContext *context, const char *text); + + + +#ifdef __cplusplus +}; +#endif diff --git a/HexaGen.Tests/cpp2c/imgui/imconfig.h b/HexaGen.Tests/cpp2c/imgui/imconfig.h new file mode 100644 index 0000000..bac7661 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/imconfig.h @@ -0,0 +1,129 @@ +//----------------------------------------------------------------------------- +// DEAR IMGUI COMPILE-TIME OPTIONS +// Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure. +// You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateContext() to rewire memory allocation functions. +//----------------------------------------------------------------------------- +// A) You may edit imconfig.h (and not overwrite it when updating Dear ImGui, or maintain a patch/rebased branch with your modifications to it) +// B) or '#define IMGUI_USER_CONFIG "my_imgui_config.h"' in your project and then add directives in your own file without touching this template. +//----------------------------------------------------------------------------- +// You need to make sure that configuration settings are defined consistently _everywhere_ Dear ImGui is used, which include the imgui*.cpp +// files but also _any_ of your code that uses Dear ImGui. This is because some compile-time options have an affect on data structures. +// Defining those options in imconfig.h will ensure every compilation unit gets to see the same data structure layouts. +// Call IMGUI_CHECKVERSION() from your .cpp file to verify that the data structures your files are using are matching the ones imgui.cpp is using. +//----------------------------------------------------------------------------- + +#pragma once + +//---- Define assertion handler. Defaults to calling assert(). +// If your macro uses multiple statements, make sure is enclosed in a 'do { .. } while (0)' block so it can be used as a single statement. +//#define IM_ASSERT(_EXPR) MyAssert(_EXPR) +//#define IM_ASSERT(_EXPR) ((void)(_EXPR)) // Disable asserts + +//---- Define attributes of all API symbols declarations, e.g. for DLL under Windows +// Using Dear ImGui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. +// DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() +// for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details. +//#define IMGUI_API __declspec( dllexport ) +//#define IMGUI_API __declspec( dllimport ) + +//---- Don't define obsolete functions/enums/behaviors. Consider enabling from time to time after updating to clean your code of obsolete function/names. +//#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS +//#define IMGUI_DISABLE_OBSOLETE_KEYIO // 1.87: disable legacy io.KeyMap[]+io.KeysDown[] in favor io.AddKeyEvent(). This will be folded into IMGUI_DISABLE_OBSOLETE_FUNCTIONS in a few versions. + +//---- Disable all of Dear ImGui or don't implement standard windows/tools. +// It is very strongly recommended to NOT disable the demo windows and debug tool during development. They are extremely useful in day to day work. Please read comments in imgui_demo.cpp. +//#define IMGUI_DISABLE // Disable everything: all headers and source files will be empty. +//#define IMGUI_DISABLE_DEMO_WINDOWS // Disable demo windows: ShowDemoWindow()/ShowStyleEditor() will be empty. +//#define IMGUI_DISABLE_DEBUG_TOOLS // Disable metrics/debugger and other debug tools: ShowMetricsWindow(), ShowDebugLogWindow() and ShowIDStackToolWindow() will be empty. + +//---- Don't implement some functions to reduce linkage requirements. +//#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS // [Win32] Don't implement default clipboard handler. Won't use and link with OpenClipboard/GetClipboardData/CloseClipboard etc. (user32.lib/.a, kernel32.lib/.a) +//#define IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] [Default with Visual Studio] Implement default IME handler (require imm32.lib/.a, auto-link for Visual Studio, -limm32 on command-line for MinGW) +//#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] [Default with non-Visual Studio compilers] Don't implement default IME handler (won't require imm32.lib/.a) +//#define IMGUI_DISABLE_WIN32_FUNCTIONS // [Win32] Won't use and link with any Win32 function (clipboard, IME). +//#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS // [OSX] Implement default OSX clipboard handler (need to link with '-framework ApplicationServices', this is why this is not the default). +//#define IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS // Don't implement ImFormatString/ImFormatStringV so you can implement them yourself (e.g. if you don't want to link with vsnprintf) +//#define IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS // Don't implement ImFabs/ImSqrt/ImPow/ImFmod/ImCos/ImSin/ImAcos/ImAtan2 so you can implement them yourself. +//#define IMGUI_DISABLE_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite and ImFileHandle at all (replace them with dummies) +//#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite and ImFileHandle so you can implement them yourself if you don't want to link with fopen/fclose/fread/fwrite. This will also disable the LogToTTY() function. +//#define IMGUI_DISABLE_DEFAULT_ALLOCATORS // Don't implement default allocators calling malloc()/free() to avoid linking with them. You will need to call ImGui::SetAllocatorFunctions(). +//#define IMGUI_DISABLE_SSE // Disable use of SSE intrinsics even if available + +//---- Include imgui_user.h at the end of imgui.h as a convenience +//#define IMGUI_INCLUDE_IMGUI_USER_H + +//---- Pack colors to BGRA8 instead of RGBA8 (to avoid converting from one to another) +//#define IMGUI_USE_BGRA_PACKED_COLOR + +//---- Use 32-bit for ImWchar (default is 16-bit) to support unicode planes 1-16. (e.g. point beyond 0xFFFF like emoticons, dingbats, symbols, shapes, ancient languages, etc...) +//#define IMGUI_USE_WCHAR32 + +//---- Avoid multiple STB libraries implementations, or redefine path/filenames to prioritize another version +// By default the embedded implementations are declared static and not available outside of Dear ImGui sources files. +//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" +//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_STB_SPRINTF_FILENAME "my_folder/stb_sprintf.h" // only used if IMGUI_USE_STB_SPRINTF is defined. +//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_SPRINTF_IMPLEMENTATION // only disabled if IMGUI_USE_STB_SPRINTF is defined. + +//---- Use stb_sprintf.h for a faster implementation of vsnprintf instead of the one from libc (unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined) +// Compatibility checks of arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by stb_sprintf.h. +//#define IMGUI_USE_STB_SPRINTF + +//---- Use FreeType to build and rasterize the font atlas (instead of stb_truetype which is embedded by default in Dear ImGui) +// Requires FreeType headers to be available in the include path. Requires program to be compiled with 'misc/freetype/imgui_freetype.cpp' (in this repository) + the FreeType library (not provided). +// On Windows you may use vcpkg with 'vcpkg install freetype --triplet=x64-windows' + 'vcpkg integrate install'. +//#define IMGUI_ENABLE_FREETYPE + +//---- Use FreeType+lunasvg library to render OpenType SVG fonts (SVGinOT) +// Requires lunasvg headers to be available in the include path + program to be linked with the lunasvg library (not provided). +// Only works in combination with IMGUI_ENABLE_FREETYPE. +// (implementation is based on Freetype's rsvg-port.c which is licensed under CeCILL-C Free Software License Agreement) +//#define IMGUI_ENABLE_FREETYPE_LUNASVG + +//---- Use stb_truetype to build and rasterize the font atlas (default) +// The only purpose of this define is if you want force compilation of the stb_truetype backend ALONG with the FreeType backend. +//#define IMGUI_ENABLE_STB_TRUETYPE + +//---- Define constructor and implicit cast operators to convert back<>forth between your math types and ImVec2/ImVec4. +// This will be inlined as part of ImVec2 and ImVec4 class declarations. +/* +#define IM_VEC2_CLASS_EXTRA \ + constexpr ImVec2(const MyVec2& f) : x(f.x), y(f.y) {} \ + operator MyVec2() const { return MyVec2(x,y); } + +#define IM_VEC4_CLASS_EXTRA \ + constexpr ImVec4(const MyVec4& f) : x(f.x), y(f.y), z(f.z), w(f.w) {} \ + operator MyVec4() const { return MyVec4(x,y,z,w); } +*/ +//---- ...Or use Dear ImGui's own very basic math operators. +//#define IMGUI_DEFINE_MATH_OPERATORS + +//---- Use 32-bit vertex indices (default is 16-bit) is one way to allow large meshes with more than 64K vertices. +// Your renderer backend will need to support it (most example renderer backends support both 16/32-bit indices). +// Another way to allow large meshes while keeping 16-bit indices is to handle ImDrawCmd::VtxOffset in your renderer. +// Read about ImGuiBackendFlags_RendererHasVtxOffset for details. +//#define ImDrawIdx unsigned int + +//---- Override ImDrawCallback signature (will need to modify renderer backends accordingly) +//struct ImDrawList; +//struct ImDrawCmd; +//typedef void (*MyImDrawCallback)(const ImDrawList* draw_list, const ImDrawCmd* cmd, void* my_renderer_user_data); +//#define ImDrawCallback MyImDrawCallback + +//---- Debug Tools: Macro to break in Debugger (we provide a default implementation of this in the codebase) +// (use 'Metrics->Tools->Item Picker' to pick widgets with the mouse and break into them for easy debugging.) +//#define IM_DEBUG_BREAK IM_ASSERT(0) +//#define IM_DEBUG_BREAK __debugbreak() + +//---- Debug Tools: Enable slower asserts +//#define IMGUI_DEBUG_PARANOID + +//---- Tip: You can add extra functions within the ImGui:: namespace from anywhere (e.g. your own sources/header files) +/* +namespace ImGui +{ + void MyFunction(const char* name, MyMatrix44* mtx); +} +*/ diff --git a/HexaGen.Tests/cpp2c/imgui/imgui.cpp b/HexaGen.Tests/cpp2c/imgui/imgui.cpp new file mode 100644 index 0000000..00f19a6 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/imgui.cpp @@ -0,0 +1,20904 @@ +// dear imgui, v1.90 WIP +// (main code and documentation) + +// Help: +// - See links below. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// - Read top of imgui.cpp for more details, links and comments. + +// Resources: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Homepage https://github.com/ocornut/imgui +// - Releases & changelog https://github.com/ocornut/imgui/releases +// - Gallery https://github.com/ocornut/imgui/issues/6897 (please post your screenshots/video there!) +// - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) +// - Glossary https://github.com/ocornut/imgui/wiki/Glossary +// - Issues & support https://github.com/ocornut/imgui/issues +// - Tests & Automation https://github.com/ocornut/imgui_test_engine + +// For first-time users having issues compiling/linking/running/loading fonts: +// please post in https://github.com/ocornut/imgui/discussions if you cannot find a solution in resources above. +// Everything else should be asked in 'Issues'! We are building a database of cross-linked knowledge there. + +// Copyright (c) 2014-2023 Omar Cornut +// Developed by Omar Cornut and every direct or indirect contributors to the GitHub. +// See LICENSE.txt for copyright and licensing details (standard MIT License). +// This library is free but needs your support to sustain development and maintenance. +// Businesses: you can support continued development via B2B invoiced technical support, maintenance and sponsoring contracts. +// PLEASE reach out at omar AT dearimgui DOT com. See https://github.com/ocornut/imgui/wiki/Sponsors +// Businesses: you can also purchase licenses for the Dear ImGui Automation/Test Engine. + +// It is recommended that you don't modify imgui.cpp! It will become difficult for you to update the library. +// Note that 'ImGui::' being a namespace, you can add functions into the namespace from your own source files, without +// modifying imgui.h or imgui.cpp. You may include imgui_internal.h to access internal data structures, but it doesn't +// come with any guarantee of forward compatibility. Discussing your changes on the GitHub Issue Tracker may lead you +// to a better solution or official support for them. + +/* + +Index of this file: + +DOCUMENTATION + +- MISSION STATEMENT +- CONTROLS GUIDE +- PROGRAMMER GUIDE + - READ FIRST + - HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI + - GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE + - HOW A SIMPLE APPLICATION MAY LOOK LIKE + - HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE +- API BREAKING CHANGES (read me when you update!) +- FREQUENTLY ASKED QUESTIONS (FAQ) + - Read all answers online: https://www.dearimgui.com/faq, or in docs/FAQ.md (with a Markdown viewer) + +CODE +(search for "[SECTION]" in the code to find them) + +// [SECTION] INCLUDES +// [SECTION] FORWARD DECLARATIONS +// [SECTION] CONTEXT AND MEMORY ALLOCATORS +// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) +// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) +// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) +// [SECTION] MISC HELPERS/UTILITIES (File functions) +// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) +// [SECTION] MISC HELPERS/UTILITIES (Color functions) +// [SECTION] ImGuiStorage +// [SECTION] ImGuiTextFilter +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex +// [SECTION] ImGuiListClipper +// [SECTION] STYLING +// [SECTION] RENDER HELPERS +// [SECTION] INITIALIZATION, SHUTDOWN +// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +// [SECTION] INPUTS +// [SECTION] ERROR CHECKING +// [SECTION] LAYOUT +// [SECTION] SCROLLING +// [SECTION] TOOLTIPS +// [SECTION] POPUPS +// [SECTION] KEYBOARD/GAMEPAD NAVIGATION +// [SECTION] DRAG AND DROP +// [SECTION] LOGGING/CAPTURING +// [SECTION] SETTINGS +// [SECTION] LOCALIZATION +// [SECTION] VIEWPORTS, PLATFORM WINDOWS +// [SECTION] DOCKING +// [SECTION] PLATFORM DEPENDENT HELPERS +// [SECTION] METRICS/DEBUGGER WINDOW +// [SECTION] DEBUG LOG WINDOW +// [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, ID STACK TOOL) + +*/ + +//----------------------------------------------------------------------------- +// DOCUMENTATION +//----------------------------------------------------------------------------- + +/* + + MISSION STATEMENT + ================= + + - Easy to use to create code-driven and data-driven tools. + - Easy to use to create ad hoc short-lived tools and long-lived, more elaborate tools. + - Easy to hack and improve. + - Minimize setup and maintenance. + - Minimize state storage on user side. + - Minimize state synchronization. + - Portable, minimize dependencies, run on target (consoles, phones, etc.). + - Efficient runtime and memory consumption. + + Designed primarily for developers and content-creators, not the typical end-user! + Some of the current weaknesses (which we aim to address in the future) includes: + + - Doesn't look fancy. + - Limited layout features, intricate layouts are typically crafted in code. + + + CONTROLS GUIDE + ============== + + - MOUSE CONTROLS + - Mouse wheel: Scroll vertically. + - SHIFT+Mouse wheel: Scroll horizontally. + - Click [X]: Close a window, available when 'bool* p_open' is passed to ImGui::Begin(). + - Click ^, Double-Click title: Collapse window. + - Drag on corner/border: Resize window (double-click to auto fit window to its contents). + - Drag on any empty space: Move window (unless io.ConfigWindowsMoveFromTitleBarOnly = true). + - Left-click outside popup: Close popup stack (right-click over underlying popup: Partially close popup stack). + + - TEXT EDITOR + - Hold SHIFT or Drag Mouse: Select text. + - CTRL+Left/Right: Word jump. + - CTRL+Shift+Left/Right: Select words. + - CTRL+A or Double-Click: Select All. + - CTRL+X, CTRL+C, CTRL+V: Use OS clipboard. + - CTRL+Z, CTRL+Y: Undo, Redo. + - ESCAPE: Revert text to its original value. + - On OSX, controls are automatically adjusted to match standard OSX text editing shortcuts and behaviors. + + - KEYBOARD CONTROLS + - Basic: + - Tab, SHIFT+Tab Cycle through text editable fields. + - CTRL+Tab, CTRL+Shift+Tab Cycle through windows. + - CTRL+Click Input text into a Slider or Drag widget. + - Extended features with `io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard`: + - Tab, SHIFT+Tab: Cycle through every items. + - Arrow keys Move through items using directional navigation. Tweak value. + - Arrow keys + Alt, Shift Tweak slower, tweak faster (when using arrow keys). + - Enter Activate item (prefer text input when possible). + - Space Activate item (prefer tweaking with arrows when possible). + - Escape Deactivate item, leave child window, close popup. + - Page Up, Page Down Previous page, next page. + - Home, End Scroll to top, scroll to bottom. + - Alt Toggle between scrolling layer and menu layer. + - CTRL+Tab then Ctrl+Arrows Move window. Hold SHIFT to resize instead of moving. + - Output when ImGuiConfigFlags_NavEnableKeyboard set, + - io.WantCaptureKeyboard flag is set when keyboard is claimed. + - io.NavActive: true when a window is focused and it doesn't have the ImGuiWindowFlags_NoNavInputs flag set. + - io.NavVisible: true when the navigation cursor is visible (usually goes to back false when mouse is used). + + - GAMEPAD CONTROLS + - Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. + - Particularly useful to use Dear ImGui on a console system (e.g. PlayStation, Switch, Xbox) without a mouse! + - Download controller mapping PNG/PSD at http://dearimgui.com/controls_sheets + - Backend support: backend needs to: + - Set 'io.BackendFlags |= ImGuiBackendFlags_HasGamepad' + call io.AddKeyEvent/AddKeyAnalogEvent() with ImGuiKey_Gamepad_XXX keys. + - For analog values (0.0f to 1.0f), backend is responsible to handling a dead-zone and rescaling inputs accordingly. + Backend code will probably need to transform your raw inputs (such as e.g. remapping your 0.2..0.9 raw input range to 0.0..1.0 imgui range, etc.). + - BEFORE 1.87, BACKENDS USED TO WRITE TO io.NavInputs[]. This is now obsolete. Please call io functions instead! + - If you need to share inputs between your game and the Dear ImGui interface, the easiest approach is to go all-or-nothing, + with a buttons combo to toggle the target. Please reach out if you think the game vs navigation input sharing could be improved. + + - REMOTE INPUTS SHARING & MOUSE EMULATION + - PS4/PS5 users: Consider emulating a mouse cursor with DualShock touch pad or a spare analog stick as a mouse-emulation fallback. + - Consoles/Tablet/Phone users: Consider using a Synergy 1.x server (on your PC) + run examples/libs/synergy/uSynergy.c (on your console/tablet/phone app) + in order to share your PC mouse/keyboard. + - See https://github.com/ocornut/imgui/wiki/Useful-Extensions#remoting for other remoting solutions. + - On a TV/console system where readability may be lower or mouse inputs may be awkward, you may want to set the ImGuiConfigFlags_NavEnableSetMousePos flag. + Enabling ImGuiConfigFlags_NavEnableSetMousePos + ImGuiBackendFlags_HasSetMousePos instructs Dear ImGui to move your mouse cursor along with navigation movements. + When enabled, the NewFrame() function may alter 'io.MousePos' and set 'io.WantSetMousePos' to notify you that it wants the mouse cursor to be moved. + When that happens your backend NEEDS to move the OS or underlying mouse cursor on the next frame. Some of the backends in examples/ do that. + (If you set the NavEnableSetMousePos flag but don't honor 'io.WantSetMousePos' properly, Dear ImGui will misbehave as it will see your mouse moving back & forth!) + (In a setup when you may not have easy control over the mouse cursor, e.g. uSynergy.c doesn't expose moving remote mouse cursor, you may want + to set a boolean to ignore your other external mouse positions until the external source is moved again.) + + + PROGRAMMER GUIDE + ================ + + READ FIRST + ---------- + - Remember to check the wonderful Wiki (https://github.com/ocornut/imgui/wiki) + - Your code creates the UI every frame of your application loop, if your code doesn't run the UI is gone! + The UI can be highly dynamic, there are no construction or destruction steps, less superfluous + data retention on your side, less state duplication, less state synchronization, fewer bugs. + - Call and read ImGui::ShowDemoWindow() for demo code demonstrating most features. + Or browse https://pthom.github.io/imgui_manual_online/manual/imgui_manual.html for interactive web version. + - The library is designed to be built from sources. Avoid pre-compiled binaries and packaged versions. See imconfig.h to configure your build. + - Dear ImGui is an implementation of the IMGUI paradigm (immediate-mode graphical user interface, a term coined by Casey Muratori). + You can learn about IMGUI principles at http://www.johno.se/book/imgui.html, http://mollyrocket.com/861 & more links in Wiki. + - Dear ImGui is a "single pass" rasterizing implementation of the IMGUI paradigm, aimed at ease of use and high-performances. + For every application frame, your UI code will be called only once. This is in contrast to e.g. Unity's implementation of an IMGUI, + where the UI code is called multiple times ("multiple passes") from a single entry point. There are pros and cons to both approaches. + - Our origin is on the top-left. In axis aligned bounding boxes, Min = top-left, Max = bottom-right. + - Please make sure you have asserts enabled (IM_ASSERT redirects to assert() by default, but can be redirected). + If you get an assert, read the messages and comments around the assert. + - This codebase aims to be highly optimized: + - A typical idle frame should never call malloc/free. + - We rely on a maximum of constant-time or O(N) algorithms. Limiting searches/scans as much as possible. + - We put particular energy in making sure performances are decent with typical "Debug" build settings as well. + Which mean we tend to avoid over-relying on "zero-cost abstraction" as they aren't zero-cost at all. + - This codebase aims to be both highly opinionated and highly flexible: + - This code works because of the things it choose to solve or not solve. + - C++: this is a pragmatic C-ish codebase: we don't use fancy C++ features, we don't include C++ headers, + and ImGui:: is a namespace. We rarely use member functions (and when we did, I am mostly regretting it now). + This is to increase compatibility, increase maintainability and facilitate use from other languages. + - C++: ImVec2/ImVec4 do not expose math operators by default, because it is expected that you use your own math types. + See FAQ "How can I use my own math types instead of ImVec2/ImVec4?" for details about setting up imconfig.h for that. + We can can optionally export math operators for ImVec2/ImVec4 using IMGUI_DEFINE_MATH_OPERATORS, which we use internally. + - C++: pay attention that ImVector<> manipulates plain-old-data and does not honor construction/destruction + (so don't use ImVector in your code or at our own risk!). + - Building: We don't use nor mandate a build system for the main library. + This is in an effort to ensure that it works in the real world aka with any esoteric build setup. + This is also because providing a build system for the main library would be of little-value. + The build problems are almost never coming from the main library but from specific backends. + + + HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI + ---------------------------------------------- + - Update submodule or copy/overwrite every file. + - About imconfig.h: + - You may modify your copy of imconfig.h, in this case don't overwrite it. + - or you may locally branch to modify imconfig.h and merge/rebase latest. + - or you may '#define IMGUI_USER_CONFIG "my_config_file.h"' globally from your build system to + specify a custom path for your imconfig.h file and instead not have to modify the default one. + + - Overwrite all the sources files except for imconfig.h (if you have modified your copy of imconfig.h) + - Or maintain your own branch where you have imconfig.h modified as a top-most commit which you can regularly rebase over "master". + - You can also use '#define IMGUI_USER_CONFIG "my_config_file.h" to redirect configuration to your own file. + - Read the "API BREAKING CHANGES" section (below). This is where we list occasional API breaking changes. + If a function/type has been renamed / or marked obsolete, try to fix the name in your code before it is permanently removed + from the public API. If you have a problem with a missing function/symbols, search for its name in the code, there will + likely be a comment about it. Please report any issue to the GitHub page! + - To find out usage of old API, you can add '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in your configuration file. + - Try to keep your copy of Dear ImGui reasonably up to date! + + + GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE + --------------------------------------------------------------- + - See https://github.com/ocornut/imgui/wiki/Getting-Started. + - Run and study the examples and demo in imgui_demo.cpp to get acquainted with the library. + - In the majority of cases you should be able to use unmodified backends files available in the backends/ folder. + - Add the Dear ImGui source files + selected backend source files to your projects or using your preferred build system. + It is recommended you build and statically link the .cpp files as part of your project and NOT as a shared library (DLL). + - You can later customize the imconfig.h file to tweak some compile-time behavior, such as integrating Dear ImGui types with your own maths types. + - When using Dear ImGui, your programming IDE is your friend: follow the declaration of variables, functions and types to find comments about them. + - Dear ImGui never touches or knows about your GPU state. The only function that knows about GPU is the draw function that you provide. + Effectively it means you can create widgets at any time in your code, regardless of considerations of being in "update" vs "render" + phases of your own application. All rendering information is stored into command-lists that you will retrieve after calling ImGui::Render(). + - Refer to the backends and demo applications in the examples/ folder for instruction on how to setup your code. + - If you are running over a standard OS with a common graphics API, you should be able to use unmodified imgui_impl_*** files from the examples/ folder. + + + HOW A SIMPLE APPLICATION MAY LOOK LIKE + -------------------------------------- + EXHIBIT 1: USING THE EXAMPLE BACKENDS (= imgui_impl_XXX.cpp files from the backends/ folder). + The sub-folders in examples/ contain examples applications following this structure. + + // Application init: create a dear imgui context, setup some options, load fonts + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. + // TODO: Fill optional fields of the io structure later. + // TODO: Load TTF/OTF fonts if you don't want to use the default font. + + // Initialize helper Platform and Renderer backends (here we are using imgui_impl_win32.cpp and imgui_impl_dx11.cpp) + ImGui_ImplWin32_Init(hwnd); + ImGui_ImplDX11_Init(g_pd3dDevice, g_pd3dDeviceContext); + + // Application main loop + while (true) + { + // Feed inputs to dear imgui, start new frame + ImGui_ImplDX11_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + // Any application code here + ImGui::Text("Hello, world!"); + + // Render dear imgui into screen + ImGui::Render(); + ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); + g_pSwapChain->Present(1, 0); + } + + // Shutdown + ImGui_ImplDX11_Shutdown(); + ImGui_ImplWin32_Shutdown(); + ImGui::DestroyContext(); + + EXHIBIT 2: IMPLEMENTING CUSTOM BACKEND / CUSTOM ENGINE + + // Application init: create a dear imgui context, setup some options, load fonts + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. + // TODO: Fill optional fields of the io structure later. + // TODO: Load TTF/OTF fonts if you don't want to use the default font. + + // Build and load the texture atlas into a texture + // (In the examples/ app this is usually done within the ImGui_ImplXXX_Init() function from one of the demo Renderer) + int width, height; + unsigned char* pixels = nullptr; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + + // At this point you've got the texture data and you need to upload that to your graphic system: + // After we have created the texture, store its pointer/identifier (_in whichever format your engine uses_) in 'io.Fonts->TexID'. + // This will be passed back to your via the renderer. Basically ImTextureID == void*. Read FAQ for details about ImTextureID. + MyTexture* texture = MyEngine::CreateTextureFromMemoryPixels(pixels, width, height, TEXTURE_TYPE_RGBA32) + io.Fonts->SetTexID((void*)texture); + + // Application main loop + while (true) + { + // Setup low-level inputs, e.g. on Win32: calling GetKeyboardState(), or write to those fields from your Windows message handlers, etc. + // (In the examples/ app this is usually done within the ImGui_ImplXXX_NewFrame() function from one of the demo Platform Backends) + io.DeltaTime = 1.0f/60.0f; // set the time elapsed since the previous frame (in seconds) + io.DisplaySize.x = 1920.0f; // set the current display width + io.DisplaySize.y = 1280.0f; // set the current display height here + io.AddMousePosEvent(mouse_x, mouse_y); // update mouse position + io.AddMouseButtonEvent(0, mouse_b[0]); // update mouse button states + io.AddMouseButtonEvent(1, mouse_b[1]); // update mouse button states + + // Call NewFrame(), after this point you can use ImGui::* functions anytime + // (So you want to try calling NewFrame() as early as you can in your main loop to be able to use Dear ImGui everywhere) + ImGui::NewFrame(); + + // Most of your application code here + ImGui::Text("Hello, world!"); + MyGameUpdate(); // may use any Dear ImGui functions, e.g. ImGui::Begin("My window"); ImGui::Text("Hello, world!"); ImGui::End(); + MyGameRender(); // may use any Dear ImGui functions as well! + + // Render dear imgui, swap buffers + // (You want to try calling EndFrame/Render as late as you can, to be able to use Dear ImGui in your own game rendering code) + ImGui::EndFrame(); + ImGui::Render(); + ImDrawData* draw_data = ImGui::GetDrawData(); + MyImGuiRenderFunction(draw_data); + SwapBuffers(); + } + + // Shutdown + ImGui::DestroyContext(); + + To decide whether to dispatch mouse/keyboard inputs to Dear ImGui to the rest of your application, + you should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! + Please read the FAQ and example applications for details about this! + + + HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE + --------------------------------------------- + The backends in impl_impl_XXX.cpp files contain many working implementations of a rendering function. + + void MyImGuiRenderFunction(ImDrawData* draw_data) + { + // TODO: Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled + // TODO: Setup texture sampling state: sample with bilinear filtering (NOT point/nearest filtering). Use 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines;' to allow point/nearest filtering. + // TODO: Setup viewport covering draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize + // TODO: Setup orthographic projection matrix cover draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize + // TODO: Setup shader: vertex { float2 pos, float2 uv, u32 color }, fragment shader sample color from 1 texture, multiply by vertex color. + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; // vertex buffer generated by Dear ImGui + const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; // index buffer generated by Dear ImGui + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // We are using scissoring to clip some objects. All low-level graphics API should support it. + // - If your engine doesn't support scissoring yet, you may ignore this at first. You will get some small glitches + // (some elements visible outside their bounds) but you can fix that once everything else works! + // - Clipping coordinates are provided in imgui coordinates space: + // - For a given viewport, draw_data->DisplayPos == viewport->Pos and draw_data->DisplaySize == viewport->Size + // - In a single viewport application, draw_data->DisplayPos == (0,0) and draw_data->DisplaySize == io.DisplaySize, but always use GetMainViewport()->Pos/Size instead of hardcoding those values. + // - In the interest of supporting multi-viewport applications (see 'docking' branch on github), + // always subtract draw_data->DisplayPos from clipping bounds to convert them to your viewport space. + // - Note that pcmd->ClipRect contains Min+Max bounds. Some graphics API may use Min+Max, other may use Min+Size (size being Max-Min) + MyEngineSetScissor(clip_min.x, clip_min.y, clip_max.x, clip_max.y); + + // The texture for the draw call is specified by pcmd->GetTexID(). + // The vast majority of draw calls will use the Dear ImGui texture atlas, which value you have set yourself during initialization. + MyEngineBindTexture((MyTexture*)pcmd->GetTexID()); + + // Render 'pcmd->ElemCount/3' indexed triangles. + // By default the indices ImDrawIdx are 16-bit, you can change them to 32-bit in imconfig.h if your engine doesn't support 16-bit indices. + MyEngineDrawIndexedTriangles(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer + pcmd->IdxOffset, vtx_buffer, pcmd->VtxOffset); + } + } + } + } + + + API BREAKING CHANGES + ==================== + + Occasionally introducing changes that are breaking the API. We try to make the breakage minor and easy to fix. + Below is a change-log of API breaking changes only. If you are using one of the functions listed, expect to have to fix some code. + When you are not sure about an old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files. + You can read releases logs https://github.com/ocornut/imgui/releases for more details. + +(Docking/Viewport Branch) + - 2023/XX/XX (1.XXXX) - when multi-viewports are enabled, all positions will be in your natural OS coordinates space. It means that: + - reference to hard-coded positions such as in SetNextWindowPos(ImVec2(0,0)) are probably not what you want anymore. + you may use GetMainViewport()->Pos to offset hard-coded positions, e.g. SetNextWindowPos(GetMainViewport()->Pos) + - likewise io.MousePos and GetMousePos() will use OS coordinates. + If you query mouse positions to interact with non-imgui coordinates you will need to offset them, e.g. subtract GetWindowViewport()->Pos. + + - 2023/09/27 (1.90.0) - io: removed io.MetricsActiveAllocations introduced in 1.63. Same as 'g.DebugMemAllocCount - g.DebugMemFreeCount' (still displayed in Metrics, unlikely to be accessed by end-user). + - 2023/09/26 (1.90.0) - debug tools: Renamed ShowStackToolWindow() ("Stack Tool") to ShowIDStackToolWindow() ("ID Stack Tool"), as earlier name was misleading. Kept inline redirection function. (#4631) + - 2023/09/15 (1.90.0) - ListBox, Combo: changed signature of "name getter" callback in old one-liner ListBox()/Combo() apis. kept inline redirection function (will obsolete). + - old: bool Combo(const char* label, int* current_item, bool (*getter)(void* user_data, int idx, const char** out_text), ...) + - new: bool Combo(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), ...); + - old: bool ListBox(const char* label, int* current_item, bool (*getting)(void* user_data, int idx, const char** out_text), ...); + - new: bool ListBox(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), ...); + - 2023/09/08 (1.90.0) - commented out obsolete redirecting functions: + - GetWindowContentRegionWidth() -> use GetWindowContentRegionMax().x - GetWindowContentRegionMin().x. Consider that generally 'GetContentRegionAvail().x' is more useful. + - ImDrawCornerFlags_XXX -> use ImDrawFlags_RoundCornersXXX flags. Read 1.82 Changelog for details + grep commented names in sources. + - commented out runtime support for hardcoded ~0 or 0x01..0x0F rounding flags values for AddRect()/AddRectFilled()/PathRect()/AddImageRounded() -> use ImDrawFlags_RoundCornersXXX flags. Read 1.82 Changelog for details + - 2023/08/25 (1.89.9) - clipper: Renamed IncludeRangeByIndices() (also called ForceDisplayRangeByIndices() before 1.89.6) to IncludeItemsByIndex(). Kept inline redirection function. Sorry! + - 2023/07/12 (1.89.8) - ImDrawData: CmdLists now owned, changed from ImDrawList** to ImVector. Majority of users shouldn't be affected, but you cannot compare to NULL nor reassign manually anymore. Instead use AddDrawList(). (#6406, #4879, #1878) + - 2023/06/28 (1.89.7) - overlapping items: obsoleted 'SetItemAllowOverlap()' (called after item) in favor of calling 'SetNextItemAllowOverlap()' (called before item). 'SetItemAllowOverlap()' didn't and couldn't work reliably since 1.89 (2022-11-15). + - 2023/06/28 (1.89.7) - overlapping items: renamed 'ImGuiTreeNodeFlags_AllowItemOverlap' to 'ImGuiTreeNodeFlags_AllowOverlap', 'ImGuiSelectableFlags_AllowItemOverlap' to 'ImGuiSelectableFlags_AllowOverlap'. Kept redirecting enums (will obsolete). + - 2023/06/28 (1.89.7) - overlapping items: IsItemHovered() now by default return false when querying an item using AllowOverlap mode which is being overlapped. Use ImGuiHoveredFlags_AllowWhenOverlappedByItem to revert to old behavior. + - 2023/06/28 (1.89.7) - overlapping items: Selectable and TreeNode don't allow overlap when active so overlapping widgets won't appear as hovered. While this fixes a common small visual issue, it also means that calling IsItemHovered() after a non-reactive elements - e.g. Text() - overlapping an active one may fail if you don't use IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem). (#6610) + - 2023/06/20 (1.89.7) - moved io.HoverDelayShort/io.HoverDelayNormal to style.HoverDelayShort/style.HoverDelayNormal. As the fields were added in 1.89 and expected to be left unchanged by most users, or only tweaked once during app initialization, we are exceptionally accepting the breakage. + - 2023/05/30 (1.89.6) - backends: renamed "imgui_impl_sdlrenderer.cpp" to "imgui_impl_sdlrenderer2.cpp" and "imgui_impl_sdlrenderer.h" to "imgui_impl_sdlrenderer2.h". This is in prevision for the future release of SDL3. + - 2023/05/22 (1.89.6) - listbox: commented out obsolete/redirecting functions that were marked obsolete more than two years ago: + - ListBoxHeader() -> use BeginListBox() (note how two variants of ListBoxHeader() existed. Check commented versions in imgui.h for reference) + - ListBoxFooter() -> use EndListBox() + - 2023/05/15 (1.89.6) - clipper: commented out obsolete redirection constructor 'ImGuiListClipper(int items_count, float items_height = -1.0f)' that was marked obsolete in 1.79. Use default constructor + clipper.Begin(). + - 2023/05/15 (1.89.6) - clipper: renamed ImGuiListClipper::ForceDisplayRangeByIndices() to ImGuiListClipper::IncludeRangeByIndices(). + - 2023/03/14 (1.89.4) - commented out redirecting enums/functions names that were marked obsolete two years ago: + - ImGuiSliderFlags_ClampOnInput -> use ImGuiSliderFlags_AlwaysClamp + - ImGuiInputTextFlags_AlwaysInsertMode -> use ImGuiInputTextFlags_AlwaysOverwrite + - ImDrawList::AddBezierCurve() -> use ImDrawList::AddBezierCubic() + - ImDrawList::PathBezierCurveTo() -> use ImDrawList::PathBezierCubicCurveTo() + - 2023/03/09 (1.89.4) - renamed PushAllowKeyboardFocus()/PopAllowKeyboardFocus() to PushTabStop()/PopTabStop(). Kept inline redirection functions (will obsolete). + - 2023/03/09 (1.89.4) - tooltips: Added 'bool' return value to BeginTooltip() for API consistency. Please only submit contents and call EndTooltip() if BeginTooltip() returns true. In reality the function will _currently_ always return true, but further changes down the line may change this, best to clarify API sooner. + - 2023/02/15 (1.89.4) - moved the optional "courtesy maths operators" implementation from imgui_internal.h in imgui.h. + Even though we encourage using your own maths types and operators by setting up IM_VEC2_CLASS_EXTRA, + it has been frequently requested by people to use our own. We had an opt-in define which was + previously fulfilled in imgui_internal.h. It is now fulfilled in imgui.h. (#6164) + - OK: #define IMGUI_DEFINE_MATH_OPERATORS / #include "imgui.h" / #include "imgui_internal.h" + - Error: #include "imgui.h" / #define IMGUI_DEFINE_MATH_OPERATORS / #include "imgui_internal.h" + - 2023/02/07 (1.89.3) - backends: renamed "imgui_impl_sdl.cpp" to "imgui_impl_sdl2.cpp" and "imgui_impl_sdl.h" to "imgui_impl_sdl2.h". (#6146) This is in prevision for the future release of SDL3. + - 2022/10/26 (1.89) - commented out redirecting OpenPopupContextItem() which was briefly the name of OpenPopupOnItemClick() from 1.77 to 1.79. + - 2022/10/12 (1.89) - removed runtime patching of invalid "%f"/"%0.f" format strings for DragInt()/SliderInt(). This was obsoleted in 1.61 (May 2018). See 1.61 changelog for details. + - 2022/09/26 (1.89) - renamed and merged keyboard modifiers key enums and flags into a same set. Kept inline redirection enums (will obsolete). + - ImGuiKey_ModCtrl and ImGuiModFlags_Ctrl -> ImGuiMod_Ctrl + - ImGuiKey_ModShift and ImGuiModFlags_Shift -> ImGuiMod_Shift + - ImGuiKey_ModAlt and ImGuiModFlags_Alt -> ImGuiMod_Alt + - ImGuiKey_ModSuper and ImGuiModFlags_Super -> ImGuiMod_Super + the ImGuiKey_ModXXX were introduced in 1.87 and mostly used by backends. + the ImGuiModFlags_XXX have been exposed in imgui.h but not really used by any public api only by third-party extensions. + exceptionally commenting out the older ImGuiKeyModFlags_XXX names ahead of obsolescence schedule to reduce confusion and because they were not meant to be used anyway. + - 2022/09/20 (1.89) - ImGuiKey is now a typed enum, allowing ImGuiKey_XXX symbols to be named in debuggers. + this will require uses of legacy backend-dependent indices to be casted, e.g. + - with imgui_impl_glfw: IsKeyPressed(GLFW_KEY_A) -> IsKeyPressed((ImGuiKey)GLFW_KEY_A); + - with imgui_impl_win32: IsKeyPressed('A') -> IsKeyPressed((ImGuiKey)'A') + - etc. However if you are upgrading code you might well use the better, backend-agnostic IsKeyPressed(ImGuiKey_A) now! + - 2022/09/12 (1.89) - removed the bizarre legacy default argument for 'TreePush(const void* ptr = NULL)', always pass a pointer value explicitly. NULL/nullptr is ok but require cast, e.g. TreePush((void*)nullptr); + - 2022/09/05 (1.89) - commented out redirecting functions/enums names that were marked obsolete in 1.77 and 1.78 (June 2020): + - DragScalar(), DragScalarN(), DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - SliderScalar(), SliderScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - BeginPopupContextWindow(const char*, ImGuiMouseButton, bool) -> use BeginPopupContextWindow(const char*, ImGuiPopupFlags) + - 2022/09/02 (1.89) - obsoleted using SetCursorPos()/SetCursorScreenPos() to extend parent window/cell boundaries. + this relates to when moving the cursor position beyond current boundaries WITHOUT submitting an item. + - previously this would make the window content size ~200x200: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); + - instead, please submit an item: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); + - alternative: + Begin(...) + Dummy(ImVec2(200,200)) + End(); + - content size is now only extended when submitting an item! + - with '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will now be detected and assert. + - without '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will silently be fixed until we obsolete it. + - 2022/08/03 (1.89) - changed signature of ImageButton() function. Kept redirection function (will obsolete). + - added 'const char* str_id' parameter + removed 'int frame_padding = -1' parameter. + - old signature: bool ImageButton(ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), int frame_padding = -1, ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - used the ImTextureID value to create an ID. This was inconsistent with other functions, led to ID conflicts, and caused problems with engines using transient ImTextureID values. + - had a FramePadding override which was inconsistent with other functions and made the already-long signature even longer. + - new signature: bool ImageButton(const char* str_id, ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - requires an explicit identifier. You may still use e.g. PushID() calls and then pass an empty identifier. + - always uses style.FramePadding for padding, to be consistent with other buttons. You may use PushStyleVar() to alter this. + - 2022/07/08 (1.89) - inputs: removed io.NavInputs[] and ImGuiNavInput enum (following 1.87 changes). + - Official backends from 1.87+ -> no issue. + - Official backends from 1.60 to 1.86 -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need updating! + - Custom backends not writing to io.NavInputs[] -> no issue. + - Custom backends writing to io.NavInputs[] -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need fixing! + - TL;DR: Backends should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values instead of filling io.NavInput[]. + - 2022/06/15 (1.88) - renamed IMGUI_DISABLE_METRICS_WINDOW to IMGUI_DISABLE_DEBUG_TOOLS for correctness. kept support for old define (will obsolete). + - 2022/05/03 (1.88) - backends: osx: removed ImGui_ImplOSX_HandleEvent() from backend API in favor of backend automatically handling event capture. All ImGui_ImplOSX_HandleEvent() calls should be removed as they are now unnecessary. + - 2022/04/05 (1.88) - inputs: renamed ImGuiKeyModFlags to ImGuiModFlags. Kept inline redirection enums (will obsolete). This was never used in public API functions but technically present in imgui.h and ImGuiIO. + - 2022/01/20 (1.87) - inputs: reworded gamepad IO. + - Backend writing to io.NavInputs[] -> backend should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values. + - 2022/01/19 (1.87) - sliders, drags: removed support for legacy arithmetic operators (+,+-,*,/) when inputing text. This doesn't break any api/code but a feature that used to be accessible by end-users (which seemingly no one used). + - 2022/01/17 (1.87) - inputs: reworked mouse IO. + - Backend writing to io.MousePos -> backend should call io.AddMousePosEvent() + - Backend writing to io.MouseDown[] -> backend should call io.AddMouseButtonEvent() + - Backend writing to io.MouseWheel -> backend should call io.AddMouseWheelEvent() + - Backend writing to io.MouseHoveredViewport -> backend should call io.AddMouseViewportEvent() [Docking branch w/ multi-viewports only] + note: for all calls to IO new functions, the Dear ImGui context should be bound/current. + read https://github.com/ocornut/imgui/issues/4921 for details. + - 2022/01/10 (1.87) - inputs: reworked keyboard IO. Removed io.KeyMap[], io.KeysDown[] in favor of calling io.AddKeyEvent(). Removed GetKeyIndex(), now unecessary. All IsKeyXXX() functions now take ImGuiKey values. All features are still functional until IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Read Changelog and Release Notes for details. + - IsKeyPressed(MY_NATIVE_KEY_XXX) -> use IsKeyPressed(ImGuiKey_XXX) + - IsKeyPressed(GetKeyIndex(ImGuiKey_XXX)) -> use IsKeyPressed(ImGuiKey_XXX) + - Backend writing to io.KeyMap[],io.KeysDown[] -> backend should call io.AddKeyEvent() (+ call io.SetKeyEventNativeData() if you want legacy user code to stil function with legacy key codes). + - Backend writing to io.KeyCtrl, io.KeyShift.. -> backend should call io.AddKeyEvent() with ImGuiMod_XXX values. *IF YOU PULLED CODE BETWEEN 2021/01/10 and 2021/01/27: We used to have a io.AddKeyModsEvent() function which was now replaced by io.AddKeyEvent() with ImGuiMod_XXX values.* + - one case won't work with backward compatibility: if your custom backend used ImGuiKey as mock native indices (e.g. "io.KeyMap[ImGuiKey_A] = ImGuiKey_A") because those values are now larger than the legacy KeyDown[] array. Will assert. + - inputs: added ImGuiKey_ModCtrl/ImGuiKey_ModShift/ImGuiKey_ModAlt/ImGuiKey_ModSuper values to submit keyboard modifiers using io.AddKeyEvent(), instead of writing directly to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper. + - 2022/01/05 (1.87) - inputs: renamed ImGuiKey_KeyPadEnter to ImGuiKey_KeypadEnter to align with new symbols. Kept redirection enum. + - 2022/01/05 (1.87) - removed io.ImeSetInputScreenPosFn() in favor of more flexible io.SetPlatformImeDataFn(). Removed 'void* io.ImeWindowHandle' in favor of writing to 'void* ImGuiViewport::PlatformHandleRaw'. + - 2022/01/01 (1.87) - commented out redirecting functions/enums names that were marked obsolete in 1.69, 1.70, 1.71, 1.72 (March-July 2019) + - ImGui::SetNextTreeNodeOpen() -> use ImGui::SetNextItemOpen() + - ImGui::GetContentRegionAvailWidth() -> use ImGui::GetContentRegionAvail().x + - ImGui::TreeAdvanceToLabelPos() -> use ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetTreeNodeToLabelSpacing()); + - ImFontAtlas::CustomRect -> use ImFontAtlasCustomRect + - ImGuiColorEditFlags_RGB/HSV/HEX -> use ImGuiColorEditFlags_DisplayRGB/HSV/Hex + - 2021/12/20 (1.86) - backends: removed obsolete Marmalade backend (imgui_impl_marmalade.cpp) + example. Find last supported version at https://github.com/ocornut/imgui/wiki/Bindings + - 2021/11/04 (1.86) - removed CalcListClipping() function. Prefer using ImGuiListClipper which can return non-contiguous ranges. Please open an issue if you think you really need this function. + - 2021/08/23 (1.85) - removed GetWindowContentRegionWidth() function. keep inline redirection helper. can use 'GetWindowContentRegionMax().x - GetWindowContentRegionMin().x' instead for generally 'GetContentRegionAvail().x' is more useful. + - 2021/07/26 (1.84) - commented out redirecting functions/enums names that were marked obsolete in 1.67 and 1.69 (March 2019): + - ImGui::GetOverlayDrawList() -> use ImGui::GetForegroundDrawList() + - ImFont::GlyphRangesBuilder -> use ImFontGlyphRangesBuilder + - 2021/05/19 (1.83) - backends: obsoleted direct access to ImDrawCmd::TextureId in favor of calling ImDrawCmd::GetTexID(). + - if you are using official backends from the source tree: you have nothing to do. + - if you have copied old backend code or using your own: change access to draw_cmd->TextureId to draw_cmd->GetTexID(). + - 2021/03/12 (1.82) - upgraded ImDrawList::AddRect(), AddRectFilled(), PathRect() to use ImDrawFlags instead of ImDrawCornersFlags. + - ImDrawCornerFlags_TopLeft -> use ImDrawFlags_RoundCornersTopLeft + - ImDrawCornerFlags_BotRight -> use ImDrawFlags_RoundCornersBottomRight + - ImDrawCornerFlags_None -> use ImDrawFlags_RoundCornersNone etc. + flags now sanely defaults to 0 instead of 0x0F, consistent with all other flags in the API. + breaking: the default with rounding > 0.0f is now "round all corners" vs old implicit "round no corners": + - rounding == 0.0f + flags == 0 --> meant no rounding --> unchanged (common use) + - rounding > 0.0f + flags != 0 --> meant rounding --> unchanged (common use) + - rounding == 0.0f + flags != 0 --> meant no rounding --> unchanged (unlikely use) + - rounding > 0.0f + flags == 0 --> meant no rounding --> BREAKING (unlikely use): will now round all corners --> use ImDrawFlags_RoundCornersNone or rounding == 0.0f. + this ONLY matters for hard coded use of 0 + rounding > 0.0f. Use of named ImDrawFlags_RoundCornersNone (new) or ImDrawCornerFlags_None (old) are ok. + the old ImDrawCornersFlags used awkward default values of ~0 or 0xF (4 lower bits set) to signify "round all corners" and we sometimes encouraged using them as shortcuts. + legacy path still support use of hard coded ~0 or any value from 0x1 or 0xF. They will behave the same with legacy paths enabled (will assert otherwise). + - 2021/03/11 (1.82) - removed redirecting functions/enums names that were marked obsolete in 1.66 (September 2018): + - ImGui::SetScrollHere() -> use ImGui::SetScrollHereY() + - 2021/03/11 (1.82) - clarified that ImDrawList::PathArcTo(), ImDrawList::PathArcToFast() won't render with radius < 0.0f. Previously it sorts of accidentally worked but would generally lead to counter-clockwise paths and have an effect on anti-aliasing. + - 2021/03/10 (1.82) - upgraded ImDrawList::AddPolyline() and PathStroke() "bool closed" parameter to "ImDrawFlags flags". The matching ImDrawFlags_Closed value is guaranteed to always stay == 1 in the future. + - 2021/02/22 (1.82) - (*undone in 1.84*) win32+mingw: Re-enabled IME functions by default even under MinGW. In July 2016, issue #738 had me incorrectly disable those default functions for MinGW. MinGW users should: either link with -limm32, either set their imconfig file with '#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS'. + - 2021/02/17 (1.82) - renamed rarely used style.CircleSegmentMaxError (old default = 1.60f) to style.CircleTessellationMaxError (new default = 0.30f) as the meaning of the value changed. + - 2021/02/03 (1.81) - renamed ListBoxHeader(const char* label, ImVec2 size) to BeginListBox(). Kept inline redirection function (will obsolete). + - removed ListBoxHeader(const char* label, int items_count, int height_in_items = -1) in favor of specifying size. Kept inline redirection function (will obsolete). + - renamed ListBoxFooter() to EndListBox(). Kept inline redirection function (will obsolete). + - 2021/01/26 (1.81) - removed ImGuiFreeType::BuildFontAtlas(). Kept inline redirection function. Prefer using '#define IMGUI_ENABLE_FREETYPE', but there's a runtime selection path available too. The shared extra flags parameters (very rarely used) are now stored in ImFontAtlas::FontBuilderFlags. + - renamed ImFontConfig::RasterizerFlags (used by FreeType) to ImFontConfig::FontBuilderFlags. + - renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API. + - 2020/10/12 (1.80) - removed redirecting functions/enums that were marked obsolete in 1.63 (August 2018): + - ImGui::IsItemDeactivatedAfterChange() -> use ImGui::IsItemDeactivatedAfterEdit(). + - ImGuiCol_ModalWindowDarkening -> use ImGuiCol_ModalWindowDimBg + - ImGuiInputTextCallback -> use ImGuiTextEditCallback + - ImGuiInputTextCallbackData -> use ImGuiTextEditCallbackData + - 2020/12/21 (1.80) - renamed ImDrawList::AddBezierCurve() to AddBezierCubic(), and PathBezierCurveTo() to PathBezierCubicCurveTo(). Kept inline redirection function (will obsolete). + - 2020/12/04 (1.80) - added imgui_tables.cpp file! Manually constructed project files will need the new file added! + - 2020/11/18 (1.80) - renamed undocumented/internals ImGuiColumnsFlags_* to ImGuiOldColumnFlags_* in prevision of incoming Tables API. + - 2020/11/03 (1.80) - renamed io.ConfigWindowsMemoryCompactTimer to io.ConfigMemoryCompactTimer as the feature will apply to other data structures + - 2020/10/14 (1.80) - backends: moved all backends files (imgui_impl_XXXX.cpp, imgui_impl_XXXX.h) from examples/ to backends/. + - 2020/10/12 (1.80) - removed redirecting functions/enums that were marked obsolete in 1.60 (April 2018): + - io.RenderDrawListsFn pointer -> use ImGui::GetDrawData() value and call the render function of your backend + - ImGui::IsAnyWindowFocused() -> use ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow) + - ImGui::IsAnyWindowHovered() -> use ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow) + - ImGuiStyleVar_Count_ -> use ImGuiStyleVar_COUNT + - ImGuiMouseCursor_Count_ -> use ImGuiMouseCursor_COUNT + - removed redirecting functions names that were marked obsolete in 1.61 (May 2018): + - InputFloat (... int decimal_precision ...) -> use InputFloat (... const char* format ...) with format = "%.Xf" where X is your value for decimal_precision. + - same for InputFloat2()/InputFloat3()/InputFloat4() variants taking a `int decimal_precision` parameter. + - 2020/10/05 (1.79) - removed ImGuiListClipper: Renamed constructor parameters which created an ambiguous alternative to using the ImGuiListClipper::Begin() function, with misleading edge cases (note: imgui_memory_editor <0.40 from imgui_club/ used this old clipper API. Update your copy if needed). + - 2020/09/25 (1.79) - renamed ImGuiSliderFlags_ClampOnInput to ImGuiSliderFlags_AlwaysClamp. Kept redirection enum (will obsolete sooner because previous name was added recently). + - 2020/09/25 (1.79) - renamed style.TabMinWidthForUnselectedCloseButton to style.TabMinWidthForCloseButton. + - 2020/09/21 (1.79) - renamed OpenPopupContextItem() back to OpenPopupOnItemClick(), reverting the change from 1.77. For varieties of reason this is more self-explanatory. + - 2020/09/21 (1.79) - removed return value from OpenPopupOnItemClick() - returned true on mouse release on an item - because it is inconsistent with other popup APIs and makes others misleading. It's also and unnecessary: you can use IsWindowAppearing() after BeginPopup() for a similar result. + - 2020/09/17 (1.79) - removed ImFont::DisplayOffset in favor of ImFontConfig::GlyphOffset. DisplayOffset was applied after scaling and not very meaningful/useful outside of being needed by the default ProggyClean font. If you scaled this value after calling AddFontDefault(), this is now done automatically. It was also getting in the way of better font scaling, so let's get rid of it now! + - 2020/08/17 (1.78) - obsoleted use of the trailing 'float power=1.0f' parameter for DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(), DragFloatRange2(), DragScalar(), DragScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(), SliderScalar(), SliderScalarN(), VSliderFloat() and VSliderScalar(). + replaced the 'float power=1.0f' argument with integer-based flags defaulting to 0 (as with all our flags). + worked out a backward-compatibility scheme so hopefully most C++ codebase should not be affected. in short, when calling those functions: + - if you omitted the 'power' parameter (likely!), you are not affected. + - if you set the 'power' parameter to 1.0f (same as previous default value): 1/ your compiler may warn on float>int conversion, 2/ everything else will work. 3/ you can replace the 1.0f value with 0 to fix the warning, and be technically correct. + - if you set the 'power' parameter to >1.0f (to enable non-linear editing): 1/ your compiler may warn on float>int conversion, 2/ code will assert at runtime, 3/ in case asserts are disabled, the code will not crash and enable the _Logarithmic flag. 4/ you can replace the >1.0f value with ImGuiSliderFlags_Logarithmic to fix the warning/assert and get a _similar_ effect as previous uses of power >1.0f. + see https://github.com/ocornut/imgui/issues/3361 for all details. + kept inline redirection functions (will obsolete) apart for: DragFloatRange2(), VSliderFloat(), VSliderScalar(). For those three the 'float power=1.0f' version was removed directly as they were most unlikely ever used. + for shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. + - obsoleted use of v_min > v_max in DragInt, DragFloat, DragScalar to lock edits (introduced in 1.73, was not demoed nor documented very), will be replaced by a more generic ReadOnly feature. You may use the ImGuiSliderFlags_ReadOnly internal flag in the meantime. + - 2020/06/23 (1.77) - removed BeginPopupContextWindow(const char*, int mouse_button, bool also_over_items) in favor of BeginPopupContextWindow(const char*, ImGuiPopupFlags flags) with ImGuiPopupFlags_NoOverItems. + - 2020/06/15 (1.77) - renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). [NOTE: THIS WAS REVERTED IN 1.79] + - 2020/06/15 (1.77) - removed CalcItemRectClosestPoint() entry point which was made obsolete and asserting in December 2017. + - 2020/04/23 (1.77) - removed unnecessary ID (first arg) of ImFontAtlas::AddCustomRectRegular(). + - 2020/01/22 (1.75) - ImDrawList::AddCircle()/AddCircleFilled() functions don't accept negative radius any more. + - 2019/12/17 (1.75) - [undid this change in 1.76] made Columns() limited to 64 columns by asserting above that limit. While the current code technically supports it, future code may not so we're putting the restriction ahead. + - 2019/12/13 (1.75) - [imgui_internal.h] changed ImRect() default constructor initializes all fields to 0.0f instead of (FLT_MAX,FLT_MAX,-FLT_MAX,-FLT_MAX). If you used ImRect::Add() to create bounding boxes by adding multiple points into it, you may need to fix your initial value. + - 2019/12/08 (1.75) - removed redirecting functions/enums that were marked obsolete in 1.53 (December 2017): + - ShowTestWindow() -> use ShowDemoWindow() + - IsRootWindowFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootWindow) + - IsRootWindowOrAnyChildFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) + - SetNextWindowContentWidth(w) -> use SetNextWindowContentSize(ImVec2(w, 0.0f) + - GetItemsLineHeightWithSpacing() -> use GetFrameHeightWithSpacing() + - ImGuiCol_ChildWindowBg -> use ImGuiCol_ChildBg + - ImGuiStyleVar_ChildWindowRounding -> use ImGuiStyleVar_ChildRounding + - ImGuiTreeNodeFlags_AllowOverlapMode -> use ImGuiTreeNodeFlags_AllowItemOverlap + - IMGUI_DISABLE_TEST_WINDOWS -> use IMGUI_DISABLE_DEMO_WINDOWS + - 2019/12/08 (1.75) - obsoleted calling ImDrawList::PrimReserve() with a negative count (which was vaguely documented and rarely if ever used). Instead, we added an explicit PrimUnreserve() API. + - 2019/12/06 (1.75) - removed implicit default parameter to IsMouseDragging(int button = 0) to be consistent with other mouse functions (none of the other functions have it). + - 2019/11/21 (1.74) - ImFontAtlas::AddCustomRectRegular() now requires an ID larger than 0x110000 (instead of 0x10000) to conform with supporting Unicode planes 1-16 in a future update. ID below 0x110000 will now assert. + - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS to IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS for consistency. + - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_MATH_FUNCTIONS to IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS for consistency. + - 2019/10/22 (1.74) - removed redirecting functions/enums that were marked obsolete in 1.52 (October 2017): + - Begin() [old 5 args version] -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed + - IsRootWindowOrAnyChildHovered() -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows) + - AlignFirstTextHeightToWidgets() -> use AlignTextToFramePadding() + - SetNextWindowPosCenter() -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f) + - ImFont::Glyph -> use ImFontGlyph + - 2019/10/14 (1.74) - inputs: Fixed a miscalculation in the keyboard/mouse "typematic" repeat delay/rate calculation, used by keys and e.g. repeating mouse buttons as well as the GetKeyPressedAmount() function. + if you were using a non-default value for io.KeyRepeatRate (previous default was 0.250), you can add +io.KeyRepeatDelay to it to compensate for the fix. + The function was triggering on: 0.0 and (delay+rate*N) where (N>=1). Fixed formula responds to (N>=0). Effectively it made io.KeyRepeatRate behave like it was set to (io.KeyRepeatRate + io.KeyRepeatDelay). + If you never altered io.KeyRepeatRate nor used GetKeyPressedAmount() this won't affect you. + - 2019/07/15 (1.72) - removed TreeAdvanceToLabelPos() which is rarely used and only does SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()). Kept redirection function (will obsolete). + - 2019/07/12 (1.72) - renamed ImFontAtlas::CustomRect to ImFontAtlasCustomRect. Kept redirection typedef (will obsolete). + - 2019/06/14 (1.72) - removed redirecting functions/enums names that were marked obsolete in 1.51 (June 2017): ImGuiCol_Column*, ImGuiSetCond_*, IsItemHoveredRect(), IsPosHoveringAnyWindow(), IsMouseHoveringAnyWindow(), IsMouseHoveringWindow(), IMGUI_ONCE_UPON_A_FRAME. Grep this log for details and new names, or see how they were implemented until 1.71. + - 2019/06/07 (1.71) - rendering of child window outer decorations (bg color, border, scrollbars) is now performed as part of the parent window. If you have + overlapping child windows in a same parent, and relied on their relative z-order to be mapped to their submission order, this will affect your rendering. + This optimization is disabled if the parent window has no visual output, because it appears to be the most common situation leading to the creation of overlapping child windows. + Please reach out if you are affected. + - 2019/05/13 (1.71) - renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Kept inline redirection function (will obsolete). + - 2019/05/11 (1.71) - changed io.AddInputCharacter(unsigned short c) signature to io.AddInputCharacter(unsigned int c). + - 2019/04/29 (1.70) - improved ImDrawList thick strokes (>1.0f) preserving correct thickness up to 90 degrees angles (e.g. rectangles). If you have custom rendering using thick lines, they will appear thicker now. + - 2019/04/29 (1.70) - removed GetContentRegionAvailWidth(), use GetContentRegionAvail().x instead. Kept inline redirection function (will obsolete). + - 2019/03/04 (1.69) - renamed GetOverlayDrawList() to GetForegroundDrawList(). Kept redirection function (will obsolete). + - 2019/02/26 (1.69) - renamed ImGuiColorEditFlags_RGB/ImGuiColorEditFlags_HSV/ImGuiColorEditFlags_HEX to ImGuiColorEditFlags_DisplayRGB/ImGuiColorEditFlags_DisplayHSV/ImGuiColorEditFlags_DisplayHex. Kept redirection enums (will obsolete). + - 2019/02/14 (1.68) - made it illegal/assert when io.DisplayTime == 0.0f (with an exception for the first frame). If for some reason your time step calculation gives you a zero value, replace it with an arbitrarily small value! + - 2019/02/01 (1.68) - removed io.DisplayVisibleMin/DisplayVisibleMax (which were marked obsolete and removed from viewport/docking branch already). + - 2019/01/06 (1.67) - renamed io.InputCharacters[], marked internal as was always intended. Please don't access directly, and use AddInputCharacter() instead! + - 2019/01/06 (1.67) - renamed ImFontAtlas::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Kept redirection typedef (will obsolete). + - 2018/12/20 (1.67) - made it illegal to call Begin("") with an empty string. This somehow half-worked before but had various undesirable side-effects. + - 2018/12/10 (1.67) - renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges as we are doing a large pass on configuration flags. + - 2018/10/12 (1.66) - renamed misc/stl/imgui_stl.* to misc/cpp/imgui_stdlib.* in prevision for other C++ helper files. + - 2018/09/28 (1.66) - renamed SetScrollHere() to SetScrollHereY(). Kept redirection function (will obsolete). + - 2018/09/06 (1.65) - renamed stb_truetype.h to imstb_truetype.h, stb_textedit.h to imstb_textedit.h, and stb_rect_pack.h to imstb_rectpack.h. + If you were conveniently using the imgui copy of those STB headers in your project you will have to update your include paths. + - 2018/09/05 (1.65) - renamed io.OptCursorBlink/io.ConfigCursorBlink to io.ConfigInputTextCursorBlink. (#1427) + - 2018/08/31 (1.64) - added imgui_widgets.cpp file, extracted and moved widgets code out of imgui.cpp into imgui_widgets.cpp. Re-ordered some of the code remaining in imgui.cpp. + NONE OF THE FUNCTIONS HAVE CHANGED. THE CODE IS SEMANTICALLY 100% IDENTICAL, BUT _EVERY_ FUNCTION HAS BEEN MOVED. + Because of this, any local modifications to imgui.cpp will likely conflict when you update. Read docs/CHANGELOG.txt for suggestions. + - 2018/08/22 (1.63) - renamed IsItemDeactivatedAfterChange() to IsItemDeactivatedAfterEdit() for consistency with new IsItemEdited() API. Kept redirection function (will obsolete soonish as IsItemDeactivatedAfterChange() is very recent). + - 2018/08/21 (1.63) - renamed ImGuiTextEditCallback to ImGuiInputTextCallback, ImGuiTextEditCallbackData to ImGuiInputTextCallbackData for consistency. Kept redirection types (will obsolete). + - 2018/08/21 (1.63) - removed ImGuiInputTextCallbackData::ReadOnly since it is a duplication of (ImGuiInputTextCallbackData::Flags & ImGuiInputTextFlags_ReadOnly). + - 2018/08/01 (1.63) - removed per-window ImGuiWindowFlags_ResizeFromAnySide beta flag in favor of a global io.ConfigResizeWindowsFromEdges [update 1.67 renamed to ConfigWindowsResizeFromEdges] to enable the feature. + - 2018/08/01 (1.63) - renamed io.OptCursorBlink to io.ConfigCursorBlink [-> io.ConfigInputTextCursorBlink in 1.65], io.OptMacOSXBehaviors to ConfigMacOSXBehaviors for consistency. + - 2018/07/22 (1.63) - changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecisions over time. + - 2018/07/08 (1.63) - style: renamed ImGuiCol_ModalWindowDarkening to ImGuiCol_ModalWindowDimBg for consistency with other features. Kept redirection enum (will obsolete). + - 2018/06/08 (1.62) - examples: the imgui_impl_XXX files have been split to separate platform (Win32, GLFW, SDL2, etc.) from renderer (DX11, OpenGL, Vulkan, etc.). + old backends will still work as is, however prefer using the separated backends as they will be updated to support multi-viewports. + when adopting new backends follow the main.cpp code of your preferred examples/ folder to know which functions to call. + in particular, note that old backends called ImGui::NewFrame() at the end of their ImGui_ImplXXXX_NewFrame() function. + - 2018/06/06 (1.62) - renamed GetGlyphRangesChinese() to GetGlyphRangesChineseFull() to distinguish other variants and discourage using the full set. + - 2018/06/06 (1.62) - TreeNodeEx()/TreeNodeBehavior(): the ImGuiTreeNodeFlags_CollapsingHeader helper now include the ImGuiTreeNodeFlags_NoTreePushOnOpen flag. See Changelog for details. + - 2018/05/03 (1.61) - DragInt(): the default compile-time format string has been changed from "%.0f" to "%d", as we are not using integers internally any more. + If you used DragInt() with custom format strings, make sure you change them to use %d or an integer-compatible format. + To honor backward-compatibility, the DragInt() code will currently parse and modify format strings to replace %*f with %d, giving time to users to upgrade their code. + If you have IMGUI_DISABLE_OBSOLETE_FUNCTIONS enabled, the code will instead assert! You may run a reg-exp search on your codebase for e.g. "DragInt.*%f" to help you find them. + - 2018/04/28 (1.61) - obsoleted InputFloat() functions taking an optional "int decimal_precision" in favor of an equivalent and more flexible "const char* format", + consistent with other functions. Kept redirection functions (will obsolete). + - 2018/04/09 (1.61) - IM_DELETE() helper function added in 1.60 doesn't clear the input _pointer_ reference, more consistent with expectation and allows passing r-value. + - 2018/03/20 (1.60) - renamed io.WantMoveMouse to io.WantSetMousePos for consistency and ease of understanding (was added in 1.52, _not_ used by core and only honored by some backend ahead of merging the Nav branch). + - 2018/03/12 (1.60) - removed ImGuiCol_CloseButton, ImGuiCol_CloseButtonActive, ImGuiCol_CloseButtonHovered as the closing cross uses regular button colors now. + - 2018/03/08 (1.60) - changed ImFont::DisplayOffset.y to default to 0 instead of +1. Fixed rounding of Ascent/Descent to match TrueType renderer. If you were adding or subtracting to ImFont::DisplayOffset check if your fonts are correctly aligned vertically. + - 2018/03/03 (1.60) - renamed ImGuiStyleVar_Count_ to ImGuiStyleVar_COUNT and ImGuiMouseCursor_Count_ to ImGuiMouseCursor_COUNT for consistency with other public enums. + - 2018/02/18 (1.60) - BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter because it is not really usable in many situations at the moment. + - 2018/02/16 (1.60) - obsoleted the io.RenderDrawListsFn callback, you can call your graphics engine render function after ImGui::Render(). Use ImGui::GetDrawData() to retrieve the ImDrawData* to display. + - 2018/02/07 (1.60) - reorganized context handling to be more explicit, + - YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END. + - removed Shutdown() function, as DestroyContext() serve this purpose. + - you may pass a ImFontAtlas* pointer to CreateContext() to share a font atlas between contexts. Otherwise CreateContext() will create its own font atlas instance. + - removed allocator parameters from CreateContext(), they are now setup with SetAllocatorFunctions(), and shared by all contexts. + - removed the default global context and font atlas instance, which were confusing for users of DLL reloading and users of multiple contexts. + - 2018/01/31 (1.60) - moved sample TTF files from extra_fonts/ to misc/fonts/. If you loaded files directly from the imgui repo you may need to update your paths. + - 2018/01/11 (1.60) - obsoleted IsAnyWindowHovered() in favor of IsWindowHovered(ImGuiHoveredFlags_AnyWindow). Kept redirection function (will obsolete). + - 2018/01/11 (1.60) - obsoleted IsAnyWindowFocused() in favor of IsWindowFocused(ImGuiFocusedFlags_AnyWindow). Kept redirection function (will obsolete). + - 2018/01/03 (1.60) - renamed ImGuiSizeConstraintCallback to ImGuiSizeCallback, ImGuiSizeConstraintCallbackData to ImGuiSizeCallbackData. + - 2017/12/29 (1.60) - removed CalcItemRectClosestPoint() which was weird and not really used by anyone except demo code. If you need it it's easy to replicate on your side. + - 2017/12/24 (1.53) - renamed the emblematic ShowTestWindow() function to ShowDemoWindow(). Kept redirection function (will obsolete). + - 2017/12/21 (1.53) - ImDrawList: renamed style.AntiAliasedShapes to style.AntiAliasedFill for consistency and as a way to explicitly break code that manipulate those flag at runtime. You can now manipulate ImDrawList::Flags + - 2017/12/21 (1.53) - ImDrawList: removed 'bool anti_aliased = true' final parameter of ImDrawList::AddPolyline() and ImDrawList::AddConvexPolyFilled(). Prefer manipulating ImDrawList::Flags if you need to toggle them during the frame. + - 2017/12/14 (1.53) - using the ImGuiWindowFlags_NoScrollWithMouse flag on a child window forwards the mouse wheel event to the parent window, unless either ImGuiWindowFlags_NoInputs or ImGuiWindowFlags_NoScrollbar are also set. + - 2017/12/13 (1.53) - renamed GetItemsLineHeightWithSpacing() to GetFrameHeightWithSpacing(). Kept redirection function (will obsolete). + - 2017/12/13 (1.53) - obsoleted IsRootWindowFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootWindow). Kept redirection function (will obsolete). + - obsoleted IsRootWindowOrAnyChildFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows). Kept redirection function (will obsolete). + - 2017/12/12 (1.53) - renamed ImGuiTreeNodeFlags_AllowOverlapMode to ImGuiTreeNodeFlags_AllowItemOverlap. Kept redirection enum (will obsolete). + - 2017/12/10 (1.53) - removed SetNextWindowContentWidth(), prefer using SetNextWindowContentSize(). Kept redirection function (will obsolete). + - 2017/11/27 (1.53) - renamed ImGuiTextBuffer::append() helper to appendf(), appendv() to appendfv(). If you copied the 'Log' demo in your code, it uses appendv() so that needs to be renamed. + - 2017/11/18 (1.53) - Style, Begin: removed ImGuiWindowFlags_ShowBorders window flag. Borders are now fully set up in the ImGuiStyle structure (see e.g. style.FrameBorderSize, style.WindowBorderSize). Use ImGui::ShowStyleEditor() to look them up. + Please note that the style system will keep evolving (hopefully stabilizing in Q1 2018), and so custom styles will probably subtly break over time. It is recommended you use the StyleColorsClassic(), StyleColorsDark(), StyleColorsLight() functions. + - 2017/11/18 (1.53) - Style: removed ImGuiCol_ComboBg in favor of combo boxes using ImGuiCol_PopupBg for consistency. + - 2017/11/18 (1.53) - Style: renamed ImGuiCol_ChildWindowBg to ImGuiCol_ChildBg. + - 2017/11/18 (1.53) - Style: renamed style.ChildWindowRounding to style.ChildRounding, ImGuiStyleVar_ChildWindowRounding to ImGuiStyleVar_ChildRounding. + - 2017/11/02 (1.53) - obsoleted IsRootWindowOrAnyChildHovered() in favor of using IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); + - 2017/10/24 (1.52) - renamed IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS to IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS for consistency. + - 2017/10/20 (1.52) - changed IsWindowHovered() default parameters behavior to return false if an item is active in another window (e.g. click-dragging item from another window to this window). You can use the newly introduced IsWindowHovered() flags to requests this specific behavior if you need it. + - 2017/10/20 (1.52) - marked IsItemHoveredRect()/IsMouseHoveringWindow() as obsolete, in favor of using the newly introduced flags for IsItemHovered() and IsWindowHovered(). See https://github.com/ocornut/imgui/issues/1382 for details. + removed the IsItemRectHovered()/IsWindowRectHovered() names introduced in 1.51 since they were merely more consistent names for the two functions we are now obsoleting. + IsItemHoveredRect() --> IsItemHovered(ImGuiHoveredFlags_RectOnly) + IsMouseHoveringAnyWindow() --> IsWindowHovered(ImGuiHoveredFlags_AnyWindow) + IsMouseHoveringWindow() --> IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) [weird, old behavior] + - 2017/10/17 (1.52) - marked the old 5-parameters version of Begin() as obsolete (still available). Use SetNextWindowSize()+Begin() instead! + - 2017/10/11 (1.52) - renamed AlignFirstTextHeightToWidgets() to AlignTextToFramePadding(). Kept inline redirection function (will obsolete). + - 2017/09/26 (1.52) - renamed ImFont::Glyph to ImFontGlyph. Kept redirection typedef (will obsolete). + - 2017/09/25 (1.52) - removed SetNextWindowPosCenter() because SetNextWindowPos() now has the optional pivot information to do the same and more. Kept redirection function (will obsolete). + - 2017/08/25 (1.52) - io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. Previously ImVec2(-1,-1) was enough but we now accept negative mouse coordinates. In your backend if you need to support unavailable mouse, make sure to replace "io.MousePos = ImVec2(-1,-1)" with "io.MousePos = ImVec2(-FLT_MAX,-FLT_MAX)". + - 2017/08/22 (1.51) - renamed IsItemHoveredRect() to IsItemRectHovered(). Kept inline redirection function (will obsolete). -> (1.52) use IsItemHovered(ImGuiHoveredFlags_RectOnly)! + - renamed IsMouseHoveringAnyWindow() to IsAnyWindowHovered() for consistency. Kept inline redirection function (will obsolete). + - renamed IsMouseHoveringWindow() to IsWindowRectHovered() for consistency. Kept inline redirection function (will obsolete). + - 2017/08/20 (1.51) - renamed GetStyleColName() to GetStyleColorName() for consistency. + - 2017/08/20 (1.51) - added PushStyleColor(ImGuiCol idx, ImU32 col) overload, which _might_ cause an "ambiguous call" compilation error if you are using ImColor() with implicit cast. Cast to ImU32 or ImVec4 explicily to fix. + - 2017/08/15 (1.51) - marked the weird IMGUI_ONCE_UPON_A_FRAME helper macro as obsolete. prefer using the more explicit ImGuiOnceUponAFrame type. + - 2017/08/15 (1.51) - changed parameter order for BeginPopupContextWindow() from (const char*,int buttons,bool also_over_items) to (const char*,int buttons,bool also_over_items). Note that most calls relied on default parameters completely. + - 2017/08/13 (1.51) - renamed ImGuiCol_Column to ImGuiCol_Separator, ImGuiCol_ColumnHovered to ImGuiCol_SeparatorHovered, ImGuiCol_ColumnActive to ImGuiCol_SeparatorActive. Kept redirection enums (will obsolete). + - 2017/08/11 (1.51) - renamed ImGuiSetCond_Always to ImGuiCond_Always, ImGuiSetCond_Once to ImGuiCond_Once, ImGuiSetCond_FirstUseEver to ImGuiCond_FirstUseEver, ImGuiSetCond_Appearing to ImGuiCond_Appearing. Kept redirection enums (will obsolete). + - 2017/08/09 (1.51) - removed ValueColor() helpers, they are equivalent to calling Text(label) + SameLine() + ColorButton(). + - 2017/08/08 (1.51) - removed ColorEditMode() and ImGuiColorEditMode in favor of ImGuiColorEditFlags and parameters to the various Color*() functions. The SetColorEditOptions() allows to initialize default but the user can still change them with right-click context menu. + - changed prototype of 'ColorEdit4(const char* label, float col[4], bool show_alpha = true)' to 'ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0)', where passing flags = 0x01 is a safe no-op (hello dodgy backward compatibility!). - check and run the demo window, under "Color/Picker Widgets", to understand the various new options. + - changed prototype of rarely used 'ColorButton(ImVec4 col, bool small_height = false, bool outline_border = true)' to 'ColorButton(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0, 0))' + - 2017/07/20 (1.51) - removed IsPosHoveringAnyWindow(ImVec2), which was partly broken and misleading. ASSERT + redirect user to io.WantCaptureMouse + - 2017/05/26 (1.50) - removed ImFontConfig::MergeGlyphCenterV in favor of a more multipurpose ImFontConfig::GlyphOffset. + - 2017/05/01 (1.50) - renamed ImDrawList::PathFill() (rarely used directly) to ImDrawList::PathFillConvex() for clarity. + - 2016/11/06 (1.50) - BeginChild(const char*) now applies the stack id to the provided label, consistently with other functions as it should always have been. It shouldn't affect you unless (extremely unlikely) you were appending multiple times to a same child from different locations of the stack id. If that's the case, generate an id with GetID() and use it instead of passing string to BeginChild(). + - 2016/10/15 (1.50) - avoid 'void* user_data' parameter to io.SetClipboardTextFn/io.GetClipboardTextFn pointers. We pass io.ClipboardUserData to it. + - 2016/09/25 (1.50) - style.WindowTitleAlign is now a ImVec2 (ImGuiAlign enum was removed). set to (0.5f,0.5f) for horizontal+vertical centering, (0.0f,0.0f) for upper-left, etc. + - 2016/07/30 (1.50) - SameLine(x) with x>0.0f is now relative to left of column/group if any, and not always to left of window. This was sort of always the intent and hopefully, breakage should be minimal. + - 2016/05/12 (1.49) - title bar (using ImGuiCol_TitleBg/ImGuiCol_TitleBgActive colors) isn't rendered over a window background (ImGuiCol_WindowBg color) anymore. + If your TitleBg/TitleBgActive alpha was 1.0f or you are using the default theme it will not affect you, otherwise if <1.0f you need to tweak your custom theme to readjust for the fact that we don't draw a WindowBg background behind the title bar. + This helper function will convert an old TitleBg/TitleBgActive color into a new one with the same visual output, given the OLD color and the OLD WindowBg color: + ImVec4 ConvertTitleBgCol(const ImVec4& win_bg_col, const ImVec4& title_bg_col) { float new_a = 1.0f - ((1.0f - win_bg_col.w) * (1.0f - title_bg_col.w)), k = title_bg_col.w / new_a; return ImVec4((win_bg_col.x * win_bg_col.w + title_bg_col.x) * k, (win_bg_col.y * win_bg_col.w + title_bg_col.y) * k, (win_bg_col.z * win_bg_col.w + title_bg_col.z) * k, new_a); } + If this is confusing, pick the RGB value from title bar from an old screenshot and apply this as TitleBg/TitleBgActive. Or you may just create TitleBgActive from a tweaked TitleBg color. + - 2016/05/07 (1.49) - removed confusing set of GetInternalState(), GetInternalStateSize(), SetInternalState() functions. Now using CreateContext(), DestroyContext(), GetCurrentContext(), SetCurrentContext(). + - 2016/05/02 (1.49) - renamed SetNextTreeNodeOpened() to SetNextTreeNodeOpen(), no redirection. + - 2016/05/01 (1.49) - obsoleted old signature of CollapsingHeader(const char* label, const char* str_id = NULL, bool display_frame = true, bool default_open = false) as extra parameters were badly designed and rarely used. You can replace the "default_open = true" flag in new API with CollapsingHeader(label, ImGuiTreeNodeFlags_DefaultOpen). + - 2016/04/26 (1.49) - changed ImDrawList::PushClipRect(ImVec4 rect) to ImDrawList::PushClipRect(Imvec2 min,ImVec2 max,bool intersect_with_current_clip_rect=false). Note that higher-level ImGui::PushClipRect() is preferable because it will clip at logic/widget level, whereas ImDrawList::PushClipRect() only affect your renderer. + - 2016/04/03 (1.48) - removed style.WindowFillAlphaDefault setting which was redundant. Bake default BG alpha inside style.Colors[ImGuiCol_WindowBg] and all other Bg color values. (ref GitHub issue #337). + - 2016/04/03 (1.48) - renamed ImGuiCol_TooltipBg to ImGuiCol_PopupBg, used by popups/menus and tooltips. popups/menus were previously using ImGuiCol_WindowBg. (ref github issue #337) + - 2016/03/21 (1.48) - renamed GetWindowFont() to GetFont(), GetWindowFontSize() to GetFontSize(). Kept inline redirection function (will obsolete). + - 2016/03/02 (1.48) - InputText() completion/history/always callbacks: if you modify the text buffer manually (without using DeleteChars()/InsertChars() helper) you need to maintain the BufTextLen field. added an assert. + - 2016/01/23 (1.48) - fixed not honoring exact width passed to PushItemWidth(), previously it would add extra FramePadding.x*2 over that width. if you had manual pixel-perfect alignment in place it might affect you. + - 2015/12/27 (1.48) - fixed ImDrawList::AddRect() which used to render a rectangle 1 px too large on each axis. + - 2015/12/04 (1.47) - renamed Color() helpers to ValueColor() - dangerously named, rarely used and probably to be made obsolete. + - 2015/08/29 (1.45) - with the addition of horizontal scrollbar we made various fixes to inconsistencies with dealing with cursor position. + GetCursorPos()/SetCursorPos() functions now include the scrolled amount. It shouldn't affect the majority of users, but take note that SetCursorPosX(100.0f) puts you at +100 from the starting x position which may include scrolling, not at +100 from the window left side. + GetContentRegionMax()/GetWindowContentRegionMin()/GetWindowContentRegionMax() functions allow include the scrolled amount. Typically those were used in cases where no scrolling would happen so it may not be a problem, but watch out! + - 2015/08/29 (1.45) - renamed style.ScrollbarWidth to style.ScrollbarSize + - 2015/08/05 (1.44) - split imgui.cpp into extra files: imgui_demo.cpp imgui_draw.cpp imgui_internal.h that you need to add to your project. + - 2015/07/18 (1.44) - fixed angles in ImDrawList::PathArcTo(), PathArcToFast() (introduced in 1.43) being off by an extra PI for no justifiable reason + - 2015/07/14 (1.43) - add new ImFontAtlas::AddFont() API. For the old AddFont***, moved the 'font_no' parameter of ImFontAtlas::AddFont** functions to the ImFontConfig structure. + you need to render your textured triangles with bilinear filtering to benefit from sub-pixel positioning of text. + - 2015/07/08 (1.43) - switched rendering data to use indexed rendering. this is saving a fair amount of CPU/GPU and enables us to get anti-aliasing for a marginal cost. + this necessary change will break your rendering function! the fix should be very easy. sorry for that :( + - if you are using a vanilla copy of one of the imgui_impl_XXX.cpp provided in the example, you just need to update your copy and you can ignore the rest. + - the signature of the io.RenderDrawListsFn handler has changed! + old: ImGui_XXXX_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_count) + new: ImGui_XXXX_RenderDrawLists(ImDrawData* draw_data). + parameters: 'cmd_lists' becomes 'draw_data->CmdLists', 'cmd_lists_count' becomes 'draw_data->CmdListsCount' + ImDrawList: 'commands' becomes 'CmdBuffer', 'vtx_buffer' becomes 'VtxBuffer', 'IdxBuffer' is new. + ImDrawCmd: 'vtx_count' becomes 'ElemCount', 'clip_rect' becomes 'ClipRect', 'user_callback' becomes 'UserCallback', 'texture_id' becomes 'TextureId'. + - each ImDrawList now contains both a vertex buffer and an index buffer. For each command, render ElemCount/3 triangles using indices from the index buffer. + - if you REALLY cannot render indexed primitives, you can call the draw_data->DeIndexAllBuffers() method to de-index the buffers. This is slow and a waste of CPU/GPU. Prefer using indexed rendering! + - refer to code in the examples/ folder or ask on the GitHub if you are unsure of how to upgrade. please upgrade! + - 2015/07/10 (1.43) - changed SameLine() parameters from int to float. + - 2015/07/02 (1.42) - renamed SetScrollPosHere() to SetScrollFromCursorPos(). Kept inline redirection function (will obsolete). + - 2015/07/02 (1.42) - renamed GetScrollPosY() to GetScrollY(). Necessary to reduce confusion along with other scrolling functions, because positions (e.g. cursor position) are not equivalent to scrolling amount. + - 2015/06/14 (1.41) - changed ImageButton() default bg_col parameter from (0,0,0,1) (black) to (0,0,0,0) (transparent) - makes a difference when texture have transparence + - 2015/06/14 (1.41) - changed Selectable() API from (label, selected, size) to (label, selected, flags, size). Size override should have been rarely used. Sorry! + - 2015/05/31 (1.40) - renamed GetWindowCollapsed() to IsWindowCollapsed() for consistency. Kept inline redirection function (will obsolete). + - 2015/05/31 (1.40) - renamed IsRectClipped() to IsRectVisible() for consistency. Note that return value is opposite! Kept inline redirection function (will obsolete). + - 2015/05/27 (1.40) - removed the third 'repeat_if_held' parameter from Button() - sorry! it was rarely used and inconsistent. Use PushButtonRepeat(true) / PopButtonRepeat() to enable repeat on desired buttons. + - 2015/05/11 (1.40) - changed BeginPopup() API, takes a string identifier instead of a bool. ImGui needs to manage the open/closed state of popups. Call OpenPopup() to actually set the "open" state of a popup. BeginPopup() returns true if the popup is opened. + - 2015/05/03 (1.40) - removed style.AutoFitPadding, using style.WindowPadding makes more sense (the default values were already the same). + - 2015/04/13 (1.38) - renamed IsClipped() to IsRectClipped(). Kept inline redirection function until 1.50. + - 2015/04/09 (1.38) - renamed ImDrawList::AddArc() to ImDrawList::AddArcFast() for compatibility with future API + - 2015/04/03 (1.38) - removed ImGuiCol_CheckHovered, ImGuiCol_CheckActive, replaced with the more general ImGuiCol_FrameBgHovered, ImGuiCol_FrameBgActive. + - 2014/04/03 (1.38) - removed support for passing -FLT_MAX..+FLT_MAX as the range for a SliderFloat(). Use DragFloat() or Inputfloat() instead. + - 2015/03/17 (1.36) - renamed GetItemBoxMin()/GetItemBoxMax()/IsMouseHoveringBox() to GetItemRectMin()/GetItemRectMax()/IsMouseHoveringRect(). Kept inline redirection function until 1.50. + - 2015/03/15 (1.36) - renamed style.TreeNodeSpacing to style.IndentSpacing, ImGuiStyleVar_TreeNodeSpacing to ImGuiStyleVar_IndentSpacing + - 2015/03/13 (1.36) - renamed GetWindowIsFocused() to IsWindowFocused(). Kept inline redirection function until 1.50. + - 2015/03/08 (1.35) - renamed style.ScrollBarWidth to style.ScrollbarWidth (casing) + - 2015/02/27 (1.34) - renamed OpenNextNode(bool) to SetNextTreeNodeOpened(bool, ImGuiSetCond). Kept inline redirection function until 1.50. + - 2015/02/27 (1.34) - renamed ImGuiSetCondition_*** to ImGuiSetCond_***, and _FirstUseThisSession becomes _Once. + - 2015/02/11 (1.32) - changed text input callback ImGuiTextEditCallback return type from void-->int. reserved for future use, return 0 for now. + - 2015/02/10 (1.32) - renamed GetItemWidth() to CalcItemWidth() to clarify its evolving behavior + - 2015/02/08 (1.31) - renamed GetTextLineSpacing() to GetTextLineHeightWithSpacing() + - 2015/02/01 (1.31) - removed IO.MemReallocFn (unused) + - 2015/01/19 (1.30) - renamed ImGuiStorage::GetIntPtr()/GetFloatPtr() to GetIntRef()/GetIntRef() because Ptr was conflicting with actual pointer storage functions. + - 2015/01/11 (1.30) - big font/image API change! now loads TTF file. allow for multiple fonts. no need for a PNG loader. + - 2015/01/11 (1.30) - removed GetDefaultFontData(). uses io.Fonts->GetTextureData*() API to retrieve uncompressed pixels. + - old: const void* png_data; unsigned int png_size; ImGui::GetDefaultFontData(NULL, NULL, &png_data, &png_size); [..Upload texture to GPU..]; + - new: unsigned char* pixels; int width, height; io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); [..Upload texture to GPU..]; io.Fonts->SetTexID(YourTexIdentifier); + you now have more flexibility to load multiple TTF fonts and manage the texture buffer for internal needs. It is now recommended that you sample the font texture with bilinear interpolation. + - 2015/01/11 (1.30) - added texture identifier in ImDrawCmd passed to your render function (we can now render images). make sure to call io.Fonts->SetTexID() + - 2015/01/11 (1.30) - removed IO.PixelCenterOffset (unnecessary, can be handled in user projection matrix) + - 2015/01/11 (1.30) - removed ImGui::IsItemFocused() in favor of ImGui::IsItemActive() which handles all widgets + - 2014/12/10 (1.18) - removed SetNewWindowDefaultPos() in favor of new generic API SetNextWindowPos(pos, ImGuiSetCondition_FirstUseEver) + - 2014/11/28 (1.17) - moved IO.Font*** options to inside the IO.Font-> structure (FontYOffset, FontTexUvForWhite, FontBaseScale, FontFallbackGlyph) + - 2014/11/26 (1.17) - reworked syntax of IMGUI_ONCE_UPON_A_FRAME helper macro to increase compiler compatibility + - 2014/11/07 (1.15) - renamed IsHovered() to IsItemHovered() + - 2014/10/02 (1.14) - renamed IMGUI_INCLUDE_IMGUI_USER_CPP to IMGUI_INCLUDE_IMGUI_USER_INL and imgui_user.cpp to imgui_user.inl (more IDE friendly) + - 2014/09/25 (1.13) - removed 'text_end' parameter from IO.SetClipboardTextFn (the string is now always zero-terminated for simplicity) + - 2014/09/24 (1.12) - renamed SetFontScale() to SetWindowFontScale() + - 2014/09/24 (1.12) - moved IM_MALLOC/IM_REALLOC/IM_FREE preprocessor defines to IO.MemAllocFn/IO.MemReallocFn/IO.MemFreeFn + - 2014/08/30 (1.09) - removed IO.FontHeight (now computed automatically) + - 2014/08/30 (1.09) - moved IMGUI_FONT_TEX_UV_FOR_WHITE preprocessor define to IO.FontTexUvForWhite + - 2014/08/28 (1.09) - changed the behavior of IO.PixelCenterOffset following various rendering fixes + + + FREQUENTLY ASKED QUESTIONS (FAQ) + ================================ + + Read all answers online: + https://www.dearimgui.com/faq or https://github.com/ocornut/imgui/blob/master/docs/FAQ.md (same url) + Read all answers locally (with a text editor or ideally a Markdown viewer): + docs/FAQ.md + Some answers are copied down here to facilitate searching in code. + + Q&A: Basics + =========== + + Q: Where is the documentation? + A: This library is poorly documented at the moment and expects the user to be acquainted with C/C++. + - Run the examples/ applications and explore them. + - Read Getting Started (https://github.com/ocornut/imgui/wiki/Getting-Started) guide. + - See demo code in imgui_demo.cpp and particularly the ImGui::ShowDemoWindow() function. + - The demo covers most features of Dear ImGui, so you can read the code and see its output. + - See documentation and comments at the top of imgui.cpp + effectively imgui.h. + - 20+ standalone example applications using e.g. OpenGL/DirectX are provided in the + examples/ folder to explain how to integrate Dear ImGui with your own engine/application. + - The Wiki (https://github.com/ocornut/imgui/wiki) has many resources and links. + - The Glossary (https://github.com/ocornut/imgui/wiki/Glossary) page also may be useful. + - Your programming IDE is your friend, find the type or function declaration to find comments + associated with it. + + Q: What is this library called? + Q: Which version should I get? + >> This library is called "Dear ImGui", please don't call it "ImGui" :) + >> See https://www.dearimgui.com/faq for details. + + Q&A: Integration + ================ + + Q: How to get started? + A: Read https://github.com/ocornut/imgui/wiki/Getting-Started. Read 'PROGRAMMER GUIDE' above. Read examples/README.txt. + + Q: How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application? + A: You should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! + >> See https://www.dearimgui.com/faq for a fully detailed answer. You really want to read this. + + Q. How can I enable keyboard or gamepad controls? + Q: How can I use this on a machine without mouse, keyboard or screen? (input share, remote display) + Q: I integrated Dear ImGui in my engine and little squares are showing instead of text... + Q: I integrated Dear ImGui in my engine and some elements are clipping or disappearing when I move windows around... + Q: I integrated Dear ImGui in my engine and some elements are displaying outside their expected windows boundaries... + >> See https://www.dearimgui.com/faq + + Q&A: Usage + ---------- + + Q: About the ID Stack system.. + - Why is my widget not reacting when I click on it? + - How can I have widgets with an empty label? + - How can I have multiple widgets with the same label? + - How can I have multiple windows with the same label? + Q: How can I display an image? What is ImTextureID, how does it work? + Q: How can I use my own math types instead of ImVec2? + Q: How can I interact with standard C++ types (such as std::string and std::vector)? + Q: How can I display custom shapes? (using low-level ImDrawList API) + >> See https://www.dearimgui.com/faq + + Q&A: Fonts, Text + ================ + + Q: How should I handle DPI in my application? + Q: How can I load a different font than the default? + Q: How can I easily use icons in my application? + Q: How can I load multiple fonts? + Q: How can I display and input non-Latin characters such as Chinese, Japanese, Korean, Cyrillic? + >> See https://www.dearimgui.com/faq and https://github.com/ocornut/imgui/edit/master/docs/FONTS.md + + Q&A: Concerns + ============= + + Q: Who uses Dear ImGui? + Q: Can you create elaborate/serious tools with Dear ImGui? + Q: Can you reskin the look of Dear ImGui? + Q: Why using C++ (as opposed to C)? + >> See https://www.dearimgui.com/faq + + Q&A: Community + ============== + + Q: How can I help? + A: - Businesses: please reach out to "omar AT dearimgui DOT com" if you work in a place using Dear ImGui! + We can discuss ways for your company to fund development via invoiced technical support, maintenance or sponsoring contacts. + This is among the most useful thing you can do for Dear ImGui. With increased funding, we sustain and grow work on this project. + Also see https://github.com/ocornut/imgui/wiki/Sponsors + - Businesses: you can also purchase licenses for the Dear ImGui Automation/Test Engine. + - If you are experienced with Dear ImGui and C++, look at the GitHub issues, look at the Wiki, and see how you want to help and can help! + - Disclose your usage of Dear ImGui via a dev blog post, a tweet, a screenshot, a mention somewhere etc. + You may post screenshot or links in the gallery threads. Visuals are ideal as they inspire other programmers. + But even without visuals, disclosing your use of dear imgui helps the library grow credibility, and help other teams and programmers with taking decisions. + - If you have issues or if you need to hack into the library, even if you don't expect any support it is useful that you share your issues (on GitHub or privately). + +*/ + +//------------------------------------------------------------------------- +// [SECTION] INCLUDES +//------------------------------------------------------------------------- + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_internal.h" + +// System includes +#include // vsnprintf, sscanf, printf +#include // intptr_t + +// [Windows] On non-Visual Studio compilers, we default to IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS unless explicitly enabled +#if defined(_WIN32) && !defined(_MSC_VER) && !defined(IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) +#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS +#endif + +// [Windows] OS specific includes (optional) +#if defined(_WIN32) && defined(IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#define IMGUI_DISABLE_WIN32_FUNCTIONS +#endif +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#ifndef NOMINMAX +#define NOMINMAX +#endif +#ifndef __MINGW32__ +#include // _wfopen, OpenClipboard +#else +#include +#endif +#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) // UWP doesn't have all Win32 functions +#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS +#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS +#endif +#endif + +// [Apple] OS specific includes +#if defined(__APPLE__) +#include +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to an 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. +#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wformat-pedantic" // warning: format specifies type 'void *' but the argument has type 'xxxx *' // unreasonable, would lead to casting every %p arg to void*. probably enabled by -pedantic. +#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning: cast to 'void *' from smaller integer type 'int' +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +// We disable -Wpragmas because GCC doesn't provide a has_warning equivalent and some forks/patches may not follow the warning/version association. +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size +#pragma GCC diagnostic ignored "-Wformat" // warning: format '%p' expects argument of type 'void*', but argument 6 has type 'ImGuiWindow*' +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wstrict-overflow" // warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +// Debug options +#define IMGUI_DEBUG_NAV_SCORING 0 // Display navigation scoring preview when hovering items. Display last moving direction matches when holding CTRL +#define IMGUI_DEBUG_NAV_RECTS 0 // Display the reference navigation rectangle for each window + +// When using CTRL+TAB (or Gamepad Square+L/R) we delay the visual a little in order to reduce visual noise doing a fast switch. +static const float NAV_WINDOWING_HIGHLIGHT_DELAY = 0.20f; // Time before the highlight and screen dimming starts fading in +static const float NAV_WINDOWING_LIST_APPEAR_DELAY = 0.15f; // Time before the window list starts to appear + +// Window resizing from edges (when io.ConfigWindowsResizeFromEdges = true and ImGuiBackendFlags_HasMouseCursors is set in io.BackendFlags by backend) +static const float WINDOWS_HOVER_PADDING = 4.0f; // Extend outside window for hovering/resizing (maxxed with TouchPadding) and inside windows for borders. Affect FindHoveredWindow(). +static const float WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER = 0.04f; // Reduce visual noise by only highlighting the border after a certain time. +static const float WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER = 0.70f; // Lock scrolled window (so it doesn't pick child windows that are scrolling through) for a certain time, unless mouse moved. + +// Tooltip offset +static const ImVec2 TOOLTIP_DEFAULT_OFFSET = ImVec2(16, 10); // Multiplied by g.Style.MouseCursorScale + +// Docking +static const float DOCKING_TRANSPARENT_PAYLOAD_ALPHA = 0.50f; // For use with io.ConfigDockingTransparentPayload. Apply to Viewport _or_ WindowBg in host viewport. + +//------------------------------------------------------------------------- +// [SECTION] FORWARD DECLARATIONS +//------------------------------------------------------------------------- + +static void SetCurrentWindow(ImGuiWindow* window); +static void FindHoveredWindow(); +static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags); +static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window); + +static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window); + +// Settings +static void WindowSettingsHandler_ClearAll(ImGuiContext*, ImGuiSettingsHandler*); +static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name); +static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line); +static void WindowSettingsHandler_ApplyAll(ImGuiContext*, ImGuiSettingsHandler*); +static void WindowSettingsHandler_WriteAll(ImGuiContext*, ImGuiSettingsHandler*, ImGuiTextBuffer* buf); + +// Platform Dependents default implementation for IO functions +static const char* GetClipboardTextFn_DefaultImpl(void* user_data_ctx); +static void SetClipboardTextFn_DefaultImpl(void* user_data_ctx, const char* text); +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data); + +namespace ImGui +{ +// Navigation +static void NavUpdate(); +static void NavUpdateWindowing(); +static void NavUpdateWindowingOverlay(); +static void NavUpdateCancelRequest(); +static void NavUpdateCreateMoveRequest(); +static void NavUpdateCreateTabbingRequest(); +static float NavUpdatePageUpPageDown(); +static inline void NavUpdateAnyRequestFlag(); +static void NavUpdateCreateWrappingRequest(); +static void NavEndFrame(); +static bool NavScoreItem(ImGuiNavItemData* result); +static void NavApplyItemToResult(ImGuiNavItemData* result); +static void NavProcessItem(); +static void NavProcessItemForTabbingRequest(ImGuiID id, ImGuiItemFlags item_flags, ImGuiNavMoveFlags move_flags); +static ImVec2 NavCalcPreferredRefPos(); +static void NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window); +static ImGuiWindow* NavRestoreLastChildNavWindow(ImGuiWindow* window); +static void NavRestoreLayer(ImGuiNavLayer layer); +static int FindWindowFocusIndex(ImGuiWindow* window); + +// Error Checking and Debug Tools +static void ErrorCheckNewFrameSanityChecks(); +static void ErrorCheckEndFrameSanityChecks(); +static void UpdateDebugToolItemPicker(); +static void UpdateDebugToolStackQueries(); + +// Inputs +static void UpdateKeyboardInputs(); +static void UpdateMouseInputs(); +static void UpdateMouseWheel(); +static void UpdateKeyRoutingTable(ImGuiKeyRoutingTable* rt); + +// Misc +static void UpdateSettings(); +static bool UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect); +static void RenderWindowOuterBorders(ImGuiWindow* window); +static void RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, bool handle_borders_and_resize_grips, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size); +static void RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open); +static void RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 col); +static void RenderDimmedBackgrounds(); + +// Viewports +const ImGuiID IMGUI_VIEWPORT_DEFAULT_ID = 0x11111111; // Using an arbitrary constant instead of e.g. ImHashStr("ViewportDefault", 0); so it's easier to spot in the debugger. The exact value doesn't matter. +static ImGuiViewportP* AddUpdateViewport(ImGuiWindow* window, ImGuiID id, const ImVec2& platform_pos, const ImVec2& size, ImGuiViewportFlags flags); +static void DestroyViewport(ImGuiViewportP* viewport); +static void UpdateViewportsNewFrame(); +static void UpdateViewportsEndFrame(); +static void WindowSelectViewport(ImGuiWindow* window); +static void WindowSyncOwnedViewport(ImGuiWindow* window, ImGuiWindow* parent_window_in_stack); +static bool UpdateTryMergeWindowIntoHostViewport(ImGuiWindow* window, ImGuiViewportP* host_viewport); +static bool UpdateTryMergeWindowIntoHostViewports(ImGuiWindow* window); +static bool GetWindowAlwaysWantOwnViewport(ImGuiWindow* window); +static int FindPlatformMonitorForPos(const ImVec2& pos); +static int FindPlatformMonitorForRect(const ImRect& r); +static void UpdateViewportPlatformMonitor(ImGuiViewportP* viewport); + +} + +//----------------------------------------------------------------------------- +// [SECTION] CONTEXT AND MEMORY ALLOCATORS +//----------------------------------------------------------------------------- + +// DLL users: +// - Heaps and globals are not shared across DLL boundaries! +// - You will need to call SetCurrentContext() + SetAllocatorFunctions() for each static/DLL boundary you are calling from. +// - Same applies for hot-reloading mechanisms that are reliant on reloading DLL (note that many hot-reloading mechanisms work without DLL). +// - Using Dear ImGui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. +// - Confused? In a debugger: add GImGui to your watch window and notice how its value changes depending on your current location (which DLL boundary you are in). + +// Current context pointer. Implicitly used by all Dear ImGui functions. Always assumed to be != NULL. +// - ImGui::CreateContext() will automatically set this pointer if it is NULL. +// Change to a different context by calling ImGui::SetCurrentContext(). +// - Important: Dear ImGui functions are not thread-safe because of this pointer. +// If you want thread-safety to allow N threads to access N different contexts: +// - Change this variable to use thread local storage so each thread can refer to a different context, in your imconfig.h: +// struct ImGuiContext; +// extern thread_local ImGuiContext* MyImGuiTLS; +// #define GImGui MyImGuiTLS +// And then define MyImGuiTLS in one of your cpp files. Note that thread_local is a C++11 keyword, earlier C++ uses compiler-specific keyword. +// - Future development aims to make this context pointer explicit to all calls. Also read https://github.com/ocornut/imgui/issues/586 +// - If you need a finite number of contexts, you may compile and use multiple instances of the ImGui code from a different namespace. +// - DLL users: read comments above. +#ifndef GImGui +ImGuiContext* GImGui = NULL; +#endif + +// Memory Allocator functions. Use SetAllocatorFunctions() to change them. +// - You probably don't want to modify that mid-program, and if you use global/static e.g. ImVector<> instances you may need to keep them accessible during program destruction. +// - DLL users: read comments above. +#ifndef IMGUI_DISABLE_DEFAULT_ALLOCATORS +static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); return malloc(size); } +static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); free(ptr); } +#else +static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(size); IM_ASSERT(0); return NULL; } +static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(ptr); IM_ASSERT(0); } +#endif +static ImGuiMemAllocFunc GImAllocatorAllocFunc = MallocWrapper; +static ImGuiMemFreeFunc GImAllocatorFreeFunc = FreeWrapper; +static void* GImAllocatorUserData = NULL; + +//----------------------------------------------------------------------------- +// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) +//----------------------------------------------------------------------------- + +ImGuiStyle::ImGuiStyle() +{ + Alpha = 1.0f; // Global alpha applies to everything in Dear ImGui. + DisabledAlpha = 0.60f; // Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha. + WindowPadding = ImVec2(8,8); // Padding within a window + WindowRounding = 0.0f; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. + WindowBorderSize = 1.0f; // Thickness of border around windows. Generally set to 0.0f or 1.0f. Other values not well tested. + WindowMinSize = ImVec2(32,32); // Minimum window size + WindowTitleAlign = ImVec2(0.0f,0.5f);// Alignment for title bar text + WindowMenuButtonPosition= ImGuiDir_Left; // Position of the collapsing/docking button in the title bar (left/right). Defaults to ImGuiDir_Left. + ChildRounding = 0.0f; // Radius of child window corners rounding. Set to 0.0f to have rectangular child windows + ChildBorderSize = 1.0f; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. Other values not well tested. + PopupRounding = 0.0f; // Radius of popup window corners rounding. Set to 0.0f to have rectangular child windows + PopupBorderSize = 1.0f; // Thickness of border around popup or tooltip windows. Generally set to 0.0f or 1.0f. Other values not well tested. + FramePadding = ImVec2(4,3); // Padding within a framed rectangle (used by most widgets) + FrameRounding = 0.0f; // Radius of frame corners rounding. Set to 0.0f to have rectangular frames (used by most widgets). + FrameBorderSize = 0.0f; // Thickness of border around frames. Generally set to 0.0f or 1.0f. Other values not well tested. + ItemSpacing = ImVec2(8,4); // Horizontal and vertical spacing between widgets/lines + ItemInnerSpacing = ImVec2(4,4); // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label) + CellPadding = ImVec2(4,2); // Padding within a table cell. CellPadding.y may be altered between different rows. + TouchExtraPadding = ImVec2(0,0); // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! + IndentSpacing = 21.0f; // Horizontal spacing when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). + ColumnsMinSpacing = 6.0f; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). + ScrollbarSize = 14.0f; // Width of the vertical scrollbar, Height of the horizontal scrollbar + ScrollbarRounding = 9.0f; // Radius of grab corners rounding for scrollbar + GrabMinSize = 12.0f; // Minimum width/height of a grab box for slider/scrollbar + GrabRounding = 0.0f; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. + LogSliderDeadzone = 4.0f; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. + TabRounding = 4.0f; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. + TabBorderSize = 0.0f; // Thickness of border around tabs. + TabMinWidthForCloseButton = 0.0f; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + TabBarBorderSize = 1.0f; // Thickness of tab-bar separator, which takes on the tab active color to denote focus. + TableAngledHeadersAngle = 35.0f * (IM_PI / 180.0f); // Angle of angled headers (supported values range from -50 degrees to +50 degrees). + ColorButtonPosition = ImGuiDir_Right; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. + ButtonTextAlign = ImVec2(0.5f,0.5f);// Alignment of button text when button is larger than text. + SelectableTextAlign = ImVec2(0.0f,0.0f);// Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. + SeparatorTextBorderSize = 3.0f; // Thickkness of border in SeparatorText() + SeparatorTextAlign = ImVec2(0.0f,0.5f);// Alignment of text within the separator. Defaults to (0.0f, 0.5f) (left aligned, center). + SeparatorTextPadding = ImVec2(20.0f,3.f);// Horizontal offset of text from each edge of the separator + spacing on other axis. Generally small values. .y is recommended to be == FramePadding.y. + DisplayWindowPadding = ImVec2(19,19); // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. + DisplaySafeAreaPadding = ImVec2(3,3); // If you cannot see the edge of your screen (e.g. on a TV) increase the safe area padding. Covers popups/tooltips as well regular windows. + DockingSeparatorSize = 2.0f; // Thickness of resizing border between docked windows + MouseCursorScale = 1.0f; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. + AntiAliasedLines = true; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. + AntiAliasedLinesUseTex = true; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). + AntiAliasedFill = true; // Enable anti-aliased filled shapes (rounded rectangles, circles, etc.). + CurveTessellationTol = 1.25f; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. + CircleTessellationMaxError = 0.30f; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. + + // Behaviors + HoverStationaryDelay = 0.15f; // Delay for IsItemHovered(ImGuiHoveredFlags_Stationary). Time required to consider mouse stationary. + HoverDelayShort = 0.15f; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayShort). Usually used along with HoverStationaryDelay. + HoverDelayNormal = 0.40f; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayNormal). " + HoverFlagsForTooltipMouse = ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort | ImGuiHoveredFlags_AllowWhenDisabled; // Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using mouse. + HoverFlagsForTooltipNav = ImGuiHoveredFlags_NoSharedDelay | ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_AllowWhenDisabled; // Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using keyboard/gamepad. + + // Default theme + ImGui::StyleColorsDark(this); +} + +// To scale your entire UI (e.g. if you want your app to use High DPI or generally be DPI aware) you may use this helper function. Scaling the fonts is done separately and is up to you. +// Important: This operation is lossy because we round all sizes to integer. If you need to change your scale multiples, call this over a freshly initialized ImGuiStyle structure rather than scaling multiple times. +void ImGuiStyle::ScaleAllSizes(float scale_factor) +{ + WindowPadding = ImTrunc(WindowPadding * scale_factor); + WindowRounding = ImTrunc(WindowRounding * scale_factor); + WindowMinSize = ImTrunc(WindowMinSize * scale_factor); + ChildRounding = ImTrunc(ChildRounding * scale_factor); + PopupRounding = ImTrunc(PopupRounding * scale_factor); + FramePadding = ImTrunc(FramePadding * scale_factor); + FrameRounding = ImTrunc(FrameRounding * scale_factor); + ItemSpacing = ImTrunc(ItemSpacing * scale_factor); + ItemInnerSpacing = ImTrunc(ItemInnerSpacing * scale_factor); + CellPadding = ImTrunc(CellPadding * scale_factor); + TouchExtraPadding = ImTrunc(TouchExtraPadding * scale_factor); + IndentSpacing = ImTrunc(IndentSpacing * scale_factor); + ColumnsMinSpacing = ImTrunc(ColumnsMinSpacing * scale_factor); + ScrollbarSize = ImTrunc(ScrollbarSize * scale_factor); + ScrollbarRounding = ImTrunc(ScrollbarRounding * scale_factor); + GrabMinSize = ImTrunc(GrabMinSize * scale_factor); + GrabRounding = ImTrunc(GrabRounding * scale_factor); + LogSliderDeadzone = ImTrunc(LogSliderDeadzone * scale_factor); + TabRounding = ImTrunc(TabRounding * scale_factor); + TabMinWidthForCloseButton = (TabMinWidthForCloseButton != FLT_MAX) ? ImTrunc(TabMinWidthForCloseButton * scale_factor) : FLT_MAX; + SeparatorTextPadding = ImTrunc(SeparatorTextPadding * scale_factor); + DockingSeparatorSize = ImTrunc(DockingSeparatorSize * scale_factor); + DisplayWindowPadding = ImTrunc(DisplayWindowPadding * scale_factor); + DisplaySafeAreaPadding = ImTrunc(DisplaySafeAreaPadding * scale_factor); + MouseCursorScale = ImTrunc(MouseCursorScale * scale_factor); +} + +ImGuiIO::ImGuiIO() +{ + // Most fields are initialized with zero + memset(this, 0, sizeof(*this)); + IM_STATIC_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::MouseClicked) == ImGuiMouseButton_COUNT); + + // Settings + ConfigFlags = ImGuiConfigFlags_None; + BackendFlags = ImGuiBackendFlags_None; + DisplaySize = ImVec2(-1.0f, -1.0f); + DeltaTime = 1.0f / 60.0f; + IniSavingRate = 5.0f; + IniFilename = "imgui.ini"; // Important: "imgui.ini" is relative to current working dir, most apps will want to lock this to an absolute path (e.g. same path as executables). + LogFilename = "imgui_log.txt"; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + for (int i = 0; i < ImGuiKey_COUNT; i++) + KeyMap[i] = -1; +#endif + UserData = NULL; + + Fonts = NULL; + FontGlobalScale = 1.0f; + FontDefault = NULL; + FontAllowUserScaling = false; + DisplayFramebufferScale = ImVec2(1.0f, 1.0f); + + // Docking options (when ImGuiConfigFlags_DockingEnable is set) + ConfigDockingNoSplit = false; + ConfigDockingWithShift = false; + ConfigDockingAlwaysTabBar = false; + ConfigDockingTransparentPayload = false; + + // Viewport options (when ImGuiConfigFlags_ViewportsEnable is set) + ConfigViewportsNoAutoMerge = false; + ConfigViewportsNoTaskBarIcon = false; + ConfigViewportsNoDecoration = true; + ConfigViewportsNoDefaultParent = false; + + // Miscellaneous options + MouseDrawCursor = false; +#ifdef __APPLE__ + ConfigMacOSXBehaviors = true; // Set Mac OS X style defaults based on __APPLE__ compile time flag +#else + ConfigMacOSXBehaviors = false; +#endif + ConfigInputTrickleEventQueue = true; + ConfigInputTextCursorBlink = true; + ConfigInputTextEnterKeepActive = false; + ConfigDragClickToInputText = false; + ConfigWindowsResizeFromEdges = true; + ConfigWindowsMoveFromTitleBarOnly = false; + ConfigMemoryCompactTimer = 60.0f; + ConfigDebugBeginReturnValueOnce = false; + ConfigDebugBeginReturnValueLoop = false; + + // Inputs Behaviors + MouseDoubleClickTime = 0.30f; + MouseDoubleClickMaxDist = 6.0f; + MouseDragThreshold = 6.0f; + KeyRepeatDelay = 0.275f; + KeyRepeatRate = 0.050f; + + // Platform Functions + // Note: Initialize() will setup default clipboard/ime handlers. + BackendPlatformName = BackendRendererName = NULL; + BackendPlatformUserData = BackendRendererUserData = BackendLanguageUserData = NULL; + PlatformLocaleDecimalPoint = '.'; + + // Input (NB: we already have memset zero the entire structure!) + MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + MousePosPrev = ImVec2(-FLT_MAX, -FLT_MAX); + MouseSource = ImGuiMouseSource_Mouse; + for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++) MouseDownDuration[i] = MouseDownDurationPrev[i] = -1.0f; + for (int i = 0; i < IM_ARRAYSIZE(KeysData); i++) { KeysData[i].DownDuration = KeysData[i].DownDurationPrev = -1.0f; } + AppAcceptingEvents = true; + BackendUsingLegacyKeyArrays = (ImS8)-1; + BackendUsingLegacyNavInputArray = true; // assume using legacy array until proven wrong +} + +// Pass in translated ASCII characters for text input. +// - with glfw you can get those from the callback set in glfwSetCharCallback() +// - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message +// FIXME: Should in theory be called "AddCharacterEvent()" to be consistent with new API +void ImGuiIO::AddInputCharacter(unsigned int c) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + if (c == 0 || !AppAcceptingEvents) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Text; + e.Source = ImGuiInputSource_Keyboard; + e.EventId = g.InputEventsNextEventId++; + e.Text.Char = c; + g.InputEventsQueue.push_back(e); +} + +// UTF16 strings use surrogate pairs to encode codepoints >= 0x10000, so +// we should save the high surrogate. +void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) +{ + if ((c == 0 && InputQueueSurrogate == 0) || !AppAcceptingEvents) + return; + + if ((c & 0xFC00) == 0xD800) // High surrogate, must save + { + if (InputQueueSurrogate != 0) + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); + InputQueueSurrogate = c; + return; + } + + ImWchar cp = c; + if (InputQueueSurrogate != 0) + { + if ((c & 0xFC00) != 0xDC00) // Invalid low surrogate + { + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); + } + else + { +#if IM_UNICODE_CODEPOINT_MAX == 0xFFFF + cp = IM_UNICODE_CODEPOINT_INVALID; // Codepoint will not fit in ImWchar +#else + cp = (ImWchar)(((InputQueueSurrogate - 0xD800) << 10) + (c - 0xDC00) + 0x10000); +#endif + } + + InputQueueSurrogate = 0; + } + AddInputCharacter((unsigned)cp); +} + +void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars) +{ + if (!AppAcceptingEvents) + return; + while (*utf8_chars != 0) + { + unsigned int c = 0; + utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL); + AddInputCharacter(c); + } +} + +// Clear all incoming events. +void ImGuiIO::ClearEventsQueue() +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + g.InputEventsQueue.clear(); +} + +// Clear current keyboard/mouse/gamepad state + current frame text input buffer. Equivalent to releasing all keys/buttons. +void ImGuiIO::ClearInputKeys() +{ +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + memset(KeysDown, 0, sizeof(KeysDown)); +#endif + for (int n = 0; n < IM_ARRAYSIZE(KeysData); n++) + { + KeysData[n].Down = false; + KeysData[n].DownDuration = -1.0f; + KeysData[n].DownDurationPrev = -1.0f; + } + KeyCtrl = KeyShift = KeyAlt = KeySuper = false; + KeyMods = ImGuiMod_None; + MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + for (int n = 0; n < IM_ARRAYSIZE(MouseDown); n++) + { + MouseDown[n] = false; + MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f; + } + MouseWheel = MouseWheelH = 0.0f; + InputQueueCharacters.resize(0); // Behavior of old ClearInputCharacters(). +} + +// Removed this as it is ambiguous/misleading and generally incorrect to use with the existence of a higher-level input queue. +// Current frame character buffer is now also cleared by ClearInputKeys(). +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +void ImGuiIO::ClearInputCharacters() +{ + InputQueueCharacters.resize(0); +} +#endif + +static ImGuiInputEvent* FindLatestInputEvent(ImGuiContext* ctx, ImGuiInputEventType type, int arg = -1) +{ + ImGuiContext& g = *ctx; + for (int n = g.InputEventsQueue.Size - 1; n >= 0; n--) + { + ImGuiInputEvent* e = &g.InputEventsQueue[n]; + if (e->Type != type) + continue; + if (type == ImGuiInputEventType_Key && e->Key.Key != arg) + continue; + if (type == ImGuiInputEventType_MouseButton && e->MouseButton.Button != arg) + continue; + return e; + } + return NULL; +} + +// Queue a new key down/up event. +// - ImGuiKey key: Translated key (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) +// - bool down: Is the key down? use false to signify a key release. +// - float analog_value: 0.0f..1.0f +// IMPORTANT: THIS FUNCTION AND OTHER "ADD" GRABS THE CONTEXT FROM OUR INSTANCE. +// WE NEED TO ENSURE THAT ALL FUNCTION CALLS ARE FULLFILLING THIS, WHICH IS WHY GetKeyData() HAS AN EXPLICIT CONTEXT. +void ImGuiIO::AddKeyAnalogEvent(ImGuiKey key, bool down, float analog_value) +{ + //if (e->Down) { IMGUI_DEBUG_LOG_IO("AddKeyEvent() Key='%s' %d, NativeKeycode = %d, NativeScancode = %d\n", ImGui::GetKeyName(e->Key), e->Down, e->NativeKeycode, e->NativeScancode); } + IM_ASSERT(Ctx != NULL); + if (key == ImGuiKey_None || !AppAcceptingEvents) + return; + ImGuiContext& g = *Ctx; + IM_ASSERT(ImGui::IsNamedKeyOrModKey(key)); // Backend needs to pass a valid ImGuiKey_ constant. 0..511 values are legacy native key codes which are not accepted by this API. + IM_ASSERT(ImGui::IsAliasKey(key) == false); // Backend cannot submit ImGuiKey_MouseXXX values they are automatically inferred from AddMouseXXX() events. + IM_ASSERT(key != ImGuiMod_Shortcut); // We could easily support the translation here but it seems saner to not accept it (TestEngine perform a translation itself) + + // Verify that backend isn't mixing up using new io.AddKeyEvent() api and old io.KeysDown[] + io.KeyMap[] data. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((BackendUsingLegacyKeyArrays == -1 || BackendUsingLegacyKeyArrays == 0) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + if (BackendUsingLegacyKeyArrays == -1) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + IM_ASSERT(KeyMap[n] == -1 && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + BackendUsingLegacyKeyArrays = 0; +#endif + if (ImGui::IsGamepadKey(key)) + BackendUsingLegacyNavInputArray = false; + + // Filter duplicate (in particular: key mods and gamepad analog values are commonly spammed) + const ImGuiInputEvent* latest_event = FindLatestInputEvent(&g, ImGuiInputEventType_Key, (int)key); + const ImGuiKeyData* key_data = ImGui::GetKeyData(&g, key); + const bool latest_key_down = latest_event ? latest_event->Key.Down : key_data->Down; + const float latest_key_analog = latest_event ? latest_event->Key.AnalogValue : key_data->AnalogValue; + if (latest_key_down == down && latest_key_analog == analog_value) + return; + + // Add event + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Key; + e.Source = ImGui::IsGamepadKey(key) ? ImGuiInputSource_Gamepad : ImGuiInputSource_Keyboard; + e.EventId = g.InputEventsNextEventId++; + e.Key.Key = key; + e.Key.Down = down; + e.Key.AnalogValue = analog_value; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) +{ + if (!AppAcceptingEvents) + return; + AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); +} + +// [Optional] Call after AddKeyEvent(). +// Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. +// If you are writing a backend in 2022 or don't use IsKeyXXX() with native values that are not ImGuiKey values, you can avoid calling this. +void ImGuiIO::SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index) +{ + if (key == ImGuiKey_None) + return; + IM_ASSERT(ImGui::IsNamedKey(key)); // >= 512 + IM_ASSERT(native_legacy_index == -1 || ImGui::IsLegacyKey((ImGuiKey)native_legacy_index)); // >= 0 && <= 511 + IM_UNUSED(native_keycode); // Yet unused + IM_UNUSED(native_scancode); // Yet unused + + // Build native->imgui map so old user code can still call key functions with native 0..511 values. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const int legacy_key = (native_legacy_index != -1) ? native_legacy_index : native_keycode; + if (!ImGui::IsLegacyKey((ImGuiKey)legacy_key)) + return; + KeyMap[legacy_key] = key; + KeyMap[key] = legacy_key; +#else + IM_UNUSED(key); + IM_UNUSED(native_legacy_index); +#endif +} + +// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. +void ImGuiIO::SetAppAcceptingEvents(bool accepting_events) +{ + AppAcceptingEvents = accepting_events; +} + +// Queue a mouse move event +void ImGuiIO::AddMousePosEvent(float x, float y) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + if (!AppAcceptingEvents) + return; + + // Apply same flooring as UpdateMouseInputs() + ImVec2 pos((x > -FLT_MAX) ? ImFloor(x) : x, (y > -FLT_MAX) ? ImFloor(y) : y); + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(&g, ImGuiInputEventType_MousePos); + const ImVec2 latest_pos = latest_event ? ImVec2(latest_event->MousePos.PosX, latest_event->MousePos.PosY) : g.IO.MousePos; + if (latest_pos.x == pos.x && latest_pos.y == pos.y) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MousePos; + e.Source = ImGuiInputSource_Mouse; + e.EventId = g.InputEventsNextEventId++; + e.MousePos.PosX = pos.x; + e.MousePos.PosY = pos.y; + e.MousePos.MouseSource = g.InputEventsNextMouseSource; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddMouseButtonEvent(int mouse_button, bool down) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + IM_ASSERT(mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT); + if (!AppAcceptingEvents) + return; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(&g, ImGuiInputEventType_MouseButton, (int)mouse_button); + const bool latest_button_down = latest_event ? latest_event->MouseButton.Down : g.IO.MouseDown[mouse_button]; + if (latest_button_down == down) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseButton; + e.Source = ImGuiInputSource_Mouse; + e.EventId = g.InputEventsNextEventId++; + e.MouseButton.Button = mouse_button; + e.MouseButton.Down = down; + e.MouseButton.MouseSource = g.InputEventsNextMouseSource; + g.InputEventsQueue.push_back(e); +} + +// Queue a mouse wheel event (some mouse/API may only have a Y component) +void ImGuiIO::AddMouseWheelEvent(float wheel_x, float wheel_y) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + + // Filter duplicate (unlike most events, wheel values are relative and easy to filter) + if (!AppAcceptingEvents || (wheel_x == 0.0f && wheel_y == 0.0f)) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseWheel; + e.Source = ImGuiInputSource_Mouse; + e.EventId = g.InputEventsNextEventId++; + e.MouseWheel.WheelX = wheel_x; + e.MouseWheel.WheelY = wheel_y; + e.MouseWheel.MouseSource = g.InputEventsNextMouseSource; + g.InputEventsQueue.push_back(e); +} + +// This is not a real event, the data is latched in order to be stored in actual Mouse events. +// This is so that duplicate events (e.g. Windows sending extraneous WM_MOUSEMOVE) gets filtered and are not leading to actual source changes. +void ImGuiIO::AddMouseSourceEvent(ImGuiMouseSource source) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + g.InputEventsNextMouseSource = source; +} + +void ImGuiIO::AddMouseViewportEvent(ImGuiID viewport_id) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + //IM_ASSERT(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport); + if (!AppAcceptingEvents) + return; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(&g, ImGuiInputEventType_MouseViewport); + const ImGuiID latest_viewport_id = latest_event ? latest_event->MouseViewport.HoveredViewportID : g.IO.MouseHoveredViewport; + if (latest_viewport_id == viewport_id) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseViewport; + e.Source = ImGuiInputSource_Mouse; + e.MouseViewport.HoveredViewportID = viewport_id; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddFocusEvent(bool focused) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(&g, ImGuiInputEventType_Focus); + const bool latest_focused = latest_event ? latest_event->AppFocused.Focused : !g.IO.AppFocusLost; + if (latest_focused == focused || (ConfigDebugIgnoreFocusLoss && !focused)) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Focus; + e.EventId = g.InputEventsNextEventId++; + e.AppFocused.Focused = focused; + g.InputEventsQueue.push_back(e); +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) +//----------------------------------------------------------------------------- + +ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments) +{ + IM_ASSERT(num_segments > 0); // Use ImBezierCubicClosestPointCasteljau() + ImVec2 p_last = p1; + ImVec2 p_closest; + float p_closest_dist2 = FLT_MAX; + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + { + ImVec2 p_current = ImBezierCubicCalc(p1, p2, p3, p4, t_step * i_step); + ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); + float dist2 = ImLengthSqr(p - p_line); + if (dist2 < p_closest_dist2) + { + p_closest = p_line; + p_closest_dist2 = dist2; + } + p_last = p_current; + } + return p_closest; +} + +// Closely mimics PathBezierToCasteljau() in imgui_draw.cpp +static void ImBezierCubicClosestPointCasteljauStep(const ImVec2& p, ImVec2& p_closest, ImVec2& p_last, float& p_closest_dist2, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) +{ + float dx = x4 - x1; + float dy = y4 - y1; + float d2 = ((x2 - x4) * dy - (y2 - y4) * dx); + float d3 = ((x3 - x4) * dy - (y3 - y4) * dx); + d2 = (d2 >= 0) ? d2 : -d2; + d3 = (d3 >= 0) ? d3 : -d3; + if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) + { + ImVec2 p_current(x4, y4); + ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); + float dist2 = ImLengthSqr(p - p_line); + if (dist2 < p_closest_dist2) + { + p_closest = p_line; + p_closest_dist2 = dist2; + } + p_last = p_current; + } + else if (level < 10) + { + float x12 = (x1 + x2)*0.5f, y12 = (y1 + y2)*0.5f; + float x23 = (x2 + x3)*0.5f, y23 = (y2 + y3)*0.5f; + float x34 = (x3 + x4)*0.5f, y34 = (y3 + y4)*0.5f; + float x123 = (x12 + x23)*0.5f, y123 = (y12 + y23)*0.5f; + float x234 = (x23 + x34)*0.5f, y234 = (y23 + y34)*0.5f; + float x1234 = (x123 + x234)*0.5f, y1234 = (y123 + y234)*0.5f; + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); + } +} + +// tess_tol is generally the same value you would find in ImGui::GetStyle().CurveTessellationTol +// Because those ImXXX functions are lower-level than ImGui:: we cannot access this value automatically. +ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol) +{ + IM_ASSERT(tess_tol > 0.0f); + ImVec2 p_last = p1; + ImVec2 p_closest; + float p_closest_dist2 = FLT_MAX; + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, tess_tol, 0); + return p_closest; +} + +ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p) +{ + ImVec2 ap = p - a; + ImVec2 ab_dir = b - a; + float dot = ap.x * ab_dir.x + ap.y * ab_dir.y; + if (dot < 0.0f) + return a; + float ab_len_sqr = ab_dir.x * ab_dir.x + ab_dir.y * ab_dir.y; + if (dot > ab_len_sqr) + return b; + return a + ab_dir * dot / ab_len_sqr; +} + +bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) +{ + bool b1 = ((p.x - b.x) * (a.y - b.y) - (p.y - b.y) * (a.x - b.x)) < 0.0f; + bool b2 = ((p.x - c.x) * (b.y - c.y) - (p.y - c.y) * (b.x - c.x)) < 0.0f; + bool b3 = ((p.x - a.x) * (c.y - a.y) - (p.y - a.y) * (c.x - a.x)) < 0.0f; + return ((b1 == b2) && (b2 == b3)); +} + +void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w) +{ + ImVec2 v0 = b - a; + ImVec2 v1 = c - a; + ImVec2 v2 = p - a; + const float denom = v0.x * v1.y - v1.x * v0.y; + out_v = (v2.x * v1.y - v1.x * v2.y) / denom; + out_w = (v0.x * v2.y - v2.x * v0.y) / denom; + out_u = 1.0f - out_v - out_w; +} + +ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) +{ + ImVec2 proj_ab = ImLineClosestPoint(a, b, p); + ImVec2 proj_bc = ImLineClosestPoint(b, c, p); + ImVec2 proj_ca = ImLineClosestPoint(c, a, p); + float dist2_ab = ImLengthSqr(p - proj_ab); + float dist2_bc = ImLengthSqr(p - proj_bc); + float dist2_ca = ImLengthSqr(p - proj_ca); + float m = ImMin(dist2_ab, ImMin(dist2_bc, dist2_ca)); + if (m == dist2_ab) + return proj_ab; + if (m == dist2_bc) + return proj_bc; + return proj_ca; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) +//----------------------------------------------------------------------------- + +// Consider using _stricmp/_strnicmp under Windows or strcasecmp/strncasecmp. We don't actually use either ImStricmp/ImStrnicmp in the codebase any more. +int ImStricmp(const char* str1, const char* str2) +{ + int d; + while ((d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; } + return d; +} + +int ImStrnicmp(const char* str1, const char* str2, size_t count) +{ + int d = 0; + while (count > 0 && (d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; count--; } + return d; +} + +void ImStrncpy(char* dst, const char* src, size_t count) +{ + if (count < 1) + return; + if (count > 1) + strncpy(dst, src, count - 1); + dst[count - 1] = 0; +} + +char* ImStrdup(const char* str) +{ + size_t len = strlen(str); + void* buf = IM_ALLOC(len + 1); + return (char*)memcpy(buf, (const void*)str, len + 1); +} + +char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* src) +{ + size_t dst_buf_size = p_dst_size ? *p_dst_size : strlen(dst) + 1; + size_t src_size = strlen(src) + 1; + if (dst_buf_size < src_size) + { + IM_FREE(dst); + dst = (char*)IM_ALLOC(src_size); + if (p_dst_size) + *p_dst_size = src_size; + } + return (char*)memcpy(dst, (const void*)src, src_size); +} + +const char* ImStrchrRange(const char* str, const char* str_end, char c) +{ + const char* p = (const char*)memchr(str, (int)c, str_end - str); + return p; +} + +int ImStrlenW(const ImWchar* str) +{ + //return (int)wcslen((const wchar_t*)str); // FIXME-OPT: Could use this when wchar_t are 16-bit + int n = 0; + while (*str++) n++; + return n; +} + +// Find end-of-line. Return pointer will point to either first \n, either str_end. +const char* ImStreolRange(const char* str, const char* str_end) +{ + const char* p = (const char*)memchr(str, '\n', str_end - str); + return p ? p : str_end; +} + +const ImWchar* ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin) // find beginning-of-line +{ + while (buf_mid_line > buf_begin && buf_mid_line[-1] != '\n') + buf_mid_line--; + return buf_mid_line; +} + +const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end) +{ + if (!needle_end) + needle_end = needle + strlen(needle); + + const char un0 = (char)ImToUpper(*needle); + while ((!haystack_end && *haystack) || (haystack_end && haystack < haystack_end)) + { + if (ImToUpper(*haystack) == un0) + { + const char* b = needle + 1; + for (const char* a = haystack + 1; b < needle_end; a++, b++) + if (ImToUpper(*a) != ImToUpper(*b)) + break; + if (b == needle_end) + return haystack; + } + haystack++; + } + return NULL; +} + +// Trim str by offsetting contents when there's leading data + writing a \0 at the trailing position. We use this in situation where the cost is negligible. +void ImStrTrimBlanks(char* buf) +{ + char* p = buf; + while (p[0] == ' ' || p[0] == '\t') // Leading blanks + p++; + char* p_start = p; + while (*p != 0) // Find end of string + p++; + while (p > p_start && (p[-1] == ' ' || p[-1] == '\t')) // Trailing blanks + p--; + if (p_start != buf) // Copy memory if we had leading blanks + memmove(buf, p_start, p - p_start); + buf[p - p_start] = 0; // Zero terminate +} + +const char* ImStrSkipBlank(const char* str) +{ + while (str[0] == ' ' || str[0] == '\t') + str++; + return str; +} + +// A) MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size). +// Ideally we would test for only one of those limits at runtime depending on the behavior the vsnprintf(), but trying to deduct it at compile time sounds like a pandora can of worm. +// B) When buf==NULL vsnprintf() will return the output size. +#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + +// We support stb_sprintf which is much faster (see: https://github.com/nothings/stb/blob/master/stb_sprintf.h) +// You may set IMGUI_USE_STB_SPRINTF to use our default wrapper, or set IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +// and setup the wrapper yourself. (FIXME-OPT: Some of our high-level operations such as ImGuiTextBuffer::appendfv() are +// designed using two-passes worst case, which probably could be improved using the stbsp_vsprintfcb() function.) +#ifdef IMGUI_USE_STB_SPRINTF +#ifndef IMGUI_DISABLE_STB_SPRINTF_IMPLEMENTATION +#define STB_SPRINTF_IMPLEMENTATION +#endif +#ifdef IMGUI_STB_SPRINTF_FILENAME +#include IMGUI_STB_SPRINTF_FILENAME +#else +#include "stb_sprintf.h" +#endif +#endif // #ifdef IMGUI_USE_STB_SPRINTF + +#if defined(_MSC_VER) && !defined(vsnprintf) +#define vsnprintf _vsnprintf +#endif + +int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); +#ifdef IMGUI_USE_STB_SPRINTF + int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); +#else + int w = vsnprintf(buf, buf_size, fmt, args); +#endif + va_end(args); + if (buf == NULL) + return w; + if (w == -1 || w >= (int)buf_size) + w = (int)buf_size - 1; + buf[w] = 0; + return w; +} + +int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) +{ +#ifdef IMGUI_USE_STB_SPRINTF + int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); +#else + int w = vsnprintf(buf, buf_size, fmt, args); +#endif + if (buf == NULL) + return w; + if (w == -1 || w >= (int)buf_size) + w = (int)buf_size - 1; + buf[w] = 0; + return w; +} +#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + +void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + ImFormatStringToTempBufferV(out_buf, out_buf_end, fmt, args); + va_end(args); +} + +void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + { + const char* buf = va_arg(args, const char*); // Skip formatting when using "%s" + *out_buf = buf; + if (out_buf_end) { *out_buf_end = buf + strlen(buf); } + } + else if (fmt[0] == '%' && fmt[1] == '.' && fmt[2] == '*' && fmt[3] == 's' && fmt[4] == 0) + { + int buf_len = va_arg(args, int); // Skip formatting when using "%.*s" + const char* buf = va_arg(args, const char*); + *out_buf = buf; + *out_buf_end = buf + buf_len; // Disallow not passing 'out_buf_end' here. User is expected to use it. + } + else + { + int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args); + *out_buf = g.TempBuffer.Data; + if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; } + } +} + +// CRC32 needs a 1KB lookup table (not cache friendly) +// Although the code to generate the table is simple and shorter than the table itself, using a const table allows us to easily: +// - avoid an unnecessary branch/memory tap, - keep the ImHashXXX functions usable by static constructors, - make it thread-safe. +static const ImU32 GCrc32LookupTable[256] = +{ + 0x00000000,0x77073096,0xEE0E612C,0x990951BA,0x076DC419,0x706AF48F,0xE963A535,0x9E6495A3,0x0EDB8832,0x79DCB8A4,0xE0D5E91E,0x97D2D988,0x09B64C2B,0x7EB17CBD,0xE7B82D07,0x90BF1D91, + 0x1DB71064,0x6AB020F2,0xF3B97148,0x84BE41DE,0x1ADAD47D,0x6DDDE4EB,0xF4D4B551,0x83D385C7,0x136C9856,0x646BA8C0,0xFD62F97A,0x8A65C9EC,0x14015C4F,0x63066CD9,0xFA0F3D63,0x8D080DF5, + 0x3B6E20C8,0x4C69105E,0xD56041E4,0xA2677172,0x3C03E4D1,0x4B04D447,0xD20D85FD,0xA50AB56B,0x35B5A8FA,0x42B2986C,0xDBBBC9D6,0xACBCF940,0x32D86CE3,0x45DF5C75,0xDCD60DCF,0xABD13D59, + 0x26D930AC,0x51DE003A,0xC8D75180,0xBFD06116,0x21B4F4B5,0x56B3C423,0xCFBA9599,0xB8BDA50F,0x2802B89E,0x5F058808,0xC60CD9B2,0xB10BE924,0x2F6F7C87,0x58684C11,0xC1611DAB,0xB6662D3D, + 0x76DC4190,0x01DB7106,0x98D220BC,0xEFD5102A,0x71B18589,0x06B6B51F,0x9FBFE4A5,0xE8B8D433,0x7807C9A2,0x0F00F934,0x9609A88E,0xE10E9818,0x7F6A0DBB,0x086D3D2D,0x91646C97,0xE6635C01, + 0x6B6B51F4,0x1C6C6162,0x856530D8,0xF262004E,0x6C0695ED,0x1B01A57B,0x8208F4C1,0xF50FC457,0x65B0D9C6,0x12B7E950,0x8BBEB8EA,0xFCB9887C,0x62DD1DDF,0x15DA2D49,0x8CD37CF3,0xFBD44C65, + 0x4DB26158,0x3AB551CE,0xA3BC0074,0xD4BB30E2,0x4ADFA541,0x3DD895D7,0xA4D1C46D,0xD3D6F4FB,0x4369E96A,0x346ED9FC,0xAD678846,0xDA60B8D0,0x44042D73,0x33031DE5,0xAA0A4C5F,0xDD0D7CC9, + 0x5005713C,0x270241AA,0xBE0B1010,0xC90C2086,0x5768B525,0x206F85B3,0xB966D409,0xCE61E49F,0x5EDEF90E,0x29D9C998,0xB0D09822,0xC7D7A8B4,0x59B33D17,0x2EB40D81,0xB7BD5C3B,0xC0BA6CAD, + 0xEDB88320,0x9ABFB3B6,0x03B6E20C,0x74B1D29A,0xEAD54739,0x9DD277AF,0x04DB2615,0x73DC1683,0xE3630B12,0x94643B84,0x0D6D6A3E,0x7A6A5AA8,0xE40ECF0B,0x9309FF9D,0x0A00AE27,0x7D079EB1, + 0xF00F9344,0x8708A3D2,0x1E01F268,0x6906C2FE,0xF762575D,0x806567CB,0x196C3671,0x6E6B06E7,0xFED41B76,0x89D32BE0,0x10DA7A5A,0x67DD4ACC,0xF9B9DF6F,0x8EBEEFF9,0x17B7BE43,0x60B08ED5, + 0xD6D6A3E8,0xA1D1937E,0x38D8C2C4,0x4FDFF252,0xD1BB67F1,0xA6BC5767,0x3FB506DD,0x48B2364B,0xD80D2BDA,0xAF0A1B4C,0x36034AF6,0x41047A60,0xDF60EFC3,0xA867DF55,0x316E8EEF,0x4669BE79, + 0xCB61B38C,0xBC66831A,0x256FD2A0,0x5268E236,0xCC0C7795,0xBB0B4703,0x220216B9,0x5505262F,0xC5BA3BBE,0xB2BD0B28,0x2BB45A92,0x5CB36A04,0xC2D7FFA7,0xB5D0CF31,0x2CD99E8B,0x5BDEAE1D, + 0x9B64C2B0,0xEC63F226,0x756AA39C,0x026D930A,0x9C0906A9,0xEB0E363F,0x72076785,0x05005713,0x95BF4A82,0xE2B87A14,0x7BB12BAE,0x0CB61B38,0x92D28E9B,0xE5D5BE0D,0x7CDCEFB7,0x0BDBDF21, + 0x86D3D2D4,0xF1D4E242,0x68DDB3F8,0x1FDA836E,0x81BE16CD,0xF6B9265B,0x6FB077E1,0x18B74777,0x88085AE6,0xFF0F6A70,0x66063BCA,0x11010B5C,0x8F659EFF,0xF862AE69,0x616BFFD3,0x166CCF45, + 0xA00AE278,0xD70DD2EE,0x4E048354,0x3903B3C2,0xA7672661,0xD06016F7,0x4969474D,0x3E6E77DB,0xAED16A4A,0xD9D65ADC,0x40DF0B66,0x37D83BF0,0xA9BCAE53,0xDEBB9EC5,0x47B2CF7F,0x30B5FFE9, + 0xBDBDF21C,0xCABAC28A,0x53B39330,0x24B4A3A6,0xBAD03605,0xCDD70693,0x54DE5729,0x23D967BF,0xB3667A2E,0xC4614AB8,0x5D681B02,0x2A6F2B94,0xB40BBE37,0xC30C8EA1,0x5A05DF1B,0x2D02EF8D, +}; + +// Known size hash +// It is ok to call ImHashData on a string with known length but the ### operator won't be supported. +// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. +ImGuiID ImHashData(const void* data_p, size_t data_size, ImGuiID seed) +{ + ImU32 crc = ~seed; + const unsigned char* data = (const unsigned char*)data_p; + const ImU32* crc32_lut = GCrc32LookupTable; + while (data_size-- != 0) + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ *data++]; + return ~crc; +} + +// Zero-terminated string hash, with support for ### to reset back to seed value +// We support a syntax of "label###id" where only "###id" is included in the hash, and only "label" gets displayed. +// Because this syntax is rarely used we are optimizing for the common case. +// - If we reach ### in the string we discard the hash so far and reset to the seed. +// - We don't do 'current += 2; continue;' after handling ### to keep the code smaller/faster (measured ~10% diff in Debug build) +// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. +ImGuiID ImHashStr(const char* data_p, size_t data_size, ImGuiID seed) +{ + seed = ~seed; + ImU32 crc = seed; + const unsigned char* data = (const unsigned char*)data_p; + const ImU32* crc32_lut = GCrc32LookupTable; + if (data_size != 0) + { + while (data_size-- != 0) + { + unsigned char c = *data++; + if (c == '#' && data_size >= 2 && data[0] == '#' && data[1] == '#') + crc = seed; + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; + } + } + else + { + while (unsigned char c = *data++) + { + if (c == '#' && data[0] == '#' && data[1] == '#') + crc = seed; + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; + } + } + return ~crc; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (File functions) +//----------------------------------------------------------------------------- + +// Default file functions +#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + +ImFileHandle ImFileOpen(const char* filename, const char* mode) +{ +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(__CYGWIN__) && !defined(__GNUC__) + // We need a fopen() wrapper because MSVC/Windows fopen doesn't handle UTF-8 filenames. + // Previously we used ImTextCountCharsFromUtf8/ImTextStrFromUtf8 here but we now need to support ImWchar16 and ImWchar32! + const int filename_wsize = ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0); + const int mode_wsize = ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, NULL, 0); + ImGuiContext& g = *GImGui; + g.TempBuffer.reserve((filename_wsize + mode_wsize) * sizeof(wchar_t)); + wchar_t* buf = (wchar_t*)(void*)g.TempBuffer.Data; + ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, (wchar_t*)&buf[0], filename_wsize); + ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, (wchar_t*)&buf[filename_wsize], mode_wsize); + return ::_wfopen((const wchar_t*)&buf[0], (const wchar_t*)&buf[filename_wsize]); +#else + return fopen(filename, mode); +#endif +} + +// We should in theory be using fseeko()/ftello() with off_t and _fseeki64()/_ftelli64() with __int64, waiting for the PR that does that in a very portable pre-C++11 zero-warnings way. +bool ImFileClose(ImFileHandle f) { return fclose(f) == 0; } +ImU64 ImFileGetSize(ImFileHandle f) { long off = 0, sz = 0; return ((off = ftell(f)) != -1 && !fseek(f, 0, SEEK_END) && (sz = ftell(f)) != -1 && !fseek(f, off, SEEK_SET)) ? (ImU64)sz : (ImU64)-1; } +ImU64 ImFileRead(void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fread(data, (size_t)sz, (size_t)count, f); } +ImU64 ImFileWrite(const void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fwrite(data, (size_t)sz, (size_t)count, f); } +#endif // #ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + +// Helper: Load file content into memory +// Memory allocated with IM_ALLOC(), must be freed by user using IM_FREE() == ImGui::MemFree() +// This can't really be used with "rt" because fseek size won't match read size. +void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size, int padding_bytes) +{ + IM_ASSERT(filename && mode); + if (out_file_size) + *out_file_size = 0; + + ImFileHandle f; + if ((f = ImFileOpen(filename, mode)) == NULL) + return NULL; + + size_t file_size = (size_t)ImFileGetSize(f); + if (file_size == (size_t)-1) + { + ImFileClose(f); + return NULL; + } + + void* file_data = IM_ALLOC(file_size + padding_bytes); + if (file_data == NULL) + { + ImFileClose(f); + return NULL; + } + if (ImFileRead(file_data, 1, file_size, f) != file_size) + { + ImFileClose(f); + IM_FREE(file_data); + return NULL; + } + if (padding_bytes > 0) + memset((void*)(((char*)file_data) + file_size), 0, (size_t)padding_bytes); + + ImFileClose(f); + if (out_file_size) + *out_file_size = file_size; + + return file_data; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) +//----------------------------------------------------------------------------- + +IM_MSVC_RUNTIME_CHECKS_OFF + +// Convert UTF-8 to 32-bit character, process single character input. +// A nearly-branchless UTF-8 decoder, based on work of Christopher Wellons (https://github.com/skeeto/branchless-utf8). +// We handle UTF-8 decoding error by skipping forward. +int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end) +{ + static const char lengths[32] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 3, 3, 4, 0 }; + static const int masks[] = { 0x00, 0x7f, 0x1f, 0x0f, 0x07 }; + static const uint32_t mins[] = { 0x400000, 0, 0x80, 0x800, 0x10000 }; + static const int shiftc[] = { 0, 18, 12, 6, 0 }; + static const int shifte[] = { 0, 6, 4, 2, 0 }; + int len = lengths[*(const unsigned char*)in_text >> 3]; + int wanted = len + (len ? 0 : 1); + + if (in_text_end == NULL) + in_text_end = in_text + wanted; // Max length, nulls will be taken into account. + + // Copy at most 'len' bytes, stop copying at 0 or past in_text_end. Branch predictor does a good job here, + // so it is fast even with excessive branching. + unsigned char s[4]; + s[0] = in_text + 0 < in_text_end ? in_text[0] : 0; + s[1] = in_text + 1 < in_text_end ? in_text[1] : 0; + s[2] = in_text + 2 < in_text_end ? in_text[2] : 0; + s[3] = in_text + 3 < in_text_end ? in_text[3] : 0; + + // Assume a four-byte character and load four bytes. Unused bits are shifted out. + *out_char = (uint32_t)(s[0] & masks[len]) << 18; + *out_char |= (uint32_t)(s[1] & 0x3f) << 12; + *out_char |= (uint32_t)(s[2] & 0x3f) << 6; + *out_char |= (uint32_t)(s[3] & 0x3f) << 0; + *out_char >>= shiftc[len]; + + // Accumulate the various error conditions. + int e = 0; + e = (*out_char < mins[len]) << 6; // non-canonical encoding + e |= ((*out_char >> 11) == 0x1b) << 7; // surrogate half? + e |= (*out_char > IM_UNICODE_CODEPOINT_MAX) << 8; // out of range? + e |= (s[1] & 0xc0) >> 2; + e |= (s[2] & 0xc0) >> 4; + e |= (s[3] ) >> 6; + e ^= 0x2a; // top two bits of each tail byte correct? + e >>= shifte[len]; + + if (e) + { + // No bytes are consumed when *in_text == 0 || in_text == in_text_end. + // One byte is consumed in case of invalid first byte of in_text. + // All available bytes (at most `len` bytes) are consumed on incomplete/invalid second to last bytes. + // Invalid or incomplete input may consume less bytes than wanted, therefore every byte has to be inspected in s. + wanted = ImMin(wanted, !!s[0] + !!s[1] + !!s[2] + !!s[3]); + *out_char = IM_UNICODE_CODEPOINT_INVALID; + } + + return wanted; +} + +int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_text_remaining) +{ + ImWchar* buf_out = buf; + ImWchar* buf_end = buf + buf_size; + while (buf_out < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c; + in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); + *buf_out++ = (ImWchar)c; + } + *buf_out = 0; + if (in_text_remaining) + *in_text_remaining = in_text; + return (int)(buf_out - buf); +} + +int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end) +{ + int char_count = 0; + while ((!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c; + in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); + char_count++; + } + return char_count; +} + +// Based on stb_to_utf8() from github.com/nothings/stb/ +static inline int ImTextCharToUtf8_inline(char* buf, int buf_size, unsigned int c) +{ + if (c < 0x80) + { + buf[0] = (char)c; + return 1; + } + if (c < 0x800) + { + if (buf_size < 2) return 0; + buf[0] = (char)(0xc0 + (c >> 6)); + buf[1] = (char)(0x80 + (c & 0x3f)); + return 2; + } + if (c < 0x10000) + { + if (buf_size < 3) return 0; + buf[0] = (char)(0xe0 + (c >> 12)); + buf[1] = (char)(0x80 + ((c >> 6) & 0x3f)); + buf[2] = (char)(0x80 + ((c ) & 0x3f)); + return 3; + } + if (c <= 0x10FFFF) + { + if (buf_size < 4) return 0; + buf[0] = (char)(0xf0 + (c >> 18)); + buf[1] = (char)(0x80 + ((c >> 12) & 0x3f)); + buf[2] = (char)(0x80 + ((c >> 6) & 0x3f)); + buf[3] = (char)(0x80 + ((c ) & 0x3f)); + return 4; + } + // Invalid code point, the max unicode is 0x10FFFF + return 0; +} + +const char* ImTextCharToUtf8(char out_buf[5], unsigned int c) +{ + int count = ImTextCharToUtf8_inline(out_buf, 5, c); + out_buf[count] = 0; + return out_buf; +} + +// Not optimal but we very rarely use this function. +int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end) +{ + unsigned int unused = 0; + return ImTextCharFromUtf8(&unused, in_text, in_text_end); +} + +static inline int ImTextCountUtf8BytesFromChar(unsigned int c) +{ + if (c < 0x80) return 1; + if (c < 0x800) return 2; + if (c < 0x10000) return 3; + if (c <= 0x10FFFF) return 4; + return 3; +} + +int ImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end) +{ + char* buf_p = out_buf; + const char* buf_end = out_buf + out_buf_size; + while (buf_p < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c = (unsigned int)(*in_text++); + if (c < 0x80) + *buf_p++ = (char)c; + else + buf_p += ImTextCharToUtf8_inline(buf_p, (int)(buf_end - buf_p - 1), c); + } + *buf_p = 0; + return (int)(buf_p - out_buf); +} + +int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end) +{ + int bytes_count = 0; + while ((!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c = (unsigned int)(*in_text++); + if (c < 0x80) + bytes_count++; + else + bytes_count += ImTextCountUtf8BytesFromChar(c); + } + return bytes_count; +} + +const char* ImTextFindPreviousUtf8Codepoint(const char* in_text_start, const char* in_text_curr) +{ + while (in_text_curr > in_text_start) + { + in_text_curr--; + if ((*in_text_curr & 0xC0) != 0x80) + return in_text_curr; + } + return in_text_start; +} + +IM_MSVC_RUNTIME_CHECKS_RESTORE + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (Color functions) +// Note: The Convert functions are early design which are not consistent with other API. +//----------------------------------------------------------------------------- + +IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b) +{ + float t = ((col_b >> IM_COL32_A_SHIFT) & 0xFF) / 255.f; + int r = ImLerp((int)(col_a >> IM_COL32_R_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_R_SHIFT) & 0xFF, t); + int g = ImLerp((int)(col_a >> IM_COL32_G_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_G_SHIFT) & 0xFF, t); + int b = ImLerp((int)(col_a >> IM_COL32_B_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_B_SHIFT) & 0xFF, t); + return IM_COL32(r, g, b, 0xFF); +} + +ImVec4 ImGui::ColorConvertU32ToFloat4(ImU32 in) +{ + float s = 1.0f / 255.0f; + return ImVec4( + ((in >> IM_COL32_R_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_G_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_B_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_A_SHIFT) & 0xFF) * s); +} + +ImU32 ImGui::ColorConvertFloat4ToU32(const ImVec4& in) +{ + ImU32 out; + out = ((ImU32)IM_F32_TO_INT8_SAT(in.x)) << IM_COL32_R_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.y)) << IM_COL32_G_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.z)) << IM_COL32_B_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.w)) << IM_COL32_A_SHIFT; + return out; +} + +// Convert rgb floats ([0-1],[0-1],[0-1]) to hsv floats ([0-1],[0-1],[0-1]), from Foley & van Dam p592 +// Optimized http://lolengine.net/blog/2013/01/13/fast-rgb-to-hsv +void ImGui::ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v) +{ + float K = 0.f; + if (g < b) + { + ImSwap(g, b); + K = -1.f; + } + if (r < g) + { + ImSwap(r, g); + K = -2.f / 6.f - K; + } + + const float chroma = r - (g < b ? g : b); + out_h = ImFabs(K + (g - b) / (6.f * chroma + 1e-20f)); + out_s = chroma / (r + 1e-20f); + out_v = r; +} + +// Convert hsv floats ([0-1],[0-1],[0-1]) to rgb floats ([0-1],[0-1],[0-1]), from Foley & van Dam p593 +// also http://en.wikipedia.org/wiki/HSL_and_HSV +void ImGui::ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b) +{ + if (s == 0.0f) + { + // gray + out_r = out_g = out_b = v; + return; + } + + h = ImFmod(h, 1.0f) / (60.0f / 360.0f); + int i = (int)h; + float f = h - (float)i; + float p = v * (1.0f - s); + float q = v * (1.0f - s * f); + float t = v * (1.0f - s * (1.0f - f)); + + switch (i) + { + case 0: out_r = v; out_g = t; out_b = p; break; + case 1: out_r = q; out_g = v; out_b = p; break; + case 2: out_r = p; out_g = v; out_b = t; break; + case 3: out_r = p; out_g = q; out_b = v; break; + case 4: out_r = t; out_g = p; out_b = v; break; + case 5: default: out_r = v; out_g = p; out_b = q; break; + } +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiStorage +// Helper: Key->value storage +//----------------------------------------------------------------------------- + +// std::lower_bound but without the bullshit +static ImGuiStorage::ImGuiStoragePair* LowerBound(ImVector& data, ImGuiID key) +{ + ImGuiStorage::ImGuiStoragePair* first = data.Data; + ImGuiStorage::ImGuiStoragePair* last = data.Data + data.Size; + size_t count = (size_t)(last - first); + while (count > 0) + { + size_t count2 = count >> 1; + ImGuiStorage::ImGuiStoragePair* mid = first + count2; + if (mid->key < key) + { + first = ++mid; + count -= count2 + 1; + } + else + { + count = count2; + } + } + return first; +} + +// For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. +void ImGuiStorage::BuildSortByKey() +{ + struct StaticFunc + { + static int IMGUI_CDECL PairComparerByID(const void* lhs, const void* rhs) + { + // We can't just do a subtraction because qsort uses signed integers and subtracting our ID doesn't play well with that. + if (((const ImGuiStoragePair*)lhs)->key > ((const ImGuiStoragePair*)rhs)->key) return +1; + if (((const ImGuiStoragePair*)lhs)->key < ((const ImGuiStoragePair*)rhs)->key) return -1; + return 0; + } + }; + ImQsort(Data.Data, (size_t)Data.Size, sizeof(ImGuiStoragePair), StaticFunc::PairComparerByID); +} + +int ImGuiStorage::GetInt(ImGuiID key, int default_val) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return default_val; + return it->val_i; +} + +bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const +{ + return GetInt(key, default_val ? 1 : 0) != 0; +} + +float ImGuiStorage::GetFloat(ImGuiID key, float default_val) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return default_val; + return it->val_f; +} + +void* ImGuiStorage::GetVoidPtr(ImGuiID key) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return NULL; + return it->val_p; +} + +// References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. +int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_i; +} + +bool* ImGuiStorage::GetBoolRef(ImGuiID key, bool default_val) +{ + return (bool*)GetIntRef(key, default_val ? 1 : 0); +} + +float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_f; +} + +void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_p; +} + +// FIXME-OPT: Need a way to reuse the result of lower_bound when doing GetInt()/SetInt() - not too bad because it only happens on explicit interaction (maximum one a frame) +void ImGuiStorage::SetInt(ImGuiID key, int val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + Data.insert(it, ImGuiStoragePair(key, val)); + else + it->val_i = val; +} + +void ImGuiStorage::SetBool(ImGuiID key, bool val) +{ + SetInt(key, val ? 1 : 0); +} + +void ImGuiStorage::SetFloat(ImGuiID key, float val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + Data.insert(it, ImGuiStoragePair(key, val)); + else + it->val_f = val; +} + +void ImGuiStorage::SetVoidPtr(ImGuiID key, void* val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + Data.insert(it, ImGuiStoragePair(key, val)); + else + it->val_p = val; +} + +void ImGuiStorage::SetAllInt(int v) +{ + for (int i = 0; i < Data.Size; i++) + Data[i].val_i = v; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiTextFilter +//----------------------------------------------------------------------------- + +// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" +ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) //-V1077 +{ + InputBuf[0] = 0; + CountGrep = 0; + if (default_filter) + { + ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); + Build(); + } +} + +bool ImGuiTextFilter::Draw(const char* label, float width) +{ + if (width != 0.0f) + ImGui::SetNextItemWidth(width); + bool value_changed = ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf)); + if (value_changed) + Build(); + return value_changed; +} + +void ImGuiTextFilter::ImGuiTextRange::split(char separator, ImVector* out) const +{ + out->resize(0); + const char* wb = b; + const char* we = wb; + while (we < e) + { + if (*we == separator) + { + out->push_back(ImGuiTextRange(wb, we)); + wb = we + 1; + } + we++; + } + if (wb != we) + out->push_back(ImGuiTextRange(wb, we)); +} + +void ImGuiTextFilter::Build() +{ + Filters.resize(0); + ImGuiTextRange input_range(InputBuf, InputBuf + strlen(InputBuf)); + input_range.split(',', &Filters); + + CountGrep = 0; + for (ImGuiTextRange& f : Filters) + { + while (f.b < f.e && ImCharIsBlankA(f.b[0])) + f.b++; + while (f.e > f.b && ImCharIsBlankA(f.e[-1])) + f.e--; + if (f.empty()) + continue; + if (f.b[0] != '-') + CountGrep += 1; + } +} + +bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const +{ + if (Filters.empty()) + return true; + + if (text == NULL) + text = ""; + + for (const ImGuiTextRange& f : Filters) + { + if (f.empty()) + continue; + if (f.b[0] == '-') + { + // Subtract + if (ImStristr(text, text_end, f.b + 1, f.e) != NULL) + return false; + } + else + { + // Grep + if (ImStristr(text, text_end, f.b, f.e) != NULL) + return true; + } + } + + // Implicit * grep + if (CountGrep == 0) + return true; + + return false; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex +//----------------------------------------------------------------------------- + +// On some platform vsnprintf() takes va_list by reference and modifies it. +// va_copy is the 'correct' way to copy a va_list but Visual Studio prior to 2013 doesn't have it. +#ifndef va_copy +#if defined(__GNUC__) || defined(__clang__) +#define va_copy(dest, src) __builtin_va_copy(dest, src) +#else +#define va_copy(dest, src) (dest = src) +#endif +#endif + +char ImGuiTextBuffer::EmptyString[1] = { 0 }; + +void ImGuiTextBuffer::append(const char* str, const char* str_end) +{ + int len = str_end ? (int)(str_end - str) : (int)strlen(str); + + // Add zero-terminator the first time + const int write_off = (Buf.Size != 0) ? Buf.Size : 1; + const int needed_sz = write_off + len; + if (write_off + len >= Buf.Capacity) + { + int new_capacity = Buf.Capacity * 2; + Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); + } + + Buf.resize(needed_sz); + memcpy(&Buf[write_off - 1], str, (size_t)len); + Buf[write_off - 1 + len] = 0; +} + +void ImGuiTextBuffer::appendf(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + appendfv(fmt, args); + va_end(args); +} + +// Helper: Text buffer for logging/accumulating text +void ImGuiTextBuffer::appendfv(const char* fmt, va_list args) +{ + va_list args_copy; + va_copy(args_copy, args); + + int len = ImFormatStringV(NULL, 0, fmt, args); // FIXME-OPT: could do a first pass write attempt, likely successful on first pass. + if (len <= 0) + { + va_end(args_copy); + return; + } + + // Add zero-terminator the first time + const int write_off = (Buf.Size != 0) ? Buf.Size : 1; + const int needed_sz = write_off + len; + if (write_off + len >= Buf.Capacity) + { + int new_capacity = Buf.Capacity * 2; + Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); + } + + Buf.resize(needed_sz); + ImFormatStringV(&Buf[write_off - 1], (size_t)len + 1, fmt, args_copy); + va_end(args_copy); +} + +void ImGuiTextIndex::append(const char* base, int old_size, int new_size) +{ + IM_ASSERT(old_size >= 0 && new_size >= old_size && new_size >= EndOffset); + if (old_size == new_size) + return; + if (EndOffset == 0 || base[EndOffset - 1] == '\n') + LineOffsets.push_back(EndOffset); + const char* base_end = base + new_size; + for (const char* p = base + old_size; (p = (const char*)memchr(p, '\n', base_end - p)) != 0; ) + if (++p < base_end) // Don't push a trailing offset on last \n + LineOffsets.push_back((int)(intptr_t)(p - base)); + EndOffset = ImMax(EndOffset, new_size); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiListClipper +//----------------------------------------------------------------------------- + +// FIXME-TABLE: This prevents us from using ImGuiListClipper _inside_ a table cell. +// The problem we have is that without a Begin/End scheme for rows using the clipper is ambiguous. +static bool GetSkipItemForListClipping() +{ + ImGuiContext& g = *GImGui; + return (g.CurrentTable ? g.CurrentTable->HostSkipItems : g.CurrentWindow->SkipItems); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Legacy helper to calculate coarse clipping of large list of evenly sized items. +// This legacy API is not ideal because it assumes we will return a single contiguous rectangle. +// Prefer using ImGuiListClipper which can returns non-contiguous ranges. +void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.LogEnabled) + { + // If logging is active, do not perform any clipping + *out_items_display_start = 0; + *out_items_display_end = items_count; + return; + } + if (GetSkipItemForListClipping()) + { + *out_items_display_start = *out_items_display_end = 0; + return; + } + + // We create the union of the ClipRect and the scoring rect which at worst should be 1 page away from ClipRect + // We don't include g.NavId's rectangle in there (unless g.NavJustMovedToId is set) because the rectangle enlargement can get costly. + ImRect rect = window->ClipRect; + if (g.NavMoveScoringItems) + rect.Add(g.NavScoringNoClipRect); + if (g.NavJustMovedToId && window->NavLastIds[0] == g.NavJustMovedToId) + rect.Add(WindowRectRelToAbs(window, window->NavRectRel[0])); // Could store and use NavJustMovedToRectRel + + const ImVec2 pos = window->DC.CursorPos; + int start = (int)((rect.Min.y - pos.y) / items_height); + int end = (int)((rect.Max.y - pos.y) / items_height); + + // When performing a navigation request, ensure we have one item extra in the direction we are moving to + // FIXME: Verify this works with tabbing + const bool is_nav_request = (g.NavMoveScoringItems && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (is_nav_request && g.NavMoveClipDir == ImGuiDir_Up) + start--; + if (is_nav_request && g.NavMoveClipDir == ImGuiDir_Down) + end++; + + start = ImClamp(start, 0, items_count); + end = ImClamp(end + 1, start, items_count); + *out_items_display_start = start; + *out_items_display_end = end; +} +#endif + +static void ImGuiListClipper_SortAndFuseRanges(ImVector& ranges, int offset = 0) +{ + if (ranges.Size - offset <= 1) + return; + + // Helper to order ranges and fuse them together if possible (bubble sort is fine as we are only sorting 2-3 entries) + for (int sort_end = ranges.Size - offset - 1; sort_end > 0; --sort_end) + for (int i = offset; i < sort_end + offset; ++i) + if (ranges[i].Min > ranges[i + 1].Min) + ImSwap(ranges[i], ranges[i + 1]); + + // Now fuse ranges together as much as possible. + for (int i = 1 + offset; i < ranges.Size; i++) + { + IM_ASSERT(!ranges[i].PosToIndexConvert && !ranges[i - 1].PosToIndexConvert); + if (ranges[i - 1].Max < ranges[i].Min) + continue; + ranges[i - 1].Min = ImMin(ranges[i - 1].Min, ranges[i].Min); + ranges[i - 1].Max = ImMax(ranges[i - 1].Max, ranges[i].Max); + ranges.erase(ranges.Data + i); + i--; + } +} + +static void ImGuiListClipper_SeekCursorAndSetupPrevLine(float pos_y, float line_height) +{ + // Set cursor position and a few other things so that SetScrollHereY() and Columns() can work when seeking cursor. + // FIXME: It is problematic that we have to do that here, because custom/equivalent end-user code would stumble on the same issue. + // The clipper should probably have a final step to display the last item in a regular manner, maybe with an opt-out flag for data sets which may have costly seek? + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float off_y = pos_y - window->DC.CursorPos.y; + window->DC.CursorPos.y = pos_y; + window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, pos_y - g.Style.ItemSpacing.y); + window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y - line_height; // Setting those fields so that SetScrollHereY() can properly function after the end of our clipper usage. + window->DC.PrevLineSize.y = (line_height - g.Style.ItemSpacing.y); // If we end up needing more accurate data (to e.g. use SameLine) we may as well make the clipper have a fourth step to let user process and display the last item in their list. + if (ImGuiOldColumns* columns = window->DC.CurrentColumns) + columns->LineMinY = window->DC.CursorPos.y; // Setting this so that cell Y position are set properly + if (ImGuiTable* table = g.CurrentTable) + { + if (table->IsInsideRow) + ImGui::TableEndRow(table); + table->RowPosY2 = window->DC.CursorPos.y; + const int row_increase = (int)((off_y / line_height) + 0.5f); + //table->CurrentRow += row_increase; // Can't do without fixing TableEndRow() + table->RowBgColorCounter += row_increase; + } +} + +static void ImGuiListClipper_SeekCursorForItem(ImGuiListClipper* clipper, int item_n) +{ + // StartPosY starts from ItemsFrozen hence the subtraction + // Perform the add and multiply with double to allow seeking through larger ranges + ImGuiListClipperData* data = (ImGuiListClipperData*)clipper->TempData; + float pos_y = (float)((double)clipper->StartPosY + data->LossynessOffset + (double)(item_n - data->ItemsFrozen) * clipper->ItemsHeight); + ImGuiListClipper_SeekCursorAndSetupPrevLine(pos_y, clipper->ItemsHeight); +} + +ImGuiListClipper::ImGuiListClipper() +{ + memset(this, 0, sizeof(*this)); +} + +ImGuiListClipper::~ImGuiListClipper() +{ + End(); +} + +void ImGuiListClipper::Begin(int items_count, float items_height) +{ + if (Ctx == NULL) + Ctx = ImGui::GetCurrentContext(); + + ImGuiContext& g = *Ctx; + ImGuiWindow* window = g.CurrentWindow; + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Begin(%d,%.2f) in '%s'\n", items_count, items_height, window->Name); + + if (ImGuiTable* table = g.CurrentTable) + if (table->IsInsideRow) + ImGui::TableEndRow(table); + + StartPosY = window->DC.CursorPos.y; + ItemsHeight = items_height; + ItemsCount = items_count; + DisplayStart = -1; + DisplayEnd = 0; + + // Acquire temporary buffer + if (++g.ClipperTempDataStacked > g.ClipperTempData.Size) + g.ClipperTempData.resize(g.ClipperTempDataStacked, ImGuiListClipperData()); + ImGuiListClipperData* data = &g.ClipperTempData[g.ClipperTempDataStacked - 1]; + data->Reset(this); + data->LossynessOffset = window->DC.CursorStartPosLossyness.y; + TempData = data; +} + +void ImGuiListClipper::End() +{ + if (ImGuiListClipperData* data = (ImGuiListClipperData*)TempData) + { + // In theory here we should assert that we are already at the right position, but it seems saner to just seek at the end and not assert/crash the user. + ImGuiContext& g = *Ctx; + IMGUI_DEBUG_LOG_CLIPPER("Clipper: End() in '%s'\n", g.CurrentWindow->Name); + if (ItemsCount >= 0 && ItemsCount < INT_MAX && DisplayStart >= 0) + ImGuiListClipper_SeekCursorForItem(this, ItemsCount); + + // Restore temporary buffer and fix back pointers which may be invalidated when nesting + IM_ASSERT(data->ListClipper == this); + data->StepNo = data->Ranges.Size; + if (--g.ClipperTempDataStacked > 0) + { + data = &g.ClipperTempData[g.ClipperTempDataStacked - 1]; + data->ListClipper->TempData = data; + } + TempData = NULL; + } + ItemsCount = -1; +} + +void ImGuiListClipper::IncludeItemsByIndex(int item_begin, int item_end) +{ + ImGuiListClipperData* data = (ImGuiListClipperData*)TempData; + IM_ASSERT(DisplayStart < 0); // Only allowed after Begin() and if there has not been a specified range yet. + IM_ASSERT(item_begin <= item_end); + if (item_begin < item_end) + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(item_begin, item_end)); +} + +static bool ImGuiListClipper_StepInternal(ImGuiListClipper* clipper) +{ + ImGuiContext& g = *clipper->Ctx; + ImGuiWindow* window = g.CurrentWindow; + ImGuiListClipperData* data = (ImGuiListClipperData*)clipper->TempData; + IM_ASSERT(data != NULL && "Called ImGuiListClipper::Step() too many times, or before ImGuiListClipper::Begin() ?"); + + ImGuiTable* table = g.CurrentTable; + if (table && table->IsInsideRow) + ImGui::TableEndRow(table); + + // No items + if (clipper->ItemsCount == 0 || GetSkipItemForListClipping()) + return false; + + // While we are in frozen row state, keep displaying items one by one, unclipped + // FIXME: Could be stored as a table-agnostic state. + if (data->StepNo == 0 && table != NULL && !table->IsUnfrozenRows) + { + clipper->DisplayStart = data->ItemsFrozen; + clipper->DisplayEnd = ImMin(data->ItemsFrozen + 1, clipper->ItemsCount); + if (clipper->DisplayStart < clipper->DisplayEnd) + data->ItemsFrozen++; + return true; + } + + // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element height) + bool calc_clipping = false; + if (data->StepNo == 0) + { + clipper->StartPosY = window->DC.CursorPos.y; + if (clipper->ItemsHeight <= 0.0f) + { + // Submit the first item (or range) so we can measure its height (generally the first range is 0..1) + data->Ranges.push_front(ImGuiListClipperRange::FromIndices(data->ItemsFrozen, data->ItemsFrozen + 1)); + clipper->DisplayStart = ImMax(data->Ranges[0].Min, data->ItemsFrozen); + clipper->DisplayEnd = ImMin(data->Ranges[0].Max, clipper->ItemsCount); + data->StepNo = 1; + return true; + } + calc_clipping = true; // If on the first step with known item height, calculate clipping. + } + + // Step 1: Let the clipper infer height from first range + if (clipper->ItemsHeight <= 0.0f) + { + IM_ASSERT(data->StepNo == 1); + if (table) + IM_ASSERT(table->RowPosY1 == clipper->StartPosY && table->RowPosY2 == window->DC.CursorPos.y); + + clipper->ItemsHeight = (window->DC.CursorPos.y - clipper->StartPosY) / (float)(clipper->DisplayEnd - clipper->DisplayStart); + bool affected_by_floating_point_precision = ImIsFloatAboveGuaranteedIntegerPrecision(clipper->StartPosY) || ImIsFloatAboveGuaranteedIntegerPrecision(window->DC.CursorPos.y); + if (affected_by_floating_point_precision) + clipper->ItemsHeight = window->DC.PrevLineSize.y + g.Style.ItemSpacing.y; // FIXME: Technically wouldn't allow multi-line entries. + + IM_ASSERT(clipper->ItemsHeight > 0.0f && "Unable to calculate item height! First item hasn't moved the cursor vertically!"); + calc_clipping = true; // If item height had to be calculated, calculate clipping afterwards. + } + + // Step 0 or 1: Calculate the actual ranges of visible elements. + const int already_submitted = clipper->DisplayEnd; + if (calc_clipping) + { + if (g.LogEnabled) + { + // If logging is active, do not perform any clipping + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(0, clipper->ItemsCount)); + } + else + { + // Add range selected to be included for navigation + const bool is_nav_request = (g.NavMoveScoringItems && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (is_nav_request) + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(g.NavScoringNoClipRect.Min.y, g.NavScoringNoClipRect.Max.y, 0, 0)); + if (is_nav_request && (g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) && g.NavTabbingDir == -1) + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(clipper->ItemsCount - 1, clipper->ItemsCount)); + + // Add focused/active item + ImRect nav_rect_abs = ImGui::WindowRectRelToAbs(window, window->NavRectRel[0]); + if (g.NavId != 0 && window->NavLastIds[0] == g.NavId) + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(nav_rect_abs.Min.y, nav_rect_abs.Max.y, 0, 0)); + + // Add visible range + const int off_min = (is_nav_request && g.NavMoveClipDir == ImGuiDir_Up) ? -1 : 0; + const int off_max = (is_nav_request && g.NavMoveClipDir == ImGuiDir_Down) ? 1 : 0; + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(window->ClipRect.Min.y, window->ClipRect.Max.y, off_min, off_max)); + } + + // Convert position ranges to item index ranges + // - Very important: when a starting position is after our maximum item, we set Min to (ItemsCount - 1). This allows us to handle most forms of wrapping. + // - Due to how Selectable extra padding they tend to be "unaligned" with exact unit in the item list, + // which with the flooring/ceiling tend to lead to 2 items instead of one being submitted. + for (ImGuiListClipperRange& range : data->Ranges) + if (range.PosToIndexConvert) + { + int m1 = (int)(((double)range.Min - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight); + int m2 = (int)((((double)range.Max - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight) + 0.999999f); + range.Min = ImClamp(already_submitted + m1 + range.PosToIndexOffsetMin, already_submitted, clipper->ItemsCount - 1); + range.Max = ImClamp(already_submitted + m2 + range.PosToIndexOffsetMax, range.Min + 1, clipper->ItemsCount); + range.PosToIndexConvert = false; + } + ImGuiListClipper_SortAndFuseRanges(data->Ranges, data->StepNo); + } + + // Step 0+ (if item height is given in advance) or 1+: Display the next range in line. + while (data->StepNo < data->Ranges.Size) + { + clipper->DisplayStart = ImMax(data->Ranges[data->StepNo].Min, already_submitted); + clipper->DisplayEnd = ImMin(data->Ranges[data->StepNo].Max, clipper->ItemsCount); + if (clipper->DisplayStart > already_submitted) //-V1051 + ImGuiListClipper_SeekCursorForItem(clipper, clipper->DisplayStart); + data->StepNo++; + if (clipper->DisplayStart == clipper->DisplayEnd && data->StepNo < data->Ranges.Size) + continue; + return true; + } + + // After the last step: Let the clipper validate that we have reached the expected Y position (corresponding to element DisplayEnd), + // Advance the cursor to the end of the list and then returns 'false' to end the loop. + if (clipper->ItemsCount < INT_MAX) + ImGuiListClipper_SeekCursorForItem(clipper, clipper->ItemsCount); + + return false; +} + +bool ImGuiListClipper::Step() +{ + ImGuiContext& g = *Ctx; + bool need_items_height = (ItemsHeight <= 0.0f); + bool ret = ImGuiListClipper_StepInternal(this); + if (ret && (DisplayStart == DisplayEnd)) + ret = false; + if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n"); + if (need_items_height && ItemsHeight > 0.0f) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight); + if (ret) + { + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd); + } + else + { + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n"); + End(); + } + return ret; +} + +//----------------------------------------------------------------------------- +// [SECTION] STYLING +//----------------------------------------------------------------------------- + +ImGuiStyle& ImGui::GetStyle() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + return GImGui->Style; +} + +ImU32 ImGui::GetColorU32(ImGuiCol idx, float alpha_mul) +{ + ImGuiStyle& style = GImGui->Style; + ImVec4 c = style.Colors[idx]; + c.w *= style.Alpha * alpha_mul; + return ColorConvertFloat4ToU32(c); +} + +ImU32 ImGui::GetColorU32(const ImVec4& col) +{ + ImGuiStyle& style = GImGui->Style; + ImVec4 c = col; + c.w *= style.Alpha; + return ColorConvertFloat4ToU32(c); +} + +const ImVec4& ImGui::GetStyleColorVec4(ImGuiCol idx) +{ + ImGuiStyle& style = GImGui->Style; + return style.Colors[idx]; +} + +ImU32 ImGui::GetColorU32(ImU32 col) +{ + ImGuiStyle& style = GImGui->Style; + if (style.Alpha >= 1.0f) + return col; + ImU32 a = (col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT; + a = (ImU32)(a * style.Alpha); // We don't need to clamp 0..255 because Style.Alpha is in 0..1 range. + return (col & ~IM_COL32_A_MASK) | (a << IM_COL32_A_SHIFT); +} + +// FIXME: This may incur a round-trip (if the end user got their data from a float4) but eventually we aim to store the in-flight colors as ImU32 +void ImGui::PushStyleColor(ImGuiCol idx, ImU32 col) +{ + ImGuiContext& g = *GImGui; + ImGuiColorMod backup; + backup.Col = idx; + backup.BackupValue = g.Style.Colors[idx]; + g.ColorStack.push_back(backup); + g.Style.Colors[idx] = ColorConvertU32ToFloat4(col); +} + +void ImGui::PushStyleColor(ImGuiCol idx, const ImVec4& col) +{ + ImGuiContext& g = *GImGui; + ImGuiColorMod backup; + backup.Col = idx; + backup.BackupValue = g.Style.Colors[idx]; + g.ColorStack.push_back(backup); + g.Style.Colors[idx] = col; +} + +void ImGui::PopStyleColor(int count) +{ + ImGuiContext& g = *GImGui; + if (g.ColorStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.ColorStack.Size > count, "Calling PopStyleColor() too many times: stack underflow."); + count = g.ColorStack.Size; + } + while (count > 0) + { + ImGuiColorMod& backup = g.ColorStack.back(); + g.Style.Colors[backup.Col] = backup.BackupValue; + g.ColorStack.pop_back(); + count--; + } +} + +static const ImGuiCol GWindowDockStyleColors[ImGuiWindowDockStyleCol_COUNT] = +{ + ImGuiCol_Text, ImGuiCol_Tab, ImGuiCol_TabHovered, ImGuiCol_TabActive, ImGuiCol_TabUnfocused, ImGuiCol_TabUnfocusedActive +}; + +static const ImGuiDataVarInfo GStyleVarInfo[] = +{ + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, Alpha) }, // ImGuiStyleVar_Alpha + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, DisabledAlpha) }, // ImGuiStyleVar_DisabledAlpha + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowPadding) }, // ImGuiStyleVar_WindowPadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowRounding) }, // ImGuiStyleVar_WindowRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowBorderSize) }, // ImGuiStyleVar_WindowBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowMinSize) }, // ImGuiStyleVar_WindowMinSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowTitleAlign) }, // ImGuiStyleVar_WindowTitleAlign + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildRounding) }, // ImGuiStyleVar_ChildRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildBorderSize) }, // ImGuiStyleVar_ChildBorderSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupRounding) }, // ImGuiStyleVar_PopupRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupBorderSize) }, // ImGuiStyleVar_PopupBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, FramePadding) }, // ImGuiStyleVar_FramePadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameRounding) }, // ImGuiStyleVar_FrameRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameBorderSize) }, // ImGuiStyleVar_FrameBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemSpacing) }, // ImGuiStyleVar_ItemSpacing + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemInnerSpacing) }, // ImGuiStyleVar_ItemInnerSpacing + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, IndentSpacing) }, // ImGuiStyleVar_IndentSpacing + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, CellPadding) }, // ImGuiStyleVar_CellPadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarSize) }, // ImGuiStyleVar_ScrollbarSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarRounding) }, // ImGuiStyleVar_ScrollbarRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabMinSize) }, // ImGuiStyleVar_GrabMinSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabRounding) }, // ImGuiStyleVar_GrabRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, TabRounding) }, // ImGuiStyleVar_TabRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, TabBarBorderSize) }, // ImGuiStyleVar_TabBarBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ButtonTextAlign) }, // ImGuiStyleVar_ButtonTextAlign + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, SelectableTextAlign) }, // ImGuiStyleVar_SelectableTextAlign + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, SeparatorTextBorderSize) },// ImGuiStyleVar_SeparatorTextBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, SeparatorTextAlign) }, // ImGuiStyleVar_SeparatorTextAlign + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, SeparatorTextPadding) }, // ImGuiStyleVar_SeparatorTextPadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, DockingSeparatorSize) }, // ImGuiStyleVar_DockingSeparatorSize +}; + +const ImGuiDataVarInfo* ImGui::GetStyleVarInfo(ImGuiStyleVar idx) +{ + IM_ASSERT(idx >= 0 && idx < ImGuiStyleVar_COUNT); + IM_STATIC_ASSERT(IM_ARRAYSIZE(GStyleVarInfo) == ImGuiStyleVar_COUNT); + return &GStyleVarInfo[idx]; +} + +void ImGui::PushStyleVar(ImGuiStyleVar idx, float val) +{ + ImGuiContext& g = *GImGui; + const ImGuiDataVarInfo* var_info = GetStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 1) + { + float* pvar = (float*)var_info->GetVarPtr(&g.Style); + g.StyleVarStack.push_back(ImGuiStyleMod(idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT_USER_ERROR(0, "Called PushStyleVar() variant with wrong type!"); +} + +void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val) +{ + ImGuiContext& g = *GImGui; + const ImGuiDataVarInfo* var_info = GetStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 2) + { + ImVec2* pvar = (ImVec2*)var_info->GetVarPtr(&g.Style); + g.StyleVarStack.push_back(ImGuiStyleMod(idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT_USER_ERROR(0, "Called PushStyleVar() variant with wrong type!"); +} + +void ImGui::PopStyleVar(int count) +{ + ImGuiContext& g = *GImGui; + if (g.StyleVarStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.StyleVarStack.Size > count, "Calling PopStyleVar() too many times: stack underflow."); + count = g.StyleVarStack.Size; + } + while (count > 0) + { + // We avoid a generic memcpy(data, &backup.Backup.., GDataTypeSize[info->Type] * info->Count), the overhead in Debug is not worth it. + ImGuiStyleMod& backup = g.StyleVarStack.back(); + const ImGuiDataVarInfo* info = GetStyleVarInfo(backup.VarIdx); + void* data = info->GetVarPtr(&g.Style); + if (info->Type == ImGuiDataType_Float && info->Count == 1) { ((float*)data)[0] = backup.BackupFloat[0]; } + else if (info->Type == ImGuiDataType_Float && info->Count == 2) { ((float*)data)[0] = backup.BackupFloat[0]; ((float*)data)[1] = backup.BackupFloat[1]; } + g.StyleVarStack.pop_back(); + count--; + } +} + +const char* ImGui::GetStyleColorName(ImGuiCol idx) +{ + // Create switch-case from enum with regexp: ImGuiCol_{.*}, --> case ImGuiCol_\1: return "\1"; + switch (idx) + { + case ImGuiCol_Text: return "Text"; + case ImGuiCol_TextDisabled: return "TextDisabled"; + case ImGuiCol_WindowBg: return "WindowBg"; + case ImGuiCol_ChildBg: return "ChildBg"; + case ImGuiCol_PopupBg: return "PopupBg"; + case ImGuiCol_Border: return "Border"; + case ImGuiCol_BorderShadow: return "BorderShadow"; + case ImGuiCol_FrameBg: return "FrameBg"; + case ImGuiCol_FrameBgHovered: return "FrameBgHovered"; + case ImGuiCol_FrameBgActive: return "FrameBgActive"; + case ImGuiCol_TitleBg: return "TitleBg"; + case ImGuiCol_TitleBgActive: return "TitleBgActive"; + case ImGuiCol_TitleBgCollapsed: return "TitleBgCollapsed"; + case ImGuiCol_MenuBarBg: return "MenuBarBg"; + case ImGuiCol_ScrollbarBg: return "ScrollbarBg"; + case ImGuiCol_ScrollbarGrab: return "ScrollbarGrab"; + case ImGuiCol_ScrollbarGrabHovered: return "ScrollbarGrabHovered"; + case ImGuiCol_ScrollbarGrabActive: return "ScrollbarGrabActive"; + case ImGuiCol_CheckMark: return "CheckMark"; + case ImGuiCol_SliderGrab: return "SliderGrab"; + case ImGuiCol_SliderGrabActive: return "SliderGrabActive"; + case ImGuiCol_Button: return "Button"; + case ImGuiCol_ButtonHovered: return "ButtonHovered"; + case ImGuiCol_ButtonActive: return "ButtonActive"; + case ImGuiCol_Header: return "Header"; + case ImGuiCol_HeaderHovered: return "HeaderHovered"; + case ImGuiCol_HeaderActive: return "HeaderActive"; + case ImGuiCol_Separator: return "Separator"; + case ImGuiCol_SeparatorHovered: return "SeparatorHovered"; + case ImGuiCol_SeparatorActive: return "SeparatorActive"; + case ImGuiCol_ResizeGrip: return "ResizeGrip"; + case ImGuiCol_ResizeGripHovered: return "ResizeGripHovered"; + case ImGuiCol_ResizeGripActive: return "ResizeGripActive"; + case ImGuiCol_Tab: return "Tab"; + case ImGuiCol_TabHovered: return "TabHovered"; + case ImGuiCol_TabActive: return "TabActive"; + case ImGuiCol_TabUnfocused: return "TabUnfocused"; + case ImGuiCol_TabUnfocusedActive: return "TabUnfocusedActive"; + case ImGuiCol_DockingPreview: return "DockingPreview"; + case ImGuiCol_DockingEmptyBg: return "DockingEmptyBg"; + case ImGuiCol_PlotLines: return "PlotLines"; + case ImGuiCol_PlotLinesHovered: return "PlotLinesHovered"; + case ImGuiCol_PlotHistogram: return "PlotHistogram"; + case ImGuiCol_PlotHistogramHovered: return "PlotHistogramHovered"; + case ImGuiCol_TableHeaderBg: return "TableHeaderBg"; + case ImGuiCol_TableBorderStrong: return "TableBorderStrong"; + case ImGuiCol_TableBorderLight: return "TableBorderLight"; + case ImGuiCol_TableRowBg: return "TableRowBg"; + case ImGuiCol_TableRowBgAlt: return "TableRowBgAlt"; + case ImGuiCol_TextSelectedBg: return "TextSelectedBg"; + case ImGuiCol_DragDropTarget: return "DragDropTarget"; + case ImGuiCol_NavHighlight: return "NavHighlight"; + case ImGuiCol_NavWindowingHighlight: return "NavWindowingHighlight"; + case ImGuiCol_NavWindowingDimBg: return "NavWindowingDimBg"; + case ImGuiCol_ModalWindowDimBg: return "ModalWindowDimBg"; + } + IM_ASSERT(0); + return "Unknown"; +} + + +//----------------------------------------------------------------------------- +// [SECTION] RENDER HELPERS +// Some of those (internal) functions are currently quite a legacy mess - their signature and behavior will change, +// we need a nicer separation between low-level functions and high-level functions relying on the ImGui context. +// Also see imgui_draw.cpp for some more which have been reworked to not rely on ImGui:: context. +//----------------------------------------------------------------------------- + +const char* ImGui::FindRenderedTextEnd(const char* text, const char* text_end) +{ + const char* text_display_end = text; + if (!text_end) + text_end = (const char*)-1; + + while (text_display_end < text_end && *text_display_end != '\0' && (text_display_end[0] != '#' || text_display_end[1] != '#')) + text_display_end++; + return text_display_end; +} + +// Internal ImGui functions to render text +// RenderText***() functions calls ImDrawList::AddText() calls ImBitmapFont::RenderText() +void ImGui::RenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Hide anything after a '##' string + const char* text_display_end; + if (hide_text_after_hash) + { + text_display_end = FindRenderedTextEnd(text, text_end); + } + else + { + if (!text_end) + text_end = text + strlen(text); // FIXME-OPT + text_display_end = text_end; + } + + if (text != text_display_end) + { + window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_display_end); + if (g.LogEnabled) + LogRenderedText(&pos, text, text_display_end); + } +} + +void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (!text_end) + text_end = text + strlen(text); // FIXME-OPT + + if (text != text_end) + { + window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end, wrap_width); + if (g.LogEnabled) + LogRenderedText(&pos, text, text_end); + } +} + +// Default clip_rect uses (pos_min,pos_max) +// Handle clipping on CPU immediately (vs typically let the GPU clip the triangles that are overlapping the clipping rectangle edges) +// FIXME-OPT: Since we have or calculate text_size we could coarse clip whole block immediately, especally for text above draw_list->DrawList. +// Effectively as this is called from widget doing their own coarse clipping it's not very valuable presently. Next time function will take +// better advantage of the render function taking size into account for coarse clipping. +void ImGui::RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_display_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) +{ + // Perform CPU side clipping for single clipped element to avoid using scissor state + ImVec2 pos = pos_min; + const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_display_end, false, 0.0f); + + const ImVec2* clip_min = clip_rect ? &clip_rect->Min : &pos_min; + const ImVec2* clip_max = clip_rect ? &clip_rect->Max : &pos_max; + bool need_clipping = (pos.x + text_size.x >= clip_max->x) || (pos.y + text_size.y >= clip_max->y); + if (clip_rect) // If we had no explicit clipping rectangle then pos==clip_min + need_clipping |= (pos.x < clip_min->x) || (pos.y < clip_min->y); + + // Align whole block. We should defer that to the better rendering function when we'll have support for individual line alignment. + if (align.x > 0.0f) pos.x = ImMax(pos.x, pos.x + (pos_max.x - pos.x - text_size.x) * align.x); + if (align.y > 0.0f) pos.y = ImMax(pos.y, pos.y + (pos_max.y - pos.y - text_size.y) * align.y); + + // Render + if (need_clipping) + { + ImVec4 fine_clip_rect(clip_min->x, clip_min->y, clip_max->x, clip_max->y); + draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, &fine_clip_rect); + } + else + { + draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, NULL); + } +} + +void ImGui::RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) +{ + // Hide anything after a '##' string + const char* text_display_end = FindRenderedTextEnd(text, text_end); + const int text_len = (int)(text_display_end - text); + if (text_len == 0) + return; + + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + RenderTextClippedEx(window->DrawList, pos_min, pos_max, text, text_display_end, text_size_if_known, align, clip_rect); + if (g.LogEnabled) + LogRenderedText(&pos_min, text, text_display_end); +} + +// Another overly complex function until we reorganize everything into a nice all-in-one helper. +// This is made more complex because we have dissociated the layout rectangle (pos_min..pos_max) which define _where_ the ellipsis is, from actual clipping of text and limit of the ellipsis display. +// This is because in the context of tabs we selectively hide part of the text when the Close Button appears, but we don't want the ellipsis to move. +void ImGui::RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end_full, const ImVec2* text_size_if_known) +{ + ImGuiContext& g = *GImGui; + if (text_end_full == NULL) + text_end_full = FindRenderedTextEnd(text); + const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_end_full, false, 0.0f); + + //draw_list->AddLine(ImVec2(pos_max.x, pos_min.y - 4), ImVec2(pos_max.x, pos_max.y + 4), IM_COL32(0, 0, 255, 255)); + //draw_list->AddLine(ImVec2(ellipsis_max_x, pos_min.y-2), ImVec2(ellipsis_max_x, pos_max.y+2), IM_COL32(0, 255, 0, 255)); + //draw_list->AddLine(ImVec2(clip_max_x, pos_min.y), ImVec2(clip_max_x, pos_max.y), IM_COL32(255, 0, 0, 255)); + // FIXME: We could technically remove (last_glyph->AdvanceX - last_glyph->X1) from text_size.x here and save a few pixels. + if (text_size.x > pos_max.x - pos_min.x) + { + // Hello wo... + // | | | + // min max ellipsis_max + // <-> this is generally some padding value + + const ImFont* font = draw_list->_Data->Font; + const float font_size = draw_list->_Data->FontSize; + const float font_scale = font_size / font->FontSize; + const char* text_end_ellipsis = NULL; + const float ellipsis_width = font->EllipsisWidth * font_scale; + + // We can now claim the space between pos_max.x and ellipsis_max.x + const float text_avail_width = ImMax((ImMax(pos_max.x, ellipsis_max_x) - ellipsis_width) - pos_min.x, 1.0f); + float text_size_clipped_x = font->CalcTextSizeA(font_size, text_avail_width, 0.0f, text, text_end_full, &text_end_ellipsis).x; + if (text == text_end_ellipsis && text_end_ellipsis < text_end_full) + { + // Always display at least 1 character if there's no room for character + ellipsis + text_end_ellipsis = text + ImTextCountUtf8BytesFromChar(text, text_end_full); + text_size_clipped_x = font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text, text_end_ellipsis).x; + } + while (text_end_ellipsis > text && ImCharIsBlankA(text_end_ellipsis[-1])) + { + // Trim trailing space before ellipsis (FIXME: Supporting non-ascii blanks would be nice, for this we need a function to backtrack in UTF-8 text) + text_end_ellipsis--; + text_size_clipped_x -= font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text_end_ellipsis, text_end_ellipsis + 1).x; // Ascii blanks are always 1 byte + } + + // Render text, render ellipsis + RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_ellipsis, &text_size, ImVec2(0.0f, 0.0f)); + ImVec2 ellipsis_pos = ImTrunc(ImVec2(pos_min.x + text_size_clipped_x, pos_min.y)); + if (ellipsis_pos.x + ellipsis_width <= ellipsis_max_x) + for (int i = 0; i < font->EllipsisCharCount; i++, ellipsis_pos.x += font->EllipsisCharStep * font_scale) + font->RenderChar(draw_list, font_size, ellipsis_pos, GetColorU32(ImGuiCol_Text), font->EllipsisChar); + } + else + { + RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_full, &text_size, ImVec2(0.0f, 0.0f)); + } + + if (g.LogEnabled) + LogRenderedText(&pos_min, text, text_end_full); +} + +// Render a rectangle shaped with optional rounding and borders +void ImGui::RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DrawList->AddRectFilled(p_min, p_max, fill_col, rounding); + const float border_size = g.Style.FrameBorderSize; + if (border && border_size > 0.0f) + { + window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, 0, border_size); + window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + } +} + +void ImGui::RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const float border_size = g.Style.FrameBorderSize; + if (border_size > 0.0f) + { + window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, 0, border_size); + window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + } +} + +void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags) +{ + ImGuiContext& g = *GImGui; + if (id != g.NavId) + return; + if (g.NavDisableHighlight && !(flags & ImGuiNavHighlightFlags_AlwaysDraw)) + return; + ImGuiWindow* window = g.CurrentWindow; + if (window->DC.NavHideHighlightOneFrame) + return; + + float rounding = (flags & ImGuiNavHighlightFlags_NoRounding) ? 0.0f : g.Style.FrameRounding; + ImRect display_rect = bb; + display_rect.ClipWith(window->ClipRect); + if (flags & ImGuiNavHighlightFlags_TypeDefault) + { + const float THICKNESS = 2.0f; + const float DISTANCE = 3.0f + THICKNESS * 0.5f; + display_rect.Expand(ImVec2(DISTANCE, DISTANCE)); + bool fully_visible = window->ClipRect.Contains(display_rect); + if (!fully_visible) + window->DrawList->PushClipRect(display_rect.Min, display_rect.Max); + window->DrawList->AddRect(display_rect.Min + ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), display_rect.Max - ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), GetColorU32(ImGuiCol_NavHighlight), rounding, 0, THICKNESS); + if (!fully_visible) + window->DrawList->PopClipRect(); + } + if (flags & ImGuiNavHighlightFlags_TypeThin) + { + window->DrawList->AddRect(display_rect.Min, display_rect.Max, GetColorU32(ImGuiCol_NavHighlight), rounding, 0, 1.0f); + } +} + +void ImGui::RenderMouseCursor(ImVec2 base_pos, float base_scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT); + ImFontAtlas* font_atlas = g.DrawListSharedData.Font->ContainerAtlas; + for (ImGuiViewportP* viewport : g.Viewports) + { + // We scale cursor with current viewport/monitor, however Windows 10 for its own hardware cursor seems to be using a different scale factor. + ImVec2 offset, size, uv[4]; + if (!font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &size, &uv[0], &uv[2])) + continue; + const ImVec2 pos = base_pos - offset; + const float scale = base_scale * viewport->DpiScale; + if (!viewport->GetMainRect().Overlaps(ImRect(pos, pos + ImVec2(size.x + 2, size.y + 2) * scale))) + continue; + ImDrawList* draw_list = GetForegroundDrawList(viewport); + ImTextureID tex_id = font_atlas->TexID; + draw_list->PushTextureID(tex_id); + draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[2], uv[3], col_border); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[0], uv[1], col_fill); + draw_list->PopTextureID(); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] INITIALIZATION, SHUTDOWN +//----------------------------------------------------------------------------- + +// Internal state access - if you want to share Dear ImGui state between modules (e.g. DLL) or allocate it yourself +// Note that we still point to some static data and members (such as GFontAtlas), so the state instance you end up using will point to the static data within its module +ImGuiContext* ImGui::GetCurrentContext() +{ + return GImGui; +} + +void ImGui::SetCurrentContext(ImGuiContext* ctx) +{ +#ifdef IMGUI_SET_CURRENT_CONTEXT_FUNC + IMGUI_SET_CURRENT_CONTEXT_FUNC(ctx); // For custom thread-based hackery you may want to have control over this. +#else + GImGui = ctx; +#endif +} + +void ImGui::SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data) +{ + GImAllocatorAllocFunc = alloc_func; + GImAllocatorFreeFunc = free_func; + GImAllocatorUserData = user_data; +} + +// This is provided to facilitate copying allocators from one static/DLL boundary to another (e.g. retrieve default allocator of your executable address space) +void ImGui::GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data) +{ + *p_alloc_func = GImAllocatorAllocFunc; + *p_free_func = GImAllocatorFreeFunc; + *p_user_data = GImAllocatorUserData; +} + +ImGuiContext* ImGui::CreateContext(ImFontAtlas* shared_font_atlas) +{ + ImGuiContext* prev_ctx = GetCurrentContext(); + ImGuiContext* ctx = IM_NEW(ImGuiContext)(shared_font_atlas); + SetCurrentContext(ctx); + Initialize(); + if (prev_ctx != NULL) + SetCurrentContext(prev_ctx); // Restore previous context if any, else keep new one. + return ctx; +} + +void ImGui::DestroyContext(ImGuiContext* ctx) +{ + ImGuiContext* prev_ctx = GetCurrentContext(); + if (ctx == NULL) //-V1051 + ctx = prev_ctx; + SetCurrentContext(ctx); + Shutdown(); + SetCurrentContext((prev_ctx != ctx) ? prev_ctx : NULL); + IM_DELETE(ctx); +} + +// IMPORTANT: ###xxx suffixes must be same in ALL languages +static const ImGuiLocEntry GLocalizationEntriesEnUS[] = +{ + { ImGuiLocKey_VersionStr, "Dear ImGui " IMGUI_VERSION " (" IM_STRINGIFY(IMGUI_VERSION_NUM) ")" }, + { ImGuiLocKey_TableSizeOne, "Size column to fit###SizeOne" }, + { ImGuiLocKey_TableSizeAllFit, "Size all columns to fit###SizeAll" }, + { ImGuiLocKey_TableSizeAllDefault, "Size all columns to default###SizeAll" }, + { ImGuiLocKey_TableResetOrder, "Reset order###ResetOrder" }, + { ImGuiLocKey_WindowingMainMenuBar, "(Main menu bar)" }, + { ImGuiLocKey_WindowingPopup, "(Popup)" }, + { ImGuiLocKey_WindowingUntitled, "(Untitled)" }, + { ImGuiLocKey_DockingHideTabBar, "Hide tab bar###HideTabBar" }, + { ImGuiLocKey_DockingHoldShiftToDock, "Hold SHIFT to enable Docking window." }, + { ImGuiLocKey_DockingDragToUndockOrMoveNode,"Click and drag to move or undock whole node." }, +}; + +void ImGui::Initialize() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(!g.Initialized && !g.SettingsLoaded); + + // Add .ini handle for ImGuiWindow and ImGuiTable types + { + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Window"; + ini_handler.TypeHash = ImHashStr("Window"); + ini_handler.ClearAllFn = WindowSettingsHandler_ClearAll; + ini_handler.ReadOpenFn = WindowSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = WindowSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = WindowSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll; + AddSettingsHandler(&ini_handler); + } + TableSettingsAddSettingsHandler(); + + // Setup default localization table + LocalizeRegisterEntries(GLocalizationEntriesEnUS, IM_ARRAYSIZE(GLocalizationEntriesEnUS)); + + // Setup default platform clipboard/IME handlers. + g.IO.GetClipboardTextFn = GetClipboardTextFn_DefaultImpl; // Platform dependent default implementations + g.IO.SetClipboardTextFn = SetClipboardTextFn_DefaultImpl; + g.IO.ClipboardUserData = (void*)&g; // Default implementation use the ImGuiContext as user data (ideally those would be arguments to the function) + g.IO.SetPlatformImeDataFn = SetPlatformImeDataFn_DefaultImpl; + + // Create default viewport + ImGuiViewportP* viewport = IM_NEW(ImGuiViewportP)(); + viewport->ID = IMGUI_VIEWPORT_DEFAULT_ID; + viewport->Idx = 0; + viewport->PlatformWindowCreated = true; + viewport->Flags = ImGuiViewportFlags_OwnedByApp; + g.Viewports.push_back(viewport); + g.TempBuffer.resize(1024 * 3 + 1, 0); + g.ViewportCreatedCount++; + g.PlatformIO.Viewports.push_back(g.Viewports[0]); + +#ifdef IMGUI_HAS_DOCK + // Initialize Docking + DockContextInitialize(&g); +#endif + + g.Initialized = true; +} + +// This function is merely here to free heap allocations. +void ImGui::Shutdown() +{ + // The fonts atlas can be used prior to calling NewFrame(), so we clear it even if g.Initialized is FALSE (which would happen if we never called NewFrame) + ImGuiContext& g = *GImGui; + if (g.IO.Fonts && g.FontAtlasOwnedByContext) + { + g.IO.Fonts->Locked = false; + IM_DELETE(g.IO.Fonts); + } + g.IO.Fonts = NULL; + g.DrawListSharedData.TempBuffer.clear(); + + // Cleanup of other data are conditional on actually having initialized Dear ImGui. + if (!g.Initialized) + return; + + // Save settings (unless we haven't attempted to load them: CreateContext/DestroyContext without a call to NewFrame shouldn't save an empty file) + if (g.SettingsLoaded && g.IO.IniFilename != NULL) + SaveIniSettingsToDisk(g.IO.IniFilename); + + // Destroy platform windows + DestroyPlatformWindows(); + + // Shutdown extensions + DockContextShutdown(&g); + + CallContextHooks(&g, ImGuiContextHookType_Shutdown); + + // Clear everything else + g.Windows.clear_delete(); + g.WindowsFocusOrder.clear(); + g.WindowsTempSortBuffer.clear(); + g.CurrentWindow = NULL; + g.CurrentWindowStack.clear(); + g.WindowsById.Clear(); + g.NavWindow = NULL; + g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; + g.ActiveIdWindow = g.ActiveIdPreviousFrameWindow = NULL; + g.MovingWindow = NULL; + + g.KeysRoutingTable.Clear(); + + g.ColorStack.clear(); + g.StyleVarStack.clear(); + g.FontStack.clear(); + g.OpenPopupStack.clear(); + g.BeginPopupStack.clear(); + g.NavTreeNodeStack.clear(); + + g.CurrentViewport = g.MouseViewport = g.MouseLastHoveredViewport = NULL; + g.Viewports.clear_delete(); + + g.TabBars.Clear(); + g.CurrentTabBarStack.clear(); + g.ShrinkWidthBuffer.clear(); + + g.ClipperTempData.clear_destruct(); + + g.Tables.Clear(); + g.TablesTempData.clear_destruct(); + g.DrawChannelsTempMergeBuffer.clear(); + + g.ClipboardHandlerData.clear(); + g.MenusIdSubmittedThisFrame.clear(); + g.InputTextState.ClearFreeMemory(); + g.InputTextDeactivatedState.ClearFreeMemory(); + + g.SettingsWindows.clear(); + g.SettingsHandlers.clear(); + + if (g.LogFile) + { +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + if (g.LogFile != stdout) +#endif + ImFileClose(g.LogFile); + g.LogFile = NULL; + } + g.LogBuffer.clear(); + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); + + g.Initialized = false; +} + +// No specific ordering/dependency support, will see as needed +ImGuiID ImGui::AddContextHook(ImGuiContext* ctx, const ImGuiContextHook* hook) +{ + ImGuiContext& g = *ctx; + IM_ASSERT(hook->Callback != NULL && hook->HookId == 0 && hook->Type != ImGuiContextHookType_PendingRemoval_); + g.Hooks.push_back(*hook); + g.Hooks.back().HookId = ++g.HookIdNext; + return g.HookIdNext; +} + +// Deferred removal, avoiding issue with changing vector while iterating it +void ImGui::RemoveContextHook(ImGuiContext* ctx, ImGuiID hook_id) +{ + ImGuiContext& g = *ctx; + IM_ASSERT(hook_id != 0); + for (ImGuiContextHook& hook : g.Hooks) + if (hook.HookId == hook_id) + hook.Type = ImGuiContextHookType_PendingRemoval_; +} + +// Call context hooks (used by e.g. test engine) +// We assume a small number of hooks so all stored in same array +void ImGui::CallContextHooks(ImGuiContext* ctx, ImGuiContextHookType hook_type) +{ + ImGuiContext& g = *ctx; + for (ImGuiContextHook& hook : g.Hooks) + if (hook.Type == hook_type) + hook.Callback(&g, &hook); +} + + +//----------------------------------------------------------------------------- +// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +//----------------------------------------------------------------------------- + +// ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods +ImGuiWindow::ImGuiWindow(ImGuiContext* ctx, const char* name) : DrawListInst(NULL) +{ + memset(this, 0, sizeof(*this)); + Ctx = ctx; + Name = ImStrdup(name); + NameBufLen = (int)strlen(name) + 1; + ID = ImHashStr(name); + IDStack.push_back(ID); + ViewportAllowPlatformMonitorExtend = -1; + ViewportPos = ImVec2(FLT_MAX, FLT_MAX); + MoveId = GetID("#MOVE"); + TabId = GetID("#TAB"); + ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); + ScrollTargetCenterRatio = ImVec2(0.5f, 0.5f); + AutoFitFramesX = AutoFitFramesY = -1; + AutoPosLastDirection = ImGuiDir_None; + SetWindowPosAllowFlags = SetWindowSizeAllowFlags = SetWindowCollapsedAllowFlags = SetWindowDockAllowFlags = 0; + SetWindowPosVal = SetWindowPosPivot = ImVec2(FLT_MAX, FLT_MAX); + LastFrameActive = -1; + LastFrameJustFocused = -1; + LastTimeActive = -1.0f; + FontWindowScale = FontDpiScale = 1.0f; + SettingsOffset = -1; + DockOrder = -1; + DrawList = &DrawListInst; + DrawList->_Data = &Ctx->DrawListSharedData; + DrawList->_OwnerName = Name; + NavPreferredScoringPosRel[0] = NavPreferredScoringPosRel[1] = ImVec2(FLT_MAX, FLT_MAX); + IM_PLACEMENT_NEW(&WindowClass) ImGuiWindowClass(); +} + +ImGuiWindow::~ImGuiWindow() +{ + IM_ASSERT(DrawList == &DrawListInst); + IM_DELETE(Name); + ColumnsStorage.clear_destruct(); +} + +ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); + ImGuiContext& g = *Ctx; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); + return id; +} + +ImGuiID ImGuiWindow::GetID(const void* ptr) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); + ImGuiContext& g = *Ctx; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_Pointer, ptr, NULL); + return id; +} + +ImGuiID ImGuiWindow::GetID(int n) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&n, sizeof(n), seed); + ImGuiContext& g = *Ctx; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_S32, (void*)(intptr_t)n, NULL); + return id; +} + +// This is only used in rare/specific situations to manufacture an ID out of nowhere. +ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs) +{ + ImGuiID seed = IDStack.back(); + ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs); + ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed); + return id; +} + +static void SetCurrentWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + g.CurrentWindow = window; + g.CurrentTable = window && window->DC.CurrentTableIdx != -1 ? g.Tables.GetByIndex(window->DC.CurrentTableIdx) : NULL; + if (window) + { + g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); + ImGui::NavUpdateCurrentWindowIsScrollPushableX(); + } +} + +void ImGui::GcCompactTransientMiscBuffers() +{ + ImGuiContext& g = *GImGui; + g.ItemFlagsStack.clear(); + g.GroupStack.clear(); + TableGcCompactSettings(); +} + +// Free up/compact internal window buffers, we can use this when a window becomes unused. +// Not freed: +// - ImGuiWindow, ImGuiWindowSettings, Name, StateStorage, ColumnsStorage (may hold useful data) +// This should have no noticeable visual effect. When the window reappear however, expect new allocation/buffer growth/copy cost. +void ImGui::GcCompactTransientWindowBuffers(ImGuiWindow* window) +{ + window->MemoryCompacted = true; + window->MemoryDrawListIdxCapacity = window->DrawList->IdxBuffer.Capacity; + window->MemoryDrawListVtxCapacity = window->DrawList->VtxBuffer.Capacity; + window->IDStack.clear(); + window->DrawList->_ClearFreeMemory(); + window->DC.ChildWindows.clear(); + window->DC.ItemWidthStack.clear(); + window->DC.TextWrapPosStack.clear(); +} + +void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window) +{ + // We stored capacity of the ImDrawList buffer to reduce growth-caused allocation/copy when awakening. + // The other buffers tends to amortize much faster. + window->MemoryCompacted = false; + window->DrawList->IdxBuffer.reserve(window->MemoryDrawListIdxCapacity); + window->DrawList->VtxBuffer.reserve(window->MemoryDrawListVtxCapacity); + window->MemoryDrawListIdxCapacity = window->MemoryDrawListVtxCapacity = 0; +} + +void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + // Clear previous active id + if (g.ActiveId != 0) + { + // While most behaved code would make an effort to not steal active id during window move/drag operations, + // we at least need to be resilient to it. Canceling the move is rather aggressive and users of 'master' branch + // may prefer the weird ill-defined half working situation ('docking' did assert), so may need to rework that. + if (g.MovingWindow != NULL && g.ActiveId == g.MovingWindow->MoveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() cancel MovingWindow\n"); + g.MovingWindow = NULL; + } + + // This could be written in a more general way (e.g associate a hook to ActiveId), + // but since this is currently quite an exception we'll leave it as is. + // One common scenario leading to this is: pressing Key ->NavMoveRequestApplyResult() -> ClearActiveId() + if (g.InputTextState.ID == g.ActiveId) + InputTextDeactivateHook(g.ActiveId); + } + + // Set active id + g.ActiveIdIsJustActivated = (g.ActiveId != id); + if (g.ActiveIdIsJustActivated) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() old:0x%08X (window \"%s\") -> new:0x%08X (window \"%s\")\n", g.ActiveId, g.ActiveIdWindow ? g.ActiveIdWindow->Name : "", id, window ? window->Name : ""); + g.ActiveIdTimer = 0.0f; + g.ActiveIdHasBeenPressedBefore = false; + g.ActiveIdHasBeenEditedBefore = false; + g.ActiveIdMouseButton = -1; + if (id != 0) + { + g.LastActiveId = id; + g.LastActiveIdTimer = 0.0f; + } + } + g.ActiveId = id; + g.ActiveIdAllowOverlap = false; + g.ActiveIdNoClearOnFocusLoss = false; + g.ActiveIdWindow = window; + g.ActiveIdHasBeenEditedThisFrame = false; + if (id) + { + g.ActiveIdIsAlive = id; + g.ActiveIdSource = (g.NavActivateId == id || g.NavJustMovedToId == id) ? g.NavInputSource : ImGuiInputSource_Mouse; + IM_ASSERT(g.ActiveIdSource != ImGuiInputSource_None); + } + + // Clear declaration of inputs claimed by the widget + // (Please note that this is WIP and not all keys/inputs are thoroughly declared by all widgets yet) + g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + g.ActiveIdUsingNavInputMask = 0x00; +#endif +} + +void ImGui::ClearActiveID() +{ + SetActiveID(0, NULL); // g.ActiveId = 0; +} + +void ImGui::SetHoveredID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.HoveredId = id; + g.HoveredIdAllowOverlap = false; + if (id != 0 && g.HoveredIdPreviousFrame != id) + g.HoveredIdTimer = g.HoveredIdNotActiveTimer = 0.0f; +} + +ImGuiID ImGui::GetHoveredID() +{ + ImGuiContext& g = *GImGui; + return g.HoveredId ? g.HoveredId : g.HoveredIdPreviousFrame; +} + +// This is called by ItemAdd(). +// Code not using ItemAdd() may need to call this manually otherwise ActiveId will be cleared. In IMGUI_VERSION_NUM < 18717 this was called by GetID(). +void ImGui::KeepAliveID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId == id) + g.ActiveIdIsAlive = id; + if (g.ActiveIdPreviousFrame == id) + g.ActiveIdPreviousFrameIsAlive = true; +} + +void ImGui::MarkItemEdited(ImGuiID id) +{ + // This marking is solely to be able to provide info for IsItemDeactivatedAfterEdit(). + // ActiveId might have been released by the time we call this (as in the typical press/release button behavior) but still need to fill the data. + ImGuiContext& g = *GImGui; + if (g.LockMarkEdited > 0) + return; + if (g.ActiveId == id || g.ActiveId == 0) + { + g.ActiveIdHasBeenEditedThisFrame = true; + g.ActiveIdHasBeenEditedBefore = true; + } + + // We accept a MarkItemEdited() on drag and drop targets (see https://github.com/ocornut/imgui/issues/1875#issuecomment-978243343) + // We accept 'ActiveIdPreviousFrame == id' for InputText() returning an edit after it has been taken ActiveId away (#4714) + IM_ASSERT(g.DragDropActive || g.ActiveId == id || g.ActiveId == 0 || g.ActiveIdPreviousFrame == id); + + //IM_ASSERT(g.CurrentWindow->DC.LastItemId == id); + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Edited; +} + +bool ImGui::IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags) +{ + // An active popup disable hovering on other windows (apart from its own children) + // FIXME-OPT: This could be cached/stored within the window. + ImGuiContext& g = *GImGui; + if (g.NavWindow) + if (ImGuiWindow* focused_root_window = g.NavWindow->RootWindowDockTree) + if (focused_root_window->WasActive && focused_root_window != window->RootWindowDockTree) + { + // For the purpose of those flags we differentiate "standard popup" from "modal popup" + // NB: The 'else' is important because Modal windows are also Popups. + bool want_inhibit = false; + if (focused_root_window->Flags & ImGuiWindowFlags_Modal) + want_inhibit = true; + else if ((focused_root_window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + want_inhibit = true; + + // Inhibit hover unless the window is within the stack of our modal/popup + if (want_inhibit) + if (!IsWindowWithinBeginStackOf(window->RootWindow, focused_root_window)) + return false; + } + + // Filter by viewport + if (window->Viewport != g.MouseViewport) + if (g.MovingWindow == NULL || window->RootWindowDockTree != g.MovingWindow->RootWindowDockTree) + return false; + + return true; +} + +static inline float CalcDelayFromHoveredFlags(ImGuiHoveredFlags flags) +{ + ImGuiContext& g = *GImGui; + if (flags & ImGuiHoveredFlags_DelayNormal) + return g.Style.HoverDelayNormal; + if (flags & ImGuiHoveredFlags_DelayShort) + return g.Style.HoverDelayShort; + return 0.0f; +} + +static ImGuiHoveredFlags ApplyHoverFlagsForTooltip(ImGuiHoveredFlags user_flags, ImGuiHoveredFlags shared_flags) +{ + // Allow instance flags to override shared flags + if (user_flags & (ImGuiHoveredFlags_DelayNone | ImGuiHoveredFlags_DelayShort | ImGuiHoveredFlags_DelayNormal)) + shared_flags &= ~(ImGuiHoveredFlags_DelayNone | ImGuiHoveredFlags_DelayShort | ImGuiHoveredFlags_DelayNormal); + return user_flags | shared_flags; +} + +// This is roughly matching the behavior of internal-facing ItemHoverable() +// - we allow hovering to be true when ActiveId==window->MoveID, so that clicking on non-interactive items such as a Text() item still returns true with IsItemHovered() +// - this should work even for non-interactive items that have no ID, so we cannot use LastItemId +bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT((flags & ~ImGuiHoveredFlags_AllowedMaskForIsItemHovered) == 0 && "Invalid flags for IsItemHovered()!"); + + if (g.NavDisableMouseHover && !g.NavDisableHighlight && !(flags & ImGuiHoveredFlags_NoNavOverride)) + { + if ((g.LastItemData.InFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) + return false; + if (!IsItemFocused()) + return false; + + if (flags & ImGuiHoveredFlags_ForTooltip) + flags = ApplyHoverFlagsForTooltip(flags, g.Style.HoverFlagsForTooltipNav); + } + else + { + // Test for bounding box overlap, as updated as ItemAdd() + ImGuiItemStatusFlags status_flags = g.LastItemData.StatusFlags; + if (!(status_flags & ImGuiItemStatusFlags_HoveredRect)) + return false; + + if (flags & ImGuiHoveredFlags_ForTooltip) + flags = ApplyHoverFlagsForTooltip(flags, g.Style.HoverFlagsForTooltipMouse); + + IM_ASSERT((flags & (ImGuiHoveredFlags_AnyWindow | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_NoPopupHierarchy | ImGuiHoveredFlags_DockHierarchy)) == 0); // Flags not supported by this function + + // Done with rectangle culling so we can perform heavier checks now + // Test if we are hovering the right window (our window could be behind another window) + // [2021/03/02] Reworked / reverted the revert, finally. Note we want e.g. BeginGroup/ItemAdd/EndGroup to work as well. (#3851) + // [2017/10/16] Reverted commit 344d48be3 and testing RootWindow instead. I believe it is correct to NOT test for RootWindow but this leaves us unable + // to use IsItemHovered() after EndChild() itself. Until a solution is found I believe reverting to the test from 2017/09/27 is safe since this was + // the test that has been running for a long while. + if (g.HoveredWindow != window && (status_flags & ImGuiItemStatusFlags_HoveredWindow) == 0) + if ((flags & ImGuiHoveredFlags_AllowWhenOverlappedByWindow) == 0) + return false; + + // Test if another item is active (e.g. being dragged) + const ImGuiID id = g.LastItemData.ID; + if ((flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) == 0) + if (g.ActiveId != 0 && g.ActiveId != id && !g.ActiveIdAllowOverlap) + if (g.ActiveId != window->MoveId && g.ActiveId != window->TabId) + return false; + + // Test if interactions on this window are blocked by an active popup or modal. + // The ImGuiHoveredFlags_AllowWhenBlockedByPopup flag will be tested here. + if (!IsWindowContentHoverable(window, flags) && !(g.LastItemData.InFlags & ImGuiItemFlags_NoWindowHoverableCheck)) + return false; + + // Test if the item is disabled + if ((g.LastItemData.InFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) + return false; + + // Special handling for calling after Begin() which represent the title bar or tab. + // When the window is skipped/collapsed (SkipItems==true) that last item (always ->MoveId submitted by Begin) + // will never be overwritten so we need to detect the case. + if (id == window->MoveId && window->WriteAccessed) + return false; + + // Test if using AllowOverlap and overlapped + if ((g.LastItemData.InFlags & ImGuiItemFlags_AllowOverlap) && id != 0) + if ((flags & ImGuiHoveredFlags_AllowWhenOverlappedByItem) == 0) + if (g.HoveredIdPreviousFrame != g.LastItemData.ID) + return false; + } + + // Handle hover delay + // (some ideas: https://www.nngroup.com/articles/timing-exposing-content) + const float delay = CalcDelayFromHoveredFlags(flags); + if (delay > 0.0f || (flags & ImGuiHoveredFlags_Stationary)) + { + ImGuiID hover_delay_id = (g.LastItemData.ID != 0) ? g.LastItemData.ID : window->GetIDFromRectangle(g.LastItemData.Rect); + if ((flags & ImGuiHoveredFlags_NoSharedDelay) && (g.HoverItemDelayIdPreviousFrame != hover_delay_id)) + g.HoverItemDelayTimer = 0.0f; + g.HoverItemDelayId = hover_delay_id; + + // When changing hovered item we requires a bit of stationary delay before activating hover timer, + // but once unlocked on a given item we also moving. + //if (g.HoverDelayTimer >= delay && (g.HoverDelayTimer - g.IO.DeltaTime < delay || g.MouseStationaryTimer - g.IO.DeltaTime < g.Style.HoverStationaryDelay)) { IMGUI_DEBUG_LOG("HoverDelayTimer = %f/%f, MouseStationaryTimer = %f\n", g.HoverDelayTimer, delay, g.MouseStationaryTimer); } + if ((flags & ImGuiHoveredFlags_Stationary) != 0 && g.HoverItemUnlockedStationaryId != hover_delay_id) + return false; + + if (g.HoverItemDelayTimer < delay) + return false; + } + + return true; +} + +// Internal facing ItemHoverable() used when submitting widgets. Differs slightly from IsItemHovered(). +// (this does not rely on LastItemData it can be called from a ButtonBehavior() call not following an ItemAdd() call) +// FIXME-LEGACY: the 'ImGuiItemFlags item_flags' parameter was added on 2023-06-28. +// If you used this in your legacy/custom widgets code: +// - Commonly: if your ItemHoverable() call comes after an ItemAdd() call: pass 'item_flags = g.LastItemData.InFlags'. +// - Rare: otherwise you may pass 'item_flags = 0' (ImGuiItemFlags_None) unless you want to benefit from special behavior handled by ItemHoverable. +bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id, ImGuiItemFlags item_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.HoveredWindow != window) + return false; + if (!IsMouseHoveringRect(bb.Min, bb.Max)) + return false; + + if (g.HoveredId != 0 && g.HoveredId != id && !g.HoveredIdAllowOverlap) + return false; + if (g.ActiveId != 0 && g.ActiveId != id && !g.ActiveIdAllowOverlap) + return false; + + // Done with rectangle culling so we can perform heavier checks now. + if (!(item_flags & ImGuiItemFlags_NoWindowHoverableCheck) && !IsWindowContentHoverable(window, ImGuiHoveredFlags_None)) + { + g.HoveredIdDisabled = true; + return false; + } + + // We exceptionally allow this function to be called with id==0 to allow using it for easy high-level + // hover test in widgets code. We could also decide to split this function is two. + if (id != 0) + { + // Drag source doesn't report as hovered + if (g.DragDropActive && g.DragDropPayload.SourceId == id && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoDisableHover)) + return false; + + SetHoveredID(id); + + // AllowOverlap mode (rarely used) requires previous frame HoveredId to be null or to match. + // This allows using patterns where a later submitted widget overlaps a previous one. Generally perceived as a front-to-back hit-test. + if (item_flags & ImGuiItemFlags_AllowOverlap) + { + g.HoveredIdAllowOverlap = true; + if (g.HoveredIdPreviousFrame != id) + return false; + } + } + + // When disabled we'll return false but still set HoveredId + if (item_flags & ImGuiItemFlags_Disabled) + { + // Release active id if turning disabled + if (g.ActiveId == id && id != 0) + ClearActiveID(); + g.HoveredIdDisabled = true; + return false; + } + + if (id != 0) + { + // [DEBUG] Item Picker tool! + // We perform the check here because SetHoveredID() is not frequently called (1~ time a frame), making + // the cost of this tool near-zero. We can get slightly better call-stack and support picking non-hovered + // items if we performed the test in ItemAdd(), but that would incur a small runtime cost. + if (g.DebugItemPickerActive && g.HoveredIdPreviousFrame == id) + GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 255, 0, 255)); + if (g.DebugItemPickerBreakId == id) + IM_DEBUG_BREAK(); + } + + if (g.NavDisableMouseHover) + return false; + + return true; +} + +// FIXME: This is inlined/duplicated in ItemAdd() +bool ImGui::IsClippedEx(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!bb.Overlaps(window->ClipRect)) + if (id == 0 || (id != g.ActiveId && id != g.NavId)) + if (!g.LogEnabled) + return true; + return false; +} + +// This is also inlined in ItemAdd() +// Note: if ImGuiItemStatusFlags_HasDisplayRect is set, user needs to set g.LastItemData.DisplayRect. +void ImGui::SetLastItemData(ImGuiID item_id, ImGuiItemFlags in_flags, ImGuiItemStatusFlags item_flags, const ImRect& item_rect) +{ + ImGuiContext& g = *GImGui; + g.LastItemData.ID = item_id; + g.LastItemData.InFlags = in_flags; + g.LastItemData.StatusFlags = item_flags; + g.LastItemData.Rect = g.LastItemData.NavRect = item_rect; +} + +float ImGui::CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x) +{ + if (wrap_pos_x < 0.0f) + return 0.0f; + + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (wrap_pos_x == 0.0f) + { + // We could decide to setup a default wrapping max point for auto-resizing windows, + // or have auto-wrap (with unspecified wrapping pos) behave as a ContentSize extending function? + //if (window->Hidden && (window->Flags & ImGuiWindowFlags_AlwaysAutoResize)) + // wrap_pos_x = ImMax(window->WorkRect.Min.x + g.FontSize * 10.0f, window->WorkRect.Max.x); + //else + wrap_pos_x = window->WorkRect.Max.x; + } + else if (wrap_pos_x > 0.0f) + { + wrap_pos_x += window->Pos.x - window->Scroll.x; // wrap_pos_x is provided is window local space + } + + return ImMax(wrap_pos_x - pos.x, 1.0f); +} + +// IM_ALLOC() == ImGui::MemAlloc() +void* ImGui::MemAlloc(size_t size) +{ + void* ptr = (*GImAllocatorAllocFunc)(size, GImAllocatorUserData); +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (ImGuiContext* ctx = GImGui) + DebugAllocHook(&ctx->DebugAllocInfo, ctx->FrameCount, ptr, size); +#endif + return ptr; +} + +// IM_FREE() == ImGui::MemFree() +void ImGui::MemFree(void* ptr) +{ +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (ptr != NULL) + if (ImGuiContext* ctx = GImGui) + DebugAllocHook(&ctx->DebugAllocInfo, ctx->FrameCount, ptr, (size_t)-1); +#endif + return (*GImAllocatorFreeFunc)(ptr, GImAllocatorUserData); +} + +// We record the number of allocation in recent frames, as a way to audit/sanitize our guiding principles of "no allocations on idle/repeating frames" +void ImGui::DebugAllocHook(ImGuiDebugAllocInfo* info, int frame_count, void* ptr, size_t size) +{ + ImGuiDebugAllocEntry* entry = &info->LastEntriesBuf[info->LastEntriesIdx]; + IM_UNUSED(ptr); + if (entry->FrameCount != frame_count) + { + info->LastEntriesIdx = (info->LastEntriesIdx + 1) % IM_ARRAYSIZE(info->LastEntriesBuf); + entry = &info->LastEntriesBuf[info->LastEntriesIdx]; + entry->FrameCount = frame_count; + entry->AllocCount = entry->FreeCount = 0; + } + if (size != (size_t)-1) + { + entry->AllocCount++; + info->TotalAllocCount++; + //printf("[%05d] MemAlloc(%d) -> 0x%p\n", frame_count, size, ptr); + } + else + { + entry->FreeCount++; + info->TotalFreeCount++; + //printf("[%05d] MemFree(0x%p)\n", frame_count, ptr); + } +} + +const char* ImGui::GetClipboardText() +{ + ImGuiContext& g = *GImGui; + return g.IO.GetClipboardTextFn ? g.IO.GetClipboardTextFn(g.IO.ClipboardUserData) : ""; +} + +void ImGui::SetClipboardText(const char* text) +{ + ImGuiContext& g = *GImGui; + if (g.IO.SetClipboardTextFn) + g.IO.SetClipboardTextFn(g.IO.ClipboardUserData, text); +} + +const char* ImGui::GetVersion() +{ + return IMGUI_VERSION; +} + +ImGuiIO& ImGui::GetIO() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + return GImGui->IO; +} + +ImGuiPlatformIO& ImGui::GetPlatformIO() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() or ImGui::SetCurrentContext()?"); + return GImGui->PlatformIO; +} + +// Pass this to your backend rendering function! Valid after Render() and until the next call to NewFrame() +ImDrawData* ImGui::GetDrawData() +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = g.Viewports[0]; + return viewport->DrawDataP.Valid ? &viewport->DrawDataP : NULL; +} + +double ImGui::GetTime() +{ + return GImGui->Time; +} + +int ImGui::GetFrameCount() +{ + return GImGui->FrameCount; +} + +static ImDrawList* GetViewportBgFgDrawList(ImGuiViewportP* viewport, size_t drawlist_no, const char* drawlist_name) +{ + // Create the draw list on demand, because they are not frequently used for all viewports + ImGuiContext& g = *GImGui; + IM_ASSERT(drawlist_no < IM_ARRAYSIZE(viewport->BgFgDrawLists)); + ImDrawList* draw_list = viewport->BgFgDrawLists[drawlist_no]; + if (draw_list == NULL) + { + draw_list = IM_NEW(ImDrawList)(&g.DrawListSharedData); + draw_list->_OwnerName = drawlist_name; + viewport->BgFgDrawLists[drawlist_no] = draw_list; + } + + // Our ImDrawList system requires that there is always a command + if (viewport->BgFgDrawListsLastFrame[drawlist_no] != g.FrameCount) + { + draw_list->_ResetForNewFrame(); + draw_list->PushTextureID(g.IO.Fonts->TexID); + draw_list->PushClipRect(viewport->Pos, viewport->Pos + viewport->Size, false); + viewport->BgFgDrawListsLastFrame[drawlist_no] = g.FrameCount; + } + return draw_list; +} + +ImDrawList* ImGui::GetBackgroundDrawList(ImGuiViewport* viewport) +{ + return GetViewportBgFgDrawList((ImGuiViewportP*)viewport, 0, "##Background"); +} + +ImDrawList* ImGui::GetBackgroundDrawList() +{ + ImGuiContext& g = *GImGui; + return GetBackgroundDrawList(g.CurrentWindow->Viewport); +} + +ImDrawList* ImGui::GetForegroundDrawList(ImGuiViewport* viewport) +{ + return GetViewportBgFgDrawList((ImGuiViewportP*)viewport, 1, "##Foreground"); +} + +ImDrawList* ImGui::GetForegroundDrawList() +{ + ImGuiContext& g = *GImGui; + return GetForegroundDrawList(g.CurrentWindow->Viewport); +} + +ImDrawListSharedData* ImGui::GetDrawListSharedData() +{ + return &GImGui->DrawListSharedData; +} + +void ImGui::StartMouseMovingWindow(ImGuiWindow* window) +{ + // Set ActiveId even if the _NoMove flag is set. Without it, dragging away from a window with _NoMove would activate hover on other windows. + // We _also_ call this when clicking in a window empty space when io.ConfigWindowsMoveFromTitleBarOnly is set, but clear g.MovingWindow afterward. + // This is because we want ActiveId to be set even when the window is not permitted to move. + ImGuiContext& g = *GImGui; + FocusWindow(window); + SetActiveID(window->MoveId, window); + g.NavDisableHighlight = true; + g.ActiveIdClickOffset = g.IO.MouseClickedPos[0] - window->RootWindowDockTree->Pos; + g.ActiveIdNoClearOnFocusLoss = true; + SetActiveIdUsingAllKeyboardKeys(); + + bool can_move_window = true; + if ((window->Flags & ImGuiWindowFlags_NoMove) || (window->RootWindowDockTree->Flags & ImGuiWindowFlags_NoMove)) + can_move_window = false; + if (ImGuiDockNode* node = window->DockNodeAsHost) + if (node->VisibleWindow && (node->VisibleWindow->Flags & ImGuiWindowFlags_NoMove)) + can_move_window = false; + if (can_move_window) + g.MovingWindow = window; +} + +// We use 'undock == false' when dragging from title bar to allow moving groups of floating nodes without undocking them. +void ImGui::StartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, bool undock) +{ + ImGuiContext& g = *GImGui; + bool can_undock_node = false; + if (undock && node != NULL && node->VisibleWindow && (node->VisibleWindow->Flags & ImGuiWindowFlags_NoMove) == 0 && (node->MergedFlags & ImGuiDockNodeFlags_NoUndocking) == 0) + { + // Can undock if: + // - part of a hierarchy with more than one visible node (if only one is visible, we'll just move the root window) + // - part of a dockspace node hierarchy: so we can undock the last single visible node too (trivia: undocking from a fixed/central node will create a new node and copy windows) + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + if (root_node->OnlyNodeWithWindows != node || root_node->CentralNode != NULL) // -V1051 PVS-Studio thinks node should be root_node and is wrong about that. + can_undock_node = true; + } + + const bool clicked = IsMouseClicked(0); + const bool dragging = IsMouseDragging(0); + if (can_undock_node && dragging) + DockContextQueueUndockNode(&g, node); // Will lead to DockNodeStartMouseMovingWindow() -> StartMouseMovingWindow() being called next frame + else if (!can_undock_node && (clicked || dragging) && g.MovingWindow != window) + StartMouseMovingWindow(window); +} + +// Handle mouse moving window +// Note: moving window with the navigation keys (Square + d-pad / CTRL+TAB + Arrows) are processed in NavUpdateWindowing() +// FIXME: We don't have strong guarantee that g.MovingWindow stay synched with g.ActiveId == g.MovingWindow->MoveId. +// This is currently enforced by the fact that BeginDragDropSource() is setting all g.ActiveIdUsingXXXX flags to inhibit navigation inputs, +// but if we should more thoroughly test cases where g.ActiveId or g.MovingWindow gets changed and not the other. +void ImGui::UpdateMouseMovingWindowNewFrame() +{ + ImGuiContext& g = *GImGui; + if (g.MovingWindow != NULL) + { + // We actually want to move the root window. g.MovingWindow == window we clicked on (could be a child window). + // We track it to preserve Focus and so that generally ActiveIdWindow == MovingWindow and ActiveId == MovingWindow->MoveId for consistency. + KeepAliveID(g.ActiveId); + IM_ASSERT(g.MovingWindow && g.MovingWindow->RootWindowDockTree); + ImGuiWindow* moving_window = g.MovingWindow->RootWindowDockTree; + + // When a window stop being submitted while being dragged, it may will its viewport until next Begin() + const bool window_disappared = (!moving_window->WasActive && !moving_window->Active); + if (g.IO.MouseDown[0] && IsMousePosValid(&g.IO.MousePos) && !window_disappared) + { + ImVec2 pos = g.IO.MousePos - g.ActiveIdClickOffset; + if (moving_window->Pos.x != pos.x || moving_window->Pos.y != pos.y) + { + SetWindowPos(moving_window, pos, ImGuiCond_Always); + if (moving_window->Viewport && moving_window->ViewportOwned) // Synchronize viewport immediately because some overlays may relies on clipping rectangle before we Begin() into the window. + { + moving_window->Viewport->Pos = pos; + moving_window->Viewport->UpdateWorkRect(); + } + } + FocusWindow(g.MovingWindow); + } + else + { + if (!window_disappared) + { + // Try to merge the window back into the main viewport. + // This works because MouseViewport should be != MovingWindow->Viewport on release (as per code in UpdateViewports) + if (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) + UpdateTryMergeWindowIntoHostViewport(moving_window, g.MouseViewport); + + // Restore the mouse viewport so that we don't hover the viewport _under_ the moved window during the frame we released the mouse button. + if (moving_window->Viewport && !IsDragDropPayloadBeingAccepted()) + g.MouseViewport = moving_window->Viewport; + + // Clear the NoInput window flag set by the Viewport system + if (moving_window->Viewport) + moving_window->Viewport->Flags &= ~ImGuiViewportFlags_NoInputs; + } + + g.MovingWindow = NULL; + ClearActiveID(); + } + } + else + { + // When clicking/dragging from a window that has the _NoMove flag, we still set the ActiveId in order to prevent hovering others. + if (g.ActiveIdWindow && g.ActiveIdWindow->MoveId == g.ActiveId) + { + KeepAliveID(g.ActiveId); + if (!g.IO.MouseDown[0]) + ClearActiveID(); + } + } +} + +// Initiate moving window when clicking on empty space or title bar. +// Handle left-click and right-click focus. +void ImGui::UpdateMouseMovingWindowEndFrame() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId != 0 || g.HoveredId != 0) + return; + + // Unless we just made a window/popup appear + if (g.NavWindow && g.NavWindow->Appearing) + return; + + // Click on empty space to focus window and start moving + // (after we're done with all our widgets, so e.g. clicking on docking tab-bar which have set HoveredId already and not get us here!) + if (g.IO.MouseClicked[0]) + { + // Handle the edge case of a popup being closed while clicking in its empty space. + // If we try to focus it, FocusWindow() > ClosePopupsOverWindow() will accidentally close any parent popups because they are not linked together any more. + ImGuiWindow* root_window = g.HoveredWindow ? g.HoveredWindow->RootWindow : NULL; + const bool is_closed_popup = root_window && (root_window->Flags & ImGuiWindowFlags_Popup) && !IsPopupOpen(root_window->PopupId, ImGuiPopupFlags_AnyPopupLevel); + + if (root_window != NULL && !is_closed_popup) + { + StartMouseMovingWindow(g.HoveredWindow); //-V595 + + // Cancel moving if clicked outside of title bar + if (g.IO.ConfigWindowsMoveFromTitleBarOnly) + if (!(root_window->Flags & ImGuiWindowFlags_NoTitleBar) || root_window->DockIsActive) + if (!root_window->TitleBarRect().Contains(g.IO.MouseClickedPos[0])) + g.MovingWindow = NULL; + + // Cancel moving if clicked over an item which was disabled or inhibited by popups (note that we know HoveredId == 0 already) + if (g.HoveredIdDisabled) + g.MovingWindow = NULL; + } + else if (root_window == NULL && g.NavWindow != NULL) + { + // Clicking on void disable focus + FocusWindow(NULL, ImGuiFocusRequestFlags_UnlessBelowModal); + } + } + + // With right mouse button we close popups without changing focus based on where the mouse is aimed + // Instead, focus will be restored to the window under the bottom-most closed popup. + // (The left mouse button path calls FocusWindow on the hovered window, which will lead NewFrame->ClosePopupsOverWindow to trigger) + if (g.IO.MouseClicked[1]) + { + // Find the top-most window between HoveredWindow and the top-most Modal Window. + // This is where we can trim the popup stack. + ImGuiWindow* modal = GetTopMostPopupModal(); + bool hovered_window_above_modal = g.HoveredWindow && (modal == NULL || IsWindowAbove(g.HoveredWindow, modal)); + ClosePopupsOverWindow(hovered_window_above_modal ? g.HoveredWindow : modal, true); + } +} + +// This is called during NewFrame()->UpdateViewportsNewFrame() only. +// Need to keep in sync with SetWindowPos() +static void TranslateWindow(ImGuiWindow* window, const ImVec2& delta) +{ + window->Pos += delta; + window->ClipRect.Translate(delta); + window->OuterRectClipped.Translate(delta); + window->InnerRect.Translate(delta); + window->DC.CursorPos += delta; + window->DC.CursorStartPos += delta; + window->DC.CursorMaxPos += delta; + window->DC.IdealMaxPos += delta; +} + +static void ScaleWindow(ImGuiWindow* window, float scale) +{ + ImVec2 origin = window->Viewport->Pos; + window->Pos = ImFloor((window->Pos - origin) * scale + origin); + window->Size = ImTrunc(window->Size * scale); + window->SizeFull = ImTrunc(window->SizeFull * scale); + window->ContentSize = ImTrunc(window->ContentSize * scale); +} + +static bool IsWindowActiveAndVisible(ImGuiWindow* window) +{ + return (window->Active) && (!window->Hidden); +} + +// The reason this is exposed in imgui_internal.h is: on touch-based system that don't have hovering, we want to dispatch inputs to the right target (imgui vs imgui+app) +void ImGui::UpdateHoveredWindowAndCaptureFlags() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + g.WindowsHoverPadding = ImMax(g.Style.TouchExtraPadding, ImVec2(WINDOWS_HOVER_PADDING, WINDOWS_HOVER_PADDING)); + + // Find the window hovered by mouse: + // - Child windows can extend beyond the limit of their parent so we need to derive HoveredRootWindow from HoveredWindow. + // - When moving a window we can skip the search, which also conveniently bypasses the fact that window->WindowRectClipped is lagging as this point of the frame. + // - We also support the moved window toggling the NoInputs flag after moving has started in order to be able to detect windows below it, which is useful for e.g. docking mechanisms. + bool clear_hovered_windows = false; + FindHoveredWindow(); + IM_ASSERT(g.HoveredWindow == NULL || g.HoveredWindow == g.MovingWindow || g.HoveredWindow->Viewport == g.MouseViewport); + + // Modal windows prevents mouse from hovering behind them. + ImGuiWindow* modal_window = GetTopMostPopupModal(); + if (modal_window && g.HoveredWindow && !IsWindowWithinBeginStackOf(g.HoveredWindow->RootWindow, modal_window)) // FIXME-MERGE: RootWindowDockTree ? + clear_hovered_windows = true; + + // Disabled mouse? + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) + clear_hovered_windows = true; + + // We track click ownership. When clicked outside of a window the click is owned by the application and + // won't report hovering nor request capture even while dragging over our windows afterward. + const bool has_open_popup = (g.OpenPopupStack.Size > 0); + const bool has_open_modal = (modal_window != NULL); + int mouse_earliest_down = -1; + bool mouse_any_down = false; + for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) + { + if (io.MouseClicked[i]) + { + io.MouseDownOwned[i] = (g.HoveredWindow != NULL) || has_open_popup; + io.MouseDownOwnedUnlessPopupClose[i] = (g.HoveredWindow != NULL) || has_open_modal; + } + mouse_any_down |= io.MouseDown[i]; + if (io.MouseDown[i]) + if (mouse_earliest_down == -1 || io.MouseClickedTime[i] < io.MouseClickedTime[mouse_earliest_down]) + mouse_earliest_down = i; + } + const bool mouse_avail = (mouse_earliest_down == -1) || io.MouseDownOwned[mouse_earliest_down]; + const bool mouse_avail_unless_popup_close = (mouse_earliest_down == -1) || io.MouseDownOwnedUnlessPopupClose[mouse_earliest_down]; + + // If mouse was first clicked outside of ImGui bounds we also cancel out hovering. + // FIXME: For patterns of drag and drop across OS windows, we may need to rework/remove this test (first committed 311c0ca9 on 2015/02) + const bool mouse_dragging_extern_payload = g.DragDropActive && (g.DragDropSourceFlags & ImGuiDragDropFlags_SourceExtern) != 0; + if (!mouse_avail && !mouse_dragging_extern_payload) + clear_hovered_windows = true; + + if (clear_hovered_windows) + g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; + + // Update io.WantCaptureMouse for the user application (true = dispatch mouse info to Dear ImGui only, false = dispatch mouse to Dear ImGui + underlying app) + // Update io.WantCaptureMouseAllowPopupClose (experimental) to give a chance for app to react to popup closure with a drag + if (g.WantCaptureMouseNextFrame != -1) + { + io.WantCaptureMouse = io.WantCaptureMouseUnlessPopupClose = (g.WantCaptureMouseNextFrame != 0); + } + else + { + io.WantCaptureMouse = (mouse_avail && (g.HoveredWindow != NULL || mouse_any_down)) || has_open_popup; + io.WantCaptureMouseUnlessPopupClose = (mouse_avail_unless_popup_close && (g.HoveredWindow != NULL || mouse_any_down)) || has_open_modal; + } + + // Update io.WantCaptureKeyboard for the user application (true = dispatch keyboard info to Dear ImGui only, false = dispatch keyboard info to Dear ImGui + underlying app) + if (g.WantCaptureKeyboardNextFrame != -1) + io.WantCaptureKeyboard = (g.WantCaptureKeyboardNextFrame != 0); + else + io.WantCaptureKeyboard = (g.ActiveId != 0) || (modal_window != NULL); + if (io.NavActive && (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && !(io.ConfigFlags & ImGuiConfigFlags_NavNoCaptureKeyboard)) + io.WantCaptureKeyboard = true; + + // Update io.WantTextInput flag, this is to allow systems without a keyboard (e.g. mobile, hand-held) to show a software keyboard if possible + io.WantTextInput = (g.WantTextInputNextFrame != -1) ? (g.WantTextInputNextFrame != 0) : false; +} + +void ImGui::NewFrame() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + ImGuiContext& g = *GImGui; + + // Remove pending delete hooks before frame start. + // This deferred removal avoid issues of removal while iterating the hook vector + for (int n = g.Hooks.Size - 1; n >= 0; n--) + if (g.Hooks[n].Type == ImGuiContextHookType_PendingRemoval_) + g.Hooks.erase(&g.Hooks[n]); + + CallContextHooks(&g, ImGuiContextHookType_NewFramePre); + + // Check and assert for various common IO and Configuration mistakes + g.ConfigFlagsLastFrame = g.ConfigFlagsCurrFrame; + ErrorCheckNewFrameSanityChecks(); + g.ConfigFlagsCurrFrame = g.IO.ConfigFlags; + + // Load settings on first frame, save settings when modified (after a delay) + UpdateSettings(); + + g.Time += g.IO.DeltaTime; + g.WithinFrameScope = true; + g.FrameCount += 1; + g.TooltipOverrideCount = 0; + g.WindowsActiveCount = 0; + g.MenusIdSubmittedThisFrame.resize(0); + + // Calculate frame-rate for the user, as a purely luxurious feature + g.FramerateSecPerFrameAccum += g.IO.DeltaTime - g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx]; + g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx] = g.IO.DeltaTime; + g.FramerateSecPerFrameIdx = (g.FramerateSecPerFrameIdx + 1) % IM_ARRAYSIZE(g.FramerateSecPerFrame); + g.FramerateSecPerFrameCount = ImMin(g.FramerateSecPerFrameCount + 1, IM_ARRAYSIZE(g.FramerateSecPerFrame)); + g.IO.Framerate = (g.FramerateSecPerFrameAccum > 0.0f) ? (1.0f / (g.FramerateSecPerFrameAccum / (float)g.FramerateSecPerFrameCount)) : FLT_MAX; + + // Process input queue (trickle as many events as possible), turn events into writes to IO structure + g.InputEventsTrail.resize(0); + UpdateInputEvents(g.IO.ConfigInputTrickleEventQueue); + + // Update viewports (after processing input queue, so io.MouseHoveredViewport is set) + UpdateViewportsNewFrame(); + + // Setup current font and draw list shared data + // FIXME-VIEWPORT: the concept of a single ClipRectFullscreen is not ideal! + g.IO.Fonts->Locked = true; + SetCurrentFont(GetDefaultFont()); + IM_ASSERT(g.Font->IsLoaded()); + ImRect virtual_space(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + for (ImGuiViewportP* viewport : g.Viewports) + virtual_space.Add(viewport->GetMainRect()); + g.DrawListSharedData.ClipRectFullscreen = virtual_space.ToVec4(); + g.DrawListSharedData.CurveTessellationTol = g.Style.CurveTessellationTol; + g.DrawListSharedData.SetCircleTessellationMaxError(g.Style.CircleTessellationMaxError); + g.DrawListSharedData.InitialFlags = ImDrawListFlags_None; + if (g.Style.AntiAliasedLines) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLines; + if (g.Style.AntiAliasedLinesUseTex && !(g.Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLinesUseTex; + if (g.Style.AntiAliasedFill) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedFill; + if (g.IO.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AllowVtxOffset; + + // Mark rendering data as invalid to prevent user who may have a handle on it to use it. + for (ImGuiViewportP* viewport : g.Viewports) + { + viewport->DrawData = NULL; + viewport->DrawDataP.Valid = false; + } + + // Drag and drop keep the source ID alive so even if the source disappear our state is consistent + if (g.DragDropActive && g.DragDropPayload.SourceId == g.ActiveId) + KeepAliveID(g.DragDropPayload.SourceId); + + // Update HoveredId data + if (!g.HoveredIdPreviousFrame) + g.HoveredIdTimer = 0.0f; + if (!g.HoveredIdPreviousFrame || (g.HoveredId && g.ActiveId == g.HoveredId)) + g.HoveredIdNotActiveTimer = 0.0f; + if (g.HoveredId) + g.HoveredIdTimer += g.IO.DeltaTime; + if (g.HoveredId && g.ActiveId != g.HoveredId) + g.HoveredIdNotActiveTimer += g.IO.DeltaTime; + g.HoveredIdPreviousFrame = g.HoveredId; + g.HoveredId = 0; + g.HoveredIdAllowOverlap = false; + g.HoveredIdDisabled = false; + + // Clear ActiveID if the item is not alive anymore. + // In 1.87, the common most call to KeepAliveID() was moved from GetID() to ItemAdd(). + // As a result, custom widget using ButtonBehavior() _without_ ItemAdd() need to call KeepAliveID() themselves. + if (g.ActiveId != 0 && g.ActiveIdIsAlive != g.ActiveId && g.ActiveIdPreviousFrame == g.ActiveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("NewFrame(): ClearActiveID() because it isn't marked alive anymore!\n"); + ClearActiveID(); + } + + // Update ActiveId data (clear reference to active widget if the widget isn't alive anymore) + if (g.ActiveId) + g.ActiveIdTimer += g.IO.DeltaTime; + g.LastActiveIdTimer += g.IO.DeltaTime; + g.ActiveIdPreviousFrame = g.ActiveId; + g.ActiveIdPreviousFrameWindow = g.ActiveIdWindow; + g.ActiveIdPreviousFrameHasBeenEditedBefore = g.ActiveIdHasBeenEditedBefore; + g.ActiveIdIsAlive = 0; + g.ActiveIdHasBeenEditedThisFrame = false; + g.ActiveIdPreviousFrameIsAlive = false; + g.ActiveIdIsJustActivated = false; + if (g.TempInputId != 0 && g.ActiveId != g.TempInputId) + g.TempInputId = 0; + if (g.ActiveId == 0) + { + g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + g.ActiveIdUsingNavInputMask = 0x00; +#endif + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (g.ActiveId == 0) + g.ActiveIdUsingNavInputMask = 0; + else if (g.ActiveIdUsingNavInputMask != 0) + { + // If your custom widget code used: { g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel); } + // Since IMGUI_VERSION_NUM >= 18804 it should be: { SetKeyOwner(ImGuiKey_Escape, g.ActiveId); SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId); } + if (g.ActiveIdUsingNavInputMask & (1 << ImGuiNavInput_Cancel)) + SetKeyOwner(ImGuiKey_Escape, g.ActiveId); + if (g.ActiveIdUsingNavInputMask & ~(1 << ImGuiNavInput_Cancel)) + IM_ASSERT(0); // Other values unsupported + } +#endif + + // Record when we have been stationary as this state is preserved while over same item. + // FIXME: The way this is expressed means user cannot alter HoverStationaryDelay during the frame to use varying values. + // To allow this we should store HoverItemMaxStationaryTime+ID and perform the >= check in IsItemHovered() function. + if (g.HoverItemDelayId != 0 && g.MouseStationaryTimer >= g.Style.HoverStationaryDelay) + g.HoverItemUnlockedStationaryId = g.HoverItemDelayId; + else if (g.HoverItemDelayId == 0) + g.HoverItemUnlockedStationaryId = 0; + if (g.HoveredWindow != NULL && g.MouseStationaryTimer >= g.Style.HoverStationaryDelay) + g.HoverWindowUnlockedStationaryId = g.HoveredWindow->ID; + else if (g.HoveredWindow == NULL) + g.HoverWindowUnlockedStationaryId = 0; + + // Update hover delay for IsItemHovered() with delays and tooltips + g.HoverItemDelayIdPreviousFrame = g.HoverItemDelayId; + if (g.HoverItemDelayId != 0) + { + g.HoverItemDelayTimer += g.IO.DeltaTime; + g.HoverItemDelayClearTimer = 0.0f; + g.HoverItemDelayId = 0; + } + else if (g.HoverItemDelayTimer > 0.0f) + { + // This gives a little bit of leeway before clearing the hover timer, allowing mouse to cross gaps + // We could expose 0.25f as style.HoverClearDelay but I am not sure of the logic yet, this is particularly subtle. + g.HoverItemDelayClearTimer += g.IO.DeltaTime; + if (g.HoverItemDelayClearTimer >= ImMax(0.25f, g.IO.DeltaTime * 2.0f)) // ~7 frames at 30 Hz + allow for low framerate + g.HoverItemDelayTimer = g.HoverItemDelayClearTimer = 0.0f; // May want a decaying timer, in which case need to clamp at max first, based on max of caller last requested timer. + } + + // Drag and drop + g.DragDropAcceptIdPrev = g.DragDropAcceptIdCurr; + g.DragDropAcceptIdCurr = 0; + g.DragDropAcceptIdCurrRectSurface = FLT_MAX; + g.DragDropWithinSource = false; + g.DragDropWithinTarget = false; + g.DragDropHoldJustPressedId = 0; + + // Close popups on focus lost (currently wip/opt-in) + //if (g.IO.AppFocusLost) + // ClosePopupsExceptModals(); + + // Update keyboard input state + UpdateKeyboardInputs(); + + //IM_ASSERT(g.IO.KeyCtrl == IsKeyDown(ImGuiKey_LeftCtrl) || IsKeyDown(ImGuiKey_RightCtrl)); + //IM_ASSERT(g.IO.KeyShift == IsKeyDown(ImGuiKey_LeftShift) || IsKeyDown(ImGuiKey_RightShift)); + //IM_ASSERT(g.IO.KeyAlt == IsKeyDown(ImGuiKey_LeftAlt) || IsKeyDown(ImGuiKey_RightAlt)); + //IM_ASSERT(g.IO.KeySuper == IsKeyDown(ImGuiKey_LeftSuper) || IsKeyDown(ImGuiKey_RightSuper)); + + // Update gamepad/keyboard navigation + NavUpdate(); + + // Update mouse input state + UpdateMouseInputs(); + + // Undocking + // (needs to be before UpdateMouseMovingWindowNewFrame so the window is already offset and following the mouse on the detaching frame) + DockContextNewFrameUpdateUndocking(&g); + + // Find hovered window + // (needs to be before UpdateMouseMovingWindowNewFrame so we fill g.HoveredWindowUnderMovingWindow on the mouse release frame) + UpdateHoveredWindowAndCaptureFlags(); + + // Handle user moving window with mouse (at the beginning of the frame to avoid input lag or sheering) + UpdateMouseMovingWindowNewFrame(); + + // Background darkening/whitening + if (GetTopMostPopupModal() != NULL || (g.NavWindowingTarget != NULL && g.NavWindowingHighlightAlpha > 0.0f)) + g.DimBgRatio = ImMin(g.DimBgRatio + g.IO.DeltaTime * 6.0f, 1.0f); + else + g.DimBgRatio = ImMax(g.DimBgRatio - g.IO.DeltaTime * 10.0f, 0.0f); + + g.MouseCursor = ImGuiMouseCursor_Arrow; + g.WantCaptureMouseNextFrame = g.WantCaptureKeyboardNextFrame = g.WantTextInputNextFrame = -1; + + // Platform IME data: reset for the frame + g.PlatformImeDataPrev = g.PlatformImeData; + g.PlatformImeData.WantVisible = false; + + // Mouse wheel scrolling, scale + UpdateMouseWheel(); + + // Mark all windows as not visible and compact unused memory. + IM_ASSERT(g.WindowsFocusOrder.Size <= g.Windows.Size); + const float memory_compact_start_time = (g.GcCompactAll || g.IO.ConfigMemoryCompactTimer < 0.0f) ? FLT_MAX : (float)g.Time - g.IO.ConfigMemoryCompactTimer; + for (ImGuiWindow* window : g.Windows) + { + window->WasActive = window->Active; + window->Active = false; + window->WriteAccessed = false; + window->BeginCountPreviousFrame = window->BeginCount; + window->BeginCount = 0; + + // Garbage collect transient buffers of recently unused windows + if (!window->WasActive && !window->MemoryCompacted && window->LastTimeActive < memory_compact_start_time) + GcCompactTransientWindowBuffers(window); + } + + // Garbage collect transient buffers of recently unused tables + for (int i = 0; i < g.TablesLastTimeActive.Size; i++) + if (g.TablesLastTimeActive[i] >= 0.0f && g.TablesLastTimeActive[i] < memory_compact_start_time) + TableGcCompactTransientBuffers(g.Tables.GetByIndex(i)); + for (ImGuiTableTempData& table_temp_data : g.TablesTempData) + if (table_temp_data.LastTimeActive >= 0.0f && table_temp_data.LastTimeActive < memory_compact_start_time) + TableGcCompactTransientBuffers(&table_temp_data); + if (g.GcCompactAll) + GcCompactTransientMiscBuffers(); + g.GcCompactAll = false; + + // Closing the focused window restore focus to the first active root window in descending z-order + if (g.NavWindow && !g.NavWindow->WasActive) + FocusTopMostWindowUnderOne(NULL, NULL, NULL, ImGuiFocusRequestFlags_RestoreFocusedChild); + + // No window should be open at the beginning of the frame. + // But in order to allow the user to call NewFrame() multiple times without calling Render(), we are doing an explicit clear. + g.CurrentWindowStack.resize(0); + g.BeginPopupStack.resize(0); + g.ItemFlagsStack.resize(0); + g.ItemFlagsStack.push_back(ImGuiItemFlags_None); + g.GroupStack.resize(0); + + // Docking + DockContextNewFrameUpdateDocking(&g); + + // [DEBUG] Update debug features + UpdateDebugToolItemPicker(); + UpdateDebugToolStackQueries(); + if (g.DebugLocateFrames > 0 && --g.DebugLocateFrames == 0) + g.DebugLocateId = 0; + if (g.DebugLogClipperAutoDisableFrames > 0 && --g.DebugLogClipperAutoDisableFrames == 0) + { + DebugLog("(Auto-disabled ImGuiDebugLogFlags_EventClipper to avoid spamming)\n"); + g.DebugLogFlags &= ~ImGuiDebugLogFlags_EventClipper; + } + + // Create implicit/fallback window - which we will only render it if the user has added something to it. + // We don't use "Debug" to avoid colliding with user trying to create a "Debug" window with custom flags. + // This fallback is particularly important as it prevents ImGui:: calls from crashing. + g.WithinFrameScopeWithImplicitWindow = true; + SetNextWindowSize(ImVec2(400, 400), ImGuiCond_FirstUseEver); + Begin("Debug##Default"); + IM_ASSERT(g.CurrentWindow->IsFallbackWindow == true); + + // [DEBUG] When io.ConfigDebugBeginReturnValue is set, we make Begin()/BeginChild() return false at different level of the window-stack, + // allowing to validate correct Begin/End behavior in user code. + if (g.IO.ConfigDebugBeginReturnValueLoop) + g.DebugBeginReturnValueCullDepth = (g.DebugBeginReturnValueCullDepth == -1) ? 0 : ((g.DebugBeginReturnValueCullDepth + ((g.FrameCount % 4) == 0 ? 1 : 0)) % 10); + else + g.DebugBeginReturnValueCullDepth = -1; + + CallContextHooks(&g, ImGuiContextHookType_NewFramePost); +} + +// FIXME: Add a more explicit sort order in the window structure. +static int IMGUI_CDECL ChildWindowComparer(const void* lhs, const void* rhs) +{ + const ImGuiWindow* const a = *(const ImGuiWindow* const *)lhs; + const ImGuiWindow* const b = *(const ImGuiWindow* const *)rhs; + if (int d = (a->Flags & ImGuiWindowFlags_Popup) - (b->Flags & ImGuiWindowFlags_Popup)) + return d; + if (int d = (a->Flags & ImGuiWindowFlags_Tooltip) - (b->Flags & ImGuiWindowFlags_Tooltip)) + return d; + return (a->BeginOrderWithinParent - b->BeginOrderWithinParent); +} + +static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window) +{ + out_sorted_windows->push_back(window); + if (window->Active) + { + int count = window->DC.ChildWindows.Size; + ImQsort(window->DC.ChildWindows.Data, (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer); + for (int i = 0; i < count; i++) + { + ImGuiWindow* child = window->DC.ChildWindows[i]; + if (child->Active) + AddWindowToSortBuffer(out_sorted_windows, child); + } + } +} + +static void AddWindowToDrawData(ImGuiWindow* window, int layer) +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = window->Viewport; + IM_ASSERT(viewport != NULL); + g.IO.MetricsRenderWindows++; + if (window->DrawList->_Splitter._Count > 1) + window->DrawList->ChannelsMerge(); // Merge if user forgot to merge back. Also required in Docking branch for ImGuiWindowFlags_DockNodeHost windows. + ImGui::AddDrawListToDrawDataEx(&viewport->DrawDataP, viewport->DrawDataBuilder.Layers[layer], window->DrawList); + for (ImGuiWindow* child : window->DC.ChildWindows) + if (IsWindowActiveAndVisible(child)) // Clipped children may have been marked not active + AddWindowToDrawData(child, layer); +} + +static inline int GetWindowDisplayLayer(ImGuiWindow* window) +{ + return (window->Flags & ImGuiWindowFlags_Tooltip) ? 1 : 0; +} + +// Layer is locked for the root window, however child windows may use a different viewport (e.g. extruding menu) +static inline void AddRootWindowToDrawData(ImGuiWindow* window) +{ + AddWindowToDrawData(window, GetWindowDisplayLayer(window)); +} + +static void FlattenDrawDataIntoSingleLayer(ImDrawDataBuilder* builder) +{ + int n = builder->Layers[0]->Size; + int full_size = n; + for (int i = 1; i < IM_ARRAYSIZE(builder->Layers); i++) + full_size += builder->Layers[i]->Size; + builder->Layers[0]->resize(full_size); + for (int layer_n = 1; layer_n < IM_ARRAYSIZE(builder->Layers); layer_n++) + { + ImVector* layer = builder->Layers[layer_n]; + if (layer->empty()) + continue; + memcpy(builder->Layers[0]->Data + n, layer->Data, layer->Size * sizeof(ImDrawList*)); + n += layer->Size; + layer->resize(0); + } +} + +static void InitViewportDrawData(ImGuiViewportP* viewport) +{ + ImGuiIO& io = ImGui::GetIO(); + ImDrawData* draw_data = &viewport->DrawDataP; + + viewport->DrawData = draw_data; // Make publicly accessible + viewport->DrawDataBuilder.Layers[0] = &draw_data->CmdLists; + viewport->DrawDataBuilder.Layers[1] = &viewport->DrawDataBuilder.LayerData1; + viewport->DrawDataBuilder.Layers[0]->resize(0); + viewport->DrawDataBuilder.Layers[1]->resize(0); + + // When minimized, we report draw_data->DisplaySize as zero to be consistent with non-viewport mode, + // and to allow applications/backends to easily skip rendering. + // FIXME: Note that we however do NOT attempt to report "zero drawlist / vertices" into the ImDrawData structure. + // This is because the work has been done already, and its wasted! We should fix that and add optimizations for + // it earlier in the pipeline, rather than pretend to hide the data at the end of the pipeline. + const bool is_minimized = (viewport->Flags & ImGuiViewportFlags_IsMinimized) != 0; + + draw_data->Valid = true; + draw_data->CmdListsCount = 0; + draw_data->TotalVtxCount = draw_data->TotalIdxCount = 0; + draw_data->DisplayPos = viewport->Pos; + draw_data->DisplaySize = is_minimized ? ImVec2(0.0f, 0.0f) : viewport->Size; + draw_data->FramebufferScale = io.DisplayFramebufferScale; // FIXME-VIEWPORT: This may vary on a per-monitor/viewport basis? + draw_data->OwnerViewport = viewport; +} + +// Push a clipping rectangle for both ImGui logic (hit-testing etc.) and low-level ImDrawList rendering. +// - When using this function it is sane to ensure that float are perfectly rounded to integer values, +// so that e.g. (int)(max.x-min.x) in user's render produce correct result. +// - If the code here changes, may need to update code of functions like NextColumn() and PushColumnClipRect(): +// some frequently called functions which to modify both channels and clipping simultaneously tend to use the +// more specialized SetWindowClipRectBeforeSetChannel() to avoid extraneous updates of underlying ImDrawCmds. +void ImGui::PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DrawList->PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect); + window->ClipRect = window->DrawList->_ClipRectStack.back(); +} + +void ImGui::PopClipRect() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DrawList->PopClipRect(); + window->ClipRect = window->DrawList->_ClipRectStack.back(); +} + +static ImGuiWindow* FindFrontMostVisibleChildWindow(ImGuiWindow* window) +{ + for (int n = window->DC.ChildWindows.Size - 1; n >= 0; n--) + if (IsWindowActiveAndVisible(window->DC.ChildWindows[n])) + return FindFrontMostVisibleChildWindow(window->DC.ChildWindows[n]); + return window; +} + +static void ImGui::RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + ImGuiViewportP* viewport = window->Viewport; + ImRect viewport_rect = viewport->GetMainRect(); + + // Draw behind window by moving the draw command at the FRONT of the draw list + { + // Draw list have been trimmed already, hence the explicit recreation of a draw command if missing. + // FIXME: This is creating complication, might be simpler if we could inject a drawlist in drawdata at a given position and not attempt to manipulate ImDrawCmd order. + ImDrawList* draw_list = window->RootWindowDockTree->DrawList; + draw_list->ChannelsMerge(); + if (draw_list->CmdBuffer.Size == 0) + draw_list->AddDrawCmd(); + draw_list->PushClipRect(viewport_rect.Min - ImVec2(1, 1), viewport_rect.Max + ImVec2(1, 1), false); // FIXME: Need to stricty ensure ImDrawCmd are not merged (ElemCount==6 checks below will verify that) + draw_list->AddRectFilled(viewport_rect.Min, viewport_rect.Max, col); + ImDrawCmd cmd = draw_list->CmdBuffer.back(); + IM_ASSERT(cmd.ElemCount == 6); + draw_list->CmdBuffer.pop_back(); + draw_list->CmdBuffer.push_front(cmd); + draw_list->AddDrawCmd(); // We need to create a command as CmdBuffer.back().IdxOffset won't be correct if we append to same command. + draw_list->PopClipRect(); + } + + // Draw over sibling docking nodes in a same docking tree + if (window->RootWindow->DockIsActive) + { + ImDrawList* draw_list = FindFrontMostVisibleChildWindow(window->RootWindowDockTree)->DrawList; + draw_list->ChannelsMerge(); + if (draw_list->CmdBuffer.Size == 0) + draw_list->AddDrawCmd(); + draw_list->PushClipRect(viewport_rect.Min, viewport_rect.Max, false); + RenderRectFilledWithHole(draw_list, window->RootWindowDockTree->Rect(), window->RootWindow->Rect(), col, 0.0f);// window->RootWindowDockTree->WindowRounding); + draw_list->PopClipRect(); + } +} + +ImGuiWindow* ImGui::FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* parent_window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* bottom_most_visible_window = parent_window; + for (int i = FindWindowDisplayIndex(parent_window); i >= 0; i--) + { + ImGuiWindow* window = g.Windows[i]; + if (window->Flags & ImGuiWindowFlags_ChildWindow) + continue; + if (!IsWindowWithinBeginStackOf(window, parent_window)) + break; + if (IsWindowActiveAndVisible(window) && GetWindowDisplayLayer(window) <= GetWindowDisplayLayer(parent_window)) + bottom_most_visible_window = window; + } + return bottom_most_visible_window; +} + +// Important: AddWindowToDrawData() has not been called yet, meaning DockNodeHost windows needs a DrawList->ChannelsMerge() before usage. +// We call ChannelsMerge() lazily here at it is faster that doing a full iteration of g.Windows[] prior to calling RenderDimmedBackgrounds(). +static void ImGui::RenderDimmedBackgrounds() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* modal_window = GetTopMostAndVisiblePopupModal(); + if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) + return; + const bool dim_bg_for_modal = (modal_window != NULL); + const bool dim_bg_for_window_list = (g.NavWindowingTargetAnim != NULL && g.NavWindowingTargetAnim->Active); + if (!dim_bg_for_modal && !dim_bg_for_window_list) + return; + + ImGuiViewport* viewports_already_dimmed[2] = { NULL, NULL }; + if (dim_bg_for_modal) + { + // Draw dimming behind modal or a begin stack child, whichever comes first in draw order. + ImGuiWindow* dim_behind_window = FindBottomMostVisibleWindowWithinBeginStack(modal_window); + RenderDimmedBackgroundBehindWindow(dim_behind_window, GetColorU32(ImGuiCol_ModalWindowDimBg, g.DimBgRatio)); + viewports_already_dimmed[0] = modal_window->Viewport; + } + else if (dim_bg_for_window_list) + { + // Draw dimming behind CTRL+Tab target window and behind CTRL+Tab UI window + RenderDimmedBackgroundBehindWindow(g.NavWindowingTargetAnim, GetColorU32(ImGuiCol_NavWindowingDimBg, g.DimBgRatio)); + if (g.NavWindowingListWindow != NULL && g.NavWindowingListWindow->Viewport && g.NavWindowingListWindow->Viewport != g.NavWindowingTargetAnim->Viewport) + RenderDimmedBackgroundBehindWindow(g.NavWindowingListWindow, GetColorU32(ImGuiCol_NavWindowingDimBg, g.DimBgRatio)); + viewports_already_dimmed[0] = g.NavWindowingTargetAnim->Viewport; + viewports_already_dimmed[1] = g.NavWindowingListWindow ? g.NavWindowingListWindow->Viewport : NULL; + + // Draw border around CTRL+Tab target window + ImGuiWindow* window = g.NavWindowingTargetAnim; + ImGuiViewport* viewport = window->Viewport; + float distance = g.FontSize; + ImRect bb = window->Rect(); + bb.Expand(distance); + if (bb.GetWidth() >= viewport->Size.x && bb.GetHeight() >= viewport->Size.y) + bb.Expand(-distance - 1.0f); // If a window fits the entire viewport, adjust its highlight inward + window->DrawList->ChannelsMerge(); + if (window->DrawList->CmdBuffer.Size == 0) + window->DrawList->AddDrawCmd(); + window->DrawList->PushClipRect(viewport->Pos, viewport->Pos + viewport->Size); + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_NavWindowingHighlight, g.NavWindowingHighlightAlpha), window->WindowRounding, 0, 3.0f); + window->DrawList->PopClipRect(); + } + + // Draw dimming background on _other_ viewports than the ones our windows are in + for (ImGuiViewportP* viewport : g.Viewports) + { + if (viewport == viewports_already_dimmed[0] || viewport == viewports_already_dimmed[1]) + continue; + if (modal_window && viewport->Window && IsWindowAbove(viewport->Window, modal_window)) + continue; + ImDrawList* draw_list = GetForegroundDrawList(viewport); + const ImU32 dim_bg_col = GetColorU32(dim_bg_for_modal ? ImGuiCol_ModalWindowDimBg : ImGuiCol_NavWindowingDimBg, g.DimBgRatio); + draw_list->AddRectFilled(viewport->Pos, viewport->Pos + viewport->Size, dim_bg_col); + } +} + +// This is normally called by Render(). You may want to call it directly if you want to avoid calling Render() but the gain will be very minimal. +void ImGui::EndFrame() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + + // Don't process EndFrame() multiple times. + if (g.FrameCountEnded == g.FrameCount) + return; + IM_ASSERT(g.WithinFrameScope && "Forgot to call ImGui::NewFrame()?"); + + CallContextHooks(&g, ImGuiContextHookType_EndFramePre); + + ErrorCheckEndFrameSanityChecks(); + + // Notify Platform/OS when our Input Method Editor cursor has moved (e.g. CJK inputs using Microsoft IME) + ImGuiPlatformImeData* ime_data = &g.PlatformImeData; + if (g.IO.SetPlatformImeDataFn && memcmp(ime_data, &g.PlatformImeDataPrev, sizeof(ImGuiPlatformImeData)) != 0) + { + ImGuiViewport* viewport = FindViewportByID(g.PlatformImeViewport); + IMGUI_DEBUG_LOG_IO("[io] Calling io.SetPlatformImeDataFn(): WantVisible: %d, InputPos (%.2f,%.2f)\n", ime_data->WantVisible, ime_data->InputPos.x, ime_data->InputPos.y); + if (viewport == NULL) + viewport = GetMainViewport(); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (viewport->PlatformHandleRaw == NULL && g.IO.ImeWindowHandle != NULL) + { + viewport->PlatformHandleRaw = g.IO.ImeWindowHandle; + g.IO.SetPlatformImeDataFn(viewport, ime_data); + viewport->PlatformHandleRaw = NULL; + } + else +#endif + { + g.IO.SetPlatformImeDataFn(viewport, ime_data); + } + } + + // Hide implicit/fallback "Debug" window if it hasn't been used + g.WithinFrameScopeWithImplicitWindow = false; + if (g.CurrentWindow && !g.CurrentWindow->WriteAccessed) + g.CurrentWindow->Active = false; + End(); + + // Update navigation: CTRL+Tab, wrap-around requests + NavEndFrame(); + + // Update docking + DockContextEndFrame(&g); + + SetCurrentViewport(NULL, NULL); + + // Drag and Drop: Elapse payload (if delivered, or if source stops being submitted) + if (g.DragDropActive) + { + bool is_delivered = g.DragDropPayload.Delivery; + bool is_elapsed = (g.DragDropPayload.DataFrameCount + 1 < g.FrameCount) && ((g.DragDropSourceFlags & ImGuiDragDropFlags_SourceAutoExpirePayload) || !IsMouseDown(g.DragDropMouseButton)); + if (is_delivered || is_elapsed) + ClearDragDrop(); + } + + // Drag and Drop: Fallback for source tooltip. This is not ideal but better than nothing. + if (g.DragDropActive && g.DragDropSourceFrameCount < g.FrameCount && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + { + g.DragDropWithinSource = true; + SetTooltip("..."); + g.DragDropWithinSource = false; + } + + // End frame + g.WithinFrameScope = false; + g.FrameCountEnded = g.FrameCount; + + // Initiate moving window + handle left-click and right-click focus + UpdateMouseMovingWindowEndFrame(); + + // Update user-facing viewport list (g.Viewports -> g.PlatformIO.Viewports after filtering out some) + UpdateViewportsEndFrame(); + + // Sort the window list so that all child windows are after their parent + // We cannot do that on FocusWindow() because children may not exist yet + g.WindowsTempSortBuffer.resize(0); + g.WindowsTempSortBuffer.reserve(g.Windows.Size); + for (ImGuiWindow* window : g.Windows) + { + if (window->Active && (window->Flags & ImGuiWindowFlags_ChildWindow)) // if a child is active its parent will add it + continue; + AddWindowToSortBuffer(&g.WindowsTempSortBuffer, window); + } + + // This usually assert if there is a mismatch between the ImGuiWindowFlags_ChildWindow / ParentWindow values and DC.ChildWindows[] in parents, aka we've done something wrong. + IM_ASSERT(g.Windows.Size == g.WindowsTempSortBuffer.Size); + g.Windows.swap(g.WindowsTempSortBuffer); + g.IO.MetricsActiveWindows = g.WindowsActiveCount; + + // Unlock font atlas + g.IO.Fonts->Locked = false; + + // Clear Input data for next frame + g.IO.MousePosPrev = g.IO.MousePos; + g.IO.AppFocusLost = false; + g.IO.MouseWheel = g.IO.MouseWheelH = 0.0f; + g.IO.InputQueueCharacters.resize(0); + + CallContextHooks(&g, ImGuiContextHookType_EndFramePost); +} + +// Prepare the data for rendering so you can call GetDrawData() +// (As with anything within the ImGui:: namspace this doesn't touch your GPU or graphics API at all: +// it is the role of the ImGui_ImplXXXX_RenderDrawData() function provided by the renderer backend) +void ImGui::Render() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + + if (g.FrameCountEnded != g.FrameCount) + EndFrame(); + if (g.FrameCountRendered == g.FrameCount) + return; + g.FrameCountRendered = g.FrameCount; + + g.IO.MetricsRenderWindows = 0; + CallContextHooks(&g, ImGuiContextHookType_RenderPre); + + // Add background ImDrawList (for each active viewport) + for (ImGuiViewportP* viewport : g.Viewports) + { + InitViewportDrawData(viewport); + if (viewport->BgFgDrawLists[0] != NULL) + AddDrawListToDrawDataEx(&viewport->DrawDataP, viewport->DrawDataBuilder.Layers[0], GetBackgroundDrawList(viewport)); + } + + // Draw modal/window whitening backgrounds + RenderDimmedBackgrounds(); + + // Add ImDrawList to render + ImGuiWindow* windows_to_render_top_most[2]; + windows_to_render_top_most[0] = (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoBringToFrontOnFocus)) ? g.NavWindowingTarget->RootWindowDockTree : NULL; + windows_to_render_top_most[1] = (g.NavWindowingTarget ? g.NavWindowingListWindow : NULL); + for (ImGuiWindow* window : g.Windows) + { + IM_MSVC_WARNING_SUPPRESS(6011); // Static Analysis false positive "warning C6011: Dereferencing NULL pointer 'window'" + if (IsWindowActiveAndVisible(window) && (window->Flags & ImGuiWindowFlags_ChildWindow) == 0 && window != windows_to_render_top_most[0] && window != windows_to_render_top_most[1]) + AddRootWindowToDrawData(window); + } + for (int n = 0; n < IM_ARRAYSIZE(windows_to_render_top_most); n++) + if (windows_to_render_top_most[n] && IsWindowActiveAndVisible(windows_to_render_top_most[n])) // NavWindowingTarget is always temporarily displayed as the top-most window + AddRootWindowToDrawData(windows_to_render_top_most[n]); + + // Draw software mouse cursor if requested by io.MouseDrawCursor flag + if (g.IO.MouseDrawCursor && g.MouseCursor != ImGuiMouseCursor_None) + RenderMouseCursor(g.IO.MousePos, g.Style.MouseCursorScale, g.MouseCursor, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32(0, 0, 0, 48)); + + // Setup ImDrawData structures for end-user + g.IO.MetricsRenderVertices = g.IO.MetricsRenderIndices = 0; + for (ImGuiViewportP* viewport : g.Viewports) + { + FlattenDrawDataIntoSingleLayer(&viewport->DrawDataBuilder); + + // Add foreground ImDrawList (for each active viewport) + if (viewport->BgFgDrawLists[1] != NULL) + AddDrawListToDrawDataEx(&viewport->DrawDataP, viewport->DrawDataBuilder.Layers[0], GetForegroundDrawList(viewport)); + + // We call _PopUnusedDrawCmd() last thing, as RenderDimmedBackgrounds() rely on a valid command being there (especially in docking branch). + ImDrawData* draw_data = &viewport->DrawDataP; + IM_ASSERT(draw_data->CmdLists.Size == draw_data->CmdListsCount); + for (ImDrawList* draw_list : draw_data->CmdLists) + draw_list->_PopUnusedDrawCmd(); + + g.IO.MetricsRenderVertices += draw_data->TotalVtxCount; + g.IO.MetricsRenderIndices += draw_data->TotalIdxCount; + } + + CallContextHooks(&g, ImGuiContextHookType_RenderPost); +} + +// Calculate text size. Text can be multi-line. Optionally ignore text after a ## marker. +// CalcTextSize("") should return ImVec2(0.0f, g.FontSize) +ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width) +{ + ImGuiContext& g = *GImGui; + + const char* text_display_end; + if (hide_text_after_double_hash) + text_display_end = FindRenderedTextEnd(text, text_end); // Hide anything after a '##' string + else + text_display_end = text_end; + + ImFont* font = g.Font; + const float font_size = g.FontSize; + if (text == text_display_end) + return ImVec2(0.0f, font_size); + ImVec2 text_size = font->CalcTextSizeA(font_size, FLT_MAX, wrap_width, text, text_display_end, NULL); + + // Round + // FIXME: This has been here since Dec 2015 (7b0bf230) but down the line we want this out. + // FIXME: Investigate using ceilf or e.g. + // - https://git.musl-libc.org/cgit/musl/tree/src/math/ceilf.c + // - https://embarkstudios.github.io/rust-gpu/api/src/libm/math/ceilf.rs.html + text_size.x = IM_TRUNC(text_size.x + 0.99999f); + + return text_size; +} + +// Find window given position, search front-to-back +// FIXME: Note that we have an inconsequential lag here: OuterRectClipped is updated in Begin(), so windows moved programmatically +// with SetWindowPos() and not SetNextWindowPos() will have that rectangle lagging by a frame at the time FindHoveredWindow() is +// called, aka before the next Begin(). Moving window isn't affected. +static void FindHoveredWindow() +{ + ImGuiContext& g = *GImGui; + + // Special handling for the window being moved: Ignore the mouse viewport check (because it may reset/lose its viewport during the undocking frame) + ImGuiViewportP* moving_window_viewport = g.MovingWindow ? g.MovingWindow->Viewport : NULL; + if (g.MovingWindow) + g.MovingWindow->Viewport = g.MouseViewport; + + ImGuiWindow* hovered_window = NULL; + ImGuiWindow* hovered_window_ignoring_moving_window = NULL; + if (g.MovingWindow && !(g.MovingWindow->Flags & ImGuiWindowFlags_NoMouseInputs)) + hovered_window = g.MovingWindow; + + ImVec2 padding_regular = g.Style.TouchExtraPadding; + ImVec2 padding_for_resize = g.IO.ConfigWindowsResizeFromEdges ? g.WindowsHoverPadding : padding_regular; + for (int i = g.Windows.Size - 1; i >= 0; i--) + { + ImGuiWindow* window = g.Windows[i]; + IM_MSVC_WARNING_SUPPRESS(28182); // [Static Analyzer] Dereferencing NULL pointer. + if (!window->Active || window->Hidden) + continue; + if (window->Flags & ImGuiWindowFlags_NoMouseInputs) + continue; + IM_ASSERT(window->Viewport); + if (window->Viewport != g.MouseViewport) + continue; + + // Using the clipped AABB, a child window will typically be clipped by its parent (not always) + ImVec2 hit_padding = (window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize)) ? padding_regular : padding_for_resize; + if (!window->OuterRectClipped.ContainsWithPad(g.IO.MousePos, hit_padding)) + continue; + + // Support for one rectangular hole in any given window + // FIXME: Consider generalizing hit-testing override (with more generic data, callback, etc.) (#1512) + if (window->HitTestHoleSize.x != 0) + { + ImVec2 hole_pos(window->Pos.x + (float)window->HitTestHoleOffset.x, window->Pos.y + (float)window->HitTestHoleOffset.y); + ImVec2 hole_size((float)window->HitTestHoleSize.x, (float)window->HitTestHoleSize.y); + if (ImRect(hole_pos, hole_pos + hole_size).Contains(g.IO.MousePos)) + continue; + } + + if (hovered_window == NULL) + hovered_window = window; + IM_MSVC_WARNING_SUPPRESS(28182); // [Static Analyzer] Dereferencing NULL pointer. + if (hovered_window_ignoring_moving_window == NULL && (!g.MovingWindow || window->RootWindowDockTree != g.MovingWindow->RootWindowDockTree)) + hovered_window_ignoring_moving_window = window; + if (hovered_window && hovered_window_ignoring_moving_window) + break; + } + + g.HoveredWindow = hovered_window; + g.HoveredWindowUnderMovingWindow = hovered_window_ignoring_moving_window; + + if (g.MovingWindow) + g.MovingWindow->Viewport = moving_window_viewport; +} + +bool ImGui::IsItemActive() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId) + return g.ActiveId == g.LastItemData.ID; + return false; +} + +bool ImGui::IsItemActivated() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId) + if (g.ActiveId == g.LastItemData.ID && g.ActiveIdPreviousFrame != g.LastItemData.ID) + return true; + return false; +} + +bool ImGui::IsItemDeactivated() +{ + ImGuiContext& g = *GImGui; + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HasDeactivated) + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Deactivated) != 0; + return (g.ActiveIdPreviousFrame == g.LastItemData.ID && g.ActiveIdPreviousFrame != 0 && g.ActiveId != g.LastItemData.ID); +} + +bool ImGui::IsItemDeactivatedAfterEdit() +{ + ImGuiContext& g = *GImGui; + return IsItemDeactivated() && (g.ActiveIdPreviousFrameHasBeenEditedBefore || (g.ActiveId == 0 && g.ActiveIdHasBeenEditedBefore)); +} + +// == GetItemID() == GetFocusID() +bool ImGui::IsItemFocused() +{ + ImGuiContext& g = *GImGui; + if (g.NavId != g.LastItemData.ID || g.NavId == 0) + return false; + + // Special handling for the dummy item after Begin() which represent the title bar or tab. + // When the window is collapsed (SkipItems==true) that last item will never be overwritten so we need to detect the case. + ImGuiWindow* window = g.CurrentWindow; + if (g.LastItemData.ID == window->ID && window->WriteAccessed) + return false; + + return true; +} + +// Important: this can be useful but it is NOT equivalent to the behavior of e.g.Button()! +// Most widgets have specific reactions based on mouse-up/down state, mouse position etc. +bool ImGui::IsItemClicked(ImGuiMouseButton mouse_button) +{ + return IsMouseClicked(mouse_button) && IsItemHovered(ImGuiHoveredFlags_None); +} + +bool ImGui::IsItemToggledOpen() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_ToggledOpen) ? true : false; +} + +bool ImGui::IsItemToggledSelection() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_ToggledSelection) ? true : false; +} + +bool ImGui::IsAnyItemHovered() +{ + ImGuiContext& g = *GImGui; + return g.HoveredId != 0 || g.HoveredIdPreviousFrame != 0; +} + +bool ImGui::IsAnyItemActive() +{ + ImGuiContext& g = *GImGui; + return g.ActiveId != 0; +} + +bool ImGui::IsAnyItemFocused() +{ + ImGuiContext& g = *GImGui; + return g.NavId != 0 && !g.NavDisableHighlight; +} + +bool ImGui::IsItemVisible() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) != 0; +} + +bool ImGui::IsItemEdited() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Edited) != 0; +} + +// Allow next item to be overlapped by subsequent items. +// This works by requiring HoveredId to match for two subsequent frames, +// so if a following items overwrite it our interactions will naturally be disabled. +void ImGui::SetNextItemAllowOverlap() +{ + ImGuiContext& g = *GImGui; + g.NextItemData.ItemFlags |= ImGuiItemFlags_AllowOverlap; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Allow last item to be overlapped by a subsequent item. Both may be activated during the same frame before the later one takes priority. +// FIXME-LEGACY: Use SetNextItemAllowOverlap() *before* your item instead. +void ImGui::SetItemAllowOverlap() +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.LastItemData.ID; + if (g.HoveredId == id) + g.HoveredIdAllowOverlap = true; + if (g.ActiveId == id) // Before we made this obsolete, most calls to SetItemAllowOverlap() used to avoid this path by testing g.ActiveId != id. + g.ActiveIdAllowOverlap = true; +} +#endif + +// FIXME: It might be undesirable that this will likely disable KeyOwner-aware shortcuts systems. Consider a more fine-tuned version for the two users of this function. +void ImGui::SetActiveIdUsingAllKeyboardKeys() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ActiveId != 0); + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_COUNT) - 1; + g.ActiveIdUsingAllKeyboardKeys = true; + NavMoveRequestCancel(); +} + +ImGuiID ImGui::GetItemID() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.ID; +} + +ImVec2 ImGui::GetItemRectMin() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.Min; +} + +ImVec2 ImGui::GetItemRectMax() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.Max; +} + +ImVec2 ImGui::GetItemRectSize() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.GetSize(); +} + +bool ImGui::BeginChild(const char* str_id, const ImVec2& size_arg, bool border, ImGuiWindowFlags window_flags) +{ + ImGuiID id = GetCurrentWindow()->GetID(str_id); + return BeginChildEx(str_id, id, size_arg, border, window_flags); +} + +bool ImGui::BeginChild(ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags window_flags) +{ + IM_ASSERT(id != 0); + return BeginChildEx(NULL, id, size_arg, border, window_flags); +} + +bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags window_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* parent_window = g.CurrentWindow; + window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoDocking; + window_flags |= (parent_window->Flags & ImGuiWindowFlags_NoMove); // Inherit the NoMove flag + + // Size + const ImVec2 content_avail = GetContentRegionAvail(); + ImVec2 size = ImTrunc(size_arg); + if (size.x <= 0.0f) + size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too many issues) + if (size.y <= 0.0f) + size.y = ImMax(content_avail.y + size.y, 4.0f); + SetNextWindowSize(size); + + // Build up name. If you need to append to a same child from multiple location in the ID stack, use BeginChild(ImGuiID id) with a stable value. + const char* temp_window_name; + if (name) + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%s_%08X", parent_window->Name, name, id); + else + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%08X", parent_window->Name, id); + + const float backup_border_size = g.Style.ChildBorderSize; + if (!border) + g.Style.ChildBorderSize = 0.0f; + + // Begin into window + const bool ret = Begin(temp_window_name, NULL, window_flags); + g.Style.ChildBorderSize = backup_border_size; + + ImGuiWindow* child_window = g.CurrentWindow; + child_window->ChildId = id; + + // Set the cursor to handle case where the user called SetNextWindowPos()+BeginChild() manually. + // While this is not really documented/defined, it seems that the expected thing to do. + if (child_window->BeginCount == 1) + parent_window->DC.CursorPos = child_window->Pos; + + // Process navigation-in immediately so NavInit can run on first frame + // Can enter a child if (A) it has navigable items or (B) it can be scrolled. + const ImGuiID temp_id_for_activation = ImHashStr("##Child", 0, id); + if (g.ActiveId == temp_id_for_activation) + ClearActiveID(); + if (g.NavActivateId == id && !(window_flags & ImGuiWindowFlags_NavFlattened) && (child_window->DC.NavLayersActiveMask != 0 || child_window->DC.NavWindowHasScrollY)) + { + FocusWindow(child_window); + NavInitWindow(child_window, false); + SetActiveID(temp_id_for_activation, child_window); // Steal ActiveId with another arbitrary id so that key-press won't activate child item + g.ActiveIdSource = g.NavInputSource; + } + return ret; +} + +void ImGui::EndChild() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* child_window = g.CurrentWindow; + + IM_ASSERT(g.WithinEndChild == false); + IM_ASSERT(child_window->Flags & ImGuiWindowFlags_ChildWindow); // Mismatched BeginChild()/EndChild() calls + + g.WithinEndChild = true; + ImVec2 child_size = child_window->Size; + End(); + if (child_window->BeginCount == 1) + { + ImGuiWindow* parent_window = g.CurrentWindow; + ImRect bb(parent_window->DC.CursorPos, parent_window->DC.CursorPos + child_size); + ItemSize(child_size); + if ((child_window->DC.NavLayersActiveMask != 0 || child_window->DC.NavWindowHasScrollY) && !(child_window->Flags & ImGuiWindowFlags_NavFlattened)) + { + ItemAdd(bb, child_window->ChildId); + RenderNavHighlight(bb, child_window->ChildId); + + // When browsing a window that has no activable items (scroll only) we keep a highlight on the child (pass g.NavId to trick into always displaying) + if (child_window->DC.NavLayersActiveMask == 0 && child_window == g.NavWindow) + RenderNavHighlight(ImRect(bb.Min - ImVec2(2, 2), bb.Max + ImVec2(2, 2)), g.NavId, ImGuiNavHighlightFlags_TypeThin); + } + else + { + // Not navigable into + ItemAdd(bb, 0); + + // But when flattened we directly reach items, adjust active layer mask accordingly + if (child_window->Flags & ImGuiWindowFlags_NavFlattened) + parent_window->DC.NavLayersActiveMaskNext |= child_window->DC.NavLayersActiveMaskNext; + } + if (g.HoveredWindow == child_window) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + } + g.WithinEndChild = false; + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return +} + +// Helper to create a child window / scrolling region that looks like a normal widget frame. +bool ImGui::BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags extra_flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); + PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); + PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); + PushStyleVar(ImGuiStyleVar_WindowPadding, style.FramePadding); + bool ret = BeginChild(id, size, true, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysUseWindowPadding | extra_flags); + PopStyleVar(3); + PopStyleColor(); + return ret; +} + +void ImGui::EndChildFrame() +{ + EndChild(); +} + +static void SetWindowConditionAllowFlags(ImGuiWindow* window, ImGuiCond flags, bool enabled) +{ + window->SetWindowPosAllowFlags = enabled ? (window->SetWindowPosAllowFlags | flags) : (window->SetWindowPosAllowFlags & ~flags); + window->SetWindowSizeAllowFlags = enabled ? (window->SetWindowSizeAllowFlags | flags) : (window->SetWindowSizeAllowFlags & ~flags); + window->SetWindowCollapsedAllowFlags = enabled ? (window->SetWindowCollapsedAllowFlags | flags) : (window->SetWindowCollapsedAllowFlags & ~flags); + window->SetWindowDockAllowFlags = enabled ? (window->SetWindowDockAllowFlags | flags) : (window->SetWindowDockAllowFlags & ~flags); +} + +ImGuiWindow* ImGui::FindWindowByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + return (ImGuiWindow*)g.WindowsById.GetVoidPtr(id); +} + +ImGuiWindow* ImGui::FindWindowByName(const char* name) +{ + ImGuiID id = ImHashStr(name); + return FindWindowByID(id); +} + +static void ApplyWindowSettings(ImGuiWindow* window, ImGuiWindowSettings* settings) +{ + const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + window->ViewportPos = main_viewport->Pos; + if (settings->ViewportId) + { + window->ViewportId = settings->ViewportId; + window->ViewportPos = ImVec2(settings->ViewportPos.x, settings->ViewportPos.y); + } + window->Pos = ImTrunc(ImVec2(settings->Pos.x + window->ViewportPos.x, settings->Pos.y + window->ViewportPos.y)); + if (settings->Size.x > 0 && settings->Size.y > 0) + window->Size = window->SizeFull = ImTrunc(ImVec2(settings->Size.x, settings->Size.y)); + window->Collapsed = settings->Collapsed; + window->DockId = settings->DockId; + window->DockOrder = settings->DockOrder; +} + +static void UpdateWindowInFocusOrderList(ImGuiWindow* window, bool just_created, ImGuiWindowFlags new_flags) +{ + ImGuiContext& g = *GImGui; + + const bool new_is_explicit_child = (new_flags & ImGuiWindowFlags_ChildWindow) != 0 && ((new_flags & ImGuiWindowFlags_Popup) == 0 || (new_flags & ImGuiWindowFlags_ChildMenu) != 0); + const bool child_flag_changed = new_is_explicit_child != window->IsExplicitChild; + if ((just_created || child_flag_changed) && !new_is_explicit_child) + { + IM_ASSERT(!g.WindowsFocusOrder.contains(window)); + g.WindowsFocusOrder.push_back(window); + window->FocusOrder = (short)(g.WindowsFocusOrder.Size - 1); + } + else if (!just_created && child_flag_changed && new_is_explicit_child) + { + IM_ASSERT(g.WindowsFocusOrder[window->FocusOrder] == window); + for (int n = window->FocusOrder + 1; n < g.WindowsFocusOrder.Size; n++) + g.WindowsFocusOrder[n]->FocusOrder--; + g.WindowsFocusOrder.erase(g.WindowsFocusOrder.Data + window->FocusOrder); + window->FocusOrder = -1; + } + window->IsExplicitChild = new_is_explicit_child; +} + +static void InitOrLoadWindowSettings(ImGuiWindow* window, ImGuiWindowSettings* settings) +{ + // Initial window state with e.g. default/arbitrary window position + // Use SetNextWindowPos() with the appropriate condition flag to change the initial position of a window. + const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + window->Pos = main_viewport->Pos + ImVec2(60, 60); + window->Size = window->SizeFull = ImVec2(0, 0); + window->ViewportPos = main_viewport->Pos; + window->SetWindowPosAllowFlags = window->SetWindowSizeAllowFlags = window->SetWindowCollapsedAllowFlags = window->SetWindowDockAllowFlags = ImGuiCond_Always | ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing; + + if (settings != NULL) + { + SetWindowConditionAllowFlags(window, ImGuiCond_FirstUseEver, false); + ApplyWindowSettings(window, settings); + } + window->DC.CursorStartPos = window->DC.CursorMaxPos = window->DC.IdealMaxPos = window->Pos; // So first call to CalcWindowContentSizes() doesn't return crazy values + + if ((window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0) + { + window->AutoFitFramesX = window->AutoFitFramesY = 2; + window->AutoFitOnlyGrows = false; + } + else + { + if (window->Size.x <= 0.0f) + window->AutoFitFramesX = 2; + if (window->Size.y <= 0.0f) + window->AutoFitFramesY = 2; + window->AutoFitOnlyGrows = (window->AutoFitFramesX > 0) || (window->AutoFitFramesY > 0); + } +} + +static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags) +{ + // Create window the first time + //IMGUI_DEBUG_LOG("CreateNewWindow '%s', flags = 0x%08X\n", name, flags); + ImGuiContext& g = *GImGui; + ImGuiWindow* window = IM_NEW(ImGuiWindow)(&g, name); + window->Flags = flags; + g.WindowsById.SetVoidPtr(window->ID, window); + + ImGuiWindowSettings* settings = NULL; + if (!(flags & ImGuiWindowFlags_NoSavedSettings)) + if ((settings = ImGui::FindWindowSettingsByWindow(window)) != 0) + window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); + + InitOrLoadWindowSettings(window, settings); + + if (flags & ImGuiWindowFlags_NoBringToFrontOnFocus) + g.Windows.push_front(window); // Quite slow but rare and only once + else + g.Windows.push_back(window); + + return window; +} + +static ImGuiWindow* GetWindowForTitleDisplay(ImGuiWindow* window) +{ + return window->DockNodeAsHost ? window->DockNodeAsHost->VisibleWindow : window; +} + +static ImGuiWindow* GetWindowForTitleAndMenuHeight(ImGuiWindow* window) +{ + return (window->DockNodeAsHost && window->DockNodeAsHost->VisibleWindow) ? window->DockNodeAsHost->VisibleWindow : window; +} + +static ImVec2 CalcWindowSizeAfterConstraint(ImGuiWindow* window, const ImVec2& size_desired) +{ + ImGuiContext& g = *GImGui; + ImVec2 new_size = size_desired; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) + { + // Using -1,-1 on either X/Y axis to preserve the current size. + ImRect cr = g.NextWindowData.SizeConstraintRect; + new_size.x = (cr.Min.x >= 0 && cr.Max.x >= 0) ? ImClamp(new_size.x, cr.Min.x, cr.Max.x) : window->SizeFull.x; + new_size.y = (cr.Min.y >= 0 && cr.Max.y >= 0) ? ImClamp(new_size.y, cr.Min.y, cr.Max.y) : window->SizeFull.y; + if (g.NextWindowData.SizeCallback) + { + ImGuiSizeCallbackData data; + data.UserData = g.NextWindowData.SizeCallbackUserData; + data.Pos = window->Pos; + data.CurrentSize = window->SizeFull; + data.DesiredSize = new_size; + g.NextWindowData.SizeCallback(&data); + new_size = data.DesiredSize; + } + new_size.x = IM_TRUNC(new_size.x); + new_size.y = IM_TRUNC(new_size.y); + } + + // Minimum size + if (!(window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_AlwaysAutoResize))) + { + ImGuiWindow* window_for_height = GetWindowForTitleAndMenuHeight(window); + new_size = ImMax(new_size, g.Style.WindowMinSize); + const float minimum_height = window_for_height->TitleBarHeight() + window_for_height->MenuBarHeight() + ImMax(0.0f, g.Style.WindowRounding - 1.0f); + new_size.y = ImMax(new_size.y, minimum_height); // Reduce artifacts with very small windows + } + return new_size; +} + +static void CalcWindowContentSizes(ImGuiWindow* window, ImVec2* content_size_current, ImVec2* content_size_ideal) +{ + bool preserve_old_content_sizes = false; + if (window->Collapsed && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) + preserve_old_content_sizes = true; + else if (window->Hidden && window->HiddenFramesCannotSkipItems == 0 && window->HiddenFramesCanSkipItems > 0) + preserve_old_content_sizes = true; + if (preserve_old_content_sizes) + { + *content_size_current = window->ContentSize; + *content_size_ideal = window->ContentSizeIdeal; + return; + } + + content_size_current->x = (window->ContentSizeExplicit.x != 0.0f) ? window->ContentSizeExplicit.x : IM_TRUNC(window->DC.CursorMaxPos.x - window->DC.CursorStartPos.x); + content_size_current->y = (window->ContentSizeExplicit.y != 0.0f) ? window->ContentSizeExplicit.y : IM_TRUNC(window->DC.CursorMaxPos.y - window->DC.CursorStartPos.y); + content_size_ideal->x = (window->ContentSizeExplicit.x != 0.0f) ? window->ContentSizeExplicit.x : IM_TRUNC(ImMax(window->DC.CursorMaxPos.x, window->DC.IdealMaxPos.x) - window->DC.CursorStartPos.x); + content_size_ideal->y = (window->ContentSizeExplicit.y != 0.0f) ? window->ContentSizeExplicit.y : IM_TRUNC(ImMax(window->DC.CursorMaxPos.y, window->DC.IdealMaxPos.y) - window->DC.CursorStartPos.y); +} + +static ImVec2 CalcWindowAutoFitSize(ImGuiWindow* window, const ImVec2& size_contents) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + const float decoration_w_without_scrollbars = window->DecoOuterSizeX1 + window->DecoOuterSizeX2 - window->ScrollbarSizes.x; + const float decoration_h_without_scrollbars = window->DecoOuterSizeY1 + window->DecoOuterSizeY2 - window->ScrollbarSizes.y; + ImVec2 size_pad = window->WindowPadding * 2.0f; + ImVec2 size_desired = size_contents + size_pad + ImVec2(decoration_w_without_scrollbars, decoration_h_without_scrollbars); + if (window->Flags & ImGuiWindowFlags_Tooltip) + { + // Tooltip always resize + return size_desired; + } + else + { + // Maximum window size is determined by the viewport size or monitor size + const bool is_popup = (window->Flags & ImGuiWindowFlags_Popup) != 0; + const bool is_menu = (window->Flags & ImGuiWindowFlags_ChildMenu) != 0; + ImVec2 size_min = style.WindowMinSize; + if (is_popup || is_menu) // Popups and menus bypass style.WindowMinSize by default, but we give then a non-zero minimum size to facilitate understanding problematic cases (e.g. empty popups) + size_min = ImMin(size_min, ImVec2(4.0f, 4.0f)); + + ImVec2 avail_size = window->Viewport->WorkSize; + if (window->ViewportOwned) + avail_size = ImVec2(FLT_MAX, FLT_MAX); + const int monitor_idx = window->ViewportAllowPlatformMonitorExtend; + if (monitor_idx >= 0 && monitor_idx < g.PlatformIO.Monitors.Size) + avail_size = g.PlatformIO.Monitors[monitor_idx].WorkSize; + ImVec2 size_auto_fit = ImClamp(size_desired, size_min, ImMax(size_min, avail_size - style.DisplaySafeAreaPadding * 2.0f)); + + // When the window cannot fit all contents (either because of constraints, either because screen is too small), + // we are growing the size on the other axis to compensate for expected scrollbar. FIXME: Might turn bigger than ViewportSize-WindowPadding. + ImVec2 size_auto_fit_after_constraint = CalcWindowSizeAfterConstraint(window, size_auto_fit); + bool will_have_scrollbar_x = (size_auto_fit_after_constraint.x - size_pad.x - decoration_w_without_scrollbars < size_contents.x && !(window->Flags & ImGuiWindowFlags_NoScrollbar) && (window->Flags & ImGuiWindowFlags_HorizontalScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar); + bool will_have_scrollbar_y = (size_auto_fit_after_constraint.y - size_pad.y - decoration_h_without_scrollbars < size_contents.y && !(window->Flags & ImGuiWindowFlags_NoScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysVerticalScrollbar); + if (will_have_scrollbar_x) + size_auto_fit.y += style.ScrollbarSize; + if (will_have_scrollbar_y) + size_auto_fit.x += style.ScrollbarSize; + return size_auto_fit; + } +} + +ImVec2 ImGui::CalcWindowNextAutoFitSize(ImGuiWindow* window) +{ + ImVec2 size_contents_current; + ImVec2 size_contents_ideal; + CalcWindowContentSizes(window, &size_contents_current, &size_contents_ideal); + ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, size_contents_ideal); + ImVec2 size_final = CalcWindowSizeAfterConstraint(window, size_auto_fit); + return size_final; +} + +static ImGuiCol GetWindowBgColorIdx(ImGuiWindow* window) +{ + if (window->Flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) + return ImGuiCol_PopupBg; + if ((window->Flags & ImGuiWindowFlags_ChildWindow) && !window->DockIsActive) + return ImGuiCol_ChildBg; + return ImGuiCol_WindowBg; +} + +static void CalcResizePosSizeFromAnyCorner(ImGuiWindow* window, const ImVec2& corner_target, const ImVec2& corner_norm, ImVec2* out_pos, ImVec2* out_size) +{ + ImVec2 pos_min = ImLerp(corner_target, window->Pos, corner_norm); // Expected window upper-left + ImVec2 pos_max = ImLerp(window->Pos + window->Size, corner_target, corner_norm); // Expected window lower-right + ImVec2 size_expected = pos_max - pos_min; + ImVec2 size_constrained = CalcWindowSizeAfterConstraint(window, size_expected); + *out_pos = pos_min; + if (corner_norm.x == 0.0f) + out_pos->x -= (size_constrained.x - size_expected.x); + if (corner_norm.y == 0.0f) + out_pos->y -= (size_constrained.y - size_expected.y); + *out_size = size_constrained; +} + +// Data for resizing from corner +struct ImGuiResizeGripDef +{ + ImVec2 CornerPosN; + ImVec2 InnerDir; + int AngleMin12, AngleMax12; +}; +static const ImGuiResizeGripDef resize_grip_def[4] = +{ + { ImVec2(1, 1), ImVec2(-1, -1), 0, 3 }, // Lower-right + { ImVec2(0, 1), ImVec2(+1, -1), 3, 6 }, // Lower-left + { ImVec2(0, 0), ImVec2(+1, +1), 6, 9 }, // Upper-left (Unused) + { ImVec2(1, 0), ImVec2(-1, +1), 9, 12 } // Upper-right (Unused) +}; + +// Data for resizing from borders +struct ImGuiResizeBorderDef +{ + ImVec2 InnerDir; + ImVec2 SegmentN1, SegmentN2; + float OuterAngle; +}; +static const ImGuiResizeBorderDef resize_border_def[4] = +{ + { ImVec2(+1, 0), ImVec2(0, 1), ImVec2(0, 0), IM_PI * 1.00f }, // Left + { ImVec2(-1, 0), ImVec2(1, 0), ImVec2(1, 1), IM_PI * 0.00f }, // Right + { ImVec2(0, +1), ImVec2(0, 0), ImVec2(1, 0), IM_PI * 1.50f }, // Up + { ImVec2(0, -1), ImVec2(1, 1), ImVec2(0, 1), IM_PI * 0.50f } // Down +}; + +static ImRect GetResizeBorderRect(ImGuiWindow* window, int border_n, float perp_padding, float thickness) +{ + ImRect rect = window->Rect(); + if (thickness == 0.0f) + rect.Max -= ImVec2(1, 1); + if (border_n == ImGuiDir_Left) { return ImRect(rect.Min.x - thickness, rect.Min.y + perp_padding, rect.Min.x + thickness, rect.Max.y - perp_padding); } + if (border_n == ImGuiDir_Right) { return ImRect(rect.Max.x - thickness, rect.Min.y + perp_padding, rect.Max.x + thickness, rect.Max.y - perp_padding); } + if (border_n == ImGuiDir_Up) { return ImRect(rect.Min.x + perp_padding, rect.Min.y - thickness, rect.Max.x - perp_padding, rect.Min.y + thickness); } + if (border_n == ImGuiDir_Down) { return ImRect(rect.Min.x + perp_padding, rect.Max.y - thickness, rect.Max.x - perp_padding, rect.Max.y + thickness); } + IM_ASSERT(0); + return ImRect(); +} + +// 0..3: corners (Lower-right, Lower-left, Unused, Unused) +ImGuiID ImGui::GetWindowResizeCornerID(ImGuiWindow* window, int n) +{ + IM_ASSERT(n >= 0 && n < 4); + ImGuiID id = window->DockIsActive ? window->DockNode->HostWindow->ID : window->ID; + id = ImHashStr("#RESIZE", 0, id); + id = ImHashData(&n, sizeof(int), id); + return id; +} + +// Borders (Left, Right, Up, Down) +ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir) +{ + IM_ASSERT(dir >= 0 && dir < 4); + int n = (int)dir + 4; + ImGuiID id = window->DockIsActive ? window->DockNode->HostWindow->ID : window->ID; + id = ImHashStr("#RESIZE", 0, id); + id = ImHashData(&n, sizeof(int), id); + return id; +} + +// Handle resize for: Resize Grips, Borders, Gamepad +// Return true when using auto-fit (double-click on resize grip) +static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect) +{ + ImGuiContext& g = *GImGui; + ImGuiWindowFlags flags = window->Flags; + + if ((flags & ImGuiWindowFlags_NoResize) || (flags & ImGuiWindowFlags_AlwaysAutoResize) || window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) + return false; + if (window->WasActive == false) // Early out to avoid running this code for e.g. a hidden implicit/fallback Debug window. + return false; + + bool ret_auto_fit = false; + const int resize_border_count = g.IO.ConfigWindowsResizeFromEdges ? 4 : 0; + const float grip_draw_size = IM_TRUNC(ImMax(g.FontSize * 1.35f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); + const float grip_hover_inner_size = IM_TRUNC(grip_draw_size * 0.75f); + const float grip_hover_outer_size = g.IO.ConfigWindowsResizeFromEdges ? WINDOWS_HOVER_PADDING : 0.0f; + + ImRect clamp_rect = visibility_rect; + const bool window_move_from_title_bar = g.IO.ConfigWindowsMoveFromTitleBarOnly && !(window->Flags & ImGuiWindowFlags_NoTitleBar); + if (window_move_from_title_bar) + clamp_rect.Min.y -= window->TitleBarHeight(); + + ImVec2 pos_target(FLT_MAX, FLT_MAX); + ImVec2 size_target(FLT_MAX, FLT_MAX); + + // Clip mouse interaction rectangles within the viewport rectangle (in practice the narrowing is going to happen most of the time). + // - Not narrowing would mostly benefit the situation where OS windows _without_ decoration have a threshold for hovering when outside their limits. + // This is however not the case with current backends under Win32, but a custom borderless window implementation would benefit from it. + // - When decoration are enabled we typically benefit from that distance, but then our resize elements would be conflicting with OS resize elements, so we also narrow. + // - Note that we are unable to tell if the platform setup allows hovering with a distance threshold (on Win32, decorated window have such threshold). + // We only clip interaction so we overwrite window->ClipRect, cannot call PushClipRect() yet as DrawList is not yet setup. + const bool clip_with_viewport_rect = !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport) || (g.IO.MouseHoveredViewport != window->ViewportId) || !(window->Viewport->Flags & ImGuiViewportFlags_NoDecoration); + if (clip_with_viewport_rect) + window->ClipRect = window->Viewport->GetMainRect(); + + // Resize grips and borders are on layer 1 + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + + // Manual resize grips + PushID("#RESIZE"); + for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) + { + const ImGuiResizeGripDef& def = resize_grip_def[resize_grip_n]; + const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, def.CornerPosN); + + // Using the FlattenChilds button flag we make the resize button accessible even if we are hovering over a child window + bool hovered, held; + ImRect resize_rect(corner - def.InnerDir * grip_hover_outer_size, corner + def.InnerDir * grip_hover_inner_size); + if (resize_rect.Min.x > resize_rect.Max.x) ImSwap(resize_rect.Min.x, resize_rect.Max.x); + if (resize_rect.Min.y > resize_rect.Max.y) ImSwap(resize_rect.Min.y, resize_rect.Max.y); + ImGuiID resize_grip_id = window->GetID(resize_grip_n); // == GetWindowResizeCornerID() + ItemAdd(resize_rect, resize_grip_id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(resize_rect, resize_grip_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); + //GetForegroundDrawList(window)->AddRect(resize_rect.Min, resize_rect.Max, IM_COL32(255, 255, 0, 255)); + if (hovered || held) + g.MouseCursor = (resize_grip_n & 1) ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE; + + if (held && g.IO.MouseClickedCount[0] == 2) + { + // Manual auto-fit when double-clicking + size_target = CalcWindowSizeAfterConstraint(window, size_auto_fit); + ret_auto_fit = true; + ClearActiveID(); + } + else if (held) + { + // Resize from any of the four corners + // We don't use an incremental MouseDelta but rather compute an absolute target size based on mouse position + ImVec2 clamp_min = ImVec2(def.CornerPosN.x == 1.0f ? clamp_rect.Min.x : -FLT_MAX, (def.CornerPosN.y == 1.0f || (def.CornerPosN.y == 0.0f && window_move_from_title_bar)) ? clamp_rect.Min.y : -FLT_MAX); + ImVec2 clamp_max = ImVec2(def.CornerPosN.x == 0.0f ? clamp_rect.Max.x : +FLT_MAX, def.CornerPosN.y == 0.0f ? clamp_rect.Max.y : +FLT_MAX); + ImVec2 corner_target = g.IO.MousePos - g.ActiveIdClickOffset + ImLerp(def.InnerDir * grip_hover_outer_size, def.InnerDir * -grip_hover_inner_size, def.CornerPosN); // Corner of the window corresponding to our corner grip + corner_target = ImClamp(corner_target, clamp_min, clamp_max); + CalcResizePosSizeFromAnyCorner(window, corner_target, def.CornerPosN, &pos_target, &size_target); + } + + // Only lower-left grip is visible before hovering/activating + if (resize_grip_n == 0 || held || hovered) + resize_grip_col[resize_grip_n] = GetColorU32(held ? ImGuiCol_ResizeGripActive : hovered ? ImGuiCol_ResizeGripHovered : ImGuiCol_ResizeGrip); + } + for (int border_n = 0; border_n < resize_border_count; border_n++) + { + const ImGuiResizeBorderDef& def = resize_border_def[border_n]; + const ImGuiAxis axis = (border_n == ImGuiDir_Left || border_n == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + + bool hovered, held; + ImRect border_rect = GetResizeBorderRect(window, border_n, grip_hover_inner_size, WINDOWS_HOVER_PADDING); + ImGuiID border_id = window->GetID(border_n + 4); // == GetWindowResizeBorderID() + ItemAdd(border_rect, border_id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(border_rect, border_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); + //GetForegroundDrawLists(window)->AddRect(border_rect.Min, border_rect.Max, IM_COL32(255, 255, 0, 255)); + if ((hovered && g.HoveredIdTimer > WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER) || held) + { + g.MouseCursor = (axis == ImGuiAxis_X) ? ImGuiMouseCursor_ResizeEW : ImGuiMouseCursor_ResizeNS; + if (held) + *border_held = border_n; + } + if (held) + { + ImVec2 clamp_min(border_n == ImGuiDir_Right ? clamp_rect.Min.x : -FLT_MAX, border_n == ImGuiDir_Down || (border_n == ImGuiDir_Up && window_move_from_title_bar) ? clamp_rect.Min.y : -FLT_MAX); + ImVec2 clamp_max(border_n == ImGuiDir_Left ? clamp_rect.Max.x : +FLT_MAX, border_n == ImGuiDir_Up ? clamp_rect.Max.y : +FLT_MAX); + ImVec2 border_target = window->Pos; + border_target[axis] = g.IO.MousePos[axis] - g.ActiveIdClickOffset[axis] + WINDOWS_HOVER_PADDING; + border_target = ImClamp(border_target, clamp_min, clamp_max); + CalcResizePosSizeFromAnyCorner(window, border_target, ImMin(def.SegmentN1, def.SegmentN2), &pos_target, &size_target); + } + } + PopID(); + + // Restore nav layer + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + + // Navigation resize (keyboard/gamepad) + // FIXME: This cannot be moved to NavUpdateWindowing() because CalcWindowSizeAfterConstraint() need to callback into user. + // Not even sure the callback works here. + if (g.NavWindowingTarget && g.NavWindowingTarget->RootWindowDockTree == window) + { + ImVec2 nav_resize_dir; + if (g.NavInputSource == ImGuiInputSource_Keyboard && g.IO.KeyShift) + nav_resize_dir = GetKeyMagnitude2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); + if (g.NavInputSource == ImGuiInputSource_Gamepad) + nav_resize_dir = GetKeyMagnitude2d(ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown); + if (nav_resize_dir.x != 0.0f || nav_resize_dir.y != 0.0f) + { + const float NAV_RESIZE_SPEED = 600.0f; + const float resize_step = NAV_RESIZE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaSize += nav_resize_dir * resize_step; + g.NavWindowingAccumDeltaSize = ImMax(g.NavWindowingAccumDeltaSize, clamp_rect.Min - window->Pos - window->Size); // We need Pos+Size >= clmap_rect.Min, so Size >= clmap_rect.Min - Pos, so size_delta >= clmap_rect.Min - window->Pos - window->Size + g.NavWindowingToggleLayer = false; + g.NavDisableMouseHover = true; + resize_grip_col[0] = GetColorU32(ImGuiCol_ResizeGripActive); + ImVec2 accum_floored = ImTrunc(g.NavWindowingAccumDeltaSize); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + // FIXME-NAV: Should store and accumulate into a separate size buffer to handle sizing constraints properly, right now a constraint will make us stuck. + size_target = CalcWindowSizeAfterConstraint(window, window->SizeFull + accum_floored); + g.NavWindowingAccumDeltaSize -= accum_floored; + } + } + } + + // Apply back modified position/size to window + if (size_target.x != FLT_MAX) + { + window->SizeFull = size_target; + MarkIniSettingsDirty(window); + } + if (pos_target.x != FLT_MAX) + { + window->Pos = ImTrunc(pos_target); + MarkIniSettingsDirty(window); + } + + window->Size = window->SizeFull; + return ret_auto_fit; +} + +static inline void ClampWindowPos(ImGuiWindow* window, const ImRect& visibility_rect) +{ + ImGuiContext& g = *GImGui; + ImVec2 size_for_clamping = window->Size; + if (g.IO.ConfigWindowsMoveFromTitleBarOnly && (!(window->Flags & ImGuiWindowFlags_NoTitleBar) || window->DockNodeAsHost)) + size_for_clamping.y = ImGui::GetFrameHeight(); // Not using window->TitleBarHeight() as DockNodeAsHost will report 0.0f here. + window->Pos = ImClamp(window->Pos, visibility_rect.Min - size_for_clamping, visibility_rect.Max); +} + +static void ImGui::RenderWindowOuterBorders(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + float rounding = window->WindowRounding; + float border_size = window->WindowBorderSize; + if (border_size > 0.0f && !(window->Flags & ImGuiWindowFlags_NoBackground)) + window->DrawList->AddRect(window->Pos, window->Pos + window->Size, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + + int border_held = window->ResizeBorderHeld; + if (border_held != -1) + { + const ImGuiResizeBorderDef& def = resize_border_def[border_held]; + ImRect border_r = GetResizeBorderRect(window, border_held, rounding, 0.0f); + window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.SegmentN1) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle - IM_PI * 0.25f, def.OuterAngle); + window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.SegmentN2) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle, def.OuterAngle + IM_PI * 0.25f); + window->DrawList->PathStroke(GetColorU32(ImGuiCol_SeparatorActive), 0, ImMax(2.0f, border_size)); // Thicker than usual + } + if (g.Style.FrameBorderSize > 0 && !(window->Flags & ImGuiWindowFlags_NoTitleBar) && !window->DockIsActive) + { + float y = window->Pos.y + window->TitleBarHeight() - 1; + window->DrawList->AddLine(ImVec2(window->Pos.x + border_size, y), ImVec2(window->Pos.x + window->Size.x - border_size, y), GetColorU32(ImGuiCol_Border), g.Style.FrameBorderSize); + } +} + +// Draw background and borders +// Draw and handle scrollbars +void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, bool handle_borders_and_resize_grips, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImGuiWindowFlags flags = window->Flags; + + // Ensure that ScrollBar doesn't read last frame's SkipItems + IM_ASSERT(window->BeginCount == 0); + window->SkipItems = false; + + // Draw window + handle manual resize + // As we highlight the title bar when want_focus is set, multiple reappearing windows will have their title bar highlighted on their reappearing frame. + const float window_rounding = window->WindowRounding; + const float window_border_size = window->WindowBorderSize; + if (window->Collapsed) + { + // Title bar only + const float backup_border_size = style.FrameBorderSize; + g.Style.FrameBorderSize = window->WindowBorderSize; + ImU32 title_bar_col = GetColorU32((title_bar_is_highlight && !g.NavDisableHighlight) ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBgCollapsed); + if (window->ViewportOwned) + title_bar_col |= IM_COL32_A_MASK; // No alpha (we don't support is_docking_transparent_payload here because simpler and less meaningful, but could with a bit of code shuffle/reuse) + RenderFrame(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, true, window_rounding); + g.Style.FrameBorderSize = backup_border_size; + } + else + { + // Window background + if (!(flags & ImGuiWindowFlags_NoBackground)) + { + bool is_docking_transparent_payload = false; + if (g.DragDropActive && (g.FrameCount - g.DragDropAcceptFrameCount) <= 1 && g.IO.ConfigDockingTransparentPayload) + if (g.DragDropPayload.IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW) && *(ImGuiWindow**)g.DragDropPayload.Data == window) + is_docking_transparent_payload = true; + + ImU32 bg_col = GetColorU32(GetWindowBgColorIdx(window)); + if (window->ViewportOwned) + { + bg_col |= IM_COL32_A_MASK; // No alpha + if (is_docking_transparent_payload) + window->Viewport->Alpha *= DOCKING_TRANSPARENT_PAYLOAD_ALPHA; + } + else + { + // Adjust alpha. For docking + bool override_alpha = false; + float alpha = 1.0f; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasBgAlpha) + { + alpha = g.NextWindowData.BgAlphaVal; + override_alpha = true; + } + if (is_docking_transparent_payload) + { + alpha *= DOCKING_TRANSPARENT_PAYLOAD_ALPHA; // FIXME-DOCK: Should that be an override? + override_alpha = true; + } + if (override_alpha) + bg_col = (bg_col & ~IM_COL32_A_MASK) | (IM_F32_TO_INT8_SAT(alpha) << IM_COL32_A_SHIFT); + } + + // Render, for docked windows and host windows we ensure bg goes before decorations + if (window->DockIsActive) + window->DockNode->LastBgColor = bg_col; + ImDrawList* bg_draw_list = window->DockIsActive ? window->DockNode->HostWindow->DrawList : window->DrawList; + if (window->DockIsActive || (flags & ImGuiWindowFlags_DockNodeHost)) + bg_draw_list->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + bg_draw_list->AddRectFilled(window->Pos + ImVec2(0, window->TitleBarHeight()), window->Pos + window->Size, bg_col, window_rounding, (flags & ImGuiWindowFlags_NoTitleBar) ? 0 : ImDrawFlags_RoundCornersBottom); + if (window->DockIsActive || (flags & ImGuiWindowFlags_DockNodeHost)) + bg_draw_list->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); + } + if (window->DockIsActive) + window->DockNode->IsBgDrawnThisFrame = true; + + // Title bar + // (when docked, DockNode are drawing their own title bar. Individual windows however do NOT set the _NoTitleBar flag, + // in order for their pos/size to be matching their undocking state.) + if (!(flags & ImGuiWindowFlags_NoTitleBar) && !window->DockIsActive) + { + ImU32 title_bar_col = GetColorU32(title_bar_is_highlight ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg); + window->DrawList->AddRectFilled(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, window_rounding, ImDrawFlags_RoundCornersTop); + } + + // Menu bar + if (flags & ImGuiWindowFlags_MenuBar) + { + ImRect menu_bar_rect = window->MenuBarRect(); + menu_bar_rect.ClipWith(window->Rect()); // Soft clipping, in particular child window don't have minimum size covering the menu bar so this is useful for them. + window->DrawList->AddRectFilled(menu_bar_rect.Min + ImVec2(window_border_size, 0), menu_bar_rect.Max - ImVec2(window_border_size, 0), GetColorU32(ImGuiCol_MenuBarBg), (flags & ImGuiWindowFlags_NoTitleBar) ? window_rounding : 0.0f, ImDrawFlags_RoundCornersTop); + if (style.FrameBorderSize > 0.0f && menu_bar_rect.Max.y < window->Pos.y + window->Size.y) + window->DrawList->AddLine(menu_bar_rect.GetBL(), menu_bar_rect.GetBR(), GetColorU32(ImGuiCol_Border), style.FrameBorderSize); + } + + // Docking: Unhide tab bar (small triangle in the corner), drag from small triangle to quickly undock + ImGuiDockNode* node = window->DockNode; + if (window->DockIsActive && node->IsHiddenTabBar() && !node->IsNoTabBar()) + { + float unhide_sz_draw = ImTrunc(g.FontSize * 0.70f); + float unhide_sz_hit = ImTrunc(g.FontSize * 0.55f); + ImVec2 p = node->Pos; + ImRect r(p, p + ImVec2(unhide_sz_hit, unhide_sz_hit)); + ImGuiID unhide_id = window->GetID("#UNHIDE"); + KeepAliveID(unhide_id); + bool hovered, held; + if (ButtonBehavior(r, unhide_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren)) + node->WantHiddenTabBarToggle = true; + else if (held && IsMouseDragging(0)) + StartMouseMovingWindowOrNode(window, node, true); // Undock from tab-bar triangle = same as window/collapse menu button + + // FIXME-DOCK: Ideally we'd use ImGuiCol_TitleBgActive/ImGuiCol_TitleBg here, but neither is guaranteed to be visible enough at this sort of size.. + ImU32 col = GetColorU32(((held && hovered) || (node->IsFocused && !hovered)) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + window->DrawList->AddTriangleFilled(p, p + ImVec2(unhide_sz_draw, 0.0f), p + ImVec2(0.0f, unhide_sz_draw), col); + } + + // Scrollbars + if (window->ScrollbarX) + Scrollbar(ImGuiAxis_X); + if (window->ScrollbarY) + Scrollbar(ImGuiAxis_Y); + + // Render resize grips (after their input handling so we don't have a frame of latency) + if (handle_borders_and_resize_grips && !(flags & ImGuiWindowFlags_NoResize)) + { + for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) + { + const ImU32 col = resize_grip_col[resize_grip_n]; + if ((col & IM_COL32_A_MASK) == 0) + continue; + const ImGuiResizeGripDef& grip = resize_grip_def[resize_grip_n]; + const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, grip.CornerPosN); + window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(window_border_size, resize_grip_draw_size) : ImVec2(resize_grip_draw_size, window_border_size))); + window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(resize_grip_draw_size, window_border_size) : ImVec2(window_border_size, resize_grip_draw_size))); + window->DrawList->PathArcToFast(ImVec2(corner.x + grip.InnerDir.x * (window_rounding + window_border_size), corner.y + grip.InnerDir.y * (window_rounding + window_border_size)), window_rounding, grip.AngleMin12, grip.AngleMax12); + window->DrawList->PathFillConvex(col); + } + } + + // Borders (for dock node host they will be rendered over after the tab bar) + if (handle_borders_and_resize_grips && !window->DockNodeAsHost) + RenderWindowOuterBorders(window); + } +} + +// When inside a dock node, this is handled in DockNodeCalcTabBarLayout() instead. +// Render title text, collapse button, close button +void ImGui::RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImGuiWindowFlags flags = window->Flags; + + const bool has_close_button = (p_open != NULL); + const bool has_collapse_button = !(flags & ImGuiWindowFlags_NoCollapse) && (style.WindowMenuButtonPosition != ImGuiDir_None); + + // Close & Collapse button are on the Menu NavLayer and don't default focus (unless there's nothing else on that layer) + // FIXME-NAV: Might want (or not?) to set the equivalent of ImGuiButtonFlags_NoNavFocus so that mouse clicks on standard title bar items don't necessarily set nav/keyboard ref? + const ImGuiItemFlags item_flags_backup = g.CurrentItemFlags; + g.CurrentItemFlags |= ImGuiItemFlags_NoNavDefaultFocus; + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + + // Layout buttons + // FIXME: Would be nice to generalize the subtleties expressed here into reusable code. + float pad_l = style.FramePadding.x; + float pad_r = style.FramePadding.x; + float button_sz = g.FontSize; + ImVec2 close_button_pos; + ImVec2 collapse_button_pos; + if (has_close_button) + { + close_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - button_sz, title_bar_rect.Min.y + style.FramePadding.y); + pad_r += button_sz + style.ItemInnerSpacing.x; + } + if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Right) + { + collapse_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - button_sz, title_bar_rect.Min.y + style.FramePadding.y); + pad_r += button_sz + style.ItemInnerSpacing.x; + } + if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Left) + { + collapse_button_pos = ImVec2(title_bar_rect.Min.x + pad_l, title_bar_rect.Min.y + style.FramePadding.y); + pad_l += button_sz + style.ItemInnerSpacing.x; + } + + // Collapse button (submitting first so it gets priority when choosing a navigation init fallback) + if (has_collapse_button) + if (CollapseButton(window->GetID("#COLLAPSE"), collapse_button_pos, NULL)) + window->WantCollapseToggle = true; // Defer actual collapsing to next frame as we are too far in the Begin() function + + // Close button + if (has_close_button) + if (CloseButton(window->GetID("#CLOSE"), close_button_pos)) + *p_open = false; + + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + g.CurrentItemFlags = item_flags_backup; + + // Title bar text (with: horizontal alignment, avoiding collapse/close button, optional "unsaved document" marker) + // FIXME: Refactor text alignment facilities along with RenderText helpers, this is WAY too much messy code.. + const float marker_size_x = (flags & ImGuiWindowFlags_UnsavedDocument) ? button_sz * 0.80f : 0.0f; + const ImVec2 text_size = CalcTextSize(name, NULL, true) + ImVec2(marker_size_x, 0.0f); + + // As a nice touch we try to ensure that centered title text doesn't get affected by visibility of Close/Collapse button, + // while uncentered title text will still reach edges correctly. + if (pad_l > style.FramePadding.x) + pad_l += g.Style.ItemInnerSpacing.x; + if (pad_r > style.FramePadding.x) + pad_r += g.Style.ItemInnerSpacing.x; + if (style.WindowTitleAlign.x > 0.0f && style.WindowTitleAlign.x < 1.0f) + { + float centerness = ImSaturate(1.0f - ImFabs(style.WindowTitleAlign.x - 0.5f) * 2.0f); // 0.0f on either edges, 1.0f on center + float pad_extend = ImMin(ImMax(pad_l, pad_r), title_bar_rect.GetWidth() - pad_l - pad_r - text_size.x); + pad_l = ImMax(pad_l, pad_extend * centerness); + pad_r = ImMax(pad_r, pad_extend * centerness); + } + + ImRect layout_r(title_bar_rect.Min.x + pad_l, title_bar_rect.Min.y, title_bar_rect.Max.x - pad_r, title_bar_rect.Max.y); + ImRect clip_r(layout_r.Min.x, layout_r.Min.y, ImMin(layout_r.Max.x + g.Style.ItemInnerSpacing.x, title_bar_rect.Max.x), layout_r.Max.y); + if (flags & ImGuiWindowFlags_UnsavedDocument) + { + ImVec2 marker_pos; + marker_pos.x = ImClamp(layout_r.Min.x + (layout_r.GetWidth() - text_size.x) * style.WindowTitleAlign.x + text_size.x, layout_r.Min.x, layout_r.Max.x); + marker_pos.y = (layout_r.Min.y + layout_r.Max.y) * 0.5f; + if (marker_pos.x > layout_r.Min.x) + { + RenderBullet(window->DrawList, marker_pos, GetColorU32(ImGuiCol_Text)); + clip_r.Max.x = ImMin(clip_r.Max.x, marker_pos.x - (int)(marker_size_x * 0.5f)); + } + } + //if (g.IO.KeyShift) window->DrawList->AddRect(layout_r.Min, layout_r.Max, IM_COL32(255, 128, 0, 255)); // [DEBUG] + //if (g.IO.KeyCtrl) window->DrawList->AddRect(clip_r.Min, clip_r.Max, IM_COL32(255, 128, 0, 255)); // [DEBUG] + RenderTextClipped(layout_r.Min, layout_r.Max, name, NULL, &text_size, style.WindowTitleAlign, &clip_r); +} + +void ImGui::UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window) +{ + window->ParentWindow = parent_window; + window->RootWindow = window->RootWindowPopupTree = window->RootWindowDockTree = window->RootWindowForTitleBarHighlight = window->RootWindowForNav = window; + if (parent_window && (flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Tooltip)) + { + window->RootWindowDockTree = parent_window->RootWindowDockTree; + if (!window->DockIsActive && !(parent_window->Flags & ImGuiWindowFlags_DockNodeHost)) + window->RootWindow = parent_window->RootWindow; + } + if (parent_window && (flags & ImGuiWindowFlags_Popup)) + window->RootWindowPopupTree = parent_window->RootWindowPopupTree; + if (parent_window && !(flags & ImGuiWindowFlags_Modal) && (flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup))) // FIXME: simply use _NoTitleBar ? + window->RootWindowForTitleBarHighlight = parent_window->RootWindowForTitleBarHighlight; + while (window->RootWindowForNav->Flags & ImGuiWindowFlags_NavFlattened) + { + IM_ASSERT(window->RootWindowForNav->ParentWindow != NULL); + window->RootWindowForNav = window->RootWindowForNav->ParentWindow; + } +} + +// When a modal popup is open, newly created windows that want focus (i.e. are not popups and do not specify ImGuiWindowFlags_NoFocusOnAppearing) +// should be positioned behind that modal window, unless the window was created inside the modal begin-stack. +// In case of multiple stacked modals newly created window honors begin stack order and does not go below its own modal parent. +// - WindowA // FindBlockingModal() returns Modal1 +// - WindowB // .. returns Modal1 +// - Modal1 // .. returns Modal2 +// - WindowC // .. returns Modal2 +// - WindowD // .. returns Modal2 +// - Modal2 // .. returns Modal2 +// - WindowE // .. returns NULL +// Notes: +// - FindBlockingModal(NULL) == NULL is generally equivalent to GetTopMostPopupModal() == NULL. +// Only difference is here we check for ->Active/WasActive but it may be unecessary. +ImGuiWindow* ImGui::FindBlockingModal(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size <= 0) + return NULL; + + // Find a modal that has common parent with specified window. Specified window should be positioned behind that modal. + for (ImGuiPopupData& popup_data : g.OpenPopupStack) + { + ImGuiWindow* popup_window = popup_data.Window; + if (popup_window == NULL || !(popup_window->Flags & ImGuiWindowFlags_Modal)) + continue; + if (!popup_window->Active && !popup_window->WasActive) // Check WasActive, because this code may run before popup renders on current frame, also check Active to handle newly created windows. + continue; + if (window == NULL) // FindBlockingModal(NULL) test for if FocusWindow(NULL) is naturally possible via a mouse click. + return popup_window; + if (IsWindowWithinBeginStackOf(window, popup_window)) // Window may be over modal + continue; + return popup_window; // Place window right below first block modal + } + return NULL; +} + +// Push a new Dear ImGui window to add widgets to. +// - A default window called "Debug" is automatically stacked at the beginning of every frame so you can use widgets without explicitly calling a Begin/End pair. +// - Begin/End can be called multiple times during the frame with the same window name to append content. +// - The window name is used as a unique identifier to preserve window information across frames (and save rudimentary information to the .ini file). +// You can use the "##" or "###" markers to use the same label with different id, or same id with different label. See documentation at the top of this file. +// - Return false when window is collapsed, so you can early out in your code. You always need to call ImGui::End() even if false is returned. +// - Passing 'bool* p_open' displays a Close button on the upper-right corner of the window, the pointed value will be set to false when the button is pressed. +bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + IM_ASSERT(name != NULL && name[0] != '\0'); // Window name required + IM_ASSERT(g.WithinFrameScope); // Forgot to call ImGui::NewFrame() + IM_ASSERT(g.FrameCountEnded != g.FrameCount); // Called ImGui::Render() or ImGui::EndFrame() and haven't called ImGui::NewFrame() again yet + + // Find or create + ImGuiWindow* window = FindWindowByName(name); + const bool window_just_created = (window == NULL); + if (window_just_created) + window = CreateNewWindow(name, flags); + + // Automatically disable manual moving/resizing when NoInputs is set + if ((flags & ImGuiWindowFlags_NoInputs) == ImGuiWindowFlags_NoInputs) + flags |= ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize; + + if (flags & ImGuiWindowFlags_NavFlattened) + IM_ASSERT(flags & ImGuiWindowFlags_ChildWindow); + + const int current_frame = g.FrameCount; + const bool first_begin_of_the_frame = (window->LastFrameActive != current_frame); + window->IsFallbackWindow = (g.CurrentWindowStack.Size == 0 && g.WithinFrameScopeWithImplicitWindow); + + // Update the Appearing flag (note: the BeginDocked() path may also set this to true later) + bool window_just_activated_by_user = (window->LastFrameActive < current_frame - 1); // Not using !WasActive because the implicit "Debug" window would always toggle off->on + if (flags & ImGuiWindowFlags_Popup) + { + ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; + window_just_activated_by_user |= (window->PopupId != popup_ref.PopupId); // We recycle popups so treat window as activated if popup id changed + window_just_activated_by_user |= (window != popup_ref.Window); + } + + // Update Flags, LastFrameActive, BeginOrderXXX fields + const bool window_was_appearing = window->Appearing; + if (first_begin_of_the_frame) + { + UpdateWindowInFocusOrderList(window, window_just_created, flags); + window->Appearing = window_just_activated_by_user; + if (window->Appearing) + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, true); + window->FlagsPreviousFrame = window->Flags; + window->Flags = (ImGuiWindowFlags)flags; + window->LastFrameActive = current_frame; + window->LastTimeActive = (float)g.Time; + window->BeginOrderWithinParent = 0; + window->BeginOrderWithinContext = (short)(g.WindowsActiveCount++); + } + else + { + flags = window->Flags; + } + + // Docking + // (NB: during the frame dock nodes are created, it is possible that (window->DockIsActive == false) even though (window->DockNode->Windows.Size > 1) + IM_ASSERT(window->DockNode == NULL || window->DockNodeAsHost == NULL); // Cannot be both + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasDock) + SetWindowDock(window, g.NextWindowData.DockId, g.NextWindowData.DockCond); + if (first_begin_of_the_frame) + { + bool has_dock_node = (window->DockId != 0 || window->DockNode != NULL); + bool new_auto_dock_node = !has_dock_node && GetWindowAlwaysWantOwnTabBar(window); + bool dock_node_was_visible = window->DockNodeIsVisible; + bool dock_tab_was_visible = window->DockTabIsVisible; + if (has_dock_node || new_auto_dock_node) + { + BeginDocked(window, p_open); + flags = window->Flags; + if (window->DockIsActive) + { + IM_ASSERT(window->DockNode != NULL); + g.NextWindowData.Flags &= ~ImGuiNextWindowDataFlags_HasSizeConstraint; // Docking currently override constraints + } + + // Amend the Appearing flag + if (window->DockTabIsVisible && !dock_tab_was_visible && dock_node_was_visible && !window->Appearing && !window_was_appearing) + { + window->Appearing = true; + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, true); + } + } + else + { + window->DockIsActive = window->DockNodeIsVisible = window->DockTabIsVisible = false; + } + } + + // Parent window is latched only on the first call to Begin() of the frame, so further append-calls can be done from a different window stack + ImGuiWindow* parent_window_in_stack = (window->DockIsActive && window->DockNode->HostWindow) ? window->DockNode->HostWindow : g.CurrentWindowStack.empty() ? NULL : g.CurrentWindowStack.back().Window; + ImGuiWindow* parent_window = first_begin_of_the_frame ? ((flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup)) ? parent_window_in_stack : NULL) : window->ParentWindow; + IM_ASSERT(parent_window != NULL || !(flags & ImGuiWindowFlags_ChildWindow)); + + // We allow window memory to be compacted so recreate the base stack when needed. + if (window->IDStack.Size == 0) + window->IDStack.push_back(window->ID); + + // Add to stack + g.CurrentWindow = window; + ImGuiWindowStackData window_stack_data; + window_stack_data.Window = window; + window_stack_data.ParentLastItemDataBackup = g.LastItemData; + window_stack_data.StackSizesOnBegin.SetToContextState(&g); + g.CurrentWindowStack.push_back(window_stack_data); + if (flags & ImGuiWindowFlags_ChildMenu) + g.BeginMenuCount++; + + // Update ->RootWindow and others pointers (before any possible call to FocusWindow) + if (first_begin_of_the_frame) + { + UpdateWindowParentAndRootLinks(window, flags, parent_window); + window->ParentWindowInBeginStack = parent_window_in_stack; + } + + // Add to focus scope stack + // We intentionally set g.CurrentWindow to NULL to prevent usage until when the viewport is set, then will call SetCurrentWindow() + PushFocusScope(window->ID); + window->NavRootFocusScopeId = g.CurrentFocusScopeId; + g.CurrentWindow = NULL; + + // Add to popup stack + if (flags & ImGuiWindowFlags_Popup) + { + ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; + popup_ref.Window = window; + popup_ref.ParentNavLayer = parent_window_in_stack->DC.NavLayerCurrent; + g.BeginPopupStack.push_back(popup_ref); + window->PopupId = popup_ref.PopupId; + } + + // Process SetNextWindow***() calls + // (FIXME: Consider splitting the HasXXX flags into X/Y components + bool window_pos_set_by_api = false; + bool window_size_x_set_by_api = false, window_size_y_set_by_api = false; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) + { + window_pos_set_by_api = (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) != 0; + if (window_pos_set_by_api && ImLengthSqr(g.NextWindowData.PosPivotVal) > 0.00001f) + { + // May be processed on the next frame if this is our first frame and we are measuring size + // FIXME: Look into removing the branch so everything can go through this same code path for consistency. + window->SetWindowPosVal = g.NextWindowData.PosVal; + window->SetWindowPosPivot = g.NextWindowData.PosPivotVal; + window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + } + else + { + SetWindowPos(window, g.NextWindowData.PosVal, g.NextWindowData.PosCond); + } + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize) + { + window_size_x_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.x > 0.0f); + window_size_y_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.y > 0.0f); + SetWindowSize(window, g.NextWindowData.SizeVal, g.NextWindowData.SizeCond); + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasScroll) + { + if (g.NextWindowData.ScrollVal.x >= 0.0f) + { + window->ScrollTarget.x = g.NextWindowData.ScrollVal.x; + window->ScrollTargetCenterRatio.x = 0.0f; + } + if (g.NextWindowData.ScrollVal.y >= 0.0f) + { + window->ScrollTarget.y = g.NextWindowData.ScrollVal.y; + window->ScrollTargetCenterRatio.y = 0.0f; + } + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasContentSize) + window->ContentSizeExplicit = g.NextWindowData.ContentSizeVal; + else if (first_begin_of_the_frame) + window->ContentSizeExplicit = ImVec2(0.0f, 0.0f); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasWindowClass) + window->WindowClass = g.NextWindowData.WindowClass; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasCollapsed) + SetWindowCollapsed(window, g.NextWindowData.CollapsedVal, g.NextWindowData.CollapsedCond); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasFocus) + FocusWindow(window); + if (window->Appearing) + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, false); + + // When reusing window again multiple times a frame, just append content (don't need to setup again) + if (first_begin_of_the_frame) + { + // Initialize + const bool window_is_child_tooltip = (flags & ImGuiWindowFlags_ChildWindow) && (flags & ImGuiWindowFlags_Tooltip); // FIXME-WIP: Undocumented behavior of Child+Tooltip for pinned tooltip (#1345) + const bool window_just_appearing_after_hidden_for_resize = (window->HiddenFramesCannotSkipItems > 0); + window->Active = true; + window->HasCloseButton = (p_open != NULL); + window->ClipRect = ImVec4(-FLT_MAX, -FLT_MAX, +FLT_MAX, +FLT_MAX); + window->IDStack.resize(1); + window->DrawList->_ResetForNewFrame(); + window->DC.CurrentTableIdx = -1; + if (flags & ImGuiWindowFlags_DockNodeHost) + { + window->DrawList->ChannelsSplit(2); + window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); // Render decorations on channel 1 as we will render the backgrounds manually later + } + + // Restore buffer capacity when woken from a compacted state, to avoid + if (window->MemoryCompacted) + GcAwakeTransientWindowBuffers(window); + + // Update stored window name when it changes (which can _only_ happen with the "###" operator, so the ID would stay unchanged). + // The title bar always display the 'name' parameter, so we only update the string storage if it needs to be visible to the end-user elsewhere. + bool window_title_visible_elsewhere = false; + if ((window->Viewport && window->Viewport->Window == window) || (window->DockIsActive)) + window_title_visible_elsewhere = true; + else if (g.NavWindowingListWindow != NULL && (window->Flags & ImGuiWindowFlags_NoNavFocus) == 0) // Window titles visible when using CTRL+TAB + window_title_visible_elsewhere = true; + if (window_title_visible_elsewhere && !window_just_created && strcmp(name, window->Name) != 0) + { + size_t buf_len = (size_t)window->NameBufLen; + window->Name = ImStrdupcpy(window->Name, &buf_len, name); + window->NameBufLen = (int)buf_len; + } + + // UPDATE CONTENTS SIZE, UPDATE HIDDEN STATUS + + // Update contents size from last frame for auto-fitting (or use explicit size) + CalcWindowContentSizes(window, &window->ContentSize, &window->ContentSizeIdeal); + + // FIXME: These flags are decremented before they are used. This means that in order to have these fields produce their intended behaviors + // for one frame we must set them to at least 2, which is counter-intuitive. HiddenFramesCannotSkipItems is a more complicated case because + // it has a single usage before this code block and may be set below before it is finally checked. + if (window->HiddenFramesCanSkipItems > 0) + window->HiddenFramesCanSkipItems--; + if (window->HiddenFramesCannotSkipItems > 0) + window->HiddenFramesCannotSkipItems--; + if (window->HiddenFramesForRenderOnly > 0) + window->HiddenFramesForRenderOnly--; + + // Hide new windows for one frame until they calculate their size + if (window_just_created && (!window_size_x_set_by_api || !window_size_y_set_by_api)) + window->HiddenFramesCannotSkipItems = 1; + + // Hide popup/tooltip window when re-opening while we measure size (because we recycle the windows) + // We reset Size/ContentSize for reappearing popups/tooltips early in this function, so further code won't be tempted to use the old size. + if (window_just_activated_by_user && (flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) != 0) + { + window->HiddenFramesCannotSkipItems = 1; + if (flags & ImGuiWindowFlags_AlwaysAutoResize) + { + if (!window_size_x_set_by_api) + window->Size.x = window->SizeFull.x = 0.f; + if (!window_size_y_set_by_api) + window->Size.y = window->SizeFull.y = 0.f; + window->ContentSize = window->ContentSizeIdeal = ImVec2(0.f, 0.f); + } + } + + // SELECT VIEWPORT + // We need to do this before using any style/font sizes, as viewport with a different DPI may affect font sizes. + + WindowSelectViewport(window); + SetCurrentViewport(window, window->Viewport); + window->FontDpiScale = (g.IO.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleFonts) ? window->Viewport->DpiScale : 1.0f; + SetCurrentWindow(window); + flags = window->Flags; + + // LOCK BORDER SIZE AND PADDING FOR THE FRAME (so that altering them doesn't cause inconsistencies) + // We read Style data after the call to UpdateSelectWindowViewport() which might be swapping the style. + + if (!window->DockIsActive && (flags & ImGuiWindowFlags_ChildWindow)) + window->WindowBorderSize = style.ChildBorderSize; + else + window->WindowBorderSize = ((flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupBorderSize : style.WindowBorderSize; + if (!window->DockIsActive && (flags & ImGuiWindowFlags_ChildWindow) && !(flags & (ImGuiWindowFlags_AlwaysUseWindowPadding | ImGuiWindowFlags_Popup)) && window->WindowBorderSize == 0.0f) + window->WindowPadding = ImVec2(0.0f, (flags & ImGuiWindowFlags_MenuBar) ? style.WindowPadding.y : 0.0f); + else + window->WindowPadding = style.WindowPadding; + + // Lock menu offset so size calculation can use it as menu-bar windows need a minimum size. + window->DC.MenuBarOffset.x = ImMax(ImMax(window->WindowPadding.x, style.ItemSpacing.x), g.NextWindowData.MenuBarOffsetMinVal.x); + window->DC.MenuBarOffset.y = g.NextWindowData.MenuBarOffsetMinVal.y; + + bool use_current_size_for_scrollbar_x = window_just_created; + bool use_current_size_for_scrollbar_y = window_just_created; + + // Collapse window by double-clicking on title bar + // At this point we don't have a clipping rectangle setup yet, so we can use the title bar area for hit detection and drawing + if (!(flags & ImGuiWindowFlags_NoTitleBar) && !(flags & ImGuiWindowFlags_NoCollapse) && !window->DockIsActive) + { + // We don't use a regular button+id to test for double-click on title bar (mostly due to legacy reason, could be fixed), so verify that we don't have items over the title bar. + ImRect title_bar_rect = window->TitleBarRect(); + if (g.HoveredWindow == window && g.HoveredId == 0 && g.HoveredIdPreviousFrame == 0 && IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max) && g.IO.MouseClickedCount[0] == 2) + window->WantCollapseToggle = true; + if (window->WantCollapseToggle) + { + window->Collapsed = !window->Collapsed; + if (!window->Collapsed) + use_current_size_for_scrollbar_y = true; + MarkIniSettingsDirty(window); + } + } + else + { + window->Collapsed = false; + } + window->WantCollapseToggle = false; + + // SIZE + + // Outer Decoration Sizes + // (we need to clear ScrollbarSize immediatly as CalcWindowAutoFitSize() needs it and can be called from other locations). + const ImVec2 scrollbar_sizes_from_last_frame = window->ScrollbarSizes; + window->DecoOuterSizeX1 = 0.0f; + window->DecoOuterSizeX2 = 0.0f; + window->DecoOuterSizeY1 = window->TitleBarHeight() + window->MenuBarHeight(); + window->DecoOuterSizeY2 = 0.0f; + window->ScrollbarSizes = ImVec2(0.0f, 0.0f); + + // Calculate auto-fit size, handle automatic resize + const ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, window->ContentSizeIdeal); + if ((flags & ImGuiWindowFlags_AlwaysAutoResize) && !window->Collapsed) + { + // Using SetNextWindowSize() overrides ImGuiWindowFlags_AlwaysAutoResize, so it can be used on tooltips/popups, etc. + if (!window_size_x_set_by_api) + { + window->SizeFull.x = size_auto_fit.x; + use_current_size_for_scrollbar_x = true; + } + if (!window_size_y_set_by_api) + { + window->SizeFull.y = size_auto_fit.y; + use_current_size_for_scrollbar_y = true; + } + } + else if (window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) + { + // Auto-fit may only grow window during the first few frames + // We still process initial auto-fit on collapsed windows to get a window width, but otherwise don't honor ImGuiWindowFlags_AlwaysAutoResize when collapsed. + if (!window_size_x_set_by_api && window->AutoFitFramesX > 0) + { + window->SizeFull.x = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.x, size_auto_fit.x) : size_auto_fit.x; + use_current_size_for_scrollbar_x = true; + } + if (!window_size_y_set_by_api && window->AutoFitFramesY > 0) + { + window->SizeFull.y = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.y, size_auto_fit.y) : size_auto_fit.y; + use_current_size_for_scrollbar_y = true; + } + if (!window->Collapsed) + MarkIniSettingsDirty(window); + } + + // Apply minimum/maximum window size constraints and final size + window->SizeFull = CalcWindowSizeAfterConstraint(window, window->SizeFull); + window->Size = window->Collapsed && !(flags & ImGuiWindowFlags_ChildWindow) ? window->TitleBarRect().GetSize() : window->SizeFull; + + // POSITION + + // Popup latch its initial position, will position itself when it appears next frame + if (window_just_activated_by_user) + { + window->AutoPosLastDirection = ImGuiDir_None; + if ((flags & ImGuiWindowFlags_Popup) != 0 && !(flags & ImGuiWindowFlags_Modal) && !window_pos_set_by_api) // FIXME: BeginPopup() could use SetNextWindowPos() + window->Pos = g.BeginPopupStack.back().OpenPopupPos; + } + + // Position child window + if (flags & ImGuiWindowFlags_ChildWindow) + { + IM_ASSERT(parent_window && parent_window->Active); + window->BeginOrderWithinParent = (short)parent_window->DC.ChildWindows.Size; + parent_window->DC.ChildWindows.push_back(window); + if (!(flags & ImGuiWindowFlags_Popup) && !window_pos_set_by_api && !window_is_child_tooltip) + window->Pos = parent_window->DC.CursorPos; + } + + const bool window_pos_with_pivot = (window->SetWindowPosVal.x != FLT_MAX && window->HiddenFramesCannotSkipItems == 0); + if (window_pos_with_pivot) + SetWindowPos(window, window->SetWindowPosVal - window->Size * window->SetWindowPosPivot, 0); // Position given a pivot (e.g. for centering) + else if ((flags & ImGuiWindowFlags_ChildMenu) != 0) + window->Pos = FindBestWindowPosForPopup(window); + else if ((flags & ImGuiWindowFlags_Popup) != 0 && !window_pos_set_by_api && window_just_appearing_after_hidden_for_resize) + window->Pos = FindBestWindowPosForPopup(window); + else if ((flags & ImGuiWindowFlags_Tooltip) != 0 && !window_pos_set_by_api && !window_is_child_tooltip) + window->Pos = FindBestWindowPosForPopup(window); + + // Late create viewport if we don't fit within our current host viewport. + if (window->ViewportAllowPlatformMonitorExtend >= 0 && !window->ViewportOwned && !(window->Viewport->Flags & ImGuiViewportFlags_IsMinimized)) + if (!window->Viewport->GetMainRect().Contains(window->Rect())) + { + // This is based on the assumption that the DPI will be known ahead (same as the DPI of the selection done in UpdateSelectWindowViewport) + //ImGuiViewport* old_viewport = window->Viewport; + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_NoFocusOnAppearing); + + // FIXME-DPI + //IM_ASSERT(old_viewport->DpiScale == window->Viewport->DpiScale); // FIXME-DPI: Something went wrong + SetCurrentViewport(window, window->Viewport); + window->FontDpiScale = (g.IO.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleFonts) ? window->Viewport->DpiScale : 1.0f; + SetCurrentWindow(window); + } + + if (window->ViewportOwned) + WindowSyncOwnedViewport(window, parent_window_in_stack); + + // Calculate the range of allowed position for that window (to be movable and visible past safe area padding) + // When clamping to stay visible, we will enforce that window->Pos stays inside of visibility_rect. + ImRect viewport_rect(window->Viewport->GetMainRect()); + ImRect viewport_work_rect(window->Viewport->GetWorkRect()); + ImVec2 visibility_padding = ImMax(style.DisplayWindowPadding, style.DisplaySafeAreaPadding); + ImRect visibility_rect(viewport_work_rect.Min + visibility_padding, viewport_work_rect.Max - visibility_padding); + + // Clamp position/size so window stays visible within its viewport or monitor + // Ignore zero-sized display explicitly to avoid losing positions if a window manager reports zero-sized window when initializing or minimizing. + // FIXME: Similar to code in GetWindowAllowedExtentRect() + if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow)) + { + if (!window->ViewportOwned && viewport_rect.GetWidth() > 0 && viewport_rect.GetHeight() > 0.0f) + { + ClampWindowPos(window, visibility_rect); + } + else if (window->ViewportOwned && g.PlatformIO.Monitors.Size > 0) + { + // Lost windows (e.g. a monitor disconnected) will naturally moved to the fallback/dummy monitor aka the main viewport. + const ImGuiPlatformMonitor* monitor = GetViewportPlatformMonitor(window->Viewport); + visibility_rect.Min = monitor->WorkPos + visibility_padding; + visibility_rect.Max = monitor->WorkPos + monitor->WorkSize - visibility_padding; + ClampWindowPos(window, visibility_rect); + } + } + window->Pos = ImTrunc(window->Pos); + + // Lock window rounding for the frame (so that altering them doesn't cause inconsistencies) + // Large values tend to lead to variety of artifacts and are not recommended. + if (window->ViewportOwned || window->DockIsActive) + window->WindowRounding = 0.0f; + else + window->WindowRounding = (flags & ImGuiWindowFlags_ChildWindow) ? style.ChildRounding : ((flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupRounding : style.WindowRounding; + + // For windows with title bar or menu bar, we clamp to FrameHeight(FontSize + FramePadding.y * 2.0f) to completely hide artifacts. + //if ((window->Flags & ImGuiWindowFlags_MenuBar) || !(window->Flags & ImGuiWindowFlags_NoTitleBar)) + // window->WindowRounding = ImMin(window->WindowRounding, g.FontSize + style.FramePadding.y * 2.0f); + + // Apply window focus (new and reactivated windows are moved to front) + bool want_focus = false; + if (window_just_activated_by_user && !(flags & ImGuiWindowFlags_NoFocusOnAppearing)) + { + if (flags & ImGuiWindowFlags_Popup) + want_focus = true; + else if ((window->DockIsActive || (flags & ImGuiWindowFlags_ChildWindow) == 0) && !(flags & ImGuiWindowFlags_Tooltip)) + want_focus = true; + } + + // [Test Engine] Register whole window in the item system (before submitting further decorations) +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (g.TestEngineHookItems) + { + IM_ASSERT(window->IDStack.Size == 1); + window->IDStack.Size = 0; // As window->IDStack[0] == window->ID here, make sure TestEngine doesn't erroneously see window as parent of itself. + IMGUI_TEST_ENGINE_ITEM_ADD(window->ID, window->Rect(), NULL); + IMGUI_TEST_ENGINE_ITEM_INFO(window->ID, window->Name, (g.HoveredWindow == window) ? ImGuiItemStatusFlags_HoveredRect : 0); + window->IDStack.Size = 1; + } +#endif + + // Decide if we are going to handle borders and resize grips + const bool handle_borders_and_resize_grips = (window->DockNodeAsHost || !window->DockIsActive); + + // Handle manual resize: Resize Grips, Borders, Gamepad + int border_held = -1; + ImU32 resize_grip_col[4] = {}; + const int resize_grip_count = g.IO.ConfigWindowsResizeFromEdges ? 2 : 1; // Allow resize from lower-left if we have the mouse cursor feedback for it. + const float resize_grip_draw_size = IM_TRUNC(ImMax(g.FontSize * 1.10f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); + if (handle_borders_and_resize_grips && !window->Collapsed) + if (UpdateWindowManualResize(window, size_auto_fit, &border_held, resize_grip_count, &resize_grip_col[0], visibility_rect)) + use_current_size_for_scrollbar_x = use_current_size_for_scrollbar_y = true; + window->ResizeBorderHeld = (signed char)border_held; + + // Synchronize window --> viewport again and one last time (clamping and manual resize may have affected either) + if (window->ViewportOwned) + { + if (!window->Viewport->PlatformRequestMove) + window->Viewport->Pos = window->Pos; + if (!window->Viewport->PlatformRequestResize) + window->Viewport->Size = window->Size; + window->Viewport->UpdateWorkRect(); + viewport_rect = window->Viewport->GetMainRect(); + } + + // Save last known viewport position within the window itself (so it can be saved in .ini file and restored) + window->ViewportPos = window->Viewport->Pos; + + // SCROLLBAR VISIBILITY + + // Update scrollbar visibility (based on the Size that was effective during last frame or the auto-resized Size). + if (!window->Collapsed) + { + // When reading the current size we need to read it after size constraints have been applied. + // Intentionally use previous frame values for InnerRect and ScrollbarSizes. + // And when we use window->DecorationUp here it doesn't have ScrollbarSizes.y applied yet. + ImVec2 avail_size_from_current_frame = ImVec2(window->SizeFull.x, window->SizeFull.y - (window->DecoOuterSizeY1 + window->DecoOuterSizeY2)); + ImVec2 avail_size_from_last_frame = window->InnerRect.GetSize() + scrollbar_sizes_from_last_frame; + ImVec2 needed_size_from_last_frame = window_just_created ? ImVec2(0, 0) : window->ContentSize + window->WindowPadding * 2.0f; + float size_x_for_scrollbars = use_current_size_for_scrollbar_x ? avail_size_from_current_frame.x : avail_size_from_last_frame.x; + float size_y_for_scrollbars = use_current_size_for_scrollbar_y ? avail_size_from_current_frame.y : avail_size_from_last_frame.y; + //bool scrollbar_y_from_last_frame = window->ScrollbarY; // FIXME: May want to use that in the ScrollbarX expression? How many pros vs cons? + window->ScrollbarY = (flags & ImGuiWindowFlags_AlwaysVerticalScrollbar) || ((needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar)); + window->ScrollbarX = (flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar) || ((needed_size_from_last_frame.x > size_x_for_scrollbars - (window->ScrollbarY ? style.ScrollbarSize : 0.0f)) && !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar)); + if (window->ScrollbarX && !window->ScrollbarY) + window->ScrollbarY = (needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar); + window->ScrollbarSizes = ImVec2(window->ScrollbarY ? style.ScrollbarSize : 0.0f, window->ScrollbarX ? style.ScrollbarSize : 0.0f); + + // Amend the partially filled window->DecorationXXX values. + window->DecoOuterSizeX2 += window->ScrollbarSizes.x; + window->DecoOuterSizeY2 += window->ScrollbarSizes.y; + } + + // UPDATE RECTANGLES (1- THOSE NOT AFFECTED BY SCROLLING) + // Update various regions. Variables they depend on should be set above in this function. + // We set this up after processing the resize grip so that our rectangles doesn't lag by a frame. + + // Outer rectangle + // Not affected by window border size. Used by: + // - FindHoveredWindow() (w/ extra padding when border resize is enabled) + // - Begin() initial clipping rect for drawing window background and borders. + // - Begin() clipping whole child + const ImRect host_rect = ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) ? parent_window->ClipRect : viewport_rect; + const ImRect outer_rect = window->Rect(); + const ImRect title_bar_rect = window->TitleBarRect(); + window->OuterRectClipped = outer_rect; + if (window->DockIsActive) + window->OuterRectClipped.Min.y += window->TitleBarHeight(); + window->OuterRectClipped.ClipWith(host_rect); + + // Inner rectangle + // Not affected by window border size. Used by: + // - InnerClipRect + // - ScrollToRectEx() + // - NavUpdatePageUpPageDown() + // - Scrollbar() + window->InnerRect.Min.x = window->Pos.x + window->DecoOuterSizeX1; + window->InnerRect.Min.y = window->Pos.y + window->DecoOuterSizeY1; + window->InnerRect.Max.x = window->Pos.x + window->Size.x - window->DecoOuterSizeX2; + window->InnerRect.Max.y = window->Pos.y + window->Size.y - window->DecoOuterSizeY2; + + // Inner clipping rectangle. + // Will extend a little bit outside the normal work region. + // This is to allow e.g. Selectable or CollapsingHeader or some separators to cover that space. + // Force round operator last to ensure that e.g. (int)(max.x-min.x) in user's render code produce correct result. + // Note that if our window is collapsed we will end up with an inverted (~null) clipping rectangle which is the correct behavior. + // Affected by window/frame border size. Used by: + // - Begin() initial clip rect + float top_border_size = (((flags & ImGuiWindowFlags_MenuBar) || !(flags & ImGuiWindowFlags_NoTitleBar)) ? style.FrameBorderSize : window->WindowBorderSize); + window->InnerClipRect.Min.x = ImFloor(0.5f + window->InnerRect.Min.x + ImMax(ImTrunc(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); + window->InnerClipRect.Min.y = ImFloor(0.5f + window->InnerRect.Min.y + top_border_size); + window->InnerClipRect.Max.x = ImFloor(0.5f + window->InnerRect.Max.x - ImMax(ImTrunc(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); + window->InnerClipRect.Max.y = ImFloor(0.5f + window->InnerRect.Max.y - window->WindowBorderSize); + window->InnerClipRect.ClipWithFull(host_rect); + + // Default item width. Make it proportional to window size if window manually resizes + if (window->Size.x > 0.0f && !(flags & ImGuiWindowFlags_Tooltip) && !(flags & ImGuiWindowFlags_AlwaysAutoResize)) + window->ItemWidthDefault = ImTrunc(window->Size.x * 0.65f); + else + window->ItemWidthDefault = ImTrunc(g.FontSize * 16.0f); + + // SCROLLING + + // Lock down maximum scrolling + // The value of ScrollMax are ahead from ScrollbarX/ScrollbarY which is intentionally using InnerRect from previous rect in order to accommodate + // for right/bottom aligned items without creating a scrollbar. + window->ScrollMax.x = ImMax(0.0f, window->ContentSize.x + window->WindowPadding.x * 2.0f - window->InnerRect.GetWidth()); + window->ScrollMax.y = ImMax(0.0f, window->ContentSize.y + window->WindowPadding.y * 2.0f - window->InnerRect.GetHeight()); + + // Apply scrolling + window->Scroll = CalcNextScrollFromScrollTargetAndClamp(window); + window->ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); + window->DecoInnerSizeX1 = window->DecoInnerSizeY1 = 0.0f; + + // DRAWING + + // Setup draw list and outer clipping rectangle + IM_ASSERT(window->DrawList->CmdBuffer.Size == 1 && window->DrawList->CmdBuffer[0].ElemCount == 0); + window->DrawList->PushTextureID(g.Font->ContainerAtlas->TexID); + PushClipRect(host_rect.Min, host_rect.Max, false); + + // Child windows can render their decoration (bg color, border, scrollbars, etc.) within their parent to save a draw call (since 1.71) + // When using overlapping child windows, this will break the assumption that child z-order is mapped to submission order. + // FIXME: User code may rely on explicit sorting of overlapping child window and would need to disable this somehow. Please get in contact if you are affected (github #4493) + const bool is_undocked_or_docked_visible = !window->DockIsActive || window->DockTabIsVisible; + if (is_undocked_or_docked_visible) + { + bool render_decorations_in_parent = false; + if ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) + { + // - We test overlap with the previous child window only (testing all would end up being O(log N) not a good investment here) + // - We disable this when the parent window has zero vertices, which is a common pattern leading to laying out multiple overlapping childs + ImGuiWindow* previous_child = parent_window->DC.ChildWindows.Size >= 2 ? parent_window->DC.ChildWindows[parent_window->DC.ChildWindows.Size - 2] : NULL; + bool previous_child_overlapping = previous_child ? previous_child->Rect().Overlaps(window->Rect()) : false; + bool parent_is_empty = (parent_window->DrawList->VtxBuffer.Size == 0); + if (window->DrawList->CmdBuffer.back().ElemCount == 0 && !parent_is_empty && !previous_child_overlapping) + render_decorations_in_parent = true; + } + if (render_decorations_in_parent) + window->DrawList = parent_window->DrawList; + + // Handle title bar, scrollbar, resize grips and resize borders + const ImGuiWindow* window_to_highlight = g.NavWindowingTarget ? g.NavWindowingTarget : g.NavWindow; + const bool title_bar_is_highlight = want_focus || (window_to_highlight && (window->RootWindowForTitleBarHighlight == window_to_highlight->RootWindowForTitleBarHighlight || (window->DockNode && window->DockNode == window_to_highlight->DockNode))); + RenderWindowDecorations(window, title_bar_rect, title_bar_is_highlight, handle_borders_and_resize_grips, resize_grip_count, resize_grip_col, resize_grip_draw_size); + + if (render_decorations_in_parent) + window->DrawList = &window->DrawListInst; + } + + // UPDATE RECTANGLES (2- THOSE AFFECTED BY SCROLLING) + + // Work rectangle. + // Affected by window padding and border size. Used by: + // - Columns() for right-most edge + // - TreeNode(), CollapsingHeader() for right-most edge + // - BeginTabBar() for right-most edge + const bool allow_scrollbar_x = !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar); + const bool allow_scrollbar_y = !(flags & ImGuiWindowFlags_NoScrollbar); + const float work_rect_size_x = (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : ImMax(allow_scrollbar_x ? window->ContentSize.x : 0.0f, window->Size.x - window->WindowPadding.x * 2.0f - (window->DecoOuterSizeX1 + window->DecoOuterSizeX2))); + const float work_rect_size_y = (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : ImMax(allow_scrollbar_y ? window->ContentSize.y : 0.0f, window->Size.y - window->WindowPadding.y * 2.0f - (window->DecoOuterSizeY1 + window->DecoOuterSizeY2))); + window->WorkRect.Min.x = ImTrunc(window->InnerRect.Min.x - window->Scroll.x + ImMax(window->WindowPadding.x, window->WindowBorderSize)); + window->WorkRect.Min.y = ImTrunc(window->InnerRect.Min.y - window->Scroll.y + ImMax(window->WindowPadding.y, window->WindowBorderSize)); + window->WorkRect.Max.x = window->WorkRect.Min.x + work_rect_size_x; + window->WorkRect.Max.y = window->WorkRect.Min.y + work_rect_size_y; + window->ParentWorkRect = window->WorkRect; + + // [LEGACY] Content Region + // FIXME-OBSOLETE: window->ContentRegionRect.Max is currently very misleading / partly faulty, but some BeginChild() patterns relies on it. + // Unless explicit content size is specified by user, this currently represent the region leading to no scrolling. + // Used by: + // - Mouse wheel scrolling + many other things + window->ContentRegionRect.Min.x = window->Pos.x - window->Scroll.x + window->WindowPadding.x + window->DecoOuterSizeX1; + window->ContentRegionRect.Min.y = window->Pos.y - window->Scroll.y + window->WindowPadding.y + window->DecoOuterSizeY1; + window->ContentRegionRect.Max.x = window->ContentRegionRect.Min.x + (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : (window->Size.x - window->WindowPadding.x * 2.0f - (window->DecoOuterSizeX1 + window->DecoOuterSizeX2))); + window->ContentRegionRect.Max.y = window->ContentRegionRect.Min.y + (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : (window->Size.y - window->WindowPadding.y * 2.0f - (window->DecoOuterSizeY1 + window->DecoOuterSizeY2))); + + // Setup drawing context + // (NB: That term "drawing context / DC" lost its meaning a long time ago. Initially was meant to hold transient data only. Nowadays difference between window-> and window->DC-> is dubious.) + window->DC.Indent.x = window->DecoOuterSizeX1 + window->WindowPadding.x - window->Scroll.x; + window->DC.GroupOffset.x = 0.0f; + window->DC.ColumnsOffset.x = 0.0f; + + // Record the loss of precision of CursorStartPos which can happen due to really large scrolling amount. + // This is used by clipper to compensate and fix the most common use case of large scroll area. Easy and cheap, next best thing compared to switching everything to double or ImU64. + double start_pos_highp_x = (double)window->Pos.x + window->WindowPadding.x - (double)window->Scroll.x + window->DecoOuterSizeX1 + window->DC.ColumnsOffset.x; + double start_pos_highp_y = (double)window->Pos.y + window->WindowPadding.y - (double)window->Scroll.y + window->DecoOuterSizeY1; + window->DC.CursorStartPos = ImVec2((float)start_pos_highp_x, (float)start_pos_highp_y); + window->DC.CursorStartPosLossyness = ImVec2((float)(start_pos_highp_x - window->DC.CursorStartPos.x), (float)(start_pos_highp_y - window->DC.CursorStartPos.y)); + window->DC.CursorPos = window->DC.CursorStartPos; + window->DC.CursorPosPrevLine = window->DC.CursorPos; + window->DC.CursorMaxPos = window->DC.CursorStartPos; + window->DC.IdealMaxPos = window->DC.CursorStartPos; + window->DC.CurrLineSize = window->DC.PrevLineSize = ImVec2(0.0f, 0.0f); + window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; + + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + window->DC.NavLayersActiveMask = window->DC.NavLayersActiveMaskNext; + window->DC.NavLayersActiveMaskNext = 0x00; + window->DC.NavIsScrollPushableX = true; + window->DC.NavHideHighlightOneFrame = false; + window->DC.NavWindowHasScrollY = (window->ScrollMax.y > 0.0f); + + window->DC.MenuBarAppending = false; + window->DC.MenuColumns.Update(style.ItemSpacing.x, window_just_activated_by_user); + window->DC.TreeDepth = 0; + window->DC.TreeJumpToParentOnPopMask = 0x00; + window->DC.ChildWindows.resize(0); + window->DC.StateStorage = &window->StateStorage; + window->DC.CurrentColumns = NULL; + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.ParentLayoutType = parent_window ? parent_window->DC.LayoutType : ImGuiLayoutType_Vertical; + + window->DC.ItemWidth = window->ItemWidthDefault; + window->DC.TextWrapPos = -1.0f; // disabled + window->DC.ItemWidthStack.resize(0); + window->DC.TextWrapPosStack.resize(0); + + if (window->AutoFitFramesX > 0) + window->AutoFitFramesX--; + if (window->AutoFitFramesY > 0) + window->AutoFitFramesY--; + + // Apply focus (we need to call FocusWindow() AFTER setting DC.CursorStartPos so our initial navigation reference rectangle can start around there) + // We ImGuiFocusRequestFlags_UnlessBelowModal to: + // - Avoid focusing a window that is created outside of a modal. This will prevent active modal from being closed. + // - Position window behind the modal that is not a begin-parent of this window. + if (want_focus) + FocusWindow(window, ImGuiFocusRequestFlags_UnlessBelowModal); + if (want_focus && window == g.NavWindow) + NavInitWindow(window, false); // <-- this is in the way for us to be able to defer and sort reappearing FocusWindow() calls + + // Close requested by platform window (apply to all windows in this viewport) + if (p_open != NULL && window->Viewport->PlatformRequestClose && window->Viewport != GetMainViewport()) + { + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Window '%s' closed by PlatformRequestClose\n", window->Name); + *p_open = false; + g.NavWindowingToggleLayer = false; // Assume user mapped PlatformRequestClose on ALT-F4 so we disable ALT for menu toggle. False positive not an issue. // FIXME-NAV: Try removing. + } + + // Title bar + if (!(flags & ImGuiWindowFlags_NoTitleBar) && !window->DockIsActive) + RenderWindowTitleBarContents(window, ImRect(title_bar_rect.Min.x + window->WindowBorderSize, title_bar_rect.Min.y, title_bar_rect.Max.x - window->WindowBorderSize, title_bar_rect.Max.y), name, p_open); + + // Clear hit test shape every frame + window->HitTestHoleSize.x = window->HitTestHoleSize.y = 0; + + // Pressing CTRL+C while holding on a window copy its content to the clipboard + // This works but 1. doesn't handle multiple Begin/End pairs, 2. recursing into another Begin/End pair - so we need to work that out and add better logging scope. + // Maybe we can support CTRL+C on every element? + /* + //if (g.NavWindow == window && g.ActiveId == 0) + if (g.ActiveId == window->MoveId) + if (g.IO.KeyCtrl && IsKeyPressed(ImGuiKey_C)) + LogToClipboard(); + */ + + if (g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable) + { + // Docking: Dragging a dockable window (or any of its child) turns it into a drag and drop source. + // We need to do this _before_ we overwrite window->DC.LastItemId below because BeginDockableDragDropSource() also overwrites it. + if (g.MovingWindow == window && (window->RootWindowDockTree->Flags & ImGuiWindowFlags_NoDocking) == 0) + BeginDockableDragDropSource(window); + + // Docking: Any dockable window can act as a target. For dock node hosts we call BeginDockableDragDropTarget() in DockNodeUpdate() instead. + if (g.DragDropActive && !(flags & ImGuiWindowFlags_NoDocking)) + if (g.MovingWindow == NULL || g.MovingWindow->RootWindowDockTree != window) + if ((window == window->RootWindowDockTree) && !(window->Flags & ImGuiWindowFlags_DockNodeHost)) + BeginDockableDragDropTarget(window); + } + + // We fill last item data based on Title Bar/Tab, in order for IsItemHovered() and IsItemActive() to be usable after Begin(). + // This is useful to allow creating context menus on title bar only, etc. + if (window->DockIsActive) + SetLastItemData(window->MoveId, g.CurrentItemFlags, window->DockTabItemStatusFlags, window->DockTabItemRect); + else + SetLastItemData(window->MoveId, g.CurrentItemFlags, IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max, false) ? ImGuiItemStatusFlags_HoveredRect : 0, title_bar_rect); + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (g.DebugLocateId != 0 && (window->ID == g.DebugLocateId || window->MoveId == g.DebugLocateId)) + DebugLocateItemResolveWithLastItem(); +#endif + + // [Test Engine] Register title bar / tab with MoveId. +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (!(window->Flags & ImGuiWindowFlags_NoTitleBar)) + IMGUI_TEST_ENGINE_ITEM_ADD(g.LastItemData.ID, g.LastItemData.Rect, &g.LastItemData); +#endif + } + else + { + // Append + SetCurrentViewport(window, window->Viewport); + SetCurrentWindow(window); + } + + if (!(flags & ImGuiWindowFlags_DockNodeHost)) + PushClipRect(window->InnerClipRect.Min, window->InnerClipRect.Max, true); + + // Clear 'accessed' flag last thing (After PushClipRect which will set the flag. We want the flag to stay false when the default "Debug" window is unused) + window->WriteAccessed = false; + window->BeginCount++; + g.NextWindowData.ClearFlags(); + + // Update visibility + if (first_begin_of_the_frame) + { + // When we are about to select this tab (which will only be visible on the _next frame_), flag it with a non-zero HiddenFramesCannotSkipItems. + // This will have the important effect of actually returning true in Begin() and not setting SkipItems, allowing an earlier submission of the window contents. + // This is analogous to regular windows being hidden from one frame. + // It is especially important as e.g. nested TabBars would otherwise generate flicker in the form of one empty frame, or focus requests won't be processed. + if (window->DockIsActive && !window->DockTabIsVisible) + { + if (window->LastFrameJustFocused == g.FrameCount) + window->HiddenFramesCannotSkipItems = 1; + else + window->HiddenFramesCanSkipItems = 1; + } + + if (flags & ImGuiWindowFlags_ChildWindow) + { + // Child window can be out of sight and have "negative" clip windows. + // Mark them as collapsed so commands are skipped earlier (we can't manually collapse them because they have no title bar). + IM_ASSERT((flags& ImGuiWindowFlags_NoTitleBar) != 0 || (window->DockIsActive)); + if (!(flags & ImGuiWindowFlags_AlwaysAutoResize) && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) // FIXME: Doesn't make sense for ChildWindow?? + { + const bool nav_request = (flags & ImGuiWindowFlags_NavFlattened) && (g.NavAnyRequest && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (!g.LogEnabled && !nav_request) + if (window->OuterRectClipped.Min.x >= window->OuterRectClipped.Max.x || window->OuterRectClipped.Min.y >= window->OuterRectClipped.Max.y) + window->HiddenFramesCanSkipItems = 1; + } + + // Hide along with parent or if parent is collapsed + if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCanSkipItems > 0)) + window->HiddenFramesCanSkipItems = 1; + if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCannotSkipItems > 0)) + window->HiddenFramesCannotSkipItems = 1; + } + + // Don't render if style alpha is 0.0 at the time of Begin(). This is arbitrary and inconsistent but has been there for a long while (may remove at some point) + if (style.Alpha <= 0.0f) + window->HiddenFramesCanSkipItems = 1; + + // Update the Hidden flag + bool hidden_regular = (window->HiddenFramesCanSkipItems > 0) || (window->HiddenFramesCannotSkipItems > 0); + window->Hidden = hidden_regular || (window->HiddenFramesForRenderOnly > 0); + + // Disable inputs for requested number of frames + if (window->DisableInputsFrames > 0) + { + window->DisableInputsFrames--; + window->Flags |= ImGuiWindowFlags_NoInputs; + } + + // Update the SkipItems flag, used to early out of all items functions (no layout required) + bool skip_items = false; + if (window->Collapsed || !window->Active || hidden_regular) + if (window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0 && window->HiddenFramesCannotSkipItems <= 0) + skip_items = true; + window->SkipItems = skip_items; + + // Restore NavLayersActiveMaskNext to previous value when not visible, so a CTRL+Tab back can use a safe value. + if (window->SkipItems) + window->DC.NavLayersActiveMaskNext = window->DC.NavLayersActiveMask; + + // Sanity check: there are two spots which can set Appearing = true + // - when 'window_just_activated_by_user' is set -> HiddenFramesCannotSkipItems is set -> SkipItems always false + // - in BeginDocked() path when DockNodeIsVisible == DockTabIsVisible == true -> hidden _should_ be all zero // FIXME: Not formally proven, hence the assert. + if (window->SkipItems && !window->Appearing) + IM_ASSERT(window->Appearing == false); // Please report on GitHub if this triggers: https://github.com/ocornut/imgui/issues/4177 + } + + // [DEBUG] io.ConfigDebugBeginReturnValue override return value to test Begin/End and BeginChild/EndChild behaviors. + // (The implicit fallback window is NOT automatically ended allowing it to always be able to receive commands without crashing) + if (!window->IsFallbackWindow && ((g.IO.ConfigDebugBeginReturnValueOnce && window_just_created) || (g.IO.ConfigDebugBeginReturnValueLoop && g.DebugBeginReturnValueCullDepth == g.CurrentWindowStack.Size))) + { + if (window->AutoFitFramesX > 0) { window->AutoFitFramesX++; } + if (window->AutoFitFramesY > 0) { window->AutoFitFramesY++; } + return false; + } + + return !window->SkipItems; +} + +void ImGui::End() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Error checking: verify that user hasn't called End() too many times! + if (g.CurrentWindowStack.Size <= 1 && g.WithinFrameScopeWithImplicitWindow) + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size > 1, "Calling End() too many times!"); + return; + } + IM_ASSERT(g.CurrentWindowStack.Size > 0); + + // Error checking: verify that user doesn't directly call End() on a child window. + if ((window->Flags & ImGuiWindowFlags_ChildWindow) && !(window->Flags & ImGuiWindowFlags_DockNodeHost) && !window->DockIsActive) + IM_ASSERT_USER_ERROR(g.WithinEndChild, "Must call EndChild() and not End()!"); + + // Close anything that is open + if (window->DC.CurrentColumns) + EndColumns(); + if (!(window->Flags & ImGuiWindowFlags_DockNodeHost)) // Pop inner window clip rectangle + PopClipRect(); + PopFocusScope(); + + // Stop logging + if (!(window->Flags & ImGuiWindowFlags_ChildWindow)) // FIXME: add more options for scope of logging + LogFinish(); + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + // Docking: report contents sizes to parent to allow for auto-resize + if (window->DockNode && window->DockTabIsVisible) + if (ImGuiWindow* host_window = window->DockNode->HostWindow) // FIXME-DOCK + host_window->DC.CursorMaxPos = window->DC.CursorMaxPos + window->WindowPadding - host_window->WindowPadding; + + // Pop from window stack + g.LastItemData = g.CurrentWindowStack.back().ParentLastItemDataBackup; + if (window->Flags & ImGuiWindowFlags_ChildMenu) + g.BeginMenuCount--; + if (window->Flags & ImGuiWindowFlags_Popup) + g.BeginPopupStack.pop_back(); + g.CurrentWindowStack.back().StackSizesOnBegin.CompareWithContextState(&g); + g.CurrentWindowStack.pop_back(); + SetCurrentWindow(g.CurrentWindowStack.Size == 0 ? NULL : g.CurrentWindowStack.back().Window); + if (g.CurrentWindow) + SetCurrentViewport(g.CurrentWindow, g.CurrentWindow->Viewport); +} + +void ImGui::BringWindowToFocusFront(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(window == window->RootWindow); + + const int cur_order = window->FocusOrder; + IM_ASSERT(g.WindowsFocusOrder[cur_order] == window); + if (g.WindowsFocusOrder.back() == window) + return; + + const int new_order = g.WindowsFocusOrder.Size - 1; + for (int n = cur_order; n < new_order; n++) + { + g.WindowsFocusOrder[n] = g.WindowsFocusOrder[n + 1]; + g.WindowsFocusOrder[n]->FocusOrder--; + IM_ASSERT(g.WindowsFocusOrder[n]->FocusOrder == n); + } + g.WindowsFocusOrder[new_order] = window; + window->FocusOrder = (short)new_order; +} + +void ImGui::BringWindowToDisplayFront(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* current_front_window = g.Windows.back(); + if (current_front_window == window || current_front_window->RootWindowDockTree == window) // Cheap early out (could be better) + return; + for (int i = g.Windows.Size - 2; i >= 0; i--) // We can ignore the top-most window + if (g.Windows[i] == window) + { + memmove(&g.Windows[i], &g.Windows[i + 1], (size_t)(g.Windows.Size - i - 1) * sizeof(ImGuiWindow*)); + g.Windows[g.Windows.Size - 1] = window; + break; + } +} + +void ImGui::BringWindowToDisplayBack(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.Windows[0] == window) + return; + for (int i = 0; i < g.Windows.Size; i++) + if (g.Windows[i] == window) + { + memmove(&g.Windows[1], &g.Windows[0], (size_t)i * sizeof(ImGuiWindow*)); + g.Windows[0] = window; + break; + } +} + +void ImGui::BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* behind_window) +{ + IM_ASSERT(window != NULL && behind_window != NULL); + ImGuiContext& g = *GImGui; + window = window->RootWindow; + behind_window = behind_window->RootWindow; + int pos_wnd = FindWindowDisplayIndex(window); + int pos_beh = FindWindowDisplayIndex(behind_window); + if (pos_wnd < pos_beh) + { + size_t copy_bytes = (pos_beh - pos_wnd - 1) * sizeof(ImGuiWindow*); + memmove(&g.Windows.Data[pos_wnd], &g.Windows.Data[pos_wnd + 1], copy_bytes); + g.Windows[pos_beh - 1] = window; + } + else + { + size_t copy_bytes = (pos_wnd - pos_beh) * sizeof(ImGuiWindow*); + memmove(&g.Windows.Data[pos_beh + 1], &g.Windows.Data[pos_beh], copy_bytes); + g.Windows[pos_beh] = window; + } +} + +int ImGui::FindWindowDisplayIndex(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + return g.Windows.index_from_ptr(g.Windows.find(window)); +} + +// Moving window to front of display and set focus (which happens to be back of our sorted list) +void ImGui::FocusWindow(ImGuiWindow* window, ImGuiFocusRequestFlags flags) +{ + ImGuiContext& g = *GImGui; + + // Modal check? + if ((flags & ImGuiFocusRequestFlags_UnlessBelowModal) && (g.NavWindow != window)) // Early out in common case. + if (ImGuiWindow* blocking_modal = FindBlockingModal(window)) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] FocusWindow(\"%s\", UnlessBelowModal): prevented by \"%s\".\n", window ? window->Name : "", blocking_modal->Name); + if (window && window == window->RootWindow && (window->Flags & ImGuiWindowFlags_NoBringToFrontOnFocus) == 0) + BringWindowToDisplayBehind(window, blocking_modal); // Still bring to right below modal. + return; + } + + // Find last focused child (if any) and focus it instead. + if ((flags & ImGuiFocusRequestFlags_RestoreFocusedChild) && window != NULL) + window = NavRestoreLastChildNavWindow(window); + + // Apply focus + if (g.NavWindow != window) + { + SetNavWindow(window); + if (window && g.NavDisableMouseHover) + g.NavMousePosDirty = true; + g.NavId = window ? window->NavLastIds[0] : 0; // Restore NavId + g.NavLayer = ImGuiNavLayer_Main; + g.NavFocusScopeId = window ? window->NavRootFocusScopeId : 0; + g.NavIdIsAlive = false; + g.NavLastValidSelectionUserData = ImGuiSelectionUserData_Invalid; + + // Close popups if any + ClosePopupsOverWindow(window, false); + } + + // Move the root window to the top of the pile + IM_ASSERT(window == NULL || window->RootWindowDockTree != NULL); + ImGuiWindow* focus_front_window = window ? window->RootWindow : NULL; + ImGuiWindow* display_front_window = window ? window->RootWindowDockTree : NULL; + ImGuiDockNode* dock_node = window ? window->DockNode : NULL; + bool active_id_window_is_dock_node_host = (g.ActiveIdWindow && dock_node && dock_node->HostWindow == g.ActiveIdWindow); + + // Steal active widgets. Some of the cases it triggers includes: + // - Focus a window while an InputText in another window is active, if focus happens before the old InputText can run. + // - When using Nav to activate menu items (due to timing of activating on press->new window appears->losing ActiveId) + // - Using dock host items (tab, collapse button) can trigger this before we redirect the ActiveIdWindow toward the child window. + if (g.ActiveId != 0 && g.ActiveIdWindow && g.ActiveIdWindow->RootWindow != focus_front_window) + if (!g.ActiveIdNoClearOnFocusLoss && !active_id_window_is_dock_node_host) + ClearActiveID(); + + // Passing NULL allow to disable keyboard focus + if (!window) + return; + window->LastFrameJustFocused = g.FrameCount; + + // Select in dock node + // For #2304 we avoid applying focus immediately before the tabbar is visible. + //if (dock_node && dock_node->TabBar) + // dock_node->TabBar->SelectedTabId = dock_node->TabBar->NextSelectedTabId = window->TabId; + + // Bring to front + BringWindowToFocusFront(focus_front_window); + if (((window->Flags | focus_front_window->Flags | display_front_window->Flags) & ImGuiWindowFlags_NoBringToFrontOnFocus) == 0) + BringWindowToDisplayFront(display_front_window); +} + +void ImGui::FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window, ImGuiViewport* filter_viewport, ImGuiFocusRequestFlags flags) +{ + ImGuiContext& g = *GImGui; + int start_idx = g.WindowsFocusOrder.Size - 1; + if (under_this_window != NULL) + { + // Aim at root window behind us, if we are in a child window that's our own root (see #4640) + int offset = -1; + while (under_this_window->Flags & ImGuiWindowFlags_ChildWindow) + { + under_this_window = under_this_window->ParentWindow; + offset = 0; + } + start_idx = FindWindowFocusIndex(under_this_window) + offset; + } + for (int i = start_idx; i >= 0; i--) + { + // We may later decide to test for different NoXXXInputs based on the active navigation input (mouse vs nav) but that may feel more confusing to the user. + ImGuiWindow* window = g.WindowsFocusOrder[i]; + if (window == ignore_window || !window->WasActive) + continue; + if (filter_viewport != NULL && window->Viewport != filter_viewport) + continue; + if ((window->Flags & (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) != (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) + { + // FIXME-DOCK: When ImGuiFocusRequestFlags_RestoreFocusedChild is set... + // This is failing (lagging by one frame) for docked windows. + // If A and B are docked into window and B disappear, at the NewFrame() call site window->NavLastChildNavWindow will still point to B. + // We might leverage the tab order implicitly stored in window->DockNodeAsHost->TabBar (essentially the 'most_recently_selected_tab' code in tab bar will do that but on next update) + // to tell which is the "previous" window. Or we may leverage 'LastFrameFocused/LastFrameJustFocused' and have this function handle child window itself? + FocusWindow(window, flags); + return; + } + } + FocusWindow(NULL, flags); +} + +// Important: this alone doesn't alter current ImDrawList state. This is called by PushFont/PopFont only. +void ImGui::SetCurrentFont(ImFont* font) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(font && font->IsLoaded()); // Font Atlas not created. Did you call io.Fonts->GetTexDataAsRGBA32 / GetTexDataAsAlpha8 ? + IM_ASSERT(font->Scale > 0.0f); + g.Font = font; + g.FontBaseSize = ImMax(1.0f, g.IO.FontGlobalScale * g.Font->FontSize * g.Font->Scale); + g.FontSize = g.CurrentWindow ? g.CurrentWindow->CalcFontSize() : 0.0f; + + ImFontAtlas* atlas = g.Font->ContainerAtlas; + g.DrawListSharedData.TexUvWhitePixel = atlas->TexUvWhitePixel; + g.DrawListSharedData.TexUvLines = atlas->TexUvLines; + g.DrawListSharedData.Font = g.Font; + g.DrawListSharedData.FontSize = g.FontSize; +} + +void ImGui::PushFont(ImFont* font) +{ + ImGuiContext& g = *GImGui; + if (!font) + font = GetDefaultFont(); + SetCurrentFont(font); + g.FontStack.push_back(font); + g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID); +} + +void ImGui::PopFont() +{ + ImGuiContext& g = *GImGui; + g.CurrentWindow->DrawList->PopTextureID(); + g.FontStack.pop_back(); + SetCurrentFont(g.FontStack.empty() ? GetDefaultFont() : g.FontStack.back()); +} + +void ImGui::PushItemFlag(ImGuiItemFlags option, bool enabled) +{ + ImGuiContext& g = *GImGui; + ImGuiItemFlags item_flags = g.CurrentItemFlags; + IM_ASSERT(item_flags == g.ItemFlagsStack.back()); + if (enabled) + item_flags |= option; + else + item_flags &= ~option; + g.CurrentItemFlags = item_flags; + g.ItemFlagsStack.push_back(item_flags); +} + +void ImGui::PopItemFlag() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ItemFlagsStack.Size > 1); // Too many calls to PopItemFlag() - we always leave a 0 at the bottom of the stack. + g.ItemFlagsStack.pop_back(); + g.CurrentItemFlags = g.ItemFlagsStack.back(); +} + +// BeginDisabled()/EndDisabled() +// - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled) +// - Visually this is currently altering alpha, but it is expected that in a future styling system this would work differently. +// - Feedback welcome at https://github.com/ocornut/imgui/issues/211 +// - BeginDisabled(false) essentially does nothing useful but is provided to facilitate use of boolean expressions. If you can avoid calling BeginDisabled(False)/EndDisabled() best to avoid it. +// - Optimized shortcuts instead of PushStyleVar() + PushItemFlag() +void ImGui::BeginDisabled(bool disabled) +{ + ImGuiContext& g = *GImGui; + bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + if (!was_disabled && disabled) + { + g.DisabledAlphaBackup = g.Style.Alpha; + g.Style.Alpha *= g.Style.DisabledAlpha; // PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * g.Style.DisabledAlpha); + } + if (was_disabled || disabled) + g.CurrentItemFlags |= ImGuiItemFlags_Disabled; + g.ItemFlagsStack.push_back(g.CurrentItemFlags); + g.DisabledStackSize++; +} + +void ImGui::EndDisabled() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DisabledStackSize > 0); + g.DisabledStackSize--; + bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + //PopItemFlag(); + g.ItemFlagsStack.pop_back(); + g.CurrentItemFlags = g.ItemFlagsStack.back(); + if (was_disabled && (g.CurrentItemFlags & ImGuiItemFlags_Disabled) == 0) + g.Style.Alpha = g.DisabledAlphaBackup; //PopStyleVar(); +} + +void ImGui::PushTabStop(bool tab_stop) +{ + PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop); +} + +void ImGui::PopTabStop() +{ + PopItemFlag(); +} + +void ImGui::PushButtonRepeat(bool repeat) +{ + PushItemFlag(ImGuiItemFlags_ButtonRepeat, repeat); +} + +void ImGui::PopButtonRepeat() +{ + PopItemFlag(); +} + +void ImGui::PushTextWrapPos(float wrap_pos_x) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.TextWrapPosStack.push_back(window->DC.TextWrapPos); + window->DC.TextWrapPos = wrap_pos_x; +} + +void ImGui::PopTextWrapPos() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.TextWrapPos = window->DC.TextWrapPosStack.back(); + window->DC.TextWrapPosStack.pop_back(); +} + +static ImGuiWindow* GetCombinedRootWindow(ImGuiWindow* window, bool popup_hierarchy, bool dock_hierarchy) +{ + ImGuiWindow* last_window = NULL; + while (last_window != window) + { + last_window = window; + window = window->RootWindow; + if (popup_hierarchy) + window = window->RootWindowPopupTree; + if (dock_hierarchy) + window = window->RootWindowDockTree; + } + return window; +} + +bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy) +{ + ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy, dock_hierarchy); + if (window_root == potential_parent) + return true; + while (window != NULL) + { + if (window == potential_parent) + return true; + if (window == window_root) // end of chain + return false; + window = window->ParentWindow; + } + return false; +} + +bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent) +{ + if (window->RootWindow == potential_parent) + return true; + while (window != NULL) + { + if (window == potential_parent) + return true; + window = window->ParentWindowInBeginStack; + } + return false; +} + +bool ImGui::IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below) +{ + ImGuiContext& g = *GImGui; + + // It would be saner to ensure that display layer is always reflected in the g.Windows[] order, which would likely requires altering all manipulations of that array + const int display_layer_delta = GetWindowDisplayLayer(potential_above) - GetWindowDisplayLayer(potential_below); + if (display_layer_delta != 0) + return display_layer_delta > 0; + + for (int i = g.Windows.Size - 1; i >= 0; i--) + { + ImGuiWindow* candidate_window = g.Windows[i]; + if (candidate_window == potential_above) + return true; + if (candidate_window == potential_below) + return false; + } + return false; +} + +bool ImGui::IsWindowHovered(ImGuiHoveredFlags flags) +{ + IM_ASSERT((flags & ~ImGuiHoveredFlags_AllowedMaskForIsWindowHovered) == 0 && "Invalid flags for IsWindowHovered()!"); + + ImGuiContext& g = *GImGui; + ImGuiWindow* ref_window = g.HoveredWindow; + ImGuiWindow* cur_window = g.CurrentWindow; + if (ref_window == NULL) + return false; + + if ((flags & ImGuiHoveredFlags_AnyWindow) == 0) + { + IM_ASSERT(cur_window); // Not inside a Begin()/End() + const bool popup_hierarchy = (flags & ImGuiHoveredFlags_NoPopupHierarchy) == 0; + const bool dock_hierarchy = (flags & ImGuiHoveredFlags_DockHierarchy) != 0; + if (flags & ImGuiHoveredFlags_RootWindow) + cur_window = GetCombinedRootWindow(cur_window, popup_hierarchy, dock_hierarchy); + + bool result; + if (flags & ImGuiHoveredFlags_ChildWindows) + result = IsWindowChildOf(ref_window, cur_window, popup_hierarchy, dock_hierarchy); + else + result = (ref_window == cur_window); + if (!result) + return false; + } + + if (!IsWindowContentHoverable(ref_window, flags)) + return false; + if (!(flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) + if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap && g.ActiveId != ref_window->MoveId) + return false; + + // When changing hovered window we requires a bit of stationary delay before activating hover timer. + // FIXME: We don't support delay other than stationary one for now, other delay would need a way + // to fullfill the possibility that multiple IsWindowHovered() with varying flag could return true + // for different windows of the hierarchy. Possibly need a Hash(Current+Flags) ==> (Timer) cache. + // We can implement this for _Stationary because the data is linked to HoveredWindow rather than CurrentWindow. + if (flags & ImGuiHoveredFlags_ForTooltip) + flags = ApplyHoverFlagsForTooltip(flags, g.Style.HoverFlagsForTooltipMouse); + if ((flags & ImGuiHoveredFlags_Stationary) != 0 && g.HoverWindowUnlockedStationaryId != ref_window->ID) + return false; + + return true; +} + +bool ImGui::IsWindowFocused(ImGuiFocusedFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* ref_window = g.NavWindow; + ImGuiWindow* cur_window = g.CurrentWindow; + + if (ref_window == NULL) + return false; + if (flags & ImGuiFocusedFlags_AnyWindow) + return true; + + IM_ASSERT(cur_window); // Not inside a Begin()/End() + const bool popup_hierarchy = (flags & ImGuiFocusedFlags_NoPopupHierarchy) == 0; + const bool dock_hierarchy = (flags & ImGuiFocusedFlags_DockHierarchy) != 0; + if (flags & ImGuiHoveredFlags_RootWindow) + cur_window = GetCombinedRootWindow(cur_window, popup_hierarchy, dock_hierarchy); + + if (flags & ImGuiHoveredFlags_ChildWindows) + return IsWindowChildOf(ref_window, cur_window, popup_hierarchy, dock_hierarchy); + else + return (ref_window == cur_window); +} + +ImGuiID ImGui::GetWindowDockID() +{ + ImGuiContext& g = *GImGui; + return g.CurrentWindow->DockId; +} + +bool ImGui::IsWindowDocked() +{ + ImGuiContext& g = *GImGui; + return g.CurrentWindow->DockIsActive; +} + +// Can we focus this window with CTRL+TAB (or PadMenu + PadFocusPrev/PadFocusNext) +// Note that NoNavFocus makes the window not reachable with CTRL+TAB but it can still be focused with mouse or programmatically. +// If you want a window to never be focused, you may use the e.g. NoInputs flag. +bool ImGui::IsWindowNavFocusable(ImGuiWindow* window) +{ + return window->WasActive && window == window->RootWindow && !(window->Flags & ImGuiWindowFlags_NoNavFocus); +} + +float ImGui::GetWindowWidth() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Size.x; +} + +float ImGui::GetWindowHeight() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Size.y; +} + +ImVec2 ImGui::GetWindowPos() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + return window->Pos; +} + +void ImGui::SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowPosAllowFlags & cond) == 0) + return; + + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + window->SetWindowPosVal = ImVec2(FLT_MAX, FLT_MAX); + + // Set + const ImVec2 old_pos = window->Pos; + window->Pos = ImTrunc(pos); + ImVec2 offset = window->Pos - old_pos; + if (offset.x == 0.0f && offset.y == 0.0f) + return; + MarkIniSettingsDirty(window); + // FIXME: share code with TranslateWindow(), need to confirm whether the 3 rect modified by TranslateWindow() are desirable here. + window->DC.CursorPos += offset; // As we happen to move the window while it is being appended to (which is a bad idea - will smear) let's at least offset the cursor + window->DC.CursorMaxPos += offset; // And more importantly we need to offset CursorMaxPos/CursorStartPos this so ContentSize calculation doesn't get affected. + window->DC.IdealMaxPos += offset; + window->DC.CursorStartPos += offset; +} + +void ImGui::SetWindowPos(const ImVec2& pos, ImGuiCond cond) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + SetWindowPos(window, pos, cond); +} + +void ImGui::SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowPos(window, pos, cond); +} + +ImVec2 ImGui::GetWindowSize() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Size; +} + +void ImGui::SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowSizeAllowFlags & cond) == 0) + return; + + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + window->SetWindowSizeAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + // Set + ImVec2 old_size = window->SizeFull; + window->AutoFitFramesX = (size.x <= 0.0f) ? 2 : 0; + window->AutoFitFramesY = (size.y <= 0.0f) ? 2 : 0; + if (size.x <= 0.0f) + window->AutoFitOnlyGrows = false; + else + window->SizeFull.x = IM_TRUNC(size.x); + if (size.y <= 0.0f) + window->AutoFitOnlyGrows = false; + else + window->SizeFull.y = IM_TRUNC(size.y); + if (old_size.x != window->SizeFull.x || old_size.y != window->SizeFull.y) + MarkIniSettingsDirty(window); +} + +void ImGui::SetWindowSize(const ImVec2& size, ImGuiCond cond) +{ + SetWindowSize(GImGui->CurrentWindow, size, cond); +} + +void ImGui::SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowSize(window, size, cond); +} + +void ImGui::SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowCollapsedAllowFlags & cond) == 0) + return; + window->SetWindowCollapsedAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + // Set + window->Collapsed = collapsed; +} + +void ImGui::SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size) +{ + IM_ASSERT(window->HitTestHoleSize.x == 0); // We don't support multiple holes/hit test filters + window->HitTestHoleSize = ImVec2ih(size); + window->HitTestHoleOffset = ImVec2ih(pos - window->Pos); +} + +void ImGui::SetWindowHiddendAndSkipItemsForCurrentFrame(ImGuiWindow* window) +{ + window->Hidden = window->SkipItems = true; + window->HiddenFramesCanSkipItems = 1; +} + +void ImGui::SetWindowCollapsed(bool collapsed, ImGuiCond cond) +{ + SetWindowCollapsed(GImGui->CurrentWindow, collapsed, cond); +} + +bool ImGui::IsWindowCollapsed() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Collapsed; +} + +bool ImGui::IsWindowAppearing() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Appearing; +} + +void ImGui::SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowCollapsed(window, collapsed, cond); +} + +void ImGui::SetWindowFocus() +{ + FocusWindow(GImGui->CurrentWindow); +} + +void ImGui::SetWindowFocus(const char* name) +{ + if (name) + { + if (ImGuiWindow* window = FindWindowByName(name)) + FocusWindow(window); + } + else + { + FocusWindow(NULL); + } +} + +void ImGui::SetNextWindowPos(const ImVec2& pos, ImGuiCond cond, const ImVec2& pivot) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasPos; + g.NextWindowData.PosVal = pos; + g.NextWindowData.PosPivotVal = pivot; + g.NextWindowData.PosCond = cond ? cond : ImGuiCond_Always; + g.NextWindowData.PosUndock = true; +} + +void ImGui::SetNextWindowSize(const ImVec2& size, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSize; + g.NextWindowData.SizeVal = size; + g.NextWindowData.SizeCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback, void* custom_callback_user_data) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSizeConstraint; + g.NextWindowData.SizeConstraintRect = ImRect(size_min, size_max); + g.NextWindowData.SizeCallback = custom_callback; + g.NextWindowData.SizeCallbackUserData = custom_callback_user_data; +} + +// Content size = inner scrollable rectangle, padded with WindowPadding. +// SetNextWindowContentSize(ImVec2(100,100) + ImGuiWindowFlags_AlwaysAutoResize will always allow submitting a 100x100 item. +void ImGui::SetNextWindowContentSize(const ImVec2& size) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasContentSize; + g.NextWindowData.ContentSizeVal = ImTrunc(size); +} + +void ImGui::SetNextWindowScroll(const ImVec2& scroll) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasScroll; + g.NextWindowData.ScrollVal = scroll; +} + +void ImGui::SetNextWindowCollapsed(bool collapsed, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasCollapsed; + g.NextWindowData.CollapsedVal = collapsed; + g.NextWindowData.CollapsedCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowFocus() +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasFocus; +} + +void ImGui::SetNextWindowBgAlpha(float alpha) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasBgAlpha; + g.NextWindowData.BgAlphaVal = alpha; +} + +void ImGui::SetNextWindowViewport(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasViewport; + g.NextWindowData.ViewportId = id; +} + +void ImGui::SetNextWindowDockID(ImGuiID id, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasDock; + g.NextWindowData.DockCond = cond ? cond : ImGuiCond_Always; + g.NextWindowData.DockId = id; +} + +void ImGui::SetNextWindowClass(const ImGuiWindowClass* window_class) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT((window_class->ViewportFlagsOverrideSet & window_class->ViewportFlagsOverrideClear) == 0); // Cannot set both set and clear for the same bit + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasWindowClass; + g.NextWindowData.WindowClass = *window_class; +} + +ImDrawList* ImGui::GetWindowDrawList() +{ + ImGuiWindow* window = GetCurrentWindow(); + return window->DrawList; +} + +float ImGui::GetWindowDpiScale() +{ + ImGuiContext& g = *GImGui; + return g.CurrentDpiScale; +} + +ImGuiViewport* ImGui::GetWindowViewport() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.CurrentViewport != NULL && g.CurrentViewport == g.CurrentWindow->Viewport); + return g.CurrentViewport; +} + +ImFont* ImGui::GetFont() +{ + return GImGui->Font; +} + +float ImGui::GetFontSize() +{ + return GImGui->FontSize; +} + +ImVec2 ImGui::GetFontTexUvWhitePixel() +{ + return GImGui->DrawListSharedData.TexUvWhitePixel; +} + +void ImGui::SetWindowFontScale(float scale) +{ + IM_ASSERT(scale > 0.0f); + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->FontWindowScale = scale; + g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); +} + +void ImGui::PushFocusScope(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.FocusScopeStack.push_back(id); + g.CurrentFocusScopeId = id; +} + +void ImGui::PopFocusScope() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.FocusScopeStack.Size > 0); // Too many PopFocusScope() ? + g.FocusScopeStack.pop_back(); + g.CurrentFocusScopeId = g.FocusScopeStack.Size ? g.FocusScopeStack.back() : 0; +} + +// Focus = move navigation cursor, set scrolling, set focus window. +void ImGui::FocusItem() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IMGUI_DEBUG_LOG_FOCUS("FocusItem(0x%08x) in window \"%s\"\n", g.LastItemData.ID, window->Name); + if (g.DragDropActive || g.MovingWindow != NULL) // FIXME: Opt-in flags for this? + { + IMGUI_DEBUG_LOG_FOCUS("FocusItem() ignored while DragDropActive!\n"); + return; + } + + ImGuiNavMoveFlags move_flags = ImGuiNavMoveFlags_IsTabbing | ImGuiNavMoveFlags_FocusApi | ImGuiNavMoveFlags_NoSetNavHighlight | ImGuiNavMoveFlags_NoSelect; + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; + SetNavWindow(window); + NavMoveRequestSubmit(ImGuiDir_None, ImGuiDir_Up, move_flags, scroll_flags); + NavMoveRequestResolveWithLastItem(&g.NavMoveResultLocal); +} + +void ImGui::ActivateItemByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.NavNextActivateId = id; + g.NavNextActivateFlags = ImGuiActivateFlags_None; +} + +// Note: this will likely be called ActivateItem() once we rework our Focus/Activation system! +// But ActivateItem() should function without altering scroll/focus? +void ImGui::SetKeyboardFocusHere(int offset) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(offset >= -1); // -1 is allowed but not below + IMGUI_DEBUG_LOG_FOCUS("SetKeyboardFocusHere(%d) in window \"%s\"\n", offset, window->Name); + + // It makes sense in the vast majority of cases to never interrupt a drag and drop. + // When we refactor this function into ActivateItem() we may want to make this an option. + // MovingWindow is protected from most user inputs using SetActiveIdUsingNavAndKeys(), but + // is also automatically dropped in the event g.ActiveId is stolen. + if (g.DragDropActive || g.MovingWindow != NULL) + { + IMGUI_DEBUG_LOG_FOCUS("SetKeyboardFocusHere() ignored while DragDropActive!\n"); + return; + } + + SetNavWindow(window); + + ImGuiNavMoveFlags move_flags = ImGuiNavMoveFlags_IsTabbing | ImGuiNavMoveFlags_Activate | ImGuiNavMoveFlags_FocusApi | ImGuiNavMoveFlags_NoSetNavHighlight; + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; + NavMoveRequestSubmit(ImGuiDir_None, offset < 0 ? ImGuiDir_Up : ImGuiDir_Down, move_flags, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. + if (offset == -1) + { + NavMoveRequestResolveWithLastItem(&g.NavMoveResultLocal); + } + else + { + g.NavTabbingDir = 1; + g.NavTabbingCounter = offset + 1; + } +} + +void ImGui::SetItemDefaultFocus() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!window->Appearing) + return; + if (g.NavWindow != window->RootWindowForNav || (!g.NavInitRequest && g.NavInitResult.ID == 0) || g.NavLayer != window->DC.NavLayerCurrent) + return; + + g.NavInitRequest = false; + NavApplyItemToResult(&g.NavInitResult); + NavUpdateAnyRequestFlag(); + + // Scroll could be done in NavInitRequestApplyResult() via an opt-in flag (we however don't want regular init requests to scroll) + if (!window->ClipRect.Contains(g.LastItemData.Rect)) + ScrollToRectEx(window, g.LastItemData.Rect, ImGuiScrollFlags_None); +} + +void ImGui::SetStateStorage(ImGuiStorage* tree) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + window->DC.StateStorage = tree ? tree : &window->StateStorage; +} + +ImGuiStorage* ImGui::GetStateStorage() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->DC.StateStorage; +} + +void ImGui::PushID(const char* str_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(str_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(str_id_begin, str_id_end); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const void* ptr_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(ptr_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(int int_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(int_id); + window->IDStack.push_back(id); +} + +// Push a given id value ignoring the ID stack as a seed. +void ImGui::PushOverrideID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_ID, NULL, NULL); + window->IDStack.push_back(id); +} + +// Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call +// (note that when using this pattern, ID Stack Tool will tend to not display the intermediate stack level. +// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more) +ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed) +{ + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); + return id; +} + +ImGuiID ImGui::GetIDWithSeed(int n, ImGuiID seed) +{ + ImGuiID id = ImHashData(&n, sizeof(n), seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_S32, (void*)(intptr_t)n, NULL); + return id; +} + +void ImGui::PopID() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + IM_ASSERT(window->IDStack.Size > 1); // Too many PopID(), or could be popping in a wrong/different window? + window->IDStack.pop_back(); +} + +ImGuiID ImGui::GetID(const char* str_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id); +} + +ImGuiID ImGui::GetID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id_begin, str_id_end); +} + +ImGuiID ImGui::GetID(const void* ptr_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(ptr_id); +} + +bool ImGui::IsRectVisible(const ImVec2& size) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(window->DC.CursorPos, window->DC.CursorPos + size)); +} + +bool ImGui::IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(rect_min, rect_max)); +} + + +//----------------------------------------------------------------------------- +// [SECTION] INPUTS +//----------------------------------------------------------------------------- +// - GetKeyData() [Internal] +// - GetKeyIndex() [Internal] +// - GetKeyName() +// - GetKeyChordName() [Internal] +// - CalcTypematicRepeatAmount() [Internal] +// - GetTypematicRepeatRate() [Internal] +// - GetKeyPressedAmount() [Internal] +// - GetKeyMagnitude2d() [Internal] +//----------------------------------------------------------------------------- +// - UpdateKeyRoutingTable() [Internal] +// - GetRoutingIdFromOwnerId() [Internal] +// - GetShortcutRoutingData() [Internal] +// - CalcRoutingScore() [Internal] +// - SetShortcutRouting() [Internal] +// - TestShortcutRouting() [Internal] +//----------------------------------------------------------------------------- +// - IsKeyDown() +// - IsKeyPressed() +// - IsKeyReleased() +//----------------------------------------------------------------------------- +// - IsMouseDown() +// - IsMouseClicked() +// - IsMouseReleased() +// - IsMouseDoubleClicked() +// - GetMouseClickedCount() +// - IsMouseHoveringRect() [Internal] +// - IsMouseDragPastThreshold() [Internal] +// - IsMouseDragging() +// - GetMousePos() +// - SetMousePos() [Internal] +// - GetMousePosOnOpeningCurrentPopup() +// - IsMousePosValid() +// - IsAnyMouseDown() +// - GetMouseDragDelta() +// - ResetMouseDragDelta() +// - GetMouseCursor() +// - SetMouseCursor() +//----------------------------------------------------------------------------- +// - UpdateAliasKey() +// - GetMergedModsFromKeys() +// - UpdateKeyboardInputs() +// - UpdateMouseInputs() +//----------------------------------------------------------------------------- +// - LockWheelingWindow [Internal] +// - FindBestWheelingWindow [Internal] +// - UpdateMouseWheel() [Internal] +//----------------------------------------------------------------------------- +// - SetNextFrameWantCaptureKeyboard() +// - SetNextFrameWantCaptureMouse() +//----------------------------------------------------------------------------- +// - GetInputSourceName() [Internal] +// - DebugPrintInputEvent() [Internal] +// - UpdateInputEvents() [Internal] +//----------------------------------------------------------------------------- +// - GetKeyOwner() [Internal] +// - TestKeyOwner() [Internal] +// - SetKeyOwner() [Internal] +// - SetItemKeyOwner() [Internal] +// - Shortcut() [Internal] +//----------------------------------------------------------------------------- + +ImGuiKeyData* ImGui::GetKeyData(ImGuiContext* ctx, ImGuiKey key) +{ + ImGuiContext& g = *ctx; + + // Special storage location for mods + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(ctx, key); + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT(key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_NamedKey_END); + if (IsLegacyKey(key) && g.IO.KeyMap[key] != -1) + key = (ImGuiKey)g.IO.KeyMap[key]; // Remap native->imgui or imgui->native +#else + IM_ASSERT(IsNamedKey(key) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend & user code."); +#endif + return &g.IO.KeysData[key - ImGuiKey_KeysData_OFFSET]; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +ImGuiKey ImGui::GetKeyIndex(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(IsNamedKey(key)); + const ImGuiKeyData* key_data = GetKeyData(key); + return (ImGuiKey)(key_data - g.IO.KeysData); +} +#endif + +// Those names a provided for debugging purpose and are not meant to be saved persistently not compared. +static const char* const GKeyNames[] = +{ + "Tab", "LeftArrow", "RightArrow", "UpArrow", "DownArrow", "PageUp", "PageDown", + "Home", "End", "Insert", "Delete", "Backspace", "Space", "Enter", "Escape", + "LeftCtrl", "LeftShift", "LeftAlt", "LeftSuper", "RightCtrl", "RightShift", "RightAlt", "RightSuper", "Menu", + "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", + "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", + "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", + "F13", "F14", "F15", "F16", "F17", "F18", "F19", "F20", "F21", "F22", "F23", "F24", + "Apostrophe", "Comma", "Minus", "Period", "Slash", "Semicolon", "Equal", "LeftBracket", + "Backslash", "RightBracket", "GraveAccent", "CapsLock", "ScrollLock", "NumLock", "PrintScreen", + "Pause", "Keypad0", "Keypad1", "Keypad2", "Keypad3", "Keypad4", "Keypad5", "Keypad6", + "Keypad7", "Keypad8", "Keypad9", "KeypadDecimal", "KeypadDivide", "KeypadMultiply", + "KeypadSubtract", "KeypadAdd", "KeypadEnter", "KeypadEqual", + "AppBack", "AppForward", + "GamepadStart", "GamepadBack", + "GamepadFaceLeft", "GamepadFaceRight", "GamepadFaceUp", "GamepadFaceDown", + "GamepadDpadLeft", "GamepadDpadRight", "GamepadDpadUp", "GamepadDpadDown", + "GamepadL1", "GamepadR1", "GamepadL2", "GamepadR2", "GamepadL3", "GamepadR3", + "GamepadLStickLeft", "GamepadLStickRight", "GamepadLStickUp", "GamepadLStickDown", + "GamepadRStickLeft", "GamepadRStickRight", "GamepadRStickUp", "GamepadRStickDown", + "MouseLeft", "MouseRight", "MouseMiddle", "MouseX1", "MouseX2", "MouseWheelX", "MouseWheelY", + "ModCtrl", "ModShift", "ModAlt", "ModSuper", // ReservedForModXXX are showing the ModXXX names. +}; +IM_STATIC_ASSERT(ImGuiKey_NamedKey_COUNT == IM_ARRAYSIZE(GKeyNames)); + +const char* ImGui::GetKeyName(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((IsNamedKeyOrModKey(key) || key == ImGuiKey_None) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend and user code."); +#else + if (IsLegacyKey(key)) + { + if (g.IO.KeyMap[key] == -1) + return "N/A"; + IM_ASSERT(IsNamedKey((ImGuiKey)g.IO.KeyMap[key])); + key = (ImGuiKey)g.IO.KeyMap[key]; + } +#endif + if (key == ImGuiKey_None) + return "None"; + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(&g, key); + if (!IsNamedKey(key)) + return "Unknown"; + + return GKeyNames[key - ImGuiKey_NamedKey_BEGIN]; +} + +// ImGuiMod_Shortcut is translated to either Ctrl or Super. +void ImGui::GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size) +{ + ImGuiContext& g = *GImGui; + if (key_chord & ImGuiMod_Shortcut) + key_chord = ConvertShortcutMod(key_chord); + ImFormatString(out_buf, (size_t)out_buf_size, "%s%s%s%s%s", + (key_chord & ImGuiMod_Ctrl) ? "Ctrl+" : "", + (key_chord & ImGuiMod_Shift) ? "Shift+" : "", + (key_chord & ImGuiMod_Alt) ? "Alt+" : "", + (key_chord & ImGuiMod_Super) ? (g.IO.ConfigMacOSXBehaviors ? "Cmd+" : "Super+") : "", + GetKeyName((ImGuiKey)(key_chord & ~ImGuiMod_Mask_))); +} + +// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime) +// t1 = current time (e.g.: g.Time) +// An event is triggered at: +// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N +int ImGui::CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) +{ + if (t1 == 0.0f) + return 1; + if (t0 >= t1) + return 0; + if (repeat_rate <= 0.0f) + return (t0 < repeat_delay) && (t1 >= repeat_delay); + const int count_t0 = (t0 < repeat_delay) ? -1 : (int)((t0 - repeat_delay) / repeat_rate); + const int count_t1 = (t1 < repeat_delay) ? -1 : (int)((t1 - repeat_delay) / repeat_rate); + const int count = count_t1 - count_t0; + return count; +} + +void ImGui::GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate) +{ + ImGuiContext& g = *GImGui; + switch (flags & ImGuiInputFlags_RepeatRateMask_) + { + case ImGuiInputFlags_RepeatRateNavMove: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.80f; return; + case ImGuiInputFlags_RepeatRateNavTweak: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.30f; return; + case ImGuiInputFlags_RepeatRateDefault: default: *repeat_delay = g.IO.KeyRepeatDelay * 1.00f; *repeat_rate = g.IO.KeyRepeatRate * 1.00f; return; + } +} + +// Return value representing the number of presses in the last time period, for the given repeat rate +// (most often returns 0 or 1. The result is generally only >1 when RepeatRate is smaller than DeltaTime, aka large DeltaTime or fast RepeatRate) +int ImGui::GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float repeat_rate) +{ + ImGuiContext& g = *GImGui; + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return 0; + const float t = key_data->DownDuration; + return CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, repeat_delay, repeat_rate); +} + +// Return 2D vector representing the combination of four cardinal direction, with analog value support (for e.g. ImGuiKey_GamepadLStick* values). +ImVec2 ImGui::GetKeyMagnitude2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down) +{ + return ImVec2( + GetKeyData(key_right)->AnalogValue - GetKeyData(key_left)->AnalogValue, + GetKeyData(key_down)->AnalogValue - GetKeyData(key_up)->AnalogValue); +} + +// Rewrite routing data buffers to strip old entries + sort by key to make queries not touch scattered data. +// Entries D,A,B,B,A,C,B --> A,A,B,B,B,C,D +// Index A:1 B:2 C:5 D:0 --> A:0 B:2 C:5 D:6 +// See 'Metrics->Key Owners & Shortcut Routing' to visualize the result of that operation. +static void ImGui::UpdateKeyRoutingTable(ImGuiKeyRoutingTable* rt) +{ + ImGuiContext& g = *GImGui; + rt->EntriesNext.resize(0); + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + const int new_routing_start_idx = rt->EntriesNext.Size; + ImGuiKeyRoutingData* routing_entry; + for (int old_routing_idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; old_routing_idx != -1; old_routing_idx = routing_entry->NextEntryIndex) + { + routing_entry = &rt->Entries[old_routing_idx]; + routing_entry->RoutingCurr = routing_entry->RoutingNext; // Update entry + routing_entry->RoutingNext = ImGuiKeyOwner_None; + routing_entry->RoutingNextScore = 255; + if (routing_entry->RoutingCurr == ImGuiKeyOwner_None) + continue; + rt->EntriesNext.push_back(*routing_entry); // Write alive ones into new buffer + + // Apply routing to owner if there's no owner already (RoutingCurr == None at this point) + if (routing_entry->Mods == g.IO.KeyMods) + { + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(&g, key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + owner_data->OwnerCurr = routing_entry->RoutingCurr; + } + } + + // Rewrite linked-list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = (ImGuiKeyRoutingIndex)(new_routing_start_idx < rt->EntriesNext.Size ? new_routing_start_idx : -1); + for (int n = new_routing_start_idx; n < rt->EntriesNext.Size; n++) + rt->EntriesNext[n].NextEntryIndex = (ImGuiKeyRoutingIndex)((n + 1 < rt->EntriesNext.Size) ? n + 1 : -1); + } + rt->Entries.swap(rt->EntriesNext); // Swap new and old indexes +} + +// owner_id may be None/Any, but routing_id needs to be always be set, so we default to GetCurrentFocusScope(). +static inline ImGuiID GetRoutingIdFromOwnerId(ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + return (owner_id != ImGuiKeyOwner_None && owner_id != ImGuiKeyOwner_Any) ? owner_id : g.CurrentFocusScopeId; +} + +ImGuiKeyRoutingData* ImGui::GetShortcutRoutingData(ImGuiKeyChord key_chord) +{ + // Majority of shortcuts will be Key + any number of Mods + // We accept _Single_ mod with ImGuiKey_None. + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl | ImGuiMod_Shift); // Legal + // - Shortcut(ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiMod_Ctrl | ImGuiMod_Shift); // Not legal + ImGuiContext& g = *GImGui; + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + ImGuiKeyRoutingData* routing_data; + if (key_chord & ImGuiMod_Shortcut) + key_chord = ConvertShortcutMod(key_chord); + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(&g, mods); + IM_ASSERT(IsNamedKey(key)); + + // Get (in the majority of case, the linked list will have one element so this should be 2 reads. + // Subsequent elements will be contiguous in memory as list is sorted/rebuilt in NewFrame). + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; idx = routing_data->NextEntryIndex) + { + routing_data = &rt->Entries[idx]; + if (routing_data->Mods == mods) + return routing_data; + } + + // Add to linked-list + ImGuiKeyRoutingIndex routing_data_idx = (ImGuiKeyRoutingIndex)rt->Entries.Size; + rt->Entries.push_back(ImGuiKeyRoutingData()); + routing_data = &rt->Entries[routing_data_idx]; + routing_data->Mods = (ImU16)mods; + routing_data->NextEntryIndex = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; // Setup linked list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = routing_data_idx; + return routing_data; +} + +// Current score encoding (lower is highest priority): +// - 0: ImGuiInputFlags_RouteGlobalHigh +// - 1: ImGuiInputFlags_RouteFocused (if item active) +// - 2: ImGuiInputFlags_RouteGlobal +// - 3+: ImGuiInputFlags_RouteFocused (if window in focus-stack) +// - 254: ImGuiInputFlags_RouteGlobalLow +// - 255: never route +// 'flags' should include an explicit routing policy +static int CalcRoutingScore(ImGuiWindow* location, ImGuiID owner_id, ImGuiInputFlags flags) +{ + if (flags & ImGuiInputFlags_RouteFocused) + { + ImGuiContext& g = *GImGui; + ImGuiWindow* focused = g.NavWindow; + + // ActiveID gets top priority + // (we don't check g.ActiveIdUsingAllKeys here. Routing is applied but if input ownership is tested later it may discard it) + if (owner_id != 0 && g.ActiveId == owner_id) + return 1; + + // Score based on distance to focused window (lower is better) + // Assuming both windows are submitting a routing request, + // - When Window....... is focused -> Window scores 3 (best), Window/ChildB scores 255 (no match) + // - When Window/ChildB is focused -> Window scores 4, Window/ChildB scores 3 (best) + // Assuming only WindowA is submitting a routing request, + // - When Window/ChildB is focused -> Window scores 4 (best), Window/ChildB doesn't have a score. + if (focused != NULL && focused->RootWindow == location->RootWindow) + for (int next_score = 3; focused != NULL; next_score++) + { + if (focused == location) + { + IM_ASSERT(next_score < 255); + return next_score; + } + focused = (focused->RootWindow != focused) ? focused->ParentWindow : NULL; // FIXME: This could be later abstracted as a focus path + } + return 255; + } + + // ImGuiInputFlags_RouteGlobalHigh is default, so calls without flags are not conditional + if (flags & ImGuiInputFlags_RouteGlobal) + return 2; + if (flags & ImGuiInputFlags_RouteGlobalLow) + return 254; + return 0; +} + +// Request a desired route for an input chord (key + mods). +// Return true if the route is available this frame. +// - Routes and key ownership are attributed at the beginning of next frame based on best score and mod state. +// (Conceptually this does a "Submit for next frame" + "Test for current frame". +// As such, it could be called TrySetXXX or SubmitXXX, or the Submit and Test operations should be separate.) +// - Using 'owner_id == ImGuiKeyOwner_Any/0': auto-assign an owner based on current focus scope (each window has its focus scope by default) +// - Using 'owner_id == ImGuiKeyOwner_None': allows disabling/locking a shortcut. +bool ImGui::SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteGlobalHigh; // IMPORTANT: This is the default for SetShortcutRouting() but NOT Shortcut() + else + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiInputFlags_RouteMask_)); // Check that only 1 routing flag is used + + if (flags & ImGuiInputFlags_RouteUnlessBgFocused) + if (g.NavWindow == NULL) + return false; + if (flags & ImGuiInputFlags_RouteAlways) + return true; + + const int score = CalcRoutingScore(g.CurrentWindow, owner_id, flags); + if (score == 255) + return false; + + // Submit routing for NEXT frame (assuming score is sufficient) + // FIXME: Could expose a way to use a "serve last" policy for same score resolution (using <= instead of <). + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + //const bool set_route = (flags & ImGuiInputFlags_ServeLast) ? (score <= routing_data->RoutingNextScore) : (score < routing_data->RoutingNextScore); + if (score < routing_data->RoutingNextScore) + { + routing_data->RoutingNext = routing_id; + routing_data->RoutingNextScore = (ImU8)score; + } + + // Return routing state for CURRENT frame + return routing_data->RoutingCurr == routing_id; +} + +// Currently unused by core (but used by tests) +// Note: this cannot be turned into GetShortcutRouting() because we do the owner_id->routing_id translation, name would be more misleading. +bool ImGui::TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id) +{ + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); // FIXME: Could avoid creating entry. + return routing_data->RoutingCurr == routing_id; +} + +// Note that Dear ImGui doesn't know the meaning/semantic of ImGuiKey from 0..511: they are legacy native keycodes. +// Consider transitioning from 'IsKeyDown(MY_ENGINE_KEY_A)' (<1.87) to IsKeyDown(ImGuiKey_A) (>= 1.87) +bool ImGui::IsKeyDown(ImGuiKey key) +{ + return IsKeyDown(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyDown(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyPressed(ImGuiKey key, bool repeat) +{ + return IsKeyPressed(key, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +// Important: unless legacy IsKeyPressed(ImGuiKey, bool repeat=true) which DEFAULT to repeat, this requires EXPLICIT repeat. +bool ImGui::IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = key_data->DownDuration; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + bool pressed = (t == 0.0f); + if (!pressed && ((flags & ImGuiInputFlags_Repeat) != 0)) + { + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(flags, &repeat_delay, &repeat_rate); + pressed = (t > repeat_delay) && GetKeyPressedAmount(key, repeat_delay, repeat_rate) > 0; + } + if (!pressed) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyReleased(ImGuiKey key) +{ + return IsKeyReleased(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyReleased(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (key_data->DownDurationPrev < 0.0f || key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // should be same as IsKeyDown(MouseButtonToKey(button), ImGuiKeyOwner_Any), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyDown(MouseButtonToKey(button), owner_id), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat) +{ + return IsMouseClicked(button, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = g.IO.MouseDownDuration[button]; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + const bool repeat = (flags & ImGuiInputFlags_Repeat) != 0; + const bool pressed = (t == 0.0f) || (repeat && t > g.IO.KeyRepeatDelay && CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0); + if (!pressed) + return false; + + if (!TestKeyOwner(MouseButtonToKey(button), owner_id)) + return false; + + return true; +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // Should be same as IsKeyReleased(MouseButtonToKey(button), ImGuiKeyOwner_Any) +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyReleased(MouseButtonToKey(button), owner_id) +} + +bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button] == 2 && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); +} + +int ImGui::GetMouseClickedCount(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button]; +} + +// Test if mouse cursor is hovering given rectangle +// NB- Rectangle is clipped by our current clip setting +// NB- Expand the rectangle to be generous on imprecise inputs systems (g.Style.TouchExtraPadding) +bool ImGui::IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip) +{ + ImGuiContext& g = *GImGui; + + // Clip + ImRect rect_clipped(r_min, r_max); + if (clip) + rect_clipped.ClipWith(g.CurrentWindow->ClipRect); + + // Hit testing, expanded for touch input + if (!rect_clipped.ContainsWithPad(g.IO.MousePos, g.Style.TouchExtraPadding)) + return false; + if (!g.MouseViewport->GetMainRect().Overlaps(rect_clipped)) + return false; + return true; +} + +// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame. +// [Internal] This doesn't test if the button is pressed +bool ImGui::IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + return g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold; +} + +bool ImGui::IsMouseDragging(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) + return false; + return IsMouseDragPastThreshold(button, lock_threshold); +} + +ImVec2 ImGui::GetMousePos() +{ + ImGuiContext& g = *GImGui; + return g.IO.MousePos; +} + +// This is called TeleportMousePos() and not SetMousePos() to emphasis that setting MousePosPrev will effectively clear mouse delta as well. +// It is expected you only call this if (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos) is set and supported by backend. +void ImGui::TeleportMousePos(const ImVec2& pos) +{ + ImGuiContext& g = *GImGui; + g.IO.MousePos = g.IO.MousePosPrev = pos; + g.IO.MouseDelta = ImVec2(0.0f, 0.0f); + g.IO.WantSetMousePos = true; + //IMGUI_DEBUG_LOG_IO("TeleportMousePos: (%.1f,%.1f)\n", io.MousePos.x, io.MousePos.y); +} + +// NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed! +ImVec2 ImGui::GetMousePosOnOpeningCurrentPopup() +{ + ImGuiContext& g = *GImGui; + if (g.BeginPopupStack.Size > 0) + return g.OpenPopupStack[g.BeginPopupStack.Size - 1].OpenMousePos; + return g.IO.MousePos; +} + +// We typically use ImVec2(-FLT_MAX,-FLT_MAX) to denote an invalid mouse position. +bool ImGui::IsMousePosValid(const ImVec2* mouse_pos) +{ + // The assert is only to silence a false-positive in XCode Static Analysis. + // Because GImGui is not dereferenced in every code path, the static analyzer assume that it may be NULL (which it doesn't for other functions). + IM_ASSERT(GImGui != NULL); + const float MOUSE_INVALID = -256000.0f; + ImVec2 p = mouse_pos ? *mouse_pos : GImGui->IO.MousePos; + return p.x >= MOUSE_INVALID && p.y >= MOUSE_INVALID; +} + +// [WILL OBSOLETE] This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. +bool ImGui::IsAnyMouseDown() +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < IM_ARRAYSIZE(g.IO.MouseDown); n++) + if (g.IO.MouseDown[n]) + return true; + return false; +} + +// Return the delta from the initial clicking position while the mouse button is clicked or was just released. +// This is locked and return 0.0f until the mouse moves past a distance threshold at least once. +// NB: This is only valid if IsMousePosValid(). backends in theory should always keep mouse position valid when dragging even outside the client window. +ImVec2 ImGui::GetMouseDragDelta(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + if (g.IO.MouseDown[button] || g.IO.MouseReleased[button]) + if (g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold) + if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MouseClickedPos[button])) + return g.IO.MousePos - g.IO.MouseClickedPos[button]; + return ImVec2(0.0f, 0.0f); +} + +void ImGui::ResetMouseDragDelta(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + // NB: We don't need to reset g.IO.MouseDragMaxDistanceSqr + g.IO.MouseClickedPos[button] = g.IO.MousePos; +} + +// Get desired mouse cursor shape. +// Important: this is meant to be used by a platform backend, it is reset in ImGui::NewFrame(), +// updated during the frame, and locked in EndFrame()/Render(). +// If you use software rendering by setting io.MouseDrawCursor then Dear ImGui will render those for you +ImGuiMouseCursor ImGui::GetMouseCursor() +{ + ImGuiContext& g = *GImGui; + return g.MouseCursor; +} + +void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type) +{ + ImGuiContext& g = *GImGui; + g.MouseCursor = cursor_type; +} + +static void UpdateAliasKey(ImGuiKey key, bool v, float analog_value) +{ + IM_ASSERT(ImGui::IsAliasKey(key)); + ImGuiKeyData* key_data = ImGui::GetKeyData(key); + key_data->Down = v; + key_data->AnalogValue = analog_value; +} + +// [Internal] Do not use directly +static ImGuiKeyChord GetMergedModsFromKeys() +{ + ImGuiKeyChord mods = 0; + if (ImGui::IsKeyDown(ImGuiMod_Ctrl)) { mods |= ImGuiMod_Ctrl; } + if (ImGui::IsKeyDown(ImGuiMod_Shift)) { mods |= ImGuiMod_Shift; } + if (ImGui::IsKeyDown(ImGuiMod_Alt)) { mods |= ImGuiMod_Alt; } + if (ImGui::IsKeyDown(ImGuiMod_Super)) { mods |= ImGuiMod_Super; } + return mods; +} + +static void ImGui::UpdateKeyboardInputs() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Import legacy keys or verify they are not used +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (io.BackendUsingLegacyKeyArrays == 0) + { + // Backend used new io.AddKeyEvent() API: Good! Verify that old arrays are never written to externally. + for (int n = 0; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT((io.KeysDown[n] == false || IsKeyDown((ImGuiKey)n)) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + } + else + { + if (g.FrameCount == 0) + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT(g.IO.KeyMap[n] == -1 && "Backend is not allowed to write to io.KeyMap[0..511]!"); + + // Build reverse KeyMap (Named -> Legacy) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + if (io.KeyMap[n] != -1) + { + IM_ASSERT(IsLegacyKey((ImGuiKey)io.KeyMap[n])); + io.KeyMap[io.KeyMap[n]] = n; + } + + // Import legacy keys into new ones + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + if (io.KeysDown[n] || io.BackendUsingLegacyKeyArrays == 1) + { + const ImGuiKey key = (ImGuiKey)(io.KeyMap[n] != -1 ? io.KeyMap[n] : n); + IM_ASSERT(io.KeyMap[n] == -1 || IsNamedKey(key)); + io.KeysData[key].Down = io.KeysDown[n]; + if (key != n) + io.KeysDown[key] = io.KeysDown[n]; // Allow legacy code using io.KeysDown[GetKeyIndex()] with old backends + io.BackendUsingLegacyKeyArrays = 1; + } + if (io.BackendUsingLegacyKeyArrays == 1) + { + GetKeyData(ImGuiMod_Ctrl)->Down = io.KeyCtrl; + GetKeyData(ImGuiMod_Shift)->Down = io.KeyShift; + GetKeyData(ImGuiMod_Alt)->Down = io.KeyAlt; + GetKeyData(ImGuiMod_Super)->Down = io.KeySuper; + } + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + if (io.BackendUsingLegacyNavInputArray && nav_gamepad_active) + { + #define MAP_LEGACY_NAV_INPUT_TO_KEY1(_KEY, _NAV1) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f); io.KeysData[_KEY].AnalogValue = io.NavInputs[_NAV1]; } while (0) + #define MAP_LEGACY_NAV_INPUT_TO_KEY2(_KEY, _NAV1, _NAV2) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f) || (io.NavInputs[_NAV2] > 0.0f); io.KeysData[_KEY].AnalogValue = ImMax(io.NavInputs[_NAV1], io.NavInputs[_NAV2]); } while (0) + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceDown, ImGuiNavInput_Activate); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceRight, ImGuiNavInput_Cancel); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceLeft, ImGuiNavInput_Menu); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceUp, ImGuiNavInput_Input); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadLeft, ImGuiNavInput_DpadLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadRight, ImGuiNavInput_DpadRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadUp, ImGuiNavInput_DpadUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadDown, ImGuiNavInput_DpadDown); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadL1, ImGuiNavInput_FocusPrev, ImGuiNavInput_TweakSlow); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadR1, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakFast); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickLeft, ImGuiNavInput_LStickLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickRight, ImGuiNavInput_LStickRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickUp, ImGuiNavInput_LStickUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickDown, ImGuiNavInput_LStickDown); + #undef NAV_MAP_KEY + } +#endif +#endif + + // Update aliases + for (int n = 0; n < ImGuiMouseButton_COUNT; n++) + UpdateAliasKey(MouseButtonToKey(n), io.MouseDown[n], io.MouseDown[n] ? 1.0f : 0.0f); + UpdateAliasKey(ImGuiKey_MouseWheelX, io.MouseWheelH != 0.0f, io.MouseWheelH); + UpdateAliasKey(ImGuiKey_MouseWheelY, io.MouseWheel != 0.0f, io.MouseWheel); + + // Synchronize io.KeyMods and io.KeyXXX values. + // - New backends (1.87+): send io.AddKeyEvent(ImGuiMod_XXX) -> -> (here) deriving io.KeyMods + io.KeyXXX from key array. + // - Legacy backends: set io.KeyXXX bools -> (above) set key array from io.KeyXXX -> (here) deriving io.KeyMods + io.KeyXXX from key array. + // So with legacy backends the 4 values will do a unnecessary back-and-forth but it makes the code simpler and future facing. + io.KeyMods = GetMergedModsFromKeys(); + io.KeyCtrl = (io.KeyMods & ImGuiMod_Ctrl) != 0; + io.KeyShift = (io.KeyMods & ImGuiMod_Shift) != 0; + io.KeyAlt = (io.KeyMods & ImGuiMod_Alt) != 0; + io.KeySuper = (io.KeyMods & ImGuiMod_Super) != 0; + + // Clear gamepad data if disabled + if ((io.BackendFlags & ImGuiBackendFlags_HasGamepad) == 0) + for (int i = ImGuiKey_Gamepad_BEGIN; i < ImGuiKey_Gamepad_END; i++) + { + io.KeysData[i - ImGuiKey_KeysData_OFFSET].Down = false; + io.KeysData[i - ImGuiKey_KeysData_OFFSET].AnalogValue = 0.0f; + } + + // Update keys + for (int i = 0; i < ImGuiKey_KeysData_SIZE; i++) + { + ImGuiKeyData* key_data = &io.KeysData[i]; + key_data->DownDurationPrev = key_data->DownDuration; + key_data->DownDuration = key_data->Down ? (key_data->DownDuration < 0.0f ? 0.0f : key_data->DownDuration + io.DeltaTime) : -1.0f; + } + + // Update keys/input owner (named keys only): one entry per key + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyData* key_data = &io.KeysData[key - ImGuiKey_KeysData_OFFSET]; + ImGuiKeyOwnerData* owner_data = &g.KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; + owner_data->OwnerCurr = owner_data->OwnerNext; + if (!key_data->Down) // Important: ownership is released on the frame after a release. Ensure a 'MouseDown -> CloseWindow -> MouseUp' chain doesn't lead to someone else seeing the MouseUp. + owner_data->OwnerNext = ImGuiKeyOwner_None; + owner_data->LockThisFrame = owner_data->LockUntilRelease = owner_data->LockUntilRelease && key_data->Down; // Clear LockUntilRelease when key is not Down anymore + } + + UpdateKeyRoutingTable(&g.KeysRoutingTable); +} + +static void ImGui::UpdateMouseInputs() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Mouse Wheel swapping flag + // As a standard behavior holding SHIFT while using Vertical Mouse Wheel triggers Horizontal scroll instead + // - We avoid doing it on OSX as it the OS input layer handles this already. + // - FIXME: However this means when running on OSX over Emscripten, Shift+WheelY will incur two swapping (1 in OS, 1 here), canceling the feature. + // - FIXME: When we can distinguish e.g. touchpad scroll events from mouse ones, we'll set this accordingly based on input source. + io.MouseWheelRequestAxisSwap = io.KeyShift && !io.ConfigMacOSXBehaviors; + + // Round mouse position to avoid spreading non-rounded position (e.g. UpdateManualResize doesn't support them well) + if (IsMousePosValid(&io.MousePos)) + io.MousePos = g.MouseLastValidPos = ImFloor(io.MousePos); + + // If mouse just appeared or disappeared (usually denoted by -FLT_MAX components) we cancel out movement in MouseDelta + if (IsMousePosValid(&io.MousePos) && IsMousePosValid(&io.MousePosPrev)) + io.MouseDelta = io.MousePos - io.MousePosPrev; + else + io.MouseDelta = ImVec2(0.0f, 0.0f); + + // Update stationary timer. + // FIXME: May need to rework again to have some tolerance for occasional small movement, while being functional on high-framerates. + const float mouse_stationary_threshold = (io.MouseSource == ImGuiMouseSource_Mouse) ? 2.0f : 3.0f; // Slightly higher threshold for ImGuiMouseSource_TouchScreen/ImGuiMouseSource_Pen, may need rework. + const bool mouse_stationary = (ImLengthSqr(io.MouseDelta) <= mouse_stationary_threshold * mouse_stationary_threshold); + g.MouseStationaryTimer = mouse_stationary ? (g.MouseStationaryTimer + io.DeltaTime) : 0.0f; + //IMGUI_DEBUG_LOG("%.4f\n", g.MouseStationaryTimer); + + // If mouse moved we re-enable mouse hovering in case it was disabled by gamepad/keyboard. In theory should use a >0.0f threshold but would need to reset in everywhere we set this to true. + if (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f) + g.NavDisableMouseHover = false; + + for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) + { + io.MouseClicked[i] = io.MouseDown[i] && io.MouseDownDuration[i] < 0.0f; + io.MouseClickedCount[i] = 0; // Will be filled below + io.MouseReleased[i] = !io.MouseDown[i] && io.MouseDownDuration[i] >= 0.0f; + io.MouseDownDurationPrev[i] = io.MouseDownDuration[i]; + io.MouseDownDuration[i] = io.MouseDown[i] ? (io.MouseDownDuration[i] < 0.0f ? 0.0f : io.MouseDownDuration[i] + io.DeltaTime) : -1.0f; + if (io.MouseClicked[i]) + { + bool is_repeated_click = false; + if ((float)(g.Time - io.MouseClickedTime[i]) < io.MouseDoubleClickTime) + { + ImVec2 delta_from_click_pos = IsMousePosValid(&io.MousePos) ? (io.MousePos - io.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + if (ImLengthSqr(delta_from_click_pos) < io.MouseDoubleClickMaxDist * io.MouseDoubleClickMaxDist) + is_repeated_click = true; + } + if (is_repeated_click) + io.MouseClickedLastCount[i]++; + else + io.MouseClickedLastCount[i] = 1; + io.MouseClickedTime[i] = g.Time; + io.MouseClickedPos[i] = io.MousePos; + io.MouseClickedCount[i] = io.MouseClickedLastCount[i]; + io.MouseDragMaxDistanceAbs[i] = ImVec2(0.0f, 0.0f); + io.MouseDragMaxDistanceSqr[i] = 0.0f; + } + else if (io.MouseDown[i]) + { + // Maintain the maximum distance we reaching from the initial click position, which is used with dragging threshold + ImVec2 delta_from_click_pos = IsMousePosValid(&io.MousePos) ? (io.MousePos - io.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + io.MouseDragMaxDistanceSqr[i] = ImMax(io.MouseDragMaxDistanceSqr[i], ImLengthSqr(delta_from_click_pos)); + io.MouseDragMaxDistanceAbs[i].x = ImMax(io.MouseDragMaxDistanceAbs[i].x, delta_from_click_pos.x < 0.0f ? -delta_from_click_pos.x : delta_from_click_pos.x); + io.MouseDragMaxDistanceAbs[i].y = ImMax(io.MouseDragMaxDistanceAbs[i].y, delta_from_click_pos.y < 0.0f ? -delta_from_click_pos.y : delta_from_click_pos.y); + } + + // We provide io.MouseDoubleClicked[] as a legacy service + io.MouseDoubleClicked[i] = (io.MouseClickedCount[i] == 2); + + // Clicking any mouse button reactivate mouse hovering which may have been deactivated by gamepad/keyboard navigation + if (io.MouseClicked[i]) + g.NavDisableMouseHover = false; + } +} + +static void LockWheelingWindow(ImGuiWindow* window, float wheel_amount) +{ + ImGuiContext& g = *GImGui; + if (window) + g.WheelingWindowReleaseTimer = ImMin(g.WheelingWindowReleaseTimer + ImAbs(wheel_amount) * WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER, WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER); + else + g.WheelingWindowReleaseTimer = 0.0f; + if (g.WheelingWindow == window) + return; + IMGUI_DEBUG_LOG_IO("[io] LockWheelingWindow() \"%s\"\n", window ? window->Name : "NULL"); + g.WheelingWindow = window; + g.WheelingWindowRefMousePos = g.IO.MousePos; + if (window == NULL) + { + g.WheelingWindowStartFrame = -1; + g.WheelingAxisAvg = ImVec2(0.0f, 0.0f); + } +} + +static ImGuiWindow* FindBestWheelingWindow(const ImVec2& wheel) +{ + // For each axis, find window in the hierarchy that may want to use scrolling + ImGuiContext& g = *GImGui; + ImGuiWindow* windows[2] = { NULL, NULL }; + for (int axis = 0; axis < 2; axis++) + if (wheel[axis] != 0.0f) + for (ImGuiWindow* window = windows[axis] = g.HoveredWindow; window->Flags & ImGuiWindowFlags_ChildWindow; window = windows[axis] = window->ParentWindow) + { + // Bubble up into parent window if: + // - a child window doesn't allow any scrolling. + // - a child window has the ImGuiWindowFlags_NoScrollWithMouse flag. + //// - a child window doesn't need scrolling because it is already at the edge for the direction we are going in (FIXME-WIP) + const bool has_scrolling = (window->ScrollMax[axis] != 0.0f); + const bool inputs_disabled = (window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs); + //const bool scrolling_past_limits = (wheel_v < 0.0f) ? (window->Scroll[axis] <= 0.0f) : (window->Scroll[axis] >= window->ScrollMax[axis]); + if (has_scrolling && !inputs_disabled) // && !scrolling_past_limits) + break; // select this window + } + if (windows[0] == NULL && windows[1] == NULL) + return NULL; + + // If there's only one window or only one axis then there's no ambiguity + if (windows[0] == windows[1] || windows[0] == NULL || windows[1] == NULL) + return windows[1] ? windows[1] : windows[0]; + + // If candidate are different windows we need to decide which one to prioritize + // - First frame: only find a winner if one axis is zero. + // - Subsequent frames: only find a winner when one is more than the other. + if (g.WheelingWindowStartFrame == -1) + g.WheelingWindowStartFrame = g.FrameCount; + if ((g.WheelingWindowStartFrame == g.FrameCount && wheel.x != 0.0f && wheel.y != 0.0f) || (g.WheelingAxisAvg.x == g.WheelingAxisAvg.y)) + { + g.WheelingWindowWheelRemainder = wheel; + return NULL; + } + return (g.WheelingAxisAvg.x > g.WheelingAxisAvg.y) ? windows[0] : windows[1]; +} + +// Called by NewFrame() +void ImGui::UpdateMouseWheel() +{ + // Reset the locked window if we move the mouse or after the timer elapses. + // FIXME: Ideally we could refactor to have one timer for "changing window w/ same axis" and a shorter timer for "changing window or axis w/ other axis" (#3795) + ImGuiContext& g = *GImGui; + if (g.WheelingWindow != NULL) + { + g.WheelingWindowReleaseTimer -= g.IO.DeltaTime; + if (IsMousePosValid() && ImLengthSqr(g.IO.MousePos - g.WheelingWindowRefMousePos) > g.IO.MouseDragThreshold * g.IO.MouseDragThreshold) + g.WheelingWindowReleaseTimer = 0.0f; + if (g.WheelingWindowReleaseTimer <= 0.0f) + LockWheelingWindow(NULL, 0.0f); + } + + ImVec2 wheel; + wheel.x = TestKeyOwner(ImGuiKey_MouseWheelX, ImGuiKeyOwner_None) ? g.IO.MouseWheelH : 0.0f; + wheel.y = TestKeyOwner(ImGuiKey_MouseWheelY, ImGuiKeyOwner_None) ? g.IO.MouseWheel : 0.0f; + + //IMGUI_DEBUG_LOG("MouseWheel X:%.3f Y:%.3f\n", wheel_x, wheel_y); + ImGuiWindow* mouse_window = g.WheelingWindow ? g.WheelingWindow : g.HoveredWindow; + if (!mouse_window || mouse_window->Collapsed) + return; + + // Zoom / Scale window + // FIXME-OBSOLETE: This is an old feature, it still works but pretty much nobody is using it and may be best redesigned. + if (wheel.y != 0.0f && g.IO.KeyCtrl && g.IO.FontAllowUserScaling) + { + LockWheelingWindow(mouse_window, wheel.y); + ImGuiWindow* window = mouse_window; + const float new_font_scale = ImClamp(window->FontWindowScale + g.IO.MouseWheel * 0.10f, 0.50f, 2.50f); + const float scale = new_font_scale / window->FontWindowScale; + window->FontWindowScale = new_font_scale; + if (window == window->RootWindow) + { + const ImVec2 offset = window->Size * (1.0f - scale) * (g.IO.MousePos - window->Pos) / window->Size; + SetWindowPos(window, window->Pos + offset, 0); + window->Size = ImTrunc(window->Size * scale); + window->SizeFull = ImTrunc(window->SizeFull * scale); + } + return; + } + if (g.IO.KeyCtrl) + return; + + // Mouse wheel scrolling + // Read about io.MouseWheelRequestAxisSwap and its issue on Mac+Emscripten in UpdateMouseInputs() + if (g.IO.MouseWheelRequestAxisSwap) + wheel = ImVec2(wheel.y, 0.0f); + + // Maintain a rough average of moving magnitude on both axises + // FIXME: should by based on wall clock time rather than frame-counter + g.WheelingAxisAvg.x = ImExponentialMovingAverage(g.WheelingAxisAvg.x, ImAbs(wheel.x), 30); + g.WheelingAxisAvg.y = ImExponentialMovingAverage(g.WheelingAxisAvg.y, ImAbs(wheel.y), 30); + + // In the rare situation where FindBestWheelingWindow() had to defer first frame of wheeling due to ambiguous main axis, reinject it now. + wheel += g.WheelingWindowWheelRemainder; + g.WheelingWindowWheelRemainder = ImVec2(0.0f, 0.0f); + if (wheel.x == 0.0f && wheel.y == 0.0f) + return; + + // Mouse wheel scrolling: find target and apply + // - don't renew lock if axis doesn't apply on the window. + // - select a main axis when both axises are being moved. + if (ImGuiWindow* window = (g.WheelingWindow ? g.WheelingWindow : FindBestWheelingWindow(wheel))) + if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) + { + bool do_scroll[2] = { wheel.x != 0.0f && window->ScrollMax.x != 0.0f, wheel.y != 0.0f && window->ScrollMax.y != 0.0f }; + if (do_scroll[ImGuiAxis_X] && do_scroll[ImGuiAxis_Y]) + do_scroll[(g.WheelingAxisAvg.x > g.WheelingAxisAvg.y) ? ImGuiAxis_Y : ImGuiAxis_X] = false; + if (do_scroll[ImGuiAxis_X]) + { + LockWheelingWindow(window, wheel.x); + float max_step = window->InnerRect.GetWidth() * 0.67f; + float scroll_step = ImTrunc(ImMin(2 * window->CalcFontSize(), max_step)); + SetScrollX(window, window->Scroll.x - wheel.x * scroll_step); + } + if (do_scroll[ImGuiAxis_Y]) + { + LockWheelingWindow(window, wheel.y); + float max_step = window->InnerRect.GetHeight() * 0.67f; + float scroll_step = ImTrunc(ImMin(5 * window->CalcFontSize(), max_step)); + SetScrollY(window, window->Scroll.y - wheel.y * scroll_step); + } + } +} + +void ImGui::SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard) +{ + ImGuiContext& g = *GImGui; + g.WantCaptureKeyboardNextFrame = want_capture_keyboard ? 1 : 0; +} + +void ImGui::SetNextFrameWantCaptureMouse(bool want_capture_mouse) +{ + ImGuiContext& g = *GImGui; + g.WantCaptureMouseNextFrame = want_capture_mouse ? 1 : 0; +} + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS +static const char* GetInputSourceName(ImGuiInputSource source) +{ + const char* input_source_names[] = { "None", "Mouse", "Keyboard", "Gamepad", "Clipboard" }; + IM_ASSERT(IM_ARRAYSIZE(input_source_names) == ImGuiInputSource_COUNT && source >= 0 && source < ImGuiInputSource_COUNT); + return input_source_names[source]; +} +static const char* GetMouseSourceName(ImGuiMouseSource source) +{ + const char* mouse_source_names[] = { "Mouse", "TouchScreen", "Pen" }; + IM_ASSERT(IM_ARRAYSIZE(mouse_source_names) == ImGuiMouseSource_COUNT && source >= 0 && source < ImGuiMouseSource_COUNT); + return mouse_source_names[source]; +} +static void DebugPrintInputEvent(const char* prefix, const ImGuiInputEvent* e) +{ + ImGuiContext& g = *GImGui; + if (e->Type == ImGuiInputEventType_MousePos) { if (e->MousePos.PosX == -FLT_MAX && e->MousePos.PosY == -FLT_MAX) IMGUI_DEBUG_LOG_IO("[io] %s: MousePos (-FLT_MAX, -FLT_MAX)\n", prefix); else IMGUI_DEBUG_LOG_IO("[io] %s: MousePos (%.1f, %.1f) (%s)\n", prefix, e->MousePos.PosX, e->MousePos.PosY, GetMouseSourceName(e->MousePos.MouseSource)); return; } + if (e->Type == ImGuiInputEventType_MouseButton) { IMGUI_DEBUG_LOG_IO("[io] %s: MouseButton %d %s (%s)\n", prefix, e->MouseButton.Button, e->MouseButton.Down ? "Down" : "Up", GetMouseSourceName(e->MouseButton.MouseSource)); return; } + if (e->Type == ImGuiInputEventType_MouseWheel) { IMGUI_DEBUG_LOG_IO("[io] %s: MouseWheel (%.3f, %.3f) (%s)\n", prefix, e->MouseWheel.WheelX, e->MouseWheel.WheelY, GetMouseSourceName(e->MouseWheel.MouseSource)); return; } + if (e->Type == ImGuiInputEventType_MouseViewport){IMGUI_DEBUG_LOG_IO("[io] %s: MouseViewport (0x%08X)\n", prefix, e->MouseViewport.HoveredViewportID); return; } + if (e->Type == ImGuiInputEventType_Key) { IMGUI_DEBUG_LOG_IO("[io] %s: Key \"%s\" %s\n", prefix, ImGui::GetKeyName(e->Key.Key), e->Key.Down ? "Down" : "Up"); return; } + if (e->Type == ImGuiInputEventType_Text) { IMGUI_DEBUG_LOG_IO("[io] %s: Text: %c (U+%08X)\n", prefix, e->Text.Char, e->Text.Char); return; } + if (e->Type == ImGuiInputEventType_Focus) { IMGUI_DEBUG_LOG_IO("[io] %s: AppFocused %d\n", prefix, e->AppFocused.Focused); return; } +} +#endif + +// Process input queue +// We always call this with the value of 'bool g.IO.ConfigInputTrickleEventQueue'. +// - trickle_fast_inputs = false : process all events, turn into flattened input state (e.g. successive down/up/down/up will be lost) +// - trickle_fast_inputs = true : process as many events as possible (successive down/up/down/up will be trickled over several frames so nothing is lost) (new feature in 1.87) +void ImGui::UpdateInputEvents(bool trickle_fast_inputs) +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Only trickle chars<>key when working with InputText() + // FIXME: InputText() could parse event trail? + // FIXME: Could specialize chars<>keys trickling rules for control keys (those not typically associated to characters) + const bool trickle_interleaved_keys_and_text = (trickle_fast_inputs && g.WantTextInputNextFrame == 1); + + bool mouse_moved = false, mouse_wheeled = false, key_changed = false, text_inputted = false; + int mouse_button_changed = 0x00; + ImBitArray key_changed_mask; + + int event_n = 0; + for (; event_n < g.InputEventsQueue.Size; event_n++) + { + ImGuiInputEvent* e = &g.InputEventsQueue[event_n]; + if (e->Type == ImGuiInputEventType_MousePos) + { + if (g.IO.WantSetMousePos) + continue; + // Trickling Rule: Stop processing queued events if we already handled a mouse button change + ImVec2 event_pos(e->MousePos.PosX, e->MousePos.PosY); + if (trickle_fast_inputs && (mouse_button_changed != 0 || mouse_wheeled || key_changed || text_inputted)) + break; + io.MousePos = event_pos; + io.MouseSource = e->MousePos.MouseSource; + mouse_moved = true; + } + else if (e->Type == ImGuiInputEventType_MouseButton) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + const ImGuiMouseButton button = e->MouseButton.Button; + IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); + if (trickle_fast_inputs && ((mouse_button_changed & (1 << button)) || mouse_wheeled)) + break; + if (trickle_fast_inputs && e->MouseButton.MouseSource == ImGuiMouseSource_TouchScreen && mouse_moved) // #2702: TouchScreen have no initial hover. + break; + io.MouseDown[button] = e->MouseButton.Down; + io.MouseSource = e->MouseButton.MouseSource; + mouse_button_changed |= (1 << button); + } + else if (e->Type == ImGuiInputEventType_MouseWheel) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the event + if (trickle_fast_inputs && (mouse_moved || mouse_button_changed != 0)) + break; + io.MouseWheelH += e->MouseWheel.WheelX; + io.MouseWheel += e->MouseWheel.WheelY; + io.MouseSource = e->MouseWheel.MouseSource; + mouse_wheeled = true; + } + else if (e->Type == ImGuiInputEventType_MouseViewport) + { + io.MouseHoveredViewport = e->MouseViewport.HoveredViewportID; + } + else if (e->Type == ImGuiInputEventType_Key) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + ImGuiKey key = e->Key.Key; + IM_ASSERT(key != ImGuiKey_None); + ImGuiKeyData* key_data = GetKeyData(key); + const int key_data_index = (int)(key_data - g.IO.KeysData); + if (trickle_fast_inputs && key_data->Down != e->Key.Down && (key_changed_mask.TestBit(key_data_index) || text_inputted || mouse_button_changed != 0)) + break; + key_data->Down = e->Key.Down; + key_data->AnalogValue = e->Key.AnalogValue; + key_changed = true; + key_changed_mask.SetBit(key_data_index); + + // Allow legacy code using io.KeysDown[GetKeyIndex()] with new backends +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + io.KeysDown[key_data_index] = key_data->Down; + if (io.KeyMap[key_data_index] != -1) + io.KeysDown[io.KeyMap[key_data_index]] = key_data->Down; +#endif + } + else if (e->Type == ImGuiInputEventType_Text) + { + // Trickling Rule: Stop processing queued events if keys/mouse have been interacted with + if (trickle_fast_inputs && ((key_changed && trickle_interleaved_keys_and_text) || mouse_button_changed != 0 || mouse_moved || mouse_wheeled)) + break; + unsigned int c = e->Text.Char; + io.InputQueueCharacters.push_back(c <= IM_UNICODE_CODEPOINT_MAX ? (ImWchar)c : IM_UNICODE_CODEPOINT_INVALID); + if (trickle_interleaved_keys_and_text) + text_inputted = true; + } + else if (e->Type == ImGuiInputEventType_Focus) + { + // We intentionally overwrite this and process in NewFrame(), in order to give a chance + // to multi-viewports backends to queue AddFocusEvent(false) + AddFocusEvent(true) in same frame. + const bool focus_lost = !e->AppFocused.Focused; + io.AppFocusLost = focus_lost; + } + else + { + IM_ASSERT(0 && "Unknown event!"); + } + } + + // Record trail (for domain-specific applications wanting to access a precise trail) + //if (event_n != 0) IMGUI_DEBUG_LOG_IO("Processed: %d / Remaining: %d\n", event_n, g.InputEventsQueue.Size - event_n); + for (int n = 0; n < event_n; n++) + g.InputEventsTrail.push_back(g.InputEventsQueue[n]); + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (event_n != 0 && (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO)) + for (int n = 0; n < g.InputEventsQueue.Size; n++) + DebugPrintInputEvent(n < event_n ? "Processed" : "Remaining", &g.InputEventsQueue[n]); +#endif + + // Remaining events will be processed on the next frame + if (event_n == g.InputEventsQueue.Size) + g.InputEventsQueue.resize(0); + else + g.InputEventsQueue.erase(g.InputEventsQueue.Data, g.InputEventsQueue.Data + event_n); + + // Clear buttons state when focus is lost + // - this is useful so e.g. releasing Alt after focus loss on Alt-Tab doesn't trigger the Alt menu toggle. + // - we clear in EndFrame() and not now in order allow application/user code polling this flag + // (e.g. custom backend may want to clear additional data, custom widgets may want to react with a "canceling" event). + if (g.IO.AppFocusLost) + g.IO.ClearInputKeys(); +} + +ImGuiID ImGui::GetKeyOwner(ImGuiKey key) +{ + if (!IsNamedKeyOrModKey(key)) + return ImGuiKeyOwner_None; + + ImGuiContext& g = *GImGui; + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(&g, key); + ImGuiID owner_id = owner_data->OwnerCurr; + + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return ImGuiKeyOwner_None; + + return owner_id; +} + +// TestKeyOwner(..., ID) : (owner == None || owner == ID) +// TestKeyOwner(..., None) : (owner == None) +// TestKeyOwner(..., Any) : no owner test +// All paths are also testing for key not being locked, for the rare cases that key have been locked with using ImGuiInputFlags_LockXXX flags. +bool ImGui::TestKeyOwner(ImGuiKey key, ImGuiID owner_id) +{ + if (!IsNamedKeyOrModKey(key)) + return true; + + ImGuiContext& g = *GImGui; + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return false; + + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(&g, key); + if (owner_id == ImGuiKeyOwner_Any) + return (owner_data->LockThisFrame == false); + + // Note: SetKeyOwner() sets OwnerCurr. It is not strictly required for most mouse routing overlap (because of ActiveId/HoveredId + // are acting as filter before this has a chance to filter), but sane as soon as user tries to look into things. + // Setting OwnerCurr in SetKeyOwner() is more consistent than testing OwnerNext here: would be inconsistent with getter and other functions. + if (owner_data->OwnerCurr != owner_id) + { + if (owner_data->LockThisFrame) + return false; + if (owner_data->OwnerCurr != ImGuiKeyOwner_None) + return false; + } + + return true; +} + +// _LockXXX flags are useful to lock keys away from code which is not input-owner aware. +// When using _LockXXX flags, you can use ImGuiKeyOwner_Any to lock keys from everyone. +// - SetKeyOwner(..., None) : clears owner +// - SetKeyOwner(..., Any, !Lock) : illegal (assert) +// - SetKeyOwner(..., Any or None, Lock) : set lock +void ImGui::SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) +{ + IM_ASSERT(IsNamedKeyOrModKey(key) && (owner_id != ImGuiKeyOwner_Any || (flags & (ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease)))); // Can only use _Any with _LockXXX flags (to eat a key away without an ID to retrieve it) + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetKeyOwner) == 0); // Passing flags not supported by this function! + + ImGuiContext& g = *GImGui; + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(&g, key); + owner_data->OwnerCurr = owner_data->OwnerNext = owner_id; + + // We cannot lock by default as it would likely break lots of legacy code. + // In the case of using LockUntilRelease while key is not down we still lock during the frame (no key_data->Down test) + owner_data->LockUntilRelease = (flags & ImGuiInputFlags_LockUntilRelease) != 0; + owner_data->LockThisFrame = (flags & ImGuiInputFlags_LockThisFrame) != 0 || (owner_data->LockUntilRelease); +} + +// Rarely used helper +void ImGui::SetKeyOwnersForKeyChord(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + if (key_chord & ImGuiMod_Ctrl) { SetKeyOwner(ImGuiMod_Ctrl, owner_id, flags); } + if (key_chord & ImGuiMod_Shift) { SetKeyOwner(ImGuiMod_Shift, owner_id, flags); } + if (key_chord & ImGuiMod_Alt) { SetKeyOwner(ImGuiMod_Alt, owner_id, flags); } + if (key_chord & ImGuiMod_Super) { SetKeyOwner(ImGuiMod_Super, owner_id, flags); } + if (key_chord & ImGuiMod_Shortcut) { SetKeyOwner(ImGuiMod_Shortcut, owner_id, flags); } + if (key_chord & ~ImGuiMod_Mask_) { SetKeyOwner((ImGuiKey)(key_chord & ~ImGuiMod_Mask_), owner_id, flags); } +} + +// This is more or less equivalent to: +// if (IsItemHovered() || IsItemActive()) +// SetKeyOwner(key, GetItemID()); +// Extensive uses of that (e.g. many calls for a single item) may want to manually perform the tests once and then call SetKeyOwner() multiple times. +// More advanced usage scenarios may want to call SetKeyOwner() manually based on different condition. +// Worth noting is that only one item can be hovered and only one item can be active, therefore this usage pattern doesn't need to bother with routing and priority. +void ImGui::SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.LastItemData.ID; + if (id == 0 || (g.HoveredId != id && g.ActiveId != id)) + return; + if ((flags & ImGuiInputFlags_CondMask_) == 0) + flags |= ImGuiInputFlags_CondDefault_; + if ((g.HoveredId == id && (flags & ImGuiInputFlags_CondHovered)) || (g.ActiveId == id && (flags & ImGuiInputFlags_CondActive))) + { + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetItemKeyOwner) == 0); // Passing flags not supported by this function! + SetKeyOwner(key, id, flags & ~ImGuiInputFlags_CondMask_); + } +} + +// This is equivalent to comparing KeyMods + doing a IsKeyPressed() +bool ImGui::IsKeyChordPressed(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + if (key_chord & ImGuiMod_Shortcut) + key_chord = ConvertShortcutMod(key_chord); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (g.IO.KeyMods != mods) + return false; + + // Special storage location for mods + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(&g, mods); + if (!IsKeyPressed(key, owner_id, (flags & (ImGuiInputFlags_Repeat | (ImGuiInputFlags)ImGuiInputFlags_RepeatRateMask_)))) + return false; + return true; +} + +bool ImGui::Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + // When using (owner_id == 0/Any): SetShortcutRouting() will use CurrentFocusScopeId and filter with this, so IsKeyPressed() is fine with he 0/Any. + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteFocused; + if (!SetShortcutRouting(key_chord, owner_id, flags)) + return false; + + if (!IsKeyChordPressed(key_chord, owner_id, flags)) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByShortcut) == 0); // Passing flags not supported by this function! + return true; +} + + +//----------------------------------------------------------------------------- +// [SECTION] ERROR CHECKING +//----------------------------------------------------------------------------- + +// Helper function to verify ABI compatibility between caller code and compiled version of Dear ImGui. +// 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 an issue: +// - Most commonly: mismatched headers and compiled code version. +// - Or: 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 way it is required you put them in your imconfig file (and not just before including imgui.h). +// Otherwise it is possible that different compilation units would see different structure layout +bool ImGui::DebugCheckVersionAndDataLayout(const char* version, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_vert, size_t sz_idx) +{ + bool error = false; + if (strcmp(version, IMGUI_VERSION) != 0) { error = true; IM_ASSERT(strcmp(version, IMGUI_VERSION) == 0 && "Mismatched version string!"); } + if (sz_io != sizeof(ImGuiIO)) { error = true; IM_ASSERT(sz_io == sizeof(ImGuiIO) && "Mismatched struct layout!"); } + if (sz_style != sizeof(ImGuiStyle)) { error = true; IM_ASSERT(sz_style == sizeof(ImGuiStyle) && "Mismatched struct layout!"); } + if (sz_vec2 != sizeof(ImVec2)) { error = true; IM_ASSERT(sz_vec2 == sizeof(ImVec2) && "Mismatched struct layout!"); } + if (sz_vec4 != sizeof(ImVec4)) { error = true; IM_ASSERT(sz_vec4 == sizeof(ImVec4) && "Mismatched struct layout!"); } + if (sz_vert != sizeof(ImDrawVert)) { error = true; IM_ASSERT(sz_vert == sizeof(ImDrawVert) && "Mismatched struct layout!"); } + if (sz_idx != sizeof(ImDrawIdx)) { error = true; IM_ASSERT(sz_idx == sizeof(ImDrawIdx) && "Mismatched struct layout!"); } + return !error; +} + +// Until 1.89 (IMGUI_VERSION_NUM < 18814) it was legal to use SetCursorPos() to extend the boundary of a parent (e.g. window or table cell) +// This is causing issues and ambiguity and we need to retire that. +// See https://github.com/ocornut/imgui/issues/5548 for more details. +// [Scenario 1] +// Previously this would make the window content size ~200x200: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); // NOT OK +// Instead, please submit an item: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); // OK +// Alternative: +// Begin(...) + Dummy(ImVec2(200,200)) + End(); // OK +// [Scenario 2] +// For reference this is one of the issue what we aim to fix with this change: +// BeginGroup() + SomeItem("foobar") + SetCursorScreenPos(GetCursorScreenPos()) + EndGroup() +// The previous logic made SetCursorScreenPos(GetCursorScreenPos()) have a side-effect! It would erroneously incorporate ItemSpacing.y after the item into content size, making the group taller! +// While this code is a little twisted, no-one would expect SetXXX(GetXXX()) to have a side-effect. Using vertical alignment patterns could trigger this issue. +void ImGui::ErrorCheckUsingSetCursorPosToExtendParentBoundaries() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->DC.IsSetPos); + window->DC.IsSetPos = false; +#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (window->DC.CursorPos.x <= window->DC.CursorMaxPos.x && window->DC.CursorPos.y <= window->DC.CursorMaxPos.y) + return; + if (window->SkipItems) + return; + IM_ASSERT(0 && "Code uses SetCursorPos()/SetCursorScreenPos() to extend window/parent boundaries. Please submit an item e.g. Dummy() to validate extent."); +#else + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); +#endif +} + +static void ImGui::ErrorCheckNewFrameSanityChecks() +{ + ImGuiContext& g = *GImGui; + + // Check user IM_ASSERT macro + // (IF YOU GET A WARNING OR COMPILE ERROR HERE: it means your assert macro is incorrectly defined! + // If your macro uses multiple statements, it NEEDS to be surrounded by a 'do { ... } while (0)' block. + // This is a common C/C++ idiom to allow multiple statements macros to be used in control flow blocks.) + // #define IM_ASSERT(EXPR) if (SomeCode(EXPR)) SomeMoreCode(); // Wrong! + // #define IM_ASSERT(EXPR) do { if (SomeCode(EXPR)) SomeMoreCode(); } while (0) // Correct! + if (true) IM_ASSERT(1); else IM_ASSERT(0); + + // Emscripten backends are often imprecise in their submission of DeltaTime. (#6114, #3644) + // Ideally the Emscripten app/backend should aim to fix or smooth this value and avoid feeding zero, but we tolerate it. +#ifdef __EMSCRIPTEN__ + if (g.IO.DeltaTime <= 0.0f && g.FrameCount > 0) + g.IO.DeltaTime = 0.00001f; +#endif + + // Check user data + // (We pass an error message in the assert expression to make it visible to programmers who are not using a debugger, as most assert handlers display their argument) + IM_ASSERT(g.Initialized); + IM_ASSERT((g.IO.DeltaTime > 0.0f || g.FrameCount == 0) && "Need a positive DeltaTime!"); + IM_ASSERT((g.FrameCount == 0 || g.FrameCountEnded == g.FrameCount) && "Forgot to call Render() or EndFrame() at the end of the previous frame?"); + IM_ASSERT(g.IO.DisplaySize.x >= 0.0f && g.IO.DisplaySize.y >= 0.0f && "Invalid DisplaySize value!"); + IM_ASSERT(g.IO.Fonts->IsBuilt() && "Font Atlas not built! Make sure you called ImGui_ImplXXXX_NewFrame() function for renderer backend, which should call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8()"); + IM_ASSERT(g.Style.CurveTessellationTol > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.CircleTessellationMaxError > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.Alpha >= 0.0f && g.Style.Alpha <= 1.0f && "Invalid style setting!"); // Allows us to avoid a few clamps in color computations + IM_ASSERT(g.Style.WindowMinSize.x >= 1.0f && g.Style.WindowMinSize.y >= 1.0f && "Invalid style setting."); + IM_ASSERT(g.Style.WindowMenuButtonPosition == ImGuiDir_None || g.Style.WindowMenuButtonPosition == ImGuiDir_Left || g.Style.WindowMenuButtonPosition == ImGuiDir_Right); + IM_ASSERT(g.Style.ColorButtonPosition == ImGuiDir_Left || g.Style.ColorButtonPosition == ImGuiDir_Right); +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_COUNT; n++) + IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < ImGuiKey_LegacyNativeKey_END && "io.KeyMap[] contains an out of bound value (need to be 0..511, or -1 for unmapped key)"); + + // Check: required key mapping (we intentionally do NOT check all keys to not pressure user into setting up everything, but Space is required and was only added in 1.60 WIP) + if ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && g.IO.BackendUsingLegacyKeyArrays == 1) + IM_ASSERT(g.IO.KeyMap[ImGuiKey_Space] != -1 && "ImGuiKey_Space is not mapped, required for keyboard navigation."); +#endif + + // Check: the io.ConfigWindowsResizeFromEdges option requires backend to honor mouse cursor changes and set the ImGuiBackendFlags_HasMouseCursors flag accordingly. + if (g.IO.ConfigWindowsResizeFromEdges && !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseCursors)) + g.IO.ConfigWindowsResizeFromEdges = false; + + // Perform simple check: error if Docking or Viewport are enabled _exactly_ on frame 1 (instead of frame 0 or later), which is a common error leading to loss of .ini data. + if (g.FrameCount == 1 && (g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable) && (g.ConfigFlagsLastFrame & ImGuiConfigFlags_DockingEnable) == 0) + IM_ASSERT(0 && "Please set DockingEnable before the first call to NewFrame()! Otherwise you will lose your .ini settings!"); + if (g.FrameCount == 1 && (g.IO.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) && (g.ConfigFlagsLastFrame & ImGuiConfigFlags_ViewportsEnable) == 0) + IM_ASSERT(0 && "Please set ViewportsEnable before the first call to NewFrame()! Otherwise you will lose your .ini settings!"); + + // Perform simple checks: multi-viewport and platform windows support + if (g.IO.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + if ((g.IO.BackendFlags & ImGuiBackendFlags_PlatformHasViewports) && (g.IO.BackendFlags & ImGuiBackendFlags_RendererHasViewports)) + { + IM_ASSERT((g.FrameCount == 0 || g.FrameCount == g.FrameCountPlatformEnded) && "Forgot to call UpdatePlatformWindows() in main loop after EndFrame()? Check examples/ applications for reference."); + IM_ASSERT(g.PlatformIO.Platform_CreateWindow != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_DestroyWindow != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_GetWindowPos != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_SetWindowPos != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_GetWindowSize != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_SetWindowSize != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Monitors.Size > 0 && "Platform init didn't setup Monitors list?"); + IM_ASSERT((g.Viewports[0]->PlatformUserData != NULL || g.Viewports[0]->PlatformHandle != NULL) && "Platform init didn't setup main viewport."); + if (g.IO.ConfigDockingTransparentPayload && (g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + IM_ASSERT(g.PlatformIO.Platform_SetWindowAlpha != NULL && "Platform_SetWindowAlpha handler is required to use io.ConfigDockingTransparent!"); + } + else + { + // Disable feature, our backends do not support it + g.IO.ConfigFlags &= ~ImGuiConfigFlags_ViewportsEnable; + } + + // Perform simple checks on platform monitor data + compute a total bounding box for quick early outs + for (ImGuiPlatformMonitor& mon : g.PlatformIO.Monitors) + { + IM_UNUSED(mon); + IM_ASSERT(mon.MainSize.x > 0.0f && mon.MainSize.y > 0.0f && "Monitor main bounds not setup properly."); + IM_ASSERT(ImRect(mon.MainPos, mon.MainPos + mon.MainSize).Contains(ImRect(mon.WorkPos, mon.WorkPos + mon.WorkSize)) && "Monitor work bounds not setup properly. If you don't have work area information, just copy MainPos/MainSize into them."); + IM_ASSERT(mon.DpiScale != 0.0f); + } + } +} + +static void ImGui::ErrorCheckEndFrameSanityChecks() +{ + ImGuiContext& g = *GImGui; + + // Verify that io.KeyXXX fields haven't been tampered with. Key mods should not be modified between NewFrame() and EndFrame() + // One possible reason leading to this assert is that your backends update inputs _AFTER_ NewFrame(). + // It is known that when some modal native windows called mid-frame takes focus away, some backends such as GLFW will + // send key release events mid-frame. This would normally trigger this assertion and lead to sheared inputs. + // We silently accommodate for this case by ignoring the case where all io.KeyXXX modifiers were released (aka key_mod_flags == 0), + // while still correctly asserting on mid-frame key press events. + const ImGuiKeyChord key_mods = GetMergedModsFromKeys(); + IM_ASSERT((key_mods == 0 || g.IO.KeyMods == key_mods) && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); + IM_UNUSED(key_mods); + + // [EXPERIMENTAL] Recover from errors: You may call this yourself before EndFrame(). + //ErrorCheckEndFrameRecover(); + + // Report when there is a mismatch of Begin/BeginChild vs End/EndChild calls. Important: Remember that the Begin/BeginChild API requires you + // to always call End/EndChild even if Begin/BeginChild returns false! (this is unfortunately inconsistent with most other Begin* API). + if (g.CurrentWindowStack.Size != 1) + { + if (g.CurrentWindowStack.Size > 1) + { + ImGuiWindow* window = g.CurrentWindowStack.back().Window; // <-- This window was not Ended! + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?"); + IM_UNUSED(window); + while (g.CurrentWindowStack.Size > 1) + End(); + } + else + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you call End/EndChild too much?"); + } + } + + IM_ASSERT_USER_ERROR(g.GroupStack.Size == 0, "Missing EndGroup call!"); +} + +// Experimental recovery from incorrect usage of BeginXXX/EndXXX/PushXXX/PopXXX calls. +// Must be called during or before EndFrame(). +// This is generally flawed as we are not necessarily End/Popping things in the right order. +// FIXME: Can't recover from inside BeginTabItem/EndTabItem yet. +// FIXME: Can't recover from interleaved BeginTabBar/Begin +void ImGui::ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data) +{ + // PVS-Studio V1044 is "Loop break conditions do not depend on the number of iterations" + ImGuiContext& g = *GImGui; + while (g.CurrentWindowStack.Size > 0) //-V1044 + { + ErrorCheckEndWindowRecover(log_callback, user_data); + ImGuiWindow* window = g.CurrentWindow; + if (g.CurrentWindowStack.Size == 1) + { + IM_ASSERT(window->IsFallbackWindow); + break; + } + if (window->Flags & ImGuiWindowFlags_ChildWindow) + { + if (log_callback) log_callback(user_data, "Recovered from missing EndChild() for '%s'", window->Name); + EndChild(); + } + else + { + if (log_callback) log_callback(user_data, "Recovered from missing End() for '%s'", window->Name); + End(); + } + } +} + +// Must be called before End()/EndChild() +void ImGui::ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data) +{ + ImGuiContext& g = *GImGui; + while (g.CurrentTable && (g.CurrentTable->OuterWindow == g.CurrentWindow || g.CurrentTable->InnerWindow == g.CurrentWindow)) + { + if (log_callback) log_callback(user_data, "Recovered from missing EndTable() in '%s'", g.CurrentTable->OuterWindow->Name); + EndTable(); + } + + ImGuiWindow* window = g.CurrentWindow; + ImGuiStackSizes* stack_sizes = &g.CurrentWindowStack.back().StackSizesOnBegin; + IM_ASSERT(window != NULL); + while (g.CurrentTabBar != NULL) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndTabBar() in '%s'", window->Name); + EndTabBar(); + } + while (window->DC.TreeDepth > 0) + { + if (log_callback) log_callback(user_data, "Recovered from missing TreePop() in '%s'", window->Name); + TreePop(); + } + while (g.GroupStack.Size > stack_sizes->SizeOfGroupStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndGroup() in '%s'", window->Name); + EndGroup(); + } + while (window->IDStack.Size > 1) + { + if (log_callback) log_callback(user_data, "Recovered from missing PopID() in '%s'", window->Name); + PopID(); + } + while (g.DisabledStackSize > stack_sizes->SizeOfDisabledStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndDisabled() in '%s'", window->Name); + EndDisabled(); + } + while (g.ColorStack.Size > stack_sizes->SizeOfColorStack) + { + if (log_callback) log_callback(user_data, "Recovered from missing PopStyleColor() in '%s' for ImGuiCol_%s", window->Name, GetStyleColorName(g.ColorStack.back().Col)); + PopStyleColor(); + } + while (g.ItemFlagsStack.Size > stack_sizes->SizeOfItemFlagsStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopItemFlag() in '%s'", window->Name); + PopItemFlag(); + } + while (g.StyleVarStack.Size > stack_sizes->SizeOfStyleVarStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopStyleVar() in '%s'", window->Name); + PopStyleVar(); + } + while (g.FontStack.Size > stack_sizes->SizeOfFontStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopFont() in '%s'", window->Name); + PopFont(); + } + while (g.FocusScopeStack.Size > stack_sizes->SizeOfFocusScopeStack + 1) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopFocusScope() in '%s'", window->Name); + PopFocusScope(); + } +} + +// Save current stack sizes for later compare +void ImGuiStackSizes::SetToContextState(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiWindow* window = g.CurrentWindow; + SizeOfIDStack = (short)window->IDStack.Size; + SizeOfColorStack = (short)g.ColorStack.Size; + SizeOfStyleVarStack = (short)g.StyleVarStack.Size; + SizeOfFontStack = (short)g.FontStack.Size; + SizeOfFocusScopeStack = (short)g.FocusScopeStack.Size; + SizeOfGroupStack = (short)g.GroupStack.Size; + SizeOfItemFlagsStack = (short)g.ItemFlagsStack.Size; + SizeOfBeginPopupStack = (short)g.BeginPopupStack.Size; + SizeOfDisabledStack = (short)g.DisabledStackSize; +} + +// Compare to detect usage errors +void ImGuiStackSizes::CompareWithContextState(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiWindow* window = g.CurrentWindow; + IM_UNUSED(window); + + // Window stacks + // NOT checking: DC.ItemWidth, DC.TextWrapPos (per window) to allow user to conveniently push once and not pop (they are cleared on Begin) + IM_ASSERT(SizeOfIDStack == window->IDStack.Size && "PushID/PopID or TreeNode/TreePop Mismatch!"); + + // Global stacks + // For color, style and font stacks there is an incentive to use Push/Begin/Pop/.../End patterns, so we relax our checks a little to allow them. + IM_ASSERT(SizeOfGroupStack == g.GroupStack.Size && "BeginGroup/EndGroup Mismatch!"); + IM_ASSERT(SizeOfBeginPopupStack == g.BeginPopupStack.Size && "BeginPopup/EndPopup or BeginMenu/EndMenu Mismatch!"); + IM_ASSERT(SizeOfDisabledStack == g.DisabledStackSize && "BeginDisabled/EndDisabled Mismatch!"); + IM_ASSERT(SizeOfItemFlagsStack >= g.ItemFlagsStack.Size && "PushItemFlag/PopItemFlag Mismatch!"); + IM_ASSERT(SizeOfColorStack >= g.ColorStack.Size && "PushStyleColor/PopStyleColor Mismatch!"); + IM_ASSERT(SizeOfStyleVarStack >= g.StyleVarStack.Size && "PushStyleVar/PopStyleVar Mismatch!"); + IM_ASSERT(SizeOfFontStack >= g.FontStack.Size && "PushFont/PopFont Mismatch!"); + IM_ASSERT(SizeOfFocusScopeStack == g.FocusScopeStack.Size && "PushFocusScope/PopFocusScope Mismatch!"); +} + + +//----------------------------------------------------------------------------- +// [SECTION] LAYOUT +//----------------------------------------------------------------------------- +// - ItemSize() +// - ItemAdd() +// - SameLine() +// - GetCursorScreenPos() +// - SetCursorScreenPos() +// - GetCursorPos(), GetCursorPosX(), GetCursorPosY() +// - SetCursorPos(), SetCursorPosX(), SetCursorPosY() +// - GetCursorStartPos() +// - Indent() +// - Unindent() +// - SetNextItemWidth() +// - PushItemWidth() +// - PushMultiItemsWidths() +// - PopItemWidth() +// - CalcItemWidth() +// - CalcItemSize() +// - GetTextLineHeight() +// - GetTextLineHeightWithSpacing() +// - GetFrameHeight() +// - GetFrameHeightWithSpacing() +// - GetContentRegionMax() +// - GetContentRegionMaxAbs() [Internal] +// - GetContentRegionAvail(), +// - GetWindowContentRegionMin(), GetWindowContentRegionMax() +// - BeginGroup() +// - EndGroup() +// Also see in imgui_widgets: tab bars, and in imgui_tables: tables, columns. +//----------------------------------------------------------------------------- + +// Advance cursor given item size for layout. +// Register minimum needed size so it can extend the bounding box used for auto-fit calculation. +// See comments in ItemAdd() about how/why the size provided to ItemSize() vs ItemAdd() may often different. +void ImGui::ItemSize(const ImVec2& size, float text_baseline_y) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + // We increase the height in this function to accommodate for baseline offset. + // In theory we should be offsetting the starting position (window->DC.CursorPos), that will be the topic of a larger refactor, + // but since ItemSize() is not yet an API that moves the cursor (to handle e.g. wrapping) enlarging the height has the same effect. + const float offset_to_match_baseline_y = (text_baseline_y >= 0) ? ImMax(0.0f, window->DC.CurrLineTextBaseOffset - text_baseline_y) : 0.0f; + + const float line_y1 = window->DC.IsSameLine ? window->DC.CursorPosPrevLine.y : window->DC.CursorPos.y; + const float line_height = ImMax(window->DC.CurrLineSize.y, /*ImMax(*/window->DC.CursorPos.y - line_y1/*, 0.0f)*/ + size.y + offset_to_match_baseline_y); + + // Always align ourselves on pixel boundaries + //if (g.IO.KeyAlt) window->DrawList->AddRect(window->DC.CursorPos, window->DC.CursorPos + ImVec2(size.x, line_height), IM_COL32(255,0,0,200)); // [DEBUG] + window->DC.CursorPosPrevLine.x = window->DC.CursorPos.x + size.x; + window->DC.CursorPosPrevLine.y = line_y1; + window->DC.CursorPos.x = IM_TRUNC(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); // Next line + window->DC.CursorPos.y = IM_TRUNC(line_y1 + line_height + g.Style.ItemSpacing.y); // Next line + window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPosPrevLine.x); + window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y - g.Style.ItemSpacing.y); + //if (g.IO.KeyAlt) window->DrawList->AddCircle(window->DC.CursorMaxPos, 3.0f, IM_COL32(255,0,0,255), 4); // [DEBUG] + + window->DC.PrevLineSize.y = line_height; + window->DC.CurrLineSize.y = 0.0f; + window->DC.PrevLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, text_baseline_y); + window->DC.CurrLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; + + // Horizontal layout mode + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + SameLine(); +} + +// Declare item bounding box for clipping and interaction. +// Note that the size can be different than the one provided to ItemSize(). Typically, widgets that spread over available surface +// declare their minimum size requirement to ItemSize() and provide a larger region to ItemAdd() which is used drawing/interaction. +bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGuiItemFlags extra_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Set item data + // (DisplayRect is left untouched, made valid when ImGuiItemStatusFlags_HasDisplayRect is set) + g.LastItemData.ID = id; + g.LastItemData.Rect = bb; + g.LastItemData.NavRect = nav_bb_arg ? *nav_bb_arg : bb; + g.LastItemData.InFlags = g.CurrentItemFlags | g.NextItemData.ItemFlags | extra_flags; + g.LastItemData.StatusFlags = ImGuiItemStatusFlags_None; + // Note: we don't copy 'g.NextItemData.SelectionUserData' to an hypothetical g.LastItemData.SelectionUserData: since the former is not cleared. + + // Directional navigation processing + if (id != 0) + { + KeepAliveID(id); + + // Runs prior to clipping early-out + // (a) So that NavInitRequest can be honored, for newly opened windows to select a default widget + // (b) So that we can scroll up/down past clipped items. This adds a small O(N) cost to regular navigation requests + // unfortunately, but it is still limited to one window. It may not scale very well for windows with ten of + // thousands of item, but at least NavMoveRequest is only set on user interaction, aka maximum once a frame. + // We could early out with "if (is_clipped && !g.NavInitRequest) return false;" but when we wouldn't be able + // to reach unclipped widgets. This would work if user had explicit scrolling control (e.g. mapped on a stick). + // We intentionally don't check if g.NavWindow != NULL because g.NavAnyRequest should only be set when it is non null. + // If we crash on a NULL g.NavWindow we need to fix the bug elsewhere. + if (!(g.LastItemData.InFlags & ImGuiItemFlags_NoNav)) + { + window->DC.NavLayersActiveMaskNext |= (1 << window->DC.NavLayerCurrent); + if (g.NavId == id || g.NavAnyRequest) + if (g.NavWindow->RootWindowForNav == window->RootWindowForNav) + if (window == g.NavWindow || ((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened)) + NavProcessItem(); + } + + // [DEBUG] People keep stumbling on this problem and using "" as identifier in the root of a window instead of "##something". + // Empty identifier are valid and useful in a small amount of cases, but 99.9% of the time you want to use "##something". + // READ THE FAQ: https://dearimgui.com/faq + IM_ASSERT(id != window->ID && "Cannot have an empty ID at the root of a window. If you need an empty label, use ## and read the FAQ about how the ID Stack works!"); + } + g.NextItemData.Flags = ImGuiNextItemDataFlags_None; + g.NextItemData.ItemFlags = ImGuiItemFlags_None; + +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (id != 0) + IMGUI_TEST_ENGINE_ITEM_ADD(id, g.LastItemData.NavRect, &g.LastItemData); +#endif + + // Clipping test + // (FIXME: This is a modified copy of IsClippedEx() so we can reuse the is_rect_visible value) + //const bool is_clipped = IsClippedEx(bb, id); + //if (is_clipped) + // return false; + const bool is_rect_visible = bb.Overlaps(window->ClipRect); + if (!is_rect_visible) + if (id == 0 || (id != g.ActiveId && id != g.ActiveIdPreviousFrame && id != g.NavId)) + if (!g.LogEnabled) + return false; + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (id != 0 && id == g.DebugLocateId) + DebugLocateItemResolveWithLastItem(); +#endif + //if (g.IO.KeyAlt) window->DrawList->AddRect(bb.Min, bb.Max, IM_COL32(255,255,0,120)); // [DEBUG] + //if ((g.LastItemData.InFlags & ImGuiItemFlags_NoNav) == 0) + // window->DrawList->AddRect(g.LastItemData.NavRect.Min, g.LastItemData.NavRect.Max, IM_COL32(255,255,0,255)); // [DEBUG] + + // We need to calculate this now to take account of the current clipping rectangle (as items like Selectable may change them) + if (is_rect_visible) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Visible; + if (IsMouseHoveringRect(bb.Min, bb.Max)) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredRect; + return true; +} + +// Gets back to previous line and continue with horizontal layout +// offset_from_start_x == 0 : follow right after previous item +// offset_from_start_x != 0 : align to specified x position (relative to window/group left) +// spacing_w < 0 : use default spacing if offset_from_start_x == 0, no spacing if offset_from_start_x != 0 +// spacing_w >= 0 : enforce spacing amount +void ImGui::SameLine(float offset_from_start_x, float spacing_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + if (offset_from_start_x != 0.0f) + { + if (spacing_w < 0.0f) + spacing_w = 0.0f; + window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + offset_from_start_x + spacing_w + window->DC.GroupOffset.x + window->DC.ColumnsOffset.x; + window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; + } + else + { + if (spacing_w < 0.0f) + spacing_w = g.Style.ItemSpacing.x; + window->DC.CursorPos.x = window->DC.CursorPosPrevLine.x + spacing_w; + window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; + } + window->DC.CurrLineSize = window->DC.PrevLineSize; + window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; + window->DC.IsSameLine = true; +} + +ImVec2 ImGui::GetCursorScreenPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos; +} + +void ImGui::SetCursorScreenPos(const ImVec2& pos) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos = pos; + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; +} + +// User generally sees positions in window coordinates. Internally we store CursorPos in absolute screen coordinates because it is more convenient. +// Conversion happens as we pass the value to user, but it makes our naming convention confusing because GetCursorPos() == (DC.CursorPos - window.Pos). May want to rename 'DC.CursorPos'. +ImVec2 ImGui::GetCursorPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos - window->Pos + window->Scroll; +} + +float ImGui::GetCursorPosX() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos.x - window->Pos.x + window->Scroll.x; +} + +float ImGui::GetCursorPosY() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos.y - window->Pos.y + window->Scroll.y; +} + +void ImGui::SetCursorPos(const ImVec2& local_pos) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos = window->Pos - window->Scroll + local_pos; + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; +} + +void ImGui::SetCursorPosX(float x) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + x; + //window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPos.x); + window->DC.IsSetPos = true; +} + +void ImGui::SetCursorPosY(float y) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos.y = window->Pos.y - window->Scroll.y + y; + //window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y); + window->DC.IsSetPos = true; +} + +ImVec2 ImGui::GetCursorStartPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorStartPos - window->Pos; +} + +void ImGui::Indent(float indent_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->DC.Indent.x += (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; + window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; +} + +void ImGui::Unindent(float indent_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->DC.Indent.x -= (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; + window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; +} + +// Affect large frame+labels widgets only. +void ImGui::SetNextItemWidth(float item_width) +{ + ImGuiContext& g = *GImGui; + g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasWidth; + g.NextItemData.Width = item_width; +} + +// FIXME: Remove the == 0.0f behavior? +void ImGui::PushItemWidth(float item_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); // Backup current width + window->DC.ItemWidth = (item_width == 0.0f ? window->ItemWidthDefault : item_width); + g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; +} + +void ImGui::PushMultiItemsWidths(int components, float w_full) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiStyle& style = g.Style; + const float w_item_one = ImMax(1.0f, IM_TRUNC((w_full - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); + const float w_item_last = ImMax(1.0f, IM_TRUNC(w_full - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); + window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); // Backup current width + window->DC.ItemWidthStack.push_back(w_item_last); + for (int i = 0; i < components - 2; i++) + window->DC.ItemWidthStack.push_back(w_item_one); + window->DC.ItemWidth = (components == 1) ? w_item_last : w_item_one; + g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; +} + +void ImGui::PopItemWidth() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.ItemWidth = window->DC.ItemWidthStack.back(); + window->DC.ItemWidthStack.pop_back(); +} + +// Calculate default item width given value passed to PushItemWidth() or SetNextItemWidth(). +// The SetNextItemWidth() data is generally cleared/consumed by ItemAdd() or NextItemData.ClearFlags() +float ImGui::CalcItemWidth() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float w; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) + w = g.NextItemData.Width; + else + w = window->DC.ItemWidth; + if (w < 0.0f) + { + float region_max_x = GetContentRegionMaxAbs().x; + w = ImMax(1.0f, region_max_x - window->DC.CursorPos.x + w); + } + w = IM_TRUNC(w); + return w; +} + +// [Internal] Calculate full item size given user provided 'size' parameter and default width/height. Default width is often == CalcItemWidth(). +// Those two functions CalcItemWidth vs CalcItemSize are awkwardly named because they are not fully symmetrical. +// Note that only CalcItemWidth() is publicly exposed. +// The 4.0f here may be changed to match CalcItemWidth() and/or BeginChild() (right now we have a mismatch which is harmless but undesirable) +ImVec2 ImGui::CalcItemSize(ImVec2 size, float default_w, float default_h) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImVec2 region_max; + if (size.x < 0.0f || size.y < 0.0f) + region_max = GetContentRegionMaxAbs(); + + if (size.x == 0.0f) + size.x = default_w; + else if (size.x < 0.0f) + size.x = ImMax(4.0f, region_max.x - window->DC.CursorPos.x + size.x); + + if (size.y == 0.0f) + size.y = default_h; + else if (size.y < 0.0f) + size.y = ImMax(4.0f, region_max.y - window->DC.CursorPos.y + size.y); + + return size; +} + +float ImGui::GetTextLineHeight() +{ + ImGuiContext& g = *GImGui; + return g.FontSize; +} + +float ImGui::GetTextLineHeightWithSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.ItemSpacing.y; +} + +float ImGui::GetFrameHeight() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.FramePadding.y * 2.0f; +} + +float ImGui::GetFrameHeightWithSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.FramePadding.y * 2.0f + g.Style.ItemSpacing.y; +} + +// FIXME: All the Contents Region function are messy or misleading. WE WILL AIM TO OBSOLETE ALL OF THEM WITH A NEW "WORK RECT" API. Thanks for your patience! + +// FIXME: This is in window space (not screen space!). +ImVec2 ImGui::GetContentRegionMax() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 mx = (window->DC.CurrentColumns || g.CurrentTable) ? window->WorkRect.Max : window->ContentRegionRect.Max; + return mx - window->Pos; +} + +// [Internal] Absolute coordinate. Saner. This is not exposed until we finishing refactoring work rect features. +ImVec2 ImGui::GetContentRegionMaxAbs() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 mx = (window->DC.CurrentColumns || g.CurrentTable) ? window->WorkRect.Max : window->ContentRegionRect.Max; + return mx; +} + +ImVec2 ImGui::GetContentRegionAvail() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return GetContentRegionMaxAbs() - window->DC.CursorPos; +} + +// In window space (not screen space!) +ImVec2 ImGui::GetWindowContentRegionMin() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ContentRegionRect.Min - window->Pos; +} + +ImVec2 ImGui::GetWindowContentRegionMax() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ContentRegionRect.Max - window->Pos; +} + +// Lock horizontal starting position + capture group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) +// Groups are currently a mishmash of functionalities which should perhaps be clarified and separated. +// FIXME-OPT: Could we safely early out on ->SkipItems? +void ImGui::BeginGroup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + g.GroupStack.resize(g.GroupStack.Size + 1); + ImGuiGroupData& group_data = g.GroupStack.back(); + group_data.WindowID = window->ID; + group_data.BackupCursorPos = window->DC.CursorPos; + group_data.BackupCursorPosPrevLine = window->DC.CursorPosPrevLine; + group_data.BackupCursorMaxPos = window->DC.CursorMaxPos; + group_data.BackupIndent = window->DC.Indent; + group_data.BackupGroupOffset = window->DC.GroupOffset; + group_data.BackupCurrLineSize = window->DC.CurrLineSize; + group_data.BackupCurrLineTextBaseOffset = window->DC.CurrLineTextBaseOffset; + group_data.BackupActiveIdIsAlive = g.ActiveIdIsAlive; + group_data.BackupHoveredIdIsAlive = g.HoveredId != 0; + group_data.BackupIsSameLine = window->DC.IsSameLine; + group_data.BackupActiveIdPreviousFrameIsAlive = g.ActiveIdPreviousFrameIsAlive; + group_data.EmitItem = true; + + window->DC.GroupOffset.x = window->DC.CursorPos.x - window->Pos.x - window->DC.ColumnsOffset.x; + window->DC.Indent = window->DC.GroupOffset; + window->DC.CursorMaxPos = window->DC.CursorPos; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + if (g.LogEnabled) + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return +} + +void ImGui::EndGroup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(g.GroupStack.Size > 0); // Mismatched BeginGroup()/EndGroup() calls + + ImGuiGroupData& group_data = g.GroupStack.back(); + IM_ASSERT(group_data.WindowID == window->ID); // EndGroup() in wrong window? + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + ImRect group_bb(group_data.BackupCursorPos, ImMax(window->DC.CursorMaxPos, group_data.BackupCursorPos)); + + window->DC.CursorPos = group_data.BackupCursorPos; + window->DC.CursorPosPrevLine = group_data.BackupCursorPosPrevLine; + window->DC.CursorMaxPos = ImMax(group_data.BackupCursorMaxPos, window->DC.CursorMaxPos); + window->DC.Indent = group_data.BackupIndent; + window->DC.GroupOffset = group_data.BackupGroupOffset; + window->DC.CurrLineSize = group_data.BackupCurrLineSize; + window->DC.CurrLineTextBaseOffset = group_data.BackupCurrLineTextBaseOffset; + window->DC.IsSameLine = group_data.BackupIsSameLine; + if (g.LogEnabled) + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return + + if (!group_data.EmitItem) + { + g.GroupStack.pop_back(); + return; + } + + window->DC.CurrLineTextBaseOffset = ImMax(window->DC.PrevLineTextBaseOffset, group_data.BackupCurrLineTextBaseOffset); // FIXME: Incorrect, we should grab the base offset from the *first line* of the group but it is hard to obtain now. + ItemSize(group_bb.GetSize()); + ItemAdd(group_bb, 0, NULL, ImGuiItemFlags_NoTabStop); + + // If the current ActiveId was declared within the boundary of our group, we copy it to LastItemId so IsItemActive(), IsItemDeactivated() etc. will be functional on the entire group. + // It would be neater if we replaced window.DC.LastItemId by e.g. 'bool LastItemIsActive', but would put a little more burden on individual widgets. + // Also if you grep for LastItemId you'll notice it is only used in that context. + // (The two tests not the same because ActiveIdIsAlive is an ID itself, in order to be able to handle ActiveId being overwritten during the frame.) + const bool group_contains_curr_active_id = (group_data.BackupActiveIdIsAlive != g.ActiveId) && (g.ActiveIdIsAlive == g.ActiveId) && g.ActiveId; + const bool group_contains_prev_active_id = (group_data.BackupActiveIdPreviousFrameIsAlive == false) && (g.ActiveIdPreviousFrameIsAlive == true); + if (group_contains_curr_active_id) + g.LastItemData.ID = g.ActiveId; + else if (group_contains_prev_active_id) + g.LastItemData.ID = g.ActiveIdPreviousFrame; + g.LastItemData.Rect = group_bb; + + // Forward Hovered flag + const bool group_contains_curr_hovered_id = (group_data.BackupHoveredIdIsAlive == false) && g.HoveredId != 0; + if (group_contains_curr_hovered_id) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + + // Forward Edited flag + if (group_contains_curr_active_id && g.ActiveIdHasBeenEditedThisFrame) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Edited; + + // Forward Deactivated flag + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HasDeactivated; + if (group_contains_prev_active_id && g.ActiveId != g.ActiveIdPreviousFrame) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Deactivated; + + g.GroupStack.pop_back(); + if (g.DebugShowGroupRects) + window->DrawList->AddRect(group_bb.Min, group_bb.Max, IM_COL32(255,0,255,255)); // [Debug] +} + + +//----------------------------------------------------------------------------- +// [SECTION] SCROLLING +//----------------------------------------------------------------------------- + +// Helper to snap on edges when aiming at an item very close to the edge, +// So the difference between WindowPadding and ItemSpacing will be in the visible area after scrolling. +// When we refactor the scrolling API this may be configurable with a flag? +// Note that the effect for this won't be visible on X axis with default Style settings as WindowPadding.x == ItemSpacing.x by default. +static float CalcScrollEdgeSnap(float target, float snap_min, float snap_max, float snap_threshold, float center_ratio) +{ + if (target <= snap_min + snap_threshold) + return ImLerp(snap_min, target, center_ratio); + if (target >= snap_max - snap_threshold) + return ImLerp(target, snap_max, center_ratio); + return target; +} + +static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window) +{ + ImVec2 scroll = window->Scroll; + ImVec2 decoration_size(window->DecoOuterSizeX1 + window->DecoInnerSizeX1 + window->DecoOuterSizeX2, window->DecoOuterSizeY1 + window->DecoInnerSizeY1 + window->DecoOuterSizeY2); + for (int axis = 0; axis < 2; axis++) + { + if (window->ScrollTarget[axis] < FLT_MAX) + { + float center_ratio = window->ScrollTargetCenterRatio[axis]; + float scroll_target = window->ScrollTarget[axis]; + if (window->ScrollTargetEdgeSnapDist[axis] > 0.0f) + { + float snap_min = 0.0f; + float snap_max = window->ScrollMax[axis] + window->SizeFull[axis] - decoration_size[axis]; + scroll_target = CalcScrollEdgeSnap(scroll_target, snap_min, snap_max, window->ScrollTargetEdgeSnapDist[axis], center_ratio); + } + scroll[axis] = scroll_target - center_ratio * (window->SizeFull[axis] - decoration_size[axis]); + } + scroll[axis] = IM_TRUNC(ImMax(scroll[axis], 0.0f)); + if (!window->Collapsed && !window->SkipItems) + scroll[axis] = ImMin(scroll[axis], window->ScrollMax[axis]); + } + return scroll; +} + +void ImGui::ScrollToItem(ImGuiScrollFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ScrollToRectEx(window, g.LastItemData.NavRect, flags); +} + +void ImGui::ScrollToRect(ImGuiWindow* window, const ImRect& item_rect, ImGuiScrollFlags flags) +{ + ScrollToRectEx(window, item_rect, flags); +} + +// Scroll to keep newly navigated item fully into view +ImVec2 ImGui::ScrollToRectEx(ImGuiWindow* window, const ImRect& item_rect, ImGuiScrollFlags flags) +{ + ImGuiContext& g = *GImGui; + ImRect scroll_rect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1)); + scroll_rect.Min.x = ImMin(scroll_rect.Min.x + window->DecoInnerSizeX1, scroll_rect.Max.x); + scroll_rect.Min.y = ImMin(scroll_rect.Min.y + window->DecoInnerSizeY1, scroll_rect.Max.y); + //GetForegroundDrawList(window)->AddRect(item_rect.Min, item_rect.Max, IM_COL32(255,0,0,255), 0.0f, 0, 5.0f); // [DEBUG] + //GetForegroundDrawList(window)->AddRect(scroll_rect.Min, scroll_rect.Max, IM_COL32_WHITE); // [DEBUG] + + // Check that only one behavior is selected per axis + IM_ASSERT((flags & ImGuiScrollFlags_MaskX_) == 0 || ImIsPowerOfTwo(flags & ImGuiScrollFlags_MaskX_)); + IM_ASSERT((flags & ImGuiScrollFlags_MaskY_) == 0 || ImIsPowerOfTwo(flags & ImGuiScrollFlags_MaskY_)); + + // Defaults + ImGuiScrollFlags in_flags = flags; + if ((flags & ImGuiScrollFlags_MaskX_) == 0 && window->ScrollbarX) + flags |= ImGuiScrollFlags_KeepVisibleEdgeX; + if ((flags & ImGuiScrollFlags_MaskY_) == 0) + flags |= window->Appearing ? ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeY; + + const bool fully_visible_x = item_rect.Min.x >= scroll_rect.Min.x && item_rect.Max.x <= scroll_rect.Max.x; + const bool fully_visible_y = item_rect.Min.y >= scroll_rect.Min.y && item_rect.Max.y <= scroll_rect.Max.y; + const bool can_be_fully_visible_x = (item_rect.GetWidth() + g.Style.ItemSpacing.x * 2.0f) <= scroll_rect.GetWidth() || (window->AutoFitFramesX > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; + const bool can_be_fully_visible_y = (item_rect.GetHeight() + g.Style.ItemSpacing.y * 2.0f) <= scroll_rect.GetHeight() || (window->AutoFitFramesY > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; + + if ((flags & ImGuiScrollFlags_KeepVisibleEdgeX) && !fully_visible_x) + { + if (item_rect.Min.x < scroll_rect.Min.x || !can_be_fully_visible_x) + SetScrollFromPosX(window, item_rect.Min.x - g.Style.ItemSpacing.x - window->Pos.x, 0.0f); + else if (item_rect.Max.x >= scroll_rect.Max.x) + SetScrollFromPosX(window, item_rect.Max.x + g.Style.ItemSpacing.x - window->Pos.x, 1.0f); + } + else if (((flags & ImGuiScrollFlags_KeepVisibleCenterX) && !fully_visible_x) || (flags & ImGuiScrollFlags_AlwaysCenterX)) + { + if (can_be_fully_visible_x) + SetScrollFromPosX(window, ImTrunc((item_rect.Min.x + item_rect.Max.x) * 0.5f) - window->Pos.x, 0.5f); + else + SetScrollFromPosX(window, item_rect.Min.x - window->Pos.x, 0.0f); + } + + if ((flags & ImGuiScrollFlags_KeepVisibleEdgeY) && !fully_visible_y) + { + if (item_rect.Min.y < scroll_rect.Min.y || !can_be_fully_visible_y) + SetScrollFromPosY(window, item_rect.Min.y - g.Style.ItemSpacing.y - window->Pos.y, 0.0f); + else if (item_rect.Max.y >= scroll_rect.Max.y) + SetScrollFromPosY(window, item_rect.Max.y + g.Style.ItemSpacing.y - window->Pos.y, 1.0f); + } + else if (((flags & ImGuiScrollFlags_KeepVisibleCenterY) && !fully_visible_y) || (flags & ImGuiScrollFlags_AlwaysCenterY)) + { + if (can_be_fully_visible_y) + SetScrollFromPosY(window, ImTrunc((item_rect.Min.y + item_rect.Max.y) * 0.5f) - window->Pos.y, 0.5f); + else + SetScrollFromPosY(window, item_rect.Min.y - window->Pos.y, 0.0f); + } + + ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); + ImVec2 delta_scroll = next_scroll - window->Scroll; + + // Also scroll parent window to keep us into view if necessary + if (!(flags & ImGuiScrollFlags_NoScrollParent) && (window->Flags & ImGuiWindowFlags_ChildWindow)) + { + // FIXME-SCROLL: May be an option? + if ((in_flags & (ImGuiScrollFlags_AlwaysCenterX | ImGuiScrollFlags_KeepVisibleCenterX)) != 0) + in_flags = (in_flags & ~ImGuiScrollFlags_MaskX_) | ImGuiScrollFlags_KeepVisibleEdgeX; + if ((in_flags & (ImGuiScrollFlags_AlwaysCenterY | ImGuiScrollFlags_KeepVisibleCenterY)) != 0) + in_flags = (in_flags & ~ImGuiScrollFlags_MaskY_) | ImGuiScrollFlags_KeepVisibleEdgeY; + delta_scroll += ScrollToRectEx(window->ParentWindow, ImRect(item_rect.Min - delta_scroll, item_rect.Max - delta_scroll), in_flags); + } + + return delta_scroll; +} + +float ImGui::GetScrollX() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Scroll.x; +} + +float ImGui::GetScrollY() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Scroll.y; +} + +float ImGui::GetScrollMaxX() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ScrollMax.x; +} + +float ImGui::GetScrollMaxY() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ScrollMax.y; +} + +void ImGui::SetScrollX(ImGuiWindow* window, float scroll_x) +{ + window->ScrollTarget.x = scroll_x; + window->ScrollTargetCenterRatio.x = 0.0f; + window->ScrollTargetEdgeSnapDist.x = 0.0f; +} + +void ImGui::SetScrollY(ImGuiWindow* window, float scroll_y) +{ + window->ScrollTarget.y = scroll_y; + window->ScrollTargetCenterRatio.y = 0.0f; + window->ScrollTargetEdgeSnapDist.y = 0.0f; +} + +void ImGui::SetScrollX(float scroll_x) +{ + ImGuiContext& g = *GImGui; + SetScrollX(g.CurrentWindow, scroll_x); +} + +void ImGui::SetScrollY(float scroll_y) +{ + ImGuiContext& g = *GImGui; + SetScrollY(g.CurrentWindow, scroll_y); +} + +// Note that a local position will vary depending on initial scroll value, +// This is a little bit confusing so bear with us: +// - local_pos = (absolution_pos - window->Pos) +// - So local_x/local_y are 0.0f for a position at the upper-left corner of a window, +// and generally local_x/local_y are >(padding+decoration) && <(size-padding-decoration) when in the visible area. +// - They mostly exist because of legacy API. +// Following the rules above, when trying to work with scrolling code, consider that: +// - SetScrollFromPosY(0.0f) == SetScrollY(0.0f + scroll.y) == has no effect! +// - SetScrollFromPosY(-scroll.y) == SetScrollY(-scroll.y + scroll.y) == SetScrollY(0.0f) == reset scroll. Of course writing SetScrollY(0.0f) directly then makes more sense +// We store a target position so centering and clamping can occur on the next frame when we are guaranteed to have a known window size +void ImGui::SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio) +{ + IM_ASSERT(center_x_ratio >= 0.0f && center_x_ratio <= 1.0f); + window->ScrollTarget.x = IM_TRUNC(local_x - window->DecoOuterSizeX1 - window->DecoInnerSizeX1 + window->Scroll.x); // Convert local position to scroll offset + window->ScrollTargetCenterRatio.x = center_x_ratio; + window->ScrollTargetEdgeSnapDist.x = 0.0f; +} + +void ImGui::SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio) +{ + IM_ASSERT(center_y_ratio >= 0.0f && center_y_ratio <= 1.0f); + window->ScrollTarget.y = IM_TRUNC(local_y - window->DecoOuterSizeY1 - window->DecoInnerSizeY1 + window->Scroll.y); // Convert local position to scroll offset + window->ScrollTargetCenterRatio.y = center_y_ratio; + window->ScrollTargetEdgeSnapDist.y = 0.0f; +} + +void ImGui::SetScrollFromPosX(float local_x, float center_x_ratio) +{ + ImGuiContext& g = *GImGui; + SetScrollFromPosX(g.CurrentWindow, local_x, center_x_ratio); +} + +void ImGui::SetScrollFromPosY(float local_y, float center_y_ratio) +{ + ImGuiContext& g = *GImGui; + SetScrollFromPosY(g.CurrentWindow, local_y, center_y_ratio); +} + +// center_x_ratio: 0.0f left of last item, 0.5f horizontal center of last item, 1.0f right of last item. +void ImGui::SetScrollHereX(float center_x_ratio) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float spacing_x = ImMax(window->WindowPadding.x, g.Style.ItemSpacing.x); + float target_pos_x = ImLerp(g.LastItemData.Rect.Min.x - spacing_x, g.LastItemData.Rect.Max.x + spacing_x, center_x_ratio); + SetScrollFromPosX(window, target_pos_x - window->Pos.x, center_x_ratio); // Convert from absolute to local pos + + // Tweak: snap on edges when aiming at an item very close to the edge + window->ScrollTargetEdgeSnapDist.x = ImMax(0.0f, window->WindowPadding.x - spacing_x); +} + +// center_y_ratio: 0.0f top of last item, 0.5f vertical center of last item, 1.0f bottom of last item. +void ImGui::SetScrollHereY(float center_y_ratio) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float spacing_y = ImMax(window->WindowPadding.y, g.Style.ItemSpacing.y); + float target_pos_y = ImLerp(window->DC.CursorPosPrevLine.y - spacing_y, window->DC.CursorPosPrevLine.y + window->DC.PrevLineSize.y + spacing_y, center_y_ratio); + SetScrollFromPosY(window, target_pos_y - window->Pos.y, center_y_ratio); // Convert from absolute to local pos + + // Tweak: snap on edges when aiming at an item very close to the edge + window->ScrollTargetEdgeSnapDist.y = ImMax(0.0f, window->WindowPadding.y - spacing_y); +} + +//----------------------------------------------------------------------------- +// [SECTION] TOOLTIPS +//----------------------------------------------------------------------------- + +bool ImGui::BeginTooltip() +{ + return BeginTooltipEx(ImGuiTooltipFlags_None, ImGuiWindowFlags_None); +} + +bool ImGui::BeginItemTooltip() +{ + if (!IsItemHovered(ImGuiHoveredFlags_ForTooltip)) + return false; + return BeginTooltipEx(ImGuiTooltipFlags_None, ImGuiWindowFlags_None); +} + +bool ImGui::BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags) +{ + ImGuiContext& g = *GImGui; + + if (g.DragDropWithinSource || g.DragDropWithinTarget) + { + // Drag and Drop tooltips are positioning differently than other tooltips: + // - offset visibility to increase visibility around mouse. + // - never clamp within outer viewport boundary. + // We call SetNextWindowPos() to enforce position and disable clamping. + // See FindBestWindowPosForPopup() for positionning logic of other tooltips (not drag and drop ones). + //ImVec2 tooltip_pos = g.IO.MousePos - g.ActiveIdClickOffset - g.Style.WindowPadding; + ImVec2 tooltip_pos = g.IO.MousePos + TOOLTIP_DEFAULT_OFFSET * g.Style.MouseCursorScale; + SetNextWindowPos(tooltip_pos); + SetNextWindowBgAlpha(g.Style.Colors[ImGuiCol_PopupBg].w * 0.60f); + //PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * 0.60f); // This would be nice but e.g ColorButton with checkboard has issue with transparent colors :( + tooltip_flags |= ImGuiTooltipFlags_OverridePrevious; + } + + char window_name[16]; + ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", g.TooltipOverrideCount); + if (tooltip_flags & ImGuiTooltipFlags_OverridePrevious) + if (ImGuiWindow* window = FindWindowByName(window_name)) + if (window->Active) + { + // Hide previous tooltip from being displayed. We can't easily "reset" the content of a window so we create a new one. + SetWindowHiddendAndSkipItemsForCurrentFrame(window); + ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", ++g.TooltipOverrideCount); + } + ImGuiWindowFlags flags = ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoDocking; + Begin(window_name, NULL, flags | extra_window_flags); + // 2023-03-09: Added bool return value to the API, but currently always returning true. + // If this ever returns false we need to update BeginDragDropSource() accordingly. + //if (!ret) + // End(); + //return ret; + return true; +} + +void ImGui::EndTooltip() +{ + IM_ASSERT(GetCurrentWindowRead()->Flags & ImGuiWindowFlags_Tooltip); // Mismatched BeginTooltip()/EndTooltip() calls + End(); +} + +void ImGui::SetTooltip(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + SetTooltipV(fmt, args); + va_end(args); +} + +void ImGui::SetTooltipV(const char* fmt, va_list args) +{ + if (!BeginTooltipEx(ImGuiTooltipFlags_OverridePrevious, ImGuiWindowFlags_None)) + return; + TextV(fmt, args); + EndTooltip(); +} + +// Shortcut to use 'style.HoverFlagsForTooltipMouse' or 'style.HoverFlagsForTooltipNav'. +// Defaults to == ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort when using the mouse. +void ImGui::SetItemTooltip(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + if (IsItemHovered(ImGuiHoveredFlags_ForTooltip)) + SetTooltipV(fmt, args); + va_end(args); +} + +void ImGui::SetItemTooltipV(const char* fmt, va_list args) +{ + if (IsItemHovered(ImGuiHoveredFlags_ForTooltip)) + SetTooltipV(fmt, args); +} + + +//----------------------------------------------------------------------------- +// [SECTION] POPUPS +//----------------------------------------------------------------------------- + +// Supported flags: ImGuiPopupFlags_AnyPopupId, ImGuiPopupFlags_AnyPopupLevel +bool ImGui::IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + if (popup_flags & ImGuiPopupFlags_AnyPopupId) + { + // Return true if any popup is open at the current BeginPopup() level of the popup stack + // This may be used to e.g. test for another popups already opened to handle popups priorities at the same level. + IM_ASSERT(id == 0); + if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) + return g.OpenPopupStack.Size > 0; + else + return g.OpenPopupStack.Size > g.BeginPopupStack.Size; + } + else + { + if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) + { + // Return true if the popup is open anywhere in the popup stack + for (ImGuiPopupData& popup_data : g.OpenPopupStack) + if (popup_data.PopupId == id) + return true; + return false; + } + else + { + // Return true if the popup is open at the current BeginPopup() level of the popup stack (this is the most-common query) + return g.OpenPopupStack.Size > g.BeginPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].PopupId == id; + } + } +} + +bool ImGui::IsPopupOpen(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = (popup_flags & ImGuiPopupFlags_AnyPopupId) ? 0 : g.CurrentWindow->GetID(str_id); + if ((popup_flags & ImGuiPopupFlags_AnyPopupLevel) && id != 0) + IM_ASSERT(0 && "Cannot use IsPopupOpen() with a string id and ImGuiPopupFlags_AnyPopupLevel."); // But non-string version is legal and used internally + return IsPopupOpen(id, popup_flags); +} + +// Also see FindBlockingModal(NULL) +ImGuiWindow* ImGui::GetTopMostPopupModal() +{ + ImGuiContext& g = *GImGui; + for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--) + if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window) + if (popup->Flags & ImGuiWindowFlags_Modal) + return popup; + return NULL; +} + +// See Demo->Stacked Modal to confirm what this is for. +ImGuiWindow* ImGui::GetTopMostAndVisiblePopupModal() +{ + ImGuiContext& g = *GImGui; + for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--) + if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window) + if ((popup->Flags & ImGuiWindowFlags_Modal) && IsWindowActiveAndVisible(popup)) + return popup; + return NULL; +} + +void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.CurrentWindow->GetID(str_id); + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopup(\"%s\" -> 0x%08X)\n", str_id, id); + OpenPopupEx(id, popup_flags); +} + +void ImGui::OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + OpenPopupEx(id, popup_flags); +} + +// Mark popup as open (toggle toward open state). +// Popups are closed when user click outside, or activate a pressable item, or CloseCurrentPopup() is called within a BeginPopup()/EndPopup() block. +// Popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level). +// One open popup per level of the popup hierarchy (NB: when assigning we reset the Window member of ImGuiPopupRef to NULL) +void ImGui::OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* parent_window = g.CurrentWindow; + const int current_stack_size = g.BeginPopupStack.Size; + + if (popup_flags & ImGuiPopupFlags_NoOpenOverExistingPopup) + if (IsPopupOpen((ImGuiID)0, ImGuiPopupFlags_AnyPopupId)) + return; + + ImGuiPopupData popup_ref; // Tagged as new ref as Window will be set back to NULL if we write this into OpenPopupStack. + popup_ref.PopupId = id; + popup_ref.Window = NULL; + popup_ref.BackupNavWindow = g.NavWindow; // When popup closes focus may be restored to NavWindow (depend on window type). + popup_ref.OpenFrameCount = g.FrameCount; + popup_ref.OpenParentId = parent_window->IDStack.back(); + popup_ref.OpenPopupPos = NavCalcPreferredRefPos(); + popup_ref.OpenMousePos = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : popup_ref.OpenPopupPos; + + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopupEx(0x%08X)\n", id); + if (g.OpenPopupStack.Size < current_stack_size + 1) + { + g.OpenPopupStack.push_back(popup_ref); + } + else + { + // Gently handle the user mistakenly calling OpenPopup() every frame. It is a programming mistake! However, if we were to run the regular code path, the ui + // would become completely unusable because the popup will always be in hidden-while-calculating-size state _while_ claiming focus. Which would be a very confusing + // situation for the programmer. Instead, we silently allow the popup to proceed, it will keep reappearing and the programming error will be more obvious to understand. + if (g.OpenPopupStack[current_stack_size].PopupId == id && g.OpenPopupStack[current_stack_size].OpenFrameCount == g.FrameCount - 1) + { + g.OpenPopupStack[current_stack_size].OpenFrameCount = popup_ref.OpenFrameCount; + } + else + { + // Close child popups if any, then flag popup for open/reopen + ClosePopupToLevel(current_stack_size, false); + g.OpenPopupStack.push_back(popup_ref); + } + + // When reopening a popup we first refocus its parent, otherwise if its parent is itself a popup it would get closed by ClosePopupsOverWindow(). + // This is equivalent to what ClosePopupToLevel() does. + //if (g.OpenPopupStack[current_stack_size].PopupId == id) + // FocusWindow(parent_window); + } +} + +// When popups are stacked, clicking on a lower level popups puts focus back to it and close popups above it. +// This function closes any popups that are over 'ref_window'. +void ImGui::ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size == 0) + return; + + // Don't close our own child popup windows. + int popup_count_to_keep = 0; + if (ref_window) + { + // Find the highest popup which is a descendant of the reference window (generally reference window = NavWindow) + for (; popup_count_to_keep < g.OpenPopupStack.Size; popup_count_to_keep++) + { + ImGuiPopupData& popup = g.OpenPopupStack[popup_count_to_keep]; + if (!popup.Window) + continue; + IM_ASSERT((popup.Window->Flags & ImGuiWindowFlags_Popup) != 0); + if (popup.Window->Flags & ImGuiWindowFlags_ChildWindow) + continue; + + // Trim the stack unless the popup is a direct parent of the reference window (the reference window is often the NavWindow) + // - With this stack of window, clicking/focusing Popup1 will close Popup2 and Popup3: + // Window -> Popup1 -> Popup2 -> Popup3 + // - Each popups may contain child windows, which is why we compare ->RootWindowDockTree! + // Window -> Popup1 -> Popup1_Child -> Popup2 -> Popup2_Child + bool ref_window_is_descendent_of_popup = false; + for (int n = popup_count_to_keep; n < g.OpenPopupStack.Size; n++) + if (ImGuiWindow* popup_window = g.OpenPopupStack[n].Window) + //if (popup_window->RootWindowDockTree == ref_window->RootWindowDockTree) // FIXME-MERGE + if (IsWindowWithinBeginStackOf(ref_window, popup_window)) + { + ref_window_is_descendent_of_popup = true; + break; + } + if (!ref_window_is_descendent_of_popup) + break; + } + } + if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below + { + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupsOverWindow(\"%s\")\n", ref_window ? ref_window->Name : ""); + ClosePopupToLevel(popup_count_to_keep, restore_focus_to_window_under_popup); + } +} + +void ImGui::ClosePopupsExceptModals() +{ + ImGuiContext& g = *GImGui; + + int popup_count_to_keep; + for (popup_count_to_keep = g.OpenPopupStack.Size; popup_count_to_keep > 0; popup_count_to_keep--) + { + ImGuiWindow* window = g.OpenPopupStack[popup_count_to_keep - 1].Window; + if (!window || (window->Flags & ImGuiWindowFlags_Modal)) + break; + } + if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below + ClosePopupToLevel(popup_count_to_keep, true); +} + +void ImGui::ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup) +{ + ImGuiContext& g = *GImGui; + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupToLevel(%d), restore_focus_to_window_under_popup=%d\n", remaining, restore_focus_to_window_under_popup); + IM_ASSERT(remaining >= 0 && remaining < g.OpenPopupStack.Size); + + // Trim open popup stack + ImGuiWindow* popup_window = g.OpenPopupStack[remaining].Window; + ImGuiWindow* popup_backup_nav_window = g.OpenPopupStack[remaining].BackupNavWindow; + g.OpenPopupStack.resize(remaining); + + if (restore_focus_to_window_under_popup) + { + ImGuiWindow* focus_window = (popup_window && popup_window->Flags & ImGuiWindowFlags_ChildMenu) ? popup_window->ParentWindow : popup_backup_nav_window; + if (focus_window && !focus_window->WasActive && popup_window) + FocusTopMostWindowUnderOne(popup_window, NULL, NULL, ImGuiFocusRequestFlags_RestoreFocusedChild); // Fallback + else + FocusWindow(focus_window, (g.NavLayer == ImGuiNavLayer_Main) ? ImGuiFocusRequestFlags_RestoreFocusedChild : ImGuiFocusRequestFlags_None); + } +} + +// Close the popup we have begin-ed into. +void ImGui::CloseCurrentPopup() +{ + ImGuiContext& g = *GImGui; + int popup_idx = g.BeginPopupStack.Size - 1; + if (popup_idx < 0 || popup_idx >= g.OpenPopupStack.Size || g.BeginPopupStack[popup_idx].PopupId != g.OpenPopupStack[popup_idx].PopupId) + return; + + // Closing a menu closes its top-most parent popup (unless a modal) + while (popup_idx > 0) + { + ImGuiWindow* popup_window = g.OpenPopupStack[popup_idx].Window; + ImGuiWindow* parent_popup_window = g.OpenPopupStack[popup_idx - 1].Window; + bool close_parent = false; + if (popup_window && (popup_window->Flags & ImGuiWindowFlags_ChildMenu)) + if (parent_popup_window && !(parent_popup_window->Flags & ImGuiWindowFlags_MenuBar)) + close_parent = true; + if (!close_parent) + break; + popup_idx--; + } + IMGUI_DEBUG_LOG_POPUP("[popup] CloseCurrentPopup %d -> %d\n", g.BeginPopupStack.Size - 1, popup_idx); + ClosePopupToLevel(popup_idx, true); + + // A common pattern is to close a popup when selecting a menu item/selectable that will open another window. + // To improve this usage pattern, we avoid nav highlight for a single frame in the parent window. + // Similarly, we could avoid mouse hover highlight in this window but it is less visually problematic. + if (ImGuiWindow* window = g.NavWindow) + window->DC.NavHideHighlightOneFrame = true; +} + +// Attention! BeginPopup() adds default flags which BeginPopupEx()! +bool ImGui::BeginPopupEx(ImGuiID id, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + if (!IsPopupOpen(id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + + char name[20]; + if (flags & ImGuiWindowFlags_ChildMenu) + ImFormatString(name, IM_ARRAYSIZE(name), "##Menu_%02d", g.BeginMenuCount); // Recycle windows based on depth + else + ImFormatString(name, IM_ARRAYSIZE(name), "##Popup_%08x", id); // Not recycling, so we can close/open during the same frame + + flags |= ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoDocking; + bool is_open = Begin(name, NULL, flags); + if (!is_open) // NB: Begin can return false when the popup is completely clipped (e.g. zero size display) + EndPopup(); + + return is_open; +} + +bool ImGui::BeginPopup(const char* str_id, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size <= g.BeginPopupStack.Size) // Early out for performance + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + flags |= ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings; + ImGuiID id = g.CurrentWindow->GetID(str_id); + return BeginPopupEx(id, flags); +} + +// If 'p_open' is specified for a modal popup window, the popup will have a regular close button which will close the popup. +// Note that popup visibility status is owned by Dear ImGui (and manipulated with e.g. OpenPopup). +// - *p_open set back to false in BeginPopupModal() when popup is not open. +// - if you set *p_open to false before calling BeginPopupModal(), it will close the popup. +bool ImGui::BeginPopupModal(const char* name, bool* p_open, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = window->GetID(name); + if (!IsPopupOpen(id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + if (p_open && *p_open) + *p_open = false; + return false; + } + + // Center modal windows by default for increased visibility + // (this won't really last as settings will kick in, and is mostly for backward compatibility. user may do the same themselves) + // FIXME: Should test for (PosCond & window->SetWindowPosAllowFlags) with the upcoming window. + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) == 0) + { + const ImGuiViewport* viewport = window->WasActive ? window->Viewport : GetMainViewport(); // FIXME-VIEWPORT: What may be our reference viewport? + SetNextWindowPos(viewport->GetCenter(), ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f)); + } + + flags |= ImGuiWindowFlags_Popup | ImGuiWindowFlags_Modal | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoDocking; + const bool is_open = Begin(name, p_open, flags); + if (!is_open || (p_open && !*p_open)) // NB: is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + { + EndPopup(); + if (is_open) + ClosePopupToLevel(g.BeginPopupStack.Size, true); + return false; + } + return is_open; +} + +void ImGui::EndPopup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginPopup()/EndPopup() calls + IM_ASSERT(g.BeginPopupStack.Size > 0); + + // Make all menus and popups wrap around for now, may need to expose that policy (e.g. focus scope could include wrap/loop policy flags used by new move requests) + if (g.NavWindow == window) + NavMoveRequestTryWrapping(window, ImGuiNavMoveFlags_LoopY); + + // Child-popups don't need to be laid out + IM_ASSERT(g.WithinEndChild == false); + if (window->Flags & ImGuiWindowFlags_ChildWindow) + g.WithinEndChild = true; + End(); + g.WithinEndChild = false; +} + +// Helper to open a popup if mouse button is released over the item +// - This is essentially the same as BeginPopupContextItem() but without the trailing BeginPopup() +void ImGui::OpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + { + ImGuiID id = str_id ? window->GetID(str_id) : g.LastItemData.ID; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! + IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) + OpenPopupEx(id, popup_flags); + } +} + +// This is a helper to handle the simplest case of associating one named popup to one given widget. +// - To create a popup associated to the last item, you generally want to pass a NULL value to str_id. +// - To create a popup with a specific identifier, pass it in str_id. +// - This is useful when using using BeginPopupContextItem() on an item which doesn't have an identifier, e.g. a Text() call. +// - This is useful when multiple code locations may want to manipulate/open the same popup, given an explicit id. +// - You may want to handle the whole on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters). +// This is essentially the same as: +// id = str_id ? GetID(str_id) : GetItemID(); +// OpenPopupOnItemClick(str_id, ImGuiPopupFlags_MouseButtonRight); +// return BeginPopup(id); +// Which is essentially the same as: +// id = str_id ? GetID(str_id) : GetItemID(); +// if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) +// OpenPopup(id); +// return BeginPopup(id); +// The main difference being that this is tweaked to avoid computing the ID twice. +bool ImGui::BeginPopupContextItem(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + ImGuiID id = str_id ? window->GetID(str_id) : g.LastItemData.ID; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! + IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +bool ImGui::BeginPopupContextWindow(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!str_id) + str_id = "window_context"; + ImGuiID id = window->GetID(str_id); + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + if (!(popup_flags & ImGuiPopupFlags_NoOpenOverItems) || !IsAnyItemHovered()) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +bool ImGui::BeginPopupContextVoid(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!str_id) + str_id = "void_context"; + ImGuiID id = window->GetID(str_id); + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && !IsWindowHovered(ImGuiHoveredFlags_AnyWindow)) + if (GetTopMostPopupModal() == NULL) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +// r_avoid = the rectangle to avoid (e.g. for tooltip it is a rectangle around the mouse cursor which we want to avoid. for popups it's a small point around the cursor.) +// r_outer = the visible area rectangle, minus safe area padding. If our popup size won't fit because of safe area padding we ignore it. +// (r_outer is usually equivalent to the viewport rectangle minus padding, but when multi-viewports are enabled and monitor +// information are available, it may represent the entire platform monitor from the frame of reference of the current viewport. +// this allows us to have tooltips/popups displayed out of the parent viewport.) +ImVec2 ImGui::FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy) +{ + ImVec2 base_pos_clamped = ImClamp(ref_pos, r_outer.Min, r_outer.Max - size); + //GetForegroundDrawList()->AddRect(r_avoid.Min, r_avoid.Max, IM_COL32(255,0,0,255)); + //GetForegroundDrawList()->AddRect(r_outer.Min, r_outer.Max, IM_COL32(0,255,0,255)); + + // Combo Box policy (we want a connecting edge) + if (policy == ImGuiPopupPositionPolicy_ComboBox) + { + const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Down, ImGuiDir_Right, ImGuiDir_Left, ImGuiDir_Up }; + for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) + { + const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; + if (n != -1 && dir == *last_dir) // Already tried this direction? + continue; + ImVec2 pos; + if (dir == ImGuiDir_Down) pos = ImVec2(r_avoid.Min.x, r_avoid.Max.y); // Below, Toward Right (default) + if (dir == ImGuiDir_Right) pos = ImVec2(r_avoid.Min.x, r_avoid.Min.y - size.y); // Above, Toward Right + if (dir == ImGuiDir_Left) pos = ImVec2(r_avoid.Max.x - size.x, r_avoid.Max.y); // Below, Toward Left + if (dir == ImGuiDir_Up) pos = ImVec2(r_avoid.Max.x - size.x, r_avoid.Min.y - size.y); // Above, Toward Left + if (!r_outer.Contains(ImRect(pos, pos + size))) + continue; + *last_dir = dir; + return pos; + } + } + + // Tooltip and Default popup policy + // (Always first try the direction we used on the last frame, if any) + if (policy == ImGuiPopupPositionPolicy_Tooltip || policy == ImGuiPopupPositionPolicy_Default) + { + const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Right, ImGuiDir_Down, ImGuiDir_Up, ImGuiDir_Left }; + for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) + { + const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; + if (n != -1 && dir == *last_dir) // Already tried this direction? + continue; + + const float avail_w = (dir == ImGuiDir_Left ? r_avoid.Min.x : r_outer.Max.x) - (dir == ImGuiDir_Right ? r_avoid.Max.x : r_outer.Min.x); + const float avail_h = (dir == ImGuiDir_Up ? r_avoid.Min.y : r_outer.Max.y) - (dir == ImGuiDir_Down ? r_avoid.Max.y : r_outer.Min.y); + + // If there's not enough room on one axis, there's no point in positioning on a side on this axis (e.g. when not enough width, use a top/bottom position to maximize available width) + if (avail_w < size.x && (dir == ImGuiDir_Left || dir == ImGuiDir_Right)) + continue; + if (avail_h < size.y && (dir == ImGuiDir_Up || dir == ImGuiDir_Down)) + continue; + + ImVec2 pos; + pos.x = (dir == ImGuiDir_Left) ? r_avoid.Min.x - size.x : (dir == ImGuiDir_Right) ? r_avoid.Max.x : base_pos_clamped.x; + pos.y = (dir == ImGuiDir_Up) ? r_avoid.Min.y - size.y : (dir == ImGuiDir_Down) ? r_avoid.Max.y : base_pos_clamped.y; + + // Clamp top-left corner of popup + pos.x = ImMax(pos.x, r_outer.Min.x); + pos.y = ImMax(pos.y, r_outer.Min.y); + + *last_dir = dir; + return pos; + } + } + + // Fallback when not enough room: + *last_dir = ImGuiDir_None; + + // For tooltip we prefer avoiding the cursor at all cost even if it means that part of the tooltip won't be visible. + if (policy == ImGuiPopupPositionPolicy_Tooltip) + return ref_pos + ImVec2(2, 2); + + // Otherwise try to keep within display + ImVec2 pos = ref_pos; + pos.x = ImMax(ImMin(pos.x + size.x, r_outer.Max.x) - size.x, r_outer.Min.x); + pos.y = ImMax(ImMin(pos.y + size.y, r_outer.Max.y) - size.y, r_outer.Min.y); + return pos; +} + +// Note that this is used for popups, which can overlap the non work-area of individual viewports. +ImRect ImGui::GetPopupAllowedExtentRect(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + ImRect r_screen; + if (window->ViewportAllowPlatformMonitorExtend >= 0) + { + // Extent with be in the frame of reference of the given viewport (so Min is likely to be negative here) + const ImGuiPlatformMonitor& monitor = g.PlatformIO.Monitors[window->ViewportAllowPlatformMonitorExtend]; + r_screen.Min = monitor.WorkPos; + r_screen.Max = monitor.WorkPos + monitor.WorkSize; + } + else + { + // Use the full viewport area (not work area) for popups + r_screen = window->Viewport->GetMainRect(); + } + ImVec2 padding = g.Style.DisplaySafeAreaPadding; + r_screen.Expand(ImVec2((r_screen.GetWidth() > padding.x * 2) ? -padding.x : 0.0f, (r_screen.GetHeight() > padding.y * 2) ? -padding.y : 0.0f)); + return r_screen; +} + +ImVec2 ImGui::FindBestWindowPosForPopup(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + ImRect r_outer = GetPopupAllowedExtentRect(window); + if (window->Flags & ImGuiWindowFlags_ChildMenu) + { + // Child menus typically request _any_ position within the parent menu item, and then we move the new menu outside the parent bounds. + // This is how we end up with child menus appearing (most-commonly) on the right of the parent menu. + ImGuiWindow* parent_window = window->ParentWindow; + float horizontal_overlap = g.Style.ItemInnerSpacing.x; // We want some overlap to convey the relative depth of each menu (currently the amount of overlap is hard-coded to style.ItemSpacing.x). + ImRect r_avoid; + if (parent_window->DC.MenuBarAppending) + r_avoid = ImRect(-FLT_MAX, parent_window->ClipRect.Min.y, FLT_MAX, parent_window->ClipRect.Max.y); // Avoid parent menu-bar. If we wanted multi-line menu-bar, we may instead want to have the calling window setup e.g. a NextWindowData.PosConstraintAvoidRect field + else + r_avoid = ImRect(parent_window->Pos.x + horizontal_overlap, -FLT_MAX, parent_window->Pos.x + parent_window->Size.x - horizontal_overlap - parent_window->ScrollbarSizes.x, FLT_MAX); + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Default); + } + if (window->Flags & ImGuiWindowFlags_Popup) + { + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, ImRect(window->Pos, window->Pos), ImGuiPopupPositionPolicy_Default); // Ideally we'd disable r_avoid here + } + if (window->Flags & ImGuiWindowFlags_Tooltip) + { + // Position tooltip (always follows mouse + clamp within outer boundaries) + // Note that drag and drop tooltips are NOT using this path: BeginTooltipEx() manually sets their position. + // In theory we could handle both cases in same location, but requires a bit of shuffling as drag and drop tooltips are calling SetWindowPos() leading to 'window_pos_set_by_api' being set in Begin() + IM_ASSERT(g.CurrentWindow == window); + const float scale = g.Style.MouseCursorScale; + const ImVec2 ref_pos = NavCalcPreferredRefPos(); + const ImVec2 tooltip_pos = ref_pos + TOOLTIP_DEFAULT_OFFSET * scale; + ImRect r_avoid; + if (!g.NavDisableHighlight && g.NavDisableMouseHover && !(g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos)) + r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 16, ref_pos.y + 8); + else + r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 24 * scale, ref_pos.y + 24 * scale); // FIXME: Hard-coded based on mouse cursor shape expectation. Exact dimension not very important. + //GetForegroundDrawList()->AddRect(r_avoid.Min, r_avoid.Max, IM_COL32(255, 0, 255, 255)); + return FindBestWindowPosForPopupEx(tooltip_pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Tooltip); + } + IM_ASSERT(0); + return window->Pos; +} + +//----------------------------------------------------------------------------- +// [SECTION] KEYBOARD/GAMEPAD NAVIGATION +//----------------------------------------------------------------------------- + +// FIXME-NAV: The existence of SetNavID vs SetFocusID vs FocusWindow() needs to be clarified/reworked. +// In our terminology those should be interchangeable, yet right now this is super confusing. +// Those two functions are merely a legacy artifact, so at minimum naming should be clarified. + +void ImGui::SetNavWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.NavWindow != window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] SetNavWindow(\"%s\")\n", window ? window->Name : ""); + g.NavWindow = window; + g.NavLastValidSelectionUserData = ImGuiSelectionUserData_Invalid; + } + g.NavInitRequest = g.NavMoveSubmitted = g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); +} + +void ImGui::NavClearPreferredPosForAxis(ImGuiAxis axis) +{ + ImGuiContext& g = *GImGui; + g.NavWindow->RootWindowForNav->NavPreferredScoringPosRel[g.NavLayer][axis] = FLT_MAX; +} + +void ImGui::SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindow != NULL); + IM_ASSERT(nav_layer == ImGuiNavLayer_Main || nav_layer == ImGuiNavLayer_Menu); + g.NavId = id; + g.NavLayer = nav_layer; + g.NavFocusScopeId = focus_scope_id; + g.NavWindow->NavLastIds[nav_layer] = id; + g.NavWindow->NavRectRel[nav_layer] = rect_rel; + + // Clear preferred scoring position (NavMoveRequestApplyResult() will tend to restore it) + NavClearPreferredPosForAxis(ImGuiAxis_X); + NavClearPreferredPosForAxis(ImGuiAxis_Y); +} + +void ImGui::SetFocusID(ImGuiID id, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(id != 0); + + if (g.NavWindow != window) + SetNavWindow(window); + + // Assume that SetFocusID() is called in the context where its window->DC.NavLayerCurrent and g.CurrentFocusScopeId are valid. + // Note that window may be != g.CurrentWindow (e.g. SetFocusID call in InputTextEx for multi-line text) + const ImGuiNavLayer nav_layer = window->DC.NavLayerCurrent; + g.NavId = id; + g.NavLayer = nav_layer; + g.NavFocusScopeId = g.CurrentFocusScopeId; + window->NavLastIds[nav_layer] = id; + if (g.LastItemData.ID == id) + window->NavRectRel[nav_layer] = WindowRectAbsToRel(window, g.LastItemData.NavRect); + + if (g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) + g.NavDisableMouseHover = true; + else + g.NavDisableHighlight = true; + + // Clear preferred scoring position (NavMoveRequestApplyResult() will tend to restore it) + NavClearPreferredPosForAxis(ImGuiAxis_X); + NavClearPreferredPosForAxis(ImGuiAxis_Y); +} + +static ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) +{ + if (ImFabs(dx) > ImFabs(dy)) + return (dx > 0.0f) ? ImGuiDir_Right : ImGuiDir_Left; + return (dy > 0.0f) ? ImGuiDir_Down : ImGuiDir_Up; +} + +static float inline NavScoreItemDistInterval(float cand_min, float cand_max, float curr_min, float curr_max) +{ + if (cand_max < curr_min) + return cand_max - curr_min; + if (curr_max < cand_min) + return cand_min - curr_max; + return 0.0f; +} + +// Scoring function for gamepad/keyboard directional navigation. Based on https://gist.github.com/rygorous/6981057 +static bool ImGui::NavScoreItem(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.NavLayer != window->DC.NavLayerCurrent) + return false; + + // FIXME: Those are not good variables names + ImRect cand = g.LastItemData.NavRect; // Current item nav rectangle + const ImRect curr = g.NavScoringRect; // Current modified source rect (NB: we've applied Max.x = Min.x in NavUpdate() to inhibit the effect of having varied item width) + g.NavScoringDebugCount++; + + // When entering through a NavFlattened border, we consider child window items as fully clipped for scoring + if (window->ParentWindow == g.NavWindow) + { + IM_ASSERT((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened); + if (!window->ClipRect.Overlaps(cand)) + return false; + cand.ClipWithFull(window->ClipRect); // This allows the scored item to not overlap other candidates in the parent window + } + + // Compute distance between boxes + // FIXME-NAV: Introducing biases for vertical navigation, needs to be removed. + float dbx = NavScoreItemDistInterval(cand.Min.x, cand.Max.x, curr.Min.x, curr.Max.x); + float dby = NavScoreItemDistInterval(ImLerp(cand.Min.y, cand.Max.y, 0.2f), ImLerp(cand.Min.y, cand.Max.y, 0.8f), ImLerp(curr.Min.y, curr.Max.y, 0.2f), ImLerp(curr.Min.y, curr.Max.y, 0.8f)); // Scale down on Y to keep using box-distance for vertically touching items + if (dby != 0.0f && dbx != 0.0f) + dbx = (dbx / 1000.0f) + ((dbx > 0.0f) ? +1.0f : -1.0f); + float dist_box = ImFabs(dbx) + ImFabs(dby); + + // Compute distance between centers (this is off by a factor of 2, but we only compare center distances with each other so it doesn't matter) + float dcx = (cand.Min.x + cand.Max.x) - (curr.Min.x + curr.Max.x); + float dcy = (cand.Min.y + cand.Max.y) - (curr.Min.y + curr.Max.y); + float dist_center = ImFabs(dcx) + ImFabs(dcy); // L1 metric (need this for our connectedness guarantee) + + // Determine which quadrant of 'curr' our candidate item 'cand' lies in based on distance + ImGuiDir quadrant; + float dax = 0.0f, day = 0.0f, dist_axial = 0.0f; + if (dbx != 0.0f || dby != 0.0f) + { + // For non-overlapping boxes, use distance between boxes + dax = dbx; + day = dby; + dist_axial = dist_box; + quadrant = ImGetDirQuadrantFromDelta(dbx, dby); + } + else if (dcx != 0.0f || dcy != 0.0f) + { + // For overlapping boxes with different centers, use distance between centers + dax = dcx; + day = dcy; + dist_axial = dist_center; + quadrant = ImGetDirQuadrantFromDelta(dcx, dcy); + } + else + { + // Degenerate case: two overlapping buttons with same center, break ties arbitrarily (note that LastItemId here is really the _previous_ item order, but it doesn't matter) + quadrant = (g.LastItemData.ID < g.NavId) ? ImGuiDir_Left : ImGuiDir_Right; + } + + const ImGuiDir move_dir = g.NavMoveDir; +#if IMGUI_DEBUG_NAV_SCORING + char buf[200]; + if (g.IO.KeyCtrl) // Hold CTRL to preview score in matching quadrant. CTRL+Arrow to rotate. + { + if (quadrant == move_dir) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "%.0f/%.0f", dist_box, dist_center); + ImDrawList* draw_list = GetForegroundDrawList(window); + draw_list->AddRectFilled(cand.Min, cand.Max, IM_COL32(255, 0, 0, 80)); + draw_list->AddRectFilled(cand.Min, cand.Min + CalcTextSize(buf), IM_COL32(255, 0, 0, 200)); + draw_list->AddText(cand.Min, IM_COL32(255, 255, 255, 255), buf); + } + } + const bool debug_hovering = IsMouseHoveringRect(cand.Min, cand.Max); + const bool debug_tty = (g.IO.KeyCtrl && IsKeyPressed(ImGuiKey_Space)); + if (debug_hovering || debug_tty) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), + "d-box (%7.3f,%7.3f) -> %7.3f\nd-center (%7.3f,%7.3f) -> %7.3f\nd-axial (%7.3f,%7.3f) -> %7.3f\nnav %c, quadrant %c", + dbx, dby, dist_box, dcx, dcy, dist_center, dax, day, dist_axial, "-WENS"[move_dir+1], "-WENS"[quadrant+1]); + if (debug_hovering) + { + ImDrawList* draw_list = GetForegroundDrawList(window); + draw_list->AddRect(curr.Min, curr.Max, IM_COL32(255, 200, 0, 100)); + draw_list->AddRect(cand.Min, cand.Max, IM_COL32(255, 255, 0, 200)); + draw_list->AddRectFilled(cand.Max - ImVec2(4, 4), cand.Max + CalcTextSize(buf) + ImVec2(4, 4), IM_COL32(40, 0, 0, 200)); + draw_list->AddText(cand.Max, ~0U, buf); + } + if (debug_tty) { IMGUI_DEBUG_LOG_NAV("id 0x%08X\n%s\n", g.LastItemData.ID, buf); } + } +#endif + + // Is it in the quadrant we're interested in moving to? + bool new_best = false; + if (quadrant == move_dir) + { + // Does it beat the current best candidate? + if (dist_box < result->DistBox) + { + result->DistBox = dist_box; + result->DistCenter = dist_center; + return true; + } + if (dist_box == result->DistBox) + { + // Try using distance between center points to break ties + if (dist_center < result->DistCenter) + { + result->DistCenter = dist_center; + new_best = true; + } + else if (dist_center == result->DistCenter) + { + // Still tied! we need to be extra-careful to make sure everything gets linked properly. We consistently break ties by symbolically moving "later" items + // (with higher index) to the right/downwards by an infinitesimal amount since we the current "best" button already (so it must have a lower index), + // this is fairly easy. This rule ensures that all buttons with dx==dy==0 will end up being linked in order of appearance along the x axis. + if (((move_dir == ImGuiDir_Up || move_dir == ImGuiDir_Down) ? dby : dbx) < 0.0f) // moving bj to the right/down decreases distance + new_best = true; + } + } + } + + // Axial check: if 'curr' has no link at all in some direction and 'cand' lies roughly in that direction, add a tentative link. This will only be kept if no "real" matches + // are found, so it only augments the graph produced by the above method using extra links. (important, since it doesn't guarantee strong connectedness) + // This is just to avoid buttons having no links in a particular direction when there's a suitable neighbor. you get good graphs without this too. + // 2017/09/29: FIXME: This now currently only enabled inside menu bars, ideally we'd disable it everywhere. Menus in particular need to catch failure. For general navigation it feels awkward. + // Disabling it may lead to disconnected graphs when nodes are very spaced out on different axis. Perhaps consider offering this as an option? + if (result->DistBox == FLT_MAX && dist_axial < result->DistAxial) // Check axial match + if (g.NavLayer == ImGuiNavLayer_Menu && !(g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) + if ((move_dir == ImGuiDir_Left && dax < 0.0f) || (move_dir == ImGuiDir_Right && dax > 0.0f) || (move_dir == ImGuiDir_Up && day < 0.0f) || (move_dir == ImGuiDir_Down && day > 0.0f)) + { + result->DistAxial = dist_axial; + new_best = true; + } + + return new_best; +} + +static void ImGui::NavApplyItemToResult(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + result->Window = window; + result->ID = g.LastItemData.ID; + result->FocusScopeId = g.CurrentFocusScopeId; + result->InFlags = g.LastItemData.InFlags; + result->RectRel = WindowRectAbsToRel(window, g.LastItemData.NavRect); + if (result->InFlags & ImGuiItemFlags_HasSelectionUserData) + { + IM_ASSERT(g.NextItemData.SelectionUserData != ImGuiSelectionUserData_Invalid); + result->SelectionUserData = g.NextItemData.SelectionUserData; // INTENTIONAL: At this point this field is not cleared in NextItemData. Avoid unnecessary copy to LastItemData. + } +} + +// True when current work location may be scrolled horizontally when moving left / right. +// This is generally always true UNLESS within a column. We don't have a vertical equivalent. +void ImGui::NavUpdateCurrentWindowIsScrollPushableX() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DC.NavIsScrollPushableX = (g.CurrentTable == NULL && window->DC.CurrentColumns == NULL); +} + +// We get there when either NavId == id, or when g.NavAnyRequest is set (which is updated by NavUpdateAnyRequestFlag above) +// This is called after LastItemData is set, but NextItemData is also still valid. +static void ImGui::NavProcessItem() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = g.LastItemData.ID; + const ImGuiItemFlags item_flags = g.LastItemData.InFlags; + + // When inside a container that isn't scrollable with Left<>Right, clip NavRect accordingly (#2221) + if (window->DC.NavIsScrollPushableX == false) + { + g.LastItemData.NavRect.Min.x = ImClamp(g.LastItemData.NavRect.Min.x, window->ClipRect.Min.x, window->ClipRect.Max.x); + g.LastItemData.NavRect.Max.x = ImClamp(g.LastItemData.NavRect.Max.x, window->ClipRect.Min.x, window->ClipRect.Max.x); + } + const ImRect nav_bb = g.LastItemData.NavRect; + + // Process Init Request + if (g.NavInitRequest && g.NavLayer == window->DC.NavLayerCurrent && (item_flags & ImGuiItemFlags_Disabled) == 0) + { + // Even if 'ImGuiItemFlags_NoNavDefaultFocus' is on (typically collapse/close button) we record the first ResultId so they can be used as a fallback + const bool candidate_for_nav_default_focus = (item_flags & ImGuiItemFlags_NoNavDefaultFocus) == 0; + if (candidate_for_nav_default_focus || g.NavInitResult.ID == 0) + { + NavApplyItemToResult(&g.NavInitResult); + } + if (candidate_for_nav_default_focus) + { + g.NavInitRequest = false; // Found a match, clear request + NavUpdateAnyRequestFlag(); + } + } + + // Process Move Request (scoring for navigation) + // FIXME-NAV: Consider policy for double scoring (scoring from NavScoringRect + scoring from a rect wrapped according to current wrapping policy) + if (g.NavMoveScoringItems && (item_flags & ImGuiItemFlags_Disabled) == 0) + { + const bool is_tabbing = (g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) != 0; + if (is_tabbing) + { + NavProcessItemForTabbingRequest(id, item_flags, g.NavMoveFlags); + } + else if (g.NavId != id || (g.NavMoveFlags & ImGuiNavMoveFlags_AllowCurrentNavId)) + { + ImGuiNavItemData* result = (window == g.NavWindow) ? &g.NavMoveResultLocal : &g.NavMoveResultOther; + if (NavScoreItem(result)) + NavApplyItemToResult(result); + + // Features like PageUp/PageDown need to maintain a separate score for the visible set of items. + const float VISIBLE_RATIO = 0.70f; + if ((g.NavMoveFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) && window->ClipRect.Overlaps(nav_bb)) + if (ImClamp(nav_bb.Max.y, window->ClipRect.Min.y, window->ClipRect.Max.y) - ImClamp(nav_bb.Min.y, window->ClipRect.Min.y, window->ClipRect.Max.y) >= (nav_bb.Max.y - nav_bb.Min.y) * VISIBLE_RATIO) + if (NavScoreItem(&g.NavMoveResultLocalVisible)) + NavApplyItemToResult(&g.NavMoveResultLocalVisible); + } + } + + // Update information for currently focused/navigated item + if (g.NavId == id) + { + if (g.NavWindow != window) + SetNavWindow(window); // Always refresh g.NavWindow, because some operations such as FocusItem() may not have a window. + g.NavLayer = window->DC.NavLayerCurrent; + g.NavFocusScopeId = g.CurrentFocusScopeId; + g.NavIdIsAlive = true; + if (g.LastItemData.InFlags & ImGuiItemFlags_HasSelectionUserData) + { + IM_ASSERT(g.NextItemData.SelectionUserData != ImGuiSelectionUserData_Invalid); + g.NavLastValidSelectionUserData = g.NextItemData.SelectionUserData; // INTENTIONAL: At this point this field is not cleared in NextItemData. Avoid unnecessary copy to LastItemData. + } + window->NavRectRel[window->DC.NavLayerCurrent] = WindowRectAbsToRel(window, nav_bb); // Store item bounding box (relative to window position) + } +} + +// Handle "scoring" of an item for a tabbing/focusing request initiated by NavUpdateCreateTabbingRequest(). +// Note that SetKeyboardFocusHere() API calls are considered tabbing requests! +// - Case 1: no nav/active id: set result to first eligible item, stop storing. +// - Case 2: tab forward: on ref id set counter, on counter elapse store result +// - Case 3: tab forward wrap: set result to first eligible item (preemptively), on ref id set counter, on next frame if counter hasn't elapsed store result. // FIXME-TABBING: Could be done as a next-frame forwarded request +// - Case 4: tab backward: store all results, on ref id pick prev, stop storing +// - Case 5: tab backward wrap: store all results, on ref id if no result keep storing until last // FIXME-TABBING: Could be done as next-frame forwarded requested +void ImGui::NavProcessItemForTabbingRequest(ImGuiID id, ImGuiItemFlags item_flags, ImGuiNavMoveFlags move_flags) +{ + ImGuiContext& g = *GImGui; + + if ((move_flags & ImGuiNavMoveFlags_FocusApi) == 0) + if (g.NavLayer != g.CurrentWindow->DC.NavLayerCurrent) + return; + + // - Can always land on an item when using API call. + // - Tabbing with _NavEnableKeyboard (space/enter/arrows): goes through every item. + // - Tabbing without _NavEnableKeyboard: goes through inputable items only. + bool can_stop; + if (move_flags & ImGuiNavMoveFlags_FocusApi) + can_stop = true; + else + can_stop = (item_flags & ImGuiItemFlags_NoTabStop) == 0 && ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) || (item_flags & ImGuiItemFlags_Inputable)); + + // Always store in NavMoveResultLocal (unlike directional request which uses NavMoveResultOther on sibling/flattened windows) + ImGuiNavItemData* result = &g.NavMoveResultLocal; + if (g.NavTabbingDir == +1) + { + // Tab Forward or SetKeyboardFocusHere() with >= 0 + if (can_stop && g.NavTabbingResultFirst.ID == 0) + NavApplyItemToResult(&g.NavTabbingResultFirst); + if (can_stop && g.NavTabbingCounter > 0 && --g.NavTabbingCounter == 0) + NavMoveRequestResolveWithLastItem(result); + else if (g.NavId == id) + g.NavTabbingCounter = 1; + } + else if (g.NavTabbingDir == -1) + { + // Tab Backward + if (g.NavId == id) + { + if (result->ID) + { + g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); + } + } + else if (can_stop) + { + // Keep applying until reaching NavId + NavApplyItemToResult(result); + } + } + else if (g.NavTabbingDir == 0) + { + if (can_stop && g.NavId == id) + NavMoveRequestResolveWithLastItem(result); + if (can_stop && g.NavTabbingResultFirst.ID == 0) // Tab init + NavApplyItemToResult(&g.NavTabbingResultFirst); + } +} + +bool ImGui::NavMoveRequestButNoResultYet() +{ + ImGuiContext& g = *GImGui; + return g.NavMoveScoringItems && g.NavMoveResultLocal.ID == 0 && g.NavMoveResultOther.ID == 0; +} + +// FIXME: ScoringRect is not set +void ImGui::NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindow != NULL); + + if (move_flags & ImGuiNavMoveFlags_IsTabbing) + move_flags |= ImGuiNavMoveFlags_AllowCurrentNavId; + + g.NavMoveSubmitted = g.NavMoveScoringItems = true; + g.NavMoveDir = move_dir; + g.NavMoveDirForDebug = move_dir; + g.NavMoveClipDir = clip_dir; + g.NavMoveFlags = move_flags; + g.NavMoveScrollFlags = scroll_flags; + g.NavMoveForwardToNextFrame = false; + g.NavMoveKeyMods = g.IO.KeyMods; + g.NavMoveResultLocal.Clear(); + g.NavMoveResultLocalVisible.Clear(); + g.NavMoveResultOther.Clear(); + g.NavTabbingCounter = 0; + g.NavTabbingResultFirst.Clear(); + NavUpdateAnyRequestFlag(); +} + +void ImGui::NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + g.NavMoveScoringItems = false; // Ensure request doesn't need more processing + NavApplyItemToResult(result); + NavUpdateAnyRequestFlag(); +} + +// Called by TreePop() to implement ImGuiTreeNodeFlags_NavLeftJumpsBackHere +void ImGui::NavMoveRequestResolveWithPastTreeNode(ImGuiNavItemData* result, ImGuiNavTreeNodeData* tree_node_data) +{ + ImGuiContext& g = *GImGui; + g.NavMoveScoringItems = false; + g.LastItemData.ID = tree_node_data->ID; + g.LastItemData.InFlags = tree_node_data->InFlags & ~ImGuiItemFlags_HasSelectionUserData; // Losing SelectionUserData, recovered next-frame (cheaper). + g.LastItemData.NavRect = tree_node_data->NavRect; + NavApplyItemToResult(result); // Result this instead of implementing a NavApplyPastTreeNodeToResult() + NavClearPreferredPosForAxis(ImGuiAxis_Y); + NavUpdateAnyRequestFlag(); +} + +void ImGui::NavMoveRequestCancel() +{ + ImGuiContext& g = *GImGui; + g.NavMoveSubmitted = g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); +} + +// Forward will reuse the move request again on the next frame (generally with modifications done to it) +void ImGui::NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavMoveForwardToNextFrame == false); + NavMoveRequestCancel(); + g.NavMoveForwardToNextFrame = true; + g.NavMoveDir = move_dir; + g.NavMoveClipDir = clip_dir; + g.NavMoveFlags = move_flags | ImGuiNavMoveFlags_Forwarded; + g.NavMoveScrollFlags = scroll_flags; +} + +// Navigation wrap-around logic is delayed to the end of the frame because this operation is only valid after entire +// popup is assembled and in case of appended popups it is not clear which EndPopup() call is final. +void ImGui::NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags wrap_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT((wrap_flags & ImGuiNavMoveFlags_WrapMask_ ) != 0 && (wrap_flags & ~ImGuiNavMoveFlags_WrapMask_) == 0); // Call with _WrapX, _WrapY, _LoopX, _LoopY + + // In theory we should test for NavMoveRequestButNoResultYet() but there's no point doing it: + // as NavEndFrame() will do the same test. It will end up calling NavUpdateCreateWrappingRequest(). + if (g.NavWindow == window && g.NavMoveScoringItems && g.NavLayer == ImGuiNavLayer_Main) + g.NavMoveFlags = (g.NavMoveFlags & ~ImGuiNavMoveFlags_WrapMask_) | wrap_flags; +} + +// FIXME: This could be replaced by updating a frame number in each window when (window == NavWindow) and (NavLayer == 0). +// This way we could find the last focused window among our children. It would be much less confusing this way? +static void ImGui::NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window) +{ + ImGuiWindow* parent = nav_window; + while (parent && parent->RootWindow != parent && (parent->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) + parent = parent->ParentWindow; + if (parent && parent != nav_window) + parent->NavLastChildNavWindow = nav_window; +} + +// Restore the last focused child. +// Call when we are expected to land on the Main Layer (0) after FocusWindow() +static ImGuiWindow* ImGui::NavRestoreLastChildNavWindow(ImGuiWindow* window) +{ + if (window->NavLastChildNavWindow && window->NavLastChildNavWindow->WasActive) + return window->NavLastChildNavWindow; + if (window->DockNodeAsHost && window->DockNodeAsHost->TabBar) + if (ImGuiTabItem* tab = TabBarFindMostRecentlySelectedTabForActiveWindow(window->DockNodeAsHost->TabBar)) + return tab->Window; + return window; +} + +void ImGui::NavRestoreLayer(ImGuiNavLayer layer) +{ + ImGuiContext& g = *GImGui; + if (layer == ImGuiNavLayer_Main) + { + ImGuiWindow* prev_nav_window = g.NavWindow; + g.NavWindow = NavRestoreLastChildNavWindow(g.NavWindow); // FIXME-NAV: Should clear ongoing nav requests? + g.NavLastValidSelectionUserData = ImGuiSelectionUserData_Invalid; + if (prev_nav_window) + IMGUI_DEBUG_LOG_FOCUS("[focus] NavRestoreLayer: from \"%s\" to SetNavWindow(\"%s\")\n", prev_nav_window->Name, g.NavWindow->Name); + } + ImGuiWindow* window = g.NavWindow; + if (window->NavLastIds[layer] != 0) + { + SetNavID(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); + } + else + { + g.NavLayer = layer; + NavInitWindow(window, true); + } +} + +void ImGui::NavRestoreHighlightAfterMove() +{ + ImGuiContext& g = *GImGui; + g.NavDisableHighlight = false; + g.NavDisableMouseHover = g.NavMousePosDirty = true; +} + +static inline void ImGui::NavUpdateAnyRequestFlag() +{ + ImGuiContext& g = *GImGui; + g.NavAnyRequest = g.NavMoveScoringItems || g.NavInitRequest || (IMGUI_DEBUG_NAV_SCORING && g.NavWindow != NULL); + if (g.NavAnyRequest) + IM_ASSERT(g.NavWindow != NULL); +} + +// This needs to be called before we submit any widget (aka in or before Begin) +void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) +{ + // FIXME: ChildWindow test here is wrong for docking + ImGuiContext& g = *GImGui; + IM_ASSERT(window == g.NavWindow); + + if (window->Flags & ImGuiWindowFlags_NoNavInputs) + { + g.NavId = 0; + g.NavFocusScopeId = window->NavRootFocusScopeId; + return; + } + + bool init_for_nav = false; + if (window == window->RootWindow || (window->Flags & ImGuiWindowFlags_Popup) || (window->NavLastIds[0] == 0) || force_reinit) + init_for_nav = true; + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from NavInitWindow(), init_for_nav=%d, window=\"%s\", layer=%d\n", init_for_nav, window->Name, g.NavLayer); + if (init_for_nav) + { + SetNavID(0, g.NavLayer, window->NavRootFocusScopeId, ImRect()); + g.NavInitRequest = true; + g.NavInitRequestFromMove = false; + g.NavInitResult.ID = 0; + NavUpdateAnyRequestFlag(); + } + else + { + g.NavId = window->NavLastIds[0]; + g.NavFocusScopeId = window->NavRootFocusScopeId; + } +} + +static ImVec2 ImGui::NavCalcPreferredRefPos() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + if (g.NavDisableHighlight || !g.NavDisableMouseHover || !window) + { + // Mouse (we need a fallback in case the mouse becomes invalid after being used) + // The +1.0f offset when stored by OpenPopupEx() allows reopening this or another popup (same or another mouse button) while not moving the mouse, it is pretty standard. + // In theory we could move that +1.0f offset in OpenPopupEx() + ImVec2 p = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : g.MouseLastValidPos; + return ImVec2(p.x + 1.0f, p.y); + } + else + { + // When navigation is active and mouse is disabled, pick a position around the bottom left of the currently navigated item + // Take account of upcoming scrolling (maybe set mouse pos should be done in EndFrame?) + ImRect rect_rel = WindowRectRelToAbs(window, window->NavRectRel[g.NavLayer]); + if (window->LastFrameActive != g.FrameCount && (window->ScrollTarget.x != FLT_MAX || window->ScrollTarget.y != FLT_MAX)) + { + ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); + rect_rel.Translate(window->Scroll - next_scroll); + } + ImVec2 pos = ImVec2(rect_rel.Min.x + ImMin(g.Style.FramePadding.x * 4, rect_rel.GetWidth()), rect_rel.Max.y - ImMin(g.Style.FramePadding.y, rect_rel.GetHeight())); + ImGuiViewport* viewport = window->Viewport; + return ImTrunc(ImClamp(pos, viewport->Pos, viewport->Pos + viewport->Size)); // ImTrunc() is important because non-integer mouse position application in backend might be lossy and result in undesirable non-zero delta. + } +} + +float ImGui::GetNavTweakPressedAmount(ImGuiAxis axis) +{ + ImGuiContext& g = *GImGui; + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(ImGuiInputFlags_RepeatRateNavTweak, &repeat_delay, &repeat_rate); + + ImGuiKey key_less, key_more; + if (g.NavInputSource == ImGuiInputSource_Gamepad) + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadLeft : ImGuiKey_GamepadDpadUp; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadRight : ImGuiKey_GamepadDpadDown; + } + else + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_LeftArrow : ImGuiKey_UpArrow; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_RightArrow : ImGuiKey_DownArrow; + } + float amount = (float)GetKeyPressedAmount(key_more, repeat_delay, repeat_rate) - (float)GetKeyPressedAmount(key_less, repeat_delay, repeat_rate); + if (amount != 0.0f && IsKeyDown(key_less) && IsKeyDown(key_more)) // Cancel when opposite directions are held, regardless of repeat phase + amount = 0.0f; + return amount; +} + +static void ImGui::NavUpdate() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + io.WantSetMousePos = false; + //if (g.NavScoringDebugCount > 0) IMGUI_DEBUG_LOG_NAV("[nav] NavScoringDebugCount %d for '%s' layer %d (Init:%d, Move:%d)\n", g.NavScoringDebugCount, g.NavWindow ? g.NavWindow->Name : "NULL", g.NavLayer, g.NavInitRequest || g.NavInitResultId != 0, g.NavMoveRequest); + + // Set input source based on which keys are last pressed (as some features differs when used with Gamepad vs Keyboard) + // FIXME-NAV: Now that keys are separated maybe we can get rid of NavInputSource? + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const ImGuiKey nav_gamepad_keys_to_change_source[] = { ImGuiKey_GamepadFaceRight, ImGuiKey_GamepadFaceLeft, ImGuiKey_GamepadFaceUp, ImGuiKey_GamepadFaceDown, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown }; + if (nav_gamepad_active) + for (ImGuiKey key : nav_gamepad_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Gamepad; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const ImGuiKey nav_keyboard_keys_to_change_source[] = { ImGuiKey_Space, ImGuiKey_Enter, ImGuiKey_Escape, ImGuiKey_RightArrow, ImGuiKey_LeftArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow }; + if (nav_keyboard_active) + for (ImGuiKey key : nav_keyboard_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Keyboard; + + // Process navigation init request (select first/default focus) + g.NavJustMovedToId = 0; + if (g.NavInitResult.ID != 0) + NavInitRequestApplyResult(); + g.NavInitRequest = false; + g.NavInitRequestFromMove = false; + g.NavInitResult.ID = 0; + + // Process navigation move request + if (g.NavMoveSubmitted) + NavMoveRequestApplyResult(); + g.NavTabbingCounter = 0; + g.NavMoveSubmitted = g.NavMoveScoringItems = false; + + // Schedule mouse position update (will be done at the bottom of this function, after 1) processing all move requests and 2) updating scrolling) + bool set_mouse_pos = false; + if (g.NavMousePosDirty && g.NavIdIsAlive) + if (!g.NavDisableHighlight && g.NavDisableMouseHover && g.NavWindow) + set_mouse_pos = true; + g.NavMousePosDirty = false; + IM_ASSERT(g.NavLayer == ImGuiNavLayer_Main || g.NavLayer == ImGuiNavLayer_Menu); + + // Store our return window (for returning from Menu Layer to Main Layer) and clear it as soon as we step back in our own Layer 0 + if (g.NavWindow) + NavSaveLastChildNavWindowIntoParent(g.NavWindow); + if (g.NavWindow && g.NavWindow->NavLastChildNavWindow != NULL && g.NavLayer == ImGuiNavLayer_Main) + g.NavWindow->NavLastChildNavWindow = NULL; + + // Update CTRL+TAB and Windowing features (hold Square to move/resize/etc.) + NavUpdateWindowing(); + + // Set output flags for user application + io.NavActive = (nav_keyboard_active || nav_gamepad_active) && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs); + io.NavVisible = (io.NavActive && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL); + + // Process NavCancel input (to close a popup, get back to parent, clear focus) + NavUpdateCancelRequest(); + + // Process manual activation request + g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = 0; + g.NavActivateFlags = ImGuiActivateFlags_None; + if (g.NavId != 0 && !g.NavDisableHighlight && !g.NavWindowingTarget && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) + { + const bool activate_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Space)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadActivate)); + const bool activate_pressed = activate_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Space, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadActivate, false))); + const bool input_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Enter)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadInput)); + const bool input_pressed = input_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Enter, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadInput, false))); + if (g.ActiveId == 0 && activate_pressed) + { + g.NavActivateId = g.NavId; + g.NavActivateFlags = ImGuiActivateFlags_PreferTweak; + } + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && input_pressed) + { + g.NavActivateId = g.NavId; + g.NavActivateFlags = ImGuiActivateFlags_PreferInput; + } + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && (activate_down || input_down)) + g.NavActivateDownId = g.NavId; + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && (activate_pressed || input_pressed)) + g.NavActivatePressedId = g.NavId; + } + if (g.NavWindow && (g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) + g.NavDisableHighlight = true; + if (g.NavActivateId != 0) + IM_ASSERT(g.NavActivateDownId == g.NavActivateId); + + // Process programmatic activation request + // FIXME-NAV: Those should eventually be queued (unlike focus they don't cancel each others) + if (g.NavNextActivateId != 0) + { + g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = g.NavNextActivateId; + g.NavActivateFlags = g.NavNextActivateFlags; + } + g.NavNextActivateId = 0; + + // Process move requests + NavUpdateCreateMoveRequest(); + if (g.NavMoveDir == ImGuiDir_None) + NavUpdateCreateTabbingRequest(); + NavUpdateAnyRequestFlag(); + g.NavIdIsAlive = false; + + // Scrolling + if (g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs) && !g.NavWindowingTarget) + { + // *Fallback* manual-scroll with Nav directional keys when window has no navigable item + ImGuiWindow* window = g.NavWindow; + const float scroll_speed = IM_ROUND(window->CalcFontSize() * 100 * io.DeltaTime); // We need round the scrolling speed because sub-pixel scroll isn't reliably supported. + const ImGuiDir move_dir = g.NavMoveDir; + if (window->DC.NavLayersActiveMask == 0x00 && window->DC.NavWindowHasScrollY && move_dir != ImGuiDir_None) + { + if (move_dir == ImGuiDir_Left || move_dir == ImGuiDir_Right) + SetScrollX(window, ImTrunc(window->Scroll.x + ((move_dir == ImGuiDir_Left) ? -1.0f : +1.0f) * scroll_speed)); + if (move_dir == ImGuiDir_Up || move_dir == ImGuiDir_Down) + SetScrollY(window, ImTrunc(window->Scroll.y + ((move_dir == ImGuiDir_Up) ? -1.0f : +1.0f) * scroll_speed)); + } + + // *Normal* Manual scroll with LStick + // Next movement request will clamp the NavId reference rectangle to the visible area, so navigation will resume within those bounds. + if (nav_gamepad_active) + { + const ImVec2 scroll_dir = GetKeyMagnitude2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + const float tweak_factor = IsKeyDown(ImGuiKey_NavGamepadTweakSlow) ? 1.0f / 10.0f : IsKeyDown(ImGuiKey_NavGamepadTweakFast) ? 10.0f : 1.0f; + if (scroll_dir.x != 0.0f && window->ScrollbarX) + SetScrollX(window, ImTrunc(window->Scroll.x + scroll_dir.x * scroll_speed * tweak_factor)); + if (scroll_dir.y != 0.0f) + SetScrollY(window, ImTrunc(window->Scroll.y + scroll_dir.y * scroll_speed * tweak_factor)); + } + } + + // Always prioritize mouse highlight if navigation is disabled + if (!nav_keyboard_active && !nav_gamepad_active) + { + g.NavDisableHighlight = true; + g.NavDisableMouseHover = set_mouse_pos = false; + } + + // Update mouse position if requested + // (This will take into account the possibility that a Scroll was queued in the window to offset our absolute mouse position before scroll has been applied) + if (set_mouse_pos && (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) && (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos)) + TeleportMousePos(NavCalcPreferredRefPos()); + + // [DEBUG] + g.NavScoringDebugCount = 0; +#if IMGUI_DEBUG_NAV_RECTS + if (ImGuiWindow* debug_window = g.NavWindow) + { + ImDrawList* draw_list = GetForegroundDrawList(debug_window); + int layer = g.NavLayer; /* for (int layer = 0; layer < 2; layer++)*/ { ImRect r = WindowRectRelToAbs(debug_window, debug_window->NavRectRel[layer]); draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 200, 0, 255)); } + //if (1) { ImU32 col = (!debug_window->Hidden) ? IM_COL32(255,0,255,255) : IM_COL32(255,0,0,255); ImVec2 p = NavCalcPreferredRefPos(); char buf[32]; ImFormatString(buf, 32, "%d", g.NavLayer); draw_list->AddCircleFilled(p, 3.0f, col); draw_list->AddText(NULL, 13.0f, p + ImVec2(8,-4), col, buf); } + } +#endif +} + +void ImGui::NavInitRequestApplyResult() +{ + // In very rare cases g.NavWindow may be null (e.g. clearing focus after requesting an init request, which does happen when releasing Alt while clicking on void) + ImGuiContext& g = *GImGui; + if (!g.NavWindow) + return; + + ImGuiNavItemData* result = &g.NavInitResult; + if (g.NavId != result->ID) + { + g.NavJustMovedToId = result->ID; + g.NavJustMovedToFocusScopeId = result->FocusScopeId; + g.NavJustMovedToKeyMods = 0; + } + + // Apply result from previous navigation init request (will typically select the first item, unless SetItemDefaultFocus() has been called) + // FIXME-NAV: On _NavFlattened windows, g.NavWindow will only be updated during subsequent frame. Not a problem currently. + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: ApplyResult: NavID 0x%08X in Layer %d Window \"%s\"\n", result->ID, g.NavLayer, g.NavWindow->Name); + SetNavID(result->ID, g.NavLayer, result->FocusScopeId, result->RectRel); + g.NavIdIsAlive = true; // Mark as alive from previous frame as we got a result + if (result->SelectionUserData != ImGuiSelectionUserData_Invalid) + g.NavLastValidSelectionUserData = result->SelectionUserData; + if (g.NavInitRequestFromMove) + NavRestoreHighlightAfterMove(); +} + +// Bias scoring rect ahead of scoring + update preferred pos (if missing) using source position +static void NavBiasScoringRect(ImRect& r, ImVec2& preferred_pos_rel, ImGuiDir move_dir, ImGuiNavMoveFlags move_flags) +{ + // Bias initial rect + ImGuiContext& g = *GImGui; + const ImVec2 rel_to_abs_offset = g.NavWindow->DC.CursorStartPos; + + // Initialize bias on departure if we don't have any. So mouse-click + arrow will record bias. + // - We default to L/U bias, so moving down from a large source item into several columns will land on left-most column. + // - But each successful move sets new bias on one axis, only cleared when using mouse. + if ((move_flags & ImGuiNavMoveFlags_Forwarded) == 0) + { + if (preferred_pos_rel.x == FLT_MAX) + preferred_pos_rel.x = ImMin(r.Min.x + 1.0f, r.Max.x) - rel_to_abs_offset.x; + if (preferred_pos_rel.y == FLT_MAX) + preferred_pos_rel.y = r.GetCenter().y - rel_to_abs_offset.y; + } + + // Apply general bias on the other axis + if ((move_dir == ImGuiDir_Up || move_dir == ImGuiDir_Down) && preferred_pos_rel.x != FLT_MAX) + r.Min.x = r.Max.x = preferred_pos_rel.x + rel_to_abs_offset.x; + else if ((move_dir == ImGuiDir_Left || move_dir == ImGuiDir_Right) && preferred_pos_rel.y != FLT_MAX) + r.Min.y = r.Max.y = preferred_pos_rel.y + rel_to_abs_offset.y; +} + +void ImGui::NavUpdateCreateMoveRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + ImGuiWindow* window = g.NavWindow; + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + + if (g.NavMoveForwardToNextFrame && window != NULL) + { + // Forwarding previous request (which has been modified, e.g. wrap around menus rewrite the requests with a starting rectangle at the other side of the window) + // (preserve most state, which were already set by the NavMoveRequestForward() function) + IM_ASSERT(g.NavMoveDir != ImGuiDir_None && g.NavMoveClipDir != ImGuiDir_None); + IM_ASSERT(g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded); + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequestForward %d\n", g.NavMoveDir); + } + else + { + // Initiate directional inputs request + g.NavMoveDir = ImGuiDir_None; + g.NavMoveFlags = ImGuiNavMoveFlags_None; + g.NavMoveScrollFlags = ImGuiScrollFlags_None; + if (window && !g.NavWindowingTarget && !(window->Flags & ImGuiWindowFlags_NoNavInputs)) + { + const ImGuiInputFlags repeat_mode = ImGuiInputFlags_Repeat | (ImGuiInputFlags)ImGuiInputFlags_RepeatRateNavMove; + if (!IsActiveIdUsingNavDir(ImGuiDir_Left) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadLeft, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_LeftArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Left; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Right) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadRight, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_RightArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Right; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Up) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadUp, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_UpArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Up; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Down) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadDown, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_DownArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Down; } + } + g.NavMoveClipDir = g.NavMoveDir; + g.NavScoringNoClipRect = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); + } + + // Update PageUp/PageDown/Home/End scroll + // FIXME-NAV: Consider enabling those keys even without the master ImGuiConfigFlags_NavEnableKeyboard flag? + float scoring_rect_offset_y = 0.0f; + if (window && g.NavMoveDir == ImGuiDir_None && nav_keyboard_active) + scoring_rect_offset_y = NavUpdatePageUpPageDown(); + if (scoring_rect_offset_y != 0.0f) + { + g.NavScoringNoClipRect = window->InnerRect; + g.NavScoringNoClipRect.TranslateY(scoring_rect_offset_y); + } + + // [DEBUG] Always send a request when holding CTRL. Hold CTRL + Arrow change the direction. +#if IMGUI_DEBUG_NAV_SCORING + //if (io.KeyCtrl && IsKeyPressed(ImGuiKey_C)) + // g.NavMoveDirForDebug = (ImGuiDir)((g.NavMoveDirForDebug + 1) & 3); + if (io.KeyCtrl) + { + if (g.NavMoveDir == ImGuiDir_None) + g.NavMoveDir = g.NavMoveDirForDebug; + g.NavMoveClipDir = g.NavMoveDir; + g.NavMoveFlags |= ImGuiNavMoveFlags_DebugNoResult; + } +#endif + + // Submit + g.NavMoveForwardToNextFrame = false; + if (g.NavMoveDir != ImGuiDir_None) + NavMoveRequestSubmit(g.NavMoveDir, g.NavMoveClipDir, g.NavMoveFlags, g.NavMoveScrollFlags); + + // Moving with no reference triggers an init request (will be used as a fallback if the direction fails to find a match) + if (g.NavMoveSubmitted && g.NavId == 0) + { + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from move, window \"%s\", layer=%d\n", window ? window->Name : "", g.NavLayer); + g.NavInitRequest = g.NavInitRequestFromMove = true; + g.NavInitResult.ID = 0; + g.NavDisableHighlight = false; + } + + // When using gamepad, we project the reference nav bounding box into window visible area. + // This is to allow resuming navigation inside the visible area after doing a large amount of scrolling, + // since with gamepad all movements are relative (can't focus a visible object like we can with the mouse). + if (g.NavMoveSubmitted && g.NavInputSource == ImGuiInputSource_Gamepad && g.NavLayer == ImGuiNavLayer_Main && window != NULL)// && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded)) + { + bool clamp_x = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_WrapX)) == 0; + bool clamp_y = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopY | ImGuiNavMoveFlags_WrapY)) == 0; + ImRect inner_rect_rel = WindowRectAbsToRel(window, ImRect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1))); + + // Take account of changing scroll to handle triggering a new move request on a scrolling frame. (#6171) + // Otherwise 'inner_rect_rel' would be off on the move result frame. + inner_rect_rel.Translate(CalcNextScrollFromScrollTargetAndClamp(window) - window->Scroll); + + if ((clamp_x || clamp_y) && !inner_rect_rel.Contains(window->NavRectRel[g.NavLayer])) + { + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: clamp NavRectRel for gamepad move\n"); + float pad_x = ImMin(inner_rect_rel.GetWidth(), window->CalcFontSize() * 0.5f); + float pad_y = ImMin(inner_rect_rel.GetHeight(), window->CalcFontSize() * 0.5f); // Terrible approximation for the intent of starting navigation from first fully visible item + inner_rect_rel.Min.x = clamp_x ? (inner_rect_rel.Min.x + pad_x) : -FLT_MAX; + inner_rect_rel.Max.x = clamp_x ? (inner_rect_rel.Max.x - pad_x) : +FLT_MAX; + inner_rect_rel.Min.y = clamp_y ? (inner_rect_rel.Min.y + pad_y) : -FLT_MAX; + inner_rect_rel.Max.y = clamp_y ? (inner_rect_rel.Max.y - pad_y) : +FLT_MAX; + window->NavRectRel[g.NavLayer].ClipWithFull(inner_rect_rel); + g.NavId = 0; + } + } + + // For scoring we use a single segment on the left side our current item bounding box (not touching the edge to avoid box overlap with zero-spaced items) + ImRect scoring_rect; + if (window != NULL) + { + ImRect nav_rect_rel = !window->NavRectRel[g.NavLayer].IsInverted() ? window->NavRectRel[g.NavLayer] : ImRect(0, 0, 0, 0); + scoring_rect = WindowRectRelToAbs(window, nav_rect_rel); + scoring_rect.TranslateY(scoring_rect_offset_y); + if (g.NavMoveSubmitted) + NavBiasScoringRect(scoring_rect, window->RootWindowForNav->NavPreferredScoringPosRel[g.NavLayer], g.NavMoveDir, g.NavMoveFlags); + IM_ASSERT(!scoring_rect.IsInverted()); // Ensure we have a non-inverted bounding box here will allow us to remove extraneous ImFabs() calls in NavScoreItem(). + //GetForegroundDrawList()->AddRect(scoring_rect.Min, scoring_rect.Max, IM_COL32(255,200,0,255)); // [DEBUG] + //if (!g.NavScoringNoClipRect.IsInverted()) { GetForegroundDrawList()->AddRect(g.NavScoringNoClipRect.Min, g.NavScoringNoClipRect.Max, IM_COL32(255, 200, 0, 255)); } // [DEBUG] + } + g.NavScoringRect = scoring_rect; + g.NavScoringNoClipRect.Add(scoring_rect); +} + +void ImGui::NavUpdateCreateTabbingRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + IM_ASSERT(g.NavMoveDir == ImGuiDir_None); + if (window == NULL || g.NavWindowingTarget != NULL || (window->Flags & ImGuiWindowFlags_NoNavInputs)) + return; + + const bool tab_pressed = IsKeyPressed(ImGuiKey_Tab, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat) && !g.IO.KeyCtrl && !g.IO.KeyAlt; + if (!tab_pressed) + return; + + // Initiate tabbing request + // (this is ALWAYS ENABLED, regardless of ImGuiConfigFlags_NavEnableKeyboard flag!) + // See NavProcessItemForTabbingRequest() for a description of the various forward/backward tabbing cases with and without wrapping. + const bool nav_keyboard_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + if (nav_keyboard_active) + g.NavTabbingDir = g.IO.KeyShift ? -1 : (g.NavDisableHighlight == true && g.ActiveId == 0) ? 0 : +1; + else + g.NavTabbingDir = g.IO.KeyShift ? -1 : (g.ActiveId == 0) ? 0 : +1; + ImGuiNavMoveFlags move_flags = ImGuiNavMoveFlags_IsTabbing | ImGuiNavMoveFlags_Activate; + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; + ImGuiDir clip_dir = (g.NavTabbingDir < 0) ? ImGuiDir_Up : ImGuiDir_Down; + NavMoveRequestSubmit(ImGuiDir_None, clip_dir, move_flags, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. + g.NavTabbingCounter = -1; +} + +// Apply result from previous frame navigation directional move request. Always called from NavUpdate() +void ImGui::NavMoveRequestApplyResult() +{ + ImGuiContext& g = *GImGui; +#if IMGUI_DEBUG_NAV_SCORING + if (g.NavMoveFlags & ImGuiNavMoveFlags_DebugNoResult) // [DEBUG] Scoring all items in NavWindow at all times + return; +#endif + + // Select which result to use + ImGuiNavItemData* result = (g.NavMoveResultLocal.ID != 0) ? &g.NavMoveResultLocal : (g.NavMoveResultOther.ID != 0) ? &g.NavMoveResultOther : NULL; + + // Tabbing forward wrap + if ((g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) && result == NULL) + if ((g.NavTabbingCounter == 1 || g.NavTabbingDir == 0) && g.NavTabbingResultFirst.ID) + result = &g.NavTabbingResultFirst; + + // In a situation when there are no results but NavId != 0, re-enable the Navigation highlight (because g.NavId is not considered as a possible result) + const ImGuiAxis axis = (g.NavMoveDir == ImGuiDir_Up || g.NavMoveDir == ImGuiDir_Down) ? ImGuiAxis_Y : ImGuiAxis_X; + if (result == NULL) + { + if (g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) + g.NavMoveFlags |= ImGuiNavMoveFlags_NoSetNavHighlight; + if (g.NavId != 0 && (g.NavMoveFlags & ImGuiNavMoveFlags_NoSetNavHighlight) == 0) + NavRestoreHighlightAfterMove(); + NavClearPreferredPosForAxis(axis); // On a failed move, clear preferred pos for this axis. + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveSubmitted but not led to a result!\n"); + return; + } + + // PageUp/PageDown behavior first jumps to the bottom/top mostly visible item, _otherwise_ use the result from the previous/next page. + if (g.NavMoveFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) + if (g.NavMoveResultLocalVisible.ID != 0 && g.NavMoveResultLocalVisible.ID != g.NavId) + result = &g.NavMoveResultLocalVisible; + + // Maybe entering a flattened child from the outside? In this case solve the tie using the regular scoring rules. + if (result != &g.NavMoveResultOther && g.NavMoveResultOther.ID != 0 && g.NavMoveResultOther.Window->ParentWindow == g.NavWindow) + if ((g.NavMoveResultOther.DistBox < result->DistBox) || (g.NavMoveResultOther.DistBox == result->DistBox && g.NavMoveResultOther.DistCenter < result->DistCenter)) + result = &g.NavMoveResultOther; + IM_ASSERT(g.NavWindow && result->Window); + + // Scroll to keep newly navigated item fully into view. + if (g.NavLayer == ImGuiNavLayer_Main) + { + ImRect rect_abs = WindowRectRelToAbs(result->Window, result->RectRel); + ScrollToRectEx(result->Window, rect_abs, g.NavMoveScrollFlags); + + if (g.NavMoveFlags & ImGuiNavMoveFlags_ScrollToEdgeY) + { + // FIXME: Should remove this? Or make more precise: use ScrollToRectEx() with edge? + float scroll_target = (g.NavMoveDir == ImGuiDir_Up) ? result->Window->ScrollMax.y : 0.0f; + SetScrollY(result->Window, scroll_target); + } + } + + if (g.NavWindow != result->Window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] NavMoveRequest: SetNavWindow(\"%s\")\n", result->Window->Name); + g.NavWindow = result->Window; + g.NavLastValidSelectionUserData = ImGuiSelectionUserData_Invalid; + } + if (g.ActiveId != result->ID) + ClearActiveID(); + + // Don't set NavJustMovedToId if just landed on the same spot (which may happen with ImGuiNavMoveFlags_AllowCurrentNavId) + // PageUp/PageDown however sets always set NavJustMovedTo (vs Home/End which doesn't) mimicking Windows behavior. + if ((g.NavId != result->ID || (g.NavMoveFlags & ImGuiNavMoveFlags_IsPageMove)) && (g.NavMoveFlags & ImGuiNavMoveFlags_NoSelect) == 0) + { + g.NavJustMovedToId = result->ID; + g.NavJustMovedToFocusScopeId = result->FocusScopeId; + g.NavJustMovedToKeyMods = g.NavMoveKeyMods; + } + + // Apply new NavID/Focus + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: result NavID 0x%08X in Layer %d Window \"%s\"\n", result->ID, g.NavLayer, g.NavWindow->Name); + ImVec2 preferred_scoring_pos_rel = g.NavWindow->RootWindowForNav->NavPreferredScoringPosRel[g.NavLayer]; + SetNavID(result->ID, g.NavLayer, result->FocusScopeId, result->RectRel); + if (result->SelectionUserData != ImGuiSelectionUserData_Invalid) + g.NavLastValidSelectionUserData = result->SelectionUserData; + + // Restore last preferred position for current axis + // (storing in RootWindowForNav-> as the info is desirable at the beginning of a Move Request. In theory all storage should use RootWindowForNav..) + if ((g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) == 0) + { + preferred_scoring_pos_rel[axis] = result->RectRel.GetCenter()[axis]; + g.NavWindow->RootWindowForNav->NavPreferredScoringPosRel[g.NavLayer] = preferred_scoring_pos_rel; + } + + // Tabbing: Activates Inputable, otherwise only Focus + if ((g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) && (result->InFlags & ImGuiItemFlags_Inputable) == 0) + g.NavMoveFlags &= ~ImGuiNavMoveFlags_Activate; + + // Activate + if (g.NavMoveFlags & ImGuiNavMoveFlags_Activate) + { + g.NavNextActivateId = result->ID; + g.NavNextActivateFlags = ImGuiActivateFlags_None; + if (g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) + g.NavNextActivateFlags |= ImGuiActivateFlags_PreferInput | ImGuiActivateFlags_TryToPreserveState; + } + + // Enable nav highlight + if ((g.NavMoveFlags & ImGuiNavMoveFlags_NoSetNavHighlight) == 0) + NavRestoreHighlightAfterMove(); +} + +// Process NavCancel input (to close a popup, get back to parent, clear focus) +// FIXME: In order to support e.g. Escape to clear a selection we'll need: +// - either to store the equivalent of ActiveIdUsingKeyInputMask for a FocusScope and test for it. +// - either to move most/all of those tests to the epilogue/end functions of the scope they are dealing with (e.g. exit child window in EndChild()) or in EndFrame(), to allow an earlier intercept +static void ImGui::NavUpdateCancelRequest() +{ + ImGuiContext& g = *GImGui; + const bool nav_gamepad_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (g.IO.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + if (!(nav_keyboard_active && IsKeyPressed(ImGuiKey_Escape, ImGuiKeyOwner_None)) && !(nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadCancel, ImGuiKeyOwner_None))) + return; + + IMGUI_DEBUG_LOG_NAV("[nav] NavUpdateCancelRequest()\n"); + if (g.ActiveId != 0) + { + ClearActiveID(); + } + else if (g.NavLayer != ImGuiNavLayer_Main) + { + // Leave the "menu" layer + NavRestoreLayer(ImGuiNavLayer_Main); + NavRestoreHighlightAfterMove(); + } + else if (g.NavWindow && g.NavWindow != g.NavWindow->RootWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_Popup) && g.NavWindow->ParentWindow) + { + // Exit child window + ImGuiWindow* child_window = g.NavWindow; + ImGuiWindow* parent_window = g.NavWindow->ParentWindow; + IM_ASSERT(child_window->ChildId != 0); + ImRect child_rect = child_window->Rect(); + FocusWindow(parent_window); + SetNavID(child_window->ChildId, ImGuiNavLayer_Main, 0, WindowRectAbsToRel(parent_window, child_rect)); + NavRestoreHighlightAfterMove(); + } + else if (g.OpenPopupStack.Size > 0 && g.OpenPopupStack.back().Window != NULL && !(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal)) + { + // Close open popup/menu + ClosePopupToLevel(g.OpenPopupStack.Size - 1, true); + } + else + { + // Clear NavLastId for popups but keep it for regular child window so we can leave one and come back where we were + if (g.NavWindow && ((g.NavWindow->Flags & ImGuiWindowFlags_Popup) || !(g.NavWindow->Flags & ImGuiWindowFlags_ChildWindow))) + g.NavWindow->NavLastIds[0] = 0; + g.NavId = 0; + } +} + +// Handle PageUp/PageDown/Home/End keys +// Called from NavUpdateCreateMoveRequest() which will use our output to create a move request +// FIXME-NAV: This doesn't work properly with NavFlattened siblings as we use NavWindow rectangle for reference +// FIXME-NAV: how to get Home/End to aim at the beginning/end of a 2D grid? +static float ImGui::NavUpdatePageUpPageDown() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + if ((window->Flags & ImGuiWindowFlags_NoNavInputs) || g.NavWindowingTarget != NULL) + return 0.0f; + + const bool page_up_held = IsKeyDown(ImGuiKey_PageUp, ImGuiKeyOwner_None); + const bool page_down_held = IsKeyDown(ImGuiKey_PageDown, ImGuiKeyOwner_None); + const bool home_pressed = IsKeyPressed(ImGuiKey_Home, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); + const bool end_pressed = IsKeyPressed(ImGuiKey_End, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); + if (page_up_held == page_down_held && home_pressed == end_pressed) // Proceed if either (not both) are pressed, otherwise early out + return 0.0f; + + if (g.NavLayer != ImGuiNavLayer_Main) + NavRestoreLayer(ImGuiNavLayer_Main); + + if (window->DC.NavLayersActiveMask == 0x00 && window->DC.NavWindowHasScrollY) + { + // Fallback manual-scroll when window has no navigable item + if (IsKeyPressed(ImGuiKey_PageUp, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) + SetScrollY(window, window->Scroll.y - window->InnerRect.GetHeight()); + else if (IsKeyPressed(ImGuiKey_PageDown, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) + SetScrollY(window, window->Scroll.y + window->InnerRect.GetHeight()); + else if (home_pressed) + SetScrollY(window, 0.0f); + else if (end_pressed) + SetScrollY(window, window->ScrollMax.y); + } + else + { + ImRect& nav_rect_rel = window->NavRectRel[g.NavLayer]; + const float page_offset_y = ImMax(0.0f, window->InnerRect.GetHeight() - window->CalcFontSize() * 1.0f + nav_rect_rel.GetHeight()); + float nav_scoring_rect_offset_y = 0.0f; + if (IsKeyPressed(ImGuiKey_PageUp, true)) + { + nav_scoring_rect_offset_y = -page_offset_y; + g.NavMoveDir = ImGuiDir_Down; // Because our scoring rect is offset up, we request the down direction (so we can always land on the last item) + g.NavMoveClipDir = ImGuiDir_Up; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet | ImGuiNavMoveFlags_IsPageMove; + } + else if (IsKeyPressed(ImGuiKey_PageDown, true)) + { + nav_scoring_rect_offset_y = +page_offset_y; + g.NavMoveDir = ImGuiDir_Up; // Because our scoring rect is offset down, we request the up direction (so we can always land on the last item) + g.NavMoveClipDir = ImGuiDir_Down; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet | ImGuiNavMoveFlags_IsPageMove; + } + else if (home_pressed) + { + // FIXME-NAV: handling of Home/End is assuming that the top/bottom most item will be visible with Scroll.y == 0/ScrollMax.y + // Scrolling will be handled via the ImGuiNavMoveFlags_ScrollToEdgeY flag, we don't scroll immediately to avoid scrolling happening before nav result. + // Preserve current horizontal position if we have any. + nav_rect_rel.Min.y = nav_rect_rel.Max.y = 0.0f; + if (nav_rect_rel.IsInverted()) + nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; + g.NavMoveDir = ImGuiDir_Down; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdgeY; + // FIXME-NAV: MoveClipDir left to _None, intentional? + } + else if (end_pressed) + { + nav_rect_rel.Min.y = nav_rect_rel.Max.y = window->ContentSize.y; + if (nav_rect_rel.IsInverted()) + nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; + g.NavMoveDir = ImGuiDir_Up; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdgeY; + // FIXME-NAV: MoveClipDir left to _None, intentional? + } + return nav_scoring_rect_offset_y; + } + return 0.0f; +} + +static void ImGui::NavEndFrame() +{ + ImGuiContext& g = *GImGui; + + // Show CTRL+TAB list window + if (g.NavWindowingTarget != NULL) + NavUpdateWindowingOverlay(); + + // Perform wrap-around in menus + // FIXME-NAV: Wrap may need to apply a weight bias on the other axis. e.g. 4x4 grid with 2 last items missing on last item won't handle LoopY/WrapY correctly. + // FIXME-NAV: Wrap (not Loop) support could be handled by the scoring function and then WrapX would function without an extra frame. + if (g.NavWindow && NavMoveRequestButNoResultYet() && (g.NavMoveFlags & ImGuiNavMoveFlags_WrapMask_) && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded) == 0) + NavUpdateCreateWrappingRequest(); +} + +static void ImGui::NavUpdateCreateWrappingRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + + bool do_forward = false; + ImRect bb_rel = window->NavRectRel[g.NavLayer]; + ImGuiDir clip_dir = g.NavMoveDir; + + const ImGuiNavMoveFlags move_flags = g.NavMoveFlags; + //const ImGuiAxis move_axis = (g.NavMoveDir == ImGuiDir_Up || g.NavMoveDir == ImGuiDir_Down) ? ImGuiAxis_Y : ImGuiAxis_X; + if (g.NavMoveDir == ImGuiDir_Left && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) + { + bb_rel.Min.x = bb_rel.Max.x = window->ContentSize.x + window->WindowPadding.x; + if (move_flags & ImGuiNavMoveFlags_WrapX) + { + bb_rel.TranslateY(-bb_rel.GetHeight()); // Previous row + clip_dir = ImGuiDir_Up; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Right && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) + { + bb_rel.Min.x = bb_rel.Max.x = -window->WindowPadding.x; + if (move_flags & ImGuiNavMoveFlags_WrapX) + { + bb_rel.TranslateY(+bb_rel.GetHeight()); // Next row + clip_dir = ImGuiDir_Down; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Up && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) + { + bb_rel.Min.y = bb_rel.Max.y = window->ContentSize.y + window->WindowPadding.y; + if (move_flags & ImGuiNavMoveFlags_WrapY) + { + bb_rel.TranslateX(-bb_rel.GetWidth()); // Previous column + clip_dir = ImGuiDir_Left; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Down && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) + { + bb_rel.Min.y = bb_rel.Max.y = -window->WindowPadding.y; + if (move_flags & ImGuiNavMoveFlags_WrapY) + { + bb_rel.TranslateX(+bb_rel.GetWidth()); // Next column + clip_dir = ImGuiDir_Right; + } + do_forward = true; + } + if (!do_forward) + return; + window->NavRectRel[g.NavLayer] = bb_rel; + NavClearPreferredPosForAxis(ImGuiAxis_X); + NavClearPreferredPosForAxis(ImGuiAxis_Y); + NavMoveRequestForward(g.NavMoveDir, clip_dir, move_flags, g.NavMoveScrollFlags); +} + +static int ImGui::FindWindowFocusIndex(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_UNUSED(g); + int order = window->FocusOrder; + IM_ASSERT(window->RootWindow == window); // No child window (not testing _ChildWindow because of docking) + IM_ASSERT(g.WindowsFocusOrder[order] == window); + return order; +} + +static ImGuiWindow* FindWindowNavFocusable(int i_start, int i_stop, int dir) // FIXME-OPT O(N) +{ + ImGuiContext& g = *GImGui; + for (int i = i_start; i >= 0 && i < g.WindowsFocusOrder.Size && i != i_stop; i += dir) + if (ImGui::IsWindowNavFocusable(g.WindowsFocusOrder[i])) + return g.WindowsFocusOrder[i]; + return NULL; +} + +static void NavUpdateWindowingHighlightWindow(int focus_change_dir) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindowingTarget); + if (g.NavWindowingTarget->Flags & ImGuiWindowFlags_Modal) + return; + + const int i_current = ImGui::FindWindowFocusIndex(g.NavWindowingTarget); + ImGuiWindow* window_target = FindWindowNavFocusable(i_current + focus_change_dir, -INT_MAX, focus_change_dir); + if (!window_target) + window_target = FindWindowNavFocusable((focus_change_dir < 0) ? (g.WindowsFocusOrder.Size - 1) : 0, i_current, focus_change_dir); + if (window_target) // Don't reset windowing target if there's a single window in the list + { + g.NavWindowingTarget = g.NavWindowingTargetAnim = window_target; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); + } + g.NavWindowingToggleLayer = false; +} + +// Windowing management mode +// Keyboard: CTRL+Tab (change focus/move/resize), Alt (toggle menu layer) +// Gamepad: Hold Menu/Square (change focus/move/resize), Tap Menu/Square (toggle menu layer) +static void ImGui::NavUpdateWindowing() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + ImGuiWindow* apply_focus_window = NULL; + bool apply_toggle_layer = false; + + ImGuiWindow* modal_window = GetTopMostPopupModal(); + bool allow_windowing = (modal_window == NULL); // FIXME: This prevent CTRL+TAB from being usable with windows that are inside the Begin-stack of that modal. + if (!allow_windowing) + g.NavWindowingTarget = NULL; + + // Fade out + if (g.NavWindowingTargetAnim && g.NavWindowingTarget == NULL) + { + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha - io.DeltaTime * 10.0f, 0.0f); + if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) + g.NavWindowingTargetAnim = NULL; + } + + // Start CTRL+Tab or Square+L/R window selection + const ImGuiID owner_id = ImHashStr("###NavUpdateWindowing"); + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const bool keyboard_next_window = allow_windowing && g.ConfigNavWindowingKeyNext && Shortcut(g.ConfigNavWindowingKeyNext, owner_id, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool keyboard_prev_window = allow_windowing && g.ConfigNavWindowingKeyPrev && Shortcut(g.ConfigNavWindowingKeyPrev, owner_id, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool start_windowing_with_gamepad = allow_windowing && nav_gamepad_active && !g.NavWindowingTarget && IsKeyPressed(ImGuiKey_NavGamepadMenu, 0, ImGuiInputFlags_None); + const bool start_windowing_with_keyboard = allow_windowing && !g.NavWindowingTarget && (keyboard_next_window || keyboard_prev_window); // Note: enabled even without NavEnableKeyboard! + if (start_windowing_with_gamepad || start_windowing_with_keyboard) + if (ImGuiWindow* window = g.NavWindow ? g.NavWindow : FindWindowNavFocusable(g.WindowsFocusOrder.Size - 1, -INT_MAX, -1)) + { + g.NavWindowingTarget = g.NavWindowingTargetAnim = window->RootWindow; + g.NavWindowingTimer = g.NavWindowingHighlightAlpha = 0.0f; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); + g.NavWindowingToggleLayer = start_windowing_with_gamepad ? true : false; // Gamepad starts toggling layer + g.NavInputSource = start_windowing_with_keyboard ? ImGuiInputSource_Keyboard : ImGuiInputSource_Gamepad; + + // Register ownership of our mods. Using ImGuiInputFlags_RouteGlobalHigh in the Shortcut() calls instead would probably be correct but may have more side-effects. + if (keyboard_next_window || keyboard_prev_window) + SetKeyOwnersForKeyChord((g.ConfigNavWindowingKeyNext | g.ConfigNavWindowingKeyPrev) & ImGuiMod_Mask_, owner_id); + } + + // Gamepad update + g.NavWindowingTimer += io.DeltaTime; + if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_Gamepad) + { + // Highlight only appears after a brief time holding the button, so that a fast tap on PadMenu (to toggle NavLayer) doesn't add visual noise + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); + + // Select window to focus + const int focus_change_dir = (int)IsKeyPressed(ImGuiKey_GamepadL1) - (int)IsKeyPressed(ImGuiKey_GamepadR1); + if (focus_change_dir != 0) + { + NavUpdateWindowingHighlightWindow(focus_change_dir); + g.NavWindowingHighlightAlpha = 1.0f; + } + + // Single press toggles NavLayer, long press with L/R apply actual focus on release (until then the window was merely rendered top-most) + if (!IsKeyDown(ImGuiKey_NavGamepadMenu)) + { + g.NavWindowingToggleLayer &= (g.NavWindowingHighlightAlpha < 1.0f); // Once button was held long enough we don't consider it a tap-to-toggle-layer press anymore. + if (g.NavWindowingToggleLayer && g.NavWindow) + apply_toggle_layer = true; + else if (!g.NavWindowingToggleLayer) + apply_focus_window = g.NavWindowingTarget; + g.NavWindowingTarget = NULL; + } + } + + // Keyboard: Focus + if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_Keyboard) + { + // Visuals only appears after a brief time after pressing TAB the first time, so that a fast CTRL+TAB doesn't add visual noise + ImGuiKeyChord shared_mods = ((g.ConfigNavWindowingKeyNext ? g.ConfigNavWindowingKeyNext : ImGuiMod_Mask_) & (g.ConfigNavWindowingKeyPrev ? g.ConfigNavWindowingKeyPrev : ImGuiMod_Mask_)) & ImGuiMod_Mask_; + IM_ASSERT(shared_mods != 0); // Next/Prev shortcut currently needs a shared modifier to "hold", otherwise Prev actions would keep cycling between two windows. + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); // 1.0f + if (keyboard_next_window || keyboard_prev_window) + NavUpdateWindowingHighlightWindow(keyboard_next_window ? -1 : +1); + else if ((io.KeyMods & shared_mods) != shared_mods) + apply_focus_window = g.NavWindowingTarget; + } + + // Keyboard: Press and Release ALT to toggle menu layer + // - Testing that only Alt is tested prevents Alt+Shift or AltGR from toggling menu layer. + // - AltGR is normally Alt+Ctrl but we can't reliably detect it (not all backends/systems/layout emit it as Alt+Ctrl). But even on keyboards without AltGR we don't want Alt+Ctrl to open menu anyway. + if (nav_keyboard_active && IsKeyPressed(ImGuiMod_Alt, ImGuiKeyOwner_None)) + { + g.NavWindowingToggleLayer = true; + g.NavInputSource = ImGuiInputSource_Keyboard; + } + if (g.NavWindowingToggleLayer && g.NavInputSource == ImGuiInputSource_Keyboard) + { + // We cancel toggling nav layer when any text has been typed (generally while holding Alt). (See #370) + // We cancel toggling nav layer when other modifiers are pressed. (See #4439) + // We cancel toggling nav layer if an owner has claimed the key. + if (io.InputQueueCharacters.Size > 0 || io.KeyCtrl || io.KeyShift || io.KeySuper || TestKeyOwner(ImGuiMod_Alt, ImGuiKeyOwner_None) == false) + g.NavWindowingToggleLayer = false; + + // Apply layer toggle on release + // Important: as before version <18314 we lacked an explicit IO event for focus gain/loss, we also compare mouse validity to detect old backends clearing mouse pos on focus loss. + if (IsKeyReleased(ImGuiMod_Alt) && g.NavWindowingToggleLayer) + if (g.ActiveId == 0 || g.ActiveIdAllowOverlap) + if (IsMousePosValid(&io.MousePos) == IsMousePosValid(&io.MousePosPrev)) + apply_toggle_layer = true; + if (!IsKeyDown(ImGuiMod_Alt)) + g.NavWindowingToggleLayer = false; + } + + // Move window + if (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoMove)) + { + ImVec2 nav_move_dir; + if (g.NavInputSource == ImGuiInputSource_Keyboard && !io.KeyShift) + nav_move_dir = GetKeyMagnitude2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); + if (g.NavInputSource == ImGuiInputSource_Gamepad) + nav_move_dir = GetKeyMagnitude2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + if (nav_move_dir.x != 0.0f || nav_move_dir.y != 0.0f) + { + const float NAV_MOVE_SPEED = 800.0f; + const float move_step = NAV_MOVE_SPEED * io.DeltaTime * ImMin(io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaPos += nav_move_dir * move_step; + g.NavDisableMouseHover = true; + ImVec2 accum_floored = ImTrunc(g.NavWindowingAccumDeltaPos); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + ImGuiWindow* moving_window = g.NavWindowingTarget->RootWindowDockTree; + SetWindowPos(moving_window, moving_window->Pos + accum_floored, ImGuiCond_Always); + g.NavWindowingAccumDeltaPos -= accum_floored; + } + } + } + + // Apply final focus + if (apply_focus_window && (g.NavWindow == NULL || apply_focus_window != g.NavWindow->RootWindow)) + { + // FIXME: Many actions here could be part of a higher-level/reused function. Why aren't they in FocusWindow() + // Investigate for each of them: ClearActiveID(), NavRestoreHighlightAfterMove(), NavRestoreLastChildNavWindow(), ClosePopupsOverWindow(), NavInitWindow() + ImGuiViewport* previous_viewport = g.NavWindow ? g.NavWindow->Viewport : NULL; + ClearActiveID(); + NavRestoreHighlightAfterMove(); + ClosePopupsOverWindow(apply_focus_window, false); + FocusWindow(apply_focus_window, ImGuiFocusRequestFlags_RestoreFocusedChild); + apply_focus_window = g.NavWindow; + if (apply_focus_window->NavLastIds[0] == 0) + NavInitWindow(apply_focus_window, false); + + // If the window has ONLY a menu layer (no main layer), select it directly + // Use NavLayersActiveMaskNext since windows didn't have a chance to be Begin()-ed on this frame, + // so CTRL+Tab where the keys are only held for 1 frame will be able to use correct layers mask since + // the target window as already been previewed once. + // FIXME-NAV: This should be done in NavInit.. or in FocusWindow... However in both of those cases, + // we won't have a guarantee that windows has been visible before and therefore NavLayersActiveMask* + // won't be valid. + if (apply_focus_window->DC.NavLayersActiveMaskNext == (1 << ImGuiNavLayer_Menu)) + g.NavLayer = ImGuiNavLayer_Menu; + + // Request OS level focus + if (apply_focus_window->Viewport != previous_viewport && g.PlatformIO.Platform_SetWindowFocus) + g.PlatformIO.Platform_SetWindowFocus(apply_focus_window->Viewport); + } + if (apply_focus_window) + g.NavWindowingTarget = NULL; + + // Apply menu/layer toggle + if (apply_toggle_layer && g.NavWindow) + { + ClearActiveID(); + + // Move to parent menu if necessary + ImGuiWindow* new_nav_window = g.NavWindow; + while (new_nav_window->ParentWindow + && (new_nav_window->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) == 0 + && (new_nav_window->Flags & ImGuiWindowFlags_ChildWindow) != 0 + && (new_nav_window->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) + new_nav_window = new_nav_window->ParentWindow; + if (new_nav_window != g.NavWindow) + { + ImGuiWindow* old_nav_window = g.NavWindow; + FocusWindow(new_nav_window); + new_nav_window->NavLastChildNavWindow = old_nav_window; + } + + // Toggle layer + const ImGuiNavLayer new_nav_layer = (g.NavWindow->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) ? (ImGuiNavLayer)((int)g.NavLayer ^ 1) : ImGuiNavLayer_Main; + if (new_nav_layer != g.NavLayer) + { + // Reinitialize navigation when entering menu bar with the Alt key (FIXME: could be a properly of the layer?) + const bool preserve_layer_1_nav_id = (new_nav_window->DockNodeAsHost != NULL); + if (new_nav_layer == ImGuiNavLayer_Menu && !preserve_layer_1_nav_id) + g.NavWindow->NavLastIds[new_nav_layer] = 0; + NavRestoreLayer(new_nav_layer); + NavRestoreHighlightAfterMove(); + } + } +} + +// Window has already passed the IsWindowNavFocusable() +static const char* GetFallbackWindowNameForWindowingList(ImGuiWindow* window) +{ + if (window->Flags & ImGuiWindowFlags_Popup) + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingPopup); + if ((window->Flags & ImGuiWindowFlags_MenuBar) && strcmp(window->Name, "##MainMenuBar") == 0) + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingMainMenuBar); + if (window->DockNodeAsHost) + return "(Dock node)"; // Not normally shown to user. + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingUntitled); +} + +// Overlay displayed when using CTRL+TAB. Called by EndFrame(). +void ImGui::NavUpdateWindowingOverlay() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindowingTarget != NULL); + + if (g.NavWindowingTimer < NAV_WINDOWING_LIST_APPEAR_DELAY) + return; + + if (g.NavWindowingListWindow == NULL) + g.NavWindowingListWindow = FindWindowByName("###NavWindowingList"); + const ImGuiViewport* viewport = /*g.NavWindow ? g.NavWindow->Viewport :*/ GetMainViewport(); + SetNextWindowSizeConstraints(ImVec2(viewport->Size.x * 0.20f, viewport->Size.y * 0.20f), ImVec2(FLT_MAX, FLT_MAX)); + SetNextWindowPos(viewport->GetCenter(), ImGuiCond_Always, ImVec2(0.5f, 0.5f)); + PushStyleVar(ImGuiStyleVar_WindowPadding, g.Style.WindowPadding * 2.0f); + Begin("###NavWindowingList", NULL, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings); + for (int n = g.WindowsFocusOrder.Size - 1; n >= 0; n--) + { + ImGuiWindow* window = g.WindowsFocusOrder[n]; + IM_ASSERT(window != NULL); // Fix static analyzers + if (!IsWindowNavFocusable(window)) + continue; + const char* label = window->Name; + if (label == FindRenderedTextEnd(label)) + label = GetFallbackWindowNameForWindowingList(window); + Selectable(label, g.NavWindowingTarget == window); + } + End(); + PopStyleVar(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] DRAG AND DROP +//----------------------------------------------------------------------------- + +bool ImGui::IsDragDropActive() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive; +} + +void ImGui::ClearDragDrop() +{ + ImGuiContext& g = *GImGui; + g.DragDropActive = false; + g.DragDropPayload.Clear(); + g.DragDropAcceptFlags = ImGuiDragDropFlags_None; + g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; + g.DragDropAcceptIdCurrRectSurface = FLT_MAX; + g.DragDropAcceptFrameCount = -1; + + g.DragDropPayloadBufHeap.clear(); + memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); +} + +bool ImGui::BeginTooltipHidden() +{ + ImGuiContext& g = *GImGui; + bool ret = Begin("##Tooltip_Hidden", NULL, ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize); + SetWindowHiddendAndSkipItemsForCurrentFrame(g.CurrentWindow); + return ret; +} + +// When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() +// If the item has an identifier: +// - This assume/require the item to be activated (typically via ButtonBehavior). +// - Therefore if you want to use this with a mouse button other than left mouse button, it is up to the item itself to activate with another button. +// - We then pull and use the mouse button that was used to activate the item and use it to carry on the drag. +// If the item has no identifier: +// - Currently always assume left mouse button. +bool ImGui::BeginDragDropSource(ImGuiDragDropFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // FIXME-DRAGDROP: While in the common-most "drag from non-zero active id" case we can tell the mouse button, + // in both SourceExtern and id==0 cases we may requires something else (explicit flags or some heuristic). + ImGuiMouseButton mouse_button = ImGuiMouseButton_Left; + + bool source_drag_active = false; + ImGuiID source_id = 0; + ImGuiID source_parent_id = 0; + if (!(flags & ImGuiDragDropFlags_SourceExtern)) + { + source_id = g.LastItemData.ID; + if (source_id != 0) + { + // Common path: items with ID + if (g.ActiveId != source_id) + return false; + if (g.ActiveIdMouseButton != -1) + mouse_button = g.ActiveIdMouseButton; + if (g.IO.MouseDown[mouse_button] == false || window->SkipItems) + return false; + g.ActiveIdAllowOverlap = false; + } + else + { + // Uncommon path: items without ID + if (g.IO.MouseDown[mouse_button] == false || window->SkipItems) + return false; + if ((g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect) == 0 && (g.ActiveId == 0 || g.ActiveIdWindow != window)) + return false; + + // If you want to use BeginDragDropSource() on an item with no unique identifier for interaction, such as Text() or Image(), you need to: + // A) Read the explanation below, B) Use the ImGuiDragDropFlags_SourceAllowNullID flag. + if (!(flags & ImGuiDragDropFlags_SourceAllowNullID)) + { + IM_ASSERT(0); + return false; + } + + // Magic fallback to handle items with no assigned ID, e.g. Text(), Image() + // We build a throwaway ID based on current ID stack + relative AABB of items in window. + // THE IDENTIFIER WON'T SURVIVE ANY REPOSITIONING/RESIZINGG OF THE WIDGET, so if your widget moves your dragging operation will be canceled. + // We don't need to maintain/call ClearActiveID() as releasing the button will early out this function and trigger !ActiveIdIsAlive. + // Rely on keeping other window->LastItemXXX fields intact. + source_id = g.LastItemData.ID = window->GetIDFromRectangle(g.LastItemData.Rect); + KeepAliveID(source_id); + bool is_hovered = ItemHoverable(g.LastItemData.Rect, source_id, g.LastItemData.InFlags); + if (is_hovered && g.IO.MouseClicked[mouse_button]) + { + SetActiveID(source_id, window); + FocusWindow(window); + } + if (g.ActiveId == source_id) // Allow the underlying widget to display/return hovered during the mouse release frame, else we would get a flicker. + g.ActiveIdAllowOverlap = is_hovered; + } + if (g.ActiveId != source_id) + return false; + source_parent_id = window->IDStack.back(); + source_drag_active = IsMouseDragging(mouse_button); + + // Disable navigation and key inputs while dragging + cancel existing request if any + SetActiveIdUsingAllKeyboardKeys(); + } + else + { + window = NULL; + source_id = ImHashStr("#SourceExtern"); + source_drag_active = true; + } + + if (source_drag_active) + { + if (!g.DragDropActive) + { + IM_ASSERT(source_id != 0); + ClearDragDrop(); + ImGuiPayload& payload = g.DragDropPayload; + payload.SourceId = source_id; + payload.SourceParentId = source_parent_id; + g.DragDropActive = true; + g.DragDropSourceFlags = flags; + g.DragDropMouseButton = mouse_button; + if (payload.SourceId == g.ActiveId) + g.ActiveIdNoClearOnFocusLoss = true; + } + g.DragDropSourceFrameCount = g.FrameCount; + g.DragDropWithinSource = true; + + if (!(flags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + { + // Target can request the Source to not display its tooltip (we use a dedicated flag to make this request explicit) + // We unfortunately can't just modify the source flags and skip the call to BeginTooltip, as caller may be emitting contents. + bool ret; + if (g.DragDropAcceptIdPrev && (g.DragDropAcceptFlags & ImGuiDragDropFlags_AcceptNoPreviewTooltip)) + ret = BeginTooltipHidden(); + else + ret = BeginTooltip(); + IM_ASSERT(ret); // FIXME-NEWBEGIN: If this ever becomes false, we need to Begin("##Hidden", NULL, ImGuiWindowFlags_NoSavedSettings) + SetWindowHiddendAndSkipItemsForCurrentFrame(). + IM_UNUSED(ret); + } + + if (!(flags & ImGuiDragDropFlags_SourceNoDisableHover) && !(flags & ImGuiDragDropFlags_SourceExtern)) + g.LastItemData.StatusFlags &= ~ImGuiItemStatusFlags_HoveredRect; + + return true; + } + return false; +} + +void ImGui::EndDragDropSource() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DragDropActive); + IM_ASSERT(g.DragDropWithinSource && "Not after a BeginDragDropSource()?"); + + if (!(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + EndTooltip(); + + // Discard the drag if have not called SetDragDropPayload() + if (g.DragDropPayload.DataFrameCount == -1) + ClearDragDrop(); + g.DragDropWithinSource = false; +} + +// Use 'cond' to choose to submit payload on drag start or every frame +bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_size, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + ImGuiPayload& payload = g.DragDropPayload; + if (cond == 0) + cond = ImGuiCond_Always; + + IM_ASSERT(type != NULL); + IM_ASSERT(strlen(type) < IM_ARRAYSIZE(payload.DataType) && "Payload type can be at most 32 characters long"); + IM_ASSERT((data != NULL && data_size > 0) || (data == NULL && data_size == 0)); + IM_ASSERT(cond == ImGuiCond_Always || cond == ImGuiCond_Once); + IM_ASSERT(payload.SourceId != 0); // Not called between BeginDragDropSource() and EndDragDropSource() + + if (cond == ImGuiCond_Always || payload.DataFrameCount == -1) + { + // Copy payload + ImStrncpy(payload.DataType, type, IM_ARRAYSIZE(payload.DataType)); + g.DragDropPayloadBufHeap.resize(0); + if (data_size > sizeof(g.DragDropPayloadBufLocal)) + { + // Store in heap + g.DragDropPayloadBufHeap.resize((int)data_size); + payload.Data = g.DragDropPayloadBufHeap.Data; + memcpy(payload.Data, data, data_size); + } + else if (data_size > 0) + { + // Store locally + memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); + payload.Data = g.DragDropPayloadBufLocal; + memcpy(payload.Data, data, data_size); + } + else + { + payload.Data = NULL; + } + payload.DataSize = (int)data_size; + } + payload.DataFrameCount = g.FrameCount; + + // Return whether the payload has been accepted + return (g.DragDropAcceptFrameCount == g.FrameCount) || (g.DragDropAcceptFrameCount == g.FrameCount - 1); +} + +bool ImGui::BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (!g.DragDropActive) + return false; + + ImGuiWindow* window = g.CurrentWindow; + ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; + if (hovered_window == NULL || window->RootWindowDockTree != hovered_window->RootWindowDockTree) + return false; + IM_ASSERT(id != 0); + if (!IsMouseHoveringRect(bb.Min, bb.Max) || (id == g.DragDropPayload.SourceId)) + return false; + if (window->SkipItems) + return false; + + IM_ASSERT(g.DragDropWithinTarget == false); + g.DragDropTargetRect = bb; + g.DragDropTargetId = id; + g.DragDropWithinTarget = true; + return true; +} + +// We don't use BeginDragDropTargetCustom() and duplicate its code because: +// 1) we use LastItemRectHoveredRect which handles items that push a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them. +// 2) and it's faster. as this code may be very frequently called, we want to early out as fast as we can. +// Also note how the HoveredWindow test is positioned differently in both functions (in both functions we optimize for the cheapest early out case) +bool ImGui::BeginDragDropTarget() +{ + ImGuiContext& g = *GImGui; + if (!g.DragDropActive) + return false; + + ImGuiWindow* window = g.CurrentWindow; + if (!(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect)) + return false; + ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; + if (hovered_window == NULL || window->RootWindowDockTree != hovered_window->RootWindowDockTree || window->SkipItems) + return false; + + const ImRect& display_rect = (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HasDisplayRect) ? g.LastItemData.DisplayRect : g.LastItemData.Rect; + ImGuiID id = g.LastItemData.ID; + if (id == 0) + { + id = window->GetIDFromRectangle(display_rect); + KeepAliveID(id); + } + if (g.DragDropPayload.SourceId == id) + return false; + + IM_ASSERT(g.DragDropWithinTarget == false); + g.DragDropTargetRect = display_rect; + g.DragDropTargetId = id; + g.DragDropWithinTarget = true; + return true; +} + +bool ImGui::IsDragDropPayloadBeingAccepted() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive && g.DragDropAcceptIdPrev != 0; +} + +const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiPayload& payload = g.DragDropPayload; + IM_ASSERT(g.DragDropActive); // Not called between BeginDragDropTarget() and EndDragDropTarget() ? + IM_ASSERT(payload.DataFrameCount != -1); // Forgot to call EndDragDropTarget() ? + if (type != NULL && !payload.IsDataType(type)) + return NULL; + + // Accept smallest drag target bounding box, this allows us to nest drag targets conveniently without ordering constraints. + // NB: We currently accept NULL id as target. However, overlapping targets requires a unique ID to function! + const bool was_accepted_previously = (g.DragDropAcceptIdPrev == g.DragDropTargetId); + ImRect r = g.DragDropTargetRect; + float r_surface = r.GetWidth() * r.GetHeight(); + if (r_surface > g.DragDropAcceptIdCurrRectSurface) + return NULL; + + g.DragDropAcceptFlags = flags; + g.DragDropAcceptIdCurr = g.DragDropTargetId; + g.DragDropAcceptIdCurrRectSurface = r_surface; + //IMGUI_DEBUG_LOG("AcceptDragDropPayload(): %08X: accept\n", g.DragDropTargetId); + + // Render default drop visuals + payload.Preview = was_accepted_previously; + flags |= (g.DragDropSourceFlags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect); // Source can also inhibit the preview (useful for external sources that live for 1 frame) + if (!(flags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect) && payload.Preview) + RenderDragDropTargetRect(r); + + g.DragDropAcceptFrameCount = g.FrameCount; + payload.Delivery = was_accepted_previously && !IsMouseDown(g.DragDropMouseButton); // For extern drag sources affecting OS window focus, it's easier to just test !IsMouseDown() instead of IsMouseReleased() + if (!payload.Delivery && !(flags & ImGuiDragDropFlags_AcceptBeforeDelivery)) + return NULL; + + //IMGUI_DEBUG_LOG("AcceptDragDropPayload(): %08X: return payload\n", g.DragDropTargetId); + return &payload; +} + +// FIXME-STYLE FIXME-DRAGDROP: Settle on a proper default visuals for drop target. +void ImGui::RenderDragDropTargetRect(const ImRect& bb) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImRect bb_display = bb; + bb_display.ClipWith(window->ClipRect); // Clip THEN expand so we have a way to visualize that target is not entirely visible. + bb_display.Expand(3.5f); + bool push_clip_rect = !window->ClipRect.Contains(bb_display); + if (push_clip_rect) + window->DrawList->PushClipRectFullScreen(); + window->DrawList->AddRect(bb_display.Min, bb_display.Max, GetColorU32(ImGuiCol_DragDropTarget), 0.0f, 0, 2.0f); + if (push_clip_rect) + window->DrawList->PopClipRect(); +} + +const ImGuiPayload* ImGui::GetDragDropPayload() +{ + ImGuiContext& g = *GImGui; + return (g.DragDropActive && g.DragDropPayload.DataFrameCount != -1) ? &g.DragDropPayload : NULL; +} + +void ImGui::EndDragDropTarget() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DragDropActive); + IM_ASSERT(g.DragDropWithinTarget); + g.DragDropWithinTarget = false; + + // Clear drag and drop state payload right after delivery + if (g.DragDropPayload.Delivery) + ClearDragDrop(); +} + +//----------------------------------------------------------------------------- +// [SECTION] LOGGING/CAPTURING +//----------------------------------------------------------------------------- +// All text output from the interface can be captured into tty/file/clipboard. +// By default, tree nodes are automatically opened during logging. +//----------------------------------------------------------------------------- + +// Pass text data straight to log (without being displayed) +static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) +{ + if (g.LogFile) + { + g.LogBuffer.Buf.resize(0); + g.LogBuffer.appendfv(fmt, args); + ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); + } + else + { + g.LogBuffer.appendfv(fmt, args); + } +} + +void ImGui::LogText(const char* fmt, ...) +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + va_list args; + va_start(args, fmt); + LogTextV(g, fmt, args); + va_end(args); +} + +void ImGui::LogTextV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + LogTextV(g, fmt, args); +} + +// Internal version that takes a position to decide on newline placement and pad items according to their depth. +// We split text into individual lines to add current tree level padding +// FIXME: This code is a little complicated perhaps, considering simplifying the whole system. +void ImGui::LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + const char* prefix = g.LogNextPrefix; + const char* suffix = g.LogNextSuffix; + g.LogNextPrefix = g.LogNextSuffix = NULL; + + if (!text_end) + text_end = FindRenderedTextEnd(text, text_end); + + const bool log_new_line = ref_pos && (ref_pos->y > g.LogLinePosY + g.Style.FramePadding.y + 1); + if (ref_pos) + g.LogLinePosY = ref_pos->y; + if (log_new_line) + { + LogText(IM_NEWLINE); + g.LogLineFirstItem = true; + } + + if (prefix) + LogRenderedText(ref_pos, prefix, prefix + strlen(prefix)); // Calculate end ourself to ensure "##" are included here. + + // Re-adjust padding if we have popped out of our starting depth + if (g.LogDepthRef > window->DC.TreeDepth) + g.LogDepthRef = window->DC.TreeDepth; + const int tree_depth = (window->DC.TreeDepth - g.LogDepthRef); + + const char* text_remaining = text; + for (;;) + { + // Split the string. Each new line (after a '\n') is followed by indentation corresponding to the current depth of our log entry. + // We don't add a trailing \n yet to allow a subsequent item on the same line to be captured. + const char* line_start = text_remaining; + const char* line_end = ImStreolRange(line_start, text_end); + const bool is_last_line = (line_end == text_end); + if (line_start != line_end || !is_last_line) + { + const int line_length = (int)(line_end - line_start); + const int indentation = g.LogLineFirstItem ? tree_depth * 4 : 1; + LogText("%*s%.*s", indentation, "", line_length, line_start); + g.LogLineFirstItem = false; + if (*line_end == '\n') + { + LogText(IM_NEWLINE); + g.LogLineFirstItem = true; + } + } + if (is_last_line) + break; + text_remaining = line_end + 1; + } + + if (suffix) + LogRenderedText(ref_pos, suffix, suffix + strlen(suffix)); +} + +// Start logging/capturing text output +void ImGui::LogBegin(ImGuiLogType type, int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(g.LogEnabled == false); + IM_ASSERT(g.LogFile == NULL); + IM_ASSERT(g.LogBuffer.empty()); + g.LogEnabled = true; + g.LogType = type; + g.LogNextPrefix = g.LogNextSuffix = NULL; + g.LogDepthRef = window->DC.TreeDepth; + g.LogDepthToExpand = ((auto_open_depth >= 0) ? auto_open_depth : g.LogDepthToExpandDefault); + g.LogLinePosY = FLT_MAX; + g.LogLineFirstItem = true; +} + +// Important: doesn't copy underlying data, use carefully (prefix/suffix must be in scope at the time of the next LogRenderedText) +void ImGui::LogSetNextTextDecoration(const char* prefix, const char* suffix) +{ + ImGuiContext& g = *GImGui; + g.LogNextPrefix = prefix; + g.LogNextSuffix = suffix; +} + +void ImGui::LogToTTY(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + IM_UNUSED(auto_open_depth); +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + LogBegin(ImGuiLogType_TTY, auto_open_depth); + g.LogFile = stdout; +#endif +} + +// Start logging/capturing text output to given file +void ImGui::LogToFile(int auto_open_depth, const char* filename) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + + // FIXME: We could probably open the file in text mode "at", however note that clipboard/buffer logging will still + // be subject to outputting OS-incompatible carriage return if within strings the user doesn't use IM_NEWLINE. + // By opening the file in binary mode "ab" we have consistent output everywhere. + if (!filename) + filename = g.IO.LogFilename; + if (!filename || !filename[0]) + return; + ImFileHandle f = ImFileOpen(filename, "ab"); + if (!f) + { + IM_ASSERT(0); + return; + } + + LogBegin(ImGuiLogType_File, auto_open_depth); + g.LogFile = f; +} + +// Start logging/capturing text output to clipboard +void ImGui::LogToClipboard(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + LogBegin(ImGuiLogType_Clipboard, auto_open_depth); +} + +void ImGui::LogToBuffer(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + LogBegin(ImGuiLogType_Buffer, auto_open_depth); +} + +void ImGui::LogFinish() +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + LogText(IM_NEWLINE); + switch (g.LogType) + { + case ImGuiLogType_TTY: +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + fflush(g.LogFile); +#endif + break; + case ImGuiLogType_File: + ImFileClose(g.LogFile); + break; + case ImGuiLogType_Buffer: + break; + case ImGuiLogType_Clipboard: + if (!g.LogBuffer.empty()) + SetClipboardText(g.LogBuffer.begin()); + break; + case ImGuiLogType_None: + IM_ASSERT(0); + break; + } + + g.LogEnabled = false; + g.LogType = ImGuiLogType_None; + g.LogFile = NULL; + g.LogBuffer.clear(); +} + +// Helper to display logging buttons +// FIXME-OBSOLETE: We should probably obsolete this and let the user have their own helper (this is one of the oldest function alive!) +void ImGui::LogButtons() +{ + ImGuiContext& g = *GImGui; + + PushID("LogButtons"); +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + const bool log_to_tty = Button("Log To TTY"); SameLine(); +#else + const bool log_to_tty = false; +#endif + const bool log_to_file = Button("Log To File"); SameLine(); + const bool log_to_clipboard = Button("Log To Clipboard"); SameLine(); + PushTabStop(false); + SetNextItemWidth(80.0f); + SliderInt("Default Depth", &g.LogDepthToExpandDefault, 0, 9, NULL); + PopTabStop(); + PopID(); + + // Start logging at the end of the function so that the buttons don't appear in the log + if (log_to_tty) + LogToTTY(); + if (log_to_file) + LogToFile(); + if (log_to_clipboard) + LogToClipboard(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] SETTINGS +//----------------------------------------------------------------------------- +// - UpdateSettings() [Internal] +// - MarkIniSettingsDirty() [Internal] +// - FindSettingsHandler() [Internal] +// - ClearIniSettings() [Internal] +// - LoadIniSettingsFromDisk() +// - LoadIniSettingsFromMemory() +// - SaveIniSettingsToDisk() +// - SaveIniSettingsToMemory() +//----------------------------------------------------------------------------- +// - CreateNewWindowSettings() [Internal] +// - FindWindowSettingsByID() [Internal] +// - FindWindowSettingsByWindow() [Internal] +// - ClearWindowSettings() [Internal] +// - WindowSettingsHandler_***() [Internal] +//----------------------------------------------------------------------------- + +// Called by NewFrame() +void ImGui::UpdateSettings() +{ + // Load settings on first frame (if not explicitly loaded manually before) + ImGuiContext& g = *GImGui; + if (!g.SettingsLoaded) + { + IM_ASSERT(g.SettingsWindows.empty()); + if (g.IO.IniFilename) + LoadIniSettingsFromDisk(g.IO.IniFilename); + g.SettingsLoaded = true; + } + + // Save settings (with a delay after the last modification, so we don't spam disk too much) + if (g.SettingsDirtyTimer > 0.0f) + { + g.SettingsDirtyTimer -= g.IO.DeltaTime; + if (g.SettingsDirtyTimer <= 0.0f) + { + if (g.IO.IniFilename != NULL) + SaveIniSettingsToDisk(g.IO.IniFilename); + else + g.IO.WantSaveIniSettings = true; // Let user know they can call SaveIniSettingsToMemory(). user will need to clear io.WantSaveIniSettings themselves. + g.SettingsDirtyTimer = 0.0f; + } + } +} + +void ImGui::MarkIniSettingsDirty() +{ + ImGuiContext& g = *GImGui; + if (g.SettingsDirtyTimer <= 0.0f) + g.SettingsDirtyTimer = g.IO.IniSavingRate; +} + +void ImGui::MarkIniSettingsDirty(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (!(window->Flags & ImGuiWindowFlags_NoSavedSettings)) + if (g.SettingsDirtyTimer <= 0.0f) + g.SettingsDirtyTimer = g.IO.IniSavingRate; +} + +void ImGui::AddSettingsHandler(const ImGuiSettingsHandler* handler) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(FindSettingsHandler(handler->TypeName) == NULL); + g.SettingsHandlers.push_back(*handler); +} + +void ImGui::RemoveSettingsHandler(const char* type_name) +{ + ImGuiContext& g = *GImGui; + if (ImGuiSettingsHandler* handler = FindSettingsHandler(type_name)) + g.SettingsHandlers.erase(handler); +} + +ImGuiSettingsHandler* ImGui::FindSettingsHandler(const char* type_name) +{ + ImGuiContext& g = *GImGui; + const ImGuiID type_hash = ImHashStr(type_name); + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + if (handler.TypeHash == type_hash) + return &handler; + return NULL; +} + +// Clear all settings (windows, tables, docking etc.) +void ImGui::ClearIniSettings() +{ + ImGuiContext& g = *GImGui; + g.SettingsIniData.clear(); + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + if (handler.ClearAllFn != NULL) + handler.ClearAllFn(&g, &handler); +} + +void ImGui::LoadIniSettingsFromDisk(const char* ini_filename) +{ + size_t file_data_size = 0; + char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size); + if (!file_data) + return; + if (file_data_size > 0) + LoadIniSettingsFromMemory(file_data, (size_t)file_data_size); + IM_FREE(file_data); +} + +// Zero-tolerance, no error reporting, cheap .ini parsing +// Set ini_size==0 to let us use strlen(ini_data). Do not call this function with a 0 if your buffer is actually empty! +void ImGui::LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + //IM_ASSERT(!g.WithinFrameScope && "Cannot be called between NewFrame() and EndFrame()"); + //IM_ASSERT(g.SettingsLoaded == false && g.FrameCount == 0); + + // For user convenience, we allow passing a non zero-terminated string (hence the ini_size parameter). + // For our convenience and to make the code simpler, we'll also write zero-terminators within the buffer. So let's create a writable copy.. + if (ini_size == 0) + ini_size = strlen(ini_data); + g.SettingsIniData.Buf.resize((int)ini_size + 1); + char* const buf = g.SettingsIniData.Buf.Data; + char* const buf_end = buf + ini_size; + memcpy(buf, ini_data, ini_size); + buf_end[0] = 0; + + // Call pre-read handlers + // Some types will clear their data (e.g. dock information) some types will allow merge/override (window) + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + if (handler.ReadInitFn != NULL) + handler.ReadInitFn(&g, &handler); + + void* entry_data = NULL; + ImGuiSettingsHandler* entry_handler = NULL; + + char* line_end = NULL; + for (char* line = buf; line < buf_end; line = line_end + 1) + { + // Skip new lines markers, then find end of the line + while (*line == '\n' || *line == '\r') + line++; + line_end = line; + while (line_end < buf_end && *line_end != '\n' && *line_end != '\r') + line_end++; + line_end[0] = 0; + if (line[0] == ';') + continue; + if (line[0] == '[' && line_end > line && line_end[-1] == ']') + { + // Parse "[Type][Name]". Note that 'Name' can itself contains [] characters, which is acceptable with the current format and parsing code. + line_end[-1] = 0; + const char* name_end = line_end - 1; + const char* type_start = line + 1; + char* type_end = (char*)(void*)ImStrchrRange(type_start, name_end, ']'); + const char* name_start = type_end ? ImStrchrRange(type_end + 1, name_end, '[') : NULL; + if (!type_end || !name_start) + continue; + *type_end = 0; // Overwrite first ']' + name_start++; // Skip second '[' + entry_handler = FindSettingsHandler(type_start); + entry_data = entry_handler ? entry_handler->ReadOpenFn(&g, entry_handler, name_start) : NULL; + } + else if (entry_handler != NULL && entry_data != NULL) + { + // Let type handler parse the line + entry_handler->ReadLineFn(&g, entry_handler, entry_data, line); + } + } + g.SettingsLoaded = true; + + // [DEBUG] Restore untouched copy so it can be browsed in Metrics (not strictly necessary) + memcpy(buf, ini_data, ini_size); + + // Call post-read handlers + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + if (handler.ApplyAllFn != NULL) + handler.ApplyAllFn(&g, &handler); +} + +void ImGui::SaveIniSettingsToDisk(const char* ini_filename) +{ + ImGuiContext& g = *GImGui; + g.SettingsDirtyTimer = 0.0f; + if (!ini_filename) + return; + + size_t ini_data_size = 0; + const char* ini_data = SaveIniSettingsToMemory(&ini_data_size); + ImFileHandle f = ImFileOpen(ini_filename, "wt"); + if (!f) + return; + ImFileWrite(ini_data, sizeof(char), ini_data_size, f); + ImFileClose(f); +} + +// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer +const char* ImGui::SaveIniSettingsToMemory(size_t* out_size) +{ + ImGuiContext& g = *GImGui; + g.SettingsDirtyTimer = 0.0f; + g.SettingsIniData.Buf.resize(0); + g.SettingsIniData.Buf.push_back(0); + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + handler.WriteAllFn(&g, &handler, &g.SettingsIniData); + if (out_size) + *out_size = (size_t)g.SettingsIniData.size(); + return g.SettingsIniData.c_str(); +} + +ImGuiWindowSettings* ImGui::CreateNewWindowSettings(const char* name) +{ + ImGuiContext& g = *GImGui; + + if (g.IO.ConfigDebugIniSettings == false) + { + // Skip to the "###" marker if any. We don't skip past to match the behavior of GetID() + // Preserve the full string when ConfigDebugVerboseIniSettings is set to make .ini inspection easier. + if (const char* p = strstr(name, "###")) + name = p; + } + const size_t name_len = strlen(name); + + // Allocate chunk + const size_t chunk_size = sizeof(ImGuiWindowSettings) + name_len + 1; + ImGuiWindowSettings* settings = g.SettingsWindows.alloc_chunk(chunk_size); + IM_PLACEMENT_NEW(settings) ImGuiWindowSettings(); + settings->ID = ImHashStr(name, name_len); + memcpy(settings->GetName(), name, name_len + 1); // Store with zero terminator + + return settings; +} + +// We don't provide a FindWindowSettingsByName() because Docking system doesn't always hold on names. +// This is called once per window .ini entry + once per newly instantiated window. +ImGuiWindowSettings* ImGui::FindWindowSettingsByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->ID == id && !settings->WantDelete) + return settings; + return NULL; +} + +// This is faster if you are holding on a Window already as we don't need to perform a search. +ImGuiWindowSettings* ImGui::FindWindowSettingsByWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (window->SettingsOffset != -1) + return g.SettingsWindows.ptr_from_offset(window->SettingsOffset); + return FindWindowSettingsByID(window->ID); +} + +// This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more. +void ImGui::ClearWindowSettings(const char* name) +{ + //IMGUI_DEBUG_LOG("ClearWindowSettings('%s')\n", name); + ImGuiContext& g = *GImGui; + ImGuiWindow* window = FindWindowByName(name); + if (window != NULL) + { + window->Flags |= ImGuiWindowFlags_NoSavedSettings; + InitOrLoadWindowSettings(window, NULL); + if (window->DockId != 0) + DockContextProcessUndockWindow(&g, window, true); + } + if (ImGuiWindowSettings* settings = window ? FindWindowSettingsByWindow(window) : FindWindowSettingsByID(ImHashStr(name))) + settings->WantDelete = true; +} + +static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (ImGuiWindow* window : g.Windows) + window->SettingsOffset = -1; + g.SettingsWindows.clear(); +} + +static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + ImGuiID id = ImHashStr(name); + ImGuiWindowSettings* settings = ImGui::FindWindowSettingsByID(id); + if (settings) + *settings = ImGuiWindowSettings(); // Clear existing if recycling previous entry + else + settings = ImGui::CreateNewWindowSettings(name); + settings->ID = id; + settings->WantApply = true; + return (void*)settings; +} + +static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) +{ + ImGuiWindowSettings* settings = (ImGuiWindowSettings*)entry; + int x, y; + int i; + ImU32 u1; + if (sscanf(line, "Pos=%i,%i", &x, &y) == 2) { settings->Pos = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "Size=%i,%i", &x, &y) == 2) { settings->Size = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "ViewportId=0x%08X", &u1) == 1) { settings->ViewportId = u1; } + else if (sscanf(line, "ViewportPos=%i,%i", &x, &y) == 2){ settings->ViewportPos = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "Collapsed=%d", &i) == 1) { settings->Collapsed = (i != 0); } + else if (sscanf(line, "DockId=0x%X,%d", &u1, &i) == 2) { settings->DockId = u1; settings->DockOrder = (short)i; } + else if (sscanf(line, "DockId=0x%X", &u1) == 1) { settings->DockId = u1; settings->DockOrder = -1; } + else if (sscanf(line, "ClassId=0x%X", &u1) == 1) { settings->ClassId = u1; } +} + +// Apply to existing windows (if any) +static void WindowSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->WantApply) + { + if (ImGuiWindow* window = ImGui::FindWindowByID(settings->ID)) + ApplyWindowSettings(window, settings); + settings->WantApply = false; + } +} + +static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + // Gather data from windows that were active during this session + // (if a window wasn't opened in this session we preserve its settings) + ImGuiContext& g = *ctx; + for (ImGuiWindow* window : g.Windows) + { + if (window->Flags & ImGuiWindowFlags_NoSavedSettings) + continue; + + ImGuiWindowSettings* settings = ImGui::FindWindowSettingsByWindow(window); + if (!settings) + { + settings = ImGui::CreateNewWindowSettings(window->Name); + window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); + } + IM_ASSERT(settings->ID == window->ID); + settings->Pos = ImVec2ih(window->Pos - window->ViewportPos); + settings->Size = ImVec2ih(window->SizeFull); + settings->ViewportId = window->ViewportId; + settings->ViewportPos = ImVec2ih(window->ViewportPos); + IM_ASSERT(window->DockNode == NULL || window->DockNode->ID == window->DockId); + settings->DockId = window->DockId; + settings->ClassId = window->WindowClass.ClassId; + settings->DockOrder = window->DockOrder; + settings->Collapsed = window->Collapsed; + settings->WantDelete = false; + } + + // Write to text buffer + buf->reserve(buf->size() + g.SettingsWindows.size() * 6); // ballpark reserve + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + { + if (settings->WantDelete) + continue; + const char* settings_name = settings->GetName(); + buf->appendf("[%s][%s]\n", handler->TypeName, settings_name); + if (settings->ViewportId != 0 && settings->ViewportId != ImGui::IMGUI_VIEWPORT_DEFAULT_ID) + { + buf->appendf("ViewportPos=%d,%d\n", settings->ViewportPos.x, settings->ViewportPos.y); + buf->appendf("ViewportId=0x%08X\n", settings->ViewportId); + } + if (settings->Pos.x != 0 || settings->Pos.y != 0 || settings->ViewportId == ImGui::IMGUI_VIEWPORT_DEFAULT_ID) + buf->appendf("Pos=%d,%d\n", settings->Pos.x, settings->Pos.y); + if (settings->Size.x != 0 || settings->Size.y != 0) + buf->appendf("Size=%d,%d\n", settings->Size.x, settings->Size.y); + buf->appendf("Collapsed=%d\n", settings->Collapsed); + if (settings->DockId != 0) + { + //buf->appendf("TabId=0x%08X\n", ImHashStr("#TAB", 4, settings->ID)); // window->TabId: this is not read back but writing it makes "debugging" the .ini data easier. + if (settings->DockOrder == -1) + buf->appendf("DockId=0x%08X\n", settings->DockId); + else + buf->appendf("DockId=0x%08X,%d\n", settings->DockId, settings->DockOrder); + if (settings->ClassId != 0) + buf->appendf("ClassId=0x%08X\n", settings->ClassId); + } + buf->append("\n"); + } +} + + +//----------------------------------------------------------------------------- +// [SECTION] LOCALIZATION +//----------------------------------------------------------------------------- + +void ImGui::LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count) +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < count; n++) + g.LocalizationTable[entries[n].Key] = entries[n].Text; +} + + +//----------------------------------------------------------------------------- +// [SECTION] VIEWPORTS, PLATFORM WINDOWS +//----------------------------------------------------------------------------- +// - GetMainViewport() +// - FindViewportByID() +// - FindViewportByPlatformHandle() +// - SetCurrentViewport() [Internal] +// - SetWindowViewport() [Internal] +// - GetWindowAlwaysWantOwnViewport() [Internal] +// - UpdateTryMergeWindowIntoHostViewport() [Internal] +// - UpdateTryMergeWindowIntoHostViewports() [Internal] +// - TranslateWindowsInViewport() [Internal] +// - ScaleWindowsInViewport() [Internal] +// - FindHoveredViewportFromPlatformWindowStack() [Internal] +// - UpdateViewportsNewFrame() [Internal] +// - UpdateViewportsEndFrame() [Internal] +// - AddUpdateViewport() [Internal] +// - WindowSelectViewport() [Internal] +// - WindowSyncOwnedViewport() [Internal] +// - UpdatePlatformWindows() +// - RenderPlatformWindowsDefault() +// - FindPlatformMonitorForPos() [Internal] +// - FindPlatformMonitorForRect() [Internal] +// - UpdateViewportPlatformMonitor() [Internal] +// - DestroyPlatformWindow() [Internal] +// - DestroyPlatformWindows() +//----------------------------------------------------------------------------- + +ImGuiViewport* ImGui::GetMainViewport() +{ + ImGuiContext& g = *GImGui; + return g.Viewports[0]; +} + +// FIXME: This leaks access to viewports not listed in PlatformIO.Viewports[]. Problematic? (#4236) +ImGuiViewport* ImGui::FindViewportByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + for (ImGuiViewportP* viewport : g.Viewports) + if (viewport->ID == id) + return viewport; + return NULL; +} + +ImGuiViewport* ImGui::FindViewportByPlatformHandle(void* platform_handle) +{ + ImGuiContext& g = *GImGui; + for (ImGuiViewportP* viewport : g.Viewports) + if (viewport->PlatformHandle == platform_handle) + return viewport; + return NULL; +} + +void ImGui::SetCurrentViewport(ImGuiWindow* current_window, ImGuiViewportP* viewport) +{ + ImGuiContext& g = *GImGui; + (void)current_window; + + if (viewport) + viewport->LastFrameActive = g.FrameCount; + if (g.CurrentViewport == viewport) + return; + g.CurrentDpiScale = viewport ? viewport->DpiScale : 1.0f; + g.CurrentViewport = viewport; + //IMGUI_DEBUG_LOG_VIEWPORT("[viewport] SetCurrentViewport changed '%s' 0x%08X\n", current_window ? current_window->Name : NULL, viewport ? viewport->ID : 0); + + // Notify platform layer of viewport changes + // FIXME-DPI: This is only currently used for experimenting with handling of multiple DPI + if (g.CurrentViewport && g.PlatformIO.Platform_OnChangedViewport) + g.PlatformIO.Platform_OnChangedViewport(g.CurrentViewport); +} + +void ImGui::SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport) +{ + // Abandon viewport + if (window->ViewportOwned && window->Viewport->Window == window) + window->Viewport->Size = ImVec2(0.0f, 0.0f); + + window->Viewport = viewport; + window->ViewportId = viewport->ID; + window->ViewportOwned = (viewport->Window == window); +} + +static bool ImGui::GetWindowAlwaysWantOwnViewport(ImGuiWindow* window) +{ + // Tooltips and menus are not automatically forced into their own viewport when the NoMerge flag is set, however the multiplication of viewports makes them more likely to protrude and create their own. + ImGuiContext& g = *GImGui; + if (g.IO.ConfigViewportsNoAutoMerge || (window->WindowClass.ViewportFlagsOverrideSet & ImGuiViewportFlags_NoAutoMerge)) + if (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) + if (!window->DockIsActive) + if ((window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip)) == 0) + if ((window->Flags & ImGuiWindowFlags_Popup) == 0 || (window->Flags & ImGuiWindowFlags_Modal) != 0) + return true; + return false; +} + +static bool ImGui::UpdateTryMergeWindowIntoHostViewport(ImGuiWindow* window, ImGuiViewportP* viewport) +{ + ImGuiContext& g = *GImGui; + if (window->Viewport == viewport) + return false; + if ((viewport->Flags & ImGuiViewportFlags_CanHostOtherWindows) == 0) + return false; + if ((viewport->Flags & ImGuiViewportFlags_IsMinimized) != 0) + return false; + if (!viewport->GetMainRect().Contains(window->Rect())) + return false; + if (GetWindowAlwaysWantOwnViewport(window)) + return false; + + // FIXME: Can't use g.WindowsFocusOrder[] for root windows only as we care about Z order. If we maintained a DisplayOrder along with FocusOrder we could.. + for (ImGuiWindow* window_behind : g.Windows) + { + if (window_behind == window) + break; + if (window_behind->WasActive && window_behind->ViewportOwned && !(window_behind->Flags & ImGuiWindowFlags_ChildWindow)) + if (window_behind->Viewport->GetMainRect().Overlaps(window->Rect())) + return false; + } + + // Move to the existing viewport, Move child/hosted windows as well (FIXME-OPT: iterate child) + ImGuiViewportP* old_viewport = window->Viewport; + if (window->ViewportOwned) + for (int n = 0; n < g.Windows.Size; n++) + if (g.Windows[n]->Viewport == old_viewport) + SetWindowViewport(g.Windows[n], viewport); + SetWindowViewport(window, viewport); + BringWindowToDisplayFront(window); + + return true; +} + +// FIXME: handle 0 to N host viewports +static bool ImGui::UpdateTryMergeWindowIntoHostViewports(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + return UpdateTryMergeWindowIntoHostViewport(window, g.Viewports[0]); +} + +// Translate Dear ImGui windows when a Host Viewport has been moved +// (This additionally keeps windows at the same place when ImGuiConfigFlags_ViewportsEnable is toggled!) +void ImGui::TranslateWindowsInViewport(ImGuiViewportP* viewport, const ImVec2& old_pos, const ImVec2& new_pos) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(viewport->Window == NULL && (viewport->Flags & ImGuiViewportFlags_CanHostOtherWindows)); + + // 1) We test if ImGuiConfigFlags_ViewportsEnable was just toggled, which allows us to conveniently + // translate imgui windows from OS-window-local to absolute coordinates or vice-versa. + // 2) If it's not going to fit into the new size, keep it at same absolute position. + // One problem with this is that most Win32 applications doesn't update their render while dragging, + // and so the window will appear to teleport when releasing the mouse. + const bool translate_all_windows = (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) != (g.ConfigFlagsLastFrame & ImGuiConfigFlags_ViewportsEnable); + ImRect test_still_fit_rect(old_pos, old_pos + viewport->Size); + ImVec2 delta_pos = new_pos - old_pos; + for (ImGuiWindow* window : g.Windows) // FIXME-OPT + if (translate_all_windows || (window->Viewport == viewport && test_still_fit_rect.Contains(window->Rect()))) + TranslateWindow(window, delta_pos); +} + +// Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!) +void ImGui::ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale) +{ + ImGuiContext& g = *GImGui; + if (viewport->Window) + { + ScaleWindow(viewport->Window, scale); + } + else + { + for (ImGuiWindow* window : g.Windows) + if (window->Viewport == viewport) + ScaleWindow(window, scale); + } +} + +// If the backend doesn't set MouseLastHoveredViewport or doesn't honor ImGuiViewportFlags_NoInputs, we do a search ourselves. +// A) It won't take account of the possibility that non-imgui windows may be in-between our dragged window and our target window. +// B) It requires Platform_GetWindowFocus to be implemented by backend. +ImGuiViewportP* ImGui::FindHoveredViewportFromPlatformWindowStack(const ImVec2& mouse_platform_pos) +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* best_candidate = NULL; + for (ImGuiViewportP* viewport : g.Viewports) + if (!(viewport->Flags & (ImGuiViewportFlags_NoInputs | ImGuiViewportFlags_IsMinimized)) && viewport->GetMainRect().Contains(mouse_platform_pos)) + if (best_candidate == NULL || best_candidate->LastFocusedStampCount < viewport->LastFocusedStampCount) + best_candidate = viewport; + return best_candidate; +} + +// Update viewports and monitor infos +// Note that this is running even if 'ImGuiConfigFlags_ViewportsEnable' is not set, in order to clear unused viewports (if any) and update monitor info. +static void ImGui::UpdateViewportsNewFrame() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.PlatformIO.Viewports.Size <= g.Viewports.Size); + + // Update Minimized status (we need it first in order to decide if we'll apply Pos/Size of the main viewport) + // Update Focused status + const bool viewports_enabled = (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) != 0; + if (viewports_enabled) + { + ImGuiViewportP* focused_viewport = NULL; + for (ImGuiViewportP* viewport : g.Viewports) + { + const bool platform_funcs_available = viewport->PlatformWindowCreated; + if (g.PlatformIO.Platform_GetWindowMinimized && platform_funcs_available) + { + bool is_minimized = g.PlatformIO.Platform_GetWindowMinimized(viewport); + if (is_minimized) + viewport->Flags |= ImGuiViewportFlags_IsMinimized; + else + viewport->Flags &= ~ImGuiViewportFlags_IsMinimized; + } + + // Update our implicit z-order knowledge of platform windows, which is used when the backend cannot provide io.MouseHoveredViewport. + // When setting Platform_GetWindowFocus, it is expected that the platform backend can handle calls without crashing if it doesn't have data stored. + if (g.PlatformIO.Platform_GetWindowFocus && platform_funcs_available) + { + bool is_focused = g.PlatformIO.Platform_GetWindowFocus(viewport); + if (is_focused) + viewport->Flags |= ImGuiViewportFlags_IsFocused; + else + viewport->Flags &= ~ImGuiViewportFlags_IsFocused; + if (is_focused) + focused_viewport = viewport; + } + } + + // Focused viewport has changed? + if (focused_viewport && g.PlatformLastFocusedViewportId != focused_viewport->ID) + { + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Focused viewport changed %08X -> %08X, attempting to apply our focus.\n", g.PlatformLastFocusedViewportId, focused_viewport->ID); + const ImGuiViewport* prev_focused_viewport = FindViewportByID(g.PlatformLastFocusedViewportId); + const bool prev_focused_has_been_destroyed = (prev_focused_viewport == NULL) || (prev_focused_viewport->PlatformWindowCreated == false); + + // Store a tag so we can infer z-order easily from all our windows + // We compare PlatformLastFocusedViewportId so newly created viewports with _NoFocusOnAppearing flag + // will keep the front most stamp instead of losing it back to their parent viewport. + if (focused_viewport->LastFocusedStampCount != g.ViewportFocusedStampCount) + focused_viewport->LastFocusedStampCount = ++g.ViewportFocusedStampCount; + g.PlatformLastFocusedViewportId = focused_viewport->ID; + + // Focus associated dear imgui window + // - if focus didn't happen with a click within imgui boundaries, e.g. Clicking platform title bar. (#6299) + // - if focus didn't happen because we destroyed another window (#6462) + // FIXME: perhaps 'FocusTopMostWindowUnderOne()' can handle the 'focused_window->Window != NULL' case as well. + const bool apply_imgui_focus_on_focused_viewport = !IsAnyMouseDown() && !prev_focused_has_been_destroyed; + if (apply_imgui_focus_on_focused_viewport) + { + focused_viewport->LastFocusedHadNavWindow |= (g.NavWindow != NULL) && (g.NavWindow->Viewport == focused_viewport); // Update so a window changing viewport won't lose focus. + ImGuiFocusRequestFlags focus_request_flags = ImGuiFocusRequestFlags_UnlessBelowModal | ImGuiFocusRequestFlags_RestoreFocusedChild; + if (focused_viewport->Window != NULL) + FocusWindow(focused_viewport->Window, focus_request_flags); + else if (focused_viewport->LastFocusedHadNavWindow) + FocusTopMostWindowUnderOne(NULL, NULL, focused_viewport, focus_request_flags); // Focus top most in viewport + else + FocusWindow(NULL, focus_request_flags); // No window had focus last time viewport was focused + } + } + if (focused_viewport) + focused_viewport->LastFocusedHadNavWindow = (g.NavWindow != NULL) && (g.NavWindow->Viewport == focused_viewport); + } + + // Create/update main viewport with current platform position. + // FIXME-VIEWPORT: Size is driven by backend/user code for backward-compatibility but we should aim to make this more consistent. + ImGuiViewportP* main_viewport = g.Viewports[0]; + IM_ASSERT(main_viewport->ID == IMGUI_VIEWPORT_DEFAULT_ID); + IM_ASSERT(main_viewport->Window == NULL); + ImVec2 main_viewport_pos = viewports_enabled ? g.PlatformIO.Platform_GetWindowPos(main_viewport) : ImVec2(0.0f, 0.0f); + ImVec2 main_viewport_size = g.IO.DisplaySize; + if (viewports_enabled && (main_viewport->Flags & ImGuiViewportFlags_IsMinimized)) + { + main_viewport_pos = main_viewport->Pos; // Preserve last pos/size when minimized (FIXME: We don't do the same for Size outside of the viewport path) + main_viewport_size = main_viewport->Size; + } + AddUpdateViewport(NULL, IMGUI_VIEWPORT_DEFAULT_ID, main_viewport_pos, main_viewport_size, ImGuiViewportFlags_OwnedByApp | ImGuiViewportFlags_CanHostOtherWindows); + + g.CurrentDpiScale = 0.0f; + g.CurrentViewport = NULL; + g.MouseViewport = NULL; + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + viewport->Idx = n; + + // Erase unused viewports + if (n > 0 && viewport->LastFrameActive < g.FrameCount - 2) + { + DestroyViewport(viewport); + n--; + continue; + } + + const bool platform_funcs_available = viewport->PlatformWindowCreated; + if (viewports_enabled) + { + // Update Position and Size (from Platform Window to ImGui) if requested. + // We do it early in the frame instead of waiting for UpdatePlatformWindows() to avoid a frame of lag when moving/resizing using OS facilities. + if (!(viewport->Flags & ImGuiViewportFlags_IsMinimized) && platform_funcs_available) + { + // Viewport->WorkPos and WorkSize will be updated below + if (viewport->PlatformRequestMove) + viewport->Pos = viewport->LastPlatformPos = g.PlatformIO.Platform_GetWindowPos(viewport); + if (viewport->PlatformRequestResize) + viewport->Size = viewport->LastPlatformSize = g.PlatformIO.Platform_GetWindowSize(viewport); + } + } + + // Update/copy monitor info + UpdateViewportPlatformMonitor(viewport); + + // Lock down space taken by menu bars and status bars, reset the offset for functions like BeginMainMenuBar() to alter them again. + viewport->WorkOffsetMin = viewport->BuildWorkOffsetMin; + viewport->WorkOffsetMax = viewport->BuildWorkOffsetMax; + viewport->BuildWorkOffsetMin = viewport->BuildWorkOffsetMax = ImVec2(0.0f, 0.0f); + viewport->UpdateWorkRect(); + + // Reset alpha every frame. Users of transparency (docking) needs to request a lower alpha back. + viewport->Alpha = 1.0f; + + // Translate Dear ImGui windows when a Host Viewport has been moved + // (This additionally keeps windows at the same place when ImGuiConfigFlags_ViewportsEnable is toggled!) + const ImVec2 viewport_delta_pos = viewport->Pos - viewport->LastPos; + if ((viewport->Flags & ImGuiViewportFlags_CanHostOtherWindows) && (viewport_delta_pos.x != 0.0f || viewport_delta_pos.y != 0.0f)) + TranslateWindowsInViewport(viewport, viewport->LastPos, viewport->Pos); + + // Update DPI scale + float new_dpi_scale; + if (g.PlatformIO.Platform_GetWindowDpiScale && platform_funcs_available) + new_dpi_scale = g.PlatformIO.Platform_GetWindowDpiScale(viewport); + else if (viewport->PlatformMonitor != -1) + new_dpi_scale = g.PlatformIO.Monitors[viewport->PlatformMonitor].DpiScale; + else + new_dpi_scale = (viewport->DpiScale != 0.0f) ? viewport->DpiScale : 1.0f; + if (viewport->DpiScale != 0.0f && new_dpi_scale != viewport->DpiScale) + { + float scale_factor = new_dpi_scale / viewport->DpiScale; + if (g.IO.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleViewports) + ScaleWindowsInViewport(viewport, scale_factor); + //if (viewport == GetMainViewport()) + // g.PlatformInterface.SetWindowSize(viewport, viewport->Size * scale_factor); + + // Scale our window moving pivot so that the window will rescale roughly around the mouse position. + // FIXME-VIEWPORT: This currently creates a resizing feedback loop when a window is straddling a DPI transition border. + // (Minor: since our sizes do not perfectly linearly scale, deferring the click offset scale until we know the actual window scale ratio may get us slightly more precise mouse positioning.) + //if (g.MovingWindow != NULL && g.MovingWindow->Viewport == viewport) + // g.ActiveIdClickOffset = ImTrunc(g.ActiveIdClickOffset * scale_factor); + } + viewport->DpiScale = new_dpi_scale; + } + + // Update fallback monitor + if (g.PlatformIO.Monitors.Size == 0) + { + ImGuiPlatformMonitor* monitor = &g.FallbackMonitor; + monitor->MainPos = main_viewport->Pos; + monitor->MainSize = main_viewport->Size; + monitor->WorkPos = main_viewport->WorkPos; + monitor->WorkSize = main_viewport->WorkSize; + monitor->DpiScale = main_viewport->DpiScale; + } + + if (!viewports_enabled) + { + g.MouseViewport = main_viewport; + return; + } + + // Mouse handling: decide on the actual mouse viewport for this frame between the active/focused viewport and the hovered viewport. + // Note that 'viewport_hovered' should skip over any viewport that has the ImGuiViewportFlags_NoInputs flags set. + ImGuiViewportP* viewport_hovered = NULL; + if (g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport) + { + viewport_hovered = g.IO.MouseHoveredViewport ? (ImGuiViewportP*)FindViewportByID(g.IO.MouseHoveredViewport) : NULL; + if (viewport_hovered && (viewport_hovered->Flags & ImGuiViewportFlags_NoInputs)) + viewport_hovered = FindHoveredViewportFromPlatformWindowStack(g.IO.MousePos); // Backend failed to handle _NoInputs viewport: revert to our fallback. + } + else + { + // If the backend doesn't know how to honor ImGuiViewportFlags_NoInputs, we do a search ourselves. Note that this search: + // A) won't take account of the possibility that non-imgui windows may be in-between our dragged window and our target window. + // B) won't take account of how the backend apply parent<>child relationship to secondary viewports, which affects their Z order. + // C) uses LastFrameAsRefViewport as a flawed replacement for the last time a window was focused (we could/should fix that by introducing Focus functions in PlatformIO) + viewport_hovered = FindHoveredViewportFromPlatformWindowStack(g.IO.MousePos); + } + if (viewport_hovered != NULL) + g.MouseLastHoveredViewport = viewport_hovered; + else if (g.MouseLastHoveredViewport == NULL) + g.MouseLastHoveredViewport = g.Viewports[0]; + + // Update mouse reference viewport + // (when moving a window we aim at its viewport, but this will be overwritten below if we go in drag and drop mode) + // (MovingViewport->Viewport will be NULL in the rare situation where the window disappared while moving, set UpdateMouseMovingWindowNewFrame() for details) + if (g.MovingWindow && g.MovingWindow->Viewport) + g.MouseViewport = g.MovingWindow->Viewport; + else + g.MouseViewport = g.MouseLastHoveredViewport; + + // When dragging something, always refer to the last hovered viewport. + // - when releasing a moving window we will revert to aiming behind (at viewport_hovered) + // - when we are between viewports, our dragged preview will tend to show in the last viewport _even_ if we don't have tooltips in their viewports (when lacking monitor info) + // - consider the case of holding on a menu item to browse child menus: even thou a mouse button is held, there's no active id because menu items only react on mouse release. + // FIXME-VIEWPORT: This is essentially broken, when ImGuiBackendFlags_HasMouseHoveredViewport is set we want to trust when viewport_hovered==NULL and use that. + const bool is_mouse_dragging_with_an_expected_destination = g.DragDropActive; + if (is_mouse_dragging_with_an_expected_destination && viewport_hovered == NULL) + viewport_hovered = g.MouseLastHoveredViewport; + if (is_mouse_dragging_with_an_expected_destination || g.ActiveId == 0 || !IsAnyMouseDown()) + if (viewport_hovered != NULL && viewport_hovered != g.MouseViewport && !(viewport_hovered->Flags & ImGuiViewportFlags_NoInputs)) + g.MouseViewport = viewport_hovered; + + IM_ASSERT(g.MouseViewport != NULL); +} + +// Update user-facing viewport list (g.Viewports -> g.PlatformIO.Viewports after filtering out some) +static void ImGui::UpdateViewportsEndFrame() +{ + ImGuiContext& g = *GImGui; + g.PlatformIO.Viewports.resize(0); + for (int i = 0; i < g.Viewports.Size; i++) + { + ImGuiViewportP* viewport = g.Viewports[i]; + viewport->LastPos = viewport->Pos; + if (viewport->LastFrameActive < g.FrameCount || viewport->Size.x <= 0.0f || viewport->Size.y <= 0.0f) + if (i > 0) // Always include main viewport in the list + continue; + if (viewport->Window && !IsWindowActiveAndVisible(viewport->Window)) + continue; + if (i > 0) + IM_ASSERT(viewport->Window != NULL); + g.PlatformIO.Viewports.push_back(viewport); + } + g.Viewports[0]->ClearRequestFlags(); // Clear main viewport flags because UpdatePlatformWindows() won't do it and may not even be called +} + +// FIXME: We should ideally refactor the system to call this every frame (we currently don't) +ImGuiViewportP* ImGui::AddUpdateViewport(ImGuiWindow* window, ImGuiID id, const ImVec2& pos, const ImVec2& size, ImGuiViewportFlags flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(id != 0); + + flags |= ImGuiViewportFlags_IsPlatformWindow; + if (window != NULL) + { + if (g.MovingWindow && g.MovingWindow->RootWindowDockTree == window) + flags |= ImGuiViewportFlags_NoInputs | ImGuiViewportFlags_NoFocusOnAppearing; + if ((window->Flags & ImGuiWindowFlags_NoMouseInputs) && (window->Flags & ImGuiWindowFlags_NoNavInputs)) + flags |= ImGuiViewportFlags_NoInputs; + if (window->Flags & ImGuiWindowFlags_NoFocusOnAppearing) + flags |= ImGuiViewportFlags_NoFocusOnAppearing; + } + + ImGuiViewportP* viewport = (ImGuiViewportP*)FindViewportByID(id); + if (viewport) + { + // Always update for main viewport as we are already pulling correct platform pos/size (see #4900) + if (!viewport->PlatformRequestMove || viewport->ID == IMGUI_VIEWPORT_DEFAULT_ID) + viewport->Pos = pos; + if (!viewport->PlatformRequestResize || viewport->ID == IMGUI_VIEWPORT_DEFAULT_ID) + viewport->Size = size; + viewport->Flags = flags | (viewport->Flags & (ImGuiViewportFlags_IsMinimized | ImGuiViewportFlags_IsFocused)); // Preserve existing flags + } + else + { + // New viewport + viewport = IM_NEW(ImGuiViewportP)(); + viewport->ID = id; + viewport->Idx = g.Viewports.Size; + viewport->Pos = viewport->LastPos = pos; + viewport->Size = size; + viewport->Flags = flags; + UpdateViewportPlatformMonitor(viewport); + g.Viewports.push_back(viewport); + g.ViewportCreatedCount++; + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Add Viewport %08X '%s'\n", id, window ? window->Name : ""); + + // We normally setup for all viewports in NewFrame() but here need to handle the mid-frame creation of a new viewport. + // We need to extend the fullscreen clip rect so the OverlayDrawList clip is correct for that the first frame + g.DrawListSharedData.ClipRectFullscreen.x = ImMin(g.DrawListSharedData.ClipRectFullscreen.x, viewport->Pos.x); + g.DrawListSharedData.ClipRectFullscreen.y = ImMin(g.DrawListSharedData.ClipRectFullscreen.y, viewport->Pos.y); + g.DrawListSharedData.ClipRectFullscreen.z = ImMax(g.DrawListSharedData.ClipRectFullscreen.z, viewport->Pos.x + viewport->Size.x); + g.DrawListSharedData.ClipRectFullscreen.w = ImMax(g.DrawListSharedData.ClipRectFullscreen.w, viewport->Pos.y + viewport->Size.y); + + // Store initial DpiScale before the OS platform window creation, based on expected monitor data. + // This is so we can select an appropriate font size on the first frame of our window lifetime + if (viewport->PlatformMonitor != -1) + viewport->DpiScale = g.PlatformIO.Monitors[viewport->PlatformMonitor].DpiScale; + } + + viewport->Window = window; + viewport->LastFrameActive = g.FrameCount; + viewport->UpdateWorkRect(); + IM_ASSERT(window == NULL || viewport->ID == window->ID); + + if (window != NULL) + window->ViewportOwned = true; + + return viewport; +} + +static void ImGui::DestroyViewport(ImGuiViewportP* viewport) +{ + // Clear references to this viewport in windows (window->ViewportId becomes the master data) + ImGuiContext& g = *GImGui; + for (ImGuiWindow* window : g.Windows) + { + if (window->Viewport != viewport) + continue; + window->Viewport = NULL; + window->ViewportOwned = false; + } + if (viewport == g.MouseLastHoveredViewport) + g.MouseLastHoveredViewport = NULL; + + // Destroy + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Delete Viewport %08X '%s'\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); + DestroyPlatformWindow(viewport); // In most circumstances the platform window will already be destroyed here. + IM_ASSERT(g.PlatformIO.Viewports.contains(viewport) == false); + IM_ASSERT(g.Viewports[viewport->Idx] == viewport); + g.Viewports.erase(g.Viewports.Data + viewport->Idx); + IM_DELETE(viewport); +} + +// FIXME-VIEWPORT: This is all super messy and ought to be clarified or rewritten. +static void ImGui::WindowSelectViewport(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindowFlags flags = window->Flags; + window->ViewportAllowPlatformMonitorExtend = -1; + + // Restore main viewport if multi-viewport is not supported by the backend + ImGuiViewportP* main_viewport = (ImGuiViewportP*)(void*)GetMainViewport(); + if (!(g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable)) + { + SetWindowViewport(window, main_viewport); + return; + } + window->ViewportOwned = false; + + // Appearing popups reset their viewport so they can inherit again + if ((flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && window->Appearing) + { + window->Viewport = NULL; + window->ViewportId = 0; + } + + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasViewport) == 0) + { + // By default inherit from parent window + if (window->Viewport == NULL && window->ParentWindow && (!window->ParentWindow->IsFallbackWindow || window->ParentWindow->WasActive)) + window->Viewport = window->ParentWindow->Viewport; + + // Attempt to restore saved viewport id (= window that hasn't been activated yet), try to restore the viewport based on saved 'window->ViewportPos' restored from .ini file + if (window->Viewport == NULL && window->ViewportId != 0) + { + window->Viewport = (ImGuiViewportP*)FindViewportByID(window->ViewportId); + if (window->Viewport == NULL && window->ViewportPos.x != FLT_MAX && window->ViewportPos.y != FLT_MAX) + window->Viewport = AddUpdateViewport(window, window->ID, window->ViewportPos, window->Size, ImGuiViewportFlags_None); + } + } + + bool lock_viewport = false; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasViewport) + { + // Code explicitly request a viewport + window->Viewport = (ImGuiViewportP*)FindViewportByID(g.NextWindowData.ViewportId); + window->ViewportId = g.NextWindowData.ViewportId; // Store ID even if Viewport isn't resolved yet. + if (window->Viewport && (window->Flags & ImGuiWindowFlags_DockNodeHost) != 0 && window->Viewport->Window != NULL) + { + window->Viewport->Window = window; + window->Viewport->ID = window->ViewportId = window->ID; // Overwrite ID (always owned by node) + } + lock_viewport = true; + } + else if ((flags & ImGuiWindowFlags_ChildWindow) || (flags & ImGuiWindowFlags_ChildMenu)) + { + // Always inherit viewport from parent window + if (window->DockNode && window->DockNode->HostWindow) + IM_ASSERT(window->DockNode->HostWindow->Viewport == window->ParentWindow->Viewport); + window->Viewport = window->ParentWindow->Viewport; + } + else if (window->DockNode && window->DockNode->HostWindow) + { + // This covers the "always inherit viewport from parent window" case for when a window reattach to a node that was just created mid-frame + window->Viewport = window->DockNode->HostWindow->Viewport; + } + else if (flags & ImGuiWindowFlags_Tooltip) + { + window->Viewport = g.MouseViewport; + } + else if (GetWindowAlwaysWantOwnViewport(window)) + { + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_None); + } + else if (g.MovingWindow && g.MovingWindow->RootWindowDockTree == window && IsMousePosValid()) + { + if (window->Viewport != NULL && window->Viewport->Window == window) + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_None); + } + else + { + // Merge into host viewport? + // We cannot test window->ViewportOwned as it set lower in the function. + // Testing (g.ActiveId == 0 || g.ActiveIdAllowOverlap) to avoid merging during a short-term widget interaction. Main intent was to avoid during resize (see #4212) + bool try_to_merge_into_host_viewport = (window->Viewport && window == window->Viewport->Window && (g.ActiveId == 0 || g.ActiveIdAllowOverlap)); + if (try_to_merge_into_host_viewport) + UpdateTryMergeWindowIntoHostViewports(window); + } + + // Fallback: merge in default viewport if z-order matches, otherwise create a new viewport + if (window->Viewport == NULL) + if (!UpdateTryMergeWindowIntoHostViewport(window, main_viewport)) + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_None); + + // Mark window as allowed to protrude outside of its viewport and into the current monitor + if (!lock_viewport) + { + if (flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) + { + // We need to take account of the possibility that mouse may become invalid. + // Popups/Tooltip always set ViewportAllowPlatformMonitorExtend so GetWindowAllowedExtentRect() will return full monitor bounds. + ImVec2 mouse_ref = (flags & ImGuiWindowFlags_Tooltip) ? g.IO.MousePos : g.BeginPopupStack.back().OpenMousePos; + bool use_mouse_ref = (g.NavDisableHighlight || !g.NavDisableMouseHover || !g.NavWindow); + bool mouse_valid = IsMousePosValid(&mouse_ref); + if ((window->Appearing || (flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_ChildMenu))) && (!use_mouse_ref || mouse_valid)) + window->ViewportAllowPlatformMonitorExtend = FindPlatformMonitorForPos((use_mouse_ref && mouse_valid) ? mouse_ref : NavCalcPreferredRefPos()); + else + window->ViewportAllowPlatformMonitorExtend = window->Viewport->PlatformMonitor; + } + else if (window->Viewport && window != window->Viewport->Window && window->Viewport->Window && !(flags & ImGuiWindowFlags_ChildWindow) && window->DockNode == NULL) + { + // When called from Begin() we don't have access to a proper version of the Hidden flag yet, so we replicate this code. + const bool will_be_visible = (window->DockIsActive && !window->DockTabIsVisible) ? false : true; + if ((window->Flags & ImGuiWindowFlags_DockNodeHost) && window->Viewport->LastFrameActive < g.FrameCount && will_be_visible) + { + // Steal/transfer ownership + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Window '%s' steal Viewport %08X from Window '%s'\n", window->Name, window->Viewport->ID, window->Viewport->Window->Name); + window->Viewport->Window = window; + window->Viewport->ID = window->ID; + window->Viewport->LastNameHash = 0; + } + else if (!UpdateTryMergeWindowIntoHostViewports(window)) // Merge? + { + // New viewport + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_NoFocusOnAppearing); + } + } + else if (window->ViewportAllowPlatformMonitorExtend < 0 && (flags & ImGuiWindowFlags_ChildWindow) == 0) + { + // Regular (non-child, non-popup) windows by default are also allowed to protrude + // Child windows are kept contained within their parent. + window->ViewportAllowPlatformMonitorExtend = window->Viewport->PlatformMonitor; + } + } + + // Update flags + window->ViewportOwned = (window == window->Viewport->Window); + window->ViewportId = window->Viewport->ID; + + // If the OS window has a title bar, hide our imgui title bar + //if (window->ViewportOwned && !(window->Viewport->Flags & ImGuiViewportFlags_NoDecoration)) + // window->Flags |= ImGuiWindowFlags_NoTitleBar; +} + +void ImGui::WindowSyncOwnedViewport(ImGuiWindow* window, ImGuiWindow* parent_window_in_stack) +{ + ImGuiContext& g = *GImGui; + + bool viewport_rect_changed = false; + + // Synchronize window --> viewport in most situations + // Synchronize viewport -> window in case the platform window has been moved or resized from the OS/WM + if (window->Viewport->PlatformRequestMove) + { + window->Pos = window->Viewport->Pos; + MarkIniSettingsDirty(window); + } + else if (memcmp(&window->Viewport->Pos, &window->Pos, sizeof(window->Pos)) != 0) + { + viewport_rect_changed = true; + window->Viewport->Pos = window->Pos; + } + + if (window->Viewport->PlatformRequestResize) + { + window->Size = window->SizeFull = window->Viewport->Size; + MarkIniSettingsDirty(window); + } + else if (memcmp(&window->Viewport->Size, &window->Size, sizeof(window->Size)) != 0) + { + viewport_rect_changed = true; + window->Viewport->Size = window->Size; + } + window->Viewport->UpdateWorkRect(); + + // The viewport may have changed monitor since the global update in UpdateViewportsNewFrame() + // Either a SetNextWindowPos() call in the current frame or a SetWindowPos() call in the previous frame may have this effect. + if (viewport_rect_changed) + UpdateViewportPlatformMonitor(window->Viewport); + + // Update common viewport flags + const ImGuiViewportFlags viewport_flags_to_clear = ImGuiViewportFlags_TopMost | ImGuiViewportFlags_NoTaskBarIcon | ImGuiViewportFlags_NoDecoration | ImGuiViewportFlags_NoRendererClear; + ImGuiViewportFlags viewport_flags = window->Viewport->Flags & ~viewport_flags_to_clear; + ImGuiWindowFlags window_flags = window->Flags; + const bool is_modal = (window_flags & ImGuiWindowFlags_Modal) != 0; + const bool is_short_lived_floating_window = (window_flags & (ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) != 0; + if (window_flags & ImGuiWindowFlags_Tooltip) + viewport_flags |= ImGuiViewportFlags_TopMost; + if ((g.IO.ConfigViewportsNoTaskBarIcon || is_short_lived_floating_window) && !is_modal) + viewport_flags |= ImGuiViewportFlags_NoTaskBarIcon; + if (g.IO.ConfigViewportsNoDecoration || is_short_lived_floating_window) + viewport_flags |= ImGuiViewportFlags_NoDecoration; + + // Not correct to set modal as topmost because: + // - Because other popups can be stacked above a modal (e.g. combo box in a modal) + // - ImGuiViewportFlags_TopMost is currently handled different in backends: in Win32 it is "appear top most" whereas in GLFW and SDL it is "stay topmost" + //if (flags & ImGuiWindowFlags_Modal) + // viewport_flags |= ImGuiViewportFlags_TopMost; + + // For popups and menus that may be protruding out of their parent viewport, we enable _NoFocusOnClick so that clicking on them + // won't steal the OS focus away from their parent window (which may be reflected in OS the title bar decoration). + // Setting _NoFocusOnClick would technically prevent us from bringing back to front in case they are being covered by an OS window from a different app, + // but it shouldn't be much of a problem considering those are already popups that are closed when clicking elsewhere. + if (is_short_lived_floating_window && !is_modal) + viewport_flags |= ImGuiViewportFlags_NoFocusOnAppearing | ImGuiViewportFlags_NoFocusOnClick; + + // We can overwrite viewport flags using ImGuiWindowClass (advanced users) + if (window->WindowClass.ViewportFlagsOverrideSet) + viewport_flags |= window->WindowClass.ViewportFlagsOverrideSet; + if (window->WindowClass.ViewportFlagsOverrideClear) + viewport_flags &= ~window->WindowClass.ViewportFlagsOverrideClear; + + // We can also tell the backend that clearing the platform window won't be necessary, + // as our window background is filling the viewport and we have disabled BgAlpha. + // FIXME: Work on support for per-viewport transparency (#2766) + if (!(window_flags & ImGuiWindowFlags_NoBackground)) + viewport_flags |= ImGuiViewportFlags_NoRendererClear; + + window->Viewport->Flags = viewport_flags; + + // Update parent viewport ID + // (the !IsFallbackWindow test mimic the one done in WindowSelectViewport()) + if (window->WindowClass.ParentViewportId != (ImGuiID)-1) + window->Viewport->ParentViewportId = window->WindowClass.ParentViewportId; + else if ((window_flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && parent_window_in_stack && (!parent_window_in_stack->IsFallbackWindow || parent_window_in_stack->WasActive)) + window->Viewport->ParentViewportId = parent_window_in_stack->Viewport->ID; + else + window->Viewport->ParentViewportId = g.IO.ConfigViewportsNoDefaultParent ? 0 : IMGUI_VIEWPORT_DEFAULT_ID; +} + +// Called by user at the end of the main loop, after EndFrame() +// This will handle the creation/update of all OS windows via function defined in the ImGuiPlatformIO api. +void ImGui::UpdatePlatformWindows() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.FrameCountEnded == g.FrameCount && "Forgot to call Render() or EndFrame() before UpdatePlatformWindows()?"); + IM_ASSERT(g.FrameCountPlatformEnded < g.FrameCount); + g.FrameCountPlatformEnded = g.FrameCount; + if (!(g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable)) + return; + + // Create/resize/destroy platform windows to match each active viewport. + // Skip the main viewport (index 0), which is always fully handled by the application! + for (int i = 1; i < g.Viewports.Size; i++) + { + ImGuiViewportP* viewport = g.Viewports[i]; + + // Destroy platform window if the viewport hasn't been submitted or if it is hosting a hidden window + // (the implicit/fallback Debug##Default window will be registering its viewport then be disabled, causing a dummy DestroyPlatformWindow to be made each frame) + bool destroy_platform_window = false; + destroy_platform_window |= (viewport->LastFrameActive < g.FrameCount - 1); + destroy_platform_window |= (viewport->Window && !IsWindowActiveAndVisible(viewport->Window)); + if (destroy_platform_window) + { + DestroyPlatformWindow(viewport); + continue; + } + + // New windows that appears directly in a new viewport won't always have a size on their first frame + if (viewport->LastFrameActive < g.FrameCount || viewport->Size.x <= 0 || viewport->Size.y <= 0) + continue; + + // Create window + const bool is_new_platform_window = (viewport->PlatformWindowCreated == false); + if (is_new_platform_window) + { + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Create Platform Window %08X '%s'\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); + g.PlatformIO.Platform_CreateWindow(viewport); + if (g.PlatformIO.Renderer_CreateWindow != NULL) + g.PlatformIO.Renderer_CreateWindow(viewport); + g.PlatformWindowsCreatedCount++; + viewport->LastNameHash = 0; + viewport->LastPlatformPos = viewport->LastPlatformSize = ImVec2(FLT_MAX, FLT_MAX); // By clearing those we'll enforce a call to Platform_SetWindowPos/Size below, before Platform_ShowWindow (FIXME: Is that necessary?) + viewport->LastRendererSize = viewport->Size; // We don't need to call Renderer_SetWindowSize() as it is expected Renderer_CreateWindow() already did it. + viewport->PlatformWindowCreated = true; + } + + // Apply Position and Size (from ImGui to Platform/Renderer backends) + if ((viewport->LastPlatformPos.x != viewport->Pos.x || viewport->LastPlatformPos.y != viewport->Pos.y) && !viewport->PlatformRequestMove) + g.PlatformIO.Platform_SetWindowPos(viewport, viewport->Pos); + if ((viewport->LastPlatformSize.x != viewport->Size.x || viewport->LastPlatformSize.y != viewport->Size.y) && !viewport->PlatformRequestResize) + g.PlatformIO.Platform_SetWindowSize(viewport, viewport->Size); + if ((viewport->LastRendererSize.x != viewport->Size.x || viewport->LastRendererSize.y != viewport->Size.y) && g.PlatformIO.Renderer_SetWindowSize) + g.PlatformIO.Renderer_SetWindowSize(viewport, viewport->Size); + viewport->LastPlatformPos = viewport->Pos; + viewport->LastPlatformSize = viewport->LastRendererSize = viewport->Size; + + // Update title bar (if it changed) + if (ImGuiWindow* window_for_title = GetWindowForTitleDisplay(viewport->Window)) + { + const char* title_begin = window_for_title->Name; + char* title_end = (char*)(intptr_t)FindRenderedTextEnd(title_begin); + const ImGuiID title_hash = ImHashStr(title_begin, title_end - title_begin); + if (viewport->LastNameHash != title_hash) + { + char title_end_backup_c = *title_end; + *title_end = 0; // Cut existing buffer short instead of doing an alloc/free, no small gain. + g.PlatformIO.Platform_SetWindowTitle(viewport, title_begin); + *title_end = title_end_backup_c; + viewport->LastNameHash = title_hash; + } + } + + // Update alpha (if it changed) + if (viewport->LastAlpha != viewport->Alpha && g.PlatformIO.Platform_SetWindowAlpha) + g.PlatformIO.Platform_SetWindowAlpha(viewport, viewport->Alpha); + viewport->LastAlpha = viewport->Alpha; + + // Optional, general purpose call to allow the backend to perform general book-keeping even if things haven't changed. + if (g.PlatformIO.Platform_UpdateWindow) + g.PlatformIO.Platform_UpdateWindow(viewport); + + if (is_new_platform_window) + { + // On startup ensure new platform window don't steal focus (give it a few frames, as nested contents may lead to viewport being created a few frames late) + if (g.FrameCount < 3) + viewport->Flags |= ImGuiViewportFlags_NoFocusOnAppearing; + + // Show window + g.PlatformIO.Platform_ShowWindow(viewport); + + // Even without focus, we assume the window becomes front-most. + // This is useful for our platform z-order heuristic when io.MouseHoveredViewport is not available. + if (viewport->LastFocusedStampCount != g.ViewportFocusedStampCount) + viewport->LastFocusedStampCount = ++g.ViewportFocusedStampCount; + } + + // Clear request flags + viewport->ClearRequestFlags(); + } +} + +// This is a default/basic function for performing the rendering/swap of multiple Platform Windows. +// Custom renderers may prefer to not call this function at all, and instead iterate the publicly exposed platform data and handle rendering/sync themselves. +// The Render/Swap functions stored in ImGuiPlatformIO are merely here to allow for this helper to exist, but you can do it yourself: +// +// ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); +// for (int i = 1; i < platform_io.Viewports.Size; i++) +// if ((platform_io.Viewports[i]->Flags & ImGuiViewportFlags_Minimized) == 0) +// MyRenderFunction(platform_io.Viewports[i], my_args); +// for (int i = 1; i < platform_io.Viewports.Size; i++) +// if ((platform_io.Viewports[i]->Flags & ImGuiViewportFlags_Minimized) == 0) +// MySwapBufferFunction(platform_io.Viewports[i], my_args); +// +void ImGui::RenderPlatformWindowsDefault(void* platform_render_arg, void* renderer_render_arg) +{ + // Skip the main viewport (index 0), which is always fully handled by the application! + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int i = 1; i < platform_io.Viewports.Size; i++) + { + ImGuiViewport* viewport = platform_io.Viewports[i]; + if (viewport->Flags & ImGuiViewportFlags_IsMinimized) + continue; + if (platform_io.Platform_RenderWindow) platform_io.Platform_RenderWindow(viewport, platform_render_arg); + if (platform_io.Renderer_RenderWindow) platform_io.Renderer_RenderWindow(viewport, renderer_render_arg); + } + for (int i = 1; i < platform_io.Viewports.Size; i++) + { + ImGuiViewport* viewport = platform_io.Viewports[i]; + if (viewport->Flags & ImGuiViewportFlags_IsMinimized) + continue; + if (platform_io.Platform_SwapBuffers) platform_io.Platform_SwapBuffers(viewport, platform_render_arg); + if (platform_io.Renderer_SwapBuffers) platform_io.Renderer_SwapBuffers(viewport, renderer_render_arg); + } +} + +static int ImGui::FindPlatformMonitorForPos(const ImVec2& pos) +{ + ImGuiContext& g = *GImGui; + for (int monitor_n = 0; monitor_n < g.PlatformIO.Monitors.Size; monitor_n++) + { + const ImGuiPlatformMonitor& monitor = g.PlatformIO.Monitors[monitor_n]; + if (ImRect(monitor.MainPos, monitor.MainPos + monitor.MainSize).Contains(pos)) + return monitor_n; + } + return -1; +} + +// Search for the monitor with the largest intersection area with the given rectangle +// We generally try to avoid searching loops but the monitor count should be very small here +// FIXME-OPT: We could test the last monitor used for that viewport first, and early +static int ImGui::FindPlatformMonitorForRect(const ImRect& rect) +{ + ImGuiContext& g = *GImGui; + + const int monitor_count = g.PlatformIO.Monitors.Size; + if (monitor_count <= 1) + return monitor_count - 1; + + // Use a minimum threshold of 1.0f so a zero-sized rect won't false positive, and will still find the correct monitor given its position. + // This is necessary for tooltips which always resize down to zero at first. + const float surface_threshold = ImMax(rect.GetWidth() * rect.GetHeight() * 0.5f, 1.0f); + int best_monitor_n = -1; + float best_monitor_surface = 0.001f; + + for (int monitor_n = 0; monitor_n < g.PlatformIO.Monitors.Size && best_monitor_surface < surface_threshold; monitor_n++) + { + const ImGuiPlatformMonitor& monitor = g.PlatformIO.Monitors[monitor_n]; + const ImRect monitor_rect = ImRect(monitor.MainPos, monitor.MainPos + monitor.MainSize); + if (monitor_rect.Contains(rect)) + return monitor_n; + ImRect overlapping_rect = rect; + overlapping_rect.ClipWithFull(monitor_rect); + float overlapping_surface = overlapping_rect.GetWidth() * overlapping_rect.GetHeight(); + if (overlapping_surface < best_monitor_surface) + continue; + best_monitor_surface = overlapping_surface; + best_monitor_n = monitor_n; + } + return best_monitor_n; +} + +// Update monitor from viewport rectangle (we'll use this info to clamp windows and save windows lost in a removed monitor) +static void ImGui::UpdateViewportPlatformMonitor(ImGuiViewportP* viewport) +{ + viewport->PlatformMonitor = (short)FindPlatformMonitorForRect(viewport->GetMainRect()); +} + +// Return value is always != NULL, but don't hold on it across frames. +const ImGuiPlatformMonitor* ImGui::GetViewportPlatformMonitor(ImGuiViewport* viewport_p) +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)viewport_p; + int monitor_idx = viewport->PlatformMonitor; + if (monitor_idx >= 0 && monitor_idx < g.PlatformIO.Monitors.Size) + return &g.PlatformIO.Monitors[monitor_idx]; + return &g.FallbackMonitor; +} + +void ImGui::DestroyPlatformWindow(ImGuiViewportP* viewport) +{ + ImGuiContext& g = *GImGui; + if (viewport->PlatformWindowCreated) + { + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Destroy Platform Window %08X '%s'\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); + if (g.PlatformIO.Renderer_DestroyWindow) + g.PlatformIO.Renderer_DestroyWindow(viewport); + if (g.PlatformIO.Platform_DestroyWindow) + g.PlatformIO.Platform_DestroyWindow(viewport); + IM_ASSERT(viewport->RendererUserData == NULL && viewport->PlatformUserData == NULL); + + // Don't clear PlatformWindowCreated for the main viewport, as we initially set that up to true in Initialize() + // The righter way may be to leave it to the backend to set this flag all-together, and made the flag public. + if (viewport->ID != IMGUI_VIEWPORT_DEFAULT_ID) + viewport->PlatformWindowCreated = false; + } + else + { + IM_ASSERT(viewport->RendererUserData == NULL && viewport->PlatformUserData == NULL && viewport->PlatformHandle == NULL); + } + viewport->RendererUserData = viewport->PlatformUserData = viewport->PlatformHandle = NULL; + viewport->ClearRequestFlags(); +} + +void ImGui::DestroyPlatformWindows() +{ + // We call the destroy window on every viewport (including the main viewport, index 0) to give a chance to the backend + // to clear any data they may have stored in e.g. PlatformUserData, RendererUserData. + // It is convenient for the platform backend code to store something in the main viewport, in order for e.g. the mouse handling + // code to operator a consistent manner. + // It is expected that the backend can handle calls to Renderer_DestroyWindow/Platform_DestroyWindow without + // crashing if it doesn't have data stored. + ImGuiContext& g = *GImGui; + for (ImGuiViewportP* viewport : g.Viewports) + DestroyPlatformWindow(viewport); +} + + +//----------------------------------------------------------------------------- +// [SECTION] DOCKING +//----------------------------------------------------------------------------- +// Docking: Internal Types +// Docking: Forward Declarations +// Docking: ImGuiDockContext +// Docking: ImGuiDockContext Docking/Undocking functions +// Docking: ImGuiDockNode +// Docking: ImGuiDockNode Tree manipulation functions +// Docking: Public Functions (SetWindowDock, DockSpace, DockSpaceOverViewport) +// Docking: Builder Functions +// Docking: Begin/End Support Functions (called from Begin/End) +// Docking: Settings +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// Typical Docking call flow: (root level is generally public API): +//----------------------------------------------------------------------------- +// - NewFrame() new dear imgui frame +// | DockContextNewFrameUpdateUndocking() - process queued undocking requests +// | - DockContextProcessUndockWindow() - process one window undocking request +// | - DockContextProcessUndockNode() - process one whole node undocking request +// | DockContextNewFrameUpdateUndocking() - process queue docking requests, create floating dock nodes +// | - update g.HoveredDockNode - [debug] update node hovered by mouse +// | - DockContextProcessDock() - process one docking request +// | - DockNodeUpdate() +// | - DockNodeUpdateForRootNode() +// | - DockNodeUpdateFlagsAndCollapse() +// | - DockNodeFindInfo() +// | - destroy unused node or tab bar +// | - create dock node host window +// | - Begin() etc. +// | - DockNodeStartMouseMovingWindow() +// | - DockNodeTreeUpdatePosSize() +// | - DockNodeTreeUpdateSplitter() +// | - draw node background +// | - DockNodeUpdateTabBar() - create/update tab bar for a docking node +// | - DockNodeAddTabBar() +// | - DockNodeWindowMenuUpdate() +// | - DockNodeCalcTabBarLayout() +// | - BeginTabBarEx() +// | - TabItemEx() calls +// | - EndTabBar() +// | - BeginDockableDragDropTarget() +// | - DockNodeUpdate() - recurse into child nodes... +//----------------------------------------------------------------------------- +// - DockSpace() user submit a dockspace into a window +// | Begin(Child) - create a child window +// | DockNodeUpdate() - call main dock node update function +// | End(Child) +// | ItemSize() +//----------------------------------------------------------------------------- +// - Begin() +// | BeginDocked() +// | BeginDockableDragDropSource() +// | BeginDockableDragDropTarget() +// | - DockNodePreviewDockRender() +//----------------------------------------------------------------------------- +// - EndFrame() +// | DockContextEndFrame() +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// Docking: Internal Types +//----------------------------------------------------------------------------- +// - ImGuiDockRequestType +// - ImGuiDockRequest +// - ImGuiDockPreviewData +// - ImGuiDockNodeSettings +// - ImGuiDockContext +//----------------------------------------------------------------------------- + +enum ImGuiDockRequestType +{ + ImGuiDockRequestType_None = 0, + ImGuiDockRequestType_Dock, + ImGuiDockRequestType_Undock, + ImGuiDockRequestType_Split // Split is the same as Dock but without a DockPayload +}; + +struct ImGuiDockRequest +{ + ImGuiDockRequestType Type; + ImGuiWindow* DockTargetWindow; // Destination/Target Window to dock into (may be a loose window or a DockNode, might be NULL in which case DockTargetNode cannot be NULL) + ImGuiDockNode* DockTargetNode; // Destination/Target Node to dock into + ImGuiWindow* DockPayload; // Source/Payload window to dock (may be a loose window or a DockNode), [Optional] + ImGuiDir DockSplitDir; + float DockSplitRatio; + bool DockSplitOuter; + ImGuiWindow* UndockTargetWindow; + ImGuiDockNode* UndockTargetNode; + + ImGuiDockRequest() + { + Type = ImGuiDockRequestType_None; + DockTargetWindow = DockPayload = UndockTargetWindow = NULL; + DockTargetNode = UndockTargetNode = NULL; + DockSplitDir = ImGuiDir_None; + DockSplitRatio = 0.5f; + DockSplitOuter = false; + } +}; + +struct ImGuiDockPreviewData +{ + ImGuiDockNode FutureNode; + bool IsDropAllowed; + bool IsCenterAvailable; + bool IsSidesAvailable; // Hold your breath, grammar freaks.. + bool IsSplitDirExplicit; // Set when hovered the drop rect (vs. implicit SplitDir==None when hovered the window) + ImGuiDockNode* SplitNode; + ImGuiDir SplitDir; + float SplitRatio; + ImRect DropRectsDraw[ImGuiDir_COUNT + 1]; // May be slightly different from hit-testing drop rects used in DockNodeCalcDropRects() + + ImGuiDockPreviewData() : FutureNode(0) { IsDropAllowed = IsCenterAvailable = IsSidesAvailable = IsSplitDirExplicit = false; SplitNode = NULL; SplitDir = ImGuiDir_None; SplitRatio = 0.f; for (int n = 0; n < IM_ARRAYSIZE(DropRectsDraw); n++) DropRectsDraw[n] = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); } +}; + +// Persistent Settings data, stored contiguously in SettingsNodes (sizeof() ~32 bytes) +struct ImGuiDockNodeSettings +{ + ImGuiID ID; + ImGuiID ParentNodeId; + ImGuiID ParentWindowId; + ImGuiID SelectedTabId; + signed char SplitAxis; + char Depth; + ImGuiDockNodeFlags Flags; // NB: We save individual flags one by one in ascii format (ImGuiDockNodeFlags_SavedFlagsMask_) + ImVec2ih Pos; + ImVec2ih Size; + ImVec2ih SizeRef; + ImGuiDockNodeSettings() { memset(this, 0, sizeof(*this)); SplitAxis = ImGuiAxis_None; } +}; + +//----------------------------------------------------------------------------- +// Docking: Forward Declarations +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // ImGuiDockContext + static ImGuiDockNode* DockContextAddNode(ImGuiContext* ctx, ImGuiID id); + static void DockContextRemoveNode(ImGuiContext* ctx, ImGuiDockNode* node, bool merge_sibling_into_parent_node); + static void DockContextQueueNotifyRemovedNode(ImGuiContext* ctx, ImGuiDockNode* node); + static void DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req); + static void DockContextPruneUnusedSettingsNodes(ImGuiContext* ctx); + static ImGuiDockNode* DockContextBindNodeToWindow(ImGuiContext* ctx, ImGuiWindow* window); + static void DockContextBuildNodesFromSettings(ImGuiContext* ctx, ImGuiDockNodeSettings* node_settings_array, int node_settings_count); + static void DockContextBuildAddWindowsToNodes(ImGuiContext* ctx, ImGuiID root_id); // Use root_id==0 to add all + + // ImGuiDockNode + static void DockNodeAddWindow(ImGuiDockNode* node, ImGuiWindow* window, bool add_to_tab_bar); + static void DockNodeMoveWindows(ImGuiDockNode* dst_node, ImGuiDockNode* src_node); + static void DockNodeMoveChildNodes(ImGuiDockNode* dst_node, ImGuiDockNode* src_node); + static ImGuiWindow* DockNodeFindWindowByID(ImGuiDockNode* node, ImGuiID id); + static void DockNodeApplyPosSizeToWindows(ImGuiDockNode* node); + static void DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window, ImGuiID save_dock_id); + static void DockNodeHideHostWindow(ImGuiDockNode* node); + static void DockNodeUpdate(ImGuiDockNode* node); + static void DockNodeUpdateForRootNode(ImGuiDockNode* node); + static void DockNodeUpdateFlagsAndCollapse(ImGuiDockNode* node); + static void DockNodeUpdateHasCentralNodeChild(ImGuiDockNode* node); + static void DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_window); + static void DockNodeAddTabBar(ImGuiDockNode* node); + static void DockNodeRemoveTabBar(ImGuiDockNode* node); + static void DockNodeWindowMenuUpdate(ImGuiDockNode* node, ImGuiTabBar* tab_bar); + static void DockNodeUpdateVisibleFlag(ImGuiDockNode* node); + static void DockNodeStartMouseMovingWindow(ImGuiDockNode* node, ImGuiWindow* window); + static bool DockNodeIsDropAllowed(ImGuiWindow* host_window, ImGuiWindow* payload_window); + static void DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDockPreviewData* preview_data, bool is_explicit_target, bool is_outer_docking); + static void DockNodePreviewDockRender(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, const ImGuiDockPreviewData* preview_data); + static void DockNodeCalcTabBarLayout(const ImGuiDockNode* node, ImRect* out_title_rect, ImRect* out_tab_bar_rect, ImVec2* out_window_menu_button_pos, ImVec2* out_close_button_pos); + static void DockNodeCalcSplitRects(ImVec2& pos_old, ImVec2& size_old, ImVec2& pos_new, ImVec2& size_new, ImGuiDir dir, ImVec2 size_new_desired); + static bool DockNodeCalcDropRectsAndTestMousePos(const ImRect& parent, ImGuiDir dir, ImRect& out_draw, bool outer_docking, ImVec2* test_mouse_pos); + static const char* DockNodeGetHostWindowTitle(ImGuiDockNode* node, char* buf, int buf_size) { ImFormatString(buf, buf_size, "##DockNode_%02X", node->ID); return buf; } + static int DockNodeGetTabOrder(ImGuiWindow* window); + + // ImGuiDockNode tree manipulations + static void DockNodeTreeSplit(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiAxis split_axis, int split_first_child, float split_ratio, ImGuiDockNode* new_node); + static void DockNodeTreeMerge(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiDockNode* merge_lead_child); + static void DockNodeTreeUpdatePosSize(ImGuiDockNode* node, ImVec2 pos, ImVec2 size, ImGuiDockNode* only_write_to_single_node = NULL); + static void DockNodeTreeUpdateSplitter(ImGuiDockNode* node); + static ImGuiDockNode* DockNodeTreeFindVisibleNodeByPos(ImGuiDockNode* node, ImVec2 pos); + static ImGuiDockNode* DockNodeTreeFindFallbackLeafNode(ImGuiDockNode* node); + + // Settings + static void DockSettingsRenameNodeReferences(ImGuiID old_node_id, ImGuiID new_node_id); + static void DockSettingsRemoveNodeReferences(ImGuiID* node_ids, int node_ids_count); + static ImGuiDockNodeSettings* DockSettingsFindNodeSettings(ImGuiContext* ctx, ImGuiID node_id); + static void DockSettingsHandler_ClearAll(ImGuiContext*, ImGuiSettingsHandler*); + static void DockSettingsHandler_ApplyAll(ImGuiContext*, ImGuiSettingsHandler*); + static void* DockSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name); + static void DockSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line); + static void DockSettingsHandler_WriteAll(ImGuiContext* imgui_ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf); +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockContext +//----------------------------------------------------------------------------- +// The lifetime model is different from the one of regular windows: we always create a ImGuiDockNode for each ImGuiDockNodeSettings, +// or we always hold the entire docking node tree. Nodes are frequently hidden, e.g. if the window(s) or child nodes they host are not active. +// At boot time only, we run a simple GC to remove nodes that have no references. +// Because dock node settings (which are small, contiguous structures) are always mirrored by their corresponding dock nodes (more complete structures), +// we can also very easily recreate the nodes from scratch given the settings data (this is what DockContextRebuild() does). +// This is convenient as docking reconfiguration can be implemented by mostly poking at the simpler settings data. +//----------------------------------------------------------------------------- +// - DockContextInitialize() +// - DockContextShutdown() +// - DockContextClearNodes() +// - DockContextRebuildNodes() +// - DockContextNewFrameUpdateUndocking() +// - DockContextNewFrameUpdateDocking() +// - DockContextEndFrame() +// - DockContextFindNodeByID() +// - DockContextBindNodeToWindow() +// - DockContextGenNodeID() +// - DockContextAddNode() +// - DockContextRemoveNode() +// - ImGuiDockContextPruneNodeData +// - DockContextPruneUnusedSettingsNodes() +// - DockContextBuildNodesFromSettings() +// - DockContextBuildAddWindowsToNodes() +//----------------------------------------------------------------------------- + +void ImGui::DockContextInitialize(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + + // Add .ini handle for persistent docking data + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Docking"; + ini_handler.TypeHash = ImHashStr("Docking"); + ini_handler.ClearAllFn = DockSettingsHandler_ClearAll; + ini_handler.ReadInitFn = DockSettingsHandler_ClearAll; // Also clear on read + ini_handler.ReadOpenFn = DockSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = DockSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = DockSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = DockSettingsHandler_WriteAll; + g.SettingsHandlers.push_back(ini_handler); + + g.DockNodeWindowMenuHandler = &DockNodeWindowMenuHandler_Default; +} + +void ImGui::DockContextShutdown(ImGuiContext* ctx) +{ + ImGuiDockContext* dc = &ctx->DockContext; + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + IM_DELETE(node); +} + +void ImGui::DockContextClearNodes(ImGuiContext* ctx, ImGuiID root_id, bool clear_settings_refs) +{ + IM_UNUSED(ctx); + IM_ASSERT(ctx == GImGui); + DockBuilderRemoveNodeDockedWindows(root_id, clear_settings_refs); + DockBuilderRemoveNodeChildNodes(root_id); +} + +// [DEBUG] This function also acts as a defacto test to make sure we can rebuild from scratch without a glitch +// (Different from DockSettingsHandler_ClearAll() + DockSettingsHandler_ApplyAll() because this reuses current settings!) +void ImGui::DockContextRebuildNodes(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextRebuildNodes\n"); + SaveIniSettingsToMemory(); + ImGuiID root_id = 0; // Rebuild all + DockContextClearNodes(ctx, root_id, false); + DockContextBuildNodesFromSettings(ctx, dc->NodesSettings.Data, dc->NodesSettings.Size); + DockContextBuildAddWindowsToNodes(ctx, root_id); +} + +// Docking context update function, called by NewFrame() +void ImGui::DockContextNewFrameUpdateUndocking(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + { + if (dc->Nodes.Data.Size > 0 || dc->Requests.Size > 0) + DockContextClearNodes(ctx, 0, true); + return; + } + + // Setting NoSplit at runtime merges all nodes + if (g.IO.ConfigDockingNoSplit) + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->IsRootNode() && node->IsSplitNode()) + { + DockBuilderRemoveNodeChildNodes(node->ID); + //dc->WantFullRebuild = true; + } + + // Process full rebuild +#if 0 + if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_C))) + dc->WantFullRebuild = true; +#endif + if (dc->WantFullRebuild) + { + DockContextRebuildNodes(ctx); + dc->WantFullRebuild = false; + } + + // Process Undocking requests (we need to process them _before_ the UpdateMouseMovingWindowNewFrame call in NewFrame) + for (ImGuiDockRequest& req : dc->Requests) + { + if (req.Type == ImGuiDockRequestType_Undock && req.UndockTargetWindow) + DockContextProcessUndockWindow(ctx, req.UndockTargetWindow); + else if (req.Type == ImGuiDockRequestType_Undock && req.UndockTargetNode) + DockContextProcessUndockNode(ctx, req.UndockTargetNode); + } +} + +// Docking context update function, called by NewFrame() +void ImGui::DockContextNewFrameUpdateDocking(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + return; + + // [DEBUG] Store hovered dock node. + // We could in theory use DockNodeTreeFindVisibleNodeByPos() on the root host dock node, but using ->DockNode is a good shortcut. + // Note this is mostly a debug thing and isn't actually used for docking target, because docking involve more detailed filtering. + g.DebugHoveredDockNode = NULL; + if (ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow) + { + if (hovered_window->DockNodeAsHost) + g.DebugHoveredDockNode = DockNodeTreeFindVisibleNodeByPos(hovered_window->DockNodeAsHost, g.IO.MousePos); + else if (hovered_window->RootWindow->DockNode) + g.DebugHoveredDockNode = hovered_window->RootWindow->DockNode; + } + + // Process Docking requests + for (ImGuiDockRequest& req : dc->Requests) + if (req.Type == ImGuiDockRequestType_Dock) + DockContextProcessDock(ctx, &req); + dc->Requests.resize(0); + + // Create windows for each automatic docking nodes + // We can have NULL pointers when we delete nodes, but because ID are recycled this should amortize nicely (and our node count will never be very high) + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->IsFloatingNode()) + DockNodeUpdate(node); +} + +void ImGui::DockContextEndFrame(ImGuiContext* ctx) +{ + // Draw backgrounds of node missing their window + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &g.DockContext; + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->LastFrameActive == g.FrameCount && node->IsVisible && node->HostWindow && node->IsLeafNode() && !node->IsBgDrawnThisFrame) + { + ImRect bg_rect(node->Pos + ImVec2(0.0f, GetFrameHeight()), node->Pos + node->Size); + ImDrawFlags bg_rounding_flags = CalcRoundingFlagsForRectInRect(bg_rect, node->HostWindow->Rect(), g.Style.DockingSeparatorSize); + node->HostWindow->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + node->HostWindow->DrawList->AddRectFilled(bg_rect.Min, bg_rect.Max, node->LastBgColor, node->HostWindow->WindowRounding, bg_rounding_flags); + } +} + +ImGuiDockNode* ImGui::DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id) +{ + return (ImGuiDockNode*)ctx->DockContext.Nodes.GetVoidPtr(id); +} + +ImGuiID ImGui::DockContextGenNodeID(ImGuiContext* ctx) +{ + // Generate an ID for new node (the exact ID value doesn't matter as long as it is not already used) + // FIXME-OPT FIXME-DOCK: This is suboptimal, even if the node count is small enough not to be a worry.0 + // We should poke in ctx->Nodes to find a suitable ID faster. Even more so trivial that ctx->Nodes lookup is already sorted. + ImGuiID id = 0x0001; + while (DockContextFindNodeByID(ctx, id) != NULL) + id++; + return id; +} + +static ImGuiDockNode* ImGui::DockContextAddNode(ImGuiContext* ctx, ImGuiID id) +{ + // Generate an ID for the new node (the exact ID value doesn't matter as long as it is not already used) and add the first window. + ImGuiContext& g = *ctx; + if (id == 0) + id = DockContextGenNodeID(ctx); + else + IM_ASSERT(DockContextFindNodeByID(ctx, id) == NULL); + + // We don't set node->LastFrameAlive on construction. Nodes are always created at all time to reflect .ini settings! + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextAddNode 0x%08X\n", id); + ImGuiDockNode* node = IM_NEW(ImGuiDockNode)(id); + ctx->DockContext.Nodes.SetVoidPtr(node->ID, node); + return node; +} + +static void ImGui::DockContextRemoveNode(ImGuiContext* ctx, ImGuiDockNode* node, bool merge_sibling_into_parent_node) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextRemoveNode 0x%08X\n", node->ID); + IM_ASSERT(DockContextFindNodeByID(ctx, node->ID) == node); + IM_ASSERT(node->ChildNodes[0] == NULL && node->ChildNodes[1] == NULL); + IM_ASSERT(node->Windows.Size == 0); + + if (node->HostWindow) + node->HostWindow->DockNodeAsHost = NULL; + + ImGuiDockNode* parent_node = node->ParentNode; + const bool merge = (merge_sibling_into_parent_node && parent_node != NULL); + if (merge) + { + IM_ASSERT(parent_node->ChildNodes[0] == node || parent_node->ChildNodes[1] == node); + ImGuiDockNode* sibling_node = (parent_node->ChildNodes[0] == node ? parent_node->ChildNodes[1] : parent_node->ChildNodes[0]); + DockNodeTreeMerge(&g, parent_node, sibling_node); + } + else + { + for (int n = 0; parent_node && n < IM_ARRAYSIZE(parent_node->ChildNodes); n++) + if (parent_node->ChildNodes[n] == node) + node->ParentNode->ChildNodes[n] = NULL; + dc->Nodes.SetVoidPtr(node->ID, NULL); + IM_DELETE(node); + } +} + +static int IMGUI_CDECL DockNodeComparerDepthMostFirst(const void* lhs, const void* rhs) +{ + const ImGuiDockNode* a = *(const ImGuiDockNode* const*)lhs; + const ImGuiDockNode* b = *(const ImGuiDockNode* const*)rhs; + return ImGui::DockNodeGetDepth(b) - ImGui::DockNodeGetDepth(a); +} + +// Pre C++0x doesn't allow us to use a function-local type (without linkage) as template parameter, so we moved this here. +struct ImGuiDockContextPruneNodeData +{ + int CountWindows, CountChildWindows, CountChildNodes; + ImGuiID RootId; + ImGuiDockContextPruneNodeData() { CountWindows = CountChildWindows = CountChildNodes = 0; RootId = 0; } +}; + +// Garbage collect unused nodes (run once at init time) +static void ImGui::DockContextPruneUnusedSettingsNodes(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + IM_ASSERT(g.Windows.Size == 0); + + ImPool pool; + pool.Reserve(dc->NodesSettings.Size); + + // Count child nodes and compute RootID + for (int settings_n = 0; settings_n < dc->NodesSettings.Size; settings_n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[settings_n]; + ImGuiDockContextPruneNodeData* parent_data = settings->ParentNodeId ? pool.GetByKey(settings->ParentNodeId) : 0; + pool.GetOrAddByKey(settings->ID)->RootId = parent_data ? parent_data->RootId : settings->ID; + if (settings->ParentNodeId) + pool.GetOrAddByKey(settings->ParentNodeId)->CountChildNodes++; + } + + // Count reference to dock ids from dockspaces + // We track the 'auto-DockNode <- manual-Window <- manual-DockSpace' in order to avoid 'auto-DockNode' being ditched by DockContextPruneUnusedSettingsNodes() + for (int settings_n = 0; settings_n < dc->NodesSettings.Size; settings_n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[settings_n]; + if (settings->ParentWindowId != 0) + if (ImGuiWindowSettings* window_settings = FindWindowSettingsByID(settings->ParentWindowId)) + if (window_settings->DockId) + if (ImGuiDockContextPruneNodeData* data = pool.GetByKey(window_settings->DockId)) + data->CountChildNodes++; + } + + // Count reference to dock ids from window settings + // We guard against the possibility of an invalid .ini file (RootID may point to a missing node) + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (ImGuiID dock_id = settings->DockId) + if (ImGuiDockContextPruneNodeData* data = pool.GetByKey(dock_id)) + { + data->CountWindows++; + if (ImGuiDockContextPruneNodeData* data_root = (data->RootId == dock_id) ? data : pool.GetByKey(data->RootId)) + data_root->CountChildWindows++; + } + + // Prune + for (int settings_n = 0; settings_n < dc->NodesSettings.Size; settings_n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[settings_n]; + ImGuiDockContextPruneNodeData* data = pool.GetByKey(settings->ID); + if (data->CountWindows > 1) + continue; + ImGuiDockContextPruneNodeData* data_root = (data->RootId == settings->ID) ? data : pool.GetByKey(data->RootId); + + bool remove = false; + remove |= (data->CountWindows == 1 && settings->ParentNodeId == 0 && data->CountChildNodes == 0 && !(settings->Flags & ImGuiDockNodeFlags_CentralNode)); // Floating root node with only 1 window + remove |= (data->CountWindows == 0 && settings->ParentNodeId == 0 && data->CountChildNodes == 0); // Leaf nodes with 0 window + remove |= (data_root->CountChildWindows == 0); + if (remove) + { + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextPruneUnusedSettingsNodes: Prune 0x%08X\n", settings->ID); + DockSettingsRemoveNodeReferences(&settings->ID, 1); + settings->ID = 0; + } + } +} + +static void ImGui::DockContextBuildNodesFromSettings(ImGuiContext* ctx, ImGuiDockNodeSettings* node_settings_array, int node_settings_count) +{ + // Build nodes + for (int node_n = 0; node_n < node_settings_count; node_n++) + { + ImGuiDockNodeSettings* settings = &node_settings_array[node_n]; + if (settings->ID == 0) + continue; + ImGuiDockNode* node = DockContextAddNode(ctx, settings->ID); + node->ParentNode = settings->ParentNodeId ? DockContextFindNodeByID(ctx, settings->ParentNodeId) : NULL; + node->Pos = ImVec2(settings->Pos.x, settings->Pos.y); + node->Size = ImVec2(settings->Size.x, settings->Size.y); + node->SizeRef = ImVec2(settings->SizeRef.x, settings->SizeRef.y); + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_DockNode; + if (node->ParentNode && node->ParentNode->ChildNodes[0] == NULL) + node->ParentNode->ChildNodes[0] = node; + else if (node->ParentNode && node->ParentNode->ChildNodes[1] == NULL) + node->ParentNode->ChildNodes[1] = node; + node->SelectedTabId = settings->SelectedTabId; + node->SplitAxis = (ImGuiAxis)settings->SplitAxis; + node->SetLocalFlags(settings->Flags & ImGuiDockNodeFlags_SavedFlagsMask_); + + // Bind host window immediately if it already exist (in case of a rebuild) + // This is useful as the RootWindowForTitleBarHighlight links necessary to highlight the currently focused node requires node->HostWindow to be set. + char host_window_title[20]; + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + node->HostWindow = FindWindowByName(DockNodeGetHostWindowTitle(root_node, host_window_title, IM_ARRAYSIZE(host_window_title))); + } +} + +void ImGui::DockContextBuildAddWindowsToNodes(ImGuiContext* ctx, ImGuiID root_id) +{ + // Rebind all windows to nodes (they can also lazily rebind but we'll have a visible glitch during the first frame) + ImGuiContext& g = *ctx; + for (ImGuiWindow* window : g.Windows) + { + if (window->DockId == 0 || window->LastFrameActive < g.FrameCount - 1) + continue; + if (window->DockNode != NULL) + continue; + + ImGuiDockNode* node = DockContextFindNodeByID(ctx, window->DockId); + IM_ASSERT(node != NULL); // This should have been called after DockContextBuildNodesFromSettings() + if (root_id == 0 || DockNodeGetRootNode(node)->ID == root_id) + DockNodeAddWindow(node, window, true); + } +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockContext Docking/Undocking functions +//----------------------------------------------------------------------------- +// - DockContextQueueDock() +// - DockContextQueueUndockWindow() +// - DockContextQueueUndockNode() +// - DockContextQueueNotifyRemovedNode() +// - DockContextProcessDock() +// - DockContextProcessUndockWindow() +// - DockContextProcessUndockNode() +// - DockContextCalcDropPosForDocking() +//----------------------------------------------------------------------------- + +void ImGui::DockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer) +{ + IM_ASSERT(target != payload); + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Dock; + req.DockTargetWindow = target; + req.DockTargetNode = target_node; + req.DockPayload = payload; + req.DockSplitDir = split_dir; + req.DockSplitRatio = split_ratio; + req.DockSplitOuter = split_outer; + ctx->DockContext.Requests.push_back(req); +} + +void ImGui::DockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window) +{ + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Undock; + req.UndockTargetWindow = window; + ctx->DockContext.Requests.push_back(req); +} + +void ImGui::DockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) +{ + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Undock; + req.UndockTargetNode = node; + ctx->DockContext.Requests.push_back(req); +} + +void ImGui::DockContextQueueNotifyRemovedNode(ImGuiContext* ctx, ImGuiDockNode* node) +{ + ImGuiDockContext* dc = &ctx->DockContext; + for (ImGuiDockRequest& req : dc->Requests) + if (req.DockTargetNode == node) + req.Type = ImGuiDockRequestType_None; +} + +void ImGui::DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req) +{ + IM_ASSERT((req->Type == ImGuiDockRequestType_Dock && req->DockPayload != NULL) || (req->Type == ImGuiDockRequestType_Split && req->DockPayload == NULL)); + IM_ASSERT(req->DockTargetWindow != NULL || req->DockTargetNode != NULL); + + ImGuiContext& g = *ctx; + IM_UNUSED(g); + + ImGuiWindow* payload_window = req->DockPayload; // Optional + ImGuiWindow* target_window = req->DockTargetWindow; + ImGuiDockNode* node = req->DockTargetNode; + if (payload_window) + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessDock node 0x%08X target '%s' dock window '%s', split_dir %d\n", node ? node->ID : 0, target_window ? target_window->Name : "NULL", payload_window->Name, req->DockSplitDir); + else + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessDock node 0x%08X, split_dir %d\n", node ? node->ID : 0, req->DockSplitDir); + + // Decide which Tab will be selected at the end of the operation + ImGuiID next_selected_id = 0; + ImGuiDockNode* payload_node = NULL; + if (payload_window) + { + payload_node = payload_window->DockNodeAsHost; + payload_window->DockNodeAsHost = NULL; // Important to clear this as the node will have its life as a child which might be merged/deleted later. + if (payload_node && payload_node->IsLeafNode()) + next_selected_id = payload_node->TabBar->NextSelectedTabId ? payload_node->TabBar->NextSelectedTabId : payload_node->TabBar->SelectedTabId; + if (payload_node == NULL) + next_selected_id = payload_window->TabId; + } + + // FIXME-DOCK: When we are trying to dock an existing single-window node into a loose window, transfer Node ID as well + // When processing an interactive split, usually LastFrameAlive will be < g.FrameCount. But DockBuilder operations can make it ==. + if (node) + IM_ASSERT(node->LastFrameAlive <= g.FrameCount); + if (node && target_window && node == target_window->DockNodeAsHost) + IM_ASSERT(node->Windows.Size > 0 || node->IsSplitNode() || node->IsCentralNode()); + + // Create new node and add existing window to it + if (node == NULL) + { + node = DockContextAddNode(ctx, 0); + node->Pos = target_window->Pos; + node->Size = target_window->Size; + if (target_window->DockNodeAsHost == NULL) + { + DockNodeAddWindow(node, target_window, true); + node->TabBar->Tabs[0].Flags &= ~ImGuiTabItemFlags_Unsorted; + target_window->DockIsActive = true; + } + } + + ImGuiDir split_dir = req->DockSplitDir; + if (split_dir != ImGuiDir_None) + { + // Split into two, one side will be our payload node unless we are dropping a loose window + const ImGuiAxis split_axis = (split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + const int split_inheritor_child_idx = (split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? 1 : 0; // Current contents will be moved to the opposite side + const float split_ratio = req->DockSplitRatio; + DockNodeTreeSplit(ctx, node, split_axis, split_inheritor_child_idx, split_ratio, payload_node); // payload_node may be NULL here! + ImGuiDockNode* new_node = node->ChildNodes[split_inheritor_child_idx ^ 1]; + new_node->HostWindow = node->HostWindow; + node = new_node; + } + node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_HiddenTabBar); + + if (node != payload_node) + { + // Create tab bar before we call DockNodeMoveWindows (which would attempt to move the old tab-bar, which would lead us to payload tabs wrongly appearing before target tabs!) + if (node->Windows.Size > 0 && node->TabBar == NULL) + { + DockNodeAddTabBar(node); + for (int n = 0; n < node->Windows.Size; n++) + TabBarAddTab(node->TabBar, ImGuiTabItemFlags_None, node->Windows[n]); + } + + if (payload_node != NULL) + { + // Transfer full payload node (with 1+ child windows or child nodes) + if (payload_node->IsSplitNode()) + { + if (node->Windows.Size > 0) + { + // We can dock a split payload into a node that already has windows _only_ if our payload is a node tree with a single visible node. + // In this situation, we move the windows of the target node into the currently visible node of the payload. + // This allows us to preserve some of the underlying dock tree settings nicely. + IM_ASSERT(payload_node->OnlyNodeWithWindows != NULL); // The docking should have been blocked by DockNodePreviewDockSetup() early on and never submitted. + ImGuiDockNode* visible_node = payload_node->OnlyNodeWithWindows; + if (visible_node->TabBar) + IM_ASSERT(visible_node->TabBar->Tabs.Size > 0); + DockNodeMoveWindows(node, visible_node); + DockNodeMoveWindows(visible_node, node); + DockSettingsRenameNodeReferences(node->ID, visible_node->ID); + } + if (node->IsCentralNode()) + { + // Central node property needs to be moved to a leaf node, pick the last focused one. + // FIXME-DOCK: If we had to transfer other flags here, what would the policy be? + ImGuiDockNode* last_focused_node = DockContextFindNodeByID(ctx, payload_node->LastFocusedNodeId); + IM_ASSERT(last_focused_node != NULL); + ImGuiDockNode* last_focused_root_node = DockNodeGetRootNode(last_focused_node); + IM_ASSERT(last_focused_root_node == DockNodeGetRootNode(payload_node)); + last_focused_node->SetLocalFlags(last_focused_node->LocalFlags | ImGuiDockNodeFlags_CentralNode); + node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_CentralNode); + last_focused_root_node->CentralNode = last_focused_node; + } + + IM_ASSERT(node->Windows.Size == 0); + DockNodeMoveChildNodes(node, payload_node); + } + else + { + const ImGuiID payload_dock_id = payload_node->ID; + DockNodeMoveWindows(node, payload_node); + DockSettingsRenameNodeReferences(payload_dock_id, node->ID); + } + DockContextRemoveNode(ctx, payload_node, true); + } + else if (payload_window) + { + // Transfer single window + const ImGuiID payload_dock_id = payload_window->DockId; + node->VisibleWindow = payload_window; + DockNodeAddWindow(node, payload_window, true); + if (payload_dock_id != 0) + DockSettingsRenameNodeReferences(payload_dock_id, node->ID); + } + } + else + { + // When docking a floating single window node we want to reevaluate auto-hiding of the tab bar + node->WantHiddenTabBarUpdate = true; + } + + // Update selection immediately + if (ImGuiTabBar* tab_bar = node->TabBar) + tab_bar->NextSelectedTabId = next_selected_id; + MarkIniSettingsDirty(); +} + +// Problem: +// Undocking a large (~full screen) window would leave it so large that the bottom right sizing corner would more +// than likely be off the screen and the window would be hard to resize to fit on screen. This can be particularly problematic +// with 'ConfigWindowsMoveFromTitleBarOnly=true' and/or with 'ConfigWindowsResizeFromEdges=false' as well (the later can be +// due to missing ImGuiBackendFlags_HasMouseCursors backend flag). +// Solution: +// When undocking a window we currently force its maximum size to 90% of the host viewport or monitor. +// Reevaluate this when we implement preserving docked/undocked size ("docking_wip/undocked_size" branch). +static ImVec2 FixLargeWindowsWhenUndocking(const ImVec2& size, ImGuiViewport* ref_viewport) +{ + if (ref_viewport == NULL) + return size; + + ImGuiContext& g = *GImGui; + ImVec2 max_size = ImTrunc(ref_viewport->WorkSize * 0.90f); + if (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) + { + const ImGuiPlatformMonitor* monitor = ImGui::GetViewportPlatformMonitor(ref_viewport); + max_size = ImTrunc(monitor->WorkSize * 0.90f); + } + return ImMin(size, max_size); +} + +void ImGui::DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* window, bool clear_persistent_docking_ref) +{ + ImGuiContext& g = *ctx; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessUndockWindow window '%s', clear_persistent_docking_ref = %d\n", window->Name, clear_persistent_docking_ref); + if (window->DockNode) + DockNodeRemoveWindow(window->DockNode, window, clear_persistent_docking_ref ? 0 : window->DockId); + else + window->DockId = 0; + window->Collapsed = false; + window->DockIsActive = false; + window->DockNodeIsVisible = window->DockTabIsVisible = false; + window->Size = window->SizeFull = FixLargeWindowsWhenUndocking(window->SizeFull, window->Viewport); + + MarkIniSettingsDirty(); +} + +void ImGui::DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) +{ + ImGuiContext& g = *ctx; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessUndockNode node %08X\n", node->ID); + IM_ASSERT(node->IsLeafNode()); + IM_ASSERT(node->Windows.Size >= 1); + + if (node->IsRootNode() || node->IsCentralNode()) + { + // In the case of a root node or central node, the node will have to stay in place. Create a new node to receive the payload. + ImGuiDockNode* new_node = DockContextAddNode(ctx, 0); + new_node->Pos = node->Pos; + new_node->Size = node->Size; + new_node->SizeRef = node->SizeRef; + DockNodeMoveWindows(new_node, node); + DockSettingsRenameNodeReferences(node->ID, new_node->ID); + node = new_node; + } + else + { + // Otherwise extract our node and merge our sibling back into the parent node. + IM_ASSERT(node->ParentNode->ChildNodes[0] == node || node->ParentNode->ChildNodes[1] == node); + int index_in_parent = (node->ParentNode->ChildNodes[0] == node) ? 0 : 1; + node->ParentNode->ChildNodes[index_in_parent] = NULL; + DockNodeTreeMerge(ctx, node->ParentNode, node->ParentNode->ChildNodes[index_in_parent ^ 1]); + node->ParentNode->AuthorityForViewport = ImGuiDataAuthority_Window; // The node that stays in place keeps the viewport, so our newly dragged out node will create a new viewport + node->ParentNode = NULL; + } + for (ImGuiWindow* window : node->Windows) + { + window->Flags &= ~ImGuiWindowFlags_ChildWindow; + if (window->ParentWindow) + window->ParentWindow->DC.ChildWindows.find_erase(window); + UpdateWindowParentAndRootLinks(window, window->Flags, NULL); + } + node->AuthorityForPos = node->AuthorityForSize = ImGuiDataAuthority_DockNode; + node->Size = FixLargeWindowsWhenUndocking(node->Size, node->Windows[0]->Viewport); + node->WantMouseMove = true; + MarkIniSettingsDirty(); +} + +// This is mostly used for automation. +bool ImGui::DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos) +{ + if (target != NULL && target_node == NULL) + target_node = target->DockNode; + + // In DockNodePreviewDockSetup() for a root central node instead of showing both "inner" and "outer" drop rects + // (which would be functionally identical) we only show the outer one. Reflect this here. + if (target_node && target_node->ParentNode == NULL && target_node->IsCentralNode() && split_dir != ImGuiDir_None) + split_outer = true; + ImGuiDockPreviewData split_data; + DockNodePreviewDockSetup(target, target_node, payload_window, payload_node, &split_data, false, split_outer); + if (split_data.DropRectsDraw[split_dir+1].IsInverted()) + return false; + *out_pos = split_data.DropRectsDraw[split_dir+1].GetCenter(); + return true; +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockNode +//----------------------------------------------------------------------------- +// - DockNodeGetTabOrder() +// - DockNodeAddWindow() +// - DockNodeRemoveWindow() +// - DockNodeMoveChildNodes() +// - DockNodeMoveWindows() +// - DockNodeApplyPosSizeToWindows() +// - DockNodeHideHostWindow() +// - ImGuiDockNodeFindInfoResults +// - DockNodeFindInfo() +// - DockNodeFindWindowByID() +// - DockNodeUpdateFlagsAndCollapse() +// - DockNodeUpdateHasCentralNodeFlag() +// - DockNodeUpdateVisibleFlag() +// - DockNodeStartMouseMovingWindow() +// - DockNodeUpdate() +// - DockNodeUpdateWindowMenu() +// - DockNodeBeginAmendTabBar() +// - DockNodeEndAmendTabBar() +// - DockNodeUpdateTabBar() +// - DockNodeAddTabBar() +// - DockNodeRemoveTabBar() +// - DockNodeIsDropAllowedOne() +// - DockNodeIsDropAllowed() +// - DockNodeCalcTabBarLayout() +// - DockNodeCalcSplitRects() +// - DockNodeCalcDropRectsAndTestMousePos() +// - DockNodePreviewDockSetup() +// - DockNodePreviewDockRender() +//----------------------------------------------------------------------------- + +ImGuiDockNode::ImGuiDockNode(ImGuiID id) +{ + ID = id; + SharedFlags = LocalFlags = LocalFlagsInWindows = MergedFlags = ImGuiDockNodeFlags_None; + ParentNode = ChildNodes[0] = ChildNodes[1] = NULL; + TabBar = NULL; + SplitAxis = ImGuiAxis_None; + + State = ImGuiDockNodeState_Unknown; + LastBgColor = IM_COL32_WHITE; + HostWindow = VisibleWindow = NULL; + CentralNode = OnlyNodeWithWindows = NULL; + CountNodeWithWindows = 0; + LastFrameAlive = LastFrameActive = LastFrameFocused = -1; + LastFocusedNodeId = 0; + SelectedTabId = 0; + WantCloseTabId = 0; + RefViewportId = 0; + AuthorityForPos = AuthorityForSize = ImGuiDataAuthority_DockNode; + AuthorityForViewport = ImGuiDataAuthority_Auto; + IsVisible = true; + IsFocused = HasCloseButton = HasWindowMenuButton = HasCentralNodeChild = false; + IsBgDrawnThisFrame = false; + WantCloseAll = WantLockSizeOnce = WantMouseMove = WantHiddenTabBarUpdate = WantHiddenTabBarToggle = false; +} + +ImGuiDockNode::~ImGuiDockNode() +{ + IM_DELETE(TabBar); + TabBar = NULL; + ChildNodes[0] = ChildNodes[1] = NULL; +} + +int ImGui::DockNodeGetTabOrder(ImGuiWindow* window) +{ + ImGuiTabBar* tab_bar = window->DockNode->TabBar; + if (tab_bar == NULL) + return -1; + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, window->TabId); + return tab ? TabBarGetTabOrder(tab_bar, tab) : -1; +} + +static void DockNodeHideWindowDuringHostWindowCreation(ImGuiWindow* window) +{ + window->Hidden = true; + window->HiddenFramesCanSkipItems = window->Active ? 1 : 2; +} + +static void ImGui::DockNodeAddWindow(ImGuiDockNode* node, ImGuiWindow* window, bool add_to_tab_bar) +{ + ImGuiContext& g = *GImGui; (void)g; + if (window->DockNode) + { + // Can overwrite an existing window->DockNode (e.g. pointing to a disabled DockSpace node) + IM_ASSERT(window->DockNode->ID != node->ID); + DockNodeRemoveWindow(window->DockNode, window, 0); + } + IM_ASSERT(window->DockNode == NULL || window->DockNodeAsHost == NULL); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeAddWindow node 0x%08X window '%s'\n", node->ID, window->Name); + + // If more than 2 windows appeared on the same frame leading to the creation of a new hosting window, + // we'll hide windows until the host window is ready. Hide the 1st window after its been output (so it is not visible for one frame). + // We will call DockNodeHideWindowDuringHostWindowCreation() on ourselves in Begin() + if (node->HostWindow == NULL && node->Windows.Size == 1 && node->Windows[0]->WasActive == false) + DockNodeHideWindowDuringHostWindowCreation(node->Windows[0]); + + node->Windows.push_back(window); + node->WantHiddenTabBarUpdate = true; + window->DockNode = node; + window->DockId = node->ID; + window->DockIsActive = (node->Windows.Size > 1); + window->DockTabWantClose = false; + + // When reactivating a node with one or two loose window, the window pos/size/viewport are authoritative over the node storage. + // In particular it is important we init the viewport from the first window so we don't create two viewports and drop one. + if (node->HostWindow == NULL && node->IsFloatingNode()) + { + if (node->AuthorityForPos == ImGuiDataAuthority_Auto) + node->AuthorityForPos = ImGuiDataAuthority_Window; + if (node->AuthorityForSize == ImGuiDataAuthority_Auto) + node->AuthorityForSize = ImGuiDataAuthority_Window; + if (node->AuthorityForViewport == ImGuiDataAuthority_Auto) + node->AuthorityForViewport = ImGuiDataAuthority_Window; + } + + // Add to tab bar if requested + if (add_to_tab_bar) + { + if (node->TabBar == NULL) + { + DockNodeAddTabBar(node); + node->TabBar->SelectedTabId = node->TabBar->NextSelectedTabId = node->SelectedTabId; + + // Add existing windows + for (int n = 0; n < node->Windows.Size - 1; n++) + TabBarAddTab(node->TabBar, ImGuiTabItemFlags_None, node->Windows[n]); + } + TabBarAddTab(node->TabBar, ImGuiTabItemFlags_Unsorted, window); + } + + DockNodeUpdateVisibleFlag(node); + + // Update this without waiting for the next time we Begin() in the window, so our host window will have the proper title bar color on its first frame. + if (node->HostWindow) + UpdateWindowParentAndRootLinks(window, window->Flags | ImGuiWindowFlags_ChildWindow, node->HostWindow); +} + +static void ImGui::DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window, ImGuiID save_dock_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(window->DockNode == node); + //IM_ASSERT(window->RootWindowDockTree == node->HostWindow); + //IM_ASSERT(window->LastFrameActive < g.FrameCount); // We may call this from Begin() + IM_ASSERT(save_dock_id == 0 || save_dock_id == node->ID); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeRemoveWindow node 0x%08X window '%s'\n", node->ID, window->Name); + + window->DockNode = NULL; + window->DockIsActive = window->DockTabWantClose = false; + window->DockId = save_dock_id; + window->Flags &= ~ImGuiWindowFlags_ChildWindow; + if (window->ParentWindow) + window->ParentWindow->DC.ChildWindows.find_erase(window); + UpdateWindowParentAndRootLinks(window, window->Flags, NULL); // Update immediately + + if (node->HostWindow && node->HostWindow->ViewportOwned) + { + // When undocking from a user interaction this will always run in NewFrame() and have not much effect. + // But mid-frame, if we clear viewport we need to mark window as hidden as well. + window->Viewport = NULL; + window->ViewportId = 0; + window->ViewportOwned = false; + window->Hidden = true; + } + + // Remove window + bool erased = false; + for (int n = 0; n < node->Windows.Size; n++) + if (node->Windows[n] == window) + { + node->Windows.erase(node->Windows.Data + n); + erased = true; + break; + } + if (!erased) + IM_ASSERT(erased); + if (node->VisibleWindow == window) + node->VisibleWindow = NULL; + + // Remove tab and possibly tab bar + node->WantHiddenTabBarUpdate = true; + if (node->TabBar) + { + TabBarRemoveTab(node->TabBar, window->TabId); + const int tab_count_threshold_for_tab_bar = node->IsCentralNode() ? 1 : 2; + if (node->Windows.Size < tab_count_threshold_for_tab_bar) + DockNodeRemoveTabBar(node); + } + + if (node->Windows.Size == 0 && !node->IsCentralNode() && !node->IsDockSpace() && window->DockId != node->ID) + { + // Automatic dock node delete themselves if they are not holding at least one tab + DockContextRemoveNode(&g, node, true); + return; + } + + if (node->Windows.Size == 1 && !node->IsCentralNode() && node->HostWindow) + { + ImGuiWindow* remaining_window = node->Windows[0]; + // Note: we used to transport viewport ownership here. + remaining_window->Collapsed = node->HostWindow->Collapsed; + } + + // Update visibility immediately is required so the DockNodeUpdateRemoveInactiveChilds() processing can reflect changes up the tree + DockNodeUpdateVisibleFlag(node); +} + +static void ImGui::DockNodeMoveChildNodes(ImGuiDockNode* dst_node, ImGuiDockNode* src_node) +{ + IM_ASSERT(dst_node->Windows.Size == 0); + dst_node->ChildNodes[0] = src_node->ChildNodes[0]; + dst_node->ChildNodes[1] = src_node->ChildNodes[1]; + if (dst_node->ChildNodes[0]) + dst_node->ChildNodes[0]->ParentNode = dst_node; + if (dst_node->ChildNodes[1]) + dst_node->ChildNodes[1]->ParentNode = dst_node; + dst_node->SplitAxis = src_node->SplitAxis; + dst_node->SizeRef = src_node->SizeRef; + src_node->ChildNodes[0] = src_node->ChildNodes[1] = NULL; +} + +static void ImGui::DockNodeMoveWindows(ImGuiDockNode* dst_node, ImGuiDockNode* src_node) +{ + // Insert tabs in the same orders as currently ordered (node->Windows isn't ordered) + IM_ASSERT(src_node && dst_node && dst_node != src_node); + ImGuiTabBar* src_tab_bar = src_node->TabBar; + if (src_tab_bar != NULL) + IM_ASSERT(src_node->Windows.Size <= src_node->TabBar->Tabs.Size); + + // If the dst_node is empty we can just move the entire tab bar (to preserve selection, scrolling, etc.) + bool move_tab_bar = (src_tab_bar != NULL) && (dst_node->TabBar == NULL); + if (move_tab_bar) + { + dst_node->TabBar = src_node->TabBar; + src_node->TabBar = NULL; + } + + // Tab order is not important here, it is preserved by sorting in DockNodeUpdateTabBar(). + for (ImGuiWindow* window : src_node->Windows) + { + window->DockNode = NULL; + window->DockIsActive = false; + DockNodeAddWindow(dst_node, window, !move_tab_bar); + } + src_node->Windows.clear(); + + if (!move_tab_bar && src_node->TabBar) + { + if (dst_node->TabBar) + dst_node->TabBar->SelectedTabId = src_node->TabBar->SelectedTabId; + DockNodeRemoveTabBar(src_node); + } +} + +static void ImGui::DockNodeApplyPosSizeToWindows(ImGuiDockNode* node) +{ + for (ImGuiWindow* window : node->Windows) + { + SetWindowPos(window, node->Pos, ImGuiCond_Always); // We don't assign directly to Pos because it can break the calculation of SizeContents on next frame + SetWindowSize(window, node->Size, ImGuiCond_Always); + } +} + +static void ImGui::DockNodeHideHostWindow(ImGuiDockNode* node) +{ + if (node->HostWindow) + { + if (node->HostWindow->DockNodeAsHost == node) + node->HostWindow->DockNodeAsHost = NULL; + node->HostWindow = NULL; + } + + if (node->Windows.Size == 1) + { + node->VisibleWindow = node->Windows[0]; + node->Windows[0]->DockIsActive = false; + } + + if (node->TabBar) + DockNodeRemoveTabBar(node); +} + +// Search function called once by root node in DockNodeUpdate() +struct ImGuiDockNodeTreeInfo +{ + ImGuiDockNode* CentralNode; + ImGuiDockNode* FirstNodeWithWindows; + int CountNodesWithWindows; + //ImGuiWindowClass WindowClassForMerges; + + ImGuiDockNodeTreeInfo() { memset(this, 0, sizeof(*this)); } +}; + +static void DockNodeFindInfo(ImGuiDockNode* node, ImGuiDockNodeTreeInfo* info) +{ + if (node->Windows.Size > 0) + { + if (info->FirstNodeWithWindows == NULL) + info->FirstNodeWithWindows = node; + info->CountNodesWithWindows++; + } + if (node->IsCentralNode()) + { + IM_ASSERT(info->CentralNode == NULL); // Should be only one + IM_ASSERT(node->IsLeafNode() && "If you get this assert: please submit .ini file + repro of actions leading to this."); + info->CentralNode = node; + } + if (info->CountNodesWithWindows > 1 && info->CentralNode != NULL) + return; + if (node->ChildNodes[0]) + DockNodeFindInfo(node->ChildNodes[0], info); + if (node->ChildNodes[1]) + DockNodeFindInfo(node->ChildNodes[1], info); +} + +static ImGuiWindow* ImGui::DockNodeFindWindowByID(ImGuiDockNode* node, ImGuiID id) +{ + IM_ASSERT(id != 0); + for (ImGuiWindow* window : node->Windows) + if (window->ID == id) + return window; + return NULL; +} + +// - Remove inactive windows/nodes. +// - Update visibility flag. +static void ImGui::DockNodeUpdateFlagsAndCollapse(ImGuiDockNode* node) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(node->ParentNode == NULL || node->ParentNode->ChildNodes[0] == node || node->ParentNode->ChildNodes[1] == node); + + // Inherit most flags + if (node->ParentNode) + node->SharedFlags = node->ParentNode->SharedFlags & ImGuiDockNodeFlags_SharedFlagsInheritMask_; + + // Recurse into children + // There is the possibility that one of our child becoming empty will delete itself and moving its sibling contents into 'node'. + // If 'node->ChildNode[0]' delete itself, then 'node->ChildNode[1]->Windows' will be moved into 'node' + // If 'node->ChildNode[1]' delete itself, then 'node->ChildNode[0]->Windows' will be moved into 'node' and the "remove inactive windows" loop will have run twice on those windows (harmless) + node->HasCentralNodeChild = false; + if (node->ChildNodes[0]) + DockNodeUpdateFlagsAndCollapse(node->ChildNodes[0]); + if (node->ChildNodes[1]) + DockNodeUpdateFlagsAndCollapse(node->ChildNodes[1]); + + // Remove inactive windows, collapse nodes + // Merge node flags overrides stored in windows + node->LocalFlagsInWindows = ImGuiDockNodeFlags_None; + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + IM_ASSERT(window->DockNode == node); + + bool node_was_active = (node->LastFrameActive + 1 == g.FrameCount); + bool remove = false; + remove |= node_was_active && (window->LastFrameActive + 1 < g.FrameCount); + remove |= node_was_active && (node->WantCloseAll || node->WantCloseTabId == window->TabId) && window->HasCloseButton && !(window->Flags & ImGuiWindowFlags_UnsavedDocument); // Submit all _expected_ closure from last frame + remove |= (window->DockTabWantClose); + if (remove) + { + window->DockTabWantClose = false; + if (node->Windows.Size == 1 && !node->IsCentralNode()) + { + DockNodeHideHostWindow(node); + node->State = ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow; + DockNodeRemoveWindow(node, window, node->ID); // Will delete the node so it'll be invalid on return + return; + } + DockNodeRemoveWindow(node, window, node->ID); + window_n--; + continue; + } + + // FIXME-DOCKING: Missing policies for conflict resolution, hence the "Experimental" tag on this. + //node->LocalFlagsInWindow &= ~window->WindowClass.DockNodeFlagsOverrideClear; + node->LocalFlagsInWindows |= window->WindowClass.DockNodeFlagsOverrideSet; + } + node->UpdateMergedFlags(); + + // Auto-hide tab bar option + ImGuiDockNodeFlags node_flags = node->MergedFlags; + if (node->WantHiddenTabBarUpdate && node->Windows.Size == 1 && (node_flags & ImGuiDockNodeFlags_AutoHideTabBar) && !node->IsHiddenTabBar()) + node->WantHiddenTabBarToggle = true; + node->WantHiddenTabBarUpdate = false; + + // Cancel toggling if we know our tab bar is enforced to be hidden at all times + if (node->WantHiddenTabBarToggle && node->VisibleWindow && (node->VisibleWindow->WindowClass.DockNodeFlagsOverrideSet & ImGuiDockNodeFlags_HiddenTabBar)) + node->WantHiddenTabBarToggle = false; + + // Apply toggles at a single point of the frame (here!) + if (node->Windows.Size > 1) + node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_HiddenTabBar); + else if (node->WantHiddenTabBarToggle) + node->SetLocalFlags(node->LocalFlags ^ ImGuiDockNodeFlags_HiddenTabBar); + node->WantHiddenTabBarToggle = false; + + DockNodeUpdateVisibleFlag(node); +} + +// This is rarely called as DockNodeUpdateForRootNode() generally does it most frames. +static void ImGui::DockNodeUpdateHasCentralNodeChild(ImGuiDockNode* node) +{ + node->HasCentralNodeChild = false; + if (node->ChildNodes[0]) + DockNodeUpdateHasCentralNodeChild(node->ChildNodes[0]); + if (node->ChildNodes[1]) + DockNodeUpdateHasCentralNodeChild(node->ChildNodes[1]); + if (node->IsRootNode()) + { + ImGuiDockNode* mark_node = node->CentralNode; + while (mark_node) + { + mark_node->HasCentralNodeChild = true; + mark_node = mark_node->ParentNode; + } + } +} + +static void ImGui::DockNodeUpdateVisibleFlag(ImGuiDockNode* node) +{ + // Update visibility flag + bool is_visible = (node->ParentNode == NULL) ? node->IsDockSpace() : node->IsCentralNode(); + is_visible |= (node->Windows.Size > 0); + is_visible |= (node->ChildNodes[0] && node->ChildNodes[0]->IsVisible); + is_visible |= (node->ChildNodes[1] && node->ChildNodes[1]->IsVisible); + node->IsVisible = is_visible; +} + +static void ImGui::DockNodeStartMouseMovingWindow(ImGuiDockNode* node, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(node->WantMouseMove == true); + StartMouseMovingWindow(window); + g.ActiveIdClickOffset = g.IO.MouseClickedPos[0] - node->Pos; + g.MovingWindow = window; // If we are docked into a non moveable root window, StartMouseMovingWindow() won't set g.MovingWindow. Override that decision. + node->WantMouseMove = false; +} + +// Update CentralNode, OnlyNodeWithWindows, LastFocusedNodeID. Copy window class. +static void ImGui::DockNodeUpdateForRootNode(ImGuiDockNode* node) +{ + DockNodeUpdateFlagsAndCollapse(node); + + // - Setup central node pointers + // - Find if there's only a single visible window in the hierarchy (in which case we need to display a regular title bar -> FIXME-DOCK: that last part is not done yet!) + // Cannot merge this with DockNodeUpdateFlagsAndCollapse() because FirstNodeWithWindows is found after window removal and child collapsing + ImGuiDockNodeTreeInfo info; + DockNodeFindInfo(node, &info); + node->CentralNode = info.CentralNode; + node->OnlyNodeWithWindows = (info.CountNodesWithWindows == 1) ? info.FirstNodeWithWindows : NULL; + node->CountNodeWithWindows = info.CountNodesWithWindows; + if (node->LastFocusedNodeId == 0 && info.FirstNodeWithWindows != NULL) + node->LastFocusedNodeId = info.FirstNodeWithWindows->ID; + + // Copy the window class from of our first window so it can be used for proper dock filtering. + // When node has mixed windows, prioritize the class with the most constraint (DockingAllowUnclassed = false) as the reference to copy. + // FIXME-DOCK: We don't recurse properly, this code could be reworked to work from DockNodeUpdateScanRec. + if (ImGuiDockNode* first_node_with_windows = info.FirstNodeWithWindows) + { + node->WindowClass = first_node_with_windows->Windows[0]->WindowClass; + for (int n = 1; n < first_node_with_windows->Windows.Size; n++) + if (first_node_with_windows->Windows[n]->WindowClass.DockingAllowUnclassed == false) + { + node->WindowClass = first_node_with_windows->Windows[n]->WindowClass; + break; + } + } + + ImGuiDockNode* mark_node = node->CentralNode; + while (mark_node) + { + mark_node->HasCentralNodeChild = true; + mark_node = mark_node->ParentNode; + } +} + +static void DockNodeSetupHostWindow(ImGuiDockNode* node, ImGuiWindow* host_window) +{ + // Remove ourselves from any previous different host window + // This can happen if a user mistakenly does (see #4295 for details): + // - N+0: DockBuilderAddNode(id, 0) // missing ImGuiDockNodeFlags_DockSpace + // - N+1: NewFrame() // will create floating host window for that node + // - N+1: DockSpace(id) // requalify node as dockspace, moving host window + if (node->HostWindow && node->HostWindow != host_window && node->HostWindow->DockNodeAsHost == node) + node->HostWindow->DockNodeAsHost = NULL; + + host_window->DockNodeAsHost = node; + node->HostWindow = host_window; +} + +static void ImGui::DockNodeUpdate(ImGuiDockNode* node) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(node->LastFrameActive != g.FrameCount); + node->LastFrameAlive = g.FrameCount; + node->IsBgDrawnThisFrame = false; + + node->CentralNode = node->OnlyNodeWithWindows = NULL; + if (node->IsRootNode()) + DockNodeUpdateForRootNode(node); + + // Remove tab bar if not needed + if (node->TabBar && node->IsNoTabBar()) + DockNodeRemoveTabBar(node); + + // Early out for hidden root dock nodes (when all DockId references are in inactive windows, or there is only 1 floating window holding on the DockId) + bool want_to_hide_host_window = false; + if (node->IsFloatingNode()) + { + if (node->Windows.Size <= 1 && node->IsLeafNode()) + if (!g.IO.ConfigDockingAlwaysTabBar && (node->Windows.Size == 0 || !node->Windows[0]->WindowClass.DockingAlwaysTabBar)) + want_to_hide_host_window = true; + if (node->CountNodeWithWindows == 0) + want_to_hide_host_window = true; + } + if (want_to_hide_host_window) + { + if (node->Windows.Size == 1) + { + // Floating window pos/size is authoritative + ImGuiWindow* single_window = node->Windows[0]; + node->Pos = single_window->Pos; + node->Size = single_window->SizeFull; + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Window; + + // Transfer focus immediately so when we revert to a regular window it is immediately selected + if (node->HostWindow && g.NavWindow == node->HostWindow) + FocusWindow(single_window); + if (node->HostWindow) + { + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Node %08X transfer Viewport %08X->%08X to Window '%s'\n", node->ID, node->HostWindow->Viewport->ID, single_window->ID, single_window->Name); + single_window->Viewport = node->HostWindow->Viewport; + single_window->ViewportId = node->HostWindow->ViewportId; + if (node->HostWindow->ViewportOwned) + { + single_window->Viewport->ID = single_window->ID; + single_window->Viewport->Window = single_window; + single_window->ViewportOwned = true; + } + } + node->RefViewportId = single_window->ViewportId; + } + + DockNodeHideHostWindow(node); + node->State = ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow; + node->WantCloseAll = false; + node->WantCloseTabId = 0; + node->HasCloseButton = node->HasWindowMenuButton = false; + node->LastFrameActive = g.FrameCount; + + if (node->WantMouseMove && node->Windows.Size == 1) + DockNodeStartMouseMovingWindow(node, node->Windows[0]); + return; + } + + // In some circumstance we will defer creating the host window (so everything will be kept hidden), + // while the expected visible window is resizing itself. + // This is important for first-time (no ini settings restored) single window when io.ConfigDockingAlwaysTabBar is enabled, + // otherwise the node ends up using the minimum window size. Effectively those windows will take an extra frame to show up: + // N+0: Begin(): window created (with no known size), node is created + // N+1: DockNodeUpdate(): node skip creating host window / Begin(): window size applied, not visible + // N+2: DockNodeUpdate(): node can create host window / Begin(): window becomes visible + // We could remove this frame if we could reliably calculate the expected window size during node update, before the Begin() code. + // It would require a generalization of CalcWindowExpectedSize(), probably extracting code away from Begin(). + // In reality it isn't very important as user quickly ends up with size data in .ini file. + if (node->IsVisible && node->HostWindow == NULL && node->IsFloatingNode() && node->IsLeafNode()) + { + IM_ASSERT(node->Windows.Size > 0); + ImGuiWindow* ref_window = NULL; + if (node->SelectedTabId != 0) // Note that we prune single-window-node settings on .ini loading, so this is generally 0 for them! + ref_window = DockNodeFindWindowByID(node, node->SelectedTabId); + if (ref_window == NULL) + ref_window = node->Windows[0]; + if (ref_window->AutoFitFramesX > 0 || ref_window->AutoFitFramesY > 0) + { + node->State = ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing; + return; + } + } + + const ImGuiDockNodeFlags node_flags = node->MergedFlags; + + // Decide if the node will have a close button and a window menu button + node->HasWindowMenuButton = (node->Windows.Size > 0) && (node_flags & ImGuiDockNodeFlags_NoWindowMenuButton) == 0; + node->HasCloseButton = false; + for (ImGuiWindow* window : node->Windows) + { + // FIXME-DOCK: Setting DockIsActive here means that for single active window in a leaf node, DockIsActive will be cleared until the next Begin() call. + node->HasCloseButton |= window->HasCloseButton; + window->DockIsActive = (node->Windows.Size > 1); + } + if (node_flags & ImGuiDockNodeFlags_NoCloseButton) + node->HasCloseButton = false; + + // Bind or create host window + ImGuiWindow* host_window = NULL; + bool beginned_into_host_window = false; + if (node->IsDockSpace()) + { + // [Explicit root dockspace node] + IM_ASSERT(node->HostWindow); + host_window = node->HostWindow; + } + else + { + // [Automatic root or child nodes] + if (node->IsRootNode() && node->IsVisible) + { + ImGuiWindow* ref_window = (node->Windows.Size > 0) ? node->Windows[0] : NULL; + + // Sync Pos + if (node->AuthorityForPos == ImGuiDataAuthority_Window && ref_window) + SetNextWindowPos(ref_window->Pos); + else if (node->AuthorityForPos == ImGuiDataAuthority_DockNode) + SetNextWindowPos(node->Pos); + + // Sync Size + if (node->AuthorityForSize == ImGuiDataAuthority_Window && ref_window) + SetNextWindowSize(ref_window->SizeFull); + else if (node->AuthorityForSize == ImGuiDataAuthority_DockNode) + SetNextWindowSize(node->Size); + + // Sync Collapsed + if (node->AuthorityForSize == ImGuiDataAuthority_Window && ref_window) + SetNextWindowCollapsed(ref_window->Collapsed); + + // Sync Viewport + if (node->AuthorityForViewport == ImGuiDataAuthority_Window && ref_window) + SetNextWindowViewport(ref_window->ViewportId); + else if (node->AuthorityForViewport == ImGuiDataAuthority_Window && node->RefViewportId != 0) + SetNextWindowViewport(node->RefViewportId); + + SetNextWindowClass(&node->WindowClass); + + // Begin into the host window + char window_label[20]; + DockNodeGetHostWindowTitle(node, window_label, IM_ARRAYSIZE(window_label)); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_DockNodeHost; + window_flags |= ImGuiWindowFlags_NoFocusOnAppearing; + window_flags |= ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus | ImGuiWindowFlags_NoCollapse; + window_flags |= ImGuiWindowFlags_NoTitleBar; + + SetNextWindowBgAlpha(0.0f); // Don't set ImGuiWindowFlags_NoBackground because it disables borders + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); + Begin(window_label, NULL, window_flags); + PopStyleVar(); + beginned_into_host_window = true; + + host_window = g.CurrentWindow; + DockNodeSetupHostWindow(node, host_window); + host_window->DC.CursorPos = host_window->Pos; + node->Pos = host_window->Pos; + node->Size = host_window->Size; + + // We set ImGuiWindowFlags_NoFocusOnAppearing because we don't want the host window to take full focus (e.g. steal NavWindow) + // But we still it bring it to the front of display. There's no way to choose this precise behavior via window flags. + // One simple case to ponder if: window A has a toggle to create windows B/C/D. Dock B/C/D together, clear the toggle and enable it again. + // When reappearing B/C/D will request focus and be moved to the top of the display pile, but they are not linked to the dock host window + // during the frame they appear. The dock host window would keep its old display order, and the sorting in EndFrame would move B/C/D back + // after the dock host window, losing their top-most status. + if (node->HostWindow->Appearing) + BringWindowToDisplayFront(node->HostWindow); + + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Auto; + } + else if (node->ParentNode) + { + node->HostWindow = host_window = node->ParentNode->HostWindow; + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Auto; + } + if (node->WantMouseMove && node->HostWindow) + DockNodeStartMouseMovingWindow(node, node->HostWindow); + } + node->RefViewportId = 0; // Clear when we have a host window + + // Update focused node (the one whose title bar is highlight) within a node tree + if (node->IsSplitNode()) + IM_ASSERT(node->TabBar == NULL); + if (node->IsRootNode()) + if (ImGuiWindow* p_window = g.NavWindow ? g.NavWindow->RootWindow : NULL) + while (p_window != NULL && p_window->DockNode != NULL) + { + ImGuiDockNode* p_node = DockNodeGetRootNode(p_window->DockNode); + if (p_node == node) + { + node->LastFocusedNodeId = p_window->DockNode->ID; // Note: not using root node ID! + break; + } + p_window = p_node->HostWindow ? p_node->HostWindow->RootWindow : NULL; + } + + // Register a hit-test hole in the window unless we are currently dragging a window that is compatible with our dockspace + ImGuiDockNode* central_node = node->CentralNode; + const bool central_node_hole = node->IsRootNode() && host_window && (node_flags & ImGuiDockNodeFlags_PassthruCentralNode) != 0 && central_node != NULL && central_node->IsEmpty(); + bool central_node_hole_register_hit_test_hole = central_node_hole; + if (central_node_hole) + if (const ImGuiPayload* payload = ImGui::GetDragDropPayload()) + if (payload->IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW) && DockNodeIsDropAllowed(host_window, *(ImGuiWindow**)payload->Data)) + central_node_hole_register_hit_test_hole = false; + if (central_node_hole_register_hit_test_hole) + { + // We add a little padding to match the "resize from edges" behavior and allow grabbing the splitter easily. + // (But we only add it if there's something else on the other side of the hole, otherwise for e.g. fullscreen + // covering passthru node we'd have a gap on the edge not covered by the hole) + IM_ASSERT(node->IsDockSpace()); // We cannot pass this flag without the DockSpace() api. Testing this because we also setup the hole in host_window->ParentNode + ImGuiDockNode* root_node = DockNodeGetRootNode(central_node); + ImRect root_rect(root_node->Pos, root_node->Pos + root_node->Size); + ImRect hole_rect(central_node->Pos, central_node->Pos + central_node->Size); + if (hole_rect.Min.x > root_rect.Min.x) { hole_rect.Min.x += WINDOWS_HOVER_PADDING; } + if (hole_rect.Max.x < root_rect.Max.x) { hole_rect.Max.x -= WINDOWS_HOVER_PADDING; } + if (hole_rect.Min.y > root_rect.Min.y) { hole_rect.Min.y += WINDOWS_HOVER_PADDING; } + if (hole_rect.Max.y < root_rect.Max.y) { hole_rect.Max.y -= WINDOWS_HOVER_PADDING; } + //GetForegroundDrawList()->AddRect(hole_rect.Min, hole_rect.Max, IM_COL32(255, 0, 0, 255)); + if (central_node_hole && !hole_rect.IsInverted()) + { + SetWindowHitTestHole(host_window, hole_rect.Min, hole_rect.Max - hole_rect.Min); + if (host_window->ParentWindow) + SetWindowHitTestHole(host_window->ParentWindow, hole_rect.Min, hole_rect.Max - hole_rect.Min); + } + } + + // Update position/size, process and draw resizing splitters + if (node->IsRootNode() && host_window) + { + DockNodeTreeUpdatePosSize(node, host_window->Pos, host_window->Size); + PushStyleColor(ImGuiCol_Separator, g.Style.Colors[ImGuiCol_Border]); + PushStyleColor(ImGuiCol_SeparatorActive, g.Style.Colors[ImGuiCol_ResizeGripActive]); + PushStyleColor(ImGuiCol_SeparatorHovered, g.Style.Colors[ImGuiCol_ResizeGripHovered]); + DockNodeTreeUpdateSplitter(node); + PopStyleColor(3); + } + + // Draw empty node background (currently can only be the Central Node) + if (host_window && node->IsEmpty() && node->IsVisible) + { + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + node->LastBgColor = (node_flags & ImGuiDockNodeFlags_PassthruCentralNode) ? 0 : GetColorU32(ImGuiCol_DockingEmptyBg); + if (node->LastBgColor != 0) + host_window->DrawList->AddRectFilled(node->Pos, node->Pos + node->Size, node->LastBgColor); + node->IsBgDrawnThisFrame = true; + } + + // Draw whole dockspace background if ImGuiDockNodeFlags_PassthruCentralNode if set. + // We need to draw a background at the root level if requested by ImGuiDockNodeFlags_PassthruCentralNode, but we will only know the correct pos/size + // _after_ processing the resizing splitters. So we are using the DrawList channel splitting facility to submit drawing primitives out of order! + const bool render_dockspace_bg = node->IsRootNode() && host_window && (node_flags & ImGuiDockNodeFlags_PassthruCentralNode) != 0; + if (render_dockspace_bg && node->IsVisible) + { + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + if (central_node_hole) + RenderRectFilledWithHole(host_window->DrawList, node->Rect(), central_node->Rect(), GetColorU32(ImGuiCol_WindowBg), 0.0f); + else + host_window->DrawList->AddRectFilled(node->Pos, node->Pos + node->Size, GetColorU32(ImGuiCol_WindowBg), 0.0f); + } + + // Draw and populate Tab Bar + if (host_window) + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); + if (host_window && node->Windows.Size > 0) + { + DockNodeUpdateTabBar(node, host_window); + } + else + { + node->WantCloseAll = false; + node->WantCloseTabId = 0; + node->IsFocused = false; + } + if (node->TabBar && node->TabBar->SelectedTabId) + node->SelectedTabId = node->TabBar->SelectedTabId; + else if (node->Windows.Size > 0) + node->SelectedTabId = node->Windows[0]->TabId; + + // Draw payload drop target + if (host_window && node->IsVisible) + if (node->IsRootNode() && (g.MovingWindow == NULL || g.MovingWindow->RootWindowDockTree != host_window)) + BeginDockableDragDropTarget(host_window); + + // We update this after DockNodeUpdateTabBar() + node->LastFrameActive = g.FrameCount; + + // Recurse into children + // FIXME-DOCK FIXME-OPT: Should not need to recurse into children + if (host_window) + { + if (node->ChildNodes[0]) + DockNodeUpdate(node->ChildNodes[0]); + if (node->ChildNodes[1]) + DockNodeUpdate(node->ChildNodes[1]); + + // Render outer borders last (after the tab bar) + if (node->IsRootNode()) + RenderWindowOuterBorders(host_window); + } + + // End host window + if (beginned_into_host_window) //-V1020 + End(); +} + +// Compare TabItem nodes given the last known DockOrder (will persist in .ini file as hint), used to sort tabs when multiple tabs are added on the same frame. +static int IMGUI_CDECL TabItemComparerByDockOrder(const void* lhs, const void* rhs) +{ + ImGuiWindow* a = ((const ImGuiTabItem*)lhs)->Window; + ImGuiWindow* b = ((const ImGuiTabItem*)rhs)->Window; + if (int d = ((a->DockOrder == -1) ? INT_MAX : a->DockOrder) - ((b->DockOrder == -1) ? INT_MAX : b->DockOrder)) + return d; + return (a->BeginOrderWithinContext - b->BeginOrderWithinContext); +} + +// Default handler for g.DockNodeWindowMenuHandler(): display the list of windows for a given dock-node. +// This is exceptionally stored in a function pointer to also user applications to tweak this menu (undocumented) +// Custom overrides may want to decorate, group, sort entries. +// Please note those are internal structures: if you copy this expect occasional breakage. +// (if you don't need to modify the "Tabs.Size == 1" behavior/path it is recommend you call this function in your handler) +void ImGui::DockNodeWindowMenuHandler_Default(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar) +{ + IM_UNUSED(ctx); + if (tab_bar->Tabs.Size == 1) + { + // "Hide tab bar" option. Being one of our rare user-facing string we pull it from a table. + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_DockingHideTabBar), NULL, node->IsHiddenTabBar())) + node->WantHiddenTabBarToggle = true; + } + else + { + // Display a selectable list of windows in this docking node + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + if (tab->Flags & ImGuiTabItemFlags_Button) + continue; + if (Selectable(TabBarGetTabName(tab_bar, tab), tab->ID == tab_bar->SelectedTabId)) + TabBarQueueFocus(tab_bar, tab); + SameLine(); + Text(" "); + } + } +} + +static void ImGui::DockNodeWindowMenuUpdate(ImGuiDockNode* node, ImGuiTabBar* tab_bar) +{ + // Try to position the menu so it is more likely to stays within the same viewport + ImGuiContext& g = *GImGui; + if (g.Style.WindowMenuButtonPosition == ImGuiDir_Left) + SetNextWindowPos(ImVec2(node->Pos.x, node->Pos.y + GetFrameHeight()), ImGuiCond_Always, ImVec2(0.0f, 0.0f)); + else + SetNextWindowPos(ImVec2(node->Pos.x + node->Size.x, node->Pos.y + GetFrameHeight()), ImGuiCond_Always, ImVec2(1.0f, 0.0f)); + if (BeginPopup("#WindowMenu")) + { + node->IsFocused = true; + g.DockNodeWindowMenuHandler(&g, node, tab_bar); + EndPopup(); + } +} + +// User helper to append/amend into a dock node tab bar. Most commonly used to add e.g. a "+" button. +bool ImGui::DockNodeBeginAmendTabBar(ImGuiDockNode* node) +{ + if (node->TabBar == NULL || node->HostWindow == NULL) + return false; + if (node->MergedFlags & ImGuiDockNodeFlags_KeepAliveOnly) + return false; + if (node->TabBar->ID == 0) + return false; + Begin(node->HostWindow->Name); + PushOverrideID(node->ID); + bool ret = BeginTabBarEx(node->TabBar, node->TabBar->BarRect, node->TabBar->Flags); + IM_UNUSED(ret); + IM_ASSERT(ret); + return true; +} + +void ImGui::DockNodeEndAmendTabBar() +{ + EndTabBar(); + PopID(); + End(); +} + +static bool IsDockNodeTitleBarHighlighted(ImGuiDockNode* node, ImGuiDockNode* root_node) +{ + // CTRL+Tab highlight (only highlighting leaf node, not whole hierarchy) + ImGuiContext& g = *GImGui; + if (g.NavWindowingTarget) + return (g.NavWindowingTarget->DockNode == node); + + // FIXME-DOCKING: May want alternative to treat central node void differently? e.g. if (g.NavWindow == host_window) + if (g.NavWindow && root_node->LastFocusedNodeId == node->ID) + { + // FIXME: This could all be backed in RootWindowForTitleBarHighlight? Probably need to reorganize for both dock nodes + other RootWindowForTitleBarHighlight users (not-node) + ImGuiWindow* parent_window = g.NavWindow->RootWindow; + while (parent_window->Flags & ImGuiWindowFlags_ChildMenu) + parent_window = parent_window->ParentWindow->RootWindow; + ImGuiDockNode* start_parent_node = parent_window->DockNodeAsHost ? parent_window->DockNodeAsHost : parent_window->DockNode; + for (ImGuiDockNode* parent_node = start_parent_node; parent_node != NULL; parent_node = parent_node->HostWindow ? parent_node->HostWindow->RootWindow->DockNode : NULL) + if ((parent_node = ImGui::DockNodeGetRootNode(parent_node)) == root_node) + return true; + } + return false; +} + +// Submit the tab bar corresponding to a dock node and various housekeeping details. +static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_window) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + + const bool node_was_active = (node->LastFrameActive + 1 == g.FrameCount); + const bool closed_all = node->WantCloseAll && node_was_active; + const ImGuiID closed_one = node->WantCloseTabId && node_was_active; + node->WantCloseAll = false; + node->WantCloseTabId = 0; + + // Decide if we should use a focused title bar color + bool is_focused = false; + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + if (IsDockNodeTitleBarHighlighted(node, root_node)) + is_focused = true; + + // Hidden tab bar will show a triangle on the upper-left (in Begin) + if (node->IsHiddenTabBar() || node->IsNoTabBar()) + { + node->VisibleWindow = (node->Windows.Size > 0) ? node->Windows[0] : NULL; + node->IsFocused = is_focused; + if (is_focused) + node->LastFrameFocused = g.FrameCount; + if (node->VisibleWindow) + { + // Notify root of visible window (used to display title in OS task bar) + if (is_focused || root_node->VisibleWindow == NULL) + root_node->VisibleWindow = node->VisibleWindow; + if (node->TabBar) + node->TabBar->VisibleTabId = node->VisibleWindow->TabId; + } + return; + } + + // Move ourselves to the Menu layer (so we can be accessed by tapping Alt) + undo SkipItems flag in order to draw over the title bar even if the window is collapsed + bool backup_skip_item = host_window->SkipItems; + if (!node->IsDockSpace()) + { + host_window->SkipItems = false; + host_window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + } + + // Use PushOverrideID() instead of PushID() to use the node id _without_ the host window ID. + // This is to facilitate computing those ID from the outside, and will affect more or less only the ID of the collapse button, popup and tabs, + // as docked windows themselves will override the stack with their own root ID. + PushOverrideID(node->ID); + ImGuiTabBar* tab_bar = node->TabBar; + bool tab_bar_is_recreated = (tab_bar == NULL); // Tab bar are automatically destroyed when a node gets hidden + if (tab_bar == NULL) + { + DockNodeAddTabBar(node); + tab_bar = node->TabBar; + } + + ImGuiID focus_tab_id = 0; + node->IsFocused = is_focused; + + const ImGuiDockNodeFlags node_flags = node->MergedFlags; + const bool has_window_menu_button = (node_flags & ImGuiDockNodeFlags_NoWindowMenuButton) == 0 && (style.WindowMenuButtonPosition != ImGuiDir_None); + + // In a dock node, the Collapse Button turns into the Window Menu button. + // FIXME-DOCK FIXME-OPT: Could we recycle popups id across multiple dock nodes? + if (has_window_menu_button && IsPopupOpen("#WindowMenu")) + { + ImGuiID next_selected_tab_id = tab_bar->NextSelectedTabId; + DockNodeWindowMenuUpdate(node, tab_bar); + if (tab_bar->NextSelectedTabId != 0 && tab_bar->NextSelectedTabId != next_selected_tab_id) + focus_tab_id = tab_bar->NextSelectedTabId; + is_focused |= node->IsFocused; + } + + // Layout + ImRect title_bar_rect, tab_bar_rect; + ImVec2 window_menu_button_pos; + ImVec2 close_button_pos; + DockNodeCalcTabBarLayout(node, &title_bar_rect, &tab_bar_rect, &window_menu_button_pos, &close_button_pos); + + // Submit new tabs, they will be added as Unsorted and sorted below based on relative DockOrder value. + const int tabs_count_old = tab_bar->Tabs.Size; + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + if (TabBarFindTabByID(tab_bar, window->TabId) == NULL) + TabBarAddTab(tab_bar, ImGuiTabItemFlags_Unsorted, window); + } + + // Title bar + if (is_focused) + node->LastFrameFocused = g.FrameCount; + ImU32 title_bar_col = GetColorU32(host_window->Collapsed ? ImGuiCol_TitleBgCollapsed : is_focused ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg); + ImDrawFlags rounding_flags = CalcRoundingFlagsForRectInRect(title_bar_rect, host_window->Rect(), g.Style.DockingSeparatorSize); + host_window->DrawList->AddRectFilled(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, host_window->WindowRounding, rounding_flags); + + // Docking/Collapse button + if (has_window_menu_button) + { + if (CollapseButton(host_window->GetID("#COLLAPSE"), window_menu_button_pos, node)) // == DockNodeGetWindowMenuButtonId(node) + OpenPopup("#WindowMenu"); + if (IsItemActive()) + focus_tab_id = tab_bar->SelectedTabId; + if (IsItemHovered(ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_DelayNormal) && g.HoveredIdTimer > 0.5f) + SetTooltip("%s", LocalizeGetMsg(ImGuiLocKey_DockingDragToUndockOrMoveNode)); + } + + // If multiple tabs are appearing on the same frame, sort them based on their persistent DockOrder value + int tabs_unsorted_start = tab_bar->Tabs.Size; + for (int tab_n = tab_bar->Tabs.Size - 1; tab_n >= 0 && (tab_bar->Tabs[tab_n].Flags & ImGuiTabItemFlags_Unsorted); tab_n--) + { + // FIXME-DOCK: Consider only clearing the flag after the tab has been alive for a few consecutive frames, allowing late comers to not break sorting? + tab_bar->Tabs[tab_n].Flags &= ~ImGuiTabItemFlags_Unsorted; + tabs_unsorted_start = tab_n; + } + if (tab_bar->Tabs.Size > tabs_unsorted_start) + { + IMGUI_DEBUG_LOG_DOCKING("[docking] In node 0x%08X: %d new appearing tabs:%s\n", node->ID, tab_bar->Tabs.Size - tabs_unsorted_start, (tab_bar->Tabs.Size > tabs_unsorted_start + 1) ? " (will sort)" : ""); + for (int tab_n = tabs_unsorted_start; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + IMGUI_DEBUG_LOG_DOCKING("[docking] - Tab 0x%08X '%s' Order %d\n", tab->ID, TabBarGetTabName(tab_bar, tab), tab->Window ? tab->Window->DockOrder : -1); + } + IMGUI_DEBUG_LOG_DOCKING("[docking] SelectedTabId = 0x%08X, NavWindow->TabId = 0x%08X\n", node->SelectedTabId, g.NavWindow ? g.NavWindow->TabId : -1); + if (tab_bar->Tabs.Size > tabs_unsorted_start + 1) + ImQsort(tab_bar->Tabs.Data + tabs_unsorted_start, tab_bar->Tabs.Size - tabs_unsorted_start, sizeof(ImGuiTabItem), TabItemComparerByDockOrder); + } + + // Apply NavWindow focus back to the tab bar + if (g.NavWindow && g.NavWindow->RootWindow->DockNode == node) + tab_bar->SelectedTabId = g.NavWindow->RootWindow->TabId; + + // Selected newly added tabs, or persistent tab ID if the tab bar was just recreated + if (tab_bar_is_recreated && TabBarFindTabByID(tab_bar, node->SelectedTabId) != NULL) + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = node->SelectedTabId; + else if (tab_bar->Tabs.Size > tabs_count_old) + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = tab_bar->Tabs.back().Window->TabId; + + // Begin tab bar + ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_AutoSelectNewTabs; // | ImGuiTabBarFlags_NoTabListScrollingButtons); + tab_bar_flags |= ImGuiTabBarFlags_SaveSettings | ImGuiTabBarFlags_DockNode;// | ImGuiTabBarFlags_FittingPolicyScroll; + if (!host_window->Collapsed && is_focused) + tab_bar_flags |= ImGuiTabBarFlags_IsFocused; + tab_bar->ID = GetID("#TabBar"); + tab_bar->SeparatorMinX = node->Pos.x + host_window->WindowBorderSize; // Separator cover the whole node width + tab_bar->SeparatorMaxX = node->Pos.x + node->Size.x - host_window->WindowBorderSize; + BeginTabBarEx(tab_bar, tab_bar_rect, tab_bar_flags); + //host_window->DrawList->AddRect(tab_bar_rect.Min, tab_bar_rect.Max, IM_COL32(255,0,255,255)); + + // Backup style colors + ImVec4 backup_style_cols[ImGuiWindowDockStyleCol_COUNT]; + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + backup_style_cols[color_n] = g.Style.Colors[GWindowDockStyleColors[color_n]]; + + // Submit actual tabs + node->VisibleWindow = NULL; + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + if ((closed_all || closed_one == window->TabId) && window->HasCloseButton && !(window->Flags & ImGuiWindowFlags_UnsavedDocument)) + continue; + if (window->LastFrameActive + 1 >= g.FrameCount || !node_was_active) + { + ImGuiTabItemFlags tab_item_flags = 0; + tab_item_flags |= window->WindowClass.TabItemFlagsOverrideSet; + if (window->Flags & ImGuiWindowFlags_UnsavedDocument) + tab_item_flags |= ImGuiTabItemFlags_UnsavedDocument; + if (tab_bar->Flags & ImGuiTabBarFlags_NoCloseWithMiddleMouseButton) + tab_item_flags |= ImGuiTabItemFlags_NoCloseWithMiddleMouseButton; + + // Apply stored style overrides for the window + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + g.Style.Colors[GWindowDockStyleColors[color_n]] = ColorConvertU32ToFloat4(window->DockStyle.Colors[color_n]); + + // Note that TabItemEx() calls TabBarCalcTabID() so our tab item ID will ignore the current ID stack (rightly so) + bool tab_open = true; + TabItemEx(tab_bar, window->Name, window->HasCloseButton ? &tab_open : NULL, tab_item_flags, window); + if (!tab_open) + node->WantCloseTabId = window->TabId; + if (tab_bar->VisibleTabId == window->TabId) + node->VisibleWindow = window; + + // Store last item data so it can be queried with IsItemXXX functions after the user Begin() call + window->DockTabItemStatusFlags = g.LastItemData.StatusFlags; + window->DockTabItemRect = g.LastItemData.Rect; + + // Update navigation ID on menu layer + if (g.NavWindow && g.NavWindow->RootWindow == window && (window->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) == 0) + host_window->NavLastIds[1] = window->TabId; + } + } + + // Restore style colors + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + g.Style.Colors[GWindowDockStyleColors[color_n]] = backup_style_cols[color_n]; + + // Notify root of visible window (used to display title in OS task bar) + if (node->VisibleWindow) + if (is_focused || root_node->VisibleWindow == NULL) + root_node->VisibleWindow = node->VisibleWindow; + + // Close button (after VisibleWindow was updated) + // Note that VisibleWindow may have been overrided by CTRL+Tabbing, so VisibleWindow->TabId may be != from tab_bar->SelectedTabId + const bool close_button_is_enabled = node->HasCloseButton && node->VisibleWindow && node->VisibleWindow->HasCloseButton; + const bool close_button_is_visible = node->HasCloseButton; + //const bool close_button_is_visible = close_button_is_enabled; // Most people would expect this behavior of not even showing the button (leaving a hole since we can't claim that space as other windows in the tba bar have one) + if (close_button_is_visible) + { + if (!close_button_is_enabled) + { + PushItemFlag(ImGuiItemFlags_Disabled, true); + PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_Text] * ImVec4(1.0f,1.0f,1.0f,0.4f)); + } + if (CloseButton(host_window->GetID("#CLOSE"), close_button_pos)) + { + node->WantCloseAll = true; + for (int n = 0; n < tab_bar->Tabs.Size; n++) + TabBarCloseTab(tab_bar, &tab_bar->Tabs[n]); + } + //if (IsItemActive()) + // focus_tab_id = tab_bar->SelectedTabId; + if (!close_button_is_enabled) + { + PopStyleColor(); + PopItemFlag(); + } + } + + // When clicking on the title bar outside of tabs, we still focus the selected tab for that node + // FIXME: TabItems submitted earlier use AllowItemOverlap so we manually perform a more specific test for now (hovered || held) in order to not cover them. + ImGuiID title_bar_id = host_window->GetID("#TITLEBAR"); + if (g.HoveredId == 0 || g.HoveredId == title_bar_id || g.ActiveId == title_bar_id) + { + // AllowOverlap mode required for appending into dock node tab bar, + // otherwise dragging window will steal HoveredId and amended tabs cannot get them. + bool held; + KeepAliveID(title_bar_id); + ButtonBehavior(title_bar_rect, title_bar_id, NULL, &held, ImGuiButtonFlags_AllowOverlap); + if (g.HoveredId == title_bar_id) + { + g.LastItemData.ID = title_bar_id; + } + if (held) + { + if (IsMouseClicked(0)) + focus_tab_id = tab_bar->SelectedTabId; + + // Forward moving request to selected window + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_bar->SelectedTabId)) + StartMouseMovingWindowOrNode(tab->Window ? tab->Window : node->HostWindow, node, false); // Undock from tab bar empty space + } + } + + // Forward focus from host node to selected window + //if (is_focused && g.NavWindow == host_window && !g.NavWindowingTarget) + // focus_tab_id = tab_bar->SelectedTabId; + + // When clicked on a tab we requested focus to the docked child + // This overrides the value set by "forward focus from host node to selected window". + if (tab_bar->NextSelectedTabId) + focus_tab_id = tab_bar->NextSelectedTabId; + + // Apply navigation focus + if (focus_tab_id != 0) + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, focus_tab_id)) + if (tab->Window) + { + FocusWindow(tab->Window); + NavInitWindow(tab->Window, false); + } + + EndTabBar(); + PopID(); + + // Restore SkipItems flag + if (!node->IsDockSpace()) + { + host_window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + host_window->SkipItems = backup_skip_item; + } +} + +static void ImGui::DockNodeAddTabBar(ImGuiDockNode* node) +{ + IM_ASSERT(node->TabBar == NULL); + node->TabBar = IM_NEW(ImGuiTabBar); +} + +static void ImGui::DockNodeRemoveTabBar(ImGuiDockNode* node) +{ + if (node->TabBar == NULL) + return; + IM_DELETE(node->TabBar); + node->TabBar = NULL; +} + +static bool DockNodeIsDropAllowedOne(ImGuiWindow* payload, ImGuiWindow* host_window) +{ + if (host_window->DockNodeAsHost && host_window->DockNodeAsHost->IsDockSpace() && payload->BeginOrderWithinContext < host_window->BeginOrderWithinContext) + return false; + + ImGuiWindowClass* host_class = host_window->DockNodeAsHost ? &host_window->DockNodeAsHost->WindowClass : &host_window->WindowClass; + ImGuiWindowClass* payload_class = &payload->WindowClass; + if (host_class->ClassId != payload_class->ClassId) + { + bool pass = false; + if (host_class->ClassId != 0 && host_class->DockingAllowUnclassed && payload_class->ClassId == 0) + pass = true; + if (payload_class->ClassId != 0 && payload_class->DockingAllowUnclassed && host_class->ClassId == 0) + pass = true; + if (!pass) + return false; + } + + // Prevent docking any window created above a popup + // Technically we should support it (e.g. in the case of a long-lived modal window that had fancy docking features), + // by e.g. adding a 'if (!ImGui::IsWindowWithinBeginStackOf(host_window, popup_window))' test. + // But it would requires more work on our end because the dock host windows is technically created in NewFrame() + // and our ->ParentXXX and ->RootXXX pointers inside windows are currently mislading or lacking. + ImGuiContext& g = *GImGui; + for (int i = g.OpenPopupStack.Size - 1; i >= 0; i--) + if (ImGuiWindow* popup_window = g.OpenPopupStack[i].Window) + if (ImGui::IsWindowWithinBeginStackOf(payload, popup_window)) // Payload is created from within a popup begin stack. + return false; + + return true; +} + +static bool ImGui::DockNodeIsDropAllowed(ImGuiWindow* host_window, ImGuiWindow* root_payload) +{ + if (root_payload->DockNodeAsHost && root_payload->DockNodeAsHost->IsSplitNode()) // FIXME-DOCK: Missing filtering + return true; + + const int payload_count = root_payload->DockNodeAsHost ? root_payload->DockNodeAsHost->Windows.Size : 1; + for (int payload_n = 0; payload_n < payload_count; payload_n++) + { + ImGuiWindow* payload = root_payload->DockNodeAsHost ? root_payload->DockNodeAsHost->Windows[payload_n] : root_payload; + if (DockNodeIsDropAllowedOne(payload, host_window)) + return true; + } + return false; +} + +// window menu button == collapse button when not in a dock node. +// FIXME: This is similar to RenderWindowTitleBarContents(), may want to share code. +static void ImGui::DockNodeCalcTabBarLayout(const ImGuiDockNode* node, ImRect* out_title_rect, ImRect* out_tab_bar_rect, ImVec2* out_window_menu_button_pos, ImVec2* out_close_button_pos) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + + ImRect r = ImRect(node->Pos.x, node->Pos.y, node->Pos.x + node->Size.x, node->Pos.y + g.FontSize + g.Style.FramePadding.y * 2.0f); + if (out_title_rect) { *out_title_rect = r; } + + r.Min.x += style.WindowBorderSize; + r.Max.x -= style.WindowBorderSize; + + float button_sz = g.FontSize; + r.Min.x += style.FramePadding.x; + r.Max.x -= style.FramePadding.x; + ImVec2 window_menu_button_pos = ImVec2(r.Min.x, r.Min.y + style.FramePadding.y); + if (node->HasCloseButton) + { + if (out_close_button_pos) *out_close_button_pos = ImVec2(r.Max.x - button_sz, r.Min.y + style.FramePadding.y); + r.Max.x -= button_sz + style.ItemInnerSpacing.x; + } + if (node->HasWindowMenuButton && style.WindowMenuButtonPosition == ImGuiDir_Left) + { + r.Min.x += button_sz + style.ItemInnerSpacing.x; + } + else if (node->HasWindowMenuButton && style.WindowMenuButtonPosition == ImGuiDir_Right) + { + window_menu_button_pos = ImVec2(r.Max.x - button_sz, r.Min.y + style.FramePadding.y); + r.Max.x -= button_sz + style.ItemInnerSpacing.x; + } + if (out_tab_bar_rect) { *out_tab_bar_rect = r; } + if (out_window_menu_button_pos) { *out_window_menu_button_pos = window_menu_button_pos; } +} + +void ImGui::DockNodeCalcSplitRects(ImVec2& pos_old, ImVec2& size_old, ImVec2& pos_new, ImVec2& size_new, ImGuiDir dir, ImVec2 size_new_desired) +{ + ImGuiContext& g = *GImGui; + const float dock_spacing = g.Style.ItemInnerSpacing.x; + const ImGuiAxis axis = (dir == ImGuiDir_Left || dir == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + pos_new[axis ^ 1] = pos_old[axis ^ 1]; + size_new[axis ^ 1] = size_old[axis ^ 1]; + + // Distribute size on given axis (with a desired size or equally) + const float w_avail = size_old[axis] - dock_spacing; + if (size_new_desired[axis] > 0.0f && size_new_desired[axis] <= w_avail * 0.5f) + { + size_new[axis] = size_new_desired[axis]; + size_old[axis] = IM_TRUNC(w_avail - size_new[axis]); + } + else + { + size_new[axis] = IM_TRUNC(w_avail * 0.5f); + size_old[axis] = IM_TRUNC(w_avail - size_new[axis]); + } + + // Position each node + if (dir == ImGuiDir_Right || dir == ImGuiDir_Down) + { + pos_new[axis] = pos_old[axis] + size_old[axis] + dock_spacing; + } + else if (dir == ImGuiDir_Left || dir == ImGuiDir_Up) + { + pos_new[axis] = pos_old[axis]; + pos_old[axis] = pos_new[axis] + size_new[axis] + dock_spacing; + } +} + +// Retrieve the drop rectangles for a given direction or for the center + perform hit testing. +bool ImGui::DockNodeCalcDropRectsAndTestMousePos(const ImRect& parent, ImGuiDir dir, ImRect& out_r, bool outer_docking, ImVec2* test_mouse_pos) +{ + ImGuiContext& g = *GImGui; + + const float parent_smaller_axis = ImMin(parent.GetWidth(), parent.GetHeight()); + const float hs_for_central_nodes = ImMin(g.FontSize * 1.5f, ImMax(g.FontSize * 0.5f, parent_smaller_axis / 8.0f)); + float hs_w; // Half-size, longer axis + float hs_h; // Half-size, smaller axis + ImVec2 off; // Distance from edge or center + if (outer_docking) + { + //hs_w = ImTrunc(ImClamp(parent_smaller_axis - hs_for_central_nodes * 4.0f, g.FontSize * 0.5f, g.FontSize * 8.0f)); + //hs_h = ImTrunc(hs_w * 0.15f); + //off = ImVec2(ImTrunc(parent.GetWidth() * 0.5f - GetFrameHeightWithSpacing() * 1.4f - hs_h), ImTrunc(parent.GetHeight() * 0.5f - GetFrameHeightWithSpacing() * 1.4f - hs_h)); + hs_w = ImTrunc(hs_for_central_nodes * 1.50f); + hs_h = ImTrunc(hs_for_central_nodes * 0.80f); + off = ImTrunc(ImVec2(parent.GetWidth() * 0.5f - hs_h, parent.GetHeight() * 0.5f - hs_h)); + } + else + { + hs_w = ImTrunc(hs_for_central_nodes); + hs_h = ImTrunc(hs_for_central_nodes * 0.90f); + off = ImTrunc(ImVec2(hs_w * 2.40f, hs_w * 2.40f)); + } + + ImVec2 c = ImTrunc(parent.GetCenter()); + if (dir == ImGuiDir_None) { out_r = ImRect(c.x - hs_w, c.y - hs_w, c.x + hs_w, c.y + hs_w); } + else if (dir == ImGuiDir_Up) { out_r = ImRect(c.x - hs_w, c.y - off.y - hs_h, c.x + hs_w, c.y - off.y + hs_h); } + else if (dir == ImGuiDir_Down) { out_r = ImRect(c.x - hs_w, c.y + off.y - hs_h, c.x + hs_w, c.y + off.y + hs_h); } + else if (dir == ImGuiDir_Left) { out_r = ImRect(c.x - off.x - hs_h, c.y - hs_w, c.x - off.x + hs_h, c.y + hs_w); } + else if (dir == ImGuiDir_Right) { out_r = ImRect(c.x + off.x - hs_h, c.y - hs_w, c.x + off.x + hs_h, c.y + hs_w); } + + if (test_mouse_pos == NULL) + return false; + + ImRect hit_r = out_r; + if (!outer_docking) + { + // Custom hit testing for the 5-way selection, designed to reduce flickering when moving diagonally between sides + hit_r.Expand(ImTrunc(hs_w * 0.30f)); + ImVec2 mouse_delta = (*test_mouse_pos - c); + float mouse_delta_len2 = ImLengthSqr(mouse_delta); + float r_threshold_center = hs_w * 1.4f; + float r_threshold_sides = hs_w * (1.4f + 1.2f); + if (mouse_delta_len2 < r_threshold_center * r_threshold_center) + return (dir == ImGuiDir_None); + if (mouse_delta_len2 < r_threshold_sides * r_threshold_sides) + return (dir == ImGetDirQuadrantFromDelta(mouse_delta.x, mouse_delta.y)); + } + return hit_r.Contains(*test_mouse_pos); +} + +// host_node may be NULL if the window doesn't have a DockNode already. +// FIXME-DOCK: This is misnamed since it's also doing the filtering. +static void ImGui::DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDockPreviewData* data, bool is_explicit_target, bool is_outer_docking) +{ + ImGuiContext& g = *GImGui; + + // There is an edge case when docking into a dockspace which only has inactive nodes. + // In this case DockNodeTreeFindNodeByPos() will have selected a leaf node which is inactive. + // Because the inactive leaf node doesn't have proper pos/size yet, we'll use the root node as reference. + if (payload_node == NULL) + payload_node = payload_window->DockNodeAsHost; + ImGuiDockNode* ref_node_for_rect = (host_node && !host_node->IsVisible) ? DockNodeGetRootNode(host_node) : host_node; + if (ref_node_for_rect) + IM_ASSERT(ref_node_for_rect->IsVisible == true); + + // Filter, figure out where we are allowed to dock + ImGuiDockNodeFlags src_node_flags = payload_node ? payload_node->MergedFlags : payload_window->WindowClass.DockNodeFlagsOverrideSet; + ImGuiDockNodeFlags dst_node_flags = host_node ? host_node->MergedFlags : host_window->WindowClass.DockNodeFlagsOverrideSet; + data->IsCenterAvailable = true; + if (is_outer_docking) + data->IsCenterAvailable = false; + else if (dst_node_flags & ImGuiDockNodeFlags_NoDockingOverMe) + data->IsCenterAvailable = false; + else if (host_node && (dst_node_flags & ImGuiDockNodeFlags_NoDockingOverCentralNode) && host_node->IsCentralNode()) + data->IsCenterAvailable = false; + else if ((!host_node || !host_node->IsEmpty()) && payload_node && payload_node->IsSplitNode() && (payload_node->OnlyNodeWithWindows == NULL)) // Is _visibly_ split? + data->IsCenterAvailable = false; + else if ((src_node_flags & ImGuiDockNodeFlags_NoDockingOverOther) && (!host_node || !host_node->IsEmpty())) + data->IsCenterAvailable = false; + else if ((src_node_flags & ImGuiDockNodeFlags_NoDockingOverEmpty) && host_node && host_node->IsEmpty()) + data->IsCenterAvailable = false; + + data->IsSidesAvailable = true; + if ((dst_node_flags & ImGuiDockNodeFlags_NoDockingSplit) || g.IO.ConfigDockingNoSplit) + data->IsSidesAvailable = false; + else if (!is_outer_docking && host_node && host_node->ParentNode == NULL && host_node->IsCentralNode()) + data->IsSidesAvailable = false; + else if (src_node_flags & ImGuiDockNodeFlags_NoDockingSplitOther) + data->IsSidesAvailable = false; + + // Build a tentative future node (reuse same structure because it is practical. Shape will be readjusted when previewing a split) + data->FutureNode.HasCloseButton = (host_node ? host_node->HasCloseButton : host_window->HasCloseButton) || (payload_window->HasCloseButton); + data->FutureNode.HasWindowMenuButton = host_node ? true : ((host_window->Flags & ImGuiWindowFlags_NoCollapse) == 0); + data->FutureNode.Pos = ref_node_for_rect ? ref_node_for_rect->Pos : host_window->Pos; + data->FutureNode.Size = ref_node_for_rect ? ref_node_for_rect->Size : host_window->Size; + + // Calculate drop shapes geometry for allowed splitting directions + IM_ASSERT(ImGuiDir_None == -1); + data->SplitNode = host_node; + data->SplitDir = ImGuiDir_None; + data->IsSplitDirExplicit = false; + if (!host_window->Collapsed) + for (int dir = ImGuiDir_None; dir < ImGuiDir_COUNT; dir++) + { + if (dir == ImGuiDir_None && !data->IsCenterAvailable) + continue; + if (dir != ImGuiDir_None && !data->IsSidesAvailable) + continue; + if (DockNodeCalcDropRectsAndTestMousePos(data->FutureNode.Rect(), (ImGuiDir)dir, data->DropRectsDraw[dir+1], is_outer_docking, &g.IO.MousePos)) + { + data->SplitDir = (ImGuiDir)dir; + data->IsSplitDirExplicit = true; + } + } + + // When docking without holding Shift, we only allow and preview docking when hovering over a drop rect or over the title bar + data->IsDropAllowed = (data->SplitDir != ImGuiDir_None) || (data->IsCenterAvailable); + if (!is_explicit_target && !data->IsSplitDirExplicit && !g.IO.ConfigDockingWithShift) + data->IsDropAllowed = false; + + // Calculate split area + data->SplitRatio = 0.0f; + if (data->SplitDir != ImGuiDir_None) + { + ImGuiDir split_dir = data->SplitDir; + ImGuiAxis split_axis = (split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + ImVec2 pos_new, pos_old = data->FutureNode.Pos; + ImVec2 size_new, size_old = data->FutureNode.Size; + DockNodeCalcSplitRects(pos_old, size_old, pos_new, size_new, split_dir, payload_window->Size); + + // Calculate split ratio so we can pass it down the docking request + float split_ratio = ImSaturate(size_new[split_axis] / data->FutureNode.Size[split_axis]); + data->FutureNode.Pos = pos_new; + data->FutureNode.Size = size_new; + data->SplitRatio = (split_dir == ImGuiDir_Right || split_dir == ImGuiDir_Down) ? (1.0f - split_ratio) : (split_ratio); + } +} + +static void ImGui::DockNodePreviewDockRender(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* root_payload, const ImGuiDockPreviewData* data) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.CurrentWindow == host_window); // Because we rely on font size to calculate tab sizes + + // With this option, we only display the preview on the target viewport, and the payload viewport is made transparent. + // To compensate for the single layer obstructed by the payload, we'll increase the alpha of the preview nodes. + const bool is_transparent_payload = g.IO.ConfigDockingTransparentPayload; + + // In case the two windows involved are on different viewports, we will draw the overlay on each of them. + int overlay_draw_lists_count = 0; + ImDrawList* overlay_draw_lists[2]; + overlay_draw_lists[overlay_draw_lists_count++] = GetForegroundDrawList(host_window->Viewport); + if (host_window->Viewport != root_payload->Viewport && !is_transparent_payload) + overlay_draw_lists[overlay_draw_lists_count++] = GetForegroundDrawList(root_payload->Viewport); + + // Draw main preview rectangle + const ImU32 overlay_col_main = GetColorU32(ImGuiCol_DockingPreview, is_transparent_payload ? 0.60f : 0.40f); + const ImU32 overlay_col_drop = GetColorU32(ImGuiCol_DockingPreview, is_transparent_payload ? 0.90f : 0.70f); + const ImU32 overlay_col_drop_hovered = GetColorU32(ImGuiCol_DockingPreview, is_transparent_payload ? 1.20f : 1.00f); + const ImU32 overlay_col_lines = GetColorU32(ImGuiCol_NavWindowingHighlight, is_transparent_payload ? 0.80f : 0.60f); + + // Display area preview + const bool can_preview_tabs = (root_payload->DockNodeAsHost == NULL || root_payload->DockNodeAsHost->Windows.Size > 0); + if (data->IsDropAllowed) + { + ImRect overlay_rect = data->FutureNode.Rect(); + if (data->SplitDir == ImGuiDir_None && can_preview_tabs) + overlay_rect.Min.y += GetFrameHeight(); + if (data->SplitDir != ImGuiDir_None || data->IsCenterAvailable) + for (int overlay_n = 0; overlay_n < overlay_draw_lists_count; overlay_n++) + overlay_draw_lists[overlay_n]->AddRectFilled(overlay_rect.Min, overlay_rect.Max, overlay_col_main, host_window->WindowRounding, CalcRoundingFlagsForRectInRect(overlay_rect, host_window->Rect(), g.Style.DockingSeparatorSize)); + } + + // Display tab shape/label preview unless we are splitting node (it generally makes the situation harder to read) + if (data->IsDropAllowed && can_preview_tabs && data->SplitDir == ImGuiDir_None && data->IsCenterAvailable) + { + // Compute target tab bar geometry so we can locate our preview tabs + ImRect tab_bar_rect; + DockNodeCalcTabBarLayout(&data->FutureNode, NULL, &tab_bar_rect, NULL, NULL); + ImVec2 tab_pos = tab_bar_rect.Min; + if (host_node && host_node->TabBar) + { + if (!host_node->IsHiddenTabBar() && !host_node->IsNoTabBar()) + tab_pos.x += host_node->TabBar->WidthAllTabs + g.Style.ItemInnerSpacing.x; // We don't use OffsetNewTab because when using non-persistent-order tab bar it is incremented with each Tab submission. + else + tab_pos.x += g.Style.ItemInnerSpacing.x + TabItemCalcSize(host_node->Windows[0]).x; + } + else if (!(host_window->Flags & ImGuiWindowFlags_DockNodeHost)) + { + tab_pos.x += g.Style.ItemInnerSpacing.x + TabItemCalcSize(host_window).x; // Account for slight offset which will be added when changing from title bar to tab bar + } + + // Draw tab shape/label preview (payload may be a loose window or a host window carrying multiple tabbed windows) + if (root_payload->DockNodeAsHost) + IM_ASSERT(root_payload->DockNodeAsHost->Windows.Size <= root_payload->DockNodeAsHost->TabBar->Tabs.Size); + ImGuiTabBar* tab_bar_with_payload = root_payload->DockNodeAsHost ? root_payload->DockNodeAsHost->TabBar : NULL; + const int payload_count = tab_bar_with_payload ? tab_bar_with_payload->Tabs.Size : 1; + for (int payload_n = 0; payload_n < payload_count; payload_n++) + { + // DockNode's TabBar may have non-window Tabs manually appended by user + ImGuiWindow* payload_window = tab_bar_with_payload ? tab_bar_with_payload->Tabs[payload_n].Window : root_payload; + if (tab_bar_with_payload && payload_window == NULL) + continue; + if (!DockNodeIsDropAllowedOne(payload_window, host_window)) + continue; + + // Calculate the tab bounding box for each payload window + ImVec2 tab_size = TabItemCalcSize(payload_window); + ImRect tab_bb(tab_pos.x, tab_pos.y, tab_pos.x + tab_size.x, tab_pos.y + tab_size.y); + tab_pos.x += tab_size.x + g.Style.ItemInnerSpacing.x; + const ImU32 overlay_col_text = GetColorU32(payload_window->DockStyle.Colors[ImGuiWindowDockStyleCol_Text]); + const ImU32 overlay_col_tabs = GetColorU32(payload_window->DockStyle.Colors[ImGuiWindowDockStyleCol_TabActive]); + PushStyleColor(ImGuiCol_Text, overlay_col_text); + for (int overlay_n = 0; overlay_n < overlay_draw_lists_count; overlay_n++) + { + ImGuiTabItemFlags tab_flags = (payload_window->Flags & ImGuiWindowFlags_UnsavedDocument) ? ImGuiTabItemFlags_UnsavedDocument : 0; + if (!tab_bar_rect.Contains(tab_bb)) + overlay_draw_lists[overlay_n]->PushClipRect(tab_bar_rect.Min, tab_bar_rect.Max); + TabItemBackground(overlay_draw_lists[overlay_n], tab_bb, tab_flags, overlay_col_tabs); + TabItemLabelAndCloseButton(overlay_draw_lists[overlay_n], tab_bb, tab_flags, g.Style.FramePadding, payload_window->Name, 0, 0, false, NULL, NULL); + if (!tab_bar_rect.Contains(tab_bb)) + overlay_draw_lists[overlay_n]->PopClipRect(); + } + PopStyleColor(); + } + } + + // Display drop boxes + const float overlay_rounding = ImMax(3.0f, g.Style.FrameRounding); + for (int dir = ImGuiDir_None; dir < ImGuiDir_COUNT; dir++) + { + if (!data->DropRectsDraw[dir + 1].IsInverted()) + { + ImRect draw_r = data->DropRectsDraw[dir + 1]; + ImRect draw_r_in = draw_r; + draw_r_in.Expand(-2.0f); + ImU32 overlay_col = (data->SplitDir == (ImGuiDir)dir && data->IsSplitDirExplicit) ? overlay_col_drop_hovered : overlay_col_drop; + for (int overlay_n = 0; overlay_n < overlay_draw_lists_count; overlay_n++) + { + ImVec2 center = ImFloor(draw_r_in.GetCenter()); + overlay_draw_lists[overlay_n]->AddRectFilled(draw_r.Min, draw_r.Max, overlay_col, overlay_rounding); + overlay_draw_lists[overlay_n]->AddRect(draw_r_in.Min, draw_r_in.Max, overlay_col_lines, overlay_rounding); + if (dir == ImGuiDir_Left || dir == ImGuiDir_Right) + overlay_draw_lists[overlay_n]->AddLine(ImVec2(center.x, draw_r_in.Min.y), ImVec2(center.x, draw_r_in.Max.y), overlay_col_lines); + if (dir == ImGuiDir_Up || dir == ImGuiDir_Down) + overlay_draw_lists[overlay_n]->AddLine(ImVec2(draw_r_in.Min.x, center.y), ImVec2(draw_r_in.Max.x, center.y), overlay_col_lines); + } + } + + // Stop after ImGuiDir_None + if ((host_node && (host_node->MergedFlags & ImGuiDockNodeFlags_NoDockingSplit)) || g.IO.ConfigDockingNoSplit) + return; + } +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockNode Tree manipulation functions +//----------------------------------------------------------------------------- +// - DockNodeTreeSplit() +// - DockNodeTreeMerge() +// - DockNodeTreeUpdatePosSize() +// - DockNodeTreeUpdateSplitterFindTouchingNode() +// - DockNodeTreeUpdateSplitter() +// - DockNodeTreeFindFallbackLeafNode() +// - DockNodeTreeFindNodeByPos() +//----------------------------------------------------------------------------- + +void ImGui::DockNodeTreeSplit(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiAxis split_axis, int split_inheritor_child_idx, float split_ratio, ImGuiDockNode* new_node) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(split_axis != ImGuiAxis_None); + + ImGuiDockNode* child_0 = (new_node && split_inheritor_child_idx != 0) ? new_node : DockContextAddNode(ctx, 0); + child_0->ParentNode = parent_node; + + ImGuiDockNode* child_1 = (new_node && split_inheritor_child_idx != 1) ? new_node : DockContextAddNode(ctx, 0); + child_1->ParentNode = parent_node; + + ImGuiDockNode* child_inheritor = (split_inheritor_child_idx == 0) ? child_0 : child_1; + DockNodeMoveChildNodes(child_inheritor, parent_node); + parent_node->ChildNodes[0] = child_0; + parent_node->ChildNodes[1] = child_1; + parent_node->ChildNodes[split_inheritor_child_idx]->VisibleWindow = parent_node->VisibleWindow; + parent_node->SplitAxis = split_axis; + parent_node->VisibleWindow = NULL; + parent_node->AuthorityForPos = parent_node->AuthorityForSize = ImGuiDataAuthority_DockNode; + + float size_avail = (parent_node->Size[split_axis] - g.Style.DockingSeparatorSize); + size_avail = ImMax(size_avail, g.Style.WindowMinSize[split_axis] * 2.0f); + IM_ASSERT(size_avail > 0.0f); // If you created a node manually with DockBuilderAddNode(), you need to also call DockBuilderSetNodeSize() before splitting. + child_0->SizeRef = child_1->SizeRef = parent_node->Size; + child_0->SizeRef[split_axis] = ImTrunc(size_avail * split_ratio); + child_1->SizeRef[split_axis] = ImTrunc(size_avail - child_0->SizeRef[split_axis]); + + DockNodeMoveWindows(parent_node->ChildNodes[split_inheritor_child_idx], parent_node); + DockSettingsRenameNodeReferences(parent_node->ID, parent_node->ChildNodes[split_inheritor_child_idx]->ID); + DockNodeUpdateHasCentralNodeChild(DockNodeGetRootNode(parent_node)); + DockNodeTreeUpdatePosSize(parent_node, parent_node->Pos, parent_node->Size); + + // Flags transfer (e.g. this is where we transfer the ImGuiDockNodeFlags_CentralNode property) + child_0->SharedFlags = parent_node->SharedFlags & ImGuiDockNodeFlags_SharedFlagsInheritMask_; + child_1->SharedFlags = parent_node->SharedFlags & ImGuiDockNodeFlags_SharedFlagsInheritMask_; + child_inheritor->LocalFlags = parent_node->LocalFlags & ImGuiDockNodeFlags_LocalFlagsTransferMask_; + parent_node->LocalFlags &= ~ImGuiDockNodeFlags_LocalFlagsTransferMask_; + child_0->UpdateMergedFlags(); + child_1->UpdateMergedFlags(); + parent_node->UpdateMergedFlags(); + if (child_inheritor->IsCentralNode()) + DockNodeGetRootNode(parent_node)->CentralNode = child_inheritor; +} + +void ImGui::DockNodeTreeMerge(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiDockNode* merge_lead_child) +{ + // When called from DockContextProcessUndockNode() it is possible that one of the child is NULL. + ImGuiContext& g = *GImGui; + ImGuiDockNode* child_0 = parent_node->ChildNodes[0]; + ImGuiDockNode* child_1 = parent_node->ChildNodes[1]; + IM_ASSERT(child_0 || child_1); + IM_ASSERT(merge_lead_child == child_0 || merge_lead_child == child_1); + if ((child_0 && child_0->Windows.Size > 0) || (child_1 && child_1->Windows.Size > 0)) + { + IM_ASSERT(parent_node->TabBar == NULL); + IM_ASSERT(parent_node->Windows.Size == 0); + } + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeTreeMerge: 0x%08X + 0x%08X back into parent 0x%08X\n", child_0 ? child_0->ID : 0, child_1 ? child_1->ID : 0, parent_node->ID); + + ImVec2 backup_last_explicit_size = parent_node->SizeRef; + DockNodeMoveChildNodes(parent_node, merge_lead_child); + if (child_0) + { + DockNodeMoveWindows(parent_node, child_0); // Generally only 1 of the 2 child node will have windows + DockSettingsRenameNodeReferences(child_0->ID, parent_node->ID); + } + if (child_1) + { + DockNodeMoveWindows(parent_node, child_1); + DockSettingsRenameNodeReferences(child_1->ID, parent_node->ID); + } + DockNodeApplyPosSizeToWindows(parent_node); + parent_node->AuthorityForPos = parent_node->AuthorityForSize = parent_node->AuthorityForViewport = ImGuiDataAuthority_Auto; + parent_node->VisibleWindow = merge_lead_child->VisibleWindow; + parent_node->SizeRef = backup_last_explicit_size; + + // Flags transfer + parent_node->LocalFlags &= ~ImGuiDockNodeFlags_LocalFlagsTransferMask_; // Preserve Dockspace flag + parent_node->LocalFlags |= (child_0 ? child_0->LocalFlags : 0) & ImGuiDockNodeFlags_LocalFlagsTransferMask_; + parent_node->LocalFlags |= (child_1 ? child_1->LocalFlags : 0) & ImGuiDockNodeFlags_LocalFlagsTransferMask_; + parent_node->LocalFlagsInWindows = (child_0 ? child_0->LocalFlagsInWindows : 0) | (child_1 ? child_1->LocalFlagsInWindows : 0); // FIXME: Would be more consistent to update from actual windows + parent_node->UpdateMergedFlags(); + + if (child_0) + { + ctx->DockContext.Nodes.SetVoidPtr(child_0->ID, NULL); + IM_DELETE(child_0); + } + if (child_1) + { + ctx->DockContext.Nodes.SetVoidPtr(child_1->ID, NULL); + IM_DELETE(child_1); + } +} + +// Update Pos/Size for a node hierarchy (don't affect child Windows yet) +// (Depth-first, Pre-Order) +void ImGui::DockNodeTreeUpdatePosSize(ImGuiDockNode* node, ImVec2 pos, ImVec2 size, ImGuiDockNode* only_write_to_single_node) +{ + // During the regular dock node update we write to all nodes. + // 'only_write_to_single_node' is only set when turning a node visible mid-frame and we need its size right-away. + ImGuiContext& g = *GImGui; + const bool write_to_node = only_write_to_single_node == NULL || only_write_to_single_node == node; + if (write_to_node) + { + node->Pos = pos; + node->Size = size; + } + + if (node->IsLeafNode()) + return; + + ImGuiDockNode* child_0 = node->ChildNodes[0]; + ImGuiDockNode* child_1 = node->ChildNodes[1]; + ImVec2 child_0_pos = pos, child_1_pos = pos; + ImVec2 child_0_size = size, child_1_size = size; + + const bool child_0_is_toward_single_node = (only_write_to_single_node != NULL && DockNodeIsInHierarchyOf(only_write_to_single_node, child_0)); + const bool child_1_is_toward_single_node = (only_write_to_single_node != NULL && DockNodeIsInHierarchyOf(only_write_to_single_node, child_1)); + const bool child_0_is_or_will_be_visible = child_0->IsVisible || child_0_is_toward_single_node; + const bool child_1_is_or_will_be_visible = child_1->IsVisible || child_1_is_toward_single_node; + + if (child_0_is_or_will_be_visible && child_1_is_or_will_be_visible) + { + const float spacing = g.Style.DockingSeparatorSize; + const ImGuiAxis axis = (ImGuiAxis)node->SplitAxis; + const float size_avail = ImMax(size[axis] - spacing, 0.0f); + + // Size allocation policy + // 1) The first 0..WindowMinSize[axis]*2 are allocated evenly to both windows. + const float size_min_each = ImTrunc(ImMin(size_avail, g.Style.WindowMinSize[axis] * 2.0f) * 0.5f); + + // FIXME: Blocks 2) and 3) are essentially doing nearly the same thing. + // Difference are: write-back to SizeRef; application of a minimum size; rounding before ImTrunc() + // Clarify and rework differences between Size & SizeRef and purpose of WantLockSizeOnce + + // 2) Process locked absolute size (during a splitter resize we preserve the child of nodes not touching the splitter edge) + if (child_0->WantLockSizeOnce && !child_1->WantLockSizeOnce) + { + child_0_size[axis] = child_0->SizeRef[axis] = ImMin(size_avail - 1.0f, child_0->Size[axis]); + child_1_size[axis] = child_1->SizeRef[axis] = (size_avail - child_0_size[axis]); + IM_ASSERT(child_0->SizeRef[axis] > 0.0f && child_1->SizeRef[axis] > 0.0f); + } + else if (child_1->WantLockSizeOnce && !child_0->WantLockSizeOnce) + { + child_1_size[axis] = child_1->SizeRef[axis] = ImMin(size_avail - 1.0f, child_1->Size[axis]); + child_0_size[axis] = child_0->SizeRef[axis] = (size_avail - child_1_size[axis]); + IM_ASSERT(child_0->SizeRef[axis] > 0.0f && child_1->SizeRef[axis] > 0.0f); + } + else if (child_0->WantLockSizeOnce && child_1->WantLockSizeOnce) + { + // FIXME-DOCK: We cannot honor the requested size, so apply ratio. + // Currently this path will only be taken if code programmatically sets WantLockSizeOnce + float split_ratio = child_0_size[axis] / (child_0_size[axis] + child_1_size[axis]); + child_0_size[axis] = child_0->SizeRef[axis] = ImTrunc(size_avail * split_ratio); + child_1_size[axis] = child_1->SizeRef[axis] = (size_avail - child_0_size[axis]); + IM_ASSERT(child_0->SizeRef[axis] > 0.0f && child_1->SizeRef[axis] > 0.0f); + } + + // 3) If one window is the central node (~ use remaining space, should be made explicit!), use explicit size from the other, and remainder for the central node + else if (child_0->SizeRef[axis] != 0.0f && child_1->HasCentralNodeChild) + { + child_0_size[axis] = ImMin(size_avail - size_min_each, child_0->SizeRef[axis]); + child_1_size[axis] = (size_avail - child_0_size[axis]); + } + else if (child_1->SizeRef[axis] != 0.0f && child_0->HasCentralNodeChild) + { + child_1_size[axis] = ImMin(size_avail - size_min_each, child_1->SizeRef[axis]); + child_0_size[axis] = (size_avail - child_1_size[axis]); + } + else + { + // 4) Otherwise distribute according to the relative ratio of each SizeRef value + float split_ratio = child_0->SizeRef[axis] / (child_0->SizeRef[axis] + child_1->SizeRef[axis]); + child_0_size[axis] = ImMax(size_min_each, ImTrunc(size_avail * split_ratio + 0.5f)); + child_1_size[axis] = (size_avail - child_0_size[axis]); + } + + child_1_pos[axis] += spacing + child_0_size[axis]; + } + + if (only_write_to_single_node == NULL) + child_0->WantLockSizeOnce = child_1->WantLockSizeOnce = false; + + const bool child_0_recurse = only_write_to_single_node ? child_0_is_toward_single_node : child_0->IsVisible; + const bool child_1_recurse = only_write_to_single_node ? child_1_is_toward_single_node : child_1->IsVisible; + if (child_0_recurse) + DockNodeTreeUpdatePosSize(child_0, child_0_pos, child_0_size); + if (child_1_recurse) + DockNodeTreeUpdatePosSize(child_1, child_1_pos, child_1_size); +} + +static void DockNodeTreeUpdateSplitterFindTouchingNode(ImGuiDockNode* node, ImGuiAxis axis, int side, ImVector* touching_nodes) +{ + if (node->IsLeafNode()) + { + touching_nodes->push_back(node); + return; + } + if (node->ChildNodes[0]->IsVisible) + if (node->SplitAxis != axis || side == 0 || !node->ChildNodes[1]->IsVisible) + DockNodeTreeUpdateSplitterFindTouchingNode(node->ChildNodes[0], axis, side, touching_nodes); + if (node->ChildNodes[1]->IsVisible) + if (node->SplitAxis != axis || side == 1 || !node->ChildNodes[0]->IsVisible) + DockNodeTreeUpdateSplitterFindTouchingNode(node->ChildNodes[1], axis, side, touching_nodes); +} + +// (Depth-First, Pre-Order) +void ImGui::DockNodeTreeUpdateSplitter(ImGuiDockNode* node) +{ + if (node->IsLeafNode()) + return; + + ImGuiContext& g = *GImGui; + + ImGuiDockNode* child_0 = node->ChildNodes[0]; + ImGuiDockNode* child_1 = node->ChildNodes[1]; + if (child_0->IsVisible && child_1->IsVisible) + { + // Bounding box of the splitter cover the space between both nodes (w = Spacing, h = Size[xy^1] for when splitting horizontally) + const ImGuiAxis axis = (ImGuiAxis)node->SplitAxis; + IM_ASSERT(axis != ImGuiAxis_None); + ImRect bb; + bb.Min = child_0->Pos; + bb.Max = child_1->Pos; + bb.Min[axis] += child_0->Size[axis]; + bb.Max[axis ^ 1] += child_1->Size[axis ^ 1]; + //if (g.IO.KeyCtrl) GetForegroundDrawList(g.CurrentWindow->Viewport)->AddRect(bb.Min, bb.Max, IM_COL32(255,0,255,255)); + + const ImGuiDockNodeFlags merged_flags = child_0->MergedFlags | child_1->MergedFlags; // Merged flags for BOTH childs + const ImGuiDockNodeFlags no_resize_axis_flag = (axis == ImGuiAxis_X) ? ImGuiDockNodeFlags_NoResizeX : ImGuiDockNodeFlags_NoResizeY; + if ((merged_flags & ImGuiDockNodeFlags_NoResize) || (merged_flags & no_resize_axis_flag)) + { + ImGuiWindow* window = g.CurrentWindow; + window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_Separator), g.Style.FrameRounding); + } + else + { + //bb.Min[axis] += 1; // Display a little inward so highlight doesn't connect with nearby tabs on the neighbor node. + //bb.Max[axis] -= 1; + PushID(node->ID); + + // Find resizing limits by gathering list of nodes that are touching the splitter line. + ImVector touching_nodes[2]; + float min_size = g.Style.WindowMinSize[axis]; + float resize_limits[2]; + resize_limits[0] = node->ChildNodes[0]->Pos[axis] + min_size; + resize_limits[1] = node->ChildNodes[1]->Pos[axis] + node->ChildNodes[1]->Size[axis] - min_size; + + ImGuiID splitter_id = GetID("##Splitter"); + if (g.ActiveId == splitter_id) // Only process when splitter is active + { + DockNodeTreeUpdateSplitterFindTouchingNode(child_0, axis, 1, &touching_nodes[0]); + DockNodeTreeUpdateSplitterFindTouchingNode(child_1, axis, 0, &touching_nodes[1]); + for (int touching_node_n = 0; touching_node_n < touching_nodes[0].Size; touching_node_n++) + resize_limits[0] = ImMax(resize_limits[0], touching_nodes[0][touching_node_n]->Rect().Min[axis] + min_size); + for (int touching_node_n = 0; touching_node_n < touching_nodes[1].Size; touching_node_n++) + resize_limits[1] = ImMin(resize_limits[1], touching_nodes[1][touching_node_n]->Rect().Max[axis] - min_size); + + // [DEBUG] Render touching nodes & limits + /* + ImDrawList* draw_list = node->HostWindow ? GetForegroundDrawList(node->HostWindow) : GetForegroundDrawList(GetMainViewport()); + for (int n = 0; n < 2; n++) + { + for (int touching_node_n = 0; touching_node_n < touching_nodes[n].Size; touching_node_n++) + draw_list->AddRect(touching_nodes[n][touching_node_n]->Pos, touching_nodes[n][touching_node_n]->Pos + touching_nodes[n][touching_node_n]->Size, IM_COL32(0, 255, 0, 255)); + if (axis == ImGuiAxis_X) + draw_list->AddLine(ImVec2(resize_limits[n], node->ChildNodes[n]->Pos.y), ImVec2(resize_limits[n], node->ChildNodes[n]->Pos.y + node->ChildNodes[n]->Size.y), IM_COL32(255, 0, 255, 255), 3.0f); + else + draw_list->AddLine(ImVec2(node->ChildNodes[n]->Pos.x, resize_limits[n]), ImVec2(node->ChildNodes[n]->Pos.x + node->ChildNodes[n]->Size.x, resize_limits[n]), IM_COL32(255, 0, 255, 255), 3.0f); + } + */ + } + + // Use a short delay before highlighting the splitter (and changing the mouse cursor) in order for regular mouse movement to not highlight many splitters + float cur_size_0 = child_0->Size[axis]; + float cur_size_1 = child_1->Size[axis]; + float min_size_0 = resize_limits[0] - child_0->Pos[axis]; + float min_size_1 = child_1->Pos[axis] + child_1->Size[axis] - resize_limits[1]; + ImU32 bg_col = GetColorU32(ImGuiCol_WindowBg); + if (SplitterBehavior(bb, GetID("##Splitter"), axis, &cur_size_0, &cur_size_1, min_size_0, min_size_1, WINDOWS_HOVER_PADDING, WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER, bg_col)) + { + if (touching_nodes[0].Size > 0 && touching_nodes[1].Size > 0) + { + child_0->Size[axis] = child_0->SizeRef[axis] = cur_size_0; + child_1->Pos[axis] -= cur_size_1 - child_1->Size[axis]; + child_1->Size[axis] = child_1->SizeRef[axis] = cur_size_1; + + // Lock the size of every node that is a sibling of the node we are touching + // This might be less desirable if we can merge sibling of a same axis into the same parental level. + for (int side_n = 0; side_n < 2; side_n++) + for (int touching_node_n = 0; touching_node_n < touching_nodes[side_n].Size; touching_node_n++) + { + ImGuiDockNode* touching_node = touching_nodes[side_n][touching_node_n]; + //ImDrawList* draw_list = node->HostWindow ? GetForegroundDrawList(node->HostWindow) : GetForegroundDrawList(GetMainViewport()); + //draw_list->AddRect(touching_node->Pos, touching_node->Pos + touching_node->Size, IM_COL32(255, 128, 0, 255)); + while (touching_node->ParentNode != node) + { + if (touching_node->ParentNode->SplitAxis == axis) + { + // Mark other node so its size will be preserved during the upcoming call to DockNodeTreeUpdatePosSize(). + ImGuiDockNode* node_to_preserve = touching_node->ParentNode->ChildNodes[side_n]; + node_to_preserve->WantLockSizeOnce = true; + //draw_list->AddRect(touching_node->Pos, touching_node->Rect().Max, IM_COL32(255, 0, 0, 255)); + //draw_list->AddRectFilled(node_to_preserve->Pos, node_to_preserve->Rect().Max, IM_COL32(0, 255, 0, 100)); + } + touching_node = touching_node->ParentNode; + } + } + + DockNodeTreeUpdatePosSize(child_0, child_0->Pos, child_0->Size); + DockNodeTreeUpdatePosSize(child_1, child_1->Pos, child_1->Size); + MarkIniSettingsDirty(); + } + } + PopID(); + } + } + + if (child_0->IsVisible) + DockNodeTreeUpdateSplitter(child_0); + if (child_1->IsVisible) + DockNodeTreeUpdateSplitter(child_1); +} + +ImGuiDockNode* ImGui::DockNodeTreeFindFallbackLeafNode(ImGuiDockNode* node) +{ + if (node->IsLeafNode()) + return node; + if (ImGuiDockNode* leaf_node = DockNodeTreeFindFallbackLeafNode(node->ChildNodes[0])) + return leaf_node; + if (ImGuiDockNode* leaf_node = DockNodeTreeFindFallbackLeafNode(node->ChildNodes[1])) + return leaf_node; + return NULL; +} + +ImGuiDockNode* ImGui::DockNodeTreeFindVisibleNodeByPos(ImGuiDockNode* node, ImVec2 pos) +{ + if (!node->IsVisible) + return NULL; + + const float dock_spacing = 0.0f;// g.Style.ItemInnerSpacing.x; // FIXME: Relation to DOCKING_SPLITTER_SIZE? + ImRect r(node->Pos, node->Pos + node->Size); + r.Expand(dock_spacing * 0.5f); + bool inside = r.Contains(pos); + if (!inside) + return NULL; + + if (node->IsLeafNode()) + return node; + if (ImGuiDockNode* hovered_node = DockNodeTreeFindVisibleNodeByPos(node->ChildNodes[0], pos)) + return hovered_node; + if (ImGuiDockNode* hovered_node = DockNodeTreeFindVisibleNodeByPos(node->ChildNodes[1], pos)) + return hovered_node; + + // This means we are hovering over the splitter/spacing of a parent node + return node; +} + +//----------------------------------------------------------------------------- +// Docking: Public Functions (SetWindowDock, DockSpace, DockSpaceOverViewport) +//----------------------------------------------------------------------------- +// - SetWindowDock() [Internal] +// - DockSpace() +// - DockSpaceOverViewport() +//----------------------------------------------------------------------------- + +// [Internal] Called via SetNextWindowDockID() +void ImGui::SetWindowDock(ImGuiWindow* window, ImGuiID dock_id, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowDockAllowFlags & cond) == 0) + return; + window->SetWindowDockAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + if (window->DockId == dock_id) + return; + + // If the user attempt to set a dock id that is a split node, we'll dig within to find a suitable docking spot + ImGuiContext* ctx = GImGui; + if (ImGuiDockNode* new_node = DockContextFindNodeByID(ctx, dock_id)) + if (new_node->IsSplitNode()) + { + // Policy: Find central node or latest focused node. We first move back to our root node. + new_node = DockNodeGetRootNode(new_node); + if (new_node->CentralNode) + { + IM_ASSERT(new_node->CentralNode->IsCentralNode()); + dock_id = new_node->CentralNode->ID; + } + else + { + dock_id = new_node->LastFocusedNodeId; + } + } + + if (window->DockId == dock_id) + return; + + if (window->DockNode) + DockNodeRemoveWindow(window->DockNode, window, 0); + window->DockId = dock_id; +} + +// Create an explicit dockspace node within an existing window. Also expose dock node flags and creates a CentralNode by default. +// The Central Node is always displayed even when empty and shrink/extend according to the requested size of its neighbors. +// DockSpace() needs to be submitted _before_ any window they can host. If you use a dockspace, submit it early in your app. +// When ImGuiDockNodeFlags_KeepAliveOnly is set, nothing is submitted in the current window (function may be called from any location). +ImGuiID ImGui::DockSpace(ImGuiID id, const ImVec2& size_arg, ImGuiDockNodeFlags flags, const ImGuiWindowClass* window_class) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + ImGuiWindow* window = GetCurrentWindowRead(); + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + return 0; + + // Early out if parent window is hidden/collapsed + // This is faster but also DockNodeUpdateTabBar() relies on TabBarLayout() running (which won't if SkipItems=true) to set NextSelectedTabId = 0). See #2960. + // If for whichever reason this is causing problem we would need to ensure that DockNodeUpdateTabBar() ends up clearing NextSelectedTabId even if SkipItems=true. + if (window->SkipItems) + flags |= ImGuiDockNodeFlags_KeepAliveOnly; + if ((flags & ImGuiDockNodeFlags_KeepAliveOnly) == 0) + window = GetCurrentWindow(); // call to set window->WriteAccessed = true; + + IM_ASSERT((flags & ImGuiDockNodeFlags_DockSpace) == 0); + IM_ASSERT(id != 0); + ImGuiDockNode* node = DockContextFindNodeByID(ctx, id); + if (!node) + { + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSpace: dockspace node 0x%08X created\n", id); + node = DockContextAddNode(ctx, id); + node->SetLocalFlags(ImGuiDockNodeFlags_CentralNode); + } + if (window_class && window_class->ClassId != node->WindowClass.ClassId) + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSpace: dockspace node 0x%08X: setup WindowClass 0x%08X -> 0x%08X\n", id, node->WindowClass.ClassId, window_class->ClassId); + node->SharedFlags = flags; + node->WindowClass = window_class ? *window_class : ImGuiWindowClass(); + + // When a DockSpace transitioned form implicit to explicit this may be called a second time + // It is possible that the node has already been claimed by a docked window which appeared before the DockSpace() node, so we overwrite IsDockSpace again. + if (node->LastFrameActive == g.FrameCount && !(flags & ImGuiDockNodeFlags_KeepAliveOnly)) + { + IM_ASSERT(node->IsDockSpace() == false && "Cannot call DockSpace() twice a frame with the same ID"); + node->SetLocalFlags(node->LocalFlags | ImGuiDockNodeFlags_DockSpace); + return id; + } + node->SetLocalFlags(node->LocalFlags | ImGuiDockNodeFlags_DockSpace); + + // Keep alive mode, this is allow windows docked into this node so stay docked even if they are not visible + if (flags & ImGuiDockNodeFlags_KeepAliveOnly) + { + node->LastFrameAlive = g.FrameCount; + return id; + } + + const ImVec2 content_avail = GetContentRegionAvail(); + ImVec2 size = ImTrunc(size_arg); + if (size.x <= 0.0f) + size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too much issues) + if (size.y <= 0.0f) + size.y = ImMax(content_avail.y + size.y, 4.0f); + IM_ASSERT(size.x > 0.0f && size.y > 0.0f); + + node->Pos = window->DC.CursorPos; + node->Size = node->SizeRef = size; + SetNextWindowPos(node->Pos); + SetNextWindowSize(node->Size); + g.NextWindowData.PosUndock = false; + + // FIXME-DOCK: Why do we need a child window to host a dockspace, could we host it in the existing window? + // FIXME-DOCK: What is the reason for not simply calling BeginChild()? (OK to have a reason but should be commented) + ImGuiWindowFlags window_flags = ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_DockNodeHost; + window_flags |= ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar; + window_flags |= ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse; + window_flags |= ImGuiWindowFlags_NoBackground; + + char title[256]; + ImFormatString(title, IM_ARRAYSIZE(title), "%s/DockSpace_%08X", window->Name, id); + + PushStyleVar(ImGuiStyleVar_ChildBorderSize, 0.0f); + Begin(title, NULL, window_flags); + PopStyleVar(); + + ImGuiWindow* host_window = g.CurrentWindow; + DockNodeSetupHostWindow(node, host_window); + host_window->ChildId = window->GetID(title); + node->OnlyNodeWithWindows = NULL; + + IM_ASSERT(node->IsRootNode()); + + // We need to handle the rare case were a central node is missing. + // This can happen if the node was first created manually with DockBuilderAddNode() but _without_ the ImGuiDockNodeFlags_Dockspace. + // Doing it correctly would set the _CentralNode flags, which would then propagate according to subsequent split. + // It would also be ambiguous to attempt to assign a central node while there are split nodes, so we wait until there's a single node remaining. + // The specific sub-property of _CentralNode we are interested in recovering here is the "Don't delete when empty" property, + // as it doesn't make sense for an empty dockspace to not have this property. + if (node->IsLeafNode() && !node->IsCentralNode()) + node->SetLocalFlags(node->LocalFlags | ImGuiDockNodeFlags_CentralNode); + + // Update the node + DockNodeUpdate(node); + + End(); + + ImRect bb(node->Pos, node->Pos + size); + ItemSize(size); + ItemAdd(bb, id, NULL, ImGuiItemFlags_NoNav); // Not a nav point (could be, would need to draw the nav rect and replicate/refactor activation from BeginChild(), but seems like CTRL+Tab works better here?) + if ((g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect) && IsWindowChildOf(g.HoveredWindow, host_window, false, true)) // To fullfill IsItemHovered(), similar to EndChild() + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + + return id; +} + +// Tips: Use with ImGuiDockNodeFlags_PassthruCentralNode! +// The limitation with this call is that your window won't have a menu bar. +// Even though we could pass window flags, it would also require the user to be able to call BeginMenuBar() somehow meaning we can't Begin/End in a single function. +// But you can also use BeginMainMenuBar(). If you really want a menu bar inside the same window as the one hosting the dockspace, you will need to copy this code somewhere and tweak it. +ImGuiID ImGui::DockSpaceOverViewport(const ImGuiViewport* viewport, ImGuiDockNodeFlags dockspace_flags, const ImGuiWindowClass* window_class) +{ + if (viewport == NULL) + viewport = GetMainViewport(); + + SetNextWindowPos(viewport->WorkPos); + SetNextWindowSize(viewport->WorkSize); + SetNextWindowViewport(viewport->ID); + + ImGuiWindowFlags host_window_flags = 0; + host_window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoDocking; + host_window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoNavFocus; + if (dockspace_flags & ImGuiDockNodeFlags_PassthruCentralNode) + host_window_flags |= ImGuiWindowFlags_NoBackground; + + char label[32]; + ImFormatString(label, IM_ARRAYSIZE(label), "DockSpaceViewport_%08X", viewport->ID); + + PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); + PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f); + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); + Begin(label, NULL, host_window_flags); + PopStyleVar(3); + + ImGuiID dockspace_id = GetID("DockSpace"); + DockSpace(dockspace_id, ImVec2(0.0f, 0.0f), dockspace_flags, window_class); + End(); + + return dockspace_id; +} + +//----------------------------------------------------------------------------- +// Docking: Builder Functions +//----------------------------------------------------------------------------- +// Very early end-user API to manipulate dock nodes. +// Only available in imgui_internal.h. Expect this API to change/break! +// It is expected that those functions are all called _before_ the dockspace node submission. +//----------------------------------------------------------------------------- +// - DockBuilderDockWindow() +// - DockBuilderGetNode() +// - DockBuilderSetNodePos() +// - DockBuilderSetNodeSize() +// - DockBuilderAddNode() +// - DockBuilderRemoveNode() +// - DockBuilderRemoveNodeChildNodes() +// - DockBuilderRemoveNodeDockedWindows() +// - DockBuilderSplitNode() +// - DockBuilderCopyNodeRec() +// - DockBuilderCopyNode() +// - DockBuilderCopyWindowSettings() +// - DockBuilderCopyDockSpace() +// - DockBuilderFinish() +//----------------------------------------------------------------------------- + +void ImGui::DockBuilderDockWindow(const char* window_name, ImGuiID node_id) +{ + // We don't preserve relative order of multiple docked windows (by clearing DockOrder back to -1) + ImGuiContext& g = *GImGui; IM_UNUSED(g); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockBuilderDockWindow '%s' to node 0x%08X\n", window_name, node_id); + ImGuiID window_id = ImHashStr(window_name); + if (ImGuiWindow* window = FindWindowByID(window_id)) + { + // Apply to created window + ImGuiID prev_node_id = window->DockId; + SetWindowDock(window, node_id, ImGuiCond_Always); + if (window->DockId != prev_node_id) + window->DockOrder = -1; + } + else + { + // Apply to settings + ImGuiWindowSettings* settings = FindWindowSettingsByID(window_id); + if (settings == NULL) + settings = CreateNewWindowSettings(window_name); + if (settings->DockId != node_id) + settings->DockOrder = -1; + settings->DockId = node_id; + } +} + +ImGuiDockNode* ImGui::DockBuilderGetNode(ImGuiID node_id) +{ + ImGuiContext* ctx = GImGui; + return DockContextFindNodeByID(ctx, node_id); +} + +void ImGui::DockBuilderSetNodePos(ImGuiID node_id, ImVec2 pos) +{ + ImGuiContext* ctx = GImGui; + ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + node->Pos = pos; + node->AuthorityForPos = ImGuiDataAuthority_DockNode; +} + +void ImGui::DockBuilderSetNodeSize(ImGuiID node_id, ImVec2 size) +{ + ImGuiContext* ctx = GImGui; + ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + IM_ASSERT(size.x > 0.0f && size.y > 0.0f); + node->Size = node->SizeRef = size; + node->AuthorityForSize = ImGuiDataAuthority_DockNode; +} + +// Make sure to use the ImGuiDockNodeFlags_DockSpace flag to create a dockspace node! Otherwise this will create a floating node! +// - Floating node: you can then call DockBuilderSetNodePos()/DockBuilderSetNodeSize() to position and size the floating node. +// - Dockspace node: calling DockBuilderSetNodePos() is unnecessary. +// - If you intend to split a node immediately after creation using DockBuilderSplitNode(), make sure to call DockBuilderSetNodeSize() beforehand! +// For various reason, the splitting code currently needs a base size otherwise space may not be allocated as precisely as you would expect. +// - Use (id == 0) to let the system allocate a node identifier. +// - Existing node with a same id will be removed. +ImGuiID ImGui::DockBuilderAddNode(ImGuiID node_id, ImGuiDockNodeFlags flags) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; IM_UNUSED(g); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockBuilderAddNode 0x%08X flags=%08X\n", node_id, flags); + + if (node_id != 0) + DockBuilderRemoveNode(node_id); + + ImGuiDockNode* node = NULL; + if (flags & ImGuiDockNodeFlags_DockSpace) + { + DockSpace(node_id, ImVec2(0, 0), (flags & ~ImGuiDockNodeFlags_DockSpace) | ImGuiDockNodeFlags_KeepAliveOnly); + node = DockContextFindNodeByID(ctx, node_id); + } + else + { + node = DockContextAddNode(ctx, node_id); + node->SetLocalFlags(flags); + } + node->LastFrameAlive = ctx->FrameCount; // Set this otherwise BeginDocked will undock during the same frame. + return node->ID; +} + +void ImGui::DockBuilderRemoveNode(ImGuiID node_id) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; IM_UNUSED(g); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockBuilderRemoveNode 0x%08X\n", node_id); + + ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + DockBuilderRemoveNodeDockedWindows(node_id, true); + DockBuilderRemoveNodeChildNodes(node_id); + // Node may have moved or deleted if e.g. any merge happened + node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + if (node->IsCentralNode() && node->ParentNode) + node->ParentNode->SetLocalFlags(node->ParentNode->LocalFlags | ImGuiDockNodeFlags_CentralNode); + DockContextRemoveNode(ctx, node, true); +} + +// root_id = 0 to remove all, root_id != 0 to remove child of given node. +void ImGui::DockBuilderRemoveNodeChildNodes(ImGuiID root_id) +{ + ImGuiContext* ctx = GImGui; + ImGuiDockContext* dc = &ctx->DockContext; + + ImGuiDockNode* root_node = root_id ? DockContextFindNodeByID(ctx, root_id) : NULL; + if (root_id && root_node == NULL) + return; + bool has_central_node = false; + + ImGuiDataAuthority backup_root_node_authority_for_pos = root_node ? root_node->AuthorityForPos : ImGuiDataAuthority_Auto; + ImGuiDataAuthority backup_root_node_authority_for_size = root_node ? root_node->AuthorityForSize : ImGuiDataAuthority_Auto; + + // Process active windows + ImVector nodes_to_remove; + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + { + bool want_removal = (root_id == 0) || (node->ID != root_id && DockNodeGetRootNode(node)->ID == root_id); + if (want_removal) + { + if (node->IsCentralNode()) + has_central_node = true; + if (root_id != 0) + DockContextQueueNotifyRemovedNode(ctx, node); + if (root_node) + { + DockNodeMoveWindows(root_node, node); + DockSettingsRenameNodeReferences(node->ID, root_node->ID); + } + nodes_to_remove.push_back(node); + } + } + + // DockNodeMoveWindows->DockNodeAddWindow will normally set those when reaching two windows (which is only adequate during interactive merge) + // Make sure we don't lose our current pos/size. (FIXME-DOCK: Consider tidying up that code in DockNodeAddWindow instead) + if (root_node) + { + root_node->AuthorityForPos = backup_root_node_authority_for_pos; + root_node->AuthorityForSize = backup_root_node_authority_for_size; + } + + // Apply to settings + for (ImGuiWindowSettings* settings = ctx->SettingsWindows.begin(); settings != NULL; settings = ctx->SettingsWindows.next_chunk(settings)) + if (ImGuiID window_settings_dock_id = settings->DockId) + for (int n = 0; n < nodes_to_remove.Size; n++) + if (nodes_to_remove[n]->ID == window_settings_dock_id) + { + settings->DockId = root_id; + break; + } + + // Not really efficient, but easier to destroy a whole hierarchy considering DockContextRemoveNode is attempting to merge nodes + if (nodes_to_remove.Size > 1) + ImQsort(nodes_to_remove.Data, nodes_to_remove.Size, sizeof(ImGuiDockNode*), DockNodeComparerDepthMostFirst); + for (int n = 0; n < nodes_to_remove.Size; n++) + DockContextRemoveNode(ctx, nodes_to_remove[n], false); + + if (root_id == 0) + { + dc->Nodes.Clear(); + dc->Requests.clear(); + } + else if (has_central_node) + { + root_node->CentralNode = root_node; + root_node->SetLocalFlags(root_node->LocalFlags | ImGuiDockNodeFlags_CentralNode); + } +} + +void ImGui::DockBuilderRemoveNodeDockedWindows(ImGuiID root_id, bool clear_settings_refs) +{ + // Clear references in settings + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + if (clear_settings_refs) + { + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + { + bool want_removal = (root_id == 0) || (settings->DockId == root_id); + if (!want_removal && settings->DockId != 0) + if (ImGuiDockNode* node = DockContextFindNodeByID(ctx, settings->DockId)) + if (DockNodeGetRootNode(node)->ID == root_id) + want_removal = true; + if (want_removal) + settings->DockId = 0; + } + } + + // Clear references in windows + for (int n = 0; n < g.Windows.Size; n++) + { + ImGuiWindow* window = g.Windows[n]; + bool want_removal = (root_id == 0) || (window->DockNode && DockNodeGetRootNode(window->DockNode)->ID == root_id) || (window->DockNodeAsHost && window->DockNodeAsHost->ID == root_id); + if (want_removal) + { + const ImGuiID backup_dock_id = window->DockId; + IM_UNUSED(backup_dock_id); + DockContextProcessUndockWindow(ctx, window, clear_settings_refs); + if (!clear_settings_refs) + IM_ASSERT(window->DockId == backup_dock_id); + } + } +} + +// If 'out_id_at_dir' or 'out_id_at_opposite_dir' are non NULL, the function will write out the ID of the two new nodes created. +// Return value is ID of the node at the specified direction, so same as (*out_id_at_dir) if that pointer is set. +// FIXME-DOCK: We are not exposing nor using split_outer. +ImGuiID ImGui::DockBuilderSplitNode(ImGuiID id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(split_dir != ImGuiDir_None); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockBuilderSplitNode: node 0x%08X, split_dir %d\n", id, split_dir); + + ImGuiDockNode* node = DockContextFindNodeByID(&g, id); + if (node == NULL) + { + IM_ASSERT(node != NULL); + return 0; + } + + IM_ASSERT(!node->IsSplitNode()); // Assert if already Split + + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Split; + req.DockTargetWindow = NULL; + req.DockTargetNode = node; + req.DockPayload = NULL; + req.DockSplitDir = split_dir; + req.DockSplitRatio = ImSaturate((split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? size_ratio_for_node_at_dir : 1.0f - size_ratio_for_node_at_dir); + req.DockSplitOuter = false; + DockContextProcessDock(&g, &req); + + ImGuiID id_at_dir = node->ChildNodes[(split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? 0 : 1]->ID; + ImGuiID id_at_opposite_dir = node->ChildNodes[(split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? 1 : 0]->ID; + if (out_id_at_dir) + *out_id_at_dir = id_at_dir; + if (out_id_at_opposite_dir) + *out_id_at_opposite_dir = id_at_opposite_dir; + return id_at_dir; +} + +static ImGuiDockNode* DockBuilderCopyNodeRec(ImGuiDockNode* src_node, ImGuiID dst_node_id_if_known, ImVector* out_node_remap_pairs) +{ + ImGuiContext& g = *GImGui; + ImGuiDockNode* dst_node = ImGui::DockContextAddNode(&g, dst_node_id_if_known); + dst_node->SharedFlags = src_node->SharedFlags; + dst_node->LocalFlags = src_node->LocalFlags; + dst_node->LocalFlagsInWindows = ImGuiDockNodeFlags_None; + dst_node->Pos = src_node->Pos; + dst_node->Size = src_node->Size; + dst_node->SizeRef = src_node->SizeRef; + dst_node->SplitAxis = src_node->SplitAxis; + dst_node->UpdateMergedFlags(); + + out_node_remap_pairs->push_back(src_node->ID); + out_node_remap_pairs->push_back(dst_node->ID); + + for (int child_n = 0; child_n < IM_ARRAYSIZE(src_node->ChildNodes); child_n++) + if (src_node->ChildNodes[child_n]) + { + dst_node->ChildNodes[child_n] = DockBuilderCopyNodeRec(src_node->ChildNodes[child_n], 0, out_node_remap_pairs); + dst_node->ChildNodes[child_n]->ParentNode = dst_node; + } + + IMGUI_DEBUG_LOG_DOCKING("[docking] Fork node %08X -> %08X (%d childs)\n", src_node->ID, dst_node->ID, dst_node->IsSplitNode() ? 2 : 0); + return dst_node; +} + +void ImGui::DockBuilderCopyNode(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector* out_node_remap_pairs) +{ + ImGuiContext* ctx = GImGui; + IM_ASSERT(src_node_id != 0); + IM_ASSERT(dst_node_id != 0); + IM_ASSERT(out_node_remap_pairs != NULL); + + DockBuilderRemoveNode(dst_node_id); + + ImGuiDockNode* src_node = DockContextFindNodeByID(ctx, src_node_id); + IM_ASSERT(src_node != NULL); + + out_node_remap_pairs->clear(); + DockBuilderCopyNodeRec(src_node, dst_node_id, out_node_remap_pairs); + + IM_ASSERT((out_node_remap_pairs->Size % 2) == 0); +} + +void ImGui::DockBuilderCopyWindowSettings(const char* src_name, const char* dst_name) +{ + ImGuiWindow* src_window = FindWindowByName(src_name); + if (src_window == NULL) + return; + if (ImGuiWindow* dst_window = FindWindowByName(dst_name)) + { + dst_window->Pos = src_window->Pos; + dst_window->Size = src_window->Size; + dst_window->SizeFull = src_window->SizeFull; + dst_window->Collapsed = src_window->Collapsed; + } + else + { + ImGuiWindowSettings* dst_settings = FindWindowSettingsByID(ImHashStr(dst_name)); + if (!dst_settings) + dst_settings = CreateNewWindowSettings(dst_name); + ImVec2ih window_pos_2ih = ImVec2ih(src_window->Pos); + if (src_window->ViewportId != 0 && src_window->ViewportId != IMGUI_VIEWPORT_DEFAULT_ID) + { + dst_settings->ViewportPos = window_pos_2ih; + dst_settings->ViewportId = src_window->ViewportId; + dst_settings->Pos = ImVec2ih(0, 0); + } + else + { + dst_settings->Pos = window_pos_2ih; + } + dst_settings->Size = ImVec2ih(src_window->SizeFull); + dst_settings->Collapsed = src_window->Collapsed; + } +} + +// FIXME: Will probably want to change this signature, in particular how the window remapping pairs are passed. +void ImGui::DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector* in_window_remap_pairs) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(src_dockspace_id != 0); + IM_ASSERT(dst_dockspace_id != 0); + IM_ASSERT(in_window_remap_pairs != NULL); + IM_ASSERT((in_window_remap_pairs->Size % 2) == 0); + + // Duplicate entire dock + // FIXME: When overwriting dst_dockspace_id, windows that aren't part of our dockspace window class but that are docked in a same node will be split apart, + // whereas we could attempt to at least keep them together in a new, same floating node. + ImVector node_remap_pairs; + DockBuilderCopyNode(src_dockspace_id, dst_dockspace_id, &node_remap_pairs); + + // Attempt to transition all the upcoming windows associated to dst_dockspace_id into the newly created hierarchy of dock nodes + // (The windows associated to src_dockspace_id are staying in place) + ImVector src_windows; + for (int remap_window_n = 0; remap_window_n < in_window_remap_pairs->Size; remap_window_n += 2) + { + const char* src_window_name = (*in_window_remap_pairs)[remap_window_n]; + const char* dst_window_name = (*in_window_remap_pairs)[remap_window_n + 1]; + ImGuiID src_window_id = ImHashStr(src_window_name); + src_windows.push_back(src_window_id); + + // Search in the remapping tables + ImGuiID src_dock_id = 0; + if (ImGuiWindow* src_window = FindWindowByID(src_window_id)) + src_dock_id = src_window->DockId; + else if (ImGuiWindowSettings* src_window_settings = FindWindowSettingsByID(src_window_id)) + src_dock_id = src_window_settings->DockId; + ImGuiID dst_dock_id = 0; + for (int dock_remap_n = 0; dock_remap_n < node_remap_pairs.Size; dock_remap_n += 2) + if (node_remap_pairs[dock_remap_n] == src_dock_id) + { + dst_dock_id = node_remap_pairs[dock_remap_n + 1]; + //node_remap_pairs[dock_remap_n] = node_remap_pairs[dock_remap_n + 1] = 0; // Clear + break; + } + + if (dst_dock_id != 0) + { + // Docked windows gets redocked into the new node hierarchy. + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap live window '%s' 0x%08X -> '%s' 0x%08X\n", src_window_name, src_dock_id, dst_window_name, dst_dock_id); + DockBuilderDockWindow(dst_window_name, dst_dock_id); + } + else + { + // Floating windows gets their settings transferred (regardless of whether the new window already exist or not) + // When this is leading to a Copy and not a Move, we would get two overlapping floating windows. Could we possibly dock them together? + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap window settings '%s' -> '%s'\n", src_window_name, dst_window_name); + DockBuilderCopyWindowSettings(src_window_name, dst_window_name); + } + } + + // Anything else in the source nodes of 'node_remap_pairs' are windows that are not included in the remapping list. + // Find those windows and move to them to the cloned dock node. This may be optional? + // Dock those are a second step as undocking would invalidate source dock nodes. + struct DockRemainingWindowTask { ImGuiWindow* Window; ImGuiID DockId; DockRemainingWindowTask(ImGuiWindow* window, ImGuiID dock_id) { Window = window; DockId = dock_id; } }; + ImVector dock_remaining_windows; + for (int dock_remap_n = 0; dock_remap_n < node_remap_pairs.Size; dock_remap_n += 2) + if (ImGuiID src_dock_id = node_remap_pairs[dock_remap_n]) + { + ImGuiID dst_dock_id = node_remap_pairs[dock_remap_n + 1]; + ImGuiDockNode* node = DockBuilderGetNode(src_dock_id); + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + if (src_windows.contains(window->ID)) + continue; + + // Docked windows gets redocked into the new node hierarchy. + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap window '%s' %08X -> %08X\n", window->Name, src_dock_id, dst_dock_id); + dock_remaining_windows.push_back(DockRemainingWindowTask(window, dst_dock_id)); + } + } + for (const DockRemainingWindowTask& task : dock_remaining_windows) + DockBuilderDockWindow(task.Window->Name, task.DockId); +} + +// FIXME-DOCK: This is awkward because in series of split user is likely to loose access to its root node. +void ImGui::DockBuilderFinish(ImGuiID root_id) +{ + ImGuiContext* ctx = GImGui; + //DockContextRebuild(ctx); + DockContextBuildAddWindowsToNodes(ctx, root_id); +} + +//----------------------------------------------------------------------------- +// Docking: Begin/End Support Functions (called from Begin/End) +//----------------------------------------------------------------------------- +// - GetWindowAlwaysWantOwnTabBar() +// - DockContextBindNodeToWindow() +// - BeginDocked() +// - BeginDockableDragDropSource() +// - BeginDockableDragDropTarget() +//----------------------------------------------------------------------------- + +bool ImGui::GetWindowAlwaysWantOwnTabBar(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.IO.ConfigDockingAlwaysTabBar || window->WindowClass.DockingAlwaysTabBar) + if ((window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoDocking)) == 0) + if (!window->IsFallbackWindow) // We don't support AlwaysTabBar on the fallback/implicit window to avoid unused dock-node overhead/noise + return true; + return false; +} + +static ImGuiDockNode* ImGui::DockContextBindNodeToWindow(ImGuiContext* ctx, ImGuiWindow* window) +{ + ImGuiContext& g = *ctx; + ImGuiDockNode* node = DockContextFindNodeByID(ctx, window->DockId); + IM_ASSERT(window->DockNode == NULL); + + // We should not be docking into a split node (SetWindowDock should avoid this) + if (node && node->IsSplitNode()) + { + DockContextProcessUndockWindow(ctx, window); + return NULL; + } + + // Create node + if (node == NULL) + { + node = DockContextAddNode(ctx, window->DockId); + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Window; + node->LastFrameAlive = g.FrameCount; + } + + // If the node just turned visible and is part of a hierarchy, it doesn't have a Size assigned by DockNodeTreeUpdatePosSize() yet, + // so we're forcing a Pos/Size update from the first ancestor that is already visible (often it will be the root node). + // If we don't do this, the window will be assigned a zero-size on its first frame, which won't ideally warm up the layout. + // This is a little wonky because we don't normally update the Pos/Size of visible node mid-frame. + if (!node->IsVisible) + { + ImGuiDockNode* ancestor_node = node; + while (!ancestor_node->IsVisible && ancestor_node->ParentNode) + ancestor_node = ancestor_node->ParentNode; + IM_ASSERT(ancestor_node->Size.x > 0.0f && ancestor_node->Size.y > 0.0f); + DockNodeUpdateHasCentralNodeChild(DockNodeGetRootNode(ancestor_node)); + DockNodeTreeUpdatePosSize(ancestor_node, ancestor_node->Pos, ancestor_node->Size, node); + } + + // Add window to node + bool node_was_visible = node->IsVisible; + DockNodeAddWindow(node, window, true); + node->IsVisible = node_was_visible; // Don't mark visible right away (so DockContextEndFrame() doesn't render it, maybe other side effects? will see) + IM_ASSERT(node == window->DockNode); + return node; +} + +void ImGui::BeginDocked(ImGuiWindow* window, bool* p_open) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + + // Clear fields ahead so most early-out paths don't have to do it + window->DockIsActive = window->DockNodeIsVisible = window->DockTabIsVisible = false; + + const bool auto_dock_node = GetWindowAlwaysWantOwnTabBar(window); + if (auto_dock_node) + { + if (window->DockId == 0) + { + IM_ASSERT(window->DockNode == NULL); + window->DockId = DockContextGenNodeID(ctx); + } + } + else + { + // Calling SetNextWindowPos() undock windows by default (by setting PosUndock) + bool want_undock = false; + want_undock |= (window->Flags & ImGuiWindowFlags_NoDocking) != 0; + want_undock |= (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) && (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) && g.NextWindowData.PosUndock; + if (want_undock) + { + DockContextProcessUndockWindow(ctx, window); + return; + } + } + + // Bind to our dock node + ImGuiDockNode* node = window->DockNode; + if (node != NULL) + IM_ASSERT(window->DockId == node->ID); + if (window->DockId != 0 && node == NULL) + { + node = DockContextBindNodeToWindow(ctx, window); + if (node == NULL) + return; + } + +#if 0 + // Undock if the ImGuiDockNodeFlags_NoDockingInCentralNode got set + if (node->IsCentralNode && (node->Flags & ImGuiDockNodeFlags_NoDockingInCentralNode)) + { + DockContextProcessUndockWindow(ctx, window); + return; + } +#endif + + // Undock if our dockspace node disappeared + // Note how we are testing for LastFrameAlive and NOT LastFrameActive. A DockSpace node can be maintained alive while being inactive with ImGuiDockNodeFlags_KeepAliveOnly. + if (node->LastFrameAlive < g.FrameCount) + { + // If the window has been orphaned, transition the docknode to an implicit node processed in DockContextNewFrameUpdateDocking() + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + if (root_node->LastFrameAlive < g.FrameCount) + DockContextProcessUndockWindow(ctx, window); + else + window->DockIsActive = true; + return; + } + + // Store style overrides + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + window->DockStyle.Colors[color_n] = ColorConvertFloat4ToU32(g.Style.Colors[GWindowDockStyleColors[color_n]]); + + // Fast path return. It is common for windows to hold on a persistent DockId but be the only visible window, + // and never create neither a host window neither a tab bar. + // FIXME-DOCK: replace ->HostWindow NULL compare with something more explicit (~was initially intended as a first frame test) + if (node->HostWindow == NULL) + { + if (node->State == ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing) + window->DockIsActive = true; + if (node->Windows.Size > 1 && window->Appearing) // Only hide appearing window + DockNodeHideWindowDuringHostWindowCreation(window); + return; + } + + // We can have zero-sized nodes (e.g. children of a small-size dockspace) + IM_ASSERT(node->HostWindow); + IM_ASSERT(node->IsLeafNode()); + IM_ASSERT(node->Size.x >= 0.0f && node->Size.y >= 0.0f); + node->State = ImGuiDockNodeState_HostWindowVisible; + + // Undock if we are submitted earlier than the host window + if (!(node->MergedFlags & ImGuiDockNodeFlags_KeepAliveOnly) && window->BeginOrderWithinContext < node->HostWindow->BeginOrderWithinContext) + { + DockContextProcessUndockWindow(ctx, window); + return; + } + + // Position/Size window + SetNextWindowPos(node->Pos); + SetNextWindowSize(node->Size); + g.NextWindowData.PosUndock = false; // Cancel implicit undocking of SetNextWindowPos() + window->DockIsActive = true; + window->DockNodeIsVisible = true; + window->DockTabIsVisible = false; + if (node->MergedFlags & ImGuiDockNodeFlags_KeepAliveOnly) + return; + + // When the window is selected we mark it as visible. + if (node->VisibleWindow == window) + window->DockTabIsVisible = true; + + // Update window flag + IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) == 0); + window->Flags |= ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_AlwaysUseWindowPadding | ImGuiWindowFlags_NoResize; + if (node->IsHiddenTabBar() || node->IsNoTabBar()) + window->Flags |= ImGuiWindowFlags_NoTitleBar; + else + window->Flags &= ~ImGuiWindowFlags_NoTitleBar; // Clear the NoTitleBar flag in case the user set it: confusingly enough we need a title bar height so we are correctly offset, but it won't be displayed! + + // Save new dock order only if the window has been visible once already + // This allows multiple windows to be created in the same frame and have their respective dock orders preserved. + if (node->TabBar && window->WasActive) + window->DockOrder = (short)DockNodeGetTabOrder(window); + + if ((node->WantCloseAll || node->WantCloseTabId == window->TabId) && p_open != NULL) + *p_open = false; + + // Update ChildId to allow returning from Child to Parent with Escape + ImGuiWindow* parent_window = window->DockNode->HostWindow; + window->ChildId = parent_window->GetID(window->Name); +} + +void ImGui::BeginDockableDragDropSource(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ActiveId == window->MoveId); + IM_ASSERT(g.MovingWindow == window); + IM_ASSERT(g.CurrentWindow == window); + + // 0: Hold SHIFT to disable docking, 1: Hold SHIFT to enable docking. + if (g.IO.ConfigDockingWithShift != g.IO.KeyShift) + { + // When ConfigDockingWithShift is set, display a tooltip to increase UI affordance. + // We cannot set for HoveredWindowUnderMovingWindow != NULL here, as it is only valid/useful when drag and drop is already active + // (because of the 'is_mouse_dragging_with_an_expected_destination' logic in UpdateViewportsNewFrame() function) + if (g.IO.ConfigDockingWithShift && g.MouseStationaryTimer >= 1.0f && g.ActiveId >= 1.0f) + SetTooltip("%s", LocalizeGetMsg(ImGuiLocKey_DockingHoldShiftToDock)); + return; + } + + g.LastItemData.ID = window->MoveId; + window = window->RootWindowDockTree; + IM_ASSERT((window->Flags & ImGuiWindowFlags_NoDocking) == 0); + bool is_drag_docking = (g.IO.ConfigDockingWithShift) || ImRect(0, 0, window->SizeFull.x, GetFrameHeight()).Contains(g.ActiveIdClickOffset); // FIXME-DOCKING: Need to make this stateful and explicit + if (is_drag_docking && BeginDragDropSource(ImGuiDragDropFlags_SourceNoPreviewTooltip | ImGuiDragDropFlags_SourceNoHoldToOpenOthers | ImGuiDragDropFlags_SourceAutoExpirePayload)) + { + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_WINDOW, &window, sizeof(window)); + EndDragDropSource(); + + // Store style overrides + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + window->DockStyle.Colors[color_n] = ColorConvertFloat4ToU32(g.Style.Colors[GWindowDockStyleColors[color_n]]); + } +} + +void ImGui::BeginDockableDragDropTarget(ImGuiWindow* window) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + + //IM_ASSERT(window->RootWindowDockTree == window); // May also be a DockSpace + IM_ASSERT((window->Flags & ImGuiWindowFlags_NoDocking) == 0); + if (!g.DragDropActive) + return; + //GetForegroundDrawList(window)->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!BeginDragDropTargetCustom(window->Rect(), window->ID)) + return; + + // Peek into the payload before calling AcceptDragDropPayload() so we can handle overlapping dock nodes with filtering + // (this is a little unusual pattern, normally most code would call AcceptDragDropPayload directly) + const ImGuiPayload* payload = &g.DragDropPayload; + if (!payload->IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW) || !DockNodeIsDropAllowed(window, *(ImGuiWindow**)payload->Data)) + { + EndDragDropTarget(); + return; + } + + ImGuiWindow* payload_window = *(ImGuiWindow**)payload->Data; + if (AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_WINDOW, ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect)) + { + // Select target node + // (Important: we cannot use g.HoveredDockNode here! Because each of our target node have filters based on payload, each candidate drop target will do its own evaluation) + bool dock_into_floating_window = false; + ImGuiDockNode* node = NULL; + if (window->DockNodeAsHost) + { + // Cannot assume that node will != NULL even though we passed the rectangle test: it depends on padding/spacing handled by DockNodeTreeFindVisibleNodeByPos(). + node = DockNodeTreeFindVisibleNodeByPos(window->DockNodeAsHost, g.IO.MousePos); + + // There is an edge case when docking into a dockspace which only has _inactive_ nodes (because none of the windows are active) + // In this case we need to fallback into any leaf mode, possibly the central node. + // FIXME-20181220: We should not have to test for IsLeafNode() here but we have another bug to fix first. + if (node && node->IsDockSpace() && node->IsRootNode()) + node = (node->CentralNode && node->IsLeafNode()) ? node->CentralNode : DockNodeTreeFindFallbackLeafNode(node); + } + else + { + if (window->DockNode) + node = window->DockNode; + else + dock_into_floating_window = true; // Dock into a regular window + } + + const ImRect explicit_target_rect = (node && node->TabBar && !node->IsHiddenTabBar() && !node->IsNoTabBar()) ? node->TabBar->BarRect : ImRect(window->Pos, window->Pos + ImVec2(window->Size.x, GetFrameHeight())); + const bool is_explicit_target = g.IO.ConfigDockingWithShift || IsMouseHoveringRect(explicit_target_rect.Min, explicit_target_rect.Max); + + // Preview docking request and find out split direction/ratio + //const bool do_preview = true; // Ignore testing for payload->IsPreview() which removes one frame of delay, but breaks overlapping drop targets within the same window. + const bool do_preview = payload->IsPreview() || payload->IsDelivery(); + if (do_preview && (node != NULL || dock_into_floating_window)) + { + // If we have a non-leaf node it means we are hovering the border of a parent node, in which case only outer markers will appear. + ImGuiDockPreviewData split_inner; + ImGuiDockPreviewData split_outer; + ImGuiDockPreviewData* split_data = &split_inner; + if (node && (node->ParentNode || node->IsCentralNode() || !node->IsLeafNode())) + if (ImGuiDockNode* root_node = DockNodeGetRootNode(node)) + { + DockNodePreviewDockSetup(window, root_node, payload_window, NULL, &split_outer, is_explicit_target, true); + if (split_outer.IsSplitDirExplicit) + split_data = &split_outer; + } + if (!node || node->IsLeafNode()) + DockNodePreviewDockSetup(window, node, payload_window, NULL, &split_inner, is_explicit_target, false); + if (split_data == &split_outer) + split_inner.IsDropAllowed = false; + + // Draw inner then outer, so that previewed tab (in inner data) will be behind the outer drop boxes + DockNodePreviewDockRender(window, node, payload_window, &split_inner); + DockNodePreviewDockRender(window, node, payload_window, &split_outer); + + // Queue docking request + if (split_data->IsDropAllowed && payload->IsDelivery()) + DockContextQueueDock(ctx, window, split_data->SplitNode, payload_window, split_data->SplitDir, split_data->SplitRatio, split_data == &split_outer); + } + } + EndDragDropTarget(); +} + +//----------------------------------------------------------------------------- +// Docking: Settings +//----------------------------------------------------------------------------- +// - DockSettingsRenameNodeReferences() +// - DockSettingsRemoveNodeReferences() +// - DockSettingsFindNodeSettings() +// - DockSettingsHandler_ApplyAll() +// - DockSettingsHandler_ReadOpen() +// - DockSettingsHandler_ReadLine() +// - DockSettingsHandler_DockNodeToSettings() +// - DockSettingsHandler_WriteAll() +//----------------------------------------------------------------------------- + +static void ImGui::DockSettingsRenameNodeReferences(ImGuiID old_node_id, ImGuiID new_node_id) +{ + ImGuiContext& g = *GImGui; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSettingsRenameNodeReferences: from 0x%08X -> to 0x%08X\n", old_node_id, new_node_id); + for (int window_n = 0; window_n < g.Windows.Size; window_n++) + { + ImGuiWindow* window = g.Windows[window_n]; + if (window->DockId == old_node_id && window->DockNode == NULL) + window->DockId = new_node_id; + } + //// FIXME-OPT: We could remove this loop by storing the index in the map + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->DockId == old_node_id) + settings->DockId = new_node_id; +} + +// Remove references stored in ImGuiWindowSettings to the given ImGuiDockNodeSettings +static void ImGui::DockSettingsRemoveNodeReferences(ImGuiID* node_ids, int node_ids_count) +{ + ImGuiContext& g = *GImGui; + int found = 0; + //// FIXME-OPT: We could remove this loop by storing the index in the map + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + for (int node_n = 0; node_n < node_ids_count; node_n++) + if (settings->DockId == node_ids[node_n]) + { + settings->DockId = 0; + settings->DockOrder = -1; + if (++found < node_ids_count) + break; + return; + } +} + +static ImGuiDockNodeSettings* ImGui::DockSettingsFindNodeSettings(ImGuiContext* ctx, ImGuiID id) +{ + // FIXME-OPT + ImGuiDockContext* dc = &ctx->DockContext; + for (int n = 0; n < dc->NodesSettings.Size; n++) + if (dc->NodesSettings[n].ID == id) + return &dc->NodesSettings[n]; + return NULL; +} + +// Clear settings data +static void ImGui::DockSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiDockContext* dc = &ctx->DockContext; + dc->NodesSettings.clear(); + DockContextClearNodes(ctx, 0, true); +} + +// Recreate nodes based on settings data +static void ImGui::DockSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + // Prune settings at boot time only + ImGuiDockContext* dc = &ctx->DockContext; + if (ctx->Windows.Size == 0) + DockContextPruneUnusedSettingsNodes(ctx); + DockContextBuildNodesFromSettings(ctx, dc->NodesSettings.Data, dc->NodesSettings.Size); + DockContextBuildAddWindowsToNodes(ctx, 0); +} + +static void* ImGui::DockSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + if (strcmp(name, "Data") != 0) + return NULL; + return (void*)1; +} + +static void ImGui::DockSettingsHandler_ReadLine(ImGuiContext* ctx, ImGuiSettingsHandler*, void*, const char* line) +{ + char c = 0; + int x = 0, y = 0; + int r = 0; + + // Parsing, e.g. + // " DockNode ID=0x00000001 Pos=383,193 Size=201,322 Split=Y,0.506 " + // " DockNode ID=0x00000002 Parent=0x00000001 " + // Important: this code expect currently fields in a fixed order. + ImGuiDockNodeSettings node; + line = ImStrSkipBlank(line); + if (strncmp(line, "DockNode", 8) == 0) { line = ImStrSkipBlank(line + strlen("DockNode")); } + else if (strncmp(line, "DockSpace", 9) == 0) { line = ImStrSkipBlank(line + strlen("DockSpace")); node.Flags |= ImGuiDockNodeFlags_DockSpace; } + else return; + if (sscanf(line, "ID=0x%08X%n", &node.ID, &r) == 1) { line += r; } else return; + if (sscanf(line, " Parent=0x%08X%n", &node.ParentNodeId, &r) == 1) { line += r; if (node.ParentNodeId == 0) return; } + if (sscanf(line, " Window=0x%08X%n", &node.ParentWindowId, &r) ==1) { line += r; if (node.ParentWindowId == 0) return; } + if (node.ParentNodeId == 0) + { + if (sscanf(line, " Pos=%i,%i%n", &x, &y, &r) == 2) { line += r; node.Pos = ImVec2ih((short)x, (short)y); } else return; + if (sscanf(line, " Size=%i,%i%n", &x, &y, &r) == 2) { line += r; node.Size = ImVec2ih((short)x, (short)y); } else return; + } + else + { + if (sscanf(line, " SizeRef=%i,%i%n", &x, &y, &r) == 2) { line += r; node.SizeRef = ImVec2ih((short)x, (short)y); } + } + if (sscanf(line, " Split=%c%n", &c, &r) == 1) { line += r; if (c == 'X') node.SplitAxis = ImGuiAxis_X; else if (c == 'Y') node.SplitAxis = ImGuiAxis_Y; } + if (sscanf(line, " NoResize=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoResize; } + if (sscanf(line, " CentralNode=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_CentralNode; } + if (sscanf(line, " NoTabBar=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoTabBar; } + if (sscanf(line, " HiddenTabBar=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_HiddenTabBar; } + if (sscanf(line, " NoWindowMenuButton=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoWindowMenuButton; } + if (sscanf(line, " NoCloseButton=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoCloseButton; } + if (sscanf(line, " Selected=0x%08X%n", &node.SelectedTabId,&r) == 1) { line += r; } + if (node.ParentNodeId != 0) + if (ImGuiDockNodeSettings* parent_settings = DockSettingsFindNodeSettings(ctx, node.ParentNodeId)) + node.Depth = parent_settings->Depth + 1; + ctx->DockContext.NodesSettings.push_back(node); +} + +static void DockSettingsHandler_DockNodeToSettings(ImGuiDockContext* dc, ImGuiDockNode* node, int depth) +{ + ImGuiDockNodeSettings node_settings; + IM_ASSERT(depth < (1 << (sizeof(node_settings.Depth) << 3))); + node_settings.ID = node->ID; + node_settings.ParentNodeId = node->ParentNode ? node->ParentNode->ID : 0; + node_settings.ParentWindowId = (node->IsDockSpace() && node->HostWindow && node->HostWindow->ParentWindow) ? node->HostWindow->ParentWindow->ID : 0; + node_settings.SelectedTabId = node->SelectedTabId; + node_settings.SplitAxis = (signed char)(node->IsSplitNode() ? node->SplitAxis : ImGuiAxis_None); + node_settings.Depth = (char)depth; + node_settings.Flags = (node->LocalFlags & ImGuiDockNodeFlags_SavedFlagsMask_); + node_settings.Pos = ImVec2ih(node->Pos); + node_settings.Size = ImVec2ih(node->Size); + node_settings.SizeRef = ImVec2ih(node->SizeRef); + dc->NodesSettings.push_back(node_settings); + if (node->ChildNodes[0]) + DockSettingsHandler_DockNodeToSettings(dc, node->ChildNodes[0], depth + 1); + if (node->ChildNodes[1]) + DockSettingsHandler_DockNodeToSettings(dc, node->ChildNodes[1], depth + 1); +} + +static void ImGui::DockSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + return; + + // Gather settings data + // (unlike our windows settings, because nodes are always built we can do a full rewrite of the SettingsNode buffer) + dc->NodesSettings.resize(0); + dc->NodesSettings.reserve(dc->Nodes.Data.Size); + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->IsRootNode()) + DockSettingsHandler_DockNodeToSettings(dc, node, 0); + + int max_depth = 0; + for (int node_n = 0; node_n < dc->NodesSettings.Size; node_n++) + max_depth = ImMax((int)dc->NodesSettings[node_n].Depth, max_depth); + + // Write to text buffer + buf->appendf("[%s][Data]\n", handler->TypeName); + for (int node_n = 0; node_n < dc->NodesSettings.Size; node_n++) + { + const int line_start_pos = buf->size(); (void)line_start_pos; + const ImGuiDockNodeSettings* node_settings = &dc->NodesSettings[node_n]; + buf->appendf("%*s%s%*s", node_settings->Depth * 2, "", (node_settings->Flags & ImGuiDockNodeFlags_DockSpace) ? "DockSpace" : "DockNode ", (max_depth - node_settings->Depth) * 2, ""); // Text align nodes to facilitate looking at .ini file + buf->appendf(" ID=0x%08X", node_settings->ID); + if (node_settings->ParentNodeId) + { + buf->appendf(" Parent=0x%08X SizeRef=%d,%d", node_settings->ParentNodeId, node_settings->SizeRef.x, node_settings->SizeRef.y); + } + else + { + if (node_settings->ParentWindowId) + buf->appendf(" Window=0x%08X", node_settings->ParentWindowId); + buf->appendf(" Pos=%d,%d Size=%d,%d", node_settings->Pos.x, node_settings->Pos.y, node_settings->Size.x, node_settings->Size.y); + } + if (node_settings->SplitAxis != ImGuiAxis_None) + buf->appendf(" Split=%c", (node_settings->SplitAxis == ImGuiAxis_X) ? 'X' : 'Y'); + if (node_settings->Flags & ImGuiDockNodeFlags_NoResize) + buf->appendf(" NoResize=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_CentralNode) + buf->appendf(" CentralNode=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_NoTabBar) + buf->appendf(" NoTabBar=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_HiddenTabBar) + buf->appendf(" HiddenTabBar=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_NoWindowMenuButton) + buf->appendf(" NoWindowMenuButton=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_NoCloseButton) + buf->appendf(" NoCloseButton=1"); + if (node_settings->SelectedTabId) + buf->appendf(" Selected=0x%08X", node_settings->SelectedTabId); + + // [DEBUG] Include comments in the .ini file to ease debugging (this makes saving slower!) + if (g.IO.ConfigDebugIniSettings) + if (ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_settings->ID)) + { + buf->appendf("%*s", ImMax(2, (line_start_pos + 92) - buf->size()), ""); // Align everything + if (node->IsDockSpace() && node->HostWindow && node->HostWindow->ParentWindow) + buf->appendf(" ; in '%s'", node->HostWindow->ParentWindow->Name); + // Iterate settings so we can give info about windows that didn't exist during the session. + int contains_window = 0; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->DockId == node_settings->ID) + { + if (contains_window++ == 0) + buf->appendf(" ; contains "); + buf->appendf("'%s' ", settings->GetName()); + } + } + + buf->appendf("\n"); + } + buf->appendf("\n"); +} + + +//----------------------------------------------------------------------------- +// [SECTION] PLATFORM DEPENDENT HELPERS +//----------------------------------------------------------------------------- + +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) + +#ifdef _MSC_VER +#pragma comment(lib, "user32") +#pragma comment(lib, "kernel32") +#endif + +// Win32 clipboard implementation +// We use g.ClipboardHandlerData for temporary storage to ensure it is freed on Shutdown() +static const char* GetClipboardTextFn_DefaultImpl(void* user_data_ctx) +{ + ImGuiContext& g = *(ImGuiContext*)user_data_ctx; + g.ClipboardHandlerData.clear(); + if (!::OpenClipboard(NULL)) + return NULL; + HANDLE wbuf_handle = ::GetClipboardData(CF_UNICODETEXT); + if (wbuf_handle == NULL) + { + ::CloseClipboard(); + return NULL; + } + if (const WCHAR* wbuf_global = (const WCHAR*)::GlobalLock(wbuf_handle)) + { + int buf_len = ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, NULL, 0, NULL, NULL); + g.ClipboardHandlerData.resize(buf_len); + ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, g.ClipboardHandlerData.Data, buf_len, NULL, NULL); + } + ::GlobalUnlock(wbuf_handle); + ::CloseClipboard(); + return g.ClipboardHandlerData.Data; +} + +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + if (!::OpenClipboard(NULL)) + return; + const int wbuf_length = ::MultiByteToWideChar(CP_UTF8, 0, text, -1, NULL, 0); + HGLOBAL wbuf_handle = ::GlobalAlloc(GMEM_MOVEABLE, (SIZE_T)wbuf_length * sizeof(WCHAR)); + if (wbuf_handle == NULL) + { + ::CloseClipboard(); + return; + } + WCHAR* wbuf_global = (WCHAR*)::GlobalLock(wbuf_handle); + ::MultiByteToWideChar(CP_UTF8, 0, text, -1, wbuf_global, wbuf_length); + ::GlobalUnlock(wbuf_handle); + ::EmptyClipboard(); + if (::SetClipboardData(CF_UNICODETEXT, wbuf_handle) == NULL) + ::GlobalFree(wbuf_handle); + ::CloseClipboard(); +} + +#elif defined(__APPLE__) && TARGET_OS_OSX && defined(IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS) + +#include // Use old API to avoid need for separate .mm file +static PasteboardRef main_clipboard = 0; + +// OSX clipboard implementation +// If you enable this you will need to add '-framework ApplicationServices' to your linker command-line! +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + if (!main_clipboard) + PasteboardCreate(kPasteboardClipboard, &main_clipboard); + PasteboardClear(main_clipboard); + CFDataRef cf_data = CFDataCreate(kCFAllocatorDefault, (const UInt8*)text, strlen(text)); + if (cf_data) + { + PasteboardPutItemFlavor(main_clipboard, (PasteboardItemID)1, CFSTR("public.utf8-plain-text"), cf_data, 0); + CFRelease(cf_data); + } +} + +static const char* GetClipboardTextFn_DefaultImpl(void* user_data_ctx) +{ + ImGuiContext& g = *(ImGuiContext*)user_data_ctx; + if (!main_clipboard) + PasteboardCreate(kPasteboardClipboard, &main_clipboard); + PasteboardSynchronize(main_clipboard); + + ItemCount item_count = 0; + PasteboardGetItemCount(main_clipboard, &item_count); + for (ItemCount i = 0; i < item_count; i++) + { + PasteboardItemID item_id = 0; + PasteboardGetItemIdentifier(main_clipboard, i + 1, &item_id); + CFArrayRef flavor_type_array = 0; + PasteboardCopyItemFlavors(main_clipboard, item_id, &flavor_type_array); + for (CFIndex j = 0, nj = CFArrayGetCount(flavor_type_array); j < nj; j++) + { + CFDataRef cf_data; + if (PasteboardCopyItemFlavorData(main_clipboard, item_id, CFSTR("public.utf8-plain-text"), &cf_data) == noErr) + { + g.ClipboardHandlerData.clear(); + int length = (int)CFDataGetLength(cf_data); + g.ClipboardHandlerData.resize(length + 1); + CFDataGetBytes(cf_data, CFRangeMake(0, length), (UInt8*)g.ClipboardHandlerData.Data); + g.ClipboardHandlerData[length] = 0; + CFRelease(cf_data); + return g.ClipboardHandlerData.Data; + } + } + } + return NULL; +} + +#else + +// Local Dear ImGui-only clipboard implementation, if user hasn't defined better clipboard handlers. +static const char* GetClipboardTextFn_DefaultImpl(void* user_data_ctx) +{ + ImGuiContext& g = *(ImGuiContext*)user_data_ctx; + return g.ClipboardHandlerData.empty() ? NULL : g.ClipboardHandlerData.begin(); +} + +static void SetClipboardTextFn_DefaultImpl(void* user_data_ctx, const char* text) +{ + ImGuiContext& g = *(ImGuiContext*)user_data_ctx; + g.ClipboardHandlerData.clear(); + const char* text_end = text + strlen(text); + g.ClipboardHandlerData.resize((int)(text_end - text) + 1); + memcpy(&g.ClipboardHandlerData[0], text, (size_t)(text_end - text)); + g.ClipboardHandlerData[(int)(text_end - text)] = 0; +} + +#endif + +// Win32 API IME support (for Asian languages, etc.) +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) + +#include +#ifdef _MSC_VER +#pragma comment(lib, "imm32") +#endif + +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data) +{ + // Notify OS Input Method Editor of text input position + HWND hwnd = (HWND)viewport->PlatformHandleRaw; + if (hwnd == 0) + return; + + //::ImmAssociateContextEx(hwnd, NULL, data->WantVisible ? IACE_DEFAULT : 0); + if (HIMC himc = ::ImmGetContext(hwnd)) + { + COMPOSITIONFORM composition_form = {}; + composition_form.ptCurrentPos.x = (LONG)(data->InputPos.x - viewport->Pos.x); + composition_form.ptCurrentPos.y = (LONG)(data->InputPos.y - viewport->Pos.y); + composition_form.dwStyle = CFS_FORCE_POSITION; + ::ImmSetCompositionWindow(himc, &composition_form); + CANDIDATEFORM candidate_form = {}; + candidate_form.dwStyle = CFS_CANDIDATEPOS; + candidate_form.ptCurrentPos.x = (LONG)(data->InputPos.x - viewport->Pos.x); + candidate_form.ptCurrentPos.y = (LONG)(data->InputPos.y - viewport->Pos.y); + ::ImmSetCandidateWindow(himc, &candidate_form); + ::ImmReleaseContext(hwnd, himc); + } +} + +#else + +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport*, ImGuiPlatformImeData*) {} + +#endif + +//----------------------------------------------------------------------------- +// [SECTION] METRICS/DEBUGGER WINDOW +//----------------------------------------------------------------------------- +// - RenderViewportThumbnail() [Internal] +// - RenderViewportsThumbnails() [Internal] +// - DebugTextEncoding() +// - MetricsHelpMarker() [Internal] +// - ShowFontAtlas() [Internal] +// - ShowMetricsWindow() +// - DebugNodeColumns() [Internal] +// - DebugNodeDockNode() [Internal] +// - DebugNodeDrawList() [Internal] +// - DebugNodeDrawCmdShowMeshAndBoundingBox() [Internal] +// - DebugNodeFont() [Internal] +// - DebugNodeFontGlyph() [Internal] +// - DebugNodeStorage() [Internal] +// - DebugNodeTabBar() [Internal] +// - DebugNodeViewport() [Internal] +// - DebugNodeWindow() [Internal] +// - DebugNodeWindowSettings() [Internal] +// - DebugNodeWindowsList() [Internal] +// - DebugNodeWindowsListByBeginStackParent() [Internal] +//----------------------------------------------------------------------------- + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + +void ImGui::DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImVec2 scale = bb.GetSize() / viewport->Size; + ImVec2 off = bb.Min - viewport->Pos * scale; + float alpha_mul = (viewport->Flags & ImGuiViewportFlags_IsMinimized) ? 0.30f : 1.00f; + window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_Border, alpha_mul * 0.40f)); + for (ImGuiWindow* thumb_window : g.Windows) + { + if (!thumb_window->WasActive || (thumb_window->Flags & ImGuiWindowFlags_ChildWindow)) + continue; + if (thumb_window->Viewport != viewport) + continue; + + ImRect thumb_r = thumb_window->Rect(); + ImRect title_r = thumb_window->TitleBarRect(); + thumb_r = ImRect(ImTrunc(off + thumb_r.Min * scale), ImTrunc(off + thumb_r.Max * scale)); + title_r = ImRect(ImTrunc(off + title_r.Min * scale), ImTrunc(off + ImVec2(title_r.Max.x, title_r.Min.y) * scale) + ImVec2(0,5)); // Exaggerate title bar height + thumb_r.ClipWithFull(bb); + title_r.ClipWithFull(bb); + const bool window_is_focused = (g.NavWindow && thumb_window->RootWindowForTitleBarHighlight == g.NavWindow->RootWindowForTitleBarHighlight); + window->DrawList->AddRectFilled(thumb_r.Min, thumb_r.Max, GetColorU32(ImGuiCol_WindowBg, alpha_mul)); + window->DrawList->AddRectFilled(title_r.Min, title_r.Max, GetColorU32(window_is_focused ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg, alpha_mul)); + window->DrawList->AddRect(thumb_r.Min, thumb_r.Max, GetColorU32(ImGuiCol_Border, alpha_mul)); + window->DrawList->AddText(g.Font, g.FontSize * 1.0f, title_r.Min, GetColorU32(ImGuiCol_Text, alpha_mul), thumb_window->Name, FindRenderedTextEnd(thumb_window->Name)); + } + draw_list->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_Border, alpha_mul)); +} + +static void RenderViewportsThumbnails() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // We don't display full monitor bounds (we could, but it often looks awkward), instead we display just enough to cover all of our viewports. + float SCALE = 1.0f / 8.0f; + ImRect bb_full(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + for (ImGuiViewportP* viewport : g.Viewports) + bb_full.Add(viewport->GetMainRect()); + ImVec2 p = window->DC.CursorPos; + ImVec2 off = p - bb_full.Min * SCALE; + for (ImGuiViewportP* viewport : g.Viewports) + { + ImRect viewport_draw_bb(off + (viewport->Pos) * SCALE, off + (viewport->Pos + viewport->Size) * SCALE); + ImGui::DebugRenderViewportThumbnail(window->DrawList, viewport, viewport_draw_bb); + } + ImGui::Dummy(bb_full.GetSize() * SCALE); +} + +static int IMGUI_CDECL ViewportComparerByLastFocusedStampCount(const void* lhs, const void* rhs) +{ + const ImGuiViewportP* a = *(const ImGuiViewportP* const*)lhs; + const ImGuiViewportP* b = *(const ImGuiViewportP* const*)rhs; + return b->LastFocusedStampCount - a->LastFocusedStampCount; +} + +// Draw an arbitrary US keyboard layout to visualize translated keys +void ImGui::DebugRenderKeyboardPreview(ImDrawList* draw_list) +{ + const ImVec2 key_size = ImVec2(35.0f, 35.0f); + const float key_rounding = 3.0f; + const ImVec2 key_face_size = ImVec2(25.0f, 25.0f); + const ImVec2 key_face_pos = ImVec2(5.0f, 3.0f); + const float key_face_rounding = 2.0f; + const ImVec2 key_label_pos = ImVec2(7.0f, 4.0f); + const ImVec2 key_step = ImVec2(key_size.x - 1.0f, key_size.y - 1.0f); + const float key_row_offset = 9.0f; + + ImVec2 board_min = GetCursorScreenPos(); + ImVec2 board_max = ImVec2(board_min.x + 3 * key_step.x + 2 * key_row_offset + 10.0f, board_min.y + 3 * key_step.y + 10.0f); + ImVec2 start_pos = ImVec2(board_min.x + 5.0f - key_step.x, board_min.y); + + struct KeyLayoutData { int Row, Col; const char* Label; ImGuiKey Key; }; + const KeyLayoutData keys_to_display[] = + { + { 0, 0, "", ImGuiKey_Tab }, { 0, 1, "Q", ImGuiKey_Q }, { 0, 2, "W", ImGuiKey_W }, { 0, 3, "E", ImGuiKey_E }, { 0, 4, "R", ImGuiKey_R }, + { 1, 0, "", ImGuiKey_CapsLock }, { 1, 1, "A", ImGuiKey_A }, { 1, 2, "S", ImGuiKey_S }, { 1, 3, "D", ImGuiKey_D }, { 1, 4, "F", ImGuiKey_F }, + { 2, 0, "", ImGuiKey_LeftShift },{ 2, 1, "Z", ImGuiKey_Z }, { 2, 2, "X", ImGuiKey_X }, { 2, 3, "C", ImGuiKey_C }, { 2, 4, "V", ImGuiKey_V } + }; + + // Elements rendered manually via ImDrawList API are not clipped automatically. + // While not strictly necessary, here IsItemVisible() is used to avoid rendering these shapes when they are out of view. + Dummy(board_max - board_min); + if (!IsItemVisible()) + return; + draw_list->PushClipRect(board_min, board_max, true); + for (int n = 0; n < IM_ARRAYSIZE(keys_to_display); n++) + { + const KeyLayoutData* key_data = &keys_to_display[n]; + ImVec2 key_min = ImVec2(start_pos.x + key_data->Col * key_step.x + key_data->Row * key_row_offset, start_pos.y + key_data->Row * key_step.y); + ImVec2 key_max = key_min + key_size; + draw_list->AddRectFilled(key_min, key_max, IM_COL32(204, 204, 204, 255), key_rounding); + draw_list->AddRect(key_min, key_max, IM_COL32(24, 24, 24, 255), key_rounding); + ImVec2 face_min = ImVec2(key_min.x + key_face_pos.x, key_min.y + key_face_pos.y); + ImVec2 face_max = ImVec2(face_min.x + key_face_size.x, face_min.y + key_face_size.y); + draw_list->AddRect(face_min, face_max, IM_COL32(193, 193, 193, 255), key_face_rounding, ImDrawFlags_None, 2.0f); + draw_list->AddRectFilled(face_min, face_max, IM_COL32(252, 252, 252, 255), key_face_rounding); + ImVec2 label_min = ImVec2(key_min.x + key_label_pos.x, key_min.y + key_label_pos.y); + draw_list->AddText(label_min, IM_COL32(64, 64, 64, 255), key_data->Label); + if (IsKeyDown(key_data->Key)) + draw_list->AddRectFilled(key_min, key_max, IM_COL32(255, 0, 0, 128), key_rounding); + } + draw_list->PopClipRect(); +} + +// Helper tool to diagnose between text encoding issues and font loading issues. Pass your UTF-8 string and verify that there are correct. +void ImGui::DebugTextEncoding(const char* str) +{ + Text("Text: \"%s\"", str); + if (!BeginTable("##DebugTextEncoding", 4, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Resizable)) + return; + TableSetupColumn("Offset"); + TableSetupColumn("UTF-8"); + TableSetupColumn("Glyph"); + TableSetupColumn("Codepoint"); + TableHeadersRow(); + for (const char* p = str; *p != 0; ) + { + unsigned int c; + const int c_utf8_len = ImTextCharFromUtf8(&c, p, NULL); + TableNextColumn(); + Text("%d", (int)(p - str)); + TableNextColumn(); + for (int byte_index = 0; byte_index < c_utf8_len; byte_index++) + { + if (byte_index > 0) + SameLine(); + Text("0x%02X", (int)(unsigned char)p[byte_index]); + } + TableNextColumn(); + if (GetFont()->FindGlyphNoFallback((ImWchar)c)) + TextUnformatted(p, p + c_utf8_len); + else + TextUnformatted((c == IM_UNICODE_CODEPOINT_INVALID) ? "[invalid]" : "[missing]"); + TableNextColumn(); + Text("U+%04X", (int)c); + p += c_utf8_len; + } + EndTable(); +} + +// Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds. +static void MetricsHelpMarker(const char* desc) +{ + ImGui::TextDisabled("(?)"); + if (ImGui::BeginItemTooltip()) + { + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(desc); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +// [DEBUG] List fonts in a font atlas and display its texture +void ImGui::ShowFontAtlas(ImFontAtlas* atlas) +{ + for (ImFont* font : atlas->Fonts) + { + PushID(font); + DebugNodeFont(font); + PopID(); + } + if (TreeNode("Font Atlas", "Font Atlas (%dx%d pixels)", atlas->TexWidth, atlas->TexHeight)) + { + ImGuiContext& g = *GImGui; + ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + Checkbox("Tint with Text Color", &cfg->ShowAtlasTintedWithTextColor); // Using text color ensure visibility of core atlas data, but will alter custom colored icons + ImVec4 tint_col = cfg->ShowAtlasTintedWithTextColor ? GetStyleColorVec4(ImGuiCol_Text) : ImVec4(1.0f, 1.0f, 1.0f, 1.0f); + ImVec4 border_col = GetStyleColorVec4(ImGuiCol_Border); + Image(atlas->TexID, ImVec2((float)atlas->TexWidth, (float)atlas->TexHeight), ImVec2(0.0f, 0.0f), ImVec2(1.0f, 1.0f), tint_col, border_col); + TreePop(); + } +} + +void ImGui::ShowMetricsWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + if (cfg->ShowDebugLog) + ShowDebugLogWindow(&cfg->ShowDebugLog); + if (cfg->ShowIDStackTool) + ShowIDStackToolWindow(&cfg->ShowIDStackTool); + + if (!Begin("Dear ImGui Metrics/Debugger", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + // Basic info + Text("Dear ImGui %s", GetVersion()); + Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + Text("%d vertices, %d indices (%d triangles)", io.MetricsRenderVertices, io.MetricsRenderIndices, io.MetricsRenderIndices / 3); + Text("%d visible windows, %d current allocations", io.MetricsRenderWindows, g.DebugAllocInfo.TotalAllocCount - g.DebugAllocInfo.TotalFreeCount); + //SameLine(); if (SmallButton("GC")) { g.GcCompactAll = true; } + + Separator(); + + // Debugging enums + enum { WRT_OuterRect, WRT_OuterRectClipped, WRT_InnerRect, WRT_InnerClipRect, WRT_WorkRect, WRT_Content, WRT_ContentIdeal, WRT_ContentRegionRect, WRT_Count }; // Windows Rect Type + const char* wrt_rects_names[WRT_Count] = { "OuterRect", "OuterRectClipped", "InnerRect", "InnerClipRect", "WorkRect", "Content", "ContentIdeal", "ContentRegionRect" }; + enum { TRT_OuterRect, TRT_InnerRect, TRT_WorkRect, TRT_HostClipRect, TRT_InnerClipRect, TRT_BackgroundClipRect, TRT_ColumnsRect, TRT_ColumnsWorkRect, TRT_ColumnsClipRect, TRT_ColumnsContentHeadersUsed, TRT_ColumnsContentHeadersIdeal, TRT_ColumnsContentFrozen, TRT_ColumnsContentUnfrozen, TRT_Count }; // Tables Rect Type + const char* trt_rects_names[TRT_Count] = { "OuterRect", "InnerRect", "WorkRect", "HostClipRect", "InnerClipRect", "BackgroundClipRect", "ColumnsRect", "ColumnsWorkRect", "ColumnsClipRect", "ColumnsContentHeadersUsed", "ColumnsContentHeadersIdeal", "ColumnsContentFrozen", "ColumnsContentUnfrozen" }; + if (cfg->ShowWindowsRectsType < 0) + cfg->ShowWindowsRectsType = WRT_WorkRect; + if (cfg->ShowTablesRectsType < 0) + cfg->ShowTablesRectsType = TRT_WorkRect; + + struct Funcs + { + static ImRect GetTableRect(ImGuiTable* table, int rect_type, int n) + { + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); // Always using last submitted instance + if (rect_type == TRT_OuterRect) { return table->OuterRect; } + else if (rect_type == TRT_InnerRect) { return table->InnerRect; } + else if (rect_type == TRT_WorkRect) { return table->WorkRect; } + else if (rect_type == TRT_HostClipRect) { return table->HostClipRect; } + else if (rect_type == TRT_InnerClipRect) { return table->InnerClipRect; } + else if (rect_type == TRT_BackgroundClipRect) { return table->BgClipRect; } + else if (rect_type == TRT_ColumnsRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->MinX, table->InnerClipRect.Min.y, c->MaxX, table->InnerClipRect.Min.y + table_instance->LastOuterHeight); } + else if (rect_type == TRT_ColumnsWorkRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->WorkRect.Min.y, c->WorkMaxX, table->WorkRect.Max.y); } + else if (rect_type == TRT_ColumnsClipRect) { ImGuiTableColumn* c = &table->Columns[n]; return c->ClipRect; } + else if (rect_type == TRT_ColumnsContentHeadersUsed){ ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersUsed, table->InnerClipRect.Min.y + table_instance->LastTopHeadersRowHeight); } // Note: y1/y2 not always accurate + else if (rect_type == TRT_ColumnsContentHeadersIdeal){ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersIdeal, table->InnerClipRect.Min.y + table_instance->LastTopHeadersRowHeight); } + else if (rect_type == TRT_ColumnsContentFrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXFrozen, table->InnerClipRect.Min.y + table_instance->LastFrozenHeight); } + else if (rect_type == TRT_ColumnsContentUnfrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y + table_instance->LastFrozenHeight, c->ContentMaxXUnfrozen, table->InnerClipRect.Max.y); } + IM_ASSERT(0); + return ImRect(); + } + + static ImRect GetWindowRect(ImGuiWindow* window, int rect_type) + { + if (rect_type == WRT_OuterRect) { return window->Rect(); } + else if (rect_type == WRT_OuterRectClipped) { return window->OuterRectClipped; } + else if (rect_type == WRT_InnerRect) { return window->InnerRect; } + else if (rect_type == WRT_InnerClipRect) { return window->InnerClipRect; } + else if (rect_type == WRT_WorkRect) { return window->WorkRect; } + else if (rect_type == WRT_Content) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSize); } + else if (rect_type == WRT_ContentIdeal) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSizeIdeal); } + else if (rect_type == WRT_ContentRegionRect) { return window->ContentRegionRect; } + IM_ASSERT(0); + return ImRect(); + } + }; + + // Tools + if (TreeNode("Tools")) + { + bool show_encoding_viewer = TreeNode("UTF-8 Encoding viewer"); + SameLine(); + MetricsHelpMarker("You can also call ImGui::DebugTextEncoding() from your code with a given string to test that your UTF-8 encoding settings are correct."); + if (show_encoding_viewer) + { + static char buf[100] = ""; + SetNextItemWidth(-FLT_MIN); + InputText("##Text", buf, IM_ARRAYSIZE(buf)); + if (buf[0] != 0) + DebugTextEncoding(buf); + TreePop(); + } + + // The Item Picker tool is super useful to visually select an item and break into the call-stack of where it was submitted. + if (Checkbox("Show Item Picker", &g.DebugItemPickerActive) && g.DebugItemPickerActive) + DebugStartItemPicker(); + SameLine(); + MetricsHelpMarker("Will call the IM_DEBUG_BREAK() macro to break in debugger.\nWarning: If you don't have a debugger attached, this will probably crash."); + + Checkbox("Show Debug Log", &cfg->ShowDebugLog); + SameLine(); + MetricsHelpMarker("You can also call ImGui::ShowDebugLogWindow() from your code."); + + Checkbox("Show ID Stack Tool", &cfg->ShowIDStackTool); + SameLine(); + MetricsHelpMarker("You can also call ImGui::ShowIDStackToolWindow() from your code."); + + Checkbox("Show windows begin order", &cfg->ShowWindowsBeginOrder); + Checkbox("Show windows rectangles", &cfg->ShowWindowsRects); + SameLine(); + SetNextItemWidth(GetFontSize() * 12); + cfg->ShowWindowsRects |= Combo("##show_windows_rect_type", &cfg->ShowWindowsRectsType, wrt_rects_names, WRT_Count, WRT_Count); + if (cfg->ShowWindowsRects && g.NavWindow != NULL) + { + BulletText("'%s':", g.NavWindow->Name); + Indent(); + for (int rect_n = 0; rect_n < WRT_Count; rect_n++) + { + ImRect r = Funcs::GetWindowRect(g.NavWindow, rect_n); + Text("(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), wrt_rects_names[rect_n]); + } + Unindent(); + } + + Checkbox("Show tables rectangles", &cfg->ShowTablesRects); + SameLine(); + SetNextItemWidth(GetFontSize() * 12); + cfg->ShowTablesRects |= Combo("##show_table_rects_type", &cfg->ShowTablesRectsType, trt_rects_names, TRT_Count, TRT_Count); + if (cfg->ShowTablesRects && g.NavWindow != NULL) + { + for (int table_n = 0; table_n < g.Tables.GetMapSize(); table_n++) + { + ImGuiTable* table = g.Tables.TryGetMapData(table_n); + if (table == NULL || table->LastFrameActive < g.FrameCount - 1 || (table->OuterWindow != g.NavWindow && table->InnerWindow != g.NavWindow)) + continue; + + BulletText("Table 0x%08X (%d columns, in '%s')", table->ID, table->ColumnsCount, table->OuterWindow->Name); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(table->OuterRect.Min - ImVec2(1, 1), table->OuterRect.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + Indent(); + char buf[128]; + for (int rect_n = 0; rect_n < TRT_Count; rect_n++) + { + if (rect_n >= TRT_ColumnsRect) + { + if (rect_n != TRT_ColumnsRect && rect_n != TRT_ColumnsClipRect) + continue; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImRect r = Funcs::GetTableRect(table, rect_n, column_n); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) Col %d %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), column_n, trt_rects_names[rect_n]); + Selectable(buf); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + } + } + else + { + ImRect r = Funcs::GetTableRect(table, rect_n, -1); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), trt_rects_names[rect_n]); + Selectable(buf); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + } + } + Unindent(); + } + } + Checkbox("Show groups rectangles", &g.DebugShowGroupRects); // Storing in context as this is used by group code and prefers to be in hot-data + + Checkbox("Debug Begin/BeginChild return value", &io.ConfigDebugBeginReturnValueLoop); + SameLine(); + MetricsHelpMarker("Some calls to Begin()/BeginChild() will return false.\n\nWill cycle through window depths then repeat. Windows should be flickering while running."); + + TreePop(); + } + + // Windows + if (TreeNode("Windows", "Windows (%d)", g.Windows.Size)) + { + //SetNextItemOpen(true, ImGuiCond_Once); + DebugNodeWindowsList(&g.Windows, "By display order"); + DebugNodeWindowsList(&g.WindowsFocusOrder, "By focus order (root windows)"); + if (TreeNode("By submission order (begin stack)")) + { + // Here we display windows in their submitted order/hierarchy, however note that the Begin stack doesn't constitute a Parent<>Child relationship! + ImVector& temp_buffer = g.WindowsTempSortBuffer; + temp_buffer.resize(0); + for (ImGuiWindow* window : g.Windows) + if (window->LastFrameActive + 1 >= g.FrameCount) + temp_buffer.push_back(window); + struct Func { static int IMGUI_CDECL WindowComparerByBeginOrder(const void* lhs, const void* rhs) { return ((int)(*(const ImGuiWindow* const *)lhs)->BeginOrderWithinContext - (*(const ImGuiWindow* const*)rhs)->BeginOrderWithinContext); } }; + ImQsort(temp_buffer.Data, (size_t)temp_buffer.Size, sizeof(ImGuiWindow*), Func::WindowComparerByBeginOrder); + DebugNodeWindowsListByBeginStackParent(temp_buffer.Data, temp_buffer.Size, NULL); + TreePop(); + } + + TreePop(); + } + + // DrawLists + int drawlist_count = 0; + for (ImGuiViewportP* viewport : g.Viewports) + drawlist_count += viewport->DrawDataP.CmdLists.Size; + if (TreeNode("DrawLists", "DrawLists (%d)", drawlist_count)) + { + Checkbox("Show ImDrawCmd mesh when hovering", &cfg->ShowDrawCmdMesh); + Checkbox("Show ImDrawCmd bounding boxes when hovering", &cfg->ShowDrawCmdBoundingBoxes); + for (ImGuiViewportP* viewport : g.Viewports) + { + bool viewport_has_drawlist = false; + for (ImDrawList* draw_list : viewport->DrawDataP.CmdLists) + { + if (!viewport_has_drawlist) + Text("Active DrawLists in Viewport #%d, ID: 0x%08X", viewport->Idx, viewport->ID); + viewport_has_drawlist = true; + DebugNodeDrawList(NULL, viewport, draw_list, "DrawList"); + } + } + TreePop(); + } + + // Viewports + if (TreeNode("Viewports", "Viewports (%d)", g.Viewports.Size)) + { + Indent(GetTreeNodeToLabelSpacing()); + RenderViewportsThumbnails(); + Unindent(GetTreeNodeToLabelSpacing()); + + bool open = TreeNode("Monitors", "Monitors (%d)", g.PlatformIO.Monitors.Size); + SameLine(); + MetricsHelpMarker("Dear ImGui uses monitor data:\n- to query DPI settings on a per monitor basis\n- to position popup/tooltips so they don't straddle monitors."); + if (open) + { + for (int i = 0; i < g.PlatformIO.Monitors.Size; i++) + { + const ImGuiPlatformMonitor& mon = g.PlatformIO.Monitors[i]; + BulletText("Monitor #%d: DPI %.0f%%\n MainMin (%.0f,%.0f), MainMax (%.0f,%.0f), MainSize (%.0f,%.0f)\n WorkMin (%.0f,%.0f), WorkMax (%.0f,%.0f), WorkSize (%.0f,%.0f)", + i, mon.DpiScale * 100.0f, + mon.MainPos.x, mon.MainPos.y, mon.MainPos.x + mon.MainSize.x, mon.MainPos.y + mon.MainSize.y, mon.MainSize.x, mon.MainSize.y, + mon.WorkPos.x, mon.WorkPos.y, mon.WorkPos.x + mon.WorkSize.x, mon.WorkPos.y + mon.WorkSize.y, mon.WorkSize.x, mon.WorkSize.y); + } + TreePop(); + } + + BulletText("MouseViewport: 0x%08X (UserHovered 0x%08X, LastHovered 0x%08X)", g.MouseViewport ? g.MouseViewport->ID : 0, g.IO.MouseHoveredViewport, g.MouseLastHoveredViewport ? g.MouseLastHoveredViewport->ID : 0); + if (TreeNode("Inferred Z order (front-to-back)")) + { + static ImVector viewports; + viewports.resize(g.Viewports.Size); + memcpy(viewports.Data, g.Viewports.Data, g.Viewports.size_in_bytes()); + if (viewports.Size > 1) + ImQsort(viewports.Data, viewports.Size, sizeof(ImGuiViewport*), ViewportComparerByLastFocusedStampCount); + for (ImGuiViewportP* viewport : viewports) + BulletText("Viewport #%d, ID: 0x%08X, LastFocused = %08d, PlatformFocused = %s, Window: \"%s\"", + viewport->Idx, viewport->ID, viewport->LastFocusedStampCount, + (g.PlatformIO.Platform_GetWindowFocus && viewport->PlatformWindowCreated) ? (g.PlatformIO.Platform_GetWindowFocus(viewport) ? "1" : "0") : "N/A", + viewport->Window ? viewport->Window->Name : "N/A"); + TreePop(); + } + for (ImGuiViewportP* viewport : g.Viewports) + DebugNodeViewport(viewport); + TreePop(); + } + + // Details for Popups + if (TreeNode("Popups", "Popups (%d)", g.OpenPopupStack.Size)) + { + for (const ImGuiPopupData& popup_data : g.OpenPopupStack) + { + // As it's difficult to interact with tree nodes while popups are open, we display everything inline. + ImGuiWindow* window = popup_data.Window; + BulletText("PopupID: %08x, Window: '%s' (%s%s), BackupNavWindow '%s', ParentWindow '%s'", + popup_data.PopupId, window ? window->Name : "NULL", window && (window->Flags & ImGuiWindowFlags_ChildWindow) ? "Child;" : "", window && (window->Flags & ImGuiWindowFlags_ChildMenu) ? "Menu;" : "", + popup_data.BackupNavWindow ? popup_data.BackupNavWindow->Name : "NULL", window && window->ParentWindow ? window->ParentWindow->Name : "NULL"); + } + TreePop(); + } + + // Details for TabBars + if (TreeNode("TabBars", "Tab Bars (%d)", g.TabBars.GetAliveCount())) + { + for (int n = 0; n < g.TabBars.GetMapSize(); n++) + if (ImGuiTabBar* tab_bar = g.TabBars.TryGetMapData(n)) + { + PushID(tab_bar); + DebugNodeTabBar(tab_bar, "TabBar"); + PopID(); + } + TreePop(); + } + + // Details for Tables + if (TreeNode("Tables", "Tables (%d)", g.Tables.GetAliveCount())) + { + for (int n = 0; n < g.Tables.GetMapSize(); n++) + if (ImGuiTable* table = g.Tables.TryGetMapData(n)) + DebugNodeTable(table); + TreePop(); + } + + // Details for Fonts + ImFontAtlas* atlas = g.IO.Fonts; + if (TreeNode("Fonts", "Fonts (%d)", atlas->Fonts.Size)) + { + ShowFontAtlas(atlas); + TreePop(); + } + + // Details for InputText + if (TreeNode("InputText")) + { + DebugNodeInputTextState(&g.InputTextState); + TreePop(); + } + + // Details for TypingSelect + if (TreeNode("TypingSelect", "TypingSelect (%d)", g.TypingSelectState.SearchBuffer[0] != 0 ? 1 : 0)) + { + DebugNodeTypingSelectState(&g.TypingSelectState); + TreePop(); + } + + // Details for Docking +#ifdef IMGUI_HAS_DOCK + if (TreeNode("Docking")) + { + static bool root_nodes_only = true; + ImGuiDockContext* dc = &g.DockContext; + Checkbox("List root nodes", &root_nodes_only); + Checkbox("Ctrl shows window dock info", &cfg->ShowDockingNodes); + if (SmallButton("Clear nodes")) { DockContextClearNodes(&g, 0, true); } + SameLine(); + if (SmallButton("Rebuild all")) { dc->WantFullRebuild = true; } + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (!root_nodes_only || node->IsRootNode()) + DebugNodeDockNode(node, "Node"); + TreePop(); + } +#endif // #ifdef IMGUI_HAS_DOCK + + // Settings + if (TreeNode("Settings")) + { + if (SmallButton("Clear")) + ClearIniSettings(); + SameLine(); + if (SmallButton("Save to memory")) + SaveIniSettingsToMemory(); + SameLine(); + if (SmallButton("Save to disk")) + SaveIniSettingsToDisk(g.IO.IniFilename); + SameLine(); + if (g.IO.IniFilename) + Text("\"%s\"", g.IO.IniFilename); + else + TextUnformatted(""); + Checkbox("io.ConfigDebugIniSettings", &io.ConfigDebugIniSettings); + Text("SettingsDirtyTimer %.2f", g.SettingsDirtyTimer); + if (TreeNode("SettingsHandlers", "Settings handlers: (%d)", g.SettingsHandlers.Size)) + { + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + BulletText("\"%s\"", handler.TypeName); + TreePop(); + } + if (TreeNode("SettingsWindows", "Settings packed data: Windows: %d bytes", g.SettingsWindows.size())) + { + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + DebugNodeWindowSettings(settings); + TreePop(); + } + + if (TreeNode("SettingsTables", "Settings packed data: Tables: %d bytes", g.SettingsTables.size())) + { + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + DebugNodeTableSettings(settings); + TreePop(); + } + +#ifdef IMGUI_HAS_DOCK + if (TreeNode("SettingsDocking", "Settings packed data: Docking")) + { + ImGuiDockContext* dc = &g.DockContext; + Text("In SettingsWindows:"); + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->DockId != 0) + BulletText("Window '%s' -> DockId %08X DockOrder=%d", settings->GetName(), settings->DockId, settings->DockOrder); + Text("In SettingsNodes:"); + for (int n = 0; n < dc->NodesSettings.Size; n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[n]; + const char* selected_tab_name = NULL; + if (settings->SelectedTabId) + { + if (ImGuiWindow* window = FindWindowByID(settings->SelectedTabId)) + selected_tab_name = window->Name; + else if (ImGuiWindowSettings* window_settings = FindWindowSettingsByID(settings->SelectedTabId)) + selected_tab_name = window_settings->GetName(); + } + BulletText("Node %08X, Parent %08X, SelectedTab %08X ('%s')", settings->ID, settings->ParentNodeId, settings->SelectedTabId, selected_tab_name ? selected_tab_name : settings->SelectedTabId ? "N/A" : ""); + } + TreePop(); + } +#endif // #ifdef IMGUI_HAS_DOCK + + if (TreeNode("SettingsIniData", "Settings unpacked data (.ini): %d bytes", g.SettingsIniData.size())) + { + InputTextMultiline("##Ini", (char*)(void*)g.SettingsIniData.c_str(), g.SettingsIniData.Buf.Size, ImVec2(-FLT_MIN, GetTextLineHeight() * 20), ImGuiInputTextFlags_ReadOnly); + TreePop(); + } + TreePop(); + } + + // Settings + if (TreeNode("Memory allocations")) + { + ImGuiDebugAllocInfo* info = &g.DebugAllocInfo; + Text("%d current allocations", info->TotalAllocCount - info->TotalFreeCount); + Text("Recent frames with allocations:"); + int buf_size = IM_ARRAYSIZE(info->LastEntriesBuf); + for (int n = buf_size - 1; n >= 0; n--) + { + ImGuiDebugAllocEntry* entry = &info->LastEntriesBuf[(info->LastEntriesIdx - n + buf_size) % buf_size]; + BulletText("Frame %06d: %+3d ( %2d malloc, %2d free )%s", entry->FrameCount, entry->AllocCount - entry->FreeCount, entry->AllocCount, entry->FreeCount, (n == 0) ? " (most recent)" : ""); + } + TreePop(); + } + + if (TreeNode("Inputs")) + { + Text("KEYBOARD/GAMEPAD/MOUSE KEYS"); + { + // We iterate both legacy native range and named ImGuiKey ranges, which is a little odd but this allows displaying the data for old/new backends. + // User code should never have to go through such hoops! You can generally iterate between ImGuiKey_NamedKey_BEGIN and ImGuiKey_NamedKey_END. + Indent(); +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey) { return false; } }; +#else + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey key) { return key < 512 && GetIO().KeyMap[key] != -1; } }; // Hide Native<>ImGuiKey duplicates when both exists in the array + //Text("Legacy raw:"); for (ImGuiKey key = ImGuiKey_KeysData_OFFSET; key < ImGuiKey_COUNT; key++) { if (io.KeysDown[key]) { SameLine(); Text("\"%s\" %d", GetKeyName(key), key); } } +#endif + Text("Keys down:"); for (ImGuiKey key = ImGuiKey_KeysData_OFFSET; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key) || !IsKeyDown(key)) continue; SameLine(); Text(IsNamedKey(key) ? "\"%s\"" : "\"%s\" %d", GetKeyName(key), key); SameLine(); Text("(%.02f)", GetKeyData(key)->DownDuration); } + Text("Keys pressed:"); for (ImGuiKey key = ImGuiKey_KeysData_OFFSET; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key) || !IsKeyPressed(key)) continue; SameLine(); Text(IsNamedKey(key) ? "\"%s\"" : "\"%s\" %d", GetKeyName(key), key); } + Text("Keys released:"); for (ImGuiKey key = ImGuiKey_KeysData_OFFSET; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key) || !IsKeyReleased(key)) continue; SameLine(); Text(IsNamedKey(key) ? "\"%s\"" : "\"%s\" %d", GetKeyName(key), key); } + Text("Keys mods: %s%s%s%s", io.KeyCtrl ? "CTRL " : "", io.KeyShift ? "SHIFT " : "", io.KeyAlt ? "ALT " : "", io.KeySuper ? "SUPER " : ""); + Text("Chars queue:"); for (int i = 0; i < io.InputQueueCharacters.Size; i++) { ImWchar c = io.InputQueueCharacters[i]; SameLine(); Text("\'%c\' (0x%04X)", (c > ' ' && c <= 255) ? (char)c : '?', c); } // FIXME: We should convert 'c' to UTF-8 here but the functions are not public. + DebugRenderKeyboardPreview(GetWindowDrawList()); + Unindent(); + } + + Text("MOUSE STATE"); + { + Indent(); + if (IsMousePosValid()) + Text("Mouse pos: (%g, %g)", io.MousePos.x, io.MousePos.y); + else + Text("Mouse pos: "); + Text("Mouse delta: (%g, %g)", io.MouseDelta.x, io.MouseDelta.y); + int count = IM_ARRAYSIZE(io.MouseDown); + Text("Mouse down:"); for (int i = 0; i < count; i++) if (IsMouseDown(i)) { SameLine(); Text("b%d (%.02f secs)", i, io.MouseDownDuration[i]); } + Text("Mouse clicked:"); for (int i = 0; i < count; i++) if (IsMouseClicked(i)) { SameLine(); Text("b%d (%d)", i, io.MouseClickedCount[i]); } + Text("Mouse released:"); for (int i = 0; i < count; i++) if (IsMouseReleased(i)) { SameLine(); Text("b%d", i); } + Text("Mouse wheel: %.1f", io.MouseWheel); + Text("MouseStationaryTimer: %.2f", g.MouseStationaryTimer); + Text("Mouse source: %s", GetMouseSourceName(io.MouseSource)); + Text("Pen Pressure: %.1f", io.PenPressure); // Note: currently unused + Unindent(); + } + + Text("MOUSE WHEELING"); + { + Indent(); + Text("WheelingWindow: '%s'", g.WheelingWindow ? g.WheelingWindow->Name : "NULL"); + Text("WheelingWindowReleaseTimer: %.2f", g.WheelingWindowReleaseTimer); + Text("WheelingAxisAvg[] = { %.3f, %.3f }, Main Axis: %s", g.WheelingAxisAvg.x, g.WheelingAxisAvg.y, (g.WheelingAxisAvg.x > g.WheelingAxisAvg.y) ? "X" : (g.WheelingAxisAvg.x < g.WheelingAxisAvg.y) ? "Y" : ""); + Unindent(); + } + + Text("KEY OWNERS"); + { + Indent(); + if (BeginListBox("##owners", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 6))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(&g, key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + continue; + Text("%s: 0x%08X%s", GetKeyName(key), owner_data->OwnerCurr, + owner_data->LockUntilRelease ? " LockUntilRelease" : owner_data->LockThisFrame ? " LockThisFrame" : ""); + DebugLocateItemOnHover(owner_data->OwnerCurr); + } + EndListBox(); + } + Unindent(); + } + Text("SHORTCUT ROUTING"); + { + Indent(); + if (BeginListBox("##routes", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 6))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; ) + { + char key_chord_name[64]; + ImGuiKeyRoutingData* routing_data = &rt->Entries[idx]; + GetKeyChordName(key | routing_data->Mods, key_chord_name, IM_ARRAYSIZE(key_chord_name)); + Text("%s: 0x%08X", key_chord_name, routing_data->RoutingCurr); + DebugLocateItemOnHover(routing_data->RoutingCurr); + idx = routing_data->NextEntryIndex; + } + } + EndListBox(); + } + Text("(ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: 0x%X)", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); + Unindent(); + } + TreePop(); + } + + if (TreeNode("Internal state")) + { + Text("WINDOWING"); + Indent(); + Text("HoveredWindow: '%s'", g.HoveredWindow ? g.HoveredWindow->Name : "NULL"); + Text("HoveredWindow->Root: '%s'", g.HoveredWindow ? g.HoveredWindow->RootWindowDockTree->Name : "NULL"); + Text("HoveredWindowUnderMovingWindow: '%s'", g.HoveredWindowUnderMovingWindow ? g.HoveredWindowUnderMovingWindow->Name : "NULL"); + Text("HoveredDockNode: 0x%08X", g.DebugHoveredDockNode ? g.DebugHoveredDockNode->ID : 0); + Text("MovingWindow: '%s'", g.MovingWindow ? g.MovingWindow->Name : "NULL"); + Text("MouseViewport: 0x%08X (UserHovered 0x%08X, LastHovered 0x%08X)", g.MouseViewport->ID, g.IO.MouseHoveredViewport, g.MouseLastHoveredViewport ? g.MouseLastHoveredViewport->ID : 0); + Unindent(); + + Text("ITEMS"); + Indent(); + Text("ActiveId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d, Source: %s", g.ActiveId, g.ActiveIdPreviousFrame, g.ActiveIdTimer, g.ActiveIdAllowOverlap, GetInputSourceName(g.ActiveIdSource)); + DebugLocateItemOnHover(g.ActiveId); + Text("ActiveIdWindow: '%s'", g.ActiveIdWindow ? g.ActiveIdWindow->Name : "NULL"); + Text("ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: %X", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); + Text("HoveredId: 0x%08X (%.2f sec), AllowOverlap: %d", g.HoveredIdPreviousFrame, g.HoveredIdTimer, g.HoveredIdAllowOverlap); // Not displaying g.HoveredId as it is update mid-frame + Text("HoverItemDelayId: 0x%08X, Timer: %.2f, ClearTimer: %.2f", g.HoverItemDelayId, g.HoverItemDelayTimer, g.HoverItemDelayClearTimer); + Text("DragDrop: %d, SourceId = 0x%08X, Payload \"%s\" (%d bytes)", g.DragDropActive, g.DragDropPayload.SourceId, g.DragDropPayload.DataType, g.DragDropPayload.DataSize); + DebugLocateItemOnHover(g.DragDropPayload.SourceId); + Unindent(); + + Text("NAV,FOCUS"); + Indent(); + Text("NavWindow: '%s'", g.NavWindow ? g.NavWindow->Name : "NULL"); + Text("NavId: 0x%08X, NavLayer: %d", g.NavId, g.NavLayer); + DebugLocateItemOnHover(g.NavId); + Text("NavInputSource: %s", GetInputSourceName(g.NavInputSource)); + Text("NavLastValidSelectionUserData = %" IM_PRId64 " (0x%" IM_PRIX64 ")", g.NavLastValidSelectionUserData, g.NavLastValidSelectionUserData); + Text("NavActive: %d, NavVisible: %d", g.IO.NavActive, g.IO.NavVisible); + Text("NavActivateId/DownId/PressedId: %08X/%08X/%08X", g.NavActivateId, g.NavActivateDownId, g.NavActivatePressedId); + Text("NavActivateFlags: %04X", g.NavActivateFlags); + Text("NavDisableHighlight: %d, NavDisableMouseHover: %d", g.NavDisableHighlight, g.NavDisableMouseHover); + Text("NavFocusScopeId = 0x%08X", g.NavFocusScopeId); + Text("NavWindowingTarget: '%s'", g.NavWindowingTarget ? g.NavWindowingTarget->Name : "NULL"); + Unindent(); + + TreePop(); + } + + // Overlay: Display windows Rectangles and Begin Order + if (cfg->ShowWindowsRects || cfg->ShowWindowsBeginOrder) + { + for (ImGuiWindow* window : g.Windows) + { + if (!window->WasActive) + continue; + ImDrawList* draw_list = GetForegroundDrawList(window); + if (cfg->ShowWindowsRects) + { + ImRect r = Funcs::GetWindowRect(window, cfg->ShowWindowsRectsType); + draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); + } + if (cfg->ShowWindowsBeginOrder && !(window->Flags & ImGuiWindowFlags_ChildWindow)) + { + char buf[32]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "%d", window->BeginOrderWithinContext); + float font_size = GetFontSize(); + draw_list->AddRectFilled(window->Pos, window->Pos + ImVec2(font_size, font_size), IM_COL32(200, 100, 100, 255)); + draw_list->AddText(window->Pos, IM_COL32(255, 255, 255, 255), buf); + } + } + } + + // Overlay: Display Tables Rectangles + if (cfg->ShowTablesRects) + { + for (int table_n = 0; table_n < g.Tables.GetMapSize(); table_n++) + { + ImGuiTable* table = g.Tables.TryGetMapData(table_n); + if (table == NULL || table->LastFrameActive < g.FrameCount - 1) + continue; + ImDrawList* draw_list = GetForegroundDrawList(table->OuterWindow); + if (cfg->ShowTablesRectsType >= TRT_ColumnsRect) + { + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, column_n); + ImU32 col = (table->HoveredColumnBody == column_n) ? IM_COL32(255, 255, 128, 255) : IM_COL32(255, 0, 128, 255); + float thickness = (table->HoveredColumnBody == column_n) ? 3.0f : 1.0f; + draw_list->AddRect(r.Min, r.Max, col, 0.0f, 0, thickness); + } + } + else + { + ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, -1); + draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); + } + } + } + +#ifdef IMGUI_HAS_DOCK + // Overlay: Display Docking info + if (cfg->ShowDockingNodes && g.IO.KeyCtrl && g.DebugHoveredDockNode) + { + char buf[64] = ""; + char* p = buf; + ImGuiDockNode* node = g.DebugHoveredDockNode; + ImDrawList* overlay_draw_list = node->HostWindow ? GetForegroundDrawList(node->HostWindow) : GetForegroundDrawList(GetMainViewport()); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "DockId: %X%s\n", node->ID, node->IsCentralNode() ? " *CentralNode*" : ""); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "WindowClass: %08X\n", node->WindowClass.ClassId); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "Size: (%.0f, %.0f)\n", node->Size.x, node->Size.y); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "SizeRef: (%.0f, %.0f)\n", node->SizeRef.x, node->SizeRef.y); + int depth = DockNodeGetDepth(node); + overlay_draw_list->AddRect(node->Pos + ImVec2(3, 3) * (float)depth, node->Pos + node->Size - ImVec2(3, 3) * (float)depth, IM_COL32(200, 100, 100, 255)); + ImVec2 pos = node->Pos + ImVec2(3, 3) * (float)depth; + overlay_draw_list->AddRectFilled(pos - ImVec2(1, 1), pos + CalcTextSize(buf) + ImVec2(1, 1), IM_COL32(200, 100, 100, 255)); + overlay_draw_list->AddText(NULL, 0.0f, pos, IM_COL32(255, 255, 255, 255), buf); + } +#endif // #ifdef IMGUI_HAS_DOCK + + End(); +} + +// [DEBUG] Display contents of Columns +void ImGui::DebugNodeColumns(ImGuiOldColumns* columns) +{ + if (!TreeNode((void*)(uintptr_t)columns->ID, "Columns Id: 0x%08X, Count: %d, Flags: 0x%04X", columns->ID, columns->Count, columns->Flags)) + return; + BulletText("Width: %.1f (MinX: %.1f, MaxX: %.1f)", columns->OffMaxX - columns->OffMinX, columns->OffMinX, columns->OffMaxX); + for (ImGuiOldColumnData& column : columns->Columns) + BulletText("Column %02d: OffsetNorm %.3f (= %.1f px)", (int)columns->Columns.index_from_ptr(&column), column.OffsetNorm, GetColumnOffsetFromNorm(columns, column.OffsetNorm)); + TreePop(); +} + +static void DebugNodeDockNodeFlags(ImGuiDockNodeFlags* p_flags, const char* label, bool enabled) +{ + using namespace ImGui; + PushID(label); + PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0.0f, 0.0f)); + Text("%s:", label); + if (!enabled) + BeginDisabled(); + CheckboxFlags("NoResize", p_flags, ImGuiDockNodeFlags_NoResize); + CheckboxFlags("NoResizeX", p_flags, ImGuiDockNodeFlags_NoResizeX); + CheckboxFlags("NoResizeY",p_flags, ImGuiDockNodeFlags_NoResizeY); + CheckboxFlags("NoTabBar", p_flags, ImGuiDockNodeFlags_NoTabBar); + CheckboxFlags("HiddenTabBar", p_flags, ImGuiDockNodeFlags_HiddenTabBar); + CheckboxFlags("NoWindowMenuButton", p_flags, ImGuiDockNodeFlags_NoWindowMenuButton); + CheckboxFlags("NoCloseButton", p_flags, ImGuiDockNodeFlags_NoCloseButton); + CheckboxFlags("NoDocking", p_flags, ImGuiDockNodeFlags_NoDocking); // Multiple flags + CheckboxFlags("NoDockingSplit", p_flags, ImGuiDockNodeFlags_NoDockingSplit); + CheckboxFlags("NoDockingSplitOther", p_flags, ImGuiDockNodeFlags_NoDockingSplitOther); + CheckboxFlags("NoDockingOver", p_flags, ImGuiDockNodeFlags_NoDockingOverMe); + CheckboxFlags("NoDockingOverOther", p_flags, ImGuiDockNodeFlags_NoDockingOverOther); + CheckboxFlags("NoDockingOverEmpty", p_flags, ImGuiDockNodeFlags_NoDockingOverEmpty); + CheckboxFlags("NoUndocking", p_flags, ImGuiDockNodeFlags_NoUndocking); + if (!enabled) + EndDisabled(); + PopStyleVar(); + PopID(); +} + +// [DEBUG] Display contents of ImDockNode +void ImGui::DebugNodeDockNode(ImGuiDockNode* node, const char* label) +{ + ImGuiContext& g = *GImGui; + const bool is_alive = (g.FrameCount - node->LastFrameAlive < 2); // Submitted with ImGuiDockNodeFlags_KeepAliveOnly + const bool is_active = (g.FrameCount - node->LastFrameActive < 2); // Submitted + if (!is_alive) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open; + ImGuiTreeNodeFlags tree_node_flags = node->IsFocused ? ImGuiTreeNodeFlags_Selected : ImGuiTreeNodeFlags_None; + if (node->Windows.Size > 0) + open = TreeNodeEx((void*)(intptr_t)node->ID, tree_node_flags, "%s 0x%04X%s: %d windows (vis: '%s')", label, node->ID, node->IsVisible ? "" : " (hidden)", node->Windows.Size, node->VisibleWindow ? node->VisibleWindow->Name : "NULL"); + else + open = TreeNodeEx((void*)(intptr_t)node->ID, tree_node_flags, "%s 0x%04X%s: %s (vis: '%s')", label, node->ID, node->IsVisible ? "" : " (hidden)", (node->SplitAxis == ImGuiAxis_X) ? "horizontal split" : (node->SplitAxis == ImGuiAxis_Y) ? "vertical split" : "empty", node->VisibleWindow ? node->VisibleWindow->Name : "NULL"); + if (!is_alive) { PopStyleColor(); } + if (is_active && IsItemHovered()) + if (ImGuiWindow* window = node->HostWindow ? node->HostWindow : node->VisibleWindow) + GetForegroundDrawList(window)->AddRect(node->Pos, node->Pos + node->Size, IM_COL32(255, 255, 0, 255)); + if (open) + { + IM_ASSERT(node->ChildNodes[0] == NULL || node->ChildNodes[0]->ParentNode == node); + IM_ASSERT(node->ChildNodes[1] == NULL || node->ChildNodes[1]->ParentNode == node); + BulletText("Pos (%.0f,%.0f), Size (%.0f, %.0f) Ref (%.0f, %.0f)", + node->Pos.x, node->Pos.y, node->Size.x, node->Size.y, node->SizeRef.x, node->SizeRef.y); + DebugNodeWindow(node->HostWindow, "HostWindow"); + DebugNodeWindow(node->VisibleWindow, "VisibleWindow"); + BulletText("SelectedTabID: 0x%08X, LastFocusedNodeID: 0x%08X", node->SelectedTabId, node->LastFocusedNodeId); + BulletText("Misc:%s%s%s%s%s%s%s", + node->IsDockSpace() ? " IsDockSpace" : "", + node->IsCentralNode() ? " IsCentralNode" : "", + is_alive ? " IsAlive" : "", is_active ? " IsActive" : "", node->IsFocused ? " IsFocused" : "", + node->WantLockSizeOnce ? " WantLockSizeOnce" : "", + node->HasCentralNodeChild ? " HasCentralNodeChild" : ""); + if (TreeNode("flags", "Flags Merged: 0x%04X, Local: 0x%04X, InWindows: 0x%04X, Shared: 0x%04X", node->MergedFlags, node->LocalFlags, node->LocalFlagsInWindows, node->SharedFlags)) + { + if (BeginTable("flags", 4)) + { + TableNextColumn(); DebugNodeDockNodeFlags(&node->MergedFlags, "MergedFlags", false); + TableNextColumn(); DebugNodeDockNodeFlags(&node->LocalFlags, "LocalFlags", true); + TableNextColumn(); DebugNodeDockNodeFlags(&node->LocalFlagsInWindows, "LocalFlagsInWindows", false); + TableNextColumn(); DebugNodeDockNodeFlags(&node->SharedFlags, "SharedFlags", true); + EndTable(); + } + TreePop(); + } + if (node->ParentNode) + DebugNodeDockNode(node->ParentNode, "ParentNode"); + if (node->ChildNodes[0]) + DebugNodeDockNode(node->ChildNodes[0], "Child[0]"); + if (node->ChildNodes[1]) + DebugNodeDockNode(node->ChildNodes[1], "Child[1]"); + if (node->TabBar) + DebugNodeTabBar(node->TabBar, "TabBar"); + DebugNodeWindowsList(&node->Windows, "Windows"); + + TreePop(); + } +} + +// [DEBUG] Display contents of ImDrawList +// Note that both 'window' and 'viewport' may be NULL here. Viewport is generally null of destroyed popups which previously owned a viewport. +void ImGui::DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label) +{ + ImGuiContext& g = *GImGui; + ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + int cmd_count = draw_list->CmdBuffer.Size; + if (cmd_count > 0 && draw_list->CmdBuffer.back().ElemCount == 0 && draw_list->CmdBuffer.back().UserCallback == NULL) + cmd_count--; + bool node_open = TreeNode(draw_list, "%s: '%s' %d vtx, %d indices, %d cmds", label, draw_list->_OwnerName ? draw_list->_OwnerName : "", draw_list->VtxBuffer.Size, draw_list->IdxBuffer.Size, cmd_count); + if (draw_list == GetWindowDrawList()) + { + SameLine(); + TextColored(ImVec4(1.0f, 0.4f, 0.4f, 1.0f), "CURRENTLY APPENDING"); // Can't display stats for active draw list! (we don't have the data double-buffered) + if (node_open) + TreePop(); + return; + } + + ImDrawList* fg_draw_list = viewport ? GetForegroundDrawList(viewport) : NULL; // Render additional visuals into the top-most draw list + if (window && IsItemHovered() && fg_draw_list) + fg_draw_list->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!node_open) + return; + + if (window && !window->WasActive) + TextDisabled("Warning: owning Window is inactive. This DrawList is not being rendered!"); + + for (const ImDrawCmd* pcmd = draw_list->CmdBuffer.Data; pcmd < draw_list->CmdBuffer.Data + cmd_count; pcmd++) + { + if (pcmd->UserCallback) + { + BulletText("Callback %p, user_data %p", pcmd->UserCallback, pcmd->UserCallbackData); + continue; + } + + char buf[300]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "DrawCmd:%5d tris, Tex 0x%p, ClipRect (%4.0f,%4.0f)-(%4.0f,%4.0f)", + pcmd->ElemCount / 3, (void*)(intptr_t)pcmd->TextureId, + pcmd->ClipRect.x, pcmd->ClipRect.y, pcmd->ClipRect.z, pcmd->ClipRect.w); + bool pcmd_node_open = TreeNode((void*)(pcmd - draw_list->CmdBuffer.begin()), "%s", buf); + if (IsItemHovered() && (cfg->ShowDrawCmdMesh || cfg->ShowDrawCmdBoundingBoxes) && fg_draw_list) + DebugNodeDrawCmdShowMeshAndBoundingBox(fg_draw_list, draw_list, pcmd, cfg->ShowDrawCmdMesh, cfg->ShowDrawCmdBoundingBoxes); + if (!pcmd_node_open) + continue; + + // Calculate approximate coverage area (touched pixel count) + // This will be in pixels squared as long there's no post-scaling happening to the renderer output. + const ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; + const ImDrawVert* vtx_buffer = draw_list->VtxBuffer.Data + pcmd->VtxOffset; + float total_area = 0.0f; + for (unsigned int idx_n = pcmd->IdxOffset; idx_n < pcmd->IdxOffset + pcmd->ElemCount; ) + { + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_n++) + triangle[n] = vtx_buffer[idx_buffer ? idx_buffer[idx_n] : idx_n].pos; + total_area += ImTriangleArea(triangle[0], triangle[1], triangle[2]); + } + + // Display vertex information summary. Hover to get all triangles drawn in wire-frame + ImFormatString(buf, IM_ARRAYSIZE(buf), "Mesh: ElemCount: %d, VtxOffset: +%d, IdxOffset: +%d, Area: ~%0.f px", pcmd->ElemCount, pcmd->VtxOffset, pcmd->IdxOffset, total_area); + Selectable(buf); + if (IsItemHovered() && fg_draw_list) + DebugNodeDrawCmdShowMeshAndBoundingBox(fg_draw_list, draw_list, pcmd, true, false); + + // Display individual triangles/vertices. Hover on to get the corresponding triangle highlighted. + ImGuiListClipper clipper; + clipper.Begin(pcmd->ElemCount / 3); // Manually coarse clip our print out of individual vertices to save CPU, only items that may be visible. + while (clipper.Step()) + for (int prim = clipper.DisplayStart, idx_i = pcmd->IdxOffset + clipper.DisplayStart * 3; prim < clipper.DisplayEnd; prim++) + { + char* buf_p = buf, * buf_end = buf + IM_ARRAYSIZE(buf); + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_i++) + { + const ImDrawVert& v = vtx_buffer[idx_buffer ? idx_buffer[idx_i] : idx_i]; + triangle[n] = v.pos; + buf_p += ImFormatString(buf_p, buf_end - buf_p, "%s %04d: pos (%8.2f,%8.2f), uv (%.6f,%.6f), col %08X\n", + (n == 0) ? "Vert:" : " ", idx_i, v.pos.x, v.pos.y, v.uv.x, v.uv.y, v.col); + } + + Selectable(buf, false); + if (fg_draw_list && IsItemHovered()) + { + ImDrawListFlags backup_flags = fg_draw_list->Flags; + fg_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. + fg_draw_list->AddPolyline(triangle, 3, IM_COL32(255, 255, 0, 255), ImDrawFlags_Closed, 1.0f); + fg_draw_list->Flags = backup_flags; + } + } + TreePop(); + } + TreePop(); +} + +// [DEBUG] Display mesh/aabb of a ImDrawCmd +void ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb) +{ + IM_ASSERT(show_mesh || show_aabb); + + // Draw wire-frame version of all triangles + ImRect clip_rect = draw_cmd->ClipRect; + ImRect vtxs_rect(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + ImDrawListFlags backup_flags = out_draw_list->Flags; + out_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. + for (unsigned int idx_n = draw_cmd->IdxOffset, idx_end = draw_cmd->IdxOffset + draw_cmd->ElemCount; idx_n < idx_end; ) + { + ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; // We don't hold on those pointers past iterations as ->AddPolyline() may invalidate them if out_draw_list==draw_list + ImDrawVert* vtx_buffer = draw_list->VtxBuffer.Data + draw_cmd->VtxOffset; + + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_n++) + vtxs_rect.Add((triangle[n] = vtx_buffer[idx_buffer ? idx_buffer[idx_n] : idx_n].pos)); + if (show_mesh) + out_draw_list->AddPolyline(triangle, 3, IM_COL32(255, 255, 0, 255), ImDrawFlags_Closed, 1.0f); // In yellow: mesh triangles + } + // Draw bounding boxes + if (show_aabb) + { + out_draw_list->AddRect(ImTrunc(clip_rect.Min), ImTrunc(clip_rect.Max), IM_COL32(255, 0, 255, 255)); // In pink: clipping rectangle submitted to GPU + out_draw_list->AddRect(ImTrunc(vtxs_rect.Min), ImTrunc(vtxs_rect.Max), IM_COL32(0, 255, 255, 255)); // In cyan: bounding box of triangles + } + out_draw_list->Flags = backup_flags; +} + +// [DEBUG] Display details for a single font, called by ShowStyleEditor(). +void ImGui::DebugNodeFont(ImFont* font) +{ + bool opened = TreeNode(font, "Font: \"%s\"\n%.2f px, %d glyphs, %d file(s)", + font->ConfigData ? font->ConfigData[0].Name : "", font->FontSize, font->Glyphs.Size, font->ConfigDataCount); + SameLine(); + if (SmallButton("Set as default")) + GetIO().FontDefault = font; + if (!opened) + return; + + // Display preview text + PushFont(font); + Text("The quick brown fox jumps over the lazy dog"); + PopFont(); + + // Display details + SetNextItemWidth(GetFontSize() * 8); + DragFloat("Font scale", &font->Scale, 0.005f, 0.3f, 2.0f, "%.1f"); + SameLine(); MetricsHelpMarker( + "Note than the default embedded font is NOT meant to be scaled.\n\n" + "Font are currently rendered into bitmaps at a given size at the time of building the atlas. " + "You may oversample them to get some flexibility with scaling. " + "You can also render at multiple sizes and select which one to use at runtime.\n\n" + "(Glimmer of hope: the atlas system will be rewritten in the future to make scaling more flexible.)"); + Text("Ascent: %f, Descent: %f, Height: %f", font->Ascent, font->Descent, font->Ascent - font->Descent); + char c_str[5]; + Text("Fallback character: '%s' (U+%04X)", ImTextCharToUtf8(c_str, font->FallbackChar), font->FallbackChar); + Text("Ellipsis character: '%s' (U+%04X)", ImTextCharToUtf8(c_str, font->EllipsisChar), font->EllipsisChar); + const int surface_sqrt = (int)ImSqrt((float)font->MetricsTotalSurface); + Text("Texture Area: about %d px ~%dx%d px", font->MetricsTotalSurface, surface_sqrt, surface_sqrt); + for (int config_i = 0; config_i < font->ConfigDataCount; config_i++) + if (font->ConfigData) + if (const ImFontConfig* cfg = &font->ConfigData[config_i]) + BulletText("Input %d: \'%s\', Oversample: (%d,%d), PixelSnapH: %d, Offset: (%.1f,%.1f)", + config_i, cfg->Name, cfg->OversampleH, cfg->OversampleV, cfg->PixelSnapH, cfg->GlyphOffset.x, cfg->GlyphOffset.y); + + // Display all glyphs of the fonts in separate pages of 256 characters + if (TreeNode("Glyphs", "Glyphs (%d)", font->Glyphs.Size)) + { + ImDrawList* draw_list = GetWindowDrawList(); + const ImU32 glyph_col = GetColorU32(ImGuiCol_Text); + const float cell_size = font->FontSize * 1; + const float cell_spacing = GetStyle().ItemSpacing.y; + for (unsigned int base = 0; base <= IM_UNICODE_CODEPOINT_MAX; base += 256) + { + // Skip ahead if a large bunch of glyphs are not present in the font (test in chunks of 4k) + // This is only a small optimization to reduce the number of iterations when IM_UNICODE_MAX_CODEPOINT + // is large // (if ImWchar==ImWchar32 we will do at least about 272 queries here) + if (!(base & 4095) && font->IsGlyphRangeUnused(base, base + 4095)) + { + base += 4096 - 256; + continue; + } + + int count = 0; + for (unsigned int n = 0; n < 256; n++) + if (font->FindGlyphNoFallback((ImWchar)(base + n))) + count++; + if (count <= 0) + continue; + if (!TreeNode((void*)(intptr_t)base, "U+%04X..U+%04X (%d %s)", base, base + 255, count, count > 1 ? "glyphs" : "glyph")) + continue; + + // Draw a 16x16 grid of glyphs + ImVec2 base_pos = GetCursorScreenPos(); + for (unsigned int n = 0; n < 256; n++) + { + // We use ImFont::RenderChar as a shortcut because we don't have UTF-8 conversion functions + // available here and thus cannot easily generate a zero-terminated UTF-8 encoded string. + ImVec2 cell_p1(base_pos.x + (n % 16) * (cell_size + cell_spacing), base_pos.y + (n / 16) * (cell_size + cell_spacing)); + ImVec2 cell_p2(cell_p1.x + cell_size, cell_p1.y + cell_size); + const ImFontGlyph* glyph = font->FindGlyphNoFallback((ImWchar)(base + n)); + draw_list->AddRect(cell_p1, cell_p2, glyph ? IM_COL32(255, 255, 255, 100) : IM_COL32(255, 255, 255, 50)); + if (!glyph) + continue; + font->RenderChar(draw_list, cell_size, cell_p1, glyph_col, (ImWchar)(base + n)); + if (IsMouseHoveringRect(cell_p1, cell_p2) && BeginTooltip()) + { + DebugNodeFontGlyph(font, glyph); + EndTooltip(); + } + } + Dummy(ImVec2((cell_size + cell_spacing) * 16, (cell_size + cell_spacing) * 16)); + TreePop(); + } + TreePop(); + } + TreePop(); +} + +void ImGui::DebugNodeFontGlyph(ImFont*, const ImFontGlyph* glyph) +{ + Text("Codepoint: U+%04X", glyph->Codepoint); + Separator(); + Text("Visible: %d", glyph->Visible); + Text("AdvanceX: %.1f", glyph->AdvanceX); + Text("Pos: (%.2f,%.2f)->(%.2f,%.2f)", glyph->X0, glyph->Y0, glyph->X1, glyph->Y1); + Text("UV: (%.3f,%.3f)->(%.3f,%.3f)", glyph->U0, glyph->V0, glyph->U1, glyph->V1); +} + +// [DEBUG] Display contents of ImGuiStorage +void ImGui::DebugNodeStorage(ImGuiStorage* storage, const char* label) +{ + if (!TreeNode(label, "%s: %d entries, %d bytes", label, storage->Data.Size, storage->Data.size_in_bytes())) + return; + for (const ImGuiStorage::ImGuiStoragePair& p : storage->Data) + BulletText("Key 0x%08X Value { i: %d }", p.key, p.val_i); // Important: we currently don't store a type, real value may not be integer. + TreePop(); +} + +// [DEBUG] Display contents of ImGuiTabBar +void ImGui::DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label) +{ + // Standalone tab bars (not associated to docking/windows functionality) currently hold no discernible strings. + char buf[256]; + char* p = buf; + const char* buf_end = buf + IM_ARRAYSIZE(buf); + const bool is_active = (tab_bar->PrevFrameVisible >= GetFrameCount() - 2); + p += ImFormatString(p, buf_end - p, "%s 0x%08X (%d tabs)%s {", label, tab_bar->ID, tab_bar->Tabs.Size, is_active ? "" : " *Inactive*"); + for (int tab_n = 0; tab_n < ImMin(tab_bar->Tabs.Size, 3); tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + p += ImFormatString(p, buf_end - p, "%s'%s'", tab_n > 0 ? ", " : "", TabBarGetTabName(tab_bar, tab)); + } + p += ImFormatString(p, buf_end - p, (tab_bar->Tabs.Size > 3) ? " ... }" : " } "); + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open = TreeNode(label, "%s", buf); + if (!is_active) { PopStyleColor(); } + if (is_active && IsItemHovered()) + { + ImDrawList* draw_list = GetForegroundDrawList(); + draw_list->AddRect(tab_bar->BarRect.Min, tab_bar->BarRect.Max, IM_COL32(255, 255, 0, 255)); + draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); + draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); + } + if (open) + { + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + PushID(tab); + if (SmallButton("<")) { TabBarQueueReorder(tab_bar, tab, -1); } SameLine(0, 2); + if (SmallButton(">")) { TabBarQueueReorder(tab_bar, tab, +1); } SameLine(); + Text("%02d%c Tab 0x%08X '%s' Offset: %.2f, Width: %.2f/%.2f", + tab_n, (tab->ID == tab_bar->SelectedTabId) ? '*' : ' ', tab->ID, TabBarGetTabName(tab_bar, tab), tab->Offset, tab->Width, tab->ContentWidth); + PopID(); + } + TreePop(); + } +} + +void ImGui::DebugNodeViewport(ImGuiViewportP* viewport) +{ + SetNextItemOpen(true, ImGuiCond_Once); + if (TreeNode((void*)(intptr_t)viewport->ID, "Viewport #%d, ID: 0x%08X, Parent: 0x%08X, Window: \"%s\"", viewport->Idx, viewport->ID, viewport->ParentViewportId, viewport->Window ? viewport->Window->Name : "N/A")) + { + ImGuiWindowFlags flags = viewport->Flags; + BulletText("Main Pos: (%.0f,%.0f), Size: (%.0f,%.0f)\nWorkArea Offset Left: %.0f Top: %.0f, Right: %.0f, Bottom: %.0f\nMonitor: %d, DpiScale: %.0f%%", + viewport->Pos.x, viewport->Pos.y, viewport->Size.x, viewport->Size.y, + viewport->WorkOffsetMin.x, viewport->WorkOffsetMin.y, viewport->WorkOffsetMax.x, viewport->WorkOffsetMax.y, + viewport->PlatformMonitor, viewport->DpiScale * 100.0f); + if (viewport->Idx > 0) { SameLine(); if (SmallButton("Reset Pos")) { viewport->Pos = ImVec2(200, 200); viewport->UpdateWorkRect(); if (viewport->Window) viewport->Window->Pos = viewport->Pos; } } + BulletText("Flags: 0x%04X =%s%s%s%s%s%s%s%s%s%s%s%s%s", viewport->Flags, + //(flags & ImGuiViewportFlags_IsPlatformWindow) ? " IsPlatformWindow" : "", // Omitting because it is the standard + (flags & ImGuiViewportFlags_IsPlatformMonitor) ? " IsPlatformMonitor" : "", + (flags & ImGuiViewportFlags_IsMinimized) ? " IsMinimized" : "", + (flags & ImGuiViewportFlags_IsFocused) ? " IsFocused" : "", + (flags & ImGuiViewportFlags_OwnedByApp) ? " OwnedByApp" : "", + (flags & ImGuiViewportFlags_NoDecoration) ? " NoDecoration" : "", + (flags & ImGuiViewportFlags_NoTaskBarIcon) ? " NoTaskBarIcon" : "", + (flags & ImGuiViewportFlags_NoFocusOnAppearing) ? " NoFocusOnAppearing" : "", + (flags & ImGuiViewportFlags_NoFocusOnClick) ? " NoFocusOnClick" : "", + (flags & ImGuiViewportFlags_NoInputs) ? " NoInputs" : "", + (flags & ImGuiViewportFlags_NoRendererClear) ? " NoRendererClear" : "", + (flags & ImGuiViewportFlags_NoAutoMerge) ? " NoAutoMerge" : "", + (flags & ImGuiViewportFlags_TopMost) ? " TopMost" : "", + (flags & ImGuiViewportFlags_CanHostOtherWindows) ? " CanHostOtherWindows" : ""); + for (ImDrawList* draw_list : viewport->DrawDataP.CmdLists) + DebugNodeDrawList(NULL, viewport, draw_list, "DrawList"); + TreePop(); + } +} + +void ImGui::DebugNodeWindow(ImGuiWindow* window, const char* label) +{ + if (window == NULL) + { + BulletText("%s: NULL", label); + return; + } + + ImGuiContext& g = *GImGui; + const bool is_active = window->WasActive; + ImGuiTreeNodeFlags tree_node_flags = (window == g.NavWindow) ? ImGuiTreeNodeFlags_Selected : ImGuiTreeNodeFlags_None; + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + const bool open = TreeNodeEx(label, tree_node_flags, "%s '%s'%s", label, window->Name, is_active ? "" : " *Inactive*"); + if (!is_active) { PopStyleColor(); } + if (IsItemHovered() && is_active) + GetForegroundDrawList(window)->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!open) + return; + + if (window->MemoryCompacted) + TextDisabled("Note: some memory buffers have been compacted/freed."); + + ImGuiWindowFlags flags = window->Flags; + DebugNodeDrawList(window, window->Viewport, window->DrawList, "DrawList"); + BulletText("Pos: (%.1f,%.1f), Size: (%.1f,%.1f), ContentSize (%.1f,%.1f) Ideal (%.1f,%.1f)", window->Pos.x, window->Pos.y, window->Size.x, window->Size.y, window->ContentSize.x, window->ContentSize.y, window->ContentSizeIdeal.x, window->ContentSizeIdeal.y); + BulletText("Flags: 0x%08X (%s%s%s%s%s%s%s%s%s..)", flags, + (flags & ImGuiWindowFlags_ChildWindow) ? "Child " : "", (flags & ImGuiWindowFlags_Tooltip) ? "Tooltip " : "", (flags & ImGuiWindowFlags_Popup) ? "Popup " : "", + (flags & ImGuiWindowFlags_Modal) ? "Modal " : "", (flags & ImGuiWindowFlags_ChildMenu) ? "ChildMenu " : "", (flags & ImGuiWindowFlags_NoSavedSettings) ? "NoSavedSettings " : "", + (flags & ImGuiWindowFlags_NoMouseInputs)? "NoMouseInputs":"", (flags & ImGuiWindowFlags_NoNavInputs) ? "NoNavInputs" : "", (flags & ImGuiWindowFlags_AlwaysAutoResize) ? "AlwaysAutoResize" : ""); + BulletText("WindowClassId: 0x%08X", window->WindowClass.ClassId); + BulletText("Scroll: (%.2f/%.2f,%.2f/%.2f) Scrollbar:%s%s", window->Scroll.x, window->ScrollMax.x, window->Scroll.y, window->ScrollMax.y, window->ScrollbarX ? "X" : "", window->ScrollbarY ? "Y" : ""); + BulletText("Active: %d/%d, WriteAccessed: %d, BeginOrderWithinContext: %d", window->Active, window->WasActive, window->WriteAccessed, (window->Active || window->WasActive) ? window->BeginOrderWithinContext : -1); + BulletText("Appearing: %d, Hidden: %d (CanSkip %d Cannot %d), SkipItems: %d", window->Appearing, window->Hidden, window->HiddenFramesCanSkipItems, window->HiddenFramesCannotSkipItems, window->SkipItems); + for (int layer = 0; layer < ImGuiNavLayer_COUNT; layer++) + { + ImRect r = window->NavRectRel[layer]; + if (r.Min.x >= r.Max.y && r.Min.y >= r.Max.y) + BulletText("NavLastIds[%d]: 0x%08X", layer, window->NavLastIds[layer]); + else + BulletText("NavLastIds[%d]: 0x%08X at +(%.1f,%.1f)(%.1f,%.1f)", layer, window->NavLastIds[layer], r.Min.x, r.Min.y, r.Max.x, r.Max.y); + DebugLocateItemOnHover(window->NavLastIds[layer]); + } + const ImVec2* pr = window->NavPreferredScoringPosRel; + for (int layer = 0; layer < ImGuiNavLayer_COUNT; layer++) + BulletText("NavPreferredScoringPosRel[%d] = {%.1f,%.1f)", layer, (pr[layer].x == FLT_MAX ? -99999.0f : pr[layer].x), (pr[layer].y == FLT_MAX ? -99999.0f : pr[layer].y)); // Display as 99999.0f so it looks neater. + BulletText("NavLayersActiveMask: %X, NavLastChildNavWindow: %s", window->DC.NavLayersActiveMask, window->NavLastChildNavWindow ? window->NavLastChildNavWindow->Name : "NULL"); + + BulletText("Viewport: %d%s, ViewportId: 0x%08X, ViewportPos: (%.1f,%.1f)", window->Viewport ? window->Viewport->Idx : -1, window->ViewportOwned ? " (Owned)" : "", window->ViewportId, window->ViewportPos.x, window->ViewportPos.y); + BulletText("ViewportMonitor: %d", window->Viewport ? window->Viewport->PlatformMonitor : -1); + BulletText("DockId: 0x%04X, DockOrder: %d, Act: %d, Vis: %d", window->DockId, window->DockOrder, window->DockIsActive, window->DockTabIsVisible); + if (window->DockNode || window->DockNodeAsHost) + DebugNodeDockNode(window->DockNodeAsHost ? window->DockNodeAsHost : window->DockNode, window->DockNodeAsHost ? "DockNodeAsHost" : "DockNode"); + + if (window->RootWindow != window) { DebugNodeWindow(window->RootWindow, "RootWindow"); } + if (window->RootWindowDockTree != window->RootWindow) { DebugNodeWindow(window->RootWindowDockTree, "RootWindowDockTree"); } + if (window->ParentWindow != NULL) { DebugNodeWindow(window->ParentWindow, "ParentWindow"); } + if (window->DC.ChildWindows.Size > 0) { DebugNodeWindowsList(&window->DC.ChildWindows, "ChildWindows"); } + if (window->ColumnsStorage.Size > 0 && TreeNode("Columns", "Columns sets (%d)", window->ColumnsStorage.Size)) + { + for (ImGuiOldColumns& columns : window->ColumnsStorage) + DebugNodeColumns(&columns); + TreePop(); + } + DebugNodeStorage(&window->StateStorage, "Storage"); + TreePop(); +} + +void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings* settings) +{ + if (settings->WantDelete) + BeginDisabled(); + Text("0x%08X \"%s\" Pos (%d,%d) Size (%d,%d) Collapsed=%d", + settings->ID, settings->GetName(), settings->Pos.x, settings->Pos.y, settings->Size.x, settings->Size.y, settings->Collapsed); + if (settings->WantDelete) + EndDisabled(); +} + +void ImGui::DebugNodeWindowsList(ImVector* windows, const char* label) +{ + if (!TreeNode(label, "%s (%d)", label, windows->Size)) + return; + for (int i = windows->Size - 1; i >= 0; i--) // Iterate front to back + { + PushID((*windows)[i]); + DebugNodeWindow((*windows)[i], "Window"); + PopID(); + } + TreePop(); +} + +// FIXME-OPT: This is technically suboptimal, but it is simpler this way. +void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack) +{ + for (int i = 0; i < windows_size; i++) + { + ImGuiWindow* window = windows[i]; + if (window->ParentWindowInBeginStack != parent_in_begin_stack) + continue; + char buf[20]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "[%04d] Window", window->BeginOrderWithinContext); + //BulletText("[%04d] Window '%s'", window->BeginOrderWithinContext, window->Name); + DebugNodeWindow(window, buf); + Indent(); + DebugNodeWindowsListByBeginStackParent(windows + i + 1, windows_size - i - 1, window); + Unindent(); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] DEBUG LOG WINDOW +//----------------------------------------------------------------------------- + +void ImGui::DebugLog(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + DebugLogV(fmt, args); + va_end(args); +} + +void ImGui::DebugLogV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + const int old_size = g.DebugLogBuf.size(); + g.DebugLogBuf.appendf("[%05d] ", g.FrameCount); + g.DebugLogBuf.appendfv(fmt, args); + g.DebugLogIndex.append(g.DebugLogBuf.c_str(), old_size, g.DebugLogBuf.size()); + if (g.DebugLogFlags & ImGuiDebugLogFlags_OutputToTTY) + IMGUI_DEBUG_PRINTF("%s", g.DebugLogBuf.begin() + old_size); +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (g.DebugLogFlags & ImGuiDebugLogFlags_OutputToTestEngine) + IMGUI_TEST_ENGINE_LOG("%s", g.DebugLogBuf.begin() + old_size); +#endif +} + +void ImGui::ShowDebugLogWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + if (!(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize)) + SetNextWindowSize(ImVec2(0.0f, GetFontSize() * 12.0f), ImGuiCond_FirstUseEver); + if (!Begin("Dear ImGui Debug Log", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + CheckboxFlags("All", &g.DebugLogFlags, ImGuiDebugLogFlags_EventMask_); + SameLine(); CheckboxFlags("ActiveId", &g.DebugLogFlags, ImGuiDebugLogFlags_EventActiveId); + SameLine(); CheckboxFlags("Focus", &g.DebugLogFlags, ImGuiDebugLogFlags_EventFocus); + SameLine(); CheckboxFlags("Popup", &g.DebugLogFlags, ImGuiDebugLogFlags_EventPopup); + SameLine(); CheckboxFlags("Nav", &g.DebugLogFlags, ImGuiDebugLogFlags_EventNav); + SameLine(); if (CheckboxFlags("Clipper", &g.DebugLogFlags, ImGuiDebugLogFlags_EventClipper)) { g.DebugLogClipperAutoDisableFrames = 2; } if (IsItemHovered()) SetTooltip("Clipper log auto-disabled after 2 frames"); + //SameLine(); CheckboxFlags("Selection", &g.DebugLogFlags, ImGuiDebugLogFlags_EventSelection); + SameLine(); CheckboxFlags("IO", &g.DebugLogFlags, ImGuiDebugLogFlags_EventIO); + SameLine(); CheckboxFlags("Docking", &g.DebugLogFlags, ImGuiDebugLogFlags_EventDocking); + SameLine(); CheckboxFlags("Viewport", &g.DebugLogFlags, ImGuiDebugLogFlags_EventViewport); + + if (SmallButton("Clear")) + { + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); + } + SameLine(); + if (SmallButton("Copy")) + SetClipboardText(g.DebugLogBuf.c_str()); + BeginChild("##log", ImVec2(0.0f, 0.0f), true, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar); + + ImGuiListClipper clipper; + clipper.Begin(g.DebugLogIndex.size()); + while (clipper.Step()) + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_begin = g.DebugLogIndex.get_line_begin(g.DebugLogBuf.c_str(), line_no); + const char* line_end = g.DebugLogIndex.get_line_end(g.DebugLogBuf.c_str(), line_no); + TextUnformatted(line_begin, line_end); + ImRect text_rect = g.LastItemData.Rect; + if (IsItemHovered()) + for (const char* p = line_begin; p <= line_end - 10; p++) + { + ImGuiID id = 0; + if (p[0] != '0' || (p[1] != 'x' && p[1] != 'X') || sscanf(p + 2, "%X", &id) != 1) + continue; + ImVec2 p0 = CalcTextSize(line_begin, p); + ImVec2 p1 = CalcTextSize(p, p + 10); + g.LastItemData.Rect = ImRect(text_rect.Min + ImVec2(p0.x, 0.0f), text_rect.Min + ImVec2(p0.x + p1.x, p1.y)); + if (IsMouseHoveringRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, true)) + DebugLocateItemOnHover(id); + p += 10; + } + } + if (GetScrollY() >= GetScrollMaxY()) + SetScrollHereY(1.0f); + EndChild(); + + End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, ID STACK TOOL) +//----------------------------------------------------------------------------- + +// Draw a small cross at current CursorPos in current window's DrawList +void ImGui::DebugDrawCursorPos(ImU32 col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 pos = window->DC.CursorPos; + window->DrawList->AddLine(ImVec2(pos.x, pos.y - 3.0f), ImVec2(pos.x, pos.y + 4.0f), col, 1.0f); + window->DrawList->AddLine(ImVec2(pos.x - 3.0f, pos.y), ImVec2(pos.x + 4.0f, pos.y), col, 1.0f); +} + +// Draw a 10px wide rectangle around CurposPos.x using Line Y1/Y2 in current window's DrawList +void ImGui::DebugDrawLineExtents(ImU32 col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float curr_x = window->DC.CursorPos.x; + float line_y1 = (window->DC.IsSameLine ? window->DC.CursorPosPrevLine.y : window->DC.CursorPos.y); + float line_y2 = line_y1 + (window->DC.IsSameLine ? window->DC.PrevLineSize.y : window->DC.CurrLineSize.y); + window->DrawList->AddLine(ImVec2(curr_x - 5.0f, line_y1), ImVec2(curr_x + 5.0f, line_y1), col, 1.0f); + window->DrawList->AddLine(ImVec2(curr_x - 0.5f, line_y1), ImVec2(curr_x - 0.5f, line_y2), col, 1.0f); + window->DrawList->AddLine(ImVec2(curr_x - 5.0f, line_y2), ImVec2(curr_x + 5.0f, line_y2), col, 1.0f); +} + +// Draw last item rect in ForegroundDrawList (so it is always visible) +void ImGui::DebugDrawItemRect(ImU32 col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + GetForegroundDrawList(window)->AddRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, col); +} + +// [DEBUG] Locate item position/rectangle given an ID. +static const ImU32 DEBUG_LOCATE_ITEM_COLOR = IM_COL32(0, 255, 0, 255); // Green + +void ImGui::DebugLocateItem(ImGuiID target_id) +{ + ImGuiContext& g = *GImGui; + g.DebugLocateId = target_id; + g.DebugLocateFrames = 2; +} + +void ImGui::DebugLocateItemOnHover(ImGuiID target_id) +{ + if (target_id == 0 || !IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + return; + ImGuiContext& g = *GImGui; + DebugLocateItem(target_id); + GetForegroundDrawList(g.CurrentWindow)->AddRect(g.LastItemData.Rect.Min - ImVec2(3.0f, 3.0f), g.LastItemData.Rect.Max + ImVec2(3.0f, 3.0f), DEBUG_LOCATE_ITEM_COLOR); +} + +void ImGui::DebugLocateItemResolveWithLastItem() +{ + ImGuiContext& g = *GImGui; + ImGuiLastItemData item_data = g.LastItemData; + g.DebugLocateId = 0; + ImDrawList* draw_list = GetForegroundDrawList(g.CurrentWindow); + ImRect r = item_data.Rect; + r.Expand(3.0f); + ImVec2 p1 = g.IO.MousePos; + ImVec2 p2 = ImVec2((p1.x < r.Min.x) ? r.Min.x : (p1.x > r.Max.x) ? r.Max.x : p1.x, (p1.y < r.Min.y) ? r.Min.y : (p1.y > r.Max.y) ? r.Max.y : p1.y); + draw_list->AddRect(r.Min, r.Max, DEBUG_LOCATE_ITEM_COLOR); + draw_list->AddLine(p1, p2, DEBUG_LOCATE_ITEM_COLOR); +} + +// [DEBUG] Item picker tool - start with DebugStartItemPicker() - useful to visually select an item and break into its call-stack. +void ImGui::UpdateDebugToolItemPicker() +{ + ImGuiContext& g = *GImGui; + g.DebugItemPickerBreakId = 0; + if (!g.DebugItemPickerActive) + return; + + const ImGuiID hovered_id = g.HoveredIdPreviousFrame; + SetMouseCursor(ImGuiMouseCursor_Hand); + if (IsKeyPressed(ImGuiKey_Escape)) + g.DebugItemPickerActive = false; + const bool change_mapping = g.IO.KeyMods == (ImGuiMod_Ctrl | ImGuiMod_Shift); + if (!change_mapping && IsMouseClicked(g.DebugItemPickerMouseButton) && hovered_id) + { + g.DebugItemPickerBreakId = hovered_id; + g.DebugItemPickerActive = false; + } + for (int mouse_button = 0; mouse_button < 3; mouse_button++) + if (change_mapping && IsMouseClicked(mouse_button)) + g.DebugItemPickerMouseButton = (ImU8)mouse_button; + SetNextWindowBgAlpha(0.70f); + if (!BeginTooltip()) + return; + Text("HoveredId: 0x%08X", hovered_id); + Text("Press ESC to abort picking."); + const char* mouse_button_names[] = { "Left", "Right", "Middle" }; + if (change_mapping) + Text("Remap w/ Ctrl+Shift: click anywhere to select new mouse button."); + else + TextColored(GetStyleColorVec4(hovered_id ? ImGuiCol_Text : ImGuiCol_TextDisabled), "Click %s Button to break in debugger! (remap w/ Ctrl+Shift)", mouse_button_names[g.DebugItemPickerMouseButton]); + EndTooltip(); +} + +// [DEBUG] ID Stack Tool: update queries. Called by NewFrame() +void ImGui::UpdateDebugToolStackQueries() +{ + ImGuiContext& g = *GImGui; + ImGuiIDStackTool* tool = &g.DebugIDStackTool; + + // Clear hook when id stack tool is not visible + g.DebugHookIdInfo = 0; + if (g.FrameCount != tool->LastActiveFrame + 1) + return; + + // Update queries. The steps are: -1: query Stack, >= 0: query each stack item + // We can only perform 1 ID Info query every frame. This is designed so the GetID() tests are cheap and constant-time + const ImGuiID query_id = g.HoveredIdPreviousFrame ? g.HoveredIdPreviousFrame : g.ActiveId; + if (tool->QueryId != query_id) + { + tool->QueryId = query_id; + tool->StackLevel = -1; + tool->Results.resize(0); + } + if (query_id == 0) + return; + + // Advance to next stack level when we got our result, or after 2 frames (in case we never get a result) + int stack_level = tool->StackLevel; + if (stack_level >= 0 && stack_level < tool->Results.Size) + if (tool->Results[stack_level].QuerySuccess || tool->Results[stack_level].QueryFrameCount > 2) + tool->StackLevel++; + + // Update hook + stack_level = tool->StackLevel; + if (stack_level == -1) + g.DebugHookIdInfo = query_id; + if (stack_level >= 0 && stack_level < tool->Results.Size) + { + g.DebugHookIdInfo = tool->Results[stack_level].ID; + tool->Results[stack_level].QueryFrameCount++; + } +} + +// [DEBUG] ID Stack tool: hooks called by GetID() family functions +void ImGui::DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiIDStackTool* tool = &g.DebugIDStackTool; + + // Step 0: stack query + // This assumes that the ID was computed with the current ID stack, which tends to be the case for our widget. + if (tool->StackLevel == -1) + { + tool->StackLevel++; + tool->Results.resize(window->IDStack.Size + 1, ImGuiStackLevelInfo()); + for (int n = 0; n < window->IDStack.Size + 1; n++) + tool->Results[n].ID = (n < window->IDStack.Size) ? window->IDStack[n] : id; + return; + } + + // Step 1+: query for individual level + IM_ASSERT(tool->StackLevel >= 0); + if (tool->StackLevel != window->IDStack.Size) + return; + ImGuiStackLevelInfo* info = &tool->Results[tool->StackLevel]; + IM_ASSERT(info->ID == id && info->QueryFrameCount > 0); + + switch (data_type) + { + case ImGuiDataType_S32: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%d", (int)(intptr_t)data_id); + break; + case ImGuiDataType_String: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%.*s", data_id_end ? (int)((const char*)data_id_end - (const char*)data_id) : (int)strlen((const char*)data_id), (const char*)data_id); + break; + case ImGuiDataType_Pointer: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "(void*)0x%p", data_id); + break; + case ImGuiDataType_ID: + if (info->Desc[0] != 0) // PushOverrideID() is often used to avoid hashing twice, which would lead to 2 calls to DebugHookIdInfo(). We prioritize the first one. + return; + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "0x%08X [override]", id); + break; + default: + IM_ASSERT(0); + } + info->QuerySuccess = true; + info->DataType = data_type; +} + +static int StackToolFormatLevelInfo(ImGuiIDStackTool* tool, int n, bool format_for_ui, char* buf, size_t buf_size) +{ + ImGuiStackLevelInfo* info = &tool->Results[n]; + ImGuiWindow* window = (info->Desc[0] == 0 && n == 0) ? ImGui::FindWindowByID(info->ID) : NULL; + if (window) // Source: window name (because the root ID don't call GetID() and so doesn't get hooked) + return ImFormatString(buf, buf_size, format_for_ui ? "\"%s\" [window]" : "%s", window->Name); + if (info->QuerySuccess) // Source: GetID() hooks (prioritize over ItemInfo() because we frequently use patterns like: PushID(str), Button("") where they both have same id) + return ImFormatString(buf, buf_size, (format_for_ui && info->DataType == ImGuiDataType_String) ? "\"%s\"" : "%s", info->Desc); + if (tool->StackLevel < tool->Results.Size) // Only start using fallback below when all queries are done, so during queries we don't flickering ??? markers. + return (*buf = 0); +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (const char* label = ImGuiTestEngine_FindItemDebugLabel(GImGui, info->ID)) // Source: ImGuiTestEngine's ItemInfo() + return ImFormatString(buf, buf_size, format_for_ui ? "??? \"%s\"" : "%s", label); +#endif + return ImFormatString(buf, buf_size, "???"); +} + +// ID Stack Tool: Display UI +void ImGui::ShowIDStackToolWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + if (!(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize)) + SetNextWindowSize(ImVec2(0.0f, GetFontSize() * 8.0f), ImGuiCond_FirstUseEver); + if (!Begin("Dear ImGui ID Stack Tool", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + // Display hovered/active status + ImGuiIDStackTool* tool = &g.DebugIDStackTool; + const ImGuiID hovered_id = g.HoveredIdPreviousFrame; + const ImGuiID active_id = g.ActiveId; +#ifdef IMGUI_ENABLE_TEST_ENGINE + Text("HoveredId: 0x%08X (\"%s\"), ActiveId: 0x%08X (\"%s\")", hovered_id, hovered_id ? ImGuiTestEngine_FindItemDebugLabel(&g, hovered_id) : "", active_id, active_id ? ImGuiTestEngine_FindItemDebugLabel(&g, active_id) : ""); +#else + Text("HoveredId: 0x%08X, ActiveId: 0x%08X", hovered_id, active_id); +#endif + SameLine(); + MetricsHelpMarker("Hover an item with the mouse to display elements of the ID Stack leading to the item's final ID.\nEach level of the stack correspond to a PushID() call.\nAll levels of the stack are hashed together to make the final ID of a widget (ID displayed at the bottom level of the stack).\nRead FAQ entry about the ID stack for details."); + + // CTRL+C to copy path + const float time_since_copy = (float)g.Time - tool->CopyToClipboardLastTime; + Checkbox("Ctrl+C: copy path to clipboard", &tool->CopyToClipboardOnCtrlC); + SameLine(); + TextColored((time_since_copy >= 0.0f && time_since_copy < 0.75f && ImFmod(time_since_copy, 0.25f) < 0.25f * 0.5f) ? ImVec4(1.f, 1.f, 0.3f, 1.f) : ImVec4(), "*COPIED*"); + if (tool->CopyToClipboardOnCtrlC && IsKeyDown(ImGuiMod_Ctrl) && IsKeyPressed(ImGuiKey_C)) + { + tool->CopyToClipboardLastTime = (float)g.Time; + char* p = g.TempBuffer.Data; + char* p_end = p + g.TempBuffer.Size; + for (int stack_n = 0; stack_n < tool->Results.Size && p + 3 < p_end; stack_n++) + { + *p++ = '/'; + char level_desc[256]; + StackToolFormatLevelInfo(tool, stack_n, false, level_desc, IM_ARRAYSIZE(level_desc)); + for (int n = 0; level_desc[n] && p + 2 < p_end; n++) + { + if (level_desc[n] == '/') + *p++ = '\\'; + *p++ = level_desc[n]; + } + } + *p = '\0'; + SetClipboardText(g.TempBuffer.Data); + } + + // Display decorated stack + tool->LastActiveFrame = g.FrameCount; + if (tool->Results.Size > 0 && BeginTable("##table", 3, ImGuiTableFlags_Borders)) + { + const float id_width = CalcTextSize("0xDDDDDDDD").x; + TableSetupColumn("Seed", ImGuiTableColumnFlags_WidthFixed, id_width); + TableSetupColumn("PushID", ImGuiTableColumnFlags_WidthStretch); + TableSetupColumn("Result", ImGuiTableColumnFlags_WidthFixed, id_width); + TableHeadersRow(); + for (int n = 0; n < tool->Results.Size; n++) + { + ImGuiStackLevelInfo* info = &tool->Results[n]; + TableNextColumn(); + Text("0x%08X", (n > 0) ? tool->Results[n - 1].ID : 0); + TableNextColumn(); + StackToolFormatLevelInfo(tool, n, true, g.TempBuffer.Data, g.TempBuffer.Size); + TextUnformatted(g.TempBuffer.Data); + TableNextColumn(); + Text("0x%08X", info->ID); + if (n == tool->Results.Size - 1) + TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_Header)); + } + EndTable(); + } + End(); +} + +#else + +void ImGui::ShowMetricsWindow(bool*) {} +void ImGui::ShowFontAtlas(ImFontAtlas*) {} +void ImGui::DebugNodeColumns(ImGuiOldColumns*) {} +void ImGui::DebugNodeDrawList(ImGuiWindow*, ImGuiViewportP*, const ImDrawList*, const char*) {} +void ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList*, const ImDrawList*, const ImDrawCmd*, bool, bool) {} +void ImGui::DebugNodeFont(ImFont*) {} +void ImGui::DebugNodeStorage(ImGuiStorage*, const char*) {} +void ImGui::DebugNodeTabBar(ImGuiTabBar*, const char*) {} +void ImGui::DebugNodeWindow(ImGuiWindow*, const char*) {} +void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings*) {} +void ImGui::DebugNodeWindowsList(ImVector*, const char*) {} +void ImGui::DebugNodeViewport(ImGuiViewportP*) {} + +void ImGui::DebugLog(const char*, ...) {} +void ImGui::DebugLogV(const char*, va_list) {} +void ImGui::ShowDebugLogWindow(bool*) {} +void ImGui::ShowIDStackToolWindow(bool*) {} +void ImGui::DebugHookIdInfo(ImGuiID, ImGuiDataType, const void*, const void*) {} +void ImGui::UpdateDebugToolItemPicker() {} +void ImGui::UpdateDebugToolStackQueries() {} + +#endif // #ifndef IMGUI_DISABLE_DEBUG_TOOLS + +//----------------------------------------------------------------------------- + +// Include imgui_user.inl at the end of imgui.cpp to access private data/functions that aren't exposed. +// Prefer just including imgui_internal.h from your code rather than using this define. If a declaration is missing from imgui_internal.h add it or request it on the github. +#ifdef IMGUI_INCLUDE_IMGUI_USER_INL +#include "imgui_user.inl" +#endif + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/imgui.h b/HexaGen.Tests/cpp2c/imgui/imgui.h new file mode 100644 index 0000000..95eac4f --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/imgui.h @@ -0,0 +1,3501 @@ +// dear imgui, v1.90 WIP +// (headers) + +// Help: +// - See links below. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// - Read top of imgui.cpp for more details, links and comments. + +// Resources: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Homepage https://github.com/ocornut/imgui +// - Releases & changelog https://github.com/ocornut/imgui/releases +// - Gallery https://github.com/ocornut/imgui/issues/6897 (please post your screenshots/video there!) +// - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) +// - Glossary https://github.com/ocornut/imgui/wiki/Glossary +// - Issues & support https://github.com/ocornut/imgui/issues +// - Tests & Automation https://github.com/ocornut/imgui_test_engine + +// For first-time users having issues compiling/linking/running/loading fonts: +// please post in https://github.com/ocornut/imgui/discussions if you cannot find a solution in resources above. +// Everything else should be asked in 'Issues'! We are building a database of cross-linked knowledge there. + +// Library Version +// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345') +#define IMGUI_VERSION "1.90 WIP" +#define IMGUI_VERSION_NUM 18995 +#define IMGUI_HAS_TABLE +#define IMGUI_HAS_VIEWPORT // Viewport WIP branch +#define IMGUI_HAS_DOCK // Docking WIP branch + +/* + +Index of this file: +// [SECTION] Header mess +// [SECTION] Forward declarations and basic types +// [SECTION] Dear ImGui end-user API functions +// [SECTION] Flags & Enumerations +// [SECTION] Helpers: Memory allocations macros, ImVector<> +// [SECTION] ImGuiStyle +// [SECTION] ImGuiIO +// [SECTION] Misc data structures (ImGuiInputTextCallbackData, ImGuiSizeCallbackData, ImGuiWindowClass, ImGuiPayload, ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs) +// [SECTION] Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, Math Operators, ImColor) +// [SECTION] Drawing API (ImDrawCallback, ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawFlags, ImDrawListFlags, ImDrawList, ImDrawData) +// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontGlyphRangesBuilder, ImFontAtlasFlags, ImFontAtlas, ImFont) +// [SECTION] Viewports (ImGuiViewportFlags, ImGuiViewport) +// [SECTION] Platform Dependent Interfaces (ImGuiPlatformIO, ImGuiPlatformMonitor, ImGuiPlatformImeData) +// [SECTION] Obsolete functions and types + +*/ + +#pragma once + +// Configuration file with compile-time options +// (edit imconfig.h or '#define IMGUI_USER_CONFIG "myfilename.h" from your build system) +#ifdef IMGUI_USER_CONFIG +#include IMGUI_USER_CONFIG +#endif +#include "imconfig.h" + +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +// Includes +#include // FLT_MIN, FLT_MAX +#include // va_list, va_start, va_end +#include // ptrdiff_t, NULL +#include // memset, memmove, memcpy, strlen, strchr, strcpy, strcmp + +// 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 backends files (imgui_impl_xxx.h) +// Using dear imgui via a shared library is not recommended: we don't guarantee backward nor forward ABI compatibility + this is a call-heavy library and function call overhead adds up. +#ifndef IMGUI_API +#define IMGUI_API +#endif +#ifndef IMGUI_IMPL_API +#define IMGUI_IMPL_API IMGUI_API +#endif + +// Helper Macros +#ifndef IM_ASSERT +#include +#define IM_ASSERT(_EXPR) assert(_EXPR) // You can override the default assert handler by editing imconfig.h +#endif +#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR)))) // Size of a static C-style array. Don't use on pointers! +#define IM_UNUSED(_VAR) ((void)(_VAR)) // Used to silence "unused variable warnings". Often useful as asserts may be stripped out from final builds. +#define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER) // Offset of _MEMBER within _TYPE. Standardized as offsetof() in C++11 +#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) + +// Helper Macros - IM_FMTARGS, IM_FMTLIST: Apply printf-style warnings to our formatting functions. +#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__) +#define IM_FMTARGS(FMT) __attribute__((format(gnu_printf, FMT, FMT+1))) +#define IM_FMTLIST(FMT) __attribute__((format(gnu_printf, FMT, 0))) +#elif !defined(IMGUI_USE_STB_SPRINTF) && (defined(__clang__) || defined(__GNUC__)) +#define IM_FMTARGS(FMT) __attribute__((format(printf, FMT, FMT+1))) +#define IM_FMTLIST(FMT) __attribute__((format(printf, FMT, 0))) +#else +#define IM_FMTARGS(FMT) +#define IM_FMTLIST(FMT) +#endif + +// Disable some of MSVC most aggressive Debug runtime checks in function header/footer (used in some simple/low-level functions) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(IMGUI_DEBUG_PARANOID) +#define IM_MSVC_RUNTIME_CHECKS_OFF __pragma(runtime_checks("",off)) __pragma(check_stack(off)) __pragma(strict_gs_check(push,off)) +#define IM_MSVC_RUNTIME_CHECKS_RESTORE __pragma(runtime_checks("",restore)) __pragma(check_stack()) __pragma(strict_gs_check(pop)) +#else +#define IM_MSVC_RUNTIME_CHECKS_OFF +#define IM_MSVC_RUNTIME_CHECKS_RESTORE +#endif + +// Warnings +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#endif +#if defined(__clang__) +#pragma clang diagnostic push +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#pragma clang diagnostic ignored "-Wreserved-identifier" // warning: identifier '_Xxx' is reserved because it starts with '_' followed by a capital letter +#elif defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward declarations and basic types +//----------------------------------------------------------------------------- + +// Forward declarations +struct ImDrawChannel; // Temporary storage to output draw commands out of order, used by ImDrawListSplitter and ImDrawList::ChannelsSplit() +struct ImDrawCmd; // A single draw command within a parent ImDrawList (generally maps to 1 GPU draw call, unless it is a callback) +struct ImDrawData; // All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix. +struct ImDrawList; // A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh" builder) +struct ImDrawListSharedData; // Data shared among multiple draw lists (typically owned by parent ImGui context, but you may create one yourself) +struct ImDrawListSplitter; // Helper to split a draw list into different layers which can be drawn into out of order, then flattened back. +struct ImDrawVert; // A single vertex (pos + uv + col = 20 bytes by default. Override layout with IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT) +struct ImFont; // Runtime data for a single font within a parent ImFontAtlas +struct ImFontAtlas; // Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader +struct ImFontBuilderIO; // Opaque interface to a font builder (stb_truetype or FreeType). +struct ImFontConfig; // Configuration data when adding a font or merging fonts +struct ImFontGlyph; // A single font glyph (code point + coordinates within in ImFontAtlas + offset) +struct ImFontGlyphRangesBuilder; // Helper to build glyph ranges from text/string data +struct ImColor; // Helper functions to create a color that can be converted to either u32 or float4 (*OBSOLETE* please avoid using) +struct ImGuiContext; // Dear ImGui context (opaque structure, unless including imgui_internal.h) +struct ImGuiIO; // Main configuration and I/O between your application and ImGui +struct ImGuiInputTextCallbackData; // Shared state of InputText() when using custom ImGuiInputTextCallback (rare/advanced use) +struct ImGuiKeyData; // Storage for ImGuiIO and IsKeyDown(), IsKeyPressed() etc functions. +struct ImGuiListClipper; // Helper to manually clip large list of items +struct ImGuiOnceUponAFrame; // Helper for running a block of code not more than once a frame +struct ImGuiPayload; // User data payload for drag and drop operations +struct ImGuiPlatformIO; // Multi-viewport support: interface for Platform/Renderer backends + viewports to render +struct ImGuiPlatformMonitor; // Multi-viewport support: user-provided bounds for each connected monitor/display. Used when positioning popups and tooltips to avoid them straddling monitors +struct ImGuiPlatformImeData; // Platform IME data for io.SetPlatformImeDataFn() function. +struct ImGuiSizeCallbackData; // Callback data when using SetNextWindowSizeConstraints() (rare/advanced use) +struct ImGuiStorage; // Helper for key->value storage +struct ImGuiStyle; // Runtime data for styling/colors +struct ImGuiTableSortSpecs; // Sorting specifications for a table (often handling sort specs for a single column, occasionally more) +struct ImGuiTableColumnSortSpecs; // Sorting specification for one column of a table +struct ImGuiTextBuffer; // Helper to hold and append into a text buffer (~string builder) +struct ImGuiTextFilter; // Helper to parse and apply text filters (e.g. "aaaaa[,bbbbb][,ccccc]") +struct ImGuiViewport; // A Platform Window (always 1 unless multi-viewport are enabled. One per platform window to output to). In the future may represent Platform Monitor +struct ImGuiWindowClass; // Window class (rare/advanced uses: provide hints to the platform backend via altered viewport flags and parent/child info) + +// Enumerations +// - We don't use strongly typed enums much because they add constraints (can't extend in private code, can't store typed in bit fields, extra casting on iteration) +// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +enum ImGuiKey : int; // -> enum ImGuiKey // Enum: A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value) +enum ImGuiMouseSource : int; // -> enum ImGuiMouseSource // Enum; A mouse input source identifier (Mouse, TouchScreen, Pen) +typedef int ImGuiCol; // -> enum ImGuiCol_ // Enum: A color identifier for styling +typedef int ImGuiCond; // -> enum ImGuiCond_ // Enum: A condition for many Set*() functions +typedef int ImGuiDataType; // -> enum ImGuiDataType_ // Enum: A primary data type +typedef int ImGuiDir; // -> enum ImGuiDir_ // Enum: A cardinal direction +typedef int ImGuiMouseButton; // -> enum ImGuiMouseButton_ // Enum: A mouse button identifier (0=left, 1=right, 2=middle) +typedef int ImGuiMouseCursor; // -> enum ImGuiMouseCursor_ // Enum: A mouse cursor shape +typedef int ImGuiSortDirection; // -> enum ImGuiSortDirection_ // Enum: A sorting direction (ascending or descending) +typedef int ImGuiStyleVar; // -> enum ImGuiStyleVar_ // Enum: A variable identifier for styling +typedef int ImGuiTableBgTarget; // -> enum ImGuiTableBgTarget_ // Enum: A color target for TableSetBgColor() + +// Flags (declared as int for compatibility with old C++, to allow using as flags without overhead, and to not pollute the top of this file) +// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +typedef int ImDrawFlags; // -> enum ImDrawFlags_ // Flags: for ImDrawList functions +typedef int ImDrawListFlags; // -> enum ImDrawListFlags_ // Flags: for ImDrawList instance +typedef int ImFontAtlasFlags; // -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas build +typedef int ImGuiBackendFlags; // -> enum ImGuiBackendFlags_ // Flags: for io.BackendFlags +typedef int ImGuiButtonFlags; // -> enum ImGuiButtonFlags_ // Flags: for InvisibleButton() +typedef int ImGuiColorEditFlags; // -> enum ImGuiColorEditFlags_ // Flags: for ColorEdit4(), ColorPicker4() etc. +typedef int ImGuiConfigFlags; // -> enum ImGuiConfigFlags_ // Flags: for io.ConfigFlags +typedef int ImGuiComboFlags; // -> enum ImGuiComboFlags_ // Flags: for BeginCombo() +typedef int ImGuiDockNodeFlags; // -> enum ImGuiDockNodeFlags_ // Flags: for DockSpace() +typedef int ImGuiDragDropFlags; // -> enum ImGuiDragDropFlags_ // Flags: for BeginDragDropSource(), AcceptDragDropPayload() +typedef int ImGuiFocusedFlags; // -> enum ImGuiFocusedFlags_ // Flags: for IsWindowFocused() +typedef int ImGuiHoveredFlags; // -> enum ImGuiHoveredFlags_ // Flags: for IsItemHovered(), IsWindowHovered() etc. +typedef int ImGuiInputTextFlags; // -> enum ImGuiInputTextFlags_ // Flags: for InputText(), InputTextMultiline() +typedef int ImGuiKeyChord; // -> ImGuiKey | ImGuiMod_XXX // Flags: for storage only for now: an ImGuiKey optionally OR-ed with one or more ImGuiMod_XXX values. +typedef int ImGuiPopupFlags; // -> enum ImGuiPopupFlags_ // Flags: for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() +typedef int ImGuiSelectableFlags; // -> enum ImGuiSelectableFlags_ // Flags: for Selectable() +typedef int ImGuiSliderFlags; // -> enum ImGuiSliderFlags_ // Flags: for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. +typedef int ImGuiTabBarFlags; // -> enum ImGuiTabBarFlags_ // Flags: for BeginTabBar() +typedef int ImGuiTabItemFlags; // -> enum ImGuiTabItemFlags_ // Flags: for BeginTabItem() +typedef int ImGuiTableFlags; // -> enum ImGuiTableFlags_ // Flags: For BeginTable() +typedef int ImGuiTableColumnFlags; // -> enum ImGuiTableColumnFlags_// Flags: For TableSetupColumn() +typedef int ImGuiTableRowFlags; // -> enum ImGuiTableRowFlags_ // Flags: For TableNextRow() +typedef int ImGuiTreeNodeFlags; // -> enum ImGuiTreeNodeFlags_ // Flags: for TreeNode(), TreeNodeEx(), CollapsingHeader() +typedef int ImGuiViewportFlags; // -> enum ImGuiViewportFlags_ // Flags: for ImGuiViewport +typedef int ImGuiWindowFlags; // -> enum ImGuiWindowFlags_ // Flags: for Begin(), BeginChild() + +// ImTexture: user data for renderer backend to identify a texture [Compile-time configurable type] +// - To use something else than an opaque void* pointer: override with e.g. '#define ImTextureID MyTextureType*' in your imconfig.h file. +// - This can be whatever to you want it to be! read the FAQ about ImTextureID for details. +#ifndef ImTextureID +typedef void* ImTextureID; // Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that) +#endif + +// ImDrawIdx: vertex index. [Compile-time configurable type] +// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended). +// - To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in your imconfig.h file. +#ifndef ImDrawIdx +typedef unsigned short ImDrawIdx; // Default: 16-bit (for maximum compatibility with renderer backends) +#endif + +// Scalar data types +typedef unsigned int ImGuiID;// A unique ID used by widgets (typically the result of hashing a stack of string) +typedef signed char ImS8; // 8-bit signed integer +typedef unsigned char ImU8; // 8-bit unsigned integer +typedef signed short ImS16; // 16-bit signed integer +typedef unsigned short ImU16; // 16-bit unsigned integer +typedef signed int ImS32; // 32-bit signed integer == int +typedef unsigned int ImU32; // 32-bit unsigned integer (often used to store packed colors) +typedef signed long long ImS64; // 64-bit signed integer +typedef unsigned long long ImU64; // 64-bit unsigned integer + +// Character types +// (we generally use UTF-8 encoded string in the API. This is storage specifically for a decoded character used for keyboard input and display) +typedef unsigned int ImWchar32; // A single decoded U32 character/code point. We encode them as multi bytes UTF-8 when used in strings. +typedef unsigned short ImWchar16; // A single decoded U16 character/code point. We encode them as multi bytes UTF-8 when used in strings. +#ifdef IMGUI_USE_WCHAR32 // ImWchar [configurable type: override in imconfig.h with '#define IMGUI_USE_WCHAR32' to support Unicode planes 1-16] +typedef ImWchar32 ImWchar; +#else +typedef ImWchar16 ImWchar; +#endif + +// Callback and functions types +typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data); // Callback function for ImGui::InputText() +typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data); // Callback function for ImGui::SetNextWindowSizeConstraints() +typedef void* (*ImGuiMemAllocFunc)(size_t sz, void* user_data); // Function signature for ImGui::SetAllocatorFunctions() +typedef void (*ImGuiMemFreeFunc)(void* ptr, void* user_data); // Function signature for ImGui::SetAllocatorFunctions() + +// ImVec2: 2D vector used to store positions, sizes etc. [Compile-time configurable type] +// This is a frequently used type in the API. Consider using IM_VEC2_CLASS_EXTRA to create implicit cast from/to our preferred type. +IM_MSVC_RUNTIME_CHECKS_OFF +struct ImVec2 +{ + float x, y; + constexpr ImVec2() : x(0.0f), y(0.0f) { } + constexpr ImVec2(float _x, float _y) : x(_x), y(_y) { } + float& operator[] (size_t idx) { IM_ASSERT(idx == 0 || idx == 1); return ((float*)(void*)(char*)this)[idx]; } // We very rarely use this [] operator, so the assert overhead is fine. + float operator[] (size_t idx) const { IM_ASSERT(idx == 0 || idx == 1); return ((const float*)(const void*)(const char*)this)[idx]; } +#ifdef IM_VEC2_CLASS_EXTRA + IM_VEC2_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec2. +#endif +}; + +// ImVec4: 4D vector used to store clipping rectangles, colors etc. [Compile-time configurable type] +struct ImVec4 +{ + float x, y, z, w; + constexpr ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { } + constexpr ImVec4(float _x, float _y, float _z, float _w) : x(_x), y(_y), z(_z), w(_w) { } +#ifdef IM_VEC4_CLASS_EXTRA + IM_VEC4_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec4. +#endif +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +//----------------------------------------------------------------------------- +// [SECTION] Dear ImGui end-user API functions +// (Note that ImGui:: being a namespace, you can add extra ImGui:: functions in your own separate file. Please don't modify imgui source files!) +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // Context creation and access + // - Each context create its own ImFontAtlas by default. You may instance one yourself and pass it to CreateContext() to share a font atlas between contexts. + // - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() + // for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for details. + IMGUI_API ImGuiContext* CreateContext(ImFontAtlas* shared_font_atlas = NULL); + IMGUI_API void DestroyContext(ImGuiContext* ctx = NULL); // NULL = destroy current context + IMGUI_API ImGuiContext* GetCurrentContext(); + IMGUI_API void SetCurrentContext(ImGuiContext* ctx); + + // Main + IMGUI_API ImGuiIO& GetIO(); // access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags) + IMGUI_API ImGuiStyle& GetStyle(); // access the Style structure (colors, sizes). Always use PushStyleCol(), PushStyleVar() to modify style mid-frame! + IMGUI_API void NewFrame(); // start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame(). + IMGUI_API void EndFrame(); // ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all! + IMGUI_API void Render(); // ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData(). + IMGUI_API ImDrawData* GetDrawData(); // valid after Render() and until the next call to NewFrame(). this is what you have to render. + + // Demo, Debug, Information + IMGUI_API void ShowDemoWindow(bool* p_open = NULL); // create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! + IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); // create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc. + IMGUI_API void ShowDebugLogWindow(bool* p_open = NULL); // create Debug Log window. display a simplified log of important dear imgui events. + IMGUI_API void ShowIDStackToolWindow(bool* p_open = NULL); // create Stack Tool window. hover items with mouse to query information about the source of their unique ID. + IMGUI_API void ShowAboutWindow(bool* p_open = NULL); // create About window. display Dear ImGui version, credits and build/system information. + IMGUI_API void ShowStyleEditor(ImGuiStyle* ref = NULL); // add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) + IMGUI_API bool ShowStyleSelector(const char* label); // add style selector block (not a window), essentially a combo listing the default styles. + IMGUI_API void ShowFontSelector(const char* label); // add font selector block (not a window), essentially a combo listing the loaded fonts. + IMGUI_API void ShowUserGuide(); // add basic help/info block (not a window): how to manipulate ImGui as an end-user (mouse/keyboard controls). + IMGUI_API const char* GetVersion(); // get the compiled version string e.g. "1.80 WIP" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp) + + // Styles + IMGUI_API void StyleColorsDark(ImGuiStyle* dst = NULL); // new, recommended style (default) + IMGUI_API void StyleColorsLight(ImGuiStyle* dst = NULL); // best used with borders and a custom, thicker font + IMGUI_API void StyleColorsClassic(ImGuiStyle* dst = NULL); // classic imgui style + + // Windows + // - Begin() = push window to the stack and start appending to it. End() = pop window from the stack. + // - Passing 'bool* p_open != NULL' shows a window-closing widget in the upper-right corner of the window, + // which clicking will set the boolean to false when clicked. + // - You may append multiple times to the same window during the same frame by calling Begin()/End() pairs multiple times. + // Some information such as 'flags' or 'p_open' will only be considered by the first call to Begin(). + // - Begin() return false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting + // anything to the window. Always call a matching End() for each Begin() call, regardless of its return value! + // [Important: due to legacy reason, this is inconsistent with most other functions such as BeginMenu/EndMenu, + // BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function + // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] + // - Note that the bottom of window stack always contains a window called "Debug". + IMGUI_API bool Begin(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); + IMGUI_API void End(); + + // Child Windows + // - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. Child windows can embed their own child. + // - For each independent axis of 'size': ==0.0f: use remaining host window size / >0.0f: fixed size / <0.0f: use remaining window size minus abs(size) / Each axis can use a different mode, e.g. ImVec2(0,400). + // - BeginChild() returns false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting anything to the window. + // Always call a matching EndChild() for each BeginChild() call, regardless of its return value. + // [Important: due to legacy reason, this is inconsistent with most other functions such as BeginMenu/EndMenu, + // BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function + // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] + IMGUI_API bool BeginChild(const char* str_id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags window_flags = 0); + IMGUI_API bool BeginChild(ImGuiID id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags window_flags = 0); + IMGUI_API void EndChild(); + + // Windows Utilities + // - 'current window' = the window we are appending into while inside a Begin()/End() block. 'next window' = next window we will Begin() into. + IMGUI_API bool IsWindowAppearing(); + IMGUI_API bool IsWindowCollapsed(); + IMGUI_API bool IsWindowFocused(ImGuiFocusedFlags flags=0); // is current window focused? or its root/child, depending on flags. see flags for options. + IMGUI_API bool IsWindowHovered(ImGuiHoveredFlags flags=0); // is current window hovered (and typically: not blocked by a popup/modal)? see flags for options. NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! + IMGUI_API ImDrawList* GetWindowDrawList(); // get draw list associated to the current window, to append your own drawing primitives + IMGUI_API float GetWindowDpiScale(); // get DPI scale currently associated to the current window's viewport. + IMGUI_API ImVec2 GetWindowPos(); // get current window position in screen space (note: it is unlikely you need to use this. Consider using current layout pos instead, GetCursorScreenPos()) + IMGUI_API ImVec2 GetWindowSize(); // get current window size (note: it is unlikely you need to use this. Consider using GetCursorScreenPos() and e.g. GetContentRegionAvail() instead) + IMGUI_API float GetWindowWidth(); // get current window width (shortcut for GetWindowSize().x) + IMGUI_API float GetWindowHeight(); // get current window height (shortcut for GetWindowSize().y) + IMGUI_API ImGuiViewport*GetWindowViewport(); // get viewport currently associated to the current window. + + // Window manipulation + // - Prefer using SetNextXXX functions (before Begin) rather that SetXXX functions (after Begin). + IMGUI_API void SetNextWindowPos(const ImVec2& pos, ImGuiCond cond = 0, const ImVec2& pivot = ImVec2(0, 0)); // set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. + IMGUI_API void SetNextWindowSize(const ImVec2& size, ImGuiCond cond = 0); // set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() + IMGUI_API void SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback = NULL, void* custom_callback_data = NULL); // set next window size limits. use -1,-1 on either X/Y axis to preserve the current size. Sizes will be rounded down. Use callback to apply non-trivial programmatic constraints. + IMGUI_API void SetNextWindowContentSize(const ImVec2& size); // set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin() + IMGUI_API void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // set next window collapsed state. call before Begin() + IMGUI_API void SetNextWindowFocus(); // set next window to be focused / top-most. call before Begin() + IMGUI_API void SetNextWindowScroll(const ImVec2& scroll); // set next window scrolling value (use < 0.0f to not affect a given axis). + IMGUI_API void SetNextWindowBgAlpha(float alpha); // set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground. + IMGUI_API void SetNextWindowViewport(ImGuiID viewport_id); // set next window viewport + IMGUI_API void SetWindowPos(const ImVec2& pos, ImGuiCond cond = 0); // (not recommended) set current window position - call within Begin()/End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects. + IMGUI_API void SetWindowSize(const ImVec2& size, ImGuiCond cond = 0); // (not recommended) set current window size - call within Begin()/End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. + IMGUI_API void SetWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). + IMGUI_API void SetWindowFocus(); // (not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus(). + IMGUI_API void SetWindowFontScale(float scale); // [OBSOLETE] set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes(). + IMGUI_API void SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond = 0); // set named window position. + IMGUI_API void SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond = 0); // set named window size. set axis to 0.0f to force an auto-fit on this axis. + IMGUI_API void SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond = 0); // set named window collapsed state + IMGUI_API void SetWindowFocus(const char* name); // set named window to be focused / top-most. use NULL to remove focus. + + // Content region + // - Retrieve available space from a given point. GetContentRegionAvail() is frequently useful. + // - Those functions are bound to be redesigned (they are confusing, incomplete and the Min/Max return values are in local window coordinates which increases confusion) + IMGUI_API ImVec2 GetContentRegionAvail(); // == GetContentRegionMax() - GetCursorPos() + IMGUI_API ImVec2 GetContentRegionMax(); // current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates + IMGUI_API ImVec2 GetWindowContentRegionMin(); // content boundaries min for the full window (roughly (0,0)-Scroll), in window coordinates + IMGUI_API ImVec2 GetWindowContentRegionMax(); // content boundaries max for the full window (roughly (0,0)+Size-Scroll) where Size can be overridden with SetNextWindowContentSize(), in window coordinates + + // Windows Scrolling + // - Any change of Scroll will be applied at the beginning of next frame in the first call to Begin(). + // - You may instead use SetNextWindowScroll() prior to calling Begin() to avoid this delay, as an alternative to using SetScrollX()/SetScrollY(). + IMGUI_API float GetScrollX(); // get scrolling amount [0 .. GetScrollMaxX()] + IMGUI_API float GetScrollY(); // get scrolling amount [0 .. GetScrollMaxY()] + IMGUI_API void SetScrollX(float scroll_x); // set scrolling amount [0 .. GetScrollMaxX()] + IMGUI_API void SetScrollY(float scroll_y); // set scrolling amount [0 .. GetScrollMaxY()] + IMGUI_API float GetScrollMaxX(); // get maximum scrolling amount ~~ ContentSize.x - WindowSize.x - DecorationsSize.x + IMGUI_API float GetScrollMaxY(); // get maximum scrolling amount ~~ ContentSize.y - WindowSize.y - DecorationsSize.y + IMGUI_API void SetScrollHereX(float center_x_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. + IMGUI_API void SetScrollHereY(float center_y_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. + IMGUI_API void SetScrollFromPosX(float local_x, float center_x_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. + IMGUI_API void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. + + // Parameters stacks (shared) + IMGUI_API void PushFont(ImFont* font); // use NULL as a shortcut to push default font + IMGUI_API void PopFont(); + IMGUI_API void PushStyleColor(ImGuiCol idx, ImU32 col); // modify a style color. always use this if you modify the style after NewFrame(). + IMGUI_API void PushStyleColor(ImGuiCol idx, const ImVec4& col); + IMGUI_API void PopStyleColor(int count = 1); + IMGUI_API void PushStyleVar(ImGuiStyleVar idx, float val); // modify a style float variable. always use this if you modify the style after NewFrame(). + IMGUI_API void PushStyleVar(ImGuiStyleVar idx, const ImVec2& val); // modify a style ImVec2 variable. always use this if you modify the style after NewFrame(). + IMGUI_API void PopStyleVar(int count = 1); + IMGUI_API void PushTabStop(bool tab_stop); // == tab stop enable. Allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgets + IMGUI_API void PopTabStop(); + IMGUI_API void PushButtonRepeat(bool repeat); // in 'repeat' mode, Button*() functions return repeated true in a typematic manner (using io.KeyRepeatDelay/io.KeyRepeatRate setting). Note that you can call IsItemActive() after any Button() to tell if the button is held in the current frame. + IMGUI_API void PopButtonRepeat(); + + // Parameters stacks (current window) + IMGUI_API void PushItemWidth(float item_width); // push width of items for common large "item+label" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side). + IMGUI_API void PopItemWidth(); + IMGUI_API void SetNextItemWidth(float item_width); // set width of the _next_ common large "item+label" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side) + IMGUI_API float CalcItemWidth(); // width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions. + IMGUI_API void PushTextWrapPos(float wrap_local_pos_x = 0.0f); // push word-wrapping position for Text*() commands. < 0.0f: no wrapping; 0.0f: wrap to end of window (or column); > 0.0f: wrap at 'wrap_pos_x' position in window local space + IMGUI_API void PopTextWrapPos(); + + // Style read access + // - Use the ShowStyleEditor() function to interactively see/edit the colors. + IMGUI_API ImFont* GetFont(); // get current font + IMGUI_API float GetFontSize(); // get current font size (= height in pixels) of current font with current scale applied + IMGUI_API ImVec2 GetFontTexUvWhitePixel(); // get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API + IMGUI_API ImU32 GetColorU32(ImGuiCol idx, float alpha_mul = 1.0f); // retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList + IMGUI_API ImU32 GetColorU32(const ImVec4& col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList + IMGUI_API ImU32 GetColorU32(ImU32 col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList + IMGUI_API const ImVec4& GetStyleColorVec4(ImGuiCol idx); // retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), otherwise use GetColorU32() to get style color with style alpha baked in. + + // Layout cursor positioning + // - By "cursor" we mean the current output position. + // - The typical widget behavior is to output themselves at the current cursor position, then move the cursor one line down. + // - You can call SameLine() between widgets to undo the last carriage return and output at the right of the preceding widget. + // - Attention! We currently have inconsistencies between window-local and absolute positions we will aim to fix with future API: + // - Absolute coordinate: GetCursorScreenPos(), SetCursorScreenPos(), all ImDrawList:: functions. -> this is the preferred way forward. + // - Window-local coordinates: SameLine(), GetCursorPos(), SetCursorPos(), GetCursorStartPos(), GetContentRegionMax(), GetWindowContentRegion*(), PushTextWrapPos() + // - GetCursorScreenPos() = GetCursorPos() + GetWindowPos(). GetWindowPos() is almost only ever useful to convert from window-local to absolute coordinates. + IMGUI_API ImVec2 GetCursorScreenPos(); // cursor position in absolute coordinates (prefer using this, also more useful to work with ImDrawList API). + IMGUI_API void SetCursorScreenPos(const ImVec2& pos); // cursor position in absolute coordinates + IMGUI_API ImVec2 GetCursorPos(); // [window-local] cursor position in window coordinates (relative to window position) + IMGUI_API float GetCursorPosX(); // [window-local] " + IMGUI_API float GetCursorPosY(); // [window-local] " + IMGUI_API void SetCursorPos(const ImVec2& local_pos); // [window-local] " + IMGUI_API void SetCursorPosX(float local_x); // [window-local] " + IMGUI_API void SetCursorPosY(float local_y); // [window-local] " + IMGUI_API ImVec2 GetCursorStartPos(); // [window-local] initial cursor position, in window coordinates + + // Other layout functions + IMGUI_API void Separator(); // separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator. + IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f); // call between widgets or groups to layout them horizontally. X position given in window coordinates. + IMGUI_API void NewLine(); // undo a SameLine() or force a new line when in a horizontal-layout context. + IMGUI_API void Spacing(); // add vertical spacing. + IMGUI_API void Dummy(const ImVec2& size); // add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into. + IMGUI_API void Indent(float indent_w = 0.0f); // move content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0 + IMGUI_API void Unindent(float indent_w = 0.0f); // move content position back to the left, by indent_w, or style.IndentSpacing if indent_w <= 0 + IMGUI_API void BeginGroup(); // lock horizontal starting position + IMGUI_API void EndGroup(); // unlock horizontal starting position + capture the whole group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) + IMGUI_API void AlignTextToFramePadding(); // vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item) + IMGUI_API float GetTextLineHeight(); // ~ FontSize + IMGUI_API float GetTextLineHeightWithSpacing(); // ~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text) + IMGUI_API float GetFrameHeight(); // ~ FontSize + style.FramePadding.y * 2 + IMGUI_API float GetFrameHeightWithSpacing(); // ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) + + // ID stack/scopes + // Read the FAQ (docs/FAQ.md or http://dearimgui.com/faq) for more details about how ID are handled in dear imgui. + // - Those questions are answered and impacted by understanding of the ID stack system: + // - "Q: Why is my widget not reacting when I click on it?" + // - "Q: How can I have widgets with an empty label?" + // - "Q: How can I have multiple widgets with the same label?" + // - Short version: ID are hashes of the entire ID stack. If you are creating widgets in a loop you most likely + // want to push a unique identifier (e.g. object pointer, loop index) to uniquely differentiate them. + // - You can also use the "Label##foobar" syntax within widget label to distinguish them from each others. + // - In this header file we use the "label"/"name" terminology to denote a string that will be displayed + used as an ID, + // whereas "str_id" denote a string that is only used as an ID and not normally displayed. + IMGUI_API void PushID(const char* str_id); // push string into the ID stack (will hash string). + IMGUI_API void PushID(const char* str_id_begin, const char* str_id_end); // push string into the ID stack (will hash string). + IMGUI_API void PushID(const void* ptr_id); // push pointer into the ID stack (will hash pointer). + IMGUI_API void PushID(int int_id); // push integer into the ID stack (will hash integer). + IMGUI_API void PopID(); // pop from the ID stack. + IMGUI_API ImGuiID GetID(const char* str_id); // calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself + IMGUI_API ImGuiID GetID(const char* str_id_begin, const char* str_id_end); + IMGUI_API ImGuiID GetID(const void* ptr_id); + + // Widgets: Text + IMGUI_API void TextUnformatted(const char* text, const char* text_end = NULL); // raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. + IMGUI_API void Text(const char* fmt, ...) IM_FMTARGS(1); // formatted text + IMGUI_API void TextV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void TextColored(const ImVec4& col, const char* fmt, ...) IM_FMTARGS(2); // shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor(); + IMGUI_API void TextColoredV(const ImVec4& col, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API void TextDisabled(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor(); + IMGUI_API void TextDisabledV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void TextWrapped(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize(). + IMGUI_API void TextWrappedV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void LabelText(const char* label, const char* fmt, ...) IM_FMTARGS(2); // display text+label aligned the same way as value+label widgets + IMGUI_API void LabelTextV(const char* label, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API void BulletText(const char* fmt, ...) IM_FMTARGS(1); // shortcut for Bullet()+Text() + IMGUI_API void BulletTextV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void SeparatorText(const char* label); // currently: formatted text with an horizontal line + + // Widgets: Main + // - Most widgets return true when the value has been changed or when pressed/selected + // - You may also use one of the many IsItemXXX functions (e.g. IsItemActive, IsItemHovered, etc.) to query widget state. + IMGUI_API bool Button(const char* label, const ImVec2& size = ImVec2(0, 0)); // button + IMGUI_API bool SmallButton(const char* label); // button with (FramePadding.y == 0) to easily embed within text + IMGUI_API bool InvisibleButton(const char* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0); // flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) + IMGUI_API bool ArrowButton(const char* str_id, ImGuiDir dir); // square button with an arrow shape + IMGUI_API bool Checkbox(const char* label, bool* v); + IMGUI_API bool CheckboxFlags(const char* label, int* flags, int flags_value); + IMGUI_API bool CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value); + IMGUI_API bool RadioButton(const char* label, bool active); // use with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; } + IMGUI_API bool RadioButton(const char* label, int* v, int v_button); // shortcut to handle the above pattern when value is an integer + IMGUI_API void ProgressBar(float fraction, const ImVec2& size_arg = ImVec2(-FLT_MIN, 0), const char* overlay = NULL); + IMGUI_API void Bullet(); // draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses + + // Widgets: Images + // - Read about ImTextureID here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + // - Note that ImageButton() adds style.FramePadding*2.0f to provided size. This is in order to facilitate fitting an image in a button. + IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& tint_col = ImVec4(1, 1, 1, 1), const ImVec4& border_col = ImVec4(0, 0, 0, 0)); + IMGUI_API bool ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& image_size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); + + // Widgets: Combo Box (Dropdown) + // - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items. + // - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. This is analogous to how ListBox are created. + IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags = 0); + IMGUI_API void EndCombo(); // only call EndCombo() if BeginCombo() returns true! + IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1); + IMGUI_API bool Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items = -1); // Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" + IMGUI_API bool Combo(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int popup_max_height_in_items = -1); + + // Widgets: Drag Sliders + // - CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. + // - For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every function, note that a 'float v[X]' function argument is the same as 'float* v', + // the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x + // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. + // - Format string may also be set to NULL or use the default format ("%f" or "%d"). + // - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision). + // - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits if ImGuiSliderFlags_AlwaysClamp is not used. + // - Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum. + // - We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. + // - Legacy: Pre-1.78 there are DragXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 + IMGUI_API bool DragFloat(const char* label, float* v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound + IMGUI_API bool DragFloat2(const char* label, float v[2], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloat3(const char* label, float v[3], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloat4(const char* label, float v[4], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", const char* format_max = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt(const char* label, int* v, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound + IMGUI_API bool DragInt2(const char* label, int v[2], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt3(const char* label, int v[3], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt4(const char* label, int v[4], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", const char* format_max = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed = 1.0f, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed = 1.0f, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); + + // Widgets: Regular Sliders + // - CTRL+Click on any slider to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. + // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. + // - Format string may also be set to NULL or use the default format ("%f" or "%d"). + // - Legacy: Pre-1.78 there are SliderXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 + IMGUI_API bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. + IMGUI_API bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderAngle(const char* label, float* v_rad, float v_degrees_min = -360.0f, float v_degrees_max = +360.0f, const char* format = "%.0f deg", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt(const char* label, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + + // Widgets: Input with Keyboard + // - If you want to use InputText() with std::string or any custom dynamic string type, see misc/cpp/imgui_stdlib.h and comments in imgui_demo.cpp. + // - Most of the ImGuiInputTextFlags flags are only useful for InputText() and not for InputFloatX, InputIntX, InputDouble etc. + IMGUI_API bool InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputFloat(const char* label, float* v, float step = 0.0f, float step_fast = 0.0f, const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat2(const char* label, float v[2], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat3(const char* label, float v[3], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat4(const char* label, float v[4], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt(const char* label, int* v, int step = 1, int step_fast = 100, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputDouble(const char* label, double* v, double step = 0.0, double step_fast = 0.0, const char* format = "%.6f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); + + // Widgets: Color Editor/Picker (tip: the ColorEdit* functions have a little color square that can be left-clicked to open a picker, and right-clicked to open an option menu.) + // - Note that in C++ a 'float v[X]' function argument is the _same_ as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. + // - You can pass the address of a first float element out of a contiguous structure, e.g. &myvector.x + IMGUI_API bool ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags = 0, const float* ref_col = NULL); + IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // display a color square/button, hover for details, return true when pressed. + IMGUI_API void SetColorEditOptions(ImGuiColorEditFlags flags); // initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls. + + // Widgets: Trees + // - TreeNode functions return true when the node is open, in which case you need to also call TreePop() when you are finished displaying the tree node contents. + IMGUI_API bool TreeNode(const char* label); + IMGUI_API bool TreeNode(const char* str_id, const char* fmt, ...) IM_FMTARGS(2); // helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). + IMGUI_API bool TreeNode(const void* ptr_id, const char* fmt, ...) IM_FMTARGS(2); // " + IMGUI_API bool TreeNodeV(const char* str_id, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API bool TreeNodeV(const void* ptr_id, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API bool TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags = 0); + IMGUI_API bool TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); + IMGUI_API bool TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); + IMGUI_API bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); + IMGUI_API bool TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); + IMGUI_API void TreePush(const char* str_id); // ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired. + IMGUI_API void TreePush(const void* ptr_id); // " + IMGUI_API void TreePop(); // ~ Unindent()+PopId() + IMGUI_API float GetTreeNodeToLabelSpacing(); // horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode + IMGUI_API bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0); // if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). + IMGUI_API bool CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags = 0); // when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. + IMGUI_API void SetNextItemOpen(bool is_open, ImGuiCond cond = 0); // set next TreeNode/CollapsingHeader open state. + + // Widgets: Selectables + // - A selectable highlights when hovered, and can display another color when selected. + // - Neighbors selectable extend their highlight bounds in order to leave no gap between them. This is so a series of selected Selectable appear contiguous. + IMGUI_API bool Selectable(const char* label, bool selected = false, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height + IMGUI_API bool Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // "bool* p_selected" point to the selection state (read-write), as a convenient helper. + + // Widgets: List Boxes + // - This is essentially a thin wrapper to using BeginChild/EndChild with some stylistic changes. + // - The BeginListBox()/EndListBox() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() or any items. + // - The simplified/old ListBox() api are helpers over BeginListBox()/EndListBox() which are kept available for convenience purpose. This is analoguous to how Combos are created. + // - Choose frame width: size.x > 0.0f: custom / size.x < 0.0f or -FLT_MIN: right-align / size.x = 0.0f (default): use current ItemWidth + // - Choose frame height: size.y > 0.0f: custom / size.y < 0.0f or -FLT_MIN: bottom-align / size.y = 0.0f (default): arbitrary default height which can fit ~7 items + IMGUI_API bool BeginListBox(const char* label, const ImVec2& size = ImVec2(0, 0)); // open a framed scrolling region + IMGUI_API void EndListBox(); // only call EndListBox() if BeginListBox() returned true! + IMGUI_API bool ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items = -1); + IMGUI_API bool ListBox(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int height_in_items = -1); + + // Widgets: Data Plotting + // - Consider using ImPlot (https://github.com/epezent/implot) which is much better! + IMGUI_API void PlotLines(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); + IMGUI_API void PlotLines(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); + IMGUI_API void PlotHistogram(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); + IMGUI_API void PlotHistogram(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); + + // Widgets: Value() Helpers. + // - Those are merely shortcut to calling Text() with a format string. Output single value in "name: value" format (tip: freely declare more in your code to handle your types. you can add functions to the ImGui namespace) + IMGUI_API void Value(const char* prefix, bool b); + IMGUI_API void Value(const char* prefix, int v); + IMGUI_API void Value(const char* prefix, unsigned int v); + IMGUI_API void Value(const char* prefix, float v, const char* float_format = NULL); + + // Widgets: Menus + // - Use BeginMenuBar() on a window ImGuiWindowFlags_MenuBar to append to its menu bar. + // - Use BeginMainMenuBar() to create a menu bar at the top of the screen and append to it. + // - Use BeginMenu() to create a menu. You can call BeginMenu() multiple time with the same identifier to append more items to it. + // - Not that MenuItem() keyboardshortcuts are displayed as a convenience but _not processed_ by Dear ImGui at the moment. + IMGUI_API bool BeginMenuBar(); // append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window). + IMGUI_API void EndMenuBar(); // only call EndMenuBar() if BeginMenuBar() returns true! + IMGUI_API bool BeginMainMenuBar(); // create and append to a full screen menu-bar. + IMGUI_API void EndMainMenuBar(); // only call EndMainMenuBar() if BeginMainMenuBar() returns true! + IMGUI_API bool BeginMenu(const char* label, bool enabled = true); // create a sub-menu entry. only call EndMenu() if this returns true! + IMGUI_API void EndMenu(); // only call EndMenu() if BeginMenu() returns true! + IMGUI_API bool MenuItem(const char* label, const char* shortcut = NULL, bool selected = false, bool enabled = true); // return true when activated. + IMGUI_API bool MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled = true); // return true when activated + toggle (*p_selected) if p_selected != NULL + + // Tooltips + // - Tooltips are windows following the mouse. They do not take focus away. + // - A tooltip window can contain items of any types. SetTooltip() is a shortcut for the 'if (BeginTooltip()) { Text(...); EndTooltip(); }' idiom. + IMGUI_API bool BeginTooltip(); // begin/append a tooltip window. + IMGUI_API void EndTooltip(); // only call EndTooltip() if BeginTooltip()/BeginItemTooltip() returns true! + IMGUI_API void SetTooltip(const char* fmt, ...) IM_FMTARGS(1); // set a text-only tooltip. Often used after a ImGui::IsItemHovered() check. Override any previous call to SetTooltip(). + IMGUI_API void SetTooltipV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Tooltips: helpers for showing a tooltip when hovering an item + // - BeginItemTooltip() is a shortcut for the 'if (IsItemHovered(ImGuiHoveredFlags_ForTooltip) && BeginTooltip())' idiom. + // - SetItemTooltip() is a shortcut for the 'if (IsItemHovered(ImGuiHoveredFlags_ForTooltip)) { SetTooltip(...); }' idiom. + // - Where 'ImGuiHoveredFlags_ForTooltip' itself is a shortcut to use 'style.HoverFlagsForTooltipMouse' or 'style.HoverFlagsForTooltipNav' depending on active input type. For mouse it defaults to 'ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort'. + IMGUI_API bool BeginItemTooltip(); // begin/append a tooltip window if preceding item was hovered. + IMGUI_API void SetItemTooltip(const char* fmt, ...) IM_FMTARGS(1); // set a text-only tooltip if preceeding item was hovered. override any previous call to SetTooltip(). + IMGUI_API void SetItemTooltipV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Popups, Modals + // - They block normal mouse hovering detection (and therefore most mouse interactions) behind them. + // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - Their visibility state (~bool) is held internally instead of being held by the programmer as we are used to with regular Begin*() calls. + // - The 3 properties above are related: we need to retain popup visibility state in the library because popups may be closed as any time. + // - You can bypass the hovering restriction by using ImGuiHoveredFlags_AllowWhenBlockedByPopup when calling IsItemHovered() or IsWindowHovered(). + // - IMPORTANT: Popup identifiers are relative to the current ID stack, so OpenPopup and BeginPopup generally needs to be at the same level of the stack. + // This is sometimes leading to confusing mistakes. May rework this in the future. + + // Popups: begin/end functions + // - BeginPopup(): query popup state, if open start appending into the window. Call EndPopup() afterwards. ImGuiWindowFlags are forwarded to the window. + // - BeginPopupModal(): block every interaction behind the window, cannot be closed by user, add a dimming background, has a title bar. + IMGUI_API bool BeginPopup(const char* str_id, ImGuiWindowFlags flags = 0); // return true if the popup is open, and you can start outputting to it. + IMGUI_API bool BeginPopupModal(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); // return true if the modal is open, and you can start outputting to it. + IMGUI_API void EndPopup(); // only call EndPopup() if BeginPopupXXX() returns true! + + // Popups: open/close functions + // - OpenPopup(): set popup state to open. ImGuiPopupFlags are available for opening options. + // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - CloseCurrentPopup(): use inside the BeginPopup()/EndPopup() scope to close manually. + // - CloseCurrentPopup() is called by default by Selectable()/MenuItem() when activated (FIXME: need some options). + // - Use ImGuiPopupFlags_NoOpenOverExistingPopup to avoid opening a popup if there's already one at the same level. This is equivalent to e.g. testing for !IsAnyPopupOpen() prior to OpenPopup(). + // - Use IsWindowAppearing() after BeginPopup() to tell if a window just opened. + // - IMPORTANT: Notice that for OpenPopupOnItemClick() we exceptionally default flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter + IMGUI_API void OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags = 0); // call to mark popup as open (don't call every frame!). + IMGUI_API void OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags = 0); // id overload to facilitate calling from nested stacks + IMGUI_API void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) + IMGUI_API void CloseCurrentPopup(); // manually close the popup we have begin-ed into. + + // Popups: open+begin combined functions helpers + // - Helpers to do OpenPopup+BeginPopup where the Open action is triggered by e.g. hovering an item and right-clicking. + // - They are convenient to easily create context menus, hence the name. + // - IMPORTANT: Notice that BeginPopupContextXXX takes ImGuiPopupFlags just like OpenPopup() and unlike BeginPopup(). For full consistency, we may add ImGuiWindowFlags to the BeginPopupContextXXX functions in the future. + // - IMPORTANT: Notice that we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight. + IMGUI_API bool BeginPopupContextItem(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! + IMGUI_API bool BeginPopupContextWindow(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);// open+begin popup when clicked on current window. + IMGUI_API bool BeginPopupContextVoid(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked in void (where there are no windows). + + // Popups: query functions + // - IsPopupOpen(): return true if the popup is open at the current BeginPopup() level of the popup stack. + // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId: return true if any popup is open at the current BeginPopup() level of the popup stack. + // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId + ImGuiPopupFlags_AnyPopupLevel: return true if any popup is open. + IMGUI_API bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0); // return true if the popup is open. + + // Tables + // - Full-featured replacement for old Columns API. + // - See Demo->Tables for demo code. See top of imgui_tables.cpp for general commentary. + // - See ImGuiTableFlags_ and ImGuiTableColumnFlags_ enums for a description of available flags. + // The typical call flow is: + // - 1. Call BeginTable(), early out if returning false. + // - 2. Optionally call TableSetupColumn() to submit column name/flags/defaults. + // - 3. Optionally call TableSetupScrollFreeze() to request scroll freezing of columns/rows. + // - 4. Optionally call TableHeadersRow() to submit a header row. Names are pulled from TableSetupColumn() data. + // - 5. Populate contents: + // - In most situations you can use TableNextRow() + TableSetColumnIndex(N) to start appending into a column. + // - If you are using tables as a sort of grid, where every column is holding the same type of contents, + // you may prefer using TableNextColumn() instead of TableNextRow() + TableSetColumnIndex(). + // TableNextColumn() will automatically wrap-around into the next row if needed. + // - IMPORTANT: Comparatively to the old Columns() API, we need to call TableNextColumn() for the first column! + // - Summary of possible call flow: + // -------------------------------------------------------------------------------------------------------- + // TableNextRow() -> TableSetColumnIndex(0) -> Text("Hello 0") -> TableSetColumnIndex(1) -> Text("Hello 1") // OK + // TableNextRow() -> TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1") // OK + // TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1") // OK: TableNextColumn() automatically gets to next row! + // TableNextRow() -> Text("Hello 0") // Not OK! Missing TableSetColumnIndex() or TableNextColumn()! Text will not appear! + // -------------------------------------------------------------------------------------------------------- + // - 5. Call EndTable() + IMGUI_API bool BeginTable(const char* str_id, int column, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0.0f, 0.0f), float inner_width = 0.0f); + IMGUI_API void EndTable(); // only call EndTable() if BeginTable() returns true! + IMGUI_API void TableNextRow(ImGuiTableRowFlags row_flags = 0, float min_row_height = 0.0f); // append into the first cell of a new row. + IMGUI_API bool TableNextColumn(); // append into the next column (or first column of next row if currently in last column). Return true when column is visible. + IMGUI_API bool TableSetColumnIndex(int column_n); // append into the specified column. Return true when column is visible. + + // Tables: Headers & Columns declaration + // - Use TableSetupColumn() to specify label, resizing policy, default width/weight, id, various other flags etc. + // - Use TableHeadersRow() to create a header row and automatically submit a TableHeader() for each column. + // Headers are required to perform: reordering, sorting, and opening the context menu. + // The context menu can also be made available in columns body using ImGuiTableFlags_ContextMenuInBody. + // - You may manually submit headers using TableNextRow() + TableHeader() calls, but this is only useful in + // some advanced use cases (e.g. adding custom widgets in header row). + // - Use TableSetupScrollFreeze() to lock columns/rows so they stay visible when scrolled. + IMGUI_API void TableSetupColumn(const char* label, ImGuiTableColumnFlags flags = 0, float init_width_or_weight = 0.0f, ImGuiID user_id = 0); + IMGUI_API void TableSetupScrollFreeze(int cols, int rows); // lock columns/rows so they stay visible when scrolled. + IMGUI_API void TableHeader(const char* label); // submit one header cell manually (rarely used) + IMGUI_API void TableHeadersRow(); // submit a row with headers cells based on data provided to TableSetupColumn() + submit context menu + IMGUI_API void TableAngledHeadersRow(); // submit a row with angled headers for every column with the ImGuiTableColumnFlags_AngledHeader flag. MUST BE FIRST ROW. + + // Tables: Sorting & Miscellaneous functions + // - Sorting: call TableGetSortSpecs() to retrieve latest sort specs for the table. NULL when not sorting. + // When 'sort_specs->SpecsDirty == true' you should sort your data. It will be true when sorting specs have + // changed since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, + // else you may wastefully sort your data every frame! + // - Functions args 'int column_n' treat the default value of -1 as the same as passing the current column index. + IMGUI_API ImGuiTableSortSpecs* TableGetSortSpecs(); // get latest sort specs for the table (NULL if not sorting). Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable(). + IMGUI_API int TableGetColumnCount(); // return number of columns (value passed to BeginTable) + IMGUI_API int TableGetColumnIndex(); // return current column index. + IMGUI_API int TableGetRowIndex(); // return current row index. + IMGUI_API const char* TableGetColumnName(int column_n = -1); // return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column. + IMGUI_API ImGuiTableColumnFlags TableGetColumnFlags(int column_n = -1); // return column flags so you can query their Enabled/Visible/Sorted/Hovered status flags. Pass -1 to use current column. + IMGUI_API void TableSetColumnEnabled(int column_n, bool v);// change user accessible enabled/disabled state of a column. Set to false to hide the column. User can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody) + IMGUI_API void TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n = -1); // change the color of a cell, row, or column. See ImGuiTableBgTarget_ flags for details. + + // Legacy Columns API (prefer using Tables!) + // - You can also use SameLine(pos_x) to mimic simplified columns. + IMGUI_API void Columns(int count = 1, const char* id = NULL, bool border = true); + IMGUI_API void NextColumn(); // next column, defaults to current row or next row if the current row is finished + IMGUI_API int GetColumnIndex(); // get current column index + IMGUI_API float GetColumnWidth(int column_index = -1); // get column width (in pixels). pass -1 to use current column + IMGUI_API void SetColumnWidth(int column_index, float width); // set column width (in pixels). pass -1 to use current column + IMGUI_API float GetColumnOffset(int column_index = -1); // get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f + IMGUI_API void SetColumnOffset(int column_index, float offset_x); // set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column + IMGUI_API int GetColumnsCount(); + + // Tab Bars, Tabs + // - Note: Tabs are automatically created by the docking system (when in 'docking' branch). Use this to create tab bars/tabs yourself. + IMGUI_API bool BeginTabBar(const char* str_id, ImGuiTabBarFlags flags = 0); // create and append into a TabBar + IMGUI_API void EndTabBar(); // only call EndTabBar() if BeginTabBar() returns true! + IMGUI_API bool BeginTabItem(const char* label, bool* p_open = NULL, ImGuiTabItemFlags flags = 0); // create a Tab. Returns true if the Tab is selected. + IMGUI_API void EndTabItem(); // only call EndTabItem() if BeginTabItem() returns true! + IMGUI_API bool TabItemButton(const char* label, ImGuiTabItemFlags flags = 0); // create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. + IMGUI_API void SetTabItemClosed(const char* tab_or_docked_window_label); // notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name. + + // Docking + // [BETA API] Enable with io.ConfigFlags |= ImGuiConfigFlags_DockingEnable. + // Note: You can use most Docking facilities without calling any API. You DO NOT need to call DockSpace() to use Docking! + // - Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking. + // - Drag from window menu button (upper-left button) to undock an entire node (all windows). + // - When io.ConfigDockingWithShift == true, you instead need to hold SHIFT to enable docking. + // About dockspaces: + // - Use DockSpaceOverViewport() to create an explicit dock node covering the screen or a specific viewport. + // This is often used with ImGuiDockNodeFlags_PassthruCentralNode to make it transparent. + // - Use DockSpace() to create an explicit dock node _within_ an existing window. See Docking demo for details. + // - Important: Dockspaces need to be submitted _before_ any window they can host. Submit it early in your frame! + // - Important: Dockspaces need to be kept alive if hidden, otherwise windows docked into it will be undocked. + // e.g. if you have multiple tabs with a dockspace inside each tab: submit the non-visible dockspaces with ImGuiDockNodeFlags_KeepAliveOnly. + IMGUI_API ImGuiID DockSpace(ImGuiID id, const ImVec2& size = ImVec2(0, 0), ImGuiDockNodeFlags flags = 0, const ImGuiWindowClass* window_class = NULL); + IMGUI_API ImGuiID DockSpaceOverViewport(const ImGuiViewport* viewport = NULL, ImGuiDockNodeFlags flags = 0, const ImGuiWindowClass* window_class = NULL); + IMGUI_API void SetNextWindowDockID(ImGuiID dock_id, ImGuiCond cond = 0); // set next window dock id + IMGUI_API void SetNextWindowClass(const ImGuiWindowClass* window_class); // set next window class (control docking compatibility + provide hints to platform backend via custom viewport flags and platform parent/child relationship) + IMGUI_API ImGuiID GetWindowDockID(); + IMGUI_API bool IsWindowDocked(); // is current window docked into another window? + + // Logging/Capture + // - All text output from the interface can be captured into tty/file/clipboard. By default, tree nodes are automatically opened during logging. + IMGUI_API void LogToTTY(int auto_open_depth = -1); // start logging to tty (stdout) + IMGUI_API void LogToFile(int auto_open_depth = -1, const char* filename = NULL); // start logging to file + IMGUI_API void LogToClipboard(int auto_open_depth = -1); // start logging to OS clipboard + IMGUI_API void LogFinish(); // stop logging (close file, etc.) + IMGUI_API void LogButtons(); // helper to display buttons for logging to tty/file/clipboard + IMGUI_API void LogText(const char* fmt, ...) IM_FMTARGS(1); // pass text data straight to log (without being displayed) + IMGUI_API void LogTextV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Drag and Drop + // - On source items, call BeginDragDropSource(), if it returns true also call SetDragDropPayload() + EndDragDropSource(). + // - On target candidates, call BeginDragDropTarget(), if it returns true also call AcceptDragDropPayload() + EndDragDropTarget(). + // - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip, see #1725) + // - An item can be both drag source and drop target. + IMGUI_API bool BeginDragDropSource(ImGuiDragDropFlags flags = 0); // call after submitting an item which may be dragged. when this return true, you can call SetDragDropPayload() + EndDragDropSource() + IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0); // type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. + IMGUI_API void EndDragDropSource(); // only call EndDragDropSource() if BeginDragDropSource() returns true! + IMGUI_API bool BeginDragDropTarget(); // call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget() + IMGUI_API const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0); // accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. + IMGUI_API void EndDragDropTarget(); // only call EndDragDropTarget() if BeginDragDropTarget() returns true! + IMGUI_API const ImGuiPayload* GetDragDropPayload(); // peek directly into the current payload from anywhere. returns NULL when drag and drop is finished or inactive. use ImGuiPayload::IsDataType() to test for the payload type. + + // Disabling [BETA API] + // - Disable all user interactions and dim items visuals (applying style.DisabledAlpha over current colors) + // - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled) + // - BeginDisabled(false) essentially does nothing useful but is provided to facilitate use of boolean expressions. If you can avoid calling BeginDisabled(False)/EndDisabled() best to avoid it. + IMGUI_API void BeginDisabled(bool disabled = true); + IMGUI_API void EndDisabled(); + + // Clipping + // - Mouse hovering is affected by ImGui::PushClipRect() calls, unlike direct calls to ImDrawList::PushClipRect() which are render only. + IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect); + IMGUI_API void PopClipRect(); + + // Focus, Activation + // - Prefer using "SetItemDefaultFocus()" over "if (IsWindowAppearing()) SetScrollHereY()" when applicable to signify "this is the default item" + IMGUI_API void SetItemDefaultFocus(); // make last item the default focused item of a window. + IMGUI_API void SetKeyboardFocusHere(int offset = 0); // focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. + + // Overlapping mode + IMGUI_API void SetNextItemAllowOverlap(); // allow next item to be overlapped by a subsequent item. Useful with invisible buttons, selectable, treenode covering an area where subsequent items may need to be added. Note that both Selectable() and TreeNode() have dedicated flags doing this. + + // Item/Widgets Utilities and Query Functions + // - Most of the functions are referring to the previous Item that has been submitted. + // - See Demo Window under "Widgets->Querying Status" for an interactive visualization of most of those functions. + IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags = 0); // is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. + IMGUI_API bool IsItemActive(); // is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false) + IMGUI_API bool IsItemFocused(); // is the last item focused for keyboard/gamepad navigation? + IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); // is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this is NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. + IMGUI_API bool IsItemVisible(); // is the last item visible? (items may be out of sight because of clipping/scrolling) + IMGUI_API bool IsItemEdited(); // did the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets. + IMGUI_API bool IsItemActivated(); // was the last item just made active (item was previously inactive). + IMGUI_API bool IsItemDeactivated(); // was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that require continuous editing. + IMGUI_API bool IsItemDeactivatedAfterEdit(); // was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item). + IMGUI_API bool IsItemToggledOpen(); // was the last item open state toggled? set by TreeNode(). + IMGUI_API bool IsAnyItemHovered(); // is any item hovered? + IMGUI_API bool IsAnyItemActive(); // is any item active? + IMGUI_API bool IsAnyItemFocused(); // is any item focused? + IMGUI_API ImGuiID GetItemID(); // get ID of last item (~~ often same ImGui::GetID(label) beforehand) + IMGUI_API ImVec2 GetItemRectMin(); // get upper-left bounding rectangle of the last item (screen space) + IMGUI_API ImVec2 GetItemRectMax(); // get lower-right bounding rectangle of the last item (screen space) + IMGUI_API ImVec2 GetItemRectSize(); // get size of last item + + // Viewports + // - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. + // - In 'docking' branch with multi-viewport enabled, we extend this concept to have multiple active viewports. + // - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. + IMGUI_API ImGuiViewport* GetMainViewport(); // return primary/default viewport. This can never be NULL. + + // Background/Foreground Draw Lists + IMGUI_API ImDrawList* GetBackgroundDrawList(); // get background draw list for the viewport associated to the current window. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(); // get foreground draw list for the viewport associated to the current window. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + IMGUI_API ImDrawList* GetBackgroundDrawList(ImGuiViewport* viewport); // get background draw list for the given viewport. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport); // get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + + // Miscellaneous Utilities + IMGUI_API bool IsRectVisible(const ImVec2& size); // test if rectangle (of given size, starting from cursor position) is visible / not clipped. + IMGUI_API bool IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max); // test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side. + IMGUI_API double GetTime(); // get global imgui time. incremented by io.DeltaTime every frame. + IMGUI_API int GetFrameCount(); // get global imgui frame count. incremented by 1 every frame. + IMGUI_API ImDrawListSharedData* GetDrawListSharedData(); // you may use this when creating your own ImDrawList instances. + IMGUI_API const char* GetStyleColorName(ImGuiCol idx); // get a string corresponding to the enum value (for display, saving, etc.). + IMGUI_API void SetStateStorage(ImGuiStorage* storage); // replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it) + IMGUI_API ImGuiStorage* GetStateStorage(); + IMGUI_API bool BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags flags = 0); // helper to create a child window / scrolling region that looks like a normal widget frame + IMGUI_API void EndChildFrame(); // always call EndChildFrame() regardless of BeginChildFrame() return values (which indicates a collapsed/clipped window) + + // Text Utilities + IMGUI_API ImVec2 CalcTextSize(const char* text, const char* text_end = NULL, bool hide_text_after_double_hash = false, float wrap_width = -1.0f); + + // Color Utilities + IMGUI_API ImVec4 ColorConvertU32ToFloat4(ImU32 in); + IMGUI_API ImU32 ColorConvertFloat4ToU32(const ImVec4& in); + IMGUI_API void ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v); + IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b); + + // Inputs Utilities: Keyboard/Mouse/Gamepad + // - the ImGuiKey enum contains all possible keyboard, mouse and gamepad inputs (e.g. ImGuiKey_A, ImGuiKey_MouseLeft, ImGuiKey_GamepadDpadUp...). + // - before v1.87, we used ImGuiKey to carry native/user indices as defined by each backends. About use of those legacy ImGuiKey values: + // - without IMGUI_DISABLE_OBSOLETE_KEYIO (legacy support): you can still use your legacy native/user indices (< 512) according to how your backend/engine stored them in io.KeysDown[], but need to cast them to ImGuiKey. + // - with IMGUI_DISABLE_OBSOLETE_KEYIO (this is the way forward): any use of ImGuiKey will assert with key < 512. GetKeyIndex() is pass-through and therefore deprecated (gone if IMGUI_DISABLE_OBSOLETE_KEYIO is defined). + IMGUI_API bool IsKeyDown(ImGuiKey key); // is key being held. + IMGUI_API bool IsKeyPressed(ImGuiKey key, bool repeat = true); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate + IMGUI_API bool IsKeyReleased(ImGuiKey key); // was key released (went from Down to !Down)? + IMGUI_API int GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate); // uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate + IMGUI_API const char* GetKeyName(ImGuiKey key); // [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared. + IMGUI_API void SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); // Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard"; after the next NewFrame() call. + + // Inputs Utilities: Mouse specific + // - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right. + // - You can also use regular integer: it is forever guaranteed that 0=Left, 1=Right, 2=Middle. + // - Dragging operations are only reported after mouse has moved a certain distance away from the initial clicking position (see 'lock_threshold' and 'io.MouseDraggingThreshold') + IMGUI_API bool IsMouseDown(ImGuiMouseButton button); // is mouse button held? + IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, bool repeat = false); // did mouse button clicked? (went from !Down to Down). Same as GetMouseClickedCount() == 1. + IMGUI_API bool IsMouseReleased(ImGuiMouseButton button); // did mouse button released? (went from Down to !Down) + IMGUI_API bool IsMouseDoubleClicked(ImGuiMouseButton button); // did mouse button double-clicked? Same as GetMouseClickedCount() == 2. (note that a double-click will also report IsMouseClicked() == true) + IMGUI_API int GetMouseClickedCount(ImGuiMouseButton button); // return the number of successive mouse-clicks at the time where a click happen (otherwise 0). + IMGUI_API bool IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip = true);// is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. + IMGUI_API bool IsMousePosValid(const ImVec2* mouse_pos = NULL); // by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available + IMGUI_API bool IsAnyMouseDown(); // [WILL OBSOLETE] is any mouse button held? This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. + IMGUI_API ImVec2 GetMousePos(); // shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls + IMGUI_API ImVec2 GetMousePosOnOpeningCurrentPopup(); // retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves) + IMGUI_API bool IsMouseDragging(ImGuiMouseButton button, float lock_threshold = -1.0f); // is mouse dragging? (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) + IMGUI_API ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0, float lock_threshold = -1.0f); // return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) + IMGUI_API void ResetMouseDragDelta(ImGuiMouseButton button = 0); // + IMGUI_API ImGuiMouseCursor GetMouseCursor(); // get desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you + IMGUI_API void SetMouseCursor(ImGuiMouseCursor cursor_type); // set desired mouse cursor shape + IMGUI_API void SetNextFrameWantCaptureMouse(bool want_capture_mouse); // Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instucts your app to ignore inputs). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse;" after the next NewFrame() call. + + // Clipboard Utilities + // - Also see the LogToClipboard() function to capture GUI into clipboard, or easily output text data to the clipboard. + IMGUI_API const char* GetClipboardText(); + IMGUI_API void SetClipboardText(const char* text); + + // Settings/.Ini Utilities + // - The disk functions are automatically called if io.IniFilename != NULL (default is "imgui.ini"). + // - Set io.IniFilename to NULL to load/save manually. Read io.WantSaveIniSettings description about handling .ini saving manually. + // - Important: default value "imgui.ini" is relative to current working dir! Most apps will want to lock this to an absolute path (e.g. same path as executables). + IMGUI_API void LoadIniSettingsFromDisk(const char* ini_filename); // call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename). + IMGUI_API void LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size=0); // call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. + IMGUI_API void SaveIniSettingsToDisk(const char* ini_filename); // this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext). + IMGUI_API const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL); // return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. + + // Debug Utilities + IMGUI_API void DebugTextEncoding(const char* text); + 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); // This is called by IMGUI_CHECKVERSION() macro. + + // Memory Allocators + // - Those functions are not reliant on the current context. + // - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() + // for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details. + IMGUI_API void SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data = NULL); + IMGUI_API void GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data); + IMGUI_API void* MemAlloc(size_t size); + IMGUI_API void MemFree(void* ptr); + + // (Optional) Platform/OS interface for multi-viewport support + // Read comments around the ImGuiPlatformIO structure for more details. + // Note: You may use GetWindowViewport() to get the current viewport of the current window. + IMGUI_API ImGuiPlatformIO& GetPlatformIO(); // platform/renderer functions, for backend to setup + viewports list. + IMGUI_API void UpdatePlatformWindows(); // call in main loop. will call CreateWindow/ResizeWindow/etc. platform functions for each secondary viewport, and DestroyWindow for each inactive viewport. + IMGUI_API void RenderPlatformWindowsDefault(void* platform_render_arg = NULL, void* renderer_render_arg = NULL); // call in main loop. will call RenderWindow/SwapBuffers platform functions for each secondary viewport which doesn't have the ImGuiViewportFlags_Minimized flag set. May be reimplemented by user for custom rendering needs. + IMGUI_API void DestroyPlatformWindows(); // call DestroyWindow platform functions for all viewports. call from backend Shutdown() if you need to close platform windows before imgui shutdown. otherwise will be called by DestroyContext(). + IMGUI_API ImGuiViewport* FindViewportByID(ImGuiID id); // this is a helper for backends. + IMGUI_API ImGuiViewport* FindViewportByPlatformHandle(void* platform_handle); // this is a helper for backends. the type platform_handle is decided by the backend (e.g. HWND, MyWindow*, GLFWwindow* etc.) + +} // namespace ImGui + +//----------------------------------------------------------------------------- +// [SECTION] Flags & Enumerations +//----------------------------------------------------------------------------- + +// Flags for ImGui::Begin() +// (Those are per-window flags. There are shared flags in ImGuiIO: io.ConfigWindowsResizeFromEdges and io.ConfigWindowsMoveFromTitleBarOnly) +enum ImGuiWindowFlags_ +{ + ImGuiWindowFlags_None = 0, + ImGuiWindowFlags_NoTitleBar = 1 << 0, // Disable title-bar + ImGuiWindowFlags_NoResize = 1 << 1, // Disable user resizing with the lower-right grip + ImGuiWindowFlags_NoMove = 1 << 2, // Disable user moving the window + ImGuiWindowFlags_NoScrollbar = 1 << 3, // Disable scrollbars (window can still scroll with mouse or programmatically) + ImGuiWindowFlags_NoScrollWithMouse = 1 << 4, // Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set. + ImGuiWindowFlags_NoCollapse = 1 << 5, // Disable user collapsing window by double-clicking on it. Also referred to as Window Menu Button (e.g. within a docking node). + ImGuiWindowFlags_AlwaysAutoResize = 1 << 6, // Resize every window to its content every frame + ImGuiWindowFlags_NoBackground = 1 << 7, // Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f). + ImGuiWindowFlags_NoSavedSettings = 1 << 8, // Never load/save settings in .ini file + ImGuiWindowFlags_NoMouseInputs = 1 << 9, // Disable catching mouse, hovering test with pass through. + ImGuiWindowFlags_MenuBar = 1 << 10, // Has a menu-bar + ImGuiWindowFlags_HorizontalScrollbar = 1 << 11, // Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section. + ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12, // Disable taking focus when transitioning from hidden to visible state + ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13, // Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus) + ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14, // Always show vertical scrollbar (even if ContentSize.y < Size.y) + ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15, // Always show horizontal scrollbar (even if ContentSize.x < Size.x) + ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16, // Ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windows, because more convenient) + ImGuiWindowFlags_NoNavInputs = 1 << 18, // No gamepad/keyboard navigation within the window + ImGuiWindowFlags_NoNavFocus = 1 << 19, // No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB) + ImGuiWindowFlags_UnsavedDocument = 1 << 20, // Display a dot next to the title. When used in a tab/docking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + ImGuiWindowFlags_NoDocking = 1 << 21, // Disable docking of this window + + ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, + ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + + // [Internal] + ImGuiWindowFlags_NavFlattened = 1 << 23, // [BETA] On child window: allow gamepad/keyboard navigation to cross over parent border to this child or between sibling child windows. + ImGuiWindowFlags_ChildWindow = 1 << 24, // Don't use! For internal use by BeginChild() + ImGuiWindowFlags_Tooltip = 1 << 25, // Don't use! For internal use by BeginTooltip() + ImGuiWindowFlags_Popup = 1 << 26, // Don't use! For internal use by BeginPopup() + ImGuiWindowFlags_Modal = 1 << 27, // Don't use! For internal use by BeginPopupModal() + ImGuiWindowFlags_ChildMenu = 1 << 28, // Don't use! For internal use by BeginMenu() + ImGuiWindowFlags_DockNodeHost = 1 << 29, // Don't use! For internal use by Begin()/NewFrame() +}; + +// Flags for ImGui::InputText() +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigInputTextCursorBlink and io.ConfigInputTextEnterKeepActive) +enum ImGuiInputTextFlags_ +{ + ImGuiInputTextFlags_None = 0, + ImGuiInputTextFlags_CharsDecimal = 1 << 0, // Allow 0123456789.+-*/ + ImGuiInputTextFlags_CharsHexadecimal = 1 << 1, // Allow 0123456789ABCDEFabcdef + ImGuiInputTextFlags_CharsUppercase = 1 << 2, // Turn a..z into A..Z + ImGuiInputTextFlags_CharsNoBlank = 1 << 3, // Filter out spaces, tabs + ImGuiInputTextFlags_AutoSelectAll = 1 << 4, // Select entire text when first taking mouse focus + ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5, // Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function. + ImGuiInputTextFlags_CallbackCompletion = 1 << 6, // Callback on pressing TAB (for completion handling) + ImGuiInputTextFlags_CallbackHistory = 1 << 7, // Callback on pressing Up/Down arrows (for history handling) + ImGuiInputTextFlags_CallbackAlways = 1 << 8, // Callback on each iteration. User code may query cursor position, modify text buffer. + ImGuiInputTextFlags_CallbackCharFilter = 1 << 9, // Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. + ImGuiInputTextFlags_AllowTabInput = 1 << 10, // Pressing TAB input a '\t' character into the text field + ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, // In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter). + ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12, // Disable following the cursor horizontally + ImGuiInputTextFlags_AlwaysOverwrite = 1 << 13, // Overwrite mode + ImGuiInputTextFlags_ReadOnly = 1 << 14, // Read-only mode + ImGuiInputTextFlags_Password = 1 << 15, // Password mode, display all characters as '*' + ImGuiInputTextFlags_NoUndoRedo = 1 << 16, // Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID(). + ImGuiInputTextFlags_CharsScientific = 1 << 17, // Allow 0123456789.+-*/eE (Scientific notation input) + ImGuiInputTextFlags_CallbackResize = 1 << 18, // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this) + ImGuiInputTextFlags_CallbackEdit = 1 << 19, // Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) + ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, // Escape key clears content if not empty, and deactivate otherwise (contrast to default behavior of Escape to revert) + + // Obsolete names + //ImGuiInputTextFlags_AlwaysInsertMode = ImGuiInputTextFlags_AlwaysOverwrite // [renamed in 1.82] name was not matching behavior +}; + +// Flags for ImGui::TreeNodeEx(), ImGui::CollapsingHeader*() +enum ImGuiTreeNodeFlags_ +{ + ImGuiTreeNodeFlags_None = 0, + ImGuiTreeNodeFlags_Selected = 1 << 0, // Draw as selected + ImGuiTreeNodeFlags_Framed = 1 << 1, // Draw frame with background (e.g. for CollapsingHeader) + ImGuiTreeNodeFlags_AllowOverlap = 1 << 2, // Hit testing to allow subsequent widgets to overlap this one + ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3, // Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack + ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4, // Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes) + ImGuiTreeNodeFlags_DefaultOpen = 1 << 5, // Default node to be open + ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6, // Need double-click to open node + ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7, // Only open when clicking on the arrow part. If ImGuiTreeNodeFlags_OpenOnDoubleClick is also set, single-click arrow or double-click all box to open. + ImGuiTreeNodeFlags_Leaf = 1 << 8, // No collapsing, no arrow (use as a convenience for leaf nodes). + ImGuiTreeNodeFlags_Bullet = 1 << 9, // Display a bullet instead of arrow. IMPORTANT: node can still be marked open/close if you don't set the _Leaf flag! + ImGuiTreeNodeFlags_FramePadding = 1 << 10, // Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding(). + ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, // Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line. In the future we may refactor the hit system to be front-to-back, allowing natural overlaps and then this can become the default. + ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, // Extend hit box to the left-most and right-most edges (bypass the indented area). + ImGuiTreeNodeFlags_SpanAllColumns = 1 << 13, // Frame will span all columns of its container table (text will still fit in current column) + ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 14, // (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop) + //ImGuiTreeNodeFlags_NoScrollOnOpen = 1 << 14, // FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiTreeNodeFlags_AllowItemOverlap = ImGuiTreeNodeFlags_AllowOverlap, // Renamed in 1.89.7 +#endif +}; + +// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions. +// - To be backward compatible with older API which took an 'int mouse_button = 1' argument, we need to treat +// small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags. +// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags. +// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0. +// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter +// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly. +// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later). +enum ImGuiPopupFlags_ +{ + ImGuiPopupFlags_None = 0, + ImGuiPopupFlags_MouseButtonLeft = 0, // For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left) + ImGuiPopupFlags_MouseButtonRight = 1, // For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right) + ImGuiPopupFlags_MouseButtonMiddle = 2, // For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle) + ImGuiPopupFlags_MouseButtonMask_ = 0x1F, + ImGuiPopupFlags_MouseButtonDefault_ = 1, + ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 5, // For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack + ImGuiPopupFlags_NoOpenOverItems = 1 << 6, // For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space + ImGuiPopupFlags_AnyPopupId = 1 << 7, // For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup. + ImGuiPopupFlags_AnyPopupLevel = 1 << 8, // For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level) + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, +}; + +// Flags for ImGui::Selectable() +enum ImGuiSelectableFlags_ +{ + ImGuiSelectableFlags_None = 0, + ImGuiSelectableFlags_DontClosePopups = 1 << 0, // Clicking this doesn't close parent popup window + ImGuiSelectableFlags_SpanAllColumns = 1 << 1, // Frame will span all columns of its container table (text will still fit in current column) + ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, // Generate press events on double clicks too + ImGuiSelectableFlags_Disabled = 1 << 3, // Cannot be selected, display grayed out text + ImGuiSelectableFlags_AllowOverlap = 1 << 4, // (WIP) Hit testing to allow subsequent widgets to overlap this one + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiSelectableFlags_AllowItemOverlap = ImGuiSelectableFlags_AllowOverlap, // Renamed in 1.89.7 +#endif +}; + +// Flags for ImGui::BeginCombo() +enum ImGuiComboFlags_ +{ + ImGuiComboFlags_None = 0, + ImGuiComboFlags_PopupAlignLeft = 1 << 0, // Align the popup toward the left by default + ImGuiComboFlags_HeightSmall = 1 << 1, // Max ~4 items visible. Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo() + ImGuiComboFlags_HeightRegular = 1 << 2, // Max ~8 items visible (default) + ImGuiComboFlags_HeightLarge = 1 << 3, // Max ~20 items visible + ImGuiComboFlags_HeightLargest = 1 << 4, // As many fitting items as possible + ImGuiComboFlags_NoArrowButton = 1 << 5, // Display on the preview box without the square arrow button + ImGuiComboFlags_NoPreview = 1 << 6, // Display only a square arrow button + ImGuiComboFlags_WidthFitPreview = 1 << 7, // Width dynamically calculated from preview contents + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, +}; + +// Flags for ImGui::BeginTabBar() +enum ImGuiTabBarFlags_ +{ + ImGuiTabBarFlags_None = 0, + ImGuiTabBarFlags_Reorderable = 1 << 0, // Allow manually dragging tabs to re-order them + New tabs are appended at the end of list + ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1, // Automatically select new tabs when they appear + ImGuiTabBarFlags_TabListPopupButton = 1 << 2, // Disable buttons to open the tab list popup + ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. + ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4, // Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll) + ImGuiTabBarFlags_NoTooltip = 1 << 5, // Disable tooltips when hovering a tab + ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, // Resize tabs when they don't fit + ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, // Add scroll buttons when tabs don't fit + ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, +}; + +// Flags for ImGui::BeginTabItem() +enum ImGuiTabItemFlags_ +{ + ImGuiTabItemFlags_None = 0, + ImGuiTabItemFlags_UnsavedDocument = 1 << 0, // Display a dot next to the title + tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + ImGuiTabItemFlags_SetSelected = 1 << 1, // Trigger flag to programmatically make the tab selected when calling BeginTabItem() + ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. + ImGuiTabItemFlags_NoPushId = 1 << 3, // Don't call PushID(tab->ID)/PopID() on BeginTabItem()/EndTabItem() + ImGuiTabItemFlags_NoTooltip = 1 << 4, // Disable tooltip for the given tab + ImGuiTabItemFlags_NoReorder = 1 << 5, // Disable reordering this tab or having another tab cross over this tab + ImGuiTabItemFlags_Leading = 1 << 6, // Enforce the tab position to the left of the tab bar (after the tab list popup button) + ImGuiTabItemFlags_Trailing = 1 << 7, // Enforce the tab position to the right of the tab bar (before the scrolling buttons) +}; + +// Flags for ImGui::BeginTable() +// - Important! Sizing policies have complex and subtle side effects, much more so than you would expect. +// Read comments/demos carefully + experiment with live demos to get acquainted with them. +// - The DEFAULT sizing policies are: +// - Default to ImGuiTableFlags_SizingFixedFit if ScrollX is on, or if host window has ImGuiWindowFlags_AlwaysAutoResize. +// - Default to ImGuiTableFlags_SizingStretchSame if ScrollX is off. +// - When ScrollX is off: +// - Table defaults to ImGuiTableFlags_SizingStretchSame -> all Columns defaults to ImGuiTableColumnFlags_WidthStretch with same weight. +// - Columns sizing policy allowed: Stretch (default), Fixed/Auto. +// - Fixed Columns (if any) will generally obtain their requested width (unless the table cannot fit them all). +// - Stretch Columns will share the remaining width according to their respective weight. +// - Mixed Fixed/Stretch columns is possible but has various side-effects on resizing behaviors. +// The typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. +// (this is because the visible order of columns have subtle but necessary effects on how they react to manual resizing). +// - When ScrollX is on: +// - Table defaults to ImGuiTableFlags_SizingFixedFit -> all Columns defaults to ImGuiTableColumnFlags_WidthFixed +// - Columns sizing policy allowed: Fixed/Auto mostly. +// - Fixed Columns can be enlarged as needed. Table will show a horizontal scrollbar if needed. +// - When using auto-resizing (non-resizable) fixed columns, querying the content width to use item right-alignment e.g. SetNextItemWidth(-FLT_MIN) doesn't make sense, would create a feedback loop. +// - Using Stretch columns OFTEN DOES NOT MAKE SENSE if ScrollX is on, UNLESS you have specified a value for 'inner_width' in BeginTable(). +// If you specify a value for 'inner_width' then effectively the scrolling space is known and Stretch or mixed Fixed/Stretch columns become meaningful again. +// - Read on documentation at the top of imgui_tables.cpp for details. +enum ImGuiTableFlags_ +{ + // Features + ImGuiTableFlags_None = 0, + ImGuiTableFlags_Resizable = 1 << 0, // Enable resizing columns. + ImGuiTableFlags_Reorderable = 1 << 1, // Enable reordering columns in header row (need calling TableSetupColumn() + TableHeadersRow() to display headers) + ImGuiTableFlags_Hideable = 1 << 2, // Enable hiding/disabling columns in context menu. + ImGuiTableFlags_Sortable = 1 << 3, // Enable sorting. Call TableGetSortSpecs() to obtain sort specs. Also see ImGuiTableFlags_SortMulti and ImGuiTableFlags_SortTristate. + ImGuiTableFlags_NoSavedSettings = 1 << 4, // Disable persisting columns order, width and sort settings in the .ini file. + ImGuiTableFlags_ContextMenuInBody = 1 << 5, // Right-click on columns body/contents will display table context menu. By default it is available in TableHeadersRow(). + // Decorations + ImGuiTableFlags_RowBg = 1 << 6, // Set each RowBg color with ImGuiCol_TableRowBg or ImGuiCol_TableRowBgAlt (equivalent of calling TableSetBgColor with ImGuiTableBgFlags_RowBg0 on each row manually) + ImGuiTableFlags_BordersInnerH = 1 << 7, // Draw horizontal borders between rows. + ImGuiTableFlags_BordersOuterH = 1 << 8, // Draw horizontal borders at the top and bottom. + ImGuiTableFlags_BordersInnerV = 1 << 9, // Draw vertical borders between columns. + ImGuiTableFlags_BordersOuterV = 1 << 10, // Draw vertical borders on the left and right sides. + ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH, // Draw horizontal borders. + ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV, // Draw vertical borders. + ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, // Draw inner borders. + ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, // Draw outer borders. + ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, // Draw all borders. + ImGuiTableFlags_NoBordersInBody = 1 << 11, // [ALPHA] Disable vertical borders in columns Body (borders will always appear in Headers). -> May move to style + ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, // [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers). -> May move to style + // Sizing Policy (read above for defaults) + ImGuiTableFlags_SizingFixedFit = 1 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching contents width. + ImGuiTableFlags_SizingFixedSame = 2 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching the maximum contents width of all columns. Implicitly enable ImGuiTableFlags_NoKeepColumnsVisible. + ImGuiTableFlags_SizingStretchProp = 3 << 13, // Columns default to _WidthStretch with default weights proportional to each columns contents widths. + ImGuiTableFlags_SizingStretchSame = 4 << 13, // Columns default to _WidthStretch with default weights all equal, unless overridden by TableSetupColumn(). + // Sizing Extra Options + ImGuiTableFlags_NoHostExtendX = 1 << 16, // Make outer width auto-fit to columns, overriding outer_size.x value. Only available when ScrollX/ScrollY are disabled and Stretch columns are not used. + ImGuiTableFlags_NoHostExtendY = 1 << 17, // Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible. + ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18, // Disable keeping column always minimally visible when ScrollX is off and table gets too small. Not recommended if columns are resizable. + ImGuiTableFlags_PreciseWidths = 1 << 19, // Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth. + // Clipping + ImGuiTableFlags_NoClip = 1 << 20, // Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with TableSetupScrollFreeze(). + // Padding + ImGuiTableFlags_PadOuterX = 1 << 21, // Default if BordersOuterV is on. Enable outermost padding. Generally desirable if you have headers. + ImGuiTableFlags_NoPadOuterX = 1 << 22, // Default if BordersOuterV is off. Disable outermost padding. + ImGuiTableFlags_NoPadInnerX = 1 << 23, // Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off). + // Scrolling + ImGuiTableFlags_ScrollX = 1 << 24, // Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this creates a child window, ScrollY is currently generally recommended when using ScrollX. + ImGuiTableFlags_ScrollY = 1 << 25, // Enable vertical scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. + // Sorting + ImGuiTableFlags_SortMulti = 1 << 26, // Hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1). + ImGuiTableFlags_SortTristate = 1 << 27, // Allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0). + // Miscellaneous + ImGuiTableFlags_HighlightHoveredColumn = 1 << 28, // Highlight column headers when hovered (may evolve into a fuller highlight) + + // [Internal] Combinations and masks + ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, +}; + +// Flags for ImGui::TableSetupColumn() +enum ImGuiTableColumnFlags_ +{ + // Input configuration flags + ImGuiTableColumnFlags_None = 0, + ImGuiTableColumnFlags_Disabled = 1 << 0, // Overriding/master disable flag: hide column, won't show in context menu (unlike calling TableSetColumnEnabled() which manipulates the user accessible state) + ImGuiTableColumnFlags_DefaultHide = 1 << 1, // Default as a hidden/disabled column. + ImGuiTableColumnFlags_DefaultSort = 1 << 2, // Default as a sorting column. + ImGuiTableColumnFlags_WidthStretch = 1 << 3, // Column will stretch. Preferable with horizontal scrolling disabled (default if table sizing policy is _SizingStretchSame or _SizingStretchProp). + ImGuiTableColumnFlags_WidthFixed = 1 << 4, // Column will not stretch. Preferable with horizontal scrolling enabled (default if table sizing policy is _SizingFixedFit and table is resizable). + ImGuiTableColumnFlags_NoResize = 1 << 5, // Disable manual resizing. + ImGuiTableColumnFlags_NoReorder = 1 << 6, // Disable manual reordering this column, this will also prevent other columns from crossing over this column. + ImGuiTableColumnFlags_NoHide = 1 << 7, // Disable ability to hide/disable this column. + ImGuiTableColumnFlags_NoClip = 1 << 8, // Disable clipping for this column (all NoClip columns will render in a same draw command). + ImGuiTableColumnFlags_NoSort = 1 << 9, // Disable ability to sort on this field (even if ImGuiTableFlags_Sortable is set on the table). + ImGuiTableColumnFlags_NoSortAscending = 1 << 10, // Disable ability to sort in the ascending direction. + ImGuiTableColumnFlags_NoSortDescending = 1 << 11, // Disable ability to sort in the descending direction. + ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12, // TableHeadersRow() will not submit horizontal label for this column. Convenient for some small columns. Name will still appear in context menu or in angled headers. + ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13, // Disable header text width contribution to automatic column width. + ImGuiTableColumnFlags_PreferSortAscending = 1 << 14, // Make the initial sort direction Ascending when first sorting on this column (default). + ImGuiTableColumnFlags_PreferSortDescending = 1 << 15, // Make the initial sort direction Descending when first sorting on this column. + ImGuiTableColumnFlags_IndentEnable = 1 << 16, // Use current Indent value when entering cell (default for column 0). + ImGuiTableColumnFlags_IndentDisable = 1 << 17, // Ignore current Indent value when entering cell (default for columns > 0). Indentation changes _within_ the cell will still be honored. + ImGuiTableColumnFlags_AngledHeader = 1 << 18, // TableHeadersRow() will submit an angled header row for this column. Note this will add an extra row. + + // Output status flags, read-only via TableGetColumnFlags() + ImGuiTableColumnFlags_IsEnabled = 1 << 24, // Status: is enabled == not hidden by user/api (referred to as "Hide" in _DefaultHide and _NoHide) flags. + ImGuiTableColumnFlags_IsVisible = 1 << 25, // Status: is visible == is enabled AND not clipped by scrolling. + ImGuiTableColumnFlags_IsSorted = 1 << 26, // Status: is currently part of the sort specs + ImGuiTableColumnFlags_IsHovered = 1 << 27, // Status: is hovered by mouse + + // [Internal] Combinations and masks + ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, + ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, + ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, + ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, // [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge) +}; + +// Flags for ImGui::TableNextRow() +enum ImGuiTableRowFlags_ +{ + ImGuiTableRowFlags_None = 0, + ImGuiTableRowFlags_Headers = 1 << 0, // Identify header row (set default background color + width of its contents accounted differently for auto column width) +}; + +// Enum for ImGui::TableSetBgColor() +// Background colors are rendering in 3 layers: +// - Layer 0: draw with RowBg0 color if set, otherwise draw with ColumnBg0 if set. +// - Layer 1: draw with RowBg1 color if set, otherwise draw with ColumnBg1 if set. +// - Layer 2: draw with CellBg color if set. +// The purpose of the two row/columns layers is to let you decide if a background color change should override or blend with the existing color. +// When using ImGuiTableFlags_RowBg on the table, each row has the RowBg0 color automatically set for odd/even rows. +// If you set the color of RowBg0 target, your color will override the existing RowBg0 color. +// If you set the color of RowBg1 or ColumnBg1 target, your color will blend over the RowBg0 color. +enum ImGuiTableBgTarget_ +{ + ImGuiTableBgTarget_None = 0, + ImGuiTableBgTarget_RowBg0 = 1, // Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used) + ImGuiTableBgTarget_RowBg1 = 2, // Set row background color 1 (generally used for selection marking) + ImGuiTableBgTarget_CellBg = 3, // Set cell background color (top-most color) +}; + +// Flags for ImGui::IsWindowFocused() +enum ImGuiFocusedFlags_ +{ + ImGuiFocusedFlags_None = 0, + ImGuiFocusedFlags_ChildWindows = 1 << 0, // Return true if any children of the window is focused + ImGuiFocusedFlags_RootWindow = 1 << 1, // Test from root window (top most parent of the current hierarchy) + ImGuiFocusedFlags_AnyWindow = 1 << 2, // Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ! + ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, // Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow) + ImGuiFocusedFlags_DockHierarchy = 1 << 4, // Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow) + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, +}; + +// Flags for ImGui::IsItemHovered(), ImGui::IsWindowHovered() +// Note: if you are trying to check whether your mouse should be dispatched to Dear ImGui or to your app, you should use 'io.WantCaptureMouse' instead! Please read the FAQ! +// Note: windows with the ImGuiWindowFlags_NoInputs flag are ignored by IsWindowHovered() calls. +enum ImGuiHoveredFlags_ +{ + ImGuiHoveredFlags_None = 0, // Return true if directly over the item/window, not obstructed by another window, not obstructed by an active popup or modal blocking inputs under them. + ImGuiHoveredFlags_ChildWindows = 1 << 0, // IsWindowHovered() only: Return true if any children of the window is hovered + ImGuiHoveredFlags_RootWindow = 1 << 1, // IsWindowHovered() only: Test from root window (top most parent of the current hierarchy) + ImGuiHoveredFlags_AnyWindow = 1 << 2, // IsWindowHovered() only: Return true if any window is hovered + ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3, // IsWindowHovered() only: Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow) + ImGuiHoveredFlags_DockHierarchy = 1 << 4, // IsWindowHovered() only: Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow) + ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5, // Return true even if a popup window is normally blocking access to this item/window + //ImGuiHoveredFlags_AllowWhenBlockedByModal = 1 << 6, // Return true even if a modal popup window is normally blocking access to this item/window. FIXME-TODO: Unavailable yet. + ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, // Return true even if an active item is blocking access to this item/window. Useful for Drag and Drop patterns. + ImGuiHoveredFlags_AllowWhenOverlappedByItem = 1 << 8, // IsItemHovered() only: Return true even if the item uses AllowOverlap mode and is overlapped by another hoverable item. + ImGuiHoveredFlags_AllowWhenOverlappedByWindow = 1 << 9, // IsItemHovered() only: Return true even if the position is obstructed or overlapped by another window. + ImGuiHoveredFlags_AllowWhenDisabled = 1 << 10, // IsItemHovered() only: Return true even if the item is disabled + ImGuiHoveredFlags_NoNavOverride = 1 << 11, // IsItemHovered() only: Disable using gamepad/keyboard navigation state when active, always query mouse + ImGuiHoveredFlags_AllowWhenOverlapped = ImGuiHoveredFlags_AllowWhenOverlappedByItem | ImGuiHoveredFlags_AllowWhenOverlappedByWindow, + ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, + + // Tooltips mode + // - typically used in IsItemHovered() + SetTooltip() sequence. + // - this is a shortcut to pull flags from 'style.HoverFlagsForTooltipMouse' or 'style.HoverFlagsForTooltipNav' where you can reconfigure desired behavior. + // e.g. 'TooltipHoveredFlagsForMouse' defaults to 'ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort'. + // - for frequently actioned or hovered items providing a tooltip, you want may to use ImGuiHoveredFlags_ForTooltip (stationary + delay) so the tooltip doesn't show too often. + // - for items which main purpose is to be hovered, or items with low affordance, or in less consistent apps, prefer no delay or shorter delay. + ImGuiHoveredFlags_ForTooltip = 1 << 12, // Shortcut for standard flags when using IsItemHovered() + SetTooltip() sequence. + + // (Advanced) Mouse Hovering delays. + // - generally you can use ImGuiHoveredFlags_ForTooltip to use application-standardized flags. + // - use those if you need specific overrides. + ImGuiHoveredFlags_Stationary = 1 << 13, // Require mouse to be stationary for style.HoverStationaryDelay (~0.15 sec) _at least one time_. After this, can move on same item/window. Using the stationary test tends to reduces the need for a long delay. + ImGuiHoveredFlags_DelayNone = 1 << 14, // IsItemHovered() only: Return true immediately (default). As this is the default you generally ignore this. + ImGuiHoveredFlags_DelayShort = 1 << 15, // IsItemHovered() only: Return true after style.HoverDelayShort elapsed (~0.15 sec) (shared between items) + requires mouse to be stationary for style.HoverStationaryDelay (once per item). + ImGuiHoveredFlags_DelayNormal = 1 << 16, // IsItemHovered() only: Return true after style.HoverDelayNormal elapsed (~0.40 sec) (shared between items) + requires mouse to be stationary for style.HoverStationaryDelay (once per item). + ImGuiHoveredFlags_NoSharedDelay = 1 << 17, // IsItemHovered() only: Disable shared delay system where moving from one item to the next keeps the previous timer for a short time (standard for tooltips with long delays) +}; + +// Flags for ImGui::DockSpace(), shared/inherited by child nodes. +// (Some flags can be applied to individual nodes directly) +// FIXME-DOCK: Also see ImGuiDockNodeFlagsPrivate_ which may involve using the WIP and internal DockBuilder api. +enum ImGuiDockNodeFlags_ +{ + ImGuiDockNodeFlags_None = 0, + ImGuiDockNodeFlags_KeepAliveOnly = 1 << 0, // // Don't display the dockspace node but keep it alive. Windows docked into this dockspace node won't be undocked. + //ImGuiDockNodeFlags_NoCentralNode = 1 << 1, // // Disable Central Node (the node which can stay empty) + ImGuiDockNodeFlags_NoDockingOverCentralNode = 1 << 2, // // Disable docking over the Central Node, which will be always kept empty. + ImGuiDockNodeFlags_PassthruCentralNode = 1 << 3, // // Enable passthru dockspace: 1) DockSpace() will render a ImGuiCol_WindowBg background covering everything excepted the Central Node when empty. Meaning the host window should probably use SetNextWindowBgAlpha(0.0f) prior to Begin() when using this. 2) When Central Node is empty: let inputs pass-through + won't display a DockingEmptyBg background. See demo for details. + ImGuiDockNodeFlags_NoDockingSplit = 1 << 4, // // Disable other windows/nodes from splitting this node. + ImGuiDockNodeFlags_NoResize = 1 << 5, // Saved // Disable resizing node using the splitter/separators. Useful with programmatically setup dockspaces. + ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6, // // Tab bar will automatically hide when there is a single window in the dock node. + ImGuiDockNodeFlags_NoUndocking = 1 << 7, // // Disable undocking this node. + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiDockNodeFlags_NoSplit = ImGuiDockNodeFlags_NoDockingSplit, // Renamed in 1.90 + ImGuiDockNodeFlags_NoDockingInCentralNode = ImGuiDockNodeFlags_NoDockingOverCentralNode, // Renamed in 1.90 +#endif +}; + +// Flags for ImGui::BeginDragDropSource(), ImGui::AcceptDragDropPayload() +enum ImGuiDragDropFlags_ +{ + ImGuiDragDropFlags_None = 0, + // BeginDragDropSource() flags + ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, // Disable preview tooltip. By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disables this behavior. + ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, // By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disables this behavior so you can still call IsItemHovered() on the source item. + ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, // Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item. + ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, // Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit. + ImGuiDragDropFlags_SourceExtern = 1 << 4, // External source (from outside of dear imgui), won't attempt to read current item/window info. Will always return true. Only one Extern source can be active simultaneously. + ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5, // Automatically expire the payload if the source cease to be submitted (otherwise payloads are persisting while being dragged) + // AcceptDragDropPayload() flags + ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, // AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered. + ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, // Do not draw the default highlight rectangle when hovering over target. + ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, // Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site. + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, // For peeking ahead and inspecting the payload before delivery. +}; + +// Standard Drag and Drop payload types. You can define you own payload types using short strings. Types starting with '_' are defined by Dear ImGui. +#define IMGUI_PAYLOAD_TYPE_COLOR_3F "_COL3F" // float[3]: Standard type for colors, without alpha. User code may use this type. +#define IMGUI_PAYLOAD_TYPE_COLOR_4F "_COL4F" // float[4]: Standard type for colors. User code may use this type. + +// A primary data type +enum ImGuiDataType_ +{ + ImGuiDataType_S8, // signed char / char (with sensible compilers) + ImGuiDataType_U8, // unsigned char + ImGuiDataType_S16, // short + ImGuiDataType_U16, // unsigned short + ImGuiDataType_S32, // int + ImGuiDataType_U32, // unsigned int + ImGuiDataType_S64, // long long / __int64 + ImGuiDataType_U64, // unsigned long long / unsigned __int64 + ImGuiDataType_Float, // float + ImGuiDataType_Double, // double + ImGuiDataType_COUNT +}; + +// A cardinal direction +enum ImGuiDir_ +{ + ImGuiDir_None = -1, + ImGuiDir_Left = 0, + ImGuiDir_Right = 1, + ImGuiDir_Up = 2, + ImGuiDir_Down = 3, + ImGuiDir_COUNT +}; + +// A sorting direction +enum ImGuiSortDirection_ +{ + ImGuiSortDirection_None = 0, + ImGuiSortDirection_Ascending = 1, // Ascending = 0->9, A->Z etc. + ImGuiSortDirection_Descending = 2 // Descending = 9->0, Z->A etc. +}; + +// A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value): can represent Keyboard, Mouse and Gamepad values. +// All our named keys are >= 512. Keys value 0 to 511 are left unused as legacy native/opaque key values (< 1.87). +// Since >= 1.89 we increased typing (went from int to enum), some legacy code may need a cast to ImGuiKey. +// Read details about the 1.87 and 1.89 transition : https://github.com/ocornut/imgui/issues/4921 +// Note that "Keys" related to physical keys and are not the same concept as input "Characters", the later are submitted via io.AddInputCharacter(). +enum ImGuiKey : int +{ + // Keyboard + ImGuiKey_None = 0, + ImGuiKey_Tab = 512, // == ImGuiKey_NamedKey_BEGIN + ImGuiKey_LeftArrow, + ImGuiKey_RightArrow, + ImGuiKey_UpArrow, + ImGuiKey_DownArrow, + ImGuiKey_PageUp, + ImGuiKey_PageDown, + ImGuiKey_Home, + ImGuiKey_End, + ImGuiKey_Insert, + ImGuiKey_Delete, + ImGuiKey_Backspace, + ImGuiKey_Space, + ImGuiKey_Enter, + ImGuiKey_Escape, + ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_LeftAlt, ImGuiKey_LeftSuper, + ImGuiKey_RightCtrl, ImGuiKey_RightShift, ImGuiKey_RightAlt, ImGuiKey_RightSuper, + ImGuiKey_Menu, + ImGuiKey_0, ImGuiKey_1, ImGuiKey_2, ImGuiKey_3, ImGuiKey_4, ImGuiKey_5, ImGuiKey_6, ImGuiKey_7, ImGuiKey_8, ImGuiKey_9, + ImGuiKey_A, ImGuiKey_B, ImGuiKey_C, ImGuiKey_D, ImGuiKey_E, ImGuiKey_F, ImGuiKey_G, ImGuiKey_H, ImGuiKey_I, ImGuiKey_J, + ImGuiKey_K, ImGuiKey_L, ImGuiKey_M, ImGuiKey_N, ImGuiKey_O, ImGuiKey_P, ImGuiKey_Q, ImGuiKey_R, ImGuiKey_S, ImGuiKey_T, + ImGuiKey_U, ImGuiKey_V, ImGuiKey_W, ImGuiKey_X, ImGuiKey_Y, ImGuiKey_Z, + ImGuiKey_F1, ImGuiKey_F2, ImGuiKey_F3, ImGuiKey_F4, ImGuiKey_F5, ImGuiKey_F6, + ImGuiKey_F7, ImGuiKey_F8, ImGuiKey_F9, ImGuiKey_F10, ImGuiKey_F11, ImGuiKey_F12, + ImGuiKey_F13, ImGuiKey_F14, ImGuiKey_F15, ImGuiKey_F16, ImGuiKey_F17, ImGuiKey_F18, + ImGuiKey_F19, ImGuiKey_F20, ImGuiKey_F21, ImGuiKey_F22, ImGuiKey_F23, ImGuiKey_F24, + ImGuiKey_Apostrophe, // ' + ImGuiKey_Comma, // , + ImGuiKey_Minus, // - + ImGuiKey_Period, // . + ImGuiKey_Slash, // / + ImGuiKey_Semicolon, // ; + ImGuiKey_Equal, // = + ImGuiKey_LeftBracket, // [ + ImGuiKey_Backslash, // \ (this text inhibit multiline comment caused by backslash) + ImGuiKey_RightBracket, // ] + ImGuiKey_GraveAccent, // ` + ImGuiKey_CapsLock, + ImGuiKey_ScrollLock, + ImGuiKey_NumLock, + ImGuiKey_PrintScreen, + ImGuiKey_Pause, + ImGuiKey_Keypad0, ImGuiKey_Keypad1, ImGuiKey_Keypad2, ImGuiKey_Keypad3, ImGuiKey_Keypad4, + ImGuiKey_Keypad5, ImGuiKey_Keypad6, ImGuiKey_Keypad7, ImGuiKey_Keypad8, ImGuiKey_Keypad9, + ImGuiKey_KeypadDecimal, + ImGuiKey_KeypadDivide, + ImGuiKey_KeypadMultiply, + ImGuiKey_KeypadSubtract, + ImGuiKey_KeypadAdd, + ImGuiKey_KeypadEnter, + ImGuiKey_KeypadEqual, + ImGuiKey_AppBack, // Available on some keyboard/mouses. Often referred as "Browser Back" + ImGuiKey_AppForward, + + // Gamepad (some of those are analog values, 0.0f to 1.0f) // NAVIGATION ACTION + // (download controller mapping PNG/PSD at http://dearimgui.com/controls_sheets) + ImGuiKey_GamepadStart, // Menu (Xbox) + (Switch) Start/Options (PS) + ImGuiKey_GamepadBack, // View (Xbox) - (Switch) Share (PS) + ImGuiKey_GamepadFaceLeft, // X (Xbox) Y (Switch) Square (PS) // Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows) + ImGuiKey_GamepadFaceRight, // B (Xbox) A (Switch) Circle (PS) // Cancel / Close / Exit + ImGuiKey_GamepadFaceUp, // Y (Xbox) X (Switch) Triangle (PS) // Text Input / On-screen Keyboard + ImGuiKey_GamepadFaceDown, // A (Xbox) B (Switch) Cross (PS) // Activate / Open / Toggle / Tweak + ImGuiKey_GamepadDpadLeft, // D-pad Left // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadRight, // D-pad Right // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadUp, // D-pad Up // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadDown, // D-pad Down // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadL1, // L Bumper (Xbox) L (Switch) L1 (PS) // Tweak Slower / Focus Previous (in Windowing mode) + ImGuiKey_GamepadR1, // R Bumper (Xbox) R (Switch) R1 (PS) // Tweak Faster / Focus Next (in Windowing mode) + ImGuiKey_GamepadL2, // L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog] + ImGuiKey_GamepadR2, // R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog] + ImGuiKey_GamepadL3, // L Stick (Xbox) L3 (Switch) L3 (PS) + ImGuiKey_GamepadR3, // R Stick (Xbox) R3 (Switch) R3 (PS) + ImGuiKey_GamepadLStickLeft, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickRight, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickUp, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickDown, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadRStickLeft, // [Analog] + ImGuiKey_GamepadRStickRight, // [Analog] + ImGuiKey_GamepadRStickUp, // [Analog] + ImGuiKey_GamepadRStickDown, // [Analog] + + // Aliases: Mouse Buttons (auto-submitted from AddMouseButtonEvent() calls) + // - This is mirroring the data also written to io.MouseDown[], io.MouseWheel, in a format allowing them to be accessed via standard key API. + ImGuiKey_MouseLeft, ImGuiKey_MouseRight, ImGuiKey_MouseMiddle, ImGuiKey_MouseX1, ImGuiKey_MouseX2, ImGuiKey_MouseWheelX, ImGuiKey_MouseWheelY, + + // [Internal] Reserved for mod storage + ImGuiKey_ReservedForModCtrl, ImGuiKey_ReservedForModShift, ImGuiKey_ReservedForModAlt, ImGuiKey_ReservedForModSuper, + ImGuiKey_COUNT, + + // Keyboard Modifiers (explicitly submitted by backend via AddKeyEvent() calls) + // - This is mirroring the data also written to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper, in a format allowing + // them to be accessed via standard key API, allowing calls such as IsKeyPressed(), IsKeyReleased(), querying duration etc. + // - Code polling every key (e.g. an interface to detect a key press for input mapping) might want to ignore those + // and prefer using the real keys (e.g. ImGuiKey_LeftCtrl, ImGuiKey_RightCtrl instead of ImGuiMod_Ctrl). + // - In theory the value of keyboard modifiers should be roughly equivalent to a logical or of the equivalent left/right keys. + // In practice: it's complicated; mods are often provided from different sources. Keyboard layout, IME, sticky keys and + // backends tend to interfere and break that equivalence. The safer decision is to relay that ambiguity down to the end-user... + ImGuiMod_None = 0, + ImGuiMod_Ctrl = 1 << 12, // Ctrl + ImGuiMod_Shift = 1 << 13, // Shift + ImGuiMod_Alt = 1 << 14, // Option/Menu + ImGuiMod_Super = 1 << 15, // Cmd/Super/Windows + ImGuiMod_Shortcut = 1 << 11, // Alias for Ctrl (non-macOS) _or_ Super (macOS). + ImGuiMod_Mask_ = 0xF800, // 5-bits + + // [Internal] Prior to 1.87 we required user to fill io.KeysDown[512] using their own native index + the io.KeyMap[] array. + // We are ditching this method but keeping a legacy path for user code doing e.g. IsKeyPressed(MY_NATIVE_KEY_CODE) + // If you need to iterate all keys (for e.g. an input mapper) you may use ImGuiKey_NamedKey_BEGIN..ImGuiKey_NamedKey_END. + ImGuiKey_NamedKey_BEGIN = 512, + ImGuiKey_NamedKey_END = ImGuiKey_COUNT, + ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + ImGuiKey_KeysData_SIZE = ImGuiKey_NamedKey_COUNT, // Size of KeysData[]: only hold named keys + ImGuiKey_KeysData_OFFSET = ImGuiKey_NamedKey_BEGIN, // Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET) index. +#else + ImGuiKey_KeysData_SIZE = ImGuiKey_COUNT, // Size of KeysData[]: hold legacy 0..512 keycodes + named keys + ImGuiKey_KeysData_OFFSET = 0, // Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET) index. +#endif + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiKey_ModCtrl = ImGuiMod_Ctrl, ImGuiKey_ModShift = ImGuiMod_Shift, ImGuiKey_ModAlt = ImGuiMod_Alt, ImGuiKey_ModSuper = ImGuiMod_Super, // Renamed in 1.89 + ImGuiKey_KeyPadEnter = ImGuiKey_KeypadEnter, // Renamed in 1.87 +#endif +}; + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +// OBSOLETED in 1.88 (from July 2022): ImGuiNavInput and io.NavInputs[]. +// Official backends between 1.60 and 1.86: will keep working and feed gamepad inputs as long as IMGUI_DISABLE_OBSOLETE_KEYIO is not set. +// Custom backends: feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +enum ImGuiNavInput +{ + ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, + ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, + ImGuiNavInput_COUNT, +}; +#endif + +// Configuration flags stored in io.ConfigFlags. Set by user/application. +enum ImGuiConfigFlags_ +{ + ImGuiConfigFlags_None = 0, + ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, // Master keyboard navigation enable flag. Enable full Tabbing + directional arrows + space/enter to activate. + ImGuiConfigFlags_NavEnableGamepad = 1 << 1, // Master gamepad navigation enable flag. Backend also needs to set ImGuiBackendFlags_HasGamepad. + ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, // Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your backend, otherwise ImGui will react as if the mouse is jumping around back and forth. + ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, // Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set. + ImGuiConfigFlags_NoMouse = 1 << 4, // Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information set by the backend. + ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, // Instruct backend to not alter mouse cursor shape and visibility. Use if the backend cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead. + + // [BETA] Docking + ImGuiConfigFlags_DockingEnable = 1 << 6, // Docking enable flags. + + // [BETA] Viewports + // When using viewports it is recommended that your default value for ImGuiCol_WindowBg is opaque (Alpha=1.0) so transition to a viewport won't be noticeable. + ImGuiConfigFlags_ViewportsEnable = 1 << 10, // Viewport enable flags (require both ImGuiBackendFlags_PlatformHasViewports + ImGuiBackendFlags_RendererHasViewports set by the respective backends) + ImGuiConfigFlags_DpiEnableScaleViewports= 1 << 14, // [BETA: Don't use] FIXME-DPI: Reposition and resize imgui windows when the DpiScale of a viewport changed (mostly useful for the main viewport hosting other window). Note that resizing the main window itself is up to your application. + ImGuiConfigFlags_DpiEnableScaleFonts = 1 << 15, // [BETA: Don't use] FIXME-DPI: Request bitmap-scaled fonts to match DpiScale. This is a very low-quality workaround. The correct way to handle DPI is _currently_ to replace the atlas and/or fonts in the Platform_OnChangedViewport callback, but this is all early work in progress. + + // User storage (to allow your backend/engine to communicate to code that may be shared between multiple projects. Those flags are NOT used by core Dear ImGui) + ImGuiConfigFlags_IsSRGB = 1 << 20, // Application is SRGB-aware. + ImGuiConfigFlags_IsTouchScreen = 1 << 21, // Application is using a touch screen instead of a mouse. +}; + +// Backend capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom backend. +enum ImGuiBackendFlags_ +{ + ImGuiBackendFlags_None = 0, + ImGuiBackendFlags_HasGamepad = 1 << 0, // Backend Platform supports gamepad and currently has one connected. + ImGuiBackendFlags_HasMouseCursors = 1 << 1, // Backend Platform supports honoring GetMouseCursor() value to change the OS cursor shape. + ImGuiBackendFlags_HasSetMousePos = 1 << 2, // Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if ImGuiConfigFlags_NavEnableSetMousePos is set). + ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, // Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices. + + // [BETA] Viewports + ImGuiBackendFlags_PlatformHasViewports = 1 << 10, // Backend Platform supports multiple viewports. + ImGuiBackendFlags_HasMouseHoveredViewport=1 << 11, // Backend Platform supports calling io.AddMouseViewportEvent() with the viewport under the mouse. IF POSSIBLE, ignore viewports with the ImGuiViewportFlags_NoInputs flag (Win32 backend, GLFW 3.30+ backend can do this, SDL backend cannot). If this cannot be done, Dear ImGui needs to use a flawed heuristic to find the viewport under. + ImGuiBackendFlags_RendererHasViewports = 1 << 12, // Backend Renderer supports multiple viewports. +}; + +// Enumeration for PushStyleColor() / PopStyleColor() +enum ImGuiCol_ +{ + ImGuiCol_Text, + ImGuiCol_TextDisabled, + ImGuiCol_WindowBg, // Background of normal windows + ImGuiCol_ChildBg, // Background of child windows + ImGuiCol_PopupBg, // Background of popups, menus, tooltips windows + ImGuiCol_Border, + ImGuiCol_BorderShadow, + ImGuiCol_FrameBg, // Background of checkbox, radio button, plot, slider, text input + ImGuiCol_FrameBgHovered, + ImGuiCol_FrameBgActive, + ImGuiCol_TitleBg, + ImGuiCol_TitleBgActive, + ImGuiCol_TitleBgCollapsed, + ImGuiCol_MenuBarBg, + ImGuiCol_ScrollbarBg, + ImGuiCol_ScrollbarGrab, + ImGuiCol_ScrollbarGrabHovered, + ImGuiCol_ScrollbarGrabActive, + ImGuiCol_CheckMark, + ImGuiCol_SliderGrab, + ImGuiCol_SliderGrabActive, + ImGuiCol_Button, + ImGuiCol_ButtonHovered, + ImGuiCol_ButtonActive, + ImGuiCol_Header, // Header* colors are used for CollapsingHeader, TreeNode, Selectable, MenuItem + ImGuiCol_HeaderHovered, + ImGuiCol_HeaderActive, + ImGuiCol_Separator, + ImGuiCol_SeparatorHovered, + ImGuiCol_SeparatorActive, + ImGuiCol_ResizeGrip, // Resize grip in lower-right and lower-left corners of windows. + ImGuiCol_ResizeGripHovered, + ImGuiCol_ResizeGripActive, + ImGuiCol_Tab, // TabItem in a TabBar + ImGuiCol_TabHovered, + ImGuiCol_TabActive, + ImGuiCol_TabUnfocused, + ImGuiCol_TabUnfocusedActive, + ImGuiCol_DockingPreview, // Preview overlay color when about to docking something + ImGuiCol_DockingEmptyBg, // Background color for empty node (e.g. CentralNode with no window docked into it) + ImGuiCol_PlotLines, + ImGuiCol_PlotLinesHovered, + ImGuiCol_PlotHistogram, + ImGuiCol_PlotHistogramHovered, + ImGuiCol_TableHeaderBg, // Table header background + ImGuiCol_TableBorderStrong, // Table outer and header borders (prefer using Alpha=1.0 here) + ImGuiCol_TableBorderLight, // Table inner borders (prefer using Alpha=1.0 here) + ImGuiCol_TableRowBg, // Table row background (even rows) + ImGuiCol_TableRowBgAlt, // Table row background (odd rows) + ImGuiCol_TextSelectedBg, + ImGuiCol_DragDropTarget, // Rectangle highlighting a drop target + ImGuiCol_NavHighlight, // Gamepad/keyboard: current highlighted item + ImGuiCol_NavWindowingHighlight, // Highlight window when using CTRL+TAB + ImGuiCol_NavWindowingDimBg, // Darken/colorize entire screen behind the CTRL+TAB window list, when active + ImGuiCol_ModalWindowDimBg, // Darken/colorize entire screen behind a modal window, when one is active + ImGuiCol_COUNT +}; + +// Enumeration for PushStyleVar() / PopStyleVar() to temporarily modify the ImGuiStyle structure. +// - The enum only refers to fields of ImGuiStyle which makes sense to be pushed/popped inside UI code. +// During initialization or between frames, feel free to just poke into ImGuiStyle directly. +// - Tip: Use your programming IDE navigation facilities on the names in the _second column_ below to find the actual members and their description. +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +// - When changing this enum, you need to update the associated internal table GStyleVarInfo[] accordingly. This is where we link enum values to members offset/type. +enum ImGuiStyleVar_ +{ + // Enum name --------------------- // Member in ImGuiStyle structure (see ImGuiStyle for descriptions) + ImGuiStyleVar_Alpha, // float Alpha + ImGuiStyleVar_DisabledAlpha, // float DisabledAlpha + ImGuiStyleVar_WindowPadding, // ImVec2 WindowPadding + ImGuiStyleVar_WindowRounding, // float WindowRounding + ImGuiStyleVar_WindowBorderSize, // float WindowBorderSize + ImGuiStyleVar_WindowMinSize, // ImVec2 WindowMinSize + ImGuiStyleVar_WindowTitleAlign, // ImVec2 WindowTitleAlign + ImGuiStyleVar_ChildRounding, // float ChildRounding + ImGuiStyleVar_ChildBorderSize, // float ChildBorderSize + ImGuiStyleVar_PopupRounding, // float PopupRounding + ImGuiStyleVar_PopupBorderSize, // float PopupBorderSize + ImGuiStyleVar_FramePadding, // ImVec2 FramePadding + ImGuiStyleVar_FrameRounding, // float FrameRounding + ImGuiStyleVar_FrameBorderSize, // float FrameBorderSize + ImGuiStyleVar_ItemSpacing, // ImVec2 ItemSpacing + ImGuiStyleVar_ItemInnerSpacing, // ImVec2 ItemInnerSpacing + ImGuiStyleVar_IndentSpacing, // float IndentSpacing + ImGuiStyleVar_CellPadding, // ImVec2 CellPadding + ImGuiStyleVar_ScrollbarSize, // float ScrollbarSize + ImGuiStyleVar_ScrollbarRounding, // float ScrollbarRounding + ImGuiStyleVar_GrabMinSize, // float GrabMinSize + ImGuiStyleVar_GrabRounding, // float GrabRounding + ImGuiStyleVar_TabRounding, // float TabRounding + ImGuiStyleVar_TabBarBorderSize, // float TabBarBorderSize + ImGuiStyleVar_ButtonTextAlign, // ImVec2 ButtonTextAlign + ImGuiStyleVar_SelectableTextAlign, // ImVec2 SelectableTextAlign + ImGuiStyleVar_SeparatorTextBorderSize,// float SeparatorTextBorderSize + ImGuiStyleVar_SeparatorTextAlign, // ImVec2 SeparatorTextAlign + ImGuiStyleVar_SeparatorTextPadding,// ImVec2 SeparatorTextPadding + ImGuiStyleVar_DockingSeparatorSize,// float DockingSeparatorSize + ImGuiStyleVar_COUNT +}; + +// Flags for InvisibleButton() [extended in imgui_internal.h] +enum ImGuiButtonFlags_ +{ + ImGuiButtonFlags_None = 0, + ImGuiButtonFlags_MouseButtonLeft = 1 << 0, // React on left mouse button (default) + ImGuiButtonFlags_MouseButtonRight = 1 << 1, // React on right mouse button + ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, // React on center mouse button + + // [Internal] + ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, +}; + +// Flags for ColorEdit3() / ColorEdit4() / ColorPicker3() / ColorPicker4() / ColorButton() +enum ImGuiColorEditFlags_ +{ + ImGuiColorEditFlags_None = 0, + ImGuiColorEditFlags_NoAlpha = 1 << 1, // // ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer). + ImGuiColorEditFlags_NoPicker = 1 << 2, // // ColorEdit: disable picker when clicking on color square. + ImGuiColorEditFlags_NoOptions = 1 << 3, // // ColorEdit: disable toggling options menu when right-clicking on inputs/small preview. + ImGuiColorEditFlags_NoSmallPreview = 1 << 4, // // ColorEdit, ColorPicker: disable color square preview next to the inputs. (e.g. to show only the inputs) + ImGuiColorEditFlags_NoInputs = 1 << 5, // // ColorEdit, ColorPicker: disable inputs sliders/text widgets (e.g. to show only the small preview color square). + ImGuiColorEditFlags_NoTooltip = 1 << 6, // // ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview. + ImGuiColorEditFlags_NoLabel = 1 << 7, // // ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker). + ImGuiColorEditFlags_NoSidePreview = 1 << 8, // // ColorPicker: disable bigger color preview on right side of the picker, use small color square preview instead. + ImGuiColorEditFlags_NoDragDrop = 1 << 9, // // ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source. + ImGuiColorEditFlags_NoBorder = 1 << 10, // // ColorButton: disable border (which is enforced by default) + + // User Options (right-click on widget to change some of them). + ImGuiColorEditFlags_AlphaBar = 1 << 16, // // ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker. + ImGuiColorEditFlags_AlphaPreview = 1 << 17, // // ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque. + ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18, // // ColorEdit, ColorPicker, ColorButton: display half opaque / half checkerboard, instead of opaque. + ImGuiColorEditFlags_HDR = 1 << 19, // // (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well). + ImGuiColorEditFlags_DisplayRGB = 1 << 20, // [Display] // ColorEdit: override _display_ type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex. + ImGuiColorEditFlags_DisplayHSV = 1 << 21, // [Display] // " + ImGuiColorEditFlags_DisplayHex = 1 << 22, // [Display] // " + ImGuiColorEditFlags_Uint8 = 1 << 23, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0..255. + ImGuiColorEditFlags_Float = 1 << 24, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers. + ImGuiColorEditFlags_PickerHueBar = 1 << 25, // [Picker] // ColorPicker: bar for Hue, rectangle for Sat/Value. + ImGuiColorEditFlags_PickerHueWheel = 1 << 26, // [Picker] // ColorPicker: wheel for Hue, triangle for Sat/Value. + ImGuiColorEditFlags_InputRGB = 1 << 27, // [Input] // ColorEdit, ColorPicker: input and output data in RGB format. + ImGuiColorEditFlags_InputHSV = 1 << 28, // [Input] // ColorEdit, ColorPicker: input and output data in HSV format. + + // Defaults Options. You can set application defaults using SetColorEditOptions(). The intent is that you probably don't want to + // override them in most of your calls. Let the user choose via the option menu and/or call SetColorEditOptions() once during startup. + ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, + + // [Internal] Masks + ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, + ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, + ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, + ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, + + // Obsolete names + //ImGuiColorEditFlags_RGB = ImGuiColorEditFlags_DisplayRGB, ImGuiColorEditFlags_HSV = ImGuiColorEditFlags_DisplayHSV, ImGuiColorEditFlags_HEX = ImGuiColorEditFlags_DisplayHex // [renamed in 1.69] +}; + +// Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. +// We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigDragClickToInputText) +enum ImGuiSliderFlags_ +{ + ImGuiSliderFlags_None = 0, + ImGuiSliderFlags_AlwaysClamp = 1 << 4, // Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds. + ImGuiSliderFlags_Logarithmic = 1 << 5, // Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits. + ImGuiSliderFlags_NoRoundToFormat = 1 << 6, // Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits) + ImGuiSliderFlags_NoInput = 1 << 7, // Disable CTRL+Click or Enter key allowing to input text directly into the widget + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. + + // Obsolete names + //ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp, // [renamed in 1.79] +}; + +// Identify a mouse button. +// Those values are guaranteed to be stable and we frequently use 0/1 directly. Named enums provided for convenience. +enum ImGuiMouseButton_ +{ + ImGuiMouseButton_Left = 0, + ImGuiMouseButton_Right = 1, + ImGuiMouseButton_Middle = 2, + ImGuiMouseButton_COUNT = 5 +}; + +// Enumeration for GetMouseCursor() +// User code may request backend to display given cursor by calling SetMouseCursor(), which is why we have some cursors that are marked unused here +enum ImGuiMouseCursor_ +{ + ImGuiMouseCursor_None = -1, + ImGuiMouseCursor_Arrow = 0, + ImGuiMouseCursor_TextInput, // When hovering over InputText, etc. + ImGuiMouseCursor_ResizeAll, // (Unused by Dear ImGui functions) + ImGuiMouseCursor_ResizeNS, // When hovering over a horizontal border + ImGuiMouseCursor_ResizeEW, // When hovering over a vertical border or a column + ImGuiMouseCursor_ResizeNESW, // When hovering over the bottom-left corner of a window + ImGuiMouseCursor_ResizeNWSE, // When hovering over the bottom-right corner of a window + ImGuiMouseCursor_Hand, // (Unused by Dear ImGui functions. Use for e.g. hyperlinks) + ImGuiMouseCursor_NotAllowed, // When hovering something with disallowed interaction. Usually a crossed circle. + ImGuiMouseCursor_COUNT +}; + +// Enumeration for AddMouseSourceEvent() actual source of Mouse Input data. +// Historically we use "Mouse" terminology everywhere to indicate pointer data, e.g. MousePos, IsMousePressed(), io.AddMousePosEvent() +// But that "Mouse" data can come from different source which occasionally may be useful for application to know about. +// You can submit a change of pointer type using io.AddMouseSourceEvent(). +enum ImGuiMouseSource : int +{ + ImGuiMouseSource_Mouse = 0, // Input is coming from an actual mouse. + ImGuiMouseSource_TouchScreen, // Input is coming from a touch screen (no hovering prior to initial press, less precise initial press aiming, dual-axis wheeling possible). + ImGuiMouseSource_Pen, // Input is coming from a pressure/magnetic pen (often used in conjunction with high-sampling rates). + ImGuiMouseSource_COUNT +}; + +// Enumeration for ImGui::SetWindow***(), SetNextWindow***(), SetNextItem***() functions +// Represent a condition. +// Important: Treat as a regular enum! Do NOT combine multiple values using binary operators! All the functions above treat 0 as a shortcut to ImGuiCond_Always. +enum ImGuiCond_ +{ + ImGuiCond_None = 0, // No condition (always set the variable), same as _Always + ImGuiCond_Always = 1 << 0, // No condition (always set the variable), same as _None + ImGuiCond_Once = 1 << 1, // Set the variable once per runtime session (only the first call will succeed) + ImGuiCond_FirstUseEver = 1 << 2, // Set the variable if the object/window has no persistently saved data (no entry in .ini file) + ImGuiCond_Appearing = 1 << 3, // Set the variable if the object/window is appearing after being hidden/inactive (or the first time) +}; + +//----------------------------------------------------------------------------- +// [SECTION] Helpers: Memory allocations macros, ImVector<> +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// IM_MALLOC(), IM_FREE(), IM_NEW(), IM_PLACEMENT_NEW(), IM_DELETE() +// We call C++ constructor on own allocated memory via the placement "new(ptr) Type()" syntax. +// Defining a custom placement new() with a custom parameter allows us to bypass including which on some platforms complains when user has disabled exceptions. +//----------------------------------------------------------------------------- + +struct ImNewWrapper {}; +inline void* operator new(size_t, ImNewWrapper, void* ptr) { return ptr; } +inline void operator delete(void*, ImNewWrapper, void*) {} // This is only required so we can use the symmetrical new() +#define IM_ALLOC(_SIZE) ImGui::MemAlloc(_SIZE) +#define IM_FREE(_PTR) ImGui::MemFree(_PTR) +#define IM_PLACEMENT_NEW(_PTR) new(ImNewWrapper(), _PTR) +#define IM_NEW(_TYPE) new(ImNewWrapper(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE +template void IM_DELETE(T* p) { if (p) { p->~T(); ImGui::MemFree(p); } } + +//----------------------------------------------------------------------------- +// ImVector<> +// Lightweight std::vector<>-like class to avoid dragging dependencies (also, some implementations of STL with debug enabled are absurdly slow, we bypass it so our code runs fast in debug). +//----------------------------------------------------------------------------- +// - You generally do NOT need to care or use this ever. But we need to make it available in imgui.h because some of our public structures are relying on it. +// - We use std-like naming convention here, which is a little unusual for this codebase. +// - Important: clear() frees memory, resize(0) keep the allocated buffer. We use resize(0) a lot to intentionally recycle allocated buffers across frames and amortize our costs. +// - Important: our implementation does NOT call C++ constructors/destructors, we treat everything as raw data! This is intentional but be extra mindful of that, +// Do NOT use this class as a std::vector replacement in your own code! Many of the structures used by dear imgui can be safely initialized by a zero-memset. +//----------------------------------------------------------------------------- + +IM_MSVC_RUNTIME_CHECKS_OFF +template +struct ImVector +{ + int Size; + int Capacity; + T* Data; + + // Provide standard typedefs but we don't use them ourselves. + typedef T value_type; + typedef value_type* iterator; + typedef const value_type* const_iterator; + + // Constructors, destructor + inline ImVector() { Size = Capacity = 0; Data = NULL; } + inline ImVector(const ImVector& src) { Size = Capacity = 0; Data = NULL; operator=(src); } + inline ImVector& operator=(const ImVector& src) { clear(); resize(src.Size); if (src.Data) memcpy(Data, src.Data, (size_t)Size * sizeof(T)); return *this; } + inline ~ImVector() { if (Data) IM_FREE(Data); } // Important: does not destruct anything + + inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } } // Important: does not destruct anything + inline void clear_delete() { for (int n = 0; n < Size; n++) IM_DELETE(Data[n]); clear(); } // Important: never called automatically! always explicit. + inline void clear_destruct() { for (int n = 0; n < Size; n++) Data[n].~T(); clear(); } // Important: never called automatically! always explicit. + + inline bool empty() const { return Size == 0; } + inline int size() const { return Size; } + inline int size_in_bytes() const { return Size * (int)sizeof(T); } + inline int max_size() const { return 0x7FFFFFFF / (int)sizeof(T); } + inline int capacity() const { return Capacity; } + inline T& operator[](int i) { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } + inline const T& operator[](int i) const { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } + + inline T* begin() { return Data; } + inline const T* begin() const { return Data; } + inline T* end() { return Data + Size; } + inline const T* end() const { return Data + Size; } + inline T& front() { IM_ASSERT(Size > 0); return Data[0]; } + inline const T& front() const { IM_ASSERT(Size > 0); return Data[0]; } + inline T& back() { IM_ASSERT(Size > 0); return Data[Size - 1]; } + inline const T& back() const { IM_ASSERT(Size > 0); return Data[Size - 1]; } + inline void swap(ImVector& rhs) { int rhs_size = rhs.Size; rhs.Size = Size; Size = rhs_size; int rhs_cap = rhs.Capacity; rhs.Capacity = Capacity; Capacity = rhs_cap; T* rhs_data = rhs.Data; rhs.Data = Data; Data = rhs_data; } + + inline int _grow_capacity(int sz) const { int new_capacity = Capacity ? (Capacity + Capacity / 2) : 8; return new_capacity > sz ? new_capacity : sz; } + inline void resize(int new_size) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); Size = new_size; } + inline void resize(int new_size, const T& v) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); if (new_size > Size) for (int n = Size; n < new_size; n++) memcpy(&Data[n], &v, sizeof(v)); Size = new_size; } + inline void shrink(int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; } // Resize a vector to a smaller size, guaranteed not to cause a reallocation + inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); IM_FREE(Data); } Data = new_data; Capacity = new_capacity; } + inline void reserve_discard(int new_capacity) { if (new_capacity <= Capacity) return; if (Data) IM_FREE(Data); Data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); Capacity = new_capacity; } + + // NB: It is illegal to call push_back/push_front/insert with a reference pointing inside the ImVector data itself! e.g. v.push_back(v[10]) is forbidden. + inline void push_back(const T& v) { if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v, sizeof(v)); Size++; } + inline void pop_back() { IM_ASSERT(Size > 0); Size--; } + inline void push_front(const T& v) { if (Size == 0) push_back(v); else insert(Data, v); } + inline T* erase(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + 1, ((size_t)Size - (size_t)off - 1) * sizeof(T)); Size--; return Data + off; } + inline T* erase(const T* it, const T* it_last){ IM_ASSERT(it >= Data && it < Data + Size && it_last >= it && it_last <= Data + Size); const ptrdiff_t count = it_last - it; const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + count, ((size_t)Size - (size_t)off - (size_t)count) * sizeof(T)); Size -= (int)count; return Data + off; } + inline T* erase_unsorted(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; if (it < Data + Size - 1) memcpy(Data + off, Data + Size - 1, sizeof(T)); Size--; return Data + off; } + inline T* insert(const T* it, const T& v) { IM_ASSERT(it >= Data && it <= Data + Size); const ptrdiff_t off = it - Data; if (Size == Capacity) reserve(_grow_capacity(Size + 1)); if (off < (int)Size) memmove(Data + off + 1, Data + off, ((size_t)Size - (size_t)off) * sizeof(T)); memcpy(&Data[off], &v, sizeof(v)); Size++; return Data + off; } + inline bool contains(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data++ == v) return true; return false; } + inline T* find(const T& v) { T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } + inline const T* find(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } + inline int find_index(const T& v) const { const T* data_end = Data + Size; const T* it = find(v); if (it == data_end) return -1; const ptrdiff_t off = it - Data; return (int)off; } + inline bool find_erase(const T& v) { const T* it = find(v); if (it < Data + Size) { erase(it); return true; } return false; } + inline bool find_erase_unsorted(const T& v) { const T* it = find(v); if (it < Data + Size) { erase_unsorted(it); return true; } return false; } + inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; return (int)off; } +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiStyle +//----------------------------------------------------------------------------- +// You may modify the ImGui::GetStyle() main instance during initialization and before NewFrame(). +// During the frame, use ImGui::PushStyleVar(ImGuiStyleVar_XXXX)/PopStyleVar() to alter the main style values, +// and ImGui::PushStyleColor(ImGuiCol_XXX)/PopStyleColor() for colors. +//----------------------------------------------------------------------------- + +struct ImGuiStyle +{ + float Alpha; // Global alpha applies to everything in Dear ImGui. + float DisabledAlpha; // Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha. + ImVec2 WindowPadding; // Padding within a window. + float WindowRounding; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. + float WindowBorderSize; // Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints(). + ImVec2 WindowTitleAlign; // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. + ImGuiDir WindowMenuButtonPosition; // Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. + float ChildRounding; // Radius of child window corners rounding. Set to 0.0f to have rectangular windows. + float ChildBorderSize; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + float PopupRounding; // Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding) + float PopupBorderSize; // Thickness of border around popup/tooltip windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 FramePadding; // Padding within a framed rectangle (used by most widgets). + float FrameRounding; // Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets). + float FrameBorderSize; // Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 ItemSpacing; // Horizontal and vertical spacing between widgets/lines. + ImVec2 ItemInnerSpacing; // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label). + ImVec2 CellPadding; // Padding within a table cell. CellPadding.y may be altered between different rows. + ImVec2 TouchExtraPadding; // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! + float IndentSpacing; // Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). + float ColumnsMinSpacing; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). + float ScrollbarSize; // Width of the vertical scrollbar, Height of the horizontal scrollbar. + float ScrollbarRounding; // Radius of grab corners for scrollbar. + float GrabMinSize; // Minimum width/height of a grab box for slider/scrollbar. + float GrabRounding; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. + float LogSliderDeadzone; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. + float TabRounding; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. + float TabBorderSize; // Thickness of border around tabs. + float TabMinWidthForCloseButton; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + float TabBarBorderSize; // Thickness of tab-bar separator, which takes on the tab active color to denote focus. + float TableAngledHeadersAngle; // Angle of angled headers (supported values range from -50.0f degrees to +50.0f degrees). + ImGuiDir ColorButtonPosition; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. + ImVec2 ButtonTextAlign; // Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered). + ImVec2 SelectableTextAlign; // Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. + float SeparatorTextBorderSize; // Thickkness of border in SeparatorText() + ImVec2 SeparatorTextAlign; // Alignment of text within the separator. Defaults to (0.0f, 0.5f) (left aligned, center). + ImVec2 SeparatorTextPadding; // Horizontal offset of text from each edge of the separator + spacing on other axis. Generally small values. .y is recommended to be == FramePadding.y. + ImVec2 DisplayWindowPadding; // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. + ImVec2 DisplaySafeAreaPadding; // If you cannot see the edges of your screen (e.g. on a TV) increase the safe area padding. Apply to popups/tooltips as well regular windows. NB: Prefer configuring your TV sets correctly! + float DockingSeparatorSize; // Thickness of resizing border between docked windows + float MouseCursorScale; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). We apply per-monitor DPI scaling over this scale. May be removed later. + bool AntiAliasedLines; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedFill; // Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. + float CircleTessellationMaxError; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. + ImVec4 Colors[ImGuiCol_COUNT]; + + // Behaviors + // (It is possible to modify those fields mid-frame if specific behavior need it, unlike e.g. configuration fields in ImGuiIO) + float HoverStationaryDelay; // Delay for IsItemHovered(ImGuiHoveredFlags_Stationary). Time required to consider mouse stationary. + float HoverDelayShort; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayShort). Usually used along with HoverStationaryDelay. + float HoverDelayNormal; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayNormal). " + ImGuiHoveredFlags HoverFlagsForTooltipMouse;// Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using mouse. + ImGuiHoveredFlags HoverFlagsForTooltipNav; // Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using keyboard/gamepad. + + IMGUI_API ImGuiStyle(); + IMGUI_API void ScaleAllSizes(float scale_factor); +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiIO +//----------------------------------------------------------------------------- +// Communicate most settings and inputs/outputs to Dear ImGui using this structure. +// Access via ImGui::GetIO(). Read 'Programmer guide' section in .cpp file for general usage. +//----------------------------------------------------------------------------- + +// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions. +// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration. +struct ImGuiKeyData +{ + bool Down; // True for if key is down + float DownDuration; // Duration the key has been down (<0.0f: not pressed, 0.0f: just pressed, >0.0f: time held) + float DownDurationPrev; // Last frame duration the key has been down + float AnalogValue; // 0.0f..1.0f for gamepad values +}; + +struct ImGuiIO +{ + //------------------------------------------------------------------ + // Configuration // Default value + //------------------------------------------------------------------ + + ImGuiConfigFlags ConfigFlags; // = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Gamepad/keyboard navigation options, etc. + ImGuiBackendFlags BackendFlags; // = 0 // See ImGuiBackendFlags_ enum. Set by backend (imgui_impl_xxx files or custom backend) to communicate features supported by the backend. + ImVec2 DisplaySize; // // Main display size, in pixels (generally == GetMainViewport()->Size). May change every frame. + float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. May change every frame. + float IniSavingRate; // = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds. + const char* IniFilename; // = "imgui.ini" // Path to .ini file (important: default "imgui.ini" is relative to current working dir!). Set NULL to disable automatic .ini loading/saving or if you want to manually call LoadIniSettingsXXX() / SaveIniSettingsXXX() functions. + const char* LogFilename; // = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified). + void* UserData; // = NULL // Store your own data. + + ImFontAtlas*Fonts; // // Font atlas: load, rasterize and pack one or more fonts into a single texture. + float FontGlobalScale; // = 1.0f // Global scale all fonts + bool FontAllowUserScaling; // = false // Allow user scaling text of individual window with CTRL+Wheel. + ImFont* FontDefault; // = NULL // Font to use on NewFrame(). Use NULL to uses Fonts->Fonts[0]. + ImVec2 DisplayFramebufferScale; // = (1, 1) // For retina display or other situations where window coordinates are different from framebuffer coordinates. This generally ends up in ImDrawData::FramebufferScale. + + // Docking options (when ImGuiConfigFlags_DockingEnable is set) + bool ConfigDockingNoSplit; // = false // Simplified docking mode: disable window splitting, so docking is limited to merging multiple windows together into tab-bars. + bool ConfigDockingWithShift; // = false // Enable docking with holding Shift key (reduce visual noise, allows dropping in wider space) + bool ConfigDockingAlwaysTabBar; // = false // [BETA] [FIXME: This currently creates regression with auto-sizing and general overhead] Make every single floating window display within a docking node. + bool ConfigDockingTransparentPayload;// = false // [BETA] Make window or viewport transparent when docking and only display docking boxes on the target viewport. Useful if rendering of multiple viewport cannot be synced. Best used with ConfigViewportsNoAutoMerge. + + // Viewport options (when ImGuiConfigFlags_ViewportsEnable is set) + bool ConfigViewportsNoAutoMerge; // = false; // Set to make all floating imgui windows always create their own viewport. Otherwise, they are merged into the main host viewports when overlapping it. May also set ImGuiViewportFlags_NoAutoMerge on individual viewport. + bool ConfigViewportsNoTaskBarIcon; // = false // Disable default OS task bar icon flag for secondary viewports. When a viewport doesn't want a task bar icon, ImGuiViewportFlags_NoTaskBarIcon will be set on it. + bool ConfigViewportsNoDecoration; // = true // Disable default OS window decoration flag for secondary viewports. When a viewport doesn't want window decorations, ImGuiViewportFlags_NoDecoration will be set on it. Enabling decoration can create subsequent issues at OS levels (e.g. minimum window size). + bool ConfigViewportsNoDefaultParent; // = false // Disable default OS parenting to main viewport for secondary viewports. By default, viewports are marked with ParentViewportId = , expecting the platform backend to setup a parent/child relationship between the OS windows (some backend may ignore this). Set to true if you want the default to be 0, then all viewports will be top-level OS windows. + + // Miscellaneous options + bool MouseDrawCursor; // = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by backend implementations. + bool ConfigMacOSXBehaviors; // = defined(__APPLE__) // OS X style: Text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, Line/Text Start and End using Cmd+Arrows instead of Home/End, Double click selects by word instead of selecting whole text, Multi-selection in lists uses Cmd/Super instead of Ctrl. + bool ConfigInputTrickleEventQueue; // = true // Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates. + bool ConfigInputTextCursorBlink; // = true // Enable blinking cursor (optional as some users consider it to be distracting). + bool ConfigInputTextEnterKeepActive; // = false // [BETA] Pressing Enter will keep item active and select contents (single-line only). + bool ConfigDragClickToInputText; // = false // [BETA] Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving). Not desirable on devices without a keyboard. + bool ConfigWindowsResizeFromEdges; // = true // Enable resizing of windows from their edges and from the lower-left corner. This requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag) + bool ConfigWindowsMoveFromTitleBarOnly; // = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar. + float ConfigMemoryCompactTimer; // = 60.0f // Timer (in seconds) to free transient windows/tables memory buffers when unused. Set to -1.0f to disable. + + // Inputs Behaviors + // (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle) + float MouseDoubleClickTime; // = 0.30f // Time for a double-click, in seconds. + float MouseDoubleClickMaxDist; // = 6.0f // Distance threshold to stay in to validate a double-click, in pixels. + float MouseDragThreshold; // = 6.0f // Distance threshold before considering we are dragging. + float KeyRepeatDelay; // = 0.275f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). + float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds. + + //------------------------------------------------------------------ + // Debug options + //------------------------------------------------------------------ + + // Tools to test correct Begin/End and BeginChild/EndChild behaviors. + // Presently Begin()/End() and BeginChild()/EndChild() needs to ALWAYS be called in tandem, regardless of return value of BeginXXX() + // This is inconsistent with other BeginXXX functions and create confusion for many users. + // We expect to update the API eventually. In the meanwhile we provide tools to facilitate checking user-code behavior. + bool ConfigDebugBeginReturnValueOnce;// = false // First-time calls to Begin()/BeginChild() will return false. NEEDS TO BE SET AT APPLICATION BOOT TIME if you don't want to miss windows. + bool ConfigDebugBeginReturnValueLoop;// = false // Some calls to Begin()/BeginChild() will return false. Will cycle through window depths then repeat. Suggested use: add "io.ConfigDebugBeginReturnValue = io.KeyShift" in your main loop then occasionally press SHIFT. Windows should be flickering while running. + + // Option to deactivate io.AddFocusEvent(false) handling. May facilitate interactions with a debugger when focus loss leads to clearing inputs data. + // Backends may have other side-effects on focus loss, so this will reduce side-effects but not necessary remove all of them. + // Consider using e.g. Win32's IsDebuggerPresent() as an additional filter (or see ImOsIsDebuggerPresent() in imgui_test_engine/imgui_te_utils.cpp for a Unix compatible version). + bool ConfigDebugIgnoreFocusLoss; // = false // Ignore io.AddFocusEvent(false), consequently not calling io.ClearInputKeys() in input processing. + + // Option to audit .ini data + bool ConfigDebugIniSettings; // = false // Save .ini data with extra comments (particularly helpful for Docking, but makes saving slower) + + //------------------------------------------------------------------ + // Platform Functions + // (the imgui_impl_xxxx backend files are setting those up for you) + //------------------------------------------------------------------ + + // Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff. + const char* BackendPlatformName; // = NULL + const char* BackendRendererName; // = NULL + void* BackendPlatformUserData; // = NULL // User data for platform backend + void* BackendRendererUserData; // = NULL // User data for renderer backend + void* BackendLanguageUserData; // = NULL // User data for non C++ programming language backend + + // Optional: Access OS clipboard + // (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures) + const char* (*GetClipboardTextFn)(void* user_data); + void (*SetClipboardTextFn)(void* user_data, const char* text); + void* ClipboardUserData; + + // Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows) + // (default to use native imm32 api on Windows) + void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); + + // Optional: Platform locale + ImWchar PlatformLocaleDecimalPoint; // '.' // [Experimental] Configure decimal point e.g. '.' or ',' useful for some languages (e.g. German), generally pulled from *localeconv()->decimal_point + + //------------------------------------------------------------------ + // Input - Call before calling NewFrame() + //------------------------------------------------------------------ + + // Input Functions + IMGUI_API void AddKeyEvent(ImGuiKey key, bool down); // Queue a new key down/up event. Key should be "translated" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) + IMGUI_API void AddKeyAnalogEvent(ImGuiKey key, bool down, float v); // Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend. + IMGUI_API void AddMousePosEvent(float x, float y); // Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered) + IMGUI_API void AddMouseButtonEvent(int button, bool down); // Queue a mouse button change + IMGUI_API void AddMouseWheelEvent(float wheel_x, float wheel_y); // Queue a mouse wheel update. wheel_y<0: scroll down, wheel_y>0: scroll up, wheel_x<0: scroll right, wheel_x>0: scroll left. + IMGUI_API void AddMouseSourceEvent(ImGuiMouseSource source); // Queue a mouse source change (Mouse/TouchScreen/Pen) + IMGUI_API void AddMouseViewportEvent(ImGuiID id); // Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to call this (for multi-viewport support). + IMGUI_API void AddFocusEvent(bool focused); // Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window) + IMGUI_API void AddInputCharacter(unsigned int c); // Queue a new character input + IMGUI_API void AddInputCharacterUTF16(ImWchar16 c); // Queue a new character input from a UTF-16 character, it can be a surrogate + IMGUI_API void AddInputCharactersUTF8(const char* str); // Queue a new characters input from a UTF-8 string + + IMGUI_API void SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index = -1); // [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. + IMGUI_API void SetAppAcceptingEvents(bool accepting_events); // Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. + IMGUI_API void ClearEventsQueue(); // Clear all incoming events. + IMGUI_API void ClearInputKeys(); // Clear current keyboard/mouse/gamepad state + current frame text input buffer. Equivalent to releasing all keys/buttons. +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + IMGUI_API void ClearInputCharacters(); // [Obsolete] Clear the current frame text input buffer. Now included within ClearInputKeys(). +#endif + + //------------------------------------------------------------------ + // Output - Updated by NewFrame() or EndFrame()/Render() + // (when reading from the io.WantCaptureMouse, io.WantCaptureKeyboard flags to dispatch your inputs, it is + // generally easier and more correct to use their state BEFORE calling NewFrame(). See FAQ for details!) + //------------------------------------------------------------------ + + bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). + bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). + bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). + bool WantSetMousePos; // MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. + bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! + bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. + bool NavVisible; // Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events). + float Framerate; // Estimate of application framerate (rolling average over 60 frames, based on io.DeltaTime), in frame per second. Solely for convenience. Slow applications may not want to use a moving average or may want to reset underlying buffers occasionally. + int MetricsRenderVertices; // Vertices output during last call to Render() + int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 + int MetricsRenderWindows; // Number of visible windows + int MetricsActiveWindows; // Number of active windows + ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. + + // Legacy: before 1.87, we required backend to fill io.KeyMap[] (imgui->native map) during initialization and io.KeysDown[] (native indices) every frame. + // This is still temporarily supported as a legacy feature. However the new preferred scheme is for backend to call io.AddKeyEvent(). + // Old (<1.87): ImGui::IsKeyPressed(ImGui::GetIO().KeyMap[ImGuiKey_Space]) --> New (1.87+) ImGui::IsKeyPressed(ImGuiKey_Space) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + int KeyMap[ImGuiKey_COUNT]; // [LEGACY] Input: map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. The first 512 are now unused and should be kept zero. Legacy backend will write into KeyMap[] using ImGuiKey_ indices which are always >512. + bool KeysDown[ImGuiKey_COUNT]; // [LEGACY] Input: Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). This used to be [512] sized. It is now ImGuiKey_COUNT to allow legacy io.KeysDown[GetKeyIndex(...)] to work without an overflow. + float NavInputs[ImGuiNavInput_COUNT]; // [LEGACY] Since 1.88, NavInputs[] was removed. Backends from 1.60 to 1.86 won't build. Feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +#endif +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + void* ImeWindowHandle; // = NULL // [Obsoleted in 1.87] Set ImGuiViewport::PlatformHandleRaw instead. Set this to your HWND to get automatic IME cursor positioning. +#else + void* _UnusedPadding; +#endif + + //------------------------------------------------------------------ + // [Internal] Dear ImGui will maintain those fields. Forward compatibility not guaranteed! + //------------------------------------------------------------------ + + ImGuiContext* Ctx; // Parent UI context (needs to be set explicitly by parent). + + // Main Input State + // (this block used to be written by backend, since 1.87 it is best to NOT write to those directly, call the AddXXX functions above instead) + // (reading from those variables is fair game, as they are extremely unlikely to be moving anywhere) + ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) + bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Other buttons allow us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. + float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. >0 scrolls Up, <0 scrolls Down. Hold SHIFT to turn vertical scroll into horizontal scroll. + float MouseWheelH; // Mouse wheel Horizontal. >0 scrolls Left, <0 scrolls Right. Most users don't have a mouse with a horizontal wheel, may not be filled by all backends. + ImGuiMouseSource MouseSource; // Mouse actual input peripheral (Mouse/TouchScreen/Pen). + ImGuiID MouseHoveredViewport; // (Optional) Modify using io.AddMouseViewportEvent(). With multi-viewports: viewport the OS mouse is hovering. If possible _IGNORING_ viewports with the ImGuiViewportFlags_NoInputs flag is much better (few backends can handle that). Set io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport if you can provide this info. If you don't imgui will infer the value using the rectangles and last focused time of the viewports it knows about (ignoring other OS windows). + bool KeyCtrl; // Keyboard modifier down: Control + bool KeyShift; // Keyboard modifier down: Shift + bool KeyAlt; // Keyboard modifier down: Alt + bool KeySuper; // Keyboard modifier down: Cmd/Super/Windows + + // Other state maintained from data above + IO function calls + ImGuiKeyChord KeyMods; // Key mods flags (any of ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Alt/ImGuiMod_Super flags, same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags. DOES NOT CONTAINS ImGuiMod_Shortcut which is pretranslated). Read-only, updated by NewFrame() + ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; // Key state for all known keys. Use IsKeyXXX() functions to access this. + bool WantCaptureMouseUnlessPopupClose; // Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup. + ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) + ImVec2 MouseClickedPos[5]; // Position at time of clicking + double MouseClickedTime[5]; // Time of last click (used to figure out double-click) + bool MouseClicked[5]; // Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0) + bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2) + ImU16 MouseClickedCount[5]; // == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down + ImU16 MouseClickedLastCount[5]; // Count successive number of clicks. Stays valid after mouse release. Reset after another click is done. + bool MouseReleased[5]; // Mouse button went from Down to !Down + bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds. + bool MouseDownOwnedUnlessPopupClose[5]; // Track if button was clicked inside a dear imgui window. + bool MouseWheelRequestAxisSwap; // On a non-Mac system, holding SHIFT requests WheelY to perform the equivalent of a WheelX event. On a Mac system this is already enforced by the system. + float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) + float MouseDownDurationPrev[5]; // Previous time the mouse button has been down + ImVec2 MouseDragMaxDistanceAbs[5]; // Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point + float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds) + float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. + bool AppFocusLost; // Only modify via AddFocusEvent() + bool AppAcceptingEvents; // Only modify via SetAppAcceptingEvents() + ImS8 BackendUsingLegacyKeyArrays; // -1: unknown, 0: using AddKeyEvent(), 1: using legacy io.KeysDown[] + bool BackendUsingLegacyNavInputArray; // 0: using AddKeyAnalogEvent(), 1: writing to legacy io.NavInputs[] directly + ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16() + ImVector InputQueueCharacters; // Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper. + + IMGUI_API ImGuiIO(); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Misc data structures +//----------------------------------------------------------------------------- + +// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used. +// The callback function should return 0 by default. +// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details) +// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) +// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration +// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB +// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows +// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. +// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. +struct ImGuiInputTextCallbackData +{ + ImGuiContext* Ctx; // Parent UI context + ImGuiInputTextFlags EventFlag; // One ImGuiInputTextFlags_Callback* // Read-only + ImGuiInputTextFlags Flags; // What user passed to InputText() // Read-only + void* UserData; // What user passed to InputText() // Read-only + + // Arguments for the different callback events + // - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary. + // - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state. + ImWchar EventChar; // Character input // Read-write // [CharFilter] Replace character with another one, or set to zero to drop. return 1 is equivalent to setting EventChar=0; + ImGuiKey EventKey; // Key pressed (Up/Down/TAB) // Read-only // [Completion,History] + char* Buf; // Text buffer // Read-write // [Resize] Can replace pointer / [Completion,History,Always] Only write to pointed data, don't replace the actual pointer! + int BufTextLen; // Text length (in bytes) // Read-write // [Resize,Completion,History,Always] Exclude zero-terminator storage. In C land: == strlen(some_text), in C++ land: string.length() + int BufSize; // Buffer size (in bytes) = capacity+1 // Read-only // [Resize,Completion,History,Always] Include zero-terminator storage. In C land == ARRAYSIZE(my_char_array), in C++ land: string.capacity()+1 + bool BufDirty; // Set if you modify Buf/BufTextLen! // Write // [Completion,History,Always] + int CursorPos; // // Read-write // [Completion,History,Always] + int SelectionStart; // // Read-write // [Completion,History,Always] == to SelectionEnd when no selection) + int SelectionEnd; // // Read-write // [Completion,History,Always] + + // Helper functions for text manipulation. + // Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection. + IMGUI_API ImGuiInputTextCallbackData(); + IMGUI_API void DeleteChars(int pos, int bytes_count); + IMGUI_API void InsertChars(int pos, const char* text, const char* text_end = NULL); + void SelectAll() { SelectionStart = 0; SelectionEnd = BufTextLen; } + void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; } + bool HasSelection() const { return SelectionStart != SelectionEnd; } +}; + +// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin(). +// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough. +struct ImGuiSizeCallbackData +{ + void* UserData; // Read-only. What user passed to SetNextWindowSizeConstraints(). Generally store an integer or float in here (need reinterpret_cast<>). + ImVec2 Pos; // Read-only. Window position, for reference. + ImVec2 CurrentSize; // Read-only. Current window size. + ImVec2 DesiredSize; // Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing. +}; + +// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions. +// Important: the content of this class is still highly WIP and likely to change and be refactored +// before we stabilize Docking features. Please be mindful if using this. +// Provide hints: +// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.) +// - To the platform backend for OS level parent/child relationships of viewport. +// - To the docking system for various options and filtering. +struct ImGuiWindowClass +{ + ImGuiID ClassId; // User data. 0 = Default class (unclassed). Windows of different classes cannot be docked with each others. + ImGuiID ParentViewportId; // Hint for the platform backend. -1: use default. 0: request platform backend to not parent the platform. != 0: request platform backend to create a parent<>child relationship between the platform windows. Not conforming backends are free to e.g. parent every viewport to the main viewport or not. + ImGuiViewportFlags ViewportFlagsOverrideSet; // Viewport flags to set when a window of this class owns a viewport. This allows you to enforce OS decoration or task bar icon, override the defaults on a per-window basis. + ImGuiViewportFlags ViewportFlagsOverrideClear; // Viewport flags to clear when a window of this class owns a viewport. This allows you to enforce OS decoration or task bar icon, override the defaults on a per-window basis. + ImGuiTabItemFlags TabItemFlagsOverrideSet; // [EXPERIMENTAL] TabItem flags to set when a window of this class gets submitted into a dock node tab bar. May use with ImGuiTabItemFlags_Leading or ImGuiTabItemFlags_Trailing. + ImGuiDockNodeFlags DockNodeFlagsOverrideSet; // [EXPERIMENTAL] Dock node flags to set when a window of this class is hosted by a dock node (it doesn't have to be selected!) + bool DockingAlwaysTabBar; // Set to true to enforce single floating windows of this class always having their own docking node (equivalent of setting the global io.ConfigDockingAlwaysTabBar) + bool DockingAllowUnclassed; // Set to true to allow windows of this class to be docked/merged with an unclassed window. // FIXME-DOCK: Move to DockNodeFlags override? + + ImGuiWindowClass() { memset(this, 0, sizeof(*this)); ParentViewportId = (ImGuiID)-1; DockingAllowUnclassed = true; } +}; + +// Data payload for Drag and Drop operations: AcceptDragDropPayload(), GetDragDropPayload() +struct ImGuiPayload +{ + // Members + void* Data; // Data (copied and owned by dear imgui) + int DataSize; // Data size + + // [Internal] + ImGuiID SourceId; // Source item id + ImGuiID SourceParentId; // Source parent id (if available) + int DataFrameCount; // Data timestamp + char DataType[32 + 1]; // Data type tag (short user-supplied string, 32 characters max) + bool Preview; // Set when AcceptDragDropPayload() was called and mouse has been hovering the target item (nb: handle overlapping drag targets) + bool Delivery; // Set when AcceptDragDropPayload() was called and mouse button is released over the target item. + + ImGuiPayload() { Clear(); } + void Clear() { SourceId = SourceParentId = 0; Data = NULL; DataSize = 0; memset(DataType, 0, sizeof(DataType)); DataFrameCount = -1; Preview = Delivery = false; } + bool IsDataType(const char* type) const { return DataFrameCount != -1 && strcmp(type, DataType) == 0; } + bool IsPreview() const { return Preview; } + bool IsDelivery() const { return Delivery; } +}; + +// Sorting specification for one column of a table (sizeof == 12 bytes) +struct ImGuiTableColumnSortSpecs +{ + ImGuiID ColumnUserID; // User id of the column (if specified by a TableSetupColumn() call) + ImS16 ColumnIndex; // Index of the column + ImS16 SortOrder; // Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a single criteria will always have a 0 here) + ImGuiSortDirection SortDirection : 8; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending + + ImGuiTableColumnSortSpecs() { memset(this, 0, sizeof(*this)); } +}; + +// Sorting specifications for a table (often handling sort specs for a single column, occasionally more) +// Obtained by calling TableGetSortSpecs(). +// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time. +// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame! +struct ImGuiTableSortSpecs +{ + const ImGuiTableColumnSortSpecs* Specs; // Pointer to sort spec array. + int SpecsCount; // Sort spec count. Most often 1. May be > 1 when ImGuiTableFlags_SortMulti is enabled. May be == 0 when ImGuiTableFlags_SortTristate is enabled. + bool SpecsDirty; // Set to true when specs have changed since last time! Use this to sort again, then clear the flag. + + ImGuiTableSortSpecs() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, Math Operators, ImColor) +//----------------------------------------------------------------------------- + +// Helper: Unicode defines +#define IM_UNICODE_CODEPOINT_INVALID 0xFFFD // Invalid Unicode code point (standard value). +#ifdef IMGUI_USE_WCHAR32 +#define IM_UNICODE_CODEPOINT_MAX 0x10FFFF // Maximum Unicode code point supported by this build. +#else +#define IM_UNICODE_CODEPOINT_MAX 0xFFFF // Maximum Unicode code point supported by this build. +#endif + +// Helper: Execute a block of code at maximum once a frame. Convenient if you want to quickly create a UI within deep-nested code that runs multiple times every frame. +// Usage: static ImGuiOnceUponAFrame oaf; if (oaf) ImGui::Text("This will be called only once per frame"); +struct ImGuiOnceUponAFrame +{ + ImGuiOnceUponAFrame() { RefFrame = -1; } + mutable int RefFrame; + operator bool() const { int current_frame = ImGui::GetFrameCount(); if (RefFrame == current_frame) return false; RefFrame = current_frame; return true; } +}; + +// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" +struct ImGuiTextFilter +{ + IMGUI_API ImGuiTextFilter(const char* default_filter = ""); + IMGUI_API bool Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f); // Helper calling InputText+Build + IMGUI_API bool PassFilter(const char* text, const char* text_end = NULL) const; + IMGUI_API void Build(); + void Clear() { InputBuf[0] = 0; Build(); } + bool IsActive() const { return !Filters.empty(); } + + // [Internal] + struct ImGuiTextRange + { + const char* b; + const char* e; + + ImGuiTextRange() { b = e = NULL; } + ImGuiTextRange(const char* _b, const char* _e) { b = _b; e = _e; } + bool empty() const { return b == e; } + IMGUI_API void split(char separator, ImVector* out) const; + }; + char InputBuf[256]; + ImVectorFilters; + int CountGrep; +}; + +// Helper: Growable text buffer for logging/accumulating text +// (this could be called 'ImGuiTextBuilder' / 'ImGuiStringBuilder') +struct ImGuiTextBuffer +{ + ImVector Buf; + IMGUI_API static char EmptyString[1]; + + ImGuiTextBuffer() { } + inline char operator[](int i) const { IM_ASSERT(Buf.Data != NULL); return Buf.Data[i]; } + const char* begin() const { return Buf.Data ? &Buf.front() : EmptyString; } + const char* end() const { return Buf.Data ? &Buf.back() : EmptyString; } // Buf is zero-terminated, so end() will point on the zero-terminator + int size() const { return Buf.Size ? Buf.Size - 1 : 0; } + bool empty() const { return Buf.Size <= 1; } + void clear() { Buf.clear(); } + void reserve(int capacity) { Buf.reserve(capacity); } + const char* c_str() const { return Buf.Data ? Buf.Data : EmptyString; } + IMGUI_API void append(const char* str, const char* str_end = NULL); + IMGUI_API void appendf(const char* fmt, ...) IM_FMTARGS(2); + IMGUI_API void appendfv(const char* fmt, va_list args) IM_FMTLIST(2); +}; + +// Helper: Key->Value storage +// Typically you don't have to worry about this since a storage is held within each Window. +// We use it to e.g. store collapse state for a tree (Int 0/1) +// This is optimized for efficient lookup (dichotomy into a contiguous buffer) and rare insertion (typically tied to user interactions aka max once a frame) +// You can use it as custom user storage for temporary values. Declare your own storage if, for example: +// - You want to manipulate the open/close state of a particular sub-tree in your interface (tree node uses Int 0/1 to store their state). +// - You want to store custom debug data easily without adding or editing structures in your code (probably not efficient, but convenient) +// Types are NOT stored, so it is up to you to make sure your Key don't collide with different types. +struct ImGuiStorage +{ + // [Internal] + struct ImGuiStoragePair + { + ImGuiID key; + union { int val_i; float val_f; void* val_p; }; + ImGuiStoragePair(ImGuiID _key, int _val) { key = _key; val_i = _val; } + ImGuiStoragePair(ImGuiID _key, float _val) { key = _key; val_f = _val; } + ImGuiStoragePair(ImGuiID _key, void* _val) { key = _key; val_p = _val; } + }; + + ImVector Data; + + // - 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. + 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; + IMGUI_API void SetBool(ImGuiID key, bool val); + IMGUI_API float GetFloat(ImGuiID key, float default_val = 0.0f) const; + IMGUI_API void SetFloat(ImGuiID key, float val); + IMGUI_API void* GetVoidPtr(ImGuiID key) const; // default_val is NULL + IMGUI_API void SetVoidPtr(ImGuiID key, void* val); + + // - Get***Ref() functions finds pair, insert on demand if missing, return pointer. Useful if you intend to do Get+Set. + // - References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. + // - A typical use case where this is convenient for quick hacking (e.g. add storage during a live Edit&Continue session if you can't modify existing struct) + // float* pvar = ImGui::GetFloatRef(key); ImGui::SliderFloat("var", pvar, 0, 100.0f); some_var += *pvar; + IMGUI_API int* GetIntRef(ImGuiID key, int default_val = 0); + IMGUI_API bool* GetBoolRef(ImGuiID key, bool default_val = false); + IMGUI_API float* GetFloatRef(ImGuiID key, float default_val = 0.0f); + IMGUI_API void** GetVoidPtrRef(ImGuiID key, void* default_val = NULL); + + // Advanced: for quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. + IMGUI_API void BuildSortByKey(); + // Obsolete: use on your own storage if you know only integer are being stored (open/close all tree nodes) + IMGUI_API void SetAllInt(int val); +}; + +// Helper: Manually clip large list of items. +// If you have lots evenly spaced items and you have random access to the list, you can perform coarse +// clipping based on visibility to only submit items that are in view. +// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped. +// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally +// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily +// scale using lists with tens of thousands of items without a problem) +// Usage: +// ImGuiListClipper clipper; +// clipper.Begin(1000); // We have 1000 elements, evenly spaced. +// while (clipper.Step()) +// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) +// ImGui::Text("line number %d", i); +// Generally what happens is: +// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not. +// - User code submit that one element. +// - Clipper can measure the height of the first element +// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element. +// - User code submit visible elements. +// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc. +struct ImGuiListClipper +{ + ImGuiContext* Ctx; // Parent UI context + int DisplayStart; // First item to display, updated by each call to Step() + int DisplayEnd; // End of items to display (exclusive) + int ItemsCount; // [Internal] Number of items + float ItemsHeight; // [Internal] Height of item after a first step and item submission can calculate it + float StartPosY; // [Internal] Cursor position at the time of Begin() or after table frozen rows are all processed + void* TempData; // [Internal] Internal data + + // items_count: Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step) + // items_height: Use -1.0f to be calculated automatically on first step. Otherwise pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing(). + IMGUI_API ImGuiListClipper(); + IMGUI_API ~ImGuiListClipper(); + IMGUI_API void Begin(int items_count, float items_height = -1.0f); + IMGUI_API void End(); // Automatically called on the last call of Step() that returns false. + IMGUI_API bool Step(); // Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items. + + // Call IncludeItemByIndex() or IncludeItemsByIndex() *BEFORE* first call to Step() if you need a range of items to not be clipped, regardless of their visibility. + // (Due to alignment / padding of certain items it is possible that an extra item may be included on either end of the display range). + inline void IncludeItemByIndex(int item_index) { IncludeItemsByIndex(item_index, item_index + 1); } + IMGUI_API void IncludeItemsByIndex(int item_begin, int item_end); // item_end is exclusive e.g. use (42, 42+1) to make item 42 never clipped. + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void IncludeRangeByIndices(int item_begin, int item_end) { IncludeItemsByIndex(item_begin, item_end); } // [renamed in 1.89.9] + inline void ForceDisplayRangeByIndices(int item_begin, int item_end) { IncludeItemsByIndex(item_begin, item_end); } // [renamed in 1.89.6] + //inline ImGuiListClipper(int items_count, float items_height = -1.0f) { memset(this, 0, sizeof(*this)); ItemsCount = -1; Begin(items_count, items_height); } // [removed in 1.79] +#endif +}; + +// Helpers: ImVec2/ImVec4 operators +// - It is important that we are keeping those disabled by default so they don't leak in user space. +// - This is in order to allow user enabling implicit cast operators between ImVec2/ImVec4 and their own types (using IM_VEC2_CLASS_EXTRA in imconfig.h) +// - You can use '#define IMGUI_DEFINE_MATH_OPERATORS' to import our operators, provided as a courtesy. +#ifdef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS_IMPLEMENTED +IM_MSVC_RUNTIME_CHECKS_OFF +static inline ImVec2 operator*(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x * rhs, lhs.y * rhs); } +static inline ImVec2 operator/(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x / rhs, lhs.y / rhs); } +static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x + rhs.x, lhs.y + rhs.y); } +static inline ImVec2 operator-(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x - rhs.x, lhs.y - rhs.y); } +static inline ImVec2 operator*(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } +static inline ImVec2 operator/(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x / rhs.x, lhs.y / rhs.y); } +static inline ImVec2 operator-(const ImVec2& lhs) { return ImVec2(-lhs.x, -lhs.y); } +static inline ImVec2& operator*=(ImVec2& lhs, const float rhs) { lhs.x *= rhs; lhs.y *= rhs; return lhs; } +static inline ImVec2& operator/=(ImVec2& lhs, const float rhs) { lhs.x /= rhs; lhs.y /= rhs; return lhs; } +static inline ImVec2& operator+=(ImVec2& lhs, const ImVec2& rhs) { lhs.x += rhs.x; lhs.y += rhs.y; return lhs; } +static inline ImVec2& operator-=(ImVec2& lhs, const ImVec2& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y; return lhs; } +static inline ImVec2& operator*=(ImVec2& lhs, const ImVec2& rhs) { lhs.x *= rhs.x; lhs.y *= rhs.y; return lhs; } +static inline ImVec2& operator/=(ImVec2& lhs, const ImVec2& rhs) { lhs.x /= rhs.x; lhs.y /= rhs.y; return lhs; } +static inline ImVec4 operator+(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } +static inline ImVec4 operator-(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } +static inline ImVec4 operator*(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } +IM_MSVC_RUNTIME_CHECKS_RESTORE +#endif + +// Helpers macros to generate 32-bit encoded colors +// User can declare their own format by #defining the 5 _SHIFT/_MASK macros in their imconfig file. +#ifndef IM_COL32_R_SHIFT +#ifdef IMGUI_USE_BGRA_PACKED_COLOR +#define IM_COL32_R_SHIFT 16 +#define IM_COL32_G_SHIFT 8 +#define IM_COL32_B_SHIFT 0 +#define IM_COL32_A_SHIFT 24 +#define IM_COL32_A_MASK 0xFF000000 +#else +#define IM_COL32_R_SHIFT 0 +#define IM_COL32_G_SHIFT 8 +#define IM_COL32_B_SHIFT 16 +#define IM_COL32_A_SHIFT 24 +#define IM_COL32_A_MASK 0xFF000000 +#endif +#endif +#define IM_COL32(R,G,B,A) (((ImU32)(A)<> IM_COL32_R_SHIFT) & 0xFF) * (1.0f / 255.0f), (float)((rgba >> IM_COL32_G_SHIFT) & 0xFF) * (1.0f / 255.0f), (float)((rgba >> IM_COL32_B_SHIFT) & 0xFF) * (1.0f / 255.0f), (float)((rgba >> IM_COL32_A_SHIFT) & 0xFF) * (1.0f / 255.0f)) {} + inline operator ImU32() const { return ImGui::ColorConvertFloat4ToU32(Value); } + inline operator ImVec4() const { return Value; } + + // FIXME-OBSOLETE: May need to obsolete/cleanup those helpers. + inline void SetHSV(float h, float s, float v, float a = 1.0f){ ImGui::ColorConvertHSVtoRGB(h, s, v, Value.x, Value.y, Value.z); Value.w = a; } + static ImColor HSV(float h, float s, float v, float a = 1.0f) { float r, g, b; ImGui::ColorConvertHSVtoRGB(h, s, v, r, g, b); return ImColor(r, g, b, a); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Drawing API (ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawListFlags, ImDrawList, ImDrawData) +// Hold a series of drawing commands. The user provides a renderer for ImDrawData which essentially contains an array of ImDrawList. +//----------------------------------------------------------------------------- + +// The maximum line width to bake anti-aliased textures for. Build atlas with ImFontAtlasFlags_NoBakedLines to disable baking. +#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX +#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (63) +#endif + +// ImDrawCallback: Draw callbacks for advanced uses [configurable type: override in imconfig.h] +// NB: You most likely do NOT need to use draw callbacks just to create your own widget or customized UI rendering, +// you can poke into the draw list for that! Draw callback may be useful for example to: +// A) Change your GPU render state, +// B) render a complex 3D scene inside a UI element without an intermediate texture/render target, etc. +// The expected behavior from your rendering function is 'if (cmd.UserCallback != NULL) { cmd.UserCallback(parent_list, cmd); } else { RenderTriangles() }' +// If you want to override the signature of ImDrawCallback, you can simply use e.g. '#define ImDrawCallback MyDrawCallback' (in imconfig.h) + update rendering backend accordingly. +#ifndef ImDrawCallback +typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); +#endif + +// Special Draw callback value to request renderer backend to reset the graphics/render state. +// The renderer backend needs to handle this special value, otherwise it will crash trying to call a function at this address. +// This is useful for example if you submitted callbacks which you know have altered the render state and you want it to be restored. +// It is not done by default because they are many perfectly useful way of altering render state for imgui contents (e.g. changing shader/blending settings before an Image call). +#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-1) + +// Typically, 1 command = 1 GPU draw call (unless command is a callback) +// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled, +// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. +// Backends made for <1.71. will typically ignore the VtxOffset fields. +// - The ClipRect/TextureId/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for). +struct ImDrawCmd +{ + ImVec4 ClipRect; // 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates + ImTextureID TextureId; // 4-8 // User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas. + unsigned int VtxOffset; // 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices. + unsigned int IdxOffset; // 4 // Start offset in index buffer. + unsigned int ElemCount; // 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[]. + ImDrawCallback UserCallback; // 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally. + void* UserCallbackData; // 4-8 // The draw callback code can access this. + + ImDrawCmd() { memset(this, 0, sizeof(*this)); } // Also ensure our padding fields are zeroed + + // Since 1.83: returns ImTextureID associated with this draw call. Warning: DO NOT assume this is always same as 'TextureId' (we will change this function for an upcoming feature) + inline ImTextureID GetTexID() const { return TextureId; } +}; + +// Vertex layout +#ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT +struct ImDrawVert +{ + ImVec2 pos; + ImVec2 uv; + ImU32 col; +}; +#else +// You can override the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig.h +// The code expect ImVec2 pos (8 bytes), ImVec2 uv (8 bytes), ImU32 col (4 bytes), but you can re-order them or add other fields as needed to simplify integration in your engine. +// The type has to be described within the macro (you can either declare the struct or use a typedef). This is because ImVec2/ImU32 are likely not declared at the time you'd want to set your type up. +// NOTE: IMGUI DOESN'T CLEAR THE STRUCTURE AND DOESN'T CALL A CONSTRUCTOR SO ANY CUSTOM FIELD WILL BE UNINITIALIZED. IF YOU ADD EXTRA FIELDS (SUCH AS A 'Z' COORDINATES) YOU WILL NEED TO CLEAR THEM DURING RENDER OR TO IGNORE THEM. +IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT; +#endif + +// [Internal] For use by ImDrawList +struct ImDrawCmdHeader +{ + ImVec4 ClipRect; + ImTextureID TextureId; + unsigned int VtxOffset; +}; + +// [Internal] For use by ImDrawListSplitter +struct ImDrawChannel +{ + ImVector _CmdBuffer; + ImVector _IdxBuffer; +}; + + +// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order. +// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call. +struct ImDrawListSplitter +{ + int _Current; // Current channel number (0) + int _Count; // Number of active channels (1+) + ImVector _Channels; // Draw channels (not resized down so _Count might be < Channels.Size) + + inline ImDrawListSplitter() { memset(this, 0, sizeof(*this)); } + inline ~ImDrawListSplitter() { ClearFreeMemory(); } + inline void Clear() { _Current = 0; _Count = 1; } // Do not clear Channels[] so our allocations are reused next frame + IMGUI_API void ClearFreeMemory(); + IMGUI_API void Split(ImDrawList* draw_list, int count); + IMGUI_API void Merge(ImDrawList* draw_list); + IMGUI_API void SetCurrentChannel(ImDrawList* draw_list, int channel_idx); +}; + +// Flags for ImDrawList functions +// (Legacy: bit 0 must always correspond to ImDrawFlags_Closed to be backward compatible with old API using a bool. Bits 1..3 must be unused) +enum ImDrawFlags_ +{ + ImDrawFlags_None = 0, + ImDrawFlags_Closed = 1 << 0, // PathStroke(), AddPolyline(): specify that shape should be closed (Important: this is always == 1 for legacy reason) + ImDrawFlags_RoundCornersTopLeft = 1 << 4, // AddRect(), AddRectFilled(), PathRect(): enable rounding top-left corner only (when rounding > 0.0f, we default to all corners). Was 0x01. + ImDrawFlags_RoundCornersTopRight = 1 << 5, // AddRect(), AddRectFilled(), PathRect(): enable rounding top-right corner only (when rounding > 0.0f, we default to all corners). Was 0x02. + ImDrawFlags_RoundCornersBottomLeft = 1 << 6, // AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-left corner only (when rounding > 0.0f, we default to all corners). Was 0x04. + ImDrawFlags_RoundCornersBottomRight = 1 << 7, // AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-right corner only (when rounding > 0.0f, we default to all corners). Wax 0x08. + ImDrawFlags_RoundCornersNone = 1 << 8, // AddRect(), AddRectFilled(), PathRect(): disable rounding on all corners (when rounding > 0.0f). This is NOT zero, NOT an implicit flag! + ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft, + ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, // Default to ALL corners if none of the _RoundCornersXX flags are specified. + ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, +}; + +// Flags for ImDrawList instance. Those are set automatically by ImGui:: functions from ImGuiIO settings, and generally not manipulated directly. +// It is however possible to temporarily alter flags between calls to ImDrawList:: functions. +enum ImDrawListFlags_ +{ + ImDrawListFlags_None = 0, + ImDrawListFlags_AntiAliasedLines = 1 << 0, // Enable anti-aliased lines/borders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles) + ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, // Enable anti-aliased lines/borders using textures when possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). + ImDrawListFlags_AntiAliasedFill = 1 << 2, // Enable anti-aliased edge around filled shapes (rounded rectangles, circles). + ImDrawListFlags_AllowVtxOffset = 1 << 3, // Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled. +}; + +// Draw command list +// This is the low-level list of polygons that ImGui:: functions are filling. At the end of the frame, +// all command lists are passed to your ImGuiIO::RenderDrawListFn function for rendering. +// Each dear imgui window contains its own ImDrawList. You can use ImGui::GetWindowDrawList() to +// access the current window draw list and draw custom primitives. +// You can interleave normal ImGui:: calls and adding primitives to the current draw list. +// In single viewport mode, top-left is == GetMainViewport()->Pos (generally 0,0), bottom-right is == GetMainViewport()->Pos+Size (generally io.DisplaySize). +// You are totally free to apply whatever transformation matrix to want to the data (depending on the use of the transformation you may want to apply it to ClipRect as well!) +// Important: Primitives are always added to the list and not culled (culling is done at higher-level by ImGui:: functions), if you use this API a lot consider coarse culling your drawn objects. +struct ImDrawList +{ + // This is what you have to render + ImVector CmdBuffer; // Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback. + ImVector IdxBuffer; // Index buffer. Each command consume ImDrawCmd::ElemCount of those + ImVector VtxBuffer; // Vertex buffer. + ImDrawListFlags Flags; // Flags, you may poke into these to adjust anti-aliasing settings per-primitive. + + // [Internal, used while building lists] + unsigned int _VtxCurrentIdx; // [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to 0. + ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) + const char* _OwnerName; // Pointer to owner window's name for debugging + ImDrawVert* _VtxWritePtr; // [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImDrawIdx* _IdxWritePtr; // [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImVector _ClipRectStack; // [Internal] + ImVector _TextureIdStack; // [Internal] + ImVector _Path; // [Internal] current path building + ImDrawCmdHeader _CmdHeader; // [Internal] template of active commands. Fields should match those of CmdBuffer.back(). + ImDrawListSplitter _Splitter; // [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!) + float _FringeScale; // [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at vertex buffer content + + // If you want to create ImDrawList instances, pass them ImGui::GetDrawListSharedData() or create and use your own ImDrawListSharedData (so you can use ImDrawList without ImGui) + ImDrawList(ImDrawListSharedData* shared_data) { memset(this, 0, sizeof(*this)); _Data = shared_data; } + + ~ImDrawList() { _ClearFreeMemory(); } + IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect = false); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) + IMGUI_API void PushClipRectFullScreen(); + IMGUI_API void PopClipRect(); + IMGUI_API void PushTextureID(ImTextureID texture_id); + IMGUI_API void PopTextureID(); + inline ImVec2 GetClipRectMin() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.x, cr.y); } + inline ImVec2 GetClipRectMax() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.z, cr.w); } + + // Primitives + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. + // - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners. + // - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred). + // In older versions (until Dear ImGui 1.77) the AddCircle functions defaulted to num_segments == 12. + // In future versions we will use textures to provide cheaper and higher-quality circles. + // Use AddNgon() and AddNgonFilled() functions if you need to guarantee a specific number of sides. + IMGUI_API void AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0, float thickness = 1.0f); // a: upper-left, b: lower-right (== upper-left + size) + IMGUI_API void AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0); // a: upper-left, b: lower-right (== upper-left + size) + IMGUI_API void AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left); + IMGUI_API void AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col); + IMGUI_API void AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col); + IMGUI_API void AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments = 0, float thickness = 1.0f); + IMGUI_API void AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments = 0); + IMGUI_API void AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness = 1.0f); + IMGUI_API void AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments); + IMGUI_API void AddEllipse(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot = 0.0f, int num_segments = 0, float thickness = 1.0f); + IMGUI_API void AddEllipseFilled(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot = 0.0f, int num_segments = 0); + IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL); + IMGUI_API void AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL); + IMGUI_API void AddPolyline(const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags, float thickness); + IMGUI_API void AddConvexPolyFilled(const ImVec2* points, int num_points, ImU32 col); + IMGUI_API void AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0); // Cubic Bezier (4 control points) + IMGUI_API void AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments = 0); // Quadratic Bezier (3 control points) + + // Image primitives + // - Read FAQ to understand what ImTextureID is. + // - "p_min" and "p_max" represent the upper-left and lower-right corners of the rectangle. + // - "uv_min" and "uv_max" represent the normalized texture coordinates to use for those corners. Using (0,0)->(1,1) texture coordinates will generally display the entire texture. + IMGUI_API void AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min = ImVec2(0, 0), const ImVec2& uv_max = ImVec2(1, 1), ImU32 col = IM_COL32_WHITE); + IMGUI_API void AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1 = ImVec2(0, 0), const ImVec2& uv2 = ImVec2(1, 0), const ImVec2& uv3 = ImVec2(1, 1), const ImVec2& uv4 = ImVec2(0, 1), ImU32 col = IM_COL32_WHITE); + IMGUI_API void AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags = 0); + + // Stateful path API, add points then finish with PathFillConvex() or PathStroke() + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. + inline void PathClear() { _Path.Size = 0; } + inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); } + inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); } + inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } + inline void PathStroke(ImU32 col, ImDrawFlags flags = 0, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, flags, thickness); _Path.Size = 0; } + IMGUI_API void PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments = 0); + IMGUI_API void PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle + IMGUI_API void PathEllipticalArcTo(const ImVec2& center, float radius_x, float radius_y, float rot, float a_min, float a_max, int num_segments = 0); // Ellipse + IMGUI_API void PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0); // Cubic Bezier (4 control points) + IMGUI_API void PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments = 0); // Quadratic Bezier (3 control points) + IMGUI_API void PathRect(const ImVec2& rect_min, const ImVec2& rect_max, float rounding = 0.0f, ImDrawFlags flags = 0); + + // Advanced + IMGUI_API void AddCallback(ImDrawCallback callback, void* callback_data); // Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. + IMGUI_API void AddDrawCmd(); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible + IMGUI_API ImDrawList* CloneOutput() const; // Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer. + + // Advanced: Channels + // - Use to split render into layers. By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives) + // - Use to minimize draw calls (e.g. if going back-and-forth between multiple clipping rectangles, prefer to append into separate channels then merge at the end) + // - This API shouldn't have been in ImDrawList in the first place! + // Prefer using your own persistent instance of ImDrawListSplitter as you can stack them. + // Using the ImDrawList::ChannelsXXXX you cannot stack a split over another. + inline void ChannelsSplit(int count) { _Splitter.Split(this, count); } + inline void ChannelsMerge() { _Splitter.Merge(this); } + inline void ChannelsSetCurrent(int n) { _Splitter.SetCurrentChannel(this, n); } + + // Advanced: Primitives allocations + // - We render triangles (three vertices) + // - All primitives needs to be reserved via PrimReserve() beforehand. + IMGUI_API void PrimReserve(int idx_count, int vtx_count); + IMGUI_API void PrimUnreserve(int idx_count, int vtx_count); + IMGUI_API void PrimRect(const ImVec2& a, const ImVec2& b, ImU32 col); // Axis aligned rectangle (composed of two triangles) + IMGUI_API void PrimRectUV(const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, ImU32 col); + IMGUI_API void PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col); + inline void PrimWriteVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { _VtxWritePtr->pos = pos; _VtxWritePtr->uv = uv; _VtxWritePtr->col = col; _VtxWritePtr++; _VtxCurrentIdx++; } + inline void PrimWriteIdx(ImDrawIdx idx) { *_IdxWritePtr = idx; _IdxWritePtr++; } + inline void PrimVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); } // Write vertex with unique index + + // Obsolete names + //inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } // OBSOLETED in 1.80 (Jan 2021) + //inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } // OBSOLETED in 1.80 (Jan 2021) + + // [Internal helpers] + IMGUI_API void _ResetForNewFrame(); + IMGUI_API void _ClearFreeMemory(); + IMGUI_API void _PopUnusedDrawCmd(); + IMGUI_API void _TryMergeDrawCmds(); + IMGUI_API void _OnChangedClipRect(); + IMGUI_API void _OnChangedTextureID(); + IMGUI_API void _OnChangedVtxOffset(); + IMGUI_API int _CalcCircleAutoSegmentCount(float radius) const; + IMGUI_API void _PathArcToFastEx(const ImVec2& center, float radius, int a_min_sample, int a_max_sample, int a_step); + IMGUI_API void _PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments); +}; + +// All draw data to render a Dear ImGui frame +// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose, +// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList) +struct ImDrawData +{ + bool Valid; // Only valid after Render() is called and before the next NewFrame() is called. + int CmdListsCount; // Number of ImDrawList* to render + int TotalIdxCount; // For convenience, sum of all ImDrawList's IdxBuffer.Size + int TotalVtxCount; // For convenience, sum of all ImDrawList's VtxBuffer.Size + ImVector CmdLists; // Array of ImDrawList* to render. The ImDrawLists are owned by ImGuiContext and only pointed to from here. + ImVec2 DisplayPos; // Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (== GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications) + ImVec2 DisplaySize; // Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize in most single-viewport applications) + ImVec2 FramebufferScale; // Amount of pixels for each unit of DisplaySize. Based on io.DisplayFramebufferScale. Generally (1,1) on normal display, (2,2) on OSX with Retina display. + ImGuiViewport* OwnerViewport; // Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not). + + // Functions + ImDrawData() { Clear(); } + IMGUI_API void Clear(); + IMGUI_API void AddDrawList(ImDrawList* draw_list); // Helper to add an external draw list into an existing ImDrawData. + IMGUI_API void DeIndexAllBuffers(); // Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! + IMGUI_API void ScaleClipRects(const ImVec2& fb_scale); // Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution. +}; + +//----------------------------------------------------------------------------- +// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontAtlasFlags, ImFontAtlas, ImFontGlyphRangesBuilder, ImFont) +//----------------------------------------------------------------------------- + +struct ImFontConfig +{ + void* FontData; // // TTF/OTF data + int FontDataSize; // // TTF/OTF data size + bool FontDataOwnedByAtlas; // true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself). + int FontNo; // 0 // Index of font within TTF/OTF file + float SizePixels; // // Size in pixels for rasterizer (more or less maps to the resulting font height). + int OversampleH; // 2 // Rasterize at higher quality for sub-pixel positioning. Note the difference between 2 and 3 is minimal. You can reduce this to 1 for large glyphs save memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details. + int OversampleV; // 1 // Rasterize at higher quality for sub-pixel positioning. This is not really useful as we don't use sub-pixel positions on the Y axis. + bool PixelSnapH; // false // Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font. If enabled, you can set OversampleH/V to 1. + ImVec2 GlyphExtraSpacing; // 0, 0 // Extra spacing (in pixels) between glyphs. Only X axis is supported for now. + ImVec2 GlyphOffset; // 0, 0 // Offset all glyphs from this font input. + const ImWchar* GlyphRanges; // NULL // THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list). + float GlyphMinAdvanceX; // 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font + float GlyphMaxAdvanceX; // FLT_MAX // Maximum AdvanceX for glyphs + bool MergeMode; // false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different heights. + unsigned int FontBuilderFlags; // 0 // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if unsure. + float RasterizerMultiply; // 1.0f // Brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may be a good workaround to make them more readable. + ImWchar EllipsisChar; // -1 // Explicitly specify unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used. + + // [Internal] + char Name[40]; // Name (strictly to ease debugging) + ImFont* DstFont; + + IMGUI_API ImFontConfig(); +}; + +// Hold rendering data for one glyph. +// (Note: some language parsers may fail to convert the 31+1 bitfield members, in this case maybe drop store a single u32 or we can rework this) +struct ImFontGlyph +{ + unsigned int Colored : 1; // Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on little-endian as this is used in loops) + unsigned int Visible : 1; // Flag to indicate glyph has no visible pixels (e.g. space). Allow early out when rendering. + unsigned int Codepoint : 30; // 0x0000..0x10FFFF + float AdvanceX; // Distance to next character (= data from font + ImFontConfig::GlyphExtraSpacing.x baked in) + float X0, Y0, X1, Y1; // Glyph corners + float U0, V0, U1, V1; // Texture coordinates +}; + +// Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges(). +// This is essentially a tightly packed of vector of 64k booleans = 8KB storage. +struct ImFontGlyphRangesBuilder +{ + ImVector UsedChars; // Store 1-bit per Unicode code point (0=unused, 1=used) + + ImFontGlyphRangesBuilder() { Clear(); } + inline void Clear() { int size_in_bytes = (IM_UNICODE_CODEPOINT_MAX + 1) / 8; UsedChars.resize(size_in_bytes / (int)sizeof(ImU32)); memset(UsedChars.Data, 0, (size_t)size_in_bytes); } + inline bool GetBit(size_t n) const { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); return (UsedChars[off] & mask) != 0; } // Get bit n in the array + inline void SetBit(size_t n) { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); UsedChars[off] |= mask; } // Set bit n in the array + inline void AddChar(ImWchar c) { SetBit(c); } // Add character + IMGUI_API void AddText(const char* text, const char* text_end = NULL); // Add string (each character of the UTF-8 string are added) + IMGUI_API void AddRanges(const ImWchar* ranges); // Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext + IMGUI_API void BuildRanges(ImVector* out_ranges); // Output new ranges +}; + +// See ImFontAtlas::AddCustomRectXXX functions. +struct ImFontAtlasCustomRect +{ + unsigned short Width, Height; // Input // Desired rectangle dimension + unsigned short X, Y; // Output // Packed position in Atlas + unsigned int GlyphID; // Input // For custom font glyphs only (ID < 0x110000) + float GlyphAdvanceX; // Input // For custom font glyphs only: glyph xadvance + ImVec2 GlyphOffset; // Input // For custom font glyphs only: glyph display offset + ImFont* Font; // Input // For custom font glyphs only: target font + ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0, 0); Font = NULL; } + bool IsPacked() const { return X != 0xFFFF; } +}; + +// Flags for ImFontAtlas build +enum ImFontAtlasFlags_ +{ + ImFontAtlasFlags_None = 0, + ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, // Don't round the height to next power of two + ImFontAtlasFlags_NoMouseCursors = 1 << 1, // Don't build software mouse cursors into the atlas (save a little texture memory) + ImFontAtlasFlags_NoBakedLines = 1 << 2, // Don't build thick line textures into the atlas (save a little texture memory, allow support for point/nearest filtering). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU). +}; + +// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding: +// - One or more fonts. +// - Custom graphics data needed to render the shapes needed by Dear ImGui. +// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas). +// It is the user-code responsibility to setup/build the atlas, then upload the pixel data into a texture accessible by your graphics api. +// - Optionally, call any of the AddFont*** functions. If you don't call any, the default font embedded in the code will be loaded for you. +// - Call GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data. +// - Upload the pixels data into a texture within your graphics system (see imgui_impl_xxxx.cpp examples) +// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API. +// This value will be passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID for more details. +// Common pitfalls: +// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the +// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data. +// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction. +// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed, +// - Even though many functions are suffixed with "TTF", OTF data is supported just as well. +// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future! +struct ImFontAtlas +{ + IMGUI_API ImFontAtlas(); + IMGUI_API ~ImFontAtlas(); + IMGUI_API ImFont* AddFont(const ImFontConfig* font_cfg); + IMGUI_API ImFont* AddFontDefault(const ImFontConfig* font_cfg = NULL); + IMGUI_API ImFont* AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); + IMGUI_API ImFont* AddFontFromMemoryTTF(void* font_data, int font_data_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. + IMGUI_API ImFont* AddFontFromMemoryCompressedTTF(const void* compressed_font_data, int compressed_font_data_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. + IMGUI_API ImFont* AddFontFromMemoryCompressedBase85TTF(const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. + IMGUI_API void ClearInputData(); // Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts. + IMGUI_API void ClearTexData(); // Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory. + IMGUI_API void ClearFonts(); // Clear output font data (glyphs storage, UV coordinates). + IMGUI_API void Clear(); // Clear all input and output. + + // Build atlas, retrieve pixel data. + // User is in charge of copying the pixels into graphics memory (e.g. create a texture with your engine). Then store your texture handle with SetTexID(). + // The pitch is always = Width * BytesPerPixels (1 or 4) + // Building in RGBA32 format is provided for convenience and compatibility, but note that unless you manually manipulate or copy color data into + // the texture (e.g. when using the AddCustomRect*** api), then the RGB pixels emitted will always be white (~75% of memory/bandwidth waste. + IMGUI_API bool Build(); // Build pixels data. This is called automatically for you by the GetTexData*** functions. + IMGUI_API void GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 1 byte per-pixel + IMGUI_API void GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 4 bytes-per-pixel + bool IsBuilt() const { return Fonts.Size > 0 && TexReady; } // Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent... + void SetTexID(ImTextureID id) { TexID = id; } + + //------------------------------------------- + // Glyph Ranges + //------------------------------------------- + + // Helpers to retrieve list of common Unicode ranges (2 value per range, values are inclusive, zero-terminated list) + // NB: Make sure that your string are UTF-8 and NOT in your local code page. + // Read https://github.com/ocornut/imgui/blob/master/docs/FONTS.md/#about-utf-8-encoding for details. + // NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data. + IMGUI_API const ImWchar* GetGlyphRangesDefault(); // Basic Latin, Extended Latin + IMGUI_API const ImWchar* GetGlyphRangesGreek(); // Default + Greek and Coptic + IMGUI_API const ImWchar* GetGlyphRangesKorean(); // Default + Korean characters + IMGUI_API const ImWchar* GetGlyphRangesJapanese(); // Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs + IMGUI_API const ImWchar* GetGlyphRangesChineseFull(); // Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs + IMGUI_API const ImWchar* GetGlyphRangesChineseSimplifiedCommon();// Default + Half-Width + Japanese Hiragana/Katakana + set of 2500 CJK Unified Ideographs for common simplified Chinese + IMGUI_API const ImWchar* GetGlyphRangesCyrillic(); // Default + about 400 Cyrillic characters + IMGUI_API const ImWchar* GetGlyphRangesThai(); // Default + Thai characters + IMGUI_API const ImWchar* GetGlyphRangesVietnamese(); // Default + Vietnamese characters + + //------------------------------------------- + // [BETA] Custom Rectangles/Glyphs API + //------------------------------------------- + + // You can request arbitrary rectangles to be packed into the atlas, for your own purposes. + // - After calling Build(), you can query the rectangle position and render your pixels. + // - If you render colored output, set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of prefered texture format. + // - You can also request your rectangles to be mapped as font glyph (given a font + Unicode point), + // so you can render e.g. custom colorful icons and use them as regular glyphs. + // - Read docs/FONTS.md for more details about using colorful icons. + // - Note: this API may be redesigned later in order to support multi-monitor varying DPI settings. + IMGUI_API int AddCustomRectRegular(int width, int height); + IMGUI_API int AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset = ImVec2(0, 0)); + ImFontAtlasCustomRect* GetCustomRectByIndex(int index) { IM_ASSERT(index >= 0); return &CustomRects[index]; } + + // [Internal] + IMGUI_API void CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const; + IMGUI_API bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]); + + //------------------------------------------- + // Members + //------------------------------------------- + + ImFontAtlasFlags Flags; // Build flags (see ImFontAtlasFlags_) + ImTextureID TexID; // User data to refer to the texture once it has been uploaded to user's graphic systems. It is passed back to you during rendering via the ImDrawCmd structure. + int TexDesiredWidth; // Texture width desired by user before Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height. + int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to set AntiAliasedLinesUseTex = false). + bool Locked; // Marked as Locked by ImGui::NewFrame() so attempt to modify the atlas will assert. + void* UserData; // Store your own atlas related user-data (if e.g. you have multiple font atlas). + + // [Internal] + // NB: Access texture data via GetTexData*() calls! Which will setup a default font for you. + bool TexReady; // Set when texture was built matching current font input + bool TexPixelsUseColors; // Tell whether our texture data is known to use colors (rather than just alpha channel), in order to help backend select a format. + unsigned char* TexPixelsAlpha8; // 1 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight + unsigned int* TexPixelsRGBA32; // 4 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight * 4 + int TexWidth; // Texture width calculated during Build(). + int TexHeight; // Texture height calculated during Build(). + ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight) + ImVec2 TexUvWhitePixel; // Texture coordinates to a white pixel + ImVector Fonts; // Hold all the fonts returned by AddFont*. Fonts[0] is the default font upon calling ImGui::NewFrame(), use ImGui::PushFont()/PopFont() to change the current font. + ImVector CustomRects; // Rectangles for packing custom texture data into the atlas. + ImVector ConfigData; // Configuration data + ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]; // UVs for baked anti-aliased lines + + // [Internal] Font builder + const ImFontBuilderIO* FontBuilderIO; // Opaque interface to a font builder (default to stb_truetype, can be changed to use FreeType by defining IMGUI_ENABLE_FREETYPE). + unsigned int FontBuilderFlags; // Shared flags (for all fonts) for custom font builder. THIS IS BUILD IMPLEMENTATION DEPENDENT. Per-font override is also available in ImFontConfig. + + // [Internal] Packing data + int PackIdMouseCursors; // Custom texture rectangle ID for white pixel and mouse cursors + int PackIdLines; // Custom texture rectangle ID for baked anti-aliased lines + + // [Obsolete] + //typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ + //typedef ImFontGlyphRangesBuilder GlyphRangesBuilder; // OBSOLETED in 1.67+ +}; + +// Font runtime data and rendering +// ImFontAtlas automatically loads a default embedded font for you when you call GetTexDataAsAlpha8() or GetTexDataAsRGBA32(). +struct ImFont +{ + // Members: Hot ~20/24 bytes (for CalcTextSize) + ImVector IndexAdvanceX; // 12-16 // out // // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize functions which only this this info, and are often bottleneck in large UI). + float FallbackAdvanceX; // 4 // out // = FallbackGlyph->AdvanceX + float FontSize; // 4 // in // // Height of characters/line, set during loading (don't change after loading) + + // Members: Hot ~28/40 bytes (for CalcTextSize + render loop) + ImVector IndexLookup; // 12-16 // out // // Sparse. Index glyphs by Unicode code-point. + ImVector Glyphs; // 12-16 // out // // All glyphs. + const ImFontGlyph* FallbackGlyph; // 4-8 // out // = FindGlyph(FontFallbackChar) + + // Members: Cold ~32/40 bytes + ImFontAtlas* ContainerAtlas; // 4-8 // out // // What we has been loaded into + const ImFontConfig* ConfigData; // 4-8 // in // // Pointer within ContainerAtlas->ConfigData + short ConfigDataCount; // 2 // in // ~ 1 // Number of ImFontConfig involved in creating this font. Bigger than 1 when merging multiple font sources into one ImFont. + ImWchar FallbackChar; // 2 // out // = FFFD/'?' // Character used if a glyph isn't found. + ImWchar EllipsisChar; // 2 // out // = '...'/'.'// Character used for ellipsis rendering. + short EllipsisCharCount; // 1 // out // 1 or 3 + float EllipsisWidth; // 4 // out // Width + float EllipsisCharStep; // 4 // out // Step between characters when EllipsisCount > 0 + bool DirtyLookupTables; // 1 // out // + float Scale; // 4 // in // = 1.f // Base font scale, multiplied by the per-window font scale which you can adjust with SetWindowFontScale() + float Ascent, Descent; // 4+4 // out // // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] + int MetricsTotalSurface;// 4 // out // // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs) + ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/4096/8]; // 2 bytes if ImWchar=ImWchar16, 34 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K codepoints that has one active glyph. This is mainly used to facilitate iterations across all used codepoints. + + // Methods + IMGUI_API ImFont(); + IMGUI_API ~ImFont(); + IMGUI_API const ImFontGlyph*FindGlyph(ImWchar c) const; + IMGUI_API const ImFontGlyph*FindGlyphNoFallback(ImWchar c) const; + float GetCharAdvance(ImWchar c) const { return ((int)c < IndexAdvanceX.Size) ? IndexAdvanceX[(int)c] : FallbackAdvanceX; } + bool IsLoaded() const { return ContainerAtlas != NULL; } + const char* GetDebugName() const { return ConfigData ? ConfigData->Name : ""; } + + // 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable. + // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. + IMGUI_API ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** remaining = NULL) const; // utf8 + IMGUI_API const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const; + IMGUI_API void RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const; + IMGUI_API void RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const; + + // [Internal] Don't use! + IMGUI_API void BuildLookupTable(); + IMGUI_API void ClearOutputData(); + IMGUI_API void GrowIndex(int new_size); + IMGUI_API void AddGlyph(const ImFontConfig* src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x); + IMGUI_API void AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst = true); // Makes 'dst' character/glyph points to 'src' character/glyph. Currently needs to be called AFTER fonts have been built. + IMGUI_API void SetGlyphVisible(ImWchar c, bool visible); + IMGUI_API bool IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Viewports +//----------------------------------------------------------------------------- + +// Flags stored in ImGuiViewport::Flags, giving indications to the platform backends. +enum ImGuiViewportFlags_ +{ + ImGuiViewportFlags_None = 0, + ImGuiViewportFlags_IsPlatformWindow = 1 << 0, // Represent a Platform Window + ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, // Represent a Platform Monitor (unused yet) + ImGuiViewportFlags_OwnedByApp = 1 << 2, // Platform Window: Was created/managed by the user application? (rather than our backend) + ImGuiViewportFlags_NoDecoration = 1 << 3, // Platform Window: Disable platform decorations: title bar, borders, etc. (generally set all windows, but if ImGuiConfigFlags_ViewportsDecoration is set we only set this on popups/tooltips) + ImGuiViewportFlags_NoTaskBarIcon = 1 << 4, // Platform Window: Disable platform task bar icon (generally set on popups/tooltips, or all windows if ImGuiConfigFlags_ViewportsNoTaskBarIcon is set) + ImGuiViewportFlags_NoFocusOnAppearing = 1 << 5, // Platform Window: Don't take focus when created. + ImGuiViewportFlags_NoFocusOnClick = 1 << 6, // Platform Window: Don't take focus when clicked on. + ImGuiViewportFlags_NoInputs = 1 << 7, // Platform Window: Make mouse pass through so we can drag this window while peaking behind it. + ImGuiViewportFlags_NoRendererClear = 1 << 8, // Platform Window: Renderer doesn't need to clear the framebuffer ahead (because we will fill it entirely). + ImGuiViewportFlags_NoAutoMerge = 1 << 9, // Platform Window: Avoid merging this window into another host window. This can only be set via ImGuiWindowClass viewport flags override (because we need to now ahead if we are going to create a viewport in the first place!). + ImGuiViewportFlags_TopMost = 1 << 10, // Platform Window: Display on top (for tooltips only). + ImGuiViewportFlags_CanHostOtherWindows = 1 << 11, // Viewport can host multiple imgui windows (secondary viewports are associated to a single window). // FIXME: In practice there's still probably code making the assumption that this is always and only on the MainViewport. Will fix once we add support for "no main viewport". + + // Output status flags (from Platform) + ImGuiViewportFlags_IsMinimized = 1 << 12, // Platform Window: Window is minimized, can skip render. When minimized we tend to avoid using the viewport pos/size for clipping window or testing if they are contained in the viewport. + ImGuiViewportFlags_IsFocused = 1 << 13, // Platform Window: Window is focused (last call to Platform_GetWindowFocus() returned true) +}; + +// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. +// - With multi-viewport enabled, we extend this concept to have multiple active viewports. +// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. +// - About Main Area vs Work Area: +// - Main Area = entire viewport. +// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor). +// - Windows are generally trying to stay within the Work Area of their host viewport. +struct ImGuiViewport +{ + ImGuiID ID; // Unique identifier for the viewport + ImGuiViewportFlags Flags; // See ImGuiViewportFlags_ + ImVec2 Pos; // Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native coordinates) + ImVec2 Size; // Main Area: Size of the viewport. + ImVec2 WorkPos; // Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos) + ImVec2 WorkSize; // Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size) + float DpiScale; // 1.0f = 96 DPI = No extra scale. + ImGuiID ParentViewportId; // (Advanced) 0: no parent. Instruct the platform backend to setup a parent/child relationship between platform windows. + ImDrawData* DrawData; // The ImDrawData corresponding to this viewport. Valid after Render() and until the next call to NewFrame(). + + // Platform/Backend Dependent Data + // Our design separate the Renderer and Platform backends to facilitate combining default backends with each others. + // When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled + // by the same system and you may not need to use all the UserData/Handle fields. + // The library never uses those fields, they are merely storage to facilitate backend implementation. + void* RendererUserData; // void* to hold custom data structure for the renderer (e.g. swap chain, framebuffers etc.). generally set by your Renderer_CreateWindow function. + void* PlatformUserData; // void* to hold custom data structure for the OS / platform (e.g. windowing info, render context). generally set by your Platform_CreateWindow function. + void* PlatformHandle; // void* for FindViewportByPlatformHandle(). (e.g. suggested to use natural platform handle such as HWND, GLFWWindow*, SDL_Window*) + void* PlatformHandleRaw; // void* to hold lower-level, platform-native window handle (under Win32 this is expected to be a HWND, unused for other platforms), when using an abstraction layer like GLFW or SDL (where PlatformHandle would be a SDL_Window*) + bool PlatformWindowCreated; // Platform window has been created (Platform_CreateWindow() has been called). This is false during the first frame where a viewport is being created. + bool PlatformRequestMove; // Platform window requested move (e.g. window was moved by the OS / host window manager, authoritative position will be OS window position) + bool PlatformRequestResize; // Platform window requested resize (e.g. window was resized by the OS / host window manager, authoritative size will be OS window size) + bool PlatformRequestClose; // Platform window requested closure (e.g. window was moved by the OS / host window manager, e.g. pressing ALT-F4) + + ImGuiViewport() { memset(this, 0, sizeof(*this)); } + ~ImGuiViewport() { IM_ASSERT(PlatformUserData == NULL && RendererUserData == NULL); } + + // Helpers + ImVec2 GetCenter() const { return ImVec2(Pos.x + Size.x * 0.5f, Pos.y + Size.y * 0.5f); } + ImVec2 GetWorkCenter() const { return ImVec2(WorkPos.x + WorkSize.x * 0.5f, WorkPos.y + WorkSize.y * 0.5f); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Platform Dependent Interfaces (for e.g. multi-viewport support) +//----------------------------------------------------------------------------- +// [BETA] (Optional) This is completely optional, for advanced users! +// If you are new to Dear ImGui and trying to integrate it into your engine, you can probably ignore this for now. +// +// This feature allows you to seamlessly drag Dear ImGui windows outside of your application viewport. +// This is achieved by creating new Platform/OS windows on the fly, and rendering into them. +// Dear ImGui manages the viewport structures, and the backend create and maintain one Platform/OS window for each of those viewports. +// +// See Glossary https://github.com/ocornut/imgui/wiki/Glossary for details about some of the terminology. +// See Thread https://github.com/ocornut/imgui/issues/1542 for gifs, news and questions about this evolving feature. +// +// About the coordinates system: +// - When multi-viewports are enabled, all Dear ImGui coordinates become absolute coordinates (same as OS coordinates!) +// - So e.g. ImGui::SetNextWindowPos(ImVec2(0,0)) will position a window relative to your primary monitor! +// - If you want to position windows relative to your main application viewport, use ImGui::GetMainViewport()->Pos as a base position. +// +// Steps to use multi-viewports in your application, when using a default backend from the examples/ folder: +// - Application: Enable feature with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. +// - Backend: The backend initialization will setup all necessary ImGuiPlatformIO's functions and update monitors info every frame. +// - Application: In your main loop, call ImGui::UpdatePlatformWindows(), ImGui::RenderPlatformWindowsDefault() after EndFrame() or Render(). +// - Application: Fix absolute coordinates used in ImGui::SetWindowPos() or ImGui::SetNextWindowPos() calls. +// +// Steps to use multi-viewports in your application, when using a custom backend: +// - Important: THIS IS NOT EASY TO DO and comes with many subtleties not described here! +// It's also an experimental feature, so some of the requirements may evolve. +// Consider using default backends if you can. Either way, carefully follow and refer to examples/ backends for details. +// - Application: Enable feature with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. +// - Backend: Hook ImGuiPlatformIO's Platform_* and Renderer_* callbacks (see below). +// Set 'io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports' and 'io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports'. +// Update ImGuiPlatformIO's Monitors list every frame. +// Update MousePos every frame, in absolute coordinates. +// - Application: In your main loop, call ImGui::UpdatePlatformWindows(), ImGui::RenderPlatformWindowsDefault() after EndFrame() or Render(). +// You may skip calling RenderPlatformWindowsDefault() if its API is not convenient for your needs. Read comments below. +// - Application: Fix absolute coordinates used in ImGui::SetWindowPos() or ImGui::SetNextWindowPos() calls. +// +// About ImGui::RenderPlatformWindowsDefault(): +// - This function is a mostly a _helper_ for the common-most cases, and to facilitate using default backends. +// - You can check its simple source code to understand what it does. +// It basically iterates secondary viewports and call 4 functions that are setup in ImGuiPlatformIO, if available: +// Platform_RenderWindow(), Renderer_RenderWindow(), Platform_SwapBuffers(), Renderer_SwapBuffers() +// Those functions pointers exists only for the benefit of RenderPlatformWindowsDefault(). +// - If you have very specific rendering needs (e.g. flipping multiple swap-chain simultaneously, unusual sync/threading issues, etc.), +// you may be tempted to ignore RenderPlatformWindowsDefault() and write customized code to perform your renderingg. +// You may decide to setup the platform_io's *RenderWindow and *SwapBuffers pointers and call your functions through those pointers, +// or you may decide to never setup those pointers and call your code directly. They are a convenience, not an obligatory interface. +//----------------------------------------------------------------------------- + +// (Optional) Access via ImGui::GetPlatformIO() +struct ImGuiPlatformIO +{ + //------------------------------------------------------------------ + // Input - Backend interface/functions + Monitor List + //------------------------------------------------------------------ + + // (Optional) Platform functions (e.g. Win32, GLFW, SDL2) + // For reference, the second column shows which function are generally calling the Platform Functions: + // N = ImGui::NewFrame() ~ beginning of the dear imgui frame: read info from platform/OS windows (latest size/position) + // F = ImGui::Begin(), ImGui::EndFrame() ~ during the dear imgui frame + // U = ImGui::UpdatePlatformWindows() ~ after the dear imgui frame: create and update all platform/OS windows + // R = ImGui::RenderPlatformWindowsDefault() ~ render + // D = ImGui::DestroyPlatformWindows() ~ shutdown + // The general idea is that NewFrame() we will read the current Platform/OS state, and UpdatePlatformWindows() will write to it. + // + // The functions are designed so we can mix and match 2 imgui_impl_xxxx files, one for the Platform (~window/input handling), one for Renderer. + // Custom engine backends will often provide both Platform and Renderer interfaces and so may not need to use all functions. + // Platform functions are typically called before their Renderer counterpart, apart from Destroy which are called the other way. + + // Platform function --------------------------------------------------- Called by ----- + void (*Platform_CreateWindow)(ImGuiViewport* vp); // . . U . . // Create a new platform window for the given viewport + void (*Platform_DestroyWindow)(ImGuiViewport* vp); // N . U . D // + void (*Platform_ShowWindow)(ImGuiViewport* vp); // . . U . . // Newly created windows are initially hidden so SetWindowPos/Size/Title can be called on them before showing the window + void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos); // . . U . . // Set platform window position (given the upper-left corner of client area) + ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp); // N . . . . // + void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); // . . U . . // Set platform window client area size (ignoring OS decorations such as OS title bar etc.) + ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp); // N . . . . // Get platform window client area size + void (*Platform_SetWindowFocus)(ImGuiViewport* vp); // N . . . . // Move window to front and set input focus + bool (*Platform_GetWindowFocus)(ImGuiViewport* vp); // . . U . . // + bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp); // N . . . . // Get platform window minimized state. When minimized, we generally won't attempt to get/set size and contents will be culled more easily + void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str); // . . U . . // Set platform window title (given an UTF-8 string) + void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha); // . . U . . // (Optional) Setup global transparency (not per-pixel transparency) + void (*Platform_UpdateWindow)(ImGuiViewport* vp); // . . U . . // (Optional) Called by UpdatePlatformWindows(). Optional hook to allow the platform backend from doing general book-keeping every frame. + void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Main rendering (platform side! This is often unused, or just setting a "current" context for OpenGL bindings). 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Call Present/SwapBuffers (platform side! This is often unused!). 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp); // N . . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Return DPI scale for this viewport. 1.0f = 96 DPI. + void (*Platform_OnChangedViewport)(ImGuiViewport* vp); // . F . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Called during Begin() every time the viewport we are outputting into changes, so backend has a chance to swap fonts to adjust style. + int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface); // (Optional) For a Vulkan Renderer to call into Platform code (since the surface creation needs to tie them both). + + // (Optional) Renderer functions (e.g. DirectX, OpenGL, Vulkan) + void (*Renderer_CreateWindow)(ImGuiViewport* vp); // . . U . . // Create swap chain, frame buffers etc. (called after Platform_CreateWindow) + void (*Renderer_DestroyWindow)(ImGuiViewport* vp); // N . U . D // Destroy swap chain, frame buffers etc. (called before Platform_DestroyWindow) + void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); // . . U . . // Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize) + void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Clear framebuffer, setup render target, then render the viewport->DrawData. 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + + // (Optional) Monitor list + // - Updated by: app/backend. Update every frame to dynamically support changing monitor or DPI configuration. + // - Used by: dear imgui to query DPI info, clamp popups/tooltips within same monitor and not have them straddle monitors. + ImVector Monitors; + + //------------------------------------------------------------------ + // Output - List of viewports to render into platform windows + //------------------------------------------------------------------ + + // Viewports list (the list is updated by calling ImGui::EndFrame or ImGui::Render) + // (in the future we will attempt to organize this feature to remove the need for a "main viewport") + ImVector Viewports; // Main viewports, followed by all secondary viewports. + ImGuiPlatformIO() { memset(this, 0, sizeof(*this)); } // Zero clear +}; + +// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI. +// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors. +struct ImGuiPlatformMonitor +{ + ImVec2 MainPos, MainSize; // Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right) + ImVec2 WorkPos, WorkSize; // Coordinates without task bars / side bars / menu bars. Used to avoid positioning popups/tooltips inside this region. If you don't have this info, please copy the value for MainPos/MainSize. + float DpiScale; // 1.0f = 96 DPI + void* PlatformHandle; // Backend dependant data (e.g. HMONITOR, GLFWmonitor*, SDL Display Index, NSScreen*) + ImGuiPlatformMonitor() { MainPos = MainSize = WorkPos = WorkSize = ImVec2(0, 0); DpiScale = 1.0f; PlatformHandle = NULL; } +}; + +// (Optional) Support for IME (Input Method Editor) via the io.SetPlatformImeDataFn() function. +struct ImGuiPlatformImeData +{ + bool WantVisible; // A widget wants the IME to be visible + ImVec2 InputPos; // Position of the input cursor + float InputLineHeight; // Line height + + ImGuiPlatformImeData() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Obsolete functions and types +// (Will be removed! Read 'API BREAKING CHANGES' section in imgui.cpp for details) +// Please keep your copy of dear imgui up to date! Occasionally set '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in imconfig.h to stay ahead. +//----------------------------------------------------------------------------- + +namespace ImGui +{ +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key); // map ImGuiKey_* values into legacy native key index. == io.KeyMap[key] +#else + static inline ImGuiKey GetKeyIndex(ImGuiKey key) { IM_ASSERT(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END && "ImGuiKey and native_index was merged together and native_index is disabled by IMGUI_DISABLE_OBSOLETE_KEYIO. Please switch to ImGuiKey."); return key; } +#endif +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +namespace ImGui +{ + // OBSOLETED in 1.90.0 (from September 2023) + static inline void ShowStackToolWindow(bool* p_open = NULL) { ShowIDStackToolWindow(p_open); } + IMGUI_API bool ListBox(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int height_in_items = -1); + IMGUI_API bool Combo(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int popup_max_height_in_items = -1); + // OBSOLETED in 1.89.7 (from June 2023) + IMGUI_API void SetItemAllowOverlap(); // Use SetNextItemAllowOverlap() before item. + // OBSOLETED in 1.89.4 (from March 2023) + static inline void PushAllowKeyboardFocus(bool tab_stop) { PushTabStop(tab_stop); } + static inline void PopAllowKeyboardFocus() { PopTabStop(); } + // OBSOLETED in 1.89 (from August 2022) + IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); // Use new ImageButton() signature (explicit item id, regular FramePadding) + // OBSOLETED in 1.88 (from May 2022) + static inline void CaptureKeyboardFromApp(bool want_capture_keyboard = true) { SetNextFrameWantCaptureKeyboard(want_capture_keyboard); } // Renamed as name was misleading + removed default value. + static inline void CaptureMouseFromApp(bool want_capture_mouse = true) { SetNextFrameWantCaptureMouse(want_capture_mouse); } // Renamed as name was misleading + removed default value. + // OBSOLETED in 1.86 (from November 2021) + IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); // Calculate coarse clipping for large list of evenly sized items. Prefer using ImGuiListClipper. + + // Some of the older obsolete names along with their replacement (commented out so they are not reported in IDE) + //-- OBSOLETED in 1.85 (from August 2021) + //static inline float GetWindowContentRegionWidth() { return GetWindowContentRegionMax().x - GetWindowContentRegionMin().x; } + //-- OBSOLETED in 1.81 (from February 2021) + //static inline bool ListBoxHeader(const char* label, const ImVec2& size = ImVec2(0, 0)) { return BeginListBox(label, size); } + //static inline bool ListBoxHeader(const char* label, int items_count, int height_in_items = -1) { float height = GetTextLineHeightWithSpacing() * ((height_in_items < 0 ? ImMin(items_count, 7) : height_in_items) + 0.25f) + GetStyle().FramePadding.y * 2.0f; return BeginListBox(label, ImVec2(0.0f, height)); } // Helper to calculate size from items_count and height_in_items + //static inline void ListBoxFooter() { EndListBox(); } + //-- OBSOLETED in 1.79 (from August 2020) + //static inline void OpenPopupContextItem(const char* str_id = NULL, ImGuiMouseButton mb = 1) { OpenPopupOnItemClick(str_id, mb); } // Bool return value removed. Use IsWindowAppearing() in BeginPopup() instead. Renamed in 1.77, renamed back in 1.79. Sorry! + //-- OBSOLETED in 1.78 (from June 2020): Old drag/sliders functions that took a 'float power > 1.0f' argument instead of ImGuiSliderFlags_Logarithmic. See github.com/ocornut/imgui/issues/3361 for details. + //IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power = 1.0f) // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //-- OBSOLETED in 1.77 and before + //static inline bool BeginPopupContextWindow(const char* str_id, ImGuiMouseButton mb, bool over_items) { return BeginPopupContextWindow(str_id, mb | (over_items ? 0 : ImGuiPopupFlags_NoOpenOverItems)); } // OBSOLETED in 1.77 (from June 2020) + //static inline void TreeAdvanceToLabelPos() { SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()); } // OBSOLETED in 1.72 (from July 2019) + //static inline void SetNextTreeNodeOpen(bool open, ImGuiCond cond = 0) { SetNextItemOpen(open, cond); } // OBSOLETED in 1.71 (from June 2019) + //static inline float GetContentRegionAvailWidth() { return GetContentRegionAvail().x; } // OBSOLETED in 1.70 (from May 2019) + //static inline ImDrawList* GetOverlayDrawList() { return GetForegroundDrawList(); } // OBSOLETED in 1.69 (from Mar 2019) + //static inline void SetScrollHere(float ratio = 0.5f) { SetScrollHereY(ratio); } // OBSOLETED in 1.66 (from Nov 2018) + //static inline bool IsItemDeactivatedAfterChange() { return IsItemDeactivatedAfterEdit(); } // OBSOLETED in 1.63 (from Aug 2018) + //-- OBSOLETED in 1.60 and before + //static inline bool IsAnyWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_AnyWindow); } // OBSOLETED in 1.60 (from Apr 2018) + //static inline bool IsAnyWindowHovered() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.60 (between Dec 2017 and Apr 2018) + //static inline void ShowTestWindow() { return ShowDemoWindow(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootWindow); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowOrAnyChildFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline void SetNextWindowContentWidth(float w) { SetNextWindowContentSize(ImVec2(w, 0.0f)); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline float GetItemsLineHeightWithSpacing() { return GetFrameHeightWithSpacing(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //IMGUI_API bool Begin(char* name, bool* p_open, ImVec2 size_first_use, float bg_alpha = -1.0f, ImGuiWindowFlags flags=0); // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017): Equivalent of using SetNextWindowSize(size, ImGuiCond_FirstUseEver) and SetNextWindowBgAlpha(). + //static inline bool IsRootWindowOrAnyChildHovered() { return IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void AlignFirstTextHeightToWidgets() { AlignTextToFramePadding(); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void SetNextWindowPosCenter(ImGuiCond c=0) { SetNextWindowPos(GetMainViewport()->GetCenter(), c, ImVec2(0.5f,0.5f)); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline bool IsItemHoveredRect() { return IsItemHovered(ImGuiHoveredFlags_RectOnly); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsPosHoveringAnyWindow(const ImVec2&) { IM_ASSERT(0); return false; } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017): This was misleading and partly broken. You probably want to use the io.WantCaptureMouse flag instead. + //static inline bool IsMouseHoveringAnyWindow() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsMouseHoveringWindow() { return IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //-- OBSOLETED in 1.50 and before + //static inline bool CollapsingHeader(char* label, const char* str_id, bool framed = true, bool default_open = false) { return CollapsingHeader(label, (default_open ? (1 << 5) : 0)); } // OBSOLETED in 1.49 + //static inline ImFont*GetWindowFont() { return GetFont(); } // OBSOLETED in 1.48 + //static inline float GetWindowFontSize() { return GetFontSize(); } // OBSOLETED in 1.48 + //static inline void SetScrollPosHere() { SetScrollHere(); } // OBSOLETED in 1.42 +} + +//-- OBSOLETED in 1.82 (from Mars 2021): flags for AddRect(), AddRectFilled(), AddImageRounded(), PathRect() +//typedef ImDrawFlags ImDrawCornerFlags; +//enum ImDrawCornerFlags_ +//{ +// ImDrawCornerFlags_None = ImDrawFlags_RoundCornersNone, // Was == 0 prior to 1.82, this is now == ImDrawFlags_RoundCornersNone which is != 0 and not implicit +// ImDrawCornerFlags_TopLeft = ImDrawFlags_RoundCornersTopLeft, // Was == 0x01 (1 << 0) prior to 1.82. Order matches ImDrawFlags_NoRoundCorner* flag (we exploit this internally). +// ImDrawCornerFlags_TopRight = ImDrawFlags_RoundCornersTopRight, // Was == 0x02 (1 << 1) prior to 1.82. +// ImDrawCornerFlags_BotLeft = ImDrawFlags_RoundCornersBottomLeft, // Was == 0x04 (1 << 2) prior to 1.82. +// ImDrawCornerFlags_BotRight = ImDrawFlags_RoundCornersBottomRight, // Was == 0x08 (1 << 3) prior to 1.82. +// ImDrawCornerFlags_All = ImDrawFlags_RoundCornersAll, // Was == 0x0F prior to 1.82 +// ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight, +// ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight, +// ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft, +// ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight, +//}; + +// RENAMED and MERGED both ImGuiKey_ModXXX and ImGuiModFlags_XXX into ImGuiMod_XXX (from September 2022) +// RENAMED ImGuiKeyModFlags -> ImGuiModFlags in 1.88 (from April 2022). Exceptionally commented out ahead of obscolescence schedule to reduce confusion and because they were not meant to be used in the first place. +typedef ImGuiKeyChord ImGuiModFlags; // == int. We generally use ImGuiKeyChord to mean "a ImGuiKey or-ed with any number of ImGuiMod_XXX value", but you may store only mods in there. +enum ImGuiModFlags_ { ImGuiModFlags_None = 0, ImGuiModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiModFlags_Shift = ImGuiMod_Shift, ImGuiModFlags_Alt = ImGuiMod_Alt, ImGuiModFlags_Super = ImGuiMod_Super }; +//typedef ImGuiKeyChord ImGuiKeyModFlags; // == int +//enum ImGuiKeyModFlags_ { ImGuiKeyModFlags_None = 0, ImGuiKeyModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiKeyModFlags_Shift = ImGuiMod_Shift, ImGuiKeyModFlags_Alt = ImGuiMod_Alt, ImGuiKeyModFlags_Super = ImGuiMod_Super }; + +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +// RENAMED IMGUI_DISABLE_METRICS_WINDOW > IMGUI_DISABLE_DEBUG_TOOLS in 1.88 (from June 2022) +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && !defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) && !defined(IMGUI_DISABLE_DEBUG_TOOLS) +#define IMGUI_DISABLE_DEBUG_TOOLS +#endif +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) +#error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name. +#endif + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#elif defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#ifdef _MSC_VER +#pragma warning (pop) +#endif + +// Include imgui_user.h at the end of imgui.h (convenient for user to only explicitly include vanilla imgui.h) +#ifdef IMGUI_INCLUDE_IMGUI_USER_H +#include "imgui_user.h" +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/imgui_demo.cpp b/HexaGen.Tests/cpp2c/imgui/imgui_demo.cpp new file mode 100644 index 0000000..25dd088 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/imgui_demo.cpp @@ -0,0 +1,8695 @@ +// dear imgui, v1.90 WIP +// (demo code) + +// Help: +// - Read FAQ at http://dearimgui.com/faq +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// - Need help integrating Dear ImGui in your codebase? +// - Read Getting Started https://github.com/ocornut/imgui/wiki/Getting-Started +// - Read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. +// Read imgui.cpp for more details, documentation and comments. +// Get the latest version at https://github.com/ocornut/imgui + +//--------------------------------------------------- +// PLEASE DO NOT REMOVE THIS FILE FROM YOUR PROJECT! +//--------------------------------------------------- +// Message to the person tempted to delete this file when integrating Dear ImGui into their codebase: +// Think again! It is the most useful reference code that you and other coders will want to refer to and call. +// Have the ImGui::ShowDemoWindow() function wired in an always-available debug menu of your game/app! +// Also include Metrics! ItemPicker! DebugLog! and other debug features. +// Removing this file from your project is hindering access to documentation for everyone in your team, +// likely leading you to poorer usage of the library. +// Everything in this file will be stripped out by the linker if you don't call ImGui::ShowDemoWindow(). +// If you want to link core Dear ImGui in your shipped builds but want a thorough guarantee that the demo will not be +// linked, you can setup your imconfig.h with #define IMGUI_DISABLE_DEMO_WINDOWS and those functions will be empty. +// In another situation, whenever you have Dear ImGui available you probably want this to be available for reference. +// Thank you, +// -Your beloved friend, imgui_demo.cpp (which you won't delete) + +//-------------------------------------------- +// ABOUT THE MEANING OF THE 'static' KEYWORD: +//-------------------------------------------- +// In this demo code, we frequently use 'static' variables inside functions. +// A static variable persists across calls. It is essentially a global variable but declared inside the scope of the function. +// Think of "static int n = 0;" as "global int n = 0;" ! +// We do this IN THE DEMO because we want: +// - to gather code and data in the same place. +// - to make the demo source code faster to read, faster to change, smaller in size. +// - it is also a convenient way of storing simple UI related information as long as your function +// doesn't need to be reentrant or used in multiple threads. +// This might be a pattern you will want to use in your code, but most of the data you would be working +// with in a complex codebase is likely going to be stored outside your functions. + +//----------------------------------------- +// ABOUT THE CODING STYLE OF OUR DEMO CODE +//----------------------------------------- +// The Demo code in this file is designed to be easy to copy-and-paste into your application! +// Because of this: +// - We never omit the ImGui:: prefix when calling functions, even though most code here is in the same namespace. +// - We try to declare static variables in the local scope, as close as possible to the code using them. +// - We never use any of the helpers/facilities used internally by Dear ImGui, unless available in the public API. +// - We never use maths operators on ImVec2/ImVec4. For our other sources files we use them, and they are provided +// by imgui.h using the IMGUI_DEFINE_MATH_OPERATORS define. For your own sources file they are optional +// and require you either enable those, either provide your own via IM_VEC2_CLASS_EXTRA in imconfig.h. +// Because we can't assume anything about your support of maths operators, we cannot use them in imgui_demo.cpp. + +// Navigating this file: +// - In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. + +/* + +Index of this file: + +// [SECTION] Forward Declarations +// [SECTION] Helpers +// [SECTION] Demo Window / ShowDemoWindow() +// - ShowDemoWindow() +// - sub section: ShowDemoWindowWidgets() +// - sub section: ShowDemoWindowLayout() +// - sub section: ShowDemoWindowPopups() +// - sub section: ShowDemoWindowTables() +// - sub section: ShowDemoWindowInputs() +// [SECTION] About Window / ShowAboutWindow() +// [SECTION] Style Editor / ShowStyleEditor() +// [SECTION] User Guide / ShowUserGuide() +// [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() +// [SECTION] Example App: Debug Console / ShowExampleAppConsole() +// [SECTION] Example App: Debug Log / ShowExampleAppLog() +// [SECTION] Example App: Simple Layout / ShowExampleAppLayout() +// [SECTION] Example App: Property Editor / ShowExampleAppPropertyEditor() +// [SECTION] Example App: Long Text / ShowExampleAppLongText() +// [SECTION] Example App: Auto Resize / ShowExampleAppAutoResize() +// [SECTION] Example App: Constrained Resize / ShowExampleAppConstrainedResize() +// [SECTION] Example App: Simple overlay / ShowExampleAppSimpleOverlay() +// [SECTION] Example App: Fullscreen window / ShowExampleAppFullscreen() +// [SECTION] Example App: Manipulating window titles / ShowExampleAppWindowTitles() +// [SECTION] Example App: Custom Rendering using ImDrawList API / ShowExampleAppCustomRendering() +// [SECTION] Example App: Docking, DockSpace / ShowExampleAppDockSpace() +// [SECTION] Example App: Documents Handling / ShowExampleAppDocuments() + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +// System includes +#include // toupper +#include // INT_MIN, INT_MAX +#include // sqrtf, powf, cosf, sinf, floorf, ceilf +#include // vsnprintf, sscanf, printf +#include // NULL, malloc, free, atoi +#include // intptr_t +#if !defined(_MSC_VER) || _MSC_VER >= 1800 +#include // PRId64/PRIu64, not avail in some MinGW headers. +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to an 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wdeprecated-declarations" // warning: 'xx' is deprecated: The POSIX name for this.. // for strdup used in demo code (so user can copy & paste the code) +#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning: cast to 'void *' from smaller integer type +#pragma clang diagnostic ignored "-Wformat-security" // warning: format string is not a string literal +#pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. +#pragma clang diagnostic ignored "-Wunused-macros" // warning: macro is not used // we define snprintf/vsnprintf on Windows so they are available, but not always used. +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning: macro name is a reserved identifier +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size +#pragma GCC diagnostic ignored "-Wformat-security" // warning: format string is not a string literal (potentially insecure) +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wmisleading-indentation" // [__GNUC__ >= 6] warning: this 'if' clause does not guard this statement // GCC 6.0+ only. See #883 on GitHub. +#endif + +// Play it nice with Windows users (Update: May 2018, Notepad now supports Unix-style carriage returns!) +#ifdef _WIN32 +#define IM_NEWLINE "\r\n" +#else +#define IM_NEWLINE "\n" +#endif + +// Helpers +#if defined(_MSC_VER) && !defined(snprintf) +#define snprintf _snprintf +#endif +#if defined(_MSC_VER) && !defined(vsnprintf) +#define vsnprintf _vsnprintf +#endif + +// Format specifiers for 64-bit values (hasn't been decently standardized before VS2013) +#if !defined(PRId64) && defined(_MSC_VER) +#define PRId64 "I64d" +#define PRIu64 "I64u" +#elif !defined(PRId64) +#define PRId64 "lld" +#define PRIu64 "llu" +#endif + +// Helpers macros +// We normally try to not use many helpers in imgui_demo.cpp in order to make code easier to copy and paste, +// but making an exception here as those are largely simplifying code... +// In other imgui sources we can use nicer internal functions from imgui_internal.h (ImMin/ImMax) but not in the demo. +#define IM_MIN(A, B) (((A) < (B)) ? (A) : (B)) +#define IM_MAX(A, B) (((A) >= (B)) ? (A) : (B)) +#define IM_CLAMP(V, MN, MX) ((V) < (MN) ? (MN) : (V) > (MX) ? (MX) : (V)) + +// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall +#ifndef IMGUI_CDECL +#ifdef _MSC_VER +#define IMGUI_CDECL __cdecl +#else +#define IMGUI_CDECL +#endif +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward Declarations, Helpers +//----------------------------------------------------------------------------- + +#if !defined(IMGUI_DISABLE_DEMO_WINDOWS) + +// Forward Declarations +static void ShowExampleAppMainMenuBar(); +static void ShowExampleAppConsole(bool* p_open); +static void ShowExampleAppCustomRendering(bool* p_open); +static void ShowExampleAppDockSpace(bool* p_open); +static void ShowExampleAppDocuments(bool* p_open); +static void ShowExampleAppLog(bool* p_open); +static void ShowExampleAppLayout(bool* p_open); +static void ShowExampleAppPropertyEditor(bool* p_open); +static void ShowExampleAppSimpleOverlay(bool* p_open); +static void ShowExampleAppAutoResize(bool* p_open); +static void ShowExampleAppConstrainedResize(bool* p_open); +static void ShowExampleAppFullscreen(bool* p_open); +static void ShowExampleAppLongText(bool* p_open); +static void ShowExampleAppWindowTitles(bool* p_open); +static void ShowExampleMenuFile(); + +// We split the contents of the big ShowDemoWindow() function into smaller functions +// (because the link time of very large functions grow non-linearly) +static void ShowDemoWindowWidgets(); +static void ShowDemoWindowLayout(); +static void ShowDemoWindowPopups(); +static void ShowDemoWindowTables(); +static void ShowDemoWindowColumns(); +static void ShowDemoWindowInputs(); + +//----------------------------------------------------------------------------- +// [SECTION] Helpers +//----------------------------------------------------------------------------- + +// Helper to display a little (?) mark which shows a tooltip when hovered. +// In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md) +static void HelpMarker(const char* desc) +{ + ImGui::TextDisabled("(?)"); + if (ImGui::BeginItemTooltip()) + { + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(desc); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +static void ShowDockingDisabledMessage() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui::Text("ERROR: Docking is not enabled! See Demo > Configuration."); + ImGui::Text("Set io.ConfigFlags |= ImGuiConfigFlags_DockingEnable in your code, or "); + ImGui::SameLine(0.0f, 0.0f); + if (ImGui::SmallButton("click here")) + io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; +} + +// Helper to wire demo markers located in code to an interactive browser +typedef void (*ImGuiDemoMarkerCallback)(const char* file, int line, const char* section, void* user_data); +extern ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback; +extern void* GImGuiDemoMarkerCallbackUserData; +ImGuiDemoMarkerCallback GImGuiDemoMarkerCallback = NULL; +void* GImGuiDemoMarkerCallbackUserData = NULL; +#define IMGUI_DEMO_MARKER(section) do { if (GImGuiDemoMarkerCallback != NULL) GImGuiDemoMarkerCallback(__FILE__, __LINE__, section, GImGuiDemoMarkerCallbackUserData); } while (0) + +//----------------------------------------------------------------------------- +// [SECTION] Demo Window / ShowDemoWindow() +//----------------------------------------------------------------------------- +// - ShowDemoWindow() +// - ShowDemoWindowWidgets() +// - ShowDemoWindowLayout() +// - ShowDemoWindowPopups() +// - ShowDemoWindowTables() +// - ShowDemoWindowColumns() +// - ShowDemoWindowInputs() +//----------------------------------------------------------------------------- + +// Demonstrate most Dear ImGui features (this is big function!) +// You may execute this function to experiment with the UI and understand what it does. +// You may then search for keywords in the code when you are interested by a specific feature. +void ImGui::ShowDemoWindow(bool* p_open) +{ + // Exceptionally add an extra assert here for people confused about initial Dear ImGui setup + // Most functions would normally just assert/crash if the context is missing. + IM_ASSERT(ImGui::GetCurrentContext() != NULL && "Missing Dear ImGui context. Refer to examples app!"); + + // Examples Apps (accessible from the "Examples" menu) + static bool show_app_main_menu_bar = false; + static bool show_app_console = false; + static bool show_app_custom_rendering = false; + static bool show_app_dockspace = false; + static bool show_app_documents = false; + static bool show_app_log = false; + static bool show_app_layout = false; + static bool show_app_property_editor = false; + static bool show_app_simple_overlay = false; + static bool show_app_auto_resize = false; + static bool show_app_constrained_resize = false; + static bool show_app_fullscreen = false; + static bool show_app_long_text = false; + static bool show_app_window_titles = false; + + if (show_app_main_menu_bar) ShowExampleAppMainMenuBar(); + if (show_app_dockspace) ShowExampleAppDockSpace(&show_app_dockspace); // Process the Docking app first, as explicit DockSpace() nodes needs to be submitted early (read comments near the DockSpace function) + if (show_app_documents) ShowExampleAppDocuments(&show_app_documents); // Process the Document app next, as it may also use a DockSpace() + if (show_app_console) ShowExampleAppConsole(&show_app_console); + if (show_app_custom_rendering) ShowExampleAppCustomRendering(&show_app_custom_rendering); + if (show_app_log) ShowExampleAppLog(&show_app_log); + if (show_app_layout) ShowExampleAppLayout(&show_app_layout); + if (show_app_property_editor) ShowExampleAppPropertyEditor(&show_app_property_editor); + if (show_app_simple_overlay) ShowExampleAppSimpleOverlay(&show_app_simple_overlay); + if (show_app_auto_resize) ShowExampleAppAutoResize(&show_app_auto_resize); + if (show_app_constrained_resize) ShowExampleAppConstrainedResize(&show_app_constrained_resize); + if (show_app_fullscreen) ShowExampleAppFullscreen(&show_app_fullscreen); + if (show_app_long_text) ShowExampleAppLongText(&show_app_long_text); + if (show_app_window_titles) ShowExampleAppWindowTitles(&show_app_window_titles); + + // Dear ImGui Tools (accessible from the "Tools" menu) + static bool show_tool_metrics = false; + static bool show_tool_debug_log = false; + static bool show_tool_id_stack_tool = false; + static bool show_tool_style_editor = false; + static bool show_tool_about = false; + + if (show_tool_metrics) + ImGui::ShowMetricsWindow(&show_tool_metrics); + if (show_tool_debug_log) + ImGui::ShowDebugLogWindow(&show_tool_debug_log); + if (show_tool_id_stack_tool) + ImGui::ShowIDStackToolWindow(&show_tool_id_stack_tool); + if (show_tool_style_editor) + { + ImGui::Begin("Dear ImGui Style Editor", &show_tool_style_editor); + ImGui::ShowStyleEditor(); + ImGui::End(); + } + if (show_tool_about) + ImGui::ShowAboutWindow(&show_tool_about); + + // Demonstrate the various window flags. Typically you would just use the default! + static bool no_titlebar = false; + static bool no_scrollbar = false; + static bool no_menu = false; + static bool no_move = false; + static bool no_resize = false; + static bool no_collapse = false; + static bool no_close = false; + static bool no_nav = false; + static bool no_background = false; + static bool no_bring_to_front = false; + static bool no_docking = false; + static bool unsaved_document = false; + + ImGuiWindowFlags window_flags = 0; + if (no_titlebar) window_flags |= ImGuiWindowFlags_NoTitleBar; + if (no_scrollbar) window_flags |= ImGuiWindowFlags_NoScrollbar; + if (!no_menu) window_flags |= ImGuiWindowFlags_MenuBar; + if (no_move) window_flags |= ImGuiWindowFlags_NoMove; + if (no_resize) window_flags |= ImGuiWindowFlags_NoResize; + if (no_collapse) window_flags |= ImGuiWindowFlags_NoCollapse; + if (no_nav) window_flags |= ImGuiWindowFlags_NoNav; + if (no_background) window_flags |= ImGuiWindowFlags_NoBackground; + if (no_bring_to_front) window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus; + if (no_docking) window_flags |= ImGuiWindowFlags_NoDocking; + if (unsaved_document) window_flags |= ImGuiWindowFlags_UnsavedDocument; + if (no_close) p_open = NULL; // Don't pass our bool* to Begin + + // We specify a default position/size in case there's no data in the .ini file. + // We only do it to make the demo applications a little more welcoming, but typically this isn't required. + const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGui::SetNextWindowPos(ImVec2(main_viewport->WorkPos.x + 650, main_viewport->WorkPos.y + 20), ImGuiCond_FirstUseEver); + ImGui::SetNextWindowSize(ImVec2(550, 680), ImGuiCond_FirstUseEver); + + // Main body of the Demo window starts here. + if (!ImGui::Begin("Dear ImGui Demo", p_open, window_flags)) + { + // Early out if the window is collapsed, as an optimization. + ImGui::End(); + return; + } + + // Most "big" widgets share a common width settings by default. See 'Demo->Layout->Widgets Width' for details. + // e.g. Use 2/3 of the space for widgets and 1/3 for labels (right align) + //ImGui::PushItemWidth(-ImGui::GetWindowWidth() * 0.35f); + // e.g. Leave a fixed amount of width for labels (by passing a negative value), the rest goes to widgets. + ImGui::PushItemWidth(ImGui::GetFontSize() * -12); + + // Menu Bar + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("Menu")) + { + IMGUI_DEMO_MARKER("Menu/File"); + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Examples")) + { + IMGUI_DEMO_MARKER("Menu/Examples"); + ImGui::MenuItem("Main menu bar", NULL, &show_app_main_menu_bar); + + ImGui::SeparatorText("Mini apps"); + ImGui::MenuItem("Console", NULL, &show_app_console); + ImGui::MenuItem("Custom rendering", NULL, &show_app_custom_rendering); + ImGui::MenuItem("Dockspace", NULL, &show_app_dockspace); + ImGui::MenuItem("Documents", NULL, &show_app_documents); + ImGui::MenuItem("Log", NULL, &show_app_log); + ImGui::MenuItem("Property editor", NULL, &show_app_property_editor); + ImGui::MenuItem("Simple layout", NULL, &show_app_layout); + ImGui::MenuItem("Simple overlay", NULL, &show_app_simple_overlay); + + ImGui::SeparatorText("Concepts"); + ImGui::MenuItem("Auto-resizing window", NULL, &show_app_auto_resize); + ImGui::MenuItem("Constrained-resizing window", NULL, &show_app_constrained_resize); + ImGui::MenuItem("Fullscreen window", NULL, &show_app_fullscreen); + ImGui::MenuItem("Long text display", NULL, &show_app_long_text); + ImGui::MenuItem("Manipulating window titles", NULL, &show_app_window_titles); + + ImGui::EndMenu(); + } + //if (ImGui::MenuItem("MenuItem")) {} // You can also use MenuItem() inside a menu bar! + if (ImGui::BeginMenu("Tools")) + { + IMGUI_DEMO_MARKER("Menu/Tools"); +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + const bool has_debug_tools = true; +#else + const bool has_debug_tools = false; +#endif + ImGui::MenuItem("Metrics/Debugger", NULL, &show_tool_metrics, has_debug_tools); + ImGui::MenuItem("Debug Log", NULL, &show_tool_debug_log, has_debug_tools); + ImGui::MenuItem("ID Stack Tool", NULL, &show_tool_id_stack_tool, has_debug_tools); + ImGui::MenuItem("Style Editor", NULL, &show_tool_style_editor); + ImGui::MenuItem("About Dear ImGui", NULL, &show_tool_about); + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + ImGui::Text("dear imgui says hello! (%s) (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); + ImGui::Spacing(); + + IMGUI_DEMO_MARKER("Help"); + if (ImGui::CollapsingHeader("Help")) + { + ImGui::SeparatorText("ABOUT THIS DEMO:"); + ImGui::BulletText("Sections below are demonstrating many aspects of the library."); + ImGui::BulletText("The \"Examples\" menu above leads to more demo contents."); + ImGui::BulletText("The \"Tools\" menu above gives access to: About Box, Style Editor,\n" + "and Metrics/Debugger (general purpose Dear ImGui debugging tool)."); + + ImGui::SeparatorText("PROGRAMMER GUIDE:"); + ImGui::BulletText("See the ShowDemoWindow() code in imgui_demo.cpp. <- you are here!"); + ImGui::BulletText("See comments in imgui.cpp."); + ImGui::BulletText("See example applications in the examples/ folder."); + ImGui::BulletText("Read the FAQ at https://www.dearimgui.com/faq/"); + ImGui::BulletText("Set 'io.ConfigFlags |= NavEnableKeyboard' for keyboard controls."); + ImGui::BulletText("Set 'io.ConfigFlags |= NavEnableGamepad' for gamepad controls."); + + ImGui::SeparatorText("USER GUIDE:"); + ImGui::ShowUserGuide(); + } + + IMGUI_DEMO_MARKER("Configuration"); + if (ImGui::CollapsingHeader("Configuration")) + { + ImGuiIO& io = ImGui::GetIO(); + + if (ImGui::TreeNode("Configuration##2")) + { + ImGui::SeparatorText("General"); + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableKeyboard", &io.ConfigFlags, ImGuiConfigFlags_NavEnableKeyboard); + ImGui::SameLine(); HelpMarker("Enable keyboard controls."); + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableGamepad", &io.ConfigFlags, ImGuiConfigFlags_NavEnableGamepad); + ImGui::SameLine(); HelpMarker("Enable gamepad controls. Require backend to set io.BackendFlags |= ImGuiBackendFlags_HasGamepad.\n\nRead instructions in imgui.cpp for details."); + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableSetMousePos", &io.ConfigFlags, ImGuiConfigFlags_NavEnableSetMousePos); + ImGui::SameLine(); HelpMarker("Instruct navigation to move the mouse cursor. See comment for ImGuiConfigFlags_NavEnableSetMousePos."); + ImGui::CheckboxFlags("io.ConfigFlags: NoMouse", &io.ConfigFlags, ImGuiConfigFlags_NoMouse); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) + { + // The "NoMouse" option can get us stuck with a disabled mouse! Let's provide an alternative way to fix it: + if (fmodf((float)ImGui::GetTime(), 0.40f) < 0.20f) + { + ImGui::SameLine(); + ImGui::Text("<>"); + } + if (ImGui::IsKeyPressed(ImGuiKey_Space)) + io.ConfigFlags &= ~ImGuiConfigFlags_NoMouse; + } + ImGui::CheckboxFlags("io.ConfigFlags: NoMouseCursorChange", &io.ConfigFlags, ImGuiConfigFlags_NoMouseCursorChange); + ImGui::SameLine(); HelpMarker("Instruct backend to not alter mouse cursor shape and visibility."); + + ImGui::CheckboxFlags("io.ConfigFlags: DockingEnable", &io.ConfigFlags, ImGuiConfigFlags_DockingEnable); + ImGui::SameLine(); + if (io.ConfigDockingWithShift) + HelpMarker("Drag from window title bar or their tab to dock/undock. Hold SHIFT to enable docking.\n\nDrag from window menu button (upper-left button) to undock an entire node (all windows)."); + else + HelpMarker("Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking.\n\nDrag from window menu button (upper-left button) to undock an entire node (all windows)."); + if (io.ConfigFlags & ImGuiConfigFlags_DockingEnable) + { + ImGui::Indent(); + ImGui::Checkbox("io.ConfigDockingNoSplit", &io.ConfigDockingNoSplit); + ImGui::SameLine(); HelpMarker("Simplified docking mode: disable window splitting, so docking is limited to merging multiple windows together into tab-bars."); + ImGui::Checkbox("io.ConfigDockingWithShift", &io.ConfigDockingWithShift); + ImGui::SameLine(); HelpMarker("Enable docking when holding Shift only (allow to drop in wider space, reduce visual noise)"); + ImGui::Checkbox("io.ConfigDockingAlwaysTabBar", &io.ConfigDockingAlwaysTabBar); + ImGui::SameLine(); HelpMarker("Create a docking node and tab-bar on single floating windows."); + ImGui::Checkbox("io.ConfigDockingTransparentPayload", &io.ConfigDockingTransparentPayload); + ImGui::SameLine(); HelpMarker("Make window or viewport transparent when docking and only display docking boxes on the target viewport. Useful if rendering of multiple viewport cannot be synced. Best used with ConfigViewportsNoAutoMerge."); + ImGui::Unindent(); + } + + ImGui::CheckboxFlags("io.ConfigFlags: ViewportsEnable", &io.ConfigFlags, ImGuiConfigFlags_ViewportsEnable); + ImGui::SameLine(); HelpMarker("[beta] Enable beta multi-viewports support. See ImGuiPlatformIO for details."); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + ImGui::Indent(); + ImGui::Checkbox("io.ConfigViewportsNoAutoMerge", &io.ConfigViewportsNoAutoMerge); + ImGui::SameLine(); HelpMarker("Set to make all floating imgui windows always create their own viewport. Otherwise, they are merged into the main host viewports when overlapping it."); + ImGui::Checkbox("io.ConfigViewportsNoTaskBarIcon", &io.ConfigViewportsNoTaskBarIcon); + ImGui::SameLine(); HelpMarker("Toggling this at runtime is normally unsupported (most platform backends won't refresh the task bar icon state right away)."); + ImGui::Checkbox("io.ConfigViewportsNoDecoration", &io.ConfigViewportsNoDecoration); + ImGui::SameLine(); HelpMarker("Toggling this at runtime is normally unsupported (most platform backends won't refresh the decoration right away)."); + ImGui::Checkbox("io.ConfigViewportsNoDefaultParent", &io.ConfigViewportsNoDefaultParent); + ImGui::SameLine(); HelpMarker("Toggling this at runtime is normally unsupported (most platform backends won't refresh the parenting right away)."); + ImGui::Unindent(); + } + + ImGui::Checkbox("io.ConfigInputTrickleEventQueue", &io.ConfigInputTrickleEventQueue); + ImGui::SameLine(); HelpMarker("Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates."); + ImGui::Checkbox("io.MouseDrawCursor", &io.MouseDrawCursor); + ImGui::SameLine(); HelpMarker("Instruct Dear ImGui to render a mouse cursor itself. Note that a mouse cursor rendered via your application GPU rendering path will feel more laggy than hardware cursor, but will be more in sync with your other visuals.\n\nSome desktop applications may use both kinds of cursors (e.g. enable software cursor only when resizing/dragging something)."); + + ImGui::SeparatorText("Widgets"); + ImGui::Checkbox("io.ConfigInputTextCursorBlink", &io.ConfigInputTextCursorBlink); + ImGui::SameLine(); HelpMarker("Enable blinking cursor (optional as some users consider it to be distracting)."); + ImGui::Checkbox("io.ConfigInputTextEnterKeepActive", &io.ConfigInputTextEnterKeepActive); + ImGui::SameLine(); HelpMarker("Pressing Enter will keep item active and select contents (single-line only)."); + ImGui::Checkbox("io.ConfigDragClickToInputText", &io.ConfigDragClickToInputText); + ImGui::SameLine(); HelpMarker("Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving)."); + ImGui::Checkbox("io.ConfigWindowsResizeFromEdges", &io.ConfigWindowsResizeFromEdges); + ImGui::SameLine(); HelpMarker("Enable resizing of windows from their edges and from the lower-left corner.\nThis requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback."); + ImGui::Checkbox("io.ConfigWindowsMoveFromTitleBarOnly", &io.ConfigWindowsMoveFromTitleBarOnly); + ImGui::Checkbox("io.ConfigMacOSXBehaviors", &io.ConfigMacOSXBehaviors); + ImGui::Text("Also see Style->Rendering for rendering options."); + + ImGui::SeparatorText("Debug"); + ImGui::BeginDisabled(); + ImGui::Checkbox("io.ConfigDebugBeginReturnValueOnce", &io.ConfigDebugBeginReturnValueOnce); // . + ImGui::EndDisabled(); + ImGui::SameLine(); HelpMarker("First calls to Begin()/BeginChild() will return false.\n\nTHIS OPTION IS DISABLED because it needs to be set at application boot-time to make sense. Showing the disabled option is a way to make this feature easier to discover"); + ImGui::Checkbox("io.ConfigDebugBeginReturnValueLoop", &io.ConfigDebugBeginReturnValueLoop); + ImGui::SameLine(); HelpMarker("Some calls to Begin()/BeginChild() will return false.\n\nWill cycle through window depths then repeat. Windows should be flickering while running."); + ImGui::Checkbox("io.ConfigDebugIgnoreFocusLoss", &io.ConfigDebugIgnoreFocusLoss); + ImGui::SameLine(); HelpMarker("Option to deactivate io.AddFocusEvent(false) handling. May facilitate interactions with a debugger when focus loss leads to clearing inputs data."); + ImGui::Checkbox("io.ConfigDebugIniSettings", &io.ConfigDebugIniSettings); + ImGui::SameLine(); HelpMarker("Option to save .ini data with extra comments (particularly helpful for Docking, but makes saving slower)."); + + ImGui::TreePop(); + ImGui::Spacing(); + } + + IMGUI_DEMO_MARKER("Configuration/Backend Flags"); + if (ImGui::TreeNode("Backend Flags")) + { + HelpMarker( + "Those flags are set by the backends (imgui_impl_xxx files) to specify their capabilities.\n" + "Here we expose them as read-only fields to avoid breaking interactions with your backend."); + + // Make a local copy to avoid modifying actual backend flags. + // FIXME: Maybe we need a BeginReadonly() equivalent to keep label bright? + ImGui::BeginDisabled(); + ImGui::CheckboxFlags("io.BackendFlags: HasGamepad", &io.BackendFlags, ImGuiBackendFlags_HasGamepad); + ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", &io.BackendFlags, ImGuiBackendFlags_HasMouseCursors); + ImGui::CheckboxFlags("io.BackendFlags: HasSetMousePos", &io.BackendFlags, ImGuiBackendFlags_HasSetMousePos); + ImGui::CheckboxFlags("io.BackendFlags: PlatformHasViewports", &io.BackendFlags, ImGuiBackendFlags_PlatformHasViewports); + ImGui::CheckboxFlags("io.BackendFlags: HasMouseHoveredViewport",&io.BackendFlags, ImGuiBackendFlags_HasMouseHoveredViewport); + ImGui::CheckboxFlags("io.BackendFlags: RendererHasVtxOffset", &io.BackendFlags, ImGuiBackendFlags_RendererHasVtxOffset); + ImGui::CheckboxFlags("io.BackendFlags: RendererHasViewports", &io.BackendFlags, ImGuiBackendFlags_RendererHasViewports); + ImGui::EndDisabled(); + ImGui::TreePop(); + ImGui::Spacing(); + } + + IMGUI_DEMO_MARKER("Configuration/Style"); + if (ImGui::TreeNode("Style")) + { + HelpMarker("The same contents can be accessed in 'Tools->Style Editor' or by calling the ShowStyleEditor() function."); + ImGui::ShowStyleEditor(); + ImGui::TreePop(); + ImGui::Spacing(); + } + + IMGUI_DEMO_MARKER("Configuration/Capture, Logging"); + if (ImGui::TreeNode("Capture/Logging")) + { + HelpMarker( + "The logging API redirects all text output so you can easily capture the content of " + "a window or a block. Tree nodes can be automatically expanded.\n" + "Try opening any of the contents below in this window and then click one of the \"Log To\" button."); + ImGui::LogButtons(); + + HelpMarker("You can also call ImGui::LogText() to output directly to the log without a visual output."); + if (ImGui::Button("Copy \"Hello, world!\" to clipboard")) + { + ImGui::LogToClipboard(); + ImGui::LogText("Hello, world!"); + ImGui::LogFinish(); + } + ImGui::TreePop(); + } + } + + IMGUI_DEMO_MARKER("Window options"); + if (ImGui::CollapsingHeader("Window options")) + { + if (ImGui::BeginTable("split", 3)) + { + ImGui::TableNextColumn(); ImGui::Checkbox("No titlebar", &no_titlebar); + ImGui::TableNextColumn(); ImGui::Checkbox("No scrollbar", &no_scrollbar); + ImGui::TableNextColumn(); ImGui::Checkbox("No menu", &no_menu); + ImGui::TableNextColumn(); ImGui::Checkbox("No move", &no_move); + ImGui::TableNextColumn(); ImGui::Checkbox("No resize", &no_resize); + ImGui::TableNextColumn(); ImGui::Checkbox("No collapse", &no_collapse); + ImGui::TableNextColumn(); ImGui::Checkbox("No close", &no_close); + ImGui::TableNextColumn(); ImGui::Checkbox("No nav", &no_nav); + ImGui::TableNextColumn(); ImGui::Checkbox("No background", &no_background); + ImGui::TableNextColumn(); ImGui::Checkbox("No bring to front", &no_bring_to_front); + ImGui::TableNextColumn(); ImGui::Checkbox("No docking", &no_docking); + ImGui::TableNextColumn(); ImGui::Checkbox("Unsaved document", &unsaved_document); + ImGui::EndTable(); + } + } + + // All demo contents + ShowDemoWindowWidgets(); + ShowDemoWindowLayout(); + ShowDemoWindowPopups(); + ShowDemoWindowTables(); + ShowDemoWindowInputs(); + + // End of ShowDemoWindow() + ImGui::PopItemWidth(); + ImGui::End(); +} + +static void ShowDemoWindowWidgets() +{ + IMGUI_DEMO_MARKER("Widgets"); + if (!ImGui::CollapsingHeader("Widgets")) + return; + + static bool disable_all = false; // The Checkbox for that is inside the "Disabled" section at the bottom + if (disable_all) + ImGui::BeginDisabled(); + + IMGUI_DEMO_MARKER("Widgets/Basic"); + if (ImGui::TreeNode("Basic")) + { + ImGui::SeparatorText("General"); + + IMGUI_DEMO_MARKER("Widgets/Basic/Button"); + static int clicked = 0; + if (ImGui::Button("Button")) + clicked++; + if (clicked & 1) + { + ImGui::SameLine(); + ImGui::Text("Thanks for clicking me!"); + } + + IMGUI_DEMO_MARKER("Widgets/Basic/Checkbox"); + static bool check = true; + ImGui::Checkbox("checkbox", &check); + + IMGUI_DEMO_MARKER("Widgets/Basic/RadioButton"); + static int e = 0; + ImGui::RadioButton("radio a", &e, 0); ImGui::SameLine(); + ImGui::RadioButton("radio b", &e, 1); ImGui::SameLine(); + ImGui::RadioButton("radio c", &e, 2); + + // Color buttons, demonstrate using PushID() to add unique identifier in the ID stack, and changing style. + IMGUI_DEMO_MARKER("Widgets/Basic/Buttons (Colored)"); + for (int i = 0; i < 7; i++) + { + if (i > 0) + ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleColor(ImGuiCol_Button, (ImVec4)ImColor::HSV(i / 7.0f, 0.6f, 0.6f)); + ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV(i / 7.0f, 0.7f, 0.7f)); + ImGui::PushStyleColor(ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV(i / 7.0f, 0.8f, 0.8f)); + ImGui::Button("Click"); + ImGui::PopStyleColor(3); + ImGui::PopID(); + } + + // Use AlignTextToFramePadding() to align text baseline to the baseline of framed widgets elements + // (otherwise a Text+SameLine+Button sequence will have the text a little too high by default!) + // See 'Demo->Layout->Text Baseline Alignment' for details. + ImGui::AlignTextToFramePadding(); + ImGui::Text("Hold to repeat:"); + ImGui::SameLine(); + + // Arrow buttons with Repeater + IMGUI_DEMO_MARKER("Widgets/Basic/Buttons (Repeating)"); + static int counter = 0; + float spacing = ImGui::GetStyle().ItemInnerSpacing.x; + ImGui::PushButtonRepeat(true); + if (ImGui::ArrowButton("##left", ImGuiDir_Left)) { counter--; } + ImGui::SameLine(0.0f, spacing); + if (ImGui::ArrowButton("##right", ImGuiDir_Right)) { counter++; } + ImGui::PopButtonRepeat(); + ImGui::SameLine(); + ImGui::Text("%d", counter); + + ImGui::Button("Tooltip"); + ImGui::SetItemTooltip("I am a tooltip"); + + ImGui::LabelText("label", "Value"); + + ImGui::SeparatorText("Inputs"); + + { + // To wire InputText() with std::string or any other custom string type, + // see the "Text Input > Resize Callback" section of this demo, and the misc/cpp/imgui_stdlib.h file. + IMGUI_DEMO_MARKER("Widgets/Basic/InputText"); + static char str0[128] = "Hello, world!"; + ImGui::InputText("input text", str0, IM_ARRAYSIZE(str0)); + ImGui::SameLine(); HelpMarker( + "USER:\n" + "Hold SHIFT or use mouse to select text.\n" + "CTRL+Left/Right to word jump.\n" + "CTRL+A or Double-Click to select all.\n" + "CTRL+X,CTRL+C,CTRL+V clipboard.\n" + "CTRL+Z,CTRL+Y undo/redo.\n" + "ESCAPE to revert.\n\n" + "PROGRAMMER:\n" + "You can use the ImGuiInputTextFlags_CallbackResize facility if you need to wire InputText() " + "to a dynamic string type. See misc/cpp/imgui_stdlib.h for an example (this is not demonstrated " + "in imgui_demo.cpp)."); + + static char str1[128] = ""; + ImGui::InputTextWithHint("input text (w/ hint)", "enter text here", str1, IM_ARRAYSIZE(str1)); + + IMGUI_DEMO_MARKER("Widgets/Basic/InputInt, InputFloat"); + static int i0 = 123; + ImGui::InputInt("input int", &i0); + + static float f0 = 0.001f; + ImGui::InputFloat("input float", &f0, 0.01f, 1.0f, "%.3f"); + + static double d0 = 999999.00000001; + ImGui::InputDouble("input double", &d0, 0.01f, 1.0f, "%.8f"); + + static float f1 = 1.e10f; + ImGui::InputFloat("input scientific", &f1, 0.0f, 0.0f, "%e"); + ImGui::SameLine(); HelpMarker( + "You can input value using the scientific notation,\n" + " e.g. \"1e+8\" becomes \"100000000\"."); + + static float vec4a[4] = { 0.10f, 0.20f, 0.30f, 0.44f }; + ImGui::InputFloat3("input float3", vec4a); + } + + ImGui::SeparatorText("Drags"); + + { + IMGUI_DEMO_MARKER("Widgets/Basic/DragInt, DragFloat"); + static int i1 = 50, i2 = 42; + ImGui::DragInt("drag int", &i1, 1); + ImGui::SameLine(); HelpMarker( + "Click and drag to edit value.\n" + "Hold SHIFT/ALT for faster/slower edit.\n" + "Double-click or CTRL+click to input value."); + + ImGui::DragInt("drag int 0..100", &i2, 1, 0, 100, "%d%%", ImGuiSliderFlags_AlwaysClamp); + + static float f1 = 1.00f, f2 = 0.0067f; + ImGui::DragFloat("drag float", &f1, 0.005f); + ImGui::DragFloat("drag small float", &f2, 0.0001f, 0.0f, 0.0f, "%.06f ns"); + } + + ImGui::SeparatorText("Sliders"); + + { + IMGUI_DEMO_MARKER("Widgets/Basic/SliderInt, SliderFloat"); + static int i1 = 0; + ImGui::SliderInt("slider int", &i1, -1, 3); + ImGui::SameLine(); HelpMarker("CTRL+click to input value."); + + static float f1 = 0.123f, f2 = 0.0f; + ImGui::SliderFloat("slider float", &f1, 0.0f, 1.0f, "ratio = %.3f"); + ImGui::SliderFloat("slider float (log)", &f2, -10.0f, 10.0f, "%.4f", ImGuiSliderFlags_Logarithmic); + + IMGUI_DEMO_MARKER("Widgets/Basic/SliderAngle"); + static float angle = 0.0f; + ImGui::SliderAngle("slider angle", &angle); + + // Using the format string to display a name instead of an integer. + // Here we completely omit '%d' from the format string, so it'll only display a name. + // This technique can also be used with DragInt(). + IMGUI_DEMO_MARKER("Widgets/Basic/Slider (enum)"); + enum Element { Element_Fire, Element_Earth, Element_Air, Element_Water, Element_COUNT }; + static int elem = Element_Fire; + const char* elems_names[Element_COUNT] = { "Fire", "Earth", "Air", "Water" }; + const char* elem_name = (elem >= 0 && elem < Element_COUNT) ? elems_names[elem] : "Unknown"; + ImGui::SliderInt("slider enum", &elem, 0, Element_COUNT - 1, elem_name); // Use ImGuiSliderFlags_NoInput flag to disable CTRL+Click here. + ImGui::SameLine(); HelpMarker("Using the format string parameter to display a name instead of the underlying integer."); + } + + ImGui::SeparatorText("Selectors/Pickers"); + + { + IMGUI_DEMO_MARKER("Widgets/Basic/ColorEdit3, ColorEdit4"); + static float col1[3] = { 1.0f, 0.0f, 0.2f }; + static float col2[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::ColorEdit3("color 1", col1); + ImGui::SameLine(); HelpMarker( + "Click on the color square to open a color picker.\n" + "Click and hold to use drag and drop.\n" + "Right-click on the color square to show options.\n" + "CTRL+click on individual component to input value.\n"); + + ImGui::ColorEdit4("color 2", col2); + } + + { + // Using the _simplified_ one-liner Combo() api here + // See "Combo" section for examples of how to use the more flexible BeginCombo()/EndCombo() api. + IMGUI_DEMO_MARKER("Widgets/Basic/Combo"); + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIIIIII", "JJJJ", "KKKKKKK" }; + static int item_current = 0; + ImGui::Combo("combo", &item_current, items, IM_ARRAYSIZE(items)); + ImGui::SameLine(); HelpMarker( + "Using the simplified one-liner Combo API here.\nRefer to the \"Combo\" section below for an explanation of how to use the more flexible and general BeginCombo/EndCombo API."); + } + + { + // Using the _simplified_ one-liner ListBox() api here + // See "List boxes" section for examples of how to use the more flexible BeginListBox()/EndListBox() api. + IMGUI_DEMO_MARKER("Widgets/Basic/ListBox"); + const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi", "Mango", "Orange", "Pineapple", "Strawberry", "Watermelon" }; + static int item_current = 1; + ImGui::ListBox("listbox", &item_current, items, IM_ARRAYSIZE(items), 4); + ImGui::SameLine(); HelpMarker( + "Using the simplified one-liner ListBox API here.\nRefer to the \"List boxes\" section below for an explanation of how to use the more flexible and general BeginListBox/EndListBox API."); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Tooltips"); + if (ImGui::TreeNode("Tooltips")) + { + // Tooltips are windows following the mouse. They do not take focus away. + ImGui::SeparatorText("General"); + + // Typical use cases: + // - Short-form (text only): SetItemTooltip("Hello"); + // - Short-form (any contents): if (BeginItemTooltip()) { Text("Hello"); EndTooltip(); } + + // - Full-form (text only): if (IsItemHovered(...)) { SetTooltip("Hello"); } + // - Full-form (any contents): if (IsItemHovered(...) && BeginTooltip()) { Text("Hello"); EndTooltip(); } + + HelpMarker( + "Tooltip are typically created by using a IsItemHovered() + SetTooltip() sequence.\n\n" + "We provide a helper SetItemTooltip() function to perform the two with standards flags."); + + ImVec2 sz = ImVec2(-FLT_MIN, 0.0f); + + ImGui::Button("Basic", sz); + ImGui::SetItemTooltip("I am a tooltip"); + + ImGui::Button("Fancy", sz); + if (ImGui::BeginItemTooltip()) + { + ImGui::Text("I am a fancy tooltip"); + static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; + ImGui::PlotLines("Curve", arr, IM_ARRAYSIZE(arr)); + ImGui::Text("Sin(time) = %f", sinf((float)ImGui::GetTime())); + ImGui::EndTooltip(); + } + + ImGui::SeparatorText("Always On"); + + // Showcase NOT relying on a IsItemHovered() to emit a tooltip. + // Here the tooltip is always emitted when 'always_on == true'. + static int always_on = 0; + ImGui::RadioButton("Off", &always_on, 0); + ImGui::SameLine(); + ImGui::RadioButton("Always On (Simple)", &always_on, 1); + ImGui::SameLine(); + ImGui::RadioButton("Always On (Advanced)", &always_on, 2); + if (always_on == 1) + ImGui::SetTooltip("I am following you around."); + else if (always_on == 2 && ImGui::BeginTooltip()) + { + ImGui::ProgressBar(sinf((float)ImGui::GetTime()) * 0.5f + 0.5f, ImVec2(ImGui::GetFontSize() * 25, 0.0f)); + ImGui::EndTooltip(); + } + + ImGui::SeparatorText("Custom"); + + HelpMarker( + "Passing ImGuiHoveredFlags_ForTooltip to IsItemHovered() is the preferred way to standardize" + "tooltip activation details across your application. You may however decide to use custom" + "flags for a specific tooltip instance."); + + // The following examples are passed for documentation purpose but may not be useful to most users. + // Passing ImGuiHoveredFlags_ForTooltip to IsItemHovered() will pull ImGuiHoveredFlags flags values from + // 'style.HoverFlagsForTooltipMouse' or 'style.HoverFlagsForTooltipNav' depending on whether mouse or gamepad/keyboard is being used. + // With default settings, ImGuiHoveredFlags_ForTooltip is equivalent to ImGuiHoveredFlags_DelayShort + ImGuiHoveredFlags_Stationary. + ImGui::Button("Manual", sz); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_ForTooltip)) + ImGui::SetTooltip("I am a manually emitted tooltip."); + + ImGui::Button("DelayNone", sz); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNone)) + ImGui::SetTooltip("I am a tooltip with no delay."); + + ImGui::Button("DelayShort", sz); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort | ImGuiHoveredFlags_NoSharedDelay)) + ImGui::SetTooltip("I am a tooltip with a short delay (%0.2f sec).", ImGui::GetStyle().HoverDelayShort); + + ImGui::Button("DelayLong", sz); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_NoSharedDelay)) + ImGui::SetTooltip("I am a tooltip with a long delay (%0.2f sec).", ImGui::GetStyle().HoverDelayNormal); + + ImGui::Button("Stationary", sz); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_Stationary)) + ImGui::SetTooltip("I am a tooltip requiring mouse to be stationary before activating."); + + // Using ImGuiHoveredFlags_ForTooltip will pull flags from 'style.HoverFlagsForTooltipMouse' or 'style.HoverFlagsForTooltipNav', + // which default value include the ImGuiHoveredFlags_AllowWhenDisabled flag. + // As a result, Set + ImGui::BeginDisabled(); + ImGui::Button("Disabled item", sz); + ImGui::EndDisabled(); + if (ImGui::IsItemHovered(ImGuiHoveredFlags_ForTooltip)) + ImGui::SetTooltip("I am a a tooltip for a disabled item."); + + ImGui::TreePop(); + } + + // Testing ImGuiOnceUponAFrame helper. + //static ImGuiOnceUponAFrame once; + //for (int i = 0; i < 5; i++) + // if (once) + // ImGui::Text("This will be displayed only once."); + + IMGUI_DEMO_MARKER("Widgets/Tree Nodes"); + if (ImGui::TreeNode("Tree Nodes")) + { + IMGUI_DEMO_MARKER("Widgets/Tree Nodes/Basic trees"); + if (ImGui::TreeNode("Basic trees")) + { + for (int i = 0; i < 5; i++) + { + // Use SetNextItemOpen() so set the default state of a node to be open. We could + // also use TreeNodeEx() with the ImGuiTreeNodeFlags_DefaultOpen flag to achieve the same thing! + if (i == 0) + ImGui::SetNextItemOpen(true, ImGuiCond_Once); + + if (ImGui::TreeNode((void*)(intptr_t)i, "Child %d", i)) + { + ImGui::Text("blah blah"); + ImGui::SameLine(); + if (ImGui::SmallButton("button")) {} + ImGui::TreePop(); + } + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Tree Nodes/Advanced, with Selectable nodes"); + if (ImGui::TreeNode("Advanced, with Selectable nodes")) + { + HelpMarker( + "This is a more typical looking tree with selectable nodes.\n" + "Click to select, CTRL+Click to toggle, click on arrows or double-click to open."); + static ImGuiTreeNodeFlags base_flags = ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_SpanAvailWidth; + static bool align_label_with_current_x_position = false; + static bool test_drag_and_drop = false; + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_OpenOnArrow", &base_flags, ImGuiTreeNodeFlags_OpenOnArrow); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_OpenOnDoubleClick", &base_flags, ImGuiTreeNodeFlags_OpenOnDoubleClick); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanAvailWidth", &base_flags, ImGuiTreeNodeFlags_SpanAvailWidth); ImGui::SameLine(); HelpMarker("Extend hit area to all available width instead of allowing more items to be laid out after the node."); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanFullWidth", &base_flags, ImGuiTreeNodeFlags_SpanFullWidth); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanAllColumns", &base_flags, ImGuiTreeNodeFlags_SpanAllColumns); ImGui::SameLine(); HelpMarker("For use in Tables only."); + ImGui::Checkbox("Align label with current X position", &align_label_with_current_x_position); + ImGui::Checkbox("Test tree node as drag source", &test_drag_and_drop); + ImGui::Text("Hello!"); + if (align_label_with_current_x_position) + ImGui::Unindent(ImGui::GetTreeNodeToLabelSpacing()); + + // 'selection_mask' is dumb representation of what may be user-side selection state. + // You may retain selection state inside or outside your objects in whatever format you see fit. + // 'node_clicked' is temporary storage of what node we have clicked to process selection at the end + /// of the loop. May be a pointer to your own node type, etc. + static int selection_mask = (1 << 2); + int node_clicked = -1; + for (int i = 0; i < 6; i++) + { + // Disable the default "open on single-click behavior" + set Selected flag according to our selection. + // To alter selection we use IsItemClicked() && !IsItemToggledOpen(), so clicking on an arrow doesn't alter selection. + ImGuiTreeNodeFlags node_flags = base_flags; + const bool is_selected = (selection_mask & (1 << i)) != 0; + if (is_selected) + node_flags |= ImGuiTreeNodeFlags_Selected; + if (i < 3) + { + // Items 0..2 are Tree Node + bool node_open = ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags, "Selectable Node %d", i); + if (ImGui::IsItemClicked() && !ImGui::IsItemToggledOpen()) + node_clicked = i; + if (test_drag_and_drop && ImGui::BeginDragDropSource()) + { + ImGui::SetDragDropPayload("_TREENODE", NULL, 0); + ImGui::Text("This is a drag and drop source"); + ImGui::EndDragDropSource(); + } + if (node_open) + { + ImGui::BulletText("Blah blah\nBlah Blah"); + ImGui::TreePop(); + } + } + else + { + // Items 3..5 are Tree Leaves + // The only reason we use TreeNode at all is to allow selection of the leaf. Otherwise we can + // use BulletText() or advance the cursor by GetTreeNodeToLabelSpacing() and call Text(). + node_flags |= ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen; // ImGuiTreeNodeFlags_Bullet + ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags, "Selectable Leaf %d", i); + if (ImGui::IsItemClicked() && !ImGui::IsItemToggledOpen()) + node_clicked = i; + if (test_drag_and_drop && ImGui::BeginDragDropSource()) + { + ImGui::SetDragDropPayload("_TREENODE", NULL, 0); + ImGui::Text("This is a drag and drop source"); + ImGui::EndDragDropSource(); + } + } + } + if (node_clicked != -1) + { + // Update selection state + // (process outside of tree loop to avoid visual inconsistencies during the clicking frame) + if (ImGui::GetIO().KeyCtrl) + selection_mask ^= (1 << node_clicked); // CTRL+click to toggle + else //if (!(selection_mask & (1 << node_clicked))) // Depending on selection behavior you want, may want to preserve selection when clicking on item that is part of the selection + selection_mask = (1 << node_clicked); // Click to single-select + } + if (align_label_with_current_x_position) + ImGui::Indent(ImGui::GetTreeNodeToLabelSpacing()); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Collapsing Headers"); + if (ImGui::TreeNode("Collapsing Headers")) + { + static bool closable_group = true; + ImGui::Checkbox("Show 2nd header", &closable_group); + if (ImGui::CollapsingHeader("Header", ImGuiTreeNodeFlags_None)) + { + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + for (int i = 0; i < 5; i++) + ImGui::Text("Some content %d", i); + } + if (ImGui::CollapsingHeader("Header with a close button", &closable_group)) + { + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + for (int i = 0; i < 5; i++) + ImGui::Text("More content %d", i); + } + /* + if (ImGui::CollapsingHeader("Header with a bullet", ImGuiTreeNodeFlags_Bullet)) + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + */ + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Bullets"); + if (ImGui::TreeNode("Bullets")) + { + ImGui::BulletText("Bullet point 1"); + ImGui::BulletText("Bullet point 2\nOn multiple lines"); + if (ImGui::TreeNode("Tree node")) + { + ImGui::BulletText("Another bullet point"); + ImGui::TreePop(); + } + ImGui::Bullet(); ImGui::Text("Bullet point 3 (two calls)"); + ImGui::Bullet(); ImGui::SmallButton("Button"); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text"); + if (ImGui::TreeNode("Text")) + { + IMGUI_DEMO_MARKER("Widgets/Text/Colored Text"); + if (ImGui::TreeNode("Colorful Text")) + { + // Using shortcut. You can use PushStyleColor()/PopStyleColor() for more flexibility. + ImGui::TextColored(ImVec4(1.0f, 0.0f, 1.0f, 1.0f), "Pink"); + ImGui::TextColored(ImVec4(1.0f, 1.0f, 0.0f, 1.0f), "Yellow"); + ImGui::TextDisabled("Disabled"); + ImGui::SameLine(); HelpMarker("The TextDisabled color is stored in ImGuiStyle."); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text/Word Wrapping"); + if (ImGui::TreeNode("Word Wrapping")) + { + // Using shortcut. You can use PushTextWrapPos()/PopTextWrapPos() for more flexibility. + ImGui::TextWrapped( + "This text should automatically wrap on the edge of the window. The current implementation " + "for text wrapping follows simple rules suitable for English and possibly other languages."); + ImGui::Spacing(); + + static float wrap_width = 200.0f; + ImGui::SliderFloat("Wrap width", &wrap_width, -20, 600, "%.0f"); + + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + for (int n = 0; n < 2; n++) + { + ImGui::Text("Test paragraph %d:", n); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImVec2 marker_min = ImVec2(pos.x + wrap_width, pos.y); + ImVec2 marker_max = ImVec2(pos.x + wrap_width + 10, pos.y + ImGui::GetTextLineHeight()); + ImGui::PushTextWrapPos(ImGui::GetCursorPos().x + wrap_width); + if (n == 0) + ImGui::Text("The lazy dog is a good dog. This paragraph should fit within %.0f pixels. Testing a 1 character word. The quick brown fox jumps over the lazy dog.", wrap_width); + else + ImGui::Text("aaaaaaaa bbbbbbbb, c cccccccc,dddddddd. d eeeeeeee ffffffff. gggggggg!hhhhhhhh"); + + // Draw actual text bounding box, following by marker of our expected limit (should not overlap!) + draw_list->AddRect(ImGui::GetItemRectMin(), ImGui::GetItemRectMax(), IM_COL32(255, 255, 0, 255)); + draw_list->AddRectFilled(marker_min, marker_max, IM_COL32(255, 0, 255, 255)); + ImGui::PopTextWrapPos(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text/UTF-8 Text"); + if (ImGui::TreeNode("UTF-8 Text")) + { + // UTF-8 test with Japanese characters + // (Needs a suitable font? Try "Google Noto" or "Arial Unicode". See docs/FONTS.md for details.) + // - From C++11 you can use the u8"my text" syntax to encode literal strings as UTF-8 + // - For earlier compiler, you may be able to encode your sources as UTF-8 (e.g. in Visual Studio, you + // can save your source files as 'UTF-8 without signature'). + // - FOR THIS DEMO FILE ONLY, BECAUSE WE WANT TO SUPPORT OLD COMPILERS, WE ARE *NOT* INCLUDING RAW UTF-8 + // CHARACTERS IN THIS SOURCE FILE. Instead we are encoding a few strings with hexadecimal constants. + // Don't do this in your application! Please use u8"text in any language" in your application! + // Note that characters values are preserved even by InputText() if the font cannot be displayed, + // so you can safely copy & paste garbled characters into another application. + ImGui::TextWrapped( + "CJK text will only appear if the font was loaded with the appropriate CJK character ranges. " + "Call io.Fonts->AddFontFromFileTTF() manually to load extra character ranges. " + "Read docs/FONTS.md for details."); + ImGui::Text("Hiragana: \xe3\x81\x8b\xe3\x81\x8d\xe3\x81\x8f\xe3\x81\x91\xe3\x81\x93 (kakikukeko)"); // Normally we would use u8"blah blah" with the proper characters directly in the string. + ImGui::Text("Kanjis: \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e (nihongo)"); + static char buf[32] = "\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e"; + //static char buf[32] = u8"NIHONGO"; // <- this is how you would write it with C++11, using real kanjis + ImGui::InputText("UTF-8 input", buf, IM_ARRAYSIZE(buf)); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Images"); + if (ImGui::TreeNode("Images")) + { + ImGuiIO& io = ImGui::GetIO(); + ImGui::TextWrapped( + "Below we are displaying the font texture (which is the only texture we have access to in this demo). " + "Use the 'ImTextureID' type as storage to pass pointers or identifier to your own texture data. " + "Hover the texture for a zoomed view!"); + + // Below we are displaying the font texture because it is the only texture we have access to inside the demo! + // Remember that ImTextureID is just storage for whatever you want it to be. It is essentially a value that + // will be passed to the rendering backend via the ImDrawCmd structure. + // If you use one of the default imgui_impl_XXXX.cpp rendering backend, they all have comments at the top + // of their respective source file to specify what they expect to be stored in ImTextureID, for example: + // - The imgui_impl_dx11.cpp renderer expect a 'ID3D11ShaderResourceView*' pointer + // - The imgui_impl_opengl3.cpp renderer expect a GLuint OpenGL texture identifier, etc. + // More: + // - If you decided that ImTextureID = MyEngineTexture*, then you can pass your MyEngineTexture* pointers + // to ImGui::Image(), and gather width/height through your own functions, etc. + // - You can use ShowMetricsWindow() to inspect the draw data that are being passed to your renderer, + // it will help you debug issues if you are confused about it. + // - Consider using the lower-level ImDrawList::AddImage() API, via ImGui::GetWindowDrawList()->AddImage(). + // - Read https://github.com/ocornut/imgui/blob/master/docs/FAQ.md + // - Read https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + ImTextureID my_tex_id = io.Fonts->TexID; + float my_tex_w = (float)io.Fonts->TexWidth; + float my_tex_h = (float)io.Fonts->TexHeight; + { + static bool use_text_color_for_tint = false; + ImGui::Checkbox("Use Text Color for Tint", &use_text_color_for_tint); + ImGui::Text("%.0fx%.0f", my_tex_w, my_tex_h); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImVec2 uv_min = ImVec2(0.0f, 0.0f); // Top-left + ImVec2 uv_max = ImVec2(1.0f, 1.0f); // Lower-right + ImVec4 tint_col = use_text_color_for_tint ? ImGui::GetStyleColorVec4(ImGuiCol_Text) : ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint + ImVec4 border_col = ImGui::GetStyleColorVec4(ImGuiCol_Border); + ImGui::Image(my_tex_id, ImVec2(my_tex_w, my_tex_h), uv_min, uv_max, tint_col, border_col); + if (ImGui::BeginItemTooltip()) + { + float region_sz = 32.0f; + float region_x = io.MousePos.x - pos.x - region_sz * 0.5f; + float region_y = io.MousePos.y - pos.y - region_sz * 0.5f; + float zoom = 4.0f; + if (region_x < 0.0f) { region_x = 0.0f; } + else if (region_x > my_tex_w - region_sz) { region_x = my_tex_w - region_sz; } + if (region_y < 0.0f) { region_y = 0.0f; } + else if (region_y > my_tex_h - region_sz) { region_y = my_tex_h - region_sz; } + ImGui::Text("Min: (%.2f, %.2f)", region_x, region_y); + ImGui::Text("Max: (%.2f, %.2f)", region_x + region_sz, region_y + region_sz); + ImVec2 uv0 = ImVec2((region_x) / my_tex_w, (region_y) / my_tex_h); + ImVec2 uv1 = ImVec2((region_x + region_sz) / my_tex_w, (region_y + region_sz) / my_tex_h); + ImGui::Image(my_tex_id, ImVec2(region_sz * zoom, region_sz * zoom), uv0, uv1, tint_col, border_col); + ImGui::EndTooltip(); + } + } + + IMGUI_DEMO_MARKER("Widgets/Images/Textured buttons"); + ImGui::TextWrapped("And now some textured buttons.."); + static int pressed_count = 0; + for (int i = 0; i < 8; i++) + { + // UV coordinates are often (0.0f, 0.0f) and (1.0f, 1.0f) to display an entire textures. + // Here are trying to display only a 32x32 pixels area of the texture, hence the UV computation. + // Read about UV coordinates here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + ImGui::PushID(i); + if (i > 0) + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(i - 1.0f, i - 1.0f)); + ImVec2 size = ImVec2(32.0f, 32.0f); // Size of the image we want to make visible + ImVec2 uv0 = ImVec2(0.0f, 0.0f); // UV coordinates for lower-left + ImVec2 uv1 = ImVec2(32.0f / my_tex_w, 32.0f / my_tex_h); // UV coordinates for (32,32) in our texture + ImVec4 bg_col = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); // Black background + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint + if (ImGui::ImageButton("", my_tex_id, size, uv0, uv1, bg_col, tint_col)) + pressed_count += 1; + if (i > 0) + ImGui::PopStyleVar(); + ImGui::PopID(); + ImGui::SameLine(); + } + ImGui::NewLine(); + ImGui::Text("Pressed %d times.", pressed_count); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Combo"); + if (ImGui::TreeNode("Combo")) + { + // Combo Boxes are also called "Dropdown" in other systems + // Expose flags as checkbox for the demo + static ImGuiComboFlags flags = 0; + ImGui::CheckboxFlags("ImGuiComboFlags_PopupAlignLeft", &flags, ImGuiComboFlags_PopupAlignLeft); + ImGui::SameLine(); HelpMarker("Only makes a difference if the popup is larger than the combo"); + if (ImGui::CheckboxFlags("ImGuiComboFlags_NoArrowButton", &flags, ImGuiComboFlags_NoArrowButton)) + flags &= ~ImGuiComboFlags_NoPreview; // Clear the other flag, as we cannot combine both + if (ImGui::CheckboxFlags("ImGuiComboFlags_NoPreview", &flags, ImGuiComboFlags_NoPreview)) + flags &= ~(ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_WidthFitPreview); // Clear the other flag, as we cannot combine both + if (ImGui::CheckboxFlags("ImGuiComboFlags_WidthFitPreview", &flags, ImGuiComboFlags_WidthFitPreview)) + flags &= ~ImGuiComboFlags_NoPreview; + + // Override default popup height + if (ImGui::CheckboxFlags("ImGuiComboFlags_HeightSmall", &flags, ImGuiComboFlags_HeightSmall)) + flags &= ~(ImGuiComboFlags_HeightMask_ & ~ImGuiComboFlags_HeightSmall); + if (ImGui::CheckboxFlags("ImGuiComboFlags_HeightRegular", &flags, ImGuiComboFlags_HeightRegular)) + flags &= ~(ImGuiComboFlags_HeightMask_ & ~ImGuiComboFlags_HeightRegular); + if (ImGui::CheckboxFlags("ImGuiComboFlags_HeightLargest", &flags, ImGuiComboFlags_HeightLargest)) + flags &= ~(ImGuiComboFlags_HeightMask_ & ~ImGuiComboFlags_HeightLargest); + + // Using the generic BeginCombo() API, you have full control over how to display the combo contents. + // (your selection data could be an index, a pointer to the object, an id for the object, a flag intrusively + // stored in the object itself, etc.) + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIII", "JJJJ", "KKKK", "LLLLLLL", "MMMM", "OOOOOOO" }; + static int item_current_idx = 0; // Here we store our selection data as an index. + const char* combo_preview_value = items[item_current_idx]; // Pass in the preview value visible before opening the combo (it could be anything) + if (ImGui::BeginCombo("combo 1", combo_preview_value, flags)) + { + for (int n = 0; n < IM_ARRAYSIZE(items); n++) + { + const bool is_selected = (item_current_idx == n); + if (ImGui::Selectable(items[n], is_selected)) + item_current_idx = n; + + // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) + if (is_selected) + ImGui::SetItemDefaultFocus(); + } + ImGui::EndCombo(); + } + + ImGui::Spacing(); + ImGui::SeparatorText("One-liner variants"); + HelpMarker("Flags above don't apply to this section."); + + // Simplified one-liner Combo() API, using values packed in a single constant string + // This is a convenience for when the selection set is small and known at compile-time. + static int item_current_2 = 0; + ImGui::Combo("combo 2 (one-liner)", &item_current_2, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); + + // Simplified one-liner Combo() using an array of const char* + // This is not very useful (may obsolete): prefer using BeginCombo()/EndCombo() for full control. + static int item_current_3 = -1; // If the selection isn't within 0..count, Combo won't display a preview + ImGui::Combo("combo 3 (array)", &item_current_3, items, IM_ARRAYSIZE(items)); + + // Simplified one-liner Combo() using an accessor function + static int item_current_4 = 0; + ImGui::Combo("combo 4 (function)", &item_current_4, [](void* data, int n) { return ((const char**)data)[n]; }, items, IM_ARRAYSIZE(items)); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/List Boxes"); + if (ImGui::TreeNode("List boxes")) + { + // Using the generic BeginListBox() API, you have full control over how to display the combo contents. + // (your selection data could be an index, a pointer to the object, an id for the object, a flag intrusively + // stored in the object itself, etc.) + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIII", "JJJJ", "KKKK", "LLLLLLL", "MMMM", "OOOOOOO" }; + static int item_current_idx = 0; // Here we store our selection data as an index. + if (ImGui::BeginListBox("listbox 1")) + { + for (int n = 0; n < IM_ARRAYSIZE(items); n++) + { + const bool is_selected = (item_current_idx == n); + if (ImGui::Selectable(items[n], is_selected)) + item_current_idx = n; + + // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) + if (is_selected) + ImGui::SetItemDefaultFocus(); + } + ImGui::EndListBox(); + } + + // Custom size: use all width, 5 items tall + ImGui::Text("Full-width:"); + if (ImGui::BeginListBox("##listbox 2", ImVec2(-FLT_MIN, 5 * ImGui::GetTextLineHeightWithSpacing()))) + { + for (int n = 0; n < IM_ARRAYSIZE(items); n++) + { + const bool is_selected = (item_current_idx == n); + if (ImGui::Selectable(items[n], is_selected)) + item_current_idx = n; + + // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) + if (is_selected) + ImGui::SetItemDefaultFocus(); + } + ImGui::EndListBox(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Selectables"); + if (ImGui::TreeNode("Selectables")) + { + // Selectable() has 2 overloads: + // - The one taking "bool selected" as a read-only selection information. + // When Selectable() has been clicked it returns true and you can alter selection state accordingly. + // - The one taking "bool* p_selected" as a read-write selection information (convenient in some cases) + // The earlier is more flexible, as in real application your selection may be stored in many different ways + // and not necessarily inside a bool value (e.g. in flags within objects, as an external list, etc). + IMGUI_DEMO_MARKER("Widgets/Selectables/Basic"); + if (ImGui::TreeNode("Basic")) + { + static bool selection[5] = { false, true, false, false }; + ImGui::Selectable("1. I am selectable", &selection[0]); + ImGui::Selectable("2. I am selectable", &selection[1]); + ImGui::Selectable("3. I am selectable", &selection[2]); + if (ImGui::Selectable("4. I am double clickable", selection[3], ImGuiSelectableFlags_AllowDoubleClick)) + if (ImGui::IsMouseDoubleClicked(0)) + selection[3] = !selection[3]; + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Selectables/Single Selection"); + if (ImGui::TreeNode("Selection State: Single Selection")) + { + static int selected = -1; + for (int n = 0; n < 5; n++) + { + char buf[32]; + sprintf(buf, "Object %d", n); + if (ImGui::Selectable(buf, selected == n)) + selected = n; + } + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Multiple Selection"); + if (ImGui::TreeNode("Selection State: Multiple Selection")) + { + HelpMarker("Hold CTRL and click to select multiple items."); + static bool selection[5] = { false, false, false, false, false }; + for (int n = 0; n < 5; n++) + { + char buf[32]; + sprintf(buf, "Object %d", n); + if (ImGui::Selectable(buf, selection[n])) + { + if (!ImGui::GetIO().KeyCtrl) // Clear selection when CTRL is not held + memset(selection, 0, sizeof(selection)); + selection[n] ^= 1; + } + } + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Rendering more items on the same line"); + if (ImGui::TreeNode("Rendering more items on the same line")) + { + // (1) Using SetNextItemAllowOverlap() + // (2) Using the Selectable() override that takes "bool* p_selected" parameter, the bool value is toggled automatically. + static bool selected[3] = { false, false, false }; + ImGui::SetNextItemAllowOverlap(); ImGui::Selectable("main.c", &selected[0]); ImGui::SameLine(); ImGui::SmallButton("Link 1"); + ImGui::SetNextItemAllowOverlap(); ImGui::Selectable("Hello.cpp", &selected[1]); ImGui::SameLine(); ImGui::SmallButton("Link 2"); + ImGui::SetNextItemAllowOverlap(); ImGui::Selectable("Hello.h", &selected[2]); ImGui::SameLine(); ImGui::SmallButton("Link 3"); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Selectables/In columns"); + if (ImGui::TreeNode("In columns")) + { + static bool selected[10] = {}; + + if (ImGui::BeginTable("split1", 3, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_Borders)) + { + for (int i = 0; i < 10; i++) + { + char label[32]; + sprintf(label, "Item %d", i); + ImGui::TableNextColumn(); + ImGui::Selectable(label, &selected[i]); // FIXME-TABLE: Selection overlap + } + ImGui::EndTable(); + } + ImGui::Spacing(); + if (ImGui::BeginTable("split2", 3, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_Borders)) + { + for (int i = 0; i < 10; i++) + { + char label[32]; + sprintf(label, "Item %d", i); + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::Selectable(label, &selected[i], ImGuiSelectableFlags_SpanAllColumns); + ImGui::TableNextColumn(); + ImGui::Text("Some other contents"); + ImGui::TableNextColumn(); + ImGui::Text("123456"); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Selectables/Grid"); + if (ImGui::TreeNode("Grid")) + { + static char selected[4][4] = { { 1, 0, 0, 0 }, { 0, 1, 0, 0 }, { 0, 0, 1, 0 }, { 0, 0, 0, 1 } }; + + // Add in a bit of silly fun... + const float time = (float)ImGui::GetTime(); + const bool winning_state = memchr(selected, 0, sizeof(selected)) == NULL; // If all cells are selected... + if (winning_state) + ImGui::PushStyleVar(ImGuiStyleVar_SelectableTextAlign, ImVec2(0.5f + 0.5f * cosf(time * 2.0f), 0.5f + 0.5f * sinf(time * 3.0f))); + + for (int y = 0; y < 4; y++) + for (int x = 0; x < 4; x++) + { + if (x > 0) + ImGui::SameLine(); + ImGui::PushID(y * 4 + x); + if (ImGui::Selectable("Sailor", selected[y][x] != 0, 0, ImVec2(50, 50))) + { + // Toggle clicked cell + toggle neighbors + selected[y][x] ^= 1; + if (x > 0) { selected[y][x - 1] ^= 1; } + if (x < 3) { selected[y][x + 1] ^= 1; } + if (y > 0) { selected[y - 1][x] ^= 1; } + if (y < 3) { selected[y + 1][x] ^= 1; } + } + ImGui::PopID(); + } + + if (winning_state) + ImGui::PopStyleVar(); + ImGui::TreePop(); + } + IMGUI_DEMO_MARKER("Widgets/Selectables/Alignment"); + if (ImGui::TreeNode("Alignment")) + { + HelpMarker( + "By default, Selectables uses style.SelectableTextAlign but it can be overridden on a per-item " + "basis using PushStyleVar(). You'll probably want to always keep your default situation to " + "left-align otherwise it becomes difficult to layout multiple items on a same line"); + static bool selected[3 * 3] = { true, false, true, false, true, false, true, false, true }; + for (int y = 0; y < 3; y++) + { + for (int x = 0; x < 3; x++) + { + ImVec2 alignment = ImVec2((float)x / 2.0f, (float)y / 2.0f); + char name[32]; + sprintf(name, "(%.1f,%.1f)", alignment.x, alignment.y); + if (x > 0) ImGui::SameLine(); + ImGui::PushStyleVar(ImGuiStyleVar_SelectableTextAlign, alignment); + ImGui::Selectable(name, &selected[3 * y + x], ImGuiSelectableFlags_None, ImVec2(80, 80)); + ImGui::PopStyleVar(); + } + } + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + // To wire InputText() with std::string or any other custom string type, + // see the "Text Input > Resize Callback" section of this demo, and the misc/cpp/imgui_stdlib.h file. + IMGUI_DEMO_MARKER("Widgets/Text Input"); + if (ImGui::TreeNode("Text Input")) + { + IMGUI_DEMO_MARKER("Widgets/Text Input/Multi-line Text Input"); + if (ImGui::TreeNode("Multi-line Text Input")) + { + // Note: we are using a fixed-sized buffer for simplicity here. See ImGuiInputTextFlags_CallbackResize + // and the code in misc/cpp/imgui_stdlib.h for how to setup InputText() for dynamically resizing strings. + static char text[1024 * 16] = + "/*\n" + " The Pentium F00F bug, shorthand for F0 0F C7 C8,\n" + " the hexadecimal encoding of one offending instruction,\n" + " more formally, the invalid operand with locked CMPXCHG8B\n" + " instruction bug, is a design flaw in the majority of\n" + " Intel Pentium, Pentium MMX, and Pentium OverDrive\n" + " processors (all in the P5 microarchitecture).\n" + "*/\n\n" + "label:\n" + "\tlock cmpxchg8b eax\n"; + + static ImGuiInputTextFlags flags = ImGuiInputTextFlags_AllowTabInput; + HelpMarker("You can use the ImGuiInputTextFlags_CallbackResize facility if you need to wire InputTextMultiline() to a dynamic string type. See misc/cpp/imgui_stdlib.h for an example. (This is not demonstrated in imgui_demo.cpp because we don't want to include in here)"); + ImGui::CheckboxFlags("ImGuiInputTextFlags_ReadOnly", &flags, ImGuiInputTextFlags_ReadOnly); + ImGui::CheckboxFlags("ImGuiInputTextFlags_AllowTabInput", &flags, ImGuiInputTextFlags_AllowTabInput); + ImGui::CheckboxFlags("ImGuiInputTextFlags_CtrlEnterForNewLine", &flags, ImGuiInputTextFlags_CtrlEnterForNewLine); + ImGui::InputTextMultiline("##source", text, IM_ARRAYSIZE(text), ImVec2(-FLT_MIN, ImGui::GetTextLineHeight() * 16), flags); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Input/Filtered Text Input"); + if (ImGui::TreeNode("Filtered Text Input")) + { + struct TextFilters + { + // Modify character input by altering 'data->Eventchar' (ImGuiInputTextFlags_CallbackCharFilter callback) + static int FilterCasingSwap(ImGuiInputTextCallbackData* data) + { + if (data->EventChar >= 'a' && data->EventChar <= 'z') { data->EventChar -= 'a' - 'A'; } // Lowercase becomes uppercase + else if (data->EventChar >= 'A' && data->EventChar <= 'Z') { data->EventChar += 'a' - 'A'; } // Uppercase becomes lowercase + return 0; + } + + // Return 0 (pass) if the character is 'i' or 'm' or 'g' or 'u' or 'i', otherwise return 1 (filter out) + static int FilterImGuiLetters(ImGuiInputTextCallbackData* data) + { + if (data->EventChar < 256 && strchr("imgui", (char)data->EventChar)) + return 0; + return 1; + } + }; + + static char buf1[32] = ""; ImGui::InputText("default", buf1, 32); + static char buf2[32] = ""; ImGui::InputText("decimal", buf2, 32, ImGuiInputTextFlags_CharsDecimal); + static char buf3[32] = ""; ImGui::InputText("hexadecimal", buf3, 32, ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase); + static char buf4[32] = ""; ImGui::InputText("uppercase", buf4, 32, ImGuiInputTextFlags_CharsUppercase); + static char buf5[32] = ""; ImGui::InputText("no blank", buf5, 32, ImGuiInputTextFlags_CharsNoBlank); + static char buf6[32] = ""; ImGui::InputText("casing swap", buf6, 32, ImGuiInputTextFlags_CallbackCharFilter, TextFilters::FilterCasingSwap); // Use CharFilter callback to replace characters. + static char buf7[32] = ""; ImGui::InputText("\"imgui\"", buf7, 32, ImGuiInputTextFlags_CallbackCharFilter, TextFilters::FilterImGuiLetters); // Use CharFilter callback to disable some characters. + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Input/Password input"); + if (ImGui::TreeNode("Password Input")) + { + static char password[64] = "password123"; + ImGui::InputText("password", password, IM_ARRAYSIZE(password), ImGuiInputTextFlags_Password); + ImGui::SameLine(); HelpMarker("Display all characters as '*'.\nDisable clipboard cut and copy.\nDisable logging.\n"); + ImGui::InputTextWithHint("password (w/ hint)", "", password, IM_ARRAYSIZE(password), ImGuiInputTextFlags_Password); + ImGui::InputText("password (clear)", password, IM_ARRAYSIZE(password)); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Input/Completion, History, Edit Callbacks"); + if (ImGui::TreeNode("Completion, History, Edit Callbacks")) + { + struct Funcs + { + static int MyCallback(ImGuiInputTextCallbackData* data) + { + if (data->EventFlag == ImGuiInputTextFlags_CallbackCompletion) + { + data->InsertChars(data->CursorPos, ".."); + } + else if (data->EventFlag == ImGuiInputTextFlags_CallbackHistory) + { + if (data->EventKey == ImGuiKey_UpArrow) + { + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, "Pressed Up!"); + data->SelectAll(); + } + else if (data->EventKey == ImGuiKey_DownArrow) + { + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, "Pressed Down!"); + data->SelectAll(); + } + } + else if (data->EventFlag == ImGuiInputTextFlags_CallbackEdit) + { + // Toggle casing of first character + char c = data->Buf[0]; + if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) data->Buf[0] ^= 32; + data->BufDirty = true; + + // Increment a counter + int* p_int = (int*)data->UserData; + *p_int = *p_int + 1; + } + return 0; + } + }; + static char buf1[64]; + ImGui::InputText("Completion", buf1, 64, ImGuiInputTextFlags_CallbackCompletion, Funcs::MyCallback); + ImGui::SameLine(); HelpMarker("Here we append \"..\" each time Tab is pressed. See 'Examples>Console' for a more meaningful demonstration of using this callback."); + + static char buf2[64]; + ImGui::InputText("History", buf2, 64, ImGuiInputTextFlags_CallbackHistory, Funcs::MyCallback); + ImGui::SameLine(); HelpMarker("Here we replace and select text each time Up/Down are pressed. See 'Examples>Console' for a more meaningful demonstration of using this callback."); + + static char buf3[64]; + static int edit_count = 0; + ImGui::InputText("Edit", buf3, 64, ImGuiInputTextFlags_CallbackEdit, Funcs::MyCallback, (void*)&edit_count); + ImGui::SameLine(); HelpMarker("Here we toggle the casing of the first character on every edit + count edits."); + ImGui::SameLine(); ImGui::Text("(%d)", edit_count); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Input/Resize Callback"); + if (ImGui::TreeNode("Resize Callback")) + { + // To wire InputText() with std::string or any other custom string type, + // you can use the ImGuiInputTextFlags_CallbackResize flag + create a custom ImGui::InputText() wrapper + // using your preferred type. See misc/cpp/imgui_stdlib.h for an implementation of this using std::string. + HelpMarker( + "Using ImGuiInputTextFlags_CallbackResize to wire your custom string type to InputText().\n\n" + "See misc/cpp/imgui_stdlib.h for an implementation of this for std::string."); + struct Funcs + { + static int MyResizeCallback(ImGuiInputTextCallbackData* data) + { + if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) + { + ImVector* my_str = (ImVector*)data->UserData; + IM_ASSERT(my_str->begin() == data->Buf); + my_str->resize(data->BufSize); // NB: On resizing calls, generally data->BufSize == data->BufTextLen + 1 + data->Buf = my_str->begin(); + } + return 0; + } + + // Note: Because ImGui:: is a namespace you would typically add your own function into the namespace. + // For example, you code may declare a function 'ImGui::InputText(const char* label, MyString* my_str)' + static bool MyInputTextMultiline(const char* label, ImVector* my_str, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0) + { + IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); + return ImGui::InputTextMultiline(label, my_str->begin(), (size_t)my_str->size(), size, flags | ImGuiInputTextFlags_CallbackResize, Funcs::MyResizeCallback, (void*)my_str); + } + }; + + // For this demo we are using ImVector as a string container. + // Note that because we need to store a terminating zero character, our size/capacity are 1 more + // than usually reported by a typical string class. + static ImVector my_str; + if (my_str.empty()) + my_str.push_back(0); + Funcs::MyInputTextMultiline("##MyStr", &my_str, ImVec2(-FLT_MIN, ImGui::GetTextLineHeight() * 16)); + ImGui::Text("Data: %p\nSize: %d\nCapacity: %d", (void*)my_str.begin(), my_str.size(), my_str.capacity()); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Input/Miscellaneous"); + if (ImGui::TreeNode("Miscellaneous")) + { + static char buf1[16]; + static ImGuiInputTextFlags flags = ImGuiInputTextFlags_EscapeClearsAll; + ImGui::CheckboxFlags("ImGuiInputTextFlags_EscapeClearsAll", &flags, ImGuiInputTextFlags_EscapeClearsAll); + ImGui::CheckboxFlags("ImGuiInputTextFlags_ReadOnly", &flags, ImGuiInputTextFlags_ReadOnly); + ImGui::CheckboxFlags("ImGuiInputTextFlags_NoUndoRedo", &flags, ImGuiInputTextFlags_NoUndoRedo); + ImGui::InputText("Hello", buf1, IM_ARRAYSIZE(buf1), flags); + ImGui::TreePop(); + } + + ImGui::TreePop(); + } + + // Tabs + IMGUI_DEMO_MARKER("Widgets/Tabs"); + if (ImGui::TreeNode("Tabs")) + { + IMGUI_DEMO_MARKER("Widgets/Tabs/Basic"); + if (ImGui::TreeNode("Basic")) + { + ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_None; + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + if (ImGui::BeginTabItem("Avocado")) + { + ImGui::Text("This is the Avocado tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Broccoli")) + { + ImGui::Text("This is the Broccoli tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Cucumber")) + { + ImGui::Text("This is the Cucumber tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Tabs/Advanced & Close Button"); + if (ImGui::TreeNode("Advanced & Close Button")) + { + // Expose a couple of the available flags. In most cases you may just call BeginTabBar() with no flags (0). + static ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable; + ImGui::CheckboxFlags("ImGuiTabBarFlags_Reorderable", &tab_bar_flags, ImGuiTabBarFlags_Reorderable); + ImGui::CheckboxFlags("ImGuiTabBarFlags_AutoSelectNewTabs", &tab_bar_flags, ImGuiTabBarFlags_AutoSelectNewTabs); + ImGui::CheckboxFlags("ImGuiTabBarFlags_TabListPopupButton", &tab_bar_flags, ImGuiTabBarFlags_TabListPopupButton); + ImGui::CheckboxFlags("ImGuiTabBarFlags_NoCloseWithMiddleMouseButton", &tab_bar_flags, ImGuiTabBarFlags_NoCloseWithMiddleMouseButton); + if ((tab_bar_flags & ImGuiTabBarFlags_FittingPolicyMask_) == 0) + tab_bar_flags |= ImGuiTabBarFlags_FittingPolicyDefault_; + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyResizeDown", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyResizeDown)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyResizeDown); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyScroll", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyScroll)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyScroll); + + // Tab Bar + const char* names[4] = { "Artichoke", "Beetroot", "Celery", "Daikon" }; + static bool opened[4] = { true, true, true, true }; // Persistent user state + for (int n = 0; n < IM_ARRAYSIZE(opened); n++) + { + if (n > 0) { ImGui::SameLine(); } + ImGui::Checkbox(names[n], &opened[n]); + } + + // Passing a bool* to BeginTabItem() is similar to passing one to Begin(): + // the underlying bool will be set to false when the tab is closed. + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + for (int n = 0; n < IM_ARRAYSIZE(opened); n++) + if (opened[n] && ImGui::BeginTabItem(names[n], &opened[n], ImGuiTabItemFlags_None)) + { + ImGui::Text("This is the %s tab!", names[n]); + if (n & 1) + ImGui::Text("I am an odd tab."); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Tabs/TabItemButton & Leading-Trailing flags"); + if (ImGui::TreeNode("TabItemButton & Leading/Trailing flags")) + { + static ImVector active_tabs; + static int next_tab_id = 0; + if (next_tab_id == 0) // Initialize with some default tabs + for (int i = 0; i < 3; i++) + active_tabs.push_back(next_tab_id++); + + // TabItemButton() and Leading/Trailing flags are distinct features which we will demo together. + // (It is possible to submit regular tabs with Leading/Trailing flags, or TabItemButton tabs without Leading/Trailing flags... + // but they tend to make more sense together) + static bool show_leading_button = true; + static bool show_trailing_button = true; + ImGui::Checkbox("Show Leading TabItemButton()", &show_leading_button); + ImGui::Checkbox("Show Trailing TabItemButton()", &show_trailing_button); + + // Expose some other flags which are useful to showcase how they interact with Leading/Trailing tabs + static ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_AutoSelectNewTabs | ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_FittingPolicyResizeDown; + ImGui::CheckboxFlags("ImGuiTabBarFlags_TabListPopupButton", &tab_bar_flags, ImGuiTabBarFlags_TabListPopupButton); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyResizeDown", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyResizeDown)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyResizeDown); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyScroll", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyScroll)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyScroll); + + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + // Demo a Leading TabItemButton(): click the "?" button to open a menu + if (show_leading_button) + if (ImGui::TabItemButton("?", ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_NoTooltip)) + ImGui::OpenPopup("MyHelpMenu"); + if (ImGui::BeginPopup("MyHelpMenu")) + { + ImGui::Selectable("Hello!"); + ImGui::EndPopup(); + } + + // Demo Trailing Tabs: click the "+" button to add a new tab (in your app you may want to use a font icon instead of the "+") + // Note that we submit it before the regular tabs, but because of the ImGuiTabItemFlags_Trailing flag it will always appear at the end. + if (show_trailing_button) + if (ImGui::TabItemButton("+", ImGuiTabItemFlags_Trailing | ImGuiTabItemFlags_NoTooltip)) + active_tabs.push_back(next_tab_id++); // Add new tab + + // Submit our regular tabs + for (int n = 0; n < active_tabs.Size; ) + { + bool open = true; + char name[16]; + snprintf(name, IM_ARRAYSIZE(name), "%04d", active_tabs[n]); + if (ImGui::BeginTabItem(name, &open, ImGuiTabItemFlags_None)) + { + ImGui::Text("This is the %s tab!", name); + ImGui::EndTabItem(); + } + + if (!open) + active_tabs.erase(active_tabs.Data + n); + else + n++; + } + + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + // Plot/Graph widgets are not very good. + // Consider using a third-party library such as ImPlot: https://github.com/epezent/implot + // (see others https://github.com/ocornut/imgui/wiki/Useful-Extensions) + IMGUI_DEMO_MARKER("Widgets/Plotting"); + if (ImGui::TreeNode("Plotting")) + { + static bool animate = true; + ImGui::Checkbox("Animate", &animate); + + // Plot as lines and plot as histogram + IMGUI_DEMO_MARKER("Widgets/Plotting/PlotLines, PlotHistogram"); + static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; + ImGui::PlotLines("Frame Times", arr, IM_ARRAYSIZE(arr)); + ImGui::PlotHistogram("Histogram", arr, IM_ARRAYSIZE(arr), 0, NULL, 0.0f, 1.0f, ImVec2(0, 80.0f)); + + // Fill an array of contiguous float values to plot + // Tip: If your float aren't contiguous but part of a structure, you can pass a pointer to your first float + // and the sizeof() of your structure in the "stride" parameter. + static float values[90] = {}; + static int values_offset = 0; + static double refresh_time = 0.0; + if (!animate || refresh_time == 0.0) + refresh_time = ImGui::GetTime(); + while (refresh_time < ImGui::GetTime()) // Create data at fixed 60 Hz rate for the demo + { + static float phase = 0.0f; + values[values_offset] = cosf(phase); + values_offset = (values_offset + 1) % IM_ARRAYSIZE(values); + phase += 0.10f * values_offset; + refresh_time += 1.0f / 60.0f; + } + + // Plots can display overlay texts + // (in this example, we will display an average value) + { + float average = 0.0f; + for (int n = 0; n < IM_ARRAYSIZE(values); n++) + average += values[n]; + average /= (float)IM_ARRAYSIZE(values); + char overlay[32]; + sprintf(overlay, "avg %f", average); + ImGui::PlotLines("Lines", values, IM_ARRAYSIZE(values), values_offset, overlay, -1.0f, 1.0f, ImVec2(0, 80.0f)); + } + + // Use functions to generate output + // FIXME: This is actually VERY awkward because current plot API only pass in indices. + // We probably want an API passing floats and user provide sample rate/count. + struct Funcs + { + static float Sin(void*, int i) { return sinf(i * 0.1f); } + static float Saw(void*, int i) { return (i & 1) ? 1.0f : -1.0f; } + }; + static int func_type = 0, display_count = 70; + ImGui::SeparatorText("Functions"); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::Combo("func", &func_type, "Sin\0Saw\0"); + ImGui::SameLine(); + ImGui::SliderInt("Sample count", &display_count, 1, 400); + float (*func)(void*, int) = (func_type == 0) ? Funcs::Sin : Funcs::Saw; + ImGui::PlotLines("Lines", func, NULL, display_count, 0, NULL, -1.0f, 1.0f, ImVec2(0, 80)); + ImGui::PlotHistogram("Histogram", func, NULL, display_count, 0, NULL, -1.0f, 1.0f, ImVec2(0, 80)); + ImGui::Separator(); + + // Animate a simple progress bar + IMGUI_DEMO_MARKER("Widgets/Plotting/ProgressBar"); + static float progress = 0.0f, progress_dir = 1.0f; + if (animate) + { + progress += progress_dir * 0.4f * ImGui::GetIO().DeltaTime; + if (progress >= +1.1f) { progress = +1.1f; progress_dir *= -1.0f; } + if (progress <= -0.1f) { progress = -0.1f; progress_dir *= -1.0f; } + } + + // Typically we would use ImVec2(-1.0f,0.0f) or ImVec2(-FLT_MIN,0.0f) to use all available width, + // or ImVec2(width,0.0f) for a specified width. ImVec2(0.0f,0.0f) uses ItemWidth. + ImGui::ProgressBar(progress, ImVec2(0.0f, 0.0f)); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + ImGui::Text("Progress Bar"); + + float progress_saturated = IM_CLAMP(progress, 0.0f, 1.0f); + char buf[32]; + sprintf(buf, "%d/%d", (int)(progress_saturated * 1753), 1753); + ImGui::ProgressBar(progress, ImVec2(0.f, 0.f), buf); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Color"); + if (ImGui::TreeNode("Color/Picker Widgets")) + { + static ImVec4 color = ImVec4(114.0f / 255.0f, 144.0f / 255.0f, 154.0f / 255.0f, 200.0f / 255.0f); + + static bool alpha_preview = true; + static bool alpha_half_preview = false; + static bool drag_and_drop = true; + static bool options_menu = true; + static bool hdr = false; + ImGui::SeparatorText("Options"); + ImGui::Checkbox("With Alpha Preview", &alpha_preview); + ImGui::Checkbox("With Half Alpha Preview", &alpha_half_preview); + ImGui::Checkbox("With Drag and Drop", &drag_and_drop); + ImGui::Checkbox("With Options Menu", &options_menu); ImGui::SameLine(); HelpMarker("Right-click on the individual color widget to show options."); + ImGui::Checkbox("With HDR", &hdr); ImGui::SameLine(); HelpMarker("Currently all this does is to lift the 0..1 limits on dragging widgets."); + ImGuiColorEditFlags misc_flags = (hdr ? ImGuiColorEditFlags_HDR : 0) | (drag_and_drop ? 0 : ImGuiColorEditFlags_NoDragDrop) | (alpha_half_preview ? ImGuiColorEditFlags_AlphaPreviewHalf : (alpha_preview ? ImGuiColorEditFlags_AlphaPreview : 0)) | (options_menu ? 0 : ImGuiColorEditFlags_NoOptions); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorEdit"); + ImGui::SeparatorText("Inline color editor"); + ImGui::Text("Color widget:"); + ImGui::SameLine(); HelpMarker( + "Click on the color square to open a color picker.\n" + "CTRL+click on individual component to input value.\n"); + ImGui::ColorEdit3("MyColor##1", (float*)&color, misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorEdit (HSV, with Alpha)"); + ImGui::Text("Color widget HSV with Alpha:"); + ImGui::ColorEdit4("MyColor##2", (float*)&color, ImGuiColorEditFlags_DisplayHSV | misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorEdit (float display)"); + ImGui::Text("Color widget with Float Display:"); + ImGui::ColorEdit4("MyColor##2f", (float*)&color, ImGuiColorEditFlags_Float | misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorButton (with Picker)"); + ImGui::Text("Color button with Picker:"); + ImGui::SameLine(); HelpMarker( + "With the ImGuiColorEditFlags_NoInputs flag you can hide all the slider/text inputs.\n" + "With the ImGuiColorEditFlags_NoLabel flag you can pass a non-empty label which will only " + "be used for the tooltip and picker popup."); + ImGui::ColorEdit4("MyColor##3", (float*)&color, ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoLabel | misc_flags); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorButton (with custom Picker popup)"); + ImGui::Text("Color button with Custom Picker Popup:"); + + // Generate a default palette. The palette will persist and can be edited. + static bool saved_palette_init = true; + static ImVec4 saved_palette[32] = {}; + if (saved_palette_init) + { + for (int n = 0; n < IM_ARRAYSIZE(saved_palette); n++) + { + ImGui::ColorConvertHSVtoRGB(n / 31.0f, 0.8f, 0.8f, + saved_palette[n].x, saved_palette[n].y, saved_palette[n].z); + saved_palette[n].w = 1.0f; // Alpha + } + saved_palette_init = false; + } + + static ImVec4 backup_color; + bool open_popup = ImGui::ColorButton("MyColor##3b", color, misc_flags); + ImGui::SameLine(0, ImGui::GetStyle().ItemInnerSpacing.x); + open_popup |= ImGui::Button("Palette"); + if (open_popup) + { + ImGui::OpenPopup("mypicker"); + backup_color = color; + } + if (ImGui::BeginPopup("mypicker")) + { + ImGui::Text("MY CUSTOM COLOR PICKER WITH AN AMAZING PALETTE!"); + ImGui::Separator(); + ImGui::ColorPicker4("##picker", (float*)&color, misc_flags | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoSmallPreview); + ImGui::SameLine(); + + ImGui::BeginGroup(); // Lock X position + ImGui::Text("Current"); + ImGui::ColorButton("##current", color, ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_AlphaPreviewHalf, ImVec2(60, 40)); + ImGui::Text("Previous"); + if (ImGui::ColorButton("##previous", backup_color, ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_AlphaPreviewHalf, ImVec2(60, 40))) + color = backup_color; + ImGui::Separator(); + ImGui::Text("Palette"); + for (int n = 0; n < IM_ARRAYSIZE(saved_palette); n++) + { + ImGui::PushID(n); + if ((n % 8) != 0) + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemSpacing.y); + + ImGuiColorEditFlags palette_button_flags = ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_NoTooltip; + if (ImGui::ColorButton("##palette", saved_palette[n], palette_button_flags, ImVec2(20, 20))) + color = ImVec4(saved_palette[n].x, saved_palette[n].y, saved_palette[n].z, color.w); // Preserve alpha! + + // Allow user to drop colors into each palette entry. Note that ColorButton() is already a + // drag source by default, unless specifying the ImGuiColorEditFlags_NoDragDrop flag. + if (ImGui::BeginDragDropTarget()) + { + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) + memcpy((float*)&saved_palette[n], payload->Data, sizeof(float) * 3); + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) + memcpy((float*)&saved_palette[n], payload->Data, sizeof(float) * 4); + ImGui::EndDragDropTarget(); + } + + ImGui::PopID(); + } + ImGui::EndGroup(); + ImGui::EndPopup(); + } + + IMGUI_DEMO_MARKER("Widgets/Color/ColorButton (simple)"); + ImGui::Text("Color button only:"); + static bool no_border = false; + ImGui::Checkbox("ImGuiColorEditFlags_NoBorder", &no_border); + ImGui::ColorButton("MyColor##3c", *(ImVec4*)&color, misc_flags | (no_border ? ImGuiColorEditFlags_NoBorder : 0), ImVec2(80, 80)); + + IMGUI_DEMO_MARKER("Widgets/Color/ColorPicker"); + ImGui::SeparatorText("Color picker"); + static bool alpha = true; + static bool alpha_bar = true; + static bool side_preview = true; + static bool ref_color = false; + static ImVec4 ref_color_v(1.0f, 0.0f, 1.0f, 0.5f); + static int display_mode = 0; + static int picker_mode = 0; + ImGui::Checkbox("With Alpha", &alpha); + ImGui::Checkbox("With Alpha Bar", &alpha_bar); + ImGui::Checkbox("With Side Preview", &side_preview); + if (side_preview) + { + ImGui::SameLine(); + ImGui::Checkbox("With Ref Color", &ref_color); + if (ref_color) + { + ImGui::SameLine(); + ImGui::ColorEdit4("##RefColor", &ref_color_v.x, ImGuiColorEditFlags_NoInputs | misc_flags); + } + } + ImGui::Combo("Display Mode", &display_mode, "Auto/Current\0None\0RGB Only\0HSV Only\0Hex Only\0"); + ImGui::SameLine(); HelpMarker( + "ColorEdit defaults to displaying RGB inputs if you don't specify a display mode, " + "but the user can change it with a right-click on those inputs.\n\nColorPicker defaults to displaying RGB+HSV+Hex " + "if you don't specify a display mode.\n\nYou can change the defaults using SetColorEditOptions()."); + ImGui::SameLine(); HelpMarker("When not specified explicitly (Auto/Current mode), user can right-click the picker to change mode."); + ImGuiColorEditFlags flags = misc_flags; + if (!alpha) flags |= ImGuiColorEditFlags_NoAlpha; // This is by default if you call ColorPicker3() instead of ColorPicker4() + if (alpha_bar) flags |= ImGuiColorEditFlags_AlphaBar; + if (!side_preview) flags |= ImGuiColorEditFlags_NoSidePreview; + if (picker_mode == 1) flags |= ImGuiColorEditFlags_PickerHueBar; + if (picker_mode == 2) flags |= ImGuiColorEditFlags_PickerHueWheel; + if (display_mode == 1) flags |= ImGuiColorEditFlags_NoInputs; // Disable all RGB/HSV/Hex displays + if (display_mode == 2) flags |= ImGuiColorEditFlags_DisplayRGB; // Override display mode + if (display_mode == 3) flags |= ImGuiColorEditFlags_DisplayHSV; + if (display_mode == 4) flags |= ImGuiColorEditFlags_DisplayHex; + ImGui::ColorPicker4("MyColor##4", (float*)&color, flags, ref_color ? &ref_color_v.x : NULL); + + ImGui::Text("Set defaults in code:"); + ImGui::SameLine(); HelpMarker( + "SetColorEditOptions() is designed to allow you to set boot-time default.\n" + "We don't have Push/Pop functions because you can force options on a per-widget basis if needed," + "and the user can change non-forced ones with the options menu.\nWe don't have a getter to avoid" + "encouraging you to persistently save values that aren't forward-compatible."); + if (ImGui::Button("Default: Uint8 + HSV + Hue Bar")) + ImGui::SetColorEditOptions(ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_PickerHueBar); + if (ImGui::Button("Default: Float + HDR + Hue Wheel")) + ImGui::SetColorEditOptions(ImGuiColorEditFlags_Float | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_PickerHueWheel); + + // Always both a small version of both types of pickers (to make it more visible in the demo to people who are skimming quickly through it) + ImGui::Text("Both types:"); + float w = (ImGui::GetContentRegionAvail().x - ImGui::GetStyle().ItemSpacing.y) * 0.40f; + ImGui::SetNextItemWidth(w); + ImGui::ColorPicker3("##MyColor##5", (float*)&color, ImGuiColorEditFlags_PickerHueBar | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoAlpha); + ImGui::SameLine(); + ImGui::SetNextItemWidth(w); + ImGui::ColorPicker3("##MyColor##6", (float*)&color, ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoAlpha); + + // HSV encoded support (to avoid RGB<>HSV round trips and singularities when S==0 or V==0) + static ImVec4 color_hsv(0.23f, 1.0f, 1.0f, 1.0f); // Stored as HSV! + ImGui::Spacing(); + ImGui::Text("HSV encoded colors"); + ImGui::SameLine(); HelpMarker( + "By default, colors are given to ColorEdit and ColorPicker in RGB, but ImGuiColorEditFlags_InputHSV" + "allows you to store colors as HSV and pass them to ColorEdit and ColorPicker as HSV. This comes with the" + "added benefit that you can manipulate hue values with the picker even when saturation or value are zero."); + ImGui::Text("Color widget with InputHSV:"); + ImGui::ColorEdit4("HSV shown as RGB##1", (float*)&color_hsv, ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputHSV | ImGuiColorEditFlags_Float); + ImGui::ColorEdit4("HSV shown as HSV##1", (float*)&color_hsv, ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_InputHSV | ImGuiColorEditFlags_Float); + ImGui::DragFloat4("Raw HSV values", (float*)&color_hsv, 0.01f, 0.0f, 1.0f); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and Slider Flags"); + if (ImGui::TreeNode("Drag/Slider Flags")) + { + // Demonstrate using advanced flags for DragXXX and SliderXXX functions. Note that the flags are the same! + static ImGuiSliderFlags flags = ImGuiSliderFlags_None; + ImGui::CheckboxFlags("ImGuiSliderFlags_AlwaysClamp", &flags, ImGuiSliderFlags_AlwaysClamp); + ImGui::SameLine(); HelpMarker("Always clamp value to min/max bounds (if any) when input manually with CTRL+Click."); + ImGui::CheckboxFlags("ImGuiSliderFlags_Logarithmic", &flags, ImGuiSliderFlags_Logarithmic); + ImGui::SameLine(); HelpMarker("Enable logarithmic editing (more precision for small values)."); + ImGui::CheckboxFlags("ImGuiSliderFlags_NoRoundToFormat", &flags, ImGuiSliderFlags_NoRoundToFormat); + ImGui::SameLine(); HelpMarker("Disable rounding underlying value to match precision of the format string (e.g. %.3f values are rounded to those 3 digits)."); + ImGui::CheckboxFlags("ImGuiSliderFlags_NoInput", &flags, ImGuiSliderFlags_NoInput); + ImGui::SameLine(); HelpMarker("Disable CTRL+Click or Enter key allowing to input text directly into the widget."); + + // Drags + static float drag_f = 0.5f; + static int drag_i = 50; + ImGui::Text("Underlying float value: %f", drag_f); + ImGui::DragFloat("DragFloat (0 -> 1)", &drag_f, 0.005f, 0.0f, 1.0f, "%.3f", flags); + ImGui::DragFloat("DragFloat (0 -> +inf)", &drag_f, 0.005f, 0.0f, FLT_MAX, "%.3f", flags); + ImGui::DragFloat("DragFloat (-inf -> 1)", &drag_f, 0.005f, -FLT_MAX, 1.0f, "%.3f", flags); + ImGui::DragFloat("DragFloat (-inf -> +inf)", &drag_f, 0.005f, -FLT_MAX, +FLT_MAX, "%.3f", flags); + ImGui::DragInt("DragInt (0 -> 100)", &drag_i, 0.5f, 0, 100, "%d", flags); + + // Sliders + static float slider_f = 0.5f; + static int slider_i = 50; + ImGui::Text("Underlying float value: %f", slider_f); + ImGui::SliderFloat("SliderFloat (0 -> 1)", &slider_f, 0.0f, 1.0f, "%.3f", flags); + ImGui::SliderInt("SliderInt (0 -> 100)", &slider_i, 0, 100, "%d", flags); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Range Widgets"); + if (ImGui::TreeNode("Range Widgets")) + { + static float begin = 10, end = 90; + static int begin_i = 100, end_i = 1000; + ImGui::DragFloatRange2("range float", &begin, &end, 0.25f, 0.0f, 100.0f, "Min: %.1f %%", "Max: %.1f %%", ImGuiSliderFlags_AlwaysClamp); + ImGui::DragIntRange2("range int", &begin_i, &end_i, 5, 0, 1000, "Min: %d units", "Max: %d units"); + ImGui::DragIntRange2("range int (no bounds)", &begin_i, &end_i, 5, 0, 0, "Min: %d units", "Max: %d units"); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Data Types"); + if (ImGui::TreeNode("Data Types")) + { + // DragScalar/InputScalar/SliderScalar functions allow various data types + // - signed/unsigned + // - 8/16/32/64-bits + // - integer/float/double + // To avoid polluting the public API with all possible combinations, we use the ImGuiDataType enum + // to pass the type, and passing all arguments by pointer. + // This is the reason the test code below creates local variables to hold "zero" "one" etc. for each type. + // In practice, if you frequently use a given type that is not covered by the normal API entry points, + // you can wrap it yourself inside a 1 line function which can take typed argument as value instead of void*, + // and then pass their address to the generic function. For example: + // bool MySliderU64(const char *label, u64* value, u64 min = 0, u64 max = 0, const char* format = "%lld") + // { + // return SliderScalar(label, ImGuiDataType_U64, value, &min, &max, format); + // } + + // Setup limits (as helper variables so we can take their address, as explained above) + // Note: SliderScalar() functions have a maximum usable range of half the natural type maximum, hence the /2. + #ifndef LLONG_MIN + ImS64 LLONG_MIN = -9223372036854775807LL - 1; + ImS64 LLONG_MAX = 9223372036854775807LL; + ImU64 ULLONG_MAX = (2ULL * 9223372036854775807LL + 1); + #endif + const char s8_zero = 0, s8_one = 1, s8_fifty = 50, s8_min = -128, s8_max = 127; + const ImU8 u8_zero = 0, u8_one = 1, u8_fifty = 50, u8_min = 0, u8_max = 255; + const short s16_zero = 0, s16_one = 1, s16_fifty = 50, s16_min = -32768, s16_max = 32767; + const ImU16 u16_zero = 0, u16_one = 1, u16_fifty = 50, u16_min = 0, u16_max = 65535; + const ImS32 s32_zero = 0, s32_one = 1, s32_fifty = 50, s32_min = INT_MIN/2, s32_max = INT_MAX/2, s32_hi_a = INT_MAX/2 - 100, s32_hi_b = INT_MAX/2; + const ImU32 u32_zero = 0, u32_one = 1, u32_fifty = 50, u32_min = 0, u32_max = UINT_MAX/2, u32_hi_a = UINT_MAX/2 - 100, u32_hi_b = UINT_MAX/2; + const ImS64 s64_zero = 0, s64_one = 1, s64_fifty = 50, s64_min = LLONG_MIN/2, s64_max = LLONG_MAX/2, s64_hi_a = LLONG_MAX/2 - 100, s64_hi_b = LLONG_MAX/2; + const ImU64 u64_zero = 0, u64_one = 1, u64_fifty = 50, u64_min = 0, u64_max = ULLONG_MAX/2, u64_hi_a = ULLONG_MAX/2 - 100, u64_hi_b = ULLONG_MAX/2; + const float f32_zero = 0.f, f32_one = 1.f, f32_lo_a = -10000000000.0f, f32_hi_a = +10000000000.0f; + const double f64_zero = 0., f64_one = 1., f64_lo_a = -1000000000000000.0, f64_hi_a = +1000000000000000.0; + + // State + static char s8_v = 127; + static ImU8 u8_v = 255; + static short s16_v = 32767; + static ImU16 u16_v = 65535; + static ImS32 s32_v = -1; + static ImU32 u32_v = (ImU32)-1; + static ImS64 s64_v = -1; + static ImU64 u64_v = (ImU64)-1; + static float f32_v = 0.123f; + static double f64_v = 90000.01234567890123456789; + + const float drag_speed = 0.2f; + static bool drag_clamp = false; + IMGUI_DEMO_MARKER("Widgets/Data Types/Drags"); + ImGui::SeparatorText("Drags"); + ImGui::Checkbox("Clamp integers to 0..50", &drag_clamp); + ImGui::SameLine(); HelpMarker( + "As with every widget in dear imgui, we never modify values unless there is a user interaction.\n" + "You can override the clamping limits by using CTRL+Click to input a value."); + ImGui::DragScalar("drag s8", ImGuiDataType_S8, &s8_v, drag_speed, drag_clamp ? &s8_zero : NULL, drag_clamp ? &s8_fifty : NULL); + ImGui::DragScalar("drag u8", ImGuiDataType_U8, &u8_v, drag_speed, drag_clamp ? &u8_zero : NULL, drag_clamp ? &u8_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s16", ImGuiDataType_S16, &s16_v, drag_speed, drag_clamp ? &s16_zero : NULL, drag_clamp ? &s16_fifty : NULL); + ImGui::DragScalar("drag u16", ImGuiDataType_U16, &u16_v, drag_speed, drag_clamp ? &u16_zero : NULL, drag_clamp ? &u16_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s32", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL); + ImGui::DragScalar("drag s32 hex", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL, "0x%08X"); + ImGui::DragScalar("drag u32", ImGuiDataType_U32, &u32_v, drag_speed, drag_clamp ? &u32_zero : NULL, drag_clamp ? &u32_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s64", ImGuiDataType_S64, &s64_v, drag_speed, drag_clamp ? &s64_zero : NULL, drag_clamp ? &s64_fifty : NULL); + ImGui::DragScalar("drag u64", ImGuiDataType_U64, &u64_v, drag_speed, drag_clamp ? &u64_zero : NULL, drag_clamp ? &u64_fifty : NULL); + ImGui::DragScalar("drag float", ImGuiDataType_Float, &f32_v, 0.005f, &f32_zero, &f32_one, "%f"); + ImGui::DragScalar("drag float log", ImGuiDataType_Float, &f32_v, 0.005f, &f32_zero, &f32_one, "%f", ImGuiSliderFlags_Logarithmic); + ImGui::DragScalar("drag double", ImGuiDataType_Double, &f64_v, 0.0005f, &f64_zero, NULL, "%.10f grams"); + ImGui::DragScalar("drag double log",ImGuiDataType_Double, &f64_v, 0.0005f, &f64_zero, &f64_one, "0 < %.10f < 1", ImGuiSliderFlags_Logarithmic); + + IMGUI_DEMO_MARKER("Widgets/Data Types/Sliders"); + ImGui::SeparatorText("Sliders"); + ImGui::SliderScalar("slider s8 full", ImGuiDataType_S8, &s8_v, &s8_min, &s8_max, "%d"); + ImGui::SliderScalar("slider u8 full", ImGuiDataType_U8, &u8_v, &u8_min, &u8_max, "%u"); + ImGui::SliderScalar("slider s16 full", ImGuiDataType_S16, &s16_v, &s16_min, &s16_max, "%d"); + ImGui::SliderScalar("slider u16 full", ImGuiDataType_U16, &u16_v, &u16_min, &u16_max, "%u"); + ImGui::SliderScalar("slider s32 low", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty,"%d"); + ImGui::SliderScalar("slider s32 high", ImGuiDataType_S32, &s32_v, &s32_hi_a, &s32_hi_b, "%d"); + ImGui::SliderScalar("slider s32 full", ImGuiDataType_S32, &s32_v, &s32_min, &s32_max, "%d"); + ImGui::SliderScalar("slider s32 hex", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty, "0x%04X"); + ImGui::SliderScalar("slider u32 low", ImGuiDataType_U32, &u32_v, &u32_zero, &u32_fifty,"%u"); + ImGui::SliderScalar("slider u32 high", ImGuiDataType_U32, &u32_v, &u32_hi_a, &u32_hi_b, "%u"); + ImGui::SliderScalar("slider u32 full", ImGuiDataType_U32, &u32_v, &u32_min, &u32_max, "%u"); + ImGui::SliderScalar("slider s64 low", ImGuiDataType_S64, &s64_v, &s64_zero, &s64_fifty,"%" PRId64); + ImGui::SliderScalar("slider s64 high", ImGuiDataType_S64, &s64_v, &s64_hi_a, &s64_hi_b, "%" PRId64); + ImGui::SliderScalar("slider s64 full", ImGuiDataType_S64, &s64_v, &s64_min, &s64_max, "%" PRId64); + ImGui::SliderScalar("slider u64 low", ImGuiDataType_U64, &u64_v, &u64_zero, &u64_fifty,"%" PRIu64 " ms"); + ImGui::SliderScalar("slider u64 high", ImGuiDataType_U64, &u64_v, &u64_hi_a, &u64_hi_b, "%" PRIu64 " ms"); + ImGui::SliderScalar("slider u64 full", ImGuiDataType_U64, &u64_v, &u64_min, &u64_max, "%" PRIu64 " ms"); + ImGui::SliderScalar("slider float low", ImGuiDataType_Float, &f32_v, &f32_zero, &f32_one); + ImGui::SliderScalar("slider float low log", ImGuiDataType_Float, &f32_v, &f32_zero, &f32_one, "%.10f", ImGuiSliderFlags_Logarithmic); + ImGui::SliderScalar("slider float high", ImGuiDataType_Float, &f32_v, &f32_lo_a, &f32_hi_a, "%e"); + ImGui::SliderScalar("slider double low", ImGuiDataType_Double, &f64_v, &f64_zero, &f64_one, "%.10f grams"); + ImGui::SliderScalar("slider double low log",ImGuiDataType_Double, &f64_v, &f64_zero, &f64_one, "%.10f", ImGuiSliderFlags_Logarithmic); + ImGui::SliderScalar("slider double high", ImGuiDataType_Double, &f64_v, &f64_lo_a, &f64_hi_a, "%e grams"); + + ImGui::SeparatorText("Sliders (reverse)"); + ImGui::SliderScalar("slider s8 reverse", ImGuiDataType_S8, &s8_v, &s8_max, &s8_min, "%d"); + ImGui::SliderScalar("slider u8 reverse", ImGuiDataType_U8, &u8_v, &u8_max, &u8_min, "%u"); + ImGui::SliderScalar("slider s32 reverse", ImGuiDataType_S32, &s32_v, &s32_fifty, &s32_zero, "%d"); + ImGui::SliderScalar("slider u32 reverse", ImGuiDataType_U32, &u32_v, &u32_fifty, &u32_zero, "%u"); + ImGui::SliderScalar("slider s64 reverse", ImGuiDataType_S64, &s64_v, &s64_fifty, &s64_zero, "%" PRId64); + ImGui::SliderScalar("slider u64 reverse", ImGuiDataType_U64, &u64_v, &u64_fifty, &u64_zero, "%" PRIu64 " ms"); + + IMGUI_DEMO_MARKER("Widgets/Data Types/Inputs"); + static bool inputs_step = true; + ImGui::SeparatorText("Inputs"); + ImGui::Checkbox("Show step buttons", &inputs_step); + ImGui::InputScalar("input s8", ImGuiDataType_S8, &s8_v, inputs_step ? &s8_one : NULL, NULL, "%d"); + ImGui::InputScalar("input u8", ImGuiDataType_U8, &u8_v, inputs_step ? &u8_one : NULL, NULL, "%u"); + ImGui::InputScalar("input s16", ImGuiDataType_S16, &s16_v, inputs_step ? &s16_one : NULL, NULL, "%d"); + ImGui::InputScalar("input u16", ImGuiDataType_U16, &u16_v, inputs_step ? &u16_one : NULL, NULL, "%u"); + ImGui::InputScalar("input s32", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%d"); + ImGui::InputScalar("input s32 hex", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%04X"); + ImGui::InputScalar("input u32", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%u"); + ImGui::InputScalar("input u32 hex", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%08X"); + ImGui::InputScalar("input s64", ImGuiDataType_S64, &s64_v, inputs_step ? &s64_one : NULL); + ImGui::InputScalar("input u64", ImGuiDataType_U64, &u64_v, inputs_step ? &u64_one : NULL); + ImGui::InputScalar("input float", ImGuiDataType_Float, &f32_v, inputs_step ? &f32_one : NULL); + ImGui::InputScalar("input double", ImGuiDataType_Double, &f64_v, inputs_step ? &f64_one : NULL); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Multi-component Widgets"); + if (ImGui::TreeNode("Multi-component Widgets")) + { + static float vec4f[4] = { 0.10f, 0.20f, 0.30f, 0.44f }; + static int vec4i[4] = { 1, 5, 100, 255 }; + + ImGui::SeparatorText("2-wide"); + ImGui::InputFloat2("input float2", vec4f); + ImGui::DragFloat2("drag float2", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat2("slider float2", vec4f, 0.0f, 1.0f); + ImGui::InputInt2("input int2", vec4i); + ImGui::DragInt2("drag int2", vec4i, 1, 0, 255); + ImGui::SliderInt2("slider int2", vec4i, 0, 255); + + ImGui::SeparatorText("3-wide"); + ImGui::InputFloat3("input float3", vec4f); + ImGui::DragFloat3("drag float3", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat3("slider float3", vec4f, 0.0f, 1.0f); + ImGui::InputInt3("input int3", vec4i); + ImGui::DragInt3("drag int3", vec4i, 1, 0, 255); + ImGui::SliderInt3("slider int3", vec4i, 0, 255); + + ImGui::SeparatorText("4-wide"); + ImGui::InputFloat4("input float4", vec4f); + ImGui::DragFloat4("drag float4", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat4("slider float4", vec4f, 0.0f, 1.0f); + ImGui::InputInt4("input int4", vec4i); + ImGui::DragInt4("drag int4", vec4i, 1, 0, 255); + ImGui::SliderInt4("slider int4", vec4i, 0, 255); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Vertical Sliders"); + if (ImGui::TreeNode("Vertical Sliders")) + { + const float spacing = 4; + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(spacing, spacing)); + + static int int_value = 0; + ImGui::VSliderInt("##int", ImVec2(18, 160), &int_value, 0, 5); + ImGui::SameLine(); + + static float values[7] = { 0.0f, 0.60f, 0.35f, 0.9f, 0.70f, 0.20f, 0.0f }; + ImGui::PushID("set1"); + for (int i = 0; i < 7; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleColor(ImGuiCol_FrameBg, (ImVec4)ImColor::HSV(i / 7.0f, 0.5f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_FrameBgHovered, (ImVec4)ImColor::HSV(i / 7.0f, 0.6f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_FrameBgActive, (ImVec4)ImColor::HSV(i / 7.0f, 0.7f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_SliderGrab, (ImVec4)ImColor::HSV(i / 7.0f, 0.9f, 0.9f)); + ImGui::VSliderFloat("##v", ImVec2(18, 160), &values[i], 0.0f, 1.0f, ""); + if (ImGui::IsItemActive() || ImGui::IsItemHovered()) + ImGui::SetTooltip("%.3f", values[i]); + ImGui::PopStyleColor(4); + ImGui::PopID(); + } + ImGui::PopID(); + + ImGui::SameLine(); + ImGui::PushID("set2"); + static float values2[4] = { 0.20f, 0.80f, 0.40f, 0.25f }; + const int rows = 3; + const ImVec2 small_slider_size(18, (float)(int)((160.0f - (rows - 1) * spacing) / rows)); + for (int nx = 0; nx < 4; nx++) + { + if (nx > 0) ImGui::SameLine(); + ImGui::BeginGroup(); + for (int ny = 0; ny < rows; ny++) + { + ImGui::PushID(nx * rows + ny); + ImGui::VSliderFloat("##v", small_slider_size, &values2[nx], 0.0f, 1.0f, ""); + if (ImGui::IsItemActive() || ImGui::IsItemHovered()) + ImGui::SetTooltip("%.3f", values2[nx]); + ImGui::PopID(); + } + ImGui::EndGroup(); + } + ImGui::PopID(); + + ImGui::SameLine(); + ImGui::PushID("set3"); + for (int i = 0; i < 4; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleVar(ImGuiStyleVar_GrabMinSize, 40); + ImGui::VSliderFloat("##v", ImVec2(40, 160), &values[i], 0.0f, 1.0f, "%.2f\nsec"); + ImGui::PopStyleVar(); + ImGui::PopID(); + } + ImGui::PopID(); + ImGui::PopStyleVar(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and drop"); + if (ImGui::TreeNode("Drag and Drop")) + { + IMGUI_DEMO_MARKER("Widgets/Drag and drop/Standard widgets"); + if (ImGui::TreeNode("Drag and drop in standard widgets")) + { + // ColorEdit widgets automatically act as drag source and drag target. + // They are using standardized payload strings IMGUI_PAYLOAD_TYPE_COLOR_3F and IMGUI_PAYLOAD_TYPE_COLOR_4F + // to allow your own widgets to use colors in their drag and drop interaction. + // Also see 'Demo->Widgets->Color/Picker Widgets->Palette' demo. + HelpMarker("You can drag from the color squares."); + static float col1[3] = { 1.0f, 0.0f, 0.2f }; + static float col2[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::ColorEdit3("color 1", col1); + ImGui::ColorEdit4("color 2", col2); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and drop/Copy-swap items"); + if (ImGui::TreeNode("Drag and drop to copy/swap items")) + { + enum Mode + { + Mode_Copy, + Mode_Move, + Mode_Swap + }; + static int mode = 0; + if (ImGui::RadioButton("Copy", mode == Mode_Copy)) { mode = Mode_Copy; } ImGui::SameLine(); + if (ImGui::RadioButton("Move", mode == Mode_Move)) { mode = Mode_Move; } ImGui::SameLine(); + if (ImGui::RadioButton("Swap", mode == Mode_Swap)) { mode = Mode_Swap; } + static const char* names[9] = + { + "Bobby", "Beatrice", "Betty", + "Brianna", "Barry", "Bernard", + "Bibi", "Blaine", "Bryn" + }; + for (int n = 0; n < IM_ARRAYSIZE(names); n++) + { + ImGui::PushID(n); + if ((n % 3) != 0) + ImGui::SameLine(); + ImGui::Button(names[n], ImVec2(60, 60)); + + // Our buttons are both drag sources and drag targets here! + if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_None)) + { + // Set payload to carry the index of our item (could be anything) + ImGui::SetDragDropPayload("DND_DEMO_CELL", &n, sizeof(int)); + + // Display preview (could be anything, e.g. when dragging an image we could decide to display + // the filename and a small preview of the image, etc.) + if (mode == Mode_Copy) { ImGui::Text("Copy %s", names[n]); } + if (mode == Mode_Move) { ImGui::Text("Move %s", names[n]); } + if (mode == Mode_Swap) { ImGui::Text("Swap %s", names[n]); } + ImGui::EndDragDropSource(); + } + if (ImGui::BeginDragDropTarget()) + { + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload("DND_DEMO_CELL")) + { + IM_ASSERT(payload->DataSize == sizeof(int)); + int payload_n = *(const int*)payload->Data; + if (mode == Mode_Copy) + { + names[n] = names[payload_n]; + } + if (mode == Mode_Move) + { + names[n] = names[payload_n]; + names[payload_n] = ""; + } + if (mode == Mode_Swap) + { + const char* tmp = names[n]; + names[n] = names[payload_n]; + names[payload_n] = tmp; + } + } + ImGui::EndDragDropTarget(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and Drop/Drag to reorder items (simple)"); + if (ImGui::TreeNode("Drag to reorder items (simple)")) + { + // Simple reordering + HelpMarker( + "We don't use the drag and drop api at all here! " + "Instead we query when the item is held but not hovered, and order items accordingly."); + static const char* item_names[] = { "Item One", "Item Two", "Item Three", "Item Four", "Item Five" }; + for (int n = 0; n < IM_ARRAYSIZE(item_names); n++) + { + const char* item = item_names[n]; + ImGui::Selectable(item); + + if (ImGui::IsItemActive() && !ImGui::IsItemHovered()) + { + int n_next = n + (ImGui::GetMouseDragDelta(0).y < 0.f ? -1 : 1); + if (n_next >= 0 && n_next < IM_ARRAYSIZE(item_names)) + { + item_names[n] = item_names[n_next]; + item_names[n_next] = item; + ImGui::ResetMouseDragDelta(); + } + } + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Drag and Drop/Tooltip at target location"); + if (ImGui::TreeNode("Tooltip at target location")) + { + for (int n = 0; n < 2; n++) + { + // Drop targets + ImGui::Button(n ? "drop here##1" : "drop here##0"); + if (ImGui::BeginDragDropTarget()) + { + ImGuiDragDropFlags drop_target_flags = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoPreviewTooltip; + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F, drop_target_flags)) + { + IM_UNUSED(payload); + ImGui::SetMouseCursor(ImGuiMouseCursor_NotAllowed); + ImGui::BeginTooltip(); + ImGui::Text("Cannot drop here!"); + ImGui::EndTooltip(); + } + ImGui::EndDragDropTarget(); + } + + // Drop source + static ImVec4 col4 = { 1.0f, 0.0f, 0.2f, 1.0f }; + if (n == 0) + ImGui::ColorButton("drag me", col4); + + } + ImGui::TreePop(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Querying Item Status (Edited,Active,Hovered etc.)"); + if (ImGui::TreeNode("Querying Item Status (Edited/Active/Hovered etc.)")) + { + // Select an item type + const char* item_names[] = + { + "Text", "Button", "Button (w/ repeat)", "Checkbox", "SliderFloat", "InputText", "InputTextMultiline", "InputFloat", + "InputFloat3", "ColorEdit4", "Selectable", "MenuItem", "TreeNode", "TreeNode (w/ double-click)", "Combo", "ListBox" + }; + static int item_type = 4; + static bool item_disabled = false; + ImGui::Combo("Item Type", &item_type, item_names, IM_ARRAYSIZE(item_names), IM_ARRAYSIZE(item_names)); + ImGui::SameLine(); + HelpMarker("Testing how various types of items are interacting with the IsItemXXX functions. Note that the bool return value of most ImGui function is generally equivalent to calling ImGui::IsItemHovered()."); + ImGui::Checkbox("Item Disabled", &item_disabled); + + // Submit selected items so we can query their status in the code following it. + bool ret = false; + static bool b = false; + static float col4f[4] = { 1.0f, 0.5, 0.0f, 1.0f }; + static char str[16] = {}; + if (item_disabled) + ImGui::BeginDisabled(true); + if (item_type == 0) { ImGui::Text("ITEM: Text"); } // Testing text items with no identifier/interaction + if (item_type == 1) { ret = ImGui::Button("ITEM: Button"); } // Testing button + if (item_type == 2) { ImGui::PushButtonRepeat(true); ret = ImGui::Button("ITEM: Button"); ImGui::PopButtonRepeat(); } // Testing button (with repeater) + if (item_type == 3) { ret = ImGui::Checkbox("ITEM: Checkbox", &b); } // Testing checkbox + if (item_type == 4) { ret = ImGui::SliderFloat("ITEM: SliderFloat", &col4f[0], 0.0f, 1.0f); } // Testing basic item + if (item_type == 5) { ret = ImGui::InputText("ITEM: InputText", &str[0], IM_ARRAYSIZE(str)); } // Testing input text (which handles tabbing) + if (item_type == 6) { ret = ImGui::InputTextMultiline("ITEM: InputTextMultiline", &str[0], IM_ARRAYSIZE(str)); } // Testing input text (which uses a child window) + if (item_type == 7) { ret = ImGui::InputFloat("ITEM: InputFloat", col4f, 1.0f); } // Testing +/- buttons on scalar input + if (item_type == 8) { ret = ImGui::InputFloat3("ITEM: InputFloat3", col4f); } // Testing multi-component items (IsItemXXX flags are reported merged) + if (item_type == 9) { ret = ImGui::ColorEdit4("ITEM: ColorEdit4", col4f); } // Testing multi-component items (IsItemXXX flags are reported merged) + if (item_type == 10){ ret = ImGui::Selectable("ITEM: Selectable"); } // Testing selectable item + if (item_type == 11){ ret = ImGui::MenuItem("ITEM: MenuItem"); } // Testing menu item (they use ImGuiButtonFlags_PressedOnRelease button policy) + if (item_type == 12){ ret = ImGui::TreeNode("ITEM: TreeNode"); if (ret) ImGui::TreePop(); } // Testing tree node + if (item_type == 13){ ret = ImGui::TreeNodeEx("ITEM: TreeNode w/ ImGuiTreeNodeFlags_OpenOnDoubleClick", ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_NoTreePushOnOpen); } // Testing tree node with ImGuiButtonFlags_PressedOnDoubleClick button policy. + if (item_type == 14){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::Combo("ITEM: Combo", ¤t, items, IM_ARRAYSIZE(items)); } + if (item_type == 15){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::ListBox("ITEM: ListBox", ¤t, items, IM_ARRAYSIZE(items), IM_ARRAYSIZE(items)); } + + bool hovered_delay_none = ImGui::IsItemHovered(); + bool hovered_delay_stationary = ImGui::IsItemHovered(ImGuiHoveredFlags_Stationary); + bool hovered_delay_short = ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort); + bool hovered_delay_normal = ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal); + bool hovered_delay_tooltip = ImGui::IsItemHovered(ImGuiHoveredFlags_ForTooltip); // = Normal + Stationary + + // Display the values of IsItemHovered() and other common item state functions. + // Note that the ImGuiHoveredFlags_XXX flags can be combined. + // Because BulletText is an item itself and that would affect the output of IsItemXXX functions, + // we query every state in a single call to avoid storing them and to simplify the code. + ImGui::BulletText( + "Return value = %d\n" + "IsItemFocused() = %d\n" + "IsItemHovered() = %d\n" + "IsItemHovered(_AllowWhenBlockedByPopup) = %d\n" + "IsItemHovered(_AllowWhenBlockedByActiveItem) = %d\n" + "IsItemHovered(_AllowWhenOverlappedByItem) = %d\n" + "IsItemHovered(_AllowWhenOverlappedByWindow) = %d\n" + "IsItemHovered(_AllowWhenDisabled) = %d\n" + "IsItemHovered(_RectOnly) = %d\n" + "IsItemActive() = %d\n" + "IsItemEdited() = %d\n" + "IsItemActivated() = %d\n" + "IsItemDeactivated() = %d\n" + "IsItemDeactivatedAfterEdit() = %d\n" + "IsItemVisible() = %d\n" + "IsItemClicked() = %d\n" + "IsItemToggledOpen() = %d\n" + "GetItemRectMin() = (%.1f, %.1f)\n" + "GetItemRectMax() = (%.1f, %.1f)\n" + "GetItemRectSize() = (%.1f, %.1f)", + ret, + ImGui::IsItemFocused(), + ImGui::IsItemHovered(), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenOverlappedByItem), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenOverlappedByWindow), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled), + ImGui::IsItemHovered(ImGuiHoveredFlags_RectOnly), + ImGui::IsItemActive(), + ImGui::IsItemEdited(), + ImGui::IsItemActivated(), + ImGui::IsItemDeactivated(), + ImGui::IsItemDeactivatedAfterEdit(), + ImGui::IsItemVisible(), + ImGui::IsItemClicked(), + ImGui::IsItemToggledOpen(), + ImGui::GetItemRectMin().x, ImGui::GetItemRectMin().y, + ImGui::GetItemRectMax().x, ImGui::GetItemRectMax().y, + ImGui::GetItemRectSize().x, ImGui::GetItemRectSize().y + ); + ImGui::BulletText( + "with Hovering Delay or Stationary test:\n" + "IsItemHovered() = = %d\n" + "IsItemHovered(_Stationary) = %d\n" + "IsItemHovered(_DelayShort) = %d\n" + "IsItemHovered(_DelayNormal) = %d\n" + "IsItemHovered(_Tooltip) = %d", + hovered_delay_none, hovered_delay_stationary, hovered_delay_short, hovered_delay_normal, hovered_delay_tooltip); + + if (item_disabled) + ImGui::EndDisabled(); + + char buf[1] = ""; + ImGui::InputText("unused", buf, IM_ARRAYSIZE(buf), ImGuiInputTextFlags_ReadOnly); + ImGui::SameLine(); + HelpMarker("This widget is only here to be able to tab-out of the widgets above and see e.g. Deactivated() status."); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Querying Window Status (Focused,Hovered etc.)"); + if (ImGui::TreeNode("Querying Window Status (Focused/Hovered etc.)")) + { + static bool embed_all_inside_a_child_window = false; + ImGui::Checkbox("Embed everything inside a child window for testing _RootWindow flag.", &embed_all_inside_a_child_window); + if (embed_all_inside_a_child_window) + ImGui::BeginChild("outer_child", ImVec2(0, ImGui::GetFontSize() * 20.0f), true); + + // Testing IsWindowFocused() function with its various flags. + ImGui::BulletText( + "IsWindowFocused() = %d\n" + "IsWindowFocused(_ChildWindows) = %d\n" + "IsWindowFocused(_ChildWindows|_NoPopupHierarchy) = %d\n" + "IsWindowFocused(_ChildWindows|_DockHierarchy) = %d\n" + "IsWindowFocused(_ChildWindows|_RootWindow) = %d\n" + "IsWindowFocused(_ChildWindows|_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowFocused(_ChildWindows|_RootWindow|_DockHierarchy) = %d\n" + "IsWindowFocused(_RootWindow) = %d\n" + "IsWindowFocused(_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowFocused(_RootWindow|_DockHierarchy) = %d\n" + "IsWindowFocused(_AnyWindow) = %d\n", + ImGui::IsWindowFocused(), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_NoPopupHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_DockHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_RootWindow), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_NoPopupHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_DockHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow), + ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_NoPopupHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_DockHierarchy), + ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow)); + + // Testing IsWindowHovered() function with its various flags. + ImGui::BulletText( + "IsWindowHovered() = %d\n" + "IsWindowHovered(_AllowWhenBlockedByPopup) = %d\n" + "IsWindowHovered(_AllowWhenBlockedByActiveItem) = %d\n" + "IsWindowHovered(_ChildWindows) = %d\n" + "IsWindowHovered(_ChildWindows|_NoPopupHierarchy) = %d\n" + "IsWindowHovered(_ChildWindows|_DockHierarchy) = %d\n" + "IsWindowHovered(_ChildWindows|_RootWindow) = %d\n" + "IsWindowHovered(_ChildWindows|_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowHovered(_ChildWindows|_RootWindow|_DockHierarchy) = %d\n" + "IsWindowHovered(_RootWindow) = %d\n" + "IsWindowHovered(_RootWindow|_NoPopupHierarchy) = %d\n" + "IsWindowHovered(_RootWindow|_DockHierarchy) = %d\n" + "IsWindowHovered(_ChildWindows|_AllowWhenBlockedByPopup) = %d\n" + "IsWindowHovered(_AnyWindow) = %d\n" + "IsWindowHovered(_Stationary) = %d\n", + ImGui::IsWindowHovered(), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_NoPopupHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_DockHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_NoPopupHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_DockHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_RootWindow), + ImGui::IsWindowHovered(ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_NoPopupHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_DockHierarchy), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow), + ImGui::IsWindowHovered(ImGuiHoveredFlags_Stationary)); + + ImGui::BeginChild("child", ImVec2(0, 50), true); + ImGui::Text("This is another child window for testing the _ChildWindows flag."); + ImGui::EndChild(); + if (embed_all_inside_a_child_window) + ImGui::EndChild(); + + // Calling IsItemHovered() after begin returns the hovered status of the title bar. + // This is useful in particular if you want to create a context menu associated to the title bar of a window. + // This will also work when docked into a Tab (the Tab replace the Title Bar and guarantee the same properties). + static bool test_window = false; + ImGui::Checkbox("Hovered/Active tests after Begin() for title bar testing", &test_window); + if (test_window) + { + // FIXME-DOCK: This window cannot be docked within the ImGui Demo window, this will cause a feedback loop and get them stuck. + // Could we fix this through an ImGuiWindowClass feature? Or an API call to tag our parent as "don't skip items"? + ImGui::Begin("Title bar Hovered/Active tests", &test_window); + if (ImGui::BeginPopupContextItem()) // <-- This is using IsItemHovered() + { + if (ImGui::MenuItem("Close")) { test_window = false; } + ImGui::EndPopup(); + } + ImGui::Text( + "IsItemHovered() after begin = %d (== is title bar hovered)\n" + "IsItemActive() after begin = %d (== is window being clicked/moved)\n", + ImGui::IsItemHovered(), ImGui::IsItemActive()); + ImGui::End(); + } + + ImGui::TreePop(); + } + + // Demonstrate BeginDisabled/EndDisabled using a checkbox located at the bottom of the section (which is a bit odd: + // logically we'd have this checkbox at the top of the section, but we don't want this feature to steal that space) + if (disable_all) + ImGui::EndDisabled(); + + IMGUI_DEMO_MARKER("Widgets/Disable Block"); + if (ImGui::TreeNode("Disable block")) + { + ImGui::Checkbox("Disable entire section above", &disable_all); + ImGui::SameLine(); HelpMarker("Demonstrate using BeginDisabled()/EndDisabled() across this section."); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Widgets/Text Filter"); + if (ImGui::TreeNode("Text Filter")) + { + // Helper class to easy setup a text filter. + // You may want to implement a more feature-full filtering scheme in your own application. + HelpMarker("Not a widget per-se, but ImGuiTextFilter is a helper to perform simple filtering on text strings."); + static ImGuiTextFilter filter; + ImGui::Text("Filter usage:\n" + " \"\" display all lines\n" + " \"xxx\" display lines containing \"xxx\"\n" + " \"xxx,yyy\" display lines containing \"xxx\" or \"yyy\"\n" + " \"-xxx\" hide lines containing \"xxx\""); + filter.Draw(); + const char* lines[] = { "aaa1.c", "bbb1.c", "ccc1.c", "aaa2.cpp", "bbb2.cpp", "ccc2.cpp", "abc.h", "hello, world" }; + for (int i = 0; i < IM_ARRAYSIZE(lines); i++) + if (filter.PassFilter(lines[i])) + ImGui::BulletText("%s", lines[i]); + ImGui::TreePop(); + } +} + +static void ShowDemoWindowLayout() +{ + IMGUI_DEMO_MARKER("Layout"); + if (!ImGui::CollapsingHeader("Layout & Scrolling")) + return; + + IMGUI_DEMO_MARKER("Layout/Child windows"); + if (ImGui::TreeNode("Child windows")) + { + ImGui::SeparatorText("Child windows"); + + HelpMarker("Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window."); + static bool disable_mouse_wheel = false; + static bool disable_menu = false; + ImGui::Checkbox("Disable Mouse Wheel", &disable_mouse_wheel); + ImGui::Checkbox("Disable Menu", &disable_menu); + + // Child 1: no border, enable horizontal scrollbar + { + ImGuiWindowFlags window_flags = ImGuiWindowFlags_HorizontalScrollbar; + if (disable_mouse_wheel) + window_flags |= ImGuiWindowFlags_NoScrollWithMouse; + ImGui::BeginChild("ChildL", ImVec2(ImGui::GetContentRegionAvail().x * 0.5f, 260), false, window_flags); + for (int i = 0; i < 100; i++) + ImGui::Text("%04d: scrollable region", i); + ImGui::EndChild(); + } + + ImGui::SameLine(); + + // Child 2: rounded border + { + ImGuiWindowFlags window_flags = ImGuiWindowFlags_None; + if (disable_mouse_wheel) + window_flags |= ImGuiWindowFlags_NoScrollWithMouse; + if (!disable_menu) + window_flags |= ImGuiWindowFlags_MenuBar; + ImGui::PushStyleVar(ImGuiStyleVar_ChildRounding, 5.0f); + ImGui::BeginChild("ChildR", ImVec2(0, 260), true, window_flags); + if (!disable_menu && ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("Menu")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + if (ImGui::BeginTable("split", 2, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings)) + { + for (int i = 0; i < 100; i++) + { + char buf[32]; + sprintf(buf, "%03d", i); + ImGui::TableNextColumn(); + ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); + } + ImGui::EndTable(); + } + ImGui::EndChild(); + ImGui::PopStyleVar(); + } + + ImGui::SeparatorText("Misc/Advanced"); + + // Demonstrate a few extra things + // - Changing ImGuiCol_ChildBg (which is transparent black in default styles) + // - Using SetCursorPos() to position child window (the child window is an item from the POV of parent window) + // You can also call SetNextWindowPos() to position the child window. The parent window will effectively + // layout from this position. + // - Using ImGui::GetItemRectMin/Max() to query the "item" state (because the child window is an item from + // the POV of the parent window). See 'Demo->Querying Status (Edited/Active/Hovered etc.)' for details. + { + static int offset_x = 0; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::DragInt("Offset X", &offset_x, 1.0f, -1000, 1000); + + ImGui::SetCursorPosX(ImGui::GetCursorPosX() + (float)offset_x); + ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(255, 0, 0, 100)); + ImGui::BeginChild("Red", ImVec2(200, 100), true, ImGuiWindowFlags_None); + for (int n = 0; n < 50; n++) + ImGui::Text("Some test %d", n); + ImGui::EndChild(); + bool child_is_hovered = ImGui::IsItemHovered(); + ImVec2 child_rect_min = ImGui::GetItemRectMin(); + ImVec2 child_rect_max = ImGui::GetItemRectMax(); + ImGui::PopStyleColor(); + ImGui::Text("Hovered: %d", child_is_hovered); + ImGui::Text("Rect of child window is: (%.0f,%.0f) (%.0f,%.0f)", child_rect_min.x, child_rect_min.y, child_rect_max.x, child_rect_max.y); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Widgets Width"); + if (ImGui::TreeNode("Widgets Width")) + { + static float f = 0.0f; + static bool show_indented_items = true; + ImGui::Checkbox("Show indented items", &show_indented_items); + + // Use SetNextItemWidth() to set the width of a single upcoming item. + // Use PushItemWidth()/PopItemWidth() to set the width of a group of items. + // In real code use you'll probably want to choose width values that are proportional to your font size + // e.g. Using '20.0f * GetFontSize()' as width instead of '200.0f', etc. + + ImGui::Text("SetNextItemWidth/PushItemWidth(100)"); + ImGui::SameLine(); HelpMarker("Fixed width."); + ImGui::PushItemWidth(100); + ImGui::DragFloat("float##1b", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##1b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::Text("SetNextItemWidth/PushItemWidth(-100)"); + ImGui::SameLine(); HelpMarker("Align to right edge minus 100"); + ImGui::PushItemWidth(-100); + ImGui::DragFloat("float##2a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##2b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::Text("SetNextItemWidth/PushItemWidth(GetContentRegionAvail().x * 0.5f)"); + ImGui::SameLine(); HelpMarker("Half of available width.\n(~ right-cursor_pos)\n(works within a column set)"); + ImGui::PushItemWidth(ImGui::GetContentRegionAvail().x * 0.5f); + ImGui::DragFloat("float##3a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##3b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::Text("SetNextItemWidth/PushItemWidth(-GetContentRegionAvail().x * 0.5f)"); + ImGui::SameLine(); HelpMarker("Align to right edge minus half"); + ImGui::PushItemWidth(-ImGui::GetContentRegionAvail().x * 0.5f); + ImGui::DragFloat("float##4a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##4b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + // Demonstrate using PushItemWidth to surround three items. + // Calling SetNextItemWidth() before each of them would have the same effect. + ImGui::Text("SetNextItemWidth/PushItemWidth(-FLT_MIN)"); + ImGui::SameLine(); HelpMarker("Align to right edge"); + ImGui::PushItemWidth(-FLT_MIN); + ImGui::DragFloat("##float5a", &f); + if (show_indented_items) + { + ImGui::Indent(); + ImGui::DragFloat("float (indented)##5b", &f); + ImGui::Unindent(); + } + ImGui::PopItemWidth(); + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout"); + if (ImGui::TreeNode("Basic Horizontal Layout")) + { + ImGui::TextWrapped("(Use ImGui::SameLine() to keep adding items to the right of the preceding item)"); + + // Text + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/SameLine"); + ImGui::Text("Two items: Hello"); ImGui::SameLine(); + ImGui::TextColored(ImVec4(1, 1, 0, 1), "Sailor"); + + // Adjust spacing + ImGui::Text("More spacing: Hello"); ImGui::SameLine(0, 20); + ImGui::TextColored(ImVec4(1, 1, 0, 1), "Sailor"); + + // Button + ImGui::AlignTextToFramePadding(); + ImGui::Text("Normal buttons"); ImGui::SameLine(); + ImGui::Button("Banana"); ImGui::SameLine(); + ImGui::Button("Apple"); ImGui::SameLine(); + ImGui::Button("Corniflower"); + + // Button + ImGui::Text("Small buttons"); ImGui::SameLine(); + ImGui::SmallButton("Like this one"); ImGui::SameLine(); + ImGui::Text("can fit within a text block."); + + // Aligned to arbitrary position. Easy/cheap column. + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/SameLine (with offset)"); + ImGui::Text("Aligned"); + ImGui::SameLine(150); ImGui::Text("x=150"); + ImGui::SameLine(300); ImGui::Text("x=300"); + ImGui::Text("Aligned"); + ImGui::SameLine(150); ImGui::SmallButton("x=150"); + ImGui::SameLine(300); ImGui::SmallButton("x=300"); + + // Checkbox + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/SameLine (more)"); + static bool c1 = false, c2 = false, c3 = false, c4 = false; + ImGui::Checkbox("My", &c1); ImGui::SameLine(); + ImGui::Checkbox("Tailor", &c2); ImGui::SameLine(); + ImGui::Checkbox("Is", &c3); ImGui::SameLine(); + ImGui::Checkbox("Rich", &c4); + + // Various + static float f0 = 1.0f, f1 = 2.0f, f2 = 3.0f; + ImGui::PushItemWidth(80); + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD" }; + static int item = -1; + ImGui::Combo("Combo", &item, items, IM_ARRAYSIZE(items)); ImGui::SameLine(); + ImGui::SliderFloat("X", &f0, 0.0f, 5.0f); ImGui::SameLine(); + ImGui::SliderFloat("Y", &f1, 0.0f, 5.0f); ImGui::SameLine(); + ImGui::SliderFloat("Z", &f2, 0.0f, 5.0f); + ImGui::PopItemWidth(); + + ImGui::PushItemWidth(80); + ImGui::Text("Lists:"); + static int selection[4] = { 0, 1, 2, 3 }; + for (int i = 0; i < 4; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::ListBox("", &selection[i], items, IM_ARRAYSIZE(items)); + ImGui::PopID(); + //ImGui::SetItemTooltip("ListBox %d hovered", i); + } + ImGui::PopItemWidth(); + + // Dummy + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/Dummy"); + ImVec2 button_sz(40, 40); + ImGui::Button("A", button_sz); ImGui::SameLine(); + ImGui::Dummy(button_sz); ImGui::SameLine(); + ImGui::Button("B", button_sz); + + // Manually wrapping + // (we should eventually provide this as an automatic layout feature, but for now you can do it manually) + IMGUI_DEMO_MARKER("Layout/Basic Horizontal Layout/Manual wrapping"); + ImGui::Text("Manual wrapping:"); + ImGuiStyle& style = ImGui::GetStyle(); + int buttons_count = 20; + float window_visible_x2 = ImGui::GetWindowPos().x + ImGui::GetWindowContentRegionMax().x; + for (int n = 0; n < buttons_count; n++) + { + ImGui::PushID(n); + ImGui::Button("Box", button_sz); + float last_button_x2 = ImGui::GetItemRectMax().x; + float next_button_x2 = last_button_x2 + style.ItemSpacing.x + button_sz.x; // Expected position if next button was on same line + if (n + 1 < buttons_count && next_button_x2 < window_visible_x2) + ImGui::SameLine(); + ImGui::PopID(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Groups"); + if (ImGui::TreeNode("Groups")) + { + HelpMarker( + "BeginGroup() basically locks the horizontal position for new line. " + "EndGroup() bundles the whole group so that you can use \"item\" functions such as " + "IsItemHovered()/IsItemActive() or SameLine() etc. on the whole group."); + ImGui::BeginGroup(); + { + ImGui::BeginGroup(); + ImGui::Button("AAA"); + ImGui::SameLine(); + ImGui::Button("BBB"); + ImGui::SameLine(); + ImGui::BeginGroup(); + ImGui::Button("CCC"); + ImGui::Button("DDD"); + ImGui::EndGroup(); + ImGui::SameLine(); + ImGui::Button("EEE"); + ImGui::EndGroup(); + ImGui::SetItemTooltip("First group hovered"); + } + // Capture the group size and create widgets using the same size + ImVec2 size = ImGui::GetItemRectSize(); + const float values[5] = { 0.5f, 0.20f, 0.80f, 0.60f, 0.25f }; + ImGui::PlotHistogram("##values", values, IM_ARRAYSIZE(values), 0, NULL, 0.0f, 1.0f, size); + + ImGui::Button("ACTION", ImVec2((size.x - ImGui::GetStyle().ItemSpacing.x) * 0.5f, size.y)); + ImGui::SameLine(); + ImGui::Button("REACTION", ImVec2((size.x - ImGui::GetStyle().ItemSpacing.x) * 0.5f, size.y)); + ImGui::EndGroup(); + ImGui::SameLine(); + + ImGui::Button("LEVERAGE\nBUZZWORD", size); + ImGui::SameLine(); + + if (ImGui::BeginListBox("List", size)) + { + ImGui::Selectable("Selected", true); + ImGui::Selectable("Not Selected", false); + ImGui::EndListBox(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Text Baseline Alignment"); + if (ImGui::TreeNode("Text Baseline Alignment")) + { + { + ImGui::BulletText("Text baseline:"); + ImGui::SameLine(); HelpMarker( + "This is testing the vertical alignment that gets applied on text to keep it aligned with widgets. " + "Lines only composed of text or \"small\" widgets use less vertical space than lines with framed widgets."); + ImGui::Indent(); + + ImGui::Text("KO Blahblah"); ImGui::SameLine(); + ImGui::Button("Some framed item"); ImGui::SameLine(); + HelpMarker("Baseline of button will look misaligned with text.."); + + // If your line starts with text, call AlignTextToFramePadding() to align text to upcoming widgets. + // (because we don't know what's coming after the Text() statement, we need to move the text baseline + // down by FramePadding.y ahead of time) + ImGui::AlignTextToFramePadding(); + ImGui::Text("OK Blahblah"); ImGui::SameLine(); + ImGui::Button("Some framed item"); ImGui::SameLine(); + HelpMarker("We call AlignTextToFramePadding() to vertically align the text baseline by +FramePadding.y"); + + // SmallButton() uses the same vertical padding as Text + ImGui::Button("TEST##1"); ImGui::SameLine(); + ImGui::Text("TEST"); ImGui::SameLine(); + ImGui::SmallButton("TEST##2"); + + // If your line starts with text, call AlignTextToFramePadding() to align text to upcoming widgets. + ImGui::AlignTextToFramePadding(); + ImGui::Text("Text aligned to framed item"); ImGui::SameLine(); + ImGui::Button("Item##1"); ImGui::SameLine(); + ImGui::Text("Item"); ImGui::SameLine(); + ImGui::SmallButton("Item##2"); ImGui::SameLine(); + ImGui::Button("Item##3"); + + ImGui::Unindent(); + } + + ImGui::Spacing(); + + { + ImGui::BulletText("Multi-line text:"); + ImGui::Indent(); + ImGui::Text("One\nTwo\nThree"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + + ImGui::Text("Banana"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("One\nTwo\nThree"); + + ImGui::Button("HOP##1"); ImGui::SameLine(); + ImGui::Text("Banana"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + + ImGui::Button("HOP##2"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + ImGui::Unindent(); + } + + ImGui::Spacing(); + + { + ImGui::BulletText("Misc items:"); + ImGui::Indent(); + + // SmallButton() sets FramePadding to zero. Text baseline is aligned to match baseline of previous Button. + ImGui::Button("80x80", ImVec2(80, 80)); + ImGui::SameLine(); + ImGui::Button("50x50", ImVec2(50, 50)); + ImGui::SameLine(); + ImGui::Button("Button()"); + ImGui::SameLine(); + ImGui::SmallButton("SmallButton()"); + + // Tree + const float spacing = ImGui::GetStyle().ItemInnerSpacing.x; + ImGui::Button("Button##1"); + ImGui::SameLine(0.0f, spacing); + if (ImGui::TreeNode("Node##1")) + { + // Placeholder tree data + for (int i = 0; i < 6; i++) + ImGui::BulletText("Item %d..", i); + ImGui::TreePop(); + } + + // Vertically align text node a bit lower so it'll be vertically centered with upcoming widget. + // Otherwise you can use SmallButton() (smaller fit). + ImGui::AlignTextToFramePadding(); + + // Common mistake to avoid: if we want to SameLine after TreeNode we need to do it before we add + // other contents below the node. + bool node_open = ImGui::TreeNode("Node##2"); + ImGui::SameLine(0.0f, spacing); ImGui::Button("Button##2"); + if (node_open) + { + // Placeholder tree data + for (int i = 0; i < 6; i++) + ImGui::BulletText("Item %d..", i); + ImGui::TreePop(); + } + + // Bullet + ImGui::Button("Button##3"); + ImGui::SameLine(0.0f, spacing); + ImGui::BulletText("Bullet text"); + + ImGui::AlignTextToFramePadding(); + ImGui::BulletText("Node"); + ImGui::SameLine(0.0f, spacing); ImGui::Button("Button##4"); + ImGui::Unindent(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Scrolling"); + if (ImGui::TreeNode("Scrolling")) + { + // Vertical scroll functions + IMGUI_DEMO_MARKER("Layout/Scrolling/Vertical"); + HelpMarker("Use SetScrollHereY() or SetScrollFromPosY() to scroll to a given vertical position."); + + static int track_item = 50; + static bool enable_track = true; + static bool enable_extra_decorations = false; + static float scroll_to_off_px = 0.0f; + static float scroll_to_pos_px = 200.0f; + + ImGui::Checkbox("Decoration", &enable_extra_decorations); + + ImGui::Checkbox("Track", &enable_track); + ImGui::PushItemWidth(100); + ImGui::SameLine(140); enable_track |= ImGui::DragInt("##item", &track_item, 0.25f, 0, 99, "Item = %d"); + + bool scroll_to_off = ImGui::Button("Scroll Offset"); + ImGui::SameLine(140); scroll_to_off |= ImGui::DragFloat("##off", &scroll_to_off_px, 1.00f, 0, FLT_MAX, "+%.0f px"); + + bool scroll_to_pos = ImGui::Button("Scroll To Pos"); + ImGui::SameLine(140); scroll_to_pos |= ImGui::DragFloat("##pos", &scroll_to_pos_px, 1.00f, -10, FLT_MAX, "X/Y = %.0f px"); + ImGui::PopItemWidth(); + + if (scroll_to_off || scroll_to_pos) + enable_track = false; + + ImGuiStyle& style = ImGui::GetStyle(); + float child_w = (ImGui::GetContentRegionAvail().x - 4 * style.ItemSpacing.x) / 5; + if (child_w < 1.0f) + child_w = 1.0f; + ImGui::PushID("##VerticalScrolling"); + for (int i = 0; i < 5; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::BeginGroup(); + const char* names[] = { "Top", "25%", "Center", "75%", "Bottom" }; + ImGui::TextUnformatted(names[i]); + + const ImGuiWindowFlags child_flags = enable_extra_decorations ? ImGuiWindowFlags_MenuBar : 0; + const ImGuiID child_id = ImGui::GetID((void*)(intptr_t)i); + const bool child_is_visible = ImGui::BeginChild(child_id, ImVec2(child_w, 200.0f), true, child_flags); + if (ImGui::BeginMenuBar()) + { + ImGui::TextUnformatted("abc"); + ImGui::EndMenuBar(); + } + if (scroll_to_off) + ImGui::SetScrollY(scroll_to_off_px); + if (scroll_to_pos) + ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + scroll_to_pos_px, i * 0.25f); + if (child_is_visible) // Avoid calling SetScrollHereY when running with culled items + { + for (int item = 0; item < 100; item++) + { + if (enable_track && item == track_item) + { + ImGui::TextColored(ImVec4(1, 1, 0, 1), "Item %d", item); + ImGui::SetScrollHereY(i * 0.25f); // 0.0f:top, 0.5f:center, 1.0f:bottom + } + else + { + ImGui::Text("Item %d", item); + } + } + } + float scroll_y = ImGui::GetScrollY(); + float scroll_max_y = ImGui::GetScrollMaxY(); + ImGui::EndChild(); + ImGui::Text("%.0f/%.0f", scroll_y, scroll_max_y); + ImGui::EndGroup(); + } + ImGui::PopID(); + + // Horizontal scroll functions + IMGUI_DEMO_MARKER("Layout/Scrolling/Horizontal"); + ImGui::Spacing(); + HelpMarker( + "Use SetScrollHereX() or SetScrollFromPosX() to scroll to a given horizontal position.\n\n" + "Because the clipping rectangle of most window hides half worth of WindowPadding on the " + "left/right, using SetScrollFromPosX(+1) will usually result in clipped text whereas the " + "equivalent SetScrollFromPosY(+1) wouldn't."); + ImGui::PushID("##HorizontalScrolling"); + for (int i = 0; i < 5; i++) + { + float child_height = ImGui::GetTextLineHeight() + style.ScrollbarSize + style.WindowPadding.y * 2.0f; + ImGuiWindowFlags child_flags = ImGuiWindowFlags_HorizontalScrollbar | (enable_extra_decorations ? ImGuiWindowFlags_AlwaysVerticalScrollbar : 0); + ImGuiID child_id = ImGui::GetID((void*)(intptr_t)i); + bool child_is_visible = ImGui::BeginChild(child_id, ImVec2(-100, child_height), true, child_flags); + if (scroll_to_off) + ImGui::SetScrollX(scroll_to_off_px); + if (scroll_to_pos) + ImGui::SetScrollFromPosX(ImGui::GetCursorStartPos().x + scroll_to_pos_px, i * 0.25f); + if (child_is_visible) // Avoid calling SetScrollHereY when running with culled items + { + for (int item = 0; item < 100; item++) + { + if (item > 0) + ImGui::SameLine(); + if (enable_track && item == track_item) + { + ImGui::TextColored(ImVec4(1, 1, 0, 1), "Item %d", item); + ImGui::SetScrollHereX(i * 0.25f); // 0.0f:left, 0.5f:center, 1.0f:right + } + else + { + ImGui::Text("Item %d", item); + } + } + } + float scroll_x = ImGui::GetScrollX(); + float scroll_max_x = ImGui::GetScrollMaxX(); + ImGui::EndChild(); + ImGui::SameLine(); + const char* names[] = { "Left", "25%", "Center", "75%", "Right" }; + ImGui::Text("%s\n%.0f/%.0f", names[i], scroll_x, scroll_max_x); + ImGui::Spacing(); + } + ImGui::PopID(); + + // Miscellaneous Horizontal Scrolling Demo + IMGUI_DEMO_MARKER("Layout/Scrolling/Horizontal (more)"); + HelpMarker( + "Horizontal scrolling for a window is enabled via the ImGuiWindowFlags_HorizontalScrollbar flag.\n\n" + "You may want to also explicitly specify content width by using SetNextWindowContentWidth() before Begin()."); + static int lines = 7; + ImGui::SliderInt("Lines", &lines, 1, 15); + ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 3.0f); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2.0f, 1.0f)); + ImVec2 scrolling_child_size = ImVec2(0, ImGui::GetFrameHeightWithSpacing() * 7 + 30); + ImGui::BeginChild("scrolling", scrolling_child_size, true, ImGuiWindowFlags_HorizontalScrollbar); + for (int line = 0; line < lines; line++) + { + // Display random stuff. For the sake of this trivial demo we are using basic Button() + SameLine() + // If you want to create your own time line for a real application you may be better off manipulating + // the cursor position yourself, aka using SetCursorPos/SetCursorScreenPos to position the widgets + // yourself. You may also want to use the lower-level ImDrawList API. + int num_buttons = 10 + ((line & 1) ? line * 9 : line * 3); + for (int n = 0; n < num_buttons; n++) + { + if (n > 0) ImGui::SameLine(); + ImGui::PushID(n + line * 1000); + char num_buf[16]; + sprintf(num_buf, "%d", n); + const char* label = (!(n % 15)) ? "FizzBuzz" : (!(n % 3)) ? "Fizz" : (!(n % 5)) ? "Buzz" : num_buf; + float hue = n * 0.05f; + ImGui::PushStyleColor(ImGuiCol_Button, (ImVec4)ImColor::HSV(hue, 0.6f, 0.6f)); + ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV(hue, 0.7f, 0.7f)); + ImGui::PushStyleColor(ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV(hue, 0.8f, 0.8f)); + ImGui::Button(label, ImVec2(40.0f + sinf((float)(line + n)) * 20.0f, 0.0f)); + ImGui::PopStyleColor(3); + ImGui::PopID(); + } + } + float scroll_x = ImGui::GetScrollX(); + float scroll_max_x = ImGui::GetScrollMaxX(); + ImGui::EndChild(); + ImGui::PopStyleVar(2); + float scroll_x_delta = 0.0f; + ImGui::SmallButton("<<"); + if (ImGui::IsItemActive()) + scroll_x_delta = -ImGui::GetIO().DeltaTime * 1000.0f; + ImGui::SameLine(); + ImGui::Text("Scroll from code"); ImGui::SameLine(); + ImGui::SmallButton(">>"); + if (ImGui::IsItemActive()) + scroll_x_delta = +ImGui::GetIO().DeltaTime * 1000.0f; + ImGui::SameLine(); + ImGui::Text("%.0f/%.0f", scroll_x, scroll_max_x); + if (scroll_x_delta != 0.0f) + { + // Demonstrate a trick: you can use Begin to set yourself in the context of another window + // (here we are already out of your child window) + ImGui::BeginChild("scrolling"); + ImGui::SetScrollX(ImGui::GetScrollX() + scroll_x_delta); + ImGui::EndChild(); + } + ImGui::Spacing(); + + static bool show_horizontal_contents_size_demo_window = false; + ImGui::Checkbox("Show Horizontal contents size demo window", &show_horizontal_contents_size_demo_window); + + if (show_horizontal_contents_size_demo_window) + { + static bool show_h_scrollbar = true; + static bool show_button = true; + static bool show_tree_nodes = true; + static bool show_text_wrapped = false; + static bool show_columns = true; + static bool show_tab_bar = true; + static bool show_child = false; + static bool explicit_content_size = false; + static float contents_size_x = 300.0f; + if (explicit_content_size) + ImGui::SetNextWindowContentSize(ImVec2(contents_size_x, 0.0f)); + ImGui::Begin("Horizontal contents size demo window", &show_horizontal_contents_size_demo_window, show_h_scrollbar ? ImGuiWindowFlags_HorizontalScrollbar : 0); + IMGUI_DEMO_MARKER("Layout/Scrolling/Horizontal contents size demo window"); + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(2, 0)); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 0)); + HelpMarker("Test of different widgets react and impact the work rectangle growing when horizontal scrolling is enabled.\n\nUse 'Metrics->Tools->Show windows rectangles' to visualize rectangles."); + ImGui::Checkbox("H-scrollbar", &show_h_scrollbar); + ImGui::Checkbox("Button", &show_button); // Will grow contents size (unless explicitly overwritten) + ImGui::Checkbox("Tree nodes", &show_tree_nodes); // Will grow contents size and display highlight over full width + ImGui::Checkbox("Text wrapped", &show_text_wrapped);// Will grow and use contents size + ImGui::Checkbox("Columns", &show_columns); // Will use contents size + ImGui::Checkbox("Tab bar", &show_tab_bar); // Will use contents size + ImGui::Checkbox("Child", &show_child); // Will grow and use contents size + ImGui::Checkbox("Explicit content size", &explicit_content_size); + ImGui::Text("Scroll %.1f/%.1f %.1f/%.1f", ImGui::GetScrollX(), ImGui::GetScrollMaxX(), ImGui::GetScrollY(), ImGui::GetScrollMaxY()); + if (explicit_content_size) + { + ImGui::SameLine(); + ImGui::SetNextItemWidth(100); + ImGui::DragFloat("##csx", &contents_size_x); + ImVec2 p = ImGui::GetCursorScreenPos(); + ImGui::GetWindowDrawList()->AddRectFilled(p, ImVec2(p.x + 10, p.y + 10), IM_COL32_WHITE); + ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(p.x + contents_size_x - 10, p.y), ImVec2(p.x + contents_size_x, p.y + 10), IM_COL32_WHITE); + ImGui::Dummy(ImVec2(0, 10)); + } + ImGui::PopStyleVar(2); + ImGui::Separator(); + if (show_button) + { + ImGui::Button("this is a 300-wide button", ImVec2(300, 0)); + } + if (show_tree_nodes) + { + bool open = true; + if (ImGui::TreeNode("this is a tree node")) + { + if (ImGui::TreeNode("another one of those tree node...")) + { + ImGui::Text("Some tree contents"); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + ImGui::CollapsingHeader("CollapsingHeader", &open); + } + if (show_text_wrapped) + { + ImGui::TextWrapped("This text should automatically wrap on the edge of the work rectangle."); + } + if (show_columns) + { + ImGui::Text("Tables:"); + if (ImGui::BeginTable("table", 4, ImGuiTableFlags_Borders)) + { + for (int n = 0; n < 4; n++) + { + ImGui::TableNextColumn(); + ImGui::Text("Width %.2f", ImGui::GetContentRegionAvail().x); + } + ImGui::EndTable(); + } + ImGui::Text("Columns:"); + ImGui::Columns(4); + for (int n = 0; n < 4; n++) + { + ImGui::Text("Width %.2f", ImGui::GetColumnWidth()); + ImGui::NextColumn(); + } + ImGui::Columns(1); + } + if (show_tab_bar && ImGui::BeginTabBar("Hello")) + { + if (ImGui::BeginTabItem("OneOneOne")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("TwoTwoTwo")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("ThreeThreeThree")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("FourFourFour")) { ImGui::EndTabItem(); } + ImGui::EndTabBar(); + } + if (show_child) + { + ImGui::BeginChild("child", ImVec2(0, 0), true); + ImGui::EndChild(); + } + ImGui::End(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Clipping"); + if (ImGui::TreeNode("Clipping")) + { + static ImVec2 size(100.0f, 100.0f); + static ImVec2 offset(30.0f, 30.0f); + ImGui::DragFloat2("size", (float*)&size, 0.5f, 1.0f, 200.0f, "%.0f"); + ImGui::TextWrapped("(Click and drag to scroll)"); + + HelpMarker( + "(Left) Using ImGui::PushClipRect():\n" + "Will alter ImGui hit-testing logic + ImDrawList rendering.\n" + "(use this if you want your clipping rectangle to affect interactions)\n\n" + "(Center) Using ImDrawList::PushClipRect():\n" + "Will alter ImDrawList rendering only.\n" + "(use this as a shortcut if you are only using ImDrawList calls)\n\n" + "(Right) Using ImDrawList::AddText() with a fine ClipRect:\n" + "Will alter only this specific ImDrawList::AddText() rendering.\n" + "This is often used internally to avoid altering the clipping rectangle and minimize draw calls."); + + for (int n = 0; n < 3; n++) + { + if (n > 0) + ImGui::SameLine(); + + ImGui::PushID(n); + ImGui::InvisibleButton("##canvas", size); + if (ImGui::IsItemActive() && ImGui::IsMouseDragging(ImGuiMouseButton_Left)) + { + offset.x += ImGui::GetIO().MouseDelta.x; + offset.y += ImGui::GetIO().MouseDelta.y; + } + ImGui::PopID(); + if (!ImGui::IsItemVisible()) // Skip rendering as ImDrawList elements are not clipped. + continue; + + const ImVec2 p0 = ImGui::GetItemRectMin(); + const ImVec2 p1 = ImGui::GetItemRectMax(); + const char* text_str = "Line 1 hello\nLine 2 clip me!"; + const ImVec2 text_pos = ImVec2(p0.x + offset.x, p0.y + offset.y); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + switch (n) + { + case 0: + ImGui::PushClipRect(p0, p1, true); + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); + ImGui::PopClipRect(); + break; + case 1: + draw_list->PushClipRect(p0, p1, true); + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); + draw_list->PopClipRect(); + break; + case 2: + ImVec4 clip_rect(p0.x, p0.y, p1.x, p1.y); // AddText() takes a ImVec4* here so let's convert. + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(ImGui::GetFont(), ImGui::GetFontSize(), text_pos, IM_COL32_WHITE, text_str, NULL, 0.0f, &clip_rect); + break; + } + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Layout/Overlap Mode"); + if (ImGui::TreeNode("Overlap Mode")) + { + static bool enable_allow_overlap = true; + + HelpMarker( + "Hit-testing is by default performed in item submission order, which generally is perceived as 'back-to-front'.\n\n" + "By using SetNextItemAllowOverlap() you can notify that an item may be overlapped by another. Doing so alters the hovering logic: items using AllowOverlap mode requires an extra frame to accept hovered state."); + ImGui::Checkbox("Enable AllowOverlap", &enable_allow_overlap); + + ImVec2 button1_pos = ImGui::GetCursorScreenPos(); + ImVec2 button2_pos = ImVec2(button1_pos.x + 50.0f, button1_pos.y + 50.0f); + if (enable_allow_overlap) + ImGui::SetNextItemAllowOverlap(); + ImGui::Button("Button 1", ImVec2(80, 80)); + ImGui::SetCursorScreenPos(button2_pos); + ImGui::Button("Button 2", ImVec2(80, 80)); + + // This is typically used with width-spanning items. + // (note that Selectable() has a dedicated flag ImGuiSelectableFlags_AllowOverlap, which is a shortcut + // for using SetNextItemAllowOverlap(). For demo purpose we use SetNextItemAllowOverlap() here.) + if (enable_allow_overlap) + ImGui::SetNextItemAllowOverlap(); + ImGui::Selectable("Some Selectable", false); + ImGui::SameLine(); + ImGui::SmallButton("++"); + + ImGui::TreePop(); + } +} + +static void ShowDemoWindowPopups() +{ + IMGUI_DEMO_MARKER("Popups"); + if (!ImGui::CollapsingHeader("Popups & Modal windows")) + return; + + // The properties of popups windows are: + // - They block normal mouse hovering detection outside them. (*) + // - Unless modal, they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - Their visibility state (~bool) is held internally by Dear ImGui instead of being held by the programmer as + // we are used to with regular Begin() calls. User can manipulate the visibility state by calling OpenPopup(). + // (*) One can use IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup) to bypass it and detect hovering even + // when normally blocked by a popup. + // Those three properties are connected. The library needs to hold their visibility state BECAUSE it can close + // popups at any time. + + // Typical use for regular windows: + // bool my_tool_is_active = false; if (ImGui::Button("Open")) my_tool_is_active = true; [...] if (my_tool_is_active) Begin("My Tool", &my_tool_is_active) { [...] } End(); + // Typical use for popups: + // if (ImGui::Button("Open")) ImGui::OpenPopup("MyPopup"); if (ImGui::BeginPopup("MyPopup") { [...] EndPopup(); } + + // With popups we have to go through a library call (here OpenPopup) to manipulate the visibility state. + // This may be a bit confusing at first but it should quickly make sense. Follow on the examples below. + + IMGUI_DEMO_MARKER("Popups/Popups"); + if (ImGui::TreeNode("Popups")) + { + ImGui::TextWrapped( + "When a popup is active, it inhibits interacting with windows that are behind the popup. " + "Clicking outside the popup closes it."); + + static int selected_fish = -1; + const char* names[] = { "Bream", "Haddock", "Mackerel", "Pollock", "Tilefish" }; + static bool toggles[] = { true, false, false, false, false }; + + // Simple selection popup (if you want to show the current selection inside the Button itself, + // you may want to build a string using the "###" operator to preserve a constant ID with a variable label) + if (ImGui::Button("Select..")) + ImGui::OpenPopup("my_select_popup"); + ImGui::SameLine(); + ImGui::TextUnformatted(selected_fish == -1 ? "" : names[selected_fish]); + if (ImGui::BeginPopup("my_select_popup")) + { + ImGui::SeparatorText("Aquarium"); + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + if (ImGui::Selectable(names[i])) + selected_fish = i; + ImGui::EndPopup(); + } + + // Showing a menu with toggles + if (ImGui::Button("Toggle..")) + ImGui::OpenPopup("my_toggle_popup"); + if (ImGui::BeginPopup("my_toggle_popup")) + { + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + ImGui::MenuItem(names[i], "", &toggles[i]); + if (ImGui::BeginMenu("Sub-menu")) + { + ImGui::MenuItem("Click me"); + ImGui::EndMenu(); + } + + ImGui::Separator(); + ImGui::Text("Tooltip here"); + ImGui::SetItemTooltip("I am a tooltip over a popup"); + + if (ImGui::Button("Stacked Popup")) + ImGui::OpenPopup("another popup"); + if (ImGui::BeginPopup("another popup")) + { + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + ImGui::MenuItem(names[i], "", &toggles[i]); + if (ImGui::BeginMenu("Sub-menu")) + { + ImGui::MenuItem("Click me"); + if (ImGui::Button("Stacked Popup")) + ImGui::OpenPopup("another popup"); + if (ImGui::BeginPopup("another popup")) + { + ImGui::Text("I am the last one here."); + ImGui::EndPopup(); + } + ImGui::EndMenu(); + } + ImGui::EndPopup(); + } + ImGui::EndPopup(); + } + + // Call the more complete ShowExampleMenuFile which we use in various places of this demo + if (ImGui::Button("With a menu..")) + ImGui::OpenPopup("my_file_popup"); + if (ImGui::BeginPopup("my_file_popup", ImGuiWindowFlags_MenuBar)) + { + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Edit")) + { + ImGui::MenuItem("Dummy"); + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + ImGui::Text("Hello from popup!"); + ImGui::Button("This is a dummy button.."); + ImGui::EndPopup(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Popups/Context menus"); + if (ImGui::TreeNode("Context menus")) + { + HelpMarker("\"Context\" functions are simple helpers to associate a Popup to a given Item or Window identifier."); + + // BeginPopupContextItem() is a helper to provide common/simple popup behavior of essentially doing: + // if (id == 0) + // id = GetItemID(); // Use last item id + // if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) + // OpenPopup(id); + // return BeginPopup(id); + // For advanced uses you may want to replicate and customize this code. + // See more details in BeginPopupContextItem(). + + // Example 1 + // When used after an item that has an ID (e.g. Button), we can skip providing an ID to BeginPopupContextItem(), + // and BeginPopupContextItem() will use the last item ID as the popup ID. + { + const char* names[5] = { "Label1", "Label2", "Label3", "Label4", "Label5" }; + static int selected = -1; + for (int n = 0; n < 5; n++) + { + if (ImGui::Selectable(names[n], selected == n)) + selected = n; + if (ImGui::BeginPopupContextItem()) // <-- use last item id as popup id + { + selected = n; + ImGui::Text("This a popup for \"%s\"!", names[n]); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + ImGui::SetItemTooltip("Right-click to open popup"); + } + } + + // Example 2 + // Popup on a Text() element which doesn't have an identifier: we need to provide an identifier to BeginPopupContextItem(). + // Using an explicit identifier is also convenient if you want to activate the popups from different locations. + { + HelpMarker("Text() elements don't have stable identifiers so we need to provide one."); + static float value = 0.5f; + ImGui::Text("Value = %.3f <-- (1) right-click this text", value); + if (ImGui::BeginPopupContextItem("my popup")) + { + if (ImGui::Selectable("Set to zero")) value = 0.0f; + if (ImGui::Selectable("Set to PI")) value = 3.1415f; + ImGui::SetNextItemWidth(-FLT_MIN); + ImGui::DragFloat("##Value", &value, 0.1f, 0.0f, 0.0f); + ImGui::EndPopup(); + } + + // We can also use OpenPopupOnItemClick() to toggle the visibility of a given popup. + // Here we make it that right-clicking this other text element opens the same popup as above. + // The popup itself will be submitted by the code above. + ImGui::Text("(2) Or right-click this text"); + ImGui::OpenPopupOnItemClick("my popup", ImGuiPopupFlags_MouseButtonRight); + + // Back to square one: manually open the same popup. + if (ImGui::Button("(3) Or click this button")) + ImGui::OpenPopup("my popup"); + } + + // Example 3 + // When using BeginPopupContextItem() with an implicit identifier (NULL == use last item ID), + // we need to make sure your item identifier is stable. + // In this example we showcase altering the item label while preserving its identifier, using the ### operator (see FAQ). + { + HelpMarker("Showcase using a popup ID linked to item ID, with the item having a changing label + stable ID using the ### operator."); + static char name[32] = "Label1"; + char buf[64]; + sprintf(buf, "Button: %s###Button", name); // ### operator override ID ignoring the preceding label + ImGui::Button(buf); + if (ImGui::BeginPopupContextItem()) + { + ImGui::Text("Edit name:"); + ImGui::InputText("##edit", name, IM_ARRAYSIZE(name)); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + ImGui::SameLine(); ImGui::Text("(<-- right-click here)"); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Popups/Modals"); + if (ImGui::TreeNode("Modals")) + { + ImGui::TextWrapped("Modal windows are like popups but the user cannot close them by clicking outside."); + + if (ImGui::Button("Delete..")) + ImGui::OpenPopup("Delete?"); + + // Always center this window when appearing + ImVec2 center = ImGui::GetMainViewport()->GetCenter(); + ImGui::SetNextWindowPos(center, ImGuiCond_Appearing, ImVec2(0.5f, 0.5f)); + + if (ImGui::BeginPopupModal("Delete?", NULL, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::Text("All those beautiful files will be deleted.\nThis operation cannot be undone!"); + ImGui::Separator(); + + //static int unused_i = 0; + //ImGui::Combo("Combo", &unused_i, "Delete\0Delete harder\0"); + + static bool dont_ask_me_next_time = false; + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); + ImGui::Checkbox("Don't ask me next time", &dont_ask_me_next_time); + ImGui::PopStyleVar(); + + if (ImGui::Button("OK", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); } + ImGui::SetItemDefaultFocus(); + ImGui::SameLine(); + if (ImGui::Button("Cancel", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); } + ImGui::EndPopup(); + } + + if (ImGui::Button("Stacked modals..")) + ImGui::OpenPopup("Stacked 1"); + if (ImGui::BeginPopupModal("Stacked 1", NULL, ImGuiWindowFlags_MenuBar)) + { + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + if (ImGui::MenuItem("Some menu item")) {} + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + ImGui::Text("Hello from Stacked The First\nUsing style.Colors[ImGuiCol_ModalWindowDimBg] behind it."); + + // Testing behavior of widgets stacking their own regular popups over the modal. + static int item = 1; + static float color[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::Combo("Combo", &item, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); + ImGui::ColorEdit4("color", color); + + if (ImGui::Button("Add another modal..")) + ImGui::OpenPopup("Stacked 2"); + + // Also demonstrate passing a bool* to BeginPopupModal(), this will create a regular close button which + // will close the popup. Note that the visibility state of popups is owned by imgui, so the input value + // of the bool actually doesn't matter here. + bool unused_open = true; + if (ImGui::BeginPopupModal("Stacked 2", &unused_open)) + { + ImGui::Text("Hello from Stacked The Second!"); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Popups/Menus inside a regular window"); + if (ImGui::TreeNode("Menus inside a regular window")) + { + ImGui::TextWrapped("Below we are testing adding menu items to a regular window. It's rather unusual but should work!"); + ImGui::Separator(); + + ImGui::MenuItem("Menu item", "CTRL+M"); + if (ImGui::BeginMenu("Menu inside a regular window")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::Separator(); + ImGui::TreePop(); + } +} + +// Dummy data structure that we use for the Table demo. +// (pre-C++11 doesn't allow us to instantiate ImVector template if this structure is defined inside the demo function) +namespace +{ +// We are passing our own identifier to TableSetupColumn() to facilitate identifying columns in the sorting code. +// This identifier will be passed down into ImGuiTableSortSpec::ColumnUserID. +// But it is possible to omit the user id parameter of TableSetupColumn() and just use the column index instead! (ImGuiTableSortSpec::ColumnIndex) +// If you don't use sorting, you will generally never care about giving column an ID! +enum MyItemColumnID +{ + MyItemColumnID_ID, + MyItemColumnID_Name, + MyItemColumnID_Action, + MyItemColumnID_Quantity, + MyItemColumnID_Description +}; + +struct MyItem +{ + int ID; + const char* Name; + int Quantity; + + // We have a problem which is affecting _only this demo_ and should not affect your code: + // As we don't rely on std:: or other third-party library to compile dear imgui, we only have reliable access to qsort(), + // however qsort doesn't allow passing user data to comparing function. + // As a workaround, we are storing the sort specs in a static/global for the comparing function to access. + // In your own use case you would probably pass the sort specs to your sorting/comparing functions directly and not use a global. + // We could technically call ImGui::TableGetSortSpecs() in CompareWithSortSpecs(), but considering that this function is called + // very often by the sorting algorithm it would be a little wasteful. + static const ImGuiTableSortSpecs* s_current_sort_specs; + + static void SortWithSortSpecs(ImGuiTableSortSpecs* sort_specs, MyItem* items, int items_count) + { + s_current_sort_specs = sort_specs; // Store in variable accessible by the sort function. + if (items_count > 1) + qsort(items, (size_t)items_count, sizeof(items[0]), MyItem::CompareWithSortSpecs); + s_current_sort_specs = NULL; + } + + // Compare function to be used by qsort() + static int IMGUI_CDECL CompareWithSortSpecs(const void* lhs, const void* rhs) + { + const MyItem* a = (const MyItem*)lhs; + const MyItem* b = (const MyItem*)rhs; + for (int n = 0; n < s_current_sort_specs->SpecsCount; n++) + { + // Here we identify columns using the ColumnUserID value that we ourselves passed to TableSetupColumn() + // We could also choose to identify columns based on their index (sort_spec->ColumnIndex), which is simpler! + const ImGuiTableColumnSortSpecs* sort_spec = &s_current_sort_specs->Specs[n]; + int delta = 0; + switch (sort_spec->ColumnUserID) + { + case MyItemColumnID_ID: delta = (a->ID - b->ID); break; + case MyItemColumnID_Name: delta = (strcmp(a->Name, b->Name)); break; + case MyItemColumnID_Quantity: delta = (a->Quantity - b->Quantity); break; + case MyItemColumnID_Description: delta = (strcmp(a->Name, b->Name)); break; + default: IM_ASSERT(0); break; + } + if (delta > 0) + return (sort_spec->SortDirection == ImGuiSortDirection_Ascending) ? +1 : -1; + if (delta < 0) + return (sort_spec->SortDirection == ImGuiSortDirection_Ascending) ? -1 : +1; + } + + // qsort() is instable so always return a way to differenciate items. + // Your own compare function may want to avoid fallback on implicit sort specs e.g. a Name compare if it wasn't already part of the sort specs. + return (a->ID - b->ID); + } +}; +const ImGuiTableSortSpecs* MyItem::s_current_sort_specs = NULL; +} + +// Make the UI compact because there are so many fields +static void PushStyleCompact() +{ + ImGuiStyle& style = ImGui::GetStyle(); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(style.FramePadding.x, (float)(int)(style.FramePadding.y * 0.60f))); + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x, (float)(int)(style.ItemSpacing.y * 0.60f))); +} + +static void PopStyleCompact() +{ + ImGui::PopStyleVar(2); +} + +// Show a combo box with a choice of sizing policies +static void EditTableSizingFlags(ImGuiTableFlags* p_flags) +{ + struct EnumDesc { ImGuiTableFlags Value; const char* Name; const char* Tooltip; }; + static const EnumDesc policies[] = + { + { ImGuiTableFlags_None, "Default", "Use default sizing policy:\n- ImGuiTableFlags_SizingFixedFit if ScrollX is on or if host window has ImGuiWindowFlags_AlwaysAutoResize.\n- ImGuiTableFlags_SizingStretchSame otherwise." }, + { ImGuiTableFlags_SizingFixedFit, "ImGuiTableFlags_SizingFixedFit", "Columns default to _WidthFixed (if resizable) or _WidthAuto (if not resizable), matching contents width." }, + { ImGuiTableFlags_SizingFixedSame, "ImGuiTableFlags_SizingFixedSame", "Columns are all the same width, matching the maximum contents width.\nImplicitly disable ImGuiTableFlags_Resizable and enable ImGuiTableFlags_NoKeepColumnsVisible." }, + { ImGuiTableFlags_SizingStretchProp, "ImGuiTableFlags_SizingStretchProp", "Columns default to _WidthStretch with weights proportional to their widths." }, + { ImGuiTableFlags_SizingStretchSame, "ImGuiTableFlags_SizingStretchSame", "Columns default to _WidthStretch with same weights." } + }; + int idx; + for (idx = 0; idx < IM_ARRAYSIZE(policies); idx++) + if (policies[idx].Value == (*p_flags & ImGuiTableFlags_SizingMask_)) + break; + const char* preview_text = (idx < IM_ARRAYSIZE(policies)) ? policies[idx].Name + (idx > 0 ? strlen("ImGuiTableFlags") : 0) : ""; + if (ImGui::BeginCombo("Sizing Policy", preview_text)) + { + for (int n = 0; n < IM_ARRAYSIZE(policies); n++) + if (ImGui::Selectable(policies[n].Name, idx == n)) + *p_flags = (*p_flags & ~ImGuiTableFlags_SizingMask_) | policies[n].Value; + ImGui::EndCombo(); + } + ImGui::SameLine(); + ImGui::TextDisabled("(?)"); + if (ImGui::BeginItemTooltip()) + { + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 50.0f); + for (int m = 0; m < IM_ARRAYSIZE(policies); m++) + { + ImGui::Separator(); + ImGui::Text("%s:", policies[m].Name); + ImGui::Separator(); + ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetStyle().IndentSpacing * 0.5f); + ImGui::TextUnformatted(policies[m].Tooltip); + } + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +static void EditTableColumnsFlags(ImGuiTableColumnFlags* p_flags) +{ + ImGui::CheckboxFlags("_Disabled", p_flags, ImGuiTableColumnFlags_Disabled); ImGui::SameLine(); HelpMarker("Master disable flag (also hide from context menu)"); + ImGui::CheckboxFlags("_DefaultHide", p_flags, ImGuiTableColumnFlags_DefaultHide); + ImGui::CheckboxFlags("_DefaultSort", p_flags, ImGuiTableColumnFlags_DefaultSort); + if (ImGui::CheckboxFlags("_WidthStretch", p_flags, ImGuiTableColumnFlags_WidthStretch)) + *p_flags &= ~(ImGuiTableColumnFlags_WidthMask_ ^ ImGuiTableColumnFlags_WidthStretch); + if (ImGui::CheckboxFlags("_WidthFixed", p_flags, ImGuiTableColumnFlags_WidthFixed)) + *p_flags &= ~(ImGuiTableColumnFlags_WidthMask_ ^ ImGuiTableColumnFlags_WidthFixed); + ImGui::CheckboxFlags("_NoResize", p_flags, ImGuiTableColumnFlags_NoResize); + ImGui::CheckboxFlags("_NoReorder", p_flags, ImGuiTableColumnFlags_NoReorder); + ImGui::CheckboxFlags("_NoHide", p_flags, ImGuiTableColumnFlags_NoHide); + ImGui::CheckboxFlags("_NoClip", p_flags, ImGuiTableColumnFlags_NoClip); + ImGui::CheckboxFlags("_NoSort", p_flags, ImGuiTableColumnFlags_NoSort); + ImGui::CheckboxFlags("_NoSortAscending", p_flags, ImGuiTableColumnFlags_NoSortAscending); + ImGui::CheckboxFlags("_NoSortDescending", p_flags, ImGuiTableColumnFlags_NoSortDescending); + ImGui::CheckboxFlags("_NoHeaderLabel", p_flags, ImGuiTableColumnFlags_NoHeaderLabel); + ImGui::CheckboxFlags("_NoHeaderWidth", p_flags, ImGuiTableColumnFlags_NoHeaderWidth); + ImGui::CheckboxFlags("_PreferSortAscending", p_flags, ImGuiTableColumnFlags_PreferSortAscending); + ImGui::CheckboxFlags("_PreferSortDescending", p_flags, ImGuiTableColumnFlags_PreferSortDescending); + ImGui::CheckboxFlags("_IndentEnable", p_flags, ImGuiTableColumnFlags_IndentEnable); ImGui::SameLine(); HelpMarker("Default for column 0"); + ImGui::CheckboxFlags("_IndentDisable", p_flags, ImGuiTableColumnFlags_IndentDisable); ImGui::SameLine(); HelpMarker("Default for column >0"); + ImGui::CheckboxFlags("_AngledHeader", p_flags, ImGuiTableColumnFlags_AngledHeader); +} + +static void ShowTableColumnsStatusFlags(ImGuiTableColumnFlags flags) +{ + ImGui::CheckboxFlags("_IsEnabled", &flags, ImGuiTableColumnFlags_IsEnabled); + ImGui::CheckboxFlags("_IsVisible", &flags, ImGuiTableColumnFlags_IsVisible); + ImGui::CheckboxFlags("_IsSorted", &flags, ImGuiTableColumnFlags_IsSorted); + ImGui::CheckboxFlags("_IsHovered", &flags, ImGuiTableColumnFlags_IsHovered); +} + +static void ShowDemoWindowTables() +{ + //ImGui::SetNextItemOpen(true, ImGuiCond_Once); + IMGUI_DEMO_MARKER("Tables"); + if (!ImGui::CollapsingHeader("Tables & Columns")) + return; + + // Using those as a base value to create width/height that are factor of the size of our font + const float TEXT_BASE_WIDTH = ImGui::CalcTextSize("A").x; + const float TEXT_BASE_HEIGHT = ImGui::GetTextLineHeightWithSpacing(); + + ImGui::PushID("Tables"); + + int open_action = -1; + if (ImGui::Button("Expand all")) + open_action = 1; + ImGui::SameLine(); + if (ImGui::Button("Collapse all")) + open_action = 0; + ImGui::SameLine(); + + // Options + static bool disable_indent = false; + ImGui::Checkbox("Disable tree indentation", &disable_indent); + ImGui::SameLine(); + HelpMarker("Disable the indenting of tree nodes so demo tables can use the full window width."); + ImGui::Separator(); + if (disable_indent) + ImGui::PushStyleVar(ImGuiStyleVar_IndentSpacing, 0.0f); + + // About Styling of tables + // Most settings are configured on a per-table basis via the flags passed to BeginTable() and TableSetupColumns APIs. + // There are however a few settings that a shared and part of the ImGuiStyle structure: + // style.CellPadding // Padding within each cell + // style.Colors[ImGuiCol_TableHeaderBg] // Table header background + // style.Colors[ImGuiCol_TableBorderStrong] // Table outer and header borders + // style.Colors[ImGuiCol_TableBorderLight] // Table inner borders + // style.Colors[ImGuiCol_TableRowBg] // Table row background when ImGuiTableFlags_RowBg is enabled (even rows) + // style.Colors[ImGuiCol_TableRowBgAlt] // Table row background when ImGuiTableFlags_RowBg is enabled (odds rows) + + // Demos + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Basic"); + if (ImGui::TreeNode("Basic")) + { + // Here we will showcase three different ways to output a table. + // They are very simple variations of a same thing! + + // [Method 1] Using TableNextRow() to create a new row, and TableSetColumnIndex() to select the column. + // In many situations, this is the most flexible and easy to use pattern. + HelpMarker("Using TableNextRow() + calling TableSetColumnIndex() _before_ each cell, in a loop."); + if (ImGui::BeginTable("table1", 3)) + { + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Row %d Column %d", row, column); + } + } + ImGui::EndTable(); + } + + // [Method 2] Using TableNextColumn() called multiple times, instead of using a for loop + TableSetColumnIndex(). + // This is generally more convenient when you have code manually submitting the contents of each column. + HelpMarker("Using TableNextRow() + calling TableNextColumn() _before_ each cell, manually."); + if (ImGui::BeginTable("table2", 3)) + { + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::Text("Row %d", row); + ImGui::TableNextColumn(); + ImGui::Text("Some contents"); + ImGui::TableNextColumn(); + ImGui::Text("123.456"); + } + ImGui::EndTable(); + } + + // [Method 3] We call TableNextColumn() _before_ each cell. We never call TableNextRow(), + // as TableNextColumn() will automatically wrap around and create new rows as needed. + // This is generally more convenient when your cells all contains the same type of data. + HelpMarker( + "Only using TableNextColumn(), which tends to be convenient for tables where every cell contains the same type of contents.\n" + "This is also more similar to the old NextColumn() function of the Columns API, and provided to facilitate the Columns->Tables API transition."); + if (ImGui::BeginTable("table3", 3)) + { + for (int item = 0; item < 14; item++) + { + ImGui::TableNextColumn(); + ImGui::Text("Item %d", item); + } + ImGui::EndTable(); + } + + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Borders, background"); + if (ImGui::TreeNode("Borders, background")) + { + // Expose a few Borders related flags interactively + enum ContentsType { CT_Text, CT_FillButton }; + static ImGuiTableFlags flags = ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg; + static bool display_headers = false; + static int contents_type = CT_Text; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); + ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags, ImGuiTableFlags_Borders); + ImGui::SameLine(); HelpMarker("ImGuiTableFlags_Borders\n = ImGuiTableFlags_BordersInnerV\n | ImGuiTableFlags_BordersOuterV\n | ImGuiTableFlags_BordersInnerV\n | ImGuiTableFlags_BordersOuterH"); + ImGui::Indent(); + + ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags, ImGuiTableFlags_BordersH); + ImGui::Indent(); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterH", &flags, ImGuiTableFlags_BordersOuterH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerH", &flags, ImGuiTableFlags_BordersInnerH); + ImGui::Unindent(); + + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); + ImGui::Indent(); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags, ImGuiTableFlags_BordersOuterV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags, ImGuiTableFlags_BordersInnerV); + ImGui::Unindent(); + + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuter", &flags, ImGuiTableFlags_BordersOuter); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInner", &flags, ImGuiTableFlags_BordersInner); + ImGui::Unindent(); + + ImGui::AlignTextToFramePadding(); ImGui::Text("Cell contents:"); + ImGui::SameLine(); ImGui::RadioButton("Text", &contents_type, CT_Text); + ImGui::SameLine(); ImGui::RadioButton("FillButton", &contents_type, CT_FillButton); + ImGui::Checkbox("Display headers", &display_headers); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appear in Headers"); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + // Display headers so we can inspect their interaction with borders. + // (Headers are not the main purpose of this section of the demo, so we are not elaborating on them too much. See other sections for details) + if (display_headers) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + } + + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + char buf[32]; + sprintf(buf, "Hello %d,%d", column, row); + if (contents_type == CT_Text) + ImGui::TextUnformatted(buf); + else if (contents_type == CT_FillButton) + ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Resizable, stretch"); + if (ImGui::TreeNode("Resizable, stretch")) + { + // By default, if we don't enable ScrollX the sizing policy for each column is "Stretch" + // All columns maintain a sizing weight, and they will occupy all available width. + static ImGuiTableFlags flags = ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_Resizable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_ContextMenuInBody; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); + ImGui::SameLine(); HelpMarker("Using the _Resizable flag automatically enables the _BordersInnerV flag as well, this is why the resize borders are still showing when unchecking this."); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Resizable, fixed"); + if (ImGui::TreeNode("Resizable, fixed")) + { + // Here we use ImGuiTableFlags_SizingFixedFit (even though _ScrollX is not set) + // So columns will adopt the "Fixed" policy and will maintain a fixed width regardless of the whole available width (unless table is small) + // If there is not enough available width to fit all columns, they will however be resized down. + // FIXME-TABLE: Providing a stretch-on-init would make sense especially for tables which don't have saved settings + HelpMarker( + "Using _Resizable + _SizingFixedFit flags.\n" + "Fixed-width columns generally makes more sense if you want to use horizontal scrolling.\n\n" + "Double-click a column border to auto-fit the column to its contents."); + PushStyleCompact(); + static ImGuiTableFlags flags = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Resizable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_ContextMenuInBody; + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Resizable, mixed"); + if (ImGui::TreeNode("Resizable, mixed")) + { + HelpMarker( + "Using TableSetupColumn() to alter resizing policy on a per-column basis.\n\n" + "When combining Fixed and Stretch columns, generally you only want one, maybe two trailing columns to use _WidthStretch."); + static ImGuiTableFlags flags = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_RowBg | ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; + + if (ImGui::BeginTable("table1", 3, flags)) + { + ImGui::TableSetupColumn("AAA", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("BBB", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("CCC", ImGuiTableColumnFlags_WidthStretch); + ImGui::TableHeadersRow(); + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%s %d,%d", (column == 2) ? "Stretch" : "Fixed", column, row); + } + } + ImGui::EndTable(); + } + if (ImGui::BeginTable("table2", 6, flags)) + { + ImGui::TableSetupColumn("AAA", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("BBB", ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupColumn("CCC", ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_DefaultHide); + ImGui::TableSetupColumn("DDD", ImGuiTableColumnFlags_WidthStretch); + ImGui::TableSetupColumn("EEE", ImGuiTableColumnFlags_WidthStretch); + ImGui::TableSetupColumn("FFF", ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_DefaultHide); + ImGui::TableHeadersRow(); + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 6; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%s %d,%d", (column >= 3) ? "Stretch" : "Fixed", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Reorderable, hideable, with headers"); + if (ImGui::TreeNode("Reorderable, hideable, with headers")) + { + HelpMarker( + "Click and drag column headers to reorder columns.\n\n" + "Right-click on a header to open a context menu."); + static ImGuiTableFlags flags = ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_Reorderable", &flags, ImGuiTableFlags_Reorderable); + ImGui::CheckboxFlags("ImGuiTableFlags_Hideable", &flags, ImGuiTableFlags_Hideable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers)"); + ImGui::CheckboxFlags("ImGuiTableFlags_HighlightHoveredColumn", &flags, ImGuiTableFlags_HighlightHoveredColumn); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 3, flags)) + { + // Submit columns name with TableSetupColumn() and call TableHeadersRow() to create a row with a header in each column. + // (Later we will show how TableSetupColumn() has other uses, optional flags, sizing weight etc.) + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + for (int row = 0; row < 6; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + // Use outer_size.x == 0.0f instead of default to make the table as tight as possible (only valid when no scrolling and no stretch column) + if (ImGui::BeginTable("table2", 3, flags | ImGuiTableFlags_SizingFixedFit, ImVec2(0.0f, 0.0f))) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + for (int row = 0; row < 6; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Fixed %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Padding"); + if (ImGui::TreeNode("Padding")) + { + // First example: showcase use of padding flags and effect of BorderOuterV/BorderInnerV on X padding. + // We don't expose BorderOuterH/BorderInnerH here because they have no effect on X padding. + HelpMarker( + "We often want outer padding activated when any using features which makes the edges of a column visible:\n" + "e.g.:\n" + "- BorderOuterV\n" + "- any form of row selection\n" + "Because of this, activating BorderOuterV sets the default to PadOuterX. Using PadOuterX or NoPadOuterX you can override the default.\n\n" + "Actual padding values are using style.CellPadding.\n\n" + "In this demo we don't show horizontal borders to emphasize how they don't affect default horizontal padding."); + + static ImGuiTableFlags flags1 = ImGuiTableFlags_BordersV; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_PadOuterX", &flags1, ImGuiTableFlags_PadOuterX); + ImGui::SameLine(); HelpMarker("Enable outer-most padding (default if ImGuiTableFlags_BordersOuterV is set)"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadOuterX", &flags1, ImGuiTableFlags_NoPadOuterX); + ImGui::SameLine(); HelpMarker("Disable outer-most padding (default if ImGuiTableFlags_BordersOuterV is not set)"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadInnerX", &flags1, ImGuiTableFlags_NoPadInnerX); + ImGui::SameLine(); HelpMarker("Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off)"); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags1, ImGuiTableFlags_BordersOuterV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags1, ImGuiTableFlags_BordersInnerV); + static bool show_headers = false; + ImGui::Checkbox("show_headers", &show_headers); + PopStyleCompact(); + + if (ImGui::BeginTable("table_padding", 3, flags1)) + { + if (show_headers) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + } + + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + if (row == 0) + { + ImGui::Text("Avail %.2f", ImGui::GetContentRegionAvail().x); + } + else + { + char buf[32]; + sprintf(buf, "Hello %d,%d", column, row); + ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); + } + //if (ImGui::TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) + // ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, IM_COL32(0, 100, 0, 255)); + } + } + ImGui::EndTable(); + } + + // Second example: set style.CellPadding to (0.0) or a custom value. + // FIXME-TABLE: Vertical border effectively not displayed the same way as horizontal one... + HelpMarker("Setting style.CellPadding to (0,0) or a custom value."); + static ImGuiTableFlags flags2 = ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg; + static ImVec2 cell_padding(0.0f, 0.0f); + static bool show_widget_frame_bg = true; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags2, ImGuiTableFlags_Borders); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags2, ImGuiTableFlags_BordersH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags2, ImGuiTableFlags_BordersV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInner", &flags2, ImGuiTableFlags_BordersInner); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuter", &flags2, ImGuiTableFlags_BordersOuter); + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags2, ImGuiTableFlags_RowBg); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags2, ImGuiTableFlags_Resizable); + ImGui::Checkbox("show_widget_frame_bg", &show_widget_frame_bg); + ImGui::SliderFloat2("CellPadding", &cell_padding.x, 0.0f, 10.0f, "%.0f"); + PopStyleCompact(); + + ImGui::PushStyleVar(ImGuiStyleVar_CellPadding, cell_padding); + if (ImGui::BeginTable("table_padding_2", 3, flags2)) + { + static char text_bufs[3 * 5][16]; // Mini text storage for 3x5 cells + static bool init = true; + if (!show_widget_frame_bg) + ImGui::PushStyleColor(ImGuiCol_FrameBg, 0); + for (int cell = 0; cell < 3 * 5; cell++) + { + ImGui::TableNextColumn(); + if (init) + strcpy(text_bufs[cell], "edit me"); + ImGui::SetNextItemWidth(-FLT_MIN); + ImGui::PushID(cell); + ImGui::InputText("##cell", text_bufs[cell], IM_ARRAYSIZE(text_bufs[cell])); + ImGui::PopID(); + } + if (!show_widget_frame_bg) + ImGui::PopStyleColor(); + init = false; + ImGui::EndTable(); + } + ImGui::PopStyleVar(); + + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Explicit widths"); + if (ImGui::TreeNode("Sizing policies")) + { + static ImGuiTableFlags flags1 = ImGuiTableFlags_BordersV | ImGuiTableFlags_BordersOuterH | ImGuiTableFlags_RowBg | ImGuiTableFlags_ContextMenuInBody; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags1, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags1, ImGuiTableFlags_NoHostExtendX); + PopStyleCompact(); + + static ImGuiTableFlags sizing_policy_flags[4] = { ImGuiTableFlags_SizingFixedFit, ImGuiTableFlags_SizingFixedSame, ImGuiTableFlags_SizingStretchProp, ImGuiTableFlags_SizingStretchSame }; + for (int table_n = 0; table_n < 4; table_n++) + { + ImGui::PushID(table_n); + ImGui::SetNextItemWidth(TEXT_BASE_WIDTH * 30); + EditTableSizingFlags(&sizing_policy_flags[table_n]); + + // To make it easier to understand the different sizing policy, + // For each policy: we display one table where the columns have equal contents width, and one where the columns have different contents width. + if (ImGui::BeginTable("table1", 3, sizing_policy_flags[table_n] | flags1)) + { + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); ImGui::Text("Oh dear"); + ImGui::TableNextColumn(); ImGui::Text("Oh dear"); + ImGui::TableNextColumn(); ImGui::Text("Oh dear"); + } + ImGui::EndTable(); + } + if (ImGui::BeginTable("table2", 3, sizing_policy_flags[table_n] | flags1)) + { + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); ImGui::Text("AAAA"); + ImGui::TableNextColumn(); ImGui::Text("BBBBBBBB"); + ImGui::TableNextColumn(); ImGui::Text("CCCCCCCCCCCC"); + } + ImGui::EndTable(); + } + ImGui::PopID(); + } + + ImGui::Spacing(); + ImGui::TextUnformatted("Advanced"); + ImGui::SameLine(); + HelpMarker("This section allows you to interact and see the effect of various sizing policies depending on whether Scroll is enabled and the contents of your columns."); + + enum ContentsType { CT_ShowWidth, CT_ShortText, CT_LongText, CT_Button, CT_FillButton, CT_InputText }; + static ImGuiTableFlags flags = ImGuiTableFlags_ScrollY | ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_Resizable; + static int contents_type = CT_ShowWidth; + static int column_count = 3; + + PushStyleCompact(); + ImGui::PushID("Advanced"); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 30); + EditTableSizingFlags(&flags); + ImGui::Combo("Contents", &contents_type, "Show width\0Short Text\0Long Text\0Button\0Fill Button\0InputText\0"); + if (contents_type == CT_FillButton) + { + ImGui::SameLine(); + HelpMarker("Be mindful that using right-alignment (e.g. size.x = -FLT_MIN) creates a feedback loop where contents width can feed into auto-column width can feed into contents width."); + } + ImGui::DragInt("Columns", &column_count, 0.1f, 1, 64, "%d", ImGuiSliderFlags_AlwaysClamp); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_PreciseWidths", &flags, ImGuiTableFlags_PreciseWidths); + ImGui::SameLine(); HelpMarker("Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth."); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + ImGui::CheckboxFlags("ImGuiTableFlags_NoClip", &flags, ImGuiTableFlags_NoClip); + ImGui::PopItemWidth(); + ImGui::PopID(); + PopStyleCompact(); + + if (ImGui::BeginTable("table2", column_count, flags, ImVec2(0.0f, TEXT_BASE_HEIGHT * 7))) + { + for (int cell = 0; cell < 10 * column_count; cell++) + { + ImGui::TableNextColumn(); + int column = ImGui::TableGetColumnIndex(); + int row = ImGui::TableGetRowIndex(); + + ImGui::PushID(cell); + char label[32]; + static char text_buf[32] = ""; + sprintf(label, "Hello %d,%d", column, row); + switch (contents_type) + { + case CT_ShortText: ImGui::TextUnformatted(label); break; + case CT_LongText: ImGui::Text("Some %s text %d,%d\nOver two lines..", column == 0 ? "long" : "longeeer", column, row); break; + case CT_ShowWidth: ImGui::Text("W: %.1f", ImGui::GetContentRegionAvail().x); break; + case CT_Button: ImGui::Button(label); break; + case CT_FillButton: ImGui::Button(label, ImVec2(-FLT_MIN, 0.0f)); break; + case CT_InputText: ImGui::SetNextItemWidth(-FLT_MIN); ImGui::InputText("##", text_buf, IM_ARRAYSIZE(text_buf)); break; + } + ImGui::PopID(); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Vertical scrolling, with clipping"); + if (ImGui::TreeNode("Vertical scrolling, with clipping")) + { + HelpMarker("Here we activate ScrollY, which will create a child window container to allow hosting scrollable contents.\n\nWe also demonstrate using ImGuiListClipper to virtualize the submission of many items."); + static ImGuiTableFlags flags = ImGuiTableFlags_ScrollY | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + PopStyleCompact(); + + // When using ScrollX or ScrollY we need to specify a size for our table container! + // Otherwise by default the table will fit all available space, like a BeginChild() call. + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 8); + if (ImGui::BeginTable("table_scrolly", 3, flags, outer_size)) + { + ImGui::TableSetupScrollFreeze(0, 1); // Make top row always visible + ImGui::TableSetupColumn("One", ImGuiTableColumnFlags_None); + ImGui::TableSetupColumn("Two", ImGuiTableColumnFlags_None); + ImGui::TableSetupColumn("Three", ImGuiTableColumnFlags_None); + ImGui::TableHeadersRow(); + + // Demonstrate using clipper for large vertical lists + ImGuiListClipper clipper; + clipper.Begin(1000); + while (clipper.Step()) + { + for (int row = clipper.DisplayStart; row < clipper.DisplayEnd; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Hello %d,%d", column, row); + } + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Horizontal scrolling"); + if (ImGui::TreeNode("Horizontal scrolling")) + { + HelpMarker( + "When ScrollX is enabled, the default sizing policy becomes ImGuiTableFlags_SizingFixedFit, " + "as automatically stretching columns doesn't make much sense with horizontal scrolling.\n\n" + "Also note that as of the current version, you will almost always want to enable ScrollY along with ScrollX," + "because the container window won't automatically extend vertically to fix contents (this may be improved in future versions)."); + static ImGuiTableFlags flags = ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; + static int freeze_cols = 1; + static int freeze_rows = 1; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_cols", &freeze_cols, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_rows", &freeze_rows, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + PopStyleCompact(); + + // When using ScrollX or ScrollY we need to specify a size for our table container! + // Otherwise by default the table will fit all available space, like a BeginChild() call. + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 8); + if (ImGui::BeginTable("table_scrollx", 7, flags, outer_size)) + { + ImGui::TableSetupScrollFreeze(freeze_cols, freeze_rows); + ImGui::TableSetupColumn("Line #", ImGuiTableColumnFlags_NoHide); // Make the first column not hideable to match our use of TableSetupScrollFreeze() + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableSetupColumn("Four"); + ImGui::TableSetupColumn("Five"); + ImGui::TableSetupColumn("Six"); + ImGui::TableHeadersRow(); + for (int row = 0; row < 20; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 7; column++) + { + // Both TableNextColumn() and TableSetColumnIndex() return true when a column is visible or performing width measurement. + // Because here we know that: + // - A) all our columns are contributing the same to row height + // - B) column 0 is always visible, + // We only always submit this one column and can skip others. + // More advanced per-column clipping behaviors may benefit from polling the status flags via TableGetColumnFlags(). + if (!ImGui::TableSetColumnIndex(column) && column > 0) + continue; + if (column == 0) + ImGui::Text("Line %d", row); + else + ImGui::Text("Hello world %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + ImGui::Spacing(); + ImGui::TextUnformatted("Stretch + ScrollX"); + ImGui::SameLine(); + HelpMarker( + "Showcase using Stretch columns + ScrollX together: " + "this is rather unusual and only makes sense when specifying an 'inner_width' for the table!\n" + "Without an explicit value, inner_width is == outer_size.x and therefore using Stretch columns + ScrollX together doesn't make sense."); + static ImGuiTableFlags flags2 = ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_RowBg | ImGuiTableFlags_ContextMenuInBody; + static float inner_width = 1000.0f; + PushStyleCompact(); + ImGui::PushID("flags3"); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 30); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags2, ImGuiTableFlags_ScrollX); + ImGui::DragFloat("inner_width", &inner_width, 1.0f, 0.0f, FLT_MAX, "%.1f"); + ImGui::PopItemWidth(); + ImGui::PopID(); + PopStyleCompact(); + if (ImGui::BeginTable("table2", 7, flags2, outer_size, inner_width)) + { + for (int cell = 0; cell < 20 * 7; cell++) + { + ImGui::TableNextColumn(); + ImGui::Text("Hello world %d,%d", ImGui::TableGetColumnIndex(), ImGui::TableGetRowIndex()); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Columns flags"); + if (ImGui::TreeNode("Columns flags")) + { + // Create a first table just to show all the options/flags we want to make visible in our example! + const int column_count = 3; + const char* column_names[column_count] = { "One", "Two", "Three" }; + static ImGuiTableColumnFlags column_flags[column_count] = { ImGuiTableColumnFlags_DefaultSort, ImGuiTableColumnFlags_None, ImGuiTableColumnFlags_DefaultHide }; + static ImGuiTableColumnFlags column_flags_out[column_count] = { 0, 0, 0 }; // Output from TableGetColumnFlags() + + if (ImGui::BeginTable("table_columns_flags_checkboxes", column_count, ImGuiTableFlags_None)) + { + PushStyleCompact(); + for (int column = 0; column < column_count; column++) + { + ImGui::TableNextColumn(); + ImGui::PushID(column); + ImGui::AlignTextToFramePadding(); // FIXME-TABLE: Workaround for wrong text baseline propagation across columns + ImGui::Text("'%s'", column_names[column]); + ImGui::Spacing(); + ImGui::Text("Input flags:"); + EditTableColumnsFlags(&column_flags[column]); + ImGui::Spacing(); + ImGui::Text("Output flags:"); + ImGui::BeginDisabled(); + ShowTableColumnsStatusFlags(column_flags_out[column]); + ImGui::EndDisabled(); + ImGui::PopID(); + } + PopStyleCompact(); + ImGui::EndTable(); + } + + // Create the real table we care about for the example! + // We use a scrolling table to be able to showcase the difference between the _IsEnabled and _IsVisible flags above, otherwise in + // a non-scrolling table columns are always visible (unless using ImGuiTableFlags_NoKeepColumnsVisible + resizing the parent window down) + const ImGuiTableFlags flags + = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY + | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV + | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Sortable; + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 9); + if (ImGui::BeginTable("table_columns_flags", column_count, flags, outer_size)) + { + bool has_angled_header = false; + for (int column = 0; column < column_count; column++) + { + has_angled_header |= (column_flags[column] & ImGuiTableColumnFlags_AngledHeader) != 0; + ImGui::TableSetupColumn(column_names[column], column_flags[column]); + } + if (has_angled_header) + ImGui::TableAngledHeadersRow(); + ImGui::TableHeadersRow(); + for (int column = 0; column < column_count; column++) + column_flags_out[column] = ImGui::TableGetColumnFlags(column); + float indent_step = (float)((int)TEXT_BASE_WIDTH / 2); + for (int row = 0; row < 8; row++) + { + ImGui::Indent(indent_step); // Add some indentation to demonstrate usage of per-column IndentEnable/IndentDisable flags. + ImGui::TableNextRow(); + for (int column = 0; column < column_count; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%s %s", (column == 0) ? "Indented" : "Hello", ImGui::TableGetColumnName(column)); + } + } + ImGui::Unindent(indent_step * 8.0f); + + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Columns widths"); + if (ImGui::TreeNode("Columns widths")) + { + HelpMarker("Using TableSetupColumn() to setup default width."); + + static ImGuiTableFlags flags1 = ImGuiTableFlags_Borders | ImGuiTableFlags_NoBordersInBodyUntilResize; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags1, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags1, ImGuiTableFlags_NoBordersInBodyUntilResize); + PopStyleCompact(); + if (ImGui::BeginTable("table1", 3, flags1)) + { + // We could also set ImGuiTableFlags_SizingFixedFit on the table and all columns will default to ImGuiTableColumnFlags_WidthFixed. + ImGui::TableSetupColumn("one", ImGuiTableColumnFlags_WidthFixed, 100.0f); // Default to 100.0f + ImGui::TableSetupColumn("two", ImGuiTableColumnFlags_WidthFixed, 200.0f); // Default to 200.0f + ImGui::TableSetupColumn("three", ImGuiTableColumnFlags_WidthFixed); // Default to auto + ImGui::TableHeadersRow(); + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableSetColumnIndex(column); + if (row == 0) + ImGui::Text("(w: %5.1f)", ImGui::GetContentRegionAvail().x); + else + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + HelpMarker("Using TableSetupColumn() to setup explicit width.\n\nUnless _NoKeepColumnsVisible is set, fixed columns with set width may still be shrunk down if there's not enough space in the host."); + + static ImGuiTableFlags flags2 = ImGuiTableFlags_None; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_NoKeepColumnsVisible", &flags2, ImGuiTableFlags_NoKeepColumnsVisible); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags2, ImGuiTableFlags_BordersInnerV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags2, ImGuiTableFlags_BordersOuterV); + PopStyleCompact(); + if (ImGui::BeginTable("table2", 4, flags2)) + { + // We could also set ImGuiTableFlags_SizingFixedFit on the table and all columns will default to ImGuiTableColumnFlags_WidthFixed. + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, 100.0f); + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 15.0f); + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 30.0f); + ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 15.0f); + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 4; column++) + { + ImGui::TableSetColumnIndex(column); + if (row == 0) + ImGui::Text("(w: %5.1f)", ImGui::GetContentRegionAvail().x); + else + ImGui::Text("Hello %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Nested tables"); + if (ImGui::TreeNode("Nested tables")) + { + HelpMarker("This demonstrates embedding a table into another table cell."); + + if (ImGui::BeginTable("table_nested1", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + ImGui::TableSetupColumn("A0"); + ImGui::TableSetupColumn("A1"); + ImGui::TableHeadersRow(); + + ImGui::TableNextColumn(); + ImGui::Text("A0 Row 0"); + { + float rows_height = TEXT_BASE_HEIGHT * 2; + if (ImGui::BeginTable("table_nested2", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + ImGui::TableSetupColumn("B0"); + ImGui::TableSetupColumn("B1"); + ImGui::TableHeadersRow(); + + ImGui::TableNextRow(ImGuiTableRowFlags_None, rows_height); + ImGui::TableNextColumn(); + ImGui::Text("B0 Row 0"); + ImGui::TableNextColumn(); + ImGui::Text("B1 Row 0"); + ImGui::TableNextRow(ImGuiTableRowFlags_None, rows_height); + ImGui::TableNextColumn(); + ImGui::Text("B0 Row 1"); + ImGui::TableNextColumn(); + ImGui::Text("B1 Row 1"); + + ImGui::EndTable(); + } + } + ImGui::TableNextColumn(); ImGui::Text("A1 Row 0"); + ImGui::TableNextColumn(); ImGui::Text("A0 Row 1"); + ImGui::TableNextColumn(); ImGui::Text("A1 Row 1"); + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Row height"); + if (ImGui::TreeNode("Row height")) + { + HelpMarker("You can pass a 'min_row_height' to TableNextRow().\n\nRows are padded with 'style.CellPadding.y' on top and bottom, so effectively the minimum row height will always be >= 'style.CellPadding.y * 2.0f'.\n\nWe cannot honor a _maximum_ row height as that would require a unique clipping rectangle per row."); + if (ImGui::BeginTable("table_row_height", 1, ImGuiTableFlags_Borders)) + { + for (int row = 0; row < 8; row++) + { + float min_row_height = (float)(int)(TEXT_BASE_HEIGHT * 0.30f * row); + ImGui::TableNextRow(ImGuiTableRowFlags_None, min_row_height); + ImGui::TableNextColumn(); + ImGui::Text("min_row_height = %.2f", min_row_height); + } + ImGui::EndTable(); + } + + HelpMarker("Showcase using SameLine(0,0) to share Current Line Height between cells.\n\nPlease note that Tables Row Height is not the same thing as Current Line Height, as a table cell may contains multiple lines."); + if (ImGui::BeginTable("table_share_lineheight", 2, ImGuiTableFlags_Borders)) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::ColorButton("##1", ImVec4(0.13f, 0.26f, 0.40f, 1.0f), ImGuiColorEditFlags_None, ImVec2(40, 40)); + ImGui::TableNextColumn(); + ImGui::Text("Line 1"); + ImGui::Text("Line 2"); + + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::ColorButton("##2", ImVec4(0.13f, 0.26f, 0.40f, 1.0f), ImGuiColorEditFlags_None, ImVec2(40, 40)); + ImGui::TableNextColumn(); + ImGui::SameLine(0.0f, 0.0f); // Reuse line height from previous column + ImGui::Text("Line 1, with SameLine(0,0)"); + ImGui::Text("Line 2"); + + ImGui::EndTable(); + } + + HelpMarker("Showcase altering CellPadding.y between rows. Note that CellPadding.x is locked for the entire table."); + if (ImGui::BeginTable("table_changing_cellpadding_y", 1, ImGuiTableFlags_Borders)) + { + ImGuiStyle& style = ImGui::GetStyle(); + for (int row = 0; row < 8; row++) + { + if ((row % 3) == 2) + ImGui::PushStyleVar(ImGuiStyleVar_CellPadding, ImVec2(style.CellPadding.x, 20.0f)); + ImGui::TableNextRow(ImGuiTableRowFlags_None); + ImGui::TableNextColumn(); + ImGui::Text("CellPadding.y = %.2f", style.CellPadding.y); + if ((row % 3) == 2) + ImGui::PopStyleVar(); + } + ImGui::EndTable(); + } + + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Outer size"); + if (ImGui::TreeNode("Outer size")) + { + // Showcasing use of ImGuiTableFlags_NoHostExtendX and ImGuiTableFlags_NoHostExtendY + // Important to that note how the two flags have slightly different behaviors! + ImGui::Text("Using NoHostExtendX and NoHostExtendY:"); + PushStyleCompact(); + static ImGuiTableFlags flags = ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_ContextMenuInBody | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_NoHostExtendX; + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); + ImGui::SameLine(); HelpMarker("Make outer width auto-fit to columns, overriding outer_size.x value.\n\nOnly available when ScrollX/ScrollY are disabled and Stretch columns are not used."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendY", &flags, ImGuiTableFlags_NoHostExtendY); + ImGui::SameLine(); HelpMarker("Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit).\n\nOnly available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible."); + PopStyleCompact(); + + ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 5.5f); + if (ImGui::BeginTable("table1", 3, flags, outer_size)) + { + for (int row = 0; row < 10; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableNextColumn(); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::SameLine(); + ImGui::Text("Hello!"); + + ImGui::Spacing(); + + ImGui::Text("Using explicit size:"); + if (ImGui::BeginTable("table2", 3, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg, ImVec2(TEXT_BASE_WIDTH * 30, 0.0f))) + { + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + ImGui::TableNextColumn(); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + ImGui::SameLine(); + if (ImGui::BeginTable("table3", 3, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg, ImVec2(TEXT_BASE_WIDTH * 30, 0.0f))) + { + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(0, TEXT_BASE_HEIGHT * 1.5f); + for (int column = 0; column < 3; column++) + { + ImGui::TableNextColumn(); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Background color"); + if (ImGui::TreeNode("Background color")) + { + static ImGuiTableFlags flags = ImGuiTableFlags_RowBg; + static int row_bg_type = 1; + static int row_bg_target = 1; + static int cell_bg_type = 1; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags, ImGuiTableFlags_Borders); + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); + ImGui::SameLine(); HelpMarker("ImGuiTableFlags_RowBg automatically sets RowBg0 to alternative colors pulled from the Style."); + ImGui::Combo("row bg type", (int*)&row_bg_type, "None\0Red\0Gradient\0"); + ImGui::Combo("row bg target", (int*)&row_bg_target, "RowBg0\0RowBg1\0"); ImGui::SameLine(); HelpMarker("Target RowBg0 to override the alternating odd/even colors,\nTarget RowBg1 to blend with them."); + ImGui::Combo("cell bg type", (int*)&cell_bg_type, "None\0Blue\0"); ImGui::SameLine(); HelpMarker("We are colorizing cells to B1->C2 here."); + IM_ASSERT(row_bg_type >= 0 && row_bg_type <= 2); + IM_ASSERT(row_bg_target >= 0 && row_bg_target <= 1); + IM_ASSERT(cell_bg_type >= 0 && cell_bg_type <= 1); + PopStyleCompact(); + + if (ImGui::BeginTable("table1", 5, flags)) + { + for (int row = 0; row < 6; row++) + { + ImGui::TableNextRow(); + + // Demonstrate setting a row background color with 'ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBgX, ...)' + // We use a transparent color so we can see the one behind in case our target is RowBg1 and RowBg0 was already targeted by the ImGuiTableFlags_RowBg flag. + if (row_bg_type != 0) + { + ImU32 row_bg_color = ImGui::GetColorU32(row_bg_type == 1 ? ImVec4(0.7f, 0.3f, 0.3f, 0.65f) : ImVec4(0.2f + row * 0.1f, 0.2f, 0.2f, 0.65f)); // Flat or Gradient? + ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0 + row_bg_target, row_bg_color); + } + + // Fill cells + for (int column = 0; column < 5; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("%c%c", 'A' + row, '0' + column); + + // Change background of Cells B1->C2 + // Demonstrate setting a cell background color with 'ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, ...)' + // (the CellBg color will be blended over the RowBg and ColumnBg colors) + // We can also pass a column number as a third parameter to TableSetBgColor() and do this outside the column loop. + if (row >= 1 && row <= 2 && column >= 1 && column <= 2 && cell_bg_type == 1) + { + ImU32 cell_bg_color = ImGui::GetColorU32(ImVec4(0.3f, 0.3f, 0.7f, 0.65f)); + ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, cell_bg_color); + } + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Tree view"); + if (ImGui::TreeNode("Tree view")) + { + static ImGuiTableFlags flags = ImGuiTableFlags_BordersV | ImGuiTableFlags_BordersOuterH | ImGuiTableFlags_Resizable | ImGuiTableFlags_RowBg | ImGuiTableFlags_NoBordersInBody; + + static ImGuiTreeNodeFlags tree_node_flags = ImGuiTreeNodeFlags_SpanAllColumns; + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanFullWidth", &tree_node_flags, ImGuiTreeNodeFlags_SpanFullWidth); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanAllColumns", &tree_node_flags, ImGuiTreeNodeFlags_SpanAllColumns); + + if (ImGui::BeginTable("3ways", 3, flags)) + { + // The first column will use the default _WidthStretch when ScrollX is Off and _WidthFixed when ScrollX is On + ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_NoHide); + ImGui::TableSetupColumn("Size", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 12.0f); + ImGui::TableSetupColumn("Type", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 18.0f); + ImGui::TableHeadersRow(); + + // Simple storage to output a dummy file-system. + struct MyTreeNode + { + const char* Name; + const char* Type; + int Size; + int ChildIdx; + int ChildCount; + static void DisplayNode(const MyTreeNode* node, const MyTreeNode* all_nodes) + { + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + const bool is_folder = (node->ChildCount > 0); + if (is_folder) + { + bool open = ImGui::TreeNodeEx(node->Name, tree_node_flags); + ImGui::TableNextColumn(); + ImGui::TextDisabled("--"); + ImGui::TableNextColumn(); + ImGui::TextUnformatted(node->Type); + if (open) + { + for (int child_n = 0; child_n < node->ChildCount; child_n++) + DisplayNode(&all_nodes[node->ChildIdx + child_n], all_nodes); + ImGui::TreePop(); + } + } + else + { + ImGui::TreeNodeEx(node->Name, tree_node_flags | ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_Bullet | ImGuiTreeNodeFlags_NoTreePushOnOpen); + ImGui::TableNextColumn(); + ImGui::Text("%d", node->Size); + ImGui::TableNextColumn(); + ImGui::TextUnformatted(node->Type); + } + } + }; + static const MyTreeNode nodes[] = + { + { "Root", "Folder", -1, 1, 3 }, // 0 + { "Music", "Folder", -1, 4, 2 }, // 1 + { "Textures", "Folder", -1, 6, 3 }, // 2 + { "desktop.ini", "System file", 1024, -1,-1 }, // 3 + { "File1_a.wav", "Audio file", 123000, -1,-1 }, // 4 + { "File1_b.wav", "Audio file", 456000, -1,-1 }, // 5 + { "Image001.png", "Image file", 203128, -1,-1 }, // 6 + { "Copy of Image001.png", "Image file", 203256, -1,-1 }, // 7 + { "Copy of Image001 (Final2).png","Image file", 203512, -1,-1 }, // 8 + }; + + MyTreeNode::DisplayNode(&nodes[0], nodes); + + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Item width"); + if (ImGui::TreeNode("Item width")) + { + HelpMarker( + "Showcase using PushItemWidth() and how it is preserved on a per-column basis.\n\n" + "Note that on auto-resizing non-resizable fixed columns, querying the content width for e.g. right-alignment doesn't make sense."); + if (ImGui::BeginTable("table_item_width", 3, ImGuiTableFlags_Borders)) + { + ImGui::TableSetupColumn("small"); + ImGui::TableSetupColumn("half"); + ImGui::TableSetupColumn("right-align"); + ImGui::TableHeadersRow(); + + for (int row = 0; row < 3; row++) + { + ImGui::TableNextRow(); + if (row == 0) + { + // Setup ItemWidth once (instead of setting up every time, which is also possible but less efficient) + ImGui::TableSetColumnIndex(0); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 3.0f); // Small + ImGui::TableSetColumnIndex(1); + ImGui::PushItemWidth(-ImGui::GetContentRegionAvail().x * 0.5f); + ImGui::TableSetColumnIndex(2); + ImGui::PushItemWidth(-FLT_MIN); // Right-aligned + } + + // Draw our contents + static float dummy_f = 0.0f; + ImGui::PushID(row); + ImGui::TableSetColumnIndex(0); + ImGui::SliderFloat("float0", &dummy_f, 0.0f, 1.0f); + ImGui::TableSetColumnIndex(1); + ImGui::SliderFloat("float1", &dummy_f, 0.0f, 1.0f); + ImGui::TableSetColumnIndex(2); + ImGui::SliderFloat("##float2", &dummy_f, 0.0f, 1.0f); // No visible label since right-aligned + ImGui::PopID(); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + // Demonstrate using TableHeader() calls instead of TableHeadersRow() + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Custom headers"); + if (ImGui::TreeNode("Custom headers")) + { + const int COLUMNS_COUNT = 3; + if (ImGui::BeginTable("table_custom_headers", COLUMNS_COUNT, ImGuiTableFlags_Borders | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + ImGui::TableSetupColumn("Apricot"); + ImGui::TableSetupColumn("Banana"); + ImGui::TableSetupColumn("Cherry"); + + // Dummy entire-column selection storage + // FIXME: It would be nice to actually demonstrate full-featured selection using those checkbox. + static bool column_selected[3] = {}; + + // Instead of calling TableHeadersRow() we'll submit custom headers ourselves + ImGui::TableNextRow(ImGuiTableRowFlags_Headers); + for (int column = 0; column < COLUMNS_COUNT; column++) + { + ImGui::TableSetColumnIndex(column); + const char* column_name = ImGui::TableGetColumnName(column); // Retrieve name passed to TableSetupColumn() + ImGui::PushID(column); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); + ImGui::Checkbox("##checkall", &column_selected[column]); + ImGui::PopStyleVar(); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + ImGui::TableHeader(column_name); + ImGui::PopID(); + } + + for (int row = 0; row < 5; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < 3; column++) + { + char buf[32]; + sprintf(buf, "Cell %d,%d", column, row); + ImGui::TableSetColumnIndex(column); + ImGui::Selectable(buf, column_selected[column]); + } + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + // Demonstrate using ImGuiTableColumnFlags_AngledHeader flag to create angled headers + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Angled headers"); + if (ImGui::TreeNode("Angled headers")) + { + const char* column_names[] = { "Track", "cabasa", "ride", "smash", "tom-hi", "tom-mid", "tom-low", "hihat-o", "hihat-c", "snare-s", "snare-c", "clap", "rim", "kick" }; + const int columns_count = IM_ARRAYSIZE(column_names); + const int rows_count = 12; + + static ImGuiTableFlags table_flags = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_Hideable | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_HighlightHoveredColumn; + static bool bools[columns_count * rows_count] = {}; // Dummy storage selection storage + static int frozen_cols = 1; + static int frozen_rows = 2; + ImGui::CheckboxFlags("_ScrollX", &table_flags, ImGuiTableFlags_ScrollX); + ImGui::CheckboxFlags("_ScrollY", &table_flags, ImGuiTableFlags_ScrollY); + ImGui::CheckboxFlags("_NoBordersInBody", &table_flags, ImGuiTableFlags_NoBordersInBody); + ImGui::CheckboxFlags("_HighlightHoveredColumn", &table_flags, ImGuiTableFlags_HighlightHoveredColumn); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::SliderInt("Frozen columns", &frozen_cols, 0, 2); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::SliderInt("Frozen rows", &frozen_rows, 0, 2); + + if (ImGui::BeginTable("table_angled_headers", columns_count, table_flags, ImVec2(0.0f, TEXT_BASE_HEIGHT * 12))) + { + ImGui::TableSetupColumn(column_names[0], ImGuiTableColumnFlags_NoHide | ImGuiTableColumnFlags_NoReorder); + for (int n = 1; n < columns_count; n++) + ImGui::TableSetupColumn(column_names[n], ImGuiTableColumnFlags_AngledHeader | ImGuiTableColumnFlags_WidthFixed); + ImGui::TableSetupScrollFreeze(frozen_cols, frozen_rows); + + ImGui::TableAngledHeadersRow(); // Draw angled headers for all columns with the ImGuiTableColumnFlags_AngledHeader flag. + ImGui::TableHeadersRow(); // Draw remaining headers and allow access to context-menu and other functions. + for (int row = 0; row < rows_count; row++) + { + ImGui::PushID(row); + ImGui::TableNextRow(); + ImGui::TableSetColumnIndex(0); + ImGui::AlignTextToFramePadding(); + ImGui::Text("Track %d", row); + for (int column = 1; column < columns_count; column++) + if (ImGui::TableSetColumnIndex(column)) + { + ImGui::PushID(column); + ImGui::Checkbox("", &bools[row * columns_count + column]); + ImGui::PopID(); + } + ImGui::PopID(); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + // Demonstrate creating custom context menus inside columns, while playing it nice with context menus provided by TableHeadersRow()/TableHeader() + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Context menus"); + if (ImGui::TreeNode("Context menus")) + { + HelpMarker("By default, right-clicking over a TableHeadersRow()/TableHeader() line will open the default context-menu.\nUsing ImGuiTableFlags_ContextMenuInBody we also allow right-clicking over columns body."); + static ImGuiTableFlags flags1 = ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders | ImGuiTableFlags_ContextMenuInBody; + + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_ContextMenuInBody", &flags1, ImGuiTableFlags_ContextMenuInBody); + PopStyleCompact(); + + // Context Menus: first example + // [1.1] Right-click on the TableHeadersRow() line to open the default table context menu. + // [1.2] Right-click in columns also open the default table context menu (if ImGuiTableFlags_ContextMenuInBody is set) + const int COLUMNS_COUNT = 3; + if (ImGui::BeginTable("table_context_menu", COLUMNS_COUNT, flags1)) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + + // [1.1]] Right-click on the TableHeadersRow() line to open the default table context menu. + ImGui::TableHeadersRow(); + + // Submit dummy contents + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < COLUMNS_COUNT; column++) + { + ImGui::TableSetColumnIndex(column); + ImGui::Text("Cell %d,%d", column, row); + } + } + ImGui::EndTable(); + } + + // Context Menus: second example + // [2.1] Right-click on the TableHeadersRow() line to open the default table context menu. + // [2.2] Right-click on the ".." to open a custom popup + // [2.3] Right-click in columns to open another custom popup + HelpMarker("Demonstrate mixing table context menu (over header), item context button (over button) and custom per-colum context menu (over column body)."); + ImGuiTableFlags flags2 = ImGuiTableFlags_Resizable | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders; + if (ImGui::BeginTable("table_context_menu_2", COLUMNS_COUNT, flags2)) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + + // [2.1] Right-click on the TableHeadersRow() line to open the default table context menu. + ImGui::TableHeadersRow(); + for (int row = 0; row < 4; row++) + { + ImGui::TableNextRow(); + for (int column = 0; column < COLUMNS_COUNT; column++) + { + // Submit dummy contents + ImGui::TableSetColumnIndex(column); + ImGui::Text("Cell %d,%d", column, row); + ImGui::SameLine(); + + // [2.2] Right-click on the ".." to open a custom popup + ImGui::PushID(row * COLUMNS_COUNT + column); + ImGui::SmallButton(".."); + if (ImGui::BeginPopupContextItem()) + { + ImGui::Text("This is the popup for Button(\"..\") in Cell %d,%d", column, row); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + ImGui::PopID(); + } + } + + // [2.3] Right-click anywhere in columns to open another custom popup + // (instead of testing for !IsAnyItemHovered() we could also call OpenPopup() with ImGuiPopupFlags_NoOpenOverExistingPopup + // to manage popup priority as the popups triggers, here "are we hovering a column" are overlapping) + int hovered_column = -1; + for (int column = 0; column < COLUMNS_COUNT + 1; column++) + { + ImGui::PushID(column); + if (ImGui::TableGetColumnFlags(column) & ImGuiTableColumnFlags_IsHovered) + hovered_column = column; + if (hovered_column == column && !ImGui::IsAnyItemHovered() && ImGui::IsMouseReleased(1)) + ImGui::OpenPopup("MyPopup"); + if (ImGui::BeginPopup("MyPopup")) + { + if (column == COLUMNS_COUNT) + ImGui::Text("This is a custom popup for unused space after the last column."); + else + ImGui::Text("This is a custom popup for Column %d", column); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + ImGui::PopID(); + } + + ImGui::EndTable(); + ImGui::Text("Hovered column: %d", hovered_column); + } + ImGui::TreePop(); + } + + // Demonstrate creating multiple tables with the same ID + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Synced instances"); + if (ImGui::TreeNode("Synced instances")) + { + HelpMarker("Multiple tables with the same identifier will share their settings, width, visibility, order etc."); + + static ImGuiTableFlags flags = ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_NoSavedSettings; + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + ImGui::CheckboxFlags("ImGuiTableFlags_SizingFixedFit", &flags, ImGuiTableFlags_SizingFixedFit); + ImGui::CheckboxFlags("ImGuiTableFlags_HighlightHoveredColumn", &flags, ImGuiTableFlags_HighlightHoveredColumn); + for (int n = 0; n < 3; n++) + { + char buf[32]; + sprintf(buf, "Synced Table %d", n); + bool open = ImGui::CollapsingHeader(buf, ImGuiTreeNodeFlags_DefaultOpen); + if (open && ImGui::BeginTable("Table", 3, flags, ImVec2(0.0f, ImGui::GetTextLineHeightWithSpacing() * 5))) + { + ImGui::TableSetupColumn("One"); + ImGui::TableSetupColumn("Two"); + ImGui::TableSetupColumn("Three"); + ImGui::TableHeadersRow(); + const int cell_count = (n == 1) ? 27 : 9; // Make second table have a scrollbar to verify that additional decoration is not affecting column positions. + for (int cell = 0; cell < cell_count; cell++) + { + ImGui::TableNextColumn(); + ImGui::Text("this cell %d", cell); + } + ImGui::EndTable(); + } + } + ImGui::TreePop(); + } + + // Demonstrate using Sorting facilities + // This is a simplified version of the "Advanced" example, where we mostly focus on the code necessary to handle sorting. + // Note that the "Advanced" example also showcase manually triggering a sort (e.g. if item quantities have been modified) + static const char* template_items_names[] = + { + "Banana", "Apple", "Cherry", "Watermelon", "Grapefruit", "Strawberry", "Mango", + "Kiwi", "Orange", "Pineapple", "Blueberry", "Plum", "Coconut", "Pear", "Apricot" + }; + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Sorting"); + if (ImGui::TreeNode("Sorting")) + { + // Create item list + static ImVector items; + if (items.Size == 0) + { + items.resize(50, MyItem()); + for (int n = 0; n < items.Size; n++) + { + const int template_n = n % IM_ARRAYSIZE(template_items_names); + MyItem& item = items[n]; + item.ID = n; + item.Name = template_items_names[template_n]; + item.Quantity = (n * n - n) % 20; // Assign default quantities + } + } + + // Options + static ImGuiTableFlags flags = + ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Sortable | ImGuiTableFlags_SortMulti + | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_NoBordersInBody + | ImGuiTableFlags_ScrollY; + PushStyleCompact(); + ImGui::CheckboxFlags("ImGuiTableFlags_SortMulti", &flags, ImGuiTableFlags_SortMulti); + ImGui::SameLine(); HelpMarker("When sorting is enabled: hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1)."); + ImGui::CheckboxFlags("ImGuiTableFlags_SortTristate", &flags, ImGuiTableFlags_SortTristate); + ImGui::SameLine(); HelpMarker("When sorting is enabled: allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0)."); + PopStyleCompact(); + + if (ImGui::BeginTable("table_sorting", 4, flags, ImVec2(0.0f, TEXT_BASE_HEIGHT * 15), 0.0f)) + { + // Declare columns + // We use the "user_id" parameter of TableSetupColumn() to specify a user id that will be stored in the sort specifications. + // This is so our sort function can identify a column given our own identifier. We could also identify them based on their index! + // Demonstrate using a mixture of flags among available sort-related flags: + // - ImGuiTableColumnFlags_DefaultSort + // - ImGuiTableColumnFlags_NoSort / ImGuiTableColumnFlags_NoSortAscending / ImGuiTableColumnFlags_NoSortDescending + // - ImGuiTableColumnFlags_PreferSortAscending / ImGuiTableColumnFlags_PreferSortDescending + ImGui::TableSetupColumn("ID", ImGuiTableColumnFlags_DefaultSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_ID); + ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Name); + ImGui::TableSetupColumn("Action", ImGuiTableColumnFlags_NoSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Action); + ImGui::TableSetupColumn("Quantity", ImGuiTableColumnFlags_PreferSortDescending | ImGuiTableColumnFlags_WidthStretch, 0.0f, MyItemColumnID_Quantity); + ImGui::TableSetupScrollFreeze(0, 1); // Make row always visible + ImGui::TableHeadersRow(); + + // Sort our data if sort specs have been changed! + if (ImGuiTableSortSpecs* sort_specs = ImGui::TableGetSortSpecs()) + if (sort_specs->SpecsDirty) + { + MyItem::SortWithSortSpecs(sort_specs, items.Data, items.Size); + sort_specs->SpecsDirty = false; + } + + // Demonstrate using clipper for large vertical lists + ImGuiListClipper clipper; + clipper.Begin(items.Size); + while (clipper.Step()) + for (int row_n = clipper.DisplayStart; row_n < clipper.DisplayEnd; row_n++) + { + // Display a data item + MyItem* item = &items[row_n]; + ImGui::PushID(item->ID); + ImGui::TableNextRow(); + ImGui::TableNextColumn(); + ImGui::Text("%04d", item->ID); + ImGui::TableNextColumn(); + ImGui::TextUnformatted(item->Name); + ImGui::TableNextColumn(); + ImGui::SmallButton("None"); + ImGui::TableNextColumn(); + ImGui::Text("%d", item->Quantity); + ImGui::PopID(); + } + ImGui::EndTable(); + } + ImGui::TreePop(); + } + + // In this example we'll expose most table flags and settings. + // For specific flags and settings refer to the corresponding section for more detailed explanation. + // This section is mostly useful to experiment with combining certain flags or settings with each others. + //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // [DEBUG] + if (open_action != -1) + ImGui::SetNextItemOpen(open_action != 0); + IMGUI_DEMO_MARKER("Tables/Advanced"); + if (ImGui::TreeNode("Advanced")) + { + static ImGuiTableFlags flags = + ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable + | ImGuiTableFlags_Sortable | ImGuiTableFlags_SortMulti + | ImGuiTableFlags_RowBg | ImGuiTableFlags_Borders | ImGuiTableFlags_NoBordersInBody + | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY + | ImGuiTableFlags_SizingFixedFit; + static ImGuiTableColumnFlags columns_base_flags = ImGuiTableColumnFlags_None; + + enum ContentsType { CT_Text, CT_Button, CT_SmallButton, CT_FillButton, CT_Selectable, CT_SelectableSpanRow }; + static int contents_type = CT_SelectableSpanRow; + const char* contents_type_names[] = { "Text", "Button", "SmallButton", "FillButton", "Selectable", "Selectable (span row)" }; + static int freeze_cols = 1; + static int freeze_rows = 1; + static int items_count = IM_ARRAYSIZE(template_items_names) * 2; + static ImVec2 outer_size_value = ImVec2(0.0f, TEXT_BASE_HEIGHT * 12); + static float row_min_height = 0.0f; // Auto + static float inner_width_with_scroll = 0.0f; // Auto-extend + static bool outer_size_enabled = true; + static bool show_headers = true; + static bool show_wrapped_text = false; + //static ImGuiTextFilter filter; + //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // FIXME-TABLE: Enabling this results in initial clipped first pass on table which tend to affect column sizing + if (ImGui::TreeNode("Options")) + { + // Make the UI compact because there are so many fields + PushStyleCompact(); + ImGui::PushItemWidth(TEXT_BASE_WIDTH * 28.0f); + + if (ImGui::TreeNodeEx("Features:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); + ImGui::CheckboxFlags("ImGuiTableFlags_Reorderable", &flags, ImGuiTableFlags_Reorderable); + ImGui::CheckboxFlags("ImGuiTableFlags_Hideable", &flags, ImGuiTableFlags_Hideable); + ImGui::CheckboxFlags("ImGuiTableFlags_Sortable", &flags, ImGuiTableFlags_Sortable); + ImGui::CheckboxFlags("ImGuiTableFlags_NoSavedSettings", &flags, ImGuiTableFlags_NoSavedSettings); + ImGui::CheckboxFlags("ImGuiTableFlags_ContextMenuInBody", &flags, ImGuiTableFlags_ContextMenuInBody); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Decorations:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags, ImGuiTableFlags_BordersOuterV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags, ImGuiTableFlags_BordersInnerV); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags, ImGuiTableFlags_BordersH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterH", &flags, ImGuiTableFlags_BordersOuterH); + ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerH", &flags, ImGuiTableFlags_BordersInnerH); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appear in Headers"); + ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers)"); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Sizing:", ImGuiTreeNodeFlags_DefaultOpen)) + { + EditTableSizingFlags(&flags); + ImGui::SameLine(); HelpMarker("In the Advanced demo we override the policy of each column so those table-wide settings have less effect that typical."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); + ImGui::SameLine(); HelpMarker("Make outer width auto-fit to columns, overriding outer_size.x value.\n\nOnly available when ScrollX/ScrollY are disabled and Stretch columns are not used."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendY", &flags, ImGuiTableFlags_NoHostExtendY); + ImGui::SameLine(); HelpMarker("Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit).\n\nOnly available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoKeepColumnsVisible", &flags, ImGuiTableFlags_NoKeepColumnsVisible); + ImGui::SameLine(); HelpMarker("Only available if ScrollX is disabled."); + ImGui::CheckboxFlags("ImGuiTableFlags_PreciseWidths", &flags, ImGuiTableFlags_PreciseWidths); + ImGui::SameLine(); HelpMarker("Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth."); + ImGui::CheckboxFlags("ImGuiTableFlags_NoClip", &flags, ImGuiTableFlags_NoClip); + ImGui::SameLine(); HelpMarker("Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with ScrollFreeze options."); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Padding:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_PadOuterX", &flags, ImGuiTableFlags_PadOuterX); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadOuterX", &flags, ImGuiTableFlags_NoPadOuterX); + ImGui::CheckboxFlags("ImGuiTableFlags_NoPadInnerX", &flags, ImGuiTableFlags_NoPadInnerX); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Scrolling:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); + ImGui::SameLine(); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_cols", &freeze_cols, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); + ImGui::SameLine(); + ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); + ImGui::DragInt("freeze_rows", &freeze_rows, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Sorting:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::CheckboxFlags("ImGuiTableFlags_SortMulti", &flags, ImGuiTableFlags_SortMulti); + ImGui::SameLine(); HelpMarker("When sorting is enabled: hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1)."); + ImGui::CheckboxFlags("ImGuiTableFlags_SortTristate", &flags, ImGuiTableFlags_SortTristate); + ImGui::SameLine(); HelpMarker("When sorting is enabled: allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0)."); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Headers:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::Checkbox("show_headers", &show_headers); + ImGui::CheckboxFlags("ImGuiTableFlags_HighlightHoveredColumn", &flags, ImGuiTableFlags_HighlightHoveredColumn); + ImGui::CheckboxFlags("ImGuiTableColumnFlags_AngledHeader", &columns_base_flags, ImGuiTableColumnFlags_AngledHeader); + ImGui::SameLine(); HelpMarker("Enable AngledHeader on all columns. Best enabled on selected narrow columns (see \"Angled headers\" section of the demo)."); + ImGui::TreePop(); + } + + if (ImGui::TreeNodeEx("Other:", ImGuiTreeNodeFlags_DefaultOpen)) + { + ImGui::Checkbox("show_wrapped_text", &show_wrapped_text); + + ImGui::DragFloat2("##OuterSize", &outer_size_value.x); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + ImGui::Checkbox("outer_size", &outer_size_enabled); + ImGui::SameLine(); + HelpMarker("If scrolling is disabled (ScrollX and ScrollY not set):\n" + "- The table is output directly in the parent window.\n" + "- OuterSize.x < 0.0f will right-align the table.\n" + "- OuterSize.x = 0.0f will narrow fit the table unless there are any Stretch columns.\n" + "- OuterSize.y then becomes the minimum size for the table, which will extend vertically if there are more rows (unless NoHostExtendY is set)."); + + // From a user point of view we will tend to use 'inner_width' differently depending on whether our table is embedding scrolling. + // To facilitate toying with this demo we will actually pass 0.0f to the BeginTable() when ScrollX is disabled. + ImGui::DragFloat("inner_width (when ScrollX active)", &inner_width_with_scroll, 1.0f, 0.0f, FLT_MAX); + + ImGui::DragFloat("row_min_height", &row_min_height, 1.0f, 0.0f, FLT_MAX); + ImGui::SameLine(); HelpMarker("Specify height of the Selectable item."); + + ImGui::DragInt("items_count", &items_count, 0.1f, 0, 9999); + ImGui::Combo("items_type (first column)", &contents_type, contents_type_names, IM_ARRAYSIZE(contents_type_names)); + //filter.Draw("filter"); + ImGui::TreePop(); + } + + ImGui::PopItemWidth(); + PopStyleCompact(); + ImGui::Spacing(); + ImGui::TreePop(); + } + + // Update item list if we changed the number of items + static ImVector items; + static ImVector selection; + static bool items_need_sort = false; + if (items.Size != items_count) + { + items.resize(items_count, MyItem()); + for (int n = 0; n < items_count; n++) + { + const int template_n = n % IM_ARRAYSIZE(template_items_names); + MyItem& item = items[n]; + item.ID = n; + item.Name = template_items_names[template_n]; + item.Quantity = (template_n == 3) ? 10 : (template_n == 4) ? 20 : 0; // Assign default quantities + } + } + + const ImDrawList* parent_draw_list = ImGui::GetWindowDrawList(); + const int parent_draw_list_draw_cmd_count = parent_draw_list->CmdBuffer.Size; + ImVec2 table_scroll_cur, table_scroll_max; // For debug display + const ImDrawList* table_draw_list = NULL; // " + + // Submit table + const float inner_width_to_use = (flags & ImGuiTableFlags_ScrollX) ? inner_width_with_scroll : 0.0f; + if (ImGui::BeginTable("table_advanced", 6, flags, outer_size_enabled ? outer_size_value : ImVec2(0, 0), inner_width_to_use)) + { + // Declare columns + // We use the "user_id" parameter of TableSetupColumn() to specify a user id that will be stored in the sort specifications. + // This is so our sort function can identify a column given our own identifier. We could also identify them based on their index! + ImGui::TableSetupColumn("ID", columns_base_flags | ImGuiTableColumnFlags_DefaultSort | ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_NoHide, 0.0f, MyItemColumnID_ID); + ImGui::TableSetupColumn("Name", columns_base_flags | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Name); + ImGui::TableSetupColumn("Action", columns_base_flags | ImGuiTableColumnFlags_NoSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Action); + ImGui::TableSetupColumn("Quantity", columns_base_flags | ImGuiTableColumnFlags_PreferSortDescending, 0.0f, MyItemColumnID_Quantity); + ImGui::TableSetupColumn("Description", columns_base_flags | ((flags & ImGuiTableFlags_NoHostExtendX) ? 0 : ImGuiTableColumnFlags_WidthStretch), 0.0f, MyItemColumnID_Description); + ImGui::TableSetupColumn("Hidden", columns_base_flags | ImGuiTableColumnFlags_DefaultHide | ImGuiTableColumnFlags_NoSort); + ImGui::TableSetupScrollFreeze(freeze_cols, freeze_rows); + + // Sort our data if sort specs have been changed! + ImGuiTableSortSpecs* sort_specs = ImGui::TableGetSortSpecs(); + if (sort_specs && sort_specs->SpecsDirty) + items_need_sort = true; + if (sort_specs && items_need_sort && items.Size > 1) + { + MyItem::SortWithSortSpecs(sort_specs, items.Data, items.Size); + sort_specs->SpecsDirty = false; + } + items_need_sort = false; + + // Take note of whether we are currently sorting based on the Quantity field, + // we will use this to trigger sorting when we know the data of this column has been modified. + const bool sorts_specs_using_quantity = (ImGui::TableGetColumnFlags(3) & ImGuiTableColumnFlags_IsSorted) != 0; + + // Show headers + if (show_headers && (columns_base_flags & ImGuiTableColumnFlags_AngledHeader) != 0) + ImGui::TableAngledHeadersRow(); + if (show_headers) + ImGui::TableHeadersRow(); + + // Show data + // FIXME-TABLE FIXME-NAV: How we can get decent up/down even though we have the buttons here? + ImGui::PushButtonRepeat(true); +#if 1 + // Demonstrate using clipper for large vertical lists + ImGuiListClipper clipper; + clipper.Begin(items.Size); + while (clipper.Step()) + { + for (int row_n = clipper.DisplayStart; row_n < clipper.DisplayEnd; row_n++) +#else + // Without clipper + { + for (int row_n = 0; row_n < items.Size; row_n++) +#endif + { + MyItem* item = &items[row_n]; + //if (!filter.PassFilter(item->Name)) + // continue; + + const bool item_is_selected = selection.contains(item->ID); + ImGui::PushID(item->ID); + ImGui::TableNextRow(ImGuiTableRowFlags_None, row_min_height); + + // For the demo purpose we can select among different type of items submitted in the first column + ImGui::TableSetColumnIndex(0); + char label[32]; + sprintf(label, "%04d", item->ID); + if (contents_type == CT_Text) + ImGui::TextUnformatted(label); + else if (contents_type == CT_Button) + ImGui::Button(label); + else if (contents_type == CT_SmallButton) + ImGui::SmallButton(label); + else if (contents_type == CT_FillButton) + ImGui::Button(label, ImVec2(-FLT_MIN, 0.0f)); + else if (contents_type == CT_Selectable || contents_type == CT_SelectableSpanRow) + { + ImGuiSelectableFlags selectable_flags = (contents_type == CT_SelectableSpanRow) ? ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap : ImGuiSelectableFlags_None; + if (ImGui::Selectable(label, item_is_selected, selectable_flags, ImVec2(0, row_min_height))) + { + if (ImGui::GetIO().KeyCtrl) + { + if (item_is_selected) + selection.find_erase_unsorted(item->ID); + else + selection.push_back(item->ID); + } + else + { + selection.clear(); + selection.push_back(item->ID); + } + } + } + + if (ImGui::TableSetColumnIndex(1)) + ImGui::TextUnformatted(item->Name); + + // Here we demonstrate marking our data set as needing to be sorted again if we modified a quantity, + // and we are currently sorting on the column showing the Quantity. + // To avoid triggering a sort while holding the button, we only trigger it when the button has been released. + // You will probably need a more advanced system in your code if you want to automatically sort when a specific entry changes. + if (ImGui::TableSetColumnIndex(2)) + { + if (ImGui::SmallButton("Chop")) { item->Quantity += 1; } + if (sorts_specs_using_quantity && ImGui::IsItemDeactivated()) { items_need_sort = true; } + ImGui::SameLine(); + if (ImGui::SmallButton("Eat")) { item->Quantity -= 1; } + if (sorts_specs_using_quantity && ImGui::IsItemDeactivated()) { items_need_sort = true; } + } + + if (ImGui::TableSetColumnIndex(3)) + ImGui::Text("%d", item->Quantity); + + ImGui::TableSetColumnIndex(4); + if (show_wrapped_text) + ImGui::TextWrapped("Lorem ipsum dolor sit amet"); + else + ImGui::Text("Lorem ipsum dolor sit amet"); + + if (ImGui::TableSetColumnIndex(5)) + ImGui::Text("1234"); + + ImGui::PopID(); + } + } + ImGui::PopButtonRepeat(); + + // Store some info to display debug details below + table_scroll_cur = ImVec2(ImGui::GetScrollX(), ImGui::GetScrollY()); + table_scroll_max = ImVec2(ImGui::GetScrollMaxX(), ImGui::GetScrollMaxY()); + table_draw_list = ImGui::GetWindowDrawList(); + ImGui::EndTable(); + } + static bool show_debug_details = false; + ImGui::Checkbox("Debug details", &show_debug_details); + if (show_debug_details && table_draw_list) + { + ImGui::SameLine(0.0f, 0.0f); + const int table_draw_list_draw_cmd_count = table_draw_list->CmdBuffer.Size; + if (table_draw_list == parent_draw_list) + ImGui::Text(": DrawCmd: +%d (in same window)", + table_draw_list_draw_cmd_count - parent_draw_list_draw_cmd_count); + else + ImGui::Text(": DrawCmd: +%d (in child window), Scroll: (%.f/%.f) (%.f/%.f)", + table_draw_list_draw_cmd_count - 1, table_scroll_cur.x, table_scroll_max.x, table_scroll_cur.y, table_scroll_max.y); + } + ImGui::TreePop(); + } + + ImGui::PopID(); + + ShowDemoWindowColumns(); + + if (disable_indent) + ImGui::PopStyleVar(); +} + +// Demonstrate old/legacy Columns API! +// [2020: Columns are under-featured and not maintained. Prefer using the more flexible and powerful BeginTable() API!] +static void ShowDemoWindowColumns() +{ + IMGUI_DEMO_MARKER("Columns (legacy API)"); + bool open = ImGui::TreeNode("Legacy Columns API"); + ImGui::SameLine(); + HelpMarker("Columns() is an old API! Prefer using the more flexible and powerful BeginTable() API!"); + if (!open) + return; + + // Basic columns + IMGUI_DEMO_MARKER("Columns (legacy API)/Basic"); + if (ImGui::TreeNode("Basic")) + { + ImGui::Text("Without border:"); + ImGui::Columns(3, "mycolumns3", false); // 3-ways, no border + ImGui::Separator(); + for (int n = 0; n < 14; n++) + { + char label[32]; + sprintf(label, "Item %d", n); + if (ImGui::Selectable(label)) {} + //if (ImGui::Button(label, ImVec2(-FLT_MIN,0.0f))) {} + ImGui::NextColumn(); + } + ImGui::Columns(1); + ImGui::Separator(); + + ImGui::Text("With border:"); + ImGui::Columns(4, "mycolumns"); // 4-ways, with border + ImGui::Separator(); + ImGui::Text("ID"); ImGui::NextColumn(); + ImGui::Text("Name"); ImGui::NextColumn(); + ImGui::Text("Path"); ImGui::NextColumn(); + ImGui::Text("Hovered"); ImGui::NextColumn(); + ImGui::Separator(); + const char* names[3] = { "One", "Two", "Three" }; + const char* paths[3] = { "/path/one", "/path/two", "/path/three" }; + static int selected = -1; + for (int i = 0; i < 3; i++) + { + char label[32]; + sprintf(label, "%04d", i); + if (ImGui::Selectable(label, selected == i, ImGuiSelectableFlags_SpanAllColumns)) + selected = i; + bool hovered = ImGui::IsItemHovered(); + ImGui::NextColumn(); + ImGui::Text(names[i]); ImGui::NextColumn(); + ImGui::Text(paths[i]); ImGui::NextColumn(); + ImGui::Text("%d", hovered); ImGui::NextColumn(); + } + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Columns (legacy API)/Borders"); + if (ImGui::TreeNode("Borders")) + { + // NB: Future columns API should allow automatic horizontal borders. + static bool h_borders = true; + static bool v_borders = true; + static int columns_count = 4; + const int lines_count = 3; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::DragInt("##columns_count", &columns_count, 0.1f, 2, 10, "%d columns"); + if (columns_count < 2) + columns_count = 2; + ImGui::SameLine(); + ImGui::Checkbox("horizontal", &h_borders); + ImGui::SameLine(); + ImGui::Checkbox("vertical", &v_borders); + ImGui::Columns(columns_count, NULL, v_borders); + for (int i = 0; i < columns_count * lines_count; i++) + { + if (h_borders && ImGui::GetColumnIndex() == 0) + ImGui::Separator(); + ImGui::Text("%c%c%c", 'a' + i, 'a' + i, 'a' + i); + ImGui::Text("Width %.2f", ImGui::GetColumnWidth()); + ImGui::Text("Avail %.2f", ImGui::GetContentRegionAvail().x); + ImGui::Text("Offset %.2f", ImGui::GetColumnOffset()); + ImGui::Text("Long text that is likely to clip"); + ImGui::Button("Button", ImVec2(-FLT_MIN, 0.0f)); + ImGui::NextColumn(); + } + ImGui::Columns(1); + if (h_borders) + ImGui::Separator(); + ImGui::TreePop(); + } + + // Create multiple items in a same cell before switching to next column + IMGUI_DEMO_MARKER("Columns (legacy API)/Mixed items"); + if (ImGui::TreeNode("Mixed items")) + { + ImGui::Columns(3, "mixed"); + ImGui::Separator(); + + ImGui::Text("Hello"); + ImGui::Button("Banana"); + ImGui::NextColumn(); + + ImGui::Text("ImGui"); + ImGui::Button("Apple"); + static float foo = 1.0f; + ImGui::InputFloat("red", &foo, 0.05f, 0, "%.3f"); + ImGui::Text("An extra line here."); + ImGui::NextColumn(); + + ImGui::Text("Sailor"); + ImGui::Button("Corniflower"); + static float bar = 1.0f; + ImGui::InputFloat("blue", &bar, 0.05f, 0, "%.3f"); + ImGui::NextColumn(); + + if (ImGui::CollapsingHeader("Category A")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + if (ImGui::CollapsingHeader("Category B")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + if (ImGui::CollapsingHeader("Category C")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + // Word wrapping + IMGUI_DEMO_MARKER("Columns (legacy API)/Word-wrapping"); + if (ImGui::TreeNode("Word-wrapping")) + { + ImGui::Columns(2, "word-wrapping"); + ImGui::Separator(); + ImGui::TextWrapped("The quick brown fox jumps over the lazy dog."); + ImGui::TextWrapped("Hello Left"); + ImGui::NextColumn(); + ImGui::TextWrapped("The quick brown fox jumps over the lazy dog."); + ImGui::TextWrapped("Hello Right"); + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Columns (legacy API)/Horizontal Scrolling"); + if (ImGui::TreeNode("Horizontal Scrolling")) + { + ImGui::SetNextWindowContentSize(ImVec2(1500.0f, 0.0f)); + ImVec2 child_size = ImVec2(0, ImGui::GetFontSize() * 20.0f); + ImGui::BeginChild("##ScrollingRegion", child_size, false, ImGuiWindowFlags_HorizontalScrollbar); + ImGui::Columns(10); + + // Also demonstrate using clipper for large vertical lists + int ITEMS_COUNT = 2000; + ImGuiListClipper clipper; + clipper.Begin(ITEMS_COUNT); + while (clipper.Step()) + { + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + for (int j = 0; j < 10; j++) + { + ImGui::Text("Line %d Column %d...", i, j); + ImGui::NextColumn(); + } + } + ImGui::Columns(1); + ImGui::EndChild(); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Columns (legacy API)/Tree"); + if (ImGui::TreeNode("Tree")) + { + ImGui::Columns(2, "tree", true); + for (int x = 0; x < 3; x++) + { + bool open1 = ImGui::TreeNode((void*)(intptr_t)x, "Node%d", x); + ImGui::NextColumn(); + ImGui::Text("Node contents"); + ImGui::NextColumn(); + if (open1) + { + for (int y = 0; y < 3; y++) + { + bool open2 = ImGui::TreeNode((void*)(intptr_t)y, "Node%d.%d", x, y); + ImGui::NextColumn(); + ImGui::Text("Node contents"); + if (open2) + { + ImGui::Text("Even more contents"); + if (ImGui::TreeNode("Tree in column")) + { + ImGui::Text("The quick brown fox jumps over the lazy dog"); + ImGui::TreePop(); + } + } + ImGui::NextColumn(); + if (open2) + ImGui::TreePop(); + } + ImGui::TreePop(); + } + } + ImGui::Columns(1); + ImGui::TreePop(); + } + + ImGui::TreePop(); +} + +static void ShowDemoWindowInputs() +{ + IMGUI_DEMO_MARKER("Inputs & Focus"); + if (ImGui::CollapsingHeader("Inputs & Focus")) + { + ImGuiIO& io = ImGui::GetIO(); + + // Display inputs submitted to ImGuiIO + IMGUI_DEMO_MARKER("Inputs & Focus/Inputs"); + ImGui::SetNextItemOpen(true, ImGuiCond_Once); + if (ImGui::TreeNode("Inputs")) + { + HelpMarker( + "This is a simplified view. See more detailed input state:\n" + "- in 'Tools->Metrics/Debugger->Inputs'.\n" + "- in 'Tools->Debug Log->IO'."); + if (ImGui::IsMousePosValid()) + ImGui::Text("Mouse pos: (%g, %g)", io.MousePos.x, io.MousePos.y); + else + ImGui::Text("Mouse pos: "); + ImGui::Text("Mouse delta: (%g, %g)", io.MouseDelta.x, io.MouseDelta.y); + ImGui::Text("Mouse down:"); + for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) if (ImGui::IsMouseDown(i)) { ImGui::SameLine(); ImGui::Text("b%d (%.02f secs)", i, io.MouseDownDuration[i]); } + ImGui::Text("Mouse wheel: %.1f", io.MouseWheel); + + // We iterate both legacy native range and named ImGuiKey ranges, which is a little odd but this allows displaying the data for old/new backends. + // User code should never have to go through such hoops! You can generally iterate between ImGuiKey_NamedKey_BEGIN and ImGuiKey_NamedKey_END. +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey) { return false; } }; + ImGuiKey start_key = ImGuiKey_NamedKey_BEGIN; +#else + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey key) { return key < 512 && ImGui::GetIO().KeyMap[key] != -1; } }; // Hide Native<>ImGuiKey duplicates when both exists in the array + ImGuiKey start_key = (ImGuiKey)0; +#endif + ImGui::Text("Keys down:"); for (ImGuiKey key = start_key; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key) || !ImGui::IsKeyDown(key)) continue; ImGui::SameLine(); ImGui::Text((key < ImGuiKey_NamedKey_BEGIN) ? "\"%s\"" : "\"%s\" %d", ImGui::GetKeyName(key), key); } + ImGui::Text("Keys mods: %s%s%s%s", io.KeyCtrl ? "CTRL " : "", io.KeyShift ? "SHIFT " : "", io.KeyAlt ? "ALT " : "", io.KeySuper ? "SUPER " : ""); + ImGui::Text("Chars queue:"); for (int i = 0; i < io.InputQueueCharacters.Size; i++) { ImWchar c = io.InputQueueCharacters[i]; ImGui::SameLine(); ImGui::Text("\'%c\' (0x%04X)", (c > ' ' && c <= 255) ? (char)c : '?', c); } // FIXME: We should convert 'c' to UTF-8 here but the functions are not public. + + ImGui::TreePop(); + } + + // Display ImGuiIO output flags + IMGUI_DEMO_MARKER("Inputs & Focus/Outputs"); + ImGui::SetNextItemOpen(true, ImGuiCond_Once); + if (ImGui::TreeNode("Outputs")) + { + HelpMarker( + "The value of io.WantCaptureMouse and io.WantCaptureKeyboard are normally set by Dear ImGui " + "to instruct your application of how to route inputs. Typically, when a value is true, it means " + "Dear ImGui wants the corresponding inputs and we expect the underlying application to ignore them.\n\n" + "The most typical case is: when hovering a window, Dear ImGui set io.WantCaptureMouse to true, " + "and underlying application should ignore mouse inputs (in practice there are many and more subtle " + "rules leading to how those flags are set)."); + ImGui::Text("io.WantCaptureMouse: %d", io.WantCaptureMouse); + ImGui::Text("io.WantCaptureMouseUnlessPopupClose: %d", io.WantCaptureMouseUnlessPopupClose); + ImGui::Text("io.WantCaptureKeyboard: %d", io.WantCaptureKeyboard); + ImGui::Text("io.WantTextInput: %d", io.WantTextInput); + ImGui::Text("io.WantSetMousePos: %d", io.WantSetMousePos); + ImGui::Text("io.NavActive: %d, io.NavVisible: %d", io.NavActive, io.NavVisible); + + IMGUI_DEMO_MARKER("Inputs & Focus/Outputs/WantCapture override"); + if (ImGui::TreeNode("WantCapture override")) + { + HelpMarker( + "Hovering the colored canvas will override io.WantCaptureXXX fields.\n" + "Notice how normally (when set to none), the value of io.WantCaptureKeyboard would be false when hovering and true when clicking."); + static int capture_override_mouse = -1; + static int capture_override_keyboard = -1; + const char* capture_override_desc[] = { "None", "Set to false", "Set to true" }; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 15); + ImGui::SliderInt("SetNextFrameWantCaptureMouse() on hover", &capture_override_mouse, -1, +1, capture_override_desc[capture_override_mouse + 1], ImGuiSliderFlags_AlwaysClamp); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 15); + ImGui::SliderInt("SetNextFrameWantCaptureKeyboard() on hover", &capture_override_keyboard, -1, +1, capture_override_desc[capture_override_keyboard + 1], ImGuiSliderFlags_AlwaysClamp); + + ImGui::ColorButton("##panel", ImVec4(0.7f, 0.1f, 0.7f, 1.0f), ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoDragDrop, ImVec2(128.0f, 96.0f)); // Dummy item + if (ImGui::IsItemHovered() && capture_override_mouse != -1) + ImGui::SetNextFrameWantCaptureMouse(capture_override_mouse == 1); + if (ImGui::IsItemHovered() && capture_override_keyboard != -1) + ImGui::SetNextFrameWantCaptureKeyboard(capture_override_keyboard == 1); + + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + // Display mouse cursors + IMGUI_DEMO_MARKER("Inputs & Focus/Mouse Cursors"); + if (ImGui::TreeNode("Mouse Cursors")) + { + const char* mouse_cursors_names[] = { "Arrow", "TextInput", "ResizeAll", "ResizeNS", "ResizeEW", "ResizeNESW", "ResizeNWSE", "Hand", "NotAllowed" }; + IM_ASSERT(IM_ARRAYSIZE(mouse_cursors_names) == ImGuiMouseCursor_COUNT); + + ImGuiMouseCursor current = ImGui::GetMouseCursor(); + ImGui::Text("Current mouse cursor = %d: %s", current, mouse_cursors_names[current]); + ImGui::BeginDisabled(true); + ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", &io.BackendFlags, ImGuiBackendFlags_HasMouseCursors); + ImGui::EndDisabled(); + + ImGui::Text("Hover to see mouse cursors:"); + ImGui::SameLine(); HelpMarker( + "Your application can render a different mouse cursor based on what ImGui::GetMouseCursor() returns. " + "If software cursor rendering (io.MouseDrawCursor) is set ImGui will draw the right cursor for you, " + "otherwise your backend needs to handle it."); + for (int i = 0; i < ImGuiMouseCursor_COUNT; i++) + { + char label[32]; + sprintf(label, "Mouse cursor %d: %s", i, mouse_cursors_names[i]); + ImGui::Bullet(); ImGui::Selectable(label, false); + if (ImGui::IsItemHovered()) + ImGui::SetMouseCursor(i); + } + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Inputs & Focus/Tabbing"); + if (ImGui::TreeNode("Tabbing")) + { + ImGui::Text("Use TAB/SHIFT+TAB to cycle through keyboard editable fields."); + static char buf[32] = "hello"; + ImGui::InputText("1", buf, IM_ARRAYSIZE(buf)); + ImGui::InputText("2", buf, IM_ARRAYSIZE(buf)); + ImGui::InputText("3", buf, IM_ARRAYSIZE(buf)); + ImGui::PushTabStop(false); + ImGui::InputText("4 (tab skip)", buf, IM_ARRAYSIZE(buf)); + ImGui::SameLine(); HelpMarker("Item won't be cycled through when using TAB or Shift+Tab."); + ImGui::PopTabStop(); + ImGui::InputText("5", buf, IM_ARRAYSIZE(buf)); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Inputs & Focus/Focus from code"); + if (ImGui::TreeNode("Focus from code")) + { + bool focus_1 = ImGui::Button("Focus on 1"); ImGui::SameLine(); + bool focus_2 = ImGui::Button("Focus on 2"); ImGui::SameLine(); + bool focus_3 = ImGui::Button("Focus on 3"); + int has_focus = 0; + static char buf[128] = "click on a button to set focus"; + + if (focus_1) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("1", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 1; + + if (focus_2) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("2", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 2; + + ImGui::PushTabStop(false); + if (focus_3) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("3 (tab skip)", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 3; + ImGui::SameLine(); HelpMarker("Item won't be cycled through when using TAB or Shift+Tab."); + ImGui::PopTabStop(); + + if (has_focus) + ImGui::Text("Item with focus: %d", has_focus); + else + ImGui::Text("Item with focus: "); + + // Use >= 0 parameter to SetKeyboardFocusHere() to focus an upcoming item + static float f3[3] = { 0.0f, 0.0f, 0.0f }; + int focus_ahead = -1; + if (ImGui::Button("Focus on X")) { focus_ahead = 0; } ImGui::SameLine(); + if (ImGui::Button("Focus on Y")) { focus_ahead = 1; } ImGui::SameLine(); + if (ImGui::Button("Focus on Z")) { focus_ahead = 2; } + if (focus_ahead != -1) ImGui::SetKeyboardFocusHere(focus_ahead); + ImGui::SliderFloat3("Float3", &f3[0], 0.0f, 1.0f); + + ImGui::TextWrapped("NB: Cursor & selection are preserved when refocusing last used item in code."); + ImGui::TreePop(); + } + + IMGUI_DEMO_MARKER("Inputs & Focus/Dragging"); + if (ImGui::TreeNode("Dragging")) + { + ImGui::TextWrapped("You can use ImGui::GetMouseDragDelta(0) to query for the dragged amount on any widget."); + for (int button = 0; button < 3; button++) + { + ImGui::Text("IsMouseDragging(%d):", button); + ImGui::Text(" w/ default threshold: %d,", ImGui::IsMouseDragging(button)); + ImGui::Text(" w/ zero threshold: %d,", ImGui::IsMouseDragging(button, 0.0f)); + ImGui::Text(" w/ large threshold: %d,", ImGui::IsMouseDragging(button, 20.0f)); + } + + ImGui::Button("Drag Me"); + if (ImGui::IsItemActive()) + ImGui::GetForegroundDrawList()->AddLine(io.MouseClickedPos[0], io.MousePos, ImGui::GetColorU32(ImGuiCol_Button), 4.0f); // Draw a line between the button and the mouse cursor + + // Drag operations gets "unlocked" when the mouse has moved past a certain threshold + // (the default threshold is stored in io.MouseDragThreshold). You can request a lower or higher + // threshold using the second parameter of IsMouseDragging() and GetMouseDragDelta(). + ImVec2 value_raw = ImGui::GetMouseDragDelta(0, 0.0f); + ImVec2 value_with_lock_threshold = ImGui::GetMouseDragDelta(0); + ImVec2 mouse_delta = io.MouseDelta; + ImGui::Text("GetMouseDragDelta(0):"); + ImGui::Text(" w/ default threshold: (%.1f, %.1f)", value_with_lock_threshold.x, value_with_lock_threshold.y); + ImGui::Text(" w/ zero threshold: (%.1f, %.1f)", value_raw.x, value_raw.y); + ImGui::Text("io.MouseDelta: (%.1f, %.1f)", mouse_delta.x, mouse_delta.y); + ImGui::TreePop(); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] About Window / ShowAboutWindow() +// Access from Dear ImGui Demo -> Tools -> About +//----------------------------------------------------------------------------- + +void ImGui::ShowAboutWindow(bool* p_open) +{ + if (!ImGui::Begin("About Dear ImGui", p_open, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Tools/About Dear ImGui"); + ImGui::Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); + ImGui::Separator(); + ImGui::Text("By Omar Cornut and all Dear ImGui contributors."); + ImGui::Text("Dear ImGui is licensed under the MIT License, see LICENSE for more information."); + ImGui::Text("If your company uses this, please consider sponsoring the project!"); + + static bool show_config_info = false; + ImGui::Checkbox("Config/Build Information", &show_config_info); + if (show_config_info) + { + ImGuiIO& io = ImGui::GetIO(); + ImGuiStyle& style = ImGui::GetStyle(); + + bool copy_to_clipboard = ImGui::Button("Copy to clipboard"); + ImVec2 child_size = ImVec2(0, ImGui::GetTextLineHeightWithSpacing() * 18); + ImGui::BeginChildFrame(ImGui::GetID("cfg_infos"), child_size, ImGuiWindowFlags_NoMove); + if (copy_to_clipboard) + { + ImGui::LogToClipboard(); + ImGui::LogText("```\n"); // Back quotes will make text appears without formatting when pasting on GitHub + } + + ImGui::Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); + ImGui::Separator(); + ImGui::Text("sizeof(size_t): %d, sizeof(ImDrawIdx): %d, sizeof(ImDrawVert): %d", (int)sizeof(size_t), (int)sizeof(ImDrawIdx), (int)sizeof(ImDrawVert)); + ImGui::Text("define: __cplusplus=%d", (int)__cplusplus); +#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_KEYIO"); +#endif +#ifdef IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_WIN32_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_FILE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_FILE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_ALLOCATORS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_ALLOCATORS"); +#endif +#ifdef IMGUI_USE_BGRA_PACKED_COLOR + ImGui::Text("define: IMGUI_USE_BGRA_PACKED_COLOR"); +#endif +#ifdef _WIN32 + ImGui::Text("define: _WIN32"); +#endif +#ifdef _WIN64 + ImGui::Text("define: _WIN64"); +#endif +#ifdef __linux__ + ImGui::Text("define: __linux__"); +#endif +#ifdef __APPLE__ + ImGui::Text("define: __APPLE__"); +#endif +#ifdef _MSC_VER + ImGui::Text("define: _MSC_VER=%d", _MSC_VER); +#endif +#ifdef _MSVC_LANG + ImGui::Text("define: _MSVC_LANG=%d", (int)_MSVC_LANG); +#endif +#ifdef __MINGW32__ + ImGui::Text("define: __MINGW32__"); +#endif +#ifdef __MINGW64__ + ImGui::Text("define: __MINGW64__"); +#endif +#ifdef __GNUC__ + ImGui::Text("define: __GNUC__=%d", (int)__GNUC__); +#endif +#ifdef __clang_version__ + ImGui::Text("define: __clang_version__=%s", __clang_version__); +#endif +#ifdef __EMSCRIPTEN__ + ImGui::Text("define: __EMSCRIPTEN__"); +#endif +#ifdef IMGUI_HAS_VIEWPORT + ImGui::Text("define: IMGUI_HAS_VIEWPORT"); +#endif +#ifdef IMGUI_HAS_DOCK + ImGui::Text("define: IMGUI_HAS_DOCK"); +#endif + ImGui::Separator(); + ImGui::Text("io.BackendPlatformName: %s", io.BackendPlatformName ? io.BackendPlatformName : "NULL"); + ImGui::Text("io.BackendRendererName: %s", io.BackendRendererName ? io.BackendRendererName : "NULL"); + ImGui::Text("io.ConfigFlags: 0x%08X", io.ConfigFlags); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) ImGui::Text(" NavEnableKeyboard"); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) ImGui::Text(" NavEnableGamepad"); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) ImGui::Text(" NavEnableSetMousePos"); + if (io.ConfigFlags & ImGuiConfigFlags_NavNoCaptureKeyboard) ImGui::Text(" NavNoCaptureKeyboard"); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) ImGui::Text(" NoMouse"); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) ImGui::Text(" NoMouseCursorChange"); + if (io.ConfigFlags & ImGuiConfigFlags_DockingEnable) ImGui::Text(" DockingEnable"); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) ImGui::Text(" ViewportsEnable"); + if (io.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleViewports) ImGui::Text(" DpiEnableScaleViewports"); + if (io.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleFonts) ImGui::Text(" DpiEnableScaleFonts"); + if (io.MouseDrawCursor) ImGui::Text("io.MouseDrawCursor"); + if (io.ConfigViewportsNoAutoMerge) ImGui::Text("io.ConfigViewportsNoAutoMerge"); + if (io.ConfigViewportsNoTaskBarIcon) ImGui::Text("io.ConfigViewportsNoTaskBarIcon"); + if (io.ConfigViewportsNoDecoration) ImGui::Text("io.ConfigViewportsNoDecoration"); + if (io.ConfigViewportsNoDefaultParent) ImGui::Text("io.ConfigViewportsNoDefaultParent"); + if (io.ConfigDockingNoSplit) ImGui::Text("io.ConfigDockingNoSplit"); + if (io.ConfigDockingWithShift) ImGui::Text("io.ConfigDockingWithShift"); + if (io.ConfigDockingAlwaysTabBar) ImGui::Text("io.ConfigDockingAlwaysTabBar"); + if (io.ConfigDockingTransparentPayload) ImGui::Text("io.ConfigDockingTransparentPayload"); + if (io.ConfigMacOSXBehaviors) ImGui::Text("io.ConfigMacOSXBehaviors"); + if (io.ConfigInputTextCursorBlink) ImGui::Text("io.ConfigInputTextCursorBlink"); + if (io.ConfigWindowsResizeFromEdges) ImGui::Text("io.ConfigWindowsResizeFromEdges"); + if (io.ConfigWindowsMoveFromTitleBarOnly) ImGui::Text("io.ConfigWindowsMoveFromTitleBarOnly"); + if (io.ConfigMemoryCompactTimer >= 0.0f) ImGui::Text("io.ConfigMemoryCompactTimer = %.1f", io.ConfigMemoryCompactTimer); + ImGui::Text("io.BackendFlags: 0x%08X", io.BackendFlags); + if (io.BackendFlags & ImGuiBackendFlags_HasGamepad) ImGui::Text(" HasGamepad"); + if (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) ImGui::Text(" HasMouseCursors"); + if (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos) ImGui::Text(" HasSetMousePos"); + if (io.BackendFlags & ImGuiBackendFlags_PlatformHasViewports) ImGui::Text(" PlatformHasViewports"); + if (io.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport)ImGui::Text(" HasMouseHoveredViewport"); + if (io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) ImGui::Text(" RendererHasVtxOffset"); + if (io.BackendFlags & ImGuiBackendFlags_RendererHasViewports) ImGui::Text(" RendererHasViewports"); + ImGui::Separator(); + ImGui::Text("io.Fonts: %d fonts, Flags: 0x%08X, TexSize: %d,%d", io.Fonts->Fonts.Size, io.Fonts->Flags, io.Fonts->TexWidth, io.Fonts->TexHeight); + ImGui::Text("io.DisplaySize: %.2f,%.2f", io.DisplaySize.x, io.DisplaySize.y); + ImGui::Text("io.DisplayFramebufferScale: %.2f,%.2f", io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + ImGui::Separator(); + ImGui::Text("style.WindowPadding: %.2f,%.2f", style.WindowPadding.x, style.WindowPadding.y); + ImGui::Text("style.WindowBorderSize: %.2f", style.WindowBorderSize); + ImGui::Text("style.FramePadding: %.2f,%.2f", style.FramePadding.x, style.FramePadding.y); + ImGui::Text("style.FrameRounding: %.2f", style.FrameRounding); + ImGui::Text("style.FrameBorderSize: %.2f", style.FrameBorderSize); + ImGui::Text("style.ItemSpacing: %.2f,%.2f", style.ItemSpacing.x, style.ItemSpacing.y); + ImGui::Text("style.ItemInnerSpacing: %.2f,%.2f", style.ItemInnerSpacing.x, style.ItemInnerSpacing.y); + + if (copy_to_clipboard) + { + ImGui::LogText("\n```\n"); + ImGui::LogFinish(); + } + ImGui::EndChildFrame(); + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Style Editor / ShowStyleEditor() +//----------------------------------------------------------------------------- +// - ShowFontSelector() +// - ShowStyleSelector() +// - ShowStyleEditor() +//----------------------------------------------------------------------------- + +// Forward declare ShowFontAtlas() which isn't worth putting in public API yet +namespace ImGui { IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); } + +// Demo helper function to select among loaded fonts. +// Here we use the regular BeginCombo()/EndCombo() api which is the more flexible one. +void ImGui::ShowFontSelector(const char* label) +{ + ImGuiIO& io = ImGui::GetIO(); + ImFont* font_current = ImGui::GetFont(); + if (ImGui::BeginCombo(label, font_current->GetDebugName())) + { + for (ImFont* font : io.Fonts->Fonts) + { + ImGui::PushID((void*)font); + if (ImGui::Selectable(font->GetDebugName(), font == font_current)) + io.FontDefault = font; + ImGui::PopID(); + } + ImGui::EndCombo(); + } + ImGui::SameLine(); + HelpMarker( + "- Load additional fonts with io.Fonts->AddFontFromFileTTF().\n" + "- The font atlas is built when calling io.Fonts->GetTexDataAsXXXX() or io.Fonts->Build().\n" + "- Read FAQ and docs/FONTS.md for more details.\n" + "- If you need to add/remove fonts at runtime (e.g. for DPI change), do it before calling NewFrame()."); +} + +// Demo helper function to select among default colors. See ShowStyleEditor() for more advanced options. +// Here we use the simplified Combo() api that packs items into a single literal string. +// Useful for quick combo boxes where the choices are known locally. +bool ImGui::ShowStyleSelector(const char* label) +{ + static int style_idx = -1; + if (ImGui::Combo(label, &style_idx, "Dark\0Light\0Classic\0")) + { + switch (style_idx) + { + case 0: ImGui::StyleColorsDark(); break; + case 1: ImGui::StyleColorsLight(); break; + case 2: ImGui::StyleColorsClassic(); break; + } + return true; + } + return false; +} + +void ImGui::ShowStyleEditor(ImGuiStyle* ref) +{ + IMGUI_DEMO_MARKER("Tools/Style Editor"); + // You can pass in a reference ImGuiStyle structure to compare to, revert to and save to + // (without a reference style pointer, we will use one compared locally as a reference) + ImGuiStyle& style = ImGui::GetStyle(); + static ImGuiStyle ref_saved_style; + + // Default to using internal storage as reference + static bool init = true; + if (init && ref == NULL) + ref_saved_style = style; + init = false; + if (ref == NULL) + ref = &ref_saved_style; + + ImGui::PushItemWidth(ImGui::GetWindowWidth() * 0.50f); + + if (ImGui::ShowStyleSelector("Colors##Selector")) + ref_saved_style = style; + ImGui::ShowFontSelector("Fonts##Selector"); + + // Simplified Settings (expose floating-pointer border sizes as boolean representing 0.0f or 1.0f) + if (ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f")) + style.GrabRounding = style.FrameRounding; // Make GrabRounding always the same value as FrameRounding + { bool border = (style.WindowBorderSize > 0.0f); if (ImGui::Checkbox("WindowBorder", &border)) { style.WindowBorderSize = border ? 1.0f : 0.0f; } } + ImGui::SameLine(); + { bool border = (style.FrameBorderSize > 0.0f); if (ImGui::Checkbox("FrameBorder", &border)) { style.FrameBorderSize = border ? 1.0f : 0.0f; } } + ImGui::SameLine(); + { bool border = (style.PopupBorderSize > 0.0f); if (ImGui::Checkbox("PopupBorder", &border)) { style.PopupBorderSize = border ? 1.0f : 0.0f; } } + + // Save/Revert button + if (ImGui::Button("Save Ref")) + *ref = ref_saved_style = style; + ImGui::SameLine(); + if (ImGui::Button("Revert Ref")) + style = *ref; + ImGui::SameLine(); + HelpMarker( + "Save/Revert in local non-persistent storage. Default Colors definition are not affected. " + "Use \"Export\" below to save them somewhere."); + + ImGui::Separator(); + + if (ImGui::BeginTabBar("##tabs", ImGuiTabBarFlags_None)) + { + if (ImGui::BeginTabItem("Sizes")) + { + ImGui::SeparatorText("Main"); + ImGui::SliderFloat2("WindowPadding", (float*)&style.WindowPadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("FramePadding", (float*)&style.FramePadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("ItemSpacing", (float*)&style.ItemSpacing, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("ItemInnerSpacing", (float*)&style.ItemInnerSpacing, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("TouchExtraPadding", (float*)&style.TouchExtraPadding, 0.0f, 10.0f, "%.0f"); + ImGui::SliderFloat("IndentSpacing", &style.IndentSpacing, 0.0f, 30.0f, "%.0f"); + ImGui::SliderFloat("ScrollbarSize", &style.ScrollbarSize, 1.0f, 20.0f, "%.0f"); + ImGui::SliderFloat("GrabMinSize", &style.GrabMinSize, 1.0f, 20.0f, "%.0f"); + + ImGui::SeparatorText("Borders"); + ImGui::SliderFloat("WindowBorderSize", &style.WindowBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("ChildBorderSize", &style.ChildBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("PopupBorderSize", &style.PopupBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("FrameBorderSize", &style.FrameBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("TabBorderSize", &style.TabBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("TabBarBorderSize", &style.TabBarBorderSize, 0.0f, 2.0f, "%.0f"); + + ImGui::SeparatorText("Rounding"); + ImGui::SliderFloat("WindowRounding", &style.WindowRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("ChildRounding", &style.ChildRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("PopupRounding", &style.PopupRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("ScrollbarRounding", &style.ScrollbarRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("GrabRounding", &style.GrabRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("TabRounding", &style.TabRounding, 0.0f, 12.0f, "%.0f"); + + ImGui::SeparatorText("Tables"); + ImGui::SliderFloat2("CellPadding", (float*)&style.CellPadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderAngle("TableAngledHeadersAngle", &style.TableAngledHeadersAngle, -50.0f, +50.0f); + + ImGui::SeparatorText("Widgets"); + ImGui::SliderFloat2("WindowTitleAlign", (float*)&style.WindowTitleAlign, 0.0f, 1.0f, "%.2f"); + int window_menu_button_position = style.WindowMenuButtonPosition + 1; + if (ImGui::Combo("WindowMenuButtonPosition", (int*)&window_menu_button_position, "None\0Left\0Right\0")) + style.WindowMenuButtonPosition = window_menu_button_position - 1; + ImGui::Combo("ColorButtonPosition", (int*)&style.ColorButtonPosition, "Left\0Right\0"); + ImGui::SliderFloat2("ButtonTextAlign", (float*)&style.ButtonTextAlign, 0.0f, 1.0f, "%.2f"); + ImGui::SameLine(); HelpMarker("Alignment applies when a button is larger than its text content."); + ImGui::SliderFloat2("SelectableTextAlign", (float*)&style.SelectableTextAlign, 0.0f, 1.0f, "%.2f"); + ImGui::SameLine(); HelpMarker("Alignment applies when a selectable is larger than its text content."); + ImGui::SliderFloat("SeparatorTextBorderSize", &style.SeparatorTextBorderSize, 0.0f, 10.0f, "%.0f"); + ImGui::SliderFloat2("SeparatorTextAlign", (float*)&style.SeparatorTextAlign, 0.0f, 1.0f, "%.2f"); + ImGui::SliderFloat2("SeparatorTextPadding", (float*)&style.SeparatorTextPadding, 0.0f, 40.0f, "%.0f"); + ImGui::SliderFloat("LogSliderDeadzone", &style.LogSliderDeadzone, 0.0f, 12.0f, "%.0f"); + + ImGui::SeparatorText("Docking"); + ImGui::SliderFloat("DockingSplitterSize", &style.DockingSeparatorSize, 0.0f, 12.0f, "%.0f"); + + ImGui::SeparatorText("Tooltips"); + for (int n = 0; n < 2; n++) + if (ImGui::TreeNodeEx(n == 0 ? "HoverFlagsForTooltipMouse" : "HoverFlagsForTooltipNav")) + { + ImGuiHoveredFlags* p = (n == 0) ? &style.HoverFlagsForTooltipMouse : &style.HoverFlagsForTooltipNav; + ImGui::CheckboxFlags("ImGuiHoveredFlags_DelayNone", p, ImGuiHoveredFlags_DelayNone); + ImGui::CheckboxFlags("ImGuiHoveredFlags_DelayShort", p, ImGuiHoveredFlags_DelayShort); + ImGui::CheckboxFlags("ImGuiHoveredFlags_DelayNormal", p, ImGuiHoveredFlags_DelayNormal); + ImGui::CheckboxFlags("ImGuiHoveredFlags_Stationary", p, ImGuiHoveredFlags_Stationary); + ImGui::CheckboxFlags("ImGuiHoveredFlags_NoSharedDelay", p, ImGuiHoveredFlags_NoSharedDelay); + ImGui::TreePop(); + } + + ImGui::SeparatorText("Misc"); + ImGui::SliderFloat2("DisplaySafeAreaPadding", (float*)&style.DisplaySafeAreaPadding, 0.0f, 30.0f, "%.0f"); ImGui::SameLine(); HelpMarker("Adjust if you cannot see the edges of your screen (e.g. on a TV where scaling has not been configured)."); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Colors")) + { + static int output_dest = 0; + static bool output_only_modified = true; + if (ImGui::Button("Export")) + { + if (output_dest == 0) + ImGui::LogToClipboard(); + else + ImGui::LogToTTY(); + ImGui::LogText("ImVec4* colors = ImGui::GetStyle().Colors;" IM_NEWLINE); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const ImVec4& col = style.Colors[i]; + const char* name = ImGui::GetStyleColorName(i); + if (!output_only_modified || memcmp(&col, &ref->Colors[i], sizeof(ImVec4)) != 0) + ImGui::LogText("colors[ImGuiCol_%s]%*s= ImVec4(%.2ff, %.2ff, %.2ff, %.2ff);" IM_NEWLINE, + name, 23 - (int)strlen(name), "", col.x, col.y, col.z, col.w); + } + ImGui::LogFinish(); + } + ImGui::SameLine(); ImGui::SetNextItemWidth(120); ImGui::Combo("##output_type", &output_dest, "To Clipboard\0To TTY\0"); + ImGui::SameLine(); ImGui::Checkbox("Only Modified Colors", &output_only_modified); + + static ImGuiTextFilter filter; + filter.Draw("Filter colors", ImGui::GetFontSize() * 16); + + static ImGuiColorEditFlags alpha_flags = 0; + if (ImGui::RadioButton("Opaque", alpha_flags == ImGuiColorEditFlags_None)) { alpha_flags = ImGuiColorEditFlags_None; } ImGui::SameLine(); + if (ImGui::RadioButton("Alpha", alpha_flags == ImGuiColorEditFlags_AlphaPreview)) { alpha_flags = ImGuiColorEditFlags_AlphaPreview; } ImGui::SameLine(); + if (ImGui::RadioButton("Both", alpha_flags == ImGuiColorEditFlags_AlphaPreviewHalf)) { alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf; } ImGui::SameLine(); + HelpMarker( + "In the color list:\n" + "Left-click on color square to open color picker,\n" + "Right-click to open edit options menu."); + + ImGui::BeginChild("##colors", ImVec2(0, 0), true, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar | ImGuiWindowFlags_NavFlattened); + ImGui::PushItemWidth(ImGui::GetFontSize() * -12); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const char* name = ImGui::GetStyleColorName(i); + if (!filter.PassFilter(name)) + continue; + ImGui::PushID(i); + ImGui::ColorEdit4("##color", (float*)&style.Colors[i], ImGuiColorEditFlags_AlphaBar | alpha_flags); + if (memcmp(&style.Colors[i], &ref->Colors[i], sizeof(ImVec4)) != 0) + { + // Tips: in a real user application, you may want to merge and use an icon font into the main font, + // so instead of "Save"/"Revert" you'd use icons! + // Read the FAQ and docs/FONTS.md about using icon fonts. It's really easy and super convenient! + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); if (ImGui::Button("Save")) { ref->Colors[i] = style.Colors[i]; } + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); if (ImGui::Button("Revert")) { style.Colors[i] = ref->Colors[i]; } + } + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); + ImGui::TextUnformatted(name); + ImGui::PopID(); + } + ImGui::PopItemWidth(); + ImGui::EndChild(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Fonts")) + { + ImGuiIO& io = ImGui::GetIO(); + ImFontAtlas* atlas = io.Fonts; + HelpMarker("Read FAQ and docs/FONTS.md for details on font loading."); + ImGui::ShowFontAtlas(atlas); + + // Post-baking font scaling. Note that this is NOT the nice way of scaling fonts, read below. + // (we enforce hard clamping manually as by default DragFloat/SliderFloat allows CTRL+Click text to get out of bounds). + const float MIN_SCALE = 0.3f; + const float MAX_SCALE = 2.0f; + HelpMarker( + "Those are old settings provided for convenience.\n" + "However, the _correct_ way of scaling your UI is currently to reload your font at the designed size, " + "rebuild the font atlas, and call style.ScaleAllSizes() on a reference ImGuiStyle structure.\n" + "Using those settings here will give you poor quality results."); + static float window_scale = 1.0f; + ImGui::PushItemWidth(ImGui::GetFontSize() * 8); + if (ImGui::DragFloat("window scale", &window_scale, 0.005f, MIN_SCALE, MAX_SCALE, "%.2f", ImGuiSliderFlags_AlwaysClamp)) // Scale only this window + ImGui::SetWindowFontScale(window_scale); + ImGui::DragFloat("global scale", &io.FontGlobalScale, 0.005f, MIN_SCALE, MAX_SCALE, "%.2f", ImGuiSliderFlags_AlwaysClamp); // Scale everything + ImGui::PopItemWidth(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Rendering")) + { + ImGui::Checkbox("Anti-aliased lines", &style.AntiAliasedLines); + ImGui::SameLine(); + HelpMarker("When disabling anti-aliasing lines, you'll probably want to disable borders in your style as well."); + + ImGui::Checkbox("Anti-aliased lines use texture", &style.AntiAliasedLinesUseTex); + ImGui::SameLine(); + HelpMarker("Faster lines using texture data. Require backend to render with bilinear filtering (not point/nearest filtering)."); + + ImGui::Checkbox("Anti-aliased fill", &style.AntiAliasedFill); + ImGui::PushItemWidth(ImGui::GetFontSize() * 8); + ImGui::DragFloat("Curve Tessellation Tolerance", &style.CurveTessellationTol, 0.02f, 0.10f, 10.0f, "%.2f"); + if (style.CurveTessellationTol < 0.10f) style.CurveTessellationTol = 0.10f; + + // When editing the "Circle Segment Max Error" value, draw a preview of its effect on auto-tessellated circles. + ImGui::DragFloat("Circle Tessellation Max Error", &style.CircleTessellationMaxError , 0.005f, 0.10f, 5.0f, "%.2f", ImGuiSliderFlags_AlwaysClamp); + const bool show_samples = ImGui::IsItemActive(); + if (show_samples) + ImGui::SetNextWindowPos(ImGui::GetCursorScreenPos()); + if (show_samples && ImGui::BeginTooltip()) + { + ImGui::TextUnformatted("(R = radius, N = number of segments)"); + ImGui::Spacing(); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + const float min_widget_width = ImGui::CalcTextSize("N: MMM\nR: MMM").x; + for (int n = 0; n < 8; n++) + { + const float RAD_MIN = 5.0f; + const float RAD_MAX = 70.0f; + const float rad = RAD_MIN + (RAD_MAX - RAD_MIN) * (float)n / (8.0f - 1.0f); + + ImGui::BeginGroup(); + + ImGui::Text("R: %.f\nN: %d", rad, draw_list->_CalcCircleAutoSegmentCount(rad)); + + const float canvas_width = IM_MAX(min_widget_width, rad * 2.0f); + const float offset_x = floorf(canvas_width * 0.5f); + const float offset_y = floorf(RAD_MAX); + + const ImVec2 p1 = ImGui::GetCursorScreenPos(); + draw_list->AddCircle(ImVec2(p1.x + offset_x, p1.y + offset_y), rad, ImGui::GetColorU32(ImGuiCol_Text)); + ImGui::Dummy(ImVec2(canvas_width, RAD_MAX * 2)); + + /* + const ImVec2 p2 = ImGui::GetCursorScreenPos(); + draw_list->AddCircleFilled(ImVec2(p2.x + offset_x, p2.y + offset_y), rad, ImGui::GetColorU32(ImGuiCol_Text)); + ImGui::Dummy(ImVec2(canvas_width, RAD_MAX * 2)); + */ + + ImGui::EndGroup(); + ImGui::SameLine(); + } + ImGui::EndTooltip(); + } + ImGui::SameLine(); + HelpMarker("When drawing circle primitives with \"num_segments == 0\" tesselation will be calculated automatically."); + + ImGui::DragFloat("Global Alpha", &style.Alpha, 0.005f, 0.20f, 1.0f, "%.2f"); // Not exposing zero here so user doesn't "lose" the UI (zero alpha clips all widgets). But application code could have a toggle to switch between zero and non-zero. + ImGui::DragFloat("Disabled Alpha", &style.DisabledAlpha, 0.005f, 0.0f, 1.0f, "%.2f"); ImGui::SameLine(); HelpMarker("Additional alpha multiplier for disabled items (multiply over current value of Alpha)."); + ImGui::PopItemWidth(); + + ImGui::EndTabItem(); + } + + ImGui::EndTabBar(); + } + + ImGui::PopItemWidth(); +} + +//----------------------------------------------------------------------------- +// [SECTION] User Guide / ShowUserGuide() +//----------------------------------------------------------------------------- + +void ImGui::ShowUserGuide() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui::BulletText("Double-click on title bar to collapse window."); + ImGui::BulletText( + "Click and drag on lower corner to resize window\n" + "(double-click to auto fit window to its contents)."); + ImGui::BulletText("CTRL+Click on a slider or drag box to input value as text."); + ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields."); + ImGui::BulletText("CTRL+Tab to select a window."); + if (io.FontAllowUserScaling) + ImGui::BulletText("CTRL+Mouse Wheel to zoom window contents."); + ImGui::BulletText("While inputing text:\n"); + ImGui::Indent(); + ImGui::BulletText("CTRL+Left/Right to word jump."); + ImGui::BulletText("CTRL+A or double-click to select all."); + ImGui::BulletText("CTRL+X/C/V to use clipboard cut/copy/paste."); + ImGui::BulletText("CTRL+Z,CTRL+Y to undo/redo."); + ImGui::BulletText("ESCAPE to revert."); + ImGui::Unindent(); + ImGui::BulletText("With keyboard navigation enabled:"); + ImGui::Indent(); + ImGui::BulletText("Arrow keys to navigate."); + ImGui::BulletText("Space to activate a widget."); + ImGui::BulletText("Return to input text into a widget."); + ImGui::BulletText("Escape to deactivate a widget, close popup, exit child window."); + ImGui::BulletText("Alt to jump to the menu layer of a window."); + ImGui::Unindent(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() +//----------------------------------------------------------------------------- +// - ShowExampleAppMainMenuBar() +// - ShowExampleMenuFile() +//----------------------------------------------------------------------------- + +// Demonstrate creating a "main" fullscreen menu bar and populating it. +// Note the difference between BeginMainMenuBar() and BeginMenuBar(): +// - BeginMenuBar() = menu-bar inside current window (which needs the ImGuiWindowFlags_MenuBar flag!) +// - BeginMainMenuBar() = helper to create menu-bar-sized window at the top of the main viewport + call BeginMenuBar() into it. +static void ShowExampleAppMainMenuBar() +{ + if (ImGui::BeginMainMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Edit")) + { + if (ImGui::MenuItem("Undo", "CTRL+Z")) {} + if (ImGui::MenuItem("Redo", "CTRL+Y", false, false)) {} // Disabled item + ImGui::Separator(); + if (ImGui::MenuItem("Cut", "CTRL+X")) {} + if (ImGui::MenuItem("Copy", "CTRL+C")) {} + if (ImGui::MenuItem("Paste", "CTRL+V")) {} + ImGui::EndMenu(); + } + ImGui::EndMainMenuBar(); + } +} + +// Note that shortcuts are currently provided for display only +// (future version will add explicit flags to BeginMenu() to request processing shortcuts) +static void ShowExampleMenuFile() +{ + IMGUI_DEMO_MARKER("Examples/Menu"); + ImGui::MenuItem("(demo menu)", NULL, false, false); + if (ImGui::MenuItem("New")) {} + if (ImGui::MenuItem("Open", "Ctrl+O")) {} + if (ImGui::BeginMenu("Open Recent")) + { + ImGui::MenuItem("fish_hat.c"); + ImGui::MenuItem("fish_hat.inl"); + ImGui::MenuItem("fish_hat.h"); + if (ImGui::BeginMenu("More..")) + { + ImGui::MenuItem("Hello"); + ImGui::MenuItem("Sailor"); + if (ImGui::BeginMenu("Recurse..")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::EndMenu(); + } + ImGui::EndMenu(); + } + if (ImGui::MenuItem("Save", "Ctrl+S")) {} + if (ImGui::MenuItem("Save As..")) {} + + ImGui::Separator(); + IMGUI_DEMO_MARKER("Examples/Menu/Options"); + if (ImGui::BeginMenu("Options")) + { + static bool enabled = true; + ImGui::MenuItem("Enabled", "", &enabled); + ImGui::BeginChild("child", ImVec2(0, 60), true); + for (int i = 0; i < 10; i++) + ImGui::Text("Scrolling Text %d", i); + ImGui::EndChild(); + static float f = 0.5f; + static int n = 0; + ImGui::SliderFloat("Value", &f, 0.0f, 1.0f); + ImGui::InputFloat("Input", &f, 0.1f); + ImGui::Combo("Combo", &n, "Yes\0No\0Maybe\0\0"); + ImGui::EndMenu(); + } + + IMGUI_DEMO_MARKER("Examples/Menu/Colors"); + if (ImGui::BeginMenu("Colors")) + { + float sz = ImGui::GetTextLineHeight(); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const char* name = ImGui::GetStyleColorName((ImGuiCol)i); + ImVec2 p = ImGui::GetCursorScreenPos(); + ImGui::GetWindowDrawList()->AddRectFilled(p, ImVec2(p.x + sz, p.y + sz), ImGui::GetColorU32((ImGuiCol)i)); + ImGui::Dummy(ImVec2(sz, sz)); + ImGui::SameLine(); + ImGui::MenuItem(name); + } + ImGui::EndMenu(); + } + + // Here we demonstrate appending again to the "Options" menu (which we already created above) + // Of course in this demo it is a little bit silly that this function calls BeginMenu("Options") twice. + // In a real code-base using it would make senses to use this feature from very different code locations. + if (ImGui::BeginMenu("Options")) // <-- Append! + { + IMGUI_DEMO_MARKER("Examples/Menu/Append to an existing menu"); + static bool b = true; + ImGui::Checkbox("SomeOption", &b); + ImGui::EndMenu(); + } + + if (ImGui::BeginMenu("Disabled", false)) // Disabled + { + IM_ASSERT(0); + } + if (ImGui::MenuItem("Checked", NULL, true)) {} + ImGui::Separator(); + if (ImGui::MenuItem("Quit", "Alt+F4")) {} +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Debug Console / ShowExampleAppConsole() +//----------------------------------------------------------------------------- + +// Demonstrate creating a simple console window, with scrolling, filtering, completion and history. +// For the console example, we are using a more C++ like approach of declaring a class to hold both data and functions. +struct ExampleAppConsole +{ + char InputBuf[256]; + ImVector Items; + ImVector Commands; + ImVector History; + int HistoryPos; // -1: new line, 0..History.Size-1 browsing history. + ImGuiTextFilter Filter; + bool AutoScroll; + bool ScrollToBottom; + + ExampleAppConsole() + { + IMGUI_DEMO_MARKER("Examples/Console"); + ClearLog(); + memset(InputBuf, 0, sizeof(InputBuf)); + HistoryPos = -1; + + // "CLASSIFY" is here to provide the test case where "C"+[tab] completes to "CL" and display multiple matches. + Commands.push_back("HELP"); + Commands.push_back("HISTORY"); + Commands.push_back("CLEAR"); + Commands.push_back("CLASSIFY"); + AutoScroll = true; + ScrollToBottom = false; + AddLog("Welcome to Dear ImGui!"); + } + ~ExampleAppConsole() + { + ClearLog(); + for (int i = 0; i < History.Size; i++) + free(History[i]); + } + + // Portable helpers + static int Stricmp(const char* s1, const char* s2) { int d; while ((d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; } return d; } + static int Strnicmp(const char* s1, const char* s2, int n) { int d = 0; while (n > 0 && (d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; n--; } return d; } + static char* Strdup(const char* s) { IM_ASSERT(s); size_t len = strlen(s) + 1; void* buf = malloc(len); IM_ASSERT(buf); return (char*)memcpy(buf, (const void*)s, len); } + static void Strtrim(char* s) { char* str_end = s + strlen(s); while (str_end > s && str_end[-1] == ' ') str_end--; *str_end = 0; } + + void ClearLog() + { + for (int i = 0; i < Items.Size; i++) + free(Items[i]); + Items.clear(); + } + + void AddLog(const char* fmt, ...) IM_FMTARGS(2) + { + // FIXME-OPT + char buf[1024]; + va_list args; + va_start(args, fmt); + vsnprintf(buf, IM_ARRAYSIZE(buf), fmt, args); + buf[IM_ARRAYSIZE(buf)-1] = 0; + va_end(args); + Items.push_back(Strdup(buf)); + } + + void Draw(const char* title, bool* p_open) + { + ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); + if (!ImGui::Begin(title, p_open)) + { + ImGui::End(); + return; + } + + // As a specific feature guaranteed by the library, after calling Begin() the last Item represent the title bar. + // So e.g. IsItemHovered() will return true when hovering the title bar. + // Here we create a context menu only available from the title bar. + if (ImGui::BeginPopupContextItem()) + { + if (ImGui::MenuItem("Close Console")) + *p_open = false; + ImGui::EndPopup(); + } + + ImGui::TextWrapped( + "This example implements a console with basic coloring, completion (TAB key) and history (Up/Down keys). A more elaborate " + "implementation may want to store entries along with extra data such as timestamp, emitter, etc."); + ImGui::TextWrapped("Enter 'HELP' for help."); + + // TODO: display items starting from the bottom + + if (ImGui::SmallButton("Add Debug Text")) { AddLog("%d some text", Items.Size); AddLog("some more text"); AddLog("display very important message here!"); } + ImGui::SameLine(); + if (ImGui::SmallButton("Add Debug Error")) { AddLog("[error] something went wrong"); } + ImGui::SameLine(); + if (ImGui::SmallButton("Clear")) { ClearLog(); } + ImGui::SameLine(); + bool copy_to_clipboard = ImGui::SmallButton("Copy"); + //static float t = 0.0f; if (ImGui::GetTime() - t > 0.02f) { t = ImGui::GetTime(); AddLog("Spam %f", t); } + + ImGui::Separator(); + + // Options menu + if (ImGui::BeginPopup("Options")) + { + ImGui::Checkbox("Auto-scroll", &AutoScroll); + ImGui::EndPopup(); + } + + // Options, Filter + if (ImGui::Button("Options")) + ImGui::OpenPopup("Options"); + ImGui::SameLine(); + Filter.Draw("Filter (\"incl,-excl\") (\"error\")", 180); + ImGui::Separator(); + + // Reserve enough left-over height for 1 separator + 1 input text + const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y + ImGui::GetFrameHeightWithSpacing(); + if (ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar)) + { + if (ImGui::BeginPopupContextWindow()) + { + if (ImGui::Selectable("Clear")) ClearLog(); + ImGui::EndPopup(); + } + + // Display every line as a separate entry so we can change their color or add custom widgets. + // If you only want raw text you can use ImGui::TextUnformatted(log.begin(), log.end()); + // NB- if you have thousands of entries this approach may be too inefficient and may require user-side clipping + // to only process visible items. The clipper will automatically measure the height of your first item and then + // "seek" to display only items in the visible area. + // To use the clipper we can replace your standard loop: + // for (int i = 0; i < Items.Size; i++) + // With: + // ImGuiListClipper clipper; + // clipper.Begin(Items.Size); + // while (clipper.Step()) + // for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + // - That your items are evenly spaced (same height) + // - That you have cheap random access to your elements (you can access them given their index, + // without processing all the ones before) + // You cannot this code as-is if a filter is active because it breaks the 'cheap random-access' property. + // We would need random-access on the post-filtered list. + // A typical application wanting coarse clipping and filtering may want to pre-compute an array of indices + // or offsets of items that passed the filtering test, recomputing this array when user changes the filter, + // and appending newly elements as they are inserted. This is left as a task to the user until we can manage + // to improve this example code! + // If your items are of variable height: + // - Split them into same height items would be simpler and facilitate random-seeking into your list. + // - Consider using manual call to IsRectVisible() and skipping extraneous decoration from your items. + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 1)); // Tighten spacing + if (copy_to_clipboard) + ImGui::LogToClipboard(); + for (const char* item : Items) + { + if (!Filter.PassFilter(item)) + continue; + + // Normally you would store more information in your item than just a string. + // (e.g. make Items[] an array of structure, store color/type etc.) + ImVec4 color; + bool has_color = false; + if (strstr(item, "[error]")) { color = ImVec4(1.0f, 0.4f, 0.4f, 1.0f); has_color = true; } + else if (strncmp(item, "# ", 2) == 0) { color = ImVec4(1.0f, 0.8f, 0.6f, 1.0f); has_color = true; } + if (has_color) + ImGui::PushStyleColor(ImGuiCol_Text, color); + ImGui::TextUnformatted(item); + if (has_color) + ImGui::PopStyleColor(); + } + if (copy_to_clipboard) + ImGui::LogFinish(); + + // Keep up at the bottom of the scroll region if we were already at the bottom at the beginning of the frame. + // Using a scrollbar or mouse-wheel will take away from the bottom edge. + if (ScrollToBottom || (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY())) + ImGui::SetScrollHereY(1.0f); + ScrollToBottom = false; + + ImGui::PopStyleVar(); + } + ImGui::EndChild(); + ImGui::Separator(); + + // Command-line + bool reclaim_focus = false; + ImGuiInputTextFlags input_text_flags = ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_EscapeClearsAll | ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory; + if (ImGui::InputText("Input", InputBuf, IM_ARRAYSIZE(InputBuf), input_text_flags, &TextEditCallbackStub, (void*)this)) + { + char* s = InputBuf; + Strtrim(s); + if (s[0]) + ExecCommand(s); + strcpy(s, ""); + reclaim_focus = true; + } + + // Auto-focus on window apparition + ImGui::SetItemDefaultFocus(); + if (reclaim_focus) + ImGui::SetKeyboardFocusHere(-1); // Auto focus previous widget + + ImGui::End(); + } + + void ExecCommand(const char* command_line) + { + AddLog("# %s\n", command_line); + + // Insert into history. First find match and delete it so it can be pushed to the back. + // This isn't trying to be smart or optimal. + HistoryPos = -1; + for (int i = History.Size - 1; i >= 0; i--) + if (Stricmp(History[i], command_line) == 0) + { + free(History[i]); + History.erase(History.begin() + i); + break; + } + History.push_back(Strdup(command_line)); + + // Process command + if (Stricmp(command_line, "CLEAR") == 0) + { + ClearLog(); + } + else if (Stricmp(command_line, "HELP") == 0) + { + AddLog("Commands:"); + for (int i = 0; i < Commands.Size; i++) + AddLog("- %s", Commands[i]); + } + else if (Stricmp(command_line, "HISTORY") == 0) + { + int first = History.Size - 10; + for (int i = first > 0 ? first : 0; i < History.Size; i++) + AddLog("%3d: %s\n", i, History[i]); + } + else + { + AddLog("Unknown command: '%s'\n", command_line); + } + + // On command input, we scroll to bottom even if AutoScroll==false + ScrollToBottom = true; + } + + // In C++11 you'd be better off using lambdas for this sort of forwarding callbacks + static int TextEditCallbackStub(ImGuiInputTextCallbackData* data) + { + ExampleAppConsole* console = (ExampleAppConsole*)data->UserData; + return console->TextEditCallback(data); + } + + int TextEditCallback(ImGuiInputTextCallbackData* data) + { + //AddLog("cursor: %d, selection: %d-%d", data->CursorPos, data->SelectionStart, data->SelectionEnd); + switch (data->EventFlag) + { + case ImGuiInputTextFlags_CallbackCompletion: + { + // Example of TEXT COMPLETION + + // Locate beginning of current word + const char* word_end = data->Buf + data->CursorPos; + const char* word_start = word_end; + while (word_start > data->Buf) + { + const char c = word_start[-1]; + if (c == ' ' || c == '\t' || c == ',' || c == ';') + break; + word_start--; + } + + // Build a list of candidates + ImVector candidates; + for (int i = 0; i < Commands.Size; i++) + if (Strnicmp(Commands[i], word_start, (int)(word_end - word_start)) == 0) + candidates.push_back(Commands[i]); + + if (candidates.Size == 0) + { + // No match + AddLog("No match for \"%.*s\"!\n", (int)(word_end - word_start), word_start); + } + else if (candidates.Size == 1) + { + // Single match. Delete the beginning of the word and replace it entirely so we've got nice casing. + data->DeleteChars((int)(word_start - data->Buf), (int)(word_end - word_start)); + data->InsertChars(data->CursorPos, candidates[0]); + data->InsertChars(data->CursorPos, " "); + } + else + { + // Multiple matches. Complete as much as we can.. + // So inputing "C"+Tab will complete to "CL" then display "CLEAR" and "CLASSIFY" as matches. + int match_len = (int)(word_end - word_start); + for (;;) + { + int c = 0; + bool all_candidates_matches = true; + for (int i = 0; i < candidates.Size && all_candidates_matches; i++) + if (i == 0) + c = toupper(candidates[i][match_len]); + else if (c == 0 || c != toupper(candidates[i][match_len])) + all_candidates_matches = false; + if (!all_candidates_matches) + break; + match_len++; + } + + if (match_len > 0) + { + data->DeleteChars((int)(word_start - data->Buf), (int)(word_end - word_start)); + data->InsertChars(data->CursorPos, candidates[0], candidates[0] + match_len); + } + + // List matches + AddLog("Possible matches:\n"); + for (int i = 0; i < candidates.Size; i++) + AddLog("- %s\n", candidates[i]); + } + + break; + } + case ImGuiInputTextFlags_CallbackHistory: + { + // Example of HISTORY + const int prev_history_pos = HistoryPos; + if (data->EventKey == ImGuiKey_UpArrow) + { + if (HistoryPos == -1) + HistoryPos = History.Size - 1; + else if (HistoryPos > 0) + HistoryPos--; + } + else if (data->EventKey == ImGuiKey_DownArrow) + { + if (HistoryPos != -1) + if (++HistoryPos >= History.Size) + HistoryPos = -1; + } + + // A better implementation would preserve the data on the current input line along with cursor position. + if (prev_history_pos != HistoryPos) + { + const char* history_str = (HistoryPos >= 0) ? History[HistoryPos] : ""; + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, history_str); + } + } + } + return 0; + } +}; + +static void ShowExampleAppConsole(bool* p_open) +{ + static ExampleAppConsole console; + console.Draw("Example: Console", p_open); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Debug Log / ShowExampleAppLog() +//----------------------------------------------------------------------------- + +// Usage: +// static ExampleAppLog my_log; +// my_log.AddLog("Hello %d world\n", 123); +// my_log.Draw("title"); +struct ExampleAppLog +{ + ImGuiTextBuffer Buf; + ImGuiTextFilter Filter; + ImVector LineOffsets; // Index to lines offset. We maintain this with AddLog() calls. + bool AutoScroll; // Keep scrolling if already at the bottom. + + ExampleAppLog() + { + AutoScroll = true; + Clear(); + } + + void Clear() + { + Buf.clear(); + LineOffsets.clear(); + LineOffsets.push_back(0); + } + + void AddLog(const char* fmt, ...) IM_FMTARGS(2) + { + int old_size = Buf.size(); + va_list args; + va_start(args, fmt); + Buf.appendfv(fmt, args); + va_end(args); + for (int new_size = Buf.size(); old_size < new_size; old_size++) + if (Buf[old_size] == '\n') + LineOffsets.push_back(old_size + 1); + } + + void Draw(const char* title, bool* p_open = NULL) + { + if (!ImGui::Begin(title, p_open)) + { + ImGui::End(); + return; + } + + // Options menu + if (ImGui::BeginPopup("Options")) + { + ImGui::Checkbox("Auto-scroll", &AutoScroll); + ImGui::EndPopup(); + } + + // Main window + if (ImGui::Button("Options")) + ImGui::OpenPopup("Options"); + ImGui::SameLine(); + bool clear = ImGui::Button("Clear"); + ImGui::SameLine(); + bool copy = ImGui::Button("Copy"); + ImGui::SameLine(); + Filter.Draw("Filter", -100.0f); + + ImGui::Separator(); + + if (ImGui::BeginChild("scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar)) + { + if (clear) + Clear(); + if (copy) + ImGui::LogToClipboard(); + + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + const char* buf = Buf.begin(); + const char* buf_end = Buf.end(); + if (Filter.IsActive()) + { + // In this example we don't use the clipper when Filter is enabled. + // This is because we don't have random access to the result of our filter. + // A real application processing logs with ten of thousands of entries may want to store the result of + // search/filter.. especially if the filtering function is not trivial (e.g. reg-exp). + for (int line_no = 0; line_no < LineOffsets.Size; line_no++) + { + const char* line_start = buf + LineOffsets[line_no]; + const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; + if (Filter.PassFilter(line_start, line_end)) + ImGui::TextUnformatted(line_start, line_end); + } + } + else + { + // The simplest and easy way to display the entire buffer: + // ImGui::TextUnformatted(buf_begin, buf_end); + // And it'll just work. TextUnformatted() has specialization for large blob of text and will fast-forward + // to skip non-visible lines. Here we instead demonstrate using the clipper to only process lines that are + // within the visible area. + // If you have tens of thousands of items and their processing cost is non-negligible, coarse clipping them + // on your side is recommended. Using ImGuiListClipper requires + // - A) random access into your data + // - B) items all being the same height, + // both of which we can handle since we have an array pointing to the beginning of each line of text. + // When using the filter (in the block of code above) we don't have random access into the data to display + // anymore, which is why we don't use the clipper. Storing or skimming through the search result would make + // it possible (and would be recommended if you want to search through tens of thousands of entries). + ImGuiListClipper clipper; + clipper.Begin(LineOffsets.Size); + while (clipper.Step()) + { + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_start = buf + LineOffsets[line_no]; + const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; + ImGui::TextUnformatted(line_start, line_end); + } + } + clipper.End(); + } + ImGui::PopStyleVar(); + + // Keep up at the bottom of the scroll region if we were already at the bottom at the beginning of the frame. + // Using a scrollbar or mouse-wheel will take away from the bottom edge. + if (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) + ImGui::SetScrollHereY(1.0f); + } + ImGui::EndChild(); + ImGui::End(); + } +}; + +// Demonstrate creating a simple log window with basic filtering. +static void ShowExampleAppLog(bool* p_open) +{ + static ExampleAppLog log; + + // For the demo: add a debug button _BEFORE_ the normal log window contents + // We take advantage of a rarely used feature: multiple calls to Begin()/End() are appending to the _same_ window. + // Most of the contents of the window will be added by the log.Draw() call. + ImGui::SetNextWindowSize(ImVec2(500, 400), ImGuiCond_FirstUseEver); + ImGui::Begin("Example: Log", p_open); + IMGUI_DEMO_MARKER("Examples/Log"); + if (ImGui::SmallButton("[Debug] Add 5 entries")) + { + static int counter = 0; + const char* categories[3] = { "info", "warn", "error" }; + const char* words[] = { "Bumfuzzled", "Cattywampus", "Snickersnee", "Abibliophobia", "Absquatulate", "Nincompoop", "Pauciloquent" }; + for (int n = 0; n < 5; n++) + { + const char* category = categories[counter % IM_ARRAYSIZE(categories)]; + const char* word = words[counter % IM_ARRAYSIZE(words)]; + log.AddLog("[%05d] [%s] Hello, current time is %.1f, here's a word: '%s'\n", + ImGui::GetFrameCount(), category, ImGui::GetTime(), word); + counter++; + } + } + ImGui::End(); + + // Actually call in the regular Log helper (which will Begin() into the same window as we just did) + log.Draw("Example: Log", p_open); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Simple Layout / ShowExampleAppLayout() +//----------------------------------------------------------------------------- + +// Demonstrate create a window with multiple child windows. +static void ShowExampleAppLayout(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(500, 440), ImGuiCond_FirstUseEver); + if (ImGui::Begin("Example: Simple layout", p_open, ImGuiWindowFlags_MenuBar)) + { + IMGUI_DEMO_MARKER("Examples/Simple layout"); + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + if (ImGui::MenuItem("Close", "Ctrl+W")) { *p_open = false; } + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + // Left + static int selected = 0; + { + ImGui::BeginChild("left pane", ImVec2(150, 0), true); + for (int i = 0; i < 100; i++) + { + // FIXME: Good candidate to use ImGuiSelectableFlags_SelectOnNav + char label[128]; + sprintf(label, "MyObject %d", i); + if (ImGui::Selectable(label, selected == i)) + selected = i; + } + ImGui::EndChild(); + } + ImGui::SameLine(); + + // Right + { + ImGui::BeginGroup(); + ImGui::BeginChild("item view", ImVec2(0, -ImGui::GetFrameHeightWithSpacing())); // Leave room for 1 line below us + ImGui::Text("MyObject: %d", selected); + ImGui::Separator(); + if (ImGui::BeginTabBar("##Tabs", ImGuiTabBarFlags_None)) + { + if (ImGui::BeginTabItem("Description")) + { + ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Details")) + { + ImGui::Text("ID: 0123456789"); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::EndChild(); + if (ImGui::Button("Revert")) {} + ImGui::SameLine(); + if (ImGui::Button("Save")) {} + ImGui::EndGroup(); + } + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Property Editor / ShowExampleAppPropertyEditor() +//----------------------------------------------------------------------------- + +static void ShowPlaceholderObject(const char* prefix, int uid) +{ + // Use object uid as identifier. Most commonly you could also use the object pointer as a base ID. + ImGui::PushID(uid); + + // Text and Tree nodes are less high than framed widgets, using AlignTextToFramePadding() we add vertical spacing to make the tree lines equal high. + ImGui::TableNextRow(); + ImGui::TableSetColumnIndex(0); + ImGui::AlignTextToFramePadding(); + bool node_open = ImGui::TreeNode("Object", "%s_%u", prefix, uid); + ImGui::TableSetColumnIndex(1); + ImGui::Text("my sailor is rich"); + + if (node_open) + { + static float placeholder_members[8] = { 0.0f, 0.0f, 1.0f, 3.1416f, 100.0f, 999.0f }; + for (int i = 0; i < 8; i++) + { + ImGui::PushID(i); // Use field index as identifier. + if (i < 2) + { + ShowPlaceholderObject("Child", 424242); + } + else + { + // Here we use a TreeNode to highlight on hover (we could use e.g. Selectable as well) + ImGui::TableNextRow(); + ImGui::TableSetColumnIndex(0); + ImGui::AlignTextToFramePadding(); + ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_Bullet; + ImGui::TreeNodeEx("Field", flags, "Field_%d", i); + + ImGui::TableSetColumnIndex(1); + ImGui::SetNextItemWidth(-FLT_MIN); + if (i >= 5) + ImGui::InputFloat("##value", &placeholder_members[i], 1.0f); + else + ImGui::DragFloat("##value", &placeholder_members[i], 0.01f); + ImGui::NextColumn(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + ImGui::PopID(); +} + +// Demonstrate create a simple property editor. +// This demo is a bit lackluster nowadays, would be nice to improve. +static void ShowExampleAppPropertyEditor(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(430, 450), ImGuiCond_FirstUseEver); + if (!ImGui::Begin("Example: Property editor", p_open)) + { + ImGui::End(); + return; + } + + IMGUI_DEMO_MARKER("Examples/Property Editor"); + HelpMarker( + "This example shows how you may implement a property editor using two columns.\n" + "All objects/fields data are dummies here.\n"); + + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2)); + if (ImGui::BeginTable("##split", 2, ImGuiTableFlags_BordersOuter | ImGuiTableFlags_Resizable | ImGuiTableFlags_ScrollY)) + { + ImGui::TableSetupScrollFreeze(0, 1); + ImGui::TableSetupColumn("Object"); + ImGui::TableSetupColumn("Contents"); + ImGui::TableHeadersRow(); + + // Iterate placeholder objects (all the same data) + for (int obj_i = 0; obj_i < 4; obj_i++) + ShowPlaceholderObject("Object", obj_i); + + ImGui::EndTable(); + } + ImGui::PopStyleVar(); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Long Text / ShowExampleAppLongText() +//----------------------------------------------------------------------------- + +// Demonstrate/test rendering huge amount of text, and the incidence of clipping. +static void ShowExampleAppLongText(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); + if (!ImGui::Begin("Example: Long text display", p_open)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Examples/Long text display"); + + static int test_type = 0; + static ImGuiTextBuffer log; + static int lines = 0; + ImGui::Text("Printing unusually long amount of text."); + ImGui::Combo("Test type", &test_type, + "Single call to TextUnformatted()\0" + "Multiple calls to Text(), clipped\0" + "Multiple calls to Text(), not clipped (slow)\0"); + ImGui::Text("Buffer contents: %d lines, %d bytes", lines, log.size()); + if (ImGui::Button("Clear")) { log.clear(); lines = 0; } + ImGui::SameLine(); + if (ImGui::Button("Add 1000 lines")) + { + for (int i = 0; i < 1000; i++) + log.appendf("%i The quick brown fox jumps over the lazy dog\n", lines + i); + lines += 1000; + } + ImGui::BeginChild("Log"); + switch (test_type) + { + case 0: + // Single call to TextUnformatted() with a big buffer + ImGui::TextUnformatted(log.begin(), log.end()); + break; + case 1: + { + // Multiple calls to Text(), manually coarsely clipped - demonstrate how to use the ImGuiListClipper helper. + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + ImGuiListClipper clipper; + clipper.Begin(lines); + while (clipper.Step()) + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + ImGui::Text("%i The quick brown fox jumps over the lazy dog", i); + ImGui::PopStyleVar(); + break; + } + case 2: + // Multiple calls to Text(), not clipped (slow) + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + for (int i = 0; i < lines; i++) + ImGui::Text("%i The quick brown fox jumps over the lazy dog", i); + ImGui::PopStyleVar(); + break; + } + ImGui::EndChild(); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Auto Resize / ShowExampleAppAutoResize() +//----------------------------------------------------------------------------- + +// Demonstrate creating a window which gets auto-resized according to its content. +static void ShowExampleAppAutoResize(bool* p_open) +{ + if (!ImGui::Begin("Example: Auto-resizing window", p_open, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Examples/Auto-resizing window"); + + static int lines = 10; + ImGui::TextUnformatted( + "Window will resize every-frame to the size of its content.\n" + "Note that you probably don't want to query the window size to\n" + "output your content because that would create a feedback loop."); + ImGui::SliderInt("Number of lines", &lines, 1, 20); + for (int i = 0; i < lines; i++) + ImGui::Text("%*sThis is line %d", i * 4, "", i); // Pad with space to extend size horizontally + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Constrained Resize / ShowExampleAppConstrainedResize() +//----------------------------------------------------------------------------- + +// Demonstrate creating a window with custom resize constraints. +// Note that size constraints currently don't work on a docked window (when in 'docking' branch) +static void ShowExampleAppConstrainedResize(bool* p_open) +{ + struct CustomConstraints + { + // Helper functions to demonstrate programmatic constraints + // FIXME: This doesn't take account of decoration size (e.g. title bar), library should make this easier. + static void AspectRatio(ImGuiSizeCallbackData* data) { float aspect_ratio = *(float*)data->UserData; data->DesiredSize.x = IM_MAX(data->CurrentSize.x, data->CurrentSize.y); data->DesiredSize.y = (float)(int)(data->DesiredSize.x / aspect_ratio); } + static void Square(ImGuiSizeCallbackData* data) { data->DesiredSize.x = data->DesiredSize.y = IM_MAX(data->CurrentSize.x, data->CurrentSize.y); } + static void Step(ImGuiSizeCallbackData* data) { float step = *(float*)data->UserData; data->DesiredSize = ImVec2((int)(data->CurrentSize.x / step + 0.5f) * step, (int)(data->CurrentSize.y / step + 0.5f) * step); } + }; + + const char* test_desc[] = + { + "Between 100x100 and 500x500", + "At least 100x100", + "Resize vertical only", + "Resize horizontal only", + "Width Between 400 and 500", + "Custom: Aspect Ratio 16:9", + "Custom: Always Square", + "Custom: Fixed Steps (100)", + }; + + // Options + static bool auto_resize = false; + static bool window_padding = true; + static int type = 5; // Aspect Ratio + static int display_lines = 10; + + // Submit constraint + float aspect_ratio = 16.0f / 9.0f; + float fixed_step = 100.0f; + if (type == 0) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(500, 500)); // Between 100x100 and 500x500 + if (type == 1) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(FLT_MAX, FLT_MAX)); // Width > 100, Height > 100 + if (type == 2) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 0), ImVec2(-1, FLT_MAX)); // Vertical only + if (type == 3) ImGui::SetNextWindowSizeConstraints(ImVec2(0, -1), ImVec2(FLT_MAX, -1)); // Horizontal only + if (type == 4) ImGui::SetNextWindowSizeConstraints(ImVec2(400, -1), ImVec2(500, -1)); // Width Between and 400 and 500 + if (type == 5) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::AspectRatio, (void*)&aspect_ratio); // Aspect ratio + if (type == 6) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Square); // Always Square + if (type == 7) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Step, (void*)&fixed_step); // Fixed Step + + // Submit window + if (!window_padding) + ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); + const ImGuiWindowFlags window_flags = auto_resize ? ImGuiWindowFlags_AlwaysAutoResize : 0; + const bool window_open = ImGui::Begin("Example: Constrained Resize", p_open, window_flags); + if (!window_padding) + ImGui::PopStyleVar(); + if (window_open) + { + IMGUI_DEMO_MARKER("Examples/Constrained Resizing window"); + if (ImGui::GetIO().KeyShift) + { + // Display a dummy viewport (in your real app you would likely use ImageButton() to display a texture. + ImVec2 avail_size = ImGui::GetContentRegionAvail(); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImGui::ColorButton("viewport", ImVec4(0.5f, 0.2f, 0.5f, 1.0f), ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoDragDrop, avail_size); + ImGui::SetCursorScreenPos(ImVec2(pos.x + 10, pos.y + 10)); + ImGui::Text("%.2f x %.2f", avail_size.x, avail_size.y); + } + else + { + ImGui::Text("(Hold SHIFT to display a dummy viewport)"); + if (ImGui::IsWindowDocked()) + ImGui::Text("Warning: Sizing Constraints won't work if the window is docked!"); + if (ImGui::Button("Set 200x200")) { ImGui::SetWindowSize(ImVec2(200, 200)); } ImGui::SameLine(); + if (ImGui::Button("Set 500x500")) { ImGui::SetWindowSize(ImVec2(500, 500)); } ImGui::SameLine(); + if (ImGui::Button("Set 800x200")) { ImGui::SetWindowSize(ImVec2(800, 200)); } + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 20); + ImGui::Combo("Constraint", &type, test_desc, IM_ARRAYSIZE(test_desc)); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 20); + ImGui::DragInt("Lines", &display_lines, 0.2f, 1, 100); + ImGui::Checkbox("Auto-resize", &auto_resize); + ImGui::Checkbox("Window padding", &window_padding); + for (int i = 0; i < display_lines; i++) + ImGui::Text("%*sHello, sailor! Making this line long enough for the example.", i * 4, ""); + } + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Simple overlay / ShowExampleAppSimpleOverlay() +//----------------------------------------------------------------------------- + +// Demonstrate creating a simple static window with no decoration +// + a context-menu to choose which corner of the screen to use. +static void ShowExampleAppSimpleOverlay(bool* p_open) +{ + static int location = 0; + ImGuiIO& io = ImGui::GetIO(); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoDocking | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav; + if (location >= 0) + { + const float PAD = 10.0f; + const ImGuiViewport* viewport = ImGui::GetMainViewport(); + ImVec2 work_pos = viewport->WorkPos; // Use work area to avoid menu-bar/task-bar, if any! + ImVec2 work_size = viewport->WorkSize; + ImVec2 window_pos, window_pos_pivot; + window_pos.x = (location & 1) ? (work_pos.x + work_size.x - PAD) : (work_pos.x + PAD); + window_pos.y = (location & 2) ? (work_pos.y + work_size.y - PAD) : (work_pos.y + PAD); + window_pos_pivot.x = (location & 1) ? 1.0f : 0.0f; + window_pos_pivot.y = (location & 2) ? 1.0f : 0.0f; + ImGui::SetNextWindowPos(window_pos, ImGuiCond_Always, window_pos_pivot); + ImGui::SetNextWindowViewport(viewport->ID); + window_flags |= ImGuiWindowFlags_NoMove; + } + else if (location == -2) + { + // Center window + ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_Always, ImVec2(0.5f, 0.5f)); + window_flags |= ImGuiWindowFlags_NoMove; + } + ImGui::SetNextWindowBgAlpha(0.35f); // Transparent background + if (ImGui::Begin("Example: Simple overlay", p_open, window_flags)) + { + IMGUI_DEMO_MARKER("Examples/Simple Overlay"); + ImGui::Text("Simple overlay\n" "(right-click to change position)"); + ImGui::Separator(); + if (ImGui::IsMousePosValid()) + ImGui::Text("Mouse Position: (%.1f,%.1f)", io.MousePos.x, io.MousePos.y); + else + ImGui::Text("Mouse Position: "); + if (ImGui::BeginPopupContextWindow()) + { + if (ImGui::MenuItem("Custom", NULL, location == -1)) location = -1; + if (ImGui::MenuItem("Center", NULL, location == -2)) location = -2; + if (ImGui::MenuItem("Top-left", NULL, location == 0)) location = 0; + if (ImGui::MenuItem("Top-right", NULL, location == 1)) location = 1; + if (ImGui::MenuItem("Bottom-left", NULL, location == 2)) location = 2; + if (ImGui::MenuItem("Bottom-right", NULL, location == 3)) location = 3; + if (p_open && ImGui::MenuItem("Close")) *p_open = false; + ImGui::EndPopup(); + } + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Fullscreen window / ShowExampleAppFullscreen() +//----------------------------------------------------------------------------- + +// Demonstrate creating a window covering the entire screen/viewport +static void ShowExampleAppFullscreen(bool* p_open) +{ + static bool use_work_area = true; + static ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings; + + // We demonstrate using the full viewport area or the work area (without menu-bars, task-bars etc.) + // Based on your use case you may want one or the other. + const ImGuiViewport* viewport = ImGui::GetMainViewport(); + ImGui::SetNextWindowPos(use_work_area ? viewport->WorkPos : viewport->Pos); + ImGui::SetNextWindowSize(use_work_area ? viewport->WorkSize : viewport->Size); + + if (ImGui::Begin("Example: Fullscreen window", p_open, flags)) + { + ImGui::Checkbox("Use work area instead of main area", &use_work_area); + ImGui::SameLine(); + HelpMarker("Main Area = entire viewport,\nWork Area = entire viewport minus sections used by the main menu bars, task bars etc.\n\nEnable the main-menu bar in Examples menu to see the difference."); + + ImGui::CheckboxFlags("ImGuiWindowFlags_NoBackground", &flags, ImGuiWindowFlags_NoBackground); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoDecoration", &flags, ImGuiWindowFlags_NoDecoration); + ImGui::Indent(); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoTitleBar", &flags, ImGuiWindowFlags_NoTitleBar); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoCollapse", &flags, ImGuiWindowFlags_NoCollapse); + ImGui::CheckboxFlags("ImGuiWindowFlags_NoScrollbar", &flags, ImGuiWindowFlags_NoScrollbar); + ImGui::Unindent(); + + if (p_open && ImGui::Button("Close this window")) + *p_open = false; + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Manipulating Window Titles / ShowExampleAppWindowTitles() +//----------------------------------------------------------------------------- + +// Demonstrate the use of "##" and "###" in identifiers to manipulate ID generation. +// This applies to all regular items as well. +// Read FAQ section "How can I have multiple widgets with the same label?" for details. +static void ShowExampleAppWindowTitles(bool*) +{ + const ImGuiViewport* viewport = ImGui::GetMainViewport(); + const ImVec2 base_pos = viewport->Pos; + + // By default, Windows are uniquely identified by their title. + // You can use the "##" and "###" markers to manipulate the display/ID. + + // Using "##" to display same title but have unique identifier. + ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 100), ImGuiCond_FirstUseEver); + ImGui::Begin("Same title as another window##1"); + IMGUI_DEMO_MARKER("Examples/Manipulating window titles"); + ImGui::Text("This is window 1.\nMy title is the same as window 2, but my identifier is unique."); + ImGui::End(); + + ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 200), ImGuiCond_FirstUseEver); + ImGui::Begin("Same title as another window##2"); + ImGui::Text("This is window 2.\nMy title is the same as window 1, but my identifier is unique."); + ImGui::End(); + + // Using "###" to display a changing title but keep a static identifier "AnimatedTitle" + char buf[128]; + sprintf(buf, "Animated title %c %d###AnimatedTitle", "|/-\\"[(int)(ImGui::GetTime() / 0.25f) & 3], ImGui::GetFrameCount()); + ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 300), ImGuiCond_FirstUseEver); + ImGui::Begin(buf); + ImGui::Text("This window has a changing title."); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Custom Rendering using ImDrawList API / ShowExampleAppCustomRendering() +//----------------------------------------------------------------------------- + +// Demonstrate using the low-level ImDrawList to draw custom shapes. +static void ShowExampleAppCustomRendering(bool* p_open) +{ + if (!ImGui::Begin("Example: Custom rendering", p_open)) + { + ImGui::End(); + return; + } + IMGUI_DEMO_MARKER("Examples/Custom Rendering"); + + // Tip: If you do a lot of custom rendering, you probably want to use your own geometrical types and benefit of + // overloaded operators, etc. Define IM_VEC2_CLASS_EXTRA in imconfig.h to create implicit conversions between your + // types and ImVec2/ImVec4. Dear ImGui defines overloaded operators but they are internal to imgui.cpp and not + // exposed outside (to avoid messing with your types) In this example we are not using the maths operators! + + if (ImGui::BeginTabBar("##TabBar")) + { + if (ImGui::BeginTabItem("Primitives")) + { + ImGui::PushItemWidth(-ImGui::GetFontSize() * 15); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + + // Draw gradients + // (note that those are currently exacerbating our sRGB/Linear issues) + // Calling ImGui::GetColorU32() multiplies the given colors by the current Style Alpha, but you may pass the IM_COL32() directly as well.. + ImGui::Text("Gradients"); + ImVec2 gradient_size = ImVec2(ImGui::CalcItemWidth(), ImGui::GetFrameHeight()); + { + ImVec2 p0 = ImGui::GetCursorScreenPos(); + ImVec2 p1 = ImVec2(p0.x + gradient_size.x, p0.y + gradient_size.y); + ImU32 col_a = ImGui::GetColorU32(IM_COL32(0, 0, 0, 255)); + ImU32 col_b = ImGui::GetColorU32(IM_COL32(255, 255, 255, 255)); + draw_list->AddRectFilledMultiColor(p0, p1, col_a, col_b, col_b, col_a); + ImGui::InvisibleButton("##gradient1", gradient_size); + } + { + ImVec2 p0 = ImGui::GetCursorScreenPos(); + ImVec2 p1 = ImVec2(p0.x + gradient_size.x, p0.y + gradient_size.y); + ImU32 col_a = ImGui::GetColorU32(IM_COL32(0, 255, 0, 255)); + ImU32 col_b = ImGui::GetColorU32(IM_COL32(255, 0, 0, 255)); + draw_list->AddRectFilledMultiColor(p0, p1, col_a, col_b, col_b, col_a); + ImGui::InvisibleButton("##gradient2", gradient_size); + } + + // Draw a bunch of primitives + ImGui::Text("All primitives"); + static float sz = 36.0f; + static float thickness = 3.0f; + static int ngon_sides = 6; + static bool circle_segments_override = false; + static int circle_segments_override_v = 12; + static bool curve_segments_override = false; + static int curve_segments_override_v = 8; + static ImVec4 colf = ImVec4(1.0f, 1.0f, 0.4f, 1.0f); + ImGui::DragFloat("Size", &sz, 0.2f, 2.0f, 100.0f, "%.0f"); + ImGui::DragFloat("Thickness", &thickness, 0.05f, 1.0f, 8.0f, "%.02f"); + ImGui::SliderInt("N-gon sides", &ngon_sides, 3, 12); + ImGui::Checkbox("##circlesegmentoverride", &circle_segments_override); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + circle_segments_override |= ImGui::SliderInt("Circle segments override", &circle_segments_override_v, 3, 40); + ImGui::Checkbox("##curvessegmentoverride", &curve_segments_override); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + curve_segments_override |= ImGui::SliderInt("Curves segments override", &curve_segments_override_v, 3, 40); + ImGui::ColorEdit4("Color", &colf.x); + + const ImVec2 p = ImGui::GetCursorScreenPos(); + const ImU32 col = ImColor(colf); + const float spacing = 10.0f; + const ImDrawFlags corners_tl_br = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersBottomRight; + const float rounding = sz / 5.0f; + const int circle_segments = circle_segments_override ? circle_segments_override_v : 0; + const int curve_segments = curve_segments_override ? curve_segments_override_v : 0; + float x = p.x + 4.0f; + float y = p.y + 4.0f; + for (int n = 0; n < 2; n++) + { + // First line uses a thickness of 1.0f, second line uses the configurable thickness + float th = (n == 0) ? 1.0f : thickness; + draw_list->AddNgon(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, ngon_sides, th); x += sz + spacing; // N-gon + draw_list->AddCircle(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, circle_segments, th); x += sz + spacing; // Circle + draw_list->AddEllipse(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, sz*0.3f, col, -0.3f, circle_segments, th); x += sz + spacing; // Ellipse + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 0.0f, ImDrawFlags_None, th); x += sz + spacing; // Square + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, rounding, ImDrawFlags_None, th); x += sz + spacing; // Square with all rounded corners + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, rounding, corners_tl_br, th); x += sz + spacing; // Square with two rounded corners + draw_list->AddTriangle(ImVec2(x+sz*0.5f,y), ImVec2(x+sz, y+sz-0.5f), ImVec2(x, y+sz-0.5f), col, th);x += sz + spacing; // Triangle + //draw_list->AddTriangle(ImVec2(x+sz*0.2f,y), ImVec2(x, y+sz-0.5f), ImVec2(x+sz*0.4f, y+sz-0.5f), col, th);x+= sz*0.4f + spacing; // Thin triangle + draw_list->AddLine(ImVec2(x, y), ImVec2(x + sz, y), col, th); x += sz + spacing; // Horizontal line (note: drawing a filled rectangle will be faster!) + draw_list->AddLine(ImVec2(x, y), ImVec2(x, y + sz), col, th); x += spacing; // Vertical line (note: drawing a filled rectangle will be faster!) + draw_list->AddLine(ImVec2(x, y), ImVec2(x + sz, y + sz), col, th); x += sz + spacing; // Diagonal line + + // Quadratic Bezier Curve (3 control points) + ImVec2 cp3[3] = { ImVec2(x, y + sz * 0.6f), ImVec2(x + sz * 0.5f, y - sz * 0.4f), ImVec2(x + sz, y + sz) }; + draw_list->AddBezierQuadratic(cp3[0], cp3[1], cp3[2], col, th, curve_segments); x += sz + spacing; + + // Cubic Bezier Curve (4 control points) + ImVec2 cp4[4] = { ImVec2(x, y), ImVec2(x + sz * 1.3f, y + sz * 0.3f), ImVec2(x + sz - sz * 1.3f, y + sz - sz * 0.3f), ImVec2(x + sz, y + sz) }; + draw_list->AddBezierCubic(cp4[0], cp4[1], cp4[2], cp4[3], col, th, curve_segments); + + x = p.x + 4; + y += sz + spacing; + } + draw_list->AddNgonFilled(ImVec2(x + sz * 0.5f, y + sz * 0.5f), sz * 0.5f, col, ngon_sides); x += sz + spacing; // N-gon + draw_list->AddCircleFilled(ImVec2(x + sz * 0.5f, y + sz * 0.5f), sz * 0.5f, col, circle_segments); x += sz + spacing; // Circle + draw_list->AddEllipseFilled(ImVec2(x + sz * 0.5f, y + sz * 0.5f), sz * 0.5f, sz * 0.3f, col, -0.3f, circle_segments); x += sz + spacing;// Ellipse + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col); x += sz + spacing; // Square + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f); x += sz + spacing; // Square with all rounded corners + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f, corners_tl_br); x += sz + spacing; // Square with two rounded corners + draw_list->AddTriangleFilled(ImVec2(x+sz*0.5f,y), ImVec2(x+sz, y+sz-0.5f), ImVec2(x, y+sz-0.5f), col); x += sz + spacing; // Triangle + //draw_list->AddTriangleFilled(ImVec2(x+sz*0.2f,y), ImVec2(x, y+sz-0.5f), ImVec2(x+sz*0.4f, y+sz-0.5f), col); x += sz*0.4f + spacing; // Thin triangle + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + thickness), col); x += sz + spacing; // Horizontal line (faster than AddLine, but only handle integer thickness) + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + thickness, y + sz), col); x += spacing * 2.0f;// Vertical line (faster than AddLine, but only handle integer thickness) + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + 1, y + 1), col); x += sz; // Pixel (faster than AddLine) + draw_list->AddRectFilledMultiColor(ImVec2(x, y), ImVec2(x + sz, y + sz), IM_COL32(0, 0, 0, 255), IM_COL32(255, 0, 0, 255), IM_COL32(255, 255, 0, 255), IM_COL32(0, 255, 0, 255)); + + ImGui::Dummy(ImVec2((sz + spacing) * 11.2f, (sz + spacing) * 3.0f)); + ImGui::PopItemWidth(); + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Canvas")) + { + static ImVector points; + static ImVec2 scrolling(0.0f, 0.0f); + static bool opt_enable_grid = true; + static bool opt_enable_context_menu = true; + static bool adding_line = false; + + ImGui::Checkbox("Enable grid", &opt_enable_grid); + ImGui::Checkbox("Enable context menu", &opt_enable_context_menu); + ImGui::Text("Mouse Left: drag to add lines,\nMouse Right: drag to scroll, click for context menu."); + + // Typically you would use a BeginChild()/EndChild() pair to benefit from a clipping region + own scrolling. + // Here we demonstrate that this can be replaced by simple offsetting + custom drawing + PushClipRect/PopClipRect() calls. + // To use a child window instead we could use, e.g: + // ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); // Disable padding + // ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 50, 50, 255)); // Set a background color + // ImGui::BeginChild("canvas", ImVec2(0.0f, 0.0f), true, ImGuiWindowFlags_NoMove); + // ImGui::PopStyleColor(); + // ImGui::PopStyleVar(); + // [...] + // ImGui::EndChild(); + + // Using InvisibleButton() as a convenience 1) it will advance the layout cursor and 2) allows us to use IsItemHovered()/IsItemActive() + ImVec2 canvas_p0 = ImGui::GetCursorScreenPos(); // ImDrawList API uses screen coordinates! + ImVec2 canvas_sz = ImGui::GetContentRegionAvail(); // Resize canvas to what's available + if (canvas_sz.x < 50.0f) canvas_sz.x = 50.0f; + if (canvas_sz.y < 50.0f) canvas_sz.y = 50.0f; + ImVec2 canvas_p1 = ImVec2(canvas_p0.x + canvas_sz.x, canvas_p0.y + canvas_sz.y); + + // Draw border and background color + ImGuiIO& io = ImGui::GetIO(); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + draw_list->AddRectFilled(canvas_p0, canvas_p1, IM_COL32(50, 50, 50, 255)); + draw_list->AddRect(canvas_p0, canvas_p1, IM_COL32(255, 255, 255, 255)); + + // This will catch our interactions + ImGui::InvisibleButton("canvas", canvas_sz, ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight); + const bool is_hovered = ImGui::IsItemHovered(); // Hovered + const bool is_active = ImGui::IsItemActive(); // Held + const ImVec2 origin(canvas_p0.x + scrolling.x, canvas_p0.y + scrolling.y); // Lock scrolled origin + const ImVec2 mouse_pos_in_canvas(io.MousePos.x - origin.x, io.MousePos.y - origin.y); + + // Add first and second point + if (is_hovered && !adding_line && ImGui::IsMouseClicked(ImGuiMouseButton_Left)) + { + points.push_back(mouse_pos_in_canvas); + points.push_back(mouse_pos_in_canvas); + adding_line = true; + } + if (adding_line) + { + points.back() = mouse_pos_in_canvas; + if (!ImGui::IsMouseDown(ImGuiMouseButton_Left)) + adding_line = false; + } + + // Pan (we use a zero mouse threshold when there's no context menu) + // You may decide to make that threshold dynamic based on whether the mouse is hovering something etc. + const float mouse_threshold_for_pan = opt_enable_context_menu ? -1.0f : 0.0f; + if (is_active && ImGui::IsMouseDragging(ImGuiMouseButton_Right, mouse_threshold_for_pan)) + { + scrolling.x += io.MouseDelta.x; + scrolling.y += io.MouseDelta.y; + } + + // Context menu (under default mouse threshold) + ImVec2 drag_delta = ImGui::GetMouseDragDelta(ImGuiMouseButton_Right); + if (opt_enable_context_menu && drag_delta.x == 0.0f && drag_delta.y == 0.0f) + ImGui::OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + if (ImGui::BeginPopup("context")) + { + if (adding_line) + points.resize(points.size() - 2); + adding_line = false; + if (ImGui::MenuItem("Remove one", NULL, false, points.Size > 0)) { points.resize(points.size() - 2); } + if (ImGui::MenuItem("Remove all", NULL, false, points.Size > 0)) { points.clear(); } + ImGui::EndPopup(); + } + + // Draw grid + all lines in the canvas + draw_list->PushClipRect(canvas_p0, canvas_p1, true); + if (opt_enable_grid) + { + const float GRID_STEP = 64.0f; + for (float x = fmodf(scrolling.x, GRID_STEP); x < canvas_sz.x; x += GRID_STEP) + draw_list->AddLine(ImVec2(canvas_p0.x + x, canvas_p0.y), ImVec2(canvas_p0.x + x, canvas_p1.y), IM_COL32(200, 200, 200, 40)); + for (float y = fmodf(scrolling.y, GRID_STEP); y < canvas_sz.y; y += GRID_STEP) + draw_list->AddLine(ImVec2(canvas_p0.x, canvas_p0.y + y), ImVec2(canvas_p1.x, canvas_p0.y + y), IM_COL32(200, 200, 200, 40)); + } + for (int n = 0; n < points.Size; n += 2) + draw_list->AddLine(ImVec2(origin.x + points[n].x, origin.y + points[n].y), ImVec2(origin.x + points[n + 1].x, origin.y + points[n + 1].y), IM_COL32(255, 255, 0, 255), 2.0f); + draw_list->PopClipRect(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("BG/FG draw lists")) + { + static bool draw_bg = true; + static bool draw_fg = true; + ImGui::Checkbox("Draw in Background draw list", &draw_bg); + ImGui::SameLine(); HelpMarker("The Background draw list will be rendered below every Dear ImGui windows."); + ImGui::Checkbox("Draw in Foreground draw list", &draw_fg); + ImGui::SameLine(); HelpMarker("The Foreground draw list will be rendered over every Dear ImGui windows."); + ImVec2 window_pos = ImGui::GetWindowPos(); + ImVec2 window_size = ImGui::GetWindowSize(); + ImVec2 window_center = ImVec2(window_pos.x + window_size.x * 0.5f, window_pos.y + window_size.y * 0.5f); + if (draw_bg) + ImGui::GetBackgroundDrawList()->AddCircle(window_center, window_size.x * 0.6f, IM_COL32(255, 0, 0, 200), 0, 10 + 4); + if (draw_fg) + ImGui::GetForegroundDrawList()->AddCircle(window_center, window_size.y * 0.6f, IM_COL32(0, 255, 0, 200), 0, 10); + ImGui::EndTabItem(); + } + + // Demonstrate out-of-order rendering via channels splitting + // We use functions in ImDrawList as each draw list contains a convenience splitter, + // but you can also instantiate your own ImDrawListSplitter if you need to nest them. + if (ImGui::BeginTabItem("Draw Channels")) + { + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + { + ImGui::Text("Blue shape is drawn first: appears in back"); + ImGui::Text("Red shape is drawn after: appears in front"); + ImVec2 p0 = ImGui::GetCursorScreenPos(); + draw_list->AddRectFilled(ImVec2(p0.x, p0.y), ImVec2(p0.x + 50, p0.y + 50), IM_COL32(0, 0, 255, 255)); // Blue + draw_list->AddRectFilled(ImVec2(p0.x + 25, p0.y + 25), ImVec2(p0.x + 75, p0.y + 75), IM_COL32(255, 0, 0, 255)); // Red + ImGui::Dummy(ImVec2(75, 75)); + } + ImGui::Separator(); + { + ImGui::Text("Blue shape is drawn first, into channel 1: appears in front"); + ImGui::Text("Red shape is drawn after, into channel 0: appears in back"); + ImVec2 p1 = ImGui::GetCursorScreenPos(); + + // Create 2 channels and draw a Blue shape THEN a Red shape. + // You can create any number of channels. Tables API use 1 channel per column in order to better batch draw calls. + draw_list->ChannelsSplit(2); + draw_list->ChannelsSetCurrent(1); + draw_list->AddRectFilled(ImVec2(p1.x, p1.y), ImVec2(p1.x + 50, p1.y + 50), IM_COL32(0, 0, 255, 255)); // Blue + draw_list->ChannelsSetCurrent(0); + draw_list->AddRectFilled(ImVec2(p1.x + 25, p1.y + 25), ImVec2(p1.x + 75, p1.y + 75), IM_COL32(255, 0, 0, 255)); // Red + + // Flatten/reorder channels. Red shape is in channel 0 and it appears below the Blue shape in channel 1. + // This works by copying draw indices only (vertices are not copied). + draw_list->ChannelsMerge(); + ImGui::Dummy(ImVec2(75, 75)); + ImGui::Text("After reordering, contents of channel 0 appears below channel 1."); + } + ImGui::EndTabItem(); + } + + ImGui::EndTabBar(); + } + + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Docking, DockSpace / ShowExampleAppDockSpace() +//----------------------------------------------------------------------------- + +// Demonstrate using DockSpace() to create an explicit docking node within an existing window. +// Note: You can use most Docking facilities without calling any API. You DO NOT need to call DockSpace() to use Docking! +// - Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking. +// - Drag from window menu button (upper-left button) to undock an entire node (all windows). +// - When io.ConfigDockingWithShift == true, you instead need to hold SHIFT to enable docking. +// About dockspaces: +// - Use DockSpace() to create an explicit dock node _within_ an existing window. +// - Use DockSpaceOverViewport() to create an explicit dock node covering the screen or a specific viewport. +// This is often used with ImGuiDockNodeFlags_PassthruCentralNode. +// - Important: Dockspaces need to be submitted _before_ any window they can host. Submit it early in your frame! (*) +// - Important: Dockspaces need to be kept alive if hidden, otherwise windows docked into it will be undocked. +// e.g. if you have multiple tabs with a dockspace inside each tab: submit the non-visible dockspaces with ImGuiDockNodeFlags_KeepAliveOnly. +// (*) because of this constraint, the implicit \"Debug\" window can not be docked into an explicit DockSpace() node, +// because that window is submitted as part of the part of the NewFrame() call. An easy workaround is that you can create +// your own implicit "Debug##2" window after calling DockSpace() and leave it in the window stack for anyone to use. +void ShowExampleAppDockSpace(bool* p_open) +{ + // READ THIS !!! + // TL;DR; this demo is more complicated than what most users you would normally use. + // If we remove all options we are showcasing, this demo would become: + // void ShowExampleAppDockSpace() + // { + // ImGui::DockSpaceOverViewport(ImGui::GetMainViewport()); + // } + // In most cases you should be able to just call DockSpaceOverViewport() and ignore all the code below! + // In this specific demo, we are not using DockSpaceOverViewport() because: + // - (1) we allow the host window to be floating/moveable instead of filling the viewport (when opt_fullscreen == false) + // - (2) we allow the host window to have padding (when opt_padding == true) + // - (3) we expose many flags and need a way to have them visible. + // - (4) we have a local menu bar in the host window (vs. you could use BeginMainMenuBar() + DockSpaceOverViewport() + // in your code, but we don't here because we allow the window to be floating) + + static bool opt_fullscreen = true; + static bool opt_padding = false; + static ImGuiDockNodeFlags dockspace_flags = ImGuiDockNodeFlags_None; + + // We are using the ImGuiWindowFlags_NoDocking flag to make the parent window not dockable into, + // because it would be confusing to have two docking targets within each others. + ImGuiWindowFlags window_flags = ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_NoDocking; + if (opt_fullscreen) + { + const ImGuiViewport* viewport = ImGui::GetMainViewport(); + ImGui::SetNextWindowPos(viewport->WorkPos); + ImGui::SetNextWindowSize(viewport->WorkSize); + ImGui::SetNextWindowViewport(viewport->ID); + ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); + ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f); + window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove; + window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoNavFocus; + } + else + { + dockspace_flags &= ~ImGuiDockNodeFlags_PassthruCentralNode; + } + + // When using ImGuiDockNodeFlags_PassthruCentralNode, DockSpace() will render our background + // and handle the pass-thru hole, so we ask Begin() to not render a background. + if (dockspace_flags & ImGuiDockNodeFlags_PassthruCentralNode) + window_flags |= ImGuiWindowFlags_NoBackground; + + // Important: note that we proceed even if Begin() returns false (aka window is collapsed). + // This is because we want to keep our DockSpace() active. If a DockSpace() is inactive, + // all active windows docked into it will lose their parent and become undocked. + // We cannot preserve the docking relationship between an active window and an inactive docking, otherwise + // any change of dockspace/settings would lead to windows being stuck in limbo and never being visible. + if (!opt_padding) + ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); + ImGui::Begin("DockSpace Demo", p_open, window_flags); + if (!opt_padding) + ImGui::PopStyleVar(); + + if (opt_fullscreen) + ImGui::PopStyleVar(2); + + // Submit the DockSpace + ImGuiIO& io = ImGui::GetIO(); + if (io.ConfigFlags & ImGuiConfigFlags_DockingEnable) + { + ImGuiID dockspace_id = ImGui::GetID("MyDockSpace"); + ImGui::DockSpace(dockspace_id, ImVec2(0.0f, 0.0f), dockspace_flags); + } + else + { + ShowDockingDisabledMessage(); + } + + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("Options")) + { + // Disabling fullscreen would allow the window to be moved to the front of other windows, + // which we can't undo at the moment without finer window depth/z control. + ImGui::MenuItem("Fullscreen", NULL, &opt_fullscreen); + ImGui::MenuItem("Padding", NULL, &opt_padding); + ImGui::Separator(); + + if (ImGui::MenuItem("Flag: NoDockingOverCentralNode", "", (dockspace_flags & ImGuiDockNodeFlags_NoDockingOverCentralNode) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_NoDockingOverCentralNode; } + if (ImGui::MenuItem("Flag: NoDockingSplit", "", (dockspace_flags & ImGuiDockNodeFlags_NoDockingSplit) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_NoDockingSplit; } + if (ImGui::MenuItem("Flag: NoUndocking", "", (dockspace_flags & ImGuiDockNodeFlags_NoUndocking) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_NoUndocking; } + if (ImGui::MenuItem("Flag: NoResize", "", (dockspace_flags & ImGuiDockNodeFlags_NoResize) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_NoResize; } + if (ImGui::MenuItem("Flag: AutoHideTabBar", "", (dockspace_flags & ImGuiDockNodeFlags_AutoHideTabBar) != 0)) { dockspace_flags ^= ImGuiDockNodeFlags_AutoHideTabBar; } + if (ImGui::MenuItem("Flag: PassthruCentralNode", "", (dockspace_flags & ImGuiDockNodeFlags_PassthruCentralNode) != 0, opt_fullscreen)) { dockspace_flags ^= ImGuiDockNodeFlags_PassthruCentralNode; } + ImGui::Separator(); + + if (ImGui::MenuItem("Close", NULL, false, p_open != NULL)) + *p_open = false; + ImGui::EndMenu(); + } + HelpMarker( + "When docking is enabled, you can ALWAYS dock MOST window into another! Try it now!" "\n" + "- Drag from window title bar or their tab to dock/undock." "\n" + "- Drag from window menu button (upper-left button) to undock an entire node (all windows)." "\n" + "- Hold SHIFT to disable docking (if io.ConfigDockingWithShift == false, default)" "\n" + "- Hold SHIFT to enable docking (if io.ConfigDockingWithShift == true)" "\n" + "This demo app has nothing to do with enabling docking!" "\n\n" + "This demo app only demonstrate the use of ImGui::DockSpace() which allows you to manually create a docking node _within_ another window." "\n\n" + "Read comments in ShowExampleAppDockSpace() for more details."); + + ImGui::EndMenuBar(); + } + + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Documents Handling / ShowExampleAppDocuments() +//----------------------------------------------------------------------------- + +// Simplified structure to mimic a Document model +struct MyDocument +{ + const char* Name; // Document title + bool Open; // Set when open (we keep an array of all available documents to simplify demo code!) + bool OpenPrev; // Copy of Open from last update. + bool Dirty; // Set when the document has been modified + bool WantClose; // Set when the document + ImVec4 Color; // An arbitrary variable associated to the document + + MyDocument(const char* name, bool open = true, const ImVec4& color = ImVec4(1.0f, 1.0f, 1.0f, 1.0f)) + { + Name = name; + Open = OpenPrev = open; + Dirty = false; + WantClose = false; + Color = color; + } + void DoOpen() { Open = true; } + void DoQueueClose() { WantClose = true; } + void DoForceClose() { Open = false; Dirty = false; } + void DoSave() { Dirty = false; } + + // Display placeholder contents for the Document + static void DisplayContents(MyDocument* doc) + { + ImGui::PushID(doc); + ImGui::Text("Document \"%s\"", doc->Name); + ImGui::PushStyleColor(ImGuiCol_Text, doc->Color); + ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); + ImGui::PopStyleColor(); + if (ImGui::Button("Modify", ImVec2(100, 0))) + doc->Dirty = true; + ImGui::SameLine(); + if (ImGui::Button("Save", ImVec2(100, 0))) + doc->DoSave(); + ImGui::ColorEdit3("color", &doc->Color.x); // Useful to test drag and drop and hold-dragged-to-open-tab behavior. + ImGui::PopID(); + } + + // Display context menu for the Document + static void DisplayContextMenu(MyDocument* doc) + { + if (!ImGui::BeginPopupContextItem()) + return; + + char buf[256]; + sprintf(buf, "Save %s", doc->Name); + if (ImGui::MenuItem(buf, "CTRL+S", false, doc->Open)) + doc->DoSave(); + if (ImGui::MenuItem("Close", "CTRL+W", false, doc->Open)) + doc->DoQueueClose(); + ImGui::EndPopup(); + } +}; + +struct ExampleAppDocuments +{ + ImVector Documents; + + ExampleAppDocuments() + { + Documents.push_back(MyDocument("Lettuce", true, ImVec4(0.4f, 0.8f, 0.4f, 1.0f))); + Documents.push_back(MyDocument("Eggplant", true, ImVec4(0.8f, 0.5f, 1.0f, 1.0f))); + Documents.push_back(MyDocument("Carrot", true, ImVec4(1.0f, 0.8f, 0.5f, 1.0f))); + Documents.push_back(MyDocument("Tomato", false, ImVec4(1.0f, 0.3f, 0.4f, 1.0f))); + Documents.push_back(MyDocument("A Rather Long Title", false)); + Documents.push_back(MyDocument("Some Document", false)); + } +}; + +// [Optional] Notify the system of Tabs/Windows closure that happened outside the regular tab interface. +// If a tab has been closed programmatically (aka closed from another source such as the Checkbox() in the demo, +// as opposed to clicking on the regular tab closing button) and stops being submitted, it will take a frame for +// the tab bar to notice its absence. During this frame there will be a gap in the tab bar, and if the tab that has +// disappeared was the selected one, the tab bar will report no selected tab during the frame. This will effectively +// give the impression of a flicker for one frame. +// We call SetTabItemClosed() to manually notify the Tab Bar or Docking system of removed tabs to avoid this glitch. +// Note that this completely optional, and only affect tab bars with the ImGuiTabBarFlags_Reorderable flag. +static void NotifyOfDocumentsClosedElsewhere(ExampleAppDocuments& app) +{ + for (MyDocument& doc : app.Documents) + { + if (!doc.Open && doc.OpenPrev) + ImGui::SetTabItemClosed(doc.Name); + doc.OpenPrev = doc.Open; + } +} + +void ShowExampleAppDocuments(bool* p_open) +{ + static ExampleAppDocuments app; + + // Options + enum Target + { + Target_None, + Target_Tab, // Create documents as local tab into a local tab bar + Target_DockSpaceAndWindow // Create documents as regular windows, and create an embedded dockspace + }; + static Target opt_target = Target_Tab; + static bool opt_reorderable = true; + static ImGuiTabBarFlags opt_fitting_flags = ImGuiTabBarFlags_FittingPolicyDefault_; + + // When (opt_target == Target_DockSpaceAndWindow) there is the possibily that one of our child Document window (e.g. "Eggplant") + // that we emit gets docked into the same spot as the parent window ("Example: Documents"). + // This would create a problematic feedback loop because selecting the "Eggplant" tab would make the "Example: Documents" tab + // not visible, which in turn would stop submitting the "Eggplant" window. + // We avoid this problem by submitting our documents window even if our parent window is not currently visible. + // Another solution may be to make the "Example: Documents" window use the ImGuiWindowFlags_NoDocking. + + bool window_contents_visible = ImGui::Begin("Example: Documents", p_open, ImGuiWindowFlags_MenuBar); + if (!window_contents_visible && opt_target != Target_DockSpaceAndWindow) + { + ImGui::End(); + return; + } + + // Menu + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + int open_count = 0; + for (MyDocument& doc : app.Documents) + open_count += doc.Open ? 1 : 0; + + if (ImGui::BeginMenu("Open", open_count < app.Documents.Size)) + { + for (MyDocument& doc : app.Documents) + if (!doc.Open && ImGui::MenuItem(doc.Name)) + doc.DoOpen(); + ImGui::EndMenu(); + } + if (ImGui::MenuItem("Close All Documents", NULL, false, open_count > 0)) + for (MyDocument& doc : app.Documents) + doc.DoQueueClose(); + if (ImGui::MenuItem("Exit", "Ctrl+F4") && p_open) + *p_open = false; + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + // [Debug] List documents with one checkbox for each + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument& doc = app.Documents[doc_n]; + if (doc_n > 0) + ImGui::SameLine(); + ImGui::PushID(&doc); + if (ImGui::Checkbox(doc.Name, &doc.Open)) + if (!doc.Open) + doc.DoForceClose(); + ImGui::PopID(); + } + ImGui::PushItemWidth(ImGui::GetFontSize() * 12); + ImGui::Combo("Output", (int*)&opt_target, "None\0TabBar+Tabs\0DockSpace+Window\0"); + ImGui::PopItemWidth(); + bool redock_all = false; + if (opt_target == Target_Tab) { ImGui::SameLine(); ImGui::Checkbox("Reorderable Tabs", &opt_reorderable); } + if (opt_target == Target_DockSpaceAndWindow) { ImGui::SameLine(); redock_all = ImGui::Button("Redock all"); } + + ImGui::Separator(); + + // About the ImGuiWindowFlags_UnsavedDocument / ImGuiTabItemFlags_UnsavedDocument flags. + // They have multiple effects: + // - Display a dot next to the title. + // - Tab is selected when clicking the X close button. + // - Closure is not assumed (will wait for user to stop submitting the tab). + // Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + // We need to assume closure by default otherwise waiting for "lack of submission" on the next frame would leave an empty + // hole for one-frame, both in the tab-bar and in tab-contents when closing a tab/window. + // The rarely used SetTabItemClosed() function is a way to notify of programmatic closure to avoid the one-frame hole. + + // Tabs + if (opt_target == Target_Tab) + { + ImGuiTabBarFlags tab_bar_flags = (opt_fitting_flags) | (opt_reorderable ? ImGuiTabBarFlags_Reorderable : 0); + if (ImGui::BeginTabBar("##tabs", tab_bar_flags)) + { + if (opt_reorderable) + NotifyOfDocumentsClosedElsewhere(app); + + // [DEBUG] Stress tests + //if ((ImGui::GetFrameCount() % 30) == 0) docs[1].Open ^= 1; // [DEBUG] Automatically show/hide a tab. Test various interactions e.g. dragging with this on. + //if (ImGui::GetIO().KeyCtrl) ImGui::SetTabItemSelected(docs[1].Name); // [DEBUG] Test SetTabItemSelected(), probably not very useful as-is anyway.. + + // Submit Tabs + for (MyDocument& doc : app.Documents) + { + if (!doc.Open) + continue; + + ImGuiTabItemFlags tab_flags = (doc.Dirty ? ImGuiTabItemFlags_UnsavedDocument : 0); + bool visible = ImGui::BeginTabItem(doc.Name, &doc.Open, tab_flags); + + // Cancel attempt to close when unsaved add to save queue so we can display a popup. + if (!doc.Open && doc.Dirty) + { + doc.Open = true; + doc.DoQueueClose(); + } + + MyDocument::DisplayContextMenu(&doc); + if (visible) + { + MyDocument::DisplayContents(&doc); + ImGui::EndTabItem(); + } + } + + ImGui::EndTabBar(); + } + } + else if (opt_target == Target_DockSpaceAndWindow) + { + if (ImGui::GetIO().ConfigFlags & ImGuiConfigFlags_DockingEnable) + { + NotifyOfDocumentsClosedElsewhere(app); + + // Create a DockSpace node where any window can be docked + ImGuiID dockspace_id = ImGui::GetID("MyDockSpace"); + ImGui::DockSpace(dockspace_id); + + // Create Windows + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (!doc->Open) + continue; + + ImGui::SetNextWindowDockID(dockspace_id, redock_all ? ImGuiCond_Always : ImGuiCond_FirstUseEver); + ImGuiWindowFlags window_flags = (doc->Dirty ? ImGuiWindowFlags_UnsavedDocument : 0); + bool visible = ImGui::Begin(doc->Name, &doc->Open, window_flags); + + // Cancel attempt to close when unsaved add to save queue so we can display a popup. + if (!doc->Open && doc->Dirty) + { + doc->Open = true; + doc->DoQueueClose(); + } + + MyDocument::DisplayContextMenu(doc); + if (visible) + MyDocument::DisplayContents(doc); + + ImGui::End(); + } + } + else + { + ShowDockingDisabledMessage(); + } + } + + // Early out other contents + if (!window_contents_visible) + { + ImGui::End(); + return; + } + + // Update closing queue + static ImVector close_queue; + if (close_queue.empty()) + { + // Close queue is locked once we started a popup + for (MyDocument& doc : app.Documents) + if (doc.WantClose) + { + doc.WantClose = false; + close_queue.push_back(&doc); + } + } + + // Display closing confirmation UI + if (!close_queue.empty()) + { + int close_queue_unsaved_documents = 0; + for (int n = 0; n < close_queue.Size; n++) + if (close_queue[n]->Dirty) + close_queue_unsaved_documents++; + + if (close_queue_unsaved_documents == 0) + { + // Close documents when all are unsaved + for (int n = 0; n < close_queue.Size; n++) + close_queue[n]->DoForceClose(); + close_queue.clear(); + } + else + { + if (!ImGui::IsPopupOpen("Save?")) + ImGui::OpenPopup("Save?"); + if (ImGui::BeginPopupModal("Save?", NULL, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::Text("Save change to the following items?"); + float item_height = ImGui::GetTextLineHeightWithSpacing(); + if (ImGui::BeginChildFrame(ImGui::GetID("frame"), ImVec2(-FLT_MIN, 6.25f * item_height))) + { + for (int n = 0; n < close_queue.Size; n++) + if (close_queue[n]->Dirty) + ImGui::Text("%s", close_queue[n]->Name); + } + ImGui::EndChildFrame(); + + ImVec2 button_size(ImGui::GetFontSize() * 7.0f, 0.0f); + if (ImGui::Button("Yes", button_size)) + { + for (int n = 0; n < close_queue.Size; n++) + { + if (close_queue[n]->Dirty) + close_queue[n]->DoSave(); + close_queue[n]->DoForceClose(); + } + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::SameLine(); + if (ImGui::Button("No", button_size)) + { + for (int n = 0; n < close_queue.Size; n++) + close_queue[n]->DoForceClose(); + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::SameLine(); + if (ImGui::Button("Cancel", button_size)) + { + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::EndPopup(); + } + } + } + + ImGui::End(); +} + +// End of Demo code +#else + +void ImGui::ShowAboutWindow(bool*) {} +void ImGui::ShowDemoWindow(bool*) {} +void ImGui::ShowUserGuide() {} +void ImGui::ShowStyleEditor(ImGuiStyle*) {} + +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/imgui_draw.cpp b/HexaGen.Tests/cpp2c/imgui/imgui_draw.cpp new file mode 100644 index 0000000..9a7a89b --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/imgui_draw.cpp @@ -0,0 +1,4327 @@ +// dear imgui, v1.90 WIP +// (drawing and font code) + +/* + +Index of this file: + +// [SECTION] STB libraries implementation +// [SECTION] Style functions +// [SECTION] ImDrawList +// [SECTION] ImDrawListSplitter +// [SECTION] ImDrawData +// [SECTION] Helpers ShadeVertsXXX functions +// [SECTION] ImFontConfig +// [SECTION] ImFontAtlas +// [SECTION] ImFontAtlas glyph ranges helpers +// [SECTION] ImFontGlyphRangesBuilder +// [SECTION] ImFont +// [SECTION] ImGui Internal Render Helpers +// [SECTION] Decompression code +// [SECTION] Default font data (ProggyClean.ttf) + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_internal.h" +#ifdef IMGUI_ENABLE_FREETYPE +#include "misc/freetype/imgui_freetype.h" +#endif + +#include // vsnprintf, sscanf, printf + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). [MSVC Static Analyzer) +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok. +#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wcomma" // warning: possible misuse of comma operator here +#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning: macro name is a reserved identifier +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#pragma clang diagnostic ignored "-Wreserved-identifier" // warning: identifier '_Xxx' is reserved because it starts with '_' followed by a capital letter +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wstack-protector" // warning: stack protector not protecting local variables: variable length buffer +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//------------------------------------------------------------------------- +// [SECTION] STB libraries implementation (for stb_truetype and stb_rect_pack) +//------------------------------------------------------------------------- + +// Compile time options: +//#define IMGUI_STB_NAMESPACE ImStb +//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" +//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION + +#ifdef IMGUI_STB_NAMESPACE +namespace IMGUI_STB_NAMESPACE +{ +#endif + +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 4456) // declaration of 'xx' hides previous local declaration +#pragma warning (disable: 6011) // (stb_rectpack) Dereferencing NULL pointer 'cur->next'. +#pragma warning (disable: 6385) // (stb_truetype) Reading invalid data from 'buffer': the readable size is '_Old_3`kernel_width' bytes, but '3' bytes may be read. +#pragma warning (disable: 28182) // (stb_rectpack) Dereferencing NULL pointer. 'cur' contains the same NULL value as 'cur->next' did. +#endif + +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-function" +#pragma clang diagnostic ignored "-Wmissing-prototypes" +#pragma clang diagnostic ignored "-Wimplicit-fallthrough" +#pragma clang diagnostic ignored "-Wcast-qual" // warning: cast from 'const xxxx *' to 'xxx *' drops const qualifier +#endif + +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wtype-limits" // warning: comparison is always true due to limited range of data type [-Wtype-limits] +#pragma GCC diagnostic ignored "-Wcast-qual" // warning: cast from type 'const xxxx *' to type 'xxxx *' casts away qualifiers +#endif + +#ifndef STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in another compilation unit +#define STBRP_STATIC +#define STBRP_ASSERT(x) do { IM_ASSERT(x); } while (0) +#define STBRP_SORT ImQsort +#define STB_RECT_PACK_IMPLEMENTATION +#endif +#ifdef IMGUI_STB_RECT_PACK_FILENAME +#include IMGUI_STB_RECT_PACK_FILENAME +#else +#include "imstb_rectpack.h" +#endif +#endif + +#ifdef IMGUI_ENABLE_STB_TRUETYPE +#ifndef STB_TRUETYPE_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION // in case the user already have an implementation in another compilation unit +#define STBTT_malloc(x,u) ((void)(u), IM_ALLOC(x)) +#define STBTT_free(x,u) ((void)(u), IM_FREE(x)) +#define STBTT_assert(x) do { IM_ASSERT(x); } while(0) +#define STBTT_fmod(x,y) ImFmod(x,y) +#define STBTT_sqrt(x) ImSqrt(x) +#define STBTT_pow(x,y) ImPow(x,y) +#define STBTT_fabs(x) ImFabs(x) +#define STBTT_ifloor(x) ((int)ImFloor(x)) +#define STBTT_iceil(x) ((int)ImCeil(x)) +#define STBTT_STATIC +#define STB_TRUETYPE_IMPLEMENTATION +#else +#define STBTT_DEF extern +#endif +#ifdef IMGUI_STB_TRUETYPE_FILENAME +#include IMGUI_STB_TRUETYPE_FILENAME +#else +#include "imstb_truetype.h" +#endif +#endif +#endif // IMGUI_ENABLE_STB_TRUETYPE + +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#if defined(_MSC_VER) +#pragma warning (pop) +#endif + +#ifdef IMGUI_STB_NAMESPACE +} // namespace ImStb +using namespace IMGUI_STB_NAMESPACE; +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Style functions +//----------------------------------------------------------------------------- + +void ImGui::StyleColorsDark(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.06f, 0.06f, 0.06f, 0.94f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.08f, 0.08f, 0.08f, 0.94f); + colors[ImGuiCol_Border] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.16f, 0.29f, 0.48f, 0.54f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_TitleBg] = ImVec4(0.04f, 0.04f, 0.04f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.16f, 0.29f, 0.48f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.00f, 0.00f, 0.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.14f, 0.14f, 0.14f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.02f, 0.02f, 0.02f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.51f, 0.51f, 0.51f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.24f, 0.52f, 0.88f, 1.00f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Separator] = colors[ImGuiCol_Border]; + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.10f, 0.40f, 0.75f, 0.78f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.10f, 0.40f, 0.75f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.26f, 0.59f, 0.98f, 0.20f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_DockingPreview] = colors[ImGuiCol_HeaderActive] * ImVec4(1.0f, 1.0f, 1.0f, 0.7f); + colors[ImGuiCol_DockingEmptyBg] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f); + colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.19f, 0.19f, 0.20f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.31f, 0.31f, 0.35f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.23f, 0.23f, 0.25f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.00f, 1.00f, 1.00f, 0.06f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); + colors[ImGuiCol_NavHighlight] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f); +} + +void ImGui::StyleColorsClassic(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.85f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.11f, 0.11f, 0.14f, 0.92f); + colors[ImGuiCol_Border] = ImVec4(0.50f, 0.50f, 0.50f, 0.50f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.43f, 0.43f, 0.43f, 0.39f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.47f, 0.47f, 0.69f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.42f, 0.41f, 0.64f, 0.69f); + colors[ImGuiCol_TitleBg] = ImVec4(0.27f, 0.27f, 0.54f, 0.83f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.32f, 0.32f, 0.63f, 0.87f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.40f, 0.40f, 0.80f, 0.20f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.40f, 0.40f, 0.55f, 0.80f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.20f, 0.25f, 0.30f, 0.60f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.40f, 0.40f, 0.80f, 0.30f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.40f, 0.40f, 0.80f, 0.40f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); + colors[ImGuiCol_CheckMark] = ImVec4(0.90f, 0.90f, 0.90f, 0.50f); + colors[ImGuiCol_SliderGrab] = ImVec4(1.00f, 1.00f, 1.00f, 0.30f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); + colors[ImGuiCol_Button] = ImVec4(0.35f, 0.40f, 0.61f, 0.62f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.40f, 0.48f, 0.71f, 0.79f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.46f, 0.54f, 0.80f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.40f, 0.40f, 0.90f, 0.45f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.45f, 0.45f, 0.90f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.53f, 0.53f, 0.87f, 0.80f); + colors[ImGuiCol_Separator] = ImVec4(0.50f, 0.50f, 0.50f, 0.60f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.60f, 0.60f, 0.70f, 1.00f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.70f, 0.70f, 0.90f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(1.00f, 1.00f, 1.00f, 0.10f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.78f, 0.82f, 1.00f, 0.60f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.78f, 0.82f, 1.00f, 0.90f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_DockingPreview] = colors[ImGuiCol_Header] * ImVec4(1.0f, 1.0f, 1.0f, 0.7f); + colors[ImGuiCol_DockingEmptyBg] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f); + colors[ImGuiCol_PlotLines] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.27f, 0.27f, 0.38f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.31f, 0.31f, 0.45f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.26f, 0.26f, 0.28f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.00f, 1.00f, 1.00f, 0.07f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.00f, 0.00f, 1.00f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); + colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); +} + +// Those light colors are better suited with a thicker font than the default one + FrameBorder +void ImGui::StyleColorsLight(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.94f, 0.94f, 0.94f, 1.00f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(1.00f, 1.00f, 1.00f, 0.98f); + colors[ImGuiCol_Border] = ImVec4(0.00f, 0.00f, 0.00f, 0.30f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_TitleBg] = ImVec4(0.96f, 0.96f, 0.96f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.82f, 0.82f, 0.82f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 1.00f, 1.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.86f, 0.86f, 0.86f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.98f, 0.98f, 0.98f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.69f, 0.69f, 0.69f, 0.80f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.49f, 0.49f, 0.49f, 0.80f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.49f, 0.49f, 0.49f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.26f, 0.59f, 0.98f, 0.78f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.46f, 0.54f, 0.80f, 0.60f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Separator] = ImVec4(0.39f, 0.39f, 0.39f, 0.62f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.14f, 0.44f, 0.80f, 0.78f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.14f, 0.44f, 0.80f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.35f, 0.35f, 0.35f, 0.17f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.90f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_DockingPreview] = colors[ImGuiCol_Header] * ImVec4(1.0f, 1.0f, 1.0f, 0.7f); + colors[ImGuiCol_DockingEmptyBg] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f); + colors[ImGuiCol_PlotLines] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.45f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.78f, 0.87f, 0.98f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.57f, 0.57f, 0.64f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.68f, 0.68f, 0.74f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(0.30f, 0.30f, 0.30f, 0.09f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(0.70f, 0.70f, 0.70f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawList +//----------------------------------------------------------------------------- + +ImDrawListSharedData::ImDrawListSharedData() +{ + memset(this, 0, sizeof(*this)); + for (int i = 0; i < IM_ARRAYSIZE(ArcFastVtx); i++) + { + const float a = ((float)i * 2 * IM_PI) / (float)IM_ARRAYSIZE(ArcFastVtx); + ArcFastVtx[i] = ImVec2(ImCos(a), ImSin(a)); + } + ArcFastRadiusCutoff = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(IM_DRAWLIST_ARCFAST_SAMPLE_MAX, CircleSegmentMaxError); +} + +void ImDrawListSharedData::SetCircleTessellationMaxError(float max_error) +{ + if (CircleSegmentMaxError == max_error) + return; + + IM_ASSERT(max_error > 0.0f); + CircleSegmentMaxError = max_error; + for (int i = 0; i < IM_ARRAYSIZE(CircleSegmentCounts); i++) + { + const float radius = (float)i; + CircleSegmentCounts[i] = (ImU8)((i > 0) ? IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, CircleSegmentMaxError) : IM_DRAWLIST_ARCFAST_SAMPLE_MAX); + } + ArcFastRadiusCutoff = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(IM_DRAWLIST_ARCFAST_SAMPLE_MAX, CircleSegmentMaxError); +} + +// Initialize before use in a new frame. We always have a command ready in the buffer. +void ImDrawList::_ResetForNewFrame() +{ + // Verify that the ImDrawCmd fields we want to memcmp() are contiguous in memory. + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4)); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); + if (_Splitter._Count > 1) + _Splitter.Merge(this); + + CmdBuffer.resize(0); + IdxBuffer.resize(0); + VtxBuffer.resize(0); + Flags = _Data->InitialFlags; + memset(&_CmdHeader, 0, sizeof(_CmdHeader)); + _VtxCurrentIdx = 0; + _VtxWritePtr = NULL; + _IdxWritePtr = NULL; + _ClipRectStack.resize(0); + _TextureIdStack.resize(0); + _Path.resize(0); + _Splitter.Clear(); + CmdBuffer.push_back(ImDrawCmd()); + _FringeScale = 1.0f; +} + +void ImDrawList::_ClearFreeMemory() +{ + CmdBuffer.clear(); + IdxBuffer.clear(); + VtxBuffer.clear(); + Flags = ImDrawListFlags_None; + _VtxCurrentIdx = 0; + _VtxWritePtr = NULL; + _IdxWritePtr = NULL; + _ClipRectStack.clear(); + _TextureIdStack.clear(); + _Path.clear(); + _Splitter.ClearFreeMemory(); +} + +ImDrawList* ImDrawList::CloneOutput() const +{ + ImDrawList* dst = IM_NEW(ImDrawList(_Data)); + dst->CmdBuffer = CmdBuffer; + dst->IdxBuffer = IdxBuffer; + dst->VtxBuffer = VtxBuffer; + dst->Flags = Flags; + return dst; +} + +void ImDrawList::AddDrawCmd() +{ + ImDrawCmd draw_cmd; + draw_cmd.ClipRect = _CmdHeader.ClipRect; // Same as calling ImDrawCmd_HeaderCopy() + draw_cmd.TextureId = _CmdHeader.TextureId; + draw_cmd.VtxOffset = _CmdHeader.VtxOffset; + draw_cmd.IdxOffset = IdxBuffer.Size; + + IM_ASSERT(draw_cmd.ClipRect.x <= draw_cmd.ClipRect.z && draw_cmd.ClipRect.y <= draw_cmd.ClipRect.w); + CmdBuffer.push_back(draw_cmd); +} + +// Pop trailing draw command (used before merging or presenting to user) +// Note that this leaves the ImDrawList in a state unfit for further commands, as most code assume that CmdBuffer.Size > 0 && CmdBuffer.back().UserCallback == NULL +void ImDrawList::_PopUnusedDrawCmd() +{ + while (CmdBuffer.Size > 0) + { + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 || curr_cmd->UserCallback != NULL) + return;// break; + CmdBuffer.pop_back(); + } +} + +void ImDrawList::AddCallback(ImDrawCallback callback, void* callback_data) +{ + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + IM_ASSERT(curr_cmd->UserCallback == NULL); + if (curr_cmd->ElemCount != 0) + { + AddDrawCmd(); + curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + } + curr_cmd->UserCallback = callback; + curr_cmd->UserCallbackData = callback_data; + + AddDrawCmd(); // Force a new command after us (see comment below) +} + +// Compare ClipRect, TextureId and VtxOffset with a single memcmp() +#define ImDrawCmd_HeaderSize (IM_OFFSETOF(ImDrawCmd, VtxOffset) + sizeof(unsigned int)) +#define ImDrawCmd_HeaderCompare(CMD_LHS, CMD_RHS) (memcmp(CMD_LHS, CMD_RHS, ImDrawCmd_HeaderSize)) // Compare ClipRect, TextureId, VtxOffset +#define ImDrawCmd_HeaderCopy(CMD_DST, CMD_SRC) (memcpy(CMD_DST, CMD_SRC, ImDrawCmd_HeaderSize)) // Copy ClipRect, TextureId, VtxOffset +#define ImDrawCmd_AreSequentialIdxOffset(CMD_0, CMD_1) (CMD_0->IdxOffset + CMD_0->ElemCount == CMD_1->IdxOffset) + +// Try to merge two last draw commands +void ImDrawList::_TryMergeDrawCmds() +{ + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (ImDrawCmd_HeaderCompare(curr_cmd, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && curr_cmd->UserCallback == NULL && prev_cmd->UserCallback == NULL) + { + prev_cmd->ElemCount += curr_cmd->ElemCount; + CmdBuffer.pop_back(); + } +} + +// Our scheme may appears a bit unusual, basically we want the most-common calls AddLine AddRect etc. to not have to perform any check so we always have a command ready in the stack. +// The cost of figuring out if a new command has to be added or if we can merge is paid in those Update** functions only. +void ImDrawList::_OnChangedClipRect() +{ + // If current command is used with different settings we need to add a new command + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 && memcmp(&curr_cmd->ClipRect, &_CmdHeader.ClipRect, sizeof(ImVec4)) != 0) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + + // Try to merge with previous command if it matches, else use current command + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) + { + CmdBuffer.pop_back(); + return; + } + + curr_cmd->ClipRect = _CmdHeader.ClipRect; +} + +void ImDrawList::_OnChangedTextureID() +{ + // If current command is used with different settings we need to add a new command + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 && curr_cmd->TextureId != _CmdHeader.TextureId) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + + // Try to merge with previous command if it matches, else use current command + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) + { + CmdBuffer.pop_back(); + return; + } + + curr_cmd->TextureId = _CmdHeader.TextureId; +} + +void ImDrawList::_OnChangedVtxOffset() +{ + // We don't need to compare curr_cmd->VtxOffset != _CmdHeader.VtxOffset because we know it'll be different at the time we call this. + _VtxCurrentIdx = 0; + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + //IM_ASSERT(curr_cmd->VtxOffset != _CmdHeader.VtxOffset); // See #3349 + if (curr_cmd->ElemCount != 0) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + curr_cmd->VtxOffset = _CmdHeader.VtxOffset; +} + +int ImDrawList::_CalcCircleAutoSegmentCount(float radius) const +{ + // Automatic segment count + const int radius_idx = (int)(radius + 0.999999f); // ceil to never reduce accuracy + if (radius_idx >= 0 && radius_idx < IM_ARRAYSIZE(_Data->CircleSegmentCounts)) + return _Data->CircleSegmentCounts[radius_idx]; // Use cached value + else + return IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, _Data->CircleSegmentMaxError); +} + +// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) +void ImDrawList::PushClipRect(const ImVec2& cr_min, const ImVec2& cr_max, bool intersect_with_current_clip_rect) +{ + ImVec4 cr(cr_min.x, cr_min.y, cr_max.x, cr_max.y); + if (intersect_with_current_clip_rect) + { + ImVec4 current = _CmdHeader.ClipRect; + if (cr.x < current.x) cr.x = current.x; + if (cr.y < current.y) cr.y = current.y; + if (cr.z > current.z) cr.z = current.z; + if (cr.w > current.w) cr.w = current.w; + } + cr.z = ImMax(cr.x, cr.z); + cr.w = ImMax(cr.y, cr.w); + + _ClipRectStack.push_back(cr); + _CmdHeader.ClipRect = cr; + _OnChangedClipRect(); +} + +void ImDrawList::PushClipRectFullScreen() +{ + PushClipRect(ImVec2(_Data->ClipRectFullscreen.x, _Data->ClipRectFullscreen.y), ImVec2(_Data->ClipRectFullscreen.z, _Data->ClipRectFullscreen.w)); +} + +void ImDrawList::PopClipRect() +{ + _ClipRectStack.pop_back(); + _CmdHeader.ClipRect = (_ClipRectStack.Size == 0) ? _Data->ClipRectFullscreen : _ClipRectStack.Data[_ClipRectStack.Size - 1]; + _OnChangedClipRect(); +} + +void ImDrawList::PushTextureID(ImTextureID texture_id) +{ + _TextureIdStack.push_back(texture_id); + _CmdHeader.TextureId = texture_id; + _OnChangedTextureID(); +} + +void ImDrawList::PopTextureID() +{ + _TextureIdStack.pop_back(); + _CmdHeader.TextureId = (_TextureIdStack.Size == 0) ? (ImTextureID)NULL : _TextureIdStack.Data[_TextureIdStack.Size - 1]; + _OnChangedTextureID(); +} + +// Reserve space for a number of vertices and indices. +// You must finish filling your reserved data before calling PrimReserve() again, as it may reallocate or +// submit the intermediate results. PrimUnreserve() can be used to release unused allocations. +void ImDrawList::PrimReserve(int idx_count, int vtx_count) +{ + // Large mesh support (when enabled) + IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); + if (sizeof(ImDrawIdx) == 2 && (_VtxCurrentIdx + vtx_count >= (1 << 16)) && (Flags & ImDrawListFlags_AllowVtxOffset)) + { + // FIXME: In theory we should be testing that vtx_count <64k here. + // In practice, RenderText() relies on reserving ahead for a worst case scenario so it is currently useful for us + // to not make that check until we rework the text functions to handle clipping and large horizontal lines better. + _CmdHeader.VtxOffset = VtxBuffer.Size; + _OnChangedVtxOffset(); + } + + ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + draw_cmd->ElemCount += idx_count; + + int vtx_buffer_old_size = VtxBuffer.Size; + VtxBuffer.resize(vtx_buffer_old_size + vtx_count); + _VtxWritePtr = VtxBuffer.Data + vtx_buffer_old_size; + + int idx_buffer_old_size = IdxBuffer.Size; + IdxBuffer.resize(idx_buffer_old_size + idx_count); + _IdxWritePtr = IdxBuffer.Data + idx_buffer_old_size; +} + +// Release the a number of reserved vertices/indices from the end of the last reservation made with PrimReserve(). +void ImDrawList::PrimUnreserve(int idx_count, int vtx_count) +{ + IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); + + ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + draw_cmd->ElemCount -= idx_count; + VtxBuffer.shrink(VtxBuffer.Size - vtx_count); + IdxBuffer.shrink(IdxBuffer.Size - idx_count); +} + +// Fully unrolled with inline call to keep our debug builds decently fast. +void ImDrawList::PrimRect(const ImVec2& a, const ImVec2& c, ImU32 col) +{ + ImVec2 b(c.x, a.y), d(a.x, c.y), uv(_Data->TexUvWhitePixel); + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +void ImDrawList::PrimRectUV(const ImVec2& a, const ImVec2& c, const ImVec2& uv_a, const ImVec2& uv_c, ImU32 col) +{ + ImVec2 b(c.x, a.y), d(a.x, c.y), uv_b(uv_c.x, uv_a.y), uv_d(uv_a.x, uv_c.y); + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +void ImDrawList::PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col) +{ + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +// On AddPolyline() and AddConvexPolyFilled() we intentionally avoid using ImVec2 and superfluous function calls to optimize debug/non-inlined builds. +// - Those macros expects l-values and need to be used as their own statement. +// - Those macros are intentionally not surrounded by the 'do {} while (0)' idiom because even that translates to runtime with debug compilers. +#define IM_NORMALIZE2F_OVER_ZERO(VX,VY) { float d2 = VX*VX + VY*VY; if (d2 > 0.0f) { float inv_len = ImRsqrt(d2); VX *= inv_len; VY *= inv_len; } } (void)0 +#define IM_FIXNORMAL2F_MAX_INVLEN2 100.0f // 500.0f (see #4053, #3366) +#define IM_FIXNORMAL2F(VX,VY) { float d2 = VX*VX + VY*VY; if (d2 > 0.000001f) { float inv_len2 = 1.0f / d2; if (inv_len2 > IM_FIXNORMAL2F_MAX_INVLEN2) inv_len2 = IM_FIXNORMAL2F_MAX_INVLEN2; VX *= inv_len2; VY *= inv_len2; } } (void)0 + +// TODO: Thickness anti-aliased lines cap are missing their AA fringe. +// We avoid using the ImVec2 math operators here to reduce cost to a minimum for debug/non-inlined builds. +void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 col, ImDrawFlags flags, float thickness) +{ + if (points_count < 2 || (col & IM_COL32_A_MASK) == 0) + return; + + const bool closed = (flags & ImDrawFlags_Closed) != 0; + const ImVec2 opaque_uv = _Data->TexUvWhitePixel; + const int count = closed ? points_count : points_count - 1; // The number of line segments we need to draw + const bool thick_line = (thickness > _FringeScale); + + if (Flags & ImDrawListFlags_AntiAliasedLines) + { + // Anti-aliased stroke + const float AA_SIZE = _FringeScale; + const ImU32 col_trans = col & ~IM_COL32_A_MASK; + + // Thicknesses <1.0 should behave like thickness 1.0 + thickness = ImMax(thickness, 1.0f); + const int integer_thickness = (int)thickness; + const float fractional_thickness = thickness - integer_thickness; + + // Do we want to draw this line using a texture? + // - For now, only draw integer-width lines using textures to avoid issues with the way scaling occurs, could be improved. + // - If AA_SIZE is not 1.0f we cannot use the texture path. + const bool use_texture = (Flags & ImDrawListFlags_AntiAliasedLinesUseTex) && (integer_thickness < IM_DRAWLIST_TEX_LINES_WIDTH_MAX) && (fractional_thickness <= 0.00001f) && (AA_SIZE == 1.0f); + + // We should never hit this, because NewFrame() doesn't set ImDrawListFlags_AntiAliasedLinesUseTex unless ImFontAtlasFlags_NoBakedLines is off + IM_ASSERT_PARANOID(!use_texture || !(_Data->Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)); + + const int idx_count = use_texture ? (count * 6) : (thick_line ? count * 18 : count * 12); + const int vtx_count = use_texture ? (points_count * 2) : (thick_line ? points_count * 4 : points_count * 3); + PrimReserve(idx_count, vtx_count); + + // Temporary buffer + // The first items are normals at each line point, then after that there are either 2 or 4 temp points for each line point + _Data->TempBuffer.reserve_discard(points_count * ((use_texture || !thick_line) ? 3 : 5)); + ImVec2* temp_normals = _Data->TempBuffer.Data; + ImVec2* temp_points = temp_normals + points_count; + + // Calculate normals (tangents) for each line segment + for (int i1 = 0; i1 < count; i1++) + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; + float dx = points[i2].x - points[i1].x; + float dy = points[i2].y - points[i1].y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + temp_normals[i1].x = dy; + temp_normals[i1].y = -dx; + } + if (!closed) + temp_normals[points_count - 1] = temp_normals[points_count - 2]; + + // If we are drawing a one-pixel-wide line without a texture, or a textured line of any width, we only need 2 or 3 vertices per point + if (use_texture || !thick_line) + { + // [PATH 1] Texture-based lines (thick or non-thick) + // [PATH 2] Non texture-based lines (non-thick) + + // The width of the geometry we need to draw - this is essentially pixels for the line itself, plus "one pixel" for AA. + // - In the texture-based path, we don't use AA_SIZE here because the +1 is tied to the generated texture + // (see ImFontAtlasBuildRenderLinesTexData() function), and so alternate values won't work without changes to that code. + // - In the non texture-based paths, we would allow AA_SIZE to potentially be != 1.0f with a patch (e.g. fringe_scale patch to + // allow scaling geometry while preserving one-screen-pixel AA fringe). + const float half_draw_size = use_texture ? ((thickness * 0.5f) + 1) : AA_SIZE; + + // If line is not closed, the first and last points need to be generated differently as there are no normals to blend + if (!closed) + { + temp_points[0] = points[0] + temp_normals[0] * half_draw_size; + temp_points[1] = points[0] - temp_normals[0] * half_draw_size; + temp_points[(points_count-1)*2+0] = points[points_count-1] + temp_normals[points_count-1] * half_draw_size; + temp_points[(points_count-1)*2+1] = points[points_count-1] - temp_normals[points_count-1] * half_draw_size; + } + + // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges + // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) + // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. + unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment + for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; // i2 is the second point of the line segment + const unsigned int idx2 = ((i1 + 1) == points_count) ? _VtxCurrentIdx : (idx1 + (use_texture ? 2 : 3)); // Vertex index for end of segment + + // Average normals + float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; + float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + dm_x *= half_draw_size; // dm_x, dm_y are offset to the outer edge of the AA area + dm_y *= half_draw_size; + + // Add temporary vertexes for the outer edges + ImVec2* out_vtx = &temp_points[i2 * 2]; + out_vtx[0].x = points[i2].x + dm_x; + out_vtx[0].y = points[i2].y + dm_y; + out_vtx[1].x = points[i2].x - dm_x; + out_vtx[1].y = points[i2].y - dm_y; + + if (use_texture) + { + // Add indices for two triangles + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 1); // Right tri + _IdxWritePtr[3] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[4] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Left tri + _IdxWritePtr += 6; + } + else + { + // Add indexes for four triangles + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); // Right tri 1 + _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Right tri 2 + _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); // Left tri 1 + _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); // Left tri 2 + _IdxWritePtr += 12; + } + + idx1 = idx2; + } + + // Add vertexes for each point on the line + if (use_texture) + { + // If we're using textures we only need to emit the left/right edge vertices + ImVec4 tex_uvs = _Data->TexUvLines[integer_thickness]; + /*if (fractional_thickness != 0.0f) // Currently always zero when use_texture==false! + { + const ImVec4 tex_uvs_1 = _Data->TexUvLines[integer_thickness + 1]; + tex_uvs.x = tex_uvs.x + (tex_uvs_1.x - tex_uvs.x) * fractional_thickness; // inlined ImLerp() + tex_uvs.y = tex_uvs.y + (tex_uvs_1.y - tex_uvs.y) * fractional_thickness; + tex_uvs.z = tex_uvs.z + (tex_uvs_1.z - tex_uvs.z) * fractional_thickness; + tex_uvs.w = tex_uvs.w + (tex_uvs_1.w - tex_uvs.w) * fractional_thickness; + }*/ + ImVec2 tex_uv0(tex_uvs.x, tex_uvs.y); + ImVec2 tex_uv1(tex_uvs.z, tex_uvs.w); + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = temp_points[i * 2 + 0]; _VtxWritePtr[0].uv = tex_uv0; _VtxWritePtr[0].col = col; // Left-side outer edge + _VtxWritePtr[1].pos = temp_points[i * 2 + 1]; _VtxWritePtr[1].uv = tex_uv1; _VtxWritePtr[1].col = col; // Right-side outer edge + _VtxWritePtr += 2; + } + } + else + { + // If we're not using a texture, we need the center vertex as well + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; // Center of line + _VtxWritePtr[1].pos = temp_points[i * 2 + 0]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col_trans; // Left-side outer edge + _VtxWritePtr[2].pos = temp_points[i * 2 + 1]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col_trans; // Right-side outer edge + _VtxWritePtr += 3; + } + } + } + else + { + // [PATH 2] Non texture-based lines (thick): we need to draw the solid line core and thus require four vertices per point + const float half_inner_thickness = (thickness - AA_SIZE) * 0.5f; + + // If line is not closed, the first and last points need to be generated differently as there are no normals to blend + if (!closed) + { + const int points_last = points_count - 1; + temp_points[0] = points[0] + temp_normals[0] * (half_inner_thickness + AA_SIZE); + temp_points[1] = points[0] + temp_normals[0] * (half_inner_thickness); + temp_points[2] = points[0] - temp_normals[0] * (half_inner_thickness); + temp_points[3] = points[0] - temp_normals[0] * (half_inner_thickness + AA_SIZE); + temp_points[points_last * 4 + 0] = points[points_last] + temp_normals[points_last] * (half_inner_thickness + AA_SIZE); + temp_points[points_last * 4 + 1] = points[points_last] + temp_normals[points_last] * (half_inner_thickness); + temp_points[points_last * 4 + 2] = points[points_last] - temp_normals[points_last] * (half_inner_thickness); + temp_points[points_last * 4 + 3] = points[points_last] - temp_normals[points_last] * (half_inner_thickness + AA_SIZE); + } + + // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges + // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) + // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. + unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment + for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment + { + const int i2 = (i1 + 1) == points_count ? 0 : (i1 + 1); // i2 is the second point of the line segment + const unsigned int idx2 = (i1 + 1) == points_count ? _VtxCurrentIdx : (idx1 + 4); // Vertex index for end of segment + + // Average normals + float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; + float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + float dm_out_x = dm_x * (half_inner_thickness + AA_SIZE); + float dm_out_y = dm_y * (half_inner_thickness + AA_SIZE); + float dm_in_x = dm_x * half_inner_thickness; + float dm_in_y = dm_y * half_inner_thickness; + + // Add temporary vertices + ImVec2* out_vtx = &temp_points[i2 * 4]; + out_vtx[0].x = points[i2].x + dm_out_x; + out_vtx[0].y = points[i2].y + dm_out_y; + out_vtx[1].x = points[i2].x + dm_in_x; + out_vtx[1].y = points[i2].y + dm_in_y; + out_vtx[2].x = points[i2].x - dm_in_x; + out_vtx[2].y = points[i2].y - dm_in_y; + out_vtx[3].x = points[i2].x - dm_out_x; + out_vtx[3].y = points[i2].y - dm_out_y; + + // Add indexes + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); + _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 1); + _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); + _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); + _IdxWritePtr[12] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[13] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[14] = (ImDrawIdx)(idx1 + 3); + _IdxWritePtr[15] = (ImDrawIdx)(idx1 + 3); _IdxWritePtr[16] = (ImDrawIdx)(idx2 + 3); _IdxWritePtr[17] = (ImDrawIdx)(idx2 + 2); + _IdxWritePtr += 18; + + idx1 = idx2; + } + + // Add vertices + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = temp_points[i * 4 + 0]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col_trans; + _VtxWritePtr[1].pos = temp_points[i * 4 + 1]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = temp_points[i * 4 + 2]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = temp_points[i * 4 + 3]; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col_trans; + _VtxWritePtr += 4; + } + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } + else + { + // [PATH 4] Non texture-based, Non anti-aliased lines + const int idx_count = count * 6; + const int vtx_count = count * 4; // FIXME-OPT: Not sharing edges + PrimReserve(idx_count, vtx_count); + + for (int i1 = 0; i1 < count; i1++) + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; + const ImVec2& p1 = points[i1]; + const ImVec2& p2 = points[i2]; + + float dx = p2.x - p1.x; + float dy = p2.y - p1.y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + dx *= (thickness * 0.5f); + dy *= (thickness * 0.5f); + + _VtxWritePtr[0].pos.x = p1.x + dy; _VtxWritePtr[0].pos.y = p1.y - dx; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos.x = p2.x + dy; _VtxWritePtr[1].pos.y = p2.y - dx; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos.x = p2.x - dy; _VtxWritePtr[2].pos.y = p2.y + dx; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos.x = p1.x - dy; _VtxWritePtr[3].pos.y = p1.y + dx; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + + _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + 2); + _IdxWritePtr[3] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[4] = (ImDrawIdx)(_VtxCurrentIdx + 2); _IdxWritePtr[5] = (ImDrawIdx)(_VtxCurrentIdx + 3); + _IdxWritePtr += 6; + _VtxCurrentIdx += 4; + } + } +} + +// - We intentionally avoid using ImVec2 and its math operators here to reduce cost to a minimum for debug/non-inlined builds. +// - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. +void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_count, ImU32 col) +{ + if (points_count < 3 || (col & IM_COL32_A_MASK) == 0) + return; + + const ImVec2 uv = _Data->TexUvWhitePixel; + + if (Flags & ImDrawListFlags_AntiAliasedFill) + { + // Anti-aliased Fill + const float AA_SIZE = _FringeScale; + const ImU32 col_trans = col & ~IM_COL32_A_MASK; + const int idx_count = (points_count - 2)*3 + points_count * 6; + const int vtx_count = (points_count * 2); + PrimReserve(idx_count, vtx_count); + + // Add indexes for fill + unsigned int vtx_inner_idx = _VtxCurrentIdx; + unsigned int vtx_outer_idx = _VtxCurrentIdx + 1; + for (int i = 2; i < points_count; i++) + { + _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + ((i - 1) << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_inner_idx + (i << 1)); + _IdxWritePtr += 3; + } + + // Compute normals + _Data->TempBuffer.reserve_discard(points_count); + ImVec2* temp_normals = _Data->TempBuffer.Data; + for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) + { + const ImVec2& p0 = points[i0]; + const ImVec2& p1 = points[i1]; + float dx = p1.x - p0.x; + float dy = p1.y - p0.y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + temp_normals[i0].x = dy; + temp_normals[i0].y = -dx; + } + + for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) + { + // Average normals + const ImVec2& n0 = temp_normals[i0]; + const ImVec2& n1 = temp_normals[i1]; + float dm_x = (n0.x + n1.x) * 0.5f; + float dm_y = (n0.y + n1.y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + dm_x *= AA_SIZE * 0.5f; + dm_y *= AA_SIZE * 0.5f; + + // Add vertices + _VtxWritePtr[0].pos.x = (points[i1].x - dm_x); _VtxWritePtr[0].pos.y = (points[i1].y - dm_y); _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; // Inner + _VtxWritePtr[1].pos.x = (points[i1].x + dm_x); _VtxWritePtr[1].pos.y = (points[i1].y + dm_y); _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col_trans; // Outer + _VtxWritePtr += 2; + + // Add indexes for fringes + _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + (i0 << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); + _IdxWritePtr[3] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); _IdxWritePtr[4] = (ImDrawIdx)(vtx_outer_idx + (i1 << 1)); _IdxWritePtr[5] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); + _IdxWritePtr += 6; + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } + else + { + // Non Anti-aliased Fill + const int idx_count = (points_count - 2)*3; + const int vtx_count = points_count; + PrimReserve(idx_count, vtx_count); + for (int i = 0; i < vtx_count; i++) + { + _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; + _VtxWritePtr++; + } + for (int i = 2; i < points_count; i++) + { + _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + i - 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + i); + _IdxWritePtr += 3; + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } +} + +void ImDrawList::_PathArcToFastEx(const ImVec2& center, float radius, int a_min_sample, int a_max_sample, int a_step) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + // Calculate arc auto segment step size + if (a_step <= 0) + a_step = IM_DRAWLIST_ARCFAST_SAMPLE_MAX / _CalcCircleAutoSegmentCount(radius); + + // Make sure we never do steps larger than one quarter of the circle + a_step = ImClamp(a_step, 1, IM_DRAWLIST_ARCFAST_TABLE_SIZE / 4); + + const int sample_range = ImAbs(a_max_sample - a_min_sample); + const int a_next_step = a_step; + + int samples = sample_range + 1; + bool extra_max_sample = false; + if (a_step > 1) + { + samples = sample_range / a_step + 1; + const int overstep = sample_range % a_step; + + if (overstep > 0) + { + extra_max_sample = true; + samples++; + + // When we have overstep to avoid awkwardly looking one long line and one tiny one at the end, + // distribute first step range evenly between them by reducing first step size. + if (sample_range > 0) + a_step -= (a_step - overstep) / 2; + } + } + + _Path.resize(_Path.Size + samples); + ImVec2* out_ptr = _Path.Data + (_Path.Size - samples); + + int sample_index = a_min_sample; + if (sample_index < 0 || sample_index >= IM_DRAWLIST_ARCFAST_SAMPLE_MAX) + { + sample_index = sample_index % IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + if (sample_index < 0) + sample_index += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + } + + if (a_max_sample >= a_min_sample) + { + for (int a = a_min_sample; a <= a_max_sample; a += a_step, sample_index += a_step, a_step = a_next_step) + { + // a_step is clamped to IM_DRAWLIST_ARCFAST_SAMPLE_MAX, so we have guaranteed that it will not wrap over range twice or more + if (sample_index >= IM_DRAWLIST_ARCFAST_SAMPLE_MAX) + sample_index -= IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[sample_index]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + } + else + { + for (int a = a_min_sample; a >= a_max_sample; a -= a_step, sample_index -= a_step, a_step = a_next_step) + { + // a_step is clamped to IM_DRAWLIST_ARCFAST_SAMPLE_MAX, so we have guaranteed that it will not wrap over range twice or more + if (sample_index < 0) + sample_index += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[sample_index]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + } + + if (extra_max_sample) + { + int normalized_max_sample = a_max_sample % IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + if (normalized_max_sample < 0) + normalized_max_sample += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[normalized_max_sample]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + + IM_ASSERT_PARANOID(_Path.Data + _Path.Size == out_ptr); +} + +void ImDrawList::_PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + // Note that we are adding a point at both a_min and a_max. + // If you are trying to draw a full closed circle you don't want the overlapping points! + _Path.reserve(_Path.Size + (num_segments + 1)); + for (int i = 0; i <= num_segments; i++) + { + const float a = a_min + ((float)i / (float)num_segments) * (a_max - a_min); + _Path.push_back(ImVec2(center.x + ImCos(a) * radius, center.y + ImSin(a) * radius)); + } +} + +// 0: East, 3: South, 6: West, 9: North, 12: East +void ImDrawList::PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + _PathArcToFastEx(center, radius, a_min_of_12 * IM_DRAWLIST_ARCFAST_SAMPLE_MAX / 12, a_max_of_12 * IM_DRAWLIST_ARCFAST_SAMPLE_MAX / 12, 0); +} + +void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + if (num_segments > 0) + { + _PathArcToN(center, radius, a_min, a_max, num_segments); + return; + } + + // Automatic segment count + if (radius <= _Data->ArcFastRadiusCutoff) + { + const bool a_is_reverse = a_max < a_min; + + // We are going to use precomputed values for mid samples. + // Determine first and last sample in lookup table that belong to the arc. + const float a_min_sample_f = IM_DRAWLIST_ARCFAST_SAMPLE_MAX * a_min / (IM_PI * 2.0f); + const float a_max_sample_f = IM_DRAWLIST_ARCFAST_SAMPLE_MAX * a_max / (IM_PI * 2.0f); + + const int a_min_sample = a_is_reverse ? (int)ImFloor(a_min_sample_f) : (int)ImCeil(a_min_sample_f); + const int a_max_sample = a_is_reverse ? (int)ImCeil(a_max_sample_f) : (int)ImFloor(a_max_sample_f); + const int a_mid_samples = a_is_reverse ? ImMax(a_min_sample - a_max_sample, 0) : ImMax(a_max_sample - a_min_sample, 0); + + const float a_min_segment_angle = a_min_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + const float a_max_segment_angle = a_max_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + const bool a_emit_start = ImAbs(a_min_segment_angle - a_min) >= 1e-5f; + const bool a_emit_end = ImAbs(a_max - a_max_segment_angle) >= 1e-5f; + + _Path.reserve(_Path.Size + (a_mid_samples + 1 + (a_emit_start ? 1 : 0) + (a_emit_end ? 1 : 0))); + if (a_emit_start) + _Path.push_back(ImVec2(center.x + ImCos(a_min) * radius, center.y + ImSin(a_min) * radius)); + if (a_mid_samples > 0) + _PathArcToFastEx(center, radius, a_min_sample, a_max_sample, 0); + if (a_emit_end) + _Path.push_back(ImVec2(center.x + ImCos(a_max) * radius, center.y + ImSin(a_max) * radius)); + } + else + { + const float arc_length = ImAbs(a_max - a_min); + const int circle_segment_count = _CalcCircleAutoSegmentCount(radius); + const int arc_segment_count = ImMax((int)ImCeil(circle_segment_count * arc_length / (IM_PI * 2.0f)), (int)(2.0f * IM_PI / arc_length)); + _PathArcToN(center, radius, a_min, a_max, arc_segment_count); + } +} + +void ImDrawList::PathEllipticalArcTo(const ImVec2& center, float radius_x, float radius_y, float rot, float a_min, float a_max, int num_segments) +{ + if (num_segments <= 0) + num_segments = _CalcCircleAutoSegmentCount(ImMax(radius_x, radius_y)); // A bit pessimistic, maybe there's a better computation to do here. + + _Path.reserve(_Path.Size + (num_segments + 1)); + + const float cos_rot = ImCos(rot); + const float sin_rot = ImSin(rot); + for (int i = 0; i <= num_segments; i++) + { + const float a = a_min + ((float)i / (float)num_segments) * (a_max - a_min); + ImVec2 point(ImCos(a) * radius_x, ImSin(a) * radius_y); + const float rel_x = (point.x * cos_rot) - (point.y * sin_rot); + const float rel_y = (point.x * sin_rot) + (point.y * cos_rot); + point.x = rel_x + center.x; + point.y = rel_y + center.y; + _Path.push_back(point); + } +} + +ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t) +{ + float u = 1.0f - t; + float w1 = u * u * u; + float w2 = 3 * u * u * t; + float w3 = 3 * u * t * t; + float w4 = t * t * t; + return ImVec2(w1 * p1.x + w2 * p2.x + w3 * p3.x + w4 * p4.x, w1 * p1.y + w2 * p2.y + w3 * p3.y + w4 * p4.y); +} + +ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t) +{ + float u = 1.0f - t; + float w1 = u * u; + float w2 = 2 * u * t; + float w3 = t * t; + return ImVec2(w1 * p1.x + w2 * p2.x + w3 * p3.x, w1 * p1.y + w2 * p2.y + w3 * p3.y); +} + +// Closely mimics ImBezierCubicClosestPointCasteljau() in imgui.cpp +static void PathBezierCubicCurveToCasteljau(ImVector* path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) +{ + float dx = x4 - x1; + float dy = y4 - y1; + float d2 = (x2 - x4) * dy - (y2 - y4) * dx; + float d3 = (x3 - x4) * dy - (y3 - y4) * dx; + d2 = (d2 >= 0) ? d2 : -d2; + d3 = (d3 >= 0) ? d3 : -d3; + if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) + { + path->push_back(ImVec2(x4, y4)); + } + else if (level < 10) + { + float x12 = (x1 + x2) * 0.5f, y12 = (y1 + y2) * 0.5f; + float x23 = (x2 + x3) * 0.5f, y23 = (y2 + y3) * 0.5f; + float x34 = (x3 + x4) * 0.5f, y34 = (y3 + y4) * 0.5f; + float x123 = (x12 + x23) * 0.5f, y123 = (y12 + y23) * 0.5f; + float x234 = (x23 + x34) * 0.5f, y234 = (y23 + y34) * 0.5f; + float x1234 = (x123 + x234) * 0.5f, y1234 = (y123 + y234) * 0.5f; + PathBezierCubicCurveToCasteljau(path, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); + PathBezierCubicCurveToCasteljau(path, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); + } +} + +static void PathBezierQuadraticCurveToCasteljau(ImVector* path, float x1, float y1, float x2, float y2, float x3, float y3, float tess_tol, int level) +{ + float dx = x3 - x1, dy = y3 - y1; + float det = (x2 - x3) * dy - (y2 - y3) * dx; + if (det * det * 4.0f < tess_tol * (dx * dx + dy * dy)) + { + path->push_back(ImVec2(x3, y3)); + } + else if (level < 10) + { + float x12 = (x1 + x2) * 0.5f, y12 = (y1 + y2) * 0.5f; + float x23 = (x2 + x3) * 0.5f, y23 = (y2 + y3) * 0.5f; + float x123 = (x12 + x23) * 0.5f, y123 = (y12 + y23) * 0.5f; + PathBezierQuadraticCurveToCasteljau(path, x1, y1, x12, y12, x123, y123, tess_tol, level + 1); + PathBezierQuadraticCurveToCasteljau(path, x123, y123, x23, y23, x3, y3, tess_tol, level + 1); + } +} + +void ImDrawList::PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments) +{ + ImVec2 p1 = _Path.back(); + if (num_segments == 0) + { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); + PathBezierCubicCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, _Data->CurveTessellationTol, 0); // Auto-tessellated + } + else + { + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + _Path.push_back(ImBezierCubicCalc(p1, p2, p3, p4, t_step * i_step)); + } +} + +void ImDrawList::PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments) +{ + ImVec2 p1 = _Path.back(); + if (num_segments == 0) + { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); + PathBezierQuadraticCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, _Data->CurveTessellationTol, 0);// Auto-tessellated + } + else + { + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + _Path.push_back(ImBezierQuadraticCalc(p1, p2, p3, t_step * i_step)); + } +} + +static inline ImDrawFlags FixRectCornerFlags(ImDrawFlags flags) +{ + /* + IM_STATIC_ASSERT(ImDrawFlags_RoundCornersTopLeft == (1 << 4)); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + // Obsoleted in 1.82 (from February 2021). This code was stripped/simplified and mostly commented in 1.90 (from September 2023) + // - Legacy Support for hard coded ~0 (used to be a suggested equivalent to ImDrawCornerFlags_All) + if (flags == ~0) { return ImDrawFlags_RoundCornersAll; } + // - Legacy Support for hard coded 0x01 to 0x0F (matching 15 out of 16 old flags combinations). Read details in older version of this code. + if (flags >= 0x01 && flags <= 0x0F) { return (flags << 4); } + // We cannot support hard coded 0x00 with 'float rounding > 0.0f' --> replace with ImDrawFlags_RoundCornersNone or use 'float rounding = 0.0f' +#endif + */ + // If this assert triggers, please update your code replacing hardcoded values with new ImDrawFlags_RoundCorners* values. + // Note that ImDrawFlags_Closed (== 0x01) is an invalid flag for AddRect(), AddRectFilled(), PathRect() etc. anyway. + // See details in 1.82 Changelog as well as 2021/03/12 and 2023/09/08 entries in "API BREAKING CHANGES" section. + IM_ASSERT((flags & 0x0F) == 0 && "Misuse of legacy hardcoded ImDrawCornerFlags values!"); + + if ((flags & ImDrawFlags_RoundCornersMask_) == 0) + flags |= ImDrawFlags_RoundCornersAll; + + return flags; +} + +void ImDrawList::PathRect(const ImVec2& a, const ImVec2& b, float rounding, ImDrawFlags flags) +{ + if (rounding >= 0.5f) + { + flags = FixRectCornerFlags(flags); + rounding = ImMin(rounding, ImFabs(b.x - a.x) * (((flags & ImDrawFlags_RoundCornersTop) == ImDrawFlags_RoundCornersTop) || ((flags & ImDrawFlags_RoundCornersBottom) == ImDrawFlags_RoundCornersBottom) ? 0.5f : 1.0f) - 1.0f); + rounding = ImMin(rounding, ImFabs(b.y - a.y) * (((flags & ImDrawFlags_RoundCornersLeft) == ImDrawFlags_RoundCornersLeft) || ((flags & ImDrawFlags_RoundCornersRight) == ImDrawFlags_RoundCornersRight) ? 0.5f : 1.0f) - 1.0f); + } + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + PathLineTo(a); + PathLineTo(ImVec2(b.x, a.y)); + PathLineTo(b); + PathLineTo(ImVec2(a.x, b.y)); + } + else + { + const float rounding_tl = (flags & ImDrawFlags_RoundCornersTopLeft) ? rounding : 0.0f; + const float rounding_tr = (flags & ImDrawFlags_RoundCornersTopRight) ? rounding : 0.0f; + const float rounding_br = (flags & ImDrawFlags_RoundCornersBottomRight) ? rounding : 0.0f; + const float rounding_bl = (flags & ImDrawFlags_RoundCornersBottomLeft) ? rounding : 0.0f; + PathArcToFast(ImVec2(a.x + rounding_tl, a.y + rounding_tl), rounding_tl, 6, 9); + PathArcToFast(ImVec2(b.x - rounding_tr, a.y + rounding_tr), rounding_tr, 9, 12); + PathArcToFast(ImVec2(b.x - rounding_br, b.y - rounding_br), rounding_br, 0, 3); + PathArcToFast(ImVec2(a.x + rounding_bl, b.y - rounding_bl), rounding_bl, 3, 6); + } +} + +void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + PathLineTo(p1 + ImVec2(0.5f, 0.5f)); + PathLineTo(p2 + ImVec2(0.5f, 0.5f)); + PathStroke(col, 0, thickness); +} + +// p_min = upper-left, p_max = lower-right +// Note we don't render 1 pixels sized rectangles properly. +void ImDrawList::AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + if (Flags & ImDrawListFlags_AntiAliasedLines) + PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.50f, 0.50f), rounding, flags); + else + PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.49f, 0.49f), rounding, flags); // Better looking lower-right corner and rounded non-AA shapes. + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + PrimReserve(6, 4); + PrimRect(p_min, p_max, col); + } + else + { + PathRect(p_min, p_max, rounding, flags); + PathFillConvex(col); + } +} + +// p_min = upper-left, p_max = lower-right +void ImDrawList::AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left) +{ + if (((col_upr_left | col_upr_right | col_bot_right | col_bot_left) & IM_COL32_A_MASK) == 0) + return; + + const ImVec2 uv = _Data->TexUvWhitePixel; + PrimReserve(6, 4); + PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 1)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); + PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 3)); + PrimWriteVtx(p_min, uv, col_upr_left); + PrimWriteVtx(ImVec2(p_max.x, p_min.y), uv, col_upr_right); + PrimWriteVtx(p_max, uv, col_bot_right); + PrimWriteVtx(ImVec2(p_min.x, p_max.y), uv, col_bot_left); +} + +void ImDrawList::AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathLineTo(p4); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathLineTo(p4); + PathFillConvex(col); +} + +void ImDrawList::AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathFillConvex(col); +} + +void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) + return; + + if (num_segments <= 0) + { + // Use arc with automatic segment count + _PathArcToFastEx(center, radius - 0.5f, 0, IM_DRAWLIST_ARCFAST_SAMPLE_MAX, 0); + _Path.Size--; + } + else + { + // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) + num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); + } + + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) + return; + + if (num_segments <= 0) + { + // Use arc with automatic segment count + _PathArcToFastEx(center, radius, 0, IM_DRAWLIST_ARCFAST_SAMPLE_MAX, 0); + _Path.Size--; + } + else + { + // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) + num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); + } + + PathFillConvex(col); +} + +// Guaranteed to honor 'num_segments' +void ImDrawList::AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) + return; + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +// Guaranteed to honor 'num_segments' +void ImDrawList::AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) + return; + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); + PathFillConvex(col); +} + +// Ellipse +void ImDrawList::AddEllipse(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + if (num_segments <= 0) + num_segments = _CalcCircleAutoSegmentCount(ImMax(radius_x, radius_y)); // A bit pessimistic, maybe there's a better computation to do here. + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = IM_PI * 2.0f * ((float)num_segments - 1.0f) / (float)num_segments; + PathEllipticalArcTo(center, radius_x, radius_y, rot, 0.0f, a_max, num_segments - 1); + PathStroke(col, true, thickness); +} + +void ImDrawList::AddEllipseFilled(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + if (num_segments <= 0) + num_segments = _CalcCircleAutoSegmentCount(ImMax(radius_x, radius_y)); // A bit pessimistic, maybe there's a better computation to do here. + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = IM_PI * 2.0f * ((float)num_segments - 1.0f) / (float)num_segments; + PathEllipticalArcTo(center, radius_x, radius_y, rot, 0.0f, a_max, num_segments - 1); + PathFillConvex(col); +} + +// Cubic Bezier takes 4 controls points +void ImDrawList::AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathBezierCubicCurveTo(p2, p3, p4, num_segments); + PathStroke(col, 0, thickness); +} + +// Quadratic Bezier takes 3 controls points +void ImDrawList::AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathBezierQuadraticCurveTo(p2, p3, num_segments); + PathStroke(col, 0, thickness); +} + +void ImDrawList::AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + if (text_end == NULL) + text_end = text_begin + strlen(text_begin); + if (text_begin == text_end) + return; + + // Pull default font/size from the shared ImDrawListSharedData instance + if (font == NULL) + font = _Data->Font; + if (font_size == 0.0f) + font_size = _Data->FontSize; + + IM_ASSERT(font->ContainerAtlas->TexID == _CmdHeader.TextureId); // Use high-level ImGui::PushFont() or low-level ImDrawList::PushTextureId() to change font. + + ImVec4 clip_rect = _CmdHeader.ClipRect; + if (cpu_fine_clip_rect) + { + clip_rect.x = ImMax(clip_rect.x, cpu_fine_clip_rect->x); + clip_rect.y = ImMax(clip_rect.y, cpu_fine_clip_rect->y); + clip_rect.z = ImMin(clip_rect.z, cpu_fine_clip_rect->z); + clip_rect.w = ImMin(clip_rect.w, cpu_fine_clip_rect->w); + } + font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_clip_rect != NULL); +} + +void ImDrawList::AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end) +{ + AddText(NULL, 0.0f, pos, col, text_begin, text_end); +} + +void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + PrimReserve(6, 4); + PrimRectUV(p_min, p_max, uv_min, uv_max, col); + + if (push_texture_id) + PopTextureID(); +} + +void ImDrawList::AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1, const ImVec2& uv2, const ImVec2& uv3, const ImVec2& uv4, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + PrimReserve(6, 4); + PrimQuadUV(p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + + if (push_texture_id) + PopTextureID(); +} + +void ImDrawList::AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + flags = FixRectCornerFlags(flags); + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + AddImage(user_texture_id, p_min, p_max, uv_min, uv_max, col); + return; + } + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + int vert_start_idx = VtxBuffer.Size; + PathRect(p_min, p_max, rounding, flags); + PathFillConvex(col); + int vert_end_idx = VtxBuffer.Size; + ImGui::ShadeVertsLinearUV(this, vert_start_idx, vert_end_idx, p_min, p_max, uv_min, uv_max, true); + + if (push_texture_id) + PopTextureID(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawListSplitter +//----------------------------------------------------------------------------- +// FIXME: This may be a little confusing, trying to be a little too low-level/optimal instead of just doing vector swap.. +//----------------------------------------------------------------------------- + +void ImDrawListSplitter::ClearFreeMemory() +{ + for (int i = 0; i < _Channels.Size; i++) + { + if (i == _Current) + memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again + _Channels[i]._CmdBuffer.clear(); + _Channels[i]._IdxBuffer.clear(); + } + _Current = 0; + _Count = 1; + _Channels.clear(); +} + +void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count) +{ + IM_UNUSED(draw_list); + IM_ASSERT(_Current == 0 && _Count <= 1 && "Nested channel splitting is not supported. Please use separate instances of ImDrawListSplitter."); + int old_channels_count = _Channels.Size; + if (old_channels_count < channels_count) + { + _Channels.reserve(channels_count); // Avoid over reserving since this is likely to stay stable + _Channels.resize(channels_count); + } + _Count = channels_count; + + // Channels[] (24/32 bytes each) hold storage that we'll swap with draw_list->_CmdBuffer/_IdxBuffer + // The content of Channels[0] at this point doesn't matter. We clear it to make state tidy in a debugger but we don't strictly need to. + // When we switch to the next channel, we'll copy draw_list->_CmdBuffer/_IdxBuffer into Channels[0] and then Channels[1] into draw_list->CmdBuffer/_IdxBuffer + memset(&_Channels[0], 0, sizeof(ImDrawChannel)); + for (int i = 1; i < channels_count; i++) + { + if (i >= old_channels_count) + { + IM_PLACEMENT_NEW(&_Channels[i]) ImDrawChannel(); + } + else + { + _Channels[i]._CmdBuffer.resize(0); + _Channels[i]._IdxBuffer.resize(0); + } + } +} + +void ImDrawListSplitter::Merge(ImDrawList* draw_list) +{ + // Note that we never use or rely on _Channels.Size because it is merely a buffer that we never shrink back to 0 to keep all sub-buffers ready for use. + if (_Count <= 1) + return; + + SetCurrentChannel(draw_list, 0); + draw_list->_PopUnusedDrawCmd(); + + // Calculate our final buffer sizes. Also fix the incorrect IdxOffset values in each command. + int new_cmd_buffer_count = 0; + int new_idx_buffer_count = 0; + ImDrawCmd* last_cmd = (_Count > 0 && draw_list->CmdBuffer.Size > 0) ? &draw_list->CmdBuffer.back() : NULL; + int idx_offset = last_cmd ? last_cmd->IdxOffset + last_cmd->ElemCount : 0; + for (int i = 1; i < _Count; i++) + { + ImDrawChannel& ch = _Channels[i]; + if (ch._CmdBuffer.Size > 0 && ch._CmdBuffer.back().ElemCount == 0 && ch._CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() + ch._CmdBuffer.pop_back(); + + if (ch._CmdBuffer.Size > 0 && last_cmd != NULL) + { + // Do not include ImDrawCmd_AreSequentialIdxOffset() in the compare as we rebuild IdxOffset values ourselves. + // Manipulating IdxOffset (e.g. by reordering draw commands like done by RenderDimmedBackgroundBehindWindow()) is not supported within a splitter. + ImDrawCmd* next_cmd = &ch._CmdBuffer[0]; + if (ImDrawCmd_HeaderCompare(last_cmd, next_cmd) == 0 && last_cmd->UserCallback == NULL && next_cmd->UserCallback == NULL) + { + // Merge previous channel last draw command with current channel first draw command if matching. + last_cmd->ElemCount += next_cmd->ElemCount; + idx_offset += next_cmd->ElemCount; + ch._CmdBuffer.erase(ch._CmdBuffer.Data); // FIXME-OPT: Improve for multiple merges. + } + } + if (ch._CmdBuffer.Size > 0) + last_cmd = &ch._CmdBuffer.back(); + new_cmd_buffer_count += ch._CmdBuffer.Size; + new_idx_buffer_count += ch._IdxBuffer.Size; + for (int cmd_n = 0; cmd_n < ch._CmdBuffer.Size; cmd_n++) + { + ch._CmdBuffer.Data[cmd_n].IdxOffset = idx_offset; + idx_offset += ch._CmdBuffer.Data[cmd_n].ElemCount; + } + } + draw_list->CmdBuffer.resize(draw_list->CmdBuffer.Size + new_cmd_buffer_count); + draw_list->IdxBuffer.resize(draw_list->IdxBuffer.Size + new_idx_buffer_count); + + // Write commands and indices in order (they are fairly small structures, we don't copy vertices only indices) + ImDrawCmd* cmd_write = draw_list->CmdBuffer.Data + draw_list->CmdBuffer.Size - new_cmd_buffer_count; + ImDrawIdx* idx_write = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size - new_idx_buffer_count; + for (int i = 1; i < _Count; i++) + { + ImDrawChannel& ch = _Channels[i]; + if (int sz = ch._CmdBuffer.Size) { memcpy(cmd_write, ch._CmdBuffer.Data, sz * sizeof(ImDrawCmd)); cmd_write += sz; } + if (int sz = ch._IdxBuffer.Size) { memcpy(idx_write, ch._IdxBuffer.Data, sz * sizeof(ImDrawIdx)); idx_write += sz; } + } + draw_list->_IdxWritePtr = idx_write; + + // Ensure there's always a non-callback draw command trailing the command-buffer + if (draw_list->CmdBuffer.Size == 0 || draw_list->CmdBuffer.back().UserCallback != NULL) + draw_list->AddDrawCmd(); + + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount == 0) + ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset + else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) + draw_list->AddDrawCmd(); + + _Count = 1; +} + +void ImDrawListSplitter::SetCurrentChannel(ImDrawList* draw_list, int idx) +{ + IM_ASSERT(idx >= 0 && idx < _Count); + if (_Current == idx) + return; + + // Overwrite ImVector (12/16 bytes), four times. This is merely a silly optimization instead of doing .swap() + memcpy(&_Channels.Data[_Current]._CmdBuffer, &draw_list->CmdBuffer, sizeof(draw_list->CmdBuffer)); + memcpy(&_Channels.Data[_Current]._IdxBuffer, &draw_list->IdxBuffer, sizeof(draw_list->IdxBuffer)); + _Current = idx; + memcpy(&draw_list->CmdBuffer, &_Channels.Data[idx]._CmdBuffer, sizeof(draw_list->CmdBuffer)); + memcpy(&draw_list->IdxBuffer, &_Channels.Data[idx]._IdxBuffer, sizeof(draw_list->IdxBuffer)); + draw_list->_IdxWritePtr = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size; + + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = (draw_list->CmdBuffer.Size == 0) ? NULL : &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; + if (curr_cmd == NULL) + draw_list->AddDrawCmd(); + else if (curr_cmd->ElemCount == 0) + ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset + else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) + draw_list->AddDrawCmd(); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawData +//----------------------------------------------------------------------------- + +void ImDrawData::Clear() +{ + Valid = false; + CmdListsCount = TotalIdxCount = TotalVtxCount = 0; + CmdLists.resize(0); // The ImDrawList are NOT owned by ImDrawData but e.g. by ImGuiContext, so we don't clear them. + DisplayPos = DisplaySize = FramebufferScale = ImVec2(0.0f, 0.0f); + OwnerViewport = NULL; +} + +// Important: 'out_list' is generally going to be draw_data->CmdLists, but may be another temporary list +// as long at it is expected that the result will be later merged into draw_data->CmdLists[]. +void ImGui::AddDrawListToDrawDataEx(ImDrawData* draw_data, ImVector* out_list, ImDrawList* draw_list) +{ + if (draw_list->CmdBuffer.Size == 0) + return; + if (draw_list->CmdBuffer.Size == 1 && draw_list->CmdBuffer[0].ElemCount == 0 && draw_list->CmdBuffer[0].UserCallback == NULL) + return; + + // Draw list sanity check. Detect mismatch between PrimReserve() calls and incrementing _VtxCurrentIdx, _VtxWritePtr etc. + // May trigger for you if you are using PrimXXX functions incorrectly. + IM_ASSERT(draw_list->VtxBuffer.Size == 0 || draw_list->_VtxWritePtr == draw_list->VtxBuffer.Data + draw_list->VtxBuffer.Size); + IM_ASSERT(draw_list->IdxBuffer.Size == 0 || draw_list->_IdxWritePtr == draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size); + if (!(draw_list->Flags & ImDrawListFlags_AllowVtxOffset)) + IM_ASSERT((int)draw_list->_VtxCurrentIdx == draw_list->VtxBuffer.Size); + + // Check that draw_list doesn't use more vertices than indexable (default ImDrawIdx = unsigned short = 2 bytes = 64K vertices per ImDrawList = per window) + // If this assert triggers because you are drawing lots of stuff manually: + // - First, make sure you are coarse clipping yourself and not trying to draw many things outside visible bounds. + // Be mindful that the lower-level ImDrawList API doesn't filter vertices. Use the Metrics/Debugger window to inspect draw list contents. + // - If you want large meshes with more than 64K vertices, you can either: + // (A) Handle the ImDrawCmd::VtxOffset value in your renderer backend, and set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset'. + // Most example backends already support this from 1.71. Pre-1.71 backends won't. + // Some graphics API such as GL ES 1/2 don't have a way to offset the starting vertex so it is not supported for them. + // (B) Or handle 32-bit indices in your renderer backend, and uncomment '#define ImDrawIdx unsigned int' line in imconfig.h. + // Most example backends already support this. For example, the OpenGL example code detect index size at compile-time: + // glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer_offset); + // Your own engine or render API may use different parameters or function calls to specify index sizes. + // 2 and 4 bytes indices are generally supported by most graphics API. + // - If for some reason neither of those solutions works for you, a workaround is to call BeginChild()/EndChild() before reaching + // the 64K limit to split your draw commands in multiple draw lists. + if (sizeof(ImDrawIdx) == 2) + IM_ASSERT(draw_list->_VtxCurrentIdx < (1 << 16) && "Too many vertices in ImDrawList using 16-bit indices. Read comment above"); + + // Add to output list + records state in ImDrawData + out_list->push_back(draw_list); + draw_data->CmdListsCount++; + draw_data->TotalVtxCount += draw_list->VtxBuffer.Size; + draw_data->TotalIdxCount += draw_list->IdxBuffer.Size; +} + +void ImDrawData::AddDrawList(ImDrawList* draw_list) +{ + IM_ASSERT(CmdLists.Size == CmdListsCount); + draw_list->_PopUnusedDrawCmd(); + ImGui::AddDrawListToDrawDataEx(this, &CmdLists, draw_list); +} + +// For backward compatibility: convert all buffers from indexed to de-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! +void ImDrawData::DeIndexAllBuffers() +{ + ImVector new_vtx_buffer; + TotalVtxCount = TotalIdxCount = 0; + for (int i = 0; i < CmdListsCount; i++) + { + ImDrawList* cmd_list = CmdLists[i]; + if (cmd_list->IdxBuffer.empty()) + continue; + new_vtx_buffer.resize(cmd_list->IdxBuffer.Size); + for (int j = 0; j < cmd_list->IdxBuffer.Size; j++) + new_vtx_buffer[j] = cmd_list->VtxBuffer[cmd_list->IdxBuffer[j]]; + cmd_list->VtxBuffer.swap(new_vtx_buffer); + cmd_list->IdxBuffer.resize(0); + TotalVtxCount += cmd_list->VtxBuffer.Size; + } +} + +// Helper to scale the ClipRect field of each ImDrawCmd. +// Use if your final output buffer is at a different scale than draw_data->DisplaySize, +// or if there is a difference between your window resolution and framebuffer resolution. +void ImDrawData::ScaleClipRects(const ImVec2& fb_scale) +{ + for (ImDrawList* draw_list : CmdLists) + for (ImDrawCmd& cmd : draw_list->CmdBuffer) + cmd.ClipRect = ImVec4(cmd.ClipRect.x * fb_scale.x, cmd.ClipRect.y * fb_scale.y, cmd.ClipRect.z * fb_scale.x, cmd.ClipRect.w * fb_scale.y); +} + +//----------------------------------------------------------------------------- +// [SECTION] Helpers ShadeVertsXXX functions +//----------------------------------------------------------------------------- + +// Generic linear color gradient, write to RGB fields, leave A untouched. +void ImGui::ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1) +{ + ImVec2 gradient_extent = gradient_p1 - gradient_p0; + float gradient_inv_length2 = 1.0f / ImLengthSqr(gradient_extent); + ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; + ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; + const int col0_r = (int)(col0 >> IM_COL32_R_SHIFT) & 0xFF; + const int col0_g = (int)(col0 >> IM_COL32_G_SHIFT) & 0xFF; + const int col0_b = (int)(col0 >> IM_COL32_B_SHIFT) & 0xFF; + const int col_delta_r = ((int)(col1 >> IM_COL32_R_SHIFT) & 0xFF) - col0_r; + const int col_delta_g = ((int)(col1 >> IM_COL32_G_SHIFT) & 0xFF) - col0_g; + const int col_delta_b = ((int)(col1 >> IM_COL32_B_SHIFT) & 0xFF) - col0_b; + for (ImDrawVert* vert = vert_start; vert < vert_end; vert++) + { + float d = ImDot(vert->pos - gradient_p0, gradient_extent); + float t = ImClamp(d * gradient_inv_length2, 0.0f, 1.0f); + int r = (int)(col0_r + col_delta_r * t); + int g = (int)(col0_g + col_delta_g * t); + int b = (int)(col0_b + col_delta_b * t); + vert->col = (r << IM_COL32_R_SHIFT) | (g << IM_COL32_G_SHIFT) | (b << IM_COL32_B_SHIFT) | (vert->col & IM_COL32_A_MASK); + } +} + +// Distribute UV over (a, b) rectangle +void ImGui::ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp) +{ + const ImVec2 size = b - a; + const ImVec2 uv_size = uv_b - uv_a; + const ImVec2 scale = ImVec2( + size.x != 0.0f ? (uv_size.x / size.x) : 0.0f, + size.y != 0.0f ? (uv_size.y / size.y) : 0.0f); + + ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; + ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; + if (clamp) + { + const ImVec2 min = ImMin(uv_a, uv_b); + const ImVec2 max = ImMax(uv_a, uv_b); + for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) + vertex->uv = ImClamp(uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale), min, max); + } + else + { + for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) + vertex->uv = uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale); + } +} + +void ImGui::ShadeVertsTransformPos(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& pivot_in, float cos_a, float sin_a, const ImVec2& pivot_out) +{ + ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; + ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; + for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) + vertex->pos = ImRotate(vertex->pos- pivot_in, cos_a, sin_a) + pivot_out; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontConfig +//----------------------------------------------------------------------------- + +ImFontConfig::ImFontConfig() +{ + memset(this, 0, sizeof(*this)); + FontDataOwnedByAtlas = true; + OversampleH = 2; + OversampleV = 1; + GlyphMaxAdvanceX = FLT_MAX; + RasterizerMultiply = 1.0f; + EllipsisChar = (ImWchar)-1; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontAtlas +//----------------------------------------------------------------------------- + +// A work of art lies ahead! (. = white layer, X = black layer, others are blank) +// The 2x2 white texels on the top left are the ones we'll use everywhere in Dear ImGui to render filled shapes. +// (This is used when io.MouseDrawCursor = true) +const int FONT_ATLAS_DEFAULT_TEX_DATA_W = 122; // Actual texture will be 2 times that + 1 spacing. +const int FONT_ATLAS_DEFAULT_TEX_DATA_H = 27; +static const char FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS[FONT_ATLAS_DEFAULT_TEX_DATA_W * FONT_ATLAS_DEFAULT_TEX_DATA_H + 1] = +{ + "..- -XXXXXXX- X - X -XXXXXXX - XXXXXXX- XX - XX XX " + "..- -X.....X- X.X - X.X -X.....X - X.....X- X..X -X..X X..X" + "--- -XXX.XXX- X...X - X...X -X....X - X....X- X..X -X...X X...X" + "X - X.X - X.....X - X.....X -X...X - X...X- X..X - X...X X...X " + "XX - X.X -X.......X- X.......X -X..X.X - X.X..X- X..X - X...X...X " + "X.X - X.X -XXXX.XXXX- XXXX.XXXX -X.X X.X - X.X X.X- X..XXX - X.....X " + "X..X - X.X - X.X - X.X -XX X.X - X.X XX- X..X..XXX - X...X " + "X...X - X.X - X.X - XX X.X XX - X.X - X.X - X..X..X..XX - X.X " + "X....X - X.X - X.X - X.X X.X X.X - X.X - X.X - X..X..X..X.X - X...X " + "X.....X - X.X - X.X - X..X X.X X..X - X.X - X.X -XXX X..X..X..X..X- X.....X " + "X......X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X XX-XX X.X -X..XX........X..X- X...X...X " + "X.......X - X.X - X.X -X.....................X- X.X X.X-X.X X.X -X...X...........X- X...X X...X " + "X........X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X..X-X..X.X - X..............X-X...X X...X" + "X.........X -XXX.XXX- X.X - X..X X.X X..X - X...X-X...X - X.............X-X..X X..X" + "X..........X-X.....X- X.X - X.X X.X X.X - X....X-X....X - X.............X- XX XX " + "X......XXXXX-XXXXXXX- X.X - XX X.X XX - X.....X-X.....X - X............X--------------" + "X...X..X --------- X.X - X.X - XXXXXXX-XXXXXXX - X...........X - " + "X..X X..X - -XXXX.XXXX- XXXX.XXXX ------------------------------------- X..........X - " + "X.X X..X - -X.......X- X.......X - XX XX - - X..........X - " + "XX X..X - - X.....X - X.....X - X.X X.X - - X........X - " + " X..X - - X...X - X...X - X..X X..X - - X........X - " + " XX - - X.X - X.X - X...XXXXXXXXXXXXX...X - - XXXXXXXXXX - " + "------------- - X - X -X.....................X- ------------------- " + " ----------------------------------- X...XXXXXXXXXXXXX...X - " + " - X..X X..X - " + " - X.X X.X - " + " - XX XX - " +}; + +static const ImVec2 FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[ImGuiMouseCursor_COUNT][3] = +{ + // Pos ........ Size ......... Offset ...... + { ImVec2( 0,3), ImVec2(12,19), ImVec2( 0, 0) }, // ImGuiMouseCursor_Arrow + { ImVec2(13,0), ImVec2( 7,16), ImVec2( 1, 8) }, // ImGuiMouseCursor_TextInput + { ImVec2(31,0), ImVec2(23,23), ImVec2(11,11) }, // ImGuiMouseCursor_ResizeAll + { ImVec2(21,0), ImVec2( 9,23), ImVec2( 4,11) }, // ImGuiMouseCursor_ResizeNS + { ImVec2(55,18),ImVec2(23, 9), ImVec2(11, 4) }, // ImGuiMouseCursor_ResizeEW + { ImVec2(73,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNESW + { ImVec2(55,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNWSE + { ImVec2(91,0), ImVec2(17,22), ImVec2( 5, 0) }, // ImGuiMouseCursor_Hand + { ImVec2(109,0),ImVec2(13,15), ImVec2( 6, 7) }, // ImGuiMouseCursor_NotAllowed +}; + +ImFontAtlas::ImFontAtlas() +{ + memset(this, 0, sizeof(*this)); + TexGlyphPadding = 1; + PackIdMouseCursors = PackIdLines = -1; +} + +ImFontAtlas::~ImFontAtlas() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + Clear(); +} + +void ImFontAtlas::ClearInputData() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + for (ImFontConfig& font_cfg : ConfigData) + if (font_cfg.FontData && font_cfg.FontDataOwnedByAtlas) + { + IM_FREE(font_cfg.FontData); + font_cfg.FontData = NULL; + } + + // When clearing this we lose access to the font name and other information used to build the font. + for (ImFont* font : Fonts) + if (font->ConfigData >= ConfigData.Data && font->ConfigData < ConfigData.Data + ConfigData.Size) + { + font->ConfigData = NULL; + font->ConfigDataCount = 0; + } + ConfigData.clear(); + CustomRects.clear(); + PackIdMouseCursors = PackIdLines = -1; + // Important: we leave TexReady untouched +} + +void ImFontAtlas::ClearTexData() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + if (TexPixelsAlpha8) + IM_FREE(TexPixelsAlpha8); + if (TexPixelsRGBA32) + IM_FREE(TexPixelsRGBA32); + TexPixelsAlpha8 = NULL; + TexPixelsRGBA32 = NULL; + TexPixelsUseColors = false; + // Important: we leave TexReady untouched +} + +void ImFontAtlas::ClearFonts() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + Fonts.clear_delete(); + TexReady = false; +} + +void ImFontAtlas::Clear() +{ + ClearInputData(); + ClearTexData(); + ClearFonts(); +} + +void ImFontAtlas::GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +{ + // Build atlas on demand + if (TexPixelsAlpha8 == NULL) + Build(); + + *out_pixels = TexPixelsAlpha8; + if (out_width) *out_width = TexWidth; + if (out_height) *out_height = TexHeight; + if (out_bytes_per_pixel) *out_bytes_per_pixel = 1; +} + +void ImFontAtlas::GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +{ + // Convert to RGBA32 format on demand + // Although it is likely to be the most commonly used format, our font rendering is 1 channel / 8 bpp + if (!TexPixelsRGBA32) + { + unsigned char* pixels = NULL; + GetTexDataAsAlpha8(&pixels, NULL, NULL); + if (pixels) + { + TexPixelsRGBA32 = (unsigned int*)IM_ALLOC((size_t)TexWidth * (size_t)TexHeight * 4); + const unsigned char* src = pixels; + unsigned int* dst = TexPixelsRGBA32; + for (int n = TexWidth * TexHeight; n > 0; n--) + *dst++ = IM_COL32(255, 255, 255, (unsigned int)(*src++)); + } + } + + *out_pixels = (unsigned char*)TexPixelsRGBA32; + if (out_width) *out_width = TexWidth; + if (out_height) *out_height = TexHeight; + if (out_bytes_per_pixel) *out_bytes_per_pixel = 4; +} + +ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + IM_ASSERT(font_cfg->FontData != NULL && font_cfg->FontDataSize > 0); + IM_ASSERT(font_cfg->SizePixels > 0.0f); + + // Create new font + if (!font_cfg->MergeMode) + Fonts.push_back(IM_NEW(ImFont)); + else + IM_ASSERT(!Fonts.empty() && "Cannot use MergeMode for the first font"); // When using MergeMode make sure that a font has already been added before. You can use ImGui::GetIO().Fonts->AddFontDefault() to add the default imgui font. + + ConfigData.push_back(*font_cfg); + ImFontConfig& new_font_cfg = ConfigData.back(); + if (new_font_cfg.DstFont == NULL) + new_font_cfg.DstFont = Fonts.back(); + if (!new_font_cfg.FontDataOwnedByAtlas) + { + new_font_cfg.FontData = IM_ALLOC(new_font_cfg.FontDataSize); + new_font_cfg.FontDataOwnedByAtlas = true; + memcpy(new_font_cfg.FontData, font_cfg->FontData, (size_t)new_font_cfg.FontDataSize); + } + + if (new_font_cfg.DstFont->EllipsisChar == (ImWchar)-1) + new_font_cfg.DstFont->EllipsisChar = font_cfg->EllipsisChar; + + ImFontAtlasUpdateConfigDataPointers(this); + + // Invalidate texture + TexReady = false; + ClearTexData(); + return new_font_cfg.DstFont; +} + +// Default font TTF is compressed with stb_compress then base85 encoded (see misc/fonts/binary_to_compressed_c.cpp for encoder) +static unsigned int stb_decompress_length(const unsigned char* input); +static unsigned int stb_decompress(unsigned char* output, const unsigned char* input, unsigned int length); +static const char* GetDefaultCompressedFontDataTTFBase85(); +static unsigned int Decode85Byte(char c) { return c >= '\\' ? c-36 : c-35; } +static void Decode85(const unsigned char* src, unsigned char* dst) +{ + while (*src) + { + unsigned int tmp = Decode85Byte(src[0]) + 85 * (Decode85Byte(src[1]) + 85 * (Decode85Byte(src[2]) + 85 * (Decode85Byte(src[3]) + 85 * Decode85Byte(src[4])))); + dst[0] = ((tmp >> 0) & 0xFF); dst[1] = ((tmp >> 8) & 0xFF); dst[2] = ((tmp >> 16) & 0xFF); dst[3] = ((tmp >> 24) & 0xFF); // We can't assume little-endianness. + src += 5; + dst += 4; + } +} + +// Load embedded ProggyClean.ttf at size 13, disable oversampling +ImFont* ImFontAtlas::AddFontDefault(const ImFontConfig* font_cfg_template) +{ + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + if (!font_cfg_template) + { + font_cfg.OversampleH = font_cfg.OversampleV = 1; + font_cfg.PixelSnapH = true; + } + if (font_cfg.SizePixels <= 0.0f) + font_cfg.SizePixels = 13.0f * 1.0f; + if (font_cfg.Name[0] == '\0') + ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "ProggyClean.ttf, %dpx", (int)font_cfg.SizePixels); + font_cfg.EllipsisChar = (ImWchar)0x0085; + font_cfg.GlyphOffset.y = 1.0f * IM_TRUNC(font_cfg.SizePixels / 13.0f); // Add +1 offset per 13 units + + const char* ttf_compressed_base85 = GetDefaultCompressedFontDataTTFBase85(); + const ImWchar* glyph_ranges = font_cfg.GlyphRanges != NULL ? font_cfg.GlyphRanges : GetGlyphRangesDefault(); + ImFont* font = AddFontFromMemoryCompressedBase85TTF(ttf_compressed_base85, font_cfg.SizePixels, &font_cfg, glyph_ranges); + return font; +} + +ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + size_t data_size = 0; + void* data = ImFileLoadToMemory(filename, "rb", &data_size, 0); + if (!data) + { + IM_ASSERT_USER_ERROR(0, "Could not load font file!"); + return NULL; + } + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + if (font_cfg.Name[0] == '\0') + { + // Store a short copy of filename into into the font name for convenience + const char* p; + for (p = filename + strlen(filename); p > filename && p[-1] != '/' && p[-1] != '\\'; p--) {} + ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "%s, %.0fpx", p, size_pixels); + } + return AddFontFromMemoryTTF(data, (int)data_size, size_pixels, &font_cfg, glyph_ranges); +} + +// NB: Transfer ownership of 'ttf_data' to ImFontAtlas, unless font_cfg_template->FontDataOwnedByAtlas == false. Owned TTF buffer will be deleted after Build(). +ImFont* ImFontAtlas::AddFontFromMemoryTTF(void* font_data, int font_data_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + IM_ASSERT(font_cfg.FontData == NULL); + IM_ASSERT(font_data_size > 100 && "Incorrect value for font_data_size!"); // Heuristic to prevent accidentally passing a wrong value to font_data_size. + font_cfg.FontData = font_data; + font_cfg.FontDataSize = font_data_size; + font_cfg.SizePixels = size_pixels > 0.0f ? size_pixels : font_cfg.SizePixels; + if (glyph_ranges) + font_cfg.GlyphRanges = glyph_ranges; + return AddFont(&font_cfg); +} + +ImFont* ImFontAtlas::AddFontFromMemoryCompressedTTF(const void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + const unsigned int buf_decompressed_size = stb_decompress_length((const unsigned char*)compressed_ttf_data); + unsigned char* buf_decompressed_data = (unsigned char*)IM_ALLOC(buf_decompressed_size); + stb_decompress(buf_decompressed_data, (const unsigned char*)compressed_ttf_data, (unsigned int)compressed_ttf_size); + + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + IM_ASSERT(font_cfg.FontData == NULL); + font_cfg.FontDataOwnedByAtlas = true; + return AddFontFromMemoryTTF(buf_decompressed_data, (int)buf_decompressed_size, size_pixels, &font_cfg, glyph_ranges); +} + +ImFont* ImFontAtlas::AddFontFromMemoryCompressedBase85TTF(const char* compressed_ttf_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) +{ + int compressed_ttf_size = (((int)strlen(compressed_ttf_data_base85) + 4) / 5) * 4; + void* compressed_ttf = IM_ALLOC((size_t)compressed_ttf_size); + Decode85((const unsigned char*)compressed_ttf_data_base85, (unsigned char*)compressed_ttf); + ImFont* font = AddFontFromMemoryCompressedTTF(compressed_ttf, compressed_ttf_size, size_pixels, font_cfg, glyph_ranges); + IM_FREE(compressed_ttf); + return font; +} + +int ImFontAtlas::AddCustomRectRegular(int width, int height) +{ + IM_ASSERT(width > 0 && width <= 0xFFFF); + IM_ASSERT(height > 0 && height <= 0xFFFF); + ImFontAtlasCustomRect r; + r.Width = (unsigned short)width; + r.Height = (unsigned short)height; + CustomRects.push_back(r); + return CustomRects.Size - 1; // Return index +} + +int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset) +{ +#ifdef IMGUI_USE_WCHAR32 + IM_ASSERT(id <= IM_UNICODE_CODEPOINT_MAX); +#endif + IM_ASSERT(font != NULL); + IM_ASSERT(width > 0 && width <= 0xFFFF); + IM_ASSERT(height > 0 && height <= 0xFFFF); + ImFontAtlasCustomRect r; + r.Width = (unsigned short)width; + r.Height = (unsigned short)height; + r.GlyphID = id; + r.GlyphAdvanceX = advance_x; + r.GlyphOffset = offset; + r.Font = font; + CustomRects.push_back(r); + return CustomRects.Size - 1; // Return index +} + +void ImFontAtlas::CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const +{ + IM_ASSERT(TexWidth > 0 && TexHeight > 0); // Font atlas needs to be built before we can calculate UV coordinates + IM_ASSERT(rect->IsPacked()); // Make sure the rectangle has been packed + *out_uv_min = ImVec2((float)rect->X * TexUvScale.x, (float)rect->Y * TexUvScale.y); + *out_uv_max = ImVec2((float)(rect->X + rect->Width) * TexUvScale.x, (float)(rect->Y + rect->Height) * TexUvScale.y); +} + +bool ImFontAtlas::GetMouseCursorTexData(ImGuiMouseCursor cursor_type, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]) +{ + if (cursor_type <= ImGuiMouseCursor_None || cursor_type >= ImGuiMouseCursor_COUNT) + return false; + if (Flags & ImFontAtlasFlags_NoMouseCursors) + return false; + + IM_ASSERT(PackIdMouseCursors != -1); + ImFontAtlasCustomRect* r = GetCustomRectByIndex(PackIdMouseCursors); + ImVec2 pos = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][0] + ImVec2((float)r->X, (float)r->Y); + ImVec2 size = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][1]; + *out_size = size; + *out_offset = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][2]; + out_uv_border[0] = (pos) * TexUvScale; + out_uv_border[1] = (pos + size) * TexUvScale; + pos.x += FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; + out_uv_fill[0] = (pos) * TexUvScale; + out_uv_fill[1] = (pos + size) * TexUvScale; + return true; +} + +bool ImFontAtlas::Build() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + + // Default font is none are specified + if (ConfigData.Size == 0) + AddFontDefault(); + + // Select builder + // - Note that we do not reassign to atlas->FontBuilderIO, since it is likely to point to static data which + // may mess with some hot-reloading schemes. If you need to assign to this (for dynamic selection) AND are + // using a hot-reloading scheme that messes up static data, store your own instance of ImFontBuilderIO somewhere + // and point to it instead of pointing directly to return value of the GetBuilderXXX functions. + const ImFontBuilderIO* builder_io = FontBuilderIO; + if (builder_io == NULL) + { +#ifdef IMGUI_ENABLE_FREETYPE + builder_io = ImGuiFreeType::GetBuilderForFreeType(); +#elif defined(IMGUI_ENABLE_STB_TRUETYPE) + builder_io = ImFontAtlasGetBuilderForStbTruetype(); +#else + IM_ASSERT(0); // Invalid Build function +#endif + } + + // Build + return builder_io->FontBuilder_Build(this); +} + +void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_brighten_factor) +{ + for (unsigned int i = 0; i < 256; i++) + { + unsigned int value = (unsigned int)(i * in_brighten_factor); + out_table[i] = value > 255 ? 255 : (value & 0xFF); + } +} + +void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride) +{ + IM_ASSERT_PARANOID(w <= stride); + unsigned char* data = pixels + x + y * stride; + for (int j = h; j > 0; j--, data += stride - w) + for (int i = w; i > 0; i--, data++) + *data = table[*data]; +} + +#ifdef IMGUI_ENABLE_STB_TRUETYPE +// Temporary data for one source font (multiple source fonts can be merged into one destination ImFont) +// (C++03 doesn't allow instancing ImVector<> with function-local types so we declare the type here.) +struct ImFontBuildSrcData +{ + stbtt_fontinfo FontInfo; + stbtt_pack_range PackRange; // Hold the list of codepoints to pack (essentially points to Codepoints.Data) + stbrp_rect* Rects; // Rectangle to pack. We first fill in their size and the packer will give us their position. + stbtt_packedchar* PackedChars; // Output glyphs + const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0x0020..0xFFFF) + int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[] + int GlyphsHighest; // Highest requested codepoint + int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) + ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) + ImVector GlyphsList; // Glyph codepoints list (flattened version of GlyphsSet) +}; + +// Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) +struct ImFontBuildDstData +{ + int SrcCount; // Number of source fonts targeting this destination font. + int GlyphsHighest; + int GlyphsCount; + ImBitVector GlyphsSet; // This is used to resolve collision when multiple sources are merged into a same destination font. +}; + +static void UnpackBitVectorToFlatIndexList(const ImBitVector* in, ImVector* out) +{ + IM_ASSERT(sizeof(in->Storage.Data[0]) == sizeof(int)); + const ImU32* it_begin = in->Storage.begin(); + const ImU32* it_end = in->Storage.end(); + for (const ImU32* it = it_begin; it < it_end; it++) + if (ImU32 entries_32 = *it) + for (ImU32 bit_n = 0; bit_n < 32; bit_n++) + if (entries_32 & ((ImU32)1 << bit_n)) + out->push_back((int)(((it - it_begin) << 5) + bit_n)); +} + +static bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) +{ + IM_ASSERT(atlas->ConfigData.Size > 0); + + ImFontAtlasBuildInit(atlas); + + // Clear atlas + atlas->TexID = (ImTextureID)NULL; + atlas->TexWidth = atlas->TexHeight = 0; + atlas->TexUvScale = ImVec2(0.0f, 0.0f); + atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); + atlas->ClearTexData(); + + // Temporary storage for building + ImVector src_tmp_array; + ImVector dst_tmp_array; + src_tmp_array.resize(atlas->ConfigData.Size); + dst_tmp_array.resize(atlas->Fonts.Size); + memset(src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes()); + memset(dst_tmp_array.Data, 0, (size_t)dst_tmp_array.size_in_bytes()); + + // 1. Initialize font loading structure, check font data validity + for (int src_i = 0; src_i < atlas->ConfigData.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == atlas)); + + // Find index from cfg.DstFont (we allow the user to set cfg.DstFont. Also it makes casual debugging nicer than when storing indices) + src_tmp.DstIndex = -1; + for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++) + if (cfg.DstFont == atlas->Fonts[output_i]) + src_tmp.DstIndex = output_i; + if (src_tmp.DstIndex == -1) + { + IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array? + return false; + } + // Initialize helper structure for font loading and verify that the TTF/OTF data is correct + const int font_offset = stbtt_GetFontOffsetForIndex((unsigned char*)cfg.FontData, cfg.FontNo); + IM_ASSERT(font_offset >= 0 && "FontData is incorrect, or FontNo cannot be found."); + if (!stbtt_InitFont(&src_tmp.FontInfo, (unsigned char*)cfg.FontData, font_offset)) + { + IM_ASSERT(0 && "stbtt_InitFont(): failed to parse FontData. It is correct and complete? Check FontDataSize."); + return false; + } + + // Measure highest codepoints + ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault(); + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + { + // Check for valid range. This may also help detect *some* dangling pointers, because a common + // user error is to setup ImFontConfig::GlyphRanges with a pointer to data that isn't persistent. + IM_ASSERT(src_range[0] <= src_range[1]); + src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]); + } + dst_tmp.SrcCount++; + dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest); + } + + // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs. + int total_glyphs_count = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.GlyphsSet.Create(src_tmp.GlyphsHighest + 1); + if (dst_tmp.GlyphsSet.Storage.empty()) + dst_tmp.GlyphsSet.Create(dst_tmp.GlyphsHighest + 1); + + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + for (unsigned int codepoint = src_range[0]; codepoint <= src_range[1]; codepoint++) + { + if (dst_tmp.GlyphsSet.TestBit(codepoint)) // Don't overwrite existing glyphs. We could make this an option for MergeMode (e.g. MergeOverwrite==true) + continue; + if (!stbtt_FindGlyphIndex(&src_tmp.FontInfo, codepoint)) // It is actually in the font? + continue; + + // Add to avail set/counters + src_tmp.GlyphsCount++; + dst_tmp.GlyphsCount++; + src_tmp.GlyphsSet.SetBit(codepoint); + dst_tmp.GlyphsSet.SetBit(codepoint); + total_glyphs_count++; + } + } + + // 3. Unpack our bit map into a flat list (we now have all the Unicode points that we know are requested _and_ available _and_ not overlapping another) + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount); + UnpackBitVectorToFlatIndexList(&src_tmp.GlyphsSet, &src_tmp.GlyphsList); + src_tmp.GlyphsSet.Clear(); + IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount); + } + for (int dst_i = 0; dst_i < dst_tmp_array.Size; dst_i++) + dst_tmp_array[dst_i].GlyphsSet.Clear(); + dst_tmp_array.clear(); + + // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0) + // (We technically don't need to zero-clear buf_rects, but let's do it for the sake of sanity) + ImVector buf_rects; + ImVector buf_packedchars; + buf_rects.resize(total_glyphs_count); + buf_packedchars.resize(total_glyphs_count); + memset(buf_rects.Data, 0, (size_t)buf_rects.size_in_bytes()); + memset(buf_packedchars.Data, 0, (size_t)buf_packedchars.size_in_bytes()); + + // 4. Gather glyphs sizes so we can pack them in our virtual canvas. + int total_surface = 0; + int buf_rects_out_n = 0; + int buf_packedchars_out_n = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + src_tmp.Rects = &buf_rects[buf_rects_out_n]; + src_tmp.PackedChars = &buf_packedchars[buf_packedchars_out_n]; + buf_rects_out_n += src_tmp.GlyphsCount; + buf_packedchars_out_n += src_tmp.GlyphsCount; + + // Convert our ranges in the format stb_truetype wants + ImFontConfig& cfg = atlas->ConfigData[src_i]; + src_tmp.PackRange.font_size = cfg.SizePixels; + src_tmp.PackRange.first_unicode_codepoint_in_range = 0; + src_tmp.PackRange.array_of_unicode_codepoints = src_tmp.GlyphsList.Data; + src_tmp.PackRange.num_chars = src_tmp.GlyphsList.Size; + src_tmp.PackRange.chardata_for_range = src_tmp.PackedChars; + src_tmp.PackRange.h_oversample = (unsigned char)cfg.OversampleH; + src_tmp.PackRange.v_oversample = (unsigned char)cfg.OversampleV; + + // Gather the sizes of all rectangles we will need to pack (this loop is based on stbtt_PackFontRangesGatherRects) + const float scale = (cfg.SizePixels > 0) ? stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels) : stbtt_ScaleForMappingEmToPixels(&src_tmp.FontInfo, -cfg.SizePixels); + const int padding = atlas->TexGlyphPadding; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++) + { + int x0, y0, x1, y1; + const int glyph_index_in_font = stbtt_FindGlyphIndex(&src_tmp.FontInfo, src_tmp.GlyphsList[glyph_i]); + IM_ASSERT(glyph_index_in_font != 0); + stbtt_GetGlyphBitmapBoxSubpixel(&src_tmp.FontInfo, glyph_index_in_font, scale * cfg.OversampleH, scale * cfg.OversampleV, 0, 0, &x0, &y0, &x1, &y1); + src_tmp.Rects[glyph_i].w = (stbrp_coord)(x1 - x0 + padding + cfg.OversampleH - 1); + src_tmp.Rects[glyph_i].h = (stbrp_coord)(y1 - y0 + padding + cfg.OversampleV - 1); + total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h; + } + } + + // We need a width for the skyline algorithm, any width! + // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height. + // User can override TexDesiredWidth and TexGlyphPadding if they wish, otherwise we use a simple heuristic to select the width based on expected surface. + const int surface_sqrt = (int)ImSqrt((float)total_surface) + 1; + atlas->TexHeight = 0; + if (atlas->TexDesiredWidth > 0) + atlas->TexWidth = atlas->TexDesiredWidth; + else + atlas->TexWidth = (surface_sqrt >= 4096 * 0.7f) ? 4096 : (surface_sqrt >= 2048 * 0.7f) ? 2048 : (surface_sqrt >= 1024 * 0.7f) ? 1024 : 512; + + // 5. Start packing + // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values). + const int TEX_HEIGHT_MAX = 1024 * 32; + stbtt_pack_context spc = {}; + stbtt_PackBegin(&spc, NULL, atlas->TexWidth, TEX_HEIGHT_MAX, 0, atlas->TexGlyphPadding, NULL); + ImFontAtlasBuildPackCustomRects(atlas, spc.pack_info); + + // 6. Pack each source font. No rendering yet, we are working with rectangles in an infinitely tall texture at this point. + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbrp_pack_rects((stbrp_context*)spc.pack_info, src_tmp.Rects, src_tmp.GlyphsCount); + + // Extend texture height and mark missing glyphs as non-packed so we won't render them. + // FIXME: We are not handling packing failure here (would happen if we got off TEX_HEIGHT_MAX or if a single if larger than TexWidth?) + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + if (src_tmp.Rects[glyph_i].was_packed) + atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h); + } + + // 7. Allocate texture + atlas->TexHeight = (atlas->Flags & ImFontAtlasFlags_NoPowerOfTwoHeight) ? (atlas->TexHeight + 1) : ImUpperPowerOfTwo(atlas->TexHeight); + atlas->TexUvScale = ImVec2(1.0f / atlas->TexWidth, 1.0f / atlas->TexHeight); + atlas->TexPixelsAlpha8 = (unsigned char*)IM_ALLOC(atlas->TexWidth * atlas->TexHeight); + memset(atlas->TexPixelsAlpha8, 0, atlas->TexWidth * atlas->TexHeight); + spc.pixels = atlas->TexPixelsAlpha8; + spc.height = atlas->TexHeight; + + // 8. Render/rasterize font characters into the texture + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbtt_PackFontRangesRenderIntoRects(&spc, &src_tmp.FontInfo, &src_tmp.PackRange, 1, src_tmp.Rects); + + // Apply multiply operator + if (cfg.RasterizerMultiply != 1.0f) + { + unsigned char multiply_table[256]; + ImFontAtlasBuildMultiplyCalcLookupTable(multiply_table, cfg.RasterizerMultiply); + stbrp_rect* r = &src_tmp.Rects[0]; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++, r++) + if (r->was_packed) + ImFontAtlasBuildMultiplyRectAlpha8(multiply_table, atlas->TexPixelsAlpha8, r->x, r->y, r->w, r->h, atlas->TexWidth * 1); + } + src_tmp.Rects = NULL; + } + + // End packing + stbtt_PackEnd(&spc); + buf_rects.clear(); + + // 9. Setup ImFont and glyphs for runtime + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + // When merging fonts with MergeMode=true: + // - We can have multiple input fonts writing into a same destination font. + // - dst_font->ConfigData is != from cfg which is our source configuration. + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFont* dst_font = cfg.DstFont; + + const float font_scale = stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels); + int unscaled_ascent, unscaled_descent, unscaled_line_gap; + stbtt_GetFontVMetrics(&src_tmp.FontInfo, &unscaled_ascent, &unscaled_descent, &unscaled_line_gap); + + const float ascent = ImTrunc(unscaled_ascent * font_scale + ((unscaled_ascent > 0.0f) ? +1 : -1)); + const float descent = ImTrunc(unscaled_descent * font_scale + ((unscaled_descent > 0.0f) ? +1 : -1)); + ImFontAtlasBuildSetupFont(atlas, dst_font, &cfg, ascent, descent); + const float font_off_x = cfg.GlyphOffset.x; + const float font_off_y = cfg.GlyphOffset.y + IM_ROUND(dst_font->Ascent); + + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + { + // Register glyph + const int codepoint = src_tmp.GlyphsList[glyph_i]; + const stbtt_packedchar& pc = src_tmp.PackedChars[glyph_i]; + stbtt_aligned_quad q; + float unused_x = 0.0f, unused_y = 0.0f; + stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &unused_x, &unused_y, &q, 0); + dst_font->AddGlyph(&cfg, (ImWchar)codepoint, q.x0 + font_off_x, q.y0 + font_off_y, q.x1 + font_off_x, q.y1 + font_off_y, q.s0, q.t0, q.s1, q.t1, pc.xadvance); + } + } + + // Cleanup + src_tmp_array.clear_destruct(); + + ImFontAtlasBuildFinish(atlas); + return true; +} + +const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype() +{ + static ImFontBuilderIO io; + io.FontBuilder_Build = ImFontAtlasBuildWithStbTruetype; + return &io; +} + +#endif // IMGUI_ENABLE_STB_TRUETYPE + +void ImFontAtlasUpdateConfigDataPointers(ImFontAtlas* atlas) +{ + for (ImFontConfig& font_cfg : atlas->ConfigData) + { + ImFont* font = font_cfg.DstFont; + if (!font_cfg.MergeMode) + { + font->ConfigData = &font_cfg; + font->ConfigDataCount = 0; + } + font->ConfigDataCount++; + } +} + +void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent) +{ + if (!font_config->MergeMode) + { + font->ClearOutputData(); + font->FontSize = font_config->SizePixels; + IM_ASSERT(font->ConfigData == font_config); + font->ContainerAtlas = atlas; + font->Ascent = ascent; + font->Descent = descent; + } +} + +void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque) +{ + stbrp_context* pack_context = (stbrp_context*)stbrp_context_opaque; + IM_ASSERT(pack_context != NULL); + + ImVector& user_rects = atlas->CustomRects; + IM_ASSERT(user_rects.Size >= 1); // We expect at least the default custom rects to be registered, else something went wrong. +#ifdef __GNUC__ + if (user_rects.Size < 1) { __builtin_unreachable(); } // Workaround for GCC bug if IM_ASSERT() is defined to conditionally throw (see #5343) +#endif + + ImVector pack_rects; + pack_rects.resize(user_rects.Size); + memset(pack_rects.Data, 0, (size_t)pack_rects.size_in_bytes()); + for (int i = 0; i < user_rects.Size; i++) + { + pack_rects[i].w = user_rects[i].Width; + pack_rects[i].h = user_rects[i].Height; + } + stbrp_pack_rects(pack_context, &pack_rects[0], pack_rects.Size); + for (int i = 0; i < pack_rects.Size; i++) + if (pack_rects[i].was_packed) + { + user_rects[i].X = (unsigned short)pack_rects[i].x; + user_rects[i].Y = (unsigned short)pack_rects[i].y; + IM_ASSERT(pack_rects[i].w == user_rects[i].Width && pack_rects[i].h == user_rects[i].Height); + atlas->TexHeight = ImMax(atlas->TexHeight, pack_rects[i].y + pack_rects[i].h); + } +} + +void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value) +{ + IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); + IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); + unsigned char* out_pixel = atlas->TexPixelsAlpha8 + x + (y * atlas->TexWidth); + for (int off_y = 0; off_y < h; off_y++, out_pixel += atlas->TexWidth, in_str += w) + for (int off_x = 0; off_x < w; off_x++) + out_pixel[off_x] = (in_str[off_x] == in_marker_char) ? in_marker_pixel_value : 0x00; +} + +void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value) +{ + IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); + IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); + unsigned int* out_pixel = atlas->TexPixelsRGBA32 + x + (y * atlas->TexWidth); + for (int off_y = 0; off_y < h; off_y++, out_pixel += atlas->TexWidth, in_str += w) + for (int off_x = 0; off_x < w; off_x++) + out_pixel[off_x] = (in_str[off_x] == in_marker_char) ? in_marker_pixel_value : IM_COL32_BLACK_TRANS; +} + +static void ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas* atlas) +{ + ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdMouseCursors); + IM_ASSERT(r->IsPacked()); + + const int w = atlas->TexWidth; + if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) + { + // Render/copy pixels + IM_ASSERT(r->Width == FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1 && r->Height == FONT_ATLAS_DEFAULT_TEX_DATA_H); + const int x_for_white = r->X; + const int x_for_black = r->X + FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; + if (atlas->TexPixelsAlpha8 != NULL) + { + ImFontAtlasBuildRender8bppRectFromString(atlas, x_for_white, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, '.', 0xFF); + ImFontAtlasBuildRender8bppRectFromString(atlas, x_for_black, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, 'X', 0xFF); + } + else + { + ImFontAtlasBuildRender32bppRectFromString(atlas, x_for_white, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, '.', IM_COL32_WHITE); + ImFontAtlasBuildRender32bppRectFromString(atlas, x_for_black, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, 'X', IM_COL32_WHITE); + } + } + else + { + // Render 4 white pixels + IM_ASSERT(r->Width == 2 && r->Height == 2); + const int offset = (int)r->X + (int)r->Y * w; + if (atlas->TexPixelsAlpha8 != NULL) + { + atlas->TexPixelsAlpha8[offset] = atlas->TexPixelsAlpha8[offset + 1] = atlas->TexPixelsAlpha8[offset + w] = atlas->TexPixelsAlpha8[offset + w + 1] = 0xFF; + } + else + { + atlas->TexPixelsRGBA32[offset] = atlas->TexPixelsRGBA32[offset + 1] = atlas->TexPixelsRGBA32[offset + w] = atlas->TexPixelsRGBA32[offset + w + 1] = IM_COL32_WHITE; + } + } + atlas->TexUvWhitePixel = ImVec2((r->X + 0.5f) * atlas->TexUvScale.x, (r->Y + 0.5f) * atlas->TexUvScale.y); +} + +static void ImFontAtlasBuildRenderLinesTexData(ImFontAtlas* atlas) +{ + if (atlas->Flags & ImFontAtlasFlags_NoBakedLines) + return; + + // This generates a triangular shape in the texture, with the various line widths stacked on top of each other to allow interpolation between them + ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdLines); + IM_ASSERT(r->IsPacked()); + for (unsigned int n = 0; n < IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1; n++) // +1 because of the zero-width row + { + // Each line consists of at least two empty pixels at the ends, with a line of solid pixels in the middle + unsigned int y = n; + unsigned int line_width = n; + unsigned int pad_left = (r->Width - line_width) / 2; + unsigned int pad_right = r->Width - (pad_left + line_width); + + // Write each slice + IM_ASSERT(pad_left + line_width + pad_right == r->Width && y < r->Height); // Make sure we're inside the texture bounds before we start writing pixels + if (atlas->TexPixelsAlpha8 != NULL) + { + unsigned char* write_ptr = &atlas->TexPixelsAlpha8[r->X + ((r->Y + y) * atlas->TexWidth)]; + for (unsigned int i = 0; i < pad_left; i++) + *(write_ptr + i) = 0x00; + + for (unsigned int i = 0; i < line_width; i++) + *(write_ptr + pad_left + i) = 0xFF; + + for (unsigned int i = 0; i < pad_right; i++) + *(write_ptr + pad_left + line_width + i) = 0x00; + } + else + { + unsigned int* write_ptr = &atlas->TexPixelsRGBA32[r->X + ((r->Y + y) * atlas->TexWidth)]; + for (unsigned int i = 0; i < pad_left; i++) + *(write_ptr + i) = IM_COL32(255, 255, 255, 0); + + for (unsigned int i = 0; i < line_width; i++) + *(write_ptr + pad_left + i) = IM_COL32_WHITE; + + for (unsigned int i = 0; i < pad_right; i++) + *(write_ptr + pad_left + line_width + i) = IM_COL32(255, 255, 255, 0); + } + + // Calculate UVs for this line + ImVec2 uv0 = ImVec2((float)(r->X + pad_left - 1), (float)(r->Y + y)) * atlas->TexUvScale; + ImVec2 uv1 = ImVec2((float)(r->X + pad_left + line_width + 1), (float)(r->Y + y + 1)) * atlas->TexUvScale; + float half_v = (uv0.y + uv1.y) * 0.5f; // Calculate a constant V in the middle of the row to avoid sampling artifacts + atlas->TexUvLines[n] = ImVec4(uv0.x, half_v, uv1.x, half_v); + } +} + +// Note: this is called / shared by both the stb_truetype and the FreeType builder +void ImFontAtlasBuildInit(ImFontAtlas* atlas) +{ + // Round font size + // - We started rounding in 1.90 WIP (18991) as our layout system currently doesn't support non-rounded font size well yet. + // - Note that using io.FontGlobalScale or SetWindowFontScale(), with are legacy-ish, partially supported features, can still lead to unrounded sizes. + // - We may support it better later and remove this rounding. + for (ImFontConfig& cfg : atlas->ConfigData) + cfg.SizePixels = ImTrunc(cfg.SizePixels); + + // Register texture region for mouse cursors or standard white pixels + if (atlas->PackIdMouseCursors < 0) + { + if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) + atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1, FONT_ATLAS_DEFAULT_TEX_DATA_H); + else + atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(2, 2); + } + + // Register texture region for thick lines + // The +2 here is to give space for the end caps, whilst height +1 is to accommodate the fact we have a zero-width row + if (atlas->PackIdLines < 0) + { + if (!(atlas->Flags & ImFontAtlasFlags_NoBakedLines)) + atlas->PackIdLines = atlas->AddCustomRectRegular(IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 2, IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1); + } +} + +// This is called/shared by both the stb_truetype and the FreeType builder. +void ImFontAtlasBuildFinish(ImFontAtlas* atlas) +{ + // Render into our custom data blocks + IM_ASSERT(atlas->TexPixelsAlpha8 != NULL || atlas->TexPixelsRGBA32 != NULL); + ImFontAtlasBuildRenderDefaultTexData(atlas); + ImFontAtlasBuildRenderLinesTexData(atlas); + + // Register custom rectangle glyphs + for (int i = 0; i < atlas->CustomRects.Size; i++) + { + const ImFontAtlasCustomRect* r = &atlas->CustomRects[i]; + if (r->Font == NULL || r->GlyphID == 0) + continue; + + // Will ignore ImFontConfig settings: GlyphMinAdvanceX, GlyphMinAdvanceY, GlyphExtraSpacing, PixelSnapH + IM_ASSERT(r->Font->ContainerAtlas == atlas); + ImVec2 uv0, uv1; + atlas->CalcCustomRectUV(r, &uv0, &uv1); + r->Font->AddGlyph(NULL, (ImWchar)r->GlyphID, r->GlyphOffset.x, r->GlyphOffset.y, r->GlyphOffset.x + r->Width, r->GlyphOffset.y + r->Height, uv0.x, uv0.y, uv1.x, uv1.y, r->GlyphAdvanceX); + } + + // Build all fonts lookup tables + for (ImFont* font : atlas->Fonts) + if (font->DirtyLookupTables) + font->BuildLookupTable(); + + atlas->TexReady = true; +} + +// Retrieve list of range (2 int per range, values are inclusive) +const ImWchar* ImFontAtlas::GetGlyphRangesDefault() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesGreek() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x0370, 0x03FF, // Greek and Coptic + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesKorean() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x3131, 0x3163, // Korean alphabets + 0xAC00, 0xD7A3, // Korean characters + 0xFFFD, 0xFFFD, // Invalid + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesChineseFull() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x2000, 0x206F, // General Punctuation + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD, // Invalid + 0x4e00, 0x9FAF, // CJK Ideograms + 0, + }; + return &ranges[0]; +} + +static void UnpackAccumulativeOffsetsIntoRanges(int base_codepoint, const short* accumulative_offsets, int accumulative_offsets_count, ImWchar* out_ranges) +{ + for (int n = 0; n < accumulative_offsets_count; n++, out_ranges += 2) + { + out_ranges[0] = out_ranges[1] = (ImWchar)(base_codepoint + accumulative_offsets[n]); + base_codepoint += accumulative_offsets[n]; + } + out_ranges[0] = 0; +} + +//------------------------------------------------------------------------- +// [SECTION] ImFontAtlas glyph ranges helpers +//------------------------------------------------------------------------- + +const ImWchar* ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon() +{ + // Store 2500 regularly used characters for Simplified Chinese. + // Sourced from https://zh.wiktionary.org/wiki/%E9%99%84%E5%BD%95:%E7%8E%B0%E4%BB%A3%E6%B1%89%E8%AF%AD%E5%B8%B8%E7%94%A8%E5%AD%97%E8%A1%A8 + // This table covers 97.97% of all characters used during the month in July, 1987. + // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. + // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) + static const short accumulative_offsets_from_0x4E00[] = + { + 0,1,2,4,1,1,1,1,2,1,3,2,1,2,2,1,1,1,1,1,5,2,1,2,3,3,3,2,2,4,1,1,1,2,1,5,2,3,1,2,1,2,1,1,2,1,1,2,2,1,4,1,1,1,1,5,10,1,2,19,2,1,2,1,2,1,2,1,2, + 1,5,1,6,3,2,1,2,2,1,1,1,4,8,5,1,1,4,1,1,3,1,2,1,5,1,2,1,1,1,10,1,1,5,2,4,6,1,4,2,2,2,12,2,1,1,6,1,1,1,4,1,1,4,6,5,1,4,2,2,4,10,7,1,1,4,2,4, + 2,1,4,3,6,10,12,5,7,2,14,2,9,1,1,6,7,10,4,7,13,1,5,4,8,4,1,1,2,28,5,6,1,1,5,2,5,20,2,2,9,8,11,2,9,17,1,8,6,8,27,4,6,9,20,11,27,6,68,2,2,1,1, + 1,2,1,2,2,7,6,11,3,3,1,1,3,1,2,1,1,1,1,1,3,1,1,8,3,4,1,5,7,2,1,4,4,8,4,2,1,2,1,1,4,5,6,3,6,2,12,3,1,3,9,2,4,3,4,1,5,3,3,1,3,7,1,5,1,1,1,1,2, + 3,4,5,2,3,2,6,1,1,2,1,7,1,7,3,4,5,15,2,2,1,5,3,22,19,2,1,1,1,1,2,5,1,1,1,6,1,1,12,8,2,9,18,22,4,1,1,5,1,16,1,2,7,10,15,1,1,6,2,4,1,2,4,1,6, + 1,1,3,2,4,1,6,4,5,1,2,1,1,2,1,10,3,1,3,2,1,9,3,2,5,7,2,19,4,3,6,1,1,1,1,1,4,3,2,1,1,1,2,5,3,1,1,1,2,2,1,1,2,1,1,2,1,3,1,1,1,3,7,1,4,1,1,2,1, + 1,2,1,2,4,4,3,8,1,1,1,2,1,3,5,1,3,1,3,4,6,2,2,14,4,6,6,11,9,1,15,3,1,28,5,2,5,5,3,1,3,4,5,4,6,14,3,2,3,5,21,2,7,20,10,1,2,19,2,4,28,28,2,3, + 2,1,14,4,1,26,28,42,12,40,3,52,79,5,14,17,3,2,2,11,3,4,6,3,1,8,2,23,4,5,8,10,4,2,7,3,5,1,1,6,3,1,2,2,2,5,28,1,1,7,7,20,5,3,29,3,17,26,1,8,4, + 27,3,6,11,23,5,3,4,6,13,24,16,6,5,10,25,35,7,3,2,3,3,14,3,6,2,6,1,4,2,3,8,2,1,1,3,3,3,4,1,1,13,2,2,4,5,2,1,14,14,1,2,2,1,4,5,2,3,1,14,3,12, + 3,17,2,16,5,1,2,1,8,9,3,19,4,2,2,4,17,25,21,20,28,75,1,10,29,103,4,1,2,1,1,4,2,4,1,2,3,24,2,2,2,1,1,2,1,3,8,1,1,1,2,1,1,3,1,1,1,6,1,5,3,1,1, + 1,3,4,1,1,5,2,1,5,6,13,9,16,1,1,1,1,3,2,3,2,4,5,2,5,2,2,3,7,13,7,2,2,1,1,1,1,2,3,3,2,1,6,4,9,2,1,14,2,14,2,1,18,3,4,14,4,11,41,15,23,15,23, + 176,1,3,4,1,1,1,1,5,3,1,2,3,7,3,1,1,2,1,2,4,4,6,2,4,1,9,7,1,10,5,8,16,29,1,1,2,2,3,1,3,5,2,4,5,4,1,1,2,2,3,3,7,1,6,10,1,17,1,44,4,6,2,1,1,6, + 5,4,2,10,1,6,9,2,8,1,24,1,2,13,7,8,8,2,1,4,1,3,1,3,3,5,2,5,10,9,4,9,12,2,1,6,1,10,1,1,7,7,4,10,8,3,1,13,4,3,1,6,1,3,5,2,1,2,17,16,5,2,16,6, + 1,4,2,1,3,3,6,8,5,11,11,1,3,3,2,4,6,10,9,5,7,4,7,4,7,1,1,4,2,1,3,6,8,7,1,6,11,5,5,3,24,9,4,2,7,13,5,1,8,82,16,61,1,1,1,4,2,2,16,10,3,8,1,1, + 6,4,2,1,3,1,1,1,4,3,8,4,2,2,1,1,1,1,1,6,3,5,1,1,4,6,9,2,1,1,1,2,1,7,2,1,6,1,5,4,4,3,1,8,1,3,3,1,3,2,2,2,2,3,1,6,1,2,1,2,1,3,7,1,8,2,1,2,1,5, + 2,5,3,5,10,1,2,1,1,3,2,5,11,3,9,3,5,1,1,5,9,1,2,1,5,7,9,9,8,1,3,3,3,6,8,2,3,2,1,1,32,6,1,2,15,9,3,7,13,1,3,10,13,2,14,1,13,10,2,1,3,10,4,15, + 2,15,15,10,1,3,9,6,9,32,25,26,47,7,3,2,3,1,6,3,4,3,2,8,5,4,1,9,4,2,2,19,10,6,2,3,8,1,2,2,4,2,1,9,4,4,4,6,4,8,9,2,3,1,1,1,1,3,5,5,1,3,8,4,6, + 2,1,4,12,1,5,3,7,13,2,5,8,1,6,1,2,5,14,6,1,5,2,4,8,15,5,1,23,6,62,2,10,1,1,8,1,2,2,10,4,2,2,9,2,1,1,3,2,3,1,5,3,3,2,1,3,8,1,1,1,11,3,1,1,4, + 3,7,1,14,1,2,3,12,5,2,5,1,6,7,5,7,14,11,1,3,1,8,9,12,2,1,11,8,4,4,2,6,10,9,13,1,1,3,1,5,1,3,2,4,4,1,18,2,3,14,11,4,29,4,2,7,1,3,13,9,2,2,5, + 3,5,20,7,16,8,5,72,34,6,4,22,12,12,28,45,36,9,7,39,9,191,1,1,1,4,11,8,4,9,2,3,22,1,1,1,1,4,17,1,7,7,1,11,31,10,2,4,8,2,3,2,1,4,2,16,4,32,2, + 3,19,13,4,9,1,5,2,14,8,1,1,3,6,19,6,5,1,16,6,2,10,8,5,1,2,3,1,5,5,1,11,6,6,1,3,3,2,6,3,8,1,1,4,10,7,5,7,7,5,8,9,2,1,3,4,1,1,3,1,3,3,2,6,16, + 1,4,6,3,1,10,6,1,3,15,2,9,2,10,25,13,9,16,6,2,2,10,11,4,3,9,1,2,6,6,5,4,30,40,1,10,7,12,14,33,6,3,6,7,3,1,3,1,11,14,4,9,5,12,11,49,18,51,31, + 140,31,2,2,1,5,1,8,1,10,1,4,4,3,24,1,10,1,3,6,6,16,3,4,5,2,1,4,2,57,10,6,22,2,22,3,7,22,6,10,11,36,18,16,33,36,2,5,5,1,1,1,4,10,1,4,13,2,7, + 5,2,9,3,4,1,7,43,3,7,3,9,14,7,9,1,11,1,1,3,7,4,18,13,1,14,1,3,6,10,73,2,2,30,6,1,11,18,19,13,22,3,46,42,37,89,7,3,16,34,2,2,3,9,1,7,1,1,1,2, + 2,4,10,7,3,10,3,9,5,28,9,2,6,13,7,3,1,3,10,2,7,2,11,3,6,21,54,85,2,1,4,2,2,1,39,3,21,2,2,5,1,1,1,4,1,1,3,4,15,1,3,2,4,4,2,3,8,2,20,1,8,7,13, + 4,1,26,6,2,9,34,4,21,52,10,4,4,1,5,12,2,11,1,7,2,30,12,44,2,30,1,1,3,6,16,9,17,39,82,2,2,24,7,1,7,3,16,9,14,44,2,1,2,1,2,3,5,2,4,1,6,7,5,3, + 2,6,1,11,5,11,2,1,18,19,8,1,3,24,29,2,1,3,5,2,2,1,13,6,5,1,46,11,3,5,1,1,5,8,2,10,6,12,6,3,7,11,2,4,16,13,2,5,1,1,2,2,5,2,28,5,2,23,10,8,4, + 4,22,39,95,38,8,14,9,5,1,13,5,4,3,13,12,11,1,9,1,27,37,2,5,4,4,63,211,95,2,2,2,1,3,5,2,1,1,2,2,1,1,1,3,2,4,1,2,1,1,5,2,2,1,1,2,3,1,3,1,1,1, + 3,1,4,2,1,3,6,1,1,3,7,15,5,3,2,5,3,9,11,4,2,22,1,6,3,8,7,1,4,28,4,16,3,3,25,4,4,27,27,1,4,1,2,2,7,1,3,5,2,28,8,2,14,1,8,6,16,25,3,3,3,14,3, + 3,1,1,2,1,4,6,3,8,4,1,1,1,2,3,6,10,6,2,3,18,3,2,5,5,4,3,1,5,2,5,4,23,7,6,12,6,4,17,11,9,5,1,1,10,5,12,1,1,11,26,33,7,3,6,1,17,7,1,5,12,1,11, + 2,4,1,8,14,17,23,1,2,1,7,8,16,11,9,6,5,2,6,4,16,2,8,14,1,11,8,9,1,1,1,9,25,4,11,19,7,2,15,2,12,8,52,7,5,19,2,16,4,36,8,1,16,8,24,26,4,6,2,9, + 5,4,36,3,28,12,25,15,37,27,17,12,59,38,5,32,127,1,2,9,17,14,4,1,2,1,1,8,11,50,4,14,2,19,16,4,17,5,4,5,26,12,45,2,23,45,104,30,12,8,3,10,2,2, + 3,3,1,4,20,7,2,9,6,15,2,20,1,3,16,4,11,15,6,134,2,5,59,1,2,2,2,1,9,17,3,26,137,10,211,59,1,2,4,1,4,1,1,1,2,6,2,3,1,1,2,3,2,3,1,3,4,4,2,3,3, + 1,4,3,1,7,2,2,3,1,2,1,3,3,3,2,2,3,2,1,3,14,6,1,3,2,9,6,15,27,9,34,145,1,1,2,1,1,1,1,2,1,1,1,1,2,2,2,3,1,2,1,1,1,2,3,5,8,3,5,2,4,1,3,2,2,2,12, + 4,1,1,1,10,4,5,1,20,4,16,1,15,9,5,12,2,9,2,5,4,2,26,19,7,1,26,4,30,12,15,42,1,6,8,172,1,1,4,2,1,1,11,2,2,4,2,1,2,1,10,8,1,2,1,4,5,1,2,5,1,8, + 4,1,3,4,2,1,6,2,1,3,4,1,2,1,1,1,1,12,5,7,2,4,3,1,1,1,3,3,6,1,2,2,3,3,3,2,1,2,12,14,11,6,6,4,12,2,8,1,7,10,1,35,7,4,13,15,4,3,23,21,28,52,5, + 26,5,6,1,7,10,2,7,53,3,2,1,1,1,2,163,532,1,10,11,1,3,3,4,8,2,8,6,2,2,23,22,4,2,2,4,2,1,3,1,3,3,5,9,8,2,1,2,8,1,10,2,12,21,20,15,105,2,3,1,1, + 3,2,3,1,1,2,5,1,4,15,11,19,1,1,1,1,5,4,5,1,1,2,5,3,5,12,1,2,5,1,11,1,1,15,9,1,4,5,3,26,8,2,1,3,1,1,15,19,2,12,1,2,5,2,7,2,19,2,20,6,26,7,5, + 2,2,7,34,21,13,70,2,128,1,1,2,1,1,2,1,1,3,2,2,2,15,1,4,1,3,4,42,10,6,1,49,85,8,1,2,1,1,4,4,2,3,6,1,5,7,4,3,211,4,1,2,1,2,5,1,2,4,2,2,6,5,6, + 10,3,4,48,100,6,2,16,296,5,27,387,2,2,3,7,16,8,5,38,15,39,21,9,10,3,7,59,13,27,21,47,5,21,6 + }; + static ImWchar base_ranges[] = // not zero-terminated + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x2000, 0x206F, // General Punctuation + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD // Invalid + }; + static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00) * 2 + 1] = { 0 }; + if (!full_ranges[0]) + { + memcpy(full_ranges, base_ranges, sizeof(base_ranges)); + UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); + } + return &full_ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesJapanese() +{ + // 2999 ideograms code points for Japanese + // - 2136 Joyo (meaning "for regular use" or "for common use") Kanji code points + // - 863 Jinmeiyo (meaning "for personal name") Kanji code points + // - Sourced from official information provided by the government agencies of Japan: + // - List of Joyo Kanji by the Agency for Cultural Affairs + // - https://www.bunka.go.jp/kokugo_nihongo/sisaku/joho/joho/kijun/naikaku/kanji/ + // - List of Jinmeiyo Kanji by the Ministry of Justice + // - http://www.moj.go.jp/MINJI/minji86.html + // - Available under the terms of the Creative Commons Attribution 4.0 International (CC BY 4.0). + // - https://creativecommons.org/licenses/by/4.0/legalcode + // - You can generate this code by the script at: + // - https://github.com/vaiorabbit/everyday_use_kanji + // - References: + // - List of Joyo Kanji + // - (Wikipedia) https://en.wikipedia.org/wiki/List_of_j%C5%8Dy%C5%8D_kanji + // - List of Jinmeiyo Kanji + // - (Wikipedia) https://en.wikipedia.org/wiki/Jinmeiy%C5%8D_kanji + // - Missing 1 Joyo Kanji: U+20B9F (Kun'yomi: Shikaru, On'yomi: Shitsu,shichi), see https://github.com/ocornut/imgui/pull/3627 for details. + // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. + // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) + static const short accumulative_offsets_from_0x4E00[] = + { + 0,1,2,4,1,1,1,1,2,1,3,3,2,2,1,5,3,5,7,5,6,1,2,1,7,2,6,3,1,8,1,1,4,1,1,18,2,11,2,6,2,1,2,1,5,1,2,1,3,1,2,1,2,3,3,1,1,2,3,1,1,1,12,7,9,1,4,5,1, + 1,2,1,10,1,1,9,2,2,4,5,6,9,3,1,1,1,1,9,3,18,5,2,2,2,2,1,6,3,7,1,1,1,1,2,2,4,2,1,23,2,10,4,3,5,2,4,10,2,4,13,1,6,1,9,3,1,1,6,6,7,6,3,1,2,11,3, + 2,2,3,2,15,2,2,5,4,3,6,4,1,2,5,2,12,16,6,13,9,13,2,1,1,7,16,4,7,1,19,1,5,1,2,2,7,7,8,2,6,5,4,9,18,7,4,5,9,13,11,8,15,2,1,1,1,2,1,2,2,1,2,2,8, + 2,9,3,3,1,1,4,4,1,1,1,4,9,1,4,3,5,5,2,7,5,3,4,8,2,1,13,2,3,3,1,14,1,1,4,5,1,3,6,1,5,2,1,1,3,3,3,3,1,1,2,7,6,6,7,1,4,7,6,1,1,1,1,1,12,3,3,9,5, + 2,6,1,5,6,1,2,3,18,2,4,14,4,1,3,6,1,1,6,3,5,5,3,2,2,2,2,12,3,1,4,2,3,2,3,11,1,7,4,1,2,1,3,17,1,9,1,24,1,1,4,2,2,4,1,2,7,1,1,1,3,1,2,2,4,15,1, + 1,2,1,1,2,1,5,2,5,20,2,5,9,1,10,8,7,6,1,1,1,1,1,1,6,2,1,2,8,1,1,1,1,5,1,1,3,1,1,1,1,3,1,1,12,4,1,3,1,1,1,1,1,10,3,1,7,5,13,1,2,3,4,6,1,1,30, + 2,9,9,1,15,38,11,3,1,8,24,7,1,9,8,10,2,1,9,31,2,13,6,2,9,4,49,5,2,15,2,1,10,2,1,1,1,2,2,6,15,30,35,3,14,18,8,1,16,10,28,12,19,45,38,1,3,2,3, + 13,2,1,7,3,6,5,3,4,3,1,5,7,8,1,5,3,18,5,3,6,1,21,4,24,9,24,40,3,14,3,21,3,2,1,2,4,2,3,1,15,15,6,5,1,1,3,1,5,6,1,9,7,3,3,2,1,4,3,8,21,5,16,4, + 5,2,10,11,11,3,6,3,2,9,3,6,13,1,2,1,1,1,1,11,12,6,6,1,4,2,6,5,2,1,1,3,3,6,13,3,1,1,5,1,2,3,3,14,2,1,2,2,2,5,1,9,5,1,1,6,12,3,12,3,4,13,2,14, + 2,8,1,17,5,1,16,4,2,2,21,8,9,6,23,20,12,25,19,9,38,8,3,21,40,25,33,13,4,3,1,4,1,2,4,1,2,5,26,2,1,1,2,1,3,6,2,1,1,1,1,1,1,2,3,1,1,1,9,2,3,1,1, + 1,3,6,3,2,1,1,6,6,1,8,2,2,2,1,4,1,2,3,2,7,3,2,4,1,2,1,2,2,1,1,1,1,1,3,1,2,5,4,10,9,4,9,1,1,1,1,1,1,5,3,2,1,6,4,9,6,1,10,2,31,17,8,3,7,5,40,1, + 7,7,1,6,5,2,10,7,8,4,15,39,25,6,28,47,18,10,7,1,3,1,1,2,1,1,1,3,3,3,1,1,1,3,4,2,1,4,1,3,6,10,7,8,6,2,2,1,3,3,2,5,8,7,9,12,2,15,1,1,4,1,2,1,1, + 1,3,2,1,3,3,5,6,2,3,2,10,1,4,2,8,1,1,1,11,6,1,21,4,16,3,1,3,1,4,2,3,6,5,1,3,1,1,3,3,4,6,1,1,10,4,2,7,10,4,7,4,2,9,4,3,1,1,1,4,1,8,3,4,1,3,1, + 6,1,4,2,1,4,7,2,1,8,1,4,5,1,1,2,2,4,6,2,7,1,10,1,1,3,4,11,10,8,21,4,6,1,3,5,2,1,2,28,5,5,2,3,13,1,2,3,1,4,2,1,5,20,3,8,11,1,3,3,3,1,8,10,9,2, + 10,9,2,3,1,1,2,4,1,8,3,6,1,7,8,6,11,1,4,29,8,4,3,1,2,7,13,1,4,1,6,2,6,12,12,2,20,3,2,3,6,4,8,9,2,7,34,5,1,18,6,1,1,4,4,5,7,9,1,2,2,4,3,4,1,7, + 2,2,2,6,2,3,25,5,3,6,1,4,6,7,4,2,1,4,2,13,6,4,4,3,1,5,3,4,4,3,2,1,1,4,1,2,1,1,3,1,11,1,6,3,1,7,3,6,2,8,8,6,9,3,4,11,3,2,10,12,2,5,11,1,6,4,5, + 3,1,8,5,4,6,6,3,5,1,1,3,2,1,2,2,6,17,12,1,10,1,6,12,1,6,6,19,9,6,16,1,13,4,4,15,7,17,6,11,9,15,12,6,7,2,1,2,2,15,9,3,21,4,6,49,18,7,3,2,3,1, + 6,8,2,2,6,2,9,1,3,6,4,4,1,2,16,2,5,2,1,6,2,3,5,3,1,2,5,1,2,1,9,3,1,8,6,4,8,11,3,1,1,1,1,3,1,13,8,4,1,3,2,2,1,4,1,11,1,5,2,1,5,2,5,8,6,1,1,7, + 4,3,8,3,2,7,2,1,5,1,5,2,4,7,6,2,8,5,1,11,4,5,3,6,18,1,2,13,3,3,1,21,1,1,4,1,4,1,1,1,8,1,2,2,7,1,2,4,2,2,9,2,1,1,1,4,3,6,3,12,5,1,1,1,5,6,3,2, + 4,8,2,2,4,2,7,1,8,9,5,2,3,2,1,3,2,13,7,14,6,5,1,1,2,1,4,2,23,2,1,1,6,3,1,4,1,15,3,1,7,3,9,14,1,3,1,4,1,1,5,8,1,3,8,3,8,15,11,4,14,4,4,2,5,5, + 1,7,1,6,14,7,7,8,5,15,4,8,6,5,6,2,1,13,1,20,15,11,9,2,5,6,2,11,2,6,2,5,1,5,8,4,13,19,25,4,1,1,11,1,34,2,5,9,14,6,2,2,6,1,1,14,1,3,14,13,1,6, + 12,21,14,14,6,32,17,8,32,9,28,1,2,4,11,8,3,1,14,2,5,15,1,1,1,1,3,6,4,1,3,4,11,3,1,1,11,30,1,5,1,4,1,5,8,1,1,3,2,4,3,17,35,2,6,12,17,3,1,6,2, + 1,1,12,2,7,3,3,2,1,16,2,8,3,6,5,4,7,3,3,8,1,9,8,5,1,2,1,3,2,8,1,2,9,12,1,1,2,3,8,3,24,12,4,3,7,5,8,3,3,3,3,3,3,1,23,10,3,1,2,2,6,3,1,16,1,16, + 22,3,10,4,11,6,9,7,7,3,6,2,2,2,4,10,2,1,1,2,8,7,1,6,4,1,3,3,3,5,10,12,12,2,3,12,8,15,1,1,16,6,6,1,5,9,11,4,11,4,2,6,12,1,17,5,13,1,4,9,5,1,11, + 2,1,8,1,5,7,28,8,3,5,10,2,17,3,38,22,1,2,18,12,10,4,38,18,1,4,44,19,4,1,8,4,1,12,1,4,31,12,1,14,7,75,7,5,10,6,6,13,3,2,11,11,3,2,5,28,15,6,18, + 18,5,6,4,3,16,1,7,18,7,36,3,5,3,1,7,1,9,1,10,7,2,4,2,6,2,9,7,4,3,32,12,3,7,10,2,23,16,3,1,12,3,31,4,11,1,3,8,9,5,1,30,15,6,12,3,2,2,11,19,9, + 14,2,6,2,3,19,13,17,5,3,3,25,3,14,1,1,1,36,1,3,2,19,3,13,36,9,13,31,6,4,16,34,2,5,4,2,3,3,5,1,1,1,4,3,1,17,3,2,3,5,3,1,3,2,3,5,6,3,12,11,1,3, + 1,2,26,7,12,7,2,14,3,3,7,7,11,25,25,28,16,4,36,1,2,1,6,2,1,9,3,27,17,4,3,4,13,4,1,3,2,2,1,10,4,2,4,6,3,8,2,1,18,1,1,24,2,2,4,33,2,3,63,7,1,6, + 40,7,3,4,4,2,4,15,18,1,16,1,1,11,2,41,14,1,3,18,13,3,2,4,16,2,17,7,15,24,7,18,13,44,2,2,3,6,1,1,7,5,1,7,1,4,3,3,5,10,8,2,3,1,8,1,1,27,4,2,1, + 12,1,2,1,10,6,1,6,7,5,2,3,7,11,5,11,3,6,6,2,3,15,4,9,1,1,2,1,2,11,2,8,12,8,5,4,2,3,1,5,2,2,1,14,1,12,11,4,1,11,17,17,4,3,2,5,5,7,3,1,5,9,9,8, + 2,5,6,6,13,13,2,1,2,6,1,2,2,49,4,9,1,2,10,16,7,8,4,3,2,23,4,58,3,29,1,14,19,19,11,11,2,7,5,1,3,4,6,2,18,5,12,12,17,17,3,3,2,4,1,6,2,3,4,3,1, + 1,1,1,5,1,1,9,1,3,1,3,6,1,8,1,1,2,6,4,14,3,1,4,11,4,1,3,32,1,2,4,13,4,1,2,4,2,1,3,1,11,1,4,2,1,4,4,6,3,5,1,6,5,7,6,3,23,3,5,3,5,3,3,13,3,9,10, + 1,12,10,2,3,18,13,7,160,52,4,2,2,3,2,14,5,4,12,4,6,4,1,20,4,11,6,2,12,27,1,4,1,2,2,7,4,5,2,28,3,7,25,8,3,19,3,6,10,2,2,1,10,2,5,4,1,3,4,1,5, + 3,2,6,9,3,6,2,16,3,3,16,4,5,5,3,2,1,2,16,15,8,2,6,21,2,4,1,22,5,8,1,1,21,11,2,1,11,11,19,13,12,4,2,3,2,3,6,1,8,11,1,4,2,9,5,2,1,11,2,9,1,1,2, + 14,31,9,3,4,21,14,4,8,1,7,2,2,2,5,1,4,20,3,3,4,10,1,11,9,8,2,1,4,5,14,12,14,2,17,9,6,31,4,14,1,20,13,26,5,2,7,3,6,13,2,4,2,19,6,2,2,18,9,3,5, + 12,12,14,4,6,2,3,6,9,5,22,4,5,25,6,4,8,5,2,6,27,2,35,2,16,3,7,8,8,6,6,5,9,17,2,20,6,19,2,13,3,1,1,1,4,17,12,2,14,7,1,4,18,12,38,33,2,10,1,1, + 2,13,14,17,11,50,6,33,20,26,74,16,23,45,50,13,38,33,6,6,7,4,4,2,1,3,2,5,8,7,8,9,3,11,21,9,13,1,3,10,6,7,1,2,2,18,5,5,1,9,9,2,68,9,19,13,2,5, + 1,4,4,7,4,13,3,9,10,21,17,3,26,2,1,5,2,4,5,4,1,7,4,7,3,4,2,1,6,1,1,20,4,1,9,2,2,1,3,3,2,3,2,1,1,1,20,2,3,1,6,2,3,6,2,4,8,1,3,2,10,3,5,3,4,4, + 3,4,16,1,6,1,10,2,4,2,1,1,2,10,11,2,2,3,1,24,31,4,10,10,2,5,12,16,164,15,4,16,7,9,15,19,17,1,2,1,1,5,1,1,1,1,1,3,1,4,3,1,3,1,3,1,2,1,1,3,3,7, + 2,8,1,2,2,2,1,3,4,3,7,8,12,92,2,10,3,1,3,14,5,25,16,42,4,7,7,4,2,21,5,27,26,27,21,25,30,31,2,1,5,13,3,22,5,6,6,11,9,12,1,5,9,7,5,5,22,60,3,5, + 13,1,1,8,1,1,3,3,2,1,9,3,3,18,4,1,2,3,7,6,3,1,2,3,9,1,3,1,3,2,1,3,1,1,1,2,1,11,3,1,6,9,1,3,2,3,1,2,1,5,1,1,4,3,4,1,2,2,4,4,1,7,2,1,2,2,3,5,13, + 18,3,4,14,9,9,4,16,3,7,5,8,2,6,48,28,3,1,1,4,2,14,8,2,9,2,1,15,2,4,3,2,10,16,12,8,7,1,1,3,1,1,1,2,7,4,1,6,4,38,39,16,23,7,15,15,3,2,12,7,21, + 37,27,6,5,4,8,2,10,8,8,6,5,1,2,1,3,24,1,16,17,9,23,10,17,6,1,51,55,44,13,294,9,3,6,2,4,2,2,15,1,1,1,13,21,17,68,14,8,9,4,1,4,9,3,11,7,1,1,1, + 5,6,3,2,1,1,1,2,3,8,1,2,2,4,1,5,5,2,1,4,3,7,13,4,1,4,1,3,1,1,1,5,5,10,1,6,1,5,2,1,5,2,4,1,4,5,7,3,18,2,9,11,32,4,3,3,2,4,7,11,16,9,11,8,13,38, + 32,8,4,2,1,1,2,1,2,4,4,1,1,1,4,1,21,3,11,1,16,1,1,6,1,3,2,4,9,8,57,7,44,1,3,3,13,3,10,1,1,7,5,2,7,21,47,63,3,15,4,7,1,16,1,1,2,8,2,3,42,15,4, + 1,29,7,22,10,3,78,16,12,20,18,4,67,11,5,1,3,15,6,21,31,32,27,18,13,71,35,5,142,4,10,1,2,50,19,33,16,35,37,16,19,27,7,1,133,19,1,4,8,7,20,1,4, + 4,1,10,3,1,6,1,2,51,5,40,15,24,43,22928,11,1,13,154,70,3,1,1,7,4,10,1,2,1,1,2,1,2,1,2,2,1,1,2,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1, + 3,2,1,1,1,1,2,1,1, + }; + static ImWchar base_ranges[] = // not zero-terminated + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD // Invalid + }; + static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00)*2 + 1] = { 0 }; + if (!full_ranges[0]) + { + memcpy(full_ranges, base_ranges, sizeof(base_ranges)); + UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); + } + return &full_ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesCyrillic() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x0400, 0x052F, // Cyrillic + Cyrillic Supplement + 0x2DE0, 0x2DFF, // Cyrillic Extended-A + 0xA640, 0xA69F, // Cyrillic Extended-B + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesThai() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + 0x2010, 0x205E, // Punctuations + 0x0E00, 0x0E7F, // Thai + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesVietnamese() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + 0x0102, 0x0103, + 0x0110, 0x0111, + 0x0128, 0x0129, + 0x0168, 0x0169, + 0x01A0, 0x01A1, + 0x01AF, 0x01B0, + 0x1EA0, 0x1EF9, + 0, + }; + return &ranges[0]; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontGlyphRangesBuilder +//----------------------------------------------------------------------------- + +void ImFontGlyphRangesBuilder::AddText(const char* text, const char* text_end) +{ + while (text_end ? (text < text_end) : *text) + { + unsigned int c = 0; + int c_len = ImTextCharFromUtf8(&c, text, text_end); + text += c_len; + if (c_len == 0) + break; + AddChar((ImWchar)c); + } +} + +void ImFontGlyphRangesBuilder::AddRanges(const ImWchar* ranges) +{ + for (; ranges[0]; ranges += 2) + for (unsigned int c = ranges[0]; c <= ranges[1] && c <= IM_UNICODE_CODEPOINT_MAX; c++) //-V560 + AddChar((ImWchar)c); +} + +void ImFontGlyphRangesBuilder::BuildRanges(ImVector* out_ranges) +{ + const int max_codepoint = IM_UNICODE_CODEPOINT_MAX; + for (int n = 0; n <= max_codepoint; n++) + if (GetBit(n)) + { + out_ranges->push_back((ImWchar)n); + while (n < max_codepoint && GetBit(n + 1)) + n++; + out_ranges->push_back((ImWchar)n); + } + out_ranges->push_back(0); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFont +//----------------------------------------------------------------------------- + +ImFont::ImFont() +{ + FontSize = 0.0f; + FallbackAdvanceX = 0.0f; + FallbackChar = (ImWchar)-1; + EllipsisChar = (ImWchar)-1; + EllipsisWidth = EllipsisCharStep = 0.0f; + EllipsisCharCount = 0; + FallbackGlyph = NULL; + ContainerAtlas = NULL; + ConfigData = NULL; + ConfigDataCount = 0; + DirtyLookupTables = false; + Scale = 1.0f; + Ascent = Descent = 0.0f; + MetricsTotalSurface = 0; + memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); +} + +ImFont::~ImFont() +{ + ClearOutputData(); +} + +void ImFont::ClearOutputData() +{ + FontSize = 0.0f; + FallbackAdvanceX = 0.0f; + Glyphs.clear(); + IndexAdvanceX.clear(); + IndexLookup.clear(); + FallbackGlyph = NULL; + ContainerAtlas = NULL; + DirtyLookupTables = true; + Ascent = Descent = 0.0f; + MetricsTotalSurface = 0; +} + +static ImWchar FindFirstExistingGlyph(ImFont* font, const ImWchar* candidate_chars, int candidate_chars_count) +{ + for (int n = 0; n < candidate_chars_count; n++) + if (font->FindGlyphNoFallback(candidate_chars[n]) != NULL) + return candidate_chars[n]; + return (ImWchar)-1; +} + +void ImFont::BuildLookupTable() +{ + int max_codepoint = 0; + for (int i = 0; i != Glyphs.Size; i++) + max_codepoint = ImMax(max_codepoint, (int)Glyphs[i].Codepoint); + + // Build lookup table + IM_ASSERT(Glyphs.Size > 0 && "Font has not loaded glyph!"); + IM_ASSERT(Glyphs.Size < 0xFFFF); // -1 is reserved + IndexAdvanceX.clear(); + IndexLookup.clear(); + DirtyLookupTables = false; + memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); + GrowIndex(max_codepoint + 1); + for (int i = 0; i < Glyphs.Size; i++) + { + int codepoint = (int)Glyphs[i].Codepoint; + IndexAdvanceX[codepoint] = Glyphs[i].AdvanceX; + IndexLookup[codepoint] = (ImWchar)i; + + // Mark 4K page as used + const int page_n = codepoint / 4096; + Used4kPagesMap[page_n >> 3] |= 1 << (page_n & 7); + } + + // Create a glyph to handle TAB + // FIXME: Needs proper TAB handling but it needs to be contextualized (or we could arbitrary say that each string starts at "column 0" ?) + if (FindGlyph((ImWchar)' ')) + { + if (Glyphs.back().Codepoint != '\t') // So we can call this function multiple times (FIXME: Flaky) + Glyphs.resize(Glyphs.Size + 1); + ImFontGlyph& tab_glyph = Glyphs.back(); + tab_glyph = *FindGlyph((ImWchar)' '); + tab_glyph.Codepoint = '\t'; + tab_glyph.AdvanceX *= IM_TABSIZE; + IndexAdvanceX[(int)tab_glyph.Codepoint] = (float)tab_glyph.AdvanceX; + IndexLookup[(int)tab_glyph.Codepoint] = (ImWchar)(Glyphs.Size - 1); + } + + // Mark special glyphs as not visible (note that AddGlyph already mark as non-visible glyphs with zero-size polygons) + SetGlyphVisible((ImWchar)' ', false); + SetGlyphVisible((ImWchar)'\t', false); + + // Setup Fallback character + const ImWchar fallback_chars[] = { (ImWchar)IM_UNICODE_CODEPOINT_INVALID, (ImWchar)'?', (ImWchar)' ' }; + FallbackGlyph = FindGlyphNoFallback(FallbackChar); + if (FallbackGlyph == NULL) + { + FallbackChar = FindFirstExistingGlyph(this, fallback_chars, IM_ARRAYSIZE(fallback_chars)); + FallbackGlyph = FindGlyphNoFallback(FallbackChar); + if (FallbackGlyph == NULL) + { + FallbackGlyph = &Glyphs.back(); + FallbackChar = (ImWchar)FallbackGlyph->Codepoint; + } + } + FallbackAdvanceX = FallbackGlyph->AdvanceX; + for (int i = 0; i < max_codepoint + 1; i++) + if (IndexAdvanceX[i] < 0.0f) + IndexAdvanceX[i] = FallbackAdvanceX; + + // Setup Ellipsis character. It is required for rendering elided text. We prefer using U+2026 (horizontal ellipsis). + // However some old fonts may contain ellipsis at U+0085. Here we auto-detect most suitable ellipsis character. + // FIXME: Note that 0x2026 is rarely included in our font ranges. Because of this we are more likely to use three individual dots. + const ImWchar ellipsis_chars[] = { (ImWchar)0x2026, (ImWchar)0x0085 }; + const ImWchar dots_chars[] = { (ImWchar)'.', (ImWchar)0xFF0E }; + if (EllipsisChar == (ImWchar)-1) + EllipsisChar = FindFirstExistingGlyph(this, ellipsis_chars, IM_ARRAYSIZE(ellipsis_chars)); + const ImWchar dot_char = FindFirstExistingGlyph(this, dots_chars, IM_ARRAYSIZE(dots_chars)); + if (EllipsisChar != (ImWchar)-1) + { + EllipsisCharCount = 1; + EllipsisWidth = EllipsisCharStep = FindGlyph(EllipsisChar)->X1; + } + else if (dot_char != (ImWchar)-1) + { + const ImFontGlyph* glyph = FindGlyph(dot_char); + EllipsisChar = dot_char; + EllipsisCharCount = 3; + EllipsisCharStep = (glyph->X1 - glyph->X0) + 1.0f; + EllipsisWidth = EllipsisCharStep * 3.0f - 1.0f; + } +} + +// API is designed this way to avoid exposing the 4K page size +// e.g. use with IsGlyphRangeUnused(0, 255) +bool ImFont::IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last) +{ + unsigned int page_begin = (c_begin / 4096); + unsigned int page_last = (c_last / 4096); + for (unsigned int page_n = page_begin; page_n <= page_last; page_n++) + if ((page_n >> 3) < sizeof(Used4kPagesMap)) + if (Used4kPagesMap[page_n >> 3] & (1 << (page_n & 7))) + return false; + return true; +} + +void ImFont::SetGlyphVisible(ImWchar c, bool visible) +{ + if (ImFontGlyph* glyph = (ImFontGlyph*)(void*)FindGlyph((ImWchar)c)) + glyph->Visible = visible ? 1 : 0; +} + +void ImFont::GrowIndex(int new_size) +{ + IM_ASSERT(IndexAdvanceX.Size == IndexLookup.Size); + if (new_size <= IndexLookup.Size) + return; + IndexAdvanceX.resize(new_size, -1.0f); + IndexLookup.resize(new_size, (ImWchar)-1); +} + +// x0/y0/x1/y1 are offset from the character upper-left layout position, in pixels. Therefore x0/y0 are often fairly close to zero. +// Not to be mistaken with texture coordinates, which are held by u0/v0/u1/v1 in normalized format (0.0..1.0 on each texture axis). +// 'cfg' is not necessarily == 'this->ConfigData' because multiple source fonts+configs can be used to build one target font. +void ImFont::AddGlyph(const ImFontConfig* cfg, ImWchar codepoint, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x) +{ + if (cfg != NULL) + { + // Clamp & recenter if needed + const float advance_x_original = advance_x; + advance_x = ImClamp(advance_x, cfg->GlyphMinAdvanceX, cfg->GlyphMaxAdvanceX); + if (advance_x != advance_x_original) + { + float char_off_x = cfg->PixelSnapH ? ImTrunc((advance_x - advance_x_original) * 0.5f) : (advance_x - advance_x_original) * 0.5f; + x0 += char_off_x; + x1 += char_off_x; + } + + // Snap to pixel + if (cfg->PixelSnapH) + advance_x = IM_ROUND(advance_x); + + // Bake spacing + advance_x += cfg->GlyphExtraSpacing.x; + } + + Glyphs.resize(Glyphs.Size + 1); + ImFontGlyph& glyph = Glyphs.back(); + glyph.Codepoint = (unsigned int)codepoint; + glyph.Visible = (x0 != x1) && (y0 != y1); + glyph.Colored = false; + glyph.X0 = x0; + glyph.Y0 = y0; + glyph.X1 = x1; + glyph.Y1 = y1; + glyph.U0 = u0; + glyph.V0 = v0; + glyph.U1 = u1; + glyph.V1 = v1; + glyph.AdvanceX = advance_x; + + // Compute rough surface usage metrics (+1 to account for average padding, +0.99 to round) + // We use (U1-U0)*TexWidth instead of X1-X0 to account for oversampling. + float pad = ContainerAtlas->TexGlyphPadding + 0.99f; + DirtyLookupTables = true; + MetricsTotalSurface += (int)((glyph.U1 - glyph.U0) * ContainerAtlas->TexWidth + pad) * (int)((glyph.V1 - glyph.V0) * ContainerAtlas->TexHeight + pad); +} + +void ImFont::AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst) +{ + IM_ASSERT(IndexLookup.Size > 0); // Currently this can only be called AFTER the font has been built, aka after calling ImFontAtlas::GetTexDataAs*() function. + unsigned int index_size = (unsigned int)IndexLookup.Size; + + if (dst < index_size && IndexLookup.Data[dst] == (ImWchar)-1 && !overwrite_dst) // 'dst' already exists + return; + if (src >= index_size && dst >= index_size) // both 'dst' and 'src' don't exist -> no-op + return; + + GrowIndex(dst + 1); + IndexLookup[dst] = (src < index_size) ? IndexLookup.Data[src] : (ImWchar)-1; + IndexAdvanceX[dst] = (src < index_size) ? IndexAdvanceX.Data[src] : 1.0f; +} + +const ImFontGlyph* ImFont::FindGlyph(ImWchar c) const +{ + if (c >= (size_t)IndexLookup.Size) + return FallbackGlyph; + const ImWchar i = IndexLookup.Data[c]; + if (i == (ImWchar)-1) + return FallbackGlyph; + return &Glyphs.Data[i]; +} + +const ImFontGlyph* ImFont::FindGlyphNoFallback(ImWchar c) const +{ + if (c >= (size_t)IndexLookup.Size) + return NULL; + const ImWchar i = IndexLookup.Data[c]; + if (i == (ImWchar)-1) + return NULL; + return &Glyphs.Data[i]; +} + +// Wrapping skips upcoming blanks +static inline const char* CalcWordWrapNextLineStartA(const char* text, const char* text_end) +{ + while (text < text_end && ImCharIsBlankA(*text)) + text++; + if (*text == '\n') + text++; + return text; +} + +// Simple word-wrapping for English, not full-featured. Please submit failing cases! +// This will return the next location to wrap from. If no wrapping if necessary, this will fast-forward to e.g. text_end. +// FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,", more sensible support for punctuations, support for Unicode punctuations, etc.) +const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const +{ + // For references, possible wrap point marked with ^ + // "aaa bbb, ccc,ddd. eee fff. ggg!" + // ^ ^ ^ ^ ^__ ^ ^ + + // List of hardcoded separators: .,;!?'" + + // Skip extra blanks after a line returns (that includes not counting them in width computation) + // e.g. "Hello world" --> "Hello" "World" + + // Cut words that cannot possibly fit within one line. + // e.g.: "The tropical fish" with ~5 characters worth of width --> "The tr" "opical" "fish" + float line_width = 0.0f; + float word_width = 0.0f; + float blank_width = 0.0f; + wrap_width /= scale; // We work with unscaled widths to avoid scaling every characters + + const char* word_end = text; + const char* prev_word_end = NULL; + bool inside_word = true; + + const char* s = text; + IM_ASSERT(text_end != NULL); + while (s < text_end) + { + unsigned int c = (unsigned int)*s; + const char* next_s; + if (c < 0x80) + next_s = s + 1; + else + next_s = s + ImTextCharFromUtf8(&c, s, text_end); + + if (c < 32) + { + if (c == '\n') + { + line_width = word_width = blank_width = 0.0f; + inside_word = true; + s = next_s; + continue; + } + if (c == '\r') + { + s = next_s; + continue; + } + } + + const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX); + if (ImCharIsBlankW(c)) + { + if (inside_word) + { + line_width += blank_width; + blank_width = 0.0f; + word_end = s; + } + blank_width += char_width; + inside_word = false; + } + else + { + word_width += char_width; + if (inside_word) + { + word_end = next_s; + } + else + { + prev_word_end = word_end; + line_width += word_width + blank_width; + word_width = blank_width = 0.0f; + } + + // Allow wrapping after punctuation. + inside_word = (c != '.' && c != ',' && c != ';' && c != '!' && c != '?' && c != '\"'); + } + + // We ignore blank width at the end of the line (they can be skipped) + if (line_width + word_width > wrap_width) + { + // Words that cannot possibly fit within an entire line will be cut anywhere. + if (word_width < wrap_width) + s = prev_word_end ? prev_word_end : word_end; + break; + } + + s = next_s; + } + + // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. + // +1 may not be a character start point in UTF-8 but it's ok because caller loops use (text >= word_wrap_eol). + if (s == text && text < text_end) + return s + 1; + return s; +} + +ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) const +{ + if (!text_end) + text_end = text_begin + strlen(text_begin); // FIXME-OPT: Need to avoid this. + + const float line_height = size; + const float scale = size / FontSize; + + ImVec2 text_size = ImVec2(0, 0); + float line_width = 0.0f; + + const bool word_wrap_enabled = (wrap_width > 0.0f); + const char* word_wrap_eol = NULL; + + const char* s = text_begin; + while (s < text_end) + { + if (word_wrap_enabled) + { + // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. + if (!word_wrap_eol) + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width); + + if (s >= word_wrap_eol) + { + if (text_size.x < line_width) + text_size.x = line_width; + text_size.y += line_height; + line_width = 0.0f; + word_wrap_eol = NULL; + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks + continue; + } + } + + // Decode and advance source + const char* prev_s = s; + unsigned int c = (unsigned int)*s; + if (c < 0x80) + s += 1; + else + s += ImTextCharFromUtf8(&c, s, text_end); + + if (c < 32) + { + if (c == '\n') + { + text_size.x = ImMax(text_size.x, line_width); + text_size.y += line_height; + line_width = 0.0f; + continue; + } + if (c == '\r') + continue; + } + + const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX) * scale; + if (line_width + char_width >= max_width) + { + s = prev_s; + break; + } + + line_width += char_width; + } + + if (text_size.x < line_width) + text_size.x = line_width; + + if (line_width > 0 || text_size.y == 0.0f) + text_size.y += line_height; + + if (remaining) + *remaining = s; + + return text_size; +} + +// Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. +void ImFont::RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const +{ + const ImFontGlyph* glyph = FindGlyph(c); + if (!glyph || !glyph->Visible) + return; + if (glyph->Colored) + col |= ~IM_COL32_A_MASK; + float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f; + float x = IM_TRUNC(pos.x); + float y = IM_TRUNC(pos.y); + draw_list->PrimReserve(6, 4); + draw_list->PrimRectUV(ImVec2(x + glyph->X0 * scale, y + glyph->Y0 * scale), ImVec2(x + glyph->X1 * scale, y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col); +} + +// Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. +void ImFont::RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const +{ + if (!text_end) + text_end = text_begin + strlen(text_begin); // ImGui:: functions generally already provides a valid text_end, so this is merely to handle direct calls. + + // Align to be pixel perfect + float x = IM_TRUNC(pos.x); + float y = IM_TRUNC(pos.y); + if (y > clip_rect.w) + return; + + const float start_x = x; + const float scale = size / FontSize; + const float line_height = FontSize * scale; + const bool word_wrap_enabled = (wrap_width > 0.0f); + + // Fast-forward to first visible line + const char* s = text_begin; + if (y + line_height < clip_rect.y) + while (y + line_height < clip_rect.y && s < text_end) + { + const char* line_end = (const char*)memchr(s, '\n', text_end - s); + if (word_wrap_enabled) + { + // FIXME-OPT: This is not optimal as do first do a search for \n before calling CalcWordWrapPositionA(). + // If the specs for CalcWordWrapPositionA() were reworked to optionally return on \n we could combine both. + // However it is still better than nothing performing the fast-forward! + s = CalcWordWrapPositionA(scale, s, line_end ? line_end : text_end, wrap_width); + s = CalcWordWrapNextLineStartA(s, text_end); + } + else + { + s = line_end ? line_end + 1 : text_end; + } + y += line_height; + } + + // For large text, scan for the last visible line in order to avoid over-reserving in the call to PrimReserve() + // Note that very large horizontal line will still be affected by the issue (e.g. a one megabyte string buffer without a newline will likely crash atm) + if (text_end - s > 10000 && !word_wrap_enabled) + { + const char* s_end = s; + float y_end = y; + while (y_end < clip_rect.w && s_end < text_end) + { + s_end = (const char*)memchr(s_end, '\n', text_end - s_end); + s_end = s_end ? s_end + 1 : text_end; + y_end += line_height; + } + text_end = s_end; + } + if (s == text_end) + return; + + // Reserve vertices for remaining worse case (over-reserving is useful and easily amortized) + const int vtx_count_max = (int)(text_end - s) * 4; + const int idx_count_max = (int)(text_end - s) * 6; + const int idx_expected_size = draw_list->IdxBuffer.Size + idx_count_max; + draw_list->PrimReserve(idx_count_max, vtx_count_max); + ImDrawVert* vtx_write = draw_list->_VtxWritePtr; + ImDrawIdx* idx_write = draw_list->_IdxWritePtr; + unsigned int vtx_index = draw_list->_VtxCurrentIdx; + + const ImU32 col_untinted = col | ~IM_COL32_A_MASK; + const char* word_wrap_eol = NULL; + + while (s < text_end) + { + if (word_wrap_enabled) + { + // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. + if (!word_wrap_eol) + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - start_x)); + + if (s >= word_wrap_eol) + { + x = start_x; + y += line_height; + word_wrap_eol = NULL; + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks + continue; + } + } + + // Decode and advance source + unsigned int c = (unsigned int)*s; + if (c < 0x80) + s += 1; + else + s += ImTextCharFromUtf8(&c, s, text_end); + + if (c < 32) + { + if (c == '\n') + { + x = start_x; + y += line_height; + if (y > clip_rect.w) + break; // break out of main loop + continue; + } + if (c == '\r') + continue; + } + + const ImFontGlyph* glyph = FindGlyph((ImWchar)c); + if (glyph == NULL) + continue; + + float char_width = glyph->AdvanceX * scale; + if (glyph->Visible) + { + // We don't do a second finer clipping test on the Y axis as we've already skipped anything before clip_rect.y and exit once we pass clip_rect.w + float x1 = x + glyph->X0 * scale; + float x2 = x + glyph->X1 * scale; + float y1 = y + glyph->Y0 * scale; + float y2 = y + glyph->Y1 * scale; + if (x1 <= clip_rect.z && x2 >= clip_rect.x) + { + // Render a character + float u1 = glyph->U0; + float v1 = glyph->V0; + float u2 = glyph->U1; + float v2 = glyph->V1; + + // CPU side clipping used to fit text in their frame when the frame is too small. Only does clipping for axis aligned quads. + if (cpu_fine_clip) + { + if (x1 < clip_rect.x) + { + u1 = u1 + (1.0f - (x2 - clip_rect.x) / (x2 - x1)) * (u2 - u1); + x1 = clip_rect.x; + } + if (y1 < clip_rect.y) + { + v1 = v1 + (1.0f - (y2 - clip_rect.y) / (y2 - y1)) * (v2 - v1); + y1 = clip_rect.y; + } + if (x2 > clip_rect.z) + { + u2 = u1 + ((clip_rect.z - x1) / (x2 - x1)) * (u2 - u1); + x2 = clip_rect.z; + } + if (y2 > clip_rect.w) + { + v2 = v1 + ((clip_rect.w - y1) / (y2 - y1)) * (v2 - v1); + y2 = clip_rect.w; + } + if (y1 >= y2) + { + x += char_width; + continue; + } + } + + // Support for untinted glyphs + ImU32 glyph_col = glyph->Colored ? col_untinted : col; + + // We are NOT calling PrimRectUV() here because non-inlined causes too much overhead in a debug builds. Inlined here: + { + vtx_write[0].pos.x = x1; vtx_write[0].pos.y = y1; vtx_write[0].col = glyph_col; vtx_write[0].uv.x = u1; vtx_write[0].uv.y = v1; + vtx_write[1].pos.x = x2; vtx_write[1].pos.y = y1; vtx_write[1].col = glyph_col; vtx_write[1].uv.x = u2; vtx_write[1].uv.y = v1; + vtx_write[2].pos.x = x2; vtx_write[2].pos.y = y2; vtx_write[2].col = glyph_col; vtx_write[2].uv.x = u2; vtx_write[2].uv.y = v2; + vtx_write[3].pos.x = x1; vtx_write[3].pos.y = y2; vtx_write[3].col = glyph_col; vtx_write[3].uv.x = u1; vtx_write[3].uv.y = v2; + idx_write[0] = (ImDrawIdx)(vtx_index); idx_write[1] = (ImDrawIdx)(vtx_index + 1); idx_write[2] = (ImDrawIdx)(vtx_index + 2); + idx_write[3] = (ImDrawIdx)(vtx_index); idx_write[4] = (ImDrawIdx)(vtx_index + 2); idx_write[5] = (ImDrawIdx)(vtx_index + 3); + vtx_write += 4; + vtx_index += 4; + idx_write += 6; + } + } + } + x += char_width; + } + + // Give back unused vertices (clipped ones, blanks) ~ this is essentially a PrimUnreserve() action. + draw_list->VtxBuffer.Size = (int)(vtx_write - draw_list->VtxBuffer.Data); // Same as calling shrink() + draw_list->IdxBuffer.Size = (int)(idx_write - draw_list->IdxBuffer.Data); + draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ElemCount -= (idx_expected_size - draw_list->IdxBuffer.Size); + draw_list->_VtxWritePtr = vtx_write; + draw_list->_IdxWritePtr = idx_write; + draw_list->_VtxCurrentIdx = vtx_index; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGui Internal Render Helpers +//----------------------------------------------------------------------------- +// Vaguely redesigned to stop accessing ImGui global state: +// - RenderArrow() +// - RenderBullet() +// - RenderCheckMark() +// - RenderArrowDockMenu() +// - RenderArrowPointingAt() +// - RenderRectFilledRangeH() +// - RenderRectFilledWithHole() +//----------------------------------------------------------------------------- +// Function in need of a redesign (legacy mess) +// - RenderColorRectWithAlphaCheckerboard() +//----------------------------------------------------------------------------- + +// Render an arrow aimed to be aligned with text (p_min is a position in the same space text would be positioned). To e.g. denote expanded/collapsed state +void ImGui::RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale) +{ + const float h = draw_list->_Data->FontSize * 1.00f; + float r = h * 0.40f * scale; + ImVec2 center = pos + ImVec2(h * 0.50f, h * 0.50f * scale); + + ImVec2 a, b, c; + switch (dir) + { + case ImGuiDir_Up: + case ImGuiDir_Down: + if (dir == ImGuiDir_Up) r = -r; + a = ImVec2(+0.000f, +0.750f) * r; + b = ImVec2(-0.866f, -0.750f) * r; + c = ImVec2(+0.866f, -0.750f) * r; + break; + case ImGuiDir_Left: + case ImGuiDir_Right: + if (dir == ImGuiDir_Left) r = -r; + a = ImVec2(+0.750f, +0.000f) * r; + b = ImVec2(-0.750f, +0.866f) * r; + c = ImVec2(-0.750f, -0.866f) * r; + break; + case ImGuiDir_None: + case ImGuiDir_COUNT: + IM_ASSERT(0); + break; + } + draw_list->AddTriangleFilled(center + a, center + b, center + c, col); +} + +void ImGui::RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col) +{ + // FIXME-OPT: This should be baked in font. + draw_list->AddCircleFilled(pos, draw_list->_Data->FontSize * 0.20f, col, 8); +} + +void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz) +{ + float thickness = ImMax(sz / 5.0f, 1.0f); + sz -= thickness * 0.5f; + pos += ImVec2(thickness * 0.25f, thickness * 0.25f); + + float third = sz / 3.0f; + float bx = pos.x + third; + float by = pos.y + sz - third * 0.5f; + draw_list->PathLineTo(ImVec2(bx - third, by - third)); + draw_list->PathLineTo(ImVec2(bx, by)); + draw_list->PathLineTo(ImVec2(bx + third * 2.0f, by - third * 2.0f)); + draw_list->PathStroke(col, 0, thickness); +} + +// Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y is length on each side. +void ImGui::RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col) +{ + switch (direction) + { + case ImGuiDir_Left: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), pos, col); return; + case ImGuiDir_Right: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), pos, col); return; + case ImGuiDir_Up: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), pos, col); return; + case ImGuiDir_Down: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), pos, col); return; + case ImGuiDir_None: case ImGuiDir_COUNT: break; // Fix warnings + } +} + +// This is less wide than RenderArrow() and we use in dock nodes instead of the regular RenderArrow() to denote a change of functionality, +// and because the saved space means that the left-most tab label can stay at exactly the same position as the label of a loose window. +void ImGui::RenderArrowDockMenu(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col) +{ + draw_list->AddRectFilled(p_min + ImVec2(sz * 0.20f, sz * 0.15f), p_min + ImVec2(sz * 0.80f, sz * 0.30f), col); + RenderArrowPointingAt(draw_list, p_min + ImVec2(sz * 0.50f, sz * 0.85f), ImVec2(sz * 0.30f, sz * 0.40f), ImGuiDir_Down, col); +} + +static inline float ImAcos01(float x) +{ + if (x <= 0.0f) return IM_PI * 0.5f; + if (x >= 1.0f) return 0.0f; + return ImAcos(x); + //return (-0.69813170079773212f * x * x - 0.87266462599716477f) * x + 1.5707963267948966f; // Cheap approximation, may be enough for what we do. +} + +// FIXME: Cleanup and move code to ImDrawList. +void ImGui::RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding) +{ + if (x_end_norm == x_start_norm) + return; + if (x_start_norm > x_end_norm) + ImSwap(x_start_norm, x_end_norm); + + ImVec2 p0 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_start_norm), rect.Min.y); + ImVec2 p1 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_end_norm), rect.Max.y); + if (rounding == 0.0f) + { + draw_list->AddRectFilled(p0, p1, col, 0.0f); + return; + } + + rounding = ImClamp(ImMin((rect.Max.x - rect.Min.x) * 0.5f, (rect.Max.y - rect.Min.y) * 0.5f) - 1.0f, 0.0f, rounding); + const float inv_rounding = 1.0f / rounding; + const float arc0_b = ImAcos01(1.0f - (p0.x - rect.Min.x) * inv_rounding); + const float arc0_e = ImAcos01(1.0f - (p1.x - rect.Min.x) * inv_rounding); + const float half_pi = IM_PI * 0.5f; // We will == compare to this because we know this is the exact value ImAcos01 can return. + const float x0 = ImMax(p0.x, rect.Min.x + rounding); + if (arc0_b == arc0_e) + { + draw_list->PathLineTo(ImVec2(x0, p1.y)); + draw_list->PathLineTo(ImVec2(x0, p0.y)); + } + else if (arc0_b == 0.0f && arc0_e == half_pi) + { + draw_list->PathArcToFast(ImVec2(x0, p1.y - rounding), rounding, 3, 6); // BL + draw_list->PathArcToFast(ImVec2(x0, p0.y + rounding), rounding, 6, 9); // TR + } + else + { + draw_list->PathArcTo(ImVec2(x0, p1.y - rounding), rounding, IM_PI - arc0_e, IM_PI - arc0_b, 3); // BL + draw_list->PathArcTo(ImVec2(x0, p0.y + rounding), rounding, IM_PI + arc0_b, IM_PI + arc0_e, 3); // TR + } + if (p1.x > rect.Min.x + rounding) + { + const float arc1_b = ImAcos01(1.0f - (rect.Max.x - p1.x) * inv_rounding); + const float arc1_e = ImAcos01(1.0f - (rect.Max.x - p0.x) * inv_rounding); + const float x1 = ImMin(p1.x, rect.Max.x - rounding); + if (arc1_b == arc1_e) + { + draw_list->PathLineTo(ImVec2(x1, p0.y)); + draw_list->PathLineTo(ImVec2(x1, p1.y)); + } + else if (arc1_b == 0.0f && arc1_e == half_pi) + { + draw_list->PathArcToFast(ImVec2(x1, p0.y + rounding), rounding, 9, 12); // TR + draw_list->PathArcToFast(ImVec2(x1, p1.y - rounding), rounding, 0, 3); // BR + } + else + { + draw_list->PathArcTo(ImVec2(x1, p0.y + rounding), rounding, -arc1_e, -arc1_b, 3); // TR + draw_list->PathArcTo(ImVec2(x1, p1.y - rounding), rounding, +arc1_b, +arc1_e, 3); // BR + } + } + draw_list->PathFillConvex(col); +} + +void ImGui::RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding) +{ + const bool fill_L = (inner.Min.x > outer.Min.x); + const bool fill_R = (inner.Max.x < outer.Max.x); + const bool fill_U = (inner.Min.y > outer.Min.y); + const bool fill_D = (inner.Max.y < outer.Max.y); + if (fill_L) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Min.y), ImVec2(inner.Min.x, inner.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_U ? 0 : ImDrawFlags_RoundCornersTopLeft) | (fill_D ? 0 : ImDrawFlags_RoundCornersBottomLeft)); + if (fill_R) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Min.y), ImVec2(outer.Max.x, inner.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_U ? 0 : ImDrawFlags_RoundCornersTopRight) | (fill_D ? 0 : ImDrawFlags_RoundCornersBottomRight)); + if (fill_U) draw_list->AddRectFilled(ImVec2(inner.Min.x, outer.Min.y), ImVec2(inner.Max.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_L ? 0 : ImDrawFlags_RoundCornersTopLeft) | (fill_R ? 0 : ImDrawFlags_RoundCornersTopRight)); + if (fill_D) draw_list->AddRectFilled(ImVec2(inner.Min.x, inner.Max.y), ImVec2(inner.Max.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_L ? 0 : ImDrawFlags_RoundCornersBottomLeft) | (fill_R ? 0 : ImDrawFlags_RoundCornersBottomRight)); + if (fill_L && fill_U) draw_list->AddRectFilled(ImVec2(outer.Min.x, outer.Min.y), ImVec2(inner.Min.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersTopLeft); + if (fill_R && fill_U) draw_list->AddRectFilled(ImVec2(inner.Max.x, outer.Min.y), ImVec2(outer.Max.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersTopRight); + if (fill_L && fill_D) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Max.y), ImVec2(inner.Min.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersBottomLeft); + if (fill_R && fill_D) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Max.y), ImVec2(outer.Max.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersBottomRight); +} + +ImDrawFlags ImGui::CalcRoundingFlagsForRectInRect(const ImRect& r_in, const ImRect& r_outer, float threshold) +{ + bool round_l = r_in.Min.x <= r_outer.Min.x + threshold; + bool round_r = r_in.Max.x >= r_outer.Max.x - threshold; + bool round_t = r_in.Min.y <= r_outer.Min.y + threshold; + bool round_b = r_in.Max.y >= r_outer.Max.y - threshold; + return ImDrawFlags_RoundCornersNone + | ((round_t && round_l) ? ImDrawFlags_RoundCornersTopLeft : 0) | ((round_t && round_r) ? ImDrawFlags_RoundCornersTopRight : 0) + | ((round_b && round_l) ? ImDrawFlags_RoundCornersBottomLeft : 0) | ((round_b && round_r) ? ImDrawFlags_RoundCornersBottomRight : 0); +} + +// Helper for ColorPicker4() +// NB: This is rather brittle and will show artifact when rounding this enabled if rounded corners overlap multiple cells. Caller currently responsible for avoiding that. +// Spent a non reasonable amount of time trying to getting this right for ColorButton with rounding+anti-aliasing+ImGuiColorEditFlags_HalfAlphaPreview flag + various grid sizes and offsets, and eventually gave up... probably more reasonable to disable rounding altogether. +// FIXME: uses ImGui::GetColorU32 +void ImGui::RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 col, float grid_step, ImVec2 grid_off, float rounding, ImDrawFlags flags) +{ + if ((flags & ImDrawFlags_RoundCornersMask_) == 0) + flags = ImDrawFlags_RoundCornersDefault_; + if (((col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT) < 0xFF) + { + ImU32 col_bg1 = GetColorU32(ImAlphaBlendColors(IM_COL32(204, 204, 204, 255), col)); + ImU32 col_bg2 = GetColorU32(ImAlphaBlendColors(IM_COL32(128, 128, 128, 255), col)); + draw_list->AddRectFilled(p_min, p_max, col_bg1, rounding, flags); + + int yi = 0; + for (float y = p_min.y + grid_off.y; y < p_max.y; y += grid_step, yi++) + { + float y1 = ImClamp(y, p_min.y, p_max.y), y2 = ImMin(y + grid_step, p_max.y); + if (y2 <= y1) + continue; + for (float x = p_min.x + grid_off.x + (yi & 1) * grid_step; x < p_max.x; x += grid_step * 2.0f) + { + float x1 = ImClamp(x, p_min.x, p_max.x), x2 = ImMin(x + grid_step, p_max.x); + if (x2 <= x1) + continue; + ImDrawFlags cell_flags = ImDrawFlags_RoundCornersNone; + if (y1 <= p_min.y) { if (x1 <= p_min.x) cell_flags |= ImDrawFlags_RoundCornersTopLeft; if (x2 >= p_max.x) cell_flags |= ImDrawFlags_RoundCornersTopRight; } + if (y2 >= p_max.y) { if (x1 <= p_min.x) cell_flags |= ImDrawFlags_RoundCornersBottomLeft; if (x2 >= p_max.x) cell_flags |= ImDrawFlags_RoundCornersBottomRight; } + + // Combine flags + cell_flags = (flags == ImDrawFlags_RoundCornersNone || cell_flags == ImDrawFlags_RoundCornersNone) ? ImDrawFlags_RoundCornersNone : (cell_flags & flags); + draw_list->AddRectFilled(ImVec2(x1, y1), ImVec2(x2, y2), col_bg2, rounding, cell_flags); + } + } + } + else + { + draw_list->AddRectFilled(p_min, p_max, col, rounding, flags); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Decompression code +//----------------------------------------------------------------------------- +// Compressed with stb_compress() then converted to a C array and encoded as base85. +// Use the program in misc/fonts/binary_to_compressed_c.cpp to create the array from a TTF file. +// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. +// Decompression from stb.h (public domain) by Sean Barrett https://github.com/nothings/stb/blob/master/stb.h +//----------------------------------------------------------------------------- + +static unsigned int stb_decompress_length(const unsigned char *input) +{ + return (input[8] << 24) + (input[9] << 16) + (input[10] << 8) + input[11]; +} + +static unsigned char *stb__barrier_out_e, *stb__barrier_out_b; +static const unsigned char *stb__barrier_in_b; +static unsigned char *stb__dout; +static void stb__match(const unsigned char *data, unsigned int length) +{ + // INVERSE of memmove... write each byte before copying the next... + IM_ASSERT(stb__dout + length <= stb__barrier_out_e); + if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } + if (data < stb__barrier_out_b) { stb__dout = stb__barrier_out_e+1; return; } + while (length--) *stb__dout++ = *data++; +} + +static void stb__lit(const unsigned char *data, unsigned int length) +{ + IM_ASSERT(stb__dout + length <= stb__barrier_out_e); + if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } + if (data < stb__barrier_in_b) { stb__dout = stb__barrier_out_e+1; return; } + memcpy(stb__dout, data, length); + stb__dout += length; +} + +#define stb__in2(x) ((i[x] << 8) + i[(x)+1]) +#define stb__in3(x) ((i[x] << 16) + stb__in2((x)+1)) +#define stb__in4(x) ((i[x] << 24) + stb__in3((x)+1)) + +static const unsigned char *stb_decompress_token(const unsigned char *i) +{ + if (*i >= 0x20) { // use fewer if's for cases that expand small + if (*i >= 0x80) stb__match(stb__dout-i[1]-1, i[0] - 0x80 + 1), i += 2; + else if (*i >= 0x40) stb__match(stb__dout-(stb__in2(0) - 0x4000 + 1), i[2]+1), i += 3; + else /* *i >= 0x20 */ stb__lit(i+1, i[0] - 0x20 + 1), i += 1 + (i[0] - 0x20 + 1); + } else { // more ifs for cases that expand large, since overhead is amortized + if (*i >= 0x18) stb__match(stb__dout-(stb__in3(0) - 0x180000 + 1), i[3]+1), i += 4; + else if (*i >= 0x10) stb__match(stb__dout-(stb__in3(0) - 0x100000 + 1), stb__in2(3)+1), i += 5; + else if (*i >= 0x08) stb__lit(i+2, stb__in2(0) - 0x0800 + 1), i += 2 + (stb__in2(0) - 0x0800 + 1); + else if (*i == 0x07) stb__lit(i+3, stb__in2(1) + 1), i += 3 + (stb__in2(1) + 1); + else if (*i == 0x06) stb__match(stb__dout-(stb__in3(1)+1), i[4]+1), i += 5; + else if (*i == 0x04) stb__match(stb__dout-(stb__in3(1)+1), stb__in2(4)+1), i += 6; + } + return i; +} + +static unsigned int stb_adler32(unsigned int adler32, unsigned char *buffer, unsigned int buflen) +{ + const unsigned long ADLER_MOD = 65521; + unsigned long s1 = adler32 & 0xffff, s2 = adler32 >> 16; + unsigned long blocklen = buflen % 5552; + + unsigned long i; + while (buflen) { + for (i=0; i + 7 < blocklen; i += 8) { + s1 += buffer[0], s2 += s1; + s1 += buffer[1], s2 += s1; + s1 += buffer[2], s2 += s1; + s1 += buffer[3], s2 += s1; + s1 += buffer[4], s2 += s1; + s1 += buffer[5], s2 += s1; + s1 += buffer[6], s2 += s1; + s1 += buffer[7], s2 += s1; + + buffer += 8; + } + + for (; i < blocklen; ++i) + s1 += *buffer++, s2 += s1; + + s1 %= ADLER_MOD, s2 %= ADLER_MOD; + buflen -= blocklen; + blocklen = 5552; + } + return (unsigned int)(s2 << 16) + (unsigned int)s1; +} + +static unsigned int stb_decompress(unsigned char *output, const unsigned char *i, unsigned int /*length*/) +{ + if (stb__in4(0) != 0x57bC0000) return 0; + if (stb__in4(4) != 0) return 0; // error! stream is > 4GB + const unsigned int olen = stb_decompress_length(i); + stb__barrier_in_b = i; + stb__barrier_out_e = output + olen; + stb__barrier_out_b = output; + i += 16; + + stb__dout = output; + for (;;) { + const unsigned char *old_i = i; + i = stb_decompress_token(i); + if (i == old_i) { + if (*i == 0x05 && i[1] == 0xfa) { + IM_ASSERT(stb__dout == output + olen); + if (stb__dout != output + olen) return 0; + if (stb_adler32(1, output, olen) != (unsigned int) stb__in4(2)) + return 0; + return olen; + } else { + IM_ASSERT(0); /* NOTREACHED */ + return 0; + } + } + IM_ASSERT(stb__dout <= output + olen); + if (stb__dout > output + olen) + return 0; + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Default font data (ProggyClean.ttf) +//----------------------------------------------------------------------------- +// ProggyClean.ttf +// Copyright (c) 2004, 2005 Tristan Grimmer +// MIT license (see License.txt in http://www.upperbounds.net/download/ProggyClean.ttf.zip) +// Download and more information at http://upperbounds.net +//----------------------------------------------------------------------------- +// File: 'ProggyClean.ttf' (41208 bytes) +// Exported using misc/fonts/binary_to_compressed_c.cpp (with compression + base85 string encoding). +// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. +//----------------------------------------------------------------------------- +static const char proggy_clean_ttf_compressed_data_base85[11980 + 1] = + "7])#######hV0qs'/###[),##/l:$#Q6>##5[n42>c-TH`->>#/e>11NNV=Bv(*:.F?uu#(gRU.o0XGH`$vhLG1hxt9?W`#,5LsCp#-i>.r$<$6pD>Lb';9Crc6tgXmKVeU2cD4Eo3R/" + "2*>]b(MC;$jPfY.;h^`IWM9Qo#t'X#(v#Y9w0#1D$CIf;W'#pWUPXOuxXuU(H9M(1=Ke$$'5F%)]0^#0X@U.a$FBjVQTSDgEKnIS7EM9>ZY9w0#L;>>#Mx&4Mvt//L[MkA#W@lK.N'[0#7RL_&#w+F%HtG9M#XL`N&.,GM4Pg;--VsM.M0rJfLH2eTM`*oJMHRC`N" + "kfimM2J,W-jXS:)r0wK#@Fge$U>`w'N7G#$#fB#$E^$#:9:hk+eOe--6x)F7*E%?76%^GMHePW-Z5l'&GiF#$956:rS?dA#fiK:)Yr+`�j@'DbG&#^$PG.Ll+DNa&VZ>1i%h1S9u5o@YaaW$e+bROPOpxTO7Stwi1::iB1q)C_=dV26J;2,]7op$]uQr@_V7$q^%lQwtuHY]=DX,n3L#0PHDO4f9>dC@O>HBuKPpP*E,N+b3L#lpR/MrTEH.IAQk.a>D[.e;mc." + "x]Ip.PH^'/aqUO/$1WxLoW0[iLAw=4h(9.`G" + "CRUxHPeR`5Mjol(dUWxZa(>STrPkrJiWx`5U7F#.g*jrohGg`cg:lSTvEY/EV_7H4Q9[Z%cnv;JQYZ5q.l7Zeas:HOIZOB?Ggv:[7MI2k).'2($5FNP&EQ(,)" + "U]W]+fh18.vsai00);D3@4ku5P?DP8aJt+;qUM]=+b'8@;mViBKx0DE[-auGl8:PJ&Dj+M6OC]O^((##]`0i)drT;-7X`=-H3[igUnPG-NZlo.#k@h#=Ork$m>a>$-?Tm$UV(?#P6YY#" + "'/###xe7q.73rI3*pP/$1>s9)W,JrM7SN]'/4C#v$U`0#V.[0>xQsH$fEmPMgY2u7Kh(G%siIfLSoS+MK2eTM$=5,M8p`A.;_R%#u[K#$x4AG8.kK/HSB==-'Ie/QTtG?-.*^N-4B/ZM" + "_3YlQC7(p7q)&](`6_c)$/*JL(L-^(]$wIM`dPtOdGA,U3:w2M-0+WomX2u7lqM2iEumMTcsF?-aT=Z-97UEnXglEn1K-bnEO`gu" + "Ft(c%=;Am_Qs@jLooI&NX;]0#j4#F14;gl8-GQpgwhrq8'=l_f-b49'UOqkLu7-##oDY2L(te+Mch&gLYtJ,MEtJfLh'x'M=$CS-ZZ%P]8bZ>#S?YY#%Q&q'3^Fw&?D)UDNrocM3A76/" + "/oL?#h7gl85[qW/NDOk%16ij;+:1a'iNIdb-ou8.P*w,v5#EI$TWS>Pot-R*H'-SEpA:g)f+O$%%`kA#G=8RMmG1&O`>to8bC]T&$,n.LoO>29sp3dt-52U%VM#q7'DHpg+#Z9%H[Ket`e;)f#Km8&+DC$I46>#Kr]]u-[=99tts1.qb#q72g1WJO81q+eN'03'eM>&1XxY-caEnO" + "j%2n8)),?ILR5^.Ibn<-X-Mq7[a82Lq:F&#ce+S9wsCK*x`569E8ew'He]h:sI[2LM$[guka3ZRd6:t%IG:;$%YiJ:Nq=?eAw;/:nnDq0(CYcMpG)qLN4$##&J-XTt,%OVU4)S1+R-#dg0/Nn?Ku1^0f$B*P:Rowwm-`0PKjYDDM'3]d39VZHEl4,.j']Pk-M.h^&:0FACm$maq-&sgw0t7/6(^xtk%" + "LuH88Fj-ekm>GA#_>568x6(OFRl-IZp`&b,_P'$MhLbxfc$mj`,O;&%W2m`Zh:/)Uetw:aJ%]K9h:TcF]u_-Sj9,VK3M.*'&0D[Ca]J9gp8,kAW]" + "%(?A%R$f<->Zts'^kn=-^@c4%-pY6qI%J%1IGxfLU9CP8cbPlXv);C=b),<2mOvP8up,UVf3839acAWAW-W?#ao/^#%KYo8fRULNd2.>%m]UK:n%r$'sw]J;5pAoO_#2mO3n,'=H5(et" + "Hg*`+RLgv>=4U8guD$I%D:W>-r5V*%j*W:Kvej.Lp$'?;++O'>()jLR-^u68PHm8ZFWe+ej8h:9r6L*0//c&iH&R8pRbA#Kjm%upV1g:" + "a_#Ur7FuA#(tRh#.Y5K+@?3<-8m0$PEn;J:rh6?I6uG<-`wMU'ircp0LaE_OtlMb&1#6T.#FDKu#1Lw%u%+GM+X'e?YLfjM[VO0MbuFp7;>Q&#WIo)0@F%q7c#4XAXN-U&VBpqB>0ie&jhZ[?iLR@@_AvA-iQC(=ksRZRVp7`.=+NpBC%rh&3]R:8XDmE5^V8O(x<-+k?'(^](H.aREZSi,#1:[IXaZFOm<-ui#qUq2$##Ri;u75OK#(RtaW-K-F`S+cF]uN`-KMQ%rP/Xri.LRcB##=YL3BgM/3M" + "D?@f&1'BW-)Ju#bmmWCMkk&#TR`C,5d>g)F;t,4:@_l8G/5h4vUd%&%950:VXD'QdWoY-F$BtUwmfe$YqL'8(PWX(" + "P?^@Po3$##`MSs?DWBZ/S>+4%>fX,VWv/w'KD`LP5IbH;rTV>n3cEK8U#bX]l-/V+^lj3;vlMb&[5YQ8#pekX9JP3XUC72L,,?+Ni&co7ApnO*5NK,((W-i:$,kp'UDAO(G0Sq7MVjJs" + "bIu)'Z,*[>br5fX^:FPAWr-m2KgLQ_nN6'8uTGT5g)uLv:873UpTLgH+#FgpH'_o1780Ph8KmxQJ8#H72L4@768@Tm&Q" + "h4CB/5OvmA&,Q&QbUoi$a_%3M01H)4x7I^&KQVgtFnV+;[Pc>[m4k//,]1?#`VY[Jr*3&&slRfLiVZJ:]?=K3Sw=[$=uRB?3xk48@aege0jT6'N#(q%.O=?2S]u*(m<-" + "V8J'(1)G][68hW$5'q[GC&5j`TE?m'esFGNRM)j,ffZ?-qx8;->g4t*:CIP/[Qap7/9'#(1sao7w-.qNUdkJ)tCF&#B^;xGvn2r9FEPFFFcL@.iFNkTve$m%#QvQS8U@)2Z+3K:AKM5i" + "sZ88+dKQ)W6>J%CL`.d*(B`-n8D9oK-XV1q['-5k'cAZ69e;D_?$ZPP&s^+7])$*$#@QYi9,5P r+$%CE=68>K8r0=dSC%%(@p7" + ".m7jilQ02'0-VWAgTlGW'b)Tq7VT9q^*^$$.:&N@@" + "$&)WHtPm*5_rO0&e%K&#-30j(E4#'Zb.o/(Tpm$>K'f@[PvFl,hfINTNU6u'0pao7%XUp9]5.>%h`8_=VYbxuel.NTSsJfLacFu3B'lQSu/m6-Oqem8T+oE--$0a/k]uj9EwsG>%veR*" + "hv^BFpQj:K'#SJ,sB-'#](j.Lg92rTw-*n%@/;39rrJF,l#qV%OrtBeC6/,;qB3ebNW[?,Hqj2L.1NP&GjUR=1D8QaS3Up&@*9wP?+lo7b?@%'k4`p0Z$22%K3+iCZj?XJN4Nm&+YF]u" + "@-W$U%VEQ/,,>>#)D#%8cY#YZ?=,`Wdxu/ae&#" + "w6)R89tI#6@s'(6Bf7a&?S=^ZI_kS&ai`&=tE72L_D,;^R)7[$so8lKN%5/$(vdfq7+ebA#" + "u1p]ovUKW&Y%q]'>$1@-[xfn$7ZTp7mM,G,Ko7a&Gu%G[RMxJs[0MM%wci.LFDK)(%:_i2B5CsR8&9Z&#=mPEnm0f`<&c)QL5uJ#%u%lJj+D-r;BoFDoS97h5g)E#o:&S4weDF,9^Hoe`h*L+_a*NrLW-1pG_&2UdB8" + "6e%B/:=>)N4xeW.*wft-;$'58-ESqr#U`'6AQ]m&6/`Z>#S?YY#Vc;r7U2&326d=w&H####?TZ`*4?&.MK?LP8Vxg>$[QXc%QJv92.(Db*B)gb*BM9dM*hJMAo*c&#" + "b0v=Pjer]$gG&JXDf->'StvU7505l9$AFvgYRI^&<^b68?j#q9QX4SM'RO#&sL1IM.rJfLUAj221]d##DW=m83u5;'bYx,*Sl0hL(W;;$doB&O/TQ:(Z^xBdLjLV#*8U_72Lh+2Q8Cj0i:6hp&$C/:p(HK>T8Y[gHQ4`4)'$Ab(Nof%V'8hL&#SfD07&6D@M.*J:;$-rv29'M]8qMv-tLp,'886iaC=Hb*YJoKJ,(j%K=H`K.v9HggqBIiZu'QvBT.#=)0ukruV&.)3=(^1`o*Pj4<-#MJ+gLq9-##@HuZPN0]u:h7.T..G:;$/Usj(T7`Q8tT72LnYl<-qx8;-HV7Q-&Xdx%1a,hC=0u+HlsV>nuIQL-5" + "_>@kXQtMacfD.m-VAb8;IReM3$wf0''hra*so568'Ip&vRs849'MRYSp%:t:h5qSgwpEr$B>Q,;s(C#$)`svQuF$##-D,##,g68@2[T;.XSdN9Qe)rpt._K-#5wF)sP'##p#C0c%-Gb%" + "hd+<-j'Ai*x&&HMkT]C'OSl##5RG[JXaHN;d'uA#x._U;.`PU@(Z3dt4r152@:v,'R.Sj'w#0<-;kPI)FfJ&#AYJ&#//)>-k=m=*XnK$>=)72L]0I%>.G690a:$##<,);?;72#?x9+d;" + "^V'9;jY@;)br#q^YQpx:X#Te$Z^'=-=bGhLf:D6&bNwZ9-ZD#n^9HhLMr5G;']d&6'wYmTFmLq9wI>P(9mI[>kC-ekLC/R&CH+s'B;K-M6$EB%is00:" + "+A4[7xks.LrNk0&E)wILYF@2L'0Nb$+pv<(2.768/FrY&h$^3i&@+G%JT'<-,v`3;_)I9M^AE]CN?Cl2AZg+%4iTpT3$U4O]GKx'm9)b@p7YsvK3w^YR-" + "CdQ*:Ir<($u&)#(&?L9Rg3H)4fiEp^iI9O8KnTj,]H?D*r7'M;PwZ9K0E^k&-cpI;.p/6_vwoFMV<->#%Xi.LxVnrU(4&8/P+:hLSKj$#U%]49t'I:rgMi'FL@a:0Y-uA[39',(vbma*" + "hU%<-SRF`Tt:542R_VV$p@[p8DV[A,?1839FWdFTi1O*H&#(AL8[_P%.M>v^-))qOT*F5Cq0`Ye%+$B6i:7@0IXSsDiWP,##P`%/L-" + "S(qw%sf/@%#B6;/U7K]uZbi^Oc^2n%t<)'mEVE''n`WnJra$^TKvX5B>;_aSEK',(hwa0:i4G?.Bci.(X[?b*($,=-n<.Q%`(X=?+@Am*Js0&=3bh8K]mL69=Lb,OcZV/);TTm8VI;?%OtJ<(b4mq7M6:u?KRdFl*:xP?Yb.5)%w_I?7uk5JC+FS(m#i'k.'a0i)9<7b'fs'59hq$*5Uhv##pi^8+hIEBF`nvo`;'l0.^S1<-wUK2/Coh58KKhLj" + "M=SO*rfO`+qC`W-On.=AJ56>>i2@2LH6A:&5q`?9I3@@'04&p2/LVa*T-4<-i3;M9UvZd+N7>b*eIwg:CC)c<>nO&#$(>.Z-I&J(Q0Hd5Q%7Co-b`-cP)hI;*_F]u`Rb[.j8_Q/<&>uu+VsH$sM9TA%?)(vmJ80),P7E>)tjD%2L=-t#fK[%`v=Q8WlA2);Sa" + ">gXm8YB`1d@K#n]76-a$U,mF%Ul:#/'xoFM9QX-$.QN'>" + "[%$Z$uF6pA6Ki2O5:8w*vP1<-1`[G,)-m#>0`P&#eb#.3i)rtB61(o'$?X3B2Qft^ae_5tKL9MUe9b*sLEQ95C&`=G?@Mj=wh*'3E>=-<)Gt*Iw)'QG:`@I" + "wOf7&]1i'S01B+Ev/Nac#9S;=;YQpg_6U`*kVY39xK,[/6Aj7:'1Bm-_1EYfa1+o&o4hp7KN_Q(OlIo@S%;jVdn0'1h19w,WQhLI)3S#f$2(eb,jr*b;3Vw]*7NH%$c4Vs,eD9>XW8?N]o+(*pgC%/72LV-uW%iewS8W6m2rtCpo'RS1R84=@paTKt)>=%&1[)*vp'u+x,VrwN;&]kuO9JDbg=pO$J*.jVe;u'm0dr9l,<*wMK*Oe=g8lV_KEBFkO'oU]^=[-792#ok,)" + "i]lR8qQ2oA8wcRCZ^7w/Njh;?.stX?Q1>S1q4Bn$)K1<-rGdO'$Wr.Lc.CG)$/*JL4tNR/,SVO3,aUw'DJN:)Ss;wGn9A32ijw%FL+Z0Fn.U9;reSq)bmI32U==5ALuG&#Vf1398/pVo" + "1*c-(aY168o<`JsSbk-,1N;$>0:OUas(3:8Z972LSfF8eb=c-;>SPw7.6hn3m`9^Xkn(r.qS[0;T%&Qc=+STRxX'q1BNk3&*eu2;&8q$&x>Q#Q7^Tf+6<(d%ZVmj2bDi%.3L2n+4W'$P" + "iDDG)g,r%+?,$@?uou5tSe2aN_AQU*'IAO" + "URQ##V^Fv-XFbGM7Fl(N<3DhLGF%q.1rC$#:T__&Pi68%0xi_&[qFJ(77j_&JWoF.V735&T,[R*:xFR*K5>>#`bW-?4Ne_&6Ne_&6Ne_&n`kr-#GJcM6X;uM6X;uM(.a..^2TkL%oR(#" + ";u.T%fAr%4tJ8&><1=GHZ_+m9/#H1F^R#SC#*N=BA9(D?v[UiFY>>^8p,KKF.W]L29uLkLlu/+4T" + "w$)F./^n3+rlo+DB;5sIYGNk+i1t-69Jg--0pao7Sm#K)pdHW&;LuDNH@H>#/X-TI(;P>#,Gc>#0Su>#4`1?#8lC?#xL$#B.`$#F:r$#JF.%#NR@%#R_R%#Vke%#Zww%#_-4^Rh%Sflr-k'MS.o?.5/sWel/wpEM0%3'/1)K^f1-d>G21&v(35>V`39V7A4=onx4" + "A1OY5EI0;6Ibgr6M$HS7Q<)58C5w,;WoA*#[%T*#`1g*#d=#+#hI5+#lUG+#pbY+#tnl+#x$),#&1;,#*=M,#.I`,#2Ur,#6b.-#;w[H#iQtA#m^0B#qjBB#uvTB##-hB#'9$C#+E6C#" + "/QHC#3^ZC#7jmC#;v)D#?,)4kMYD4lVu`4m`:&5niUA5@(A5BA1]PBB:xlBCC=2CDLXMCEUtiCf&0g2'tN?PGT4CPGT4CPGT4CPGT4CPGT4CPGT4CPGT4CP" + "GT4CPGT4CPGT4CPGT4CPGT4CPGT4CP-qekC`.9kEg^+F$kwViFJTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5o,^<-28ZI'O?;xp" + "O?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xp;7q-#lLYI:xvD=#"; + +static const char* GetDefaultCompressedFontDataTTFBase85() +{ + return proggy_clean_ttf_compressed_data_base85; +} + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/imgui_internal.h b/HexaGen.Tests/cpp2c/imgui/imgui_internal.h new file mode 100644 index 0000000..09cb884 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/imgui_internal.h @@ -0,0 +1,3775 @@ +// dear imgui, v1.90 WIP +// (internal structures/api) + +// You may use this file to debug, understand or extend Dear ImGui features but we don't provide any guarantee of forward compatibility. + +/* + +Index of this file: + +// [SECTION] Header mess +// [SECTION] Forward declarations +// [SECTION] Context pointer +// [SECTION] STB libraries includes +// [SECTION] Macros +// [SECTION] Generic helpers +// [SECTION] ImDrawList support +// [SECTION] Widgets support: flags, enums, data structures +// [SECTION] Inputs support +// [SECTION] Clipper support +// [SECTION] Navigation support +// [SECTION] Typing-select support +// [SECTION] Columns support +// [SECTION] Multi-select support +// [SECTION] Docking support +// [SECTION] Viewport support +// [SECTION] Settings support +// [SECTION] Localization support +// [SECTION] Metrics, Debug tools +// [SECTION] Generic context hooks +// [SECTION] ImGuiContext (main imgui context) +// [SECTION] ImGuiWindowTempData, ImGuiWindow +// [SECTION] Tab bar, Tab item support +// [SECTION] Table support +// [SECTION] ImGui internal API +// [SECTION] ImFontAtlas internal API +// [SECTION] Test Engine specific hooks (imgui_test_engine) + +*/ + +#pragma once +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +#ifndef IMGUI_VERSION +#include "imgui.h" +#endif + +#include // FILE*, sscanf +#include // NULL, malloc, free, qsort, atoi, atof +#include // sqrtf, fabsf, fmodf, powf, floorf, ceilf, cosf, sinf +#include // INT_MIN, INT_MAX + +// Enable SSE intrinsics if available +#if (defined __SSE__ || defined __x86_64__ || defined _M_X64 || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1))) && !defined(IMGUI_DISABLE_SSE) +#define IMGUI_ENABLE_SSE +#include +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 4251) // class 'xxx' needs to have dll-interface to be used by clients of struct 'xxx' // when IMGUI_API is set to__declspec(dllexport) +#pragma warning (disable: 26812) // The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). [MSVC Static Analyzer) +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok, for ImFloor() +#pragma clang diagnostic ignored "-Wunused-function" // for stb_textedit.h +#pragma clang diagnostic ignored "-Wmissing-prototypes" // for stb_textedit.h +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#pragma clang diagnostic ignored "-Wdouble-promotion" +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#pragma clang diagnostic ignored "-Wmissing-noreturn" // warning: function 'xxx' could be declared with attribute 'noreturn' +#elif defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +// In 1.89.4, we moved the implementation of "courtesy maths operators" from imgui_internal.h in imgui.h +// As they are frequently requested, we do not want to encourage to many people using imgui_internal.h +#if defined(IMGUI_DEFINE_MATH_OPERATORS) && !defined(IMGUI_DEFINE_MATH_OPERATORS_IMPLEMENTED) +#error Please '#define IMGUI_DEFINE_MATH_OPERATORS' _BEFORE_ including imgui.h! +#endif + +// Legacy defines +#ifdef IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS // Renamed in 1.74 +#error Use IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +#endif +#ifdef IMGUI_DISABLE_MATH_FUNCTIONS // Renamed in 1.74 +#error Use IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS +#endif + +// Enable stb_truetype by default unless FreeType is enabled. +// You can compile with both by defining both IMGUI_ENABLE_FREETYPE and IMGUI_ENABLE_STB_TRUETYPE together. +#ifndef IMGUI_ENABLE_FREETYPE +#define IMGUI_ENABLE_STB_TRUETYPE +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward declarations +//----------------------------------------------------------------------------- + +struct ImBitVector; // Store 1-bit per value +struct ImRect; // An axis-aligned rectangle (2 points) +struct ImDrawDataBuilder; // Helper to build a ImDrawData instance +struct ImDrawListSharedData; // Data shared between all ImDrawList instances +struct ImGuiColorMod; // Stacked color modifier, backup of modified data so we can restore it +struct ImGuiContext; // Main Dear ImGui context +struct ImGuiContextHook; // Hook for extensions like ImGuiTestEngine +struct ImGuiDataVarInfo; // Variable information (e.g. to avoid style variables from an enum) +struct ImGuiDataTypeInfo; // Type information associated to a ImGuiDataType enum +struct ImGuiDockContext; // Docking system context +struct ImGuiDockRequest; // Docking system dock/undock queued request +struct ImGuiDockNode; // Docking system node (hold a list of Windows OR two child dock nodes) +struct ImGuiDockNodeSettings; // Storage for a dock node in .ini file (we preserve those even if the associated dock node isn't active during the session) +struct ImGuiGroupData; // Stacked storage data for BeginGroup()/EndGroup() +struct ImGuiInputTextState; // Internal state of the currently focused/edited text input box +struct ImGuiInputTextDeactivateData;// Short term storage to backup text of a deactivating InputText() while another is stealing active id +struct ImGuiLastItemData; // Status storage for last submitted items +struct ImGuiLocEntry; // A localization entry. +struct ImGuiMenuColumns; // Simple column measurement, currently used for MenuItem() only +struct ImGuiNavItemData; // Result of a gamepad/keyboard directional navigation move query result +struct ImGuiNavTreeNodeData; // Temporary storage for last TreeNode() being a Left arrow landing candidate. +struct ImGuiMetricsConfig; // Storage for ShowMetricsWindow() and DebugNodeXXX() functions +struct ImGuiNextWindowData; // Storage for SetNextWindow** functions +struct ImGuiNextItemData; // Storage for SetNextItem** functions +struct ImGuiOldColumnData; // Storage data for a single column for legacy Columns() api +struct ImGuiOldColumns; // Storage data for a columns set for legacy Columns() api +struct ImGuiPopupData; // Storage for current popup stack +struct ImGuiSettingsHandler; // Storage for one type registered in the .ini file +struct ImGuiStackSizes; // Storage of stack sizes for debugging/asserting +struct ImGuiStyleMod; // Stacked style modifier, backup of modified data so we can restore it +struct ImGuiTabBar; // Storage for a tab bar +struct ImGuiTabItem; // Storage for a tab item (within a tab bar) +struct ImGuiTable; // Storage for a table +struct ImGuiTableColumn; // Storage for one column of a table +struct ImGuiTableInstanceData; // Storage for one instance of a same table +struct ImGuiTableTempData; // Temporary storage for one table (one per table in the stack), shared between tables. +struct ImGuiTableSettings; // Storage for a table .ini settings +struct ImGuiTableColumnsSettings; // Storage for a column .ini settings +struct ImGuiTypingSelectState; // Storage for GetTypingSelectRequest() +struct ImGuiTypingSelectRequest; // Storage for GetTypingSelectRequest() (aimed to be public) +struct ImGuiWindow; // Storage for one window +struct ImGuiWindowTempData; // Temporary storage for one window (that's the data which in theory we could ditch at the end of the frame, in practice we currently keep it for each window) +struct ImGuiWindowSettings; // Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during this session) + +// Enumerations +// Use your programming IDE "Go to definition" facility on the names of the center columns to find the actual flags/enum lists. +enum ImGuiLocKey : int; // -> enum ImGuiLocKey // Enum: a localization entry for translation. +typedef int ImGuiDataAuthority; // -> enum ImGuiDataAuthority_ // Enum: for storing the source authority (dock node vs window) of a field +typedef int ImGuiLayoutType; // -> enum ImGuiLayoutType_ // Enum: Horizontal or vertical + +// Flags +typedef int ImGuiActivateFlags; // -> enum ImGuiActivateFlags_ // Flags: for navigation/focus function (will be for ActivateItem() later) +typedef int ImGuiDebugLogFlags; // -> enum ImGuiDebugLogFlags_ // Flags: for ShowDebugLogWindow(), g.DebugLogFlags +typedef int ImGuiFocusRequestFlags; // -> enum ImGuiFocusRequestFlags_ // Flags: for FocusWindow(); +typedef int ImGuiInputFlags; // -> enum ImGuiInputFlags_ // Flags: for IsKeyPressed(), IsMouseClicked(), SetKeyOwner(), SetItemKeyOwner() etc. +typedef int ImGuiItemFlags; // -> enum ImGuiItemFlags_ // Flags: for PushItemFlag(), g.LastItemData.InFlags +typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for g.LastItemData.StatusFlags +typedef int ImGuiOldColumnFlags; // -> enum ImGuiOldColumnFlags_ // Flags: for BeginColumns() +typedef int ImGuiNavHighlightFlags; // -> enum ImGuiNavHighlightFlags_ // Flags: for RenderNavHighlight() +typedef int ImGuiNavMoveFlags; // -> enum ImGuiNavMoveFlags_ // Flags: for navigation requests +typedef int ImGuiNextItemDataFlags; // -> enum ImGuiNextItemDataFlags_ // Flags: for SetNextItemXXX() functions +typedef int ImGuiNextWindowDataFlags; // -> enum ImGuiNextWindowDataFlags_// Flags: for SetNextWindowXXX() functions +typedef int ImGuiScrollFlags; // -> enum ImGuiScrollFlags_ // Flags: for ScrollToItem() and navigation requests +typedef int ImGuiSeparatorFlags; // -> enum ImGuiSeparatorFlags_ // Flags: for SeparatorEx() +typedef int ImGuiTextFlags; // -> enum ImGuiTextFlags_ // Flags: for TextEx() +typedef int ImGuiTooltipFlags; // -> enum ImGuiTooltipFlags_ // Flags: for BeginTooltipEx() +typedef int ImGuiTypingSelectFlags; // -> enum ImGuiTypingSelectFlags_ // Flags: for GetTypingSelectRequest() + +typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...); + +//----------------------------------------------------------------------------- +// [SECTION] Context pointer +// See implementation of this variable in imgui.cpp for comments and details. +//----------------------------------------------------------------------------- + +#ifndef GImGui +extern IMGUI_API ImGuiContext* GImGui; // Current implicit context pointer +#endif + +//------------------------------------------------------------------------- +// [SECTION] STB libraries includes +//------------------------------------------------------------------------- + +namespace ImStb +{ + +#undef STB_TEXTEDIT_STRING +#undef STB_TEXTEDIT_CHARTYPE +#define STB_TEXTEDIT_STRING ImGuiInputTextState +#define STB_TEXTEDIT_CHARTYPE ImWchar +#define STB_TEXTEDIT_GETWIDTH_NEWLINE (-1.0f) +#define STB_TEXTEDIT_UNDOSTATECOUNT 99 +#define STB_TEXTEDIT_UNDOCHARCOUNT 999 +#include "imstb_textedit.h" + +} // namespace ImStb + +//----------------------------------------------------------------------------- +// [SECTION] Macros +//----------------------------------------------------------------------------- + +// Internal Drag and Drop payload types. String starting with '_' are reserved for Dear ImGui. +#define IMGUI_PAYLOAD_TYPE_WINDOW "_IMWINDOW" // Payload == ImGuiWindow* + +// Debug Printing Into TTY +// (since IMGUI_VERSION_NUM >= 18729: IMGUI_DEBUG_LOG was reworked into IMGUI_DEBUG_PRINTF (and removed framecount from it). If you were using a #define IMGUI_DEBUG_LOG please rename) +#ifndef IMGUI_DEBUG_PRINTF +#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +#define IMGUI_DEBUG_PRINTF(_FMT,...) printf(_FMT, __VA_ARGS__) +#else +#define IMGUI_DEBUG_PRINTF(_FMT,...) ((void)0) +#endif +#endif + +// Debug Logging for ShowDebugLogWindow(). This is designed for relatively rare events so please don't spam. +#ifndef IMGUI_DISABLE_DEBUG_TOOLS +#define IMGUI_DEBUG_LOG(...) ImGui::DebugLog(__VA_ARGS__) +#else +#define IMGUI_DEBUG_LOG(...) ((void)0) +#endif +#define IMGUI_DEBUG_LOG_ACTIVEID(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventActiveId) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_FOCUS(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventFocus) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_POPUP(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventPopup) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_NAV(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventNav) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_SELECTION(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventSelection)IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_CLIPPER(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventClipper) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_IO(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_DOCKING(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventDocking) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_VIEWPORT(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventViewport) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) + +// Static Asserts +#define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") + +// "Paranoid" Debug Asserts are meant to only be enabled during specific debugging/work, otherwise would slow down the code too much. +// We currently don't have many of those so the effect is currently negligible, but onward intent to add more aggressive ones in the code. +//#define IMGUI_DEBUG_PARANOID +#ifdef IMGUI_DEBUG_PARANOID +#define IM_ASSERT_PARANOID(_EXPR) IM_ASSERT(_EXPR) +#else +#define IM_ASSERT_PARANOID(_EXPR) +#endif + +// Error handling +// Down the line in some frameworks/languages we would like to have a way to redirect those to the programmer and recover from more faults. +#ifndef IM_ASSERT_USER_ERROR +#define IM_ASSERT_USER_ERROR(_EXP,_MSG) IM_ASSERT((_EXP) && _MSG) // Recoverable User Error +#endif + +// Misc Macros +#define IM_PI 3.14159265358979323846f +#ifdef _WIN32 +#define IM_NEWLINE "\r\n" // Play it nice with Windows users (Update: since 2018-05, Notepad finally appears to support Unix-style carriage returns!) +#else +#define IM_NEWLINE "\n" +#endif +#ifndef IM_TABSIZE // Until we move this to runtime and/or add proper tab support, at least allow users to compile-time override +#define IM_TABSIZE (4) +#endif +#define IM_MEMALIGN(_OFF,_ALIGN) (((_OFF) + ((_ALIGN) - 1)) & ~((_ALIGN) - 1)) // Memory align e.g. IM_ALIGN(0,4)=0, IM_ALIGN(1,4)=4, IM_ALIGN(4,4)=4, IM_ALIGN(5,4)=8 +#define IM_F32_TO_INT8_UNBOUND(_VAL) ((int)((_VAL) * 255.0f + ((_VAL)>=0 ? 0.5f : -0.5f))) // Unsaturated, for display purpose +#define IM_F32_TO_INT8_SAT(_VAL) ((int)(ImSaturate(_VAL) * 255.0f + 0.5f)) // Saturated, always output 0..255 +#define IM_TRUNC(_VAL) ((float)(int)(_VAL)) // ImTrunc() is not inlined in MSVC debug builds +#define IM_ROUND(_VAL) ((float)(int)((_VAL) + 0.5f)) // +#define IM_STRINGIFY_HELPER(_X) #_X +#define IM_STRINGIFY(_X) IM_STRINGIFY_HELPER(_X) // Preprocessor idiom to stringify e.g. an integer. +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +#define IM_FLOOR IM_TRUNC +#endif + +// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall +#ifdef _MSC_VER +#define IMGUI_CDECL __cdecl +#else +#define IMGUI_CDECL +#endif + +// Warnings +#if defined(_MSC_VER) && !defined(__clang__) +#define IM_MSVC_WARNING_SUPPRESS(XXXX) __pragma(warning(suppress: XXXX)) +#else +#define IM_MSVC_WARNING_SUPPRESS(XXXX) +#endif + +// Debug Tools +// Use 'Metrics/Debugger->Tools->Item Picker' to break into the call-stack of a specific item. +// This will call IM_DEBUG_BREAK() which you may redefine yourself. See https://github.com/scottt/debugbreak for more reference. +#ifndef IM_DEBUG_BREAK +#if defined (_MSC_VER) +#define IM_DEBUG_BREAK() __debugbreak() +#elif defined(__clang__) +#define IM_DEBUG_BREAK() __builtin_debugtrap() +#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) +#define IM_DEBUG_BREAK() __asm__ volatile("int $0x03") +#elif defined(__GNUC__) && defined(__thumb__) +#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xde01") +#elif defined(__GNUC__) && defined(__arm__) && !defined(__thumb__) +#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xe7f001f0"); +#else +#define IM_DEBUG_BREAK() IM_ASSERT(0) // It is expected that you define IM_DEBUG_BREAK() into something that will break nicely in a debugger! +#endif +#endif // #ifndef IM_DEBUG_BREAK + +// Format specifiers, printing 64-bit hasn't been decently standardized... +// In a real application you should be using PRId64 and PRIu64 from (non-windows) and on Windows define them yourself. +#if defined(_MSC_VER) && !defined(__clang__) +#define IM_PRId64 "I64d" +#define IM_PRIu64 "I64u" +#define IM_PRIX64 "I64X" +#else +#define IM_PRId64 "lld" +#define IM_PRIu64 "llu" +#define IM_PRIX64 "llX" +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Generic helpers +// Note that the ImXXX helpers functions are lower-level than ImGui functions. +// ImGui functions or the ImGui context are never called/used from other ImXXX functions. +//----------------------------------------------------------------------------- +// - Helpers: Hashing +// - Helpers: Sorting +// - Helpers: Bit manipulation +// - Helpers: String +// - Helpers: Formatting +// - Helpers: UTF-8 <> wchar conversions +// - Helpers: ImVec2/ImVec4 operators +// - Helpers: Maths +// - Helpers: Geometry +// - Helper: ImVec1 +// - Helper: ImVec2ih +// - Helper: ImRect +// - Helper: ImBitArray +// - Helper: ImBitVector +// - Helper: ImSpan<>, ImSpanAllocator<> +// - Helper: ImPool<> +// - Helper: ImChunkStream<> +// - Helper: ImGuiTextIndex +//----------------------------------------------------------------------------- + +// Helpers: Hashing +IMGUI_API ImGuiID ImHashData(const void* data, size_t data_size, ImGuiID seed = 0); +IMGUI_API ImGuiID ImHashStr(const char* data, size_t data_size = 0, ImGuiID seed = 0); + +// Helpers: Sorting +#ifndef ImQsort +static inline void ImQsort(void* base, size_t count, size_t size_of_element, int(IMGUI_CDECL *compare_func)(void const*, void const*)) { if (count > 1) qsort(base, count, size_of_element, compare_func); } +#endif + +// Helpers: Color Blending +IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b); + +// Helpers: Bit manipulation +static inline bool ImIsPowerOfTwo(int v) { return v != 0 && (v & (v - 1)) == 0; } +static inline bool ImIsPowerOfTwo(ImU64 v) { return v != 0 && (v & (v - 1)) == 0; } +static inline int ImUpperPowerOfTwo(int v) { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; } + +// Helpers: String +IMGUI_API int ImStricmp(const char* str1, const char* str2); // Case insensitive compare. +IMGUI_API int ImStrnicmp(const char* str1, const char* str2, size_t count); // Case insensitive compare to a certain count. +IMGUI_API void ImStrncpy(char* dst, const char* src, size_t count); // Copy to a certain count and always zero terminate (strncpy doesn't). +IMGUI_API char* ImStrdup(const char* str); // Duplicate a string. +IMGUI_API char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* str); // Copy in provided buffer, recreate buffer if needed. +IMGUI_API const char* ImStrchrRange(const char* str_begin, const char* str_end, char c); // Find first occurrence of 'c' in string range. +IMGUI_API const char* ImStreolRange(const char* str, const char* str_end); // End end-of-line +IMGUI_API const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); // Find a substring in a string range. +IMGUI_API void ImStrTrimBlanks(char* str); // Remove leading and trailing blanks from a buffer. +IMGUI_API const char* ImStrSkipBlank(const char* str); // Find first non-blank character. +IMGUI_API int ImStrlenW(const ImWchar* str); // Computer string length (ImWchar string) +IMGUI_API const ImWchar*ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin); // Find beginning-of-line (ImWchar string) +IM_MSVC_RUNTIME_CHECKS_OFF +static inline char ImToUpper(char c) { return (c >= 'a' && c <= 'z') ? c &= ~32 : c; } +static inline bool ImCharIsBlankA(char c) { return c == ' ' || c == '\t'; } +static inline bool ImCharIsBlankW(unsigned int c) { return c == ' ' || c == '\t' || c == 0x3000; } +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helpers: Formatting +IMGUI_API int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) IM_FMTARGS(3); +IMGUI_API int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) IM_FMTLIST(3); +IMGUI_API void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) IM_FMTARGS(3); +IMGUI_API void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) IM_FMTLIST(3); +IMGUI_API const char* ImParseFormatFindStart(const char* format); +IMGUI_API const char* ImParseFormatFindEnd(const char* format); +IMGUI_API const char* ImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size); +IMGUI_API void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size); +IMGUI_API const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size); +IMGUI_API int ImParseFormatPrecision(const char* format, int default_value); + +// Helpers: UTF-8 <> wchar conversions +IMGUI_API const char* ImTextCharToUtf8(char out_buf[5], unsigned int c); // return out_buf +IMGUI_API int ImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end); // return output UTF-8 bytes count +IMGUI_API int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end); // read one character. return input UTF-8 bytes count +IMGUI_API int ImTextStrFromUtf8(ImWchar* out_buf, int out_buf_size, const char* in_text, const char* in_text_end, const char** in_remaining = NULL); // return input UTF-8 bytes count +IMGUI_API int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end); // return number of UTF-8 code-points (NOT bytes count) +IMGUI_API int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end); // return number of bytes to express one char in UTF-8 +IMGUI_API int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end); // return number of bytes to express string in UTF-8 +IMGUI_API const char* ImTextFindPreviousUtf8Codepoint(const char* in_text_start, const char* in_text_curr); // return previous UTF-8 code-point. + +// Helpers: File System +#ifdef IMGUI_DISABLE_FILE_FUNCTIONS +#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS +typedef void* ImFileHandle; +static inline ImFileHandle ImFileOpen(const char*, const char*) { return NULL; } +static inline bool ImFileClose(ImFileHandle) { return false; } +static inline ImU64 ImFileGetSize(ImFileHandle) { return (ImU64)-1; } +static inline ImU64 ImFileRead(void*, ImU64, ImU64, ImFileHandle) { return 0; } +static inline ImU64 ImFileWrite(const void*, ImU64, ImU64, ImFileHandle) { return 0; } +#endif +#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS +typedef FILE* ImFileHandle; +IMGUI_API ImFileHandle ImFileOpen(const char* filename, const char* mode); +IMGUI_API bool ImFileClose(ImFileHandle file); +IMGUI_API ImU64 ImFileGetSize(ImFileHandle file); +IMGUI_API ImU64 ImFileRead(void* data, ImU64 size, ImU64 count, ImFileHandle file); +IMGUI_API ImU64 ImFileWrite(const void* data, ImU64 size, ImU64 count, ImFileHandle file); +#else +#define IMGUI_DISABLE_TTY_FUNCTIONS // Can't use stdout, fflush if we are not using default file functions +#endif +IMGUI_API void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size = NULL, int padding_bytes = 0); + +// Helpers: Maths +IM_MSVC_RUNTIME_CHECKS_OFF +// - Wrapper for standard libs functions. (Note that imgui_demo.cpp does _not_ use them to keep the code easy to copy) +#ifndef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS +#define ImFabs(X) fabsf(X) +#define ImSqrt(X) sqrtf(X) +#define ImFmod(X, Y) fmodf((X), (Y)) +#define ImCos(X) cosf(X) +#define ImSin(X) sinf(X) +#define ImAcos(X) acosf(X) +#define ImAtan2(Y, X) atan2f((Y), (X)) +#define ImAtof(STR) atof(STR) +#define ImCeil(X) ceilf(X) +static inline float ImPow(float x, float y) { return powf(x, y); } // DragBehaviorT/SliderBehaviorT uses ImPow with either float/double and need the precision +static inline double ImPow(double x, double y) { return pow(x, y); } +static inline float ImLog(float x) { return logf(x); } // DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision +static inline double ImLog(double x) { return log(x); } +static inline int ImAbs(int x) { return x < 0 ? -x : x; } +static inline float ImAbs(float x) { return fabsf(x); } +static inline double ImAbs(double x) { return fabs(x); } +static inline float ImSign(float x) { return (x < 0.0f) ? -1.0f : (x > 0.0f) ? 1.0f : 0.0f; } // Sign operator - returns -1, 0 or 1 based on sign of argument +static inline double ImSign(double x) { return (x < 0.0) ? -1.0 : (x > 0.0) ? 1.0 : 0.0; } +#ifdef IMGUI_ENABLE_SSE +static inline float ImRsqrt(float x) { return _mm_cvtss_f32(_mm_rsqrt_ss(_mm_set_ss(x))); } +#else +static inline float ImRsqrt(float x) { return 1.0f / sqrtf(x); } +#endif +static inline double ImRsqrt(double x) { return 1.0 / sqrt(x); } +#endif +// - ImMin/ImMax/ImClamp/ImLerp/ImSwap are used by widgets which support variety of types: signed/unsigned int/long long float/double +// (Exceptionally using templates here but we could also redefine them for those types) +template static inline T ImMin(T lhs, T rhs) { return lhs < rhs ? lhs : rhs; } +template static inline T ImMax(T lhs, T rhs) { return lhs >= rhs ? lhs : rhs; } +template static inline T ImClamp(T v, T mn, T mx) { return (v < mn) ? mn : (v > mx) ? mx : v; } +template static inline T ImLerp(T a, T b, float t) { return (T)(a + (b - a) * t); } +template static inline void ImSwap(T& a, T& b) { T tmp = a; a = b; b = tmp; } +template static inline T ImAddClampOverflow(T a, T b, T mn, T mx) { if (b < 0 && (a < mn - b)) return mn; if (b > 0 && (a > mx - b)) return mx; return a + b; } +template static inline T ImSubClampOverflow(T a, T b, T mn, T mx) { if (b > 0 && (a < mn + b)) return mn; if (b < 0 && (a > mx + b)) return mx; return a - b; } +// - Misc maths helpers +static inline ImVec2 ImMin(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x < rhs.x ? lhs.x : rhs.x, lhs.y < rhs.y ? lhs.y : rhs.y); } +static inline ImVec2 ImMax(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x >= rhs.x ? lhs.x : rhs.x, lhs.y >= rhs.y ? lhs.y : rhs.y); } +static inline ImVec2 ImClamp(const ImVec2& v, const ImVec2& mn, ImVec2 mx) { return ImVec2((v.x < mn.x) ? mn.x : (v.x > mx.x) ? mx.x : v.x, (v.y < mn.y) ? mn.y : (v.y > mx.y) ? mx.y : v.y); } +static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, float t) { return ImVec2(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t); } +static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, const ImVec2& t) { return ImVec2(a.x + (b.x - a.x) * t.x, a.y + (b.y - a.y) * t.y); } +static inline ImVec4 ImLerp(const ImVec4& a, const ImVec4& b, float t) { return ImVec4(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t, a.z + (b.z - a.z) * t, a.w + (b.w - a.w) * t); } +static inline float ImSaturate(float f) { return (f < 0.0f) ? 0.0f : (f > 1.0f) ? 1.0f : f; } +static inline float ImLengthSqr(const ImVec2& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y); } +static inline float ImLengthSqr(const ImVec4& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y) + (lhs.z * lhs.z) + (lhs.w * lhs.w); } +static inline float ImInvLength(const ImVec2& lhs, float fail_value) { float d = (lhs.x * lhs.x) + (lhs.y * lhs.y); if (d > 0.0f) return ImRsqrt(d); return fail_value; } +static inline float ImTrunc(float f) { return (float)(int)(f); } +static inline ImVec2 ImTrunc(const ImVec2& v) { return ImVec2((float)(int)(v.x), (float)(int)(v.y)); } +static inline float ImFloor(float f) { return (float)((f >= 0 || (float)(int)f == f) ? (int)f : (int)f - 1); } // Decent replacement for floorf() +static inline ImVec2 ImFloor(const ImVec2& v) { return ImVec2(ImFloor(v.x), ImFloor(v.y)); } +static inline int ImModPositive(int a, int b) { return (a + b) % b; } +static inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; } +static inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); } +static inline float ImLinearSweep(float current, float target, float speed) { if (current < target) return ImMin(current + speed, target); if (current > target) return ImMax(current - speed, target); return current; } +static inline ImVec2 ImMul(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } +static inline bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) { return f <= -16777216 || f >= 16777216; } +static inline float ImExponentialMovingAverage(float avg, float sample, int n) { avg -= avg / n; avg += sample / n; return avg; } +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helpers: Geometry +IMGUI_API ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t); +IMGUI_API ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments); // For curves with explicit number of segments +IMGUI_API ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol);// For auto-tessellated curves you can use tess_tol = style.CurveTessellationTol +IMGUI_API ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t); +IMGUI_API ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p); +IMGUI_API bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); +IMGUI_API ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); +IMGUI_API void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w); +inline float ImTriangleArea(const ImVec2& a, const ImVec2& b, const ImVec2& c) { return ImFabs((a.x * (b.y - c.y)) + (b.x * (c.y - a.y)) + (c.x * (a.y - b.y))) * 0.5f; } + +// Helper: ImVec1 (1D vector) +// (this odd construct is used to facilitate the transition between 1D and 2D, and the maintenance of some branches/patches) +IM_MSVC_RUNTIME_CHECKS_OFF +struct ImVec1 +{ + float x; + constexpr ImVec1() : x(0.0f) { } + constexpr ImVec1(float _x) : x(_x) { } +}; + +// Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage) +struct ImVec2ih +{ + short x, y; + constexpr ImVec2ih() : x(0), y(0) {} + constexpr ImVec2ih(short _x, short _y) : x(_x), y(_y) {} + constexpr explicit ImVec2ih(const ImVec2& rhs) : x((short)rhs.x), y((short)rhs.y) {} +}; + +// Helper: ImRect (2D axis aligned bounding-box) +// NB: we can't rely on ImVec2 math operators being available here! +struct IMGUI_API ImRect +{ + ImVec2 Min; // Upper-left + ImVec2 Max; // Lower-right + + constexpr ImRect() : Min(0.0f, 0.0f), Max(0.0f, 0.0f) {} + constexpr ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {} + constexpr ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {} + constexpr ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {} + + ImVec2 GetCenter() const { return ImVec2((Min.x + Max.x) * 0.5f, (Min.y + Max.y) * 0.5f); } + ImVec2 GetSize() const { return ImVec2(Max.x - Min.x, Max.y - Min.y); } + float GetWidth() const { return Max.x - Min.x; } + float GetHeight() const { return Max.y - Min.y; } + float GetArea() const { return (Max.x - Min.x) * (Max.y - Min.y); } + ImVec2 GetTL() const { return Min; } // Top-left + ImVec2 GetTR() const { return ImVec2(Max.x, Min.y); } // Top-right + ImVec2 GetBL() const { return ImVec2(Min.x, Max.y); } // Bottom-left + ImVec2 GetBR() const { return Max; } // Bottom-right + bool Contains(const ImVec2& p) const { return p.x >= Min.x && p.y >= Min.y && p.x < Max.x && p.y < Max.y; } + bool Contains(const ImRect& r) const { return r.Min.x >= Min.x && r.Min.y >= Min.y && r.Max.x <= Max.x && r.Max.y <= Max.y; } + bool ContainsWithPad(const ImVec2& p, const ImVec2& pad) const { return p.x >= Min.x - pad.x && p.y >= Min.y - pad.y && p.x < Max.x + pad.x && p.y < Max.y + pad.y; } + bool Overlaps(const ImRect& r) const { return r.Min.y < Max.y && r.Max.y > Min.y && r.Min.x < Max.x && r.Max.x > Min.x; } + void Add(const ImVec2& p) { if (Min.x > p.x) Min.x = p.x; if (Min.y > p.y) Min.y = p.y; if (Max.x < p.x) Max.x = p.x; if (Max.y < p.y) Max.y = p.y; } + void Add(const ImRect& r) { if (Min.x > r.Min.x) Min.x = r.Min.x; if (Min.y > r.Min.y) Min.y = r.Min.y; if (Max.x < r.Max.x) Max.x = r.Max.x; if (Max.y < r.Max.y) Max.y = r.Max.y; } + void Expand(const float amount) { Min.x -= amount; Min.y -= amount; Max.x += amount; Max.y += amount; } + void Expand(const ImVec2& amount) { Min.x -= amount.x; Min.y -= amount.y; Max.x += amount.x; Max.y += amount.y; } + void Translate(const ImVec2& d) { Min.x += d.x; Min.y += d.y; Max.x += d.x; Max.y += d.y; } + void TranslateX(float dx) { Min.x += dx; Max.x += dx; } + void TranslateY(float dy) { Min.y += dy; Max.y += dy; } + void ClipWith(const ImRect& r) { Min = ImMax(Min, r.Min); Max = ImMin(Max, r.Max); } // Simple version, may lead to an inverted rectangle, which is fine for Contains/Overlaps test but not for display. + void ClipWithFull(const ImRect& r) { Min = ImClamp(Min, r.Min, r.Max); Max = ImClamp(Max, r.Min, r.Max); } // Full version, ensure both points are fully clipped. + void Floor() { Min.x = IM_TRUNC(Min.x); Min.y = IM_TRUNC(Min.y); Max.x = IM_TRUNC(Max.x); Max.y = IM_TRUNC(Max.y); } + bool IsInverted() const { return Min.x > Max.x || Min.y > Max.y; } + ImVec4 ToVec4() const { return ImVec4(Min.x, Min.y, Max.x, Max.y); } +}; + +// Helper: ImBitArray +#define IM_BITARRAY_TESTBIT(_ARRAY, _N) ((_ARRAY[(_N) >> 5] & ((ImU32)1 << ((_N) & 31))) != 0) // Macro version of ImBitArrayTestBit(): ensure args have side-effect or are costly! +#define IM_BITARRAY_CLEARBIT(_ARRAY, _N) ((_ARRAY[(_N) >> 5] &= ~((ImU32)1 << ((_N) & 31)))) // Macro version of ImBitArrayClearBit(): ensure args have side-effect or are costly! +inline size_t ImBitArrayGetStorageSizeInBytes(int bitcount) { return (size_t)((bitcount + 31) >> 5) << 2; } +inline void ImBitArrayClearAllBits(ImU32* arr, int bitcount){ memset(arr, 0, ImBitArrayGetStorageSizeInBytes(bitcount)); } +inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; } +inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; } +inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; } +inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2) +{ + n2--; + while (n <= n2) + { + int a_mod = (n & 31); + int b_mod = (n2 > (n | 31) ? 31 : (n2 & 31)) + 1; + ImU32 mask = (ImU32)(((ImU64)1 << b_mod) - 1) & ~(ImU32)(((ImU64)1 << a_mod) - 1); + arr[n >> 5] |= mask; + n = (n + 32) & ~31; + } +} + +typedef ImU32* ImBitArrayPtr; // Name for use in structs + +// Helper: ImBitArray class (wrapper over ImBitArray functions) +// Store 1-bit per value. +template +struct ImBitArray +{ + ImU32 Storage[(BITCOUNT + 31) >> 5]; + ImBitArray() { ClearAllBits(); } + void ClearAllBits() { memset(Storage, 0, sizeof(Storage)); } + void SetAllBits() { memset(Storage, 255, sizeof(Storage)); } + bool TestBit(int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return IM_BITARRAY_TESTBIT(Storage, n); } + void SetBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArraySetBit(Storage, n); } + void ClearBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArrayClearBit(Storage, n); } + void SetBitRange(int n, int n2) { n += OFFSET; n2 += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT && n2 > n && n2 <= BITCOUNT); ImBitArraySetBitRange(Storage, n, n2); } // Works on range [n..n2) + bool operator[](int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return IM_BITARRAY_TESTBIT(Storage, n); } +}; + +// Helper: ImBitVector +// Store 1-bit per value. +struct IMGUI_API ImBitVector +{ + ImVector Storage; + void Create(int sz) { Storage.resize((sz + 31) >> 5); memset(Storage.Data, 0, (size_t)Storage.Size * sizeof(Storage.Data[0])); } + void Clear() { Storage.clear(); } + bool TestBit(int n) const { IM_ASSERT(n < (Storage.Size << 5)); return IM_BITARRAY_TESTBIT(Storage.Data, n); } + void SetBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArraySetBit(Storage.Data, n); } + void ClearBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArrayClearBit(Storage.Data, n); } +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helper: ImSpan<> +// Pointing to a span of data we don't own. +template +struct ImSpan +{ + T* Data; + T* DataEnd; + + // Constructors, destructor + inline ImSpan() { Data = DataEnd = NULL; } + inline ImSpan(T* data, int size) { Data = data; DataEnd = data + size; } + inline ImSpan(T* data, T* data_end) { Data = data; DataEnd = data_end; } + + inline void set(T* data, int size) { Data = data; DataEnd = data + size; } + inline void set(T* data, T* data_end) { Data = data; DataEnd = data_end; } + inline int size() const { return (int)(ptrdiff_t)(DataEnd - Data); } + inline int size_in_bytes() const { return (int)(ptrdiff_t)(DataEnd - Data) * (int)sizeof(T); } + inline T& operator[](int i) { T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; } + inline const T& operator[](int i) const { const T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; } + + inline T* begin() { return Data; } + inline const T* begin() const { return Data; } + inline T* end() { return DataEnd; } + inline const T* end() const { return DataEnd; } + + // Utilities + inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < DataEnd); const ptrdiff_t off = it - Data; return (int)off; } +}; + +// Helper: ImSpanAllocator<> +// Facilitate storing multiple chunks into a single large block (the "arena") +// - Usage: call Reserve() N times, allocate GetArenaSizeInBytes() worth, pass it to SetArenaBasePtr(), call GetSpan() N times to retrieve the aligned ranges. +template +struct ImSpanAllocator +{ + char* BasePtr; + int CurrOff; + int CurrIdx; + int Offsets[CHUNKS]; + int Sizes[CHUNKS]; + + ImSpanAllocator() { memset(this, 0, sizeof(*this)); } + inline void Reserve(int n, size_t sz, int a=4) { IM_ASSERT(n == CurrIdx && n < CHUNKS); CurrOff = IM_MEMALIGN(CurrOff, a); Offsets[n] = CurrOff; Sizes[n] = (int)sz; CurrIdx++; CurrOff += (int)sz; } + inline int GetArenaSizeInBytes() { return CurrOff; } + inline void SetArenaBasePtr(void* base_ptr) { BasePtr = (char*)base_ptr; } + inline void* GetSpanPtrBegin(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n]); } + inline void* GetSpanPtrEnd(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n] + Sizes[n]); } + template + inline void GetSpan(int n, ImSpan* span) { span->set((T*)GetSpanPtrBegin(n), (T*)GetSpanPtrEnd(n)); } +}; + +// Helper: ImPool<> +// Basic keyed storage for contiguous instances, slow/amortized insertion, O(1) indexable, O(Log N) queries by ID over a dense/hot buffer, +// Honor constructor/destructor. Add/remove invalidate all pointers. Indexes have the same lifetime as the associated object. +typedef int ImPoolIdx; +template +struct ImPool +{ + ImVector Buf; // Contiguous data + ImGuiStorage Map; // ID->Index + ImPoolIdx FreeIdx; // Next free idx to use + ImPoolIdx AliveCount; // Number of active/alive items (for display purpose) + + ImPool() { FreeIdx = AliveCount = 0; } + ~ImPool() { Clear(); } + T* GetByKey(ImGuiID key) { int idx = Map.GetInt(key, -1); return (idx != -1) ? &Buf[idx] : NULL; } + T* GetByIndex(ImPoolIdx n) { return &Buf[n]; } + ImPoolIdx GetIndex(const T* p) const { IM_ASSERT(p >= Buf.Data && p < Buf.Data + Buf.Size); return (ImPoolIdx)(p - Buf.Data); } + T* GetOrAddByKey(ImGuiID key) { int* p_idx = Map.GetIntRef(key, -1); if (*p_idx != -1) return &Buf[*p_idx]; *p_idx = FreeIdx; return Add(); } + bool Contains(const T* p) const { return (p >= Buf.Data && p < Buf.Data + Buf.Size); } + void Clear() { for (int n = 0; n < Map.Data.Size; n++) { int idx = Map.Data[n].val_i; if (idx != -1) Buf[idx].~T(); } Map.Clear(); Buf.clear(); FreeIdx = AliveCount = 0; } + T* Add() { int idx = FreeIdx; if (idx == Buf.Size) { Buf.resize(Buf.Size + 1); FreeIdx++; } else { FreeIdx = *(int*)&Buf[idx]; } IM_PLACEMENT_NEW(&Buf[idx]) T(); AliveCount++; return &Buf[idx]; } + void Remove(ImGuiID key, const T* p) { Remove(key, GetIndex(p)); } + void Remove(ImGuiID key, ImPoolIdx idx) { Buf[idx].~T(); *(int*)&Buf[idx] = FreeIdx; FreeIdx = idx; Map.SetInt(key, -1); AliveCount--; } + void Reserve(int capacity) { Buf.reserve(capacity); Map.Data.reserve(capacity); } + + // To iterate a ImPool: for (int n = 0; n < pool.GetMapSize(); n++) if (T* t = pool.TryGetMapData(n)) { ... } + // Can be avoided if you know .Remove() has never been called on the pool, or AliveCount == GetMapSize() + int GetAliveCount() const { return AliveCount; } // Number of active/alive items in the pool (for display purpose) + int GetBufSize() const { return Buf.Size; } + int GetMapSize() const { return Map.Data.Size; } // It is the map we need iterate to find valid items, since we don't have "alive" storage anywhere + T* TryGetMapData(ImPoolIdx n) { int idx = Map.Data[n].val_i; if (idx == -1) return NULL; return GetByIndex(idx); } +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + int GetSize() { return GetMapSize(); } // For ImPlot: should use GetMapSize() from (IMGUI_VERSION_NUM >= 18304) +#endif +}; + +// Helper: ImChunkStream<> +// Build and iterate a contiguous stream of variable-sized structures. +// This is used by Settings to store persistent data while reducing allocation count. +// We store the chunk size first, and align the final size on 4 bytes boundaries. +// The tedious/zealous amount of casting is to avoid -Wcast-align warnings. +template +struct ImChunkStream +{ + ImVector Buf; + + void clear() { Buf.clear(); } + bool empty() const { return Buf.Size == 0; } + int size() const { return Buf.Size; } + T* alloc_chunk(size_t sz) { size_t HDR_SZ = 4; sz = IM_MEMALIGN(HDR_SZ + sz, 4u); int off = Buf.Size; Buf.resize(off + (int)sz); ((int*)(void*)(Buf.Data + off))[0] = (int)sz; return (T*)(void*)(Buf.Data + off + (int)HDR_SZ); } + T* begin() { size_t HDR_SZ = 4; if (!Buf.Data) return NULL; return (T*)(void*)(Buf.Data + HDR_SZ); } + T* next_chunk(T* p) { size_t HDR_SZ = 4; IM_ASSERT(p >= begin() && p < end()); p = (T*)(void*)((char*)(void*)p + chunk_size(p)); if (p == (T*)(void*)((char*)end() + HDR_SZ)) return (T*)0; IM_ASSERT(p < end()); return p; } + int chunk_size(const T* p) { return ((const int*)p)[-1]; } + T* end() { return (T*)(void*)(Buf.Data + Buf.Size); } + int offset_from_ptr(const T* p) { IM_ASSERT(p >= begin() && p < end()); const ptrdiff_t off = (const char*)p - Buf.Data; return (int)off; } + T* ptr_from_offset(int off) { IM_ASSERT(off >= 4 && off < Buf.Size); return (T*)(void*)(Buf.Data + off); } + void swap(ImChunkStream& rhs) { rhs.Buf.swap(Buf); } +}; + +// Helper: ImGuiTextIndex<> +// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API. +struct ImGuiTextIndex +{ + ImVector LineOffsets; + int EndOffset = 0; // Because we don't own text buffer we need to maintain EndOffset (may bake in LineOffsets?) + + void clear() { LineOffsets.clear(); EndOffset = 0; } + int size() { return LineOffsets.Size; } + const char* get_line_begin(const char* base, int n) { return base + LineOffsets[n]; } + const char* get_line_end(const char* base, int n) { return base + (n + 1 < LineOffsets.Size ? (LineOffsets[n + 1] - 1) : EndOffset); } + void append(const char* base, int old_size, int new_size); +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawList support +//----------------------------------------------------------------------------- + +// ImDrawList: Helper function to calculate a circle's segment count given its radius and a "maximum error" value. +// Estimation of number of circle segment based on error is derived using method described in https://stackoverflow.com/a/2244088/15194693 +// Number of segments (N) is calculated using equation: +// N = ceil ( pi / acos(1 - error / r) ) where r > 0, error <= r +// Our equation is significantly simpler that one in the post thanks for choosing segment that is +// perpendicular to X axis. Follow steps in the article from this starting condition and you will +// will get this result. +// +// Rendering circles with an odd number of segments, while mathematically correct will produce +// asymmetrical results on the raster grid. Therefore we're rounding N to next even number (7->8, 8->8, 9->10 etc.) +#define IM_ROUNDUP_TO_EVEN(_V) ((((_V) + 1) / 2) * 2) +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN 4 +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX 512 +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(_RAD,_MAXERROR) ImClamp(IM_ROUNDUP_TO_EVEN((int)ImCeil(IM_PI / ImAcos(1 - ImMin((_MAXERROR), (_RAD)) / (_RAD)))), IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX) + +// Raw equation from IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC rewritten for 'r' and 'error'. +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(_N,_MAXERROR) ((_MAXERROR) / (1 - ImCos(IM_PI / ImMax((float)(_N), IM_PI)))) +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_ERROR(_N,_RAD) ((1 - ImCos(IM_PI / ImMax((float)(_N), IM_PI))) / (_RAD)) + +// ImDrawList: Lookup table size for adaptive arc drawing, cover full circle. +#ifndef IM_DRAWLIST_ARCFAST_TABLE_SIZE +#define IM_DRAWLIST_ARCFAST_TABLE_SIZE 48 // Number of samples in lookup table. +#endif +#define IM_DRAWLIST_ARCFAST_SAMPLE_MAX IM_DRAWLIST_ARCFAST_TABLE_SIZE // Sample index _PathArcToFastEx() for 360 angle. + +// Data shared between all ImDrawList instances +// You may want to create your own instance of this if you want to use ImDrawList completely without ImGui. In that case, watch out for future changes to this structure. +struct IMGUI_API ImDrawListSharedData +{ + ImVec2 TexUvWhitePixel; // UV of white pixel in the atlas + ImFont* Font; // Current/default font (optional, for simplified AddText overload) + float FontSize; // Current/default font size (optional, for simplified AddText overload) + float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() + float CircleSegmentMaxError; // Number of circle segments to use per pixel of radius for AddCircle() etc + ImVec4 ClipRectFullscreen; // Value for PushClipRectFullscreen() + ImDrawListFlags InitialFlags; // Initial flags at the beginning of the frame (it is possible to alter flags on a per-drawlist basis afterwards) + + // [Internal] Temp write buffer + ImVector TempBuffer; + + // [Internal] Lookup tables + ImVec2 ArcFastVtx[IM_DRAWLIST_ARCFAST_TABLE_SIZE]; // Sample points on the quarter of the circle. + float ArcFastRadiusCutoff; // Cutoff radius after which arc drawing will fallback to slower PathArcTo() + ImU8 CircleSegmentCounts[64]; // Precomputed segment count for given radius before we calculate it dynamically (to avoid calculation overhead) + const ImVec4* TexUvLines; // UV of anti-aliased lines in the atlas + + ImDrawListSharedData(); + void SetCircleTessellationMaxError(float max_error); +}; + +struct ImDrawDataBuilder +{ + ImVector* Layers[2]; // Pointers to global layers for: regular, tooltip. LayersP[0] is owned by DrawData. + ImVector LayerData1; + + ImDrawDataBuilder() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Widgets support: flags, enums, data structures +//----------------------------------------------------------------------------- + +// Flags used by upcoming items +// - input: PushItemFlag() manipulates g.CurrentItemFlags, ItemAdd() calls may add extra flags. +// - output: stored in g.LastItemData.InFlags +// Current window shared by all windows. +// This is going to be exposed in imgui.h when stabilized enough. +enum ImGuiItemFlags_ +{ + // Controlled by user + ImGuiItemFlags_None = 0, + ImGuiItemFlags_NoTabStop = 1 << 0, // false // Disable keyboard tabbing. This is a "lighter" version of ImGuiItemFlags_NoNav. + ImGuiItemFlags_ButtonRepeat = 1 << 1, // false // Button() will return true multiple times based on io.KeyRepeatDelay and io.KeyRepeatRate settings. + ImGuiItemFlags_Disabled = 1 << 2, // false // Disable interactions but doesn't affect visuals. See BeginDisabled()/EndDisabled(). See github.com/ocornut/imgui/issues/211 + ImGuiItemFlags_NoNav = 1 << 3, // false // Disable any form of focusing (keyboard/gamepad directional navigation and SetKeyboardFocusHere() calls) + ImGuiItemFlags_NoNavDefaultFocus = 1 << 4, // false // Disable item being a candidate for default focus (e.g. used by title bar items) + ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, // false // Disable MenuItem/Selectable() automatically closing their popup window + ImGuiItemFlags_MixedValue = 1 << 6, // false // [BETA] Represent a mixed/indeterminate value, generally multi-selection where values differ. Currently only supported by Checkbox() (later should support all sorts of widgets) + ImGuiItemFlags_ReadOnly = 1 << 7, // false // [ALPHA] Allow hovering interactions but underlying value is not changed. + ImGuiItemFlags_NoWindowHoverableCheck = 1 << 8, // false // Disable hoverable check in ItemHoverable() + ImGuiItemFlags_AllowOverlap = 1 << 9, // false // Allow being overlapped by another widget. Not-hovered to Hovered transition deferred by a frame. + + // Controlled by widget code + ImGuiItemFlags_Inputable = 1 << 10, // false // [WIP] Auto-activate input mode when tab focused. Currently only used and supported by a few items before it becomes a generic feature. + ImGuiItemFlags_HasSelectionUserData = 1 << 11, // false // Set by SetNextItemSelectionUserData() +}; + +// Status flags for an already submitted item +// - output: stored in g.LastItemData.StatusFlags +enum ImGuiItemStatusFlags_ +{ + ImGuiItemStatusFlags_None = 0, + ImGuiItemStatusFlags_HoveredRect = 1 << 0, // Mouse position is within item rectangle (does NOT mean that the window is in correct z-order and can be hovered!, this is only one part of the most-common IsItemHovered test) + ImGuiItemStatusFlags_HasDisplayRect = 1 << 1, // g.LastItemData.DisplayRect is valid + ImGuiItemStatusFlags_Edited = 1 << 2, // Value exposed by item was edited in the current frame (should match the bool return value of most widgets) + ImGuiItemStatusFlags_ToggledSelection = 1 << 3, // Set when Selectable(), TreeNode() reports toggling a selection. We can't report "Selected", only state changes, in order to easily handle clipping with less issues. + ImGuiItemStatusFlags_ToggledOpen = 1 << 4, // Set when TreeNode() reports toggling their open state. + ImGuiItemStatusFlags_HasDeactivated = 1 << 5, // Set if the widget/group is able to provide data for the ImGuiItemStatusFlags_Deactivated flag. + ImGuiItemStatusFlags_Deactivated = 1 << 6, // Only valid if ImGuiItemStatusFlags_HasDeactivated is set. + ImGuiItemStatusFlags_HoveredWindow = 1 << 7, // Override the HoveredWindow test to allow cross-window hover testing. + ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8, // Set when the Focusable item just got focused by Tabbing (FIXME: to be removed soon) + ImGuiItemStatusFlags_Visible = 1 << 9, // [WIP] Set when item is overlapping the current clipping rectangle (Used internally. Please don't use yet: API/system will change as we refactor Itemadd()). + + // Additional status + semantic for ImGuiTestEngine +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiItemStatusFlags_Openable = 1 << 20, // Item is an openable (e.g. TreeNode) + ImGuiItemStatusFlags_Opened = 1 << 21, // Opened status + ImGuiItemStatusFlags_Checkable = 1 << 22, // Item is a checkable (e.g. CheckBox, MenuItem) + ImGuiItemStatusFlags_Checked = 1 << 23, // Checked status + ImGuiItemStatusFlags_Inputable = 1 << 24, // Item is a text-inputable (e.g. InputText, SliderXXX, DragXXX) +#endif +}; + +// Extend ImGuiHoveredFlags_ +enum ImGuiHoveredFlagsPrivate_ +{ + ImGuiHoveredFlags_DelayMask_ = ImGuiHoveredFlags_DelayNone | ImGuiHoveredFlags_DelayShort | ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_NoSharedDelay, + ImGuiHoveredFlags_AllowedMaskForIsWindowHovered = ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_AnyWindow | ImGuiHoveredFlags_NoPopupHierarchy | ImGuiHoveredFlags_DockHierarchy | ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_Stationary, + ImGuiHoveredFlags_AllowedMaskForIsItemHovered = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped | ImGuiHoveredFlags_AllowWhenDisabled | ImGuiHoveredFlags_NoNavOverride | ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayMask_, +}; + +// Extend ImGuiInputTextFlags_ +enum ImGuiInputTextFlagsPrivate_ +{ + // [Internal] + ImGuiInputTextFlags_Multiline = 1 << 26, // For internal use by InputTextMultiline() + ImGuiInputTextFlags_NoMarkEdited = 1 << 27, // For internal use by functions using InputText() before reformatting data + ImGuiInputTextFlags_MergedItem = 1 << 28, // For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match. +}; + +// Extend ImGuiButtonFlags_ +enum ImGuiButtonFlagsPrivate_ +{ + ImGuiButtonFlags_PressedOnClick = 1 << 4, // return true on click (mouse down event) + ImGuiButtonFlags_PressedOnClickRelease = 1 << 5, // [Default] return true on click + release on same item <-- this is what the majority of Button are using + ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 1 << 6, // return true on click + release even if the release event is not done while hovering the item + ImGuiButtonFlags_PressedOnRelease = 1 << 7, // return true on release (default requires click+release) + ImGuiButtonFlags_PressedOnDoubleClick = 1 << 8, // return true on double-click (default requires click+release) + ImGuiButtonFlags_PressedOnDragDropHold = 1 << 9, // return true when held into while we are drag and dropping another item (used by e.g. tree nodes, collapsing headers) + ImGuiButtonFlags_Repeat = 1 << 10, // hold to repeat + ImGuiButtonFlags_FlattenChildren = 1 << 11, // allow interactions even if a child window is overlapping + ImGuiButtonFlags_AllowOverlap = 1 << 12, // require previous frame HoveredId to either match id or be null before being usable. + ImGuiButtonFlags_DontClosePopups = 1 << 13, // disable automatically closing parent popup on press // [UNUSED] + //ImGuiButtonFlags_Disabled = 1 << 14, // disable interactions -> use BeginDisabled() or ImGuiItemFlags_Disabled + ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, // vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine + ImGuiButtonFlags_NoKeyModifiers = 1 << 16, // disable mouse interaction if a key modifier is held + ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, // don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only) + ImGuiButtonFlags_NoNavFocus = 1 << 18, // don't override navigation focus when activated (FIXME: this is essentially used everytime an item uses ImGuiItemFlags_NoNav, but because legacy specs don't requires LastItemData to be set ButtonBehavior(), we can't poll g.LastItemData.InFlags) + ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, // don't report as hovered when nav focus is on this item + ImGuiButtonFlags_NoSetKeyOwner = 1 << 20, // don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) + ImGuiButtonFlags_NoTestKeyOwner = 1 << 21, // don't test key/input owner when polling the key (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) + ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, + ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease, +}; + +// Extend ImGuiComboFlags_ +enum ImGuiComboFlagsPrivate_ +{ + ImGuiComboFlags_CustomPreview = 1 << 20, // enable BeginComboPreview() +}; + +// Extend ImGuiSliderFlags_ +enum ImGuiSliderFlagsPrivate_ +{ + ImGuiSliderFlags_Vertical = 1 << 20, // Should this slider be orientated vertically? + ImGuiSliderFlags_ReadOnly = 1 << 21, // Consider using g.NextItemData.ItemFlags |= ImGuiItemFlags_ReadOnly instead. +}; + +// Extend ImGuiSelectableFlags_ +enum ImGuiSelectableFlagsPrivate_ +{ + // NB: need to be in sync with last value of ImGuiSelectableFlags_ + ImGuiSelectableFlags_NoHoldingActiveID = 1 << 20, + ImGuiSelectableFlags_SelectOnNav = 1 << 21, // (WIP) Auto-select when moved into. This is not exposed in public API as to handle multi-select and modifiers we will need user to explicitly control focus scope. May be replaced with a BeginSelection() API. + ImGuiSelectableFlags_SelectOnClick = 1 << 22, // Override button behavior to react on Click (default is Click+Release) + ImGuiSelectableFlags_SelectOnRelease = 1 << 23, // Override button behavior to react on Release (default is Click+Release) + ImGuiSelectableFlags_SpanAvailWidth = 1 << 24, // Span all avail width even if we declared less for layout purpose. FIXME: We may be able to remove this (added in 6251d379, 2bcafc86 for menus) + ImGuiSelectableFlags_SetNavIdOnHover = 1 << 25, // Set Nav/Focus ID on mouse hover (used by MenuItem) + ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 26, // Disable padding each side with ItemSpacing * 0.5f + ImGuiSelectableFlags_NoSetKeyOwner = 1 << 27, // Don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) +}; + +// Extend ImGuiTreeNodeFlags_ +enum ImGuiTreeNodeFlagsPrivate_ +{ + ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20, + ImGuiTreeNodeFlags_UpsideDownArrow = 1 << 21,// (FIXME-WIP) Turn Down arrow into an Up arrow, but reversed trees (#6517) +}; + +enum ImGuiSeparatorFlags_ +{ + ImGuiSeparatorFlags_None = 0, + ImGuiSeparatorFlags_Horizontal = 1 << 0, // Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar + ImGuiSeparatorFlags_Vertical = 1 << 1, + ImGuiSeparatorFlags_SpanAllColumns = 1 << 2, // Make separator cover all columns of a legacy Columns() set. +}; + +// Flags for FocusWindow(). This is not called ImGuiFocusFlags to avoid confusion with public-facing ImGuiFocusedFlags. +// FIXME: Once we finishing replacing more uses of GetTopMostPopupModal()+IsWindowWithinBeginStackOf() +// and FindBlockingModal() with this, we may want to change the flag to be opt-out instead of opt-in. +enum ImGuiFocusRequestFlags_ +{ + ImGuiFocusRequestFlags_None = 0, + ImGuiFocusRequestFlags_RestoreFocusedChild = 1 << 0, // Find last focused child (if any) and focus it instead. + ImGuiFocusRequestFlags_UnlessBelowModal = 1 << 1, // Do not set focus if the window is below a modal. +}; + +enum ImGuiTextFlags_ +{ + ImGuiTextFlags_None = 0, + ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0, +}; + +enum ImGuiTooltipFlags_ +{ + ImGuiTooltipFlags_None = 0, + ImGuiTooltipFlags_OverridePrevious = 1 << 1, // Clear/ignore previously submitted tooltip (defaults to append) +}; + +// FIXME: this is in development, not exposed/functional as a generic feature yet. +// Horizontal/Vertical enums are fixed to 0/1 so they may be used to index ImVec2 +enum ImGuiLayoutType_ +{ + ImGuiLayoutType_Horizontal = 0, + ImGuiLayoutType_Vertical = 1 +}; + +enum ImGuiLogType +{ + ImGuiLogType_None = 0, + ImGuiLogType_TTY, + ImGuiLogType_File, + ImGuiLogType_Buffer, + ImGuiLogType_Clipboard, +}; + +// X/Y enums are fixed to 0/1 so they may be used to index ImVec2 +enum ImGuiAxis +{ + ImGuiAxis_None = -1, + ImGuiAxis_X = 0, + ImGuiAxis_Y = 1 +}; + +enum ImGuiPlotType +{ + ImGuiPlotType_Lines, + ImGuiPlotType_Histogram, +}; + +enum ImGuiPopupPositionPolicy +{ + ImGuiPopupPositionPolicy_Default, + ImGuiPopupPositionPolicy_ComboBox, + ImGuiPopupPositionPolicy_Tooltip, +}; + +struct ImGuiDataVarInfo +{ + ImGuiDataType Type; + ImU32 Count; // 1+ + ImU32 Offset; // Offset in parent structure + void* GetVarPtr(void* parent) const { return (void*)((unsigned char*)parent + Offset); } +}; + +struct ImGuiDataTypeTempStorage +{ + ImU8 Data[8]; // Can fit any data up to ImGuiDataType_COUNT +}; + +// Type information associated to one ImGuiDataType. Retrieve with DataTypeGetInfo(). +struct ImGuiDataTypeInfo +{ + size_t Size; // Size in bytes + const char* Name; // Short descriptive name for the type, for debugging + const char* PrintFmt; // Default printf format for the type + const char* ScanFmt; // Default scanf format for the type +}; + +// Extend ImGuiDataType_ +enum ImGuiDataTypePrivate_ +{ + ImGuiDataType_String = ImGuiDataType_COUNT + 1, + ImGuiDataType_Pointer, + ImGuiDataType_ID, +}; + +// Stacked color modifier, backup of modified data so we can restore it +struct ImGuiColorMod +{ + ImGuiCol Col; + ImVec4 BackupValue; +}; + +// Stacked style modifier, backup of modified data so we can restore it. Data type inferred from the variable. +struct ImGuiStyleMod +{ + ImGuiStyleVar VarIdx; + union { int BackupInt[2]; float BackupFloat[2]; }; + ImGuiStyleMod(ImGuiStyleVar idx, int v) { VarIdx = idx; BackupInt[0] = v; } + ImGuiStyleMod(ImGuiStyleVar idx, float v) { VarIdx = idx; BackupFloat[0] = v; } + ImGuiStyleMod(ImGuiStyleVar idx, ImVec2 v) { VarIdx = idx; BackupFloat[0] = v.x; BackupFloat[1] = v.y; } +}; + +// Storage data for BeginComboPreview()/EndComboPreview() +struct IMGUI_API ImGuiComboPreviewData +{ + ImRect PreviewRect; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec2 BackupCursorPosPrevLine; + float BackupPrevLineTextBaseOffset; + ImGuiLayoutType BackupLayout; + + ImGuiComboPreviewData() { memset(this, 0, sizeof(*this)); } +}; + +// Stacked storage data for BeginGroup()/EndGroup() +struct IMGUI_API ImGuiGroupData +{ + ImGuiID WindowID; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec2 BackupCursorPosPrevLine; + ImVec1 BackupIndent; + ImVec1 BackupGroupOffset; + ImVec2 BackupCurrLineSize; + float BackupCurrLineTextBaseOffset; + ImGuiID BackupActiveIdIsAlive; + bool BackupActiveIdPreviousFrameIsAlive; + bool BackupHoveredIdIsAlive; + bool BackupIsSameLine; + bool EmitItem; +}; + +// Simple column measurement, currently used for MenuItem() only.. This is very short-sighted/throw-away code and NOT a generic helper. +struct IMGUI_API ImGuiMenuColumns +{ + ImU32 TotalWidth; + ImU32 NextTotalWidth; + ImU16 Spacing; + ImU16 OffsetIcon; // Always zero for now + ImU16 OffsetLabel; // Offsets are locked in Update() + ImU16 OffsetShortcut; + ImU16 OffsetMark; + ImU16 Widths[4]; // Width of: Icon, Label, Shortcut, Mark (accumulators for current frame) + + ImGuiMenuColumns() { memset(this, 0, sizeof(*this)); } + void Update(float spacing, bool window_reappearing); + float DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark); + void CalcNextTotalWidth(bool update_offsets); +}; + +// Internal temporary state for deactivating InputText() instances. +struct IMGUI_API ImGuiInputTextDeactivatedState +{ + ImGuiID ID; // widget id owning the text state (which just got deactivated) + ImVector TextA; // text buffer + + ImGuiInputTextDeactivatedState() { memset(this, 0, sizeof(*this)); } + void ClearFreeMemory() { ID = 0; TextA.clear(); } +}; +// Internal state of the currently focused/edited text input box +// For a given item ID, access with ImGui::GetInputTextState() +struct IMGUI_API ImGuiInputTextState +{ + ImGuiContext* Ctx; // parent UI context (needs to be set explicitly by parent). + ImGuiID ID; // widget id owning the text state + int CurLenW, CurLenA; // we need to maintain our buffer length in both UTF-8 and wchar format. UTF-8 length is valid even if TextA is not. + ImVector TextW; // edit buffer, we need to persist but can't guarantee the persistence of the user-provided buffer. so we copy into own buffer. + ImVector TextA; // temporary UTF8 buffer for callbacks and other operations. this is not updated in every code-path! size=capacity. + ImVector InitialTextA; // backup of end-user buffer at the time of focus (in UTF-8, unaltered) + bool TextAIsValid; // temporary UTF8 buffer is not initially valid before we make the widget active (until then we pull the data from user argument) + int BufCapacityA; // end-user buffer capacity + float ScrollX; // horizontal scrolling/offset + ImStb::STB_TexteditState Stb; // state for stb_textedit.h + float CursorAnim; // timer for cursor blink, reset on every user action so the cursor reappears immediately + bool CursorFollow; // set when we want scrolling to follow the current cursor position (not always!) + bool SelectedAllMouseLock; // after a double-click to select all, we ignore further mouse drags to update selection + bool Edited; // edited this frame + ImGuiInputTextFlags Flags; // copy of InputText() flags. may be used to check if e.g. ImGuiInputTextFlags_Password is set. + + ImGuiInputTextState() { memset(this, 0, sizeof(*this)); } + void ClearText() { CurLenW = CurLenA = 0; TextW[0] = 0; TextA[0] = 0; CursorClamp(); } + void ClearFreeMemory() { TextW.clear(); TextA.clear(); InitialTextA.clear(); } + int GetUndoAvailCount() const { return Stb.undostate.undo_point; } + int GetRedoAvailCount() const { return STB_TEXTEDIT_UNDOSTATECOUNT - Stb.undostate.redo_point; } + void OnKeyPressed(int key); // Cannot be inline because we call in code in stb_textedit.h implementation + + // Cursor & Selection + void CursorAnimReset() { CursorAnim = -0.30f; } // After a user-input the cursor stays on for a while without blinking + void CursorClamp() { Stb.cursor = ImMin(Stb.cursor, CurLenW); Stb.select_start = ImMin(Stb.select_start, CurLenW); Stb.select_end = ImMin(Stb.select_end, CurLenW); } + bool HasSelection() const { return Stb.select_start != Stb.select_end; } + void ClearSelection() { Stb.select_start = Stb.select_end = Stb.cursor; } + int GetCursorPos() const { return Stb.cursor; } + int GetSelectionStart() const { return Stb.select_start; } + int GetSelectionEnd() const { return Stb.select_end; } + void SelectAll() { Stb.select_start = 0; Stb.cursor = Stb.select_end = CurLenW; Stb.has_preferred_x = 0; } +}; + +// Storage for current popup stack +struct ImGuiPopupData +{ + ImGuiID PopupId; // Set on OpenPopup() + ImGuiWindow* Window; // Resolved on BeginPopup() - may stay unresolved if user never calls OpenPopup() + ImGuiWindow* BackupNavWindow;// Set on OpenPopup(), a NavWindow that will be restored on popup close + int ParentNavLayer; // Resolved on BeginPopup(). Actually a ImGuiNavLayer type (declared down below), initialized to -1 which is not part of an enum, but serves well-enough as "not any of layers" value + int OpenFrameCount; // Set on OpenPopup() + ImGuiID OpenParentId; // Set on OpenPopup(), we need this to differentiate multiple menu sets from each others (e.g. inside menu bar vs loose menu items) + ImVec2 OpenPopupPos; // Set on OpenPopup(), preferred popup position (typically == OpenMousePos when using mouse) + ImVec2 OpenMousePos; // Set on OpenPopup(), copy of mouse position at the time of opening popup + + ImGuiPopupData() { memset(this, 0, sizeof(*this)); ParentNavLayer = OpenFrameCount = -1; } +}; + +enum ImGuiNextWindowDataFlags_ +{ + ImGuiNextWindowDataFlags_None = 0, + ImGuiNextWindowDataFlags_HasPos = 1 << 0, + ImGuiNextWindowDataFlags_HasSize = 1 << 1, + ImGuiNextWindowDataFlags_HasContentSize = 1 << 2, + ImGuiNextWindowDataFlags_HasCollapsed = 1 << 3, + ImGuiNextWindowDataFlags_HasSizeConstraint = 1 << 4, + ImGuiNextWindowDataFlags_HasFocus = 1 << 5, + ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6, + ImGuiNextWindowDataFlags_HasScroll = 1 << 7, + ImGuiNextWindowDataFlags_HasViewport = 1 << 8, + ImGuiNextWindowDataFlags_HasDock = 1 << 9, + ImGuiNextWindowDataFlags_HasWindowClass = 1 << 10, +}; + +// Storage for SetNexWindow** functions +struct ImGuiNextWindowData +{ + ImGuiNextWindowDataFlags Flags; + ImGuiCond PosCond; + ImGuiCond SizeCond; + ImGuiCond CollapsedCond; + ImGuiCond DockCond; + ImVec2 PosVal; + ImVec2 PosPivotVal; + ImVec2 SizeVal; + ImVec2 ContentSizeVal; + ImVec2 ScrollVal; + bool PosUndock; + bool CollapsedVal; + ImRect SizeConstraintRect; + ImGuiSizeCallback SizeCallback; + void* SizeCallbackUserData; + float BgAlphaVal; // Override background alpha + ImGuiID ViewportId; + ImGuiID DockId; + ImGuiWindowClass WindowClass; + ImVec2 MenuBarOffsetMinVal; // (Always on) This is not exposed publicly, so we don't clear it and it doesn't have a corresponding flag (could we? for consistency?) + + ImGuiNextWindowData() { memset(this, 0, sizeof(*this)); } + inline void ClearFlags() { Flags = ImGuiNextWindowDataFlags_None; } +}; + +// Multi-Selection item index or identifier when using SetNextItemSelectionUserData()/BeginMultiSelect() +// (Most users are likely to use this store an item INDEX but this may be used to store a POINTER as well.) +typedef ImS64 ImGuiSelectionUserData; + +enum ImGuiNextItemDataFlags_ +{ + ImGuiNextItemDataFlags_None = 0, + ImGuiNextItemDataFlags_HasWidth = 1 << 0, + ImGuiNextItemDataFlags_HasOpen = 1 << 1, +}; + +struct ImGuiNextItemData +{ + ImGuiNextItemDataFlags Flags; + ImGuiItemFlags ItemFlags; // Currently only tested/used for ImGuiItemFlags_AllowOverlap. + // Non-flags members are NOT cleared by ItemAdd() meaning they are still valid during NavProcessItem() + float Width; // Set by SetNextItemWidth() + ImGuiSelectionUserData SelectionUserData; // Set by SetNextItemSelectionUserData() (note that NULL/0 is a valid value, we use -1 == ImGuiSelectionUserData_Invalid to mark invalid values) + ImGuiCond OpenCond; + bool OpenVal; // Set by SetNextItemOpen() + + ImGuiNextItemData() { memset(this, 0, sizeof(*this)); SelectionUserData = -1; } + inline void ClearFlags() { Flags = ImGuiNextItemDataFlags_None; ItemFlags = ImGuiItemFlags_None; } // Also cleared manually by ItemAdd()! +}; + +// Status storage for the last submitted item +struct ImGuiLastItemData +{ + ImGuiID ID; + ImGuiItemFlags InFlags; // See ImGuiItemFlags_ + ImGuiItemStatusFlags StatusFlags; // See ImGuiItemStatusFlags_ + ImRect Rect; // Full rectangle + ImRect NavRect; // Navigation scoring rectangle (not displayed) + ImRect DisplayRect; // Display rectangle (only if ImGuiItemStatusFlags_HasDisplayRect is set) + + ImGuiLastItemData() { memset(this, 0, sizeof(*this)); } +}; + +// Store data emitted by TreeNode() for usage by TreePop() to implement ImGuiTreeNodeFlags_NavLeftJumpsBackHere. +// This is the minimum amount of data that we need to perform the equivalent of NavApplyItemToResult() and which we can't infer in TreePop() +// Only stored when the node is a potential candidate for landing on a Left arrow jump. +struct ImGuiNavTreeNodeData +{ + ImGuiID ID; + ImGuiItemFlags InFlags; + ImRect NavRect; +}; + +struct IMGUI_API ImGuiStackSizes +{ + short SizeOfIDStack; + short SizeOfColorStack; + short SizeOfStyleVarStack; + short SizeOfFontStack; + short SizeOfFocusScopeStack; + short SizeOfGroupStack; + short SizeOfItemFlagsStack; + short SizeOfBeginPopupStack; + short SizeOfDisabledStack; + + ImGuiStackSizes() { memset(this, 0, sizeof(*this)); } + void SetToContextState(ImGuiContext* ctx); + void CompareWithContextState(ImGuiContext* ctx); +}; + +// Data saved for each window pushed into the stack +struct ImGuiWindowStackData +{ + ImGuiWindow* Window; + ImGuiLastItemData ParentLastItemDataBackup; + ImGuiStackSizes StackSizesOnBegin; // Store size of various stacks for asserting +}; + +struct ImGuiShrinkWidthItem +{ + int Index; + float Width; + float InitialWidth; +}; + +struct ImGuiPtrOrIndex +{ + void* Ptr; // Either field can be set, not both. e.g. Dock node tab bars are loose while BeginTabBar() ones are in a pool. + int Index; // Usually index in a main pool. + + ImGuiPtrOrIndex(void* ptr) { Ptr = ptr; Index = -1; } + ImGuiPtrOrIndex(int index) { Ptr = NULL; Index = index; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Inputs support +//----------------------------------------------------------------------------- + +// Bit array for named keys +typedef ImBitArray ImBitArrayForNamedKeys; + +// [Internal] Key ranges +#define ImGuiKey_LegacyNativeKey_BEGIN 0 +#define ImGuiKey_LegacyNativeKey_END 512 +#define ImGuiKey_Keyboard_BEGIN (ImGuiKey_NamedKey_BEGIN) +#define ImGuiKey_Keyboard_END (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_BEGIN (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_END (ImGuiKey_GamepadRStickDown + 1) +#define ImGuiKey_Mouse_BEGIN (ImGuiKey_MouseLeft) +#define ImGuiKey_Mouse_END (ImGuiKey_MouseWheelY + 1) +#define ImGuiKey_Aliases_BEGIN (ImGuiKey_Mouse_BEGIN) +#define ImGuiKey_Aliases_END (ImGuiKey_Mouse_END) + +// [Internal] Named shortcuts for Navigation +#define ImGuiKey_NavKeyboardTweakSlow ImGuiMod_Ctrl +#define ImGuiKey_NavKeyboardTweakFast ImGuiMod_Shift +#define ImGuiKey_NavGamepadTweakSlow ImGuiKey_GamepadL1 +#define ImGuiKey_NavGamepadTweakFast ImGuiKey_GamepadR1 +#define ImGuiKey_NavGamepadActivate ImGuiKey_GamepadFaceDown +#define ImGuiKey_NavGamepadCancel ImGuiKey_GamepadFaceRight +#define ImGuiKey_NavGamepadMenu ImGuiKey_GamepadFaceLeft +#define ImGuiKey_NavGamepadInput ImGuiKey_GamepadFaceUp + +enum ImGuiInputEventType +{ + ImGuiInputEventType_None = 0, + ImGuiInputEventType_MousePos, + ImGuiInputEventType_MouseWheel, + ImGuiInputEventType_MouseButton, + ImGuiInputEventType_MouseViewport, + ImGuiInputEventType_Key, + ImGuiInputEventType_Text, + ImGuiInputEventType_Focus, + ImGuiInputEventType_COUNT +}; + +enum ImGuiInputSource +{ + ImGuiInputSource_None = 0, + ImGuiInputSource_Mouse, // Note: may be Mouse or TouchScreen or Pen. See io.MouseSource to distinguish them. + ImGuiInputSource_Keyboard, + ImGuiInputSource_Gamepad, + ImGuiInputSource_Clipboard, // Currently only used by InputText() + ImGuiInputSource_COUNT +}; + +// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension? +// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor' +struct ImGuiInputEventMousePos { float PosX, PosY; ImGuiMouseSource MouseSource; }; +struct ImGuiInputEventMouseWheel { float WheelX, WheelY; ImGuiMouseSource MouseSource; }; +struct ImGuiInputEventMouseButton { int Button; bool Down; ImGuiMouseSource MouseSource; }; +struct ImGuiInputEventMouseViewport { ImGuiID HoveredViewportID; }; +struct ImGuiInputEventKey { ImGuiKey Key; bool Down; float AnalogValue; }; +struct ImGuiInputEventText { unsigned int Char; }; +struct ImGuiInputEventAppFocused { bool Focused; }; + +struct ImGuiInputEvent +{ + ImGuiInputEventType Type; + ImGuiInputSource Source; + ImU32 EventId; // Unique, sequential increasing integer to identify an event (if you need to correlate them to other data). + union + { + ImGuiInputEventMousePos MousePos; // if Type == ImGuiInputEventType_MousePos + ImGuiInputEventMouseWheel MouseWheel; // if Type == ImGuiInputEventType_MouseWheel + ImGuiInputEventMouseButton MouseButton; // if Type == ImGuiInputEventType_MouseButton + ImGuiInputEventMouseViewport MouseViewport; // if Type == ImGuiInputEventType_MouseViewport + ImGuiInputEventKey Key; // if Type == ImGuiInputEventType_Key + ImGuiInputEventText Text; // if Type == ImGuiInputEventType_Text + ImGuiInputEventAppFocused AppFocused; // if Type == ImGuiInputEventType_Focus + }; + bool AddedByTestEngine; + + ImGuiInputEvent() { memset(this, 0, sizeof(*this)); } +}; + +// Input function taking an 'ImGuiID owner_id' argument defaults to (ImGuiKeyOwner_Any == 0) aka don't test ownership, which matches legacy behavior. +#define ImGuiKeyOwner_Any ((ImGuiID)0) // Accept key that have an owner, UNLESS a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. +#define ImGuiKeyOwner_None ((ImGuiID)-1) // Require key to have no owner. + +typedef ImS16 ImGuiKeyRoutingIndex; + +// Routing table entry (sizeof() == 16 bytes) +struct ImGuiKeyRoutingData +{ + ImGuiKeyRoutingIndex NextEntryIndex; + ImU16 Mods; // Technically we'd only need 4-bits but for simplify we store ImGuiMod_ values which need 16-bits. ImGuiMod_Shortcut is already translated to Ctrl/Super. + ImU8 RoutingNextScore; // Lower is better (0: perfect score) + ImGuiID RoutingCurr; + ImGuiID RoutingNext; + + ImGuiKeyRoutingData() { NextEntryIndex = -1; Mods = 0; RoutingNextScore = 255; RoutingCurr = RoutingNext = ImGuiKeyOwner_None; } +}; + +// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching. +// Stored in main context (1 instance) +struct ImGuiKeyRoutingTable +{ + ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]; // Index of first entry in Entries[] + ImVector Entries; + ImVector EntriesNext; // Double-buffer to avoid reallocation (could use a shared buffer) + + ImGuiKeyRoutingTable() { Clear(); } + void Clear() { for (int n = 0; n < IM_ARRAYSIZE(Index); n++) Index[n] = -1; Entries.clear(); EntriesNext.clear(); } +}; + +// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features) +// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData. +struct ImGuiKeyOwnerData +{ + ImGuiID OwnerCurr; + ImGuiID OwnerNext; + bool LockThisFrame; // Reading this key requires explicit owner id (until end of frame). Set by ImGuiInputFlags_LockThisFrame. + bool LockUntilRelease; // Reading this key requires explicit owner id (until key is released). Set by ImGuiInputFlags_LockUntilRelease. When this is true LockThisFrame is always true as well. + + ImGuiKeyOwnerData() { OwnerCurr = OwnerNext = ImGuiKeyOwner_None; LockThisFrame = LockUntilRelease = false; } +}; + +// Flags for extended versions of IsKeyPressed(), IsMouseClicked(), Shortcut(), SetKeyOwner(), SetItemKeyOwner() +// Don't mistake with ImGuiInputTextFlags! (for ImGui::InputText() function) +enum ImGuiInputFlags_ +{ + // Flags for IsKeyPressed(), IsMouseClicked(), Shortcut() + ImGuiInputFlags_None = 0, + ImGuiInputFlags_Repeat = 1 << 0, // Return true on successive repeats. Default for legacy IsKeyPressed(). NOT Default for legacy IsMouseClicked(). MUST BE == 1. + ImGuiInputFlags_RepeatRateDefault = 1 << 1, // Repeat rate: Regular (default) + ImGuiInputFlags_RepeatRateNavMove = 1 << 2, // Repeat rate: Fast + ImGuiInputFlags_RepeatRateNavTweak = 1 << 3, // Repeat rate: Faster + ImGuiInputFlags_RepeatRateMask_ = ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak, + + // Flags for SetItemKeyOwner() + ImGuiInputFlags_CondHovered = 1 << 4, // Only set if item is hovered (default to both) + ImGuiInputFlags_CondActive = 1 << 5, // Only set if item is active (default to both) + ImGuiInputFlags_CondDefault_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_CondMask_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + + // Flags for SetKeyOwner(), SetItemKeyOwner() + ImGuiInputFlags_LockThisFrame = 1 << 6, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared at end of frame. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + ImGuiInputFlags_LockUntilRelease = 1 << 7, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared when the key is released or at end of each frame if key is released. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + + // Routing policies for Shortcut() + low-level SetShortcutRouting() + // - The general idea is that several callers register interest in a shortcut, and only one owner gets it. + // - When a policy (other than _RouteAlways) is set, Shortcut() will register itself with SetShortcutRouting(), + // allowing the system to decide where to route the input among other route-aware calls. + // - Shortcut() uses ImGuiInputFlags_RouteFocused by default: meaning that a simple Shortcut() poll + // will register a route and only succeed when parent window is in the focus stack and if no-one + // with a higher priority is claiming the shortcut. + // - Using ImGuiInputFlags_RouteAlways is roughly equivalent to doing e.g. IsKeyPressed(key) + testing mods. + // - Priorities: GlobalHigh > Focused (when owner is active item) > Global > Focused (when focused window) > GlobalLow. + // - Can select only 1 policy among all available. + ImGuiInputFlags_RouteFocused = 1 << 8, // (Default) Register focused route: Accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window. + ImGuiInputFlags_RouteGlobalLow = 1 << 9, // Register route globally (lowest priority: unless a focused window or active item registered the route) -> recommended Global priority. + ImGuiInputFlags_RouteGlobal = 1 << 10, // Register route globally (medium priority: unless an active item registered the route, e.g. CTRL+A registered by InputText). + ImGuiInputFlags_RouteGlobalHigh = 1 << 11, // Register route globally (highest priority: unlikely you need to use that: will interfere with every active items) + ImGuiInputFlags_RouteMask_ = ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh, // _Always not part of this! + ImGuiInputFlags_RouteAlways = 1 << 12, // Do not register route, poll keys directly. + ImGuiInputFlags_RouteUnlessBgFocused= 1 << 13, // Global routes will not be applied if underlying background/void is focused (== no Dear ImGui windows are focused). Useful for overlay applications. + ImGuiInputFlags_RouteExtraMask_ = ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused, + + // [Internal] Mask of which function support which flags + ImGuiInputFlags_SupportedByIsKeyPressed = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_, + ImGuiInputFlags_SupportedByShortcut = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_, + ImGuiInputFlags_SupportedBySetKeyOwner = ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease, + ImGuiInputFlags_SupportedBySetItemKeyOwner = ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_, +}; + +//----------------------------------------------------------------------------- +// [SECTION] Clipper support +//----------------------------------------------------------------------------- + +// Note that Max is exclusive, so perhaps should be using a Begin/End convention. +struct ImGuiListClipperRange +{ + int Min; + int Max; + bool PosToIndexConvert; // Begin/End are absolute position (will be converted to indices later) + ImS8 PosToIndexOffsetMin; // Add to Min after converting to indices + ImS8 PosToIndexOffsetMax; // Add to Min after converting to indices + + static ImGuiListClipperRange FromIndices(int min, int max) { ImGuiListClipperRange r = { min, max, false, 0, 0 }; return r; } + static ImGuiListClipperRange FromPositions(float y1, float y2, int off_min, int off_max) { ImGuiListClipperRange r = { (int)y1, (int)y2, true, (ImS8)off_min, (ImS8)off_max }; return r; } +}; + +// Temporary clipper data, buffers shared/reused between instances +struct ImGuiListClipperData +{ + ImGuiListClipper* ListClipper; + float LossynessOffset; + int StepNo; + int ItemsFrozen; + ImVector Ranges; + + ImGuiListClipperData() { memset(this, 0, sizeof(*this)); } + void Reset(ImGuiListClipper* clipper) { ListClipper = clipper; StepNo = ItemsFrozen = 0; Ranges.resize(0); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Navigation support +//----------------------------------------------------------------------------- + +enum ImGuiActivateFlags_ +{ + ImGuiActivateFlags_None = 0, + ImGuiActivateFlags_PreferInput = 1 << 0, // Favor activation that requires keyboard text input (e.g. for Slider/Drag). Default for Enter key. + ImGuiActivateFlags_PreferTweak = 1 << 1, // Favor activation for tweaking with arrows or gamepad (e.g. for Slider/Drag). Default for Space key and if keyboard is not used. + ImGuiActivateFlags_TryToPreserveState = 1 << 2, // Request widget to preserve state if it can (e.g. InputText will try to preserve cursor/selection) +}; + +// Early work-in-progress API for ScrollToItem() +enum ImGuiScrollFlags_ +{ + ImGuiScrollFlags_None = 0, + ImGuiScrollFlags_KeepVisibleEdgeX = 1 << 0, // If item is not visible: scroll as little as possible on X axis to bring item back into view [default for X axis] + ImGuiScrollFlags_KeepVisibleEdgeY = 1 << 1, // If item is not visible: scroll as little as possible on Y axis to bring item back into view [default for Y axis for windows that are already visible] + ImGuiScrollFlags_KeepVisibleCenterX = 1 << 2, // If item is not visible: scroll to make the item centered on X axis [rarely used] + ImGuiScrollFlags_KeepVisibleCenterY = 1 << 3, // If item is not visible: scroll to make the item centered on Y axis + ImGuiScrollFlags_AlwaysCenterX = 1 << 4, // Always center the result item on X axis [rarely used] + ImGuiScrollFlags_AlwaysCenterY = 1 << 5, // Always center the result item on Y axis [default for Y axis for appearing window) + ImGuiScrollFlags_NoScrollParent = 1 << 6, // Disable forwarding scrolling to parent window if required to keep item/rect visible (only scroll window the function was applied to). + ImGuiScrollFlags_MaskX_ = ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX, + ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY, +}; + +enum ImGuiNavHighlightFlags_ +{ + ImGuiNavHighlightFlags_None = 0, + ImGuiNavHighlightFlags_TypeDefault = 1 << 0, + ImGuiNavHighlightFlags_TypeThin = 1 << 1, + ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, // Draw rectangular highlight if (g.NavId == id) _even_ when using the mouse. + ImGuiNavHighlightFlags_NoRounding = 1 << 3, +}; + +enum ImGuiNavMoveFlags_ +{ + ImGuiNavMoveFlags_None = 0, + ImGuiNavMoveFlags_LoopX = 1 << 0, // On failed request, restart from opposite side + ImGuiNavMoveFlags_LoopY = 1 << 1, + ImGuiNavMoveFlags_WrapX = 1 << 2, // On failed request, request from opposite side one line down (when NavDir==right) or one line up (when NavDir==left) + ImGuiNavMoveFlags_WrapY = 1 << 3, // This is not super useful but provided for completeness + ImGuiNavMoveFlags_WrapMask_ = ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_LoopY | ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_WrapY, + ImGuiNavMoveFlags_AllowCurrentNavId = 1 << 4, // Allow scoring and considering the current NavId as a move target candidate. This is used when the move source is offset (e.g. pressing PageDown actually needs to send a Up move request, if we are pressing PageDown from the bottom-most item we need to stay in place) + ImGuiNavMoveFlags_AlsoScoreVisibleSet = 1 << 5, // Store alternate result in NavMoveResultLocalVisible that only comprise elements that are already fully visible (used by PageUp/PageDown) + ImGuiNavMoveFlags_ScrollToEdgeY = 1 << 6, // Force scrolling to min/max (used by Home/End) // FIXME-NAV: Aim to remove or reword, probably unnecessary + ImGuiNavMoveFlags_Forwarded = 1 << 7, + ImGuiNavMoveFlags_DebugNoResult = 1 << 8, // Dummy scoring for debug purpose, don't apply result + ImGuiNavMoveFlags_FocusApi = 1 << 9, // Requests from focus API can land/focus/activate items even if they are marked with _NoTabStop (see NavProcessItemForTabbingRequest() for details) + ImGuiNavMoveFlags_IsTabbing = 1 << 10, // == Focus + Activate if item is Inputable + DontChangeNavHighlight + ImGuiNavMoveFlags_IsPageMove = 1 << 11, // Identify a PageDown/PageUp request. + ImGuiNavMoveFlags_Activate = 1 << 12, // Activate/select target item. + ImGuiNavMoveFlags_NoSelect = 1 << 13, // Don't trigger selection by not setting g.NavJustMovedTo + ImGuiNavMoveFlags_NoSetNavHighlight = 1 << 14, // Do not alter the visible state of keyboard vs mouse nav highlight +}; + +enum ImGuiNavLayer +{ + ImGuiNavLayer_Main = 0, // Main scrolling layer + ImGuiNavLayer_Menu = 1, // Menu layer (access with Alt) + ImGuiNavLayer_COUNT +}; + +struct ImGuiNavItemData +{ + ImGuiWindow* Window; // Init,Move // Best candidate window (result->ItemWindow->RootWindowForNav == request->Window) + ImGuiID ID; // Init,Move // Best candidate item ID + ImGuiID FocusScopeId; // Init,Move // Best candidate focus scope ID + ImRect RectRel; // Init,Move // Best candidate bounding box in window relative space + ImGuiItemFlags InFlags; // ????,Move // Best candidate item flags + ImGuiSelectionUserData SelectionUserData;//I+Mov // Best candidate SetNextItemSelectionData() value. + float DistBox; // Move // Best candidate box distance to current NavId + float DistCenter; // Move // Best candidate center distance to current NavId + float DistAxial; // Move // Best candidate axial distance to current NavId + + ImGuiNavItemData() { Clear(); } + void Clear() { Window = NULL; ID = FocusScopeId = 0; InFlags = 0; SelectionUserData = -1; DistBox = DistCenter = DistAxial = FLT_MAX; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Typing-select support +//----------------------------------------------------------------------------- + +// Flags for GetTypingSelectRequest() +enum ImGuiTypingSelectFlags_ +{ + ImGuiTypingSelectFlags_None = 0, + ImGuiTypingSelectFlags_AllowBackspace = 1 << 0, // Backspace to delete character inputs. If using: ensure GetTypingSelectRequest() is not called more than once per frame (filter by e.g. focus state) + ImGuiTypingSelectFlags_AllowSingleCharMode = 1 << 1, // Allow "single char" search mode which is activated when pressing the same character multiple times. +}; + +// Returned by GetTypingSelectRequest(), designed to eventually be public. +struct IMGUI_API ImGuiTypingSelectRequest +{ + ImGuiTypingSelectFlags Flags; // Flags passed to GetTypingSelectRequest() + int SearchBufferLen; + const char* SearchBuffer; // Search buffer contents (use full string. unless SingleCharMode is set, in which case use SingleCharSize). + bool SelectRequest; // Set when buffer was modified this frame, requesting a selection. + bool SingleCharMode; // Notify when buffer contains same character repeated, to implement special mode. In this situation it preferred to not display any on-screen search indication. + ImS8 SingleCharSize; // Length in bytes of first letter codepoint (1 for ascii, 2-4 for UTF-8). If (SearchBufferLen==RepeatCharSize) only 1 letter has been input. +}; + +// Storage for GetTypingSelectRequest() +struct IMGUI_API ImGuiTypingSelectState +{ + ImGuiTypingSelectRequest Request; // User-facing data + char SearchBuffer[64]; // Search buffer: no need to make dynamic as this search is very transient. + ImGuiID FocusScope; + int LastRequestFrame = 0; + float LastRequestTime = 0.0f; + bool SingleCharModeLock = false; // After a certain single char repeat count we lock into SingleCharMode. Two benefits: 1) buffer never fill, 2) we can provide an immediate SingleChar mode without timer elapsing. + + ImGuiTypingSelectState() { memset(this, 0, sizeof(*this)); } + void Clear() { SearchBuffer[0] = 0; SingleCharModeLock = false; } // We preserve remaining data for easier debugging +}; + +//----------------------------------------------------------------------------- +// [SECTION] Columns support +//----------------------------------------------------------------------------- + +// Flags for internal's BeginColumns(). Prefix using BeginTable() nowadays! +enum ImGuiOldColumnFlags_ +{ + ImGuiOldColumnFlags_None = 0, + ImGuiOldColumnFlags_NoBorder = 1 << 0, // Disable column dividers + ImGuiOldColumnFlags_NoResize = 1 << 1, // Disable resizing columns when clicking on the dividers + ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, // Disable column width preservation when adjusting columns + ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, // Disable forcing columns to fit within window + ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4, // (WIP) Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove. + + // Obsolete names (will be removed) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiColumnsFlags_None = ImGuiOldColumnFlags_None, + ImGuiColumnsFlags_NoBorder = ImGuiOldColumnFlags_NoBorder, + ImGuiColumnsFlags_NoResize = ImGuiOldColumnFlags_NoResize, + ImGuiColumnsFlags_NoPreserveWidths = ImGuiOldColumnFlags_NoPreserveWidths, + ImGuiColumnsFlags_NoForceWithinWindow = ImGuiOldColumnFlags_NoForceWithinWindow, + ImGuiColumnsFlags_GrowParentContentsSize = ImGuiOldColumnFlags_GrowParentContentsSize, +#endif +}; + +struct ImGuiOldColumnData +{ + float OffsetNorm; // Column start offset, normalized 0.0 (far left) -> 1.0 (far right) + float OffsetNormBeforeResize; + ImGuiOldColumnFlags Flags; // Not exposed + ImRect ClipRect; + + ImGuiOldColumnData() { memset(this, 0, sizeof(*this)); } +}; + +struct ImGuiOldColumns +{ + ImGuiID ID; + ImGuiOldColumnFlags Flags; + bool IsFirstFrame; + bool IsBeingResized; + int Current; + int Count; + float OffMinX, OffMaxX; // Offsets from HostWorkRect.Min.x + float LineMinY, LineMaxY; + float HostCursorPosY; // Backup of CursorPos at the time of BeginColumns() + float HostCursorMaxPosX; // Backup of CursorMaxPos at the time of BeginColumns() + ImRect HostInitialClipRect; // Backup of ClipRect at the time of BeginColumns() + ImRect HostBackupClipRect; // Backup of ClipRect during PushColumnsBackground()/PopColumnsBackground() + ImRect HostBackupParentWorkRect;//Backup of WorkRect at the time of BeginColumns() + ImVector Columns; + ImDrawListSplitter Splitter; + + ImGuiOldColumns() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Multi-select support +//----------------------------------------------------------------------------- + +// We always assume that -1 is an invalid value (which works for indices and pointers) +#define ImGuiSelectionUserData_Invalid ((ImGuiSelectionUserData)-1) + +#ifdef IMGUI_HAS_MULTI_SELECT +// +#endif // #ifdef IMGUI_HAS_MULTI_SELECT + +//----------------------------------------------------------------------------- +// [SECTION] Docking support +//----------------------------------------------------------------------------- + +#define DOCKING_HOST_DRAW_CHANNEL_BG 0 // Dock host: background fill +#define DOCKING_HOST_DRAW_CHANNEL_FG 1 // Dock host: decorations and contents + +#ifdef IMGUI_HAS_DOCK + +// Extend ImGuiDockNodeFlags_ +enum ImGuiDockNodeFlagsPrivate_ +{ + // [Internal] + ImGuiDockNodeFlags_DockSpace = 1 << 10, // Saved // A dockspace is a node that occupy space within an existing user window. Otherwise the node is floating and create its own window. + ImGuiDockNodeFlags_CentralNode = 1 << 11, // Saved // The central node has 2 main properties: stay visible when empty, only use "remaining" spaces from its neighbor. + ImGuiDockNodeFlags_NoTabBar = 1 << 12, // Saved // Tab bar is completely unavailable. No triangle in the corner to enable it back. + ImGuiDockNodeFlags_HiddenTabBar = 1 << 13, // Saved // Tab bar is hidden, with a triangle in the corner to show it again (NB: actual tab-bar instance may be destroyed as this is only used for single-window tab bar) + ImGuiDockNodeFlags_NoWindowMenuButton = 1 << 14, // Saved // Disable window/docking menu (that one that appears instead of the collapse button) + ImGuiDockNodeFlags_NoCloseButton = 1 << 15, // Saved // Disable close button + ImGuiDockNodeFlags_NoResizeX = 1 << 16, // // + ImGuiDockNodeFlags_NoResizeY = 1 << 17, // // + // Disable docking/undocking actions in this dockspace or individual node (existing docked nodes will be preserved) + // Those are not exposed in public because the desirable sharing/inheriting/copy-flag-on-split behaviors are quite difficult to design and understand. + // The two public flags ImGuiDockNodeFlags_NoDockingOverCentralNode/ImGuiDockNodeFlags_NoDockingSplit don't have those issues. + ImGuiDockNodeFlags_NoDockingSplitOther = 1 << 19, // // Disable this node from splitting other windows/nodes. + ImGuiDockNodeFlags_NoDockingOverMe = 1 << 20, // // Disable other windows/nodes from being docked over this node. + ImGuiDockNodeFlags_NoDockingOverOther = 1 << 21, // // Disable this node from being docked over another window or non-empty node. + ImGuiDockNodeFlags_NoDockingOverEmpty = 1 << 22, // // Disable this node from being docked over an empty node (e.g. DockSpace with no other windows) + ImGuiDockNodeFlags_NoDocking = ImGuiDockNodeFlags_NoDockingOverMe | ImGuiDockNodeFlags_NoDockingOverOther | ImGuiDockNodeFlags_NoDockingOverEmpty | ImGuiDockNodeFlags_NoDockingSplit | ImGuiDockNodeFlags_NoDockingSplitOther, + // Masks + ImGuiDockNodeFlags_SharedFlagsInheritMask_ = ~0, + ImGuiDockNodeFlags_NoResizeFlagsMask_ = ImGuiDockNodeFlags_NoResize | ImGuiDockNodeFlags_NoResizeX | ImGuiDockNodeFlags_NoResizeY, + // When splitting, those local flags are moved to the inheriting child, never duplicated + ImGuiDockNodeFlags_LocalFlagsTransferMask_ = ImGuiDockNodeFlags_NoDockingSplit | ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_AutoHideTabBar | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton, + ImGuiDockNodeFlags_SavedFlagsMask_ = ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton, +}; + +// Store the source authority (dock node vs window) of a field +enum ImGuiDataAuthority_ +{ + ImGuiDataAuthority_Auto, + ImGuiDataAuthority_DockNode, + ImGuiDataAuthority_Window, +}; + +enum ImGuiDockNodeState +{ + ImGuiDockNodeState_Unknown, + ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow, + ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing, + ImGuiDockNodeState_HostWindowVisible, +}; + +// sizeof() 156~192 +struct IMGUI_API ImGuiDockNode +{ + ImGuiID ID; + ImGuiDockNodeFlags SharedFlags; // (Write) Flags shared by all nodes of a same dockspace hierarchy (inherited from the root node) + ImGuiDockNodeFlags LocalFlags; // (Write) Flags specific to this node + ImGuiDockNodeFlags LocalFlagsInWindows; // (Write) Flags specific to this node, applied from windows + ImGuiDockNodeFlags MergedFlags; // (Read) Effective flags (== SharedFlags | LocalFlagsInNode | LocalFlagsInWindows) + ImGuiDockNodeState State; + ImGuiDockNode* ParentNode; + ImGuiDockNode* ChildNodes[2]; // [Split node only] Child nodes (left/right or top/bottom). Consider switching to an array. + ImVector Windows; // Note: unordered list! Iterate TabBar->Tabs for user-order. + ImGuiTabBar* TabBar; + ImVec2 Pos; // Current position + ImVec2 Size; // Current size + ImVec2 SizeRef; // [Split node only] Last explicitly written-to size (overridden when using a splitter affecting the node), used to calculate Size. + ImGuiAxis SplitAxis; // [Split node only] Split axis (X or Y) + ImGuiWindowClass WindowClass; // [Root node only] + ImU32 LastBgColor; + + ImGuiWindow* HostWindow; + ImGuiWindow* VisibleWindow; // Generally point to window which is ID is == SelectedTabID, but when CTRL+Tabbing this can be a different window. + ImGuiDockNode* CentralNode; // [Root node only] Pointer to central node. + ImGuiDockNode* OnlyNodeWithWindows; // [Root node only] Set when there is a single visible node within the hierarchy. + int CountNodeWithWindows; // [Root node only] + int LastFrameAlive; // Last frame number the node was updated or kept alive explicitly with DockSpace() + ImGuiDockNodeFlags_KeepAliveOnly + int LastFrameActive; // Last frame number the node was updated. + int LastFrameFocused; // Last frame number the node was focused. + ImGuiID LastFocusedNodeId; // [Root node only] Which of our child docking node (any ancestor in the hierarchy) was last focused. + ImGuiID SelectedTabId; // [Leaf node only] Which of our tab/window is selected. + ImGuiID WantCloseTabId; // [Leaf node only] Set when closing a specific tab/window. + ImGuiID RefViewportId; // Reference viewport ID from visible window when HostWindow == NULL. + ImGuiDataAuthority AuthorityForPos :3; + ImGuiDataAuthority AuthorityForSize :3; + ImGuiDataAuthority AuthorityForViewport :3; + bool IsVisible :1; // Set to false when the node is hidden (usually disabled as it has no active window) + bool IsFocused :1; + bool IsBgDrawnThisFrame :1; + bool HasCloseButton :1; // Provide space for a close button (if any of the docked window has one). Note that button may be hidden on window without one. + bool HasWindowMenuButton :1; + bool HasCentralNodeChild :1; + bool WantCloseAll :1; // Set when closing all tabs at once. + bool WantLockSizeOnce :1; + bool WantMouseMove :1; // After a node extraction we need to transition toward moving the newly created host window + bool WantHiddenTabBarUpdate :1; + bool WantHiddenTabBarToggle :1; + + ImGuiDockNode(ImGuiID id); + ~ImGuiDockNode(); + bool IsRootNode() const { return ParentNode == NULL; } + bool IsDockSpace() const { return (MergedFlags & ImGuiDockNodeFlags_DockSpace) != 0; } + bool IsFloatingNode() const { return ParentNode == NULL && (MergedFlags & ImGuiDockNodeFlags_DockSpace) == 0; } + bool IsCentralNode() const { return (MergedFlags & ImGuiDockNodeFlags_CentralNode) != 0; } + bool IsHiddenTabBar() const { return (MergedFlags & ImGuiDockNodeFlags_HiddenTabBar) != 0; } // Hidden tab bar can be shown back by clicking the small triangle + bool IsNoTabBar() const { return (MergedFlags & ImGuiDockNodeFlags_NoTabBar) != 0; } // Never show a tab bar + bool IsSplitNode() const { return ChildNodes[0] != NULL; } + bool IsLeafNode() const { return ChildNodes[0] == NULL; } + bool IsEmpty() const { return ChildNodes[0] == NULL && Windows.Size == 0; } + ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + + void SetLocalFlags(ImGuiDockNodeFlags flags) { LocalFlags = flags; UpdateMergedFlags(); } + void UpdateMergedFlags() { MergedFlags = SharedFlags | LocalFlags | LocalFlagsInWindows; } +}; + +// List of colors that are stored at the time of Begin() into Docked Windows. +// We currently store the packed colors in a simple array window->DockStyle.Colors[]. +// A better solution may involve appending into a log of colors in ImGuiContext + store offsets into those arrays in ImGuiWindow, +// but it would be more complex as we'd need to double-buffer both as e.g. drop target may refer to window from last frame. +enum ImGuiWindowDockStyleCol +{ + ImGuiWindowDockStyleCol_Text, + ImGuiWindowDockStyleCol_Tab, + ImGuiWindowDockStyleCol_TabHovered, + ImGuiWindowDockStyleCol_TabActive, + ImGuiWindowDockStyleCol_TabUnfocused, + ImGuiWindowDockStyleCol_TabUnfocusedActive, + ImGuiWindowDockStyleCol_COUNT +}; + +struct ImGuiWindowDockStyle +{ + ImU32 Colors[ImGuiWindowDockStyleCol_COUNT]; +}; + +struct ImGuiDockContext +{ + ImGuiStorage Nodes; // Map ID -> ImGuiDockNode*: Active nodes + ImVector Requests; + ImVector NodesSettings; + bool WantFullRebuild; + ImGuiDockContext() { memset(this, 0, sizeof(*this)); } +}; + +#endif // #ifdef IMGUI_HAS_DOCK + +//----------------------------------------------------------------------------- +// [SECTION] Viewport support +//----------------------------------------------------------------------------- + +// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!) +// Every instance of ImGuiViewport is in fact a ImGuiViewportP. +struct ImGuiViewportP : public ImGuiViewport +{ + ImGuiWindow* Window; // Set when the viewport is owned by a window (and ImGuiViewportFlags_CanHostOtherWindows is NOT set) + int Idx; + int LastFrameActive; // Last frame number this viewport was activated by a window + int LastFocusedStampCount; // Last stamp number from when a window hosted by this viewport was focused (by comparing this value between two viewport we have an implicit viewport z-order we use as fallback) + ImGuiID LastNameHash; + ImVec2 LastPos; + float Alpha; // Window opacity (when dragging dockable windows/viewports we make them transparent) + float LastAlpha; + bool LastFocusedHadNavWindow;// Instead of maintaining a LastFocusedWindow (which may harder to correctly maintain), we merely store weither NavWindow != NULL last time the viewport was focused. + short PlatformMonitor; + int BgFgDrawListsLastFrame[2]; // Last frame number the background (0) and foreground (1) draw lists were used + ImDrawList* BgFgDrawLists[2]; // Convenience background (0) and foreground (1) draw lists. We use them to draw software mouser cursor when io.MouseDrawCursor is set and to draw most debug overlays. + ImDrawData DrawDataP; + ImDrawDataBuilder DrawDataBuilder; // Temporary data while building final ImDrawData + ImVec2 LastPlatformPos; + ImVec2 LastPlatformSize; + ImVec2 LastRendererSize; + ImVec2 WorkOffsetMin; // Work Area: Offset from Pos to top-left corner of Work Area. Generally (0,0) or (0,+main_menu_bar_height). Work Area is Full Area but without menu-bars/status-bars (so WorkArea always fit inside Pos/Size!) + ImVec2 WorkOffsetMax; // Work Area: Offset from Pos+Size to bottom-right corner of Work Area. Generally (0,0) or (0,-status_bar_height). + ImVec2 BuildWorkOffsetMin; // Work Area: Offset being built during current frame. Generally >= 0.0f. + ImVec2 BuildWorkOffsetMax; // Work Area: Offset being built during current frame. Generally <= 0.0f. + + ImGuiViewportP() { Window = NULL; Idx = -1; LastFrameActive = BgFgDrawListsLastFrame[0] = BgFgDrawListsLastFrame[1] = LastFocusedStampCount = -1; LastNameHash = 0; Alpha = LastAlpha = 1.0f; LastFocusedHadNavWindow = false; PlatformMonitor = -1; BgFgDrawLists[0] = BgFgDrawLists[1] = NULL; LastPlatformPos = LastPlatformSize = LastRendererSize = ImVec2(FLT_MAX, FLT_MAX); } + ~ImGuiViewportP() { if (BgFgDrawLists[0]) IM_DELETE(BgFgDrawLists[0]); if (BgFgDrawLists[1]) IM_DELETE(BgFgDrawLists[1]); } + void ClearRequestFlags() { PlatformRequestClose = PlatformRequestMove = PlatformRequestResize = false; } + + // Calculate work rect pos/size given a set of offset (we have 1 pair of offset for rect locked from last frame data, and 1 pair for currently building rect) + ImVec2 CalcWorkRectPos(const ImVec2& off_min) const { return ImVec2(Pos.x + off_min.x, Pos.y + off_min.y); } + ImVec2 CalcWorkRectSize(const ImVec2& off_min, const ImVec2& off_max) const { return ImVec2(ImMax(0.0f, Size.x - off_min.x + off_max.x), ImMax(0.0f, Size.y - off_min.y + off_max.y)); } + void UpdateWorkRect() { WorkPos = CalcWorkRectPos(WorkOffsetMin); WorkSize = CalcWorkRectSize(WorkOffsetMin, WorkOffsetMax); } // Update public fields + + // Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it, hence the code asymmetry) + ImRect GetMainRect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + ImRect GetWorkRect() const { return ImRect(WorkPos.x, WorkPos.y, WorkPos.x + WorkSize.x, WorkPos.y + WorkSize.y); } + ImRect GetBuildWorkRect() const { ImVec2 pos = CalcWorkRectPos(BuildWorkOffsetMin); ImVec2 size = CalcWorkRectSize(BuildWorkOffsetMin, BuildWorkOffsetMax); return ImRect(pos.x, pos.y, pos.x + size.x, pos.y + size.y); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Settings support +//----------------------------------------------------------------------------- + +// Windows data saved in imgui.ini file +// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily. +// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure) +struct ImGuiWindowSettings +{ + ImGuiID ID; + ImVec2ih Pos; // NB: Settings position are stored RELATIVE to the viewport! Whereas runtime ones are absolute positions. + ImVec2ih Size; + ImVec2ih ViewportPos; + ImGuiID ViewportId; + ImGuiID DockId; // ID of last known DockNode (even if the DockNode is invisible because it has only 1 active window), or 0 if none. + ImGuiID ClassId; // ID of window class if specified + short DockOrder; // Order of the last time the window was visible within its DockNode. This is used to reorder windows that are reappearing on the same frame. Same value between windows that were active and windows that were none are possible. + bool Collapsed; + bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context) + bool WantDelete; // Set to invalidate/delete the settings entry + + ImGuiWindowSettings() { memset(this, 0, sizeof(*this)); DockOrder = -1; } + char* GetName() { return (char*)(this + 1); } +}; + +struct ImGuiSettingsHandler +{ + const char* TypeName; // Short description stored in .ini file. Disallowed characters: '[' ']' + ImGuiID TypeHash; // == ImHashStr(TypeName) + void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Clear all settings data + void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called before reading (in registration order) + void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name); // Read: Called when entering into a new ini entry e.g. "[Window][Name]" + void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line); // Read: Called for every line of text within an ini entry + void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called after reading (in registration order) + void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf); // Write: Output every entries into 'out_buf' + void* UserData; + + ImGuiSettingsHandler() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Localization support +//----------------------------------------------------------------------------- + +// This is experimental and not officially supported, it'll probably fall short of features, if/when it does we may backtrack. +enum ImGuiLocKey : int +{ + ImGuiLocKey_VersionStr, + ImGuiLocKey_TableSizeOne, + ImGuiLocKey_TableSizeAllFit, + ImGuiLocKey_TableSizeAllDefault, + ImGuiLocKey_TableResetOrder, + ImGuiLocKey_WindowingMainMenuBar, + ImGuiLocKey_WindowingPopup, + ImGuiLocKey_WindowingUntitled, + ImGuiLocKey_DockingHideTabBar, + ImGuiLocKey_DockingHoldShiftToDock, + ImGuiLocKey_DockingDragToUndockOrMoveNode, + ImGuiLocKey_COUNT +}; + +struct ImGuiLocEntry +{ + ImGuiLocKey Key; + const char* Text; +}; + + +//----------------------------------------------------------------------------- +// [SECTION] Metrics, Debug Tools +//----------------------------------------------------------------------------- + +enum ImGuiDebugLogFlags_ +{ + // Event types + ImGuiDebugLogFlags_None = 0, + ImGuiDebugLogFlags_EventActiveId = 1 << 0, + ImGuiDebugLogFlags_EventFocus = 1 << 1, + ImGuiDebugLogFlags_EventPopup = 1 << 2, + ImGuiDebugLogFlags_EventNav = 1 << 3, + ImGuiDebugLogFlags_EventClipper = 1 << 4, + ImGuiDebugLogFlags_EventSelection = 1 << 5, + ImGuiDebugLogFlags_EventIO = 1 << 6, + ImGuiDebugLogFlags_EventDocking = 1 << 7, + ImGuiDebugLogFlags_EventViewport = 1 << 8, + ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventSelection | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport, + ImGuiDebugLogFlags_OutputToTTY = 1 << 10, // Also send output to TTY + ImGuiDebugLogFlags_OutputToTestEngine = 1 << 11,// Also send output to Test Engine +}; + +struct ImGuiDebugAllocEntry +{ + int FrameCount; + ImS16 AllocCount; + ImS16 FreeCount; +}; + +struct ImGuiDebugAllocInfo +{ + int TotalAllocCount; // Number of call to MemAlloc(). + int TotalFreeCount; + ImS16 LastEntriesIdx; // Current index in buffer + ImGuiDebugAllocEntry LastEntriesBuf[6]; // Track last 6 frames that had allocations + + ImGuiDebugAllocInfo() { memset(this, 0, sizeof(*this)); } +}; + +struct ImGuiMetricsConfig +{ + bool ShowDebugLog = false; + bool ShowIDStackTool = false; + bool ShowWindowsRects = false; + bool ShowWindowsBeginOrder = false; + bool ShowTablesRects = false; + bool ShowDrawCmdMesh = true; + bool ShowDrawCmdBoundingBoxes = true; + bool ShowAtlasTintedWithTextColor = false; + bool ShowDockingNodes = false; + int ShowWindowsRectsType = -1; + int ShowTablesRectsType = -1; +}; + +struct ImGuiStackLevelInfo +{ + ImGuiID ID; + ImS8 QueryFrameCount; // >= 1: Query in progress + bool QuerySuccess; // Obtained result from DebugHookIdInfo() + ImGuiDataType DataType : 8; + char Desc[57]; // Arbitrarily sized buffer to hold a result (FIXME: could replace Results[] with a chunk stream?) FIXME: Now that we added CTRL+C this should be fixed. + + ImGuiStackLevelInfo() { memset(this, 0, sizeof(*this)); } +}; + +// State for ID Stack tool queries +struct ImGuiIDStackTool +{ + int LastActiveFrame; + int StackLevel; // -1: query stack and resize Results, >= 0: individual stack level + ImGuiID QueryId; // ID to query details for + ImVector Results; + bool CopyToClipboardOnCtrlC; + float CopyToClipboardLastTime; + + ImGuiIDStackTool() { memset(this, 0, sizeof(*this)); CopyToClipboardLastTime = -FLT_MAX; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Generic context hooks +//----------------------------------------------------------------------------- + +typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook); +enum ImGuiContextHookType { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }; + +struct ImGuiContextHook +{ + ImGuiID HookId; // A unique ID assigned by AddContextHook() + ImGuiContextHookType Type; + ImGuiID Owner; + ImGuiContextHookCallback Callback; + void* UserData; + + ImGuiContextHook() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiContext (main Dear ImGui context) +//----------------------------------------------------------------------------- + +struct ImGuiContext +{ + bool Initialized; + bool FontAtlasOwnedByContext; // IO.Fonts-> is owned by the ImGuiContext and will be destructed along with it. + ImGuiIO IO; + ImGuiPlatformIO PlatformIO; + ImGuiStyle Style; + ImGuiConfigFlags ConfigFlagsCurrFrame; // = g.IO.ConfigFlags at the time of NewFrame() + ImGuiConfigFlags ConfigFlagsLastFrame; + ImFont* Font; // (Shortcut) == FontStack.empty() ? IO.Font : FontStack.back() + float FontSize; // (Shortcut) == FontBaseSize * g.CurrentWindow->FontWindowScale == window->FontSize(). Text height for current window. + float FontBaseSize; // (Shortcut) == IO.FontGlobalScale * Font->Scale * Font->FontSize. Base text height. + ImDrawListSharedData DrawListSharedData; + double Time; + int FrameCount; + int FrameCountEnded; + int FrameCountPlatformEnded; + int FrameCountRendered; + bool WithinFrameScope; // Set by NewFrame(), cleared by EndFrame() + bool WithinFrameScopeWithImplicitWindow; // Set by NewFrame(), cleared by EndFrame() when the implicit debug window has been pushed + bool WithinEndChild; // Set within EndChild() + bool GcCompactAll; // Request full GC + bool TestEngineHookItems; // Will call test engine hooks: ImGuiTestEngineHook_ItemAdd(), ImGuiTestEngineHook_ItemInfo(), ImGuiTestEngineHook_Log() + void* TestEngine; // Test engine user data + + // Inputs + ImVector InputEventsQueue; // Input events which will be trickled/written into IO structure. + ImVector InputEventsTrail; // Past input events processed in NewFrame(). This is to allow domain-specific application to access e.g mouse/pen trail. + ImGuiMouseSource InputEventsNextMouseSource; + ImU32 InputEventsNextEventId; + + // Windows state + ImVector Windows; // Windows, sorted in display order, back to front + ImVector WindowsFocusOrder; // Root windows, sorted in focus order, back to front. + ImVector WindowsTempSortBuffer; // Temporary buffer used in EndFrame() to reorder windows so parents are kept before their child + ImVector CurrentWindowStack; + ImGuiStorage WindowsById; // Map window's ImGuiID to ImGuiWindow* + int WindowsActiveCount; // Number of unique windows submitted by frame + ImVec2 WindowsHoverPadding; // Padding around resizable windows for which hovering on counts as hovering the window == ImMax(style.TouchExtraPadding, WINDOWS_HOVER_PADDING) + ImGuiWindow* CurrentWindow; // Window being drawn into + ImGuiWindow* HoveredWindow; // Window the mouse is hovering. Will typically catch mouse inputs. + ImGuiWindow* HoveredWindowUnderMovingWindow; // Hovered window ignoring MovingWindow. Only set if MovingWindow is set. + ImGuiWindow* MovingWindow; // Track the window we clicked on (in order to preserve focus). The actual window that is moved is generally MovingWindow->RootWindowDockTree. + ImGuiWindow* WheelingWindow; // Track the window we started mouse-wheeling on. Until a timer elapse or mouse has moved, generally keep scrolling the same window even if during the course of scrolling the mouse ends up hovering a child window. + ImVec2 WheelingWindowRefMousePos; + int WheelingWindowStartFrame; // This may be set one frame before WheelingWindow is != NULL + float WheelingWindowReleaseTimer; + ImVec2 WheelingWindowWheelRemainder; + ImVec2 WheelingAxisAvg; + + // Item/widgets state and tracking information + ImGuiID DebugHookIdInfo; // Will call core hooks: DebugHookIdInfo() from GetID functions, used by ID Stack Tool [next HoveredId/ActiveId to not pull in an extra cache-line] + ImGuiID HoveredId; // Hovered widget, filled during the frame + ImGuiID HoveredIdPreviousFrame; + bool HoveredIdAllowOverlap; + bool HoveredIdDisabled; // At least one widget passed the rect test, but has been discarded by disabled flag or popup inhibit. May be true even if HoveredId == 0. + float HoveredIdTimer; // Measure contiguous hovering time + float HoveredIdNotActiveTimer; // Measure contiguous hovering time where the item has not been active + ImGuiID ActiveId; // Active widget + ImGuiID ActiveIdIsAlive; // Active widget has been seen this frame (we can't use a bool as the ActiveId may change within the frame) + float ActiveIdTimer; + bool ActiveIdIsJustActivated; // Set at the time of activation for one frame + bool ActiveIdAllowOverlap; // Active widget allows another widget to steal active id (generally for overlapping widgets, but not always) + bool ActiveIdNoClearOnFocusLoss; // Disable losing active id if the active id window gets unfocused. + bool ActiveIdHasBeenPressedBefore; // Track whether the active id led to a press (this is to allow changing between PressOnClick and PressOnRelease without pressing twice). Used by range_select branch. + bool ActiveIdHasBeenEditedBefore; // Was the value associated to the widget Edited over the course of the Active state. + bool ActiveIdHasBeenEditedThisFrame; + ImVec2 ActiveIdClickOffset; // Clicked offset from upper-left corner, if applicable (currently only set by ButtonBehavior) + ImGuiWindow* ActiveIdWindow; + ImGuiInputSource ActiveIdSource; // Activating source: ImGuiInputSource_Mouse OR ImGuiInputSource_Keyboard OR ImGuiInputSource_Gamepad + int ActiveIdMouseButton; + ImGuiID ActiveIdPreviousFrame; + bool ActiveIdPreviousFrameIsAlive; + bool ActiveIdPreviousFrameHasBeenEditedBefore; + ImGuiWindow* ActiveIdPreviousFrameWindow; + ImGuiID LastActiveId; // Store the last non-zero ActiveId, useful for animation. + float LastActiveIdTimer; // Store the last non-zero ActiveId timer since the beginning of activation, useful for animation. + + // [EXPERIMENTAL] Key/Input Ownership + Shortcut Routing system + // - The idea is that instead of "eating" a given key, we can link to an owner. + // - Input query can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Routing is requested ahead of time for a given chord (Key + Mods) and granted in NewFrame(). + ImGuiKeyOwnerData KeysOwnerData[ImGuiKey_NamedKey_COUNT]; + ImGuiKeyRoutingTable KeysRoutingTable; + ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it) + bool ActiveIdUsingAllKeyboardKeys; // Active widget will want to read all keyboard keys inputs. (FIXME: This is a shortcut for not taking ownership of 100+ keys but perhaps best to not have the inconsistency) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ImU32 ActiveIdUsingNavInputMask; // If you used this. Since (IMGUI_VERSION_NUM >= 18804) : 'g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel);' becomes 'SetKeyOwner(ImGuiKey_Escape, g.ActiveId) and/or SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId);' +#endif + + // Next window/item data + ImGuiID CurrentFocusScopeId; // == g.FocusScopeStack.back() + ImGuiItemFlags CurrentItemFlags; // == g.ItemFlagsStack.back() + ImGuiID DebugLocateId; // Storage for DebugLocateItemOnHover() feature: this is read by ItemAdd() so we keep it in a hot/cached location + ImGuiNextItemData NextItemData; // Storage for SetNextItem** functions + ImGuiLastItemData LastItemData; // Storage for last submitted item (setup by ItemAdd) + ImGuiNextWindowData NextWindowData; // Storage for SetNextWindow** functions + bool DebugShowGroupRects; + + // Shared stacks + ImVector ColorStack; // Stack for PushStyleColor()/PopStyleColor() - inherited by Begin() + ImVector StyleVarStack; // Stack for PushStyleVar()/PopStyleVar() - inherited by Begin() + ImVector FontStack; // Stack for PushFont()/PopFont() - inherited by Begin() + ImVector FocusScopeStack; // Stack for PushFocusScope()/PopFocusScope() - inherited by BeginChild(), pushed into by Begin() + ImVector ItemFlagsStack; // Stack for PushItemFlag()/PopItemFlag() - inherited by Begin() + ImVector GroupStack; // Stack for BeginGroup()/EndGroup() - not inherited by Begin() + ImVector OpenPopupStack; // Which popups are open (persistent) + ImVector BeginPopupStack; // Which level of BeginPopup() we are in (reset every frame) + ImVector NavTreeNodeStack; // Stack for TreeNode() when a NavLeft requested is emitted. + + int BeginMenuCount; + + // Viewports + ImVector Viewports; // Active viewports (always 1+, and generally 1 unless multi-viewports are enabled). Each viewports hold their copy of ImDrawData. + float CurrentDpiScale; // == CurrentViewport->DpiScale + ImGuiViewportP* CurrentViewport; // We track changes of viewport (happening in Begin) so we can call Platform_OnChangedViewport() + ImGuiViewportP* MouseViewport; + ImGuiViewportP* MouseLastHoveredViewport; // Last known viewport that was hovered by mouse (even if we are not hovering any viewport any more) + honoring the _NoInputs flag. + ImGuiID PlatformLastFocusedViewportId; + ImGuiPlatformMonitor FallbackMonitor; // Virtual monitor used as fallback if backend doesn't provide monitor information. + int ViewportCreatedCount; // Unique sequential creation counter (mostly for testing/debugging) + int PlatformWindowsCreatedCount; // Unique sequential creation counter (mostly for testing/debugging) + int ViewportFocusedStampCount; // Every time the front-most window changes, we stamp its viewport with an incrementing counter + + // Gamepad/keyboard Navigation + ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusedWindow' + ImGuiID NavId; // Focused item for navigation + ImGuiID NavFocusScopeId; // Identify a selection scope (selection code often wants to "clear other items" when landing on an item of the selection set) + ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && (IsKeyPressed(ImGuiKey_Space) || IsKeyDown(ImGuiKey_Enter) || IsKeyPressed(ImGuiKey_NavGamepadActivate)) ? NavId : 0, also set when calling ActivateItem() + ImGuiID NavActivateDownId; // ~~ IsKeyDown(ImGuiKey_Space) || IsKeyDown(ImGuiKey_Enter) || IsKeyDown(ImGuiKey_NavGamepadActivate) ? NavId : 0 + ImGuiID NavActivatePressedId; // ~~ IsKeyPressed(ImGuiKey_Space) || IsKeyPressed(ImGuiKey_Enter) || IsKeyPressed(ImGuiKey_NavGamepadActivate) ? NavId : 0 (no repeat) + ImGuiActivateFlags NavActivateFlags; + ImGuiID NavJustMovedToId; // Just navigated to this id (result of a successfully MoveRequest). + ImGuiID NavJustMovedToFocusScopeId; // Just navigated to this focus scope id (result of a successfully MoveRequest). + ImGuiKeyChord NavJustMovedToKeyMods; + ImGuiID NavNextActivateId; // Set by ActivateItem(), queued until next frame. + ImGuiActivateFlags NavNextActivateFlags; + ImGuiInputSource NavInputSource; // Keyboard or Gamepad mode? THIS CAN ONLY BE ImGuiInputSource_Keyboard or ImGuiInputSource_Mouse + ImGuiNavLayer NavLayer; // Layer we are navigating on. For now the system is hard-coded for 0=main contents and 1=menu/title bar, may expose layers later. + ImGuiSelectionUserData NavLastValidSelectionUserData; // Last valid data passed to SetNextItemSelectionUser(), or -1. For current window. Not reset when focusing an item that doesn't have selection data. + bool NavIdIsAlive; // Nav widget has been seen this frame ~~ NavRectRel is valid + bool NavMousePosDirty; // When set we will update mouse position if (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) if set (NB: this not enabled by default) + bool NavDisableHighlight; // When user starts using mouse, we hide gamepad/keyboard highlight (NB: but they are still available, which is why NavDisableHighlight isn't always != NavDisableMouseHover) + bool NavDisableMouseHover; // When user starts using gamepad/keyboard, we hide mouse hovering highlight until mouse is touched again. + + // Navigation: Init & Move Requests + bool NavAnyRequest; // ~~ NavMoveRequest || NavInitRequest this is to perform early out in ItemAdd() + bool NavInitRequest; // Init request for appearing window to select first item + bool NavInitRequestFromMove; + ImGuiNavItemData NavInitResult; // Init request result (first item of the window, or one for which SetItemDefaultFocus() was called) + bool NavMoveSubmitted; // Move request submitted, will process result on next NewFrame() + bool NavMoveScoringItems; // Move request submitted, still scoring incoming items + bool NavMoveForwardToNextFrame; + ImGuiNavMoveFlags NavMoveFlags; + ImGuiScrollFlags NavMoveScrollFlags; + ImGuiKeyChord NavMoveKeyMods; + ImGuiDir NavMoveDir; // Direction of the move request (left/right/up/down) + ImGuiDir NavMoveDirForDebug; + ImGuiDir NavMoveClipDir; // FIXME-NAV: Describe the purpose of this better. Might want to rename? + ImRect NavScoringRect; // Rectangle used for scoring, in screen space. Based of window->NavRectRel[], modified for directional navigation scoring. + ImRect NavScoringNoClipRect; // Some nav operations (such as PageUp/PageDown) enforce a region which clipper will attempt to always keep submitted + int NavScoringDebugCount; // Metrics for debugging + int NavTabbingDir; // Generally -1 or +1, 0 when tabbing without a nav id + int NavTabbingCounter; // >0 when counting items for tabbing + ImGuiNavItemData NavMoveResultLocal; // Best move request candidate within NavWindow + ImGuiNavItemData NavMoveResultLocalVisible; // Best move request candidate within NavWindow that are mostly visible (when using ImGuiNavMoveFlags_AlsoScoreVisibleSet flag) + ImGuiNavItemData NavMoveResultOther; // Best move request candidate within NavWindow's flattened hierarchy (when using ImGuiWindowFlags_NavFlattened flag) + ImGuiNavItemData NavTabbingResultFirst; // First tabbing request candidate within NavWindow and flattened hierarchy + + // Navigation: Windowing (CTRL+TAB for list, or Menu button + keys or directional pads to move/resize) + ImGuiKeyChord ConfigNavWindowingKeyNext; // = ImGuiMod_Ctrl | ImGuiKey_Tab, for reconfiguration (see #4828) + ImGuiKeyChord ConfigNavWindowingKeyPrev; // = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab + ImGuiWindow* NavWindowingTarget; // Target window when doing CTRL+Tab (or Pad Menu + FocusPrev/Next), this window is temporarily displayed top-most! + ImGuiWindow* NavWindowingTargetAnim; // Record of last valid NavWindowingTarget until DimBgRatio and NavWindowingHighlightAlpha becomes 0.0f, so the fade-out can stay on it. + ImGuiWindow* NavWindowingListWindow; // Internal window actually listing the CTRL+Tab contents + float NavWindowingTimer; + float NavWindowingHighlightAlpha; + bool NavWindowingToggleLayer; + ImVec2 NavWindowingAccumDeltaPos; + ImVec2 NavWindowingAccumDeltaSize; + + // Render + float DimBgRatio; // 0.0..1.0 animation when fading in a dimming background (for modal window and CTRL+TAB list) + + // Drag and Drop + bool DragDropActive; + bool DragDropWithinSource; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag source. + bool DragDropWithinTarget; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag target. + ImGuiDragDropFlags DragDropSourceFlags; + int DragDropSourceFrameCount; + int DragDropMouseButton; + ImGuiPayload DragDropPayload; + ImRect DragDropTargetRect; // Store rectangle of current target candidate (we favor small targets when overlapping) + ImGuiID DragDropTargetId; + ImGuiDragDropFlags DragDropAcceptFlags; + float DragDropAcceptIdCurrRectSurface; // Target item surface (we resolve overlapping targets by prioritizing the smaller surface) + ImGuiID DragDropAcceptIdCurr; // Target item id (set at the time of accepting the payload) + ImGuiID DragDropAcceptIdPrev; // Target item id from previous frame (we need to store this to allow for overlapping drag and drop targets) + int DragDropAcceptFrameCount; // Last time a target expressed a desire to accept the source + ImGuiID DragDropHoldJustPressedId; // Set when holding a payload just made ButtonBehavior() return a press. + ImVector DragDropPayloadBufHeap; // We don't expose the ImVector<> directly, ImGuiPayload only holds pointer+size + unsigned char DragDropPayloadBufLocal[16]; // Local buffer for small payloads + + // Clipper + int ClipperTempDataStacked; + ImVector ClipperTempData; + + // Tables + ImGuiTable* CurrentTable; + int TablesTempDataStacked; // Temporary table data size (because we leave previous instances undestructed, we generally don't use TablesTempData.Size) + ImVector TablesTempData; // Temporary table data (buffers reused/shared across instances, support nesting) + ImPool Tables; // Persistent table data + ImVector TablesLastTimeActive; // Last used timestamp of each tables (SOA, for efficient GC) + ImVector DrawChannelsTempMergeBuffer; + + // Tab bars + ImGuiTabBar* CurrentTabBar; + ImPool TabBars; + ImVector CurrentTabBarStack; + ImVector ShrinkWidthBuffer; + + // Hover Delay system + ImGuiID HoverItemDelayId; + ImGuiID HoverItemDelayIdPreviousFrame; + float HoverItemDelayTimer; // Currently used by IsItemHovered() + float HoverItemDelayClearTimer; // Currently used by IsItemHovered(): grace time before g.TooltipHoverTimer gets cleared. + ImGuiID HoverItemUnlockedStationaryId; // Mouse has once been stationary on this item. Only reset after departing the item. + ImGuiID HoverWindowUnlockedStationaryId; // Mouse has once been stationary on this window. Only reset after departing the window. + + // Mouse state + ImGuiMouseCursor MouseCursor; + float MouseStationaryTimer; // Time the mouse has been stationary (with some loose heuristic) + ImVec2 MouseLastValidPos; + + // Widget state + ImGuiInputTextState InputTextState; + ImGuiInputTextDeactivatedState InputTextDeactivatedState; + ImFont InputTextPasswordFont; + ImGuiID TempInputId; // Temporary text input when CTRL+clicking on a slider, etc. + ImGuiColorEditFlags ColorEditOptions; // Store user options for color edit widgets + ImGuiID ColorEditCurrentID; // Set temporarily while inside of the parent-most ColorEdit4/ColorPicker4 (because they call each others). + ImGuiID ColorEditSavedID; // ID we are saving/restoring HS for + float ColorEditSavedHue; // Backup of last Hue associated to LastColor, so we can restore Hue in lossy RGB<>HSV round trips + float ColorEditSavedSat; // Backup of last Saturation associated to LastColor, so we can restore Saturation in lossy RGB<>HSV round trips + ImU32 ColorEditSavedColor; // RGB value with alpha set to 0. + ImVec4 ColorPickerRef; // Initial/reference color at the time of opening the color picker. + ImGuiComboPreviewData ComboPreviewData; + float SliderGrabClickOffset; + float SliderCurrentAccum; // Accumulated slider delta when using navigation controls. + bool SliderCurrentAccumDirty; // Has the accumulated slider delta changed since last time we tried to apply it? + bool DragCurrentAccumDirty; + float DragCurrentAccum; // Accumulator for dragging modification. Always high-precision, not rounded by end-user precision settings + float DragSpeedDefaultRatio; // If speed == 0.0f, uses (max-min) * DragSpeedDefaultRatio + float ScrollbarClickDeltaToGrabCenter; // Distance between mouse and center of grab box, normalized in parent space. Use storage? + float DisabledAlphaBackup; // Backup for style.Alpha for BeginDisabled() + short DisabledStackSize; + short LockMarkEdited; + short TooltipOverrideCount; + ImVector ClipboardHandlerData; // If no custom clipboard handler is defined + ImVector MenusIdSubmittedThisFrame; // A list of menu IDs that were rendered at least once + ImGuiTypingSelectState TypingSelectState; // State for GetTypingSelectRequest() + + // Platform support + ImGuiPlatformImeData PlatformImeData; // Data updated by current frame + ImGuiPlatformImeData PlatformImeDataPrev; // Previous frame data (when changing we will call io.SetPlatformImeDataFn + ImGuiID PlatformImeViewport; + + // Extensions + // FIXME: We could provide an API to register one slot in an array held in ImGuiContext? + ImGuiDockContext DockContext; + void (*DockNodeWindowMenuHandler)(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar); + + // Settings + bool SettingsLoaded; + float SettingsDirtyTimer; // Save .ini Settings to memory when time reaches zero + ImGuiTextBuffer SettingsIniData; // In memory .ini settings + ImVector SettingsHandlers; // List of .ini settings handlers + ImChunkStream SettingsWindows; // ImGuiWindow .ini settings entries + ImChunkStream SettingsTables; // ImGuiTable .ini settings entries + ImVector Hooks; // Hooks for extensions (e.g. test engine) + ImGuiID HookIdNext; // Next available HookId + + // Localization + const char* LocalizationTable[ImGuiLocKey_COUNT]; + + // Capture/Logging + bool LogEnabled; // Currently capturing + ImGuiLogType LogType; // Capture target + ImFileHandle LogFile; // If != NULL log to stdout/ file + ImGuiTextBuffer LogBuffer; // Accumulation buffer when log to clipboard. This is pointer so our GImGui static constructor doesn't call heap allocators. + const char* LogNextPrefix; + const char* LogNextSuffix; + float LogLinePosY; + bool LogLineFirstItem; + int LogDepthRef; + int LogDepthToExpand; + int LogDepthToExpandDefault; // Default/stored value for LogDepthMaxExpand if not specified in the LogXXX function call. + + // Debug Tools + ImGuiDebugLogFlags DebugLogFlags; + ImGuiTextBuffer DebugLogBuf; + ImGuiTextIndex DebugLogIndex; + ImU8 DebugLogClipperAutoDisableFrames; + ImU8 DebugLocateFrames; // For DebugLocateItemOnHover(). This is used together with DebugLocateId which is in a hot/cached spot above. + ImS8 DebugBeginReturnValueCullDepth; // Cycle between 0..9 then wrap around. + bool DebugItemPickerActive; // Item picker is active (started with DebugStartItemPicker()) + ImU8 DebugItemPickerMouseButton; + ImGuiID DebugItemPickerBreakId; // Will call IM_DEBUG_BREAK() when encountering this ID + ImGuiMetricsConfig DebugMetricsConfig; + ImGuiIDStackTool DebugIDStackTool; + ImGuiDebugAllocInfo DebugAllocInfo; + ImGuiDockNode* DebugHoveredDockNode; // Hovered dock node. + + // Misc + float FramerateSecPerFrame[60]; // Calculate estimate of framerate for user over the last 60 frames.. + int FramerateSecPerFrameIdx; + int FramerateSecPerFrameCount; + float FramerateSecPerFrameAccum; + int WantCaptureMouseNextFrame; // Explicit capture override via SetNextFrameWantCaptureMouse()/SetNextFrameWantCaptureKeyboard(). Default to -1. + int WantCaptureKeyboardNextFrame; // " + int WantTextInputNextFrame; + ImVector TempBuffer; // Temporary text buffer + + ImGuiContext(ImFontAtlas* shared_font_atlas) + { + IO.Ctx = this; + InputTextState.Ctx = this; + + Initialized = false; + ConfigFlagsCurrFrame = ConfigFlagsLastFrame = ImGuiConfigFlags_None; + FontAtlasOwnedByContext = shared_font_atlas ? false : true; + Font = NULL; + FontSize = FontBaseSize = 0.0f; + IO.Fonts = shared_font_atlas ? shared_font_atlas : IM_NEW(ImFontAtlas)(); + Time = 0.0f; + FrameCount = 0; + FrameCountEnded = FrameCountPlatformEnded = FrameCountRendered = -1; + WithinFrameScope = WithinFrameScopeWithImplicitWindow = WithinEndChild = false; + GcCompactAll = false; + TestEngineHookItems = false; + TestEngine = NULL; + + InputEventsNextMouseSource = ImGuiMouseSource_Mouse; + InputEventsNextEventId = 1; + + WindowsActiveCount = 0; + CurrentWindow = NULL; + HoveredWindow = NULL; + HoveredWindowUnderMovingWindow = NULL; + MovingWindow = NULL; + WheelingWindow = NULL; + WheelingWindowStartFrame = -1; + WheelingWindowReleaseTimer = 0.0f; + + DebugHookIdInfo = 0; + HoveredId = HoveredIdPreviousFrame = 0; + HoveredIdAllowOverlap = false; + HoveredIdDisabled = false; + HoveredIdTimer = HoveredIdNotActiveTimer = 0.0f; + ActiveId = 0; + ActiveIdIsAlive = 0; + ActiveIdTimer = 0.0f; + ActiveIdIsJustActivated = false; + ActiveIdAllowOverlap = false; + ActiveIdNoClearOnFocusLoss = false; + ActiveIdHasBeenPressedBefore = false; + ActiveIdHasBeenEditedBefore = false; + ActiveIdHasBeenEditedThisFrame = false; + ActiveIdClickOffset = ImVec2(-1, -1); + ActiveIdWindow = NULL; + ActiveIdSource = ImGuiInputSource_None; + ActiveIdMouseButton = -1; + ActiveIdPreviousFrame = 0; + ActiveIdPreviousFrameIsAlive = false; + ActiveIdPreviousFrameHasBeenEditedBefore = false; + ActiveIdPreviousFrameWindow = NULL; + LastActiveId = 0; + LastActiveIdTimer = 0.0f; + + ActiveIdUsingNavDirMask = 0x00; + ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ActiveIdUsingNavInputMask = 0x00; +#endif + + CurrentFocusScopeId = 0; + CurrentItemFlags = ImGuiItemFlags_None; + DebugShowGroupRects = false; + BeginMenuCount = 0; + + CurrentDpiScale = 0.0f; + CurrentViewport = NULL; + MouseViewport = MouseLastHoveredViewport = NULL; + PlatformLastFocusedViewportId = 0; + ViewportCreatedCount = PlatformWindowsCreatedCount = 0; + ViewportFocusedStampCount = 0; + + NavWindow = NULL; + NavId = NavFocusScopeId = NavActivateId = NavActivateDownId = NavActivatePressedId = 0; + NavJustMovedToId = NavJustMovedToFocusScopeId = NavNextActivateId = 0; + NavActivateFlags = NavNextActivateFlags = ImGuiActivateFlags_None; + NavJustMovedToKeyMods = ImGuiMod_None; + NavInputSource = ImGuiInputSource_Keyboard; + NavLayer = ImGuiNavLayer_Main; + NavLastValidSelectionUserData = ImGuiSelectionUserData_Invalid; + NavIdIsAlive = false; + NavMousePosDirty = false; + NavDisableHighlight = true; + NavDisableMouseHover = false; + NavAnyRequest = false; + NavInitRequest = false; + NavInitRequestFromMove = false; + NavMoveSubmitted = false; + NavMoveScoringItems = false; + NavMoveForwardToNextFrame = false; + NavMoveFlags = ImGuiNavMoveFlags_None; + NavMoveScrollFlags = ImGuiScrollFlags_None; + NavMoveKeyMods = ImGuiMod_None; + NavMoveDir = NavMoveDirForDebug = NavMoveClipDir = ImGuiDir_None; + NavScoringDebugCount = 0; + NavTabbingDir = 0; + NavTabbingCounter = 0; + + ConfigNavWindowingKeyNext = ImGuiMod_Ctrl | ImGuiKey_Tab; + ConfigNavWindowingKeyPrev = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab; + NavWindowingTarget = NavWindowingTargetAnim = NavWindowingListWindow = NULL; + NavWindowingTimer = NavWindowingHighlightAlpha = 0.0f; + NavWindowingToggleLayer = false; + + DimBgRatio = 0.0f; + + DragDropActive = DragDropWithinSource = DragDropWithinTarget = false; + DragDropSourceFlags = ImGuiDragDropFlags_None; + DragDropSourceFrameCount = -1; + DragDropMouseButton = -1; + DragDropTargetId = 0; + DragDropAcceptFlags = ImGuiDragDropFlags_None; + DragDropAcceptIdCurrRectSurface = 0.0f; + DragDropAcceptIdPrev = DragDropAcceptIdCurr = 0; + DragDropAcceptFrameCount = -1; + DragDropHoldJustPressedId = 0; + memset(DragDropPayloadBufLocal, 0, sizeof(DragDropPayloadBufLocal)); + + ClipperTempDataStacked = 0; + + CurrentTable = NULL; + TablesTempDataStacked = 0; + CurrentTabBar = NULL; + + HoverItemDelayId = HoverItemDelayIdPreviousFrame = HoverItemUnlockedStationaryId = HoverWindowUnlockedStationaryId = 0; + HoverItemDelayTimer = HoverItemDelayClearTimer = 0.0f; + + MouseCursor = ImGuiMouseCursor_Arrow; + MouseStationaryTimer = 0.0f; + + TempInputId = 0; + ColorEditOptions = ImGuiColorEditFlags_DefaultOptions_; + ColorEditCurrentID = ColorEditSavedID = 0; + ColorEditSavedHue = ColorEditSavedSat = 0.0f; + ColorEditSavedColor = 0; + SliderGrabClickOffset = 0.0f; + SliderCurrentAccum = 0.0f; + SliderCurrentAccumDirty = false; + DragCurrentAccumDirty = false; + DragCurrentAccum = 0.0f; + DragSpeedDefaultRatio = 1.0f / 100.0f; + ScrollbarClickDeltaToGrabCenter = 0.0f; + DisabledAlphaBackup = 0.0f; + DisabledStackSize = 0; + LockMarkEdited = 0; + TooltipOverrideCount = 0; + + PlatformImeData.InputPos = ImVec2(0.0f, 0.0f); + PlatformImeDataPrev.InputPos = ImVec2(-1.0f, -1.0f); // Different to ensure initial submission + PlatformImeViewport = 0; + + DockNodeWindowMenuHandler = NULL; + + SettingsLoaded = false; + SettingsDirtyTimer = 0.0f; + HookIdNext = 0; + + memset(LocalizationTable, 0, sizeof(LocalizationTable)); + + LogEnabled = false; + LogType = ImGuiLogType_None; + LogNextPrefix = LogNextSuffix = NULL; + LogFile = NULL; + LogLinePosY = FLT_MAX; + LogLineFirstItem = false; + LogDepthRef = 0; + LogDepthToExpand = LogDepthToExpandDefault = 2; + + DebugLogFlags = ImGuiDebugLogFlags_OutputToTTY; + DebugLocateId = 0; + DebugLogClipperAutoDisableFrames = 0; + DebugLocateFrames = 0; + DebugBeginReturnValueCullDepth = -1; + DebugItemPickerActive = false; + DebugItemPickerMouseButton = ImGuiMouseButton_Left; + DebugItemPickerBreakId = 0; + DebugHoveredDockNode = NULL; + + memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame)); + FramerateSecPerFrameIdx = FramerateSecPerFrameCount = 0; + FramerateSecPerFrameAccum = 0.0f; + WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1; + } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiWindowTempData, ImGuiWindow +//----------------------------------------------------------------------------- + +// Transient per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the DC variable name in ImGuiWindow. +// (That's theory, in practice the delimitation between ImGuiWindow and ImGuiWindowTempData is quite tenuous and could be reconsidered..) +// (This doesn't need a constructor because we zero-clear it as part of ImGuiWindow and all frame-temporary data are setup on Begin) +struct IMGUI_API ImGuiWindowTempData +{ + // Layout + ImVec2 CursorPos; // Current emitting position, in absolute coordinates. + ImVec2 CursorPosPrevLine; + ImVec2 CursorStartPos; // Initial position after Begin(), generally ~ window position + WindowPadding. + ImVec2 CursorMaxPos; // Used to implicitly calculate ContentSize at the beginning of next frame, for scrolling range and auto-resize. Always growing during the frame. + ImVec2 IdealMaxPos; // Used to implicitly calculate ContentSizeIdeal at the beginning of next frame, for auto-resize only. Always growing during the frame. + ImVec2 CurrLineSize; + ImVec2 PrevLineSize; + float CurrLineTextBaseOffset; // Baseline offset (0.0f by default on a new line, generally == style.FramePadding.y when a framed item has been added). + float PrevLineTextBaseOffset; + bool IsSameLine; + bool IsSetPos; + ImVec1 Indent; // Indentation / start position from left of window (increased by TreePush/TreePop, etc.) + ImVec1 ColumnsOffset; // Offset to the current column (if ColumnsCurrent > 0). FIXME: This and the above should be a stack to allow use cases like Tree->Column->Tree. Need revamp columns API. + ImVec1 GroupOffset; + ImVec2 CursorStartPosLossyness;// Record the loss of precision of CursorStartPos due to really large scrolling amount. This is used by clipper to compensate and fix the most common use case of large scroll area. + + // Keyboard/Gamepad navigation + ImGuiNavLayer NavLayerCurrent; // Current layer, 0..31 (we currently only use 0..1) + short NavLayersActiveMask; // Which layers have been written to (result from previous frame) + short NavLayersActiveMaskNext;// Which layers have been written to (accumulator for current frame) + bool NavIsScrollPushableX; // Set when current work location may be scrolled horizontally when moving left / right. This is generally always true UNLESS within a column. + bool NavHideHighlightOneFrame; + bool NavWindowHasScrollY; // Set per window when scrolling can be used (== ScrollMax.y > 0.0f) + + // Miscellaneous + bool MenuBarAppending; // FIXME: Remove this + ImVec2 MenuBarOffset; // MenuBarOffset.x is sort of equivalent of a per-layer CursorPos.x, saved/restored as we switch to the menu bar. The only situation when MenuBarOffset.y is > 0 if when (SafeAreaPadding.y > FramePadding.y), often used on TVs. + ImGuiMenuColumns MenuColumns; // Simplified columns storage for menu items measurement + int TreeDepth; // Current tree depth. + ImU32 TreeJumpToParentOnPopMask; // Store a copy of !g.NavIdIsAlive for TreeDepth 0..31.. Could be turned into a ImU64 if necessary. + ImVector ChildWindows; + ImGuiStorage* StateStorage; // Current persistent per-window storage (store e.g. tree node open/close state) + ImGuiOldColumns* CurrentColumns; // Current columns set + int CurrentTableIdx; // Current table index (into g.Tables) + ImGuiLayoutType LayoutType; + ImGuiLayoutType ParentLayoutType; // Layout type of parent window at the time of Begin() + + // Local parameters stacks + // We store the current settings outside of the vectors to increase memory locality (reduce cache misses). The vectors are rarely modified. Also it allows us to not heap allocate for short-lived windows which are not using those settings. + float ItemWidth; // Current item width (>0.0: width in pixels, <0.0: align xx pixels to the right of window). + float TextWrapPos; // Current text wrap pos. + ImVector ItemWidthStack; // Store item widths to restore (attention: .back() is not == ItemWidth) + ImVector TextWrapPosStack; // Store text wrap pos to restore (attention: .back() is not == TextWrapPos) +}; + +// Storage for one window +struct IMGUI_API ImGuiWindow +{ + ImGuiContext* Ctx; // Parent UI context (needs to be set explicitly by parent). + char* Name; // Window name, owned by the window. + ImGuiID ID; // == ImHashStr(Name) + ImGuiWindowFlags Flags, FlagsPreviousFrame; // See enum ImGuiWindowFlags_ + ImGuiWindowClass WindowClass; // Advanced users only. Set with SetNextWindowClass() + ImGuiViewportP* Viewport; // Always set in Begin(). Inactive windows may have a NULL value here if their viewport was discarded. + ImGuiID ViewportId; // We backup the viewport id (since the viewport may disappear or never be created if the window is inactive) + ImVec2 ViewportPos; // We backup the viewport position (since the viewport may disappear or never be created if the window is inactive) + int ViewportAllowPlatformMonitorExtend; // Reset to -1 every frame (index is guaranteed to be valid between NewFrame..EndFrame), only used in the Appearing frame of a tooltip/popup to enforce clamping to a given monitor + ImVec2 Pos; // Position (always rounded-up to nearest pixel) + ImVec2 Size; // Current size (==SizeFull or collapsed title bar size) + ImVec2 SizeFull; // Size when non collapsed + ImVec2 ContentSize; // Size of contents/scrollable client area (calculated from the extents reach of the cursor) from previous frame. Does not include window decoration or window padding. + ImVec2 ContentSizeIdeal; + ImVec2 ContentSizeExplicit; // Size of contents/scrollable client area explicitly request by the user via SetNextWindowContentSize(). + ImVec2 WindowPadding; // Window padding at the time of Begin(). + float WindowRounding; // Window rounding at the time of Begin(). May be clamped lower to avoid rendering artifacts with title bar, menu bar etc. + float WindowBorderSize; // Window border size at the time of Begin(). + float DecoOuterSizeX1, DecoOuterSizeY1; // Left/Up offsets. Sum of non-scrolling outer decorations (X1 generally == 0.0f. Y1 generally = TitleBarHeight + MenuBarHeight). Locked during Begin(). + float DecoOuterSizeX2, DecoOuterSizeY2; // Right/Down offsets (X2 generally == ScrollbarSize.x, Y2 == ScrollbarSizes.y). + float DecoInnerSizeX1, DecoInnerSizeY1; // Applied AFTER/OVER InnerRect. Specialized for Tables as they use specialized form of clipping and frozen rows/columns are inside InnerRect (and not part of regular decoration sizes). + int NameBufLen; // Size of buffer storing Name. May be larger than strlen(Name)! + ImGuiID MoveId; // == window->GetID("#MOVE") + ImGuiID TabId; // == window->GetID("#TAB") + ImGuiID ChildId; // ID of corresponding item in parent window (for navigation to return from child window to parent window) + ImVec2 Scroll; + ImVec2 ScrollMax; + ImVec2 ScrollTarget; // target scroll position. stored as cursor position with scrolling canceled out, so the highest point is always 0.0f. (FLT_MAX for no change) + ImVec2 ScrollTargetCenterRatio; // 0.0f = scroll so that target position is at top, 0.5f = scroll so that target position is centered + ImVec2 ScrollTargetEdgeSnapDist; // 0.0f = no snapping, >0.0f snapping threshold + ImVec2 ScrollbarSizes; // Size taken by each scrollbars on their smaller axis. Pay attention! ScrollbarSizes.x == width of the vertical scrollbar, ScrollbarSizes.y = height of the horizontal scrollbar. + bool ScrollbarX, ScrollbarY; // Are scrollbars visible? + bool ViewportOwned; + bool Active; // Set to true on Begin(), unless Collapsed + bool WasActive; + bool WriteAccessed; // Set to true when any widget access the current window + bool Collapsed; // Set when collapsing window to become only title-bar + bool WantCollapseToggle; + bool SkipItems; // Set when items can safely be all clipped (e.g. window not visible or collapsed) + bool Appearing; // Set during the frame where the window is appearing (or re-appearing) + bool Hidden; // Do not display (== HiddenFrames*** > 0) + bool IsFallbackWindow; // Set on the "Debug##Default" window. + bool IsExplicitChild; // Set when passed _ChildWindow, left to false by BeginDocked() + bool HasCloseButton; // Set when the window has a close button (p_open != NULL) + signed char ResizeBorderHeld; // Current border being held for resize (-1: none, otherwise 0-3) + short BeginCount; // Number of Begin() during the current frame (generally 0 or 1, 1+ if appending via multiple Begin/End pairs) + short BeginCountPreviousFrame; // Number of Begin() during the previous frame + short BeginOrderWithinParent; // Begin() order within immediate parent window, if we are a child window. Otherwise 0. + short BeginOrderWithinContext; // Begin() order within entire imgui context. This is mostly used for debugging submission order related issues. + short FocusOrder; // Order within WindowsFocusOrder[], altered when windows are focused. + ImGuiID PopupId; // ID in the popup stack when this window is used as a popup/menu (because we use generic Name/ID for recycling) + ImS8 AutoFitFramesX, AutoFitFramesY; + bool AutoFitOnlyGrows; + ImGuiDir AutoPosLastDirection; + ImS8 HiddenFramesCanSkipItems; // Hide the window for N frames + ImS8 HiddenFramesCannotSkipItems; // Hide the window for N frames while allowing items to be submitted so we can measure their size + ImS8 HiddenFramesForRenderOnly; // Hide the window until frame N at Render() time only + ImS8 DisableInputsFrames; // Disable window interactions for N frames + ImGuiCond SetWindowPosAllowFlags : 8; // store acceptable condition flags for SetNextWindowPos() use. + ImGuiCond SetWindowSizeAllowFlags : 8; // store acceptable condition flags for SetNextWindowSize() use. + ImGuiCond SetWindowCollapsedAllowFlags : 8; // store acceptable condition flags for SetNextWindowCollapsed() use. + ImGuiCond SetWindowDockAllowFlags : 8; // store acceptable condition flags for SetNextWindowDock() use. + ImVec2 SetWindowPosVal; // store window position when using a non-zero Pivot (position set needs to be processed when we know the window size) + ImVec2 SetWindowPosPivot; // store window pivot for positioning. ImVec2(0, 0) when positioning from top-left corner; ImVec2(0.5f, 0.5f) for centering; ImVec2(1, 1) for bottom right. + + ImVector IDStack; // ID stack. ID are hashes seeded with the value at the top of the stack. (In theory this should be in the TempData structure) + ImGuiWindowTempData DC; // Temporary per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the "DC" variable name. + + // The best way to understand what those rectangles are is to use the 'Metrics->Tools->Show Windows Rectangles' viewer. + // The main 'OuterRect', omitted as a field, is window->Rect(). + ImRect OuterRectClipped; // == Window->Rect() just after setup in Begin(). == window->Rect() for root window. + ImRect InnerRect; // Inner rectangle (omit title bar, menu bar, scroll bar) + ImRect InnerClipRect; // == InnerRect shrunk by WindowPadding*0.5f on each side, clipped within viewport or parent clip rect. + ImRect WorkRect; // Initially covers the whole scrolling region. Reduced by containers e.g columns/tables when active. Shrunk by WindowPadding*1.0f on each side. This is meant to replace ContentRegionRect over time (from 1.71+ onward). + ImRect ParentWorkRect; // Backup of WorkRect before entering a container such as columns/tables. Used by e.g. SpanAllColumns functions to easily access. Stacked containers are responsible for maintaining this. // FIXME-WORKRECT: Could be a stack? + ImRect ClipRect; // Current clipping/scissoring rectangle, evolve as we are using PushClipRect(), etc. == DrawList->clip_rect_stack.back(). + ImRect ContentRegionRect; // FIXME: This is currently confusing/misleading. It is essentially WorkRect but not handling of scrolling. We currently rely on it as right/bottom aligned sizing operation need some size to rely on. + ImVec2ih HitTestHoleSize; // Define an optional rectangular hole where mouse will pass-through the window. + ImVec2ih HitTestHoleOffset; + + int LastFrameActive; // Last frame number the window was Active. + int LastFrameJustFocused; // Last frame number the window was made Focused. + float LastTimeActive; // Last timestamp the window was Active (using float as we don't need high precision there) + float ItemWidthDefault; + ImGuiStorage StateStorage; + ImVector ColumnsStorage; + float FontWindowScale; // User scale multiplier per-window, via SetWindowFontScale() + float FontDpiScale; + int SettingsOffset; // Offset into SettingsWindows[] (offsets are always valid as we only grow the array from the back) + + ImDrawList* DrawList; // == &DrawListInst (for backward compatibility reason with code using imgui_internal.h we keep this a pointer) + ImDrawList DrawListInst; + ImGuiWindow* ParentWindow; // If we are a child _or_ popup _or_ docked window, this is pointing to our parent. Otherwise NULL. + ImGuiWindow* ParentWindowInBeginStack; + ImGuiWindow* RootWindow; // Point to ourself or first ancestor that is not a child window. Doesn't cross through popups/dock nodes. + ImGuiWindow* RootWindowPopupTree; // Point to ourself or first ancestor that is not a child window. Cross through popups parent<>child. + ImGuiWindow* RootWindowDockTree; // Point to ourself or first ancestor that is not a child window. Cross through dock nodes. + ImGuiWindow* RootWindowForTitleBarHighlight; // Point to ourself or first ancestor which will display TitleBgActive color when this window is active. + ImGuiWindow* RootWindowForNav; // Point to ourself or first ancestor which doesn't have the NavFlattened flag. + + ImGuiWindow* NavLastChildNavWindow; // When going to the menu bar, we remember the child window we came from. (This could probably be made implicit if we kept g.Windows sorted by last focused including child window.) + ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; // Last known NavId for this window, per layer (0/1) + ImRect NavRectRel[ImGuiNavLayer_COUNT]; // Reference rectangle, in window relative space + ImVec2 NavPreferredScoringPosRel[ImGuiNavLayer_COUNT]; // Preferred X/Y position updated when moving on a given axis, reset to FLT_MAX. + ImGuiID NavRootFocusScopeId; // Focus Scope ID at the time of Begin() + + int MemoryDrawListIdxCapacity; // Backup of last idx/vtx count, so when waking up the window we can preallocate and avoid iterative alloc/copy + int MemoryDrawListVtxCapacity; + bool MemoryCompacted; // Set when window extraneous data have been garbage collected + + // Docking + bool DockIsActive :1; // When docking artifacts are actually visible. When this is set, DockNode is guaranteed to be != NULL. ~~ (DockNode != NULL) && (DockNode->Windows.Size > 1). + bool DockNodeIsVisible :1; + bool DockTabIsVisible :1; // Is our window visible this frame? ~~ is the corresponding tab selected? + bool DockTabWantClose :1; + short DockOrder; // Order of the last time the window was visible within its DockNode. This is used to reorder windows that are reappearing on the same frame. Same value between windows that were active and windows that were none are possible. + ImGuiWindowDockStyle DockStyle; + ImGuiDockNode* DockNode; // Which node are we docked into. Important: Prefer testing DockIsActive in many cases as this will still be set when the dock node is hidden. + ImGuiDockNode* DockNodeAsHost; // Which node are we owning (for parent windows) + ImGuiID DockId; // Backup of last valid DockNode->ID, so single window remember their dock node id even when they are not bound any more + ImGuiItemStatusFlags DockTabItemStatusFlags; + ImRect DockTabItemRect; + +public: + ImGuiWindow(ImGuiContext* context, const char* name); + ~ImGuiWindow(); + + ImGuiID GetID(const char* str, const char* str_end = NULL); + ImGuiID GetID(const void* ptr); + ImGuiID GetID(int n); + ImGuiID GetIDFromRectangle(const ImRect& r_abs); + + // We don't use g.FontSize because the window may be != g.CurrentWindow. + ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + float CalcFontSize() const { ImGuiContext& g = *Ctx; float scale = g.FontBaseSize * FontWindowScale * FontDpiScale; if (ParentWindow) scale *= ParentWindow->FontWindowScale; return scale; } + float TitleBarHeight() const { ImGuiContext& g = *Ctx; return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + g.Style.FramePadding.y * 2.0f; } + ImRect TitleBarRect() const { return ImRect(Pos, ImVec2(Pos.x + SizeFull.x, Pos.y + TitleBarHeight())); } + float MenuBarHeight() const { ImGuiContext& g = *Ctx; return (Flags & ImGuiWindowFlags_MenuBar) ? DC.MenuBarOffset.y + CalcFontSize() + g.Style.FramePadding.y * 2.0f : 0.0f; } + ImRect MenuBarRect() const { float y1 = Pos.y + TitleBarHeight(); return ImRect(Pos.x, y1, Pos.x + SizeFull.x, y1 + MenuBarHeight()); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Tab bar, Tab item support +//----------------------------------------------------------------------------- + +// Extend ImGuiTabBarFlags_ +enum ImGuiTabBarFlagsPrivate_ +{ + ImGuiTabBarFlags_DockNode = 1 << 20, // Part of a dock node [we don't use this in the master branch but it facilitate branch syncing to keep this around] + ImGuiTabBarFlags_IsFocused = 1 << 21, + ImGuiTabBarFlags_SaveSettings = 1 << 22, // FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs +}; + +// Extend ImGuiTabItemFlags_ +enum ImGuiTabItemFlagsPrivate_ +{ + ImGuiTabItemFlags_SectionMask_ = ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing, + ImGuiTabItemFlags_NoCloseButton = 1 << 20, // Track whether p_open was set or not (we'll need this info on the next frame to recompute ContentWidth during layout) + ImGuiTabItemFlags_Button = 1 << 21, // Used by TabItemButton, change the tab item behavior to mimic a button + ImGuiTabItemFlags_Unsorted = 1 << 22, // [Docking] Trailing tabs with the _Unsorted flag will be sorted based on the DockOrder of their Window. +}; + +// Storage for one active tab item (sizeof() 48 bytes) +struct ImGuiTabItem +{ + ImGuiID ID; + ImGuiTabItemFlags Flags; + ImGuiWindow* Window; // When TabItem is part of a DockNode's TabBar, we hold on to a window. + int LastFrameVisible; + int LastFrameSelected; // This allows us to infer an ordered list of the last activated tabs with little maintenance + float Offset; // Position relative to beginning of tab + float Width; // Width currently displayed + float ContentWidth; // Width of label, stored during BeginTabItem() call + float RequestedWidth; // Width optionally requested by caller, -1.0f is unused + ImS32 NameOffset; // When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames + ImS16 BeginOrder; // BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable + ImS16 IndexDuringLayout; // Index only used during TabBarLayout(). Tabs gets reordered so 'Tabs[n].IndexDuringLayout == n' but may mismatch during additions. + bool WantClose; // Marked as closed by SetTabItemClosed() + + ImGuiTabItem() { memset(this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; RequestedWidth = -1.0f; NameOffset = -1; BeginOrder = IndexDuringLayout = -1; } +}; + +// Storage for a tab bar (sizeof() 152 bytes) +struct IMGUI_API ImGuiTabBar +{ + ImVector Tabs; + ImGuiTabBarFlags Flags; + ImGuiID ID; // Zero for tab-bars used by docking + ImGuiID SelectedTabId; // Selected tab/window + ImGuiID NextSelectedTabId; // Next selected tab/window. Will also trigger a scrolling animation + ImGuiID VisibleTabId; // Can occasionally be != SelectedTabId (e.g. when previewing contents for CTRL+TAB preview) + int CurrFrameVisible; + int PrevFrameVisible; + ImRect BarRect; + float CurrTabsContentsHeight; + float PrevTabsContentsHeight; // Record the height of contents submitted below the tab bar + float WidthAllTabs; // Actual width of all tabs (locked during layout) + float WidthAllTabsIdeal; // Ideal width if all tabs were visible and not clipped + float ScrollingAnim; + float ScrollingTarget; + float ScrollingTargetDistToVisibility; + float ScrollingSpeed; + float ScrollingRectMinX; + float ScrollingRectMaxX; + float SeparatorMinX; + float SeparatorMaxX; + ImGuiID ReorderRequestTabId; + ImS16 ReorderRequestOffset; + ImS8 BeginCount; + bool WantLayout; + bool VisibleTabWasSubmitted; + bool TabsAddedNew; // Set to true when a new tab item or button has been added to the tab bar during last frame + ImS16 TabsActiveCount; // Number of tabs submitted this frame. + ImS16 LastTabItemIdx; // Index of last BeginTabItem() tab for use by EndTabItem() + float ItemSpacingY; + ImVec2 FramePadding; // style.FramePadding locked at the time of BeginTabBar() + ImVec2 BackupCursorPos; + ImGuiTextBuffer TabsNames; // For non-docking tab bar we re-append names in a contiguous buffer. + + ImGuiTabBar(); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Table support +//----------------------------------------------------------------------------- + +#define IM_COL32_DISABLE IM_COL32(0,0,0,1) // Special sentinel code which cannot be used as a regular color. +#define IMGUI_TABLE_MAX_COLUMNS 512 // May be further lifted + +// Our current column maximum is 64 but we may raise that in the future. +typedef ImS16 ImGuiTableColumnIdx; +typedef ImU16 ImGuiTableDrawChannelIdx; + +// [Internal] sizeof() ~ 112 +// We use the terminology "Enabled" to refer to a column that is not Hidden by user/api. +// We use the terminology "Clipped" to refer to a column that is out of sight because of scrolling/clipping. +// This is in contrast with some user-facing api such as IsItemVisible() / IsRectVisible() which use "Visible" to mean "not clipped". +struct ImGuiTableColumn +{ + ImGuiTableColumnFlags Flags; // Flags after some patching (not directly same as provided by user). See ImGuiTableColumnFlags_ + float WidthGiven; // Final/actual width visible == (MaxX - MinX), locked in TableUpdateLayout(). May be > WidthRequest to honor minimum width, may be < WidthRequest to honor shrinking columns down in tight space. + float MinX; // Absolute positions + float MaxX; + float WidthRequest; // Master width absolute value when !(Flags & _WidthStretch). When Stretch this is derived every frame from StretchWeight in TableUpdateLayout() + float WidthAuto; // Automatic width + float StretchWeight; // Master width weight when (Flags & _WidthStretch). Often around ~1.0f initially. + float InitStretchWeightOrWidth; // Value passed to TableSetupColumn(). For Width it is a content width (_without padding_). + ImRect ClipRect; // Clipping rectangle for the column + ImGuiID UserID; // Optional, value passed to TableSetupColumn() + float WorkMinX; // Contents region min ~(MinX + CellPaddingX + CellSpacingX1) == cursor start position when entering column + float WorkMaxX; // Contents region max ~(MaxX - CellPaddingX - CellSpacingX2) + float ItemWidth; // Current item width for the column, preserved across rows + float ContentMaxXFrozen; // Contents maximum position for frozen rows (apart from headers), from which we can infer content width. + float ContentMaxXUnfrozen; + float ContentMaxXHeadersUsed; // Contents maximum position for headers rows (regardless of freezing). TableHeader() automatically softclip itself + report ideal desired size, to avoid creating extraneous draw calls + float ContentMaxXHeadersIdeal; + ImS16 NameOffset; // Offset into parent ColumnsNames[] + ImGuiTableColumnIdx DisplayOrder; // Index within Table's IndexToDisplayOrder[] (column may be reordered by users) + ImGuiTableColumnIdx IndexWithinEnabledSet; // Index within enabled/visible set (<= IndexToDisplayOrder) + ImGuiTableColumnIdx PrevEnabledColumn; // Index of prev enabled/visible column within Columns[], -1 if first enabled/visible column + ImGuiTableColumnIdx NextEnabledColumn; // Index of next enabled/visible column within Columns[], -1 if last enabled/visible column + ImGuiTableColumnIdx SortOrder; // Index of this column within sort specs, -1 if not sorting on this column, 0 for single-sort, may be >0 on multi-sort + ImGuiTableDrawChannelIdx DrawChannelCurrent; // Index within DrawSplitter.Channels[] + ImGuiTableDrawChannelIdx DrawChannelFrozen; // Draw channels for frozen rows (often headers) + ImGuiTableDrawChannelIdx DrawChannelUnfrozen; // Draw channels for unfrozen rows + bool IsEnabled; // IsUserEnabled && (Flags & ImGuiTableColumnFlags_Disabled) == 0 + bool IsUserEnabled; // Is the column not marked Hidden by the user? (unrelated to being off view, e.g. clipped by scrolling). + bool IsUserEnabledNextFrame; + bool IsVisibleX; // Is actually in view (e.g. overlapping the host window clipping rectangle, not scrolled). + bool IsVisibleY; + bool IsRequestOutput; // Return value for TableSetColumnIndex() / TableNextColumn(): whether we request user to output contents or not. + bool IsSkipItems; // Do we want item submissions to this column to be completely ignored (no layout will happen). + bool IsPreserveWidthAuto; + ImS8 NavLayerCurrent; // ImGuiNavLayer in 1 byte + ImU8 AutoFitQueue; // Queue of 8 values for the next 8 frames to request auto-fit + ImU8 CannotSkipItemsQueue; // Queue of 8 values for the next 8 frames to disable Clipped/SkipItem + ImU8 SortDirection : 2; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending + ImU8 SortDirectionsAvailCount : 2; // Number of available sort directions (0 to 3) + ImU8 SortDirectionsAvailMask : 4; // Mask of available sort directions (1-bit each) + ImU8 SortDirectionsAvailList; // Ordered list of available sort directions (2-bits each, total 8-bits) + + ImGuiTableColumn() + { + memset(this, 0, sizeof(*this)); + StretchWeight = WidthRequest = -1.0f; + NameOffset = -1; + DisplayOrder = IndexWithinEnabledSet = -1; + PrevEnabledColumn = NextEnabledColumn = -1; + SortOrder = -1; + SortDirection = ImGuiSortDirection_None; + DrawChannelCurrent = DrawChannelFrozen = DrawChannelUnfrozen = (ImU8)-1; + } +}; + +// Transient cell data stored per row. +// sizeof() ~ 6 +struct ImGuiTableCellData +{ + ImU32 BgColor; // Actual color + ImGuiTableColumnIdx Column; // Column number +}; + +// Per-instance data that needs preserving across frames (seemingly most others do not need to be preserved aside from debug needs. Does that means they could be moved to ImGuiTableTempData?) +// sizeof() ~ 24 bytes +struct ImGuiTableInstanceData +{ + ImGuiID TableInstanceID; + float LastOuterHeight; // Outer height from last frame + float LastTopHeadersRowHeight; // Height of first consecutive header rows from last frame (FIXME: this is used assuming consecutive headers are in same frozen set) + float LastFrozenHeight; // Height of frozen section from last frame + int HoveredRowLast; // Index of row which was hovered last frame. + int HoveredRowNext; // Index of row hovered this frame, set after encountering it. + + ImGuiTableInstanceData() { TableInstanceID = 0; LastOuterHeight = LastTopHeadersRowHeight = LastFrozenHeight = 0.0f; HoveredRowLast = HoveredRowNext = -1; } +}; + +// FIXME-TABLE: more transient data could be stored in a stacked ImGuiTableTempData: e.g. SortSpecs, incoming RowData +// sizeof() ~ 580 bytes + heap allocs described in TableBeginInitMemory() +struct IMGUI_API ImGuiTable +{ + ImGuiID ID; + ImGuiTableFlags Flags; + void* RawData; // Single allocation to hold Columns[], DisplayOrderToIndex[] and RowCellData[] + ImGuiTableTempData* TempData; // Transient data while table is active. Point within g.CurrentTableStack[] + ImSpan Columns; // Point within RawData[] + ImSpan DisplayOrderToIndex; // Point within RawData[]. Store display order of columns (when not reordered, the values are 0...Count-1) + ImSpan RowCellData; // Point within RawData[]. Store cells background requests for current row. + ImBitArrayPtr EnabledMaskByDisplayOrder; // Column DisplayOrder -> IsEnabled map + ImBitArrayPtr EnabledMaskByIndex; // Column Index -> IsEnabled map (== not hidden by user/api) in a format adequate for iterating column without touching cold data + ImBitArrayPtr VisibleMaskByIndex; // Column Index -> IsVisibleX|IsVisibleY map (== not hidden by user/api && not hidden by scrolling/cliprect) + ImGuiTableFlags SettingsLoadedFlags; // Which data were loaded from the .ini file (e.g. when order is not altered we won't save order) + int SettingsOffset; // Offset in g.SettingsTables + int LastFrameActive; + int ColumnsCount; // Number of columns declared in BeginTable() + int CurrentRow; + int CurrentColumn; + ImS16 InstanceCurrent; // Count of BeginTable() calls with same ID in the same frame (generally 0). This is a little bit similar to BeginCount for a window, but multiple table with same ID look are multiple tables, they are just synched. + ImS16 InstanceInteracted; // Mark which instance (generally 0) of the same ID is being interacted with + float RowPosY1; + float RowPosY2; + float RowMinHeight; // Height submitted to TableNextRow() + float RowCellPaddingY; // Top and bottom padding. Reloaded during row change. + float RowTextBaseline; + float RowIndentOffsetX; + ImGuiTableRowFlags RowFlags : 16; // Current row flags, see ImGuiTableRowFlags_ + ImGuiTableRowFlags LastRowFlags : 16; + int RowBgColorCounter; // Counter for alternating background colors (can be fast-forwarded by e.g clipper), not same as CurrentRow because header rows typically don't increase this. + ImU32 RowBgColor[2]; // Background color override for current row. + ImU32 BorderColorStrong; + ImU32 BorderColorLight; + float BorderX1; + float BorderX2; + float HostIndentX; + float MinColumnWidth; + float OuterPaddingX; + float CellPaddingX; // Padding from each borders. Locked in BeginTable()/Layout. + float CellSpacingX1; // Spacing between non-bordered cells. Locked in BeginTable()/Layout. + float CellSpacingX2; + float InnerWidth; // User value passed to BeginTable(), see comments at the top of BeginTable() for details. + float ColumnsGivenWidth; // Sum of current column width + float ColumnsAutoFitWidth; // Sum of ideal column width in order nothing to be clipped, used for auto-fitting and content width submission in outer window + float ColumnsStretchSumWeights; // Sum of weight of all enabled stretching columns + float ResizedColumnNextWidth; + float ResizeLockMinContentsX2; // Lock minimum contents width while resizing down in order to not create feedback loops. But we allow growing the table. + float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. + float AngledHeadersHeight; // Set by TableAngledHeadersRow(), used in TableUpdateLayout() + float AngledHeadersSlope; // Set by TableAngledHeadersRow(), used in TableUpdateLayout() + ImRect OuterRect; // Note: for non-scrolling table, OuterRect.Max.y is often FLT_MAX until EndTable(), unless a height has been specified in BeginTable(). + ImRect InnerRect; // InnerRect but without decoration. As with OuterRect, for non-scrolling tables, InnerRect.Max.y is + ImRect WorkRect; + ImRect InnerClipRect; + ImRect BgClipRect; // We use this to cpu-clip cell background color fill, evolve during the frame as we cross frozen rows boundaries + ImRect Bg0ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG0/1 channel. This tends to be == OuterWindow->ClipRect at BeginTable() because output in BG0/BG1 is cpu-clipped + ImRect Bg2ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG2 channel. This tends to be a correct, tight-fit, because output to BG2 are done by widgets relying on regular ClipRect. + ImRect HostClipRect; // This is used to check if we can eventually merge our columns draw calls into the current draw call of the current window. + ImRect HostBackupInnerClipRect; // Backup of InnerWindow->ClipRect during PushTableBackground()/PopTableBackground() + ImGuiWindow* OuterWindow; // Parent window for the table + ImGuiWindow* InnerWindow; // Window holding the table data (== OuterWindow or a child window) + ImGuiTextBuffer ColumnsNames; // Contiguous buffer holding columns names + ImDrawListSplitter* DrawSplitter; // Shortcut to TempData->DrawSplitter while in table. Isolate draw commands per columns to avoid switching clip rect constantly + ImGuiTableInstanceData InstanceDataFirst; + ImVector InstanceDataExtra; // FIXME-OPT: Using a small-vector pattern would be good. + ImGuiTableColumnSortSpecs SortSpecsSingle; + ImVector SortSpecsMulti; // FIXME-OPT: Using a small-vector pattern would be good. + ImGuiTableSortSpecs SortSpecs; // Public facing sorts specs, this is what we return in TableGetSortSpecs() + ImGuiTableColumnIdx SortSpecsCount; + ImGuiTableColumnIdx ColumnsEnabledCount; // Number of enabled columns (<= ColumnsCount) + ImGuiTableColumnIdx ColumnsEnabledFixedCount; // Number of enabled columns (<= ColumnsCount) + ImGuiTableColumnIdx DeclColumnsCount; // Count calls to TableSetupColumn() + ImGuiTableColumnIdx AngledHeadersCount; // Count columns with angled headers + ImGuiTableColumnIdx HoveredColumnBody; // Index of column whose visible region is being hovered. Important: == ColumnsCount when hovering empty region after the right-most column! + ImGuiTableColumnIdx HoveredColumnBorder; // Index of column whose right-border is being hovered (for resizing). + ImGuiTableColumnIdx HighlightColumnHeader; // Index of column which should be highlighted. + ImGuiTableColumnIdx AutoFitSingleColumn; // Index of single column requesting auto-fit. + ImGuiTableColumnIdx ResizedColumn; // Index of column being resized. Reset when InstanceCurrent==0. + ImGuiTableColumnIdx LastResizedColumn; // Index of column being resized from previous frame. + ImGuiTableColumnIdx HeldHeaderColumn; // Index of column header being held. + ImGuiTableColumnIdx ReorderColumn; // Index of column being reordered. (not cleared) + ImGuiTableColumnIdx ReorderColumnDir; // -1 or +1 + ImGuiTableColumnIdx LeftMostEnabledColumn; // Index of left-most non-hidden column. + ImGuiTableColumnIdx RightMostEnabledColumn; // Index of right-most non-hidden column. + ImGuiTableColumnIdx LeftMostStretchedColumn; // Index of left-most stretched column. + ImGuiTableColumnIdx RightMostStretchedColumn; // Index of right-most stretched column. + ImGuiTableColumnIdx ContextPopupColumn; // Column right-clicked on, of -1 if opening context menu from a neutral/empty spot + ImGuiTableColumnIdx FreezeRowsRequest; // Requested frozen rows count + ImGuiTableColumnIdx FreezeRowsCount; // Actual frozen row count (== FreezeRowsRequest, or == 0 when no scrolling offset) + ImGuiTableColumnIdx FreezeColumnsRequest; // Requested frozen columns count + ImGuiTableColumnIdx FreezeColumnsCount; // Actual frozen columns count (== FreezeColumnsRequest, or == 0 when no scrolling offset) + ImGuiTableColumnIdx RowCellDataCurrent; // Index of current RowCellData[] entry in current row + ImGuiTableDrawChannelIdx DummyDrawChannel; // Redirect non-visible columns here. + ImGuiTableDrawChannelIdx Bg2DrawChannelCurrent; // For Selectable() and other widgets drawing across columns after the freezing line. Index within DrawSplitter.Channels[] + ImGuiTableDrawChannelIdx Bg2DrawChannelUnfrozen; + bool IsLayoutLocked; // Set by TableUpdateLayout() which is called when beginning the first row. + bool IsInsideRow; // Set when inside TableBeginRow()/TableEndRow(). + bool IsInitializing; + bool IsSortSpecsDirty; + bool IsUsingHeaders; // Set when the first row had the ImGuiTableRowFlags_Headers flag. + bool IsContextPopupOpen; // Set when default context menu is open (also see: ContextPopupColumn, InstanceInteracted). + bool IsSettingsRequestLoad; + bool IsSettingsDirty; // Set when table settings have changed and needs to be reported into ImGuiTableSetttings data. + bool IsDefaultDisplayOrder; // Set when display order is unchanged from default (DisplayOrder contains 0...Count-1) + bool IsResetAllRequest; + bool IsResetDisplayOrderRequest; + bool IsUnfrozenRows; // Set when we got past the frozen row. + bool IsDefaultSizingPolicy; // Set if user didn't explicitly set a sizing policy in BeginTable() + bool IsActiveIdAliveBeforeTable; + bool IsActiveIdInTable; + bool HasScrollbarYCurr; // Whether ANY instance of this table had a vertical scrollbar during the current frame. + bool HasScrollbarYPrev; // Whether ANY instance of this table had a vertical scrollbar during the previous. + bool MemoryCompacted; + bool HostSkipItems; // Backup of InnerWindow->SkipItem at the end of BeginTable(), because we will overwrite InnerWindow->SkipItem on a per-column basis + + ImGuiTable() { memset(this, 0, sizeof(*this)); LastFrameActive = -1; } + ~ImGuiTable() { IM_FREE(RawData); } +}; + +// Transient data that are only needed between BeginTable() and EndTable(), those buffers are shared (1 per level of stacked table). +// - Accessing those requires chasing an extra pointer so for very frequently used data we leave them in the main table structure. +// - We also leave out of this structure data that tend to be particularly useful for debugging/metrics. +// sizeof() ~ 120 bytes. +struct IMGUI_API ImGuiTableTempData +{ + int TableIndex; // Index in g.Tables.Buf[] pool + float LastTimeActive; // Last timestamp this structure was used + float AngledheadersExtraWidth; // Used in EndTable() + + ImVec2 UserOuterSize; // outer_size.x passed to BeginTable() + ImDrawListSplitter DrawSplitter; + + ImRect HostBackupWorkRect; // Backup of InnerWindow->WorkRect at the end of BeginTable() + ImRect HostBackupParentWorkRect; // Backup of InnerWindow->ParentWorkRect at the end of BeginTable() + ImVec2 HostBackupPrevLineSize; // Backup of InnerWindow->DC.PrevLineSize at the end of BeginTable() + ImVec2 HostBackupCurrLineSize; // Backup of InnerWindow->DC.CurrLineSize at the end of BeginTable() + ImVec2 HostBackupCursorMaxPos; // Backup of InnerWindow->DC.CursorMaxPos at the end of BeginTable() + ImVec1 HostBackupColumnsOffset; // Backup of OuterWindow->DC.ColumnsOffset at the end of BeginTable() + float HostBackupItemWidth; // Backup of OuterWindow->DC.ItemWidth at the end of BeginTable() + int HostBackupItemWidthStackSize;//Backup of OuterWindow->DC.ItemWidthStack.Size at the end of BeginTable() + + ImGuiTableTempData() { memset(this, 0, sizeof(*this)); LastTimeActive = -1.0f; } +}; + +// sizeof() ~ 12 +struct ImGuiTableColumnSettings +{ + float WidthOrWeight; + ImGuiID UserID; + ImGuiTableColumnIdx Index; + ImGuiTableColumnIdx DisplayOrder; + ImGuiTableColumnIdx SortOrder; + ImU8 SortDirection : 2; + ImU8 IsEnabled : 1; // "Visible" in ini file + ImU8 IsStretch : 1; + + ImGuiTableColumnSettings() + { + WidthOrWeight = 0.0f; + UserID = 0; + Index = -1; + DisplayOrder = SortOrder = -1; + SortDirection = ImGuiSortDirection_None; + IsEnabled = 1; + IsStretch = 0; + } +}; + +// This is designed to be stored in a single ImChunkStream (1 header followed by N ImGuiTableColumnSettings, etc.) +struct ImGuiTableSettings +{ + ImGuiID ID; // Set to 0 to invalidate/delete the setting + ImGuiTableFlags SaveFlags; // Indicate data we want to save using the Resizable/Reorderable/Sortable/Hideable flags (could be using its own flags..) + float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. + ImGuiTableColumnIdx ColumnsCount; + ImGuiTableColumnIdx ColumnsCountMax; // Maximum number of columns this settings instance can store, we can recycle a settings instance with lower number of columns but not higher + bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context) + + ImGuiTableSettings() { memset(this, 0, sizeof(*this)); } + ImGuiTableColumnSettings* GetColumnSettings() { return (ImGuiTableColumnSettings*)(this + 1); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGui internal API +// No guarantee of forward compatibility here! +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // Windows + // We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) + // If this ever crash because g.CurrentWindow is NULL it means that either + // - ImGui::NewFrame() has never been called, which is illegal. + // - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. + inline ImGuiWindow* GetCurrentWindowRead() { ImGuiContext& g = *GImGui; return g.CurrentWindow; } + inline ImGuiWindow* GetCurrentWindow() { ImGuiContext& g = *GImGui; g.CurrentWindow->WriteAccessed = true; return g.CurrentWindow; } + IMGUI_API ImGuiWindow* FindWindowByID(ImGuiID id); + IMGUI_API ImGuiWindow* FindWindowByName(const char* name); + IMGUI_API void UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window); + IMGUI_API ImVec2 CalcWindowNextAutoFitSize(ImGuiWindow* window); + IMGUI_API bool IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy); + IMGUI_API bool IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent); + IMGUI_API bool IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below); + IMGUI_API bool IsWindowNavFocusable(ImGuiWindow* window); + IMGUI_API void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond = 0); + IMGUI_API void SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond = 0); + IMGUI_API void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond = 0); + IMGUI_API void SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size); + IMGUI_API void SetWindowHiddendAndSkipItemsForCurrentFrame(ImGuiWindow* window); + inline ImRect WindowRectAbsToRel(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x - off.x, r.Min.y - off.y, r.Max.x - off.x, r.Max.y - off.y); } + inline ImRect WindowRectRelToAbs(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x + off.x, r.Min.y + off.y, r.Max.x + off.x, r.Max.y + off.y); } + inline ImVec2 WindowPosRelToAbs(ImGuiWindow* window, const ImVec2& p) { ImVec2 off = window->DC.CursorStartPos; return ImVec2(p.x + off.x, p.y + off.y); } + + // Windows: Display Order and Focus Order + IMGUI_API void FocusWindow(ImGuiWindow* window, ImGuiFocusRequestFlags flags = 0); + IMGUI_API void FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window, ImGuiViewport* filter_viewport, ImGuiFocusRequestFlags flags); + IMGUI_API void BringWindowToFocusFront(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayFront(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayBack(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* above_window); + IMGUI_API int FindWindowDisplayIndex(ImGuiWindow* window); + IMGUI_API ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window); + + // Fonts, drawing + IMGUI_API void SetCurrentFont(ImFont* font); + inline ImFont* GetDefaultFont() { ImGuiContext& g = *GImGui; return g.IO.FontDefault ? g.IO.FontDefault : g.IO.Fonts->Fonts[0]; } + inline ImDrawList* GetForegroundDrawList(ImGuiWindow* window) { return GetForegroundDrawList(window->Viewport); } + IMGUI_API void AddDrawListToDrawDataEx(ImDrawData* draw_data, ImVector* out_list, ImDrawList* draw_list); + + // Init + IMGUI_API void Initialize(); + IMGUI_API void Shutdown(); // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext(). + + // NewFrame + IMGUI_API void UpdateInputEvents(bool trickle_fast_inputs); + IMGUI_API void UpdateHoveredWindowAndCaptureFlags(); + IMGUI_API void StartMouseMovingWindow(ImGuiWindow* window); + IMGUI_API void StartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, bool undock); + IMGUI_API void UpdateMouseMovingWindowNewFrame(); + IMGUI_API void UpdateMouseMovingWindowEndFrame(); + + // Generic context hooks + IMGUI_API ImGuiID AddContextHook(ImGuiContext* context, const ImGuiContextHook* hook); + IMGUI_API void RemoveContextHook(ImGuiContext* context, ImGuiID hook_to_remove); + IMGUI_API void CallContextHooks(ImGuiContext* context, ImGuiContextHookType type); + + // Viewports + IMGUI_API void TranslateWindowsInViewport(ImGuiViewportP* viewport, const ImVec2& old_pos, const ImVec2& new_pos); + IMGUI_API void ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale); + IMGUI_API void DestroyPlatformWindow(ImGuiViewportP* viewport); + IMGUI_API void SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport); + IMGUI_API void SetCurrentViewport(ImGuiWindow* window, ImGuiViewportP* viewport); + IMGUI_API const ImGuiPlatformMonitor* GetViewportPlatformMonitor(ImGuiViewport* viewport); + IMGUI_API ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack(const ImVec2& mouse_platform_pos); + + // Settings + IMGUI_API void MarkIniSettingsDirty(); + IMGUI_API void MarkIniSettingsDirty(ImGuiWindow* window); + IMGUI_API void ClearIniSettings(); + IMGUI_API void AddSettingsHandler(const ImGuiSettingsHandler* handler); + IMGUI_API void RemoveSettingsHandler(const char* type_name); + IMGUI_API ImGuiSettingsHandler* FindSettingsHandler(const char* type_name); + + // Settings - Windows + IMGUI_API ImGuiWindowSettings* CreateNewWindowSettings(const char* name); + IMGUI_API ImGuiWindowSettings* FindWindowSettingsByID(ImGuiID id); + IMGUI_API ImGuiWindowSettings* FindWindowSettingsByWindow(ImGuiWindow* window); + IMGUI_API void ClearWindowSettings(const char* name); + + // Localization + IMGUI_API void LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count); + inline const char* LocalizeGetMsg(ImGuiLocKey key) { ImGuiContext& g = *GImGui; const char* msg = g.LocalizationTable[key]; return msg ? msg : "*Missing Text*"; } + + // Scrolling + IMGUI_API void SetScrollX(ImGuiWindow* window, float scroll_x); + IMGUI_API void SetScrollY(ImGuiWindow* window, float scroll_y); + IMGUI_API void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio); + IMGUI_API void SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio); + + // Early work-in-progress API (ScrollToItem() will become public) + IMGUI_API void ScrollToItem(ImGuiScrollFlags flags = 0); + IMGUI_API void ScrollToRect(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0); + IMGUI_API ImVec2 ScrollToRectEx(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0); +//#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void ScrollToBringRectIntoView(ImGuiWindow* window, const ImRect& rect) { ScrollToRect(window, rect, ImGuiScrollFlags_KeepVisibleEdgeY); } +//#endif + + // Basic Accessors + inline ImGuiItemStatusFlags GetItemStatusFlags(){ ImGuiContext& g = *GImGui; return g.LastItemData.StatusFlags; } + inline ImGuiItemFlags GetItemFlags() { ImGuiContext& g = *GImGui; return g.LastItemData.InFlags; } + inline ImGuiID GetActiveID() { ImGuiContext& g = *GImGui; return g.ActiveId; } + inline ImGuiID GetFocusID() { ImGuiContext& g = *GImGui; return g.NavId; } + IMGUI_API void SetActiveID(ImGuiID id, ImGuiWindow* window); + IMGUI_API void SetFocusID(ImGuiID id, ImGuiWindow* window); + IMGUI_API void ClearActiveID(); + IMGUI_API ImGuiID GetHoveredID(); + IMGUI_API void SetHoveredID(ImGuiID id); + IMGUI_API void KeepAliveID(ImGuiID id); + IMGUI_API void MarkItemEdited(ImGuiID id); // Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function. + IMGUI_API void PushOverrideID(ImGuiID id); // Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes) + IMGUI_API ImGuiID GetIDWithSeed(const char* str_id_begin, const char* str_id_end, ImGuiID seed); + IMGUI_API ImGuiID GetIDWithSeed(int n, ImGuiID seed); + + // Basic Helpers for widget code + IMGUI_API void ItemSize(const ImVec2& size, float text_baseline_y = -1.0f); + inline void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f) { ItemSize(bb.GetSize(), text_baseline_y); } // FIXME: This is a misleading API since we expect CursorPos to be bb.Min. + IMGUI_API bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL, ImGuiItemFlags extra_flags = 0); + IMGUI_API bool ItemHoverable(const ImRect& bb, ImGuiID id, ImGuiItemFlags item_flags); + IMGUI_API bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags = 0); + IMGUI_API bool IsClippedEx(const ImRect& bb, ImGuiID id); + IMGUI_API void SetLastItemData(ImGuiID item_id, ImGuiItemFlags in_flags, ImGuiItemStatusFlags status_flags, const ImRect& item_rect); + IMGUI_API ImVec2 CalcItemSize(ImVec2 size, float default_w, float default_h); + IMGUI_API float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x); + IMGUI_API void PushMultiItemsWidths(int components, float width_full); + IMGUI_API bool IsItemToggledSelection(); // Was the last item selection toggled? (after Selectable(), TreeNode() etc. We only returns toggle _event_ in order to handle clipping correctly) + IMGUI_API ImVec2 GetContentRegionMaxAbs(); + IMGUI_API void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess); + + // Parameter stacks (shared) + IMGUI_API void PushItemFlag(ImGuiItemFlags option, bool enabled); + IMGUI_API void PopItemFlag(); + IMGUI_API const ImGuiDataVarInfo* GetStyleVarInfo(ImGuiStyleVar idx); + + // Logging/Capture + IMGUI_API void LogBegin(ImGuiLogType type, int auto_open_depth); // -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name. + IMGUI_API void LogToBuffer(int auto_open_depth = -1); // Start logging/capturing to internal buffer + IMGUI_API void LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end = NULL); + IMGUI_API void LogSetNextTextDecoration(const char* prefix, const char* suffix); + + // Popups, Modals, Tooltips + IMGUI_API bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags window_flags); + IMGUI_API void OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags = ImGuiPopupFlags_None); + IMGUI_API void ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup); + IMGUI_API void ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup); + IMGUI_API void ClosePopupsExceptModals(); + IMGUI_API bool IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags); + IMGUI_API bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags); + IMGUI_API bool BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags); + IMGUI_API bool BeginTooltipHidden(); + IMGUI_API ImRect GetPopupAllowedExtentRect(ImGuiWindow* window); + IMGUI_API ImGuiWindow* GetTopMostPopupModal(); + IMGUI_API ImGuiWindow* GetTopMostAndVisiblePopupModal(); + IMGUI_API ImGuiWindow* FindBlockingModal(ImGuiWindow* window); + IMGUI_API ImVec2 FindBestWindowPosForPopup(ImGuiWindow* window); + IMGUI_API ImVec2 FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy); + + // Menus + IMGUI_API bool BeginViewportSideBar(const char* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags window_flags); + IMGUI_API bool BeginMenuEx(const char* label, const char* icon, bool enabled = true); + IMGUI_API bool MenuItemEx(const char* label, const char* icon, const char* shortcut = NULL, bool selected = false, bool enabled = true); + + // Combos + IMGUI_API bool BeginComboPopup(ImGuiID popup_id, const ImRect& bb, ImGuiComboFlags flags); + IMGUI_API bool BeginComboPreview(); + IMGUI_API void EndComboPreview(); + + // Gamepad/Keyboard Navigation + IMGUI_API void NavInitWindow(ImGuiWindow* window, bool force_reinit); + IMGUI_API void NavInitRequestApplyResult(); + IMGUI_API bool NavMoveRequestButNoResultYet(); + IMGUI_API void NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); + IMGUI_API void NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); + IMGUI_API void NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result); + IMGUI_API void NavMoveRequestResolveWithPastTreeNode(ImGuiNavItemData* result, ImGuiNavTreeNodeData* tree_node_data); + IMGUI_API void NavMoveRequestCancel(); + IMGUI_API void NavMoveRequestApplyResult(); + IMGUI_API void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); + IMGUI_API void NavClearPreferredPosForAxis(ImGuiAxis axis); + IMGUI_API void NavRestoreHighlightAfterMove(); + IMGUI_API void NavUpdateCurrentWindowIsScrollPushableX(); + IMGUI_API void SetNavWindow(ImGuiWindow* window); + IMGUI_API void SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel); + + // Focus/Activation + // This should be part of a larger set of API: FocusItem(offset = -1), FocusItemByID(id), ActivateItem(offset = -1), ActivateItemByID(id) etc. which are + // much harder to design and implement than expected. I have a couple of private branches on this matter but it's not simple. For now implementing the easy ones. + IMGUI_API void FocusItem(); // Focus last item (no selection/activation). + IMGUI_API void ActivateItemByID(ImGuiID id); // Activate an item by ID (button, checkbox, tree node etc.). Activation is queued and processed on the next frame when the item is encountered again. + + // Inputs + // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. + inline bool IsNamedKey(ImGuiKey key) { return key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END; } + inline bool IsNamedKeyOrModKey(ImGuiKey key) { return (key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END) || key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super || key == ImGuiMod_Shortcut; } + inline bool IsLegacyKey(ImGuiKey key) { return key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_LegacyNativeKey_END; } + inline bool IsKeyboardKey(ImGuiKey key) { return key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END; } + inline bool IsGamepadKey(ImGuiKey key) { return key >= ImGuiKey_Gamepad_BEGIN && key < ImGuiKey_Gamepad_END; } + inline bool IsMouseKey(ImGuiKey key) { return key >= ImGuiKey_Mouse_BEGIN && key < ImGuiKey_Mouse_END; } + inline bool IsAliasKey(ImGuiKey key) { return key >= ImGuiKey_Aliases_BEGIN && key < ImGuiKey_Aliases_END; } + inline ImGuiKeyChord ConvertShortcutMod(ImGuiKeyChord key_chord) { ImGuiContext& g = *GImGui; IM_ASSERT_PARANOID(key_chord & ImGuiMod_Shortcut); return (key_chord & ~ImGuiMod_Shortcut) | (g.IO.ConfigMacOSXBehaviors ? ImGuiMod_Super : ImGuiMod_Ctrl); } + inline ImGuiKey ConvertSingleModFlagToKey(ImGuiContext* ctx, ImGuiKey key) + { + ImGuiContext& g = *ctx; + if (key == ImGuiMod_Ctrl) return ImGuiKey_ReservedForModCtrl; + if (key == ImGuiMod_Shift) return ImGuiKey_ReservedForModShift; + if (key == ImGuiMod_Alt) return ImGuiKey_ReservedForModAlt; + if (key == ImGuiMod_Super) return ImGuiKey_ReservedForModSuper; + if (key == ImGuiMod_Shortcut) return (g.IO.ConfigMacOSXBehaviors ? ImGuiKey_ReservedForModSuper : ImGuiKey_ReservedForModCtrl); + return key; + } + + IMGUI_API ImGuiKeyData* GetKeyData(ImGuiContext* ctx, ImGuiKey key); + inline ImGuiKeyData* GetKeyData(ImGuiKey key) { ImGuiContext& g = *GImGui; return GetKeyData(&g, key); } + IMGUI_API void GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size); + inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button) { IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); return (ImGuiKey)(ImGuiKey_MouseLeft + button); } + IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f); + IMGUI_API ImVec2 GetKeyMagnitude2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down); + IMGUI_API float GetNavTweakPressedAmount(ImGuiAxis axis); + IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); + IMGUI_API void GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate); + IMGUI_API void TeleportMousePos(const ImVec2& pos); + IMGUI_API void SetActiveIdUsingAllKeyboardKeys(); + inline bool IsActiveIdUsingNavDir(ImGuiDir dir) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; } + + // [EXPERIMENTAL] Low-Level: Key/Input Ownership + // - The idea is that instead of "eating" a given input, we can link to an owner id. + // - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). + // - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). + // - Input ownership is automatically released on the frame after a key is released. Therefore: + // - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). + // - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). + // - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. + // - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. + // Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. + IMGUI_API ImGuiID GetKeyOwner(ImGuiKey key); + IMGUI_API void SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API void SetKeyOwnersForKeyChord(ImGuiKeyChord key, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags = 0); // Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) { SetKeyOwner(key, GetItemID());'. + IMGUI_API bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id); // Test that key is either not owned, either owned by 'owner_id' + inline ImGuiKeyOwnerData* GetKeyOwnerData(ImGuiContext* ctx, ImGuiKey key) { if (key & ImGuiMod_Mask_) key = ConvertSingleModFlagToKey(ctx, key); IM_ASSERT(IsNamedKey(key)); return &ctx->KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; } + + // [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership + // - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. + // - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) + // - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. + // Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. + // - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. + IMGUI_API bool IsKeyDown(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); // Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so would default to repeat. New API requiress explicit ImGuiInputFlags_Repeat. + IMGUI_API bool IsKeyReleased(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id); + IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API bool IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id); + + // [EXPERIMENTAL] Shortcut Routing + // - ImGuiKeyChord = a ImGuiKey optionally OR-red with ImGuiMod_Alt/ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Super. + // ImGuiKey_C (accepted by functions taking ImGuiKey or ImGuiKeyChord) + // ImGuiKey_C | ImGuiMod_Ctrl (accepted by functions taking ImGuiKeyChord) + // ONLY ImGuiMod_XXX values are legal to 'OR' with an ImGuiKey. You CANNOT 'OR' two ImGuiKey values. + // - When using one of the routing flags (e.g. ImGuiInputFlags_RouteFocused): routes requested ahead of time given a chord (key + modifiers) and a routing policy. + // - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame. + // - Route is granted to a single owner. When multiple requests are made we have policies to select the winning route. + // - Multiple read sites may use the same owner id and will all get the granted route. + // - For routing: when owner_id is 0 we use the current Focus Scope ID as a default owner in order to identify our location. + // - TL;DR; + // - IsKeyChordPressed() compares mods + call IsKeyPressed() -> function has no side-effect. + // - Shortcut() submits a route then if currently can be routed calls IsKeyChordPressed() -> function has (desirable) side-effects. + IMGUI_API bool IsKeyChordPressed(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API bool Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id); + IMGUI_API ImGuiKeyRoutingData* GetShortcutRoutingData(ImGuiKeyChord key_chord); + + // Docking + // (some functions are only declared in imgui.cpp, see Docking section) + IMGUI_API void DockContextInitialize(ImGuiContext* ctx); + IMGUI_API void DockContextShutdown(ImGuiContext* ctx); + IMGUI_API void DockContextClearNodes(ImGuiContext* ctx, ImGuiID root_id, bool clear_settings_refs); // Use root_id==0 to clear all + IMGUI_API void DockContextRebuildNodes(ImGuiContext* ctx); + IMGUI_API void DockContextNewFrameUpdateUndocking(ImGuiContext* ctx); + IMGUI_API void DockContextNewFrameUpdateDocking(ImGuiContext* ctx); + IMGUI_API void DockContextEndFrame(ImGuiContext* ctx); + IMGUI_API ImGuiID DockContextGenNodeID(ImGuiContext* ctx); + IMGUI_API void DockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer); + IMGUI_API void DockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window); + IMGUI_API void DockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node); + IMGUI_API void DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* window, bool clear_persistent_docking_ref = true); + IMGUI_API void DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node); + IMGUI_API bool DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos); + IMGUI_API ImGuiDockNode*DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id); + IMGUI_API void DockNodeWindowMenuHandler_Default(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar); + IMGUI_API bool DockNodeBeginAmendTabBar(ImGuiDockNode* node); + IMGUI_API void DockNodeEndAmendTabBar(); + inline ImGuiDockNode* DockNodeGetRootNode(ImGuiDockNode* node) { while (node->ParentNode) node = node->ParentNode; return node; } + inline bool DockNodeIsInHierarchyOf(ImGuiDockNode* node, ImGuiDockNode* parent) { while (node) { if (node == parent) return true; node = node->ParentNode; } return false; } + inline int DockNodeGetDepth(const ImGuiDockNode* node) { int depth = 0; while (node->ParentNode) { node = node->ParentNode; depth++; } return depth; } + inline ImGuiID DockNodeGetWindowMenuButtonId(const ImGuiDockNode* node) { return ImHashStr("#COLLAPSE", 0, node->ID); } + inline ImGuiDockNode* GetWindowDockNode() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DockNode; } + IMGUI_API bool GetWindowAlwaysWantOwnTabBar(ImGuiWindow* window); + IMGUI_API void BeginDocked(ImGuiWindow* window, bool* p_open); + IMGUI_API void BeginDockableDragDropSource(ImGuiWindow* window); + IMGUI_API void BeginDockableDragDropTarget(ImGuiWindow* window); + IMGUI_API void SetWindowDock(ImGuiWindow* window, ImGuiID dock_id, ImGuiCond cond); + + // Docking - Builder function needs to be generally called before the node is used/submitted. + // - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. + // - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. + // - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). + // You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. + // - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. + // - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure + // to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. + // - Call DockBuilderFinish() after you are done. + IMGUI_API void DockBuilderDockWindow(const char* window_name, ImGuiID node_id); + IMGUI_API ImGuiDockNode*DockBuilderGetNode(ImGuiID node_id); + inline ImGuiDockNode* DockBuilderGetCentralNode(ImGuiID node_id) { ImGuiDockNode* node = DockBuilderGetNode(node_id); if (!node) return NULL; return DockNodeGetRootNode(node)->CentralNode; } + IMGUI_API ImGuiID DockBuilderAddNode(ImGuiID node_id = 0, ImGuiDockNodeFlags flags = 0); + IMGUI_API void DockBuilderRemoveNode(ImGuiID node_id); // Remove node and all its child, undock all windows + IMGUI_API void DockBuilderRemoveNodeDockedWindows(ImGuiID node_id, bool clear_settings_refs = true); + IMGUI_API void DockBuilderRemoveNodeChildNodes(ImGuiID node_id); // Remove all split/hierarchy. All remaining docked windows will be re-docked to the remaining root node (node_id). + IMGUI_API void DockBuilderSetNodePos(ImGuiID node_id, ImVec2 pos); + IMGUI_API void DockBuilderSetNodeSize(ImGuiID node_id, ImVec2 size); + IMGUI_API ImGuiID DockBuilderSplitNode(ImGuiID node_id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir); // Create 2 child nodes in this parent node. + IMGUI_API void DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector* in_window_remap_pairs); + IMGUI_API void DockBuilderCopyNode(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector* out_node_remap_pairs); + IMGUI_API void DockBuilderCopyWindowSettings(const char* src_name, const char* dst_name); + IMGUI_API void DockBuilderFinish(ImGuiID node_id); + + // [EXPERIMENTAL] Focus Scope + // This is generally used to identify a unique input location (for e.g. a selection set) + // There is one per window (automatically set in Begin), but: + // - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set. + // So in order to identify a set multiple lists in same window may each need a focus scope. + // If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope() + // - Shortcut routing also use focus scope as a default location identifier if an owner is not provided. + // We don't use the ID Stack for this as it is common to want them separate. + IMGUI_API void PushFocusScope(ImGuiID id); + IMGUI_API void PopFocusScope(); + inline ImGuiID GetCurrentFocusScope() { ImGuiContext& g = *GImGui; return g.CurrentFocusScopeId; } // Focus scope we are outputting into, set by PushFocusScope() + + // Drag and Drop + IMGUI_API bool IsDragDropActive(); + IMGUI_API bool BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id); + IMGUI_API void ClearDragDrop(); + IMGUI_API bool IsDragDropPayloadBeingAccepted(); + IMGUI_API void RenderDragDropTargetRect(const ImRect& bb); + + // Typing-Select API + IMGUI_API ImGuiTypingSelectRequest* GetTypingSelectRequest(ImGuiTypingSelectFlags flags = ImGuiTypingSelectFlags_None); + IMGUI_API int TypingSelectFindMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx); + IMGUI_API int TypingSelectFindNextSingleCharMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx); + IMGUI_API int TypingSelectFindBestLeadingMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data); + + // Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) + IMGUI_API void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect); + IMGUI_API void BeginColumns(const char* str_id, int count, ImGuiOldColumnFlags flags = 0); // setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). + IMGUI_API void EndColumns(); // close columns + IMGUI_API void PushColumnClipRect(int column_index); + IMGUI_API void PushColumnsBackground(); + IMGUI_API void PopColumnsBackground(); + IMGUI_API ImGuiID GetColumnsID(const char* str_id, int count); + IMGUI_API ImGuiOldColumns* FindOrCreateColumns(ImGuiWindow* window, ImGuiID id); + IMGUI_API float GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm); + IMGUI_API float GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset); + + // Tables: Candidates for public API + IMGUI_API void TableOpenContextMenu(int column_n = -1); + IMGUI_API void TableSetColumnWidth(int column_n, float width); + IMGUI_API void TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs); + IMGUI_API int TableGetHoveredColumn(); // May use (TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) instead. Return hovered column. return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. + IMGUI_API int TableGetHoveredRow(); // Retrieve *PREVIOUS FRAME* hovered row. This difference with TableGetHoveredColumn() is the reason why this is not public yet. + IMGUI_API float TableGetHeaderRowHeight(); + IMGUI_API float TableGetHeaderAngledMaxLabelWidth(); + IMGUI_API void TablePushBackgroundChannel(); + IMGUI_API void TablePopBackgroundChannel(); + IMGUI_API void TableAngledHeadersRowEx(float angle, float label_width = 0.0f); + + // Tables: Internals + inline ImGuiTable* GetCurrentTable() { ImGuiContext& g = *GImGui; return g.CurrentTable; } + IMGUI_API ImGuiTable* TableFindByID(ImGuiID id); + IMGUI_API bool BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0, 0), float inner_width = 0.0f); + IMGUI_API void TableBeginInitMemory(ImGuiTable* table, int columns_count); + IMGUI_API void TableBeginApplyRequests(ImGuiTable* table); + IMGUI_API void TableSetupDrawChannels(ImGuiTable* table); + IMGUI_API void TableUpdateLayout(ImGuiTable* table); + IMGUI_API void TableUpdateBorders(ImGuiTable* table); + IMGUI_API void TableUpdateColumnsWeightFromWidth(ImGuiTable* table); + IMGUI_API void TableDrawBorders(ImGuiTable* table); + IMGUI_API void TableDrawContextMenu(ImGuiTable* table); + IMGUI_API bool TableBeginContextMenuPopup(ImGuiTable* table); + IMGUI_API void TableMergeDrawChannels(ImGuiTable* table); + inline ImGuiTableInstanceData* TableGetInstanceData(ImGuiTable* table, int instance_no) { if (instance_no == 0) return &table->InstanceDataFirst; return &table->InstanceDataExtra[instance_no - 1]; } + inline ImGuiID TableGetInstanceID(ImGuiTable* table, int instance_no) { return TableGetInstanceData(table, instance_no)->TableInstanceID; } + IMGUI_API void TableSortSpecsSanitize(ImGuiTable* table); + IMGUI_API void TableSortSpecsBuild(ImGuiTable* table); + IMGUI_API ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn* column); + IMGUI_API void TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column); + IMGUI_API float TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column); + IMGUI_API void TableBeginRow(ImGuiTable* table); + IMGUI_API void TableEndRow(ImGuiTable* table); + IMGUI_API void TableBeginCell(ImGuiTable* table, int column_n); + IMGUI_API void TableEndCell(ImGuiTable* table); + IMGUI_API ImRect TableGetCellBgRect(const ImGuiTable* table, int column_n); + IMGUI_API const char* TableGetColumnName(const ImGuiTable* table, int column_n); + IMGUI_API ImGuiID TableGetColumnResizeID(ImGuiTable* table, int column_n, int instance_no = 0); + IMGUI_API float TableGetMaxColumnWidth(const ImGuiTable* table, int column_n); + IMGUI_API void TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n); + IMGUI_API void TableSetColumnWidthAutoAll(ImGuiTable* table); + IMGUI_API void TableRemove(ImGuiTable* table); + IMGUI_API void TableGcCompactTransientBuffers(ImGuiTable* table); + IMGUI_API void TableGcCompactTransientBuffers(ImGuiTableTempData* table); + IMGUI_API void TableGcCompactSettings(); + + // Tables: Settings + IMGUI_API void TableLoadSettings(ImGuiTable* table); + IMGUI_API void TableSaveSettings(ImGuiTable* table); + IMGUI_API void TableResetSettings(ImGuiTable* table); + IMGUI_API ImGuiTableSettings* TableGetBoundSettings(ImGuiTable* table); + IMGUI_API void TableSettingsAddSettingsHandler(); + IMGUI_API ImGuiTableSettings* TableSettingsCreate(ImGuiID id, int columns_count); + IMGUI_API ImGuiTableSettings* TableSettingsFindByID(ImGuiID id); + + // Tab Bars + inline ImGuiTabBar* GetCurrentTabBar() { ImGuiContext& g = *GImGui; return g.CurrentTabBar; } + IMGUI_API bool BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& bb, ImGuiTabBarFlags flags); + IMGUI_API ImGuiTabItem* TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id); + IMGUI_API ImGuiTabItem* TabBarFindTabByOrder(ImGuiTabBar* tab_bar, int order); + IMGUI_API ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar); + IMGUI_API ImGuiTabItem* TabBarGetCurrentTab(ImGuiTabBar* tab_bar); + inline int TabBarGetTabOrder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) { return tab_bar->Tabs.index_from_ptr(tab); } + IMGUI_API const char* TabBarGetTabName(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); + IMGUI_API void TabBarAddTab(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window); + IMGUI_API void TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id); + IMGUI_API void TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); + IMGUI_API void TabBarQueueFocus(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); + IMGUI_API void TabBarQueueReorder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, int offset); + IMGUI_API void TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, ImVec2 mouse_pos); + IMGUI_API bool TabBarProcessReorder(ImGuiTabBar* tab_bar); + IMGUI_API bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window); + IMGUI_API ImVec2 TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker); + IMGUI_API ImVec2 TabItemCalcSize(ImGuiWindow* window); + IMGUI_API void TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col); + IMGUI_API void TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped); + + // Render helpers + // AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. + // NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) + IMGUI_API void RenderText(ImVec2 pos, const char* text, const char* text_end = NULL, bool hide_text_after_hash = true); + IMGUI_API void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width); + IMGUI_API void RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); + IMGUI_API void RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); + IMGUI_API void RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known); + IMGUI_API void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border = true, float rounding = 0.0f); + IMGUI_API void RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding = 0.0f); + IMGUI_API void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, ImDrawFlags flags = 0); + IMGUI_API void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_TypeDefault); // Navigation highlight + IMGUI_API const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL); // Find the optional ## from which we stop displaying text. + IMGUI_API void RenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); + + // Render helpers (those functions don't access any ImGui state!) + IMGUI_API void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f); + IMGUI_API void RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col); + IMGUI_API void RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz); + IMGUI_API void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col); + IMGUI_API void RenderArrowDockMenu(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col); + IMGUI_API void RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding); + IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding); + IMGUI_API ImDrawFlags CalcRoundingFlagsForRectInRect(const ImRect& r_in, const ImRect& r_outer, float threshold); + + // Widgets + IMGUI_API void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0); + IMGUI_API bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0, 0), ImGuiButtonFlags flags = 0); + IMGUI_API bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0); + IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& image_size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col, ImGuiButtonFlags flags = 0); + IMGUI_API void SeparatorEx(ImGuiSeparatorFlags flags, float thickness = 1.0f); + IMGUI_API void SeparatorTextEx(ImGuiID id, const char* label, const char* label_end, float extra_width); + IMGUI_API bool CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value); + IMGUI_API bool CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value); + + // Widgets: Window Decorations + IMGUI_API bool CloseButton(ImGuiID id, const ImVec2& pos); + IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_node); + IMGUI_API void Scrollbar(ImGuiAxis axis); + IMGUI_API bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 avail_v, ImS64 contents_v, ImDrawFlags flags); + IMGUI_API ImRect GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis); + IMGUI_API ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis); + IMGUI_API ImGuiID GetWindowResizeCornerID(ImGuiWindow* window, int n); // 0..3: corners + IMGUI_API ImGuiID GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir); + + // Widgets low-level behaviors + IMGUI_API bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0); + IMGUI_API bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); + IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); + IMGUI_API bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f, ImU32 bg_col = 0); + IMGUI_API bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL); + IMGUI_API void TreePushOverrideID(ImGuiID id); + IMGUI_API void TreeNodeSetOpen(ImGuiID id, bool open); + IMGUI_API bool TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags); // Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging. + IMGUI_API void SetNextItemSelectionUserData(ImGuiSelectionUserData selection_user_data); + + // Template functions are instantiated in imgui_widgets.cpp for a finite number of types. + // To use them externally (for custom widget) you may need an "extern template" statement in your code in order to link to existing instances and silence Clang warnings (see #2036). + // e.g. " extern template IMGUI_API float RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, float v); " + template IMGUI_API float ScaleRatioFromValueT(ImGuiDataType data_type, T v, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); + template IMGUI_API T ScaleValueFromRatioT(ImGuiDataType data_type, float t, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); + template IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, T v_min, T v_max, const char* format, ImGuiSliderFlags flags); + template IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, T v_min, T v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); + template IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v); + template IMGUI_API bool CheckboxFlagsT(const char* label, T* flags, T flags_value); + + // Data type helpers + IMGUI_API const ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType data_type); + IMGUI_API int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format); + IMGUI_API void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2); + IMGUI_API bool DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format); + IMGUI_API int DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2); + IMGUI_API bool DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max); + + // InputText + IMGUI_API bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API void InputTextDeactivateHook(ImGuiID id); + IMGUI_API bool TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags); + IMGUI_API bool TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min = NULL, const void* p_clamp_max = NULL); + inline bool TempInputIsActive(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.ActiveId == id && g.TempInputId == id); } + inline ImGuiInputTextState* GetInputTextState(ImGuiID id) { ImGuiContext& g = *GImGui; return (id != 0 && g.InputTextState.ID == id) ? &g.InputTextState : NULL; } // Get input text state if active + + // Color + IMGUI_API void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags); + IMGUI_API void ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags); + IMGUI_API void ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags); + + // Plot + IMGUI_API int PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2& size_arg); + + // Shade functions (write over already created vertices) + IMGUI_API void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1); + IMGUI_API void ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp); + IMGUI_API void ShadeVertsTransformPos(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& pivot_in, float cos_a, float sin_a, const ImVec2& pivot_out); + + // Garbage collection + IMGUI_API void GcCompactTransientMiscBuffers(); + IMGUI_API void GcCompactTransientWindowBuffers(ImGuiWindow* window); + IMGUI_API void GcAwakeTransientWindowBuffers(ImGuiWindow* window); + + // Debug Log + IMGUI_API void DebugLog(const char* fmt, ...) IM_FMTARGS(1); + IMGUI_API void DebugLogV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void DebugAllocHook(ImGuiDebugAllocInfo* info, int frame_count, void* ptr, size_t size); // size >= 0 : alloc, size = -1 : free + + // Debug Tools + IMGUI_API void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); + IMGUI_API void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); + IMGUI_API void ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + IMGUI_API void DebugDrawCursorPos(ImU32 col = IM_COL32(255, 0, 0, 255)); + IMGUI_API void DebugDrawLineExtents(ImU32 col = IM_COL32(255, 0, 0, 255)); + IMGUI_API void DebugDrawItemRect(ImU32 col = IM_COL32(255, 0, 0, 255)); + IMGUI_API void DebugLocateItem(ImGuiID target_id); // Call sparingly: only 1 at the same time! + IMGUI_API void DebugLocateItemOnHover(ImGuiID target_id); // Only call on reaction to a mouse Hover: because only 1 at the same time! + IMGUI_API void DebugLocateItemResolveWithLastItem(); + inline void DebugStartItemPicker() { ImGuiContext& g = *GImGui; g.DebugItemPickerActive = true; } + IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); + IMGUI_API void DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end); + IMGUI_API void DebugNodeColumns(ImGuiOldColumns* columns); + IMGUI_API void DebugNodeDockNode(ImGuiDockNode* node, const char* label); + IMGUI_API void DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label); + IMGUI_API void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb); + IMGUI_API void DebugNodeFont(ImFont* font); + IMGUI_API void DebugNodeFontGlyph(ImFont* font, const ImFontGlyph* glyph); + IMGUI_API void DebugNodeStorage(ImGuiStorage* storage, const char* label); + IMGUI_API void DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label); + IMGUI_API void DebugNodeTable(ImGuiTable* table); + IMGUI_API void DebugNodeTableSettings(ImGuiTableSettings* settings); + IMGUI_API void DebugNodeInputTextState(ImGuiInputTextState* state); + IMGUI_API void DebugNodeTypingSelectState(ImGuiTypingSelectState* state); + IMGUI_API void DebugNodeWindow(ImGuiWindow* window, const char* label); + IMGUI_API void DebugNodeWindowSettings(ImGuiWindowSettings* settings); + IMGUI_API void DebugNodeWindowsList(ImVector* windows, const char* label); + IMGUI_API void DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack); + IMGUI_API void DebugNodeViewport(ImGuiViewportP* viewport); + IMGUI_API void DebugRenderKeyboardPreview(ImDrawList* draw_list); + IMGUI_API void DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb); + + // Obsolete functions +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void SetItemUsingMouseWheel() { SetItemKeyOwner(ImGuiKey_MouseWheelY); } // Changed in 1.89 + inline bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0) { return TreeNodeUpdateNextOpen(id, flags); } // Renamed in 1.89 + + // Refactored focus/nav/tabbing system in 1.82 and 1.84. If you have old/custom copy-and-pasted widgets that used FocusableItemRegister(): + // (Old) IMGUI_VERSION_NUM < 18209: using 'ItemAdd(....)' and 'bool tab_focused = FocusableItemRegister(...)' + // (Old) IMGUI_VERSION_NUM >= 18209: using 'ItemAdd(..., ImGuiItemAddFlags_Focusable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_Focused) != 0' + // (New) IMGUI_VERSION_NUM >= 18413: using 'ItemAdd(..., ImGuiItemFlags_Inputable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_FocusedTabbing) != 0 || (g.NavActivateId == id && (g.NavActivateFlags & ImGuiActivateFlags_PreferInput))' (WIP) + // Widget code are simplified as there's no need to call FocusableItemUnregister() while managing the transition from regular widget to TempInputText() + inline bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id) { IM_ASSERT(0); IM_UNUSED(window); IM_UNUSED(id); return false; } // -> pass ImGuiItemAddFlags_Inputable flag to ItemAdd() + inline void FocusableItemUnregister(ImGuiWindow* window) { IM_ASSERT(0); IM_UNUSED(window); } // -> unnecessary: TempInputText() uses ImGuiInputTextFlags_MergedItem +#endif +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { IM_ASSERT(IsNamedKey(key)); return IsKeyPressed(key, repeat); } // Removed in 1.87: Mapping from named key is always identity! +#endif + +} // namespace ImGui + + +//----------------------------------------------------------------------------- +// [SECTION] ImFontAtlas internal API +//----------------------------------------------------------------------------- + +// This structure is likely to evolve as we add support for incremental atlas updates +struct ImFontBuilderIO +{ + bool (*FontBuilder_Build)(ImFontAtlas* atlas); +}; + +// Helper for font builder +#ifdef IMGUI_ENABLE_STB_TRUETYPE +IMGUI_API const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype(); +#endif +IMGUI_API void ImFontAtlasUpdateConfigDataPointers(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildInit(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); +IMGUI_API void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque); +IMGUI_API void ImFontAtlasBuildFinish(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value); +IMGUI_API void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value); +IMGUI_API void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_multiply_factor); +IMGUI_API void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride); + +//----------------------------------------------------------------------------- +// [SECTION] Test Engine specific hooks (imgui_test_engine) +//----------------------------------------------------------------------------- + +#ifdef IMGUI_ENABLE_TEST_ENGINE +extern void ImGuiTestEngineHook_ItemAdd(ImGuiContext* ctx, ImGuiID id, const ImRect& bb, const ImGuiLastItemData* item_data); // item_data may be NULL +extern void ImGuiTestEngineHook_ItemInfo(ImGuiContext* ctx, ImGuiID id, const char* label, ImGuiItemStatusFlags flags); +extern void ImGuiTestEngineHook_Log(ImGuiContext* ctx, const char* fmt, ...); +extern const char* ImGuiTestEngine_FindItemDebugLabel(ImGuiContext* ctx, ImGuiID id); + +// In IMGUI_VERSION_NUM >= 18934: changed IMGUI_TEST_ENGINE_ITEM_ADD(bb,id) to IMGUI_TEST_ENGINE_ITEM_ADD(id,bb,item_data); +#define IMGUI_TEST_ENGINE_ITEM_ADD(_ID,_BB,_ITEM_DATA) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemAdd(&g, _ID, _BB, _ITEM_DATA) // Register item bounding box +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemInfo(&g, _ID, _LABEL, _FLAGS) // Register item label and status flags (optional) +#define IMGUI_TEST_ENGINE_LOG(_FMT,...) if (g.TestEngineHookItems) ImGuiTestEngineHook_Log(&g, _FMT, __VA_ARGS__) // Custom log entry from user land into test log +#else +#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) ((void)0) +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) ((void)g) +#endif + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#elif defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#ifdef _MSC_VER +#pragma warning (pop) +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/imgui_tables.cpp b/HexaGen.Tests/cpp2c/imgui/imgui_tables.cpp new file mode 100644 index 0000000..3d8d3cf --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/imgui_tables.cpp @@ -0,0 +1,4329 @@ +// dear imgui, v1.90 WIP +// (tables and columns code) + +/* + +Index of this file: + +// [SECTION] Commentary +// [SECTION] Header mess +// [SECTION] Tables: Main code +// [SECTION] Tables: Simple accessors +// [SECTION] Tables: Row changes +// [SECTION] Tables: Columns changes +// [SECTION] Tables: Columns width management +// [SECTION] Tables: Drawing +// [SECTION] Tables: Sorting +// [SECTION] Tables: Headers +// [SECTION] Tables: Context Menu +// [SECTION] Tables: Settings (.ini data) +// [SECTION] Tables: Garbage Collection +// [SECTION] Tables: Debugging +// [SECTION] Columns, BeginColumns, EndColumns, etc. + +*/ + +// Navigating this file: +// - In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. + +//----------------------------------------------------------------------------- +// [SECTION] Commentary +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// Typical tables call flow: (root level is generally public API): +//----------------------------------------------------------------------------- +// - BeginTable() user begin into a table +// | BeginChild() - (if ScrollX/ScrollY is set) +// | TableBeginInitMemory() - first time table is used +// | TableResetSettings() - on settings reset +// | TableLoadSettings() - on settings load +// | TableBeginApplyRequests() - apply queued resizing/reordering/hiding requests +// | - TableSetColumnWidth() - apply resizing width (for mouse resize, often requested by previous frame) +// | - TableUpdateColumnsWeightFromWidth()- recompute columns weights (of stretch columns) from their respective width +// - TableSetupColumn() user submit columns details (optional) +// - TableSetupScrollFreeze() user submit scroll freeze information (optional) +//----------------------------------------------------------------------------- +// - TableUpdateLayout() [Internal] followup to BeginTable(): setup everything: widths, columns positions, clipping rectangles. Automatically called by the FIRST call to TableNextRow() or TableHeadersRow(). +// | TableSetupDrawChannels() - setup ImDrawList channels +// | TableUpdateBorders() - detect hovering columns for resize, ahead of contents submission +// | TableDrawContextMenu() - draw right-click context menu +//----------------------------------------------------------------------------- +// - TableHeadersRow() or TableHeader() user submit a headers row (optional) +// | TableSortSpecsClickColumn() - when left-clicked: alter sort order and sort direction +// | TableOpenContextMenu() - when right-clicked: trigger opening of the default context menu +// - TableGetSortSpecs() user queries updated sort specs (optional, generally after submitting headers) +// - TableNextRow() user begin into a new row (also automatically called by TableHeadersRow()) +// | TableEndRow() - finish existing row +// | TableBeginRow() - add a new row +// - TableSetColumnIndex() / TableNextColumn() user begin into a cell +// | TableEndCell() - close existing column/cell +// | TableBeginCell() - enter into current column/cell +// - [...] user emit contents +//----------------------------------------------------------------------------- +// - EndTable() user ends the table +// | TableDrawBorders() - draw outer borders, inner vertical borders +// | TableMergeDrawChannels() - merge draw channels if clipping isn't required +// | EndChild() - (if ScrollX/ScrollY is set) +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// TABLE SIZING +//----------------------------------------------------------------------------- +// (Read carefully because this is subtle but it does make sense!) +//----------------------------------------------------------------------------- +// About 'outer_size': +// Its meaning needs to differ slightly depending on if we are using ScrollX/ScrollY flags. +// Default value is ImVec2(0.0f, 0.0f). +// X +// - outer_size.x <= 0.0f -> Right-align from window/work-rect right-most edge. With -FLT_MIN or 0.0f will align exactly on right-most edge. +// - outer_size.x > 0.0f -> Set Fixed width. +// Y with ScrollX/ScrollY disabled: we output table directly in current window +// - outer_size.y < 0.0f -> Bottom-align (but will auto extend, unless _NoHostExtendY is set). Not meaningful if parent window can vertically scroll. +// - outer_size.y = 0.0f -> No minimum height (but will auto extend, unless _NoHostExtendY is set) +// - outer_size.y > 0.0f -> Set Minimum height (but will auto extend, unless _NoHostExtendY is set) +// Y with ScrollX/ScrollY enabled: using a child window for scrolling +// - outer_size.y < 0.0f -> Bottom-align. Not meaningful if parent window can vertically scroll. +// - outer_size.y = 0.0f -> Bottom-align, consistent with BeginChild(). Not recommended unless table is last item in parent window. +// - outer_size.y > 0.0f -> Set Exact height. Recommended when using Scrolling on any axis. +//----------------------------------------------------------------------------- +// Outer size is also affected by the NoHostExtendX/NoHostExtendY flags. +// Important to note how the two flags have slightly different behaviors! +// - ImGuiTableFlags_NoHostExtendX -> Make outer width auto-fit to columns (overriding outer_size.x value). Only available when ScrollX/ScrollY are disabled and Stretch columns are not used. +// - ImGuiTableFlags_NoHostExtendY -> Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY is disabled. Data below the limit will be clipped and not visible. +// In theory ImGuiTableFlags_NoHostExtendY could be the default and any non-scrolling tables with outer_size.y != 0.0f would use exact height. +// This would be consistent but perhaps less useful and more confusing (as vertically clipped items are not useful and not easily noticeable). +//----------------------------------------------------------------------------- +// About 'inner_width': +// With ScrollX disabled: +// - inner_width -> *ignored* +// With ScrollX enabled: +// - inner_width < 0.0f -> *illegal* fit in known width (right align from outer_size.x) <-- weird +// - inner_width = 0.0f -> fit in outer_width: Fixed size columns will take space they need (if avail, otherwise shrink down), Stretch columns becomes Fixed columns. +// - inner_width > 0.0f -> override scrolling width, generally to be larger than outer_size.x. Fixed column take space they need (if avail, otherwise shrink down), Stretch columns share remaining space! +//----------------------------------------------------------------------------- +// Details: +// - If you want to use Stretch columns with ScrollX, you generally need to specify 'inner_width' otherwise the concept +// of "available space" doesn't make sense. +// - Even if not really useful, we allow 'inner_width < outer_size.x' for consistency and to facilitate understanding +// of what the value does. +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// COLUMNS SIZING POLICIES +// (Reference: ImGuiTableFlags_SizingXXX flags and ImGuiTableColumnFlags_WidthXXX flags) +//----------------------------------------------------------------------------- +// About overriding column sizing policy and width/weight with TableSetupColumn(): +// We use a default parameter of -1 for 'init_width'/'init_weight'. +// - with ImGuiTableColumnFlags_WidthFixed, init_width <= 0 (default) --> width is automatic +// - with ImGuiTableColumnFlags_WidthFixed, init_width > 0 (explicit) --> width is custom +// - with ImGuiTableColumnFlags_WidthStretch, init_weight <= 0 (default) --> weight is 1.0f +// - with ImGuiTableColumnFlags_WidthStretch, init_weight > 0 (explicit) --> weight is custom +// Widths are specified _without_ CellPadding. If you specify a width of 100.0f, the column will be cover (100.0f + Padding * 2.0f) +// and you can fit a 100.0f wide item in it without clipping and with padding honored. +//----------------------------------------------------------------------------- +// About default sizing policy (if you don't specify a ImGuiTableColumnFlags_WidthXXXX flag) +// - with Table policy ImGuiTableFlags_SizingFixedFit --> default Column policy is ImGuiTableColumnFlags_WidthFixed, default Width is equal to contents width +// - with Table policy ImGuiTableFlags_SizingFixedSame --> default Column policy is ImGuiTableColumnFlags_WidthFixed, default Width is max of all contents width +// - with Table policy ImGuiTableFlags_SizingStretchSame --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is 1.0f +// - with Table policy ImGuiTableFlags_SizingStretchWeight --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is proportional to contents +// Default Width and default Weight can be overridden when calling TableSetupColumn(). +//----------------------------------------------------------------------------- +// About mixing Fixed/Auto and Stretch columns together: +// - the typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. +// - using mixed policies with ScrollX does not make much sense, as using Stretch columns with ScrollX does not make much sense in the first place! +// that is, unless 'inner_width' is passed to BeginTable() to explicitly provide a total width to layout columns in. +// - when using ImGuiTableFlags_SizingFixedSame with mixed columns, only the Fixed/Auto columns will match their widths to the width of the maximum contents. +// - when using ImGuiTableFlags_SizingStretchSame with mixed columns, only the Stretch columns will match their weights/widths. +//----------------------------------------------------------------------------- +// About using column width: +// If a column is manually resizable or has a width specified with TableSetupColumn(): +// - you may use GetContentRegionAvail().x to query the width available in a given column. +// - right-side alignment features such as SetNextItemWidth(-x) or PushItemWidth(-x) will rely on this width. +// If the column is not resizable and has no width specified with TableSetupColumn(): +// - its width will be automatic and be set to the max of items submitted. +// - therefore you generally cannot have ALL items of the columns use e.g. SetNextItemWidth(-FLT_MIN). +// - but if the column has one or more items of known/fixed size, this will become the reference width used by SetNextItemWidth(-FLT_MIN). +//----------------------------------------------------------------------------- + + +//----------------------------------------------------------------------------- +// TABLES CLIPPING/CULLING +//----------------------------------------------------------------------------- +// About clipping/culling of Rows in Tables: +// - For large numbers of rows, it is recommended you use ImGuiListClipper to submit only visible rows. +// ImGuiListClipper is reliant on the fact that rows are of equal height. +// See 'Demo->Tables->Vertical Scrolling' or 'Demo->Tables->Advanced' for a demo of using the clipper. +// - Note that auto-resizing columns don't play well with using the clipper. +// By default a table with _ScrollX but without _Resizable will have column auto-resize. +// So, if you want to use the clipper, make sure to either enable _Resizable, either setup columns width explicitly with _WidthFixed. +//----------------------------------------------------------------------------- +// About clipping/culling of Columns in Tables: +// - Both TableSetColumnIndex() and TableNextColumn() return true when the column is visible or performing +// width measurements. Otherwise, you may skip submitting the contents of a cell/column, BUT ONLY if you know +// it is not going to contribute to row height. +// In many situations, you may skip submitting contents for every column but one (e.g. the first one). +// - Case A: column is not hidden by user, and at least partially in sight (most common case). +// - Case B: column is clipped / out of sight (because of scrolling or parent ClipRect): TableNextColumn() return false as a hint but we still allow layout output. +// - Case C: column is hidden explicitly by the user (e.g. via the context menu, or _DefaultHide column flag, etc.). +// +// [A] [B] [C] +// TableNextColumn(): true false false -> [userland] when TableNextColumn() / TableSetColumnIndex() returns false, user can skip submitting items but only if the column doesn't contribute to row height. +// SkipItems: false false true -> [internal] when SkipItems is true, most widgets will early out if submitted, resulting is no layout output. +// ClipRect: normal zero-width zero-width -> [internal] when ClipRect is zero, ItemAdd() will return false and most widgets will early out mid-way. +// ImDrawList output: normal dummy dummy -> [internal] when using the dummy channel, ImDrawList submissions (if any) will be wasted (because cliprect is zero-width anyway). +// +// - We need to distinguish those cases because non-hidden columns that are clipped outside of scrolling bounds should still contribute their height to the row. +// However, in the majority of cases, the contribution to row height is the same for all columns, or the tallest cells are known by the programmer. +//----------------------------------------------------------------------------- +// About clipping/culling of whole Tables: +// - Scrolling tables with a known outer size can be clipped earlier as BeginTable() will return false. +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_internal.h" + +// System includes +#include // intptr_t + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') +#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Tables: Main code +//----------------------------------------------------------------------------- +// - TableFixFlags() [Internal] +// - TableFindByID() [Internal] +// - BeginTable() +// - BeginTableEx() [Internal] +// - TableBeginInitMemory() [Internal] +// - TableBeginApplyRequests() [Internal] +// - TableSetupColumnFlags() [Internal] +// - TableUpdateLayout() [Internal] +// - TableUpdateBorders() [Internal] +// - EndTable() +// - TableSetupColumn() +// - TableSetupScrollFreeze() +//----------------------------------------------------------------------------- + +// Configuration +static const int TABLE_DRAW_CHANNEL_BG0 = 0; +static const int TABLE_DRAW_CHANNEL_BG2_FROZEN = 1; +static const int TABLE_DRAW_CHANNEL_NOCLIP = 2; // When using ImGuiTableFlags_NoClip (this becomes the last visible channel) +static const float TABLE_BORDER_SIZE = 1.0f; // FIXME-TABLE: Currently hard-coded because of clipping assumptions with outer borders rendering. +static const float TABLE_RESIZE_SEPARATOR_HALF_THICKNESS = 4.0f; // Extend outside inner borders. +static const float TABLE_RESIZE_SEPARATOR_FEEDBACK_TIMER = 0.06f; // Delay/timer before making the hover feedback (color+cursor) visible because tables/columns tends to be more cramped. + +// Helper +inline ImGuiTableFlags TableFixFlags(ImGuiTableFlags flags, ImGuiWindow* outer_window) +{ + // Adjust flags: set default sizing policy + if ((flags & ImGuiTableFlags_SizingMask_) == 0) + flags |= ((flags & ImGuiTableFlags_ScrollX) || (outer_window->Flags & ImGuiWindowFlags_AlwaysAutoResize)) ? ImGuiTableFlags_SizingFixedFit : ImGuiTableFlags_SizingStretchSame; + + // Adjust flags: enable NoKeepColumnsVisible when using ImGuiTableFlags_SizingFixedSame + if ((flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableFlags_NoKeepColumnsVisible; + + // Adjust flags: enforce borders when resizable + if (flags & ImGuiTableFlags_Resizable) + flags |= ImGuiTableFlags_BordersInnerV; + + // Adjust flags: disable NoHostExtendX/NoHostExtendY if we have any scrolling going on + if (flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) + flags &= ~(ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_NoHostExtendY); + + // Adjust flags: NoBordersInBodyUntilResize takes priority over NoBordersInBody + if (flags & ImGuiTableFlags_NoBordersInBodyUntilResize) + flags &= ~ImGuiTableFlags_NoBordersInBody; + + // Adjust flags: disable saved settings if there's nothing to save + if ((flags & (ImGuiTableFlags_Resizable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Sortable)) == 0) + flags |= ImGuiTableFlags_NoSavedSettings; + + // Inherit _NoSavedSettings from top-level window (child windows always have _NoSavedSettings set) + if (outer_window->RootWindow->Flags & ImGuiWindowFlags_NoSavedSettings) + flags |= ImGuiTableFlags_NoSavedSettings; + + return flags; +} + +ImGuiTable* ImGui::TableFindByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + return g.Tables.GetByKey(id); +} + +// Read about "TABLE SIZING" at the top of this file. +bool ImGui::BeginTable(const char* str_id, int columns_count, ImGuiTableFlags flags, const ImVec2& outer_size, float inner_width) +{ + ImGuiID id = GetID(str_id); + return BeginTableEx(str_id, id, columns_count, flags, outer_size, inner_width); +} + +bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags, const ImVec2& outer_size, float inner_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* outer_window = GetCurrentWindow(); + if (outer_window->SkipItems) // Consistent with other tables + beneficial side effect that assert on miscalling EndTable() will be more visible. + return false; + + // Sanity checks + IM_ASSERT(columns_count > 0 && columns_count < IMGUI_TABLE_MAX_COLUMNS); + if (flags & ImGuiTableFlags_ScrollX) + IM_ASSERT(inner_width >= 0.0f); + + // If an outer size is specified ahead we will be able to early out when not visible. Exact clipping criteria may evolve. + const bool use_child_window = (flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) != 0; + const ImVec2 avail_size = GetContentRegionAvail(); + const ImVec2 actual_outer_size = CalcItemSize(outer_size, ImMax(avail_size.x, 1.0f), use_child_window ? ImMax(avail_size.y, 1.0f) : 0.0f); + const ImRect outer_rect(outer_window->DC.CursorPos, outer_window->DC.CursorPos + actual_outer_size); + const bool outer_window_is_measuring_size = (outer_window->AutoFitFramesX > 0) || (outer_window->AutoFitFramesY > 0); // Doesn't apply to auto-fitting windows! + if (use_child_window && IsClippedEx(outer_rect, 0) && !outer_window_is_measuring_size) + { + ItemSize(outer_rect); + return false; + } + + // Acquire storage for the table + ImGuiTable* table = g.Tables.GetOrAddByKey(id); + const ImGuiTableFlags table_last_flags = table->Flags; + + // Acquire temporary buffers + const int table_idx = g.Tables.GetIndex(table); + if (++g.TablesTempDataStacked > g.TablesTempData.Size) + g.TablesTempData.resize(g.TablesTempDataStacked, ImGuiTableTempData()); + ImGuiTableTempData* temp_data = table->TempData = &g.TablesTempData[g.TablesTempDataStacked - 1]; + temp_data->TableIndex = table_idx; + table->DrawSplitter = &table->TempData->DrawSplitter; + table->DrawSplitter->Clear(); + + // Fix flags + table->IsDefaultSizingPolicy = (flags & ImGuiTableFlags_SizingMask_) == 0; + flags = TableFixFlags(flags, outer_window); + + // Initialize + const int previous_frame_active = table->LastFrameActive; + const int instance_no = (previous_frame_active != g.FrameCount) ? 0 : table->InstanceCurrent + 1; + table->ID = id; + table->Flags = flags; + table->LastFrameActive = g.FrameCount; + table->OuterWindow = table->InnerWindow = outer_window; + table->ColumnsCount = columns_count; + table->IsLayoutLocked = false; + table->InnerWidth = inner_width; + temp_data->UserOuterSize = outer_size; + + // Instance data (for instance 0, TableID == TableInstanceID) + ImGuiID instance_id; + table->InstanceCurrent = (ImS16)instance_no; + if (instance_no > 0) + { + IM_ASSERT(table->ColumnsCount == columns_count && "BeginTable(): Cannot change columns count mid-frame while preserving same ID"); + if (table->InstanceDataExtra.Size < instance_no) + table->InstanceDataExtra.push_back(ImGuiTableInstanceData()); + instance_id = GetIDWithSeed(instance_no, GetIDWithSeed("##Instances", NULL, id)); // Push "##Instances" followed by (int)instance_no in ID stack. + } + else + { + instance_id = id; + } + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + table_instance->TableInstanceID = instance_id; + + // When not using a child window, WorkRect.Max will grow as we append contents. + if (use_child_window) + { + // Ensure no vertical scrollbar appears if we only want horizontal one, to make flag consistent + // (we have no other way to disable vertical scrollbar of a window while keeping the horizontal one showing) + ImVec2 override_content_size(FLT_MAX, FLT_MAX); + if ((flags & ImGuiTableFlags_ScrollX) && !(flags & ImGuiTableFlags_ScrollY)) + override_content_size.y = FLT_MIN; + + // Ensure specified width (when not specified, Stretched columns will act as if the width == OuterWidth and + // never lead to any scrolling). We don't handle inner_width < 0.0f, we could potentially use it to right-align + // based on the right side of the child window work rect, which would require knowing ahead if we are going to + // have decoration taking horizontal spaces (typically a vertical scrollbar). + if ((flags & ImGuiTableFlags_ScrollX) && inner_width > 0.0f) + override_content_size.x = inner_width; + + if (override_content_size.x != FLT_MAX || override_content_size.y != FLT_MAX) + SetNextWindowContentSize(ImVec2(override_content_size.x != FLT_MAX ? override_content_size.x : 0.0f, override_content_size.y != FLT_MAX ? override_content_size.y : 0.0f)); + + // Reset scroll if we are reactivating it + if ((table_last_flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) == 0) + SetNextWindowScroll(ImVec2(0.0f, 0.0f)); + + // Create scrolling region (without border and zero window padding) + ImGuiWindowFlags child_flags = (flags & ImGuiTableFlags_ScrollX) ? ImGuiWindowFlags_HorizontalScrollbar : ImGuiWindowFlags_None; + BeginChildEx(name, instance_id, outer_rect.GetSize(), false, child_flags); + table->InnerWindow = g.CurrentWindow; + table->WorkRect = table->InnerWindow->WorkRect; + table->OuterRect = table->InnerWindow->Rect(); + table->InnerRect = table->InnerWindow->InnerRect; + IM_ASSERT(table->InnerWindow->WindowPadding.x == 0.0f && table->InnerWindow->WindowPadding.y == 0.0f && table->InnerWindow->WindowBorderSize == 0.0f); + + // Allow submitting when host is measuring + if (table->InnerWindow->SkipItems && outer_window_is_measuring_size) + table->InnerWindow->SkipItems = false; + + // When using multiple instances, ensure they have the same amount of horizontal decorations (aka vertical scrollbar) so stretched columns can be aligned) + if (instance_no == 0) + { + table->HasScrollbarYPrev = table->HasScrollbarYCurr; + table->HasScrollbarYCurr = false; + } + table->HasScrollbarYCurr |= table->InnerWindow->ScrollbarY; + } + else + { + // For non-scrolling tables, WorkRect == OuterRect == InnerRect. + // But at this point we do NOT have a correct value for .Max.y (unless a height has been explicitly passed in). It will only be updated in EndTable(). + table->WorkRect = table->OuterRect = table->InnerRect = outer_rect; + } + + // Push a standardized ID for both child-using and not-child-using tables + PushOverrideID(id); + if (instance_no > 0) + PushOverrideID(instance_id); // FIXME: Somehow this is not resolved by stack-tool, even tho GetIDWithSeed() submitted the symbol. + + // Backup a copy of host window members we will modify + ImGuiWindow* inner_window = table->InnerWindow; + table->HostIndentX = inner_window->DC.Indent.x; + table->HostClipRect = inner_window->ClipRect; + table->HostSkipItems = inner_window->SkipItems; + temp_data->HostBackupWorkRect = inner_window->WorkRect; + temp_data->HostBackupParentWorkRect = inner_window->ParentWorkRect; + temp_data->HostBackupColumnsOffset = outer_window->DC.ColumnsOffset; + temp_data->HostBackupPrevLineSize = inner_window->DC.PrevLineSize; + temp_data->HostBackupCurrLineSize = inner_window->DC.CurrLineSize; + temp_data->HostBackupCursorMaxPos = inner_window->DC.CursorMaxPos; + temp_data->HostBackupItemWidth = outer_window->DC.ItemWidth; + temp_data->HostBackupItemWidthStackSize = outer_window->DC.ItemWidthStack.Size; + inner_window->DC.PrevLineSize = inner_window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + + // Make left and top borders not overlap our contents by offsetting HostClipRect (#6765) + // (we normally shouldn't alter HostClipRect as we rely on TableMergeDrawChannels() expanding non-clipped column toward the + // limits of that rectangle, in order for ImDrawListSplitter::Merge() to merge the draw commands. However since the overlap + // problem only affect scrolling tables in this case we can get away with doing it without extra cost). + if (inner_window != outer_window) + { + if (flags & ImGuiTableFlags_BordersOuterV) + table->HostClipRect.Min.x = ImMin(table->HostClipRect.Min.x + TABLE_BORDER_SIZE, table->HostClipRect.Max.x); + if (flags & ImGuiTableFlags_BordersOuterH) + table->HostClipRect.Min.y = ImMin(table->HostClipRect.Min.y + TABLE_BORDER_SIZE, table->HostClipRect.Max.y); + } + + // Padding and Spacing + // - None ........Content..... Pad .....Content........ + // - PadOuter | Pad ..Content..... Pad .....Content.. Pad | + // - PadInner ........Content.. Pad | Pad ..Content........ + // - PadOuter+PadInner | Pad ..Content.. Pad | Pad ..Content.. Pad | + const bool pad_outer_x = (flags & ImGuiTableFlags_NoPadOuterX) ? false : (flags & ImGuiTableFlags_PadOuterX) ? true : (flags & ImGuiTableFlags_BordersOuterV) != 0; + const bool pad_inner_x = (flags & ImGuiTableFlags_NoPadInnerX) ? false : true; + const float inner_spacing_for_border = (flags & ImGuiTableFlags_BordersInnerV) ? TABLE_BORDER_SIZE : 0.0f; + const float inner_spacing_explicit = (pad_inner_x && (flags & ImGuiTableFlags_BordersInnerV) == 0) ? g.Style.CellPadding.x : 0.0f; + const float inner_padding_explicit = (pad_inner_x && (flags & ImGuiTableFlags_BordersInnerV) != 0) ? g.Style.CellPadding.x : 0.0f; + table->CellSpacingX1 = inner_spacing_explicit + inner_spacing_for_border; + table->CellSpacingX2 = inner_spacing_explicit; + table->CellPaddingX = inner_padding_explicit; + + const float outer_padding_for_border = (flags & ImGuiTableFlags_BordersOuterV) ? TABLE_BORDER_SIZE : 0.0f; + const float outer_padding_explicit = pad_outer_x ? g.Style.CellPadding.x : 0.0f; + table->OuterPaddingX = (outer_padding_for_border + outer_padding_explicit) - table->CellPaddingX; + + table->CurrentColumn = -1; + table->CurrentRow = -1; + table->RowBgColorCounter = 0; + table->LastRowFlags = ImGuiTableRowFlags_None; + table->InnerClipRect = (inner_window == outer_window) ? table->WorkRect : inner_window->ClipRect; + table->InnerClipRect.ClipWith(table->WorkRect); // We need this to honor inner_width + table->InnerClipRect.ClipWithFull(table->HostClipRect); + table->InnerClipRect.Max.y = (flags & ImGuiTableFlags_NoHostExtendY) ? ImMin(table->InnerClipRect.Max.y, inner_window->WorkRect.Max.y) : inner_window->ClipRect.Max.y; + + table->RowPosY1 = table->RowPosY2 = table->WorkRect.Min.y; // This is needed somehow + table->RowTextBaseline = 0.0f; // This will be cleared again by TableBeginRow() + table->RowCellPaddingY = 0.0f; + table->FreezeRowsRequest = table->FreezeRowsCount = 0; // This will be setup by TableSetupScrollFreeze(), if any + table->FreezeColumnsRequest = table->FreezeColumnsCount = 0; + table->IsUnfrozenRows = true; + table->DeclColumnsCount = table->AngledHeadersCount = 0; + if (previous_frame_active + 1 < g.FrameCount) + table->IsActiveIdInTable = false; + temp_data->AngledheadersExtraWidth = 0.0f; + + // Using opaque colors facilitate overlapping lines of the grid, otherwise we'd need to improve TableDrawBorders() + table->BorderColorStrong = GetColorU32(ImGuiCol_TableBorderStrong); + table->BorderColorLight = GetColorU32(ImGuiCol_TableBorderLight); + + // Make table current + g.CurrentTable = table; + outer_window->DC.NavIsScrollPushableX = false; // Shortcut for NavUpdateCurrentWindowIsScrollPushableX(); + outer_window->DC.CurrentTableIdx = table_idx; + if (inner_window != outer_window) // So EndChild() within the inner window can restore the table properly. + inner_window->DC.CurrentTableIdx = table_idx; + + if ((table_last_flags & ImGuiTableFlags_Reorderable) && (flags & ImGuiTableFlags_Reorderable) == 0) + table->IsResetDisplayOrderRequest = true; + + // Mark as used to avoid GC + if (table_idx >= g.TablesLastTimeActive.Size) + g.TablesLastTimeActive.resize(table_idx + 1, -1.0f); + g.TablesLastTimeActive[table_idx] = (float)g.Time; + temp_data->LastTimeActive = (float)g.Time; + table->MemoryCompacted = false; + + // Setup memory buffer (clear data if columns count changed) + ImGuiTableColumn* old_columns_to_preserve = NULL; + void* old_columns_raw_data = NULL; + const int old_columns_count = table->Columns.size(); + if (old_columns_count != 0 && old_columns_count != columns_count) + { + // Attempt to preserve width on column count change (#4046) + old_columns_to_preserve = table->Columns.Data; + old_columns_raw_data = table->RawData; + table->RawData = NULL; + } + if (table->RawData == NULL) + { + TableBeginInitMemory(table, columns_count); + table->IsInitializing = table->IsSettingsRequestLoad = true; + } + if (table->IsResetAllRequest) + TableResetSettings(table); + if (table->IsInitializing) + { + // Initialize + table->SettingsOffset = -1; + table->IsSortSpecsDirty = true; + table->InstanceInteracted = -1; + table->ContextPopupColumn = -1; + table->ReorderColumn = table->ResizedColumn = table->LastResizedColumn = -1; + table->AutoFitSingleColumn = -1; + table->HoveredColumnBody = table->HoveredColumnBorder = -1; + for (int n = 0; n < columns_count; n++) + { + ImGuiTableColumn* column = &table->Columns[n]; + if (old_columns_to_preserve && n < old_columns_count) + { + // FIXME: We don't attempt to preserve column order in this path. + *column = old_columns_to_preserve[n]; + } + else + { + float width_auto = column->WidthAuto; + *column = ImGuiTableColumn(); + column->WidthAuto = width_auto; + column->IsPreserveWidthAuto = true; // Preserve WidthAuto when reinitializing a live table: not technically necessary but remove a visible flicker + column->IsEnabled = column->IsUserEnabled = column->IsUserEnabledNextFrame = true; + } + column->DisplayOrder = table->DisplayOrderToIndex[n] = (ImGuiTableColumnIdx)n; + } + } + if (old_columns_raw_data) + IM_FREE(old_columns_raw_data); + + // Load settings + if (table->IsSettingsRequestLoad) + TableLoadSettings(table); + + // Handle DPI/font resize + // This is designed to facilitate DPI changes with the assumption that e.g. style.CellPadding has been scaled as well. + // It will also react to changing fonts with mixed results. It doesn't need to be perfect but merely provide a decent transition. + // FIXME-DPI: Provide consistent standards for reference size. Perhaps using g.CurrentDpiScale would be more self explanatory. + // This is will lead us to non-rounded WidthRequest in columns, which should work but is a poorly tested path. + const float new_ref_scale_unit = g.FontSize; // g.Font->GetCharAdvance('A') ? + if (table->RefScale != 0.0f && table->RefScale != new_ref_scale_unit) + { + const float scale_factor = new_ref_scale_unit / table->RefScale; + //IMGUI_DEBUG_PRINT("[table] %08X RefScaleUnit %.3f -> %.3f, scaling width by %.3f\n", table->ID, table->RefScaleUnit, new_ref_scale_unit, scale_factor); + for (int n = 0; n < columns_count; n++) + table->Columns[n].WidthRequest = table->Columns[n].WidthRequest * scale_factor; + } + table->RefScale = new_ref_scale_unit; + + // Disable output until user calls TableNextRow() or TableNextColumn() leading to the TableUpdateLayout() call.. + // This is not strictly necessary but will reduce cases were "out of table" output will be misleading to the user. + // Because we cannot safely assert in EndTable() when no rows have been created, this seems like our best option. + inner_window->SkipItems = true; + + // Clear names + // At this point the ->NameOffset field of each column will be invalid until TableUpdateLayout() or the first call to TableSetupColumn() + if (table->ColumnsNames.Buf.Size > 0) + table->ColumnsNames.Buf.resize(0); + + // Apply queued resizing/reordering/hiding requests + TableBeginApplyRequests(table); + + return true; +} + +// For reference, the average total _allocation count_ for a table is: +// + 0 (for ImGuiTable instance, we are pooling allocations in g.Tables[]) +// + 1 (for table->RawData allocated below) +// + 1 (for table->ColumnsNames, if names are used) +// Shared allocations for the maximum number of simultaneously nested tables (generally a very small number) +// + 1 (for table->Splitter._Channels) +// + 2 * active_channels_count (for ImDrawCmd and ImDrawIdx buffers inside channels) +// Where active_channels_count is variable but often == columns_count or == columns_count + 1, see TableSetupDrawChannels() for details. +// Unused channels don't perform their +2 allocations. +void ImGui::TableBeginInitMemory(ImGuiTable* table, int columns_count) +{ + // Allocate single buffer for our arrays + const int columns_bit_array_size = (int)ImBitArrayGetStorageSizeInBytes(columns_count); + ImSpanAllocator<6> span_allocator; + span_allocator.Reserve(0, columns_count * sizeof(ImGuiTableColumn)); + span_allocator.Reserve(1, columns_count * sizeof(ImGuiTableColumnIdx)); + span_allocator.Reserve(2, columns_count * sizeof(ImGuiTableCellData), 4); + for (int n = 3; n < 6; n++) + span_allocator.Reserve(n, columns_bit_array_size); + table->RawData = IM_ALLOC(span_allocator.GetArenaSizeInBytes()); + memset(table->RawData, 0, span_allocator.GetArenaSizeInBytes()); + span_allocator.SetArenaBasePtr(table->RawData); + span_allocator.GetSpan(0, &table->Columns); + span_allocator.GetSpan(1, &table->DisplayOrderToIndex); + span_allocator.GetSpan(2, &table->RowCellData); + table->EnabledMaskByDisplayOrder = (ImU32*)span_allocator.GetSpanPtrBegin(3); + table->EnabledMaskByIndex = (ImU32*)span_allocator.GetSpanPtrBegin(4); + table->VisibleMaskByIndex = (ImU32*)span_allocator.GetSpanPtrBegin(5); +} + +// Apply queued resizing/reordering/hiding requests +void ImGui::TableBeginApplyRequests(ImGuiTable* table) +{ + // Handle resizing request + // (We process this in the TableBegin() of the first instance of each table) + // FIXME-TABLE: Contains columns if our work area doesn't allow for scrolling? + if (table->InstanceCurrent == 0) + { + if (table->ResizedColumn != -1 && table->ResizedColumnNextWidth != FLT_MAX) + TableSetColumnWidth(table->ResizedColumn, table->ResizedColumnNextWidth); + table->LastResizedColumn = table->ResizedColumn; + table->ResizedColumnNextWidth = FLT_MAX; + table->ResizedColumn = -1; + + // Process auto-fit for single column, which is a special case for stretch columns and fixed columns with FixedSame policy. + // FIXME-TABLE: Would be nice to redistribute available stretch space accordingly to other weights, instead of giving it all to siblings. + if (table->AutoFitSingleColumn != -1) + { + TableSetColumnWidth(table->AutoFitSingleColumn, table->Columns[table->AutoFitSingleColumn].WidthAuto); + table->AutoFitSingleColumn = -1; + } + } + + // Handle reordering request + // Note: we don't clear ReorderColumn after handling the request. + if (table->InstanceCurrent == 0) + { + if (table->HeldHeaderColumn == -1 && table->ReorderColumn != -1) + table->ReorderColumn = -1; + table->HeldHeaderColumn = -1; + if (table->ReorderColumn != -1 && table->ReorderColumnDir != 0) + { + // We need to handle reordering across hidden columns. + // In the configuration below, moving C to the right of E will lead to: + // ... C [D] E ---> ... [D] E C (Column name/index) + // ... 2 3 4 ... 2 3 4 (Display order) + const int reorder_dir = table->ReorderColumnDir; + IM_ASSERT(reorder_dir == -1 || reorder_dir == +1); + IM_ASSERT(table->Flags & ImGuiTableFlags_Reorderable); + ImGuiTableColumn* src_column = &table->Columns[table->ReorderColumn]; + ImGuiTableColumn* dst_column = &table->Columns[(reorder_dir == -1) ? src_column->PrevEnabledColumn : src_column->NextEnabledColumn]; + IM_UNUSED(dst_column); + const int src_order = src_column->DisplayOrder; + const int dst_order = dst_column->DisplayOrder; + src_column->DisplayOrder = (ImGuiTableColumnIdx)dst_order; + for (int order_n = src_order + reorder_dir; order_n != dst_order + reorder_dir; order_n += reorder_dir) + table->Columns[table->DisplayOrderToIndex[order_n]].DisplayOrder -= (ImGuiTableColumnIdx)reorder_dir; + IM_ASSERT(dst_column->DisplayOrder == dst_order - reorder_dir); + + // Display order is stored in both columns->IndexDisplayOrder and table->DisplayOrder[]. Rebuild later from the former. + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->DisplayOrderToIndex[table->Columns[column_n].DisplayOrder] = (ImGuiTableColumnIdx)column_n; + table->ReorderColumnDir = 0; + table->IsSettingsDirty = true; + } + } + + // Handle display order reset request + if (table->IsResetDisplayOrderRequest) + { + for (int n = 0; n < table->ColumnsCount; n++) + table->DisplayOrderToIndex[n] = table->Columns[n].DisplayOrder = (ImGuiTableColumnIdx)n; + table->IsResetDisplayOrderRequest = false; + table->IsSettingsDirty = true; + } +} + +// Adjust flags: default width mode + stretch columns are not allowed when auto extending +static void TableSetupColumnFlags(ImGuiTable* table, ImGuiTableColumn* column, ImGuiTableColumnFlags flags_in) +{ + ImGuiTableColumnFlags flags = flags_in; + + // Sizing Policy + if ((flags & ImGuiTableColumnFlags_WidthMask_) == 0) + { + const ImGuiTableFlags table_sizing_policy = (table->Flags & ImGuiTableFlags_SizingMask_); + if (table_sizing_policy == ImGuiTableFlags_SizingFixedFit || table_sizing_policy == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableColumnFlags_WidthFixed; + else + flags |= ImGuiTableColumnFlags_WidthStretch; + } + else + { + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiTableColumnFlags_WidthMask_)); // Check that only 1 of each set is used. + } + + // Resize + if ((table->Flags & ImGuiTableFlags_Resizable) == 0) + flags |= ImGuiTableColumnFlags_NoResize; + + // Sorting + if ((flags & ImGuiTableColumnFlags_NoSortAscending) && (flags & ImGuiTableColumnFlags_NoSortDescending)) + flags |= ImGuiTableColumnFlags_NoSort; + + // Indentation + if ((flags & ImGuiTableColumnFlags_IndentMask_) == 0) + flags |= (table->Columns.index_from_ptr(column) == 0) ? ImGuiTableColumnFlags_IndentEnable : ImGuiTableColumnFlags_IndentDisable; + + // Alignment + //if ((flags & ImGuiTableColumnFlags_AlignMask_) == 0) + // flags |= ImGuiTableColumnFlags_AlignCenter; + //IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiTableColumnFlags_AlignMask_)); // Check that only 1 of each set is used. + + // Preserve status flags + column->Flags = flags | (column->Flags & ImGuiTableColumnFlags_StatusMask_); + + // Build an ordered list of available sort directions + column->SortDirectionsAvailCount = column->SortDirectionsAvailMask = column->SortDirectionsAvailList = 0; + if (table->Flags & ImGuiTableFlags_Sortable) + { + int count = 0, mask = 0, list = 0; + if ((flags & ImGuiTableColumnFlags_PreferSortAscending) != 0 && (flags & ImGuiTableColumnFlags_NoSortAscending) == 0) { mask |= 1 << ImGuiSortDirection_Ascending; list |= ImGuiSortDirection_Ascending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortDescending) != 0 && (flags & ImGuiTableColumnFlags_NoSortDescending) == 0) { mask |= 1 << ImGuiSortDirection_Descending; list |= ImGuiSortDirection_Descending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortAscending) == 0 && (flags & ImGuiTableColumnFlags_NoSortAscending) == 0) { mask |= 1 << ImGuiSortDirection_Ascending; list |= ImGuiSortDirection_Ascending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortDescending) == 0 && (flags & ImGuiTableColumnFlags_NoSortDescending) == 0) { mask |= 1 << ImGuiSortDirection_Descending; list |= ImGuiSortDirection_Descending << (count << 1); count++; } + if ((table->Flags & ImGuiTableFlags_SortTristate) || count == 0) { mask |= 1 << ImGuiSortDirection_None; count++; } + column->SortDirectionsAvailList = (ImU8)list; + column->SortDirectionsAvailMask = (ImU8)mask; + column->SortDirectionsAvailCount = (ImU8)count; + ImGui::TableFixColumnSortDirection(table, column); + } +} + +// Layout columns for the frame. This is in essence the followup to BeginTable() and this is our largest function. +// Runs on the first call to TableNextRow(), to give a chance for TableSetupColumn() and other TableSetupXXXXX() functions to be called first. +// FIXME-TABLE: Our width (and therefore our WorkRect) will be minimal in the first frame for _WidthAuto columns. +// Increase feedback side-effect with widgets relying on WorkRect.Max.x... Maybe provide a default distribution for _WidthAuto columns? +void ImGui::TableUpdateLayout(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(table->IsLayoutLocked == false); + + const ImGuiTableFlags table_sizing_policy = (table->Flags & ImGuiTableFlags_SizingMask_); + table->IsDefaultDisplayOrder = true; + table->ColumnsEnabledCount = 0; + ImBitArrayClearAllBits(table->EnabledMaskByIndex, table->ColumnsCount); + ImBitArrayClearAllBits(table->EnabledMaskByDisplayOrder, table->ColumnsCount); + table->LeftMostEnabledColumn = -1; + table->MinColumnWidth = ImMax(1.0f, g.Style.FramePadding.x * 1.0f); // g.Style.ColumnsMinSpacing; // FIXME-TABLE + + // [Part 1] Apply/lock Enabled and Order states. Calculate auto/ideal width for columns. Count fixed/stretch columns. + // Process columns in their visible orders as we are building the Prev/Next indices. + int count_fixed = 0; // Number of columns that have fixed sizing policies + int count_stretch = 0; // Number of columns that have stretch sizing policies + int prev_visible_column_idx = -1; + bool has_auto_fit_request = false; + bool has_resizable = false; + float stretch_sum_width_auto = 0.0f; + float fixed_max_width_auto = 0.0f; + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + const int column_n = table->DisplayOrderToIndex[order_n]; + if (column_n != order_n) + table->IsDefaultDisplayOrder = false; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Clear column setup if not submitted by user. Currently we make it mandatory to call TableSetupColumn() every frame. + // It would easily work without but we're not ready to guarantee it since e.g. names need resubmission anyway. + // We take a slight shortcut but in theory we could be calling TableSetupColumn() here with dummy values, it should yield the same effect. + if (table->DeclColumnsCount <= column_n) + { + TableSetupColumnFlags(table, column, ImGuiTableColumnFlags_None); + column->NameOffset = -1; + column->UserID = 0; + column->InitStretchWeightOrWidth = -1.0f; + } + + // Update Enabled state, mark settings and sort specs dirty + if (!(table->Flags & ImGuiTableFlags_Hideable) || (column->Flags & ImGuiTableColumnFlags_NoHide)) + column->IsUserEnabledNextFrame = true; + if (column->IsUserEnabled != column->IsUserEnabledNextFrame) + { + column->IsUserEnabled = column->IsUserEnabledNextFrame; + table->IsSettingsDirty = true; + } + column->IsEnabled = column->IsUserEnabled && (column->Flags & ImGuiTableColumnFlags_Disabled) == 0; + + if (column->SortOrder != -1 && !column->IsEnabled) + table->IsSortSpecsDirty = true; + if (column->SortOrder > 0 && !(table->Flags & ImGuiTableFlags_SortMulti)) + table->IsSortSpecsDirty = true; + + // Auto-fit unsized columns + const bool start_auto_fit = (column->Flags & ImGuiTableColumnFlags_WidthFixed) ? (column->WidthRequest < 0.0f) : (column->StretchWeight < 0.0f); + if (start_auto_fit) + column->AutoFitQueue = column->CannotSkipItemsQueue = (1 << 3) - 1; // Fit for three frames + + if (!column->IsEnabled) + { + column->IndexWithinEnabledSet = -1; + continue; + } + + // Mark as enabled and link to previous/next enabled column + column->PrevEnabledColumn = (ImGuiTableColumnIdx)prev_visible_column_idx; + column->NextEnabledColumn = -1; + if (prev_visible_column_idx != -1) + table->Columns[prev_visible_column_idx].NextEnabledColumn = (ImGuiTableColumnIdx)column_n; + else + table->LeftMostEnabledColumn = (ImGuiTableColumnIdx)column_n; + column->IndexWithinEnabledSet = table->ColumnsEnabledCount++; + ImBitArraySetBit(table->EnabledMaskByIndex, column_n); + ImBitArraySetBit(table->EnabledMaskByDisplayOrder, column->DisplayOrder); + prev_visible_column_idx = column_n; + IM_ASSERT(column->IndexWithinEnabledSet <= column->DisplayOrder); + + // Calculate ideal/auto column width (that's the width required for all contents to be visible without clipping) + // Combine width from regular rows + width from headers unless requested not to. + if (!column->IsPreserveWidthAuto) + column->WidthAuto = TableGetColumnWidthAuto(table, column); + + // Non-resizable columns keep their requested width (apply user value regardless of IsPreserveWidthAuto) + const bool column_is_resizable = (column->Flags & ImGuiTableColumnFlags_NoResize) == 0; + if (column_is_resizable) + has_resizable = true; + if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && column->InitStretchWeightOrWidth > 0.0f && !column_is_resizable) + column->WidthAuto = column->InitStretchWeightOrWidth; + + if (column->AutoFitQueue != 0x00) + has_auto_fit_request = true; + if (column->Flags & ImGuiTableColumnFlags_WidthStretch) + { + stretch_sum_width_auto += column->WidthAuto; + count_stretch++; + } + else + { + fixed_max_width_auto = ImMax(fixed_max_width_auto, column->WidthAuto); + count_fixed++; + } + } + if ((table->Flags & ImGuiTableFlags_Sortable) && table->SortSpecsCount == 0 && !(table->Flags & ImGuiTableFlags_SortTristate)) + table->IsSortSpecsDirty = true; + table->RightMostEnabledColumn = (ImGuiTableColumnIdx)prev_visible_column_idx; + IM_ASSERT(table->LeftMostEnabledColumn >= 0 && table->RightMostEnabledColumn >= 0); + + // [Part 2] Disable child window clipping while fitting columns. This is not strictly necessary but makes it possible to avoid + // the column fitting having to wait until the first visible frame of the child container (may or not be a good thing). Also see #6510. + // FIXME-TABLE: for always auto-resizing columns may not want to do that all the time. + if (has_auto_fit_request && table->OuterWindow != table->InnerWindow) + table->InnerWindow->SkipItems = false; + if (has_auto_fit_request) + table->IsSettingsDirty = true; + + // [Part 3] Fix column flags and record a few extra information. + float sum_width_requests = 0.0f; // Sum of all width for fixed and auto-resize columns, excluding width contributed by Stretch columns but including spacing/padding. + float stretch_sum_weights = 0.0f; // Sum of all weights for stretch columns. + table->LeftMostStretchedColumn = table->RightMostStretchedColumn = -1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByIndex, column_n)) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + const bool column_is_resizable = (column->Flags & ImGuiTableColumnFlags_NoResize) == 0; + if (column->Flags & ImGuiTableColumnFlags_WidthFixed) + { + // Apply same widths policy + float width_auto = column->WidthAuto; + if (table_sizing_policy == ImGuiTableFlags_SizingFixedSame && (column->AutoFitQueue != 0x00 || !column_is_resizable)) + width_auto = fixed_max_width_auto; + + // Apply automatic width + // Latch initial size for fixed columns and update it constantly for auto-resizing column (unless clipped!) + if (column->AutoFitQueue != 0x00) + column->WidthRequest = width_auto; + else if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !column_is_resizable && column->IsRequestOutput) + column->WidthRequest = width_auto; + + // FIXME-TABLE: Increase minimum size during init frame to avoid biasing auto-fitting widgets + // (e.g. TextWrapped) too much. Otherwise what tends to happen is that TextWrapped would output a very + // large height (= first frame scrollbar display very off + clipper would skip lots of items). + // This is merely making the side-effect less extreme, but doesn't properly fixes it. + // FIXME: Move this to ->WidthGiven to avoid temporary lossyless? + // FIXME: This break IsPreserveWidthAuto from not flickering if the stored WidthAuto was smaller. + if (column->AutoFitQueue > 0x01 && table->IsInitializing && !column->IsPreserveWidthAuto) + column->WidthRequest = ImMax(column->WidthRequest, table->MinColumnWidth * 4.0f); // FIXME-TABLE: Another constant/scale? + sum_width_requests += column->WidthRequest; + } + else + { + // Initialize stretch weight + if (column->AutoFitQueue != 0x00 || column->StretchWeight < 0.0f || !column_is_resizable) + { + if (column->InitStretchWeightOrWidth > 0.0f) + column->StretchWeight = column->InitStretchWeightOrWidth; + else if (table_sizing_policy == ImGuiTableFlags_SizingStretchProp) + column->StretchWeight = (column->WidthAuto / stretch_sum_width_auto) * count_stretch; + else + column->StretchWeight = 1.0f; + } + + stretch_sum_weights += column->StretchWeight; + if (table->LeftMostStretchedColumn == -1 || table->Columns[table->LeftMostStretchedColumn].DisplayOrder > column->DisplayOrder) + table->LeftMostStretchedColumn = (ImGuiTableColumnIdx)column_n; + if (table->RightMostStretchedColumn == -1 || table->Columns[table->RightMostStretchedColumn].DisplayOrder < column->DisplayOrder) + table->RightMostStretchedColumn = (ImGuiTableColumnIdx)column_n; + } + column->IsPreserveWidthAuto = false; + sum_width_requests += table->CellPaddingX * 2.0f; + } + table->ColumnsEnabledFixedCount = (ImGuiTableColumnIdx)count_fixed; + table->ColumnsStretchSumWeights = stretch_sum_weights; + + // [Part 4] Apply final widths based on requested widths + const ImRect work_rect = table->WorkRect; + const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); + const float width_removed = (table->HasScrollbarYPrev && !table->InnerWindow->ScrollbarY) ? g.Style.ScrollbarSize : 0.0f; // To synchronize decoration width of synched tables with mismatching scrollbar state (#5920) + const float width_avail = ImMax(1.0f, (((table->Flags & ImGuiTableFlags_ScrollX) && table->InnerWidth == 0.0f) ? table->InnerClipRect.GetWidth() : work_rect.GetWidth()) - width_removed); + const float width_avail_for_stretched_columns = width_avail - width_spacings - sum_width_requests; + float width_remaining_for_stretched_columns = width_avail_for_stretched_columns; + table->ColumnsGivenWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByIndex, column_n)) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Allocate width for stretched/weighted columns (StretchWeight gets converted into WidthRequest) + if (column->Flags & ImGuiTableColumnFlags_WidthStretch) + { + float weight_ratio = column->StretchWeight / stretch_sum_weights; + column->WidthRequest = IM_TRUNC(ImMax(width_avail_for_stretched_columns * weight_ratio, table->MinColumnWidth) + 0.01f); + width_remaining_for_stretched_columns -= column->WidthRequest; + } + + // [Resize Rule 1] The right-most Visible column is not resizable if there is at least one Stretch column + // See additional comments in TableSetColumnWidth(). + if (column->NextEnabledColumn == -1 && table->LeftMostStretchedColumn != -1) + column->Flags |= ImGuiTableColumnFlags_NoDirectResize_; + + // Assign final width, record width in case we will need to shrink + column->WidthGiven = ImTrunc(ImMax(column->WidthRequest, table->MinColumnWidth)); + table->ColumnsGivenWidth += column->WidthGiven; + } + + // [Part 5] Redistribute stretch remainder width due to rounding (remainder width is < 1.0f * number of Stretch column). + // Using right-to-left distribution (more likely to match resizing cursor). + if (width_remaining_for_stretched_columns >= 1.0f && !(table->Flags & ImGuiTableFlags_PreciseWidths)) + for (int order_n = table->ColumnsCount - 1; stretch_sum_weights > 0.0f && width_remaining_for_stretched_columns >= 1.0f && order_n >= 0; order_n--) + { + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByDisplayOrder, order_n)) + continue; + ImGuiTableColumn* column = &table->Columns[table->DisplayOrderToIndex[order_n]]; + if (!(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + column->WidthRequest += 1.0f; + column->WidthGiven += 1.0f; + width_remaining_for_stretched_columns -= 1.0f; + } + + // Determine if table is hovered which will be used to flag columns as hovered. + // - In principle we'd like to use the equivalent of IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + // but because our item is partially submitted at this point we use ItemHoverable() and a workaround (temporarily + // clear ActiveId, which is equivalent to the change provided by _AllowWhenBLockedByActiveItem). + // - This allows columns to be marked as hovered when e.g. clicking a button inside the column, or using drag and drop. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + table_instance->HoveredRowLast = table_instance->HoveredRowNext; + table_instance->HoveredRowNext = -1; + table->HoveredColumnBody = table->HoveredColumnBorder = -1; + const ImRect mouse_hit_rect(table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.Max.x, ImMax(table->OuterRect.Max.y, table->OuterRect.Min.y + table_instance->LastOuterHeight)); + const ImGuiID backup_active_id = g.ActiveId; + g.ActiveId = 0; + const bool is_hovering_table = ItemHoverable(mouse_hit_rect, 0, ImGuiItemFlags_None); + g.ActiveId = backup_active_id; + + // Determine skewed MousePos.x to support angled headers. + float mouse_skewed_x = g.IO.MousePos.x; + if (table->AngledHeadersHeight > 0.0f) + if (g.IO.MousePos.y >= table->OuterRect.Min.y && g.IO.MousePos.y <= table->OuterRect.Min.y + table->AngledHeadersHeight) + mouse_skewed_x += ImTrunc((table->OuterRect.Min.y + table->AngledHeadersHeight - g.IO.MousePos.y) * table->AngledHeadersSlope); + + // [Part 6] Setup final position, offset, skip/clip states and clipping rectangles, detect hovered column + // Process columns in their visible orders as we are comparing the visible order and adjusting host_clip_rect while looping. + int visible_n = 0; + bool has_at_least_one_column_requesting_output = false; + bool offset_x_frozen = (table->FreezeColumnsCount > 0); + float offset_x = ((table->FreezeColumnsCount > 0) ? table->OuterRect.Min.x : work_rect.Min.x) + table->OuterPaddingX - table->CellSpacingX1; + ImRect host_clip_rect = table->InnerClipRect; + //host_clip_rect.Max.x += table->CellPaddingX + table->CellSpacingX2; + ImBitArrayClearAllBits(table->VisibleMaskByIndex, table->ColumnsCount); + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + + column->NavLayerCurrent = (ImS8)(table->FreezeRowsCount > 0 ? ImGuiNavLayer_Menu : ImGuiNavLayer_Main); // Use Count NOT request so Header line changes layer when frozen + + if (offset_x_frozen && table->FreezeColumnsCount == visible_n) + { + offset_x += work_rect.Min.x - table->OuterRect.Min.x; + offset_x_frozen = false; + } + + // Clear status flags + column->Flags &= ~ImGuiTableColumnFlags_StatusMask_; + + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByDisplayOrder, order_n)) + { + // Hidden column: clear a few fields and we are done with it for the remainder of the function. + // We set a zero-width clip rect but set Min.y/Max.y properly to not interfere with the clipper. + column->MinX = column->MaxX = column->WorkMinX = column->ClipRect.Min.x = column->ClipRect.Max.x = offset_x; + column->WidthGiven = 0.0f; + column->ClipRect.Min.y = work_rect.Min.y; + column->ClipRect.Max.y = FLT_MAX; + column->ClipRect.ClipWithFull(host_clip_rect); + column->IsVisibleX = column->IsVisibleY = column->IsRequestOutput = false; + column->IsSkipItems = true; + column->ItemWidth = 1.0f; + continue; + } + + // Detect hovered column + if (is_hovering_table && mouse_skewed_x >= column->ClipRect.Min.x && mouse_skewed_x < column->ClipRect.Max.x) + table->HoveredColumnBody = (ImGuiTableColumnIdx)column_n; + + // Lock start position + column->MinX = offset_x; + + // Lock width based on start position and minimum/maximum width for this position + float max_width = TableGetMaxColumnWidth(table, column_n); + column->WidthGiven = ImMin(column->WidthGiven, max_width); + column->WidthGiven = ImMax(column->WidthGiven, ImMin(column->WidthRequest, table->MinColumnWidth)); + column->MaxX = offset_x + column->WidthGiven + table->CellSpacingX1 + table->CellSpacingX2 + table->CellPaddingX * 2.0f; + + // Lock other positions + // - ClipRect.Min.x: Because merging draw commands doesn't compare min boundaries, we make ClipRect.Min.x match left bounds to be consistent regardless of merging. + // - ClipRect.Max.x: using WorkMaxX instead of MaxX (aka including padding) makes things more consistent when resizing down, tho slightly detrimental to visibility in very-small column. + // - ClipRect.Max.x: using MaxX makes it easier for header to receive hover highlight with no discontinuity and display sorting arrow. + // - FIXME-TABLE: We want equal width columns to have equal (ClipRect.Max.x - WorkMinX) width, which means ClipRect.max.x cannot stray off host_clip_rect.Max.x else right-most column may appear shorter. + column->WorkMinX = column->MinX + table->CellPaddingX + table->CellSpacingX1; + column->WorkMaxX = column->MaxX - table->CellPaddingX - table->CellSpacingX2; // Expected max + column->ItemWidth = ImTrunc(column->WidthGiven * 0.65f); + column->ClipRect.Min.x = column->MinX; + column->ClipRect.Min.y = work_rect.Min.y; + column->ClipRect.Max.x = column->MaxX; //column->WorkMaxX; + column->ClipRect.Max.y = FLT_MAX; + column->ClipRect.ClipWithFull(host_clip_rect); + + // Mark column as Clipped (not in sight) + // Note that scrolling tables (where inner_window != outer_window) handle Y clipped earlier in BeginTable() so IsVisibleY really only applies to non-scrolling tables. + // FIXME-TABLE: Because InnerClipRect.Max.y is conservatively ==outer_window->ClipRect.Max.y, we never can mark columns _Above_ the scroll line as not IsVisibleY. + // Taking advantage of LastOuterHeight would yield good results there... + // FIXME-TABLE: Y clipping is disabled because it effectively means not submitting will reduce contents width which is fed to outer_window->DC.CursorMaxPos.x, + // and this may be used (e.g. typically by outer_window using AlwaysAutoResize or outer_window's horizontal scrollbar, but could be something else). + // Possible solution to preserve last known content width for clipped column. Test 'table_reported_size' fails when enabling Y clipping and window is resized small. + column->IsVisibleX = (column->ClipRect.Max.x > column->ClipRect.Min.x); + column->IsVisibleY = true; // (column->ClipRect.Max.y > column->ClipRect.Min.y); + const bool is_visible = column->IsVisibleX; //&& column->IsVisibleY; + if (is_visible) + ImBitArraySetBit(table->VisibleMaskByIndex, column_n); + + // Mark column as requesting output from user. Note that fixed + non-resizable sets are auto-fitting at all times and therefore always request output. + column->IsRequestOutput = is_visible || column->AutoFitQueue != 0 || column->CannotSkipItemsQueue != 0; + + // Mark column as SkipItems (ignoring all items/layout) + // (table->HostSkipItems is a copy of inner_window->SkipItems before we cleared it above in Part 2) + column->IsSkipItems = !column->IsEnabled || table->HostSkipItems; + if (column->IsSkipItems) + IM_ASSERT(!is_visible); + if (column->IsRequestOutput && !column->IsSkipItems) + has_at_least_one_column_requesting_output = true; + + // Update status flags + column->Flags |= ImGuiTableColumnFlags_IsEnabled; + if (is_visible) + column->Flags |= ImGuiTableColumnFlags_IsVisible; + if (column->SortOrder != -1) + column->Flags |= ImGuiTableColumnFlags_IsSorted; + if (table->HoveredColumnBody == column_n) + column->Flags |= ImGuiTableColumnFlags_IsHovered; + + // Alignment + // FIXME-TABLE: This align based on the whole column width, not per-cell, and therefore isn't useful in + // many cases (to be able to honor this we might be able to store a log of cells width, per row, for + // visible rows, but nav/programmatic scroll would have visible artifacts.) + //if (column->Flags & ImGuiTableColumnFlags_AlignRight) + // column->WorkMinX = ImMax(column->WorkMinX, column->MaxX - column->ContentWidthRowsUnfrozen); + //else if (column->Flags & ImGuiTableColumnFlags_AlignCenter) + // column->WorkMinX = ImLerp(column->WorkMinX, ImMax(column->StartX, column->MaxX - column->ContentWidthRowsUnfrozen), 0.5f); + + // Reset content width variables + column->ContentMaxXFrozen = column->ContentMaxXUnfrozen = column->WorkMinX; + column->ContentMaxXHeadersUsed = column->ContentMaxXHeadersIdeal = column->WorkMinX; + + // Don't decrement auto-fit counters until container window got a chance to submit its items + if (table->HostSkipItems == false) + { + column->AutoFitQueue >>= 1; + column->CannotSkipItemsQueue >>= 1; + } + + if (visible_n < table->FreezeColumnsCount) + host_clip_rect.Min.x = ImClamp(column->MaxX + TABLE_BORDER_SIZE, host_clip_rect.Min.x, host_clip_rect.Max.x); + + offset_x += column->WidthGiven + table->CellSpacingX1 + table->CellSpacingX2 + table->CellPaddingX * 2.0f; + visible_n++; + } + + // In case the table is visible (e.g. decorations) but all columns clipped, we keep a column visible. + // Else if give no chance to a clipper-savy user to submit rows and therefore total contents height used by scrollbar. + if (has_at_least_one_column_requesting_output == false) + { + table->Columns[table->LeftMostEnabledColumn].IsRequestOutput = true; + table->Columns[table->LeftMostEnabledColumn].IsSkipItems = false; + } + + // [Part 7] Detect/store when we are hovering the unused space after the right-most column (so e.g. context menus can react on it) + // Clear Resizable flag if none of our column are actually resizable (either via an explicit _NoResize flag, either + // because of using _WidthAuto/_WidthStretch). This will hide the resizing option from the context menu. + const float unused_x1 = ImMax(table->WorkRect.Min.x, table->Columns[table->RightMostEnabledColumn].ClipRect.Max.x); + if (is_hovering_table && table->HoveredColumnBody == -1) + if (mouse_skewed_x >= unused_x1) + table->HoveredColumnBody = (ImGuiTableColumnIdx)table->ColumnsCount; + if (has_resizable == false && (table->Flags & ImGuiTableFlags_Resizable)) + table->Flags &= ~ImGuiTableFlags_Resizable; + + table->IsActiveIdAliveBeforeTable = (g.ActiveIdIsAlive != 0); + + // [Part 8] Lock actual OuterRect/WorkRect right-most position. + // This is done late to handle the case of fixed-columns tables not claiming more widths that they need. + // Because of this we are careful with uses of WorkRect and InnerClipRect before this point. + if (table->RightMostStretchedColumn != -1) + table->Flags &= ~ImGuiTableFlags_NoHostExtendX; + if (table->Flags & ImGuiTableFlags_NoHostExtendX) + { + table->OuterRect.Max.x = table->WorkRect.Max.x = unused_x1; + table->InnerClipRect.Max.x = ImMin(table->InnerClipRect.Max.x, unused_x1); + } + table->InnerWindow->ParentWorkRect = table->WorkRect; + table->BorderX1 = table->InnerClipRect.Min.x; + table->BorderX2 = table->InnerClipRect.Max.x; + + // Setup window's WorkRect.Max.y for GetContentRegionAvail(). Other values will be updated in each TableBeginCell() call. + float window_content_max_y; + if (table->Flags & ImGuiTableFlags_NoHostExtendY) + window_content_max_y = table->OuterRect.Max.y; + else + window_content_max_y = ImMax(table->InnerWindow->ContentRegionRect.Max.y, (table->Flags & ImGuiTableFlags_ScrollY) ? 0.0f : table->OuterRect.Max.y); + table->InnerWindow->WorkRect.Max.y = ImClamp(window_content_max_y - g.Style.CellPadding.y, table->InnerWindow->WorkRect.Min.y, table->InnerWindow->WorkRect.Max.y); + + // [Part 9] Allocate draw channels and setup background cliprect + TableSetupDrawChannels(table); + + // [Part 10] Hit testing on borders + if (table->Flags & ImGuiTableFlags_Resizable) + TableUpdateBorders(table); + table_instance->LastTopHeadersRowHeight = 0.0f; + table->IsLayoutLocked = true; + table->IsUsingHeaders = false; + + // Highlight header + table->HighlightColumnHeader = -1; + if (table->IsContextPopupOpen && table->ContextPopupColumn != -1 && table->InstanceInteracted == table->InstanceCurrent) + table->HighlightColumnHeader = table->ContextPopupColumn; + else if ((table->Flags & ImGuiTableFlags_HighlightHoveredColumn) && table->HoveredColumnBody != -1 && table->HoveredColumnBody != table->ColumnsCount && table->HoveredColumnBorder == -1) + if (g.ActiveId == 0 || (table->IsActiveIdInTable || g.DragDropActive)) + table->HighlightColumnHeader = table->HoveredColumnBody; + + // [Part 11] Context menu + if (TableBeginContextMenuPopup(table)) + { + TableDrawContextMenu(table); + EndPopup(); + } + + // [Part 12] Sanitize and build sort specs before we have a chance to use them for display. + // This path will only be exercised when sort specs are modified before header rows (e.g. init or visibility change) + if (table->IsSortSpecsDirty && (table->Flags & ImGuiTableFlags_Sortable)) + TableSortSpecsBuild(table); + + // [Part 13] Setup inner window decoration size (for scrolling / nav tracking to properly take account of frozen rows/columns) + if (table->FreezeColumnsRequest > 0) + table->InnerWindow->DecoInnerSizeX1 = table->Columns[table->DisplayOrderToIndex[table->FreezeColumnsRequest - 1]].MaxX - table->OuterRect.Min.x; + if (table->FreezeRowsRequest > 0) + table->InnerWindow->DecoInnerSizeY1 = table_instance->LastFrozenHeight; + table_instance->LastFrozenHeight = 0.0f; + + // Initial state + ImGuiWindow* inner_window = table->InnerWindow; + if (table->Flags & ImGuiTableFlags_NoClip) + table->DrawSplitter->SetCurrentChannel(inner_window->DrawList, TABLE_DRAW_CHANNEL_NOCLIP); + else + inner_window->DrawList->PushClipRect(inner_window->ClipRect.Min, inner_window->ClipRect.Max, false); +} + +// Process hit-testing on resizing borders. Actual size change will be applied in EndTable() +// - Set table->HoveredColumnBorder with a short delay/timer to reduce visual feedback noise. +void ImGui::TableUpdateBorders(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(table->Flags & ImGuiTableFlags_Resizable); + + // At this point OuterRect height may be zero or under actual final height, so we rely on temporal coherency and + // use the final height from last frame. Because this is only affecting _interaction_ with columns, it is not + // really problematic (whereas the actual visual will be displayed in EndTable() and using the current frame height). + // Actual columns highlight/render will be performed in EndTable() and not be affected. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + const float hit_half_width = TABLE_RESIZE_SEPARATOR_HALF_THICKNESS; + const float hit_y1 = (table->FreezeRowsCount >= 1 ? table->OuterRect.Min.y : table->WorkRect.Min.y) + table->AngledHeadersHeight; + const float hit_y2_body = ImMax(table->OuterRect.Max.y, hit_y1 + table_instance->LastOuterHeight); + const float hit_y2_head = hit_y1 + table_instance->LastTopHeadersRowHeight; + + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByDisplayOrder, order_n)) + continue; + + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->Flags & (ImGuiTableColumnFlags_NoResize | ImGuiTableColumnFlags_NoDirectResize_)) + continue; + + // ImGuiTableFlags_NoBordersInBodyUntilResize will be honored in TableDrawBorders() + const float border_y2_hit = (table->Flags & ImGuiTableFlags_NoBordersInBody) ? hit_y2_head : hit_y2_body; + if ((table->Flags & ImGuiTableFlags_NoBordersInBody) && table->IsUsingHeaders == false) + continue; + + if (!column->IsVisibleX && table->LastResizedColumn != column_n) + continue; + + ImGuiID column_id = TableGetColumnResizeID(table, column_n, table->InstanceCurrent); + ImRect hit_rect(column->MaxX - hit_half_width, hit_y1, column->MaxX + hit_half_width, border_y2_hit); + ItemAdd(hit_rect, column_id, NULL, ImGuiItemFlags_NoNav); + //GetForegroundDrawList()->AddRect(hit_rect.Min, hit_rect.Max, IM_COL32(255, 0, 0, 100)); + + bool hovered = false, held = false; + bool pressed = ButtonBehavior(hit_rect, column_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_NoNavFocus); + if (pressed && IsMouseDoubleClicked(0)) + { + TableSetColumnWidthAutoSingle(table, column_n); + ClearActiveID(); + held = false; + } + if (held) + { + if (table->LastResizedColumn == -1) + table->ResizeLockMinContentsX2 = table->RightMostEnabledColumn != -1 ? table->Columns[table->RightMostEnabledColumn].MaxX : -FLT_MAX; + table->ResizedColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + } + if ((hovered && g.HoveredIdTimer > TABLE_RESIZE_SEPARATOR_FEEDBACK_TIMER) || held) + { + table->HoveredColumnBorder = (ImGuiTableColumnIdx)column_n; + SetMouseCursor(ImGuiMouseCursor_ResizeEW); + } + } +} + +void ImGui::EndTable() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Only call EndTable() if BeginTable() returns true!"); + + // This assert would be very useful to catch a common error... unfortunately it would probably trigger in some + // cases, and for consistency user may sometimes output empty tables (and still benefit from e.g. outer border) + //IM_ASSERT(table->IsLayoutLocked && "Table unused: never called TableNextRow(), is that the intent?"); + + // If the user never got to call TableNextRow() or TableNextColumn(), we call layout ourselves to ensure all our + // code paths are consistent (instead of just hoping that TableBegin/TableEnd will work), get borders drawn, etc. + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + const ImGuiTableFlags flags = table->Flags; + ImGuiWindow* inner_window = table->InnerWindow; + ImGuiWindow* outer_window = table->OuterWindow; + ImGuiTableTempData* temp_data = table->TempData; + IM_ASSERT(inner_window == g.CurrentWindow); + IM_ASSERT(outer_window == inner_window || outer_window == inner_window->ParentWindow); + + if (table->IsInsideRow) + TableEndRow(table); + + // Context menu in columns body + if (flags & ImGuiTableFlags_ContextMenuInBody) + if (table->HoveredColumnBody != -1 && !IsAnyItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) + TableOpenContextMenu((int)table->HoveredColumnBody); + + // Finalize table height + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + inner_window->DC.PrevLineSize = temp_data->HostBackupPrevLineSize; + inner_window->DC.CurrLineSize = temp_data->HostBackupCurrLineSize; + inner_window->DC.CursorMaxPos = temp_data->HostBackupCursorMaxPos; + const float inner_content_max_y = table->RowPosY2; + IM_ASSERT(table->RowPosY2 == inner_window->DC.CursorPos.y); + if (inner_window != outer_window) + inner_window->DC.CursorMaxPos.y = inner_content_max_y; + else if (!(flags & ImGuiTableFlags_NoHostExtendY)) + table->OuterRect.Max.y = table->InnerRect.Max.y = ImMax(table->OuterRect.Max.y, inner_content_max_y); // Patch OuterRect/InnerRect height + table->WorkRect.Max.y = ImMax(table->WorkRect.Max.y, table->OuterRect.Max.y); + table_instance->LastOuterHeight = table->OuterRect.GetHeight(); + + // Setup inner scrolling range + // FIXME: This ideally should be done earlier, in BeginTable() SetNextWindowContentSize call, just like writing to inner_window->DC.CursorMaxPos.y, + // but since the later is likely to be impossible to do we'd rather update both axises together. + if (table->Flags & ImGuiTableFlags_ScrollX) + { + const float outer_padding_for_border = (table->Flags & ImGuiTableFlags_BordersOuterV) ? TABLE_BORDER_SIZE : 0.0f; + float max_pos_x = table->InnerWindow->DC.CursorMaxPos.x; + if (table->RightMostEnabledColumn != -1) + max_pos_x = ImMax(max_pos_x, table->Columns[table->RightMostEnabledColumn].WorkMaxX + table->CellPaddingX + table->OuterPaddingX - outer_padding_for_border); + if (table->ResizedColumn != -1) + max_pos_x = ImMax(max_pos_x, table->ResizeLockMinContentsX2); + table->InnerWindow->DC.CursorMaxPos.x = max_pos_x + table->TempData->AngledheadersExtraWidth; + } + + // Pop clipping rect + if (!(flags & ImGuiTableFlags_NoClip)) + inner_window->DrawList->PopClipRect(); + inner_window->ClipRect = inner_window->DrawList->_ClipRectStack.back(); + + // Draw borders + if ((flags & ImGuiTableFlags_Borders) != 0) + TableDrawBorders(table); + +#if 0 + // Strip out dummy channel draw calls + // We have no way to prevent user submitting direct ImDrawList calls into a hidden column (but ImGui:: calls will be clipped out) + // Pros: remove draw calls which will have no effect. since they'll have zero-size cliprect they may be early out anyway. + // Cons: making it harder for users watching metrics/debugger to spot the wasted vertices. + if (table->DummyDrawChannel != (ImGuiTableColumnIdx)-1) + { + ImDrawChannel* dummy_channel = &table->DrawSplitter._Channels[table->DummyDrawChannel]; + dummy_channel->_CmdBuffer.resize(0); + dummy_channel->_IdxBuffer.resize(0); + } +#endif + + // Flatten channels and merge draw calls + ImDrawListSplitter* splitter = table->DrawSplitter; + splitter->SetCurrentChannel(inner_window->DrawList, 0); + if ((table->Flags & ImGuiTableFlags_NoClip) == 0) + TableMergeDrawChannels(table); + splitter->Merge(inner_window->DrawList); + + // Update ColumnsAutoFitWidth to get us ahead for host using our size to auto-resize without waiting for next BeginTable() + float auto_fit_width_for_fixed = 0.0f; + float auto_fit_width_for_stretched = 0.0f; + float auto_fit_width_for_stretched_min = 0.0f; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if (IM_BITARRAY_TESTBIT(table->EnabledMaskByIndex, column_n)) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + float column_width_request = ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !(column->Flags & ImGuiTableColumnFlags_NoResize)) ? column->WidthRequest : TableGetColumnWidthAuto(table, column); + if (column->Flags & ImGuiTableColumnFlags_WidthFixed) + auto_fit_width_for_fixed += column_width_request; + else + auto_fit_width_for_stretched += column_width_request; + if ((column->Flags & ImGuiTableColumnFlags_WidthStretch) && (column->Flags & ImGuiTableColumnFlags_NoResize) != 0) + auto_fit_width_for_stretched_min = ImMax(auto_fit_width_for_stretched_min, column_width_request / (column->StretchWeight / table->ColumnsStretchSumWeights)); + } + const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); + table->ColumnsAutoFitWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount + auto_fit_width_for_fixed + ImMax(auto_fit_width_for_stretched, auto_fit_width_for_stretched_min); + + // Update scroll + if ((table->Flags & ImGuiTableFlags_ScrollX) == 0 && inner_window != outer_window) + { + inner_window->Scroll.x = 0.0f; + } + else if (table->LastResizedColumn != -1 && table->ResizedColumn == -1 && inner_window->ScrollbarX && table->InstanceInteracted == table->InstanceCurrent) + { + // When releasing a column being resized, scroll to keep the resulting column in sight + const float neighbor_width_to_keep_visible = table->MinColumnWidth + table->CellPaddingX * 2.0f; + ImGuiTableColumn* column = &table->Columns[table->LastResizedColumn]; + if (column->MaxX < table->InnerClipRect.Min.x) + SetScrollFromPosX(inner_window, column->MaxX - inner_window->Pos.x - neighbor_width_to_keep_visible, 1.0f); + else if (column->MaxX > table->InnerClipRect.Max.x) + SetScrollFromPosX(inner_window, column->MaxX - inner_window->Pos.x + neighbor_width_to_keep_visible, 1.0f); + } + + // Apply resizing/dragging at the end of the frame + if (table->ResizedColumn != -1 && table->InstanceCurrent == table->InstanceInteracted) + { + ImGuiTableColumn* column = &table->Columns[table->ResizedColumn]; + const float new_x2 = (g.IO.MousePos.x - g.ActiveIdClickOffset.x + TABLE_RESIZE_SEPARATOR_HALF_THICKNESS); + const float new_width = ImTrunc(new_x2 - column->MinX - table->CellSpacingX1 - table->CellPaddingX * 2.0f); + table->ResizedColumnNextWidth = new_width; + } + + table->IsActiveIdInTable = (g.ActiveIdIsAlive != 0 && table->IsActiveIdAliveBeforeTable == false); + + // Pop from id stack + IM_ASSERT_USER_ERROR(inner_window->IDStack.back() == table_instance->TableInstanceID, "Mismatching PushID/PopID!"); + IM_ASSERT_USER_ERROR(outer_window->DC.ItemWidthStack.Size >= temp_data->HostBackupItemWidthStackSize, "Too many PopItemWidth!"); + if (table->InstanceCurrent > 0) + PopID(); + PopID(); + + // Restore window data that we modified + const ImVec2 backup_outer_max_pos = outer_window->DC.CursorMaxPos; + inner_window->WorkRect = temp_data->HostBackupWorkRect; + inner_window->ParentWorkRect = temp_data->HostBackupParentWorkRect; + inner_window->SkipItems = table->HostSkipItems; + outer_window->DC.CursorPos = table->OuterRect.Min; + outer_window->DC.ItemWidth = temp_data->HostBackupItemWidth; + outer_window->DC.ItemWidthStack.Size = temp_data->HostBackupItemWidthStackSize; + outer_window->DC.ColumnsOffset = temp_data->HostBackupColumnsOffset; + + // Layout in outer window + // (FIXME: To allow auto-fit and allow desirable effect of SameLine() we dissociate 'used' vs 'ideal' size by overriding + // CursorPosPrevLine and CursorMaxPos manually. That should be a more general layout feature, see same problem e.g. #3414) + if (inner_window != outer_window) + { + EndChild(); + } + else + { + ItemSize(table->OuterRect.GetSize()); + ItemAdd(table->OuterRect, 0); + } + + // Override declared contents width/height to enable auto-resize while not needlessly adding a scrollbar + if (table->Flags & ImGuiTableFlags_NoHostExtendX) + { + // FIXME-TABLE: Could we remove this section? + // ColumnsAutoFitWidth may be one frame ahead here since for Fixed+NoResize is calculated from latest contents + IM_ASSERT((table->Flags & ImGuiTableFlags_ScrollX) == 0); + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth); + } + else if (temp_data->UserOuterSize.x <= 0.0f) + { + const float decoration_size = table->TempData->AngledheadersExtraWidth + ((table->Flags & ImGuiTableFlags_ScrollX) ? inner_window->ScrollbarSizes.x : 0.0f); + outer_window->DC.IdealMaxPos.x = ImMax(outer_window->DC.IdealMaxPos.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth + decoration_size - temp_data->UserOuterSize.x); + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, ImMin(table->OuterRect.Max.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth)); + } + else + { + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, table->OuterRect.Max.x); + } + if (temp_data->UserOuterSize.y <= 0.0f) + { + const float decoration_size = (table->Flags & ImGuiTableFlags_ScrollY) ? inner_window->ScrollbarSizes.y : 0.0f; + outer_window->DC.IdealMaxPos.y = ImMax(outer_window->DC.IdealMaxPos.y, inner_content_max_y + decoration_size - temp_data->UserOuterSize.y); + outer_window->DC.CursorMaxPos.y = ImMax(backup_outer_max_pos.y, ImMin(table->OuterRect.Max.y, inner_content_max_y)); + } + else + { + // OuterRect.Max.y may already have been pushed downward from the initial value (unless ImGuiTableFlags_NoHostExtendY is set) + outer_window->DC.CursorMaxPos.y = ImMax(backup_outer_max_pos.y, table->OuterRect.Max.y); + } + + // Save settings + if (table->IsSettingsDirty) + TableSaveSettings(table); + table->IsInitializing = false; + + // Clear or restore current table, if any + IM_ASSERT(g.CurrentWindow == outer_window && g.CurrentTable == table); + IM_ASSERT(g.TablesTempDataStacked > 0); + temp_data = (--g.TablesTempDataStacked > 0) ? &g.TablesTempData[g.TablesTempDataStacked - 1] : NULL; + g.CurrentTable = temp_data ? g.Tables.GetByIndex(temp_data->TableIndex) : NULL; + if (g.CurrentTable) + { + g.CurrentTable->TempData = temp_data; + g.CurrentTable->DrawSplitter = &temp_data->DrawSplitter; + } + outer_window->DC.CurrentTableIdx = g.CurrentTable ? g.Tables.GetIndex(g.CurrentTable) : -1; + NavUpdateCurrentWindowIsScrollPushableX(); +} + +// See "COLUMNS SIZING POLICIES" comments at the top of this file +// If (init_width_or_weight <= 0.0f) it is ignored +void ImGui::TableSetupColumn(const char* label, ImGuiTableColumnFlags flags, float init_width_or_weight, ImGuiID user_id) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!"); + IM_ASSERT(table->IsLayoutLocked == false && "Need to call call TableSetupColumn() before first row!"); + IM_ASSERT((flags & ImGuiTableColumnFlags_StatusMask_) == 0 && "Illegal to pass StatusMask values to TableSetupColumn()"); + if (table->DeclColumnsCount >= table->ColumnsCount) + { + IM_ASSERT_USER_ERROR(table->DeclColumnsCount < table->ColumnsCount, "Called TableSetupColumn() too many times!"); + return; + } + + ImGuiTableColumn* column = &table->Columns[table->DeclColumnsCount]; + table->DeclColumnsCount++; + + // Assert when passing a width or weight if policy is entirely left to default, to avoid storing width into weight and vice-versa. + // Give a grace to users of ImGuiTableFlags_ScrollX. + if (table->IsDefaultSizingPolicy && (flags & ImGuiTableColumnFlags_WidthMask_) == 0 && (flags & ImGuiTableFlags_ScrollX) == 0) + IM_ASSERT(init_width_or_weight <= 0.0f && "Can only specify width/weight if sizing policy is set explicitly in either Table or Column."); + + // When passing a width automatically enforce WidthFixed policy + // (whereas TableSetupColumnFlags would default to WidthAuto if table is not Resizable) + if ((flags & ImGuiTableColumnFlags_WidthMask_) == 0 && init_width_or_weight > 0.0f) + if ((table->Flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedFit || (table->Flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableColumnFlags_WidthFixed; + if (flags & ImGuiTableColumnFlags_AngledHeader) + { + flags |= ImGuiTableColumnFlags_NoHeaderLabel; + table->AngledHeadersCount++; + } + + TableSetupColumnFlags(table, column, flags); + column->UserID = user_id; + flags = column->Flags; + + // Initialize defaults + column->InitStretchWeightOrWidth = init_width_or_weight; + if (table->IsInitializing) + { + // Init width or weight + if (column->WidthRequest < 0.0f && column->StretchWeight < 0.0f) + { + if ((flags & ImGuiTableColumnFlags_WidthFixed) && init_width_or_weight > 0.0f) + column->WidthRequest = init_width_or_weight; + if (flags & ImGuiTableColumnFlags_WidthStretch) + column->StretchWeight = (init_width_or_weight > 0.0f) ? init_width_or_weight : -1.0f; + + // Disable auto-fit if an explicit width/weight has been specified + if (init_width_or_weight > 0.0f) + column->AutoFitQueue = 0x00; + } + + // Init default visibility/sort state + if ((flags & ImGuiTableColumnFlags_DefaultHide) && (table->SettingsLoadedFlags & ImGuiTableFlags_Hideable) == 0) + column->IsUserEnabled = column->IsUserEnabledNextFrame = false; + if (flags & ImGuiTableColumnFlags_DefaultSort && (table->SettingsLoadedFlags & ImGuiTableFlags_Sortable) == 0) + { + column->SortOrder = 0; // Multiple columns using _DefaultSort will be reassigned unique SortOrder values when building the sort specs. + column->SortDirection = (column->Flags & ImGuiTableColumnFlags_PreferSortDescending) ? (ImS8)ImGuiSortDirection_Descending : (ImU8)(ImGuiSortDirection_Ascending); + } + } + + // Store name (append with zero-terminator in contiguous buffer) + column->NameOffset = -1; + if (label != NULL && label[0] != 0) + { + column->NameOffset = (ImS16)table->ColumnsNames.size(); + table->ColumnsNames.append(label, label + strlen(label) + 1); + } +} + +// [Public] +void ImGui::TableSetupScrollFreeze(int columns, int rows) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!"); + IM_ASSERT(table->IsLayoutLocked == false && "Need to call TableSetupColumn() before first row!"); + IM_ASSERT(columns >= 0 && columns < IMGUI_TABLE_MAX_COLUMNS); + IM_ASSERT(rows >= 0 && rows < 128); // Arbitrary limit + + table->FreezeColumnsRequest = (table->Flags & ImGuiTableFlags_ScrollX) ? (ImGuiTableColumnIdx)ImMin(columns, table->ColumnsCount) : 0; + table->FreezeColumnsCount = (table->InnerWindow->Scroll.x != 0.0f) ? table->FreezeColumnsRequest : 0; + table->FreezeRowsRequest = (table->Flags & ImGuiTableFlags_ScrollY) ? (ImGuiTableColumnIdx)rows : 0; + table->FreezeRowsCount = (table->InnerWindow->Scroll.y != 0.0f) ? table->FreezeRowsRequest : 0; + table->IsUnfrozenRows = (table->FreezeRowsCount == 0); // Make sure this is set before TableUpdateLayout() so ImGuiListClipper can benefit from it.b + + // Ensure frozen columns are ordered in their section. We still allow multiple frozen columns to be reordered. + // FIXME-TABLE: This work for preserving 2143 into 21|43. How about 4321 turning into 21|43? (preserve relative order in each section) + for (int column_n = 0; column_n < table->FreezeColumnsRequest; column_n++) + { + int order_n = table->DisplayOrderToIndex[column_n]; + if (order_n != column_n && order_n >= table->FreezeColumnsRequest) + { + ImSwap(table->Columns[table->DisplayOrderToIndex[order_n]].DisplayOrder, table->Columns[table->DisplayOrderToIndex[column_n]].DisplayOrder); + ImSwap(table->DisplayOrderToIndex[order_n], table->DisplayOrderToIndex[column_n]); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Tables: Simple accessors +//----------------------------------------------------------------------------- +// - TableGetColumnCount() +// - TableGetColumnName() +// - TableGetColumnName() [Internal] +// - TableSetColumnEnabled() +// - TableGetColumnFlags() +// - TableGetCellBgRect() [Internal] +// - TableGetColumnResizeID() [Internal] +// - TableGetHoveredColumn() [Internal] +// - TableGetHoveredRow() [Internal] +// - TableSetBgColor() +//----------------------------------------------------------------------------- + +int ImGui::TableGetColumnCount() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + return table ? table->ColumnsCount : 0; +} + +const char* ImGui::TableGetColumnName(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return NULL; + if (column_n < 0) + column_n = table->CurrentColumn; + return TableGetColumnName(table, column_n); +} + +const char* ImGui::TableGetColumnName(const ImGuiTable* table, int column_n) +{ + if (table->IsLayoutLocked == false && column_n >= table->DeclColumnsCount) + return ""; // NameOffset is invalid at this point + const ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->NameOffset == -1) + return ""; + return &table->ColumnsNames.Buf[column->NameOffset]; +} + +// Change user accessible enabled/disabled state of a column (often perceived as "showing/hiding" from users point of view) +// Note that end-user can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody) +// - Require table to have the ImGuiTableFlags_Hideable flag because we are manipulating user accessible state. +// - Request will be applied during next layout, which happens on the first call to TableNextRow() after BeginTable(). +// - For the getter you can test (TableGetColumnFlags() & ImGuiTableColumnFlags_IsEnabled) != 0. +// - Alternative: the ImGuiTableColumnFlags_Disabled is an overriding/master disable flag which will also hide the column from context menu. +void ImGui::TableSetColumnEnabled(int column_n, bool enabled) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL); + if (!table) + return; + IM_ASSERT(table->Flags & ImGuiTableFlags_Hideable); // See comments above + if (column_n < 0) + column_n = table->CurrentColumn; + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiTableColumn* column = &table->Columns[column_n]; + column->IsUserEnabledNextFrame = enabled; +} + +// We allow querying for an extra column in order to poll the IsHovered state of the right-most section +ImGuiTableColumnFlags ImGui::TableGetColumnFlags(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return ImGuiTableColumnFlags_None; + if (column_n < 0) + column_n = table->CurrentColumn; + if (column_n == table->ColumnsCount) + return (table->HoveredColumnBody == column_n) ? ImGuiTableColumnFlags_IsHovered : ImGuiTableColumnFlags_None; + return table->Columns[column_n].Flags; +} + +// Return the cell rectangle based on currently known height. +// - Important: we generally don't know our row height until the end of the row, so Max.y will be incorrect in many situations. +// The only case where this is correct is if we provided a min_row_height to TableNextRow() and don't go below it, or in TableEndRow() when we locked that height. +// - Important: if ImGuiTableFlags_PadOuterX is set but ImGuiTableFlags_PadInnerX is not set, the outer-most left and right +// columns report a small offset so their CellBgRect can extend up to the outer border. +// FIXME: But the rendering code in TableEndRow() nullifies that with clamping required for scrolling. +ImRect ImGui::TableGetCellBgRect(const ImGuiTable* table, int column_n) +{ + const ImGuiTableColumn* column = &table->Columns[column_n]; + float x1 = column->MinX; + float x2 = column->MaxX; + //if (column->PrevEnabledColumn == -1) + // x1 -= table->OuterPaddingX; + //if (column->NextEnabledColumn == -1) + // x2 += table->OuterPaddingX; + x1 = ImMax(x1, table->WorkRect.Min.x); + x2 = ImMin(x2, table->WorkRect.Max.x); + return ImRect(x1, table->RowPosY1, x2, table->RowPosY2); +} + +// Return the resizing ID for the right-side of the given column. +ImGuiID ImGui::TableGetColumnResizeID(ImGuiTable* table, int column_n, int instance_no) +{ + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiID instance_id = TableGetInstanceID(table, instance_no); + return instance_id + 1 + column_n; // FIXME: #6140: still not ideal +} + +// Return -1 when table is not hovered. return columns_count if hovering the unused space at the right of the right-most visible column. +int ImGui::TableGetHoveredColumn() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return -1; + return (int)table->HoveredColumnBody; +} + +// Return -1 when table is not hovered. Return maxrow+1 if in table but below last submitted row. +// *IMPORTANT* Unlike TableGetHoveredColumn(), this has a one frame latency in updating the value. +// This difference with is the reason why this is not public yet. +int ImGui::TableGetHoveredRow() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return -1; + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + return (int)table_instance->HoveredRowLast; +} + +void ImGui::TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(target != ImGuiTableBgTarget_None); + + if (color == IM_COL32_DISABLE) + color = 0; + + // We cannot draw neither the cell or row background immediately as we don't know the row height at this point in time. + switch (target) + { + case ImGuiTableBgTarget_CellBg: + { + if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard + return; + if (column_n == -1) + column_n = table->CurrentColumn; + if (!IM_BITARRAY_TESTBIT(table->VisibleMaskByIndex, column_n)) + return; + if (table->RowCellDataCurrent < 0 || table->RowCellData[table->RowCellDataCurrent].Column != column_n) + table->RowCellDataCurrent++; + ImGuiTableCellData* cell_data = &table->RowCellData[table->RowCellDataCurrent]; + cell_data->BgColor = color; + cell_data->Column = (ImGuiTableColumnIdx)column_n; + break; + } + case ImGuiTableBgTarget_RowBg0: + case ImGuiTableBgTarget_RowBg1: + { + if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard + return; + IM_ASSERT(column_n == -1); + int bg_idx = (target == ImGuiTableBgTarget_RowBg1) ? 1 : 0; + table->RowBgColor[bg_idx] = color; + break; + } + default: + IM_ASSERT(0); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Row changes +//------------------------------------------------------------------------- +// - TableGetRowIndex() +// - TableNextRow() +// - TableBeginRow() [Internal] +// - TableEndRow() [Internal] +//------------------------------------------------------------------------- + +// [Public] Note: for row coloring we use ->RowBgColorCounter which is the same value without counting header rows +int ImGui::TableGetRowIndex() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return 0; + return table->CurrentRow; +} + +// [Public] Starts into the first cell of a new row +void ImGui::TableNextRow(ImGuiTableRowFlags row_flags, float row_min_height) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + if (table->IsInsideRow) + TableEndRow(table); + + table->LastRowFlags = table->RowFlags; + table->RowFlags = row_flags; + table->RowCellPaddingY = g.Style.CellPadding.y; + table->RowMinHeight = row_min_height; + TableBeginRow(table); + + // We honor min_row_height requested by user, but cannot guarantee per-row maximum height, + // because that would essentially require a unique clipping rectangle per-cell. + table->RowPosY2 += table->RowCellPaddingY * 2.0f; + table->RowPosY2 = ImMax(table->RowPosY2, table->RowPosY1 + row_min_height); + + // Disable output until user calls TableNextColumn() + table->InnerWindow->SkipItems = true; +} + +// [Internal] Only called by TableNextRow() +void ImGui::TableBeginRow(ImGuiTable* table) +{ + ImGuiWindow* window = table->InnerWindow; + IM_ASSERT(!table->IsInsideRow); + + // New row + table->CurrentRow++; + table->CurrentColumn = -1; + table->RowBgColor[0] = table->RowBgColor[1] = IM_COL32_DISABLE; + table->RowCellDataCurrent = -1; + table->IsInsideRow = true; + + // Begin frozen rows + float next_y1 = table->RowPosY2; + if (table->CurrentRow == 0 && table->FreezeRowsCount > 0) + next_y1 = window->DC.CursorPos.y = table->OuterRect.Min.y; + + table->RowPosY1 = table->RowPosY2 = next_y1; + table->RowTextBaseline = 0.0f; + table->RowIndentOffsetX = window->DC.Indent.x - table->HostIndentX; // Lock indent + + window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.CursorPosPrevLine = ImVec2(window->DC.CursorPos.x, window->DC.CursorPos.y + table->RowCellPaddingY); // This allows users to call SameLine() to share LineSize between columns. + window->DC.PrevLineSize = window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); // This allows users to call SameLine() to share LineSize between columns, and to call it from first column too. + window->DC.IsSameLine = window->DC.IsSetPos = false; + window->DC.CursorMaxPos.y = next_y1; + + // Making the header BG color non-transparent will allow us to overlay it multiple times when handling smooth dragging. + if (table->RowFlags & ImGuiTableRowFlags_Headers) + { + TableSetBgColor(ImGuiTableBgTarget_RowBg0, GetColorU32(ImGuiCol_TableHeaderBg)); + if (table->CurrentRow == 0) + table->IsUsingHeaders = true; + } +} + +// [Internal] Called by TableNextRow() +void ImGui::TableEndRow(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window == table->InnerWindow); + IM_ASSERT(table->IsInsideRow); + + if (table->CurrentColumn != -1) + TableEndCell(table); + + // Logging + if (g.LogEnabled) + LogRenderedText(NULL, "|"); + + // Position cursor at the bottom of our row so it can be used for e.g. clipping calculation. However it is + // likely that the next call to TableBeginCell() will reposition the cursor to take account of vertical padding. + window->DC.CursorPos.y = table->RowPosY2; + + // Row background fill + const float bg_y1 = table->RowPosY1; + const float bg_y2 = table->RowPosY2; + const bool unfreeze_rows_actual = (table->CurrentRow + 1 == table->FreezeRowsCount); + const bool unfreeze_rows_request = (table->CurrentRow + 1 == table->FreezeRowsRequest); + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + if ((table->RowFlags & ImGuiTableRowFlags_Headers) && (table->CurrentRow == 0 || (table->LastRowFlags & ImGuiTableRowFlags_Headers))) + table_instance->LastTopHeadersRowHeight += bg_y2 - bg_y1; + + const bool is_visible = (bg_y2 >= table->InnerClipRect.Min.y && bg_y1 <= table->InnerClipRect.Max.y); + if (is_visible) + { + // Update data for TableGetHoveredRow() + if (table->HoveredColumnBody != -1 && g.IO.MousePos.y >= bg_y1 && g.IO.MousePos.y < bg_y2) + table_instance->HoveredRowNext = table->CurrentRow; + + // Decide of background color for the row + ImU32 bg_col0 = 0; + ImU32 bg_col1 = 0; + if (table->RowBgColor[0] != IM_COL32_DISABLE) + bg_col0 = table->RowBgColor[0]; + else if (table->Flags & ImGuiTableFlags_RowBg) + bg_col0 = GetColorU32((table->RowBgColorCounter & 1) ? ImGuiCol_TableRowBgAlt : ImGuiCol_TableRowBg); + if (table->RowBgColor[1] != IM_COL32_DISABLE) + bg_col1 = table->RowBgColor[1]; + + // Decide of top border color + ImU32 top_border_col = 0; + const float border_size = TABLE_BORDER_SIZE; + if (table->CurrentRow > 0 && (table->Flags & ImGuiTableFlags_BordersInnerH)) + top_border_col = (table->LastRowFlags & ImGuiTableRowFlags_Headers) ? table->BorderColorStrong : table->BorderColorLight; + + const bool draw_cell_bg_color = table->RowCellDataCurrent >= 0; + const bool draw_strong_bottom_border = unfreeze_rows_actual; + if ((bg_col0 | bg_col1 | top_border_col) != 0 || draw_strong_bottom_border || draw_cell_bg_color) + { + // In theory we could call SetWindowClipRectBeforeSetChannel() but since we know TableEndRow() is + // always followed by a change of clipping rectangle we perform the smallest overwrite possible here. + if ((table->Flags & ImGuiTableFlags_NoClip) == 0) + window->DrawList->_CmdHeader.ClipRect = table->Bg0ClipRectForDrawCmd.ToVec4(); + table->DrawSplitter->SetCurrentChannel(window->DrawList, TABLE_DRAW_CHANNEL_BG0); + } + + // Draw row background + // We soft/cpu clip this so all backgrounds and borders can share the same clipping rectangle + if (bg_col0 || bg_col1) + { + ImRect row_rect(table->WorkRect.Min.x, bg_y1, table->WorkRect.Max.x, bg_y2); + row_rect.ClipWith(table->BgClipRect); + if (bg_col0 != 0 && row_rect.Min.y < row_rect.Max.y) + window->DrawList->AddRectFilled(row_rect.Min, row_rect.Max, bg_col0); + if (bg_col1 != 0 && row_rect.Min.y < row_rect.Max.y) + window->DrawList->AddRectFilled(row_rect.Min, row_rect.Max, bg_col1); + } + + // Draw cell background color + if (draw_cell_bg_color) + { + ImGuiTableCellData* cell_data_end = &table->RowCellData[table->RowCellDataCurrent]; + for (ImGuiTableCellData* cell_data = &table->RowCellData[0]; cell_data <= cell_data_end; cell_data++) + { + // As we render the BG here we need to clip things (for layout we would not) + // FIXME: This cancels the OuterPadding addition done by TableGetCellBgRect(), need to keep it while rendering correctly while scrolling. + const ImGuiTableColumn* column = &table->Columns[cell_data->Column]; + ImRect cell_bg_rect = TableGetCellBgRect(table, cell_data->Column); + cell_bg_rect.ClipWith(table->BgClipRect); + cell_bg_rect.Min.x = ImMax(cell_bg_rect.Min.x, column->ClipRect.Min.x); // So that first column after frozen one gets clipped when scrolling + cell_bg_rect.Max.x = ImMin(cell_bg_rect.Max.x, column->MaxX); + window->DrawList->AddRectFilled(cell_bg_rect.Min, cell_bg_rect.Max, cell_data->BgColor); + } + } + + // Draw top border + if (top_border_col && bg_y1 >= table->BgClipRect.Min.y && bg_y1 < table->BgClipRect.Max.y) + window->DrawList->AddLine(ImVec2(table->BorderX1, bg_y1), ImVec2(table->BorderX2, bg_y1), top_border_col, border_size); + + // Draw bottom border at the row unfreezing mark (always strong) + if (draw_strong_bottom_border && bg_y2 >= table->BgClipRect.Min.y && bg_y2 < table->BgClipRect.Max.y) + window->DrawList->AddLine(ImVec2(table->BorderX1, bg_y2), ImVec2(table->BorderX2, bg_y2), table->BorderColorStrong, border_size); + } + + // End frozen rows (when we are past the last frozen row line, teleport cursor and alter clipping rectangle) + // We need to do that in TableEndRow() instead of TableBeginRow() so the list clipper can mark end of row and + // get the new cursor position. + if (unfreeze_rows_request) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->Columns[column_n].NavLayerCurrent = ImGuiNavLayer_Main; + if (unfreeze_rows_actual) + { + IM_ASSERT(table->IsUnfrozenRows == false); + const float y0 = ImMax(table->RowPosY2 + 1, window->InnerClipRect.Min.y); + table->IsUnfrozenRows = true; + table_instance->LastFrozenHeight = y0 - table->OuterRect.Min.y; + + // BgClipRect starts as table->InnerClipRect, reduce it now and make BgClipRectForDrawCmd == BgClipRect + table->BgClipRect.Min.y = table->Bg2ClipRectForDrawCmd.Min.y = ImMin(y0, window->InnerClipRect.Max.y); + table->BgClipRect.Max.y = table->Bg2ClipRectForDrawCmd.Max.y = window->InnerClipRect.Max.y; + table->Bg2DrawChannelCurrent = table->Bg2DrawChannelUnfrozen; + IM_ASSERT(table->Bg2ClipRectForDrawCmd.Min.y <= table->Bg2ClipRectForDrawCmd.Max.y); + + float row_height = table->RowPosY2 - table->RowPosY1; + table->RowPosY2 = window->DC.CursorPos.y = table->WorkRect.Min.y + table->RowPosY2 - table->OuterRect.Min.y; + table->RowPosY1 = table->RowPosY2 - row_height; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + column->DrawChannelCurrent = column->DrawChannelUnfrozen; + column->ClipRect.Min.y = table->Bg2ClipRectForDrawCmd.Min.y; + } + + // Update cliprect ahead of TableBeginCell() so clipper can access to new ClipRect->Min.y + SetWindowClipRectBeforeSetChannel(window, table->Columns[0].ClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, table->Columns[0].DrawChannelCurrent); + } + + if (!(table->RowFlags & ImGuiTableRowFlags_Headers)) + table->RowBgColorCounter++; + table->IsInsideRow = false; +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Columns changes +//------------------------------------------------------------------------- +// - TableGetColumnIndex() +// - TableSetColumnIndex() +// - TableNextColumn() +// - TableBeginCell() [Internal] +// - TableEndCell() [Internal] +//------------------------------------------------------------------------- + +int ImGui::TableGetColumnIndex() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return 0; + return table->CurrentColumn; +} + +// [Public] Append into a specific column +bool ImGui::TableSetColumnIndex(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return false; + + if (table->CurrentColumn != column_n) + { + if (table->CurrentColumn != -1) + TableEndCell(table); + IM_ASSERT(column_n >= 0 && table->ColumnsCount); + TableBeginCell(table, column_n); + } + + // Return whether the column is visible. User may choose to skip submitting items based on this return value, + // however they shouldn't skip submitting for columns that may have the tallest contribution to row height. + return table->Columns[column_n].IsRequestOutput; +} + +// [Public] Append into the next column, wrap and create a new row when already on last column +bool ImGui::TableNextColumn() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return false; + + if (table->IsInsideRow && table->CurrentColumn + 1 < table->ColumnsCount) + { + if (table->CurrentColumn != -1) + TableEndCell(table); + TableBeginCell(table, table->CurrentColumn + 1); + } + else + { + TableNextRow(); + TableBeginCell(table, 0); + } + + // Return whether the column is visible. User may choose to skip submitting items based on this return value, + // however they shouldn't skip submitting for columns that may have the tallest contribution to row height. + return table->Columns[table->CurrentColumn].IsRequestOutput; +} + + +// [Internal] Called by TableSetColumnIndex()/TableNextColumn() +// This is called very frequently, so we need to be mindful of unnecessary overhead. +// FIXME-TABLE FIXME-OPT: Could probably shortcut some things for non-active or clipped columns. +void ImGui::TableBeginCell(ImGuiTable* table, int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTableColumn* column = &table->Columns[column_n]; + ImGuiWindow* window = table->InnerWindow; + table->CurrentColumn = column_n; + + // Start position is roughly ~~ CellRect.Min + CellPadding + Indent + float start_x = column->WorkMinX; + if (column->Flags & ImGuiTableColumnFlags_IndentEnable) + start_x += table->RowIndentOffsetX; // ~~ += window.DC.Indent.x - table->HostIndentX, except we locked it for the row. + + window->DC.CursorPos.x = start_x; + window->DC.CursorPos.y = table->RowPosY1 + table->RowCellPaddingY; + window->DC.CursorMaxPos.x = window->DC.CursorPos.x; + window->DC.ColumnsOffset.x = start_x - window->Pos.x - window->DC.Indent.x; // FIXME-WORKRECT + window->DC.CursorPosPrevLine.x = window->DC.CursorPos.x; // PrevLine.y is preserved. This allows users to call SameLine() to share LineSize between columns. + window->DC.CurrLineTextBaseOffset = table->RowTextBaseline; + window->DC.NavLayerCurrent = (ImGuiNavLayer)column->NavLayerCurrent; + + // Note how WorkRect.Max.y is only set once during layout + window->WorkRect.Min.y = window->DC.CursorPos.y; + window->WorkRect.Min.x = column->WorkMinX; + window->WorkRect.Max.x = column->WorkMaxX; + window->DC.ItemWidth = column->ItemWidth; + + window->SkipItems = column->IsSkipItems; + if (column->IsSkipItems) + { + g.LastItemData.ID = 0; + g.LastItemData.StatusFlags = 0; + } + + if (table->Flags & ImGuiTableFlags_NoClip) + { + // FIXME: if we end up drawing all borders/bg in EndTable, could remove this and just assert that channel hasn't changed. + table->DrawSplitter->SetCurrentChannel(window->DrawList, TABLE_DRAW_CHANNEL_NOCLIP); + //IM_ASSERT(table->DrawSplitter._Current == TABLE_DRAW_CHANNEL_NOCLIP); + } + else + { + // FIXME-TABLE: Could avoid this if draw channel is dummy channel? + SetWindowClipRectBeforeSetChannel(window, column->ClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, column->DrawChannelCurrent); + } + + // Logging + if (g.LogEnabled && !column->IsSkipItems) + { + LogRenderedText(&window->DC.CursorPos, "|"); + g.LogLinePosY = FLT_MAX; + } +} + +// [Internal] Called by TableNextRow()/TableSetColumnIndex()/TableNextColumn() +void ImGui::TableEndCell(ImGuiTable* table) +{ + ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; + ImGuiWindow* window = table->InnerWindow; + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + // Report maximum position so we can infer content size per column. + float* p_max_pos_x; + if (table->RowFlags & ImGuiTableRowFlags_Headers) + p_max_pos_x = &column->ContentMaxXHeadersUsed; // Useful in case user submit contents in header row that is not a TableHeader() call + else + p_max_pos_x = table->IsUnfrozenRows ? &column->ContentMaxXUnfrozen : &column->ContentMaxXFrozen; + *p_max_pos_x = ImMax(*p_max_pos_x, window->DC.CursorMaxPos.x); + if (column->IsEnabled) + table->RowPosY2 = ImMax(table->RowPosY2, window->DC.CursorMaxPos.y + table->RowCellPaddingY); + column->ItemWidth = window->DC.ItemWidth; + + // Propagate text baseline for the entire row + // FIXME-TABLE: Here we propagate text baseline from the last line of the cell.. instead of the first one. + table->RowTextBaseline = ImMax(table->RowTextBaseline, window->DC.PrevLineTextBaseOffset); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Columns width management +//------------------------------------------------------------------------- +// - TableGetMaxColumnWidth() [Internal] +// - TableGetColumnWidthAuto() [Internal] +// - TableSetColumnWidth() +// - TableSetColumnWidthAutoSingle() [Internal] +// - TableSetColumnWidthAutoAll() [Internal] +// - TableUpdateColumnsWeightFromWidth() [Internal] +//------------------------------------------------------------------------- + +// Maximum column content width given current layout. Use column->MinX so this value on a per-column basis. +float ImGui::TableGetMaxColumnWidth(const ImGuiTable* table, int column_n) +{ + const ImGuiTableColumn* column = &table->Columns[column_n]; + float max_width = FLT_MAX; + const float min_column_distance = table->MinColumnWidth + table->CellPaddingX * 2.0f + table->CellSpacingX1 + table->CellSpacingX2; + if (table->Flags & ImGuiTableFlags_ScrollX) + { + // Frozen columns can't reach beyond visible width else scrolling will naturally break. + // (we use DisplayOrder as within a set of multiple frozen column reordering is possible) + if (column->DisplayOrder < table->FreezeColumnsRequest) + { + max_width = (table->InnerClipRect.Max.x - (table->FreezeColumnsRequest - column->DisplayOrder) * min_column_distance) - column->MinX; + max_width = max_width - table->OuterPaddingX - table->CellPaddingX - table->CellSpacingX2; + } + } + else if ((table->Flags & ImGuiTableFlags_NoKeepColumnsVisible) == 0) + { + // If horizontal scrolling if disabled, we apply a final lossless shrinking of columns in order to make + // sure they are all visible. Because of this we also know that all of the columns will always fit in + // table->WorkRect and therefore in table->InnerRect (because ScrollX is off) + // FIXME-TABLE: This is solved incorrectly but also quite a difficult problem to fix as we also want ClipRect width to match. + // See "table_width_distrib" and "table_width_keep_visible" tests + max_width = table->WorkRect.Max.x - (table->ColumnsEnabledCount - column->IndexWithinEnabledSet - 1) * min_column_distance - column->MinX; + //max_width -= table->CellSpacingX1; + max_width -= table->CellSpacingX2; + max_width -= table->CellPaddingX * 2.0f; + max_width -= table->OuterPaddingX; + } + return max_width; +} + +// Note this is meant to be stored in column->WidthAuto, please generally use the WidthAuto field +float ImGui::TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column) +{ + const float content_width_body = ImMax(column->ContentMaxXFrozen, column->ContentMaxXUnfrozen) - column->WorkMinX; + const float content_width_headers = column->ContentMaxXHeadersIdeal - column->WorkMinX; + float width_auto = content_width_body; + if (!(column->Flags & ImGuiTableColumnFlags_NoHeaderWidth)) + width_auto = ImMax(width_auto, content_width_headers); + + // Non-resizable fixed columns preserve their requested width + if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && column->InitStretchWeightOrWidth > 0.0f) + if (!(table->Flags & ImGuiTableFlags_Resizable) || (column->Flags & ImGuiTableColumnFlags_NoResize)) + width_auto = column->InitStretchWeightOrWidth; + + return ImMax(width_auto, table->MinColumnWidth); +} + +// 'width' = inner column width, without padding +void ImGui::TableSetColumnWidth(int column_n, float width) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && table->IsLayoutLocked == false); + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiTableColumn* column_0 = &table->Columns[column_n]; + float column_0_width = width; + + // Apply constraints early + // Compare both requested and actual given width to avoid overwriting requested width when column is stuck (minimum size, bounded) + IM_ASSERT(table->MinColumnWidth > 0.0f); + const float min_width = table->MinColumnWidth; + const float max_width = ImMax(min_width, TableGetMaxColumnWidth(table, column_n)); + column_0_width = ImClamp(column_0_width, min_width, max_width); + if (column_0->WidthGiven == column_0_width || column_0->WidthRequest == column_0_width) + return; + + //IMGUI_DEBUG_PRINT("TableSetColumnWidth(%d, %.1f->%.1f)\n", column_0_idx, column_0->WidthGiven, column_0_width); + ImGuiTableColumn* column_1 = (column_0->NextEnabledColumn != -1) ? &table->Columns[column_0->NextEnabledColumn] : NULL; + + // In this surprisingly not simple because of how we support mixing Fixed and multiple Stretch columns. + // - All fixed: easy. + // - All stretch: easy. + // - One or more fixed + one stretch: easy. + // - One or more fixed + more than one stretch: tricky. + // Qt when manual resize is enabled only supports a single _trailing_ stretch column, we support more cases here. + + // When forwarding resize from Wn| to Fn+1| we need to be considerate of the _NoResize flag on Fn+1. + // FIXME-TABLE: Find a way to rewrite all of this so interactions feel more consistent for the user. + // Scenarios: + // - F1 F2 F3 resize from F1| or F2| --> ok: alter ->WidthRequested of Fixed column. Subsequent columns will be offset. + // - F1 F2 F3 resize from F3| --> ok: alter ->WidthRequested of Fixed column. If active, ScrollX extent can be altered. + // - F1 F2 W3 resize from F1| or F2| --> ok: alter ->WidthRequested of Fixed column. If active, ScrollX extent can be altered, but it doesn't make much sense as the Stretch column will always be minimal size. + // - F1 F2 W3 resize from W3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 W2 W3 resize from W1| or W2| --> ok + // - W1 W2 W3 resize from W3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 F2 F3 resize from F3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 F2 resize from F2| --> ok: no-op (disabled by Resize Rule 1) + // - W1 W2 F3 resize from W1| or W2| --> ok + // - W1 F2 W3 resize from W1| or F2| --> ok + // - F1 W2 F3 resize from W2| --> ok + // - F1 W3 F2 resize from W3| --> ok + // - W1 F2 F3 resize from W1| --> ok: equivalent to resizing |F2. F3 will not move. + // - W1 F2 F3 resize from F2| --> ok + // All resizes from a Wx columns are locking other columns. + + // Possible improvements: + // - W1 W2 W3 resize W1| --> to not be stuck, both W2 and W3 would stretch down. Seems possible to fix. Would be most beneficial to simplify resize of all-weighted columns. + // - W3 F1 F2 resize W3| --> to not be stuck past F1|, both F1 and F2 would need to stretch down, which would be lossy or ambiguous. Seems hard to fix. + + // [Resize Rule 1] Can't resize from right of right-most visible column if there is any Stretch column. Implemented in TableUpdateLayout(). + + // If we have all Fixed columns OR resizing a Fixed column that doesn't come after a Stretch one, we can do an offsetting resize. + // This is the preferred resize path + if (column_0->Flags & ImGuiTableColumnFlags_WidthFixed) + if (!column_1 || table->LeftMostStretchedColumn == -1 || table->Columns[table->LeftMostStretchedColumn].DisplayOrder >= column_0->DisplayOrder) + { + column_0->WidthRequest = column_0_width; + table->IsSettingsDirty = true; + return; + } + + // We can also use previous column if there's no next one (this is used when doing an auto-fit on the right-most stretch column) + if (column_1 == NULL) + column_1 = (column_0->PrevEnabledColumn != -1) ? &table->Columns[column_0->PrevEnabledColumn] : NULL; + if (column_1 == NULL) + return; + + // Resizing from right-side of a Stretch column before a Fixed column forward sizing to left-side of fixed column. + // (old_a + old_b == new_a + new_b) --> (new_a == old_a + old_b - new_b) + float column_1_width = ImMax(column_1->WidthRequest - (column_0_width - column_0->WidthRequest), min_width); + column_0_width = column_0->WidthRequest + column_1->WidthRequest - column_1_width; + IM_ASSERT(column_0_width > 0.0f && column_1_width > 0.0f); + column_0->WidthRequest = column_0_width; + column_1->WidthRequest = column_1_width; + if ((column_0->Flags | column_1->Flags) & ImGuiTableColumnFlags_WidthStretch) + TableUpdateColumnsWeightFromWidth(table); + table->IsSettingsDirty = true; +} + +// Disable clipping then auto-fit, will take 2 frames +// (we don't take a shortcut for unclipped columns to reduce inconsistencies when e.g. resizing multiple columns) +void ImGui::TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n) +{ + // Single auto width uses auto-fit + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled) + return; + column->CannotSkipItemsQueue = (1 << 0); + table->AutoFitSingleColumn = (ImGuiTableColumnIdx)column_n; +} + +void ImGui::TableSetColumnWidthAutoAll(ImGuiTable* table) +{ + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled && !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) // Cannot reset weight of hidden stretch column + continue; + column->CannotSkipItemsQueue = (1 << 0); + column->AutoFitQueue = (1 << 1); + } +} + +void ImGui::TableUpdateColumnsWeightFromWidth(ImGuiTable* table) +{ + IM_ASSERT(table->LeftMostStretchedColumn != -1 && table->RightMostStretchedColumn != -1); + + // Measure existing quantities + float visible_weight = 0.0f; + float visible_width = 0.0f; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled || !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + IM_ASSERT(column->StretchWeight > 0.0f); + visible_weight += column->StretchWeight; + visible_width += column->WidthRequest; + } + IM_ASSERT(visible_weight > 0.0f && visible_width > 0.0f); + + // Apply new weights + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled || !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + column->StretchWeight = (column->WidthRequest / visible_width) * visible_weight; + IM_ASSERT(column->StretchWeight > 0.0f); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Drawing +//------------------------------------------------------------------------- +// - TablePushBackgroundChannel() [Internal] +// - TablePopBackgroundChannel() [Internal] +// - TableSetupDrawChannels() [Internal] +// - TableMergeDrawChannels() [Internal] +// - TableGetColumnBorderCol() [Internal] +// - TableDrawBorders() [Internal] +//------------------------------------------------------------------------- + +// Bg2 is used by Selectable (and possibly other widgets) to render to the background. +// Unlike our Bg0/1 channel which we uses for RowBg/CellBg/Borders and where we guarantee all shapes to be CPU-clipped, the Bg2 channel being widgets-facing will rely on regular ClipRect. +void ImGui::TablePushBackgroundChannel() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiTable* table = g.CurrentTable; + + // Optimization: avoid SetCurrentChannel() + PushClipRect() + table->HostBackupInnerClipRect = window->ClipRect; + SetWindowClipRectBeforeSetChannel(window, table->Bg2ClipRectForDrawCmd); + table->DrawSplitter->SetCurrentChannel(window->DrawList, table->Bg2DrawChannelCurrent); +} + +void ImGui::TablePopBackgroundChannel() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiTable* table = g.CurrentTable; + ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + SetWindowClipRectBeforeSetChannel(window, table->HostBackupInnerClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, column->DrawChannelCurrent); +} + +// Allocate draw channels. Called by TableUpdateLayout() +// - We allocate them following storage order instead of display order so reordering columns won't needlessly +// increase overall dormant memory cost. +// - We isolate headers draw commands in their own channels instead of just altering clip rects. +// This is in order to facilitate merging of draw commands. +// - After crossing FreezeRowsCount, all columns see their current draw channel changed to a second set of channels. +// - We only use the dummy draw channel so we can push a null clipping rectangle into it without affecting other +// channels, while simplifying per-row/per-cell overhead. It will be empty and discarded when merged. +// - We allocate 1 or 2 background draw channels. This is because we know TablePushBackgroundChannel() is only used for +// horizontal spanning. If we allowed vertical spanning we'd need one background draw channel per merge group (1-4). +// Draw channel allocation (before merging): +// - NoClip --> 2+D+1 channels: bg0/1 + bg2 + foreground (same clip rect == always 1 draw call) +// - Clip --> 2+D+N channels +// - FreezeRows --> 2+D+N*2 (unless scrolling value is zero) +// - FreezeRows || FreezeColunns --> 3+D+N*2 (unless scrolling value is zero) +// Where D is 1 if any column is clipped or hidden (dummy channel) otherwise 0. +void ImGui::TableSetupDrawChannels(ImGuiTable* table) +{ + const int freeze_row_multiplier = (table->FreezeRowsCount > 0) ? 2 : 1; + const int channels_for_row = (table->Flags & ImGuiTableFlags_NoClip) ? 1 : table->ColumnsEnabledCount; + const int channels_for_bg = 1 + 1 * freeze_row_multiplier; + const int channels_for_dummy = (table->ColumnsEnabledCount < table->ColumnsCount || (memcmp(table->VisibleMaskByIndex, table->EnabledMaskByIndex, ImBitArrayGetStorageSizeInBytes(table->ColumnsCount)) != 0)) ? +1 : 0; + const int channels_total = channels_for_bg + (channels_for_row * freeze_row_multiplier) + channels_for_dummy; + table->DrawSplitter->Split(table->InnerWindow->DrawList, channels_total); + table->DummyDrawChannel = (ImGuiTableDrawChannelIdx)((channels_for_dummy > 0) ? channels_total - 1 : -1); + table->Bg2DrawChannelCurrent = TABLE_DRAW_CHANNEL_BG2_FROZEN; + table->Bg2DrawChannelUnfrozen = (ImGuiTableDrawChannelIdx)((table->FreezeRowsCount > 0) ? 2 + channels_for_row : TABLE_DRAW_CHANNEL_BG2_FROZEN); + + int draw_channel_current = 2; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->IsVisibleX && column->IsVisibleY) + { + column->DrawChannelFrozen = (ImGuiTableDrawChannelIdx)(draw_channel_current); + column->DrawChannelUnfrozen = (ImGuiTableDrawChannelIdx)(draw_channel_current + (table->FreezeRowsCount > 0 ? channels_for_row + 1 : 0)); + if (!(table->Flags & ImGuiTableFlags_NoClip)) + draw_channel_current++; + } + else + { + column->DrawChannelFrozen = column->DrawChannelUnfrozen = table->DummyDrawChannel; + } + column->DrawChannelCurrent = column->DrawChannelFrozen; + } + + // Initial draw cmd starts with a BgClipRect that matches the one of its host, to facilitate merge draw commands by default. + // All our cell highlight are manually clipped with BgClipRect. When unfreezing it will be made smaller to fit scrolling rect. + // (This technically isn't part of setting up draw channels, but is reasonably related to be done here) + table->BgClipRect = table->InnerClipRect; + table->Bg0ClipRectForDrawCmd = table->OuterWindow->ClipRect; + table->Bg2ClipRectForDrawCmd = table->HostClipRect; + IM_ASSERT(table->BgClipRect.Min.y <= table->BgClipRect.Max.y); +} + +// This function reorder draw channels based on matching clip rectangle, to facilitate merging them. Called by EndTable(). +// For simplicity we call it TableMergeDrawChannels() but in fact it only reorder channels + overwrite ClipRect, +// actual merging is done by table->DrawSplitter.Merge() which is called right after TableMergeDrawChannels(). +// +// Columns where the contents didn't stray off their local clip rectangle can be merged. To achieve +// this we merge their clip rect and make them contiguous in the channel list, so they can be merged +// by the call to DrawSplitter.Merge() following to the call to this function. +// We reorder draw commands by arranging them into a maximum of 4 distinct groups: +// +// 1 group: 2 groups: 2 groups: 4 groups: +// [ 0. ] no freeze [ 0. ] row freeze [ 01 ] col freeze [ 01 ] row+col freeze +// [ .. ] or no scroll [ 2. ] and v-scroll [ .. ] and h-scroll [ 23 ] and v+h-scroll +// +// Each column itself can use 1 channel (row freeze disabled) or 2 channels (row freeze enabled). +// When the contents of a column didn't stray off its limit, we move its channels into the corresponding group +// based on its position (within frozen rows/columns groups or not). +// At the end of the operation our 1-4 groups will each have a ImDrawCmd using the same ClipRect. +// This function assume that each column are pointing to a distinct draw channel, +// otherwise merge_group->ChannelsCount will not match set bit count of merge_group->ChannelsMask. +// +// Column channels will not be merged into one of the 1-4 groups in the following cases: +// - The contents stray off its clipping rectangle (we only compare the MaxX value, not the MinX value). +// Direct ImDrawList calls won't be taken into account by default, if you use them make sure the ImGui:: bounds +// matches, by e.g. calling SetCursorScreenPos(). +// - The channel uses more than one draw command itself. We drop all our attempt at merging stuff here.. +// we could do better but it's going to be rare and probably not worth the hassle. +// Columns for which the draw channel(s) haven't been merged with other will use their own ImDrawCmd. +// +// This function is particularly tricky to understand.. take a breath. +void ImGui::TableMergeDrawChannels(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImDrawListSplitter* splitter = table->DrawSplitter; + const bool has_freeze_v = (table->FreezeRowsCount > 0); + const bool has_freeze_h = (table->FreezeColumnsCount > 0); + IM_ASSERT(splitter->_Current == 0); + + // Track which groups we are going to attempt to merge, and which channels goes into each group. + struct MergeGroup + { + ImRect ClipRect; + int ChannelsCount = 0; + ImBitArrayPtr ChannelsMask = NULL; + }; + int merge_group_mask = 0x00; + MergeGroup merge_groups[4]; + + // Use a reusable temp buffer for the merge masks as they are dynamically sized. + const int max_draw_channels = (4 + table->ColumnsCount * 2); + const int size_for_masks_bitarrays_one = (int)ImBitArrayGetStorageSizeInBytes(max_draw_channels); + g.TempBuffer.reserve(size_for_masks_bitarrays_one * 5); + memset(g.TempBuffer.Data, 0, size_for_masks_bitarrays_one * 5); + for (int n = 0; n < IM_ARRAYSIZE(merge_groups); n++) + merge_groups[n].ChannelsMask = (ImBitArrayPtr)(void*)(g.TempBuffer.Data + (size_for_masks_bitarrays_one * n)); + ImBitArrayPtr remaining_mask = (ImBitArrayPtr)(void*)(g.TempBuffer.Data + (size_for_masks_bitarrays_one * 4)); + + // 1. Scan channels and take note of those which can be merged + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if (!IM_BITARRAY_TESTBIT(table->VisibleMaskByIndex, column_n)) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + const int merge_group_sub_count = has_freeze_v ? 2 : 1; + for (int merge_group_sub_n = 0; merge_group_sub_n < merge_group_sub_count; merge_group_sub_n++) + { + const int channel_no = (merge_group_sub_n == 0) ? column->DrawChannelFrozen : column->DrawChannelUnfrozen; + + // Don't attempt to merge if there are multiple draw calls within the column + ImDrawChannel* src_channel = &splitter->_Channels[channel_no]; + if (src_channel->_CmdBuffer.Size > 0 && src_channel->_CmdBuffer.back().ElemCount == 0 && src_channel->_CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() + src_channel->_CmdBuffer.pop_back(); + if (src_channel->_CmdBuffer.Size != 1) + continue; + + // Find out the width of this merge group and check if it will fit in our column + // (note that we assume that rendering didn't stray on the left direction. we should need a CursorMinPos to detect it) + if (!(column->Flags & ImGuiTableColumnFlags_NoClip)) + { + float content_max_x; + if (!has_freeze_v) + content_max_x = ImMax(column->ContentMaxXUnfrozen, column->ContentMaxXHeadersUsed); // No row freeze + else if (merge_group_sub_n == 0) + content_max_x = ImMax(column->ContentMaxXFrozen, column->ContentMaxXHeadersUsed); // Row freeze: use width before freeze + else + content_max_x = column->ContentMaxXUnfrozen; // Row freeze: use width after freeze + if (content_max_x > column->ClipRect.Max.x) + continue; + } + + const int merge_group_n = (has_freeze_h && column_n < table->FreezeColumnsCount ? 0 : 1) + (has_freeze_v && merge_group_sub_n == 0 ? 0 : 2); + IM_ASSERT(channel_no < max_draw_channels); + MergeGroup* merge_group = &merge_groups[merge_group_n]; + if (merge_group->ChannelsCount == 0) + merge_group->ClipRect = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); + ImBitArraySetBit(merge_group->ChannelsMask, channel_no); + merge_group->ChannelsCount++; + merge_group->ClipRect.Add(src_channel->_CmdBuffer[0].ClipRect); + merge_group_mask |= (1 << merge_group_n); + } + + // Invalidate current draw channel + // (we don't clear DrawChannelFrozen/DrawChannelUnfrozen solely to facilitate debugging/later inspection of data) + column->DrawChannelCurrent = (ImGuiTableDrawChannelIdx)-1; + } + + // [DEBUG] Display merge groups +#if 0 + if (g.IO.KeyShift) + for (int merge_group_n = 0; merge_group_n < IM_ARRAYSIZE(merge_groups); merge_group_n++) + { + MergeGroup* merge_group = &merge_groups[merge_group_n]; + if (merge_group->ChannelsCount == 0) + continue; + char buf[32]; + ImFormatString(buf, 32, "MG%d:%d", merge_group_n, merge_group->ChannelsCount); + ImVec2 text_pos = merge_group->ClipRect.Min + ImVec2(4, 4); + ImVec2 text_size = CalcTextSize(buf, NULL); + GetForegroundDrawList()->AddRectFilled(text_pos, text_pos + text_size, IM_COL32(0, 0, 0, 255)); + GetForegroundDrawList()->AddText(text_pos, IM_COL32(255, 255, 0, 255), buf, NULL); + GetForegroundDrawList()->AddRect(merge_group->ClipRect.Min, merge_group->ClipRect.Max, IM_COL32(255, 255, 0, 255)); + } +#endif + + // 2. Rewrite channel list in our preferred order + if (merge_group_mask != 0) + { + // We skip channel 0 (Bg0/Bg1) and 1 (Bg2 frozen) from the shuffling since they won't move - see channels allocation in TableSetupDrawChannels(). + const int LEADING_DRAW_CHANNELS = 2; + g.DrawChannelsTempMergeBuffer.resize(splitter->_Count - LEADING_DRAW_CHANNELS); // Use shared temporary storage so the allocation gets amortized + ImDrawChannel* dst_tmp = g.DrawChannelsTempMergeBuffer.Data; + ImBitArraySetBitRange(remaining_mask, LEADING_DRAW_CHANNELS, splitter->_Count); + ImBitArrayClearBit(remaining_mask, table->Bg2DrawChannelUnfrozen); + IM_ASSERT(has_freeze_v == false || table->Bg2DrawChannelUnfrozen != TABLE_DRAW_CHANNEL_BG2_FROZEN); + int remaining_count = splitter->_Count - (has_freeze_v ? LEADING_DRAW_CHANNELS + 1 : LEADING_DRAW_CHANNELS); + //ImRect host_rect = (table->InnerWindow == table->OuterWindow) ? table->InnerClipRect : table->HostClipRect; + ImRect host_rect = table->HostClipRect; + for (int merge_group_n = 0; merge_group_n < IM_ARRAYSIZE(merge_groups); merge_group_n++) + { + if (int merge_channels_count = merge_groups[merge_group_n].ChannelsCount) + { + MergeGroup* merge_group = &merge_groups[merge_group_n]; + ImRect merge_clip_rect = merge_group->ClipRect; + + // Extend outer-most clip limits to match those of host, so draw calls can be merged even if + // outer-most columns have some outer padding offsetting them from their parent ClipRect. + // The principal cases this is dealing with are: + // - On a same-window table (not scrolling = single group), all fitting columns ClipRect -> will extend and match host ClipRect -> will merge + // - Columns can use padding and have left-most ClipRect.Min.x and right-most ClipRect.Max.x != from host ClipRect -> will extend and match host ClipRect -> will merge + // FIXME-TABLE FIXME-WORKRECT: We are wasting a merge opportunity on tables without scrolling if column doesn't fit + // within host clip rect, solely because of the half-padding difference between window->WorkRect and window->InnerClipRect. + if ((merge_group_n & 1) == 0 || !has_freeze_h) + merge_clip_rect.Min.x = ImMin(merge_clip_rect.Min.x, host_rect.Min.x); + if ((merge_group_n & 2) == 0 || !has_freeze_v) + merge_clip_rect.Min.y = ImMin(merge_clip_rect.Min.y, host_rect.Min.y); + if ((merge_group_n & 1) != 0) + merge_clip_rect.Max.x = ImMax(merge_clip_rect.Max.x, host_rect.Max.x); + if ((merge_group_n & 2) != 0 && (table->Flags & ImGuiTableFlags_NoHostExtendY) == 0) + merge_clip_rect.Max.y = ImMax(merge_clip_rect.Max.y, host_rect.Max.y); + //GetForegroundDrawList()->AddRect(merge_group->ClipRect.Min, merge_group->ClipRect.Max, IM_COL32(255, 0, 0, 200), 0.0f, 0, 1.0f); // [DEBUG] + //GetForegroundDrawList()->AddLine(merge_group->ClipRect.Min, merge_clip_rect.Min, IM_COL32(255, 100, 0, 200)); + //GetForegroundDrawList()->AddLine(merge_group->ClipRect.Max, merge_clip_rect.Max, IM_COL32(255, 100, 0, 200)); + remaining_count -= merge_group->ChannelsCount; + for (int n = 0; n < (size_for_masks_bitarrays_one >> 2); n++) + remaining_mask[n] &= ~merge_group->ChannelsMask[n]; + for (int n = 0; n < splitter->_Count && merge_channels_count != 0; n++) + { + // Copy + overwrite new clip rect + if (!IM_BITARRAY_TESTBIT(merge_group->ChannelsMask, n)) + continue; + IM_BITARRAY_CLEARBIT(merge_group->ChannelsMask, n); + merge_channels_count--; + + ImDrawChannel* channel = &splitter->_Channels[n]; + IM_ASSERT(channel->_CmdBuffer.Size == 1 && merge_clip_rect.Contains(ImRect(channel->_CmdBuffer[0].ClipRect))); + channel->_CmdBuffer[0].ClipRect = merge_clip_rect.ToVec4(); + memcpy(dst_tmp++, channel, sizeof(ImDrawChannel)); + } + } + + // Make sure Bg2DrawChannelUnfrozen appears in the middle of our groups (whereas Bg0/Bg1 and Bg2 frozen are fixed to 0 and 1) + if (merge_group_n == 1 && has_freeze_v) + memcpy(dst_tmp++, &splitter->_Channels[table->Bg2DrawChannelUnfrozen], sizeof(ImDrawChannel)); + } + + // Append unmergeable channels that we didn't reorder at the end of the list + for (int n = 0; n < splitter->_Count && remaining_count != 0; n++) + { + if (!IM_BITARRAY_TESTBIT(remaining_mask, n)) + continue; + ImDrawChannel* channel = &splitter->_Channels[n]; + memcpy(dst_tmp++, channel, sizeof(ImDrawChannel)); + remaining_count--; + } + IM_ASSERT(dst_tmp == g.DrawChannelsTempMergeBuffer.Data + g.DrawChannelsTempMergeBuffer.Size); + memcpy(splitter->_Channels.Data + LEADING_DRAW_CHANNELS, g.DrawChannelsTempMergeBuffer.Data, (splitter->_Count - LEADING_DRAW_CHANNELS) * sizeof(ImDrawChannel)); + } +} + +static ImU32 TableGetColumnBorderCol(ImGuiTable* table, int order_n, int column_n) +{ + const bool is_hovered = (table->HoveredColumnBorder == column_n); + const bool is_resized = (table->ResizedColumn == column_n) && (table->InstanceInteracted == table->InstanceCurrent); + const bool is_frozen_separator = (table->FreezeColumnsCount == order_n + 1); + if (is_resized || is_hovered) + return ImGui::GetColorU32(is_resized ? ImGuiCol_SeparatorActive : ImGuiCol_SeparatorHovered); + if (is_frozen_separator || (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize))) + return table->BorderColorStrong; + return table->BorderColorLight; +} + +// FIXME-TABLE: This is a mess, need to redesign how we render borders (as some are also done in TableEndRow) +void ImGui::TableDrawBorders(ImGuiTable* table) +{ + ImGuiWindow* inner_window = table->InnerWindow; + if (!table->OuterWindow->ClipRect.Overlaps(table->OuterRect)) + return; + + ImDrawList* inner_drawlist = inner_window->DrawList; + table->DrawSplitter->SetCurrentChannel(inner_drawlist, TABLE_DRAW_CHANNEL_BG0); + inner_drawlist->PushClipRect(table->Bg0ClipRectForDrawCmd.Min, table->Bg0ClipRectForDrawCmd.Max, false); + + // Draw inner border and resizing feedback + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + const float border_size = TABLE_BORDER_SIZE; + const float draw_y1 = ImMax(table->InnerRect.Min.y, (table->FreezeRowsCount >= 1 ? table->InnerRect.Min.y : table->WorkRect.Min.y) + table->AngledHeadersHeight) + ((table->Flags & ImGuiTableFlags_BordersOuterH) ? 1.0f : 0.0f); + const float draw_y2_body = table->InnerRect.Max.y; + const float draw_y2_head = table->IsUsingHeaders ? ImMin(table->InnerRect.Max.y, (table->FreezeRowsCount >= 1 ? table->InnerRect.Min.y : table->WorkRect.Min.y) + table_instance->LastTopHeadersRowHeight) : draw_y1; + if (table->Flags & ImGuiTableFlags_BordersInnerV) + { + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByDisplayOrder, order_n)) + continue; + + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + const bool is_hovered = (table->HoveredColumnBorder == column_n); + const bool is_resized = (table->ResizedColumn == column_n) && (table->InstanceInteracted == table->InstanceCurrent); + const bool is_resizable = (column->Flags & (ImGuiTableColumnFlags_NoResize | ImGuiTableColumnFlags_NoDirectResize_)) == 0; + const bool is_frozen_separator = (table->FreezeColumnsCount == order_n + 1); + if (column->MaxX > table->InnerClipRect.Max.x && !is_resized) + continue; + + // Decide whether right-most column is visible + if (column->NextEnabledColumn == -1 && !is_resizable) + if ((table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame || (table->Flags & ImGuiTableFlags_NoHostExtendX)) + continue; + if (column->MaxX <= column->ClipRect.Min.x) // FIXME-TABLE FIXME-STYLE: Assume BorderSize==1, this is problematic if we want to increase the border size.. + continue; + + // Draw in outer window so right-most column won't be clipped + // Always draw full height border when being resized/hovered, or on the delimitation of frozen column scrolling. + float draw_y2 = (is_hovered || is_resized || is_frozen_separator || (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize)) == 0) ? draw_y2_body : draw_y2_head; + if (draw_y2 > draw_y1) + inner_drawlist->AddLine(ImVec2(column->MaxX, draw_y1), ImVec2(column->MaxX, draw_y2), TableGetColumnBorderCol(table, order_n, column_n), border_size); + } + } + + // Draw outer border + // FIXME: could use AddRect or explicit VLine/HLine helper? + if (table->Flags & ImGuiTableFlags_BordersOuter) + { + // Display outer border offset by 1 which is a simple way to display it without adding an extra draw call + // (Without the offset, in outer_window it would be rendered behind cells, because child windows are above their + // parent. In inner_window, it won't reach out over scrollbars. Another weird solution would be to display part + // of it in inner window, and the part that's over scrollbars in the outer window..) + // Either solution currently won't allow us to use a larger border size: the border would clipped. + const ImRect outer_border = table->OuterRect; + const ImU32 outer_col = table->BorderColorStrong; + if ((table->Flags & ImGuiTableFlags_BordersOuter) == ImGuiTableFlags_BordersOuter) + { + inner_drawlist->AddRect(outer_border.Min, outer_border.Max + ImVec2(1, 1), outer_col, 0.0f, 0, border_size); + } + else if (table->Flags & ImGuiTableFlags_BordersOuterV) + { + inner_drawlist->AddLine(outer_border.Min, ImVec2(outer_border.Min.x, outer_border.Max.y), outer_col, border_size); + inner_drawlist->AddLine(ImVec2(outer_border.Max.x, outer_border.Min.y), outer_border.Max, outer_col, border_size); + } + else if (table->Flags & ImGuiTableFlags_BordersOuterH) + { + inner_drawlist->AddLine(outer_border.Min, ImVec2(outer_border.Max.x, outer_border.Min.y), outer_col, border_size); + inner_drawlist->AddLine(ImVec2(outer_border.Min.x, outer_border.Max.y), outer_border.Max, outer_col, border_size); + } + } + if ((table->Flags & ImGuiTableFlags_BordersInnerH) && table->RowPosY2 < table->OuterRect.Max.y) + { + // Draw bottom-most row border between it is above outer border. + const float border_y = table->RowPosY2; + if (border_y >= table->BgClipRect.Min.y && border_y < table->BgClipRect.Max.y) + inner_drawlist->AddLine(ImVec2(table->BorderX1, border_y), ImVec2(table->BorderX2, border_y), table->BorderColorLight, border_size); + } + + inner_drawlist->PopClipRect(); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Sorting +//------------------------------------------------------------------------- +// - TableGetSortSpecs() +// - TableFixColumnSortDirection() [Internal] +// - TableGetColumnNextSortDirection() [Internal] +// - TableSetColumnSortDirection() [Internal] +// - TableSortSpecsSanitize() [Internal] +// - TableSortSpecsBuild() [Internal] +//------------------------------------------------------------------------- + +// Return NULL if no sort specs (most often when ImGuiTableFlags_Sortable is not set) +// When 'sort_specs->SpecsDirty == true' you should sort your data. It will be true when sorting specs have +// changed since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, +// else you may wastefully sort your data every frame! +// Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable()! +ImGuiTableSortSpecs* ImGui::TableGetSortSpecs() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL); + + if (!(table->Flags & ImGuiTableFlags_Sortable)) + return NULL; + + // Require layout (in case TableHeadersRow() hasn't been called) as it may alter IsSortSpecsDirty in some paths. + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + TableSortSpecsBuild(table); + return &table->SortSpecs; +} + +static inline ImGuiSortDirection TableGetColumnAvailSortDirection(ImGuiTableColumn* column, int n) +{ + IM_ASSERT(n < column->SortDirectionsAvailCount); + return (column->SortDirectionsAvailList >> (n << 1)) & 0x03; +} + +// Fix sort direction if currently set on a value which is unavailable (e.g. activating NoSortAscending/NoSortDescending) +void ImGui::TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column) +{ + if (column->SortOrder == -1 || (column->SortDirectionsAvailMask & (1 << column->SortDirection)) != 0) + return; + column->SortDirection = (ImU8)TableGetColumnAvailSortDirection(column, 0); + table->IsSortSpecsDirty = true; +} + +// Calculate next sort direction that would be set after clicking the column +// - If the PreferSortDescending flag is set, we will default to a Descending direction on the first click. +// - Note that the PreferSortAscending flag is never checked, it is essentially the default and therefore a no-op. +IM_STATIC_ASSERT(ImGuiSortDirection_None == 0 && ImGuiSortDirection_Ascending == 1 && ImGuiSortDirection_Descending == 2); +ImGuiSortDirection ImGui::TableGetColumnNextSortDirection(ImGuiTableColumn* column) +{ + IM_ASSERT(column->SortDirectionsAvailCount > 0); + if (column->SortOrder == -1) + return TableGetColumnAvailSortDirection(column, 0); + for (int n = 0; n < 3; n++) + if (column->SortDirection == TableGetColumnAvailSortDirection(column, n)) + return TableGetColumnAvailSortDirection(column, (n + 1) % column->SortDirectionsAvailCount); + IM_ASSERT(0); + return ImGuiSortDirection_None; +} + +// Note that the NoSortAscending/NoSortDescending flags are processed in TableSortSpecsSanitize(), and they may change/revert +// the value of SortDirection. We could technically also do it here but it would be unnecessary and duplicate code. +void ImGui::TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + + if (!(table->Flags & ImGuiTableFlags_SortMulti)) + append_to_sort_specs = false; + if (!(table->Flags & ImGuiTableFlags_SortTristate)) + IM_ASSERT(sort_direction != ImGuiSortDirection_None); + + ImGuiTableColumnIdx sort_order_max = 0; + if (append_to_sort_specs) + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + sort_order_max = ImMax(sort_order_max, table->Columns[other_column_n].SortOrder); + + ImGuiTableColumn* column = &table->Columns[column_n]; + column->SortDirection = (ImU8)sort_direction; + if (column->SortDirection == ImGuiSortDirection_None) + column->SortOrder = -1; + else if (column->SortOrder == -1 || !append_to_sort_specs) + column->SortOrder = append_to_sort_specs ? sort_order_max + 1 : 0; + + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + { + ImGuiTableColumn* other_column = &table->Columns[other_column_n]; + if (other_column != column && !append_to_sort_specs) + other_column->SortOrder = -1; + TableFixColumnSortDirection(table, other_column); + } + table->IsSettingsDirty = true; + table->IsSortSpecsDirty = true; +} + +void ImGui::TableSortSpecsSanitize(ImGuiTable* table) +{ + IM_ASSERT(table->Flags & ImGuiTableFlags_Sortable); + + // Clear SortOrder from hidden column and verify that there's no gap or duplicate. + int sort_order_count = 0; + ImU64 sort_order_mask = 0x00; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->SortOrder != -1 && !column->IsEnabled) + column->SortOrder = -1; + if (column->SortOrder == -1) + continue; + sort_order_count++; + sort_order_mask |= ((ImU64)1 << column->SortOrder); + IM_ASSERT(sort_order_count < (int)sizeof(sort_order_mask) * 8); + } + + const bool need_fix_linearize = ((ImU64)1 << sort_order_count) != (sort_order_mask + 1); + const bool need_fix_single_sort_order = (sort_order_count > 1) && !(table->Flags & ImGuiTableFlags_SortMulti); + if (need_fix_linearize || need_fix_single_sort_order) + { + ImU64 fixed_mask = 0x00; + for (int sort_n = 0; sort_n < sort_order_count; sort_n++) + { + // Fix: Rewrite sort order fields if needed so they have no gap or duplicate. + // (e.g. SortOrder 0 disappeared, SortOrder 1..2 exists --> rewrite then as SortOrder 0..1) + int column_with_smallest_sort_order = -1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if ((fixed_mask & ((ImU64)1 << (ImU64)column_n)) == 0 && table->Columns[column_n].SortOrder != -1) + if (column_with_smallest_sort_order == -1 || table->Columns[column_n].SortOrder < table->Columns[column_with_smallest_sort_order].SortOrder) + column_with_smallest_sort_order = column_n; + IM_ASSERT(column_with_smallest_sort_order != -1); + fixed_mask |= ((ImU64)1 << column_with_smallest_sort_order); + table->Columns[column_with_smallest_sort_order].SortOrder = (ImGuiTableColumnIdx)sort_n; + + // Fix: Make sure only one column has a SortOrder if ImGuiTableFlags_MultiSortable is not set. + if (need_fix_single_sort_order) + { + sort_order_count = 1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if (column_n != column_with_smallest_sort_order) + table->Columns[column_n].SortOrder = -1; + break; + } + } + } + + // Fallback default sort order (if no column with the ImGuiTableColumnFlags_DefaultSort flag) + if (sort_order_count == 0 && !(table->Flags & ImGuiTableFlags_SortTristate)) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->IsEnabled && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + sort_order_count = 1; + column->SortOrder = 0; + column->SortDirection = (ImU8)TableGetColumnAvailSortDirection(column, 0); + break; + } + } + + table->SortSpecsCount = (ImGuiTableColumnIdx)sort_order_count; +} + +void ImGui::TableSortSpecsBuild(ImGuiTable* table) +{ + bool dirty = table->IsSortSpecsDirty; + if (dirty) + { + TableSortSpecsSanitize(table); + table->SortSpecsMulti.resize(table->SortSpecsCount <= 1 ? 0 : table->SortSpecsCount); + table->SortSpecs.SpecsDirty = true; // Mark as dirty for user + table->IsSortSpecsDirty = false; // Mark as not dirty for us + } + + // Write output + ImGuiTableColumnSortSpecs* sort_specs = (table->SortSpecsCount == 0) ? NULL : (table->SortSpecsCount == 1) ? &table->SortSpecsSingle : table->SortSpecsMulti.Data; + if (dirty && sort_specs != NULL) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->SortOrder == -1) + continue; + IM_ASSERT(column->SortOrder < table->SortSpecsCount); + ImGuiTableColumnSortSpecs* sort_spec = &sort_specs[column->SortOrder]; + sort_spec->ColumnUserID = column->UserID; + sort_spec->ColumnIndex = (ImGuiTableColumnIdx)column_n; + sort_spec->SortOrder = (ImGuiTableColumnIdx)column->SortOrder; + sort_spec->SortDirection = column->SortDirection; + } + + table->SortSpecs.Specs = sort_specs; + table->SortSpecs.SpecsCount = table->SortSpecsCount; +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Headers +//------------------------------------------------------------------------- +// - TableGetHeaderRowHeight() [Internal] +// - TableHeadersRow() +// - TableHeader() +// - TableAngledHeadersRow() +// - TableAngledHeadersRowEx() [Internal] +//------------------------------------------------------------------------- + +float ImGui::TableGetHeaderRowHeight() +{ + // Caring for a minor edge case: + // Calculate row height, for the unlikely case that some labels may be taller than others. + // If we didn't do that, uneven header height would highlight but smaller one before the tallest wouldn't catch input for all height. + // In your custom header row you may omit this all together and just call TableNextRow() without a height... + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + float row_height = g.FontSize; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if (IM_BITARRAY_TESTBIT(table->EnabledMaskByIndex, column_n)) + if ((table->Columns[column_n].Flags & ImGuiTableColumnFlags_NoHeaderLabel) == 0) + row_height = ImMax(row_height, CalcTextSize(TableGetColumnName(table, column_n)).y); + return row_height + g.Style.CellPadding.y * 2.0f; +} + +float ImGui::TableGetHeaderAngledMaxLabelWidth() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + float width = 0.0f; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if (IM_BITARRAY_TESTBIT(table->EnabledMaskByIndex, column_n)) + if (table->Columns[column_n].Flags & ImGuiTableColumnFlags_AngledHeader) + width = ImMax(width, CalcTextSize(TableGetColumnName(table, column_n), NULL, true).x); + return width + g.Style.CellPadding.x * 2.0f; +} + +// [Public] This is a helper to output TableHeader() calls based on the column names declared in TableSetupColumn(). +// The intent is that advanced users willing to create customized headers would not need to use this helper +// and can create their own! For example: TableHeader() may be preceeded by Checkbox() or other custom widgets. +// See 'Demo->Tables->Custom headers' for a demonstration of implementing a custom version of this. +// This code is constructed to not make much use of internal functions, as it is intended to be a template to copy. +// FIXME-TABLE: TableOpenContextMenu() and TableGetHeaderRowHeight() are not public. +void ImGui::TableHeadersRow() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableHeadersRow() after BeginTable()!"); + + // Layout if not already done (this is automatically done by TableNextRow, we do it here solely to facilitate stepping in debugger as it is frequent to step in TableUpdateLayout) + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + // Open row + const float row_height = TableGetHeaderRowHeight(); + TableNextRow(ImGuiTableRowFlags_Headers, row_height); + const float row_y1 = GetCursorScreenPos().y; + if (table->HostSkipItems) // Merely an optimization, you may skip in your own code. + return; + + const int columns_count = TableGetColumnCount(); + for (int column_n = 0; column_n < columns_count; column_n++) + { + if (!TableSetColumnIndex(column_n)) + continue; + + // Push an id to allow unnamed labels (generally accidental, but let's behave nicely with them) + // In your own code you may omit the PushID/PopID all-together, provided you know they won't collide. + const char* name = (TableGetColumnFlags(column_n) & ImGuiTableColumnFlags_NoHeaderLabel) ? "" : TableGetColumnName(column_n); + PushID(column_n); + TableHeader(name); + PopID(); + } + + // Allow opening popup from the right-most section after the last column. + ImVec2 mouse_pos = ImGui::GetMousePos(); + if (IsMouseReleased(1) && TableGetHoveredColumn() == columns_count) + if (mouse_pos.y >= row_y1 && mouse_pos.y < row_y1 + row_height) + TableOpenContextMenu(columns_count); // Will open a non-column-specific popup. +} + +// Emit a column header (text + optional sort order) +// We cpu-clip text here so that all columns headers can be merged into a same draw call. +// Note that because of how we cpu-clip and display sorting indicators, you _cannot_ use SameLine() after a TableHeader() +void ImGui::TableHeader(const char* label) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableHeader() after BeginTable()!"); + IM_ASSERT(table->CurrentColumn != -1); + const int column_n = table->CurrentColumn; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Label + if (label == NULL) + label = ""; + const char* label_end = FindRenderedTextEnd(label); + ImVec2 label_size = CalcTextSize(label, label_end, true); + ImVec2 label_pos = window->DC.CursorPos; + + // If we already got a row height, there's use that. + // FIXME-TABLE: Padding problem if the correct outer-padding CellBgRect strays off our ClipRect? + ImRect cell_r = TableGetCellBgRect(table, column_n); + float label_height = ImMax(label_size.y, table->RowMinHeight - table->RowCellPaddingY * 2.0f); + + // Calculate ideal size for sort order arrow + float w_arrow = 0.0f; + float w_sort_text = 0.0f; + bool sort_arrow = false; + char sort_order_suf[4] = ""; + const float ARROW_SCALE = 0.65f; + if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + w_arrow = ImTrunc(g.FontSize * ARROW_SCALE + g.Style.FramePadding.x); + if (column->SortOrder != -1) + sort_arrow = true; + if (column->SortOrder > 0) + { + ImFormatString(sort_order_suf, IM_ARRAYSIZE(sort_order_suf), "%d", column->SortOrder + 1); + w_sort_text = g.Style.ItemInnerSpacing.x + CalcTextSize(sort_order_suf).x; + } + } + + // We feed our unclipped width to the column without writing on CursorMaxPos, so that column is still considered for merging. + float max_pos_x = label_pos.x + label_size.x + w_sort_text + w_arrow; + column->ContentMaxXHeadersUsed = ImMax(column->ContentMaxXHeadersUsed, sort_arrow ? cell_r.Max.x : ImMin(max_pos_x, cell_r.Max.x)); + column->ContentMaxXHeadersIdeal = ImMax(column->ContentMaxXHeadersIdeal, max_pos_x); + + // Keep header highlighted when context menu is open. + ImGuiID id = window->GetID(label); + ImRect bb(cell_r.Min.x, cell_r.Min.y, cell_r.Max.x, ImMax(cell_r.Max.y, cell_r.Min.y + label_height + g.Style.CellPadding.y * 2.0f)); + ItemSize(ImVec2(0.0f, label_height)); // Don't declare unclipped width, it'll be fed ContentMaxPosHeadersIdeal + if (!ItemAdd(bb, id)) + return; + + //GetForegroundDrawList()->AddRect(cell_r.Min, cell_r.Max, IM_COL32(255, 0, 0, 255)); // [DEBUG] + //GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 0, 0, 255)); // [DEBUG] + + // Using AllowOverlap mode because we cover the whole cell, and we want user to be able to submit subsequent items. + const bool highlight = (table->HighlightColumnHeader == column_n); + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_AllowOverlap); + if (held || hovered || highlight) + { + const ImU32 col = GetColorU32(held ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + //RenderFrame(bb.Min, bb.Max, col, false, 0.0f); + TableSetBgColor(ImGuiTableBgTarget_CellBg, col, table->CurrentColumn); + } + else + { + // Submit single cell bg color in the case we didn't submit a full header row + if ((table->RowFlags & ImGuiTableRowFlags_Headers) == 0) + TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_TableHeaderBg), table->CurrentColumn); + } + RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); + if (held) + table->HeldHeaderColumn = (ImGuiTableColumnIdx)column_n; + window->DC.CursorPos.y -= g.Style.ItemSpacing.y * 0.5f; + + // Drag and drop to re-order columns. + // FIXME-TABLE: Scroll request while reordering a column and it lands out of the scrolling zone. + if (held && (table->Flags & ImGuiTableFlags_Reorderable) && IsMouseDragging(0) && !g.DragDropActive) + { + // While moving a column it will jump on the other side of the mouse, so we also test for MouseDelta.x + table->ReorderColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + + // We don't reorder: through the frozen<>unfrozen line, or through a column that is marked with ImGuiTableColumnFlags_NoReorder. + if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < cell_r.Min.x) + if (ImGuiTableColumn* prev_column = (column->PrevEnabledColumn != -1) ? &table->Columns[column->PrevEnabledColumn] : NULL) + if (!((column->Flags | prev_column->Flags) & ImGuiTableColumnFlags_NoReorder)) + if ((column->IndexWithinEnabledSet < table->FreezeColumnsRequest) == (prev_column->IndexWithinEnabledSet < table->FreezeColumnsRequest)) + table->ReorderColumnDir = -1; + if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > cell_r.Max.x) + if (ImGuiTableColumn* next_column = (column->NextEnabledColumn != -1) ? &table->Columns[column->NextEnabledColumn] : NULL) + if (!((column->Flags | next_column->Flags) & ImGuiTableColumnFlags_NoReorder)) + if ((column->IndexWithinEnabledSet < table->FreezeColumnsRequest) == (next_column->IndexWithinEnabledSet < table->FreezeColumnsRequest)) + table->ReorderColumnDir = +1; + } + + // Sort order arrow + const float ellipsis_max = ImMax(cell_r.Max.x - w_arrow - w_sort_text, label_pos.x); + if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + if (column->SortOrder != -1) + { + float x = ImMax(cell_r.Min.x, cell_r.Max.x - w_arrow - w_sort_text); + float y = label_pos.y; + if (column->SortOrder > 0) + { + PushStyleColor(ImGuiCol_Text, GetColorU32(ImGuiCol_Text, 0.70f)); + RenderText(ImVec2(x + g.Style.ItemInnerSpacing.x, y), sort_order_suf); + PopStyleColor(); + x += w_sort_text; + } + RenderArrow(window->DrawList, ImVec2(x, y), GetColorU32(ImGuiCol_Text), column->SortDirection == ImGuiSortDirection_Ascending ? ImGuiDir_Up : ImGuiDir_Down, ARROW_SCALE); + } + + // Handle clicking on column header to adjust Sort Order + if (pressed && table->ReorderColumn != column_n) + { + ImGuiSortDirection sort_direction = TableGetColumnNextSortDirection(column); + TableSetColumnSortDirection(column_n, sort_direction, g.IO.KeyShift); + } + } + + // Render clipped label. Clipping here ensure that in the majority of situations, all our header cells will + // be merged into a single draw call. + //window->DrawList->AddCircleFilled(ImVec2(ellipsis_max, label_pos.y), 40, IM_COL32_WHITE); + RenderTextEllipsis(window->DrawList, label_pos, ImVec2(ellipsis_max, label_pos.y + label_height + g.Style.FramePadding.y), ellipsis_max, ellipsis_max, label, label_end, &label_size); + + const bool text_clipped = label_size.x > (ellipsis_max - label_pos.x); + if (text_clipped && hovered && g.ActiveId == 0) + SetItemTooltip("%.*s", (int)(label_end - label), label); + + // We don't use BeginPopupContextItem() because we want the popup to stay up even after the column is hidden + if (IsMouseReleased(1) && IsItemHovered()) + TableOpenContextMenu(column_n); +} + +// Unlike TableHeadersRow() it is not expected that you can reimplement or customize this with custom widgets. +// FIXME: highlight without ImGuiTableFlags_HighlightHoveredColumn +// FIXME: No hit-testing/button on the angled header. +void ImGui::TableAngledHeadersRow() +{ + ImGuiContext& g = *GImGui; + TableAngledHeadersRowEx(g.Style.TableAngledHeadersAngle, 0.0f); +} + +void ImGui::TableAngledHeadersRowEx(float angle, float max_label_width) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + ImGuiWindow* window = g.CurrentWindow; + ImDrawList* draw_list = window->DrawList; + IM_ASSERT(table != NULL && "Need to call TableHeadersRow() after BeginTable()!"); + IM_ASSERT(table->CurrentRow == -1 && "Must be first row"); + + if (max_label_width == 0.0f) + max_label_width = TableGetHeaderAngledMaxLabelWidth(); + + // Angle argument expressed in (-IM_PI/2 .. +IM_PI/2) as it is easier to think about for user. + const bool flip_label = (angle < 0.0f); + angle -= IM_PI * 0.5f; + const float cos_a = ImCos(angle); + const float sin_a = ImSin(angle); + const float label_cos_a = flip_label ? ImCos(angle + IM_PI) : cos_a; + const float label_sin_a = flip_label ? ImSin(angle + IM_PI) : sin_a; + const ImVec2 unit_right = ImVec2(cos_a, sin_a); + + // Calculate our base metrics and set angled headers data _before_ the first call to TableNextRow() + // FIXME-STYLE: Would it be better for user to submit 'max_label_width' or 'row_height' ? One can be derived from the other. + const float header_height = table->RowCellPaddingY * 2.0f + g.FontSize; + const float row_height = ImFabs(ImRotate(ImVec2(max_label_width, flip_label ? +header_height : -header_height), cos_a, sin_a).y); + const ImVec2 header_angled_vector = unit_right * (row_height / -sin_a); + table->AngledHeadersHeight = row_height; + table->AngledHeadersSlope = (sin_a != 0.0f) ? (cos_a / sin_a) : 0.0f; + + // Declare row, override and draw our own background + TableNextRow(ImGuiTableRowFlags_Headers, row_height); + TableNextColumn(); + table->DrawSplitter->SetCurrentChannel(draw_list, TABLE_DRAW_CHANNEL_BG0); + float clip_rect_min_x = table->BgClipRect.Min.x; + if (table->FreezeColumnsCount > 0) + clip_rect_min_x = ImMax(clip_rect_min_x, table->Columns[table->FreezeColumnsCount - 1].MaxX); + TableSetBgColor(ImGuiTableBgTarget_RowBg0, 0); // Cancel + PushClipRect(table->BgClipRect.Min, table->BgClipRect.Max, false); // Span all columns + draw_list->AddRectFilled(table->BgClipRect.Min, table->BgClipRect.Max, GetColorU32(ImGuiCol_TableHeaderBg, 0.25f)); // FIXME-STYLE: Change row background with an arbitrary color. + PushClipRect(ImVec2(clip_rect_min_x, table->BgClipRect.Min.y), table->BgClipRect.Max, true); // Span all columns + + const ImRect row_r(table->WorkRect.Min.x, table->BgClipRect.Min.y, table->WorkRect.Max.x, window->DC.CursorPos.y + row_height); + const ImGuiID row_id = GetID("##AngledHeaders"); + ButtonBehavior(row_r, row_id, NULL, NULL); + KeepAliveID(row_id); + + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + int highlight_column_n = table->HighlightColumnHeader; + if (highlight_column_n == -1 && table->HoveredColumnBody != -1) + if (table_instance->HoveredRowLast == 0 && table->HoveredColumnBorder == -1 && (g.ActiveId == 0 || g.ActiveId == row_id || (table->IsActiveIdInTable || g.DragDropActive))) + highlight_column_n = table->HoveredColumnBody; + + float max_x = 0.0f; + for (int pass = 0; pass < 2; pass++) + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByDisplayOrder, order_n)) + continue; + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + if ((column->Flags & ImGuiTableColumnFlags_AngledHeader) == 0) // Note: can't rely on ImGuiTableColumnFlags_IsVisible test here. + continue; + + ImVec2 bg_shape[4]; + bg_shape[0] = ImVec2(column->MaxX, row_r.Max.y); + bg_shape[1] = ImVec2(column->MinX, row_r.Max.y); + bg_shape[2] = bg_shape[1] + header_angled_vector; + bg_shape[3] = bg_shape[0] + header_angled_vector; + if (pass == 0) + { + // Draw shape + draw_list->AddQuadFilled(bg_shape[0], bg_shape[1], bg_shape[2], bg_shape[3], GetColorU32(ImGuiCol_TableHeaderBg)); + if (column_n == highlight_column_n) + draw_list->AddQuadFilled(bg_shape[0], bg_shape[1], bg_shape[2], bg_shape[3], GetColorU32(ImGuiCol_Header)); // Highlight on hover + //draw_list->AddQuad(bg_shape[0], bg_shape[1], bg_shape[2], bg_shape[3], GetColorU32(ImGuiCol_TableBorderLight), 1.0f); + max_x = ImMax(max_x, bg_shape[3].x); + + // Draw label (first draw at an offset where RenderTextXXX() function won't meddle with applying current ClipRect, then transform to final offset) + // FIXME: May be worth tidying up all those operations to make them easier to understand. + const char* label_name = TableGetColumnName(table, column_n); + const float clip_width = max_label_width - (sin_a * table->RowCellPaddingY); + ImRect label_r(window->ClipRect.Min, window->ClipRect.Min + ImVec2(clip_width + (flip_label ? 0.0f : table->CellPaddingX), header_height + table->RowCellPaddingY)); + ImVec2 label_size = CalcTextSize(label_name, NULL, true); + ImVec2 label_off = ImVec2(flip_label ? ImMax(0.0f, max_label_width - label_size.x - table->CellPaddingX) : table->CellPaddingX, table->RowCellPaddingY); + int vtx_idx_begin = draw_list->_VtxCurrentIdx; + RenderTextEllipsis(draw_list, label_r.Min + label_off, label_r.Max, label_r.Max.x, label_r.Max.x, label_name, NULL, &label_size); + //if (g.IO.KeyShift) { draw_list->AddRect(label_r.Min, label_r.Max, IM_COL32(0, 255, 0, 255), 0.0f, 0, 2.0f); } + int vtx_idx_end = draw_list->_VtxCurrentIdx; + + // Rotate and offset label + ImVec2 pivot_in = label_r.GetBL(); + ImVec2 pivot_out = ImVec2(column->WorkMinX, row_r.Max.y) + (flip_label ? (unit_right * clip_width) : ImVec2(header_height, 0.0f)); + ShadeVertsTransformPos(draw_list, vtx_idx_begin, vtx_idx_end, pivot_in, label_cos_a, label_sin_a, pivot_out); // Rotate and offset + } + if (pass == 1) + { + // Draw border + draw_list->AddLine(bg_shape[0], bg_shape[3], TableGetColumnBorderCol(table, order_n, column_n)); + } + } + PopClipRect(); + PopClipRect(); + table->TempData->AngledheadersExtraWidth = ImMax(0.0f, max_x - table->Columns[table->RightMostEnabledColumn].MaxX); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Context Menu +//------------------------------------------------------------------------- +// - TableOpenContextMenu() [Internal] +// - TableDrawContextMenu() [Internal] +//------------------------------------------------------------------------- + +// Use -1 to open menu not specific to a given column. +void ImGui::TableOpenContextMenu(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (column_n == -1 && table->CurrentColumn != -1) // When called within a column automatically use this one (for consistency) + column_n = table->CurrentColumn; + if (column_n == table->ColumnsCount) // To facilitate using with TableGetHoveredColumn() + column_n = -1; + IM_ASSERT(column_n >= -1 && column_n < table->ColumnsCount); + if (table->Flags & (ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + table->IsContextPopupOpen = true; + table->ContextPopupColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); + OpenPopupEx(context_menu_id, ImGuiPopupFlags_None); + } +} + +bool ImGui::TableBeginContextMenuPopup(ImGuiTable* table) +{ + if (!table->IsContextPopupOpen || table->InstanceCurrent != table->InstanceInteracted) + return false; + const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); + if (BeginPopupEx(context_menu_id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings)) + return true; + table->IsContextPopupOpen = false; + return false; +} + +// Output context menu into current window (generally a popup) +// FIXME-TABLE: Ideally this should be writable by the user. Full programmatic access to that data? +void ImGui::TableDrawContextMenu(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + bool want_separator = false; + const int column_n = (table->ContextPopupColumn >= 0 && table->ContextPopupColumn < table->ColumnsCount) ? table->ContextPopupColumn : -1; + ImGuiTableColumn* column = (column_n != -1) ? &table->Columns[column_n] : NULL; + + // Sizing + if (table->Flags & ImGuiTableFlags_Resizable) + { + if (column != NULL) + { + const bool can_resize = !(column->Flags & ImGuiTableColumnFlags_NoResize) && column->IsEnabled; + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableSizeOne), NULL, false, can_resize)) // "###SizeOne" + TableSetColumnWidthAutoSingle(table, column_n); + } + + const char* size_all_desc; + if (table->ColumnsEnabledFixedCount == table->ColumnsEnabledCount && (table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame) + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllFit); // "###SizeAll" All fixed + else + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllDefault); // "###SizeAll" All stretch or mixed + if (MenuItem(size_all_desc, NULL)) + TableSetColumnWidthAutoAll(table); + want_separator = true; + } + + // Ordering + if (table->Flags & ImGuiTableFlags_Reorderable) + { + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableResetOrder), NULL, false, !table->IsDefaultDisplayOrder)) + table->IsResetDisplayOrderRequest = true; + want_separator = true; + } + + // Reset all (should work but seems unnecessary/noisy to expose?) + //if (MenuItem("Reset all")) + // table->IsResetAllRequest = true; + + // Sorting + // (modify TableOpenContextMenu() to add _Sortable flag if enabling this) +#if 0 + if ((table->Flags & ImGuiTableFlags_Sortable) && column != NULL && (column->Flags & ImGuiTableColumnFlags_NoSort) == 0) + { + if (want_separator) + Separator(); + want_separator = true; + + bool append_to_sort_specs = g.IO.KeyShift; + if (MenuItem("Sort in Ascending Order", NULL, column->SortOrder != -1 && column->SortDirection == ImGuiSortDirection_Ascending, (column->Flags & ImGuiTableColumnFlags_NoSortAscending) == 0)) + TableSetColumnSortDirection(table, column_n, ImGuiSortDirection_Ascending, append_to_sort_specs); + if (MenuItem("Sort in Descending Order", NULL, column->SortOrder != -1 && column->SortDirection == ImGuiSortDirection_Descending, (column->Flags & ImGuiTableColumnFlags_NoSortDescending) == 0)) + TableSetColumnSortDirection(table, column_n, ImGuiSortDirection_Descending, append_to_sort_specs); + } +#endif + + // Hiding / Visibility + if (table->Flags & ImGuiTableFlags_Hideable) + { + if (want_separator) + Separator(); + want_separator = true; + + PushItemFlag(ImGuiItemFlags_SelectableDontClosePopup, true); + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + { + ImGuiTableColumn* other_column = &table->Columns[other_column_n]; + if (other_column->Flags & ImGuiTableColumnFlags_Disabled) + continue; + + const char* name = TableGetColumnName(table, other_column_n); + if (name == NULL || name[0] == 0) + name = ""; + + // Make sure we can't hide the last active column + bool menu_item_active = (other_column->Flags & ImGuiTableColumnFlags_NoHide) ? false : true; + if (other_column->IsUserEnabled && table->ColumnsEnabledCount <= 1) + menu_item_active = false; + if (MenuItem(name, NULL, other_column->IsUserEnabled, menu_item_active)) + other_column->IsUserEnabledNextFrame = !other_column->IsUserEnabled; + } + PopItemFlag(); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Settings (.ini data) +//------------------------------------------------------------------------- +// FIXME: The binding/finding/creating flow are too confusing. +//------------------------------------------------------------------------- +// - TableSettingsInit() [Internal] +// - TableSettingsCalcChunkSize() [Internal] +// - TableSettingsCreate() [Internal] +// - TableSettingsFindByID() [Internal] +// - TableGetBoundSettings() [Internal] +// - TableResetSettings() +// - TableSaveSettings() [Internal] +// - TableLoadSettings() [Internal] +// - TableSettingsHandler_ClearAll() [Internal] +// - TableSettingsHandler_ApplyAll() [Internal] +// - TableSettingsHandler_ReadOpen() [Internal] +// - TableSettingsHandler_ReadLine() [Internal] +// - TableSettingsHandler_WriteAll() [Internal] +// - TableSettingsInstallHandler() [Internal] +//------------------------------------------------------------------------- +// [Init] 1: TableSettingsHandler_ReadXXXX() Load and parse .ini file into TableSettings. +// [Main] 2: TableLoadSettings() When table is created, bind Table to TableSettings, serialize TableSettings data into Table. +// [Main] 3: TableSaveSettings() When table properties are modified, serialize Table data into bound or new TableSettings, mark .ini as dirty. +// [Main] 4: TableSettingsHandler_WriteAll() When .ini file is dirty (which can come from other source), save TableSettings into .ini file. +//------------------------------------------------------------------------- + +// Clear and initialize empty settings instance +static void TableSettingsInit(ImGuiTableSettings* settings, ImGuiID id, int columns_count, int columns_count_max) +{ + IM_PLACEMENT_NEW(settings) ImGuiTableSettings(); + ImGuiTableColumnSettings* settings_column = settings->GetColumnSettings(); + for (int n = 0; n < columns_count_max; n++, settings_column++) + IM_PLACEMENT_NEW(settings_column) ImGuiTableColumnSettings(); + settings->ID = id; + settings->ColumnsCount = (ImGuiTableColumnIdx)columns_count; + settings->ColumnsCountMax = (ImGuiTableColumnIdx)columns_count_max; + settings->WantApply = true; +} + +static size_t TableSettingsCalcChunkSize(int columns_count) +{ + return sizeof(ImGuiTableSettings) + (size_t)columns_count * sizeof(ImGuiTableColumnSettings); +} + +ImGuiTableSettings* ImGui::TableSettingsCreate(ImGuiID id, int columns_count) +{ + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = g.SettingsTables.alloc_chunk(TableSettingsCalcChunkSize(columns_count)); + TableSettingsInit(settings, id, columns_count, columns_count); + return settings; +} + +// Find existing settings +ImGuiTableSettings* ImGui::TableSettingsFindByID(ImGuiID id) +{ + // FIXME-OPT: Might want to store a lookup map for this? + ImGuiContext& g = *GImGui; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID == id) + return settings; + return NULL; +} + +// Get settings for a given table, NULL if none +ImGuiTableSettings* ImGui::TableGetBoundSettings(ImGuiTable* table) +{ + if (table->SettingsOffset != -1) + { + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = g.SettingsTables.ptr_from_offset(table->SettingsOffset); + IM_ASSERT(settings->ID == table->ID); + if (settings->ColumnsCountMax >= table->ColumnsCount) + return settings; // OK + settings->ID = 0; // Invalidate storage, we won't fit because of a count change + } + return NULL; +} + +// Restore initial state of table (with or without saved settings) +void ImGui::TableResetSettings(ImGuiTable* table) +{ + table->IsInitializing = table->IsSettingsDirty = true; + table->IsResetAllRequest = false; + table->IsSettingsRequestLoad = false; // Don't reload from ini + table->SettingsLoadedFlags = ImGuiTableFlags_None; // Mark as nothing loaded so our initialized data becomes authoritative +} + +void ImGui::TableSaveSettings(ImGuiTable* table) +{ + table->IsSettingsDirty = false; + if (table->Flags & ImGuiTableFlags_NoSavedSettings) + return; + + // Bind or create settings data + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = TableGetBoundSettings(table); + if (settings == NULL) + { + settings = TableSettingsCreate(table->ID, table->ColumnsCount); + table->SettingsOffset = g.SettingsTables.offset_from_ptr(settings); + } + settings->ColumnsCount = (ImGuiTableColumnIdx)table->ColumnsCount; + + // Serialize ImGuiTable/ImGuiTableColumn into ImGuiTableSettings/ImGuiTableColumnSettings + IM_ASSERT(settings->ID == table->ID); + IM_ASSERT(settings->ColumnsCount == table->ColumnsCount && settings->ColumnsCountMax >= settings->ColumnsCount); + ImGuiTableColumn* column = table->Columns.Data; + ImGuiTableColumnSettings* column_settings = settings->GetColumnSettings(); + + bool save_ref_scale = false; + settings->SaveFlags = ImGuiTableFlags_None; + for (int n = 0; n < table->ColumnsCount; n++, column++, column_settings++) + { + const float width_or_weight = (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? column->StretchWeight : column->WidthRequest; + column_settings->WidthOrWeight = width_or_weight; + column_settings->Index = (ImGuiTableColumnIdx)n; + column_settings->DisplayOrder = column->DisplayOrder; + column_settings->SortOrder = column->SortOrder; + column_settings->SortDirection = column->SortDirection; + column_settings->IsEnabled = column->IsUserEnabled; + column_settings->IsStretch = (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? 1 : 0; + if ((column->Flags & ImGuiTableColumnFlags_WidthStretch) == 0) + save_ref_scale = true; + + // We skip saving some data in the .ini file when they are unnecessary to restore our state. + // Note that fixed width where initial width was derived from auto-fit will always be saved as InitStretchWeightOrWidth will be 0.0f. + // FIXME-TABLE: We don't have logic to easily compare SortOrder to DefaultSortOrder yet so it's always saved when present. + if (width_or_weight != column->InitStretchWeightOrWidth) + settings->SaveFlags |= ImGuiTableFlags_Resizable; + if (column->DisplayOrder != n) + settings->SaveFlags |= ImGuiTableFlags_Reorderable; + if (column->SortOrder != -1) + settings->SaveFlags |= ImGuiTableFlags_Sortable; + if (column->IsUserEnabled != ((column->Flags & ImGuiTableColumnFlags_DefaultHide) == 0)) + settings->SaveFlags |= ImGuiTableFlags_Hideable; + } + settings->SaveFlags &= table->Flags; + settings->RefScale = save_ref_scale ? table->RefScale : 0.0f; + + MarkIniSettingsDirty(); +} + +void ImGui::TableLoadSettings(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + table->IsSettingsRequestLoad = false; + if (table->Flags & ImGuiTableFlags_NoSavedSettings) + return; + + // Bind settings + ImGuiTableSettings* settings; + if (table->SettingsOffset == -1) + { + settings = TableSettingsFindByID(table->ID); + if (settings == NULL) + return; + if (settings->ColumnsCount != table->ColumnsCount) // Allow settings if columns count changed. We could otherwise decide to return... + table->IsSettingsDirty = true; + table->SettingsOffset = g.SettingsTables.offset_from_ptr(settings); + } + else + { + settings = TableGetBoundSettings(table); + } + + table->SettingsLoadedFlags = settings->SaveFlags; + table->RefScale = settings->RefScale; + + // Serialize ImGuiTableSettings/ImGuiTableColumnSettings into ImGuiTable/ImGuiTableColumn + ImGuiTableColumnSettings* column_settings = settings->GetColumnSettings(); + ImU64 display_order_mask = 0; + for (int data_n = 0; data_n < settings->ColumnsCount; data_n++, column_settings++) + { + int column_n = column_settings->Index; + if (column_n < 0 || column_n >= table->ColumnsCount) + continue; + + ImGuiTableColumn* column = &table->Columns[column_n]; + if (settings->SaveFlags & ImGuiTableFlags_Resizable) + { + if (column_settings->IsStretch) + column->StretchWeight = column_settings->WidthOrWeight; + else + column->WidthRequest = column_settings->WidthOrWeight; + column->AutoFitQueue = 0x00; + } + if (settings->SaveFlags & ImGuiTableFlags_Reorderable) + column->DisplayOrder = column_settings->DisplayOrder; + else + column->DisplayOrder = (ImGuiTableColumnIdx)column_n; + display_order_mask |= (ImU64)1 << column->DisplayOrder; + column->IsUserEnabled = column->IsUserEnabledNextFrame = column_settings->IsEnabled; + column->SortOrder = column_settings->SortOrder; + column->SortDirection = column_settings->SortDirection; + } + + // Validate and fix invalid display order data + const ImU64 expected_display_order_mask = (settings->ColumnsCount == 64) ? ~0 : ((ImU64)1 << settings->ColumnsCount) - 1; + if (display_order_mask != expected_display_order_mask) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->Columns[column_n].DisplayOrder = (ImGuiTableColumnIdx)column_n; + + // Rebuild index + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->DisplayOrderToIndex[table->Columns[column_n].DisplayOrder] = (ImGuiTableColumnIdx)column_n; +} + +static void TableSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Tables.GetMapSize(); i++) + if (ImGuiTable* table = g.Tables.TryGetMapData(i)) + table->SettingsOffset = -1; + g.SettingsTables.clear(); +} + +// Apply to existing windows (if any) +static void TableSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Tables.GetMapSize(); i++) + if (ImGuiTable* table = g.Tables.TryGetMapData(i)) + { + table->IsSettingsRequestLoad = true; + table->SettingsOffset = -1; + } +} + +static void* TableSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + ImGuiID id = 0; + int columns_count = 0; + if (sscanf(name, "0x%08X,%d", &id, &columns_count) < 2) + return NULL; + + if (ImGuiTableSettings* settings = ImGui::TableSettingsFindByID(id)) + { + if (settings->ColumnsCountMax >= columns_count) + { + TableSettingsInit(settings, id, columns_count, settings->ColumnsCountMax); // Recycle + return settings; + } + settings->ID = 0; // Invalidate storage, we won't fit because of a count change + } + return ImGui::TableSettingsCreate(id, columns_count); +} + +static void TableSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) +{ + // "Column 0 UserID=0x42AD2D21 Width=100 Visible=1 Order=0 Sort=0v" + ImGuiTableSettings* settings = (ImGuiTableSettings*)entry; + float f = 0.0f; + int column_n = 0, r = 0, n = 0; + + if (sscanf(line, "RefScale=%f", &f) == 1) { settings->RefScale = f; return; } + + if (sscanf(line, "Column %d%n", &column_n, &r) == 1) + { + if (column_n < 0 || column_n >= settings->ColumnsCount) + return; + line = ImStrSkipBlank(line + r); + char c = 0; + ImGuiTableColumnSettings* column = settings->GetColumnSettings() + column_n; + column->Index = (ImGuiTableColumnIdx)column_n; + if (sscanf(line, "UserID=0x%08X%n", (ImU32*)&n, &r)==1) { line = ImStrSkipBlank(line + r); column->UserID = (ImGuiID)n; } + if (sscanf(line, "Width=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->WidthOrWeight = (float)n; column->IsStretch = 0; settings->SaveFlags |= ImGuiTableFlags_Resizable; } + if (sscanf(line, "Weight=%f%n", &f, &r) == 1) { line = ImStrSkipBlank(line + r); column->WidthOrWeight = f; column->IsStretch = 1; settings->SaveFlags |= ImGuiTableFlags_Resizable; } + if (sscanf(line, "Visible=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->IsEnabled = (ImU8)n; settings->SaveFlags |= ImGuiTableFlags_Hideable; } + if (sscanf(line, "Order=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->DisplayOrder = (ImGuiTableColumnIdx)n; settings->SaveFlags |= ImGuiTableFlags_Reorderable; } + if (sscanf(line, "Sort=%d%c%n", &n, &c, &r) == 2) { line = ImStrSkipBlank(line + r); column->SortOrder = (ImGuiTableColumnIdx)n; column->SortDirection = (c == '^') ? ImGuiSortDirection_Descending : ImGuiSortDirection_Ascending; settings->SaveFlags |= ImGuiTableFlags_Sortable; } + } +} + +static void TableSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + ImGuiContext& g = *ctx; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + { + if (settings->ID == 0) // Skip ditched settings + continue; + + // TableSaveSettings() may clear some of those flags when we establish that the data can be stripped + // (e.g. Order was unchanged) + const bool save_size = (settings->SaveFlags & ImGuiTableFlags_Resizable) != 0; + const bool save_visible = (settings->SaveFlags & ImGuiTableFlags_Hideable) != 0; + const bool save_order = (settings->SaveFlags & ImGuiTableFlags_Reorderable) != 0; + const bool save_sort = (settings->SaveFlags & ImGuiTableFlags_Sortable) != 0; + if (!save_size && !save_visible && !save_order && !save_sort) + continue; + + buf->reserve(buf->size() + 30 + settings->ColumnsCount * 50); // ballpark reserve + buf->appendf("[%s][0x%08X,%d]\n", handler->TypeName, settings->ID, settings->ColumnsCount); + if (settings->RefScale != 0.0f) + buf->appendf("RefScale=%g\n", settings->RefScale); + ImGuiTableColumnSettings* column = settings->GetColumnSettings(); + for (int column_n = 0; column_n < settings->ColumnsCount; column_n++, column++) + { + // "Column 0 UserID=0x42AD2D21 Width=100 Visible=1 Order=0 Sort=0v" + bool save_column = column->UserID != 0 || save_size || save_visible || save_order || (save_sort && column->SortOrder != -1); + if (!save_column) + continue; + buf->appendf("Column %-2d", column_n); + if (column->UserID != 0) { buf->appendf(" UserID=%08X", column->UserID); } + if (save_size && column->IsStretch) { buf->appendf(" Weight=%.4f", column->WidthOrWeight); } + if (save_size && !column->IsStretch) { buf->appendf(" Width=%d", (int)column->WidthOrWeight); } + if (save_visible) { buf->appendf(" Visible=%d", column->IsEnabled); } + if (save_order) { buf->appendf(" Order=%d", column->DisplayOrder); } + if (save_sort && column->SortOrder != -1) { buf->appendf(" Sort=%d%c", column->SortOrder, (column->SortDirection == ImGuiSortDirection_Ascending) ? 'v' : '^'); } + buf->append("\n"); + } + buf->append("\n"); + } +} + +void ImGui::TableSettingsAddSettingsHandler() +{ + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Table"; + ini_handler.TypeHash = ImHashStr("Table"); + ini_handler.ClearAllFn = TableSettingsHandler_ClearAll; + ini_handler.ReadOpenFn = TableSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = TableSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = TableSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = TableSettingsHandler_WriteAll; + AddSettingsHandler(&ini_handler); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Garbage Collection +//------------------------------------------------------------------------- +// - TableRemove() [Internal] +// - TableGcCompactTransientBuffers() [Internal] +// - TableGcCompactSettings() [Internal] +//------------------------------------------------------------------------- + +// Remove Table (currently only used by TestEngine) +void ImGui::TableRemove(ImGuiTable* table) +{ + //IMGUI_DEBUG_PRINT("TableRemove() id=0x%08X\n", table->ID); + ImGuiContext& g = *GImGui; + int table_idx = g.Tables.GetIndex(table); + //memset(table->RawData.Data, 0, table->RawData.size_in_bytes()); + //memset(table, 0, sizeof(ImGuiTable)); + g.Tables.Remove(table->ID, table); + g.TablesLastTimeActive[table_idx] = -1.0f; +} + +// Free up/compact internal Table buffers for when it gets unused +void ImGui::TableGcCompactTransientBuffers(ImGuiTable* table) +{ + //IMGUI_DEBUG_PRINT("TableGcCompactTransientBuffers() id=0x%08X\n", table->ID); + ImGuiContext& g = *GImGui; + IM_ASSERT(table->MemoryCompacted == false); + table->SortSpecs.Specs = NULL; + table->SortSpecsMulti.clear(); + table->IsSortSpecsDirty = true; // FIXME: In theory shouldn't have to leak into user performing a sort on resume. + table->ColumnsNames.clear(); + table->MemoryCompacted = true; + for (int n = 0; n < table->ColumnsCount; n++) + table->Columns[n].NameOffset = -1; + g.TablesLastTimeActive[g.Tables.GetIndex(table)] = -1.0f; +} + +void ImGui::TableGcCompactTransientBuffers(ImGuiTableTempData* temp_data) +{ + temp_data->DrawSplitter.ClearFreeMemory(); + temp_data->LastTimeActive = -1.0f; +} + +// Compact and remove unused settings data (currently only used by TestEngine) +void ImGui::TableGcCompactSettings() +{ + ImGuiContext& g = *GImGui; + int required_memory = 0; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID != 0) + required_memory += (int)TableSettingsCalcChunkSize(settings->ColumnsCount); + if (required_memory == g.SettingsTables.Buf.Size) + return; + ImChunkStream new_chunk_stream; + new_chunk_stream.Buf.reserve(required_memory); + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID != 0) + memcpy(new_chunk_stream.alloc_chunk(TableSettingsCalcChunkSize(settings->ColumnsCount)), settings, TableSettingsCalcChunkSize(settings->ColumnsCount)); + g.SettingsTables.swap(new_chunk_stream); +} + + +//------------------------------------------------------------------------- +// [SECTION] Tables: Debugging +//------------------------------------------------------------------------- +// - DebugNodeTable() [Internal] +//------------------------------------------------------------------------- + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + +static const char* DebugNodeTableGetSizingPolicyDesc(ImGuiTableFlags sizing_policy) +{ + sizing_policy &= ImGuiTableFlags_SizingMask_; + if (sizing_policy == ImGuiTableFlags_SizingFixedFit) { return "FixedFit"; } + if (sizing_policy == ImGuiTableFlags_SizingFixedSame) { return "FixedSame"; } + if (sizing_policy == ImGuiTableFlags_SizingStretchProp) { return "StretchProp"; } + if (sizing_policy == ImGuiTableFlags_SizingStretchSame) { return "StretchSame"; } + return "N/A"; +} + +void ImGui::DebugNodeTable(ImGuiTable* table) +{ + const bool is_active = (table->LastFrameActive >= GetFrameCount() - 2); // Note that fully clipped early out scrolling tables will appear as inactive here. + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open = TreeNode(table, "Table 0x%08X (%d columns, in '%s')%s", table->ID, table->ColumnsCount, table->OuterWindow->Name, is_active ? "" : " *Inactive*"); + if (!is_active) { PopStyleColor(); } + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(table->OuterRect.Min, table->OuterRect.Max, IM_COL32(255, 255, 0, 255)); + if (IsItemVisible() && table->HoveredColumnBody != -1) + GetForegroundDrawList()->AddRect(GetItemRectMin(), GetItemRectMax(), IM_COL32(255, 255, 0, 255)); + if (!open) + return; + if (table->InstanceCurrent > 0) + Text("** %d instances of same table! Some data below will refer to last instance.", table->InstanceCurrent + 1); + bool clear_settings = SmallButton("Clear settings"); + BulletText("OuterRect: Pos: (%.1f,%.1f) Size: (%.1f,%.1f) Sizing: '%s'", table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.GetWidth(), table->OuterRect.GetHeight(), DebugNodeTableGetSizingPolicyDesc(table->Flags)); + BulletText("ColumnsGivenWidth: %.1f, ColumnsAutoFitWidth: %.1f, InnerWidth: %.1f%s", table->ColumnsGivenWidth, table->ColumnsAutoFitWidth, table->InnerWidth, table->InnerWidth == 0.0f ? " (auto)" : ""); + BulletText("CellPaddingX: %.1f, CellSpacingX: %.1f/%.1f, OuterPaddingX: %.1f", table->CellPaddingX, table->CellSpacingX1, table->CellSpacingX2, table->OuterPaddingX); + BulletText("HoveredColumnBody: %d, HoveredColumnBorder: %d", table->HoveredColumnBody, table->HoveredColumnBorder); + BulletText("ResizedColumn: %d, ReorderColumn: %d, HeldHeaderColumn: %d", table->ResizedColumn, table->ReorderColumn, table->HeldHeaderColumn); + for (int n = 0; n < table->InstanceCurrent + 1; n++) + { + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, n); + BulletText("Instance %d: HoveredRow: %d, LastOuterHeight: %.2f", n, table_instance->HoveredRowLast, table_instance->LastOuterHeight); + } + //BulletText("BgDrawChannels: %d/%d", 0, table->BgDrawChannelUnfrozen); + float sum_weights = 0.0f; + for (int n = 0; n < table->ColumnsCount; n++) + if (table->Columns[n].Flags & ImGuiTableColumnFlags_WidthStretch) + sum_weights += table->Columns[n].StretchWeight; + for (int n = 0; n < table->ColumnsCount; n++) + { + ImGuiTableColumn* column = &table->Columns[n]; + const char* name = TableGetColumnName(table, n); + char buf[512]; + ImFormatString(buf, IM_ARRAYSIZE(buf), + "Column %d order %d '%s': offset %+.2f to %+.2f%s\n" + "Enabled: %d, VisibleX/Y: %d/%d, RequestOutput: %d, SkipItems: %d, DrawChannels: %d,%d\n" + "WidthGiven: %.1f, Request/Auto: %.1f/%.1f, StretchWeight: %.3f (%.1f%%)\n" + "MinX: %.1f, MaxX: %.1f (%+.1f), ClipRect: %.1f to %.1f (+%.1f)\n" + "ContentWidth: %.1f,%.1f, HeadersUsed/Ideal %.1f/%.1f\n" + "Sort: %d%s, UserID: 0x%08X, Flags: 0x%04X: %s%s%s..", + n, column->DisplayOrder, name, column->MinX - table->WorkRect.Min.x, column->MaxX - table->WorkRect.Min.x, (n < table->FreezeColumnsRequest) ? " (Frozen)" : "", + column->IsEnabled, column->IsVisibleX, column->IsVisibleY, column->IsRequestOutput, column->IsSkipItems, column->DrawChannelFrozen, column->DrawChannelUnfrozen, + column->WidthGiven, column->WidthRequest, column->WidthAuto, column->StretchWeight, column->StretchWeight > 0.0f ? (column->StretchWeight / sum_weights) * 100.0f : 0.0f, + column->MinX, column->MaxX, column->MaxX - column->MinX, column->ClipRect.Min.x, column->ClipRect.Max.x, column->ClipRect.Max.x - column->ClipRect.Min.x, + column->ContentMaxXFrozen - column->WorkMinX, column->ContentMaxXUnfrozen - column->WorkMinX, column->ContentMaxXHeadersUsed - column->WorkMinX, column->ContentMaxXHeadersIdeal - column->WorkMinX, + column->SortOrder, (column->SortDirection == ImGuiSortDirection_Ascending) ? " (Asc)" : (column->SortDirection == ImGuiSortDirection_Descending) ? " (Des)" : "", column->UserID, column->Flags, + (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? "WidthStretch " : "", + (column->Flags & ImGuiTableColumnFlags_WidthFixed) ? "WidthFixed " : "", + (column->Flags & ImGuiTableColumnFlags_NoResize) ? "NoResize " : ""); + Bullet(); + Selectable(buf); + if (IsItemHovered()) + { + ImRect r(column->MinX, table->OuterRect.Min.y, column->MaxX, table->OuterRect.Max.y); + GetForegroundDrawList()->AddRect(r.Min, r.Max, IM_COL32(255, 255, 0, 255)); + } + } + if (ImGuiTableSettings* settings = TableGetBoundSettings(table)) + DebugNodeTableSettings(settings); + if (clear_settings) + table->IsResetAllRequest = true; + TreePop(); +} + +void ImGui::DebugNodeTableSettings(ImGuiTableSettings* settings) +{ + if (!TreeNode((void*)(intptr_t)settings->ID, "Settings 0x%08X (%d columns)", settings->ID, settings->ColumnsCount)) + return; + BulletText("SaveFlags: 0x%08X", settings->SaveFlags); + BulletText("ColumnsCount: %d (max %d)", settings->ColumnsCount, settings->ColumnsCountMax); + for (int n = 0; n < settings->ColumnsCount; n++) + { + ImGuiTableColumnSettings* column_settings = &settings->GetColumnSettings()[n]; + ImGuiSortDirection sort_dir = (column_settings->SortOrder != -1) ? (ImGuiSortDirection)column_settings->SortDirection : ImGuiSortDirection_None; + BulletText("Column %d Order %d SortOrder %d %s Vis %d %s %7.3f UserID 0x%08X", + n, column_settings->DisplayOrder, column_settings->SortOrder, + (sort_dir == ImGuiSortDirection_Ascending) ? "Asc" : (sort_dir == ImGuiSortDirection_Descending) ? "Des" : "---", + column_settings->IsEnabled, column_settings->IsStretch ? "Weight" : "Width ", column_settings->WidthOrWeight, column_settings->UserID); + } + TreePop(); +} + +#else // #ifndef IMGUI_DISABLE_DEBUG_TOOLS + +void ImGui::DebugNodeTable(ImGuiTable*) {} +void ImGui::DebugNodeTableSettings(ImGuiTableSettings*) {} + +#endif + + +//------------------------------------------------------------------------- +// [SECTION] Columns, BeginColumns, EndColumns, etc. +// (This is a legacy API, prefer using BeginTable/EndTable!) +//------------------------------------------------------------------------- +// FIXME: sizing is lossy when columns width is very small (default width may turn negative etc.) +//------------------------------------------------------------------------- +// - SetWindowClipRectBeforeSetChannel() [Internal] +// - GetColumnIndex() +// - GetColumnsCount() +// - GetColumnOffset() +// - GetColumnWidth() +// - SetColumnOffset() +// - SetColumnWidth() +// - PushColumnClipRect() [Internal] +// - PushColumnsBackground() [Internal] +// - PopColumnsBackground() [Internal] +// - FindOrCreateColumns() [Internal] +// - GetColumnsID() [Internal] +// - BeginColumns() +// - NextColumn() +// - EndColumns() +// - Columns() +//------------------------------------------------------------------------- + +// [Internal] Small optimization to avoid calls to PopClipRect/SetCurrentChannel/PushClipRect in sequences, +// they would meddle many times with the underlying ImDrawCmd. +// Instead, we do a preemptive overwrite of clipping rectangle _without_ altering the command-buffer and let +// the subsequent single call to SetCurrentChannel() does it things once. +void ImGui::SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect) +{ + ImVec4 clip_rect_vec4 = clip_rect.ToVec4(); + window->ClipRect = clip_rect; + window->DrawList->_CmdHeader.ClipRect = clip_rect_vec4; + window->DrawList->_ClipRectStack.Data[window->DrawList->_ClipRectStack.Size - 1] = clip_rect_vec4; +} + +int ImGui::GetColumnIndex() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CurrentColumns ? window->DC.CurrentColumns->Current : 0; +} + +int ImGui::GetColumnsCount() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CurrentColumns ? window->DC.CurrentColumns->Count : 1; +} + +float ImGui::GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm) +{ + return offset_norm * (columns->OffMaxX - columns->OffMinX); +} + +float ImGui::GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset) +{ + return offset / (columns->OffMaxX - columns->OffMinX); +} + +static const float COLUMNS_HIT_RECT_HALF_WIDTH = 4.0f; + +static float GetDraggedColumnOffset(ImGuiOldColumns* columns, int column_index) +{ + // Active (dragged) column always follow mouse. The reason we need this is that dragging a column to the right edge of an auto-resizing + // window creates a feedback loop because we store normalized positions. So while dragging we enforce absolute positioning. + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(column_index > 0); // We are not supposed to drag column 0. + IM_ASSERT(g.ActiveId == columns->ID + ImGuiID(column_index)); + + float x = g.IO.MousePos.x - g.ActiveIdClickOffset.x + COLUMNS_HIT_RECT_HALF_WIDTH - window->Pos.x; + x = ImMax(x, ImGui::GetColumnOffset(column_index - 1) + g.Style.ColumnsMinSpacing); + if ((columns->Flags & ImGuiOldColumnFlags_NoPreserveWidths)) + x = ImMin(x, ImGui::GetColumnOffset(column_index + 1) - g.Style.ColumnsMinSpacing); + + return x; +} + +float ImGui::GetColumnOffset(int column_index) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns == NULL) + return 0.0f; + + if (column_index < 0) + column_index = columns->Current; + IM_ASSERT(column_index < columns->Columns.Size); + + const float t = columns->Columns[column_index].OffsetNorm; + const float x_offset = ImLerp(columns->OffMinX, columns->OffMaxX, t); + return x_offset; +} + +static float GetColumnWidthEx(ImGuiOldColumns* columns, int column_index, bool before_resize = false) +{ + if (column_index < 0) + column_index = columns->Current; + + float offset_norm; + if (before_resize) + offset_norm = columns->Columns[column_index + 1].OffsetNormBeforeResize - columns->Columns[column_index].OffsetNormBeforeResize; + else + offset_norm = columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm; + return ImGui::GetColumnOffsetFromNorm(columns, offset_norm); +} + +float ImGui::GetColumnWidth(int column_index) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns == NULL) + return GetContentRegionAvail().x; + + if (column_index < 0) + column_index = columns->Current; + return GetColumnOffsetFromNorm(columns, columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm); +} + +void ImGui::SetColumnOffset(int column_index, float offset) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + if (column_index < 0) + column_index = columns->Current; + IM_ASSERT(column_index < columns->Columns.Size); + + const bool preserve_width = !(columns->Flags & ImGuiOldColumnFlags_NoPreserveWidths) && (column_index < columns->Count - 1); + const float width = preserve_width ? GetColumnWidthEx(columns, column_index, columns->IsBeingResized) : 0.0f; + + if (!(columns->Flags & ImGuiOldColumnFlags_NoForceWithinWindow)) + offset = ImMin(offset, columns->OffMaxX - g.Style.ColumnsMinSpacing * (columns->Count - column_index)); + columns->Columns[column_index].OffsetNorm = GetColumnNormFromOffset(columns, offset - columns->OffMinX); + + if (preserve_width) + SetColumnOffset(column_index + 1, offset + ImMax(g.Style.ColumnsMinSpacing, width)); +} + +void ImGui::SetColumnWidth(int column_index, float width) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + if (column_index < 0) + column_index = columns->Current; + SetColumnOffset(column_index + 1, GetColumnOffset(column_index) + width); +} + +void ImGui::PushColumnClipRect(int column_index) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (column_index < 0) + column_index = columns->Current; + + ImGuiOldColumnData* column = &columns->Columns[column_index]; + PushClipRect(column->ClipRect.Min, column->ClipRect.Max, false); +} + +// Get into the columns background draw command (which is generally the same draw command as before we called BeginColumns) +void ImGui::PushColumnsBackground() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns->Count == 1) + return; + + // Optimization: avoid SetCurrentChannel() + PushClipRect() + columns->HostBackupClipRect = window->ClipRect; + SetWindowClipRectBeforeSetChannel(window, columns->HostInitialClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, 0); +} + +void ImGui::PopColumnsBackground() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns->Count == 1) + return; + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + SetWindowClipRectBeforeSetChannel(window, columns->HostBackupClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); +} + +ImGuiOldColumns* ImGui::FindOrCreateColumns(ImGuiWindow* window, ImGuiID id) +{ + // We have few columns per window so for now we don't need bother much with turning this into a faster lookup. + for (int n = 0; n < window->ColumnsStorage.Size; n++) + if (window->ColumnsStorage[n].ID == id) + return &window->ColumnsStorage[n]; + + window->ColumnsStorage.push_back(ImGuiOldColumns()); + ImGuiOldColumns* columns = &window->ColumnsStorage.back(); + columns->ID = id; + return columns; +} + +ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count) +{ + ImGuiWindow* window = GetCurrentWindow(); + + // Differentiate column ID with an arbitrary prefix for cases where users name their columns set the same as another widget. + // In addition, when an identifier isn't explicitly provided we include the number of columns in the hash to make it uniquer. + PushID(0x11223347 + (str_id ? 0 : columns_count)); + ImGuiID id = window->GetID(str_id ? str_id : "columns"); + PopID(); + + return id; +} + +void ImGui::BeginColumns(const char* str_id, int columns_count, ImGuiOldColumnFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + IM_ASSERT(columns_count >= 1); + IM_ASSERT(window->DC.CurrentColumns == NULL); // Nested columns are currently not supported + + // Acquire storage for the columns set + ImGuiID id = GetColumnsID(str_id, columns_count); + ImGuiOldColumns* columns = FindOrCreateColumns(window, id); + IM_ASSERT(columns->ID == id); + columns->Current = 0; + columns->Count = columns_count; + columns->Flags = flags; + window->DC.CurrentColumns = columns; + window->DC.NavIsScrollPushableX = false; // Shortcut for NavUpdateCurrentWindowIsScrollPushableX(); + + columns->HostCursorPosY = window->DC.CursorPos.y; + columns->HostCursorMaxPosX = window->DC.CursorMaxPos.x; + columns->HostInitialClipRect = window->ClipRect; + columns->HostBackupParentWorkRect = window->ParentWorkRect; + window->ParentWorkRect = window->WorkRect; + + // Set state for first column + // We aim so that the right-most column will have the same clipping width as other after being clipped by parent ClipRect + const float column_padding = g.Style.ItemSpacing.x; + const float half_clip_extend_x = ImTrunc(ImMax(window->WindowPadding.x * 0.5f, window->WindowBorderSize)); + const float max_1 = window->WorkRect.Max.x + column_padding - ImMax(column_padding - window->WindowPadding.x, 0.0f); + const float max_2 = window->WorkRect.Max.x + half_clip_extend_x; + columns->OffMinX = window->DC.Indent.x - column_padding + ImMax(column_padding - window->WindowPadding.x, 0.0f); + columns->OffMaxX = ImMax(ImMin(max_1, max_2) - window->Pos.x, columns->OffMinX + 1.0f); + columns->LineMinY = columns->LineMaxY = window->DC.CursorPos.y; + + // Clear data if columns count changed + if (columns->Columns.Size != 0 && columns->Columns.Size != columns_count + 1) + columns->Columns.resize(0); + + // Initialize default widths + columns->IsFirstFrame = (columns->Columns.Size == 0); + if (columns->Columns.Size == 0) + { + columns->Columns.reserve(columns_count + 1); + for (int n = 0; n < columns_count + 1; n++) + { + ImGuiOldColumnData column; + column.OffsetNorm = n / (float)columns_count; + columns->Columns.push_back(column); + } + } + + for (int n = 0; n < columns_count; n++) + { + // Compute clipping rectangle + ImGuiOldColumnData* column = &columns->Columns[n]; + float clip_x1 = IM_ROUND(window->Pos.x + GetColumnOffset(n)); + float clip_x2 = IM_ROUND(window->Pos.x + GetColumnOffset(n + 1) - 1.0f); + column->ClipRect = ImRect(clip_x1, -FLT_MAX, clip_x2, +FLT_MAX); + column->ClipRect.ClipWithFull(window->ClipRect); + } + + if (columns->Count > 1) + { + columns->Splitter.Split(window->DrawList, 1 + columns->Count); + columns->Splitter.SetCurrentChannel(window->DrawList, 1); + PushColumnClipRect(0); + } + + // We don't generally store Indent.x inside ColumnsOffset because it may be manipulated by the user. + float offset_0 = GetColumnOffset(columns->Current); + float offset_1 = GetColumnOffset(columns->Current + 1); + float width = offset_1 - offset_0; + PushItemWidth(width * 0.65f); + window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + window->DC.CursorPos.x = IM_TRUNC(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; + window->WorkRect.Max.y = window->ContentRegionRect.Max.y; +} + +void ImGui::NextColumn() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems || window->DC.CurrentColumns == NULL) + return; + + ImGuiContext& g = *GImGui; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + + if (columns->Count == 1) + { + window->DC.CursorPos.x = IM_TRUNC(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + IM_ASSERT(columns->Current == 0); + return; + } + + // Next column + if (++columns->Current == columns->Count) + columns->Current = 0; + + PopItemWidth(); + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + PushClipRect() + // (which would needlessly attempt to update commands in the wrong channel, then pop or overwrite them), + ImGuiOldColumnData* column = &columns->Columns[columns->Current]; + SetWindowClipRectBeforeSetChannel(window, column->ClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); + + const float column_padding = g.Style.ItemSpacing.x; + columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); + if (columns->Current > 0) + { + // Columns 1+ ignore IndentX (by canceling it out) + // FIXME-COLUMNS: Unnecessary, could be locked? + window->DC.ColumnsOffset.x = GetColumnOffset(columns->Current) - window->DC.Indent.x + column_padding; + } + else + { + // New row/line: column 0 honor IndentX. + window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + window->DC.IsSameLine = false; + columns->LineMinY = columns->LineMaxY; + } + window->DC.CursorPos.x = IM_TRUNC(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + window->DC.CursorPos.y = columns->LineMinY; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + window->DC.CurrLineTextBaseOffset = 0.0f; + + // FIXME-COLUMNS: Share code with BeginColumns() - move code on columns setup. + float offset_0 = GetColumnOffset(columns->Current); + float offset_1 = GetColumnOffset(columns->Current + 1); + float width = offset_1 - offset_0; + PushItemWidth(width * 0.65f); + window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; +} + +void ImGui::EndColumns() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + PopItemWidth(); + if (columns->Count > 1) + { + PopClipRect(); + columns->Splitter.Merge(window->DrawList); + } + + const ImGuiOldColumnFlags flags = columns->Flags; + columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); + window->DC.CursorPos.y = columns->LineMaxY; + if (!(flags & ImGuiOldColumnFlags_GrowParentContentsSize)) + window->DC.CursorMaxPos.x = columns->HostCursorMaxPosX; // Restore cursor max pos, as columns don't grow parent + + // Draw columns borders and handle resize + // The IsBeingResized flag ensure we preserve pre-resize columns width so back-and-forth are not lossy + bool is_being_resized = false; + if (!(flags & ImGuiOldColumnFlags_NoBorder) && !window->SkipItems) + { + // We clip Y boundaries CPU side because very long triangles are mishandled by some GPU drivers. + const float y1 = ImMax(columns->HostCursorPosY, window->ClipRect.Min.y); + const float y2 = ImMin(window->DC.CursorPos.y, window->ClipRect.Max.y); + int dragging_column = -1; + for (int n = 1; n < columns->Count; n++) + { + ImGuiOldColumnData* column = &columns->Columns[n]; + float x = window->Pos.x + GetColumnOffset(n); + const ImGuiID column_id = columns->ID + ImGuiID(n); + const float column_hit_hw = COLUMNS_HIT_RECT_HALF_WIDTH; + const ImRect column_hit_rect(ImVec2(x - column_hit_hw, y1), ImVec2(x + column_hit_hw, y2)); + if (!ItemAdd(column_hit_rect, column_id, NULL, ImGuiItemFlags_NoNav)) + continue; + + bool hovered = false, held = false; + if (!(flags & ImGuiOldColumnFlags_NoResize)) + { + ButtonBehavior(column_hit_rect, column_id, &hovered, &held); + if (hovered || held) + g.MouseCursor = ImGuiMouseCursor_ResizeEW; + if (held && !(column->Flags & ImGuiOldColumnFlags_NoResize)) + dragging_column = n; + } + + // Draw column + const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : hovered ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); + const float xi = IM_TRUNC(x); + window->DrawList->AddLine(ImVec2(xi, y1 + 1.0f), ImVec2(xi, y2), col); + } + + // Apply dragging after drawing the column lines, so our rendered lines are in sync with how items were displayed during the frame. + if (dragging_column != -1) + { + if (!columns->IsBeingResized) + for (int n = 0; n < columns->Count + 1; n++) + columns->Columns[n].OffsetNormBeforeResize = columns->Columns[n].OffsetNorm; + columns->IsBeingResized = is_being_resized = true; + float x = GetDraggedColumnOffset(columns, dragging_column); + SetColumnOffset(dragging_column, x); + } + } + columns->IsBeingResized = is_being_resized; + + window->WorkRect = window->ParentWorkRect; + window->ParentWorkRect = columns->HostBackupParentWorkRect; + window->DC.CurrentColumns = NULL; + window->DC.ColumnsOffset.x = 0.0f; + window->DC.CursorPos.x = IM_TRUNC(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + NavUpdateCurrentWindowIsScrollPushableX(); +} + +void ImGui::Columns(int columns_count, const char* id, bool border) +{ + ImGuiWindow* window = GetCurrentWindow(); + IM_ASSERT(columns_count >= 1); + + ImGuiOldColumnFlags flags = (border ? 0 : ImGuiOldColumnFlags_NoBorder); + //flags |= ImGuiOldColumnFlags_NoPreserveWidths; // NB: Legacy behavior + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns != NULL && columns->Count == columns_count && columns->Flags == flags) + return; + + if (columns != NULL) + EndColumns(); + + if (columns_count != 1) + BeginColumns(id, columns_count, flags); +} + +//------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/imgui_widgets.cpp b/HexaGen.Tests/cpp2c/imgui/imgui_widgets.cpp new file mode 100644 index 0000000..a2ee8a7 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/imgui_widgets.cpp @@ -0,0 +1,9049 @@ +// dear imgui, v1.90 WIP +// (widgets code) + +/* + +Index of this file: + +// [SECTION] Forward Declarations +// [SECTION] Widgets: Text, etc. +// [SECTION] Widgets: Main (Button, Image, Checkbox, RadioButton, ProgressBar, Bullet, etc.) +// [SECTION] Widgets: Low-level Layout helpers (Spacing, Dummy, NewLine, Separator, etc.) +// [SECTION] Widgets: ComboBox +// [SECTION] Data Type and Data Formatting Helpers +// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. +// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. +// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. +// [SECTION] Widgets: InputText, InputTextMultiline +// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. +// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. +// [SECTION] Widgets: Selectable +// [SECTION] Widgets: Typing-Select support +// [SECTION] Widgets: Multi-Select support +// [SECTION] Widgets: ListBox +// [SECTION] Widgets: PlotLines, PlotHistogram +// [SECTION] Widgets: Value helpers +// [SECTION] Widgets: MenuItem, BeginMenu, EndMenu, etc. +// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. +// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. +// [SECTION] Widgets: Columns, BeginColumns, EndColumns, etc. + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_internal.h" + +// System includes +#include // intptr_t + +//------------------------------------------------------------------------- +// Warnings +//------------------------------------------------------------------------- + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') +#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#endif + +//------------------------------------------------------------------------- +// Data +//------------------------------------------------------------------------- + +// Widgets +static const float DRAGDROP_HOLD_TO_OPEN_TIMER = 0.70f; // Time for drag-hold to activate items accepting the ImGuiButtonFlags_PressedOnDragDropHold button behavior. +static const float DRAG_MOUSE_THRESHOLD_FACTOR = 0.50f; // Multiplier for the default value of io.MouseDragThreshold to make DragFloat/DragInt react faster to mouse drags. + +// Those MIN/MAX values are not define because we need to point to them +static const signed char IM_S8_MIN = -128; +static const signed char IM_S8_MAX = 127; +static const unsigned char IM_U8_MIN = 0; +static const unsigned char IM_U8_MAX = 0xFF; +static const signed short IM_S16_MIN = -32768; +static const signed short IM_S16_MAX = 32767; +static const unsigned short IM_U16_MIN = 0; +static const unsigned short IM_U16_MAX = 0xFFFF; +static const ImS32 IM_S32_MIN = INT_MIN; // (-2147483647 - 1), (0x80000000); +static const ImS32 IM_S32_MAX = INT_MAX; // (2147483647), (0x7FFFFFFF) +static const ImU32 IM_U32_MIN = 0; +static const ImU32 IM_U32_MAX = UINT_MAX; // (0xFFFFFFFF) +#ifdef LLONG_MIN +static const ImS64 IM_S64_MIN = LLONG_MIN; // (-9223372036854775807ll - 1ll); +static const ImS64 IM_S64_MAX = LLONG_MAX; // (9223372036854775807ll); +#else +static const ImS64 IM_S64_MIN = -9223372036854775807LL - 1; +static const ImS64 IM_S64_MAX = 9223372036854775807LL; +#endif +static const ImU64 IM_U64_MIN = 0; +#ifdef ULLONG_MAX +static const ImU64 IM_U64_MAX = ULLONG_MAX; // (0xFFFFFFFFFFFFFFFFull); +#else +static const ImU64 IM_U64_MAX = (2ULL * 9223372036854775807LL + 1); +#endif + +//------------------------------------------------------------------------- +// [SECTION] Forward Declarations +//------------------------------------------------------------------------- + +// For InputTextEx() +static bool InputTextFilterCharacter(ImGuiContext* ctx, unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data, ImGuiInputSource input_source); +static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end); +static ImVec2 InputTextCalcTextSizeW(ImGuiContext* ctx, const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining = NULL, ImVec2* out_offset = NULL, bool stop_on_new_line = false); + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Text, etc. +//------------------------------------------------------------------------- +// - TextEx() [Internal] +// - TextUnformatted() +// - Text() +// - TextV() +// - TextColored() +// - TextColoredV() +// - TextDisabled() +// - TextDisabledV() +// - TextWrapped() +// - TextWrappedV() +// - LabelText() +// - LabelTextV() +// - BulletText() +// - BulletTextV() +//------------------------------------------------------------------------- + +void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ImGuiContext& g = *GImGui; + + // Accept null ranges + if (text == text_end) + text = text_end = ""; + + // Calculate length + const char* text_begin = text; + if (text_end == NULL) + text_end = text + strlen(text); // FIXME-OPT + + const ImVec2 text_pos(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + const float wrap_pos_x = window->DC.TextWrapPos; + const bool wrap_enabled = (wrap_pos_x >= 0.0f); + if (text_end - text <= 2000 || wrap_enabled) + { + // Common case + const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; + const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + if (!ItemAdd(bb, 0)) + return; + + // Render (we don't hide text after ## in this end-user function) + RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); + } + else + { + // Long text! + // Perform manual coarse clipping to optimize for long multi-line text + // - From this point we will only compute the width of lines that are visible. Optimization only available when word-wrapping is disabled. + // - We also don't vertically center the text within the line full height, which is unlikely to matter because we are likely the biggest and only item on the line. + // - We use memchr(), pay attention that well optimized versions of those str/mem functions are much faster than a casually written loop. + const char* line = text; + const float line_height = GetTextLineHeight(); + ImVec2 text_size(0, 0); + + // Lines to skip (can't skip when logging text) + ImVec2 pos = text_pos; + if (!g.LogEnabled) + { + int lines_skippable = (int)((window->ClipRect.Min.y - text_pos.y) / line_height); + if (lines_skippable > 0) + { + int lines_skipped = 0; + while (line < text_end && lines_skipped < lines_skippable) + { + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + line = line_end + 1; + lines_skipped++; + } + pos.y += lines_skipped * line_height; + } + } + + // Lines to render + if (line < text_end) + { + ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); + while (line < text_end) + { + if (IsClippedEx(line_rect, 0)) + break; + + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + RenderText(pos, line, line_end, false); + line = line_end + 1; + line_rect.Min.y += line_height; + line_rect.Max.y += line_height; + pos.y += line_height; + } + + // Count remaining lines + int lines_skipped = 0; + while (line < text_end) + { + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + line = line_end + 1; + lines_skipped++; + } + pos.y += lines_skipped * line_height; + } + text_size.y = (pos - text_pos).y; + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + ItemAdd(bb, 0); + } +} + +void ImGui::TextUnformatted(const char* text, const char* text_end) +{ + TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); +} + +void ImGui::Text(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextV(fmt, args); + va_end(args); +} + +void ImGui::TextV(const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + const char* text, *text_end; + ImFormatStringToTempBufferV(&text, &text_end, fmt, args); + TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); +} + +void ImGui::TextColored(const ImVec4& col, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextColoredV(col, fmt, args); + va_end(args); +} + +void ImGui::TextColoredV(const ImVec4& col, const char* fmt, va_list args) +{ + PushStyleColor(ImGuiCol_Text, col); + TextV(fmt, args); + PopStyleColor(); +} + +void ImGui::TextDisabled(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextDisabledV(fmt, args); + va_end(args); +} + +void ImGui::TextDisabledV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]); + TextV(fmt, args); + PopStyleColor(); +} + +void ImGui::TextWrapped(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextWrappedV(fmt, args); + va_end(args); +} + +void ImGui::TextWrappedV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + const bool need_backup = (g.CurrentWindow->DC.TextWrapPos < 0.0f); // Keep existing wrap position if one is already set + if (need_backup) + PushTextWrapPos(0.0f); + TextV(fmt, args); + if (need_backup) + PopTextWrapPos(); +} + +void ImGui::LabelText(const char* label, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + LabelTextV(label, fmt, args); + va_end(args); +} + +// Add a label+text combo aligned to other label+value widgets +void ImGui::LabelTextV(const char* label, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float w = CalcItemWidth(); + + const char* value_text_begin, *value_text_end; + ImFormatStringToTempBufferV(&value_text_begin, &value_text_end, fmt, args); + const ImVec2 value_size = CalcTextSize(value_text_begin, value_text_end, false); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const ImVec2 pos = window->DC.CursorPos; + const ImRect value_bb(pos, pos + ImVec2(w, value_size.y + style.FramePadding.y * 2)); + const ImRect total_bb(pos, pos + ImVec2(w + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), ImMax(value_size.y, label_size.y) + style.FramePadding.y * 2)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, 0)) + return; + + // Render + RenderTextClipped(value_bb.Min + style.FramePadding, value_bb.Max, value_text_begin, value_text_end, &value_size, ImVec2(0.0f, 0.0f)); + if (label_size.x > 0.0f) + RenderText(ImVec2(value_bb.Max.x + style.ItemInnerSpacing.x, value_bb.Min.y + style.FramePadding.y), label); +} + +void ImGui::BulletText(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + BulletTextV(fmt, args); + va_end(args); +} + +// Text with a little bullet aligned to the typical tree node. +void ImGui::BulletTextV(const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + const char* text_begin, *text_end; + ImFormatStringToTempBufferV(&text_begin, &text_end, fmt, args); + const ImVec2 label_size = CalcTextSize(text_begin, text_end, false); + const ImVec2 total_size = ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x * 2) : 0.0f), label_size.y); // Empty text doesn't add padding + ImVec2 pos = window->DC.CursorPos; + pos.y += window->DC.CurrLineTextBaseOffset; + ItemSize(total_size, 0.0f); + const ImRect bb(pos, pos + total_size); + if (!ItemAdd(bb, 0)) + return; + + // Render + ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, g.FontSize * 0.5f), text_col); + RenderText(bb.Min + ImVec2(g.FontSize + style.FramePadding.x * 2, 0.0f), text_begin, text_end, false); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Main +//------------------------------------------------------------------------- +// - ButtonBehavior() [Internal] +// - Button() +// - SmallButton() +// - InvisibleButton() +// - ArrowButton() +// - CloseButton() [Internal] +// - CollapseButton() [Internal] +// - GetWindowScrollbarID() [Internal] +// - GetWindowScrollbarRect() [Internal] +// - Scrollbar() [Internal] +// - ScrollbarEx() [Internal] +// - Image() +// - ImageButton() +// - Checkbox() +// - CheckboxFlagsT() [Internal] +// - CheckboxFlags() +// - RadioButton() +// - ProgressBar() +// - Bullet() +//------------------------------------------------------------------------- + +// The ButtonBehavior() function is key to many interactions and used by many/most widgets. +// Because we handle so many cases (keyboard/gamepad navigation, drag and drop) and many specific behavior (via ImGuiButtonFlags_), +// this code is a little complex. +// By far the most common path is interacting with the Mouse using the default ImGuiButtonFlags_PressedOnClickRelease button behavior. +// See the series of events below and the corresponding state reported by dear imgui: +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnClickRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+0 (mouse is outside bb) - - - - - - +// Frame N+1 (mouse moves inside bb) - true - - - - +// Frame N+2 (mouse button is down) - true true true - true +// Frame N+3 (mouse button is down) - true true - - - +// Frame N+4 (mouse moves outside bb) - - true - - - +// Frame N+5 (mouse moves inside bb) - true true - - - +// Frame N+6 (mouse button is released) true true - - true - +// Frame N+7 (mouse button is released) - true - - - - +// Frame N+8 (mouse moves outside bb) - - - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+2 (mouse button is down) true true true true - true +// Frame N+3 (mouse button is down) - true true - - - +// Frame N+6 (mouse button is released) - true - - true - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+2 (mouse button is down) - true - - - true +// Frame N+3 (mouse button is down) - true - - - - +// Frame N+6 (mouse button is released) true true - - - - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnDoubleClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+0 (mouse button is down) - true - - - true +// Frame N+1 (mouse button is down) - true - - - - +// Frame N+2 (mouse button is released) - true - - - - +// Frame N+3 (mouse button is released) - true - - - - +// Frame N+4 (mouse button is down) true true true true - true +// Frame N+5 (mouse button is down) - true true - - - +// Frame N+6 (mouse button is released) - true - - true - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// Note that some combinations are supported, +// - PressedOnDragDropHold can generally be associated with any flag. +// - PressedOnDoubleClick can be associated by PressedOnClickRelease/PressedOnRelease, in which case the second release event won't be reported. +//------------------------------------------------------------------------------------------------------------------------------------------------ +// The behavior of the return-value changes when ImGuiButtonFlags_Repeat is set: +// Repeat+ Repeat+ Repeat+ Repeat+ +// PressedOnClickRelease PressedOnClick PressedOnRelease PressedOnDoubleClick +//------------------------------------------------------------------------------------------------------------------------------------------------- +// Frame N+0 (mouse button is down) - true - true +// ... - - - - +// Frame N + RepeatDelay true true - true +// ... - - - - +// Frame N + RepeatDelay + RepeatRate*N true true - true +//------------------------------------------------------------------------------------------------------------------------------------------------- + +bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + // Default only reacts to left mouse button + if ((flags & ImGuiButtonFlags_MouseButtonMask_) == 0) + flags |= ImGuiButtonFlags_MouseButtonDefault_; + + // Default behavior requires click + release inside bounding box + if ((flags & ImGuiButtonFlags_PressedOnMask_) == 0) + flags |= ImGuiButtonFlags_PressedOnDefault_; + + // Default behavior inherited from item flags + // Note that _both_ ButtonFlags and ItemFlags are valid sources, so copy one into the item_flags and only check that. + ImGuiItemFlags item_flags = (g.LastItemData.ID == id ? g.LastItemData.InFlags : g.CurrentItemFlags); + if (flags & ImGuiButtonFlags_AllowOverlap) + item_flags |= ImGuiItemFlags_AllowOverlap; + if (flags & ImGuiButtonFlags_Repeat) + item_flags |= ImGuiItemFlags_ButtonRepeat; + + ImGuiWindow* backup_hovered_window = g.HoveredWindow; + const bool flatten_hovered_children = (flags & ImGuiButtonFlags_FlattenChildren) && g.HoveredWindow && g.HoveredWindow->RootWindowDockTree == window->RootWindowDockTree; + if (flatten_hovered_children) + g.HoveredWindow = window; + +#ifdef IMGUI_ENABLE_TEST_ENGINE + // Alternate registration spot, for when caller didn't use ItemAdd() + if (id != 0 && g.LastItemData.ID != id) + IMGUI_TEST_ENGINE_ITEM_ADD(id, bb, NULL); +#endif + + bool pressed = false; + bool hovered = ItemHoverable(bb, id, item_flags); + + // Special mode for Drag and Drop where holding button pressed for a long time while dragging another item triggers the button + if (g.DragDropActive && (flags & ImGuiButtonFlags_PressedOnDragDropHold) && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoHoldToOpenOthers)) + if (IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) + { + hovered = true; + SetHoveredID(id); + if (g.HoveredIdTimer - g.IO.DeltaTime <= DRAGDROP_HOLD_TO_OPEN_TIMER && g.HoveredIdTimer >= DRAGDROP_HOLD_TO_OPEN_TIMER) + { + pressed = true; + g.DragDropHoldJustPressedId = id; + FocusWindow(window); + } + } + + if (flatten_hovered_children) + g.HoveredWindow = backup_hovered_window; + + // Mouse handling + const ImGuiID test_owner_id = (flags & ImGuiButtonFlags_NoTestKeyOwner) ? ImGuiKeyOwner_Any : id; + if (hovered) + { + // Poll mouse buttons + // - 'mouse_button_clicked' is generally carried into ActiveIdMouseButton when setting ActiveId. + // - Technically we only need some values in one code path, but since this is gated by hovered test this is fine. + int mouse_button_clicked = -1; + int mouse_button_released = -1; + for (int button = 0; button < 3; button++) + if (flags & (ImGuiButtonFlags_MouseButtonLeft << button)) // Handle ImGuiButtonFlags_MouseButtonRight and ImGuiButtonFlags_MouseButtonMiddle here. + { + if (IsMouseClicked(button, test_owner_id) && mouse_button_clicked == -1) { mouse_button_clicked = button; } + if (IsMouseReleased(button, test_owner_id) && mouse_button_released == -1) { mouse_button_released = button; } + } + + // Process initial action + if (!(flags & ImGuiButtonFlags_NoKeyModifiers) || (!g.IO.KeyCtrl && !g.IO.KeyShift && !g.IO.KeyAlt)) + { + if (mouse_button_clicked != -1 && g.ActiveId != id) + { + if (!(flags & ImGuiButtonFlags_NoSetKeyOwner)) + SetKeyOwner(MouseButtonToKey(mouse_button_clicked), id); + if (flags & (ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere)) + { + SetActiveID(id, window); + g.ActiveIdMouseButton = mouse_button_clicked; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + FocusWindow(window); + } + if ((flags & ImGuiButtonFlags_PressedOnClick) || ((flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseClickedCount[mouse_button_clicked] == 2)) + { + pressed = true; + if (flags & ImGuiButtonFlags_NoHoldingActiveId) + ClearActiveID(); + else + SetActiveID(id, window); // Hold on ID + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + g.ActiveIdMouseButton = mouse_button_clicked; + FocusWindow(window); + } + } + if (flags & ImGuiButtonFlags_PressedOnRelease) + { + if (mouse_button_released != -1) + { + const bool has_repeated_at_least_once = (item_flags & ImGuiItemFlags_ButtonRepeat) && g.IO.MouseDownDurationPrev[mouse_button_released] >= g.IO.KeyRepeatDelay; // Repeat mode trumps on release behavior + if (!has_repeated_at_least_once) + pressed = true; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + ClearActiveID(); + } + } + + // 'Repeat' mode acts when held regardless of _PressedOn flags (see table above). + // Relies on repeat logic of IsMouseClicked() but we may as well do it ourselves if we end up exposing finer RepeatDelay/RepeatRate settings. + if (g.ActiveId == id && (item_flags & ImGuiItemFlags_ButtonRepeat)) + if (g.IO.MouseDownDuration[g.ActiveIdMouseButton] > 0.0f && IsMouseClicked(g.ActiveIdMouseButton, test_owner_id, ImGuiInputFlags_Repeat)) + pressed = true; + } + + if (pressed) + g.NavDisableHighlight = true; + } + + // Gamepad/Keyboard navigation + // We report navigated item as hovered but we don't set g.HoveredId to not interfere with mouse. + if (g.NavId == id && !g.NavDisableHighlight && g.NavDisableMouseHover && (g.ActiveId == 0 || g.ActiveId == id || g.ActiveId == window->MoveId)) + if (!(flags & ImGuiButtonFlags_NoHoveredOnFocus)) + hovered = true; + if (g.NavActivateDownId == id) + { + bool nav_activated_by_code = (g.NavActivateId == id); + bool nav_activated_by_inputs = (g.NavActivatePressedId == id); + if (!nav_activated_by_inputs && (item_flags & ImGuiItemFlags_ButtonRepeat)) + { + // Avoid pressing multiple keys from triggering excessive amount of repeat events + const ImGuiKeyData* key1 = GetKeyData(ImGuiKey_Space); + const ImGuiKeyData* key2 = GetKeyData(ImGuiKey_Enter); + const ImGuiKeyData* key3 = GetKeyData(ImGuiKey_NavGamepadActivate); + const float t1 = ImMax(ImMax(key1->DownDuration, key2->DownDuration), key3->DownDuration); + nav_activated_by_inputs = CalcTypematicRepeatAmount(t1 - g.IO.DeltaTime, t1, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0; + } + if (nav_activated_by_code || nav_activated_by_inputs) + { + // Set active id so it can be queried by user via IsItemActive(), equivalent of holding the mouse button. + pressed = true; + SetActiveID(id, window); + g.ActiveIdSource = g.NavInputSource; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + } + } + + // Process while held + bool held = false; + if (g.ActiveId == id) + { + if (g.ActiveIdSource == ImGuiInputSource_Mouse) + { + if (g.ActiveIdIsJustActivated) + g.ActiveIdClickOffset = g.IO.MousePos - bb.Min; + + const int mouse_button = g.ActiveIdMouseButton; + if (mouse_button == -1) + { + // Fallback for the rare situation were g.ActiveId was set programmatically or from another widget (e.g. #6304). + ClearActiveID(); + } + else if (IsMouseDown(mouse_button, test_owner_id)) + { + held = true; + } + else + { + bool release_in = hovered && (flags & ImGuiButtonFlags_PressedOnClickRelease) != 0; + bool release_anywhere = (flags & ImGuiButtonFlags_PressedOnClickReleaseAnywhere) != 0; + if ((release_in || release_anywhere) && !g.DragDropActive) + { + // Report as pressed when releasing the mouse (this is the most common path) + bool is_double_click_release = (flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseReleased[mouse_button] && g.IO.MouseClickedLastCount[mouse_button] == 2; + bool is_repeating_already = (item_flags & ImGuiItemFlags_ButtonRepeat) && g.IO.MouseDownDurationPrev[mouse_button] >= g.IO.KeyRepeatDelay; // Repeat mode trumps + bool is_button_avail_or_owned = TestKeyOwner(MouseButtonToKey(mouse_button), test_owner_id); + if (!is_double_click_release && !is_repeating_already && is_button_avail_or_owned) + pressed = true; + } + ClearActiveID(); + } + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + g.NavDisableHighlight = true; + } + else if (g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) + { + // When activated using Nav, we hold on the ActiveID until activation button is released + if (g.NavActivateDownId != id) + ClearActiveID(); + } + if (pressed) + g.ActiveIdHasBeenPressedBefore = true; + } + + if (out_hovered) *out_hovered = hovered; + if (out_held) *out_held = held; + + return pressed; +} + +bool ImGui::ButtonEx(const char* label, const ImVec2& size_arg, ImGuiButtonFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + ImVec2 pos = window->DC.CursorPos; + if ((flags & ImGuiButtonFlags_AlignTextBaseLine) && style.FramePadding.y < window->DC.CurrLineTextBaseOffset) // Try to vertically align buttons that are smaller/have no padding so that text baseline matches (bit hacky, since it shouldn't be a flag) + pos.y += window->DC.CurrLineTextBaseOffset - style.FramePadding.y; + ImVec2 size = CalcItemSize(size_arg, label_size.x + style.FramePadding.x * 2.0f, label_size.y + style.FramePadding.y * 2.0f); + + const ImRect bb(pos, pos + size); + ItemSize(size, style.FramePadding.y); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding); + + if (g.LogEnabled) + LogSetNextTextDecoration("[", "]"); + RenderTextClipped(bb.Min + style.FramePadding, bb.Max - style.FramePadding, label, NULL, &label_size, style.ButtonTextAlign, &bb); + + // Automatically close popups + //if (pressed && !(flags & ImGuiButtonFlags_DontClosePopups) && (window->Flags & ImGuiWindowFlags_Popup)) + // CloseCurrentPopup(); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::Button(const char* label, const ImVec2& size_arg) +{ + return ButtonEx(label, size_arg, ImGuiButtonFlags_None); +} + +// Small buttons fits within text without additional vertical spacing. +bool ImGui::SmallButton(const char* label) +{ + ImGuiContext& g = *GImGui; + float backup_padding_y = g.Style.FramePadding.y; + g.Style.FramePadding.y = 0.0f; + bool pressed = ButtonEx(label, ImVec2(0, 0), ImGuiButtonFlags_AlignTextBaseLine); + g.Style.FramePadding.y = backup_padding_y; + return pressed; +} + +// Tip: use ImGui::PushID()/PopID() to push indices or pointers in the ID stack. +// Then you can keep 'str_id' empty or the same for all your buttons (instead of creating a string based on a non-string id) +bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + // Cannot use zero-size for InvisibleButton(). Unlike Button() there is not way to fallback using the label size. + IM_ASSERT(size_arg.x != 0.0f && size_arg.y != 0.0f); + + const ImGuiID id = window->GetID(str_id); + ImVec2 size = CalcItemSize(size_arg, 0.0f, 0.0f); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(size); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImGuiID id = window->GetID(str_id); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + const float default_size = GetFrameHeight(); + ItemSize(size, (size.y >= default_size) ? g.Style.FramePadding.y : -1.0f); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + const ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, bg_col, true, g.Style.FrameRounding); + RenderArrow(window->DrawList, bb.Min + ImVec2(ImMax(0.0f, (size.x - g.FontSize) * 0.5f), ImMax(0.0f, (size.y - g.FontSize) * 0.5f)), text_col, dir); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::ArrowButton(const char* str_id, ImGuiDir dir) +{ + float sz = GetFrameHeight(); + return ArrowButtonEx(str_id, dir, ImVec2(sz, sz), ImGuiButtonFlags_None); +} + +// Button to close a window +bool ImGui::CloseButton(ImGuiID id, const ImVec2& pos) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Tweak 1: Shrink hit-testing area if button covers an abnormally large proportion of the visible region. That's in order to facilitate moving the window away. (#3825) + // This may better be applied as a general hit-rect reduction mechanism for all widgets to ensure the area to move window is always accessible? + const ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize)); + ImRect bb_interact = bb; + const float area_to_visible_ratio = window->OuterRectClipped.GetArea() / bb.GetArea(); + if (area_to_visible_ratio < 1.5f) + bb_interact.Expand(ImTrunc(bb_interact.GetSize() * -0.25f)); + + // Tweak 2: We intentionally allow interaction when clipped so that a mechanical Alt,Right,Activate sequence can always close a window. + // (this isn't the common behavior of buttons, but it doesn't affect the user because navigation tends to keep items visible in scrolling layer). + bool is_clipped = !ItemAdd(bb_interact, id); + + bool hovered, held; + bool pressed = ButtonBehavior(bb_interact, id, &hovered, &held); + if (is_clipped) + return pressed; + + // Render + // FIXME: Clarify this mess + ImU32 col = GetColorU32(held ? ImGuiCol_ButtonActive : ImGuiCol_ButtonHovered); + ImVec2 center = bb.GetCenter(); + if (hovered) + window->DrawList->AddCircleFilled(center, ImMax(2.0f, g.FontSize * 0.5f + 1.0f), col); + + float cross_extent = g.FontSize * 0.5f * 0.7071f - 1.0f; + ImU32 cross_col = GetColorU32(ImGuiCol_Text); + center -= ImVec2(0.5f, 0.5f); + window->DrawList->AddLine(center + ImVec2(+cross_extent, +cross_extent), center + ImVec2(-cross_extent, -cross_extent), cross_col, 1.0f); + window->DrawList->AddLine(center + ImVec2(+cross_extent, -cross_extent), center + ImVec2(-cross_extent, +cross_extent), cross_col, 1.0f); + + return pressed; +} + +// The Collapse button also functions as a Dock Menu button. +bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_node) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize)); + bool is_clipped = !ItemAdd(bb, id); + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_None); + if (is_clipped) + return pressed; + + // Render + //bool is_dock_menu = (window->DockNodeAsHost && !window->Collapsed); + ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + ImU32 text_col = GetColorU32(ImGuiCol_Text); + if (hovered || held) + window->DrawList->AddCircleFilled(bb.GetCenter() + ImVec2(0.0f, -0.5f), g.FontSize * 0.5f + 1.0f, bg_col); + + if (dock_node) + RenderArrowDockMenu(window->DrawList, bb.Min, g.FontSize, text_col); + else + RenderArrow(window->DrawList, bb.Min, text_col, window->Collapsed ? ImGuiDir_Right : ImGuiDir_Down, 1.0f); + + // Switch to moving the window after mouse is moved beyond the initial drag threshold + if (IsItemActive() && IsMouseDragging(0)) + StartMouseMovingWindowOrNode(window, dock_node, true); // Undock from window/collapse menu button + + return pressed; +} + +ImGuiID ImGui::GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis) +{ + return window->GetID(axis == ImGuiAxis_X ? "#SCROLLX" : "#SCROLLY"); +} + +// Return scrollbar rectangle, must only be called for corresponding axis if window->ScrollbarX/Y is set. +ImRect ImGui::GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis) +{ + const ImRect outer_rect = window->Rect(); + const ImRect inner_rect = window->InnerRect; + const float border_size = window->WindowBorderSize; + const float scrollbar_size = window->ScrollbarSizes[axis ^ 1]; // (ScrollbarSizes.x = width of Y scrollbar; ScrollbarSizes.y = height of X scrollbar) + IM_ASSERT(scrollbar_size > 0.0f); + if (axis == ImGuiAxis_X) + return ImRect(inner_rect.Min.x, ImMax(outer_rect.Min.y, outer_rect.Max.y - border_size - scrollbar_size), inner_rect.Max.x - border_size, outer_rect.Max.y - border_size); + else + return ImRect(ImMax(outer_rect.Min.x, outer_rect.Max.x - border_size - scrollbar_size), inner_rect.Min.y, outer_rect.Max.x - border_size, inner_rect.Max.y - border_size); +} + +void ImGui::Scrollbar(ImGuiAxis axis) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = GetWindowScrollbarID(window, axis); + + // Calculate scrollbar bounding box + ImRect bb = GetWindowScrollbarRect(window, axis); + ImDrawFlags rounding_corners = ImDrawFlags_RoundCornersNone; + if (axis == ImGuiAxis_X) + { + rounding_corners |= ImDrawFlags_RoundCornersBottomLeft; + if (!window->ScrollbarY) + rounding_corners |= ImDrawFlags_RoundCornersBottomRight; + } + else + { + if ((window->Flags & ImGuiWindowFlags_NoTitleBar) && !(window->Flags & ImGuiWindowFlags_MenuBar)) + rounding_corners |= ImDrawFlags_RoundCornersTopRight; + if (!window->ScrollbarX) + rounding_corners |= ImDrawFlags_RoundCornersBottomRight; + } + float size_avail = window->InnerRect.Max[axis] - window->InnerRect.Min[axis]; + float size_contents = window->ContentSize[axis] + window->WindowPadding[axis] * 2.0f; + ImS64 scroll = (ImS64)window->Scroll[axis]; + ScrollbarEx(bb, id, axis, &scroll, (ImS64)size_avail, (ImS64)size_contents, rounding_corners); + window->Scroll[axis] = (float)scroll; +} + +// Vertical/Horizontal scrollbar +// The entire piece of code below is rather confusing because: +// - We handle absolute seeking (when first clicking outside the grab) and relative manipulation (afterward or when clicking inside the grab) +// - We store values as normalized ratio and in a form that allows the window content to change while we are holding on a scrollbar +// - We handle both horizontal and vertical scrollbars, which makes the terminology not ideal. +// Still, the code should probably be made simpler.. +bool ImGui::ScrollbarEx(const ImRect& bb_frame, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 size_avail_v, ImS64 size_contents_v, ImDrawFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + const float bb_frame_width = bb_frame.GetWidth(); + const float bb_frame_height = bb_frame.GetHeight(); + if (bb_frame_width <= 0.0f || bb_frame_height <= 0.0f) + return false; + + // When we are too small, start hiding and disabling the grab (this reduce visual noise on very small window and facilitate using the window resize grab) + float alpha = 1.0f; + if ((axis == ImGuiAxis_Y) && bb_frame_height < g.FontSize + g.Style.FramePadding.y * 2.0f) + alpha = ImSaturate((bb_frame_height - g.FontSize) / (g.Style.FramePadding.y * 2.0f)); + if (alpha <= 0.0f) + return false; + + const ImGuiStyle& style = g.Style; + const bool allow_interaction = (alpha >= 1.0f); + + ImRect bb = bb_frame; + bb.Expand(ImVec2(-ImClamp(IM_TRUNC((bb_frame_width - 2.0f) * 0.5f), 0.0f, 3.0f), -ImClamp(IM_TRUNC((bb_frame_height - 2.0f) * 0.5f), 0.0f, 3.0f))); + + // V denote the main, longer axis of the scrollbar (= height for a vertical scrollbar) + const float scrollbar_size_v = (axis == ImGuiAxis_X) ? bb.GetWidth() : bb.GetHeight(); + + // Calculate the height of our grabbable box. It generally represent the amount visible (vs the total scrollable amount) + // But we maintain a minimum size in pixel to allow for the user to still aim inside. + IM_ASSERT(ImMax(size_contents_v, size_avail_v) > 0.0f); // Adding this assert to check if the ImMax(XXX,1.0f) is still needed. PLEASE CONTACT ME if this triggers. + const ImS64 win_size_v = ImMax(ImMax(size_contents_v, size_avail_v), (ImS64)1); + const float grab_h_pixels = ImClamp(scrollbar_size_v * ((float)size_avail_v / (float)win_size_v), style.GrabMinSize, scrollbar_size_v); + const float grab_h_norm = grab_h_pixels / scrollbar_size_v; + + // Handle input right away. None of the code of Begin() is relying on scrolling position before calling Scrollbar(). + bool held = false; + bool hovered = false; + ItemAdd(bb_frame, id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_NoNavFocus); + + const ImS64 scroll_max = ImMax((ImS64)1, size_contents_v - size_avail_v); + float scroll_ratio = ImSaturate((float)*p_scroll_v / (float)scroll_max); + float grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; // Grab position in normalized space + if (held && allow_interaction && grab_h_norm < 1.0f) + { + const float scrollbar_pos_v = bb.Min[axis]; + const float mouse_pos_v = g.IO.MousePos[axis]; + + // Click position in scrollbar normalized space (0.0f->1.0f) + const float clicked_v_norm = ImSaturate((mouse_pos_v - scrollbar_pos_v) / scrollbar_size_v); + SetHoveredID(id); + + bool seek_absolute = false; + if (g.ActiveIdIsJustActivated) + { + // On initial click calculate the distance between mouse and the center of the grab + seek_absolute = (clicked_v_norm < grab_v_norm || clicked_v_norm > grab_v_norm + grab_h_norm); + if (seek_absolute) + g.ScrollbarClickDeltaToGrabCenter = 0.0f; + else + g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; + } + + // Apply scroll (p_scroll_v will generally point on one member of window->Scroll) + // It is ok to modify Scroll here because we are being called in Begin() after the calculation of ContentSize and before setting up our starting position + const float scroll_v_norm = ImSaturate((clicked_v_norm - g.ScrollbarClickDeltaToGrabCenter - grab_h_norm * 0.5f) / (1.0f - grab_h_norm)); + *p_scroll_v = (ImS64)(scroll_v_norm * scroll_max); + + // Update values for rendering + scroll_ratio = ImSaturate((float)*p_scroll_v / (float)scroll_max); + grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; + + // Update distance to grab now that we have seeked and saturated + if (seek_absolute) + g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; + } + + // Render + const ImU32 bg_col = GetColorU32(ImGuiCol_ScrollbarBg); + const ImU32 grab_col = GetColorU32(held ? ImGuiCol_ScrollbarGrabActive : hovered ? ImGuiCol_ScrollbarGrabHovered : ImGuiCol_ScrollbarGrab, alpha); + window->DrawList->AddRectFilled(bb_frame.Min, bb_frame.Max, bg_col, window->WindowRounding, flags); + ImRect grab_rect; + if (axis == ImGuiAxis_X) + grab_rect = ImRect(ImLerp(bb.Min.x, bb.Max.x, grab_v_norm), bb.Min.y, ImLerp(bb.Min.x, bb.Max.x, grab_v_norm) + grab_h_pixels, bb.Max.y); + else + grab_rect = ImRect(bb.Min.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm), bb.Max.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm) + grab_h_pixels); + window->DrawList->AddRectFilled(grab_rect.Min, grab_rect.Max, grab_col, style.ScrollbarRounding); + + return held; +} + +void ImGui::Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImVec4& border_col) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + if (border_col.w > 0.0f) + bb.Max += ImVec2(2, 2); + ItemSize(bb); + if (!ItemAdd(bb, 0)) + return; + + if (border_col.w > 0.0f) + { + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(border_col), 0.0f); + window->DrawList->AddImage(user_texture_id, bb.Min + ImVec2(1, 1), bb.Max - ImVec2(1, 1), uv0, uv1, GetColorU32(tint_col)); + } + else + { + window->DrawList->AddImage(user_texture_id, bb.Min, bb.Max, uv0, uv1, GetColorU32(tint_col)); + } +} + +// ImageButton() is flawed as 'id' is always derived from 'texture_id' (see #2464 #1390) +// We provide this internal helper to write your own variant while we figure out how to redesign the public ImageButton() API. +bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& image_size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImVec2 padding = g.Style.FramePadding; + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + image_size + padding * 2.0f); + ItemSize(bb); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, col, true, ImClamp((float)ImMin(padding.x, padding.y), 0.0f, g.Style.FrameRounding)); + if (bg_col.w > 0.0f) + window->DrawList->AddRectFilled(bb.Min + padding, bb.Max - padding, GetColorU32(bg_col)); + window->DrawList->AddImage(texture_id, bb.Min + padding, bb.Max - padding, uv0, uv1, GetColorU32(tint_col)); + + return pressed; +} + +// Note that ImageButton() adds style.FramePadding*2.0f to provided size. This is in order to facilitate fitting an image in a button. +bool ImGui::ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& image_size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + return ImageButtonEx(window->GetID(str_id), user_texture_id, image_size, uv0, uv1, bg_col, tint_col); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Legacy API obsoleted in 1.89. Two differences with new ImageButton() +// - new ImageButton() requires an explicit 'const char* str_id' Old ImageButton() used opaque imTextureId (created issue with: multiple buttons with same image, transient texture id values, opaque computation of ID) +// - new ImageButton() always use style.FramePadding Old ImageButton() had an override argument. +// If you need to change padding with new ImageButton() you can use PushStyleVar(ImGuiStyleVar_FramePadding, value), consistent with other Button functions. +bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, int frame_padding, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + // Default to using texture ID as ID. User can still push string/integer prefixes. + PushID((void*)(intptr_t)user_texture_id); + const ImGuiID id = window->GetID("#image"); + PopID(); + + if (frame_padding >= 0) + PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2((float)frame_padding, (float)frame_padding)); + bool ret = ImageButtonEx(id, user_texture_id, size, uv0, uv1, bg_col, tint_col); + if (frame_padding >= 0) + PopStyleVar(); + return ret; +} +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +bool ImGui::Checkbox(const char* label, bool* v) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const float square_sz = GetFrameHeight(); + const ImVec2 pos = window->DC.CursorPos; + const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id)) + { + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (*v ? ImGuiItemStatusFlags_Checked : 0)); + return false; + } + + bool hovered, held; + bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); + if (pressed) + { + *v = !(*v); + MarkItemEdited(id); + } + + const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); + RenderNavHighlight(total_bb, id); + RenderFrame(check_bb.Min, check_bb.Max, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), true, style.FrameRounding); + ImU32 check_col = GetColorU32(ImGuiCol_CheckMark); + bool mixed_value = (g.LastItemData.InFlags & ImGuiItemFlags_MixedValue) != 0; + if (mixed_value) + { + // Undocumented tristate/mixed/indeterminate checkbox (#2644) + // This may seem awkwardly designed because the aim is to make ImGuiItemFlags_MixedValue supported by all widgets (not just checkbox) + ImVec2 pad(ImMax(1.0f, IM_TRUNC(square_sz / 3.6f)), ImMax(1.0f, IM_TRUNC(square_sz / 3.6f))); + window->DrawList->AddRectFilled(check_bb.Min + pad, check_bb.Max - pad, check_col, style.FrameRounding); + } + else if (*v) + { + const float pad = ImMax(1.0f, IM_TRUNC(square_sz / 6.0f)); + RenderCheckMark(window->DrawList, check_bb.Min + ImVec2(pad, pad), check_col, square_sz - pad * 2.0f); + } + + ImVec2 label_pos = ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y); + if (g.LogEnabled) + LogRenderedText(&label_pos, mixed_value ? "[~]" : *v ? "[x]" : "[ ]"); + if (label_size.x > 0.0f) + RenderText(label_pos, label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (*v ? ImGuiItemStatusFlags_Checked : 0)); + return pressed; +} + +template +bool ImGui::CheckboxFlagsT(const char* label, T* flags, T flags_value) +{ + bool all_on = (*flags & flags_value) == flags_value; + bool any_on = (*flags & flags_value) != 0; + bool pressed; + if (!all_on && any_on) + { + ImGuiContext& g = *GImGui; + g.NextItemData.ItemFlags |= ImGuiItemFlags_MixedValue; + pressed = Checkbox(label, &all_on); + } + else + { + pressed = Checkbox(label, &all_on); + + } + if (pressed) + { + if (all_on) + *flags |= flags_value; + else + *flags &= ~flags_value; + } + return pressed; +} + +bool ImGui::CheckboxFlags(const char* label, int* flags, int flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::RadioButton(const char* label, bool active) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const float square_sz = GetFrameHeight(); + const ImVec2 pos = window->DC.CursorPos; + const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); + const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id)) + return false; + + ImVec2 center = check_bb.GetCenter(); + center.x = IM_ROUND(center.x); + center.y = IM_ROUND(center.y); + const float radius = (square_sz - 1.0f) * 0.5f; + + bool hovered, held; + bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); + if (pressed) + MarkItemEdited(id); + + RenderNavHighlight(total_bb, id); + const int num_segment = window->DrawList->_CalcCircleAutoSegmentCount(radius); + window->DrawList->AddCircleFilled(center, radius, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), num_segment); + if (active) + { + const float pad = ImMax(1.0f, IM_TRUNC(square_sz / 6.0f)); + window->DrawList->AddCircleFilled(center, radius - pad, GetColorU32(ImGuiCol_CheckMark)); + } + + if (style.FrameBorderSize > 0.0f) + { + window->DrawList->AddCircle(center + ImVec2(1, 1), radius, GetColorU32(ImGuiCol_BorderShadow), num_segment, style.FrameBorderSize); + window->DrawList->AddCircle(center, radius, GetColorU32(ImGuiCol_Border), num_segment, style.FrameBorderSize); + } + + ImVec2 label_pos = ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y); + if (g.LogEnabled) + LogRenderedText(&label_pos, active ? "(x)" : "( )"); + if (label_size.x > 0.0f) + RenderText(label_pos, label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; +} + +// FIXME: This would work nicely if it was a public template, e.g. 'template RadioButton(const char* label, T* v, T v_button)', but I'm not sure how we would expose it.. +bool ImGui::RadioButton(const char* label, int* v, int v_button) +{ + const bool pressed = RadioButton(label, *v == v_button); + if (pressed) + *v = v_button; + return pressed; +} + +// size_arg (for each axis) < 0.0f: align to end, 0.0f: auto, > 0.0f: specified size +void ImGui::ProgressBar(float fraction, const ImVec2& size_arg, const char* overlay) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + ImVec2 pos = window->DC.CursorPos; + ImVec2 size = CalcItemSize(size_arg, CalcItemWidth(), g.FontSize + style.FramePadding.y * 2.0f); + ImRect bb(pos, pos + size); + ItemSize(size, style.FramePadding.y); + if (!ItemAdd(bb, 0)) + return; + + // Render + fraction = ImSaturate(fraction); + RenderFrame(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + bb.Expand(ImVec2(-style.FrameBorderSize, -style.FrameBorderSize)); + const ImVec2 fill_br = ImVec2(ImLerp(bb.Min.x, bb.Max.x, fraction), bb.Max.y); + RenderRectFilledRangeH(window->DrawList, bb, GetColorU32(ImGuiCol_PlotHistogram), 0.0f, fraction, style.FrameRounding); + + // Default displaying the fraction as percentage string, but user can override it + char overlay_buf[32]; + if (!overlay) + { + ImFormatString(overlay_buf, IM_ARRAYSIZE(overlay_buf), "%.0f%%", fraction * 100 + 0.01f); + overlay = overlay_buf; + } + + ImVec2 overlay_size = CalcTextSize(overlay, NULL); + if (overlay_size.x > 0.0f) + RenderTextClipped(ImVec2(ImClamp(fill_br.x + style.ItemSpacing.x, bb.Min.x, bb.Max.x - overlay_size.x - style.ItemInnerSpacing.x), bb.Min.y), bb.Max, overlay, NULL, &overlay_size, ImVec2(0.0f, 0.5f), &bb); +} + +void ImGui::Bullet() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), g.FontSize); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize, line_height)); + ItemSize(bb); + if (!ItemAdd(bb, 0)) + { + SameLine(0, style.FramePadding.x * 2); + return; + } + + // Render and stay on same line + ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, line_height * 0.5f), text_col); + SameLine(0, style.FramePadding.x * 2.0f); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Low-level Layout helpers +//------------------------------------------------------------------------- +// - Spacing() +// - Dummy() +// - NewLine() +// - AlignTextToFramePadding() +// - SeparatorEx() [Internal] +// - Separator() +// - SplitterBehavior() [Internal] +// - ShrinkWidths() [Internal] +//------------------------------------------------------------------------- + +void ImGui::Spacing() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ItemSize(ImVec2(0, 0)); +} + +void ImGui::Dummy(const ImVec2& size) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(size); + ItemAdd(bb, 0); +} + +void ImGui::NewLine() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiLayoutType backup_layout_type = window->DC.LayoutType; + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; + if (window->DC.CurrLineSize.y > 0.0f) // In the event that we are on a line with items that is smaller that FontSize high, we will preserve its height. + ItemSize(ImVec2(0, 0)); + else + ItemSize(ImVec2(0.0f, g.FontSize)); + window->DC.LayoutType = backup_layout_type; +} + +void ImGui::AlignTextToFramePadding() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + window->DC.CurrLineSize.y = ImMax(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2); + window->DC.CurrLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, g.Style.FramePadding.y); +} + +// Horizontal/vertical separating line +// FIXME: Surprisingly, this seemingly trivial widget is a victim of many different legacy/tricky layout issues. +// Note how thickness == 1.0f is handled specifically as not moving CursorPos by 'thickness', but other values are. +void ImGui::SeparatorEx(ImGuiSeparatorFlags flags, float thickness) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + IM_ASSERT(ImIsPowerOfTwo(flags & (ImGuiSeparatorFlags_Horizontal | ImGuiSeparatorFlags_Vertical))); // Check that only 1 option is selected + IM_ASSERT(thickness > 0.0f); + + if (flags & ImGuiSeparatorFlags_Vertical) + { + // Vertical separator, for menu bars (use current line height). + float y1 = window->DC.CursorPos.y; + float y2 = window->DC.CursorPos.y + window->DC.CurrLineSize.y; + const ImRect bb(ImVec2(window->DC.CursorPos.x, y1), ImVec2(window->DC.CursorPos.x + thickness, y2)); + ItemSize(ImVec2(thickness, 0.0f)); + if (!ItemAdd(bb, 0)) + return; + + // Draw + window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_Separator)); + if (g.LogEnabled) + LogText(" |"); + } + else if (flags & ImGuiSeparatorFlags_Horizontal) + { + // Horizontal Separator + float x1 = window->DC.CursorPos.x; + float x2 = window->WorkRect.Max.x; + + // Preserve legacy behavior inside Columns() + // Before Tables API happened, we relied on Separator() to span all columns of a Columns() set. + // We currently don't need to provide the same feature for tables because tables naturally have border features. + ImGuiOldColumns* columns = (flags & ImGuiSeparatorFlags_SpanAllColumns) ? window->DC.CurrentColumns : NULL; + if (columns) + { + x1 = window->Pos.x + window->DC.Indent.x; // Used to be Pos.x before 2023/10/03 + x2 = window->Pos.x + window->Size.x; + PushColumnsBackground(); + } + + // We don't provide our width to the layout so that it doesn't get feed back into AutoFit + // FIXME: This prevents ->CursorMaxPos based bounding box evaluation from working (e.g. TableEndCell) + const float thickness_for_layout = (thickness == 1.0f) ? 0.0f : thickness; // FIXME: See 1.70/1.71 Separator() change: makes legacy 1-px separator not affect layout yet. Should change. + const ImRect bb(ImVec2(x1, window->DC.CursorPos.y), ImVec2(x2, window->DC.CursorPos.y + thickness)); + ItemSize(ImVec2(0.0f, thickness_for_layout)); + + if (ItemAdd(bb, 0)) + { + // Draw + window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_Separator)); + if (g.LogEnabled) + LogRenderedText(&bb.Min, "--------------------------------\n"); + + } + if (columns) + { + PopColumnsBackground(); + columns->LineMinY = window->DC.CursorPos.y; + } + } +} + +void ImGui::Separator() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + // Those flags should eventually be configurable by the user + // FIXME: We cannot g.Style.SeparatorTextBorderSize for thickness as it relates to SeparatorText() which is a decorated separator, not defaulting to 1.0f. + ImGuiSeparatorFlags flags = (window->DC.LayoutType == ImGuiLayoutType_Horizontal) ? ImGuiSeparatorFlags_Vertical : ImGuiSeparatorFlags_Horizontal; + + // Only applies to legacy Columns() api as they relied on Separator() a lot. + if (window->DC.CurrentColumns) + flags |= ImGuiSeparatorFlags_SpanAllColumns; + + SeparatorEx(flags, 1.0f); +} + +void ImGui::SeparatorTextEx(ImGuiID id, const char* label, const char* label_end, float extra_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiStyle& style = g.Style; + + const ImVec2 label_size = CalcTextSize(label, label_end, false); + const ImVec2 pos = window->DC.CursorPos; + const ImVec2 padding = style.SeparatorTextPadding; + + const float separator_thickness = style.SeparatorTextBorderSize; + const ImVec2 min_size(label_size.x + extra_w + padding.x * 2.0f, ImMax(label_size.y + padding.y * 2.0f, separator_thickness)); + const ImRect bb(pos, ImVec2(window->WorkRect.Max.x, pos.y + min_size.y)); + const float text_baseline_y = ImTrunc((bb.GetHeight() - label_size.y) * style.SeparatorTextAlign.y + 0.99999f); //ImMax(padding.y, ImTrunc((style.SeparatorTextSize - label_size.y) * 0.5f)); + ItemSize(min_size, text_baseline_y); + if (!ItemAdd(bb, id)) + return; + + const float sep1_x1 = pos.x; + const float sep2_x2 = bb.Max.x; + const float seps_y = ImTrunc((bb.Min.y + bb.Max.y) * 0.5f + 0.99999f); + + const float label_avail_w = ImMax(0.0f, sep2_x2 - sep1_x1 - padding.x * 2.0f); + const ImVec2 label_pos(pos.x + padding.x + ImMax(0.0f, (label_avail_w - label_size.x - extra_w) * style.SeparatorTextAlign.x), pos.y + text_baseline_y); // FIXME-ALIGN + + // This allows using SameLine() to position something in the 'extra_w' + window->DC.CursorPosPrevLine.x = label_pos.x + label_size.x; + + const ImU32 separator_col = GetColorU32(ImGuiCol_Separator); + if (label_size.x > 0.0f) + { + const float sep1_x2 = label_pos.x - style.ItemSpacing.x; + const float sep2_x1 = label_pos.x + label_size.x + extra_w + style.ItemSpacing.x; + if (sep1_x2 > sep1_x1 && separator_thickness > 0.0f) + window->DrawList->AddLine(ImVec2(sep1_x1, seps_y), ImVec2(sep1_x2, seps_y), separator_col, separator_thickness); + if (sep2_x2 > sep2_x1 && separator_thickness > 0.0f) + window->DrawList->AddLine(ImVec2(sep2_x1, seps_y), ImVec2(sep2_x2, seps_y), separator_col, separator_thickness); + if (g.LogEnabled) + LogSetNextTextDecoration("---", NULL); + RenderTextEllipsis(window->DrawList, label_pos, ImVec2(bb.Max.x, bb.Max.y + style.ItemSpacing.y), bb.Max.x, bb.Max.x, label, label_end, &label_size); + } + else + { + if (g.LogEnabled) + LogText("---"); + if (separator_thickness > 0.0f) + window->DrawList->AddLine(ImVec2(sep1_x1, seps_y), ImVec2(sep2_x2, seps_y), separator_col, separator_thickness); + } +} + +void ImGui::SeparatorText(const char* label) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + // The SeparatorText() vs SeparatorTextEx() distinction is designed to be considerate that we may want: + // - allow separator-text to be draggable items (would require a stable ID + a noticeable highlight) + // - this high-level entry point to allow formatting? (which in turns may require ID separate from formatted string) + // - because of this we probably can't turn 'const char* label' into 'const char* fmt, ...' + // Otherwise, we can decide that users wanting to drag this would layout a dedicated drag-item, + // and then we can turn this into a format function. + SeparatorTextEx(0, label, FindRenderedTextEnd(label), 0.0f); +} + +// Using 'hover_visibility_delay' allows us to hide the highlight and mouse cursor for a short time, which can be convenient to reduce visual noise. +bool ImGui::SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend, float hover_visibility_delay, ImU32 bg_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (!ItemAdd(bb, id, NULL, ImGuiItemFlags_NoNav)) + return false; + + // FIXME: AFAIK the only leftover reason for passing ImGuiButtonFlags_AllowOverlap here is + // to allow caller of SplitterBehavior() to call SetItemAllowOverlap() after the item. + // Nowadays we would instead want to use SetNextItemAllowOverlap() before the item. + ImGuiButtonFlags button_flags = ImGuiButtonFlags_FlattenChildren; +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + button_flags |= ImGuiButtonFlags_AllowOverlap; +#endif + + bool hovered, held; + ImRect bb_interact = bb; + bb_interact.Expand(axis == ImGuiAxis_Y ? ImVec2(0.0f, hover_extend) : ImVec2(hover_extend, 0.0f)); + ButtonBehavior(bb_interact, id, &hovered, &held, button_flags); + if (hovered) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredRect; // for IsItemHovered(), because bb_interact is larger than bb + + if (held || (hovered && g.HoveredIdPreviousFrame == id && g.HoveredIdTimer >= hover_visibility_delay)) + SetMouseCursor(axis == ImGuiAxis_Y ? ImGuiMouseCursor_ResizeNS : ImGuiMouseCursor_ResizeEW); + + ImRect bb_render = bb; + if (held) + { + ImVec2 mouse_delta_2d = g.IO.MousePos - g.ActiveIdClickOffset - bb_interact.Min; + float mouse_delta = (axis == ImGuiAxis_Y) ? mouse_delta_2d.y : mouse_delta_2d.x; + + // Minimum pane size + float size_1_maximum_delta = ImMax(0.0f, *size1 - min_size1); + float size_2_maximum_delta = ImMax(0.0f, *size2 - min_size2); + if (mouse_delta < -size_1_maximum_delta) + mouse_delta = -size_1_maximum_delta; + if (mouse_delta > size_2_maximum_delta) + mouse_delta = size_2_maximum_delta; + + // Apply resize + if (mouse_delta != 0.0f) + { + if (mouse_delta < 0.0f) + IM_ASSERT(*size1 + mouse_delta >= min_size1); + if (mouse_delta > 0.0f) + IM_ASSERT(*size2 - mouse_delta >= min_size2); + *size1 += mouse_delta; + *size2 -= mouse_delta; + bb_render.Translate((axis == ImGuiAxis_X) ? ImVec2(mouse_delta, 0.0f) : ImVec2(0.0f, mouse_delta)); + MarkItemEdited(id); + } + } + + // Render at new position + if (bg_col & IM_COL32_A_MASK) + window->DrawList->AddRectFilled(bb_render.Min, bb_render.Max, bg_col, 0.0f); + const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : (hovered && g.HoveredIdTimer >= hover_visibility_delay) ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); + window->DrawList->AddRectFilled(bb_render.Min, bb_render.Max, col, 0.0f); + + return held; +} + +static int IMGUI_CDECL ShrinkWidthItemComparer(const void* lhs, const void* rhs) +{ + const ImGuiShrinkWidthItem* a = (const ImGuiShrinkWidthItem*)lhs; + const ImGuiShrinkWidthItem* b = (const ImGuiShrinkWidthItem*)rhs; + if (int d = (int)(b->Width - a->Width)) + return d; + return (b->Index - a->Index); +} + +// Shrink excess width from a set of item, by removing width from the larger items first. +// Set items Width to -1.0f to disable shrinking this item. +void ImGui::ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess) +{ + if (count == 1) + { + if (items[0].Width >= 0.0f) + items[0].Width = ImMax(items[0].Width - width_excess, 1.0f); + return; + } + ImQsort(items, (size_t)count, sizeof(ImGuiShrinkWidthItem), ShrinkWidthItemComparer); + int count_same_width = 1; + while (width_excess > 0.0f && count_same_width < count) + { + while (count_same_width < count && items[0].Width <= items[count_same_width].Width) + count_same_width++; + float max_width_to_remove_per_item = (count_same_width < count && items[count_same_width].Width >= 0.0f) ? (items[0].Width - items[count_same_width].Width) : (items[0].Width - 1.0f); + if (max_width_to_remove_per_item <= 0.0f) + break; + float width_to_remove_per_item = ImMin(width_excess / count_same_width, max_width_to_remove_per_item); + for (int item_n = 0; item_n < count_same_width; item_n++) + items[item_n].Width -= width_to_remove_per_item; + width_excess -= width_to_remove_per_item * count_same_width; + } + + // Round width and redistribute remainder + // Ensure that e.g. the right-most tab of a shrunk tab-bar always reaches exactly at the same distance from the right-most edge of the tab bar separator. + width_excess = 0.0f; + for (int n = 0; n < count; n++) + { + float width_rounded = ImTrunc(items[n].Width); + width_excess += items[n].Width - width_rounded; + items[n].Width = width_rounded; + } + while (width_excess > 0.0f) + for (int n = 0; n < count && width_excess > 0.0f; n++) + { + float width_to_add = ImMin(items[n].InitialWidth - items[n].Width, 1.0f); + items[n].Width += width_to_add; + width_excess -= width_to_add; + } +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ComboBox +//------------------------------------------------------------------------- +// - CalcMaxPopupHeightFromItemCount() [Internal] +// - BeginCombo() +// - BeginComboPopup() [Internal] +// - EndCombo() +// - BeginComboPreview() [Internal] +// - EndComboPreview() [Internal] +// - Combo() +//------------------------------------------------------------------------- + +static float CalcMaxPopupHeightFromItemCount(int items_count) +{ + ImGuiContext& g = *GImGui; + if (items_count <= 0) + return FLT_MAX; + return (g.FontSize + g.Style.ItemSpacing.y) * items_count - g.Style.ItemSpacing.y + (g.Style.WindowPadding.y * 2); +} + +bool ImGui::BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + ImGuiNextWindowDataFlags backup_next_window_data_flags = g.NextWindowData.Flags; + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + IM_ASSERT((flags & (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)) != (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)); // Can't use both flags together + if (flags & ImGuiComboFlags_WidthFitPreview) + IM_ASSERT((flags & (ImGuiComboFlags_NoPreview | ImGuiComboFlags_CustomPreview)) == 0); + + const float arrow_size = (flags & ImGuiComboFlags_NoArrowButton) ? 0.0f : GetFrameHeight(); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const float preview_width = ((flags & ImGuiComboFlags_WidthFitPreview) && (preview_value != NULL)) ? CalcTextSize(preview_value, NULL, true).x : 0.0f; + const float w = (flags & ImGuiComboFlags_NoPreview) ? arrow_size : ((flags & ImGuiComboFlags_WidthFitPreview) ? (arrow_size + preview_width + style.FramePadding.x * 2.0f) : CalcItemWidth()); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(bb.Min, bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &bb)) + return false; + + // Open on click + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + const ImGuiID popup_id = ImHashStr("##ComboPopup", 0, id); + bool popup_open = IsPopupOpen(popup_id, ImGuiPopupFlags_None); + if (pressed && !popup_open) + { + OpenPopupEx(popup_id, ImGuiPopupFlags_None); + popup_open = true; + } + + // Render shape + const ImU32 frame_col = GetColorU32(hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + const float value_x2 = ImMax(bb.Min.x, bb.Max.x - arrow_size); + RenderNavHighlight(bb, id); + if (!(flags & ImGuiComboFlags_NoPreview)) + window->DrawList->AddRectFilled(bb.Min, ImVec2(value_x2, bb.Max.y), frame_col, style.FrameRounding, (flags & ImGuiComboFlags_NoArrowButton) ? ImDrawFlags_RoundCornersAll : ImDrawFlags_RoundCornersLeft); + if (!(flags & ImGuiComboFlags_NoArrowButton)) + { + ImU32 bg_col = GetColorU32((popup_open || hovered) ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + ImU32 text_col = GetColorU32(ImGuiCol_Text); + window->DrawList->AddRectFilled(ImVec2(value_x2, bb.Min.y), bb.Max, bg_col, style.FrameRounding, (w <= arrow_size) ? ImDrawFlags_RoundCornersAll : ImDrawFlags_RoundCornersRight); + if (value_x2 + arrow_size - style.FramePadding.x <= bb.Max.x) + RenderArrow(window->DrawList, ImVec2(value_x2 + style.FramePadding.y, bb.Min.y + style.FramePadding.y), text_col, ImGuiDir_Down, 1.0f); + } + RenderFrameBorder(bb.Min, bb.Max, style.FrameRounding); + + // Custom preview + if (flags & ImGuiComboFlags_CustomPreview) + { + g.ComboPreviewData.PreviewRect = ImRect(bb.Min.x, bb.Min.y, value_x2, bb.Max.y); + IM_ASSERT(preview_value == NULL || preview_value[0] == 0); + preview_value = NULL; + } + + // Render preview and label + if (preview_value != NULL && !(flags & ImGuiComboFlags_NoPreview)) + { + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(bb.Min + style.FramePadding, ImVec2(value_x2, bb.Max.y), preview_value, NULL, NULL); + } + if (label_size.x > 0) + RenderText(ImVec2(bb.Max.x + style.ItemInnerSpacing.x, bb.Min.y + style.FramePadding.y), label); + + if (!popup_open) + return false; + + g.NextWindowData.Flags = backup_next_window_data_flags; + return BeginComboPopup(popup_id, bb, flags); +} + +bool ImGui::BeginComboPopup(ImGuiID popup_id, const ImRect& bb, ImGuiComboFlags flags) +{ + ImGuiContext& g = *GImGui; + if (!IsPopupOpen(popup_id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); + return false; + } + + // Set popup size + float w = bb.GetWidth(); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) + { + g.NextWindowData.SizeConstraintRect.Min.x = ImMax(g.NextWindowData.SizeConstraintRect.Min.x, w); + } + else + { + if ((flags & ImGuiComboFlags_HeightMask_) == 0) + flags |= ImGuiComboFlags_HeightRegular; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiComboFlags_HeightMask_)); // Only one + int popup_max_height_in_items = -1; + if (flags & ImGuiComboFlags_HeightRegular) popup_max_height_in_items = 8; + else if (flags & ImGuiComboFlags_HeightSmall) popup_max_height_in_items = 4; + else if (flags & ImGuiComboFlags_HeightLarge) popup_max_height_in_items = 20; + ImVec2 constraint_min(0.0f, 0.0f), constraint_max(FLT_MAX, FLT_MAX); + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize) == 0 || g.NextWindowData.SizeVal.x <= 0.0f) // Don't apply constraints if user specified a size + constraint_min.x = w; + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize) == 0 || g.NextWindowData.SizeVal.y <= 0.0f) + constraint_max.y = CalcMaxPopupHeightFromItemCount(popup_max_height_in_items); + SetNextWindowSizeConstraints(constraint_min, constraint_max); + } + + // This is essentially a specialized version of BeginPopupEx() + char name[16]; + ImFormatString(name, IM_ARRAYSIZE(name), "##Combo_%02d", g.BeginPopupStack.Size); // Recycle windows based on depth + + // Set position given a custom constraint (peak into expected window size so we can position it) + // FIXME: This might be easier to express with an hypothetical SetNextWindowPosConstraints() function? + // FIXME: This might be moved to Begin() or at least around the same spot where Tooltips and other Popups are calling FindBestWindowPosForPopupEx()? + if (ImGuiWindow* popup_window = FindWindowByName(name)) + if (popup_window->WasActive) + { + // Always override 'AutoPosLastDirection' to not leave a chance for a past value to affect us. + ImVec2 size_expected = CalcWindowNextAutoFitSize(popup_window); + popup_window->AutoPosLastDirection = (flags & ImGuiComboFlags_PopupAlignLeft) ? ImGuiDir_Left : ImGuiDir_Down; // Left = "Below, Toward Left", Down = "Below, Toward Right (default)" + ImRect r_outer = GetPopupAllowedExtentRect(popup_window); + ImVec2 pos = FindBestWindowPosForPopupEx(bb.GetBL(), size_expected, &popup_window->AutoPosLastDirection, r_outer, bb, ImGuiPopupPositionPolicy_ComboBox); + SetNextWindowPos(pos); + } + + // We don't use BeginPopupEx() solely because we have a custom name string, which we could make an argument to BeginPopupEx() + ImGuiWindowFlags window_flags = ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoMove; + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(g.Style.FramePadding.x, g.Style.WindowPadding.y)); // Horizontally align ourselves with the framed text + bool ret = Begin(name, NULL, window_flags); + PopStyleVar(); + if (!ret) + { + EndPopup(); + IM_ASSERT(0); // This should never happen as we tested for IsPopupOpen() above + return false; + } + return true; +} + +void ImGui::EndCombo() +{ + EndPopup(); +} + +// Call directly after the BeginCombo/EndCombo block. The preview is designed to only host non-interactive elements +// (Experimental, see GitHub issues: #1658, #4168) +bool ImGui::BeginComboPreview() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiComboPreviewData* preview_data = &g.ComboPreviewData; + + if (window->SkipItems || !(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible)) + return false; + IM_ASSERT(g.LastItemData.Rect.Min.x == preview_data->PreviewRect.Min.x && g.LastItemData.Rect.Min.y == preview_data->PreviewRect.Min.y); // Didn't call after BeginCombo/EndCombo block or forgot to pass ImGuiComboFlags_CustomPreview flag? + if (!window->ClipRect.Overlaps(preview_data->PreviewRect)) // Narrower test (optional) + return false; + + // FIXME: This could be contained in a PushWorkRect() api + preview_data->BackupCursorPos = window->DC.CursorPos; + preview_data->BackupCursorMaxPos = window->DC.CursorMaxPos; + preview_data->BackupCursorPosPrevLine = window->DC.CursorPosPrevLine; + preview_data->BackupPrevLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; + preview_data->BackupLayout = window->DC.LayoutType; + window->DC.CursorPos = preview_data->PreviewRect.Min + g.Style.FramePadding; + window->DC.CursorMaxPos = window->DC.CursorPos; + window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; + PushClipRect(preview_data->PreviewRect.Min, preview_data->PreviewRect.Max, true); + + return true; +} + +void ImGui::EndComboPreview() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiComboPreviewData* preview_data = &g.ComboPreviewData; + + // FIXME: Using CursorMaxPos approximation instead of correct AABB which we will store in ImDrawCmd in the future + ImDrawList* draw_list = window->DrawList; + if (window->DC.CursorMaxPos.x < preview_data->PreviewRect.Max.x && window->DC.CursorMaxPos.y < preview_data->PreviewRect.Max.y) + if (draw_list->CmdBuffer.Size > 1) // Unlikely case that the PushClipRect() didn't create a command + { + draw_list->_CmdHeader.ClipRect = draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ClipRect = draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 2].ClipRect; + draw_list->_TryMergeDrawCmds(); + } + PopClipRect(); + window->DC.CursorPos = preview_data->BackupCursorPos; + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, preview_data->BackupCursorMaxPos); + window->DC.CursorPosPrevLine = preview_data->BackupCursorPosPrevLine; + window->DC.PrevLineTextBaseOffset = preview_data->BackupPrevLineTextBaseOffset; + window->DC.LayoutType = preview_data->BackupLayout; + window->DC.IsSameLine = false; + preview_data->PreviewRect = ImRect(); +} + +// Getter for the old Combo() API: const char*[] +static const char* Items_ArrayGetter(void* data, int idx) +{ + const char* const* items = (const char* const*)data; + return items[idx]; +} + +// Getter for the old Combo() API: "item1\0item2\0item3\0" +static const char* Items_SingleStringGetter(void* data, int idx) +{ + const char* items_separated_by_zeros = (const char*)data; + int items_count = 0; + const char* p = items_separated_by_zeros; + while (*p) + { + if (idx == items_count) + break; + p += strlen(p) + 1; + items_count++; + } + return *p ? p : NULL; +} + +// Old API, prefer using BeginCombo() nowadays if you can. +bool ImGui::Combo(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int popup_max_height_in_items) +{ + ImGuiContext& g = *GImGui; + + // Call the getter to obtain the preview string which is a parameter to BeginCombo() + const char* preview_value = NULL; + if (*current_item >= 0 && *current_item < items_count) + preview_value = getter(user_data, *current_item); + + // The old Combo() API exposed "popup_max_height_in_items". The new more general BeginCombo() API doesn't have/need it, but we emulate it here. + if (popup_max_height_in_items != -1 && !(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint)) + SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items))); + + if (!BeginCombo(label, preview_value, ImGuiComboFlags_None)) + return false; + + // Display items + // FIXME-OPT: Use clipper (but we need to disable it on the appearing frame to make sure our call to SetItemDefaultFocus() is processed) + bool value_changed = false; + for (int i = 0; i < items_count; i++) + { + const char* item_text = getter(user_data, i); + if (item_text == NULL) + item_text = "*Unknown item*"; + + PushID(i); + const bool item_selected = (i == *current_item); + if (Selectable(item_text, item_selected) && *current_item != i) + { + value_changed = true; + *current_item = i; + } + if (item_selected) + SetItemDefaultFocus(); + PopID(); + } + + EndCombo(); + + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +// Combo box helper allowing to pass an array of strings. +bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items) +{ + const bool value_changed = Combo(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_in_items); + return value_changed; +} + +// Combo box helper allowing to pass all items in a single string literal holding multiple zero-terminated items "item1\0item2\0" +bool ImGui::Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int height_in_items) +{ + int items_count = 0; + const char* p = items_separated_by_zeros; // FIXME-OPT: Avoid computing this, or at least only when combo is open + while (*p) + { + p += strlen(p) + 1; + items_count++; + } + bool value_changed = Combo(label, current_item, Items_SingleStringGetter, (void*)items_separated_by_zeros, items_count, height_in_items); + return value_changed; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +struct ImGuiGetNameFromIndexOldToNewCallbackData { void* UserData; bool (*OldCallback)(void*, int, const char**); }; +static const char* ImGuiGetNameFromIndexOldToNewCallback(void* user_data, int idx) +{ + ImGuiGetNameFromIndexOldToNewCallbackData* data = (ImGuiGetNameFromIndexOldToNewCallbackData*)user_data; + const char* s = NULL; + data->OldCallback(data->UserData, idx, &s); + return s; +} + +bool ImGui::ListBox(const char* label, int* current_item, bool (*old_getter)(void*, int, const char**), void* user_data, int items_count, int height_in_items) +{ + ImGuiGetNameFromIndexOldToNewCallbackData old_to_new_data = { user_data, old_getter }; + return ListBox(label, current_item, ImGuiGetNameFromIndexOldToNewCallback, &old_to_new_data, items_count, height_in_items); +} +bool ImGui::Combo(const char* label, int* current_item, bool (*old_getter)(void*, int, const char**), void* user_data, int items_count, int popup_max_height_in_items) +{ + ImGuiGetNameFromIndexOldToNewCallbackData old_to_new_data = { user_data, old_getter }; + return Combo(label, current_item, ImGuiGetNameFromIndexOldToNewCallback, &old_to_new_data, items_count, popup_max_height_in_items); +} + +#endif + +//------------------------------------------------------------------------- +// [SECTION] Data Type and Data Formatting Helpers [Internal] +//------------------------------------------------------------------------- +// - DataTypeGetInfo() +// - DataTypeFormatString() +// - DataTypeApplyOp() +// - DataTypeApplyOpFromText() +// - DataTypeCompare() +// - DataTypeClamp() +// - GetMinimumStepAtDecimalPrecision +// - RoundScalarWithFormat<>() +//------------------------------------------------------------------------- + +static const ImGuiDataTypeInfo GDataTypeInfo[] = +{ + { sizeof(char), "S8", "%d", "%d" }, // ImGuiDataType_S8 + { sizeof(unsigned char), "U8", "%u", "%u" }, + { sizeof(short), "S16", "%d", "%d" }, // ImGuiDataType_S16 + { sizeof(unsigned short), "U16", "%u", "%u" }, + { sizeof(int), "S32", "%d", "%d" }, // ImGuiDataType_S32 + { sizeof(unsigned int), "U32", "%u", "%u" }, +#ifdef _MSC_VER + { sizeof(ImS64), "S64", "%I64d","%I64d" }, // ImGuiDataType_S64 + { sizeof(ImU64), "U64", "%I64u","%I64u" }, +#else + { sizeof(ImS64), "S64", "%lld", "%lld" }, // ImGuiDataType_S64 + { sizeof(ImU64), "U64", "%llu", "%llu" }, +#endif + { sizeof(float), "float", "%.3f","%f" }, // ImGuiDataType_Float (float are promoted to double in va_arg) + { sizeof(double), "double","%f", "%lf" }, // ImGuiDataType_Double +}; +IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT); + +const ImGuiDataTypeInfo* ImGui::DataTypeGetInfo(ImGuiDataType data_type) +{ + IM_ASSERT(data_type >= 0 && data_type < ImGuiDataType_COUNT); + return &GDataTypeInfo[data_type]; +} + +int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format) +{ + // Signedness doesn't matter when pushing integer arguments + if (data_type == ImGuiDataType_S32 || data_type == ImGuiDataType_U32) + return ImFormatString(buf, buf_size, format, *(const ImU32*)p_data); + if (data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) + return ImFormatString(buf, buf_size, format, *(const ImU64*)p_data); + if (data_type == ImGuiDataType_Float) + return ImFormatString(buf, buf_size, format, *(const float*)p_data); + if (data_type == ImGuiDataType_Double) + return ImFormatString(buf, buf_size, format, *(const double*)p_data); + if (data_type == ImGuiDataType_S8) + return ImFormatString(buf, buf_size, format, *(const ImS8*)p_data); + if (data_type == ImGuiDataType_U8) + return ImFormatString(buf, buf_size, format, *(const ImU8*)p_data); + if (data_type == ImGuiDataType_S16) + return ImFormatString(buf, buf_size, format, *(const ImS16*)p_data); + if (data_type == ImGuiDataType_U16) + return ImFormatString(buf, buf_size, format, *(const ImU16*)p_data); + IM_ASSERT(0); + return 0; +} + +void ImGui::DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg1, const void* arg2) +{ + IM_ASSERT(op == '+' || op == '-'); + switch (data_type) + { + case ImGuiDataType_S8: + if (op == '+') { *(ImS8*)output = ImAddClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } + if (op == '-') { *(ImS8*)output = ImSubClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } + return; + case ImGuiDataType_U8: + if (op == '+') { *(ImU8*)output = ImAddClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } + if (op == '-') { *(ImU8*)output = ImSubClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } + return; + case ImGuiDataType_S16: + if (op == '+') { *(ImS16*)output = ImAddClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } + if (op == '-') { *(ImS16*)output = ImSubClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } + return; + case ImGuiDataType_U16: + if (op == '+') { *(ImU16*)output = ImAddClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } + if (op == '-') { *(ImU16*)output = ImSubClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } + return; + case ImGuiDataType_S32: + if (op == '+') { *(ImS32*)output = ImAddClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } + if (op == '-') { *(ImS32*)output = ImSubClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } + return; + case ImGuiDataType_U32: + if (op == '+') { *(ImU32*)output = ImAddClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } + if (op == '-') { *(ImU32*)output = ImSubClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } + return; + case ImGuiDataType_S64: + if (op == '+') { *(ImS64*)output = ImAddClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } + if (op == '-') { *(ImS64*)output = ImSubClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } + return; + case ImGuiDataType_U64: + if (op == '+') { *(ImU64*)output = ImAddClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } + if (op == '-') { *(ImU64*)output = ImSubClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } + return; + case ImGuiDataType_Float: + if (op == '+') { *(float*)output = *(const float*)arg1 + *(const float*)arg2; } + if (op == '-') { *(float*)output = *(const float*)arg1 - *(const float*)arg2; } + return; + case ImGuiDataType_Double: + if (op == '+') { *(double*)output = *(const double*)arg1 + *(const double*)arg2; } + if (op == '-') { *(double*)output = *(const double*)arg1 - *(const double*)arg2; } + return; + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); +} + +// User can input math operators (e.g. +100) to edit a numerical values. +// NB: This is _not_ a full expression evaluator. We should probably add one and replace this dumb mess.. +bool ImGui::DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format) +{ + while (ImCharIsBlankA(*buf)) + buf++; + if (!buf[0]) + return false; + + // Copy the value in an opaque buffer so we can compare at the end of the function if it changed at all. + const ImGuiDataTypeInfo* type_info = DataTypeGetInfo(data_type); + ImGuiDataTypeTempStorage data_backup; + memcpy(&data_backup, p_data, type_info->Size); + + // Sanitize format + // - For float/double we have to ignore format with precision (e.g. "%.2f") because sscanf doesn't take them in, so force them into %f and %lf + // - In theory could treat empty format as using default, but this would only cover rare/bizarre case of using InputScalar() + integer + format string without %. + char format_sanitized[32]; + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) + format = type_info->ScanFmt; + else + format = ImParseFormatSanitizeForScanning(format, format_sanitized, IM_ARRAYSIZE(format_sanitized)); + + // Small types need a 32-bit buffer to receive the result from scanf() + int v32 = 0; + if (sscanf(buf, format, type_info->Size >= 4 ? p_data : &v32) < 1) + return false; + if (type_info->Size < 4) + { + if (data_type == ImGuiDataType_S8) + *(ImS8*)p_data = (ImS8)ImClamp(v32, (int)IM_S8_MIN, (int)IM_S8_MAX); + else if (data_type == ImGuiDataType_U8) + *(ImU8*)p_data = (ImU8)ImClamp(v32, (int)IM_U8_MIN, (int)IM_U8_MAX); + else if (data_type == ImGuiDataType_S16) + *(ImS16*)p_data = (ImS16)ImClamp(v32, (int)IM_S16_MIN, (int)IM_S16_MAX); + else if (data_type == ImGuiDataType_U16) + *(ImU16*)p_data = (ImU16)ImClamp(v32, (int)IM_U16_MIN, (int)IM_U16_MAX); + else + IM_ASSERT(0); + } + + return memcmp(&data_backup, p_data, type_info->Size) != 0; +} + +template +static int DataTypeCompareT(const T* lhs, const T* rhs) +{ + if (*lhs < *rhs) return -1; + if (*lhs > *rhs) return +1; + return 0; +} + +int ImGui::DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2) +{ + switch (data_type) + { + case ImGuiDataType_S8: return DataTypeCompareT((const ImS8* )arg_1, (const ImS8* )arg_2); + case ImGuiDataType_U8: return DataTypeCompareT((const ImU8* )arg_1, (const ImU8* )arg_2); + case ImGuiDataType_S16: return DataTypeCompareT((const ImS16* )arg_1, (const ImS16* )arg_2); + case ImGuiDataType_U16: return DataTypeCompareT((const ImU16* )arg_1, (const ImU16* )arg_2); + case ImGuiDataType_S32: return DataTypeCompareT((const ImS32* )arg_1, (const ImS32* )arg_2); + case ImGuiDataType_U32: return DataTypeCompareT((const ImU32* )arg_1, (const ImU32* )arg_2); + case ImGuiDataType_S64: return DataTypeCompareT((const ImS64* )arg_1, (const ImS64* )arg_2); + case ImGuiDataType_U64: return DataTypeCompareT((const ImU64* )arg_1, (const ImU64* )arg_2); + case ImGuiDataType_Float: return DataTypeCompareT((const float* )arg_1, (const float* )arg_2); + case ImGuiDataType_Double: return DataTypeCompareT((const double*)arg_1, (const double*)arg_2); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return 0; +} + +template +static bool DataTypeClampT(T* v, const T* v_min, const T* v_max) +{ + // Clamp, both sides are optional, return true if modified + if (v_min && *v < *v_min) { *v = *v_min; return true; } + if (v_max && *v > *v_max) { *v = *v_max; return true; } + return false; +} + +bool ImGui::DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max) +{ + switch (data_type) + { + case ImGuiDataType_S8: return DataTypeClampT((ImS8* )p_data, (const ImS8* )p_min, (const ImS8* )p_max); + case ImGuiDataType_U8: return DataTypeClampT((ImU8* )p_data, (const ImU8* )p_min, (const ImU8* )p_max); + case ImGuiDataType_S16: return DataTypeClampT((ImS16* )p_data, (const ImS16* )p_min, (const ImS16* )p_max); + case ImGuiDataType_U16: return DataTypeClampT((ImU16* )p_data, (const ImU16* )p_min, (const ImU16* )p_max); + case ImGuiDataType_S32: return DataTypeClampT((ImS32* )p_data, (const ImS32* )p_min, (const ImS32* )p_max); + case ImGuiDataType_U32: return DataTypeClampT((ImU32* )p_data, (const ImU32* )p_min, (const ImU32* )p_max); + case ImGuiDataType_S64: return DataTypeClampT((ImS64* )p_data, (const ImS64* )p_min, (const ImS64* )p_max); + case ImGuiDataType_U64: return DataTypeClampT((ImU64* )p_data, (const ImU64* )p_min, (const ImU64* )p_max); + case ImGuiDataType_Float: return DataTypeClampT((float* )p_data, (const float* )p_min, (const float* )p_max); + case ImGuiDataType_Double: return DataTypeClampT((double*)p_data, (const double*)p_min, (const double*)p_max); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +static float GetMinimumStepAtDecimalPrecision(int decimal_precision) +{ + static const float min_steps[10] = { 1.0f, 0.1f, 0.01f, 0.001f, 0.0001f, 0.00001f, 0.000001f, 0.0000001f, 0.00000001f, 0.000000001f }; + if (decimal_precision < 0) + return FLT_MIN; + return (decimal_precision < IM_ARRAYSIZE(min_steps)) ? min_steps[decimal_precision] : ImPow(10.0f, (float)-decimal_precision); +} + +template +TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, TYPE v) +{ + IM_UNUSED(data_type); + IM_ASSERT(data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double); + const char* fmt_start = ImParseFormatFindStart(format); + if (fmt_start[0] != '%' || fmt_start[1] == '%') // Don't apply if the value is not visible in the format string + return v; + + // Sanitize format + char fmt_sanitized[32]; + ImParseFormatSanitizeForPrinting(fmt_start, fmt_sanitized, IM_ARRAYSIZE(fmt_sanitized)); + fmt_start = fmt_sanitized; + + // Format value with our rounding, and read back + char v_str[64]; + ImFormatString(v_str, IM_ARRAYSIZE(v_str), fmt_start, v); + const char* p = v_str; + while (*p == ' ') + p++; + v = (TYPE)ImAtof(p); + + return v; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. +//------------------------------------------------------------------------- +// - DragBehaviorT<>() [Internal] +// - DragBehavior() [Internal] +// - DragScalar() +// - DragScalarN() +// - DragFloat() +// - DragFloat2() +// - DragFloat3() +// - DragFloat4() +// - DragFloatRange2() +// - DragInt() +// - DragInt2() +// - DragInt3() +// - DragInt4() +// - DragIntRange2() +//------------------------------------------------------------------------- + +// This is called by DragBehavior() when the widget is active (held by mouse or being manipulated with Nav controls) +template +bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; + const bool is_clamped = (v_min < v_max); + const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) != 0; + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + + // Default tweak speed + if (v_speed == 0.0f && is_clamped && (v_max - v_min < FLT_MAX)) + v_speed = (float)((v_max - v_min) * g.DragSpeedDefaultRatio); + + // Inputs accumulates into g.DragCurrentAccum, which is flushed into the current value as soon as it makes a difference with our precision settings + float adjust_delta = 0.0f; + if (g.ActiveIdSource == ImGuiInputSource_Mouse && IsMousePosValid() && IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) + { + adjust_delta = g.IO.MouseDelta[axis]; + if (g.IO.KeyAlt) + adjust_delta *= 1.0f / 100.0f; + if (g.IO.KeyShift) + adjust_delta *= 10.0f; + } + else if (g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) + { + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); + const float tweak_factor = tweak_slow ? 1.0f / 1.0f : tweak_fast ? 10.0f : 1.0f; + adjust_delta = GetNavTweakPressedAmount(axis) * tweak_factor; + v_speed = ImMax(v_speed, GetMinimumStepAtDecimalPrecision(decimal_precision)); + } + adjust_delta *= v_speed; + + // For vertical drag we currently assume that Up=higher value (like we do with vertical sliders). This may become a parameter. + if (axis == ImGuiAxis_Y) + adjust_delta = -adjust_delta; + + // For logarithmic use our range is effectively 0..1 so scale the delta into that range + if (is_logarithmic && (v_max - v_min < FLT_MAX) && ((v_max - v_min) > 0.000001f)) // Epsilon to avoid /0 + adjust_delta /= (float)(v_max - v_min); + + // Clear current value on activation + // Avoid altering values and clamping when we are _already_ past the limits and heading in the same direction, so e.g. if range is 0..255, current value is 300 and we are pushing to the right side, keep the 300. + bool is_just_activated = g.ActiveIdIsJustActivated; + bool is_already_past_limits_and_pushing_outward = is_clamped && ((*v >= v_max && adjust_delta > 0.0f) || (*v <= v_min && adjust_delta < 0.0f)); + if (is_just_activated || is_already_past_limits_and_pushing_outward) + { + g.DragCurrentAccum = 0.0f; + g.DragCurrentAccumDirty = false; + } + else if (adjust_delta != 0.0f) + { + g.DragCurrentAccum += adjust_delta; + g.DragCurrentAccumDirty = true; + } + + if (!g.DragCurrentAccumDirty) + return false; + + TYPE v_cur = *v; + FLOATTYPE v_old_ref_for_accum_remainder = (FLOATTYPE)0.0f; + + float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true + const float zero_deadzone_halfsize = 0.0f; // Drag widgets have no deadzone (as it doesn't make sense) + if (is_logarithmic) + { + // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 1; + logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); + + // Convert to parametric space, apply delta, convert back + float v_old_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + float v_new_parametric = v_old_parametric + g.DragCurrentAccum; + v_cur = ScaleValueFromRatioT(data_type, v_new_parametric, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + v_old_ref_for_accum_remainder = v_old_parametric; + } + else + { + v_cur += (SIGNEDTYPE)g.DragCurrentAccum; + } + + // Round to user desired precision based on format string + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_cur = RoundScalarWithFormatT(format, data_type, v_cur); + + // Preserve remainder after rounding has been applied. This also allow slow tweaking of values. + g.DragCurrentAccumDirty = false; + if (is_logarithmic) + { + // Convert to parametric space, apply delta, convert back + float v_new_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + g.DragCurrentAccum -= (float)(v_new_parametric - v_old_ref_for_accum_remainder); + } + else + { + g.DragCurrentAccum -= (float)((SIGNEDTYPE)v_cur - (SIGNEDTYPE)*v); + } + + // Lose zero sign for float/double + if (v_cur == (TYPE)-0) + v_cur = (TYPE)0; + + // Clamp values (+ handle overflow/wrap-around for integer types) + if (*v != v_cur && is_clamped) + { + if (v_cur < v_min || (v_cur > *v && adjust_delta < 0.0f && !is_floating_point)) + v_cur = v_min; + if (v_cur > v_max || (v_cur < *v && adjust_delta > 0.0f && !is_floating_point)) + v_cur = v_max; + } + + // Apply result + if (*v == v_cur) + return false; + *v = v_cur; + return true; +} + +bool ImGui::DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. + IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flags! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + + ImGuiContext& g = *GImGui; + if (g.ActiveId == id) + { + // Those are the things we can do easily outside the DragBehaviorT<> template, saves code generation. + if (g.ActiveIdSource == ImGuiInputSource_Mouse && !g.IO.MouseDown[0]) + ClearActiveID(); + else if ((g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) && g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) + ClearActiveID(); + } + if (g.ActiveId != id) + return false; + if ((g.LastItemData.InFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) + return false; + + switch (data_type) + { + case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS8*) p_min : IM_S8_MIN, p_max ? *(const ImS8*)p_max : IM_S8_MAX, format, flags); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } + case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU8*) p_min : IM_U8_MIN, p_max ? *(const ImU8*)p_max : IM_U8_MAX, format, flags); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } + case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS16*)p_min : IM_S16_MIN, p_max ? *(const ImS16*)p_max : IM_S16_MAX, format, flags); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } + case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU16*)p_min : IM_U16_MIN, p_max ? *(const ImU16*)p_max : IM_U16_MAX, format, flags); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } + case ImGuiDataType_S32: return DragBehaviorT(data_type, (ImS32*)p_v, v_speed, p_min ? *(const ImS32* )p_min : IM_S32_MIN, p_max ? *(const ImS32* )p_max : IM_S32_MAX, format, flags); + case ImGuiDataType_U32: return DragBehaviorT(data_type, (ImU32*)p_v, v_speed, p_min ? *(const ImU32* )p_min : IM_U32_MIN, p_max ? *(const ImU32* )p_max : IM_U32_MAX, format, flags); + case ImGuiDataType_S64: return DragBehaviorT(data_type, (ImS64*)p_v, v_speed, p_min ? *(const ImS64* )p_min : IM_S64_MIN, p_max ? *(const ImS64* )p_max : IM_S64_MAX, format, flags); + case ImGuiDataType_U64: return DragBehaviorT(data_type, (ImU64*)p_v, v_speed, p_min ? *(const ImU64* )p_min : IM_U64_MIN, p_max ? *(const ImU64* )p_max : IM_U64_MAX, format, flags); + case ImGuiDataType_Float: return DragBehaviorT(data_type, (float*)p_v, v_speed, p_min ? *(const float* )p_min : -FLT_MAX, p_max ? *(const float* )p_max : FLT_MAX, format, flags); + case ImGuiDataType_Double: return DragBehaviorT(data_type, (double*)p_v, v_speed, p_min ? *(const double*)p_min : -DBL_MAX, p_max ? *(const double*)p_max : DBL_MAX, format, flags); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a Drag widget, p_min and p_max are optional. +// Read code of e.g. DragFloat(), DragInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const float w = CalcItemWidth(); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, temp_input_allowed ? ImGuiItemFlags_Inputable : 0)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id, g.LastItemData.InFlags); + bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); + if (!temp_input_is_active) + { + // Tabbing or CTRL-clicking on Drag turns it into an InputText + const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool clicked = hovered && IsMouseClicked(0, id); + const bool double_clicked = (hovered && g.IO.MouseClickedCount[0] == 2 && TestKeyOwner(ImGuiKey_MouseLeft, id)); + const bool make_active = (input_requested_by_tabbing || clicked || double_clicked || g.NavActivateId == id); + if (make_active && (clicked || double_clicked)) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || double_clicked || (g.NavActivateId == id && (g.NavActivateFlags & ImGuiActivateFlags_PreferInput))) + temp_input_is_active = true; + + // (Optional) simple click (without moving) turns Drag into an InputText + if (g.IO.ConfigDragClickToInputText && temp_input_allowed && !temp_input_is_active) + if (g.ActiveId == id && hovered && g.IO.MouseReleased[0] && !IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) + { + g.NavActivateId = id; + g.NavActivateFlags = ImGuiActivateFlags_PreferInput; + temp_input_is_active = true; + } + + if (make_active && !temp_input_is_active) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + } + } + + if (temp_input_is_active) + { + // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set + const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0 && (p_min == NULL || p_max == NULL || DataTypeCompare(data_type, p_min, p_max) < 0); + return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, style.FrameRounding); + + // Drag behavior + const bool value_changed = DragBehavior(id, data_type, p_data, v_speed, p_min, p_max, format, flags); + if (value_changed) + MarkItemEdited(id); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | (temp_input_allowed ? ImGuiItemStatusFlags_Inputable : 0)); + return value_changed; +} + +bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= DragScalar("", data_type, p_data, v_speed, p_min, p_max, format, flags); + PopID(); + PopItemWidth(); + p_data = (void*)((char*)p_data + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, flags); +} + +// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. +bool ImGui::DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + PushID(label); + BeginGroup(); + PushMultiItemsWidths(2, CalcItemWidth()); + + float min_min = (v_min >= v_max) ? -FLT_MAX : v_min; + float min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); + ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); + bool value_changed = DragScalar("##min", ImGuiDataType_Float, v_current_min, v_speed, &min_min, &min_max, format, min_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + float max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); + float max_max = (v_min >= v_max) ? FLT_MAX : v_max; + ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); + value_changed |= DragScalar("##max", ImGuiDataType_Float, v_current_max, v_speed, &max_min, &max_max, format_max ? format_max : format, max_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + TextEx(label, FindRenderedTextEnd(label)); + EndGroup(); + PopID(); + + return value_changed; +} + +// NB: v_speed is float to allow adjusting the drag speed with more precision +bool ImGui::DragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalar(label, ImGuiDataType_S32, v, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt2(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 2, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt3(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 3, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt4(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 4, v_speed, &v_min, &v_max, format, flags); +} + +// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. +bool ImGui::DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* format, const char* format_max, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + PushID(label); + BeginGroup(); + PushMultiItemsWidths(2, CalcItemWidth()); + + int min_min = (v_min >= v_max) ? INT_MIN : v_min; + int min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); + ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); + bool value_changed = DragInt("##min", v_current_min, v_speed, min_min, min_max, format, min_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + int max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); + int max_max = (v_min >= v_max) ? INT_MAX : v_max; + ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); + value_changed |= DragInt("##max", v_current_max, v_speed, max_min, max_max, format_max ? format_max : format, max_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + TextEx(label, FindRenderedTextEnd(label)); + EndGroup(); + PopID(); + + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. +//------------------------------------------------------------------------- +// - ScaleRatioFromValueT<> [Internal] +// - ScaleValueFromRatioT<> [Internal] +// - SliderBehaviorT<>() [Internal] +// - SliderBehavior() [Internal] +// - SliderScalar() +// - SliderScalarN() +// - SliderFloat() +// - SliderFloat2() +// - SliderFloat3() +// - SliderFloat4() +// - SliderAngle() +// - SliderInt() +// - SliderInt2() +// - SliderInt3() +// - SliderInt4() +// - VSliderScalar() +// - VSliderFloat() +// - VSliderInt() +//------------------------------------------------------------------------- + +// Convert a value v in the output space of a slider into a parametric position on the slider itself (the logical opposite of ScaleValueFromRatioT) +template +float ImGui::ScaleRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) +{ + if (v_min == v_max) + return 0.0f; + IM_UNUSED(data_type); + + const TYPE v_clamped = (v_min < v_max) ? ImClamp(v, v_min, v_max) : ImClamp(v, v_max, v_min); + if (is_logarithmic) + { + bool flipped = v_max < v_min; + + if (flipped) // Handle the case where the range is backwards + ImSwap(v_min, v_max); + + // Fudge min/max to avoid getting close to log(0) + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + + // Awkward special cases - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_min == 0.0f) && (v_max < 0.0f)) + v_min_fudged = -logarithmic_zero_epsilon; + else if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; + + float result; + if (v_clamped <= v_min_fudged) + result = 0.0f; // Workaround for values that are in-range but below our fudge + else if (v_clamped >= v_max_fudged) + result = 1.0f; // Workaround for values that are in-range but above our fudge + else if ((v_min * v_max) < 0.0f) // Range crosses zero, so split into two portions + { + float zero_point_center = (-(float)v_min) / ((float)v_max - (float)v_min); // The zero point in parametric space. There's an argument we should take the logarithmic nature into account when calculating this, but for now this should do (and the most common case of a symmetrical range works fine) + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (v == 0.0f) + result = zero_point_center; // Special case for exactly zero + else if (v < 0.0f) + result = (1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(-v_min_fudged / logarithmic_zero_epsilon))) * zero_point_snap_L; + else + result = zero_point_snap_R + ((float)(ImLog((FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(v_max_fudged / logarithmic_zero_epsilon)) * (1.0f - zero_point_snap_R)); + } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = 1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / -v_max_fudged) / ImLog(-v_min_fudged / -v_max_fudged)); + else + result = (float)(ImLog((FLOATTYPE)v_clamped / v_min_fudged) / ImLog(v_max_fudged / v_min_fudged)); + + return flipped ? (1.0f - result) : result; + } + else + { + // Linear slider + return (float)((FLOATTYPE)(SIGNEDTYPE)(v_clamped - v_min) / (FLOATTYPE)(SIGNEDTYPE)(v_max - v_min)); + } +} + +// Convert a parametric position on a slider into a value v in the output space (the logical opposite of ScaleRatioFromValueT) +template +TYPE ImGui::ScaleValueFromRatioT(ImGuiDataType data_type, float t, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) +{ + // We special-case the extents because otherwise our logarithmic fudging can lead to "mathematically correct" + // but non-intuitive behaviors like a fully-left slider not actually reaching the minimum value. Also generally simpler. + if (t <= 0.0f || v_min == v_max) + return v_min; + if (t >= 1.0f) + return v_max; + + TYPE result = (TYPE)0; + if (is_logarithmic) + { + // Fudge min/max to avoid getting silly results close to zero + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + + const bool flipped = v_max < v_min; // Check if range is "backwards" + if (flipped) + ImSwap(v_min_fudged, v_max_fudged); + + // Awkward special case - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; + + float t_with_flip = flipped ? (1.0f - t) : t; // t, but flipped if necessary to account for us flipping the range + + if ((v_min * v_max) < 0.0f) // Range crosses zero, so we have to do this in two parts + { + float zero_point_center = (-(float)ImMin(v_min, v_max)) / ImAbs((float)v_max - (float)v_min); // The zero point in parametric space + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (t_with_flip >= zero_point_snap_L && t_with_flip <= zero_point_snap_R) + result = (TYPE)0.0f; // Special case to make getting exactly zero possible (the epsilon prevents it otherwise) + else if (t_with_flip < zero_point_center) + result = (TYPE)-(logarithmic_zero_epsilon * ImPow(-v_min_fudged / logarithmic_zero_epsilon, (FLOATTYPE)(1.0f - (t_with_flip / zero_point_snap_L)))); + else + result = (TYPE)(logarithmic_zero_epsilon * ImPow(v_max_fudged / logarithmic_zero_epsilon, (FLOATTYPE)((t_with_flip - zero_point_snap_R) / (1.0f - zero_point_snap_R)))); + } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = (TYPE)-(-v_max_fudged * ImPow(-v_min_fudged / -v_max_fudged, (FLOATTYPE)(1.0f - t_with_flip))); + else + result = (TYPE)(v_min_fudged * ImPow(v_max_fudged / v_min_fudged, (FLOATTYPE)t_with_flip)); + } + else + { + // Linear slider + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + if (is_floating_point) + { + result = ImLerp(v_min, v_max, t); + } + else if (t < 1.0) + { + // - For integer values we want the clicking position to match the grab box so we round above + // This code is carefully tuned to work with large values (e.g. high ranges of U64) while preserving this property.. + // - Not doing a *1.0 multiply at the end of a range as it tends to be lossy. While absolute aiming at a large s64/u64 + // range is going to be imprecise anyway, with this check we at least make the edge values matches expected limits. + FLOATTYPE v_new_off_f = (SIGNEDTYPE)(v_max - v_min) * t; + result = (TYPE)((SIGNEDTYPE)v_min + (SIGNEDTYPE)(v_new_off_f + (FLOATTYPE)(v_min > v_max ? -0.5 : 0.5))); + } + } + + return result; +} + +// FIXME: Try to move more of the code into shared SliderBehavior() +template +bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, TYPE* v, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; + const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) != 0; + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + const float v_range_f = (float)(v_min < v_max ? v_max - v_min : v_min - v_max); // We don't need high precision for what we do with it. + + // Calculate bounds + const float grab_padding = 2.0f; // FIXME: Should be part of style. + const float slider_sz = (bb.Max[axis] - bb.Min[axis]) - grab_padding * 2.0f; + float grab_sz = style.GrabMinSize; + if (!is_floating_point && v_range_f >= 0.0f) // v_range_f < 0 may happen on integer overflows + grab_sz = ImMax(slider_sz / (v_range_f + 1), style.GrabMinSize); // For integer sliders: if possible have the grab size represent 1 unit + grab_sz = ImMin(grab_sz, slider_sz); + const float slider_usable_sz = slider_sz - grab_sz; + const float slider_usable_pos_min = bb.Min[axis] + grab_padding + grab_sz * 0.5f; + const float slider_usable_pos_max = bb.Max[axis] - grab_padding - grab_sz * 0.5f; + + float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true + float zero_deadzone_halfsize = 0.0f; // Only valid when is_logarithmic is true + if (is_logarithmic) + { + // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 1; + logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); + zero_deadzone_halfsize = (style.LogSliderDeadzone * 0.5f) / ImMax(slider_usable_sz, 1.0f); + } + + // Process interacting with the slider + bool value_changed = false; + if (g.ActiveId == id) + { + bool set_new_value = false; + float clicked_t = 0.0f; + if (g.ActiveIdSource == ImGuiInputSource_Mouse) + { + if (!g.IO.MouseDown[0]) + { + ClearActiveID(); + } + else + { + const float mouse_abs_pos = g.IO.MousePos[axis]; + if (g.ActiveIdIsJustActivated) + { + float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (axis == ImGuiAxis_Y) + grab_t = 1.0f - grab_t; + const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); + const bool clicked_around_grab = (mouse_abs_pos >= grab_pos - grab_sz * 0.5f - 1.0f) && (mouse_abs_pos <= grab_pos + grab_sz * 0.5f + 1.0f); // No harm being extra generous here. + g.SliderGrabClickOffset = (clicked_around_grab && is_floating_point) ? mouse_abs_pos - grab_pos : 0.0f; + } + if (slider_usable_sz > 0.0f) + clicked_t = ImSaturate((mouse_abs_pos - g.SliderGrabClickOffset - slider_usable_pos_min) / slider_usable_sz); + if (axis == ImGuiAxis_Y) + clicked_t = 1.0f - clicked_t; + set_new_value = true; + } + } + else if (g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) + { + if (g.ActiveIdIsJustActivated) + { + g.SliderCurrentAccum = 0.0f; // Reset any stored nav delta upon activation + g.SliderCurrentAccumDirty = false; + } + + float input_delta = (axis == ImGuiAxis_X) ? GetNavTweakPressedAmount(axis) : -GetNavTweakPressedAmount(axis); + if (input_delta != 0.0f) + { + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; + if (decimal_precision > 0) + { + input_delta /= 100.0f; // Gamepad/keyboard tweak speeds in % of slider bounds + if (tweak_slow) + input_delta /= 10.0f; + } + else + { + if ((v_range_f >= -100.0f && v_range_f <= 100.0f && v_range_f != 0.0f) || tweak_slow) + input_delta = ((input_delta < 0.0f) ? -1.0f : +1.0f) / v_range_f; // Gamepad/keyboard tweak speeds in integer steps + else + input_delta /= 100.0f; + } + if (tweak_fast) + input_delta *= 10.0f; + + g.SliderCurrentAccum += input_delta; + g.SliderCurrentAccumDirty = true; + } + + float delta = g.SliderCurrentAccum; + if (g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) + { + ClearActiveID(); + } + else if (g.SliderCurrentAccumDirty) + { + clicked_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + if ((clicked_t >= 1.0f && delta > 0.0f) || (clicked_t <= 0.0f && delta < 0.0f)) // This is to avoid applying the saturation when already past the limits + { + set_new_value = false; + g.SliderCurrentAccum = 0.0f; // If pushing up against the limits, don't continue to accumulate + } + else + { + set_new_value = true; + float old_clicked_t = clicked_t; + clicked_t = ImSaturate(clicked_t + delta); + + // Calculate what our "new" clicked_t will be, and thus how far we actually moved the slider, and subtract this from the accumulator + TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); + float new_clicked_t = ScaleRatioFromValueT(data_type, v_new, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + if (delta > 0) + g.SliderCurrentAccum -= ImMin(new_clicked_t - old_clicked_t, delta); + else + g.SliderCurrentAccum -= ImMax(new_clicked_t - old_clicked_t, delta); + } + + g.SliderCurrentAccumDirty = false; + } + } + + if (set_new_value) + if ((g.LastItemData.InFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) + set_new_value = false; + + if (set_new_value) + { + TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + // Round to user desired precision based on format string + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); + + // Apply result + if (*v != v_new) + { + *v = v_new; + value_changed = true; + } + } + } + + if (slider_sz < 1.0f) + { + *out_grab_bb = ImRect(bb.Min, bb.Min); + } + else + { + // Output grab position so it can be displayed by the caller + float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (axis == ImGuiAxis_Y) + grab_t = 1.0f - grab_t; + const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); + if (axis == ImGuiAxis_X) + *out_grab_bb = ImRect(grab_pos - grab_sz * 0.5f, bb.Min.y + grab_padding, grab_pos + grab_sz * 0.5f, bb.Max.y - grab_padding); + else + *out_grab_bb = ImRect(bb.Min.x + grab_padding, grab_pos - grab_sz * 0.5f, bb.Max.x - grab_padding, grab_pos + grab_sz * 0.5f); + } + + return value_changed; +} + +// For 32-bit and larger types, slider bounds are limited to half the natural type range. +// So e.g. an integer Slider between INT_MAX-10 and INT_MAX will fail, but an integer Slider between INT_MAX/2-10 and INT_MAX/2 will be ok. +// It would be possible to lift that limitation with some work but it doesn't seem to be worth it for sliders. +bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) +{ + // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. + IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flag! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + + switch (data_type) + { + case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS8*)p_min, *(const ImS8*)p_max, format, flags, out_grab_bb); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } + case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU8*)p_min, *(const ImU8*)p_max, format, flags, out_grab_bb); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } + case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS16*)p_min, *(const ImS16*)p_max, format, flags, out_grab_bb); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } + case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU16*)p_min, *(const ImU16*)p_max, format, flags, out_grab_bb); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } + case ImGuiDataType_S32: + IM_ASSERT(*(const ImS32*)p_min >= IM_S32_MIN / 2 && *(const ImS32*)p_max <= IM_S32_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImS32*)p_v, *(const ImS32*)p_min, *(const ImS32*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_U32: + IM_ASSERT(*(const ImU32*)p_max <= IM_U32_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImU32*)p_v, *(const ImU32*)p_min, *(const ImU32*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_S64: + IM_ASSERT(*(const ImS64*)p_min >= IM_S64_MIN / 2 && *(const ImS64*)p_max <= IM_S64_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImS64*)p_v, *(const ImS64*)p_min, *(const ImS64*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_U64: + IM_ASSERT(*(const ImU64*)p_max <= IM_U64_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImU64*)p_v, *(const ImU64*)p_min, *(const ImU64*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_Float: + IM_ASSERT(*(const float*)p_min >= -FLT_MAX / 2.0f && *(const float*)p_max <= FLT_MAX / 2.0f); + return SliderBehaviorT(bb, id, data_type, (float*)p_v, *(const float*)p_min, *(const float*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_Double: + IM_ASSERT(*(const double*)p_min >= -DBL_MAX / 2.0f && *(const double*)p_max <= DBL_MAX / 2.0f); + return SliderBehaviorT(bb, id, data_type, (double*)p_v, *(const double*)p_min, *(const double*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a slider, they are all required. +// Read code of e.g. SliderFloat(), SliderInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const float w = CalcItemWidth(); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, temp_input_allowed ? ImGuiItemFlags_Inputable : 0)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id, g.LastItemData.InFlags); + bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); + if (!temp_input_is_active) + { + // Tabbing or CTRL-clicking on Slider turns it into an input box + const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool clicked = hovered && IsMouseClicked(0, id); + const bool make_active = (input_requested_by_tabbing || clicked || g.NavActivateId == id); + if (make_active && clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || (g.NavActivateId == id && (g.NavActivateFlags & ImGuiActivateFlags_PreferInput))) + temp_input_is_active = true; + + if (make_active && !temp_input_is_active) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + } + } + + if (temp_input_is_active) + { + // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set + const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0; + return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); + + // Slider behavior + ImRect grab_bb; + const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags, &grab_bb); + if (value_changed) + MarkItemEdited(id); + + // Render grab + if (grab_bb.Max.x > grab_bb.Min.x) + window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | (temp_input_allowed ? ImGuiItemStatusFlags_Inputable : 0)); + return value_changed; +} + +// Add multiple sliders on 1 line for compact edition of multiple components +bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= SliderScalar("", data_type, v, v_min, v_max, format, flags); + PopID(); + PopItemWidth(); + v = (void*)((char*)v + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderAngle(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags) +{ + if (format == NULL) + format = "%.0f deg"; + float v_deg = (*v_rad) * 360.0f / (2 * IM_PI); + bool value_changed = SliderFloat(label, &v_deg, v_degrees_min, v_degrees_max, format, flags); + *v_rad = v_deg * (2 * IM_PI) / 360.0f; + return value_changed; +} + +bool ImGui::SliderInt(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalar(label, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 2, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 3, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 4, &v_min, &v_max, format, flags); +} + +bool ImGui::VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + size); + const ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + ItemSize(bb, style.FramePadding.y); + if (!ItemAdd(frame_bb, id)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id, g.LastItemData.InFlags); + const bool clicked = hovered && IsMouseClicked(0, id); + if (clicked || g.NavActivateId == id) + { + if (clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); + + // Slider behavior + ImRect grab_bb; + const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags | ImGuiSliderFlags_Vertical, &grab_bb); + if (value_changed) + MarkItemEdited(id); + + // Render grab + if (grab_bb.Max.y > grab_bb.Min.y) + window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + // For the vertical slider we allow centered text to overlap the frame padding + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.0f)); + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + return value_changed; +} + +bool ImGui::VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return VSliderScalar(label, size, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); +} + +bool ImGui::VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return VSliderScalar(label, size, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. +//------------------------------------------------------------------------- +// - ImParseFormatFindStart() [Internal] +// - ImParseFormatFindEnd() [Internal] +// - ImParseFormatTrimDecorations() [Internal] +// - ImParseFormatSanitizeForPrinting() [Internal] +// - ImParseFormatSanitizeForScanning() [Internal] +// - ImParseFormatPrecision() [Internal] +// - TempInputTextScalar() [Internal] +// - InputScalar() +// - InputScalarN() +// - InputFloat() +// - InputFloat2() +// - InputFloat3() +// - InputFloat4() +// - InputInt() +// - InputInt2() +// - InputInt3() +// - InputInt4() +// - InputDouble() +//------------------------------------------------------------------------- + +// We don't use strchr() because our strings are usually very short and often start with '%' +const char* ImParseFormatFindStart(const char* fmt) +{ + while (char c = fmt[0]) + { + if (c == '%' && fmt[1] != '%') + return fmt; + else if (c == '%') + fmt++; + fmt++; + } + return fmt; +} + +const char* ImParseFormatFindEnd(const char* fmt) +{ + // Printf/scanf types modifiers: I/L/h/j/l/t/w/z. Other uppercase letters qualify as types aka end of the format. + if (fmt[0] != '%') + return fmt; + const unsigned int ignored_uppercase_mask = (1 << ('I'-'A')) | (1 << ('L'-'A')); + const unsigned int ignored_lowercase_mask = (1 << ('h'-'a')) | (1 << ('j'-'a')) | (1 << ('l'-'a')) | (1 << ('t'-'a')) | (1 << ('w'-'a')) | (1 << ('z'-'a')); + for (char c; (c = *fmt) != 0; fmt++) + { + if (c >= 'A' && c <= 'Z' && ((1 << (c - 'A')) & ignored_uppercase_mask) == 0) + return fmt + 1; + if (c >= 'a' && c <= 'z' && ((1 << (c - 'a')) & ignored_lowercase_mask) == 0) + return fmt + 1; + } + return fmt; +} + +// Extract the format out of a format string with leading or trailing decorations +// fmt = "blah blah" -> return "" +// fmt = "%.3f" -> return fmt +// fmt = "hello %.3f" -> return fmt + 6 +// fmt = "%.3f hello" -> return buf written with "%.3f" +const char* ImParseFormatTrimDecorations(const char* fmt, char* buf, size_t buf_size) +{ + const char* fmt_start = ImParseFormatFindStart(fmt); + if (fmt_start[0] != '%') + return ""; + const char* fmt_end = ImParseFormatFindEnd(fmt_start); + if (fmt_end[0] == 0) // If we only have leading decoration, we don't need to copy the data. + return fmt_start; + ImStrncpy(buf, fmt_start, ImMin((size_t)(fmt_end - fmt_start) + 1, buf_size)); + return buf; +} + +// Sanitize format +// - Zero terminate so extra characters after format (e.g. "%f123") don't confuse atof/atoi +// - stb_sprintf.h supports several new modifiers which format numbers in a way that also makes them incompatible atof/atoi. +void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate +} + +// - For scanning we need to remove all width and precision fields and flags "%+3.7f" -> "%f". BUT don't strip types like "%I64d" which includes digits. ! "%07I64d" -> "%I64d" +const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + const char* fmt_out_begin = fmt_out; + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + bool has_type = false; + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (!has_type && ((c >= '0' && c <= '9') || c == '.' || c == '+' || c == '#')) + continue; + has_type |= ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')); // Stop skipping digits + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate + return fmt_out_begin; +} + +template +static const char* ImAtoi(const char* src, TYPE* output) +{ + int negative = 0; + if (*src == '-') { negative = 1; src++; } + if (*src == '+') { src++; } + TYPE v = 0; + while (*src >= '0' && *src <= '9') + v = (v * 10) + (*src++ - '0'); + *output = negative ? -v : v; + return src; +} + +// Parse display precision back from the display format string +// FIXME: This is still used by some navigation code path to infer a minimum tweak step, but we should aim to rework widgets so it isn't needed. +int ImParseFormatPrecision(const char* fmt, int default_precision) +{ + fmt = ImParseFormatFindStart(fmt); + if (fmt[0] != '%') + return default_precision; + fmt++; + while (*fmt >= '0' && *fmt <= '9') + fmt++; + int precision = INT_MAX; + if (*fmt == '.') + { + fmt = ImAtoi(fmt + 1, &precision); + if (precision < 0 || precision > 99) + precision = default_precision; + } + if (*fmt == 'e' || *fmt == 'E') // Maximum precision with scientific notation + precision = -1; + if ((*fmt == 'g' || *fmt == 'G') && precision == INT_MAX) + precision = -1; + return (precision == INT_MAX) ? default_precision : precision; +} + +// Create text input in place of another active widget (e.g. used when doing a CTRL+Click on drag/slider widgets) +// FIXME: Facilitate using this in variety of other situations. +bool ImGui::TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags) +{ + // On the first frame, g.TempInputTextId == 0, then on subsequent frames it becomes == id. + // We clear ActiveID on the first frame to allow the InputText() taking it back. + ImGuiContext& g = *GImGui; + const bool init = (g.TempInputId != id); + if (init) + ClearActiveID(); + + g.CurrentWindow->DC.CursorPos = bb.Min; + bool value_changed = InputTextEx(label, NULL, buf, buf_size, bb.GetSize(), flags | ImGuiInputTextFlags_MergedItem); + if (init) + { + // First frame we started displaying the InputText widget, we expect it to take the active id. + IM_ASSERT(g.ActiveId == id); + g.TempInputId = g.ActiveId; + } + return value_changed; +} + +static inline ImGuiInputTextFlags InputScalar_DefaultCharsFilter(ImGuiDataType data_type, const char* format) +{ + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) + return ImGuiInputTextFlags_CharsScientific; + const char format_last_char = format[0] ? format[strlen(format) - 1] : 0; + return (format_last_char == 'x' || format_last_char == 'X') ? ImGuiInputTextFlags_CharsHexadecimal : ImGuiInputTextFlags_CharsDecimal; +} + +// Note that Drag/Slider functions are only forwarding the min/max values clamping values if the ImGuiSliderFlags_AlwaysClamp flag is set! +// This is intended: this way we allow CTRL+Click manual input to set a value out of bounds, for maximum flexibility. +// However this may not be ideal for all uses, as some user code may break on out of bound values. +bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max) +{ + // FIXME: May need to clarify display behavior if format doesn't contain %. + // "%d" -> "%d" / "There are %d items" -> "%d" / "items" -> "%d" (fallback). Also see #6405 + const ImGuiDataTypeInfo* type_info = DataTypeGetInfo(data_type); + char fmt_buf[32]; + char data_buf[32]; + format = ImParseFormatTrimDecorations(format, fmt_buf, IM_ARRAYSIZE(fmt_buf)); + if (format[0] == 0) + format = type_info->PrintFmt; + DataTypeFormatString(data_buf, IM_ARRAYSIZE(data_buf), data_type, p_data, format); + ImStrTrimBlanks(data_buf); + + ImGuiInputTextFlags flags = ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; + flags |= InputScalar_DefaultCharsFilter(data_type, format); + + bool value_changed = false; + if (TempInputText(bb, id, label, data_buf, IM_ARRAYSIZE(data_buf), flags)) + { + // Backup old value + size_t data_type_size = type_info->Size; + ImGuiDataTypeTempStorage data_backup; + memcpy(&data_backup, p_data, data_type_size); + + // Apply new value (or operations) then clamp + DataTypeApplyFromText(data_buf, data_type, p_data, format); + if (p_clamp_min || p_clamp_max) + { + if (p_clamp_min && p_clamp_max && DataTypeCompare(data_type, p_clamp_min, p_clamp_max) > 0) + ImSwap(p_clamp_min, p_clamp_max); + DataTypeClamp(data_type, p_data, p_clamp_min, p_clamp_max); + } + + // Only mark as edited if new value is different + value_changed = memcmp(&data_backup, p_data, data_type_size) != 0; + if (value_changed) + MarkItemEdited(id); + } + return value_changed; +} + +// Note: p_data, p_step, p_step_fast are _pointers_ to a memory address holding the data. For an Input widget, p_step and p_step_fast are optional. +// Read code of e.g. InputFloat(), InputInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + char buf[64]; + DataTypeFormatString(buf, IM_ARRAYSIZE(buf), data_type, p_data, format); + + // Testing ActiveId as a minor optimization as filtering is not needed until active + if (g.ActiveId == 0 && (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsScientific)) == 0) + flags |= InputScalar_DefaultCharsFilter(data_type, format); + flags |= ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; // We call MarkItemEdited() ourselves by comparing the actual data rather than the string. + + bool value_changed = false; + if (p_step == NULL) + { + if (InputText(label, buf, IM_ARRAYSIZE(buf), flags)) + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); + } + else + { + const float button_size = GetFrameHeight(); + + BeginGroup(); // The only purpose of the group here is to allow the caller to query item data e.g. IsItemActive() + PushID(label); + SetNextItemWidth(ImMax(1.0f, CalcItemWidth() - (button_size + style.ItemInnerSpacing.x) * 2)); + if (InputText("", buf, IM_ARRAYSIZE(buf), flags)) // PushId(label) + "" gives us the expected ID from outside point of view + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Inputable); + + // Step buttons + const ImVec2 backup_frame_padding = style.FramePadding; + style.FramePadding.x = style.FramePadding.y; + ImGuiButtonFlags button_flags = ImGuiButtonFlags_Repeat | ImGuiButtonFlags_DontClosePopups; + if (flags & ImGuiInputTextFlags_ReadOnly) + BeginDisabled(); + SameLine(0, style.ItemInnerSpacing.x); + if (ButtonEx("-", ImVec2(button_size, button_size), button_flags)) + { + DataTypeApplyOp(data_type, '-', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); + value_changed = true; + } + SameLine(0, style.ItemInnerSpacing.x); + if (ButtonEx("+", ImVec2(button_size, button_size), button_flags)) + { + DataTypeApplyOp(data_type, '+', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); + value_changed = true; + } + if (flags & ImGuiInputTextFlags_ReadOnly) + EndDisabled(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + style.FramePadding = backup_frame_padding; + + PopID(); + EndGroup(); + } + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +bool ImGui::InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= InputScalar("", data_type, p_data, p_step, p_step_fast, format, flags); + PopID(); + PopItemWidth(); + p_data = (void*)((char*)p_data + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0.0f, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::InputFloat(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags) +{ + flags |= ImGuiInputTextFlags_CharsScientific; + return InputScalar(label, ImGuiDataType_Float, (void*)v, (void*)(step > 0.0f ? &step : NULL), (void*)(step_fast > 0.0f ? &step_fast : NULL), format, flags); +} + +bool ImGui::InputFloat2(const char* label, float v[2], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 2, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat3(const char* label, float v[3], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 3, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat4(const char* label, float v[4], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 4, NULL, NULL, format, flags); +} + +bool ImGui::InputInt(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags) +{ + // Hexadecimal input provided as a convenience but the flag name is awkward. Typically you'd use InputText() to parse your own data, if you want to handle prefixes. + const char* format = (flags & ImGuiInputTextFlags_CharsHexadecimal) ? "%08X" : "%d"; + return InputScalar(label, ImGuiDataType_S32, (void*)v, (void*)(step > 0 ? &step : NULL), (void*)(step_fast > 0 ? &step_fast : NULL), format, flags); +} + +bool ImGui::InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 2, NULL, NULL, "%d", flags); +} + +bool ImGui::InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 3, NULL, NULL, "%d", flags); +} + +bool ImGui::InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 4, NULL, NULL, "%d", flags); +} + +bool ImGui::InputDouble(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags) +{ + flags |= ImGuiInputTextFlags_CharsScientific; + return InputScalar(label, ImGuiDataType_Double, (void*)v, (void*)(step > 0.0 ? &step : NULL), (void*)(step_fast > 0.0 ? &step_fast : NULL), format, flags); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: InputText, InputTextMultiline, InputTextWithHint +//------------------------------------------------------------------------- +// - InputText() +// - InputTextWithHint() +// - InputTextMultiline() +// - InputTextGetCharInfo() [Internal] +// - InputTextReindexLines() [Internal] +// - InputTextReindexLinesRange() [Internal] +// - InputTextEx() [Internal] +// - DebugNodeInputTextState() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() + return InputTextEx(label, NULL, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); +} + +bool ImGui::InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + return InputTextEx(label, NULL, buf, (int)buf_size, size, flags | ImGuiInputTextFlags_Multiline, callback, user_data); +} + +bool ImGui::InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() or InputTextEx() manually if you need multi-line + hint. + return InputTextEx(label, hint, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); +} + +static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end) +{ + int line_count = 0; + const char* s = text_begin; + while (char c = *s++) // We are only matching for \n so we can ignore UTF-8 decoding + if (c == '\n') + line_count++; + s--; + if (s[0] != '\n' && s[0] != '\r') + line_count++; + *out_text_end = s; + return line_count; +} + +static ImVec2 InputTextCalcTextSizeW(ImGuiContext* ctx, const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining, ImVec2* out_offset, bool stop_on_new_line) +{ + ImGuiContext& g = *ctx; + ImFont* font = g.Font; + const float line_height = g.FontSize; + const float scale = line_height / font->FontSize; + + ImVec2 text_size = ImVec2(0, 0); + float line_width = 0.0f; + + const ImWchar* s = text_begin; + while (s < text_end) + { + unsigned int c = (unsigned int)(*s++); + if (c == '\n') + { + text_size.x = ImMax(text_size.x, line_width); + text_size.y += line_height; + line_width = 0.0f; + if (stop_on_new_line) + break; + continue; + } + if (c == '\r') + continue; + + const float char_width = font->GetCharAdvance((ImWchar)c) * scale; + line_width += char_width; + } + + if (text_size.x < line_width) + text_size.x = line_width; + + if (out_offset) + *out_offset = ImVec2(line_width, text_size.y + line_height); // offset allow for the possibility of sitting after a trailing \n + + if (line_width > 0 || text_size.y == 0.0f) // whereas size.y will ignore the trailing \n + text_size.y += line_height; + + if (remaining) + *remaining = s; + + return text_size; +} + +// Wrapper for stb_textedit.h to edit text (our wrapper is for: statically sized buffer, single-line, wchar characters. InputText converts between UTF-8 and wchar) +namespace ImStb +{ + +static int STB_TEXTEDIT_STRINGLEN(const ImGuiInputTextState* obj) { return obj->CurLenW; } +static ImWchar STB_TEXTEDIT_GETCHAR(const ImGuiInputTextState* obj, int idx) { IM_ASSERT(idx <= obj->CurLenW); return obj->TextW[idx]; } +static float STB_TEXTEDIT_GETWIDTH(ImGuiInputTextState* obj, int line_start_idx, int char_idx) { ImWchar c = obj->TextW[line_start_idx + char_idx]; if (c == '\n') return STB_TEXTEDIT_GETWIDTH_NEWLINE; ImGuiContext& g = *obj->Ctx; return g.Font->GetCharAdvance(c) * (g.FontSize / g.Font->FontSize); } +static int STB_TEXTEDIT_KEYTOTEXT(int key) { return key >= 0x200000 ? 0 : key; } +static ImWchar STB_TEXTEDIT_NEWLINE = '\n'; +static void STB_TEXTEDIT_LAYOUTROW(StbTexteditRow* r, ImGuiInputTextState* obj, int line_start_idx) +{ + const ImWchar* text = obj->TextW.Data; + const ImWchar* text_remaining = NULL; + const ImVec2 size = InputTextCalcTextSizeW(obj->Ctx, text + line_start_idx, text + obj->CurLenW, &text_remaining, NULL, true); + r->x0 = 0.0f; + r->x1 = size.x; + r->baseline_y_delta = size.y; + r->ymin = 0.0f; + r->ymax = size.y; + r->num_chars = (int)(text_remaining - (text + line_start_idx)); +} + +static bool is_separator(unsigned int c) +{ + return c==',' || c==';' || c=='(' || c==')' || c=='{' || c=='}' || c=='[' || c==']' || c=='|' || c=='\n' || c=='\r' || c=='.' || c=='!'; +} + +static int is_word_boundary_from_right(ImGuiInputTextState* obj, int idx) +{ + // When ImGuiInputTextFlags_Password is set, we don't want actions such as CTRL+Arrow to leak the fact that underlying data are blanks or separators. + if ((obj->Flags & ImGuiInputTextFlags_Password) || idx <= 0) + return 0; + + bool prev_white = ImCharIsBlankW(obj->TextW[idx - 1]); + bool prev_separ = is_separator(obj->TextW[idx - 1]); + bool curr_white = ImCharIsBlankW(obj->TextW[idx]); + bool curr_separ = is_separator(obj->TextW[idx]); + return ((prev_white || prev_separ) && !(curr_separ || curr_white)) || (curr_separ && !prev_separ); +} +static int is_word_boundary_from_left(ImGuiInputTextState* obj, int idx) +{ + if ((obj->Flags & ImGuiInputTextFlags_Password) || idx <= 0) + return 0; + + bool prev_white = ImCharIsBlankW(obj->TextW[idx]); + bool prev_separ = is_separator(obj->TextW[idx]); + bool curr_white = ImCharIsBlankW(obj->TextW[idx - 1]); + bool curr_separ = is_separator(obj->TextW[idx - 1]); + return ((prev_white) && !(curr_separ || curr_white)) || (curr_separ && !prev_separ); +} +static int STB_TEXTEDIT_MOVEWORDLEFT_IMPL(ImGuiInputTextState* obj, int idx) { idx--; while (idx >= 0 && !is_word_boundary_from_right(obj, idx)) idx--; return idx < 0 ? 0 : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_MAC(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_left(obj, idx)) idx++; return idx > len ? len : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_WIN(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_right(obj, idx)) idx++; return idx > len ? len : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_IMPL(ImGuiInputTextState* obj, int idx) { ImGuiContext& g = *obj->Ctx; if (g.IO.ConfigMacOSXBehaviors) return STB_TEXTEDIT_MOVEWORDRIGHT_MAC(obj, idx); else return STB_TEXTEDIT_MOVEWORDRIGHT_WIN(obj, idx); } +#define STB_TEXTEDIT_MOVEWORDLEFT STB_TEXTEDIT_MOVEWORDLEFT_IMPL // They need to be #define for stb_textedit.h +#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_IMPL + +static void STB_TEXTEDIT_DELETECHARS(ImGuiInputTextState* obj, int pos, int n) +{ + ImWchar* dst = obj->TextW.Data + pos; + + // We maintain our buffer length in both UTF-8 and wchar formats + obj->Edited = true; + obj->CurLenA -= ImTextCountUtf8BytesFromStr(dst, dst + n); + obj->CurLenW -= n; + + // Offset remaining text (FIXME-OPT: Use memmove) + const ImWchar* src = obj->TextW.Data + pos + n; + while (ImWchar c = *src++) + *dst++ = c; + *dst = '\0'; +} + +static bool STB_TEXTEDIT_INSERTCHARS(ImGuiInputTextState* obj, int pos, const ImWchar* new_text, int new_text_len) +{ + const bool is_resizable = (obj->Flags & ImGuiInputTextFlags_CallbackResize) != 0; + const int text_len = obj->CurLenW; + IM_ASSERT(pos <= text_len); + + const int new_text_len_utf8 = ImTextCountUtf8BytesFromStr(new_text, new_text + new_text_len); + if (!is_resizable && (new_text_len_utf8 + obj->CurLenA + 1 > obj->BufCapacityA)) + return false; + + // Grow internal buffer if needed + if (new_text_len + text_len + 1 > obj->TextW.Size) + { + if (!is_resizable) + return false; + IM_ASSERT(text_len < obj->TextW.Size); + obj->TextW.resize(text_len + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1); + } + + ImWchar* text = obj->TextW.Data; + if (pos != text_len) + memmove(text + pos + new_text_len, text + pos, (size_t)(text_len - pos) * sizeof(ImWchar)); + memcpy(text + pos, new_text, (size_t)new_text_len * sizeof(ImWchar)); + + obj->Edited = true; + obj->CurLenW += new_text_len; + obj->CurLenA += new_text_len_utf8; + obj->TextW[obj->CurLenW] = '\0'; + + return true; +} + +// We don't use an enum so we can build even with conflicting symbols (if another user of stb_textedit.h leak their STB_TEXTEDIT_K_* symbols) +#define STB_TEXTEDIT_K_LEFT 0x200000 // keyboard input to move cursor left +#define STB_TEXTEDIT_K_RIGHT 0x200001 // keyboard input to move cursor right +#define STB_TEXTEDIT_K_UP 0x200002 // keyboard input to move cursor up +#define STB_TEXTEDIT_K_DOWN 0x200003 // keyboard input to move cursor down +#define STB_TEXTEDIT_K_LINESTART 0x200004 // keyboard input to move cursor to start of line +#define STB_TEXTEDIT_K_LINEEND 0x200005 // keyboard input to move cursor to end of line +#define STB_TEXTEDIT_K_TEXTSTART 0x200006 // keyboard input to move cursor to start of text +#define STB_TEXTEDIT_K_TEXTEND 0x200007 // keyboard input to move cursor to end of text +#define STB_TEXTEDIT_K_DELETE 0x200008 // keyboard input to delete selection or character under cursor +#define STB_TEXTEDIT_K_BACKSPACE 0x200009 // keyboard input to delete selection or character left of cursor +#define STB_TEXTEDIT_K_UNDO 0x20000A // keyboard input to perform undo +#define STB_TEXTEDIT_K_REDO 0x20000B // keyboard input to perform redo +#define STB_TEXTEDIT_K_WORDLEFT 0x20000C // keyboard input to move cursor left one word +#define STB_TEXTEDIT_K_WORDRIGHT 0x20000D // keyboard input to move cursor right one word +#define STB_TEXTEDIT_K_PGUP 0x20000E // keyboard input to move cursor up a page +#define STB_TEXTEDIT_K_PGDOWN 0x20000F // keyboard input to move cursor down a page +#define STB_TEXTEDIT_K_SHIFT 0x400000 + +#define STB_TEXTEDIT_IMPLEMENTATION +#define STB_TEXTEDIT_memmove memmove +#include "imstb_textedit.h" + +// stb_textedit internally allows for a single undo record to do addition and deletion, but somehow, calling +// the stb_textedit_paste() function creates two separate records, so we perform it manually. (FIXME: Report to nothings/stb?) +static void stb_textedit_replace(ImGuiInputTextState* str, STB_TexteditState* state, const STB_TEXTEDIT_CHARTYPE* text, int text_len) +{ + stb_text_makeundo_replace(str, state, 0, str->CurLenW, text_len); + ImStb::STB_TEXTEDIT_DELETECHARS(str, 0, str->CurLenW); + state->cursor = state->select_start = state->select_end = 0; + if (text_len <= 0) + return; + if (ImStb::STB_TEXTEDIT_INSERTCHARS(str, 0, text, text_len)) + { + state->cursor = state->select_start = state->select_end = text_len; + state->has_preferred_x = 0; + return; + } + IM_ASSERT(0); // Failed to insert character, normally shouldn't happen because of how we currently use stb_textedit_replace() +} + +} // namespace ImStb + +void ImGuiInputTextState::OnKeyPressed(int key) +{ + stb_textedit_key(this, &Stb, key); + CursorFollow = true; + CursorAnimReset(); +} + +ImGuiInputTextCallbackData::ImGuiInputTextCallbackData() +{ + memset(this, 0, sizeof(*this)); +} + +// Public API to manipulate UTF-8 text +// We expose UTF-8 to the user (unlike the STB_TEXTEDIT_* functions which are manipulating wchar) +// FIXME: The existence of this rarely exercised code path is a bit of a nuisance. +void ImGuiInputTextCallbackData::DeleteChars(int pos, int bytes_count) +{ + IM_ASSERT(pos + bytes_count <= BufTextLen); + char* dst = Buf + pos; + const char* src = Buf + pos + bytes_count; + while (char c = *src++) + *dst++ = c; + *dst = '\0'; + + if (CursorPos >= pos + bytes_count) + CursorPos -= bytes_count; + else if (CursorPos >= pos) + CursorPos = pos; + SelectionStart = SelectionEnd = CursorPos; + BufDirty = true; + BufTextLen -= bytes_count; +} + +void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_end) +{ + // Accept null ranges + if (new_text == new_text_end) + return; + + const bool is_resizable = (Flags & ImGuiInputTextFlags_CallbackResize) != 0; + const int new_text_len = new_text_end ? (int)(new_text_end - new_text) : (int)strlen(new_text); + if (new_text_len + BufTextLen >= BufSize) + { + if (!is_resizable) + return; + + // Contrary to STB_TEXTEDIT_INSERTCHARS() this is working in the UTF8 buffer, hence the mildly similar code (until we remove the U16 buffer altogether!) + ImGuiContext& g = *Ctx; + ImGuiInputTextState* edit_state = &g.InputTextState; + IM_ASSERT(edit_state->ID != 0 && g.ActiveId == edit_state->ID); + IM_ASSERT(Buf == edit_state->TextA.Data); + int new_buf_size = BufTextLen + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1; + edit_state->TextA.reserve(new_buf_size + 1); + Buf = edit_state->TextA.Data; + BufSize = edit_state->BufCapacityA = new_buf_size; + } + + if (BufTextLen != pos) + memmove(Buf + pos + new_text_len, Buf + pos, (size_t)(BufTextLen - pos)); + memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char)); + Buf[BufTextLen + new_text_len] = '\0'; + + if (CursorPos >= pos) + CursorPos += new_text_len; + SelectionStart = SelectionEnd = CursorPos; + BufDirty = true; + BufTextLen += new_text_len; +} + +// Return false to discard a character. +static bool InputTextFilterCharacter(ImGuiContext* ctx, unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data, ImGuiInputSource input_source) +{ + IM_ASSERT(input_source == ImGuiInputSource_Keyboard || input_source == ImGuiInputSource_Clipboard); + unsigned int c = *p_char; + + // Filter non-printable (NB: isprint is unreliable! see #2467) + bool apply_named_filters = true; + if (c < 0x20) + { + bool pass = false; + pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline)); // Note that an Enter KEY will emit \r and be ignored (we poll for KEY in InputText() code) + pass |= (c == '\t' && (flags & ImGuiInputTextFlags_AllowTabInput)); + if (!pass) + return false; + apply_named_filters = false; // Override named filters below so newline and tabs can still be inserted. + } + + if (input_source != ImGuiInputSource_Clipboard) + { + // We ignore Ascii representation of delete (emitted from Backspace on OSX, see #2578, #2817) + if (c == 127) + return false; + + // Filter private Unicode range. GLFW on OSX seems to send private characters for special keys like arrow keys (FIXME) + if (c >= 0xE000 && c <= 0xF8FF) + return false; + } + + // Filter Unicode ranges we are not handling in this build + if (c > IM_UNICODE_CODEPOINT_MAX) + return false; + + // Generic named filters + if (apply_named_filters && (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase | ImGuiInputTextFlags_CharsNoBlank | ImGuiInputTextFlags_CharsScientific))) + { + // The libc allows overriding locale, with e.g. 'setlocale(LC_NUMERIC, "de_DE.UTF-8");' which affect the output/input of printf/scanf to use e.g. ',' instead of '.'. + // The standard mandate that programs starts in the "C" locale where the decimal point is '.'. + // We don't really intend to provide widespread support for it, but out of empathy for people stuck with using odd API, we support the bare minimum aka overriding the decimal point. + // Change the default decimal_point with: + // ImGui::GetIO()->PlatformLocaleDecimalPoint = *localeconv()->decimal_point; + // Users of non-default decimal point (in particular ',') may be affected by word-selection logic (is_word_boundary_from_right/is_word_boundary_from_left) functions. + ImGuiContext& g = *ctx; + const unsigned c_decimal_point = (unsigned int)g.IO.PlatformLocaleDecimalPoint; + if (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsScientific)) + if (c == '.' || c == ',') + c = c_decimal_point; + + // Full-width -> half-width conversion for numeric fields (https://en.wikipedia.org/wiki/Halfwidth_and_Fullwidth_Forms_(Unicode_block) + // While this is mostly convenient, this has the side-effect for uninformed users accidentally inputting full-width characters that they may + // scratch their head as to why it works in numerical fields vs in generic text fields it would require support in the font. + if (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsScientific | ImGuiInputTextFlags_CharsHexadecimal)) + if (c >= 0xFF01 && c <= 0xFF5E) + c = c - 0xFF01 + 0x21; + + // Allow 0-9 . - + * / + if (flags & ImGuiInputTextFlags_CharsDecimal) + if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/')) + return false; + + // Allow 0-9 . - + * / e E + if (flags & ImGuiInputTextFlags_CharsScientific) + if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/') && (c != 'e') && (c != 'E')) + return false; + + // Allow 0-9 a-F A-F + if (flags & ImGuiInputTextFlags_CharsHexadecimal) + if (!(c >= '0' && c <= '9') && !(c >= 'a' && c <= 'f') && !(c >= 'A' && c <= 'F')) + return false; + + // Turn a-z into A-Z + if (flags & ImGuiInputTextFlags_CharsUppercase) + if (c >= 'a' && c <= 'z') + c += (unsigned int)('A' - 'a'); + + if (flags & ImGuiInputTextFlags_CharsNoBlank) + if (ImCharIsBlankW(c)) + return false; + + *p_char = c; + } + + // Custom callback filter + if (flags & ImGuiInputTextFlags_CallbackCharFilter) + { + ImGuiContext& g = *GImGui; + ImGuiInputTextCallbackData callback_data; + callback_data.Ctx = &g; + callback_data.EventFlag = ImGuiInputTextFlags_CallbackCharFilter; + callback_data.EventChar = (ImWchar)c; + callback_data.Flags = flags; + callback_data.UserData = user_data; + if (callback(&callback_data) != 0) + return false; + *p_char = callback_data.EventChar; + if (!callback_data.EventChar) + return false; + } + + return true; +} + +// Find the shortest single replacement we can make to get the new text from the old text. +// Important: needs to be run before TextW is rewritten with the new characters because calling STB_TEXTEDIT_GETCHAR() at the end. +// FIXME: Ideally we should transition toward (1) making InsertChars()/DeleteChars() update undo-stack (2) discourage (and keep reconcile) or obsolete (and remove reconcile) accessing buffer directly. +static void InputTextReconcileUndoStateAfterUserCallback(ImGuiInputTextState* state, const char* new_buf_a, int new_length_a) +{ + ImGuiContext& g = *GImGui; + const ImWchar* old_buf = state->TextW.Data; + const int old_length = state->CurLenW; + const int new_length = ImTextCountCharsFromUtf8(new_buf_a, new_buf_a + new_length_a); + g.TempBuffer.reserve_discard((new_length + 1) * sizeof(ImWchar)); + ImWchar* new_buf = (ImWchar*)(void*)g.TempBuffer.Data; + ImTextStrFromUtf8(new_buf, new_length + 1, new_buf_a, new_buf_a + new_length_a); + + const int shorter_length = ImMin(old_length, new_length); + int first_diff; + for (first_diff = 0; first_diff < shorter_length; first_diff++) + if (old_buf[first_diff] != new_buf[first_diff]) + break; + if (first_diff == old_length && first_diff == new_length) + return; + + int old_last_diff = old_length - 1; + int new_last_diff = new_length - 1; + for (; old_last_diff >= first_diff && new_last_diff >= first_diff; old_last_diff--, new_last_diff--) + if (old_buf[old_last_diff] != new_buf[new_last_diff]) + break; + + const int insert_len = new_last_diff - first_diff + 1; + const int delete_len = old_last_diff - first_diff + 1; + if (insert_len > 0 || delete_len > 0) + if (STB_TEXTEDIT_CHARTYPE* p = stb_text_createundo(&state->Stb.undostate, first_diff, delete_len, insert_len)) + for (int i = 0; i < delete_len; i++) + p[i] = ImStb::STB_TEXTEDIT_GETCHAR(state, first_diff + i); +} + +// As InputText() retain textual data and we currently provide a path for user to not retain it (via local variables) +// we need some form of hook to reapply data back to user buffer on deactivation frame. (#4714) +// It would be more desirable that we discourage users from taking advantage of the "user not retaining data" trick, +// but that more likely be attractive when we do have _NoLiveEdit flag available. +void ImGui::InputTextDeactivateHook(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiInputTextState* state = &g.InputTextState; + if (id == 0 || state->ID != id) + return; + g.InputTextDeactivatedState.ID = state->ID; + if (state->Flags & ImGuiInputTextFlags_ReadOnly) + { + g.InputTextDeactivatedState.TextA.resize(0); // In theory this data won't be used, but clear to be neat. + } + else + { + IM_ASSERT(state->TextA.Data != 0); + g.InputTextDeactivatedState.TextA.resize(state->CurLenA + 1); + memcpy(g.InputTextDeactivatedState.TextA.Data, state->TextA.Data, state->CurLenA + 1); + } +} + +// Edit a string of text +// - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!". +// This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match +// Note that in std::string world, capacity() would omit 1 byte used by the zero-terminator. +// - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect. +// - If you want to use ImGui::InputText() with std::string, see misc/cpp/imgui_stdlib.h +// (FIXME: Rather confusing and messy function, among the worse part of our codebase, expecting to rewrite a V2 at some point.. Partly because we are +// doing UTF8 > U16 > UTF8 conversions on the go to easily interface with stb_textedit. Ideally should stay in UTF-8 all the time. See https://github.com/nothings/stb/issues/188) +bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* callback_user_data) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + IM_ASSERT(buf != NULL && buf_size >= 0); + IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackHistory) && (flags & ImGuiInputTextFlags_Multiline))); // Can't use both together (they both use up/down keys) + IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackCompletion) && (flags & ImGuiInputTextFlags_AllowTabInput))); // Can't use both together (they both use tab key) + + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + const ImGuiStyle& style = g.Style; + + const bool RENDER_SELECTION_WHEN_INACTIVE = false; + const bool is_multiline = (flags & ImGuiInputTextFlags_Multiline) != 0; + const bool is_readonly = (flags & ImGuiInputTextFlags_ReadOnly) != 0; + const bool is_password = (flags & ImGuiInputTextFlags_Password) != 0; + const bool is_undoable = (flags & ImGuiInputTextFlags_NoUndoRedo) == 0; + const bool is_resizable = (flags & ImGuiInputTextFlags_CallbackResize) != 0; + if (is_resizable) + IM_ASSERT(callback != NULL); // Must provide a callback if you set the ImGuiInputTextFlags_CallbackResize flag! + + if (is_multiline) // Open group before calling GetID() because groups tracks id created within their scope (including the scrollbar) + BeginGroup(); + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImVec2 frame_size = CalcItemSize(size_arg, CalcItemWidth(), (is_multiline ? g.FontSize * 8.0f : label_size.y) + style.FramePadding.y * 2.0f); // Arbitrary default of 8 lines high for multi-line + const ImVec2 total_size = ImVec2(frame_size.x + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), frame_size.y); + + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + const ImRect total_bb(frame_bb.Min, frame_bb.Min + total_size); + + ImGuiWindow* draw_window = window; + ImVec2 inner_size = frame_size; + ImGuiItemStatusFlags item_status_flags = 0; + ImGuiLastItemData item_data_backup; + if (is_multiline) + { + ImVec2 backup_pos = window->DC.CursorPos; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, ImGuiItemFlags_Inputable)) + { + EndGroup(); + return false; + } + item_status_flags = g.LastItemData.StatusFlags; + item_data_backup = g.LastItemData; + window->DC.CursorPos = backup_pos; + + // Prevent NavActivate reactivating in BeginChild(). + const ImGuiID backup_activate_id = g.NavActivateId; + if (g.ActiveId == id) // Prevent reactivation + g.NavActivateId = 0; + + // We reproduce the contents of BeginChildFrame() in order to provide 'label' so our window internal data are easier to read/debug. + PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); + PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); + PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); // Ensure no clip rect so mouse hover can reach FramePadding edges + bool child_visible = BeginChildEx(label, id, frame_bb.GetSize(), true, ImGuiWindowFlags_NoMove); + g.NavActivateId = backup_activate_id; + PopStyleVar(3); + PopStyleColor(); + if (!child_visible) + { + EndChild(); + EndGroup(); + return false; + } + draw_window = g.CurrentWindow; // Child window + draw_window->DC.NavLayersActiveMaskNext |= (1 << draw_window->DC.NavLayerCurrent); // This is to ensure that EndChild() will display a navigation highlight so we can "enter" into it. + draw_window->DC.CursorPos += style.FramePadding; + inner_size.x -= draw_window->ScrollbarSizes.x; + } + else + { + // Support for internal ImGuiInputTextFlags_MergedItem flag, which could be redesigned as an ItemFlags if needed (with test performed in ItemAdd) + ItemSize(total_bb, style.FramePadding.y); + if (!(flags & ImGuiInputTextFlags_MergedItem)) + if (!ItemAdd(total_bb, id, &frame_bb, ImGuiItemFlags_Inputable)) + return false; + item_status_flags = g.LastItemData.StatusFlags; + } + const bool hovered = ItemHoverable(frame_bb, id, g.LastItemData.InFlags); + if (hovered) + g.MouseCursor = ImGuiMouseCursor_TextInput; + + // We are only allowed to access the state if we are already the active widget. + ImGuiInputTextState* state = GetInputTextState(id); + + const bool input_requested_by_tabbing = (item_status_flags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool input_requested_by_nav = (g.ActiveId != id) && ((g.NavActivateId == id) && ((g.NavActivateFlags & ImGuiActivateFlags_PreferInput) || (g.NavInputSource == ImGuiInputSource_Keyboard))); + + const bool user_clicked = hovered && io.MouseClicked[0]; + const bool user_scroll_finish = is_multiline && state != NULL && g.ActiveId == 0 && g.ActiveIdPreviousFrame == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); + const bool user_scroll_active = is_multiline && state != NULL && g.ActiveId == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); + bool clear_active_id = false; + bool select_all = false; + + float scroll_y = is_multiline ? draw_window->Scroll.y : FLT_MAX; + + const bool init_changed_specs = (state != NULL && state->Stb.single_line != !is_multiline); // state != NULL means its our state. + const bool init_make_active = (user_clicked || user_scroll_finish || input_requested_by_nav || input_requested_by_tabbing); + const bool init_state = (init_make_active || user_scroll_active); + if ((init_state && g.ActiveId != id) || init_changed_specs) + { + // Access state even if we don't own it yet. + state = &g.InputTextState; + state->CursorAnimReset(); + + // Backup state of deactivating item so they'll have a chance to do a write to output buffer on the same frame they report IsItemDeactivatedAfterEdit (#4714) + InputTextDeactivateHook(state->ID); + + // Take a copy of the initial buffer value (both in original UTF-8 format and converted to wchar) + // From the moment we focused we are ignoring the content of 'buf' (unless we are in read-only mode) + const int buf_len = (int)strlen(buf); + state->InitialTextA.resize(buf_len + 1); // UTF-8. we use +1 to make sure that .Data is always pointing to at least an empty string. + memcpy(state->InitialTextA.Data, buf, buf_len + 1); + + // Preserve cursor position and undo/redo stack if we come back to same widget + // FIXME: Since we reworked this on 2022/06, may want to differenciate recycle_cursor vs recycle_undostate? + bool recycle_state = (state->ID == id && !init_changed_specs); + if (recycle_state && (state->CurLenA != buf_len || (state->TextAIsValid && strncmp(state->TextA.Data, buf, buf_len) != 0))) + recycle_state = false; + + // Start edition + const char* buf_end = NULL; + state->ID = id; + state->TextW.resize(buf_size + 1); // wchar count <= UTF-8 count. we use +1 to make sure that .Data is always pointing to at least an empty string. + state->TextA.resize(0); + state->TextAIsValid = false; // TextA is not valid yet (we will display buf until then) + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, buf_size, buf, NULL, &buf_end); + state->CurLenA = (int)(buf_end - buf); // We can't get the result from ImStrncpy() above because it is not UTF-8 aware. Here we'll cut off malformed UTF-8. + + if (recycle_state) + { + // Recycle existing cursor/selection/undo stack but clamp position + // Note a single mouse click will override the cursor/position immediately by calling stb_textedit_click handler. + state->CursorClamp(); + } + else + { + state->ScrollX = 0.0f; + stb_textedit_initialize_state(&state->Stb, !is_multiline); + } + + if (!is_multiline) + { + if (flags & ImGuiInputTextFlags_AutoSelectAll) + select_all = true; + if (input_requested_by_nav && (!recycle_state || !(g.NavActivateFlags & ImGuiActivateFlags_TryToPreserveState))) + select_all = true; + if (input_requested_by_tabbing || (user_clicked && io.KeyCtrl)) + select_all = true; + } + + if (flags & ImGuiInputTextFlags_AlwaysOverwrite) + state->Stb.insert_mode = 1; // stb field name is indeed incorrect (see #2863) + } + + const bool is_osx = io.ConfigMacOSXBehaviors; + if (g.ActiveId != id && init_make_active) + { + IM_ASSERT(state && state->ID == id); + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + } + if (g.ActiveId == id) + { + // Declare some inputs, the other are registered and polled via Shortcut() routing system. + if (user_clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + if (is_multiline || (flags & ImGuiInputTextFlags_CallbackHistory)) + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); + SetKeyOwner(ImGuiKey_Home, id); + SetKeyOwner(ImGuiKey_End, id); + if (is_multiline) + { + SetKeyOwner(ImGuiKey_PageUp, id); + SetKeyOwner(ImGuiKey_PageDown, id); + } + if (is_osx) + SetKeyOwner(ImGuiMod_Alt, id); + if (flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_AllowTabInput)) // Disable keyboard tabbing out as we will use the \t character. + SetShortcutRouting(ImGuiKey_Tab, id); + } + + // We have an edge case if ActiveId was set through another widget (e.g. widget being swapped), clear id immediately (don't wait until the end of the function) + if (g.ActiveId == id && state == NULL) + ClearActiveID(); + + // Release focus when we click outside + if (g.ActiveId == id && io.MouseClicked[0] && !init_state && !init_make_active) //-V560 + clear_active_id = true; + + // Lock the decision of whether we are going to take the path displaying the cursor or selection + bool render_cursor = (g.ActiveId == id) || (state && user_scroll_active); + bool render_selection = state && (state->HasSelection() || select_all) && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); + bool value_changed = false; + bool validated = false; + + // When read-only we always use the live data passed to the function + // FIXME-OPT: Because our selection/cursor code currently needs the wide text we need to convert it when active, which is not ideal :( + if (is_readonly && state != NULL && (render_cursor || render_selection)) + { + const char* buf_end = NULL; + state->TextW.resize(buf_size + 1); + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, buf, NULL, &buf_end); + state->CurLenA = (int)(buf_end - buf); + state->CursorClamp(); + render_selection &= state->HasSelection(); + } + + // Select the buffer to render. + const bool buf_display_from_state = (render_cursor || render_selection || g.ActiveId == id) && !is_readonly && state && state->TextAIsValid; + const bool is_displaying_hint = (hint != NULL && (buf_display_from_state ? state->TextA.Data : buf)[0] == 0); + + // Password pushes a temporary font with only a fallback glyph + if (is_password && !is_displaying_hint) + { + const ImFontGlyph* glyph = g.Font->FindGlyph('*'); + ImFont* password_font = &g.InputTextPasswordFont; + password_font->FontSize = g.Font->FontSize; + password_font->Scale = g.Font->Scale; + password_font->Ascent = g.Font->Ascent; + password_font->Descent = g.Font->Descent; + password_font->ContainerAtlas = g.Font->ContainerAtlas; + password_font->FallbackGlyph = glyph; + password_font->FallbackAdvanceX = glyph->AdvanceX; + IM_ASSERT(password_font->Glyphs.empty() && password_font->IndexAdvanceX.empty() && password_font->IndexLookup.empty()); + PushFont(password_font); + } + + // Process mouse inputs and character inputs + int backup_current_text_length = 0; + if (g.ActiveId == id) + { + IM_ASSERT(state != NULL); + backup_current_text_length = state->CurLenA; + state->Edited = false; + state->BufCapacityA = buf_size; + state->Flags = flags; + + // Although we are active we don't prevent mouse from hovering other elements unless we are interacting right now with the widget. + // Down the line we should have a cleaner library-wide concept of Selected vs Active. + g.ActiveIdAllowOverlap = !io.MouseDown[0]; + + // Edit in progress + const float mouse_x = (io.MousePos.x - frame_bb.Min.x - style.FramePadding.x) + state->ScrollX; + const float mouse_y = (is_multiline ? (io.MousePos.y - draw_window->DC.CursorPos.y) : (g.FontSize * 0.5f)); + + if (select_all) + { + state->SelectAll(); + state->SelectedAllMouseLock = true; + } + else if (hovered && io.MouseClickedCount[0] >= 2 && !io.KeyShift) + { + stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); + const int multiclick_count = (io.MouseClickedCount[0] - 2); + if ((multiclick_count % 2) == 0) + { + // Double-click: Select word + // We always use the "Mac" word advance for double-click select vs CTRL+Right which use the platform dependent variant: + // FIXME: There are likely many ways to improve this behavior, but there's no "right" behavior (depends on use-case, software, OS) + const bool is_bol = (state->Stb.cursor == 0) || ImStb::STB_TEXTEDIT_GETCHAR(state, state->Stb.cursor - 1) == '\n'; + if (STB_TEXT_HAS_SELECTION(&state->Stb) || !is_bol) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT); + //state->OnKeyPressed(STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT); + if (!STB_TEXT_HAS_SELECTION(&state->Stb)) + ImStb::stb_textedit_prep_selection_at_cursor(&state->Stb); + state->Stb.cursor = ImStb::STB_TEXTEDIT_MOVEWORDRIGHT_MAC(state, state->Stb.cursor); + state->Stb.select_end = state->Stb.cursor; + ImStb::stb_textedit_clamp(state, &state->Stb); + } + else + { + // Triple-click: Select line + const bool is_eol = ImStb::STB_TEXTEDIT_GETCHAR(state, state->Stb.cursor) == '\n'; + state->OnKeyPressed(STB_TEXTEDIT_K_LINESTART); + state->OnKeyPressed(STB_TEXTEDIT_K_LINEEND | STB_TEXTEDIT_K_SHIFT); + state->OnKeyPressed(STB_TEXTEDIT_K_RIGHT | STB_TEXTEDIT_K_SHIFT); + if (!is_eol && is_multiline) + { + ImSwap(state->Stb.select_start, state->Stb.select_end); + state->Stb.cursor = state->Stb.select_end; + } + state->CursorFollow = false; + } + state->CursorAnimReset(); + } + else if (io.MouseClicked[0] && !state->SelectedAllMouseLock) + { + if (hovered) + { + if (io.KeyShift) + stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); + else + stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); + state->CursorAnimReset(); + } + } + else if (io.MouseDown[0] && !state->SelectedAllMouseLock && (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f)) + { + stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); + state->CursorAnimReset(); + state->CursorFollow = true; + } + if (state->SelectedAllMouseLock && !io.MouseDown[0]) + state->SelectedAllMouseLock = false; + + // We expect backends to emit a Tab key but some also emit a Tab character which we ignore (#2467, #1336) + // (For Tab and Enter: Win32/SFML/Allegro are sending both keys and chars, GLFW and SDL are only sending keys. For Space they all send all threes) + if ((flags & ImGuiInputTextFlags_AllowTabInput) && Shortcut(ImGuiKey_Tab, id) && !is_readonly) + { + unsigned int c = '\t'; // Insert TAB + if (InputTextFilterCharacter(&g, &c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + + // Process regular text input (before we check for Return because using some IME will effectively send a Return?) + // We ignore CTRL inputs, but need to allow ALT+CTRL as some keyboards (e.g. German) use AltGR (which _is_ Alt+Ctrl) to input certain characters. + const bool ignore_char_inputs = (io.KeyCtrl && !io.KeyAlt) || (is_osx && io.KeySuper); + if (io.InputQueueCharacters.Size > 0) + { + if (!ignore_char_inputs && !is_readonly && !input_requested_by_nav) + for (int n = 0; n < io.InputQueueCharacters.Size; n++) + { + // Insert character if they pass filtering + unsigned int c = (unsigned int)io.InputQueueCharacters[n]; + if (c == '\t') // Skip Tab, see above. + continue; + if (InputTextFilterCharacter(&g, &c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + + // Consume characters + io.InputQueueCharacters.resize(0); + } + } + + // Process other shortcuts/key-presses + bool revert_edit = false; + if (g.ActiveId == id && !g.ActiveIdIsJustActivated && !clear_active_id) + { + IM_ASSERT(state != NULL); + + const int row_count_per_page = ImMax((int)((inner_size.y - style.FramePadding.y) / g.FontSize), 1); + state->Stb.row_count_per_page = row_count_per_page; + + const int k_mask = (io.KeyShift ? STB_TEXTEDIT_K_SHIFT : 0); + const bool is_wordmove_key_down = is_osx ? io.KeyAlt : io.KeyCtrl; // OS X style: Text editing cursor movement using Alt instead of Ctrl + const bool is_startend_key_down = is_osx && io.KeySuper && !io.KeyCtrl && !io.KeyAlt; // OS X style: Line/Text Start and End using Cmd+Arrows instead of Home/End + + // Using Shortcut() with ImGuiInputFlags_RouteFocused (default policy) to allow routing operations for other code (e.g. calling window trying to use CTRL+A and CTRL+B: formet would be handled by InputText) + // Otherwise we could simply assume that we own the keys as we are active. + const ImGuiInputFlags f_repeat = ImGuiInputFlags_Repeat; + const bool is_cut = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_X, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Delete, id, f_repeat)) && !is_readonly && !is_password && (!is_multiline || state->HasSelection()); + const bool is_copy = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_C, id) || Shortcut(ImGuiMod_Ctrl | ImGuiKey_Insert, id)) && !is_password && (!is_multiline || state->HasSelection()); + const bool is_paste = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_V, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Insert, id, f_repeat)) && !is_readonly; + const bool is_undo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Z, id, f_repeat)) && !is_readonly && is_undoable; + const bool is_redo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Y, id, f_repeat) || (is_osx && Shortcut(ImGuiMod_Shortcut | ImGuiMod_Shift | ImGuiKey_Z, id, f_repeat))) && !is_readonly && is_undoable; + const bool is_select_all = Shortcut(ImGuiMod_Shortcut | ImGuiKey_A, id); + + // We allow validate/cancel with Nav source (gamepad) to makes it easier to undo an accidental NavInput press with no keyboard wired, but otherwise it isn't very useful. + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool is_enter_pressed = IsKeyPressed(ImGuiKey_Enter, true) || IsKeyPressed(ImGuiKey_KeypadEnter, true); + const bool is_gamepad_validate = nav_gamepad_active && (IsKeyPressed(ImGuiKey_NavGamepadActivate, false) || IsKeyPressed(ImGuiKey_NavGamepadInput, false)); + const bool is_cancel = Shortcut(ImGuiKey_Escape, id, f_repeat) || (nav_gamepad_active && Shortcut(ImGuiKey_NavGamepadCancel, id, f_repeat)); + + // FIXME: Should use more Shortcut() and reduce IsKeyPressed()+SetKeyOwner(), but requires modifiers combination to be taken account of. + if (IsKeyPressed(ImGuiKey_LeftArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINESTART : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDLEFT : STB_TEXTEDIT_K_LEFT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_RightArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINEEND : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDRIGHT : STB_TEXTEDIT_K_RIGHT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_UpArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMax(draw_window->Scroll.y - g.FontSize, 0.0f)); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTSTART : STB_TEXTEDIT_K_UP) | k_mask); } + else if (IsKeyPressed(ImGuiKey_DownArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMin(draw_window->Scroll.y + g.FontSize, GetScrollMaxY())); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTEND : STB_TEXTEDIT_K_DOWN) | k_mask); } + else if (IsKeyPressed(ImGuiKey_PageUp) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGUP | k_mask); scroll_y -= row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_PageDown) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGDOWN | k_mask); scroll_y += row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_Home)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTSTART | k_mask : STB_TEXTEDIT_K_LINESTART | k_mask); } + else if (IsKeyPressed(ImGuiKey_End)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTEND | k_mask : STB_TEXTEDIT_K_LINEEND | k_mask); } + else if (IsKeyPressed(ImGuiKey_Delete) && !is_readonly && !is_cut) + { + if (!state->HasSelection()) + { + // OSX doesn't seem to have Super+Delete to delete until end-of-line, so we don't emulate that (as opposed to Super+Backspace) + if (is_wordmove_key_down) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT); + } + state->OnKeyPressed(STB_TEXTEDIT_K_DELETE | k_mask); + } + else if (IsKeyPressed(ImGuiKey_Backspace) && !is_readonly) + { + if (!state->HasSelection()) + { + if (is_wordmove_key_down) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT); + else if (is_osx && io.KeySuper && !io.KeyAlt && !io.KeyCtrl) + state->OnKeyPressed(STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT); + } + state->OnKeyPressed(STB_TEXTEDIT_K_BACKSPACE | k_mask); + } + else if (is_enter_pressed || is_gamepad_validate) + { + // Determine if we turn Enter into a \n character + bool ctrl_enter_for_new_line = (flags & ImGuiInputTextFlags_CtrlEnterForNewLine) != 0; + if (!is_multiline || is_gamepad_validate || (ctrl_enter_for_new_line && !io.KeyCtrl) || (!ctrl_enter_for_new_line && io.KeyCtrl)) + { + validated = true; + if (io.ConfigInputTextEnterKeepActive && !is_multiline) + state->SelectAll(); // No need to scroll + else + clear_active_id = true; + } + else if (!is_readonly) + { + unsigned int c = '\n'; // Insert new line + if (InputTextFilterCharacter(&g, &c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + } + else if (is_cancel) + { + if (flags & ImGuiInputTextFlags_EscapeClearsAll) + { + if (buf[0] != 0) + { + revert_edit = true; + } + else + { + render_cursor = render_selection = false; + clear_active_id = true; + } + } + else + { + clear_active_id = revert_edit = true; + render_cursor = render_selection = false; + } + } + else if (is_undo || is_redo) + { + state->OnKeyPressed(is_undo ? STB_TEXTEDIT_K_UNDO : STB_TEXTEDIT_K_REDO); + state->ClearSelection(); + } + else if (is_select_all) + { + state->SelectAll(); + state->CursorFollow = true; + } + else if (is_cut || is_copy) + { + // Cut, Copy + if (io.SetClipboardTextFn) + { + const int ib = state->HasSelection() ? ImMin(state->Stb.select_start, state->Stb.select_end) : 0; + const int ie = state->HasSelection() ? ImMax(state->Stb.select_start, state->Stb.select_end) : state->CurLenW; + const int clipboard_data_len = ImTextCountUtf8BytesFromStr(state->TextW.Data + ib, state->TextW.Data + ie) + 1; + char* clipboard_data = (char*)IM_ALLOC(clipboard_data_len * sizeof(char)); + ImTextStrToUtf8(clipboard_data, clipboard_data_len, state->TextW.Data + ib, state->TextW.Data + ie); + SetClipboardText(clipboard_data); + MemFree(clipboard_data); + } + if (is_cut) + { + if (!state->HasSelection()) + state->SelectAll(); + state->CursorFollow = true; + stb_textedit_cut(state, &state->Stb); + } + } + else if (is_paste) + { + if (const char* clipboard = GetClipboardText()) + { + // Filter pasted buffer + const int clipboard_len = (int)strlen(clipboard); + ImWchar* clipboard_filtered = (ImWchar*)IM_ALLOC((clipboard_len + 1) * sizeof(ImWchar)); + int clipboard_filtered_len = 0; + for (const char* s = clipboard; *s != 0; ) + { + unsigned int c; + s += ImTextCharFromUtf8(&c, s, NULL); + if (!InputTextFilterCharacter(&g, &c, flags, callback, callback_user_data, ImGuiInputSource_Clipboard)) + continue; + clipboard_filtered[clipboard_filtered_len++] = (ImWchar)c; + } + clipboard_filtered[clipboard_filtered_len] = 0; + if (clipboard_filtered_len > 0) // If everything was filtered, ignore the pasting operation + { + stb_textedit_paste(state, &state->Stb, clipboard_filtered, clipboard_filtered_len); + state->CursorFollow = true; + } + MemFree(clipboard_filtered); + } + } + + // Update render selection flag after events have been handled, so selection highlight can be displayed during the same frame. + render_selection |= state->HasSelection() && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); + } + + // Process callbacks and apply result back to user's buffer. + const char* apply_new_text = NULL; + int apply_new_text_length = 0; + if (g.ActiveId == id) + { + IM_ASSERT(state != NULL); + if (revert_edit && !is_readonly) + { + if (flags & ImGuiInputTextFlags_EscapeClearsAll) + { + // Clear input + IM_ASSERT(buf[0] != 0); + apply_new_text = ""; + apply_new_text_length = 0; + value_changed = true; + STB_TEXTEDIT_CHARTYPE empty_string; + stb_textedit_replace(state, &state->Stb, &empty_string, 0); + } + else if (strcmp(buf, state->InitialTextA.Data) != 0) + { + // Restore initial value. Only return true if restoring to the initial value changes the current buffer contents. + // Push records into the undo stack so we can CTRL+Z the revert operation itself + apply_new_text = state->InitialTextA.Data; + apply_new_text_length = state->InitialTextA.Size - 1; + value_changed = true; + ImVector w_text; + if (apply_new_text_length > 0) + { + w_text.resize(ImTextCountCharsFromUtf8(apply_new_text, apply_new_text + apply_new_text_length) + 1); + ImTextStrFromUtf8(w_text.Data, w_text.Size, apply_new_text, apply_new_text + apply_new_text_length); + } + stb_textedit_replace(state, &state->Stb, w_text.Data, (apply_new_text_length > 0) ? (w_text.Size - 1) : 0); + } + } + + // Apply ASCII value + if (!is_readonly) + { + state->TextAIsValid = true; + state->TextA.resize(state->TextW.Size * 4 + 1); + ImTextStrToUtf8(state->TextA.Data, state->TextA.Size, state->TextW.Data, NULL); + } + + // When using 'ImGuiInputTextFlags_EnterReturnsTrue' as a special case we reapply the live buffer back to the input buffer + // before clearing ActiveId, even though strictly speaking it wasn't modified on this frame. + // If we didn't do that, code like InputInt() with ImGuiInputTextFlags_EnterReturnsTrue would fail. + // This also allows the user to use InputText() with ImGuiInputTextFlags_EnterReturnsTrue without maintaining any user-side storage + // (please note that if you use this property along ImGuiInputTextFlags_CallbackResize you can end up with your temporary string object + // unnecessarily allocating once a frame, either store your string data, either if you don't then don't use ImGuiInputTextFlags_CallbackResize). + const bool apply_edit_back_to_user_buffer = !revert_edit || (validated && (flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0); + if (apply_edit_back_to_user_buffer) + { + // Apply new value immediately - copy modified buffer back + // Note that as soon as the input box is active, the in-widget value gets priority over any underlying modification of the input buffer + // FIXME: We actually always render 'buf' when calling DrawList->AddText, making the comment above incorrect. + // FIXME-OPT: CPU waste to do this every time the widget is active, should mark dirty state from the stb_textedit callbacks. + + // User callback + if ((flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory | ImGuiInputTextFlags_CallbackEdit | ImGuiInputTextFlags_CallbackAlways)) != 0) + { + IM_ASSERT(callback != NULL); + + // The reason we specify the usage semantic (Completion/History) is that Completion needs to disable keyboard TABBING at the moment. + ImGuiInputTextFlags event_flag = 0; + ImGuiKey event_key = ImGuiKey_None; + if ((flags & ImGuiInputTextFlags_CallbackCompletion) != 0 && Shortcut(ImGuiKey_Tab, id)) + { + event_flag = ImGuiInputTextFlags_CallbackCompletion; + event_key = ImGuiKey_Tab; + } + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_UpArrow)) + { + event_flag = ImGuiInputTextFlags_CallbackHistory; + event_key = ImGuiKey_UpArrow; + } + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_DownArrow)) + { + event_flag = ImGuiInputTextFlags_CallbackHistory; + event_key = ImGuiKey_DownArrow; + } + else if ((flags & ImGuiInputTextFlags_CallbackEdit) && state->Edited) + { + event_flag = ImGuiInputTextFlags_CallbackEdit; + } + else if (flags & ImGuiInputTextFlags_CallbackAlways) + { + event_flag = ImGuiInputTextFlags_CallbackAlways; + } + + if (event_flag) + { + ImGuiInputTextCallbackData callback_data; + callback_data.Ctx = &g; + callback_data.EventFlag = event_flag; + callback_data.Flags = flags; + callback_data.UserData = callback_user_data; + + char* callback_buf = is_readonly ? buf : state->TextA.Data; + callback_data.EventKey = event_key; + callback_data.Buf = callback_buf; + callback_data.BufTextLen = state->CurLenA; + callback_data.BufSize = state->BufCapacityA; + callback_data.BufDirty = false; + + // We have to convert from wchar-positions to UTF-8-positions, which can be pretty slow (an incentive to ditch the ImWchar buffer, see https://github.com/nothings/stb/issues/188) + ImWchar* text = state->TextW.Data; + const int utf8_cursor_pos = callback_data.CursorPos = ImTextCountUtf8BytesFromStr(text, text + state->Stb.cursor); + const int utf8_selection_start = callback_data.SelectionStart = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_start); + const int utf8_selection_end = callback_data.SelectionEnd = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_end); + + // Call user code + callback(&callback_data); + + // Read back what user may have modified + callback_buf = is_readonly ? buf : state->TextA.Data; // Pointer may have been invalidated by a resize callback + IM_ASSERT(callback_data.Buf == callback_buf); // Invalid to modify those fields + IM_ASSERT(callback_data.BufSize == state->BufCapacityA); + IM_ASSERT(callback_data.Flags == flags); + const bool buf_dirty = callback_data.BufDirty; + if (callback_data.CursorPos != utf8_cursor_pos || buf_dirty) { state->Stb.cursor = ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.CursorPos); state->CursorFollow = true; } + if (callback_data.SelectionStart != utf8_selection_start || buf_dirty) { state->Stb.select_start = (callback_data.SelectionStart == callback_data.CursorPos) ? state->Stb.cursor : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionStart); } + if (callback_data.SelectionEnd != utf8_selection_end || buf_dirty) { state->Stb.select_end = (callback_data.SelectionEnd == callback_data.SelectionStart) ? state->Stb.select_start : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionEnd); } + if (buf_dirty) + { + IM_ASSERT((flags & ImGuiInputTextFlags_ReadOnly) == 0); + IM_ASSERT(callback_data.BufTextLen == (int)strlen(callback_data.Buf)); // You need to maintain BufTextLen if you change the text! + InputTextReconcileUndoStateAfterUserCallback(state, callback_data.Buf, callback_data.BufTextLen); // FIXME: Move the rest of this block inside function and rename to InputTextReconcileStateAfterUserCallback() ? + if (callback_data.BufTextLen > backup_current_text_length && is_resizable) + state->TextW.resize(state->TextW.Size + (callback_data.BufTextLen - backup_current_text_length)); // Worse case scenario resize + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, callback_data.Buf, NULL); + state->CurLenA = callback_data.BufTextLen; // Assume correct length and valid UTF-8 from user, saves us an extra strlen() + state->CursorAnimReset(); + } + } + } + + // Will copy result string if modified + if (!is_readonly && strcmp(state->TextA.Data, buf) != 0) + { + apply_new_text = state->TextA.Data; + apply_new_text_length = state->CurLenA; + value_changed = true; + } + } + } + + // Handle reapplying final data on deactivation (see InputTextDeactivateHook() for details) + if (g.InputTextDeactivatedState.ID == id) + { + if (g.ActiveId != id && IsItemDeactivatedAfterEdit() && !is_readonly && strcmp(g.InputTextDeactivatedState.TextA.Data, buf) != 0) + { + apply_new_text = g.InputTextDeactivatedState.TextA.Data; + apply_new_text_length = g.InputTextDeactivatedState.TextA.Size - 1; + value_changed = true; + //IMGUI_DEBUG_LOG("InputText(): apply Deactivated data for 0x%08X: \"%.*s\".\n", id, apply_new_text_length, apply_new_text); + } + g.InputTextDeactivatedState.ID = 0; + } + + // Copy result to user buffer. This can currently only happen when (g.ActiveId == id) + if (apply_new_text != NULL) + { + // We cannot test for 'backup_current_text_length != apply_new_text_length' here because we have no guarantee that the size + // of our owned buffer matches the size of the string object held by the user, and by design we allow InputText() to be used + // without any storage on user's side. + IM_ASSERT(apply_new_text_length >= 0); + if (is_resizable) + { + ImGuiInputTextCallbackData callback_data; + callback_data.Ctx = &g; + callback_data.EventFlag = ImGuiInputTextFlags_CallbackResize; + callback_data.Flags = flags; + callback_data.Buf = buf; + callback_data.BufTextLen = apply_new_text_length; + callback_data.BufSize = ImMax(buf_size, apply_new_text_length + 1); + callback_data.UserData = callback_user_data; + callback(&callback_data); + buf = callback_data.Buf; + buf_size = callback_data.BufSize; + apply_new_text_length = ImMin(callback_data.BufTextLen, buf_size - 1); + IM_ASSERT(apply_new_text_length <= buf_size); + } + //IMGUI_DEBUG_PRINT("InputText(\"%s\"): apply_new_text length %d\n", label, apply_new_text_length); + + // If the underlying buffer resize was denied or not carried to the next frame, apply_new_text_length+1 may be >= buf_size. + ImStrncpy(buf, apply_new_text, ImMin(apply_new_text_length + 1, buf_size)); + } + + // Release active ID at the end of the function (so e.g. pressing Return still does a final application of the value) + // Otherwise request text input ahead for next frame. + if (g.ActiveId == id && clear_active_id) + ClearActiveID(); + else if (g.ActiveId == id) + g.WantTextInputNextFrame = 1; + + // Render frame + if (!is_multiline) + { + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + } + + const ImVec4 clip_rect(frame_bb.Min.x, frame_bb.Min.y, frame_bb.Min.x + inner_size.x, frame_bb.Min.y + inner_size.y); // Not using frame_bb.Max because we have adjusted size + ImVec2 draw_pos = is_multiline ? draw_window->DC.CursorPos : frame_bb.Min + style.FramePadding; + ImVec2 text_size(0.0f, 0.0f); + + // Set upper limit of single-line InputTextEx() at 2 million characters strings. The current pathological worst case is a long line + // without any carriage return, which would makes ImFont::RenderText() reserve too many vertices and probably crash. Avoid it altogether. + // Note that we only use this limit on single-line InputText(), so a pathologically large line on a InputTextMultiline() would still crash. + const int buf_display_max_length = 2 * 1024 * 1024; + const char* buf_display = buf_display_from_state ? state->TextA.Data : buf; //-V595 + const char* buf_display_end = NULL; // We have specialized paths below for setting the length + if (is_displaying_hint) + { + buf_display = hint; + buf_display_end = hint + strlen(hint); + } + + // Render text. We currently only render selection when the widget is active or while scrolling. + // FIXME: We could remove the '&& render_cursor' to keep rendering selection when inactive. + if (render_cursor || render_selection) + { + IM_ASSERT(state != NULL); + if (!is_displaying_hint) + buf_display_end = buf_display + state->CurLenA; + + // Render text (with cursor and selection) + // This is going to be messy. We need to: + // - Display the text (this alone can be more easily clipped) + // - Handle scrolling, highlight selection, display cursor (those all requires some form of 1d->2d cursor position calculation) + // - Measure text height (for scrollbar) + // We are attempting to do most of that in **one main pass** to minimize the computation cost (non-negligible for large amount of text) + 2nd pass for selection rendering (we could merge them by an extra refactoring effort) + // FIXME: This should occur on buf_display but we'd need to maintain cursor/select_start/select_end for UTF-8. + const ImWchar* text_begin = state->TextW.Data; + ImVec2 cursor_offset, select_start_offset; + + { + // Find lines numbers straddling 'cursor' (slot 0) and 'select_start' (slot 1) positions. + const ImWchar* searches_input_ptr[2] = { NULL, NULL }; + int searches_result_line_no[2] = { -1000, -1000 }; + int searches_remaining = 0; + if (render_cursor) + { + searches_input_ptr[0] = text_begin + state->Stb.cursor; + searches_result_line_no[0] = -1; + searches_remaining++; + } + if (render_selection) + { + searches_input_ptr[1] = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); + searches_result_line_no[1] = -1; + searches_remaining++; + } + + // Iterate all lines to find our line numbers + // In multi-line mode, we never exit the loop until all lines are counted, so add one extra to the searches_remaining counter. + searches_remaining += is_multiline ? 1 : 0; + int line_count = 0; + //for (const ImWchar* s = text_begin; (s = (const ImWchar*)wcschr((const wchar_t*)s, (wchar_t)'\n')) != NULL; s++) // FIXME-OPT: Could use this when wchar_t are 16-bit + for (const ImWchar* s = text_begin; *s != 0; s++) + if (*s == '\n') + { + line_count++; + if (searches_result_line_no[0] == -1 && s >= searches_input_ptr[0]) { searches_result_line_no[0] = line_count; if (--searches_remaining <= 0) break; } + if (searches_result_line_no[1] == -1 && s >= searches_input_ptr[1]) { searches_result_line_no[1] = line_count; if (--searches_remaining <= 0) break; } + } + line_count++; + if (searches_result_line_no[0] == -1) + searches_result_line_no[0] = line_count; + if (searches_result_line_no[1] == -1) + searches_result_line_no[1] = line_count; + + // Calculate 2d position by finding the beginning of the line and measuring distance + cursor_offset.x = InputTextCalcTextSizeW(&g, ImStrbolW(searches_input_ptr[0], text_begin), searches_input_ptr[0]).x; + cursor_offset.y = searches_result_line_no[0] * g.FontSize; + if (searches_result_line_no[1] >= 0) + { + select_start_offset.x = InputTextCalcTextSizeW(&g, ImStrbolW(searches_input_ptr[1], text_begin), searches_input_ptr[1]).x; + select_start_offset.y = searches_result_line_no[1] * g.FontSize; + } + + // Store text height (note that we haven't calculated text width at all, see GitHub issues #383, #1224) + if (is_multiline) + text_size = ImVec2(inner_size.x, line_count * g.FontSize); + } + + // Scroll + if (render_cursor && state->CursorFollow) + { + // Horizontal scroll in chunks of quarter width + if (!(flags & ImGuiInputTextFlags_NoHorizontalScroll)) + { + const float scroll_increment_x = inner_size.x * 0.25f; + const float visible_width = inner_size.x - style.FramePadding.x; + if (cursor_offset.x < state->ScrollX) + state->ScrollX = IM_TRUNC(ImMax(0.0f, cursor_offset.x - scroll_increment_x)); + else if (cursor_offset.x - visible_width >= state->ScrollX) + state->ScrollX = IM_TRUNC(cursor_offset.x - visible_width + scroll_increment_x); + } + else + { + state->ScrollX = 0.0f; + } + + // Vertical scroll + if (is_multiline) + { + // Test if cursor is vertically visible + if (cursor_offset.y - g.FontSize < scroll_y) + scroll_y = ImMax(0.0f, cursor_offset.y - g.FontSize); + else if (cursor_offset.y - (inner_size.y - style.FramePadding.y * 2.0f) >= scroll_y) + scroll_y = cursor_offset.y - inner_size.y + style.FramePadding.y * 2.0f; + const float scroll_max_y = ImMax((text_size.y + style.FramePadding.y * 2.0f) - inner_size.y, 0.0f); + scroll_y = ImClamp(scroll_y, 0.0f, scroll_max_y); + draw_pos.y += (draw_window->Scroll.y - scroll_y); // Manipulate cursor pos immediately avoid a frame of lag + draw_window->Scroll.y = scroll_y; + } + + state->CursorFollow = false; + } + + // Draw selection + const ImVec2 draw_scroll = ImVec2(state->ScrollX, 0.0f); + if (render_selection) + { + const ImWchar* text_selected_begin = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); + const ImWchar* text_selected_end = text_begin + ImMax(state->Stb.select_start, state->Stb.select_end); + + ImU32 bg_color = GetColorU32(ImGuiCol_TextSelectedBg, render_cursor ? 1.0f : 0.6f); // FIXME: current code flow mandate that render_cursor is always true here, we are leaving the transparent one for tests. + float bg_offy_up = is_multiline ? 0.0f : -1.0f; // FIXME: those offsets should be part of the style? they don't play so well with multi-line selection. + float bg_offy_dn = is_multiline ? 0.0f : 2.0f; + ImVec2 rect_pos = draw_pos + select_start_offset - draw_scroll; + for (const ImWchar* p = text_selected_begin; p < text_selected_end; ) + { + if (rect_pos.y > clip_rect.w + g.FontSize) + break; + if (rect_pos.y < clip_rect.y) + { + //p = (const ImWchar*)wmemchr((const wchar_t*)p, '\n', text_selected_end - p); // FIXME-OPT: Could use this when wchar_t are 16-bit + //p = p ? p + 1 : text_selected_end; + while (p < text_selected_end) + if (*p++ == '\n') + break; + } + else + { + ImVec2 rect_size = InputTextCalcTextSizeW(&g, p, text_selected_end, &p, NULL, true); + if (rect_size.x <= 0.0f) rect_size.x = IM_TRUNC(g.Font->GetCharAdvance((ImWchar)' ') * 0.50f); // So we can see selected empty lines + ImRect rect(rect_pos + ImVec2(0.0f, bg_offy_up - g.FontSize), rect_pos + ImVec2(rect_size.x, bg_offy_dn)); + rect.ClipWith(clip_rect); + if (rect.Overlaps(clip_rect)) + draw_window->DrawList->AddRectFilled(rect.Min, rect.Max, bg_color); + } + rect_pos.x = draw_pos.x - draw_scroll.x; + rect_pos.y += g.FontSize; + } + } + + // We test for 'buf_display_max_length' as a way to avoid some pathological cases (e.g. single-line 1 MB string) which would make ImDrawList crash. + if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) + { + ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); + draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos - draw_scroll, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); + } + + // Draw blinking cursor + if (render_cursor) + { + state->CursorAnim += io.DeltaTime; + bool cursor_is_visible = (!g.IO.ConfigInputTextCursorBlink) || (state->CursorAnim <= 0.0f) || ImFmod(state->CursorAnim, 1.20f) <= 0.80f; + ImVec2 cursor_screen_pos = ImTrunc(draw_pos + cursor_offset - draw_scroll); + ImRect cursor_screen_rect(cursor_screen_pos.x, cursor_screen_pos.y - g.FontSize + 0.5f, cursor_screen_pos.x + 1.0f, cursor_screen_pos.y - 1.5f); + if (cursor_is_visible && cursor_screen_rect.Overlaps(clip_rect)) + draw_window->DrawList->AddLine(cursor_screen_rect.Min, cursor_screen_rect.GetBL(), GetColorU32(ImGuiCol_Text)); + + // Notify OS of text input position for advanced IME (-1 x offset so that Windows IME can cover our cursor. Bit of an extra nicety.) + if (!is_readonly) + { + g.PlatformImeData.WantVisible = true; + g.PlatformImeData.InputPos = ImVec2(cursor_screen_pos.x - 1.0f, cursor_screen_pos.y - g.FontSize); + g.PlatformImeData.InputLineHeight = g.FontSize; + g.PlatformImeViewport = window->Viewport->ID; + } + } + } + else + { + // Render text only (no selection, no cursor) + if (is_multiline) + text_size = ImVec2(inner_size.x, InputTextCalcTextLenAndLineCount(buf_display, &buf_display_end) * g.FontSize); // We don't need width + else if (!is_displaying_hint && g.ActiveId == id) + buf_display_end = buf_display + state->CurLenA; + else if (!is_displaying_hint) + buf_display_end = buf_display + strlen(buf_display); + + if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) + { + ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); + draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); + } + } + + if (is_password && !is_displaying_hint) + PopFont(); + + if (is_multiline) + { + // For focus requests to work on our multiline we need to ensure our child ItemAdd() call specifies the ImGuiItemFlags_Inputable (ref issue #4761)... + Dummy(ImVec2(text_size.x, text_size.y + style.FramePadding.y)); + g.NextItemData.ItemFlags |= ImGuiItemFlags_Inputable | ImGuiItemFlags_NoTabStop; + EndChild(); + item_data_backup.StatusFlags |= (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredWindow); + + // ...and then we need to undo the group overriding last item data, which gets a bit messy as EndGroup() tries to forward scrollbar being active... + // FIXME: This quite messy/tricky, should attempt to get rid of the child window. + EndGroup(); + if (g.LastItemData.ID == 0) + { + g.LastItemData.ID = id; + g.LastItemData.InFlags = item_data_backup.InFlags; + g.LastItemData.StatusFlags = item_data_backup.StatusFlags; + } + } + + // Log as text + if (g.LogEnabled && (!is_password || is_displaying_hint)) + { + LogSetNextTextDecoration("{", "}"); + LogRenderedText(&draw_pos, buf_display, buf_display_end); + } + + if (label_size.x > 0) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + if (value_changed && !(flags & ImGuiInputTextFlags_NoMarkEdited)) + MarkItemEdited(id); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Inputable); + if ((flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0) + return validated; + else + return value_changed; +} + +void ImGui::DebugNodeInputTextState(ImGuiInputTextState* state) +{ +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + ImGuiContext& g = *GImGui; + ImStb::STB_TexteditState* stb_state = &state->Stb; + ImStb::StbUndoState* undo_state = &stb_state->undostate; + Text("ID: 0x%08X, ActiveID: 0x%08X", state->ID, g.ActiveId); + DebugLocateItemOnHover(state->ID); + Text("CurLenW: %d, CurLenA: %d, Cursor: %d, Selection: %d..%d", state->CurLenW, state->CurLenA, stb_state->cursor, stb_state->select_start, stb_state->select_end); + Text("has_preferred_x: %d (%.2f)", stb_state->has_preferred_x, stb_state->preferred_x); + Text("undo_point: %d, redo_point: %d, undo_char_point: %d, redo_char_point: %d", undo_state->undo_point, undo_state->redo_point, undo_state->undo_char_point, undo_state->redo_char_point); + if (BeginChild("undopoints", ImVec2(0.0f, GetTextLineHeight() * 15), true)) // Visualize undo state + { + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + for (int n = 0; n < STB_TEXTEDIT_UNDOSTATECOUNT; n++) + { + ImStb::StbUndoRecord* undo_rec = &undo_state->undo_rec[n]; + const char undo_rec_type = (n < undo_state->undo_point) ? 'u' : (n >= undo_state->redo_point) ? 'r' : ' '; + if (undo_rec_type == ' ') + BeginDisabled(); + char buf[64] = ""; + if (undo_rec_type != ' ' && undo_rec->char_storage != -1) + ImTextStrToUtf8(buf, IM_ARRAYSIZE(buf), undo_state->undo_char + undo_rec->char_storage, undo_state->undo_char + undo_rec->char_storage + undo_rec->insert_length); + Text("%c [%02d] where %03d, insert %03d, delete %03d, char_storage %03d \"%s\"", + undo_rec_type, n, undo_rec->where, undo_rec->insert_length, undo_rec->delete_length, undo_rec->char_storage, buf); + if (undo_rec_type == ' ') + EndDisabled(); + } + PopStyleVar(); + } + EndChild(); +#else + IM_UNUSED(state); +#endif +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. +//------------------------------------------------------------------------- +// - ColorEdit3() +// - ColorEdit4() +// - ColorPicker3() +// - RenderColorRectWithAlphaCheckerboard() [Internal] +// - ColorPicker4() +// - ColorButton() +// - SetColorEditOptions() +// - ColorTooltip() [Internal] +// - ColorEditOptionsPopup() [Internal] +// - ColorPickerOptionsPopup() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags) +{ + return ColorEdit4(label, col, flags | ImGuiColorEditFlags_NoAlpha); +} + +static void ColorEditRestoreH(const float* col, float* H) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ColorEditCurrentID != 0); + if (g.ColorEditSavedID != g.ColorEditCurrentID || g.ColorEditSavedColor != ImGui::ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0))) + return; + *H = g.ColorEditSavedHue; +} + +// ColorEdit supports RGB and HSV inputs. In case of RGB input resulting color may have undefined hue and/or saturation. +// Since widget displays both RGB and HSV values we must preserve hue and saturation to prevent these values resetting. +static void ColorEditRestoreHS(const float* col, float* H, float* S, float* V) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ColorEditCurrentID != 0); + if (g.ColorEditSavedID != g.ColorEditCurrentID || g.ColorEditSavedColor != ImGui::ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0))) + return; + + // When S == 0, H is undefined. + // When H == 1 it wraps around to 0. + if (*S == 0.0f || (*H == 0.0f && g.ColorEditSavedHue == 1)) + *H = g.ColorEditSavedHue; + + // When V == 0, S is undefined. + if (*V == 0.0f) + *S = g.ColorEditSavedSat; +} + +// Edit colors components (each component in 0.0f..1.0f range). +// See enum ImGuiColorEditFlags_ for available options. e.g. Only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +// With typical options: Left-click on color square to open color picker. Right-click to open option menu. CTRL-Click over input fields to edit them and TAB to go to next item. +bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float square_sz = GetFrameHeight(); + const float w_full = CalcItemWidth(); + const float w_button = (flags & ImGuiColorEditFlags_NoSmallPreview) ? 0.0f : (square_sz + style.ItemInnerSpacing.x); + const float w_inputs = w_full - w_button; + const char* label_display_end = FindRenderedTextEnd(label); + g.NextItemData.ClearFlags(); + + BeginGroup(); + PushID(label); + const bool set_current_color_edit_id = (g.ColorEditCurrentID == 0); + if (set_current_color_edit_id) + g.ColorEditCurrentID = window->IDStack.back(); + + // If we're not showing any slider there's no point in doing any HSV conversions + const ImGuiColorEditFlags flags_untouched = flags; + if (flags & ImGuiColorEditFlags_NoInputs) + flags = (flags & (~ImGuiColorEditFlags_DisplayMask_)) | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_NoOptions; + + // Context menu: display and modify options (before defaults are applied) + if (!(flags & ImGuiColorEditFlags_NoOptions)) + ColorEditOptionsPopup(col, flags); + + // Read stored options + if (!(flags & ImGuiColorEditFlags_DisplayMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_DisplayMask_); + if (!(flags & ImGuiColorEditFlags_DataTypeMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_DataTypeMask_); + if (!(flags & ImGuiColorEditFlags_PickerMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_PickerMask_); + if (!(flags & ImGuiColorEditFlags_InputMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_InputMask_); + flags |= (g.ColorEditOptions & ~(ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_)); + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DisplayMask_)); // Check that only 1 is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check that only 1 is selected + + const bool alpha = (flags & ImGuiColorEditFlags_NoAlpha) == 0; + const bool hdr = (flags & ImGuiColorEditFlags_HDR) != 0; + const int components = alpha ? 4 : 3; + + // Convert to the formats we need + float f[4] = { col[0], col[1], col[2], alpha ? col[3] : 1.0f }; + if ((flags & ImGuiColorEditFlags_InputHSV) && (flags & ImGuiColorEditFlags_DisplayRGB)) + ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); + else if ((flags & ImGuiColorEditFlags_InputRGB) && (flags & ImGuiColorEditFlags_DisplayHSV)) + { + // Hue is lost when converting from grayscale rgb (saturation=0). Restore it. + ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); + ColorEditRestoreHS(col, &f[0], &f[1], &f[2]); + } + int i[4] = { IM_F32_TO_INT8_UNBOUND(f[0]), IM_F32_TO_INT8_UNBOUND(f[1]), IM_F32_TO_INT8_UNBOUND(f[2]), IM_F32_TO_INT8_UNBOUND(f[3]) }; + + bool value_changed = false; + bool value_changed_as_float = false; + + const ImVec2 pos = window->DC.CursorPos; + const float inputs_offset_x = (style.ColorButtonPosition == ImGuiDir_Left) ? w_button : 0.0f; + window->DC.CursorPos.x = pos.x + inputs_offset_x; + + if ((flags & (ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV)) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) + { + // RGB/HSV 0..255 Sliders + const float w_item_one = ImMax(1.0f, IM_TRUNC((w_inputs - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); + const float w_item_last = ImMax(1.0f, IM_TRUNC(w_inputs - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); + + const bool hide_prefix = (w_item_one <= CalcTextSize((flags & ImGuiColorEditFlags_Float) ? "M:0.000" : "M:000").x); + static const char* ids[4] = { "##X", "##Y", "##Z", "##W" }; + static const char* fmt_table_int[3][4] = + { + { "%3d", "%3d", "%3d", "%3d" }, // Short display + { "R:%3d", "G:%3d", "B:%3d", "A:%3d" }, // Long display for RGBA + { "H:%3d", "S:%3d", "V:%3d", "A:%3d" } // Long display for HSVA + }; + static const char* fmt_table_float[3][4] = + { + { "%0.3f", "%0.3f", "%0.3f", "%0.3f" }, // Short display + { "R:%0.3f", "G:%0.3f", "B:%0.3f", "A:%0.3f" }, // Long display for RGBA + { "H:%0.3f", "S:%0.3f", "V:%0.3f", "A:%0.3f" } // Long display for HSVA + }; + const int fmt_idx = hide_prefix ? 0 : (flags & ImGuiColorEditFlags_DisplayHSV) ? 2 : 1; + + for (int n = 0; n < components; n++) + { + if (n > 0) + SameLine(0, style.ItemInnerSpacing.x); + SetNextItemWidth((n + 1 < components) ? w_item_one : w_item_last); + + // FIXME: When ImGuiColorEditFlags_HDR flag is passed HS values snap in weird ways when SV values go below 0. + if (flags & ImGuiColorEditFlags_Float) + { + value_changed |= DragFloat(ids[n], &f[n], 1.0f / 255.0f, 0.0f, hdr ? 0.0f : 1.0f, fmt_table_float[fmt_idx][n]); + value_changed_as_float |= value_changed; + } + else + { + value_changed |= DragInt(ids[n], &i[n], 1.0f, 0, hdr ? 0 : 255, fmt_table_int[fmt_idx][n]); + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + } + else if ((flags & ImGuiColorEditFlags_DisplayHex) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) + { + // RGB Hexadecimal Input + char buf[64]; + if (alpha) + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255), ImClamp(i[3], 0, 255)); + else + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255)); + SetNextItemWidth(w_inputs); + if (InputText("##Text", buf, IM_ARRAYSIZE(buf), ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase)) + { + value_changed = true; + char* p = buf; + while (*p == '#' || ImCharIsBlankA(*p)) + p++; + i[0] = i[1] = i[2] = 0; + i[3] = 0xFF; // alpha default to 255 is not parsed by scanf (e.g. inputting #FFFFFF omitting alpha) + int r; + if (alpha) + r = sscanf(p, "%02X%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2], (unsigned int*)&i[3]); // Treat at unsigned (%X is unsigned) + else + r = sscanf(p, "%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2]); + IM_UNUSED(r); // Fixes C6031: Return value ignored: 'sscanf'. + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + + ImGuiWindow* picker_active_window = NULL; + if (!(flags & ImGuiColorEditFlags_NoSmallPreview)) + { + const float button_offset_x = ((flags & ImGuiColorEditFlags_NoInputs) || (style.ColorButtonPosition == ImGuiDir_Left)) ? 0.0f : w_inputs + style.ItemInnerSpacing.x; + window->DC.CursorPos = ImVec2(pos.x + button_offset_x, pos.y); + + const ImVec4 col_v4(col[0], col[1], col[2], alpha ? col[3] : 1.0f); + if (ColorButton("##ColorButton", col_v4, flags)) + { + if (!(flags & ImGuiColorEditFlags_NoPicker)) + { + // Store current color and open a picker + g.ColorPickerRef = col_v4; + OpenPopup("picker"); + SetNextWindowPos(g.LastItemData.Rect.GetBL() + ImVec2(0.0f, style.ItemSpacing.y)); + } + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + + if (BeginPopup("picker")) + { + if (g.CurrentWindow->BeginCount == 1) + { + picker_active_window = g.CurrentWindow; + if (label != label_display_end) + { + TextEx(label, label_display_end); + Spacing(); + } + ImGuiColorEditFlags picker_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaBar; + ImGuiColorEditFlags picker_flags = (flags_untouched & picker_flags_to_forward) | ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaPreviewHalf; + SetNextItemWidth(square_sz * 12.0f); // Use 256 + bar sizes? + value_changed |= ColorPicker4("##picker", col, picker_flags, &g.ColorPickerRef.x); + } + EndPopup(); + } + } + + if (label != label_display_end && !(flags & ImGuiColorEditFlags_NoLabel)) + { + // Position not necessarily next to last submitted button (e.g. if style.ColorButtonPosition == ImGuiDir_Left), + // but we need to use SameLine() to setup baseline correctly. Might want to refactor SameLine() to simplify this. + SameLine(0.0f, style.ItemInnerSpacing.x); + window->DC.CursorPos.x = pos.x + ((flags & ImGuiColorEditFlags_NoInputs) ? w_button : w_full + style.ItemInnerSpacing.x); + TextEx(label, label_display_end); + } + + // Convert back + if (value_changed && picker_active_window == NULL) + { + if (!value_changed_as_float) + for (int n = 0; n < 4; n++) + f[n] = i[n] / 255.0f; + if ((flags & ImGuiColorEditFlags_DisplayHSV) && (flags & ImGuiColorEditFlags_InputRGB)) + { + g.ColorEditSavedHue = f[0]; + g.ColorEditSavedSat = f[1]; + ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); + g.ColorEditSavedID = g.ColorEditCurrentID; + g.ColorEditSavedColor = ColorConvertFloat4ToU32(ImVec4(f[0], f[1], f[2], 0)); + } + if ((flags & ImGuiColorEditFlags_DisplayRGB) && (flags & ImGuiColorEditFlags_InputHSV)) + ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); + + col[0] = f[0]; + col[1] = f[1]; + col[2] = f[2]; + if (alpha) + col[3] = f[3]; + } + + if (set_current_color_edit_id) + g.ColorEditCurrentID = 0; + PopID(); + EndGroup(); + + // Drag and Drop Target + // NB: The flag test is merely an optional micro-optimization, BeginDragDropTarget() does the same test. + if ((g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect) && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropTarget()) + { + bool accepted_drag_drop = false; + if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) + { + memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512 //-V1086 + value_changed = accepted_drag_drop = true; + } + if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) + { + memcpy((float*)col, payload->Data, sizeof(float) * components); + value_changed = accepted_drag_drop = true; + } + + // Drag-drop payloads are always RGB + if (accepted_drag_drop && (flags & ImGuiColorEditFlags_InputHSV)) + ColorConvertRGBtoHSV(col[0], col[1], col[2], col[0], col[1], col[2]); + EndDragDropTarget(); + } + + // When picker is being actively used, use its active id so IsItemActive() will function on ColorEdit4(). + if (picker_active_window && g.ActiveId != 0 && g.ActiveIdWindow == picker_active_window) + g.LastItemData.ID = g.ActiveId; + + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +bool ImGui::ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags) +{ + float col4[4] = { col[0], col[1], col[2], 1.0f }; + if (!ColorPicker4(label, col4, flags | ImGuiColorEditFlags_NoAlpha)) + return false; + col[0] = col4[0]; col[1] = col4[1]; col[2] = col4[2]; + return true; +} + +// Helper for ColorPicker4() +static void RenderArrowsForVerticalBar(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, float bar_w, float alpha) +{ + ImU32 alpha8 = IM_F32_TO_INT8_SAT(alpha); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x + 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Right, IM_COL32(0,0,0,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x, pos.y), half_sz, ImGuiDir_Right, IM_COL32(255,255,255,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x - 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Left, IM_COL32(0,0,0,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x, pos.y), half_sz, ImGuiDir_Left, IM_COL32(255,255,255,alpha8)); +} + +// Note: ColorPicker4() only accesses 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +// (In C++ the 'float col[4]' notation for a function argument is equivalent to 'float* col', we only specify a size to facilitate understanding of the code.) +// FIXME: we adjust the big color square height based on item width, which may cause a flickering feedback loop (if automatic height makes a vertical scrollbar appears, affecting automatic width..) +// FIXME: this is trying to be aware of style.Alpha but not fully correct. Also, the color wheel will have overlapping glitches with (style.Alpha < 1.0) +bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags, const float* ref_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImDrawList* draw_list = window->DrawList; + ImGuiStyle& style = g.Style; + ImGuiIO& io = g.IO; + + const float width = CalcItemWidth(); + g.NextItemData.ClearFlags(); + + PushID(label); + const bool set_current_color_edit_id = (g.ColorEditCurrentID == 0); + if (set_current_color_edit_id) + g.ColorEditCurrentID = window->IDStack.back(); + BeginGroup(); + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + flags |= ImGuiColorEditFlags_NoSmallPreview; + + // Context menu: display and store options. + if (!(flags & ImGuiColorEditFlags_NoOptions)) + ColorPickerOptionsPopup(col, flags); + + // Read stored options + if (!(flags & ImGuiColorEditFlags_PickerMask_)) + flags |= ((g.ColorEditOptions & ImGuiColorEditFlags_PickerMask_) ? g.ColorEditOptions : ImGuiColorEditFlags_DefaultOptions_) & ImGuiColorEditFlags_PickerMask_; + if (!(flags & ImGuiColorEditFlags_InputMask_)) + flags |= ((g.ColorEditOptions & ImGuiColorEditFlags_InputMask_) ? g.ColorEditOptions : ImGuiColorEditFlags_DefaultOptions_) & ImGuiColorEditFlags_InputMask_; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_PickerMask_)); // Check that only 1 is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check that only 1 is selected + if (!(flags & ImGuiColorEditFlags_NoOptions)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_AlphaBar); + + // Setup + int components = (flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4; + bool alpha_bar = (flags & ImGuiColorEditFlags_AlphaBar) && !(flags & ImGuiColorEditFlags_NoAlpha); + ImVec2 picker_pos = window->DC.CursorPos; + float square_sz = GetFrameHeight(); + float bars_width = square_sz; // Arbitrary smallish width of Hue/Alpha picking bars + float sv_picker_size = ImMax(bars_width * 1, width - (alpha_bar ? 2 : 1) * (bars_width + style.ItemInnerSpacing.x)); // Saturation/Value picking box + float bar0_pos_x = picker_pos.x + sv_picker_size + style.ItemInnerSpacing.x; + float bar1_pos_x = bar0_pos_x + bars_width + style.ItemInnerSpacing.x; + float bars_triangles_half_sz = IM_TRUNC(bars_width * 0.20f); + + float backup_initial_col[4]; + memcpy(backup_initial_col, col, components * sizeof(float)); + + float wheel_thickness = sv_picker_size * 0.08f; + float wheel_r_outer = sv_picker_size * 0.50f; + float wheel_r_inner = wheel_r_outer - wheel_thickness; + ImVec2 wheel_center(picker_pos.x + (sv_picker_size + bars_width)*0.5f, picker_pos.y + sv_picker_size * 0.5f); + + // Note: the triangle is displayed rotated with triangle_pa pointing to Hue, but most coordinates stays unrotated for logic. + float triangle_r = wheel_r_inner - (int)(sv_picker_size * 0.027f); + ImVec2 triangle_pa = ImVec2(triangle_r, 0.0f); // Hue point. + ImVec2 triangle_pb = ImVec2(triangle_r * -0.5f, triangle_r * -0.866025f); // Black point. + ImVec2 triangle_pc = ImVec2(triangle_r * -0.5f, triangle_r * +0.866025f); // White point. + + float H = col[0], S = col[1], V = col[2]; + float R = col[0], G = col[1], B = col[2]; + if (flags & ImGuiColorEditFlags_InputRGB) + { + // Hue is lost when converting from grayscale rgb (saturation=0). Restore it. + ColorConvertRGBtoHSV(R, G, B, H, S, V); + ColorEditRestoreHS(col, &H, &S, &V); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + ColorConvertHSVtoRGB(H, S, V, R, G, B); + } + + bool value_changed = false, value_changed_h = false, value_changed_sv = false; + + PushItemFlag(ImGuiItemFlags_NoNav, true); + if (flags & ImGuiColorEditFlags_PickerHueWheel) + { + // Hue wheel + SV triangle logic + InvisibleButton("hsv", ImVec2(sv_picker_size + style.ItemInnerSpacing.x + bars_width, sv_picker_size)); + if (IsItemActive()) + { + ImVec2 initial_off = g.IO.MouseClickedPos[0] - wheel_center; + ImVec2 current_off = g.IO.MousePos - wheel_center; + float initial_dist2 = ImLengthSqr(initial_off); + if (initial_dist2 >= (wheel_r_inner - 1) * (wheel_r_inner - 1) && initial_dist2 <= (wheel_r_outer + 1) * (wheel_r_outer + 1)) + { + // Interactive with Hue wheel + H = ImAtan2(current_off.y, current_off.x) / IM_PI * 0.5f; + if (H < 0.0f) + H += 1.0f; + value_changed = value_changed_h = true; + } + float cos_hue_angle = ImCos(-H * 2.0f * IM_PI); + float sin_hue_angle = ImSin(-H * 2.0f * IM_PI); + if (ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, ImRotate(initial_off, cos_hue_angle, sin_hue_angle))) + { + // Interacting with SV triangle + ImVec2 current_off_unrotated = ImRotate(current_off, cos_hue_angle, sin_hue_angle); + if (!ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated)) + current_off_unrotated = ImTriangleClosestPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated); + float uu, vv, ww; + ImTriangleBarycentricCoords(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated, uu, vv, ww); + V = ImClamp(1.0f - vv, 0.0001f, 1.0f); + S = ImClamp(uu / V, 0.0001f, 1.0f); + value_changed = value_changed_sv = true; + } + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + else if (flags & ImGuiColorEditFlags_PickerHueBar) + { + // SV rectangle logic + InvisibleButton("sv", ImVec2(sv_picker_size, sv_picker_size)); + if (IsItemActive()) + { + S = ImSaturate((io.MousePos.x - picker_pos.x) / (sv_picker_size - 1)); + V = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + ColorEditRestoreH(col, &H); // Greatly reduces hue jitter and reset to 0 when hue == 255 and color is rapidly modified using SV square. + value_changed = value_changed_sv = true; + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + + // Hue bar logic + SetCursorScreenPos(ImVec2(bar0_pos_x, picker_pos.y)); + InvisibleButton("hue", ImVec2(bars_width, sv_picker_size)); + if (IsItemActive()) + { + H = ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + value_changed = value_changed_h = true; + } + } + + // Alpha bar logic + if (alpha_bar) + { + SetCursorScreenPos(ImVec2(bar1_pos_x, picker_pos.y)); + InvisibleButton("alpha", ImVec2(bars_width, sv_picker_size)); + if (IsItemActive()) + { + col[3] = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + value_changed = true; + } + } + PopItemFlag(); // ImGuiItemFlags_NoNav + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + { + SameLine(0, style.ItemInnerSpacing.x); + BeginGroup(); + } + + if (!(flags & ImGuiColorEditFlags_NoLabel)) + { + const char* label_display_end = FindRenderedTextEnd(label); + if (label != label_display_end) + { + if ((flags & ImGuiColorEditFlags_NoSidePreview)) + SameLine(0, style.ItemInnerSpacing.x); + TextEx(label, label_display_end); + } + } + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + { + PushItemFlag(ImGuiItemFlags_NoNavDefaultFocus, true); + ImVec4 col_v4(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + if ((flags & ImGuiColorEditFlags_NoLabel)) + Text("Current"); + + ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf | ImGuiColorEditFlags_NoTooltip; + ColorButton("##current", col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2)); + if (ref_col != NULL) + { + Text("Original"); + ImVec4 ref_col_v4(ref_col[0], ref_col[1], ref_col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : ref_col[3]); + if (ColorButton("##original", ref_col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2))) + { + memcpy(col, ref_col, components * sizeof(float)); + value_changed = true; + } + } + PopItemFlag(); + EndGroup(); + } + + // Convert back color to RGB + if (value_changed_h || value_changed_sv) + { + if (flags & ImGuiColorEditFlags_InputRGB) + { + ColorConvertHSVtoRGB(H, S, V, col[0], col[1], col[2]); + g.ColorEditSavedHue = H; + g.ColorEditSavedSat = S; + g.ColorEditSavedID = g.ColorEditCurrentID; + g.ColorEditSavedColor = ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0)); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + col[0] = H; + col[1] = S; + col[2] = V; + } + } + + // R,G,B and H,S,V slider color editor + bool value_changed_fix_hue_wrap = false; + if ((flags & ImGuiColorEditFlags_NoInputs) == 0) + { + PushItemWidth((alpha_bar ? bar1_pos_x : bar0_pos_x) + bars_width - picker_pos.x); + ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoSmallPreview | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf; + ImGuiColorEditFlags sub_flags = (flags & sub_flags_to_forward) | ImGuiColorEditFlags_NoPicker; + if (flags & ImGuiColorEditFlags_DisplayRGB || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + if (ColorEdit4("##rgb", col, sub_flags | ImGuiColorEditFlags_DisplayRGB)) + { + // FIXME: Hackily differentiating using the DragInt (ActiveId != 0 && !ActiveIdAllowOverlap) vs. using the InputText or DropTarget. + // For the later we don't want to run the hue-wrap canceling code. If you are well versed in HSV picker please provide your input! (See #2050) + value_changed_fix_hue_wrap = (g.ActiveId != 0 && !g.ActiveIdAllowOverlap); + value_changed = true; + } + if (flags & ImGuiColorEditFlags_DisplayHSV || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + value_changed |= ColorEdit4("##hsv", col, sub_flags | ImGuiColorEditFlags_DisplayHSV); + if (flags & ImGuiColorEditFlags_DisplayHex || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + value_changed |= ColorEdit4("##hex", col, sub_flags | ImGuiColorEditFlags_DisplayHex); + PopItemWidth(); + } + + // Try to cancel hue wrap (after ColorEdit4 call), if any + if (value_changed_fix_hue_wrap && (flags & ImGuiColorEditFlags_InputRGB)) + { + float new_H, new_S, new_V; + ColorConvertRGBtoHSV(col[0], col[1], col[2], new_H, new_S, new_V); + if (new_H <= 0 && H > 0) + { + if (new_V <= 0 && V != new_V) + ColorConvertHSVtoRGB(H, S, new_V <= 0 ? V * 0.5f : new_V, col[0], col[1], col[2]); + else if (new_S <= 0) + ColorConvertHSVtoRGB(H, new_S <= 0 ? S * 0.5f : new_S, new_V, col[0], col[1], col[2]); + } + } + + if (value_changed) + { + if (flags & ImGuiColorEditFlags_InputRGB) + { + R = col[0]; + G = col[1]; + B = col[2]; + ColorConvertRGBtoHSV(R, G, B, H, S, V); + ColorEditRestoreHS(col, &H, &S, &V); // Fix local Hue as display below will use it immediately. + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + H = col[0]; + S = col[1]; + V = col[2]; + ColorConvertHSVtoRGB(H, S, V, R, G, B); + } + } + + const int style_alpha8 = IM_F32_TO_INT8_SAT(style.Alpha); + const ImU32 col_black = IM_COL32(0,0,0,style_alpha8); + const ImU32 col_white = IM_COL32(255,255,255,style_alpha8); + const ImU32 col_midgrey = IM_COL32(128,128,128,style_alpha8); + const ImU32 col_hues[6 + 1] = { IM_COL32(255,0,0,style_alpha8), IM_COL32(255,255,0,style_alpha8), IM_COL32(0,255,0,style_alpha8), IM_COL32(0,255,255,style_alpha8), IM_COL32(0,0,255,style_alpha8), IM_COL32(255,0,255,style_alpha8), IM_COL32(255,0,0,style_alpha8) }; + + ImVec4 hue_color_f(1, 1, 1, style.Alpha); ColorConvertHSVtoRGB(H, 1, 1, hue_color_f.x, hue_color_f.y, hue_color_f.z); + ImU32 hue_color32 = ColorConvertFloat4ToU32(hue_color_f); + ImU32 user_col32_striped_of_alpha = ColorConvertFloat4ToU32(ImVec4(R, G, B, style.Alpha)); // Important: this is still including the main rendering/style alpha!! + + ImVec2 sv_cursor_pos; + + if (flags & ImGuiColorEditFlags_PickerHueWheel) + { + // Render Hue Wheel + const float aeps = 0.5f / wheel_r_outer; // Half a pixel arc length in radians (2pi cancels out). + const int segment_per_arc = ImMax(4, (int)wheel_r_outer / 12); + for (int n = 0; n < 6; n++) + { + const float a0 = (n) /6.0f * 2.0f * IM_PI - aeps; + const float a1 = (n+1.0f)/6.0f * 2.0f * IM_PI + aeps; + const int vert_start_idx = draw_list->VtxBuffer.Size; + draw_list->PathArcTo(wheel_center, (wheel_r_inner + wheel_r_outer)*0.5f, a0, a1, segment_per_arc); + draw_list->PathStroke(col_white, 0, wheel_thickness); + const int vert_end_idx = draw_list->VtxBuffer.Size; + + // Paint colors over existing vertices + ImVec2 gradient_p0(wheel_center.x + ImCos(a0) * wheel_r_inner, wheel_center.y + ImSin(a0) * wheel_r_inner); + ImVec2 gradient_p1(wheel_center.x + ImCos(a1) * wheel_r_inner, wheel_center.y + ImSin(a1) * wheel_r_inner); + ShadeVertsLinearColorGradientKeepAlpha(draw_list, vert_start_idx, vert_end_idx, gradient_p0, gradient_p1, col_hues[n], col_hues[n + 1]); + } + + // Render Cursor + preview on Hue Wheel + float cos_hue_angle = ImCos(H * 2.0f * IM_PI); + float sin_hue_angle = ImSin(H * 2.0f * IM_PI); + ImVec2 hue_cursor_pos(wheel_center.x + cos_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f, wheel_center.y + sin_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f); + float hue_cursor_rad = value_changed_h ? wheel_thickness * 0.65f : wheel_thickness * 0.55f; + int hue_cursor_segments = draw_list->_CalcCircleAutoSegmentCount(hue_cursor_rad); // Lock segment count so the +1 one matches others. + draw_list->AddCircleFilled(hue_cursor_pos, hue_cursor_rad, hue_color32, hue_cursor_segments); + draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad + 1, col_midgrey, hue_cursor_segments); + draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad, col_white, hue_cursor_segments); + + // Render SV triangle (rotated according to hue) + ImVec2 tra = wheel_center + ImRotate(triangle_pa, cos_hue_angle, sin_hue_angle); + ImVec2 trb = wheel_center + ImRotate(triangle_pb, cos_hue_angle, sin_hue_angle); + ImVec2 trc = wheel_center + ImRotate(triangle_pc, cos_hue_angle, sin_hue_angle); + ImVec2 uv_white = GetFontTexUvWhitePixel(); + draw_list->PrimReserve(3, 3); + draw_list->PrimVtx(tra, uv_white, hue_color32); + draw_list->PrimVtx(trb, uv_white, col_black); + draw_list->PrimVtx(trc, uv_white, col_white); + draw_list->AddTriangle(tra, trb, trc, col_midgrey, 1.5f); + sv_cursor_pos = ImLerp(ImLerp(trc, tra, ImSaturate(S)), trb, ImSaturate(1 - V)); + } + else if (flags & ImGuiColorEditFlags_PickerHueBar) + { + // Render SV Square + draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), col_white, hue_color32, hue_color32, col_white); + draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0, 0, col_black, col_black); + RenderFrameBorder(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0.0f); + sv_cursor_pos.x = ImClamp(IM_ROUND(picker_pos.x + ImSaturate(S) * sv_picker_size), picker_pos.x + 2, picker_pos.x + sv_picker_size - 2); // Sneakily prevent the circle to stick out too much + sv_cursor_pos.y = ImClamp(IM_ROUND(picker_pos.y + ImSaturate(1 - V) * sv_picker_size), picker_pos.y + 2, picker_pos.y + sv_picker_size - 2); + + // Render Hue Bar + for (int i = 0; i < 6; ++i) + draw_list->AddRectFilledMultiColor(ImVec2(bar0_pos_x, picker_pos.y + i * (sv_picker_size / 6)), ImVec2(bar0_pos_x + bars_width, picker_pos.y + (i + 1) * (sv_picker_size / 6)), col_hues[i], col_hues[i], col_hues[i + 1], col_hues[i + 1]); + float bar0_line_y = IM_ROUND(picker_pos.y + H * sv_picker_size); + RenderFrameBorder(ImVec2(bar0_pos_x, picker_pos.y), ImVec2(bar0_pos_x + bars_width, picker_pos.y + sv_picker_size), 0.0f); + RenderArrowsForVerticalBar(draw_list, ImVec2(bar0_pos_x - 1, bar0_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); + } + + // Render cursor/preview circle (clamp S/V within 0..1 range because floating points colors may lead HSV values to be out of range) + float sv_cursor_rad = value_changed_sv ? 10.0f : 6.0f; + int sv_cursor_segments = draw_list->_CalcCircleAutoSegmentCount(sv_cursor_rad); // Lock segment count so the +1 one matches others. + draw_list->AddCircleFilled(sv_cursor_pos, sv_cursor_rad, user_col32_striped_of_alpha, sv_cursor_segments); + draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad + 1, col_midgrey, sv_cursor_segments); + draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad, col_white, sv_cursor_segments); + + // Render alpha bar + if (alpha_bar) + { + float alpha = ImSaturate(col[3]); + ImRect bar1_bb(bar1_pos_x, picker_pos.y, bar1_pos_x + bars_width, picker_pos.y + sv_picker_size); + RenderColorRectWithAlphaCheckerboard(draw_list, bar1_bb.Min, bar1_bb.Max, 0, bar1_bb.GetWidth() / 2.0f, ImVec2(0.0f, 0.0f)); + draw_list->AddRectFilledMultiColor(bar1_bb.Min, bar1_bb.Max, user_col32_striped_of_alpha, user_col32_striped_of_alpha, user_col32_striped_of_alpha & ~IM_COL32_A_MASK, user_col32_striped_of_alpha & ~IM_COL32_A_MASK); + float bar1_line_y = IM_ROUND(picker_pos.y + (1.0f - alpha) * sv_picker_size); + RenderFrameBorder(bar1_bb.Min, bar1_bb.Max, 0.0f); + RenderArrowsForVerticalBar(draw_list, ImVec2(bar1_pos_x - 1, bar1_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); + } + + EndGroup(); + + if (value_changed && memcmp(backup_initial_col, col, components * sizeof(float)) == 0) + value_changed = false; + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId + MarkItemEdited(g.LastItemData.ID); + + if (set_current_color_edit_id) + g.ColorEditCurrentID = 0; + PopID(); + + return value_changed; +} + +// A little color square. Return true when clicked. +// FIXME: May want to display/ignore the alpha component in the color display? Yet show it in the tooltip. +// 'desc_id' is not called 'label' because we don't display it next to the button, but only in the tooltip. +// Note that 'col' may be encoded in HSV if ImGuiColorEditFlags_InputHSV is set. +bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, const ImVec2& size_arg) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiID id = window->GetID(desc_id); + const float default_size = GetFrameHeight(); + const ImVec2 size(size_arg.x == 0.0f ? default_size : size_arg.x, size_arg.y == 0.0f ? default_size : size_arg.y); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(bb, (size.y >= default_size) ? g.Style.FramePadding.y : 0.0f); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + + if (flags & ImGuiColorEditFlags_NoAlpha) + flags &= ~(ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf); + + ImVec4 col_rgb = col; + if (flags & ImGuiColorEditFlags_InputHSV) + ColorConvertHSVtoRGB(col_rgb.x, col_rgb.y, col_rgb.z, col_rgb.x, col_rgb.y, col_rgb.z); + + ImVec4 col_rgb_without_alpha(col_rgb.x, col_rgb.y, col_rgb.z, 1.0f); + float grid_step = ImMin(size.x, size.y) / 2.99f; + float rounding = ImMin(g.Style.FrameRounding, grid_step * 0.5f); + ImRect bb_inner = bb; + float off = 0.0f; + if ((flags & ImGuiColorEditFlags_NoBorder) == 0) + { + off = -0.75f; // The border (using Col_FrameBg) tends to look off when color is near-opaque and rounding is enabled. This offset seemed like a good middle ground to reduce those artifacts. + bb_inner.Expand(off); + } + if ((flags & ImGuiColorEditFlags_AlphaPreviewHalf) && col_rgb.w < 1.0f) + { + float mid_x = IM_ROUND((bb_inner.Min.x + bb_inner.Max.x) * 0.5f); + RenderColorRectWithAlphaCheckerboard(window->DrawList, ImVec2(bb_inner.Min.x + grid_step, bb_inner.Min.y), bb_inner.Max, GetColorU32(col_rgb), grid_step, ImVec2(-grid_step + off, off), rounding, ImDrawFlags_RoundCornersRight); + window->DrawList->AddRectFilled(bb_inner.Min, ImVec2(mid_x, bb_inner.Max.y), GetColorU32(col_rgb_without_alpha), rounding, ImDrawFlags_RoundCornersLeft); + } + else + { + // Because GetColorU32() multiplies by the global style Alpha and we don't want to display a checkerboard if the source code had no alpha + ImVec4 col_source = (flags & ImGuiColorEditFlags_AlphaPreview) ? col_rgb : col_rgb_without_alpha; + if (col_source.w < 1.0f) + RenderColorRectWithAlphaCheckerboard(window->DrawList, bb_inner.Min, bb_inner.Max, GetColorU32(col_source), grid_step, ImVec2(off, off), rounding); + else + window->DrawList->AddRectFilled(bb_inner.Min, bb_inner.Max, GetColorU32(col_source), rounding); + } + RenderNavHighlight(bb, id); + if ((flags & ImGuiColorEditFlags_NoBorder) == 0) + { + if (g.Style.FrameBorderSize > 0.0f) + RenderFrameBorder(bb.Min, bb.Max, rounding); + else + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), rounding); // Color button are often in need of some sort of border + } + + // Drag and Drop Source + // NB: The ActiveId test is merely an optional micro-optimization, BeginDragDropSource() does the same test. + if (g.ActiveId == id && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropSource()) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F, &col_rgb, sizeof(float) * 3, ImGuiCond_Once); + else + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F, &col_rgb, sizeof(float) * 4, ImGuiCond_Once); + ColorButton(desc_id, col, flags); + SameLine(); + TextEx("Color"); + EndDragDropSource(); + } + + // Tooltip + if (!(flags & ImGuiColorEditFlags_NoTooltip) && hovered && IsItemHovered(ImGuiHoveredFlags_ForTooltip)) + ColorTooltip(desc_id, &col.x, flags & (ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)); + + return pressed; +} + +// Initialize/override default color options +void ImGui::SetColorEditOptions(ImGuiColorEditFlags flags) +{ + ImGuiContext& g = *GImGui; + if ((flags & ImGuiColorEditFlags_DisplayMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_DisplayMask_; + if ((flags & ImGuiColorEditFlags_DataTypeMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_DataTypeMask_; + if ((flags & ImGuiColorEditFlags_PickerMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_PickerMask_; + if ((flags & ImGuiColorEditFlags_InputMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_InputMask_; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DisplayMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DataTypeMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_PickerMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check only 1 option is selected + g.ColorEditOptions = flags; +} + +// Note: only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +void ImGui::ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags) +{ + ImGuiContext& g = *GImGui; + + if (!BeginTooltipEx(ImGuiTooltipFlags_OverridePrevious, ImGuiWindowFlags_None)) + return; + const char* text_end = text ? FindRenderedTextEnd(text, NULL) : text; + if (text_end > text) + { + TextEx(text, text_end); + Separator(); + } + + ImVec2 sz(g.FontSize * 3 + g.Style.FramePadding.y * 2, g.FontSize * 3 + g.Style.FramePadding.y * 2); + ImVec4 cf(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); + ColorButton("##preview", cf, (flags & (ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)) | ImGuiColorEditFlags_NoTooltip, sz); + SameLine(); + if ((flags & ImGuiColorEditFlags_InputRGB) || !(flags & ImGuiColorEditFlags_InputMask_)) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + Text("#%02X%02X%02X\nR: %d, G: %d, B: %d\n(%.3f, %.3f, %.3f)", cr, cg, cb, cr, cg, cb, col[0], col[1], col[2]); + else + Text("#%02X%02X%02X%02X\nR:%d, G:%d, B:%d, A:%d\n(%.3f, %.3f, %.3f, %.3f)", cr, cg, cb, ca, cr, cg, cb, ca, col[0], col[1], col[2], col[3]); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + Text("H: %.3f, S: %.3f, V: %.3f", col[0], col[1], col[2]); + else + Text("H: %.3f, S: %.3f, V: %.3f, A: %.3f", col[0], col[1], col[2], col[3]); + } + EndTooltip(); +} + +void ImGui::ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags) +{ + bool allow_opt_inputs = !(flags & ImGuiColorEditFlags_DisplayMask_); + bool allow_opt_datatype = !(flags & ImGuiColorEditFlags_DataTypeMask_); + if ((!allow_opt_inputs && !allow_opt_datatype) || !BeginPopup("context")) + return; + ImGuiContext& g = *GImGui; + g.LockMarkEdited++; + ImGuiColorEditFlags opts = g.ColorEditOptions; + if (allow_opt_inputs) + { + if (RadioButton("RGB", (opts & ImGuiColorEditFlags_DisplayRGB) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayRGB; + if (RadioButton("HSV", (opts & ImGuiColorEditFlags_DisplayHSV) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayHSV; + if (RadioButton("Hex", (opts & ImGuiColorEditFlags_DisplayHex) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayHex; + } + if (allow_opt_datatype) + { + if (allow_opt_inputs) Separator(); + if (RadioButton("0..255", (opts & ImGuiColorEditFlags_Uint8) != 0)) opts = (opts & ~ImGuiColorEditFlags_DataTypeMask_) | ImGuiColorEditFlags_Uint8; + if (RadioButton("0.00..1.00", (opts & ImGuiColorEditFlags_Float) != 0)) opts = (opts & ~ImGuiColorEditFlags_DataTypeMask_) | ImGuiColorEditFlags_Float; + } + + if (allow_opt_inputs || allow_opt_datatype) + Separator(); + if (Button("Copy as..", ImVec2(-1, 0))) + OpenPopup("Copy"); + if (BeginPopup("Copy")) + { + int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); + char buf[64]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%.3ff, %.3ff, %.3ff, %.3ff)", col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + if (Selectable(buf)) + SetClipboardText(buf); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%d,%d,%d,%d)", cr, cg, cb, ca); + if (Selectable(buf)) + SetClipboardText(buf); + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", cr, cg, cb); + if (Selectable(buf)) + SetClipboardText(buf); + if (!(flags & ImGuiColorEditFlags_NoAlpha)) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", cr, cg, cb, ca); + if (Selectable(buf)) + SetClipboardText(buf); + } + EndPopup(); + } + + g.ColorEditOptions = opts; + EndPopup(); + g.LockMarkEdited--; +} + +void ImGui::ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags) +{ + bool allow_opt_picker = !(flags & ImGuiColorEditFlags_PickerMask_); + bool allow_opt_alpha_bar = !(flags & ImGuiColorEditFlags_NoAlpha) && !(flags & ImGuiColorEditFlags_AlphaBar); + if ((!allow_opt_picker && !allow_opt_alpha_bar) || !BeginPopup("context")) + return; + ImGuiContext& g = *GImGui; + g.LockMarkEdited++; + if (allow_opt_picker) + { + ImVec2 picker_size(g.FontSize * 8, ImMax(g.FontSize * 8 - (GetFrameHeight() + g.Style.ItemInnerSpacing.x), 1.0f)); // FIXME: Picker size copied from main picker function + PushItemWidth(picker_size.x); + for (int picker_type = 0; picker_type < 2; picker_type++) + { + // Draw small/thumbnail version of each picker type (over an invisible button for selection) + if (picker_type > 0) Separator(); + PushID(picker_type); + ImGuiColorEditFlags picker_flags = ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_NoSidePreview | (flags & ImGuiColorEditFlags_NoAlpha); + if (picker_type == 0) picker_flags |= ImGuiColorEditFlags_PickerHueBar; + if (picker_type == 1) picker_flags |= ImGuiColorEditFlags_PickerHueWheel; + ImVec2 backup_pos = GetCursorScreenPos(); + if (Selectable("##selectable", false, 0, picker_size)) // By default, Selectable() is closing popup + g.ColorEditOptions = (g.ColorEditOptions & ~ImGuiColorEditFlags_PickerMask_) | (picker_flags & ImGuiColorEditFlags_PickerMask_); + SetCursorScreenPos(backup_pos); + ImVec4 previewing_ref_col; + memcpy(&previewing_ref_col, ref_col, sizeof(float) * ((picker_flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4)); + ColorPicker4("##previewing_picker", &previewing_ref_col.x, picker_flags); + PopID(); + } + PopItemWidth(); + } + if (allow_opt_alpha_bar) + { + if (allow_opt_picker) Separator(); + CheckboxFlags("Alpha Bar", &g.ColorEditOptions, ImGuiColorEditFlags_AlphaBar); + } + EndPopup(); + g.LockMarkEdited--; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. +//------------------------------------------------------------------------- +// - TreeNode() +// - TreeNodeV() +// - TreeNodeEx() +// - TreeNodeExV() +// - TreeNodeBehavior() [Internal] +// - TreePush() +// - TreePop() +// - GetTreeNodeToLabelSpacing() +// - SetNextItemOpen() +// - CollapsingHeader() +//------------------------------------------------------------------------- + +bool ImGui::TreeNode(const char* str_id, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(str_id, 0, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNode(const void* ptr_id, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(ptr_id, 0, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNode(const char* label) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + return TreeNodeBehavior(window->GetID(label), 0, label, NULL); +} + +bool ImGui::TreeNodeV(const char* str_id, const char* fmt, va_list args) +{ + return TreeNodeExV(str_id, 0, fmt, args); +} + +bool ImGui::TreeNodeV(const void* ptr_id, const char* fmt, va_list args) +{ + return TreeNodeExV(ptr_id, 0, fmt, args); +} + +bool ImGui::TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + return TreeNodeBehavior(window->GetID(label), flags, label, NULL); +} + +bool ImGui::TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(str_id, flags, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(ptr_id, flags, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(str_id), flags, label, label_end); +} + +bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(ptr_id), flags, label, label_end); +} + +void ImGui::TreeNodeSetOpen(ImGuiID id, bool open) +{ + ImGuiContext& g = *GImGui; + ImGuiStorage* storage = g.CurrentWindow->DC.StateStorage; + storage->SetInt(id, open ? 1 : 0); +} + +bool ImGui::TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags) +{ + if (flags & ImGuiTreeNodeFlags_Leaf) + return true; + + // We only write to the tree storage if the user clicks (or explicitly use the SetNextItemOpen function) + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiStorage* storage = window->DC.StateStorage; + + bool is_open; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasOpen) + { + if (g.NextItemData.OpenCond & ImGuiCond_Always) + { + is_open = g.NextItemData.OpenVal; + TreeNodeSetOpen(id, is_open); + } + else + { + // We treat ImGuiCond_Once and ImGuiCond_FirstUseEver the same because tree node state are not saved persistently. + const int stored_value = storage->GetInt(id, -1); + if (stored_value == -1) + { + is_open = g.NextItemData.OpenVal; + TreeNodeSetOpen(id, is_open); + } + else + { + is_open = stored_value != 0; + } + } + } + else + { + is_open = storage->GetInt(id, (flags & ImGuiTreeNodeFlags_DefaultOpen) ? 1 : 0) != 0; + } + + // When logging is enabled, we automatically expand tree nodes (but *NOT* collapsing headers.. seems like sensible behavior). + // NB- If we are above max depth we still allow manually opened nodes to be logged. + if (g.LogEnabled && !(flags & ImGuiTreeNodeFlags_NoAutoOpenOnLog) && (window->DC.TreeDepth - g.LogDepthRef) < g.LogDepthToExpand) + is_open = true; + + return is_open; +} + +bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const bool display_frame = (flags & ImGuiTreeNodeFlags_Framed) != 0; + const ImVec2 padding = (display_frame || (flags & ImGuiTreeNodeFlags_FramePadding)) ? style.FramePadding : ImVec2(style.FramePadding.x, ImMin(window->DC.CurrLineTextBaseOffset, style.FramePadding.y)); + + if (!label_end) + label_end = FindRenderedTextEnd(label); + const ImVec2 label_size = CalcTextSize(label, label_end, false); + + // We vertically grow up to current line height up the typical widget height. + const float frame_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), label_size.y + padding.y * 2); + const bool span_all_columns = (flags & ImGuiTreeNodeFlags_SpanAllColumns) != 0 && (g.CurrentTable != NULL); + ImRect frame_bb; + frame_bb.Min.x = span_all_columns ? window->ParentWorkRect.Min.x : (flags & ImGuiTreeNodeFlags_SpanFullWidth) ? window->WorkRect.Min.x : window->DC.CursorPos.x; + frame_bb.Min.y = window->DC.CursorPos.y; + frame_bb.Max.x = span_all_columns ? window->ParentWorkRect.Max.x : window->WorkRect.Max.x; + frame_bb.Max.y = window->DC.CursorPos.y + frame_height; + if (display_frame) + { + // Framed header expand a little outside the default padding, to the edge of InnerClipRect + // (FIXME: May remove this at some point and make InnerClipRect align with WindowPadding.x instead of WindowPadding.x*0.5f) + frame_bb.Min.x -= IM_TRUNC(window->WindowPadding.x * 0.5f - 1.0f); + frame_bb.Max.x += IM_TRUNC(window->WindowPadding.x * 0.5f); + } + + const float text_offset_x = g.FontSize + (display_frame ? padding.x * 3 : padding.x * 2); // Collapsing arrow width + Spacing + const float text_offset_y = ImMax(padding.y, window->DC.CurrLineTextBaseOffset); // Latch before ItemSize changes it + const float text_width = g.FontSize + (label_size.x > 0.0f ? label_size.x + padding.x * 2 : 0.0f); // Include collapsing + ImVec2 text_pos(window->DC.CursorPos.x + text_offset_x, window->DC.CursorPos.y + text_offset_y); + ItemSize(ImVec2(text_width, frame_height), padding.y); + + // For regular tree nodes, we arbitrary allow to click past 2 worth of ItemSpacing + ImRect interact_bb = frame_bb; + if (!display_frame && (flags & (ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_SpanFullWidth | ImGuiTreeNodeFlags_SpanAllColumns)) == 0) + interact_bb.Max.x = frame_bb.Min.x + text_width + style.ItemSpacing.x * 2.0f; + + // Modify ClipRect for the ItemAdd(), faster than doing a PushColumnsBackground/PushTableBackgroundChannel for every Selectable.. + const float backup_clip_rect_min_x = window->ClipRect.Min.x; + const float backup_clip_rect_max_x = window->ClipRect.Max.x; + if (span_all_columns) + { + window->ClipRect.Min.x = window->ParentWorkRect.Min.x; + window->ClipRect.Max.x = window->ParentWorkRect.Max.x; + } + + // Compute open and multi-select states before ItemAdd() as it clear NextItem data. + bool is_open = TreeNodeUpdateNextOpen(id, flags); + bool item_add = ItemAdd(interact_bb, id); + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HasDisplayRect; + g.LastItemData.DisplayRect = frame_bb; + + if (span_all_columns) + { + window->ClipRect.Min.x = backup_clip_rect_min_x; + window->ClipRect.Max.x = backup_clip_rect_max_x; + } + + // If a NavLeft request is happening and ImGuiTreeNodeFlags_NavLeftJumpsBackHere enabled: + // Store data for the current depth to allow returning to this node from any child item. + // For this purpose we essentially compare if g.NavIdIsAlive went from 0 to 1 between TreeNode() and TreePop(). + // It will become tempting to enable ImGuiTreeNodeFlags_NavLeftJumpsBackHere by default or move it to ImGuiStyle. + // Currently only supports 32 level deep and we are fine with (1 << Depth) overflowing into a zero, easy to increase. + if (is_open && !g.NavIdIsAlive && (flags & ImGuiTreeNodeFlags_NavLeftJumpsBackHere) && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + if (g.NavMoveDir == ImGuiDir_Left && g.NavWindow == window && NavMoveRequestButNoResultYet()) + { + g.NavTreeNodeStack.resize(g.NavTreeNodeStack.Size + 1); + ImGuiNavTreeNodeData* nav_tree_node_data = &g.NavTreeNodeStack.back(); + nav_tree_node_data->ID = id; + nav_tree_node_data->InFlags = g.LastItemData.InFlags; + nav_tree_node_data->NavRect = g.LastItemData.NavRect; + window->DC.TreeJumpToParentOnPopMask |= (1 << window->DC.TreeDepth); + } + + const bool is_leaf = (flags & ImGuiTreeNodeFlags_Leaf) != 0; + if (!item_add) + { + if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + TreePushOverrideID(id); + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); + return is_open; + } + + if (span_all_columns) + TablePushBackgroundChannel(); + + ImGuiButtonFlags button_flags = ImGuiTreeNodeFlags_None; + if ((flags & ImGuiTreeNodeFlags_AllowOverlap) || (g.LastItemData.InFlags & ImGuiItemFlags_AllowOverlap)) + button_flags |= ImGuiButtonFlags_AllowOverlap; + if (!is_leaf) + button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; + + // We allow clicking on the arrow section with keyboard modifiers held, in order to easily + // allow browsing a tree while preserving selection with code implementing multi-selection patterns. + // When clicking on the rest of the tree node we always disallow keyboard modifiers. + const float arrow_hit_x1 = (text_pos.x - text_offset_x) - style.TouchExtraPadding.x; + const float arrow_hit_x2 = (text_pos.x - text_offset_x) + (g.FontSize + padding.x * 2.0f) + style.TouchExtraPadding.x; + const bool is_mouse_x_over_arrow = (g.IO.MousePos.x >= arrow_hit_x1 && g.IO.MousePos.x < arrow_hit_x2); + if (window != g.HoveredWindow || !is_mouse_x_over_arrow) + button_flags |= ImGuiButtonFlags_NoKeyModifiers; + + // Open behaviors can be altered with the _OpenOnArrow and _OnOnDoubleClick flags. + // Some alteration have subtle effects (e.g. toggle on MouseUp vs MouseDown events) due to requirements for multi-selection and drag and drop support. + // - Single-click on label = Toggle on MouseUp (default, when _OpenOnArrow=0) + // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=0) + // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=1) + // - Double-click on label = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1) + // - Double-click on arrow = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1 and _OpenOnArrow=0) + // It is rather standard that arrow click react on Down rather than Up. + // We set ImGuiButtonFlags_PressedOnClickRelease on OpenOnDoubleClick because we want the item to be active on the initial MouseDown in order for drag and drop to work. + if (is_mouse_x_over_arrow) + button_flags |= ImGuiButtonFlags_PressedOnClick; + else if (flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) + button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; + else + button_flags |= ImGuiButtonFlags_PressedOnClickRelease; + + bool selected = (flags & ImGuiTreeNodeFlags_Selected) != 0; + const bool was_selected = selected; + + bool hovered, held; + bool pressed = ButtonBehavior(interact_bb, id, &hovered, &held, button_flags); + bool toggled = false; + if (!is_leaf) + { + if (pressed && g.DragDropHoldJustPressedId != id) + { + if ((flags & (ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick)) == 0 || (g.NavActivateId == id)) + toggled = true; + if (flags & ImGuiTreeNodeFlags_OpenOnArrow) + toggled |= is_mouse_x_over_arrow && !g.NavDisableMouseHover; // Lightweight equivalent of IsMouseHoveringRect() since ButtonBehavior() already did the job + if ((flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) && g.IO.MouseClickedCount[0] == 2) + toggled = true; + } + else if (pressed && g.DragDropHoldJustPressedId == id) + { + IM_ASSERT(button_flags & ImGuiButtonFlags_PressedOnDragDropHold); + if (!is_open) // When using Drag and Drop "hold to open" we keep the node highlighted after opening, but never close it again. + toggled = true; + } + + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Left && is_open) + { + toggled = true; + NavClearPreferredPosForAxis(ImGuiAxis_X); + NavMoveRequestCancel(); + } + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Right && !is_open) // If there's something upcoming on the line we may want to give it the priority? + { + toggled = true; + NavClearPreferredPosForAxis(ImGuiAxis_X); + NavMoveRequestCancel(); + } + + if (toggled) + { + is_open = !is_open; + window->DC.StateStorage->SetInt(id, is_open); + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledOpen; + } + } + + // In this branch, TreeNodeBehavior() cannot toggle the selection so this will never trigger. + if (selected != was_selected) //-V547 + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledSelection; + + // Render + const ImU32 text_col = GetColorU32(ImGuiCol_Text); + ImGuiNavHighlightFlags nav_highlight_flags = ImGuiNavHighlightFlags_TypeThin; + if (display_frame) + { + // Framed type + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, true, style.FrameRounding); + RenderNavHighlight(frame_bb, id, nav_highlight_flags); + if (flags & ImGuiTreeNodeFlags_Bullet) + RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.60f, text_pos.y + g.FontSize * 0.5f), text_col); + else if (!is_leaf) + RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y), text_col, is_open ? ((flags & ImGuiTreeNodeFlags_UpsideDownArrow) ? ImGuiDir_Up : ImGuiDir_Down) : ImGuiDir_Right, 1.0f); + else // Leaf without bullet, left-adjusted text + text_pos.x -= text_offset_x -padding.x; + if (flags & ImGuiTreeNodeFlags_ClipLabelForTrailingButton) + frame_bb.Max.x -= g.FontSize + style.FramePadding.x; + + if (g.LogEnabled) + LogSetNextTextDecoration("###", "###"); + } + else + { + // Unframed typed for tree nodes + if (hovered || selected) + { + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, false); + } + RenderNavHighlight(frame_bb, id, nav_highlight_flags); + if (flags & ImGuiTreeNodeFlags_Bullet) + RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.5f, text_pos.y + g.FontSize * 0.5f), text_col); + else if (!is_leaf) + RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y + g.FontSize * 0.15f), text_col, is_open ? ((flags & ImGuiTreeNodeFlags_UpsideDownArrow) ? ImGuiDir_Up : ImGuiDir_Down) : ImGuiDir_Right, 0.70f); + if (g.LogEnabled) + LogSetNextTextDecoration(">", NULL); + } + + if (span_all_columns) + TablePopBackgroundChannel(); + + // Label + if (display_frame) + RenderTextClipped(text_pos, frame_bb.Max, label, label_end, &label_size); + else + RenderText(text_pos, label, label_end, false); + + if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + TreePushOverrideID(id); + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); + return is_open; +} + +void ImGui::TreePush(const char* str_id) +{ + ImGuiWindow* window = GetCurrentWindow(); + Indent(); + window->DC.TreeDepth++; + PushID(str_id); +} + +void ImGui::TreePush(const void* ptr_id) +{ + ImGuiWindow* window = GetCurrentWindow(); + Indent(); + window->DC.TreeDepth++; + PushID(ptr_id); +} + +void ImGui::TreePushOverrideID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + Indent(); + window->DC.TreeDepth++; + PushOverrideID(id); +} + +void ImGui::TreePop() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + Unindent(); + + window->DC.TreeDepth--; + ImU32 tree_depth_mask = (1 << window->DC.TreeDepth); + + // Handle Left arrow to move to parent tree node (when ImGuiTreeNodeFlags_NavLeftJumpsBackHere is enabled) + if (window->DC.TreeJumpToParentOnPopMask & tree_depth_mask) // Only set during request + { + ImGuiNavTreeNodeData* nav_tree_node_data = &g.NavTreeNodeStack.back(); + IM_ASSERT(nav_tree_node_data->ID == window->IDStack.back()); + if (g.NavIdIsAlive && g.NavMoveDir == ImGuiDir_Left && g.NavWindow == window && NavMoveRequestButNoResultYet()) + NavMoveRequestResolveWithPastTreeNode(&g.NavMoveResultLocal, nav_tree_node_data); + g.NavTreeNodeStack.pop_back(); + } + window->DC.TreeJumpToParentOnPopMask &= tree_depth_mask - 1; + + IM_ASSERT(window->IDStack.Size > 1); // There should always be 1 element in the IDStack (pushed during window creation). If this triggers you called TreePop/PopID too much. + PopID(); +} + +// Horizontal distance preceding label when using TreeNode() or Bullet() +float ImGui::GetTreeNodeToLabelSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + (g.Style.FramePadding.x * 2.0f); +} + +// Set next TreeNode/CollapsingHeader open state. +void ImGui::SetNextItemOpen(bool is_open, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + if (g.CurrentWindow->SkipItems) + return; + g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasOpen; + g.NextItemData.OpenVal = is_open; + g.NextItemData.OpenCond = cond ? cond : ImGuiCond_Always; +} + +// CollapsingHeader returns true when opened but do not indent nor push into the ID stack (because of the ImGuiTreeNodeFlags_NoTreePushOnOpen flag). +// This is basically the same as calling TreeNodeEx(label, ImGuiTreeNodeFlags_CollapsingHeader). You can remove the _NoTreePushOnOpen flag if you want behavior closer to normal TreeNode(). +bool ImGui::CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + return TreeNodeBehavior(window->GetID(label), flags | ImGuiTreeNodeFlags_CollapsingHeader, label); +} + +// p_visible == NULL : regular collapsing header +// p_visible != NULL && *p_visible == true : show a small close button on the corner of the header, clicking the button will set *p_visible = false +// p_visible != NULL && *p_visible == false : do not show the header at all +// Do not mistake this with the Open state of the header itself, which you can adjust with SetNextItemOpen() or ImGuiTreeNodeFlags_DefaultOpen. +bool ImGui::CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + if (p_visible && !*p_visible) + return false; + + ImGuiID id = window->GetID(label); + flags |= ImGuiTreeNodeFlags_CollapsingHeader; + if (p_visible) + flags |= ImGuiTreeNodeFlags_AllowOverlap | ImGuiTreeNodeFlags_ClipLabelForTrailingButton; + bool is_open = TreeNodeBehavior(id, flags, label); + if (p_visible != NULL) + { + // Create a small overlapping close button + // FIXME: We can evolve this into user accessible helpers to add extra buttons on title bars, headers, etc. + // FIXME: CloseButton can overlap into text, need find a way to clip the text somehow. + ImGuiContext& g = *GImGui; + ImGuiLastItemData last_item_backup = g.LastItemData; + float button_size = g.FontSize; + float button_x = ImMax(g.LastItemData.Rect.Min.x, g.LastItemData.Rect.Max.x - g.Style.FramePadding.x - button_size); + float button_y = g.LastItemData.Rect.Min.y + g.Style.FramePadding.y; + ImGuiID close_button_id = GetIDWithSeed("#CLOSE", NULL, id); + if (CloseButton(close_button_id, ImVec2(button_x, button_y))) + *p_visible = false; + g.LastItemData = last_item_backup; + } + + return is_open; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Selectable +//------------------------------------------------------------------------- +// - Selectable() +//------------------------------------------------------------------------- + +// Tip: pass a non-visible label (e.g. "##hello") then you can use the space to draw other text or image. +// But you need to make sure the ID is unique, e.g. enclose calls in PushID/PopID or use ##unique_id. +// With this scheme, ImGuiSelectableFlags_SpanAllColumns and ImGuiSelectableFlags_AllowOverlap are also frequently used flags. +// FIXME: Selectable() with (size.x == 0.0f) and (SelectableTextAlign.x > 0.0f) followed by SameLine() is currently not supported. +bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + // Submit label or explicit size to ItemSize(), whereas ItemAdd() will submit a larger/spanning rectangle. + ImGuiID id = window->GetID(label); + ImVec2 label_size = CalcTextSize(label, NULL, true); + ImVec2 size(size_arg.x != 0.0f ? size_arg.x : label_size.x, size_arg.y != 0.0f ? size_arg.y : label_size.y); + ImVec2 pos = window->DC.CursorPos; + pos.y += window->DC.CurrLineTextBaseOffset; + ItemSize(size, 0.0f); + + // Fill horizontal space + // We don't support (size < 0.0f) in Selectable() because the ItemSpacing extension would make explicitly right-aligned sizes not visibly match other widgets. + const bool span_all_columns = (flags & ImGuiSelectableFlags_SpanAllColumns) != 0; + const float min_x = span_all_columns ? window->ParentWorkRect.Min.x : pos.x; + const float max_x = span_all_columns ? window->ParentWorkRect.Max.x : window->WorkRect.Max.x; + if (size_arg.x == 0.0f || (flags & ImGuiSelectableFlags_SpanAvailWidth)) + size.x = ImMax(label_size.x, max_x - min_x); + + // Text stays at the submission position, but bounding box may be extended on both sides + const ImVec2 text_min = pos; + const ImVec2 text_max(min_x + size.x, pos.y + size.y); + + // Selectables are meant to be tightly packed together with no click-gap, so we extend their box to cover spacing between selectable. + ImRect bb(min_x, pos.y, text_max.x, text_max.y); + if ((flags & ImGuiSelectableFlags_NoPadWithHalfSpacing) == 0) + { + const float spacing_x = span_all_columns ? 0.0f : style.ItemSpacing.x; + const float spacing_y = style.ItemSpacing.y; + const float spacing_L = IM_TRUNC(spacing_x * 0.50f); + const float spacing_U = IM_TRUNC(spacing_y * 0.50f); + bb.Min.x -= spacing_L; + bb.Min.y -= spacing_U; + bb.Max.x += (spacing_x - spacing_L); + bb.Max.y += (spacing_y - spacing_U); + } + //if (g.IO.KeyCtrl) { GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(0, 255, 0, 255)); } + + // Modify ClipRect for the ItemAdd(), faster than doing a PushColumnsBackground/PushTableBackgroundChannel for every Selectable.. + const float backup_clip_rect_min_x = window->ClipRect.Min.x; + const float backup_clip_rect_max_x = window->ClipRect.Max.x; + if (span_all_columns) + { + window->ClipRect.Min.x = window->ParentWorkRect.Min.x; + window->ClipRect.Max.x = window->ParentWorkRect.Max.x; + } + + const bool disabled_item = (flags & ImGuiSelectableFlags_Disabled) != 0; + const bool item_add = ItemAdd(bb, id, NULL, disabled_item ? ImGuiItemFlags_Disabled : ImGuiItemFlags_None); + if (span_all_columns) + { + window->ClipRect.Min.x = backup_clip_rect_min_x; + window->ClipRect.Max.x = backup_clip_rect_max_x; + } + + if (!item_add) + return false; + + const bool disabled_global = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + if (disabled_item && !disabled_global) // Only testing this as an optimization + BeginDisabled(); + + // FIXME: We can standardize the behavior of those two, we could also keep the fast path of override ClipRect + full push on render only, + // which would be advantageous since most selectable are not selected. + if (span_all_columns && window->DC.CurrentColumns) + PushColumnsBackground(); + else if (span_all_columns && g.CurrentTable) + TablePushBackgroundChannel(); + + // We use NoHoldingActiveID on menus so user can click and _hold_ on a menu then drag to browse child entries + ImGuiButtonFlags button_flags = 0; + if (flags & ImGuiSelectableFlags_NoHoldingActiveID) { button_flags |= ImGuiButtonFlags_NoHoldingActiveId; } + if (flags & ImGuiSelectableFlags_NoSetKeyOwner) { button_flags |= ImGuiButtonFlags_NoSetKeyOwner; } + if (flags & ImGuiSelectableFlags_SelectOnClick) { button_flags |= ImGuiButtonFlags_PressedOnClick; } + if (flags & ImGuiSelectableFlags_SelectOnRelease) { button_flags |= ImGuiButtonFlags_PressedOnRelease; } + if (flags & ImGuiSelectableFlags_AllowDoubleClick) { button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; } + if ((flags & ImGuiSelectableFlags_AllowOverlap) || (g.LastItemData.InFlags & ImGuiItemFlags_AllowOverlap)) { button_flags |= ImGuiButtonFlags_AllowOverlap; } + + const bool was_selected = selected; + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); + + // Auto-select when moved into + // - This will be more fully fleshed in the range-select branch + // - This is not exposed as it won't nicely work with some user side handling of shift/control + // - We cannot do 'if (g.NavJustMovedToId != id) { selected = false; pressed = was_selected; }' for two reasons + // - (1) it would require focus scope to be set, need exposing PushFocusScope() or equivalent (e.g. BeginSelection() calling PushFocusScope()) + // - (2) usage will fail with clipped items + // The multi-select API aim to fix those issues, e.g. may be replaced with a BeginSelection() API. + if ((flags & ImGuiSelectableFlags_SelectOnNav) && g.NavJustMovedToId != 0 && g.NavJustMovedToFocusScopeId == g.CurrentFocusScopeId) + if (g.NavJustMovedToId == id) + selected = pressed = true; + + // Update NavId when clicking or when Hovering (this doesn't happen on most widgets), so navigation can be resumed with gamepad/keyboard + if (pressed || (hovered && (flags & ImGuiSelectableFlags_SetNavIdOnHover))) + { + if (!g.NavDisableMouseHover && g.NavWindow == window && g.NavLayer == window->DC.NavLayerCurrent) + { + SetNavID(id, window->DC.NavLayerCurrent, g.CurrentFocusScopeId, WindowRectAbsToRel(window, bb)); // (bb == NavRect) + g.NavDisableHighlight = true; + } + } + if (pressed) + MarkItemEdited(id); + + // In this branch, Selectable() cannot toggle the selection so this will never trigger. + if (selected != was_selected) //-V547 + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledSelection; + + // Render + if (hovered || selected) + { + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(bb.Min, bb.Max, col, false, 0.0f); + } + if (g.NavId == id) + RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); + + if (span_all_columns && window->DC.CurrentColumns) + PopColumnsBackground(); + else if (span_all_columns && g.CurrentTable) + TablePopBackgroundChannel(); + + RenderTextClipped(text_min, text_max, label, NULL, &label_size, style.SelectableTextAlign, &bb); + + // Automatically close popups + if (pressed && (window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiSelectableFlags_DontClosePopups) && !(g.LastItemData.InFlags & ImGuiItemFlags_SelectableDontClosePopup)) + CloseCurrentPopup(); + + if (disabled_item && !disabled_global) + EndDisabled(); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; //-V1020 +} + +bool ImGui::Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) +{ + if (Selectable(label, *p_selected, flags, size_arg)) + { + *p_selected = !*p_selected; + return true; + } + return false; +} + + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Typing-Select support +//------------------------------------------------------------------------- + +// [Experimental] Currently not exposed in public API. +// Consume character inputs and return search request, if any. +// This would typically only be called on the focused window or location you want to grab inputs for, e.g. +// if (ImGui::IsWindowFocused(...)) +// if (ImGuiTypingSelectRequest* req = ImGui::GetTypingSelectRequest()) +// focus_idx = ImGui::TypingSelectFindMatch(req, my_items.size(), [](void*, int n) { return my_items[n]->Name; }, &my_items, -1); +// However the code is written in a way where calling it from multiple locations is safe (e.g. to obtain buffer). +ImGuiTypingSelectRequest* ImGui::GetTypingSelectRequest(ImGuiTypingSelectFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiTypingSelectState* data = &g.TypingSelectState; + ImGuiTypingSelectRequest* out_request = &data->Request; + + // Clear buffer + const float TYPING_SELECT_RESET_TIMER = 1.80f; // FIXME: Potentially move to IO config. + const int TYPING_SELECT_SINGLE_CHAR_COUNT_FOR_LOCK = 4; // Lock single char matching when repeating same char 4 times + if (data->SearchBuffer[0] != 0) + { + bool clear_buffer = false; + clear_buffer |= (g.NavFocusScopeId != data->FocusScope); + clear_buffer |= (data->LastRequestTime + TYPING_SELECT_RESET_TIMER < g.Time); + clear_buffer |= g.NavAnyRequest; + clear_buffer |= g.ActiveId != 0 && g.NavActivateId == 0; // Allow temporary SPACE activation to not interfere + clear_buffer |= IsKeyPressed(ImGuiKey_Escape) || IsKeyPressed(ImGuiKey_Enter); + clear_buffer |= IsKeyPressed(ImGuiKey_Backspace) && (flags & ImGuiTypingSelectFlags_AllowBackspace) == 0; + //if (clear_buffer) { IMGUI_DEBUG_LOG("GetTypingSelectRequest(): Clear SearchBuffer.\n"); } + if (clear_buffer) + data->Clear(); + } + + // Append to buffer + const int buffer_max_len = IM_ARRAYSIZE(data->SearchBuffer) - 1; + int buffer_len = (int)strlen(data->SearchBuffer); + bool select_request = false; + for (ImWchar w : g.IO.InputQueueCharacters) + { + const int w_len = ImTextCountUtf8BytesFromStr(&w, &w + 1); + if (w < 32 || (buffer_len == 0 && ImCharIsBlankW(w)) || (buffer_len + w_len > buffer_max_len)) // Ignore leading blanks + continue; + char w_buf[5]; + ImTextCharToUtf8(w_buf, (unsigned int)w); + if (data->SingleCharModeLock && w_len == out_request->SingleCharSize && memcmp(w_buf, data->SearchBuffer, w_len) == 0) + { + select_request = true; // Same character: don't need to append to buffer. + continue; + } + if (data->SingleCharModeLock) + { + data->Clear(); // Different character: clear + buffer_len = 0; + } + memcpy(data->SearchBuffer + buffer_len, w_buf, w_len + 1); // Append + buffer_len += w_len; + select_request = true; + } + g.IO.InputQueueCharacters.resize(0); + + // Handle backspace + if ((flags & ImGuiTypingSelectFlags_AllowBackspace) && IsKeyPressed(ImGuiKey_Backspace, 0, ImGuiInputFlags_Repeat)) + { + char* p = (char*)(void*)ImTextFindPreviousUtf8Codepoint(data->SearchBuffer, data->SearchBuffer + buffer_len); + *p = 0; + buffer_len = (int)(p - data->SearchBuffer); + } + + // Return request if any + if (buffer_len == 0) + return NULL; + if (select_request) + { + data->FocusScope = g.NavFocusScopeId; + data->LastRequestFrame = g.FrameCount; + data->LastRequestTime = (float)g.Time; + } + out_request->Flags = flags; + out_request->SearchBufferLen = buffer_len; + out_request->SearchBuffer = data->SearchBuffer; + out_request->SelectRequest = (data->LastRequestFrame == g.FrameCount); + out_request->SingleCharMode = false; + out_request->SingleCharSize = 0; + + // Calculate if buffer contains the same character repeated. + // - This can be used to implement a special search mode on first character. + // - Performed on UTF-8 codepoint for correctness. + // - SingleCharMode is always set for first input character, because it usually leads to a "next". + if (flags & ImGuiTypingSelectFlags_AllowSingleCharMode) + { + const char* buf_begin = out_request->SearchBuffer; + const char* buf_end = out_request->SearchBuffer + out_request->SearchBufferLen; + const int c0_len = ImTextCountUtf8BytesFromChar(buf_begin, buf_end); + const char* p = buf_begin + c0_len; + for (; p < buf_end; p += c0_len) + if (memcmp(buf_begin, p, (size_t)c0_len) != 0) + break; + const int single_char_count = (p == buf_end) ? (out_request->SearchBufferLen / c0_len) : 0; + out_request->SingleCharMode = (single_char_count > 0 || data->SingleCharModeLock); + out_request->SingleCharSize = (ImS8)c0_len; + data->SingleCharModeLock |= (single_char_count >= TYPING_SELECT_SINGLE_CHAR_COUNT_FOR_LOCK); // From now on we stop search matching to lock to single char mode. + } + + return out_request; +} + +static int ImStrimatchlen(const char* s1, const char* s1_end, const char* s2) +{ + int match_len = 0; + while (s1 < s1_end && ImToUpper(*s1++) == ImToUpper(*s2++)) + match_len++; + return match_len; +} + +// Default handler for finding a result for typing-select. You may implement your own. +// You might want to display a tooltip to visualize the current request SearchBuffer +// When SingleCharMode is set: +// - it is better to NOT display a tooltip of other on-screen display indicator. +// - the index of the currently focused item is required. +// if your SetNextItemSelectionData() values are indices, you can obtain it from ImGuiMultiSelectIO::NavIdItem, otherwise from g.NavLastValidSelectionUserData. +int ImGui::TypingSelectFindMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx) +{ + if (req == NULL || req->SelectRequest == false) // Support NULL parameter so both calls can be done from same spot. + return -1; + int idx = -1; + if (req->SingleCharMode && (req->Flags & ImGuiTypingSelectFlags_AllowSingleCharMode)) + idx = TypingSelectFindNextSingleCharMatch(req, items_count, get_item_name_func, user_data, nav_item_idx); + else + idx = TypingSelectFindBestLeadingMatch(req, items_count, get_item_name_func, user_data); + if (idx != -1) + NavRestoreHighlightAfterMove(); + return idx; +} + +// Special handling when a single character is repeated: perform search on a single letter and goes to next. +int ImGui::TypingSelectFindNextSingleCharMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx) +{ + // FIXME: Assume selection user data is index. Would be extremely practical. + //if (nav_item_idx == -1) + // nav_item_idx = (int)g.NavLastValidSelectionUserData; + + int first_match_idx = -1; + bool return_next_match = false; + for (int idx = 0; idx < items_count; idx++) + { + const char* item_name = get_item_name_func(user_data, idx); + if (ImStrimatchlen(req->SearchBuffer, req->SearchBuffer + req->SingleCharSize, item_name) < req->SingleCharSize) + continue; + if (return_next_match) // Return next matching item after current item. + return idx; + if (first_match_idx == -1 && nav_item_idx == -1) // Return first match immediately if we don't have a nav_item_idx value. + return idx; + if (first_match_idx == -1) // Record first match for wrapping. + first_match_idx = idx; + if (nav_item_idx == idx) // Record that we encountering nav_item so we can return next match. + return_next_match = true; + } + return first_match_idx; // First result +} + +int ImGui::TypingSelectFindBestLeadingMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data) +{ + int longest_match_idx = -1; + int longest_match_len = 0; + for (int idx = 0; idx < items_count; idx++) + { + const char* item_name = get_item_name_func(user_data, idx); + const int match_len = ImStrimatchlen(req->SearchBuffer, req->SearchBuffer + req->SearchBufferLen, item_name); + if (match_len <= longest_match_len) + continue; + longest_match_idx = idx; + longest_match_len = match_len; + if (match_len == req->SearchBufferLen) + break; + } + return longest_match_idx; +} + +void ImGui::DebugNodeTypingSelectState(ImGuiTypingSelectState* data) +{ +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + Text("SearchBuffer = \"%s\"", data->SearchBuffer); + Text("SingleCharMode = %d, Size = %d, Lock = %d", data->Request.SingleCharMode, data->Request.SingleCharSize, data->SingleCharModeLock); + Text("LastRequest = time: %.2f, frame: %d", data->LastRequestTime, data->LastRequestFrame); +#else + IM_UNUSED(data); +#endif +} + + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Multi-Select support +//------------------------------------------------------------------------- + +void ImGui::SetNextItemSelectionUserData(ImGuiSelectionUserData selection_user_data) +{ + // Note that flags will be cleared by ItemAdd(), so it's only useful for Navigation code! + // This designed so widgets can also cheaply set this before calling ItemAdd(), so we are not tied to MultiSelect api. + ImGuiContext& g = *GImGui; + g.NextItemData.ItemFlags |= ImGuiItemFlags_HasSelectionUserData; + g.NextItemData.SelectionUserData = selection_user_data; +} + + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ListBox +//------------------------------------------------------------------------- +// - BeginListBox() +// - EndListBox() +// - ListBox() +//------------------------------------------------------------------------- + +// Tip: To have a list filling the entire window width, use size.x = -FLT_MIN and pass an non-visible label e.g. "##empty" +// Tip: If your vertical size is calculated from an item count (e.g. 10 * item_height) consider adding a fractional part to facilitate seeing scrolling boundaries (e.g. 10.25 * item_height). +bool ImGui::BeginListBox(const char* label, const ImVec2& size_arg) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + // Size default to hold ~7.25 items. + // Fractional number of items helps seeing that we can scroll down/up without looking at scrollbar. + ImVec2 size = ImTrunc(CalcItemSize(size_arg, CalcItemWidth(), GetTextLineHeightWithSpacing() * 7.25f + style.FramePadding.y * 2.0f)); + ImVec2 frame_size = ImVec2(size.x, ImMax(size.y, label_size.y)); + ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + g.NextItemData.ClearFlags(); + + if (!IsRectVisible(bb.Min, bb.Max)) + { + ItemSize(bb.GetSize(), style.FramePadding.y); + ItemAdd(bb, 0, &frame_bb); + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + + // FIXME-OPT: We could omit the BeginGroup() if label_size.x but would need to omit the EndGroup() as well. + BeginGroup(); + if (label_size.x > 0.0f) + { + ImVec2 label_pos = ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y); + RenderText(label_pos, label); + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, label_pos + label_size); + } + + BeginChildFrame(id, frame_bb.GetSize()); + return true; +} + +void ImGui::EndListBox() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) && "Mismatched BeginListBox/EndListBox calls. Did you test the return value of BeginListBox?"); + IM_UNUSED(window); + + EndChildFrame(); + EndGroup(); // This is only required to be able to do IsItemXXX query on the whole ListBox including label +} + +bool ImGui::ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_items) +{ + const bool value_changed = ListBox(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_items); + return value_changed; +} + +// This is merely a helper around BeginListBox(), EndListBox(). +// Considering using those directly to submit custom data or store selection differently. +bool ImGui::ListBox(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int height_in_items) +{ + ImGuiContext& g = *GImGui; + + // Calculate size from "height_in_items" + if (height_in_items < 0) + height_in_items = ImMin(items_count, 7); + float height_in_items_f = height_in_items + 0.25f; + ImVec2 size(0.0f, ImTrunc(GetTextLineHeightWithSpacing() * height_in_items_f + g.Style.FramePadding.y * 2.0f)); + + if (!BeginListBox(label, size)) + return false; + + // Assume all items have even height (= 1 line of text). If you need items of different height, + // you can create a custom version of ListBox() in your code without using the clipper. + bool value_changed = false; + ImGuiListClipper clipper; + clipper.Begin(items_count, GetTextLineHeightWithSpacing()); // We know exactly our line height here so we pass it as a minor optimization, but generally you don't need to. + while (clipper.Step()) + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + { + const char* item_text = getter(user_data, i); + if (item_text == NULL) + item_text = "*Unknown item*"; + + PushID(i); + const bool item_selected = (i == *current_item); + if (Selectable(item_text, item_selected)) + { + *current_item = i; + value_changed = true; + } + if (item_selected) + SetItemDefaultFocus(); + PopID(); + } + EndListBox(); + + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: PlotLines, PlotHistogram +//------------------------------------------------------------------------- +// - PlotEx() [Internal] +// - PlotLines() +// - PlotHistogram() +//------------------------------------------------------------------------- +// Plot/Graph widgets are not very good. +// Consider writing your own, or using a third-party one, see: +// - ImPlot https://github.com/epezent/implot +// - others https://github.com/ocornut/imgui/wiki/Useful-Extensions +//------------------------------------------------------------------------- + +int ImGui::PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2& size_arg) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return -1; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImVec2 frame_size = CalcItemSize(size_arg, CalcItemWidth(), label_size.y + style.FramePadding.y * 2.0f); + + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + const ImRect inner_bb(frame_bb.Min + style.FramePadding, frame_bb.Max - style.FramePadding); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, 0, &frame_bb)) + return -1; + const bool hovered = ItemHoverable(frame_bb, id, g.LastItemData.InFlags); + + // Determine scale from values if not specified + if (scale_min == FLT_MAX || scale_max == FLT_MAX) + { + float v_min = FLT_MAX; + float v_max = -FLT_MAX; + for (int i = 0; i < values_count; i++) + { + const float v = values_getter(data, i); + if (v != v) // Ignore NaN values + continue; + v_min = ImMin(v_min, v); + v_max = ImMax(v_max, v); + } + if (scale_min == FLT_MAX) + scale_min = v_min; + if (scale_max == FLT_MAX) + scale_max = v_max; + } + + RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + + const int values_count_min = (plot_type == ImGuiPlotType_Lines) ? 2 : 1; + int idx_hovered = -1; + if (values_count >= values_count_min) + { + int res_w = ImMin((int)frame_size.x, values_count) + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); + int item_count = values_count + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); + + // Tooltip on hover + if (hovered && inner_bb.Contains(g.IO.MousePos)) + { + const float t = ImClamp((g.IO.MousePos.x - inner_bb.Min.x) / (inner_bb.Max.x - inner_bb.Min.x), 0.0f, 0.9999f); + const int v_idx = (int)(t * item_count); + IM_ASSERT(v_idx >= 0 && v_idx < values_count); + + const float v0 = values_getter(data, (v_idx + values_offset) % values_count); + const float v1 = values_getter(data, (v_idx + 1 + values_offset) % values_count); + if (plot_type == ImGuiPlotType_Lines) + SetTooltip("%d: %8.4g\n%d: %8.4g", v_idx, v0, v_idx + 1, v1); + else if (plot_type == ImGuiPlotType_Histogram) + SetTooltip("%d: %8.4g", v_idx, v0); + idx_hovered = v_idx; + } + + const float t_step = 1.0f / (float)res_w; + const float inv_scale = (scale_min == scale_max) ? 0.0f : (1.0f / (scale_max - scale_min)); + + float v0 = values_getter(data, (0 + values_offset) % values_count); + float t0 = 0.0f; + ImVec2 tp0 = ImVec2( t0, 1.0f - ImSaturate((v0 - scale_min) * inv_scale) ); // Point in the normalized space of our target rectangle + float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (1 + scale_min * inv_scale) : (scale_min < 0.0f ? 0.0f : 1.0f); // Where does the zero line stands + + const ImU32 col_base = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLines : ImGuiCol_PlotHistogram); + const ImU32 col_hovered = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLinesHovered : ImGuiCol_PlotHistogramHovered); + + for (int n = 0; n < res_w; n++) + { + const float t1 = t0 + t_step; + const int v1_idx = (int)(t0 * item_count + 0.5f); + IM_ASSERT(v1_idx >= 0 && v1_idx < values_count); + const float v1 = values_getter(data, (v1_idx + values_offset + 1) % values_count); + const ImVec2 tp1 = ImVec2( t1, 1.0f - ImSaturate((v1 - scale_min) * inv_scale) ); + + // NB: Draw calls are merged together by the DrawList system. Still, we should render our batch are lower level to save a bit of CPU. + ImVec2 pos0 = ImLerp(inner_bb.Min, inner_bb.Max, tp0); + ImVec2 pos1 = ImLerp(inner_bb.Min, inner_bb.Max, (plot_type == ImGuiPlotType_Lines) ? tp1 : ImVec2(tp1.x, histogram_zero_line_t)); + if (plot_type == ImGuiPlotType_Lines) + { + window->DrawList->AddLine(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); + } + else if (plot_type == ImGuiPlotType_Histogram) + { + if (pos1.x >= pos0.x + 2.0f) + pos1.x -= 1.0f; + window->DrawList->AddRectFilled(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); + } + + t0 = t1; + tp0 = tp1; + } + } + + // Text overlay + if (overlay_text) + RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, overlay_text, NULL, NULL, ImVec2(0.5f, 0.0f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, inner_bb.Min.y), label); + + // Return hovered index or -1 if none are hovered. + // This is currently not exposed in the public API because we need a larger redesign of the whole thing, but in the short-term we are making it available in PlotEx(). + return idx_hovered; +} + +struct ImGuiPlotArrayGetterData +{ + const float* Values; + int Stride; + + ImGuiPlotArrayGetterData(const float* values, int stride) { Values = values; Stride = stride; } +}; + +static float Plot_ArrayGetter(void* data, int idx) +{ + ImGuiPlotArrayGetterData* plot_data = (ImGuiPlotArrayGetterData*)data; + const float v = *(const float*)(const void*)((const unsigned char*)plot_data->Values + (size_t)idx * plot_data->Stride); + return v; +} + +void ImGui::PlotLines(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride) +{ + ImGuiPlotArrayGetterData data(values, stride); + PlotEx(ImGuiPlotType_Lines, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotLines(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size) +{ + PlotEx(ImGuiPlotType_Lines, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotHistogram(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride) +{ + ImGuiPlotArrayGetterData data(values, stride); + PlotEx(ImGuiPlotType_Histogram, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotHistogram(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size) +{ + PlotEx(ImGuiPlotType_Histogram, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Value helpers +// Those is not very useful, legacy API. +//------------------------------------------------------------------------- +// - Value() +//------------------------------------------------------------------------- + +void ImGui::Value(const char* prefix, bool b) +{ + Text("%s: %s", prefix, (b ? "true" : "false")); +} + +void ImGui::Value(const char* prefix, int v) +{ + Text("%s: %d", prefix, v); +} + +void ImGui::Value(const char* prefix, unsigned int v) +{ + Text("%s: %d", prefix, v); +} + +void ImGui::Value(const char* prefix, float v, const char* float_format) +{ + if (float_format) + { + char fmt[64]; + ImFormatString(fmt, IM_ARRAYSIZE(fmt), "%%s: %s", float_format); + Text(fmt, prefix, v); + } + else + { + Text("%s: %.3f", prefix, v); + } +} + +//------------------------------------------------------------------------- +// [SECTION] MenuItem, BeginMenu, EndMenu, etc. +//------------------------------------------------------------------------- +// - ImGuiMenuColumns [Internal] +// - BeginMenuBar() +// - EndMenuBar() +// - BeginMainMenuBar() +// - EndMainMenuBar() +// - BeginMenu() +// - EndMenu() +// - MenuItemEx() [Internal] +// - MenuItem() +//------------------------------------------------------------------------- + +// Helpers for internal use +void ImGuiMenuColumns::Update(float spacing, bool window_reappearing) +{ + if (window_reappearing) + memset(Widths, 0, sizeof(Widths)); + Spacing = (ImU16)spacing; + CalcNextTotalWidth(true); + memset(Widths, 0, sizeof(Widths)); + TotalWidth = NextTotalWidth; + NextTotalWidth = 0; +} + +void ImGuiMenuColumns::CalcNextTotalWidth(bool update_offsets) +{ + ImU16 offset = 0; + bool want_spacing = false; + for (int i = 0; i < IM_ARRAYSIZE(Widths); i++) + { + ImU16 width = Widths[i]; + if (want_spacing && width > 0) + offset += Spacing; + want_spacing |= (width > 0); + if (update_offsets) + { + if (i == 1) { OffsetLabel = offset; } + if (i == 2) { OffsetShortcut = offset; } + if (i == 3) { OffsetMark = offset; } + } + offset += width; + } + NextTotalWidth = offset; +} + +float ImGuiMenuColumns::DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark) +{ + Widths[0] = ImMax(Widths[0], (ImU16)w_icon); + Widths[1] = ImMax(Widths[1], (ImU16)w_label); + Widths[2] = ImMax(Widths[2], (ImU16)w_shortcut); + Widths[3] = ImMax(Widths[3], (ImU16)w_mark); + CalcNextTotalWidth(false); + return (float)ImMax(TotalWidth, NextTotalWidth); +} + +// FIXME: Provided a rectangle perhaps e.g. a BeginMenuBarEx() could be used anywhere.. +// Currently the main responsibility of this function being to setup clip-rect + horizontal layout + menu navigation layer. +// Ideally we also want this to be responsible for claiming space out of the main window scrolling rectangle, in which case ImGuiWindowFlags_MenuBar will become unnecessary. +// Then later the same system could be used for multiple menu-bars, scrollbars, side-bars. +bool ImGui::BeginMenuBar() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + if (!(window->Flags & ImGuiWindowFlags_MenuBar)) + return false; + + IM_ASSERT(!window->DC.MenuBarAppending); + BeginGroup(); // Backup position on layer 0 // FIXME: Misleading to use a group for that backup/restore + PushID("##menubar"); + + // We don't clip with current window clipping rectangle as it is already set to the area below. However we clip with window full rect. + // We remove 1 worth of rounding to Max.x to that text in long menus and small windows don't tend to display over the lower-right rounded area, which looks particularly glitchy. + ImRect bar_rect = window->MenuBarRect(); + ImRect clip_rect(IM_ROUND(bar_rect.Min.x + window->WindowBorderSize), IM_ROUND(bar_rect.Min.y + window->WindowBorderSize), IM_ROUND(ImMax(bar_rect.Min.x, bar_rect.Max.x - ImMax(window->WindowRounding, window->WindowBorderSize))), IM_ROUND(bar_rect.Max.y)); + clip_rect.ClipWith(window->OuterRectClipped); + PushClipRect(clip_rect.Min, clip_rect.Max, false); + + // We overwrite CursorMaxPos because BeginGroup sets it to CursorPos (essentially the .EmitItem hack in EndMenuBar() would need something analogous here, maybe a BeginGroupEx() with flags). + window->DC.CursorPos = window->DC.CursorMaxPos = ImVec2(bar_rect.Min.x + window->DC.MenuBarOffset.x, bar_rect.Min.y + window->DC.MenuBarOffset.y); + window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + window->DC.MenuBarAppending = true; + AlignTextToFramePadding(); + return true; +} + +void ImGui::EndMenuBar() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ImGuiContext& g = *GImGui; + + // Nav: When a move request within one of our child menu failed, capture the request to navigate among our siblings. + if (NavMoveRequestButNoResultYet() && (g.NavMoveDir == ImGuiDir_Left || g.NavMoveDir == ImGuiDir_Right) && (g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) + { + // Try to find out if the request is for one of our child menu + ImGuiWindow* nav_earliest_child = g.NavWindow; + while (nav_earliest_child->ParentWindow && (nav_earliest_child->ParentWindow->Flags & ImGuiWindowFlags_ChildMenu)) + nav_earliest_child = nav_earliest_child->ParentWindow; + if (nav_earliest_child->ParentWindow == window && nav_earliest_child->DC.ParentLayoutType == ImGuiLayoutType_Horizontal && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded) == 0) + { + // To do so we claim focus back, restore NavId and then process the movement request for yet another frame. + // This involve a one-frame delay which isn't very problematic in this situation. We could remove it by scoring in advance for multiple window (probably not worth bothering) + const ImGuiNavLayer layer = ImGuiNavLayer_Menu; + IM_ASSERT(window->DC.NavLayersActiveMaskNext & (1 << layer)); // Sanity check (FIXME: Seems unnecessary) + FocusWindow(window); + SetNavID(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); + g.NavDisableHighlight = true; // Hide highlight for the current frame so we don't see the intermediary selection. + g.NavDisableMouseHover = g.NavMousePosDirty = true; + NavMoveRequestForward(g.NavMoveDir, g.NavMoveClipDir, g.NavMoveFlags, g.NavMoveScrollFlags); // Repeat + } + } + + IM_MSVC_WARNING_SUPPRESS(6011); // Static Analysis false positive "warning C6011: Dereferencing NULL pointer 'window'" + IM_ASSERT(window->Flags & ImGuiWindowFlags_MenuBar); + IM_ASSERT(window->DC.MenuBarAppending); + PopClipRect(); + PopID(); + window->DC.MenuBarOffset.x = window->DC.CursorPos.x - window->Pos.x; // Save horizontal position so next append can reuse it. This is kinda equivalent to a per-layer CursorPos. + + // FIXME: Extremely confusing, cleanup by (a) working on WorkRect stack system (b) not using a Group confusingly here. + ImGuiGroupData& group_data = g.GroupStack.back(); + group_data.EmitItem = false; + ImVec2 restore_cursor_max_pos = group_data.BackupCursorMaxPos; + window->DC.IdealMaxPos.x = ImMax(window->DC.IdealMaxPos.x, window->DC.CursorMaxPos.x - window->Scroll.x); // Convert ideal extents for scrolling layer equivalent. + EndGroup(); // Restore position on layer 0 // FIXME: Misleading to use a group for that backup/restore + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + window->DC.MenuBarAppending = false; + window->DC.CursorMaxPos = restore_cursor_max_pos; +} + +// Important: calling order matters! +// FIXME: Somehow overlapping with docking tech. +// FIXME: The "rect-cut" aspect of this could be formalized into a lower-level helper (rect-cut: https://halt.software/dead-simple-layouts) +bool ImGui::BeginViewportSideBar(const char* name, ImGuiViewport* viewport_p, ImGuiDir dir, float axis_size, ImGuiWindowFlags window_flags) +{ + IM_ASSERT(dir != ImGuiDir_None); + + ImGuiWindow* bar_window = FindWindowByName(name); + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)(viewport_p ? viewport_p : GetMainViewport()); + if (bar_window == NULL || bar_window->BeginCount == 0) + { + // Calculate and set window size/position + ImRect avail_rect = viewport->GetBuildWorkRect(); + ImGuiAxis axis = (dir == ImGuiDir_Up || dir == ImGuiDir_Down) ? ImGuiAxis_Y : ImGuiAxis_X; + ImVec2 pos = avail_rect.Min; + if (dir == ImGuiDir_Right || dir == ImGuiDir_Down) + pos[axis] = avail_rect.Max[axis] - axis_size; + ImVec2 size = avail_rect.GetSize(); + size[axis] = axis_size; + SetNextWindowPos(pos); + SetNextWindowSize(size); + + // Report our size into work area (for next frame) using actual window size + if (dir == ImGuiDir_Up || dir == ImGuiDir_Left) + viewport->BuildWorkOffsetMin[axis] += axis_size; + else if (dir == ImGuiDir_Down || dir == ImGuiDir_Right) + viewport->BuildWorkOffsetMax[axis] -= axis_size; + } + + window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoDocking; + SetNextWindowViewport(viewport->ID); // Enforce viewport so we don't create our own viewport when ImGuiConfigFlags_ViewportsNoMerge is set. + PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); + PushStyleVar(ImGuiStyleVar_WindowMinSize, ImVec2(0, 0)); // Lift normal size constraint + bool is_open = Begin(name, NULL, window_flags); + PopStyleVar(2); + + return is_open; +} + +bool ImGui::BeginMainMenuBar() +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)GetMainViewport(); + + // Notify of viewport change so GetFrameHeight() can be accurate in case of DPI change + SetCurrentViewport(NULL, viewport); + + // For the main menu bar, which cannot be moved, we honor g.Style.DisplaySafeAreaPadding to ensure text can be visible on a TV set. + // FIXME: This could be generalized as an opt-in way to clamp window->DC.CursorStartPos to avoid SafeArea? + // FIXME: Consider removing support for safe area down the line... it's messy. Nowadays consoles have support for TV calibration in OS settings. + g.NextWindowData.MenuBarOffsetMinVal = ImVec2(g.Style.DisplaySafeAreaPadding.x, ImMax(g.Style.DisplaySafeAreaPadding.y - g.Style.FramePadding.y, 0.0f)); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_MenuBar; + float height = GetFrameHeight(); + bool is_open = BeginViewportSideBar("##MainMenuBar", viewport, ImGuiDir_Up, height, window_flags); + g.NextWindowData.MenuBarOffsetMinVal = ImVec2(0.0f, 0.0f); + + if (is_open) + BeginMenuBar(); + else + End(); + return is_open; +} + +void ImGui::EndMainMenuBar() +{ + EndMenuBar(); + + // When the user has left the menu layer (typically: closed menus through activation of an item), we restore focus to the previous window + // FIXME: With this strategy we won't be able to restore a NULL focus. + ImGuiContext& g = *GImGui; + if (g.CurrentWindow == g.NavWindow && g.NavLayer == ImGuiNavLayer_Main && !g.NavAnyRequest) + FocusTopMostWindowUnderOne(g.NavWindow, NULL, NULL, ImGuiFocusRequestFlags_UnlessBelowModal | ImGuiFocusRequestFlags_RestoreFocusedChild); + + End(); +} + +static bool IsRootOfOpenMenuSet() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if ((g.OpenPopupStack.Size <= g.BeginPopupStack.Size) || (window->Flags & ImGuiWindowFlags_ChildMenu)) + return false; + + // Initially we used 'upper_popup->OpenParentId == window->IDStack.back()' to differentiate multiple menu sets from each others + // (e.g. inside menu bar vs loose menu items) based on parent ID. + // This would however prevent the use of e.g. PushID() user code submitting menus. + // Previously this worked between popup and a first child menu because the first child menu always had the _ChildWindow flag, + // making hovering on parent popup possible while first child menu was focused - but this was generally a bug with other side effects. + // Instead we don't treat Popup specifically (in order to consistently support menu features in them), maybe the first child menu of a Popup + // doesn't have the _ChildWindow flag, and we rely on this IsRootOfOpenMenuSet() check to allow hovering between root window/popup and first child menu. + // In the end, lack of ID check made it so we could no longer differentiate between separate menu sets. To compensate for that, we at least check parent window nav layer. + // This fixes the most common case of menu opening on hover when moving between window content and menu bar. Multiple different menu sets in same nav layer would still + // open on hover, but that should be a lesser problem, because if such menus are close in proximity in window content then it won't feel weird and if they are far apart + // it likely won't be a problem anyone runs into. + const ImGuiPopupData* upper_popup = &g.OpenPopupStack[g.BeginPopupStack.Size]; + if (window->DC.NavLayerCurrent != upper_popup->ParentNavLayer) + return false; + return upper_popup->Window && (upper_popup->Window->Flags & ImGuiWindowFlags_ChildMenu) && ImGui::IsWindowChildOf(upper_popup->Window, window, true, false); +} + +bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + bool menu_is_open = IsPopupOpen(id, ImGuiPopupFlags_None); + + // Sub-menus are ChildWindow so that mouse can be hovering across them (otherwise top-most popup menu would steal focus and not allow hovering on parent menu) + // The first menu in a hierarchy isn't so hovering doesn't get across (otherwise e.g. resizing borders with ImGuiButtonFlags_FlattenChildren would react), but top-most BeginMenu() will bypass that limitation. + ImGuiWindowFlags window_flags = ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus; + if (window->Flags & ImGuiWindowFlags_ChildMenu) + window_flags |= ImGuiWindowFlags_ChildWindow; + + // If a menu with same the ID was already submitted, we will append to it, matching the behavior of Begin(). + // We are relying on a O(N) search - so O(N log N) over the frame - which seems like the most efficient for the expected small amount of BeginMenu() calls per frame. + // If somehow this is ever becoming a problem we can switch to use e.g. ImGuiStorage mapping key to last frame used. + if (g.MenusIdSubmittedThisFrame.contains(id)) + { + if (menu_is_open) + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + else + g.NextWindowData.ClearFlags(); // we behave like Begin() and need to consume those values + return menu_is_open; + } + + // Tag menu as used. Next time BeginMenu() with same ID is called it will append to existing menu + g.MenusIdSubmittedThisFrame.push_back(id); + + ImVec2 label_size = CalcTextSize(label, NULL, true); + + // Odd hack to allow hovering across menus of a same menu-set (otherwise we wouldn't be able to hover parent without always being a Child window) + // This is only done for items for the menu set and not the full parent window. + const bool menuset_is_open = IsRootOfOpenMenuSet(); + if (menuset_is_open) + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); + + // The reference position stored in popup_pos will be used by Begin() to find a suitable position for the child menu, + // However the final position is going to be different! It is chosen by FindBestWindowPosForPopup(). + // e.g. Menus tend to overlap each other horizontally to amplify relative Z-ordering. + ImVec2 popup_pos, pos = window->DC.CursorPos; + PushID(label); + if (!enabled) + BeginDisabled(); + const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; + bool pressed; + + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups; + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + { + // Menu inside an horizontal menu bar + // Selectable extend their highlight by half ItemSpacing in each direction. + // For ChildMenu, the popup position will be overwritten by the call to FindBestWindowPosForPopup() in Begin() + popup_pos = ImVec2(pos.x - 1.0f - IM_TRUNC(style.ItemSpacing.x * 0.5f), pos.y - style.FramePadding.y + window->MenuBarHeight()); + window->DC.CursorPos.x += IM_TRUNC(style.ItemSpacing.x * 0.5f); + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); + float w = label_size.x; + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + pressed = Selectable("", menu_is_open, selectable_flags, ImVec2(w, label_size.y)); + RenderText(text_pos, label); + PopStyleVar(); + window->DC.CursorPos.x += IM_TRUNC(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). + } + else + { + // Menu inside a regular/vertical menu + // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. + // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. + popup_pos = ImVec2(pos.x, pos.y - style.WindowPadding.y); + float icon_w = (icon && icon[0]) ? CalcTextSize(icon, NULL).x : 0.0f; + float checkmark_w = IM_TRUNC(g.FontSize * 1.20f); + float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, 0.0f, checkmark_w); // Feedback to next frame + float extra_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + pressed = Selectable("", menu_is_open, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, label_size.y)); + RenderText(text_pos, label); + if (icon_w > 0.0f) + RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); + RenderArrow(window->DrawList, pos + ImVec2(offsets->OffsetMark + extra_w + g.FontSize * 0.30f, 0.0f), GetColorU32(ImGuiCol_Text), ImGuiDir_Right); + } + if (!enabled) + EndDisabled(); + + const bool hovered = (g.HoveredId == id) && enabled && !g.NavDisableMouseHover; + if (menuset_is_open) + PopItemFlag(); + + bool want_open = false; + bool want_close = false; + if (window->DC.LayoutType == ImGuiLayoutType_Vertical) // (window->Flags & (ImGuiWindowFlags_Popup|ImGuiWindowFlags_ChildMenu)) + { + // Close menu when not hovering it anymore unless we are moving roughly in the direction of the menu + // Implement http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown to avoid using timers, so menus feels more reactive. + bool moving_toward_child_menu = false; + ImGuiPopupData* child_popup = (g.BeginPopupStack.Size < g.OpenPopupStack.Size) ? &g.OpenPopupStack[g.BeginPopupStack.Size] : NULL; // Popup candidate (testing below) + ImGuiWindow* child_menu_window = (child_popup && child_popup->Window && child_popup->Window->ParentWindow == window) ? child_popup->Window : NULL; + if (g.HoveredWindow == window && child_menu_window != NULL) + { + float ref_unit = g.FontSize; // FIXME-DPI + float child_dir = (window->Pos.x < child_menu_window->Pos.x) ? 1.0f : -1.0f; + ImRect next_window_rect = child_menu_window->Rect(); + ImVec2 ta = (g.IO.MousePos - g.IO.MouseDelta); + ImVec2 tb = (child_dir > 0.0f) ? next_window_rect.GetTL() : next_window_rect.GetTR(); + ImVec2 tc = (child_dir > 0.0f) ? next_window_rect.GetBL() : next_window_rect.GetBR(); + float extra = ImClamp(ImFabs(ta.x - tb.x) * 0.30f, ref_unit * 0.5f, ref_unit * 2.5f); // add a bit of extra slack. + ta.x += child_dir * -0.5f; + tb.x += child_dir * ref_unit; + tc.x += child_dir * ref_unit; + tb.y = ta.y + ImMax((tb.y - extra) - ta.y, -ref_unit * 8.0f); // triangle has maximum height to limit the slope and the bias toward large sub-menus + tc.y = ta.y + ImMin((tc.y + extra) - ta.y, +ref_unit * 8.0f); + moving_toward_child_menu = ImTriangleContainsPoint(ta, tb, tc, g.IO.MousePos); + //GetForegroundDrawList()->AddTriangleFilled(ta, tb, tc, moving_toward_child_menu ? IM_COL32(0,128,0,128) : IM_COL32(128,0,0,128)); // [DEBUG] + } + + // The 'HovereWindow == window' check creates an inconsistency (e.g. moving away from menu slowly tends to hit same window, whereas moving away fast does not) + // But we also need to not close the top-menu menu when moving over void. Perhaps we should extend the triangle check to a larger polygon. + // (Remember to test this on BeginPopup("A")->BeginMenu("B") sequence which behaves slightly differently as B isn't a Child of A and hovering isn't shared.) + if (menu_is_open && !hovered && g.HoveredWindow == window && !moving_toward_child_menu && !g.NavDisableMouseHover && g.ActiveId == 0) + want_close = true; + + // Open + if (!menu_is_open && pressed) // Click/activate to open + want_open = true; + else if (!menu_is_open && hovered && !moving_toward_child_menu) // Hover to open + want_open = true; + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Right) // Nav-Right to open + { + want_open = true; + NavMoveRequestCancel(); + } + } + else + { + // Menu bar + if (menu_is_open && pressed && menuset_is_open) // Click an open menu again to close it + { + want_close = true; + want_open = menu_is_open = false; + } + else if (pressed || (hovered && menuset_is_open && !menu_is_open)) // First click to open, then hover to open others + { + want_open = true; + } + else if (g.NavId == id && g.NavMoveDir == ImGuiDir_Down) // Nav-Down to open + { + want_open = true; + NavMoveRequestCancel(); + } + } + + if (!enabled) // explicitly close if an open menu becomes disabled, facilitate users code a lot in pattern such as 'if (BeginMenu("options", has_object)) { ..use object.. }' + want_close = true; + if (want_close && IsPopupOpen(id, ImGuiPopupFlags_None)) + ClosePopupToLevel(g.BeginPopupStack.Size, true); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Openable | (menu_is_open ? ImGuiItemStatusFlags_Opened : 0)); + PopID(); + + if (want_open && !menu_is_open && g.OpenPopupStack.Size > g.BeginPopupStack.Size) + { + // Don't reopen/recycle same menu level in the same frame, first close the other menu and yield for a frame. + OpenPopup(label); + } + else if (want_open) + { + menu_is_open = true; + OpenPopup(label); + } + + if (menu_is_open) + { + ImGuiLastItemData last_item_in_parent = g.LastItemData; + SetNextWindowPos(popup_pos, ImGuiCond_Always); // Note: misleading: the value will serve as reference for FindBestWindowPosForPopup(), not actual pos. + PushStyleVar(ImGuiStyleVar_ChildRounding, style.PopupRounding); // First level will use _PopupRounding, subsequent will use _ChildRounding + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + PopStyleVar(); + if (menu_is_open) + { + // Restore LastItemData so IsItemXXXX functions can work after BeginMenu()/EndMenu() + // (This fixes using IsItemClicked() and IsItemHovered(), but IsItemHovered() also relies on its support for ImGuiItemFlags_NoWindowHoverableCheck) + g.LastItemData = last_item_in_parent; + if (g.HoveredWindow == window) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + } + } + else + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + } + + return menu_is_open; +} + +bool ImGui::BeginMenu(const char* label, bool enabled) +{ + return BeginMenuEx(label, NULL, enabled); +} + +void ImGui::EndMenu() +{ + // Nav: When a left move request our menu failed, close ourselves. + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginMenu()/EndMenu() calls + ImGuiWindow* parent_window = window->ParentWindow; // Should always be != NULL is we passed assert. + if (window->BeginCount == window->BeginCountPreviousFrame) + if (g.NavMoveDir == ImGuiDir_Left && NavMoveRequestButNoResultYet()) + if (g.NavWindow && (g.NavWindow->RootWindowForNav == window) && parent_window->DC.LayoutType == ImGuiLayoutType_Vertical) + { + ClosePopupToLevel(g.BeginPopupStack.Size - 1, true); + NavMoveRequestCancel(); + } + + EndPopup(); +} + +bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut, bool selected, bool enabled) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImVec2 pos = window->DC.CursorPos; + ImVec2 label_size = CalcTextSize(label, NULL, true); + + // See BeginMenuEx() for comments about this. + const bool menuset_is_open = IsRootOfOpenMenuSet(); + if (menuset_is_open) + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); + + // We've been using the equivalent of ImGuiSelectableFlags_SetNavIdOnHover on all Selectable() since early Nav system days (commit 43ee5d73), + // but I am unsure whether this should be kept at all. For now moved it to be an opt-in feature used by menus only. + bool pressed; + PushID(label); + if (!enabled) + BeginDisabled(); + + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_SelectOnRelease | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SetNavIdOnHover; + const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + { + // Mimic the exact layout spacing of BeginMenu() to allow MenuItem() inside a menu bar, which is a little misleading but may be useful + // Note that in this situation: we don't render the shortcut, we render a highlight instead of the selected tick mark. + float w = label_size.x; + window->DC.CursorPos.x += IM_TRUNC(style.ItemSpacing.x * 0.5f); + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); + pressed = Selectable("", selected, selectable_flags, ImVec2(w, 0.0f)); + PopStyleVar(); + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) + RenderText(text_pos, label); + window->DC.CursorPos.x += IM_TRUNC(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). + } + else + { + // Menu item inside a vertical menu + // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. + // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. + float icon_w = (icon && icon[0]) ? CalcTextSize(icon, NULL).x : 0.0f; + float shortcut_w = (shortcut && shortcut[0]) ? CalcTextSize(shortcut, NULL).x : 0.0f; + float checkmark_w = IM_TRUNC(g.FontSize * 1.20f); + float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, shortcut_w, checkmark_w); // Feedback for next frame + float stretch_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); + pressed = Selectable("", false, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, label_size.y)); + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) + { + RenderText(pos + ImVec2(offsets->OffsetLabel, 0.0f), label); + if (icon_w > 0.0f) + RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); + if (shortcut_w > 0.0f) + { + PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); + RenderText(pos + ImVec2(offsets->OffsetShortcut + stretch_w, 0.0f), shortcut, NULL, false); + PopStyleColor(); + } + if (selected) + RenderCheckMark(window->DrawList, pos + ImVec2(offsets->OffsetMark + stretch_w + g.FontSize * 0.40f, g.FontSize * 0.134f * 0.5f), GetColorU32(ImGuiCol_Text), g.FontSize * 0.866f); + } + } + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (selected ? ImGuiItemStatusFlags_Checked : 0)); + if (!enabled) + EndDisabled(); + PopID(); + if (menuset_is_open) + PopItemFlag(); + + return pressed; +} + +bool ImGui::MenuItem(const char* label, const char* shortcut, bool selected, bool enabled) +{ + return MenuItemEx(label, NULL, shortcut, selected, enabled); +} + +bool ImGui::MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled) +{ + if (MenuItemEx(label, NULL, shortcut, p_selected ? *p_selected : false, enabled)) + { + if (p_selected) + *p_selected = !*p_selected; + return true; + } + return false; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. +//------------------------------------------------------------------------- +// - BeginTabBar() +// - BeginTabBarEx() [Internal] +// - EndTabBar() +// - TabBarLayout() [Internal] +// - TabBarCalcTabID() [Internal] +// - TabBarCalcMaxTabWidth() [Internal] +// - TabBarFindTabById() [Internal] +// - TabBarFindTabByOrder() [Internal] +// - TabBarFindMostRecentlySelectedTabForActiveWindow() [Internal] +// - TabBarGetCurrentTab() [Internal] +// - TabBarGetTabName() [Internal] +// - TabBarAddTab() [Internal] +// - TabBarRemoveTab() [Internal] +// - TabBarCloseTab() [Internal] +// - TabBarScrollClamp() [Internal] +// - TabBarScrollToTab() [Internal] +// - TabBarQueueFocus() [Internal] +// - TabBarQueueReorder() [Internal] +// - TabBarProcessReorderFromMousePos() [Internal] +// - TabBarProcessReorder() [Internal] +// - TabBarScrollingButtons() [Internal] +// - TabBarTabListPopupButton() [Internal] +//------------------------------------------------------------------------- + +struct ImGuiTabBarSection +{ + int TabCount; // Number of tabs in this section. + float Width; // Sum of width of tabs in this section (after shrinking down) + float Spacing; // Horizontal spacing at the end of the section. + + ImGuiTabBarSection() { memset(this, 0, sizeof(*this)); } +}; + +namespace ImGui +{ + static void TabBarLayout(ImGuiTabBar* tab_bar); + static ImU32 TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label, ImGuiWindow* docked_window); + static float TabBarCalcMaxTabWidth(); + static float TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling); + static void TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiID tab_id, ImGuiTabBarSection* sections); + static ImGuiTabItem* TabBarScrollingButtons(ImGuiTabBar* tab_bar); + static ImGuiTabItem* TabBarTabListPopupButton(ImGuiTabBar* tab_bar); +} + +ImGuiTabBar::ImGuiTabBar() +{ + memset(this, 0, sizeof(*this)); + CurrFrameVisible = PrevFrameVisible = -1; + LastTabItemIdx = -1; +} + +static inline int TabItemGetSectionIdx(const ImGuiTabItem* tab) +{ + return (tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; +} + +static int IMGUI_CDECL TabItemComparerBySection(const void* lhs, const void* rhs) +{ + const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; + const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; + const int a_section = TabItemGetSectionIdx(a); + const int b_section = TabItemGetSectionIdx(b); + if (a_section != b_section) + return a_section - b_section; + return (int)(a->IndexDuringLayout - b->IndexDuringLayout); +} + +static int IMGUI_CDECL TabItemComparerByBeginOrder(const void* lhs, const void* rhs) +{ + const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; + const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; + return (int)(a->BeginOrder - b->BeginOrder); +} + +static ImGuiTabBar* GetTabBarFromTabBarRef(const ImGuiPtrOrIndex& ref) +{ + ImGuiContext& g = *GImGui; + return ref.Ptr ? (ImGuiTabBar*)ref.Ptr : g.TabBars.GetByIndex(ref.Index); +} + +static ImGuiPtrOrIndex GetTabBarRefFromTabBar(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + if (g.TabBars.Contains(tab_bar)) + return ImGuiPtrOrIndex(g.TabBars.GetIndex(tab_bar)); + return ImGuiPtrOrIndex(tab_bar); +} + +bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiID id = window->GetID(str_id); + ImGuiTabBar* tab_bar = g.TabBars.GetOrAddByKey(id); + ImRect tab_bar_bb = ImRect(window->DC.CursorPos.x, window->DC.CursorPos.y, window->WorkRect.Max.x, window->DC.CursorPos.y + g.FontSize + g.Style.FramePadding.y * 2); + tab_bar->ID = id; + tab_bar->SeparatorMinX = tab_bar->BarRect.Min.x - IM_TRUNC(window->WindowPadding.x * 0.5f); + tab_bar->SeparatorMaxX = tab_bar->BarRect.Max.x + IM_TRUNC(window->WindowPadding.x * 0.5f); + return BeginTabBarEx(tab_bar, tab_bar_bb, flags | ImGuiTabBarFlags_IsFocused); +} + +bool ImGui::BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& tab_bar_bb, ImGuiTabBarFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + IM_ASSERT(tab_bar->ID != 0); + if ((flags & ImGuiTabBarFlags_DockNode) == 0) + PushOverrideID(tab_bar->ID); + + // Add to stack + g.CurrentTabBarStack.push_back(GetTabBarRefFromTabBar(tab_bar)); + g.CurrentTabBar = tab_bar; + + // Append with multiple BeginTabBar()/EndTabBar() pairs. + tab_bar->BackupCursorPos = window->DC.CursorPos; + if (tab_bar->CurrFrameVisible == g.FrameCount) + { + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.y + tab_bar->ItemSpacingY); + tab_bar->BeginCount++; + return true; + } + + // Ensure correct ordering when toggling ImGuiTabBarFlags_Reorderable flag, or when a new tab was added while being not reorderable + if ((flags & ImGuiTabBarFlags_Reorderable) != (tab_bar->Flags & ImGuiTabBarFlags_Reorderable) || (tab_bar->TabsAddedNew && !(flags & ImGuiTabBarFlags_Reorderable))) + if ((flags & ImGuiTabBarFlags_DockNode) == 0) // FIXME: TabBar with DockNode can now be hybrid + ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerByBeginOrder); + tab_bar->TabsAddedNew = false; + + // Flags + if ((flags & ImGuiTabBarFlags_FittingPolicyMask_) == 0) + flags |= ImGuiTabBarFlags_FittingPolicyDefault_; + + tab_bar->Flags = flags; + tab_bar->BarRect = tab_bar_bb; + tab_bar->WantLayout = true; // Layout will be done on the first call to ItemTab() + tab_bar->PrevFrameVisible = tab_bar->CurrFrameVisible; + tab_bar->CurrFrameVisible = g.FrameCount; + tab_bar->PrevTabsContentsHeight = tab_bar->CurrTabsContentsHeight; + tab_bar->CurrTabsContentsHeight = 0.0f; + tab_bar->ItemSpacingY = g.Style.ItemSpacing.y; + tab_bar->FramePadding = g.Style.FramePadding; + tab_bar->TabsActiveCount = 0; + tab_bar->LastTabItemIdx = -1; + tab_bar->BeginCount = 1; + + // Set cursor pos in a way which only be used in the off-chance the user erroneously submits item before BeginTabItem(): items will overlap + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.y + tab_bar->ItemSpacingY); + + // Draw separator + // (it would be misleading to draw this in EndTabBar() suggesting that it may be drawn over tabs, as tab bar are appendable) + const ImU32 col = GetColorU32((flags & ImGuiTabBarFlags_IsFocused) ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive); + if (g.Style.TabBarBorderSize > 0.0f) + { + const float y = tab_bar->BarRect.Max.y; + window->DrawList->AddRectFilled(ImVec2(tab_bar->SeparatorMinX, y - g.Style.TabBarBorderSize), ImVec2(tab_bar->SeparatorMaxX, y), col); + } + return true; +} + +void ImGui::EndTabBar() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Mismatched BeginTabBar()/EndTabBar()!"); + return; + } + + // Fallback in case no TabItem have been submitted + if (tab_bar->WantLayout) + TabBarLayout(tab_bar); + + // Restore the last visible height if no tab is visible, this reduce vertical flicker/movement when a tabs gets removed without calling SetTabItemClosed(). + const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); + if (tab_bar->VisibleTabWasSubmitted || tab_bar->VisibleTabId == 0 || tab_bar_appearing) + { + tab_bar->CurrTabsContentsHeight = ImMax(window->DC.CursorPos.y - tab_bar->BarRect.Max.y, tab_bar->CurrTabsContentsHeight); + window->DC.CursorPos.y = tab_bar->BarRect.Max.y + tab_bar->CurrTabsContentsHeight; + } + else + { + window->DC.CursorPos.y = tab_bar->BarRect.Max.y + tab_bar->PrevTabsContentsHeight; + } + if (tab_bar->BeginCount > 1) + window->DC.CursorPos = tab_bar->BackupCursorPos; + + tab_bar->LastTabItemIdx = -1; + if ((tab_bar->Flags & ImGuiTabBarFlags_DockNode) == 0) + PopID(); + + g.CurrentTabBarStack.pop_back(); + g.CurrentTabBar = g.CurrentTabBarStack.empty() ? NULL : GetTabBarFromTabBarRef(g.CurrentTabBarStack.back()); +} + +// Scrolling happens only in the central section (leading/trailing sections are not scrolling) +static float TabBarCalcScrollableWidth(ImGuiTabBar* tab_bar, ImGuiTabBarSection* sections) +{ + return tab_bar->BarRect.GetWidth() - sections[0].Width - sections[2].Width - sections[1].Spacing; +} + +// This is called only once a frame before by the first call to ItemTab() +// The reason we're not calling it in BeginTabBar() is to leave a chance to the user to call the SetTabItemClosed() functions. +static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + tab_bar->WantLayout = false; + + // Garbage collect by compacting list + // Detect if we need to sort out tab list (e.g. in rare case where a tab changed section) + int tab_dst_n = 0; + bool need_sort_by_section = false; + ImGuiTabBarSection sections[3]; // Layout sections: Leading, Central, Trailing + for (int tab_src_n = 0; tab_src_n < tab_bar->Tabs.Size; tab_src_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_src_n]; + if (tab->LastFrameVisible < tab_bar->PrevFrameVisible || tab->WantClose) + { + // Remove tab + if (tab_bar->VisibleTabId == tab->ID) { tab_bar->VisibleTabId = 0; } + if (tab_bar->SelectedTabId == tab->ID) { tab_bar->SelectedTabId = 0; } + if (tab_bar->NextSelectedTabId == tab->ID) { tab_bar->NextSelectedTabId = 0; } + continue; + } + if (tab_dst_n != tab_src_n) + tab_bar->Tabs[tab_dst_n] = tab_bar->Tabs[tab_src_n]; + + tab = &tab_bar->Tabs[tab_dst_n]; + tab->IndexDuringLayout = (ImS16)tab_dst_n; + + // We will need sorting if tabs have changed section (e.g. moved from one of Leading/Central/Trailing to another) + int curr_tab_section_n = TabItemGetSectionIdx(tab); + if (tab_dst_n > 0) + { + ImGuiTabItem* prev_tab = &tab_bar->Tabs[tab_dst_n - 1]; + int prev_tab_section_n = TabItemGetSectionIdx(prev_tab); + if (curr_tab_section_n == 0 && prev_tab_section_n != 0) + need_sort_by_section = true; + if (prev_tab_section_n == 2 && curr_tab_section_n != 2) + need_sort_by_section = true; + } + + sections[curr_tab_section_n].TabCount++; + tab_dst_n++; + } + if (tab_bar->Tabs.Size != tab_dst_n) + tab_bar->Tabs.resize(tab_dst_n); + + if (need_sort_by_section) + ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerBySection); + + // Calculate spacing between sections + sections[0].Spacing = sections[0].TabCount > 0 && (sections[1].TabCount + sections[2].TabCount) > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; + sections[1].Spacing = sections[1].TabCount > 0 && sections[2].TabCount > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; + + // Setup next selected tab + ImGuiID scroll_to_tab_id = 0; + if (tab_bar->NextSelectedTabId) + { + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId; + tab_bar->NextSelectedTabId = 0; + scroll_to_tab_id = tab_bar->SelectedTabId; + } + + // Process order change request (we could probably process it when requested but it's just saner to do it in a single spot). + if (tab_bar->ReorderRequestTabId != 0) + { + if (TabBarProcessReorder(tab_bar)) + if (tab_bar->ReorderRequestTabId == tab_bar->SelectedTabId) + scroll_to_tab_id = tab_bar->ReorderRequestTabId; + tab_bar->ReorderRequestTabId = 0; + } + + // Tab List Popup (will alter tab_bar->BarRect and therefore the available width!) + const bool tab_list_popup_button = (tab_bar->Flags & ImGuiTabBarFlags_TabListPopupButton) != 0; + if (tab_list_popup_button) + if (ImGuiTabItem* tab_to_select = TabBarTabListPopupButton(tab_bar)) // NB: Will alter BarRect.Min.x! + scroll_to_tab_id = tab_bar->SelectedTabId = tab_to_select->ID; + + // Leading/Trailing tabs will be shrink only if central one aren't visible anymore, so layout the shrink data as: leading, trailing, central + // (whereas our tabs are stored as: leading, central, trailing) + int shrink_buffer_indexes[3] = { 0, sections[0].TabCount + sections[2].TabCount, sections[0].TabCount }; + g.ShrinkWidthBuffer.resize(tab_bar->Tabs.Size); + + // Compute ideal tabs widths + store them into shrink buffer + ImGuiTabItem* most_recently_selected_tab = NULL; + int curr_section_n = -1; + bool found_selected_tab_id = false; + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + IM_ASSERT(tab->LastFrameVisible >= tab_bar->PrevFrameVisible); + + if ((most_recently_selected_tab == NULL || most_recently_selected_tab->LastFrameSelected < tab->LastFrameSelected) && !(tab->Flags & ImGuiTabItemFlags_Button)) + most_recently_selected_tab = tab; + if (tab->ID == tab_bar->SelectedTabId) + found_selected_tab_id = true; + if (scroll_to_tab_id == 0 && g.NavJustMovedToId == tab->ID) + scroll_to_tab_id = tab->ID; + + // Refresh tab width immediately, otherwise changes of style e.g. style.FramePadding.x would noticeably lag in the tab bar. + // Additionally, when using TabBarAddTab() to manipulate tab bar order we occasionally insert new tabs that don't have a width yet, + // and we cannot wait for the next BeginTabItem() call. We cannot compute this width within TabBarAddTab() because font size depends on the active window. + const char* tab_name = TabBarGetTabName(tab_bar, tab); + const bool has_close_button_or_unsaved_marker = (tab->Flags & ImGuiTabItemFlags_NoCloseButton) == 0 || (tab->Flags & ImGuiTabItemFlags_UnsavedDocument); + tab->ContentWidth = (tab->RequestedWidth >= 0.0f) ? tab->RequestedWidth : TabItemCalcSize(tab_name, has_close_button_or_unsaved_marker).x; + + int section_n = TabItemGetSectionIdx(tab); + ImGuiTabBarSection* section = §ions[section_n]; + section->Width += tab->ContentWidth + (section_n == curr_section_n ? g.Style.ItemInnerSpacing.x : 0.0f); + curr_section_n = section_n; + + // Store data so we can build an array sorted by width if we need to shrink tabs down + IM_MSVC_WARNING_SUPPRESS(6385); + ImGuiShrinkWidthItem* shrink_width_item = &g.ShrinkWidthBuffer[shrink_buffer_indexes[section_n]++]; + shrink_width_item->Index = tab_n; + shrink_width_item->Width = shrink_width_item->InitialWidth = tab->ContentWidth; + tab->Width = ImMax(tab->ContentWidth, 1.0f); + } + + // Compute total ideal width (used for e.g. auto-resizing a window) + tab_bar->WidthAllTabsIdeal = 0.0f; + for (int section_n = 0; section_n < 3; section_n++) + tab_bar->WidthAllTabsIdeal += sections[section_n].Width + sections[section_n].Spacing; + + // Horizontal scrolling buttons + // (note that TabBarScrollButtons() will alter BarRect.Max.x) + if ((tab_bar->WidthAllTabsIdeal > tab_bar->BarRect.GetWidth() && tab_bar->Tabs.Size > 1) && !(tab_bar->Flags & ImGuiTabBarFlags_NoTabListScrollingButtons) && (tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyScroll)) + if (ImGuiTabItem* scroll_and_select_tab = TabBarScrollingButtons(tab_bar)) + { + scroll_to_tab_id = scroll_and_select_tab->ID; + if ((scroll_and_select_tab->Flags & ImGuiTabItemFlags_Button) == 0) + tab_bar->SelectedTabId = scroll_to_tab_id; + } + + // Shrink widths if full tabs don't fit in their allocated space + float section_0_w = sections[0].Width + sections[0].Spacing; + float section_1_w = sections[1].Width + sections[1].Spacing; + float section_2_w = sections[2].Width + sections[2].Spacing; + bool central_section_is_visible = (section_0_w + section_2_w) < tab_bar->BarRect.GetWidth(); + float width_excess; + if (central_section_is_visible) + width_excess = ImMax(section_1_w - (tab_bar->BarRect.GetWidth() - section_0_w - section_2_w), 0.0f); // Excess used to shrink central section + else + width_excess = (section_0_w + section_2_w) - tab_bar->BarRect.GetWidth(); // Excess used to shrink leading/trailing section + + // With ImGuiTabBarFlags_FittingPolicyScroll policy, we will only shrink leading/trailing if the central section is not visible anymore + if (width_excess >= 1.0f && ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyResizeDown) || !central_section_is_visible)) + { + int shrink_data_count = (central_section_is_visible ? sections[1].TabCount : sections[0].TabCount + sections[2].TabCount); + int shrink_data_offset = (central_section_is_visible ? sections[0].TabCount + sections[2].TabCount : 0); + ShrinkWidths(g.ShrinkWidthBuffer.Data + shrink_data_offset, shrink_data_count, width_excess); + + // Apply shrunk values into tabs and sections + for (int tab_n = shrink_data_offset; tab_n < shrink_data_offset + shrink_data_count; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[g.ShrinkWidthBuffer[tab_n].Index]; + float shrinked_width = IM_TRUNC(g.ShrinkWidthBuffer[tab_n].Width); + if (shrinked_width < 0.0f) + continue; + + shrinked_width = ImMax(1.0f, shrinked_width); + int section_n = TabItemGetSectionIdx(tab); + sections[section_n].Width -= (tab->Width - shrinked_width); + tab->Width = shrinked_width; + } + } + + // Layout all active tabs + int section_tab_index = 0; + float tab_offset = 0.0f; + tab_bar->WidthAllTabs = 0.0f; + for (int section_n = 0; section_n < 3; section_n++) + { + ImGuiTabBarSection* section = §ions[section_n]; + if (section_n == 2) + tab_offset = ImMin(ImMax(0.0f, tab_bar->BarRect.GetWidth() - section->Width), tab_offset); + + for (int tab_n = 0; tab_n < section->TabCount; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[section_tab_index + tab_n]; + tab->Offset = tab_offset; + tab->NameOffset = -1; + tab_offset += tab->Width + (tab_n < section->TabCount - 1 ? g.Style.ItemInnerSpacing.x : 0.0f); + } + tab_bar->WidthAllTabs += ImMax(section->Width + section->Spacing, 0.0f); + tab_offset += section->Spacing; + section_tab_index += section->TabCount; + } + + // Clear name buffers + tab_bar->TabsNames.Buf.resize(0); + + // If we have lost the selected tab, select the next most recently active one + if (found_selected_tab_id == false) + tab_bar->SelectedTabId = 0; + if (tab_bar->SelectedTabId == 0 && tab_bar->NextSelectedTabId == 0 && most_recently_selected_tab != NULL) + scroll_to_tab_id = tab_bar->SelectedTabId = most_recently_selected_tab->ID; + + // Lock in visible tab + tab_bar->VisibleTabId = tab_bar->SelectedTabId; + tab_bar->VisibleTabWasSubmitted = false; + + // CTRL+TAB can override visible tab temporarily + if (g.NavWindowingTarget != NULL && g.NavWindowingTarget->DockNode && g.NavWindowingTarget->DockNode->TabBar == tab_bar) + tab_bar->VisibleTabId = scroll_to_tab_id = g.NavWindowingTarget->TabId; + + // Apply request requests + if (scroll_to_tab_id != 0) + TabBarScrollToTab(tab_bar, scroll_to_tab_id, sections); + else if ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyScroll) && IsMouseHoveringRect(tab_bar->BarRect.Min, tab_bar->BarRect.Max, true) && IsWindowContentHoverable(g.CurrentWindow)) + { + const float wheel = g.IO.MouseWheelRequestAxisSwap ? g.IO.MouseWheel : g.IO.MouseWheelH; + const ImGuiKey wheel_key = g.IO.MouseWheelRequestAxisSwap ? ImGuiKey_MouseWheelY : ImGuiKey_MouseWheelX; + if (TestKeyOwner(wheel_key, tab_bar->ID) && wheel != 0.0f) + { + const float scroll_step = wheel * TabBarCalcScrollableWidth(tab_bar, sections) / 3.0f; + tab_bar->ScrollingTargetDistToVisibility = 0.0f; + tab_bar->ScrollingTarget = TabBarScrollClamp(tab_bar, tab_bar->ScrollingTarget - scroll_step); + } + SetKeyOwner(wheel_key, tab_bar->ID); + } + + // Update scrolling + tab_bar->ScrollingAnim = TabBarScrollClamp(tab_bar, tab_bar->ScrollingAnim); + tab_bar->ScrollingTarget = TabBarScrollClamp(tab_bar, tab_bar->ScrollingTarget); + if (tab_bar->ScrollingAnim != tab_bar->ScrollingTarget) + { + // Scrolling speed adjust itself so we can always reach our target in 1/3 seconds. + // Teleport if we are aiming far off the visible line + tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, 70.0f * g.FontSize); + tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, ImFabs(tab_bar->ScrollingTarget - tab_bar->ScrollingAnim) / 0.3f); + const bool teleport = (tab_bar->PrevFrameVisible + 1 < g.FrameCount) || (tab_bar->ScrollingTargetDistToVisibility > 10.0f * g.FontSize); + tab_bar->ScrollingAnim = teleport ? tab_bar->ScrollingTarget : ImLinearSweep(tab_bar->ScrollingAnim, tab_bar->ScrollingTarget, g.IO.DeltaTime * tab_bar->ScrollingSpeed); + } + else + { + tab_bar->ScrollingSpeed = 0.0f; + } + tab_bar->ScrollingRectMinX = tab_bar->BarRect.Min.x + sections[0].Width + sections[0].Spacing; + tab_bar->ScrollingRectMaxX = tab_bar->BarRect.Max.x - sections[2].Width - sections[1].Spacing; + + // Actual layout in host window (we don't do it in BeginTabBar() so as not to waste an extra frame) + ImGuiWindow* window = g.CurrentWindow; + window->DC.CursorPos = tab_bar->BarRect.Min; + ItemSize(ImVec2(tab_bar->WidthAllTabs, tab_bar->BarRect.GetHeight()), tab_bar->FramePadding.y); + window->DC.IdealMaxPos.x = ImMax(window->DC.IdealMaxPos.x, tab_bar->BarRect.Min.x + tab_bar->WidthAllTabsIdeal); +} + +// Dockable windows uses Name/ID in the global namespace. Non-dockable items use the ID stack. +static ImU32 ImGui::TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label, ImGuiWindow* docked_window) +{ + if (docked_window != NULL) + { + IM_UNUSED(tab_bar); + IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_DockNode); + ImGuiID id = docked_window->TabId; + KeepAliveID(id); + return id; + } + else + { + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(label); + } +} + +static float ImGui::TabBarCalcMaxTabWidth() +{ + ImGuiContext& g = *GImGui; + return g.FontSize * 20.0f; +} + +ImGuiTabItem* ImGui::TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id) +{ + if (tab_id != 0) + for (int n = 0; n < tab_bar->Tabs.Size; n++) + if (tab_bar->Tabs[n].ID == tab_id) + return &tab_bar->Tabs[n]; + return NULL; +} + +// Order = visible order, not submission order! (which is tab->BeginOrder) +ImGuiTabItem* ImGui::TabBarFindTabByOrder(ImGuiTabBar* tab_bar, int order) +{ + if (order < 0 || order >= tab_bar->Tabs.Size) + return NULL; + return &tab_bar->Tabs[order]; +} + +// FIXME: See references to #2304 in TODO.txt +ImGuiTabItem* ImGui::TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar) +{ + ImGuiTabItem* most_recently_selected_tab = NULL; + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + if (most_recently_selected_tab == NULL || most_recently_selected_tab->LastFrameSelected < tab->LastFrameSelected) + if (tab->Window && tab->Window->WasActive) + most_recently_selected_tab = tab; + } + return most_recently_selected_tab; +} + +ImGuiTabItem* ImGui::TabBarGetCurrentTab(ImGuiTabBar* tab_bar) +{ + if (tab_bar->LastTabItemIdx <= 0 || tab_bar->LastTabItemIdx >= tab_bar->Tabs.Size) + return NULL; + return &tab_bar->Tabs[tab_bar->LastTabItemIdx]; +} + +const char* ImGui::TabBarGetTabName(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) +{ + if (tab->Window) + return tab->Window->Name; + if (tab->NameOffset == -1) + return "N/A"; + IM_ASSERT(tab->NameOffset < tab_bar->TabsNames.Buf.Size); + return tab_bar->TabsNames.Buf.Data + tab->NameOffset; +} + +// The purpose of this call is to register tab in advance so we can control their order at the time they appear. +// Otherwise calling this is unnecessary as tabs are appending as needed by the BeginTabItem() function. +void ImGui::TabBarAddTab(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(TabBarFindTabByID(tab_bar, window->TabId) == NULL); + IM_ASSERT(g.CurrentTabBar != tab_bar); // Can't work while the tab bar is active as our tab doesn't have an X offset yet, in theory we could/should test something like (tab_bar->CurrFrameVisible < g.FrameCount) but we'd need to solve why triggers the commented early-out assert in BeginTabBarEx() (probably dock node going from implicit to explicit in same frame) + + if (!window->HasCloseButton) + tab_flags |= ImGuiTabItemFlags_NoCloseButton; // Set _NoCloseButton immediately because it will be used for first-frame width calculation. + + ImGuiTabItem new_tab; + new_tab.ID = window->TabId; + new_tab.Flags = tab_flags; + new_tab.LastFrameVisible = tab_bar->CurrFrameVisible; // Required so BeginTabBar() doesn't ditch the tab + if (new_tab.LastFrameVisible == -1) + new_tab.LastFrameVisible = g.FrameCount - 1; + new_tab.Window = window; // Required so tab bar layout can compute the tab width before tab submission + tab_bar->Tabs.push_back(new_tab); +} + +// The *TabId fields are already set by the docking system _before_ the actual TabItem was created, so we clear them regardless. +void ImGui::TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id) +{ + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) + tab_bar->Tabs.erase(tab); + if (tab_bar->VisibleTabId == tab_id) { tab_bar->VisibleTabId = 0; } + if (tab_bar->SelectedTabId == tab_id) { tab_bar->SelectedTabId = 0; } + if (tab_bar->NextSelectedTabId == tab_id) { tab_bar->NextSelectedTabId = 0; } +} + +// Called on manual closure attempt +void ImGui::TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) +{ + if (tab->Flags & ImGuiTabItemFlags_Button) + return; // A button appended with TabItemButton(). + + if (!(tab->Flags & ImGuiTabItemFlags_UnsavedDocument)) + { + // This will remove a frame of lag for selecting another tab on closure. + // However we don't run it in the case where the 'Unsaved' flag is set, so user gets a chance to fully undo the closure + tab->WantClose = true; + if (tab_bar->VisibleTabId == tab->ID) + { + tab->LastFrameVisible = -1; + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = 0; + } + } + else + { + // Actually select before expecting closure attempt (on an UnsavedDocument tab user is expect to e.g. show a popup) + if (tab_bar->VisibleTabId != tab->ID) + TabBarQueueFocus(tab_bar, tab); + } +} + +static float ImGui::TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling) +{ + scrolling = ImMin(scrolling, tab_bar->WidthAllTabs - tab_bar->BarRect.GetWidth()); + return ImMax(scrolling, 0.0f); +} + +// Note: we may scroll to tab that are not selected! e.g. using keyboard arrow keys +static void ImGui::TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiID tab_id, ImGuiTabBarSection* sections) +{ + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id); + if (tab == NULL) + return; + if (tab->Flags & ImGuiTabItemFlags_SectionMask_) + return; + + ImGuiContext& g = *GImGui; + float margin = g.FontSize * 1.0f; // When to scroll to make Tab N+1 visible always make a bit of N visible to suggest more scrolling area (since we don't have a scrollbar) + int order = TabBarGetTabOrder(tab_bar, tab); + + // Scrolling happens only in the central section (leading/trailing sections are not scrolling) + float scrollable_width = TabBarCalcScrollableWidth(tab_bar, sections); + + // We make all tabs positions all relative Sections[0].Width to make code simpler + float tab_x1 = tab->Offset - sections[0].Width + (order > sections[0].TabCount - 1 ? -margin : 0.0f); + float tab_x2 = tab->Offset - sections[0].Width + tab->Width + (order + 1 < tab_bar->Tabs.Size - sections[2].TabCount ? margin : 1.0f); + tab_bar->ScrollingTargetDistToVisibility = 0.0f; + if (tab_bar->ScrollingTarget > tab_x1 || (tab_x2 - tab_x1 >= scrollable_width)) + { + // Scroll to the left + tab_bar->ScrollingTargetDistToVisibility = ImMax(tab_bar->ScrollingAnim - tab_x2, 0.0f); + tab_bar->ScrollingTarget = tab_x1; + } + else if (tab_bar->ScrollingTarget < tab_x2 - scrollable_width) + { + // Scroll to the right + tab_bar->ScrollingTargetDistToVisibility = ImMax((tab_x1 - scrollable_width) - tab_bar->ScrollingAnim, 0.0f); + tab_bar->ScrollingTarget = tab_x2 - scrollable_width; + } +} + +void ImGui::TabBarQueueFocus(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) +{ + tab_bar->NextSelectedTabId = tab->ID; +} + +void ImGui::TabBarQueueReorder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, int offset) +{ + IM_ASSERT(offset != 0); + IM_ASSERT(tab_bar->ReorderRequestTabId == 0); + tab_bar->ReorderRequestTabId = tab->ID; + tab_bar->ReorderRequestOffset = (ImS16)offset; +} + +void ImGui::TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, ImGuiTabItem* src_tab, ImVec2 mouse_pos) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(tab_bar->ReorderRequestTabId == 0); + if ((tab_bar->Flags & ImGuiTabBarFlags_Reorderable) == 0) + return; + + const bool is_central_section = (src_tab->Flags & ImGuiTabItemFlags_SectionMask_) == 0; + const float bar_offset = tab_bar->BarRect.Min.x - (is_central_section ? tab_bar->ScrollingTarget : 0); + + // Count number of contiguous tabs we are crossing over + const int dir = (bar_offset + src_tab->Offset) > mouse_pos.x ? -1 : +1; + const int src_idx = tab_bar->Tabs.index_from_ptr(src_tab); + int dst_idx = src_idx; + for (int i = src_idx; i >= 0 && i < tab_bar->Tabs.Size; i += dir) + { + // Reordered tabs must share the same section + const ImGuiTabItem* dst_tab = &tab_bar->Tabs[i]; + if (dst_tab->Flags & ImGuiTabItemFlags_NoReorder) + break; + if ((dst_tab->Flags & ImGuiTabItemFlags_SectionMask_) != (src_tab->Flags & ImGuiTabItemFlags_SectionMask_)) + break; + dst_idx = i; + + // Include spacing after tab, so when mouse cursor is between tabs we would not continue checking further tabs that are not hovered. + const float x1 = bar_offset + dst_tab->Offset - g.Style.ItemInnerSpacing.x; + const float x2 = bar_offset + dst_tab->Offset + dst_tab->Width + g.Style.ItemInnerSpacing.x; + //GetForegroundDrawList()->AddRect(ImVec2(x1, tab_bar->BarRect.Min.y), ImVec2(x2, tab_bar->BarRect.Max.y), IM_COL32(255, 0, 0, 255)); + if ((dir < 0 && mouse_pos.x > x1) || (dir > 0 && mouse_pos.x < x2)) + break; + } + + if (dst_idx != src_idx) + TabBarQueueReorder(tab_bar, src_tab, dst_idx - src_idx); +} + +bool ImGui::TabBarProcessReorder(ImGuiTabBar* tab_bar) +{ + ImGuiTabItem* tab1 = TabBarFindTabByID(tab_bar, tab_bar->ReorderRequestTabId); + if (tab1 == NULL || (tab1->Flags & ImGuiTabItemFlags_NoReorder)) + return false; + + //IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_Reorderable); // <- this may happen when using debug tools + int tab2_order = TabBarGetTabOrder(tab_bar, tab1) + tab_bar->ReorderRequestOffset; + if (tab2_order < 0 || tab2_order >= tab_bar->Tabs.Size) + return false; + + // Reordered tabs must share the same section + // (Note: TabBarQueueReorderFromMousePos() also has a similar test but since we allow direct calls to TabBarQueueReorder() we do it here too) + ImGuiTabItem* tab2 = &tab_bar->Tabs[tab2_order]; + if (tab2->Flags & ImGuiTabItemFlags_NoReorder) + return false; + if ((tab1->Flags & ImGuiTabItemFlags_SectionMask_) != (tab2->Flags & ImGuiTabItemFlags_SectionMask_)) + return false; + + ImGuiTabItem item_tmp = *tab1; + ImGuiTabItem* src_tab = (tab_bar->ReorderRequestOffset > 0) ? tab1 + 1 : tab2; + ImGuiTabItem* dst_tab = (tab_bar->ReorderRequestOffset > 0) ? tab1 : tab2 + 1; + const int move_count = (tab_bar->ReorderRequestOffset > 0) ? tab_bar->ReorderRequestOffset : -tab_bar->ReorderRequestOffset; + memmove(dst_tab, src_tab, move_count * sizeof(ImGuiTabItem)); + *tab2 = item_tmp; + + if (tab_bar->Flags & ImGuiTabBarFlags_SaveSettings) + MarkIniSettingsDirty(); + return true; +} + +static ImGuiTabItem* ImGui::TabBarScrollingButtons(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + const ImVec2 arrow_button_size(g.FontSize - 2.0f, g.FontSize + g.Style.FramePadding.y * 2.0f); + const float scrolling_buttons_width = arrow_button_size.x * 2.0f; + + const ImVec2 backup_cursor_pos = window->DC.CursorPos; + //window->DrawList->AddRect(ImVec2(tab_bar->BarRect.Max.x - scrolling_buttons_width, tab_bar->BarRect.Min.y), ImVec2(tab_bar->BarRect.Max.x, tab_bar->BarRect.Max.y), IM_COL32(255,0,0,255)); + + int select_dir = 0; + ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; + arrow_col.w *= 0.5f; + + PushStyleColor(ImGuiCol_Text, arrow_col); + PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); + const float backup_repeat_delay = g.IO.KeyRepeatDelay; + const float backup_repeat_rate = g.IO.KeyRepeatRate; + g.IO.KeyRepeatDelay = 0.250f; + g.IO.KeyRepeatRate = 0.200f; + float x = ImMax(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.x - scrolling_buttons_width); + window->DC.CursorPos = ImVec2(x, tab_bar->BarRect.Min.y); + if (ArrowButtonEx("##<", ImGuiDir_Left, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) + select_dir = -1; + window->DC.CursorPos = ImVec2(x + arrow_button_size.x, tab_bar->BarRect.Min.y); + if (ArrowButtonEx("##>", ImGuiDir_Right, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) + select_dir = +1; + PopStyleColor(2); + g.IO.KeyRepeatRate = backup_repeat_rate; + g.IO.KeyRepeatDelay = backup_repeat_delay; + + ImGuiTabItem* tab_to_scroll_to = NULL; + if (select_dir != 0) + if (ImGuiTabItem* tab_item = TabBarFindTabByID(tab_bar, tab_bar->SelectedTabId)) + { + int selected_order = TabBarGetTabOrder(tab_bar, tab_item); + int target_order = selected_order + select_dir; + + // Skip tab item buttons until another tab item is found or end is reached + while (tab_to_scroll_to == NULL) + { + // If we are at the end of the list, still scroll to make our tab visible + tab_to_scroll_to = &tab_bar->Tabs[(target_order >= 0 && target_order < tab_bar->Tabs.Size) ? target_order : selected_order]; + + // Cross through buttons + // (even if first/last item is a button, return it so we can update the scroll) + if (tab_to_scroll_to->Flags & ImGuiTabItemFlags_Button) + { + target_order += select_dir; + selected_order += select_dir; + tab_to_scroll_to = (target_order < 0 || target_order >= tab_bar->Tabs.Size) ? tab_to_scroll_to : NULL; + } + } + } + window->DC.CursorPos = backup_cursor_pos; + tab_bar->BarRect.Max.x -= scrolling_buttons_width + 1.0f; + + return tab_to_scroll_to; +} + +static ImGuiTabItem* ImGui::TabBarTabListPopupButton(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // We use g.Style.FramePadding.y to match the square ArrowButton size + const float tab_list_popup_button_width = g.FontSize + g.Style.FramePadding.y; + const ImVec2 backup_cursor_pos = window->DC.CursorPos; + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x - g.Style.FramePadding.y, tab_bar->BarRect.Min.y); + tab_bar->BarRect.Min.x += tab_list_popup_button_width; + + ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; + arrow_col.w *= 0.5f; + PushStyleColor(ImGuiCol_Text, arrow_col); + PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); + bool open = BeginCombo("##v", NULL, ImGuiComboFlags_NoPreview | ImGuiComboFlags_HeightLargest); + PopStyleColor(2); + + ImGuiTabItem* tab_to_select = NULL; + if (open) + { + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + if (tab->Flags & ImGuiTabItemFlags_Button) + continue; + + const char* tab_name = TabBarGetTabName(tab_bar, tab); + if (Selectable(tab_name, tab_bar->SelectedTabId == tab->ID)) + tab_to_select = tab; + } + EndCombo(); + } + + window->DC.CursorPos = backup_cursor_pos; + return tab_to_select; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. +//------------------------------------------------------------------------- +// - BeginTabItem() +// - EndTabItem() +// - TabItemButton() +// - TabItemEx() [Internal] +// - SetTabItemClosed() +// - TabItemCalcSize() [Internal] +// - TabItemBackground() [Internal] +// - TabItemLabelAndCloseButton() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::BeginTabItem(const char* label, bool* p_open, ImGuiTabItemFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return false; + } + IM_ASSERT((flags & ImGuiTabItemFlags_Button) == 0); // BeginTabItem() Can't be used with button flags, use TabItemButton() instead! + + bool ret = TabItemEx(tab_bar, label, p_open, flags, NULL); + if (ret && !(flags & ImGuiTabItemFlags_NoPushId)) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; + PushOverrideID(tab->ID); // We already hashed 'label' so push into the ID stack directly instead of doing another hash through PushID(label) + } + return ret; +} + +void ImGui::EndTabItem() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return; + } + IM_ASSERT(tab_bar->LastTabItemIdx >= 0); + ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; + if (!(tab->Flags & ImGuiTabItemFlags_NoPushId)) + PopID(); +} + +bool ImGui::TabItemButton(const char* label, ImGuiTabItemFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return false; + } + return TabItemEx(tab_bar, label, NULL, flags | ImGuiTabItemFlags_Button | ImGuiTabItemFlags_NoReorder, NULL); +} + +bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window) +{ + // Layout whole tab bar if not already done + ImGuiContext& g = *GImGui; + if (tab_bar->WantLayout) + { + ImGuiNextItemData backup_next_item_data = g.NextItemData; + TabBarLayout(tab_bar); + g.NextItemData = backup_next_item_data; + } + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = TabBarCalcTabID(tab_bar, label, docked_window); + + // If the user called us with *p_open == false, we early out and don't render. + // We make a call to ItemAdd() so that attempts to use a contextual popup menu with an implicit ID won't use an older ID. + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + if (p_open && !*p_open) + { + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); + return false; + } + + IM_ASSERT(!p_open || !(flags & ImGuiTabItemFlags_Button)); + IM_ASSERT((flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) != (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)); // Can't use both Leading and Trailing + + // Store into ImGuiTabItemFlags_NoCloseButton, also honor ImGuiTabItemFlags_NoCloseButton passed by user (although not documented) + if (flags & ImGuiTabItemFlags_NoCloseButton) + p_open = NULL; + else if (p_open == NULL) + flags |= ImGuiTabItemFlags_NoCloseButton; + + // Acquire tab data + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, id); + bool tab_is_new = false; + if (tab == NULL) + { + tab_bar->Tabs.push_back(ImGuiTabItem()); + tab = &tab_bar->Tabs.back(); + tab->ID = id; + tab_bar->TabsAddedNew = tab_is_new = true; + } + tab_bar->LastTabItemIdx = (ImS16)tab_bar->Tabs.index_from_ptr(tab); + + // Calculate tab contents size + ImVec2 size = TabItemCalcSize(label, (p_open != NULL) || (flags & ImGuiTabItemFlags_UnsavedDocument)); + tab->RequestedWidth = -1.0f; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) + size.x = tab->RequestedWidth = g.NextItemData.Width; + if (tab_is_new) + tab->Width = ImMax(1.0f, size.x); + tab->ContentWidth = size.x; + tab->BeginOrder = tab_bar->TabsActiveCount++; + + const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); + const bool tab_bar_focused = (tab_bar->Flags & ImGuiTabBarFlags_IsFocused) != 0; + const bool tab_appearing = (tab->LastFrameVisible + 1 < g.FrameCount); + const bool tab_just_unsaved = (flags & ImGuiTabItemFlags_UnsavedDocument) && !(tab->Flags & ImGuiTabItemFlags_UnsavedDocument); + const bool is_tab_button = (flags & ImGuiTabItemFlags_Button) != 0; + tab->LastFrameVisible = g.FrameCount; + tab->Flags = flags; + tab->Window = docked_window; + + // Append name _WITH_ the zero-terminator + // (regular tabs are permitted in a DockNode tab bar, but window tabs not permitted in a non-DockNode tab bar) + if (docked_window != NULL) + { + IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_DockNode); + tab->NameOffset = -1; + } + else + { + tab->NameOffset = (ImS32)tab_bar->TabsNames.size(); + tab_bar->TabsNames.append(label, label + strlen(label) + 1); + } + + // Update selected tab + if (!is_tab_button) + { + if (tab_appearing && (tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs) && tab_bar->NextSelectedTabId == 0) + if (!tab_bar_appearing || tab_bar->SelectedTabId == 0) + TabBarQueueFocus(tab_bar, tab); // New tabs gets activated + if ((flags & ImGuiTabItemFlags_SetSelected) && (tab_bar->SelectedTabId != id)) // _SetSelected can only be passed on explicit tab bar + TabBarQueueFocus(tab_bar, tab); + } + + // Lock visibility + // (Note: tab_contents_visible != tab_selected... because CTRL+TAB operations may preview some tabs without selecting them!) + bool tab_contents_visible = (tab_bar->VisibleTabId == id); + if (tab_contents_visible) + tab_bar->VisibleTabWasSubmitted = true; + + // On the very first frame of a tab bar we let first tab contents be visible to minimize appearing glitches + if (!tab_contents_visible && tab_bar->SelectedTabId == 0 && tab_bar_appearing && docked_window == NULL) + if (tab_bar->Tabs.Size == 1 && !(tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs)) + tab_contents_visible = true; + + // Note that tab_is_new is not necessarily the same as tab_appearing! When a tab bar stops being submitted + // and then gets submitted again, the tabs will have 'tab_appearing=true' but 'tab_is_new=false'. + if (tab_appearing && (!tab_bar_appearing || tab_is_new)) + { + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); + if (is_tab_button) + return false; + return tab_contents_visible; + } + + if (tab_bar->SelectedTabId == id) + tab->LastFrameSelected = g.FrameCount; + + // Backup current layout position + const ImVec2 backup_main_cursor_pos = window->DC.CursorPos; + + // Layout + const bool is_central_section = (tab->Flags & ImGuiTabItemFlags_SectionMask_) == 0; + size.x = tab->Width; + if (is_central_section) + window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(IM_TRUNC(tab->Offset - tab_bar->ScrollingAnim), 0.0f); + else + window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(tab->Offset, 0.0f); + ImVec2 pos = window->DC.CursorPos; + ImRect bb(pos, pos + size); + + // We don't have CPU clipping primitives to clip the CloseButton (until it becomes a texture), so need to add an extra draw call (temporary in the case of vertical animation) + const bool want_clip_rect = is_central_section && (bb.Min.x < tab_bar->ScrollingRectMinX || bb.Max.x > tab_bar->ScrollingRectMaxX); + if (want_clip_rect) + PushClipRect(ImVec2(ImMax(bb.Min.x, tab_bar->ScrollingRectMinX), bb.Min.y - 1), ImVec2(tab_bar->ScrollingRectMaxX, bb.Max.y), true); + + ImVec2 backup_cursor_max_pos = window->DC.CursorMaxPos; + ItemSize(bb.GetSize(), style.FramePadding.y); + window->DC.CursorMaxPos = backup_cursor_max_pos; + + if (!ItemAdd(bb, id)) + { + if (want_clip_rect) + PopClipRect(); + window->DC.CursorPos = backup_main_cursor_pos; + return tab_contents_visible; + } + + // Click to Select a tab + ImGuiButtonFlags button_flags = ((is_tab_button ? ImGuiButtonFlags_PressedOnClickRelease : ImGuiButtonFlags_PressedOnClick) | ImGuiButtonFlags_AllowOverlap); + if (g.DragDropActive && !g.DragDropPayload.IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW)) // FIXME: May be an opt-in property of the payload to disable this + button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); + if (pressed && !is_tab_button) + TabBarQueueFocus(tab_bar, tab); + + // Transfer active id window so the active id is not owned by the dock host (as StartMouseMovingWindow() + // will only do it on the drag). This allows FocusWindow() to be more conservative in how it clears active id. + if (held && docked_window && g.ActiveId == id && g.ActiveIdIsJustActivated) + g.ActiveIdWindow = docked_window; + + // Drag and drop a single floating window node moves it + ImGuiDockNode* node = docked_window ? docked_window->DockNode : NULL; + const bool single_floating_window_node = node && node->IsFloatingNode() && (node->Windows.Size == 1); + if (held && single_floating_window_node && IsMouseDragging(0, 0.0f)) + { + // Move + StartMouseMovingWindow(docked_window); + } + else if (held && !tab_appearing && IsMouseDragging(0)) + { + // Drag and drop: re-order tabs + int drag_dir = 0; + float drag_distance_from_edge_x = 0.0f; + if (!g.DragDropActive && ((tab_bar->Flags & ImGuiTabBarFlags_Reorderable) || (docked_window != NULL))) + { + // While moving a tab it will jump on the other side of the mouse, so we also test for MouseDelta.x + if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < bb.Min.x) + { + drag_dir = -1; + drag_distance_from_edge_x = bb.Min.x - g.IO.MousePos.x; + TabBarQueueReorderFromMousePos(tab_bar, tab, g.IO.MousePos); + } + else if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > bb.Max.x) + { + drag_dir = +1; + drag_distance_from_edge_x = g.IO.MousePos.x - bb.Max.x; + TabBarQueueReorderFromMousePos(tab_bar, tab, g.IO.MousePos); + } + } + + // Extract a Dockable window out of it's tab bar + const bool can_undock = docked_window != NULL && !(docked_window->Flags & ImGuiWindowFlags_NoMove) && !(node->MergedFlags & ImGuiDockNodeFlags_NoUndocking); + if (can_undock) + { + // We use a variable threshold to distinguish dragging tabs within a tab bar and extracting them out of the tab bar + bool undocking_tab = (g.DragDropActive && g.DragDropPayload.SourceId == id); + if (!undocking_tab) //&& (!g.IO.ConfigDockingWithShift || g.IO.KeyShift) + { + float threshold_base = g.FontSize; + float threshold_x = (threshold_base * 2.2f); + float threshold_y = (threshold_base * 1.5f) + ImClamp((ImFabs(g.IO.MouseDragMaxDistanceAbs[0].x) - threshold_base * 2.0f) * 0.20f, 0.0f, threshold_base * 4.0f); + //GetForegroundDrawList()->AddRect(ImVec2(bb.Min.x - threshold_x, bb.Min.y - threshold_y), ImVec2(bb.Max.x + threshold_x, bb.Max.y + threshold_y), IM_COL32_WHITE); // [DEBUG] + + float distance_from_edge_y = ImMax(bb.Min.y - g.IO.MousePos.y, g.IO.MousePos.y - bb.Max.y); + if (distance_from_edge_y >= threshold_y) + undocking_tab = true; + if (drag_distance_from_edge_x > threshold_x) + if ((drag_dir < 0 && TabBarGetTabOrder(tab_bar, tab) == 0) || (drag_dir > 0 && TabBarGetTabOrder(tab_bar, tab) == tab_bar->Tabs.Size - 1)) + undocking_tab = true; + } + + if (undocking_tab) + { + // Undock + // FIXME: refactor to share more code with e.g. StartMouseMovingWindow + DockContextQueueUndockWindow(&g, docked_window); + g.MovingWindow = docked_window; + SetActiveID(g.MovingWindow->MoveId, g.MovingWindow); + g.ActiveIdClickOffset -= g.MovingWindow->Pos - bb.Min; + g.ActiveIdNoClearOnFocusLoss = true; + SetActiveIdUsingAllKeyboardKeys(); + } + } + } + +#if 0 + if (hovered && g.HoveredIdNotActiveTimer > TOOLTIP_DELAY && bb.GetWidth() < tab->ContentWidth) + { + // Enlarge tab display when hovering + bb.Max.x = bb.Min.x + IM_TRUNC(ImLerp(bb.GetWidth(), tab->ContentWidth, ImSaturate((g.HoveredIdNotActiveTimer - 0.40f) * 6.0f))); + display_draw_list = GetForegroundDrawList(window); + TabItemBackground(display_draw_list, bb, flags, GetColorU32(ImGuiCol_TitleBgActive)); + } +#endif + + // Render tab shape + ImDrawList* display_draw_list = window->DrawList; + const ImU32 tab_col = GetColorU32((held || hovered) ? ImGuiCol_TabHovered : tab_contents_visible ? (tab_bar_focused ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive) : (tab_bar_focused ? ImGuiCol_Tab : ImGuiCol_TabUnfocused)); + TabItemBackground(display_draw_list, bb, flags, tab_col); + RenderNavHighlight(bb, id); + + // Select with right mouse button. This is so the common idiom for context menu automatically highlight the current widget. + const bool hovered_unblocked = IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup); + if (hovered_unblocked && (IsMouseClicked(1) || IsMouseReleased(1)) && !is_tab_button) + TabBarQueueFocus(tab_bar, tab); + + if (tab_bar->Flags & ImGuiTabBarFlags_NoCloseWithMiddleMouseButton) + flags |= ImGuiTabItemFlags_NoCloseWithMiddleMouseButton; + + // Render tab label, process close button + const ImGuiID close_button_id = p_open ? GetIDWithSeed("#CLOSE", NULL, docked_window ? docked_window->ID : id) : 0; + bool just_closed; + bool text_clipped; + TabItemLabelAndCloseButton(display_draw_list, bb, tab_just_unsaved ? (flags & ~ImGuiTabItemFlags_UnsavedDocument) : flags, tab_bar->FramePadding, label, id, close_button_id, tab_contents_visible, &just_closed, &text_clipped); + if (just_closed && p_open != NULL) + { + *p_open = false; + TabBarCloseTab(tab_bar, tab); + } + + // Forward Hovered state so IsItemHovered() after Begin() can work (even though we are technically hovering our parent) + // That state is copied to window->DockTabItemStatusFlags by our caller. + if (docked_window && (hovered || g.HoveredId == close_button_id)) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + + // Restore main window position so user can draw there + if (want_clip_rect) + PopClipRect(); + window->DC.CursorPos = backup_main_cursor_pos; + + // Tooltip + // (Won't work over the close button because ItemOverlap systems messes up with HoveredIdTimer-> seems ok) + // (We test IsItemHovered() to discard e.g. when another item is active or drag and drop over the tab bar, which g.HoveredId ignores) + // FIXME: This is a mess. + // FIXME: We may want disabled tab to still display the tooltip? + if (text_clipped && g.HoveredId == id && !held) + if (!(tab_bar->Flags & ImGuiTabBarFlags_NoTooltip) && !(tab->Flags & ImGuiTabItemFlags_NoTooltip)) + SetItemTooltip("%.*s", (int)(FindRenderedTextEnd(label) - label), label); + + IM_ASSERT(!is_tab_button || !(tab_bar->SelectedTabId == tab->ID && is_tab_button)); // TabItemButton should not be selected + if (is_tab_button) + return pressed; + return tab_contents_visible; +} + +// [Public] This is call is 100% optional but it allows to remove some one-frame glitches when a tab has been unexpectedly removed. +// To use it to need to call the function SetTabItemClosed() between BeginTabBar() and EndTabBar(). +// Tabs closed by the close button will automatically be flagged to avoid this issue. +void ImGui::SetTabItemClosed(const char* label) +{ + ImGuiContext& g = *GImGui; + bool is_within_manual_tab_bar = g.CurrentTabBar && !(g.CurrentTabBar->Flags & ImGuiTabBarFlags_DockNode); + if (is_within_manual_tab_bar) + { + ImGuiTabBar* tab_bar = g.CurrentTabBar; + ImGuiID tab_id = TabBarCalcTabID(tab_bar, label, NULL); + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) + tab->WantClose = true; // Will be processed by next call to TabBarLayout() + } + else if (ImGuiWindow* window = FindWindowByName(label)) + { + if (window->DockIsActive) + if (ImGuiDockNode* node = window->DockNode) + { + ImGuiID tab_id = TabBarCalcTabID(node->TabBar, label, window); + TabBarRemoveTab(node->TabBar, tab_id); + window->DockTabWantClose = true; + } + } +} + +ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker) +{ + ImGuiContext& g = *GImGui; + ImVec2 label_size = CalcTextSize(label, NULL, true); + ImVec2 size = ImVec2(label_size.x + g.Style.FramePadding.x, label_size.y + g.Style.FramePadding.y * 2.0f); + if (has_close_button_or_unsaved_marker) + size.x += g.Style.FramePadding.x + (g.Style.ItemInnerSpacing.x + g.FontSize); // We use Y intentionally to fit the close button circle. + else + size.x += g.Style.FramePadding.x + 1.0f; + return ImVec2(ImMin(size.x, TabBarCalcMaxTabWidth()), size.y); +} + +ImVec2 ImGui::TabItemCalcSize(ImGuiWindow* window) +{ + return TabItemCalcSize(window->Name, window->HasCloseButton || (window->Flags & ImGuiWindowFlags_UnsavedDocument)); +} + +void ImGui::TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col) +{ + // While rendering tabs, we trim 1 pixel off the top of our bounding box so they can fit within a regular frame height while looking "detached" from it. + ImGuiContext& g = *GImGui; + const float width = bb.GetWidth(); + IM_UNUSED(flags); + IM_ASSERT(width > 0.0f); + const float rounding = ImMax(0.0f, ImMin((flags & ImGuiTabItemFlags_Button) ? g.Style.FrameRounding : g.Style.TabRounding, width * 0.5f - 1.0f)); + const float y1 = bb.Min.y + 1.0f; + const float y2 = bb.Max.y - g.Style.TabBarBorderSize; + draw_list->PathLineTo(ImVec2(bb.Min.x, y2)); + draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding, y1 + rounding), rounding, 6, 9); + draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding, y1 + rounding), rounding, 9, 12); + draw_list->PathLineTo(ImVec2(bb.Max.x, y2)); + draw_list->PathFillConvex(col); + if (g.Style.TabBorderSize > 0.0f) + { + draw_list->PathLineTo(ImVec2(bb.Min.x + 0.5f, y2)); + draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding + 0.5f, y1 + rounding + 0.5f), rounding, 6, 9); + draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding - 0.5f, y1 + rounding + 0.5f), rounding, 9, 12); + draw_list->PathLineTo(ImVec2(bb.Max.x - 0.5f, y2)); + draw_list->PathStroke(GetColorU32(ImGuiCol_Border), 0, g.Style.TabBorderSize); + } +} + +// Render text label (with custom clipping) + Unsaved Document marker + Close Button logic +// We tend to lock style.FramePadding for a given tab-bar, hence the 'frame_padding' parameter. +void ImGui::TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped) +{ + ImGuiContext& g = *GImGui; + ImVec2 label_size = CalcTextSize(label, NULL, true); + + if (out_just_closed) + *out_just_closed = false; + if (out_text_clipped) + *out_text_clipped = false; + + if (bb.GetWidth() <= 1.0f) + return; + + // In Style V2 we'll have full override of all colors per state (e.g. focused, selected) + // But right now if you want to alter text color of tabs this is what you need to do. +#if 0 + const float backup_alpha = g.Style.Alpha; + if (!is_contents_visible) + g.Style.Alpha *= 0.7f; +#endif + + // Render text label (with clipping + alpha gradient) + unsaved marker + ImRect text_pixel_clip_bb(bb.Min.x + frame_padding.x, bb.Min.y + frame_padding.y, bb.Max.x - frame_padding.x, bb.Max.y); + ImRect text_ellipsis_clip_bb = text_pixel_clip_bb; + + // Return clipped state ignoring the close button + if (out_text_clipped) + { + *out_text_clipped = (text_ellipsis_clip_bb.Min.x + label_size.x) > text_pixel_clip_bb.Max.x; + //draw_list->AddCircle(text_ellipsis_clip_bb.Min, 3.0f, *out_text_clipped ? IM_COL32(255, 0, 0, 255) : IM_COL32(0, 255, 0, 255)); + } + + const float button_sz = g.FontSize; + const ImVec2 button_pos(ImMax(bb.Min.x, bb.Max.x - frame_padding.x - button_sz), bb.Min.y + frame_padding.y); + + // Close Button & Unsaved Marker + // We are relying on a subtle and confusing distinction between 'hovered' and 'g.HoveredId' which happens because we are using ImGuiButtonFlags_AllowOverlapMode + SetItemAllowOverlap() + // 'hovered' will be true when hovering the Tab but NOT when hovering the close button + // 'g.HoveredId==id' will be true when hovering the Tab including when hovering the close button + // 'g.ActiveId==close_button_id' will be true when we are holding on the close button, in which case both hovered booleans are false + bool close_button_pressed = false; + bool close_button_visible = false; + if (close_button_id != 0) + if (is_contents_visible || bb.GetWidth() >= ImMax(button_sz, g.Style.TabMinWidthForCloseButton)) + if (g.HoveredId == tab_id || g.HoveredId == close_button_id || g.ActiveId == tab_id || g.ActiveId == close_button_id) + close_button_visible = true; + bool unsaved_marker_visible = (flags & ImGuiTabItemFlags_UnsavedDocument) != 0 && (button_pos.x + button_sz <= bb.Max.x); + + if (close_button_visible) + { + ImGuiLastItemData last_item_backup = g.LastItemData; + if (CloseButton(close_button_id, button_pos)) + close_button_pressed = true; + g.LastItemData = last_item_backup; + + // Close with middle mouse button + if (!(flags & ImGuiTabItemFlags_NoCloseWithMiddleMouseButton) && IsMouseClicked(2)) + close_button_pressed = true; + } + else if (unsaved_marker_visible) + { + const ImRect bullet_bb(button_pos, button_pos + ImVec2(button_sz, button_sz)); + RenderBullet(draw_list, bullet_bb.GetCenter(), GetColorU32(ImGuiCol_Text)); + } + + // This is all rather complicated + // (the main idea is that because the close button only appears on hover, we don't want it to alter the ellipsis position) + // FIXME: if FramePadding is noticeably large, ellipsis_max_x will be wrong here (e.g. #3497), maybe for consistency that parameter of RenderTextEllipsis() shouldn't exist.. + float ellipsis_max_x = close_button_visible ? text_pixel_clip_bb.Max.x : bb.Max.x - 1.0f; + if (close_button_visible || unsaved_marker_visible) + { + text_pixel_clip_bb.Max.x -= close_button_visible ? (button_sz) : (button_sz * 0.80f); + text_ellipsis_clip_bb.Max.x -= unsaved_marker_visible ? (button_sz * 0.80f) : 0.0f; + ellipsis_max_x = text_pixel_clip_bb.Max.x; + } + RenderTextEllipsis(draw_list, text_ellipsis_clip_bb.Min, text_ellipsis_clip_bb.Max, text_pixel_clip_bb.Max.x, ellipsis_max_x, label, NULL, &label_size); + +#if 0 + if (!is_contents_visible) + g.Style.Alpha = backup_alpha; +#endif + + if (out_just_closed) + *out_just_closed = close_button_pressed; +} + + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/imstb_rectpack.h b/HexaGen.Tests/cpp2c/imgui/imstb_rectpack.h new file mode 100644 index 0000000..f6917e7 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/imstb_rectpack.h @@ -0,0 +1,627 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_rect_pack.h 1.01. +// Grep for [DEAR IMGUI] to find the changes. +// +// stb_rect_pack.h - v1.01 - public domain - rectangle packing +// Sean Barrett 2014 +// +// Useful for e.g. packing rectangular textures into an atlas. +// Does not do rotation. +// +// Before #including, +// +// #define STB_RECT_PACK_IMPLEMENTATION +// +// in the file that you want to have the implementation. +// +// Not necessarily the awesomest packing method, but better than +// the totally naive one in stb_truetype (which is primarily what +// this is meant to replace). +// +// Has only had a few tests run, may have issues. +// +// More docs to come. +// +// No memory allocations; uses qsort() and assert() from stdlib. +// Can override those by defining STBRP_SORT and STBRP_ASSERT. +// +// This library currently uses the Skyline Bottom-Left algorithm. +// +// Please note: better rectangle packers are welcome! Please +// implement them to the same API, but with a different init +// function. +// +// Credits +// +// Library +// Sean Barrett +// Minor features +// Martins Mozeiko +// github:IntellectualKitty +// +// Bugfixes / warning fixes +// Jeremy Jaussaud +// Fabian Giesen +// +// Version history: +// +// 1.01 (2021-07-11) always use large rect mode, expose STBRP__MAXVAL in public section +// 1.00 (2019-02-25) avoid small space waste; gracefully fail too-wide rectangles +// 0.99 (2019-02-07) warning fixes +// 0.11 (2017-03-03) return packing success/fail result +// 0.10 (2016-10-25) remove cast-away-const to avoid warnings +// 0.09 (2016-08-27) fix compiler warnings +// 0.08 (2015-09-13) really fix bug with empty rects (w=0 or h=0) +// 0.07 (2015-09-13) fix bug with empty rects (w=0 or h=0) +// 0.06 (2015-04-15) added STBRP_SORT to allow replacing qsort +// 0.05: added STBRP_ASSERT to allow replacing assert +// 0.04: fixed minor bug in STBRP_LARGE_RECTS support +// 0.01: initial release +// +// LICENSE +// +// See end of file for license information. + +////////////////////////////////////////////////////////////////////////////// +// +// INCLUDE SECTION +// + +#ifndef STB_INCLUDE_STB_RECT_PACK_H +#define STB_INCLUDE_STB_RECT_PACK_H + +#define STB_RECT_PACK_VERSION 1 + +#ifdef STBRP_STATIC +#define STBRP_DEF static +#else +#define STBRP_DEF extern +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct stbrp_context stbrp_context; +typedef struct stbrp_node stbrp_node; +typedef struct stbrp_rect stbrp_rect; + +typedef int stbrp_coord; + +#define STBRP__MAXVAL 0x7fffffff +// Mostly for internal use, but this is the maximum supported coordinate value. + +STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects); +// Assign packed locations to rectangles. The rectangles are of type +// 'stbrp_rect' defined below, stored in the array 'rects', and there +// are 'num_rects' many of them. +// +// Rectangles which are successfully packed have the 'was_packed' flag +// set to a non-zero value and 'x' and 'y' store the minimum location +// on each axis (i.e. bottom-left in cartesian coordinates, top-left +// if you imagine y increasing downwards). Rectangles which do not fit +// have the 'was_packed' flag set to 0. +// +// You should not try to access the 'rects' array from another thread +// while this function is running, as the function temporarily reorders +// the array while it executes. +// +// To pack into another rectangle, you need to call stbrp_init_target +// again. To continue packing into the same rectangle, you can call +// this function again. Calling this multiple times with multiple rect +// arrays will probably produce worse packing results than calling it +// a single time with the full rectangle array, but the option is +// available. +// +// The function returns 1 if all of the rectangles were successfully +// packed and 0 otherwise. + +struct stbrp_rect +{ + // reserved for your use: + int id; + + // input: + stbrp_coord w, h; + + // output: + stbrp_coord x, y; + int was_packed; // non-zero if valid packing + +}; // 16 bytes, nominally + + +STBRP_DEF void stbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes); +// Initialize a rectangle packer to: +// pack a rectangle that is 'width' by 'height' in dimensions +// using temporary storage provided by the array 'nodes', which is 'num_nodes' long +// +// You must call this function every time you start packing into a new target. +// +// There is no "shutdown" function. The 'nodes' memory must stay valid for +// the following stbrp_pack_rects() call (or calls), but can be freed after +// the call (or calls) finish. +// +// Note: to guarantee best results, either: +// 1. make sure 'num_nodes' >= 'width' +// or 2. call stbrp_allow_out_of_mem() defined below with 'allow_out_of_mem = 1' +// +// If you don't do either of the above things, widths will be quantized to multiples +// of small integers to guarantee the algorithm doesn't run out of temporary storage. +// +// If you do #2, then the non-quantized algorithm will be used, but the algorithm +// may run out of temporary storage and be unable to pack some rectangles. + +STBRP_DEF void stbrp_setup_allow_out_of_mem (stbrp_context *context, int allow_out_of_mem); +// Optionally call this function after init but before doing any packing to +// change the handling of the out-of-temp-memory scenario, described above. +// If you call init again, this will be reset to the default (false). + + +STBRP_DEF void stbrp_setup_heuristic (stbrp_context *context, int heuristic); +// Optionally select which packing heuristic the library should use. Different +// heuristics will produce better/worse results for different data sets. +// If you call init again, this will be reset to the default. + +enum +{ + STBRP_HEURISTIC_Skyline_default=0, + STBRP_HEURISTIC_Skyline_BL_sortHeight = STBRP_HEURISTIC_Skyline_default, + STBRP_HEURISTIC_Skyline_BF_sortHeight +}; + + +////////////////////////////////////////////////////////////////////////////// +// +// the details of the following structures don't matter to you, but they must +// be visible so you can handle the memory allocations for them + +struct stbrp_node +{ + stbrp_coord x,y; + stbrp_node *next; +}; + +struct stbrp_context +{ + int width; + int height; + int align; + int init_mode; + int heuristic; + int num_nodes; + stbrp_node *active_head; + stbrp_node *free_head; + stbrp_node extra[2]; // we allocate two extra nodes so optimal user-node-count is 'width' not 'width+2' +}; + +#ifdef __cplusplus +} +#endif + +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// IMPLEMENTATION SECTION +// + +#ifdef STB_RECT_PACK_IMPLEMENTATION +#ifndef STBRP_SORT +#include +#define STBRP_SORT qsort +#endif + +#ifndef STBRP_ASSERT +#include +#define STBRP_ASSERT assert +#endif + +#ifdef _MSC_VER +#define STBRP__NOTUSED(v) (void)(v) +#define STBRP__CDECL __cdecl +#else +#define STBRP__NOTUSED(v) (void)sizeof(v) +#define STBRP__CDECL +#endif + +enum +{ + STBRP__INIT_skyline = 1 +}; + +STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic) +{ + switch (context->init_mode) { + case STBRP__INIT_skyline: + STBRP_ASSERT(heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight || heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight); + context->heuristic = heuristic; + break; + default: + STBRP_ASSERT(0); + } +} + +STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem) +{ + if (allow_out_of_mem) + // if it's ok to run out of memory, then don't bother aligning them; + // this gives better packing, but may fail due to OOM (even though + // the rectangles easily fit). @TODO a smarter approach would be to only + // quantize once we've hit OOM, then we could get rid of this parameter. + context->align = 1; + else { + // if it's not ok to run out of memory, then quantize the widths + // so that num_nodes is always enough nodes. + // + // I.e. num_nodes * align >= width + // align >= width / num_nodes + // align = ceil(width/num_nodes) + + context->align = (context->width + context->num_nodes-1) / context->num_nodes; + } +} + +STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes) +{ + int i; + + for (i=0; i < num_nodes-1; ++i) + nodes[i].next = &nodes[i+1]; + nodes[i].next = NULL; + context->init_mode = STBRP__INIT_skyline; + context->heuristic = STBRP_HEURISTIC_Skyline_default; + context->free_head = &nodes[0]; + context->active_head = &context->extra[0]; + context->width = width; + context->height = height; + context->num_nodes = num_nodes; + stbrp_setup_allow_out_of_mem(context, 0); + + // node 0 is the full width, node 1 is the sentinel (lets us not store width explicitly) + context->extra[0].x = 0; + context->extra[0].y = 0; + context->extra[0].next = &context->extra[1]; + context->extra[1].x = (stbrp_coord) width; + context->extra[1].y = (1<<30); + context->extra[1].next = NULL; +} + +// find minimum y position if it starts at x1 +static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste) +{ + stbrp_node *node = first; + int x1 = x0 + width; + int min_y, visited_width, waste_area; + + STBRP__NOTUSED(c); + + STBRP_ASSERT(first->x <= x0); + + #if 0 + // skip in case we're past the node + while (node->next->x <= x0) + ++node; + #else + STBRP_ASSERT(node->next->x > x0); // we ended up handling this in the caller for efficiency + #endif + + STBRP_ASSERT(node->x <= x0); + + min_y = 0; + waste_area = 0; + visited_width = 0; + while (node->x < x1) { + if (node->y > min_y) { + // raise min_y higher. + // we've accounted for all waste up to min_y, + // but we'll now add more waste for everything we've visted + waste_area += visited_width * (node->y - min_y); + min_y = node->y; + // the first time through, visited_width might be reduced + if (node->x < x0) + visited_width += node->next->x - x0; + else + visited_width += node->next->x - node->x; + } else { + // add waste area + int under_width = node->next->x - node->x; + if (under_width + visited_width > width) + under_width = width - visited_width; + waste_area += under_width * (min_y - node->y); + visited_width += under_width; + } + node = node->next; + } + + *pwaste = waste_area; + return min_y; +} + +typedef struct +{ + int x,y; + stbrp_node **prev_link; +} stbrp__findresult; + +static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height) +{ + int best_waste = (1<<30), best_x, best_y = (1 << 30); + stbrp__findresult fr; + stbrp_node **prev, *node, *tail, **best = NULL; + + // align to multiple of c->align + width = (width + c->align - 1); + width -= width % c->align; + STBRP_ASSERT(width % c->align == 0); + + // if it can't possibly fit, bail immediately + if (width > c->width || height > c->height) { + fr.prev_link = NULL; + fr.x = fr.y = 0; + return fr; + } + + node = c->active_head; + prev = &c->active_head; + while (node->x + width <= c->width) { + int y,waste; + y = stbrp__skyline_find_min_y(c, node, node->x, width, &waste); + if (c->heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight) { // actually just want to test BL + // bottom left + if (y < best_y) { + best_y = y; + best = prev; + } + } else { + // best-fit + if (y + height <= c->height) { + // can only use it if it first vertically + if (y < best_y || (y == best_y && waste < best_waste)) { + best_y = y; + best_waste = waste; + best = prev; + } + } + } + prev = &node->next; + node = node->next; + } + + best_x = (best == NULL) ? 0 : (*best)->x; + + // if doing best-fit (BF), we also have to try aligning right edge to each node position + // + // e.g, if fitting + // + // ____________________ + // |____________________| + // + // into + // + // | | + // | ____________| + // |____________| + // + // then right-aligned reduces waste, but bottom-left BL is always chooses left-aligned + // + // This makes BF take about 2x the time + + if (c->heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight) { + tail = c->active_head; + node = c->active_head; + prev = &c->active_head; + // find first node that's admissible + while (tail->x < width) + tail = tail->next; + while (tail) { + int xpos = tail->x - width; + int y,waste; + STBRP_ASSERT(xpos >= 0); + // find the left position that matches this + while (node->next->x <= xpos) { + prev = &node->next; + node = node->next; + } + STBRP_ASSERT(node->next->x > xpos && node->x <= xpos); + y = stbrp__skyline_find_min_y(c, node, xpos, width, &waste); + if (y + height <= c->height) { + if (y <= best_y) { + if (y < best_y || waste < best_waste || (waste==best_waste && xpos < best_x)) { + best_x = xpos; + //STBRP_ASSERT(y <= best_y); [DEAR IMGUI] + best_y = y; + best_waste = waste; + best = prev; + } + } + } + tail = tail->next; + } + } + + fr.prev_link = best; + fr.x = best_x; + fr.y = best_y; + return fr; +} + +static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height) +{ + // find best position according to heuristic + stbrp__findresult res = stbrp__skyline_find_best_pos(context, width, height); + stbrp_node *node, *cur; + + // bail if: + // 1. it failed + // 2. the best node doesn't fit (we don't always check this) + // 3. we're out of memory + if (res.prev_link == NULL || res.y + height > context->height || context->free_head == NULL) { + res.prev_link = NULL; + return res; + } + + // on success, create new node + node = context->free_head; + node->x = (stbrp_coord) res.x; + node->y = (stbrp_coord) (res.y + height); + + context->free_head = node->next; + + // insert the new node into the right starting point, and + // let 'cur' point to the remaining nodes needing to be + // stiched back in + + cur = *res.prev_link; + if (cur->x < res.x) { + // preserve the existing one, so start testing with the next one + stbrp_node *next = cur->next; + cur->next = node; + cur = next; + } else { + *res.prev_link = node; + } + + // from here, traverse cur and free the nodes, until we get to one + // that shouldn't be freed + while (cur->next && cur->next->x <= res.x + width) { + stbrp_node *next = cur->next; + // move the current node to the free list + cur->next = context->free_head; + context->free_head = cur; + cur = next; + } + + // stitch the list back in + node->next = cur; + + if (cur->x < res.x + width) + cur->x = (stbrp_coord) (res.x + width); + +#ifdef _DEBUG + cur = context->active_head; + while (cur->x < context->width) { + STBRP_ASSERT(cur->x < cur->next->x); + cur = cur->next; + } + STBRP_ASSERT(cur->next == NULL); + + { + int count=0; + cur = context->active_head; + while (cur) { + cur = cur->next; + ++count; + } + cur = context->free_head; + while (cur) { + cur = cur->next; + ++count; + } + STBRP_ASSERT(count == context->num_nodes+2); + } +#endif + + return res; +} + +static int STBRP__CDECL rect_height_compare(const void *a, const void *b) +{ + const stbrp_rect *p = (const stbrp_rect *) a; + const stbrp_rect *q = (const stbrp_rect *) b; + if (p->h > q->h) + return -1; + if (p->h < q->h) + return 1; + return (p->w > q->w) ? -1 : (p->w < q->w); +} + +static int STBRP__CDECL rect_original_order(const void *a, const void *b) +{ + const stbrp_rect *p = (const stbrp_rect *) a; + const stbrp_rect *q = (const stbrp_rect *) b; + return (p->was_packed < q->was_packed) ? -1 : (p->was_packed > q->was_packed); +} + +STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) +{ + int i, all_rects_packed = 1; + + // we use the 'was_packed' field internally to allow sorting/unsorting + for (i=0; i < num_rects; ++i) { + rects[i].was_packed = i; + } + + // sort according to heuristic + STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_height_compare); + + for (i=0; i < num_rects; ++i) { + if (rects[i].w == 0 || rects[i].h == 0) { + rects[i].x = rects[i].y = 0; // empty rect needs no space + } else { + stbrp__findresult fr = stbrp__skyline_pack_rectangle(context, rects[i].w, rects[i].h); + if (fr.prev_link) { + rects[i].x = (stbrp_coord) fr.x; + rects[i].y = (stbrp_coord) fr.y; + } else { + rects[i].x = rects[i].y = STBRP__MAXVAL; + } + } + } + + // unsort + STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_original_order); + + // set was_packed flags and all_rects_packed status + for (i=0; i < num_rects; ++i) { + rects[i].was_packed = !(rects[i].x == STBRP__MAXVAL && rects[i].y == STBRP__MAXVAL); + if (!rects[i].was_packed) + all_rects_packed = 0; + } + + // return the all_rects_packed status + return all_rects_packed; +} +#endif + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/HexaGen.Tests/cpp2c/imgui/imstb_textedit.h b/HexaGen.Tests/cpp2c/imgui/imstb_textedit.h new file mode 100644 index 0000000..062d13d --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/imstb_textedit.h @@ -0,0 +1,1440 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_textedit.h 1.14. +// Those changes would need to be pushed into nothings/stb: +// - Fix in stb_textedit_discard_redo (see https://github.com/nothings/stb/issues/321) +// - Fix in stb_textedit_find_charpos to handle last line (see https://github.com/ocornut/imgui/issues/6000 + #6783) +// Grep for [DEAR IMGUI] to find the changes. + +// stb_textedit.h - v1.14 - public domain - Sean Barrett +// Development of this library was sponsored by RAD Game Tools +// +// This C header file implements the guts of a multi-line text-editing +// widget; you implement display, word-wrapping, and low-level string +// insertion/deletion, and stb_textedit will map user inputs into +// insertions & deletions, plus updates to the cursor position, +// selection state, and undo state. +// +// It is intended for use in games and other systems that need to build +// their own custom widgets and which do not have heavy text-editing +// requirements (this library is not recommended for use for editing large +// texts, as its performance does not scale and it has limited undo). +// +// Non-trivial behaviors are modelled after Windows text controls. +// +// +// LICENSE +// +// See end of file for license information. +// +// +// DEPENDENCIES +// +// Uses the C runtime function 'memmove', which you can override +// by defining STB_TEXTEDIT_memmove before the implementation. +// Uses no other functions. Performs no runtime allocations. +// +// +// VERSION HISTORY +// +// 1.14 (2021-07-11) page up/down, various fixes +// 1.13 (2019-02-07) fix bug in undo size management +// 1.12 (2018-01-29) user can change STB_TEXTEDIT_KEYTYPE, fix redo to avoid crash +// 1.11 (2017-03-03) fix HOME on last line, dragging off single-line textfield +// 1.10 (2016-10-25) supress warnings about casting away const with -Wcast-qual +// 1.9 (2016-08-27) customizable move-by-word +// 1.8 (2016-04-02) better keyboard handling when mouse button is down +// 1.7 (2015-09-13) change y range handling in case baseline is non-0 +// 1.6 (2015-04-15) allow STB_TEXTEDIT_memmove +// 1.5 (2014-09-10) add support for secondary keys for OS X +// 1.4 (2014-08-17) fix signed/unsigned warnings +// 1.3 (2014-06-19) fix mouse clicking to round to nearest char boundary +// 1.2 (2014-05-27) fix some RAD types that had crept into the new code +// 1.1 (2013-12-15) move-by-word (requires STB_TEXTEDIT_IS_SPACE ) +// 1.0 (2012-07-26) improve documentation, initial public release +// 0.3 (2012-02-24) bugfixes, single-line mode; insert mode +// 0.2 (2011-11-28) fixes to undo/redo +// 0.1 (2010-07-08) initial version +// +// ADDITIONAL CONTRIBUTORS +// +// Ulf Winklemann: move-by-word in 1.1 +// Fabian Giesen: secondary key inputs in 1.5 +// Martins Mozeiko: STB_TEXTEDIT_memmove in 1.6 +// Louis Schnellbach: page up/down in 1.14 +// +// Bugfixes: +// Scott Graham +// Daniel Keller +// Omar Cornut +// Dan Thompson +// +// USAGE +// +// This file behaves differently depending on what symbols you define +// before including it. +// +// +// Header-file mode: +// +// If you do not define STB_TEXTEDIT_IMPLEMENTATION before including this, +// it will operate in "header file" mode. In this mode, it declares a +// single public symbol, STB_TexteditState, which encapsulates the current +// state of a text widget (except for the string, which you will store +// separately). +// +// To compile in this mode, you must define STB_TEXTEDIT_CHARTYPE to a +// primitive type that defines a single character (e.g. char, wchar_t, etc). +// +// To save space or increase undo-ability, you can optionally define the +// following things that are used by the undo system: +// +// STB_TEXTEDIT_POSITIONTYPE small int type encoding a valid cursor position +// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow +// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer +// +// If you don't define these, they are set to permissive types and +// moderate sizes. The undo system does no memory allocations, so +// it grows STB_TexteditState by the worst-case storage which is (in bytes): +// +// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATECOUNT +// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHARCOUNT +// +// +// Implementation mode: +// +// If you define STB_TEXTEDIT_IMPLEMENTATION before including this, it +// will compile the implementation of the text edit widget, depending +// on a large number of symbols which must be defined before the include. +// +// The implementation is defined only as static functions. You will then +// need to provide your own APIs in the same file which will access the +// static functions. +// +// The basic concept is that you provide a "string" object which +// behaves like an array of characters. stb_textedit uses indices to +// refer to positions in the string, implicitly representing positions +// in the displayed textedit. This is true for both plain text and +// rich text; even with rich text stb_truetype interacts with your +// code as if there was an array of all the displayed characters. +// +// Symbols that must be the same in header-file and implementation mode: +// +// STB_TEXTEDIT_CHARTYPE the character type +// STB_TEXTEDIT_POSITIONTYPE small type that is a valid cursor position +// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow +// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer +// +// Symbols you must define for implementation mode: +// +// STB_TEXTEDIT_STRING the type of object representing a string being edited, +// typically this is a wrapper object with other data you need +// +// STB_TEXTEDIT_STRINGLEN(obj) the length of the string (ideally O(1)) +// STB_TEXTEDIT_LAYOUTROW(&r,obj,n) returns the results of laying out a line of characters +// starting from character #n (see discussion below) +// STB_TEXTEDIT_GETWIDTH(obj,n,i) returns the pixel delta from the xpos of the i'th character +// to the xpos of the i+1'th char for a line of characters +// starting at character #n (i.e. accounts for kerning +// with previous char) +// STB_TEXTEDIT_KEYTOTEXT(k) maps a keyboard input to an insertable character +// (return type is int, -1 means not valid to insert) +// STB_TEXTEDIT_GETCHAR(obj,i) returns the i'th character of obj, 0-based +// STB_TEXTEDIT_NEWLINE the character returned by _GETCHAR() we recognize +// as manually wordwrapping for end-of-line positioning +// +// STB_TEXTEDIT_DELETECHARS(obj,i,n) delete n characters starting at i +// STB_TEXTEDIT_INSERTCHARS(obj,i,c*,n) insert n characters at i (pointed to by STB_TEXTEDIT_CHARTYPE*) +// +// STB_TEXTEDIT_K_SHIFT a power of two that is or'd in to a keyboard input to represent the shift key +// +// STB_TEXTEDIT_K_LEFT keyboard input to move cursor left +// STB_TEXTEDIT_K_RIGHT keyboard input to move cursor right +// STB_TEXTEDIT_K_UP keyboard input to move cursor up +// STB_TEXTEDIT_K_DOWN keyboard input to move cursor down +// STB_TEXTEDIT_K_PGUP keyboard input to move cursor up a page +// STB_TEXTEDIT_K_PGDOWN keyboard input to move cursor down a page +// STB_TEXTEDIT_K_LINESTART keyboard input to move cursor to start of line // e.g. HOME +// STB_TEXTEDIT_K_LINEEND keyboard input to move cursor to end of line // e.g. END +// STB_TEXTEDIT_K_TEXTSTART keyboard input to move cursor to start of text // e.g. ctrl-HOME +// STB_TEXTEDIT_K_TEXTEND keyboard input to move cursor to end of text // e.g. ctrl-END +// STB_TEXTEDIT_K_DELETE keyboard input to delete selection or character under cursor +// STB_TEXTEDIT_K_BACKSPACE keyboard input to delete selection or character left of cursor +// STB_TEXTEDIT_K_UNDO keyboard input to perform undo +// STB_TEXTEDIT_K_REDO keyboard input to perform redo +// +// Optional: +// STB_TEXTEDIT_K_INSERT keyboard input to toggle insert mode +// STB_TEXTEDIT_IS_SPACE(ch) true if character is whitespace (e.g. 'isspace'), +// required for default WORDLEFT/WORDRIGHT handlers +// STB_TEXTEDIT_MOVEWORDLEFT(obj,i) custom handler for WORDLEFT, returns index to move cursor to +// STB_TEXTEDIT_MOVEWORDRIGHT(obj,i) custom handler for WORDRIGHT, returns index to move cursor to +// STB_TEXTEDIT_K_WORDLEFT keyboard input to move cursor left one word // e.g. ctrl-LEFT +// STB_TEXTEDIT_K_WORDRIGHT keyboard input to move cursor right one word // e.g. ctrl-RIGHT +// STB_TEXTEDIT_K_LINESTART2 secondary keyboard input to move cursor to start of line +// STB_TEXTEDIT_K_LINEEND2 secondary keyboard input to move cursor to end of line +// STB_TEXTEDIT_K_TEXTSTART2 secondary keyboard input to move cursor to start of text +// STB_TEXTEDIT_K_TEXTEND2 secondary keyboard input to move cursor to end of text +// +// Keyboard input must be encoded as a single integer value; e.g. a character code +// and some bitflags that represent shift states. to simplify the interface, SHIFT must +// be a bitflag, so we can test the shifted state of cursor movements to allow selection, +// i.e. (STB_TEXTEDIT_K_RIGHT|STB_TEXTEDIT_K_SHIFT) should be shifted right-arrow. +// +// You can encode other things, such as CONTROL or ALT, in additional bits, and +// then test for their presence in e.g. STB_TEXTEDIT_K_WORDLEFT. For example, +// my Windows implementations add an additional CONTROL bit, and an additional KEYDOWN +// bit. Then all of the STB_TEXTEDIT_K_ values bitwise-or in the KEYDOWN bit, +// and I pass both WM_KEYDOWN and WM_CHAR events to the "key" function in the +// API below. The control keys will only match WM_KEYDOWN events because of the +// keydown bit I add, and STB_TEXTEDIT_KEYTOTEXT only tests for the KEYDOWN +// bit so it only decodes WM_CHAR events. +// +// STB_TEXTEDIT_LAYOUTROW returns information about the shape of one displayed +// row of characters assuming they start on the i'th character--the width and +// the height and the number of characters consumed. This allows this library +// to traverse the entire layout incrementally. You need to compute word-wrapping +// here. +// +// Each textfield keeps its own insert mode state, which is not how normal +// applications work. To keep an app-wide insert mode, update/copy the +// "insert_mode" field of STB_TexteditState before/after calling API functions. +// +// API +// +// void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) +// +// void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +// void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +// int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +// int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) +// void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXEDIT_KEYTYPE key) +// +// Each of these functions potentially updates the string and updates the +// state. +// +// initialize_state: +// set the textedit state to a known good default state when initially +// constructing the textedit. +// +// click: +// call this with the mouse x,y on a mouse down; it will update the cursor +// and reset the selection start/end to the cursor point. the x,y must +// be relative to the text widget, with (0,0) being the top left. +// +// drag: +// call this with the mouse x,y on a mouse drag/up; it will update the +// cursor and the selection end point +// +// cut: +// call this to delete the current selection; returns true if there was +// one. you should FIRST copy the current selection to the system paste buffer. +// (To copy, just copy the current selection out of the string yourself.) +// +// paste: +// call this to paste text at the current cursor point or over the current +// selection if there is one. +// +// key: +// call this for keyboard inputs sent to the textfield. you can use it +// for "key down" events or for "translated" key events. if you need to +// do both (as in Win32), or distinguish Unicode characters from control +// inputs, set a high bit to distinguish the two; then you can define the +// various definitions like STB_TEXTEDIT_K_LEFT have the is-key-event bit +// set, and make STB_TEXTEDIT_KEYTOCHAR check that the is-key-event bit is +// clear. STB_TEXTEDIT_KEYTYPE defaults to int, but you can #define it to +// anything other type you wante before including. +// +// +// When rendering, you can read the cursor position and selection state from +// the STB_TexteditState. +// +// +// Notes: +// +// This is designed to be usable in IMGUI, so it allows for the possibility of +// running in an IMGUI that has NOT cached the multi-line layout. For this +// reason, it provides an interface that is compatible with computing the +// layout incrementally--we try to make sure we make as few passes through +// as possible. (For example, to locate the mouse pointer in the text, we +// could define functions that return the X and Y positions of characters +// and binary search Y and then X, but if we're doing dynamic layout this +// will run the layout algorithm many times, so instead we manually search +// forward in one pass. Similar logic applies to e.g. up-arrow and +// down-arrow movement.) +// +// If it's run in a widget that *has* cached the layout, then this is less +// efficient, but it's not horrible on modern computers. But you wouldn't +// want to edit million-line files with it. + + +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +//// +//// Header-file mode +//// +//// + +#ifndef INCLUDE_STB_TEXTEDIT_H +#define INCLUDE_STB_TEXTEDIT_H + +//////////////////////////////////////////////////////////////////////// +// +// STB_TexteditState +// +// Definition of STB_TexteditState which you should store +// per-textfield; it includes cursor position, selection state, +// and undo state. +// + +#ifndef STB_TEXTEDIT_UNDOSTATECOUNT +#define STB_TEXTEDIT_UNDOSTATECOUNT 99 +#endif +#ifndef STB_TEXTEDIT_UNDOCHARCOUNT +#define STB_TEXTEDIT_UNDOCHARCOUNT 999 +#endif +#ifndef STB_TEXTEDIT_CHARTYPE +#define STB_TEXTEDIT_CHARTYPE int +#endif +#ifndef STB_TEXTEDIT_POSITIONTYPE +#define STB_TEXTEDIT_POSITIONTYPE int +#endif + +typedef struct +{ + // private data + STB_TEXTEDIT_POSITIONTYPE where; + STB_TEXTEDIT_POSITIONTYPE insert_length; + STB_TEXTEDIT_POSITIONTYPE delete_length; + int char_storage; +} StbUndoRecord; + +typedef struct +{ + // private data + StbUndoRecord undo_rec [STB_TEXTEDIT_UNDOSTATECOUNT]; + STB_TEXTEDIT_CHARTYPE undo_char[STB_TEXTEDIT_UNDOCHARCOUNT]; + short undo_point, redo_point; + int undo_char_point, redo_char_point; +} StbUndoState; + +typedef struct +{ + ///////////////////// + // + // public data + // + + int cursor; + // position of the text cursor within the string + + int select_start; // selection start point + int select_end; + // selection start and end point in characters; if equal, no selection. + // note that start may be less than or greater than end (e.g. when + // dragging the mouse, start is where the initial click was, and you + // can drag in either direction) + + unsigned char insert_mode; + // each textfield keeps its own insert mode state. to keep an app-wide + // insert mode, copy this value in/out of the app state + + int row_count_per_page; + // page size in number of row. + // this value MUST be set to >0 for pageup or pagedown in multilines documents. + + ///////////////////// + // + // private data + // + unsigned char cursor_at_end_of_line; // not implemented yet + unsigned char initialized; + unsigned char has_preferred_x; + unsigned char single_line; + unsigned char padding1, padding2, padding3; + float preferred_x; // this determines where the cursor up/down tries to seek to along x + StbUndoState undostate; +} STB_TexteditState; + + +//////////////////////////////////////////////////////////////////////// +// +// StbTexteditRow +// +// Result of layout query, used by stb_textedit to determine where +// the text in each row is. + +// result of layout query +typedef struct +{ + float x0,x1; // starting x location, end x location (allows for align=right, etc) + float baseline_y_delta; // position of baseline relative to previous row's baseline + float ymin,ymax; // height of row above and below baseline + int num_chars; +} StbTexteditRow; +#endif //INCLUDE_STB_TEXTEDIT_H + + +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +//// +//// Implementation mode +//// +//// + + +// implementation isn't include-guarded, since it might have indirectly +// included just the "header" portion +#ifdef STB_TEXTEDIT_IMPLEMENTATION + +#ifndef STB_TEXTEDIT_memmove +#include +#define STB_TEXTEDIT_memmove memmove +#endif + + +///////////////////////////////////////////////////////////////////////////// +// +// Mouse input handling +// + +// traverse the layout to locate the nearest character to a display position +static int stb_text_locate_coord(STB_TEXTEDIT_STRING *str, float x, float y) +{ + StbTexteditRow r; + int n = STB_TEXTEDIT_STRINGLEN(str); + float base_y = 0, prev_x; + int i=0, k; + + r.x0 = r.x1 = 0; + r.ymin = r.ymax = 0; + r.num_chars = 0; + + // search rows to find one that straddles 'y' + while (i < n) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + if (r.num_chars <= 0) + return n; + + if (i==0 && y < base_y + r.ymin) + return 0; + + if (y < base_y + r.ymax) + break; + + i += r.num_chars; + base_y += r.baseline_y_delta; + } + + // below all text, return 'after' last character + if (i >= n) + return n; + + // check if it's before the beginning of the line + if (x < r.x0) + return i; + + // check if it's before the end of the line + if (x < r.x1) { + // search characters in row for one that straddles 'x' + prev_x = r.x0; + for (k=0; k < r.num_chars; ++k) { + float w = STB_TEXTEDIT_GETWIDTH(str, i, k); + if (x < prev_x+w) { + if (x < prev_x+w/2) + return k+i; + else + return k+i+1; + } + prev_x += w; + } + // shouldn't happen, but if it does, fall through to end-of-line case + } + + // if the last character is a newline, return that. otherwise return 'after' the last character + if (STB_TEXTEDIT_GETCHAR(str, i+r.num_chars-1) == STB_TEXTEDIT_NEWLINE) + return i+r.num_chars-1; + else + return i+r.num_chars; +} + +// API click: on mouse down, move the cursor to the clicked location, and reset the selection +static void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +{ + // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse + // goes off the top or bottom of the text + if( state->single_line ) + { + StbTexteditRow r; + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + y = r.ymin; + } + + state->cursor = stb_text_locate_coord(str, x, y); + state->select_start = state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; +} + +// API drag: on mouse drag, move the cursor and selection endpoint to the clicked location +static void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +{ + int p = 0; + + // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse + // goes off the top or bottom of the text + if( state->single_line ) + { + StbTexteditRow r; + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + y = r.ymin; + } + + if (state->select_start == state->select_end) + state->select_start = state->cursor; + + p = stb_text_locate_coord(str, x, y); + state->cursor = state->select_end = p; +} + +///////////////////////////////////////////////////////////////////////////// +// +// Keyboard input handling +// + +// forward declarations +static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); +static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); +static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length); +static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length); +static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length); + +typedef struct +{ + float x,y; // position of n'th character + float height; // height of line + int first_char, length; // first char of row, and length + int prev_first; // first char of previous row +} StbFindState; + +// find the x/y location of a character, and remember info about the previous row in +// case we get a move-up event (for page up, we'll have to rescan) +static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *str, int n, int single_line) +{ + StbTexteditRow r; + int prev_start = 0; + int z = STB_TEXTEDIT_STRINGLEN(str); + int i=0, first; + + if (n == z && single_line) { + // special case if it's at the end (may not be needed?) + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + find->y = 0; + find->first_char = 0; + find->length = z; + find->height = r.ymax - r.ymin; + find->x = r.x1; + return; + } + + // search rows to find the one that straddles character n + find->y = 0; + + for(;;) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + if (n < i + r.num_chars) + break; + if (i + r.num_chars == z && z > 0 && STB_TEXTEDIT_GETCHAR(str, z - 1) != STB_TEXTEDIT_NEWLINE) // [DEAR IMGUI] special handling for last line + break; // [DEAR IMGUI] + prev_start = i; + i += r.num_chars; + find->y += r.baseline_y_delta; + if (i == z) // [DEAR IMGUI] + { + r.num_chars = 0; // [DEAR IMGUI] + break; // [DEAR IMGUI] + } + } + + find->first_char = first = i; + find->length = r.num_chars; + find->height = r.ymax - r.ymin; + find->prev_first = prev_start; + + // now scan to find xpos + find->x = r.x0; + for (i=0; first+i < n; ++i) + find->x += STB_TEXTEDIT_GETWIDTH(str, first, i); +} + +#define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end) + +// make the selection/cursor state valid if client altered the string +static void stb_textedit_clamp(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + int n = STB_TEXTEDIT_STRINGLEN(str); + if (STB_TEXT_HAS_SELECTION(state)) { + if (state->select_start > n) state->select_start = n; + if (state->select_end > n) state->select_end = n; + // if clamping forced them to be equal, move the cursor to match + if (state->select_start == state->select_end) + state->cursor = state->select_start; + } + if (state->cursor > n) state->cursor = n; +} + +// delete characters while updating undo +static void stb_textedit_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len) +{ + stb_text_makeundo_delete(str, state, where, len); + STB_TEXTEDIT_DELETECHARS(str, where, len); + state->has_preferred_x = 0; +} + +// delete the section +static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + stb_textedit_clamp(str, state); + if (STB_TEXT_HAS_SELECTION(state)) { + if (state->select_start < state->select_end) { + stb_textedit_delete(str, state, state->select_start, state->select_end - state->select_start); + state->select_end = state->cursor = state->select_start; + } else { + stb_textedit_delete(str, state, state->select_end, state->select_start - state->select_end); + state->select_start = state->cursor = state->select_end; + } + state->has_preferred_x = 0; + } +} + +// canoncialize the selection so start <= end +static void stb_textedit_sortselection(STB_TexteditState *state) +{ + if (state->select_end < state->select_start) { + int temp = state->select_end; + state->select_end = state->select_start; + state->select_start = temp; + } +} + +// move cursor to first character of selection +static void stb_textedit_move_to_first(STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_sortselection(state); + state->cursor = state->select_start; + state->select_end = state->select_start; + state->has_preferred_x = 0; + } +} + +// move cursor to last character of selection +static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_sortselection(state); + stb_textedit_clamp(str, state); + state->cursor = state->select_end; + state->select_start = state->select_end; + state->has_preferred_x = 0; + } +} + +#ifdef STB_TEXTEDIT_IS_SPACE +static int is_word_boundary( STB_TEXTEDIT_STRING *str, int idx ) +{ + return idx > 0 ? (STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str,idx-1) ) && !STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str, idx) ) ) : 1; +} + +#ifndef STB_TEXTEDIT_MOVEWORDLEFT +static int stb_textedit_move_to_word_previous( STB_TEXTEDIT_STRING *str, int c ) +{ + --c; // always move at least one character + while( c >= 0 && !is_word_boundary( str, c ) ) + --c; + + if( c < 0 ) + c = 0; + + return c; +} +#define STB_TEXTEDIT_MOVEWORDLEFT stb_textedit_move_to_word_previous +#endif + +#ifndef STB_TEXTEDIT_MOVEWORDRIGHT +static int stb_textedit_move_to_word_next( STB_TEXTEDIT_STRING *str, int c ) +{ + const int len = STB_TEXTEDIT_STRINGLEN(str); + ++c; // always move at least one character + while( c < len && !is_word_boundary( str, c ) ) + ++c; + + if( c > len ) + c = len; + + return c; +} +#define STB_TEXTEDIT_MOVEWORDRIGHT stb_textedit_move_to_word_next +#endif + +#endif + +// update selection and cursor to match each other +static void stb_textedit_prep_selection_at_cursor(STB_TexteditState *state) +{ + if (!STB_TEXT_HAS_SELECTION(state)) + state->select_start = state->select_end = state->cursor; + else + state->cursor = state->select_end; +} + +// API cut: delete selection +static int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_delete_selection(str,state); // implicitly clamps + state->has_preferred_x = 0; + return 1; + } + return 0; +} + +// API paste: replace existing selection with passed-in text +static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) +{ + // if there's a selection, the paste should delete it + stb_textedit_clamp(str, state); + stb_textedit_delete_selection(str,state); + // try to insert the characters + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, text, len)) { + stb_text_makeundo_insert(state, state->cursor, len); + state->cursor += len; + state->has_preferred_x = 0; + return 1; + } + // note: paste failure will leave deleted selection, may be restored with an undo (see https://github.com/nothings/stb/issues/734 for details) + return 0; +} + +#ifndef STB_TEXTEDIT_KEYTYPE +#define STB_TEXTEDIT_KEYTYPE int +#endif + +// API key: process a keyboard input +static void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key) +{ +retry: + switch (key) { + default: { + int c = STB_TEXTEDIT_KEYTOTEXT(key); + if (c > 0) { + STB_TEXTEDIT_CHARTYPE ch = (STB_TEXTEDIT_CHARTYPE) c; + + // can't add newline in single-line mode + if (c == '\n' && state->single_line) + break; + + if (state->insert_mode && !STB_TEXT_HAS_SELECTION(state) && state->cursor < STB_TEXTEDIT_STRINGLEN(str)) { + stb_text_makeundo_replace(str, state, state->cursor, 1, 1); + STB_TEXTEDIT_DELETECHARS(str, state->cursor, 1); + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { + ++state->cursor; + state->has_preferred_x = 0; + } + } else { + stb_textedit_delete_selection(str,state); // implicitly clamps + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { + stb_text_makeundo_insert(state, state->cursor, 1); + ++state->cursor; + state->has_preferred_x = 0; + } + } + } + break; + } + +#ifdef STB_TEXTEDIT_K_INSERT + case STB_TEXTEDIT_K_INSERT: + state->insert_mode = !state->insert_mode; + break; +#endif + + case STB_TEXTEDIT_K_UNDO: + stb_text_undo(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_REDO: + stb_text_redo(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_LEFT: + // if currently there's a selection, move cursor to start of selection + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + else + if (state->cursor > 0) + --state->cursor; + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_RIGHT: + // if currently there's a selection, move cursor to end of selection + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + else + ++state->cursor; + stb_textedit_clamp(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_LEFT | STB_TEXTEDIT_K_SHIFT: + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + // move selection left + if (state->select_end > 0) + --state->select_end; + state->cursor = state->select_end; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_MOVEWORDLEFT + case STB_TEXTEDIT_K_WORDLEFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + else { + state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); + stb_textedit_clamp( str, state ); + } + break; + + case STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT: + if( !STB_TEXT_HAS_SELECTION( state ) ) + stb_textedit_prep_selection_at_cursor(state); + + state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); + state->select_end = state->cursor; + + stb_textedit_clamp( str, state ); + break; +#endif + +#ifdef STB_TEXTEDIT_MOVEWORDRIGHT + case STB_TEXTEDIT_K_WORDRIGHT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + else { + state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); + stb_textedit_clamp( str, state ); + } + break; + + case STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT: + if( !STB_TEXT_HAS_SELECTION( state ) ) + stb_textedit_prep_selection_at_cursor(state); + + state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); + state->select_end = state->cursor; + + stb_textedit_clamp( str, state ); + break; +#endif + + case STB_TEXTEDIT_K_RIGHT | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + // move selection right + ++state->select_end; + stb_textedit_clamp(str, state); + state->cursor = state->select_end; + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_DOWN: + case STB_TEXTEDIT_K_DOWN | STB_TEXTEDIT_K_SHIFT: + case STB_TEXTEDIT_K_PGDOWN: + case STB_TEXTEDIT_K_PGDOWN | STB_TEXTEDIT_K_SHIFT: { + StbFindState find; + StbTexteditRow row; + int i, j, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; + int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGDOWN; + int row_count = is_page ? state->row_count_per_page : 1; + + if (!is_page && state->single_line) { + // on windows, up&down in single-line behave like left&right + key = STB_TEXTEDIT_K_RIGHT | (key & STB_TEXTEDIT_K_SHIFT); + goto retry; + } + + if (sel) + stb_textedit_prep_selection_at_cursor(state); + else if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + + // compute current position of cursor point + stb_textedit_clamp(str, state); + stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); + + for (j = 0; j < row_count; ++j) { + float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; + int start = find.first_char + find.length; + + if (find.length == 0) + break; + + // [DEAR IMGUI] + // going down while being on the last line shouldn't bring us to that line end + if (STB_TEXTEDIT_GETCHAR(str, find.first_char + find.length - 1) != STB_TEXTEDIT_NEWLINE) + break; + + // now find character position down a row + state->cursor = start; + STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); + x = row.x0; + for (i=0; i < row.num_chars; ++i) { + float dx = STB_TEXTEDIT_GETWIDTH(str, start, i); + #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE + if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) + break; + #endif + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + stb_textedit_clamp(str, state); + + state->has_preferred_x = 1; + state->preferred_x = goal_x; + + if (sel) + state->select_end = state->cursor; + + // go to next line + find.first_char = find.first_char + find.length; + find.length = row.num_chars; + } + break; + } + + case STB_TEXTEDIT_K_UP: + case STB_TEXTEDIT_K_UP | STB_TEXTEDIT_K_SHIFT: + case STB_TEXTEDIT_K_PGUP: + case STB_TEXTEDIT_K_PGUP | STB_TEXTEDIT_K_SHIFT: { + StbFindState find; + StbTexteditRow row; + int i, j, prev_scan, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; + int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGUP; + int row_count = is_page ? state->row_count_per_page : 1; + + if (!is_page && state->single_line) { + // on windows, up&down become left&right + key = STB_TEXTEDIT_K_LEFT | (key & STB_TEXTEDIT_K_SHIFT); + goto retry; + } + + if (sel) + stb_textedit_prep_selection_at_cursor(state); + else if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + + // compute current position of cursor point + stb_textedit_clamp(str, state); + stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); + + for (j = 0; j < row_count; ++j) { + float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; + + // can only go up if there's a previous row + if (find.prev_first == find.first_char) + break; + + // now find character position up a row + state->cursor = find.prev_first; + STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); + x = row.x0; + for (i=0; i < row.num_chars; ++i) { + float dx = STB_TEXTEDIT_GETWIDTH(str, find.prev_first, i); + #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE + if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) + break; + #endif + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + stb_textedit_clamp(str, state); + + state->has_preferred_x = 1; + state->preferred_x = goal_x; + + if (sel) + state->select_end = state->cursor; + + // go to previous line + // (we need to scan previous line the hard way. maybe we could expose this as a new API function?) + prev_scan = find.prev_first > 0 ? find.prev_first - 1 : 0; + while (prev_scan > 0 && STB_TEXTEDIT_GETCHAR(str, prev_scan - 1) != STB_TEXTEDIT_NEWLINE) + --prev_scan; + find.first_char = find.prev_first; + find.prev_first = prev_scan; + } + break; + } + + case STB_TEXTEDIT_K_DELETE: + case STB_TEXTEDIT_K_DELETE | STB_TEXTEDIT_K_SHIFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_delete_selection(str, state); + else { + int n = STB_TEXTEDIT_STRINGLEN(str); + if (state->cursor < n) + stb_textedit_delete(str, state, state->cursor, 1); + } + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_BACKSPACE: + case STB_TEXTEDIT_K_BACKSPACE | STB_TEXTEDIT_K_SHIFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_delete_selection(str, state); + else { + stb_textedit_clamp(str, state); + if (state->cursor > 0) { + stb_textedit_delete(str, state, state->cursor-1, 1); + --state->cursor; + } + } + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTSTART2 + case STB_TEXTEDIT_K_TEXTSTART2: +#endif + case STB_TEXTEDIT_K_TEXTSTART: + state->cursor = state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTEND2 + case STB_TEXTEDIT_K_TEXTEND2: +#endif + case STB_TEXTEDIT_K_TEXTEND: + state->cursor = STB_TEXTEDIT_STRINGLEN(str); + state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTSTART2 + case STB_TEXTEDIT_K_TEXTSTART2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_TEXTSTART | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTEND2 + case STB_TEXTEDIT_K_TEXTEND2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_TEXTEND | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = STB_TEXTEDIT_STRINGLEN(str); + state->has_preferred_x = 0; + break; + + +#ifdef STB_TEXTEDIT_K_LINESTART2 + case STB_TEXTEDIT_K_LINESTART2: +#endif + case STB_TEXTEDIT_K_LINESTART: + stb_textedit_clamp(str, state); + stb_textedit_move_to_first(state); + if (state->single_line) + state->cursor = 0; + else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) + --state->cursor; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_LINEEND2 + case STB_TEXTEDIT_K_LINEEND2: +#endif + case STB_TEXTEDIT_K_LINEEND: { + int n = STB_TEXTEDIT_STRINGLEN(str); + stb_textedit_clamp(str, state); + stb_textedit_move_to_first(state); + if (state->single_line) + state->cursor = n; + else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) + ++state->cursor; + state->has_preferred_x = 0; + break; + } + +#ifdef STB_TEXTEDIT_K_LINESTART2 + case STB_TEXTEDIT_K_LINESTART2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT: + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + if (state->single_line) + state->cursor = 0; + else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) + --state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_LINEEND2 + case STB_TEXTEDIT_K_LINEEND2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_LINEEND | STB_TEXTEDIT_K_SHIFT: { + int n = STB_TEXTEDIT_STRINGLEN(str); + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + if (state->single_line) + state->cursor = n; + else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) + ++state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; + break; + } + } +} + +///////////////////////////////////////////////////////////////////////////// +// +// Undo processing +// +// @OPTIMIZE: the undo/redo buffer should be circular + +static void stb_textedit_flush_redo(StbUndoState *state) +{ + state->redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; + state->redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; +} + +// discard the oldest entry in the undo list +static void stb_textedit_discard_undo(StbUndoState *state) +{ + if (state->undo_point > 0) { + // if the 0th undo state has characters, clean those up + if (state->undo_rec[0].char_storage >= 0) { + int n = state->undo_rec[0].insert_length, i; + // delete n characters from all other records + state->undo_char_point -= n; + STB_TEXTEDIT_memmove(state->undo_char, state->undo_char + n, (size_t) (state->undo_char_point*sizeof(STB_TEXTEDIT_CHARTYPE))); + for (i=0; i < state->undo_point; ++i) + if (state->undo_rec[i].char_storage >= 0) + state->undo_rec[i].char_storage -= n; // @OPTIMIZE: get rid of char_storage and infer it + } + --state->undo_point; + STB_TEXTEDIT_memmove(state->undo_rec, state->undo_rec+1, (size_t) (state->undo_point*sizeof(state->undo_rec[0]))); + } +} + +// discard the oldest entry in the redo list--it's bad if this +// ever happens, but because undo & redo have to store the actual +// characters in different cases, the redo character buffer can +// fill up even though the undo buffer didn't +static void stb_textedit_discard_redo(StbUndoState *state) +{ + int k = STB_TEXTEDIT_UNDOSTATECOUNT-1; + + if (state->redo_point <= k) { + // if the k'th undo state has characters, clean those up + if (state->undo_rec[k].char_storage >= 0) { + int n = state->undo_rec[k].insert_length, i; + // move the remaining redo character data to the end of the buffer + state->redo_char_point += n; + STB_TEXTEDIT_memmove(state->undo_char + state->redo_char_point, state->undo_char + state->redo_char_point-n, (size_t) ((STB_TEXTEDIT_UNDOCHARCOUNT - state->redo_char_point)*sizeof(STB_TEXTEDIT_CHARTYPE))); + // adjust the position of all the other records to account for above memmove + for (i=state->redo_point; i < k; ++i) + if (state->undo_rec[i].char_storage >= 0) + state->undo_rec[i].char_storage += n; + } + // now move all the redo records towards the end of the buffer; the first one is at 'redo_point' + // [DEAR IMGUI] + size_t move_size = (size_t)((STB_TEXTEDIT_UNDOSTATECOUNT - state->redo_point - 1) * sizeof(state->undo_rec[0])); + const char* buf_begin = (char*)state->undo_rec; (void)buf_begin; + const char* buf_end = (char*)state->undo_rec + sizeof(state->undo_rec); (void)buf_end; + IM_ASSERT(((char*)(state->undo_rec + state->redo_point)) >= buf_begin); + IM_ASSERT(((char*)(state->undo_rec + state->redo_point + 1) + move_size) <= buf_end); + STB_TEXTEDIT_memmove(state->undo_rec + state->redo_point+1, state->undo_rec + state->redo_point, move_size); + + // now move redo_point to point to the new one + ++state->redo_point; + } +} + +static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars) +{ + // any time we create a new undo record, we discard redo + stb_textedit_flush_redo(state); + + // if we have no free records, we have to make room, by sliding the + // existing records down + if (state->undo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + stb_textedit_discard_undo(state); + + // if the characters to store won't possibly fit in the buffer, we can't undo + if (numchars > STB_TEXTEDIT_UNDOCHARCOUNT) { + state->undo_point = 0; + state->undo_char_point = 0; + return NULL; + } + + // if we don't have enough free characters in the buffer, we have to make room + while (state->undo_char_point + numchars > STB_TEXTEDIT_UNDOCHARCOUNT) + stb_textedit_discard_undo(state); + + return &state->undo_rec[state->undo_point++]; +} + +static STB_TEXTEDIT_CHARTYPE *stb_text_createundo(StbUndoState *state, int pos, int insert_len, int delete_len) +{ + StbUndoRecord *r = stb_text_create_undo_record(state, insert_len); + if (r == NULL) + return NULL; + + r->where = pos; + r->insert_length = (STB_TEXTEDIT_POSITIONTYPE) insert_len; + r->delete_length = (STB_TEXTEDIT_POSITIONTYPE) delete_len; + + if (insert_len == 0) { + r->char_storage = -1; + return NULL; + } else { + r->char_storage = state->undo_char_point; + state->undo_char_point += insert_len; + return &state->undo_char[r->char_storage]; + } +} + +static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + StbUndoState *s = &state->undostate; + StbUndoRecord u, *r; + if (s->undo_point == 0) + return; + + // we need to do two things: apply the undo record, and create a redo record + u = s->undo_rec[s->undo_point-1]; + r = &s->undo_rec[s->redo_point-1]; + r->char_storage = -1; + + r->insert_length = u.delete_length; + r->delete_length = u.insert_length; + r->where = u.where; + + if (u.delete_length) { + // if the undo record says to delete characters, then the redo record will + // need to re-insert the characters that get deleted, so we need to store + // them. + + // there are three cases: + // there's enough room to store the characters + // characters stored for *redoing* don't leave room for redo + // characters stored for *undoing* don't leave room for redo + // if the last is true, we have to bail + + if (s->undo_char_point + u.delete_length >= STB_TEXTEDIT_UNDOCHARCOUNT) { + // the undo records take up too much character space; there's no space to store the redo characters + r->insert_length = 0; + } else { + int i; + + // there's definitely room to store the characters eventually + while (s->undo_char_point + u.delete_length > s->redo_char_point) { + // should never happen: + if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + return; + // there's currently not enough room, so discard a redo record + stb_textedit_discard_redo(s); + } + r = &s->undo_rec[s->redo_point-1]; + + r->char_storage = s->redo_char_point - u.delete_length; + s->redo_char_point = s->redo_char_point - u.delete_length; + + // now save the characters + for (i=0; i < u.delete_length; ++i) + s->undo_char[r->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u.where + i); + } + + // now we can carry out the deletion + STB_TEXTEDIT_DELETECHARS(str, u.where, u.delete_length); + } + + // check type of recorded action: + if (u.insert_length) { + // easy case: was a deletion, so we need to insert n characters + STB_TEXTEDIT_INSERTCHARS(str, u.where, &s->undo_char[u.char_storage], u.insert_length); + s->undo_char_point -= u.insert_length; + } + + state->cursor = u.where + u.insert_length; + + s->undo_point--; + s->redo_point--; +} + +static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + StbUndoState *s = &state->undostate; + StbUndoRecord *u, r; + if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + return; + + // we need to do two things: apply the redo record, and create an undo record + u = &s->undo_rec[s->undo_point]; + r = s->undo_rec[s->redo_point]; + + // we KNOW there must be room for the undo record, because the redo record + // was derived from an undo record + + u->delete_length = r.insert_length; + u->insert_length = r.delete_length; + u->where = r.where; + u->char_storage = -1; + + if (r.delete_length) { + // the redo record requires us to delete characters, so the undo record + // needs to store the characters + + if (s->undo_char_point + u->insert_length > s->redo_char_point) { + u->insert_length = 0; + u->delete_length = 0; + } else { + int i; + u->char_storage = s->undo_char_point; + s->undo_char_point = s->undo_char_point + u->insert_length; + + // now save the characters + for (i=0; i < u->insert_length; ++i) + s->undo_char[u->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u->where + i); + } + + STB_TEXTEDIT_DELETECHARS(str, r.where, r.delete_length); + } + + if (r.insert_length) { + // easy case: need to insert n characters + STB_TEXTEDIT_INSERTCHARS(str, r.where, &s->undo_char[r.char_storage], r.insert_length); + s->redo_char_point += r.insert_length; + } + + state->cursor = r.where + r.insert_length; + + s->undo_point++; + s->redo_point++; +} + +static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length) +{ + stb_text_createundo(&state->undostate, where, 0, length); +} + +static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length) +{ + int i; + STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, length, 0); + if (p) { + for (i=0; i < length; ++i) + p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); + } +} + +static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length) +{ + int i; + STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, old_length, new_length); + if (p) { + for (i=0; i < old_length; ++i) + p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); + } +} + +// reset the state to default +static void stb_textedit_clear_state(STB_TexteditState *state, int is_single_line) +{ + state->undostate.undo_point = 0; + state->undostate.undo_char_point = 0; + state->undostate.redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; + state->undostate.redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; + state->select_end = state->select_start = 0; + state->cursor = 0; + state->has_preferred_x = 0; + state->preferred_x = 0; + state->cursor_at_end_of_line = 0; + state->initialized = 1; + state->single_line = (unsigned char) is_single_line; + state->insert_mode = 0; + state->row_count_per_page = 0; +} + +// API initialize +static void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) +{ + stb_textedit_clear_state(state, is_single_line); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif + +static int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE const *ctext, int len) +{ + return stb_textedit_paste_internal(str, state, (STB_TEXTEDIT_CHARTYPE *) ctext, len); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + +#endif//STB_TEXTEDIT_IMPLEMENTATION + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/HexaGen.Tests/cpp2c/imgui/imstb_truetype.h b/HexaGen.Tests/cpp2c/imgui/imstb_truetype.h new file mode 100644 index 0000000..35c827e --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/imstb_truetype.h @@ -0,0 +1,5085 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_truetype.h 1.26. +// Mostly fixing for compiler and static analyzer warnings. +// Grep for [DEAR IMGUI] to find the changes. + +// stb_truetype.h - v1.26 - public domain +// authored from 2009-2021 by Sean Barrett / RAD Game Tools +// +// ======================================================================= +// +// NO SECURITY GUARANTEE -- DO NOT USE THIS ON UNTRUSTED FONT FILES +// +// This library does no range checking of the offsets found in the file, +// meaning an attacker can use it to read arbitrary memory. +// +// ======================================================================= +// +// This library processes TrueType files: +// parse files +// extract glyph metrics +// extract glyph shapes +// render glyphs to one-channel bitmaps with antialiasing (box filter) +// render glyphs to one-channel SDF bitmaps (signed-distance field/function) +// +// Todo: +// non-MS cmaps +// crashproof on bad data +// hinting? (no longer patented) +// cleartype-style AA? +// optimize: use simple memory allocator for intermediates +// optimize: build edge-list directly from curves +// optimize: rasterize directly from curves? +// +// ADDITIONAL CONTRIBUTORS +// +// Mikko Mononen: compound shape support, more cmap formats +// Tor Andersson: kerning, subpixel rendering +// Dougall Johnson: OpenType / Type 2 font handling +// Daniel Ribeiro Maciel: basic GPOS-based kerning +// +// Misc other: +// Ryan Gordon +// Simon Glass +// github:IntellectualKitty +// Imanol Celaya +// Daniel Ribeiro Maciel +// +// Bug/warning reports/fixes: +// "Zer" on mollyrocket Fabian "ryg" Giesen github:NiLuJe +// Cass Everitt Martins Mozeiko github:aloucks +// stoiko (Haemimont Games) Cap Petschulat github:oyvindjam +// Brian Hook Omar Cornut github:vassvik +// Walter van Niftrik Ryan Griege +// David Gow Peter LaValle +// David Given Sergey Popov +// Ivan-Assen Ivanov Giumo X. Clanjor +// Anthony Pesch Higor Euripedes +// Johan Duparc Thomas Fields +// Hou Qiming Derek Vinyard +// Rob Loach Cort Stratton +// Kenney Phillis Jr. Brian Costabile +// Ken Voskuil (kaesve) +// +// VERSION HISTORY +// +// 1.26 (2021-08-28) fix broken rasterizer +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning +// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() +// 1.19 (2018-02-11) GPOS kerning, STBTT_fmod +// 1.18 (2018-01-29) add missing function +// 1.17 (2017-07-23) make more arguments const; doc fix +// 1.16 (2017-07-12) SDF support +// 1.15 (2017-03-03) make more arguments const +// 1.14 (2017-01-16) num-fonts-in-TTC function +// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts +// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual +// 1.11 (2016-04-02) fix unused-variable warning +// 1.10 (2016-04-02) user-defined fabs(); rare memory leak; remove duplicate typedef +// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use allocation userdata properly +// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges +// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; +// variant PackFontRanges to pack and render in separate phases; +// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); +// fixed an assert() bug in the new rasterizer +// replace assert() with STBTT_assert() in new rasterizer +// +// Full history can be found at the end of this file. +// +// LICENSE +// +// See end of file for license information. +// +// USAGE +// +// Include this file in whatever places need to refer to it. In ONE C/C++ +// file, write: +// #define STB_TRUETYPE_IMPLEMENTATION +// before the #include of this file. This expands out the actual +// implementation into that C/C++ file. +// +// To make the implementation private to the file that generates the implementation, +// #define STBTT_STATIC +// +// Simple 3D API (don't ship this, but it's fine for tools and quick start) +// stbtt_BakeFontBitmap() -- bake a font to a bitmap for use as texture +// stbtt_GetBakedQuad() -- compute quad to draw for a given char +// +// Improved 3D API (more shippable): +// #include "stb_rect_pack.h" -- optional, but you really want it +// stbtt_PackBegin() +// stbtt_PackSetOversampling() -- for improved quality on small fonts +// stbtt_PackFontRanges() -- pack and renders +// stbtt_PackEnd() +// stbtt_GetPackedQuad() +// +// "Load" a font file from a memory buffer (you have to keep the buffer loaded) +// stbtt_InitFont() +// stbtt_GetFontOffsetForIndex() -- indexing for TTC font collections +// stbtt_GetNumberOfFonts() -- number of fonts for TTC font collections +// +// Render a unicode codepoint to a bitmap +// stbtt_GetCodepointBitmap() -- allocates and returns a bitmap +// stbtt_MakeCodepointBitmap() -- renders into bitmap you provide +// stbtt_GetCodepointBitmapBox() -- how big the bitmap must be +// +// Character advance/positioning +// stbtt_GetCodepointHMetrics() +// stbtt_GetFontVMetrics() +// stbtt_GetFontVMetricsOS2() +// stbtt_GetCodepointKernAdvance() +// +// Starting with version 1.06, the rasterizer was replaced with a new, +// faster and generally-more-precise rasterizer. The new rasterizer more +// accurately measures pixel coverage for anti-aliasing, except in the case +// where multiple shapes overlap, in which case it overestimates the AA pixel +// coverage. Thus, anti-aliasing of intersecting shapes may look wrong. If +// this turns out to be a problem, you can re-enable the old rasterizer with +// #define STBTT_RASTERIZER_VERSION 1 +// which will incur about a 15% speed hit. +// +// ADDITIONAL DOCUMENTATION +// +// Immediately after this block comment are a series of sample programs. +// +// After the sample programs is the "header file" section. This section +// includes documentation for each API function. +// +// Some important concepts to understand to use this library: +// +// Codepoint +// Characters are defined by unicode codepoints, e.g. 65 is +// uppercase A, 231 is lowercase c with a cedilla, 0x7e30 is +// the hiragana for "ma". +// +// Glyph +// A visual character shape (every codepoint is rendered as +// some glyph) +// +// Glyph index +// A font-specific integer ID representing a glyph +// +// Baseline +// Glyph shapes are defined relative to a baseline, which is the +// bottom of uppercase characters. Characters extend both above +// and below the baseline. +// +// Current Point +// As you draw text to the screen, you keep track of a "current point" +// which is the origin of each character. The current point's vertical +// position is the baseline. Even "baked fonts" use this model. +// +// Vertical Font Metrics +// The vertical qualities of the font, used to vertically position +// and space the characters. See docs for stbtt_GetFontVMetrics. +// +// Font Size in Pixels or Points +// The preferred interface for specifying font sizes in stb_truetype +// is to specify how tall the font's vertical extent should be in pixels. +// If that sounds good enough, skip the next paragraph. +// +// Most font APIs instead use "points", which are a common typographic +// measurement for describing font size, defined as 72 points per inch. +// stb_truetype provides a point API for compatibility. However, true +// "per inch" conventions don't make much sense on computer displays +// since different monitors have different number of pixels per +// inch. For example, Windows traditionally uses a convention that +// there are 96 pixels per inch, thus making 'inch' measurements have +// nothing to do with inches, and thus effectively defining a point to +// be 1.333 pixels. Additionally, the TrueType font data provides +// an explicit scale factor to scale a given font's glyphs to points, +// but the author has observed that this scale factor is often wrong +// for non-commercial fonts, thus making fonts scaled in points +// according to the TrueType spec incoherently sized in practice. +// +// DETAILED USAGE: +// +// Scale: +// Select how high you want the font to be, in points or pixels. +// Call ScaleForPixelHeight or ScaleForMappingEmToPixels to compute +// a scale factor SF that will be used by all other functions. +// +// Baseline: +// You need to select a y-coordinate that is the baseline of where +// your text will appear. Call GetFontBoundingBox to get the baseline-relative +// bounding box for all characters. SF*-y0 will be the distance in pixels +// that the worst-case character could extend above the baseline, so if +// you want the top edge of characters to appear at the top of the +// screen where y=0, then you would set the baseline to SF*-y0. +// +// Current point: +// Set the current point where the first character will appear. The +// first character could extend left of the current point; this is font +// dependent. You can either choose a current point that is the leftmost +// point and hope, or add some padding, or check the bounding box or +// left-side-bearing of the first character to be displayed and set +// the current point based on that. +// +// Displaying a character: +// Compute the bounding box of the character. It will contain signed values +// relative to . I.e. if it returns x0,y0,x1,y1, +// then the character should be displayed in the rectangle from +// to = 32 && *text < 128) { + stbtt_aligned_quad q; + stbtt_GetBakedQuad(cdata, 512,512, *text-32, &x,&y,&q,1);//1=opengl & d3d10+,0=d3d9 + glTexCoord2f(q.s0,q.t0); glVertex2f(q.x0,q.y0); + glTexCoord2f(q.s1,q.t0); glVertex2f(q.x1,q.y0); + glTexCoord2f(q.s1,q.t1); glVertex2f(q.x1,q.y1); + glTexCoord2f(q.s0,q.t1); glVertex2f(q.x0,q.y1); + } + ++text; + } + glEnd(); +} +#endif +// +// +////////////////////////////////////////////////////////////////////////////// +// +// Complete program (this compiles): get a single bitmap, print as ASCII art +// +#if 0 +#include +#define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation +#include "stb_truetype.h" + +char ttf_buffer[1<<25]; + +int main(int argc, char **argv) +{ + stbtt_fontinfo font; + unsigned char *bitmap; + int w,h,i,j,c = (argc > 1 ? atoi(argv[1]) : 'a'), s = (argc > 2 ? atoi(argv[2]) : 20); + + fread(ttf_buffer, 1, 1<<25, fopen(argc > 3 ? argv[3] : "c:/windows/fonts/arialbd.ttf", "rb")); + + stbtt_InitFont(&font, ttf_buffer, stbtt_GetFontOffsetForIndex(ttf_buffer,0)); + bitmap = stbtt_GetCodepointBitmap(&font, 0,stbtt_ScaleForPixelHeight(&font, s), c, &w, &h, 0,0); + + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) + putchar(" .:ioVM@"[bitmap[j*w+i]>>5]); + putchar('\n'); + } + return 0; +} +#endif +// +// Output: +// +// .ii. +// @@@@@@. +// V@Mio@@o +// :i. V@V +// :oM@@M +// :@@@MM@M +// @@o o@M +// :@@. M@M +// @@@o@@@@ +// :M@@V:@@. +// +////////////////////////////////////////////////////////////////////////////// +// +// Complete program: print "Hello World!" banner, with bugs +// +#if 0 +char buffer[24<<20]; +unsigned char screen[20][79]; + +int main(int arg, char **argv) +{ + stbtt_fontinfo font; + int i,j,ascent,baseline,ch=0; + float scale, xpos=2; // leave a little padding in case the character extends left + char *text = "Heljo World!"; // intentionally misspelled to show 'lj' brokenness + + fread(buffer, 1, 1000000, fopen("c:/windows/fonts/arialbd.ttf", "rb")); + stbtt_InitFont(&font, buffer, 0); + + scale = stbtt_ScaleForPixelHeight(&font, 15); + stbtt_GetFontVMetrics(&font, &ascent,0,0); + baseline = (int) (ascent*scale); + + while (text[ch]) { + int advance,lsb,x0,y0,x1,y1; + float x_shift = xpos - (float) floor(xpos); + stbtt_GetCodepointHMetrics(&font, text[ch], &advance, &lsb); + stbtt_GetCodepointBitmapBoxSubpixel(&font, text[ch], scale,scale,x_shift,0, &x0,&y0,&x1,&y1); + stbtt_MakeCodepointBitmapSubpixel(&font, &screen[baseline + y0][(int) xpos + x0], x1-x0,y1-y0, 79, scale,scale,x_shift,0, text[ch]); + // note that this stomps the old data, so where character boxes overlap (e.g. 'lj') it's wrong + // because this API is really for baking character bitmaps into textures. if you want to render + // a sequence of characters, you really need to render each bitmap to a temp buffer, then + // "alpha blend" that into the working buffer + xpos += (advance * scale); + if (text[ch+1]) + xpos += scale*stbtt_GetCodepointKernAdvance(&font, text[ch],text[ch+1]); + ++ch; + } + + for (j=0; j < 20; ++j) { + for (i=0; i < 78; ++i) + putchar(" .:ioVM@"[screen[j][i]>>5]); + putchar('\n'); + } + + return 0; +} +#endif + + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// +//// +//// INTEGRATION WITH YOUR CODEBASE +//// +//// The following sections allow you to supply alternate definitions +//// of C library functions used by stb_truetype, e.g. if you don't +//// link with the C runtime library. + +#ifdef STB_TRUETYPE_IMPLEMENTATION + // #define your own (u)stbtt_int8/16/32 before including to override this + #ifndef stbtt_uint8 + typedef unsigned char stbtt_uint8; + typedef signed char stbtt_int8; + typedef unsigned short stbtt_uint16; + typedef signed short stbtt_int16; + typedef unsigned int stbtt_uint32; + typedef signed int stbtt_int32; + #endif + + typedef char stbtt__check_size32[sizeof(stbtt_int32)==4 ? 1 : -1]; + typedef char stbtt__check_size16[sizeof(stbtt_int16)==2 ? 1 : -1]; + + // e.g. #define your own STBTT_ifloor/STBTT_iceil() to avoid math.h + #ifndef STBTT_ifloor + #include + #define STBTT_ifloor(x) ((int) floor(x)) + #define STBTT_iceil(x) ((int) ceil(x)) + #endif + + #ifndef STBTT_sqrt + #include + #define STBTT_sqrt(x) sqrt(x) + #define STBTT_pow(x,y) pow(x,y) + #endif + + #ifndef STBTT_fmod + #include + #define STBTT_fmod(x,y) fmod(x,y) + #endif + + #ifndef STBTT_cos + #include + #define STBTT_cos(x) cos(x) + #define STBTT_acos(x) acos(x) + #endif + + #ifndef STBTT_fabs + #include + #define STBTT_fabs(x) fabs(x) + #endif + + // #define your own functions "STBTT_malloc" / "STBTT_free" to avoid malloc.h + #ifndef STBTT_malloc + #include + #define STBTT_malloc(x,u) ((void)(u),malloc(x)) + #define STBTT_free(x,u) ((void)(u),free(x)) + #endif + + #ifndef STBTT_assert + #include + #define STBTT_assert(x) assert(x) + #endif + + #ifndef STBTT_strlen + #include + #define STBTT_strlen(x) strlen(x) + #endif + + #ifndef STBTT_memcpy + #include + #define STBTT_memcpy memcpy + #define STBTT_memset memset + #endif +#endif + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +//// +//// INTERFACE +//// +//// + +#ifndef __STB_INCLUDE_STB_TRUETYPE_H__ +#define __STB_INCLUDE_STB_TRUETYPE_H__ + +#ifdef STBTT_STATIC +#define STBTT_DEF static +#else +#define STBTT_DEF extern +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +// private structure +typedef struct +{ + unsigned char *data; + int cursor; + int size; +} stbtt__buf; + +////////////////////////////////////////////////////////////////////////////// +// +// TEXTURE BAKING API +// +// If you use this API, you only have to call two functions ever. +// + +typedef struct +{ + unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap + float xoff,yoff,xadvance; +} stbtt_bakedchar; + +STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) + float pixel_height, // height of font in pixels + unsigned char *pixels, int pw, int ph, // bitmap to be filled in + int first_char, int num_chars, // characters to bake + stbtt_bakedchar *chardata); // you allocate this, it's num_chars long +// if return is positive, the first unused row of the bitmap +// if return is negative, returns the negative of the number of characters that fit +// if return is 0, no characters fit and no rows were used +// This uses a very crappy packing. + +typedef struct +{ + float x0,y0,s0,t0; // top-left + float x1,y1,s1,t1; // bottom-right +} stbtt_aligned_quad; + +STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, // same data as above + int char_index, // character to display + float *xpos, float *ypos, // pointers to current position in screen pixel space + stbtt_aligned_quad *q, // output: quad to draw + int opengl_fillrule); // true if opengl fill rule; false if DX9 or earlier +// Call GetBakedQuad with char_index = 'character - first_char', and it +// creates the quad you need to draw and advances the current position. +// +// The coordinate system used assumes y increases downwards. +// +// Characters will extend both above and below the current position; +// see discussion of "BASELINE" above. +// +// It's inefficient; you might want to c&p it and optimize it. + +STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap); +// Query the font vertical metrics without having to create a font first. + + +////////////////////////////////////////////////////////////////////////////// +// +// NEW TEXTURE BAKING API +// +// This provides options for packing multiple fonts into one atlas, not +// perfectly but better than nothing. + +typedef struct +{ + unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap + float xoff,yoff,xadvance; + float xoff2,yoff2; +} stbtt_packedchar; + +typedef struct stbtt_pack_context stbtt_pack_context; +typedef struct stbtt_fontinfo stbtt_fontinfo; +#ifndef STB_RECT_PACK_VERSION +typedef struct stbrp_rect stbrp_rect; +#endif + +STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context); +// Initializes a packing context stored in the passed-in stbtt_pack_context. +// Future calls using this context will pack characters into the bitmap passed +// in here: a 1-channel bitmap that is width * height. stride_in_bytes is +// the distance from one row to the next (or 0 to mean they are packed tightly +// together). "padding" is the amount of padding to leave between each +// character (normally you want '1' for bitmaps you'll use as textures with +// bilinear filtering). +// +// Returns 0 on failure, 1 on success. + +STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc); +// Cleans up the packing context and frees all memory. + +#define STBTT_POINT_SIZE(x) (-(x)) + +STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, + int first_unicode_char_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range); +// Creates character bitmaps from the font_index'th font found in fontdata (use +// font_index=0 if you don't know what that is). It creates num_chars_in_range +// bitmaps for characters with unicode values starting at first_unicode_char_in_range +// and increasing. Data for how to render them is stored in chardata_for_range; +// pass these to stbtt_GetPackedQuad to get back renderable quads. +// +// font_size is the full height of the character from ascender to descender, +// as computed by stbtt_ScaleForPixelHeight. To use a point size as computed +// by stbtt_ScaleForMappingEmToPixels, wrap the point size in STBTT_POINT_SIZE() +// and pass that result as 'font_size': +// ..., 20 , ... // font max minus min y is 20 pixels tall +// ..., STBTT_POINT_SIZE(20), ... // 'M' is 20 pixels tall + +typedef struct +{ + float font_size; + int first_unicode_codepoint_in_range; // if non-zero, then the chars are continuous, and this is the first codepoint + int *array_of_unicode_codepoints; // if non-zero, then this is an array of unicode codepoints + int num_chars; + stbtt_packedchar *chardata_for_range; // output + unsigned char h_oversample, v_oversample; // don't set these, they're used internally +} stbtt_pack_range; + +STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges); +// Creates character bitmaps from multiple ranges of characters stored in +// ranges. This will usually create a better-packed bitmap than multiple +// calls to stbtt_PackFontRange. Note that you can call this multiple +// times within a single PackBegin/PackEnd. + +STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample); +// Oversampling a font increases the quality by allowing higher-quality subpixel +// positioning, and is especially valuable at smaller text sizes. +// +// This function sets the amount of oversampling for all following calls to +// stbtt_PackFontRange(s) or stbtt_PackFontRangesGatherRects for a given +// pack context. The default (no oversampling) is achieved by h_oversample=1 +// and v_oversample=1. The total number of pixels required is +// h_oversample*v_oversample larger than the default; for example, 2x2 +// oversampling requires 4x the storage of 1x1. For best results, render +// oversampled textures with bilinear filtering. Look at the readme in +// stb/tests/oversample for information about oversampled fonts +// +// To use with PackFontRangesGather etc., you must set it before calls +// call to PackFontRangesGatherRects. + +STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip); +// If skip != 0, this tells stb_truetype to skip any codepoints for which +// there is no corresponding glyph. If skip=0, which is the default, then +// codepoints without a glyph recived the font's "missing character" glyph, +// typically an empty box by convention. + +STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, // same data as above + int char_index, // character to display + float *xpos, float *ypos, // pointers to current position in screen pixel space + stbtt_aligned_quad *q, // output: quad to draw + int align_to_integer); + +STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); +STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects); +STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); +// Calling these functions in sequence is roughly equivalent to calling +// stbtt_PackFontRanges(). If you more control over the packing of multiple +// fonts, or if you want to pack custom data into a font texture, take a look +// at the source to of stbtt_PackFontRanges() and create a custom version +// using these functions, e.g. call GatherRects multiple times, +// building up a single array of rects, then call PackRects once, +// then call RenderIntoRects repeatedly. This may result in a +// better packing than calling PackFontRanges multiple times +// (or it may not). + +// this is an opaque structure that you shouldn't mess with which holds +// all the context needed from PackBegin to PackEnd. +struct stbtt_pack_context { + void *user_allocator_context; + void *pack_info; + int width; + int height; + int stride_in_bytes; + int padding; + int skip_missing; + unsigned int h_oversample, v_oversample; + unsigned char *pixels; + void *nodes; +}; + +////////////////////////////////////////////////////////////////////////////// +// +// FONT LOADING +// +// + +STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data); +// This function will determine the number of fonts in a font file. TrueType +// collection (.ttc) files may contain multiple fonts, while TrueType font +// (.ttf) files only contain one font. The number of fonts can be used for +// indexing with the previous function where the index is between zero and one +// less than the total fonts. If an error occurs, -1 is returned. + +STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index); +// Each .ttf/.ttc file may have more than one font. Each font has a sequential +// index number starting from 0. Call this function to get the font offset for +// a given index; it returns -1 if the index is out of range. A regular .ttf +// file will only define one font and it always be at offset 0, so it will +// return '0' for index 0, and -1 for all other indices. + +// The following structure is defined publicly so you can declare one on +// the stack or as a global or etc, but you should treat it as opaque. +struct stbtt_fontinfo +{ + void * userdata; + unsigned char * data; // pointer to .ttf file + int fontstart; // offset of start of font + + int numGlyphs; // number of glyphs, needed for range checking + + int loca,head,glyf,hhea,hmtx,kern,gpos,svg; // table locations as offset from start of .ttf + int index_map; // a cmap mapping for our chosen character encoding + int indexToLocFormat; // format needed to map from glyph index to glyph + + stbtt__buf cff; // cff font data + stbtt__buf charstrings; // the charstring index + stbtt__buf gsubrs; // global charstring subroutines index + stbtt__buf subrs; // private charstring subroutines index + stbtt__buf fontdicts; // array of font dicts + stbtt__buf fdselect; // map from glyph to fontdict +}; + +STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset); +// Given an offset into the file that defines a font, this function builds +// the necessary cached info for the rest of the system. You must allocate +// the stbtt_fontinfo yourself, and stbtt_InitFont will fill it out. You don't +// need to do anything special to free it, because the contents are pure +// value data with no additional data structures. Returns 0 on failure. + + +////////////////////////////////////////////////////////////////////////////// +// +// CHARACTER TO GLYPH-INDEX CONVERSIOn + +STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint); +// If you're going to perform multiple operations on the same character +// and you want a speed-up, call this function with the character you're +// going to process, then use glyph-based functions instead of the +// codepoint-based functions. +// Returns 0 if the character codepoint is not defined in the font. + + +////////////////////////////////////////////////////////////////////////////// +// +// CHARACTER PROPERTIES +// + +STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels); +// computes a scale factor to produce a font whose "height" is 'pixels' tall. +// Height is measured as the distance from the highest ascender to the lowest +// descender; in other words, it's equivalent to calling stbtt_GetFontVMetrics +// and computing: +// scale = pixels / (ascent - descent) +// so if you prefer to measure height by the ascent only, use a similar calculation. + +STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels); +// computes a scale factor to produce a font whose EM size is mapped to +// 'pixels' tall. This is probably what traditional APIs compute, but +// I'm not positive. + +STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap); +// ascent is the coordinate above the baseline the font extends; descent +// is the coordinate below the baseline the font extends (i.e. it is typically negative) +// lineGap is the spacing between one row's descent and the next row's ascent... +// so you should advance the vertical position by "*ascent - *descent + *lineGap" +// these are expressed in unscaled coordinates, so you must multiply by +// the scale factor for a given size + +STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap); +// analogous to GetFontVMetrics, but returns the "typographic" values from the OS/2 +// table (specific to MS/Windows TTF files). +// +// Returns 1 on success (table present), 0 on failure. + +STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1); +// the bounding box around all possible characters + +STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing); +// leftSideBearing is the offset from the current horizontal position to the left edge of the character +// advanceWidth is the offset from the current horizontal position to the next horizontal position +// these are expressed in unscaled coordinates + +STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2); +// an additional amount to add to the 'advance' value between ch1 and ch2 + +STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1); +// Gets the bounding box of the visible part of the glyph, in unscaled coordinates + +STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing); +STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2); +STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); +// as above, but takes one or more glyph indices for greater efficiency + +typedef struct stbtt_kerningentry +{ + int glyph1; // use stbtt_FindGlyphIndex + int glyph2; + int advance; +} stbtt_kerningentry; + +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info); +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length); +// Retrieves a complete list of all of the kerning pairs provided by the font +// stbtt_GetKerningTable never writes more than table_length entries and returns how many entries it did write. +// The table will be sorted by (a.glyph1 == b.glyph1)?(a.glyph2 < b.glyph2):(a.glyph1 < b.glyph1) + +////////////////////////////////////////////////////////////////////////////// +// +// GLYPH SHAPES (you probably don't need these, but they have to go before +// the bitmaps for C declaration-order reasons) +// + +#ifndef STBTT_vmove // you can predefine these to use different values (but why?) + enum { + STBTT_vmove=1, + STBTT_vline, + STBTT_vcurve, + STBTT_vcubic + }; +#endif + +#ifndef stbtt_vertex // you can predefine this to use different values + // (we share this with other code at RAD) + #define stbtt_vertex_type short // can't use stbtt_int16 because that's not visible in the header file + typedef struct + { + stbtt_vertex_type x,y,cx,cy,cx1,cy1; + unsigned char type,padding; + } stbtt_vertex; +#endif + +STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index); +// returns non-zero if nothing is drawn for this glyph + +STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices); +STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices); +// returns # of vertices and fills *vertices with the pointer to them +// these are expressed in "unscaled" coordinates +// +// The shape is a series of contours. Each one starts with +// a STBTT_moveto, then consists of a series of mixed +// STBTT_lineto and STBTT_curveto segments. A lineto +// draws a line from previous endpoint to its x,y; a curveto +// draws a quadratic bezier from previous endpoint to +// its x,y, using cx,cy as the bezier control point. + +STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices); +// frees the data allocated above + +STBTT_DEF unsigned char *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl); +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg); +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg); +// fills svg with the character's SVG data. +// returns data size or 0 if SVG not found. + +////////////////////////////////////////////////////////////////////////////// +// +// BITMAP RENDERING +// + +STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata); +// frees the bitmap allocated below + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff); +// allocates a large-enough single-channel 8bpp bitmap and renders the +// specified character/glyph at the specified scale into it, with +// antialiasing. 0 is no coverage (transparent), 255 is fully covered (opaque). +// *width & *height are filled out with the width & height of the bitmap, +// which is stored left-to-right, top-to-bottom. +// +// xoff/yoff are the offset it pixel space from the glyph origin to the top-left of the bitmap + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff); +// the same as stbtt_GetCodepoitnBitmap, but you can specify a subpixel +// shift for the character + +STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint); +// the same as stbtt_GetCodepointBitmap, but you pass in storage for the bitmap +// in the form of 'output', with row spacing of 'out_stride' bytes. the bitmap +// is clipped to out_w/out_h bytes. Call stbtt_GetCodepointBitmapBox to get the +// width and height and positioning info for it first. + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint); +// same as stbtt_MakeCodepointBitmap, but you can specify a subpixel +// shift for the character + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint); +// same as stbtt_MakeCodepointBitmapSubpixel, but prefiltering +// is performed (see stbtt_PackSetOversampling) + +STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); +// get the bbox of the bitmap centered around the glyph origin; so the +// bitmap width is ix1-ix0, height is iy1-iy0, and location to place +// the bitmap top left is (leftSideBearing*scale,iy0). +// (Note that the bitmap uses y-increases-down, but the shape uses +// y-increases-up, so CodepointBitmapBox and CodepointBox are inverted.) + +STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); +// same as stbtt_GetCodepointBitmapBox, but you can specify a subpixel +// shift for the character + +// the following functions are equivalent to the above functions, but operate +// on glyph indices instead of Unicode codepoints (for efficiency) +STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph); +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph); +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int glyph); +STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); +STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); + + +// @TODO: don't expose this structure +typedef struct +{ + int w,h,stride; + unsigned char *pixels; +} stbtt__bitmap; + +// rasterize a shape with quadratic beziers into a bitmap +STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, // 1-channel bitmap to draw into + float flatness_in_pixels, // allowable error of curve in pixels + stbtt_vertex *vertices, // array of vertices defining shape + int num_verts, // number of vertices in above array + float scale_x, float scale_y, // scale applied to input vertices + float shift_x, float shift_y, // translation applied to input vertices + int x_off, int y_off, // another translation applied to input + int invert, // if non-zero, vertically flip shape + void *userdata); // context for to STBTT_MALLOC + +////////////////////////////////////////////////////////////////////////////// +// +// Signed Distance Function (or Field) rendering + +STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata); +// frees the SDF bitmap allocated below + +STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); +// These functions compute a discretized SDF field for a single character, suitable for storing +// in a single-channel texture, sampling with bilinear filtering, and testing against +// larger than some threshold to produce scalable fonts. +// info -- the font +// scale -- controls the size of the resulting SDF bitmap, same as it would be creating a regular bitmap +// glyph/codepoint -- the character to generate the SDF for +// padding -- extra "pixels" around the character which are filled with the distance to the character (not 0), +// which allows effects like bit outlines +// onedge_value -- value 0-255 to test the SDF against to reconstruct the character (i.e. the isocontour of the character) +// pixel_dist_scale -- what value the SDF should increase by when moving one SDF "pixel" away from the edge (on the 0..255 scale) +// if positive, > onedge_value is inside; if negative, < onedge_value is inside +// width,height -- output height & width of the SDF bitmap (including padding) +// xoff,yoff -- output origin of the character +// return value -- a 2D array of bytes 0..255, width*height in size +// +// pixel_dist_scale & onedge_value are a scale & bias that allows you to make +// optimal use of the limited 0..255 for your application, trading off precision +// and special effects. SDF values outside the range 0..255 are clamped to 0..255. +// +// Example: +// scale = stbtt_ScaleForPixelHeight(22) +// padding = 5 +// onedge_value = 180 +// pixel_dist_scale = 180/5.0 = 36.0 +// +// This will create an SDF bitmap in which the character is about 22 pixels +// high but the whole bitmap is about 22+5+5=32 pixels high. To produce a filled +// shape, sample the SDF at each pixel and fill the pixel if the SDF value +// is greater than or equal to 180/255. (You'll actually want to antialias, +// which is beyond the scope of this example.) Additionally, you can compute +// offset outlines (e.g. to stroke the character border inside & outside, +// or only outside). For example, to fill outside the character up to 3 SDF +// pixels, you would compare against (180-36.0*3)/255 = 72/255. The above +// choice of variables maps a range from 5 pixels outside the shape to +// 2 pixels inside the shape to 0..255; this is intended primarily for apply +// outside effects only (the interior range is needed to allow proper +// antialiasing of the font at *smaller* sizes) +// +// The function computes the SDF analytically at each SDF pixel, not by e.g. +// building a higher-res bitmap and approximating it. In theory the quality +// should be as high as possible for an SDF of this size & representation, but +// unclear if this is true in practice (perhaps building a higher-res bitmap +// and computing from that can allow drop-out prevention). +// +// The algorithm has not been optimized at all, so expect it to be slow +// if computing lots of characters or very large sizes. + + + +////////////////////////////////////////////////////////////////////////////// +// +// Finding the right font... +// +// You should really just solve this offline, keep your own tables +// of what font is what, and don't try to get it out of the .ttf file. +// That's because getting it out of the .ttf file is really hard, because +// the names in the file can appear in many possible encodings, in many +// possible languages, and e.g. if you need a case-insensitive comparison, +// the details of that depend on the encoding & language in a complex way +// (actually underspecified in truetype, but also gigantic). +// +// But you can use the provided functions in two possible ways: +// stbtt_FindMatchingFont() will use *case-sensitive* comparisons on +// unicode-encoded names to try to find the font you want; +// you can run this before calling stbtt_InitFont() +// +// stbtt_GetFontNameString() lets you get any of the various strings +// from the file yourself and do your own comparisons on them. +// You have to have called stbtt_InitFont() first. + + +STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags); +// returns the offset (not index) of the font that matches, or -1 if none +// if you use STBTT_MACSTYLE_DONTCARE, use a font name like "Arial Bold". +// if you use any other flag, use a font name like "Arial"; this checks +// the 'macStyle' header field; i don't know if fonts set this consistently +#define STBTT_MACSTYLE_DONTCARE 0 +#define STBTT_MACSTYLE_BOLD 1 +#define STBTT_MACSTYLE_ITALIC 2 +#define STBTT_MACSTYLE_UNDERSCORE 4 +#define STBTT_MACSTYLE_NONE 8 // <= not same as 0, this makes us check the bitfield is 0 + +STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2); +// returns 1/0 whether the first string interpreted as utf8 is identical to +// the second string interpreted as big-endian utf16... useful for strings from next func + +STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID); +// returns the string (which may be big-endian double byte, e.g. for unicode) +// and puts the length in bytes in *length. +// +// some of the values for the IDs are below; for more see the truetype spec: +// http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6name.html +// http://www.microsoft.com/typography/otspec/name.htm + +enum { // platformID + STBTT_PLATFORM_ID_UNICODE =0, + STBTT_PLATFORM_ID_MAC =1, + STBTT_PLATFORM_ID_ISO =2, + STBTT_PLATFORM_ID_MICROSOFT =3 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_UNICODE + STBTT_UNICODE_EID_UNICODE_1_0 =0, + STBTT_UNICODE_EID_UNICODE_1_1 =1, + STBTT_UNICODE_EID_ISO_10646 =2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP=3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL=4 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_MICROSOFT + STBTT_MS_EID_SYMBOL =0, + STBTT_MS_EID_UNICODE_BMP =1, + STBTT_MS_EID_SHIFTJIS =2, + STBTT_MS_EID_UNICODE_FULL =10 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_MAC; same as Script Manager codes + STBTT_MAC_EID_ROMAN =0, STBTT_MAC_EID_ARABIC =4, + STBTT_MAC_EID_JAPANESE =1, STBTT_MAC_EID_HEBREW =5, + STBTT_MAC_EID_CHINESE_TRAD =2, STBTT_MAC_EID_GREEK =6, + STBTT_MAC_EID_KOREAN =3, STBTT_MAC_EID_RUSSIAN =7 +}; + +enum { // languageID for STBTT_PLATFORM_ID_MICROSOFT; same as LCID... + // problematic because there are e.g. 16 english LCIDs and 16 arabic LCIDs + STBTT_MS_LANG_ENGLISH =0x0409, STBTT_MS_LANG_ITALIAN =0x0410, + STBTT_MS_LANG_CHINESE =0x0804, STBTT_MS_LANG_JAPANESE =0x0411, + STBTT_MS_LANG_DUTCH =0x0413, STBTT_MS_LANG_KOREAN =0x0412, + STBTT_MS_LANG_FRENCH =0x040c, STBTT_MS_LANG_RUSSIAN =0x0419, + STBTT_MS_LANG_GERMAN =0x0407, STBTT_MS_LANG_SPANISH =0x0409, + STBTT_MS_LANG_HEBREW =0x040d, STBTT_MS_LANG_SWEDISH =0x041D +}; + +enum { // languageID for STBTT_PLATFORM_ID_MAC + STBTT_MAC_LANG_ENGLISH =0 , STBTT_MAC_LANG_JAPANESE =11, + STBTT_MAC_LANG_ARABIC =12, STBTT_MAC_LANG_KOREAN =23, + STBTT_MAC_LANG_DUTCH =4 , STBTT_MAC_LANG_RUSSIAN =32, + STBTT_MAC_LANG_FRENCH =1 , STBTT_MAC_LANG_SPANISH =6 , + STBTT_MAC_LANG_GERMAN =2 , STBTT_MAC_LANG_SWEDISH =5 , + STBTT_MAC_LANG_HEBREW =10, STBTT_MAC_LANG_CHINESE_SIMPLIFIED =33, + STBTT_MAC_LANG_ITALIAN =3 , STBTT_MAC_LANG_CHINESE_TRAD =19 +}; + +#ifdef __cplusplus +} +#endif + +#endif // __STB_INCLUDE_STB_TRUETYPE_H__ + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +//// +//// IMPLEMENTATION +//// +//// + +#ifdef STB_TRUETYPE_IMPLEMENTATION + +#ifndef STBTT_MAX_OVERSAMPLE +#define STBTT_MAX_OVERSAMPLE 8 +#endif + +#if STBTT_MAX_OVERSAMPLE > 255 +#error "STBTT_MAX_OVERSAMPLE cannot be > 255" +#endif + +typedef int stbtt__test_oversample_pow2[(STBTT_MAX_OVERSAMPLE & (STBTT_MAX_OVERSAMPLE-1)) == 0 ? 1 : -1]; + +#ifndef STBTT_RASTERIZER_VERSION +#define STBTT_RASTERIZER_VERSION 2 +#endif + +#ifdef _MSC_VER +#define STBTT__NOTUSED(v) (void)(v) +#else +#define STBTT__NOTUSED(v) (void)sizeof(v) +#endif + +////////////////////////////////////////////////////////////////////////// +// +// stbtt__buf helpers to parse data from file +// + +static stbtt_uint8 stbtt__buf_get8(stbtt__buf *b) +{ + if (b->cursor >= b->size) + return 0; + return b->data[b->cursor++]; +} + +static stbtt_uint8 stbtt__buf_peek8(stbtt__buf *b) +{ + if (b->cursor >= b->size) + return 0; + return b->data[b->cursor]; +} + +static void stbtt__buf_seek(stbtt__buf *b, int o) +{ + STBTT_assert(!(o > b->size || o < 0)); + b->cursor = (o > b->size || o < 0) ? b->size : o; +} + +static void stbtt__buf_skip(stbtt__buf *b, int o) +{ + stbtt__buf_seek(b, b->cursor + o); +} + +static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n) +{ + stbtt_uint32 v = 0; + int i; + STBTT_assert(n >= 1 && n <= 4); + for (i = 0; i < n; i++) + v = (v << 8) | stbtt__buf_get8(b); + return v; +} + +static stbtt__buf stbtt__new_buf(const void *p, size_t size) +{ + stbtt__buf r; + STBTT_assert(size < 0x40000000); + r.data = (stbtt_uint8*) p; + r.size = (int) size; + r.cursor = 0; + return r; +} + +#define stbtt__buf_get16(b) stbtt__buf_get((b), 2) +#define stbtt__buf_get32(b) stbtt__buf_get((b), 4) + +static stbtt__buf stbtt__buf_range(const stbtt__buf *b, int o, int s) +{ + stbtt__buf r = stbtt__new_buf(NULL, 0); + if (o < 0 || s < 0 || o > b->size || s > b->size - o) return r; + r.data = b->data + o; + r.size = s; + return r; +} + +static stbtt__buf stbtt__cff_get_index(stbtt__buf *b) +{ + int count, start, offsize; + start = b->cursor; + count = stbtt__buf_get16(b); + if (count) { + offsize = stbtt__buf_get8(b); + STBTT_assert(offsize >= 1 && offsize <= 4); + stbtt__buf_skip(b, offsize * count); + stbtt__buf_skip(b, stbtt__buf_get(b, offsize) - 1); + } + return stbtt__buf_range(b, start, b->cursor - start); +} + +static stbtt_uint32 stbtt__cff_int(stbtt__buf *b) +{ + int b0 = stbtt__buf_get8(b); + if (b0 >= 32 && b0 <= 246) return b0 - 139; + else if (b0 >= 247 && b0 <= 250) return (b0 - 247)*256 + stbtt__buf_get8(b) + 108; + else if (b0 >= 251 && b0 <= 254) return -(b0 - 251)*256 - stbtt__buf_get8(b) - 108; + else if (b0 == 28) return stbtt__buf_get16(b); + else if (b0 == 29) return stbtt__buf_get32(b); + STBTT_assert(0); + return 0; +} + +static void stbtt__cff_skip_operand(stbtt__buf *b) { + int v, b0 = stbtt__buf_peek8(b); + STBTT_assert(b0 >= 28); + if (b0 == 30) { + stbtt__buf_skip(b, 1); + while (b->cursor < b->size) { + v = stbtt__buf_get8(b); + if ((v & 0xF) == 0xF || (v >> 4) == 0xF) + break; + } + } else { + stbtt__cff_int(b); + } +} + +static stbtt__buf stbtt__dict_get(stbtt__buf *b, int key) +{ + stbtt__buf_seek(b, 0); + while (b->cursor < b->size) { + int start = b->cursor, end, op; + while (stbtt__buf_peek8(b) >= 28) + stbtt__cff_skip_operand(b); + end = b->cursor; + op = stbtt__buf_get8(b); + if (op == 12) op = stbtt__buf_get8(b) | 0x100; + if (op == key) return stbtt__buf_range(b, start, end-start); + } + return stbtt__buf_range(b, 0, 0); +} + +static void stbtt__dict_get_ints(stbtt__buf *b, int key, int outcount, stbtt_uint32 *out) +{ + int i; + stbtt__buf operands = stbtt__dict_get(b, key); + for (i = 0; i < outcount && operands.cursor < operands.size; i++) + out[i] = stbtt__cff_int(&operands); +} + +static int stbtt__cff_index_count(stbtt__buf *b) +{ + stbtt__buf_seek(b, 0); + return stbtt__buf_get16(b); +} + +static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i) +{ + int count, offsize, start, end; + stbtt__buf_seek(&b, 0); + count = stbtt__buf_get16(&b); + offsize = stbtt__buf_get8(&b); + STBTT_assert(i >= 0 && i < count); + STBTT_assert(offsize >= 1 && offsize <= 4); + stbtt__buf_skip(&b, i*offsize); + start = stbtt__buf_get(&b, offsize); + end = stbtt__buf_get(&b, offsize); + return stbtt__buf_range(&b, 2+(count+1)*offsize+start, end - start); +} + +////////////////////////////////////////////////////////////////////////// +// +// accessors to parse data from file +// + +// on platforms that don't allow misaligned reads, if we want to allow +// truetype fonts that aren't padded to alignment, define ALLOW_UNALIGNED_TRUETYPE + +#define ttBYTE(p) (* (stbtt_uint8 *) (p)) +#define ttCHAR(p) (* (stbtt_int8 *) (p)) +#define ttFixed(p) ttLONG(p) + +static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } +static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } +static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } +static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } + +#define stbtt_tag4(p,c0,c1,c2,c3) ((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3)) +#define stbtt_tag(p,str) stbtt_tag4(p,str[0],str[1],str[2],str[3]) + +static int stbtt__isfont(stbtt_uint8 *font) +{ + // check the version number + if (stbtt_tag4(font, '1',0,0,0)) return 1; // TrueType 1 + if (stbtt_tag(font, "typ1")) return 1; // TrueType with type 1 font -- we don't support this! + if (stbtt_tag(font, "OTTO")) return 1; // OpenType with CFF + if (stbtt_tag4(font, 0,1,0,0)) return 1; // OpenType 1.0 + if (stbtt_tag(font, "true")) return 1; // Apple specification for TrueType fonts + return 0; +} + +// @OPTIMIZE: binary search +static stbtt_uint32 stbtt__find_table(stbtt_uint8 *data, stbtt_uint32 fontstart, const char *tag) +{ + stbtt_int32 num_tables = ttUSHORT(data+fontstart+4); + stbtt_uint32 tabledir = fontstart + 12; + stbtt_int32 i; + for (i=0; i < num_tables; ++i) { + stbtt_uint32 loc = tabledir + 16*i; + if (stbtt_tag(data+loc+0, tag)) + return ttULONG(data+loc+8); + } + return 0; +} + +static int stbtt_GetFontOffsetForIndex_internal(unsigned char *font_collection, int index) +{ + // if it's just a font, there's only one valid index + if (stbtt__isfont(font_collection)) + return index == 0 ? 0 : -1; + + // check if it's a TTC + if (stbtt_tag(font_collection, "ttcf")) { + // version 1? + if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { + stbtt_int32 n = ttLONG(font_collection+8); + if (index >= n) + return -1; + return ttULONG(font_collection+12+index*4); + } + } + return -1; +} + +static int stbtt_GetNumberOfFonts_internal(unsigned char *font_collection) +{ + // if it's just a font, there's only one valid font + if (stbtt__isfont(font_collection)) + return 1; + + // check if it's a TTC + if (stbtt_tag(font_collection, "ttcf")) { + // version 1? + if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { + return ttLONG(font_collection+8); + } + } + return 0; +} + +static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict) +{ + stbtt_uint32 subrsoff = 0, private_loc[2] = { 0, 0 }; + stbtt__buf pdict; + stbtt__dict_get_ints(&fontdict, 18, 2, private_loc); + if (!private_loc[1] || !private_loc[0]) return stbtt__new_buf(NULL, 0); + pdict = stbtt__buf_range(&cff, private_loc[1], private_loc[0]); + stbtt__dict_get_ints(&pdict, 19, 1, &subrsoff); + if (!subrsoff) return stbtt__new_buf(NULL, 0); + stbtt__buf_seek(&cff, private_loc[1]+subrsoff); + return stbtt__cff_get_index(&cff); +} + +// since most people won't use this, find this table the first time it's needed +static int stbtt__get_svg(stbtt_fontinfo *info) +{ + stbtt_uint32 t; + if (info->svg < 0) { + t = stbtt__find_table(info->data, info->fontstart, "SVG "); + if (t) { + stbtt_uint32 offset = ttULONG(info->data + t + 2); + info->svg = t + offset; + } else { + info->svg = 0; + } + } + return info->svg; +} + +static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart) +{ + stbtt_uint32 cmap, t; + stbtt_int32 i,numTables; + + info->data = data; + info->fontstart = fontstart; + info->cff = stbtt__new_buf(NULL, 0); + + cmap = stbtt__find_table(data, fontstart, "cmap"); // required + info->loca = stbtt__find_table(data, fontstart, "loca"); // required + info->head = stbtt__find_table(data, fontstart, "head"); // required + info->glyf = stbtt__find_table(data, fontstart, "glyf"); // required + info->hhea = stbtt__find_table(data, fontstart, "hhea"); // required + info->hmtx = stbtt__find_table(data, fontstart, "hmtx"); // required + info->kern = stbtt__find_table(data, fontstart, "kern"); // not required + info->gpos = stbtt__find_table(data, fontstart, "GPOS"); // not required + + if (!cmap || !info->head || !info->hhea || !info->hmtx) + return 0; + if (info->glyf) { + // required for truetype + if (!info->loca) return 0; + } else { + // initialization for CFF / Type2 fonts (OTF) + stbtt__buf b, topdict, topdictidx; + stbtt_uint32 cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + stbtt_uint32 cff; + + cff = stbtt__find_table(data, fontstart, "CFF "); + if (!cff) return 0; + + info->fontdicts = stbtt__new_buf(NULL, 0); + info->fdselect = stbtt__new_buf(NULL, 0); + + // @TODO this should use size from table (not 512MB) + info->cff = stbtt__new_buf(data+cff, 512*1024*1024); + b = info->cff; + + // read the header + stbtt__buf_skip(&b, 2); + stbtt__buf_seek(&b, stbtt__buf_get8(&b)); // hdrsize + + // @TODO the name INDEX could list multiple fonts, + // but we just use the first one. + stbtt__cff_get_index(&b); // name INDEX + topdictidx = stbtt__cff_get_index(&b); + topdict = stbtt__cff_index_get(topdictidx, 0); + stbtt__cff_get_index(&b); // string INDEX + info->gsubrs = stbtt__cff_get_index(&b); + + stbtt__dict_get_ints(&topdict, 17, 1, &charstrings); + stbtt__dict_get_ints(&topdict, 0x100 | 6, 1, &cstype); + stbtt__dict_get_ints(&topdict, 0x100 | 36, 1, &fdarrayoff); + stbtt__dict_get_ints(&topdict, 0x100 | 37, 1, &fdselectoff); + info->subrs = stbtt__get_subrs(b, topdict); + + // we only support Type 2 charstrings + if (cstype != 2) return 0; + if (charstrings == 0) return 0; + + if (fdarrayoff) { + // looks like a CID font + if (!fdselectoff) return 0; + stbtt__buf_seek(&b, fdarrayoff); + info->fontdicts = stbtt__cff_get_index(&b); + info->fdselect = stbtt__buf_range(&b, fdselectoff, b.size-fdselectoff); + } + + stbtt__buf_seek(&b, charstrings); + info->charstrings = stbtt__cff_get_index(&b); + } + + t = stbtt__find_table(data, fontstart, "maxp"); + if (t) + info->numGlyphs = ttUSHORT(data+t+4); + else + info->numGlyphs = 0xffff; + + info->svg = -1; + + // find a cmap encoding table we understand *now* to avoid searching + // later. (todo: could make this installable) + // the same regardless of glyph. + numTables = ttUSHORT(data + cmap + 2); + info->index_map = 0; + for (i=0; i < numTables; ++i) { + stbtt_uint32 encoding_record = cmap + 4 + 8 * i; + // find an encoding we understand: + switch(ttUSHORT(data+encoding_record)) { + case STBTT_PLATFORM_ID_MICROSOFT: + switch (ttUSHORT(data+encoding_record+2)) { + case STBTT_MS_EID_UNICODE_BMP: + case STBTT_MS_EID_UNICODE_FULL: + // MS/Unicode + info->index_map = cmap + ttULONG(data+encoding_record+4); + break; + } + break; + case STBTT_PLATFORM_ID_UNICODE: + // Mac/iOS has these + // all the encodingIDs are unicode, so we don't bother to check it + info->index_map = cmap + ttULONG(data+encoding_record+4); + break; + } + } + if (info->index_map == 0) + return 0; + + info->indexToLocFormat = ttUSHORT(data+info->head + 50); + return 1; +} + +STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint) +{ + stbtt_uint8 *data = info->data; + stbtt_uint32 index_map = info->index_map; + + stbtt_uint16 format = ttUSHORT(data + index_map + 0); + if (format == 0) { // apple byte encoding + stbtt_int32 bytes = ttUSHORT(data + index_map + 2); + if (unicode_codepoint < bytes-6) + return ttBYTE(data + index_map + 6 + unicode_codepoint); + return 0; + } else if (format == 6) { + stbtt_uint32 first = ttUSHORT(data + index_map + 6); + stbtt_uint32 count = ttUSHORT(data + index_map + 8); + if ((stbtt_uint32) unicode_codepoint >= first && (stbtt_uint32) unicode_codepoint < first+count) + return ttUSHORT(data + index_map + 10 + (unicode_codepoint - first)*2); + return 0; + } else if (format == 2) { + STBTT_assert(0); // @TODO: high-byte mapping for japanese/chinese/korean + return 0; + } else if (format == 4) { // standard mapping for windows fonts: binary search collection of ranges + stbtt_uint16 segcount = ttUSHORT(data+index_map+6) >> 1; + stbtt_uint16 searchRange = ttUSHORT(data+index_map+8) >> 1; + stbtt_uint16 entrySelector = ttUSHORT(data+index_map+10); + stbtt_uint16 rangeShift = ttUSHORT(data+index_map+12) >> 1; + + // do a binary search of the segments + stbtt_uint32 endCount = index_map + 14; + stbtt_uint32 search = endCount; + + if (unicode_codepoint > 0xffff) + return 0; + + // they lie from endCount .. endCount + segCount + // but searchRange is the nearest power of two, so... + if (unicode_codepoint >= ttUSHORT(data + search + rangeShift*2)) + search += rangeShift*2; + + // now decrement to bias correctly to find smallest + search -= 2; + while (entrySelector) { + stbtt_uint16 end; + searchRange >>= 1; + end = ttUSHORT(data + search + searchRange*2); + if (unicode_codepoint > end) + search += searchRange*2; + --entrySelector; + } + search += 2; + + { + stbtt_uint16 offset, start, last; + stbtt_uint16 item = (stbtt_uint16) ((search - endCount) >> 1); + + start = ttUSHORT(data + index_map + 14 + segcount*2 + 2 + 2*item); + last = ttUSHORT(data + endCount + 2*item); + if (unicode_codepoint < start || unicode_codepoint > last) + return 0; + + offset = ttUSHORT(data + index_map + 14 + segcount*6 + 2 + 2*item); + if (offset == 0) + return (stbtt_uint16) (unicode_codepoint + ttSHORT(data + index_map + 14 + segcount*4 + 2 + 2*item)); + + return ttUSHORT(data + offset + (unicode_codepoint-start)*2 + index_map + 14 + segcount*6 + 2 + 2*item); + } + } else if (format == 12 || format == 13) { + stbtt_uint32 ngroups = ttULONG(data+index_map+12); + stbtt_int32 low,high; + low = 0; high = (stbtt_int32)ngroups; + // Binary search the right group. + while (low < high) { + stbtt_int32 mid = low + ((high-low) >> 1); // rounds down, so low <= mid < high + stbtt_uint32 start_char = ttULONG(data+index_map+16+mid*12); + stbtt_uint32 end_char = ttULONG(data+index_map+16+mid*12+4); + if ((stbtt_uint32) unicode_codepoint < start_char) + high = mid; + else if ((stbtt_uint32) unicode_codepoint > end_char) + low = mid+1; + else { + stbtt_uint32 start_glyph = ttULONG(data+index_map+16+mid*12+8); + if (format == 12) + return start_glyph + unicode_codepoint-start_char; + else // format == 13 + return start_glyph; + } + } + return 0; // not found + } + // @TODO + STBTT_assert(0); + return 0; +} + +STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices) +{ + return stbtt_GetGlyphShape(info, stbtt_FindGlyphIndex(info, unicode_codepoint), vertices); +} + +static void stbtt_setvertex(stbtt_vertex *v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy) +{ + v->type = type; + v->x = (stbtt_int16) x; + v->y = (stbtt_int16) y; + v->cx = (stbtt_int16) cx; + v->cy = (stbtt_int16) cy; +} + +static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index) +{ + int g1,g2; + + STBTT_assert(!info->cff.size); + + if (glyph_index >= info->numGlyphs) return -1; // glyph index out of range + if (info->indexToLocFormat >= 2) return -1; // unknown index->glyph map format + + if (info->indexToLocFormat == 0) { + g1 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2) * 2; + g2 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2 + 2) * 2; + } else { + g1 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4); + g2 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4 + 4); + } + + return g1==g2 ? -1 : g1; // if length is 0, return -1 +} + +static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); + +STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) +{ + if (info->cff.size) { + stbtt__GetGlyphInfoT2(info, glyph_index, x0, y0, x1, y1); + } else { + int g = stbtt__GetGlyfOffset(info, glyph_index); + if (g < 0) return 0; + + if (x0) *x0 = ttSHORT(info->data + g + 2); + if (y0) *y0 = ttSHORT(info->data + g + 4); + if (x1) *x1 = ttSHORT(info->data + g + 6); + if (y1) *y1 = ttSHORT(info->data + g + 8); + } + return 1; +} + +STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1) +{ + return stbtt_GetGlyphBox(info, stbtt_FindGlyphIndex(info,codepoint), x0,y0,x1,y1); +} + +STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index) +{ + stbtt_int16 numberOfContours; + int g; + if (info->cff.size) + return stbtt__GetGlyphInfoT2(info, glyph_index, NULL, NULL, NULL, NULL) == 0; + g = stbtt__GetGlyfOffset(info, glyph_index); + if (g < 0) return 1; + numberOfContours = ttSHORT(info->data + g); + return numberOfContours == 0; +} + +static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off, + stbtt_int32 sx, stbtt_int32 sy, stbtt_int32 scx, stbtt_int32 scy, stbtt_int32 cx, stbtt_int32 cy) +{ + if (start_off) { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+scx)>>1, (cy+scy)>>1, cx,cy); + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, sx,sy,scx,scy); + } else { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve,sx,sy,cx,cy); + else + stbtt_setvertex(&vertices[num_vertices++], STBTT_vline,sx,sy,0,0); + } + return num_vertices; +} + +static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + stbtt_int16 numberOfContours; + stbtt_uint8 *endPtsOfContours; + stbtt_uint8 *data = info->data; + stbtt_vertex *vertices=0; + int num_vertices=0; + int g = stbtt__GetGlyfOffset(info, glyph_index); + + *pvertices = NULL; + + if (g < 0) return 0; + + numberOfContours = ttSHORT(data + g); + + if (numberOfContours > 0) { + stbtt_uint8 flags=0,flagcount; + stbtt_int32 ins, i,j=0,m,n, next_move, was_off=0, off, start_off=0; + stbtt_int32 x,y,cx,cy,sx,sy, scx,scy; + stbtt_uint8 *points; + endPtsOfContours = (data + g + 10); + ins = ttUSHORT(data + g + 10 + numberOfContours * 2); + points = data + g + 10 + numberOfContours * 2 + 2 + ins; + + n = 1+ttUSHORT(endPtsOfContours + numberOfContours*2-2); + + m = n + 2*numberOfContours; // a loose bound on how many vertices we might need + vertices = (stbtt_vertex *) STBTT_malloc(m * sizeof(vertices[0]), info->userdata); + if (vertices == 0) + return 0; + + next_move = 0; + flagcount=0; + + // in first pass, we load uninterpreted data into the allocated array + // above, shifted to the end of the array so we won't overwrite it when + // we create our final data starting from the front + + off = m - n; // starting offset for uninterpreted data, regardless of how m ends up being calculated + + // first load flags + + for (i=0; i < n; ++i) { + if (flagcount == 0) { + flags = *points++; + if (flags & 8) + flagcount = *points++; + } else + --flagcount; + vertices[off+i].type = flags; + } + + // now load x coordinates + x=0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + if (flags & 2) { + stbtt_int16 dx = *points++; + x += (flags & 16) ? dx : -dx; // ??? + } else { + if (!(flags & 16)) { + x = x + (stbtt_int16) (points[0]*256 + points[1]); + points += 2; + } + } + vertices[off+i].x = (stbtt_int16) x; + } + + // now load y coordinates + y=0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + if (flags & 4) { + stbtt_int16 dy = *points++; + y += (flags & 32) ? dy : -dy; // ??? + } else { + if (!(flags & 32)) { + y = y + (stbtt_int16) (points[0]*256 + points[1]); + points += 2; + } + } + vertices[off+i].y = (stbtt_int16) y; + } + + // now convert them to our format + num_vertices=0; + sx = sy = cx = cy = scx = scy = 0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + x = (stbtt_int16) vertices[off+i].x; + y = (stbtt_int16) vertices[off+i].y; + + if (next_move == i) { + if (i != 0) + num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); + + // now start the new one + start_off = !(flags & 1); + if (start_off) { + // if we start off with an off-curve point, then when we need to find a point on the curve + // where we can start, and we need to save some state for when we wraparound. + scx = x; + scy = y; + if (!(vertices[off+i+1].type & 1)) { + // next point is also a curve point, so interpolate an on-point curve + sx = (x + (stbtt_int32) vertices[off+i+1].x) >> 1; + sy = (y + (stbtt_int32) vertices[off+i+1].y) >> 1; + } else { + // otherwise just use the next point as our start point + sx = (stbtt_int32) vertices[off+i+1].x; + sy = (stbtt_int32) vertices[off+i+1].y; + ++i; // we're using point i+1 as the starting point, so skip it + } + } else { + sx = x; + sy = y; + } + stbtt_setvertex(&vertices[num_vertices++], STBTT_vmove,sx,sy,0,0); + was_off = 0; + next_move = 1 + ttUSHORT(endPtsOfContours+j*2); + ++j; + } else { + if (!(flags & 1)) { // if it's a curve + if (was_off) // two off-curve control points in a row means interpolate an on-curve midpoint + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+x)>>1, (cy+y)>>1, cx, cy); + cx = x; + cy = y; + was_off = 1; + } else { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, x,y, cx, cy); + else + stbtt_setvertex(&vertices[num_vertices++], STBTT_vline, x,y,0,0); + was_off = 0; + } + } + } + num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); + } else if (numberOfContours < 0) { + // Compound shapes. + int more = 1; + stbtt_uint8 *comp = data + g + 10; + num_vertices = 0; + vertices = 0; + while (more) { + stbtt_uint16 flags, gidx; + int comp_num_verts = 0, i; + stbtt_vertex *comp_verts = 0, *tmp = 0; + float mtx[6] = {1,0,0,1,0,0}, m, n; + + flags = ttSHORT(comp); comp+=2; + gidx = ttSHORT(comp); comp+=2; + + if (flags & 2) { // XY values + if (flags & 1) { // shorts + mtx[4] = ttSHORT(comp); comp+=2; + mtx[5] = ttSHORT(comp); comp+=2; + } else { + mtx[4] = ttCHAR(comp); comp+=1; + mtx[5] = ttCHAR(comp); comp+=1; + } + } + else { + // @TODO handle matching point + STBTT_assert(0); + } + if (flags & (1<<3)) { // WE_HAVE_A_SCALE + mtx[0] = mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = mtx[2] = 0; + } else if (flags & (1<<6)) { // WE_HAVE_AN_X_AND_YSCALE + mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = mtx[2] = 0; + mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + } else if (flags & (1<<7)) { // WE_HAVE_A_TWO_BY_TWO + mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[2] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + } + + // Find transformation scales. + m = (float) STBTT_sqrt(mtx[0]*mtx[0] + mtx[1]*mtx[1]); + n = (float) STBTT_sqrt(mtx[2]*mtx[2] + mtx[3]*mtx[3]); + + // Get indexed glyph. + comp_num_verts = stbtt_GetGlyphShape(info, gidx, &comp_verts); + if (comp_num_verts > 0) { + // Transform vertices. + for (i = 0; i < comp_num_verts; ++i) { + stbtt_vertex* v = &comp_verts[i]; + stbtt_vertex_type x,y; + x=v->x; y=v->y; + v->x = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); + v->y = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); + x=v->cx; y=v->cy; + v->cx = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); + v->cy = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); + } + // Append vertices. + tmp = (stbtt_vertex*)STBTT_malloc((num_vertices+comp_num_verts)*sizeof(stbtt_vertex), info->userdata); + if (!tmp) { + if (vertices) STBTT_free(vertices, info->userdata); + if (comp_verts) STBTT_free(comp_verts, info->userdata); + return 0; + } + if (num_vertices > 0 && vertices) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); + STBTT_memcpy(tmp+num_vertices, comp_verts, comp_num_verts*sizeof(stbtt_vertex)); + if (vertices) STBTT_free(vertices, info->userdata); + vertices = tmp; + STBTT_free(comp_verts, info->userdata); + num_vertices += comp_num_verts; + } + // More components ? + more = flags & (1<<5); + } + } else { + // numberOfCounters == 0, do nothing + } + + *pvertices = vertices; + return num_vertices; +} + +typedef struct +{ + int bounds; + int started; + float first_x, first_y; + float x, y; + stbtt_int32 min_x, max_x, min_y, max_y; + + stbtt_vertex *pvertices; + int num_vertices; +} stbtt__csctx; + +#define STBTT__CSCTX_INIT(bounds) {bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0} + +static void stbtt__track_vertex(stbtt__csctx *c, stbtt_int32 x, stbtt_int32 y) +{ + if (x > c->max_x || !c->started) c->max_x = x; + if (y > c->max_y || !c->started) c->max_y = y; + if (x < c->min_x || !c->started) c->min_x = x; + if (y < c->min_y || !c->started) c->min_y = y; + c->started = 1; +} + +static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1) +{ + if (c->bounds) { + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + } else { + stbtt_setvertex(&c->pvertices[c->num_vertices], type, x, y, cx, cy); + c->pvertices[c->num_vertices].cx1 = (stbtt_int16) cx1; + c->pvertices[c->num_vertices].cy1 = (stbtt_int16) cy1; + } + c->num_vertices++; +} + +static void stbtt__csctx_close_shape(stbtt__csctx *ctx) +{ + if (ctx->first_x != ctx->x || ctx->first_y != ctx->y) + stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->first_x, (int)ctx->first_y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rmove_to(stbtt__csctx *ctx, float dx, float dy) +{ + stbtt__csctx_close_shape(ctx); + ctx->first_x = ctx->x = ctx->x + dx; + ctx->first_y = ctx->y = ctx->y + dy; + stbtt__csctx_v(ctx, STBTT_vmove, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rline_to(stbtt__csctx *ctx, float dx, float dy) +{ + ctx->x += dx; + ctx->y += dy; + stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3) +{ + float cx1 = ctx->x + dx1; + float cy1 = ctx->y + dy1; + float cx2 = cx1 + dx2; + float cy2 = cy1 + dy2; + ctx->x = cx2 + dx3; + ctx->y = cy2 + dy3; + stbtt__csctx_v(ctx, STBTT_vcubic, (int)ctx->x, (int)ctx->y, (int)cx1, (int)cy1, (int)cx2, (int)cy2); +} + +static stbtt__buf stbtt__get_subr(stbtt__buf idx, int n) +{ + int count = stbtt__cff_index_count(&idx); + int bias = 107; + if (count >= 33900) + bias = 32768; + else if (count >= 1240) + bias = 1131; + n += bias; + if (n < 0 || n >= count) + return stbtt__new_buf(NULL, 0); + return stbtt__cff_index_get(idx, n); +} + +static stbtt__buf stbtt__cid_get_glyph_subrs(const stbtt_fontinfo *info, int glyph_index) +{ + stbtt__buf fdselect = info->fdselect; + int nranges, start, end, v, fmt, fdselector = -1, i; + + stbtt__buf_seek(&fdselect, 0); + fmt = stbtt__buf_get8(&fdselect); + if (fmt == 0) { + // untested + stbtt__buf_skip(&fdselect, glyph_index); + fdselector = stbtt__buf_get8(&fdselect); + } else if (fmt == 3) { + nranges = stbtt__buf_get16(&fdselect); + start = stbtt__buf_get16(&fdselect); + for (i = 0; i < nranges; i++) { + v = stbtt__buf_get8(&fdselect); + end = stbtt__buf_get16(&fdselect); + if (glyph_index >= start && glyph_index < end) { + fdselector = v; + break; + } + start = end; + } + } + if (fdselector == -1) return stbtt__new_buf(NULL, 0); // [DEAR IMGUI] fixed, see #6007 and nothings/stb#1422 + return stbtt__get_subrs(info->cff, stbtt__cff_index_get(info->fontdicts, fdselector)); +} + +static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c) +{ + int in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0; + int has_subrs = 0, clear_stack; + float s[48]; + stbtt__buf subr_stack[10], subrs = info->subrs, b; + float f; + +#define STBTT__CSERR(s) (0) + + // this currently ignores the initial width value, which isn't needed if we have hmtx + b = stbtt__cff_index_get(info->charstrings, glyph_index); + while (b.cursor < b.size) { + i = 0; + clear_stack = 1; + b0 = stbtt__buf_get8(&b); + switch (b0) { + // @TODO implement hinting + case 0x13: // hintmask + case 0x14: // cntrmask + if (in_header) + maskbits += (sp / 2); // implicit "vstem" + in_header = 0; + stbtt__buf_skip(&b, (maskbits + 7) / 8); + break; + + case 0x01: // hstem + case 0x03: // vstem + case 0x12: // hstemhm + case 0x17: // vstemhm + maskbits += (sp / 2); + break; + + case 0x15: // rmoveto + in_header = 0; + if (sp < 2) return STBTT__CSERR("rmoveto stack"); + stbtt__csctx_rmove_to(c, s[sp-2], s[sp-1]); + break; + case 0x04: // vmoveto + in_header = 0; + if (sp < 1) return STBTT__CSERR("vmoveto stack"); + stbtt__csctx_rmove_to(c, 0, s[sp-1]); + break; + case 0x16: // hmoveto + in_header = 0; + if (sp < 1) return STBTT__CSERR("hmoveto stack"); + stbtt__csctx_rmove_to(c, s[sp-1], 0); + break; + + case 0x05: // rlineto + if (sp < 2) return STBTT__CSERR("rlineto stack"); + for (; i + 1 < sp; i += 2) + stbtt__csctx_rline_to(c, s[i], s[i+1]); + break; + + // hlineto/vlineto and vhcurveto/hvcurveto alternate horizontal and vertical + // starting from a different place. + + case 0x07: // vlineto + if (sp < 1) return STBTT__CSERR("vlineto stack"); + goto vlineto; + case 0x06: // hlineto + if (sp < 1) return STBTT__CSERR("hlineto stack"); + for (;;) { + if (i >= sp) break; + stbtt__csctx_rline_to(c, s[i], 0); + i++; + vlineto: + if (i >= sp) break; + stbtt__csctx_rline_to(c, 0, s[i]); + i++; + } + break; + + case 0x1F: // hvcurveto + if (sp < 4) return STBTT__CSERR("hvcurveto stack"); + goto hvcurveto; + case 0x1E: // vhcurveto + if (sp < 4) return STBTT__CSERR("vhcurveto stack"); + for (;;) { + if (i + 3 >= sp) break; + stbtt__csctx_rccurve_to(c, 0, s[i], s[i+1], s[i+2], s[i+3], (sp - i == 5) ? s[i + 4] : 0.0f); + i += 4; + hvcurveto: + if (i + 3 >= sp) break; + stbtt__csctx_rccurve_to(c, s[i], 0, s[i+1], s[i+2], (sp - i == 5) ? s[i+4] : 0.0f, s[i+3]); + i += 4; + } + break; + + case 0x08: // rrcurveto + if (sp < 6) return STBTT__CSERR("rcurveline stack"); + for (; i + 5 < sp; i += 6) + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + break; + + case 0x18: // rcurveline + if (sp < 8) return STBTT__CSERR("rcurveline stack"); + for (; i + 5 < sp - 2; i += 6) + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + if (i + 1 >= sp) return STBTT__CSERR("rcurveline stack"); + stbtt__csctx_rline_to(c, s[i], s[i+1]); + break; + + case 0x19: // rlinecurve + if (sp < 8) return STBTT__CSERR("rlinecurve stack"); + for (; i + 1 < sp - 6; i += 2) + stbtt__csctx_rline_to(c, s[i], s[i+1]); + if (i + 5 >= sp) return STBTT__CSERR("rlinecurve stack"); + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + break; + + case 0x1A: // vvcurveto + case 0x1B: // hhcurveto + if (sp < 4) return STBTT__CSERR("(vv|hh)curveto stack"); + f = 0.0; + if (sp & 1) { f = s[i]; i++; } + for (; i + 3 < sp; i += 4) { + if (b0 == 0x1B) + stbtt__csctx_rccurve_to(c, s[i], f, s[i+1], s[i+2], s[i+3], 0.0); + else + stbtt__csctx_rccurve_to(c, f, s[i], s[i+1], s[i+2], 0.0, s[i+3]); + f = 0.0; + } + break; + + case 0x0A: // callsubr + if (!has_subrs) { + if (info->fdselect.size) + subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); + has_subrs = 1; + } + // FALLTHROUGH + case 0x1D: // callgsubr + if (sp < 1) return STBTT__CSERR("call(g|)subr stack"); + v = (int) s[--sp]; + if (subr_stack_height >= 10) return STBTT__CSERR("recursion limit"); + subr_stack[subr_stack_height++] = b; + b = stbtt__get_subr(b0 == 0x0A ? subrs : info->gsubrs, v); + if (b.size == 0) return STBTT__CSERR("subr not found"); + b.cursor = 0; + clear_stack = 0; + break; + + case 0x0B: // return + if (subr_stack_height <= 0) return STBTT__CSERR("return outside subr"); + b = subr_stack[--subr_stack_height]; + clear_stack = 0; + break; + + case 0x0E: // endchar + stbtt__csctx_close_shape(c); + return 1; + + case 0x0C: { // two-byte escape + float dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6; + float dx, dy; + int b1 = stbtt__buf_get8(&b); + switch (b1) { + // @TODO These "flex" implementations ignore the flex-depth and resolution, + // and always draw beziers. + case 0x22: // hflex + if (sp < 7) return STBTT__CSERR("hflex stack"); + dx1 = s[0]; + dx2 = s[1]; + dy2 = s[2]; + dx3 = s[3]; + dx4 = s[4]; + dx5 = s[5]; + dx6 = s[6]; + stbtt__csctx_rccurve_to(c, dx1, 0, dx2, dy2, dx3, 0); + stbtt__csctx_rccurve_to(c, dx4, 0, dx5, -dy2, dx6, 0); + break; + + case 0x23: // flex + if (sp < 13) return STBTT__CSERR("flex stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dy3 = s[5]; + dx4 = s[6]; + dy4 = s[7]; + dx5 = s[8]; + dy5 = s[9]; + dx6 = s[10]; + dy6 = s[11]; + //fd is s[12] + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); + stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); + break; + + case 0x24: // hflex1 + if (sp < 9) return STBTT__CSERR("hflex1 stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dx4 = s[5]; + dx5 = s[6]; + dy5 = s[7]; + dx6 = s[8]; + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, 0); + stbtt__csctx_rccurve_to(c, dx4, 0, dx5, dy5, dx6, -(dy1+dy2+dy5)); + break; + + case 0x25: // flex1 + if (sp < 11) return STBTT__CSERR("flex1 stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dy3 = s[5]; + dx4 = s[6]; + dy4 = s[7]; + dx5 = s[8]; + dy5 = s[9]; + dx6 = dy6 = s[10]; + dx = dx1+dx2+dx3+dx4+dx5; + dy = dy1+dy2+dy3+dy4+dy5; + if (STBTT_fabs(dx) > STBTT_fabs(dy)) + dy6 = -dy; + else + dx6 = -dx; + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); + stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); + break; + + default: + return STBTT__CSERR("unimplemented"); + } + } break; + + default: + if (b0 != 255 && b0 != 28 && b0 < 32) + return STBTT__CSERR("reserved operator"); + + // push immediate + if (b0 == 255) { + f = (float)(stbtt_int32)stbtt__buf_get32(&b) / 0x10000; + } else { + stbtt__buf_skip(&b, -1); + f = (float)(stbtt_int16)stbtt__cff_int(&b); + } + if (sp >= 48) return STBTT__CSERR("push stack overflow"); + s[sp++] = f; + clear_stack = 0; + break; + } + if (clear_stack) sp = 0; + } + return STBTT__CSERR("no endchar"); + +#undef STBTT__CSERR +} + +static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + // runs the charstring twice, once to count and once to output (to avoid realloc) + stbtt__csctx count_ctx = STBTT__CSCTX_INIT(1); + stbtt__csctx output_ctx = STBTT__CSCTX_INIT(0); + if (stbtt__run_charstring(info, glyph_index, &count_ctx)) { + *pvertices = (stbtt_vertex*)STBTT_malloc(count_ctx.num_vertices*sizeof(stbtt_vertex), info->userdata); + output_ctx.pvertices = *pvertices; + if (stbtt__run_charstring(info, glyph_index, &output_ctx)) { + STBTT_assert(output_ctx.num_vertices == count_ctx.num_vertices); + return output_ctx.num_vertices; + } + } + *pvertices = NULL; + return 0; +} + +static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) +{ + stbtt__csctx c = STBTT__CSCTX_INIT(1); + int r = stbtt__run_charstring(info, glyph_index, &c); + if (x0) *x0 = r ? c.min_x : 0; + if (y0) *y0 = r ? c.min_y : 0; + if (x1) *x1 = r ? c.max_x : 0; + if (y1) *y1 = r ? c.max_y : 0; + return r ? c.num_vertices : 0; +} + +STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + if (!info->cff.size) + return stbtt__GetGlyphShapeTT(info, glyph_index, pvertices); + else + return stbtt__GetGlyphShapeT2(info, glyph_index, pvertices); +} + +STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing) +{ + stbtt_uint16 numOfLongHorMetrics = ttUSHORT(info->data+info->hhea + 34); + if (glyph_index < numOfLongHorMetrics) { + if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*glyph_index); + if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*glyph_index + 2); + } else { + if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*(numOfLongHorMetrics-1)); + if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*numOfLongHorMetrics + 2*(glyph_index - numOfLongHorMetrics)); + } +} + +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info) +{ + stbtt_uint8 *data = info->data + info->kern; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + return ttUSHORT(data+10); +} + +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length) +{ + stbtt_uint8 *data = info->data + info->kern; + int k, length; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + length = ttUSHORT(data+10); + if (table_length < length) + length = table_length; + + for (k = 0; k < length; k++) + { + table[k].glyph1 = ttUSHORT(data+18+(k*6)); + table[k].glyph2 = ttUSHORT(data+20+(k*6)); + table[k].advance = ttSHORT(data+22+(k*6)); + } + + return length; +} + +static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint8 *data = info->data + info->kern; + stbtt_uint32 needle, straw; + int l, r, m; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + l = 0; + r = ttUSHORT(data+10) - 1; + needle = glyph1 << 16 | glyph2; + while (l <= r) { + m = (l + r) >> 1; + straw = ttULONG(data+18+(m*6)); // note: unaligned read + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else + return ttSHORT(data+22+(m*6)); + } + return 0; +} + +static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph) +{ + stbtt_uint16 coverageFormat = ttUSHORT(coverageTable); + switch (coverageFormat) { + case 1: { + stbtt_uint16 glyphCount = ttUSHORT(coverageTable + 2); + + // Binary search. + stbtt_int32 l=0, r=glyphCount-1, m; + int straw, needle=glyph; + while (l <= r) { + stbtt_uint8 *glyphArray = coverageTable + 4; + stbtt_uint16 glyphID; + m = (l + r) >> 1; + glyphID = ttUSHORT(glyphArray + 2 * m); + straw = glyphID; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + return m; + } + } + break; + } + + case 2: { + stbtt_uint16 rangeCount = ttUSHORT(coverageTable + 2); + stbtt_uint8 *rangeArray = coverageTable + 4; + + // Binary search. + stbtt_int32 l=0, r=rangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *rangeRecord; + m = (l + r) >> 1; + rangeRecord = rangeArray + 6 * m; + strawStart = ttUSHORT(rangeRecord); + strawEnd = ttUSHORT(rangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else { + stbtt_uint16 startCoverageIndex = ttUSHORT(rangeRecord + 4); + return startCoverageIndex + glyph - strawStart; + } + } + break; + } + + default: return -1; // unsupported + } + + return -1; +} + +static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph) +{ + stbtt_uint16 classDefFormat = ttUSHORT(classDefTable); + switch (classDefFormat) + { + case 1: { + stbtt_uint16 startGlyphID = ttUSHORT(classDefTable + 2); + stbtt_uint16 glyphCount = ttUSHORT(classDefTable + 4); + stbtt_uint8 *classDef1ValueArray = classDefTable + 6; + + if (glyph >= startGlyphID && glyph < startGlyphID + glyphCount) + return (stbtt_int32)ttUSHORT(classDef1ValueArray + 2 * (glyph - startGlyphID)); + break; + } + + case 2: { + stbtt_uint16 classRangeCount = ttUSHORT(classDefTable + 2); + stbtt_uint8 *classRangeRecords = classDefTable + 4; + + // Binary search. + stbtt_int32 l=0, r=classRangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *classRangeRecord; + m = (l + r) >> 1; + classRangeRecord = classRangeRecords + 6 * m; + strawStart = ttUSHORT(classRangeRecord); + strawEnd = ttUSHORT(classRangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else + return (stbtt_int32)ttUSHORT(classRangeRecord + 4); + } + break; + } + + default: + return -1; // Unsupported definition type, return an error. + } + + // "All glyphs not assigned to a class fall into class 0". (OpenType spec) + return 0; +} + +// Define to STBTT_assert(x) if you want to break on unimplemented formats. +#define STBTT_GPOS_TODO_assert(x) + +static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint16 lookupListOffset; + stbtt_uint8 *lookupList; + stbtt_uint16 lookupCount; + stbtt_uint8 *data; + stbtt_int32 i, sti; + + if (!info->gpos) return 0; + + data = info->data + info->gpos; + + if (ttUSHORT(data+0) != 1) return 0; // Major version 1 + if (ttUSHORT(data+2) != 0) return 0; // Minor version 0 + + lookupListOffset = ttUSHORT(data+8); + lookupList = data + lookupListOffset; + lookupCount = ttUSHORT(lookupList); + + for (i=0; i= pairSetCount) return 0; + + needle=glyph2; + r=pairValueCount-1; + l=0; + + // Binary search. + while (l <= r) { + stbtt_uint16 secondGlyph; + stbtt_uint8 *pairValue; + m = (l + r) >> 1; + pairValue = pairValueArray + (2 + valueRecordPairSizeInBytes) * m; + secondGlyph = ttUSHORT(pairValue); + straw = secondGlyph; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + stbtt_int16 xAdvance = ttSHORT(pairValue + 2); + return xAdvance; + } + } + } else + return 0; + break; + } + + case 2: { + stbtt_uint16 valueFormat1 = ttUSHORT(table + 4); + stbtt_uint16 valueFormat2 = ttUSHORT(table + 6); + if (valueFormat1 == 4 && valueFormat2 == 0) { // Support more formats? + stbtt_uint16 classDef1Offset = ttUSHORT(table + 8); + stbtt_uint16 classDef2Offset = ttUSHORT(table + 10); + int glyph1class = stbtt__GetGlyphClass(table + classDef1Offset, glyph1); + int glyph2class = stbtt__GetGlyphClass(table + classDef2Offset, glyph2); + + stbtt_uint16 class1Count = ttUSHORT(table + 12); + stbtt_uint16 class2Count = ttUSHORT(table + 14); + stbtt_uint8 *class1Records, *class2Records; + stbtt_int16 xAdvance; + + if (glyph1class < 0 || glyph1class >= class1Count) return 0; // malformed + if (glyph2class < 0 || glyph2class >= class2Count) return 0; // malformed + + class1Records = table + 16; + class2Records = class1Records + 2 * (glyph1class * class2Count); + xAdvance = ttSHORT(class2Records + 2 * glyph2class); + return xAdvance; + } else + return 0; + break; + } + + default: + return 0; // Unsupported position format + } + } + } + + return 0; +} + +STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2) +{ + int xAdvance = 0; + + if (info->gpos) + xAdvance += stbtt__GetGlyphGPOSInfoAdvance(info, g1, g2); + else if (info->kern) + xAdvance += stbtt__GetGlyphKernInfoAdvance(info, g1, g2); + + return xAdvance; +} + +STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2) +{ + if (!info->kern && !info->gpos) // if no kerning table, don't waste time looking up both codepoint->glyphs + return 0; + return stbtt_GetGlyphKernAdvance(info, stbtt_FindGlyphIndex(info,ch1), stbtt_FindGlyphIndex(info,ch2)); +} + +STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing) +{ + stbtt_GetGlyphHMetrics(info, stbtt_FindGlyphIndex(info,codepoint), advanceWidth, leftSideBearing); +} + +STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap) +{ + if (ascent ) *ascent = ttSHORT(info->data+info->hhea + 4); + if (descent) *descent = ttSHORT(info->data+info->hhea + 6); + if (lineGap) *lineGap = ttSHORT(info->data+info->hhea + 8); +} + +STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap) +{ + int tab = stbtt__find_table(info->data, info->fontstart, "OS/2"); + if (!tab) + return 0; + if (typoAscent ) *typoAscent = ttSHORT(info->data+tab + 68); + if (typoDescent) *typoDescent = ttSHORT(info->data+tab + 70); + if (typoLineGap) *typoLineGap = ttSHORT(info->data+tab + 72); + return 1; +} + +STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1) +{ + *x0 = ttSHORT(info->data + info->head + 36); + *y0 = ttSHORT(info->data + info->head + 38); + *x1 = ttSHORT(info->data + info->head + 40); + *y1 = ttSHORT(info->data + info->head + 42); +} + +STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float height) +{ + int fheight = ttSHORT(info->data + info->hhea + 4) - ttSHORT(info->data + info->hhea + 6); + return (float) height / fheight; +} + +STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels) +{ + int unitsPerEm = ttUSHORT(info->data + info->head + 18); + return pixels / unitsPerEm; +} + +STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v) +{ + STBTT_free(v, info->userdata); +} + +STBTT_DEF stbtt_uint8 *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl) +{ + int i; + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc_list = data + stbtt__get_svg((stbtt_fontinfo *) info); + + int numEntries = ttUSHORT(svg_doc_list); + stbtt_uint8 *svg_docs = svg_doc_list + 2; + + for(i=0; i= ttUSHORT(svg_doc)) && (gl <= ttUSHORT(svg_doc + 2))) + return svg_doc; + } + return 0; +} + +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg) +{ + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc; + + if (info->svg == 0) + return 0; + + svg_doc = stbtt_FindSVGDoc(info, gl); + if (svg_doc != NULL) { + *svg = (char *) data + info->svg + ttULONG(svg_doc + 4); + return ttULONG(svg_doc + 8); + } else { + return 0; + } +} + +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg) +{ + return stbtt_GetGlyphSVG(info, stbtt_FindGlyphIndex(info, unicode_codepoint), svg); +} + +////////////////////////////////////////////////////////////////////////////// +// +// antialiasing software rasterizer +// + +STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + int x0=0,y0=0,x1,y1; // =0 suppresses compiler warning + if (!stbtt_GetGlyphBox(font, glyph, &x0,&y0,&x1,&y1)) { + // e.g. space character + if (ix0) *ix0 = 0; + if (iy0) *iy0 = 0; + if (ix1) *ix1 = 0; + if (iy1) *iy1 = 0; + } else { + // move to integral bboxes (treating pixels as little squares, what pixels get touched)? + if (ix0) *ix0 = STBTT_ifloor( x0 * scale_x + shift_x); + if (iy0) *iy0 = STBTT_ifloor(-y1 * scale_y + shift_y); + if (ix1) *ix1 = STBTT_iceil ( x1 * scale_x + shift_x); + if (iy1) *iy1 = STBTT_iceil (-y0 * scale_y + shift_y); + } +} + +STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y,0.0f,0.0f, ix0, iy0, ix1, iy1); +} + +STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font,codepoint), scale_x, scale_y,shift_x,shift_y, ix0,iy0,ix1,iy1); +} + +STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y,0.0f,0.0f, ix0,iy0,ix1,iy1); +} + +////////////////////////////////////////////////////////////////////////////// +// +// Rasterizer + +typedef struct stbtt__hheap_chunk +{ + struct stbtt__hheap_chunk *next; +} stbtt__hheap_chunk; + +typedef struct stbtt__hheap +{ + struct stbtt__hheap_chunk *head; + void *first_free; + int num_remaining_in_head_chunk; +} stbtt__hheap; + +static void *stbtt__hheap_alloc(stbtt__hheap *hh, size_t size, void *userdata) +{ + if (hh->first_free) { + void *p = hh->first_free; + hh->first_free = * (void **) p; + return p; + } else { + if (hh->num_remaining_in_head_chunk == 0) { + int count = (size < 32 ? 2000 : size < 128 ? 800 : 100); + stbtt__hheap_chunk *c = (stbtt__hheap_chunk *) STBTT_malloc(sizeof(stbtt__hheap_chunk) + size * count, userdata); + if (c == NULL) + return NULL; + c->next = hh->head; + hh->head = c; + hh->num_remaining_in_head_chunk = count; + } + --hh->num_remaining_in_head_chunk; + return (char *) (hh->head) + sizeof(stbtt__hheap_chunk) + size * hh->num_remaining_in_head_chunk; + } +} + +static void stbtt__hheap_free(stbtt__hheap *hh, void *p) +{ + *(void **) p = hh->first_free; + hh->first_free = p; +} + +static void stbtt__hheap_cleanup(stbtt__hheap *hh, void *userdata) +{ + stbtt__hheap_chunk *c = hh->head; + while (c) { + stbtt__hheap_chunk *n = c->next; + STBTT_free(c, userdata); + c = n; + } +} + +typedef struct stbtt__edge { + float x0,y0, x1,y1; + int invert; +} stbtt__edge; + + +typedef struct stbtt__active_edge +{ + struct stbtt__active_edge *next; + #if STBTT_RASTERIZER_VERSION==1 + int x,dx; + float ey; + int direction; + #elif STBTT_RASTERIZER_VERSION==2 + float fx,fdx,fdy; + float direction; + float sy; + float ey; + #else + #error "Unrecognized value of STBTT_RASTERIZER_VERSION" + #endif +} stbtt__active_edge; + +#if STBTT_RASTERIZER_VERSION == 1 +#define STBTT_FIXSHIFT 10 +#define STBTT_FIX (1 << STBTT_FIXSHIFT) +#define STBTT_FIXMASK (STBTT_FIX-1) + +static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) +{ + stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); + float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); + STBTT_assert(z != NULL); + if (!z) return z; + + // round dx down to avoid overshooting + if (dxdy < 0) + z->dx = -STBTT_ifloor(STBTT_FIX * -dxdy); + else + z->dx = STBTT_ifloor(STBTT_FIX * dxdy); + + z->x = STBTT_ifloor(STBTT_FIX * e->x0 + z->dx * (start_point - e->y0)); // use z->dx so when we offset later it's by the same amount + z->x -= off_x * STBTT_FIX; + + z->ey = e->y1; + z->next = 0; + z->direction = e->invert ? 1 : -1; + return z; +} +#elif STBTT_RASTERIZER_VERSION == 2 +static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) +{ + stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); + float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); + STBTT_assert(z != NULL); + //STBTT_assert(e->y0 <= start_point); + if (!z) return z; + z->fdx = dxdy; + z->fdy = dxdy != 0.0f ? (1.0f/dxdy) : 0.0f; + z->fx = e->x0 + dxdy * (start_point - e->y0); + z->fx -= off_x; + z->direction = e->invert ? 1.0f : -1.0f; + z->sy = e->y0; + z->ey = e->y1; + z->next = 0; + return z; +} +#else +#error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + +#if STBTT_RASTERIZER_VERSION == 1 +// note: this routine clips fills that extend off the edges... ideally this +// wouldn't happen, but it could happen if the truetype glyph bounding boxes +// are wrong, or if the user supplies a too-small bitmap +static void stbtt__fill_active_edges(unsigned char *scanline, int len, stbtt__active_edge *e, int max_weight) +{ + // non-zero winding fill + int x0=0, w=0; + + while (e) { + if (w == 0) { + // if we're currently at zero, we need to record the edge start point + x0 = e->x; w += e->direction; + } else { + int x1 = e->x; w += e->direction; + // if we went to zero, we need to draw + if (w == 0) { + int i = x0 >> STBTT_FIXSHIFT; + int j = x1 >> STBTT_FIXSHIFT; + + if (i < len && j >= 0) { + if (i == j) { + // x0,x1 are the same pixel, so compute combined coverage + scanline[i] = scanline[i] + (stbtt_uint8) ((x1 - x0) * max_weight >> STBTT_FIXSHIFT); + } else { + if (i >= 0) // add antialiasing for x0 + scanline[i] = scanline[i] + (stbtt_uint8) (((STBTT_FIX - (x0 & STBTT_FIXMASK)) * max_weight) >> STBTT_FIXSHIFT); + else + i = -1; // clip + + if (j < len) // add antialiasing for x1 + scanline[j] = scanline[j] + (stbtt_uint8) (((x1 & STBTT_FIXMASK) * max_weight) >> STBTT_FIXSHIFT); + else + j = len; // clip + + for (++i; i < j; ++i) // fill pixels between x0 and x1 + scanline[i] = scanline[i] + (stbtt_uint8) max_weight; + } + } + } + } + + e = e->next; + } +} + +static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) +{ + stbtt__hheap hh = { 0, 0, 0 }; + stbtt__active_edge *active = NULL; + int y,j=0; + int max_weight = (255 / vsubsample); // weight per vertical scanline + int s; // vertical subsample index + unsigned char scanline_data[512], *scanline; + + if (result->w > 512) + scanline = (unsigned char *) STBTT_malloc(result->w, userdata); + else + scanline = scanline_data; + + y = off_y * vsubsample; + e[n].y0 = (off_y + result->h) * (float) vsubsample + 1; + + while (j < result->h) { + STBTT_memset(scanline, 0, result->w); + for (s=0; s < vsubsample; ++s) { + // find center of pixel for this scanline + float scan_y = y + 0.5f; + stbtt__active_edge **step = &active; + + // update all active edges; + // remove all active edges that terminate before the center of this scanline + while (*step) { + stbtt__active_edge * z = *step; + if (z->ey <= scan_y) { + *step = z->next; // delete from list + STBTT_assert(z->direction); + z->direction = 0; + stbtt__hheap_free(&hh, z); + } else { + z->x += z->dx; // advance to position for current scanline + step = &((*step)->next); // advance through list + } + } + + // resort the list if needed + for(;;) { + int changed=0; + step = &active; + while (*step && (*step)->next) { + if ((*step)->x > (*step)->next->x) { + stbtt__active_edge *t = *step; + stbtt__active_edge *q = t->next; + + t->next = q->next; + q->next = t; + *step = q; + changed = 1; + } + step = &(*step)->next; + } + if (!changed) break; + } + + // insert all edges that start before the center of this scanline -- omit ones that also end on this scanline + while (e->y0 <= scan_y) { + if (e->y1 > scan_y) { + stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y, userdata); + if (z != NULL) { + // find insertion point + if (active == NULL) + active = z; + else if (z->x < active->x) { + // insert at front + z->next = active; + active = z; + } else { + // find thing to insert AFTER + stbtt__active_edge *p = active; + while (p->next && p->next->x < z->x) + p = p->next; + // at this point, p->next->x is NOT < z->x + z->next = p->next; + p->next = z; + } + } + } + ++e; + } + + // now process all active edges in XOR fashion + if (active) + stbtt__fill_active_edges(scanline, result->w, active, max_weight); + + ++y; + } + STBTT_memcpy(result->pixels + j * result->stride, scanline, result->w); + ++j; + } + + stbtt__hheap_cleanup(&hh, userdata); + + if (scanline != scanline_data) + STBTT_free(scanline, userdata); +} + +#elif STBTT_RASTERIZER_VERSION == 2 + +// the edge passed in here does not cross the vertical line at x or the vertical line at x+1 +// (i.e. it has already been clipped to those) +static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, float y0, float x1, float y1) +{ + if (y0 == y1) return; + STBTT_assert(y0 < y1); + STBTT_assert(e->sy <= e->ey); + if (y0 > e->ey) return; + if (y1 < e->sy) return; + if (y0 < e->sy) { + x0 += (x1-x0) * (e->sy - y0) / (y1-y0); + y0 = e->sy; + } + if (y1 > e->ey) { + x1 += (x1-x0) * (e->ey - y1) / (y1-y0); + y1 = e->ey; + } + + if (x0 == x) + STBTT_assert(x1 <= x+1); + else if (x0 == x+1) + STBTT_assert(x1 >= x); + else if (x0 <= x) + STBTT_assert(x1 <= x); + else if (x0 >= x+1) + STBTT_assert(x1 >= x+1); + else + STBTT_assert(x1 >= x && x1 <= x+1); + + if (x0 <= x && x1 <= x) + scanline[x] += e->direction * (y1-y0); + else if (x0 >= x+1 && x1 >= x+1) + ; + else { + STBTT_assert(x0 >= x && x0 <= x+1 && x1 >= x && x1 <= x+1); + scanline[x] += e->direction * (y1-y0) * (1-((x0-x)+(x1-x))/2); // coverage = 1 - average x position + } +} + +static float stbtt__sized_trapezoid_area(float height, float top_width, float bottom_width) +{ + STBTT_assert(top_width >= 0); + STBTT_assert(bottom_width >= 0); + return (top_width + bottom_width) / 2.0f * height; +} + +static float stbtt__position_trapezoid_area(float height, float tx0, float tx1, float bx0, float bx1) +{ + return stbtt__sized_trapezoid_area(height, tx1 - tx0, bx1 - bx0); +} + +static float stbtt__sized_triangle_area(float height, float width) +{ + return height * width / 2; +} + +static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top) +{ + float y_bottom = y_top+1; + + while (e) { + // brute force every pixel + + // compute intersection points with top & bottom + STBTT_assert(e->ey >= y_top); + + if (e->fdx == 0) { + float x0 = e->fx; + if (x0 < len) { + if (x0 >= 0) { + stbtt__handle_clipped_edge(scanline,(int) x0,e, x0,y_top, x0,y_bottom); + stbtt__handle_clipped_edge(scanline_fill-1,(int) x0+1,e, x0,y_top, x0,y_bottom); + } else { + stbtt__handle_clipped_edge(scanline_fill-1,0,e, x0,y_top, x0,y_bottom); + } + } + } else { + float x0 = e->fx; + float dx = e->fdx; + float xb = x0 + dx; + float x_top, x_bottom; + float sy0,sy1; + float dy = e->fdy; + STBTT_assert(e->sy <= y_bottom && e->ey >= y_top); + + // compute endpoints of line segment clipped to this scanline (if the + // line segment starts on this scanline. x0 is the intersection of the + // line with y_top, but that may be off the line segment. + if (e->sy > y_top) { + x_top = x0 + dx * (e->sy - y_top); + sy0 = e->sy; + } else { + x_top = x0; + sy0 = y_top; + } + if (e->ey < y_bottom) { + x_bottom = x0 + dx * (e->ey - y_top); + sy1 = e->ey; + } else { + x_bottom = xb; + sy1 = y_bottom; + } + + if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { + // from here on, we don't have to range check x values + + if ((int) x_top == (int) x_bottom) { + float height; + // simple case, only spans one pixel + int x = (int) x_top; + height = (sy1 - sy0) * e->direction; + STBTT_assert(x >= 0 && x < len); + scanline[x] += stbtt__position_trapezoid_area(height, x_top, x+1.0f, x_bottom, x+1.0f); + scanline_fill[x] += height; // everything right of this pixel is filled + } else { + int x,x1,x2; + float y_crossing, y_final, step, sign, area; + // covers 2+ pixels + if (x_top > x_bottom) { + // flip scanline vertically; signed area is the same + float t; + sy0 = y_bottom - (sy0 - y_top); + sy1 = y_bottom - (sy1 - y_top); + t = sy0, sy0 = sy1, sy1 = t; + t = x_bottom, x_bottom = x_top, x_top = t; + dx = -dx; + dy = -dy; + t = x0, x0 = xb, xb = t; + } + STBTT_assert(dy >= 0); + STBTT_assert(dx >= 0); + + x1 = (int) x_top; + x2 = (int) x_bottom; + // compute intersection with y axis at x1+1 + y_crossing = y_top + dy * (x1+1 - x0); + + // compute intersection with y axis at x2 + y_final = y_top + dy * (x2 - x0); + + // x1 x_top x2 x_bottom + // y_top +------|-----+------------+------------+--------|---+------------+ + // | | | | | | + // | | | | | | + // sy0 | Txxxxx|............|............|............|............| + // y_crossing | *xxxxx.......|............|............|............| + // | | xxxxx..|............|............|............| + // | | /- xx*xxxx........|............|............| + // | | dy < | xxxxxx..|............|............| + // y_final | | \- | xx*xxx.........|............| + // sy1 | | | | xxxxxB...|............| + // | | | | | | + // | | | | | | + // y_bottom +------------+------------+------------+------------+------------+ + // + // goal is to measure the area covered by '.' in each pixel + + // if x2 is right at the right edge of x1, y_crossing can blow up, github #1057 + // @TODO: maybe test against sy1 rather than y_bottom? + if (y_crossing > y_bottom) + y_crossing = y_bottom; + + sign = e->direction; + + // area of the rectangle covered from sy0..y_crossing + area = sign * (y_crossing-sy0); + + // area of the triangle (x_top,sy0), (x1+1,sy0), (x1+1,y_crossing) + scanline[x1] += stbtt__sized_triangle_area(area, x1+1 - x_top); + + // check if final y_crossing is blown up; no test case for this + if (y_final > y_bottom) { + int denom = (x2 - (x1+1)); + y_final = y_bottom; + if (denom != 0) { // [DEAR IMGUI] Avoid div by zero (https://github.com/nothings/stb/issues/1316) + dy = (y_final - y_crossing ) / denom; // if denom=0, y_final = y_crossing, so y_final <= y_bottom + } + } + + // in second pixel, area covered by line segment found in first pixel + // is always a rectangle 1 wide * the height of that line segment; this + // is exactly what the variable 'area' stores. it also gets a contribution + // from the line segment within it. the THIRD pixel will get the first + // pixel's rectangle contribution, the second pixel's rectangle contribution, + // and its own contribution. the 'own contribution' is the same in every pixel except + // the leftmost and rightmost, a trapezoid that slides down in each pixel. + // the second pixel's contribution to the third pixel will be the + // rectangle 1 wide times the height change in the second pixel, which is dy. + + step = sign * dy * 1; // dy is dy/dx, change in y for every 1 change in x, + // which multiplied by 1-pixel-width is how much pixel area changes for each step in x + // so the area advances by 'step' every time + + for (x = x1+1; x < x2; ++x) { + scanline[x] += area + step/2; // area of trapezoid is 1*step/2 + area += step; + } + STBTT_assert(STBTT_fabs(area) <= 1.01f); // accumulated error from area += step unless we round step down + STBTT_assert(sy1 > y_final-0.01f); + + // area covered in the last pixel is the rectangle from all the pixels to the left, + // plus the trapezoid filled by the line segment in this pixel all the way to the right edge + scanline[x2] += area + sign * stbtt__position_trapezoid_area(sy1-y_final, (float) x2, x2+1.0f, x_bottom, x2+1.0f); + + // the rest of the line is filled based on the total height of the line segment in this pixel + scanline_fill[x2] += sign * (sy1-sy0); + } + } else { + // if edge goes outside of box we're drawing, we require + // clipping logic. since this does not match the intended use + // of this library, we use a different, very slow brute + // force implementation + // note though that this does happen some of the time because + // x_top and x_bottom can be extrapolated at the top & bottom of + // the shape and actually lie outside the bounding box + int x; + for (x=0; x < len; ++x) { + // cases: + // + // there can be up to two intersections with the pixel. any intersection + // with left or right edges can be handled by splitting into two (or three) + // regions. intersections with top & bottom do not necessitate case-wise logic. + // + // the old way of doing this found the intersections with the left & right edges, + // then used some simple logic to produce up to three segments in sorted order + // from top-to-bottom. however, this had a problem: if an x edge was epsilon + // across the x border, then the corresponding y position might not be distinct + // from the other y segment, and it might ignored as an empty segment. to avoid + // that, we need to explicitly produce segments based on x positions. + + // rename variables to clearly-defined pairs + float y0 = y_top; + float x1 = (float) (x); + float x2 = (float) (x+1); + float x3 = xb; + float y3 = y_bottom; + + // x = e->x + e->dx * (y-y_top) + // (y-y_top) = (x - e->x) / e->dx + // y = (x - e->x) / e->dx + y_top + float y1 = (x - x0) / dx + y_top; + float y2 = (x+1 - x0) / dx + y_top; + + if (x0 < x1 && x3 > x2) { // three segments descending down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else if (x3 < x1 && x0 > x2) { // three segments descending down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x0 < x1 && x3 > x1) { // two segments across x, down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x3 < x1 && x0 > x1) { // two segments across x, down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x0 < x2 && x3 > x2) { // two segments across x+1, down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else if (x3 < x2 && x0 > x2) { // two segments across x+1, down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else { // one segment + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x3,y3); + } + } + } + } + e = e->next; + } +} + +// directly AA rasterize edges w/o supersampling +static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) +{ + stbtt__hheap hh = { 0, 0, 0 }; + stbtt__active_edge *active = NULL; + int y,j=0, i; + float scanline_data[129], *scanline, *scanline2; + + STBTT__NOTUSED(vsubsample); + + if (result->w > 64) + scanline = (float *) STBTT_malloc((result->w*2+1) * sizeof(float), userdata); + else + scanline = scanline_data; + + scanline2 = scanline + result->w; + + y = off_y; + e[n].y0 = (float) (off_y + result->h) + 1; + + while (j < result->h) { + // find center of pixel for this scanline + float scan_y_top = y + 0.0f; + float scan_y_bottom = y + 1.0f; + stbtt__active_edge **step = &active; + + STBTT_memset(scanline , 0, result->w*sizeof(scanline[0])); + STBTT_memset(scanline2, 0, (result->w+1)*sizeof(scanline[0])); + + // update all active edges; + // remove all active edges that terminate before the top of this scanline + while (*step) { + stbtt__active_edge * z = *step; + if (z->ey <= scan_y_top) { + *step = z->next; // delete from list + STBTT_assert(z->direction); + z->direction = 0; + stbtt__hheap_free(&hh, z); + } else { + step = &((*step)->next); // advance through list + } + } + + // insert all edges that start before the bottom of this scanline + while (e->y0 <= scan_y_bottom) { + if (e->y0 != e->y1) { + stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y_top, userdata); + if (z != NULL) { + if (j == 0 && off_y != 0) { + if (z->ey < scan_y_top) { + // this can happen due to subpixel positioning and some kind of fp rounding error i think + z->ey = scan_y_top; + } + } + STBTT_assert(z->ey >= scan_y_top); // if we get really unlucky a tiny bit of an edge can be out of bounds + // insert at front + z->next = active; + active = z; + } + } + ++e; + } + + // now process all active edges + if (active) + stbtt__fill_active_edges_new(scanline, scanline2+1, result->w, active, scan_y_top); + + { + float sum = 0; + for (i=0; i < result->w; ++i) { + float k; + int m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = (float) STBTT_fabs(k)*255 + 0.5f; + m = (int) k; + if (m > 255) m = 255; + result->pixels[j*result->stride + i] = (unsigned char) m; + } + } + // advance all the edges + step = &active; + while (*step) { + stbtt__active_edge *z = *step; + z->fx += z->fdx; // advance to position for current scanline + step = &((*step)->next); // advance through list + } + + ++y; + ++j; + } + + stbtt__hheap_cleanup(&hh, userdata); + + if (scanline != scanline_data) + STBTT_free(scanline, userdata); +} +#else +#error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + +#define STBTT__COMPARE(a,b) ((a)->y0 < (b)->y0) + +static void stbtt__sort_edges_ins_sort(stbtt__edge *p, int n) +{ + int i,j; + for (i=1; i < n; ++i) { + stbtt__edge t = p[i], *a = &t; + j = i; + while (j > 0) { + stbtt__edge *b = &p[j-1]; + int c = STBTT__COMPARE(a,b); + if (!c) break; + p[j] = p[j-1]; + --j; + } + if (i != j) + p[j] = t; + } +} + +static void stbtt__sort_edges_quicksort(stbtt__edge *p, int n) +{ + /* threshold for transitioning to insertion sort */ + while (n > 12) { + stbtt__edge t; + int c01,c12,c,m,i,j; + + /* compute median of three */ + m = n >> 1; + c01 = STBTT__COMPARE(&p[0],&p[m]); + c12 = STBTT__COMPARE(&p[m],&p[n-1]); + /* if 0 >= mid >= end, or 0 < mid < end, then use mid */ + if (c01 != c12) { + /* otherwise, we'll need to swap something else to middle */ + int z; + c = STBTT__COMPARE(&p[0],&p[n-1]); + /* 0>mid && midn => n; 0 0 */ + /* 0n: 0>n => 0; 0 n */ + z = (c == c12) ? 0 : n-1; + t = p[z]; + p[z] = p[m]; + p[m] = t; + } + /* now p[m] is the median-of-three */ + /* swap it to the beginning so it won't move around */ + t = p[0]; + p[0] = p[m]; + p[m] = t; + + /* partition loop */ + i=1; + j=n-1; + for(;;) { + /* handling of equality is crucial here */ + /* for sentinels & efficiency with duplicates */ + for (;;++i) { + if (!STBTT__COMPARE(&p[i], &p[0])) break; + } + for (;;--j) { + if (!STBTT__COMPARE(&p[0], &p[j])) break; + } + /* make sure we haven't crossed */ + if (i >= j) break; + t = p[i]; + p[i] = p[j]; + p[j] = t; + + ++i; + --j; + } + /* recurse on smaller side, iterate on larger */ + if (j < (n-i)) { + stbtt__sort_edges_quicksort(p,j); + p = p+i; + n = n-i; + } else { + stbtt__sort_edges_quicksort(p+i, n-i); + n = j; + } + } +} + +static void stbtt__sort_edges(stbtt__edge *p, int n) +{ + stbtt__sort_edges_quicksort(p, n); + stbtt__sort_edges_ins_sort(p, n); +} + +typedef struct +{ + float x,y; +} stbtt__point; + +static void stbtt__rasterize(stbtt__bitmap *result, stbtt__point *pts, int *wcount, int windings, float scale_x, float scale_y, float shift_x, float shift_y, int off_x, int off_y, int invert, void *userdata) +{ + float y_scale_inv = invert ? -scale_y : scale_y; + stbtt__edge *e; + int n,i,j,k,m; +#if STBTT_RASTERIZER_VERSION == 1 + int vsubsample = result->h < 8 ? 15 : 5; +#elif STBTT_RASTERIZER_VERSION == 2 + int vsubsample = 1; +#else + #error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + // vsubsample should divide 255 evenly; otherwise we won't reach full opacity + + // now we have to blow out the windings into explicit edge lists + n = 0; + for (i=0; i < windings; ++i) + n += wcount[i]; + + e = (stbtt__edge *) STBTT_malloc(sizeof(*e) * (n+1), userdata); // add an extra one as a sentinel + if (e == 0) return; + n = 0; + + m=0; + for (i=0; i < windings; ++i) { + stbtt__point *p = pts + m; + m += wcount[i]; + j = wcount[i]-1; + for (k=0; k < wcount[i]; j=k++) { + int a=k,b=j; + // skip the edge if horizontal + if (p[j].y == p[k].y) + continue; + // add edge from j to k to the list + e[n].invert = 0; + if (invert ? p[j].y > p[k].y : p[j].y < p[k].y) { + e[n].invert = 1; + a=j,b=k; + } + e[n].x0 = p[a].x * scale_x + shift_x; + e[n].y0 = (p[a].y * y_scale_inv + shift_y) * vsubsample; + e[n].x1 = p[b].x * scale_x + shift_x; + e[n].y1 = (p[b].y * y_scale_inv + shift_y) * vsubsample; + ++n; + } + } + + // now sort the edges by their highest point (should snap to integer, and then by x) + //STBTT_sort(e, n, sizeof(e[0]), stbtt__edge_compare); + stbtt__sort_edges(e, n); + + // now, traverse the scanlines and find the intersections on each scanline, use xor winding rule + stbtt__rasterize_sorted_edges(result, e, n, vsubsample, off_x, off_y, userdata); + + STBTT_free(e, userdata); +} + +static void stbtt__add_point(stbtt__point *points, int n, float x, float y) +{ + if (!points) return; // during first pass, it's unallocated + points[n].x = x; + points[n].y = y; +} + +// tessellate until threshold p is happy... @TODO warped to compensate for non-linear stretching +static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n) +{ + // midpoint + float mx = (x0 + 2*x1 + x2)/4; + float my = (y0 + 2*y1 + y2)/4; + // versus directly drawn line + float dx = (x0+x2)/2 - mx; + float dy = (y0+y2)/2 - my; + if (n > 16) // 65536 segments on one curve better be enough! + return 1; + if (dx*dx+dy*dy > objspace_flatness_squared) { // half-pixel error allowed... need to be smaller if AA + stbtt__tesselate_curve(points, num_points, x0,y0, (x0+x1)/2.0f,(y0+y1)/2.0f, mx,my, objspace_flatness_squared,n+1); + stbtt__tesselate_curve(points, num_points, mx,my, (x1+x2)/2.0f,(y1+y2)/2.0f, x2,y2, objspace_flatness_squared,n+1); + } else { + stbtt__add_point(points, *num_points,x2,y2); + *num_points = *num_points+1; + } + return 1; +} + +static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float objspace_flatness_squared, int n) +{ + // @TODO this "flatness" calculation is just made-up nonsense that seems to work well enough + float dx0 = x1-x0; + float dy0 = y1-y0; + float dx1 = x2-x1; + float dy1 = y2-y1; + float dx2 = x3-x2; + float dy2 = y3-y2; + float dx = x3-x0; + float dy = y3-y0; + float longlen = (float) (STBTT_sqrt(dx0*dx0+dy0*dy0)+STBTT_sqrt(dx1*dx1+dy1*dy1)+STBTT_sqrt(dx2*dx2+dy2*dy2)); + float shortlen = (float) STBTT_sqrt(dx*dx+dy*dy); + float flatness_squared = longlen*longlen-shortlen*shortlen; + + if (n > 16) // 65536 segments on one curve better be enough! + return; + + if (flatness_squared > objspace_flatness_squared) { + float x01 = (x0+x1)/2; + float y01 = (y0+y1)/2; + float x12 = (x1+x2)/2; + float y12 = (y1+y2)/2; + float x23 = (x2+x3)/2; + float y23 = (y2+y3)/2; + + float xa = (x01+x12)/2; + float ya = (y01+y12)/2; + float xb = (x12+x23)/2; + float yb = (y12+y23)/2; + + float mx = (xa+xb)/2; + float my = (ya+yb)/2; + + stbtt__tesselate_cubic(points, num_points, x0,y0, x01,y01, xa,ya, mx,my, objspace_flatness_squared,n+1); + stbtt__tesselate_cubic(points, num_points, mx,my, xb,yb, x23,y23, x3,y3, objspace_flatness_squared,n+1); + } else { + stbtt__add_point(points, *num_points,x3,y3); + *num_points = *num_points+1; + } +} + +// returns number of contours +static stbtt__point *stbtt_FlattenCurves(stbtt_vertex *vertices, int num_verts, float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) +{ + stbtt__point *points=0; + int num_points=0; + + float objspace_flatness_squared = objspace_flatness * objspace_flatness; + int i,n=0,start=0, pass; + + // count how many "moves" there are to get the contour count + for (i=0; i < num_verts; ++i) + if (vertices[i].type == STBTT_vmove) + ++n; + + *num_contours = n; + if (n == 0) return 0; + + *contour_lengths = (int *) STBTT_malloc(sizeof(**contour_lengths) * n, userdata); + + if (*contour_lengths == 0) { + *num_contours = 0; + return 0; + } + + // make two passes through the points so we don't need to realloc + for (pass=0; pass < 2; ++pass) { + float x=0,y=0; + if (pass == 1) { + points = (stbtt__point *) STBTT_malloc(num_points * sizeof(points[0]), userdata); + if (points == NULL) goto error; + } + num_points = 0; + n= -1; + for (i=0; i < num_verts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + // start the next contour + if (n >= 0) + (*contour_lengths)[n] = num_points - start; + ++n; + start = num_points; + + x = vertices[i].x, y = vertices[i].y; + stbtt__add_point(points, num_points++, x,y); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + stbtt__add_point(points, num_points++, x, y); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, &num_points, x,y, + vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, &num_points, x,y, + vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, + vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + (*contour_lengths)[n] = num_points - start; + } + + return points; +error: + STBTT_free(points, userdata); + STBTT_free(*contour_lengths, userdata); + *contour_lengths = 0; + *num_contours = 0; + return NULL; +} + +STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, float flatness_in_pixels, stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata) +{ + float scale = scale_x > scale_y ? scale_y : scale_x; + int winding_count = 0; + int *winding_lengths = NULL; + stbtt__point *windings = stbtt_FlattenCurves(vertices, num_verts, flatness_in_pixels / scale, &winding_lengths, &winding_count, userdata); + if (windings) { + stbtt__rasterize(result, windings, winding_lengths, winding_count, scale_x, scale_y, shift_x, shift_y, x_off, y_off, invert, userdata); + STBTT_free(winding_lengths, userdata); + STBTT_free(windings, userdata); + } +} + +STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata) +{ + STBTT_free(bitmap, userdata); +} + +STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff) +{ + int ix0,iy0,ix1,iy1; + stbtt__bitmap gbm; + stbtt_vertex *vertices; + int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); + + if (scale_x == 0) scale_x = scale_y; + if (scale_y == 0) { + if (scale_x == 0) { + STBTT_free(vertices, info->userdata); + return NULL; + } + scale_y = scale_x; + } + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,&ix1,&iy1); + + // now we get the size + gbm.w = (ix1 - ix0); + gbm.h = (iy1 - iy0); + gbm.pixels = NULL; // in case we error + + if (width ) *width = gbm.w; + if (height) *height = gbm.h; + if (xoff ) *xoff = ix0; + if (yoff ) *yoff = iy0; + + if (gbm.w && gbm.h) { + gbm.pixels = (unsigned char *) STBTT_malloc(gbm.w * gbm.h, info->userdata); + if (gbm.pixels) { + gbm.stride = gbm.w; + + stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0, iy0, 1, info->userdata); + } + } + STBTT_free(vertices, info->userdata); + return gbm.pixels; +} + +STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y, 0.0f, 0.0f, glyph, width, height, xoff, yoff); +} + +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph) +{ + int ix0,iy0; + stbtt_vertex *vertices; + int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); + stbtt__bitmap gbm; + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,0,0); + gbm.pixels = output; + gbm.w = out_w; + gbm.h = out_h; + gbm.stride = out_stride; + + if (gbm.w && gbm.h) + stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0,iy0, 1, info->userdata); + + STBTT_free(vertices, info->userdata); +} + +STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph) +{ + stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, glyph); +} + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y,shift_x,shift_y, stbtt_FindGlyphIndex(info,codepoint), width,height,xoff,yoff); +} + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint) +{ + stbtt_MakeGlyphBitmapSubpixelPrefilter(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, oversample_x, oversample_y, sub_x, sub_y, stbtt_FindGlyphIndex(info,codepoint)); +} + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint) +{ + stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info,codepoint)); +} + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetCodepointBitmapSubpixel(info, scale_x, scale_y, 0.0f,0.0f, codepoint, width,height,xoff,yoff); +} + +STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint) +{ + stbtt_MakeCodepointBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, codepoint); +} + +////////////////////////////////////////////////////////////////////////////// +// +// bitmap baking +// +// This is SUPER-CRAPPY packing to keep source code small + +static int stbtt_BakeFontBitmap_internal(unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) + float pixel_height, // height of font in pixels + unsigned char *pixels, int pw, int ph, // bitmap to be filled in + int first_char, int num_chars, // characters to bake + stbtt_bakedchar *chardata) +{ + float scale; + int x,y,bottom_y, i; + stbtt_fontinfo f; + f.userdata = NULL; + if (!stbtt_InitFont(&f, data, offset)) + return -1; + STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels + x=y=1; + bottom_y = 1; + + scale = stbtt_ScaleForPixelHeight(&f, pixel_height); + + for (i=0; i < num_chars; ++i) { + int advance, lsb, x0,y0,x1,y1,gw,gh; + int g = stbtt_FindGlyphIndex(&f, first_char + i); + stbtt_GetGlyphHMetrics(&f, g, &advance, &lsb); + stbtt_GetGlyphBitmapBox(&f, g, scale,scale, &x0,&y0,&x1,&y1); + gw = x1-x0; + gh = y1-y0; + if (x + gw + 1 >= pw) + y = bottom_y, x = 1; // advance to next row + if (y + gh + 1 >= ph) // check if it fits vertically AFTER potentially moving to next row + return -i; + STBTT_assert(x+gw < pw); + STBTT_assert(y+gh < ph); + stbtt_MakeGlyphBitmap(&f, pixels+x+y*pw, gw,gh,pw, scale,scale, g); + chardata[i].x0 = (stbtt_int16) x; + chardata[i].y0 = (stbtt_int16) y; + chardata[i].x1 = (stbtt_int16) (x + gw); + chardata[i].y1 = (stbtt_int16) (y + gh); + chardata[i].xadvance = scale * advance; + chardata[i].xoff = (float) x0; + chardata[i].yoff = (float) y0; + x = x + gw + 1; + if (y+gh+1 > bottom_y) + bottom_y = y+gh+1; + } + return bottom_y; +} + +STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule) +{ + float d3d_bias = opengl_fillrule ? 0 : -0.5f; + float ipw = 1.0f / pw, iph = 1.0f / ph; + const stbtt_bakedchar *b = chardata + char_index; + int round_x = STBTT_ifloor((*xpos + b->xoff) + 0.5f); + int round_y = STBTT_ifloor((*ypos + b->yoff) + 0.5f); + + q->x0 = round_x + d3d_bias; + q->y0 = round_y + d3d_bias; + q->x1 = round_x + b->x1 - b->x0 + d3d_bias; + q->y1 = round_y + b->y1 - b->y0 + d3d_bias; + + q->s0 = b->x0 * ipw; + q->t0 = b->y0 * iph; + q->s1 = b->x1 * ipw; + q->t1 = b->y1 * iph; + + *xpos += b->xadvance; +} + +////////////////////////////////////////////////////////////////////////////// +// +// rectangle packing replacement routines if you don't have stb_rect_pack.h +// + +#ifndef STB_RECT_PACK_VERSION + +typedef int stbrp_coord; + +//////////////////////////////////////////////////////////////////////////////////// +// // +// // +// COMPILER WARNING ?!?!? // +// // +// // +// if you get a compile warning due to these symbols being defined more than // +// once, move #include "stb_rect_pack.h" before #include "stb_truetype.h" // +// // +//////////////////////////////////////////////////////////////////////////////////// + +typedef struct +{ + int width,height; + int x,y,bottom_y; +} stbrp_context; + +typedef struct +{ + unsigned char x; +} stbrp_node; + +struct stbrp_rect +{ + stbrp_coord x,y; + int id,w,h,was_packed; +}; + +static void stbrp_init_target(stbrp_context *con, int pw, int ph, stbrp_node *nodes, int num_nodes) +{ + con->width = pw; + con->height = ph; + con->x = 0; + con->y = 0; + con->bottom_y = 0; + STBTT__NOTUSED(nodes); + STBTT__NOTUSED(num_nodes); +} + +static void stbrp_pack_rects(stbrp_context *con, stbrp_rect *rects, int num_rects) +{ + int i; + for (i=0; i < num_rects; ++i) { + if (con->x + rects[i].w > con->width) { + con->x = 0; + con->y = con->bottom_y; + } + if (con->y + rects[i].h > con->height) + break; + rects[i].x = con->x; + rects[i].y = con->y; + rects[i].was_packed = 1; + con->x += rects[i].w; + if (con->y + rects[i].h > con->bottom_y) + con->bottom_y = con->y + rects[i].h; + } + for ( ; i < num_rects; ++i) + rects[i].was_packed = 0; +} +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// bitmap baking +// +// This is SUPER-AWESOME (tm Ryan Gordon) packing using stb_rect_pack.h. If +// stb_rect_pack.h isn't available, it uses the BakeFontBitmap strategy. + +STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int stride_in_bytes, int padding, void *alloc_context) +{ + stbrp_context *context = (stbrp_context *) STBTT_malloc(sizeof(*context) ,alloc_context); + int num_nodes = pw - padding; + stbrp_node *nodes = (stbrp_node *) STBTT_malloc(sizeof(*nodes ) * num_nodes,alloc_context); + + if (context == NULL || nodes == NULL) { + if (context != NULL) STBTT_free(context, alloc_context); + if (nodes != NULL) STBTT_free(nodes , alloc_context); + return 0; + } + + spc->user_allocator_context = alloc_context; + spc->width = pw; + spc->height = ph; + spc->pixels = pixels; + spc->pack_info = context; + spc->nodes = nodes; + spc->padding = padding; + spc->stride_in_bytes = stride_in_bytes != 0 ? stride_in_bytes : pw; + spc->h_oversample = 1; + spc->v_oversample = 1; + spc->skip_missing = 0; + + stbrp_init_target(context, pw-padding, ph-padding, nodes, num_nodes); + + if (pixels) + STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels + + return 1; +} + +STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc) +{ + STBTT_free(spc->nodes , spc->user_allocator_context); + STBTT_free(spc->pack_info, spc->user_allocator_context); +} + +STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample) +{ + STBTT_assert(h_oversample <= STBTT_MAX_OVERSAMPLE); + STBTT_assert(v_oversample <= STBTT_MAX_OVERSAMPLE); + if (h_oversample <= STBTT_MAX_OVERSAMPLE) + spc->h_oversample = h_oversample; + if (v_oversample <= STBTT_MAX_OVERSAMPLE) + spc->v_oversample = v_oversample; +} + +STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip) +{ + spc->skip_missing = skip; +} + +#define STBTT__OVER_MASK (STBTT_MAX_OVERSAMPLE-1) + +static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +{ + unsigned char buffer[STBTT_MAX_OVERSAMPLE]; + int safe_w = w - kernel_width; + int j; + STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze + for (j=0; j < h; ++j) { + int i; + unsigned int total; + STBTT_memset(buffer, 0, kernel_width); + + total = 0; + + // make kernel_width a constant in common cases so compiler can optimize out the divide + switch (kernel_width) { + case 2: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 2); + } + break; + case 3: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 3); + } + break; + case 4: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 4); + } + break; + case 5: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 5); + } + break; + default: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / kernel_width); + } + break; + } + + for (; i < w; ++i) { + STBTT_assert(pixels[i] == 0); + total -= buffer[i & STBTT__OVER_MASK]; + pixels[i] = (unsigned char) (total / kernel_width); + } + + pixels += stride_in_bytes; + } +} + +static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +{ + unsigned char buffer[STBTT_MAX_OVERSAMPLE]; + int safe_h = h - kernel_width; + int j; + STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze + for (j=0; j < w; ++j) { + int i; + unsigned int total; + STBTT_memset(buffer, 0, kernel_width); + + total = 0; + + // make kernel_width a constant in common cases so compiler can optimize out the divide + switch (kernel_width) { + case 2: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 2); + } + break; + case 3: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 3); + } + break; + case 4: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 4); + } + break; + case 5: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 5); + } + break; + default: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); + } + break; + } + + for (; i < h; ++i) { + STBTT_assert(pixels[i*stride_in_bytes] == 0); + total -= buffer[i & STBTT__OVER_MASK]; + pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); + } + + pixels += 1; + } +} + +static float stbtt__oversample_shift(int oversample) +{ + if (!oversample) + return 0.0f; + + // The prefilter is a box filter of width "oversample", + // which shifts phase by (oversample - 1)/2 pixels in + // oversampled space. We want to shift in the opposite + // direction to counter this. + return (float)-(oversample - 1) / (2.0f * (float)oversample); +} + +// rects array must be big enough to accommodate all characters in the given ranges +STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) +{ + int i,j,k; + int missing_glyph_added = 0; + + k=0; + for (i=0; i < num_ranges; ++i) { + float fh = ranges[i].font_size; + float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); + ranges[i].h_oversample = (unsigned char) spc->h_oversample; + ranges[i].v_oversample = (unsigned char) spc->v_oversample; + for (j=0; j < ranges[i].num_chars; ++j) { + int x0,y0,x1,y1; + int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; + int glyph = stbtt_FindGlyphIndex(info, codepoint); + if (glyph == 0 && (spc->skip_missing || missing_glyph_added)) { + rects[k].w = rects[k].h = 0; + } else { + stbtt_GetGlyphBitmapBoxSubpixel(info,glyph, + scale * spc->h_oversample, + scale * spc->v_oversample, + 0,0, + &x0,&y0,&x1,&y1); + rects[k].w = (stbrp_coord) (x1-x0 + spc->padding + spc->h_oversample-1); + rects[k].h = (stbrp_coord) (y1-y0 + spc->padding + spc->v_oversample-1); + if (glyph == 0) + missing_glyph_added = 1; + } + ++k; + } + } + + return k; +} + +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int prefilter_x, int prefilter_y, float *sub_x, float *sub_y, int glyph) +{ + stbtt_MakeGlyphBitmapSubpixel(info, + output, + out_w - (prefilter_x - 1), + out_h - (prefilter_y - 1), + out_stride, + scale_x, + scale_y, + shift_x, + shift_y, + glyph); + + if (prefilter_x > 1) + stbtt__h_prefilter(output, out_w, out_h, out_stride, prefilter_x); + + if (prefilter_y > 1) + stbtt__v_prefilter(output, out_w, out_h, out_stride, prefilter_y); + + *sub_x = stbtt__oversample_shift(prefilter_x); + *sub_y = stbtt__oversample_shift(prefilter_y); +} + +// rects array must be big enough to accommodate all characters in the given ranges +STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) +{ + int i,j,k, missing_glyph = -1, return_value = 1; + + // save current values + int old_h_over = spc->h_oversample; + int old_v_over = spc->v_oversample; + + k = 0; + for (i=0; i < num_ranges; ++i) { + float fh = ranges[i].font_size; + float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); + float recip_h,recip_v,sub_x,sub_y; + spc->h_oversample = ranges[i].h_oversample; + spc->v_oversample = ranges[i].v_oversample; + recip_h = 1.0f / spc->h_oversample; + recip_v = 1.0f / spc->v_oversample; + sub_x = stbtt__oversample_shift(spc->h_oversample); + sub_y = stbtt__oversample_shift(spc->v_oversample); + for (j=0; j < ranges[i].num_chars; ++j) { + stbrp_rect *r = &rects[k]; + if (r->was_packed && r->w != 0 && r->h != 0) { + stbtt_packedchar *bc = &ranges[i].chardata_for_range[j]; + int advance, lsb, x0,y0,x1,y1; + int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; + int glyph = stbtt_FindGlyphIndex(info, codepoint); + stbrp_coord pad = (stbrp_coord) spc->padding; + + // pad on left and top + r->x += pad; + r->y += pad; + r->w -= pad; + r->h -= pad; + stbtt_GetGlyphHMetrics(info, glyph, &advance, &lsb); + stbtt_GetGlyphBitmapBox(info, glyph, + scale * spc->h_oversample, + scale * spc->v_oversample, + &x0,&y0,&x1,&y1); + stbtt_MakeGlyphBitmapSubpixel(info, + spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w - spc->h_oversample+1, + r->h - spc->v_oversample+1, + spc->stride_in_bytes, + scale * spc->h_oversample, + scale * spc->v_oversample, + 0,0, + glyph); + + if (spc->h_oversample > 1) + stbtt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w, r->h, spc->stride_in_bytes, + spc->h_oversample); + + if (spc->v_oversample > 1) + stbtt__v_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w, r->h, spc->stride_in_bytes, + spc->v_oversample); + + bc->x0 = (stbtt_int16) r->x; + bc->y0 = (stbtt_int16) r->y; + bc->x1 = (stbtt_int16) (r->x + r->w); + bc->y1 = (stbtt_int16) (r->y + r->h); + bc->xadvance = scale * advance; + bc->xoff = (float) x0 * recip_h + sub_x; + bc->yoff = (float) y0 * recip_v + sub_y; + bc->xoff2 = (x0 + r->w) * recip_h + sub_x; + bc->yoff2 = (y0 + r->h) * recip_v + sub_y; + + if (glyph == 0) + missing_glyph = j; + } else if (spc->skip_missing) { + return_value = 0; + } else if (r->was_packed && r->w == 0 && r->h == 0 && missing_glyph >= 0) { + ranges[i].chardata_for_range[j] = ranges[i].chardata_for_range[missing_glyph]; + } else { + return_value = 0; // if any fail, report failure + } + + ++k; + } + } + + // restore original values + spc->h_oversample = old_h_over; + spc->v_oversample = old_v_over; + + return return_value; +} + +STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects) +{ + stbrp_pack_rects((stbrp_context *) spc->pack_info, rects, num_rects); +} + +STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) +{ + stbtt_fontinfo info; + int i, j, n, return_value; // [DEAR IMGUI] removed = 1; + //stbrp_context *context = (stbrp_context *) spc->pack_info; + stbrp_rect *rects; + + // flag all characters as NOT packed + for (i=0; i < num_ranges; ++i) + for (j=0; j < ranges[i].num_chars; ++j) + ranges[i].chardata_for_range[j].x0 = + ranges[i].chardata_for_range[j].y0 = + ranges[i].chardata_for_range[j].x1 = + ranges[i].chardata_for_range[j].y1 = 0; + + n = 0; + for (i=0; i < num_ranges; ++i) + n += ranges[i].num_chars; + + rects = (stbrp_rect *) STBTT_malloc(sizeof(*rects) * n, spc->user_allocator_context); + if (rects == NULL) + return 0; + + info.userdata = spc->user_allocator_context; + stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata,font_index)); + + n = stbtt_PackFontRangesGatherRects(spc, &info, ranges, num_ranges, rects); + + stbtt_PackFontRangesPackRects(spc, rects, n); + + return_value = stbtt_PackFontRangesRenderIntoRects(spc, &info, ranges, num_ranges, rects); + + STBTT_free(rects, spc->user_allocator_context); + return return_value; +} + +STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, + int first_unicode_codepoint_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range) +{ + stbtt_pack_range range; + range.first_unicode_codepoint_in_range = first_unicode_codepoint_in_range; + range.array_of_unicode_codepoints = NULL; + range.num_chars = num_chars_in_range; + range.chardata_for_range = chardata_for_range; + range.font_size = font_size; + return stbtt_PackFontRanges(spc, fontdata, font_index, &range, 1); +} + +STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap) +{ + int i_ascent, i_descent, i_lineGap; + float scale; + stbtt_fontinfo info; + stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata, index)); + scale = size > 0 ? stbtt_ScaleForPixelHeight(&info, size) : stbtt_ScaleForMappingEmToPixels(&info, -size); + stbtt_GetFontVMetrics(&info, &i_ascent, &i_descent, &i_lineGap); + *ascent = (float) i_ascent * scale; + *descent = (float) i_descent * scale; + *lineGap = (float) i_lineGap * scale; +} + +STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer) +{ + float ipw = 1.0f / pw, iph = 1.0f / ph; + const stbtt_packedchar *b = chardata + char_index; + + if (align_to_integer) { + float x = (float) STBTT_ifloor((*xpos + b->xoff) + 0.5f); + float y = (float) STBTT_ifloor((*ypos + b->yoff) + 0.5f); + q->x0 = x; + q->y0 = y; + q->x1 = x + b->xoff2 - b->xoff; + q->y1 = y + b->yoff2 - b->yoff; + } else { + q->x0 = *xpos + b->xoff; + q->y0 = *ypos + b->yoff; + q->x1 = *xpos + b->xoff2; + q->y1 = *ypos + b->yoff2; + } + + q->s0 = b->x0 * ipw; + q->t0 = b->y0 * iph; + q->s1 = b->x1 * ipw; + q->t1 = b->y1 * iph; + + *xpos += b->xadvance; +} + +////////////////////////////////////////////////////////////////////////////// +// +// sdf computation +// + +#define STBTT_min(a,b) ((a) < (b) ? (a) : (b)) +#define STBTT_max(a,b) ((a) < (b) ? (b) : (a)) + +static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2]) +{ + float q0perp = q0[1]*ray[0] - q0[0]*ray[1]; + float q1perp = q1[1]*ray[0] - q1[0]*ray[1]; + float q2perp = q2[1]*ray[0] - q2[0]*ray[1]; + float roperp = orig[1]*ray[0] - orig[0]*ray[1]; + + float a = q0perp - 2*q1perp + q2perp; + float b = q1perp - q0perp; + float c = q0perp - roperp; + + float s0 = 0., s1 = 0.; + int num_s = 0; + + if (a != 0.0) { + float discr = b*b - a*c; + if (discr > 0.0) { + float rcpna = -1 / a; + float d = (float) STBTT_sqrt(discr); + s0 = (b+d) * rcpna; + s1 = (b-d) * rcpna; + if (s0 >= 0.0 && s0 <= 1.0) + num_s = 1; + if (d > 0.0 && s1 >= 0.0 && s1 <= 1.0) { + if (num_s == 0) s0 = s1; + ++num_s; + } + } + } else { + // 2*b*s + c = 0 + // s = -c / (2*b) + s0 = c / (-2 * b); + if (s0 >= 0.0 && s0 <= 1.0) + num_s = 1; + } + + if (num_s == 0) + return 0; + else { + float rcp_len2 = 1 / (ray[0]*ray[0] + ray[1]*ray[1]); + float rayn_x = ray[0] * rcp_len2, rayn_y = ray[1] * rcp_len2; + + float q0d = q0[0]*rayn_x + q0[1]*rayn_y; + float q1d = q1[0]*rayn_x + q1[1]*rayn_y; + float q2d = q2[0]*rayn_x + q2[1]*rayn_y; + float rod = orig[0]*rayn_x + orig[1]*rayn_y; + + float q10d = q1d - q0d; + float q20d = q2d - q0d; + float q0rd = q0d - rod; + + hits[0][0] = q0rd + s0*(2.0f - 2.0f*s0)*q10d + s0*s0*q20d; + hits[0][1] = a*s0+b; + + if (num_s > 1) { + hits[1][0] = q0rd + s1*(2.0f - 2.0f*s1)*q10d + s1*s1*q20d; + hits[1][1] = a*s1+b; + return 2; + } else { + return 1; + } + } +} + +static int equal(float *a, float *b) +{ + return (a[0] == b[0] && a[1] == b[1]); +} + +static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts) +{ + int i; + float orig[2], ray[2] = { 1, 0 }; + float y_frac; + int winding = 0; + + // make sure y never passes through a vertex of the shape + y_frac = (float) STBTT_fmod(y, 1.0f); + if (y_frac < 0.01f) + y += 0.01f; + else if (y_frac > 0.99f) + y -= 0.01f; + + orig[0] = x; + orig[1] = y; + + // test a ray from (-infinity,y) to (x,y) + for (i=0; i < nverts; ++i) { + if (verts[i].type == STBTT_vline) { + int x0 = (int) verts[i-1].x, y0 = (int) verts[i-1].y; + int x1 = (int) verts[i ].x, y1 = (int) verts[i ].y; + if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { + float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; + if (x_inter < x) + winding += (y0 < y1) ? 1 : -1; + } + } + if (verts[i].type == STBTT_vcurve) { + int x0 = (int) verts[i-1].x , y0 = (int) verts[i-1].y ; + int x1 = (int) verts[i ].cx, y1 = (int) verts[i ].cy; + int x2 = (int) verts[i ].x , y2 = (int) verts[i ].y ; + int ax = STBTT_min(x0,STBTT_min(x1,x2)), ay = STBTT_min(y0,STBTT_min(y1,y2)); + int by = STBTT_max(y0,STBTT_max(y1,y2)); + if (y > ay && y < by && x > ax) { + float q0[2],q1[2],q2[2]; + float hits[2][2]; + q0[0] = (float)x0; + q0[1] = (float)y0; + q1[0] = (float)x1; + q1[1] = (float)y1; + q2[0] = (float)x2; + q2[1] = (float)y2; + if (equal(q0,q1) || equal(q1,q2)) { + x0 = (int)verts[i-1].x; + y0 = (int)verts[i-1].y; + x1 = (int)verts[i ].x; + y1 = (int)verts[i ].y; + if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { + float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; + if (x_inter < x) + winding += (y0 < y1) ? 1 : -1; + } + } else { + int num_hits = stbtt__ray_intersect_bezier(orig, ray, q0, q1, q2, hits); + if (num_hits >= 1) + if (hits[0][0] < 0) + winding += (hits[0][1] < 0 ? -1 : 1); + if (num_hits >= 2) + if (hits[1][0] < 0) + winding += (hits[1][1] < 0 ? -1 : 1); + } + } + } + } + return winding; +} + +static float stbtt__cuberoot( float x ) +{ + if (x<0) + return -(float) STBTT_pow(-x,1.0f/3.0f); + else + return (float) STBTT_pow( x,1.0f/3.0f); +} + +// x^3 + a*x^2 + b*x + c = 0 +static int stbtt__solve_cubic(float a, float b, float c, float* r) +{ + float s = -a / 3; + float p = b - a*a / 3; + float q = a * (2*a*a - 9*b) / 27 + c; + float p3 = p*p*p; + float d = q*q + 4*p3 / 27; + if (d >= 0) { + float z = (float) STBTT_sqrt(d); + float u = (-q + z) / 2; + float v = (-q - z) / 2; + u = stbtt__cuberoot(u); + v = stbtt__cuberoot(v); + r[0] = s + u + v; + return 1; + } else { + float u = (float) STBTT_sqrt(-p/3); + float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative + float m = (float) STBTT_cos(v); + float n = (float) STBTT_cos(v-3.141592/2)*1.732050808f; + r[0] = s + u * 2 * m; + r[1] = s - u * (m + n); + r[2] = s - u * (m - n); + + //STBTT_assert( STBTT_fabs(((r[0]+a)*r[0]+b)*r[0]+c) < 0.05f); // these asserts may not be safe at all scales, though they're in bezier t parameter units so maybe? + //STBTT_assert( STBTT_fabs(((r[1]+a)*r[1]+b)*r[1]+c) < 0.05f); + //STBTT_assert( STBTT_fabs(((r[2]+a)*r[2]+b)*r[2]+c) < 0.05f); + return 3; + } +} + +STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) +{ + float scale_x = scale, scale_y = scale; + int ix0,iy0,ix1,iy1; + int w,h; + unsigned char *data; + + if (scale == 0) return NULL; + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale, scale, 0.0f,0.0f, &ix0,&iy0,&ix1,&iy1); + + // if empty, return NULL + if (ix0 == ix1 || iy0 == iy1) + return NULL; + + ix0 -= padding; + iy0 -= padding; + ix1 += padding; + iy1 += padding; + + w = (ix1 - ix0); + h = (iy1 - iy0); + + if (width ) *width = w; + if (height) *height = h; + if (xoff ) *xoff = ix0; + if (yoff ) *yoff = iy0; + + // invert for y-downwards bitmaps + scale_y = -scale_y; + + { + int x,y,i,j; + float *precompute; + stbtt_vertex *verts; + int num_verts = stbtt_GetGlyphShape(info, glyph, &verts); + data = (unsigned char *) STBTT_malloc(w * h, info->userdata); + precompute = (float *) STBTT_malloc(num_verts * sizeof(float), info->userdata); + + for (i=0,j=num_verts-1; i < num_verts; j=i++) { + if (verts[i].type == STBTT_vline) { + float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; + float x1 = verts[j].x*scale_x, y1 = verts[j].y*scale_y; + float dist = (float) STBTT_sqrt((x1-x0)*(x1-x0) + (y1-y0)*(y1-y0)); + precompute[i] = (dist == 0) ? 0.0f : 1.0f / dist; + } else if (verts[i].type == STBTT_vcurve) { + float x2 = verts[j].x *scale_x, y2 = verts[j].y *scale_y; + float x1 = verts[i].cx*scale_x, y1 = verts[i].cy*scale_y; + float x0 = verts[i].x *scale_x, y0 = verts[i].y *scale_y; + float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; + float len2 = bx*bx + by*by; + if (len2 != 0.0f) + precompute[i] = 1.0f / (bx*bx + by*by); + else + precompute[i] = 0.0f; + } else + precompute[i] = 0.0f; + } + + for (y=iy0; y < iy1; ++y) { + for (x=ix0; x < ix1; ++x) { + float val; + float min_dist = 999999.0f; + float sx = (float) x + 0.5f; + float sy = (float) y + 0.5f; + float x_gspace = (sx / scale_x); + float y_gspace = (sy / scale_y); + + int winding = stbtt__compute_crossings_x(x_gspace, y_gspace, num_verts, verts); // @OPTIMIZE: this could just be a rasterization, but needs to be line vs. non-tesselated curves so a new path + + for (i=0; i < num_verts; ++i) { + float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; + + if (verts[i].type == STBTT_vline && precompute[i] != 0.0f) { + float x1 = verts[i-1].x*scale_x, y1 = verts[i-1].y*scale_y; + + float dist,dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + + // coarse culling against bbox + //if (sx > STBTT_min(x0,x1)-min_dist && sx < STBTT_max(x0,x1)+min_dist && + // sy > STBTT_min(y0,y1)-min_dist && sy < STBTT_max(y0,y1)+min_dist) + dist = (float) STBTT_fabs((x1-x0)*(y0-sy) - (y1-y0)*(x0-sx)) * precompute[i]; + STBTT_assert(i != 0); + if (dist < min_dist) { + // check position along line + // x' = x0 + t*(x1-x0), y' = y0 + t*(y1-y0) + // minimize (x'-sx)*(x'-sx)+(y'-sy)*(y'-sy) + float dx = x1-x0, dy = y1-y0; + float px = x0-sx, py = y0-sy; + // minimize (px+t*dx)^2 + (py+t*dy)^2 = px*px + 2*px*dx*t + t^2*dx*dx + py*py + 2*py*dy*t + t^2*dy*dy + // derivative: 2*px*dx + 2*py*dy + (2*dx*dx+2*dy*dy)*t, set to 0 and solve + float t = -(px*dx + py*dy) / (dx*dx + dy*dy); + if (t >= 0.0f && t <= 1.0f) + min_dist = dist; + } + } else if (verts[i].type == STBTT_vcurve) { + float x2 = verts[i-1].x *scale_x, y2 = verts[i-1].y *scale_y; + float x1 = verts[i ].cx*scale_x, y1 = verts[i ].cy*scale_y; + float box_x0 = STBTT_min(STBTT_min(x0,x1),x2); + float box_y0 = STBTT_min(STBTT_min(y0,y1),y2); + float box_x1 = STBTT_max(STBTT_max(x0,x1),x2); + float box_y1 = STBTT_max(STBTT_max(y0,y1),y2); + // coarse culling against bbox to avoid computing cubic unnecessarily + if (sx > box_x0-min_dist && sx < box_x1+min_dist && sy > box_y0-min_dist && sy < box_y1+min_dist) { + int num=0; + float ax = x1-x0, ay = y1-y0; + float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; + float mx = x0 - sx, my = y0 - sy; + float res[3] = {0.f,0.f,0.f}; + float px,py,t,it,dist2; + float a_inv = precompute[i]; + if (a_inv == 0.0) { // if a_inv is 0, it's 2nd degree so use quadratic formula + float a = 3*(ax*bx + ay*by); + float b = 2*(ax*ax + ay*ay) + (mx*bx+my*by); + float c = mx*ax+my*ay; + if (a == 0.0) { // if a is 0, it's linear + if (b != 0.0) { + res[num++] = -c/b; + } + } else { + float discriminant = b*b - 4*a*c; + if (discriminant < 0) + num = 0; + else { + float root = (float) STBTT_sqrt(discriminant); + res[0] = (-b - root)/(2*a); + res[1] = (-b + root)/(2*a); + num = 2; // don't bother distinguishing 1-solution case, as code below will still work + } + } + } else { + float b = 3*(ax*bx + ay*by) * a_inv; // could precompute this as it doesn't depend on sample point + float c = (2*(ax*ax + ay*ay) + (mx*bx+my*by)) * a_inv; + float d = (mx*ax+my*ay) * a_inv; + num = stbtt__solve_cubic(b, c, d, res); + } + dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + + if (num >= 1 && res[0] >= 0.0f && res[0] <= 1.0f) { + t = res[0], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + if (num >= 2 && res[1] >= 0.0f && res[1] <= 1.0f) { + t = res[1], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + if (num >= 3 && res[2] >= 0.0f && res[2] <= 1.0f) { + t = res[2], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + } + } + } + if (winding == 0) + min_dist = -min_dist; // if outside the shape, value is negative + val = onedge_value + pixel_dist_scale * min_dist; + if (val < 0) + val = 0; + else if (val > 255) + val = 255; + data[(y-iy0)*w+(x-ix0)] = (unsigned char) val; + } + } + STBTT_free(precompute, info->userdata); + STBTT_free(verts, info->userdata); + } + return data; +} + +STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphSDF(info, scale, stbtt_FindGlyphIndex(info, codepoint), padding, onedge_value, pixel_dist_scale, width, height, xoff, yoff); +} + +STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata) +{ + STBTT_free(bitmap, userdata); +} + +////////////////////////////////////////////////////////////////////////////// +// +// font name matching -- recommended not to use this +// + +// check if a utf8 string contains a prefix which is the utf16 string; if so return length of matching utf8 string +static stbtt_int32 stbtt__CompareUTF8toUTF16_bigendian_prefix(stbtt_uint8 *s1, stbtt_int32 len1, stbtt_uint8 *s2, stbtt_int32 len2) +{ + stbtt_int32 i=0; + + // convert utf16 to utf8 and compare the results while converting + while (len2) { + stbtt_uint16 ch = s2[0]*256 + s2[1]; + if (ch < 0x80) { + if (i >= len1) return -1; + if (s1[i++] != ch) return -1; + } else if (ch < 0x800) { + if (i+1 >= len1) return -1; + if (s1[i++] != 0xc0 + (ch >> 6)) return -1; + if (s1[i++] != 0x80 + (ch & 0x3f)) return -1; + } else if (ch >= 0xd800 && ch < 0xdc00) { + stbtt_uint32 c; + stbtt_uint16 ch2 = s2[2]*256 + s2[3]; + if (i+3 >= len1) return -1; + c = ((ch - 0xd800) << 10) + (ch2 - 0xdc00) + 0x10000; + if (s1[i++] != 0xf0 + (c >> 18)) return -1; + if (s1[i++] != 0x80 + ((c >> 12) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((c >> 6) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((c ) & 0x3f)) return -1; + s2 += 2; // plus another 2 below + len2 -= 2; + } else if (ch >= 0xdc00 && ch < 0xe000) { + return -1; + } else { + if (i+2 >= len1) return -1; + if (s1[i++] != 0xe0 + (ch >> 12)) return -1; + if (s1[i++] != 0x80 + ((ch >> 6) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((ch ) & 0x3f)) return -1; + } + s2 += 2; + len2 -= 2; + } + return i; +} + +static int stbtt_CompareUTF8toUTF16_bigendian_internal(char *s1, int len1, char *s2, int len2) +{ + return len1 == stbtt__CompareUTF8toUTF16_bigendian_prefix((stbtt_uint8*) s1, len1, (stbtt_uint8*) s2, len2); +} + +// returns results in whatever encoding you request... but note that 2-byte encodings +// will be BIG-ENDIAN... use stbtt_CompareUTF8toUTF16_bigendian() to compare +STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID) +{ + stbtt_int32 i,count,stringOffset; + stbtt_uint8 *fc = font->data; + stbtt_uint32 offset = font->fontstart; + stbtt_uint32 nm = stbtt__find_table(fc, offset, "name"); + if (!nm) return NULL; + + count = ttUSHORT(fc+nm+2); + stringOffset = nm + ttUSHORT(fc+nm+4); + for (i=0; i < count; ++i) { + stbtt_uint32 loc = nm + 6 + 12 * i; + if (platformID == ttUSHORT(fc+loc+0) && encodingID == ttUSHORT(fc+loc+2) + && languageID == ttUSHORT(fc+loc+4) && nameID == ttUSHORT(fc+loc+6)) { + *length = ttUSHORT(fc+loc+8); + return (const char *) (fc+stringOffset+ttUSHORT(fc+loc+10)); + } + } + return NULL; +} + +static int stbtt__matchpair(stbtt_uint8 *fc, stbtt_uint32 nm, stbtt_uint8 *name, stbtt_int32 nlen, stbtt_int32 target_id, stbtt_int32 next_id) +{ + stbtt_int32 i; + stbtt_int32 count = ttUSHORT(fc+nm+2); + stbtt_int32 stringOffset = nm + ttUSHORT(fc+nm+4); + + for (i=0; i < count; ++i) { + stbtt_uint32 loc = nm + 6 + 12 * i; + stbtt_int32 id = ttUSHORT(fc+loc+6); + if (id == target_id) { + // find the encoding + stbtt_int32 platform = ttUSHORT(fc+loc+0), encoding = ttUSHORT(fc+loc+2), language = ttUSHORT(fc+loc+4); + + // is this a Unicode encoding? + if (platform == 0 || (platform == 3 && encoding == 1) || (platform == 3 && encoding == 10)) { + stbtt_int32 slen = ttUSHORT(fc+loc+8); + stbtt_int32 off = ttUSHORT(fc+loc+10); + + // check if there's a prefix match + stbtt_int32 matchlen = stbtt__CompareUTF8toUTF16_bigendian_prefix(name, nlen, fc+stringOffset+off,slen); + if (matchlen >= 0) { + // check for target_id+1 immediately following, with same encoding & language + if (i+1 < count && ttUSHORT(fc+loc+12+6) == next_id && ttUSHORT(fc+loc+12) == platform && ttUSHORT(fc+loc+12+2) == encoding && ttUSHORT(fc+loc+12+4) == language) { + slen = ttUSHORT(fc+loc+12+8); + off = ttUSHORT(fc+loc+12+10); + if (slen == 0) { + if (matchlen == nlen) + return 1; + } else if (matchlen < nlen && name[matchlen] == ' ') { + ++matchlen; + if (stbtt_CompareUTF8toUTF16_bigendian_internal((char*) (name+matchlen), nlen-matchlen, (char*)(fc+stringOffset+off),slen)) + return 1; + } + } else { + // if nothing immediately following + if (matchlen == nlen) + return 1; + } + } + } + + // @TODO handle other encodings + } + } + return 0; +} + +static int stbtt__matches(stbtt_uint8 *fc, stbtt_uint32 offset, stbtt_uint8 *name, stbtt_int32 flags) +{ + stbtt_int32 nlen = (stbtt_int32) STBTT_strlen((char *) name); + stbtt_uint32 nm,hd; + if (!stbtt__isfont(fc+offset)) return 0; + + // check italics/bold/underline flags in macStyle... + if (flags) { + hd = stbtt__find_table(fc, offset, "head"); + if ((ttUSHORT(fc+hd+44) & 7) != (flags & 7)) return 0; + } + + nm = stbtt__find_table(fc, offset, "name"); + if (!nm) return 0; + + if (flags) { + // if we checked the macStyle flags, then just check the family and ignore the subfamily + if (stbtt__matchpair(fc, nm, name, nlen, 16, -1)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 1, -1)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; + } else { + if (stbtt__matchpair(fc, nm, name, nlen, 16, 17)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 1, 2)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; + } + + return 0; +} + +static int stbtt_FindMatchingFont_internal(unsigned char *font_collection, char *name_utf8, stbtt_int32 flags) +{ + stbtt_int32 i; + for (i=0;;++i) { + stbtt_int32 off = stbtt_GetFontOffsetForIndex(font_collection, i); + if (off < 0) return off; + if (stbtt__matches((stbtt_uint8 *) font_collection, off, (stbtt_uint8*) name_utf8, flags)) + return off; + } +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif + +STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, + float pixel_height, unsigned char *pixels, int pw, int ph, + int first_char, int num_chars, stbtt_bakedchar *chardata) +{ + return stbtt_BakeFontBitmap_internal((unsigned char *) data, offset, pixel_height, pixels, pw, ph, first_char, num_chars, chardata); +} + +STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index) +{ + return stbtt_GetFontOffsetForIndex_internal((unsigned char *) data, index); +} + +STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data) +{ + return stbtt_GetNumberOfFonts_internal((unsigned char *) data); +} + +STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset) +{ + return stbtt_InitFont_internal(info, (unsigned char *) data, offset); +} + +STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags) +{ + return stbtt_FindMatchingFont_internal((unsigned char *) fontdata, (char *) name, flags); +} + +STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2) +{ + return stbtt_CompareUTF8toUTF16_bigendian_internal((char *) s1, len1, (char *) s2, len2); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + +#endif // STB_TRUETYPE_IMPLEMENTATION + + +// FULL VERSION HISTORY +// +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning +// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() +// 1.19 (2018-02-11) OpenType GPOS kerning (horizontal only), STBTT_fmod +// 1.18 (2018-01-29) add missing function +// 1.17 (2017-07-23) make more arguments const; doc fix +// 1.16 (2017-07-12) SDF support +// 1.15 (2017-03-03) make more arguments const +// 1.14 (2017-01-16) num-fonts-in-TTC function +// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts +// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual +// 1.11 (2016-04-02) fix unused-variable warning +// 1.10 (2016-04-02) allow user-defined fabs() replacement +// fix memory leak if fontsize=0.0 +// fix warning from duplicate typedef +// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use alloc userdata for PackFontRanges +// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges +// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; +// allow PackFontRanges to pack and render in separate phases; +// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); +// fixed an assert() bug in the new rasterizer +// replace assert() with STBTT_assert() in new rasterizer +// 1.06 (2015-07-14) performance improvements (~35% faster on x86 and x64 on test machine) +// also more precise AA rasterizer, except if shapes overlap +// remove need for STBTT_sort +// 1.05 (2015-04-15) fix misplaced definitions for STBTT_STATIC +// 1.04 (2015-04-15) typo in example +// 1.03 (2015-04-12) STBTT_STATIC, fix memory leak in new packing, various fixes +// 1.02 (2014-12-10) fix various warnings & compile issues w/ stb_rect_pack, C++ +// 1.01 (2014-12-08) fix subpixel position when oversampling to exactly match +// non-oversampled; STBTT_POINT_SIZE for packed case only +// 1.00 (2014-12-06) add new PackBegin etc. API, w/ support for oversampling +// 0.99 (2014-09-18) fix multiple bugs with subpixel rendering (ryg) +// 0.9 (2014-08-07) support certain mac/iOS fonts without an MS platformID +// 0.8b (2014-07-07) fix a warning +// 0.8 (2014-05-25) fix a few more warnings +// 0.7 (2013-09-25) bugfix: subpixel glyph bug fixed in 0.5 had come back +// 0.6c (2012-07-24) improve documentation +// 0.6b (2012-07-20) fix a few more warnings +// 0.6 (2012-07-17) fix warnings; added stbtt_ScaleForMappingEmToPixels, +// stbtt_GetFontBoundingBox, stbtt_IsGlyphEmpty +// 0.5 (2011-12-09) bugfixes: +// subpixel glyph renderer computed wrong bounding box +// first vertex of shape can be off-curve (FreeSans) +// 0.4b (2011-12-03) fixed an error in the font baking example +// 0.4 (2011-12-01) kerning, subpixel rendering (tor) +// bugfixes for: +// codepoint-to-glyph conversion using table fmt=12 +// codepoint-to-glyph conversion using table fmt=4 +// stbtt_GetBakedQuad with non-square texture (Zer) +// updated Hello World! sample to use kerning and subpixel +// fixed some warnings +// 0.3 (2009-06-24) cmap fmt=12, compound shapes (MM) +// userdata, malloc-from-userdata, non-zero fill (stb) +// 0.2 (2009-03-11) Fix unsigned/signed char warnings +// 0.1 (2009-03-09) First public release +// + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/HexaGen.Tests/cpp2c/imgui/misc/README.txt b/HexaGen.Tests/cpp2c/imgui/misc/README.txt new file mode 100644 index 0000000..b4ce89f --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/README.txt @@ -0,0 +1,23 @@ + +misc/cpp/ + InputText() wrappers for C++ standard library (STL) type: std::string. + This is also an example of how you may wrap your own similar types. + +misc/debuggers/ + Helper files for popular debuggers. + With the .natvis file, types like ImVector<> will be displayed nicely in Visual Studio debugger. + +misc/fonts/ + Fonts loading/merging instructions (e.g. How to handle glyph ranges, how to merge icons fonts). + Command line tool "binary_to_compressed_c" to create compressed arrays to embed data in source code. + Suggested fonts and links. + +misc/freetype/ + Font atlas builder/rasterizer using FreeType instead of stb_truetype. + Benefit from better FreeType rasterization, in particular for small fonts. + +misc/single_file/ + Single-file header stub. + We use this to validate compiling all *.cpp files in a same compilation unit. + Users of that technique (also called "Unity builds") can generally provide this themselves, + so we don't really recommend you use this in your projects. diff --git a/HexaGen.Tests/cpp2c/imgui/misc/cpp/README.txt b/HexaGen.Tests/cpp2c/imgui/misc/cpp/README.txt new file mode 100644 index 0000000..17f0a3c --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/cpp/README.txt @@ -0,0 +1,13 @@ + +imgui_stdlib.h + imgui_stdlib.cpp + InputText() wrappers for C++ standard library (STL) type: std::string. + This is also an example of how you may wrap your own similar types. + +imgui_scoped.h + [Experimental, not currently in main repository] + Additional header file with some RAII-style wrappers for common Dear ImGui functions. + Try by merging: https://github.com/ocornut/imgui/pull/2197 + Discuss at: https://github.com/ocornut/imgui/issues/2096 + +See more C++ related extension (fmt, RAII, syntaxis sugar) on Wiki: + https://github.com/ocornut/imgui/wiki/Useful-Extensions#cness diff --git a/HexaGen.Tests/cpp2c/imgui/misc/cpp/imgui_stdlib.cpp b/HexaGen.Tests/cpp2c/imgui/misc/cpp/imgui_stdlib.cpp new file mode 100644 index 0000000..cf69aa8 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/cpp/imgui_stdlib.cpp @@ -0,0 +1,85 @@ +// dear imgui: wrappers for C++ standard library (STL) types (std::string, etc.) +// This is also an example of how you may wrap your own similar types. + +// Changelog: +// - v0.10: Initial version. Added InputText() / InputTextMultiline() calls with std::string + +// See more C++ related extension (fmt, RAII, syntaxis sugar) on Wiki: +// https://github.com/ocornut/imgui/wiki/Useful-Extensions#cness + +#include "imgui.h" +#include "imgui_stdlib.h" + +// Clang warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#endif + +struct InputTextCallback_UserData +{ + std::string* Str; + ImGuiInputTextCallback ChainCallback; + void* ChainCallbackUserData; +}; + +static int InputTextCallback(ImGuiInputTextCallbackData* data) +{ + InputTextCallback_UserData* user_data = (InputTextCallback_UserData*)data->UserData; + if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) + { + // Resize string callback + // If for some reason we refuse the new length (BufTextLen) and/or capacity (BufSize) we need to set them back to what we want. + std::string* str = user_data->Str; + IM_ASSERT(data->Buf == str->c_str()); + str->resize(data->BufTextLen); + data->Buf = (char*)str->c_str(); + } + else if (user_data->ChainCallback) + { + // Forward to user callback, if any + data->UserData = user_data->ChainCallbackUserData; + return user_data->ChainCallback(data); + } + return 0; +} + +bool ImGui::InputText(const char* label, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); + flags |= ImGuiInputTextFlags_CallbackResize; + + InputTextCallback_UserData cb_user_data; + cb_user_data.Str = str; + cb_user_data.ChainCallback = callback; + cb_user_data.ChainCallbackUserData = user_data; + return InputText(label, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data); +} + +bool ImGui::InputTextMultiline(const char* label, std::string* str, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); + flags |= ImGuiInputTextFlags_CallbackResize; + + InputTextCallback_UserData cb_user_data; + cb_user_data.Str = str; + cb_user_data.ChainCallback = callback; + cb_user_data.ChainCallbackUserData = user_data; + return InputTextMultiline(label, (char*)str->c_str(), str->capacity() + 1, size, flags, InputTextCallback, &cb_user_data); +} + +bool ImGui::InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); + flags |= ImGuiInputTextFlags_CallbackResize; + + InputTextCallback_UserData cb_user_data; + cb_user_data.Str = str; + cb_user_data.ChainCallback = callback; + cb_user_data.ChainCallbackUserData = user_data; + return InputTextWithHint(label, hint, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data); +} + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif diff --git a/HexaGen.Tests/cpp2c/imgui/misc/cpp/imgui_stdlib.h b/HexaGen.Tests/cpp2c/imgui/misc/cpp/imgui_stdlib.h new file mode 100644 index 0000000..835a808 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/cpp/imgui_stdlib.h @@ -0,0 +1,21 @@ +// dear imgui: wrappers for C++ standard library (STL) types (std::string, etc.) +// This is also an example of how you may wrap your own similar types. + +// Changelog: +// - v0.10: Initial version. Added InputText() / InputTextMultiline() calls with std::string + +// See more C++ related extension (fmt, RAII, syntaxis sugar) on Wiki: +// https://github.com/ocornut/imgui/wiki/Useful-Extensions#cness + +#pragma once + +#include + +namespace ImGui +{ + // ImGui::InputText() with std::string + // Because text input needs dynamic resizing, we need to setup a callback to grow the capacity + IMGUI_API bool InputText(const char* label, std::string* str, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = nullptr, void* user_data = nullptr); + IMGUI_API bool InputTextMultiline(const char* label, std::string* str, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = nullptr, void* user_data = nullptr); + IMGUI_API bool InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = nullptr, void* user_data = nullptr); +} diff --git a/HexaGen.Tests/cpp2c/imgui/misc/debuggers/README.txt b/HexaGen.Tests/cpp2c/imgui/misc/debuggers/README.txt new file mode 100644 index 0000000..3f4ba83 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/debuggers/README.txt @@ -0,0 +1,16 @@ + +HELPER FILES FOR POPULAR DEBUGGERS + +imgui.gdb + GDB: disable stepping into trivial functions. + (read comments inside file for details) + +imgui.natstepfilter + Visual Studio Debugger: disable stepping into trivial functions. + (read comments inside file for details) + +imgui.natvis + Visual Studio Debugger: describe Dear ImGui types for better display. + With this, types like ImVector<> will be displayed nicely in the debugger. + (read comments inside file for details) + diff --git a/HexaGen.Tests/cpp2c/imgui/misc/debuggers/imgui.gdb b/HexaGen.Tests/cpp2c/imgui/misc/debuggers/imgui.gdb new file mode 100644 index 0000000..000ff6e --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/debuggers/imgui.gdb @@ -0,0 +1,12 @@ +# GDB configuration to aid debugging experience + +# To enable these customizations edit $HOME/.gdbinit (or ./.gdbinit if local gdbinit is enabled) and add: +# add-auto-load-safe-path /path/to/imgui.gdb +# source /path/to/imgui.gdb +# +# More Information at: +# * https://sourceware.org/gdb/current/onlinedocs/gdb/gdbinit-man.html +# * https://sourceware.org/gdb/current/onlinedocs/gdb/Init-File-in-the-Current-Directory.html#Init-File-in-the-Current-Directory + +# Disable stepping into trivial functions +skip -rfunction Im(Vec2|Vec4|Strv|Vector|Span)::.+ diff --git a/HexaGen.Tests/cpp2c/imgui/misc/debuggers/imgui.natstepfilter b/HexaGen.Tests/cpp2c/imgui/misc/debuggers/imgui.natstepfilter new file mode 100644 index 0000000..6825c93 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/debuggers/imgui.natstepfilter @@ -0,0 +1,31 @@ + + + + + + + + (ImVec2|ImVec4|ImStrv)::.+ + NoStepInto + + + (ImVector|ImSpan).*::operator.+ + NoStepInto + + + diff --git a/HexaGen.Tests/cpp2c/imgui/misc/debuggers/imgui.natvis b/HexaGen.Tests/cpp2c/imgui/misc/debuggers/imgui.natvis new file mode 100644 index 0000000..94d17a8 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/debuggers/imgui.natvis @@ -0,0 +1,62 @@ + + + + + + + {{Size={Size} Capacity={Capacity}}} + + + Size + Data + + + + + + {{Size={DataEnd-Data} }} + + + DataEnd-Data + Data + + + + + + {{x={x,g} y={y,g}}} + + + + {{x={x,g} y={y,g} z={z,g} w={w,g}}} + + + + {{Min=({Min.x,g} {Min.y,g}) Max=({Max.x,g} {Max.y,g}) Size=({Max.x-Min.x,g} {Max.y-Min.y,g})}} + + Min + Max + Max.x - Min.x + Max.y - Min.y + + + + + {{Name {Name,s} Active {(Active||WasActive)?1:0,d} Child {(Flags & 0x01000000)?1:0,d} Popup {(Flags & 0x04000000)?1:0,d} Hidden {(Hidden)?1:0,d}} + + + + {{ID {ID,x} Pos=({Pos.x,g} {Pos.y,g}) Size=({Size.x,g} {Size.y,g}) Parent {(ParentNode==0)?0:ParentNode->ID,x} Childs {(ChildNodes[0] != 0)+(ChildNodes[1] != 0)} Windows {Windows.Size} } + + + diff --git a/HexaGen.Tests/cpp2c/imgui/misc/fonts/Cousine-Regular.ttf b/HexaGen.Tests/cpp2c/imgui/misc/fonts/Cousine-Regular.ttf new file mode 100644 index 0000000..70a0bf9 Binary files /dev/null and b/HexaGen.Tests/cpp2c/imgui/misc/fonts/Cousine-Regular.ttf differ diff --git a/HexaGen.Tests/cpp2c/imgui/misc/fonts/DroidSans.ttf b/HexaGen.Tests/cpp2c/imgui/misc/fonts/DroidSans.ttf new file mode 100644 index 0000000..767c63a Binary files /dev/null and b/HexaGen.Tests/cpp2c/imgui/misc/fonts/DroidSans.ttf differ diff --git a/HexaGen.Tests/cpp2c/imgui/misc/fonts/Karla-Regular.ttf b/HexaGen.Tests/cpp2c/imgui/misc/fonts/Karla-Regular.ttf new file mode 100644 index 0000000..81b3de6 Binary files /dev/null and b/HexaGen.Tests/cpp2c/imgui/misc/fonts/Karla-Regular.ttf differ diff --git a/HexaGen.Tests/cpp2c/imgui/misc/fonts/ProggyClean.ttf b/HexaGen.Tests/cpp2c/imgui/misc/fonts/ProggyClean.ttf new file mode 100644 index 0000000..0270cdf Binary files /dev/null and b/HexaGen.Tests/cpp2c/imgui/misc/fonts/ProggyClean.ttf differ diff --git a/HexaGen.Tests/cpp2c/imgui/misc/fonts/ProggyTiny.ttf b/HexaGen.Tests/cpp2c/imgui/misc/fonts/ProggyTiny.ttf new file mode 100644 index 0000000..1c4312c Binary files /dev/null and b/HexaGen.Tests/cpp2c/imgui/misc/fonts/ProggyTiny.ttf differ diff --git a/HexaGen.Tests/cpp2c/imgui/misc/fonts/Roboto-Medium.ttf b/HexaGen.Tests/cpp2c/imgui/misc/fonts/Roboto-Medium.ttf new file mode 100644 index 0000000..39c63d7 Binary files /dev/null and b/HexaGen.Tests/cpp2c/imgui/misc/fonts/Roboto-Medium.ttf differ diff --git a/HexaGen.Tests/cpp2c/imgui/misc/fonts/binary_to_compressed_c.cpp b/HexaGen.Tests/cpp2c/imgui/misc/fonts/binary_to_compressed_c.cpp new file mode 100644 index 0000000..f41d20f --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/fonts/binary_to_compressed_c.cpp @@ -0,0 +1,388 @@ +// dear imgui +// (binary_to_compressed_c.cpp) +// Helper tool to turn a file into a C array, if you want to embed font data in your source code. + +// The data is first compressed with stb_compress() to reduce source code size, +// then encoded in Base85 to fit in a string so we can fit roughly 4 bytes of compressed data into 5 bytes of source code (suggested by @mmalex) +// (If we used 32-bit constants it would require take 11 bytes of source code to encode 4 bytes, and be endianness dependent) +// Note that even with compression, the output array is likely to be bigger than the binary file.. +// Load compressed TTF fonts with ImGui::GetIO().Fonts->AddFontFromMemoryCompressedTTF() + +// Build with, e.g: +// # cl.exe binary_to_compressed_c.cpp +// # g++ binary_to_compressed_c.cpp +// # clang++ binary_to_compressed_c.cpp +// You can also find a precompiled Windows binary in the binary/demo package available from https://github.com/ocornut/imgui + +// Usage: +// binary_to_compressed_c.exe [-base85] [-nocompress] [-nostatic] +// Usage example: +// # binary_to_compressed_c.exe myfont.ttf MyFont > myfont.cpp +// # binary_to_compressed_c.exe -base85 myfont.ttf MyFont > myfont.cpp + +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include +#include + +// stb_compress* from stb.h - declaration +typedef unsigned int stb_uint; +typedef unsigned char stb_uchar; +stb_uint stb_compress(stb_uchar* out, stb_uchar* in, stb_uint len); + +static bool binary_to_compressed_c(const char* filename, const char* symbol, bool use_base85_encoding, bool use_compression, bool use_static); + +int main(int argc, char** argv) +{ + if (argc < 3) + { + printf("Syntax: %s [-base85] [-nocompress] [-nostatic] \n", argv[0]); + return 0; + } + + int argn = 1; + bool use_base85_encoding = false; + bool use_compression = true; + bool use_static = true; + while (argn < (argc - 2) && argv[argn][0] == '-') + { + if (strcmp(argv[argn], "-base85") == 0) { use_base85_encoding = true; argn++; } + else if (strcmp(argv[argn], "-nocompress") == 0) { use_compression = false; argn++; } + else if (strcmp(argv[argn], "-nostatic") == 0) { use_static = false; argn++; } + else + { + fprintf(stderr, "Unknown argument: '%s'\n", argv[argn]); + return 1; + } + } + + bool ret = binary_to_compressed_c(argv[argn], argv[argn + 1], use_base85_encoding, use_compression, use_static); + if (!ret) + fprintf(stderr, "Error opening or reading file: '%s'\n", argv[argn]); + return ret ? 0 : 1; +} + +char Encode85Byte(unsigned int x) +{ + x = (x % 85) + 35; + return (char)((x >= '\\') ? x + 1 : x); +} + +bool binary_to_compressed_c(const char* filename, const char* symbol, bool use_base85_encoding, bool use_compression, bool use_static) +{ + // Read file + FILE* f = fopen(filename, "rb"); + if (!f) return false; + int data_sz; + if (fseek(f, 0, SEEK_END) || (data_sz = (int)ftell(f)) == -1 || fseek(f, 0, SEEK_SET)) { fclose(f); return false; } + char* data = new char[data_sz + 4]; + if (fread(data, 1, data_sz, f) != (size_t)data_sz) { fclose(f); delete[] data; return false; } + memset((void*)(((char*)data) + data_sz), 0, 4); + fclose(f); + + // Compress + int maxlen = data_sz + 512 + (data_sz >> 2) + sizeof(int); // total guess + char* compressed = use_compression ? new char[maxlen] : data; + int compressed_sz = use_compression ? stb_compress((stb_uchar*)compressed, (stb_uchar*)data, data_sz) : data_sz; + if (use_compression) + memset(compressed + compressed_sz, 0, maxlen - compressed_sz); + + // Output as Base85 encoded + FILE* out = stdout; + fprintf(out, "// File: '%s' (%d bytes)\n", filename, (int)data_sz); + fprintf(out, "// Exported using binary_to_compressed_c.cpp\n"); + const char* static_str = use_static ? "static " : ""; + const char* compressed_str = use_compression ? "compressed_" : ""; + if (use_base85_encoding) + { + fprintf(out, "%sconst char %s_%sdata_base85[%d+1] =\n \"", static_str, symbol, compressed_str, (int)((compressed_sz + 3) / 4)*5); + char prev_c = 0; + for (int src_i = 0; src_i < compressed_sz; src_i += 4) + { + // This is made a little more complicated by the fact that ??X sequences are interpreted as trigraphs by old C/C++ compilers. So we need to escape pairs of ??. + unsigned int d = *(unsigned int*)(compressed + src_i); + for (unsigned int n5 = 0; n5 < 5; n5++, d /= 85) + { + char c = Encode85Byte(d); + fprintf(out, (c == '?' && prev_c == '?') ? "\\%c" : "%c", c); + prev_c = c; + } + if ((src_i % 112) == 112 - 4) + fprintf(out, "\"\n \""); + } + fprintf(out, "\";\n\n"); + } + else + { + fprintf(out, "%sconst unsigned int %s_%ssize = %d;\n", static_str, symbol, compressed_str, (int)compressed_sz); + fprintf(out, "%sconst unsigned int %s_%sdata[%d/4] =\n{", static_str, symbol, compressed_str, (int)((compressed_sz + 3) / 4)*4); + int column = 0; + for (int i = 0; i < compressed_sz; i += 4) + { + unsigned int d = *(unsigned int*)(compressed + i); + if ((column++ % 12) == 0) + fprintf(out, "\n 0x%08x, ", d); + else + fprintf(out, "0x%08x, ", d); + } + fprintf(out, "\n};\n\n"); + } + + // Cleanup + delete[] data; + if (use_compression) + delete[] compressed; + return true; +} + +// stb_compress* from stb.h - definition + +//////////////////// compressor /////////////////////// + +static stb_uint stb_adler32(stb_uint adler32, stb_uchar *buffer, stb_uint buflen) +{ + const unsigned long ADLER_MOD = 65521; + unsigned long s1 = adler32 & 0xffff, s2 = adler32 >> 16; + unsigned long blocklen, i; + + blocklen = buflen % 5552; + while (buflen) { + for (i=0; i + 7 < blocklen; i += 8) { + s1 += buffer[0], s2 += s1; + s1 += buffer[1], s2 += s1; + s1 += buffer[2], s2 += s1; + s1 += buffer[3], s2 += s1; + s1 += buffer[4], s2 += s1; + s1 += buffer[5], s2 += s1; + s1 += buffer[6], s2 += s1; + s1 += buffer[7], s2 += s1; + + buffer += 8; + } + + for (; i < blocklen; ++i) + s1 += *buffer++, s2 += s1; + + s1 %= ADLER_MOD, s2 %= ADLER_MOD; + buflen -= blocklen; + blocklen = 5552; + } + return (s2 << 16) + s1; +} + +static unsigned int stb_matchlen(stb_uchar *m1, stb_uchar *m2, stb_uint maxlen) +{ + stb_uint i; + for (i=0; i < maxlen; ++i) + if (m1[i] != m2[i]) return i; + return i; +} + +// simple implementation that just takes the source data in a big block + +static stb_uchar *stb__out; +static FILE *stb__outfile; +static stb_uint stb__outbytes; + +static void stb__write(unsigned char v) +{ + fputc(v, stb__outfile); + ++stb__outbytes; +} + +//#define stb_out(v) (stb__out ? *stb__out++ = (stb_uchar) (v) : stb__write((stb_uchar) (v))) +#define stb_out(v) do { if (stb__out) *stb__out++ = (stb_uchar) (v); else stb__write((stb_uchar) (v)); } while (0) + +static void stb_out2(stb_uint v) { stb_out(v >> 8); stb_out(v); } +static void stb_out3(stb_uint v) { stb_out(v >> 16); stb_out(v >> 8); stb_out(v); } +static void stb_out4(stb_uint v) { stb_out(v >> 24); stb_out(v >> 16); stb_out(v >> 8 ); stb_out(v); } + +static void outliterals(stb_uchar *in, int numlit) +{ + while (numlit > 65536) { + outliterals(in,65536); + in += 65536; + numlit -= 65536; + } + + if (numlit == 0) ; + else if (numlit <= 32) stb_out (0x000020 + numlit-1); + else if (numlit <= 2048) stb_out2(0x000800 + numlit-1); + else /* numlit <= 65536) */ stb_out3(0x070000 + numlit-1); + + if (stb__out) { + memcpy(stb__out,in,numlit); + stb__out += numlit; + } else + fwrite(in, 1, numlit, stb__outfile); +} + +static int stb__window = 0x40000; // 256K + +static int stb_not_crap(int best, int dist) +{ + return ((best > 2 && dist <= 0x00100) + || (best > 5 && dist <= 0x04000) + || (best > 7 && dist <= 0x80000)); +} + +static stb_uint stb__hashsize = 32768; + +// note that you can play with the hashing functions all you +// want without needing to change the decompressor +#define stb__hc(q,h,c) (((h) << 7) + ((h) >> 25) + q[c]) +#define stb__hc2(q,h,c,d) (((h) << 14) + ((h) >> 18) + (q[c] << 7) + q[d]) +#define stb__hc3(q,c,d,e) ((q[c] << 14) + (q[d] << 7) + q[e]) + +static unsigned int stb__running_adler; + +static int stb_compress_chunk(stb_uchar *history, + stb_uchar *start, + stb_uchar *end, + int length, + int *pending_literals, + stb_uchar **chash, + stb_uint mask) +{ + (void)history; + int window = stb__window; + stb_uint match_max; + stb_uchar *lit_start = start - *pending_literals; + stb_uchar *q = start; + +#define STB__SCRAMBLE(h) (((h) + ((h) >> 16)) & mask) + + // stop short of the end so we don't scan off the end doing + // the hashing; this means we won't compress the last few bytes + // unless they were part of something longer + while (q < start+length && q+12 < end) { + int m; + stb_uint h1,h2,h3,h4, h; + stb_uchar *t; + int best = 2, dist=0; + + if (q+65536 > end) + match_max = (stb_uint)(end-q); + else + match_max = 65536; + +#define stb__nc(b,d) ((d) <= window && ((b) > 9 || stb_not_crap((int)(b),(int)(d)))) + +#define STB__TRY(t,p) /* avoid retrying a match we already tried */ \ + if (p ? dist != (int)(q-t) : 1) \ + if ((m = stb_matchlen(t, q, match_max)) > best) \ + if (stb__nc(m,q-(t))) \ + best = m, dist = (int)(q - (t)) + + // rather than search for all matches, only try 4 candidate locations, + // chosen based on 4 different hash functions of different lengths. + // this strategy is inspired by LZO; hashing is unrolled here using the + // 'hc' macro + h = stb__hc3(q,0, 1, 2); h1 = STB__SCRAMBLE(h); + t = chash[h1]; if (t) STB__TRY(t,0); + h = stb__hc2(q,h, 3, 4); h2 = STB__SCRAMBLE(h); + h = stb__hc2(q,h, 5, 6); t = chash[h2]; if (t) STB__TRY(t,1); + h = stb__hc2(q,h, 7, 8); h3 = STB__SCRAMBLE(h); + h = stb__hc2(q,h, 9,10); t = chash[h3]; if (t) STB__TRY(t,1); + h = stb__hc2(q,h,11,12); h4 = STB__SCRAMBLE(h); + t = chash[h4]; if (t) STB__TRY(t,1); + + // because we use a shared hash table, can only update it + // _after_ we've probed all of them + chash[h1] = chash[h2] = chash[h3] = chash[h4] = q; + + if (best > 2) + assert(dist > 0); + + // see if our best match qualifies + if (best < 3) { // fast path literals + ++q; + } else if (best > 2 && best <= 0x80 && dist <= 0x100) { + outliterals(lit_start, (int)(q-lit_start)); lit_start = (q += best); + stb_out(0x80 + best-1); + stb_out(dist-1); + } else if (best > 5 && best <= 0x100 && dist <= 0x4000) { + outliterals(lit_start, (int)(q-lit_start)); lit_start = (q += best); + stb_out2(0x4000 + dist-1); + stb_out(best-1); + } else if (best > 7 && best <= 0x100 && dist <= 0x80000) { + outliterals(lit_start, (int)(q-lit_start)); lit_start = (q += best); + stb_out3(0x180000 + dist-1); + stb_out(best-1); + } else if (best > 8 && best <= 0x10000 && dist <= 0x80000) { + outliterals(lit_start, (int)(q-lit_start)); lit_start = (q += best); + stb_out3(0x100000 + dist-1); + stb_out2(best-1); + } else if (best > 9 && dist <= 0x1000000) { + if (best > 65536) best = 65536; + outliterals(lit_start, (int)(q-lit_start)); lit_start = (q += best); + if (best <= 0x100) { + stb_out(0x06); + stb_out3(dist-1); + stb_out(best-1); + } else { + stb_out(0x04); + stb_out3(dist-1); + stb_out2(best-1); + } + } else { // fallback literals if no match was a balanced tradeoff + ++q; + } + } + + // if we didn't get all the way, add the rest to literals + if (q-start < length) + q = start+length; + + // the literals are everything from lit_start to q + *pending_literals = (int)(q - lit_start); + + stb__running_adler = stb_adler32(stb__running_adler, start, (stb_uint)(q - start)); + return (int)(q - start); +} + +static int stb_compress_inner(stb_uchar *input, stb_uint length) +{ + int literals = 0; + stb_uint len,i; + + stb_uchar **chash; + chash = (stb_uchar**) malloc(stb__hashsize * sizeof(stb_uchar*)); + if (chash == nullptr) return 0; // failure + for (i=0; i < stb__hashsize; ++i) + chash[i] = nullptr; + + // stream signature + stb_out(0x57); stb_out(0xbc); + stb_out2(0); + + stb_out4(0); // 64-bit length requires 32-bit leading 0 + stb_out4(length); + stb_out4(stb__window); + + stb__running_adler = 1; + + len = stb_compress_chunk(input, input, input+length, length, &literals, chash, stb__hashsize-1); + assert(len == length); + + outliterals(input+length - literals, literals); + + free(chash); + + stb_out2(0x05fa); // end opcode + + stb_out4(stb__running_adler); + + return 1; // success +} + +stb_uint stb_compress(stb_uchar *out, stb_uchar *input, stb_uint length) +{ + stb__out = out; + stb__outfile = nullptr; + + stb_compress_inner(input, length); + + return (stb_uint)(stb__out - out); +} diff --git a/HexaGen.Tests/cpp2c/imgui/misc/freetype/README.md b/HexaGen.Tests/cpp2c/imgui/misc/freetype/README.md new file mode 100644 index 0000000..275a538 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/freetype/README.md @@ -0,0 +1,44 @@ +# imgui_freetype + +Build font atlases using FreeType instead of stb_truetype (which is the default font rasterizer). +
by @vuhdo, @mikesart, @ocornut. + +### Usage + +1. Get latest FreeType binaries or build yourself (under Windows you may use vcpkg with `vcpkg install freetype --triplet=x64-windows`, `vcpkg integrate install`). +2. Add imgui_freetype.h/cpp alongside your project files. +3. Add `#define IMGUI_ENABLE_FREETYPE` in your [imconfig.h](https://github.com/ocornut/imgui/blob/master/imconfig.h) file + +### About Gamma Correct Blending + +FreeType assumes blending in linear space rather than gamma space. +See FreeType note for [FT_Render_Glyph](https://freetype.org/freetype2/docs/reference/ft2-glyph_retrieval.html#ft_render_glyph). +For correct results you need to be using sRGB and convert to linear space in the pixel shader output. +The default Dear ImGui styles will be impacted by this change (alpha values will need tweaking). + +### Testbed for toying with settings (for developers) + +See https://gist.github.com/ocornut/b3a9ecf13502fd818799a452969649ad + +### Known issues + +- Oversampling settings are ignored but also not so much necessary with the higher quality rendering. + +### Comparison + +Small, thin anti-aliased fonts typically benefit a lot from FreeType's hinting: +![comparing_font_rasterizers](https://user-images.githubusercontent.com/8225057/107550178-fef87f00-6bd0-11eb-8d09-e2edb2f0ccfc.gif) + +### Colorful glyphs/emojis + +You can use the `ImGuiFreeTypeBuilderFlags_LoadColor` flag to load certain colorful glyphs. See the +["Using Colorful Glyphs/Emojis"](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md#using-colorful-glyphsemojis) section of FONTS.md. + +![colored glyphs](https://user-images.githubusercontent.com/8225057/106171241-9dc4ba80-6191-11eb-8a69-ca1467b206d1.png) + +### Using OpenType SVG fonts (SVGinOT) +- *SVG in Open Type* is a standard by Adobe and Mozilla for color OpenType and Open Font Format fonts. It allows font creators to embed complete SVG files within a font enabling full color and even animations. +- Popular fonts such as [twemoji](https://github.com/13rac1/twemoji-color-font) and fonts made with [scfbuild](https://github.com/13rac1/scfbuild) is SVGinOT +- Requires: [lunasvg](https://github.com/sammycage/lunasvg) v2.3.2 and above + 1. Add `#define IMGUI_ENABLE_FREETYPE_LUNASVG` in your `imconfig.h`. + 2. Get latest lunasvg binaries or build yourself. Under Windows you may use vcpkg with: `vcpkg install lunasvg --triplet=x64-windows`. diff --git a/HexaGen.Tests/cpp2c/imgui/misc/freetype/imgui_freetype.cpp b/HexaGen.Tests/cpp2c/imgui/misc/freetype/imgui_freetype.cpp new file mode 100644 index 0000000..2e855de --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/freetype/imgui_freetype.cpp @@ -0,0 +1,944 @@ +// dear imgui: FreeType font builder (used as a replacement for the stb_truetype builder) +// (code) + +// Get the latest version at https://github.com/ocornut/imgui/tree/master/misc/freetype +// Original code by @vuhdo (Aleksei Skriabin). Improvements by @mikesart. Maintained since 2019 by @ocornut. + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023/08/01: added support for SVG fonts, enable by using '#define IMGUI_ENABLE_FREETYPE_LUNASVG' (#6591) +// 2023/01/04: fixed a packing issue which in some occurrences would prevent large amount of glyphs from being packed correctly. +// 2021/08/23: fixed crash when FT_Render_Glyph() fails to render a glyph and returns NULL. +// 2021/03/05: added ImGuiFreeTypeBuilderFlags_Bitmap to load bitmap glyphs. +// 2021/03/02: set 'atlas->TexPixelsUseColors = true' to help some backends with deciding of a prefered texture format. +// 2021/01/28: added support for color-layered glyphs via ImGuiFreeTypeBuilderFlags_LoadColor (require Freetype 2.10+). +// 2021/01/26: simplified integration by using '#define IMGUI_ENABLE_FREETYPE'. renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API. removed ImGuiFreeType::BuildFontAtlas(). +// 2020/06/04: fix for rare case where FT_Get_Char_Index() succeed but FT_Load_Glyph() fails. +// 2019/02/09: added RasterizerFlags::Monochrome flag to disable font anti-aliasing (combine with ::MonoHinting for best results!) +// 2019/01/15: added support for imgui allocators + added FreeType only override function SetAllocatorFunctions(). +// 2019/01/10: re-factored to match big update in STB builder. fixed texture height waste. fixed redundant glyphs when merging. support for glyph padding. +// 2018/06/08: added support for ImFontConfig::GlyphMinAdvanceX, GlyphMaxAdvanceX. +// 2018/02/04: moved to main imgui repository (away from http://www.github.com/ocornut/imgui_club) +// 2018/01/22: fix for addition of ImFontAtlas::TexUvscale member. +// 2017/10/22: minor inconsequential change to match change in master (removed an unnecessary statement). +// 2017/09/26: fixes for imgui internal changes. +// 2017/08/26: cleanup, optimizations, support for ImFontConfig::RasterizerFlags, ImFontConfig::RasterizerMultiply. +// 2017/08/16: imported from https://github.com/Vuhdo/imgui_freetype into http://www.github.com/ocornut/imgui_club, updated for latest changes in ImFontAtlas, minor tweaks. + +// About Gamma Correct Blending: +// - FreeType assumes blending in linear space rather than gamma space. +// - See https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Render_Glyph +// - For correct results you need to be using sRGB and convert to linear space in the pixel shader output. +// - The default dear imgui styles will be impacted by this change (alpha values will need tweaking). + +// FIXME: cfg.OversampleH, OversampleV are not supported (but perhaps not so necessary with this rasterizer). + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_freetype.h" +#include "imgui_internal.h" // ImMin,ImMax,ImFontAtlasBuild*, +#include +#include +#include FT_FREETYPE_H // +#include FT_MODULE_H // +#include FT_GLYPH_H // +#include FT_SYNTHESIS_H // + +#ifdef IMGUI_ENABLE_FREETYPE_LUNASVG +#include FT_OTSVG_H // +#include FT_BBOX_H // +#include +#if !((FREETYPE_MAJOR >= 2) && (FREETYPE_MINOR >= 12)) +#error IMGUI_ENABLE_FREETYPE_LUNASVG requires FreeType version >= 2.12 +#endif +#endif + +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#ifndef __clang__ +#pragma GCC diagnostic ignored "-Wsubobject-linkage" // warning: 'xxxx' has a field 'xxxx' whose type uses the anonymous namespace +#endif +#endif + +//------------------------------------------------------------------------- +// Data +//------------------------------------------------------------------------- + +// Default memory allocators +static void* ImGuiFreeTypeDefaultAllocFunc(size_t size, void* user_data) { IM_UNUSED(user_data); return IM_ALLOC(size); } +static void ImGuiFreeTypeDefaultFreeFunc(void* ptr, void* user_data) { IM_UNUSED(user_data); IM_FREE(ptr); } + +// Current memory allocators +static void* (*GImGuiFreeTypeAllocFunc)(size_t size, void* user_data) = ImGuiFreeTypeDefaultAllocFunc; +static void (*GImGuiFreeTypeFreeFunc)(void* ptr, void* user_data) = ImGuiFreeTypeDefaultFreeFunc; +static void* GImGuiFreeTypeAllocatorUserData = nullptr; + +// Lunasvg support +#ifdef IMGUI_ENABLE_FREETYPE_LUNASVG +static FT_Error ImGuiLunasvgPortInit(FT_Pointer* state); +static void ImGuiLunasvgPortFree(FT_Pointer* state); +static FT_Error ImGuiLunasvgPortRender(FT_GlyphSlot slot, FT_Pointer* _state); +static FT_Error ImGuiLunasvgPortPresetSlot(FT_GlyphSlot slot, FT_Bool cache, FT_Pointer* _state); +#endif + +//------------------------------------------------------------------------- +// Code +//------------------------------------------------------------------------- + +namespace +{ + // Glyph metrics: + // -------------- + // + // xmin xmax + // | | + // |<-------- width -------->| + // | | + // | +-------------------------+----------------- ymax + // | | ggggggggg ggggg | ^ ^ + // | | g:::::::::ggg::::g | | | + // | | g:::::::::::::::::g | | | + // | | g::::::ggggg::::::gg | | | + // | | g:::::g g:::::g | | | + // offsetX -|-------->| g:::::g g:::::g | offsetY | + // | | g:::::g g:::::g | | | + // | | g::::::g g:::::g | | | + // | | g:::::::ggggg:::::g | | | + // | | g::::::::::::::::g | | height + // | | gg::::::::::::::g | | | + // baseline ---*---------|---- gggggggg::::::g-----*-------- | + // / | | g:::::g | | + // origin | | gggggg g:::::g | | + // | | g:::::gg gg:::::g | | + // | | g::::::ggg:::::::g | | + // | | gg:::::::::::::g | | + // | | ggg::::::ggg | | + // | | gggggg | v + // | +-------------------------+----------------- ymin + // | | + // |------------- advanceX ----------->| + + // A structure that describe a glyph. + struct GlyphInfo + { + int Width; // Glyph's width in pixels. + int Height; // Glyph's height in pixels. + FT_Int OffsetX; // The distance from the origin ("pen position") to the left of the glyph. + FT_Int OffsetY; // The distance from the origin to the top of the glyph. This is usually a value < 0. + float AdvanceX; // The distance from the origin to the origin of the next glyph. This is usually a value > 0. + bool IsColored; // The glyph is colored + }; + + // Font parameters and metrics. + struct FontInfo + { + uint32_t PixelHeight; // Size this font was generated with. + float Ascender; // The pixel extents above the baseline in pixels (typically positive). + float Descender; // The extents below the baseline in pixels (typically negative). + float LineSpacing; // The baseline-to-baseline distance. Note that it usually is larger than the sum of the ascender and descender taken as absolute values. There is also no guarantee that no glyphs extend above or below subsequent baselines when using this distance. Think of it as a value the designer of the font finds appropriate. + float LineGap; // The spacing in pixels between one row's descent and the next row's ascent. + float MaxAdvanceWidth; // This field gives the maximum horizontal cursor advance for all glyphs in the font. + }; + + // FreeType glyph rasterizer. + // NB: No ctor/dtor, explicitly call Init()/Shutdown() + struct FreeTypeFont + { + bool InitFont(FT_Library ft_library, const ImFontConfig& cfg, unsigned int extra_user_flags); // Initialize from an external data buffer. Doesn't copy data, and you must ensure it stays valid up to this object lifetime. + void CloseFont(); + void SetPixelHeight(int pixel_height); // Change font pixel size. All following calls to RasterizeGlyph() will use this size + const FT_Glyph_Metrics* LoadGlyph(uint32_t in_codepoint); + const FT_Bitmap* RenderGlyphAndGetInfo(GlyphInfo* out_glyph_info); + void BlitGlyph(const FT_Bitmap* ft_bitmap, uint32_t* dst, uint32_t dst_pitch, unsigned char* multiply_table = nullptr); + ~FreeTypeFont() { CloseFont(); } + + // [Internals] + FontInfo Info; // Font descriptor of the current font. + FT_Face Face; + unsigned int UserFlags; // = ImFontConfig::RasterizerFlags + FT_Int32 LoadFlags; + FT_Render_Mode RenderMode; + }; + + // From SDL_ttf: Handy routines for converting from fixed point + #define FT_CEIL(X) (((X + 63) & -64) / 64) + + bool FreeTypeFont::InitFont(FT_Library ft_library, const ImFontConfig& cfg, unsigned int extra_font_builder_flags) + { + FT_Error error = FT_New_Memory_Face(ft_library, (uint8_t*)cfg.FontData, (uint32_t)cfg.FontDataSize, (uint32_t)cfg.FontNo, &Face); + if (error != 0) + return false; + error = FT_Select_Charmap(Face, FT_ENCODING_UNICODE); + if (error != 0) + return false; + + // Convert to FreeType flags (NB: Bold and Oblique are processed separately) + UserFlags = cfg.FontBuilderFlags | extra_font_builder_flags; + + LoadFlags = 0; + if ((UserFlags & ImGuiFreeTypeBuilderFlags_Bitmap) == 0) + LoadFlags |= FT_LOAD_NO_BITMAP; + + if (UserFlags & ImGuiFreeTypeBuilderFlags_NoHinting) + LoadFlags |= FT_LOAD_NO_HINTING; + if (UserFlags & ImGuiFreeTypeBuilderFlags_NoAutoHint) + LoadFlags |= FT_LOAD_NO_AUTOHINT; + if (UserFlags & ImGuiFreeTypeBuilderFlags_ForceAutoHint) + LoadFlags |= FT_LOAD_FORCE_AUTOHINT; + if (UserFlags & ImGuiFreeTypeBuilderFlags_LightHinting) + LoadFlags |= FT_LOAD_TARGET_LIGHT; + else if (UserFlags & ImGuiFreeTypeBuilderFlags_MonoHinting) + LoadFlags |= FT_LOAD_TARGET_MONO; + else + LoadFlags |= FT_LOAD_TARGET_NORMAL; + + if (UserFlags & ImGuiFreeTypeBuilderFlags_Monochrome) + RenderMode = FT_RENDER_MODE_MONO; + else + RenderMode = FT_RENDER_MODE_NORMAL; + + if (UserFlags & ImGuiFreeTypeBuilderFlags_LoadColor) + LoadFlags |= FT_LOAD_COLOR; + + memset(&Info, 0, sizeof(Info)); + SetPixelHeight((uint32_t)cfg.SizePixels); + + return true; + } + + void FreeTypeFont::CloseFont() + { + if (Face) + { + FT_Done_Face(Face); + Face = nullptr; + } + } + + void FreeTypeFont::SetPixelHeight(int pixel_height) + { + // Vuhdo: I'm not sure how to deal with font sizes properly. As far as I understand, currently ImGui assumes that the 'pixel_height' + // is a maximum height of an any given glyph, i.e. it's the sum of font's ascender and descender. Seems strange to me. + // NB: FT_Set_Pixel_Sizes() doesn't seem to get us the same result. + FT_Size_RequestRec req; + req.type = (UserFlags & ImGuiFreeTypeBuilderFlags_Bitmap) ? FT_SIZE_REQUEST_TYPE_NOMINAL : FT_SIZE_REQUEST_TYPE_REAL_DIM; + req.width = 0; + req.height = (uint32_t)pixel_height * 64; + req.horiResolution = 0; + req.vertResolution = 0; + FT_Request_Size(Face, &req); + + // Update font info + FT_Size_Metrics metrics = Face->size->metrics; + Info.PixelHeight = (uint32_t)pixel_height; + Info.Ascender = (float)FT_CEIL(metrics.ascender); + Info.Descender = (float)FT_CEIL(metrics.descender); + Info.LineSpacing = (float)FT_CEIL(metrics.height); + Info.LineGap = (float)FT_CEIL(metrics.height - metrics.ascender + metrics.descender); + Info.MaxAdvanceWidth = (float)FT_CEIL(metrics.max_advance); + } + + const FT_Glyph_Metrics* FreeTypeFont::LoadGlyph(uint32_t codepoint) + { + uint32_t glyph_index = FT_Get_Char_Index(Face, codepoint); + if (glyph_index == 0) + return nullptr; + + // If this crash for you: FreeType 2.11.0 has a crash bug on some bitmap/colored fonts. + // - https://gitlab.freedesktop.org/freetype/freetype/-/issues/1076 + // - https://github.com/ocornut/imgui/issues/4567 + // - https://github.com/ocornut/imgui/issues/4566 + // You can use FreeType 2.10, or the patched version of 2.11.0 in VcPkg, or probably any upcoming FreeType version. + FT_Error error = FT_Load_Glyph(Face, glyph_index, LoadFlags); + if (error) + return nullptr; + + // Need an outline for this to work + FT_GlyphSlot slot = Face->glyph; +#ifdef IMGUI_ENABLE_FREETYPE_LUNASVG + IM_ASSERT(slot->format == FT_GLYPH_FORMAT_OUTLINE || slot->format == FT_GLYPH_FORMAT_BITMAP || slot->format == FT_GLYPH_FORMAT_SVG); +#else +#if ((FREETYPE_MAJOR >= 2) && (FREETYPE_MINOR >= 12)) + IM_ASSERT(slot->format != FT_GLYPH_FORMAT_SVG && "The font contains SVG glyphs, you'll need to enable IMGUI_ENABLE_FREETYPE_LUNASVG in imconfig.h and install required libraries in order to use this font"); +#endif + IM_ASSERT(slot->format == FT_GLYPH_FORMAT_OUTLINE || slot->format == FT_GLYPH_FORMAT_BITMAP); +#endif // IMGUI_ENABLE_FREETYPE_LUNASVG + + // Apply convenience transform (this is not picking from real "Bold"/"Italic" fonts! Merely applying FreeType helper transform. Oblique == Slanting) + if (UserFlags & ImGuiFreeTypeBuilderFlags_Bold) + FT_GlyphSlot_Embolden(slot); + if (UserFlags & ImGuiFreeTypeBuilderFlags_Oblique) + { + FT_GlyphSlot_Oblique(slot); + //FT_BBox bbox; + //FT_Outline_Get_BBox(&slot->outline, &bbox); + //slot->metrics.width = bbox.xMax - bbox.xMin; + //slot->metrics.height = bbox.yMax - bbox.yMin; + } + + return &slot->metrics; + } + + const FT_Bitmap* FreeTypeFont::RenderGlyphAndGetInfo(GlyphInfo* out_glyph_info) + { + FT_GlyphSlot slot = Face->glyph; + FT_Error error = FT_Render_Glyph(slot, RenderMode); + if (error != 0) + return nullptr; + + FT_Bitmap* ft_bitmap = &Face->glyph->bitmap; + out_glyph_info->Width = (int)ft_bitmap->width; + out_glyph_info->Height = (int)ft_bitmap->rows; + out_glyph_info->OffsetX = Face->glyph->bitmap_left; + out_glyph_info->OffsetY = -Face->glyph->bitmap_top; + out_glyph_info->AdvanceX = (float)FT_CEIL(slot->advance.x); + out_glyph_info->IsColored = (ft_bitmap->pixel_mode == FT_PIXEL_MODE_BGRA); + + return ft_bitmap; + } + + void FreeTypeFont::BlitGlyph(const FT_Bitmap* ft_bitmap, uint32_t* dst, uint32_t dst_pitch, unsigned char* multiply_table) + { + IM_ASSERT(ft_bitmap != nullptr); + const uint32_t w = ft_bitmap->width; + const uint32_t h = ft_bitmap->rows; + const uint8_t* src = ft_bitmap->buffer; + const uint32_t src_pitch = ft_bitmap->pitch; + + switch (ft_bitmap->pixel_mode) + { + case FT_PIXEL_MODE_GRAY: // Grayscale image, 1 byte per pixel. + { + if (multiply_table == nullptr) + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + for (uint32_t x = 0; x < w; x++) + dst[x] = IM_COL32(255, 255, 255, src[x]); + } + else + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + for (uint32_t x = 0; x < w; x++) + dst[x] = IM_COL32(255, 255, 255, multiply_table[src[x]]); + } + break; + } + case FT_PIXEL_MODE_MONO: // Monochrome image, 1 bit per pixel. The bits in each byte are ordered from MSB to LSB. + { + uint8_t color0 = multiply_table ? multiply_table[0] : 0; + uint8_t color1 = multiply_table ? multiply_table[255] : 255; + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + { + uint8_t bits = 0; + const uint8_t* bits_ptr = src; + for (uint32_t x = 0; x < w; x++, bits <<= 1) + { + if ((x & 7) == 0) + bits = *bits_ptr++; + dst[x] = IM_COL32(255, 255, 255, (bits & 0x80) ? color1 : color0); + } + } + break; + } + case FT_PIXEL_MODE_BGRA: + { + // FIXME: Converting pre-multiplied alpha to straight. Doesn't smell good. + #define DE_MULTIPLY(color, alpha) (ImU32)(255.0f * (float)color / (float)alpha + 0.5f) + if (multiply_table == nullptr) + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + for (uint32_t x = 0; x < w; x++) + { + uint8_t r = src[x * 4 + 2], g = src[x * 4 + 1], b = src[x * 4], a = src[x * 4 + 3]; + dst[x] = IM_COL32(DE_MULTIPLY(r, a), DE_MULTIPLY(g, a), DE_MULTIPLY(b, a), a); + } + } + else + { + for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) + { + for (uint32_t x = 0; x < w; x++) + { + uint8_t r = src[x * 4 + 2], g = src[x * 4 + 1], b = src[x * 4], a = src[x * 4 + 3]; + dst[x] = IM_COL32(multiply_table[DE_MULTIPLY(r, a)], multiply_table[DE_MULTIPLY(g, a)], multiply_table[DE_MULTIPLY(b, a)], multiply_table[a]); + } + } + } + #undef DE_MULTIPLY + break; + } + default: + IM_ASSERT(0 && "FreeTypeFont::BlitGlyph(): Unknown bitmap pixel mode!"); + } + } +} // namespace + +#ifndef STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION +#define STBRP_ASSERT(x) do { IM_ASSERT(x); } while (0) +#define STBRP_STATIC +#define STB_RECT_PACK_IMPLEMENTATION +#endif +#ifdef IMGUI_STB_RECT_PACK_FILENAME +#include IMGUI_STB_RECT_PACK_FILENAME +#else +#include "imstb_rectpack.h" +#endif +#endif + +struct ImFontBuildSrcGlyphFT +{ + GlyphInfo Info; + uint32_t Codepoint; + unsigned int* BitmapData; // Point within one of the dst_tmp_bitmap_buffers[] array + + ImFontBuildSrcGlyphFT() { memset((void*)this, 0, sizeof(*this)); } +}; + +struct ImFontBuildSrcDataFT +{ + FreeTypeFont Font; + stbrp_rect* Rects; // Rectangle to pack. We first fill in their size and the packer will give us their position. + const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0x0020..0xFFFF) + int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[] + int GlyphsHighest; // Highest requested codepoint + int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) + ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) + ImVector GlyphsList; +}; + +// Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) +struct ImFontBuildDstDataFT +{ + int SrcCount; // Number of source fonts targeting this destination font. + int GlyphsHighest; + int GlyphsCount; + ImBitVector GlyphsSet; // This is used to resolve collision when multiple sources are merged into a same destination font. +}; + +bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, unsigned int extra_flags) +{ + IM_ASSERT(atlas->ConfigData.Size > 0); + + ImFontAtlasBuildInit(atlas); + + // Clear atlas + atlas->TexID = (ImTextureID)nullptr; + atlas->TexWidth = atlas->TexHeight = 0; + atlas->TexUvScale = ImVec2(0.0f, 0.0f); + atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); + atlas->ClearTexData(); + + // Temporary storage for building + bool src_load_color = false; + ImVector src_tmp_array; + ImVector dst_tmp_array; + src_tmp_array.resize(atlas->ConfigData.Size); + dst_tmp_array.resize(atlas->Fonts.Size); + memset((void*)src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes()); + memset((void*)dst_tmp_array.Data, 0, (size_t)dst_tmp_array.size_in_bytes()); + + // 1. Initialize font loading structure, check font data validity + for (int src_i = 0; src_i < atlas->ConfigData.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + FreeTypeFont& font_face = src_tmp.Font; + IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == atlas)); + + // Find index from cfg.DstFont (we allow the user to set cfg.DstFont. Also it makes casual debugging nicer than when storing indices) + src_tmp.DstIndex = -1; + for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++) + if (cfg.DstFont == atlas->Fonts[output_i]) + src_tmp.DstIndex = output_i; + IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array? + if (src_tmp.DstIndex == -1) + return false; + + // Load font + if (!font_face.InitFont(ft_library, cfg, extra_flags)) + return false; + + // Measure highest codepoints + src_load_color |= (cfg.FontBuilderFlags & ImGuiFreeTypeBuilderFlags_LoadColor) != 0; + ImFontBuildDstDataFT& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault(); + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + { + // Check for valid range. This may also help detect *some* dangling pointers, because a common + // user error is to setup ImFontConfig::GlyphRanges with a pointer to data that isn't persistent. + IM_ASSERT(src_range[0] <= src_range[1]); + src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]); + } + dst_tmp.SrcCount++; + dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest); + } + + // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs. + int total_glyphs_count = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + ImFontBuildDstDataFT& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.GlyphsSet.Create(src_tmp.GlyphsHighest + 1); + if (dst_tmp.GlyphsSet.Storage.empty()) + dst_tmp.GlyphsSet.Create(dst_tmp.GlyphsHighest + 1); + + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + for (int codepoint = src_range[0]; codepoint <= (int)src_range[1]; codepoint++) + { + if (dst_tmp.GlyphsSet.TestBit(codepoint)) // Don't overwrite existing glyphs. We could make this an option (e.g. MergeOverwrite) + continue; + uint32_t glyph_index = FT_Get_Char_Index(src_tmp.Font.Face, codepoint); // It is actually in the font? (FIXME-OPT: We are not storing the glyph_index..) + if (glyph_index == 0) + continue; + + // Add to avail set/counters + src_tmp.GlyphsCount++; + dst_tmp.GlyphsCount++; + src_tmp.GlyphsSet.SetBit(codepoint); + dst_tmp.GlyphsSet.SetBit(codepoint); + total_glyphs_count++; + } + } + + // 3. Unpack our bit map into a flat list (we now have all the Unicode points that we know are requested _and_ available _and_ not overlapping another) + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount); + + IM_ASSERT(sizeof(src_tmp.GlyphsSet.Storage.Data[0]) == sizeof(ImU32)); + const ImU32* it_begin = src_tmp.GlyphsSet.Storage.begin(); + const ImU32* it_end = src_tmp.GlyphsSet.Storage.end(); + for (const ImU32* it = it_begin; it < it_end; it++) + if (ImU32 entries_32 = *it) + for (ImU32 bit_n = 0; bit_n < 32; bit_n++) + if (entries_32 & ((ImU32)1 << bit_n)) + { + ImFontBuildSrcGlyphFT src_glyph; + src_glyph.Codepoint = (ImWchar)(((it - it_begin) << 5) + bit_n); + //src_glyph.GlyphIndex = 0; // FIXME-OPT: We had this info in the previous step and lost it.. + src_tmp.GlyphsList.push_back(src_glyph); + } + src_tmp.GlyphsSet.Clear(); + IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount); + } + for (int dst_i = 0; dst_i < dst_tmp_array.Size; dst_i++) + dst_tmp_array[dst_i].GlyphsSet.Clear(); + dst_tmp_array.clear(); + + // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0) + // (We technically don't need to zero-clear buf_rects, but let's do it for the sake of sanity) + ImVector buf_rects; + buf_rects.resize(total_glyphs_count); + memset(buf_rects.Data, 0, (size_t)buf_rects.size_in_bytes()); + + // Allocate temporary rasterization data buffers. + // We could not find a way to retrieve accurate glyph size without rendering them. + // (e.g. slot->metrics->width not always matching bitmap->width, especially considering the Oblique transform) + // We allocate in chunks of 256 KB to not waste too much extra memory ahead. Hopefully users of FreeType won't mind the temporary allocations. + const int BITMAP_BUFFERS_CHUNK_SIZE = 256 * 1024; + int buf_bitmap_current_used_bytes = 0; + ImVector buf_bitmap_buffers; + buf_bitmap_buffers.push_back((unsigned char*)IM_ALLOC(BITMAP_BUFFERS_CHUNK_SIZE)); + + // 4. Gather glyphs sizes so we can pack them in our virtual canvas. + // 8. Render/rasterize font characters into the texture + int total_surface = 0; + int buf_rects_out_n = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + src_tmp.Rects = &buf_rects[buf_rects_out_n]; + buf_rects_out_n += src_tmp.GlyphsCount; + + // Compute multiply table if requested + const bool multiply_enabled = (cfg.RasterizerMultiply != 1.0f); + unsigned char multiply_table[256]; + if (multiply_enabled) + ImFontAtlasBuildMultiplyCalcLookupTable(multiply_table, cfg.RasterizerMultiply); + + // Gather the sizes of all rectangles we will need to pack + const int padding = atlas->TexGlyphPadding; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++) + { + ImFontBuildSrcGlyphFT& src_glyph = src_tmp.GlyphsList[glyph_i]; + + const FT_Glyph_Metrics* metrics = src_tmp.Font.LoadGlyph(src_glyph.Codepoint); + if (metrics == nullptr) + continue; + + // Render glyph into a bitmap (currently held by FreeType) + const FT_Bitmap* ft_bitmap = src_tmp.Font.RenderGlyphAndGetInfo(&src_glyph.Info); + if (ft_bitmap == nullptr) + continue; + + // Allocate new temporary chunk if needed + const int bitmap_size_in_bytes = src_glyph.Info.Width * src_glyph.Info.Height * 4; + if (buf_bitmap_current_used_bytes + bitmap_size_in_bytes > BITMAP_BUFFERS_CHUNK_SIZE) + { + buf_bitmap_current_used_bytes = 0; + buf_bitmap_buffers.push_back((unsigned char*)IM_ALLOC(BITMAP_BUFFERS_CHUNK_SIZE)); + } + IM_ASSERT(buf_bitmap_current_used_bytes + bitmap_size_in_bytes <= BITMAP_BUFFERS_CHUNK_SIZE); // We could probably allocate custom-sized buffer instead. + + // Blit rasterized pixels to our temporary buffer and keep a pointer to it. + src_glyph.BitmapData = (unsigned int*)(buf_bitmap_buffers.back() + buf_bitmap_current_used_bytes); + buf_bitmap_current_used_bytes += bitmap_size_in_bytes; + src_tmp.Font.BlitGlyph(ft_bitmap, src_glyph.BitmapData, src_glyph.Info.Width, multiply_enabled ? multiply_table : nullptr); + + src_tmp.Rects[glyph_i].w = (stbrp_coord)(src_glyph.Info.Width + padding); + src_tmp.Rects[glyph_i].h = (stbrp_coord)(src_glyph.Info.Height + padding); + total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h; + } + } + + // We need a width for the skyline algorithm, any width! + // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height. + // User can override TexDesiredWidth and TexGlyphPadding if they wish, otherwise we use a simple heuristic to select the width based on expected surface. + const int surface_sqrt = (int)ImSqrt((float)total_surface) + 1; + atlas->TexHeight = 0; + if (atlas->TexDesiredWidth > 0) + atlas->TexWidth = atlas->TexDesiredWidth; + else + atlas->TexWidth = (surface_sqrt >= 4096 * 0.7f) ? 4096 : (surface_sqrt >= 2048 * 0.7f) ? 2048 : (surface_sqrt >= 1024 * 0.7f) ? 1024 : 512; + + // 5. Start packing + // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values). + const int TEX_HEIGHT_MAX = 1024 * 32; + const int num_nodes_for_packing_algorithm = atlas->TexWidth - atlas->TexGlyphPadding; + ImVector pack_nodes; + pack_nodes.resize(num_nodes_for_packing_algorithm); + stbrp_context pack_context; + stbrp_init_target(&pack_context, atlas->TexWidth - atlas->TexGlyphPadding, TEX_HEIGHT_MAX - atlas->TexGlyphPadding, pack_nodes.Data, pack_nodes.Size); + ImFontAtlasBuildPackCustomRects(atlas, &pack_context); + + // 6. Pack each source font. No rendering yet, we are working with rectangles in an infinitely tall texture at this point. + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbrp_pack_rects(&pack_context, src_tmp.Rects, src_tmp.GlyphsCount); + + // Extend texture height and mark missing glyphs as non-packed so we won't render them. + // FIXME: We are not handling packing failure here (would happen if we got off TEX_HEIGHT_MAX or if a single if larger than TexWidth?) + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + if (src_tmp.Rects[glyph_i].was_packed) + atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h); + } + + // 7. Allocate texture + atlas->TexHeight = (atlas->Flags & ImFontAtlasFlags_NoPowerOfTwoHeight) ? (atlas->TexHeight + 1) : ImUpperPowerOfTwo(atlas->TexHeight); + atlas->TexUvScale = ImVec2(1.0f / atlas->TexWidth, 1.0f / atlas->TexHeight); + if (src_load_color) + { + size_t tex_size = (size_t)atlas->TexWidth * atlas->TexHeight * 4; + atlas->TexPixelsRGBA32 = (unsigned int*)IM_ALLOC(tex_size); + memset(atlas->TexPixelsRGBA32, 0, tex_size); + } + else + { + size_t tex_size = (size_t)atlas->TexWidth * atlas->TexHeight * 1; + atlas->TexPixelsAlpha8 = (unsigned char*)IM_ALLOC(tex_size); + memset(atlas->TexPixelsAlpha8, 0, tex_size); + } + + // 8. Copy rasterized font characters back into the main texture + // 9. Setup ImFont and glyphs for runtime + bool tex_use_colors = false; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + // When merging fonts with MergeMode=true: + // - We can have multiple input fonts writing into a same destination font. + // - dst_font->ConfigData is != from cfg which is our source configuration. + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFont* dst_font = cfg.DstFont; + + const float ascent = src_tmp.Font.Info.Ascender; + const float descent = src_tmp.Font.Info.Descender; + ImFontAtlasBuildSetupFont(atlas, dst_font, &cfg, ascent, descent); + const float font_off_x = cfg.GlyphOffset.x; + const float font_off_y = cfg.GlyphOffset.y + IM_ROUND(dst_font->Ascent); + + const int padding = atlas->TexGlyphPadding; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + { + ImFontBuildSrcGlyphFT& src_glyph = src_tmp.GlyphsList[glyph_i]; + stbrp_rect& pack_rect = src_tmp.Rects[glyph_i]; + IM_ASSERT(pack_rect.was_packed); + if (pack_rect.w == 0 && pack_rect.h == 0) + continue; + + GlyphInfo& info = src_glyph.Info; + IM_ASSERT(info.Width + padding <= pack_rect.w); + IM_ASSERT(info.Height + padding <= pack_rect.h); + const int tx = pack_rect.x + padding; + const int ty = pack_rect.y + padding; + + // Register glyph + float x0 = info.OffsetX + font_off_x; + float y0 = info.OffsetY + font_off_y; + float x1 = x0 + info.Width; + float y1 = y0 + info.Height; + float u0 = (tx) / (float)atlas->TexWidth; + float v0 = (ty) / (float)atlas->TexHeight; + float u1 = (tx + info.Width) / (float)atlas->TexWidth; + float v1 = (ty + info.Height) / (float)atlas->TexHeight; + dst_font->AddGlyph(&cfg, (ImWchar)src_glyph.Codepoint, x0, y0, x1, y1, u0, v0, u1, v1, info.AdvanceX); + + ImFontGlyph* dst_glyph = &dst_font->Glyphs.back(); + IM_ASSERT(dst_glyph->Codepoint == src_glyph.Codepoint); + if (src_glyph.Info.IsColored) + dst_glyph->Colored = tex_use_colors = true; + + // Blit from temporary buffer to final texture + size_t blit_src_stride = (size_t)src_glyph.Info.Width; + size_t blit_dst_stride = (size_t)atlas->TexWidth; + unsigned int* blit_src = src_glyph.BitmapData; + if (atlas->TexPixelsAlpha8 != nullptr) + { + unsigned char* blit_dst = atlas->TexPixelsAlpha8 + (ty * blit_dst_stride) + tx; + for (int y = 0; y < info.Height; y++, blit_dst += blit_dst_stride, blit_src += blit_src_stride) + for (int x = 0; x < info.Width; x++) + blit_dst[x] = (unsigned char)((blit_src[x] >> IM_COL32_A_SHIFT) & 0xFF); + } + else + { + unsigned int* blit_dst = atlas->TexPixelsRGBA32 + (ty * blit_dst_stride) + tx; + for (int y = 0; y < info.Height; y++, blit_dst += blit_dst_stride, blit_src += blit_src_stride) + for (int x = 0; x < info.Width; x++) + blit_dst[x] = blit_src[x]; + } + } + + src_tmp.Rects = nullptr; + } + atlas->TexPixelsUseColors = tex_use_colors; + + // Cleanup + for (int buf_i = 0; buf_i < buf_bitmap_buffers.Size; buf_i++) + IM_FREE(buf_bitmap_buffers[buf_i]); + src_tmp_array.clear_destruct(); + + ImFontAtlasBuildFinish(atlas); + + return true; +} + +// FreeType memory allocation callbacks +static void* FreeType_Alloc(FT_Memory /*memory*/, long size) +{ + return GImGuiFreeTypeAllocFunc((size_t)size, GImGuiFreeTypeAllocatorUserData); +} + +static void FreeType_Free(FT_Memory /*memory*/, void* block) +{ + GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); +} + +static void* FreeType_Realloc(FT_Memory /*memory*/, long cur_size, long new_size, void* block) +{ + // Implement realloc() as we don't ask user to provide it. + if (block == nullptr) + return GImGuiFreeTypeAllocFunc((size_t)new_size, GImGuiFreeTypeAllocatorUserData); + + if (new_size == 0) + { + GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); + return nullptr; + } + + if (new_size > cur_size) + { + void* new_block = GImGuiFreeTypeAllocFunc((size_t)new_size, GImGuiFreeTypeAllocatorUserData); + memcpy(new_block, block, (size_t)cur_size); + GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); + return new_block; + } + + return block; +} + +static bool ImFontAtlasBuildWithFreeType(ImFontAtlas* atlas) +{ + // FreeType memory management: https://www.freetype.org/freetype2/docs/design/design-4.html + FT_MemoryRec_ memory_rec = {}; + memory_rec.user = nullptr; + memory_rec.alloc = &FreeType_Alloc; + memory_rec.free = &FreeType_Free; + memory_rec.realloc = &FreeType_Realloc; + + // https://www.freetype.org/freetype2/docs/reference/ft2-module_management.html#FT_New_Library + FT_Library ft_library; + FT_Error error = FT_New_Library(&memory_rec, &ft_library); + if (error != 0) + return false; + + // If you don't call FT_Add_Default_Modules() the rest of code may work, but FreeType won't use our custom allocator. + FT_Add_Default_Modules(ft_library); + +#ifdef IMGUI_ENABLE_FREETYPE_LUNASVG + // Install svg hooks for FreeType + // https://freetype.org/freetype2/docs/reference/ft2-properties.html#svg-hooks + // https://freetype.org/freetype2/docs/reference/ft2-svg_fonts.html#svg_fonts + SVG_RendererHooks hooks = { ImGuiLunasvgPortInit, ImGuiLunasvgPortFree, ImGuiLunasvgPortRender, ImGuiLunasvgPortPresetSlot }; + FT_Property_Set(ft_library, "ot-svg", "svg-hooks", &hooks); +#endif // IMGUI_ENABLE_FREETYPE_LUNASVG + + bool ret = ImFontAtlasBuildWithFreeTypeEx(ft_library, atlas, atlas->FontBuilderFlags); + FT_Done_Library(ft_library); + + return ret; +} + +const ImFontBuilderIO* ImGuiFreeType::GetBuilderForFreeType() +{ + static ImFontBuilderIO io; + io.FontBuilder_Build = ImFontAtlasBuildWithFreeType; + return &io; +} + +void ImGuiFreeType::SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data) +{ + GImGuiFreeTypeAllocFunc = alloc_func; + GImGuiFreeTypeFreeFunc = free_func; + GImGuiFreeTypeAllocatorUserData = user_data; +} + +#ifdef IMGUI_ENABLE_FREETYPE_LUNASVG +// For more details, see https://gitlab.freedesktop.org/freetype/freetype-demos/-/blob/master/src/rsvg-port.c +// The original code from the demo is licensed under CeCILL-C Free Software License Agreement (https://gitlab.freedesktop.org/freetype/freetype/-/blob/master/LICENSE.TXT) +struct LunasvgPortState +{ + FT_Error err = FT_Err_Ok; + lunasvg::Matrix matrix; + std::unique_ptr svg = nullptr; +}; + +static FT_Error ImGuiLunasvgPortInit(FT_Pointer* _state) +{ + *_state = IM_NEW(LunasvgPortState)(); + return FT_Err_Ok; +} + +static void ImGuiLunasvgPortFree(FT_Pointer* _state) +{ + IM_DELETE(*(LunasvgPortState**)_state); +} + +static FT_Error ImGuiLunasvgPortRender(FT_GlyphSlot slot, FT_Pointer* _state) +{ + LunasvgPortState* state = *(LunasvgPortState**)_state; + + // If there was an error while loading the svg in ImGuiLunasvgPortPresetSlot(), the renderer hook still get called, so just returns the error. + if (state->err != FT_Err_Ok) + return state->err; + + // rows is height, pitch (or stride) equals to width * sizeof(int32) + lunasvg::Bitmap bitmap((uint8_t*)slot->bitmap.buffer, slot->bitmap.width, slot->bitmap.rows, slot->bitmap.pitch); + state->svg->setMatrix(state->svg->matrix().identity()); // Reset the svg matrix to the default value + state->svg->render(bitmap, state->matrix); // state->matrix is already scaled and translated + state->err = FT_Err_Ok; + return state->err; +} + +static FT_Error ImGuiLunasvgPortPresetSlot(FT_GlyphSlot slot, FT_Bool cache, FT_Pointer* _state) +{ + FT_SVG_Document document = (FT_SVG_Document)slot->other; + LunasvgPortState* state = *(LunasvgPortState**)_state; + FT_Size_Metrics& metrics = document->metrics; + + // This function is called twice, once in the FT_Load_Glyph() and another right before ImGuiLunasvgPortRender(). + // If it's the latter, don't do anything because it's // already done in the former. + if (cache) + return state->err; + + state->svg = lunasvg::Document::loadFromData((const char*)document->svg_document, document->svg_document_length); + if (state->svg == nullptr) + { + state->err = FT_Err_Invalid_SVG_Document; + return state->err; + } + + lunasvg::Box box = state->svg->box(); + double scale = std::min(metrics.x_ppem / box.w, metrics.y_ppem / box.h); + double xx = (double)document->transform.xx / (1 << 16); + double xy = -(double)document->transform.xy / (1 << 16); + double yx = -(double)document->transform.yx / (1 << 16); + double yy = (double)document->transform.yy / (1 << 16); + double x0 = (double)document->delta.x / 64 * box.w / metrics.x_ppem; + double y0 = -(double)document->delta.y / 64 * box.h / metrics.y_ppem; + + // Scale and transform, we don't translate the svg yet + state->matrix.identity(); + state->matrix.scale(scale, scale); + state->matrix.transform(xx, xy, yx, yy, x0, y0); + state->svg->setMatrix(state->matrix); + + // Pre-translate the matrix for the rendering step + state->matrix.translate(-box.x, -box.y); + + // Get the box again after the transformation + box = state->svg->box(); + + // Calculate the bitmap size + slot->bitmap_left = FT_Int(box.x); + slot->bitmap_top = FT_Int(-box.y); + slot->bitmap.rows = (unsigned int)(ImCeil((float)box.h)); + slot->bitmap.width = (unsigned int)(ImCeil((float)box.w)); + slot->bitmap.pitch = slot->bitmap.width * 4; + slot->bitmap.pixel_mode = FT_PIXEL_MODE_BGRA; + + // Compute all the bearings and set them correctly. The outline is scaled already, we just need to use the bounding box. + double metrics_width = box.w; + double metrics_height = box.h; + double horiBearingX = box.x; + double horiBearingY = -box.y; + double vertBearingX = slot->metrics.horiBearingX / 64.0 - slot->metrics.horiAdvance / 64.0 / 2.0; + double vertBearingY = (slot->metrics.vertAdvance / 64.0 - slot->metrics.height / 64.0) / 2.0; + slot->metrics.width = FT_Pos(IM_ROUND(metrics_width * 64.0)); // Using IM_ROUND() assume width and height are positive + slot->metrics.height = FT_Pos(IM_ROUND(metrics_height * 64.0)); + slot->metrics.horiBearingX = FT_Pos(horiBearingX * 64); + slot->metrics.horiBearingY = FT_Pos(horiBearingY * 64); + slot->metrics.vertBearingX = FT_Pos(vertBearingX * 64); + slot->metrics.vertBearingY = FT_Pos(vertBearingY * 64); + + if (slot->metrics.vertAdvance == 0) + slot->metrics.vertAdvance = FT_Pos(metrics_height * 1.2 * 64.0); + + state->err = FT_Err_Ok; + return state->err; +} + +#endif // #ifdef IMGUI_ENABLE_FREETYPE_LUNASVG + +//----------------------------------------------------------------------------- + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif + +#ifdef _MSC_VER +#pragma warning (pop) +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/misc/freetype/imgui_freetype.h b/HexaGen.Tests/cpp2c/imgui/misc/freetype/imgui_freetype.h new file mode 100644 index 0000000..cc58ba6 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/freetype/imgui_freetype.h @@ -0,0 +1,52 @@ +// dear imgui: FreeType font builder (used as a replacement for the stb_truetype builder) +// (headers) + +#pragma once +#include "imgui.h" // IMGUI_API +#ifndef IMGUI_DISABLE + +// Forward declarations +struct ImFontAtlas; +struct ImFontBuilderIO; + +// Hinting greatly impacts visuals (and glyph sizes). +// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter. +// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h +// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way. +// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer. +// You can set those flags globaly in ImFontAtlas::FontBuilderFlags +// You can set those flags on a per font basis in ImFontConfig::FontBuilderFlags +enum ImGuiFreeTypeBuilderFlags +{ + ImGuiFreeTypeBuilderFlags_NoHinting = 1 << 0, // Disable hinting. This generally generates 'blurrier' bitmap glyphs when the glyph are rendered in any of the anti-aliased modes. + ImGuiFreeTypeBuilderFlags_NoAutoHint = 1 << 1, // Disable auto-hinter. + ImGuiFreeTypeBuilderFlags_ForceAutoHint = 1 << 2, // Indicates that the auto-hinter is preferred over the font's native hinter. + ImGuiFreeTypeBuilderFlags_LightHinting = 1 << 3, // A lighter hinting algorithm for gray-level modes. Many generated glyphs are fuzzier but better resemble their original shape. This is achieved by snapping glyphs to the pixel grid only vertically (Y-axis), as is done by Microsoft's ClearType and Adobe's proprietary font renderer. This preserves inter-glyph spacing in horizontal text. + ImGuiFreeTypeBuilderFlags_MonoHinting = 1 << 4, // Strong hinting algorithm that should only be used for monochrome output. + ImGuiFreeTypeBuilderFlags_Bold = 1 << 5, // Styling: Should we artificially embolden the font? + ImGuiFreeTypeBuilderFlags_Oblique = 1 << 6, // Styling: Should we slant the font, emulating italic style? + ImGuiFreeTypeBuilderFlags_Monochrome = 1 << 7, // Disable anti-aliasing. Combine this with MonoHinting for best results! + ImGuiFreeTypeBuilderFlags_LoadColor = 1 << 8, // Enable FreeType color-layered glyphs + ImGuiFreeTypeBuilderFlags_Bitmap = 1 << 9 // Enable FreeType bitmap glyphs +}; + +namespace ImGuiFreeType +{ + // This is automatically assigned when using '#define IMGUI_ENABLE_FREETYPE'. + // If you need to dynamically select between multiple builders: + // - you can manually assign this builder with 'atlas->FontBuilderIO = ImGuiFreeType::GetBuilderForFreeType()' + // - prefer deep-copying this into your own ImFontBuilderIO instance if you use hot-reloading that messes up static data. + IMGUI_API const ImFontBuilderIO* GetBuilderForFreeType(); + + // Override allocators. By default ImGuiFreeType will use IM_ALLOC()/IM_FREE() + // However, as FreeType does lots of allocations we provide a way for the user to redirect it to a separate memory heap if desired. + IMGUI_API void SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data = nullptr); + + // Obsolete names (will be removed soon) + // Prefer using '#define IMGUI_ENABLE_FREETYPE' +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + static inline bool BuildFontAtlas(ImFontAtlas* atlas, unsigned int flags = 0) { atlas->FontBuilderIO = GetBuilderForFreeType(); atlas->FontBuilderFlags = flags; return atlas->Build(); } +#endif +} + +#endif // #ifndef IMGUI_DISABLE diff --git a/HexaGen.Tests/cpp2c/imgui/misc/single_file/imgui_single_file.h b/HexaGen.Tests/cpp2c/imgui/misc/single_file/imgui_single_file.h new file mode 100644 index 0000000..7ca31e0 --- /dev/null +++ b/HexaGen.Tests/cpp2c/imgui/misc/single_file/imgui_single_file.h @@ -0,0 +1,29 @@ +// dear imgui: single-file wrapper include +// We use this to validate compiling all *.cpp files in a same compilation unit. +// Users of that technique (also called "Unity builds") can generally provide this themselves, +// so we don't really recommend you use this in your projects. + +// Do this: +// #define IMGUI_IMPLEMENTATION +// Before you include this file in *one* C++ file to create the implementation. +// Using this in your project will leak the contents of imgui_internal.h and ImVec2 operators in this compilation unit. + +#ifdef IMGUI_IMPLEMENTATION +#define IMGUI_DEFINE_MATH_OPERATORS +#endif + +#include "../../imgui.h" +#ifdef IMGUI_ENABLE_FREETYPE +#include "../../misc/freetype/imgui_freetype.h" +#endif + +#ifdef IMGUI_IMPLEMENTATION +#include "../../imgui.cpp" +#include "../../imgui_demo.cpp" +#include "../../imgui_draw.cpp" +#include "../../imgui_tables.cpp" +#include "../../imgui_widgets.cpp" +#ifdef IMGUI_ENABLE_FREETYPE +#include "../../misc/freetype/imgui_freetype.cpp" +#endif +#endif diff --git a/HexaGen.Tests/freetype/freetype/ftsnames.h b/HexaGen.Tests/freetype/freetype/ftsnames.h index 1ed5c31..ab2614e 100644 --- a/HexaGen.Tests/freetype/freetype/ftsnames.h +++ b/HexaGen.Tests/freetype/freetype/ftsnames.h @@ -18,13 +18,11 @@ * */ - #ifndef FTSNAMES_H_ #define FTSNAMES_H_ - #include "freetype.h" -#include +#include "ftparams.h" #ifdef FREETYPE_H #error "freetype.h of FreeType 1 has been loaded!" @@ -32,241 +30,229 @@ #error "so that freetype.h of FreeType 2 is found first." #endif - FT_BEGIN_HEADER +/************************************************************************** + * + * @section: + * sfnt_names + * + * @title: + * SFNT Names + * + * @abstract: + * Access the names embedded in TrueType and OpenType files. + * + * @description: + * The TrueType and OpenType specifications allow the inclusion of a + * special names table ('name') in font files. This table contains + * textual (and internationalized) information regarding the font, like + * family name, copyright, version, etc. + * + * The definitions below are used to access them if available. + * + * Note that this has nothing to do with glyph names! + * + */ - /************************************************************************** - * - * @section: - * sfnt_names - * - * @title: - * SFNT Names - * - * @abstract: - * Access the names embedded in TrueType and OpenType files. - * - * @description: - * The TrueType and OpenType specifications allow the inclusion of a - * special names table ('name') in font files. This table contains - * textual (and internationalized) information regarding the font, like - * family name, copyright, version, etc. - * - * The definitions below are used to access them if available. - * - * Note that this has nothing to do with glyph names! - * - */ - - - /************************************************************************** - * - * @struct: - * FT_SfntName - * - * @description: - * A structure used to model an SFNT 'name' table entry. - * - * @fields: - * platform_id :: - * The platform ID for `string`. See @TT_PLATFORM_XXX for possible - * values. - * - * encoding_id :: - * The encoding ID for `string`. See @TT_APPLE_ID_XXX, @TT_MAC_ID_XXX, - * @TT_ISO_ID_XXX, @TT_MS_ID_XXX, and @TT_ADOBE_ID_XXX for possible - * values. - * - * language_id :: - * The language ID for `string`. See @TT_MAC_LANGID_XXX and - * @TT_MS_LANGID_XXX for possible values. - * - * Registered OpenType values for `language_id` are always smaller than - * 0x8000; values equal or larger than 0x8000 usually indicate a - * language tag string (introduced in OpenType version 1.6). Use - * function @FT_Get_Sfnt_LangTag with `language_id` as its argument to - * retrieve the associated language tag. - * - * name_id :: - * An identifier for `string`. See @TT_NAME_ID_XXX for possible - * values. - * - * string :: - * The 'name' string. Note that its format differs depending on the - * (platform,encoding) pair, being either a string of bytes (without a - * terminating `NULL` byte) or containing UTF-16BE entities. - * - * string_len :: - * The length of `string` in bytes. - * - * @note: - * Please refer to the TrueType or OpenType specification for more - * details. - */ - typedef struct FT_SfntName_ - { - FT_UShort platform_id; - FT_UShort encoding_id; - FT_UShort language_id; - FT_UShort name_id; - - FT_Byte* string; /* this string is *not* null-terminated! */ - FT_UInt string_len; /* in bytes */ - - } FT_SfntName; - - - /************************************************************************** - * - * @function: - * FT_Get_Sfnt_Name_Count - * - * @description: - * Retrieve the number of name strings in the SFNT 'name' table. - * - * @input: - * face :: - * A handle to the source face. - * - * @return: - * The number of strings in the 'name' table. - * - * @note: - * This function always returns an error if the config macro - * `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`. - */ - FT_EXPORT( FT_UInt ) - FT_Get_Sfnt_Name_Count( FT_Face face ); - - - /************************************************************************** - * - * @function: - * FT_Get_Sfnt_Name - * - * @description: - * Retrieve a string of the SFNT 'name' table for a given index. - * - * @input: - * face :: - * A handle to the source face. - * - * idx :: - * The index of the 'name' string. - * - * @output: - * aname :: - * The indexed @FT_SfntName structure. - * - * @return: - * FreeType error code. 0~means success. - * - * @note: - * The `string` array returned in the `aname` structure is not - * null-terminated. Note that you don't have to deallocate `string` by - * yourself; FreeType takes care of it if you call @FT_Done_Face. - * - * Use @FT_Get_Sfnt_Name_Count to get the total number of available - * 'name' table entries, then do a loop until you get the right platform, - * encoding, and name ID. - * - * 'name' table format~1 entries can use language tags also, see - * @FT_Get_Sfnt_LangTag. - * - * This function always returns an error if the config macro - * `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`. - */ - FT_EXPORT( FT_Error ) - FT_Get_Sfnt_Name( FT_Face face, - FT_UInt idx, - FT_SfntName *aname ); - - - /************************************************************************** - * - * @struct: - * FT_SfntLangTag - * - * @description: - * A structure to model a language tag entry from an SFNT 'name' table. - * - * @fields: - * string :: - * The language tag string, encoded in UTF-16BE (without trailing - * `NULL` bytes). - * - * string_len :: - * The length of `string` in **bytes**. - * - * @note: - * Please refer to the TrueType or OpenType specification for more - * details. - * - * @since: - * 2.8 - */ - typedef struct FT_SfntLangTag_ - { - FT_Byte* string; /* this string is *not* null-terminated! */ - FT_UInt string_len; /* in bytes */ + /************************************************************************** + * + * @struct: + * FT_SfntName + * + * @description: + * A structure used to model an SFNT 'name' table entry. + * + * @fields: + * platform_id :: + * The platform ID for `string`. See @TT_PLATFORM_XXX for possible + * values. + * + * encoding_id :: + * The encoding ID for `string`. See @TT_APPLE_ID_XXX, @TT_MAC_ID_XXX, + * @TT_ISO_ID_XXX, @TT_MS_ID_XXX, and @TT_ADOBE_ID_XXX for possible + * values. + * + * language_id :: + * The language ID for `string`. See @TT_MAC_LANGID_XXX and + * @TT_MS_LANGID_XXX for possible values. + * + * Registered OpenType values for `language_id` are always smaller than + * 0x8000; values equal or larger than 0x8000 usually indicate a + * language tag string (introduced in OpenType version 1.6). Use + * function @FT_Get_Sfnt_LangTag with `language_id` as its argument to + * retrieve the associated language tag. + * + * name_id :: + * An identifier for `string`. See @TT_NAME_ID_XXX for possible + * values. + * + * string :: + * The 'name' string. Note that its format differs depending on the + * (platform,encoding) pair, being either a string of bytes (without a + * terminating `NULL` byte) or containing UTF-16BE entities. + * + * string_len :: + * The length of `string` in bytes. + * + * @note: + * Please refer to the TrueType or OpenType specification for more + * details. + */ + typedef struct FT_SfntName_ +{ + FT_UShort platform_id; + FT_UShort encoding_id; + FT_UShort language_id; + FT_UShort name_id; - } FT_SfntLangTag; + FT_Byte* string; /* this string is *not* null-terminated! */ + FT_UInt string_len; /* in bytes */ +} FT_SfntName; +/************************************************************************** + * + * @function: + * FT_Get_Sfnt_Name_Count + * + * @description: + * Retrieve the number of name strings in the SFNT 'name' table. + * + * @input: + * face :: + * A handle to the source face. + * + * @return: + * The number of strings in the 'name' table. + * + * @note: + * This function always returns an error if the config macro + * `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`. + */ +FT_EXPORT(FT_UInt) +FT_Get_Sfnt_Name_Count(FT_Face face); - /************************************************************************** - * - * @function: - * FT_Get_Sfnt_LangTag - * - * @description: - * Retrieve the language tag associated with a language ID of an SFNT - * 'name' table entry. - * - * @input: - * face :: - * A handle to the source face. - * - * langID :: - * The language ID, as returned by @FT_Get_Sfnt_Name. This is always a - * value larger than 0x8000. - * - * @output: - * alangTag :: - * The language tag associated with the 'name' table entry's language - * ID. - * - * @return: - * FreeType error code. 0~means success. - * - * @note: - * The `string` array returned in the `alangTag` structure is not - * null-terminated. Note that you don't have to deallocate `string` by - * yourself; FreeType takes care of it if you call @FT_Done_Face. - * - * Only 'name' table format~1 supports language tags. For format~0 - * tables, this function always returns FT_Err_Invalid_Table. For - * invalid format~1 language ID values, FT_Err_Invalid_Argument is - * returned. - * - * This function always returns an error if the config macro - * `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`. - * - * @since: - * 2.8 - */ - FT_EXPORT( FT_Error ) - FT_Get_Sfnt_LangTag( FT_Face face, - FT_UInt langID, - FT_SfntLangTag *alangTag ); +/************************************************************************** + * + * @function: + * FT_Get_Sfnt_Name + * + * @description: + * Retrieve a string of the SFNT 'name' table for a given index. + * + * @input: + * face :: + * A handle to the source face. + * + * idx :: + * The index of the 'name' string. + * + * @output: + * aname :: + * The indexed @FT_SfntName structure. + * + * @return: + * FreeType error code. 0~means success. + * + * @note: + * The `string` array returned in the `aname` structure is not + * null-terminated. Note that you don't have to deallocate `string` by + * yourself; FreeType takes care of it if you call @FT_Done_Face. + * + * Use @FT_Get_Sfnt_Name_Count to get the total number of available + * 'name' table entries, then do a loop until you get the right platform, + * encoding, and name ID. + * + * 'name' table format~1 entries can use language tags also, see + * @FT_Get_Sfnt_LangTag. + * + * This function always returns an error if the config macro + * `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`. + */ +FT_EXPORT(FT_Error) +FT_Get_Sfnt_Name(FT_Face face, + FT_UInt idx, + FT_SfntName* aname); +/************************************************************************** + * + * @struct: + * FT_SfntLangTag + * + * @description: + * A structure to model a language tag entry from an SFNT 'name' table. + * + * @fields: + * string :: + * The language tag string, encoded in UTF-16BE (without trailing + * `NULL` bytes). + * + * string_len :: + * The length of `string` in **bytes**. + * + * @note: + * Please refer to the TrueType or OpenType specification for more + * details. + * + * @since: + * 2.8 + */ +typedef struct FT_SfntLangTag_ +{ + FT_Byte* string; /* this string is *not* null-terminated! */ + FT_UInt string_len; /* in bytes */ +} FT_SfntLangTag; - /* */ +/************************************************************************** + * + * @function: + * FT_Get_Sfnt_LangTag + * + * @description: + * Retrieve the language tag associated with a language ID of an SFNT + * 'name' table entry. + * + * @input: + * face :: + * A handle to the source face. + * + * langID :: + * The language ID, as returned by @FT_Get_Sfnt_Name. This is always a + * value larger than 0x8000. + * + * @output: + * alangTag :: + * The language tag associated with the 'name' table entry's language + * ID. + * + * @return: + * FreeType error code. 0~means success. + * + * @note: + * The `string` array returned in the `alangTag` structure is not + * null-terminated. Note that you don't have to deallocate `string` by + * yourself; FreeType takes care of it if you call @FT_Done_Face. + * + * Only 'name' table format~1 supports language tags. For format~0 + * tables, this function always returns FT_Err_Invalid_Table. For + * invalid format~1 language ID values, FT_Err_Invalid_Argument is + * returned. + * + * This function always returns an error if the config macro + * `TT_CONFIG_OPTION_SFNT_NAMES` is not defined in `ftoption.h`. + * + * @since: + * 2.8 + */ +FT_EXPORT(FT_Error) +FT_Get_Sfnt_LangTag(FT_Face face, + FT_UInt langID, + FT_SfntLangTag* alangTag); +/* */ FT_END_HEADER #endif /* FTSNAMES_H_ */ - /* END */ diff --git a/HexaGen.Tests/freetype/freetype/ftstroke.h b/HexaGen.Tests/freetype/freetype/ftstroke.h index b3d9080..869c933 100644 --- a/HexaGen.Tests/freetype/freetype/ftstroke.h +++ b/HexaGen.Tests/freetype/freetype/ftstroke.h @@ -15,759 +15,729 @@ * */ - #ifndef FTSTROKE_H_ #define FTSTROKE_H_ -#include -#include - +#include "ftoutln.h" +#include "ftglyph.h" FT_BEGIN_HEADER +/************************************************************************** + * + * @section: + * glyph_stroker + * + * @title: + * Glyph Stroker + * + * @abstract: + * Generating bordered and stroked glyphs. + * + * @description: + * This component generates stroked outlines of a given vectorial glyph. + * It also allows you to retrieve the 'outside' and/or the 'inside' + * borders of the stroke. + * + * This can be useful to generate 'bordered' glyph, i.e., glyphs + * displayed with a colored (and anti-aliased) border around their + * shape. + * + * @order: + * FT_Stroker + * + * FT_Stroker_LineJoin + * FT_Stroker_LineCap + * FT_StrokerBorder + * + * FT_Outline_GetInsideBorder + * FT_Outline_GetOutsideBorder + * + * FT_Glyph_Stroke + * FT_Glyph_StrokeBorder + * + * FT_Stroker_New + * FT_Stroker_Set + * FT_Stroker_Rewind + * FT_Stroker_ParseOutline + * FT_Stroker_Done + * + * FT_Stroker_BeginSubPath + * FT_Stroker_EndSubPath + * + * FT_Stroker_LineTo + * FT_Stroker_ConicTo + * FT_Stroker_CubicTo + * + * FT_Stroker_GetBorderCounts + * FT_Stroker_ExportBorder + * FT_Stroker_GetCounts + * FT_Stroker_Export + * + */ - /************************************************************************** - * - * @section: - * glyph_stroker - * - * @title: - * Glyph Stroker - * - * @abstract: - * Generating bordered and stroked glyphs. - * - * @description: - * This component generates stroked outlines of a given vectorial glyph. - * It also allows you to retrieve the 'outside' and/or the 'inside' - * borders of the stroke. - * - * This can be useful to generate 'bordered' glyph, i.e., glyphs - * displayed with a colored (and anti-aliased) border around their - * shape. - * - * @order: - * FT_Stroker - * - * FT_Stroker_LineJoin - * FT_Stroker_LineCap - * FT_StrokerBorder - * - * FT_Outline_GetInsideBorder - * FT_Outline_GetOutsideBorder - * - * FT_Glyph_Stroke - * FT_Glyph_StrokeBorder - * - * FT_Stroker_New - * FT_Stroker_Set - * FT_Stroker_Rewind - * FT_Stroker_ParseOutline - * FT_Stroker_Done - * - * FT_Stroker_BeginSubPath - * FT_Stroker_EndSubPath - * - * FT_Stroker_LineTo - * FT_Stroker_ConicTo - * FT_Stroker_CubicTo - * - * FT_Stroker_GetBorderCounts - * FT_Stroker_ExportBorder - * FT_Stroker_GetCounts - * FT_Stroker_Export - * - */ - - - /************************************************************************** - * - * @type: - * FT_Stroker - * - * @description: - * Opaque handle to a path stroker object. - */ - typedef struct FT_StrokerRec_* FT_Stroker; - - - /************************************************************************** - * - * @enum: - * FT_Stroker_LineJoin - * - * @description: - * These values determine how two joining lines are rendered in a - * stroker. - * - * @values: - * FT_STROKER_LINEJOIN_ROUND :: - * Used to render rounded line joins. Circular arcs are used to join - * two lines smoothly. - * - * FT_STROKER_LINEJOIN_BEVEL :: - * Used to render beveled line joins. The outer corner of the joined - * lines is filled by enclosing the triangular region of the corner - * with a straight line between the outer corners of each stroke. - * - * FT_STROKER_LINEJOIN_MITER_FIXED :: - * Used to render mitered line joins, with fixed bevels if the miter - * limit is exceeded. The outer edges of the strokes for the two - * segments are extended until they meet at an angle. A bevel join - * (see above) is used if the segments meet at too sharp an angle and - * the outer edges meet beyond a distance corresponding to the meter - * limit. This prevents long spikes being created. - * `FT_STROKER_LINEJOIN_MITER_FIXED` generates a miter line join as - * used in PostScript and PDF. - * - * FT_STROKER_LINEJOIN_MITER_VARIABLE :: - * FT_STROKER_LINEJOIN_MITER :: - * Used to render mitered line joins, with variable bevels if the miter - * limit is exceeded. The intersection of the strokes is clipped - * perpendicularly to the bisector, at a distance corresponding to - * the miter limit. This prevents long spikes being created. - * `FT_STROKER_LINEJOIN_MITER_VARIABLE` generates a mitered line join - * as used in XPS. `FT_STROKER_LINEJOIN_MITER` is an alias for - * `FT_STROKER_LINEJOIN_MITER_VARIABLE`, retained for backward - * compatibility. - */ - typedef enum FT_Stroker_LineJoin_ - { - FT_STROKER_LINEJOIN_ROUND = 0, - FT_STROKER_LINEJOIN_BEVEL = 1, - FT_STROKER_LINEJOIN_MITER_VARIABLE = 2, - FT_STROKER_LINEJOIN_MITER = FT_STROKER_LINEJOIN_MITER_VARIABLE, - FT_STROKER_LINEJOIN_MITER_FIXED = 3 - - } FT_Stroker_LineJoin; - - - /************************************************************************** - * - * @enum: - * FT_Stroker_LineCap - * - * @description: - * These values determine how the end of opened sub-paths are rendered in - * a stroke. - * - * @values: - * FT_STROKER_LINECAP_BUTT :: - * The end of lines is rendered as a full stop on the last point - * itself. - * - * FT_STROKER_LINECAP_ROUND :: - * The end of lines is rendered as a half-circle around the last point. - * - * FT_STROKER_LINECAP_SQUARE :: - * The end of lines is rendered as a square around the last point. - */ - typedef enum FT_Stroker_LineCap_ - { - FT_STROKER_LINECAP_BUTT = 0, - FT_STROKER_LINECAP_ROUND, - FT_STROKER_LINECAP_SQUARE - - } FT_Stroker_LineCap; - - - /************************************************************************** - * - * @enum: - * FT_StrokerBorder - * - * @description: - * These values are used to select a given stroke border in - * @FT_Stroker_GetBorderCounts and @FT_Stroker_ExportBorder. - * - * @values: - * FT_STROKER_BORDER_LEFT :: - * Select the left border, relative to the drawing direction. - * - * FT_STROKER_BORDER_RIGHT :: - * Select the right border, relative to the drawing direction. - * - * @note: - * Applications are generally interested in the 'inside' and 'outside' - * borders. However, there is no direct mapping between these and the - * 'left' and 'right' ones, since this really depends on the glyph's - * drawing orientation, which varies between font formats. - * - * You can however use @FT_Outline_GetInsideBorder and - * @FT_Outline_GetOutsideBorder to get these. - */ - typedef enum FT_StrokerBorder_ - { - FT_STROKER_BORDER_LEFT = 0, - FT_STROKER_BORDER_RIGHT - - } FT_StrokerBorder; - - - /************************************************************************** - * - * @function: - * FT_Outline_GetInsideBorder - * - * @description: - * Retrieve the @FT_StrokerBorder value corresponding to the 'inside' - * borders of a given outline. - * - * @input: - * outline :: - * The source outline handle. - * - * @return: - * The border index. @FT_STROKER_BORDER_RIGHT for empty or invalid - * outlines. - */ - FT_EXPORT( FT_StrokerBorder ) - FT_Outline_GetInsideBorder( FT_Outline* outline ); - - - /************************************************************************** - * - * @function: - * FT_Outline_GetOutsideBorder - * - * @description: - * Retrieve the @FT_StrokerBorder value corresponding to the 'outside' - * borders of a given outline. - * - * @input: - * outline :: - * The source outline handle. - * - * @return: - * The border index. @FT_STROKER_BORDER_LEFT for empty or invalid - * outlines. - */ - FT_EXPORT( FT_StrokerBorder ) - FT_Outline_GetOutsideBorder( FT_Outline* outline ); - - - /************************************************************************** - * - * @function: - * FT_Stroker_New - * - * @description: - * Create a new stroker object. - * - * @input: - * library :: - * FreeType library handle. - * - * @output: - * astroker :: - * A new stroker object handle. `NULL` in case of error. - * - * @return: - * FreeType error code. 0~means success. - */ - FT_EXPORT( FT_Error ) - FT_Stroker_New( FT_Library library, - FT_Stroker *astroker ); - - - /************************************************************************** - * - * @function: - * FT_Stroker_Set - * - * @description: - * Reset a stroker object's attributes. - * - * @input: - * stroker :: - * The target stroker handle. - * - * radius :: - * The border radius. - * - * line_cap :: - * The line cap style. - * - * line_join :: - * The line join style. - * - * miter_limit :: - * The maximum reciprocal sine of half-angle at the miter join, - * expressed as 16.16 fixed-point value. - * - * @note: - * The `radius` is expressed in the same units as the outline - * coordinates. - * - * The `miter_limit` multiplied by the `radius` gives the maximum size - * of a miter spike, at which it is clipped for - * @FT_STROKER_LINEJOIN_MITER_VARIABLE or replaced with a bevel join for - * @FT_STROKER_LINEJOIN_MITER_FIXED. - * - * This function calls @FT_Stroker_Rewind automatically. - */ - FT_EXPORT( void ) - FT_Stroker_Set( FT_Stroker stroker, - FT_Fixed radius, - FT_Stroker_LineCap line_cap, - FT_Stroker_LineJoin line_join, - FT_Fixed miter_limit ); - - - /************************************************************************** - * - * @function: - * FT_Stroker_Rewind - * - * @description: - * Reset a stroker object without changing its attributes. You should - * call this function before beginning a new series of calls to - * @FT_Stroker_BeginSubPath or @FT_Stroker_EndSubPath. - * - * @input: - * stroker :: - * The target stroker handle. - */ - FT_EXPORT( void ) - FT_Stroker_Rewind( FT_Stroker stroker ); - - - /************************************************************************** - * - * @function: - * FT_Stroker_ParseOutline - * - * @description: - * A convenience function used to parse a whole outline with the stroker. - * The resulting outline(s) can be retrieved later by functions like - * @FT_Stroker_GetCounts and @FT_Stroker_Export. - * - * @input: - * stroker :: - * The target stroker handle. - * - * outline :: - * The source outline. - * - * opened :: - * A boolean. If~1, the outline is treated as an open path instead of - * a closed one. - * - * @return: - * FreeType error code. 0~means success. - * - * @note: - * If `opened` is~0 (the default), the outline is treated as a closed - * path, and the stroker generates two distinct 'border' outlines. - * - * If `opened` is~1, the outline is processed as an open path, and the - * stroker generates a single 'stroke' outline. - * - * This function calls @FT_Stroker_Rewind automatically. - */ - FT_EXPORT( FT_Error ) - FT_Stroker_ParseOutline( FT_Stroker stroker, - FT_Outline* outline, - FT_Bool opened ); - - - /************************************************************************** - * - * @function: - * FT_Stroker_BeginSubPath - * - * @description: - * Start a new sub-path in the stroker. - * - * @input: - * stroker :: - * The target stroker handle. - * - * to :: - * A pointer to the start vector. - * - * open :: - * A boolean. If~1, the sub-path is treated as an open one. - * - * @return: - * FreeType error code. 0~means success. - * - * @note: - * This function is useful when you need to stroke a path that is not - * stored as an @FT_Outline object. - */ - FT_EXPORT( FT_Error ) - FT_Stroker_BeginSubPath( FT_Stroker stroker, - FT_Vector* to, - FT_Bool open ); - - - /************************************************************************** - * - * @function: - * FT_Stroker_EndSubPath - * - * @description: - * Close the current sub-path in the stroker. - * - * @input: - * stroker :: - * The target stroker handle. - * - * @return: - * FreeType error code. 0~means success. - * - * @note: - * You should call this function after @FT_Stroker_BeginSubPath. If the - * subpath was not 'opened', this function 'draws' a single line segment - * to the start position when needed. - */ - FT_EXPORT( FT_Error ) - FT_Stroker_EndSubPath( FT_Stroker stroker ); - - - /************************************************************************** - * - * @function: - * FT_Stroker_LineTo - * - * @description: - * 'Draw' a single line segment in the stroker's current sub-path, from - * the last position. - * - * @input: - * stroker :: - * The target stroker handle. - * - * to :: - * A pointer to the destination point. - * - * @return: - * FreeType error code. 0~means success. - * - * @note: - * You should call this function between @FT_Stroker_BeginSubPath and - * @FT_Stroker_EndSubPath. - */ - FT_EXPORT( FT_Error ) - FT_Stroker_LineTo( FT_Stroker stroker, - FT_Vector* to ); - + /************************************************************************** + * + * @type: + * FT_Stroker + * + * @description: + * Opaque handle to a path stroker object. + */ + typedef struct FT_StrokerRec_* FT_Stroker; + +/************************************************************************** + * + * @enum: + * FT_Stroker_LineJoin + * + * @description: + * These values determine how two joining lines are rendered in a + * stroker. + * + * @values: + * FT_STROKER_LINEJOIN_ROUND :: + * Used to render rounded line joins. Circular arcs are used to join + * two lines smoothly. + * + * FT_STROKER_LINEJOIN_BEVEL :: + * Used to render beveled line joins. The outer corner of the joined + * lines is filled by enclosing the triangular region of the corner + * with a straight line between the outer corners of each stroke. + * + * FT_STROKER_LINEJOIN_MITER_FIXED :: + * Used to render mitered line joins, with fixed bevels if the miter + * limit is exceeded. The outer edges of the strokes for the two + * segments are extended until they meet at an angle. A bevel join + * (see above) is used if the segments meet at too sharp an angle and + * the outer edges meet beyond a distance corresponding to the meter + * limit. This prevents long spikes being created. + * `FT_STROKER_LINEJOIN_MITER_FIXED` generates a miter line join as + * used in PostScript and PDF. + * + * FT_STROKER_LINEJOIN_MITER_VARIABLE :: + * FT_STROKER_LINEJOIN_MITER :: + * Used to render mitered line joins, with variable bevels if the miter + * limit is exceeded. The intersection of the strokes is clipped + * perpendicularly to the bisector, at a distance corresponding to + * the miter limit. This prevents long spikes being created. + * `FT_STROKER_LINEJOIN_MITER_VARIABLE` generates a mitered line join + * as used in XPS. `FT_STROKER_LINEJOIN_MITER` is an alias for + * `FT_STROKER_LINEJOIN_MITER_VARIABLE`, retained for backward + * compatibility. + */ +typedef enum FT_Stroker_LineJoin_ +{ + FT_STROKER_LINEJOIN_ROUND = 0, + FT_STROKER_LINEJOIN_BEVEL = 1, + FT_STROKER_LINEJOIN_MITER_VARIABLE = 2, + FT_STROKER_LINEJOIN_MITER = FT_STROKER_LINEJOIN_MITER_VARIABLE, + FT_STROKER_LINEJOIN_MITER_FIXED = 3 +} FT_Stroker_LineJoin; + +/************************************************************************** + * + * @enum: + * FT_Stroker_LineCap + * + * @description: + * These values determine how the end of opened sub-paths are rendered in + * a stroke. + * + * @values: + * FT_STROKER_LINECAP_BUTT :: + * The end of lines is rendered as a full stop on the last point + * itself. + * + * FT_STROKER_LINECAP_ROUND :: + * The end of lines is rendered as a half-circle around the last point. + * + * FT_STROKER_LINECAP_SQUARE :: + * The end of lines is rendered as a square around the last point. + */ +typedef enum FT_Stroker_LineCap_ +{ + FT_STROKER_LINECAP_BUTT = 0, + FT_STROKER_LINECAP_ROUND, + FT_STROKER_LINECAP_SQUARE +} FT_Stroker_LineCap; + +/************************************************************************** + * + * @enum: + * FT_StrokerBorder + * + * @description: + * These values are used to select a given stroke border in + * @FT_Stroker_GetBorderCounts and @FT_Stroker_ExportBorder. + * + * @values: + * FT_STROKER_BORDER_LEFT :: + * Select the left border, relative to the drawing direction. + * + * FT_STROKER_BORDER_RIGHT :: + * Select the right border, relative to the drawing direction. + * + * @note: + * Applications are generally interested in the 'inside' and 'outside' + * borders. However, there is no direct mapping between these and the + * 'left' and 'right' ones, since this really depends on the glyph's + * drawing orientation, which varies between font formats. + * + * You can however use @FT_Outline_GetInsideBorder and + * @FT_Outline_GetOutsideBorder to get these. + */ +typedef enum FT_StrokerBorder_ +{ + FT_STROKER_BORDER_LEFT = 0, + FT_STROKER_BORDER_RIGHT +} FT_StrokerBorder; - /************************************************************************** - * - * @function: - * FT_Stroker_ConicTo - * - * @description: - * 'Draw' a single quadratic Bezier in the stroker's current sub-path, - * from the last position. - * - * @input: - * stroker :: - * The target stroker handle. - * - * control :: - * A pointer to a Bezier control point. - * - * to :: - * A pointer to the destination point. - * - * @return: - * FreeType error code. 0~means success. - * - * @note: - * You should call this function between @FT_Stroker_BeginSubPath and - * @FT_Stroker_EndSubPath. - */ - FT_EXPORT( FT_Error ) - FT_Stroker_ConicTo( FT_Stroker stroker, - FT_Vector* control, - FT_Vector* to ); +/************************************************************************** + * + * @function: + * FT_Outline_GetInsideBorder + * + * @description: + * Retrieve the @FT_StrokerBorder value corresponding to the 'inside' + * borders of a given outline. + * + * @input: + * outline :: + * The source outline handle. + * + * @return: + * The border index. @FT_STROKER_BORDER_RIGHT for empty or invalid + * outlines. + */ +FT_EXPORT(FT_StrokerBorder) +FT_Outline_GetInsideBorder(FT_Outline* outline); +/************************************************************************** + * + * @function: + * FT_Outline_GetOutsideBorder + * + * @description: + * Retrieve the @FT_StrokerBorder value corresponding to the 'outside' + * borders of a given outline. + * + * @input: + * outline :: + * The source outline handle. + * + * @return: + * The border index. @FT_STROKER_BORDER_LEFT for empty or invalid + * outlines. + */ +FT_EXPORT(FT_StrokerBorder) +FT_Outline_GetOutsideBorder(FT_Outline* outline); - /************************************************************************** - * - * @function: - * FT_Stroker_CubicTo - * - * @description: - * 'Draw' a single cubic Bezier in the stroker's current sub-path, from - * the last position. - * - * @input: - * stroker :: - * The target stroker handle. - * - * control1 :: - * A pointer to the first Bezier control point. - * - * control2 :: - * A pointer to second Bezier control point. - * - * to :: - * A pointer to the destination point. - * - * @return: - * FreeType error code. 0~means success. - * - * @note: - * You should call this function between @FT_Stroker_BeginSubPath and - * @FT_Stroker_EndSubPath. - */ - FT_EXPORT( FT_Error ) - FT_Stroker_CubicTo( FT_Stroker stroker, - FT_Vector* control1, - FT_Vector* control2, - FT_Vector* to ); +/************************************************************************** + * + * @function: + * FT_Stroker_New + * + * @description: + * Create a new stroker object. + * + * @input: + * library :: + * FreeType library handle. + * + * @output: + * astroker :: + * A new stroker object handle. `NULL` in case of error. + * + * @return: + * FreeType error code. 0~means success. + */ +FT_EXPORT(FT_Error) +FT_Stroker_New(FT_Library library, + FT_Stroker* astroker); +/************************************************************************** + * + * @function: + * FT_Stroker_Set + * + * @description: + * Reset a stroker object's attributes. + * + * @input: + * stroker :: + * The target stroker handle. + * + * radius :: + * The border radius. + * + * line_cap :: + * The line cap style. + * + * line_join :: + * The line join style. + * + * miter_limit :: + * The maximum reciprocal sine of half-angle at the miter join, + * expressed as 16.16 fixed-point value. + * + * @note: + * The `radius` is expressed in the same units as the outline + * coordinates. + * + * The `miter_limit` multiplied by the `radius` gives the maximum size + * of a miter spike, at which it is clipped for + * @FT_STROKER_LINEJOIN_MITER_VARIABLE or replaced with a bevel join for + * @FT_STROKER_LINEJOIN_MITER_FIXED. + * + * This function calls @FT_Stroker_Rewind automatically. + */ +FT_EXPORT(void) +FT_Stroker_Set(FT_Stroker stroker, + FT_Fixed radius, + FT_Stroker_LineCap line_cap, + FT_Stroker_LineJoin line_join, + FT_Fixed miter_limit); + +/************************************************************************** + * + * @function: + * FT_Stroker_Rewind + * + * @description: + * Reset a stroker object without changing its attributes. You should + * call this function before beginning a new series of calls to + * @FT_Stroker_BeginSubPath or @FT_Stroker_EndSubPath. + * + * @input: + * stroker :: + * The target stroker handle. + */ +FT_EXPORT(void) +FT_Stroker_Rewind(FT_Stroker stroker); - /************************************************************************** - * - * @function: - * FT_Stroker_GetBorderCounts - * - * @description: - * Call this function once you have finished parsing your paths with the - * stroker. It returns the number of points and contours necessary to - * export one of the 'border' or 'stroke' outlines generated by the - * stroker. - * - * @input: - * stroker :: - * The target stroker handle. - * - * border :: - * The border index. - * - * @output: - * anum_points :: - * The number of points. - * - * anum_contours :: - * The number of contours. - * - * @return: - * FreeType error code. 0~means success. - * - * @note: - * When an outline, or a sub-path, is 'closed', the stroker generates two - * independent 'border' outlines, named 'left' and 'right'. - * - * When the outline, or a sub-path, is 'opened', the stroker merges the - * 'border' outlines with caps. The 'left' border receives all points, - * while the 'right' border becomes empty. - * - * Use the function @FT_Stroker_GetCounts instead if you want to retrieve - * the counts associated to both borders. - */ - FT_EXPORT( FT_Error ) - FT_Stroker_GetBorderCounts( FT_Stroker stroker, - FT_StrokerBorder border, - FT_UInt *anum_points, - FT_UInt *anum_contours ); +/************************************************************************** + * + * @function: + * FT_Stroker_ParseOutline + * + * @description: + * A convenience function used to parse a whole outline with the stroker. + * The resulting outline(s) can be retrieved later by functions like + * @FT_Stroker_GetCounts and @FT_Stroker_Export. + * + * @input: + * stroker :: + * The target stroker handle. + * + * outline :: + * The source outline. + * + * opened :: + * A boolean. If~1, the outline is treated as an open path instead of + * a closed one. + * + * @return: + * FreeType error code. 0~means success. + * + * @note: + * If `opened` is~0 (the default), the outline is treated as a closed + * path, and the stroker generates two distinct 'border' outlines. + * + * If `opened` is~1, the outline is processed as an open path, and the + * stroker generates a single 'stroke' outline. + * + * This function calls @FT_Stroker_Rewind automatically. + */ +FT_EXPORT(FT_Error) +FT_Stroker_ParseOutline(FT_Stroker stroker, + FT_Outline* outline, + FT_Bool opened); +/************************************************************************** + * + * @function: + * FT_Stroker_BeginSubPath + * + * @description: + * Start a new sub-path in the stroker. + * + * @input: + * stroker :: + * The target stroker handle. + * + * to :: + * A pointer to the start vector. + * + * open :: + * A boolean. If~1, the sub-path is treated as an open one. + * + * @return: + * FreeType error code. 0~means success. + * + * @note: + * This function is useful when you need to stroke a path that is not + * stored as an @FT_Outline object. + */ +FT_EXPORT(FT_Error) +FT_Stroker_BeginSubPath(FT_Stroker stroker, + FT_Vector* to, + FT_Bool open); - /************************************************************************** - * - * @function: - * FT_Stroker_ExportBorder - * - * @description: - * Call this function after @FT_Stroker_GetBorderCounts to export the - * corresponding border to your own @FT_Outline structure. - * - * Note that this function appends the border points and contours to your - * outline, but does not try to resize its arrays. - * - * @input: - * stroker :: - * The target stroker handle. - * - * border :: - * The border index. - * - * outline :: - * The target outline handle. - * - * @note: - * Always call this function after @FT_Stroker_GetBorderCounts to get - * sure that there is enough room in your @FT_Outline object to receive - * all new data. - * - * When an outline, or a sub-path, is 'closed', the stroker generates two - * independent 'border' outlines, named 'left' and 'right'. - * - * When the outline, or a sub-path, is 'opened', the stroker merges the - * 'border' outlines with caps. The 'left' border receives all points, - * while the 'right' border becomes empty. - * - * Use the function @FT_Stroker_Export instead if you want to retrieve - * all borders at once. - */ - FT_EXPORT( void ) - FT_Stroker_ExportBorder( FT_Stroker stroker, - FT_StrokerBorder border, - FT_Outline* outline ); +/************************************************************************** + * + * @function: + * FT_Stroker_EndSubPath + * + * @description: + * Close the current sub-path in the stroker. + * + * @input: + * stroker :: + * The target stroker handle. + * + * @return: + * FreeType error code. 0~means success. + * + * @note: + * You should call this function after @FT_Stroker_BeginSubPath. If the + * subpath was not 'opened', this function 'draws' a single line segment + * to the start position when needed. + */ +FT_EXPORT(FT_Error) +FT_Stroker_EndSubPath(FT_Stroker stroker); +/************************************************************************** + * + * @function: + * FT_Stroker_LineTo + * + * @description: + * 'Draw' a single line segment in the stroker's current sub-path, from + * the last position. + * + * @input: + * stroker :: + * The target stroker handle. + * + * to :: + * A pointer to the destination point. + * + * @return: + * FreeType error code. 0~means success. + * + * @note: + * You should call this function between @FT_Stroker_BeginSubPath and + * @FT_Stroker_EndSubPath. + */ +FT_EXPORT(FT_Error) +FT_Stroker_LineTo(FT_Stroker stroker, + FT_Vector* to); - /************************************************************************** - * - * @function: - * FT_Stroker_GetCounts - * - * @description: - * Call this function once you have finished parsing your paths with the - * stroker. It returns the number of points and contours necessary to - * export all points/borders from the stroked outline/path. - * - * @input: - * stroker :: - * The target stroker handle. - * - * @output: - * anum_points :: - * The number of points. - * - * anum_contours :: - * The number of contours. - * - * @return: - * FreeType error code. 0~means success. - */ - FT_EXPORT( FT_Error ) - FT_Stroker_GetCounts( FT_Stroker stroker, - FT_UInt *anum_points, - FT_UInt *anum_contours ); +/************************************************************************** + * + * @function: + * FT_Stroker_ConicTo + * + * @description: + * 'Draw' a single quadratic Bezier in the stroker's current sub-path, + * from the last position. + * + * @input: + * stroker :: + * The target stroker handle. + * + * control :: + * A pointer to a Bezier control point. + * + * to :: + * A pointer to the destination point. + * + * @return: + * FreeType error code. 0~means success. + * + * @note: + * You should call this function between @FT_Stroker_BeginSubPath and + * @FT_Stroker_EndSubPath. + */ +FT_EXPORT(FT_Error) +FT_Stroker_ConicTo(FT_Stroker stroker, + FT_Vector* control, + FT_Vector* to); +/************************************************************************** + * + * @function: + * FT_Stroker_CubicTo + * + * @description: + * 'Draw' a single cubic Bezier in the stroker's current sub-path, from + * the last position. + * + * @input: + * stroker :: + * The target stroker handle. + * + * control1 :: + * A pointer to the first Bezier control point. + * + * control2 :: + * A pointer to second Bezier control point. + * + * to :: + * A pointer to the destination point. + * + * @return: + * FreeType error code. 0~means success. + * + * @note: + * You should call this function between @FT_Stroker_BeginSubPath and + * @FT_Stroker_EndSubPath. + */ +FT_EXPORT(FT_Error) +FT_Stroker_CubicTo(FT_Stroker stroker, + FT_Vector* control1, + FT_Vector* control2, + FT_Vector* to); - /************************************************************************** - * - * @function: - * FT_Stroker_Export - * - * @description: - * Call this function after @FT_Stroker_GetBorderCounts to export all - * borders to your own @FT_Outline structure. - * - * Note that this function appends the border points and contours to your - * outline, but does not try to resize its arrays. - * - * @input: - * stroker :: - * The target stroker handle. - * - * outline :: - * The target outline handle. - */ - FT_EXPORT( void ) - FT_Stroker_Export( FT_Stroker stroker, - FT_Outline* outline ); +/************************************************************************** + * + * @function: + * FT_Stroker_GetBorderCounts + * + * @description: + * Call this function once you have finished parsing your paths with the + * stroker. It returns the number of points and contours necessary to + * export one of the 'border' or 'stroke' outlines generated by the + * stroker. + * + * @input: + * stroker :: + * The target stroker handle. + * + * border :: + * The border index. + * + * @output: + * anum_points :: + * The number of points. + * + * anum_contours :: + * The number of contours. + * + * @return: + * FreeType error code. 0~means success. + * + * @note: + * When an outline, or a sub-path, is 'closed', the stroker generates two + * independent 'border' outlines, named 'left' and 'right'. + * + * When the outline, or a sub-path, is 'opened', the stroker merges the + * 'border' outlines with caps. The 'left' border receives all points, + * while the 'right' border becomes empty. + * + * Use the function @FT_Stroker_GetCounts instead if you want to retrieve + * the counts associated to both borders. + */ +FT_EXPORT(FT_Error) +FT_Stroker_GetBorderCounts(FT_Stroker stroker, + FT_StrokerBorder border, + FT_UInt* anum_points, + FT_UInt* anum_contours); +/************************************************************************** + * + * @function: + * FT_Stroker_ExportBorder + * + * @description: + * Call this function after @FT_Stroker_GetBorderCounts to export the + * corresponding border to your own @FT_Outline structure. + * + * Note that this function appends the border points and contours to your + * outline, but does not try to resize its arrays. + * + * @input: + * stroker :: + * The target stroker handle. + * + * border :: + * The border index. + * + * outline :: + * The target outline handle. + * + * @note: + * Always call this function after @FT_Stroker_GetBorderCounts to get + * sure that there is enough room in your @FT_Outline object to receive + * all new data. + * + * When an outline, or a sub-path, is 'closed', the stroker generates two + * independent 'border' outlines, named 'left' and 'right'. + * + * When the outline, or a sub-path, is 'opened', the stroker merges the + * 'border' outlines with caps. The 'left' border receives all points, + * while the 'right' border becomes empty. + * + * Use the function @FT_Stroker_Export instead if you want to retrieve + * all borders at once. + */ +FT_EXPORT(void) +FT_Stroker_ExportBorder(FT_Stroker stroker, + FT_StrokerBorder border, + FT_Outline* outline); - /************************************************************************** - * - * @function: - * FT_Stroker_Done - * - * @description: - * Destroy a stroker object. - * - * @input: - * stroker :: - * A stroker handle. Can be `NULL`. - */ - FT_EXPORT( void ) - FT_Stroker_Done( FT_Stroker stroker ); +/************************************************************************** + * + * @function: + * FT_Stroker_GetCounts + * + * @description: + * Call this function once you have finished parsing your paths with the + * stroker. It returns the number of points and contours necessary to + * export all points/borders from the stroked outline/path. + * + * @input: + * stroker :: + * The target stroker handle. + * + * @output: + * anum_points :: + * The number of points. + * + * anum_contours :: + * The number of contours. + * + * @return: + * FreeType error code. 0~means success. + */ +FT_EXPORT(FT_Error) +FT_Stroker_GetCounts(FT_Stroker stroker, + FT_UInt* anum_points, + FT_UInt* anum_contours); +/************************************************************************** + * + * @function: + * FT_Stroker_Export + * + * @description: + * Call this function after @FT_Stroker_GetBorderCounts to export all + * borders to your own @FT_Outline structure. + * + * Note that this function appends the border points and contours to your + * outline, but does not try to resize its arrays. + * + * @input: + * stroker :: + * The target stroker handle. + * + * outline :: + * The target outline handle. + */ +FT_EXPORT(void) +FT_Stroker_Export(FT_Stroker stroker, + FT_Outline* outline); - /************************************************************************** - * - * @function: - * FT_Glyph_Stroke - * - * @description: - * Stroke a given outline glyph object with a given stroker. - * - * @inout: - * pglyph :: - * Source glyph handle on input, new glyph handle on output. - * - * @input: - * stroker :: - * A stroker handle. - * - * destroy :: - * A Boolean. If~1, the source glyph object is destroyed on success. - * - * @return: - * FreeType error code. 0~means success. - * - * @note: - * The source glyph is untouched in case of error. - * - * Adding stroke may yield a significantly wider and taller glyph - * depending on how large of a radius was used to stroke the glyph. You - * may need to manually adjust horizontal and vertical advance amounts to - * account for this added size. - */ - FT_EXPORT( FT_Error ) - FT_Glyph_Stroke( FT_Glyph *pglyph, - FT_Stroker stroker, - FT_Bool destroy ); +/************************************************************************** + * + * @function: + * FT_Stroker_Done + * + * @description: + * Destroy a stroker object. + * + * @input: + * stroker :: + * A stroker handle. Can be `NULL`. + */ +FT_EXPORT(void) +FT_Stroker_Done(FT_Stroker stroker); +/************************************************************************** + * + * @function: + * FT_Glyph_Stroke + * + * @description: + * Stroke a given outline glyph object with a given stroker. + * + * @inout: + * pglyph :: + * Source glyph handle on input, new glyph handle on output. + * + * @input: + * stroker :: + * A stroker handle. + * + * destroy :: + * A Boolean. If~1, the source glyph object is destroyed on success. + * + * @return: + * FreeType error code. 0~means success. + * + * @note: + * The source glyph is untouched in case of error. + * + * Adding stroke may yield a significantly wider and taller glyph + * depending on how large of a radius was used to stroke the glyph. You + * may need to manually adjust horizontal and vertical advance amounts to + * account for this added size. + */ +FT_EXPORT(FT_Error) +FT_Glyph_Stroke(FT_Glyph* pglyph, + FT_Stroker stroker, + FT_Bool destroy); - /************************************************************************** - * - * @function: - * FT_Glyph_StrokeBorder - * - * @description: - * Stroke a given outline glyph object with a given stroker, but only - * return either its inside or outside border. - * - * @inout: - * pglyph :: - * Source glyph handle on input, new glyph handle on output. - * - * @input: - * stroker :: - * A stroker handle. - * - * inside :: - * A Boolean. If~1, return the inside border, otherwise the outside - * border. - * - * destroy :: - * A Boolean. If~1, the source glyph object is destroyed on success. - * - * @return: - * FreeType error code. 0~means success. - * - * @note: - * The source glyph is untouched in case of error. - * - * Adding stroke may yield a significantly wider and taller glyph - * depending on how large of a radius was used to stroke the glyph. You - * may need to manually adjust horizontal and vertical advance amounts to - * account for this added size. - */ - FT_EXPORT( FT_Error ) - FT_Glyph_StrokeBorder( FT_Glyph *pglyph, - FT_Stroker stroker, - FT_Bool inside, - FT_Bool destroy ); +/************************************************************************** + * + * @function: + * FT_Glyph_StrokeBorder + * + * @description: + * Stroke a given outline glyph object with a given stroker, but only + * return either its inside or outside border. + * + * @inout: + * pglyph :: + * Source glyph handle on input, new glyph handle on output. + * + * @input: + * stroker :: + * A stroker handle. + * + * inside :: + * A Boolean. If~1, return the inside border, otherwise the outside + * border. + * + * destroy :: + * A Boolean. If~1, the source glyph object is destroyed on success. + * + * @return: + * FreeType error code. 0~means success. + * + * @note: + * The source glyph is untouched in case of error. + * + * Adding stroke may yield a significantly wider and taller glyph + * depending on how large of a radius was used to stroke the glyph. You + * may need to manually adjust horizontal and vertical advance amounts to + * account for this added size. + */ +FT_EXPORT(FT_Error) +FT_Glyph_StrokeBorder(FT_Glyph* pglyph, + FT_Stroker stroker, + FT_Bool inside, + FT_Bool destroy); - /* */ +/* */ FT_END_HEADER #endif /* FTSTROKE_H_ */ - /* END */ - /* Local Variables: */ /* coding: utf-8 */ /* End: */ diff --git a/HexaGen.Tests/freetype/generator.json b/HexaGen.Tests/freetype/generator.json index a67b467..fc62522 100644 --- a/HexaGen.Tests/freetype/generator.json +++ b/HexaGen.Tests/freetype/generator.json @@ -48,6 +48,7 @@ "signed char": "sbyte", "char": "byte", "size_t": "nuint", - "bool": "byte" + "bool": "byte", + "FT_Angle": "int" } } \ No newline at end of file diff --git a/HexaGen.Tests/freetype/main.h b/HexaGen.Tests/freetype/main.h index 2311407..4aeba39 100644 --- a/HexaGen.Tests/freetype/main.h +++ b/HexaGen.Tests/freetype/main.h @@ -1,2 +1,13 @@ #include "ft2build.h" #include FT_FREETYPE_H +#include FT_GLYPH_H +#include FT_OUTLINE_H +#include FT_BITMAP_H +#include FT_TRUETYPE_TABLES_H +#include FT_SFNT_NAMES_H +#include FT_BBOX_H +#include FT_STROKER_H +#include FT_SYNTHESIS_H +#include FT_BITMAP_H +#include FT_TRIGONOMETRY_H +#include FT_MODULE_ERRORS_H diff --git a/HexaGen.Tests/opengl/GL.h b/HexaGen.Tests/opengl/GL.h new file mode 100644 index 0000000..2081116 --- /dev/null +++ b/HexaGen.Tests/opengl/GL.h @@ -0,0 +1,1534 @@ +/*++ BUILD Version: 0004 // Increment this if a change has global effects + +Copyright (c) 1985-96, Microsoft Corporation + +Module Name: + + gl.h + +Abstract: + + Procedure declarations, constant definitions and macros for the OpenGL + component. + +--*/ + +#ifndef __gl_h_ +#ifndef __GL_H__ + +#define __gl_h_ +#define __GL_H__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* +** Copyright 1996 Silicon Graphics, Inc. +** All Rights Reserved. +** +** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.; +** the contents of this file may not be disclosed to third parties, copied or +** duplicated in any form, in whole or in part, without the prior written +** permission of Silicon Graphics, Inc. +** +** RESTRICTED RIGHTS LEGEND: +** Use, duplication or disclosure by the Government is subject to restrictions +** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data +** and Computer Software clause at DFARS 252.227-7013, and/or in similar or +** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished - +** rights reserved under the Copyright Laws of the United States. +*/ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef unsigned int GLenum; +typedef unsigned char GLboolean; +typedef unsigned int GLbitfield; +typedef signed char GLbyte; +typedef short GLshort; +typedef int GLint; +typedef int GLsizei; +typedef unsigned char GLubyte; +typedef unsigned short GLushort; +typedef unsigned int GLuint; +typedef float GLfloat; +typedef float GLclampf; +typedef double GLdouble; +typedef double GLclampd; +typedef void GLvoid; + +/*************************************************************/ + +/* Version */ +#define GL_VERSION_1_1 1 + +/* AccumOp */ +#define GL_ACCUM 0x0100 +#define GL_LOAD 0x0101 +#define GL_RETURN 0x0102 +#define GL_MULT 0x0103 +#define GL_ADD 0x0104 + +/* AlphaFunction */ +#define GL_NEVER 0x0200 +#define GL_LESS 0x0201 +#define GL_EQUAL 0x0202 +#define GL_LEQUAL 0x0203 +#define GL_GREATER 0x0204 +#define GL_NOTEQUAL 0x0205 +#define GL_GEQUAL 0x0206 +#define GL_ALWAYS 0x0207 + +/* AttribMask */ +#define GL_CURRENT_BIT 0x00000001 +#define GL_POINT_BIT 0x00000002 +#define GL_LINE_BIT 0x00000004 +#define GL_POLYGON_BIT 0x00000008 +#define GL_POLYGON_STIPPLE_BIT 0x00000010 +#define GL_PIXEL_MODE_BIT 0x00000020 +#define GL_LIGHTING_BIT 0x00000040 +#define GL_FOG_BIT 0x00000080 +#define GL_DEPTH_BUFFER_BIT 0x00000100 +#define GL_ACCUM_BUFFER_BIT 0x00000200 +#define GL_STENCIL_BUFFER_BIT 0x00000400 +#define GL_VIEWPORT_BIT 0x00000800 +#define GL_TRANSFORM_BIT 0x00001000 +#define GL_ENABLE_BIT 0x00002000 +#define GL_COLOR_BUFFER_BIT 0x00004000 +#define GL_HINT_BIT 0x00008000 +#define GL_EVAL_BIT 0x00010000 +#define GL_LIST_BIT 0x00020000 +#define GL_TEXTURE_BIT 0x00040000 +#define GL_SCISSOR_BIT 0x00080000 +#define GL_ALL_ATTRIB_BITS 0x000fffff + +/* BeginMode */ +#define GL_POINTS 0x0000 +#define GL_LINES 0x0001 +#define GL_LINE_LOOP 0x0002 +#define GL_LINE_STRIP 0x0003 +#define GL_TRIANGLES 0x0004 +#define GL_TRIANGLE_STRIP 0x0005 +#define GL_TRIANGLE_FAN 0x0006 +#define GL_QUADS 0x0007 +#define GL_QUAD_STRIP 0x0008 +#define GL_POLYGON 0x0009 + +/* BlendingFactorDest */ +#define GL_ZERO 0 +#define GL_ONE 1 +#define GL_SRC_COLOR 0x0300 +#define GL_ONE_MINUS_SRC_COLOR 0x0301 +#define GL_SRC_ALPHA 0x0302 +#define GL_ONE_MINUS_SRC_ALPHA 0x0303 +#define GL_DST_ALPHA 0x0304 +#define GL_ONE_MINUS_DST_ALPHA 0x0305 + +/* BlendingFactorSrc */ +/* GL_ZERO */ +/* GL_ONE */ +#define GL_DST_COLOR 0x0306 +#define GL_ONE_MINUS_DST_COLOR 0x0307 +#define GL_SRC_ALPHA_SATURATE 0x0308 +/* GL_SRC_ALPHA */ +/* GL_ONE_MINUS_SRC_ALPHA */ +/* GL_DST_ALPHA */ +/* GL_ONE_MINUS_DST_ALPHA */ + +/* Boolean */ +#define GL_TRUE 1 +#define GL_FALSE 0 + +/* ClearBufferMask */ +/* GL_COLOR_BUFFER_BIT */ +/* GL_ACCUM_BUFFER_BIT */ +/* GL_STENCIL_BUFFER_BIT */ +/* GL_DEPTH_BUFFER_BIT */ + +/* ClientArrayType */ +/* GL_VERTEX_ARRAY */ +/* GL_NORMAL_ARRAY */ +/* GL_COLOR_ARRAY */ +/* GL_INDEX_ARRAY */ +/* GL_TEXTURE_COORD_ARRAY */ +/* GL_EDGE_FLAG_ARRAY */ + +/* ClipPlaneName */ +#define GL_CLIP_PLANE0 0x3000 +#define GL_CLIP_PLANE1 0x3001 +#define GL_CLIP_PLANE2 0x3002 +#define GL_CLIP_PLANE3 0x3003 +#define GL_CLIP_PLANE4 0x3004 +#define GL_CLIP_PLANE5 0x3005 + +/* ColorMaterialFace */ +/* GL_FRONT */ +/* GL_BACK */ +/* GL_FRONT_AND_BACK */ + +/* ColorMaterialParameter */ +/* GL_AMBIENT */ +/* GL_DIFFUSE */ +/* GL_SPECULAR */ +/* GL_EMISSION */ +/* GL_AMBIENT_AND_DIFFUSE */ + +/* ColorPointerType */ +/* GL_BYTE */ +/* GL_UNSIGNED_BYTE */ +/* GL_SHORT */ +/* GL_UNSIGNED_SHORT */ +/* GL_INT */ +/* GL_UNSIGNED_INT */ +/* GL_FLOAT */ +/* GL_DOUBLE */ + +/* CullFaceMode */ +/* GL_FRONT */ +/* GL_BACK */ +/* GL_FRONT_AND_BACK */ + +/* DataType */ +#define GL_BYTE 0x1400 +#define GL_UNSIGNED_BYTE 0x1401 +#define GL_SHORT 0x1402 +#define GL_UNSIGNED_SHORT 0x1403 +#define GL_INT 0x1404 +#define GL_UNSIGNED_INT 0x1405 +#define GL_FLOAT 0x1406 +#define GL_2_BYTES 0x1407 +#define GL_3_BYTES 0x1408 +#define GL_4_BYTES 0x1409 +#define GL_DOUBLE 0x140A + +/* DepthFunction */ +/* GL_NEVER */ +/* GL_LESS */ +/* GL_EQUAL */ +/* GL_LEQUAL */ +/* GL_GREATER */ +/* GL_NOTEQUAL */ +/* GL_GEQUAL */ +/* GL_ALWAYS */ + +/* DrawBufferMode */ +#define GL_NONE 0 +#define GL_FRONT_LEFT 0x0400 +#define GL_FRONT_RIGHT 0x0401 +#define GL_BACK_LEFT 0x0402 +#define GL_BACK_RIGHT 0x0403 +#define GL_FRONT 0x0404 +#define GL_BACK 0x0405 +#define GL_LEFT 0x0406 +#define GL_RIGHT 0x0407 +#define GL_FRONT_AND_BACK 0x0408 +#define GL_AUX0 0x0409 +#define GL_AUX1 0x040A +#define GL_AUX2 0x040B +#define GL_AUX3 0x040C + +/* Enable */ +/* GL_FOG */ +/* GL_LIGHTING */ +/* GL_TEXTURE_1D */ +/* GL_TEXTURE_2D */ +/* GL_LINE_STIPPLE */ +/* GL_POLYGON_STIPPLE */ +/* GL_CULL_FACE */ +/* GL_ALPHA_TEST */ +/* GL_BLEND */ +/* GL_INDEX_LOGIC_OP */ +/* GL_COLOR_LOGIC_OP */ +/* GL_DITHER */ +/* GL_STENCIL_TEST */ +/* GL_DEPTH_TEST */ +/* GL_CLIP_PLANE0 */ +/* GL_CLIP_PLANE1 */ +/* GL_CLIP_PLANE2 */ +/* GL_CLIP_PLANE3 */ +/* GL_CLIP_PLANE4 */ +/* GL_CLIP_PLANE5 */ +/* GL_LIGHT0 */ +/* GL_LIGHT1 */ +/* GL_LIGHT2 */ +/* GL_LIGHT3 */ +/* GL_LIGHT4 */ +/* GL_LIGHT5 */ +/* GL_LIGHT6 */ +/* GL_LIGHT7 */ +/* GL_TEXTURE_GEN_S */ +/* GL_TEXTURE_GEN_T */ +/* GL_TEXTURE_GEN_R */ +/* GL_TEXTURE_GEN_Q */ +/* GL_MAP1_VERTEX_3 */ +/* GL_MAP1_VERTEX_4 */ +/* GL_MAP1_COLOR_4 */ +/* GL_MAP1_INDEX */ +/* GL_MAP1_NORMAL */ +/* GL_MAP1_TEXTURE_COORD_1 */ +/* GL_MAP1_TEXTURE_COORD_2 */ +/* GL_MAP1_TEXTURE_COORD_3 */ +/* GL_MAP1_TEXTURE_COORD_4 */ +/* GL_MAP2_VERTEX_3 */ +/* GL_MAP2_VERTEX_4 */ +/* GL_MAP2_COLOR_4 */ +/* GL_MAP2_INDEX */ +/* GL_MAP2_NORMAL */ +/* GL_MAP2_TEXTURE_COORD_1 */ +/* GL_MAP2_TEXTURE_COORD_2 */ +/* GL_MAP2_TEXTURE_COORD_3 */ +/* GL_MAP2_TEXTURE_COORD_4 */ +/* GL_POINT_SMOOTH */ +/* GL_LINE_SMOOTH */ +/* GL_POLYGON_SMOOTH */ +/* GL_SCISSOR_TEST */ +/* GL_COLOR_MATERIAL */ +/* GL_NORMALIZE */ +/* GL_AUTO_NORMAL */ +/* GL_VERTEX_ARRAY */ +/* GL_NORMAL_ARRAY */ +/* GL_COLOR_ARRAY */ +/* GL_INDEX_ARRAY */ +/* GL_TEXTURE_COORD_ARRAY */ +/* GL_EDGE_FLAG_ARRAY */ +/* GL_POLYGON_OFFSET_POINT */ +/* GL_POLYGON_OFFSET_LINE */ +/* GL_POLYGON_OFFSET_FILL */ + +/* ErrorCode */ +#define GL_NO_ERROR 0 +#define GL_INVALID_ENUM 0x0500 +#define GL_INVALID_VALUE 0x0501 +#define GL_INVALID_OPERATION 0x0502 +#define GL_STACK_OVERFLOW 0x0503 +#define GL_STACK_UNDERFLOW 0x0504 +#define GL_OUT_OF_MEMORY 0x0505 + +/* FeedBackMode */ +#define GL_2D 0x0600 +#define GL_3D 0x0601 +#define GL_3D_COLOR 0x0602 +#define GL_3D_COLOR_TEXTURE 0x0603 +#define GL_4D_COLOR_TEXTURE 0x0604 + +/* FeedBackToken */ +#define GL_PASS_THROUGH_TOKEN 0x0700 +#define GL_POINT_TOKEN 0x0701 +#define GL_LINE_TOKEN 0x0702 +#define GL_POLYGON_TOKEN 0x0703 +#define GL_BITMAP_TOKEN 0x0704 +#define GL_DRAW_PIXEL_TOKEN 0x0705 +#define GL_COPY_PIXEL_TOKEN 0x0706 +#define GL_LINE_RESET_TOKEN 0x0707 + +/* FogMode */ +/* GL_LINEAR */ +#define GL_EXP 0x0800 +#define GL_EXP2 0x0801 + + +/* FogParameter */ +/* GL_FOG_COLOR */ +/* GL_FOG_DENSITY */ +/* GL_FOG_END */ +/* GL_FOG_INDEX */ +/* GL_FOG_MODE */ +/* GL_FOG_START */ + +/* FrontFaceDirection */ +#define GL_CW 0x0900 +#define GL_CCW 0x0901 + +/* GetMapTarget */ +#define GL_COEFF 0x0A00 +#define GL_ORDER 0x0A01 +#define GL_DOMAIN 0x0A02 + +/* GetPixelMap */ +/* GL_PIXEL_MAP_I_TO_I */ +/* GL_PIXEL_MAP_S_TO_S */ +/* GL_PIXEL_MAP_I_TO_R */ +/* GL_PIXEL_MAP_I_TO_G */ +/* GL_PIXEL_MAP_I_TO_B */ +/* GL_PIXEL_MAP_I_TO_A */ +/* GL_PIXEL_MAP_R_TO_R */ +/* GL_PIXEL_MAP_G_TO_G */ +/* GL_PIXEL_MAP_B_TO_B */ +/* GL_PIXEL_MAP_A_TO_A */ + +/* GetPointerTarget */ +/* GL_VERTEX_ARRAY_POINTER */ +/* GL_NORMAL_ARRAY_POINTER */ +/* GL_COLOR_ARRAY_POINTER */ +/* GL_INDEX_ARRAY_POINTER */ +/* GL_TEXTURE_COORD_ARRAY_POINTER */ +/* GL_EDGE_FLAG_ARRAY_POINTER */ + +/* GetTarget */ +#define GL_CURRENT_COLOR 0x0B00 +#define GL_CURRENT_INDEX 0x0B01 +#define GL_CURRENT_NORMAL 0x0B02 +#define GL_CURRENT_TEXTURE_COORDS 0x0B03 +#define GL_CURRENT_RASTER_COLOR 0x0B04 +#define GL_CURRENT_RASTER_INDEX 0x0B05 +#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 +#define GL_CURRENT_RASTER_POSITION 0x0B07 +#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08 +#define GL_CURRENT_RASTER_DISTANCE 0x0B09 +#define GL_POINT_SMOOTH 0x0B10 +#define GL_POINT_SIZE 0x0B11 +#define GL_POINT_SIZE_RANGE 0x0B12 +#define GL_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_LINE_SMOOTH 0x0B20 +#define GL_LINE_WIDTH 0x0B21 +#define GL_LINE_WIDTH_RANGE 0x0B22 +#define GL_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_LINE_STIPPLE 0x0B24 +#define GL_LINE_STIPPLE_PATTERN 0x0B25 +#define GL_LINE_STIPPLE_REPEAT 0x0B26 +#define GL_LIST_MODE 0x0B30 +#define GL_MAX_LIST_NESTING 0x0B31 +#define GL_LIST_BASE 0x0B32 +#define GL_LIST_INDEX 0x0B33 +#define GL_POLYGON_MODE 0x0B40 +#define GL_POLYGON_SMOOTH 0x0B41 +#define GL_POLYGON_STIPPLE 0x0B42 +#define GL_EDGE_FLAG 0x0B43 +#define GL_CULL_FACE 0x0B44 +#define GL_CULL_FACE_MODE 0x0B45 +#define GL_FRONT_FACE 0x0B46 +#define GL_LIGHTING 0x0B50 +#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 +#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 +#define GL_LIGHT_MODEL_AMBIENT 0x0B53 +#define GL_SHADE_MODEL 0x0B54 +#define GL_COLOR_MATERIAL_FACE 0x0B55 +#define GL_COLOR_MATERIAL_PARAMETER 0x0B56 +#define GL_COLOR_MATERIAL 0x0B57 +#define GL_FOG 0x0B60 +#define GL_FOG_INDEX 0x0B61 +#define GL_FOG_DENSITY 0x0B62 +#define GL_FOG_START 0x0B63 +#define GL_FOG_END 0x0B64 +#define GL_FOG_MODE 0x0B65 +#define GL_FOG_COLOR 0x0B66 +#define GL_DEPTH_RANGE 0x0B70 +#define GL_DEPTH_TEST 0x0B71 +#define GL_DEPTH_WRITEMASK 0x0B72 +#define GL_DEPTH_CLEAR_VALUE 0x0B73 +#define GL_DEPTH_FUNC 0x0B74 +#define GL_ACCUM_CLEAR_VALUE 0x0B80 +#define GL_STENCIL_TEST 0x0B90 +#define GL_STENCIL_CLEAR_VALUE 0x0B91 +#define GL_STENCIL_FUNC 0x0B92 +#define GL_STENCIL_VALUE_MASK 0x0B93 +#define GL_STENCIL_FAIL 0x0B94 +#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 +#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 +#define GL_STENCIL_REF 0x0B97 +#define GL_STENCIL_WRITEMASK 0x0B98 +#define GL_MATRIX_MODE 0x0BA0 +#define GL_NORMALIZE 0x0BA1 +#define GL_VIEWPORT 0x0BA2 +#define GL_MODELVIEW_STACK_DEPTH 0x0BA3 +#define GL_PROJECTION_STACK_DEPTH 0x0BA4 +#define GL_TEXTURE_STACK_DEPTH 0x0BA5 +#define GL_MODELVIEW_MATRIX 0x0BA6 +#define GL_PROJECTION_MATRIX 0x0BA7 +#define GL_TEXTURE_MATRIX 0x0BA8 +#define GL_ATTRIB_STACK_DEPTH 0x0BB0 +#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 +#define GL_ALPHA_TEST 0x0BC0 +#define GL_ALPHA_TEST_FUNC 0x0BC1 +#define GL_ALPHA_TEST_REF 0x0BC2 +#define GL_DITHER 0x0BD0 +#define GL_BLEND_DST 0x0BE0 +#define GL_BLEND_SRC 0x0BE1 +#define GL_BLEND 0x0BE2 +#define GL_LOGIC_OP_MODE 0x0BF0 +#define GL_INDEX_LOGIC_OP 0x0BF1 +#define GL_COLOR_LOGIC_OP 0x0BF2 +#define GL_AUX_BUFFERS 0x0C00 +#define GL_DRAW_BUFFER 0x0C01 +#define GL_READ_BUFFER 0x0C02 +#define GL_SCISSOR_BOX 0x0C10 +#define GL_SCISSOR_TEST 0x0C11 +#define GL_INDEX_CLEAR_VALUE 0x0C20 +#define GL_INDEX_WRITEMASK 0x0C21 +#define GL_COLOR_CLEAR_VALUE 0x0C22 +#define GL_COLOR_WRITEMASK 0x0C23 +#define GL_INDEX_MODE 0x0C30 +#define GL_RGBA_MODE 0x0C31 +#define GL_DOUBLEBUFFER 0x0C32 +#define GL_STEREO 0x0C33 +#define GL_RENDER_MODE 0x0C40 +#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 +#define GL_POINT_SMOOTH_HINT 0x0C51 +#define GL_LINE_SMOOTH_HINT 0x0C52 +#define GL_POLYGON_SMOOTH_HINT 0x0C53 +#define GL_FOG_HINT 0x0C54 +#define GL_TEXTURE_GEN_S 0x0C60 +#define GL_TEXTURE_GEN_T 0x0C61 +#define GL_TEXTURE_GEN_R 0x0C62 +#define GL_TEXTURE_GEN_Q 0x0C63 +#define GL_PIXEL_MAP_I_TO_I 0x0C70 +#define GL_PIXEL_MAP_S_TO_S 0x0C71 +#define GL_PIXEL_MAP_I_TO_R 0x0C72 +#define GL_PIXEL_MAP_I_TO_G 0x0C73 +#define GL_PIXEL_MAP_I_TO_B 0x0C74 +#define GL_PIXEL_MAP_I_TO_A 0x0C75 +#define GL_PIXEL_MAP_R_TO_R 0x0C76 +#define GL_PIXEL_MAP_G_TO_G 0x0C77 +#define GL_PIXEL_MAP_B_TO_B 0x0C78 +#define GL_PIXEL_MAP_A_TO_A 0x0C79 +#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0 +#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1 +#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2 +#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3 +#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4 +#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5 +#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6 +#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7 +#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8 +#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9 +#define GL_UNPACK_SWAP_BYTES 0x0CF0 +#define GL_UNPACK_LSB_FIRST 0x0CF1 +#define GL_UNPACK_ROW_LENGTH 0x0CF2 +#define GL_UNPACK_SKIP_ROWS 0x0CF3 +#define GL_UNPACK_SKIP_PIXELS 0x0CF4 +#define GL_UNPACK_ALIGNMENT 0x0CF5 +#define GL_PACK_SWAP_BYTES 0x0D00 +#define GL_PACK_LSB_FIRST 0x0D01 +#define GL_PACK_ROW_LENGTH 0x0D02 +#define GL_PACK_SKIP_ROWS 0x0D03 +#define GL_PACK_SKIP_PIXELS 0x0D04 +#define GL_PACK_ALIGNMENT 0x0D05 +#define GL_MAP_COLOR 0x0D10 +#define GL_MAP_STENCIL 0x0D11 +#define GL_INDEX_SHIFT 0x0D12 +#define GL_INDEX_OFFSET 0x0D13 +#define GL_RED_SCALE 0x0D14 +#define GL_RED_BIAS 0x0D15 +#define GL_ZOOM_X 0x0D16 +#define GL_ZOOM_Y 0x0D17 +#define GL_GREEN_SCALE 0x0D18 +#define GL_GREEN_BIAS 0x0D19 +#define GL_BLUE_SCALE 0x0D1A +#define GL_BLUE_BIAS 0x0D1B +#define GL_ALPHA_SCALE 0x0D1C +#define GL_ALPHA_BIAS 0x0D1D +#define GL_DEPTH_SCALE 0x0D1E +#define GL_DEPTH_BIAS 0x0D1F +#define GL_MAX_EVAL_ORDER 0x0D30 +#define GL_MAX_LIGHTS 0x0D31 +#define GL_MAX_CLIP_PLANES 0x0D32 +#define GL_MAX_TEXTURE_SIZE 0x0D33 +#define GL_MAX_PIXEL_MAP_TABLE 0x0D34 +#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35 +#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 +#define GL_MAX_NAME_STACK_DEPTH 0x0D37 +#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 +#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 +#define GL_MAX_VIEWPORT_DIMS 0x0D3A +#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B +#define GL_SUBPIXEL_BITS 0x0D50 +#define GL_INDEX_BITS 0x0D51 +#define GL_RED_BITS 0x0D52 +#define GL_GREEN_BITS 0x0D53 +#define GL_BLUE_BITS 0x0D54 +#define GL_ALPHA_BITS 0x0D55 +#define GL_DEPTH_BITS 0x0D56 +#define GL_STENCIL_BITS 0x0D57 +#define GL_ACCUM_RED_BITS 0x0D58 +#define GL_ACCUM_GREEN_BITS 0x0D59 +#define GL_ACCUM_BLUE_BITS 0x0D5A +#define GL_ACCUM_ALPHA_BITS 0x0D5B +#define GL_NAME_STACK_DEPTH 0x0D70 +#define GL_AUTO_NORMAL 0x0D80 +#define GL_MAP1_COLOR_4 0x0D90 +#define GL_MAP1_INDEX 0x0D91 +#define GL_MAP1_NORMAL 0x0D92 +#define GL_MAP1_TEXTURE_COORD_1 0x0D93 +#define GL_MAP1_TEXTURE_COORD_2 0x0D94 +#define GL_MAP1_TEXTURE_COORD_3 0x0D95 +#define GL_MAP1_TEXTURE_COORD_4 0x0D96 +#define GL_MAP1_VERTEX_3 0x0D97 +#define GL_MAP1_VERTEX_4 0x0D98 +#define GL_MAP2_COLOR_4 0x0DB0 +#define GL_MAP2_INDEX 0x0DB1 +#define GL_MAP2_NORMAL 0x0DB2 +#define GL_MAP2_TEXTURE_COORD_1 0x0DB3 +#define GL_MAP2_TEXTURE_COORD_2 0x0DB4 +#define GL_MAP2_TEXTURE_COORD_3 0x0DB5 +#define GL_MAP2_TEXTURE_COORD_4 0x0DB6 +#define GL_MAP2_VERTEX_3 0x0DB7 +#define GL_MAP2_VERTEX_4 0x0DB8 +#define GL_MAP1_GRID_DOMAIN 0x0DD0 +#define GL_MAP1_GRID_SEGMENTS 0x0DD1 +#define GL_MAP2_GRID_DOMAIN 0x0DD2 +#define GL_MAP2_GRID_SEGMENTS 0x0DD3 +#define GL_TEXTURE_1D 0x0DE0 +#define GL_TEXTURE_2D 0x0DE1 +#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0 +#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1 +#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2 +#define GL_SELECTION_BUFFER_POINTER 0x0DF3 +#define GL_SELECTION_BUFFER_SIZE 0x0DF4 +/* GL_TEXTURE_BINDING_1D */ +/* GL_TEXTURE_BINDING_2D */ +/* GL_VERTEX_ARRAY */ +/* GL_NORMAL_ARRAY */ +/* GL_COLOR_ARRAY */ +/* GL_INDEX_ARRAY */ +/* GL_TEXTURE_COORD_ARRAY */ +/* GL_EDGE_FLAG_ARRAY */ +/* GL_VERTEX_ARRAY_SIZE */ +/* GL_VERTEX_ARRAY_TYPE */ +/* GL_VERTEX_ARRAY_STRIDE */ +/* GL_NORMAL_ARRAY_TYPE */ +/* GL_NORMAL_ARRAY_STRIDE */ +/* GL_COLOR_ARRAY_SIZE */ +/* GL_COLOR_ARRAY_TYPE */ +/* GL_COLOR_ARRAY_STRIDE */ +/* GL_INDEX_ARRAY_TYPE */ +/* GL_INDEX_ARRAY_STRIDE */ +/* GL_TEXTURE_COORD_ARRAY_SIZE */ +/* GL_TEXTURE_COORD_ARRAY_TYPE */ +/* GL_TEXTURE_COORD_ARRAY_STRIDE */ +/* GL_EDGE_FLAG_ARRAY_STRIDE */ +/* GL_POLYGON_OFFSET_FACTOR */ +/* GL_POLYGON_OFFSET_UNITS */ + +/* GetTextureParameter */ +/* GL_TEXTURE_MAG_FILTER */ +/* GL_TEXTURE_MIN_FILTER */ +/* GL_TEXTURE_WRAP_S */ +/* GL_TEXTURE_WRAP_T */ +#define GL_TEXTURE_WIDTH 0x1000 +#define GL_TEXTURE_HEIGHT 0x1001 +#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 +#define GL_TEXTURE_BORDER_COLOR 0x1004 +#define GL_TEXTURE_BORDER 0x1005 +/* GL_TEXTURE_RED_SIZE */ +/* GL_TEXTURE_GREEN_SIZE */ +/* GL_TEXTURE_BLUE_SIZE */ +/* GL_TEXTURE_ALPHA_SIZE */ +/* GL_TEXTURE_LUMINANCE_SIZE */ +/* GL_TEXTURE_INTENSITY_SIZE */ +/* GL_TEXTURE_PRIORITY */ +/* GL_TEXTURE_RESIDENT */ + +/* HintMode */ +#define GL_DONT_CARE 0x1100 +#define GL_FASTEST 0x1101 +#define GL_NICEST 0x1102 + +/* HintTarget */ +/* GL_PERSPECTIVE_CORRECTION_HINT */ +/* GL_POINT_SMOOTH_HINT */ +/* GL_LINE_SMOOTH_HINT */ +/* GL_POLYGON_SMOOTH_HINT */ +/* GL_FOG_HINT */ +/* GL_PHONG_HINT */ + +/* IndexPointerType */ +/* GL_SHORT */ +/* GL_INT */ +/* GL_FLOAT */ +/* GL_DOUBLE */ + +/* LightModelParameter */ +/* GL_LIGHT_MODEL_AMBIENT */ +/* GL_LIGHT_MODEL_LOCAL_VIEWER */ +/* GL_LIGHT_MODEL_TWO_SIDE */ + +/* LightName */ +#define GL_LIGHT0 0x4000 +#define GL_LIGHT1 0x4001 +#define GL_LIGHT2 0x4002 +#define GL_LIGHT3 0x4003 +#define GL_LIGHT4 0x4004 +#define GL_LIGHT5 0x4005 +#define GL_LIGHT6 0x4006 +#define GL_LIGHT7 0x4007 + +/* LightParameter */ +#define GL_AMBIENT 0x1200 +#define GL_DIFFUSE 0x1201 +#define GL_SPECULAR 0x1202 +#define GL_POSITION 0x1203 +#define GL_SPOT_DIRECTION 0x1204 +#define GL_SPOT_EXPONENT 0x1205 +#define GL_SPOT_CUTOFF 0x1206 +#define GL_CONSTANT_ATTENUATION 0x1207 +#define GL_LINEAR_ATTENUATION 0x1208 +#define GL_QUADRATIC_ATTENUATION 0x1209 + +/* InterleavedArrays */ +/* GL_V2F */ +/* GL_V3F */ +/* GL_C4UB_V2F */ +/* GL_C4UB_V3F */ +/* GL_C3F_V3F */ +/* GL_N3F_V3F */ +/* GL_C4F_N3F_V3F */ +/* GL_T2F_V3F */ +/* GL_T4F_V4F */ +/* GL_T2F_C4UB_V3F */ +/* GL_T2F_C3F_V3F */ +/* GL_T2F_N3F_V3F */ +/* GL_T2F_C4F_N3F_V3F */ +/* GL_T4F_C4F_N3F_V4F */ + +/* ListMode */ +#define GL_COMPILE 0x1300 +#define GL_COMPILE_AND_EXECUTE 0x1301 + +/* ListNameType */ +/* GL_BYTE */ +/* GL_UNSIGNED_BYTE */ +/* GL_SHORT */ +/* GL_UNSIGNED_SHORT */ +/* GL_INT */ +/* GL_UNSIGNED_INT */ +/* GL_FLOAT */ +/* GL_2_BYTES */ +/* GL_3_BYTES */ +/* GL_4_BYTES */ + +/* LogicOp */ +#define GL_CLEAR 0x1500 +#define GL_AND 0x1501 +#define GL_AND_REVERSE 0x1502 +#define GL_COPY 0x1503 +#define GL_AND_INVERTED 0x1504 +#define GL_NOOP 0x1505 +#define GL_XOR 0x1506 +#define GL_OR 0x1507 +#define GL_NOR 0x1508 +#define GL_EQUIV 0x1509 +#define GL_INVERT 0x150A +#define GL_OR_REVERSE 0x150B +#define GL_COPY_INVERTED 0x150C +#define GL_OR_INVERTED 0x150D +#define GL_NAND 0x150E +#define GL_SET 0x150F + +/* MapTarget */ +/* GL_MAP1_COLOR_4 */ +/* GL_MAP1_INDEX */ +/* GL_MAP1_NORMAL */ +/* GL_MAP1_TEXTURE_COORD_1 */ +/* GL_MAP1_TEXTURE_COORD_2 */ +/* GL_MAP1_TEXTURE_COORD_3 */ +/* GL_MAP1_TEXTURE_COORD_4 */ +/* GL_MAP1_VERTEX_3 */ +/* GL_MAP1_VERTEX_4 */ +/* GL_MAP2_COLOR_4 */ +/* GL_MAP2_INDEX */ +/* GL_MAP2_NORMAL */ +/* GL_MAP2_TEXTURE_COORD_1 */ +/* GL_MAP2_TEXTURE_COORD_2 */ +/* GL_MAP2_TEXTURE_COORD_3 */ +/* GL_MAP2_TEXTURE_COORD_4 */ +/* GL_MAP2_VERTEX_3 */ +/* GL_MAP2_VERTEX_4 */ + +/* MaterialFace */ +/* GL_FRONT */ +/* GL_BACK */ +/* GL_FRONT_AND_BACK */ + +/* MaterialParameter */ +#define GL_EMISSION 0x1600 +#define GL_SHININESS 0x1601 +#define GL_AMBIENT_AND_DIFFUSE 0x1602 +#define GL_COLOR_INDEXES 0x1603 +/* GL_AMBIENT */ +/* GL_DIFFUSE */ +/* GL_SPECULAR */ + +/* MatrixMode */ +#define GL_MODELVIEW 0x1700 +#define GL_PROJECTION 0x1701 +#define GL_TEXTURE 0x1702 + +/* MeshMode1 */ +/* GL_POINT */ +/* GL_LINE */ + +/* MeshMode2 */ +/* GL_POINT */ +/* GL_LINE */ +/* GL_FILL */ + +/* NormalPointerType */ +/* GL_BYTE */ +/* GL_SHORT */ +/* GL_INT */ +/* GL_FLOAT */ +/* GL_DOUBLE */ + +/* PixelCopyType */ +#define GL_COLOR 0x1800 +#define GL_DEPTH 0x1801 +#define GL_STENCIL 0x1802 + +/* PixelFormat */ +#define GL_COLOR_INDEX 0x1900 +#define GL_STENCIL_INDEX 0x1901 +#define GL_DEPTH_COMPONENT 0x1902 +#define GL_RED 0x1903 +#define GL_GREEN 0x1904 +#define GL_BLUE 0x1905 +#define GL_ALPHA 0x1906 +#define GL_RGB 0x1907 +#define GL_RGBA 0x1908 +#define GL_LUMINANCE 0x1909 +#define GL_LUMINANCE_ALPHA 0x190A + +/* PixelMap */ +/* GL_PIXEL_MAP_I_TO_I */ +/* GL_PIXEL_MAP_S_TO_S */ +/* GL_PIXEL_MAP_I_TO_R */ +/* GL_PIXEL_MAP_I_TO_G */ +/* GL_PIXEL_MAP_I_TO_B */ +/* GL_PIXEL_MAP_I_TO_A */ +/* GL_PIXEL_MAP_R_TO_R */ +/* GL_PIXEL_MAP_G_TO_G */ +/* GL_PIXEL_MAP_B_TO_B */ +/* GL_PIXEL_MAP_A_TO_A */ + +/* PixelStore */ +/* GL_UNPACK_SWAP_BYTES */ +/* GL_UNPACK_LSB_FIRST */ +/* GL_UNPACK_ROW_LENGTH */ +/* GL_UNPACK_SKIP_ROWS */ +/* GL_UNPACK_SKIP_PIXELS */ +/* GL_UNPACK_ALIGNMENT */ +/* GL_PACK_SWAP_BYTES */ +/* GL_PACK_LSB_FIRST */ +/* GL_PACK_ROW_LENGTH */ +/* GL_PACK_SKIP_ROWS */ +/* GL_PACK_SKIP_PIXELS */ +/* GL_PACK_ALIGNMENT */ + +/* PixelTransfer */ +/* GL_MAP_COLOR */ +/* GL_MAP_STENCIL */ +/* GL_INDEX_SHIFT */ +/* GL_INDEX_OFFSET */ +/* GL_RED_SCALE */ +/* GL_RED_BIAS */ +/* GL_GREEN_SCALE */ +/* GL_GREEN_BIAS */ +/* GL_BLUE_SCALE */ +/* GL_BLUE_BIAS */ +/* GL_ALPHA_SCALE */ +/* GL_ALPHA_BIAS */ +/* GL_DEPTH_SCALE */ +/* GL_DEPTH_BIAS */ + +/* PixelType */ +#define GL_BITMAP 0x1A00 +/* GL_BYTE */ +/* GL_UNSIGNED_BYTE */ +/* GL_SHORT */ +/* GL_UNSIGNED_SHORT */ +/* GL_INT */ +/* GL_UNSIGNED_INT */ +/* GL_FLOAT */ + +/* PolygonMode */ +#define GL_POINT 0x1B00 +#define GL_LINE 0x1B01 +#define GL_FILL 0x1B02 + +/* ReadBufferMode */ +/* GL_FRONT_LEFT */ +/* GL_FRONT_RIGHT */ +/* GL_BACK_LEFT */ +/* GL_BACK_RIGHT */ +/* GL_FRONT */ +/* GL_BACK */ +/* GL_LEFT */ +/* GL_RIGHT */ +/* GL_AUX0 */ +/* GL_AUX1 */ +/* GL_AUX2 */ +/* GL_AUX3 */ + +/* RenderingMode */ +#define GL_RENDER 0x1C00 +#define GL_FEEDBACK 0x1C01 +#define GL_SELECT 0x1C02 + +/* ShadingModel */ +#define GL_FLAT 0x1D00 +#define GL_SMOOTH 0x1D01 + + +/* StencilFunction */ +/* GL_NEVER */ +/* GL_LESS */ +/* GL_EQUAL */ +/* GL_LEQUAL */ +/* GL_GREATER */ +/* GL_NOTEQUAL */ +/* GL_GEQUAL */ +/* GL_ALWAYS */ + +/* StencilOp */ +/* GL_ZERO */ +#define GL_KEEP 0x1E00 +#define GL_REPLACE 0x1E01 +#define GL_INCR 0x1E02 +#define GL_DECR 0x1E03 +/* GL_INVERT */ + +/* StringName */ +#define GL_VENDOR 0x1F00 +#define GL_RENDERER 0x1F01 +#define GL_VERSION 0x1F02 +#define GL_EXTENSIONS 0x1F03 + +/* TextureCoordName */ +#define GL_S 0x2000 +#define GL_T 0x2001 +#define GL_R 0x2002 +#define GL_Q 0x2003 + +/* TexCoordPointerType */ +/* GL_SHORT */ +/* GL_INT */ +/* GL_FLOAT */ +/* GL_DOUBLE */ + +/* TextureEnvMode */ +#define GL_MODULATE 0x2100 +#define GL_DECAL 0x2101 +/* GL_BLEND */ +/* GL_REPLACE */ + +/* TextureEnvParameter */ +#define GL_TEXTURE_ENV_MODE 0x2200 +#define GL_TEXTURE_ENV_COLOR 0x2201 + +/* TextureEnvTarget */ +#define GL_TEXTURE_ENV 0x2300 + +/* TextureGenMode */ +#define GL_EYE_LINEAR 0x2400 +#define GL_OBJECT_LINEAR 0x2401 +#define GL_SPHERE_MAP 0x2402 + +/* TextureGenParameter */ +#define GL_TEXTURE_GEN_MODE 0x2500 +#define GL_OBJECT_PLANE 0x2501 +#define GL_EYE_PLANE 0x2502 + +/* TextureMagFilter */ +#define GL_NEAREST 0x2600 +#define GL_LINEAR 0x2601 + +/* TextureMinFilter */ +/* GL_NEAREST */ +/* GL_LINEAR */ +#define GL_NEAREST_MIPMAP_NEAREST 0x2700 +#define GL_LINEAR_MIPMAP_NEAREST 0x2701 +#define GL_NEAREST_MIPMAP_LINEAR 0x2702 +#define GL_LINEAR_MIPMAP_LINEAR 0x2703 + +/* TextureParameterName */ +#define GL_TEXTURE_MAG_FILTER 0x2800 +#define GL_TEXTURE_MIN_FILTER 0x2801 +#define GL_TEXTURE_WRAP_S 0x2802 +#define GL_TEXTURE_WRAP_T 0x2803 +/* GL_TEXTURE_BORDER_COLOR */ +/* GL_TEXTURE_PRIORITY */ + +/* TextureTarget */ +/* GL_TEXTURE_1D */ +/* GL_TEXTURE_2D */ +/* GL_PROXY_TEXTURE_1D */ +/* GL_PROXY_TEXTURE_2D */ + +/* TextureWrapMode */ +#define GL_CLAMP 0x2900 +#define GL_REPEAT 0x2901 + +/* VertexPointerType */ +/* GL_SHORT */ +/* GL_INT */ +/* GL_FLOAT */ +/* GL_DOUBLE */ + +/* ClientAttribMask */ +#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001 +#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 +#define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff + +/* polygon_offset */ +#define GL_POLYGON_OFFSET_FACTOR 0x8038 +#define GL_POLYGON_OFFSET_UNITS 0x2A00 +#define GL_POLYGON_OFFSET_POINT 0x2A01 +#define GL_POLYGON_OFFSET_LINE 0x2A02 +#define GL_POLYGON_OFFSET_FILL 0x8037 + +/* texture */ +#define GL_ALPHA4 0x803B +#define GL_ALPHA8 0x803C +#define GL_ALPHA12 0x803D +#define GL_ALPHA16 0x803E +#define GL_LUMINANCE4 0x803F +#define GL_LUMINANCE8 0x8040 +#define GL_LUMINANCE12 0x8041 +#define GL_LUMINANCE16 0x8042 +#define GL_LUMINANCE4_ALPHA4 0x8043 +#define GL_LUMINANCE6_ALPHA2 0x8044 +#define GL_LUMINANCE8_ALPHA8 0x8045 +#define GL_LUMINANCE12_ALPHA4 0x8046 +#define GL_LUMINANCE12_ALPHA12 0x8047 +#define GL_LUMINANCE16_ALPHA16 0x8048 +#define GL_INTENSITY 0x8049 +#define GL_INTENSITY4 0x804A +#define GL_INTENSITY8 0x804B +#define GL_INTENSITY12 0x804C +#define GL_INTENSITY16 0x804D +#define GL_R3_G3_B2 0x2A10 +#define GL_RGB4 0x804F +#define GL_RGB5 0x8050 +#define GL_RGB8 0x8051 +#define GL_RGB10 0x8052 +#define GL_RGB12 0x8053 +#define GL_RGB16 0x8054 +#define GL_RGBA2 0x8055 +#define GL_RGBA4 0x8056 +#define GL_RGB5_A1 0x8057 +#define GL_RGBA8 0x8058 +#define GL_RGB10_A2 0x8059 +#define GL_RGBA12 0x805A +#define GL_RGBA16 0x805B +#define GL_TEXTURE_RED_SIZE 0x805C +#define GL_TEXTURE_GREEN_SIZE 0x805D +#define GL_TEXTURE_BLUE_SIZE 0x805E +#define GL_TEXTURE_ALPHA_SIZE 0x805F +#define GL_TEXTURE_LUMINANCE_SIZE 0x8060 +#define GL_TEXTURE_INTENSITY_SIZE 0x8061 +#define GL_PROXY_TEXTURE_1D 0x8063 +#define GL_PROXY_TEXTURE_2D 0x8064 + +/* texture_object */ +#define GL_TEXTURE_PRIORITY 0x8066 +#define GL_TEXTURE_RESIDENT 0x8067 +#define GL_TEXTURE_BINDING_1D 0x8068 +#define GL_TEXTURE_BINDING_2D 0x8069 + +/* vertex_array */ +#define GL_VERTEX_ARRAY 0x8074 +#define GL_NORMAL_ARRAY 0x8075 +#define GL_COLOR_ARRAY 0x8076 +#define GL_INDEX_ARRAY 0x8077 +#define GL_TEXTURE_COORD_ARRAY 0x8078 +#define GL_EDGE_FLAG_ARRAY 0x8079 +#define GL_VERTEX_ARRAY_SIZE 0x807A +#define GL_VERTEX_ARRAY_TYPE 0x807B +#define GL_VERTEX_ARRAY_STRIDE 0x807C +#define GL_NORMAL_ARRAY_TYPE 0x807E +#define GL_NORMAL_ARRAY_STRIDE 0x807F +#define GL_COLOR_ARRAY_SIZE 0x8081 +#define GL_COLOR_ARRAY_TYPE 0x8082 +#define GL_COLOR_ARRAY_STRIDE 0x8083 +#define GL_INDEX_ARRAY_TYPE 0x8085 +#define GL_INDEX_ARRAY_STRIDE 0x8086 +#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 +#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 +#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A +#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C +#define GL_VERTEX_ARRAY_POINTER 0x808E +#define GL_NORMAL_ARRAY_POINTER 0x808F +#define GL_COLOR_ARRAY_POINTER 0x8090 +#define GL_INDEX_ARRAY_POINTER 0x8091 +#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 +#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093 +#define GL_V2F 0x2A20 +#define GL_V3F 0x2A21 +#define GL_C4UB_V2F 0x2A22 +#define GL_C4UB_V3F 0x2A23 +#define GL_C3F_V3F 0x2A24 +#define GL_N3F_V3F 0x2A25 +#define GL_C4F_N3F_V3F 0x2A26 +#define GL_T2F_V3F 0x2A27 +#define GL_T4F_V4F 0x2A28 +#define GL_T2F_C4UB_V3F 0x2A29 +#define GL_T2F_C3F_V3F 0x2A2A +#define GL_T2F_N3F_V3F 0x2A2B +#define GL_T2F_C4F_N3F_V3F 0x2A2C +#define GL_T4F_C4F_N3F_V4F 0x2A2D + +/* Extensions */ +#define GL_EXT_vertex_array 1 +#define GL_EXT_bgra 1 +#define GL_EXT_paletted_texture 1 +#define GL_WIN_swap_hint 1 +#define GL_WIN_draw_range_elements 1 +// #define GL_WIN_phong_shading 1 +// #define GL_WIN_specular_fog 1 + +/* EXT_vertex_array */ +#define GL_VERTEX_ARRAY_EXT 0x8074 +#define GL_NORMAL_ARRAY_EXT 0x8075 +#define GL_COLOR_ARRAY_EXT 0x8076 +#define GL_INDEX_ARRAY_EXT 0x8077 +#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 +#define GL_EDGE_FLAG_ARRAY_EXT 0x8079 +#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A +#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B +#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C +#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D +#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E +#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F +#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080 +#define GL_COLOR_ARRAY_SIZE_EXT 0x8081 +#define GL_COLOR_ARRAY_TYPE_EXT 0x8082 +#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083 +#define GL_COLOR_ARRAY_COUNT_EXT 0x8084 +#define GL_INDEX_ARRAY_TYPE_EXT 0x8085 +#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086 +#define GL_INDEX_ARRAY_COUNT_EXT 0x8087 +#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088 +#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089 +#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A +#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B +#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C +#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D +#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E +#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F +#define GL_COLOR_ARRAY_POINTER_EXT 0x8090 +#define GL_INDEX_ARRAY_POINTER_EXT 0x8091 +#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092 +#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093 +#define GL_DOUBLE_EXT GL_DOUBLE + +/* EXT_bgra */ +#define GL_BGR_EXT 0x80E0 +#define GL_BGRA_EXT 0x80E1 + +/* EXT_paletted_texture */ + +/* These must match the GL_COLOR_TABLE_*_SGI enumerants */ +#define GL_COLOR_TABLE_FORMAT_EXT 0x80D8 +#define GL_COLOR_TABLE_WIDTH_EXT 0x80D9 +#define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA +#define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB +#define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC +#define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD +#define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE +#define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF + +#define GL_COLOR_INDEX1_EXT 0x80E2 +#define GL_COLOR_INDEX2_EXT 0x80E3 +#define GL_COLOR_INDEX4_EXT 0x80E4 +#define GL_COLOR_INDEX8_EXT 0x80E5 +#define GL_COLOR_INDEX12_EXT 0x80E6 +#define GL_COLOR_INDEX16_EXT 0x80E7 + +/* WIN_draw_range_elements */ +#define GL_MAX_ELEMENTS_VERTICES_WIN 0x80E8 +#define GL_MAX_ELEMENTS_INDICES_WIN 0x80E9 + +/* WIN_phong_shading */ +#define GL_PHONG_WIN 0x80EA +#define GL_PHONG_HINT_WIN 0x80EB + +/* WIN_specular_fog */ +#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC + +/* For compatibility with OpenGL v1.0 */ +#define GL_LOGIC_OP GL_INDEX_LOGIC_OP +#define GL_TEXTURE_COMPONENTS GL_TEXTURE_INTERNAL_FORMAT + +/*************************************************************/ + +WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value); +WINGDIAPI void APIENTRY glAlphaFunc (GLenum func, GLclampf ref); +WINGDIAPI GLboolean APIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences); +WINGDIAPI void APIENTRY glArrayElement (GLint i); +WINGDIAPI void APIENTRY glBegin (GLenum mode); +WINGDIAPI void APIENTRY glBindTexture (GLenum target, GLuint texture); +WINGDIAPI void APIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); +WINGDIAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); +WINGDIAPI void APIENTRY glCallList (GLuint list); +WINGDIAPI void APIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists); +WINGDIAPI void APIENTRY glClear (GLbitfield mask); +WINGDIAPI void APIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +WINGDIAPI void APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); +WINGDIAPI void APIENTRY glClearDepth (GLclampd depth); +WINGDIAPI void APIENTRY glClearIndex (GLfloat c); +WINGDIAPI void APIENTRY glClearStencil (GLint s); +WINGDIAPI void APIENTRY glClipPlane (GLenum plane, const GLdouble *equation); +WINGDIAPI void APIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue); +WINGDIAPI void APIENTRY glColor3bv (const GLbyte *v); +WINGDIAPI void APIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue); +WINGDIAPI void APIENTRY glColor3dv (const GLdouble *v); +WINGDIAPI void APIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue); +WINGDIAPI void APIENTRY glColor3fv (const GLfloat *v); +WINGDIAPI void APIENTRY glColor3i (GLint red, GLint green, GLint blue); +WINGDIAPI void APIENTRY glColor3iv (const GLint *v); +WINGDIAPI void APIENTRY glColor3s (GLshort red, GLshort green, GLshort blue); +WINGDIAPI void APIENTRY glColor3sv (const GLshort *v); +WINGDIAPI void APIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue); +WINGDIAPI void APIENTRY glColor3ubv (const GLubyte *v); +WINGDIAPI void APIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue); +WINGDIAPI void APIENTRY glColor3uiv (const GLuint *v); +WINGDIAPI void APIENTRY glColor3us (GLushort red, GLushort green, GLushort blue); +WINGDIAPI void APIENTRY glColor3usv (const GLushort *v); +WINGDIAPI void APIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); +WINGDIAPI void APIENTRY glColor4bv (const GLbyte *v); +WINGDIAPI void APIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); +WINGDIAPI void APIENTRY glColor4dv (const GLdouble *v); +WINGDIAPI void APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +WINGDIAPI void APIENTRY glColor4fv (const GLfloat *v); +WINGDIAPI void APIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha); +WINGDIAPI void APIENTRY glColor4iv (const GLint *v); +WINGDIAPI void APIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha); +WINGDIAPI void APIENTRY glColor4sv (const GLshort *v); +WINGDIAPI void APIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); +WINGDIAPI void APIENTRY glColor4ubv (const GLubyte *v); +WINGDIAPI void APIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha); +WINGDIAPI void APIENTRY glColor4uiv (const GLuint *v); +WINGDIAPI void APIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha); +WINGDIAPI void APIENTRY glColor4usv (const GLushort *v); +WINGDIAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +WINGDIAPI void APIENTRY glColorMaterial (GLenum face, GLenum mode); +WINGDIAPI void APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +WINGDIAPI void APIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); +WINGDIAPI void APIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); +WINGDIAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +WINGDIAPI void APIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +WINGDIAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +WINGDIAPI void APIENTRY glCullFace (GLenum mode); +WINGDIAPI void APIENTRY glDeleteLists (GLuint list, GLsizei range); +WINGDIAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); +WINGDIAPI void APIENTRY glDepthFunc (GLenum func); +WINGDIAPI void APIENTRY glDepthMask (GLboolean flag); +WINGDIAPI void APIENTRY glDepthRange (GLclampd zNear, GLclampd zFar); +WINGDIAPI void APIENTRY glDisable (GLenum cap); +WINGDIAPI void APIENTRY glDisableClientState (GLenum array); +WINGDIAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); +WINGDIAPI void APIENTRY glDrawBuffer (GLenum mode); +WINGDIAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); +WINGDIAPI void APIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); +WINGDIAPI void APIENTRY glEdgeFlag (GLboolean flag); +WINGDIAPI void APIENTRY glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer); +WINGDIAPI void APIENTRY glEdgeFlagv (const GLboolean *flag); +WINGDIAPI void APIENTRY glEnable (GLenum cap); +WINGDIAPI void APIENTRY glEnableClientState (GLenum array); +WINGDIAPI void APIENTRY glEnd (void); +WINGDIAPI void APIENTRY glEndList (void); +WINGDIAPI void APIENTRY glEvalCoord1d (GLdouble u); +WINGDIAPI void APIENTRY glEvalCoord1dv (const GLdouble *u); +WINGDIAPI void APIENTRY glEvalCoord1f (GLfloat u); +WINGDIAPI void APIENTRY glEvalCoord1fv (const GLfloat *u); +WINGDIAPI void APIENTRY glEvalCoord2d (GLdouble u, GLdouble v); +WINGDIAPI void APIENTRY glEvalCoord2dv (const GLdouble *u); +WINGDIAPI void APIENTRY glEvalCoord2f (GLfloat u, GLfloat v); +WINGDIAPI void APIENTRY glEvalCoord2fv (const GLfloat *u); +WINGDIAPI void APIENTRY glEvalMesh1 (GLenum mode, GLint i1, GLint i2); +WINGDIAPI void APIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); +WINGDIAPI void APIENTRY glEvalPoint1 (GLint i); +WINGDIAPI void APIENTRY glEvalPoint2 (GLint i, GLint j); +WINGDIAPI void APIENTRY glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer); +WINGDIAPI void APIENTRY glFinish (void); +WINGDIAPI void APIENTRY glFlush (void); +WINGDIAPI void APIENTRY glFogf (GLenum pname, GLfloat param); +WINGDIAPI void APIENTRY glFogfv (GLenum pname, const GLfloat *params); +WINGDIAPI void APIENTRY glFogi (GLenum pname, GLint param); +WINGDIAPI void APIENTRY glFogiv (GLenum pname, const GLint *params); +WINGDIAPI void APIENTRY glFrontFace (GLenum mode); +WINGDIAPI void APIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +WINGDIAPI GLuint APIENTRY glGenLists (GLsizei range); +WINGDIAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures); +WINGDIAPI void APIENTRY glGetBooleanv (GLenum pname, GLboolean *params); +WINGDIAPI void APIENTRY glGetClipPlane (GLenum plane, GLdouble *equation); +WINGDIAPI void APIENTRY glGetDoublev (GLenum pname, GLdouble *params); +WINGDIAPI GLenum APIENTRY glGetError (void); +WINGDIAPI void APIENTRY glGetFloatv (GLenum pname, GLfloat *params); +WINGDIAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *params); +WINGDIAPI void APIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params); +WINGDIAPI void APIENTRY glGetLightiv (GLenum light, GLenum pname, GLint *params); +WINGDIAPI void APIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v); +WINGDIAPI void APIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v); +WINGDIAPI void APIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v); +WINGDIAPI void APIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params); +WINGDIAPI void APIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params); +WINGDIAPI void APIENTRY glGetPixelMapfv (GLenum map, GLfloat *values); +WINGDIAPI void APIENTRY glGetPixelMapuiv (GLenum map, GLuint *values); +WINGDIAPI void APIENTRY glGetPixelMapusv (GLenum map, GLushort *values); +WINGDIAPI void APIENTRY glGetPointerv (GLenum pname, GLvoid* *params); +WINGDIAPI void APIENTRY glGetPolygonStipple (GLubyte *mask); +WINGDIAPI const GLubyte * APIENTRY glGetString (GLenum name); +WINGDIAPI void APIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params); +WINGDIAPI void APIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params); +WINGDIAPI void APIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params); +WINGDIAPI void APIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params); +WINGDIAPI void APIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params); +WINGDIAPI void APIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); +WINGDIAPI void APIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params); +WINGDIAPI void APIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params); +WINGDIAPI void APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); +WINGDIAPI void APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); +WINGDIAPI void APIENTRY glHint (GLenum target, GLenum mode); +WINGDIAPI void APIENTRY glIndexMask (GLuint mask); +WINGDIAPI void APIENTRY glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer); +WINGDIAPI void APIENTRY glIndexd (GLdouble c); +WINGDIAPI void APIENTRY glIndexdv (const GLdouble *c); +WINGDIAPI void APIENTRY glIndexf (GLfloat c); +WINGDIAPI void APIENTRY glIndexfv (const GLfloat *c); +WINGDIAPI void APIENTRY glIndexi (GLint c); +WINGDIAPI void APIENTRY glIndexiv (const GLint *c); +WINGDIAPI void APIENTRY glIndexs (GLshort c); +WINGDIAPI void APIENTRY glIndexsv (const GLshort *c); +WINGDIAPI void APIENTRY glIndexub (GLubyte c); +WINGDIAPI void APIENTRY glIndexubv (const GLubyte *c); +WINGDIAPI void APIENTRY glInitNames (void); +WINGDIAPI void APIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer); +WINGDIAPI GLboolean APIENTRY glIsEnabled (GLenum cap); +WINGDIAPI GLboolean APIENTRY glIsList (GLuint list); +WINGDIAPI GLboolean APIENTRY glIsTexture (GLuint texture); +WINGDIAPI void APIENTRY glLightModelf (GLenum pname, GLfloat param); +WINGDIAPI void APIENTRY glLightModelfv (GLenum pname, const GLfloat *params); +WINGDIAPI void APIENTRY glLightModeli (GLenum pname, GLint param); +WINGDIAPI void APIENTRY glLightModeliv (GLenum pname, const GLint *params); +WINGDIAPI void APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param); +WINGDIAPI void APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params); +WINGDIAPI void APIENTRY glLighti (GLenum light, GLenum pname, GLint param); +WINGDIAPI void APIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params); +WINGDIAPI void APIENTRY glLineStipple (GLint factor, GLushort pattern); +WINGDIAPI void APIENTRY glLineWidth (GLfloat width); +WINGDIAPI void APIENTRY glListBase (GLuint base); +WINGDIAPI void APIENTRY glLoadIdentity (void); +WINGDIAPI void APIENTRY glLoadMatrixd (const GLdouble *m); +WINGDIAPI void APIENTRY glLoadMatrixf (const GLfloat *m); +WINGDIAPI void APIENTRY glLoadName (GLuint name); +WINGDIAPI void APIENTRY glLogicOp (GLenum opcode); +WINGDIAPI void APIENTRY glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); +WINGDIAPI void APIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); +WINGDIAPI void APIENTRY glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); +WINGDIAPI void APIENTRY glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); +WINGDIAPI void APIENTRY glMapGrid1d (GLint un, GLdouble u1, GLdouble u2); +WINGDIAPI void APIENTRY glMapGrid1f (GLint un, GLfloat u1, GLfloat u2); +WINGDIAPI void APIENTRY glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); +WINGDIAPI void APIENTRY glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); +WINGDIAPI void APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param); +WINGDIAPI void APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params); +WINGDIAPI void APIENTRY glMateriali (GLenum face, GLenum pname, GLint param); +WINGDIAPI void APIENTRY glMaterialiv (GLenum face, GLenum pname, const GLint *params); +WINGDIAPI void APIENTRY glMatrixMode (GLenum mode); +WINGDIAPI void APIENTRY glMultMatrixd (const GLdouble *m); +WINGDIAPI void APIENTRY glMultMatrixf (const GLfloat *m); +WINGDIAPI void APIENTRY glNewList (GLuint list, GLenum mode); +WINGDIAPI void APIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz); +WINGDIAPI void APIENTRY glNormal3bv (const GLbyte *v); +WINGDIAPI void APIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz); +WINGDIAPI void APIENTRY glNormal3dv (const GLdouble *v); +WINGDIAPI void APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz); +WINGDIAPI void APIENTRY glNormal3fv (const GLfloat *v); +WINGDIAPI void APIENTRY glNormal3i (GLint nx, GLint ny, GLint nz); +WINGDIAPI void APIENTRY glNormal3iv (const GLint *v); +WINGDIAPI void APIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz); +WINGDIAPI void APIENTRY glNormal3sv (const GLshort *v); +WINGDIAPI void APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer); +WINGDIAPI void APIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +WINGDIAPI void APIENTRY glPassThrough (GLfloat token); +WINGDIAPI void APIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values); +WINGDIAPI void APIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values); +WINGDIAPI void APIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values); +WINGDIAPI void APIENTRY glPixelStoref (GLenum pname, GLfloat param); +WINGDIAPI void APIENTRY glPixelStorei (GLenum pname, GLint param); +WINGDIAPI void APIENTRY glPixelTransferf (GLenum pname, GLfloat param); +WINGDIAPI void APIENTRY glPixelTransferi (GLenum pname, GLint param); +WINGDIAPI void APIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor); +WINGDIAPI void APIENTRY glPointSize (GLfloat size); +WINGDIAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode); +WINGDIAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units); +WINGDIAPI void APIENTRY glPolygonStipple (const GLubyte *mask); +WINGDIAPI void APIENTRY glPopAttrib (void); +WINGDIAPI void APIENTRY glPopClientAttrib (void); +WINGDIAPI void APIENTRY glPopMatrix (void); +WINGDIAPI void APIENTRY glPopName (void); +WINGDIAPI void APIENTRY glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities); +WINGDIAPI void APIENTRY glPushAttrib (GLbitfield mask); +WINGDIAPI void APIENTRY glPushClientAttrib (GLbitfield mask); +WINGDIAPI void APIENTRY glPushMatrix (void); +WINGDIAPI void APIENTRY glPushName (GLuint name); +WINGDIAPI void APIENTRY glRasterPos2d (GLdouble x, GLdouble y); +WINGDIAPI void APIENTRY glRasterPos2dv (const GLdouble *v); +WINGDIAPI void APIENTRY glRasterPos2f (GLfloat x, GLfloat y); +WINGDIAPI void APIENTRY glRasterPos2fv (const GLfloat *v); +WINGDIAPI void APIENTRY glRasterPos2i (GLint x, GLint y); +WINGDIAPI void APIENTRY glRasterPos2iv (const GLint *v); +WINGDIAPI void APIENTRY glRasterPos2s (GLshort x, GLshort y); +WINGDIAPI void APIENTRY glRasterPos2sv (const GLshort *v); +WINGDIAPI void APIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z); +WINGDIAPI void APIENTRY glRasterPos3dv (const GLdouble *v); +WINGDIAPI void APIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z); +WINGDIAPI void APIENTRY glRasterPos3fv (const GLfloat *v); +WINGDIAPI void APIENTRY glRasterPos3i (GLint x, GLint y, GLint z); +WINGDIAPI void APIENTRY glRasterPos3iv (const GLint *v); +WINGDIAPI void APIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z); +WINGDIAPI void APIENTRY glRasterPos3sv (const GLshort *v); +WINGDIAPI void APIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); +WINGDIAPI void APIENTRY glRasterPos4dv (const GLdouble *v); +WINGDIAPI void APIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); +WINGDIAPI void APIENTRY glRasterPos4fv (const GLfloat *v); +WINGDIAPI void APIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w); +WINGDIAPI void APIENTRY glRasterPos4iv (const GLint *v); +WINGDIAPI void APIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w); +WINGDIAPI void APIENTRY glRasterPos4sv (const GLshort *v); +WINGDIAPI void APIENTRY glReadBuffer (GLenum mode); +WINGDIAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); +WINGDIAPI void APIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); +WINGDIAPI void APIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2); +WINGDIAPI void APIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); +WINGDIAPI void APIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2); +WINGDIAPI void APIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2); +WINGDIAPI void APIENTRY glRectiv (const GLint *v1, const GLint *v2); +WINGDIAPI void APIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2); +WINGDIAPI void APIENTRY glRectsv (const GLshort *v1, const GLshort *v2); +WINGDIAPI GLint APIENTRY glRenderMode (GLenum mode); +WINGDIAPI void APIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z); +WINGDIAPI void APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); +WINGDIAPI void APIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z); +WINGDIAPI void APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z); +WINGDIAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); +WINGDIAPI void APIENTRY glSelectBuffer (GLsizei size, GLuint *buffer); +WINGDIAPI void APIENTRY glShadeModel (GLenum mode); +WINGDIAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); +WINGDIAPI void APIENTRY glStencilMask (GLuint mask); +WINGDIAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); +WINGDIAPI void APIENTRY glTexCoord1d (GLdouble s); +WINGDIAPI void APIENTRY glTexCoord1dv (const GLdouble *v); +WINGDIAPI void APIENTRY glTexCoord1f (GLfloat s); +WINGDIAPI void APIENTRY glTexCoord1fv (const GLfloat *v); +WINGDIAPI void APIENTRY glTexCoord1i (GLint s); +WINGDIAPI void APIENTRY glTexCoord1iv (const GLint *v); +WINGDIAPI void APIENTRY glTexCoord1s (GLshort s); +WINGDIAPI void APIENTRY glTexCoord1sv (const GLshort *v); +WINGDIAPI void APIENTRY glTexCoord2d (GLdouble s, GLdouble t); +WINGDIAPI void APIENTRY glTexCoord2dv (const GLdouble *v); +WINGDIAPI void APIENTRY glTexCoord2f (GLfloat s, GLfloat t); +WINGDIAPI void APIENTRY glTexCoord2fv (const GLfloat *v); +WINGDIAPI void APIENTRY glTexCoord2i (GLint s, GLint t); +WINGDIAPI void APIENTRY glTexCoord2iv (const GLint *v); +WINGDIAPI void APIENTRY glTexCoord2s (GLshort s, GLshort t); +WINGDIAPI void APIENTRY glTexCoord2sv (const GLshort *v); +WINGDIAPI void APIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r); +WINGDIAPI void APIENTRY glTexCoord3dv (const GLdouble *v); +WINGDIAPI void APIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r); +WINGDIAPI void APIENTRY glTexCoord3fv (const GLfloat *v); +WINGDIAPI void APIENTRY glTexCoord3i (GLint s, GLint t, GLint r); +WINGDIAPI void APIENTRY glTexCoord3iv (const GLint *v); +WINGDIAPI void APIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r); +WINGDIAPI void APIENTRY glTexCoord3sv (const GLshort *v); +WINGDIAPI void APIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q); +WINGDIAPI void APIENTRY glTexCoord4dv (const GLdouble *v); +WINGDIAPI void APIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q); +WINGDIAPI void APIENTRY glTexCoord4fv (const GLfloat *v); +WINGDIAPI void APIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q); +WINGDIAPI void APIENTRY glTexCoord4iv (const GLint *v); +WINGDIAPI void APIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q); +WINGDIAPI void APIENTRY glTexCoord4sv (const GLshort *v); +WINGDIAPI void APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +WINGDIAPI void APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param); +WINGDIAPI void APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params); +WINGDIAPI void APIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param); +WINGDIAPI void APIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params); +WINGDIAPI void APIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param); +WINGDIAPI void APIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params); +WINGDIAPI void APIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param); +WINGDIAPI void APIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params); +WINGDIAPI void APIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param); +WINGDIAPI void APIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params); +WINGDIAPI void APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +WINGDIAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +WINGDIAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param); +WINGDIAPI void APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); +WINGDIAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); +WINGDIAPI void APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params); +WINGDIAPI void APIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); +WINGDIAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); +WINGDIAPI void APIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z); +WINGDIAPI void APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z); +WINGDIAPI void APIENTRY glVertex2d (GLdouble x, GLdouble y); +WINGDIAPI void APIENTRY glVertex2dv (const GLdouble *v); +WINGDIAPI void APIENTRY glVertex2f (GLfloat x, GLfloat y); +WINGDIAPI void APIENTRY glVertex2fv (const GLfloat *v); +WINGDIAPI void APIENTRY glVertex2i (GLint x, GLint y); +WINGDIAPI void APIENTRY glVertex2iv (const GLint *v); +WINGDIAPI void APIENTRY glVertex2s (GLshort x, GLshort y); +WINGDIAPI void APIENTRY glVertex2sv (const GLshort *v); +WINGDIAPI void APIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z); +WINGDIAPI void APIENTRY glVertex3dv (const GLdouble *v); +WINGDIAPI void APIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z); +WINGDIAPI void APIENTRY glVertex3fv (const GLfloat *v); +WINGDIAPI void APIENTRY glVertex3i (GLint x, GLint y, GLint z); +WINGDIAPI void APIENTRY glVertex3iv (const GLint *v); +WINGDIAPI void APIENTRY glVertex3s (GLshort x, GLshort y, GLshort z); +WINGDIAPI void APIENTRY glVertex3sv (const GLshort *v); +WINGDIAPI void APIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); +WINGDIAPI void APIENTRY glVertex4dv (const GLdouble *v); +WINGDIAPI void APIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); +WINGDIAPI void APIENTRY glVertex4fv (const GLfloat *v); +WINGDIAPI void APIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w); +WINGDIAPI void APIENTRY glVertex4iv (const GLint *v); +WINGDIAPI void APIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w); +WINGDIAPI void APIENTRY glVertex4sv (const GLshort *v); +WINGDIAPI void APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +WINGDIAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); + +/* EXT_vertex_array */ +typedef void (APIENTRY * PFNGLARRAYELEMENTEXTPROC) (GLint i); +typedef void (APIENTRY * PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count); +typedef void (APIENTRY * PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRY * PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRY * PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRY * PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRY * PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); +typedef void (APIENTRY * PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer); +typedef void (APIENTRY * PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params); +typedef void (APIENTRY * PFNGLARRAYELEMENTARRAYEXTPROC)(GLenum mode, GLsizei count, const GLvoid* pi); + +/* WIN_draw_range_elements */ +typedef void (APIENTRY * PFNGLDRAWRANGEELEMENTSWINPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); + +/* WIN_swap_hint */ +typedef void (APIENTRY * PFNGLADDSWAPHINTRECTWINPROC) (GLint x, GLint y, GLsizei width, GLsizei height); + +/* EXT_paletted_texture */ +typedef void (APIENTRY * PFNGLCOLORTABLEEXTPROC) + (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, + GLenum type, const GLvoid *data); +typedef void (APIENTRY * PFNGLCOLORSUBTABLEEXTPROC) + (GLenum target, GLsizei start, GLsizei count, GLenum format, + GLenum type, const GLvoid *data); +typedef void (APIENTRY * PFNGLGETCOLORTABLEEXTPROC) + (GLenum target, GLenum format, GLenum type, GLvoid *data); +typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) + (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) + (GLenum target, GLenum pname, GLfloat *params); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif /* __GL_H__ */ +#endif /* __gl_h_ */ diff --git a/HexaGen.Tests/opengl/GLU.h b/HexaGen.Tests/opengl/GLU.h new file mode 100644 index 0000000..d10a682 --- /dev/null +++ b/HexaGen.Tests/opengl/GLU.h @@ -0,0 +1,591 @@ +/*++ BUILD Version: 0004 // Increment this if a change has global effects + +Copyright (c) 1985-95, Microsoft Corporation + +Module Name: + + glu.h + +Abstract: + + Procedure declarations, constant definitions and macros for the OpenGL + Utility Library. + +--*/ + +#ifndef __glu_h__ +#ifndef __GLU_H__ + +#define __glu_h__ +#define __GLU_H__ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* +** Copyright 1991-1993, Silicon Graphics, Inc. +** All Rights Reserved. +** +** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.; +** the contents of this file may not be disclosed to third parties, copied or +** duplicated in any form, in whole or in part, without the prior written +** permission of Silicon Graphics, Inc. +** +** RESTRICTED RIGHTS LEGEND: +** Use, duplication or disclosure by the Government is subject to restrictions +** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data +** and Computer Software clause at DFARS 252.227-7013, and/or in similar or +** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished - +** rights reserved under the Copyright Laws of the United States. +*/ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/* +** Return the error string associated with a particular error code. +** This will return 0 for an invalid error code. +** +** The generic function prototype that can be compiled for ANSI or Unicode +** is defined as follows: +** +** LPCTSTR APIENTRY gluErrorStringWIN (GLenum errCode); +*/ +#ifdef UNICODE +#define gluErrorStringWIN(errCode) ((LPCSTR) gluErrorUnicodeStringEXT(errCode)) +#else +#define gluErrorStringWIN(errCode) ((LPCWSTR) gluErrorString(errCode)) +#endif + +const GLubyte* APIENTRY gluErrorString ( + GLenum errCode); + +const wchar_t* APIENTRY gluErrorUnicodeStringEXT ( + GLenum errCode); + +const GLubyte* APIENTRY gluGetString ( + GLenum name); + +void APIENTRY gluOrtho2D ( + GLdouble left, + GLdouble right, + GLdouble bottom, + GLdouble top); + +void APIENTRY gluPerspective ( + GLdouble fovy, + GLdouble aspect, + GLdouble zNear, + GLdouble zFar); + +void APIENTRY gluPickMatrix ( + GLdouble x, + GLdouble y, + GLdouble width, + GLdouble height, + GLint viewport[4]); + +void APIENTRY gluLookAt ( + GLdouble eyex, + GLdouble eyey, + GLdouble eyez, + GLdouble centerx, + GLdouble centery, + GLdouble centerz, + GLdouble upx, + GLdouble upy, + GLdouble upz); + +int APIENTRY gluProject ( + GLdouble objx, + GLdouble objy, + GLdouble objz, + const GLdouble modelMatrix[16], + const GLdouble projMatrix[16], + const GLint viewport[4], + GLdouble *winx, + GLdouble *winy, + GLdouble *winz); + +int APIENTRY gluUnProject ( + GLdouble winx, + GLdouble winy, + GLdouble winz, + const GLdouble modelMatrix[16], + const GLdouble projMatrix[16], + const GLint viewport[4], + GLdouble *objx, + GLdouble *objy, + GLdouble *objz); + + +int APIENTRY gluScaleImage ( + GLenum format, + GLint widthin, + GLint heightin, + GLenum typein, + const void *datain, + GLint widthout, + GLint heightout, + GLenum typeout, + void *dataout); + + +int APIENTRY gluBuild1DMipmaps ( + GLenum target, + GLint components, + GLint width, + GLenum format, + GLenum type, + const void *data); + +int APIENTRY gluBuild2DMipmaps ( + GLenum target, + GLint components, + GLint width, + GLint height, + GLenum format, + GLenum type, + const void *data); + +#ifdef __cplusplus + +class GLUnurbs; +class GLUquadric; +class GLUtesselator; + +/* backwards compatibility: */ +typedef class GLUnurbs GLUnurbsObj; +typedef class GLUquadric GLUquadricObj; +typedef class GLUtesselator GLUtesselatorObj; +typedef class GLUtesselator GLUtriangulatorObj; + +#else + +typedef struct GLUnurbs GLUnurbs; +typedef struct GLUquadric GLUquadric; +typedef struct GLUtesselator GLUtesselator; + +/* backwards compatibility: */ +typedef struct GLUnurbs GLUnurbsObj; +typedef struct GLUquadric GLUquadricObj; +typedef struct GLUtesselator GLUtesselatorObj; +typedef struct GLUtesselator GLUtriangulatorObj; + +#endif + + +GLUquadric* APIENTRY gluNewQuadric (void); +void APIENTRY gluDeleteQuadric ( + GLUquadric *state); + +void APIENTRY gluQuadricNormals ( + GLUquadric *quadObject, + GLenum normals); + +void APIENTRY gluQuadricTexture ( + GLUquadric *quadObject, + GLboolean textureCoords); + +void APIENTRY gluQuadricOrientation ( + GLUquadric *quadObject, + GLenum orientation); + +void APIENTRY gluQuadricDrawStyle ( + GLUquadric *quadObject, + GLenum drawStyle); + +void APIENTRY gluCylinder ( + GLUquadric *qobj, + GLdouble baseRadius, + GLdouble topRadius, + GLdouble height, + GLint slices, + GLint stacks); + +void APIENTRY gluDisk ( + GLUquadric *qobj, + GLdouble innerRadius, + GLdouble outerRadius, + GLint slices, + GLint loops); + +void APIENTRY gluPartialDisk ( + GLUquadric *qobj, + GLdouble innerRadius, + GLdouble outerRadius, + GLint slices, + GLint loops, + GLdouble startAngle, + GLdouble sweepAngle); + +void APIENTRY gluSphere ( + GLUquadric *qobj, + GLdouble radius, + GLint slices, + GLint stacks); + +void APIENTRY gluQuadricCallback ( + GLUquadric *qobj, + GLenum which, + void (CALLBACK* fn)()); + +GLUtesselator* APIENTRY gluNewTess( + void ); + +void APIENTRY gluDeleteTess( + GLUtesselator *tess ); + +void APIENTRY gluTessBeginPolygon( + GLUtesselator *tess, + void *polygon_data ); + +void APIENTRY gluTessBeginContour( + GLUtesselator *tess ); + +void APIENTRY gluTessVertex( + GLUtesselator *tess, + GLdouble coords[3], + void *data ); + +void APIENTRY gluTessEndContour( + GLUtesselator *tess ); + +void APIENTRY gluTessEndPolygon( + GLUtesselator *tess ); + +void APIENTRY gluTessProperty( + GLUtesselator *tess, + GLenum which, + GLdouble value ); + +void APIENTRY gluTessNormal( + GLUtesselator *tess, + GLdouble x, + GLdouble y, + GLdouble z ); + +void APIENTRY gluTessCallback( + GLUtesselator *tess, + GLenum which, + void (CALLBACK *fn)()); + +void APIENTRY gluGetTessProperty( + GLUtesselator *tess, + GLenum which, + GLdouble *value ); + +GLUnurbs* APIENTRY gluNewNurbsRenderer (void); + +void APIENTRY gluDeleteNurbsRenderer ( + GLUnurbs *nobj); + +void APIENTRY gluBeginSurface ( + GLUnurbs *nobj); + +void APIENTRY gluBeginCurve ( + GLUnurbs *nobj); + +void APIENTRY gluEndCurve ( + GLUnurbs *nobj); + +void APIENTRY gluEndSurface ( + GLUnurbs *nobj); + +void APIENTRY gluBeginTrim ( + GLUnurbs *nobj); + +void APIENTRY gluEndTrim ( + GLUnurbs *nobj); + +void APIENTRY gluPwlCurve ( + GLUnurbs *nobj, + GLint count, + GLfloat *array, + GLint stride, + GLenum type); + +void APIENTRY gluNurbsCurve ( + GLUnurbs *nobj, + GLint nknots, + GLfloat *knot, + GLint stride, + GLfloat *ctlarray, + GLint order, + GLenum type); + +void APIENTRY +gluNurbsSurface( + GLUnurbs *nobj, + GLint sknot_count, + float *sknot, + GLint tknot_count, + GLfloat *tknot, + GLint s_stride, + GLint t_stride, + GLfloat *ctlarray, + GLint sorder, + GLint torder, + GLenum type); + +void APIENTRY +gluLoadSamplingMatrices ( + GLUnurbs *nobj, + const GLfloat modelMatrix[16], + const GLfloat projMatrix[16], + const GLint viewport[4] ); + +void APIENTRY +gluNurbsProperty ( + GLUnurbs *nobj, + GLenum property, + GLfloat value ); + +void APIENTRY +gluGetNurbsProperty ( + GLUnurbs *nobj, + GLenum property, + GLfloat *value ); + +void APIENTRY +gluNurbsCallback ( + GLUnurbs *nobj, + GLenum which, + void (CALLBACK* fn)() ); + + +/**** Callback function prototypes ****/ + +/* gluQuadricCallback */ +typedef void (CALLBACK* GLUquadricErrorProc) (GLenum); + +/* gluTessCallback */ +typedef void (CALLBACK* GLUtessBeginProc) (GLenum); +typedef void (CALLBACK* GLUtessEdgeFlagProc) (GLboolean); +typedef void (CALLBACK* GLUtessVertexProc) (void *); +typedef void (CALLBACK* GLUtessEndProc) (void); +typedef void (CALLBACK* GLUtessErrorProc) (GLenum); +typedef void (CALLBACK* GLUtessCombineProc) (GLdouble[3], + void*[4], + GLfloat[4], + void** ); +typedef void (CALLBACK* GLUtessBeginDataProc) (GLenum, void *); +typedef void (CALLBACK* GLUtessEdgeFlagDataProc) (GLboolean, void *); +typedef void (CALLBACK* GLUtessVertexDataProc) (void *, void *); +typedef void (CALLBACK* GLUtessEndDataProc) (void *); +typedef void (CALLBACK* GLUtessErrorDataProc) (GLenum, void *); +typedef void (CALLBACK* GLUtessCombineDataProc) (GLdouble[3], + void*[4], + GLfloat[4], + void**, + void* ); + +/* gluNurbsCallback */ +typedef void (CALLBACK* GLUnurbsErrorProc) (GLenum); + + +/**** Generic constants ****/ + +/* Version */ +#define GLU_VERSION_1_1 1 +#define GLU_VERSION_1_2 1 + +/* Errors: (return value 0 = no error) */ +#define GLU_INVALID_ENUM 100900 +#define GLU_INVALID_VALUE 100901 +#define GLU_OUT_OF_MEMORY 100902 +#define GLU_INCOMPATIBLE_GL_VERSION 100903 + +/* StringName */ +#define GLU_VERSION 100800 +#define GLU_EXTENSIONS 100801 + +/* Boolean */ +#define GLU_TRUE GL_TRUE +#define GLU_FALSE GL_FALSE + + +/**** Quadric constants ****/ + +/* QuadricNormal */ +#define GLU_SMOOTH 100000 +#define GLU_FLAT 100001 +#define GLU_NONE 100002 + +/* QuadricDrawStyle */ +#define GLU_POINT 100010 +#define GLU_LINE 100011 +#define GLU_FILL 100012 +#define GLU_SILHOUETTE 100013 + +/* QuadricOrientation */ +#define GLU_OUTSIDE 100020 +#define GLU_INSIDE 100021 + +/* Callback types: */ +/* GLU_ERROR 100103 */ + + +/**** Tesselation constants ****/ + +#define GLU_TESS_MAX_COORD 1.0e150 + +/* TessProperty */ +#define GLU_TESS_WINDING_RULE 100140 +#define GLU_TESS_BOUNDARY_ONLY 100141 +#define GLU_TESS_TOLERANCE 100142 + +/* TessWinding */ +#define GLU_TESS_WINDING_ODD 100130 +#define GLU_TESS_WINDING_NONZERO 100131 +#define GLU_TESS_WINDING_POSITIVE 100132 +#define GLU_TESS_WINDING_NEGATIVE 100133 +#define GLU_TESS_WINDING_ABS_GEQ_TWO 100134 + +/* TessCallback */ +#define GLU_TESS_BEGIN 100100 /* void (CALLBACK*)(GLenum type) */ +#define GLU_TESS_VERTEX 100101 /* void (CALLBACK*)(void *data) */ +#define GLU_TESS_END 100102 /* void (CALLBACK*)(void) */ +#define GLU_TESS_ERROR 100103 /* void (CALLBACK*)(GLenum errno) */ +#define GLU_TESS_EDGE_FLAG 100104 /* void (CALLBACK*)(GLboolean boundaryEdge) */ +#define GLU_TESS_COMBINE 100105 /* void (CALLBACK*)(GLdouble coords[3], + void *data[4], + GLfloat weight[4], + void **dataOut) */ +#define GLU_TESS_BEGIN_DATA 100106 /* void (CALLBACK*)(GLenum type, + void *polygon_data) */ +#define GLU_TESS_VERTEX_DATA 100107 /* void (CALLBACK*)(void *data, + void *polygon_data) */ +#define GLU_TESS_END_DATA 100108 /* void (CALLBACK*)(void *polygon_data) */ +#define GLU_TESS_ERROR_DATA 100109 /* void (CALLBACK*)(GLenum errno, + void *polygon_data) */ +#define GLU_TESS_EDGE_FLAG_DATA 100110 /* void (CALLBACK*)(GLboolean boundaryEdge, + void *polygon_data) */ +#define GLU_TESS_COMBINE_DATA 100111 /* void (CALLBACK*)(GLdouble coords[3], + void *data[4], + GLfloat weight[4], + void **dataOut, + void *polygon_data) */ + +/* TessError */ +#define GLU_TESS_ERROR1 100151 +#define GLU_TESS_ERROR2 100152 +#define GLU_TESS_ERROR3 100153 +#define GLU_TESS_ERROR4 100154 +#define GLU_TESS_ERROR5 100155 +#define GLU_TESS_ERROR6 100156 +#define GLU_TESS_ERROR7 100157 +#define GLU_TESS_ERROR8 100158 + +#define GLU_TESS_MISSING_BEGIN_POLYGON GLU_TESS_ERROR1 +#define GLU_TESS_MISSING_BEGIN_CONTOUR GLU_TESS_ERROR2 +#define GLU_TESS_MISSING_END_POLYGON GLU_TESS_ERROR3 +#define GLU_TESS_MISSING_END_CONTOUR GLU_TESS_ERROR4 +#define GLU_TESS_COORD_TOO_LARGE GLU_TESS_ERROR5 +#define GLU_TESS_NEED_COMBINE_CALLBACK GLU_TESS_ERROR6 + +/**** NURBS constants ****/ + +/* NurbsProperty */ +#define GLU_AUTO_LOAD_MATRIX 100200 +#define GLU_CULLING 100201 +#define GLU_SAMPLING_TOLERANCE 100203 +#define GLU_DISPLAY_MODE 100204 +#define GLU_PARAMETRIC_TOLERANCE 100202 +#define GLU_SAMPLING_METHOD 100205 +#define GLU_U_STEP 100206 +#define GLU_V_STEP 100207 + +/* NurbsSampling */ +#define GLU_PATH_LENGTH 100215 +#define GLU_PARAMETRIC_ERROR 100216 +#define GLU_DOMAIN_DISTANCE 100217 + + +/* NurbsTrim */ +#define GLU_MAP1_TRIM_2 100210 +#define GLU_MAP1_TRIM_3 100211 + +/* NurbsDisplay */ +/* GLU_FILL 100012 */ +#define GLU_OUTLINE_POLYGON 100240 +#define GLU_OUTLINE_PATCH 100241 + +/* NurbsCallback */ +/* GLU_ERROR 100103 */ + +/* NurbsErrors */ +#define GLU_NURBS_ERROR1 100251 +#define GLU_NURBS_ERROR2 100252 +#define GLU_NURBS_ERROR3 100253 +#define GLU_NURBS_ERROR4 100254 +#define GLU_NURBS_ERROR5 100255 +#define GLU_NURBS_ERROR6 100256 +#define GLU_NURBS_ERROR7 100257 +#define GLU_NURBS_ERROR8 100258 +#define GLU_NURBS_ERROR9 100259 +#define GLU_NURBS_ERROR10 100260 +#define GLU_NURBS_ERROR11 100261 +#define GLU_NURBS_ERROR12 100262 +#define GLU_NURBS_ERROR13 100263 +#define GLU_NURBS_ERROR14 100264 +#define GLU_NURBS_ERROR15 100265 +#define GLU_NURBS_ERROR16 100266 +#define GLU_NURBS_ERROR17 100267 +#define GLU_NURBS_ERROR18 100268 +#define GLU_NURBS_ERROR19 100269 +#define GLU_NURBS_ERROR20 100270 +#define GLU_NURBS_ERROR21 100271 +#define GLU_NURBS_ERROR22 100272 +#define GLU_NURBS_ERROR23 100273 +#define GLU_NURBS_ERROR24 100274 +#define GLU_NURBS_ERROR25 100275 +#define GLU_NURBS_ERROR26 100276 +#define GLU_NURBS_ERROR27 100277 +#define GLU_NURBS_ERROR28 100278 +#define GLU_NURBS_ERROR29 100279 +#define GLU_NURBS_ERROR30 100280 +#define GLU_NURBS_ERROR31 100281 +#define GLU_NURBS_ERROR32 100282 +#define GLU_NURBS_ERROR33 100283 +#define GLU_NURBS_ERROR34 100284 +#define GLU_NURBS_ERROR35 100285 +#define GLU_NURBS_ERROR36 100286 +#define GLU_NURBS_ERROR37 100287 + +/**** Backwards compatibility for old tesselator ****/ + +void APIENTRY gluBeginPolygon( GLUtesselator *tess ); + +void APIENTRY gluNextContour( GLUtesselator *tess, + GLenum type ); + +void APIENTRY gluEndPolygon( GLUtesselator *tess ); + +/* Contours types -- obsolete! */ +#define GLU_CW 100120 +#define GLU_CCW 100121 +#define GLU_INTERIOR 100122 +#define GLU_EXTERIOR 100123 +#define GLU_UNKNOWN 100124 + +/* Names without "TESS_" prefix */ +#define GLU_BEGIN GLU_TESS_BEGIN +#define GLU_VERTEX GLU_TESS_VERTEX +#define GLU_END GLU_TESS_END +#define GLU_ERROR GLU_TESS_ERROR +#define GLU_EDGE_FLAG GLU_TESS_EDGE_FLAG + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif /* __GLU_H__ */ +#endif /* __glu_h__ */ diff --git a/HexaGen.Tests/opengl/generator.json b/HexaGen.Tests/opengl/generator.json new file mode 100644 index 0000000..df9f239 --- /dev/null +++ b/HexaGen.Tests/opengl/generator.json @@ -0,0 +1,46 @@ +{ + "Namespace": "Hexa.NET.OpenGL", + "ApiName": "OpenGL", + "LibName": "OpenGL32", + "GenerateSizeOfStructs": false, + "ConstantNamingConvention": "ScreamingSnakeCase", + "KnownConstantNames": { + }, + "KnownEnumValueNames": { + "": "" + }, + "KnownEnumPrefixes": { + }, + "KnownExtensionPrefixes": { + }, + "KnownExtensionNames": { + }, + "KnownStructMethods": { + }, + "IgnoredParts": [ + "bit" + ], + "PreserveCaps": [ + "" + ], + "TypeMappings": { + "GLenum": "uint", + "GLboolean": "byte", + "GLbitfield": "uint", + "GLbyte": "sbyte", + "GLshort": "short", + "GLint": "int", + "GLsizei": "int", + "GLubyte": "byte", + "GLushort": "ushort", + "GLuint": "uint", + "GLfloat": "float", + "GLclampf": "float", + "GLdouble": "double", + "GLclampd": "double", + "GLvoid": "void", + "GLUnurbs": "void", + "GLUquadric": "void", + "GLUtesselator": "void" + } +} \ No newline at end of file diff --git a/HexaGen.Tests/opengl/glcorearb.h b/HexaGen.Tests/opengl/glcorearb.h new file mode 100644 index 0000000..a46b549 --- /dev/null +++ b/HexaGen.Tests/opengl/glcorearb.h @@ -0,0 +1,5995 @@ +#ifndef __gl_glcorearb_h_ +#define __gl_glcorearb_h_ 1 + +#ifdef __cplusplus +extern "C" { +#endif + +/* +** Copyright 2013-2020 The Khronos Group Inc. +** SPDX-License-Identifier: MIT +** +** This header is generated from the Khronos OpenGL / OpenGL ES XML +** API Registry. The current version of the Registry, generator scripts +** used to make the header, and the header can be found at +** https://github.com/KhronosGroup/OpenGL-Registry +*/ + +#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif +#include +#endif + +#ifndef APIENTRY +#define APIENTRY +#endif +#ifndef APIENTRYP +#define APIENTRYP APIENTRY * +#endif +#ifndef GLAPI +#define GLAPI extern +#endif + +/* glcorearb.h is for use with OpenGL core profile implementations. +** It should should be placed in the same directory as gl.h and +** included as . +** +** glcorearb.h includes only APIs in the latest OpenGL core profile +** implementation together with APIs in newer ARB extensions which +** can be supported by the core profile. It does not, and never will +** include functionality removed from the core profile, such as +** fixed-function vertex and fragment processing. +** +** Do not #include both and either of or +** in the same source file. +*/ + +/* Generated C header for: + * API: gl + * Profile: core + * Versions considered: .* + * Versions emitted: .* + * Default extensions included: glcore + * Additional extensions included: _nomatch_^ + * Extensions removed: _nomatch_^ + */ + +#ifndef GL_VERSION_1_0 +#define GL_VERSION_1_0 1 +typedef void GLvoid; +typedef unsigned int GLenum; +#include +typedef khronos_float_t GLfloat; +typedef int GLint; +typedef int GLsizei; +typedef unsigned int GLbitfield; +typedef double GLdouble; +typedef unsigned int GLuint; +typedef unsigned char GLboolean; +typedef khronos_uint8_t GLubyte; +#define GL_DEPTH_BUFFER_BIT 0x00000100 +#define GL_STENCIL_BUFFER_BIT 0x00000400 +#define GL_COLOR_BUFFER_BIT 0x00004000 +#define GL_FALSE 0 +#define GL_TRUE 1 +#define GL_POINTS 0x0000 +#define GL_LINES 0x0001 +#define GL_LINE_LOOP 0x0002 +#define GL_LINE_STRIP 0x0003 +#define GL_TRIANGLES 0x0004 +#define GL_TRIANGLE_STRIP 0x0005 +#define GL_TRIANGLE_FAN 0x0006 +#define GL_QUADS 0x0007 +#define GL_NEVER 0x0200 +#define GL_LESS 0x0201 +#define GL_EQUAL 0x0202 +#define GL_LEQUAL 0x0203 +#define GL_GREATER 0x0204 +#define GL_NOTEQUAL 0x0205 +#define GL_GEQUAL 0x0206 +#define GL_ALWAYS 0x0207 +#define GL_ZERO 0 +#define GL_ONE 1 +#define GL_SRC_COLOR 0x0300 +#define GL_ONE_MINUS_SRC_COLOR 0x0301 +#define GL_SRC_ALPHA 0x0302 +#define GL_ONE_MINUS_SRC_ALPHA 0x0303 +#define GL_DST_ALPHA 0x0304 +#define GL_ONE_MINUS_DST_ALPHA 0x0305 +#define GL_DST_COLOR 0x0306 +#define GL_ONE_MINUS_DST_COLOR 0x0307 +#define GL_SRC_ALPHA_SATURATE 0x0308 +#define GL_NONE 0 +#define GL_FRONT_LEFT 0x0400 +#define GL_FRONT_RIGHT 0x0401 +#define GL_BACK_LEFT 0x0402 +#define GL_BACK_RIGHT 0x0403 +#define GL_FRONT 0x0404 +#define GL_BACK 0x0405 +#define GL_LEFT 0x0406 +#define GL_RIGHT 0x0407 +#define GL_FRONT_AND_BACK 0x0408 +#define GL_NO_ERROR 0 +#define GL_INVALID_ENUM 0x0500 +#define GL_INVALID_VALUE 0x0501 +#define GL_INVALID_OPERATION 0x0502 +#define GL_OUT_OF_MEMORY 0x0505 +#define GL_CW 0x0900 +#define GL_CCW 0x0901 +#define GL_POINT_SIZE 0x0B11 +#define GL_POINT_SIZE_RANGE 0x0B12 +#define GL_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_LINE_SMOOTH 0x0B20 +#define GL_LINE_WIDTH 0x0B21 +#define GL_LINE_WIDTH_RANGE 0x0B22 +#define GL_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_POLYGON_MODE 0x0B40 +#define GL_POLYGON_SMOOTH 0x0B41 +#define GL_CULL_FACE 0x0B44 +#define GL_CULL_FACE_MODE 0x0B45 +#define GL_FRONT_FACE 0x0B46 +#define GL_DEPTH_RANGE 0x0B70 +#define GL_DEPTH_TEST 0x0B71 +#define GL_DEPTH_WRITEMASK 0x0B72 +#define GL_DEPTH_CLEAR_VALUE 0x0B73 +#define GL_DEPTH_FUNC 0x0B74 +#define GL_STENCIL_TEST 0x0B90 +#define GL_STENCIL_CLEAR_VALUE 0x0B91 +#define GL_STENCIL_FUNC 0x0B92 +#define GL_STENCIL_VALUE_MASK 0x0B93 +#define GL_STENCIL_FAIL 0x0B94 +#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 +#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 +#define GL_STENCIL_REF 0x0B97 +#define GL_STENCIL_WRITEMASK 0x0B98 +#define GL_VIEWPORT 0x0BA2 +#define GL_DITHER 0x0BD0 +#define GL_BLEND_DST 0x0BE0 +#define GL_BLEND_SRC 0x0BE1 +#define GL_BLEND 0x0BE2 +#define GL_LOGIC_OP_MODE 0x0BF0 +#define GL_DRAW_BUFFER 0x0C01 +#define GL_READ_BUFFER 0x0C02 +#define GL_SCISSOR_BOX 0x0C10 +#define GL_SCISSOR_TEST 0x0C11 +#define GL_COLOR_CLEAR_VALUE 0x0C22 +#define GL_COLOR_WRITEMASK 0x0C23 +#define GL_DOUBLEBUFFER 0x0C32 +#define GL_STEREO 0x0C33 +#define GL_LINE_SMOOTH_HINT 0x0C52 +#define GL_POLYGON_SMOOTH_HINT 0x0C53 +#define GL_UNPACK_SWAP_BYTES 0x0CF0 +#define GL_UNPACK_LSB_FIRST 0x0CF1 +#define GL_UNPACK_ROW_LENGTH 0x0CF2 +#define GL_UNPACK_SKIP_ROWS 0x0CF3 +#define GL_UNPACK_SKIP_PIXELS 0x0CF4 +#define GL_UNPACK_ALIGNMENT 0x0CF5 +#define GL_PACK_SWAP_BYTES 0x0D00 +#define GL_PACK_LSB_FIRST 0x0D01 +#define GL_PACK_ROW_LENGTH 0x0D02 +#define GL_PACK_SKIP_ROWS 0x0D03 +#define GL_PACK_SKIP_PIXELS 0x0D04 +#define GL_PACK_ALIGNMENT 0x0D05 +#define GL_MAX_TEXTURE_SIZE 0x0D33 +#define GL_MAX_VIEWPORT_DIMS 0x0D3A +#define GL_SUBPIXEL_BITS 0x0D50 +#define GL_TEXTURE_1D 0x0DE0 +#define GL_TEXTURE_2D 0x0DE1 +#define GL_TEXTURE_WIDTH 0x1000 +#define GL_TEXTURE_HEIGHT 0x1001 +#define GL_TEXTURE_BORDER_COLOR 0x1004 +#define GL_DONT_CARE 0x1100 +#define GL_FASTEST 0x1101 +#define GL_NICEST 0x1102 +#define GL_BYTE 0x1400 +#define GL_UNSIGNED_BYTE 0x1401 +#define GL_SHORT 0x1402 +#define GL_UNSIGNED_SHORT 0x1403 +#define GL_INT 0x1404 +#define GL_UNSIGNED_INT 0x1405 +#define GL_FLOAT 0x1406 +#define GL_STACK_OVERFLOW 0x0503 +#define GL_STACK_UNDERFLOW 0x0504 +#define GL_CLEAR 0x1500 +#define GL_AND 0x1501 +#define GL_AND_REVERSE 0x1502 +#define GL_COPY 0x1503 +#define GL_AND_INVERTED 0x1504 +#define GL_NOOP 0x1505 +#define GL_XOR 0x1506 +#define GL_OR 0x1507 +#define GL_NOR 0x1508 +#define GL_EQUIV 0x1509 +#define GL_INVERT 0x150A +#define GL_OR_REVERSE 0x150B +#define GL_COPY_INVERTED 0x150C +#define GL_OR_INVERTED 0x150D +#define GL_NAND 0x150E +#define GL_SET 0x150F +#define GL_TEXTURE 0x1702 +#define GL_COLOR 0x1800 +#define GL_DEPTH 0x1801 +#define GL_STENCIL 0x1802 +#define GL_STENCIL_INDEX 0x1901 +#define GL_DEPTH_COMPONENT 0x1902 +#define GL_RED 0x1903 +#define GL_GREEN 0x1904 +#define GL_BLUE 0x1905 +#define GL_ALPHA 0x1906 +#define GL_RGB 0x1907 +#define GL_RGBA 0x1908 +#define GL_POINT 0x1B00 +#define GL_LINE 0x1B01 +#define GL_FILL 0x1B02 +#define GL_KEEP 0x1E00 +#define GL_REPLACE 0x1E01 +#define GL_INCR 0x1E02 +#define GL_DECR 0x1E03 +#define GL_VENDOR 0x1F00 +#define GL_RENDERER 0x1F01 +#define GL_VERSION 0x1F02 +#define GL_EXTENSIONS 0x1F03 +#define GL_NEAREST 0x2600 +#define GL_LINEAR 0x2601 +#define GL_NEAREST_MIPMAP_NEAREST 0x2700 +#define GL_LINEAR_MIPMAP_NEAREST 0x2701 +#define GL_NEAREST_MIPMAP_LINEAR 0x2702 +#define GL_LINEAR_MIPMAP_LINEAR 0x2703 +#define GL_TEXTURE_MAG_FILTER 0x2800 +#define GL_TEXTURE_MIN_FILTER 0x2801 +#define GL_TEXTURE_WRAP_S 0x2802 +#define GL_TEXTURE_WRAP_T 0x2803 +#define GL_REPEAT 0x2901 +typedef void (APIENTRYP PFNGLCULLFACEPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLFRONTFACEPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLHINTPROC) (GLenum target, GLenum mode); +typedef void (APIENTRYP PFNGLLINEWIDTHPROC) (GLfloat width); +typedef void (APIENTRYP PFNGLPOINTSIZEPROC) (GLfloat size); +typedef void (APIENTRYP PFNGLPOLYGONMODEPROC) (GLenum face, GLenum mode); +typedef void (APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLTEXPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLTEXIMAGE1DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLDRAWBUFFERPROC) (GLenum buf); +typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask); +typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (APIENTRYP PFNGLCLEARSTENCILPROC) (GLint s); +typedef void (APIENTRYP PFNGLCLEARDEPTHPROC) (GLdouble depth); +typedef void (APIENTRYP PFNGLSTENCILMASKPROC) (GLuint mask); +typedef void (APIENTRYP PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +typedef void (APIENTRYP PFNGLDEPTHMASKPROC) (GLboolean flag); +typedef void (APIENTRYP PFNGLDISABLEPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLENABLEPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLFINISHPROC) (void); +typedef void (APIENTRYP PFNGLFLUSHPROC) (void); +typedef void (APIENTRYP PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor); +typedef void (APIENTRYP PFNGLLOGICOPPROC) (GLenum opcode); +typedef void (APIENTRYP PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask); +typedef void (APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass); +typedef void (APIENTRYP PFNGLDEPTHFUNCPROC) (GLenum func); +typedef void (APIENTRYP PFNGLPIXELSTOREFPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLREADBUFFERPROC) (GLenum src); +typedef void (APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); +typedef void (APIENTRYP PFNGLGETBOOLEANVPROC) (GLenum pname, GLboolean *data); +typedef void (APIENTRYP PFNGLGETDOUBLEVPROC) (GLenum pname, GLdouble *data); +typedef GLenum (APIENTRYP PFNGLGETERRORPROC) (void); +typedef void (APIENTRYP PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *data); +typedef void (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *data); +typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGPROC) (GLenum name); +typedef void (APIENTRYP PFNGLGETTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +typedef void (APIENTRYP PFNGLGETTEXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERFVPROC) (GLenum target, GLint level, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERIVPROC) (GLenum target, GLint level, GLenum pname, GLint *params); +typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLDEPTHRANGEPROC) (GLdouble n, GLdouble f); +typedef void (APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCullFace (GLenum mode); +GLAPI void APIENTRY glFrontFace (GLenum mode); +GLAPI void APIENTRY glHint (GLenum target, GLenum mode); +GLAPI void APIENTRY glLineWidth (GLfloat width); +GLAPI void APIENTRY glPointSize (GLfloat size); +GLAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode); +GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param); +GLAPI void APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glDrawBuffer (GLenum buf); +GLAPI void APIENTRY glClear (GLbitfield mask); +GLAPI void APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +GLAPI void APIENTRY glClearStencil (GLint s); +GLAPI void APIENTRY glClearDepth (GLdouble depth); +GLAPI void APIENTRY glStencilMask (GLuint mask); +GLAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +GLAPI void APIENTRY glDepthMask (GLboolean flag); +GLAPI void APIENTRY glDisable (GLenum cap); +GLAPI void APIENTRY glEnable (GLenum cap); +GLAPI void APIENTRY glFinish (void); +GLAPI void APIENTRY glFlush (void); +GLAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); +GLAPI void APIENTRY glLogicOp (GLenum opcode); +GLAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); +GLAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); +GLAPI void APIENTRY glDepthFunc (GLenum func); +GLAPI void APIENTRY glPixelStoref (GLenum pname, GLfloat param); +GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param); +GLAPI void APIENTRY glReadBuffer (GLenum src); +GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); +GLAPI void APIENTRY glGetBooleanv (GLenum pname, GLboolean *data); +GLAPI void APIENTRY glGetDoublev (GLenum pname, GLdouble *data); +GLAPI GLenum APIENTRY glGetError (void); +GLAPI void APIENTRY glGetFloatv (GLenum pname, GLfloat *data); +GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *data); +GLAPI const GLubyte *APIENTRY glGetString (GLenum name); +GLAPI void APIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +GLAPI void APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params); +GLAPI GLboolean APIENTRY glIsEnabled (GLenum cap); +GLAPI void APIENTRY glDepthRange (GLdouble n, GLdouble f); +GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); +#endif +#endif /* GL_VERSION_1_0 */ + +#ifndef GL_VERSION_1_1 +#define GL_VERSION_1_1 1 +typedef khronos_float_t GLclampf; +typedef double GLclampd; +#define GL_COLOR_LOGIC_OP 0x0BF2 +#define GL_POLYGON_OFFSET_UNITS 0x2A00 +#define GL_POLYGON_OFFSET_POINT 0x2A01 +#define GL_POLYGON_OFFSET_LINE 0x2A02 +#define GL_POLYGON_OFFSET_FILL 0x8037 +#define GL_POLYGON_OFFSET_FACTOR 0x8038 +#define GL_TEXTURE_BINDING_1D 0x8068 +#define GL_TEXTURE_BINDING_2D 0x8069 +#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 +#define GL_TEXTURE_RED_SIZE 0x805C +#define GL_TEXTURE_GREEN_SIZE 0x805D +#define GL_TEXTURE_BLUE_SIZE 0x805E +#define GL_TEXTURE_ALPHA_SIZE 0x805F +#define GL_DOUBLE 0x140A +#define GL_PROXY_TEXTURE_1D 0x8063 +#define GL_PROXY_TEXTURE_2D 0x8064 +#define GL_R3_G3_B2 0x2A10 +#define GL_RGB4 0x804F +#define GL_RGB5 0x8050 +#define GL_RGB8 0x8051 +#define GL_RGB10 0x8052 +#define GL_RGB12 0x8053 +#define GL_RGB16 0x8054 +#define GL_RGBA2 0x8055 +#define GL_RGBA4 0x8056 +#define GL_RGB5_A1 0x8057 +#define GL_RGBA8 0x8058 +#define GL_RGB10_A2 0x8059 +#define GL_RGBA12 0x805A +#define GL_RGBA16 0x805B +#define GL_VERTEX_ARRAY 0x8074 +typedef void (APIENTRYP PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count); +typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices); +typedef void (APIENTRYP PFNGLGETPOINTERVPROC) (GLenum pname, void **params); +typedef void (APIENTRYP PFNGLPOLYGONOFFSETPROC) (GLfloat factor, GLfloat units); +typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture); +typedef void (APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures); +typedef void (APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures); +typedef GLboolean (APIENTRYP PFNGLISTEXTUREPROC) (GLuint texture); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); +GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices); +GLAPI void APIENTRY glGetPointerv (GLenum pname, void **params); +GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units); +GLAPI void APIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +GLAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +GLAPI void APIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +GLAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture); +GLAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); +GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures); +GLAPI GLboolean APIENTRY glIsTexture (GLuint texture); +#endif +#endif /* GL_VERSION_1_1 */ + +#ifndef GL_VERSION_1_2 +#define GL_VERSION_1_2 1 +#define GL_UNSIGNED_BYTE_3_3_2 0x8032 +#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 +#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 +#define GL_UNSIGNED_INT_8_8_8_8 0x8035 +#define GL_UNSIGNED_INT_10_10_10_2 0x8036 +#define GL_TEXTURE_BINDING_3D 0x806A +#define GL_PACK_SKIP_IMAGES 0x806B +#define GL_PACK_IMAGE_HEIGHT 0x806C +#define GL_UNPACK_SKIP_IMAGES 0x806D +#define GL_UNPACK_IMAGE_HEIGHT 0x806E +#define GL_TEXTURE_3D 0x806F +#define GL_PROXY_TEXTURE_3D 0x8070 +#define GL_TEXTURE_DEPTH 0x8071 +#define GL_TEXTURE_WRAP_R 0x8072 +#define GL_MAX_3D_TEXTURE_SIZE 0x8073 +#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 +#define GL_UNSIGNED_SHORT_5_6_5 0x8363 +#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 +#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 +#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 +#define GL_BGR 0x80E0 +#define GL_BGRA 0x80E1 +#define GL_MAX_ELEMENTS_VERTICES 0x80E8 +#define GL_MAX_ELEMENTS_INDICES 0x80E9 +#define GL_CLAMP_TO_EDGE 0x812F +#define GL_TEXTURE_MIN_LOD 0x813A +#define GL_TEXTURE_MAX_LOD 0x813B +#define GL_TEXTURE_BASE_LEVEL 0x813C +#define GL_TEXTURE_MAX_LEVEL 0x813D +#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 +#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 +#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices); +typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices); +GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#endif +#endif /* GL_VERSION_1_2 */ + +#ifndef GL_VERSION_1_3 +#define GL_VERSION_1_3 1 +#define GL_TEXTURE0 0x84C0 +#define GL_TEXTURE1 0x84C1 +#define GL_TEXTURE2 0x84C2 +#define GL_TEXTURE3 0x84C3 +#define GL_TEXTURE4 0x84C4 +#define GL_TEXTURE5 0x84C5 +#define GL_TEXTURE6 0x84C6 +#define GL_TEXTURE7 0x84C7 +#define GL_TEXTURE8 0x84C8 +#define GL_TEXTURE9 0x84C9 +#define GL_TEXTURE10 0x84CA +#define GL_TEXTURE11 0x84CB +#define GL_TEXTURE12 0x84CC +#define GL_TEXTURE13 0x84CD +#define GL_TEXTURE14 0x84CE +#define GL_TEXTURE15 0x84CF +#define GL_TEXTURE16 0x84D0 +#define GL_TEXTURE17 0x84D1 +#define GL_TEXTURE18 0x84D2 +#define GL_TEXTURE19 0x84D3 +#define GL_TEXTURE20 0x84D4 +#define GL_TEXTURE21 0x84D5 +#define GL_TEXTURE22 0x84D6 +#define GL_TEXTURE23 0x84D7 +#define GL_TEXTURE24 0x84D8 +#define GL_TEXTURE25 0x84D9 +#define GL_TEXTURE26 0x84DA +#define GL_TEXTURE27 0x84DB +#define GL_TEXTURE28 0x84DC +#define GL_TEXTURE29 0x84DD +#define GL_TEXTURE30 0x84DE +#define GL_TEXTURE31 0x84DF +#define GL_ACTIVE_TEXTURE 0x84E0 +#define GL_MULTISAMPLE 0x809D +#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE 0x809F +#define GL_SAMPLE_COVERAGE 0x80A0 +#define GL_SAMPLE_BUFFERS 0x80A8 +#define GL_SAMPLES 0x80A9 +#define GL_SAMPLE_COVERAGE_VALUE 0x80AA +#define GL_SAMPLE_COVERAGE_INVERT 0x80AB +#define GL_TEXTURE_CUBE_MAP 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C +#define GL_COMPRESSED_RGB 0x84ED +#define GL_COMPRESSED_RGBA 0x84EE +#define GL_TEXTURE_COMPRESSION_HINT 0x84EF +#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 +#define GL_TEXTURE_COMPRESSED 0x86A1 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 +#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 +#define GL_CLAMP_TO_BORDER 0x812D +typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); +typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glActiveTexture (GLenum texture); +GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert); +GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, void *img); +#endif +#endif /* GL_VERSION_1_3 */ + +#ifndef GL_VERSION_1_4 +#define GL_VERSION_1_4 1 +#define GL_BLEND_DST_RGB 0x80C8 +#define GL_BLEND_SRC_RGB 0x80C9 +#define GL_BLEND_DST_ALPHA 0x80CA +#define GL_BLEND_SRC_ALPHA 0x80CB +#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 +#define GL_DEPTH_COMPONENT16 0x81A5 +#define GL_DEPTH_COMPONENT24 0x81A6 +#define GL_DEPTH_COMPONENT32 0x81A7 +#define GL_MIRRORED_REPEAT 0x8370 +#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD +#define GL_TEXTURE_LOD_BIAS 0x8501 +#define GL_INCR_WRAP 0x8507 +#define GL_DECR_WRAP 0x8508 +#define GL_TEXTURE_DEPTH_SIZE 0x884A +#define GL_TEXTURE_COMPARE_MODE 0x884C +#define GL_TEXTURE_COMPARE_FUNC 0x884D +#define GL_BLEND_COLOR 0x8005 +#define GL_BLEND_EQUATION 0x8009 +#define GL_CONSTANT_COLOR 0x8001 +#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 +#define GL_CONSTANT_ALPHA 0x8003 +#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 +#define GL_FUNC_ADD 0x8006 +#define GL_FUNC_REVERSE_SUBTRACT 0x800B +#define GL_FUNC_SUBTRACT 0x800A +#define GL_MIN 0x8007 +#define GL_MAX 0x8008 +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); +GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount); +GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param); +GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param); +GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params); +GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +GLAPI void APIENTRY glBlendEquation (GLenum mode); +#endif +#endif /* GL_VERSION_1_4 */ + +#ifndef GL_VERSION_1_5 +#define GL_VERSION_1_5 1 +typedef khronos_ssize_t GLsizeiptr; +typedef khronos_intptr_t GLintptr; +#define GL_BUFFER_SIZE 0x8764 +#define GL_BUFFER_USAGE 0x8765 +#define GL_QUERY_COUNTER_BITS 0x8864 +#define GL_CURRENT_QUERY 0x8865 +#define GL_QUERY_RESULT 0x8866 +#define GL_QUERY_RESULT_AVAILABLE 0x8867 +#define GL_ARRAY_BUFFER 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER 0x8893 +#define GL_ARRAY_BUFFER_BINDING 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F +#define GL_READ_ONLY 0x88B8 +#define GL_WRITE_ONLY 0x88B9 +#define GL_READ_WRITE 0x88BA +#define GL_BUFFER_ACCESS 0x88BB +#define GL_BUFFER_MAPPED 0x88BC +#define GL_BUFFER_MAP_POINTER 0x88BD +#define GL_STREAM_DRAW 0x88E0 +#define GL_STREAM_READ 0x88E1 +#define GL_STREAM_COPY 0x88E2 +#define GL_STATIC_DRAW 0x88E4 +#define GL_STATIC_READ 0x88E5 +#define GL_STATIC_COPY 0x88E6 +#define GL_DYNAMIC_DRAW 0x88E8 +#define GL_DYNAMIC_READ 0x88E9 +#define GL_DYNAMIC_COPY 0x88EA +#define GL_SAMPLES_PASSED 0x8914 +#define GL_SRC1_ALPHA 0x8589 +typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids); +typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id); +typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); +typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); +typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers); +typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers); +typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage); +typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data); +typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void *data); +typedef void *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); +typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void **params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids); +GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids); +GLAPI GLboolean APIENTRY glIsQuery (GLuint id); +GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id); +GLAPI void APIENTRY glEndQuery (GLenum target); +GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params); +GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer); +GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers); +GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers); +GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer); +GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage); +GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data); +GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void *data); +GLAPI void *APIENTRY glMapBuffer (GLenum target, GLenum access); +GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target); +GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, void **params); +#endif +#endif /* GL_VERSION_1_5 */ + +#ifndef GL_VERSION_2_0 +#define GL_VERSION_2_0 1 +typedef char GLchar; +typedef khronos_int16_t GLshort; +typedef khronos_int8_t GLbyte; +typedef khronos_uint16_t GLushort; +#define GL_BLEND_EQUATION_RGB 0x8009 +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 +#define GL_CURRENT_VERTEX_ATTRIB 0x8626 +#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 +#define GL_STENCIL_BACK_FUNC 0x8800 +#define GL_STENCIL_BACK_FAIL 0x8801 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 +#define GL_MAX_DRAW_BUFFERS 0x8824 +#define GL_DRAW_BUFFER0 0x8825 +#define GL_DRAW_BUFFER1 0x8826 +#define GL_DRAW_BUFFER2 0x8827 +#define GL_DRAW_BUFFER3 0x8828 +#define GL_DRAW_BUFFER4 0x8829 +#define GL_DRAW_BUFFER5 0x882A +#define GL_DRAW_BUFFER6 0x882B +#define GL_DRAW_BUFFER7 0x882C +#define GL_DRAW_BUFFER8 0x882D +#define GL_DRAW_BUFFER9 0x882E +#define GL_DRAW_BUFFER10 0x882F +#define GL_DRAW_BUFFER11 0x8830 +#define GL_DRAW_BUFFER12 0x8831 +#define GL_DRAW_BUFFER13 0x8832 +#define GL_DRAW_BUFFER14 0x8833 +#define GL_DRAW_BUFFER15 0x8834 +#define GL_BLEND_EQUATION_ALPHA 0x883D +#define GL_MAX_VERTEX_ATTRIBS 0x8869 +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A +#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 +#define GL_FRAGMENT_SHADER 0x8B30 +#define GL_VERTEX_SHADER 0x8B31 +#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 +#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A +#define GL_MAX_VARYING_FLOATS 0x8B4B +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D +#define GL_SHADER_TYPE 0x8B4F +#define GL_FLOAT_VEC2 0x8B50 +#define GL_FLOAT_VEC3 0x8B51 +#define GL_FLOAT_VEC4 0x8B52 +#define GL_INT_VEC2 0x8B53 +#define GL_INT_VEC3 0x8B54 +#define GL_INT_VEC4 0x8B55 +#define GL_BOOL 0x8B56 +#define GL_BOOL_VEC2 0x8B57 +#define GL_BOOL_VEC3 0x8B58 +#define GL_BOOL_VEC4 0x8B59 +#define GL_FLOAT_MAT2 0x8B5A +#define GL_FLOAT_MAT3 0x8B5B +#define GL_FLOAT_MAT4 0x8B5C +#define GL_SAMPLER_1D 0x8B5D +#define GL_SAMPLER_2D 0x8B5E +#define GL_SAMPLER_3D 0x8B5F +#define GL_SAMPLER_CUBE 0x8B60 +#define GL_SAMPLER_1D_SHADOW 0x8B61 +#define GL_SAMPLER_2D_SHADOW 0x8B62 +#define GL_DELETE_STATUS 0x8B80 +#define GL_COMPILE_STATUS 0x8B81 +#define GL_LINK_STATUS 0x8B82 +#define GL_VALIDATE_STATUS 0x8B83 +#define GL_INFO_LOG_LENGTH 0x8B84 +#define GL_ATTACHED_SHADERS 0x8B85 +#define GL_ACTIVE_UNIFORMS 0x8B86 +#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 +#define GL_SHADER_SOURCE_LENGTH 0x8B88 +#define GL_ACTIVE_ATTRIBUTES 0x8B89 +#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B +#define GL_SHADING_LANGUAGE_VERSION 0x8B8C +#define GL_CURRENT_PROGRAM 0x8B8D +#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 +#define GL_LOWER_LEFT 0x8CA1 +#define GL_UPPER_LEFT 0x8CA2 +#define GL_STENCIL_BACK_REF 0x8CA3 +#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 +#define GL_STENCIL_BACK_WRITEMASK 0x8CA5 +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha); +typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs); +typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); +typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask); +typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask); +typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name); +typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader); +typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void); +typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type); +typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader); +typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders); +typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); +typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params); +typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program); +typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader); +typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); +typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0); +typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1); +typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0); +typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1); +typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2); +typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha); +GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs); +GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); +GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask); +GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask); +GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader); +GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name); +GLAPI void APIENTRY glCompileShader (GLuint shader); +GLAPI GLuint APIENTRY glCreateProgram (void); +GLAPI GLuint APIENTRY glCreateShader (GLenum type); +GLAPI void APIENTRY glDeleteProgram (GLuint program); +GLAPI void APIENTRY glDeleteShader (GLuint shader); +GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader); +GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index); +GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index); +GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders); +GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name); +GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); +GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name); +GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params); +GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params); +GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params); +GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer); +GLAPI GLboolean APIENTRY glIsProgram (GLuint program); +GLAPI GLboolean APIENTRY glIsShader (GLuint shader); +GLAPI void APIENTRY glLinkProgram (GLuint program); +GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); +GLAPI void APIENTRY glUseProgram (GLuint program); +GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0); +GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1); +GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +GLAPI void APIENTRY glUniform1i (GLint location, GLint v0); +GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1); +GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2); +GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glValidateProgram (GLuint program); +GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x); +GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x); +GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v); +GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x); +GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y); +GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y); +GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v); +GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y); +GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z); +GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v); +GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z); +GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v); +GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v); +GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v); +GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v); +GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v); +GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v); +GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v); +GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); +#endif +#endif /* GL_VERSION_2_0 */ + +#ifndef GL_VERSION_2_1 +#define GL_VERSION_2_1 1 +#define GL_PIXEL_PACK_BUFFER 0x88EB +#define GL_PIXEL_UNPACK_BUFFER 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF +#define GL_FLOAT_MAT2x3 0x8B65 +#define GL_FLOAT_MAT2x4 0x8B66 +#define GL_FLOAT_MAT3x2 0x8B67 +#define GL_FLOAT_MAT3x4 0x8B68 +#define GL_FLOAT_MAT4x2 0x8B69 +#define GL_FLOAT_MAT4x3 0x8B6A +#define GL_SRGB 0x8C40 +#define GL_SRGB8 0x8C41 +#define GL_SRGB_ALPHA 0x8C42 +#define GL_SRGB8_ALPHA8 0x8C43 +#define GL_COMPRESSED_SRGB 0x8C48 +#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +#endif +#endif /* GL_VERSION_2_1 */ + +#ifndef GL_VERSION_3_0 +#define GL_VERSION_3_0 1 +typedef khronos_uint16_t GLhalf; +#define GL_COMPARE_REF_TO_TEXTURE 0x884E +#define GL_CLIP_DISTANCE0 0x3000 +#define GL_CLIP_DISTANCE1 0x3001 +#define GL_CLIP_DISTANCE2 0x3002 +#define GL_CLIP_DISTANCE3 0x3003 +#define GL_CLIP_DISTANCE4 0x3004 +#define GL_CLIP_DISTANCE5 0x3005 +#define GL_CLIP_DISTANCE6 0x3006 +#define GL_CLIP_DISTANCE7 0x3007 +#define GL_MAX_CLIP_DISTANCES 0x0D32 +#define GL_MAJOR_VERSION 0x821B +#define GL_MINOR_VERSION 0x821C +#define GL_NUM_EXTENSIONS 0x821D +#define GL_CONTEXT_FLAGS 0x821E +#define GL_COMPRESSED_RED 0x8225 +#define GL_COMPRESSED_RG 0x8226 +#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 +#define GL_RGBA32F 0x8814 +#define GL_RGB32F 0x8815 +#define GL_RGBA16F 0x881A +#define GL_RGB16F 0x881B +#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD +#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF +#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 +#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 +#define GL_CLAMP_READ_COLOR 0x891C +#define GL_FIXED_ONLY 0x891D +#define GL_MAX_VARYING_COMPONENTS 0x8B4B +#define GL_TEXTURE_1D_ARRAY 0x8C18 +#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19 +#define GL_TEXTURE_2D_ARRAY 0x8C1A +#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B +#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C +#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D +#define GL_R11F_G11F_B10F 0x8C3A +#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B +#define GL_RGB9_E5 0x8C3D +#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E +#define GL_TEXTURE_SHARED_SIZE 0x8C3F +#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76 +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80 +#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83 +#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84 +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85 +#define GL_PRIMITIVES_GENERATED 0x8C87 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88 +#define GL_RASTERIZER_DISCARD 0x8C89 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B +#define GL_INTERLEAVED_ATTRIBS 0x8C8C +#define GL_SEPARATE_ATTRIBS 0x8C8D +#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F +#define GL_RGBA32UI 0x8D70 +#define GL_RGB32UI 0x8D71 +#define GL_RGBA16UI 0x8D76 +#define GL_RGB16UI 0x8D77 +#define GL_RGBA8UI 0x8D7C +#define GL_RGB8UI 0x8D7D +#define GL_RGBA32I 0x8D82 +#define GL_RGB32I 0x8D83 +#define GL_RGBA16I 0x8D88 +#define GL_RGB16I 0x8D89 +#define GL_RGBA8I 0x8D8E +#define GL_RGB8I 0x8D8F +#define GL_RED_INTEGER 0x8D94 +#define GL_GREEN_INTEGER 0x8D95 +#define GL_BLUE_INTEGER 0x8D96 +#define GL_RGB_INTEGER 0x8D98 +#define GL_RGBA_INTEGER 0x8D99 +#define GL_BGR_INTEGER 0x8D9A +#define GL_BGRA_INTEGER 0x8D9B +#define GL_SAMPLER_1D_ARRAY 0x8DC0 +#define GL_SAMPLER_2D_ARRAY 0x8DC1 +#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3 +#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4 +#define GL_SAMPLER_CUBE_SHADOW 0x8DC5 +#define GL_UNSIGNED_INT_VEC2 0x8DC6 +#define GL_UNSIGNED_INT_VEC3 0x8DC7 +#define GL_UNSIGNED_INT_VEC4 0x8DC8 +#define GL_INT_SAMPLER_1D 0x8DC9 +#define GL_INT_SAMPLER_2D 0x8DCA +#define GL_INT_SAMPLER_3D 0x8DCB +#define GL_INT_SAMPLER_CUBE 0x8DCC +#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE +#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF +#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1 +#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2 +#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3 +#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4 +#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6 +#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7 +#define GL_QUERY_WAIT 0x8E13 +#define GL_QUERY_NO_WAIT 0x8E14 +#define GL_QUERY_BY_REGION_WAIT 0x8E15 +#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16 +#define GL_BUFFER_ACCESS_FLAGS 0x911F +#define GL_BUFFER_MAP_LENGTH 0x9120 +#define GL_BUFFER_MAP_OFFSET 0x9121 +#define GL_DEPTH_COMPONENT32F 0x8CAC +#define GL_DEPTH32F_STENCIL8 0x8CAD +#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD +#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 +#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210 +#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211 +#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212 +#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213 +#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214 +#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215 +#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216 +#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217 +#define GL_FRAMEBUFFER_DEFAULT 0x8218 +#define GL_FRAMEBUFFER_UNDEFINED 0x8219 +#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A +#define GL_MAX_RENDERBUFFER_SIZE 0x84E8 +#define GL_DEPTH_STENCIL 0x84F9 +#define GL_UNSIGNED_INT_24_8 0x84FA +#define GL_DEPTH24_STENCIL8 0x88F0 +#define GL_TEXTURE_STENCIL_SIZE 0x88F1 +#define GL_TEXTURE_RED_TYPE 0x8C10 +#define GL_TEXTURE_GREEN_TYPE 0x8C11 +#define GL_TEXTURE_BLUE_TYPE 0x8C12 +#define GL_TEXTURE_ALPHA_TYPE 0x8C13 +#define GL_TEXTURE_DEPTH_TYPE 0x8C16 +#define GL_UNSIGNED_NORMALIZED 0x8C17 +#define GL_FRAMEBUFFER_BINDING 0x8CA6 +#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 +#define GL_RENDERBUFFER_BINDING 0x8CA7 +#define GL_READ_FRAMEBUFFER 0x8CA8 +#define GL_DRAW_FRAMEBUFFER 0x8CA9 +#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA +#define GL_RENDERBUFFER_SAMPLES 0x8CAB +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 +#define GL_FRAMEBUFFER_COMPLETE 0x8CD5 +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 +#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB +#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC +#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD +#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF +#define GL_COLOR_ATTACHMENT0 0x8CE0 +#define GL_COLOR_ATTACHMENT1 0x8CE1 +#define GL_COLOR_ATTACHMENT2 0x8CE2 +#define GL_COLOR_ATTACHMENT3 0x8CE3 +#define GL_COLOR_ATTACHMENT4 0x8CE4 +#define GL_COLOR_ATTACHMENT5 0x8CE5 +#define GL_COLOR_ATTACHMENT6 0x8CE6 +#define GL_COLOR_ATTACHMENT7 0x8CE7 +#define GL_COLOR_ATTACHMENT8 0x8CE8 +#define GL_COLOR_ATTACHMENT9 0x8CE9 +#define GL_COLOR_ATTACHMENT10 0x8CEA +#define GL_COLOR_ATTACHMENT11 0x8CEB +#define GL_COLOR_ATTACHMENT12 0x8CEC +#define GL_COLOR_ATTACHMENT13 0x8CED +#define GL_COLOR_ATTACHMENT14 0x8CEE +#define GL_COLOR_ATTACHMENT15 0x8CEF +#define GL_COLOR_ATTACHMENT16 0x8CF0 +#define GL_COLOR_ATTACHMENT17 0x8CF1 +#define GL_COLOR_ATTACHMENT18 0x8CF2 +#define GL_COLOR_ATTACHMENT19 0x8CF3 +#define GL_COLOR_ATTACHMENT20 0x8CF4 +#define GL_COLOR_ATTACHMENT21 0x8CF5 +#define GL_COLOR_ATTACHMENT22 0x8CF6 +#define GL_COLOR_ATTACHMENT23 0x8CF7 +#define GL_COLOR_ATTACHMENT24 0x8CF8 +#define GL_COLOR_ATTACHMENT25 0x8CF9 +#define GL_COLOR_ATTACHMENT26 0x8CFA +#define GL_COLOR_ATTACHMENT27 0x8CFB +#define GL_COLOR_ATTACHMENT28 0x8CFC +#define GL_COLOR_ATTACHMENT29 0x8CFD +#define GL_COLOR_ATTACHMENT30 0x8CFE +#define GL_COLOR_ATTACHMENT31 0x8CFF +#define GL_DEPTH_ATTACHMENT 0x8D00 +#define GL_STENCIL_ATTACHMENT 0x8D20 +#define GL_FRAMEBUFFER 0x8D40 +#define GL_RENDERBUFFER 0x8D41 +#define GL_RENDERBUFFER_WIDTH 0x8D42 +#define GL_RENDERBUFFER_HEIGHT 0x8D43 +#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44 +#define GL_STENCIL_INDEX1 0x8D46 +#define GL_STENCIL_INDEX4 0x8D47 +#define GL_STENCIL_INDEX8 0x8D48 +#define GL_STENCIL_INDEX16 0x8D49 +#define GL_RENDERBUFFER_RED_SIZE 0x8D50 +#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51 +#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52 +#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53 +#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54 +#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 +#define GL_MAX_SAMPLES 0x8D57 +#define GL_FRAMEBUFFER_SRGB 0x8DB9 +#define GL_HALF_FLOAT 0x140B +#define GL_MAP_READ_BIT 0x0001 +#define GL_MAP_WRITE_BIT 0x0002 +#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004 +#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008 +#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010 +#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020 +#define GL_COMPRESSED_RED_RGTC1 0x8DBB +#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC +#define GL_COMPRESSED_RG_RGTC2 0x8DBD +#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE +#define GL_RG 0x8227 +#define GL_RG_INTEGER 0x8228 +#define GL_R8 0x8229 +#define GL_R16 0x822A +#define GL_RG8 0x822B +#define GL_RG16 0x822C +#define GL_R16F 0x822D +#define GL_R32F 0x822E +#define GL_RG16F 0x822F +#define GL_RG32F 0x8230 +#define GL_R8I 0x8231 +#define GL_R8UI 0x8232 +#define GL_R16I 0x8233 +#define GL_R16UI 0x8234 +#define GL_R32I 0x8235 +#define GL_R32UI 0x8236 +#define GL_RG8I 0x8237 +#define GL_RG8UI 0x8238 +#define GL_RG16I 0x8239 +#define GL_RG16UI 0x823A +#define GL_RG32I 0x823B +#define GL_RG32UI 0x823C +#define GL_VERTEX_ARRAY_BINDING 0x85B5 +typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); +typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data); +typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data); +typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index); +typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index); +typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index); +typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode); +typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void); +typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer); +typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode); +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); +typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp); +typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode); +typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void); +typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params); +typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name); +typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0); +typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1); +typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); +typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params); +typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value); +typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value); +typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value); +typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); +typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index); +typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer); +typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers); +typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers); +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer); +typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer); +typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers); +typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers); +typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target); +typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void *(APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); +typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length); +typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array); +typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays); +typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays); +typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); +GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data); +GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data); +GLAPI void APIENTRY glEnablei (GLenum target, GLuint index); +GLAPI void APIENTRY glDisablei (GLenum target, GLuint index); +GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index); +GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode); +GLAPI void APIENTRY glEndTransformFeedback (void); +GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer); +GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode); +GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); +GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp); +GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode); +GLAPI void APIENTRY glEndConditionalRender (void); +GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); +GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params); +GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x); +GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y); +GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z); +GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w); +GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x); +GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y); +GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z); +GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v); +GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v); +GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v); +GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params); +GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name); +GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name); +GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0); +GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1); +GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2); +GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params); +GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params); +GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value); +GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value); +GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value); +GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); +GLAPI const GLubyte *APIENTRY glGetStringi (GLenum name, GLuint index); +GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer); +GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer); +GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers); +GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers); +GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params); +GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer); +GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer); +GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers); +GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers); +GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target); +GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params); +GLAPI void APIENTRY glGenerateMipmap (GLenum target); +GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +GLAPI void *APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); +GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length); +GLAPI void APIENTRY glBindVertexArray (GLuint array); +GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays); +GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays); +GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array); +#endif +#endif /* GL_VERSION_3_0 */ + +#ifndef GL_VERSION_3_1 +#define GL_VERSION_3_1 1 +#define GL_SAMPLER_2D_RECT 0x8B63 +#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 +#define GL_SAMPLER_BUFFER 0x8DC2 +#define GL_INT_SAMPLER_2D_RECT 0x8DCD +#define GL_INT_SAMPLER_BUFFER 0x8DD0 +#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 +#define GL_TEXTURE_BUFFER 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D +#define GL_TEXTURE_RECTANGLE 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 +#define GL_R8_SNORM 0x8F94 +#define GL_RG8_SNORM 0x8F95 +#define GL_RGB8_SNORM 0x8F96 +#define GL_RGBA8_SNORM 0x8F97 +#define GL_R16_SNORM 0x8F98 +#define GL_RG16_SNORM 0x8F99 +#define GL_RGB16_SNORM 0x8F9A +#define GL_RGBA16_SNORM 0x8F9B +#define GL_SIGNED_NORMALIZED 0x8F9C +#define GL_PRIMITIVE_RESTART 0x8F9D +#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E +#define GL_COPY_READ_BUFFER 0x8F36 +#define GL_COPY_WRITE_BUFFER 0x8F37 +#define GL_UNIFORM_BUFFER 0x8A11 +#define GL_UNIFORM_BUFFER_BINDING 0x8A28 +#define GL_UNIFORM_BUFFER_START 0x8A29 +#define GL_UNIFORM_BUFFER_SIZE 0x8A2A +#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B +#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C +#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D +#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E +#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F +#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30 +#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31 +#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32 +#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33 +#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34 +#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35 +#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36 +#define GL_UNIFORM_TYPE 0x8A37 +#define GL_UNIFORM_SIZE 0x8A38 +#define GL_UNIFORM_NAME_LENGTH 0x8A39 +#define GL_UNIFORM_BLOCK_INDEX 0x8A3A +#define GL_UNIFORM_OFFSET 0x8A3B +#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C +#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D +#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E +#define GL_UNIFORM_BLOCK_BINDING 0x8A3F +#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40 +#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41 +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42 +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46 +#define GL_INVALID_INDEX 0xFFFFFFFFu +typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount); +typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer); +typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index); +typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); +typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); +typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount); +GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount); +GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer); +GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index); +GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices); +GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); +GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName); +GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); +GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); +#endif +#endif /* GL_VERSION_3_1 */ + +#ifndef GL_VERSION_3_2 +#define GL_VERSION_3_2 1 +typedef struct __GLsync *GLsync; +typedef khronos_uint64_t GLuint64; +typedef khronos_int64_t GLint64; +#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 +#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 +#define GL_LINES_ADJACENCY 0x000A +#define GL_LINE_STRIP_ADJACENCY 0x000B +#define GL_TRIANGLES_ADJACENCY 0x000C +#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D +#define GL_PROGRAM_POINT_SIZE 0x8642 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 +#define GL_GEOMETRY_SHADER 0x8DD9 +#define GL_GEOMETRY_VERTICES_OUT 0x8916 +#define GL_GEOMETRY_INPUT_TYPE 0x8917 +#define GL_GEOMETRY_OUTPUT_TYPE 0x8918 +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 +#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 +#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 +#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 +#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 +#define GL_CONTEXT_PROFILE_MASK 0x9126 +#define GL_DEPTH_CLAMP 0x864F +#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C +#define GL_FIRST_VERTEX_CONVENTION 0x8E4D +#define GL_LAST_VERTEX_CONVENTION 0x8E4E +#define GL_PROVOKING_VERTEX 0x8E4F +#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F +#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111 +#define GL_OBJECT_TYPE 0x9112 +#define GL_SYNC_CONDITION 0x9113 +#define GL_SYNC_STATUS 0x9114 +#define GL_SYNC_FLAGS 0x9115 +#define GL_SYNC_FENCE 0x9116 +#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 +#define GL_UNSIGNALED 0x9118 +#define GL_SIGNALED 0x9119 +#define GL_ALREADY_SIGNALED 0x911A +#define GL_TIMEOUT_EXPIRED 0x911B +#define GL_CONDITION_SATISFIED 0x911C +#define GL_WAIT_FAILED 0x911D +#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull +#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 +#define GL_SAMPLE_POSITION 0x8E50 +#define GL_SAMPLE_MASK 0x8E51 +#define GL_SAMPLE_MASK_VALUE 0x8E52 +#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59 +#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101 +#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102 +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105 +#define GL_TEXTURE_SAMPLES 0x9106 +#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107 +#define GL_SAMPLER_2D_MULTISAMPLE 0x9108 +#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109 +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A +#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B +#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D +#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E +#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F +#define GL_MAX_INTEGER_SAMPLES 0x9110 +typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex); +typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode); +typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags); +typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync); +typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync); +typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); +typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); +typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *data); +typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values); +typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data); +typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val); +typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); +GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex); +GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex); +GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex); +GLAPI void APIENTRY glProvokingVertex (GLenum mode); +GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags); +GLAPI GLboolean APIENTRY glIsSync (GLsync sync); +GLAPI void APIENTRY glDeleteSync (GLsync sync); +GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout); +GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout); +GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *data); +GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values); +GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data); +GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params); +GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level); +GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val); +GLAPI void APIENTRY glSampleMaski (GLuint maskNumber, GLbitfield mask); +#endif +#endif /* GL_VERSION_3_2 */ + +#ifndef GL_VERSION_3_3 +#define GL_VERSION_3_3 1 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE +#define GL_SRC1_COLOR 0x88F9 +#define GL_ONE_MINUS_SRC1_COLOR 0x88FA +#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB +#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC +#define GL_ANY_SAMPLES_PASSED 0x8C2F +#define GL_SAMPLER_BINDING 0x8919 +#define GL_RGB10_A2UI 0x906F +#define GL_TEXTURE_SWIZZLE_R 0x8E42 +#define GL_TEXTURE_SWIZZLE_G 0x8E43 +#define GL_TEXTURE_SWIZZLE_B 0x8E44 +#define GL_TEXTURE_SWIZZLE_A 0x8E45 +#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 +#define GL_TIME_ELAPSED 0x88BF +#define GL_TIMESTAMP 0x8E28 +#define GL_INT_2_10_10_10_REV 0x8D9F +typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); +typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers); +typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers); +typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler); +typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param); +typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params); +typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); +GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name); +GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers); +GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers); +GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler); +GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler); +GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param); +GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param); +GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param); +GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param); +GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param); +GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param); +GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params); +GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target); +GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params); +GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params); +GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor); +GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); +GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); +GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); +GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); +GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +#endif +#endif /* GL_VERSION_3_3 */ + +#ifndef GL_VERSION_4_0 +#define GL_VERSION_4_0 1 +#define GL_SAMPLE_SHADING 0x8C36 +#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37 +#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E +#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F +#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B +#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C +#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D +#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E +#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F +#define GL_DRAW_INDIRECT_BUFFER 0x8F3F +#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43 +#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F +#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A +#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B +#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C +#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D +#define GL_MAX_VERTEX_STREAMS 0x8E71 +#define GL_DOUBLE_VEC2 0x8FFC +#define GL_DOUBLE_VEC3 0x8FFD +#define GL_DOUBLE_VEC4 0x8FFE +#define GL_DOUBLE_MAT2 0x8F46 +#define GL_DOUBLE_MAT3 0x8F47 +#define GL_DOUBLE_MAT4 0x8F48 +#define GL_DOUBLE_MAT2x3 0x8F49 +#define GL_DOUBLE_MAT2x4 0x8F4A +#define GL_DOUBLE_MAT3x2 0x8F4B +#define GL_DOUBLE_MAT3x4 0x8F4C +#define GL_DOUBLE_MAT4x2 0x8F4D +#define GL_DOUBLE_MAT4x3 0x8F4E +#define GL_ACTIVE_SUBROUTINES 0x8DE5 +#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6 +#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47 +#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48 +#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49 +#define GL_MAX_SUBROUTINES 0x8DE7 +#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8 +#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A +#define GL_COMPATIBLE_SUBROUTINES 0x8E4B +#define GL_PATCHES 0x000E +#define GL_PATCH_VERTICES 0x8E72 +#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73 +#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74 +#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75 +#define GL_TESS_GEN_MODE 0x8E76 +#define GL_TESS_GEN_SPACING 0x8E77 +#define GL_TESS_GEN_VERTEX_ORDER 0x8E78 +#define GL_TESS_GEN_POINT_MODE 0x8E79 +#define GL_ISOLINES 0x8E7A +#define GL_FRACTIONAL_ODD 0x8E7B +#define GL_FRACTIONAL_EVEN 0x8E7C +#define GL_MAX_PATCH_VERTICES 0x8E7D +#define GL_MAX_TESS_GEN_LEVEL 0x8E7E +#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F +#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80 +#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81 +#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82 +#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83 +#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84 +#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85 +#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86 +#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89 +#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A +#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C +#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D +#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E +#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F +#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1 +#define GL_TESS_EVALUATION_SHADER 0x8E87 +#define GL_TESS_CONTROL_SHADER 0x8E88 +#define GL_TRANSFORM_FEEDBACK 0x8E22 +#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23 +#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24 +#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25 +#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70 +typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value); +typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode); +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst); +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect); +typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x); +typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params); +typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name); +typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name); +typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); +typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices); +typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values); +typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value); +typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values); +typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id); +typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids); +typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids); +typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id); +typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void); +typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void); +typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id); +typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream); +typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id); +typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index); +typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMinSampleShading (GLfloat value); +GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode); +GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst); +GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const void *indirect); +GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect); +GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x); +GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y); +GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params); +GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name); +GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name); +GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); +GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices); +GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params); +GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values); +GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value); +GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values); +GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id); +GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids); +GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids); +GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id); +GLAPI void APIENTRY glPauseTransformFeedback (void); +GLAPI void APIENTRY glResumeTransformFeedback (void); +GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id); +GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream); +GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id); +GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index); +GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params); +#endif +#endif /* GL_VERSION_4_0 */ + +#ifndef GL_VERSION_4_1 +#define GL_VERSION_4_1 1 +#define GL_FIXED 0x140C +#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A +#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B +#define GL_LOW_FLOAT 0x8DF0 +#define GL_MEDIUM_FLOAT 0x8DF1 +#define GL_HIGH_FLOAT 0x8DF2 +#define GL_LOW_INT 0x8DF3 +#define GL_MEDIUM_INT 0x8DF4 +#define GL_HIGH_INT 0x8DF5 +#define GL_SHADER_COMPILER 0x8DFA +#define GL_SHADER_BINARY_FORMATS 0x8DF8 +#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 +#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB +#define GL_MAX_VARYING_VECTORS 0x8DFC +#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD +#define GL_RGB565 0x8D62 +#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257 +#define GL_PROGRAM_BINARY_LENGTH 0x8741 +#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE +#define GL_PROGRAM_BINARY_FORMATS 0x87FF +#define GL_VERTEX_SHADER_BIT 0x00000001 +#define GL_FRAGMENT_SHADER_BIT 0x00000002 +#define GL_GEOMETRY_SHADER_BIT 0x00000004 +#define GL_TESS_CONTROL_SHADER_BIT 0x00000008 +#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010 +#define GL_ALL_SHADER_BITS 0xFFFFFFFF +#define GL_PROGRAM_SEPARABLE 0x8258 +#define GL_ACTIVE_PROGRAM 0x8259 +#define GL_PROGRAM_PIPELINE_BINDING 0x825A +#define GL_MAX_VIEWPORTS 0x825B +#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C +#define GL_VIEWPORT_BOUNDS_RANGE 0x825D +#define GL_LAYER_PROVOKING_VERTEX 0x825E +#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F +#define GL_UNDEFINED_VERTEX 0x8260 +typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void); +typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length); +typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision); +typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f); +typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d); +typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary); +typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value); +typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program); +typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program); +typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar *const*strings); +typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline); +typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines); +typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline); +typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline); +typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); +typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v); +typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f); +typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data); +typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glReleaseShaderCompiler (void); +GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length); +GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision); +GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f); +GLAPI void APIENTRY glClearDepthf (GLfloat d); +GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary); +GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length); +GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value); +GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program); +GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program); +GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings); +GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline); +GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines); +GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines); +GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline); +GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params); +GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0); +GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0); +GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0); +GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0); +GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1); +GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1); +GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1); +GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1); +GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); +GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); +GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); +GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); +GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline); +GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x); +GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y); +GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); +GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params); +GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v); +GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); +GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v); +GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v); +GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); +GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v); +GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v); +GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f); +GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data); +GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data); +#endif +#endif /* GL_VERSION_4_1 */ + +#ifndef GL_VERSION_4_2 +#define GL_VERSION_4_2 1 +#define GL_COPY_READ_BUFFER_BINDING 0x8F36 +#define GL_COPY_WRITE_BUFFER_BINDING 0x8F37 +#define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24 +#define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23 +#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127 +#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128 +#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129 +#define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A +#define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B +#define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C +#define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D +#define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E +#define GL_NUM_SAMPLE_COUNTS 0x9380 +#define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC +#define GL_ATOMIC_COUNTER_BUFFER 0x92C0 +#define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1 +#define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2 +#define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3 +#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4 +#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5 +#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB +#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC +#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD +#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE +#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF +#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0 +#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1 +#define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2 +#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3 +#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4 +#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5 +#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6 +#define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7 +#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8 +#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC +#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9 +#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA +#define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB +#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001 +#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002 +#define GL_UNIFORM_BARRIER_BIT 0x00000004 +#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008 +#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020 +#define GL_COMMAND_BARRIER_BIT 0x00000040 +#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080 +#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100 +#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200 +#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400 +#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800 +#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000 +#define GL_ALL_BARRIER_BITS 0xFFFFFFFF +#define GL_MAX_IMAGE_UNITS 0x8F38 +#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39 +#define GL_IMAGE_BINDING_NAME 0x8F3A +#define GL_IMAGE_BINDING_LEVEL 0x8F3B +#define GL_IMAGE_BINDING_LAYERED 0x8F3C +#define GL_IMAGE_BINDING_LAYER 0x8F3D +#define GL_IMAGE_BINDING_ACCESS 0x8F3E +#define GL_IMAGE_1D 0x904C +#define GL_IMAGE_2D 0x904D +#define GL_IMAGE_3D 0x904E +#define GL_IMAGE_2D_RECT 0x904F +#define GL_IMAGE_CUBE 0x9050 +#define GL_IMAGE_BUFFER 0x9051 +#define GL_IMAGE_1D_ARRAY 0x9052 +#define GL_IMAGE_2D_ARRAY 0x9053 +#define GL_IMAGE_CUBE_MAP_ARRAY 0x9054 +#define GL_IMAGE_2D_MULTISAMPLE 0x9055 +#define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056 +#define GL_INT_IMAGE_1D 0x9057 +#define GL_INT_IMAGE_2D 0x9058 +#define GL_INT_IMAGE_3D 0x9059 +#define GL_INT_IMAGE_2D_RECT 0x905A +#define GL_INT_IMAGE_CUBE 0x905B +#define GL_INT_IMAGE_BUFFER 0x905C +#define GL_INT_IMAGE_1D_ARRAY 0x905D +#define GL_INT_IMAGE_2D_ARRAY 0x905E +#define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F +#define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060 +#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061 +#define GL_UNSIGNED_INT_IMAGE_1D 0x9062 +#define GL_UNSIGNED_INT_IMAGE_2D 0x9063 +#define GL_UNSIGNED_INT_IMAGE_3D 0x9064 +#define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065 +#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066 +#define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067 +#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068 +#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069 +#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A +#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B +#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C +#define GL_MAX_IMAGE_SAMPLES 0x906D +#define GL_IMAGE_BINDING_FORMAT 0x906E +#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7 +#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8 +#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9 +#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA +#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB +#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC +#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD +#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE +#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF +#define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C +#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D +#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E +#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F +#define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F +typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); +typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params); +typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); +typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers); +typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount); +typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); +GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance); +GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); +GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params); +GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params); +GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); +GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers); +GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount); +GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); +#endif +#endif /* GL_VERSION_4_2 */ + +#ifndef GL_VERSION_4_3 +#define GL_VERSION_4_3 1 +typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); +#define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9 +#define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E +#define GL_COMPRESSED_RGB8_ETC2 0x9274 +#define GL_COMPRESSED_SRGB8_ETC2 0x9275 +#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276 +#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277 +#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278 +#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279 +#define GL_COMPRESSED_R11_EAC 0x9270 +#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271 +#define GL_COMPRESSED_RG11_EAC 0x9272 +#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273 +#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69 +#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A +#define GL_MAX_ELEMENT_INDEX 0x8D6B +#define GL_COMPUTE_SHADER 0x91B9 +#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB +#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC +#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD +#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262 +#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263 +#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264 +#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265 +#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266 +#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB +#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE +#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF +#define GL_COMPUTE_WORK_GROUP_SIZE 0x8267 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED +#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE +#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF +#define GL_COMPUTE_SHADER_BIT 0x00000020 +#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243 +#define GL_DEBUG_CALLBACK_FUNCTION 0x8244 +#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245 +#define GL_DEBUG_SOURCE_API 0x8246 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247 +#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248 +#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249 +#define GL_DEBUG_SOURCE_APPLICATION 0x824A +#define GL_DEBUG_SOURCE_OTHER 0x824B +#define GL_DEBUG_TYPE_ERROR 0x824C +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E +#define GL_DEBUG_TYPE_PORTABILITY 0x824F +#define GL_DEBUG_TYPE_PERFORMANCE 0x8250 +#define GL_DEBUG_TYPE_OTHER 0x8251 +#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143 +#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144 +#define GL_DEBUG_LOGGED_MESSAGES 0x9145 +#define GL_DEBUG_SEVERITY_HIGH 0x9146 +#define GL_DEBUG_SEVERITY_MEDIUM 0x9147 +#define GL_DEBUG_SEVERITY_LOW 0x9148 +#define GL_DEBUG_TYPE_MARKER 0x8268 +#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269 +#define GL_DEBUG_TYPE_POP_GROUP 0x826A +#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B +#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C +#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D +#define GL_BUFFER 0x82E0 +#define GL_SHADER 0x82E1 +#define GL_PROGRAM 0x82E2 +#define GL_QUERY 0x82E3 +#define GL_PROGRAM_PIPELINE 0x82E4 +#define GL_SAMPLER 0x82E6 +#define GL_MAX_LABEL_LENGTH 0x82E8 +#define GL_DEBUG_OUTPUT 0x92E0 +#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 +#define GL_MAX_UNIFORM_LOCATIONS 0x826E +#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310 +#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311 +#define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312 +#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313 +#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314 +#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315 +#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316 +#define GL_MAX_FRAMEBUFFER_LAYERS 0x9317 +#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318 +#define GL_INTERNALFORMAT_SUPPORTED 0x826F +#define GL_INTERNALFORMAT_PREFERRED 0x8270 +#define GL_INTERNALFORMAT_RED_SIZE 0x8271 +#define GL_INTERNALFORMAT_GREEN_SIZE 0x8272 +#define GL_INTERNALFORMAT_BLUE_SIZE 0x8273 +#define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274 +#define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275 +#define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276 +#define GL_INTERNALFORMAT_SHARED_SIZE 0x8277 +#define GL_INTERNALFORMAT_RED_TYPE 0x8278 +#define GL_INTERNALFORMAT_GREEN_TYPE 0x8279 +#define GL_INTERNALFORMAT_BLUE_TYPE 0x827A +#define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B +#define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C +#define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D +#define GL_MAX_WIDTH 0x827E +#define GL_MAX_HEIGHT 0x827F +#define GL_MAX_DEPTH 0x8280 +#define GL_MAX_LAYERS 0x8281 +#define GL_MAX_COMBINED_DIMENSIONS 0x8282 +#define GL_COLOR_COMPONENTS 0x8283 +#define GL_DEPTH_COMPONENTS 0x8284 +#define GL_STENCIL_COMPONENTS 0x8285 +#define GL_COLOR_RENDERABLE 0x8286 +#define GL_DEPTH_RENDERABLE 0x8287 +#define GL_STENCIL_RENDERABLE 0x8288 +#define GL_FRAMEBUFFER_RENDERABLE 0x8289 +#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A +#define GL_FRAMEBUFFER_BLEND 0x828B +#define GL_READ_PIXELS 0x828C +#define GL_READ_PIXELS_FORMAT 0x828D +#define GL_READ_PIXELS_TYPE 0x828E +#define GL_TEXTURE_IMAGE_FORMAT 0x828F +#define GL_TEXTURE_IMAGE_TYPE 0x8290 +#define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291 +#define GL_GET_TEXTURE_IMAGE_TYPE 0x8292 +#define GL_MIPMAP 0x8293 +#define GL_MANUAL_GENERATE_MIPMAP 0x8294 +#define GL_AUTO_GENERATE_MIPMAP 0x8295 +#define GL_COLOR_ENCODING 0x8296 +#define GL_SRGB_READ 0x8297 +#define GL_SRGB_WRITE 0x8298 +#define GL_FILTER 0x829A +#define GL_VERTEX_TEXTURE 0x829B +#define GL_TESS_CONTROL_TEXTURE 0x829C +#define GL_TESS_EVALUATION_TEXTURE 0x829D +#define GL_GEOMETRY_TEXTURE 0x829E +#define GL_FRAGMENT_TEXTURE 0x829F +#define GL_COMPUTE_TEXTURE 0x82A0 +#define GL_TEXTURE_SHADOW 0x82A1 +#define GL_TEXTURE_GATHER 0x82A2 +#define GL_TEXTURE_GATHER_SHADOW 0x82A3 +#define GL_SHADER_IMAGE_LOAD 0x82A4 +#define GL_SHADER_IMAGE_STORE 0x82A5 +#define GL_SHADER_IMAGE_ATOMIC 0x82A6 +#define GL_IMAGE_TEXEL_SIZE 0x82A7 +#define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8 +#define GL_IMAGE_PIXEL_FORMAT 0x82A9 +#define GL_IMAGE_PIXEL_TYPE 0x82AA +#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC +#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD +#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE +#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF +#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1 +#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2 +#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3 +#define GL_CLEAR_BUFFER 0x82B4 +#define GL_TEXTURE_VIEW 0x82B5 +#define GL_VIEW_COMPATIBILITY_CLASS 0x82B6 +#define GL_FULL_SUPPORT 0x82B7 +#define GL_CAVEAT_SUPPORT 0x82B8 +#define GL_IMAGE_CLASS_4_X_32 0x82B9 +#define GL_IMAGE_CLASS_2_X_32 0x82BA +#define GL_IMAGE_CLASS_1_X_32 0x82BB +#define GL_IMAGE_CLASS_4_X_16 0x82BC +#define GL_IMAGE_CLASS_2_X_16 0x82BD +#define GL_IMAGE_CLASS_1_X_16 0x82BE +#define GL_IMAGE_CLASS_4_X_8 0x82BF +#define GL_IMAGE_CLASS_2_X_8 0x82C0 +#define GL_IMAGE_CLASS_1_X_8 0x82C1 +#define GL_IMAGE_CLASS_11_11_10 0x82C2 +#define GL_IMAGE_CLASS_10_10_10_2 0x82C3 +#define GL_VIEW_CLASS_128_BITS 0x82C4 +#define GL_VIEW_CLASS_96_BITS 0x82C5 +#define GL_VIEW_CLASS_64_BITS 0x82C6 +#define GL_VIEW_CLASS_48_BITS 0x82C7 +#define GL_VIEW_CLASS_32_BITS 0x82C8 +#define GL_VIEW_CLASS_24_BITS 0x82C9 +#define GL_VIEW_CLASS_16_BITS 0x82CA +#define GL_VIEW_CLASS_8_BITS 0x82CB +#define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC +#define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD +#define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE +#define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF +#define GL_VIEW_CLASS_RGTC1_RED 0x82D0 +#define GL_VIEW_CLASS_RGTC2_RG 0x82D1 +#define GL_VIEW_CLASS_BPTC_UNORM 0x82D2 +#define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3 +#define GL_UNIFORM 0x92E1 +#define GL_UNIFORM_BLOCK 0x92E2 +#define GL_PROGRAM_INPUT 0x92E3 +#define GL_PROGRAM_OUTPUT 0x92E4 +#define GL_BUFFER_VARIABLE 0x92E5 +#define GL_SHADER_STORAGE_BLOCK 0x92E6 +#define GL_VERTEX_SUBROUTINE 0x92E8 +#define GL_TESS_CONTROL_SUBROUTINE 0x92E9 +#define GL_TESS_EVALUATION_SUBROUTINE 0x92EA +#define GL_GEOMETRY_SUBROUTINE 0x92EB +#define GL_FRAGMENT_SUBROUTINE 0x92EC +#define GL_COMPUTE_SUBROUTINE 0x92ED +#define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE +#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF +#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0 +#define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1 +#define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2 +#define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3 +#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4 +#define GL_ACTIVE_RESOURCES 0x92F5 +#define GL_MAX_NAME_LENGTH 0x92F6 +#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7 +#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8 +#define GL_NAME_LENGTH 0x92F9 +#define GL_TYPE 0x92FA +#define GL_ARRAY_SIZE 0x92FB +#define GL_OFFSET 0x92FC +#define GL_BLOCK_INDEX 0x92FD +#define GL_ARRAY_STRIDE 0x92FE +#define GL_MATRIX_STRIDE 0x92FF +#define GL_IS_ROW_MAJOR 0x9300 +#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301 +#define GL_BUFFER_BINDING 0x9302 +#define GL_BUFFER_DATA_SIZE 0x9303 +#define GL_NUM_ACTIVE_VARIABLES 0x9304 +#define GL_ACTIVE_VARIABLES 0x9305 +#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306 +#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307 +#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308 +#define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309 +#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A +#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B +#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C +#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D +#define GL_LOCATION 0x930E +#define GL_LOCATION_INDEX 0x930F +#define GL_IS_PER_PATCH 0x92E7 +#define GL_SHADER_STORAGE_BUFFER 0x90D2 +#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3 +#define GL_SHADER_STORAGE_BUFFER_START 0x90D4 +#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5 +#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6 +#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7 +#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8 +#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9 +#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA +#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB +#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC +#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD +#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE +#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF +#define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000 +#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39 +#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA +#define GL_TEXTURE_BUFFER_OFFSET 0x919D +#define GL_TEXTURE_BUFFER_SIZE 0x919E +#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F +#define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB +#define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC +#define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD +#define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE +#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF +#define GL_VERTEX_ATTRIB_BINDING 0x82D4 +#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5 +#define GL_VERTEX_BINDING_DIVISOR 0x82D6 +#define GL_VERTEX_BINDING_OFFSET 0x82D7 +#define GL_VERTEX_BINDING_STRIDE 0x82D8 +#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9 +#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA +#define GL_VERTEX_BINDING_BUFFER 0x8F4F +typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); +typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect); +typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); +typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64 *params); +typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); +typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); +typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments); +typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params); +typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name); +typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLint *params); +typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name); +typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name); +typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); +typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); +typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex); +typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor); +typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); +typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); +typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam); +typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); +typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message); +typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void); +typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label); +typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label); +typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label); +typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); +GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect); +GLAPI void APIENTRY glCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); +GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64 *params); +GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); +GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level); +GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length); +GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer); +GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments); +GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride); +GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride); +GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params); +GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name); +GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLint *params); +GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name); +GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name); +GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); +GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); +GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex); +GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor); +GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); +GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); +GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam); +GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); +GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message); +GLAPI void APIENTRY glPopDebugGroup (void); +GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label); +GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label); +GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label); +GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label); +#endif +#endif /* GL_VERSION_4_3 */ + +#ifndef GL_VERSION_4_4 +#define GL_VERSION_4_4 1 +#define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5 +#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221 +#define GL_TEXTURE_BUFFER_BINDING 0x8C2A +#define GL_MAP_PERSISTENT_BIT 0x0040 +#define GL_MAP_COHERENT_BIT 0x0080 +#define GL_DYNAMIC_STORAGE_BIT 0x0100 +#define GL_CLIENT_STORAGE_BIT 0x0200 +#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000 +#define GL_BUFFER_IMMUTABLE_STORAGE 0x821F +#define GL_BUFFER_STORAGE_FLAGS 0x8220 +#define GL_CLEAR_TEXTURE 0x9365 +#define GL_LOCATION_COMPONENT 0x934A +#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B +#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C +#define GL_QUERY_BUFFER 0x9192 +#define GL_QUERY_BUFFER_BARRIER_BIT 0x00008000 +#define GL_QUERY_BUFFER_BINDING 0x9193 +#define GL_QUERY_RESULT_NO_WAIT 0x9194 +#define GL_MIRROR_CLAMP_TO_EDGE 0x8743 +typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags); +typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers); +typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes); +typedef void (APIENTRYP PFNGLBINDTEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures); +typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC) (GLuint first, GLsizei count, const GLuint *samplers); +typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures); +typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC) (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBufferStorage (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags); +GLAPI void APIENTRY glClearTexImage (GLuint texture, GLint level, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glClearTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glBindBuffersBase (GLenum target, GLuint first, GLsizei count, const GLuint *buffers); +GLAPI void APIENTRY glBindBuffersRange (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes); +GLAPI void APIENTRY glBindTextures (GLuint first, GLsizei count, const GLuint *textures); +GLAPI void APIENTRY glBindSamplers (GLuint first, GLsizei count, const GLuint *samplers); +GLAPI void APIENTRY glBindImageTextures (GLuint first, GLsizei count, const GLuint *textures); +GLAPI void APIENTRY glBindVertexBuffers (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); +#endif +#endif /* GL_VERSION_4_4 */ + +#ifndef GL_VERSION_4_5 +#define GL_VERSION_4_5 1 +#define GL_CONTEXT_LOST 0x0507 +#define GL_NEGATIVE_ONE_TO_ONE 0x935E +#define GL_ZERO_TO_ONE 0x935F +#define GL_CLIP_ORIGIN 0x935C +#define GL_CLIP_DEPTH_MODE 0x935D +#define GL_QUERY_WAIT_INVERTED 0x8E17 +#define GL_QUERY_NO_WAIT_INVERTED 0x8E18 +#define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8E19 +#define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8E1A +#define GL_MAX_CULL_DISTANCES 0x82F9 +#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82FA +#define GL_TEXTURE_TARGET 0x1006 +#define GL_QUERY_TARGET 0x82EA +#define GL_GUILTY_CONTEXT_RESET 0x8253 +#define GL_INNOCENT_CONTEXT_RESET 0x8254 +#define GL_UNKNOWN_CONTEXT_RESET 0x8255 +#define GL_RESET_NOTIFICATION_STRATEGY 0x8256 +#define GL_LOSE_CONTEXT_ON_RESET 0x8252 +#define GL_NO_RESET_NOTIFICATION 0x8261 +#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004 +#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB +#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC +typedef void (APIENTRYP PFNGLCLIPCONTROLPROC) (GLenum origin, GLenum depth); +typedef void (APIENTRYP PFNGLCREATETRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC) (GLuint xfb, GLuint index, GLuint buffer); +typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC) (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKIVPROC) (GLuint xfb, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint *param); +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint64 *param); +typedef void (APIENTRYP PFNGLCREATEBUFFERSPROC) (GLsizei n, GLuint *buffers); +typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); +typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); +typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); +typedef void (APIENTRYP PFNGLCOPYNAMEDBUFFERSUBDATAPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERPROC) (GLuint buffer, GLenum access); +typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); +typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFERPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVPROC) (GLuint buffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERI64VPROC) (GLuint buffer, GLenum pname, GLint64 *params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVPROC) (GLuint buffer, GLenum pname, void **params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); +typedef void (APIENTRYP PFNGLCREATEFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC) (GLuint framebuffer, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC) (GLuint framebuffer, GLenum buf); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC) (GLuint framebuffer, GLenum src); +typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments); +typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value); +typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value); +typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value); +typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFIPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); +typedef void (APIENTRYP PFNGLBLITNAMEDFRAMEBUFFERPROC) (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC) (GLuint framebuffer, GLenum target); +typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC) (GLuint framebuffer, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLCREATERENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC) (GLuint renderbuffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLCREATETEXTURESPROC) (GLenum target, GLsizei n, GLuint *textures); +typedef void (APIENTRYP PFNGLTEXTUREBUFFERPROC) (GLuint texture, GLenum internalformat, GLuint buffer); +typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEPROC) (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFPROC) (GLuint texture, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, const GLfloat *param); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIPROC) (GLuint texture, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, const GLuint *params); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, const GLint *param); +typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPPROC) (GLuint texture); +typedef void (APIENTRYP PFNGLBINDTEXTUREUNITPROC) (GLuint unit, GLuint texture); +typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLsizei bufSize, void *pixels); +typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVPROC) (GLuint texture, GLint level, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVPROC) (GLuint texture, GLint level, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLCREATEVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays); +typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index); +typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index); +typedef void (APIENTRYP PFNGLVERTEXARRAYELEMENTBUFFERPROC) (GLuint vaobj, GLuint buffer); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERSPROC) (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); +typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBBINDINGPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex); +typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBIFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBLFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYBINDINGDIVISORPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYIVPROC) (GLuint vaobj, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXEDIVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXED64IVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param); +typedef void (APIENTRYP PFNGLCREATESAMPLERSPROC) (GLsizei n, GLuint *samplers); +typedef void (APIENTRYP PFNGLCREATEPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines); +typedef void (APIENTRYP PFNGLCREATEQUERIESPROC) (GLenum target, GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +typedef void (APIENTRYP PFNGLMEMORYBARRIERBYREGIONPROC) (GLbitfield barriers); +typedef void (APIENTRYP PFNGLGETTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels); +typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSPROC) (void); +typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLsizei bufSize, void *pixels); +typedef void (APIENTRYP PFNGLGETNTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +typedef void (APIENTRYP PFNGLGETNUNIFORMDVPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMFVPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMUIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params); +typedef void (APIENTRYP PFNGLREADNPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); +typedef void (APIENTRYP PFNGLTEXTUREBARRIERPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glClipControl (GLenum origin, GLenum depth); +GLAPI void APIENTRY glCreateTransformFeedbacks (GLsizei n, GLuint *ids); +GLAPI void APIENTRY glTransformFeedbackBufferBase (GLuint xfb, GLuint index, GLuint buffer); +GLAPI void APIENTRY glTransformFeedbackBufferRange (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +GLAPI void APIENTRY glGetTransformFeedbackiv (GLuint xfb, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetTransformFeedbacki_v (GLuint xfb, GLenum pname, GLuint index, GLint *param); +GLAPI void APIENTRY glGetTransformFeedbacki64_v (GLuint xfb, GLenum pname, GLuint index, GLint64 *param); +GLAPI void APIENTRY glCreateBuffers (GLsizei n, GLuint *buffers); +GLAPI void APIENTRY glNamedBufferStorage (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); +GLAPI void APIENTRY glNamedBufferData (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); +GLAPI void APIENTRY glNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); +GLAPI void APIENTRY glCopyNamedBufferSubData (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +GLAPI void APIENTRY glClearNamedBufferData (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glClearNamedBufferSubData (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +GLAPI void *APIENTRY glMapNamedBuffer (GLuint buffer, GLenum access); +GLAPI void *APIENTRY glMapNamedBufferRange (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); +GLAPI GLboolean APIENTRY glUnmapNamedBuffer (GLuint buffer); +GLAPI void APIENTRY glFlushMappedNamedBufferRange (GLuint buffer, GLintptr offset, GLsizeiptr length); +GLAPI void APIENTRY glGetNamedBufferParameteriv (GLuint buffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetNamedBufferParameteri64v (GLuint buffer, GLenum pname, GLint64 *params); +GLAPI void APIENTRY glGetNamedBufferPointerv (GLuint buffer, GLenum pname, void **params); +GLAPI void APIENTRY glGetNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); +GLAPI void APIENTRY glCreateFramebuffers (GLsizei n, GLuint *framebuffers); +GLAPI void APIENTRY glNamedFramebufferRenderbuffer (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +GLAPI void APIENTRY glNamedFramebufferParameteri (GLuint framebuffer, GLenum pname, GLint param); +GLAPI void APIENTRY glNamedFramebufferTexture (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); +GLAPI void APIENTRY glNamedFramebufferTextureLayer (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); +GLAPI void APIENTRY glNamedFramebufferDrawBuffer (GLuint framebuffer, GLenum buf); +GLAPI void APIENTRY glNamedFramebufferDrawBuffers (GLuint framebuffer, GLsizei n, const GLenum *bufs); +GLAPI void APIENTRY glNamedFramebufferReadBuffer (GLuint framebuffer, GLenum src); +GLAPI void APIENTRY glInvalidateNamedFramebufferData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments); +GLAPI void APIENTRY glInvalidateNamedFramebufferSubData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glClearNamedFramebufferiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value); +GLAPI void APIENTRY glClearNamedFramebufferuiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value); +GLAPI void APIENTRY glClearNamedFramebufferfv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value); +GLAPI void APIENTRY glClearNamedFramebufferfi (GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); +GLAPI void APIENTRY glBlitNamedFramebuffer (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +GLAPI GLenum APIENTRY glCheckNamedFramebufferStatus (GLuint framebuffer, GLenum target); +GLAPI void APIENTRY glGetNamedFramebufferParameteriv (GLuint framebuffer, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameteriv (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); +GLAPI void APIENTRY glCreateRenderbuffers (GLsizei n, GLuint *renderbuffers); +GLAPI void APIENTRY glNamedRenderbufferStorage (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glNamedRenderbufferStorageMultisample (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glGetNamedRenderbufferParameteriv (GLuint renderbuffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glCreateTextures (GLenum target, GLsizei n, GLuint *textures); +GLAPI void APIENTRY glTextureBuffer (GLuint texture, GLenum internalformat, GLuint buffer); +GLAPI void APIENTRY glTextureBufferRange (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +GLAPI void APIENTRY glTextureStorage1D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width); +GLAPI void APIENTRY glTextureStorage2D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTextureStorage3D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +GLAPI void APIENTRY glTextureStorage2DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTextureStorage3DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCompressedTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCopyTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +GLAPI void APIENTRY glCopyTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glCopyTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTextureParameterf (GLuint texture, GLenum pname, GLfloat param); +GLAPI void APIENTRY glTextureParameterfv (GLuint texture, GLenum pname, const GLfloat *param); +GLAPI void APIENTRY glTextureParameteri (GLuint texture, GLenum pname, GLint param); +GLAPI void APIENTRY glTextureParameterIiv (GLuint texture, GLenum pname, const GLint *params); +GLAPI void APIENTRY glTextureParameterIuiv (GLuint texture, GLenum pname, const GLuint *params); +GLAPI void APIENTRY glTextureParameteriv (GLuint texture, GLenum pname, const GLint *param); +GLAPI void APIENTRY glGenerateTextureMipmap (GLuint texture); +GLAPI void APIENTRY glBindTextureUnit (GLuint unit, GLuint texture); +GLAPI void APIENTRY glGetTextureImage (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +GLAPI void APIENTRY glGetCompressedTextureImage (GLuint texture, GLint level, GLsizei bufSize, void *pixels); +GLAPI void APIENTRY glGetTextureLevelParameterfv (GLuint texture, GLint level, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTextureLevelParameteriv (GLuint texture, GLint level, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTextureParameterfv (GLuint texture, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTextureParameterIiv (GLuint texture, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTextureParameterIuiv (GLuint texture, GLenum pname, GLuint *params); +GLAPI void APIENTRY glGetTextureParameteriv (GLuint texture, GLenum pname, GLint *params); +GLAPI void APIENTRY glCreateVertexArrays (GLsizei n, GLuint *arrays); +GLAPI void APIENTRY glDisableVertexArrayAttrib (GLuint vaobj, GLuint index); +GLAPI void APIENTRY glEnableVertexArrayAttrib (GLuint vaobj, GLuint index); +GLAPI void APIENTRY glVertexArrayElementBuffer (GLuint vaobj, GLuint buffer); +GLAPI void APIENTRY glVertexArrayVertexBuffer (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +GLAPI void APIENTRY glVertexArrayVertexBuffers (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); +GLAPI void APIENTRY glVertexArrayAttribBinding (GLuint vaobj, GLuint attribindex, GLuint bindingindex); +GLAPI void APIENTRY glVertexArrayAttribFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayAttribIFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayAttribLFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayBindingDivisor (GLuint vaobj, GLuint bindingindex, GLuint divisor); +GLAPI void APIENTRY glGetVertexArrayiv (GLuint vaobj, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetVertexArrayIndexediv (GLuint vaobj, GLuint index, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetVertexArrayIndexed64iv (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param); +GLAPI void APIENTRY glCreateSamplers (GLsizei n, GLuint *samplers); +GLAPI void APIENTRY glCreateProgramPipelines (GLsizei n, GLuint *pipelines); +GLAPI void APIENTRY glCreateQueries (GLenum target, GLsizei n, GLuint *ids); +GLAPI void APIENTRY glGetQueryBufferObjecti64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +GLAPI void APIENTRY glGetQueryBufferObjectiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +GLAPI void APIENTRY glGetQueryBufferObjectui64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +GLAPI void APIENTRY glGetQueryBufferObjectuiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +GLAPI void APIENTRY glMemoryBarrierByRegion (GLbitfield barriers); +GLAPI void APIENTRY glGetTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +GLAPI void APIENTRY glGetCompressedTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels); +GLAPI GLenum APIENTRY glGetGraphicsResetStatus (void); +GLAPI void APIENTRY glGetnCompressedTexImage (GLenum target, GLint lod, GLsizei bufSize, void *pixels); +GLAPI void APIENTRY glGetnTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +GLAPI void APIENTRY glGetnUniformdv (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); +GLAPI void APIENTRY glGetnUniformfv (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); +GLAPI void APIENTRY glGetnUniformiv (GLuint program, GLint location, GLsizei bufSize, GLint *params); +GLAPI void APIENTRY glGetnUniformuiv (GLuint program, GLint location, GLsizei bufSize, GLuint *params); +GLAPI void APIENTRY glReadnPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); +GLAPI void APIENTRY glTextureBarrier (void); +#endif +#endif /* GL_VERSION_4_5 */ + +#ifndef GL_VERSION_4_6 +#define GL_VERSION_4_6 1 +#define GL_SHADER_BINARY_FORMAT_SPIR_V 0x9551 +#define GL_SPIR_V_BINARY 0x9552 +#define GL_PARAMETER_BUFFER 0x80EE +#define GL_PARAMETER_BUFFER_BINDING 0x80EF +#define GL_CONTEXT_FLAG_NO_ERROR_BIT 0x00000008 +#define GL_VERTICES_SUBMITTED 0x82EE +#define GL_PRIMITIVES_SUBMITTED 0x82EF +#define GL_VERTEX_SHADER_INVOCATIONS 0x82F0 +#define GL_TESS_CONTROL_SHADER_PATCHES 0x82F1 +#define GL_TESS_EVALUATION_SHADER_INVOCATIONS 0x82F2 +#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED 0x82F3 +#define GL_FRAGMENT_SHADER_INVOCATIONS 0x82F4 +#define GL_COMPUTE_SHADER_INVOCATIONS 0x82F5 +#define GL_CLIPPING_INPUT_PRIMITIVES 0x82F6 +#define GL_CLIPPING_OUTPUT_PRIMITIVES 0x82F7 +#define GL_POLYGON_OFFSET_CLAMP 0x8E1B +#define GL_SPIR_V_EXTENSIONS 0x9553 +#define GL_NUM_SPIR_V_EXTENSIONS 0x9554 +#define GL_TEXTURE_MAX_ANISOTROPY 0x84FE +#define GL_MAX_TEXTURE_MAX_ANISOTROPY 0x84FF +#define GL_TRANSFORM_FEEDBACK_OVERFLOW 0x82EC +#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW 0x82ED +typedef void (APIENTRYP PFNGLSPECIALIZESHADERPROC) (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue); +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC) (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC) (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPPROC) (GLfloat factor, GLfloat units, GLfloat clamp); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSpecializeShader (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue); +GLAPI void APIENTRY glMultiDrawArraysIndirectCount (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +GLAPI void APIENTRY glMultiDrawElementsIndirectCount (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +GLAPI void APIENTRY glPolygonOffsetClamp (GLfloat factor, GLfloat units, GLfloat clamp); +#endif +#endif /* GL_VERSION_4_6 */ + +#ifndef GL_ARB_ES2_compatibility +#define GL_ARB_ES2_compatibility 1 +#endif /* GL_ARB_ES2_compatibility */ + +#ifndef GL_ARB_ES3_1_compatibility +#define GL_ARB_ES3_1_compatibility 1 +#endif /* GL_ARB_ES3_1_compatibility */ + +#ifndef GL_ARB_ES3_2_compatibility +#define GL_ARB_ES3_2_compatibility 1 +#define GL_PRIMITIVE_BOUNDING_BOX_ARB 0x92BE +#define GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB 0x9381 +#define GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB 0x9382 +typedef void (APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXARBPROC) (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPrimitiveBoundingBoxARB (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW); +#endif +#endif /* GL_ARB_ES3_2_compatibility */ + +#ifndef GL_ARB_ES3_compatibility +#define GL_ARB_ES3_compatibility 1 +#endif /* GL_ARB_ES3_compatibility */ + +#ifndef GL_ARB_arrays_of_arrays +#define GL_ARB_arrays_of_arrays 1 +#endif /* GL_ARB_arrays_of_arrays */ + +#ifndef GL_ARB_base_instance +#define GL_ARB_base_instance 1 +#endif /* GL_ARB_base_instance */ + +#ifndef GL_ARB_bindless_texture +#define GL_ARB_bindless_texture 1 +typedef khronos_uint64_t GLuint64EXT; +#define GL_UNSIGNED_INT64_ARB 0x140F +typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLEARBPROC) (GLuint texture); +typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEARBPROC) (GLuint texture, GLuint sampler); +typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle); +typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC) (GLuint64 handle); +typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLEARBPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); +typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle, GLenum access); +typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC) (GLuint64 handle); +typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64ARBPROC) (GLint location, GLuint64 value); +typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC) (GLuint program, GLint location, GLuint64 value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values); +typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle); +typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64ARBPROC) (GLuint index, GLuint64EXT x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VARBPROC) (GLuint index, const GLuint64EXT *v); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VARBPROC) (GLuint index, GLenum pname, GLuint64EXT *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLuint64 APIENTRY glGetTextureHandleARB (GLuint texture); +GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleARB (GLuint texture, GLuint sampler); +GLAPI void APIENTRY glMakeTextureHandleResidentARB (GLuint64 handle); +GLAPI void APIENTRY glMakeTextureHandleNonResidentARB (GLuint64 handle); +GLAPI GLuint64 APIENTRY glGetImageHandleARB (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); +GLAPI void APIENTRY glMakeImageHandleResidentARB (GLuint64 handle, GLenum access); +GLAPI void APIENTRY glMakeImageHandleNonResidentARB (GLuint64 handle); +GLAPI void APIENTRY glUniformHandleui64ARB (GLint location, GLuint64 value); +GLAPI void APIENTRY glUniformHandleui64vARB (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glProgramUniformHandleui64ARB (GLuint program, GLint location, GLuint64 value); +GLAPI void APIENTRY glProgramUniformHandleui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *values); +GLAPI GLboolean APIENTRY glIsTextureHandleResidentARB (GLuint64 handle); +GLAPI GLboolean APIENTRY glIsImageHandleResidentARB (GLuint64 handle); +GLAPI void APIENTRY glVertexAttribL1ui64ARB (GLuint index, GLuint64EXT x); +GLAPI void APIENTRY glVertexAttribL1ui64vARB (GLuint index, const GLuint64EXT *v); +GLAPI void APIENTRY glGetVertexAttribLui64vARB (GLuint index, GLenum pname, GLuint64EXT *params); +#endif +#endif /* GL_ARB_bindless_texture */ + +#ifndef GL_ARB_blend_func_extended +#define GL_ARB_blend_func_extended 1 +#endif /* GL_ARB_blend_func_extended */ + +#ifndef GL_ARB_buffer_storage +#define GL_ARB_buffer_storage 1 +#endif /* GL_ARB_buffer_storage */ + +#ifndef GL_ARB_cl_event +#define GL_ARB_cl_event 1 +struct _cl_context; +struct _cl_event; +#define GL_SYNC_CL_EVENT_ARB 0x8240 +#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241 +typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context *context, struct _cl_event *event, GLbitfield flags); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB (struct _cl_context *context, struct _cl_event *event, GLbitfield flags); +#endif +#endif /* GL_ARB_cl_event */ + +#ifndef GL_ARB_clear_buffer_object +#define GL_ARB_clear_buffer_object 1 +#endif /* GL_ARB_clear_buffer_object */ + +#ifndef GL_ARB_clear_texture +#define GL_ARB_clear_texture 1 +#endif /* GL_ARB_clear_texture */ + +#ifndef GL_ARB_clip_control +#define GL_ARB_clip_control 1 +#endif /* GL_ARB_clip_control */ + +#ifndef GL_ARB_compressed_texture_pixel_storage +#define GL_ARB_compressed_texture_pixel_storage 1 +#endif /* GL_ARB_compressed_texture_pixel_storage */ + +#ifndef GL_ARB_compute_shader +#define GL_ARB_compute_shader 1 +#endif /* GL_ARB_compute_shader */ + +#ifndef GL_ARB_compute_variable_group_size +#define GL_ARB_compute_variable_group_size 1 +#define GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB 0x9344 +#define GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB 0x90EB +#define GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB 0x9345 +#define GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB 0x91BF +typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDispatchComputeGroupSizeARB (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z); +#endif +#endif /* GL_ARB_compute_variable_group_size */ + +#ifndef GL_ARB_conditional_render_inverted +#define GL_ARB_conditional_render_inverted 1 +#endif /* GL_ARB_conditional_render_inverted */ + +#ifndef GL_ARB_conservative_depth +#define GL_ARB_conservative_depth 1 +#endif /* GL_ARB_conservative_depth */ + +#ifndef GL_ARB_copy_buffer +#define GL_ARB_copy_buffer 1 +#endif /* GL_ARB_copy_buffer */ + +#ifndef GL_ARB_copy_image +#define GL_ARB_copy_image 1 +#endif /* GL_ARB_copy_image */ + +#ifndef GL_ARB_cull_distance +#define GL_ARB_cull_distance 1 +#endif /* GL_ARB_cull_distance */ + +#ifndef GL_ARB_debug_output +#define GL_ARB_debug_output 1 +typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); +#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243 +#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244 +#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245 +#define GL_DEBUG_SOURCE_API_ARB 0x8246 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247 +#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248 +#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249 +#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A +#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B +#define GL_DEBUG_TYPE_ERROR_ARB 0x824C +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E +#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F +#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250 +#define GL_DEBUG_TYPE_OTHER_ARB 0x8251 +#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143 +#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144 +#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145 +#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146 +#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147 +#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148 +typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); +typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); +typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void *userParam); +typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); +GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); +GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const void *userParam); +GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); +#endif +#endif /* GL_ARB_debug_output */ + +#ifndef GL_ARB_depth_buffer_float +#define GL_ARB_depth_buffer_float 1 +#endif /* GL_ARB_depth_buffer_float */ + +#ifndef GL_ARB_depth_clamp +#define GL_ARB_depth_clamp 1 +#endif /* GL_ARB_depth_clamp */ + +#ifndef GL_ARB_derivative_control +#define GL_ARB_derivative_control 1 +#endif /* GL_ARB_derivative_control */ + +#ifndef GL_ARB_direct_state_access +#define GL_ARB_direct_state_access 1 +#endif /* GL_ARB_direct_state_access */ + +#ifndef GL_ARB_draw_buffers_blend +#define GL_ARB_draw_buffers_blend 1 +typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode); +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst); +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationiARB (GLuint buf, GLenum mode); +GLAPI void APIENTRY glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +GLAPI void APIENTRY glBlendFunciARB (GLuint buf, GLenum src, GLenum dst); +GLAPI void APIENTRY glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +#endif +#endif /* GL_ARB_draw_buffers_blend */ + +#ifndef GL_ARB_draw_elements_base_vertex +#define GL_ARB_draw_elements_base_vertex 1 +#endif /* GL_ARB_draw_elements_base_vertex */ + +#ifndef GL_ARB_draw_indirect +#define GL_ARB_draw_indirect 1 +#endif /* GL_ARB_draw_indirect */ + +#ifndef GL_ARB_draw_instanced +#define GL_ARB_draw_instanced 1 +typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount); +GLAPI void APIENTRY glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); +#endif +#endif /* GL_ARB_draw_instanced */ + +#ifndef GL_ARB_enhanced_layouts +#define GL_ARB_enhanced_layouts 1 +#endif /* GL_ARB_enhanced_layouts */ + +#ifndef GL_ARB_explicit_attrib_location +#define GL_ARB_explicit_attrib_location 1 +#endif /* GL_ARB_explicit_attrib_location */ + +#ifndef GL_ARB_explicit_uniform_location +#define GL_ARB_explicit_uniform_location 1 +#endif /* GL_ARB_explicit_uniform_location */ + +#ifndef GL_ARB_fragment_coord_conventions +#define GL_ARB_fragment_coord_conventions 1 +#endif /* GL_ARB_fragment_coord_conventions */ + +#ifndef GL_ARB_fragment_layer_viewport +#define GL_ARB_fragment_layer_viewport 1 +#endif /* GL_ARB_fragment_layer_viewport */ + +#ifndef GL_ARB_fragment_shader_interlock +#define GL_ARB_fragment_shader_interlock 1 +#endif /* GL_ARB_fragment_shader_interlock */ + +#ifndef GL_ARB_framebuffer_no_attachments +#define GL_ARB_framebuffer_no_attachments 1 +#endif /* GL_ARB_framebuffer_no_attachments */ + +#ifndef GL_ARB_framebuffer_object +#define GL_ARB_framebuffer_object 1 +#endif /* GL_ARB_framebuffer_object */ + +#ifndef GL_ARB_framebuffer_sRGB +#define GL_ARB_framebuffer_sRGB 1 +#endif /* GL_ARB_framebuffer_sRGB */ + +#ifndef GL_ARB_geometry_shader4 +#define GL_ARB_geometry_shader4 1 +#define GL_LINES_ADJACENCY_ARB 0x000A +#define GL_LINE_STRIP_ADJACENCY_ARB 0x000B +#define GL_TRIANGLES_ADJACENCY_ARB 0x000C +#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0x000D +#define GL_PROGRAM_POINT_SIZE_ARB 0x8642 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9 +#define GL_GEOMETRY_SHADER_ARB 0x8DD9 +#define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA +#define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB +#define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC +#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD +#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1 +typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glProgramParameteriARB (GLuint program, GLenum pname, GLint value); +GLAPI void APIENTRY glFramebufferTextureARB (GLenum target, GLenum attachment, GLuint texture, GLint level); +GLAPI void APIENTRY glFramebufferTextureLayerARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +GLAPI void APIENTRY glFramebufferTextureFaceARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); +#endif +#endif /* GL_ARB_geometry_shader4 */ + +#ifndef GL_ARB_get_program_binary +#define GL_ARB_get_program_binary 1 +#endif /* GL_ARB_get_program_binary */ + +#ifndef GL_ARB_get_texture_sub_image +#define GL_ARB_get_texture_sub_image 1 +#endif /* GL_ARB_get_texture_sub_image */ + +#ifndef GL_ARB_gl_spirv +#define GL_ARB_gl_spirv 1 +#define GL_SHADER_BINARY_FORMAT_SPIR_V_ARB 0x9551 +#define GL_SPIR_V_BINARY_ARB 0x9552 +typedef void (APIENTRYP PFNGLSPECIALIZESHADERARBPROC) (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSpecializeShaderARB (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue); +#endif +#endif /* GL_ARB_gl_spirv */ + +#ifndef GL_ARB_gpu_shader5 +#define GL_ARB_gpu_shader5 1 +#endif /* GL_ARB_gpu_shader5 */ + +#ifndef GL_ARB_gpu_shader_fp64 +#define GL_ARB_gpu_shader_fp64 1 +#endif /* GL_ARB_gpu_shader_fp64 */ + +#ifndef GL_ARB_gpu_shader_int64 +#define GL_ARB_gpu_shader_int64 1 +#define GL_INT64_ARB 0x140E +#define GL_INT64_VEC2_ARB 0x8FE9 +#define GL_INT64_VEC3_ARB 0x8FEA +#define GL_INT64_VEC4_ARB 0x8FEB +#define GL_UNSIGNED_INT64_VEC2_ARB 0x8FF5 +#define GL_UNSIGNED_INT64_VEC3_ARB 0x8FF6 +#define GL_UNSIGNED_INT64_VEC4_ARB 0x8FF7 +typedef void (APIENTRYP PFNGLUNIFORM1I64ARBPROC) (GLint location, GLint64 x); +typedef void (APIENTRYP PFNGLUNIFORM2I64ARBPROC) (GLint location, GLint64 x, GLint64 y); +typedef void (APIENTRYP PFNGLUNIFORM3I64ARBPROC) (GLint location, GLint64 x, GLint64 y, GLint64 z); +typedef void (APIENTRYP PFNGLUNIFORM4I64ARBPROC) (GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); +typedef void (APIENTRYP PFNGLUNIFORM1I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM2I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM3I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM4I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM1UI64ARBPROC) (GLint location, GLuint64 x); +typedef void (APIENTRYP PFNGLUNIFORM2UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y); +typedef void (APIENTRYP PFNGLUNIFORM3UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y, GLuint64 z); +typedef void (APIENTRYP PFNGLUNIFORM4UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); +typedef void (APIENTRYP PFNGLUNIFORM1UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM2UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM3UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM4UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLGETUNIFORMI64VARBPROC) (GLuint program, GLint location, GLint64 *params); +typedef void (APIENTRYP PFNGLGETUNIFORMUI64VARBPROC) (GLuint program, GLint location, GLuint64 *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMI64VARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint64 *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMUI64VARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint64 *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64ARBPROC) (GLuint program, GLint location, GLint64 x); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64ARBPROC) (GLuint program, GLint location, GLuint64 x); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glUniform1i64ARB (GLint location, GLint64 x); +GLAPI void APIENTRY glUniform2i64ARB (GLint location, GLint64 x, GLint64 y); +GLAPI void APIENTRY glUniform3i64ARB (GLint location, GLint64 x, GLint64 y, GLint64 z); +GLAPI void APIENTRY glUniform4i64ARB (GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); +GLAPI void APIENTRY glUniform1i64vARB (GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glUniform2i64vARB (GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glUniform3i64vARB (GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glUniform4i64vARB (GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glUniform1ui64ARB (GLint location, GLuint64 x); +GLAPI void APIENTRY glUniform2ui64ARB (GLint location, GLuint64 x, GLuint64 y); +GLAPI void APIENTRY glUniform3ui64ARB (GLint location, GLuint64 x, GLuint64 y, GLuint64 z); +GLAPI void APIENTRY glUniform4ui64ARB (GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); +GLAPI void APIENTRY glUniform1ui64vARB (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glUniform2ui64vARB (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glUniform3ui64vARB (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glUniform4ui64vARB (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glGetUniformi64vARB (GLuint program, GLint location, GLint64 *params); +GLAPI void APIENTRY glGetUniformui64vARB (GLuint program, GLint location, GLuint64 *params); +GLAPI void APIENTRY glGetnUniformi64vARB (GLuint program, GLint location, GLsizei bufSize, GLint64 *params); +GLAPI void APIENTRY glGetnUniformui64vARB (GLuint program, GLint location, GLsizei bufSize, GLuint64 *params); +GLAPI void APIENTRY glProgramUniform1i64ARB (GLuint program, GLint location, GLint64 x); +GLAPI void APIENTRY glProgramUniform2i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y); +GLAPI void APIENTRY glProgramUniform3i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z); +GLAPI void APIENTRY glProgramUniform4i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); +GLAPI void APIENTRY glProgramUniform1i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glProgramUniform2i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glProgramUniform3i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glProgramUniform4i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glProgramUniform1ui64ARB (GLuint program, GLint location, GLuint64 x); +GLAPI void APIENTRY glProgramUniform2ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y); +GLAPI void APIENTRY glProgramUniform3ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z); +GLAPI void APIENTRY glProgramUniform4ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); +GLAPI void APIENTRY glProgramUniform1ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glProgramUniform2ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glProgramUniform3ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glProgramUniform4ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +#endif +#endif /* GL_ARB_gpu_shader_int64 */ + +#ifndef GL_ARB_half_float_vertex +#define GL_ARB_half_float_vertex 1 +#endif /* GL_ARB_half_float_vertex */ + +#ifndef GL_ARB_imaging +#define GL_ARB_imaging 1 +#endif /* GL_ARB_imaging */ + +#ifndef GL_ARB_indirect_parameters +#define GL_ARB_indirect_parameters 1 +#define GL_PARAMETER_BUFFER_ARB 0x80EE +#define GL_PARAMETER_BUFFER_BINDING_ARB 0x80EF +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC) (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC) (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMultiDrawArraysIndirectCountARB (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +GLAPI void APIENTRY glMultiDrawElementsIndirectCountARB (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#endif +#endif /* GL_ARB_indirect_parameters */ + +#ifndef GL_ARB_instanced_arrays +#define GL_ARB_instanced_arrays 1 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE +typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexAttribDivisorARB (GLuint index, GLuint divisor); +#endif +#endif /* GL_ARB_instanced_arrays */ + +#ifndef GL_ARB_internalformat_query +#define GL_ARB_internalformat_query 1 +#endif /* GL_ARB_internalformat_query */ + +#ifndef GL_ARB_internalformat_query2 +#define GL_ARB_internalformat_query2 1 +#define GL_SRGB_DECODE_ARB 0x8299 +#define GL_VIEW_CLASS_EAC_R11 0x9383 +#define GL_VIEW_CLASS_EAC_RG11 0x9384 +#define GL_VIEW_CLASS_ETC2_RGB 0x9385 +#define GL_VIEW_CLASS_ETC2_RGBA 0x9386 +#define GL_VIEW_CLASS_ETC2_EAC_RGBA 0x9387 +#define GL_VIEW_CLASS_ASTC_4x4_RGBA 0x9388 +#define GL_VIEW_CLASS_ASTC_5x4_RGBA 0x9389 +#define GL_VIEW_CLASS_ASTC_5x5_RGBA 0x938A +#define GL_VIEW_CLASS_ASTC_6x5_RGBA 0x938B +#define GL_VIEW_CLASS_ASTC_6x6_RGBA 0x938C +#define GL_VIEW_CLASS_ASTC_8x5_RGBA 0x938D +#define GL_VIEW_CLASS_ASTC_8x6_RGBA 0x938E +#define GL_VIEW_CLASS_ASTC_8x8_RGBA 0x938F +#define GL_VIEW_CLASS_ASTC_10x5_RGBA 0x9390 +#define GL_VIEW_CLASS_ASTC_10x6_RGBA 0x9391 +#define GL_VIEW_CLASS_ASTC_10x8_RGBA 0x9392 +#define GL_VIEW_CLASS_ASTC_10x10_RGBA 0x9393 +#define GL_VIEW_CLASS_ASTC_12x10_RGBA 0x9394 +#define GL_VIEW_CLASS_ASTC_12x12_RGBA 0x9395 +#endif /* GL_ARB_internalformat_query2 */ + +#ifndef GL_ARB_invalidate_subdata +#define GL_ARB_invalidate_subdata 1 +#endif /* GL_ARB_invalidate_subdata */ + +#ifndef GL_ARB_map_buffer_alignment +#define GL_ARB_map_buffer_alignment 1 +#endif /* GL_ARB_map_buffer_alignment */ + +#ifndef GL_ARB_map_buffer_range +#define GL_ARB_map_buffer_range 1 +#endif /* GL_ARB_map_buffer_range */ + +#ifndef GL_ARB_multi_bind +#define GL_ARB_multi_bind 1 +#endif /* GL_ARB_multi_bind */ + +#ifndef GL_ARB_multi_draw_indirect +#define GL_ARB_multi_draw_indirect 1 +#endif /* GL_ARB_multi_draw_indirect */ + +#ifndef GL_ARB_occlusion_query2 +#define GL_ARB_occlusion_query2 1 +#endif /* GL_ARB_occlusion_query2 */ + +#ifndef GL_ARB_parallel_shader_compile +#define GL_ARB_parallel_shader_compile 1 +#define GL_MAX_SHADER_COMPILER_THREADS_ARB 0x91B0 +#define GL_COMPLETION_STATUS_ARB 0x91B1 +typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSARBPROC) (GLuint count); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMaxShaderCompilerThreadsARB (GLuint count); +#endif +#endif /* GL_ARB_parallel_shader_compile */ + +#ifndef GL_ARB_pipeline_statistics_query +#define GL_ARB_pipeline_statistics_query 1 +#define GL_VERTICES_SUBMITTED_ARB 0x82EE +#define GL_PRIMITIVES_SUBMITTED_ARB 0x82EF +#define GL_VERTEX_SHADER_INVOCATIONS_ARB 0x82F0 +#define GL_TESS_CONTROL_SHADER_PATCHES_ARB 0x82F1 +#define GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB 0x82F2 +#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB 0x82F3 +#define GL_FRAGMENT_SHADER_INVOCATIONS_ARB 0x82F4 +#define GL_COMPUTE_SHADER_INVOCATIONS_ARB 0x82F5 +#define GL_CLIPPING_INPUT_PRIMITIVES_ARB 0x82F6 +#define GL_CLIPPING_OUTPUT_PRIMITIVES_ARB 0x82F7 +#endif /* GL_ARB_pipeline_statistics_query */ + +#ifndef GL_ARB_pixel_buffer_object +#define GL_ARB_pixel_buffer_object 1 +#define GL_PIXEL_PACK_BUFFER_ARB 0x88EB +#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF +#endif /* GL_ARB_pixel_buffer_object */ + +#ifndef GL_ARB_polygon_offset_clamp +#define GL_ARB_polygon_offset_clamp 1 +#endif /* GL_ARB_polygon_offset_clamp */ + +#ifndef GL_ARB_post_depth_coverage +#define GL_ARB_post_depth_coverage 1 +#endif /* GL_ARB_post_depth_coverage */ + +#ifndef GL_ARB_program_interface_query +#define GL_ARB_program_interface_query 1 +#endif /* GL_ARB_program_interface_query */ + +#ifndef GL_ARB_provoking_vertex +#define GL_ARB_provoking_vertex 1 +#endif /* GL_ARB_provoking_vertex */ + +#ifndef GL_ARB_query_buffer_object +#define GL_ARB_query_buffer_object 1 +#endif /* GL_ARB_query_buffer_object */ + +#ifndef GL_ARB_robust_buffer_access_behavior +#define GL_ARB_robust_buffer_access_behavior 1 +#endif /* GL_ARB_robust_buffer_access_behavior */ + +#ifndef GL_ARB_robustness +#define GL_ARB_robustness 1 +#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004 +#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253 +#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 +#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 +#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 +typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void); +typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img); +typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); +typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, void *img); +typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB (void); +GLAPI void APIENTRY glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img); +GLAPI void APIENTRY glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); +GLAPI void APIENTRY glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, void *img); +GLAPI void APIENTRY glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); +GLAPI void APIENTRY glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint *params); +GLAPI void APIENTRY glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint *params); +GLAPI void APIENTRY glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); +#endif +#endif /* GL_ARB_robustness */ + +#ifndef GL_ARB_robustness_isolation +#define GL_ARB_robustness_isolation 1 +#endif /* GL_ARB_robustness_isolation */ + +#ifndef GL_ARB_sample_locations +#define GL_ARB_sample_locations 1 +#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB 0x933D +#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB 0x933E +#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB 0x933F +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB 0x9340 +#define GL_SAMPLE_LOCATION_ARB 0x8E50 +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB 0x9341 +#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB 0x9342 +#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB 0x9343 +typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVARBPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARBPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLEVALUATEDEPTHVALUESARBPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFramebufferSampleLocationsfvARB (GLenum target, GLuint start, GLsizei count, const GLfloat *v); +GLAPI void APIENTRY glNamedFramebufferSampleLocationsfvARB (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v); +GLAPI void APIENTRY glEvaluateDepthValuesARB (void); +#endif +#endif /* GL_ARB_sample_locations */ + +#ifndef GL_ARB_sample_shading +#define GL_ARB_sample_shading 1 +#define GL_SAMPLE_SHADING_ARB 0x8C36 +#define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37 +typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMinSampleShadingARB (GLfloat value); +#endif +#endif /* GL_ARB_sample_shading */ + +#ifndef GL_ARB_sampler_objects +#define GL_ARB_sampler_objects 1 +#endif /* GL_ARB_sampler_objects */ + +#ifndef GL_ARB_seamless_cube_map +#define GL_ARB_seamless_cube_map 1 +#endif /* GL_ARB_seamless_cube_map */ + +#ifndef GL_ARB_seamless_cubemap_per_texture +#define GL_ARB_seamless_cubemap_per_texture 1 +#endif /* GL_ARB_seamless_cubemap_per_texture */ + +#ifndef GL_ARB_separate_shader_objects +#define GL_ARB_separate_shader_objects 1 +#endif /* GL_ARB_separate_shader_objects */ + +#ifndef GL_ARB_shader_atomic_counter_ops +#define GL_ARB_shader_atomic_counter_ops 1 +#endif /* GL_ARB_shader_atomic_counter_ops */ + +#ifndef GL_ARB_shader_atomic_counters +#define GL_ARB_shader_atomic_counters 1 +#endif /* GL_ARB_shader_atomic_counters */ + +#ifndef GL_ARB_shader_ballot +#define GL_ARB_shader_ballot 1 +#endif /* GL_ARB_shader_ballot */ + +#ifndef GL_ARB_shader_bit_encoding +#define GL_ARB_shader_bit_encoding 1 +#endif /* GL_ARB_shader_bit_encoding */ + +#ifndef GL_ARB_shader_clock +#define GL_ARB_shader_clock 1 +#endif /* GL_ARB_shader_clock */ + +#ifndef GL_ARB_shader_draw_parameters +#define GL_ARB_shader_draw_parameters 1 +#endif /* GL_ARB_shader_draw_parameters */ + +#ifndef GL_ARB_shader_group_vote +#define GL_ARB_shader_group_vote 1 +#endif /* GL_ARB_shader_group_vote */ + +#ifndef GL_ARB_shader_image_load_store +#define GL_ARB_shader_image_load_store 1 +#endif /* GL_ARB_shader_image_load_store */ + +#ifndef GL_ARB_shader_image_size +#define GL_ARB_shader_image_size 1 +#endif /* GL_ARB_shader_image_size */ + +#ifndef GL_ARB_shader_precision +#define GL_ARB_shader_precision 1 +#endif /* GL_ARB_shader_precision */ + +#ifndef GL_ARB_shader_stencil_export +#define GL_ARB_shader_stencil_export 1 +#endif /* GL_ARB_shader_stencil_export */ + +#ifndef GL_ARB_shader_storage_buffer_object +#define GL_ARB_shader_storage_buffer_object 1 +#endif /* GL_ARB_shader_storage_buffer_object */ + +#ifndef GL_ARB_shader_subroutine +#define GL_ARB_shader_subroutine 1 +#endif /* GL_ARB_shader_subroutine */ + +#ifndef GL_ARB_shader_texture_image_samples +#define GL_ARB_shader_texture_image_samples 1 +#endif /* GL_ARB_shader_texture_image_samples */ + +#ifndef GL_ARB_shader_viewport_layer_array +#define GL_ARB_shader_viewport_layer_array 1 +#endif /* GL_ARB_shader_viewport_layer_array */ + +#ifndef GL_ARB_shading_language_420pack +#define GL_ARB_shading_language_420pack 1 +#endif /* GL_ARB_shading_language_420pack */ + +#ifndef GL_ARB_shading_language_include +#define GL_ARB_shading_language_include 1 +#define GL_SHADER_INCLUDE_ARB 0x8DAE +#define GL_NAMED_STRING_LENGTH_ARB 0x8DE9 +#define GL_NAMED_STRING_TYPE_ARB 0x8DEA +typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string); +typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name); +typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length); +typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name); +typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string); +typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glNamedStringARB (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string); +GLAPI void APIENTRY glDeleteNamedStringARB (GLint namelen, const GLchar *name); +GLAPI void APIENTRY glCompileShaderIncludeARB (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length); +GLAPI GLboolean APIENTRY glIsNamedStringARB (GLint namelen, const GLchar *name); +GLAPI void APIENTRY glGetNamedStringARB (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string); +GLAPI void APIENTRY glGetNamedStringivARB (GLint namelen, const GLchar *name, GLenum pname, GLint *params); +#endif +#endif /* GL_ARB_shading_language_include */ + +#ifndef GL_ARB_shading_language_packing +#define GL_ARB_shading_language_packing 1 +#endif /* GL_ARB_shading_language_packing */ + +#ifndef GL_ARB_sparse_buffer +#define GL_ARB_sparse_buffer 1 +#define GL_SPARSE_STORAGE_BIT_ARB 0x0400 +#define GL_SPARSE_BUFFER_PAGE_SIZE_ARB 0x82F8 +typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTARBPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit); +typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); +typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTARBPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBufferPageCommitmentARB (GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit); +GLAPI void APIENTRY glNamedBufferPageCommitmentEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); +GLAPI void APIENTRY glNamedBufferPageCommitmentARB (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); +#endif +#endif /* GL_ARB_sparse_buffer */ + +#ifndef GL_ARB_sparse_texture +#define GL_ARB_sparse_texture 1 +#define GL_TEXTURE_SPARSE_ARB 0x91A6 +#define GL_VIRTUAL_PAGE_SIZE_INDEX_ARB 0x91A7 +#define GL_NUM_SPARSE_LEVELS_ARB 0x91AA +#define GL_NUM_VIRTUAL_PAGE_SIZES_ARB 0x91A8 +#define GL_VIRTUAL_PAGE_SIZE_X_ARB 0x9195 +#define GL_VIRTUAL_PAGE_SIZE_Y_ARB 0x9196 +#define GL_VIRTUAL_PAGE_SIZE_Z_ARB 0x9197 +#define GL_MAX_SPARSE_TEXTURE_SIZE_ARB 0x9198 +#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB 0x9199 +#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB 0x919A +#define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB 0x91A9 +typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexPageCommitmentARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); +#endif +#endif /* GL_ARB_sparse_texture */ + +#ifndef GL_ARB_sparse_texture2 +#define GL_ARB_sparse_texture2 1 +#endif /* GL_ARB_sparse_texture2 */ + +#ifndef GL_ARB_sparse_texture_clamp +#define GL_ARB_sparse_texture_clamp 1 +#endif /* GL_ARB_sparse_texture_clamp */ + +#ifndef GL_ARB_spirv_extensions +#define GL_ARB_spirv_extensions 1 +#endif /* GL_ARB_spirv_extensions */ + +#ifndef GL_ARB_stencil_texturing +#define GL_ARB_stencil_texturing 1 +#endif /* GL_ARB_stencil_texturing */ + +#ifndef GL_ARB_sync +#define GL_ARB_sync 1 +#endif /* GL_ARB_sync */ + +#ifndef GL_ARB_tessellation_shader +#define GL_ARB_tessellation_shader 1 +#endif /* GL_ARB_tessellation_shader */ + +#ifndef GL_ARB_texture_barrier +#define GL_ARB_texture_barrier 1 +#endif /* GL_ARB_texture_barrier */ + +#ifndef GL_ARB_texture_border_clamp +#define GL_ARB_texture_border_clamp 1 +#define GL_CLAMP_TO_BORDER_ARB 0x812D +#endif /* GL_ARB_texture_border_clamp */ + +#ifndef GL_ARB_texture_buffer_object +#define GL_ARB_texture_buffer_object 1 +#define GL_TEXTURE_BUFFER_ARB 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE_ARB 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER_ARB 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D +#define GL_TEXTURE_BUFFER_FORMAT_ARB 0x8C2E +typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexBufferARB (GLenum target, GLenum internalformat, GLuint buffer); +#endif +#endif /* GL_ARB_texture_buffer_object */ + +#ifndef GL_ARB_texture_buffer_object_rgb32 +#define GL_ARB_texture_buffer_object_rgb32 1 +#endif /* GL_ARB_texture_buffer_object_rgb32 */ + +#ifndef GL_ARB_texture_buffer_range +#define GL_ARB_texture_buffer_range 1 +#endif /* GL_ARB_texture_buffer_range */ + +#ifndef GL_ARB_texture_compression_bptc +#define GL_ARB_texture_compression_bptc 1 +#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C +#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D +#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E +#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F +#endif /* GL_ARB_texture_compression_bptc */ + +#ifndef GL_ARB_texture_compression_rgtc +#define GL_ARB_texture_compression_rgtc 1 +#endif /* GL_ARB_texture_compression_rgtc */ + +#ifndef GL_ARB_texture_cube_map_array +#define GL_ARB_texture_cube_map_array 1 +#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B +#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C +#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D +#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E +#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F +#endif /* GL_ARB_texture_cube_map_array */ + +#ifndef GL_ARB_texture_filter_anisotropic +#define GL_ARB_texture_filter_anisotropic 1 +#endif /* GL_ARB_texture_filter_anisotropic */ + +#ifndef GL_ARB_texture_filter_minmax +#define GL_ARB_texture_filter_minmax 1 +#define GL_TEXTURE_REDUCTION_MODE_ARB 0x9366 +#define GL_WEIGHTED_AVERAGE_ARB 0x9367 +#endif /* GL_ARB_texture_filter_minmax */ + +#ifndef GL_ARB_texture_gather +#define GL_ARB_texture_gather 1 +#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E +#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F +#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F +#endif /* GL_ARB_texture_gather */ + +#ifndef GL_ARB_texture_mirror_clamp_to_edge +#define GL_ARB_texture_mirror_clamp_to_edge 1 +#endif /* GL_ARB_texture_mirror_clamp_to_edge */ + +#ifndef GL_ARB_texture_mirrored_repeat +#define GL_ARB_texture_mirrored_repeat 1 +#define GL_MIRRORED_REPEAT_ARB 0x8370 +#endif /* GL_ARB_texture_mirrored_repeat */ + +#ifndef GL_ARB_texture_multisample +#define GL_ARB_texture_multisample 1 +#endif /* GL_ARB_texture_multisample */ + +#ifndef GL_ARB_texture_non_power_of_two +#define GL_ARB_texture_non_power_of_two 1 +#endif /* GL_ARB_texture_non_power_of_two */ + +#ifndef GL_ARB_texture_query_levels +#define GL_ARB_texture_query_levels 1 +#endif /* GL_ARB_texture_query_levels */ + +#ifndef GL_ARB_texture_query_lod +#define GL_ARB_texture_query_lod 1 +#endif /* GL_ARB_texture_query_lod */ + +#ifndef GL_ARB_texture_rg +#define GL_ARB_texture_rg 1 +#endif /* GL_ARB_texture_rg */ + +#ifndef GL_ARB_texture_rgb10_a2ui +#define GL_ARB_texture_rgb10_a2ui 1 +#endif /* GL_ARB_texture_rgb10_a2ui */ + +#ifndef GL_ARB_texture_stencil8 +#define GL_ARB_texture_stencil8 1 +#endif /* GL_ARB_texture_stencil8 */ + +#ifndef GL_ARB_texture_storage +#define GL_ARB_texture_storage 1 +#endif /* GL_ARB_texture_storage */ + +#ifndef GL_ARB_texture_storage_multisample +#define GL_ARB_texture_storage_multisample 1 +#endif /* GL_ARB_texture_storage_multisample */ + +#ifndef GL_ARB_texture_swizzle +#define GL_ARB_texture_swizzle 1 +#endif /* GL_ARB_texture_swizzle */ + +#ifndef GL_ARB_texture_view +#define GL_ARB_texture_view 1 +#endif /* GL_ARB_texture_view */ + +#ifndef GL_ARB_timer_query +#define GL_ARB_timer_query 1 +#endif /* GL_ARB_timer_query */ + +#ifndef GL_ARB_transform_feedback2 +#define GL_ARB_transform_feedback2 1 +#endif /* GL_ARB_transform_feedback2 */ + +#ifndef GL_ARB_transform_feedback3 +#define GL_ARB_transform_feedback3 1 +#endif /* GL_ARB_transform_feedback3 */ + +#ifndef GL_ARB_transform_feedback_instanced +#define GL_ARB_transform_feedback_instanced 1 +#endif /* GL_ARB_transform_feedback_instanced */ + +#ifndef GL_ARB_transform_feedback_overflow_query +#define GL_ARB_transform_feedback_overflow_query 1 +#define GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB 0x82EC +#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB 0x82ED +#endif /* GL_ARB_transform_feedback_overflow_query */ + +#ifndef GL_ARB_uniform_buffer_object +#define GL_ARB_uniform_buffer_object 1 +#endif /* GL_ARB_uniform_buffer_object */ + +#ifndef GL_ARB_vertex_array_bgra +#define GL_ARB_vertex_array_bgra 1 +#endif /* GL_ARB_vertex_array_bgra */ + +#ifndef GL_ARB_vertex_array_object +#define GL_ARB_vertex_array_object 1 +#endif /* GL_ARB_vertex_array_object */ + +#ifndef GL_ARB_vertex_attrib_64bit +#define GL_ARB_vertex_attrib_64bit 1 +#endif /* GL_ARB_vertex_attrib_64bit */ + +#ifndef GL_ARB_vertex_attrib_binding +#define GL_ARB_vertex_attrib_binding 1 +#endif /* GL_ARB_vertex_attrib_binding */ + +#ifndef GL_ARB_vertex_type_10f_11f_11f_rev +#define GL_ARB_vertex_type_10f_11f_11f_rev 1 +#endif /* GL_ARB_vertex_type_10f_11f_11f_rev */ + +#ifndef GL_ARB_vertex_type_2_10_10_10_rev +#define GL_ARB_vertex_type_2_10_10_10_rev 1 +#endif /* GL_ARB_vertex_type_2_10_10_10_rev */ + +#ifndef GL_ARB_viewport_array +#define GL_ARB_viewport_array 1 +typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYDVNVPROC) (GLuint first, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDDNVPROC) (GLuint index, GLdouble n, GLdouble f); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDepthRangeArraydvNV (GLuint first, GLsizei count, const GLdouble *v); +GLAPI void APIENTRY glDepthRangeIndexeddNV (GLuint index, GLdouble n, GLdouble f); +#endif +#endif /* GL_ARB_viewport_array */ + +#ifndef GL_KHR_blend_equation_advanced +#define GL_KHR_blend_equation_advanced 1 +#define GL_MULTIPLY_KHR 0x9294 +#define GL_SCREEN_KHR 0x9295 +#define GL_OVERLAY_KHR 0x9296 +#define GL_DARKEN_KHR 0x9297 +#define GL_LIGHTEN_KHR 0x9298 +#define GL_COLORDODGE_KHR 0x9299 +#define GL_COLORBURN_KHR 0x929A +#define GL_HARDLIGHT_KHR 0x929B +#define GL_SOFTLIGHT_KHR 0x929C +#define GL_DIFFERENCE_KHR 0x929E +#define GL_EXCLUSION_KHR 0x92A0 +#define GL_HSL_HUE_KHR 0x92AD +#define GL_HSL_SATURATION_KHR 0x92AE +#define GL_HSL_COLOR_KHR 0x92AF +#define GL_HSL_LUMINOSITY_KHR 0x92B0 +typedef void (APIENTRYP PFNGLBLENDBARRIERKHRPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendBarrierKHR (void); +#endif +#endif /* GL_KHR_blend_equation_advanced */ + +#ifndef GL_KHR_blend_equation_advanced_coherent +#define GL_KHR_blend_equation_advanced_coherent 1 +#define GL_BLEND_ADVANCED_COHERENT_KHR 0x9285 +#endif /* GL_KHR_blend_equation_advanced_coherent */ + +#ifndef GL_KHR_context_flush_control +#define GL_KHR_context_flush_control 1 +#endif /* GL_KHR_context_flush_control */ + +#ifndef GL_KHR_debug +#define GL_KHR_debug 1 +#endif /* GL_KHR_debug */ + +#ifndef GL_KHR_no_error +#define GL_KHR_no_error 1 +#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR 0x00000008 +#endif /* GL_KHR_no_error */ + +#ifndef GL_KHR_parallel_shader_compile +#define GL_KHR_parallel_shader_compile 1 +#define GL_MAX_SHADER_COMPILER_THREADS_KHR 0x91B0 +#define GL_COMPLETION_STATUS_KHR 0x91B1 +typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSKHRPROC) (GLuint count); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMaxShaderCompilerThreadsKHR (GLuint count); +#endif +#endif /* GL_KHR_parallel_shader_compile */ + +#ifndef GL_KHR_robust_buffer_access_behavior +#define GL_KHR_robust_buffer_access_behavior 1 +#endif /* GL_KHR_robust_buffer_access_behavior */ + +#ifndef GL_KHR_robustness +#define GL_KHR_robustness 1 +#define GL_CONTEXT_ROBUST_ACCESS 0x90F3 +#endif /* GL_KHR_robustness */ + +#ifndef GL_KHR_shader_subgroup +#define GL_KHR_shader_subgroup 1 +#define GL_SUBGROUP_SIZE_KHR 0x9532 +#define GL_SUBGROUP_SUPPORTED_STAGES_KHR 0x9533 +#define GL_SUBGROUP_SUPPORTED_FEATURES_KHR 0x9534 +#define GL_SUBGROUP_QUAD_ALL_STAGES_KHR 0x9535 +#define GL_SUBGROUP_FEATURE_BASIC_BIT_KHR 0x00000001 +#define GL_SUBGROUP_FEATURE_VOTE_BIT_KHR 0x00000002 +#define GL_SUBGROUP_FEATURE_ARITHMETIC_BIT_KHR 0x00000004 +#define GL_SUBGROUP_FEATURE_BALLOT_BIT_KHR 0x00000008 +#define GL_SUBGROUP_FEATURE_SHUFFLE_BIT_KHR 0x00000010 +#define GL_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT_KHR 0x00000020 +#define GL_SUBGROUP_FEATURE_CLUSTERED_BIT_KHR 0x00000040 +#define GL_SUBGROUP_FEATURE_QUAD_BIT_KHR 0x00000080 +#endif /* GL_KHR_shader_subgroup */ + +#ifndef GL_KHR_texture_compression_astc_hdr +#define GL_KHR_texture_compression_astc_hdr 1 +#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0 +#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1 +#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2 +#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3 +#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4 +#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5 +#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6 +#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7 +#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8 +#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9 +#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA +#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB +#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC +#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD +#endif /* GL_KHR_texture_compression_astc_hdr */ + +#ifndef GL_KHR_texture_compression_astc_ldr +#define GL_KHR_texture_compression_astc_ldr 1 +#endif /* GL_KHR_texture_compression_astc_ldr */ + +#ifndef GL_KHR_texture_compression_astc_sliced_3d +#define GL_KHR_texture_compression_astc_sliced_3d 1 +#endif /* GL_KHR_texture_compression_astc_sliced_3d */ + +#ifndef GL_AMD_framebuffer_multisample_advanced +#define GL_AMD_framebuffer_multisample_advanced 1 +#define GL_RENDERBUFFER_STORAGE_SAMPLES_AMD 0x91B2 +#define GL_MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD 0x91B3 +#define GL_MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD 0x91B4 +#define GL_MAX_DEPTH_STENCIL_FRAMEBUFFER_SAMPLES_AMD 0x91B5 +#define GL_NUM_SUPPORTED_MULTISAMPLE_MODES_AMD 0x91B6 +#define GL_SUPPORTED_MULTISAMPLE_MODES_AMD 0x91B7 +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC) (GLenum target, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC) (GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glRenderbufferStorageMultisampleAdvancedAMD (GLenum target, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleAdvancedAMD (GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); +#endif +#endif /* GL_AMD_framebuffer_multisample_advanced */ + +#ifndef GL_AMD_performance_monitor +#define GL_AMD_performance_monitor 1 +#define GL_COUNTER_TYPE_AMD 0x8BC0 +#define GL_COUNTER_RANGE_AMD 0x8BC1 +#define GL_UNSIGNED_INT64_AMD 0x8BC2 +#define GL_PERCENTAGE_AMD 0x8BC3 +#define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4 +#define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5 +#define GL_PERFMON_RESULT_AMD 0x8BC6 +typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups); +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters); +typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString); +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString); +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data); +typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors); +typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors); +typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList); +typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor); +typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor); +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups); +GLAPI void APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters); +GLAPI void APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString); +GLAPI void APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString); +GLAPI void APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, void *data); +GLAPI void APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors); +GLAPI void APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors); +GLAPI void APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList); +GLAPI void APIENTRY glBeginPerfMonitorAMD (GLuint monitor); +GLAPI void APIENTRY glEndPerfMonitorAMD (GLuint monitor); +GLAPI void APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten); +#endif +#endif /* GL_AMD_performance_monitor */ + +#ifndef GL_APPLE_rgb_422 +#define GL_APPLE_rgb_422 1 +#define GL_RGB_422_APPLE 0x8A1F +#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA +#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB +#define GL_RGB_RAW_422_APPLE 0x8A51 +#endif /* GL_APPLE_rgb_422 */ + +#ifndef GL_EXT_EGL_image_storage +#define GL_EXT_EGL_image_storage 1 +typedef void *GLeglImageOES; +typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXSTORAGEEXTPROC) (GLenum target, GLeglImageOES image, const GLint* attrib_list); +typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURESTORAGEEXTPROC) (GLuint texture, GLeglImageOES image, const GLint* attrib_list); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glEGLImageTargetTexStorageEXT (GLenum target, GLeglImageOES image, const GLint* attrib_list); +GLAPI void APIENTRY glEGLImageTargetTextureStorageEXT (GLuint texture, GLeglImageOES image, const GLint* attrib_list); +#endif +#endif /* GL_EXT_EGL_image_storage */ + +#ifndef GL_EXT_EGL_sync +#define GL_EXT_EGL_sync 1 +#endif /* GL_EXT_EGL_sync */ + +#ifndef GL_EXT_debug_label +#define GL_EXT_debug_label 1 +#define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F +#define GL_PROGRAM_OBJECT_EXT 0x8B40 +#define GL_SHADER_OBJECT_EXT 0x8B48 +#define GL_BUFFER_OBJECT_EXT 0x9151 +#define GL_QUERY_OBJECT_EXT 0x9153 +#define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154 +typedef void (APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label); +typedef void (APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label); +GLAPI void APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label); +#endif +#endif /* GL_EXT_debug_label */ + +#ifndef GL_EXT_debug_marker +#define GL_EXT_debug_marker 1 +typedef void (APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker); +typedef void (APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker); +typedef void (APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker); +GLAPI void APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker); +GLAPI void APIENTRY glPopGroupMarkerEXT (void); +#endif +#endif /* GL_EXT_debug_marker */ + +#ifndef GL_EXT_direct_state_access +#define GL_EXT_direct_state_access 1 +#define GL_PROGRAM_MATRIX_EXT 0x8E2D +#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8E2E +#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F +typedef void (APIENTRYP PFNGLMATRIXLOADFEXTPROC) (GLenum mode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXLOADDEXTPROC) (GLenum mode, const GLdouble *m); +typedef void (APIENTRYP PFNGLMATRIXMULTFEXTPROC) (GLenum mode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXMULTDEXTPROC) (GLenum mode, const GLdouble *m); +typedef void (APIENTRYP PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLMATRIXROTATEFEXTPROC) (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLMATRIXROTATEDEXTPROC) (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLMATRIXSCALEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLMATRIXSCALEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLMATRIXFRUSTUMEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +typedef void (APIENTRYP PFNGLMATRIXORTHOEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +typedef void (APIENTRYP PFNGLMATRIXPOPEXTPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLMATRIXPUSHEXTPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); +typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture); +typedef void (APIENTRYP PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer); +typedef void (APIENTRYP PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param); +typedef void (APIENTRYP PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params); +typedef void (APIENTRYP PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); +typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); +typedef void (APIENTRYP PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat *data); +typedef void (APIENTRYP PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble *data); +typedef void (APIENTRYP PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, void **data); +typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index); +typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index); +typedef GLboolean (APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index); +typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data); +typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint lod, void *img); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint lod, void *img); +typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m); +typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m); +typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); +typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); +typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access); +typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, void **params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); +typedef void (APIENTRYP PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint *params); +typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint *params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint *params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint *params); +typedef void (APIENTRYP PFNGLENABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); +typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); +typedef void (APIENTRYP PFNGLGETFLOATI_VEXTPROC) (GLenum pname, GLuint index, GLfloat *params); +typedef void (APIENTRYP PFNGLGETDOUBLEI_VEXTPROC) (GLenum pname, GLuint index, GLdouble *params); +typedef void (APIENTRYP PFNGLGETPOINTERI_VEXTPROC) (GLenum pname, GLuint index, void **params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble *params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, void *string); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target); +typedef void (APIENTRYP PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target); +typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); +typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs); +typedef void (APIENTRYP PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); +typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); +typedef void (APIENTRYP PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYINDEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYNORMALOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); +typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); +typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); +typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERVEXTPROC) (GLuint vaobj, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERVEXTPROC) (GLuint vaobj, GLenum pname, void **param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, void **param); +typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); +typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); +typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); +typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) (GLuint framebuffer, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTEXTPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBDIVISOREXTPROC) (GLuint vaobj, GLuint index, GLuint divisor); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMatrixLoadfEXT (GLenum mode, const GLfloat *m); +GLAPI void APIENTRY glMatrixLoaddEXT (GLenum mode, const GLdouble *m); +GLAPI void APIENTRY glMatrixMultfEXT (GLenum mode, const GLfloat *m); +GLAPI void APIENTRY glMatrixMultdEXT (GLenum mode, const GLdouble *m); +GLAPI void APIENTRY glMatrixLoadIdentityEXT (GLenum mode); +GLAPI void APIENTRY glMatrixRotatefEXT (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); +GLAPI void APIENTRY glMatrixRotatedEXT (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glMatrixScalefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z); +GLAPI void APIENTRY glMatrixScaledEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glMatrixTranslatefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z); +GLAPI void APIENTRY glMatrixTranslatedEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glMatrixFrustumEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +GLAPI void APIENTRY glMatrixOrthoEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +GLAPI void APIENTRY glMatrixPopEXT (GLenum mode); +GLAPI void APIENTRY glMatrixPushEXT (GLenum mode); +GLAPI void APIENTRY glClientAttribDefaultEXT (GLbitfield mask); +GLAPI void APIENTRY glPushClientAttribDefaultEXT (GLbitfield mask); +GLAPI void APIENTRY glTextureParameterfEXT (GLuint texture, GLenum target, GLenum pname, GLfloat param); +GLAPI void APIENTRY glTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glTextureParameteriEXT (GLuint texture, GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCopyTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +GLAPI void APIENTRY glCopyTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +GLAPI void APIENTRY glCopyTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +GLAPI void APIENTRY glCopyTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glGetTextureImageEXT (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +GLAPI void APIENTRY glGetTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTextureLevelParameterfvEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTextureLevelParameterivEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params); +GLAPI void APIENTRY glTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCopyTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glBindMultiTextureEXT (GLenum texunit, GLenum target, GLuint texture); +GLAPI void APIENTRY glMultiTexCoordPointerEXT (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer); +GLAPI void APIENTRY glMultiTexEnvfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param); +GLAPI void APIENTRY glMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glMultiTexEnviEXT (GLenum texunit, GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glMultiTexGendEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble param); +GLAPI void APIENTRY glMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params); +GLAPI void APIENTRY glMultiTexGenfEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat param); +GLAPI void APIENTRY glMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glMultiTexGeniEXT (GLenum texunit, GLenum coord, GLenum pname, GLint param); +GLAPI void APIENTRY glMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, const GLint *params); +GLAPI void APIENTRY glGetMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params); +GLAPI void APIENTRY glGetMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, GLint *params); +GLAPI void APIENTRY glMultiTexParameteriEXT (GLenum texunit, GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glMultiTexParameterfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param); +GLAPI void APIENTRY glMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCopyMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +GLAPI void APIENTRY glCopyMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +GLAPI void APIENTRY glCopyMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +GLAPI void APIENTRY glCopyMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glGetMultiTexImageEXT (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +GLAPI void APIENTRY glGetMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetMultiTexLevelParameterfvEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetMultiTexLevelParameterivEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params); +GLAPI void APIENTRY glMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCopyMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glEnableClientStateIndexedEXT (GLenum array, GLuint index); +GLAPI void APIENTRY glDisableClientStateIndexedEXT (GLenum array, GLuint index); +GLAPI void APIENTRY glGetFloatIndexedvEXT (GLenum target, GLuint index, GLfloat *data); +GLAPI void APIENTRY glGetDoubleIndexedvEXT (GLenum target, GLuint index, GLdouble *data); +GLAPI void APIENTRY glGetPointerIndexedvEXT (GLenum target, GLuint index, void **data); +GLAPI void APIENTRY glEnableIndexedEXT (GLenum target, GLuint index); +GLAPI void APIENTRY glDisableIndexedEXT (GLenum target, GLuint index); +GLAPI GLboolean APIENTRY glIsEnabledIndexedEXT (GLenum target, GLuint index); +GLAPI void APIENTRY glGetIntegerIndexedvEXT (GLenum target, GLuint index, GLint *data); +GLAPI void APIENTRY glGetBooleanIndexedvEXT (GLenum target, GLuint index, GLboolean *data); +GLAPI void APIENTRY glCompressedTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glGetCompressedTextureImageEXT (GLuint texture, GLenum target, GLint lod, void *img); +GLAPI void APIENTRY glCompressedMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glGetCompressedMultiTexImageEXT (GLenum texunit, GLenum target, GLint lod, void *img); +GLAPI void APIENTRY glMatrixLoadTransposefEXT (GLenum mode, const GLfloat *m); +GLAPI void APIENTRY glMatrixLoadTransposedEXT (GLenum mode, const GLdouble *m); +GLAPI void APIENTRY glMatrixMultTransposefEXT (GLenum mode, const GLfloat *m); +GLAPI void APIENTRY glMatrixMultTransposedEXT (GLenum mode, const GLdouble *m); +GLAPI void APIENTRY glNamedBufferDataEXT (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); +GLAPI void APIENTRY glNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); +GLAPI void *APIENTRY glMapNamedBufferEXT (GLuint buffer, GLenum access); +GLAPI GLboolean APIENTRY glUnmapNamedBufferEXT (GLuint buffer); +GLAPI void APIENTRY glGetNamedBufferParameterivEXT (GLuint buffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetNamedBufferPointervEXT (GLuint buffer, GLenum pname, void **params); +GLAPI void APIENTRY glGetNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); +GLAPI void APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat v0); +GLAPI void APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1); +GLAPI void APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +GLAPI void APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +GLAPI void APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint v0); +GLAPI void APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint v0, GLint v1); +GLAPI void APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); +GLAPI void APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +GLAPI void APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix2x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix2x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glTextureBufferEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); +GLAPI void APIENTRY glMultiTexBufferEXT (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); +GLAPI void APIENTRY glTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, const GLuint *params); +GLAPI void APIENTRY glGetTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, GLuint *params); +GLAPI void APIENTRY glMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, const GLuint *params); +GLAPI void APIENTRY glGetMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, GLuint *params); +GLAPI void APIENTRY glProgramUniform1uiEXT (GLuint program, GLint location, GLuint v0); +GLAPI void APIENTRY glProgramUniform2uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1); +GLAPI void APIENTRY glProgramUniform3uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); +GLAPI void APIENTRY glProgramUniform4uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +GLAPI void APIENTRY glProgramUniform1uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform2uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform3uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform4uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glNamedProgramLocalParameters4fvEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params); +GLAPI void APIENTRY glNamedProgramLocalParameterI4iEXT (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); +GLAPI void APIENTRY glNamedProgramLocalParameterI4ivEXT (GLuint program, GLenum target, GLuint index, const GLint *params); +GLAPI void APIENTRY glNamedProgramLocalParametersI4ivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params); +GLAPI void APIENTRY glNamedProgramLocalParameterI4uiEXT (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +GLAPI void APIENTRY glNamedProgramLocalParameterI4uivEXT (GLuint program, GLenum target, GLuint index, const GLuint *params); +GLAPI void APIENTRY glNamedProgramLocalParametersI4uivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params); +GLAPI void APIENTRY glGetNamedProgramLocalParameterIivEXT (GLuint program, GLenum target, GLuint index, GLint *params); +GLAPI void APIENTRY glGetNamedProgramLocalParameterIuivEXT (GLuint program, GLenum target, GLuint index, GLuint *params); +GLAPI void APIENTRY glEnableClientStateiEXT (GLenum array, GLuint index); +GLAPI void APIENTRY glDisableClientStateiEXT (GLenum array, GLuint index); +GLAPI void APIENTRY glGetFloati_vEXT (GLenum pname, GLuint index, GLfloat *params); +GLAPI void APIENTRY glGetDoublei_vEXT (GLenum pname, GLuint index, GLdouble *params); +GLAPI void APIENTRY glGetPointeri_vEXT (GLenum pname, GLuint index, void **params); +GLAPI void APIENTRY glNamedProgramStringEXT (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string); +GLAPI void APIENTRY glNamedProgramLocalParameter4dEXT (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void APIENTRY glNamedProgramLocalParameter4dvEXT (GLuint program, GLenum target, GLuint index, const GLdouble *params); +GLAPI void APIENTRY glNamedProgramLocalParameter4fEXT (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +GLAPI void APIENTRY glNamedProgramLocalParameter4fvEXT (GLuint program, GLenum target, GLuint index, const GLfloat *params); +GLAPI void APIENTRY glGetNamedProgramLocalParameterdvEXT (GLuint program, GLenum target, GLuint index, GLdouble *params); +GLAPI void APIENTRY glGetNamedProgramLocalParameterfvEXT (GLuint program, GLenum target, GLuint index, GLfloat *params); +GLAPI void APIENTRY glGetNamedProgramivEXT (GLuint program, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetNamedProgramStringEXT (GLuint program, GLenum target, GLenum pname, void *string); +GLAPI void APIENTRY glNamedRenderbufferStorageEXT (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glGetNamedRenderbufferParameterivEXT (GLuint renderbuffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleEXT (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleCoverageEXT (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI GLenum APIENTRY glCheckNamedFramebufferStatusEXT (GLuint framebuffer, GLenum target); +GLAPI void APIENTRY glNamedFramebufferTexture1DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +GLAPI void APIENTRY glNamedFramebufferTexture2DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +GLAPI void APIENTRY glNamedFramebufferTexture3DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +GLAPI void APIENTRY glNamedFramebufferRenderbufferEXT (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameterivEXT (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); +GLAPI void APIENTRY glGenerateTextureMipmapEXT (GLuint texture, GLenum target); +GLAPI void APIENTRY glGenerateMultiTexMipmapEXT (GLenum texunit, GLenum target); +GLAPI void APIENTRY glFramebufferDrawBufferEXT (GLuint framebuffer, GLenum mode); +GLAPI void APIENTRY glFramebufferDrawBuffersEXT (GLuint framebuffer, GLsizei n, const GLenum *bufs); +GLAPI void APIENTRY glFramebufferReadBufferEXT (GLuint framebuffer, GLenum mode); +GLAPI void APIENTRY glGetFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glNamedCopyBufferSubDataEXT (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +GLAPI void APIENTRY glNamedFramebufferTextureEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); +GLAPI void APIENTRY glNamedFramebufferTextureLayerEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); +GLAPI void APIENTRY glNamedFramebufferTextureFaceEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); +GLAPI void APIENTRY glTextureRenderbufferEXT (GLuint texture, GLenum target, GLuint renderbuffer); +GLAPI void APIENTRY glMultiTexRenderbufferEXT (GLenum texunit, GLenum target, GLuint renderbuffer); +GLAPI void APIENTRY glVertexArrayVertexOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayEdgeFlagOffsetEXT (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayIndexOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayNormalOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayMultiTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayFogCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArraySecondaryColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayVertexAttribOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayVertexAttribIOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glEnableVertexArrayEXT (GLuint vaobj, GLenum array); +GLAPI void APIENTRY glDisableVertexArrayEXT (GLuint vaobj, GLenum array); +GLAPI void APIENTRY glEnableVertexArrayAttribEXT (GLuint vaobj, GLuint index); +GLAPI void APIENTRY glDisableVertexArrayAttribEXT (GLuint vaobj, GLuint index); +GLAPI void APIENTRY glGetVertexArrayIntegervEXT (GLuint vaobj, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetVertexArrayPointervEXT (GLuint vaobj, GLenum pname, void **param); +GLAPI void APIENTRY glGetVertexArrayIntegeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetVertexArrayPointeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, void **param); +GLAPI void *APIENTRY glMapNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); +GLAPI void APIENTRY glFlushMappedNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length); +GLAPI void APIENTRY glNamedBufferStorageEXT (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); +GLAPI void APIENTRY glClearNamedBufferDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glClearNamedBufferSubDataEXT (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glNamedFramebufferParameteriEXT (GLuint framebuffer, GLenum pname, GLint param); +GLAPI void APIENTRY glGetNamedFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glProgramUniform1dEXT (GLuint program, GLint location, GLdouble x); +GLAPI void APIENTRY glProgramUniform2dEXT (GLuint program, GLint location, GLdouble x, GLdouble y); +GLAPI void APIENTRY glProgramUniform3dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glProgramUniform4dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void APIENTRY glProgramUniform1dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform2dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform3dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform4dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix2x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix2x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glTextureBufferRangeEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +GLAPI void APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +GLAPI void APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +GLAPI void APIENTRY glTextureStorage2DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTextureStorage3DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glVertexArrayBindVertexBufferEXT (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +GLAPI void APIENTRY glVertexArrayVertexAttribFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayVertexAttribIFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayVertexAttribLFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayVertexAttribBindingEXT (GLuint vaobj, GLuint attribindex, GLuint bindingindex); +GLAPI void APIENTRY glVertexArrayVertexBindingDivisorEXT (GLuint vaobj, GLuint bindingindex, GLuint divisor); +GLAPI void APIENTRY glVertexArrayVertexAttribLOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glTexturePageCommitmentEXT (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); +GLAPI void APIENTRY glVertexArrayVertexAttribDivisorEXT (GLuint vaobj, GLuint index, GLuint divisor); +#endif +#endif /* GL_EXT_direct_state_access */ + +#ifndef GL_EXT_draw_instanced +#define GL_EXT_draw_instanced 1 +typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount); +GLAPI void APIENTRY glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); +#endif +#endif /* GL_EXT_draw_instanced */ + +#ifndef GL_EXT_multiview_tessellation_geometry_shader +#define GL_EXT_multiview_tessellation_geometry_shader 1 +#endif /* GL_EXT_multiview_tessellation_geometry_shader */ + +#ifndef GL_EXT_multiview_texture_multisample +#define GL_EXT_multiview_texture_multisample 1 +#endif /* GL_EXT_multiview_texture_multisample */ + +#ifndef GL_EXT_multiview_timer_query +#define GL_EXT_multiview_timer_query 1 +#endif /* GL_EXT_multiview_timer_query */ + +#ifndef GL_EXT_polygon_offset_clamp +#define GL_EXT_polygon_offset_clamp 1 +#define GL_POLYGON_OFFSET_CLAMP_EXT 0x8E1B +typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPEXTPROC) (GLfloat factor, GLfloat units, GLfloat clamp); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPolygonOffsetClampEXT (GLfloat factor, GLfloat units, GLfloat clamp); +#endif +#endif /* GL_EXT_polygon_offset_clamp */ + +#ifndef GL_EXT_post_depth_coverage +#define GL_EXT_post_depth_coverage 1 +#endif /* GL_EXT_post_depth_coverage */ + +#ifndef GL_EXT_raster_multisample +#define GL_EXT_raster_multisample 1 +#define GL_RASTER_MULTISAMPLE_EXT 0x9327 +#define GL_RASTER_SAMPLES_EXT 0x9328 +#define GL_MAX_RASTER_SAMPLES_EXT 0x9329 +#define GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT 0x932A +#define GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT 0x932B +#define GL_EFFECTIVE_RASTER_SAMPLES_EXT 0x932C +typedef void (APIENTRYP PFNGLRASTERSAMPLESEXTPROC) (GLuint samples, GLboolean fixedsamplelocations); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glRasterSamplesEXT (GLuint samples, GLboolean fixedsamplelocations); +#endif +#endif /* GL_EXT_raster_multisample */ + +#ifndef GL_EXT_separate_shader_objects +#define GL_EXT_separate_shader_objects 1 +#define GL_ACTIVE_PROGRAM_EXT 0x8B8D +typedef void (APIENTRYP PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program); +typedef void (APIENTRYP PFNGLACTIVEPROGRAMEXTPROC) (GLuint program); +typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const GLchar *string); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glUseShaderProgramEXT (GLenum type, GLuint program); +GLAPI void APIENTRY glActiveProgramEXT (GLuint program); +GLAPI GLuint APIENTRY glCreateShaderProgramEXT (GLenum type, const GLchar *string); +#endif +#endif /* GL_EXT_separate_shader_objects */ + +#ifndef GL_EXT_shader_framebuffer_fetch +#define GL_EXT_shader_framebuffer_fetch 1 +#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT 0x8A52 +#endif /* GL_EXT_shader_framebuffer_fetch */ + +#ifndef GL_EXT_shader_framebuffer_fetch_non_coherent +#define GL_EXT_shader_framebuffer_fetch_non_coherent 1 +typedef void (APIENTRYP PFNGLFRAMEBUFFERFETCHBARRIEREXTPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFramebufferFetchBarrierEXT (void); +#endif +#endif /* GL_EXT_shader_framebuffer_fetch_non_coherent */ + +#ifndef GL_EXT_shader_integer_mix +#define GL_EXT_shader_integer_mix 1 +#endif /* GL_EXT_shader_integer_mix */ + +#ifndef GL_EXT_texture_compression_s3tc +#define GL_EXT_texture_compression_s3tc 1 +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 +#endif /* GL_EXT_texture_compression_s3tc */ + +#ifndef GL_EXT_texture_filter_minmax +#define GL_EXT_texture_filter_minmax 1 +#define GL_TEXTURE_REDUCTION_MODE_EXT 0x9366 +#define GL_WEIGHTED_AVERAGE_EXT 0x9367 +#endif /* GL_EXT_texture_filter_minmax */ + +#ifndef GL_EXT_texture_sRGB_R8 +#define GL_EXT_texture_sRGB_R8 1 +#define GL_SR8_EXT 0x8FBD +#endif /* GL_EXT_texture_sRGB_R8 */ + +#ifndef GL_EXT_texture_sRGB_RG8 +#define GL_EXT_texture_sRGB_RG8 1 +#define GL_SRG8_EXT 0x8FBE +#endif /* GL_EXT_texture_sRGB_RG8 */ + +#ifndef GL_EXT_texture_sRGB_decode +#define GL_EXT_texture_sRGB_decode 1 +#define GL_TEXTURE_SRGB_DECODE_EXT 0x8A48 +#define GL_DECODE_EXT 0x8A49 +#define GL_SKIP_DECODE_EXT 0x8A4A +#endif /* GL_EXT_texture_sRGB_decode */ + +#ifndef GL_EXT_texture_shadow_lod +#define GL_EXT_texture_shadow_lod 1 +#endif /* GL_EXT_texture_shadow_lod */ + +#ifndef GL_EXT_texture_storage +#define GL_EXT_texture_storage 1 +#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F +#define GL_ALPHA8_EXT 0x803C +#define GL_LUMINANCE8_EXT 0x8040 +#define GL_LUMINANCE8_ALPHA8_EXT 0x8045 +#define GL_RGBA32F_EXT 0x8814 +#define GL_RGB32F_EXT 0x8815 +#define GL_ALPHA32F_EXT 0x8816 +#define GL_LUMINANCE32F_EXT 0x8818 +#define GL_LUMINANCE_ALPHA32F_EXT 0x8819 +#define GL_RGBA16F_EXT 0x881A +#define GL_RGB16F_EXT 0x881B +#define GL_ALPHA16F_EXT 0x881C +#define GL_LUMINANCE16F_EXT 0x881E +#define GL_LUMINANCE_ALPHA16F_EXT 0x881F +#define GL_RGB10_A2_EXT 0x8059 +#define GL_RGB10_EXT 0x8052 +#define GL_BGRA8_EXT 0x93A1 +#define GL_R8_EXT 0x8229 +#define GL_RG8_EXT 0x822B +#define GL_R32F_EXT 0x822E +#define GL_RG32F_EXT 0x8230 +#define GL_R16F_EXT 0x822D +#define GL_RG16F_EXT 0x822F +typedef void (APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +typedef void (APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +GLAPI void APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +#endif +#endif /* GL_EXT_texture_storage */ + +#ifndef GL_EXT_window_rectangles +#define GL_EXT_window_rectangles 1 +#define GL_INCLUSIVE_EXT 0x8F10 +#define GL_EXCLUSIVE_EXT 0x8F11 +#define GL_WINDOW_RECTANGLE_EXT 0x8F12 +#define GL_WINDOW_RECTANGLE_MODE_EXT 0x8F13 +#define GL_MAX_WINDOW_RECTANGLES_EXT 0x8F14 +#define GL_NUM_WINDOW_RECTANGLES_EXT 0x8F15 +typedef void (APIENTRYP PFNGLWINDOWRECTANGLESEXTPROC) (GLenum mode, GLsizei count, const GLint *box); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glWindowRectanglesEXT (GLenum mode, GLsizei count, const GLint *box); +#endif +#endif /* GL_EXT_window_rectangles */ + +#ifndef GL_INTEL_blackhole_render +#define GL_INTEL_blackhole_render 1 +#define GL_BLACKHOLE_RENDER_INTEL 0x83FC +#endif /* GL_INTEL_blackhole_render */ + +#ifndef GL_INTEL_conservative_rasterization +#define GL_INTEL_conservative_rasterization 1 +#define GL_CONSERVATIVE_RASTERIZATION_INTEL 0x83FE +#endif /* GL_INTEL_conservative_rasterization */ + +#ifndef GL_INTEL_framebuffer_CMAA +#define GL_INTEL_framebuffer_CMAA 1 +typedef void (APIENTRYP PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glApplyFramebufferAttachmentCMAAINTEL (void); +#endif +#endif /* GL_INTEL_framebuffer_CMAA */ + +#ifndef GL_INTEL_performance_query +#define GL_INTEL_performance_query 1 +#define GL_PERFQUERY_SINGLE_CONTEXT_INTEL 0x00000000 +#define GL_PERFQUERY_GLOBAL_CONTEXT_INTEL 0x00000001 +#define GL_PERFQUERY_WAIT_INTEL 0x83FB +#define GL_PERFQUERY_FLUSH_INTEL 0x83FA +#define GL_PERFQUERY_DONOT_FLUSH_INTEL 0x83F9 +#define GL_PERFQUERY_COUNTER_EVENT_INTEL 0x94F0 +#define GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL 0x94F1 +#define GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL 0x94F2 +#define GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL 0x94F3 +#define GL_PERFQUERY_COUNTER_RAW_INTEL 0x94F4 +#define GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL 0x94F5 +#define GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL 0x94F8 +#define GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL 0x94F9 +#define GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL 0x94FA +#define GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL 0x94FB +#define GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL 0x94FC +#define GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL 0x94FD +#define GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL 0x94FE +#define GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL 0x94FF +#define GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL 0x9500 +typedef void (APIENTRYP PFNGLBEGINPERFQUERYINTELPROC) (GLuint queryHandle); +typedef void (APIENTRYP PFNGLCREATEPERFQUERYINTELPROC) (GLuint queryId, GLuint *queryHandle); +typedef void (APIENTRYP PFNGLDELETEPERFQUERYINTELPROC) (GLuint queryHandle); +typedef void (APIENTRYP PFNGLENDPERFQUERYINTELPROC) (GLuint queryHandle); +typedef void (APIENTRYP PFNGLGETFIRSTPERFQUERYIDINTELPROC) (GLuint *queryId); +typedef void (APIENTRYP PFNGLGETNEXTPERFQUERYIDINTELPROC) (GLuint queryId, GLuint *nextQueryId); +typedef void (APIENTRYP PFNGLGETPERFCOUNTERINFOINTELPROC) (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue); +typedef void (APIENTRYP PFNGLGETPERFQUERYDATAINTELPROC) (GLuint queryHandle, GLuint flags, GLsizei dataSize, void *data, GLuint *bytesWritten); +typedef void (APIENTRYP PFNGLGETPERFQUERYIDBYNAMEINTELPROC) (GLchar *queryName, GLuint *queryId); +typedef void (APIENTRYP PFNGLGETPERFQUERYINFOINTELPROC) (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBeginPerfQueryINTEL (GLuint queryHandle); +GLAPI void APIENTRY glCreatePerfQueryINTEL (GLuint queryId, GLuint *queryHandle); +GLAPI void APIENTRY glDeletePerfQueryINTEL (GLuint queryHandle); +GLAPI void APIENTRY glEndPerfQueryINTEL (GLuint queryHandle); +GLAPI void APIENTRY glGetFirstPerfQueryIdINTEL (GLuint *queryId); +GLAPI void APIENTRY glGetNextPerfQueryIdINTEL (GLuint queryId, GLuint *nextQueryId); +GLAPI void APIENTRY glGetPerfCounterInfoINTEL (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue); +GLAPI void APIENTRY glGetPerfQueryDataINTEL (GLuint queryHandle, GLuint flags, GLsizei dataSize, void *data, GLuint *bytesWritten); +GLAPI void APIENTRY glGetPerfQueryIdByNameINTEL (GLchar *queryName, GLuint *queryId); +GLAPI void APIENTRY glGetPerfQueryInfoINTEL (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask); +#endif +#endif /* GL_INTEL_performance_query */ + +#ifndef GL_MESA_framebuffer_flip_x +#define GL_MESA_framebuffer_flip_x 1 +#define GL_FRAMEBUFFER_FLIP_X_MESA 0x8BBC +#endif /* GL_MESA_framebuffer_flip_x */ + +#ifndef GL_MESA_framebuffer_flip_y +#define GL_MESA_framebuffer_flip_y 1 +#define GL_FRAMEBUFFER_FLIP_Y_MESA 0x8BBB +typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIMESAPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVMESAPROC) (GLenum target, GLenum pname, GLint *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFramebufferParameteriMESA (GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glGetFramebufferParameterivMESA (GLenum target, GLenum pname, GLint *params); +#endif +#endif /* GL_MESA_framebuffer_flip_y */ + +#ifndef GL_MESA_framebuffer_swap_xy +#define GL_MESA_framebuffer_swap_xy 1 +#define GL_FRAMEBUFFER_SWAP_XY_MESA 0x8BBD +#endif /* GL_MESA_framebuffer_swap_xy */ + +#ifndef GL_NV_bindless_multi_draw_indirect +#define GL_NV_bindless_multi_draw_indirect 1 +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC) (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessNV (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); +GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessNV (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); +#endif +#endif /* GL_NV_bindless_multi_draw_indirect */ + +#ifndef GL_NV_bindless_multi_draw_indirect_count +#define GL_NV_bindless_multi_draw_indirect_count 1 +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessCountNV (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); +GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessCountNV (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); +#endif +#endif /* GL_NV_bindless_multi_draw_indirect_count */ + +#ifndef GL_NV_bindless_texture +#define GL_NV_bindless_texture 1 +typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLENVPROC) (GLuint texture); +typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLENVPROC) (GLuint texture, GLuint sampler); +typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle); +typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC) (GLuint64 handle); +typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLENVPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); +typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access); +typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC) (GLuint64 handle); +typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64NVPROC) (GLint location, GLuint64 value); +typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VNVPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC) (GLuint program, GLint location, GLuint64 value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values); +typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle); +typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLuint64 APIENTRY glGetTextureHandleNV (GLuint texture); +GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleNV (GLuint texture, GLuint sampler); +GLAPI void APIENTRY glMakeTextureHandleResidentNV (GLuint64 handle); +GLAPI void APIENTRY glMakeTextureHandleNonResidentNV (GLuint64 handle); +GLAPI GLuint64 APIENTRY glGetImageHandleNV (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); +GLAPI void APIENTRY glMakeImageHandleResidentNV (GLuint64 handle, GLenum access); +GLAPI void APIENTRY glMakeImageHandleNonResidentNV (GLuint64 handle); +GLAPI void APIENTRY glUniformHandleui64NV (GLint location, GLuint64 value); +GLAPI void APIENTRY glUniformHandleui64vNV (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glProgramUniformHandleui64NV (GLuint program, GLint location, GLuint64 value); +GLAPI void APIENTRY glProgramUniformHandleui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64 *values); +GLAPI GLboolean APIENTRY glIsTextureHandleResidentNV (GLuint64 handle); +GLAPI GLboolean APIENTRY glIsImageHandleResidentNV (GLuint64 handle); +#endif +#endif /* GL_NV_bindless_texture */ + +#ifndef GL_NV_blend_equation_advanced +#define GL_NV_blend_equation_advanced 1 +#define GL_BLEND_OVERLAP_NV 0x9281 +#define GL_BLEND_PREMULTIPLIED_SRC_NV 0x9280 +#define GL_BLUE_NV 0x1905 +#define GL_COLORBURN_NV 0x929A +#define GL_COLORDODGE_NV 0x9299 +#define GL_CONJOINT_NV 0x9284 +#define GL_CONTRAST_NV 0x92A1 +#define GL_DARKEN_NV 0x9297 +#define GL_DIFFERENCE_NV 0x929E +#define GL_DISJOINT_NV 0x9283 +#define GL_DST_ATOP_NV 0x928F +#define GL_DST_IN_NV 0x928B +#define GL_DST_NV 0x9287 +#define GL_DST_OUT_NV 0x928D +#define GL_DST_OVER_NV 0x9289 +#define GL_EXCLUSION_NV 0x92A0 +#define GL_GREEN_NV 0x1904 +#define GL_HARDLIGHT_NV 0x929B +#define GL_HARDMIX_NV 0x92A9 +#define GL_HSL_COLOR_NV 0x92AF +#define GL_HSL_HUE_NV 0x92AD +#define GL_HSL_LUMINOSITY_NV 0x92B0 +#define GL_HSL_SATURATION_NV 0x92AE +#define GL_INVERT_OVG_NV 0x92B4 +#define GL_INVERT_RGB_NV 0x92A3 +#define GL_LIGHTEN_NV 0x9298 +#define GL_LINEARBURN_NV 0x92A5 +#define GL_LINEARDODGE_NV 0x92A4 +#define GL_LINEARLIGHT_NV 0x92A7 +#define GL_MINUS_CLAMPED_NV 0x92B3 +#define GL_MINUS_NV 0x929F +#define GL_MULTIPLY_NV 0x9294 +#define GL_OVERLAY_NV 0x9296 +#define GL_PINLIGHT_NV 0x92A8 +#define GL_PLUS_CLAMPED_ALPHA_NV 0x92B2 +#define GL_PLUS_CLAMPED_NV 0x92B1 +#define GL_PLUS_DARKER_NV 0x9292 +#define GL_PLUS_NV 0x9291 +#define GL_RED_NV 0x1903 +#define GL_SCREEN_NV 0x9295 +#define GL_SOFTLIGHT_NV 0x929C +#define GL_SRC_ATOP_NV 0x928E +#define GL_SRC_IN_NV 0x928A +#define GL_SRC_NV 0x9286 +#define GL_SRC_OUT_NV 0x928C +#define GL_SRC_OVER_NV 0x9288 +#define GL_UNCORRELATED_NV 0x9282 +#define GL_VIVIDLIGHT_NV 0x92A6 +#define GL_XOR_NV 0x1506 +typedef void (APIENTRYP PFNGLBLENDPARAMETERINVPROC) (GLenum pname, GLint value); +typedef void (APIENTRYP PFNGLBLENDBARRIERNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendParameteriNV (GLenum pname, GLint value); +GLAPI void APIENTRY glBlendBarrierNV (void); +#endif +#endif /* GL_NV_blend_equation_advanced */ + +#ifndef GL_NV_blend_equation_advanced_coherent +#define GL_NV_blend_equation_advanced_coherent 1 +#define GL_BLEND_ADVANCED_COHERENT_NV 0x9285 +#endif /* GL_NV_blend_equation_advanced_coherent */ + +#ifndef GL_NV_blend_minmax_factor +#define GL_NV_blend_minmax_factor 1 +#define GL_FACTOR_MIN_AMD 0x901C +#define GL_FACTOR_MAX_AMD 0x901D +#endif /* GL_NV_blend_minmax_factor */ + +#ifndef GL_NV_clip_space_w_scaling +#define GL_NV_clip_space_w_scaling 1 +#define GL_VIEWPORT_POSITION_W_SCALE_NV 0x937C +#define GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV 0x937D +#define GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV 0x937E +typedef void (APIENTRYP PFNGLVIEWPORTPOSITIONWSCALENVPROC) (GLuint index, GLfloat xcoeff, GLfloat ycoeff); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glViewportPositionWScaleNV (GLuint index, GLfloat xcoeff, GLfloat ycoeff); +#endif +#endif /* GL_NV_clip_space_w_scaling */ + +#ifndef GL_NV_command_list +#define GL_NV_command_list 1 +#define GL_TERMINATE_SEQUENCE_COMMAND_NV 0x0000 +#define GL_NOP_COMMAND_NV 0x0001 +#define GL_DRAW_ELEMENTS_COMMAND_NV 0x0002 +#define GL_DRAW_ARRAYS_COMMAND_NV 0x0003 +#define GL_DRAW_ELEMENTS_STRIP_COMMAND_NV 0x0004 +#define GL_DRAW_ARRAYS_STRIP_COMMAND_NV 0x0005 +#define GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV 0x0006 +#define GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV 0x0007 +#define GL_ELEMENT_ADDRESS_COMMAND_NV 0x0008 +#define GL_ATTRIBUTE_ADDRESS_COMMAND_NV 0x0009 +#define GL_UNIFORM_ADDRESS_COMMAND_NV 0x000A +#define GL_BLEND_COLOR_COMMAND_NV 0x000B +#define GL_STENCIL_REF_COMMAND_NV 0x000C +#define GL_LINE_WIDTH_COMMAND_NV 0x000D +#define GL_POLYGON_OFFSET_COMMAND_NV 0x000E +#define GL_ALPHA_REF_COMMAND_NV 0x000F +#define GL_VIEWPORT_COMMAND_NV 0x0010 +#define GL_SCISSOR_COMMAND_NV 0x0011 +#define GL_FRONT_FACE_COMMAND_NV 0x0012 +typedef void (APIENTRYP PFNGLCREATESTATESNVPROC) (GLsizei n, GLuint *states); +typedef void (APIENTRYP PFNGLDELETESTATESNVPROC) (GLsizei n, const GLuint *states); +typedef GLboolean (APIENTRYP PFNGLISSTATENVPROC) (GLuint state); +typedef void (APIENTRYP PFNGLSTATECAPTURENVPROC) (GLuint state, GLenum mode); +typedef GLuint (APIENTRYP PFNGLGETCOMMANDHEADERNVPROC) (GLenum tokenID, GLuint size); +typedef GLushort (APIENTRYP PFNGLGETSTAGEINDEXNVPROC) (GLenum shadertype); +typedef void (APIENTRYP PFNGLDRAWCOMMANDSNVPROC) (GLenum primitiveMode, GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, GLuint count); +typedef void (APIENTRYP PFNGLDRAWCOMMANDSADDRESSNVPROC) (GLenum primitiveMode, const GLuint64 *indirects, const GLsizei *sizes, GLuint count); +typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESNVPROC) (GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESADDRESSNVPROC) (const GLuint64 *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +typedef void (APIENTRYP PFNGLCREATECOMMANDLISTSNVPROC) (GLsizei n, GLuint *lists); +typedef void (APIENTRYP PFNGLDELETECOMMANDLISTSNVPROC) (GLsizei n, const GLuint *lists); +typedef GLboolean (APIENTRYP PFNGLISCOMMANDLISTNVPROC) (GLuint list); +typedef void (APIENTRYP PFNGLLISTDRAWCOMMANDSSTATESCLIENTNVPROC) (GLuint list, GLuint segment, const void **indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +typedef void (APIENTRYP PFNGLCOMMANDLISTSEGMENTSNVPROC) (GLuint list, GLuint segments); +typedef void (APIENTRYP PFNGLCOMPILECOMMANDLISTNVPROC) (GLuint list); +typedef void (APIENTRYP PFNGLCALLCOMMANDLISTNVPROC) (GLuint list); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCreateStatesNV (GLsizei n, GLuint *states); +GLAPI void APIENTRY glDeleteStatesNV (GLsizei n, const GLuint *states); +GLAPI GLboolean APIENTRY glIsStateNV (GLuint state); +GLAPI void APIENTRY glStateCaptureNV (GLuint state, GLenum mode); +GLAPI GLuint APIENTRY glGetCommandHeaderNV (GLenum tokenID, GLuint size); +GLAPI GLushort APIENTRY glGetStageIndexNV (GLenum shadertype); +GLAPI void APIENTRY glDrawCommandsNV (GLenum primitiveMode, GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, GLuint count); +GLAPI void APIENTRY glDrawCommandsAddressNV (GLenum primitiveMode, const GLuint64 *indirects, const GLsizei *sizes, GLuint count); +GLAPI void APIENTRY glDrawCommandsStatesNV (GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +GLAPI void APIENTRY glDrawCommandsStatesAddressNV (const GLuint64 *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +GLAPI void APIENTRY glCreateCommandListsNV (GLsizei n, GLuint *lists); +GLAPI void APIENTRY glDeleteCommandListsNV (GLsizei n, const GLuint *lists); +GLAPI GLboolean APIENTRY glIsCommandListNV (GLuint list); +GLAPI void APIENTRY glListDrawCommandsStatesClientNV (GLuint list, GLuint segment, const void **indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +GLAPI void APIENTRY glCommandListSegmentsNV (GLuint list, GLuint segments); +GLAPI void APIENTRY glCompileCommandListNV (GLuint list); +GLAPI void APIENTRY glCallCommandListNV (GLuint list); +#endif +#endif /* GL_NV_command_list */ + +#ifndef GL_NV_compute_shader_derivatives +#define GL_NV_compute_shader_derivatives 1 +#endif /* GL_NV_compute_shader_derivatives */ + +#ifndef GL_NV_conditional_render +#define GL_NV_conditional_render 1 +#define GL_QUERY_WAIT_NV 0x8E13 +#define GL_QUERY_NO_WAIT_NV 0x8E14 +#define GL_QUERY_BY_REGION_WAIT_NV 0x8E15 +#define GL_QUERY_BY_REGION_NO_WAIT_NV 0x8E16 +typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode); +typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBeginConditionalRenderNV (GLuint id, GLenum mode); +GLAPI void APIENTRY glEndConditionalRenderNV (void); +#endif +#endif /* GL_NV_conditional_render */ + +#ifndef GL_NV_conservative_raster +#define GL_NV_conservative_raster 1 +#define GL_CONSERVATIVE_RASTERIZATION_NV 0x9346 +#define GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV 0x9347 +#define GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV 0x9348 +#define GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV 0x9349 +typedef void (APIENTRYP PFNGLSUBPIXELPRECISIONBIASNVPROC) (GLuint xbits, GLuint ybits); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSubpixelPrecisionBiasNV (GLuint xbits, GLuint ybits); +#endif +#endif /* GL_NV_conservative_raster */ + +#ifndef GL_NV_conservative_raster_dilate +#define GL_NV_conservative_raster_dilate 1 +#define GL_CONSERVATIVE_RASTER_DILATE_NV 0x9379 +#define GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV 0x937A +#define GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV 0x937B +typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERFNVPROC) (GLenum pname, GLfloat value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glConservativeRasterParameterfNV (GLenum pname, GLfloat value); +#endif +#endif /* GL_NV_conservative_raster_dilate */ + +#ifndef GL_NV_conservative_raster_pre_snap +#define GL_NV_conservative_raster_pre_snap 1 +#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_NV 0x9550 +#endif /* GL_NV_conservative_raster_pre_snap */ + +#ifndef GL_NV_conservative_raster_pre_snap_triangles +#define GL_NV_conservative_raster_pre_snap_triangles 1 +#define GL_CONSERVATIVE_RASTER_MODE_NV 0x954D +#define GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV 0x954E +#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV 0x954F +typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERINVPROC) (GLenum pname, GLint param); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glConservativeRasterParameteriNV (GLenum pname, GLint param); +#endif +#endif /* GL_NV_conservative_raster_pre_snap_triangles */ + +#ifndef GL_NV_conservative_raster_underestimation +#define GL_NV_conservative_raster_underestimation 1 +#endif /* GL_NV_conservative_raster_underestimation */ + +#ifndef GL_NV_depth_buffer_float +#define GL_NV_depth_buffer_float 1 +#define GL_DEPTH_COMPONENT32F_NV 0x8DAB +#define GL_DEPTH32F_STENCIL8_NV 0x8DAC +#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD +#define GL_DEPTH_BUFFER_FLOAT_MODE_NV 0x8DAF +typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar); +typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC) (GLdouble depth); +typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDepthRangedNV (GLdouble zNear, GLdouble zFar); +GLAPI void APIENTRY glClearDepthdNV (GLdouble depth); +GLAPI void APIENTRY glDepthBoundsdNV (GLdouble zmin, GLdouble zmax); +#endif +#endif /* GL_NV_depth_buffer_float */ + +#ifndef GL_NV_draw_vulkan_image +#define GL_NV_draw_vulkan_image 1 +typedef void (APIENTRY *GLVULKANPROCNV)(void); +typedef void (APIENTRYP PFNGLDRAWVKIMAGENVPROC) (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); +typedef GLVULKANPROCNV (APIENTRYP PFNGLGETVKPROCADDRNVPROC) (const GLchar *name); +typedef void (APIENTRYP PFNGLWAITVKSEMAPHORENVPROC) (GLuint64 vkSemaphore); +typedef void (APIENTRYP PFNGLSIGNALVKSEMAPHORENVPROC) (GLuint64 vkSemaphore); +typedef void (APIENTRYP PFNGLSIGNALVKFENCENVPROC) (GLuint64 vkFence); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawVkImageNV (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); +GLAPI GLVULKANPROCNV APIENTRY glGetVkProcAddrNV (const GLchar *name); +GLAPI void APIENTRY glWaitVkSemaphoreNV (GLuint64 vkSemaphore); +GLAPI void APIENTRY glSignalVkSemaphoreNV (GLuint64 vkSemaphore); +GLAPI void APIENTRY glSignalVkFenceNV (GLuint64 vkFence); +#endif +#endif /* GL_NV_draw_vulkan_image */ + +#ifndef GL_NV_fill_rectangle +#define GL_NV_fill_rectangle 1 +#define GL_FILL_RECTANGLE_NV 0x933C +#endif /* GL_NV_fill_rectangle */ + +#ifndef GL_NV_fragment_coverage_to_color +#define GL_NV_fragment_coverage_to_color 1 +#define GL_FRAGMENT_COVERAGE_TO_COLOR_NV 0x92DD +#define GL_FRAGMENT_COVERAGE_COLOR_NV 0x92DE +typedef void (APIENTRYP PFNGLFRAGMENTCOVERAGECOLORNVPROC) (GLuint color); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFragmentCoverageColorNV (GLuint color); +#endif +#endif /* GL_NV_fragment_coverage_to_color */ + +#ifndef GL_NV_fragment_shader_barycentric +#define GL_NV_fragment_shader_barycentric 1 +#endif /* GL_NV_fragment_shader_barycentric */ + +#ifndef GL_NV_fragment_shader_interlock +#define GL_NV_fragment_shader_interlock 1 +#endif /* GL_NV_fragment_shader_interlock */ + +#ifndef GL_NV_framebuffer_mixed_samples +#define GL_NV_framebuffer_mixed_samples 1 +#define GL_COVERAGE_MODULATION_TABLE_NV 0x9331 +#define GL_COLOR_SAMPLES_NV 0x8E20 +#define GL_DEPTH_SAMPLES_NV 0x932D +#define GL_STENCIL_SAMPLES_NV 0x932E +#define GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV 0x932F +#define GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV 0x9330 +#define GL_COVERAGE_MODULATION_NV 0x9332 +#define GL_COVERAGE_MODULATION_TABLE_SIZE_NV 0x9333 +typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONTABLENVPROC) (GLsizei n, const GLfloat *v); +typedef void (APIENTRYP PFNGLGETCOVERAGEMODULATIONTABLENVPROC) (GLsizei bufSize, GLfloat *v); +typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONNVPROC) (GLenum components); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCoverageModulationTableNV (GLsizei n, const GLfloat *v); +GLAPI void APIENTRY glGetCoverageModulationTableNV (GLsizei bufSize, GLfloat *v); +GLAPI void APIENTRY glCoverageModulationNV (GLenum components); +#endif +#endif /* GL_NV_framebuffer_mixed_samples */ + +#ifndef GL_NV_framebuffer_multisample_coverage +#define GL_NV_framebuffer_multisample_coverage 1 +#define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB +#define GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10 +#define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11 +#define GL_MULTISAMPLE_COVERAGE_MODES_NV 0x8E12 +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glRenderbufferStorageMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +#endif +#endif /* GL_NV_framebuffer_multisample_coverage */ + +#ifndef GL_NV_geometry_shader_passthrough +#define GL_NV_geometry_shader_passthrough 1 +#endif /* GL_NV_geometry_shader_passthrough */ + +#ifndef GL_NV_gpu_shader5 +#define GL_NV_gpu_shader5 1 +typedef khronos_int64_t GLint64EXT; +#define GL_INT64_NV 0x140E +#define GL_UNSIGNED_INT64_NV 0x140F +#define GL_INT8_NV 0x8FE0 +#define GL_INT8_VEC2_NV 0x8FE1 +#define GL_INT8_VEC3_NV 0x8FE2 +#define GL_INT8_VEC4_NV 0x8FE3 +#define GL_INT16_NV 0x8FE4 +#define GL_INT16_VEC2_NV 0x8FE5 +#define GL_INT16_VEC3_NV 0x8FE6 +#define GL_INT16_VEC4_NV 0x8FE7 +#define GL_INT64_VEC2_NV 0x8FE9 +#define GL_INT64_VEC3_NV 0x8FEA +#define GL_INT64_VEC4_NV 0x8FEB +#define GL_UNSIGNED_INT8_NV 0x8FEC +#define GL_UNSIGNED_INT8_VEC2_NV 0x8FED +#define GL_UNSIGNED_INT8_VEC3_NV 0x8FEE +#define GL_UNSIGNED_INT8_VEC4_NV 0x8FEF +#define GL_UNSIGNED_INT16_NV 0x8FF0 +#define GL_UNSIGNED_INT16_VEC2_NV 0x8FF1 +#define GL_UNSIGNED_INT16_VEC3_NV 0x8FF2 +#define GL_UNSIGNED_INT16_VEC4_NV 0x8FF3 +#define GL_UNSIGNED_INT64_VEC2_NV 0x8FF5 +#define GL_UNSIGNED_INT64_VEC3_NV 0x8FF6 +#define GL_UNSIGNED_INT64_VEC4_NV 0x8FF7 +#define GL_FLOAT16_NV 0x8FF8 +#define GL_FLOAT16_VEC2_NV 0x8FF9 +#define GL_FLOAT16_VEC3_NV 0x8FFA +#define GL_FLOAT16_VEC4_NV 0x8FFB +typedef void (APIENTRYP PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x); +typedef void (APIENTRYP PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y); +typedef void (APIENTRYP PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); +typedef void (APIENTRYP PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +typedef void (APIENTRYP PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x); +typedef void (APIENTRYP PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y); +typedef void (APIENTRYP PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +typedef void (APIENTRYP PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +typedef void (APIENTRYP PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glUniform1i64NV (GLint location, GLint64EXT x); +GLAPI void APIENTRY glUniform2i64NV (GLint location, GLint64EXT x, GLint64EXT y); +GLAPI void APIENTRY glUniform3i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); +GLAPI void APIENTRY glUniform4i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +GLAPI void APIENTRY glUniform1i64vNV (GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glUniform2i64vNV (GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glUniform3i64vNV (GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glUniform4i64vNV (GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glUniform1ui64NV (GLint location, GLuint64EXT x); +GLAPI void APIENTRY glUniform2ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y); +GLAPI void APIENTRY glUniform3ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +GLAPI void APIENTRY glUniform4ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +GLAPI void APIENTRY glUniform1ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glUniform2ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glUniform3ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glUniform4ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glGetUniformi64vNV (GLuint program, GLint location, GLint64EXT *params); +GLAPI void APIENTRY glProgramUniform1i64NV (GLuint program, GLint location, GLint64EXT x); +GLAPI void APIENTRY glProgramUniform2i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y); +GLAPI void APIENTRY glProgramUniform3i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); +GLAPI void APIENTRY glProgramUniform4i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +GLAPI void APIENTRY glProgramUniform1i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glProgramUniform2i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glProgramUniform3i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glProgramUniform4i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glProgramUniform1ui64NV (GLuint program, GLint location, GLuint64EXT x); +GLAPI void APIENTRY glProgramUniform2ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); +GLAPI void APIENTRY glProgramUniform3ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +GLAPI void APIENTRY glProgramUniform4ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +GLAPI void APIENTRY glProgramUniform1ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glProgramUniform2ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glProgramUniform3ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glProgramUniform4ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +#endif +#endif /* GL_NV_gpu_shader5 */ + +#ifndef GL_NV_internalformat_sample_query +#define GL_NV_internalformat_sample_query 1 +#define GL_MULTISAMPLES_NV 0x9371 +#define GL_SUPERSAMPLE_SCALE_X_NV 0x9372 +#define GL_SUPERSAMPLE_SCALE_Y_NV 0x9373 +#define GL_CONFORMANT_NV 0x9374 +typedef void (APIENTRYP PFNGLGETINTERNALFORMATSAMPLEIVNVPROC) (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei count, GLint *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetInternalformatSampleivNV (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei count, GLint *params); +#endif +#endif /* GL_NV_internalformat_sample_query */ + +#ifndef GL_NV_memory_attachment +#define GL_NV_memory_attachment 1 +#define GL_ATTACHED_MEMORY_OBJECT_NV 0x95A4 +#define GL_ATTACHED_MEMORY_OFFSET_NV 0x95A5 +#define GL_MEMORY_ATTACHABLE_ALIGNMENT_NV 0x95A6 +#define GL_MEMORY_ATTACHABLE_SIZE_NV 0x95A7 +#define GL_MEMORY_ATTACHABLE_NV 0x95A8 +#define GL_DETACHED_MEMORY_INCARNATION_NV 0x95A9 +#define GL_DETACHED_TEXTURES_NV 0x95AA +#define GL_DETACHED_BUFFERS_NV 0x95AB +#define GL_MAX_DETACHED_TEXTURES_NV 0x95AC +#define GL_MAX_DETACHED_BUFFERS_NV 0x95AD +typedef void (APIENTRYP PFNGLGETMEMORYOBJECTDETACHEDRESOURCESUIVNVPROC) (GLuint memory, GLenum pname, GLint first, GLsizei count, GLuint *params); +typedef void (APIENTRYP PFNGLRESETMEMORYOBJECTPARAMETERNVPROC) (GLuint memory, GLenum pname); +typedef void (APIENTRYP PFNGLTEXATTACHMEMORYNVPROC) (GLenum target, GLuint memory, GLuint64 offset); +typedef void (APIENTRYP PFNGLBUFFERATTACHMEMORYNVPROC) (GLenum target, GLuint memory, GLuint64 offset); +typedef void (APIENTRYP PFNGLTEXTUREATTACHMEMORYNVPROC) (GLuint texture, GLuint memory, GLuint64 offset); +typedef void (APIENTRYP PFNGLNAMEDBUFFERATTACHMEMORYNVPROC) (GLuint buffer, GLuint memory, GLuint64 offset); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetMemoryObjectDetachedResourcesuivNV (GLuint memory, GLenum pname, GLint first, GLsizei count, GLuint *params); +GLAPI void APIENTRY glResetMemoryObjectParameterNV (GLuint memory, GLenum pname); +GLAPI void APIENTRY glTexAttachMemoryNV (GLenum target, GLuint memory, GLuint64 offset); +GLAPI void APIENTRY glBufferAttachMemoryNV (GLenum target, GLuint memory, GLuint64 offset); +GLAPI void APIENTRY glTextureAttachMemoryNV (GLuint texture, GLuint memory, GLuint64 offset); +GLAPI void APIENTRY glNamedBufferAttachMemoryNV (GLuint buffer, GLuint memory, GLuint64 offset); +#endif +#endif /* GL_NV_memory_attachment */ + +#ifndef GL_NV_memory_object_sparse +#define GL_NV_memory_object_sparse 1 +typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTMEMNVPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); +typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTMEMNVPROC) (GLenum target, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); +typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTMEMNVPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); +typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTMEMNVPROC) (GLuint texture, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBufferPageCommitmentMemNV (GLenum target, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); +GLAPI void APIENTRY glTexPageCommitmentMemNV (GLenum target, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); +GLAPI void APIENTRY glNamedBufferPageCommitmentMemNV (GLuint buffer, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); +GLAPI void APIENTRY glTexturePageCommitmentMemNV (GLuint texture, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); +#endif +#endif /* GL_NV_memory_object_sparse */ + +#ifndef GL_NV_mesh_shader +#define GL_NV_mesh_shader 1 +#define GL_MESH_SHADER_NV 0x9559 +#define GL_TASK_SHADER_NV 0x955A +#define GL_MAX_MESH_UNIFORM_BLOCKS_NV 0x8E60 +#define GL_MAX_MESH_TEXTURE_IMAGE_UNITS_NV 0x8E61 +#define GL_MAX_MESH_IMAGE_UNIFORMS_NV 0x8E62 +#define GL_MAX_MESH_UNIFORM_COMPONENTS_NV 0x8E63 +#define GL_MAX_MESH_ATOMIC_COUNTER_BUFFERS_NV 0x8E64 +#define GL_MAX_MESH_ATOMIC_COUNTERS_NV 0x8E65 +#define GL_MAX_MESH_SHADER_STORAGE_BLOCKS_NV 0x8E66 +#define GL_MAX_COMBINED_MESH_UNIFORM_COMPONENTS_NV 0x8E67 +#define GL_MAX_TASK_UNIFORM_BLOCKS_NV 0x8E68 +#define GL_MAX_TASK_TEXTURE_IMAGE_UNITS_NV 0x8E69 +#define GL_MAX_TASK_IMAGE_UNIFORMS_NV 0x8E6A +#define GL_MAX_TASK_UNIFORM_COMPONENTS_NV 0x8E6B +#define GL_MAX_TASK_ATOMIC_COUNTER_BUFFERS_NV 0x8E6C +#define GL_MAX_TASK_ATOMIC_COUNTERS_NV 0x8E6D +#define GL_MAX_TASK_SHADER_STORAGE_BLOCKS_NV 0x8E6E +#define GL_MAX_COMBINED_TASK_UNIFORM_COMPONENTS_NV 0x8E6F +#define GL_MAX_MESH_WORK_GROUP_INVOCATIONS_NV 0x95A2 +#define GL_MAX_TASK_WORK_GROUP_INVOCATIONS_NV 0x95A3 +#define GL_MAX_MESH_TOTAL_MEMORY_SIZE_NV 0x9536 +#define GL_MAX_TASK_TOTAL_MEMORY_SIZE_NV 0x9537 +#define GL_MAX_MESH_OUTPUT_VERTICES_NV 0x9538 +#define GL_MAX_MESH_OUTPUT_PRIMITIVES_NV 0x9539 +#define GL_MAX_TASK_OUTPUT_COUNT_NV 0x953A +#define GL_MAX_DRAW_MESH_TASKS_COUNT_NV 0x953D +#define GL_MAX_MESH_VIEWS_NV 0x9557 +#define GL_MESH_OUTPUT_PER_VERTEX_GRANULARITY_NV 0x92DF +#define GL_MESH_OUTPUT_PER_PRIMITIVE_GRANULARITY_NV 0x9543 +#define GL_MAX_MESH_WORK_GROUP_SIZE_NV 0x953B +#define GL_MAX_TASK_WORK_GROUP_SIZE_NV 0x953C +#define GL_MESH_WORK_GROUP_SIZE_NV 0x953E +#define GL_TASK_WORK_GROUP_SIZE_NV 0x953F +#define GL_MESH_VERTICES_OUT_NV 0x9579 +#define GL_MESH_PRIMITIVES_OUT_NV 0x957A +#define GL_MESH_OUTPUT_TYPE_NV 0x957B +#define GL_UNIFORM_BLOCK_REFERENCED_BY_MESH_SHADER_NV 0x959C +#define GL_UNIFORM_BLOCK_REFERENCED_BY_TASK_SHADER_NV 0x959D +#define GL_REFERENCED_BY_MESH_SHADER_NV 0x95A0 +#define GL_REFERENCED_BY_TASK_SHADER_NV 0x95A1 +#define GL_MESH_SHADER_BIT_NV 0x00000040 +#define GL_TASK_SHADER_BIT_NV 0x00000080 +#define GL_MESH_SUBROUTINE_NV 0x957C +#define GL_TASK_SUBROUTINE_NV 0x957D +#define GL_MESH_SUBROUTINE_UNIFORM_NV 0x957E +#define GL_TASK_SUBROUTINE_UNIFORM_NV 0x957F +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_MESH_SHADER_NV 0x959E +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TASK_SHADER_NV 0x959F +typedef void (APIENTRYP PFNGLDRAWMESHTASKSNVPROC) (GLuint first, GLuint count); +typedef void (APIENTRYP PFNGLDRAWMESHTASKSINDIRECTNVPROC) (GLintptr indirect); +typedef void (APIENTRYP PFNGLMULTIDRAWMESHTASKSINDIRECTNVPROC) (GLintptr indirect, GLsizei drawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLMULTIDRAWMESHTASKSINDIRECTCOUNTNVPROC) (GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawMeshTasksNV (GLuint first, GLuint count); +GLAPI void APIENTRY glDrawMeshTasksIndirectNV (GLintptr indirect); +GLAPI void APIENTRY glMultiDrawMeshTasksIndirectNV (GLintptr indirect, GLsizei drawcount, GLsizei stride); +GLAPI void APIENTRY glMultiDrawMeshTasksIndirectCountNV (GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#endif +#endif /* GL_NV_mesh_shader */ + +#ifndef GL_NV_path_rendering +#define GL_NV_path_rendering 1 +#define GL_PATH_FORMAT_SVG_NV 0x9070 +#define GL_PATH_FORMAT_PS_NV 0x9071 +#define GL_STANDARD_FONT_NAME_NV 0x9072 +#define GL_SYSTEM_FONT_NAME_NV 0x9073 +#define GL_FILE_NAME_NV 0x9074 +#define GL_PATH_STROKE_WIDTH_NV 0x9075 +#define GL_PATH_END_CAPS_NV 0x9076 +#define GL_PATH_INITIAL_END_CAP_NV 0x9077 +#define GL_PATH_TERMINAL_END_CAP_NV 0x9078 +#define GL_PATH_JOIN_STYLE_NV 0x9079 +#define GL_PATH_MITER_LIMIT_NV 0x907A +#define GL_PATH_DASH_CAPS_NV 0x907B +#define GL_PATH_INITIAL_DASH_CAP_NV 0x907C +#define GL_PATH_TERMINAL_DASH_CAP_NV 0x907D +#define GL_PATH_DASH_OFFSET_NV 0x907E +#define GL_PATH_CLIENT_LENGTH_NV 0x907F +#define GL_PATH_FILL_MODE_NV 0x9080 +#define GL_PATH_FILL_MASK_NV 0x9081 +#define GL_PATH_FILL_COVER_MODE_NV 0x9082 +#define GL_PATH_STROKE_COVER_MODE_NV 0x9083 +#define GL_PATH_STROKE_MASK_NV 0x9084 +#define GL_COUNT_UP_NV 0x9088 +#define GL_COUNT_DOWN_NV 0x9089 +#define GL_PATH_OBJECT_BOUNDING_BOX_NV 0x908A +#define GL_CONVEX_HULL_NV 0x908B +#define GL_BOUNDING_BOX_NV 0x908D +#define GL_TRANSLATE_X_NV 0x908E +#define GL_TRANSLATE_Y_NV 0x908F +#define GL_TRANSLATE_2D_NV 0x9090 +#define GL_TRANSLATE_3D_NV 0x9091 +#define GL_AFFINE_2D_NV 0x9092 +#define GL_AFFINE_3D_NV 0x9094 +#define GL_TRANSPOSE_AFFINE_2D_NV 0x9096 +#define GL_TRANSPOSE_AFFINE_3D_NV 0x9098 +#define GL_UTF8_NV 0x909A +#define GL_UTF16_NV 0x909B +#define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C +#define GL_PATH_COMMAND_COUNT_NV 0x909D +#define GL_PATH_COORD_COUNT_NV 0x909E +#define GL_PATH_DASH_ARRAY_COUNT_NV 0x909F +#define GL_PATH_COMPUTED_LENGTH_NV 0x90A0 +#define GL_PATH_FILL_BOUNDING_BOX_NV 0x90A1 +#define GL_PATH_STROKE_BOUNDING_BOX_NV 0x90A2 +#define GL_SQUARE_NV 0x90A3 +#define GL_ROUND_NV 0x90A4 +#define GL_TRIANGULAR_NV 0x90A5 +#define GL_BEVEL_NV 0x90A6 +#define GL_MITER_REVERT_NV 0x90A7 +#define GL_MITER_TRUNCATE_NV 0x90A8 +#define GL_SKIP_MISSING_GLYPH_NV 0x90A9 +#define GL_USE_MISSING_GLYPH_NV 0x90AA +#define GL_PATH_ERROR_POSITION_NV 0x90AB +#define GL_ACCUM_ADJACENT_PAIRS_NV 0x90AD +#define GL_ADJACENT_PAIRS_NV 0x90AE +#define GL_FIRST_TO_REST_NV 0x90AF +#define GL_PATH_GEN_MODE_NV 0x90B0 +#define GL_PATH_GEN_COEFF_NV 0x90B1 +#define GL_PATH_GEN_COMPONENTS_NV 0x90B3 +#define GL_PATH_STENCIL_FUNC_NV 0x90B7 +#define GL_PATH_STENCIL_REF_NV 0x90B8 +#define GL_PATH_STENCIL_VALUE_MASK_NV 0x90B9 +#define GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD +#define GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE +#define GL_PATH_COVER_DEPTH_FUNC_NV 0x90BF +#define GL_PATH_DASH_OFFSET_RESET_NV 0x90B4 +#define GL_MOVE_TO_RESETS_NV 0x90B5 +#define GL_MOVE_TO_CONTINUES_NV 0x90B6 +#define GL_CLOSE_PATH_NV 0x00 +#define GL_MOVE_TO_NV 0x02 +#define GL_RELATIVE_MOVE_TO_NV 0x03 +#define GL_LINE_TO_NV 0x04 +#define GL_RELATIVE_LINE_TO_NV 0x05 +#define GL_HORIZONTAL_LINE_TO_NV 0x06 +#define GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07 +#define GL_VERTICAL_LINE_TO_NV 0x08 +#define GL_RELATIVE_VERTICAL_LINE_TO_NV 0x09 +#define GL_QUADRATIC_CURVE_TO_NV 0x0A +#define GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B +#define GL_CUBIC_CURVE_TO_NV 0x0C +#define GL_RELATIVE_CUBIC_CURVE_TO_NV 0x0D +#define GL_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0E +#define GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F +#define GL_SMOOTH_CUBIC_CURVE_TO_NV 0x10 +#define GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11 +#define GL_SMALL_CCW_ARC_TO_NV 0x12 +#define GL_RELATIVE_SMALL_CCW_ARC_TO_NV 0x13 +#define GL_SMALL_CW_ARC_TO_NV 0x14 +#define GL_RELATIVE_SMALL_CW_ARC_TO_NV 0x15 +#define GL_LARGE_CCW_ARC_TO_NV 0x16 +#define GL_RELATIVE_LARGE_CCW_ARC_TO_NV 0x17 +#define GL_LARGE_CW_ARC_TO_NV 0x18 +#define GL_RELATIVE_LARGE_CW_ARC_TO_NV 0x19 +#define GL_RESTART_PATH_NV 0xF0 +#define GL_DUP_FIRST_CUBIC_CURVE_TO_NV 0xF2 +#define GL_DUP_LAST_CUBIC_CURVE_TO_NV 0xF4 +#define GL_RECT_NV 0xF6 +#define GL_CIRCULAR_CCW_ARC_TO_NV 0xF8 +#define GL_CIRCULAR_CW_ARC_TO_NV 0xFA +#define GL_CIRCULAR_TANGENT_ARC_TO_NV 0xFC +#define GL_ARC_TO_NV 0xFE +#define GL_RELATIVE_ARC_TO_NV 0xFF +#define GL_BOLD_BIT_NV 0x01 +#define GL_ITALIC_BIT_NV 0x02 +#define GL_GLYPH_WIDTH_BIT_NV 0x01 +#define GL_GLYPH_HEIGHT_BIT_NV 0x02 +#define GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04 +#define GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08 +#define GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10 +#define GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20 +#define GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40 +#define GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80 +#define GL_GLYPH_HAS_KERNING_BIT_NV 0x100 +#define GL_FONT_X_MIN_BOUNDS_BIT_NV 0x00010000 +#define GL_FONT_Y_MIN_BOUNDS_BIT_NV 0x00020000 +#define GL_FONT_X_MAX_BOUNDS_BIT_NV 0x00040000 +#define GL_FONT_Y_MAX_BOUNDS_BIT_NV 0x00080000 +#define GL_FONT_UNITS_PER_EM_BIT_NV 0x00100000 +#define GL_FONT_ASCENDER_BIT_NV 0x00200000 +#define GL_FONT_DESCENDER_BIT_NV 0x00400000 +#define GL_FONT_HEIGHT_BIT_NV 0x00800000 +#define GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV 0x01000000 +#define GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000 +#define GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000 +#define GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000 +#define GL_FONT_HAS_KERNING_BIT_NV 0x10000000 +#define GL_ROUNDED_RECT_NV 0xE8 +#define GL_RELATIVE_ROUNDED_RECT_NV 0xE9 +#define GL_ROUNDED_RECT2_NV 0xEA +#define GL_RELATIVE_ROUNDED_RECT2_NV 0xEB +#define GL_ROUNDED_RECT4_NV 0xEC +#define GL_RELATIVE_ROUNDED_RECT4_NV 0xED +#define GL_ROUNDED_RECT8_NV 0xEE +#define GL_RELATIVE_ROUNDED_RECT8_NV 0xEF +#define GL_RELATIVE_RECT_NV 0xF7 +#define GL_FONT_GLYPHS_AVAILABLE_NV 0x9368 +#define GL_FONT_TARGET_UNAVAILABLE_NV 0x9369 +#define GL_FONT_UNAVAILABLE_NV 0x936A +#define GL_FONT_UNINTELLIGIBLE_NV 0x936B +#define GL_CONIC_CURVE_TO_NV 0x1A +#define GL_RELATIVE_CONIC_CURVE_TO_NV 0x1B +#define GL_FONT_NUM_GLYPH_INDICES_BIT_NV 0x20000000 +#define GL_STANDARD_FONT_FORMAT_NV 0x936C +#define GL_PATH_PROJECTION_NV 0x1701 +#define GL_PATH_MODELVIEW_NV 0x1700 +#define GL_PATH_MODELVIEW_STACK_DEPTH_NV 0x0BA3 +#define GL_PATH_MODELVIEW_MATRIX_NV 0x0BA6 +#define GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV 0x0D36 +#define GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV 0x84E3 +#define GL_PATH_PROJECTION_STACK_DEPTH_NV 0x0BA4 +#define GL_PATH_PROJECTION_MATRIX_NV 0x0BA7 +#define GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV 0x0D38 +#define GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV 0x84E4 +#define GL_FRAGMENT_INPUT_NV 0x936D +typedef GLuint (APIENTRYP PFNGLGENPATHSNVPROC) (GLsizei range); +typedef void (APIENTRYP PFNGLDELETEPATHSNVPROC) (GLuint path, GLsizei range); +typedef GLboolean (APIENTRYP PFNGLISPATHNVPROC) (GLuint path); +typedef void (APIENTRYP PFNGLPATHCOMMANDSNVPROC) (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); +typedef void (APIENTRYP PFNGLPATHCOORDSNVPROC) (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords); +typedef void (APIENTRYP PFNGLPATHSUBCOMMANDSNVPROC) (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); +typedef void (APIENTRYP PFNGLPATHSUBCOORDSNVPROC) (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords); +typedef void (APIENTRYP PFNGLPATHSTRINGNVPROC) (GLuint path, GLenum format, GLsizei length, const void *pathString); +typedef void (APIENTRYP PFNGLPATHGLYPHSNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +typedef void (APIENTRYP PFNGLPATHGLYPHRANGENVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +typedef void (APIENTRYP PFNGLWEIGHTPATHSNVPROC) (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights); +typedef void (APIENTRYP PFNGLCOPYPATHNVPROC) (GLuint resultPath, GLuint srcPath); +typedef void (APIENTRYP PFNGLINTERPOLATEPATHSNVPROC) (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight); +typedef void (APIENTRYP PFNGLTRANSFORMPATHNVPROC) (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, const GLint *value); +typedef void (APIENTRYP PFNGLPATHPARAMETERINVPROC) (GLuint path, GLenum pname, GLint value); +typedef void (APIENTRYP PFNGLPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, const GLfloat *value); +typedef void (APIENTRYP PFNGLPATHPARAMETERFNVPROC) (GLuint path, GLenum pname, GLfloat value); +typedef void (APIENTRYP PFNGLPATHDASHARRAYNVPROC) (GLuint path, GLsizei dashCount, const GLfloat *dashArray); +typedef void (APIENTRYP PFNGLPATHSTENCILFUNCNVPROC) (GLenum func, GLint ref, GLuint mask); +typedef void (APIENTRYP PFNGLPATHSTENCILDEPTHOFFSETNVPROC) (GLfloat factor, GLfloat units); +typedef void (APIENTRYP PFNGLSTENCILFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask); +typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask); +typedef void (APIENTRYP PFNGLSTENCILFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLPATHCOVERDEPTHFUNCNVPROC) (GLenum func); +typedef void (APIENTRYP PFNGLCOVERFILLPATHNVPROC) (GLuint path, GLenum coverMode); +typedef void (APIENTRYP PFNGLCOVERSTROKEPATHNVPROC) (GLuint path, GLenum coverMode); +typedef void (APIENTRYP PFNGLCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLGETPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, GLint *value); +typedef void (APIENTRYP PFNGLGETPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, GLfloat *value); +typedef void (APIENTRYP PFNGLGETPATHCOMMANDSNVPROC) (GLuint path, GLubyte *commands); +typedef void (APIENTRYP PFNGLGETPATHCOORDSNVPROC) (GLuint path, GLfloat *coords); +typedef void (APIENTRYP PFNGLGETPATHDASHARRAYNVPROC) (GLuint path, GLfloat *dashArray); +typedef void (APIENTRYP PFNGLGETPATHMETRICSNVPROC) (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics); +typedef void (APIENTRYP PFNGLGETPATHMETRICRANGENVPROC) (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics); +typedef void (APIENTRYP PFNGLGETPATHSPACINGNVPROC) (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing); +typedef GLboolean (APIENTRYP PFNGLISPOINTINFILLPATHNVPROC) (GLuint path, GLuint mask, GLfloat x, GLfloat y); +typedef GLboolean (APIENTRYP PFNGLISPOINTINSTROKEPATHNVPROC) (GLuint path, GLfloat x, GLfloat y); +typedef GLfloat (APIENTRYP PFNGLGETPATHLENGTHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments); +typedef GLboolean (APIENTRYP PFNGLPOINTALONGPATHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY); +typedef void (APIENTRYP PFNGLMATRIXLOAD3X2FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXLOAD3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXMULT3X2FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXMULT3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode); +typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask, GLenum coverMode); +typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXRANGENVPROC) (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint *baseAndCount); +typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +typedef GLenum (APIENTRYP PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +typedef void (APIENTRYP PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC) (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs); +typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEFVNVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLfloat *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLuint APIENTRY glGenPathsNV (GLsizei range); +GLAPI void APIENTRY glDeletePathsNV (GLuint path, GLsizei range); +GLAPI GLboolean APIENTRY glIsPathNV (GLuint path); +GLAPI void APIENTRY glPathCommandsNV (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); +GLAPI void APIENTRY glPathCoordsNV (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords); +GLAPI void APIENTRY glPathSubCommandsNV (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); +GLAPI void APIENTRY glPathSubCoordsNV (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords); +GLAPI void APIENTRY glPathStringNV (GLuint path, GLenum format, GLsizei length, const void *pathString); +GLAPI void APIENTRY glPathGlyphsNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +GLAPI void APIENTRY glPathGlyphRangeNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +GLAPI void APIENTRY glWeightPathsNV (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights); +GLAPI void APIENTRY glCopyPathNV (GLuint resultPath, GLuint srcPath); +GLAPI void APIENTRY glInterpolatePathsNV (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight); +GLAPI void APIENTRY glTransformPathNV (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glPathParameterivNV (GLuint path, GLenum pname, const GLint *value); +GLAPI void APIENTRY glPathParameteriNV (GLuint path, GLenum pname, GLint value); +GLAPI void APIENTRY glPathParameterfvNV (GLuint path, GLenum pname, const GLfloat *value); +GLAPI void APIENTRY glPathParameterfNV (GLuint path, GLenum pname, GLfloat value); +GLAPI void APIENTRY glPathDashArrayNV (GLuint path, GLsizei dashCount, const GLfloat *dashArray); +GLAPI void APIENTRY glPathStencilFuncNV (GLenum func, GLint ref, GLuint mask); +GLAPI void APIENTRY glPathStencilDepthOffsetNV (GLfloat factor, GLfloat units); +GLAPI void APIENTRY glStencilFillPathNV (GLuint path, GLenum fillMode, GLuint mask); +GLAPI void APIENTRY glStencilStrokePathNV (GLuint path, GLint reference, GLuint mask); +GLAPI void APIENTRY glStencilFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glStencilStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glPathCoverDepthFuncNV (GLenum func); +GLAPI void APIENTRY glCoverFillPathNV (GLuint path, GLenum coverMode); +GLAPI void APIENTRY glCoverStrokePathNV (GLuint path, GLenum coverMode); +GLAPI void APIENTRY glCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glGetPathParameterivNV (GLuint path, GLenum pname, GLint *value); +GLAPI void APIENTRY glGetPathParameterfvNV (GLuint path, GLenum pname, GLfloat *value); +GLAPI void APIENTRY glGetPathCommandsNV (GLuint path, GLubyte *commands); +GLAPI void APIENTRY glGetPathCoordsNV (GLuint path, GLfloat *coords); +GLAPI void APIENTRY glGetPathDashArrayNV (GLuint path, GLfloat *dashArray); +GLAPI void APIENTRY glGetPathMetricsNV (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics); +GLAPI void APIENTRY glGetPathMetricRangeNV (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics); +GLAPI void APIENTRY glGetPathSpacingNV (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing); +GLAPI GLboolean APIENTRY glIsPointInFillPathNV (GLuint path, GLuint mask, GLfloat x, GLfloat y); +GLAPI GLboolean APIENTRY glIsPointInStrokePathNV (GLuint path, GLfloat x, GLfloat y); +GLAPI GLfloat APIENTRY glGetPathLengthNV (GLuint path, GLsizei startSegment, GLsizei numSegments); +GLAPI GLboolean APIENTRY glPointAlongPathNV (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY); +GLAPI void APIENTRY glMatrixLoad3x2fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glMatrixLoad3x3fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glMatrixLoadTranspose3x3fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glMatrixMult3x2fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glMatrixMult3x3fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glMatrixMultTranspose3x3fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glStencilThenCoverFillPathNV (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode); +GLAPI void APIENTRY glStencilThenCoverStrokePathNV (GLuint path, GLint reference, GLuint mask, GLenum coverMode); +GLAPI void APIENTRY glStencilThenCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glStencilThenCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +GLAPI GLenum APIENTRY glPathGlyphIndexRangeNV (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint *baseAndCount); +GLAPI GLenum APIENTRY glPathGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +GLAPI GLenum APIENTRY glPathMemoryGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +GLAPI void APIENTRY glProgramPathFragmentInputGenNV (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs); +GLAPI void APIENTRY glGetProgramResourcefvNV (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLfloat *params); +#endif +#endif /* GL_NV_path_rendering */ + +#ifndef GL_NV_path_rendering_shared_edge +#define GL_NV_path_rendering_shared_edge 1 +#define GL_SHARED_EDGE_NV 0xC0 +#endif /* GL_NV_path_rendering_shared_edge */ + +#ifndef GL_NV_primitive_shading_rate +#define GL_NV_primitive_shading_rate 1 +#define GL_SHADING_RATE_IMAGE_PER_PRIMITIVE_NV 0x95B1 +#define GL_SHADING_RATE_IMAGE_PALETTE_COUNT_NV 0x95B2 +#endif /* GL_NV_primitive_shading_rate */ + +#ifndef GL_NV_representative_fragment_test +#define GL_NV_representative_fragment_test 1 +#define GL_REPRESENTATIVE_FRAGMENT_TEST_NV 0x937F +#endif /* GL_NV_representative_fragment_test */ + +#ifndef GL_NV_sample_locations +#define GL_NV_sample_locations 1 +#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV 0x933D +#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV 0x933E +#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV 0x933F +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV 0x9340 +#define GL_SAMPLE_LOCATION_NV 0x8E50 +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9341 +#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV 0x9342 +#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV 0x9343 +typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLRESOLVEDEPTHVALUESNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFramebufferSampleLocationsfvNV (GLenum target, GLuint start, GLsizei count, const GLfloat *v); +GLAPI void APIENTRY glNamedFramebufferSampleLocationsfvNV (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v); +GLAPI void APIENTRY glResolveDepthValuesNV (void); +#endif +#endif /* GL_NV_sample_locations */ + +#ifndef GL_NV_sample_mask_override_coverage +#define GL_NV_sample_mask_override_coverage 1 +#endif /* GL_NV_sample_mask_override_coverage */ + +#ifndef GL_NV_scissor_exclusive +#define GL_NV_scissor_exclusive 1 +#define GL_SCISSOR_TEST_EXCLUSIVE_NV 0x9555 +#define GL_SCISSOR_BOX_EXCLUSIVE_NV 0x9556 +typedef void (APIENTRYP PFNGLSCISSOREXCLUSIVENVPROC) (GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLSCISSOREXCLUSIVEARRAYVNVPROC) (GLuint first, GLsizei count, const GLint *v); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glScissorExclusiveNV (GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glScissorExclusiveArrayvNV (GLuint first, GLsizei count, const GLint *v); +#endif +#endif /* GL_NV_scissor_exclusive */ + +#ifndef GL_NV_shader_atomic_counters +#define GL_NV_shader_atomic_counters 1 +#endif /* GL_NV_shader_atomic_counters */ + +#ifndef GL_NV_shader_atomic_float +#define GL_NV_shader_atomic_float 1 +#endif /* GL_NV_shader_atomic_float */ + +#ifndef GL_NV_shader_atomic_float64 +#define GL_NV_shader_atomic_float64 1 +#endif /* GL_NV_shader_atomic_float64 */ + +#ifndef GL_NV_shader_atomic_fp16_vector +#define GL_NV_shader_atomic_fp16_vector 1 +#endif /* GL_NV_shader_atomic_fp16_vector */ + +#ifndef GL_NV_shader_atomic_int64 +#define GL_NV_shader_atomic_int64 1 +#endif /* GL_NV_shader_atomic_int64 */ + +#ifndef GL_NV_shader_buffer_load +#define GL_NV_shader_buffer_load 1 +#define GL_BUFFER_GPU_ADDRESS_NV 0x8F1D +#define GL_GPU_ADDRESS_NV 0x8F34 +#define GL_MAX_SHADER_BUFFER_ADDRESS_NV 0x8F35 +typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access); +typedef void (APIENTRYP PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target); +typedef GLboolean (APIENTRYP PFNGLISBUFFERRESIDENTNVPROC) (GLenum target); +typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access); +typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer); +typedef GLboolean (APIENTRYP PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT *params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT *params); +typedef void (APIENTRYP PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT *result); +typedef void (APIENTRYP PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value); +typedef void (APIENTRYP PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMakeBufferResidentNV (GLenum target, GLenum access); +GLAPI void APIENTRY glMakeBufferNonResidentNV (GLenum target); +GLAPI GLboolean APIENTRY glIsBufferResidentNV (GLenum target); +GLAPI void APIENTRY glMakeNamedBufferResidentNV (GLuint buffer, GLenum access); +GLAPI void APIENTRY glMakeNamedBufferNonResidentNV (GLuint buffer); +GLAPI GLboolean APIENTRY glIsNamedBufferResidentNV (GLuint buffer); +GLAPI void APIENTRY glGetBufferParameterui64vNV (GLenum target, GLenum pname, GLuint64EXT *params); +GLAPI void APIENTRY glGetNamedBufferParameterui64vNV (GLuint buffer, GLenum pname, GLuint64EXT *params); +GLAPI void APIENTRY glGetIntegerui64vNV (GLenum value, GLuint64EXT *result); +GLAPI void APIENTRY glUniformui64NV (GLint location, GLuint64EXT value); +GLAPI void APIENTRY glUniformui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glGetUniformui64vNV (GLuint program, GLint location, GLuint64EXT *params); +GLAPI void APIENTRY glProgramUniformui64NV (GLuint program, GLint location, GLuint64EXT value); +GLAPI void APIENTRY glProgramUniformui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +#endif +#endif /* GL_NV_shader_buffer_load */ + +#ifndef GL_NV_shader_buffer_store +#define GL_NV_shader_buffer_store 1 +#define GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV 0x00000010 +#endif /* GL_NV_shader_buffer_store */ + +#ifndef GL_NV_shader_subgroup_partitioned +#define GL_NV_shader_subgroup_partitioned 1 +#define GL_SUBGROUP_FEATURE_PARTITIONED_BIT_NV 0x00000100 +#endif /* GL_NV_shader_subgroup_partitioned */ + +#ifndef GL_NV_shader_texture_footprint +#define GL_NV_shader_texture_footprint 1 +#endif /* GL_NV_shader_texture_footprint */ + +#ifndef GL_NV_shader_thread_group +#define GL_NV_shader_thread_group 1 +#define GL_WARP_SIZE_NV 0x9339 +#define GL_WARPS_PER_SM_NV 0x933A +#define GL_SM_COUNT_NV 0x933B +#endif /* GL_NV_shader_thread_group */ + +#ifndef GL_NV_shader_thread_shuffle +#define GL_NV_shader_thread_shuffle 1 +#endif /* GL_NV_shader_thread_shuffle */ + +#ifndef GL_NV_shading_rate_image +#define GL_NV_shading_rate_image 1 +#define GL_SHADING_RATE_IMAGE_NV 0x9563 +#define GL_SHADING_RATE_NO_INVOCATIONS_NV 0x9564 +#define GL_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV 0x9565 +#define GL_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV 0x9566 +#define GL_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV 0x9567 +#define GL_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV 0x9568 +#define GL_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV 0x9569 +#define GL_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV 0x956A +#define GL_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV 0x956B +#define GL_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV 0x956C +#define GL_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV 0x956D +#define GL_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV 0x956E +#define GL_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV 0x956F +#define GL_SHADING_RATE_IMAGE_BINDING_NV 0x955B +#define GL_SHADING_RATE_IMAGE_TEXEL_WIDTH_NV 0x955C +#define GL_SHADING_RATE_IMAGE_TEXEL_HEIGHT_NV 0x955D +#define GL_SHADING_RATE_IMAGE_PALETTE_SIZE_NV 0x955E +#define GL_MAX_COARSE_FRAGMENT_SAMPLES_NV 0x955F +#define GL_SHADING_RATE_SAMPLE_ORDER_DEFAULT_NV 0x95AE +#define GL_SHADING_RATE_SAMPLE_ORDER_PIXEL_MAJOR_NV 0x95AF +#define GL_SHADING_RATE_SAMPLE_ORDER_SAMPLE_MAJOR_NV 0x95B0 +typedef void (APIENTRYP PFNGLBINDSHADINGRATEIMAGENVPROC) (GLuint texture); +typedef void (APIENTRYP PFNGLGETSHADINGRATEIMAGEPALETTENVPROC) (GLuint viewport, GLuint entry, GLenum *rate); +typedef void (APIENTRYP PFNGLGETSHADINGRATESAMPLELOCATIONIVNVPROC) (GLenum rate, GLuint samples, GLuint index, GLint *location); +typedef void (APIENTRYP PFNGLSHADINGRATEIMAGEBARRIERNVPROC) (GLboolean synchronize); +typedef void (APIENTRYP PFNGLSHADINGRATEIMAGEPALETTENVPROC) (GLuint viewport, GLuint first, GLsizei count, const GLenum *rates); +typedef void (APIENTRYP PFNGLSHADINGRATESAMPLEORDERNVPROC) (GLenum order); +typedef void (APIENTRYP PFNGLSHADINGRATESAMPLEORDERCUSTOMNVPROC) (GLenum rate, GLuint samples, const GLint *locations); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindShadingRateImageNV (GLuint texture); +GLAPI void APIENTRY glGetShadingRateImagePaletteNV (GLuint viewport, GLuint entry, GLenum *rate); +GLAPI void APIENTRY glGetShadingRateSampleLocationivNV (GLenum rate, GLuint samples, GLuint index, GLint *location); +GLAPI void APIENTRY glShadingRateImageBarrierNV (GLboolean synchronize); +GLAPI void APIENTRY glShadingRateImagePaletteNV (GLuint viewport, GLuint first, GLsizei count, const GLenum *rates); +GLAPI void APIENTRY glShadingRateSampleOrderNV (GLenum order); +GLAPI void APIENTRY glShadingRateSampleOrderCustomNV (GLenum rate, GLuint samples, const GLint *locations); +#endif +#endif /* GL_NV_shading_rate_image */ + +#ifndef GL_NV_stereo_view_rendering +#define GL_NV_stereo_view_rendering 1 +#endif /* GL_NV_stereo_view_rendering */ + +#ifndef GL_NV_texture_barrier +#define GL_NV_texture_barrier 1 +typedef void (APIENTRYP PFNGLTEXTUREBARRIERNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTextureBarrierNV (void); +#endif +#endif /* GL_NV_texture_barrier */ + +#ifndef GL_NV_texture_rectangle_compressed +#define GL_NV_texture_rectangle_compressed 1 +#endif /* GL_NV_texture_rectangle_compressed */ + +#ifndef GL_NV_uniform_buffer_std430_layout +#define GL_NV_uniform_buffer_std430_layout 1 +#endif /* GL_NV_uniform_buffer_std430_layout */ + +#ifndef GL_NV_uniform_buffer_unified_memory +#define GL_NV_uniform_buffer_unified_memory 1 +#define GL_UNIFORM_BUFFER_UNIFIED_NV 0x936E +#define GL_UNIFORM_BUFFER_ADDRESS_NV 0x936F +#define GL_UNIFORM_BUFFER_LENGTH_NV 0x9370 +#endif /* GL_NV_uniform_buffer_unified_memory */ + +#ifndef GL_NV_vertex_attrib_integer_64bit +#define GL_NV_vertex_attrib_integer_64bit 1 +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64NVPROC) (GLuint index, GLint64EXT x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64VNVPROC) (GLuint index, const GLint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64VNVPROC) (GLuint index, const GLint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64VNVPROC) (GLuint index, const GLint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64VNVPROC) (GLuint index, const GLint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64NVPROC) (GLuint index, GLuint64EXT x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VNVPROC) (GLuint index, const GLuint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64VNVPROC) (GLuint index, const GLuint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64VNVPROC) (GLuint index, const GLuint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64VNVPROC) (GLuint index, const GLuint64EXT *v); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLI64VNVPROC) (GLuint index, GLenum pname, GLint64EXT *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VNVPROC) (GLuint index, GLenum pname, GLuint64EXT *params); +typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexAttribL1i64NV (GLuint index, GLint64EXT x); +GLAPI void APIENTRY glVertexAttribL2i64NV (GLuint index, GLint64EXT x, GLint64EXT y); +GLAPI void APIENTRY glVertexAttribL3i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); +GLAPI void APIENTRY glVertexAttribL4i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +GLAPI void APIENTRY glVertexAttribL1i64vNV (GLuint index, const GLint64EXT *v); +GLAPI void APIENTRY glVertexAttribL2i64vNV (GLuint index, const GLint64EXT *v); +GLAPI void APIENTRY glVertexAttribL3i64vNV (GLuint index, const GLint64EXT *v); +GLAPI void APIENTRY glVertexAttribL4i64vNV (GLuint index, const GLint64EXT *v); +GLAPI void APIENTRY glVertexAttribL1ui64NV (GLuint index, GLuint64EXT x); +GLAPI void APIENTRY glVertexAttribL2ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y); +GLAPI void APIENTRY glVertexAttribL3ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +GLAPI void APIENTRY glVertexAttribL4ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +GLAPI void APIENTRY glVertexAttribL1ui64vNV (GLuint index, const GLuint64EXT *v); +GLAPI void APIENTRY glVertexAttribL2ui64vNV (GLuint index, const GLuint64EXT *v); +GLAPI void APIENTRY glVertexAttribL3ui64vNV (GLuint index, const GLuint64EXT *v); +GLAPI void APIENTRY glVertexAttribL4ui64vNV (GLuint index, const GLuint64EXT *v); +GLAPI void APIENTRY glGetVertexAttribLi64vNV (GLuint index, GLenum pname, GLint64EXT *params); +GLAPI void APIENTRY glGetVertexAttribLui64vNV (GLuint index, GLenum pname, GLuint64EXT *params); +GLAPI void APIENTRY glVertexAttribLFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride); +#endif +#endif /* GL_NV_vertex_attrib_integer_64bit */ + +#ifndef GL_NV_vertex_buffer_unified_memory +#define GL_NV_vertex_buffer_unified_memory 1 +#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E +#define GL_ELEMENT_ARRAY_UNIFIED_NV 0x8F1F +#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20 +#define GL_VERTEX_ARRAY_ADDRESS_NV 0x8F21 +#define GL_NORMAL_ARRAY_ADDRESS_NV 0x8F22 +#define GL_COLOR_ARRAY_ADDRESS_NV 0x8F23 +#define GL_INDEX_ARRAY_ADDRESS_NV 0x8F24 +#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25 +#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV 0x8F26 +#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27 +#define GL_FOG_COORD_ARRAY_ADDRESS_NV 0x8F28 +#define GL_ELEMENT_ARRAY_ADDRESS_NV 0x8F29 +#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV 0x8F2A +#define GL_VERTEX_ARRAY_LENGTH_NV 0x8F2B +#define GL_NORMAL_ARRAY_LENGTH_NV 0x8F2C +#define GL_COLOR_ARRAY_LENGTH_NV 0x8F2D +#define GL_INDEX_ARRAY_LENGTH_NV 0x8F2E +#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV 0x8F2F +#define GL_EDGE_FLAG_ARRAY_LENGTH_NV 0x8F30 +#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31 +#define GL_FOG_COORD_ARRAY_LENGTH_NV 0x8F32 +#define GL_ELEMENT_ARRAY_LENGTH_NV 0x8F33 +#define GL_DRAW_INDIRECT_UNIFIED_NV 0x8F40 +#define GL_DRAW_INDIRECT_ADDRESS_NV 0x8F41 +#define GL_DRAW_INDIRECT_LENGTH_NV 0x8F42 +typedef void (APIENTRYP PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); +typedef void (APIENTRYP PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride); +typedef void (APIENTRYP PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); +typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBufferAddressRangeNV (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); +GLAPI void APIENTRY glVertexFormatNV (GLint size, GLenum type, GLsizei stride); +GLAPI void APIENTRY glNormalFormatNV (GLenum type, GLsizei stride); +GLAPI void APIENTRY glColorFormatNV (GLint size, GLenum type, GLsizei stride); +GLAPI void APIENTRY glIndexFormatNV (GLenum type, GLsizei stride); +GLAPI void APIENTRY glTexCoordFormatNV (GLint size, GLenum type, GLsizei stride); +GLAPI void APIENTRY glEdgeFlagFormatNV (GLsizei stride); +GLAPI void APIENTRY glSecondaryColorFormatNV (GLint size, GLenum type, GLsizei stride); +GLAPI void APIENTRY glFogCoordFormatNV (GLenum type, GLsizei stride); +GLAPI void APIENTRY glVertexAttribFormatNV (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); +GLAPI void APIENTRY glVertexAttribIFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride); +GLAPI void APIENTRY glGetIntegerui64i_vNV (GLenum value, GLuint index, GLuint64EXT *result); +#endif +#endif /* GL_NV_vertex_buffer_unified_memory */ + +#ifndef GL_NV_viewport_array2 +#define GL_NV_viewport_array2 1 +#endif /* GL_NV_viewport_array2 */ + +#ifndef GL_NV_viewport_swizzle +#define GL_NV_viewport_swizzle 1 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV 0x9350 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV 0x9351 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV 0x9352 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV 0x9353 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV 0x9354 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV 0x9355 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV 0x9356 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV 0x9357 +#define GL_VIEWPORT_SWIZZLE_X_NV 0x9358 +#define GL_VIEWPORT_SWIZZLE_Y_NV 0x9359 +#define GL_VIEWPORT_SWIZZLE_Z_NV 0x935A +#define GL_VIEWPORT_SWIZZLE_W_NV 0x935B +typedef void (APIENTRYP PFNGLVIEWPORTSWIZZLENVPROC) (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glViewportSwizzleNV (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew); +#endif +#endif /* GL_NV_viewport_swizzle */ + +#ifndef GL_OVR_multiview +#define GL_OVR_multiview 1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR 0x9630 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR 0x9632 +#define GL_MAX_VIEWS_OVR 0x9631 +#define GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR 0x9633 +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFramebufferTextureMultiviewOVR (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews); +#endif +#endif /* GL_OVR_multiview */ + +#ifndef GL_OVR_multiview2 +#define GL_OVR_multiview2 1 +#endif /* GL_OVR_multiview2 */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/HexaGen.Tests/opengl/glext/KHR/khrplatform.h b/HexaGen.Tests/opengl/glext/KHR/khrplatform.h new file mode 100644 index 0000000..0164644 --- /dev/null +++ b/HexaGen.Tests/opengl/glext/KHR/khrplatform.h @@ -0,0 +1,311 @@ +#ifndef __khrplatform_h_ +#define __khrplatform_h_ + +/* +** Copyright (c) 2008-2018 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are furnished to do so, subject to +** the following conditions: +** +** The above copyright notice and this permission notice shall be included +** in all copies or substantial portions of the Materials. +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +/* Khronos platform-specific types and definitions. + * + * The master copy of khrplatform.h is maintained in the Khronos EGL + * Registry repository at https://github.com/KhronosGroup/EGL-Registry + * The last semantic modification to khrplatform.h was at commit ID: + * 67a3e0864c2d75ea5287b9f3d2eb74a745936692 + * + * Adopters may modify this file to suit their platform. Adopters are + * encouraged to submit platform specific modifications to the Khronos + * group so that they can be included in future versions of this file. + * Please submit changes by filing pull requests or issues on + * the EGL Registry repository linked above. + * + * + * See the Implementer's Guidelines for information about where this file + * should be located on your system and for more details of its use: + * http://www.khronos.org/registry/implementers_guide.pdf + * + * This file should be included as + * #include + * by Khronos client API header files that use its types and defines. + * + * The types in khrplatform.h should only be used to define API-specific types. + * + * Types defined in khrplatform.h: + * khronos_int8_t signed 8 bit + * khronos_uint8_t unsigned 8 bit + * khronos_int16_t signed 16 bit + * khronos_uint16_t unsigned 16 bit + * khronos_int32_t signed 32 bit + * khronos_uint32_t unsigned 32 bit + * khronos_int64_t signed 64 bit + * khronos_uint64_t unsigned 64 bit + * khronos_intptr_t signed same number of bits as a pointer + * khronos_uintptr_t unsigned same number of bits as a pointer + * khronos_ssize_t signed size + * khronos_usize_t unsigned size + * khronos_float_t signed 32 bit floating point + * khronos_time_ns_t unsigned 64 bit time in nanoseconds + * khronos_utime_nanoseconds_t unsigned time interval or absolute time in + * nanoseconds + * khronos_stime_nanoseconds_t signed time interval in nanoseconds + * khronos_boolean_enum_t enumerated boolean type. This should + * only be used as a base type when a client API's boolean type is + * an enum. Client APIs which use an integer or other type for + * booleans cannot use this as the base type for their boolean. + * + * Tokens defined in khrplatform.h: + * + * KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values. + * + * KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0. + * KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0. + * + * Calling convention macros defined in this file: + * KHRONOS_APICALL + * KHRONOS_APIENTRY + * KHRONOS_APIATTRIBUTES + * + * These may be used in function prototypes as: + * + * KHRONOS_APICALL void KHRONOS_APIENTRY funcname( + * int arg1, + * int arg2) KHRONOS_APIATTRIBUTES; + */ + +#if defined(__SCITECH_SNAP__) && !defined(KHRONOS_STATIC) +# define KHRONOS_STATIC 1 +#endif + +/*------------------------------------------------------------------------- + * Definition of KHRONOS_APICALL + *------------------------------------------------------------------------- + * This precedes the return type of the function in the function prototype. + */ +#if defined(KHRONOS_STATIC) + /* If the preprocessor constant KHRONOS_STATIC is defined, make the + * header compatible with static linking. */ +# define KHRONOS_APICALL +#elif defined(_WIN32) +# define KHRONOS_APICALL __declspec(dllimport) +#elif defined (__SYMBIAN32__) +# define KHRONOS_APICALL IMPORT_C +#elif defined(__ANDROID__) +# define KHRONOS_APICALL __attribute__((visibility("default"))) +#else +# define KHRONOS_APICALL +#endif + +/*------------------------------------------------------------------------- + * Definition of KHRONOS_APIENTRY + *------------------------------------------------------------------------- + * This follows the return type of the function and precedes the function + * name in the function prototype. + */ +#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__) + /* Win32 but not WinCE */ +# define KHRONOS_APIENTRY __stdcall +#else +# define KHRONOS_APIENTRY +#endif + +/*------------------------------------------------------------------------- + * Definition of KHRONOS_APIATTRIBUTES + *------------------------------------------------------------------------- + * This follows the closing parenthesis of the function prototype arguments. + */ +#if defined (__ARMCC_2__) +#define KHRONOS_APIATTRIBUTES __softfp +#else +#define KHRONOS_APIATTRIBUTES +#endif + +/*------------------------------------------------------------------------- + * basic type definitions + *-----------------------------------------------------------------------*/ +#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__) + + +/* + * Using + */ +#include +typedef int32_t khronos_int32_t; +typedef uint32_t khronos_uint32_t; +typedef int64_t khronos_int64_t; +typedef uint64_t khronos_uint64_t; +#define KHRONOS_SUPPORT_INT64 1 +#define KHRONOS_SUPPORT_FLOAT 1 +/* + * To support platform where unsigned long cannot be used interchangeably with + * inptr_t (e.g. CHERI-extended ISAs), we can use the stdint.h intptr_t. + * Ideally, we could just use (u)intptr_t everywhere, but this could result in + * ABI breakage if khronos_uintptr_t is changed from unsigned long to + * unsigned long long or similar (this results in different C++ name mangling). + * To avoid changes for existing platforms, we restrict usage of intptr_t to + * platforms where the size of a pointer is larger than the size of long. + */ +#if defined(__SIZEOF_LONG__) && defined(__SIZEOF_POINTER__) +#if __SIZEOF_POINTER__ > __SIZEOF_LONG__ +#define KHRONOS_USE_INTPTR_T +#endif +#endif + +#elif defined(__VMS ) || defined(__sgi) + +/* + * Using + */ +#include +typedef int32_t khronos_int32_t; +typedef uint32_t khronos_uint32_t; +typedef int64_t khronos_int64_t; +typedef uint64_t khronos_uint64_t; +#define KHRONOS_SUPPORT_INT64 1 +#define KHRONOS_SUPPORT_FLOAT 1 + +#elif defined(_WIN32) && !defined(__SCITECH_SNAP__) + +/* + * Win32 + */ +typedef __int32 khronos_int32_t; +typedef unsigned __int32 khronos_uint32_t; +typedef __int64 khronos_int64_t; +typedef unsigned __int64 khronos_uint64_t; +#define KHRONOS_SUPPORT_INT64 1 +#define KHRONOS_SUPPORT_FLOAT 1 + +#elif defined(__sun__) || defined(__digital__) + +/* + * Sun or Digital + */ +typedef int khronos_int32_t; +typedef unsigned int khronos_uint32_t; +#if defined(__arch64__) || defined(_LP64) +typedef long int khronos_int64_t; +typedef unsigned long int khronos_uint64_t; +#else +typedef long long int khronos_int64_t; +typedef unsigned long long int khronos_uint64_t; +#endif /* __arch64__ */ +#define KHRONOS_SUPPORT_INT64 1 +#define KHRONOS_SUPPORT_FLOAT 1 + +#elif 0 + +/* + * Hypothetical platform with no float or int64 support + */ +typedef int khronos_int32_t; +typedef unsigned int khronos_uint32_t; +#define KHRONOS_SUPPORT_INT64 0 +#define KHRONOS_SUPPORT_FLOAT 0 + +#else + +/* + * Generic fallback + */ +#include +typedef int32_t khronos_int32_t; +typedef uint32_t khronos_uint32_t; +typedef int64_t khronos_int64_t; +typedef uint64_t khronos_uint64_t; +#define KHRONOS_SUPPORT_INT64 1 +#define KHRONOS_SUPPORT_FLOAT 1 + +#endif + + +/* + * Types that are (so far) the same on all platforms + */ +typedef signed char khronos_int8_t; +typedef unsigned char khronos_uint8_t; +typedef signed short int khronos_int16_t; +typedef unsigned short int khronos_uint16_t; + +/* + * Types that differ between LLP64 and LP64 architectures - in LLP64, + * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears + * to be the only LLP64 architecture in current use. + */ +#ifdef KHRONOS_USE_INTPTR_T +typedef intptr_t khronos_intptr_t; +typedef uintptr_t khronos_uintptr_t; +#elif defined(_WIN64) +typedef signed long long int khronos_intptr_t; +typedef unsigned long long int khronos_uintptr_t; +#else +typedef signed long int khronos_intptr_t; +typedef unsigned long int khronos_uintptr_t; +#endif + +#if defined(_WIN64) +typedef signed long long int khronos_ssize_t; +typedef unsigned long long int khronos_usize_t; +#else +typedef signed long int khronos_ssize_t; +typedef unsigned long int khronos_usize_t; +#endif + +#if KHRONOS_SUPPORT_FLOAT +/* + * Float type + */ +typedef float khronos_float_t; +#endif + +#if KHRONOS_SUPPORT_INT64 +/* Time types + * + * These types can be used to represent a time interval in nanoseconds or + * an absolute Unadjusted System Time. Unadjusted System Time is the number + * of nanoseconds since some arbitrary system event (e.g. since the last + * time the system booted). The Unadjusted System Time is an unsigned + * 64 bit value that wraps back to 0 every 584 years. Time intervals + * may be either signed or unsigned. + */ +typedef khronos_uint64_t khronos_utime_nanoseconds_t; +typedef khronos_int64_t khronos_stime_nanoseconds_t; +#endif + +/* + * Dummy value used to pad enum types to 32 bits. + */ +#ifndef KHRONOS_MAX_ENUM +#define KHRONOS_MAX_ENUM 0x7FFFFFFF +#endif + +/* + * Enumerated boolean type + * + * Values other than zero should be considered to be true. Therefore + * comparisons should not be made against KHRONOS_TRUE. + */ +typedef enum { + KHRONOS_FALSE = 0, + KHRONOS_TRUE = 1, + KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM +} khronos_boolean_enum_t; + +#endif /* __khrplatform_h_ */ diff --git a/HexaGen.Tests/opengl/glext/generator.json b/HexaGen.Tests/opengl/glext/generator.json new file mode 100644 index 0000000..9787dcd --- /dev/null +++ b/HexaGen.Tests/opengl/glext/generator.json @@ -0,0 +1,46 @@ +{ + "Namespace": "Hexa.NET.OpenGL.GLExt", + "ApiName": "GLExt", + "LibName": "OpenGL32", + "GenerateSizeOfStructs": false, + "ConstantNamingConvention": "ScreamingSnakeCase", + "KnownConstantNames": { + }, + "KnownEnumValueNames": { + "": "" + }, + "KnownEnumPrefixes": { + }, + "KnownExtensionPrefixes": { + }, + "KnownExtensionNames": { + }, + "KnownStructMethods": { + }, + "IgnoredParts": [ + "bit" + ], + "PreserveCaps": [ + "" + ], + "TypeMappings": { + "GLenum": "uint", + "GLboolean": "byte", + "GLbitfield": "uint", + "GLbyte": "sbyte", + "GLshort": "short", + "GLint": "int", + "GLsizei": "int", + "GLubyte": "byte", + "GLushort": "ushort", + "GLuint": "uint", + "GLfloat": "float", + "GLclampf": "float", + "GLdouble": "double", + "GLclampd": "double", + "GLvoid": "void", + "GLUnurbs": "void", + "GLUquadric": "void", + "GLUtesselator": "void" + } +} \ No newline at end of file diff --git a/HexaGen.Tests/opengl/glext/glext.h b/HexaGen.Tests/opengl/glext/glext.h new file mode 100644 index 0000000..b2b4844 --- /dev/null +++ b/HexaGen.Tests/opengl/glext/glext.h @@ -0,0 +1,12912 @@ +#ifndef __gl_glext_h_ +#define __gl_glext_h_ 1 + +#ifdef __cplusplus +extern "C" { +#endif + + /* + ** Copyright 2013-2020 The Khronos Group Inc. + ** SPDX-License-Identifier: MIT + ** + ** This header is generated from the Khronos OpenGL / OpenGL ES XML + ** API Registry. The current version of the Registry, generator scripts + ** used to make the header, and the header can be found at + ** https://github.com/KhronosGroup/OpenGL-Registry + */ + +#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif +#include +#endif + +#ifndef APIENTRY +#define APIENTRY +#endif +#ifndef APIENTRYP +#define APIENTRYP APIENTRY * +#endif +#ifndef GLAPI +#define GLAPI extern +#endif + +#define GL_GLEXT_VERSION 20230705 + +#include "KHR/khrplatform.h" + + /* Generated C header for: + * API: gl + * Profile: compatibility + * Versions considered: .* + * Versions emitted: 1\.[2-9]|[234]\.[0-9] + * Default extensions included: gl + * Additional extensions included: _nomatch_^ + * Extensions removed: _nomatch_^ + */ + +#ifndef GL_VERSION_1_2 +#define GL_VERSION_1_2 1 +#define GL_UNSIGNED_BYTE_3_3_2 0x8032 +#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 +#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 +#define GL_UNSIGNED_INT_8_8_8_8 0x8035 +#define GL_UNSIGNED_INT_10_10_10_2 0x8036 +#define GL_TEXTURE_BINDING_3D 0x806A +#define GL_PACK_SKIP_IMAGES 0x806B +#define GL_PACK_IMAGE_HEIGHT 0x806C +#define GL_UNPACK_SKIP_IMAGES 0x806D +#define GL_UNPACK_IMAGE_HEIGHT 0x806E +#define GL_TEXTURE_3D 0x806F +#define GL_PROXY_TEXTURE_3D 0x8070 +#define GL_TEXTURE_DEPTH 0x8071 +#define GL_TEXTURE_WRAP_R 0x8072 +#define GL_MAX_3D_TEXTURE_SIZE 0x8073 +#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 +#define GL_UNSIGNED_SHORT_5_6_5 0x8363 +#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 +#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 +#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 +#define GL_BGR 0x80E0 +#define GL_BGRA 0x80E1 +#define GL_MAX_ELEMENTS_VERTICES 0x80E8 +#define GL_MAX_ELEMENTS_INDICES 0x80E9 +#define GL_CLAMP_TO_EDGE 0x812F +#define GL_TEXTURE_MIN_LOD 0x813A +#define GL_TEXTURE_MAX_LOD 0x813B +#define GL_TEXTURE_BASE_LEVEL 0x813C +#define GL_TEXTURE_MAX_LEVEL 0x813D +#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 +#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 +#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E +#define GL_RESCALE_NORMAL 0x803A +#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 +#define GL_SINGLE_COLOR 0x81F9 +#define GL_SEPARATE_SPECULAR_COLOR 0x81FA +#define GL_ALIASED_POINT_SIZE_RANGE 0x846D + typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void* indices); + typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void* indices); + GLAPI void APIENTRY glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#endif +#endif /* GL_VERSION_1_2 */ + +#ifndef GL_VERSION_1_3 +#define GL_VERSION_1_3 1 +#define GL_TEXTURE0 0x84C0 +#define GL_TEXTURE1 0x84C1 +#define GL_TEXTURE2 0x84C2 +#define GL_TEXTURE3 0x84C3 +#define GL_TEXTURE4 0x84C4 +#define GL_TEXTURE5 0x84C5 +#define GL_TEXTURE6 0x84C6 +#define GL_TEXTURE7 0x84C7 +#define GL_TEXTURE8 0x84C8 +#define GL_TEXTURE9 0x84C9 +#define GL_TEXTURE10 0x84CA +#define GL_TEXTURE11 0x84CB +#define GL_TEXTURE12 0x84CC +#define GL_TEXTURE13 0x84CD +#define GL_TEXTURE14 0x84CE +#define GL_TEXTURE15 0x84CF +#define GL_TEXTURE16 0x84D0 +#define GL_TEXTURE17 0x84D1 +#define GL_TEXTURE18 0x84D2 +#define GL_TEXTURE19 0x84D3 +#define GL_TEXTURE20 0x84D4 +#define GL_TEXTURE21 0x84D5 +#define GL_TEXTURE22 0x84D6 +#define GL_TEXTURE23 0x84D7 +#define GL_TEXTURE24 0x84D8 +#define GL_TEXTURE25 0x84D9 +#define GL_TEXTURE26 0x84DA +#define GL_TEXTURE27 0x84DB +#define GL_TEXTURE28 0x84DC +#define GL_TEXTURE29 0x84DD +#define GL_TEXTURE30 0x84DE +#define GL_TEXTURE31 0x84DF +#define GL_ACTIVE_TEXTURE 0x84E0 +#define GL_MULTISAMPLE 0x809D +#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE 0x809F +#define GL_SAMPLE_COVERAGE 0x80A0 +#define GL_SAMPLE_BUFFERS 0x80A8 +#define GL_SAMPLES 0x80A9 +#define GL_SAMPLE_COVERAGE_VALUE 0x80AA +#define GL_SAMPLE_COVERAGE_INVERT 0x80AB +#define GL_TEXTURE_CUBE_MAP 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C +#define GL_COMPRESSED_RGB 0x84ED +#define GL_COMPRESSED_RGBA 0x84EE +#define GL_TEXTURE_COMPRESSION_HINT 0x84EF +#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 +#define GL_TEXTURE_COMPRESSED 0x86A1 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 +#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 +#define GL_CLAMP_TO_BORDER 0x812D +#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 +#define GL_MAX_TEXTURE_UNITS 0x84E2 +#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3 +#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4 +#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5 +#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6 +#define GL_MULTISAMPLE_BIT 0x20000000 +#define GL_NORMAL_MAP 0x8511 +#define GL_REFLECTION_MAP 0x8512 +#define GL_COMPRESSED_ALPHA 0x84E9 +#define GL_COMPRESSED_LUMINANCE 0x84EA +#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB +#define GL_COMPRESSED_INTENSITY 0x84EC +#define GL_COMBINE 0x8570 +#define GL_COMBINE_RGB 0x8571 +#define GL_COMBINE_ALPHA 0x8572 +#define GL_SOURCE0_RGB 0x8580 +#define GL_SOURCE1_RGB 0x8581 +#define GL_SOURCE2_RGB 0x8582 +#define GL_SOURCE0_ALPHA 0x8588 +#define GL_SOURCE1_ALPHA 0x8589 +#define GL_SOURCE2_ALPHA 0x858A +#define GL_OPERAND0_RGB 0x8590 +#define GL_OPERAND1_RGB 0x8591 +#define GL_OPERAND2_RGB 0x8592 +#define GL_OPERAND0_ALPHA 0x8598 +#define GL_OPERAND1_ALPHA 0x8599 +#define GL_OPERAND2_ALPHA 0x859A +#define GL_RGB_SCALE 0x8573 +#define GL_ADD_SIGNED 0x8574 +#define GL_INTERPOLATE 0x8575 +#define GL_SUBTRACT 0x84E7 +#define GL_CONSTANT 0x8576 +#define GL_PRIMARY_COLOR 0x8577 +#define GL_PREVIOUS 0x8578 +#define GL_DOT3_RGB 0x86AE +#define GL_DOT3_RGBA 0x86AF + typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); + typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void* img); + typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort* v); + typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat* m); + typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble* m); + typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat* m); + typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble* m); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glActiveTexture(GLenum texture); + GLAPI void APIENTRY glSampleCoverage(GLfloat value, GLboolean invert); + GLAPI void APIENTRY glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glGetCompressedTexImage(GLenum target, GLint level, void* img); + GLAPI void APIENTRY glClientActiveTexture(GLenum texture); + GLAPI void APIENTRY glMultiTexCoord1d(GLenum target, GLdouble s); + GLAPI void APIENTRY glMultiTexCoord1dv(GLenum target, const GLdouble* v); + GLAPI void APIENTRY glMultiTexCoord1f(GLenum target, GLfloat s); + GLAPI void APIENTRY glMultiTexCoord1fv(GLenum target, const GLfloat* v); + GLAPI void APIENTRY glMultiTexCoord1i(GLenum target, GLint s); + GLAPI void APIENTRY glMultiTexCoord1iv(GLenum target, const GLint* v); + GLAPI void APIENTRY glMultiTexCoord1s(GLenum target, GLshort s); + GLAPI void APIENTRY glMultiTexCoord1sv(GLenum target, const GLshort* v); + GLAPI void APIENTRY glMultiTexCoord2d(GLenum target, GLdouble s, GLdouble t); + GLAPI void APIENTRY glMultiTexCoord2dv(GLenum target, const GLdouble* v); + GLAPI void APIENTRY glMultiTexCoord2f(GLenum target, GLfloat s, GLfloat t); + GLAPI void APIENTRY glMultiTexCoord2fv(GLenum target, const GLfloat* v); + GLAPI void APIENTRY glMultiTexCoord2i(GLenum target, GLint s, GLint t); + GLAPI void APIENTRY glMultiTexCoord2iv(GLenum target, const GLint* v); + GLAPI void APIENTRY glMultiTexCoord2s(GLenum target, GLshort s, GLshort t); + GLAPI void APIENTRY glMultiTexCoord2sv(GLenum target, const GLshort* v); + GLAPI void APIENTRY glMultiTexCoord3d(GLenum target, GLdouble s, GLdouble t, GLdouble r); + GLAPI void APIENTRY glMultiTexCoord3dv(GLenum target, const GLdouble* v); + GLAPI void APIENTRY glMultiTexCoord3f(GLenum target, GLfloat s, GLfloat t, GLfloat r); + GLAPI void APIENTRY glMultiTexCoord3fv(GLenum target, const GLfloat* v); + GLAPI void APIENTRY glMultiTexCoord3i(GLenum target, GLint s, GLint t, GLint r); + GLAPI void APIENTRY glMultiTexCoord3iv(GLenum target, const GLint* v); + GLAPI void APIENTRY glMultiTexCoord3s(GLenum target, GLshort s, GLshort t, GLshort r); + GLAPI void APIENTRY glMultiTexCoord3sv(GLenum target, const GLshort* v); + GLAPI void APIENTRY glMultiTexCoord4d(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); + GLAPI void APIENTRY glMultiTexCoord4dv(GLenum target, const GLdouble* v); + GLAPI void APIENTRY glMultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); + GLAPI void APIENTRY glMultiTexCoord4fv(GLenum target, const GLfloat* v); + GLAPI void APIENTRY glMultiTexCoord4i(GLenum target, GLint s, GLint t, GLint r, GLint q); + GLAPI void APIENTRY glMultiTexCoord4iv(GLenum target, const GLint* v); + GLAPI void APIENTRY glMultiTexCoord4s(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); + GLAPI void APIENTRY glMultiTexCoord4sv(GLenum target, const GLshort* v); + GLAPI void APIENTRY glLoadTransposeMatrixf(const GLfloat* m); + GLAPI void APIENTRY glLoadTransposeMatrixd(const GLdouble* m); + GLAPI void APIENTRY glMultTransposeMatrixf(const GLfloat* m); + GLAPI void APIENTRY glMultTransposeMatrixd(const GLdouble* m); +#endif +#endif /* GL_VERSION_1_3 */ + +#ifndef GL_VERSION_1_4 +#define GL_VERSION_1_4 1 +#define GL_BLEND_DST_RGB 0x80C8 +#define GL_BLEND_SRC_RGB 0x80C9 +#define GL_BLEND_DST_ALPHA 0x80CA +#define GL_BLEND_SRC_ALPHA 0x80CB +#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 +#define GL_DEPTH_COMPONENT16 0x81A5 +#define GL_DEPTH_COMPONENT24 0x81A6 +#define GL_DEPTH_COMPONENT32 0x81A7 +#define GL_MIRRORED_REPEAT 0x8370 +#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD +#define GL_TEXTURE_LOD_BIAS 0x8501 +#define GL_INCR_WRAP 0x8507 +#define GL_DECR_WRAP 0x8508 +#define GL_TEXTURE_DEPTH_SIZE 0x884A +#define GL_TEXTURE_COMPARE_MODE 0x884C +#define GL_TEXTURE_COMPARE_FUNC 0x884D +#define GL_POINT_SIZE_MIN 0x8126 +#define GL_POINT_SIZE_MAX 0x8127 +#define GL_POINT_DISTANCE_ATTENUATION 0x8129 +#define GL_GENERATE_MIPMAP 0x8191 +#define GL_GENERATE_MIPMAP_HINT 0x8192 +#define GL_FOG_COORDINATE_SOURCE 0x8450 +#define GL_FOG_COORDINATE 0x8451 +#define GL_FRAGMENT_DEPTH 0x8452 +#define GL_CURRENT_FOG_COORDINATE 0x8453 +#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454 +#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455 +#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456 +#define GL_FOG_COORDINATE_ARRAY 0x8457 +#define GL_COLOR_SUM 0x8458 +#define GL_CURRENT_SECONDARY_COLOR 0x8459 +#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A +#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B +#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C +#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D +#define GL_SECONDARY_COLOR_ARRAY 0x845E +#define GL_TEXTURE_FILTER_CONTROL 0x8500 +#define GL_DEPTH_TEXTURE_MODE 0x884B +#define GL_COMPARE_R_TO_TEXTURE 0x884E +#define GL_BLEND_COLOR 0x8005 +#define GL_BLEND_EQUATION 0x8009 +#define GL_CONSTANT_COLOR 0x8001 +#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 +#define GL_CONSTANT_ALPHA 0x8003 +#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 +#define GL_FUNC_ADD 0x8006 +#define GL_FUNC_REVERSE_SUBTRACT 0x800B +#define GL_FUNC_SUBTRACT 0x800A +#define GL_MIN 0x8007 +#define GL_MAX 0x8008 + typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); + typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount); + typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei* count, GLenum type, const void* const* indices, GLsizei drawcount); + typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord); + typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat* coord); + typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord); + typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble* coord); + typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const void* pointer); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const void* pointer); + typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y); + typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble* v); + typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y); + typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat* v); + typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y); + typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint* v); + typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y); + typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z); + typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z); + typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort* v); + typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); + typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); + GLAPI void APIENTRY glMultiDrawArrays(GLenum mode, const GLint* first, const GLsizei* count, GLsizei drawcount); + GLAPI void APIENTRY glMultiDrawElements(GLenum mode, const GLsizei* count, GLenum type, const void* const* indices, GLsizei drawcount); + GLAPI void APIENTRY glPointParameterf(GLenum pname, GLfloat param); + GLAPI void APIENTRY glPointParameterfv(GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glPointParameteri(GLenum pname, GLint param); + GLAPI void APIENTRY glPointParameteriv(GLenum pname, const GLint* params); + GLAPI void APIENTRY glFogCoordf(GLfloat coord); + GLAPI void APIENTRY glFogCoordfv(const GLfloat* coord); + GLAPI void APIENTRY glFogCoordd(GLdouble coord); + GLAPI void APIENTRY glFogCoorddv(const GLdouble* coord); + GLAPI void APIENTRY glFogCoordPointer(GLenum type, GLsizei stride, const void* pointer); + GLAPI void APIENTRY glSecondaryColor3b(GLbyte red, GLbyte green, GLbyte blue); + GLAPI void APIENTRY glSecondaryColor3bv(const GLbyte* v); + GLAPI void APIENTRY glSecondaryColor3d(GLdouble red, GLdouble green, GLdouble blue); + GLAPI void APIENTRY glSecondaryColor3dv(const GLdouble* v); + GLAPI void APIENTRY glSecondaryColor3f(GLfloat red, GLfloat green, GLfloat blue); + GLAPI void APIENTRY glSecondaryColor3fv(const GLfloat* v); + GLAPI void APIENTRY glSecondaryColor3i(GLint red, GLint green, GLint blue); + GLAPI void APIENTRY glSecondaryColor3iv(const GLint* v); + GLAPI void APIENTRY glSecondaryColor3s(GLshort red, GLshort green, GLshort blue); + GLAPI void APIENTRY glSecondaryColor3sv(const GLshort* v); + GLAPI void APIENTRY glSecondaryColor3ub(GLubyte red, GLubyte green, GLubyte blue); + GLAPI void APIENTRY glSecondaryColor3ubv(const GLubyte* v); + GLAPI void APIENTRY glSecondaryColor3ui(GLuint red, GLuint green, GLuint blue); + GLAPI void APIENTRY glSecondaryColor3uiv(const GLuint* v); + GLAPI void APIENTRY glSecondaryColor3us(GLushort red, GLushort green, GLushort blue); + GLAPI void APIENTRY glSecondaryColor3usv(const GLushort* v); + GLAPI void APIENTRY glSecondaryColorPointer(GLint size, GLenum type, GLsizei stride, const void* pointer); + GLAPI void APIENTRY glWindowPos2d(GLdouble x, GLdouble y); + GLAPI void APIENTRY glWindowPos2dv(const GLdouble* v); + GLAPI void APIENTRY glWindowPos2f(GLfloat x, GLfloat y); + GLAPI void APIENTRY glWindowPos2fv(const GLfloat* v); + GLAPI void APIENTRY glWindowPos2i(GLint x, GLint y); + GLAPI void APIENTRY glWindowPos2iv(const GLint* v); + GLAPI void APIENTRY glWindowPos2s(GLshort x, GLshort y); + GLAPI void APIENTRY glWindowPos2sv(const GLshort* v); + GLAPI void APIENTRY glWindowPos3d(GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glWindowPos3dv(const GLdouble* v); + GLAPI void APIENTRY glWindowPos3f(GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glWindowPos3fv(const GLfloat* v); + GLAPI void APIENTRY glWindowPos3i(GLint x, GLint y, GLint z); + GLAPI void APIENTRY glWindowPos3iv(const GLint* v); + GLAPI void APIENTRY glWindowPos3s(GLshort x, GLshort y, GLshort z); + GLAPI void APIENTRY glWindowPos3sv(const GLshort* v); + GLAPI void APIENTRY glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); + GLAPI void APIENTRY glBlendEquation(GLenum mode); +#endif +#endif /* GL_VERSION_1_4 */ + +#ifndef GL_VERSION_1_5 +#define GL_VERSION_1_5 1 + typedef khronos_ssize_t GLsizeiptr; + typedef khronos_intptr_t GLintptr; +#define GL_BUFFER_SIZE 0x8764 +#define GL_BUFFER_USAGE 0x8765 +#define GL_QUERY_COUNTER_BITS 0x8864 +#define GL_CURRENT_QUERY 0x8865 +#define GL_QUERY_RESULT 0x8866 +#define GL_QUERY_RESULT_AVAILABLE 0x8867 +#define GL_ARRAY_BUFFER 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER 0x8893 +#define GL_ARRAY_BUFFER_BINDING 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F +#define GL_READ_ONLY 0x88B8 +#define GL_WRITE_ONLY 0x88B9 +#define GL_READ_WRITE 0x88BA +#define GL_BUFFER_ACCESS 0x88BB +#define GL_BUFFER_MAPPED 0x88BC +#define GL_BUFFER_MAP_POINTER 0x88BD +#define GL_STREAM_DRAW 0x88E0 +#define GL_STREAM_READ 0x88E1 +#define GL_STREAM_COPY 0x88E2 +#define GL_STATIC_DRAW 0x88E4 +#define GL_STATIC_READ 0x88E5 +#define GL_STATIC_COPY 0x88E6 +#define GL_DYNAMIC_DRAW 0x88E8 +#define GL_DYNAMIC_READ 0x88E9 +#define GL_DYNAMIC_COPY 0x88EA +#define GL_SAMPLES_PASSED 0x8914 +#define GL_SRC1_ALPHA 0x8589 +#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 +#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 +#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 +#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 +#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A +#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B +#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C +#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D +#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E +#define GL_FOG_COORD_SRC 0x8450 +#define GL_FOG_COORD 0x8451 +#define GL_CURRENT_FOG_COORD 0x8453 +#define GL_FOG_COORD_ARRAY_TYPE 0x8454 +#define GL_FOG_COORD_ARRAY_STRIDE 0x8455 +#define GL_FOG_COORD_ARRAY_POINTER 0x8456 +#define GL_FOG_COORD_ARRAY 0x8457 +#define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D +#define GL_SRC0_RGB 0x8580 +#define GL_SRC1_RGB 0x8581 +#define GL_SRC2_RGB 0x8582 +#define GL_SRC0_ALPHA 0x8588 +#define GL_SRC2_ALPHA 0x858A + typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint* ids); + typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint* ids); + typedef GLboolean(APIENTRYP PFNGLISQUERYPROC) (GLuint id); + typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); + typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target); + typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint* params); + typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); + typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint* buffers); + typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint* buffers); + typedef GLboolean(APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer); + typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void* data, GLenum usage); + typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void* data); + typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void* data); + typedef void* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); + typedef GLboolean(APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target); + typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void** params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGenQueries(GLsizei n, GLuint* ids); + GLAPI void APIENTRY glDeleteQueries(GLsizei n, const GLuint* ids); + GLAPI GLboolean APIENTRY glIsQuery(GLuint id); + GLAPI void APIENTRY glBeginQuery(GLenum target, GLuint id); + GLAPI void APIENTRY glEndQuery(GLenum target); + GLAPI void APIENTRY glGetQueryiv(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetQueryObjectiv(GLuint id, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint* params); + GLAPI void APIENTRY glBindBuffer(GLenum target, GLuint buffer); + GLAPI void APIENTRY glDeleteBuffers(GLsizei n, const GLuint* buffers); + GLAPI void APIENTRY glGenBuffers(GLsizei n, GLuint* buffers); + GLAPI GLboolean APIENTRY glIsBuffer(GLuint buffer); + GLAPI void APIENTRY glBufferData(GLenum target, GLsizeiptr size, const void* data, GLenum usage); + GLAPI void APIENTRY glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void* data); + GLAPI void APIENTRY glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, void* data); + GLAPI void* APIENTRY glMapBuffer(GLenum target, GLenum access); + GLAPI GLboolean APIENTRY glUnmapBuffer(GLenum target); + GLAPI void APIENTRY glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetBufferPointerv(GLenum target, GLenum pname, void** params); +#endif +#endif /* GL_VERSION_1_5 */ + +#ifndef GL_VERSION_2_0 +#define GL_VERSION_2_0 1 + typedef char GLchar; +#define GL_BLEND_EQUATION_RGB 0x8009 +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 +#define GL_CURRENT_VERTEX_ATTRIB 0x8626 +#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 +#define GL_STENCIL_BACK_FUNC 0x8800 +#define GL_STENCIL_BACK_FAIL 0x8801 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 +#define GL_MAX_DRAW_BUFFERS 0x8824 +#define GL_DRAW_BUFFER0 0x8825 +#define GL_DRAW_BUFFER1 0x8826 +#define GL_DRAW_BUFFER2 0x8827 +#define GL_DRAW_BUFFER3 0x8828 +#define GL_DRAW_BUFFER4 0x8829 +#define GL_DRAW_BUFFER5 0x882A +#define GL_DRAW_BUFFER6 0x882B +#define GL_DRAW_BUFFER7 0x882C +#define GL_DRAW_BUFFER8 0x882D +#define GL_DRAW_BUFFER9 0x882E +#define GL_DRAW_BUFFER10 0x882F +#define GL_DRAW_BUFFER11 0x8830 +#define GL_DRAW_BUFFER12 0x8831 +#define GL_DRAW_BUFFER13 0x8832 +#define GL_DRAW_BUFFER14 0x8833 +#define GL_DRAW_BUFFER15 0x8834 +#define GL_BLEND_EQUATION_ALPHA 0x883D +#define GL_MAX_VERTEX_ATTRIBS 0x8869 +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A +#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 +#define GL_FRAGMENT_SHADER 0x8B30 +#define GL_VERTEX_SHADER 0x8B31 +#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 +#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A +#define GL_MAX_VARYING_FLOATS 0x8B4B +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D +#define GL_SHADER_TYPE 0x8B4F +#define GL_FLOAT_VEC2 0x8B50 +#define GL_FLOAT_VEC3 0x8B51 +#define GL_FLOAT_VEC4 0x8B52 +#define GL_INT_VEC2 0x8B53 +#define GL_INT_VEC3 0x8B54 +#define GL_INT_VEC4 0x8B55 +#define GL_BOOL 0x8B56 +#define GL_BOOL_VEC2 0x8B57 +#define GL_BOOL_VEC3 0x8B58 +#define GL_BOOL_VEC4 0x8B59 +#define GL_FLOAT_MAT2 0x8B5A +#define GL_FLOAT_MAT3 0x8B5B +#define GL_FLOAT_MAT4 0x8B5C +#define GL_SAMPLER_1D 0x8B5D +#define GL_SAMPLER_2D 0x8B5E +#define GL_SAMPLER_3D 0x8B5F +#define GL_SAMPLER_CUBE 0x8B60 +#define GL_SAMPLER_1D_SHADOW 0x8B61 +#define GL_SAMPLER_2D_SHADOW 0x8B62 +#define GL_DELETE_STATUS 0x8B80 +#define GL_COMPILE_STATUS 0x8B81 +#define GL_LINK_STATUS 0x8B82 +#define GL_VALIDATE_STATUS 0x8B83 +#define GL_INFO_LOG_LENGTH 0x8B84 +#define GL_ATTACHED_SHADERS 0x8B85 +#define GL_ACTIVE_UNIFORMS 0x8B86 +#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 +#define GL_SHADER_SOURCE_LENGTH 0x8B88 +#define GL_ACTIVE_ATTRIBUTES 0x8B89 +#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B +#define GL_SHADING_LANGUAGE_VERSION 0x8B8C +#define GL_CURRENT_PROGRAM 0x8B8D +#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 +#define GL_LOWER_LEFT 0x8CA1 +#define GL_UPPER_LEFT 0x8CA2 +#define GL_STENCIL_BACK_REF 0x8CA3 +#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 +#define GL_STENCIL_BACK_WRITEMASK 0x8CA5 +#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643 +#define GL_POINT_SPRITE 0x8861 +#define GL_COORD_REPLACE 0x8862 +#define GL_MAX_TEXTURE_COORDS 0x8871 + typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha); + typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum* bufs); + typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); + typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask); + typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask); + typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); + typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar* name); + typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader); + typedef GLuint(APIENTRYP PFNGLCREATEPROGRAMPROC) (void); + typedef GLuint(APIENTRYP PFNGLCREATESHADERPROC) (GLenum type); + typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program); + typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader); + typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); + typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index); + typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index); + typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); + typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); + typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei* count, GLuint* shaders); + typedef GLint(APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar* name); + typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog); + typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog); + typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source); + typedef GLint(APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar* name); + typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat* params); + typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void** pointer); + typedef GLboolean(APIENTRYP PFNGLISPROGRAMPROC) (GLuint program); + typedef GLboolean(APIENTRYP PFNGLISSHADERPROC) (GLuint shader); + typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program); + typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length); + typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program); + typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0); + typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1); + typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0); + typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1); + typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2); + typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); + GLAPI void APIENTRY glDrawBuffers(GLsizei n, const GLenum* bufs); + GLAPI void APIENTRY glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); + GLAPI void APIENTRY glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); + GLAPI void APIENTRY glStencilMaskSeparate(GLenum face, GLuint mask); + GLAPI void APIENTRY glAttachShader(GLuint program, GLuint shader); + GLAPI void APIENTRY glBindAttribLocation(GLuint program, GLuint index, const GLchar* name); + GLAPI void APIENTRY glCompileShader(GLuint shader); + GLAPI GLuint APIENTRY glCreateProgram(void); + GLAPI GLuint APIENTRY glCreateShader(GLenum type); + GLAPI void APIENTRY glDeleteProgram(GLuint program); + GLAPI void APIENTRY glDeleteShader(GLuint shader); + GLAPI void APIENTRY glDetachShader(GLuint program, GLuint shader); + GLAPI void APIENTRY glDisableVertexAttribArray(GLuint index); + GLAPI void APIENTRY glEnableVertexAttribArray(GLuint index); + GLAPI void APIENTRY glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); + GLAPI void APIENTRY glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); + GLAPI void APIENTRY glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei* count, GLuint* shaders); + GLAPI GLint APIENTRY glGetAttribLocation(GLuint program, const GLchar* name); + GLAPI void APIENTRY glGetProgramiv(GLuint program, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog); + GLAPI void APIENTRY glGetShaderiv(GLuint shader, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog); + GLAPI void APIENTRY glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* source); + GLAPI GLint APIENTRY glGetUniformLocation(GLuint program, const GLchar* name); + GLAPI void APIENTRY glGetUniformfv(GLuint program, GLint location, GLfloat* params); + GLAPI void APIENTRY glGetUniformiv(GLuint program, GLint location, GLint* params); + GLAPI void APIENTRY glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble* params); + GLAPI void APIENTRY glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer); + GLAPI GLboolean APIENTRY glIsProgram(GLuint program); + GLAPI GLboolean APIENTRY glIsShader(GLuint shader); + GLAPI void APIENTRY glLinkProgram(GLuint program); + GLAPI void APIENTRY glShaderSource(GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length); + GLAPI void APIENTRY glUseProgram(GLuint program); + GLAPI void APIENTRY glUniform1f(GLint location, GLfloat v0); + GLAPI void APIENTRY glUniform2f(GLint location, GLfloat v0, GLfloat v1); + GLAPI void APIENTRY glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + GLAPI void APIENTRY glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + GLAPI void APIENTRY glUniform1i(GLint location, GLint v0); + GLAPI void APIENTRY glUniform2i(GLint location, GLint v0, GLint v1); + GLAPI void APIENTRY glUniform3i(GLint location, GLint v0, GLint v1, GLint v2); + GLAPI void APIENTRY glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + GLAPI void APIENTRY glUniform1fv(GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glUniform2fv(GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glUniform3fv(GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glUniform4fv(GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glUniform1iv(GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glUniform2iv(GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glUniform3iv(GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glUniform4iv(GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glValidateProgram(GLuint program); + GLAPI void APIENTRY glVertexAttrib1d(GLuint index, GLdouble x); + GLAPI void APIENTRY glVertexAttrib1dv(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib1f(GLuint index, GLfloat x); + GLAPI void APIENTRY glVertexAttrib1fv(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib1s(GLuint index, GLshort x); + GLAPI void APIENTRY glVertexAttrib1sv(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y); + GLAPI void APIENTRY glVertexAttrib2dv(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y); + GLAPI void APIENTRY glVertexAttrib2fv(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib2s(GLuint index, GLshort x, GLshort y); + GLAPI void APIENTRY glVertexAttrib2sv(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glVertexAttrib3dv(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glVertexAttrib3fv(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z); + GLAPI void APIENTRY glVertexAttrib3sv(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib4Nbv(GLuint index, const GLbyte* v); + GLAPI void APIENTRY glVertexAttrib4Niv(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttrib4Nsv(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); + GLAPI void APIENTRY glVertexAttrib4Nubv(GLuint index, const GLubyte* v); + GLAPI void APIENTRY glVertexAttrib4Nuiv(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttrib4Nusv(GLuint index, const GLushort* v); + GLAPI void APIENTRY glVertexAttrib4bv(GLuint index, const GLbyte* v); + GLAPI void APIENTRY glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glVertexAttrib4dv(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glVertexAttrib4fv(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib4iv(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); + GLAPI void APIENTRY glVertexAttrib4sv(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib4ubv(GLuint index, const GLubyte* v); + GLAPI void APIENTRY glVertexAttrib4uiv(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttrib4usv(GLuint index, const GLushort* v); + GLAPI void APIENTRY glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer); +#endif +#endif /* GL_VERSION_2_0 */ + +#ifndef GL_VERSION_2_1 +#define GL_VERSION_2_1 1 +#define GL_PIXEL_PACK_BUFFER 0x88EB +#define GL_PIXEL_UNPACK_BUFFER 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF +#define GL_FLOAT_MAT2x3 0x8B65 +#define GL_FLOAT_MAT2x4 0x8B66 +#define GL_FLOAT_MAT3x2 0x8B67 +#define GL_FLOAT_MAT3x4 0x8B68 +#define GL_FLOAT_MAT4x2 0x8B69 +#define GL_FLOAT_MAT4x3 0x8B6A +#define GL_SRGB 0x8C40 +#define GL_SRGB8 0x8C41 +#define GL_SRGB_ALPHA 0x8C42 +#define GL_SRGB8_ALPHA8 0x8C43 +#define GL_COMPRESSED_SRGB 0x8C48 +#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 +#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F +#define GL_SLUMINANCE_ALPHA 0x8C44 +#define GL_SLUMINANCE8_ALPHA8 0x8C45 +#define GL_SLUMINANCE 0x8C46 +#define GL_SLUMINANCE8 0x8C47 +#define GL_COMPRESSED_SLUMINANCE 0x8C4A +#define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B + typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); +#endif +#endif /* GL_VERSION_2_1 */ + +#ifndef GL_VERSION_3_0 +#define GL_VERSION_3_0 1 + typedef khronos_uint16_t GLhalf; +#define GL_COMPARE_REF_TO_TEXTURE 0x884E +#define GL_CLIP_DISTANCE0 0x3000 +#define GL_CLIP_DISTANCE1 0x3001 +#define GL_CLIP_DISTANCE2 0x3002 +#define GL_CLIP_DISTANCE3 0x3003 +#define GL_CLIP_DISTANCE4 0x3004 +#define GL_CLIP_DISTANCE5 0x3005 +#define GL_CLIP_DISTANCE6 0x3006 +#define GL_CLIP_DISTANCE7 0x3007 +#define GL_MAX_CLIP_DISTANCES 0x0D32 +#define GL_MAJOR_VERSION 0x821B +#define GL_MINOR_VERSION 0x821C +#define GL_NUM_EXTENSIONS 0x821D +#define GL_CONTEXT_FLAGS 0x821E +#define GL_COMPRESSED_RED 0x8225 +#define GL_COMPRESSED_RG 0x8226 +#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 +#define GL_RGBA32F 0x8814 +#define GL_RGB32F 0x8815 +#define GL_RGBA16F 0x881A +#define GL_RGB16F 0x881B +#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD +#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF +#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 +#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 +#define GL_CLAMP_READ_COLOR 0x891C +#define GL_FIXED_ONLY 0x891D +#define GL_MAX_VARYING_COMPONENTS 0x8B4B +#define GL_TEXTURE_1D_ARRAY 0x8C18 +#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19 +#define GL_TEXTURE_2D_ARRAY 0x8C1A +#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B +#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C +#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D +#define GL_R11F_G11F_B10F 0x8C3A +#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B +#define GL_RGB9_E5 0x8C3D +#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E +#define GL_TEXTURE_SHARED_SIZE 0x8C3F +#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76 +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80 +#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83 +#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84 +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85 +#define GL_PRIMITIVES_GENERATED 0x8C87 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88 +#define GL_RASTERIZER_DISCARD 0x8C89 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B +#define GL_INTERLEAVED_ATTRIBS 0x8C8C +#define GL_SEPARATE_ATTRIBS 0x8C8D +#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F +#define GL_RGBA32UI 0x8D70 +#define GL_RGB32UI 0x8D71 +#define GL_RGBA16UI 0x8D76 +#define GL_RGB16UI 0x8D77 +#define GL_RGBA8UI 0x8D7C +#define GL_RGB8UI 0x8D7D +#define GL_RGBA32I 0x8D82 +#define GL_RGB32I 0x8D83 +#define GL_RGBA16I 0x8D88 +#define GL_RGB16I 0x8D89 +#define GL_RGBA8I 0x8D8E +#define GL_RGB8I 0x8D8F +#define GL_RED_INTEGER 0x8D94 +#define GL_GREEN_INTEGER 0x8D95 +#define GL_BLUE_INTEGER 0x8D96 +#define GL_RGB_INTEGER 0x8D98 +#define GL_RGBA_INTEGER 0x8D99 +#define GL_BGR_INTEGER 0x8D9A +#define GL_BGRA_INTEGER 0x8D9B +#define GL_SAMPLER_1D_ARRAY 0x8DC0 +#define GL_SAMPLER_2D_ARRAY 0x8DC1 +#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3 +#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4 +#define GL_SAMPLER_CUBE_SHADOW 0x8DC5 +#define GL_UNSIGNED_INT_VEC2 0x8DC6 +#define GL_UNSIGNED_INT_VEC3 0x8DC7 +#define GL_UNSIGNED_INT_VEC4 0x8DC8 +#define GL_INT_SAMPLER_1D 0x8DC9 +#define GL_INT_SAMPLER_2D 0x8DCA +#define GL_INT_SAMPLER_3D 0x8DCB +#define GL_INT_SAMPLER_CUBE 0x8DCC +#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE +#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF +#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1 +#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2 +#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3 +#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4 +#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6 +#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7 +#define GL_QUERY_WAIT 0x8E13 +#define GL_QUERY_NO_WAIT 0x8E14 +#define GL_QUERY_BY_REGION_WAIT 0x8E15 +#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16 +#define GL_BUFFER_ACCESS_FLAGS 0x911F +#define GL_BUFFER_MAP_LENGTH 0x9120 +#define GL_BUFFER_MAP_OFFSET 0x9121 +#define GL_DEPTH_COMPONENT32F 0x8CAC +#define GL_DEPTH32F_STENCIL8 0x8CAD +#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD +#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 +#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210 +#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211 +#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212 +#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213 +#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214 +#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215 +#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216 +#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217 +#define GL_FRAMEBUFFER_DEFAULT 0x8218 +#define GL_FRAMEBUFFER_UNDEFINED 0x8219 +#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A +#define GL_MAX_RENDERBUFFER_SIZE 0x84E8 +#define GL_DEPTH_STENCIL 0x84F9 +#define GL_UNSIGNED_INT_24_8 0x84FA +#define GL_DEPTH24_STENCIL8 0x88F0 +#define GL_TEXTURE_STENCIL_SIZE 0x88F1 +#define GL_TEXTURE_RED_TYPE 0x8C10 +#define GL_TEXTURE_GREEN_TYPE 0x8C11 +#define GL_TEXTURE_BLUE_TYPE 0x8C12 +#define GL_TEXTURE_ALPHA_TYPE 0x8C13 +#define GL_TEXTURE_DEPTH_TYPE 0x8C16 +#define GL_UNSIGNED_NORMALIZED 0x8C17 +#define GL_FRAMEBUFFER_BINDING 0x8CA6 +#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 +#define GL_RENDERBUFFER_BINDING 0x8CA7 +#define GL_READ_FRAMEBUFFER 0x8CA8 +#define GL_DRAW_FRAMEBUFFER 0x8CA9 +#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA +#define GL_RENDERBUFFER_SAMPLES 0x8CAB +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 +#define GL_FRAMEBUFFER_COMPLETE 0x8CD5 +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 +#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB +#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC +#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD +#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF +#define GL_COLOR_ATTACHMENT0 0x8CE0 +#define GL_COLOR_ATTACHMENT1 0x8CE1 +#define GL_COLOR_ATTACHMENT2 0x8CE2 +#define GL_COLOR_ATTACHMENT3 0x8CE3 +#define GL_COLOR_ATTACHMENT4 0x8CE4 +#define GL_COLOR_ATTACHMENT5 0x8CE5 +#define GL_COLOR_ATTACHMENT6 0x8CE6 +#define GL_COLOR_ATTACHMENT7 0x8CE7 +#define GL_COLOR_ATTACHMENT8 0x8CE8 +#define GL_COLOR_ATTACHMENT9 0x8CE9 +#define GL_COLOR_ATTACHMENT10 0x8CEA +#define GL_COLOR_ATTACHMENT11 0x8CEB +#define GL_COLOR_ATTACHMENT12 0x8CEC +#define GL_COLOR_ATTACHMENT13 0x8CED +#define GL_COLOR_ATTACHMENT14 0x8CEE +#define GL_COLOR_ATTACHMENT15 0x8CEF +#define GL_COLOR_ATTACHMENT16 0x8CF0 +#define GL_COLOR_ATTACHMENT17 0x8CF1 +#define GL_COLOR_ATTACHMENT18 0x8CF2 +#define GL_COLOR_ATTACHMENT19 0x8CF3 +#define GL_COLOR_ATTACHMENT20 0x8CF4 +#define GL_COLOR_ATTACHMENT21 0x8CF5 +#define GL_COLOR_ATTACHMENT22 0x8CF6 +#define GL_COLOR_ATTACHMENT23 0x8CF7 +#define GL_COLOR_ATTACHMENT24 0x8CF8 +#define GL_COLOR_ATTACHMENT25 0x8CF9 +#define GL_COLOR_ATTACHMENT26 0x8CFA +#define GL_COLOR_ATTACHMENT27 0x8CFB +#define GL_COLOR_ATTACHMENT28 0x8CFC +#define GL_COLOR_ATTACHMENT29 0x8CFD +#define GL_COLOR_ATTACHMENT30 0x8CFE +#define GL_COLOR_ATTACHMENT31 0x8CFF +#define GL_DEPTH_ATTACHMENT 0x8D00 +#define GL_STENCIL_ATTACHMENT 0x8D20 +#define GL_FRAMEBUFFER 0x8D40 +#define GL_RENDERBUFFER 0x8D41 +#define GL_RENDERBUFFER_WIDTH 0x8D42 +#define GL_RENDERBUFFER_HEIGHT 0x8D43 +#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44 +#define GL_STENCIL_INDEX1 0x8D46 +#define GL_STENCIL_INDEX4 0x8D47 +#define GL_STENCIL_INDEX8 0x8D48 +#define GL_STENCIL_INDEX16 0x8D49 +#define GL_RENDERBUFFER_RED_SIZE 0x8D50 +#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51 +#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52 +#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53 +#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54 +#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 +#define GL_MAX_SAMPLES 0x8D57 +#define GL_INDEX 0x8222 +#define GL_TEXTURE_LUMINANCE_TYPE 0x8C14 +#define GL_TEXTURE_INTENSITY_TYPE 0x8C15 +#define GL_FRAMEBUFFER_SRGB 0x8DB9 +#define GL_HALF_FLOAT 0x140B +#define GL_MAP_READ_BIT 0x0001 +#define GL_MAP_WRITE_BIT 0x0002 +#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004 +#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008 +#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010 +#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020 +#define GL_COMPRESSED_RED_RGTC1 0x8DBB +#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC +#define GL_COMPRESSED_RG_RGTC2 0x8DBD +#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE +#define GL_RG 0x8227 +#define GL_RG_INTEGER 0x8228 +#define GL_R8 0x8229 +#define GL_R16 0x822A +#define GL_RG8 0x822B +#define GL_RG16 0x822C +#define GL_R16F 0x822D +#define GL_R32F 0x822E +#define GL_RG16F 0x822F +#define GL_RG32F 0x8230 +#define GL_R8I 0x8231 +#define GL_R8UI 0x8232 +#define GL_R16I 0x8233 +#define GL_R16UI 0x8234 +#define GL_R32I 0x8235 +#define GL_R32UI 0x8236 +#define GL_RG8I 0x8237 +#define GL_RG8UI 0x8238 +#define GL_RG16I 0x8239 +#define GL_RG16UI 0x823A +#define GL_RG32I 0x823B +#define GL_RG32UI 0x823C +#define GL_VERTEX_ARRAY_BINDING 0x85B5 +#define GL_CLAMP_VERTEX_COLOR 0x891A +#define GL_CLAMP_FRAGMENT_COLOR 0x891B +#define GL_ALPHA_INTEGER 0x8D97 + typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); + typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean* data); + typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint* data); + typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index); + typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index); + typedef GLboolean(APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index); + typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode); + typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void); + typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); + typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer); + typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar* const* varyings, GLenum bufferMode); + typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name); + typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp); + typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode); + typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void); + typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint* params); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort* v); + typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint* params); + typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar* name); + typedef GLint(APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar* name); + typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0); + typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1); + typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); + typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint* params); + typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint* params); + typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint* value); + typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint* value); + typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat* value); + typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); + typedef const GLubyte* (APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index); + typedef GLboolean(APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer); + typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer); + typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint* renderbuffers); + typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint* renderbuffers); + typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); + typedef GLboolean(APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer); + typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer); + typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint* framebuffers); + typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint* framebuffers); + typedef GLenum(APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); + typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); + typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target); + typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); + typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); + typedef void* (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); + typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length); + typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array); + typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint* arrays); + typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint* arrays); + typedef GLboolean(APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); + GLAPI void APIENTRY glGetBooleani_v(GLenum target, GLuint index, GLboolean* data); + GLAPI void APIENTRY glGetIntegeri_v(GLenum target, GLuint index, GLint* data); + GLAPI void APIENTRY glEnablei(GLenum target, GLuint index); + GLAPI void APIENTRY glDisablei(GLenum target, GLuint index); + GLAPI GLboolean APIENTRY glIsEnabledi(GLenum target, GLuint index); + GLAPI void APIENTRY glBeginTransformFeedback(GLenum primitiveMode); + GLAPI void APIENTRY glEndTransformFeedback(void); + GLAPI void APIENTRY glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); + GLAPI void APIENTRY glBindBufferBase(GLenum target, GLuint index, GLuint buffer); + GLAPI void APIENTRY glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar* const* varyings, GLenum bufferMode); + GLAPI void APIENTRY glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name); + GLAPI void APIENTRY glClampColor(GLenum target, GLenum clamp); + GLAPI void APIENTRY glBeginConditionalRender(GLuint id, GLenum mode); + GLAPI void APIENTRY glEndConditionalRender(void); + GLAPI void APIENTRY glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); + GLAPI void APIENTRY glGetVertexAttribIiv(GLuint index, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint* params); + GLAPI void APIENTRY glVertexAttribI1i(GLuint index, GLint x); + GLAPI void APIENTRY glVertexAttribI2i(GLuint index, GLint x, GLint y); + GLAPI void APIENTRY glVertexAttribI3i(GLuint index, GLint x, GLint y, GLint z); + GLAPI void APIENTRY glVertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w); + GLAPI void APIENTRY glVertexAttribI1ui(GLuint index, GLuint x); + GLAPI void APIENTRY glVertexAttribI2ui(GLuint index, GLuint x, GLuint y); + GLAPI void APIENTRY glVertexAttribI3ui(GLuint index, GLuint x, GLuint y, GLuint z); + GLAPI void APIENTRY glVertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); + GLAPI void APIENTRY glVertexAttribI1iv(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttribI2iv(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttribI3iv(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttribI4iv(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttribI1uiv(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttribI2uiv(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttribI3uiv(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttribI4uiv(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttribI4bv(GLuint index, const GLbyte* v); + GLAPI void APIENTRY glVertexAttribI4sv(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttribI4ubv(GLuint index, const GLubyte* v); + GLAPI void APIENTRY glVertexAttribI4usv(GLuint index, const GLushort* v); + GLAPI void APIENTRY glGetUniformuiv(GLuint program, GLint location, GLuint* params); + GLAPI void APIENTRY glBindFragDataLocation(GLuint program, GLuint color, const GLchar* name); + GLAPI GLint APIENTRY glGetFragDataLocation(GLuint program, const GLchar* name); + GLAPI void APIENTRY glUniform1ui(GLint location, GLuint v0); + GLAPI void APIENTRY glUniform2ui(GLint location, GLuint v0, GLuint v1); + GLAPI void APIENTRY glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2); + GLAPI void APIENTRY glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + GLAPI void APIENTRY glUniform1uiv(GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glUniform2uiv(GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glUniform3uiv(GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glUniform4uiv(GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glTexParameterIiv(GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glTexParameterIuiv(GLenum target, GLenum pname, const GLuint* params); + GLAPI void APIENTRY glGetTexParameterIiv(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint* params); + GLAPI void APIENTRY glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint* value); + GLAPI void APIENTRY glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint* value); + GLAPI void APIENTRY glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat* value); + GLAPI void APIENTRY glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); + GLAPI const GLubyte* APIENTRY glGetStringi(GLenum name, GLuint index); + GLAPI GLboolean APIENTRY glIsRenderbuffer(GLuint renderbuffer); + GLAPI void APIENTRY glBindRenderbuffer(GLenum target, GLuint renderbuffer); + GLAPI void APIENTRY glDeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers); + GLAPI void APIENTRY glGenRenderbuffers(GLsizei n, GLuint* renderbuffers); + GLAPI void APIENTRY glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params); + GLAPI GLboolean APIENTRY glIsFramebuffer(GLuint framebuffer); + GLAPI void APIENTRY glBindFramebuffer(GLenum target, GLuint framebuffer); + GLAPI void APIENTRY glDeleteFramebuffers(GLsizei n, const GLuint* framebuffers); + GLAPI void APIENTRY glGenFramebuffers(GLsizei n, GLuint* framebuffers); + GLAPI GLenum APIENTRY glCheckFramebufferStatus(GLenum target); + GLAPI void APIENTRY glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + GLAPI void APIENTRY glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + GLAPI void APIENTRY glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); + GLAPI void APIENTRY glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); + GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint* params); + GLAPI void APIENTRY glGenerateMipmap(GLenum target); + GLAPI void APIENTRY glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); + GLAPI void APIENTRY glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); + GLAPI void* APIENTRY glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); + GLAPI void APIENTRY glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length); + GLAPI void APIENTRY glBindVertexArray(GLuint array); + GLAPI void APIENTRY glDeleteVertexArrays(GLsizei n, const GLuint* arrays); + GLAPI void APIENTRY glGenVertexArrays(GLsizei n, GLuint* arrays); + GLAPI GLboolean APIENTRY glIsVertexArray(GLuint array); +#endif +#endif /* GL_VERSION_3_0 */ + +#ifndef GL_VERSION_3_1 +#define GL_VERSION_3_1 1 +#define GL_SAMPLER_2D_RECT 0x8B63 +#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 +#define GL_SAMPLER_BUFFER 0x8DC2 +#define GL_INT_SAMPLER_2D_RECT 0x8DCD +#define GL_INT_SAMPLER_BUFFER 0x8DD0 +#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 +#define GL_TEXTURE_BUFFER 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D +#define GL_TEXTURE_RECTANGLE 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 +#define GL_R8_SNORM 0x8F94 +#define GL_RG8_SNORM 0x8F95 +#define GL_RGB8_SNORM 0x8F96 +#define GL_RGBA8_SNORM 0x8F97 +#define GL_R16_SNORM 0x8F98 +#define GL_RG16_SNORM 0x8F99 +#define GL_RGB16_SNORM 0x8F9A +#define GL_RGBA16_SNORM 0x8F9B +#define GL_SIGNED_NORMALIZED 0x8F9C +#define GL_PRIMITIVE_RESTART 0x8F9D +#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E +#define GL_COPY_READ_BUFFER 0x8F36 +#define GL_COPY_WRITE_BUFFER 0x8F37 +#define GL_UNIFORM_BUFFER 0x8A11 +#define GL_UNIFORM_BUFFER_BINDING 0x8A28 +#define GL_UNIFORM_BUFFER_START 0x8A29 +#define GL_UNIFORM_BUFFER_SIZE 0x8A2A +#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B +#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C +#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D +#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E +#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F +#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30 +#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31 +#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32 +#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33 +#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34 +#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35 +#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36 +#define GL_UNIFORM_TYPE 0x8A37 +#define GL_UNIFORM_SIZE 0x8A38 +#define GL_UNIFORM_NAME_LENGTH 0x8A39 +#define GL_UNIFORM_BLOCK_INDEX 0x8A3A +#define GL_UNIFORM_OFFSET 0x8A3B +#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C +#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D +#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E +#define GL_UNIFORM_BLOCK_BINDING 0x8A3F +#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40 +#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41 +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42 +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46 +#define GL_INVALID_INDEX 0xFFFFFFFFu + typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount); + typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei instancecount); + typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer); + typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index); + typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar* const* uniformNames, GLuint* uniformIndices); + typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformName); + typedef GLuint(APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar* uniformBlockName); + typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName); + typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount); + GLAPI void APIENTRY glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei instancecount); + GLAPI void APIENTRY glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer); + GLAPI void APIENTRY glPrimitiveRestartIndex(GLuint index); + GLAPI void APIENTRY glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + GLAPI void APIENTRY glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar* const* uniformNames, GLuint* uniformIndices); + GLAPI void APIENTRY glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformName); + GLAPI GLuint APIENTRY glGetUniformBlockIndex(GLuint program, const GLchar* uniformBlockName); + GLAPI void APIENTRY glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName); + GLAPI void APIENTRY glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); +#endif +#endif /* GL_VERSION_3_1 */ + +#ifndef GL_VERSION_3_2 +#define GL_VERSION_3_2 1 + typedef struct __GLsync* GLsync; + typedef khronos_uint64_t GLuint64; + typedef khronos_int64_t GLint64; +#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 +#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 +#define GL_LINES_ADJACENCY 0x000A +#define GL_LINE_STRIP_ADJACENCY 0x000B +#define GL_TRIANGLES_ADJACENCY 0x000C +#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D +#define GL_PROGRAM_POINT_SIZE 0x8642 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 +#define GL_GEOMETRY_SHADER 0x8DD9 +#define GL_GEOMETRY_VERTICES_OUT 0x8916 +#define GL_GEOMETRY_INPUT_TYPE 0x8917 +#define GL_GEOMETRY_OUTPUT_TYPE 0x8918 +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 +#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 +#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 +#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 +#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 +#define GL_CONTEXT_PROFILE_MASK 0x9126 +#define GL_DEPTH_CLAMP 0x864F +#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C +#define GL_FIRST_VERTEX_CONVENTION 0x8E4D +#define GL_LAST_VERTEX_CONVENTION 0x8E4E +#define GL_PROVOKING_VERTEX 0x8E4F +#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F +#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111 +#define GL_OBJECT_TYPE 0x9112 +#define GL_SYNC_CONDITION 0x9113 +#define GL_SYNC_STATUS 0x9114 +#define GL_SYNC_FLAGS 0x9115 +#define GL_SYNC_FENCE 0x9116 +#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 +#define GL_UNSIGNALED 0x9118 +#define GL_SIGNALED 0x9119 +#define GL_ALREADY_SIGNALED 0x911A +#define GL_TIMEOUT_EXPIRED 0x911B +#define GL_CONDITION_SATISFIED 0x911C +#define GL_WAIT_FAILED 0x911D +#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull +#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 +#define GL_SAMPLE_POSITION 0x8E50 +#define GL_SAMPLE_MASK 0x8E51 +#define GL_SAMPLE_MASK_VALUE 0x8E52 +#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59 +#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101 +#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102 +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105 +#define GL_TEXTURE_SAMPLES 0x9106 +#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107 +#define GL_SAMPLER_2D_MULTISAMPLE 0x9108 +#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109 +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A +#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B +#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D +#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E +#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F +#define GL_MAX_INTEGER_SAMPLES 0x9110 + typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLint basevertex); + typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void* indices, GLint basevertex); + typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei instancecount, GLint basevertex); + typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei* count, GLenum type, const void* const* indices, GLsizei drawcount, const GLint* basevertex); + typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode); + typedef GLsync(APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags); + typedef GLboolean(APIENTRYP PFNGLISSYNCPROC) (GLsync sync); + typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync); + typedef GLenum(APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); + typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); + typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64* data); + typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei count, GLsizei* length, GLint* values); + typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64* data); + typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64* params); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); + typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat* val); + typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const void* indices, GLint basevertex); + GLAPI void APIENTRY glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void* indices, GLint basevertex); + GLAPI void APIENTRY glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei instancecount, GLint basevertex); + GLAPI void APIENTRY glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei* count, GLenum type, const void* const* indices, GLsizei drawcount, const GLint* basevertex); + GLAPI void APIENTRY glProvokingVertex(GLenum mode); + GLAPI GLsync APIENTRY glFenceSync(GLenum condition, GLbitfield flags); + GLAPI GLboolean APIENTRY glIsSync(GLsync sync); + GLAPI void APIENTRY glDeleteSync(GLsync sync); + GLAPI GLenum APIENTRY glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); + GLAPI void APIENTRY glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); + GLAPI void APIENTRY glGetInteger64v(GLenum pname, GLint64* data); + GLAPI void APIENTRY glGetSynciv(GLsync sync, GLenum pname, GLsizei count, GLsizei* length, GLint* values); + GLAPI void APIENTRY glGetInteger64i_v(GLenum target, GLuint index, GLint64* data); + GLAPI void APIENTRY glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64* params); + GLAPI void APIENTRY glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level); + GLAPI void APIENTRY glTexImage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); + GLAPI void APIENTRY glTexImage3DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + GLAPI void APIENTRY glGetMultisamplefv(GLenum pname, GLuint index, GLfloat* val); + GLAPI void APIENTRY glSampleMaski(GLuint maskNumber, GLbitfield mask); +#endif +#endif /* GL_VERSION_3_2 */ + +#ifndef GL_VERSION_3_3 +#define GL_VERSION_3_3 1 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE +#define GL_SRC1_COLOR 0x88F9 +#define GL_ONE_MINUS_SRC1_COLOR 0x88FA +#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB +#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC +#define GL_ANY_SAMPLES_PASSED 0x8C2F +#define GL_SAMPLER_BINDING 0x8919 +#define GL_RGB10_A2UI 0x906F +#define GL_TEXTURE_SWIZZLE_R 0x8E42 +#define GL_TEXTURE_SWIZZLE_G 0x8E43 +#define GL_TEXTURE_SWIZZLE_B 0x8E44 +#define GL_TEXTURE_SWIZZLE_A 0x8E45 +#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 +#define GL_TIME_ELAPSED 0x88BF +#define GL_TIMESTAMP 0x8E28 +#define GL_INT_2_10_10_10_REV 0x8D9F + typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar* name); + typedef GLint(APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar* name); + typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint* samplers); + typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint* samplers); + typedef GLboolean(APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler); + typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler); + typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint* param); + typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat* param); + typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint* param); + typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint* param); + typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint* params); + typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target); + typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64* params); + typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64* params); + typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor); + typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); + typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); + typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); + typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); + typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); + typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); + typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); + typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); + typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value); + typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint* value); + typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value); + typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint* value); + typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value); + typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint* value); + typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords); + typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint* coords); + typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords); + typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint* coords); + typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords); + typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint* coords); + typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords); + typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint* coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); + typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords); + typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint* coords); + typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color); + typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint* color); + typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color); + typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint* color); + typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color); + typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint* color); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBindFragDataLocationIndexed(GLuint program, GLuint colorNumber, GLuint index, const GLchar* name); + GLAPI GLint APIENTRY glGetFragDataIndex(GLuint program, const GLchar* name); + GLAPI void APIENTRY glGenSamplers(GLsizei count, GLuint* samplers); + GLAPI void APIENTRY glDeleteSamplers(GLsizei count, const GLuint* samplers); + GLAPI GLboolean APIENTRY glIsSampler(GLuint sampler); + GLAPI void APIENTRY glBindSampler(GLuint unit, GLuint sampler); + GLAPI void APIENTRY glSamplerParameteri(GLuint sampler, GLenum pname, GLint param); + GLAPI void APIENTRY glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint* param); + GLAPI void APIENTRY glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param); + GLAPI void APIENTRY glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat* param); + GLAPI void APIENTRY glSamplerParameterIiv(GLuint sampler, GLenum pname, const GLint* param); + GLAPI void APIENTRY glSamplerParameterIuiv(GLuint sampler, GLenum pname, const GLuint* param); + GLAPI void APIENTRY glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetSamplerParameterIiv(GLuint sampler, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetSamplerParameterIuiv(GLuint sampler, GLenum pname, GLuint* params); + GLAPI void APIENTRY glQueryCounter(GLuint id, GLenum target); + GLAPI void APIENTRY glGetQueryObjecti64v(GLuint id, GLenum pname, GLint64* params); + GLAPI void APIENTRY glGetQueryObjectui64v(GLuint id, GLenum pname, GLuint64* params); + GLAPI void APIENTRY glVertexAttribDivisor(GLuint index, GLuint divisor); + GLAPI void APIENTRY glVertexAttribP1ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); + GLAPI void APIENTRY glVertexAttribP1uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint* value); + GLAPI void APIENTRY glVertexAttribP2ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); + GLAPI void APIENTRY glVertexAttribP2uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint* value); + GLAPI void APIENTRY glVertexAttribP3ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); + GLAPI void APIENTRY glVertexAttribP3uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint* value); + GLAPI void APIENTRY glVertexAttribP4ui(GLuint index, GLenum type, GLboolean normalized, GLuint value); + GLAPI void APIENTRY glVertexAttribP4uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint* value); + GLAPI void APIENTRY glVertexP2ui(GLenum type, GLuint value); + GLAPI void APIENTRY glVertexP2uiv(GLenum type, const GLuint* value); + GLAPI void APIENTRY glVertexP3ui(GLenum type, GLuint value); + GLAPI void APIENTRY glVertexP3uiv(GLenum type, const GLuint* value); + GLAPI void APIENTRY glVertexP4ui(GLenum type, GLuint value); + GLAPI void APIENTRY glVertexP4uiv(GLenum type, const GLuint* value); + GLAPI void APIENTRY glTexCoordP1ui(GLenum type, GLuint coords); + GLAPI void APIENTRY glTexCoordP1uiv(GLenum type, const GLuint* coords); + GLAPI void APIENTRY glTexCoordP2ui(GLenum type, GLuint coords); + GLAPI void APIENTRY glTexCoordP2uiv(GLenum type, const GLuint* coords); + GLAPI void APIENTRY glTexCoordP3ui(GLenum type, GLuint coords); + GLAPI void APIENTRY glTexCoordP3uiv(GLenum type, const GLuint* coords); + GLAPI void APIENTRY glTexCoordP4ui(GLenum type, GLuint coords); + GLAPI void APIENTRY glTexCoordP4uiv(GLenum type, const GLuint* coords); + GLAPI void APIENTRY glMultiTexCoordP1ui(GLenum texture, GLenum type, GLuint coords); + GLAPI void APIENTRY glMultiTexCoordP1uiv(GLenum texture, GLenum type, const GLuint* coords); + GLAPI void APIENTRY glMultiTexCoordP2ui(GLenum texture, GLenum type, GLuint coords); + GLAPI void APIENTRY glMultiTexCoordP2uiv(GLenum texture, GLenum type, const GLuint* coords); + GLAPI void APIENTRY glMultiTexCoordP3ui(GLenum texture, GLenum type, GLuint coords); + GLAPI void APIENTRY glMultiTexCoordP3uiv(GLenum texture, GLenum type, const GLuint* coords); + GLAPI void APIENTRY glMultiTexCoordP4ui(GLenum texture, GLenum type, GLuint coords); + GLAPI void APIENTRY glMultiTexCoordP4uiv(GLenum texture, GLenum type, const GLuint* coords); + GLAPI void APIENTRY glNormalP3ui(GLenum type, GLuint coords); + GLAPI void APIENTRY glNormalP3uiv(GLenum type, const GLuint* coords); + GLAPI void APIENTRY glColorP3ui(GLenum type, GLuint color); + GLAPI void APIENTRY glColorP3uiv(GLenum type, const GLuint* color); + GLAPI void APIENTRY glColorP4ui(GLenum type, GLuint color); + GLAPI void APIENTRY glColorP4uiv(GLenum type, const GLuint* color); + GLAPI void APIENTRY glSecondaryColorP3ui(GLenum type, GLuint color); + GLAPI void APIENTRY glSecondaryColorP3uiv(GLenum type, const GLuint* color); +#endif +#endif /* GL_VERSION_3_3 */ + +#ifndef GL_VERSION_4_0 +#define GL_VERSION_4_0 1 +#define GL_SAMPLE_SHADING 0x8C36 +#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37 +#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E +#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F +#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B +#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C +#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D +#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E +#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F +#define GL_DRAW_INDIRECT_BUFFER 0x8F3F +#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43 +#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F +#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A +#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B +#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C +#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D +#define GL_MAX_VERTEX_STREAMS 0x8E71 +#define GL_DOUBLE_VEC2 0x8FFC +#define GL_DOUBLE_VEC3 0x8FFD +#define GL_DOUBLE_VEC4 0x8FFE +#define GL_DOUBLE_MAT2 0x8F46 +#define GL_DOUBLE_MAT3 0x8F47 +#define GL_DOUBLE_MAT4 0x8F48 +#define GL_DOUBLE_MAT2x3 0x8F49 +#define GL_DOUBLE_MAT2x4 0x8F4A +#define GL_DOUBLE_MAT3x2 0x8F4B +#define GL_DOUBLE_MAT3x4 0x8F4C +#define GL_DOUBLE_MAT4x2 0x8F4D +#define GL_DOUBLE_MAT4x3 0x8F4E +#define GL_ACTIVE_SUBROUTINES 0x8DE5 +#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6 +#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47 +#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48 +#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49 +#define GL_MAX_SUBROUTINES 0x8DE7 +#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8 +#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A +#define GL_COMPATIBLE_SUBROUTINES 0x8E4B +#define GL_PATCHES 0x000E +#define GL_PATCH_VERTICES 0x8E72 +#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73 +#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74 +#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75 +#define GL_TESS_GEN_MODE 0x8E76 +#define GL_TESS_GEN_SPACING 0x8E77 +#define GL_TESS_GEN_VERTEX_ORDER 0x8E78 +#define GL_TESS_GEN_POINT_MODE 0x8E79 +#define GL_ISOLINES 0x8E7A +#define GL_FRACTIONAL_ODD 0x8E7B +#define GL_FRACTIONAL_EVEN 0x8E7C +#define GL_MAX_PATCH_VERTICES 0x8E7D +#define GL_MAX_TESS_GEN_LEVEL 0x8E7E +#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F +#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80 +#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81 +#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82 +#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83 +#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84 +#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85 +#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86 +#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89 +#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A +#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C +#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D +#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E +#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F +#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1 +#define GL_TESS_EVALUATION_SHADER 0x8E87 +#define GL_TESS_CONTROL_SHADER 0x8E88 +#define GL_TRANSFORM_FEEDBACK 0x8E22 +#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23 +#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24 +#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25 +#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70 + typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value); + typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode); + typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); + typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst); + typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); + typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void* indirect); + typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void* indirect); + typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x); + typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y); + typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble* params); + typedef GLint(APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar* name); + typedef GLuint(APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar* name); + typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint* values); + typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei* length, GLchar* name); + typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei* length, GLchar* name); + typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint* indices); + typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint* params); + typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint* values); + typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value); + typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat* values); + typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id); + typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint* ids); + typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint* ids); + typedef GLboolean(APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id); + typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void); + typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void); + typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id); + typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream); + typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id); + typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index); + typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMinSampleShading(GLfloat value); + GLAPI void APIENTRY glBlendEquationi(GLuint buf, GLenum mode); + GLAPI void APIENTRY glBlendEquationSeparatei(GLuint buf, GLenum modeRGB, GLenum modeAlpha); + GLAPI void APIENTRY glBlendFunci(GLuint buf, GLenum src, GLenum dst); + GLAPI void APIENTRY glBlendFuncSeparatei(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); + GLAPI void APIENTRY glDrawArraysIndirect(GLenum mode, const void* indirect); + GLAPI void APIENTRY glDrawElementsIndirect(GLenum mode, GLenum type, const void* indirect); + GLAPI void APIENTRY glUniform1d(GLint location, GLdouble x); + GLAPI void APIENTRY glUniform2d(GLint location, GLdouble x, GLdouble y); + GLAPI void APIENTRY glUniform3d(GLint location, GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glUniform4d(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glUniform1dv(GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glUniform2dv(GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glUniform3dv(GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glUniform4dv(GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glUniformMatrix2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glUniformMatrix3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glUniformMatrix4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glUniformMatrix2x3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glUniformMatrix2x4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glUniformMatrix3x2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glUniformMatrix3x4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glUniformMatrix4x2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glUniformMatrix4x3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glGetUniformdv(GLuint program, GLint location, GLdouble* params); + GLAPI GLint APIENTRY glGetSubroutineUniformLocation(GLuint program, GLenum shadertype, const GLchar* name); + GLAPI GLuint APIENTRY glGetSubroutineIndex(GLuint program, GLenum shadertype, const GLchar* name); + GLAPI void APIENTRY glGetActiveSubroutineUniformiv(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint* values); + GLAPI void APIENTRY glGetActiveSubroutineUniformName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei* length, GLchar* name); + GLAPI void APIENTRY glGetActiveSubroutineName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei* length, GLchar* name); + GLAPI void APIENTRY glUniformSubroutinesuiv(GLenum shadertype, GLsizei count, const GLuint* indices); + GLAPI void APIENTRY glGetUniformSubroutineuiv(GLenum shadertype, GLint location, GLuint* params); + GLAPI void APIENTRY glGetProgramStageiv(GLuint program, GLenum shadertype, GLenum pname, GLint* values); + GLAPI void APIENTRY glPatchParameteri(GLenum pname, GLint value); + GLAPI void APIENTRY glPatchParameterfv(GLenum pname, const GLfloat* values); + GLAPI void APIENTRY glBindTransformFeedback(GLenum target, GLuint id); + GLAPI void APIENTRY glDeleteTransformFeedbacks(GLsizei n, const GLuint* ids); + GLAPI void APIENTRY glGenTransformFeedbacks(GLsizei n, GLuint* ids); + GLAPI GLboolean APIENTRY glIsTransformFeedback(GLuint id); + GLAPI void APIENTRY glPauseTransformFeedback(void); + GLAPI void APIENTRY glResumeTransformFeedback(void); + GLAPI void APIENTRY glDrawTransformFeedback(GLenum mode, GLuint id); + GLAPI void APIENTRY glDrawTransformFeedbackStream(GLenum mode, GLuint id, GLuint stream); + GLAPI void APIENTRY glBeginQueryIndexed(GLenum target, GLuint index, GLuint id); + GLAPI void APIENTRY glEndQueryIndexed(GLenum target, GLuint index); + GLAPI void APIENTRY glGetQueryIndexediv(GLenum target, GLuint index, GLenum pname, GLint* params); +#endif +#endif /* GL_VERSION_4_0 */ + +#ifndef GL_VERSION_4_1 +#define GL_VERSION_4_1 1 +#define GL_FIXED 0x140C +#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A +#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B +#define GL_LOW_FLOAT 0x8DF0 +#define GL_MEDIUM_FLOAT 0x8DF1 +#define GL_HIGH_FLOAT 0x8DF2 +#define GL_LOW_INT 0x8DF3 +#define GL_MEDIUM_INT 0x8DF4 +#define GL_HIGH_INT 0x8DF5 +#define GL_SHADER_COMPILER 0x8DFA +#define GL_SHADER_BINARY_FORMATS 0x8DF8 +#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 +#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB +#define GL_MAX_VARYING_VECTORS 0x8DFC +#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD +#define GL_RGB565 0x8D62 +#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257 +#define GL_PROGRAM_BINARY_LENGTH 0x8741 +#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE +#define GL_PROGRAM_BINARY_FORMATS 0x87FF +#define GL_VERTEX_SHADER_BIT 0x00000001 +#define GL_FRAGMENT_SHADER_BIT 0x00000002 +#define GL_GEOMETRY_SHADER_BIT 0x00000004 +#define GL_TESS_CONTROL_SHADER_BIT 0x00000008 +#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010 +#define GL_ALL_SHADER_BITS 0xFFFFFFFF +#define GL_PROGRAM_SEPARABLE 0x8258 +#define GL_ACTIVE_PROGRAM 0x8259 +#define GL_PROGRAM_PIPELINE_BINDING 0x825A +#define GL_MAX_VIEWPORTS 0x825B +#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C +#define GL_VIEWPORT_BOUNDS_RANGE 0x825D +#define GL_LAYER_PROVOKING_VERTEX 0x825E +#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F +#define GL_UNDEFINED_VERTEX 0x8260 + typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void); + typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint* shaders, GLenum binaryFormat, const void* binary, GLsizei length); + typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision); + typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f); + typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d); + typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei* length, GLenum* binaryFormat, void* binary); + typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void* binary, GLsizei length); + typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value); + typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program); + typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program); + typedef GLuint(APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar* const* strings); + typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline); + typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint* pipelines); + typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint* pipelines); + typedef GLboolean(APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline); + typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline); + typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei* length, GLchar* infoLog); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble* params); + typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); + typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint* v); + typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble* v); + typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f); + typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat* data); + typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble* data); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glReleaseShaderCompiler(void); + GLAPI void APIENTRY glShaderBinary(GLsizei count, const GLuint* shaders, GLenum binaryFormat, const void* binary, GLsizei length); + GLAPI void APIENTRY glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision); + GLAPI void APIENTRY glDepthRangef(GLfloat n, GLfloat f); + GLAPI void APIENTRY glClearDepthf(GLfloat d); + GLAPI void APIENTRY glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei* length, GLenum* binaryFormat, void* binary); + GLAPI void APIENTRY glProgramBinary(GLuint program, GLenum binaryFormat, const void* binary, GLsizei length); + GLAPI void APIENTRY glProgramParameteri(GLuint program, GLenum pname, GLint value); + GLAPI void APIENTRY glUseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program); + GLAPI void APIENTRY glActiveShaderProgram(GLuint pipeline, GLuint program); + GLAPI GLuint APIENTRY glCreateShaderProgramv(GLenum type, GLsizei count, const GLchar* const* strings); + GLAPI void APIENTRY glBindProgramPipeline(GLuint pipeline); + GLAPI void APIENTRY glDeleteProgramPipelines(GLsizei n, const GLuint* pipelines); + GLAPI void APIENTRY glGenProgramPipelines(GLsizei n, GLuint* pipelines); + GLAPI GLboolean APIENTRY glIsProgramPipeline(GLuint pipeline); + GLAPI void APIENTRY glGetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint* params); + GLAPI void APIENTRY glProgramUniform1i(GLuint program, GLint location, GLint v0); + GLAPI void APIENTRY glProgramUniform1iv(GLuint program, GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glProgramUniform1f(GLuint program, GLint location, GLfloat v0); + GLAPI void APIENTRY glProgramUniform1fv(GLuint program, GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glProgramUniform1d(GLuint program, GLint location, GLdouble v0); + GLAPI void APIENTRY glProgramUniform1dv(GLuint program, GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glProgramUniform1ui(GLuint program, GLint location, GLuint v0); + GLAPI void APIENTRY glProgramUniform1uiv(GLuint program, GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1); + GLAPI void APIENTRY glProgramUniform2iv(GLuint program, GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glProgramUniform2f(GLuint program, GLint location, GLfloat v0, GLfloat v1); + GLAPI void APIENTRY glProgramUniform2fv(GLuint program, GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glProgramUniform2d(GLuint program, GLint location, GLdouble v0, GLdouble v1); + GLAPI void APIENTRY glProgramUniform2dv(GLuint program, GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1); + GLAPI void APIENTRY glProgramUniform2uiv(GLuint program, GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2); + GLAPI void APIENTRY glProgramUniform3iv(GLuint program, GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + GLAPI void APIENTRY glProgramUniform3fv(GLuint program, GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glProgramUniform3d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); + GLAPI void APIENTRY glProgramUniform3dv(GLuint program, GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); + GLAPI void APIENTRY glProgramUniform3uiv(GLuint program, GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + GLAPI void APIENTRY glProgramUniform4iv(GLuint program, GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + GLAPI void APIENTRY glProgramUniform4fv(GLuint program, GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glProgramUniform4d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); + GLAPI void APIENTRY glProgramUniform4dv(GLuint program, GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + GLAPI void APIENTRY glProgramUniform4uiv(GLuint program, GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glProgramUniformMatrix2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix2dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix3dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix4dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix2x3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix3x2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix2x4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix4x2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix3x4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix4x3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix2x3dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix3x2dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix2x4dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix4x2dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix3x4dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix4x3dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glValidateProgramPipeline(GLuint pipeline); + GLAPI void APIENTRY glGetProgramPipelineInfoLog(GLuint pipeline, GLsizei bufSize, GLsizei* length, GLchar* infoLog); + GLAPI void APIENTRY glVertexAttribL1d(GLuint index, GLdouble x); + GLAPI void APIENTRY glVertexAttribL2d(GLuint index, GLdouble x, GLdouble y); + GLAPI void APIENTRY glVertexAttribL3d(GLuint index, GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glVertexAttribL4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glVertexAttribL1dv(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribL2dv(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribL3dv(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribL4dv(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribLPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); + GLAPI void APIENTRY glGetVertexAttribLdv(GLuint index, GLenum pname, GLdouble* params); + GLAPI void APIENTRY glViewportArrayv(GLuint first, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glViewportIndexedf(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); + GLAPI void APIENTRY glViewportIndexedfv(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glScissorArrayv(GLuint first, GLsizei count, const GLint* v); + GLAPI void APIENTRY glScissorIndexed(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); + GLAPI void APIENTRY glScissorIndexedv(GLuint index, const GLint* v); + GLAPI void APIENTRY glDepthRangeArrayv(GLuint first, GLsizei count, const GLdouble* v); + GLAPI void APIENTRY glDepthRangeIndexed(GLuint index, GLdouble n, GLdouble f); + GLAPI void APIENTRY glGetFloati_v(GLenum target, GLuint index, GLfloat* data); + GLAPI void APIENTRY glGetDoublei_v(GLenum target, GLuint index, GLdouble* data); +#endif +#endif /* GL_VERSION_4_1 */ + +#ifndef GL_VERSION_4_2 +#define GL_VERSION_4_2 1 +#define GL_COPY_READ_BUFFER_BINDING 0x8F36 +#define GL_COPY_WRITE_BUFFER_BINDING 0x8F37 +#define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24 +#define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23 +#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127 +#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128 +#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129 +#define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A +#define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B +#define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C +#define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D +#define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E +#define GL_NUM_SAMPLE_COUNTS 0x9380 +#define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC +#define GL_ATOMIC_COUNTER_BUFFER 0x92C0 +#define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1 +#define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2 +#define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3 +#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4 +#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5 +#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB +#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC +#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD +#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE +#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF +#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0 +#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1 +#define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2 +#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3 +#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4 +#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5 +#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6 +#define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7 +#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8 +#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC +#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9 +#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA +#define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB +#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001 +#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002 +#define GL_UNIFORM_BARRIER_BIT 0x00000004 +#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008 +#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020 +#define GL_COMMAND_BARRIER_BIT 0x00000040 +#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080 +#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100 +#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200 +#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400 +#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800 +#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000 +#define GL_ALL_BARRIER_BITS 0xFFFFFFFF +#define GL_MAX_IMAGE_UNITS 0x8F38 +#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39 +#define GL_IMAGE_BINDING_NAME 0x8F3A +#define GL_IMAGE_BINDING_LEVEL 0x8F3B +#define GL_IMAGE_BINDING_LAYERED 0x8F3C +#define GL_IMAGE_BINDING_LAYER 0x8F3D +#define GL_IMAGE_BINDING_ACCESS 0x8F3E +#define GL_IMAGE_1D 0x904C +#define GL_IMAGE_2D 0x904D +#define GL_IMAGE_3D 0x904E +#define GL_IMAGE_2D_RECT 0x904F +#define GL_IMAGE_CUBE 0x9050 +#define GL_IMAGE_BUFFER 0x9051 +#define GL_IMAGE_1D_ARRAY 0x9052 +#define GL_IMAGE_2D_ARRAY 0x9053 +#define GL_IMAGE_CUBE_MAP_ARRAY 0x9054 +#define GL_IMAGE_2D_MULTISAMPLE 0x9055 +#define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056 +#define GL_INT_IMAGE_1D 0x9057 +#define GL_INT_IMAGE_2D 0x9058 +#define GL_INT_IMAGE_3D 0x9059 +#define GL_INT_IMAGE_2D_RECT 0x905A +#define GL_INT_IMAGE_CUBE 0x905B +#define GL_INT_IMAGE_BUFFER 0x905C +#define GL_INT_IMAGE_1D_ARRAY 0x905D +#define GL_INT_IMAGE_2D_ARRAY 0x905E +#define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F +#define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060 +#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061 +#define GL_UNSIGNED_INT_IMAGE_1D 0x9062 +#define GL_UNSIGNED_INT_IMAGE_2D 0x9063 +#define GL_UNSIGNED_INT_IMAGE_3D 0x9064 +#define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065 +#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066 +#define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067 +#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068 +#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069 +#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A +#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B +#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C +#define GL_MAX_IMAGE_SAMPLES 0x906D +#define GL_IMAGE_BINDING_FORMAT 0x906E +#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7 +#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8 +#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9 +#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA +#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB +#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC +#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD +#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE +#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF +#define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C +#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D +#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E +#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F +#define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F + typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); + typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei instancecount, GLuint baseinstance); + typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); + typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint* params); + typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); + typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers); + typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); + typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); + typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount); + typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawArraysInstancedBaseInstance(GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); + GLAPI void APIENTRY glDrawElementsInstancedBaseInstance(GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei instancecount, GLuint baseinstance); + GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance(GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); + GLAPI void APIENTRY glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint* params); + GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv(GLuint program, GLuint bufferIndex, GLenum pname, GLint* params); + GLAPI void APIENTRY glBindImageTexture(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); + GLAPI void APIENTRY glMemoryBarrier(GLbitfield barriers); + GLAPI void APIENTRY glTexStorage1D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); + GLAPI void APIENTRY glTexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glTexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); + GLAPI void APIENTRY glDrawTransformFeedbackInstanced(GLenum mode, GLuint id, GLsizei instancecount); + GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced(GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); +#endif +#endif /* GL_VERSION_4_2 */ + +#ifndef GL_VERSION_4_3 +#define GL_VERSION_4_3 1 + typedef void (APIENTRY* GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam); +#define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9 +#define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E +#define GL_COMPRESSED_RGB8_ETC2 0x9274 +#define GL_COMPRESSED_SRGB8_ETC2 0x9275 +#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276 +#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277 +#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278 +#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279 +#define GL_COMPRESSED_R11_EAC 0x9270 +#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271 +#define GL_COMPRESSED_RG11_EAC 0x9272 +#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273 +#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69 +#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A +#define GL_MAX_ELEMENT_INDEX 0x8D6B +#define GL_COMPUTE_SHADER 0x91B9 +#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB +#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC +#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD +#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262 +#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263 +#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264 +#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265 +#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266 +#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB +#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE +#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF +#define GL_COMPUTE_WORK_GROUP_SIZE 0x8267 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED +#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE +#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF +#define GL_COMPUTE_SHADER_BIT 0x00000020 +#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243 +#define GL_DEBUG_CALLBACK_FUNCTION 0x8244 +#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245 +#define GL_DEBUG_SOURCE_API 0x8246 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247 +#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248 +#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249 +#define GL_DEBUG_SOURCE_APPLICATION 0x824A +#define GL_DEBUG_SOURCE_OTHER 0x824B +#define GL_DEBUG_TYPE_ERROR 0x824C +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E +#define GL_DEBUG_TYPE_PORTABILITY 0x824F +#define GL_DEBUG_TYPE_PERFORMANCE 0x8250 +#define GL_DEBUG_TYPE_OTHER 0x8251 +#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143 +#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144 +#define GL_DEBUG_LOGGED_MESSAGES 0x9145 +#define GL_DEBUG_SEVERITY_HIGH 0x9146 +#define GL_DEBUG_SEVERITY_MEDIUM 0x9147 +#define GL_DEBUG_SEVERITY_LOW 0x9148 +#define GL_DEBUG_TYPE_MARKER 0x8268 +#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269 +#define GL_DEBUG_TYPE_POP_GROUP 0x826A +#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B +#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C +#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D +#define GL_BUFFER 0x82E0 +#define GL_SHADER 0x82E1 +#define GL_PROGRAM 0x82E2 +#define GL_QUERY 0x82E3 +#define GL_PROGRAM_PIPELINE 0x82E4 +#define GL_SAMPLER 0x82E6 +#define GL_MAX_LABEL_LENGTH 0x82E8 +#define GL_DEBUG_OUTPUT 0x92E0 +#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 +#define GL_MAX_UNIFORM_LOCATIONS 0x826E +#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310 +#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311 +#define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312 +#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313 +#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314 +#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315 +#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316 +#define GL_MAX_FRAMEBUFFER_LAYERS 0x9317 +#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318 +#define GL_INTERNALFORMAT_SUPPORTED 0x826F +#define GL_INTERNALFORMAT_PREFERRED 0x8270 +#define GL_INTERNALFORMAT_RED_SIZE 0x8271 +#define GL_INTERNALFORMAT_GREEN_SIZE 0x8272 +#define GL_INTERNALFORMAT_BLUE_SIZE 0x8273 +#define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274 +#define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275 +#define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276 +#define GL_INTERNALFORMAT_SHARED_SIZE 0x8277 +#define GL_INTERNALFORMAT_RED_TYPE 0x8278 +#define GL_INTERNALFORMAT_GREEN_TYPE 0x8279 +#define GL_INTERNALFORMAT_BLUE_TYPE 0x827A +#define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B +#define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C +#define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D +#define GL_MAX_WIDTH 0x827E +#define GL_MAX_HEIGHT 0x827F +#define GL_MAX_DEPTH 0x8280 +#define GL_MAX_LAYERS 0x8281 +#define GL_MAX_COMBINED_DIMENSIONS 0x8282 +#define GL_COLOR_COMPONENTS 0x8283 +#define GL_DEPTH_COMPONENTS 0x8284 +#define GL_STENCIL_COMPONENTS 0x8285 +#define GL_COLOR_RENDERABLE 0x8286 +#define GL_DEPTH_RENDERABLE 0x8287 +#define GL_STENCIL_RENDERABLE 0x8288 +#define GL_FRAMEBUFFER_RENDERABLE 0x8289 +#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A +#define GL_FRAMEBUFFER_BLEND 0x828B +#define GL_READ_PIXELS 0x828C +#define GL_READ_PIXELS_FORMAT 0x828D +#define GL_READ_PIXELS_TYPE 0x828E +#define GL_TEXTURE_IMAGE_FORMAT 0x828F +#define GL_TEXTURE_IMAGE_TYPE 0x8290 +#define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291 +#define GL_GET_TEXTURE_IMAGE_TYPE 0x8292 +#define GL_MIPMAP 0x8293 +#define GL_MANUAL_GENERATE_MIPMAP 0x8294 +#define GL_AUTO_GENERATE_MIPMAP 0x8295 +#define GL_COLOR_ENCODING 0x8296 +#define GL_SRGB_READ 0x8297 +#define GL_SRGB_WRITE 0x8298 +#define GL_FILTER 0x829A +#define GL_VERTEX_TEXTURE 0x829B +#define GL_TESS_CONTROL_TEXTURE 0x829C +#define GL_TESS_EVALUATION_TEXTURE 0x829D +#define GL_GEOMETRY_TEXTURE 0x829E +#define GL_FRAGMENT_TEXTURE 0x829F +#define GL_COMPUTE_TEXTURE 0x82A0 +#define GL_TEXTURE_SHADOW 0x82A1 +#define GL_TEXTURE_GATHER 0x82A2 +#define GL_TEXTURE_GATHER_SHADOW 0x82A3 +#define GL_SHADER_IMAGE_LOAD 0x82A4 +#define GL_SHADER_IMAGE_STORE 0x82A5 +#define GL_SHADER_IMAGE_ATOMIC 0x82A6 +#define GL_IMAGE_TEXEL_SIZE 0x82A7 +#define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8 +#define GL_IMAGE_PIXEL_FORMAT 0x82A9 +#define GL_IMAGE_PIXEL_TYPE 0x82AA +#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC +#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD +#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE +#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF +#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1 +#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2 +#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3 +#define GL_CLEAR_BUFFER 0x82B4 +#define GL_TEXTURE_VIEW 0x82B5 +#define GL_VIEW_COMPATIBILITY_CLASS 0x82B6 +#define GL_FULL_SUPPORT 0x82B7 +#define GL_CAVEAT_SUPPORT 0x82B8 +#define GL_IMAGE_CLASS_4_X_32 0x82B9 +#define GL_IMAGE_CLASS_2_X_32 0x82BA +#define GL_IMAGE_CLASS_1_X_32 0x82BB +#define GL_IMAGE_CLASS_4_X_16 0x82BC +#define GL_IMAGE_CLASS_2_X_16 0x82BD +#define GL_IMAGE_CLASS_1_X_16 0x82BE +#define GL_IMAGE_CLASS_4_X_8 0x82BF +#define GL_IMAGE_CLASS_2_X_8 0x82C0 +#define GL_IMAGE_CLASS_1_X_8 0x82C1 +#define GL_IMAGE_CLASS_11_11_10 0x82C2 +#define GL_IMAGE_CLASS_10_10_10_2 0x82C3 +#define GL_VIEW_CLASS_128_BITS 0x82C4 +#define GL_VIEW_CLASS_96_BITS 0x82C5 +#define GL_VIEW_CLASS_64_BITS 0x82C6 +#define GL_VIEW_CLASS_48_BITS 0x82C7 +#define GL_VIEW_CLASS_32_BITS 0x82C8 +#define GL_VIEW_CLASS_24_BITS 0x82C9 +#define GL_VIEW_CLASS_16_BITS 0x82CA +#define GL_VIEW_CLASS_8_BITS 0x82CB +#define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC +#define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD +#define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE +#define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF +#define GL_VIEW_CLASS_RGTC1_RED 0x82D0 +#define GL_VIEW_CLASS_RGTC2_RG 0x82D1 +#define GL_VIEW_CLASS_BPTC_UNORM 0x82D2 +#define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3 +#define GL_UNIFORM 0x92E1 +#define GL_UNIFORM_BLOCK 0x92E2 +#define GL_PROGRAM_INPUT 0x92E3 +#define GL_PROGRAM_OUTPUT 0x92E4 +#define GL_BUFFER_VARIABLE 0x92E5 +#define GL_SHADER_STORAGE_BLOCK 0x92E6 +#define GL_VERTEX_SUBROUTINE 0x92E8 +#define GL_TESS_CONTROL_SUBROUTINE 0x92E9 +#define GL_TESS_EVALUATION_SUBROUTINE 0x92EA +#define GL_GEOMETRY_SUBROUTINE 0x92EB +#define GL_FRAGMENT_SUBROUTINE 0x92EC +#define GL_COMPUTE_SUBROUTINE 0x92ED +#define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE +#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF +#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0 +#define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1 +#define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2 +#define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3 +#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4 +#define GL_ACTIVE_RESOURCES 0x92F5 +#define GL_MAX_NAME_LENGTH 0x92F6 +#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7 +#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8 +#define GL_NAME_LENGTH 0x92F9 +#define GL_TYPE 0x92FA +#define GL_ARRAY_SIZE 0x92FB +#define GL_OFFSET 0x92FC +#define GL_BLOCK_INDEX 0x92FD +#define GL_ARRAY_STRIDE 0x92FE +#define GL_MATRIX_STRIDE 0x92FF +#define GL_IS_ROW_MAJOR 0x9300 +#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301 +#define GL_BUFFER_BINDING 0x9302 +#define GL_BUFFER_DATA_SIZE 0x9303 +#define GL_NUM_ACTIVE_VARIABLES 0x9304 +#define GL_ACTIVE_VARIABLES 0x9305 +#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306 +#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307 +#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308 +#define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309 +#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A +#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B +#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C +#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D +#define GL_LOCATION 0x930E +#define GL_LOCATION_INDEX 0x930F +#define GL_IS_PER_PATCH 0x92E7 +#define GL_SHADER_STORAGE_BUFFER 0x90D2 +#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3 +#define GL_SHADER_STORAGE_BUFFER_START 0x90D4 +#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5 +#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6 +#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7 +#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8 +#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9 +#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA +#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB +#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC +#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD +#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE +#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF +#define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000 +#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39 +#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA +#define GL_TEXTURE_BUFFER_OFFSET 0x919D +#define GL_TEXTURE_BUFFER_SIZE 0x919E +#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F +#define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB +#define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC +#define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD +#define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE +#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF +#define GL_VERTEX_ATTRIB_BINDING 0x82D4 +#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5 +#define GL_VERTEX_BINDING_DIVISOR 0x82D6 +#define GL_VERTEX_BINDING_OFFSET 0x82D7 +#define GL_VERTEX_BINDING_STRIDE 0x82D8 +#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9 +#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA +#define GL_VERTEX_BINDING_BUFFER 0x8F4F +#define GL_DISPLAY_LIST 0x82E7 + typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void* data); + typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void* data); + typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); + typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect); + typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); + typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64* params); + typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); + typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); + typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer); + typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum* attachments); + typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum* attachments, GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void* indirect, GLsizei drawcount, GLsizei stride); + typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void* indirect, GLsizei drawcount, GLsizei stride); + typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint* params); + typedef GLuint(APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar* name); + typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei* length, GLchar* name); + typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum* props, GLsizei count, GLsizei* length, GLint* params); + typedef GLint(APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar* name); + typedef GLint(APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar* name); + typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); + typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); + typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); + typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); + typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); + typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); + typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex); + typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor); + typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled); + typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* buf); + typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void* userParam); + typedef GLuint(APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufSize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, GLchar* messageLog); + typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar* message); + typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void); + typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar* label); + typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei* length, GLchar* label); + typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void* ptr, GLsizei length, const GLchar* label); + typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void* ptr, GLsizei bufSize, GLsizei* length, GLchar* label); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glClearBufferData(GLenum target, GLenum internalformat, GLenum format, GLenum type, const void* data); + GLAPI void APIENTRY glClearBufferSubData(GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void* data); + GLAPI void APIENTRY glDispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); + GLAPI void APIENTRY glDispatchComputeIndirect(GLintptr indirect); + GLAPI void APIENTRY glCopyImageSubData(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); + GLAPI void APIENTRY glFramebufferParameteri(GLenum target, GLenum pname, GLint param); + GLAPI void APIENTRY glGetFramebufferParameteriv(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetInternalformati64v(GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64* params); + GLAPI void APIENTRY glInvalidateTexSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); + GLAPI void APIENTRY glInvalidateTexImage(GLuint texture, GLint level); + GLAPI void APIENTRY glInvalidateBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr length); + GLAPI void APIENTRY glInvalidateBufferData(GLuint buffer); + GLAPI void APIENTRY glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum* attachments); + GLAPI void APIENTRY glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum* attachments, GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glMultiDrawArraysIndirect(GLenum mode, const void* indirect, GLsizei drawcount, GLsizei stride); + GLAPI void APIENTRY glMultiDrawElementsIndirect(GLenum mode, GLenum type, const void* indirect, GLsizei drawcount, GLsizei stride); + GLAPI void APIENTRY glGetProgramInterfaceiv(GLuint program, GLenum programInterface, GLenum pname, GLint* params); + GLAPI GLuint APIENTRY glGetProgramResourceIndex(GLuint program, GLenum programInterface, const GLchar* name); + GLAPI void APIENTRY glGetProgramResourceName(GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei* length, GLchar* name); + GLAPI void APIENTRY glGetProgramResourceiv(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum* props, GLsizei count, GLsizei* length, GLint* params); + GLAPI GLint APIENTRY glGetProgramResourceLocation(GLuint program, GLenum programInterface, const GLchar* name); + GLAPI GLint APIENTRY glGetProgramResourceLocationIndex(GLuint program, GLenum programInterface, const GLchar* name); + GLAPI void APIENTRY glShaderStorageBlockBinding(GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); + GLAPI void APIENTRY glTexBufferRange(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); + GLAPI void APIENTRY glTexStorage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); + GLAPI void APIENTRY glTexStorage3DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + GLAPI void APIENTRY glTextureView(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); + GLAPI void APIENTRY glBindVertexBuffer(GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); + GLAPI void APIENTRY glVertexAttribFormat(GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); + GLAPI void APIENTRY glVertexAttribIFormat(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + GLAPI void APIENTRY glVertexAttribLFormat(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + GLAPI void APIENTRY glVertexAttribBinding(GLuint attribindex, GLuint bindingindex); + GLAPI void APIENTRY glVertexBindingDivisor(GLuint bindingindex, GLuint divisor); + GLAPI void APIENTRY glDebugMessageControl(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled); + GLAPI void APIENTRY glDebugMessageInsert(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* buf); + GLAPI void APIENTRY glDebugMessageCallback(GLDEBUGPROC callback, const void* userParam); + GLAPI GLuint APIENTRY glGetDebugMessageLog(GLuint count, GLsizei bufSize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, GLchar* messageLog); + GLAPI void APIENTRY glPushDebugGroup(GLenum source, GLuint id, GLsizei length, const GLchar* message); + GLAPI void APIENTRY glPopDebugGroup(void); + GLAPI void APIENTRY glObjectLabel(GLenum identifier, GLuint name, GLsizei length, const GLchar* label); + GLAPI void APIENTRY glGetObjectLabel(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei* length, GLchar* label); + GLAPI void APIENTRY glObjectPtrLabel(const void* ptr, GLsizei length, const GLchar* label); + GLAPI void APIENTRY glGetObjectPtrLabel(const void* ptr, GLsizei bufSize, GLsizei* length, GLchar* label); +#endif +#endif /* GL_VERSION_4_3 */ + +#ifndef GL_VERSION_4_4 +#define GL_VERSION_4_4 1 +#define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5 +#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221 +#define GL_TEXTURE_BUFFER_BINDING 0x8C2A +#define GL_MAP_PERSISTENT_BIT 0x0040 +#define GL_MAP_COHERENT_BIT 0x0080 +#define GL_DYNAMIC_STORAGE_BIT 0x0100 +#define GL_CLIENT_STORAGE_BIT 0x0200 +#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000 +#define GL_BUFFER_IMMUTABLE_STORAGE 0x821F +#define GL_BUFFER_STORAGE_FLAGS 0x8220 +#define GL_CLEAR_TEXTURE 0x9365 +#define GL_LOCATION_COMPONENT 0x934A +#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B +#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C +#define GL_QUERY_BUFFER 0x9192 +#define GL_QUERY_BUFFER_BARRIER_BIT 0x00008000 +#define GL_QUERY_BUFFER_BINDING 0x9193 +#define GL_QUERY_RESULT_NO_WAIT 0x9194 +#define GL_MIRROR_CLAMP_TO_EDGE 0x8743 + typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC) (GLenum target, GLsizeiptr size, const void* data, GLbitfield flags); + typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void* data); + typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* data); + typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint* buffers); + typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint* buffers, const GLintptr* offsets, const GLsizeiptr* sizes); + typedef void (APIENTRYP PFNGLBINDTEXTURESPROC) (GLuint first, GLsizei count, const GLuint* textures); + typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC) (GLuint first, GLsizei count, const GLuint* samplers); + typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC) (GLuint first, GLsizei count, const GLuint* textures); + typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC) (GLuint first, GLsizei count, const GLuint* buffers, const GLintptr* offsets, const GLsizei* strides); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBufferStorage(GLenum target, GLsizeiptr size, const void* data, GLbitfield flags); + GLAPI void APIENTRY glClearTexImage(GLuint texture, GLint level, GLenum format, GLenum type, const void* data); + GLAPI void APIENTRY glClearTexSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* data); + GLAPI void APIENTRY glBindBuffersBase(GLenum target, GLuint first, GLsizei count, const GLuint* buffers); + GLAPI void APIENTRY glBindBuffersRange(GLenum target, GLuint first, GLsizei count, const GLuint* buffers, const GLintptr* offsets, const GLsizeiptr* sizes); + GLAPI void APIENTRY glBindTextures(GLuint first, GLsizei count, const GLuint* textures); + GLAPI void APIENTRY glBindSamplers(GLuint first, GLsizei count, const GLuint* samplers); + GLAPI void APIENTRY glBindImageTextures(GLuint first, GLsizei count, const GLuint* textures); + GLAPI void APIENTRY glBindVertexBuffers(GLuint first, GLsizei count, const GLuint* buffers, const GLintptr* offsets, const GLsizei* strides); +#endif +#endif /* GL_VERSION_4_4 */ + +#ifndef GL_VERSION_4_5 +#define GL_VERSION_4_5 1 +#define GL_CONTEXT_LOST 0x0507 +#define GL_NEGATIVE_ONE_TO_ONE 0x935E +#define GL_ZERO_TO_ONE 0x935F +#define GL_CLIP_ORIGIN 0x935C +#define GL_CLIP_DEPTH_MODE 0x935D +#define GL_QUERY_WAIT_INVERTED 0x8E17 +#define GL_QUERY_NO_WAIT_INVERTED 0x8E18 +#define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8E19 +#define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8E1A +#define GL_MAX_CULL_DISTANCES 0x82F9 +#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82FA +#define GL_TEXTURE_TARGET 0x1006 +#define GL_QUERY_TARGET 0x82EA +#define GL_GUILTY_CONTEXT_RESET 0x8253 +#define GL_INNOCENT_CONTEXT_RESET 0x8254 +#define GL_UNKNOWN_CONTEXT_RESET 0x8255 +#define GL_RESET_NOTIFICATION_STRATEGY 0x8256 +#define GL_LOSE_CONTEXT_ON_RESET 0x8252 +#define GL_NO_RESET_NOTIFICATION 0x8261 +#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004 +#define GL_COLOR_TABLE 0x80D0 +#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1 +#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2 +#define GL_PROXY_COLOR_TABLE 0x80D3 +#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4 +#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5 +#define GL_CONVOLUTION_1D 0x8010 +#define GL_CONVOLUTION_2D 0x8011 +#define GL_SEPARABLE_2D 0x8012 +#define GL_HISTOGRAM 0x8024 +#define GL_PROXY_HISTOGRAM 0x8025 +#define GL_MINMAX 0x802E +#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB +#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC + typedef void (APIENTRYP PFNGLCLIPCONTROLPROC) (GLenum origin, GLenum depth); + typedef void (APIENTRYP PFNGLCREATETRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint* ids); + typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC) (GLuint xfb, GLuint index, GLuint buffer); + typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC) (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); + typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKIVPROC) (GLuint xfb, GLenum pname, GLint* param); + typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint* param); + typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint64* param); + typedef void (APIENTRYP PFNGLCREATEBUFFERSPROC) (GLsizei n, GLuint* buffers); + typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEPROC) (GLuint buffer, GLsizeiptr size, const void* data, GLbitfield flags); + typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAPROC) (GLuint buffer, GLsizeiptr size, const void* data, GLenum usage); + typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data); + typedef void (APIENTRYP PFNGLCOPYNAMEDBUFFERSUBDATAPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void* data); + typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void* data); + typedef void* (APIENTRYP PFNGLMAPNAMEDBUFFERPROC) (GLuint buffer, GLenum access); + typedef void* (APIENTRYP PFNGLMAPNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); + typedef GLboolean(APIENTRYP PFNGLUNMAPNAMEDBUFFERPROC) (GLuint buffer); + typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); + typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVPROC) (GLuint buffer, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERI64VPROC) (GLuint buffer, GLenum pname, GLint64* params); + typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVPROC) (GLuint buffer, GLenum pname, void** params); + typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void* data); + typedef void (APIENTRYP PFNGLCREATEFRAMEBUFFERSPROC) (GLsizei n, GLuint* framebuffers); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC) (GLuint framebuffer, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC) (GLuint framebuffer, GLenum buf); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC) (GLuint framebuffer, GLsizei n, const GLenum* bufs); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC) (GLuint framebuffer, GLenum src); + typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum* attachments); + typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum* attachments, GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint* value); + typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint* value); + typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat* value); + typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFIPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); + typedef void (APIENTRYP PFNGLBLITNAMEDFRAMEBUFFERPROC) (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); + typedef GLenum(APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC) (GLuint framebuffer, GLenum target); + typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC) (GLuint framebuffer, GLenum pname, GLint* param); + typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLCREATERENDERBUFFERSPROC) (GLsizei n, GLuint* renderbuffers); + typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC) (GLuint renderbuffer, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLCREATETEXTURESPROC) (GLenum target, GLsizei n, GLuint* textures); + typedef void (APIENTRYP PFNGLTEXTUREBUFFERPROC) (GLuint texture, GLenum internalformat, GLuint buffer); + typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEPROC) (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); + typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width); + typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); + typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); + typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); + typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFPROC) (GLuint texture, GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, const GLfloat* param); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIPROC) (GLuint texture, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, const GLuint* params); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, const GLint* param); + typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPPROC) (GLuint texture); + typedef void (APIENTRYP PFNGLBINDTEXTUREUNITPROC) (GLuint unit, GLuint texture); + typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* pixels); + typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLsizei bufSize, void* pixels); + typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVPROC) (GLuint texture, GLint level, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVPROC) (GLuint texture, GLint level, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, GLuint* params); + typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLCREATEVERTEXARRAYSPROC) (GLsizei n, GLuint* arrays); + typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index); + typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index); + typedef void (APIENTRYP PFNGLVERTEXARRAYELEMENTBUFFERPROC) (GLuint vaobj, GLuint buffer); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERSPROC) (GLuint vaobj, GLuint first, GLsizei count, const GLuint* buffers, const GLintptr* offsets, const GLsizei* strides); + typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBBINDINGPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex); + typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); + typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBIFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBLFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + typedef void (APIENTRYP PFNGLVERTEXARRAYBINDINGDIVISORPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor); + typedef void (APIENTRYP PFNGLGETVERTEXARRAYIVPROC) (GLuint vaobj, GLenum pname, GLint* param); + typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXEDIVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint* param); + typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXED64IVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint64* param); + typedef void (APIENTRYP PFNGLCREATESAMPLERSPROC) (GLsizei n, GLuint* samplers); + typedef void (APIENTRYP PFNGLCREATEPROGRAMPIPELINESPROC) (GLsizei n, GLuint* pipelines); + typedef void (APIENTRYP PFNGLCREATEQUERIESPROC) (GLenum target, GLsizei n, GLuint* ids); + typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + typedef void (APIENTRYP PFNGLMEMORYBARRIERBYREGIONPROC) (GLbitfield barriers); + typedef void (APIENTRYP PFNGLGETTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void* pixels); + typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void* pixels); + typedef GLenum(APIENTRYP PFNGLGETGRAPHICSRESETSTATUSPROC) (void); + typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLsizei bufSize, void* pixels); + typedef void (APIENTRYP PFNGLGETNTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* pixels); + typedef void (APIENTRYP PFNGLGETNUNIFORMDVPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble* params); + typedef void (APIENTRYP PFNGLGETNUNIFORMFVPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat* params); + typedef void (APIENTRYP PFNGLGETNUNIFORMIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLint* params); + typedef void (APIENTRYP PFNGLGETNUNIFORMUIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint* params); + typedef void (APIENTRYP PFNGLREADNPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void* data); + typedef void (APIENTRYP PFNGLGETNMAPDVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble* v); + typedef void (APIENTRYP PFNGLGETNMAPFVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat* v); + typedef void (APIENTRYP PFNGLGETNMAPIVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint* v); + typedef void (APIENTRYP PFNGLGETNPIXELMAPFVPROC) (GLenum map, GLsizei bufSize, GLfloat* values); + typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVPROC) (GLenum map, GLsizei bufSize, GLuint* values); + typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVPROC) (GLenum map, GLsizei bufSize, GLushort* values); + typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEPROC) (GLsizei bufSize, GLubyte* pattern); + typedef void (APIENTRYP PFNGLGETNCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* table); + typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* image); + typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void* row, GLsizei columnBufSize, void* column, void* span); + typedef void (APIENTRYP PFNGLGETNHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); + typedef void (APIENTRYP PFNGLGETNMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); + typedef void (APIENTRYP PFNGLTEXTUREBARRIERPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glClipControl(GLenum origin, GLenum depth); + GLAPI void APIENTRY glCreateTransformFeedbacks(GLsizei n, GLuint* ids); + GLAPI void APIENTRY glTransformFeedbackBufferBase(GLuint xfb, GLuint index, GLuint buffer); + GLAPI void APIENTRY glTransformFeedbackBufferRange(GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); + GLAPI void APIENTRY glGetTransformFeedbackiv(GLuint xfb, GLenum pname, GLint* param); + GLAPI void APIENTRY glGetTransformFeedbacki_v(GLuint xfb, GLenum pname, GLuint index, GLint* param); + GLAPI void APIENTRY glGetTransformFeedbacki64_v(GLuint xfb, GLenum pname, GLuint index, GLint64* param); + GLAPI void APIENTRY glCreateBuffers(GLsizei n, GLuint* buffers); + GLAPI void APIENTRY glNamedBufferStorage(GLuint buffer, GLsizeiptr size, const void* data, GLbitfield flags); + GLAPI void APIENTRY glNamedBufferData(GLuint buffer, GLsizeiptr size, const void* data, GLenum usage); + GLAPI void APIENTRY glNamedBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data); + GLAPI void APIENTRY glCopyNamedBufferSubData(GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + GLAPI void APIENTRY glClearNamedBufferData(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void* data); + GLAPI void APIENTRY glClearNamedBufferSubData(GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void* data); + GLAPI void* APIENTRY glMapNamedBuffer(GLuint buffer, GLenum access); + GLAPI void* APIENTRY glMapNamedBufferRange(GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); + GLAPI GLboolean APIENTRY glUnmapNamedBuffer(GLuint buffer); + GLAPI void APIENTRY glFlushMappedNamedBufferRange(GLuint buffer, GLintptr offset, GLsizeiptr length); + GLAPI void APIENTRY glGetNamedBufferParameteriv(GLuint buffer, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetNamedBufferParameteri64v(GLuint buffer, GLenum pname, GLint64* params); + GLAPI void APIENTRY glGetNamedBufferPointerv(GLuint buffer, GLenum pname, void** params); + GLAPI void APIENTRY glGetNamedBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, void* data); + GLAPI void APIENTRY glCreateFramebuffers(GLsizei n, GLuint* framebuffers); + GLAPI void APIENTRY glNamedFramebufferRenderbuffer(GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); + GLAPI void APIENTRY glNamedFramebufferParameteri(GLuint framebuffer, GLenum pname, GLint param); + GLAPI void APIENTRY glNamedFramebufferTexture(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); + GLAPI void APIENTRY glNamedFramebufferTextureLayer(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); + GLAPI void APIENTRY glNamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf); + GLAPI void APIENTRY glNamedFramebufferDrawBuffers(GLuint framebuffer, GLsizei n, const GLenum* bufs); + GLAPI void APIENTRY glNamedFramebufferReadBuffer(GLuint framebuffer, GLenum src); + GLAPI void APIENTRY glInvalidateNamedFramebufferData(GLuint framebuffer, GLsizei numAttachments, const GLenum* attachments); + GLAPI void APIENTRY glInvalidateNamedFramebufferSubData(GLuint framebuffer, GLsizei numAttachments, const GLenum* attachments, GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glClearNamedFramebufferiv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint* value); + GLAPI void APIENTRY glClearNamedFramebufferuiv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint* value); + GLAPI void APIENTRY glClearNamedFramebufferfv(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat* value); + GLAPI void APIENTRY glClearNamedFramebufferfi(GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); + GLAPI void APIENTRY glBlitNamedFramebuffer(GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); + GLAPI GLenum APIENTRY glCheckNamedFramebufferStatus(GLuint framebuffer, GLenum target); + GLAPI void APIENTRY glGetNamedFramebufferParameteriv(GLuint framebuffer, GLenum pname, GLint* param); + GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameteriv(GLuint framebuffer, GLenum attachment, GLenum pname, GLint* params); + GLAPI void APIENTRY glCreateRenderbuffers(GLsizei n, GLuint* renderbuffers); + GLAPI void APIENTRY glNamedRenderbufferStorage(GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glNamedRenderbufferStorageMultisample(GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glGetNamedRenderbufferParameteriv(GLuint renderbuffer, GLenum pname, GLint* params); + GLAPI void APIENTRY glCreateTextures(GLenum target, GLsizei n, GLuint* textures); + GLAPI void APIENTRY glTextureBuffer(GLuint texture, GLenum internalformat, GLuint buffer); + GLAPI void APIENTRY glTextureBufferRange(GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); + GLAPI void APIENTRY glTextureStorage1D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width); + GLAPI void APIENTRY glTextureStorage2D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glTextureStorage3D(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); + GLAPI void APIENTRY glTextureStorage2DMultisample(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); + GLAPI void APIENTRY glTextureStorage3DMultisample(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + GLAPI void APIENTRY glTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glCompressedTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCopyTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); + GLAPI void APIENTRY glCopyTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glCopyTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glTextureParameterf(GLuint texture, GLenum pname, GLfloat param); + GLAPI void APIENTRY glTextureParameterfv(GLuint texture, GLenum pname, const GLfloat* param); + GLAPI void APIENTRY glTextureParameteri(GLuint texture, GLenum pname, GLint param); + GLAPI void APIENTRY glTextureParameterIiv(GLuint texture, GLenum pname, const GLint* params); + GLAPI void APIENTRY glTextureParameterIuiv(GLuint texture, GLenum pname, const GLuint* params); + GLAPI void APIENTRY glTextureParameteriv(GLuint texture, GLenum pname, const GLint* param); + GLAPI void APIENTRY glGenerateTextureMipmap(GLuint texture); + GLAPI void APIENTRY glBindTextureUnit(GLuint unit, GLuint texture); + GLAPI void APIENTRY glGetTextureImage(GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* pixels); + GLAPI void APIENTRY glGetCompressedTextureImage(GLuint texture, GLint level, GLsizei bufSize, void* pixels); + GLAPI void APIENTRY glGetTextureLevelParameterfv(GLuint texture, GLint level, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetTextureLevelParameteriv(GLuint texture, GLint level, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetTextureParameterfv(GLuint texture, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetTextureParameterIiv(GLuint texture, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetTextureParameterIuiv(GLuint texture, GLenum pname, GLuint* params); + GLAPI void APIENTRY glGetTextureParameteriv(GLuint texture, GLenum pname, GLint* params); + GLAPI void APIENTRY glCreateVertexArrays(GLsizei n, GLuint* arrays); + GLAPI void APIENTRY glDisableVertexArrayAttrib(GLuint vaobj, GLuint index); + GLAPI void APIENTRY glEnableVertexArrayAttrib(GLuint vaobj, GLuint index); + GLAPI void APIENTRY glVertexArrayElementBuffer(GLuint vaobj, GLuint buffer); + GLAPI void APIENTRY glVertexArrayVertexBuffer(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); + GLAPI void APIENTRY glVertexArrayVertexBuffers(GLuint vaobj, GLuint first, GLsizei count, const GLuint* buffers, const GLintptr* offsets, const GLsizei* strides); + GLAPI void APIENTRY glVertexArrayAttribBinding(GLuint vaobj, GLuint attribindex, GLuint bindingindex); + GLAPI void APIENTRY glVertexArrayAttribFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); + GLAPI void APIENTRY glVertexArrayAttribIFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + GLAPI void APIENTRY glVertexArrayAttribLFormat(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + GLAPI void APIENTRY glVertexArrayBindingDivisor(GLuint vaobj, GLuint bindingindex, GLuint divisor); + GLAPI void APIENTRY glGetVertexArrayiv(GLuint vaobj, GLenum pname, GLint* param); + GLAPI void APIENTRY glGetVertexArrayIndexediv(GLuint vaobj, GLuint index, GLenum pname, GLint* param); + GLAPI void APIENTRY glGetVertexArrayIndexed64iv(GLuint vaobj, GLuint index, GLenum pname, GLint64* param); + GLAPI void APIENTRY glCreateSamplers(GLsizei n, GLuint* samplers); + GLAPI void APIENTRY glCreateProgramPipelines(GLsizei n, GLuint* pipelines); + GLAPI void APIENTRY glCreateQueries(GLenum target, GLsizei n, GLuint* ids); + GLAPI void APIENTRY glGetQueryBufferObjecti64v(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + GLAPI void APIENTRY glGetQueryBufferObjectiv(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + GLAPI void APIENTRY glGetQueryBufferObjectui64v(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + GLAPI void APIENTRY glGetQueryBufferObjectuiv(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); + GLAPI void APIENTRY glMemoryBarrierByRegion(GLbitfield barriers); + GLAPI void APIENTRY glGetTextureSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void* pixels); + GLAPI void APIENTRY glGetCompressedTextureSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void* pixels); + GLAPI GLenum APIENTRY glGetGraphicsResetStatus(void); + GLAPI void APIENTRY glGetnCompressedTexImage(GLenum target, GLint lod, GLsizei bufSize, void* pixels); + GLAPI void APIENTRY glGetnTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* pixels); + GLAPI void APIENTRY glGetnUniformdv(GLuint program, GLint location, GLsizei bufSize, GLdouble* params); + GLAPI void APIENTRY glGetnUniformfv(GLuint program, GLint location, GLsizei bufSize, GLfloat* params); + GLAPI void APIENTRY glGetnUniformiv(GLuint program, GLint location, GLsizei bufSize, GLint* params); + GLAPI void APIENTRY glGetnUniformuiv(GLuint program, GLint location, GLsizei bufSize, GLuint* params); + GLAPI void APIENTRY glReadnPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void* data); + GLAPI void APIENTRY glGetnMapdv(GLenum target, GLenum query, GLsizei bufSize, GLdouble* v); + GLAPI void APIENTRY glGetnMapfv(GLenum target, GLenum query, GLsizei bufSize, GLfloat* v); + GLAPI void APIENTRY glGetnMapiv(GLenum target, GLenum query, GLsizei bufSize, GLint* v); + GLAPI void APIENTRY glGetnPixelMapfv(GLenum map, GLsizei bufSize, GLfloat* values); + GLAPI void APIENTRY glGetnPixelMapuiv(GLenum map, GLsizei bufSize, GLuint* values); + GLAPI void APIENTRY glGetnPixelMapusv(GLenum map, GLsizei bufSize, GLushort* values); + GLAPI void APIENTRY glGetnPolygonStipple(GLsizei bufSize, GLubyte* pattern); + GLAPI void APIENTRY glGetnColorTable(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* table); + GLAPI void APIENTRY glGetnConvolutionFilter(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* image); + GLAPI void APIENTRY glGetnSeparableFilter(GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void* row, GLsizei columnBufSize, void* column, void* span); + GLAPI void APIENTRY glGetnHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); + GLAPI void APIENTRY glGetnMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); + GLAPI void APIENTRY glTextureBarrier(void); +#endif +#endif /* GL_VERSION_4_5 */ + +#ifndef GL_VERSION_4_6 +#define GL_VERSION_4_6 1 +#define GL_SHADER_BINARY_FORMAT_SPIR_V 0x9551 +#define GL_SPIR_V_BINARY 0x9552 +#define GL_PARAMETER_BUFFER 0x80EE +#define GL_PARAMETER_BUFFER_BINDING 0x80EF +#define GL_CONTEXT_FLAG_NO_ERROR_BIT 0x00000008 +#define GL_VERTICES_SUBMITTED 0x82EE +#define GL_PRIMITIVES_SUBMITTED 0x82EF +#define GL_VERTEX_SHADER_INVOCATIONS 0x82F0 +#define GL_TESS_CONTROL_SHADER_PATCHES 0x82F1 +#define GL_TESS_EVALUATION_SHADER_INVOCATIONS 0x82F2 +#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED 0x82F3 +#define GL_FRAGMENT_SHADER_INVOCATIONS 0x82F4 +#define GL_COMPUTE_SHADER_INVOCATIONS 0x82F5 +#define GL_CLIPPING_INPUT_PRIMITIVES 0x82F6 +#define GL_CLIPPING_OUTPUT_PRIMITIVES 0x82F7 +#define GL_POLYGON_OFFSET_CLAMP 0x8E1B +#define GL_SPIR_V_EXTENSIONS 0x9553 +#define GL_NUM_SPIR_V_EXTENSIONS 0x9554 +#define GL_TEXTURE_MAX_ANISOTROPY 0x84FE +#define GL_MAX_TEXTURE_MAX_ANISOTROPY 0x84FF +#define GL_TRANSFORM_FEEDBACK_OVERFLOW 0x82EC +#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW 0x82ED + typedef void (APIENTRYP PFNGLSPECIALIZESHADERPROC) (GLuint shader, const GLchar* pEntryPoint, GLuint numSpecializationConstants, const GLuint* pConstantIndex, const GLuint* pConstantValue); + typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC) (GLenum mode, const void* indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); + typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC) (GLenum mode, GLenum type, const void* indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); + typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPPROC) (GLfloat factor, GLfloat units, GLfloat clamp); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glSpecializeShader(GLuint shader, const GLchar* pEntryPoint, GLuint numSpecializationConstants, const GLuint* pConstantIndex, const GLuint* pConstantValue); + GLAPI void APIENTRY glMultiDrawArraysIndirectCount(GLenum mode, const void* indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); + GLAPI void APIENTRY glMultiDrawElementsIndirectCount(GLenum mode, GLenum type, const void* indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); + GLAPI void APIENTRY glPolygonOffsetClamp(GLfloat factor, GLfloat units, GLfloat clamp); +#endif +#endif /* GL_VERSION_4_6 */ + +#ifndef GL_ARB_ES2_compatibility +#define GL_ARB_ES2_compatibility 1 +#endif /* GL_ARB_ES2_compatibility */ + +#ifndef GL_ARB_ES3_1_compatibility +#define GL_ARB_ES3_1_compatibility 1 +#endif /* GL_ARB_ES3_1_compatibility */ + +#ifndef GL_ARB_ES3_2_compatibility +#define GL_ARB_ES3_2_compatibility 1 +#define GL_PRIMITIVE_BOUNDING_BOX_ARB 0x92BE +#define GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB 0x9381 +#define GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB 0x9382 + typedef void (APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXARBPROC) (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPrimitiveBoundingBoxARB(GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW); +#endif +#endif /* GL_ARB_ES3_2_compatibility */ + +#ifndef GL_ARB_ES3_compatibility +#define GL_ARB_ES3_compatibility 1 +#endif /* GL_ARB_ES3_compatibility */ + +#ifndef GL_ARB_arrays_of_arrays +#define GL_ARB_arrays_of_arrays 1 +#endif /* GL_ARB_arrays_of_arrays */ + +#ifndef GL_ARB_base_instance +#define GL_ARB_base_instance 1 +#endif /* GL_ARB_base_instance */ + +#ifndef GL_ARB_bindless_texture +#define GL_ARB_bindless_texture 1 + typedef khronos_uint64_t GLuint64EXT; +#define GL_UNSIGNED_INT64_ARB 0x140F + typedef GLuint64(APIENTRYP PFNGLGETTEXTUREHANDLEARBPROC) (GLuint texture); + typedef GLuint64(APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEARBPROC) (GLuint texture, GLuint sampler); + typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle); + typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC) (GLuint64 handle); + typedef GLuint64(APIENTRYP PFNGLGETIMAGEHANDLEARBPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); + typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle, GLenum access); + typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC) (GLuint64 handle); + typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64ARBPROC) (GLint location, GLuint64 value); + typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VARBPROC) (GLint location, GLsizei count, const GLuint64* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC) (GLuint program, GLint location, GLuint64 value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64* values); + typedef GLboolean(APIENTRYP PFNGLISTEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle); + typedef GLboolean(APIENTRYP PFNGLISIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64ARBPROC) (GLuint index, GLuint64EXT x); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VARBPROC) (GLuint index, const GLuint64EXT* v); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VARBPROC) (GLuint index, GLenum pname, GLuint64EXT* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLuint64 APIENTRY glGetTextureHandleARB(GLuint texture); + GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleARB(GLuint texture, GLuint sampler); + GLAPI void APIENTRY glMakeTextureHandleResidentARB(GLuint64 handle); + GLAPI void APIENTRY glMakeTextureHandleNonResidentARB(GLuint64 handle); + GLAPI GLuint64 APIENTRY glGetImageHandleARB(GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); + GLAPI void APIENTRY glMakeImageHandleResidentARB(GLuint64 handle, GLenum access); + GLAPI void APIENTRY glMakeImageHandleNonResidentARB(GLuint64 handle); + GLAPI void APIENTRY glUniformHandleui64ARB(GLint location, GLuint64 value); + GLAPI void APIENTRY glUniformHandleui64vARB(GLint location, GLsizei count, const GLuint64* value); + GLAPI void APIENTRY glProgramUniformHandleui64ARB(GLuint program, GLint location, GLuint64 value); + GLAPI void APIENTRY glProgramUniformHandleui64vARB(GLuint program, GLint location, GLsizei count, const GLuint64* values); + GLAPI GLboolean APIENTRY glIsTextureHandleResidentARB(GLuint64 handle); + GLAPI GLboolean APIENTRY glIsImageHandleResidentARB(GLuint64 handle); + GLAPI void APIENTRY glVertexAttribL1ui64ARB(GLuint index, GLuint64EXT x); + GLAPI void APIENTRY glVertexAttribL1ui64vARB(GLuint index, const GLuint64EXT* v); + GLAPI void APIENTRY glGetVertexAttribLui64vARB(GLuint index, GLenum pname, GLuint64EXT* params); +#endif +#endif /* GL_ARB_bindless_texture */ + +#ifndef GL_ARB_blend_func_extended +#define GL_ARB_blend_func_extended 1 +#endif /* GL_ARB_blend_func_extended */ + +#ifndef GL_ARB_buffer_storage +#define GL_ARB_buffer_storage 1 +#endif /* GL_ARB_buffer_storage */ + +#ifndef GL_ARB_cl_event +#define GL_ARB_cl_event 1 + struct _cl_context; + struct _cl_event; +#define GL_SYNC_CL_EVENT_ARB 0x8240 +#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241 + typedef GLsync(APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context* context, struct _cl_event* event, GLbitfield flags); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB(struct _cl_context* context, struct _cl_event* event, GLbitfield flags); +#endif +#endif /* GL_ARB_cl_event */ + +#ifndef GL_ARB_clear_buffer_object +#define GL_ARB_clear_buffer_object 1 +#endif /* GL_ARB_clear_buffer_object */ + +#ifndef GL_ARB_clear_texture +#define GL_ARB_clear_texture 1 +#endif /* GL_ARB_clear_texture */ + +#ifndef GL_ARB_clip_control +#define GL_ARB_clip_control 1 +#endif /* GL_ARB_clip_control */ + +#ifndef GL_ARB_color_buffer_float +#define GL_ARB_color_buffer_float 1 +#define GL_RGBA_FLOAT_MODE_ARB 0x8820 +#define GL_CLAMP_VERTEX_COLOR_ARB 0x891A +#define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B +#define GL_CLAMP_READ_COLOR_ARB 0x891C +#define GL_FIXED_ONLY_ARB 0x891D + typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glClampColorARB(GLenum target, GLenum clamp); +#endif +#endif /* GL_ARB_color_buffer_float */ + +#ifndef GL_ARB_compatibility +#define GL_ARB_compatibility 1 +#endif /* GL_ARB_compatibility */ + +#ifndef GL_ARB_compressed_texture_pixel_storage +#define GL_ARB_compressed_texture_pixel_storage 1 +#endif /* GL_ARB_compressed_texture_pixel_storage */ + +#ifndef GL_ARB_compute_shader +#define GL_ARB_compute_shader 1 +#endif /* GL_ARB_compute_shader */ + +#ifndef GL_ARB_compute_variable_group_size +#define GL_ARB_compute_variable_group_size 1 +#define GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB 0x9344 +#define GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB 0x90EB +#define GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB 0x9345 +#define GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB 0x91BF + typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDispatchComputeGroupSizeARB(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z); +#endif +#endif /* GL_ARB_compute_variable_group_size */ + +#ifndef GL_ARB_conditional_render_inverted +#define GL_ARB_conditional_render_inverted 1 +#endif /* GL_ARB_conditional_render_inverted */ + +#ifndef GL_ARB_conservative_depth +#define GL_ARB_conservative_depth 1 +#endif /* GL_ARB_conservative_depth */ + +#ifndef GL_ARB_copy_buffer +#define GL_ARB_copy_buffer 1 +#endif /* GL_ARB_copy_buffer */ + +#ifndef GL_ARB_copy_image +#define GL_ARB_copy_image 1 +#endif /* GL_ARB_copy_image */ + +#ifndef GL_ARB_cull_distance +#define GL_ARB_cull_distance 1 +#endif /* GL_ARB_cull_distance */ + +#ifndef GL_ARB_debug_output +#define GL_ARB_debug_output 1 + typedef void (APIENTRY* GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam); +#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243 +#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244 +#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245 +#define GL_DEBUG_SOURCE_API_ARB 0x8246 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247 +#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248 +#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249 +#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A +#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B +#define GL_DEBUG_TYPE_ERROR_ARB 0x824C +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E +#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F +#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250 +#define GL_DEBUG_TYPE_OTHER_ARB 0x8251 +#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143 +#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144 +#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145 +#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146 +#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147 +#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148 + typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled); + typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* buf); + typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void* userParam); + typedef GLuint(APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufSize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, GLchar* messageLog); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDebugMessageControlARB(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled); + GLAPI void APIENTRY glDebugMessageInsertARB(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* buf); + GLAPI void APIENTRY glDebugMessageCallbackARB(GLDEBUGPROCARB callback, const void* userParam); + GLAPI GLuint APIENTRY glGetDebugMessageLogARB(GLuint count, GLsizei bufSize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, GLchar* messageLog); +#endif +#endif /* GL_ARB_debug_output */ + +#ifndef GL_ARB_depth_buffer_float +#define GL_ARB_depth_buffer_float 1 +#endif /* GL_ARB_depth_buffer_float */ + +#ifndef GL_ARB_depth_clamp +#define GL_ARB_depth_clamp 1 +#endif /* GL_ARB_depth_clamp */ + +#ifndef GL_ARB_depth_texture +#define GL_ARB_depth_texture 1 +#define GL_DEPTH_COMPONENT16_ARB 0x81A5 +#define GL_DEPTH_COMPONENT24_ARB 0x81A6 +#define GL_DEPTH_COMPONENT32_ARB 0x81A7 +#define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A +#define GL_DEPTH_TEXTURE_MODE_ARB 0x884B +#endif /* GL_ARB_depth_texture */ + +#ifndef GL_ARB_derivative_control +#define GL_ARB_derivative_control 1 +#endif /* GL_ARB_derivative_control */ + +#ifndef GL_ARB_direct_state_access +#define GL_ARB_direct_state_access 1 +#endif /* GL_ARB_direct_state_access */ + +#ifndef GL_ARB_draw_buffers +#define GL_ARB_draw_buffers 1 +#define GL_MAX_DRAW_BUFFERS_ARB 0x8824 +#define GL_DRAW_BUFFER0_ARB 0x8825 +#define GL_DRAW_BUFFER1_ARB 0x8826 +#define GL_DRAW_BUFFER2_ARB 0x8827 +#define GL_DRAW_BUFFER3_ARB 0x8828 +#define GL_DRAW_BUFFER4_ARB 0x8829 +#define GL_DRAW_BUFFER5_ARB 0x882A +#define GL_DRAW_BUFFER6_ARB 0x882B +#define GL_DRAW_BUFFER7_ARB 0x882C +#define GL_DRAW_BUFFER8_ARB 0x882D +#define GL_DRAW_BUFFER9_ARB 0x882E +#define GL_DRAW_BUFFER10_ARB 0x882F +#define GL_DRAW_BUFFER11_ARB 0x8830 +#define GL_DRAW_BUFFER12_ARB 0x8831 +#define GL_DRAW_BUFFER13_ARB 0x8832 +#define GL_DRAW_BUFFER14_ARB 0x8833 +#define GL_DRAW_BUFFER15_ARB 0x8834 + typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum* bufs); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawBuffersARB(GLsizei n, const GLenum* bufs); +#endif +#endif /* GL_ARB_draw_buffers */ + +#ifndef GL_ARB_draw_buffers_blend +#define GL_ARB_draw_buffers_blend 1 + typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode); + typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); + typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst); + typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlendEquationiARB(GLuint buf, GLenum mode); + GLAPI void APIENTRY glBlendEquationSeparateiARB(GLuint buf, GLenum modeRGB, GLenum modeAlpha); + GLAPI void APIENTRY glBlendFunciARB(GLuint buf, GLenum src, GLenum dst); + GLAPI void APIENTRY glBlendFuncSeparateiARB(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +#endif +#endif /* GL_ARB_draw_buffers_blend */ + +#ifndef GL_ARB_draw_elements_base_vertex +#define GL_ARB_draw_elements_base_vertex 1 +#endif /* GL_ARB_draw_elements_base_vertex */ + +#ifndef GL_ARB_draw_indirect +#define GL_ARB_draw_indirect 1 +#endif /* GL_ARB_draw_indirect */ + +#ifndef GL_ARB_draw_instanced +#define GL_ARB_draw_instanced 1 + typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount); + typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawArraysInstancedARB(GLenum mode, GLint first, GLsizei count, GLsizei primcount); + GLAPI void APIENTRY glDrawElementsInstancedARB(GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount); +#endif +#endif /* GL_ARB_draw_instanced */ + +#ifndef GL_ARB_enhanced_layouts +#define GL_ARB_enhanced_layouts 1 +#endif /* GL_ARB_enhanced_layouts */ + +#ifndef GL_ARB_explicit_attrib_location +#define GL_ARB_explicit_attrib_location 1 +#endif /* GL_ARB_explicit_attrib_location */ + +#ifndef GL_ARB_explicit_uniform_location +#define GL_ARB_explicit_uniform_location 1 +#endif /* GL_ARB_explicit_uniform_location */ + +#ifndef GL_ARB_fragment_coord_conventions +#define GL_ARB_fragment_coord_conventions 1 +#endif /* GL_ARB_fragment_coord_conventions */ + +#ifndef GL_ARB_fragment_layer_viewport +#define GL_ARB_fragment_layer_viewport 1 +#endif /* GL_ARB_fragment_layer_viewport */ + +#ifndef GL_ARB_fragment_program +#define GL_ARB_fragment_program 1 +#define GL_FRAGMENT_PROGRAM_ARB 0x8804 +#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875 +#define GL_PROGRAM_LENGTH_ARB 0x8627 +#define GL_PROGRAM_FORMAT_ARB 0x8876 +#define GL_PROGRAM_BINDING_ARB 0x8677 +#define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0 +#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1 +#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2 +#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3 +#define GL_PROGRAM_TEMPORARIES_ARB 0x88A4 +#define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5 +#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6 +#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7 +#define GL_PROGRAM_PARAMETERS_ARB 0x88A8 +#define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9 +#define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA +#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB +#define GL_PROGRAM_ATTRIBS_ARB 0x88AC +#define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD +#define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE +#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF +#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4 +#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5 +#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6 +#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805 +#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806 +#define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807 +#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808 +#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809 +#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A +#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B +#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C +#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D +#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E +#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F +#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810 +#define GL_PROGRAM_STRING_ARB 0x8628 +#define GL_PROGRAM_ERROR_POSITION_ARB 0x864B +#define GL_CURRENT_MATRIX_ARB 0x8641 +#define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7 +#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640 +#define GL_MAX_PROGRAM_MATRICES_ARB 0x862F +#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E +#define GL_MAX_TEXTURE_COORDS_ARB 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872 +#define GL_PROGRAM_ERROR_STRING_ARB 0x8874 +#define GL_MATRIX0_ARB 0x88C0 +#define GL_MATRIX1_ARB 0x88C1 +#define GL_MATRIX2_ARB 0x88C2 +#define GL_MATRIX3_ARB 0x88C3 +#define GL_MATRIX4_ARB 0x88C4 +#define GL_MATRIX5_ARB 0x88C5 +#define GL_MATRIX6_ARB 0x88C6 +#define GL_MATRIX7_ARB 0x88C7 +#define GL_MATRIX8_ARB 0x88C8 +#define GL_MATRIX9_ARB 0x88C9 +#define GL_MATRIX10_ARB 0x88CA +#define GL_MATRIX11_ARB 0x88CB +#define GL_MATRIX12_ARB 0x88CC +#define GL_MATRIX13_ARB 0x88CD +#define GL_MATRIX14_ARB 0x88CE +#define GL_MATRIX15_ARB 0x88CF +#define GL_MATRIX16_ARB 0x88D0 +#define GL_MATRIX17_ARB 0x88D1 +#define GL_MATRIX18_ARB 0x88D2 +#define GL_MATRIX19_ARB 0x88D3 +#define GL_MATRIX20_ARB 0x88D4 +#define GL_MATRIX21_ARB 0x88D5 +#define GL_MATRIX22_ARB 0x88D6 +#define GL_MATRIX23_ARB 0x88D7 +#define GL_MATRIX24_ARB 0x88D8 +#define GL_MATRIX25_ARB 0x88D9 +#define GL_MATRIX26_ARB 0x88DA +#define GL_MATRIX27_ARB 0x88DB +#define GL_MATRIX28_ARB 0x88DC +#define GL_MATRIX29_ARB 0x88DD +#define GL_MATRIX30_ARB 0x88DE +#define GL_MATRIX31_ARB 0x88DF + typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const void* string); + typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program); + typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint* programs); + typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint* programs); + typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble* params); + typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat* params); + typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble* params); + typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat* params); + typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble* params); + typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat* params); + typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble* params); + typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat* params); + typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, void* string); + typedef GLboolean(APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glProgramStringARB(GLenum target, GLenum format, GLsizei len, const void* string); + GLAPI void APIENTRY glBindProgramARB(GLenum target, GLuint program); + GLAPI void APIENTRY glDeleteProgramsARB(GLsizei n, const GLuint* programs); + GLAPI void APIENTRY glGenProgramsARB(GLsizei n, GLuint* programs); + GLAPI void APIENTRY glProgramEnvParameter4dARB(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glProgramEnvParameter4dvARB(GLenum target, GLuint index, const GLdouble* params); + GLAPI void APIENTRY glProgramEnvParameter4fARB(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glProgramEnvParameter4fvARB(GLenum target, GLuint index, const GLfloat* params); + GLAPI void APIENTRY glProgramLocalParameter4dARB(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glProgramLocalParameter4dvARB(GLenum target, GLuint index, const GLdouble* params); + GLAPI void APIENTRY glProgramLocalParameter4fARB(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glProgramLocalParameter4fvARB(GLenum target, GLuint index, const GLfloat* params); + GLAPI void APIENTRY glGetProgramEnvParameterdvARB(GLenum target, GLuint index, GLdouble* params); + GLAPI void APIENTRY glGetProgramEnvParameterfvARB(GLenum target, GLuint index, GLfloat* params); + GLAPI void APIENTRY glGetProgramLocalParameterdvARB(GLenum target, GLuint index, GLdouble* params); + GLAPI void APIENTRY glGetProgramLocalParameterfvARB(GLenum target, GLuint index, GLfloat* params); + GLAPI void APIENTRY glGetProgramivARB(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetProgramStringARB(GLenum target, GLenum pname, void* string); + GLAPI GLboolean APIENTRY glIsProgramARB(GLuint program); +#endif +#endif /* GL_ARB_fragment_program */ + +#ifndef GL_ARB_fragment_program_shadow +#define GL_ARB_fragment_program_shadow 1 +#endif /* GL_ARB_fragment_program_shadow */ + +#ifndef GL_ARB_fragment_shader +#define GL_ARB_fragment_shader 1 +#define GL_FRAGMENT_SHADER_ARB 0x8B30 +#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49 +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B +#endif /* GL_ARB_fragment_shader */ + +#ifndef GL_ARB_fragment_shader_interlock +#define GL_ARB_fragment_shader_interlock 1 +#endif /* GL_ARB_fragment_shader_interlock */ + +#ifndef GL_ARB_framebuffer_no_attachments +#define GL_ARB_framebuffer_no_attachments 1 +#endif /* GL_ARB_framebuffer_no_attachments */ + +#ifndef GL_ARB_framebuffer_object +#define GL_ARB_framebuffer_object 1 +#endif /* GL_ARB_framebuffer_object */ + +#ifndef GL_ARB_framebuffer_sRGB +#define GL_ARB_framebuffer_sRGB 1 +#endif /* GL_ARB_framebuffer_sRGB */ + +#ifndef GL_ARB_geometry_shader4 +#define GL_ARB_geometry_shader4 1 +#define GL_LINES_ADJACENCY_ARB 0x000A +#define GL_LINE_STRIP_ADJACENCY_ARB 0x000B +#define GL_TRIANGLES_ADJACENCY_ARB 0x000C +#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0x000D +#define GL_PROGRAM_POINT_SIZE_ARB 0x8642 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9 +#define GL_GEOMETRY_SHADER_ARB 0x8DD9 +#define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA +#define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB +#define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC +#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD +#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1 + typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glProgramParameteriARB(GLuint program, GLenum pname, GLint value); + GLAPI void APIENTRY glFramebufferTextureARB(GLenum target, GLenum attachment, GLuint texture, GLint level); + GLAPI void APIENTRY glFramebufferTextureLayerARB(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); + GLAPI void APIENTRY glFramebufferTextureFaceARB(GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); +#endif +#endif /* GL_ARB_geometry_shader4 */ + +#ifndef GL_ARB_get_program_binary +#define GL_ARB_get_program_binary 1 +#endif /* GL_ARB_get_program_binary */ + +#ifndef GL_ARB_get_texture_sub_image +#define GL_ARB_get_texture_sub_image 1 +#endif /* GL_ARB_get_texture_sub_image */ + +#ifndef GL_ARB_gl_spirv +#define GL_ARB_gl_spirv 1 +#define GL_SHADER_BINARY_FORMAT_SPIR_V_ARB 0x9551 +#define GL_SPIR_V_BINARY_ARB 0x9552 + typedef void (APIENTRYP PFNGLSPECIALIZESHADERARBPROC) (GLuint shader, const GLchar* pEntryPoint, GLuint numSpecializationConstants, const GLuint* pConstantIndex, const GLuint* pConstantValue); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glSpecializeShaderARB(GLuint shader, const GLchar* pEntryPoint, GLuint numSpecializationConstants, const GLuint* pConstantIndex, const GLuint* pConstantValue); +#endif +#endif /* GL_ARB_gl_spirv */ + +#ifndef GL_ARB_gpu_shader5 +#define GL_ARB_gpu_shader5 1 +#endif /* GL_ARB_gpu_shader5 */ + +#ifndef GL_ARB_gpu_shader_fp64 +#define GL_ARB_gpu_shader_fp64 1 +#endif /* GL_ARB_gpu_shader_fp64 */ + +#ifndef GL_ARB_gpu_shader_int64 +#define GL_ARB_gpu_shader_int64 1 +#define GL_INT64_ARB 0x140E +#define GL_INT64_VEC2_ARB 0x8FE9 +#define GL_INT64_VEC3_ARB 0x8FEA +#define GL_INT64_VEC4_ARB 0x8FEB +#define GL_UNSIGNED_INT64_VEC2_ARB 0x8FF5 +#define GL_UNSIGNED_INT64_VEC3_ARB 0x8FF6 +#define GL_UNSIGNED_INT64_VEC4_ARB 0x8FF7 + typedef void (APIENTRYP PFNGLUNIFORM1I64ARBPROC) (GLint location, GLint64 x); + typedef void (APIENTRYP PFNGLUNIFORM2I64ARBPROC) (GLint location, GLint64 x, GLint64 y); + typedef void (APIENTRYP PFNGLUNIFORM3I64ARBPROC) (GLint location, GLint64 x, GLint64 y, GLint64 z); + typedef void (APIENTRYP PFNGLUNIFORM4I64ARBPROC) (GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); + typedef void (APIENTRYP PFNGLUNIFORM1I64VARBPROC) (GLint location, GLsizei count, const GLint64* value); + typedef void (APIENTRYP PFNGLUNIFORM2I64VARBPROC) (GLint location, GLsizei count, const GLint64* value); + typedef void (APIENTRYP PFNGLUNIFORM3I64VARBPROC) (GLint location, GLsizei count, const GLint64* value); + typedef void (APIENTRYP PFNGLUNIFORM4I64VARBPROC) (GLint location, GLsizei count, const GLint64* value); + typedef void (APIENTRYP PFNGLUNIFORM1UI64ARBPROC) (GLint location, GLuint64 x); + typedef void (APIENTRYP PFNGLUNIFORM2UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y); + typedef void (APIENTRYP PFNGLUNIFORM3UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y, GLuint64 z); + typedef void (APIENTRYP PFNGLUNIFORM4UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); + typedef void (APIENTRYP PFNGLUNIFORM1UI64VARBPROC) (GLint location, GLsizei count, const GLuint64* value); + typedef void (APIENTRYP PFNGLUNIFORM2UI64VARBPROC) (GLint location, GLsizei count, const GLuint64* value); + typedef void (APIENTRYP PFNGLUNIFORM3UI64VARBPROC) (GLint location, GLsizei count, const GLuint64* value); + typedef void (APIENTRYP PFNGLUNIFORM4UI64VARBPROC) (GLint location, GLsizei count, const GLuint64* value); + typedef void (APIENTRYP PFNGLGETUNIFORMI64VARBPROC) (GLuint program, GLint location, GLint64* params); + typedef void (APIENTRYP PFNGLGETUNIFORMUI64VARBPROC) (GLuint program, GLint location, GLuint64* params); + typedef void (APIENTRYP PFNGLGETNUNIFORMI64VARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint64* params); + typedef void (APIENTRYP PFNGLGETNUNIFORMUI64VARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint64* params); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64ARBPROC) (GLuint program, GLint location, GLint64 x); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64ARBPROC) (GLuint program, GLint location, GLuint64 x); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64* value); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glUniform1i64ARB(GLint location, GLint64 x); + GLAPI void APIENTRY glUniform2i64ARB(GLint location, GLint64 x, GLint64 y); + GLAPI void APIENTRY glUniform3i64ARB(GLint location, GLint64 x, GLint64 y, GLint64 z); + GLAPI void APIENTRY glUniform4i64ARB(GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); + GLAPI void APIENTRY glUniform1i64vARB(GLint location, GLsizei count, const GLint64* value); + GLAPI void APIENTRY glUniform2i64vARB(GLint location, GLsizei count, const GLint64* value); + GLAPI void APIENTRY glUniform3i64vARB(GLint location, GLsizei count, const GLint64* value); + GLAPI void APIENTRY glUniform4i64vARB(GLint location, GLsizei count, const GLint64* value); + GLAPI void APIENTRY glUniform1ui64ARB(GLint location, GLuint64 x); + GLAPI void APIENTRY glUniform2ui64ARB(GLint location, GLuint64 x, GLuint64 y); + GLAPI void APIENTRY glUniform3ui64ARB(GLint location, GLuint64 x, GLuint64 y, GLuint64 z); + GLAPI void APIENTRY glUniform4ui64ARB(GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); + GLAPI void APIENTRY glUniform1ui64vARB(GLint location, GLsizei count, const GLuint64* value); + GLAPI void APIENTRY glUniform2ui64vARB(GLint location, GLsizei count, const GLuint64* value); + GLAPI void APIENTRY glUniform3ui64vARB(GLint location, GLsizei count, const GLuint64* value); + GLAPI void APIENTRY glUniform4ui64vARB(GLint location, GLsizei count, const GLuint64* value); + GLAPI void APIENTRY glGetUniformi64vARB(GLuint program, GLint location, GLint64* params); + GLAPI void APIENTRY glGetUniformui64vARB(GLuint program, GLint location, GLuint64* params); + GLAPI void APIENTRY glGetnUniformi64vARB(GLuint program, GLint location, GLsizei bufSize, GLint64* params); + GLAPI void APIENTRY glGetnUniformui64vARB(GLuint program, GLint location, GLsizei bufSize, GLuint64* params); + GLAPI void APIENTRY glProgramUniform1i64ARB(GLuint program, GLint location, GLint64 x); + GLAPI void APIENTRY glProgramUniform2i64ARB(GLuint program, GLint location, GLint64 x, GLint64 y); + GLAPI void APIENTRY glProgramUniform3i64ARB(GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z); + GLAPI void APIENTRY glProgramUniform4i64ARB(GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); + GLAPI void APIENTRY glProgramUniform1i64vARB(GLuint program, GLint location, GLsizei count, const GLint64* value); + GLAPI void APIENTRY glProgramUniform2i64vARB(GLuint program, GLint location, GLsizei count, const GLint64* value); + GLAPI void APIENTRY glProgramUniform3i64vARB(GLuint program, GLint location, GLsizei count, const GLint64* value); + GLAPI void APIENTRY glProgramUniform4i64vARB(GLuint program, GLint location, GLsizei count, const GLint64* value); + GLAPI void APIENTRY glProgramUniform1ui64ARB(GLuint program, GLint location, GLuint64 x); + GLAPI void APIENTRY glProgramUniform2ui64ARB(GLuint program, GLint location, GLuint64 x, GLuint64 y); + GLAPI void APIENTRY glProgramUniform3ui64ARB(GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z); + GLAPI void APIENTRY glProgramUniform4ui64ARB(GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); + GLAPI void APIENTRY glProgramUniform1ui64vARB(GLuint program, GLint location, GLsizei count, const GLuint64* value); + GLAPI void APIENTRY glProgramUniform2ui64vARB(GLuint program, GLint location, GLsizei count, const GLuint64* value); + GLAPI void APIENTRY glProgramUniform3ui64vARB(GLuint program, GLint location, GLsizei count, const GLuint64* value); + GLAPI void APIENTRY glProgramUniform4ui64vARB(GLuint program, GLint location, GLsizei count, const GLuint64* value); +#endif +#endif /* GL_ARB_gpu_shader_int64 */ + +#ifndef GL_ARB_half_float_pixel +#define GL_ARB_half_float_pixel 1 + typedef khronos_uint16_t GLhalfARB; +#define GL_HALF_FLOAT_ARB 0x140B +#endif /* GL_ARB_half_float_pixel */ + +#ifndef GL_ARB_half_float_vertex +#define GL_ARB_half_float_vertex 1 +#endif /* GL_ARB_half_float_vertex */ + +#ifndef GL_ARB_imaging +#define GL_ARB_imaging 1 +#define GL_CONVOLUTION_BORDER_MODE 0x8013 +#define GL_CONVOLUTION_FILTER_SCALE 0x8014 +#define GL_CONVOLUTION_FILTER_BIAS 0x8015 +#define GL_REDUCE 0x8016 +#define GL_CONVOLUTION_FORMAT 0x8017 +#define GL_CONVOLUTION_WIDTH 0x8018 +#define GL_CONVOLUTION_HEIGHT 0x8019 +#define GL_MAX_CONVOLUTION_WIDTH 0x801A +#define GL_MAX_CONVOLUTION_HEIGHT 0x801B +#define GL_POST_CONVOLUTION_RED_SCALE 0x801C +#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D +#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E +#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F +#define GL_POST_CONVOLUTION_RED_BIAS 0x8020 +#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021 +#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022 +#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023 +#define GL_HISTOGRAM_WIDTH 0x8026 +#define GL_HISTOGRAM_FORMAT 0x8027 +#define GL_HISTOGRAM_RED_SIZE 0x8028 +#define GL_HISTOGRAM_GREEN_SIZE 0x8029 +#define GL_HISTOGRAM_BLUE_SIZE 0x802A +#define GL_HISTOGRAM_ALPHA_SIZE 0x802B +#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C +#define GL_HISTOGRAM_SINK 0x802D +#define GL_MINMAX_FORMAT 0x802F +#define GL_MINMAX_SINK 0x8030 +#define GL_TABLE_TOO_LARGE 0x8031 +#define GL_COLOR_MATRIX 0x80B1 +#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2 +#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3 +#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4 +#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5 +#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6 +#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7 +#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8 +#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9 +#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA +#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB +#define GL_COLOR_TABLE_SCALE 0x80D6 +#define GL_COLOR_TABLE_BIAS 0x80D7 +#define GL_COLOR_TABLE_FORMAT 0x80D8 +#define GL_COLOR_TABLE_WIDTH 0x80D9 +#define GL_COLOR_TABLE_RED_SIZE 0x80DA +#define GL_COLOR_TABLE_GREEN_SIZE 0x80DB +#define GL_COLOR_TABLE_BLUE_SIZE 0x80DC +#define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD +#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE +#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF +#define GL_CONSTANT_BORDER 0x8151 +#define GL_REPLICATE_BORDER 0x8153 +#define GL_CONVOLUTION_BORDER_COLOR 0x8154 + typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* table); + typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); + typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, void* table); + typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void* data); + typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); + typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* image); + typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* image); + typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params); + typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params); + typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); + typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, void* image); + typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, void* row, void* column, void* span); + typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* row, const void* column); + typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); + typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); + typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); + typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink); + typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target); + typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glColorTable(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* table); + GLAPI void APIENTRY glColorTableParameterfv(GLenum target, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glColorTableParameteriv(GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); + GLAPI void APIENTRY glGetColorTable(GLenum target, GLenum format, GLenum type, void* table); + GLAPI void APIENTRY glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetColorTableParameteriv(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void* data); + GLAPI void APIENTRY glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); + GLAPI void APIENTRY glConvolutionFilter1D(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* image); + GLAPI void APIENTRY glConvolutionFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* image); + GLAPI void APIENTRY glConvolutionParameterf(GLenum target, GLenum pname, GLfloat params); + GLAPI void APIENTRY glConvolutionParameterfv(GLenum target, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glConvolutionParameteri(GLenum target, GLenum pname, GLint params); + GLAPI void APIENTRY glConvolutionParameteriv(GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glCopyConvolutionFilter1D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); + GLAPI void APIENTRY glCopyConvolutionFilter2D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glGetConvolutionFilter(GLenum target, GLenum format, GLenum type, void* image); + GLAPI void APIENTRY glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetSeparableFilter(GLenum target, GLenum format, GLenum type, void* row, void* column, void* span); + GLAPI void APIENTRY glSeparableFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* row, const void* column); + GLAPI void APIENTRY glGetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); + GLAPI void APIENTRY glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetHistogramParameteriv(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); + GLAPI void APIENTRY glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glHistogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); + GLAPI void APIENTRY glMinmax(GLenum target, GLenum internalformat, GLboolean sink); + GLAPI void APIENTRY glResetHistogram(GLenum target); + GLAPI void APIENTRY glResetMinmax(GLenum target); +#endif +#endif /* GL_ARB_imaging */ + +#ifndef GL_ARB_indirect_parameters +#define GL_ARB_indirect_parameters 1 +#define GL_PARAMETER_BUFFER_ARB 0x80EE +#define GL_PARAMETER_BUFFER_BINDING_ARB 0x80EF + typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC) (GLenum mode, const void* indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); + typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC) (GLenum mode, GLenum type, const void* indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMultiDrawArraysIndirectCountARB(GLenum mode, const void* indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); + GLAPI void APIENTRY glMultiDrawElementsIndirectCountARB(GLenum mode, GLenum type, const void* indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#endif +#endif /* GL_ARB_indirect_parameters */ + +#ifndef GL_ARB_instanced_arrays +#define GL_ARB_instanced_arrays 1 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE + typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVertexAttribDivisorARB(GLuint index, GLuint divisor); +#endif +#endif /* GL_ARB_instanced_arrays */ + +#ifndef GL_ARB_internalformat_query +#define GL_ARB_internalformat_query 1 +#endif /* GL_ARB_internalformat_query */ + +#ifndef GL_ARB_internalformat_query2 +#define GL_ARB_internalformat_query2 1 +#define GL_SRGB_DECODE_ARB 0x8299 +#define GL_VIEW_CLASS_EAC_R11 0x9383 +#define GL_VIEW_CLASS_EAC_RG11 0x9384 +#define GL_VIEW_CLASS_ETC2_RGB 0x9385 +#define GL_VIEW_CLASS_ETC2_RGBA 0x9386 +#define GL_VIEW_CLASS_ETC2_EAC_RGBA 0x9387 +#define GL_VIEW_CLASS_ASTC_4x4_RGBA 0x9388 +#define GL_VIEW_CLASS_ASTC_5x4_RGBA 0x9389 +#define GL_VIEW_CLASS_ASTC_5x5_RGBA 0x938A +#define GL_VIEW_CLASS_ASTC_6x5_RGBA 0x938B +#define GL_VIEW_CLASS_ASTC_6x6_RGBA 0x938C +#define GL_VIEW_CLASS_ASTC_8x5_RGBA 0x938D +#define GL_VIEW_CLASS_ASTC_8x6_RGBA 0x938E +#define GL_VIEW_CLASS_ASTC_8x8_RGBA 0x938F +#define GL_VIEW_CLASS_ASTC_10x5_RGBA 0x9390 +#define GL_VIEW_CLASS_ASTC_10x6_RGBA 0x9391 +#define GL_VIEW_CLASS_ASTC_10x8_RGBA 0x9392 +#define GL_VIEW_CLASS_ASTC_10x10_RGBA 0x9393 +#define GL_VIEW_CLASS_ASTC_12x10_RGBA 0x9394 +#define GL_VIEW_CLASS_ASTC_12x12_RGBA 0x9395 +#endif /* GL_ARB_internalformat_query2 */ + +#ifndef GL_ARB_invalidate_subdata +#define GL_ARB_invalidate_subdata 1 +#endif /* GL_ARB_invalidate_subdata */ + +#ifndef GL_ARB_map_buffer_alignment +#define GL_ARB_map_buffer_alignment 1 +#endif /* GL_ARB_map_buffer_alignment */ + +#ifndef GL_ARB_map_buffer_range +#define GL_ARB_map_buffer_range 1 +#endif /* GL_ARB_map_buffer_range */ + +#ifndef GL_ARB_matrix_palette +#define GL_ARB_matrix_palette 1 +#define GL_MATRIX_PALETTE_ARB 0x8840 +#define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841 +#define GL_MAX_PALETTE_MATRICES_ARB 0x8842 +#define GL_CURRENT_PALETTE_MATRIX_ARB 0x8843 +#define GL_MATRIX_INDEX_ARRAY_ARB 0x8844 +#define GL_CURRENT_MATRIX_INDEX_ARB 0x8845 +#define GL_MATRIX_INDEX_ARRAY_SIZE_ARB 0x8846 +#define GL_MATRIX_INDEX_ARRAY_TYPE_ARB 0x8847 +#define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB 0x8848 +#define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849 + typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index); + typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte* indices); + typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort* indices); + typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint* indices); + typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const void* pointer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glCurrentPaletteMatrixARB(GLint index); + GLAPI void APIENTRY glMatrixIndexubvARB(GLint size, const GLubyte* indices); + GLAPI void APIENTRY glMatrixIndexusvARB(GLint size, const GLushort* indices); + GLAPI void APIENTRY glMatrixIndexuivARB(GLint size, const GLuint* indices); + GLAPI void APIENTRY glMatrixIndexPointerARB(GLint size, GLenum type, GLsizei stride, const void* pointer); +#endif +#endif /* GL_ARB_matrix_palette */ + +#ifndef GL_ARB_multi_bind +#define GL_ARB_multi_bind 1 +#endif /* GL_ARB_multi_bind */ + +#ifndef GL_ARB_multi_draw_indirect +#define GL_ARB_multi_draw_indirect 1 +#endif /* GL_ARB_multi_draw_indirect */ + +#ifndef GL_ARB_multisample +#define GL_ARB_multisample 1 +#define GL_MULTISAMPLE_ARB 0x809D +#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F +#define GL_SAMPLE_COVERAGE_ARB 0x80A0 +#define GL_SAMPLE_BUFFERS_ARB 0x80A8 +#define GL_SAMPLES_ARB 0x80A9 +#define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA +#define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB +#define GL_MULTISAMPLE_BIT_ARB 0x20000000 + typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLfloat value, GLboolean invert); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glSampleCoverageARB(GLfloat value, GLboolean invert); +#endif +#endif /* GL_ARB_multisample */ + +#ifndef GL_ARB_multitexture +#define GL_ARB_multitexture 1 +#define GL_TEXTURE0_ARB 0x84C0 +#define GL_TEXTURE1_ARB 0x84C1 +#define GL_TEXTURE2_ARB 0x84C2 +#define GL_TEXTURE3_ARB 0x84C3 +#define GL_TEXTURE4_ARB 0x84C4 +#define GL_TEXTURE5_ARB 0x84C5 +#define GL_TEXTURE6_ARB 0x84C6 +#define GL_TEXTURE7_ARB 0x84C7 +#define GL_TEXTURE8_ARB 0x84C8 +#define GL_TEXTURE9_ARB 0x84C9 +#define GL_TEXTURE10_ARB 0x84CA +#define GL_TEXTURE11_ARB 0x84CB +#define GL_TEXTURE12_ARB 0x84CC +#define GL_TEXTURE13_ARB 0x84CD +#define GL_TEXTURE14_ARB 0x84CE +#define GL_TEXTURE15_ARB 0x84CF +#define GL_TEXTURE16_ARB 0x84D0 +#define GL_TEXTURE17_ARB 0x84D1 +#define GL_TEXTURE18_ARB 0x84D2 +#define GL_TEXTURE19_ARB 0x84D3 +#define GL_TEXTURE20_ARB 0x84D4 +#define GL_TEXTURE21_ARB 0x84D5 +#define GL_TEXTURE22_ARB 0x84D6 +#define GL_TEXTURE23_ARB 0x84D7 +#define GL_TEXTURE24_ARB 0x84D8 +#define GL_TEXTURE25_ARB 0x84D9 +#define GL_TEXTURE26_ARB 0x84DA +#define GL_TEXTURE27_ARB 0x84DB +#define GL_TEXTURE28_ARB 0x84DC +#define GL_TEXTURE29_ARB 0x84DD +#define GL_TEXTURE30_ARB 0x84DE +#define GL_TEXTURE31_ARB 0x84DF +#define GL_ACTIVE_TEXTURE_ARB 0x84E0 +#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 +#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2 + typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture); + typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort* v); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glActiveTextureARB(GLenum texture); + GLAPI void APIENTRY glClientActiveTextureARB(GLenum texture); + GLAPI void APIENTRY glMultiTexCoord1dARB(GLenum target, GLdouble s); + GLAPI void APIENTRY glMultiTexCoord1dvARB(GLenum target, const GLdouble* v); + GLAPI void APIENTRY glMultiTexCoord1fARB(GLenum target, GLfloat s); + GLAPI void APIENTRY glMultiTexCoord1fvARB(GLenum target, const GLfloat* v); + GLAPI void APIENTRY glMultiTexCoord1iARB(GLenum target, GLint s); + GLAPI void APIENTRY glMultiTexCoord1ivARB(GLenum target, const GLint* v); + GLAPI void APIENTRY glMultiTexCoord1sARB(GLenum target, GLshort s); + GLAPI void APIENTRY glMultiTexCoord1svARB(GLenum target, const GLshort* v); + GLAPI void APIENTRY glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t); + GLAPI void APIENTRY glMultiTexCoord2dvARB(GLenum target, const GLdouble* v); + GLAPI void APIENTRY glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t); + GLAPI void APIENTRY glMultiTexCoord2fvARB(GLenum target, const GLfloat* v); + GLAPI void APIENTRY glMultiTexCoord2iARB(GLenum target, GLint s, GLint t); + GLAPI void APIENTRY glMultiTexCoord2ivARB(GLenum target, const GLint* v); + GLAPI void APIENTRY glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t); + GLAPI void APIENTRY glMultiTexCoord2svARB(GLenum target, const GLshort* v); + GLAPI void APIENTRY glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r); + GLAPI void APIENTRY glMultiTexCoord3dvARB(GLenum target, const GLdouble* v); + GLAPI void APIENTRY glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r); + GLAPI void APIENTRY glMultiTexCoord3fvARB(GLenum target, const GLfloat* v); + GLAPI void APIENTRY glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r); + GLAPI void APIENTRY glMultiTexCoord3ivARB(GLenum target, const GLint* v); + GLAPI void APIENTRY glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r); + GLAPI void APIENTRY glMultiTexCoord3svARB(GLenum target, const GLshort* v); + GLAPI void APIENTRY glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); + GLAPI void APIENTRY glMultiTexCoord4dvARB(GLenum target, const GLdouble* v); + GLAPI void APIENTRY glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); + GLAPI void APIENTRY glMultiTexCoord4fvARB(GLenum target, const GLfloat* v); + GLAPI void APIENTRY glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q); + GLAPI void APIENTRY glMultiTexCoord4ivARB(GLenum target, const GLint* v); + GLAPI void APIENTRY glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); + GLAPI void APIENTRY glMultiTexCoord4svARB(GLenum target, const GLshort* v); +#endif +#endif /* GL_ARB_multitexture */ + +#ifndef GL_ARB_occlusion_query +#define GL_ARB_occlusion_query 1 +#define GL_QUERY_COUNTER_BITS_ARB 0x8864 +#define GL_CURRENT_QUERY_ARB 0x8865 +#define GL_QUERY_RESULT_ARB 0x8866 +#define GL_QUERY_RESULT_AVAILABLE_ARB 0x8867 +#define GL_SAMPLES_PASSED_ARB 0x8914 + typedef void (APIENTRYP PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint* ids); + typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint* ids); + typedef GLboolean(APIENTRYP PFNGLISQUERYARBPROC) (GLuint id); + typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id); + typedef void (APIENTRYP PFNGLENDQUERYARBPROC) (GLenum target); + typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGenQueriesARB(GLsizei n, GLuint* ids); + GLAPI void APIENTRY glDeleteQueriesARB(GLsizei n, const GLuint* ids); + GLAPI GLboolean APIENTRY glIsQueryARB(GLuint id); + GLAPI void APIENTRY glBeginQueryARB(GLenum target, GLuint id); + GLAPI void APIENTRY glEndQueryARB(GLenum target); + GLAPI void APIENTRY glGetQueryivARB(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetQueryObjectivARB(GLuint id, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetQueryObjectuivARB(GLuint id, GLenum pname, GLuint* params); +#endif +#endif /* GL_ARB_occlusion_query */ + +#ifndef GL_ARB_occlusion_query2 +#define GL_ARB_occlusion_query2 1 +#endif /* GL_ARB_occlusion_query2 */ + +#ifndef GL_ARB_parallel_shader_compile +#define GL_ARB_parallel_shader_compile 1 +#define GL_MAX_SHADER_COMPILER_THREADS_ARB 0x91B0 +#define GL_COMPLETION_STATUS_ARB 0x91B1 + typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSARBPROC) (GLuint count); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMaxShaderCompilerThreadsARB(GLuint count); +#endif +#endif /* GL_ARB_parallel_shader_compile */ + +#ifndef GL_ARB_pipeline_statistics_query +#define GL_ARB_pipeline_statistics_query 1 +#define GL_VERTICES_SUBMITTED_ARB 0x82EE +#define GL_PRIMITIVES_SUBMITTED_ARB 0x82EF +#define GL_VERTEX_SHADER_INVOCATIONS_ARB 0x82F0 +#define GL_TESS_CONTROL_SHADER_PATCHES_ARB 0x82F1 +#define GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB 0x82F2 +#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB 0x82F3 +#define GL_FRAGMENT_SHADER_INVOCATIONS_ARB 0x82F4 +#define GL_COMPUTE_SHADER_INVOCATIONS_ARB 0x82F5 +#define GL_CLIPPING_INPUT_PRIMITIVES_ARB 0x82F6 +#define GL_CLIPPING_OUTPUT_PRIMITIVES_ARB 0x82F7 +#endif /* GL_ARB_pipeline_statistics_query */ + +#ifndef GL_ARB_pixel_buffer_object +#define GL_ARB_pixel_buffer_object 1 +#define GL_PIXEL_PACK_BUFFER_ARB 0x88EB +#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF +#endif /* GL_ARB_pixel_buffer_object */ + +#ifndef GL_ARB_point_parameters +#define GL_ARB_point_parameters 1 +#define GL_POINT_SIZE_MIN_ARB 0x8126 +#define GL_POINT_SIZE_MAX_ARB 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE_ARB 0x8128 +#define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129 + typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPointParameterfARB(GLenum pname, GLfloat param); + GLAPI void APIENTRY glPointParameterfvARB(GLenum pname, const GLfloat* params); +#endif +#endif /* GL_ARB_point_parameters */ + +#ifndef GL_ARB_point_sprite +#define GL_ARB_point_sprite 1 +#define GL_POINT_SPRITE_ARB 0x8861 +#define GL_COORD_REPLACE_ARB 0x8862 +#endif /* GL_ARB_point_sprite */ + +#ifndef GL_ARB_polygon_offset_clamp +#define GL_ARB_polygon_offset_clamp 1 +#endif /* GL_ARB_polygon_offset_clamp */ + +#ifndef GL_ARB_post_depth_coverage +#define GL_ARB_post_depth_coverage 1 +#endif /* GL_ARB_post_depth_coverage */ + +#ifndef GL_ARB_program_interface_query +#define GL_ARB_program_interface_query 1 +#endif /* GL_ARB_program_interface_query */ + +#ifndef GL_ARB_provoking_vertex +#define GL_ARB_provoking_vertex 1 +#endif /* GL_ARB_provoking_vertex */ + +#ifndef GL_ARB_query_buffer_object +#define GL_ARB_query_buffer_object 1 +#endif /* GL_ARB_query_buffer_object */ + +#ifndef GL_ARB_robust_buffer_access_behavior +#define GL_ARB_robust_buffer_access_behavior 1 +#endif /* GL_ARB_robust_buffer_access_behavior */ + +#ifndef GL_ARB_robustness +#define GL_ARB_robustness 1 +#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004 +#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253 +#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 +#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 +#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 + typedef GLenum(APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void); + typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* img); + typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void* data); + typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, void* img); + typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat* params); + typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint* params); + typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint* params); + typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble* params); + typedef void (APIENTRYP PFNGLGETNMAPDVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble* v); + typedef void (APIENTRYP PFNGLGETNMAPFVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat* v); + typedef void (APIENTRYP PFNGLGETNMAPIVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint* v); + typedef void (APIENTRYP PFNGLGETNPIXELMAPFVARBPROC) (GLenum map, GLsizei bufSize, GLfloat* values); + typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVARBPROC) (GLenum map, GLsizei bufSize, GLuint* values); + typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVARBPROC) (GLenum map, GLsizei bufSize, GLushort* values); + typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEARBPROC) (GLsizei bufSize, GLubyte* pattern); + typedef void (APIENTRYP PFNGLGETNCOLORTABLEARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* table); + typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* image); + typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void* row, GLsizei columnBufSize, void* column, void* span); + typedef void (APIENTRYP PFNGLGETNHISTOGRAMARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); + typedef void (APIENTRYP PFNGLGETNMINMAXARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB(void); + GLAPI void APIENTRY glGetnTexImageARB(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* img); + GLAPI void APIENTRY glReadnPixelsARB(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void* data); + GLAPI void APIENTRY glGetnCompressedTexImageARB(GLenum target, GLint lod, GLsizei bufSize, void* img); + GLAPI void APIENTRY glGetnUniformfvARB(GLuint program, GLint location, GLsizei bufSize, GLfloat* params); + GLAPI void APIENTRY glGetnUniformivARB(GLuint program, GLint location, GLsizei bufSize, GLint* params); + GLAPI void APIENTRY glGetnUniformuivARB(GLuint program, GLint location, GLsizei bufSize, GLuint* params); + GLAPI void APIENTRY glGetnUniformdvARB(GLuint program, GLint location, GLsizei bufSize, GLdouble* params); + GLAPI void APIENTRY glGetnMapdvARB(GLenum target, GLenum query, GLsizei bufSize, GLdouble* v); + GLAPI void APIENTRY glGetnMapfvARB(GLenum target, GLenum query, GLsizei bufSize, GLfloat* v); + GLAPI void APIENTRY glGetnMapivARB(GLenum target, GLenum query, GLsizei bufSize, GLint* v); + GLAPI void APIENTRY glGetnPixelMapfvARB(GLenum map, GLsizei bufSize, GLfloat* values); + GLAPI void APIENTRY glGetnPixelMapuivARB(GLenum map, GLsizei bufSize, GLuint* values); + GLAPI void APIENTRY glGetnPixelMapusvARB(GLenum map, GLsizei bufSize, GLushort* values); + GLAPI void APIENTRY glGetnPolygonStippleARB(GLsizei bufSize, GLubyte* pattern); + GLAPI void APIENTRY glGetnColorTableARB(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* table); + GLAPI void APIENTRY glGetnConvolutionFilterARB(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* image); + GLAPI void APIENTRY glGetnSeparableFilterARB(GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void* row, GLsizei columnBufSize, void* column, void* span); + GLAPI void APIENTRY glGetnHistogramARB(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); + GLAPI void APIENTRY glGetnMinmaxARB(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); +#endif +#endif /* GL_ARB_robustness */ + +#ifndef GL_ARB_robustness_isolation +#define GL_ARB_robustness_isolation 1 +#endif /* GL_ARB_robustness_isolation */ + +#ifndef GL_ARB_sample_locations +#define GL_ARB_sample_locations 1 +#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB 0x933D +#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB 0x933E +#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB 0x933F +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB 0x9340 +#define GL_SAMPLE_LOCATION_ARB 0x8E50 +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB 0x9341 +#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB 0x9342 +#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB 0x9343 + typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVARBPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARBPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLEVALUATEDEPTHVALUESARBPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFramebufferSampleLocationsfvARB(GLenum target, GLuint start, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glNamedFramebufferSampleLocationsfvARB(GLuint framebuffer, GLuint start, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glEvaluateDepthValuesARB(void); +#endif +#endif /* GL_ARB_sample_locations */ + +#ifndef GL_ARB_sample_shading +#define GL_ARB_sample_shading 1 +#define GL_SAMPLE_SHADING_ARB 0x8C36 +#define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37 + typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMinSampleShadingARB(GLfloat value); +#endif +#endif /* GL_ARB_sample_shading */ + +#ifndef GL_ARB_sampler_objects +#define GL_ARB_sampler_objects 1 +#endif /* GL_ARB_sampler_objects */ + +#ifndef GL_ARB_seamless_cube_map +#define GL_ARB_seamless_cube_map 1 +#endif /* GL_ARB_seamless_cube_map */ + +#ifndef GL_ARB_seamless_cubemap_per_texture +#define GL_ARB_seamless_cubemap_per_texture 1 +#endif /* GL_ARB_seamless_cubemap_per_texture */ + +#ifndef GL_ARB_separate_shader_objects +#define GL_ARB_separate_shader_objects 1 +#endif /* GL_ARB_separate_shader_objects */ + +#ifndef GL_ARB_shader_atomic_counter_ops +#define GL_ARB_shader_atomic_counter_ops 1 +#endif /* GL_ARB_shader_atomic_counter_ops */ + +#ifndef GL_ARB_shader_atomic_counters +#define GL_ARB_shader_atomic_counters 1 +#endif /* GL_ARB_shader_atomic_counters */ + +#ifndef GL_ARB_shader_ballot +#define GL_ARB_shader_ballot 1 +#endif /* GL_ARB_shader_ballot */ + +#ifndef GL_ARB_shader_bit_encoding +#define GL_ARB_shader_bit_encoding 1 +#endif /* GL_ARB_shader_bit_encoding */ + +#ifndef GL_ARB_shader_clock +#define GL_ARB_shader_clock 1 +#endif /* GL_ARB_shader_clock */ + +#ifndef GL_ARB_shader_draw_parameters +#define GL_ARB_shader_draw_parameters 1 +#endif /* GL_ARB_shader_draw_parameters */ + +#ifndef GL_ARB_shader_group_vote +#define GL_ARB_shader_group_vote 1 +#endif /* GL_ARB_shader_group_vote */ + +#ifndef GL_ARB_shader_image_load_store +#define GL_ARB_shader_image_load_store 1 +#endif /* GL_ARB_shader_image_load_store */ + +#ifndef GL_ARB_shader_image_size +#define GL_ARB_shader_image_size 1 +#endif /* GL_ARB_shader_image_size */ + +#ifndef GL_ARB_shader_objects +#define GL_ARB_shader_objects 1 +#ifdef __APPLE__ + typedef void* GLhandleARB; +#else + typedef unsigned int GLhandleARB; +#endif + typedef char GLcharARB; +#define GL_PROGRAM_OBJECT_ARB 0x8B40 +#define GL_SHADER_OBJECT_ARB 0x8B48 +#define GL_OBJECT_TYPE_ARB 0x8B4E +#define GL_OBJECT_SUBTYPE_ARB 0x8B4F +#define GL_FLOAT_VEC2_ARB 0x8B50 +#define GL_FLOAT_VEC3_ARB 0x8B51 +#define GL_FLOAT_VEC4_ARB 0x8B52 +#define GL_INT_VEC2_ARB 0x8B53 +#define GL_INT_VEC3_ARB 0x8B54 +#define GL_INT_VEC4_ARB 0x8B55 +#define GL_BOOL_ARB 0x8B56 +#define GL_BOOL_VEC2_ARB 0x8B57 +#define GL_BOOL_VEC3_ARB 0x8B58 +#define GL_BOOL_VEC4_ARB 0x8B59 +#define GL_FLOAT_MAT2_ARB 0x8B5A +#define GL_FLOAT_MAT3_ARB 0x8B5B +#define GL_FLOAT_MAT4_ARB 0x8B5C +#define GL_SAMPLER_1D_ARB 0x8B5D +#define GL_SAMPLER_2D_ARB 0x8B5E +#define GL_SAMPLER_3D_ARB 0x8B5F +#define GL_SAMPLER_CUBE_ARB 0x8B60 +#define GL_SAMPLER_1D_SHADOW_ARB 0x8B61 +#define GL_SAMPLER_2D_SHADOW_ARB 0x8B62 +#define GL_SAMPLER_2D_RECT_ARB 0x8B63 +#define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64 +#define GL_OBJECT_DELETE_STATUS_ARB 0x8B80 +#define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81 +#define GL_OBJECT_LINK_STATUS_ARB 0x8B82 +#define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83 +#define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84 +#define GL_OBJECT_ATTACHED_OBJECTS_ARB 0x8B85 +#define GL_OBJECT_ACTIVE_UNIFORMS_ARB 0x8B86 +#define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87 +#define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88 + typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj); + typedef GLhandleARB(APIENTRYP PFNGLGETHANDLEARBPROC) (GLenum pname); + typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj); + typedef GLhandleARB(APIENTRYP PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType); + typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB** string, const GLint* length); + typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj); + typedef GLhandleARB(APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC) (void); + typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj); + typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj); + typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj); + typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj); + typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0); + typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1); + typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0); + typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1); + typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2); + typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB* infoLog); + typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei* count, GLhandleARB* obj); + typedef GLint(APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB* name); + typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLcharARB* name); + typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat* params); + typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint* params); + typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB* source); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDeleteObjectARB(GLhandleARB obj); + GLAPI GLhandleARB APIENTRY glGetHandleARB(GLenum pname); + GLAPI void APIENTRY glDetachObjectARB(GLhandleARB containerObj, GLhandleARB attachedObj); + GLAPI GLhandleARB APIENTRY glCreateShaderObjectARB(GLenum shaderType); + GLAPI void APIENTRY glShaderSourceARB(GLhandleARB shaderObj, GLsizei count, const GLcharARB** string, const GLint* length); + GLAPI void APIENTRY glCompileShaderARB(GLhandleARB shaderObj); + GLAPI GLhandleARB APIENTRY glCreateProgramObjectARB(void); + GLAPI void APIENTRY glAttachObjectARB(GLhandleARB containerObj, GLhandleARB obj); + GLAPI void APIENTRY glLinkProgramARB(GLhandleARB programObj); + GLAPI void APIENTRY glUseProgramObjectARB(GLhandleARB programObj); + GLAPI void APIENTRY glValidateProgramARB(GLhandleARB programObj); + GLAPI void APIENTRY glUniform1fARB(GLint location, GLfloat v0); + GLAPI void APIENTRY glUniform2fARB(GLint location, GLfloat v0, GLfloat v1); + GLAPI void APIENTRY glUniform3fARB(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + GLAPI void APIENTRY glUniform4fARB(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + GLAPI void APIENTRY glUniform1iARB(GLint location, GLint v0); + GLAPI void APIENTRY glUniform2iARB(GLint location, GLint v0, GLint v1); + GLAPI void APIENTRY glUniform3iARB(GLint location, GLint v0, GLint v1, GLint v2); + GLAPI void APIENTRY glUniform4iARB(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + GLAPI void APIENTRY glUniform1fvARB(GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glUniform2fvARB(GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glUniform3fvARB(GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glUniform4fvARB(GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glUniform1ivARB(GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glUniform2ivARB(GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glUniform3ivARB(GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glUniform4ivARB(GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glUniformMatrix2fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glUniformMatrix3fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glUniformMatrix4fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glGetObjectParameterfvARB(GLhandleARB obj, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetObjectParameterivARB(GLhandleARB obj, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetInfoLogARB(GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB* infoLog); + GLAPI void APIENTRY glGetAttachedObjectsARB(GLhandleARB containerObj, GLsizei maxCount, GLsizei* count, GLhandleARB* obj); + GLAPI GLint APIENTRY glGetUniformLocationARB(GLhandleARB programObj, const GLcharARB* name); + GLAPI void APIENTRY glGetActiveUniformARB(GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLcharARB* name); + GLAPI void APIENTRY glGetUniformfvARB(GLhandleARB programObj, GLint location, GLfloat* params); + GLAPI void APIENTRY glGetUniformivARB(GLhandleARB programObj, GLint location, GLint* params); + GLAPI void APIENTRY glGetShaderSourceARB(GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB* source); +#endif +#endif /* GL_ARB_shader_objects */ + +#ifndef GL_ARB_shader_precision +#define GL_ARB_shader_precision 1 +#endif /* GL_ARB_shader_precision */ + +#ifndef GL_ARB_shader_stencil_export +#define GL_ARB_shader_stencil_export 1 +#endif /* GL_ARB_shader_stencil_export */ + +#ifndef GL_ARB_shader_storage_buffer_object +#define GL_ARB_shader_storage_buffer_object 1 +#endif /* GL_ARB_shader_storage_buffer_object */ + +#ifndef GL_ARB_shader_subroutine +#define GL_ARB_shader_subroutine 1 +#endif /* GL_ARB_shader_subroutine */ + +#ifndef GL_ARB_shader_texture_image_samples +#define GL_ARB_shader_texture_image_samples 1 +#endif /* GL_ARB_shader_texture_image_samples */ + +#ifndef GL_ARB_shader_texture_lod +#define GL_ARB_shader_texture_lod 1 +#endif /* GL_ARB_shader_texture_lod */ + +#ifndef GL_ARB_shader_viewport_layer_array +#define GL_ARB_shader_viewport_layer_array 1 +#endif /* GL_ARB_shader_viewport_layer_array */ + +#ifndef GL_ARB_shading_language_100 +#define GL_ARB_shading_language_100 1 +#define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C +#endif /* GL_ARB_shading_language_100 */ + +#ifndef GL_ARB_shading_language_420pack +#define GL_ARB_shading_language_420pack 1 +#endif /* GL_ARB_shading_language_420pack */ + +#ifndef GL_ARB_shading_language_include +#define GL_ARB_shading_language_include 1 +#define GL_SHADER_INCLUDE_ARB 0x8DAE +#define GL_NAMED_STRING_LENGTH_ARB 0x8DE9 +#define GL_NAMED_STRING_TYPE_ARB 0x8DEA + typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar* name, GLint stringlen, const GLchar* string); + typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar* name); + typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar* const* path, const GLint* length); + typedef GLboolean(APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar* name); + typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar* name, GLsizei bufSize, GLint* stringlen, GLchar* string); + typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar* name, GLenum pname, GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glNamedStringARB(GLenum type, GLint namelen, const GLchar* name, GLint stringlen, const GLchar* string); + GLAPI void APIENTRY glDeleteNamedStringARB(GLint namelen, const GLchar* name); + GLAPI void APIENTRY glCompileShaderIncludeARB(GLuint shader, GLsizei count, const GLchar* const* path, const GLint* length); + GLAPI GLboolean APIENTRY glIsNamedStringARB(GLint namelen, const GLchar* name); + GLAPI void APIENTRY glGetNamedStringARB(GLint namelen, const GLchar* name, GLsizei bufSize, GLint* stringlen, GLchar* string); + GLAPI void APIENTRY glGetNamedStringivARB(GLint namelen, const GLchar* name, GLenum pname, GLint* params); +#endif +#endif /* GL_ARB_shading_language_include */ + +#ifndef GL_ARB_shading_language_packing +#define GL_ARB_shading_language_packing 1 +#endif /* GL_ARB_shading_language_packing */ + +#ifndef GL_ARB_shadow +#define GL_ARB_shadow 1 +#define GL_TEXTURE_COMPARE_MODE_ARB 0x884C +#define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D +#define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E +#endif /* GL_ARB_shadow */ + +#ifndef GL_ARB_shadow_ambient +#define GL_ARB_shadow_ambient 1 +#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF +#endif /* GL_ARB_shadow_ambient */ + +#ifndef GL_ARB_sparse_buffer +#define GL_ARB_sparse_buffer 1 +#define GL_SPARSE_STORAGE_BIT_ARB 0x0400 +#define GL_SPARSE_BUFFER_PAGE_SIZE_ARB 0x82F8 + typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTARBPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit); + typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); + typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTARBPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBufferPageCommitmentARB(GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit); + GLAPI void APIENTRY glNamedBufferPageCommitmentEXT(GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); + GLAPI void APIENTRY glNamedBufferPageCommitmentARB(GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); +#endif +#endif /* GL_ARB_sparse_buffer */ + +#ifndef GL_ARB_sparse_texture +#define GL_ARB_sparse_texture 1 +#define GL_TEXTURE_SPARSE_ARB 0x91A6 +#define GL_VIRTUAL_PAGE_SIZE_INDEX_ARB 0x91A7 +#define GL_NUM_SPARSE_LEVELS_ARB 0x91AA +#define GL_NUM_VIRTUAL_PAGE_SIZES_ARB 0x91A8 +#define GL_VIRTUAL_PAGE_SIZE_X_ARB 0x9195 +#define GL_VIRTUAL_PAGE_SIZE_Y_ARB 0x9196 +#define GL_VIRTUAL_PAGE_SIZE_Z_ARB 0x9197 +#define GL_MAX_SPARSE_TEXTURE_SIZE_ARB 0x9198 +#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB 0x9199 +#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB 0x919A +#define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB 0x91A9 + typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTexPageCommitmentARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); +#endif +#endif /* GL_ARB_sparse_texture */ + +#ifndef GL_ARB_sparse_texture2 +#define GL_ARB_sparse_texture2 1 +#endif /* GL_ARB_sparse_texture2 */ + +#ifndef GL_ARB_sparse_texture_clamp +#define GL_ARB_sparse_texture_clamp 1 +#endif /* GL_ARB_sparse_texture_clamp */ + +#ifndef GL_ARB_spirv_extensions +#define GL_ARB_spirv_extensions 1 +#endif /* GL_ARB_spirv_extensions */ + +#ifndef GL_ARB_stencil_texturing +#define GL_ARB_stencil_texturing 1 +#endif /* GL_ARB_stencil_texturing */ + +#ifndef GL_ARB_sync +#define GL_ARB_sync 1 +#endif /* GL_ARB_sync */ + +#ifndef GL_ARB_tessellation_shader +#define GL_ARB_tessellation_shader 1 +#endif /* GL_ARB_tessellation_shader */ + +#ifndef GL_ARB_texture_barrier +#define GL_ARB_texture_barrier 1 +#endif /* GL_ARB_texture_barrier */ + +#ifndef GL_ARB_texture_border_clamp +#define GL_ARB_texture_border_clamp 1 +#define GL_CLAMP_TO_BORDER_ARB 0x812D +#endif /* GL_ARB_texture_border_clamp */ + +#ifndef GL_ARB_texture_buffer_object +#define GL_ARB_texture_buffer_object 1 +#define GL_TEXTURE_BUFFER_ARB 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE_ARB 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER_ARB 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D +#define GL_TEXTURE_BUFFER_FORMAT_ARB 0x8C2E + typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTexBufferARB(GLenum target, GLenum internalformat, GLuint buffer); +#endif +#endif /* GL_ARB_texture_buffer_object */ + +#ifndef GL_ARB_texture_buffer_object_rgb32 +#define GL_ARB_texture_buffer_object_rgb32 1 +#endif /* GL_ARB_texture_buffer_object_rgb32 */ + +#ifndef GL_ARB_texture_buffer_range +#define GL_ARB_texture_buffer_range 1 +#endif /* GL_ARB_texture_buffer_range */ + +#ifndef GL_ARB_texture_compression +#define GL_ARB_texture_compression 1 +#define GL_COMPRESSED_ALPHA_ARB 0x84E9 +#define GL_COMPRESSED_LUMINANCE_ARB 0x84EA +#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB +#define GL_COMPRESSED_INTENSITY_ARB 0x84EC +#define GL_COMPRESSED_RGB_ARB 0x84ED +#define GL_COMPRESSED_RGBA_ARB 0x84EE +#define GL_TEXTURE_COMPRESSION_HINT_ARB 0x84EF +#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0 +#define GL_TEXTURE_COMPRESSED_ARB 0x86A1 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2 +#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3 + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); + typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, void* img); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glCompressedTexImage3DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTexImage2DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTexImage1DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTexSubImage3DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTexSubImage2DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glCompressedTexSubImage1DARB(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); + GLAPI void APIENTRY glGetCompressedTexImageARB(GLenum target, GLint level, void* img); +#endif +#endif /* GL_ARB_texture_compression */ + +#ifndef GL_ARB_texture_compression_bptc +#define GL_ARB_texture_compression_bptc 1 +#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C +#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D +#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E +#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F +#endif /* GL_ARB_texture_compression_bptc */ + +#ifndef GL_ARB_texture_compression_rgtc +#define GL_ARB_texture_compression_rgtc 1 +#endif /* GL_ARB_texture_compression_rgtc */ + +#ifndef GL_ARB_texture_cube_map +#define GL_ARB_texture_cube_map 1 +#define GL_NORMAL_MAP_ARB 0x8511 +#define GL_REFLECTION_MAP_ARB 0x8512 +#define GL_TEXTURE_CUBE_MAP_ARB 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARB 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB 0x851C +#endif /* GL_ARB_texture_cube_map */ + +#ifndef GL_ARB_texture_cube_map_array +#define GL_ARB_texture_cube_map_array 1 +#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B +#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C +#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D +#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E +#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F +#endif /* GL_ARB_texture_cube_map_array */ + +#ifndef GL_ARB_texture_env_add +#define GL_ARB_texture_env_add 1 +#endif /* GL_ARB_texture_env_add */ + +#ifndef GL_ARB_texture_env_combine +#define GL_ARB_texture_env_combine 1 +#define GL_COMBINE_ARB 0x8570 +#define GL_COMBINE_RGB_ARB 0x8571 +#define GL_COMBINE_ALPHA_ARB 0x8572 +#define GL_SOURCE0_RGB_ARB 0x8580 +#define GL_SOURCE1_RGB_ARB 0x8581 +#define GL_SOURCE2_RGB_ARB 0x8582 +#define GL_SOURCE0_ALPHA_ARB 0x8588 +#define GL_SOURCE1_ALPHA_ARB 0x8589 +#define GL_SOURCE2_ALPHA_ARB 0x858A +#define GL_OPERAND0_RGB_ARB 0x8590 +#define GL_OPERAND1_RGB_ARB 0x8591 +#define GL_OPERAND2_RGB_ARB 0x8592 +#define GL_OPERAND0_ALPHA_ARB 0x8598 +#define GL_OPERAND1_ALPHA_ARB 0x8599 +#define GL_OPERAND2_ALPHA_ARB 0x859A +#define GL_RGB_SCALE_ARB 0x8573 +#define GL_ADD_SIGNED_ARB 0x8574 +#define GL_INTERPOLATE_ARB 0x8575 +#define GL_SUBTRACT_ARB 0x84E7 +#define GL_CONSTANT_ARB 0x8576 +#define GL_PRIMARY_COLOR_ARB 0x8577 +#define GL_PREVIOUS_ARB 0x8578 +#endif /* GL_ARB_texture_env_combine */ + +#ifndef GL_ARB_texture_env_crossbar +#define GL_ARB_texture_env_crossbar 1 +#endif /* GL_ARB_texture_env_crossbar */ + +#ifndef GL_ARB_texture_env_dot3 +#define GL_ARB_texture_env_dot3 1 +#define GL_DOT3_RGB_ARB 0x86AE +#define GL_DOT3_RGBA_ARB 0x86AF +#endif /* GL_ARB_texture_env_dot3 */ + +#ifndef GL_ARB_texture_filter_anisotropic +#define GL_ARB_texture_filter_anisotropic 1 +#endif /* GL_ARB_texture_filter_anisotropic */ + +#ifndef GL_ARB_texture_filter_minmax +#define GL_ARB_texture_filter_minmax 1 +#define GL_TEXTURE_REDUCTION_MODE_ARB 0x9366 +#define GL_WEIGHTED_AVERAGE_ARB 0x9367 +#endif /* GL_ARB_texture_filter_minmax */ + +#ifndef GL_ARB_texture_float +#define GL_ARB_texture_float 1 +#define GL_TEXTURE_RED_TYPE_ARB 0x8C10 +#define GL_TEXTURE_GREEN_TYPE_ARB 0x8C11 +#define GL_TEXTURE_BLUE_TYPE_ARB 0x8C12 +#define GL_TEXTURE_ALPHA_TYPE_ARB 0x8C13 +#define GL_TEXTURE_LUMINANCE_TYPE_ARB 0x8C14 +#define GL_TEXTURE_INTENSITY_TYPE_ARB 0x8C15 +#define GL_TEXTURE_DEPTH_TYPE_ARB 0x8C16 +#define GL_UNSIGNED_NORMALIZED_ARB 0x8C17 +#define GL_RGBA32F_ARB 0x8814 +#define GL_RGB32F_ARB 0x8815 +#define GL_ALPHA32F_ARB 0x8816 +#define GL_INTENSITY32F_ARB 0x8817 +#define GL_LUMINANCE32F_ARB 0x8818 +#define GL_LUMINANCE_ALPHA32F_ARB 0x8819 +#define GL_RGBA16F_ARB 0x881A +#define GL_RGB16F_ARB 0x881B +#define GL_ALPHA16F_ARB 0x881C +#define GL_INTENSITY16F_ARB 0x881D +#define GL_LUMINANCE16F_ARB 0x881E +#define GL_LUMINANCE_ALPHA16F_ARB 0x881F +#endif /* GL_ARB_texture_float */ + +#ifndef GL_ARB_texture_gather +#define GL_ARB_texture_gather 1 +#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E +#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F +#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F +#endif /* GL_ARB_texture_gather */ + +#ifndef GL_ARB_texture_mirror_clamp_to_edge +#define GL_ARB_texture_mirror_clamp_to_edge 1 +#endif /* GL_ARB_texture_mirror_clamp_to_edge */ + +#ifndef GL_ARB_texture_mirrored_repeat +#define GL_ARB_texture_mirrored_repeat 1 +#define GL_MIRRORED_REPEAT_ARB 0x8370 +#endif /* GL_ARB_texture_mirrored_repeat */ + +#ifndef GL_ARB_texture_multisample +#define GL_ARB_texture_multisample 1 +#endif /* GL_ARB_texture_multisample */ + +#ifndef GL_ARB_texture_non_power_of_two +#define GL_ARB_texture_non_power_of_two 1 +#endif /* GL_ARB_texture_non_power_of_two */ + +#ifndef GL_ARB_texture_query_levels +#define GL_ARB_texture_query_levels 1 +#endif /* GL_ARB_texture_query_levels */ + +#ifndef GL_ARB_texture_query_lod +#define GL_ARB_texture_query_lod 1 +#endif /* GL_ARB_texture_query_lod */ + +#ifndef GL_ARB_texture_rectangle +#define GL_ARB_texture_rectangle 1 +#define GL_TEXTURE_RECTANGLE_ARB 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8 +#endif /* GL_ARB_texture_rectangle */ + +#ifndef GL_ARB_texture_rg +#define GL_ARB_texture_rg 1 +#endif /* GL_ARB_texture_rg */ + +#ifndef GL_ARB_texture_rgb10_a2ui +#define GL_ARB_texture_rgb10_a2ui 1 +#endif /* GL_ARB_texture_rgb10_a2ui */ + +#ifndef GL_ARB_texture_stencil8 +#define GL_ARB_texture_stencil8 1 +#endif /* GL_ARB_texture_stencil8 */ + +#ifndef GL_ARB_texture_storage +#define GL_ARB_texture_storage 1 +#endif /* GL_ARB_texture_storage */ + +#ifndef GL_ARB_texture_storage_multisample +#define GL_ARB_texture_storage_multisample 1 +#endif /* GL_ARB_texture_storage_multisample */ + +#ifndef GL_ARB_texture_swizzle +#define GL_ARB_texture_swizzle 1 +#endif /* GL_ARB_texture_swizzle */ + +#ifndef GL_ARB_texture_view +#define GL_ARB_texture_view 1 +#endif /* GL_ARB_texture_view */ + +#ifndef GL_ARB_timer_query +#define GL_ARB_timer_query 1 +#endif /* GL_ARB_timer_query */ + +#ifndef GL_ARB_transform_feedback2 +#define GL_ARB_transform_feedback2 1 +#endif /* GL_ARB_transform_feedback2 */ + +#ifndef GL_ARB_transform_feedback3 +#define GL_ARB_transform_feedback3 1 +#endif /* GL_ARB_transform_feedback3 */ + +#ifndef GL_ARB_transform_feedback_instanced +#define GL_ARB_transform_feedback_instanced 1 +#endif /* GL_ARB_transform_feedback_instanced */ + +#ifndef GL_ARB_transform_feedback_overflow_query +#define GL_ARB_transform_feedback_overflow_query 1 +#define GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB 0x82EC +#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB 0x82ED +#endif /* GL_ARB_transform_feedback_overflow_query */ + +#ifndef GL_ARB_transpose_matrix +#define GL_ARB_transpose_matrix 1 +#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3 +#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4 +#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB 0x84E5 +#define GL_TRANSPOSE_COLOR_MATRIX_ARB 0x84E6 + typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat* m); + typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble* m); + typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat* m); + typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble* m); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glLoadTransposeMatrixfARB(const GLfloat* m); + GLAPI void APIENTRY glLoadTransposeMatrixdARB(const GLdouble* m); + GLAPI void APIENTRY glMultTransposeMatrixfARB(const GLfloat* m); + GLAPI void APIENTRY glMultTransposeMatrixdARB(const GLdouble* m); +#endif +#endif /* GL_ARB_transpose_matrix */ + +#ifndef GL_ARB_uniform_buffer_object +#define GL_ARB_uniform_buffer_object 1 +#endif /* GL_ARB_uniform_buffer_object */ + +#ifndef GL_ARB_vertex_array_bgra +#define GL_ARB_vertex_array_bgra 1 +#endif /* GL_ARB_vertex_array_bgra */ + +#ifndef GL_ARB_vertex_array_object +#define GL_ARB_vertex_array_object 1 +#endif /* GL_ARB_vertex_array_object */ + +#ifndef GL_ARB_vertex_attrib_64bit +#define GL_ARB_vertex_attrib_64bit 1 +#endif /* GL_ARB_vertex_attrib_64bit */ + +#ifndef GL_ARB_vertex_attrib_binding +#define GL_ARB_vertex_attrib_binding 1 +#endif /* GL_ARB_vertex_attrib_binding */ + +#ifndef GL_ARB_vertex_blend +#define GL_ARB_vertex_blend 1 +#define GL_MAX_VERTEX_UNITS_ARB 0x86A4 +#define GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5 +#define GL_WEIGHT_SUM_UNITY_ARB 0x86A6 +#define GL_VERTEX_BLEND_ARB 0x86A7 +#define GL_CURRENT_WEIGHT_ARB 0x86A8 +#define GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9 +#define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA +#define GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB +#define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC +#define GL_WEIGHT_ARRAY_ARB 0x86AD +#define GL_MODELVIEW0_ARB 0x1700 +#define GL_MODELVIEW1_ARB 0x850A +#define GL_MODELVIEW2_ARB 0x8722 +#define GL_MODELVIEW3_ARB 0x8723 +#define GL_MODELVIEW4_ARB 0x8724 +#define GL_MODELVIEW5_ARB 0x8725 +#define GL_MODELVIEW6_ARB 0x8726 +#define GL_MODELVIEW7_ARB 0x8727 +#define GL_MODELVIEW8_ARB 0x8728 +#define GL_MODELVIEW9_ARB 0x8729 +#define GL_MODELVIEW10_ARB 0x872A +#define GL_MODELVIEW11_ARB 0x872B +#define GL_MODELVIEW12_ARB 0x872C +#define GL_MODELVIEW13_ARB 0x872D +#define GL_MODELVIEW14_ARB 0x872E +#define GL_MODELVIEW15_ARB 0x872F +#define GL_MODELVIEW16_ARB 0x8730 +#define GL_MODELVIEW17_ARB 0x8731 +#define GL_MODELVIEW18_ARB 0x8732 +#define GL_MODELVIEW19_ARB 0x8733 +#define GL_MODELVIEW20_ARB 0x8734 +#define GL_MODELVIEW21_ARB 0x8735 +#define GL_MODELVIEW22_ARB 0x8736 +#define GL_MODELVIEW23_ARB 0x8737 +#define GL_MODELVIEW24_ARB 0x8738 +#define GL_MODELVIEW25_ARB 0x8739 +#define GL_MODELVIEW26_ARB 0x873A +#define GL_MODELVIEW27_ARB 0x873B +#define GL_MODELVIEW28_ARB 0x873C +#define GL_MODELVIEW29_ARB 0x873D +#define GL_MODELVIEW30_ARB 0x873E +#define GL_MODELVIEW31_ARB 0x873F + typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte* weights); + typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort* weights); + typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size, const GLint* weights); + typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat* weights); + typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble* weights); + typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte* weights); + typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort* weights); + typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint* weights); + typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const void* pointer); + typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glWeightbvARB(GLint size, const GLbyte* weights); + GLAPI void APIENTRY glWeightsvARB(GLint size, const GLshort* weights); + GLAPI void APIENTRY glWeightivARB(GLint size, const GLint* weights); + GLAPI void APIENTRY glWeightfvARB(GLint size, const GLfloat* weights); + GLAPI void APIENTRY glWeightdvARB(GLint size, const GLdouble* weights); + GLAPI void APIENTRY glWeightubvARB(GLint size, const GLubyte* weights); + GLAPI void APIENTRY glWeightusvARB(GLint size, const GLushort* weights); + GLAPI void APIENTRY glWeightuivARB(GLint size, const GLuint* weights); + GLAPI void APIENTRY glWeightPointerARB(GLint size, GLenum type, GLsizei stride, const void* pointer); + GLAPI void APIENTRY glVertexBlendARB(GLint count); +#endif +#endif /* GL_ARB_vertex_blend */ + +#ifndef GL_ARB_vertex_buffer_object +#define GL_ARB_vertex_buffer_object 1 + typedef khronos_ssize_t GLsizeiptrARB; + typedef khronos_intptr_t GLintptrARB; +#define GL_BUFFER_SIZE_ARB 0x8764 +#define GL_BUFFER_USAGE_ARB 0x8765 +#define GL_ARRAY_BUFFER_ARB 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893 +#define GL_ARRAY_BUFFER_BINDING_ARB 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895 +#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896 +#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897 +#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898 +#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899 +#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A +#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B +#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C +#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D +#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F +#define GL_READ_ONLY_ARB 0x88B8 +#define GL_WRITE_ONLY_ARB 0x88B9 +#define GL_READ_WRITE_ARB 0x88BA +#define GL_BUFFER_ACCESS_ARB 0x88BB +#define GL_BUFFER_MAPPED_ARB 0x88BC +#define GL_BUFFER_MAP_POINTER_ARB 0x88BD +#define GL_STREAM_DRAW_ARB 0x88E0 +#define GL_STREAM_READ_ARB 0x88E1 +#define GL_STREAM_COPY_ARB 0x88E2 +#define GL_STATIC_DRAW_ARB 0x88E4 +#define GL_STATIC_READ_ARB 0x88E5 +#define GL_STATIC_COPY_ARB 0x88E6 +#define GL_DYNAMIC_DRAW_ARB 0x88E8 +#define GL_DYNAMIC_READ_ARB 0x88E9 +#define GL_DYNAMIC_COPY_ARB 0x88EA + typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer); + typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint* buffers); + typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint* buffers); + typedef GLboolean(APIENTRYP PFNGLISBUFFERARBPROC) (GLuint buffer); + typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const void* data, GLenum usage); + typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void* data); + typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, void* data); + typedef void* (APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access); + typedef GLboolean(APIENTRYP PFNGLUNMAPBUFFERARBPROC) (GLenum target); + typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, void** params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBindBufferARB(GLenum target, GLuint buffer); + GLAPI void APIENTRY glDeleteBuffersARB(GLsizei n, const GLuint* buffers); + GLAPI void APIENTRY glGenBuffersARB(GLsizei n, GLuint* buffers); + GLAPI GLboolean APIENTRY glIsBufferARB(GLuint buffer); + GLAPI void APIENTRY glBufferDataARB(GLenum target, GLsizeiptrARB size, const void* data, GLenum usage); + GLAPI void APIENTRY glBufferSubDataARB(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void* data); + GLAPI void APIENTRY glGetBufferSubDataARB(GLenum target, GLintptrARB offset, GLsizeiptrARB size, void* data); + GLAPI void* APIENTRY glMapBufferARB(GLenum target, GLenum access); + GLAPI GLboolean APIENTRY glUnmapBufferARB(GLenum target); + GLAPI void APIENTRY glGetBufferParameterivARB(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetBufferPointervARB(GLenum target, GLenum pname, void** params); +#endif +#endif /* GL_ARB_vertex_buffer_object */ + +#ifndef GL_ARB_vertex_program +#define GL_ARB_vertex_program 1 +#define GL_COLOR_SUM_ARB 0x8458 +#define GL_VERTEX_PROGRAM_ARB 0x8620 +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625 +#define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626 +#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645 +#define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869 +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A +#define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0 +#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1 +#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2 +#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3 + typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer); + typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); + typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, void** pointer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVertexAttrib1dARB(GLuint index, GLdouble x); + GLAPI void APIENTRY glVertexAttrib1dvARB(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib1fARB(GLuint index, GLfloat x); + GLAPI void APIENTRY glVertexAttrib1fvARB(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib1sARB(GLuint index, GLshort x); + GLAPI void APIENTRY glVertexAttrib1svARB(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib2dARB(GLuint index, GLdouble x, GLdouble y); + GLAPI void APIENTRY glVertexAttrib2dvARB(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib2fARB(GLuint index, GLfloat x, GLfloat y); + GLAPI void APIENTRY glVertexAttrib2fvARB(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib2sARB(GLuint index, GLshort x, GLshort y); + GLAPI void APIENTRY glVertexAttrib2svARB(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib3dARB(GLuint index, GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glVertexAttrib3dvARB(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib3fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glVertexAttrib3fvARB(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib3sARB(GLuint index, GLshort x, GLshort y, GLshort z); + GLAPI void APIENTRY glVertexAttrib3svARB(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib4NbvARB(GLuint index, const GLbyte* v); + GLAPI void APIENTRY glVertexAttrib4NivARB(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttrib4NsvARB(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib4NubARB(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); + GLAPI void APIENTRY glVertexAttrib4NubvARB(GLuint index, const GLubyte* v); + GLAPI void APIENTRY glVertexAttrib4NuivARB(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttrib4NusvARB(GLuint index, const GLushort* v); + GLAPI void APIENTRY glVertexAttrib4bvARB(GLuint index, const GLbyte* v); + GLAPI void APIENTRY glVertexAttrib4dARB(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glVertexAttrib4dvARB(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib4fARB(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glVertexAttrib4fvARB(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib4ivARB(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttrib4sARB(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); + GLAPI void APIENTRY glVertexAttrib4svARB(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib4ubvARB(GLuint index, const GLubyte* v); + GLAPI void APIENTRY glVertexAttrib4uivARB(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttrib4usvARB(GLuint index, const GLushort* v); + GLAPI void APIENTRY glVertexAttribPointerARB(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer); + GLAPI void APIENTRY glEnableVertexAttribArrayARB(GLuint index); + GLAPI void APIENTRY glDisableVertexAttribArrayARB(GLuint index); + GLAPI void APIENTRY glGetVertexAttribdvARB(GLuint index, GLenum pname, GLdouble* params); + GLAPI void APIENTRY glGetVertexAttribfvARB(GLuint index, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetVertexAttribivARB(GLuint index, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetVertexAttribPointervARB(GLuint index, GLenum pname, void** pointer); +#endif +#endif /* GL_ARB_vertex_program */ + +#ifndef GL_ARB_vertex_shader +#define GL_ARB_vertex_shader 1 +#define GL_VERTEX_SHADER_ARB 0x8B31 +#define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A +#define GL_MAX_VARYING_FLOATS_ARB 0x8B4B +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D +#define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB 0x8B89 +#define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A + typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB* name); + typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLcharARB* name); + typedef GLint(APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB* name); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBindAttribLocationARB(GLhandleARB programObj, GLuint index, const GLcharARB* name); + GLAPI void APIENTRY glGetActiveAttribARB(GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLcharARB* name); + GLAPI GLint APIENTRY glGetAttribLocationARB(GLhandleARB programObj, const GLcharARB* name); +#endif +#endif /* GL_ARB_vertex_shader */ + +#ifndef GL_ARB_vertex_type_10f_11f_11f_rev +#define GL_ARB_vertex_type_10f_11f_11f_rev 1 +#endif /* GL_ARB_vertex_type_10f_11f_11f_rev */ + +#ifndef GL_ARB_vertex_type_2_10_10_10_rev +#define GL_ARB_vertex_type_2_10_10_10_rev 1 +#endif /* GL_ARB_vertex_type_2_10_10_10_rev */ + +#ifndef GL_ARB_viewport_array +#define GL_ARB_viewport_array 1 + typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYDVNVPROC) (GLuint first, GLsizei count, const GLdouble* v); + typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDDNVPROC) (GLuint index, GLdouble n, GLdouble f); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDepthRangeArraydvNV(GLuint first, GLsizei count, const GLdouble* v); + GLAPI void APIENTRY glDepthRangeIndexeddNV(GLuint index, GLdouble n, GLdouble f); +#endif +#endif /* GL_ARB_viewport_array */ + +#ifndef GL_ARB_window_pos +#define GL_ARB_window_pos 1 + typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y); + typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC) (const GLdouble* v); + typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y); + typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC) (const GLfloat* v); + typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y); + typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC) (const GLint* v); + typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y); + typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC) (const GLshort* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC) (const GLdouble* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC) (const GLfloat* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z); + typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC) (const GLint* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z); + typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC) (const GLshort* v); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glWindowPos2dARB(GLdouble x, GLdouble y); + GLAPI void APIENTRY glWindowPos2dvARB(const GLdouble* v); + GLAPI void APIENTRY glWindowPos2fARB(GLfloat x, GLfloat y); + GLAPI void APIENTRY glWindowPos2fvARB(const GLfloat* v); + GLAPI void APIENTRY glWindowPos2iARB(GLint x, GLint y); + GLAPI void APIENTRY glWindowPos2ivARB(const GLint* v); + GLAPI void APIENTRY glWindowPos2sARB(GLshort x, GLshort y); + GLAPI void APIENTRY glWindowPos2svARB(const GLshort* v); + GLAPI void APIENTRY glWindowPos3dARB(GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glWindowPos3dvARB(const GLdouble* v); + GLAPI void APIENTRY glWindowPos3fARB(GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glWindowPos3fvARB(const GLfloat* v); + GLAPI void APIENTRY glWindowPos3iARB(GLint x, GLint y, GLint z); + GLAPI void APIENTRY glWindowPos3ivARB(const GLint* v); + GLAPI void APIENTRY glWindowPos3sARB(GLshort x, GLshort y, GLshort z); + GLAPI void APIENTRY glWindowPos3svARB(const GLshort* v); +#endif +#endif /* GL_ARB_window_pos */ + +#ifndef GL_KHR_blend_equation_advanced +#define GL_KHR_blend_equation_advanced 1 +#define GL_MULTIPLY_KHR 0x9294 +#define GL_SCREEN_KHR 0x9295 +#define GL_OVERLAY_KHR 0x9296 +#define GL_DARKEN_KHR 0x9297 +#define GL_LIGHTEN_KHR 0x9298 +#define GL_COLORDODGE_KHR 0x9299 +#define GL_COLORBURN_KHR 0x929A +#define GL_HARDLIGHT_KHR 0x929B +#define GL_SOFTLIGHT_KHR 0x929C +#define GL_DIFFERENCE_KHR 0x929E +#define GL_EXCLUSION_KHR 0x92A0 +#define GL_HSL_HUE_KHR 0x92AD +#define GL_HSL_SATURATION_KHR 0x92AE +#define GL_HSL_COLOR_KHR 0x92AF +#define GL_HSL_LUMINOSITY_KHR 0x92B0 + typedef void (APIENTRYP PFNGLBLENDBARRIERKHRPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlendBarrierKHR(void); +#endif +#endif /* GL_KHR_blend_equation_advanced */ + +#ifndef GL_KHR_blend_equation_advanced_coherent +#define GL_KHR_blend_equation_advanced_coherent 1 +#define GL_BLEND_ADVANCED_COHERENT_KHR 0x9285 +#endif /* GL_KHR_blend_equation_advanced_coherent */ + +#ifndef GL_KHR_context_flush_control +#define GL_KHR_context_flush_control 1 +#endif /* GL_KHR_context_flush_control */ + +#ifndef GL_KHR_debug +#define GL_KHR_debug 1 +#endif /* GL_KHR_debug */ + +#ifndef GL_KHR_no_error +#define GL_KHR_no_error 1 +#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR 0x00000008 +#endif /* GL_KHR_no_error */ + +#ifndef GL_KHR_parallel_shader_compile +#define GL_KHR_parallel_shader_compile 1 +#define GL_MAX_SHADER_COMPILER_THREADS_KHR 0x91B0 +#define GL_COMPLETION_STATUS_KHR 0x91B1 + typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSKHRPROC) (GLuint count); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMaxShaderCompilerThreadsKHR(GLuint count); +#endif +#endif /* GL_KHR_parallel_shader_compile */ + +#ifndef GL_KHR_robust_buffer_access_behavior +#define GL_KHR_robust_buffer_access_behavior 1 +#endif /* GL_KHR_robust_buffer_access_behavior */ + +#ifndef GL_KHR_robustness +#define GL_KHR_robustness 1 +#define GL_CONTEXT_ROBUST_ACCESS 0x90F3 +#endif /* GL_KHR_robustness */ + +#ifndef GL_KHR_shader_subgroup +#define GL_KHR_shader_subgroup 1 +#define GL_SUBGROUP_SIZE_KHR 0x9532 +#define GL_SUBGROUP_SUPPORTED_STAGES_KHR 0x9533 +#define GL_SUBGROUP_SUPPORTED_FEATURES_KHR 0x9534 +#define GL_SUBGROUP_QUAD_ALL_STAGES_KHR 0x9535 +#define GL_SUBGROUP_FEATURE_BASIC_BIT_KHR 0x00000001 +#define GL_SUBGROUP_FEATURE_VOTE_BIT_KHR 0x00000002 +#define GL_SUBGROUP_FEATURE_ARITHMETIC_BIT_KHR 0x00000004 +#define GL_SUBGROUP_FEATURE_BALLOT_BIT_KHR 0x00000008 +#define GL_SUBGROUP_FEATURE_SHUFFLE_BIT_KHR 0x00000010 +#define GL_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT_KHR 0x00000020 +#define GL_SUBGROUP_FEATURE_CLUSTERED_BIT_KHR 0x00000040 +#define GL_SUBGROUP_FEATURE_QUAD_BIT_KHR 0x00000080 +#endif /* GL_KHR_shader_subgroup */ + +#ifndef GL_KHR_texture_compression_astc_hdr +#define GL_KHR_texture_compression_astc_hdr 1 +#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0 +#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1 +#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2 +#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3 +#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4 +#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5 +#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6 +#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7 +#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8 +#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9 +#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA +#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB +#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC +#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD +#endif /* GL_KHR_texture_compression_astc_hdr */ + +#ifndef GL_KHR_texture_compression_astc_ldr +#define GL_KHR_texture_compression_astc_ldr 1 +#endif /* GL_KHR_texture_compression_astc_ldr */ + +#ifndef GL_KHR_texture_compression_astc_sliced_3d +#define GL_KHR_texture_compression_astc_sliced_3d 1 +#endif /* GL_KHR_texture_compression_astc_sliced_3d */ + +#ifndef GL_OES_byte_coordinates +#define GL_OES_byte_coordinates 1 + typedef void (APIENTRYP PFNGLMULTITEXCOORD1BOESPROC) (GLenum texture, GLbyte s); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1BVOESPROC) (GLenum texture, const GLbyte* coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2BOESPROC) (GLenum texture, GLbyte s, GLbyte t); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2BVOESPROC) (GLenum texture, const GLbyte* coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3BVOESPROC) (GLenum texture, const GLbyte* coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4BVOESPROC) (GLenum texture, const GLbyte* coords); + typedef void (APIENTRYP PFNGLTEXCOORD1BOESPROC) (GLbyte s); + typedef void (APIENTRYP PFNGLTEXCOORD1BVOESPROC) (const GLbyte* coords); + typedef void (APIENTRYP PFNGLTEXCOORD2BOESPROC) (GLbyte s, GLbyte t); + typedef void (APIENTRYP PFNGLTEXCOORD2BVOESPROC) (const GLbyte* coords); + typedef void (APIENTRYP PFNGLTEXCOORD3BOESPROC) (GLbyte s, GLbyte t, GLbyte r); + typedef void (APIENTRYP PFNGLTEXCOORD3BVOESPROC) (const GLbyte* coords); + typedef void (APIENTRYP PFNGLTEXCOORD4BOESPROC) (GLbyte s, GLbyte t, GLbyte r, GLbyte q); + typedef void (APIENTRYP PFNGLTEXCOORD4BVOESPROC) (const GLbyte* coords); + typedef void (APIENTRYP PFNGLVERTEX2BOESPROC) (GLbyte x, GLbyte y); + typedef void (APIENTRYP PFNGLVERTEX2BVOESPROC) (const GLbyte* coords); + typedef void (APIENTRYP PFNGLVERTEX3BOESPROC) (GLbyte x, GLbyte y, GLbyte z); + typedef void (APIENTRYP PFNGLVERTEX3BVOESPROC) (const GLbyte* coords); + typedef void (APIENTRYP PFNGLVERTEX4BOESPROC) (GLbyte x, GLbyte y, GLbyte z, GLbyte w); + typedef void (APIENTRYP PFNGLVERTEX4BVOESPROC) (const GLbyte* coords); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMultiTexCoord1bOES(GLenum texture, GLbyte s); + GLAPI void APIENTRY glMultiTexCoord1bvOES(GLenum texture, const GLbyte* coords); + GLAPI void APIENTRY glMultiTexCoord2bOES(GLenum texture, GLbyte s, GLbyte t); + GLAPI void APIENTRY glMultiTexCoord2bvOES(GLenum texture, const GLbyte* coords); + GLAPI void APIENTRY glMultiTexCoord3bOES(GLenum texture, GLbyte s, GLbyte t, GLbyte r); + GLAPI void APIENTRY glMultiTexCoord3bvOES(GLenum texture, const GLbyte* coords); + GLAPI void APIENTRY glMultiTexCoord4bOES(GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q); + GLAPI void APIENTRY glMultiTexCoord4bvOES(GLenum texture, const GLbyte* coords); + GLAPI void APIENTRY glTexCoord1bOES(GLbyte s); + GLAPI void APIENTRY glTexCoord1bvOES(const GLbyte* coords); + GLAPI void APIENTRY glTexCoord2bOES(GLbyte s, GLbyte t); + GLAPI void APIENTRY glTexCoord2bvOES(const GLbyte* coords); + GLAPI void APIENTRY glTexCoord3bOES(GLbyte s, GLbyte t, GLbyte r); + GLAPI void APIENTRY glTexCoord3bvOES(const GLbyte* coords); + GLAPI void APIENTRY glTexCoord4bOES(GLbyte s, GLbyte t, GLbyte r, GLbyte q); + GLAPI void APIENTRY glTexCoord4bvOES(const GLbyte* coords); + GLAPI void APIENTRY glVertex2bOES(GLbyte x, GLbyte y); + GLAPI void APIENTRY glVertex2bvOES(const GLbyte* coords); + GLAPI void APIENTRY glVertex3bOES(GLbyte x, GLbyte y, GLbyte z); + GLAPI void APIENTRY glVertex3bvOES(const GLbyte* coords); + GLAPI void APIENTRY glVertex4bOES(GLbyte x, GLbyte y, GLbyte z, GLbyte w); + GLAPI void APIENTRY glVertex4bvOES(const GLbyte* coords); +#endif +#endif /* GL_OES_byte_coordinates */ + +#ifndef GL_OES_compressed_paletted_texture +#define GL_OES_compressed_paletted_texture 1 +#define GL_PALETTE4_RGB8_OES 0x8B90 +#define GL_PALETTE4_RGBA8_OES 0x8B91 +#define GL_PALETTE4_R5_G6_B5_OES 0x8B92 +#define GL_PALETTE4_RGBA4_OES 0x8B93 +#define GL_PALETTE4_RGB5_A1_OES 0x8B94 +#define GL_PALETTE8_RGB8_OES 0x8B95 +#define GL_PALETTE8_RGBA8_OES 0x8B96 +#define GL_PALETTE8_R5_G6_B5_OES 0x8B97 +#define GL_PALETTE8_RGBA4_OES 0x8B98 +#define GL_PALETTE8_RGB5_A1_OES 0x8B99 +#endif /* GL_OES_compressed_paletted_texture */ + +#ifndef GL_OES_fixed_point +#define GL_OES_fixed_point 1 + typedef khronos_int32_t GLfixed; +#define GL_FIXED_OES 0x140C + typedef void (APIENTRYP PFNGLALPHAFUNCXOESPROC) (GLenum func, GLfixed ref); + typedef void (APIENTRYP PFNGLCLEARCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); + typedef void (APIENTRYP PFNGLCLEARDEPTHXOESPROC) (GLfixed depth); + typedef void (APIENTRYP PFNGLCLIPPLANEXOESPROC) (GLenum plane, const GLfixed* equation); + typedef void (APIENTRYP PFNGLCOLOR4XOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); + typedef void (APIENTRYP PFNGLDEPTHRANGEXOESPROC) (GLfixed n, GLfixed f); + typedef void (APIENTRYP PFNGLFOGXOESPROC) (GLenum pname, GLfixed param); + typedef void (APIENTRYP PFNGLFOGXVOESPROC) (GLenum pname, const GLfixed* param); + typedef void (APIENTRYP PFNGLFRUSTUMXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); + typedef void (APIENTRYP PFNGLGETCLIPPLANEXOESPROC) (GLenum plane, GLfixed* equation); + typedef void (APIENTRYP PFNGLGETFIXEDVOESPROC) (GLenum pname, GLfixed* params); + typedef void (APIENTRYP PFNGLGETTEXENVXVOESPROC) (GLenum target, GLenum pname, GLfixed* params); + typedef void (APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed* params); + typedef void (APIENTRYP PFNGLLIGHTMODELXOESPROC) (GLenum pname, GLfixed param); + typedef void (APIENTRYP PFNGLLIGHTMODELXVOESPROC) (GLenum pname, const GLfixed* param); + typedef void (APIENTRYP PFNGLLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed param); + typedef void (APIENTRYP PFNGLLIGHTXVOESPROC) (GLenum light, GLenum pname, const GLfixed* params); + typedef void (APIENTRYP PFNGLLINEWIDTHXOESPROC) (GLfixed width); + typedef void (APIENTRYP PFNGLLOADMATRIXXOESPROC) (const GLfixed* m); + typedef void (APIENTRYP PFNGLMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param); + typedef void (APIENTRYP PFNGLMATERIALXVOESPROC) (GLenum face, GLenum pname, const GLfixed* param); + typedef void (APIENTRYP PFNGLMULTMATRIXXOESPROC) (const GLfixed* m); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q); + typedef void (APIENTRYP PFNGLNORMAL3XOESPROC) (GLfixed nx, GLfixed ny, GLfixed nz); + typedef void (APIENTRYP PFNGLORTHOXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); + typedef void (APIENTRYP PFNGLPOINTPARAMETERXVOESPROC) (GLenum pname, const GLfixed* params); + typedef void (APIENTRYP PFNGLPOINTSIZEXOESPROC) (GLfixed size); + typedef void (APIENTRYP PFNGLPOLYGONOFFSETXOESPROC) (GLfixed factor, GLfixed units); + typedef void (APIENTRYP PFNGLROTATEXOESPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z); + typedef void (APIENTRYP PFNGLSCALEXOESPROC) (GLfixed x, GLfixed y, GLfixed z); + typedef void (APIENTRYP PFNGLTEXENVXOESPROC) (GLenum target, GLenum pname, GLfixed param); + typedef void (APIENTRYP PFNGLTEXENVXVOESPROC) (GLenum target, GLenum pname, const GLfixed* params); + typedef void (APIENTRYP PFNGLTEXPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param); + typedef void (APIENTRYP PFNGLTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed* params); + typedef void (APIENTRYP PFNGLTRANSLATEXOESPROC) (GLfixed x, GLfixed y, GLfixed z); + typedef void (APIENTRYP PFNGLACCUMXOESPROC) (GLenum op, GLfixed value); + typedef void (APIENTRYP PFNGLBITMAPXOESPROC) (GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte* bitmap); + typedef void (APIENTRYP PFNGLBLENDCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); + typedef void (APIENTRYP PFNGLCLEARACCUMXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); + typedef void (APIENTRYP PFNGLCOLOR3XOESPROC) (GLfixed red, GLfixed green, GLfixed blue); + typedef void (APIENTRYP PFNGLCOLOR3XVOESPROC) (const GLfixed* components); + typedef void (APIENTRYP PFNGLCOLOR4XVOESPROC) (const GLfixed* components); + typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param); + typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed* params); + typedef void (APIENTRYP PFNGLEVALCOORD1XOESPROC) (GLfixed u); + typedef void (APIENTRYP PFNGLEVALCOORD1XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLEVALCOORD2XOESPROC) (GLfixed u, GLfixed v); + typedef void (APIENTRYP PFNGLEVALCOORD2XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLFEEDBACKBUFFERXOESPROC) (GLsizei n, GLenum type, const GLfixed* buffer); + typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed* params); + typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed* params); + typedef void (APIENTRYP PFNGLGETLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed* params); + typedef void (APIENTRYP PFNGLGETMAPXVOESPROC) (GLenum target, GLenum query, GLfixed* v); + typedef void (APIENTRYP PFNGLGETMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param); + typedef void (APIENTRYP PFNGLGETPIXELMAPXVPROC) (GLenum map, GLint size, GLfixed* values); + typedef void (APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed* params); + typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERXVOESPROC) (GLenum target, GLint level, GLenum pname, GLfixed* params); + typedef void (APIENTRYP PFNGLINDEXXOESPROC) (GLfixed component); + typedef void (APIENTRYP PFNGLINDEXXVOESPROC) (const GLfixed* component); + typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXXOESPROC) (const GLfixed* m); + typedef void (APIENTRYP PFNGLMAP1XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points); + typedef void (APIENTRYP PFNGLMAP2XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points); + typedef void (APIENTRYP PFNGLMAPGRID1XOESPROC) (GLint n, GLfixed u1, GLfixed u2); + typedef void (APIENTRYP PFNGLMAPGRID2XOESPROC) (GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2); + typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXXOESPROC) (const GLfixed* m); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1XOESPROC) (GLenum texture, GLfixed s); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1XVOESPROC) (GLenum texture, const GLfixed* coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2XOESPROC) (GLenum texture, GLfixed s, GLfixed t); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2XVOESPROC) (GLenum texture, const GLfixed* coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3XVOESPROC) (GLenum texture, const GLfixed* coords); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4XVOESPROC) (GLenum texture, const GLfixed* coords); + typedef void (APIENTRYP PFNGLNORMAL3XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLPASSTHROUGHXOESPROC) (GLfixed token); + typedef void (APIENTRYP PFNGLPIXELMAPXPROC) (GLenum map, GLint size, const GLfixed* values); + typedef void (APIENTRYP PFNGLPIXELSTOREXPROC) (GLenum pname, GLfixed param); + typedef void (APIENTRYP PFNGLPIXELTRANSFERXOESPROC) (GLenum pname, GLfixed param); + typedef void (APIENTRYP PFNGLPIXELZOOMXOESPROC) (GLfixed xfactor, GLfixed yfactor); + typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESXOESPROC) (GLsizei n, const GLuint* textures, const GLfixed* priorities); + typedef void (APIENTRYP PFNGLRASTERPOS2XOESPROC) (GLfixed x, GLfixed y); + typedef void (APIENTRYP PFNGLRASTERPOS2XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLRASTERPOS3XOESPROC) (GLfixed x, GLfixed y, GLfixed z); + typedef void (APIENTRYP PFNGLRASTERPOS3XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLRASTERPOS4XOESPROC) (GLfixed x, GLfixed y, GLfixed z, GLfixed w); + typedef void (APIENTRYP PFNGLRASTERPOS4XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLRECTXOESPROC) (GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2); + typedef void (APIENTRYP PFNGLRECTXVOESPROC) (const GLfixed* v1, const GLfixed* v2); + typedef void (APIENTRYP PFNGLTEXCOORD1XOESPROC) (GLfixed s); + typedef void (APIENTRYP PFNGLTEXCOORD1XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLTEXCOORD2XOESPROC) (GLfixed s, GLfixed t); + typedef void (APIENTRYP PFNGLTEXCOORD2XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLTEXCOORD3XOESPROC) (GLfixed s, GLfixed t, GLfixed r); + typedef void (APIENTRYP PFNGLTEXCOORD3XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLTEXCOORD4XOESPROC) (GLfixed s, GLfixed t, GLfixed r, GLfixed q); + typedef void (APIENTRYP PFNGLTEXCOORD4XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param); + typedef void (APIENTRYP PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname, const GLfixed* params); + typedef void (APIENTRYP PFNGLVERTEX2XOESPROC) (GLfixed x); + typedef void (APIENTRYP PFNGLVERTEX2XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLVERTEX3XOESPROC) (GLfixed x, GLfixed y); + typedef void (APIENTRYP PFNGLVERTEX3XVOESPROC) (const GLfixed* coords); + typedef void (APIENTRYP PFNGLVERTEX4XOESPROC) (GLfixed x, GLfixed y, GLfixed z); + typedef void (APIENTRYP PFNGLVERTEX4XVOESPROC) (const GLfixed* coords); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glAlphaFuncxOES(GLenum func, GLfixed ref); + GLAPI void APIENTRY glClearColorxOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); + GLAPI void APIENTRY glClearDepthxOES(GLfixed depth); + GLAPI void APIENTRY glClipPlanexOES(GLenum plane, const GLfixed* equation); + GLAPI void APIENTRY glColor4xOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); + GLAPI void APIENTRY glDepthRangexOES(GLfixed n, GLfixed f); + GLAPI void APIENTRY glFogxOES(GLenum pname, GLfixed param); + GLAPI void APIENTRY glFogxvOES(GLenum pname, const GLfixed* param); + GLAPI void APIENTRY glFrustumxOES(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); + GLAPI void APIENTRY glGetClipPlanexOES(GLenum plane, GLfixed* equation); + GLAPI void APIENTRY glGetFixedvOES(GLenum pname, GLfixed* params); + GLAPI void APIENTRY glGetTexEnvxvOES(GLenum target, GLenum pname, GLfixed* params); + GLAPI void APIENTRY glGetTexParameterxvOES(GLenum target, GLenum pname, GLfixed* params); + GLAPI void APIENTRY glLightModelxOES(GLenum pname, GLfixed param); + GLAPI void APIENTRY glLightModelxvOES(GLenum pname, const GLfixed* param); + GLAPI void APIENTRY glLightxOES(GLenum light, GLenum pname, GLfixed param); + GLAPI void APIENTRY glLightxvOES(GLenum light, GLenum pname, const GLfixed* params); + GLAPI void APIENTRY glLineWidthxOES(GLfixed width); + GLAPI void APIENTRY glLoadMatrixxOES(const GLfixed* m); + GLAPI void APIENTRY glMaterialxOES(GLenum face, GLenum pname, GLfixed param); + GLAPI void APIENTRY glMaterialxvOES(GLenum face, GLenum pname, const GLfixed* param); + GLAPI void APIENTRY glMultMatrixxOES(const GLfixed* m); + GLAPI void APIENTRY glMultiTexCoord4xOES(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q); + GLAPI void APIENTRY glNormal3xOES(GLfixed nx, GLfixed ny, GLfixed nz); + GLAPI void APIENTRY glOrthoxOES(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); + GLAPI void APIENTRY glPointParameterxvOES(GLenum pname, const GLfixed* params); + GLAPI void APIENTRY glPointSizexOES(GLfixed size); + GLAPI void APIENTRY glPolygonOffsetxOES(GLfixed factor, GLfixed units); + GLAPI void APIENTRY glRotatexOES(GLfixed angle, GLfixed x, GLfixed y, GLfixed z); + GLAPI void APIENTRY glScalexOES(GLfixed x, GLfixed y, GLfixed z); + GLAPI void APIENTRY glTexEnvxOES(GLenum target, GLenum pname, GLfixed param); + GLAPI void APIENTRY glTexEnvxvOES(GLenum target, GLenum pname, const GLfixed* params); + GLAPI void APIENTRY glTexParameterxOES(GLenum target, GLenum pname, GLfixed param); + GLAPI void APIENTRY glTexParameterxvOES(GLenum target, GLenum pname, const GLfixed* params); + GLAPI void APIENTRY glTranslatexOES(GLfixed x, GLfixed y, GLfixed z); + GLAPI void APIENTRY glAccumxOES(GLenum op, GLfixed value); + GLAPI void APIENTRY glBitmapxOES(GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte* bitmap); + GLAPI void APIENTRY glBlendColorxOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); + GLAPI void APIENTRY glClearAccumxOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); + GLAPI void APIENTRY glColor3xOES(GLfixed red, GLfixed green, GLfixed blue); + GLAPI void APIENTRY glColor3xvOES(const GLfixed* components); + GLAPI void APIENTRY glColor4xvOES(const GLfixed* components); + GLAPI void APIENTRY glConvolutionParameterxOES(GLenum target, GLenum pname, GLfixed param); + GLAPI void APIENTRY glConvolutionParameterxvOES(GLenum target, GLenum pname, const GLfixed* params); + GLAPI void APIENTRY glEvalCoord1xOES(GLfixed u); + GLAPI void APIENTRY glEvalCoord1xvOES(const GLfixed* coords); + GLAPI void APIENTRY glEvalCoord2xOES(GLfixed u, GLfixed v); + GLAPI void APIENTRY glEvalCoord2xvOES(const GLfixed* coords); + GLAPI void APIENTRY glFeedbackBufferxOES(GLsizei n, GLenum type, const GLfixed* buffer); + GLAPI void APIENTRY glGetConvolutionParameterxvOES(GLenum target, GLenum pname, GLfixed* params); + GLAPI void APIENTRY glGetHistogramParameterxvOES(GLenum target, GLenum pname, GLfixed* params); + GLAPI void APIENTRY glGetLightxOES(GLenum light, GLenum pname, GLfixed* params); + GLAPI void APIENTRY glGetMapxvOES(GLenum target, GLenum query, GLfixed* v); + GLAPI void APIENTRY glGetMaterialxOES(GLenum face, GLenum pname, GLfixed param); + GLAPI void APIENTRY glGetPixelMapxv(GLenum map, GLint size, GLfixed* values); + GLAPI void APIENTRY glGetTexGenxvOES(GLenum coord, GLenum pname, GLfixed* params); + GLAPI void APIENTRY glGetTexLevelParameterxvOES(GLenum target, GLint level, GLenum pname, GLfixed* params); + GLAPI void APIENTRY glIndexxOES(GLfixed component); + GLAPI void APIENTRY glIndexxvOES(const GLfixed* component); + GLAPI void APIENTRY glLoadTransposeMatrixxOES(const GLfixed* m); + GLAPI void APIENTRY glMap1xOES(GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points); + GLAPI void APIENTRY glMap2xOES(GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points); + GLAPI void APIENTRY glMapGrid1xOES(GLint n, GLfixed u1, GLfixed u2); + GLAPI void APIENTRY glMapGrid2xOES(GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2); + GLAPI void APIENTRY glMultTransposeMatrixxOES(const GLfixed* m); + GLAPI void APIENTRY glMultiTexCoord1xOES(GLenum texture, GLfixed s); + GLAPI void APIENTRY glMultiTexCoord1xvOES(GLenum texture, const GLfixed* coords); + GLAPI void APIENTRY glMultiTexCoord2xOES(GLenum texture, GLfixed s, GLfixed t); + GLAPI void APIENTRY glMultiTexCoord2xvOES(GLenum texture, const GLfixed* coords); + GLAPI void APIENTRY glMultiTexCoord3xOES(GLenum texture, GLfixed s, GLfixed t, GLfixed r); + GLAPI void APIENTRY glMultiTexCoord3xvOES(GLenum texture, const GLfixed* coords); + GLAPI void APIENTRY glMultiTexCoord4xvOES(GLenum texture, const GLfixed* coords); + GLAPI void APIENTRY glNormal3xvOES(const GLfixed* coords); + GLAPI void APIENTRY glPassThroughxOES(GLfixed token); + GLAPI void APIENTRY glPixelMapx(GLenum map, GLint size, const GLfixed* values); + GLAPI void APIENTRY glPixelStorex(GLenum pname, GLfixed param); + GLAPI void APIENTRY glPixelTransferxOES(GLenum pname, GLfixed param); + GLAPI void APIENTRY glPixelZoomxOES(GLfixed xfactor, GLfixed yfactor); + GLAPI void APIENTRY glPrioritizeTexturesxOES(GLsizei n, const GLuint* textures, const GLfixed* priorities); + GLAPI void APIENTRY glRasterPos2xOES(GLfixed x, GLfixed y); + GLAPI void APIENTRY glRasterPos2xvOES(const GLfixed* coords); + GLAPI void APIENTRY glRasterPos3xOES(GLfixed x, GLfixed y, GLfixed z); + GLAPI void APIENTRY glRasterPos3xvOES(const GLfixed* coords); + GLAPI void APIENTRY glRasterPos4xOES(GLfixed x, GLfixed y, GLfixed z, GLfixed w); + GLAPI void APIENTRY glRasterPos4xvOES(const GLfixed* coords); + GLAPI void APIENTRY glRectxOES(GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2); + GLAPI void APIENTRY glRectxvOES(const GLfixed* v1, const GLfixed* v2); + GLAPI void APIENTRY glTexCoord1xOES(GLfixed s); + GLAPI void APIENTRY glTexCoord1xvOES(const GLfixed* coords); + GLAPI void APIENTRY glTexCoord2xOES(GLfixed s, GLfixed t); + GLAPI void APIENTRY glTexCoord2xvOES(const GLfixed* coords); + GLAPI void APIENTRY glTexCoord3xOES(GLfixed s, GLfixed t, GLfixed r); + GLAPI void APIENTRY glTexCoord3xvOES(const GLfixed* coords); + GLAPI void APIENTRY glTexCoord4xOES(GLfixed s, GLfixed t, GLfixed r, GLfixed q); + GLAPI void APIENTRY glTexCoord4xvOES(const GLfixed* coords); + GLAPI void APIENTRY glTexGenxOES(GLenum coord, GLenum pname, GLfixed param); + GLAPI void APIENTRY glTexGenxvOES(GLenum coord, GLenum pname, const GLfixed* params); + GLAPI void APIENTRY glVertex2xOES(GLfixed x); + GLAPI void APIENTRY glVertex2xvOES(const GLfixed* coords); + GLAPI void APIENTRY glVertex3xOES(GLfixed x, GLfixed y); + GLAPI void APIENTRY glVertex3xvOES(const GLfixed* coords); + GLAPI void APIENTRY glVertex4xOES(GLfixed x, GLfixed y, GLfixed z); + GLAPI void APIENTRY glVertex4xvOES(const GLfixed* coords); +#endif +#endif /* GL_OES_fixed_point */ + +#ifndef GL_OES_query_matrix +#define GL_OES_query_matrix 1 + typedef GLbitfield(APIENTRYP PFNGLQUERYMATRIXXOESPROC) (GLfixed* mantissa, GLint* exponent); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLbitfield APIENTRY glQueryMatrixxOES(GLfixed* mantissa, GLint* exponent); +#endif +#endif /* GL_OES_query_matrix */ + +#ifndef GL_OES_read_format +#define GL_OES_read_format 1 +#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A +#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B +#endif /* GL_OES_read_format */ + +#ifndef GL_OES_single_precision +#define GL_OES_single_precision 1 + typedef void (APIENTRYP PFNGLCLEARDEPTHFOESPROC) (GLclampf depth); + typedef void (APIENTRYP PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat* equation); + typedef void (APIENTRYP PFNGLDEPTHRANGEFOESPROC) (GLclampf n, GLclampf f); + typedef void (APIENTRYP PFNGLFRUSTUMFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); + typedef void (APIENTRYP PFNGLGETCLIPPLANEFOESPROC) (GLenum plane, GLfloat* equation); + typedef void (APIENTRYP PFNGLORTHOFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glClearDepthfOES(GLclampf depth); + GLAPI void APIENTRY glClipPlanefOES(GLenum plane, const GLfloat* equation); + GLAPI void APIENTRY glDepthRangefOES(GLclampf n, GLclampf f); + GLAPI void APIENTRY glFrustumfOES(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); + GLAPI void APIENTRY glGetClipPlanefOES(GLenum plane, GLfloat* equation); + GLAPI void APIENTRY glOrthofOES(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); +#endif +#endif /* GL_OES_single_precision */ + +#ifndef GL_3DFX_multisample +#define GL_3DFX_multisample 1 +#define GL_MULTISAMPLE_3DFX 0x86B2 +#define GL_SAMPLE_BUFFERS_3DFX 0x86B3 +#define GL_SAMPLES_3DFX 0x86B4 +#define GL_MULTISAMPLE_BIT_3DFX 0x20000000 +#endif /* GL_3DFX_multisample */ + +#ifndef GL_3DFX_tbuffer +#define GL_3DFX_tbuffer 1 + typedef void (APIENTRYP PFNGLTBUFFERMASK3DFXPROC) (GLuint mask); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTbufferMask3DFX(GLuint mask); +#endif +#endif /* GL_3DFX_tbuffer */ + +#ifndef GL_3DFX_texture_compression_FXT1 +#define GL_3DFX_texture_compression_FXT1 1 +#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0 +#define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1 +#endif /* GL_3DFX_texture_compression_FXT1 */ + +#ifndef GL_AMD_blend_minmax_factor +#define GL_AMD_blend_minmax_factor 1 +#define GL_FACTOR_MIN_AMD 0x901C +#define GL_FACTOR_MAX_AMD 0x901D +#endif /* GL_AMD_blend_minmax_factor */ + +#ifndef GL_AMD_conservative_depth +#define GL_AMD_conservative_depth 1 +#endif /* GL_AMD_conservative_depth */ + +#ifndef GL_AMD_debug_output +#define GL_AMD_debug_output 1 + typedef void (APIENTRY* GLDEBUGPROCAMD)(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar* message, void* userParam); +#define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD 0x9143 +#define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD 0x9144 +#define GL_DEBUG_LOGGED_MESSAGES_AMD 0x9145 +#define GL_DEBUG_SEVERITY_HIGH_AMD 0x9146 +#define GL_DEBUG_SEVERITY_MEDIUM_AMD 0x9147 +#define GL_DEBUG_SEVERITY_LOW_AMD 0x9148 +#define GL_DEBUG_CATEGORY_API_ERROR_AMD 0x9149 +#define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A +#define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B +#define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C +#define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D +#define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E +#define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F +#define GL_DEBUG_CATEGORY_OTHER_AMD 0x9150 + typedef void (APIENTRYP PFNGLDEBUGMESSAGEENABLEAMDPROC) (GLenum category, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled); + typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTAMDPROC) (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar* buf); + typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKAMDPROC) (GLDEBUGPROCAMD callback, void* userParam); + typedef GLuint(APIENTRYP PFNGLGETDEBUGMESSAGELOGAMDPROC) (GLuint count, GLsizei bufSize, GLenum* categories, GLenum* severities, GLuint* ids, GLsizei* lengths, GLchar* message); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDebugMessageEnableAMD(GLenum category, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled); + GLAPI void APIENTRY glDebugMessageInsertAMD(GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar* buf); + GLAPI void APIENTRY glDebugMessageCallbackAMD(GLDEBUGPROCAMD callback, void* userParam); + GLAPI GLuint APIENTRY glGetDebugMessageLogAMD(GLuint count, GLsizei bufSize, GLenum* categories, GLenum* severities, GLuint* ids, GLsizei* lengths, GLchar* message); +#endif +#endif /* GL_AMD_debug_output */ + +#ifndef GL_AMD_depth_clamp_separate +#define GL_AMD_depth_clamp_separate 1 +#define GL_DEPTH_CLAMP_NEAR_AMD 0x901E +#define GL_DEPTH_CLAMP_FAR_AMD 0x901F +#endif /* GL_AMD_depth_clamp_separate */ + +#ifndef GL_AMD_draw_buffers_blend +#define GL_AMD_draw_buffers_blend 1 + typedef void (APIENTRYP PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst); + typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); + typedef void (APIENTRYP PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode); + typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlendFuncIndexedAMD(GLuint buf, GLenum src, GLenum dst); + GLAPI void APIENTRY glBlendFuncSeparateIndexedAMD(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); + GLAPI void APIENTRY glBlendEquationIndexedAMD(GLuint buf, GLenum mode); + GLAPI void APIENTRY glBlendEquationSeparateIndexedAMD(GLuint buf, GLenum modeRGB, GLenum modeAlpha); +#endif +#endif /* GL_AMD_draw_buffers_blend */ + +#ifndef GL_AMD_framebuffer_multisample_advanced +#define GL_AMD_framebuffer_multisample_advanced 1 +#define GL_RENDERBUFFER_STORAGE_SAMPLES_AMD 0x91B2 +#define GL_MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD 0x91B3 +#define GL_MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD 0x91B4 +#define GL_MAX_DEPTH_STENCIL_FRAMEBUFFER_SAMPLES_AMD 0x91B5 +#define GL_NUM_SUPPORTED_MULTISAMPLE_MODES_AMD 0x91B6 +#define GL_SUPPORTED_MULTISAMPLE_MODES_AMD 0x91B7 + typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC) (GLenum target, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC) (GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glRenderbufferStorageMultisampleAdvancedAMD(GLenum target, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleAdvancedAMD(GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); +#endif +#endif /* GL_AMD_framebuffer_multisample_advanced */ + +#ifndef GL_AMD_framebuffer_sample_positions +#define GL_AMD_framebuffer_sample_positions 1 +#define GL_SUBSAMPLE_DISTANCE_AMD 0x883F +#define GL_PIXELS_PER_SAMPLE_PATTERN_X_AMD 0x91AE +#define GL_PIXELS_PER_SAMPLE_PATTERN_Y_AMD 0x91AF +#define GL_ALL_PIXELS_AMD 0xFFFFFFFF + typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC) (GLenum target, GLuint numsamples, GLuint pixelindex, const GLfloat* values); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC) (GLuint framebuffer, GLuint numsamples, GLuint pixelindex, const GLfloat* values); + typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERFVAMDPROC) (GLenum target, GLenum pname, GLuint numsamples, GLuint pixelindex, GLsizei size, GLfloat* values); + typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERFVAMDPROC) (GLuint framebuffer, GLenum pname, GLuint numsamples, GLuint pixelindex, GLsizei size, GLfloat* values); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFramebufferSamplePositionsfvAMD(GLenum target, GLuint numsamples, GLuint pixelindex, const GLfloat* values); + GLAPI void APIENTRY glNamedFramebufferSamplePositionsfvAMD(GLuint framebuffer, GLuint numsamples, GLuint pixelindex, const GLfloat* values); + GLAPI void APIENTRY glGetFramebufferParameterfvAMD(GLenum target, GLenum pname, GLuint numsamples, GLuint pixelindex, GLsizei size, GLfloat* values); + GLAPI void APIENTRY glGetNamedFramebufferParameterfvAMD(GLuint framebuffer, GLenum pname, GLuint numsamples, GLuint pixelindex, GLsizei size, GLfloat* values); +#endif +#endif /* GL_AMD_framebuffer_sample_positions */ + +#ifndef GL_AMD_gcn_shader +#define GL_AMD_gcn_shader 1 +#endif /* GL_AMD_gcn_shader */ + +#ifndef GL_AMD_gpu_shader_half_float +#define GL_AMD_gpu_shader_half_float 1 +#define GL_FLOAT16_NV 0x8FF8 +#define GL_FLOAT16_VEC2_NV 0x8FF9 +#define GL_FLOAT16_VEC3_NV 0x8FFA +#define GL_FLOAT16_VEC4_NV 0x8FFB +#define GL_FLOAT16_MAT2_AMD 0x91C5 +#define GL_FLOAT16_MAT3_AMD 0x91C6 +#define GL_FLOAT16_MAT4_AMD 0x91C7 +#define GL_FLOAT16_MAT2x3_AMD 0x91C8 +#define GL_FLOAT16_MAT2x4_AMD 0x91C9 +#define GL_FLOAT16_MAT3x2_AMD 0x91CA +#define GL_FLOAT16_MAT3x4_AMD 0x91CB +#define GL_FLOAT16_MAT4x2_AMD 0x91CC +#define GL_FLOAT16_MAT4x3_AMD 0x91CD +#endif /* GL_AMD_gpu_shader_half_float */ + +#ifndef GL_AMD_gpu_shader_int16 +#define GL_AMD_gpu_shader_int16 1 +#endif /* GL_AMD_gpu_shader_int16 */ + +#ifndef GL_AMD_gpu_shader_int64 +#define GL_AMD_gpu_shader_int64 1 + typedef khronos_int64_t GLint64EXT; +#define GL_INT64_NV 0x140E +#define GL_UNSIGNED_INT64_NV 0x140F +#define GL_INT8_NV 0x8FE0 +#define GL_INT8_VEC2_NV 0x8FE1 +#define GL_INT8_VEC3_NV 0x8FE2 +#define GL_INT8_VEC4_NV 0x8FE3 +#define GL_INT16_NV 0x8FE4 +#define GL_INT16_VEC2_NV 0x8FE5 +#define GL_INT16_VEC3_NV 0x8FE6 +#define GL_INT16_VEC4_NV 0x8FE7 +#define GL_INT64_VEC2_NV 0x8FE9 +#define GL_INT64_VEC3_NV 0x8FEA +#define GL_INT64_VEC4_NV 0x8FEB +#define GL_UNSIGNED_INT8_NV 0x8FEC +#define GL_UNSIGNED_INT8_VEC2_NV 0x8FED +#define GL_UNSIGNED_INT8_VEC3_NV 0x8FEE +#define GL_UNSIGNED_INT8_VEC4_NV 0x8FEF +#define GL_UNSIGNED_INT16_NV 0x8FF0 +#define GL_UNSIGNED_INT16_VEC2_NV 0x8FF1 +#define GL_UNSIGNED_INT16_VEC3_NV 0x8FF2 +#define GL_UNSIGNED_INT16_VEC4_NV 0x8FF3 +#define GL_UNSIGNED_INT64_VEC2_NV 0x8FF5 +#define GL_UNSIGNED_INT64_VEC3_NV 0x8FF6 +#define GL_UNSIGNED_INT64_VEC4_NV 0x8FF7 + typedef void (APIENTRYP PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x); + typedef void (APIENTRYP PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y); + typedef void (APIENTRYP PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); + typedef void (APIENTRYP PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); + typedef void (APIENTRYP PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); + typedef void (APIENTRYP PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); + typedef void (APIENTRYP PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); + typedef void (APIENTRYP PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); + typedef void (APIENTRYP PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x); + typedef void (APIENTRYP PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y); + typedef void (APIENTRYP PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); + typedef void (APIENTRYP PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); + typedef void (APIENTRYP PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); + typedef void (APIENTRYP PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); + typedef void (APIENTRYP PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); + typedef void (APIENTRYP PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); + typedef void (APIENTRYP PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT* params); + typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT* params); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glUniform1i64NV(GLint location, GLint64EXT x); + GLAPI void APIENTRY glUniform2i64NV(GLint location, GLint64EXT x, GLint64EXT y); + GLAPI void APIENTRY glUniform3i64NV(GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); + GLAPI void APIENTRY glUniform4i64NV(GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); + GLAPI void APIENTRY glUniform1i64vNV(GLint location, GLsizei count, const GLint64EXT* value); + GLAPI void APIENTRY glUniform2i64vNV(GLint location, GLsizei count, const GLint64EXT* value); + GLAPI void APIENTRY glUniform3i64vNV(GLint location, GLsizei count, const GLint64EXT* value); + GLAPI void APIENTRY glUniform4i64vNV(GLint location, GLsizei count, const GLint64EXT* value); + GLAPI void APIENTRY glUniform1ui64NV(GLint location, GLuint64EXT x); + GLAPI void APIENTRY glUniform2ui64NV(GLint location, GLuint64EXT x, GLuint64EXT y); + GLAPI void APIENTRY glUniform3ui64NV(GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); + GLAPI void APIENTRY glUniform4ui64NV(GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); + GLAPI void APIENTRY glUniform1ui64vNV(GLint location, GLsizei count, const GLuint64EXT* value); + GLAPI void APIENTRY glUniform2ui64vNV(GLint location, GLsizei count, const GLuint64EXT* value); + GLAPI void APIENTRY glUniform3ui64vNV(GLint location, GLsizei count, const GLuint64EXT* value); + GLAPI void APIENTRY glUniform4ui64vNV(GLint location, GLsizei count, const GLuint64EXT* value); + GLAPI void APIENTRY glGetUniformi64vNV(GLuint program, GLint location, GLint64EXT* params); + GLAPI void APIENTRY glGetUniformui64vNV(GLuint program, GLint location, GLuint64EXT* params); + GLAPI void APIENTRY glProgramUniform1i64NV(GLuint program, GLint location, GLint64EXT x); + GLAPI void APIENTRY glProgramUniform2i64NV(GLuint program, GLint location, GLint64EXT x, GLint64EXT y); + GLAPI void APIENTRY glProgramUniform3i64NV(GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); + GLAPI void APIENTRY glProgramUniform4i64NV(GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); + GLAPI void APIENTRY glProgramUniform1i64vNV(GLuint program, GLint location, GLsizei count, const GLint64EXT* value); + GLAPI void APIENTRY glProgramUniform2i64vNV(GLuint program, GLint location, GLsizei count, const GLint64EXT* value); + GLAPI void APIENTRY glProgramUniform3i64vNV(GLuint program, GLint location, GLsizei count, const GLint64EXT* value); + GLAPI void APIENTRY glProgramUniform4i64vNV(GLuint program, GLint location, GLsizei count, const GLint64EXT* value); + GLAPI void APIENTRY glProgramUniform1ui64NV(GLuint program, GLint location, GLuint64EXT x); + GLAPI void APIENTRY glProgramUniform2ui64NV(GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); + GLAPI void APIENTRY glProgramUniform3ui64NV(GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); + GLAPI void APIENTRY glProgramUniform4ui64NV(GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); + GLAPI void APIENTRY glProgramUniform1ui64vNV(GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); + GLAPI void APIENTRY glProgramUniform2ui64vNV(GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); + GLAPI void APIENTRY glProgramUniform3ui64vNV(GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); + GLAPI void APIENTRY glProgramUniform4ui64vNV(GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); +#endif +#endif /* GL_AMD_gpu_shader_int64 */ + +#ifndef GL_AMD_interleaved_elements +#define GL_AMD_interleaved_elements 1 +#define GL_VERTEX_ELEMENT_SWIZZLE_AMD 0x91A4 +#define GL_VERTEX_ID_SWIZZLE_AMD 0x91A5 + typedef void (APIENTRYP PFNGLVERTEXATTRIBPARAMETERIAMDPROC) (GLuint index, GLenum pname, GLint param); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVertexAttribParameteriAMD(GLuint index, GLenum pname, GLint param); +#endif +#endif /* GL_AMD_interleaved_elements */ + +#ifndef GL_AMD_multi_draw_indirect +#define GL_AMD_multi_draw_indirect 1 + typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC) (GLenum mode, const void* indirect, GLsizei primcount, GLsizei stride); + typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC) (GLenum mode, GLenum type, const void* indirect, GLsizei primcount, GLsizei stride); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMultiDrawArraysIndirectAMD(GLenum mode, const void* indirect, GLsizei primcount, GLsizei stride); + GLAPI void APIENTRY glMultiDrawElementsIndirectAMD(GLenum mode, GLenum type, const void* indirect, GLsizei primcount, GLsizei stride); +#endif +#endif /* GL_AMD_multi_draw_indirect */ + +#ifndef GL_AMD_name_gen_delete +#define GL_AMD_name_gen_delete 1 +#define GL_DATA_BUFFER_AMD 0x9151 +#define GL_PERFORMANCE_MONITOR_AMD 0x9152 +#define GL_QUERY_OBJECT_AMD 0x9153 +#define GL_VERTEX_ARRAY_OBJECT_AMD 0x9154 +#define GL_SAMPLER_OBJECT_AMD 0x9155 + typedef void (APIENTRYP PFNGLGENNAMESAMDPROC) (GLenum identifier, GLuint num, GLuint* names); + typedef void (APIENTRYP PFNGLDELETENAMESAMDPROC) (GLenum identifier, GLuint num, const GLuint* names); + typedef GLboolean(APIENTRYP PFNGLISNAMEAMDPROC) (GLenum identifier, GLuint name); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGenNamesAMD(GLenum identifier, GLuint num, GLuint* names); + GLAPI void APIENTRY glDeleteNamesAMD(GLenum identifier, GLuint num, const GLuint* names); + GLAPI GLboolean APIENTRY glIsNameAMD(GLenum identifier, GLuint name); +#endif +#endif /* GL_AMD_name_gen_delete */ + +#ifndef GL_AMD_occlusion_query_event +#define GL_AMD_occlusion_query_event 1 +#define GL_OCCLUSION_QUERY_EVENT_MASK_AMD 0x874F +#define GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD 0x00000001 +#define GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD 0x00000002 +#define GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD 0x00000004 +#define GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD 0x00000008 +#define GL_QUERY_ALL_EVENT_BITS_AMD 0xFFFFFFFF + typedef void (APIENTRYP PFNGLQUERYOBJECTPARAMETERUIAMDPROC) (GLenum target, GLuint id, GLenum pname, GLuint param); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glQueryObjectParameteruiAMD(GLenum target, GLuint id, GLenum pname, GLuint param); +#endif +#endif /* GL_AMD_occlusion_query_event */ + +#ifndef GL_AMD_performance_monitor +#define GL_AMD_performance_monitor 1 +#define GL_COUNTER_TYPE_AMD 0x8BC0 +#define GL_COUNTER_RANGE_AMD 0x8BC1 +#define GL_UNSIGNED_INT64_AMD 0x8BC2 +#define GL_PERCENTAGE_AMD 0x8BC3 +#define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4 +#define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5 +#define GL_PERFMON_RESULT_AMD 0x8BC6 + typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint* numGroups, GLsizei groupsSize, GLuint* groups); + typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint* numCounters, GLint* maxActiveCounters, GLsizei counterSize, GLuint* counters); + typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei* length, GLchar* groupString); + typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei* length, GLchar* counterString); + typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void* data); + typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint* monitors); + typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint* monitors); + typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint* counterList); + typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor); + typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor); + typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint* data, GLint* bytesWritten); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGetPerfMonitorGroupsAMD(GLint* numGroups, GLsizei groupsSize, GLuint* groups); + GLAPI void APIENTRY glGetPerfMonitorCountersAMD(GLuint group, GLint* numCounters, GLint* maxActiveCounters, GLsizei counterSize, GLuint* counters); + GLAPI void APIENTRY glGetPerfMonitorGroupStringAMD(GLuint group, GLsizei bufSize, GLsizei* length, GLchar* groupString); + GLAPI void APIENTRY glGetPerfMonitorCounterStringAMD(GLuint group, GLuint counter, GLsizei bufSize, GLsizei* length, GLchar* counterString); + GLAPI void APIENTRY glGetPerfMonitorCounterInfoAMD(GLuint group, GLuint counter, GLenum pname, void* data); + GLAPI void APIENTRY glGenPerfMonitorsAMD(GLsizei n, GLuint* monitors); + GLAPI void APIENTRY glDeletePerfMonitorsAMD(GLsizei n, GLuint* monitors); + GLAPI void APIENTRY glSelectPerfMonitorCountersAMD(GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint* counterList); + GLAPI void APIENTRY glBeginPerfMonitorAMD(GLuint monitor); + GLAPI void APIENTRY glEndPerfMonitorAMD(GLuint monitor); + GLAPI void APIENTRY glGetPerfMonitorCounterDataAMD(GLuint monitor, GLenum pname, GLsizei dataSize, GLuint* data, GLint* bytesWritten); +#endif +#endif /* GL_AMD_performance_monitor */ + +#ifndef GL_AMD_pinned_memory +#define GL_AMD_pinned_memory 1 +#define GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160 +#endif /* GL_AMD_pinned_memory */ + +#ifndef GL_AMD_query_buffer_object +#define GL_AMD_query_buffer_object 1 +#define GL_QUERY_BUFFER_AMD 0x9192 +#define GL_QUERY_BUFFER_BINDING_AMD 0x9193 +#define GL_QUERY_RESULT_NO_WAIT_AMD 0x9194 +#endif /* GL_AMD_query_buffer_object */ + +#ifndef GL_AMD_sample_positions +#define GL_AMD_sample_positions 1 + typedef void (APIENTRYP PFNGLSETMULTISAMPLEFVAMDPROC) (GLenum pname, GLuint index, const GLfloat* val); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glSetMultisamplefvAMD(GLenum pname, GLuint index, const GLfloat* val); +#endif +#endif /* GL_AMD_sample_positions */ + +#ifndef GL_AMD_seamless_cubemap_per_texture +#define GL_AMD_seamless_cubemap_per_texture 1 +#endif /* GL_AMD_seamless_cubemap_per_texture */ + +#ifndef GL_AMD_shader_atomic_counter_ops +#define GL_AMD_shader_atomic_counter_ops 1 +#endif /* GL_AMD_shader_atomic_counter_ops */ + +#ifndef GL_AMD_shader_ballot +#define GL_AMD_shader_ballot 1 +#endif /* GL_AMD_shader_ballot */ + +#ifndef GL_AMD_shader_explicit_vertex_parameter +#define GL_AMD_shader_explicit_vertex_parameter 1 +#endif /* GL_AMD_shader_explicit_vertex_parameter */ + +#ifndef GL_AMD_shader_gpu_shader_half_float_fetch +#define GL_AMD_shader_gpu_shader_half_float_fetch 1 +#endif /* GL_AMD_shader_gpu_shader_half_float_fetch */ + +#ifndef GL_AMD_shader_image_load_store_lod +#define GL_AMD_shader_image_load_store_lod 1 +#endif /* GL_AMD_shader_image_load_store_lod */ + +#ifndef GL_AMD_shader_stencil_export +#define GL_AMD_shader_stencil_export 1 +#endif /* GL_AMD_shader_stencil_export */ + +#ifndef GL_AMD_shader_trinary_minmax +#define GL_AMD_shader_trinary_minmax 1 +#endif /* GL_AMD_shader_trinary_minmax */ + +#ifndef GL_AMD_sparse_texture +#define GL_AMD_sparse_texture 1 +#define GL_VIRTUAL_PAGE_SIZE_X_AMD 0x9195 +#define GL_VIRTUAL_PAGE_SIZE_Y_AMD 0x9196 +#define GL_VIRTUAL_PAGE_SIZE_Z_AMD 0x9197 +#define GL_MAX_SPARSE_TEXTURE_SIZE_AMD 0x9198 +#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD 0x9199 +#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS 0x919A +#define GL_MIN_SPARSE_LEVEL_AMD 0x919B +#define GL_MIN_LOD_WARNING_AMD 0x919C +#define GL_TEXTURE_STORAGE_SPARSE_BIT_AMD 0x00000001 + typedef void (APIENTRYP PFNGLTEXSTORAGESPARSEAMDPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); + typedef void (APIENTRYP PFNGLTEXTURESTORAGESPARSEAMDPROC) (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTexStorageSparseAMD(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); + GLAPI void APIENTRY glTextureStorageSparseAMD(GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); +#endif +#endif /* GL_AMD_sparse_texture */ + +#ifndef GL_AMD_stencil_operation_extended +#define GL_AMD_stencil_operation_extended 1 +#define GL_SET_AMD 0x874A +#define GL_REPLACE_VALUE_AMD 0x874B +#define GL_STENCIL_OP_VALUE_AMD 0x874C +#define GL_STENCIL_BACK_OP_VALUE_AMD 0x874D + typedef void (APIENTRYP PFNGLSTENCILOPVALUEAMDPROC) (GLenum face, GLuint value); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glStencilOpValueAMD(GLenum face, GLuint value); +#endif +#endif /* GL_AMD_stencil_operation_extended */ + +#ifndef GL_AMD_texture_gather_bias_lod +#define GL_AMD_texture_gather_bias_lod 1 +#endif /* GL_AMD_texture_gather_bias_lod */ + +#ifndef GL_AMD_texture_texture4 +#define GL_AMD_texture_texture4 1 +#endif /* GL_AMD_texture_texture4 */ + +#ifndef GL_AMD_transform_feedback3_lines_triangles +#define GL_AMD_transform_feedback3_lines_triangles 1 +#endif /* GL_AMD_transform_feedback3_lines_triangles */ + +#ifndef GL_AMD_transform_feedback4 +#define GL_AMD_transform_feedback4 1 +#define GL_STREAM_RASTERIZATION_AMD 0x91A0 +#endif /* GL_AMD_transform_feedback4 */ + +#ifndef GL_AMD_vertex_shader_layer +#define GL_AMD_vertex_shader_layer 1 +#endif /* GL_AMD_vertex_shader_layer */ + +#ifndef GL_AMD_vertex_shader_tessellator +#define GL_AMD_vertex_shader_tessellator 1 +#define GL_SAMPLER_BUFFER_AMD 0x9001 +#define GL_INT_SAMPLER_BUFFER_AMD 0x9002 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003 +#define GL_TESSELLATION_MODE_AMD 0x9004 +#define GL_TESSELLATION_FACTOR_AMD 0x9005 +#define GL_DISCRETE_AMD 0x9006 +#define GL_CONTINUOUS_AMD 0x9007 + typedef void (APIENTRYP PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor); + typedef void (APIENTRYP PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTessellationFactorAMD(GLfloat factor); + GLAPI void APIENTRY glTessellationModeAMD(GLenum mode); +#endif +#endif /* GL_AMD_vertex_shader_tessellator */ + +#ifndef GL_AMD_vertex_shader_viewport_index +#define GL_AMD_vertex_shader_viewport_index 1 +#endif /* GL_AMD_vertex_shader_viewport_index */ + +#ifndef GL_APPLE_aux_depth_stencil +#define GL_APPLE_aux_depth_stencil 1 +#define GL_AUX_DEPTH_STENCIL_APPLE 0x8A14 +#endif /* GL_APPLE_aux_depth_stencil */ + +#ifndef GL_APPLE_client_storage +#define GL_APPLE_client_storage 1 +#define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2 +#endif /* GL_APPLE_client_storage */ + +#ifndef GL_APPLE_element_array +#define GL_APPLE_element_array 1 +#define GL_ELEMENT_ARRAY_APPLE 0x8A0C +#define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8A0D +#define GL_ELEMENT_ARRAY_POINTER_APPLE 0x8A0E + typedef void (APIENTRYP PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const void* pointer); + typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count); + typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); + typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint* first, const GLsizei* count, GLsizei primcount); + typedef void (APIENTRYP PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint* first, const GLsizei* count, GLsizei primcount); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glElementPointerAPPLE(GLenum type, const void* pointer); + GLAPI void APIENTRY glDrawElementArrayAPPLE(GLenum mode, GLint first, GLsizei count); + GLAPI void APIENTRY glDrawRangeElementArrayAPPLE(GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); + GLAPI void APIENTRY glMultiDrawElementArrayAPPLE(GLenum mode, const GLint* first, const GLsizei* count, GLsizei primcount); + GLAPI void APIENTRY glMultiDrawRangeElementArrayAPPLE(GLenum mode, GLuint start, GLuint end, const GLint* first, const GLsizei* count, GLsizei primcount); +#endif +#endif /* GL_APPLE_element_array */ + +#ifndef GL_APPLE_fence +#define GL_APPLE_fence 1 +#define GL_DRAW_PIXELS_APPLE 0x8A0A +#define GL_FENCE_APPLE 0x8A0B + typedef void (APIENTRYP PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint* fences); + typedef void (APIENTRYP PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint* fences); + typedef void (APIENTRYP PFNGLSETFENCEAPPLEPROC) (GLuint fence); + typedef GLboolean(APIENTRYP PFNGLISFENCEAPPLEPROC) (GLuint fence); + typedef GLboolean(APIENTRYP PFNGLTESTFENCEAPPLEPROC) (GLuint fence); + typedef void (APIENTRYP PFNGLFINISHFENCEAPPLEPROC) (GLuint fence); + typedef GLboolean(APIENTRYP PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name); + typedef void (APIENTRYP PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGenFencesAPPLE(GLsizei n, GLuint* fences); + GLAPI void APIENTRY glDeleteFencesAPPLE(GLsizei n, const GLuint* fences); + GLAPI void APIENTRY glSetFenceAPPLE(GLuint fence); + GLAPI GLboolean APIENTRY glIsFenceAPPLE(GLuint fence); + GLAPI GLboolean APIENTRY glTestFenceAPPLE(GLuint fence); + GLAPI void APIENTRY glFinishFenceAPPLE(GLuint fence); + GLAPI GLboolean APIENTRY glTestObjectAPPLE(GLenum object, GLuint name); + GLAPI void APIENTRY glFinishObjectAPPLE(GLenum object, GLint name); +#endif +#endif /* GL_APPLE_fence */ + +#ifndef GL_APPLE_float_pixels +#define GL_APPLE_float_pixels 1 +#define GL_HALF_APPLE 0x140B +#define GL_RGBA_FLOAT32_APPLE 0x8814 +#define GL_RGB_FLOAT32_APPLE 0x8815 +#define GL_ALPHA_FLOAT32_APPLE 0x8816 +#define GL_INTENSITY_FLOAT32_APPLE 0x8817 +#define GL_LUMINANCE_FLOAT32_APPLE 0x8818 +#define GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819 +#define GL_RGBA_FLOAT16_APPLE 0x881A +#define GL_RGB_FLOAT16_APPLE 0x881B +#define GL_ALPHA_FLOAT16_APPLE 0x881C +#define GL_INTENSITY_FLOAT16_APPLE 0x881D +#define GL_LUMINANCE_FLOAT16_APPLE 0x881E +#define GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881F +#define GL_COLOR_FLOAT_APPLE 0x8A0F +#endif /* GL_APPLE_float_pixels */ + +#ifndef GL_APPLE_flush_buffer_range +#define GL_APPLE_flush_buffer_range 1 +#define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12 +#define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8A13 + typedef void (APIENTRYP PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBufferParameteriAPPLE(GLenum target, GLenum pname, GLint param); + GLAPI void APIENTRY glFlushMappedBufferRangeAPPLE(GLenum target, GLintptr offset, GLsizeiptr size); +#endif +#endif /* GL_APPLE_flush_buffer_range */ + +#ifndef GL_APPLE_object_purgeable +#define GL_APPLE_object_purgeable 1 +#define GL_BUFFER_OBJECT_APPLE 0x85B3 +#define GL_RELEASED_APPLE 0x8A19 +#define GL_VOLATILE_APPLE 0x8A1A +#define GL_RETAINED_APPLE 0x8A1B +#define GL_UNDEFINED_APPLE 0x8A1C +#define GL_PURGEABLE_APPLE 0x8A1D + typedef GLenum(APIENTRYP PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option); + typedef GLenum(APIENTRYP PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option); + typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLenum APIENTRY glObjectPurgeableAPPLE(GLenum objectType, GLuint name, GLenum option); + GLAPI GLenum APIENTRY glObjectUnpurgeableAPPLE(GLenum objectType, GLuint name, GLenum option); + GLAPI void APIENTRY glGetObjectParameterivAPPLE(GLenum objectType, GLuint name, GLenum pname, GLint* params); +#endif +#endif /* GL_APPLE_object_purgeable */ + +#ifndef GL_APPLE_rgb_422 +#define GL_APPLE_rgb_422 1 +#define GL_RGB_422_APPLE 0x8A1F +#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA +#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB +#define GL_RGB_RAW_422_APPLE 0x8A51 +#endif /* GL_APPLE_rgb_422 */ + +#ifndef GL_APPLE_row_bytes +#define GL_APPLE_row_bytes 1 +#define GL_PACK_ROW_BYTES_APPLE 0x8A15 +#define GL_UNPACK_ROW_BYTES_APPLE 0x8A16 +#endif /* GL_APPLE_row_bytes */ + +#ifndef GL_APPLE_specular_vector +#define GL_APPLE_specular_vector 1 +#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0 +#endif /* GL_APPLE_specular_vector */ + +#ifndef GL_APPLE_texture_range +#define GL_APPLE_texture_range 1 +#define GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7 +#define GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8 +#define GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC +#define GL_STORAGE_PRIVATE_APPLE 0x85BD +#define GL_STORAGE_CACHED_APPLE 0x85BE +#define GL_STORAGE_SHARED_APPLE 0x85BF + typedef void (APIENTRYP PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, const void* pointer); + typedef void (APIENTRYP PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, void** params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTextureRangeAPPLE(GLenum target, GLsizei length, const void* pointer); + GLAPI void APIENTRY glGetTexParameterPointervAPPLE(GLenum target, GLenum pname, void** params); +#endif +#endif /* GL_APPLE_texture_range */ + +#ifndef GL_APPLE_transform_hint +#define GL_APPLE_transform_hint 1 +#define GL_TRANSFORM_HINT_APPLE 0x85B1 +#endif /* GL_APPLE_transform_hint */ + +#ifndef GL_APPLE_vertex_array_object +#define GL_APPLE_vertex_array_object 1 +#define GL_VERTEX_ARRAY_BINDING_APPLE 0x85B5 + typedef void (APIENTRYP PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array); + typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint* arrays); + typedef void (APIENTRYP PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, GLuint* arrays); + typedef GLboolean(APIENTRYP PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBindVertexArrayAPPLE(GLuint array); + GLAPI void APIENTRY glDeleteVertexArraysAPPLE(GLsizei n, const GLuint* arrays); + GLAPI void APIENTRY glGenVertexArraysAPPLE(GLsizei n, GLuint* arrays); + GLAPI GLboolean APIENTRY glIsVertexArrayAPPLE(GLuint array); +#endif +#endif /* GL_APPLE_vertex_array_object */ + +#ifndef GL_APPLE_vertex_array_range +#define GL_APPLE_vertex_array_range 1 +#define GL_VERTEX_ARRAY_RANGE_APPLE 0x851D +#define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E +#define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F +#define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521 +#define GL_STORAGE_CLIENT_APPLE 0x85B4 + typedef void (APIENTRYP PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void* pointer); + typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void* pointer); + typedef void (APIENTRYP PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVertexArrayRangeAPPLE(GLsizei length, void* pointer); + GLAPI void APIENTRY glFlushVertexArrayRangeAPPLE(GLsizei length, void* pointer); + GLAPI void APIENTRY glVertexArrayParameteriAPPLE(GLenum pname, GLint param); +#endif +#endif /* GL_APPLE_vertex_array_range */ + +#ifndef GL_APPLE_vertex_program_evaluators +#define GL_APPLE_vertex_program_evaluators 1 +#define GL_VERTEX_ATTRIB_MAP1_APPLE 0x8A00 +#define GL_VERTEX_ATTRIB_MAP2_APPLE 0x8A01 +#define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE 0x8A02 +#define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03 +#define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04 +#define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05 +#define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE 0x8A06 +#define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07 +#define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08 +#define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09 + typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname); + typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname); + typedef GLboolean(APIENTRYP PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname); + typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points); + typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points); + typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points); + typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glEnableVertexAttribAPPLE(GLuint index, GLenum pname); + GLAPI void APIENTRY glDisableVertexAttribAPPLE(GLuint index, GLenum pname); + GLAPI GLboolean APIENTRY glIsVertexAttribEnabledAPPLE(GLuint index, GLenum pname); + GLAPI void APIENTRY glMapVertexAttrib1dAPPLE(GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points); + GLAPI void APIENTRY glMapVertexAttrib1fAPPLE(GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points); + GLAPI void APIENTRY glMapVertexAttrib2dAPPLE(GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points); + GLAPI void APIENTRY glMapVertexAttrib2fAPPLE(GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points); +#endif +#endif /* GL_APPLE_vertex_program_evaluators */ + +#ifndef GL_APPLE_ycbcr_422 +#define GL_APPLE_ycbcr_422 1 +#define GL_YCBCR_422_APPLE 0x85B9 +#endif /* GL_APPLE_ycbcr_422 */ + +#ifndef GL_ATI_draw_buffers +#define GL_ATI_draw_buffers 1 +#define GL_MAX_DRAW_BUFFERS_ATI 0x8824 +#define GL_DRAW_BUFFER0_ATI 0x8825 +#define GL_DRAW_BUFFER1_ATI 0x8826 +#define GL_DRAW_BUFFER2_ATI 0x8827 +#define GL_DRAW_BUFFER3_ATI 0x8828 +#define GL_DRAW_BUFFER4_ATI 0x8829 +#define GL_DRAW_BUFFER5_ATI 0x882A +#define GL_DRAW_BUFFER6_ATI 0x882B +#define GL_DRAW_BUFFER7_ATI 0x882C +#define GL_DRAW_BUFFER8_ATI 0x882D +#define GL_DRAW_BUFFER9_ATI 0x882E +#define GL_DRAW_BUFFER10_ATI 0x882F +#define GL_DRAW_BUFFER11_ATI 0x8830 +#define GL_DRAW_BUFFER12_ATI 0x8831 +#define GL_DRAW_BUFFER13_ATI 0x8832 +#define GL_DRAW_BUFFER14_ATI 0x8833 +#define GL_DRAW_BUFFER15_ATI 0x8834 + typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum* bufs); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawBuffersATI(GLsizei n, const GLenum* bufs); +#endif +#endif /* GL_ATI_draw_buffers */ + +#ifndef GL_ATI_element_array +#define GL_ATI_element_array 1 +#define GL_ELEMENT_ARRAY_ATI 0x8768 +#define GL_ELEMENT_ARRAY_TYPE_ATI 0x8769 +#define GL_ELEMENT_ARRAY_POINTER_ATI 0x876A + typedef void (APIENTRYP PFNGLELEMENTPOINTERATIPROC) (GLenum type, const void* pointer); + typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count); + typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glElementPointerATI(GLenum type, const void* pointer); + GLAPI void APIENTRY glDrawElementArrayATI(GLenum mode, GLsizei count); + GLAPI void APIENTRY glDrawRangeElementArrayATI(GLenum mode, GLuint start, GLuint end, GLsizei count); +#endif +#endif /* GL_ATI_element_array */ + +#ifndef GL_ATI_envmap_bumpmap +#define GL_ATI_envmap_bumpmap 1 +#define GL_BUMP_ROT_MATRIX_ATI 0x8775 +#define GL_BUMP_ROT_MATRIX_SIZE_ATI 0x8776 +#define GL_BUMP_NUM_TEX_UNITS_ATI 0x8777 +#define GL_BUMP_TEX_UNITS_ATI 0x8778 +#define GL_DUDV_ATI 0x8779 +#define GL_DU8DV8_ATI 0x877A +#define GL_BUMP_ENVMAP_ATI 0x877B +#define GL_BUMP_TARGET_ATI 0x877C + typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint* param); + typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat* param); + typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint* param); + typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat* param); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTexBumpParameterivATI(GLenum pname, const GLint* param); + GLAPI void APIENTRY glTexBumpParameterfvATI(GLenum pname, const GLfloat* param); + GLAPI void APIENTRY glGetTexBumpParameterivATI(GLenum pname, GLint* param); + GLAPI void APIENTRY glGetTexBumpParameterfvATI(GLenum pname, GLfloat* param); +#endif +#endif /* GL_ATI_envmap_bumpmap */ + +#ifndef GL_ATI_fragment_shader +#define GL_ATI_fragment_shader 1 +#define GL_FRAGMENT_SHADER_ATI 0x8920 +#define GL_REG_0_ATI 0x8921 +#define GL_REG_1_ATI 0x8922 +#define GL_REG_2_ATI 0x8923 +#define GL_REG_3_ATI 0x8924 +#define GL_REG_4_ATI 0x8925 +#define GL_REG_5_ATI 0x8926 +#define GL_REG_6_ATI 0x8927 +#define GL_REG_7_ATI 0x8928 +#define GL_REG_8_ATI 0x8929 +#define GL_REG_9_ATI 0x892A +#define GL_REG_10_ATI 0x892B +#define GL_REG_11_ATI 0x892C +#define GL_REG_12_ATI 0x892D +#define GL_REG_13_ATI 0x892E +#define GL_REG_14_ATI 0x892F +#define GL_REG_15_ATI 0x8930 +#define GL_REG_16_ATI 0x8931 +#define GL_REG_17_ATI 0x8932 +#define GL_REG_18_ATI 0x8933 +#define GL_REG_19_ATI 0x8934 +#define GL_REG_20_ATI 0x8935 +#define GL_REG_21_ATI 0x8936 +#define GL_REG_22_ATI 0x8937 +#define GL_REG_23_ATI 0x8938 +#define GL_REG_24_ATI 0x8939 +#define GL_REG_25_ATI 0x893A +#define GL_REG_26_ATI 0x893B +#define GL_REG_27_ATI 0x893C +#define GL_REG_28_ATI 0x893D +#define GL_REG_29_ATI 0x893E +#define GL_REG_30_ATI 0x893F +#define GL_REG_31_ATI 0x8940 +#define GL_CON_0_ATI 0x8941 +#define GL_CON_1_ATI 0x8942 +#define GL_CON_2_ATI 0x8943 +#define GL_CON_3_ATI 0x8944 +#define GL_CON_4_ATI 0x8945 +#define GL_CON_5_ATI 0x8946 +#define GL_CON_6_ATI 0x8947 +#define GL_CON_7_ATI 0x8948 +#define GL_CON_8_ATI 0x8949 +#define GL_CON_9_ATI 0x894A +#define GL_CON_10_ATI 0x894B +#define GL_CON_11_ATI 0x894C +#define GL_CON_12_ATI 0x894D +#define GL_CON_13_ATI 0x894E +#define GL_CON_14_ATI 0x894F +#define GL_CON_15_ATI 0x8950 +#define GL_CON_16_ATI 0x8951 +#define GL_CON_17_ATI 0x8952 +#define GL_CON_18_ATI 0x8953 +#define GL_CON_19_ATI 0x8954 +#define GL_CON_20_ATI 0x8955 +#define GL_CON_21_ATI 0x8956 +#define GL_CON_22_ATI 0x8957 +#define GL_CON_23_ATI 0x8958 +#define GL_CON_24_ATI 0x8959 +#define GL_CON_25_ATI 0x895A +#define GL_CON_26_ATI 0x895B +#define GL_CON_27_ATI 0x895C +#define GL_CON_28_ATI 0x895D +#define GL_CON_29_ATI 0x895E +#define GL_CON_30_ATI 0x895F +#define GL_CON_31_ATI 0x8960 +#define GL_MOV_ATI 0x8961 +#define GL_ADD_ATI 0x8963 +#define GL_MUL_ATI 0x8964 +#define GL_SUB_ATI 0x8965 +#define GL_DOT3_ATI 0x8966 +#define GL_DOT4_ATI 0x8967 +#define GL_MAD_ATI 0x8968 +#define GL_LERP_ATI 0x8969 +#define GL_CND_ATI 0x896A +#define GL_CND0_ATI 0x896B +#define GL_DOT2_ADD_ATI 0x896C +#define GL_SECONDARY_INTERPOLATOR_ATI 0x896D +#define GL_NUM_FRAGMENT_REGISTERS_ATI 0x896E +#define GL_NUM_FRAGMENT_CONSTANTS_ATI 0x896F +#define GL_NUM_PASSES_ATI 0x8970 +#define GL_NUM_INSTRUCTIONS_PER_PASS_ATI 0x8971 +#define GL_NUM_INSTRUCTIONS_TOTAL_ATI 0x8972 +#define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973 +#define GL_NUM_LOOPBACK_COMPONENTS_ATI 0x8974 +#define GL_COLOR_ALPHA_PAIRING_ATI 0x8975 +#define GL_SWIZZLE_STR_ATI 0x8976 +#define GL_SWIZZLE_STQ_ATI 0x8977 +#define GL_SWIZZLE_STR_DR_ATI 0x8978 +#define GL_SWIZZLE_STQ_DQ_ATI 0x8979 +#define GL_SWIZZLE_STRQ_ATI 0x897A +#define GL_SWIZZLE_STRQ_DQ_ATI 0x897B +#define GL_RED_BIT_ATI 0x00000001 +#define GL_GREEN_BIT_ATI 0x00000002 +#define GL_BLUE_BIT_ATI 0x00000004 +#define GL_2X_BIT_ATI 0x00000001 +#define GL_4X_BIT_ATI 0x00000002 +#define GL_8X_BIT_ATI 0x00000004 +#define GL_HALF_BIT_ATI 0x00000008 +#define GL_QUARTER_BIT_ATI 0x00000010 +#define GL_EIGHTH_BIT_ATI 0x00000020 +#define GL_SATURATE_BIT_ATI 0x00000040 +#define GL_COMP_BIT_ATI 0x00000002 +#define GL_NEGATE_BIT_ATI 0x00000004 +#define GL_BIAS_BIT_ATI 0x00000008 + typedef GLuint(APIENTRYP PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range); + typedef void (APIENTRYP PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id); + typedef void (APIENTRYP PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id); + typedef void (APIENTRYP PFNGLBEGINFRAGMENTSHADERATIPROC) (void); + typedef void (APIENTRYP PFNGLENDFRAGMENTSHADERATIPROC) (void); + typedef void (APIENTRYP PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle); + typedef void (APIENTRYP PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle); + typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); + typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); + typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); + typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); + typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); + typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); + typedef void (APIENTRYP PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat* value); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLuint APIENTRY glGenFragmentShadersATI(GLuint range); + GLAPI void APIENTRY glBindFragmentShaderATI(GLuint id); + GLAPI void APIENTRY glDeleteFragmentShaderATI(GLuint id); + GLAPI void APIENTRY glBeginFragmentShaderATI(void); + GLAPI void APIENTRY glEndFragmentShaderATI(void); + GLAPI void APIENTRY glPassTexCoordATI(GLuint dst, GLuint coord, GLenum swizzle); + GLAPI void APIENTRY glSampleMapATI(GLuint dst, GLuint interp, GLenum swizzle); + GLAPI void APIENTRY glColorFragmentOp1ATI(GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); + GLAPI void APIENTRY glColorFragmentOp2ATI(GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); + GLAPI void APIENTRY glColorFragmentOp3ATI(GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); + GLAPI void APIENTRY glAlphaFragmentOp1ATI(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); + GLAPI void APIENTRY glAlphaFragmentOp2ATI(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); + GLAPI void APIENTRY glAlphaFragmentOp3ATI(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); + GLAPI void APIENTRY glSetFragmentShaderConstantATI(GLuint dst, const GLfloat* value); +#endif +#endif /* GL_ATI_fragment_shader */ + +#ifndef GL_ATI_map_object_buffer +#define GL_ATI_map_object_buffer 1 + typedef void* (APIENTRYP PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer); + typedef void (APIENTRYP PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void* APIENTRY glMapObjectBufferATI(GLuint buffer); + GLAPI void APIENTRY glUnmapObjectBufferATI(GLuint buffer); +#endif +#endif /* GL_ATI_map_object_buffer */ + +#ifndef GL_ATI_meminfo +#define GL_ATI_meminfo 1 +#define GL_VBO_FREE_MEMORY_ATI 0x87FB +#define GL_TEXTURE_FREE_MEMORY_ATI 0x87FC +#define GL_RENDERBUFFER_FREE_MEMORY_ATI 0x87FD +#endif /* GL_ATI_meminfo */ + +#ifndef GL_ATI_pixel_format_float +#define GL_ATI_pixel_format_float 1 +#define GL_RGBA_FLOAT_MODE_ATI 0x8820 +#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835 +#endif /* GL_ATI_pixel_format_float */ + +#ifndef GL_ATI_pn_triangles +#define GL_ATI_pn_triangles 1 +#define GL_PN_TRIANGLES_ATI 0x87F0 +#define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1 +#define GL_PN_TRIANGLES_POINT_MODE_ATI 0x87F2 +#define GL_PN_TRIANGLES_NORMAL_MODE_ATI 0x87F3 +#define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4 +#define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5 +#define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6 +#define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7 +#define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8 + typedef void (APIENTRYP PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPNTrianglesiATI(GLenum pname, GLint param); + GLAPI void APIENTRY glPNTrianglesfATI(GLenum pname, GLfloat param); +#endif +#endif /* GL_ATI_pn_triangles */ + +#ifndef GL_ATI_separate_stencil +#define GL_ATI_separate_stencil 1 +#define GL_STENCIL_BACK_FUNC_ATI 0x8800 +#define GL_STENCIL_BACK_FAIL_ATI 0x8801 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803 + typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); + typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glStencilOpSeparateATI(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); + GLAPI void APIENTRY glStencilFuncSeparateATI(GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +#endif +#endif /* GL_ATI_separate_stencil */ + +#ifndef GL_ATI_text_fragment_shader +#define GL_ATI_text_fragment_shader 1 +#define GL_TEXT_FRAGMENT_SHADER_ATI 0x8200 +#endif /* GL_ATI_text_fragment_shader */ + +#ifndef GL_ATI_texture_env_combine3 +#define GL_ATI_texture_env_combine3 1 +#define GL_MODULATE_ADD_ATI 0x8744 +#define GL_MODULATE_SIGNED_ADD_ATI 0x8745 +#define GL_MODULATE_SUBTRACT_ATI 0x8746 +#endif /* GL_ATI_texture_env_combine3 */ + +#ifndef GL_ATI_texture_float +#define GL_ATI_texture_float 1 +#define GL_RGBA_FLOAT32_ATI 0x8814 +#define GL_RGB_FLOAT32_ATI 0x8815 +#define GL_ALPHA_FLOAT32_ATI 0x8816 +#define GL_INTENSITY_FLOAT32_ATI 0x8817 +#define GL_LUMINANCE_FLOAT32_ATI 0x8818 +#define GL_LUMINANCE_ALPHA_FLOAT32_ATI 0x8819 +#define GL_RGBA_FLOAT16_ATI 0x881A +#define GL_RGB_FLOAT16_ATI 0x881B +#define GL_ALPHA_FLOAT16_ATI 0x881C +#define GL_INTENSITY_FLOAT16_ATI 0x881D +#define GL_LUMINANCE_FLOAT16_ATI 0x881E +#define GL_LUMINANCE_ALPHA_FLOAT16_ATI 0x881F +#endif /* GL_ATI_texture_float */ + +#ifndef GL_ATI_texture_mirror_once +#define GL_ATI_texture_mirror_once 1 +#define GL_MIRROR_CLAMP_ATI 0x8742 +#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743 +#endif /* GL_ATI_texture_mirror_once */ + +#ifndef GL_ATI_vertex_array_object +#define GL_ATI_vertex_array_object 1 +#define GL_STATIC_ATI 0x8760 +#define GL_DYNAMIC_ATI 0x8761 +#define GL_PRESERVE_ATI 0x8762 +#define GL_DISCARD_ATI 0x8763 +#define GL_OBJECT_BUFFER_SIZE_ATI 0x8764 +#define GL_OBJECT_BUFFER_USAGE_ATI 0x8765 +#define GL_ARRAY_OBJECT_BUFFER_ATI 0x8766 +#define GL_ARRAY_OBJECT_OFFSET_ATI 0x8767 + typedef GLuint(APIENTRYP PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const void* pointer, GLenum usage); + typedef GLboolean(APIENTRYP PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer); + typedef void (APIENTRYP PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const void* pointer, GLenum preserve); + typedef void (APIENTRYP PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer); + typedef void (APIENTRYP PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); + typedef void (APIENTRYP PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); + typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLuint APIENTRY glNewObjectBufferATI(GLsizei size, const void* pointer, GLenum usage); + GLAPI GLboolean APIENTRY glIsObjectBufferATI(GLuint buffer); + GLAPI void APIENTRY glUpdateObjectBufferATI(GLuint buffer, GLuint offset, GLsizei size, const void* pointer, GLenum preserve); + GLAPI void APIENTRY glGetObjectBufferfvATI(GLuint buffer, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetObjectBufferivATI(GLuint buffer, GLenum pname, GLint* params); + GLAPI void APIENTRY glFreeObjectBufferATI(GLuint buffer); + GLAPI void APIENTRY glArrayObjectATI(GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); + GLAPI void APIENTRY glGetArrayObjectfvATI(GLenum array, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetArrayObjectivATI(GLenum array, GLenum pname, GLint* params); + GLAPI void APIENTRY glVariantArrayObjectATI(GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); + GLAPI void APIENTRY glGetVariantArrayObjectfvATI(GLuint id, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetVariantArrayObjectivATI(GLuint id, GLenum pname, GLint* params); +#endif +#endif /* GL_ATI_vertex_array_object */ + +#ifndef GL_ATI_vertex_attrib_array_object +#define GL_ATI_vertex_attrib_array_object 1 + typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVertexAttribArrayObjectATI(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); + GLAPI void APIENTRY glGetVertexAttribArrayObjectfvATI(GLuint index, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetVertexAttribArrayObjectivATI(GLuint index, GLenum pname, GLint* params); +#endif +#endif /* GL_ATI_vertex_attrib_array_object */ + +#ifndef GL_ATI_vertex_streams +#define GL_ATI_vertex_streams 1 +#define GL_MAX_VERTEX_STREAMS_ATI 0x876B +#define GL_VERTEX_STREAM0_ATI 0x876C +#define GL_VERTEX_STREAM1_ATI 0x876D +#define GL_VERTEX_STREAM2_ATI 0x876E +#define GL_VERTEX_STREAM3_ATI 0x876F +#define GL_VERTEX_STREAM4_ATI 0x8770 +#define GL_VERTEX_STREAM5_ATI 0x8771 +#define GL_VERTEX_STREAM6_ATI 0x8772 +#define GL_VERTEX_STREAM7_ATI 0x8773 +#define GL_VERTEX_SOURCE_ATI 0x8774 + typedef void (APIENTRYP PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x); + typedef void (APIENTRYP PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x); + typedef void (APIENTRYP PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x); + typedef void (APIENTRYP PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x); + typedef void (APIENTRYP PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y); + typedef void (APIENTRYP PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y); + typedef void (APIENTRYP PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y); + typedef void (APIENTRYP PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y); + typedef void (APIENTRYP PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z); + typedef void (APIENTRYP PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z); + typedef void (APIENTRYP PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); + typedef void (APIENTRYP PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w); + typedef void (APIENTRYP PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat* coords); + typedef void (APIENTRYP PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble* coords); + typedef void (APIENTRYP PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz); + typedef void (APIENTRYP PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte* coords); + typedef void (APIENTRYP PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz); + typedef void (APIENTRYP PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort* coords); + typedef void (APIENTRYP PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz); + typedef void (APIENTRYP PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint* coords); + typedef void (APIENTRYP PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz); + typedef void (APIENTRYP PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat* coords); + typedef void (APIENTRYP PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz); + typedef void (APIENTRYP PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble* coords); + typedef void (APIENTRYP PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream); + typedef void (APIENTRYP PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVertexStream1sATI(GLenum stream, GLshort x); + GLAPI void APIENTRY glVertexStream1svATI(GLenum stream, const GLshort* coords); + GLAPI void APIENTRY glVertexStream1iATI(GLenum stream, GLint x); + GLAPI void APIENTRY glVertexStream1ivATI(GLenum stream, const GLint* coords); + GLAPI void APIENTRY glVertexStream1fATI(GLenum stream, GLfloat x); + GLAPI void APIENTRY glVertexStream1fvATI(GLenum stream, const GLfloat* coords); + GLAPI void APIENTRY glVertexStream1dATI(GLenum stream, GLdouble x); + GLAPI void APIENTRY glVertexStream1dvATI(GLenum stream, const GLdouble* coords); + GLAPI void APIENTRY glVertexStream2sATI(GLenum stream, GLshort x, GLshort y); + GLAPI void APIENTRY glVertexStream2svATI(GLenum stream, const GLshort* coords); + GLAPI void APIENTRY glVertexStream2iATI(GLenum stream, GLint x, GLint y); + GLAPI void APIENTRY glVertexStream2ivATI(GLenum stream, const GLint* coords); + GLAPI void APIENTRY glVertexStream2fATI(GLenum stream, GLfloat x, GLfloat y); + GLAPI void APIENTRY glVertexStream2fvATI(GLenum stream, const GLfloat* coords); + GLAPI void APIENTRY glVertexStream2dATI(GLenum stream, GLdouble x, GLdouble y); + GLAPI void APIENTRY glVertexStream2dvATI(GLenum stream, const GLdouble* coords); + GLAPI void APIENTRY glVertexStream3sATI(GLenum stream, GLshort x, GLshort y, GLshort z); + GLAPI void APIENTRY glVertexStream3svATI(GLenum stream, const GLshort* coords); + GLAPI void APIENTRY glVertexStream3iATI(GLenum stream, GLint x, GLint y, GLint z); + GLAPI void APIENTRY glVertexStream3ivATI(GLenum stream, const GLint* coords); + GLAPI void APIENTRY glVertexStream3fATI(GLenum stream, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glVertexStream3fvATI(GLenum stream, const GLfloat* coords); + GLAPI void APIENTRY glVertexStream3dATI(GLenum stream, GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glVertexStream3dvATI(GLenum stream, const GLdouble* coords); + GLAPI void APIENTRY glVertexStream4sATI(GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); + GLAPI void APIENTRY glVertexStream4svATI(GLenum stream, const GLshort* coords); + GLAPI void APIENTRY glVertexStream4iATI(GLenum stream, GLint x, GLint y, GLint z, GLint w); + GLAPI void APIENTRY glVertexStream4ivATI(GLenum stream, const GLint* coords); + GLAPI void APIENTRY glVertexStream4fATI(GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glVertexStream4fvATI(GLenum stream, const GLfloat* coords); + GLAPI void APIENTRY glVertexStream4dATI(GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glVertexStream4dvATI(GLenum stream, const GLdouble* coords); + GLAPI void APIENTRY glNormalStream3bATI(GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz); + GLAPI void APIENTRY glNormalStream3bvATI(GLenum stream, const GLbyte* coords); + GLAPI void APIENTRY glNormalStream3sATI(GLenum stream, GLshort nx, GLshort ny, GLshort nz); + GLAPI void APIENTRY glNormalStream3svATI(GLenum stream, const GLshort* coords); + GLAPI void APIENTRY glNormalStream3iATI(GLenum stream, GLint nx, GLint ny, GLint nz); + GLAPI void APIENTRY glNormalStream3ivATI(GLenum stream, const GLint* coords); + GLAPI void APIENTRY glNormalStream3fATI(GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz); + GLAPI void APIENTRY glNormalStream3fvATI(GLenum stream, const GLfloat* coords); + GLAPI void APIENTRY glNormalStream3dATI(GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz); + GLAPI void APIENTRY glNormalStream3dvATI(GLenum stream, const GLdouble* coords); + GLAPI void APIENTRY glClientActiveVertexStreamATI(GLenum stream); + GLAPI void APIENTRY glVertexBlendEnviATI(GLenum pname, GLint param); + GLAPI void APIENTRY glVertexBlendEnvfATI(GLenum pname, GLfloat param); +#endif +#endif /* GL_ATI_vertex_streams */ + +#ifndef GL_EXT_422_pixels +#define GL_EXT_422_pixels 1 +#define GL_422_EXT 0x80CC +#define GL_422_REV_EXT 0x80CD +#define GL_422_AVERAGE_EXT 0x80CE +#define GL_422_REV_AVERAGE_EXT 0x80CF +#endif /* GL_EXT_422_pixels */ + +#ifndef GL_EXT_EGL_image_storage +#define GL_EXT_EGL_image_storage 1 + typedef void* GLeglImageOES; + typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXSTORAGEEXTPROC) (GLenum target, GLeglImageOES image, const GLint* attrib_list); + typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURESTORAGEEXTPROC) (GLuint texture, GLeglImageOES image, const GLint* attrib_list); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glEGLImageTargetTexStorageEXT(GLenum target, GLeglImageOES image, const GLint* attrib_list); + GLAPI void APIENTRY glEGLImageTargetTextureStorageEXT(GLuint texture, GLeglImageOES image, const GLint* attrib_list); +#endif +#endif /* GL_EXT_EGL_image_storage */ + +#ifndef GL_EXT_EGL_sync +#define GL_EXT_EGL_sync 1 +#endif /* GL_EXT_EGL_sync */ + +#ifndef GL_EXT_abgr +#define GL_EXT_abgr 1 +#define GL_ABGR_EXT 0x8000 +#endif /* GL_EXT_abgr */ + +#ifndef GL_EXT_bgra +#define GL_EXT_bgra 1 +#define GL_BGR_EXT 0x80E0 +#define GL_BGRA_EXT 0x80E1 +#endif /* GL_EXT_bgra */ + +#ifndef GL_EXT_bindable_uniform +#define GL_EXT_bindable_uniform 1 +#define GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2 +#define GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3 +#define GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4 +#define GL_MAX_BINDABLE_UNIFORM_SIZE_EXT 0x8DED +#define GL_UNIFORM_BUFFER_EXT 0x8DEE +#define GL_UNIFORM_BUFFER_BINDING_EXT 0x8DEF + typedef void (APIENTRYP PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer); + typedef GLint(APIENTRYP PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location); + typedef GLintptr(APIENTRYP PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glUniformBufferEXT(GLuint program, GLint location, GLuint buffer); + GLAPI GLint APIENTRY glGetUniformBufferSizeEXT(GLuint program, GLint location); + GLAPI GLintptr APIENTRY glGetUniformOffsetEXT(GLuint program, GLint location); +#endif +#endif /* GL_EXT_bindable_uniform */ + +#ifndef GL_EXT_blend_color +#define GL_EXT_blend_color 1 +#define GL_CONSTANT_COLOR_EXT 0x8001 +#define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002 +#define GL_CONSTANT_ALPHA_EXT 0x8003 +#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004 +#define GL_BLEND_COLOR_EXT 0x8005 + typedef void (APIENTRYP PFNGLBLENDCOLOREXTPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlendColorEXT(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +#endif +#endif /* GL_EXT_blend_color */ + +#ifndef GL_EXT_blend_equation_separate +#define GL_EXT_blend_equation_separate 1 +#define GL_BLEND_EQUATION_RGB_EXT 0x8009 +#define GL_BLEND_EQUATION_ALPHA_EXT 0x883D + typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlendEquationSeparateEXT(GLenum modeRGB, GLenum modeAlpha); +#endif +#endif /* GL_EXT_blend_equation_separate */ + +#ifndef GL_EXT_blend_func_separate +#define GL_EXT_blend_func_separate 1 +#define GL_BLEND_DST_RGB_EXT 0x80C8 +#define GL_BLEND_SRC_RGB_EXT 0x80C9 +#define GL_BLEND_DST_ALPHA_EXT 0x80CA +#define GL_BLEND_SRC_ALPHA_EXT 0x80CB + typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlendFuncSeparateEXT(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +#endif +#endif /* GL_EXT_blend_func_separate */ + +#ifndef GL_EXT_blend_logic_op +#define GL_EXT_blend_logic_op 1 +#endif /* GL_EXT_blend_logic_op */ + +#ifndef GL_EXT_blend_minmax +#define GL_EXT_blend_minmax 1 +#define GL_MIN_EXT 0x8007 +#define GL_MAX_EXT 0x8008 +#define GL_FUNC_ADD_EXT 0x8006 +#define GL_BLEND_EQUATION_EXT 0x8009 + typedef void (APIENTRYP PFNGLBLENDEQUATIONEXTPROC) (GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlendEquationEXT(GLenum mode); +#endif +#endif /* GL_EXT_blend_minmax */ + +#ifndef GL_EXT_blend_subtract +#define GL_EXT_blend_subtract 1 +#define GL_FUNC_SUBTRACT_EXT 0x800A +#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B +#endif /* GL_EXT_blend_subtract */ + +#ifndef GL_EXT_clip_volume_hint +#define GL_EXT_clip_volume_hint 1 +#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F0 +#endif /* GL_EXT_clip_volume_hint */ + +#ifndef GL_EXT_cmyka +#define GL_EXT_cmyka 1 +#define GL_CMYK_EXT 0x800C +#define GL_CMYKA_EXT 0x800D +#define GL_PACK_CMYK_HINT_EXT 0x800E +#define GL_UNPACK_CMYK_HINT_EXT 0x800F +#endif /* GL_EXT_cmyka */ + +#ifndef GL_EXT_color_subtable +#define GL_EXT_color_subtable 1 + typedef void (APIENTRYP PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void* data); + typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glColorSubTableEXT(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void* data); + GLAPI void APIENTRY glCopyColorSubTableEXT(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); +#endif +#endif /* GL_EXT_color_subtable */ + +#ifndef GL_EXT_compiled_vertex_array +#define GL_EXT_compiled_vertex_array 1 +#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8 +#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9 + typedef void (APIENTRYP PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count); + typedef void (APIENTRYP PFNGLUNLOCKARRAYSEXTPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glLockArraysEXT(GLint first, GLsizei count); + GLAPI void APIENTRY glUnlockArraysEXT(void); +#endif +#endif /* GL_EXT_compiled_vertex_array */ + +#ifndef GL_EXT_convolution +#define GL_EXT_convolution 1 +#define GL_CONVOLUTION_1D_EXT 0x8010 +#define GL_CONVOLUTION_2D_EXT 0x8011 +#define GL_SEPARABLE_2D_EXT 0x8012 +#define GL_CONVOLUTION_BORDER_MODE_EXT 0x8013 +#define GL_CONVOLUTION_FILTER_SCALE_EXT 0x8014 +#define GL_CONVOLUTION_FILTER_BIAS_EXT 0x8015 +#define GL_REDUCE_EXT 0x8016 +#define GL_CONVOLUTION_FORMAT_EXT 0x8017 +#define GL_CONVOLUTION_WIDTH_EXT 0x8018 +#define GL_CONVOLUTION_HEIGHT_EXT 0x8019 +#define GL_MAX_CONVOLUTION_WIDTH_EXT 0x801A +#define GL_MAX_CONVOLUTION_HEIGHT_EXT 0x801B +#define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C +#define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D +#define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E +#define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F +#define GL_POST_CONVOLUTION_RED_BIAS_EXT 0x8020 +#define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021 +#define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022 +#define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023 + typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* image); + typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* image); + typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params); + typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params); + typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); + typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void* image); + typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void* row, void* column, void* span); + typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* row, const void* column); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glConvolutionFilter1DEXT(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* image); + GLAPI void APIENTRY glConvolutionFilter2DEXT(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* image); + GLAPI void APIENTRY glConvolutionParameterfEXT(GLenum target, GLenum pname, GLfloat params); + GLAPI void APIENTRY glConvolutionParameterfvEXT(GLenum target, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glConvolutionParameteriEXT(GLenum target, GLenum pname, GLint params); + GLAPI void APIENTRY glConvolutionParameterivEXT(GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glCopyConvolutionFilter1DEXT(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); + GLAPI void APIENTRY glCopyConvolutionFilter2DEXT(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glGetConvolutionFilterEXT(GLenum target, GLenum format, GLenum type, void* image); + GLAPI void APIENTRY glGetConvolutionParameterfvEXT(GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetConvolutionParameterivEXT(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetSeparableFilterEXT(GLenum target, GLenum format, GLenum type, void* row, void* column, void* span); + GLAPI void APIENTRY glSeparableFilter2DEXT(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* row, const void* column); +#endif +#endif /* GL_EXT_convolution */ + +#ifndef GL_EXT_coordinate_frame +#define GL_EXT_coordinate_frame 1 +#define GL_TANGENT_ARRAY_EXT 0x8439 +#define GL_BINORMAL_ARRAY_EXT 0x843A +#define GL_CURRENT_TANGENT_EXT 0x843B +#define GL_CURRENT_BINORMAL_EXT 0x843C +#define GL_TANGENT_ARRAY_TYPE_EXT 0x843E +#define GL_TANGENT_ARRAY_STRIDE_EXT 0x843F +#define GL_BINORMAL_ARRAY_TYPE_EXT 0x8440 +#define GL_BINORMAL_ARRAY_STRIDE_EXT 0x8441 +#define GL_TANGENT_ARRAY_POINTER_EXT 0x8442 +#define GL_BINORMAL_ARRAY_POINTER_EXT 0x8443 +#define GL_MAP1_TANGENT_EXT 0x8444 +#define GL_MAP2_TANGENT_EXT 0x8445 +#define GL_MAP1_BINORMAL_EXT 0x8446 +#define GL_MAP2_BINORMAL_EXT 0x8447 + typedef void (APIENTRYP PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz); + typedef void (APIENTRYP PFNGLTANGENT3BVEXTPROC) (const GLbyte* v); + typedef void (APIENTRYP PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz); + typedef void (APIENTRYP PFNGLTANGENT3DVEXTPROC) (const GLdouble* v); + typedef void (APIENTRYP PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz); + typedef void (APIENTRYP PFNGLTANGENT3FVEXTPROC) (const GLfloat* v); + typedef void (APIENTRYP PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz); + typedef void (APIENTRYP PFNGLTANGENT3IVEXTPROC) (const GLint* v); + typedef void (APIENTRYP PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz); + typedef void (APIENTRYP PFNGLTANGENT3SVEXTPROC) (const GLshort* v); + typedef void (APIENTRYP PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz); + typedef void (APIENTRYP PFNGLBINORMAL3BVEXTPROC) (const GLbyte* v); + typedef void (APIENTRYP PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz); + typedef void (APIENTRYP PFNGLBINORMAL3DVEXTPROC) (const GLdouble* v); + typedef void (APIENTRYP PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz); + typedef void (APIENTRYP PFNGLBINORMAL3FVEXTPROC) (const GLfloat* v); + typedef void (APIENTRYP PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz); + typedef void (APIENTRYP PFNGLBINORMAL3IVEXTPROC) (const GLint* v); + typedef void (APIENTRYP PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz); + typedef void (APIENTRYP PFNGLBINORMAL3SVEXTPROC) (const GLshort* v); + typedef void (APIENTRYP PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const void* pointer); + typedef void (APIENTRYP PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const void* pointer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTangent3bEXT(GLbyte tx, GLbyte ty, GLbyte tz); + GLAPI void APIENTRY glTangent3bvEXT(const GLbyte* v); + GLAPI void APIENTRY glTangent3dEXT(GLdouble tx, GLdouble ty, GLdouble tz); + GLAPI void APIENTRY glTangent3dvEXT(const GLdouble* v); + GLAPI void APIENTRY glTangent3fEXT(GLfloat tx, GLfloat ty, GLfloat tz); + GLAPI void APIENTRY glTangent3fvEXT(const GLfloat* v); + GLAPI void APIENTRY glTangent3iEXT(GLint tx, GLint ty, GLint tz); + GLAPI void APIENTRY glTangent3ivEXT(const GLint* v); + GLAPI void APIENTRY glTangent3sEXT(GLshort tx, GLshort ty, GLshort tz); + GLAPI void APIENTRY glTangent3svEXT(const GLshort* v); + GLAPI void APIENTRY glBinormal3bEXT(GLbyte bx, GLbyte by, GLbyte bz); + GLAPI void APIENTRY glBinormal3bvEXT(const GLbyte* v); + GLAPI void APIENTRY glBinormal3dEXT(GLdouble bx, GLdouble by, GLdouble bz); + GLAPI void APIENTRY glBinormal3dvEXT(const GLdouble* v); + GLAPI void APIENTRY glBinormal3fEXT(GLfloat bx, GLfloat by, GLfloat bz); + GLAPI void APIENTRY glBinormal3fvEXT(const GLfloat* v); + GLAPI void APIENTRY glBinormal3iEXT(GLint bx, GLint by, GLint bz); + GLAPI void APIENTRY glBinormal3ivEXT(const GLint* v); + GLAPI void APIENTRY glBinormal3sEXT(GLshort bx, GLshort by, GLshort bz); + GLAPI void APIENTRY glBinormal3svEXT(const GLshort* v); + GLAPI void APIENTRY glTangentPointerEXT(GLenum type, GLsizei stride, const void* pointer); + GLAPI void APIENTRY glBinormalPointerEXT(GLenum type, GLsizei stride, const void* pointer); +#endif +#endif /* GL_EXT_coordinate_frame */ + +#ifndef GL_EXT_copy_texture +#define GL_EXT_copy_texture 1 + typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); + typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); + typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); + typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glCopyTexImage1DEXT(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); + GLAPI void APIENTRY glCopyTexImage2DEXT(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); + GLAPI void APIENTRY glCopyTexSubImage1DEXT(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); + GLAPI void APIENTRY glCopyTexSubImage2DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glCopyTexSubImage3DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#endif +#endif /* GL_EXT_copy_texture */ + +#ifndef GL_EXT_cull_vertex +#define GL_EXT_cull_vertex 1 +#define GL_CULL_VERTEX_EXT 0x81AA +#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB +#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC + typedef void (APIENTRYP PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble* params); + typedef void (APIENTRYP PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glCullParameterdvEXT(GLenum pname, GLdouble* params); + GLAPI void APIENTRY glCullParameterfvEXT(GLenum pname, GLfloat* params); +#endif +#endif /* GL_EXT_cull_vertex */ + +#ifndef GL_EXT_debug_label +#define GL_EXT_debug_label 1 +#define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F +#define GL_PROGRAM_OBJECT_EXT 0x8B40 +#define GL_SHADER_OBJECT_EXT 0x8B48 +#define GL_BUFFER_OBJECT_EXT 0x9151 +#define GL_QUERY_OBJECT_EXT 0x9153 +#define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154 + typedef void (APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar* label); + typedef void (APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei* length, GLchar* label); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glLabelObjectEXT(GLenum type, GLuint object, GLsizei length, const GLchar* label); + GLAPI void APIENTRY glGetObjectLabelEXT(GLenum type, GLuint object, GLsizei bufSize, GLsizei* length, GLchar* label); +#endif +#endif /* GL_EXT_debug_label */ + +#ifndef GL_EXT_debug_marker +#define GL_EXT_debug_marker 1 + typedef void (APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar* marker); + typedef void (APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar* marker); + typedef void (APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glInsertEventMarkerEXT(GLsizei length, const GLchar* marker); + GLAPI void APIENTRY glPushGroupMarkerEXT(GLsizei length, const GLchar* marker); + GLAPI void APIENTRY glPopGroupMarkerEXT(void); +#endif +#endif /* GL_EXT_debug_marker */ + +#ifndef GL_EXT_depth_bounds_test +#define GL_EXT_depth_bounds_test 1 +#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890 +#define GL_DEPTH_BOUNDS_EXT 0x8891 + typedef void (APIENTRYP PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDepthBoundsEXT(GLclampd zmin, GLclampd zmax); +#endif +#endif /* GL_EXT_depth_bounds_test */ + +#ifndef GL_EXT_direct_state_access +#define GL_EXT_direct_state_access 1 +#define GL_PROGRAM_MATRIX_EXT 0x8E2D +#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8E2E +#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F + typedef void (APIENTRYP PFNGLMATRIXLOADFEXTPROC) (GLenum mode, const GLfloat* m); + typedef void (APIENTRYP PFNGLMATRIXLOADDEXTPROC) (GLenum mode, const GLdouble* m); + typedef void (APIENTRYP PFNGLMATRIXMULTFEXTPROC) (GLenum mode, const GLfloat* m); + typedef void (APIENTRYP PFNGLMATRIXMULTDEXTPROC) (GLenum mode, const GLdouble* m); + typedef void (APIENTRYP PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum mode); + typedef void (APIENTRYP PFNGLMATRIXROTATEFEXTPROC) (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLMATRIXROTATEDEXTPROC) (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLMATRIXSCALEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLMATRIXSCALEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLMATRIXFRUSTUMEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); + typedef void (APIENTRYP PFNGLMATRIXORTHOEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); + typedef void (APIENTRYP PFNGLMATRIXPOPEXTPROC) (GLenum mode); + typedef void (APIENTRYP PFNGLMATRIXPUSHEXTPROC) (GLenum mode); + typedef void (APIENTRYP PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); + typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); + typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); + typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); + typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void* pixels); + typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture); + typedef void (APIENTRYP PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void* pointer); + typedef void (APIENTRYP PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param); + typedef void (APIENTRYP PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble* params); + typedef void (APIENTRYP PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble* params); + typedef void (APIENTRYP PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); + typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); + typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); + typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void* pixels); + typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); + typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); + typedef void (APIENTRYP PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat* data); + typedef void (APIENTRYP PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble* data); + typedef void (APIENTRYP PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, void** data); + typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index); + typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index); + typedef GLboolean(APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index); + typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint* data); + typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean* data); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint lod, void* img); + typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* bits); + typedef void (APIENTRYP PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint lod, void* img); + typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat* m); + typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble* m); + typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat* m); + typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble* m); + typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const void* data, GLenum usage); + typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data); + typedef void* (APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access); + typedef GLboolean(APIENTRYP PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer); + typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, void** params); + typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void* data); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + typedef void (APIENTRYP PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); + typedef void (APIENTRYP PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint* params); + typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint* params); + typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint* params); + typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint* params); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat* params); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint* params); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint* params); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint* params); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint* params); + typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint* params); + typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint* params); + typedef void (APIENTRYP PFNGLENABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); + typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); + typedef void (APIENTRYP PFNGLGETFLOATI_VEXTPROC) (GLenum pname, GLuint index, GLfloat* params); + typedef void (APIENTRYP PFNGLGETDOUBLEI_VEXTPROC) (GLenum pname, GLuint index, GLdouble* params); + typedef void (APIENTRYP PFNGLGETPOINTERI_VEXTPROC) (GLenum pname, GLuint index, void** params); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const void* string); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble* params); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat* params); + typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble* params); + typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat* params); + typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, void* string); + typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); + typedef GLenum(APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); + typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target); + typedef void (APIENTRYP PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target); + typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); + typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum* bufs); + typedef void (APIENTRYP PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); + typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); + typedef void (APIENTRYP PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer); + typedef void (APIENTRYP PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLVERTEXARRAYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLVERTEXARRAYINDEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLVERTEXARRAYNORMALOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); + typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); + typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); + typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); + typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERVEXTPROC) (GLuint vaobj, GLenum pname, GLint* param); + typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERVEXTPROC) (GLuint vaobj, GLenum pname, void** param); + typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint* param); + typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, void** param); + typedef void* (APIENTRYP PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); + typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); + typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTPROC) (GLuint buffer, GLsizeiptr size, const void* data, GLbitfield flags); + typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void* data); + typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void* data); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) (GLuint framebuffer, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); + typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); + typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); + typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); + typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); + typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTEXTPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); + typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBDIVISOREXTPROC) (GLuint vaobj, GLuint index, GLuint divisor); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMatrixLoadfEXT(GLenum mode, const GLfloat* m); + GLAPI void APIENTRY glMatrixLoaddEXT(GLenum mode, const GLdouble* m); + GLAPI void APIENTRY glMatrixMultfEXT(GLenum mode, const GLfloat* m); + GLAPI void APIENTRY glMatrixMultdEXT(GLenum mode, const GLdouble* m); + GLAPI void APIENTRY glMatrixLoadIdentityEXT(GLenum mode); + GLAPI void APIENTRY glMatrixRotatefEXT(GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glMatrixRotatedEXT(GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glMatrixScalefEXT(GLenum mode, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glMatrixScaledEXT(GLenum mode, GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glMatrixTranslatefEXT(GLenum mode, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glMatrixTranslatedEXT(GLenum mode, GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glMatrixFrustumEXT(GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); + GLAPI void APIENTRY glMatrixOrthoEXT(GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); + GLAPI void APIENTRY glMatrixPopEXT(GLenum mode); + GLAPI void APIENTRY glMatrixPushEXT(GLenum mode); + GLAPI void APIENTRY glClientAttribDefaultEXT(GLbitfield mask); + GLAPI void APIENTRY glPushClientAttribDefaultEXT(GLbitfield mask); + GLAPI void APIENTRY glTextureParameterfEXT(GLuint texture, GLenum target, GLenum pname, GLfloat param); + GLAPI void APIENTRY glTextureParameterfvEXT(GLuint texture, GLenum target, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glTextureParameteriEXT(GLuint texture, GLenum target, GLenum pname, GLint param); + GLAPI void APIENTRY glTextureParameterivEXT(GLuint texture, GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glTextureImage1DEXT(GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glTextureImage2DEXT(GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glTextureSubImage1DEXT(GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glTextureSubImage2DEXT(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glCopyTextureImage1DEXT(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); + GLAPI void APIENTRY glCopyTextureImage2DEXT(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); + GLAPI void APIENTRY glCopyTextureSubImage1DEXT(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); + GLAPI void APIENTRY glCopyTextureSubImage2DEXT(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glGetTextureImageEXT(GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void* pixels); + GLAPI void APIENTRY glGetTextureParameterfvEXT(GLuint texture, GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetTextureParameterivEXT(GLuint texture, GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetTextureLevelParameterfvEXT(GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetTextureLevelParameterivEXT(GLuint texture, GLenum target, GLint level, GLenum pname, GLint* params); + GLAPI void APIENTRY glTextureImage3DEXT(GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glTextureSubImage3DEXT(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glCopyTextureSubImage3DEXT(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glBindMultiTextureEXT(GLenum texunit, GLenum target, GLuint texture); + GLAPI void APIENTRY glMultiTexCoordPointerEXT(GLenum texunit, GLint size, GLenum type, GLsizei stride, const void* pointer); + GLAPI void APIENTRY glMultiTexEnvfEXT(GLenum texunit, GLenum target, GLenum pname, GLfloat param); + GLAPI void APIENTRY glMultiTexEnvfvEXT(GLenum texunit, GLenum target, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glMultiTexEnviEXT(GLenum texunit, GLenum target, GLenum pname, GLint param); + GLAPI void APIENTRY glMultiTexEnvivEXT(GLenum texunit, GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glMultiTexGendEXT(GLenum texunit, GLenum coord, GLenum pname, GLdouble param); + GLAPI void APIENTRY glMultiTexGendvEXT(GLenum texunit, GLenum coord, GLenum pname, const GLdouble* params); + GLAPI void APIENTRY glMultiTexGenfEXT(GLenum texunit, GLenum coord, GLenum pname, GLfloat param); + GLAPI void APIENTRY glMultiTexGenfvEXT(GLenum texunit, GLenum coord, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glMultiTexGeniEXT(GLenum texunit, GLenum coord, GLenum pname, GLint param); + GLAPI void APIENTRY glMultiTexGenivEXT(GLenum texunit, GLenum coord, GLenum pname, const GLint* params); + GLAPI void APIENTRY glGetMultiTexEnvfvEXT(GLenum texunit, GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetMultiTexEnvivEXT(GLenum texunit, GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetMultiTexGendvEXT(GLenum texunit, GLenum coord, GLenum pname, GLdouble* params); + GLAPI void APIENTRY glGetMultiTexGenfvEXT(GLenum texunit, GLenum coord, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetMultiTexGenivEXT(GLenum texunit, GLenum coord, GLenum pname, GLint* params); + GLAPI void APIENTRY glMultiTexParameteriEXT(GLenum texunit, GLenum target, GLenum pname, GLint param); + GLAPI void APIENTRY glMultiTexParameterivEXT(GLenum texunit, GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glMultiTexParameterfEXT(GLenum texunit, GLenum target, GLenum pname, GLfloat param); + GLAPI void APIENTRY glMultiTexParameterfvEXT(GLenum texunit, GLenum target, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glMultiTexImage1DEXT(GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glMultiTexImage2DEXT(GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glMultiTexSubImage1DEXT(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glMultiTexSubImage2DEXT(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glCopyMultiTexImage1DEXT(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); + GLAPI void APIENTRY glCopyMultiTexImage2DEXT(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); + GLAPI void APIENTRY glCopyMultiTexSubImage1DEXT(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); + GLAPI void APIENTRY glCopyMultiTexSubImage2DEXT(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glGetMultiTexImageEXT(GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void* pixels); + GLAPI void APIENTRY glGetMultiTexParameterfvEXT(GLenum texunit, GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetMultiTexParameterivEXT(GLenum texunit, GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetMultiTexLevelParameterfvEXT(GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetMultiTexLevelParameterivEXT(GLenum texunit, GLenum target, GLint level, GLenum pname, GLint* params); + GLAPI void APIENTRY glMultiTexImage3DEXT(GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glMultiTexSubImage3DEXT(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glCopyMultiTexSubImage3DEXT(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glEnableClientStateIndexedEXT(GLenum array, GLuint index); + GLAPI void APIENTRY glDisableClientStateIndexedEXT(GLenum array, GLuint index); + GLAPI void APIENTRY glGetFloatIndexedvEXT(GLenum target, GLuint index, GLfloat* data); + GLAPI void APIENTRY glGetDoubleIndexedvEXT(GLenum target, GLuint index, GLdouble* data); + GLAPI void APIENTRY glGetPointerIndexedvEXT(GLenum target, GLuint index, void** data); + GLAPI void APIENTRY glEnableIndexedEXT(GLenum target, GLuint index); + GLAPI void APIENTRY glDisableIndexedEXT(GLenum target, GLuint index); + GLAPI GLboolean APIENTRY glIsEnabledIndexedEXT(GLenum target, GLuint index); + GLAPI void APIENTRY glGetIntegerIndexedvEXT(GLenum target, GLuint index, GLint* data); + GLAPI void APIENTRY glGetBooleanIndexedvEXT(GLenum target, GLuint index, GLboolean* data); + GLAPI void APIENTRY glCompressedTextureImage3DEXT(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glCompressedTextureImage2DEXT(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glCompressedTextureImage1DEXT(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glCompressedTextureSubImage3DEXT(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glCompressedTextureSubImage2DEXT(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glCompressedTextureSubImage1DEXT(GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glGetCompressedTextureImageEXT(GLuint texture, GLenum target, GLint lod, void* img); + GLAPI void APIENTRY glCompressedMultiTexImage3DEXT(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glCompressedMultiTexImage2DEXT(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glCompressedMultiTexImage1DEXT(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glCompressedMultiTexSubImage3DEXT(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glCompressedMultiTexSubImage2DEXT(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glCompressedMultiTexSubImage1DEXT(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* bits); + GLAPI void APIENTRY glGetCompressedMultiTexImageEXT(GLenum texunit, GLenum target, GLint lod, void* img); + GLAPI void APIENTRY glMatrixLoadTransposefEXT(GLenum mode, const GLfloat* m); + GLAPI void APIENTRY glMatrixLoadTransposedEXT(GLenum mode, const GLdouble* m); + GLAPI void APIENTRY glMatrixMultTransposefEXT(GLenum mode, const GLfloat* m); + GLAPI void APIENTRY glMatrixMultTransposedEXT(GLenum mode, const GLdouble* m); + GLAPI void APIENTRY glNamedBufferDataEXT(GLuint buffer, GLsizeiptr size, const void* data, GLenum usage); + GLAPI void APIENTRY glNamedBufferSubDataEXT(GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data); + GLAPI void* APIENTRY glMapNamedBufferEXT(GLuint buffer, GLenum access); + GLAPI GLboolean APIENTRY glUnmapNamedBufferEXT(GLuint buffer); + GLAPI void APIENTRY glGetNamedBufferParameterivEXT(GLuint buffer, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetNamedBufferPointervEXT(GLuint buffer, GLenum pname, void** params); + GLAPI void APIENTRY glGetNamedBufferSubDataEXT(GLuint buffer, GLintptr offset, GLsizeiptr size, void* data); + GLAPI void APIENTRY glProgramUniform1fEXT(GLuint program, GLint location, GLfloat v0); + GLAPI void APIENTRY glProgramUniform2fEXT(GLuint program, GLint location, GLfloat v0, GLfloat v1); + GLAPI void APIENTRY glProgramUniform3fEXT(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); + GLAPI void APIENTRY glProgramUniform4fEXT(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); + GLAPI void APIENTRY glProgramUniform1iEXT(GLuint program, GLint location, GLint v0); + GLAPI void APIENTRY glProgramUniform2iEXT(GLuint program, GLint location, GLint v0, GLint v1); + GLAPI void APIENTRY glProgramUniform3iEXT(GLuint program, GLint location, GLint v0, GLint v1, GLint v2); + GLAPI void APIENTRY glProgramUniform4iEXT(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); + GLAPI void APIENTRY glProgramUniform1fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glProgramUniform2fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glProgramUniform3fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glProgramUniform4fvEXT(GLuint program, GLint location, GLsizei count, const GLfloat* value); + GLAPI void APIENTRY glProgramUniform1ivEXT(GLuint program, GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glProgramUniform2ivEXT(GLuint program, GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glProgramUniform3ivEXT(GLuint program, GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glProgramUniform4ivEXT(GLuint program, GLint location, GLsizei count, const GLint* value); + GLAPI void APIENTRY glProgramUniformMatrix2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix2x3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix3x2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix2x4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix4x2fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix3x4fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glProgramUniformMatrix4x3fvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); + GLAPI void APIENTRY glTextureBufferEXT(GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); + GLAPI void APIENTRY glMultiTexBufferEXT(GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); + GLAPI void APIENTRY glTextureParameterIivEXT(GLuint texture, GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glTextureParameterIuivEXT(GLuint texture, GLenum target, GLenum pname, const GLuint* params); + GLAPI void APIENTRY glGetTextureParameterIivEXT(GLuint texture, GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetTextureParameterIuivEXT(GLuint texture, GLenum target, GLenum pname, GLuint* params); + GLAPI void APIENTRY glMultiTexParameterIivEXT(GLenum texunit, GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glMultiTexParameterIuivEXT(GLenum texunit, GLenum target, GLenum pname, const GLuint* params); + GLAPI void APIENTRY glGetMultiTexParameterIivEXT(GLenum texunit, GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetMultiTexParameterIuivEXT(GLenum texunit, GLenum target, GLenum pname, GLuint* params); + GLAPI void APIENTRY glProgramUniform1uiEXT(GLuint program, GLint location, GLuint v0); + GLAPI void APIENTRY glProgramUniform2uiEXT(GLuint program, GLint location, GLuint v0, GLuint v1); + GLAPI void APIENTRY glProgramUniform3uiEXT(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); + GLAPI void APIENTRY glProgramUniform4uiEXT(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + GLAPI void APIENTRY glProgramUniform1uivEXT(GLuint program, GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glProgramUniform2uivEXT(GLuint program, GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glProgramUniform3uivEXT(GLuint program, GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glProgramUniform4uivEXT(GLuint program, GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glNamedProgramLocalParameters4fvEXT(GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat* params); + GLAPI void APIENTRY glNamedProgramLocalParameterI4iEXT(GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); + GLAPI void APIENTRY glNamedProgramLocalParameterI4ivEXT(GLuint program, GLenum target, GLuint index, const GLint* params); + GLAPI void APIENTRY glNamedProgramLocalParametersI4ivEXT(GLuint program, GLenum target, GLuint index, GLsizei count, const GLint* params); + GLAPI void APIENTRY glNamedProgramLocalParameterI4uiEXT(GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); + GLAPI void APIENTRY glNamedProgramLocalParameterI4uivEXT(GLuint program, GLenum target, GLuint index, const GLuint* params); + GLAPI void APIENTRY glNamedProgramLocalParametersI4uivEXT(GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint* params); + GLAPI void APIENTRY glGetNamedProgramLocalParameterIivEXT(GLuint program, GLenum target, GLuint index, GLint* params); + GLAPI void APIENTRY glGetNamedProgramLocalParameterIuivEXT(GLuint program, GLenum target, GLuint index, GLuint* params); + GLAPI void APIENTRY glEnableClientStateiEXT(GLenum array, GLuint index); + GLAPI void APIENTRY glDisableClientStateiEXT(GLenum array, GLuint index); + GLAPI void APIENTRY glGetFloati_vEXT(GLenum pname, GLuint index, GLfloat* params); + GLAPI void APIENTRY glGetDoublei_vEXT(GLenum pname, GLuint index, GLdouble* params); + GLAPI void APIENTRY glGetPointeri_vEXT(GLenum pname, GLuint index, void** params); + GLAPI void APIENTRY glNamedProgramStringEXT(GLuint program, GLenum target, GLenum format, GLsizei len, const void* string); + GLAPI void APIENTRY glNamedProgramLocalParameter4dEXT(GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glNamedProgramLocalParameter4dvEXT(GLuint program, GLenum target, GLuint index, const GLdouble* params); + GLAPI void APIENTRY glNamedProgramLocalParameter4fEXT(GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glNamedProgramLocalParameter4fvEXT(GLuint program, GLenum target, GLuint index, const GLfloat* params); + GLAPI void APIENTRY glGetNamedProgramLocalParameterdvEXT(GLuint program, GLenum target, GLuint index, GLdouble* params); + GLAPI void APIENTRY glGetNamedProgramLocalParameterfvEXT(GLuint program, GLenum target, GLuint index, GLfloat* params); + GLAPI void APIENTRY glGetNamedProgramivEXT(GLuint program, GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetNamedProgramStringEXT(GLuint program, GLenum target, GLenum pname, void* string); + GLAPI void APIENTRY glNamedRenderbufferStorageEXT(GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glGetNamedRenderbufferParameterivEXT(GLuint renderbuffer, GLenum pname, GLint* params); + GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleEXT(GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleCoverageEXT(GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI GLenum APIENTRY glCheckNamedFramebufferStatusEXT(GLuint framebuffer, GLenum target); + GLAPI void APIENTRY glNamedFramebufferTexture1DEXT(GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + GLAPI void APIENTRY glNamedFramebufferTexture2DEXT(GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + GLAPI void APIENTRY glNamedFramebufferTexture3DEXT(GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); + GLAPI void APIENTRY glNamedFramebufferRenderbufferEXT(GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); + GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameterivEXT(GLuint framebuffer, GLenum attachment, GLenum pname, GLint* params); + GLAPI void APIENTRY glGenerateTextureMipmapEXT(GLuint texture, GLenum target); + GLAPI void APIENTRY glGenerateMultiTexMipmapEXT(GLenum texunit, GLenum target); + GLAPI void APIENTRY glFramebufferDrawBufferEXT(GLuint framebuffer, GLenum mode); + GLAPI void APIENTRY glFramebufferDrawBuffersEXT(GLuint framebuffer, GLsizei n, const GLenum* bufs); + GLAPI void APIENTRY glFramebufferReadBufferEXT(GLuint framebuffer, GLenum mode); + GLAPI void APIENTRY glGetFramebufferParameterivEXT(GLuint framebuffer, GLenum pname, GLint* params); + GLAPI void APIENTRY glNamedCopyBufferSubDataEXT(GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + GLAPI void APIENTRY glNamedFramebufferTextureEXT(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); + GLAPI void APIENTRY glNamedFramebufferTextureLayerEXT(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); + GLAPI void APIENTRY glNamedFramebufferTextureFaceEXT(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); + GLAPI void APIENTRY glTextureRenderbufferEXT(GLuint texture, GLenum target, GLuint renderbuffer); + GLAPI void APIENTRY glMultiTexRenderbufferEXT(GLenum texunit, GLenum target, GLuint renderbuffer); + GLAPI void APIENTRY glVertexArrayVertexOffsetEXT(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glVertexArrayColorOffsetEXT(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glVertexArrayEdgeFlagOffsetEXT(GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glVertexArrayIndexOffsetEXT(GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glVertexArrayNormalOffsetEXT(GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glVertexArrayTexCoordOffsetEXT(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glVertexArrayMultiTexCoordOffsetEXT(GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glVertexArrayFogCoordOffsetEXT(GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glVertexArraySecondaryColorOffsetEXT(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glVertexArrayVertexAttribOffsetEXT(GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glVertexArrayVertexAttribIOffsetEXT(GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glEnableVertexArrayEXT(GLuint vaobj, GLenum array); + GLAPI void APIENTRY glDisableVertexArrayEXT(GLuint vaobj, GLenum array); + GLAPI void APIENTRY glEnableVertexArrayAttribEXT(GLuint vaobj, GLuint index); + GLAPI void APIENTRY glDisableVertexArrayAttribEXT(GLuint vaobj, GLuint index); + GLAPI void APIENTRY glGetVertexArrayIntegervEXT(GLuint vaobj, GLenum pname, GLint* param); + GLAPI void APIENTRY glGetVertexArrayPointervEXT(GLuint vaobj, GLenum pname, void** param); + GLAPI void APIENTRY glGetVertexArrayIntegeri_vEXT(GLuint vaobj, GLuint index, GLenum pname, GLint* param); + GLAPI void APIENTRY glGetVertexArrayPointeri_vEXT(GLuint vaobj, GLuint index, GLenum pname, void** param); + GLAPI void* APIENTRY glMapNamedBufferRangeEXT(GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); + GLAPI void APIENTRY glFlushMappedNamedBufferRangeEXT(GLuint buffer, GLintptr offset, GLsizeiptr length); + GLAPI void APIENTRY glNamedBufferStorageEXT(GLuint buffer, GLsizeiptr size, const void* data, GLbitfield flags); + GLAPI void APIENTRY glClearNamedBufferDataEXT(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void* data); + GLAPI void APIENTRY glClearNamedBufferSubDataEXT(GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void* data); + GLAPI void APIENTRY glNamedFramebufferParameteriEXT(GLuint framebuffer, GLenum pname, GLint param); + GLAPI void APIENTRY glGetNamedFramebufferParameterivEXT(GLuint framebuffer, GLenum pname, GLint* params); + GLAPI void APIENTRY glProgramUniform1dEXT(GLuint program, GLint location, GLdouble x); + GLAPI void APIENTRY glProgramUniform2dEXT(GLuint program, GLint location, GLdouble x, GLdouble y); + GLAPI void APIENTRY glProgramUniform3dEXT(GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glProgramUniform4dEXT(GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glProgramUniform1dvEXT(GLuint program, GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glProgramUniform2dvEXT(GLuint program, GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glProgramUniform3dvEXT(GLuint program, GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glProgramUniform4dvEXT(GLuint program, GLint location, GLsizei count, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix2dvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix3dvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix4dvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix2x3dvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix2x4dvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix3x2dvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix3x4dvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix4x2dvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glProgramUniformMatrix4x3dvEXT(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); + GLAPI void APIENTRY glTextureBufferRangeEXT(GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); + GLAPI void APIENTRY glTextureStorage1DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); + GLAPI void APIENTRY glTextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glTextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); + GLAPI void APIENTRY glTextureStorage2DMultisampleEXT(GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); + GLAPI void APIENTRY glTextureStorage3DMultisampleEXT(GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); + GLAPI void APIENTRY glVertexArrayBindVertexBufferEXT(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); + GLAPI void APIENTRY glVertexArrayVertexAttribFormatEXT(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); + GLAPI void APIENTRY glVertexArrayVertexAttribIFormatEXT(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + GLAPI void APIENTRY glVertexArrayVertexAttribLFormatEXT(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); + GLAPI void APIENTRY glVertexArrayVertexAttribBindingEXT(GLuint vaobj, GLuint attribindex, GLuint bindingindex); + GLAPI void APIENTRY glVertexArrayVertexBindingDivisorEXT(GLuint vaobj, GLuint bindingindex, GLuint divisor); + GLAPI void APIENTRY glVertexArrayVertexAttribLOffsetEXT(GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); + GLAPI void APIENTRY glTexturePageCommitmentEXT(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); + GLAPI void APIENTRY glVertexArrayVertexAttribDivisorEXT(GLuint vaobj, GLuint index, GLuint divisor); +#endif +#endif /* GL_EXT_direct_state_access */ + +#ifndef GL_EXT_draw_buffers2 +#define GL_EXT_draw_buffers2 1 + typedef void (APIENTRYP PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glColorMaskIndexedEXT(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); +#endif +#endif /* GL_EXT_draw_buffers2 */ + +#ifndef GL_EXT_draw_instanced +#define GL_EXT_draw_instanced 1 + typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount); + typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawArraysInstancedEXT(GLenum mode, GLint start, GLsizei count, GLsizei primcount); + GLAPI void APIENTRY glDrawElementsInstancedEXT(GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount); +#endif +#endif /* GL_EXT_draw_instanced */ + +#ifndef GL_EXT_draw_range_elements +#define GL_EXT_draw_range_elements 1 +#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8 +#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9 + typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void* indices); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawRangeElementsEXT(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void* indices); +#endif +#endif /* GL_EXT_draw_range_elements */ + +#ifndef GL_EXT_external_buffer +#define GL_EXT_external_buffer 1 + typedef void* GLeglClientBufferEXT; + typedef void (APIENTRYP PFNGLBUFFERSTORAGEEXTERNALEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags); + typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTERNALEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBufferStorageExternalEXT(GLenum target, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags); + GLAPI void APIENTRY glNamedBufferStorageExternalEXT(GLuint buffer, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags); +#endif +#endif /* GL_EXT_external_buffer */ + +#ifndef GL_EXT_fog_coord +#define GL_EXT_fog_coord 1 +#define GL_FOG_COORDINATE_SOURCE_EXT 0x8450 +#define GL_FOG_COORDINATE_EXT 0x8451 +#define GL_FRAGMENT_DEPTH_EXT 0x8452 +#define GL_CURRENT_FOG_COORDINATE_EXT 0x8453 +#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454 +#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455 +#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456 +#define GL_FOG_COORDINATE_ARRAY_EXT 0x8457 + typedef void (APIENTRYP PFNGLFOGCOORDFEXTPROC) (GLfloat coord); + typedef void (APIENTRYP PFNGLFOGCOORDFVEXTPROC) (const GLfloat* coord); + typedef void (APIENTRYP PFNGLFOGCOORDDEXTPROC) (GLdouble coord); + typedef void (APIENTRYP PFNGLFOGCOORDDVEXTPROC) (const GLdouble* coord); + typedef void (APIENTRYP PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const void* pointer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFogCoordfEXT(GLfloat coord); + GLAPI void APIENTRY glFogCoordfvEXT(const GLfloat* coord); + GLAPI void APIENTRY glFogCoorddEXT(GLdouble coord); + GLAPI void APIENTRY glFogCoorddvEXT(const GLdouble* coord); + GLAPI void APIENTRY glFogCoordPointerEXT(GLenum type, GLsizei stride, const void* pointer); +#endif +#endif /* GL_EXT_fog_coord */ + +#ifndef GL_EXT_framebuffer_blit +#define GL_EXT_framebuffer_blit 1 +#define GL_READ_FRAMEBUFFER_EXT 0x8CA8 +#define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9 +#define GL_DRAW_FRAMEBUFFER_BINDING_EXT 0x8CA6 +#define GL_READ_FRAMEBUFFER_BINDING_EXT 0x8CAA + typedef void (APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlitFramebufferEXT(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +#endif +#endif /* GL_EXT_framebuffer_blit */ + +#ifndef GL_EXT_framebuffer_blit_layers +#define GL_EXT_framebuffer_blit_layers 1 + typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERLAYERSEXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); + typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERLAYEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint srcLayer, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLint dstLayer, GLbitfield mask, GLenum filter); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlitFramebufferLayersEXT(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); + GLAPI void APIENTRY glBlitFramebufferLayerEXT(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint srcLayer, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLint dstLayer, GLbitfield mask, GLenum filter); +#endif +#endif /* GL_EXT_framebuffer_blit_layers */ + +#ifndef GL_EXT_framebuffer_multisample +#define GL_EXT_framebuffer_multisample 1 +#define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56 +#define GL_MAX_SAMPLES_EXT 0x8D57 + typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glRenderbufferStorageMultisampleEXT(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +#endif +#endif /* GL_EXT_framebuffer_multisample */ + +#ifndef GL_EXT_framebuffer_multisample_blit_scaled +#define GL_EXT_framebuffer_multisample_blit_scaled 1 +#define GL_SCALED_RESOLVE_FASTEST_EXT 0x90BA +#define GL_SCALED_RESOLVE_NICEST_EXT 0x90BB +#endif /* GL_EXT_framebuffer_multisample_blit_scaled */ + +#ifndef GL_EXT_framebuffer_object +#define GL_EXT_framebuffer_object 1 +#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506 +#define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8 +#define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6 +#define GL_RENDERBUFFER_BINDING_EXT 0x8CA7 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4 +#define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5 +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6 +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7 +#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9 +#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA +#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB +#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC +#define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD +#define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF +#define GL_COLOR_ATTACHMENT0_EXT 0x8CE0 +#define GL_COLOR_ATTACHMENT1_EXT 0x8CE1 +#define GL_COLOR_ATTACHMENT2_EXT 0x8CE2 +#define GL_COLOR_ATTACHMENT3_EXT 0x8CE3 +#define GL_COLOR_ATTACHMENT4_EXT 0x8CE4 +#define GL_COLOR_ATTACHMENT5_EXT 0x8CE5 +#define GL_COLOR_ATTACHMENT6_EXT 0x8CE6 +#define GL_COLOR_ATTACHMENT7_EXT 0x8CE7 +#define GL_COLOR_ATTACHMENT8_EXT 0x8CE8 +#define GL_COLOR_ATTACHMENT9_EXT 0x8CE9 +#define GL_COLOR_ATTACHMENT10_EXT 0x8CEA +#define GL_COLOR_ATTACHMENT11_EXT 0x8CEB +#define GL_COLOR_ATTACHMENT12_EXT 0x8CEC +#define GL_COLOR_ATTACHMENT13_EXT 0x8CED +#define GL_COLOR_ATTACHMENT14_EXT 0x8CEE +#define GL_COLOR_ATTACHMENT15_EXT 0x8CEF +#define GL_DEPTH_ATTACHMENT_EXT 0x8D00 +#define GL_STENCIL_ATTACHMENT_EXT 0x8D20 +#define GL_FRAMEBUFFER_EXT 0x8D40 +#define GL_RENDERBUFFER_EXT 0x8D41 +#define GL_RENDERBUFFER_WIDTH_EXT 0x8D42 +#define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43 +#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44 +#define GL_STENCIL_INDEX1_EXT 0x8D46 +#define GL_STENCIL_INDEX4_EXT 0x8D47 +#define GL_STENCIL_INDEX8_EXT 0x8D48 +#define GL_STENCIL_INDEX16_EXT 0x8D49 +#define GL_RENDERBUFFER_RED_SIZE_EXT 0x8D50 +#define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8D51 +#define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8D52 +#define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8D53 +#define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8D54 +#define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8D55 + typedef GLboolean(APIENTRYP PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer); + typedef void (APIENTRYP PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer); + typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint* renderbuffers); + typedef void (APIENTRYP PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint* renderbuffers); + typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); + typedef GLboolean(APIENTRYP PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer); + typedef void (APIENTRYP PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer); + typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint* framebuffers); + typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint* framebuffers); + typedef GLenum(APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); + typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); + typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGENERATEMIPMAPEXTPROC) (GLenum target); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLboolean APIENTRY glIsRenderbufferEXT(GLuint renderbuffer); + GLAPI void APIENTRY glBindRenderbufferEXT(GLenum target, GLuint renderbuffer); + GLAPI void APIENTRY glDeleteRenderbuffersEXT(GLsizei n, const GLuint* renderbuffers); + GLAPI void APIENTRY glGenRenderbuffersEXT(GLsizei n, GLuint* renderbuffers); + GLAPI void APIENTRY glRenderbufferStorageEXT(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glGetRenderbufferParameterivEXT(GLenum target, GLenum pname, GLint* params); + GLAPI GLboolean APIENTRY glIsFramebufferEXT(GLuint framebuffer); + GLAPI void APIENTRY glBindFramebufferEXT(GLenum target, GLuint framebuffer); + GLAPI void APIENTRY glDeleteFramebuffersEXT(GLsizei n, const GLuint* framebuffers); + GLAPI void APIENTRY glGenFramebuffersEXT(GLsizei n, GLuint* framebuffers); + GLAPI GLenum APIENTRY glCheckFramebufferStatusEXT(GLenum target); + GLAPI void APIENTRY glFramebufferTexture1DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + GLAPI void APIENTRY glFramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); + GLAPI void APIENTRY glFramebufferTexture3DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); + GLAPI void APIENTRY glFramebufferRenderbufferEXT(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); + GLAPI void APIENTRY glGetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment, GLenum pname, GLint* params); + GLAPI void APIENTRY glGenerateMipmapEXT(GLenum target); +#endif +#endif /* GL_EXT_framebuffer_object */ + +#ifndef GL_EXT_framebuffer_sRGB +#define GL_EXT_framebuffer_sRGB 1 +#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9 +#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA +#endif /* GL_EXT_framebuffer_sRGB */ + +#ifndef GL_EXT_geometry_shader4 +#define GL_EXT_geometry_shader4 1 +#define GL_GEOMETRY_SHADER_EXT 0x8DD9 +#define GL_GEOMETRY_VERTICES_OUT_EXT 0x8DDA +#define GL_GEOMETRY_INPUT_TYPE_EXT 0x8DDB +#define GL_GEOMETRY_OUTPUT_TYPE_EXT 0x8DDC +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29 +#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD +#define GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE +#define GL_MAX_VARYING_COMPONENTS_EXT 0x8B4B +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1 +#define GL_LINES_ADJACENCY_EXT 0x000A +#define GL_LINE_STRIP_ADJACENCY_EXT 0x000B +#define GL_TRIANGLES_ADJACENCY_EXT 0x000C +#define GL_TRIANGLE_STRIP_ADJACENCY_EXT 0x000D +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4 +#define GL_PROGRAM_POINT_SIZE_EXT 0x8642 + typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glProgramParameteriEXT(GLuint program, GLenum pname, GLint value); +#endif +#endif /* GL_EXT_geometry_shader4 */ + +#ifndef GL_EXT_gpu_program_parameters +#define GL_EXT_gpu_program_parameters 1 + typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat* params); + typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glProgramEnvParameters4fvEXT(GLenum target, GLuint index, GLsizei count, const GLfloat* params); + GLAPI void APIENTRY glProgramLocalParameters4fvEXT(GLenum target, GLuint index, GLsizei count, const GLfloat* params); +#endif +#endif /* GL_EXT_gpu_program_parameters */ + +#ifndef GL_EXT_gpu_shader4 +#define GL_EXT_gpu_shader4 1 +#define GL_SAMPLER_1D_ARRAY_EXT 0x8DC0 +#define GL_SAMPLER_2D_ARRAY_EXT 0x8DC1 +#define GL_SAMPLER_BUFFER_EXT 0x8DC2 +#define GL_SAMPLER_1D_ARRAY_SHADOW_EXT 0x8DC3 +#define GL_SAMPLER_2D_ARRAY_SHADOW_EXT 0x8DC4 +#define GL_SAMPLER_CUBE_SHADOW_EXT 0x8DC5 +#define GL_UNSIGNED_INT_VEC2_EXT 0x8DC6 +#define GL_UNSIGNED_INT_VEC3_EXT 0x8DC7 +#define GL_UNSIGNED_INT_VEC4_EXT 0x8DC8 +#define GL_INT_SAMPLER_1D_EXT 0x8DC9 +#define GL_INT_SAMPLER_2D_EXT 0x8DCA +#define GL_INT_SAMPLER_3D_EXT 0x8DCB +#define GL_INT_SAMPLER_CUBE_EXT 0x8DCC +#define GL_INT_SAMPLER_2D_RECT_EXT 0x8DCD +#define GL_INT_SAMPLER_1D_ARRAY_EXT 0x8DCE +#define GL_INT_SAMPLER_2D_ARRAY_EXT 0x8DCF +#define GL_INT_SAMPLER_BUFFER_EXT 0x8DD0 +#define GL_UNSIGNED_INT_SAMPLER_1D_EXT 0x8DD1 +#define GL_UNSIGNED_INT_SAMPLER_2D_EXT 0x8DD2 +#define GL_UNSIGNED_INT_SAMPLER_3D_EXT 0x8DD3 +#define GL_UNSIGNED_INT_SAMPLER_CUBE_EXT 0x8DD4 +#define GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5 +#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6 +#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8 +#define GL_MIN_PROGRAM_TEXEL_OFFSET_EXT 0x8904 +#define GL_MAX_PROGRAM_TEXEL_OFFSET_EXT 0x8905 +#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT 0x88FD + typedef void (APIENTRYP PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint* params); + typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar* name); + typedef GLint(APIENTRYP PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar* name); + typedef void (APIENTRYP PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0); + typedef void (APIENTRYP PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1); + typedef void (APIENTRYP PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); + typedef void (APIENTRYP PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + typedef void (APIENTRYP PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint* value); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGetUniformuivEXT(GLuint program, GLint location, GLuint* params); + GLAPI void APIENTRY glBindFragDataLocationEXT(GLuint program, GLuint color, const GLchar* name); + GLAPI GLint APIENTRY glGetFragDataLocationEXT(GLuint program, const GLchar* name); + GLAPI void APIENTRY glUniform1uiEXT(GLint location, GLuint v0); + GLAPI void APIENTRY glUniform2uiEXT(GLint location, GLuint v0, GLuint v1); + GLAPI void APIENTRY glUniform3uiEXT(GLint location, GLuint v0, GLuint v1, GLuint v2); + GLAPI void APIENTRY glUniform4uiEXT(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); + GLAPI void APIENTRY glUniform1uivEXT(GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glUniform2uivEXT(GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glUniform3uivEXT(GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glUniform4uivEXT(GLint location, GLsizei count, const GLuint* value); + GLAPI void APIENTRY glVertexAttribI1iEXT(GLuint index, GLint x); + GLAPI void APIENTRY glVertexAttribI2iEXT(GLuint index, GLint x, GLint y); + GLAPI void APIENTRY glVertexAttribI3iEXT(GLuint index, GLint x, GLint y, GLint z); + GLAPI void APIENTRY glVertexAttribI4iEXT(GLuint index, GLint x, GLint y, GLint z, GLint w); + GLAPI void APIENTRY glVertexAttribI1uiEXT(GLuint index, GLuint x); + GLAPI void APIENTRY glVertexAttribI2uiEXT(GLuint index, GLuint x, GLuint y); + GLAPI void APIENTRY glVertexAttribI3uiEXT(GLuint index, GLuint x, GLuint y, GLuint z); + GLAPI void APIENTRY glVertexAttribI4uiEXT(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); + GLAPI void APIENTRY glVertexAttribI1ivEXT(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttribI2ivEXT(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttribI3ivEXT(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttribI4ivEXT(GLuint index, const GLint* v); + GLAPI void APIENTRY glVertexAttribI1uivEXT(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttribI2uivEXT(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttribI3uivEXT(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttribI4uivEXT(GLuint index, const GLuint* v); + GLAPI void APIENTRY glVertexAttribI4bvEXT(GLuint index, const GLbyte* v); + GLAPI void APIENTRY glVertexAttribI4svEXT(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttribI4ubvEXT(GLuint index, const GLubyte* v); + GLAPI void APIENTRY glVertexAttribI4usvEXT(GLuint index, const GLushort* v); + GLAPI void APIENTRY glVertexAttribIPointerEXT(GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); + GLAPI void APIENTRY glGetVertexAttribIivEXT(GLuint index, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetVertexAttribIuivEXT(GLuint index, GLenum pname, GLuint* params); +#endif +#endif /* GL_EXT_gpu_shader4 */ + +#ifndef GL_EXT_histogram +#define GL_EXT_histogram 1 +#define GL_HISTOGRAM_EXT 0x8024 +#define GL_PROXY_HISTOGRAM_EXT 0x8025 +#define GL_HISTOGRAM_WIDTH_EXT 0x8026 +#define GL_HISTOGRAM_FORMAT_EXT 0x8027 +#define GL_HISTOGRAM_RED_SIZE_EXT 0x8028 +#define GL_HISTOGRAM_GREEN_SIZE_EXT 0x8029 +#define GL_HISTOGRAM_BLUE_SIZE_EXT 0x802A +#define GL_HISTOGRAM_ALPHA_SIZE_EXT 0x802B +#define GL_HISTOGRAM_LUMINANCE_SIZE_EXT 0x802C +#define GL_HISTOGRAM_SINK_EXT 0x802D +#define GL_MINMAX_EXT 0x802E +#define GL_MINMAX_FORMAT_EXT 0x802F +#define GL_MINMAX_SINK_EXT 0x8030 +#define GL_TABLE_TOO_LARGE_EXT 0x8031 + typedef void (APIENTRYP PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); + typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); + typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); + typedef void (APIENTRYP PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink); + typedef void (APIENTRYP PFNGLRESETHISTOGRAMEXTPROC) (GLenum target); + typedef void (APIENTRYP PFNGLRESETMINMAXEXTPROC) (GLenum target); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGetHistogramEXT(GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); + GLAPI void APIENTRY glGetHistogramParameterfvEXT(GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetHistogramParameterivEXT(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetMinmaxEXT(GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); + GLAPI void APIENTRY glGetMinmaxParameterfvEXT(GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetMinmaxParameterivEXT(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glHistogramEXT(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); + GLAPI void APIENTRY glMinmaxEXT(GLenum target, GLenum internalformat, GLboolean sink); + GLAPI void APIENTRY glResetHistogramEXT(GLenum target); + GLAPI void APIENTRY glResetMinmaxEXT(GLenum target); +#endif +#endif /* GL_EXT_histogram */ + +#ifndef GL_EXT_index_array_formats +#define GL_EXT_index_array_formats 1 +#define GL_IUI_V2F_EXT 0x81AD +#define GL_IUI_V3F_EXT 0x81AE +#define GL_IUI_N3F_V2F_EXT 0x81AF +#define GL_IUI_N3F_V3F_EXT 0x81B0 +#define GL_T2F_IUI_V2F_EXT 0x81B1 +#define GL_T2F_IUI_V3F_EXT 0x81B2 +#define GL_T2F_IUI_N3F_V2F_EXT 0x81B3 +#define GL_T2F_IUI_N3F_V3F_EXT 0x81B4 +#endif /* GL_EXT_index_array_formats */ + +#ifndef GL_EXT_index_func +#define GL_EXT_index_func 1 +#define GL_INDEX_TEST_EXT 0x81B5 +#define GL_INDEX_TEST_FUNC_EXT 0x81B6 +#define GL_INDEX_TEST_REF_EXT 0x81B7 + typedef void (APIENTRYP PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glIndexFuncEXT(GLenum func, GLclampf ref); +#endif +#endif /* GL_EXT_index_func */ + +#ifndef GL_EXT_index_material +#define GL_EXT_index_material 1 +#define GL_INDEX_MATERIAL_EXT 0x81B8 +#define GL_INDEX_MATERIAL_PARAMETER_EXT 0x81B9 +#define GL_INDEX_MATERIAL_FACE_EXT 0x81BA + typedef void (APIENTRYP PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glIndexMaterialEXT(GLenum face, GLenum mode); +#endif +#endif /* GL_EXT_index_material */ + +#ifndef GL_EXT_index_texture +#define GL_EXT_index_texture 1 +#endif /* GL_EXT_index_texture */ + +#ifndef GL_EXT_light_texture +#define GL_EXT_light_texture 1 +#define GL_FRAGMENT_MATERIAL_EXT 0x8349 +#define GL_FRAGMENT_NORMAL_EXT 0x834A +#define GL_FRAGMENT_COLOR_EXT 0x834C +#define GL_ATTENUATION_EXT 0x834D +#define GL_SHADOW_ATTENUATION_EXT 0x834E +#define GL_TEXTURE_APPLICATION_MODE_EXT 0x834F +#define GL_TEXTURE_LIGHT_EXT 0x8350 +#define GL_TEXTURE_MATERIAL_FACE_EXT 0x8351 +#define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352 + typedef void (APIENTRYP PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode); + typedef void (APIENTRYP PFNGLTEXTURELIGHTEXTPROC) (GLenum pname); + typedef void (APIENTRYP PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glApplyTextureEXT(GLenum mode); + GLAPI void APIENTRY glTextureLightEXT(GLenum pname); + GLAPI void APIENTRY glTextureMaterialEXT(GLenum face, GLenum mode); +#endif +#endif /* GL_EXT_light_texture */ + +#ifndef GL_EXT_memory_object +#define GL_EXT_memory_object 1 +#define GL_TEXTURE_TILING_EXT 0x9580 +#define GL_DEDICATED_MEMORY_OBJECT_EXT 0x9581 +#define GL_PROTECTED_MEMORY_OBJECT_EXT 0x959B +#define GL_NUM_TILING_TYPES_EXT 0x9582 +#define GL_TILING_TYPES_EXT 0x9583 +#define GL_OPTIMAL_TILING_EXT 0x9584 +#define GL_LINEAR_TILING_EXT 0x9585 +#define GL_NUM_DEVICE_UUIDS_EXT 0x9596 +#define GL_DEVICE_UUID_EXT 0x9597 +#define GL_DRIVER_UUID_EXT 0x9598 +#define GL_UUID_SIZE_EXT 16 + typedef void (APIENTRYP PFNGLGETUNSIGNEDBYTEVEXTPROC) (GLenum pname, GLubyte* data); + typedef void (APIENTRYP PFNGLGETUNSIGNEDBYTEI_VEXTPROC) (GLenum target, GLuint index, GLubyte* data); + typedef void (APIENTRYP PFNGLDELETEMEMORYOBJECTSEXTPROC) (GLsizei n, const GLuint* memoryObjects); + typedef GLboolean(APIENTRYP PFNGLISMEMORYOBJECTEXTPROC) (GLuint memoryObject); + typedef void (APIENTRYP PFNGLCREATEMEMORYOBJECTSEXTPROC) (GLsizei n, GLuint* memoryObjects); + typedef void (APIENTRYP PFNGLMEMORYOBJECTPARAMETERIVEXTPROC) (GLuint memoryObject, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLGETMEMORYOBJECTPARAMETERIVEXTPROC) (GLuint memoryObject, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLTEXSTORAGEMEM2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLTEXSTORAGEMEM2DMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLTEXSTORAGEMEM3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLTEXSTORAGEMEM3DMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLBUFFERSTORAGEMEMEXTPROC) (GLenum target, GLsizeiptr size, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM2DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM2DMULTISAMPLEEXTPROC) (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM3DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM3DMULTISAMPLEEXTPROC) (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEMEMEXTPROC) (GLuint buffer, GLsizeiptr size, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLTEXSTORAGEMEM1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM1DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGetUnsignedBytevEXT(GLenum pname, GLubyte* data); + GLAPI void APIENTRY glGetUnsignedBytei_vEXT(GLenum target, GLuint index, GLubyte* data); + GLAPI void APIENTRY glDeleteMemoryObjectsEXT(GLsizei n, const GLuint* memoryObjects); + GLAPI GLboolean APIENTRY glIsMemoryObjectEXT(GLuint memoryObject); + GLAPI void APIENTRY glCreateMemoryObjectsEXT(GLsizei n, GLuint* memoryObjects); + GLAPI void APIENTRY glMemoryObjectParameterivEXT(GLuint memoryObject, GLenum pname, const GLint* params); + GLAPI void APIENTRY glGetMemoryObjectParameterivEXT(GLuint memoryObject, GLenum pname, GLint* params); + GLAPI void APIENTRY glTexStorageMem2DEXT(GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glTexStorageMem2DMultisampleEXT(GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glTexStorageMem3DEXT(GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glTexStorageMem3DMultisampleEXT(GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glBufferStorageMemEXT(GLenum target, GLsizeiptr size, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glTextureStorageMem2DEXT(GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glTextureStorageMem2DMultisampleEXT(GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glTextureStorageMem3DEXT(GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glTextureStorageMem3DMultisampleEXT(GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glNamedBufferStorageMemEXT(GLuint buffer, GLsizeiptr size, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glTexStorageMem1DEXT(GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glTextureStorageMem1DEXT(GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset); +#endif +#endif /* GL_EXT_memory_object */ + +#ifndef GL_EXT_memory_object_fd +#define GL_EXT_memory_object_fd 1 +#define GL_HANDLE_TYPE_OPAQUE_FD_EXT 0x9586 + typedef void (APIENTRYP PFNGLIMPORTMEMORYFDEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, GLint fd); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glImportMemoryFdEXT(GLuint memory, GLuint64 size, GLenum handleType, GLint fd); +#endif +#endif /* GL_EXT_memory_object_fd */ + +#ifndef GL_EXT_memory_object_win32 +#define GL_EXT_memory_object_win32 1 +#define GL_HANDLE_TYPE_OPAQUE_WIN32_EXT 0x9587 +#define GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT 0x9588 +#define GL_DEVICE_LUID_EXT 0x9599 +#define GL_DEVICE_NODE_MASK_EXT 0x959A +#define GL_LUID_SIZE_EXT 8 +#define GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT 0x9589 +#define GL_HANDLE_TYPE_D3D12_RESOURCE_EXT 0x958A +#define GL_HANDLE_TYPE_D3D11_IMAGE_EXT 0x958B +#define GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT 0x958C + typedef void (APIENTRYP PFNGLIMPORTMEMORYWIN32HANDLEEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, void* handle); + typedef void (APIENTRYP PFNGLIMPORTMEMORYWIN32NAMEEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, const void* name); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glImportMemoryWin32HandleEXT(GLuint memory, GLuint64 size, GLenum handleType, void* handle); + GLAPI void APIENTRY glImportMemoryWin32NameEXT(GLuint memory, GLuint64 size, GLenum handleType, const void* name); +#endif +#endif /* GL_EXT_memory_object_win32 */ + +#ifndef GL_EXT_misc_attribute +#define GL_EXT_misc_attribute 1 +#endif /* GL_EXT_misc_attribute */ + +#ifndef GL_EXT_multi_draw_arrays +#define GL_EXT_multi_draw_arrays 1 + typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint* first, const GLsizei* count, GLsizei primcount); + typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei* count, GLenum type, const void* const* indices, GLsizei primcount); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMultiDrawArraysEXT(GLenum mode, const GLint* first, const GLsizei* count, GLsizei primcount); + GLAPI void APIENTRY glMultiDrawElementsEXT(GLenum mode, const GLsizei* count, GLenum type, const void* const* indices, GLsizei primcount); +#endif +#endif /* GL_EXT_multi_draw_arrays */ + +#ifndef GL_EXT_multisample +#define GL_EXT_multisample 1 +#define GL_MULTISAMPLE_EXT 0x809D +#define GL_SAMPLE_ALPHA_TO_MASK_EXT 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_EXT 0x809F +#define GL_SAMPLE_MASK_EXT 0x80A0 +#define GL_1PASS_EXT 0x80A1 +#define GL_2PASS_0_EXT 0x80A2 +#define GL_2PASS_1_EXT 0x80A3 +#define GL_4PASS_0_EXT 0x80A4 +#define GL_4PASS_1_EXT 0x80A5 +#define GL_4PASS_2_EXT 0x80A6 +#define GL_4PASS_3_EXT 0x80A7 +#define GL_SAMPLE_BUFFERS_EXT 0x80A8 +#define GL_SAMPLES_EXT 0x80A9 +#define GL_SAMPLE_MASK_VALUE_EXT 0x80AA +#define GL_SAMPLE_MASK_INVERT_EXT 0x80AB +#define GL_SAMPLE_PATTERN_EXT 0x80AC +#define GL_MULTISAMPLE_BIT_EXT 0x20000000 + typedef void (APIENTRYP PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert); + typedef void (APIENTRYP PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glSampleMaskEXT(GLclampf value, GLboolean invert); + GLAPI void APIENTRY glSamplePatternEXT(GLenum pattern); +#endif +#endif /* GL_EXT_multisample */ + +#ifndef GL_EXT_multiview_tessellation_geometry_shader +#define GL_EXT_multiview_tessellation_geometry_shader 1 +#endif /* GL_EXT_multiview_tessellation_geometry_shader */ + +#ifndef GL_EXT_multiview_texture_multisample +#define GL_EXT_multiview_texture_multisample 1 +#endif /* GL_EXT_multiview_texture_multisample */ + +#ifndef GL_EXT_multiview_timer_query +#define GL_EXT_multiview_timer_query 1 +#endif /* GL_EXT_multiview_timer_query */ + +#ifndef GL_EXT_packed_depth_stencil +#define GL_EXT_packed_depth_stencil 1 +#define GL_DEPTH_STENCIL_EXT 0x84F9 +#define GL_UNSIGNED_INT_24_8_EXT 0x84FA +#define GL_DEPTH24_STENCIL8_EXT 0x88F0 +#define GL_TEXTURE_STENCIL_SIZE_EXT 0x88F1 +#endif /* GL_EXT_packed_depth_stencil */ + +#ifndef GL_EXT_packed_float +#define GL_EXT_packed_float 1 +#define GL_R11F_G11F_B10F_EXT 0x8C3A +#define GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B +#define GL_RGBA_SIGNED_COMPONENTS_EXT 0x8C3C +#endif /* GL_EXT_packed_float */ + +#ifndef GL_EXT_packed_pixels +#define GL_EXT_packed_pixels 1 +#define GL_UNSIGNED_BYTE_3_3_2_EXT 0x8032 +#define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033 +#define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034 +#define GL_UNSIGNED_INT_8_8_8_8_EXT 0x8035 +#define GL_UNSIGNED_INT_10_10_10_2_EXT 0x8036 +#endif /* GL_EXT_packed_pixels */ + +#ifndef GL_EXT_paletted_texture +#define GL_EXT_paletted_texture 1 +#define GL_COLOR_INDEX1_EXT 0x80E2 +#define GL_COLOR_INDEX2_EXT 0x80E3 +#define GL_COLOR_INDEX4_EXT 0x80E4 +#define GL_COLOR_INDEX8_EXT 0x80E5 +#define GL_COLOR_INDEX12_EXT 0x80E6 +#define GL_COLOR_INDEX16_EXT 0x80E7 +#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED + typedef void (APIENTRYP PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void* table); + typedef void (APIENTRYP PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, void* data); + typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glColorTableEXT(GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void* table); + GLAPI void APIENTRY glGetColorTableEXT(GLenum target, GLenum format, GLenum type, void* data); + GLAPI void APIENTRY glGetColorTableParameterivEXT(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetColorTableParameterfvEXT(GLenum target, GLenum pname, GLfloat* params); +#endif +#endif /* GL_EXT_paletted_texture */ + +#ifndef GL_EXT_pixel_buffer_object +#define GL_EXT_pixel_buffer_object 1 +#define GL_PIXEL_PACK_BUFFER_EXT 0x88EB +#define GL_PIXEL_UNPACK_BUFFER_EXT 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING_EXT 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF +#endif /* GL_EXT_pixel_buffer_object */ + +#ifndef GL_EXT_pixel_transform +#define GL_EXT_pixel_transform 1 +#define GL_PIXEL_TRANSFORM_2D_EXT 0x8330 +#define GL_PIXEL_MAG_FILTER_EXT 0x8331 +#define GL_PIXEL_MIN_FILTER_EXT 0x8332 +#define GL_PIXEL_CUBIC_WEIGHT_EXT 0x8333 +#define GL_CUBIC_EXT 0x8334 +#define GL_AVERAGE_EXT 0x8335 +#define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336 +#define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337 +#define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT 0x8338 + typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPixelTransformParameteriEXT(GLenum target, GLenum pname, GLint param); + GLAPI void APIENTRY glPixelTransformParameterfEXT(GLenum target, GLenum pname, GLfloat param); + GLAPI void APIENTRY glPixelTransformParameterivEXT(GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glPixelTransformParameterfvEXT(GLenum target, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glGetPixelTransformParameterivEXT(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetPixelTransformParameterfvEXT(GLenum target, GLenum pname, GLfloat* params); +#endif +#endif /* GL_EXT_pixel_transform */ + +#ifndef GL_EXT_pixel_transform_color_table +#define GL_EXT_pixel_transform_color_table 1 +#endif /* GL_EXT_pixel_transform_color_table */ + +#ifndef GL_EXT_point_parameters +#define GL_EXT_point_parameters 1 +#define GL_POINT_SIZE_MIN_EXT 0x8126 +#define GL_POINT_SIZE_MAX_EXT 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128 +#define GL_DISTANCE_ATTENUATION_EXT 0x8129 + typedef void (APIENTRYP PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPointParameterfEXT(GLenum pname, GLfloat param); + GLAPI void APIENTRY glPointParameterfvEXT(GLenum pname, const GLfloat* params); +#endif +#endif /* GL_EXT_point_parameters */ + +#ifndef GL_EXT_polygon_offset +#define GL_EXT_polygon_offset 1 +#define GL_POLYGON_OFFSET_EXT 0x8037 +#define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038 +#define GL_POLYGON_OFFSET_BIAS_EXT 0x8039 + typedef void (APIENTRYP PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPolygonOffsetEXT(GLfloat factor, GLfloat bias); +#endif +#endif /* GL_EXT_polygon_offset */ + +#ifndef GL_EXT_polygon_offset_clamp +#define GL_EXT_polygon_offset_clamp 1 +#define GL_POLYGON_OFFSET_CLAMP_EXT 0x8E1B + typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPEXTPROC) (GLfloat factor, GLfloat units, GLfloat clamp); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPolygonOffsetClampEXT(GLfloat factor, GLfloat units, GLfloat clamp); +#endif +#endif /* GL_EXT_polygon_offset_clamp */ + +#ifndef GL_EXT_post_depth_coverage +#define GL_EXT_post_depth_coverage 1 +#endif /* GL_EXT_post_depth_coverage */ + +#ifndef GL_EXT_provoking_vertex +#define GL_EXT_provoking_vertex 1 +#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C +#define GL_FIRST_VERTEX_CONVENTION_EXT 0x8E4D +#define GL_LAST_VERTEX_CONVENTION_EXT 0x8E4E +#define GL_PROVOKING_VERTEX_EXT 0x8E4F + typedef void (APIENTRYP PFNGLPROVOKINGVERTEXEXTPROC) (GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glProvokingVertexEXT(GLenum mode); +#endif +#endif /* GL_EXT_provoking_vertex */ + +#ifndef GL_EXT_raster_multisample +#define GL_EXT_raster_multisample 1 +#define GL_RASTER_MULTISAMPLE_EXT 0x9327 +#define GL_RASTER_SAMPLES_EXT 0x9328 +#define GL_MAX_RASTER_SAMPLES_EXT 0x9329 +#define GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT 0x932A +#define GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT 0x932B +#define GL_EFFECTIVE_RASTER_SAMPLES_EXT 0x932C + typedef void (APIENTRYP PFNGLRASTERSAMPLESEXTPROC) (GLuint samples, GLboolean fixedsamplelocations); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glRasterSamplesEXT(GLuint samples, GLboolean fixedsamplelocations); +#endif +#endif /* GL_EXT_raster_multisample */ + +#ifndef GL_EXT_rescale_normal +#define GL_EXT_rescale_normal 1 +#define GL_RESCALE_NORMAL_EXT 0x803A +#endif /* GL_EXT_rescale_normal */ + +#ifndef GL_EXT_secondary_color +#define GL_EXT_secondary_color 1 +#define GL_COLOR_SUM_EXT 0x8458 +#define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459 +#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A +#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B +#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C +#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D +#define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort* v); + typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const void* pointer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glSecondaryColor3bEXT(GLbyte red, GLbyte green, GLbyte blue); + GLAPI void APIENTRY glSecondaryColor3bvEXT(const GLbyte* v); + GLAPI void APIENTRY glSecondaryColor3dEXT(GLdouble red, GLdouble green, GLdouble blue); + GLAPI void APIENTRY glSecondaryColor3dvEXT(const GLdouble* v); + GLAPI void APIENTRY glSecondaryColor3fEXT(GLfloat red, GLfloat green, GLfloat blue); + GLAPI void APIENTRY glSecondaryColor3fvEXT(const GLfloat* v); + GLAPI void APIENTRY glSecondaryColor3iEXT(GLint red, GLint green, GLint blue); + GLAPI void APIENTRY glSecondaryColor3ivEXT(const GLint* v); + GLAPI void APIENTRY glSecondaryColor3sEXT(GLshort red, GLshort green, GLshort blue); + GLAPI void APIENTRY glSecondaryColor3svEXT(const GLshort* v); + GLAPI void APIENTRY glSecondaryColor3ubEXT(GLubyte red, GLubyte green, GLubyte blue); + GLAPI void APIENTRY glSecondaryColor3ubvEXT(const GLubyte* v); + GLAPI void APIENTRY glSecondaryColor3uiEXT(GLuint red, GLuint green, GLuint blue); + GLAPI void APIENTRY glSecondaryColor3uivEXT(const GLuint* v); + GLAPI void APIENTRY glSecondaryColor3usEXT(GLushort red, GLushort green, GLushort blue); + GLAPI void APIENTRY glSecondaryColor3usvEXT(const GLushort* v); + GLAPI void APIENTRY glSecondaryColorPointerEXT(GLint size, GLenum type, GLsizei stride, const void* pointer); +#endif +#endif /* GL_EXT_secondary_color */ + +#ifndef GL_EXT_semaphore +#define GL_EXT_semaphore 1 +#define GL_LAYOUT_GENERAL_EXT 0x958D +#define GL_LAYOUT_COLOR_ATTACHMENT_EXT 0x958E +#define GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT 0x958F +#define GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT 0x9590 +#define GL_LAYOUT_SHADER_READ_ONLY_EXT 0x9591 +#define GL_LAYOUT_TRANSFER_SRC_EXT 0x9592 +#define GL_LAYOUT_TRANSFER_DST_EXT 0x9593 +#define GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT 0x9530 +#define GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT 0x9531 + typedef void (APIENTRYP PFNGLGENSEMAPHORESEXTPROC) (GLsizei n, GLuint* semaphores); + typedef void (APIENTRYP PFNGLDELETESEMAPHORESEXTPROC) (GLsizei n, const GLuint* semaphores); + typedef GLboolean(APIENTRYP PFNGLISSEMAPHOREEXTPROC) (GLuint semaphore); + typedef void (APIENTRYP PFNGLSEMAPHOREPARAMETERUI64VEXTPROC) (GLuint semaphore, GLenum pname, const GLuint64* params); + typedef void (APIENTRYP PFNGLGETSEMAPHOREPARAMETERUI64VEXTPROC) (GLuint semaphore, GLenum pname, GLuint64* params); + typedef void (APIENTRYP PFNGLWAITSEMAPHOREEXTPROC) (GLuint semaphore, GLuint numBufferBarriers, const GLuint* buffers, GLuint numTextureBarriers, const GLuint* textures, const GLenum* srcLayouts); + typedef void (APIENTRYP PFNGLSIGNALSEMAPHOREEXTPROC) (GLuint semaphore, GLuint numBufferBarriers, const GLuint* buffers, GLuint numTextureBarriers, const GLuint* textures, const GLenum* dstLayouts); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGenSemaphoresEXT(GLsizei n, GLuint* semaphores); + GLAPI void APIENTRY glDeleteSemaphoresEXT(GLsizei n, const GLuint* semaphores); + GLAPI GLboolean APIENTRY glIsSemaphoreEXT(GLuint semaphore); + GLAPI void APIENTRY glSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, const GLuint64* params); + GLAPI void APIENTRY glGetSemaphoreParameterui64vEXT(GLuint semaphore, GLenum pname, GLuint64* params); + GLAPI void APIENTRY glWaitSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GLuint* buffers, GLuint numTextureBarriers, const GLuint* textures, const GLenum* srcLayouts); + GLAPI void APIENTRY glSignalSemaphoreEXT(GLuint semaphore, GLuint numBufferBarriers, const GLuint* buffers, GLuint numTextureBarriers, const GLuint* textures, const GLenum* dstLayouts); +#endif +#endif /* GL_EXT_semaphore */ + +#ifndef GL_EXT_semaphore_fd +#define GL_EXT_semaphore_fd 1 + typedef void (APIENTRYP PFNGLIMPORTSEMAPHOREFDEXTPROC) (GLuint semaphore, GLenum handleType, GLint fd); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glImportSemaphoreFdEXT(GLuint semaphore, GLenum handleType, GLint fd); +#endif +#endif /* GL_EXT_semaphore_fd */ + +#ifndef GL_EXT_semaphore_win32 +#define GL_EXT_semaphore_win32 1 +#define GL_HANDLE_TYPE_D3D12_FENCE_EXT 0x9594 +#define GL_D3D12_FENCE_VALUE_EXT 0x9595 + typedef void (APIENTRYP PFNGLIMPORTSEMAPHOREWIN32HANDLEEXTPROC) (GLuint semaphore, GLenum handleType, void* handle); + typedef void (APIENTRYP PFNGLIMPORTSEMAPHOREWIN32NAMEEXTPROC) (GLuint semaphore, GLenum handleType, const void* name); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glImportSemaphoreWin32HandleEXT(GLuint semaphore, GLenum handleType, void* handle); + GLAPI void APIENTRY glImportSemaphoreWin32NameEXT(GLuint semaphore, GLenum handleType, const void* name); +#endif +#endif /* GL_EXT_semaphore_win32 */ + +#ifndef GL_EXT_separate_shader_objects +#define GL_EXT_separate_shader_objects 1 +#define GL_ACTIVE_PROGRAM_EXT 0x8B8D + typedef void (APIENTRYP PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program); + typedef void (APIENTRYP PFNGLACTIVEPROGRAMEXTPROC) (GLuint program); + typedef GLuint(APIENTRYP PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const GLchar* string); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glUseShaderProgramEXT(GLenum type, GLuint program); + GLAPI void APIENTRY glActiveProgramEXT(GLuint program); + GLAPI GLuint APIENTRY glCreateShaderProgramEXT(GLenum type, const GLchar* string); +#endif +#endif /* GL_EXT_separate_shader_objects */ + +#ifndef GL_EXT_separate_specular_color +#define GL_EXT_separate_specular_color 1 +#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8 +#define GL_SINGLE_COLOR_EXT 0x81F9 +#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA +#endif /* GL_EXT_separate_specular_color */ + +#ifndef GL_EXT_shader_framebuffer_fetch +#define GL_EXT_shader_framebuffer_fetch 1 +#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT 0x8A52 +#endif /* GL_EXT_shader_framebuffer_fetch */ + +#ifndef GL_EXT_shader_framebuffer_fetch_non_coherent +#define GL_EXT_shader_framebuffer_fetch_non_coherent 1 + typedef void (APIENTRYP PFNGLFRAMEBUFFERFETCHBARRIEREXTPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFramebufferFetchBarrierEXT(void); +#endif +#endif /* GL_EXT_shader_framebuffer_fetch_non_coherent */ + +#ifndef GL_EXT_shader_image_load_formatted +#define GL_EXT_shader_image_load_formatted 1 +#endif /* GL_EXT_shader_image_load_formatted */ + +#ifndef GL_EXT_shader_image_load_store +#define GL_EXT_shader_image_load_store 1 +#define GL_MAX_IMAGE_UNITS_EXT 0x8F38 +#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT 0x8F39 +#define GL_IMAGE_BINDING_NAME_EXT 0x8F3A +#define GL_IMAGE_BINDING_LEVEL_EXT 0x8F3B +#define GL_IMAGE_BINDING_LAYERED_EXT 0x8F3C +#define GL_IMAGE_BINDING_LAYER_EXT 0x8F3D +#define GL_IMAGE_BINDING_ACCESS_EXT 0x8F3E +#define GL_IMAGE_1D_EXT 0x904C +#define GL_IMAGE_2D_EXT 0x904D +#define GL_IMAGE_3D_EXT 0x904E +#define GL_IMAGE_2D_RECT_EXT 0x904F +#define GL_IMAGE_CUBE_EXT 0x9050 +#define GL_IMAGE_BUFFER_EXT 0x9051 +#define GL_IMAGE_1D_ARRAY_EXT 0x9052 +#define GL_IMAGE_2D_ARRAY_EXT 0x9053 +#define GL_IMAGE_CUBE_MAP_ARRAY_EXT 0x9054 +#define GL_IMAGE_2D_MULTISAMPLE_EXT 0x9055 +#define GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9056 +#define GL_INT_IMAGE_1D_EXT 0x9057 +#define GL_INT_IMAGE_2D_EXT 0x9058 +#define GL_INT_IMAGE_3D_EXT 0x9059 +#define GL_INT_IMAGE_2D_RECT_EXT 0x905A +#define GL_INT_IMAGE_CUBE_EXT 0x905B +#define GL_INT_IMAGE_BUFFER_EXT 0x905C +#define GL_INT_IMAGE_1D_ARRAY_EXT 0x905D +#define GL_INT_IMAGE_2D_ARRAY_EXT 0x905E +#define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x905F +#define GL_INT_IMAGE_2D_MULTISAMPLE_EXT 0x9060 +#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9061 +#define GL_UNSIGNED_INT_IMAGE_1D_EXT 0x9062 +#define GL_UNSIGNED_INT_IMAGE_2D_EXT 0x9063 +#define GL_UNSIGNED_INT_IMAGE_3D_EXT 0x9064 +#define GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT 0x9065 +#define GL_UNSIGNED_INT_IMAGE_CUBE_EXT 0x9066 +#define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT 0x9067 +#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT 0x9068 +#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT 0x9069 +#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A +#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT 0x906B +#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x906C +#define GL_MAX_IMAGE_SAMPLES_EXT 0x906D +#define GL_IMAGE_BINDING_FORMAT_EXT 0x906E +#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT 0x00000001 +#define GL_ELEMENT_ARRAY_BARRIER_BIT_EXT 0x00000002 +#define GL_UNIFORM_BARRIER_BIT_EXT 0x00000004 +#define GL_TEXTURE_FETCH_BARRIER_BIT_EXT 0x00000008 +#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT 0x00000020 +#define GL_COMMAND_BARRIER_BIT_EXT 0x00000040 +#define GL_PIXEL_BUFFER_BARRIER_BIT_EXT 0x00000080 +#define GL_TEXTURE_UPDATE_BARRIER_BIT_EXT 0x00000100 +#define GL_BUFFER_UPDATE_BARRIER_BIT_EXT 0x00000200 +#define GL_FRAMEBUFFER_BARRIER_BIT_EXT 0x00000400 +#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT 0x00000800 +#define GL_ATOMIC_COUNTER_BARRIER_BIT_EXT 0x00001000 +#define GL_ALL_BARRIER_BITS_EXT 0xFFFFFFFF + typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREEXTPROC) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format); + typedef void (APIENTRYP PFNGLMEMORYBARRIEREXTPROC) (GLbitfield barriers); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBindImageTextureEXT(GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format); + GLAPI void APIENTRY glMemoryBarrierEXT(GLbitfield barriers); +#endif +#endif /* GL_EXT_shader_image_load_store */ + +#ifndef GL_EXT_shader_integer_mix +#define GL_EXT_shader_integer_mix 1 +#endif /* GL_EXT_shader_integer_mix */ + +#ifndef GL_EXT_shader_samples_identical +#define GL_EXT_shader_samples_identical 1 +#endif /* GL_EXT_shader_samples_identical */ + +#ifndef GL_EXT_shadow_funcs +#define GL_EXT_shadow_funcs 1 +#endif /* GL_EXT_shadow_funcs */ + +#ifndef GL_EXT_shared_texture_palette +#define GL_EXT_shared_texture_palette 1 +#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB +#endif /* GL_EXT_shared_texture_palette */ + +#ifndef GL_EXT_sparse_texture2 +#define GL_EXT_sparse_texture2 1 +#endif /* GL_EXT_sparse_texture2 */ + +#ifndef GL_EXT_stencil_clear_tag +#define GL_EXT_stencil_clear_tag 1 +#define GL_STENCIL_TAG_BITS_EXT 0x88F2 +#define GL_STENCIL_CLEAR_TAG_VALUE_EXT 0x88F3 + typedef void (APIENTRYP PFNGLSTENCILCLEARTAGEXTPROC) (GLsizei stencilTagBits, GLuint stencilClearTag); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glStencilClearTagEXT(GLsizei stencilTagBits, GLuint stencilClearTag); +#endif +#endif /* GL_EXT_stencil_clear_tag */ + +#ifndef GL_EXT_stencil_two_side +#define GL_EXT_stencil_two_side 1 +#define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910 +#define GL_ACTIVE_STENCIL_FACE_EXT 0x8911 + typedef void (APIENTRYP PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glActiveStencilFaceEXT(GLenum face); +#endif +#endif /* GL_EXT_stencil_two_side */ + +#ifndef GL_EXT_stencil_wrap +#define GL_EXT_stencil_wrap 1 +#define GL_INCR_WRAP_EXT 0x8507 +#define GL_DECR_WRAP_EXT 0x8508 +#endif /* GL_EXT_stencil_wrap */ + +#ifndef GL_EXT_subtexture +#define GL_EXT_subtexture 1 + typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTexSubImage1DEXT(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glTexSubImage2DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); +#endif +#endif /* GL_EXT_subtexture */ + +#ifndef GL_EXT_texture +#define GL_EXT_texture 1 +#define GL_ALPHA4_EXT 0x803B +#define GL_ALPHA8_EXT 0x803C +#define GL_ALPHA12_EXT 0x803D +#define GL_ALPHA16_EXT 0x803E +#define GL_LUMINANCE4_EXT 0x803F +#define GL_LUMINANCE8_EXT 0x8040 +#define GL_LUMINANCE12_EXT 0x8041 +#define GL_LUMINANCE16_EXT 0x8042 +#define GL_LUMINANCE4_ALPHA4_EXT 0x8043 +#define GL_LUMINANCE6_ALPHA2_EXT 0x8044 +#define GL_LUMINANCE8_ALPHA8_EXT 0x8045 +#define GL_LUMINANCE12_ALPHA4_EXT 0x8046 +#define GL_LUMINANCE12_ALPHA12_EXT 0x8047 +#define GL_LUMINANCE16_ALPHA16_EXT 0x8048 +#define GL_INTENSITY_EXT 0x8049 +#define GL_INTENSITY4_EXT 0x804A +#define GL_INTENSITY8_EXT 0x804B +#define GL_INTENSITY12_EXT 0x804C +#define GL_INTENSITY16_EXT 0x804D +#define GL_RGB2_EXT 0x804E +#define GL_RGB4_EXT 0x804F +#define GL_RGB5_EXT 0x8050 +#define GL_RGB8_EXT 0x8051 +#define GL_RGB10_EXT 0x8052 +#define GL_RGB12_EXT 0x8053 +#define GL_RGB16_EXT 0x8054 +#define GL_RGBA2_EXT 0x8055 +#define GL_RGBA4_EXT 0x8056 +#define GL_RGB5_A1_EXT 0x8057 +#define GL_RGBA8_EXT 0x8058 +#define GL_RGB10_A2_EXT 0x8059 +#define GL_RGBA12_EXT 0x805A +#define GL_RGBA16_EXT 0x805B +#define GL_TEXTURE_RED_SIZE_EXT 0x805C +#define GL_TEXTURE_GREEN_SIZE_EXT 0x805D +#define GL_TEXTURE_BLUE_SIZE_EXT 0x805E +#define GL_TEXTURE_ALPHA_SIZE_EXT 0x805F +#define GL_TEXTURE_LUMINANCE_SIZE_EXT 0x8060 +#define GL_TEXTURE_INTENSITY_SIZE_EXT 0x8061 +#define GL_REPLACE_EXT 0x8062 +#define GL_PROXY_TEXTURE_1D_EXT 0x8063 +#define GL_PROXY_TEXTURE_2D_EXT 0x8064 +#define GL_TEXTURE_TOO_LARGE_EXT 0x8065 +#endif /* GL_EXT_texture */ + +#ifndef GL_EXT_texture3D +#define GL_EXT_texture3D 1 +#define GL_PACK_SKIP_IMAGES_EXT 0x806B +#define GL_PACK_IMAGE_HEIGHT_EXT 0x806C +#define GL_UNPACK_SKIP_IMAGES_EXT 0x806D +#define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E +#define GL_TEXTURE_3D_EXT 0x806F +#define GL_PROXY_TEXTURE_3D_EXT 0x8070 +#define GL_TEXTURE_DEPTH_EXT 0x8071 +#define GL_TEXTURE_WRAP_R_EXT 0x8072 +#define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073 + typedef void (APIENTRYP PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTexImage3DEXT(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glTexSubImage3DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); +#endif +#endif /* GL_EXT_texture3D */ + +#ifndef GL_EXT_texture_array +#define GL_EXT_texture_array 1 +#define GL_TEXTURE_1D_ARRAY_EXT 0x8C18 +#define GL_PROXY_TEXTURE_1D_ARRAY_EXT 0x8C19 +#define GL_TEXTURE_2D_ARRAY_EXT 0x8C1A +#define GL_PROXY_TEXTURE_2D_ARRAY_EXT 0x8C1B +#define GL_TEXTURE_BINDING_1D_ARRAY_EXT 0x8C1C +#define GL_TEXTURE_BINDING_2D_ARRAY_EXT 0x8C1D +#define GL_MAX_ARRAY_TEXTURE_LAYERS_EXT 0x88FF +#define GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFramebufferTextureLayerEXT(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +#endif +#endif /* GL_EXT_texture_array */ + +#ifndef GL_EXT_texture_buffer_object +#define GL_EXT_texture_buffer_object 1 +#define GL_TEXTURE_BUFFER_EXT 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE_EXT 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER_EXT 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D +#define GL_TEXTURE_BUFFER_FORMAT_EXT 0x8C2E + typedef void (APIENTRYP PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTexBufferEXT(GLenum target, GLenum internalformat, GLuint buffer); +#endif +#endif /* GL_EXT_texture_buffer_object */ + +#ifndef GL_EXT_texture_compression_latc +#define GL_EXT_texture_compression_latc 1 +#define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70 +#define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71 +#define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72 +#define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73 +#endif /* GL_EXT_texture_compression_latc */ + +#ifndef GL_EXT_texture_compression_rgtc +#define GL_EXT_texture_compression_rgtc 1 +#define GL_COMPRESSED_RED_RGTC1_EXT 0x8DBB +#define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC +#define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD +#define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE +#endif /* GL_EXT_texture_compression_rgtc */ + +#ifndef GL_EXT_texture_compression_s3tc +#define GL_EXT_texture_compression_s3tc 1 +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 +#endif /* GL_EXT_texture_compression_s3tc */ + +#ifndef GL_EXT_texture_cube_map +#define GL_EXT_texture_cube_map 1 +#define GL_NORMAL_MAP_EXT 0x8511 +#define GL_REFLECTION_MAP_EXT 0x8512 +#define GL_TEXTURE_CUBE_MAP_EXT 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP_EXT 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP_EXT 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT 0x851C +#endif /* GL_EXT_texture_cube_map */ + +#ifndef GL_EXT_texture_env_add +#define GL_EXT_texture_env_add 1 +#endif /* GL_EXT_texture_env_add */ + +#ifndef GL_EXT_texture_env_combine +#define GL_EXT_texture_env_combine 1 +#define GL_COMBINE_EXT 0x8570 +#define GL_COMBINE_RGB_EXT 0x8571 +#define GL_COMBINE_ALPHA_EXT 0x8572 +#define GL_RGB_SCALE_EXT 0x8573 +#define GL_ADD_SIGNED_EXT 0x8574 +#define GL_INTERPOLATE_EXT 0x8575 +#define GL_CONSTANT_EXT 0x8576 +#define GL_PRIMARY_COLOR_EXT 0x8577 +#define GL_PREVIOUS_EXT 0x8578 +#define GL_SOURCE0_RGB_EXT 0x8580 +#define GL_SOURCE1_RGB_EXT 0x8581 +#define GL_SOURCE2_RGB_EXT 0x8582 +#define GL_SOURCE0_ALPHA_EXT 0x8588 +#define GL_SOURCE1_ALPHA_EXT 0x8589 +#define GL_SOURCE2_ALPHA_EXT 0x858A +#define GL_OPERAND0_RGB_EXT 0x8590 +#define GL_OPERAND1_RGB_EXT 0x8591 +#define GL_OPERAND2_RGB_EXT 0x8592 +#define GL_OPERAND0_ALPHA_EXT 0x8598 +#define GL_OPERAND1_ALPHA_EXT 0x8599 +#define GL_OPERAND2_ALPHA_EXT 0x859A +#endif /* GL_EXT_texture_env_combine */ + +#ifndef GL_EXT_texture_env_dot3 +#define GL_EXT_texture_env_dot3 1 +#define GL_DOT3_RGB_EXT 0x8740 +#define GL_DOT3_RGBA_EXT 0x8741 +#endif /* GL_EXT_texture_env_dot3 */ + +#ifndef GL_EXT_texture_filter_anisotropic +#define GL_EXT_texture_filter_anisotropic 1 +#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE +#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF +#endif /* GL_EXT_texture_filter_anisotropic */ + +#ifndef GL_EXT_texture_filter_minmax +#define GL_EXT_texture_filter_minmax 1 +#define GL_TEXTURE_REDUCTION_MODE_EXT 0x9366 +#define GL_WEIGHTED_AVERAGE_EXT 0x9367 +#endif /* GL_EXT_texture_filter_minmax */ + +#ifndef GL_EXT_texture_integer +#define GL_EXT_texture_integer 1 +#define GL_RGBA32UI_EXT 0x8D70 +#define GL_RGB32UI_EXT 0x8D71 +#define GL_ALPHA32UI_EXT 0x8D72 +#define GL_INTENSITY32UI_EXT 0x8D73 +#define GL_LUMINANCE32UI_EXT 0x8D74 +#define GL_LUMINANCE_ALPHA32UI_EXT 0x8D75 +#define GL_RGBA16UI_EXT 0x8D76 +#define GL_RGB16UI_EXT 0x8D77 +#define GL_ALPHA16UI_EXT 0x8D78 +#define GL_INTENSITY16UI_EXT 0x8D79 +#define GL_LUMINANCE16UI_EXT 0x8D7A +#define GL_LUMINANCE_ALPHA16UI_EXT 0x8D7B +#define GL_RGBA8UI_EXT 0x8D7C +#define GL_RGB8UI_EXT 0x8D7D +#define GL_ALPHA8UI_EXT 0x8D7E +#define GL_INTENSITY8UI_EXT 0x8D7F +#define GL_LUMINANCE8UI_EXT 0x8D80 +#define GL_LUMINANCE_ALPHA8UI_EXT 0x8D81 +#define GL_RGBA32I_EXT 0x8D82 +#define GL_RGB32I_EXT 0x8D83 +#define GL_ALPHA32I_EXT 0x8D84 +#define GL_INTENSITY32I_EXT 0x8D85 +#define GL_LUMINANCE32I_EXT 0x8D86 +#define GL_LUMINANCE_ALPHA32I_EXT 0x8D87 +#define GL_RGBA16I_EXT 0x8D88 +#define GL_RGB16I_EXT 0x8D89 +#define GL_ALPHA16I_EXT 0x8D8A +#define GL_INTENSITY16I_EXT 0x8D8B +#define GL_LUMINANCE16I_EXT 0x8D8C +#define GL_LUMINANCE_ALPHA16I_EXT 0x8D8D +#define GL_RGBA8I_EXT 0x8D8E +#define GL_RGB8I_EXT 0x8D8F +#define GL_ALPHA8I_EXT 0x8D90 +#define GL_INTENSITY8I_EXT 0x8D91 +#define GL_LUMINANCE8I_EXT 0x8D92 +#define GL_LUMINANCE_ALPHA8I_EXT 0x8D93 +#define GL_RED_INTEGER_EXT 0x8D94 +#define GL_GREEN_INTEGER_EXT 0x8D95 +#define GL_BLUE_INTEGER_EXT 0x8D96 +#define GL_ALPHA_INTEGER_EXT 0x8D97 +#define GL_RGB_INTEGER_EXT 0x8D98 +#define GL_RGBA_INTEGER_EXT 0x8D99 +#define GL_BGR_INTEGER_EXT 0x8D9A +#define GL_BGRA_INTEGER_EXT 0x8D9B +#define GL_LUMINANCE_INTEGER_EXT 0x8D9C +#define GL_LUMINANCE_ALPHA_INTEGER_EXT 0x8D9D +#define GL_RGBA_INTEGER_MODE_EXT 0x8D9E + typedef void (APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint* params); + typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint* params); + typedef void (APIENTRYP PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha); + typedef void (APIENTRYP PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTexParameterIivEXT(GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glTexParameterIuivEXT(GLenum target, GLenum pname, const GLuint* params); + GLAPI void APIENTRY glGetTexParameterIivEXT(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetTexParameterIuivEXT(GLenum target, GLenum pname, GLuint* params); + GLAPI void APIENTRY glClearColorIiEXT(GLint red, GLint green, GLint blue, GLint alpha); + GLAPI void APIENTRY glClearColorIuiEXT(GLuint red, GLuint green, GLuint blue, GLuint alpha); +#endif +#endif /* GL_EXT_texture_integer */ + +#ifndef GL_EXT_texture_lod_bias +#define GL_EXT_texture_lod_bias 1 +#define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD +#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500 +#define GL_TEXTURE_LOD_BIAS_EXT 0x8501 +#endif /* GL_EXT_texture_lod_bias */ + +#ifndef GL_EXT_texture_mirror_clamp +#define GL_EXT_texture_mirror_clamp 1 +#define GL_MIRROR_CLAMP_EXT 0x8742 +#define GL_MIRROR_CLAMP_TO_EDGE_EXT 0x8743 +#define GL_MIRROR_CLAMP_TO_BORDER_EXT 0x8912 +#endif /* GL_EXT_texture_mirror_clamp */ + +#ifndef GL_EXT_texture_object +#define GL_EXT_texture_object 1 +#define GL_TEXTURE_PRIORITY_EXT 0x8066 +#define GL_TEXTURE_RESIDENT_EXT 0x8067 +#define GL_TEXTURE_1D_BINDING_EXT 0x8068 +#define GL_TEXTURE_2D_BINDING_EXT 0x8069 +#define GL_TEXTURE_3D_BINDING_EXT 0x806A + typedef GLboolean(APIENTRYP PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint* textures, GLboolean* residences); + typedef void (APIENTRYP PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture); + typedef void (APIENTRYP PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint* textures); + typedef void (APIENTRYP PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint* textures); + typedef GLboolean(APIENTRYP PFNGLISTEXTUREEXTPROC) (GLuint texture); + typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint* textures, const GLclampf* priorities); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLboolean APIENTRY glAreTexturesResidentEXT(GLsizei n, const GLuint* textures, GLboolean* residences); + GLAPI void APIENTRY glBindTextureEXT(GLenum target, GLuint texture); + GLAPI void APIENTRY glDeleteTexturesEXT(GLsizei n, const GLuint* textures); + GLAPI void APIENTRY glGenTexturesEXT(GLsizei n, GLuint* textures); + GLAPI GLboolean APIENTRY glIsTextureEXT(GLuint texture); + GLAPI void APIENTRY glPrioritizeTexturesEXT(GLsizei n, const GLuint* textures, const GLclampf* priorities); +#endif +#endif /* GL_EXT_texture_object */ + +#ifndef GL_EXT_texture_perturb_normal +#define GL_EXT_texture_perturb_normal 1 +#define GL_PERTURB_EXT 0x85AE +#define GL_TEXTURE_NORMAL_EXT 0x85AF + typedef void (APIENTRYP PFNGLTEXTURENORMALEXTPROC) (GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTextureNormalEXT(GLenum mode); +#endif +#endif /* GL_EXT_texture_perturb_normal */ + +#ifndef GL_EXT_texture_sRGB +#define GL_EXT_texture_sRGB 1 +#define GL_SRGB_EXT 0x8C40 +#define GL_SRGB8_EXT 0x8C41 +#define GL_SRGB_ALPHA_EXT 0x8C42 +#define GL_SRGB8_ALPHA8_EXT 0x8C43 +#define GL_SLUMINANCE_ALPHA_EXT 0x8C44 +#define GL_SLUMINANCE8_ALPHA8_EXT 0x8C45 +#define GL_SLUMINANCE_EXT 0x8C46 +#define GL_SLUMINANCE8_EXT 0x8C47 +#define GL_COMPRESSED_SRGB_EXT 0x8C48 +#define GL_COMPRESSED_SRGB_ALPHA_EXT 0x8C49 +#define GL_COMPRESSED_SLUMINANCE_EXT 0x8C4A +#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B +#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F +#endif /* GL_EXT_texture_sRGB */ + +#ifndef GL_EXT_texture_sRGB_R8 +#define GL_EXT_texture_sRGB_R8 1 +#define GL_SR8_EXT 0x8FBD +#endif /* GL_EXT_texture_sRGB_R8 */ + +#ifndef GL_EXT_texture_sRGB_RG8 +#define GL_EXT_texture_sRGB_RG8 1 +#define GL_SRG8_EXT 0x8FBE +#endif /* GL_EXT_texture_sRGB_RG8 */ + +#ifndef GL_EXT_texture_sRGB_decode +#define GL_EXT_texture_sRGB_decode 1 +#define GL_TEXTURE_SRGB_DECODE_EXT 0x8A48 +#define GL_DECODE_EXT 0x8A49 +#define GL_SKIP_DECODE_EXT 0x8A4A +#endif /* GL_EXT_texture_sRGB_decode */ + +#ifndef GL_EXT_texture_shadow_lod +#define GL_EXT_texture_shadow_lod 1 +#endif /* GL_EXT_texture_shadow_lod */ + +#ifndef GL_EXT_texture_shared_exponent +#define GL_EXT_texture_shared_exponent 1 +#define GL_RGB9_E5_EXT 0x8C3D +#define GL_UNSIGNED_INT_5_9_9_9_REV_EXT 0x8C3E +#define GL_TEXTURE_SHARED_SIZE_EXT 0x8C3F +#endif /* GL_EXT_texture_shared_exponent */ + +#ifndef GL_EXT_texture_snorm +#define GL_EXT_texture_snorm 1 +#define GL_ALPHA_SNORM 0x9010 +#define GL_LUMINANCE_SNORM 0x9011 +#define GL_LUMINANCE_ALPHA_SNORM 0x9012 +#define GL_INTENSITY_SNORM 0x9013 +#define GL_ALPHA8_SNORM 0x9014 +#define GL_LUMINANCE8_SNORM 0x9015 +#define GL_LUMINANCE8_ALPHA8_SNORM 0x9016 +#define GL_INTENSITY8_SNORM 0x9017 +#define GL_ALPHA16_SNORM 0x9018 +#define GL_LUMINANCE16_SNORM 0x9019 +#define GL_LUMINANCE16_ALPHA16_SNORM 0x901A +#define GL_INTENSITY16_SNORM 0x901B +#define GL_RED_SNORM 0x8F90 +#define GL_RG_SNORM 0x8F91 +#define GL_RGB_SNORM 0x8F92 +#define GL_RGBA_SNORM 0x8F93 +#endif /* GL_EXT_texture_snorm */ + +#ifndef GL_EXT_texture_storage +#define GL_EXT_texture_storage 1 +#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F +#define GL_RGBA32F_EXT 0x8814 +#define GL_RGB32F_EXT 0x8815 +#define GL_ALPHA32F_EXT 0x8816 +#define GL_LUMINANCE32F_EXT 0x8818 +#define GL_LUMINANCE_ALPHA32F_EXT 0x8819 +#define GL_RGBA16F_EXT 0x881A +#define GL_RGB16F_EXT 0x881B +#define GL_ALPHA16F_EXT 0x881C +#define GL_LUMINANCE16F_EXT 0x881E +#define GL_LUMINANCE_ALPHA16F_EXT 0x881F +#define GL_BGRA8_EXT 0x93A1 +#define GL_R8_EXT 0x8229 +#define GL_RG8_EXT 0x822B +#define GL_R32F_EXT 0x822E +#define GL_RG32F_EXT 0x8230 +#define GL_R16F_EXT 0x822D +#define GL_RG16F_EXT 0x822F + typedef void (APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); + typedef void (APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTexStorage1DEXT(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); + GLAPI void APIENTRY glTexStorage2DEXT(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); + GLAPI void APIENTRY glTexStorage3DEXT(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +#endif +#endif /* GL_EXT_texture_storage */ + +#ifndef GL_EXT_texture_swizzle +#define GL_EXT_texture_swizzle 1 +#define GL_TEXTURE_SWIZZLE_R_EXT 0x8E42 +#define GL_TEXTURE_SWIZZLE_G_EXT 0x8E43 +#define GL_TEXTURE_SWIZZLE_B_EXT 0x8E44 +#define GL_TEXTURE_SWIZZLE_A_EXT 0x8E45 +#define GL_TEXTURE_SWIZZLE_RGBA_EXT 0x8E46 +#endif /* GL_EXT_texture_swizzle */ + +#ifndef GL_EXT_timer_query +#define GL_EXT_timer_query 1 +#define GL_TIME_ELAPSED_EXT 0x88BF + typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64* params); + typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGetQueryObjecti64vEXT(GLuint id, GLenum pname, GLint64* params); + GLAPI void APIENTRY glGetQueryObjectui64vEXT(GLuint id, GLenum pname, GLuint64* params); +#endif +#endif /* GL_EXT_timer_query */ + +#ifndef GL_EXT_transform_feedback +#define GL_EXT_transform_feedback 1 +#define GL_TRANSFORM_FEEDBACK_BUFFER_EXT 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84 +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85 +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F +#define GL_INTERLEAVED_ATTRIBS_EXT 0x8C8C +#define GL_SEPARATE_ATTRIBS_EXT 0x8C8D +#define GL_PRIMITIVES_GENERATED_EXT 0x8C87 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT 0x8C88 +#define GL_RASTERIZER_DISCARD_EXT 0x8C89 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80 +#define GL_TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83 +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F +#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76 + typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKEXTPROC) (GLenum primitiveMode); + typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKEXTPROC) (void); + typedef void (APIENTRYP PFNGLBINDBUFFERRANGEEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); + typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); + typedef void (APIENTRYP PFNGLBINDBUFFERBASEEXTPROC) (GLenum target, GLuint index, GLuint buffer); + typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const GLchar* const* varyings, GLenum bufferMode); + typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBeginTransformFeedbackEXT(GLenum primitiveMode); + GLAPI void APIENTRY glEndTransformFeedbackEXT(void); + GLAPI void APIENTRY glBindBufferRangeEXT(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); + GLAPI void APIENTRY glBindBufferOffsetEXT(GLenum target, GLuint index, GLuint buffer, GLintptr offset); + GLAPI void APIENTRY glBindBufferBaseEXT(GLenum target, GLuint index, GLuint buffer); + GLAPI void APIENTRY glTransformFeedbackVaryingsEXT(GLuint program, GLsizei count, const GLchar* const* varyings, GLenum bufferMode); + GLAPI void APIENTRY glGetTransformFeedbackVaryingEXT(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name); +#endif +#endif /* GL_EXT_transform_feedback */ + +#ifndef GL_EXT_vertex_array +#define GL_EXT_vertex_array 1 +#define GL_VERTEX_ARRAY_EXT 0x8074 +#define GL_NORMAL_ARRAY_EXT 0x8075 +#define GL_COLOR_ARRAY_EXT 0x8076 +#define GL_INDEX_ARRAY_EXT 0x8077 +#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 +#define GL_EDGE_FLAG_ARRAY_EXT 0x8079 +#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A +#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B +#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C +#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D +#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E +#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F +#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080 +#define GL_COLOR_ARRAY_SIZE_EXT 0x8081 +#define GL_COLOR_ARRAY_TYPE_EXT 0x8082 +#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083 +#define GL_COLOR_ARRAY_COUNT_EXT 0x8084 +#define GL_INDEX_ARRAY_TYPE_EXT 0x8085 +#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086 +#define GL_INDEX_ARRAY_COUNT_EXT 0x8087 +#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088 +#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089 +#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A +#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B +#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C +#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D +#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E +#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F +#define GL_COLOR_ARRAY_POINTER_EXT 0x8090 +#define GL_INDEX_ARRAY_POINTER_EXT 0x8091 +#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092 +#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093 + typedef void (APIENTRYP PFNGLARRAYELEMENTEXTPROC) (GLint i); + typedef void (APIENTRYP PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); + typedef void (APIENTRYP PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count); + typedef void (APIENTRYP PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean* pointer); + typedef void (APIENTRYP PFNGLGETPOINTERVEXTPROC) (GLenum pname, void** params); + typedef void (APIENTRYP PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void* pointer); + typedef void (APIENTRYP PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void* pointer); + typedef void (APIENTRYP PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); + typedef void (APIENTRYP PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glArrayElementEXT(GLint i); + GLAPI void APIENTRY glColorPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); + GLAPI void APIENTRY glDrawArraysEXT(GLenum mode, GLint first, GLsizei count); + GLAPI void APIENTRY glEdgeFlagPointerEXT(GLsizei stride, GLsizei count, const GLboolean* pointer); + GLAPI void APIENTRY glGetPointervEXT(GLenum pname, void** params); + GLAPI void APIENTRY glIndexPointerEXT(GLenum type, GLsizei stride, GLsizei count, const void* pointer); + GLAPI void APIENTRY glNormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, const void* pointer); + GLAPI void APIENTRY glTexCoordPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); + GLAPI void APIENTRY glVertexPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); +#endif +#endif /* GL_EXT_vertex_array */ + +#ifndef GL_EXT_vertex_array_bgra +#define GL_EXT_vertex_array_bgra 1 +#endif /* GL_EXT_vertex_array_bgra */ + +#ifndef GL_EXT_vertex_attrib_64bit +#define GL_EXT_vertex_attrib_64bit 1 +#define GL_DOUBLE_VEC2_EXT 0x8FFC +#define GL_DOUBLE_VEC3_EXT 0x8FFD +#define GL_DOUBLE_VEC4_EXT 0x8FFE +#define GL_DOUBLE_MAT2_EXT 0x8F46 +#define GL_DOUBLE_MAT3_EXT 0x8F47 +#define GL_DOUBLE_MAT4_EXT 0x8F48 +#define GL_DOUBLE_MAT2x3_EXT 0x8F49 +#define GL_DOUBLE_MAT2x4_EXT 0x8F4A +#define GL_DOUBLE_MAT3x2_EXT 0x8F4B +#define GL_DOUBLE_MAT3x4_EXT 0x8F4C +#define GL_DOUBLE_MAT4x2_EXT 0x8F4D +#define GL_DOUBLE_MAT4x3_EXT 0x8F4E + typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DEXTPROC) (GLuint index, GLdouble x); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DEXTPROC) (GLuint index, GLdouble x, GLdouble y); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVEXTPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVEXTPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVEXTPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVEXTPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVEXTPROC) (GLuint index, GLenum pname, GLdouble* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVertexAttribL1dEXT(GLuint index, GLdouble x); + GLAPI void APIENTRY glVertexAttribL2dEXT(GLuint index, GLdouble x, GLdouble y); + GLAPI void APIENTRY glVertexAttribL3dEXT(GLuint index, GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glVertexAttribL4dEXT(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glVertexAttribL1dvEXT(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribL2dvEXT(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribL3dvEXT(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribL4dvEXT(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribLPointerEXT(GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); + GLAPI void APIENTRY glGetVertexAttribLdvEXT(GLuint index, GLenum pname, GLdouble* params); +#endif +#endif /* GL_EXT_vertex_attrib_64bit */ + +#ifndef GL_EXT_vertex_shader +#define GL_EXT_vertex_shader 1 +#define GL_VERTEX_SHADER_EXT 0x8780 +#define GL_VERTEX_SHADER_BINDING_EXT 0x8781 +#define GL_OP_INDEX_EXT 0x8782 +#define GL_OP_NEGATE_EXT 0x8783 +#define GL_OP_DOT3_EXT 0x8784 +#define GL_OP_DOT4_EXT 0x8785 +#define GL_OP_MUL_EXT 0x8786 +#define GL_OP_ADD_EXT 0x8787 +#define GL_OP_MADD_EXT 0x8788 +#define GL_OP_FRAC_EXT 0x8789 +#define GL_OP_MAX_EXT 0x878A +#define GL_OP_MIN_EXT 0x878B +#define GL_OP_SET_GE_EXT 0x878C +#define GL_OP_SET_LT_EXT 0x878D +#define GL_OP_CLAMP_EXT 0x878E +#define GL_OP_FLOOR_EXT 0x878F +#define GL_OP_ROUND_EXT 0x8790 +#define GL_OP_EXP_BASE_2_EXT 0x8791 +#define GL_OP_LOG_BASE_2_EXT 0x8792 +#define GL_OP_POWER_EXT 0x8793 +#define GL_OP_RECIP_EXT 0x8794 +#define GL_OP_RECIP_SQRT_EXT 0x8795 +#define GL_OP_SUB_EXT 0x8796 +#define GL_OP_CROSS_PRODUCT_EXT 0x8797 +#define GL_OP_MULTIPLY_MATRIX_EXT 0x8798 +#define GL_OP_MOV_EXT 0x8799 +#define GL_OUTPUT_VERTEX_EXT 0x879A +#define GL_OUTPUT_COLOR0_EXT 0x879B +#define GL_OUTPUT_COLOR1_EXT 0x879C +#define GL_OUTPUT_TEXTURE_COORD0_EXT 0x879D +#define GL_OUTPUT_TEXTURE_COORD1_EXT 0x879E +#define GL_OUTPUT_TEXTURE_COORD2_EXT 0x879F +#define GL_OUTPUT_TEXTURE_COORD3_EXT 0x87A0 +#define GL_OUTPUT_TEXTURE_COORD4_EXT 0x87A1 +#define GL_OUTPUT_TEXTURE_COORD5_EXT 0x87A2 +#define GL_OUTPUT_TEXTURE_COORD6_EXT 0x87A3 +#define GL_OUTPUT_TEXTURE_COORD7_EXT 0x87A4 +#define GL_OUTPUT_TEXTURE_COORD8_EXT 0x87A5 +#define GL_OUTPUT_TEXTURE_COORD9_EXT 0x87A6 +#define GL_OUTPUT_TEXTURE_COORD10_EXT 0x87A7 +#define GL_OUTPUT_TEXTURE_COORD11_EXT 0x87A8 +#define GL_OUTPUT_TEXTURE_COORD12_EXT 0x87A9 +#define GL_OUTPUT_TEXTURE_COORD13_EXT 0x87AA +#define GL_OUTPUT_TEXTURE_COORD14_EXT 0x87AB +#define GL_OUTPUT_TEXTURE_COORD15_EXT 0x87AC +#define GL_OUTPUT_TEXTURE_COORD16_EXT 0x87AD +#define GL_OUTPUT_TEXTURE_COORD17_EXT 0x87AE +#define GL_OUTPUT_TEXTURE_COORD18_EXT 0x87AF +#define GL_OUTPUT_TEXTURE_COORD19_EXT 0x87B0 +#define GL_OUTPUT_TEXTURE_COORD20_EXT 0x87B1 +#define GL_OUTPUT_TEXTURE_COORD21_EXT 0x87B2 +#define GL_OUTPUT_TEXTURE_COORD22_EXT 0x87B3 +#define GL_OUTPUT_TEXTURE_COORD23_EXT 0x87B4 +#define GL_OUTPUT_TEXTURE_COORD24_EXT 0x87B5 +#define GL_OUTPUT_TEXTURE_COORD25_EXT 0x87B6 +#define GL_OUTPUT_TEXTURE_COORD26_EXT 0x87B7 +#define GL_OUTPUT_TEXTURE_COORD27_EXT 0x87B8 +#define GL_OUTPUT_TEXTURE_COORD28_EXT 0x87B9 +#define GL_OUTPUT_TEXTURE_COORD29_EXT 0x87BA +#define GL_OUTPUT_TEXTURE_COORD30_EXT 0x87BB +#define GL_OUTPUT_TEXTURE_COORD31_EXT 0x87BC +#define GL_OUTPUT_FOG_EXT 0x87BD +#define GL_SCALAR_EXT 0x87BE +#define GL_VECTOR_EXT 0x87BF +#define GL_MATRIX_EXT 0x87C0 +#define GL_VARIANT_EXT 0x87C1 +#define GL_INVARIANT_EXT 0x87C2 +#define GL_LOCAL_CONSTANT_EXT 0x87C3 +#define GL_LOCAL_EXT 0x87C4 +#define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87C5 +#define GL_MAX_VERTEX_SHADER_VARIANTS_EXT 0x87C6 +#define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT 0x87C7 +#define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87C8 +#define GL_MAX_VERTEX_SHADER_LOCALS_EXT 0x87C9 +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT 0x87CB +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CC +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT 0x87CD +#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT 0x87CE +#define GL_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CF +#define GL_VERTEX_SHADER_VARIANTS_EXT 0x87D0 +#define GL_VERTEX_SHADER_INVARIANTS_EXT 0x87D1 +#define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87D2 +#define GL_VERTEX_SHADER_LOCALS_EXT 0x87D3 +#define GL_VERTEX_SHADER_OPTIMIZED_EXT 0x87D4 +#define GL_X_EXT 0x87D5 +#define GL_Y_EXT 0x87D6 +#define GL_Z_EXT 0x87D7 +#define GL_W_EXT 0x87D8 +#define GL_NEGATIVE_X_EXT 0x87D9 +#define GL_NEGATIVE_Y_EXT 0x87DA +#define GL_NEGATIVE_Z_EXT 0x87DB +#define GL_NEGATIVE_W_EXT 0x87DC +#define GL_ZERO_EXT 0x87DD +#define GL_ONE_EXT 0x87DE +#define GL_NEGATIVE_ONE_EXT 0x87DF +#define GL_NORMALIZED_RANGE_EXT 0x87E0 +#define GL_FULL_RANGE_EXT 0x87E1 +#define GL_CURRENT_VERTEX_EXT 0x87E2 +#define GL_MVP_MATRIX_EXT 0x87E3 +#define GL_VARIANT_VALUE_EXT 0x87E4 +#define GL_VARIANT_DATATYPE_EXT 0x87E5 +#define GL_VARIANT_ARRAY_STRIDE_EXT 0x87E6 +#define GL_VARIANT_ARRAY_TYPE_EXT 0x87E7 +#define GL_VARIANT_ARRAY_EXT 0x87E8 +#define GL_VARIANT_ARRAY_POINTER_EXT 0x87E9 +#define GL_INVARIANT_VALUE_EXT 0x87EA +#define GL_INVARIANT_DATATYPE_EXT 0x87EB +#define GL_LOCAL_CONSTANT_VALUE_EXT 0x87EC +#define GL_LOCAL_CONSTANT_DATATYPE_EXT 0x87ED + typedef void (APIENTRYP PFNGLBEGINVERTEXSHADEREXTPROC) (void); + typedef void (APIENTRYP PFNGLENDVERTEXSHADEREXTPROC) (void); + typedef void (APIENTRYP PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id); + typedef GLuint(APIENTRYP PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range); + typedef void (APIENTRYP PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id); + typedef void (APIENTRYP PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1); + typedef void (APIENTRYP PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); + typedef void (APIENTRYP PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); + typedef void (APIENTRYP PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); + typedef void (APIENTRYP PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); + typedef void (APIENTRYP PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); + typedef void (APIENTRYP PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); + typedef GLuint(APIENTRYP PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components); + typedef void (APIENTRYP PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const void* addr); + typedef void (APIENTRYP PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const void* addr); + typedef void (APIENTRYP PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte* addr); + typedef void (APIENTRYP PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort* addr); + typedef void (APIENTRYP PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint* addr); + typedef void (APIENTRYP PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat* addr); + typedef void (APIENTRYP PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble* addr); + typedef void (APIENTRYP PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte* addr); + typedef void (APIENTRYP PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort* addr); + typedef void (APIENTRYP PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint* addr); + typedef void (APIENTRYP PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const void* addr); + typedef void (APIENTRYP PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); + typedef void (APIENTRYP PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); + typedef GLuint(APIENTRYP PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value); + typedef GLuint(APIENTRYP PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value); + typedef GLuint(APIENTRYP PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value); + typedef GLuint(APIENTRYP PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value); + typedef GLuint(APIENTRYP PFNGLBINDPARAMETEREXTPROC) (GLenum value); + typedef GLboolean(APIENTRYP PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap); + typedef void (APIENTRYP PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean* data); + typedef void (APIENTRYP PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint* data); + typedef void (APIENTRYP PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat* data); + typedef void (APIENTRYP PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, void** data); + typedef void (APIENTRYP PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean* data); + typedef void (APIENTRYP PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint* data); + typedef void (APIENTRYP PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat* data); + typedef void (APIENTRYP PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean* data); + typedef void (APIENTRYP PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint* data); + typedef void (APIENTRYP PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat* data); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBeginVertexShaderEXT(void); + GLAPI void APIENTRY glEndVertexShaderEXT(void); + GLAPI void APIENTRY glBindVertexShaderEXT(GLuint id); + GLAPI GLuint APIENTRY glGenVertexShadersEXT(GLuint range); + GLAPI void APIENTRY glDeleteVertexShaderEXT(GLuint id); + GLAPI void APIENTRY glShaderOp1EXT(GLenum op, GLuint res, GLuint arg1); + GLAPI void APIENTRY glShaderOp2EXT(GLenum op, GLuint res, GLuint arg1, GLuint arg2); + GLAPI void APIENTRY glShaderOp3EXT(GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); + GLAPI void APIENTRY glSwizzleEXT(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); + GLAPI void APIENTRY glWriteMaskEXT(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); + GLAPI void APIENTRY glInsertComponentEXT(GLuint res, GLuint src, GLuint num); + GLAPI void APIENTRY glExtractComponentEXT(GLuint res, GLuint src, GLuint num); + GLAPI GLuint APIENTRY glGenSymbolsEXT(GLenum datatype, GLenum storagetype, GLenum range, GLuint components); + GLAPI void APIENTRY glSetInvariantEXT(GLuint id, GLenum type, const void* addr); + GLAPI void APIENTRY glSetLocalConstantEXT(GLuint id, GLenum type, const void* addr); + GLAPI void APIENTRY glVariantbvEXT(GLuint id, const GLbyte* addr); + GLAPI void APIENTRY glVariantsvEXT(GLuint id, const GLshort* addr); + GLAPI void APIENTRY glVariantivEXT(GLuint id, const GLint* addr); + GLAPI void APIENTRY glVariantfvEXT(GLuint id, const GLfloat* addr); + GLAPI void APIENTRY glVariantdvEXT(GLuint id, const GLdouble* addr); + GLAPI void APIENTRY glVariantubvEXT(GLuint id, const GLubyte* addr); + GLAPI void APIENTRY glVariantusvEXT(GLuint id, const GLushort* addr); + GLAPI void APIENTRY glVariantuivEXT(GLuint id, const GLuint* addr); + GLAPI void APIENTRY glVariantPointerEXT(GLuint id, GLenum type, GLuint stride, const void* addr); + GLAPI void APIENTRY glEnableVariantClientStateEXT(GLuint id); + GLAPI void APIENTRY glDisableVariantClientStateEXT(GLuint id); + GLAPI GLuint APIENTRY glBindLightParameterEXT(GLenum light, GLenum value); + GLAPI GLuint APIENTRY glBindMaterialParameterEXT(GLenum face, GLenum value); + GLAPI GLuint APIENTRY glBindTexGenParameterEXT(GLenum unit, GLenum coord, GLenum value); + GLAPI GLuint APIENTRY glBindTextureUnitParameterEXT(GLenum unit, GLenum value); + GLAPI GLuint APIENTRY glBindParameterEXT(GLenum value); + GLAPI GLboolean APIENTRY glIsVariantEnabledEXT(GLuint id, GLenum cap); + GLAPI void APIENTRY glGetVariantBooleanvEXT(GLuint id, GLenum value, GLboolean* data); + GLAPI void APIENTRY glGetVariantIntegervEXT(GLuint id, GLenum value, GLint* data); + GLAPI void APIENTRY glGetVariantFloatvEXT(GLuint id, GLenum value, GLfloat* data); + GLAPI void APIENTRY glGetVariantPointervEXT(GLuint id, GLenum value, void** data); + GLAPI void APIENTRY glGetInvariantBooleanvEXT(GLuint id, GLenum value, GLboolean* data); + GLAPI void APIENTRY glGetInvariantIntegervEXT(GLuint id, GLenum value, GLint* data); + GLAPI void APIENTRY glGetInvariantFloatvEXT(GLuint id, GLenum value, GLfloat* data); + GLAPI void APIENTRY glGetLocalConstantBooleanvEXT(GLuint id, GLenum value, GLboolean* data); + GLAPI void APIENTRY glGetLocalConstantIntegervEXT(GLuint id, GLenum value, GLint* data); + GLAPI void APIENTRY glGetLocalConstantFloatvEXT(GLuint id, GLenum value, GLfloat* data); +#endif +#endif /* GL_EXT_vertex_shader */ + +#ifndef GL_EXT_vertex_weighting +#define GL_EXT_vertex_weighting 1 +#define GL_MODELVIEW0_STACK_DEPTH_EXT 0x0BA3 +#define GL_MODELVIEW1_STACK_DEPTH_EXT 0x8502 +#define GL_MODELVIEW0_MATRIX_EXT 0x0BA6 +#define GL_MODELVIEW1_MATRIX_EXT 0x8506 +#define GL_VERTEX_WEIGHTING_EXT 0x8509 +#define GL_MODELVIEW0_EXT 0x1700 +#define GL_MODELVIEW1_EXT 0x850A +#define GL_CURRENT_VERTEX_WEIGHT_EXT 0x850B +#define GL_VERTEX_WEIGHT_ARRAY_EXT 0x850C +#define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT 0x850D +#define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT 0x850E +#define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F +#define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510 + typedef void (APIENTRYP PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight); + typedef void (APIENTRYP PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat* weight); + typedef void (APIENTRYP PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const void* pointer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVertexWeightfEXT(GLfloat weight); + GLAPI void APIENTRY glVertexWeightfvEXT(const GLfloat* weight); + GLAPI void APIENTRY glVertexWeightPointerEXT(GLint size, GLenum type, GLsizei stride, const void* pointer); +#endif +#endif /* GL_EXT_vertex_weighting */ + +#ifndef GL_EXT_win32_keyed_mutex +#define GL_EXT_win32_keyed_mutex 1 + typedef GLboolean(APIENTRYP PFNGLACQUIREKEYEDMUTEXWIN32EXTPROC) (GLuint memory, GLuint64 key, GLuint timeout); + typedef GLboolean(APIENTRYP PFNGLRELEASEKEYEDMUTEXWIN32EXTPROC) (GLuint memory, GLuint64 key); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLboolean APIENTRY glAcquireKeyedMutexWin32EXT(GLuint memory, GLuint64 key, GLuint timeout); + GLAPI GLboolean APIENTRY glReleaseKeyedMutexWin32EXT(GLuint memory, GLuint64 key); +#endif +#endif /* GL_EXT_win32_keyed_mutex */ + +#ifndef GL_EXT_window_rectangles +#define GL_EXT_window_rectangles 1 +#define GL_INCLUSIVE_EXT 0x8F10 +#define GL_EXCLUSIVE_EXT 0x8F11 +#define GL_WINDOW_RECTANGLE_EXT 0x8F12 +#define GL_WINDOW_RECTANGLE_MODE_EXT 0x8F13 +#define GL_MAX_WINDOW_RECTANGLES_EXT 0x8F14 +#define GL_NUM_WINDOW_RECTANGLES_EXT 0x8F15 + typedef void (APIENTRYP PFNGLWINDOWRECTANGLESEXTPROC) (GLenum mode, GLsizei count, const GLint* box); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glWindowRectanglesEXT(GLenum mode, GLsizei count, const GLint* box); +#endif +#endif /* GL_EXT_window_rectangles */ + +#ifndef GL_EXT_x11_sync_object +#define GL_EXT_x11_sync_object 1 +#define GL_SYNC_X11_FENCE_EXT 0x90E1 + typedef GLsync(APIENTRYP PFNGLIMPORTSYNCEXTPROC) (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLsync APIENTRY glImportSyncEXT(GLenum external_sync_type, GLintptr external_sync, GLbitfield flags); +#endif +#endif /* GL_EXT_x11_sync_object */ + +#ifndef GL_GREMEDY_frame_terminator +#define GL_GREMEDY_frame_terminator 1 + typedef void (APIENTRYP PFNGLFRAMETERMINATORGREMEDYPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFrameTerminatorGREMEDY(void); +#endif +#endif /* GL_GREMEDY_frame_terminator */ + +#ifndef GL_GREMEDY_string_marker +#define GL_GREMEDY_string_marker 1 + typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const void* string); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glStringMarkerGREMEDY(GLsizei len, const void* string); +#endif +#endif /* GL_GREMEDY_string_marker */ + +#ifndef GL_HP_convolution_border_modes +#define GL_HP_convolution_border_modes 1 +#define GL_IGNORE_BORDER_HP 0x8150 +#define GL_CONSTANT_BORDER_HP 0x8151 +#define GL_REPLICATE_BORDER_HP 0x8153 +#define GL_CONVOLUTION_BORDER_COLOR_HP 0x8154 +#endif /* GL_HP_convolution_border_modes */ + +#ifndef GL_HP_image_transform +#define GL_HP_image_transform 1 +#define GL_IMAGE_SCALE_X_HP 0x8155 +#define GL_IMAGE_SCALE_Y_HP 0x8156 +#define GL_IMAGE_TRANSLATE_X_HP 0x8157 +#define GL_IMAGE_TRANSLATE_Y_HP 0x8158 +#define GL_IMAGE_ROTATE_ANGLE_HP 0x8159 +#define GL_IMAGE_ROTATE_ORIGIN_X_HP 0x815A +#define GL_IMAGE_ROTATE_ORIGIN_Y_HP 0x815B +#define GL_IMAGE_MAG_FILTER_HP 0x815C +#define GL_IMAGE_MIN_FILTER_HP 0x815D +#define GL_IMAGE_CUBIC_WEIGHT_HP 0x815E +#define GL_CUBIC_HP 0x815F +#define GL_AVERAGE_HP 0x8160 +#define GL_IMAGE_TRANSFORM_2D_HP 0x8161 +#define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162 +#define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163 + typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glImageTransformParameteriHP(GLenum target, GLenum pname, GLint param); + GLAPI void APIENTRY glImageTransformParameterfHP(GLenum target, GLenum pname, GLfloat param); + GLAPI void APIENTRY glImageTransformParameterivHP(GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glImageTransformParameterfvHP(GLenum target, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glGetImageTransformParameterivHP(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetImageTransformParameterfvHP(GLenum target, GLenum pname, GLfloat* params); +#endif +#endif /* GL_HP_image_transform */ + +#ifndef GL_HP_occlusion_test +#define GL_HP_occlusion_test 1 +#define GL_OCCLUSION_TEST_HP 0x8165 +#define GL_OCCLUSION_TEST_RESULT_HP 0x8166 +#endif /* GL_HP_occlusion_test */ + +#ifndef GL_HP_texture_lighting +#define GL_HP_texture_lighting 1 +#define GL_TEXTURE_LIGHTING_MODE_HP 0x8167 +#define GL_TEXTURE_POST_SPECULAR_HP 0x8168 +#define GL_TEXTURE_PRE_SPECULAR_HP 0x8169 +#endif /* GL_HP_texture_lighting */ + +#ifndef GL_IBM_cull_vertex +#define GL_IBM_cull_vertex 1 +#define GL_CULL_VERTEX_IBM 103050 +#endif /* GL_IBM_cull_vertex */ + +#ifndef GL_IBM_multimode_draw_arrays +#define GL_IBM_multimode_draw_arrays 1 + typedef void (APIENTRYP PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum* mode, const GLint* first, const GLsizei* count, GLsizei primcount, GLint modestride); + typedef void (APIENTRYP PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum* mode, const GLsizei* count, GLenum type, const void* const* indices, GLsizei primcount, GLint modestride); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMultiModeDrawArraysIBM(const GLenum* mode, const GLint* first, const GLsizei* count, GLsizei primcount, GLint modestride); + GLAPI void APIENTRY glMultiModeDrawElementsIBM(const GLenum* mode, const GLsizei* count, GLenum type, const void* const* indices, GLsizei primcount, GLint modestride); +#endif +#endif /* GL_IBM_multimode_draw_arrays */ + +#ifndef GL_IBM_rasterpos_clip +#define GL_IBM_rasterpos_clip 1 +#define GL_RASTER_POSITION_UNCLIPPED_IBM 0x19262 +#endif /* GL_IBM_rasterpos_clip */ + +#ifndef GL_IBM_static_data +#define GL_IBM_static_data 1 +#define GL_ALL_STATIC_DATA_IBM 103060 +#define GL_STATIC_VERTEX_ARRAY_IBM 103061 + typedef void (APIENTRYP PFNGLFLUSHSTATICDATAIBMPROC) (GLenum target); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFlushStaticDataIBM(GLenum target); +#endif +#endif /* GL_IBM_static_data */ + +#ifndef GL_IBM_texture_mirrored_repeat +#define GL_IBM_texture_mirrored_repeat 1 +#define GL_MIRRORED_REPEAT_IBM 0x8370 +#endif /* GL_IBM_texture_mirrored_repeat */ + +#ifndef GL_IBM_vertex_array_lists +#define GL_IBM_vertex_array_lists 1 +#define GL_VERTEX_ARRAY_LIST_IBM 103070 +#define GL_NORMAL_ARRAY_LIST_IBM 103071 +#define GL_COLOR_ARRAY_LIST_IBM 103072 +#define GL_INDEX_ARRAY_LIST_IBM 103073 +#define GL_TEXTURE_COORD_ARRAY_LIST_IBM 103074 +#define GL_EDGE_FLAG_ARRAY_LIST_IBM 103075 +#define GL_FOG_COORDINATE_ARRAY_LIST_IBM 103076 +#define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077 +#define GL_VERTEX_ARRAY_LIST_STRIDE_IBM 103080 +#define GL_NORMAL_ARRAY_LIST_STRIDE_IBM 103081 +#define GL_COLOR_ARRAY_LIST_STRIDE_IBM 103082 +#define GL_INDEX_ARRAY_LIST_STRIDE_IBM 103083 +#define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084 +#define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085 +#define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086 +#define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087 + typedef void (APIENTRYP PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void** pointer, GLint ptrstride); + typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void** pointer, GLint ptrstride); + typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean** pointer, GLint ptrstride); + typedef void (APIENTRYP PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void** pointer, GLint ptrstride); + typedef void (APIENTRYP PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void** pointer, GLint ptrstride); + typedef void (APIENTRYP PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const void** pointer, GLint ptrstride); + typedef void (APIENTRYP PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void** pointer, GLint ptrstride); + typedef void (APIENTRYP PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const void** pointer, GLint ptrstride); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glColorPointerListIBM(GLint size, GLenum type, GLint stride, const void** pointer, GLint ptrstride); + GLAPI void APIENTRY glSecondaryColorPointerListIBM(GLint size, GLenum type, GLint stride, const void** pointer, GLint ptrstride); + GLAPI void APIENTRY glEdgeFlagPointerListIBM(GLint stride, const GLboolean** pointer, GLint ptrstride); + GLAPI void APIENTRY glFogCoordPointerListIBM(GLenum type, GLint stride, const void** pointer, GLint ptrstride); + GLAPI void APIENTRY glIndexPointerListIBM(GLenum type, GLint stride, const void** pointer, GLint ptrstride); + GLAPI void APIENTRY glNormalPointerListIBM(GLenum type, GLint stride, const void** pointer, GLint ptrstride); + GLAPI void APIENTRY glTexCoordPointerListIBM(GLint size, GLenum type, GLint stride, const void** pointer, GLint ptrstride); + GLAPI void APIENTRY glVertexPointerListIBM(GLint size, GLenum type, GLint stride, const void** pointer, GLint ptrstride); +#endif +#endif /* GL_IBM_vertex_array_lists */ + +#ifndef GL_INGR_blend_func_separate +#define GL_INGR_blend_func_separate 1 + typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlendFuncSeparateINGR(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +#endif +#endif /* GL_INGR_blend_func_separate */ + +#ifndef GL_INGR_color_clamp +#define GL_INGR_color_clamp 1 +#define GL_RED_MIN_CLAMP_INGR 0x8560 +#define GL_GREEN_MIN_CLAMP_INGR 0x8561 +#define GL_BLUE_MIN_CLAMP_INGR 0x8562 +#define GL_ALPHA_MIN_CLAMP_INGR 0x8563 +#define GL_RED_MAX_CLAMP_INGR 0x8564 +#define GL_GREEN_MAX_CLAMP_INGR 0x8565 +#define GL_BLUE_MAX_CLAMP_INGR 0x8566 +#define GL_ALPHA_MAX_CLAMP_INGR 0x8567 +#endif /* GL_INGR_color_clamp */ + +#ifndef GL_INGR_interlace_read +#define GL_INGR_interlace_read 1 +#define GL_INTERLACE_READ_INGR 0x8568 +#endif /* GL_INGR_interlace_read */ + +#ifndef GL_INTEL_blackhole_render +#define GL_INTEL_blackhole_render 1 +#define GL_BLACKHOLE_RENDER_INTEL 0x83FC +#endif /* GL_INTEL_blackhole_render */ + +#ifndef GL_INTEL_conservative_rasterization +#define GL_INTEL_conservative_rasterization 1 +#define GL_CONSERVATIVE_RASTERIZATION_INTEL 0x83FE +#endif /* GL_INTEL_conservative_rasterization */ + +#ifndef GL_INTEL_fragment_shader_ordering +#define GL_INTEL_fragment_shader_ordering 1 +#endif /* GL_INTEL_fragment_shader_ordering */ + +#ifndef GL_INTEL_framebuffer_CMAA +#define GL_INTEL_framebuffer_CMAA 1 + typedef void (APIENTRYP PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glApplyFramebufferAttachmentCMAAINTEL(void); +#endif +#endif /* GL_INTEL_framebuffer_CMAA */ + +#ifndef GL_INTEL_map_texture +#define GL_INTEL_map_texture 1 +#define GL_TEXTURE_MEMORY_LAYOUT_INTEL 0x83FF +#define GL_LAYOUT_DEFAULT_INTEL 0 +#define GL_LAYOUT_LINEAR_INTEL 1 +#define GL_LAYOUT_LINEAR_CPU_CACHED_INTEL 2 + typedef void (APIENTRYP PFNGLSYNCTEXTUREINTELPROC) (GLuint texture); + typedef void (APIENTRYP PFNGLUNMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level); + typedef void* (APIENTRYP PFNGLMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level, GLbitfield access, GLint* stride, GLenum* layout); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glSyncTextureINTEL(GLuint texture); + GLAPI void APIENTRY glUnmapTexture2DINTEL(GLuint texture, GLint level); + GLAPI void* APIENTRY glMapTexture2DINTEL(GLuint texture, GLint level, GLbitfield access, GLint* stride, GLenum* layout); +#endif +#endif /* GL_INTEL_map_texture */ + +#ifndef GL_INTEL_parallel_arrays +#define GL_INTEL_parallel_arrays 1 +#define GL_PARALLEL_ARRAYS_INTEL 0x83F4 +#define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5 +#define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6 +#define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7 +#define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8 + typedef void (APIENTRYP PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const void** pointer); + typedef void (APIENTRYP PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const void** pointer); + typedef void (APIENTRYP PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const void** pointer); + typedef void (APIENTRYP PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const void** pointer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVertexPointervINTEL(GLint size, GLenum type, const void** pointer); + GLAPI void APIENTRY glNormalPointervINTEL(GLenum type, const void** pointer); + GLAPI void APIENTRY glColorPointervINTEL(GLint size, GLenum type, const void** pointer); + GLAPI void APIENTRY glTexCoordPointervINTEL(GLint size, GLenum type, const void** pointer); +#endif +#endif /* GL_INTEL_parallel_arrays */ + +#ifndef GL_INTEL_performance_query +#define GL_INTEL_performance_query 1 +#define GL_PERFQUERY_SINGLE_CONTEXT_INTEL 0x00000000 +#define GL_PERFQUERY_GLOBAL_CONTEXT_INTEL 0x00000001 +#define GL_PERFQUERY_WAIT_INTEL 0x83FB +#define GL_PERFQUERY_FLUSH_INTEL 0x83FA +#define GL_PERFQUERY_DONOT_FLUSH_INTEL 0x83F9 +#define GL_PERFQUERY_COUNTER_EVENT_INTEL 0x94F0 +#define GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL 0x94F1 +#define GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL 0x94F2 +#define GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL 0x94F3 +#define GL_PERFQUERY_COUNTER_RAW_INTEL 0x94F4 +#define GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL 0x94F5 +#define GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL 0x94F8 +#define GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL 0x94F9 +#define GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL 0x94FA +#define GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL 0x94FB +#define GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL 0x94FC +#define GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL 0x94FD +#define GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL 0x94FE +#define GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL 0x94FF +#define GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL 0x9500 + typedef void (APIENTRYP PFNGLBEGINPERFQUERYINTELPROC) (GLuint queryHandle); + typedef void (APIENTRYP PFNGLCREATEPERFQUERYINTELPROC) (GLuint queryId, GLuint* queryHandle); + typedef void (APIENTRYP PFNGLDELETEPERFQUERYINTELPROC) (GLuint queryHandle); + typedef void (APIENTRYP PFNGLENDPERFQUERYINTELPROC) (GLuint queryHandle); + typedef void (APIENTRYP PFNGLGETFIRSTPERFQUERYIDINTELPROC) (GLuint* queryId); + typedef void (APIENTRYP PFNGLGETNEXTPERFQUERYIDINTELPROC) (GLuint queryId, GLuint* nextQueryId); + typedef void (APIENTRYP PFNGLGETPERFCOUNTERINFOINTELPROC) (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar* counterName, GLuint counterDescLength, GLchar* counterDesc, GLuint* counterOffset, GLuint* counterDataSize, GLuint* counterTypeEnum, GLuint* counterDataTypeEnum, GLuint64* rawCounterMaxValue); + typedef void (APIENTRYP PFNGLGETPERFQUERYDATAINTELPROC) (GLuint queryHandle, GLuint flags, GLsizei dataSize, void* data, GLuint* bytesWritten); + typedef void (APIENTRYP PFNGLGETPERFQUERYIDBYNAMEINTELPROC) (GLchar* queryName, GLuint* queryId); + typedef void (APIENTRYP PFNGLGETPERFQUERYINFOINTELPROC) (GLuint queryId, GLuint queryNameLength, GLchar* queryName, GLuint* dataSize, GLuint* noCounters, GLuint* noInstances, GLuint* capsMask); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBeginPerfQueryINTEL(GLuint queryHandle); + GLAPI void APIENTRY glCreatePerfQueryINTEL(GLuint queryId, GLuint* queryHandle); + GLAPI void APIENTRY glDeletePerfQueryINTEL(GLuint queryHandle); + GLAPI void APIENTRY glEndPerfQueryINTEL(GLuint queryHandle); + GLAPI void APIENTRY glGetFirstPerfQueryIdINTEL(GLuint* queryId); + GLAPI void APIENTRY glGetNextPerfQueryIdINTEL(GLuint queryId, GLuint* nextQueryId); + GLAPI void APIENTRY glGetPerfCounterInfoINTEL(GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar* counterName, GLuint counterDescLength, GLchar* counterDesc, GLuint* counterOffset, GLuint* counterDataSize, GLuint* counterTypeEnum, GLuint* counterDataTypeEnum, GLuint64* rawCounterMaxValue); + GLAPI void APIENTRY glGetPerfQueryDataINTEL(GLuint queryHandle, GLuint flags, GLsizei dataSize, void* data, GLuint* bytesWritten); + GLAPI void APIENTRY glGetPerfQueryIdByNameINTEL(GLchar* queryName, GLuint* queryId); + GLAPI void APIENTRY glGetPerfQueryInfoINTEL(GLuint queryId, GLuint queryNameLength, GLchar* queryName, GLuint* dataSize, GLuint* noCounters, GLuint* noInstances, GLuint* capsMask); +#endif +#endif /* GL_INTEL_performance_query */ + +#ifndef GL_MESAX_texture_stack +#define GL_MESAX_texture_stack 1 +#define GL_TEXTURE_1D_STACK_MESAX 0x8759 +#define GL_TEXTURE_2D_STACK_MESAX 0x875A +#define GL_PROXY_TEXTURE_1D_STACK_MESAX 0x875B +#define GL_PROXY_TEXTURE_2D_STACK_MESAX 0x875C +#define GL_TEXTURE_1D_STACK_BINDING_MESAX 0x875D +#define GL_TEXTURE_2D_STACK_BINDING_MESAX 0x875E +#endif /* GL_MESAX_texture_stack */ + +#ifndef GL_MESA_framebuffer_flip_x +#define GL_MESA_framebuffer_flip_x 1 +#define GL_FRAMEBUFFER_FLIP_X_MESA 0x8BBC +#endif /* GL_MESA_framebuffer_flip_x */ + +#ifndef GL_MESA_framebuffer_flip_y +#define GL_MESA_framebuffer_flip_y 1 +#define GL_FRAMEBUFFER_FLIP_Y_MESA 0x8BBB + typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIMESAPROC) (GLenum target, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVMESAPROC) (GLenum target, GLenum pname, GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFramebufferParameteriMESA(GLenum target, GLenum pname, GLint param); + GLAPI void APIENTRY glGetFramebufferParameterivMESA(GLenum target, GLenum pname, GLint* params); +#endif +#endif /* GL_MESA_framebuffer_flip_y */ + +#ifndef GL_MESA_framebuffer_swap_xy +#define GL_MESA_framebuffer_swap_xy 1 +#define GL_FRAMEBUFFER_SWAP_XY_MESA 0x8BBD +#endif /* GL_MESA_framebuffer_swap_xy */ + +#ifndef GL_MESA_pack_invert +#define GL_MESA_pack_invert 1 +#define GL_PACK_INVERT_MESA 0x8758 +#endif /* GL_MESA_pack_invert */ + +#ifndef GL_MESA_program_binary_formats +#define GL_MESA_program_binary_formats 1 +#define GL_PROGRAM_BINARY_FORMAT_MESA 0x875F +#endif /* GL_MESA_program_binary_formats */ + +#ifndef GL_MESA_resize_buffers +#define GL_MESA_resize_buffers 1 + typedef void (APIENTRYP PFNGLRESIZEBUFFERSMESAPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glResizeBuffersMESA(void); +#endif +#endif /* GL_MESA_resize_buffers */ + +#ifndef GL_MESA_shader_integer_functions +#define GL_MESA_shader_integer_functions 1 +#endif /* GL_MESA_shader_integer_functions */ + +#ifndef GL_MESA_tile_raster_order +#define GL_MESA_tile_raster_order 1 +#define GL_TILE_RASTER_ORDER_FIXED_MESA 0x8BB8 +#define GL_TILE_RASTER_ORDER_INCREASING_X_MESA 0x8BB9 +#define GL_TILE_RASTER_ORDER_INCREASING_Y_MESA 0x8BBA +#endif /* GL_MESA_tile_raster_order */ + +#ifndef GL_MESA_window_pos +#define GL_MESA_window_pos 1 + typedef void (APIENTRYP PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y); + typedef void (APIENTRYP PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble* v); + typedef void (APIENTRYP PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y); + typedef void (APIENTRYP PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat* v); + typedef void (APIENTRYP PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y); + typedef void (APIENTRYP PFNGLWINDOWPOS2IVMESAPROC) (const GLint* v); + typedef void (APIENTRYP PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y); + typedef void (APIENTRYP PFNGLWINDOWPOS2SVMESAPROC) (const GLshort* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z); + typedef void (APIENTRYP PFNGLWINDOWPOS3IVMESAPROC) (const GLint* v); + typedef void (APIENTRYP PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z); + typedef void (APIENTRYP PFNGLWINDOWPOS3SVMESAPROC) (const GLshort* v); + typedef void (APIENTRYP PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble* v); + typedef void (APIENTRYP PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat* v); + typedef void (APIENTRYP PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w); + typedef void (APIENTRYP PFNGLWINDOWPOS4IVMESAPROC) (const GLint* v); + typedef void (APIENTRYP PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w); + typedef void (APIENTRYP PFNGLWINDOWPOS4SVMESAPROC) (const GLshort* v); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glWindowPos2dMESA(GLdouble x, GLdouble y); + GLAPI void APIENTRY glWindowPos2dvMESA(const GLdouble* v); + GLAPI void APIENTRY glWindowPos2fMESA(GLfloat x, GLfloat y); + GLAPI void APIENTRY glWindowPos2fvMESA(const GLfloat* v); + GLAPI void APIENTRY glWindowPos2iMESA(GLint x, GLint y); + GLAPI void APIENTRY glWindowPos2ivMESA(const GLint* v); + GLAPI void APIENTRY glWindowPos2sMESA(GLshort x, GLshort y); + GLAPI void APIENTRY glWindowPos2svMESA(const GLshort* v); + GLAPI void APIENTRY glWindowPos3dMESA(GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glWindowPos3dvMESA(const GLdouble* v); + GLAPI void APIENTRY glWindowPos3fMESA(GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glWindowPos3fvMESA(const GLfloat* v); + GLAPI void APIENTRY glWindowPos3iMESA(GLint x, GLint y, GLint z); + GLAPI void APIENTRY glWindowPos3ivMESA(const GLint* v); + GLAPI void APIENTRY glWindowPos3sMESA(GLshort x, GLshort y, GLshort z); + GLAPI void APIENTRY glWindowPos3svMESA(const GLshort* v); + GLAPI void APIENTRY glWindowPos4dMESA(GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glWindowPos4dvMESA(const GLdouble* v); + GLAPI void APIENTRY glWindowPos4fMESA(GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glWindowPos4fvMESA(const GLfloat* v); + GLAPI void APIENTRY glWindowPos4iMESA(GLint x, GLint y, GLint z, GLint w); + GLAPI void APIENTRY glWindowPos4ivMESA(const GLint* v); + GLAPI void APIENTRY glWindowPos4sMESA(GLshort x, GLshort y, GLshort z, GLshort w); + GLAPI void APIENTRY glWindowPos4svMESA(const GLshort* v); +#endif +#endif /* GL_MESA_window_pos */ + +#ifndef GL_MESA_ycbcr_texture +#define GL_MESA_ycbcr_texture 1 +#define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA +#define GL_UNSIGNED_SHORT_8_8_REV_MESA 0x85BB +#define GL_YCBCR_MESA 0x8757 +#endif /* GL_MESA_ycbcr_texture */ + +#ifndef GL_NVX_blend_equation_advanced_multi_draw_buffers +#define GL_NVX_blend_equation_advanced_multi_draw_buffers 1 +#endif /* GL_NVX_blend_equation_advanced_multi_draw_buffers */ + +#ifndef GL_NVX_conditional_render +#define GL_NVX_conditional_render 1 + typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVXPROC) (GLuint id); + typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVXPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBeginConditionalRenderNVX(GLuint id); + GLAPI void APIENTRY glEndConditionalRenderNVX(void); +#endif +#endif /* GL_NVX_conditional_render */ + +#ifndef GL_NVX_gpu_memory_info +#define GL_NVX_gpu_memory_info 1 +#define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX 0x9047 +#define GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX 0x9048 +#define GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX 0x9049 +#define GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX 0x904A +#define GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX 0x904B +#endif /* GL_NVX_gpu_memory_info */ + +#ifndef GL_NVX_gpu_multicast2 +#define GL_NVX_gpu_multicast2 1 +#define GL_UPLOAD_GPU_MASK_NVX 0x954A + typedef void (APIENTRYP PFNGLUPLOADGPUMASKNVXPROC) (GLbitfield mask); + typedef void (APIENTRYP PFNGLMULTICASTVIEWPORTARRAYVNVXPROC) (GLuint gpu, GLuint first, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLMULTICASTVIEWPORTPOSITIONWSCALENVXPROC) (GLuint gpu, GLuint index, GLfloat xcoeff, GLfloat ycoeff); + typedef void (APIENTRYP PFNGLMULTICASTSCISSORARRAYVNVXPROC) (GLuint gpu, GLuint first, GLsizei count, const GLint* v); + typedef GLuint(APIENTRYP PFNGLASYNCCOPYBUFFERSUBDATANVXPROC) (GLsizei waitSemaphoreCount, const GLuint* waitSemaphoreArray, const GLuint64* fenceValueArray, GLuint readGpu, GLbitfield writeGpuMask, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size, GLsizei signalSemaphoreCount, const GLuint* signalSemaphoreArray, const GLuint64* signalValueArray); + typedef GLuint(APIENTRYP PFNGLASYNCCOPYIMAGESUBDATANVXPROC) (GLsizei waitSemaphoreCount, const GLuint* waitSemaphoreArray, const GLuint64* waitValueArray, GLuint srcGpu, GLbitfield dstGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth, GLsizei signalSemaphoreCount, const GLuint* signalSemaphoreArray, const GLuint64* signalValueArray); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glUploadGpuMaskNVX(GLbitfield mask); + GLAPI void APIENTRY glMulticastViewportArrayvNVX(GLuint gpu, GLuint first, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glMulticastViewportPositionWScaleNVX(GLuint gpu, GLuint index, GLfloat xcoeff, GLfloat ycoeff); + GLAPI void APIENTRY glMulticastScissorArrayvNVX(GLuint gpu, GLuint first, GLsizei count, const GLint* v); + GLAPI GLuint APIENTRY glAsyncCopyBufferSubDataNVX(GLsizei waitSemaphoreCount, const GLuint* waitSemaphoreArray, const GLuint64* fenceValueArray, GLuint readGpu, GLbitfield writeGpuMask, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size, GLsizei signalSemaphoreCount, const GLuint* signalSemaphoreArray, const GLuint64* signalValueArray); + GLAPI GLuint APIENTRY glAsyncCopyImageSubDataNVX(GLsizei waitSemaphoreCount, const GLuint* waitSemaphoreArray, const GLuint64* waitValueArray, GLuint srcGpu, GLbitfield dstGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth, GLsizei signalSemaphoreCount, const GLuint* signalSemaphoreArray, const GLuint64* signalValueArray); +#endif +#endif /* GL_NVX_gpu_multicast2 */ + +#ifndef GL_NVX_linked_gpu_multicast +#define GL_NVX_linked_gpu_multicast 1 +#define GL_LGPU_SEPARATE_STORAGE_BIT_NVX 0x0800 +#define GL_MAX_LGPU_GPUS_NVX 0x92BA + typedef void (APIENTRYP PFNGLLGPUNAMEDBUFFERSUBDATANVXPROC) (GLbitfield gpuMask, GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data); + typedef void (APIENTRYP PFNGLLGPUCOPYIMAGESUBDATANVXPROC) (GLuint sourceGpu, GLbitfield destinationGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srxY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); + typedef void (APIENTRYP PFNGLLGPUINTERLOCKNVXPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glLGPUNamedBufferSubDataNVX(GLbitfield gpuMask, GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data); + GLAPI void APIENTRY glLGPUCopyImageSubDataNVX(GLuint sourceGpu, GLbitfield destinationGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srxY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); + GLAPI void APIENTRY glLGPUInterlockNVX(void); +#endif +#endif /* GL_NVX_linked_gpu_multicast */ + +#ifndef GL_NVX_progress_fence +#define GL_NVX_progress_fence 1 + typedef GLuint(APIENTRYP PFNGLCREATEPROGRESSFENCENVXPROC) (void); + typedef void (APIENTRYP PFNGLSIGNALSEMAPHOREUI64NVXPROC) (GLuint signalGpu, GLsizei fenceObjectCount, const GLuint* semaphoreArray, const GLuint64* fenceValueArray); + typedef void (APIENTRYP PFNGLWAITSEMAPHOREUI64NVXPROC) (GLuint waitGpu, GLsizei fenceObjectCount, const GLuint* semaphoreArray, const GLuint64* fenceValueArray); + typedef void (APIENTRYP PFNGLCLIENTWAITSEMAPHOREUI64NVXPROC) (GLsizei fenceObjectCount, const GLuint* semaphoreArray, const GLuint64* fenceValueArray); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLuint APIENTRY glCreateProgressFenceNVX(void); + GLAPI void APIENTRY glSignalSemaphoreui64NVX(GLuint signalGpu, GLsizei fenceObjectCount, const GLuint* semaphoreArray, const GLuint64* fenceValueArray); + GLAPI void APIENTRY glWaitSemaphoreui64NVX(GLuint waitGpu, GLsizei fenceObjectCount, const GLuint* semaphoreArray, const GLuint64* fenceValueArray); + GLAPI void APIENTRY glClientWaitSemaphoreui64NVX(GLsizei fenceObjectCount, const GLuint* semaphoreArray, const GLuint64* fenceValueArray); +#endif +#endif /* GL_NVX_progress_fence */ + +#ifndef GL_NV_alpha_to_coverage_dither_control +#define GL_NV_alpha_to_coverage_dither_control 1 +#define GL_ALPHA_TO_COVERAGE_DITHER_DEFAULT_NV 0x934D +#define GL_ALPHA_TO_COVERAGE_DITHER_ENABLE_NV 0x934E +#define GL_ALPHA_TO_COVERAGE_DITHER_DISABLE_NV 0x934F +#define GL_ALPHA_TO_COVERAGE_DITHER_MODE_NV 0x92BF + typedef void (APIENTRYP PFNGLALPHATOCOVERAGEDITHERCONTROLNVPROC) (GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glAlphaToCoverageDitherControlNV(GLenum mode); +#endif +#endif /* GL_NV_alpha_to_coverage_dither_control */ + +#ifndef GL_NV_bindless_multi_draw_indirect +#define GL_NV_bindless_multi_draw_indirect 1 + typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC) (GLenum mode, const void* indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); + typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC) (GLenum mode, GLenum type, const void* indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessNV(GLenum mode, const void* indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); + GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessNV(GLenum mode, GLenum type, const void* indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); +#endif +#endif /* GL_NV_bindless_multi_draw_indirect */ + +#ifndef GL_NV_bindless_multi_draw_indirect_count +#define GL_NV_bindless_multi_draw_indirect_count 1 + typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, const void* indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); + typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, GLenum type, const void* indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessCountNV(GLenum mode, const void* indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); + GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessCountNV(GLenum mode, GLenum type, const void* indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); +#endif +#endif /* GL_NV_bindless_multi_draw_indirect_count */ + +#ifndef GL_NV_bindless_texture +#define GL_NV_bindless_texture 1 + typedef GLuint64(APIENTRYP PFNGLGETTEXTUREHANDLENVPROC) (GLuint texture); + typedef GLuint64(APIENTRYP PFNGLGETTEXTURESAMPLERHANDLENVPROC) (GLuint texture, GLuint sampler); + typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle); + typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC) (GLuint64 handle); + typedef GLuint64(APIENTRYP PFNGLGETIMAGEHANDLENVPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); + typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access); + typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC) (GLuint64 handle); + typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64NVPROC) (GLint location, GLuint64 value); + typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VNVPROC) (GLint location, GLsizei count, const GLuint64* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC) (GLuint program, GLint location, GLuint64 value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64* values); + typedef GLboolean(APIENTRYP PFNGLISTEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle); + typedef GLboolean(APIENTRYP PFNGLISIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLuint64 APIENTRY glGetTextureHandleNV(GLuint texture); + GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleNV(GLuint texture, GLuint sampler); + GLAPI void APIENTRY glMakeTextureHandleResidentNV(GLuint64 handle); + GLAPI void APIENTRY glMakeTextureHandleNonResidentNV(GLuint64 handle); + GLAPI GLuint64 APIENTRY glGetImageHandleNV(GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); + GLAPI void APIENTRY glMakeImageHandleResidentNV(GLuint64 handle, GLenum access); + GLAPI void APIENTRY glMakeImageHandleNonResidentNV(GLuint64 handle); + GLAPI void APIENTRY glUniformHandleui64NV(GLint location, GLuint64 value); + GLAPI void APIENTRY glUniformHandleui64vNV(GLint location, GLsizei count, const GLuint64* value); + GLAPI void APIENTRY glProgramUniformHandleui64NV(GLuint program, GLint location, GLuint64 value); + GLAPI void APIENTRY glProgramUniformHandleui64vNV(GLuint program, GLint location, GLsizei count, const GLuint64* values); + GLAPI GLboolean APIENTRY glIsTextureHandleResidentNV(GLuint64 handle); + GLAPI GLboolean APIENTRY glIsImageHandleResidentNV(GLuint64 handle); +#endif +#endif /* GL_NV_bindless_texture */ + +#ifndef GL_NV_blend_equation_advanced +#define GL_NV_blend_equation_advanced 1 +#define GL_BLEND_OVERLAP_NV 0x9281 +#define GL_BLEND_PREMULTIPLIED_SRC_NV 0x9280 +#define GL_BLUE_NV 0x1905 +#define GL_COLORBURN_NV 0x929A +#define GL_COLORDODGE_NV 0x9299 +#define GL_CONJOINT_NV 0x9284 +#define GL_CONTRAST_NV 0x92A1 +#define GL_DARKEN_NV 0x9297 +#define GL_DIFFERENCE_NV 0x929E +#define GL_DISJOINT_NV 0x9283 +#define GL_DST_ATOP_NV 0x928F +#define GL_DST_IN_NV 0x928B +#define GL_DST_NV 0x9287 +#define GL_DST_OUT_NV 0x928D +#define GL_DST_OVER_NV 0x9289 +#define GL_EXCLUSION_NV 0x92A0 +#define GL_GREEN_NV 0x1904 +#define GL_HARDLIGHT_NV 0x929B +#define GL_HARDMIX_NV 0x92A9 +#define GL_HSL_COLOR_NV 0x92AF +#define GL_HSL_HUE_NV 0x92AD +#define GL_HSL_LUMINOSITY_NV 0x92B0 +#define GL_HSL_SATURATION_NV 0x92AE +#define GL_INVERT_OVG_NV 0x92B4 +#define GL_INVERT_RGB_NV 0x92A3 +#define GL_LIGHTEN_NV 0x9298 +#define GL_LINEARBURN_NV 0x92A5 +#define GL_LINEARDODGE_NV 0x92A4 +#define GL_LINEARLIGHT_NV 0x92A7 +#define GL_MINUS_CLAMPED_NV 0x92B3 +#define GL_MINUS_NV 0x929F +#define GL_MULTIPLY_NV 0x9294 +#define GL_OVERLAY_NV 0x9296 +#define GL_PINLIGHT_NV 0x92A8 +#define GL_PLUS_CLAMPED_ALPHA_NV 0x92B2 +#define GL_PLUS_CLAMPED_NV 0x92B1 +#define GL_PLUS_DARKER_NV 0x9292 +#define GL_PLUS_NV 0x9291 +#define GL_RED_NV 0x1903 +#define GL_SCREEN_NV 0x9295 +#define GL_SOFTLIGHT_NV 0x929C +#define GL_SRC_ATOP_NV 0x928E +#define GL_SRC_IN_NV 0x928A +#define GL_SRC_NV 0x9286 +#define GL_SRC_OUT_NV 0x928C +#define GL_SRC_OVER_NV 0x9288 +#define GL_UNCORRELATED_NV 0x9282 +#define GL_VIVIDLIGHT_NV 0x92A6 +#define GL_XOR_NV 0x1506 + typedef void (APIENTRYP PFNGLBLENDPARAMETERINVPROC) (GLenum pname, GLint value); + typedef void (APIENTRYP PFNGLBLENDBARRIERNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBlendParameteriNV(GLenum pname, GLint value); + GLAPI void APIENTRY glBlendBarrierNV(void); +#endif +#endif /* GL_NV_blend_equation_advanced */ + +#ifndef GL_NV_blend_equation_advanced_coherent +#define GL_NV_blend_equation_advanced_coherent 1 +#define GL_BLEND_ADVANCED_COHERENT_NV 0x9285 +#endif /* GL_NV_blend_equation_advanced_coherent */ + +#ifndef GL_NV_blend_minmax_factor +#define GL_NV_blend_minmax_factor 1 +#endif /* GL_NV_blend_minmax_factor */ + +#ifndef GL_NV_blend_square +#define GL_NV_blend_square 1 +#endif /* GL_NV_blend_square */ + +#ifndef GL_NV_clip_space_w_scaling +#define GL_NV_clip_space_w_scaling 1 +#define GL_VIEWPORT_POSITION_W_SCALE_NV 0x937C +#define GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV 0x937D +#define GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV 0x937E + typedef void (APIENTRYP PFNGLVIEWPORTPOSITIONWSCALENVPROC) (GLuint index, GLfloat xcoeff, GLfloat ycoeff); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glViewportPositionWScaleNV(GLuint index, GLfloat xcoeff, GLfloat ycoeff); +#endif +#endif /* GL_NV_clip_space_w_scaling */ + +#ifndef GL_NV_command_list +#define GL_NV_command_list 1 +#define GL_TERMINATE_SEQUENCE_COMMAND_NV 0x0000 +#define GL_NOP_COMMAND_NV 0x0001 +#define GL_DRAW_ELEMENTS_COMMAND_NV 0x0002 +#define GL_DRAW_ARRAYS_COMMAND_NV 0x0003 +#define GL_DRAW_ELEMENTS_STRIP_COMMAND_NV 0x0004 +#define GL_DRAW_ARRAYS_STRIP_COMMAND_NV 0x0005 +#define GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV 0x0006 +#define GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV 0x0007 +#define GL_ELEMENT_ADDRESS_COMMAND_NV 0x0008 +#define GL_ATTRIBUTE_ADDRESS_COMMAND_NV 0x0009 +#define GL_UNIFORM_ADDRESS_COMMAND_NV 0x000A +#define GL_BLEND_COLOR_COMMAND_NV 0x000B +#define GL_STENCIL_REF_COMMAND_NV 0x000C +#define GL_LINE_WIDTH_COMMAND_NV 0x000D +#define GL_POLYGON_OFFSET_COMMAND_NV 0x000E +#define GL_ALPHA_REF_COMMAND_NV 0x000F +#define GL_VIEWPORT_COMMAND_NV 0x0010 +#define GL_SCISSOR_COMMAND_NV 0x0011 +#define GL_FRONT_FACE_COMMAND_NV 0x0012 + typedef void (APIENTRYP PFNGLCREATESTATESNVPROC) (GLsizei n, GLuint* states); + typedef void (APIENTRYP PFNGLDELETESTATESNVPROC) (GLsizei n, const GLuint* states); + typedef GLboolean(APIENTRYP PFNGLISSTATENVPROC) (GLuint state); + typedef void (APIENTRYP PFNGLSTATECAPTURENVPROC) (GLuint state, GLenum mode); + typedef GLuint(APIENTRYP PFNGLGETCOMMANDHEADERNVPROC) (GLenum tokenID, GLuint size); + typedef GLushort(APIENTRYP PFNGLGETSTAGEINDEXNVPROC) (GLenum shadertype); + typedef void (APIENTRYP PFNGLDRAWCOMMANDSNVPROC) (GLenum primitiveMode, GLuint buffer, const GLintptr* indirects, const GLsizei* sizes, GLuint count); + typedef void (APIENTRYP PFNGLDRAWCOMMANDSADDRESSNVPROC) (GLenum primitiveMode, const GLuint64* indirects, const GLsizei* sizes, GLuint count); + typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESNVPROC) (GLuint buffer, const GLintptr* indirects, const GLsizei* sizes, const GLuint* states, const GLuint* fbos, GLuint count); + typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESADDRESSNVPROC) (const GLuint64* indirects, const GLsizei* sizes, const GLuint* states, const GLuint* fbos, GLuint count); + typedef void (APIENTRYP PFNGLCREATECOMMANDLISTSNVPROC) (GLsizei n, GLuint* lists); + typedef void (APIENTRYP PFNGLDELETECOMMANDLISTSNVPROC) (GLsizei n, const GLuint* lists); + typedef GLboolean(APIENTRYP PFNGLISCOMMANDLISTNVPROC) (GLuint list); + typedef void (APIENTRYP PFNGLLISTDRAWCOMMANDSSTATESCLIENTNVPROC) (GLuint list, GLuint segment, const void** indirects, const GLsizei* sizes, const GLuint* states, const GLuint* fbos, GLuint count); + typedef void (APIENTRYP PFNGLCOMMANDLISTSEGMENTSNVPROC) (GLuint list, GLuint segments); + typedef void (APIENTRYP PFNGLCOMPILECOMMANDLISTNVPROC) (GLuint list); + typedef void (APIENTRYP PFNGLCALLCOMMANDLISTNVPROC) (GLuint list); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glCreateStatesNV(GLsizei n, GLuint* states); + GLAPI void APIENTRY glDeleteStatesNV(GLsizei n, const GLuint* states); + GLAPI GLboolean APIENTRY glIsStateNV(GLuint state); + GLAPI void APIENTRY glStateCaptureNV(GLuint state, GLenum mode); + GLAPI GLuint APIENTRY glGetCommandHeaderNV(GLenum tokenID, GLuint size); + GLAPI GLushort APIENTRY glGetStageIndexNV(GLenum shadertype); + GLAPI void APIENTRY glDrawCommandsNV(GLenum primitiveMode, GLuint buffer, const GLintptr* indirects, const GLsizei* sizes, GLuint count); + GLAPI void APIENTRY glDrawCommandsAddressNV(GLenum primitiveMode, const GLuint64* indirects, const GLsizei* sizes, GLuint count); + GLAPI void APIENTRY glDrawCommandsStatesNV(GLuint buffer, const GLintptr* indirects, const GLsizei* sizes, const GLuint* states, const GLuint* fbos, GLuint count); + GLAPI void APIENTRY glDrawCommandsStatesAddressNV(const GLuint64* indirects, const GLsizei* sizes, const GLuint* states, const GLuint* fbos, GLuint count); + GLAPI void APIENTRY glCreateCommandListsNV(GLsizei n, GLuint* lists); + GLAPI void APIENTRY glDeleteCommandListsNV(GLsizei n, const GLuint* lists); + GLAPI GLboolean APIENTRY glIsCommandListNV(GLuint list); + GLAPI void APIENTRY glListDrawCommandsStatesClientNV(GLuint list, GLuint segment, const void** indirects, const GLsizei* sizes, const GLuint* states, const GLuint* fbos, GLuint count); + GLAPI void APIENTRY glCommandListSegmentsNV(GLuint list, GLuint segments); + GLAPI void APIENTRY glCompileCommandListNV(GLuint list); + GLAPI void APIENTRY glCallCommandListNV(GLuint list); +#endif +#endif /* GL_NV_command_list */ + +#ifndef GL_NV_compute_program5 +#define GL_NV_compute_program5 1 +#define GL_COMPUTE_PROGRAM_NV 0x90FB +#define GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV 0x90FC +#endif /* GL_NV_compute_program5 */ + +#ifndef GL_NV_compute_shader_derivatives +#define GL_NV_compute_shader_derivatives 1 +#endif /* GL_NV_compute_shader_derivatives */ + +#ifndef GL_NV_conditional_render +#define GL_NV_conditional_render 1 +#define GL_QUERY_WAIT_NV 0x8E13 +#define GL_QUERY_NO_WAIT_NV 0x8E14 +#define GL_QUERY_BY_REGION_WAIT_NV 0x8E15 +#define GL_QUERY_BY_REGION_NO_WAIT_NV 0x8E16 + typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode); + typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBeginConditionalRenderNV(GLuint id, GLenum mode); + GLAPI void APIENTRY glEndConditionalRenderNV(void); +#endif +#endif /* GL_NV_conditional_render */ + +#ifndef GL_NV_conservative_raster +#define GL_NV_conservative_raster 1 +#define GL_CONSERVATIVE_RASTERIZATION_NV 0x9346 +#define GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV 0x9347 +#define GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV 0x9348 +#define GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV 0x9349 + typedef void (APIENTRYP PFNGLSUBPIXELPRECISIONBIASNVPROC) (GLuint xbits, GLuint ybits); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glSubpixelPrecisionBiasNV(GLuint xbits, GLuint ybits); +#endif +#endif /* GL_NV_conservative_raster */ + +#ifndef GL_NV_conservative_raster_dilate +#define GL_NV_conservative_raster_dilate 1 +#define GL_CONSERVATIVE_RASTER_DILATE_NV 0x9379 +#define GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV 0x937A +#define GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV 0x937B + typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERFNVPROC) (GLenum pname, GLfloat value); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glConservativeRasterParameterfNV(GLenum pname, GLfloat value); +#endif +#endif /* GL_NV_conservative_raster_dilate */ + +#ifndef GL_NV_conservative_raster_pre_snap +#define GL_NV_conservative_raster_pre_snap 1 +#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_NV 0x9550 +#endif /* GL_NV_conservative_raster_pre_snap */ + +#ifndef GL_NV_conservative_raster_pre_snap_triangles +#define GL_NV_conservative_raster_pre_snap_triangles 1 +#define GL_CONSERVATIVE_RASTER_MODE_NV 0x954D +#define GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV 0x954E +#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV 0x954F + typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERINVPROC) (GLenum pname, GLint param); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glConservativeRasterParameteriNV(GLenum pname, GLint param); +#endif +#endif /* GL_NV_conservative_raster_pre_snap_triangles */ + +#ifndef GL_NV_conservative_raster_underestimation +#define GL_NV_conservative_raster_underestimation 1 +#endif /* GL_NV_conservative_raster_underestimation */ + +#ifndef GL_NV_copy_depth_to_color +#define GL_NV_copy_depth_to_color 1 +#define GL_DEPTH_STENCIL_TO_RGBA_NV 0x886E +#define GL_DEPTH_STENCIL_TO_BGRA_NV 0x886F +#endif /* GL_NV_copy_depth_to_color */ + +#ifndef GL_NV_copy_image +#define GL_NV_copy_image 1 + typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATANVPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glCopyImageSubDataNV(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); +#endif +#endif /* GL_NV_copy_image */ + +#ifndef GL_NV_deep_texture3D +#define GL_NV_deep_texture3D 1 +#define GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV 0x90D0 +#define GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV 0x90D1 +#endif /* GL_NV_deep_texture3D */ + +#ifndef GL_NV_depth_buffer_float +#define GL_NV_depth_buffer_float 1 +#define GL_DEPTH_COMPONENT32F_NV 0x8DAB +#define GL_DEPTH32F_STENCIL8_NV 0x8DAC +#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD +#define GL_DEPTH_BUFFER_FLOAT_MODE_NV 0x8DAF + typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar); + typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC) (GLdouble depth); + typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDepthRangedNV(GLdouble zNear, GLdouble zFar); + GLAPI void APIENTRY glClearDepthdNV(GLdouble depth); + GLAPI void APIENTRY glDepthBoundsdNV(GLdouble zmin, GLdouble zmax); +#endif +#endif /* GL_NV_depth_buffer_float */ + +#ifndef GL_NV_depth_clamp +#define GL_NV_depth_clamp 1 +#define GL_DEPTH_CLAMP_NV 0x864F +#endif /* GL_NV_depth_clamp */ + +#ifndef GL_NV_draw_texture +#define GL_NV_draw_texture 1 + typedef void (APIENTRYP PFNGLDRAWTEXTURENVPROC) (GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawTextureNV(GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); +#endif +#endif /* GL_NV_draw_texture */ + +#ifndef GL_NV_draw_vulkan_image +#define GL_NV_draw_vulkan_image 1 + typedef void (APIENTRY* GLVULKANPROCNV)(void); + typedef void (APIENTRYP PFNGLDRAWVKIMAGENVPROC) (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); + typedef GLVULKANPROCNV(APIENTRYP PFNGLGETVKPROCADDRNVPROC) (const GLchar* name); + typedef void (APIENTRYP PFNGLWAITVKSEMAPHORENVPROC) (GLuint64 vkSemaphore); + typedef void (APIENTRYP PFNGLSIGNALVKSEMAPHORENVPROC) (GLuint64 vkSemaphore); + typedef void (APIENTRYP PFNGLSIGNALVKFENCENVPROC) (GLuint64 vkFence); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawVkImageNV(GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); + GLAPI GLVULKANPROCNV APIENTRY glGetVkProcAddrNV(const GLchar* name); + GLAPI void APIENTRY glWaitVkSemaphoreNV(GLuint64 vkSemaphore); + GLAPI void APIENTRY glSignalVkSemaphoreNV(GLuint64 vkSemaphore); + GLAPI void APIENTRY glSignalVkFenceNV(GLuint64 vkFence); +#endif +#endif /* GL_NV_draw_vulkan_image */ + +#ifndef GL_NV_evaluators +#define GL_NV_evaluators 1 +#define GL_EVAL_2D_NV 0x86C0 +#define GL_EVAL_TRIANGULAR_2D_NV 0x86C1 +#define GL_MAP_TESSELLATION_NV 0x86C2 +#define GL_MAP_ATTRIB_U_ORDER_NV 0x86C3 +#define GL_MAP_ATTRIB_V_ORDER_NV 0x86C4 +#define GL_EVAL_FRACTIONAL_TESSELLATION_NV 0x86C5 +#define GL_EVAL_VERTEX_ATTRIB0_NV 0x86C6 +#define GL_EVAL_VERTEX_ATTRIB1_NV 0x86C7 +#define GL_EVAL_VERTEX_ATTRIB2_NV 0x86C8 +#define GL_EVAL_VERTEX_ATTRIB3_NV 0x86C9 +#define GL_EVAL_VERTEX_ATTRIB4_NV 0x86CA +#define GL_EVAL_VERTEX_ATTRIB5_NV 0x86CB +#define GL_EVAL_VERTEX_ATTRIB6_NV 0x86CC +#define GL_EVAL_VERTEX_ATTRIB7_NV 0x86CD +#define GL_EVAL_VERTEX_ATTRIB8_NV 0x86CE +#define GL_EVAL_VERTEX_ATTRIB9_NV 0x86CF +#define GL_EVAL_VERTEX_ATTRIB10_NV 0x86D0 +#define GL_EVAL_VERTEX_ATTRIB11_NV 0x86D1 +#define GL_EVAL_VERTEX_ATTRIB12_NV 0x86D2 +#define GL_EVAL_VERTEX_ATTRIB13_NV 0x86D3 +#define GL_EVAL_VERTEX_ATTRIB14_NV 0x86D4 +#define GL_EVAL_VERTEX_ATTRIB15_NV 0x86D5 +#define GL_MAX_MAP_TESSELLATION_NV 0x86D6 +#define GL_MAX_RATIONAL_EVAL_ORDER_NV 0x86D7 + typedef void (APIENTRYP PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void* points); + typedef void (APIENTRYP PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void* points); + typedef void (APIENTRYP PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMapControlPointsNV(GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void* points); + GLAPI void APIENTRY glMapParameterivNV(GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glMapParameterfvNV(GLenum target, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glGetMapControlPointsNV(GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void* points); + GLAPI void APIENTRY glGetMapParameterivNV(GLenum target, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetMapParameterfvNV(GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetMapAttribParameterivNV(GLenum target, GLuint index, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetMapAttribParameterfvNV(GLenum target, GLuint index, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glEvalMapsNV(GLenum target, GLenum mode); +#endif +#endif /* GL_NV_evaluators */ + +#ifndef GL_NV_explicit_multisample +#define GL_NV_explicit_multisample 1 +#define GL_SAMPLE_POSITION_NV 0x8E50 +#define GL_SAMPLE_MASK_NV 0x8E51 +#define GL_SAMPLE_MASK_VALUE_NV 0x8E52 +#define GL_TEXTURE_BINDING_RENDERBUFFER_NV 0x8E53 +#define GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV 0x8E54 +#define GL_TEXTURE_RENDERBUFFER_NV 0x8E55 +#define GL_SAMPLER_RENDERBUFFER_NV 0x8E56 +#define GL_INT_SAMPLER_RENDERBUFFER_NV 0x8E57 +#define GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV 0x8E58 +#define GL_MAX_SAMPLE_MASK_WORDS_NV 0x8E59 + typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVNVPROC) (GLenum pname, GLuint index, GLfloat* val); + typedef void (APIENTRYP PFNGLSAMPLEMASKINDEXEDNVPROC) (GLuint index, GLbitfield mask); + typedef void (APIENTRYP PFNGLTEXRENDERBUFFERNVPROC) (GLenum target, GLuint renderbuffer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGetMultisamplefvNV(GLenum pname, GLuint index, GLfloat* val); + GLAPI void APIENTRY glSampleMaskIndexedNV(GLuint index, GLbitfield mask); + GLAPI void APIENTRY glTexRenderbufferNV(GLenum target, GLuint renderbuffer); +#endif +#endif /* GL_NV_explicit_multisample */ + +#ifndef GL_NV_fence +#define GL_NV_fence 1 +#define GL_ALL_COMPLETED_NV 0x84F2 +#define GL_FENCE_STATUS_NV 0x84F3 +#define GL_FENCE_CONDITION_NV 0x84F4 + typedef void (APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint* fences); + typedef void (APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint* fences); + typedef GLboolean(APIENTRYP PFNGLISFENCENVPROC) (GLuint fence); + typedef GLboolean(APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence); + typedef void (APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence); + typedef void (APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDeleteFencesNV(GLsizei n, const GLuint* fences); + GLAPI void APIENTRY glGenFencesNV(GLsizei n, GLuint* fences); + GLAPI GLboolean APIENTRY glIsFenceNV(GLuint fence); + GLAPI GLboolean APIENTRY glTestFenceNV(GLuint fence); + GLAPI void APIENTRY glGetFenceivNV(GLuint fence, GLenum pname, GLint* params); + GLAPI void APIENTRY glFinishFenceNV(GLuint fence); + GLAPI void APIENTRY glSetFenceNV(GLuint fence, GLenum condition); +#endif +#endif /* GL_NV_fence */ + +#ifndef GL_NV_fill_rectangle +#define GL_NV_fill_rectangle 1 +#define GL_FILL_RECTANGLE_NV 0x933C +#endif /* GL_NV_fill_rectangle */ + +#ifndef GL_NV_float_buffer +#define GL_NV_float_buffer 1 +#define GL_FLOAT_R_NV 0x8880 +#define GL_FLOAT_RG_NV 0x8881 +#define GL_FLOAT_RGB_NV 0x8882 +#define GL_FLOAT_RGBA_NV 0x8883 +#define GL_FLOAT_R16_NV 0x8884 +#define GL_FLOAT_R32_NV 0x8885 +#define GL_FLOAT_RG16_NV 0x8886 +#define GL_FLOAT_RG32_NV 0x8887 +#define GL_FLOAT_RGB16_NV 0x8888 +#define GL_FLOAT_RGB32_NV 0x8889 +#define GL_FLOAT_RGBA16_NV 0x888A +#define GL_FLOAT_RGBA32_NV 0x888B +#define GL_TEXTURE_FLOAT_COMPONENTS_NV 0x888C +#define GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D +#define GL_FLOAT_RGBA_MODE_NV 0x888E +#endif /* GL_NV_float_buffer */ + +#ifndef GL_NV_fog_distance +#define GL_NV_fog_distance 1 +#define GL_FOG_DISTANCE_MODE_NV 0x855A +#define GL_EYE_RADIAL_NV 0x855B +#define GL_EYE_PLANE_ABSOLUTE_NV 0x855C +#endif /* GL_NV_fog_distance */ + +#ifndef GL_NV_fragment_coverage_to_color +#define GL_NV_fragment_coverage_to_color 1 +#define GL_FRAGMENT_COVERAGE_TO_COLOR_NV 0x92DD +#define GL_FRAGMENT_COVERAGE_COLOR_NV 0x92DE + typedef void (APIENTRYP PFNGLFRAGMENTCOVERAGECOLORNVPROC) (GLuint color); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFragmentCoverageColorNV(GLuint color); +#endif +#endif /* GL_NV_fragment_coverage_to_color */ + +#ifndef GL_NV_fragment_program +#define GL_NV_fragment_program 1 +#define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868 +#define GL_FRAGMENT_PROGRAM_NV 0x8870 +#define GL_MAX_TEXTURE_COORDS_NV 0x8871 +#define GL_MAX_TEXTURE_IMAGE_UNITS_NV 0x8872 +#define GL_FRAGMENT_PROGRAM_BINDING_NV 0x8873 +#define GL_PROGRAM_ERROR_STRING_NV 0x8874 + typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, const GLfloat* v); + typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, const GLdouble* v); + typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLfloat* params); + typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLdouble* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glProgramNamedParameter4fNV(GLuint id, GLsizei len, const GLubyte* name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glProgramNamedParameter4fvNV(GLuint id, GLsizei len, const GLubyte* name, const GLfloat* v); + GLAPI void APIENTRY glProgramNamedParameter4dNV(GLuint id, GLsizei len, const GLubyte* name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glProgramNamedParameter4dvNV(GLuint id, GLsizei len, const GLubyte* name, const GLdouble* v); + GLAPI void APIENTRY glGetProgramNamedParameterfvNV(GLuint id, GLsizei len, const GLubyte* name, GLfloat* params); + GLAPI void APIENTRY glGetProgramNamedParameterdvNV(GLuint id, GLsizei len, const GLubyte* name, GLdouble* params); +#endif +#endif /* GL_NV_fragment_program */ + +#ifndef GL_NV_fragment_program2 +#define GL_NV_fragment_program2 1 +#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4 +#define GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5 +#define GL_MAX_PROGRAM_IF_DEPTH_NV 0x88F6 +#define GL_MAX_PROGRAM_LOOP_DEPTH_NV 0x88F7 +#define GL_MAX_PROGRAM_LOOP_COUNT_NV 0x88F8 +#endif /* GL_NV_fragment_program2 */ + +#ifndef GL_NV_fragment_program4 +#define GL_NV_fragment_program4 1 +#endif /* GL_NV_fragment_program4 */ + +#ifndef GL_NV_fragment_program_option +#define GL_NV_fragment_program_option 1 +#endif /* GL_NV_fragment_program_option */ + +#ifndef GL_NV_fragment_shader_barycentric +#define GL_NV_fragment_shader_barycentric 1 +#endif /* GL_NV_fragment_shader_barycentric */ + +#ifndef GL_NV_fragment_shader_interlock +#define GL_NV_fragment_shader_interlock 1 +#endif /* GL_NV_fragment_shader_interlock */ + +#ifndef GL_NV_framebuffer_mixed_samples +#define GL_NV_framebuffer_mixed_samples 1 +#define GL_COVERAGE_MODULATION_TABLE_NV 0x9331 +#define GL_COLOR_SAMPLES_NV 0x8E20 +#define GL_DEPTH_SAMPLES_NV 0x932D +#define GL_STENCIL_SAMPLES_NV 0x932E +#define GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV 0x932F +#define GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV 0x9330 +#define GL_COVERAGE_MODULATION_NV 0x9332 +#define GL_COVERAGE_MODULATION_TABLE_SIZE_NV 0x9333 + typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONTABLENVPROC) (GLsizei n, const GLfloat* v); + typedef void (APIENTRYP PFNGLGETCOVERAGEMODULATIONTABLENVPROC) (GLsizei bufSize, GLfloat* v); + typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONNVPROC) (GLenum components); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glCoverageModulationTableNV(GLsizei n, const GLfloat* v); + GLAPI void APIENTRY glGetCoverageModulationTableNV(GLsizei bufSize, GLfloat* v); + GLAPI void APIENTRY glCoverageModulationNV(GLenum components); +#endif +#endif /* GL_NV_framebuffer_mixed_samples */ + +#ifndef GL_NV_framebuffer_multisample_coverage +#define GL_NV_framebuffer_multisample_coverage 1 +#define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB +#define GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10 +#define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11 +#define GL_MULTISAMPLE_COVERAGE_MODES_NV 0x8E12 + typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glRenderbufferStorageMultisampleCoverageNV(GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +#endif +#endif /* GL_NV_framebuffer_multisample_coverage */ + +#ifndef GL_NV_geometry_program4 +#define GL_NV_geometry_program4 1 +#define GL_GEOMETRY_PROGRAM_NV 0x8C26 +#define GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27 +#define GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28 + typedef void (APIENTRYP PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glProgramVertexLimitNV(GLenum target, GLint limit); + GLAPI void APIENTRY glFramebufferTextureEXT(GLenum target, GLenum attachment, GLuint texture, GLint level); + GLAPI void APIENTRY glFramebufferTextureFaceEXT(GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); +#endif +#endif /* GL_NV_geometry_program4 */ + +#ifndef GL_NV_geometry_shader4 +#define GL_NV_geometry_shader4 1 +#endif /* GL_NV_geometry_shader4 */ + +#ifndef GL_NV_geometry_shader_passthrough +#define GL_NV_geometry_shader_passthrough 1 +#endif /* GL_NV_geometry_shader_passthrough */ + +#ifndef GL_NV_gpu_multicast +#define GL_NV_gpu_multicast 1 +#define GL_PER_GPU_STORAGE_BIT_NV 0x0800 +#define GL_MULTICAST_GPUS_NV 0x92BA +#define GL_RENDER_GPU_MASK_NV 0x9558 +#define GL_PER_GPU_STORAGE_NV 0x9548 +#define GL_MULTICAST_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9549 + typedef void (APIENTRYP PFNGLRENDERGPUMASKNVPROC) (GLbitfield mask); + typedef void (APIENTRYP PFNGLMULTICASTBUFFERSUBDATANVPROC) (GLbitfield gpuMask, GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data); + typedef void (APIENTRYP PFNGLMULTICASTCOPYBUFFERSUBDATANVPROC) (GLuint readGpu, GLbitfield writeGpuMask, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + typedef void (APIENTRYP PFNGLMULTICASTCOPYIMAGESUBDATANVPROC) (GLuint srcGpu, GLbitfield dstGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); + typedef void (APIENTRYP PFNGLMULTICASTBLITFRAMEBUFFERNVPROC) (GLuint srcGpu, GLuint dstGpu, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); + typedef void (APIENTRYP PFNGLMULTICASTFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLuint gpu, GLuint framebuffer, GLuint start, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLMULTICASTBARRIERNVPROC) (void); + typedef void (APIENTRYP PFNGLMULTICASTWAITSYNCNVPROC) (GLuint signalGpu, GLbitfield waitGpuMask); + typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTIVNVPROC) (GLuint gpu, GLuint id, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTUIVNVPROC) (GLuint gpu, GLuint id, GLenum pname, GLuint* params); + typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTI64VNVPROC) (GLuint gpu, GLuint id, GLenum pname, GLint64* params); + typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTUI64VNVPROC) (GLuint gpu, GLuint id, GLenum pname, GLuint64* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glRenderGpuMaskNV(GLbitfield mask); + GLAPI void APIENTRY glMulticastBufferSubDataNV(GLbitfield gpuMask, GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data); + GLAPI void APIENTRY glMulticastCopyBufferSubDataNV(GLuint readGpu, GLbitfield writeGpuMask, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + GLAPI void APIENTRY glMulticastCopyImageSubDataNV(GLuint srcGpu, GLbitfield dstGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); + GLAPI void APIENTRY glMulticastBlitFramebufferNV(GLuint srcGpu, GLuint dstGpu, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); + GLAPI void APIENTRY glMulticastFramebufferSampleLocationsfvNV(GLuint gpu, GLuint framebuffer, GLuint start, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glMulticastBarrierNV(void); + GLAPI void APIENTRY glMulticastWaitSyncNV(GLuint signalGpu, GLbitfield waitGpuMask); + GLAPI void APIENTRY glMulticastGetQueryObjectivNV(GLuint gpu, GLuint id, GLenum pname, GLint* params); + GLAPI void APIENTRY glMulticastGetQueryObjectuivNV(GLuint gpu, GLuint id, GLenum pname, GLuint* params); + GLAPI void APIENTRY glMulticastGetQueryObjecti64vNV(GLuint gpu, GLuint id, GLenum pname, GLint64* params); + GLAPI void APIENTRY glMulticastGetQueryObjectui64vNV(GLuint gpu, GLuint id, GLenum pname, GLuint64* params); +#endif +#endif /* GL_NV_gpu_multicast */ + +#ifndef GL_NV_gpu_program4 +#define GL_NV_gpu_program4 1 +#define GL_MIN_PROGRAM_TEXEL_OFFSET_NV 0x8904 +#define GL_MAX_PROGRAM_TEXEL_OFFSET_NV 0x8905 +#define GL_PROGRAM_ATTRIB_COMPONENTS_NV 0x8906 +#define GL_PROGRAM_RESULT_COMPONENTS_NV 0x8907 +#define GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV 0x8908 +#define GL_MAX_PROGRAM_RESULT_COMPONENTS_NV 0x8909 +#define GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV 0x8DA5 +#define GL_MAX_PROGRAM_GENERIC_RESULTS_NV 0x8DA6 + typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); + typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint* params); + typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint* params); + typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); + typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint* params); + typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint* params); + typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); + typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint* params); + typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint* params); + typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); + typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint* params); + typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint* params); + typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint* params); + typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint* params); + typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint* params); + typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glProgramLocalParameterI4iNV(GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); + GLAPI void APIENTRY glProgramLocalParameterI4ivNV(GLenum target, GLuint index, const GLint* params); + GLAPI void APIENTRY glProgramLocalParametersI4ivNV(GLenum target, GLuint index, GLsizei count, const GLint* params); + GLAPI void APIENTRY glProgramLocalParameterI4uiNV(GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); + GLAPI void APIENTRY glProgramLocalParameterI4uivNV(GLenum target, GLuint index, const GLuint* params); + GLAPI void APIENTRY glProgramLocalParametersI4uivNV(GLenum target, GLuint index, GLsizei count, const GLuint* params); + GLAPI void APIENTRY glProgramEnvParameterI4iNV(GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); + GLAPI void APIENTRY glProgramEnvParameterI4ivNV(GLenum target, GLuint index, const GLint* params); + GLAPI void APIENTRY glProgramEnvParametersI4ivNV(GLenum target, GLuint index, GLsizei count, const GLint* params); + GLAPI void APIENTRY glProgramEnvParameterI4uiNV(GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); + GLAPI void APIENTRY glProgramEnvParameterI4uivNV(GLenum target, GLuint index, const GLuint* params); + GLAPI void APIENTRY glProgramEnvParametersI4uivNV(GLenum target, GLuint index, GLsizei count, const GLuint* params); + GLAPI void APIENTRY glGetProgramLocalParameterIivNV(GLenum target, GLuint index, GLint* params); + GLAPI void APIENTRY glGetProgramLocalParameterIuivNV(GLenum target, GLuint index, GLuint* params); + GLAPI void APIENTRY glGetProgramEnvParameterIivNV(GLenum target, GLuint index, GLint* params); + GLAPI void APIENTRY glGetProgramEnvParameterIuivNV(GLenum target, GLuint index, GLuint* params); +#endif +#endif /* GL_NV_gpu_program4 */ + +#ifndef GL_NV_gpu_program5 +#define GL_NV_gpu_program5 1 +#define GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV 0x8E5A +#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5B +#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5C +#define GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV 0x8E5D +#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5E +#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5F +#define GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV 0x8F44 +#define GL_MAX_PROGRAM_SUBROUTINE_NUM_NV 0x8F45 + typedef void (APIENTRYP PFNGLPROGRAMSUBROUTINEPARAMETERSUIVNVPROC) (GLenum target, GLsizei count, const GLuint* params); + typedef void (APIENTRYP PFNGLGETPROGRAMSUBROUTINEPARAMETERUIVNVPROC) (GLenum target, GLuint index, GLuint* param); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glProgramSubroutineParametersuivNV(GLenum target, GLsizei count, const GLuint* params); + GLAPI void APIENTRY glGetProgramSubroutineParameteruivNV(GLenum target, GLuint index, GLuint* param); +#endif +#endif /* GL_NV_gpu_program5 */ + +#ifndef GL_NV_gpu_program5_mem_extended +#define GL_NV_gpu_program5_mem_extended 1 +#endif /* GL_NV_gpu_program5_mem_extended */ + +#ifndef GL_NV_gpu_shader5 +#define GL_NV_gpu_shader5 1 +#endif /* GL_NV_gpu_shader5 */ + +#ifndef GL_NV_half_float +#define GL_NV_half_float 1 + typedef unsigned short GLhalfNV; +#define GL_HALF_FLOAT_NV 0x140B + typedef void (APIENTRYP PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y); + typedef void (APIENTRYP PFNGLVERTEX2HVNVPROC) (const GLhalfNV* v); + typedef void (APIENTRYP PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z); + typedef void (APIENTRYP PFNGLVERTEX3HVNVPROC) (const GLhalfNV* v); + typedef void (APIENTRYP PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); + typedef void (APIENTRYP PFNGLVERTEX4HVNVPROC) (const GLhalfNV* v); + typedef void (APIENTRYP PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz); + typedef void (APIENTRYP PFNGLNORMAL3HVNVPROC) (const GLhalfNV* v); + typedef void (APIENTRYP PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); + typedef void (APIENTRYP PFNGLCOLOR3HVNVPROC) (const GLhalfNV* v); + typedef void (APIENTRYP PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha); + typedef void (APIENTRYP PFNGLCOLOR4HVNVPROC) (const GLhalfNV* v); + typedef void (APIENTRYP PFNGLTEXCOORD1HNVPROC) (GLhalfNV s); + typedef void (APIENTRYP PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV* v); + typedef void (APIENTRYP PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t); + typedef void (APIENTRYP PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV* v); + typedef void (APIENTRYP PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r); + typedef void (APIENTRYP PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV* v); + typedef void (APIENTRYP PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); + typedef void (APIENTRYP PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s); + typedef void (APIENTRYP PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t); + typedef void (APIENTRYP PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r); + typedef void (APIENTRYP PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); + typedef void (APIENTRYP PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV* v); + typedef void (APIENTRYP PFNGLFOGCOORDHNVPROC) (GLhalfNV fog); + typedef void (APIENTRYP PFNGLFOGCOORDHVNVPROC) (const GLhalfNV* fog); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); + typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV* v); + typedef void (APIENTRYP PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight); + typedef void (APIENTRYP PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV* weight); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVertex2hNV(GLhalfNV x, GLhalfNV y); + GLAPI void APIENTRY glVertex2hvNV(const GLhalfNV* v); + GLAPI void APIENTRY glVertex3hNV(GLhalfNV x, GLhalfNV y, GLhalfNV z); + GLAPI void APIENTRY glVertex3hvNV(const GLhalfNV* v); + GLAPI void APIENTRY glVertex4hNV(GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); + GLAPI void APIENTRY glVertex4hvNV(const GLhalfNV* v); + GLAPI void APIENTRY glNormal3hNV(GLhalfNV nx, GLhalfNV ny, GLhalfNV nz); + GLAPI void APIENTRY glNormal3hvNV(const GLhalfNV* v); + GLAPI void APIENTRY glColor3hNV(GLhalfNV red, GLhalfNV green, GLhalfNV blue); + GLAPI void APIENTRY glColor3hvNV(const GLhalfNV* v); + GLAPI void APIENTRY glColor4hNV(GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha); + GLAPI void APIENTRY glColor4hvNV(const GLhalfNV* v); + GLAPI void APIENTRY glTexCoord1hNV(GLhalfNV s); + GLAPI void APIENTRY glTexCoord1hvNV(const GLhalfNV* v); + GLAPI void APIENTRY glTexCoord2hNV(GLhalfNV s, GLhalfNV t); + GLAPI void APIENTRY glTexCoord2hvNV(const GLhalfNV* v); + GLAPI void APIENTRY glTexCoord3hNV(GLhalfNV s, GLhalfNV t, GLhalfNV r); + GLAPI void APIENTRY glTexCoord3hvNV(const GLhalfNV* v); + GLAPI void APIENTRY glTexCoord4hNV(GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); + GLAPI void APIENTRY glTexCoord4hvNV(const GLhalfNV* v); + GLAPI void APIENTRY glMultiTexCoord1hNV(GLenum target, GLhalfNV s); + GLAPI void APIENTRY glMultiTexCoord1hvNV(GLenum target, const GLhalfNV* v); + GLAPI void APIENTRY glMultiTexCoord2hNV(GLenum target, GLhalfNV s, GLhalfNV t); + GLAPI void APIENTRY glMultiTexCoord2hvNV(GLenum target, const GLhalfNV* v); + GLAPI void APIENTRY glMultiTexCoord3hNV(GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r); + GLAPI void APIENTRY glMultiTexCoord3hvNV(GLenum target, const GLhalfNV* v); + GLAPI void APIENTRY glMultiTexCoord4hNV(GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); + GLAPI void APIENTRY glMultiTexCoord4hvNV(GLenum target, const GLhalfNV* v); + GLAPI void APIENTRY glVertexAttrib1hNV(GLuint index, GLhalfNV x); + GLAPI void APIENTRY glVertexAttrib1hvNV(GLuint index, const GLhalfNV* v); + GLAPI void APIENTRY glVertexAttrib2hNV(GLuint index, GLhalfNV x, GLhalfNV y); + GLAPI void APIENTRY glVertexAttrib2hvNV(GLuint index, const GLhalfNV* v); + GLAPI void APIENTRY glVertexAttrib3hNV(GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z); + GLAPI void APIENTRY glVertexAttrib3hvNV(GLuint index, const GLhalfNV* v); + GLAPI void APIENTRY glVertexAttrib4hNV(GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); + GLAPI void APIENTRY glVertexAttrib4hvNV(GLuint index, const GLhalfNV* v); + GLAPI void APIENTRY glVertexAttribs1hvNV(GLuint index, GLsizei n, const GLhalfNV* v); + GLAPI void APIENTRY glVertexAttribs2hvNV(GLuint index, GLsizei n, const GLhalfNV* v); + GLAPI void APIENTRY glVertexAttribs3hvNV(GLuint index, GLsizei n, const GLhalfNV* v); + GLAPI void APIENTRY glVertexAttribs4hvNV(GLuint index, GLsizei n, const GLhalfNV* v); + GLAPI void APIENTRY glFogCoordhNV(GLhalfNV fog); + GLAPI void APIENTRY glFogCoordhvNV(const GLhalfNV* fog); + GLAPI void APIENTRY glSecondaryColor3hNV(GLhalfNV red, GLhalfNV green, GLhalfNV blue); + GLAPI void APIENTRY glSecondaryColor3hvNV(const GLhalfNV* v); + GLAPI void APIENTRY glVertexWeighthNV(GLhalfNV weight); + GLAPI void APIENTRY glVertexWeighthvNV(const GLhalfNV* weight); +#endif +#endif /* GL_NV_half_float */ + +#ifndef GL_NV_internalformat_sample_query +#define GL_NV_internalformat_sample_query 1 +#define GL_MULTISAMPLES_NV 0x9371 +#define GL_SUPERSAMPLE_SCALE_X_NV 0x9372 +#define GL_SUPERSAMPLE_SCALE_Y_NV 0x9373 +#define GL_CONFORMANT_NV 0x9374 + typedef void (APIENTRYP PFNGLGETINTERNALFORMATSAMPLEIVNVPROC) (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei count, GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGetInternalformatSampleivNV(GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei count, GLint* params); +#endif +#endif /* GL_NV_internalformat_sample_query */ + +#ifndef GL_NV_light_max_exponent +#define GL_NV_light_max_exponent 1 +#define GL_MAX_SHININESS_NV 0x8504 +#define GL_MAX_SPOT_EXPONENT_NV 0x8505 +#endif /* GL_NV_light_max_exponent */ + +#ifndef GL_NV_memory_attachment +#define GL_NV_memory_attachment 1 +#define GL_ATTACHED_MEMORY_OBJECT_NV 0x95A4 +#define GL_ATTACHED_MEMORY_OFFSET_NV 0x95A5 +#define GL_MEMORY_ATTACHABLE_ALIGNMENT_NV 0x95A6 +#define GL_MEMORY_ATTACHABLE_SIZE_NV 0x95A7 +#define GL_MEMORY_ATTACHABLE_NV 0x95A8 +#define GL_DETACHED_MEMORY_INCARNATION_NV 0x95A9 +#define GL_DETACHED_TEXTURES_NV 0x95AA +#define GL_DETACHED_BUFFERS_NV 0x95AB +#define GL_MAX_DETACHED_TEXTURES_NV 0x95AC +#define GL_MAX_DETACHED_BUFFERS_NV 0x95AD + typedef void (APIENTRYP PFNGLGETMEMORYOBJECTDETACHEDRESOURCESUIVNVPROC) (GLuint memory, GLenum pname, GLint first, GLsizei count, GLuint* params); + typedef void (APIENTRYP PFNGLRESETMEMORYOBJECTPARAMETERNVPROC) (GLuint memory, GLenum pname); + typedef void (APIENTRYP PFNGLTEXATTACHMEMORYNVPROC) (GLenum target, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLBUFFERATTACHMEMORYNVPROC) (GLenum target, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLTEXTUREATTACHMEMORYNVPROC) (GLuint texture, GLuint memory, GLuint64 offset); + typedef void (APIENTRYP PFNGLNAMEDBUFFERATTACHMEMORYNVPROC) (GLuint buffer, GLuint memory, GLuint64 offset); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGetMemoryObjectDetachedResourcesuivNV(GLuint memory, GLenum pname, GLint first, GLsizei count, GLuint* params); + GLAPI void APIENTRY glResetMemoryObjectParameterNV(GLuint memory, GLenum pname); + GLAPI void APIENTRY glTexAttachMemoryNV(GLenum target, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glBufferAttachMemoryNV(GLenum target, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glTextureAttachMemoryNV(GLuint texture, GLuint memory, GLuint64 offset); + GLAPI void APIENTRY glNamedBufferAttachMemoryNV(GLuint buffer, GLuint memory, GLuint64 offset); +#endif +#endif /* GL_NV_memory_attachment */ + +#ifndef GL_NV_memory_object_sparse +#define GL_NV_memory_object_sparse 1 + typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTMEMNVPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); + typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTMEMNVPROC) (GLenum target, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); + typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTMEMNVPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); + typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTMEMNVPROC) (GLuint texture, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBufferPageCommitmentMemNV(GLenum target, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); + GLAPI void APIENTRY glTexPageCommitmentMemNV(GLenum target, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); + GLAPI void APIENTRY glNamedBufferPageCommitmentMemNV(GLuint buffer, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); + GLAPI void APIENTRY glTexturePageCommitmentMemNV(GLuint texture, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); +#endif +#endif /* GL_NV_memory_object_sparse */ + +#ifndef GL_NV_mesh_shader +#define GL_NV_mesh_shader 1 +#define GL_MESH_SHADER_NV 0x9559 +#define GL_TASK_SHADER_NV 0x955A +#define GL_MAX_MESH_UNIFORM_BLOCKS_NV 0x8E60 +#define GL_MAX_MESH_TEXTURE_IMAGE_UNITS_NV 0x8E61 +#define GL_MAX_MESH_IMAGE_UNIFORMS_NV 0x8E62 +#define GL_MAX_MESH_UNIFORM_COMPONENTS_NV 0x8E63 +#define GL_MAX_MESH_ATOMIC_COUNTER_BUFFERS_NV 0x8E64 +#define GL_MAX_MESH_ATOMIC_COUNTERS_NV 0x8E65 +#define GL_MAX_MESH_SHADER_STORAGE_BLOCKS_NV 0x8E66 +#define GL_MAX_COMBINED_MESH_UNIFORM_COMPONENTS_NV 0x8E67 +#define GL_MAX_TASK_UNIFORM_BLOCKS_NV 0x8E68 +#define GL_MAX_TASK_TEXTURE_IMAGE_UNITS_NV 0x8E69 +#define GL_MAX_TASK_IMAGE_UNIFORMS_NV 0x8E6A +#define GL_MAX_TASK_UNIFORM_COMPONENTS_NV 0x8E6B +#define GL_MAX_TASK_ATOMIC_COUNTER_BUFFERS_NV 0x8E6C +#define GL_MAX_TASK_ATOMIC_COUNTERS_NV 0x8E6D +#define GL_MAX_TASK_SHADER_STORAGE_BLOCKS_NV 0x8E6E +#define GL_MAX_COMBINED_TASK_UNIFORM_COMPONENTS_NV 0x8E6F +#define GL_MAX_MESH_WORK_GROUP_INVOCATIONS_NV 0x95A2 +#define GL_MAX_TASK_WORK_GROUP_INVOCATIONS_NV 0x95A3 +#define GL_MAX_MESH_TOTAL_MEMORY_SIZE_NV 0x9536 +#define GL_MAX_TASK_TOTAL_MEMORY_SIZE_NV 0x9537 +#define GL_MAX_MESH_OUTPUT_VERTICES_NV 0x9538 +#define GL_MAX_MESH_OUTPUT_PRIMITIVES_NV 0x9539 +#define GL_MAX_TASK_OUTPUT_COUNT_NV 0x953A +#define GL_MAX_DRAW_MESH_TASKS_COUNT_NV 0x953D +#define GL_MAX_MESH_VIEWS_NV 0x9557 +#define GL_MESH_OUTPUT_PER_VERTEX_GRANULARITY_NV 0x92DF +#define GL_MESH_OUTPUT_PER_PRIMITIVE_GRANULARITY_NV 0x9543 +#define GL_MAX_MESH_WORK_GROUP_SIZE_NV 0x953B +#define GL_MAX_TASK_WORK_GROUP_SIZE_NV 0x953C +#define GL_MESH_WORK_GROUP_SIZE_NV 0x953E +#define GL_TASK_WORK_GROUP_SIZE_NV 0x953F +#define GL_MESH_VERTICES_OUT_NV 0x9579 +#define GL_MESH_PRIMITIVES_OUT_NV 0x957A +#define GL_MESH_OUTPUT_TYPE_NV 0x957B +#define GL_UNIFORM_BLOCK_REFERENCED_BY_MESH_SHADER_NV 0x959C +#define GL_UNIFORM_BLOCK_REFERENCED_BY_TASK_SHADER_NV 0x959D +#define GL_REFERENCED_BY_MESH_SHADER_NV 0x95A0 +#define GL_REFERENCED_BY_TASK_SHADER_NV 0x95A1 +#define GL_MESH_SHADER_BIT_NV 0x00000040 +#define GL_TASK_SHADER_BIT_NV 0x00000080 +#define GL_MESH_SUBROUTINE_NV 0x957C +#define GL_TASK_SUBROUTINE_NV 0x957D +#define GL_MESH_SUBROUTINE_UNIFORM_NV 0x957E +#define GL_TASK_SUBROUTINE_UNIFORM_NV 0x957F +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_MESH_SHADER_NV 0x959E +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TASK_SHADER_NV 0x959F + typedef void (APIENTRYP PFNGLDRAWMESHTASKSNVPROC) (GLuint first, GLuint count); + typedef void (APIENTRYP PFNGLDRAWMESHTASKSINDIRECTNVPROC) (GLintptr indirect); + typedef void (APIENTRYP PFNGLMULTIDRAWMESHTASKSINDIRECTNVPROC) (GLintptr indirect, GLsizei drawcount, GLsizei stride); + typedef void (APIENTRYP PFNGLMULTIDRAWMESHTASKSINDIRECTCOUNTNVPROC) (GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawMeshTasksNV(GLuint first, GLuint count); + GLAPI void APIENTRY glDrawMeshTasksIndirectNV(GLintptr indirect); + GLAPI void APIENTRY glMultiDrawMeshTasksIndirectNV(GLintptr indirect, GLsizei drawcount, GLsizei stride); + GLAPI void APIENTRY glMultiDrawMeshTasksIndirectCountNV(GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#endif +#endif /* GL_NV_mesh_shader */ + +#ifndef GL_NV_multisample_coverage +#define GL_NV_multisample_coverage 1 +#endif /* GL_NV_multisample_coverage */ + +#ifndef GL_NV_multisample_filter_hint +#define GL_NV_multisample_filter_hint 1 +#define GL_MULTISAMPLE_FILTER_HINT_NV 0x8534 +#endif /* GL_NV_multisample_filter_hint */ + +#ifndef GL_NV_occlusion_query +#define GL_NV_occlusion_query 1 +#define GL_PIXEL_COUNTER_BITS_NV 0x8864 +#define GL_CURRENT_OCCLUSION_QUERY_ID_NV 0x8865 +#define GL_PIXEL_COUNT_NV 0x8866 +#define GL_PIXEL_COUNT_AVAILABLE_NV 0x8867 + typedef void (APIENTRYP PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint* ids); + typedef void (APIENTRYP PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint* ids); + typedef GLboolean(APIENTRYP PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id); + typedef void (APIENTRYP PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id); + typedef void (APIENTRYP PFNGLENDOCCLUSIONQUERYNVPROC) (void); + typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGenOcclusionQueriesNV(GLsizei n, GLuint* ids); + GLAPI void APIENTRY glDeleteOcclusionQueriesNV(GLsizei n, const GLuint* ids); + GLAPI GLboolean APIENTRY glIsOcclusionQueryNV(GLuint id); + GLAPI void APIENTRY glBeginOcclusionQueryNV(GLuint id); + GLAPI void APIENTRY glEndOcclusionQueryNV(void); + GLAPI void APIENTRY glGetOcclusionQueryivNV(GLuint id, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetOcclusionQueryuivNV(GLuint id, GLenum pname, GLuint* params); +#endif +#endif /* GL_NV_occlusion_query */ + +#ifndef GL_NV_packed_depth_stencil +#define GL_NV_packed_depth_stencil 1 +#define GL_DEPTH_STENCIL_NV 0x84F9 +#define GL_UNSIGNED_INT_24_8_NV 0x84FA +#endif /* GL_NV_packed_depth_stencil */ + +#ifndef GL_NV_parameter_buffer_object +#define GL_NV_parameter_buffer_object 1 +#define GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV 0x8DA0 +#define GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV 0x8DA1 +#define GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV 0x8DA2 +#define GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV 0x8DA3 +#define GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV 0x8DA4 + typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat* params); + typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint* params); + typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glProgramBufferParametersfvNV(GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat* params); + GLAPI void APIENTRY glProgramBufferParametersIivNV(GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint* params); + GLAPI void APIENTRY glProgramBufferParametersIuivNV(GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint* params); +#endif +#endif /* GL_NV_parameter_buffer_object */ + +#ifndef GL_NV_parameter_buffer_object2 +#define GL_NV_parameter_buffer_object2 1 +#endif /* GL_NV_parameter_buffer_object2 */ + +#ifndef GL_NV_path_rendering +#define GL_NV_path_rendering 1 +#define GL_PATH_FORMAT_SVG_NV 0x9070 +#define GL_PATH_FORMAT_PS_NV 0x9071 +#define GL_STANDARD_FONT_NAME_NV 0x9072 +#define GL_SYSTEM_FONT_NAME_NV 0x9073 +#define GL_FILE_NAME_NV 0x9074 +#define GL_PATH_STROKE_WIDTH_NV 0x9075 +#define GL_PATH_END_CAPS_NV 0x9076 +#define GL_PATH_INITIAL_END_CAP_NV 0x9077 +#define GL_PATH_TERMINAL_END_CAP_NV 0x9078 +#define GL_PATH_JOIN_STYLE_NV 0x9079 +#define GL_PATH_MITER_LIMIT_NV 0x907A +#define GL_PATH_DASH_CAPS_NV 0x907B +#define GL_PATH_INITIAL_DASH_CAP_NV 0x907C +#define GL_PATH_TERMINAL_DASH_CAP_NV 0x907D +#define GL_PATH_DASH_OFFSET_NV 0x907E +#define GL_PATH_CLIENT_LENGTH_NV 0x907F +#define GL_PATH_FILL_MODE_NV 0x9080 +#define GL_PATH_FILL_MASK_NV 0x9081 +#define GL_PATH_FILL_COVER_MODE_NV 0x9082 +#define GL_PATH_STROKE_COVER_MODE_NV 0x9083 +#define GL_PATH_STROKE_MASK_NV 0x9084 +#define GL_COUNT_UP_NV 0x9088 +#define GL_COUNT_DOWN_NV 0x9089 +#define GL_PATH_OBJECT_BOUNDING_BOX_NV 0x908A +#define GL_CONVEX_HULL_NV 0x908B +#define GL_BOUNDING_BOX_NV 0x908D +#define GL_TRANSLATE_X_NV 0x908E +#define GL_TRANSLATE_Y_NV 0x908F +#define GL_TRANSLATE_2D_NV 0x9090 +#define GL_TRANSLATE_3D_NV 0x9091 +#define GL_AFFINE_2D_NV 0x9092 +#define GL_AFFINE_3D_NV 0x9094 +#define GL_TRANSPOSE_AFFINE_2D_NV 0x9096 +#define GL_TRANSPOSE_AFFINE_3D_NV 0x9098 +#define GL_UTF8_NV 0x909A +#define GL_UTF16_NV 0x909B +#define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C +#define GL_PATH_COMMAND_COUNT_NV 0x909D +#define GL_PATH_COORD_COUNT_NV 0x909E +#define GL_PATH_DASH_ARRAY_COUNT_NV 0x909F +#define GL_PATH_COMPUTED_LENGTH_NV 0x90A0 +#define GL_PATH_FILL_BOUNDING_BOX_NV 0x90A1 +#define GL_PATH_STROKE_BOUNDING_BOX_NV 0x90A2 +#define GL_SQUARE_NV 0x90A3 +#define GL_ROUND_NV 0x90A4 +#define GL_TRIANGULAR_NV 0x90A5 +#define GL_BEVEL_NV 0x90A6 +#define GL_MITER_REVERT_NV 0x90A7 +#define GL_MITER_TRUNCATE_NV 0x90A8 +#define GL_SKIP_MISSING_GLYPH_NV 0x90A9 +#define GL_USE_MISSING_GLYPH_NV 0x90AA +#define GL_PATH_ERROR_POSITION_NV 0x90AB +#define GL_ACCUM_ADJACENT_PAIRS_NV 0x90AD +#define GL_ADJACENT_PAIRS_NV 0x90AE +#define GL_FIRST_TO_REST_NV 0x90AF +#define GL_PATH_GEN_MODE_NV 0x90B0 +#define GL_PATH_GEN_COEFF_NV 0x90B1 +#define GL_PATH_GEN_COMPONENTS_NV 0x90B3 +#define GL_PATH_STENCIL_FUNC_NV 0x90B7 +#define GL_PATH_STENCIL_REF_NV 0x90B8 +#define GL_PATH_STENCIL_VALUE_MASK_NV 0x90B9 +#define GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD +#define GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE +#define GL_PATH_COVER_DEPTH_FUNC_NV 0x90BF +#define GL_PATH_DASH_OFFSET_RESET_NV 0x90B4 +#define GL_MOVE_TO_RESETS_NV 0x90B5 +#define GL_MOVE_TO_CONTINUES_NV 0x90B6 +#define GL_CLOSE_PATH_NV 0x00 +#define GL_MOVE_TO_NV 0x02 +#define GL_RELATIVE_MOVE_TO_NV 0x03 +#define GL_LINE_TO_NV 0x04 +#define GL_RELATIVE_LINE_TO_NV 0x05 +#define GL_HORIZONTAL_LINE_TO_NV 0x06 +#define GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07 +#define GL_VERTICAL_LINE_TO_NV 0x08 +#define GL_RELATIVE_VERTICAL_LINE_TO_NV 0x09 +#define GL_QUADRATIC_CURVE_TO_NV 0x0A +#define GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B +#define GL_CUBIC_CURVE_TO_NV 0x0C +#define GL_RELATIVE_CUBIC_CURVE_TO_NV 0x0D +#define GL_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0E +#define GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F +#define GL_SMOOTH_CUBIC_CURVE_TO_NV 0x10 +#define GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11 +#define GL_SMALL_CCW_ARC_TO_NV 0x12 +#define GL_RELATIVE_SMALL_CCW_ARC_TO_NV 0x13 +#define GL_SMALL_CW_ARC_TO_NV 0x14 +#define GL_RELATIVE_SMALL_CW_ARC_TO_NV 0x15 +#define GL_LARGE_CCW_ARC_TO_NV 0x16 +#define GL_RELATIVE_LARGE_CCW_ARC_TO_NV 0x17 +#define GL_LARGE_CW_ARC_TO_NV 0x18 +#define GL_RELATIVE_LARGE_CW_ARC_TO_NV 0x19 +#define GL_RESTART_PATH_NV 0xF0 +#define GL_DUP_FIRST_CUBIC_CURVE_TO_NV 0xF2 +#define GL_DUP_LAST_CUBIC_CURVE_TO_NV 0xF4 +#define GL_RECT_NV 0xF6 +#define GL_CIRCULAR_CCW_ARC_TO_NV 0xF8 +#define GL_CIRCULAR_CW_ARC_TO_NV 0xFA +#define GL_CIRCULAR_TANGENT_ARC_TO_NV 0xFC +#define GL_ARC_TO_NV 0xFE +#define GL_RELATIVE_ARC_TO_NV 0xFF +#define GL_BOLD_BIT_NV 0x01 +#define GL_ITALIC_BIT_NV 0x02 +#define GL_GLYPH_WIDTH_BIT_NV 0x01 +#define GL_GLYPH_HEIGHT_BIT_NV 0x02 +#define GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04 +#define GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08 +#define GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10 +#define GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20 +#define GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40 +#define GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80 +#define GL_GLYPH_HAS_KERNING_BIT_NV 0x100 +#define GL_FONT_X_MIN_BOUNDS_BIT_NV 0x00010000 +#define GL_FONT_Y_MIN_BOUNDS_BIT_NV 0x00020000 +#define GL_FONT_X_MAX_BOUNDS_BIT_NV 0x00040000 +#define GL_FONT_Y_MAX_BOUNDS_BIT_NV 0x00080000 +#define GL_FONT_UNITS_PER_EM_BIT_NV 0x00100000 +#define GL_FONT_ASCENDER_BIT_NV 0x00200000 +#define GL_FONT_DESCENDER_BIT_NV 0x00400000 +#define GL_FONT_HEIGHT_BIT_NV 0x00800000 +#define GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV 0x01000000 +#define GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000 +#define GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000 +#define GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000 +#define GL_FONT_HAS_KERNING_BIT_NV 0x10000000 +#define GL_ROUNDED_RECT_NV 0xE8 +#define GL_RELATIVE_ROUNDED_RECT_NV 0xE9 +#define GL_ROUNDED_RECT2_NV 0xEA +#define GL_RELATIVE_ROUNDED_RECT2_NV 0xEB +#define GL_ROUNDED_RECT4_NV 0xEC +#define GL_RELATIVE_ROUNDED_RECT4_NV 0xED +#define GL_ROUNDED_RECT8_NV 0xEE +#define GL_RELATIVE_ROUNDED_RECT8_NV 0xEF +#define GL_RELATIVE_RECT_NV 0xF7 +#define GL_FONT_GLYPHS_AVAILABLE_NV 0x9368 +#define GL_FONT_TARGET_UNAVAILABLE_NV 0x9369 +#define GL_FONT_UNAVAILABLE_NV 0x936A +#define GL_FONT_UNINTELLIGIBLE_NV 0x936B +#define GL_CONIC_CURVE_TO_NV 0x1A +#define GL_RELATIVE_CONIC_CURVE_TO_NV 0x1B +#define GL_FONT_NUM_GLYPH_INDICES_BIT_NV 0x20000000 +#define GL_STANDARD_FONT_FORMAT_NV 0x936C +#define GL_2_BYTES_NV 0x1407 +#define GL_3_BYTES_NV 0x1408 +#define GL_4_BYTES_NV 0x1409 +#define GL_EYE_LINEAR_NV 0x2400 +#define GL_OBJECT_LINEAR_NV 0x2401 +#define GL_CONSTANT_NV 0x8576 +#define GL_PATH_FOG_GEN_MODE_NV 0x90AC +#define GL_PRIMARY_COLOR_NV 0x852C +#define GL_SECONDARY_COLOR_NV 0x852D +#define GL_PATH_GEN_COLOR_FORMAT_NV 0x90B2 +#define GL_PATH_PROJECTION_NV 0x1701 +#define GL_PATH_MODELVIEW_NV 0x1700 +#define GL_PATH_MODELVIEW_STACK_DEPTH_NV 0x0BA3 +#define GL_PATH_MODELVIEW_MATRIX_NV 0x0BA6 +#define GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV 0x0D36 +#define GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV 0x84E3 +#define GL_PATH_PROJECTION_STACK_DEPTH_NV 0x0BA4 +#define GL_PATH_PROJECTION_MATRIX_NV 0x0BA7 +#define GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV 0x0D38 +#define GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV 0x84E4 +#define GL_FRAGMENT_INPUT_NV 0x936D + typedef GLuint(APIENTRYP PFNGLGENPATHSNVPROC) (GLsizei range); + typedef void (APIENTRYP PFNGLDELETEPATHSNVPROC) (GLuint path, GLsizei range); + typedef GLboolean(APIENTRYP PFNGLISPATHNVPROC) (GLuint path); + typedef void (APIENTRYP PFNGLPATHCOMMANDSNVPROC) (GLuint path, GLsizei numCommands, const GLubyte* commands, GLsizei numCoords, GLenum coordType, const void* coords); + typedef void (APIENTRYP PFNGLPATHCOORDSNVPROC) (GLuint path, GLsizei numCoords, GLenum coordType, const void* coords); + typedef void (APIENTRYP PFNGLPATHSUBCOMMANDSNVPROC) (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte* commands, GLsizei numCoords, GLenum coordType, const void* coords); + typedef void (APIENTRYP PFNGLPATHSUBCOORDSNVPROC) (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void* coords); + typedef void (APIENTRYP PFNGLPATHSTRINGNVPROC) (GLuint path, GLenum format, GLsizei length, const void* pathString); + typedef void (APIENTRYP PFNGLPATHGLYPHSNVPROC) (GLuint firstPathName, GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void* charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); + typedef void (APIENTRYP PFNGLPATHGLYPHRANGENVPROC) (GLuint firstPathName, GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); + typedef void (APIENTRYP PFNGLWEIGHTPATHSNVPROC) (GLuint resultPath, GLsizei numPaths, const GLuint* paths, const GLfloat* weights); + typedef void (APIENTRYP PFNGLCOPYPATHNVPROC) (GLuint resultPath, GLuint srcPath); + typedef void (APIENTRYP PFNGLINTERPOLATEPATHSNVPROC) (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight); + typedef void (APIENTRYP PFNGLTRANSFORMPATHNVPROC) (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat* transformValues); + typedef void (APIENTRYP PFNGLPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, const GLint* value); + typedef void (APIENTRYP PFNGLPATHPARAMETERINVPROC) (GLuint path, GLenum pname, GLint value); + typedef void (APIENTRYP PFNGLPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, const GLfloat* value); + typedef void (APIENTRYP PFNGLPATHPARAMETERFNVPROC) (GLuint path, GLenum pname, GLfloat value); + typedef void (APIENTRYP PFNGLPATHDASHARRAYNVPROC) (GLuint path, GLsizei dashCount, const GLfloat* dashArray); + typedef void (APIENTRYP PFNGLPATHSTENCILFUNCNVPROC) (GLenum func, GLint ref, GLuint mask); + typedef void (APIENTRYP PFNGLPATHSTENCILDEPTHOFFSETNVPROC) (GLfloat factor, GLfloat units); + typedef void (APIENTRYP PFNGLSTENCILFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask); + typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask); + typedef void (APIENTRYP PFNGLSTENCILFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat* transformValues); + typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat* transformValues); + typedef void (APIENTRYP PFNGLPATHCOVERDEPTHFUNCNVPROC) (GLenum func); + typedef void (APIENTRYP PFNGLCOVERFILLPATHNVPROC) (GLuint path, GLenum coverMode); + typedef void (APIENTRYP PFNGLCOVERSTROKEPATHNVPROC) (GLuint path, GLenum coverMode); + typedef void (APIENTRYP PFNGLCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat* transformValues); + typedef void (APIENTRYP PFNGLCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat* transformValues); + typedef void (APIENTRYP PFNGLGETPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, GLint* value); + typedef void (APIENTRYP PFNGLGETPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, GLfloat* value); + typedef void (APIENTRYP PFNGLGETPATHCOMMANDSNVPROC) (GLuint path, GLubyte* commands); + typedef void (APIENTRYP PFNGLGETPATHCOORDSNVPROC) (GLuint path, GLfloat* coords); + typedef void (APIENTRYP PFNGLGETPATHDASHARRAYNVPROC) (GLuint path, GLfloat* dashArray); + typedef void (APIENTRYP PFNGLGETPATHMETRICSNVPROC) (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLsizei stride, GLfloat* metrics); + typedef void (APIENTRYP PFNGLGETPATHMETRICRANGENVPROC) (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat* metrics); + typedef void (APIENTRYP PFNGLGETPATHSPACINGNVPROC) (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat* returnedSpacing); + typedef GLboolean(APIENTRYP PFNGLISPOINTINFILLPATHNVPROC) (GLuint path, GLuint mask, GLfloat x, GLfloat y); + typedef GLboolean(APIENTRYP PFNGLISPOINTINSTROKEPATHNVPROC) (GLuint path, GLfloat x, GLfloat y); + typedef GLfloat(APIENTRYP PFNGLGETPATHLENGTHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments); + typedef GLboolean(APIENTRYP PFNGLPOINTALONGPATHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat* x, GLfloat* y, GLfloat* tangentX, GLfloat* tangentY); + typedef void (APIENTRYP PFNGLMATRIXLOAD3X2FNVPROC) (GLenum matrixMode, const GLfloat* m); + typedef void (APIENTRYP PFNGLMATRIXLOAD3X3FNVPROC) (GLenum matrixMode, const GLfloat* m); + typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat* m); + typedef void (APIENTRYP PFNGLMATRIXMULT3X2FNVPROC) (GLenum matrixMode, const GLfloat* m); + typedef void (APIENTRYP PFNGLMATRIXMULT3X3FNVPROC) (GLenum matrixMode, const GLfloat* m); + typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat* m); + typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode); + typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask, GLenum coverMode); + typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat* transformValues); + typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat* transformValues); + typedef GLenum(APIENTRYP PFNGLPATHGLYPHINDEXRANGENVPROC) (GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint* baseAndCount); + typedef GLenum(APIENTRYP PFNGLPATHGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); + typedef GLenum(APIENTRYP PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void* fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); + typedef void (APIENTRYP PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC) (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat* coeffs); + typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEFVNVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum* props, GLsizei count, GLsizei* length, GLfloat* params); + typedef void (APIENTRYP PFNGLPATHCOLORGENNVPROC) (GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat* coeffs); + typedef void (APIENTRYP PFNGLPATHTEXGENNVPROC) (GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat* coeffs); + typedef void (APIENTRYP PFNGLPATHFOGGENNVPROC) (GLenum genMode); + typedef void (APIENTRYP PFNGLGETPATHCOLORGENIVNVPROC) (GLenum color, GLenum pname, GLint* value); + typedef void (APIENTRYP PFNGLGETPATHCOLORGENFVNVPROC) (GLenum color, GLenum pname, GLfloat* value); + typedef void (APIENTRYP PFNGLGETPATHTEXGENIVNVPROC) (GLenum texCoordSet, GLenum pname, GLint* value); + typedef void (APIENTRYP PFNGLGETPATHTEXGENFVNVPROC) (GLenum texCoordSet, GLenum pname, GLfloat* value); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLuint APIENTRY glGenPathsNV(GLsizei range); + GLAPI void APIENTRY glDeletePathsNV(GLuint path, GLsizei range); + GLAPI GLboolean APIENTRY glIsPathNV(GLuint path); + GLAPI void APIENTRY glPathCommandsNV(GLuint path, GLsizei numCommands, const GLubyte* commands, GLsizei numCoords, GLenum coordType, const void* coords); + GLAPI void APIENTRY glPathCoordsNV(GLuint path, GLsizei numCoords, GLenum coordType, const void* coords); + GLAPI void APIENTRY glPathSubCommandsNV(GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte* commands, GLsizei numCoords, GLenum coordType, const void* coords); + GLAPI void APIENTRY glPathSubCoordsNV(GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void* coords); + GLAPI void APIENTRY glPathStringNV(GLuint path, GLenum format, GLsizei length, const void* pathString); + GLAPI void APIENTRY glPathGlyphsNV(GLuint firstPathName, GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void* charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); + GLAPI void APIENTRY glPathGlyphRangeNV(GLuint firstPathName, GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); + GLAPI void APIENTRY glWeightPathsNV(GLuint resultPath, GLsizei numPaths, const GLuint* paths, const GLfloat* weights); + GLAPI void APIENTRY glCopyPathNV(GLuint resultPath, GLuint srcPath); + GLAPI void APIENTRY glInterpolatePathsNV(GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight); + GLAPI void APIENTRY glTransformPathNV(GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat* transformValues); + GLAPI void APIENTRY glPathParameterivNV(GLuint path, GLenum pname, const GLint* value); + GLAPI void APIENTRY glPathParameteriNV(GLuint path, GLenum pname, GLint value); + GLAPI void APIENTRY glPathParameterfvNV(GLuint path, GLenum pname, const GLfloat* value); + GLAPI void APIENTRY glPathParameterfNV(GLuint path, GLenum pname, GLfloat value); + GLAPI void APIENTRY glPathDashArrayNV(GLuint path, GLsizei dashCount, const GLfloat* dashArray); + GLAPI void APIENTRY glPathStencilFuncNV(GLenum func, GLint ref, GLuint mask); + GLAPI void APIENTRY glPathStencilDepthOffsetNV(GLfloat factor, GLfloat units); + GLAPI void APIENTRY glStencilFillPathNV(GLuint path, GLenum fillMode, GLuint mask); + GLAPI void APIENTRY glStencilStrokePathNV(GLuint path, GLint reference, GLuint mask); + GLAPI void APIENTRY glStencilFillPathInstancedNV(GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat* transformValues); + GLAPI void APIENTRY glStencilStrokePathInstancedNV(GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat* transformValues); + GLAPI void APIENTRY glPathCoverDepthFuncNV(GLenum func); + GLAPI void APIENTRY glCoverFillPathNV(GLuint path, GLenum coverMode); + GLAPI void APIENTRY glCoverStrokePathNV(GLuint path, GLenum coverMode); + GLAPI void APIENTRY glCoverFillPathInstancedNV(GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat* transformValues); + GLAPI void APIENTRY glCoverStrokePathInstancedNV(GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat* transformValues); + GLAPI void APIENTRY glGetPathParameterivNV(GLuint path, GLenum pname, GLint* value); + GLAPI void APIENTRY glGetPathParameterfvNV(GLuint path, GLenum pname, GLfloat* value); + GLAPI void APIENTRY glGetPathCommandsNV(GLuint path, GLubyte* commands); + GLAPI void APIENTRY glGetPathCoordsNV(GLuint path, GLfloat* coords); + GLAPI void APIENTRY glGetPathDashArrayNV(GLuint path, GLfloat* dashArray); + GLAPI void APIENTRY glGetPathMetricsNV(GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLsizei stride, GLfloat* metrics); + GLAPI void APIENTRY glGetPathMetricRangeNV(GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat* metrics); + GLAPI void APIENTRY glGetPathSpacingNV(GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat* returnedSpacing); + GLAPI GLboolean APIENTRY glIsPointInFillPathNV(GLuint path, GLuint mask, GLfloat x, GLfloat y); + GLAPI GLboolean APIENTRY glIsPointInStrokePathNV(GLuint path, GLfloat x, GLfloat y); + GLAPI GLfloat APIENTRY glGetPathLengthNV(GLuint path, GLsizei startSegment, GLsizei numSegments); + GLAPI GLboolean APIENTRY glPointAlongPathNV(GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat* x, GLfloat* y, GLfloat* tangentX, GLfloat* tangentY); + GLAPI void APIENTRY glMatrixLoad3x2fNV(GLenum matrixMode, const GLfloat* m); + GLAPI void APIENTRY glMatrixLoad3x3fNV(GLenum matrixMode, const GLfloat* m); + GLAPI void APIENTRY glMatrixLoadTranspose3x3fNV(GLenum matrixMode, const GLfloat* m); + GLAPI void APIENTRY glMatrixMult3x2fNV(GLenum matrixMode, const GLfloat* m); + GLAPI void APIENTRY glMatrixMult3x3fNV(GLenum matrixMode, const GLfloat* m); + GLAPI void APIENTRY glMatrixMultTranspose3x3fNV(GLenum matrixMode, const GLfloat* m); + GLAPI void APIENTRY glStencilThenCoverFillPathNV(GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode); + GLAPI void APIENTRY glStencilThenCoverStrokePathNV(GLuint path, GLint reference, GLuint mask, GLenum coverMode); + GLAPI void APIENTRY glStencilThenCoverFillPathInstancedNV(GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat* transformValues); + GLAPI void APIENTRY glStencilThenCoverStrokePathInstancedNV(GLsizei numPaths, GLenum pathNameType, const void* paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat* transformValues); + GLAPI GLenum APIENTRY glPathGlyphIndexRangeNV(GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint* baseAndCount); + GLAPI GLenum APIENTRY glPathGlyphIndexArrayNV(GLuint firstPathName, GLenum fontTarget, const void* fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); + GLAPI GLenum APIENTRY glPathMemoryGlyphIndexArrayNV(GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void* fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); + GLAPI void APIENTRY glProgramPathFragmentInputGenNV(GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat* coeffs); + GLAPI void APIENTRY glGetProgramResourcefvNV(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum* props, GLsizei count, GLsizei* length, GLfloat* params); + GLAPI void APIENTRY glPathColorGenNV(GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat* coeffs); + GLAPI void APIENTRY glPathTexGenNV(GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat* coeffs); + GLAPI void APIENTRY glPathFogGenNV(GLenum genMode); + GLAPI void APIENTRY glGetPathColorGenivNV(GLenum color, GLenum pname, GLint* value); + GLAPI void APIENTRY glGetPathColorGenfvNV(GLenum color, GLenum pname, GLfloat* value); + GLAPI void APIENTRY glGetPathTexGenivNV(GLenum texCoordSet, GLenum pname, GLint* value); + GLAPI void APIENTRY glGetPathTexGenfvNV(GLenum texCoordSet, GLenum pname, GLfloat* value); +#endif +#endif /* GL_NV_path_rendering */ + +#ifndef GL_NV_path_rendering_shared_edge +#define GL_NV_path_rendering_shared_edge 1 +#define GL_SHARED_EDGE_NV 0xC0 +#endif /* GL_NV_path_rendering_shared_edge */ + +#ifndef GL_NV_pixel_data_range +#define GL_NV_pixel_data_range 1 +#define GL_WRITE_PIXEL_DATA_RANGE_NV 0x8878 +#define GL_READ_PIXEL_DATA_RANGE_NV 0x8879 +#define GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV 0x887A +#define GL_READ_PIXEL_DATA_RANGE_LENGTH_NV 0x887B +#define GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV 0x887C +#define GL_READ_PIXEL_DATA_RANGE_POINTER_NV 0x887D + typedef void (APIENTRYP PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, const void* pointer); + typedef void (APIENTRYP PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPixelDataRangeNV(GLenum target, GLsizei length, const void* pointer); + GLAPI void APIENTRY glFlushPixelDataRangeNV(GLenum target); +#endif +#endif /* GL_NV_pixel_data_range */ + +#ifndef GL_NV_point_sprite +#define GL_NV_point_sprite 1 +#define GL_POINT_SPRITE_NV 0x8861 +#define GL_COORD_REPLACE_NV 0x8862 +#define GL_POINT_SPRITE_R_MODE_NV 0x8863 + typedef void (APIENTRYP PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPointParameteriNV(GLenum pname, GLint param); + GLAPI void APIENTRY glPointParameterivNV(GLenum pname, const GLint* params); +#endif +#endif /* GL_NV_point_sprite */ + +#ifndef GL_NV_present_video +#define GL_NV_present_video 1 +#define GL_FRAME_NV 0x8E26 +#define GL_FIELDS_NV 0x8E27 +#define GL_CURRENT_TIME_NV 0x8E28 +#define GL_NUM_FILL_STREAMS_NV 0x8E29 +#define GL_PRESENT_TIME_NV 0x8E2A +#define GL_PRESENT_DURATION_NV 0x8E2B + typedef void (APIENTRYP PFNGLPRESENTFRAMEKEYEDNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1); + typedef void (APIENTRYP PFNGLPRESENTFRAMEDUALFILLNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3); + typedef void (APIENTRYP PFNGLGETVIDEOIVNVPROC) (GLuint video_slot, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETVIDEOUIVNVPROC) (GLuint video_slot, GLenum pname, GLuint* params); + typedef void (APIENTRYP PFNGLGETVIDEOI64VNVPROC) (GLuint video_slot, GLenum pname, GLint64EXT* params); + typedef void (APIENTRYP PFNGLGETVIDEOUI64VNVPROC) (GLuint video_slot, GLenum pname, GLuint64EXT* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPresentFrameKeyedNV(GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1); + GLAPI void APIENTRY glPresentFrameDualFillNV(GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3); + GLAPI void APIENTRY glGetVideoivNV(GLuint video_slot, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetVideouivNV(GLuint video_slot, GLenum pname, GLuint* params); + GLAPI void APIENTRY glGetVideoi64vNV(GLuint video_slot, GLenum pname, GLint64EXT* params); + GLAPI void APIENTRY glGetVideoui64vNV(GLuint video_slot, GLenum pname, GLuint64EXT* params); +#endif +#endif /* GL_NV_present_video */ + +#ifndef GL_NV_primitive_restart +#define GL_NV_primitive_restart 1 +#define GL_PRIMITIVE_RESTART_NV 0x8558 +#define GL_PRIMITIVE_RESTART_INDEX_NV 0x8559 + typedef void (APIENTRYP PFNGLPRIMITIVERESTARTNVPROC) (void); + typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPrimitiveRestartNV(void); + GLAPI void APIENTRY glPrimitiveRestartIndexNV(GLuint index); +#endif +#endif /* GL_NV_primitive_restart */ + +#ifndef GL_NV_primitive_shading_rate +#define GL_NV_primitive_shading_rate 1 +#define GL_SHADING_RATE_IMAGE_PER_PRIMITIVE_NV 0x95B1 +#define GL_SHADING_RATE_IMAGE_PALETTE_COUNT_NV 0x95B2 +#endif /* GL_NV_primitive_shading_rate */ + +#ifndef GL_NV_query_resource +#define GL_NV_query_resource 1 +#define GL_QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NV 0x9540 +#define GL_QUERY_RESOURCE_MEMTYPE_VIDMEM_NV 0x9542 +#define GL_QUERY_RESOURCE_SYS_RESERVED_NV 0x9544 +#define GL_QUERY_RESOURCE_TEXTURE_NV 0x9545 +#define GL_QUERY_RESOURCE_RENDERBUFFER_NV 0x9546 +#define GL_QUERY_RESOURCE_BUFFEROBJECT_NV 0x9547 + typedef GLint(APIENTRYP PFNGLQUERYRESOURCENVPROC) (GLenum queryType, GLint tagId, GLuint count, GLint* buffer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLint APIENTRY glQueryResourceNV(GLenum queryType, GLint tagId, GLuint count, GLint* buffer); +#endif +#endif /* GL_NV_query_resource */ + +#ifndef GL_NV_query_resource_tag +#define GL_NV_query_resource_tag 1 + typedef void (APIENTRYP PFNGLGENQUERYRESOURCETAGNVPROC) (GLsizei n, GLint* tagIds); + typedef void (APIENTRYP PFNGLDELETEQUERYRESOURCETAGNVPROC) (GLsizei n, const GLint* tagIds); + typedef void (APIENTRYP PFNGLQUERYRESOURCETAGNVPROC) (GLint tagId, const GLchar* tagString); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGenQueryResourceTagNV(GLsizei n, GLint* tagIds); + GLAPI void APIENTRY glDeleteQueryResourceTagNV(GLsizei n, const GLint* tagIds); + GLAPI void APIENTRY glQueryResourceTagNV(GLint tagId, const GLchar* tagString); +#endif +#endif /* GL_NV_query_resource_tag */ + +#ifndef GL_NV_register_combiners +#define GL_NV_register_combiners 1 +#define GL_REGISTER_COMBINERS_NV 0x8522 +#define GL_VARIABLE_A_NV 0x8523 +#define GL_VARIABLE_B_NV 0x8524 +#define GL_VARIABLE_C_NV 0x8525 +#define GL_VARIABLE_D_NV 0x8526 +#define GL_VARIABLE_E_NV 0x8527 +#define GL_VARIABLE_F_NV 0x8528 +#define GL_VARIABLE_G_NV 0x8529 +#define GL_CONSTANT_COLOR0_NV 0x852A +#define GL_CONSTANT_COLOR1_NV 0x852B +#define GL_SPARE0_NV 0x852E +#define GL_SPARE1_NV 0x852F +#define GL_DISCARD_NV 0x8530 +#define GL_E_TIMES_F_NV 0x8531 +#define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532 +#define GL_UNSIGNED_IDENTITY_NV 0x8536 +#define GL_UNSIGNED_INVERT_NV 0x8537 +#define GL_EXPAND_NORMAL_NV 0x8538 +#define GL_EXPAND_NEGATE_NV 0x8539 +#define GL_HALF_BIAS_NORMAL_NV 0x853A +#define GL_HALF_BIAS_NEGATE_NV 0x853B +#define GL_SIGNED_IDENTITY_NV 0x853C +#define GL_SIGNED_NEGATE_NV 0x853D +#define GL_SCALE_BY_TWO_NV 0x853E +#define GL_SCALE_BY_FOUR_NV 0x853F +#define GL_SCALE_BY_ONE_HALF_NV 0x8540 +#define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x8541 +#define GL_COMBINER_INPUT_NV 0x8542 +#define GL_COMBINER_MAPPING_NV 0x8543 +#define GL_COMBINER_COMPONENT_USAGE_NV 0x8544 +#define GL_COMBINER_AB_DOT_PRODUCT_NV 0x8545 +#define GL_COMBINER_CD_DOT_PRODUCT_NV 0x8546 +#define GL_COMBINER_MUX_SUM_NV 0x8547 +#define GL_COMBINER_SCALE_NV 0x8548 +#define GL_COMBINER_BIAS_NV 0x8549 +#define GL_COMBINER_AB_OUTPUT_NV 0x854A +#define GL_COMBINER_CD_OUTPUT_NV 0x854B +#define GL_COMBINER_SUM_OUTPUT_NV 0x854C +#define GL_MAX_GENERAL_COMBINERS_NV 0x854D +#define GL_NUM_GENERAL_COMBINERS_NV 0x854E +#define GL_COLOR_SUM_CLAMP_NV 0x854F +#define GL_COMBINER0_NV 0x8550 +#define GL_COMBINER1_NV 0x8551 +#define GL_COMBINER2_NV 0x8552 +#define GL_COMBINER3_NV 0x8553 +#define GL_COMBINER4_NV 0x8554 +#define GL_COMBINER5_NV 0x8555 +#define GL_COMBINER6_NV 0x8556 +#define GL_COMBINER7_NV 0x8557 + typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); + typedef void (APIENTRYP PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); + typedef void (APIENTRYP PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); + typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glCombinerParameterfvNV(GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glCombinerParameterfNV(GLenum pname, GLfloat param); + GLAPI void APIENTRY glCombinerParameterivNV(GLenum pname, const GLint* params); + GLAPI void APIENTRY glCombinerParameteriNV(GLenum pname, GLint param); + GLAPI void APIENTRY glCombinerInputNV(GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); + GLAPI void APIENTRY glCombinerOutputNV(GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); + GLAPI void APIENTRY glFinalCombinerInputNV(GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); + GLAPI void APIENTRY glGetCombinerInputParameterfvNV(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetCombinerInputParameterivNV(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetCombinerOutputParameterfvNV(GLenum stage, GLenum portion, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetCombinerOutputParameterivNV(GLenum stage, GLenum portion, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetFinalCombinerInputParameterfvNV(GLenum variable, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetFinalCombinerInputParameterivNV(GLenum variable, GLenum pname, GLint* params); +#endif +#endif /* GL_NV_register_combiners */ + +#ifndef GL_NV_register_combiners2 +#define GL_NV_register_combiners2 1 +#define GL_PER_STAGE_CONSTANTS_NV 0x8535 + typedef void (APIENTRYP PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glCombinerStageParameterfvNV(GLenum stage, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glGetCombinerStageParameterfvNV(GLenum stage, GLenum pname, GLfloat* params); +#endif +#endif /* GL_NV_register_combiners2 */ + +#ifndef GL_NV_representative_fragment_test +#define GL_NV_representative_fragment_test 1 +#define GL_REPRESENTATIVE_FRAGMENT_TEST_NV 0x937F +#endif /* GL_NV_representative_fragment_test */ + +#ifndef GL_NV_robustness_video_memory_purge +#define GL_NV_robustness_video_memory_purge 1 +#define GL_PURGED_CONTEXT_RESET_NV 0x92BB +#endif /* GL_NV_robustness_video_memory_purge */ + +#ifndef GL_NV_sample_locations +#define GL_NV_sample_locations 1 +#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV 0x933D +#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV 0x933E +#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV 0x933F +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV 0x9340 +#define GL_SAMPLE_LOCATION_NV 0x8E50 +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9341 +#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV 0x9342 +#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV 0x9343 + typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLRESOLVEDEPTHVALUESNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFramebufferSampleLocationsfvNV(GLenum target, GLuint start, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glNamedFramebufferSampleLocationsfvNV(GLuint framebuffer, GLuint start, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glResolveDepthValuesNV(void); +#endif +#endif /* GL_NV_sample_locations */ + +#ifndef GL_NV_sample_mask_override_coverage +#define GL_NV_sample_mask_override_coverage 1 +#endif /* GL_NV_sample_mask_override_coverage */ + +#ifndef GL_NV_scissor_exclusive +#define GL_NV_scissor_exclusive 1 +#define GL_SCISSOR_TEST_EXCLUSIVE_NV 0x9555 +#define GL_SCISSOR_BOX_EXCLUSIVE_NV 0x9556 + typedef void (APIENTRYP PFNGLSCISSOREXCLUSIVENVPROC) (GLint x, GLint y, GLsizei width, GLsizei height); + typedef void (APIENTRYP PFNGLSCISSOREXCLUSIVEARRAYVNVPROC) (GLuint first, GLsizei count, const GLint* v); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glScissorExclusiveNV(GLint x, GLint y, GLsizei width, GLsizei height); + GLAPI void APIENTRY glScissorExclusiveArrayvNV(GLuint first, GLsizei count, const GLint* v); +#endif +#endif /* GL_NV_scissor_exclusive */ + +#ifndef GL_NV_shader_atomic_counters +#define GL_NV_shader_atomic_counters 1 +#endif /* GL_NV_shader_atomic_counters */ + +#ifndef GL_NV_shader_atomic_float +#define GL_NV_shader_atomic_float 1 +#endif /* GL_NV_shader_atomic_float */ + +#ifndef GL_NV_shader_atomic_float64 +#define GL_NV_shader_atomic_float64 1 +#endif /* GL_NV_shader_atomic_float64 */ + +#ifndef GL_NV_shader_atomic_fp16_vector +#define GL_NV_shader_atomic_fp16_vector 1 +#endif /* GL_NV_shader_atomic_fp16_vector */ + +#ifndef GL_NV_shader_atomic_int64 +#define GL_NV_shader_atomic_int64 1 +#endif /* GL_NV_shader_atomic_int64 */ + +#ifndef GL_NV_shader_buffer_load +#define GL_NV_shader_buffer_load 1 +#define GL_BUFFER_GPU_ADDRESS_NV 0x8F1D +#define GL_GPU_ADDRESS_NV 0x8F34 +#define GL_MAX_SHADER_BUFFER_ADDRESS_NV 0x8F35 + typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access); + typedef void (APIENTRYP PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target); + typedef GLboolean(APIENTRYP PFNGLISBUFFERRESIDENTNVPROC) (GLenum target); + typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access); + typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer); + typedef GLboolean(APIENTRYP PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer); + typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT* params); + typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT* params); + typedef void (APIENTRYP PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT* result); + typedef void (APIENTRYP PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value); + typedef void (APIENTRYP PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value); + typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glMakeBufferResidentNV(GLenum target, GLenum access); + GLAPI void APIENTRY glMakeBufferNonResidentNV(GLenum target); + GLAPI GLboolean APIENTRY glIsBufferResidentNV(GLenum target); + GLAPI void APIENTRY glMakeNamedBufferResidentNV(GLuint buffer, GLenum access); + GLAPI void APIENTRY glMakeNamedBufferNonResidentNV(GLuint buffer); + GLAPI GLboolean APIENTRY glIsNamedBufferResidentNV(GLuint buffer); + GLAPI void APIENTRY glGetBufferParameterui64vNV(GLenum target, GLenum pname, GLuint64EXT* params); + GLAPI void APIENTRY glGetNamedBufferParameterui64vNV(GLuint buffer, GLenum pname, GLuint64EXT* params); + GLAPI void APIENTRY glGetIntegerui64vNV(GLenum value, GLuint64EXT* result); + GLAPI void APIENTRY glUniformui64NV(GLint location, GLuint64EXT value); + GLAPI void APIENTRY glUniformui64vNV(GLint location, GLsizei count, const GLuint64EXT* value); + GLAPI void APIENTRY glProgramUniformui64NV(GLuint program, GLint location, GLuint64EXT value); + GLAPI void APIENTRY glProgramUniformui64vNV(GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); +#endif +#endif /* GL_NV_shader_buffer_load */ + +#ifndef GL_NV_shader_buffer_store +#define GL_NV_shader_buffer_store 1 +#define GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV 0x00000010 +#endif /* GL_NV_shader_buffer_store */ + +#ifndef GL_NV_shader_storage_buffer_object +#define GL_NV_shader_storage_buffer_object 1 +#endif /* GL_NV_shader_storage_buffer_object */ + +#ifndef GL_NV_shader_subgroup_partitioned +#define GL_NV_shader_subgroup_partitioned 1 +#define GL_SUBGROUP_FEATURE_PARTITIONED_BIT_NV 0x00000100 +#endif /* GL_NV_shader_subgroup_partitioned */ + +#ifndef GL_NV_shader_texture_footprint +#define GL_NV_shader_texture_footprint 1 +#endif /* GL_NV_shader_texture_footprint */ + +#ifndef GL_NV_shader_thread_group +#define GL_NV_shader_thread_group 1 +#define GL_WARP_SIZE_NV 0x9339 +#define GL_WARPS_PER_SM_NV 0x933A +#define GL_SM_COUNT_NV 0x933B +#endif /* GL_NV_shader_thread_group */ + +#ifndef GL_NV_shader_thread_shuffle +#define GL_NV_shader_thread_shuffle 1 +#endif /* GL_NV_shader_thread_shuffle */ + +#ifndef GL_NV_shading_rate_image +#define GL_NV_shading_rate_image 1 +#define GL_SHADING_RATE_IMAGE_NV 0x9563 +#define GL_SHADING_RATE_NO_INVOCATIONS_NV 0x9564 +#define GL_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV 0x9565 +#define GL_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV 0x9566 +#define GL_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV 0x9567 +#define GL_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV 0x9568 +#define GL_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV 0x9569 +#define GL_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV 0x956A +#define GL_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV 0x956B +#define GL_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV 0x956C +#define GL_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV 0x956D +#define GL_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV 0x956E +#define GL_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV 0x956F +#define GL_SHADING_RATE_IMAGE_BINDING_NV 0x955B +#define GL_SHADING_RATE_IMAGE_TEXEL_WIDTH_NV 0x955C +#define GL_SHADING_RATE_IMAGE_TEXEL_HEIGHT_NV 0x955D +#define GL_SHADING_RATE_IMAGE_PALETTE_SIZE_NV 0x955E +#define GL_MAX_COARSE_FRAGMENT_SAMPLES_NV 0x955F +#define GL_SHADING_RATE_SAMPLE_ORDER_DEFAULT_NV 0x95AE +#define GL_SHADING_RATE_SAMPLE_ORDER_PIXEL_MAJOR_NV 0x95AF +#define GL_SHADING_RATE_SAMPLE_ORDER_SAMPLE_MAJOR_NV 0x95B0 + typedef void (APIENTRYP PFNGLBINDSHADINGRATEIMAGENVPROC) (GLuint texture); + typedef void (APIENTRYP PFNGLGETSHADINGRATEIMAGEPALETTENVPROC) (GLuint viewport, GLuint entry, GLenum* rate); + typedef void (APIENTRYP PFNGLGETSHADINGRATESAMPLELOCATIONIVNVPROC) (GLenum rate, GLuint samples, GLuint index, GLint* location); + typedef void (APIENTRYP PFNGLSHADINGRATEIMAGEBARRIERNVPROC) (GLboolean synchronize); + typedef void (APIENTRYP PFNGLSHADINGRATEIMAGEPALETTENVPROC) (GLuint viewport, GLuint first, GLsizei count, const GLenum* rates); + typedef void (APIENTRYP PFNGLSHADINGRATESAMPLEORDERNVPROC) (GLenum order); + typedef void (APIENTRYP PFNGLSHADINGRATESAMPLEORDERCUSTOMNVPROC) (GLenum rate, GLuint samples, const GLint* locations); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBindShadingRateImageNV(GLuint texture); + GLAPI void APIENTRY glGetShadingRateImagePaletteNV(GLuint viewport, GLuint entry, GLenum* rate); + GLAPI void APIENTRY glGetShadingRateSampleLocationivNV(GLenum rate, GLuint samples, GLuint index, GLint* location); + GLAPI void APIENTRY glShadingRateImageBarrierNV(GLboolean synchronize); + GLAPI void APIENTRY glShadingRateImagePaletteNV(GLuint viewport, GLuint first, GLsizei count, const GLenum* rates); + GLAPI void APIENTRY glShadingRateSampleOrderNV(GLenum order); + GLAPI void APIENTRY glShadingRateSampleOrderCustomNV(GLenum rate, GLuint samples, const GLint* locations); +#endif +#endif /* GL_NV_shading_rate_image */ + +#ifndef GL_NV_stereo_view_rendering +#define GL_NV_stereo_view_rendering 1 +#endif /* GL_NV_stereo_view_rendering */ + +#ifndef GL_NV_tessellation_program5 +#define GL_NV_tessellation_program5 1 +#define GL_MAX_PROGRAM_PATCH_ATTRIBS_NV 0x86D8 +#define GL_TESS_CONTROL_PROGRAM_NV 0x891E +#define GL_TESS_EVALUATION_PROGRAM_NV 0x891F +#define GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV 0x8C74 +#define GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV 0x8C75 +#endif /* GL_NV_tessellation_program5 */ + +#ifndef GL_NV_texgen_emboss +#define GL_NV_texgen_emboss 1 +#define GL_EMBOSS_LIGHT_NV 0x855D +#define GL_EMBOSS_CONSTANT_NV 0x855E +#define GL_EMBOSS_MAP_NV 0x855F +#endif /* GL_NV_texgen_emboss */ + +#ifndef GL_NV_texgen_reflection +#define GL_NV_texgen_reflection 1 +#define GL_NORMAL_MAP_NV 0x8511 +#define GL_REFLECTION_MAP_NV 0x8512 +#endif /* GL_NV_texgen_reflection */ + +#ifndef GL_NV_texture_barrier +#define GL_NV_texture_barrier 1 + typedef void (APIENTRYP PFNGLTEXTUREBARRIERNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTextureBarrierNV(void); +#endif +#endif /* GL_NV_texture_barrier */ + +#ifndef GL_NV_texture_compression_vtc +#define GL_NV_texture_compression_vtc 1 +#endif /* GL_NV_texture_compression_vtc */ + +#ifndef GL_NV_texture_env_combine4 +#define GL_NV_texture_env_combine4 1 +#define GL_COMBINE4_NV 0x8503 +#define GL_SOURCE3_RGB_NV 0x8583 +#define GL_SOURCE3_ALPHA_NV 0x858B +#define GL_OPERAND3_RGB_NV 0x8593 +#define GL_OPERAND3_ALPHA_NV 0x859B +#endif /* GL_NV_texture_env_combine4 */ + +#ifndef GL_NV_texture_expand_normal +#define GL_NV_texture_expand_normal 1 +#define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F +#endif /* GL_NV_texture_expand_normal */ + +#ifndef GL_NV_texture_multisample +#define GL_NV_texture_multisample 1 +#define GL_TEXTURE_COVERAGE_SAMPLES_NV 0x9045 +#define GL_TEXTURE_COLOR_SAMPLES_NV 0x9046 + typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); + typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); + typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); + typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); + typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); + typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTexImage2DMultisampleCoverageNV(GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); + GLAPI void APIENTRY glTexImage3DMultisampleCoverageNV(GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); + GLAPI void APIENTRY glTextureImage2DMultisampleNV(GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); + GLAPI void APIENTRY glTextureImage3DMultisampleNV(GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); + GLAPI void APIENTRY glTextureImage2DMultisampleCoverageNV(GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); + GLAPI void APIENTRY glTextureImage3DMultisampleCoverageNV(GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); +#endif +#endif /* GL_NV_texture_multisample */ + +#ifndef GL_NV_texture_rectangle +#define GL_NV_texture_rectangle 1 +#define GL_TEXTURE_RECTANGLE_NV 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE_NV 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE_NV 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV 0x84F8 +#endif /* GL_NV_texture_rectangle */ + +#ifndef GL_NV_texture_rectangle_compressed +#define GL_NV_texture_rectangle_compressed 1 +#endif /* GL_NV_texture_rectangle_compressed */ + +#ifndef GL_NV_texture_shader +#define GL_NV_texture_shader 1 +#define GL_OFFSET_TEXTURE_RECTANGLE_NV 0x864C +#define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D +#define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E +#define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9 +#define GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86DA +#define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86DB +#define GL_DSDT_MAG_INTENSITY_NV 0x86DC +#define GL_SHADER_CONSISTENT_NV 0x86DD +#define GL_TEXTURE_SHADER_NV 0x86DE +#define GL_SHADER_OPERATION_NV 0x86DF +#define GL_CULL_MODES_NV 0x86E0 +#define GL_OFFSET_TEXTURE_MATRIX_NV 0x86E1 +#define GL_OFFSET_TEXTURE_SCALE_NV 0x86E2 +#define GL_OFFSET_TEXTURE_BIAS_NV 0x86E3 +#define GL_OFFSET_TEXTURE_2D_MATRIX_NV 0x86E1 +#define GL_OFFSET_TEXTURE_2D_SCALE_NV 0x86E2 +#define GL_OFFSET_TEXTURE_2D_BIAS_NV 0x86E3 +#define GL_PREVIOUS_TEXTURE_INPUT_NV 0x86E4 +#define GL_CONST_EYE_NV 0x86E5 +#define GL_PASS_THROUGH_NV 0x86E6 +#define GL_CULL_FRAGMENT_NV 0x86E7 +#define GL_OFFSET_TEXTURE_2D_NV 0x86E8 +#define GL_DEPENDENT_AR_TEXTURE_2D_NV 0x86E9 +#define GL_DEPENDENT_GB_TEXTURE_2D_NV 0x86EA +#define GL_DOT_PRODUCT_NV 0x86EC +#define GL_DOT_PRODUCT_DEPTH_REPLACE_NV 0x86ED +#define GL_DOT_PRODUCT_TEXTURE_2D_NV 0x86EE +#define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0 +#define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1 +#define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2 +#define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3 +#define GL_HILO_NV 0x86F4 +#define GL_DSDT_NV 0x86F5 +#define GL_DSDT_MAG_NV 0x86F6 +#define GL_DSDT_MAG_VIB_NV 0x86F7 +#define GL_HILO16_NV 0x86F8 +#define GL_SIGNED_HILO_NV 0x86F9 +#define GL_SIGNED_HILO16_NV 0x86FA +#define GL_SIGNED_RGBA_NV 0x86FB +#define GL_SIGNED_RGBA8_NV 0x86FC +#define GL_SIGNED_RGB_NV 0x86FE +#define GL_SIGNED_RGB8_NV 0x86FF +#define GL_SIGNED_LUMINANCE_NV 0x8701 +#define GL_SIGNED_LUMINANCE8_NV 0x8702 +#define GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703 +#define GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704 +#define GL_SIGNED_ALPHA_NV 0x8705 +#define GL_SIGNED_ALPHA8_NV 0x8706 +#define GL_SIGNED_INTENSITY_NV 0x8707 +#define GL_SIGNED_INTENSITY8_NV 0x8708 +#define GL_DSDT8_NV 0x8709 +#define GL_DSDT8_MAG8_NV 0x870A +#define GL_DSDT8_MAG8_INTENSITY8_NV 0x870B +#define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870C +#define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D +#define GL_HI_SCALE_NV 0x870E +#define GL_LO_SCALE_NV 0x870F +#define GL_DS_SCALE_NV 0x8710 +#define GL_DT_SCALE_NV 0x8711 +#define GL_MAGNITUDE_SCALE_NV 0x8712 +#define GL_VIBRANCE_SCALE_NV 0x8713 +#define GL_HI_BIAS_NV 0x8714 +#define GL_LO_BIAS_NV 0x8715 +#define GL_DS_BIAS_NV 0x8716 +#define GL_DT_BIAS_NV 0x8717 +#define GL_MAGNITUDE_BIAS_NV 0x8718 +#define GL_VIBRANCE_BIAS_NV 0x8719 +#define GL_TEXTURE_BORDER_VALUES_NV 0x871A +#define GL_TEXTURE_HI_SIZE_NV 0x871B +#define GL_TEXTURE_LO_SIZE_NV 0x871C +#define GL_TEXTURE_DS_SIZE_NV 0x871D +#define GL_TEXTURE_DT_SIZE_NV 0x871E +#define GL_TEXTURE_MAG_SIZE_NV 0x871F +#endif /* GL_NV_texture_shader */ + +#ifndef GL_NV_texture_shader2 +#define GL_NV_texture_shader2 1 +#define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF +#endif /* GL_NV_texture_shader2 */ + +#ifndef GL_NV_texture_shader3 +#define GL_NV_texture_shader3 1 +#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850 +#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851 +#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852 +#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853 +#define GL_OFFSET_HILO_TEXTURE_2D_NV 0x8854 +#define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855 +#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856 +#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857 +#define GL_DEPENDENT_HILO_TEXTURE_2D_NV 0x8858 +#define GL_DEPENDENT_RGB_TEXTURE_3D_NV 0x8859 +#define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A +#define GL_DOT_PRODUCT_PASS_THROUGH_NV 0x885B +#define GL_DOT_PRODUCT_TEXTURE_1D_NV 0x885C +#define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D +#define GL_HILO8_NV 0x885E +#define GL_SIGNED_HILO8_NV 0x885F +#define GL_FORCE_BLUE_TO_ONE_NV 0x8860 +#endif /* GL_NV_texture_shader3 */ + +#ifndef GL_NV_timeline_semaphore +#define GL_NV_timeline_semaphore 1 +#define GL_TIMELINE_SEMAPHORE_VALUE_NV 0x9595 +#define GL_SEMAPHORE_TYPE_NV 0x95B3 +#define GL_SEMAPHORE_TYPE_BINARY_NV 0x95B4 +#define GL_SEMAPHORE_TYPE_TIMELINE_NV 0x95B5 +#define GL_MAX_TIMELINE_SEMAPHORE_VALUE_DIFFERENCE_NV 0x95B6 + typedef void (APIENTRYP PFNGLCREATESEMAPHORESNVPROC) (GLsizei n, GLuint* semaphores); + typedef void (APIENTRYP PFNGLSEMAPHOREPARAMETERIVNVPROC) (GLuint semaphore, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLGETSEMAPHOREPARAMETERIVNVPROC) (GLuint semaphore, GLenum pname, GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glCreateSemaphoresNV(GLsizei n, GLuint* semaphores); + GLAPI void APIENTRY glSemaphoreParameterivNV(GLuint semaphore, GLenum pname, const GLint* params); + GLAPI void APIENTRY glGetSemaphoreParameterivNV(GLuint semaphore, GLenum pname, GLint* params); +#endif +#endif /* GL_NV_timeline_semaphore */ + +#ifndef GL_NV_transform_feedback +#define GL_NV_transform_feedback 1 +#define GL_BACK_PRIMARY_COLOR_NV 0x8C77 +#define GL_BACK_SECONDARY_COLOR_NV 0x8C78 +#define GL_TEXTURE_COORD_NV 0x8C79 +#define GL_CLIP_DISTANCE_NV 0x8C7A +#define GL_VERTEX_ID_NV 0x8C7B +#define GL_PRIMITIVE_ID_NV 0x8C7C +#define GL_GENERIC_ATTRIB_NV 0x8C7D +#define GL_TRANSFORM_FEEDBACK_ATTRIBS_NV 0x8C7E +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV 0x8C7F +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV 0x8C80 +#define GL_ACTIVE_VARYINGS_NV 0x8C81 +#define GL_ACTIVE_VARYING_MAX_LENGTH_NV 0x8C82 +#define GL_TRANSFORM_FEEDBACK_VARYINGS_NV 0x8C83 +#define GL_TRANSFORM_FEEDBACK_BUFFER_START_NV 0x8C84 +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV 0x8C85 +#define GL_TRANSFORM_FEEDBACK_RECORD_NV 0x8C86 +#define GL_PRIMITIVES_GENERATED_NV 0x8C87 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV 0x8C88 +#define GL_RASTERIZER_DISCARD_NV 0x8C89 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV 0x8C8B +#define GL_INTERLEAVED_ATTRIBS_NV 0x8C8C +#define GL_SEPARATE_ATTRIBS_NV 0x8C8D +#define GL_TRANSFORM_FEEDBACK_BUFFER_NV 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV 0x8C8F +#define GL_LAYER_NV 0x8DAA +#define GL_NEXT_BUFFER_NV -2 +#define GL_SKIP_COMPONENTS4_NV -3 +#define GL_SKIP_COMPONENTS3_NV -4 +#define GL_SKIP_COMPONENTS2_NV -5 +#define GL_SKIP_COMPONENTS1_NV -6 + typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode); + typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKNVPROC) (void); + typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLsizei count, const GLint* attribs, GLenum bufferMode); + typedef void (APIENTRYP PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); + typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); + typedef void (APIENTRYP PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer); + typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint* locations, GLenum bufferMode); + typedef void (APIENTRYP PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar* name); + typedef GLint(APIENTRYP PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar* name); + typedef void (APIENTRYP PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name); + typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint* location); + typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKSTREAMATTRIBSNVPROC) (GLsizei count, const GLint* attribs, GLsizei nbuffers, const GLint* bufstreams, GLenum bufferMode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBeginTransformFeedbackNV(GLenum primitiveMode); + GLAPI void APIENTRY glEndTransformFeedbackNV(void); + GLAPI void APIENTRY glTransformFeedbackAttribsNV(GLsizei count, const GLint* attribs, GLenum bufferMode); + GLAPI void APIENTRY glBindBufferRangeNV(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); + GLAPI void APIENTRY glBindBufferOffsetNV(GLenum target, GLuint index, GLuint buffer, GLintptr offset); + GLAPI void APIENTRY glBindBufferBaseNV(GLenum target, GLuint index, GLuint buffer); + GLAPI void APIENTRY glTransformFeedbackVaryingsNV(GLuint program, GLsizei count, const GLint* locations, GLenum bufferMode); + GLAPI void APIENTRY glActiveVaryingNV(GLuint program, const GLchar* name); + GLAPI GLint APIENTRY glGetVaryingLocationNV(GLuint program, const GLchar* name); + GLAPI void APIENTRY glGetActiveVaryingNV(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name); + GLAPI void APIENTRY glGetTransformFeedbackVaryingNV(GLuint program, GLuint index, GLint* location); + GLAPI void APIENTRY glTransformFeedbackStreamAttribsNV(GLsizei count, const GLint* attribs, GLsizei nbuffers, const GLint* bufstreams, GLenum bufferMode); +#endif +#endif /* GL_NV_transform_feedback */ + +#ifndef GL_NV_transform_feedback2 +#define GL_NV_transform_feedback2 1 +#define GL_TRANSFORM_FEEDBACK_NV 0x8E22 +#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV 0x8E23 +#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV 0x8E24 +#define GL_TRANSFORM_FEEDBACK_BINDING_NV 0x8E25 + typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKNVPROC) (GLenum target, GLuint id); + typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSNVPROC) (GLsizei n, const GLuint* ids); + typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSNVPROC) (GLsizei n, GLuint* ids); + typedef GLboolean(APIENTRYP PFNGLISTRANSFORMFEEDBACKNVPROC) (GLuint id); + typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKNVPROC) (void); + typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKNVPROC) (void); + typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKNVPROC) (GLenum mode, GLuint id); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBindTransformFeedbackNV(GLenum target, GLuint id); + GLAPI void APIENTRY glDeleteTransformFeedbacksNV(GLsizei n, const GLuint* ids); + GLAPI void APIENTRY glGenTransformFeedbacksNV(GLsizei n, GLuint* ids); + GLAPI GLboolean APIENTRY glIsTransformFeedbackNV(GLuint id); + GLAPI void APIENTRY glPauseTransformFeedbackNV(void); + GLAPI void APIENTRY glResumeTransformFeedbackNV(void); + GLAPI void APIENTRY glDrawTransformFeedbackNV(GLenum mode, GLuint id); +#endif +#endif /* GL_NV_transform_feedback2 */ + +#ifndef GL_NV_uniform_buffer_std430_layout +#define GL_NV_uniform_buffer_std430_layout 1 +#endif /* GL_NV_uniform_buffer_std430_layout */ + +#ifndef GL_NV_uniform_buffer_unified_memory +#define GL_NV_uniform_buffer_unified_memory 1 +#define GL_UNIFORM_BUFFER_UNIFIED_NV 0x936E +#define GL_UNIFORM_BUFFER_ADDRESS_NV 0x936F +#define GL_UNIFORM_BUFFER_LENGTH_NV 0x9370 +#endif /* GL_NV_uniform_buffer_unified_memory */ + +#ifndef GL_NV_vdpau_interop +#define GL_NV_vdpau_interop 1 + typedef GLintptr GLvdpauSurfaceNV; +#define GL_SURFACE_STATE_NV 0x86EB +#define GL_SURFACE_REGISTERED_NV 0x86FD +#define GL_SURFACE_MAPPED_NV 0x8700 +#define GL_WRITE_DISCARD_NV 0x88BE + typedef void (APIENTRYP PFNGLVDPAUINITNVPROC) (const void* vdpDevice, const void* getProcAddress); + typedef void (APIENTRYP PFNGLVDPAUFININVPROC) (void); + typedef GLvdpauSurfaceNV(APIENTRYP PFNGLVDPAUREGISTERVIDEOSURFACENVPROC) (const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint* textureNames); + typedef GLvdpauSurfaceNV(APIENTRYP PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC) (const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint* textureNames); + typedef GLboolean(APIENTRYP PFNGLVDPAUISSURFACENVPROC) (GLvdpauSurfaceNV surface); + typedef void (APIENTRYP PFNGLVDPAUUNREGISTERSURFACENVPROC) (GLvdpauSurfaceNV surface); + typedef void (APIENTRYP PFNGLVDPAUGETSURFACEIVNVPROC) (GLvdpauSurfaceNV surface, GLenum pname, GLsizei count, GLsizei* length, GLint* values); + typedef void (APIENTRYP PFNGLVDPAUSURFACEACCESSNVPROC) (GLvdpauSurfaceNV surface, GLenum access); + typedef void (APIENTRYP PFNGLVDPAUMAPSURFACESNVPROC) (GLsizei numSurfaces, const GLvdpauSurfaceNV* surfaces); + typedef void (APIENTRYP PFNGLVDPAUUNMAPSURFACESNVPROC) (GLsizei numSurface, const GLvdpauSurfaceNV* surfaces); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVDPAUInitNV(const void* vdpDevice, const void* getProcAddress); + GLAPI void APIENTRY glVDPAUFiniNV(void); + GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterVideoSurfaceNV(const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint* textureNames); + GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterOutputSurfaceNV(const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint* textureNames); + GLAPI GLboolean APIENTRY glVDPAUIsSurfaceNV(GLvdpauSurfaceNV surface); + GLAPI void APIENTRY glVDPAUUnregisterSurfaceNV(GLvdpauSurfaceNV surface); + GLAPI void APIENTRY glVDPAUGetSurfaceivNV(GLvdpauSurfaceNV surface, GLenum pname, GLsizei count, GLsizei* length, GLint* values); + GLAPI void APIENTRY glVDPAUSurfaceAccessNV(GLvdpauSurfaceNV surface, GLenum access); + GLAPI void APIENTRY glVDPAUMapSurfacesNV(GLsizei numSurfaces, const GLvdpauSurfaceNV* surfaces); + GLAPI void APIENTRY glVDPAUUnmapSurfacesNV(GLsizei numSurface, const GLvdpauSurfaceNV* surfaces); +#endif +#endif /* GL_NV_vdpau_interop */ + +#ifndef GL_NV_vdpau_interop2 +#define GL_NV_vdpau_interop2 1 + typedef GLvdpauSurfaceNV(APIENTRYP PFNGLVDPAUREGISTERVIDEOSURFACEWITHPICTURESTRUCTURENVPROC) (const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint* textureNames, GLboolean isFrameStructure); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLvdpauSurfaceNV APIENTRY glVDPAURegisterVideoSurfaceWithPictureStructureNV(const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint* textureNames, GLboolean isFrameStructure); +#endif +#endif /* GL_NV_vdpau_interop2 */ + +#ifndef GL_NV_vertex_array_range +#define GL_NV_vertex_array_range 1 +#define GL_VERTEX_ARRAY_RANGE_NV 0x851D +#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV 0x851E +#define GL_VERTEX_ARRAY_RANGE_VALID_NV 0x851F +#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520 +#define GL_VERTEX_ARRAY_RANGE_POINTER_NV 0x8521 + typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void); + typedef void (APIENTRYP PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const void* pointer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFlushVertexArrayRangeNV(void); + GLAPI void APIENTRY glVertexArrayRangeNV(GLsizei length, const void* pointer); +#endif +#endif /* GL_NV_vertex_array_range */ + +#ifndef GL_NV_vertex_array_range2 +#define GL_NV_vertex_array_range2 1 +#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533 +#endif /* GL_NV_vertex_array_range2 */ + +#ifndef GL_NV_vertex_attrib_integer_64bit +#define GL_NV_vertex_attrib_integer_64bit 1 + typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64NVPROC) (GLuint index, GLint64EXT x); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64VNVPROC) (GLuint index, const GLint64EXT* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64VNVPROC) (GLuint index, const GLint64EXT* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64VNVPROC) (GLuint index, const GLint64EXT* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64VNVPROC) (GLuint index, const GLint64EXT* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64NVPROC) (GLuint index, GLuint64EXT x); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VNVPROC) (GLuint index, const GLuint64EXT* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64VNVPROC) (GLuint index, const GLuint64EXT* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64VNVPROC) (GLuint index, const GLuint64EXT* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64VNVPROC) (GLuint index, const GLuint64EXT* v); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLI64VNVPROC) (GLuint index, GLenum pname, GLint64EXT* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VNVPROC) (GLuint index, GLenum pname, GLuint64EXT* params); + typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glVertexAttribL1i64NV(GLuint index, GLint64EXT x); + GLAPI void APIENTRY glVertexAttribL2i64NV(GLuint index, GLint64EXT x, GLint64EXT y); + GLAPI void APIENTRY glVertexAttribL3i64NV(GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); + GLAPI void APIENTRY glVertexAttribL4i64NV(GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); + GLAPI void APIENTRY glVertexAttribL1i64vNV(GLuint index, const GLint64EXT* v); + GLAPI void APIENTRY glVertexAttribL2i64vNV(GLuint index, const GLint64EXT* v); + GLAPI void APIENTRY glVertexAttribL3i64vNV(GLuint index, const GLint64EXT* v); + GLAPI void APIENTRY glVertexAttribL4i64vNV(GLuint index, const GLint64EXT* v); + GLAPI void APIENTRY glVertexAttribL1ui64NV(GLuint index, GLuint64EXT x); + GLAPI void APIENTRY glVertexAttribL2ui64NV(GLuint index, GLuint64EXT x, GLuint64EXT y); + GLAPI void APIENTRY glVertexAttribL3ui64NV(GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); + GLAPI void APIENTRY glVertexAttribL4ui64NV(GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); + GLAPI void APIENTRY glVertexAttribL1ui64vNV(GLuint index, const GLuint64EXT* v); + GLAPI void APIENTRY glVertexAttribL2ui64vNV(GLuint index, const GLuint64EXT* v); + GLAPI void APIENTRY glVertexAttribL3ui64vNV(GLuint index, const GLuint64EXT* v); + GLAPI void APIENTRY glVertexAttribL4ui64vNV(GLuint index, const GLuint64EXT* v); + GLAPI void APIENTRY glGetVertexAttribLi64vNV(GLuint index, GLenum pname, GLint64EXT* params); + GLAPI void APIENTRY glGetVertexAttribLui64vNV(GLuint index, GLenum pname, GLuint64EXT* params); + GLAPI void APIENTRY glVertexAttribLFormatNV(GLuint index, GLint size, GLenum type, GLsizei stride); +#endif +#endif /* GL_NV_vertex_attrib_integer_64bit */ + +#ifndef GL_NV_vertex_buffer_unified_memory +#define GL_NV_vertex_buffer_unified_memory 1 +#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E +#define GL_ELEMENT_ARRAY_UNIFIED_NV 0x8F1F +#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20 +#define GL_VERTEX_ARRAY_ADDRESS_NV 0x8F21 +#define GL_NORMAL_ARRAY_ADDRESS_NV 0x8F22 +#define GL_COLOR_ARRAY_ADDRESS_NV 0x8F23 +#define GL_INDEX_ARRAY_ADDRESS_NV 0x8F24 +#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25 +#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV 0x8F26 +#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27 +#define GL_FOG_COORD_ARRAY_ADDRESS_NV 0x8F28 +#define GL_ELEMENT_ARRAY_ADDRESS_NV 0x8F29 +#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV 0x8F2A +#define GL_VERTEX_ARRAY_LENGTH_NV 0x8F2B +#define GL_NORMAL_ARRAY_LENGTH_NV 0x8F2C +#define GL_COLOR_ARRAY_LENGTH_NV 0x8F2D +#define GL_INDEX_ARRAY_LENGTH_NV 0x8F2E +#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV 0x8F2F +#define GL_EDGE_FLAG_ARRAY_LENGTH_NV 0x8F30 +#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31 +#define GL_FOG_COORD_ARRAY_LENGTH_NV 0x8F32 +#define GL_ELEMENT_ARRAY_LENGTH_NV 0x8F33 +#define GL_DRAW_INDIRECT_UNIFIED_NV 0x8F40 +#define GL_DRAW_INDIRECT_ADDRESS_NV 0x8F41 +#define GL_DRAW_INDIRECT_LENGTH_NV 0x8F42 + typedef void (APIENTRYP PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); + typedef void (APIENTRYP PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); + typedef void (APIENTRYP PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride); + typedef void (APIENTRYP PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); + typedef void (APIENTRYP PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride); + typedef void (APIENTRYP PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); + typedef void (APIENTRYP PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride); + typedef void (APIENTRYP PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); + typedef void (APIENTRYP PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride); + typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); + typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); + typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT* result); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBufferAddressRangeNV(GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); + GLAPI void APIENTRY glVertexFormatNV(GLint size, GLenum type, GLsizei stride); + GLAPI void APIENTRY glNormalFormatNV(GLenum type, GLsizei stride); + GLAPI void APIENTRY glColorFormatNV(GLint size, GLenum type, GLsizei stride); + GLAPI void APIENTRY glIndexFormatNV(GLenum type, GLsizei stride); + GLAPI void APIENTRY glTexCoordFormatNV(GLint size, GLenum type, GLsizei stride); + GLAPI void APIENTRY glEdgeFlagFormatNV(GLsizei stride); + GLAPI void APIENTRY glSecondaryColorFormatNV(GLint size, GLenum type, GLsizei stride); + GLAPI void APIENTRY glFogCoordFormatNV(GLenum type, GLsizei stride); + GLAPI void APIENTRY glVertexAttribFormatNV(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); + GLAPI void APIENTRY glVertexAttribIFormatNV(GLuint index, GLint size, GLenum type, GLsizei stride); + GLAPI void APIENTRY glGetIntegerui64i_vNV(GLenum value, GLuint index, GLuint64EXT* result); +#endif +#endif /* GL_NV_vertex_buffer_unified_memory */ + +#ifndef GL_NV_vertex_program +#define GL_NV_vertex_program 1 +#define GL_VERTEX_PROGRAM_NV 0x8620 +#define GL_VERTEX_STATE_PROGRAM_NV 0x8621 +#define GL_ATTRIB_ARRAY_SIZE_NV 0x8623 +#define GL_ATTRIB_ARRAY_STRIDE_NV 0x8624 +#define GL_ATTRIB_ARRAY_TYPE_NV 0x8625 +#define GL_CURRENT_ATTRIB_NV 0x8626 +#define GL_PROGRAM_LENGTH_NV 0x8627 +#define GL_PROGRAM_STRING_NV 0x8628 +#define GL_MODELVIEW_PROJECTION_NV 0x8629 +#define GL_IDENTITY_NV 0x862A +#define GL_INVERSE_NV 0x862B +#define GL_TRANSPOSE_NV 0x862C +#define GL_INVERSE_TRANSPOSE_NV 0x862D +#define GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 0x862E +#define GL_MAX_TRACK_MATRICES_NV 0x862F +#define GL_MATRIX0_NV 0x8630 +#define GL_MATRIX1_NV 0x8631 +#define GL_MATRIX2_NV 0x8632 +#define GL_MATRIX3_NV 0x8633 +#define GL_MATRIX4_NV 0x8634 +#define GL_MATRIX5_NV 0x8635 +#define GL_MATRIX6_NV 0x8636 +#define GL_MATRIX7_NV 0x8637 +#define GL_CURRENT_MATRIX_STACK_DEPTH_NV 0x8640 +#define GL_CURRENT_MATRIX_NV 0x8641 +#define GL_VERTEX_PROGRAM_POINT_SIZE_NV 0x8642 +#define GL_VERTEX_PROGRAM_TWO_SIDE_NV 0x8643 +#define GL_PROGRAM_PARAMETER_NV 0x8644 +#define GL_ATTRIB_ARRAY_POINTER_NV 0x8645 +#define GL_PROGRAM_TARGET_NV 0x8646 +#define GL_PROGRAM_RESIDENT_NV 0x8647 +#define GL_TRACK_MATRIX_NV 0x8648 +#define GL_TRACK_MATRIX_TRANSFORM_NV 0x8649 +#define GL_VERTEX_PROGRAM_BINDING_NV 0x864A +#define GL_PROGRAM_ERROR_POSITION_NV 0x864B +#define GL_VERTEX_ATTRIB_ARRAY0_NV 0x8650 +#define GL_VERTEX_ATTRIB_ARRAY1_NV 0x8651 +#define GL_VERTEX_ATTRIB_ARRAY2_NV 0x8652 +#define GL_VERTEX_ATTRIB_ARRAY3_NV 0x8653 +#define GL_VERTEX_ATTRIB_ARRAY4_NV 0x8654 +#define GL_VERTEX_ATTRIB_ARRAY5_NV 0x8655 +#define GL_VERTEX_ATTRIB_ARRAY6_NV 0x8656 +#define GL_VERTEX_ATTRIB_ARRAY7_NV 0x8657 +#define GL_VERTEX_ATTRIB_ARRAY8_NV 0x8658 +#define GL_VERTEX_ATTRIB_ARRAY9_NV 0x8659 +#define GL_VERTEX_ATTRIB_ARRAY10_NV 0x865A +#define GL_VERTEX_ATTRIB_ARRAY11_NV 0x865B +#define GL_VERTEX_ATTRIB_ARRAY12_NV 0x865C +#define GL_VERTEX_ATTRIB_ARRAY13_NV 0x865D +#define GL_VERTEX_ATTRIB_ARRAY14_NV 0x865E +#define GL_VERTEX_ATTRIB_ARRAY15_NV 0x865F +#define GL_MAP1_VERTEX_ATTRIB0_4_NV 0x8660 +#define GL_MAP1_VERTEX_ATTRIB1_4_NV 0x8661 +#define GL_MAP1_VERTEX_ATTRIB2_4_NV 0x8662 +#define GL_MAP1_VERTEX_ATTRIB3_4_NV 0x8663 +#define GL_MAP1_VERTEX_ATTRIB4_4_NV 0x8664 +#define GL_MAP1_VERTEX_ATTRIB5_4_NV 0x8665 +#define GL_MAP1_VERTEX_ATTRIB6_4_NV 0x8666 +#define GL_MAP1_VERTEX_ATTRIB7_4_NV 0x8667 +#define GL_MAP1_VERTEX_ATTRIB8_4_NV 0x8668 +#define GL_MAP1_VERTEX_ATTRIB9_4_NV 0x8669 +#define GL_MAP1_VERTEX_ATTRIB10_4_NV 0x866A +#define GL_MAP1_VERTEX_ATTRIB11_4_NV 0x866B +#define GL_MAP1_VERTEX_ATTRIB12_4_NV 0x866C +#define GL_MAP1_VERTEX_ATTRIB13_4_NV 0x866D +#define GL_MAP1_VERTEX_ATTRIB14_4_NV 0x866E +#define GL_MAP1_VERTEX_ATTRIB15_4_NV 0x866F +#define GL_MAP2_VERTEX_ATTRIB0_4_NV 0x8670 +#define GL_MAP2_VERTEX_ATTRIB1_4_NV 0x8671 +#define GL_MAP2_VERTEX_ATTRIB2_4_NV 0x8672 +#define GL_MAP2_VERTEX_ATTRIB3_4_NV 0x8673 +#define GL_MAP2_VERTEX_ATTRIB4_4_NV 0x8674 +#define GL_MAP2_VERTEX_ATTRIB5_4_NV 0x8675 +#define GL_MAP2_VERTEX_ATTRIB6_4_NV 0x8676 +#define GL_MAP2_VERTEX_ATTRIB7_4_NV 0x8677 +#define GL_MAP2_VERTEX_ATTRIB8_4_NV 0x8678 +#define GL_MAP2_VERTEX_ATTRIB9_4_NV 0x8679 +#define GL_MAP2_VERTEX_ATTRIB10_4_NV 0x867A +#define GL_MAP2_VERTEX_ATTRIB11_4_NV 0x867B +#define GL_MAP2_VERTEX_ATTRIB12_4_NV 0x867C +#define GL_MAP2_VERTEX_ATTRIB13_4_NV 0x867D +#define GL_MAP2_VERTEX_ATTRIB14_4_NV 0x867E +#define GL_MAP2_VERTEX_ATTRIB15_4_NV 0x867F + typedef GLboolean(APIENTRYP PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint* programs, GLboolean* residences); + typedef void (APIENTRYP PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id); + typedef void (APIENTRYP PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint* programs); + typedef void (APIENTRYP PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat* params); + typedef void (APIENTRYP PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint* programs); + typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble* params); + typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte* program); + typedef void (APIENTRYP PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, void** pointer); + typedef GLboolean(APIENTRYP PFNGLISPROGRAMNVPROC) (GLuint id); + typedef void (APIENTRYP PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte* program); + typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLdouble* v); + typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint* programs); + typedef void (APIENTRYP PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform); + typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const void* pointer); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x); + typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y); + typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z); + typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); + typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort* v); + typedef void (APIENTRYP PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte* v); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLboolean APIENTRY glAreProgramsResidentNV(GLsizei n, const GLuint* programs, GLboolean* residences); + GLAPI void APIENTRY glBindProgramNV(GLenum target, GLuint id); + GLAPI void APIENTRY glDeleteProgramsNV(GLsizei n, const GLuint* programs); + GLAPI void APIENTRY glExecuteProgramNV(GLenum target, GLuint id, const GLfloat* params); + GLAPI void APIENTRY glGenProgramsNV(GLsizei n, GLuint* programs); + GLAPI void APIENTRY glGetProgramParameterdvNV(GLenum target, GLuint index, GLenum pname, GLdouble* params); + GLAPI void APIENTRY glGetProgramParameterfvNV(GLenum target, GLuint index, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetProgramivNV(GLuint id, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetProgramStringNV(GLuint id, GLenum pname, GLubyte* program); + GLAPI void APIENTRY glGetTrackMatrixivNV(GLenum target, GLuint address, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetVertexAttribdvNV(GLuint index, GLenum pname, GLdouble* params); + GLAPI void APIENTRY glGetVertexAttribfvNV(GLuint index, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetVertexAttribivNV(GLuint index, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetVertexAttribPointervNV(GLuint index, GLenum pname, void** pointer); + GLAPI GLboolean APIENTRY glIsProgramNV(GLuint id); + GLAPI void APIENTRY glLoadProgramNV(GLenum target, GLuint id, GLsizei len, const GLubyte* program); + GLAPI void APIENTRY glProgramParameter4dNV(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glProgramParameter4dvNV(GLenum target, GLuint index, const GLdouble* v); + GLAPI void APIENTRY glProgramParameter4fNV(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glProgramParameter4fvNV(GLenum target, GLuint index, const GLfloat* v); + GLAPI void APIENTRY glProgramParameters4dvNV(GLenum target, GLuint index, GLsizei count, const GLdouble* v); + GLAPI void APIENTRY glProgramParameters4fvNV(GLenum target, GLuint index, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glRequestResidentProgramsNV(GLsizei n, const GLuint* programs); + GLAPI void APIENTRY glTrackMatrixNV(GLenum target, GLuint address, GLenum matrix, GLenum transform); + GLAPI void APIENTRY glVertexAttribPointerNV(GLuint index, GLint fsize, GLenum type, GLsizei stride, const void* pointer); + GLAPI void APIENTRY glVertexAttrib1dNV(GLuint index, GLdouble x); + GLAPI void APIENTRY glVertexAttrib1dvNV(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib1fNV(GLuint index, GLfloat x); + GLAPI void APIENTRY glVertexAttrib1fvNV(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib1sNV(GLuint index, GLshort x); + GLAPI void APIENTRY glVertexAttrib1svNV(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib2dNV(GLuint index, GLdouble x, GLdouble y); + GLAPI void APIENTRY glVertexAttrib2dvNV(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib2fNV(GLuint index, GLfloat x, GLfloat y); + GLAPI void APIENTRY glVertexAttrib2fvNV(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib2sNV(GLuint index, GLshort x, GLshort y); + GLAPI void APIENTRY glVertexAttrib2svNV(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib3dNV(GLuint index, GLdouble x, GLdouble y, GLdouble z); + GLAPI void APIENTRY glVertexAttrib3dvNV(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib3fNV(GLuint index, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glVertexAttrib3fvNV(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib3sNV(GLuint index, GLshort x, GLshort y, GLshort z); + GLAPI void APIENTRY glVertexAttrib3svNV(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib4dNV(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); + GLAPI void APIENTRY glVertexAttrib4dvNV(GLuint index, const GLdouble* v); + GLAPI void APIENTRY glVertexAttrib4fNV(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glVertexAttrib4fvNV(GLuint index, const GLfloat* v); + GLAPI void APIENTRY glVertexAttrib4sNV(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); + GLAPI void APIENTRY glVertexAttrib4svNV(GLuint index, const GLshort* v); + GLAPI void APIENTRY glVertexAttrib4ubNV(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); + GLAPI void APIENTRY glVertexAttrib4ubvNV(GLuint index, const GLubyte* v); + GLAPI void APIENTRY glVertexAttribs1dvNV(GLuint index, GLsizei count, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribs1fvNV(GLuint index, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glVertexAttribs1svNV(GLuint index, GLsizei count, const GLshort* v); + GLAPI void APIENTRY glVertexAttribs2dvNV(GLuint index, GLsizei count, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribs2fvNV(GLuint index, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glVertexAttribs2svNV(GLuint index, GLsizei count, const GLshort* v); + GLAPI void APIENTRY glVertexAttribs3dvNV(GLuint index, GLsizei count, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribs3fvNV(GLuint index, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glVertexAttribs3svNV(GLuint index, GLsizei count, const GLshort* v); + GLAPI void APIENTRY glVertexAttribs4dvNV(GLuint index, GLsizei count, const GLdouble* v); + GLAPI void APIENTRY glVertexAttribs4fvNV(GLuint index, GLsizei count, const GLfloat* v); + GLAPI void APIENTRY glVertexAttribs4svNV(GLuint index, GLsizei count, const GLshort* v); + GLAPI void APIENTRY glVertexAttribs4ubvNV(GLuint index, GLsizei count, const GLubyte* v); +#endif +#endif /* GL_NV_vertex_program */ + +#ifndef GL_NV_vertex_program1_1 +#define GL_NV_vertex_program1_1 1 +#endif /* GL_NV_vertex_program1_1 */ + +#ifndef GL_NV_vertex_program2 +#define GL_NV_vertex_program2 1 +#endif /* GL_NV_vertex_program2 */ + +#ifndef GL_NV_vertex_program2_option +#define GL_NV_vertex_program2_option 1 +#endif /* GL_NV_vertex_program2_option */ + +#ifndef GL_NV_vertex_program3 +#define GL_NV_vertex_program3 1 +#endif /* GL_NV_vertex_program3 */ + +#ifndef GL_NV_vertex_program4 +#define GL_NV_vertex_program4 1 +#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD +#endif /* GL_NV_vertex_program4 */ + +#ifndef GL_NV_video_capture +#define GL_NV_video_capture 1 +#define GL_VIDEO_BUFFER_NV 0x9020 +#define GL_VIDEO_BUFFER_BINDING_NV 0x9021 +#define GL_FIELD_UPPER_NV 0x9022 +#define GL_FIELD_LOWER_NV 0x9023 +#define GL_NUM_VIDEO_CAPTURE_STREAMS_NV 0x9024 +#define GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV 0x9025 +#define GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV 0x9026 +#define GL_LAST_VIDEO_CAPTURE_STATUS_NV 0x9027 +#define GL_VIDEO_BUFFER_PITCH_NV 0x9028 +#define GL_VIDEO_COLOR_CONVERSION_MATRIX_NV 0x9029 +#define GL_VIDEO_COLOR_CONVERSION_MAX_NV 0x902A +#define GL_VIDEO_COLOR_CONVERSION_MIN_NV 0x902B +#define GL_VIDEO_COLOR_CONVERSION_OFFSET_NV 0x902C +#define GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV 0x902D +#define GL_PARTIAL_SUCCESS_NV 0x902E +#define GL_SUCCESS_NV 0x902F +#define GL_FAILURE_NV 0x9030 +#define GL_YCBYCR8_422_NV 0x9031 +#define GL_YCBAYCR8A_4224_NV 0x9032 +#define GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV 0x9033 +#define GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV 0x9034 +#define GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV 0x9035 +#define GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV 0x9036 +#define GL_Z4Y12Z4CB12Z4CR12_444_NV 0x9037 +#define GL_VIDEO_CAPTURE_FRAME_WIDTH_NV 0x9038 +#define GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV 0x9039 +#define GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV 0x903A +#define GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV 0x903B +#define GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV 0x903C + typedef void (APIENTRYP PFNGLBEGINVIDEOCAPTURENVPROC) (GLuint video_capture_slot); + typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset); + typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture); + typedef void (APIENTRYP PFNGLENDVIDEOCAPTURENVPROC) (GLuint video_capture_slot); + typedef void (APIENTRYP PFNGLGETVIDEOCAPTUREIVNVPROC) (GLuint video_capture_slot, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble* params); + typedef GLenum(APIENTRYP PFNGLVIDEOCAPTURENVPROC) (GLuint video_capture_slot, GLuint* sequence_num, GLuint64EXT* capture_time); + typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glBeginVideoCaptureNV(GLuint video_capture_slot); + GLAPI void APIENTRY glBindVideoCaptureStreamBufferNV(GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset); + GLAPI void APIENTRY glBindVideoCaptureStreamTextureNV(GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture); + GLAPI void APIENTRY glEndVideoCaptureNV(GLuint video_capture_slot); + GLAPI void APIENTRY glGetVideoCaptureivNV(GLuint video_capture_slot, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetVideoCaptureStreamivNV(GLuint video_capture_slot, GLuint stream, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetVideoCaptureStreamfvNV(GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetVideoCaptureStreamdvNV(GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble* params); + GLAPI GLenum APIENTRY glVideoCaptureNV(GLuint video_capture_slot, GLuint* sequence_num, GLuint64EXT* capture_time); + GLAPI void APIENTRY glVideoCaptureStreamParameterivNV(GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint* params); + GLAPI void APIENTRY glVideoCaptureStreamParameterfvNV(GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glVideoCaptureStreamParameterdvNV(GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble* params); +#endif +#endif /* GL_NV_video_capture */ + +#ifndef GL_NV_viewport_array2 +#define GL_NV_viewport_array2 1 +#endif /* GL_NV_viewport_array2 */ + +#ifndef GL_NV_viewport_swizzle +#define GL_NV_viewport_swizzle 1 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV 0x9350 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV 0x9351 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV 0x9352 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV 0x9353 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV 0x9354 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV 0x9355 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV 0x9356 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV 0x9357 +#define GL_VIEWPORT_SWIZZLE_X_NV 0x9358 +#define GL_VIEWPORT_SWIZZLE_Y_NV 0x9359 +#define GL_VIEWPORT_SWIZZLE_Z_NV 0x935A +#define GL_VIEWPORT_SWIZZLE_W_NV 0x935B + typedef void (APIENTRYP PFNGLVIEWPORTSWIZZLENVPROC) (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glViewportSwizzleNV(GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew); +#endif +#endif /* GL_NV_viewport_swizzle */ + +#ifndef GL_OML_interlace +#define GL_OML_interlace 1 +#define GL_INTERLACE_OML 0x8980 +#define GL_INTERLACE_READ_OML 0x8981 +#endif /* GL_OML_interlace */ + +#ifndef GL_OML_resample +#define GL_OML_resample 1 +#define GL_PACK_RESAMPLE_OML 0x8984 +#define GL_UNPACK_RESAMPLE_OML 0x8985 +#define GL_RESAMPLE_REPLICATE_OML 0x8986 +#define GL_RESAMPLE_ZERO_FILL_OML 0x8987 +#define GL_RESAMPLE_AVERAGE_OML 0x8988 +#define GL_RESAMPLE_DECIMATE_OML 0x8989 +#endif /* GL_OML_resample */ + +#ifndef GL_OML_subsample +#define GL_OML_subsample 1 +#define GL_FORMAT_SUBSAMPLE_24_24_OML 0x8982 +#define GL_FORMAT_SUBSAMPLE_244_244_OML 0x8983 +#endif /* GL_OML_subsample */ + +#ifndef GL_OVR_multiview +#define GL_OVR_multiview 1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR 0x9630 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR 0x9632 +#define GL_MAX_VIEWS_OVR 0x9631 +#define GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR 0x9633 + typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFramebufferTextureMultiviewOVR(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews); +#endif +#endif /* GL_OVR_multiview */ + +#ifndef GL_OVR_multiview2 +#define GL_OVR_multiview2 1 +#endif /* GL_OVR_multiview2 */ + +#ifndef GL_PGI_misc_hints +#define GL_PGI_misc_hints 1 +#define GL_PREFER_DOUBLEBUFFER_HINT_PGI 0x1A1F8 +#define GL_CONSERVE_MEMORY_HINT_PGI 0x1A1FD +#define GL_RECLAIM_MEMORY_HINT_PGI 0x1A1FE +#define GL_NATIVE_GRAPHICS_HANDLE_PGI 0x1A202 +#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203 +#define GL_NATIVE_GRAPHICS_END_HINT_PGI 0x1A204 +#define GL_ALWAYS_FAST_HINT_PGI 0x1A20C +#define GL_ALWAYS_SOFT_HINT_PGI 0x1A20D +#define GL_ALLOW_DRAW_OBJ_HINT_PGI 0x1A20E +#define GL_ALLOW_DRAW_WIN_HINT_PGI 0x1A20F +#define GL_ALLOW_DRAW_FRG_HINT_PGI 0x1A210 +#define GL_ALLOW_DRAW_MEM_HINT_PGI 0x1A211 +#define GL_STRICT_DEPTHFUNC_HINT_PGI 0x1A216 +#define GL_STRICT_LIGHTING_HINT_PGI 0x1A217 +#define GL_STRICT_SCISSOR_HINT_PGI 0x1A218 +#define GL_FULL_STIPPLE_HINT_PGI 0x1A219 +#define GL_CLIP_NEAR_HINT_PGI 0x1A220 +#define GL_CLIP_FAR_HINT_PGI 0x1A221 +#define GL_WIDE_LINE_HINT_PGI 0x1A222 +#define GL_BACK_NORMALS_HINT_PGI 0x1A223 + typedef void (APIENTRYP PFNGLHINTPGIPROC) (GLenum target, GLint mode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glHintPGI(GLenum target, GLint mode); +#endif +#endif /* GL_PGI_misc_hints */ + +#ifndef GL_PGI_vertex_hints +#define GL_PGI_vertex_hints 1 +#define GL_VERTEX_DATA_HINT_PGI 0x1A22A +#define GL_VERTEX_CONSISTENT_HINT_PGI 0x1A22B +#define GL_MATERIAL_SIDE_HINT_PGI 0x1A22C +#define GL_MAX_VERTEX_HINT_PGI 0x1A22D +#define GL_COLOR3_BIT_PGI 0x00010000 +#define GL_COLOR4_BIT_PGI 0x00020000 +#define GL_EDGEFLAG_BIT_PGI 0x00040000 +#define GL_INDEX_BIT_PGI 0x00080000 +#define GL_MAT_AMBIENT_BIT_PGI 0x00100000 +#define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000 +#define GL_MAT_DIFFUSE_BIT_PGI 0x00400000 +#define GL_MAT_EMISSION_BIT_PGI 0x00800000 +#define GL_MAT_COLOR_INDEXES_BIT_PGI 0x01000000 +#define GL_MAT_SHININESS_BIT_PGI 0x02000000 +#define GL_MAT_SPECULAR_BIT_PGI 0x04000000 +#define GL_NORMAL_BIT_PGI 0x08000000 +#define GL_TEXCOORD1_BIT_PGI 0x10000000 +#define GL_TEXCOORD2_BIT_PGI 0x20000000 +#define GL_TEXCOORD3_BIT_PGI 0x40000000 +#define GL_TEXCOORD4_BIT_PGI 0x80000000 +#define GL_VERTEX23_BIT_PGI 0x00000004 +#define GL_VERTEX4_BIT_PGI 0x00000008 +#endif /* GL_PGI_vertex_hints */ + +#ifndef GL_REND_screen_coordinates +#define GL_REND_screen_coordinates 1 +#define GL_SCREEN_COORDINATES_REND 0x8490 +#define GL_INVERTED_SCREEN_W_REND 0x8491 +#endif /* GL_REND_screen_coordinates */ + +#ifndef GL_S3_s3tc +#define GL_S3_s3tc 1 +#define GL_RGB_S3TC 0x83A0 +#define GL_RGB4_S3TC 0x83A1 +#define GL_RGBA_S3TC 0x83A2 +#define GL_RGBA4_S3TC 0x83A3 +#define GL_RGBA_DXT5_S3TC 0x83A4 +#define GL_RGBA4_DXT5_S3TC 0x83A5 +#endif /* GL_S3_s3tc */ + +#ifndef GL_SGIS_detail_texture +#define GL_SGIS_detail_texture 1 +#define GL_DETAIL_TEXTURE_2D_SGIS 0x8095 +#define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096 +#define GL_LINEAR_DETAIL_SGIS 0x8097 +#define GL_LINEAR_DETAIL_ALPHA_SGIS 0x8098 +#define GL_LINEAR_DETAIL_COLOR_SGIS 0x8099 +#define GL_DETAIL_TEXTURE_LEVEL_SGIS 0x809A +#define GL_DETAIL_TEXTURE_MODE_SGIS 0x809B +#define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C + typedef void (APIENTRYP PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat* points); + typedef void (APIENTRYP PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat* points); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDetailTexFuncSGIS(GLenum target, GLsizei n, const GLfloat* points); + GLAPI void APIENTRY glGetDetailTexFuncSGIS(GLenum target, GLfloat* points); +#endif +#endif /* GL_SGIS_detail_texture */ + +#ifndef GL_SGIS_fog_function +#define GL_SGIS_fog_function 1 +#define GL_FOG_FUNC_SGIS 0x812A +#define GL_FOG_FUNC_POINTS_SGIS 0x812B +#define GL_MAX_FOG_FUNC_POINTS_SGIS 0x812C + typedef void (APIENTRYP PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat* points); + typedef void (APIENTRYP PFNGLGETFOGFUNCSGISPROC) (GLfloat* points); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFogFuncSGIS(GLsizei n, const GLfloat* points); + GLAPI void APIENTRY glGetFogFuncSGIS(GLfloat* points); +#endif +#endif /* GL_SGIS_fog_function */ + +#ifndef GL_SGIS_generate_mipmap +#define GL_SGIS_generate_mipmap 1 +#define GL_GENERATE_MIPMAP_SGIS 0x8191 +#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192 +#endif /* GL_SGIS_generate_mipmap */ + +#ifndef GL_SGIS_multisample +#define GL_SGIS_multisample 1 +#define GL_MULTISAMPLE_SGIS 0x809D +#define GL_SAMPLE_ALPHA_TO_MASK_SGIS 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE_SGIS 0x809F +#define GL_SAMPLE_MASK_SGIS 0x80A0 +#define GL_1PASS_SGIS 0x80A1 +#define GL_2PASS_0_SGIS 0x80A2 +#define GL_2PASS_1_SGIS 0x80A3 +#define GL_4PASS_0_SGIS 0x80A4 +#define GL_4PASS_1_SGIS 0x80A5 +#define GL_4PASS_2_SGIS 0x80A6 +#define GL_4PASS_3_SGIS 0x80A7 +#define GL_SAMPLE_BUFFERS_SGIS 0x80A8 +#define GL_SAMPLES_SGIS 0x80A9 +#define GL_SAMPLE_MASK_VALUE_SGIS 0x80AA +#define GL_SAMPLE_MASK_INVERT_SGIS 0x80AB +#define GL_SAMPLE_PATTERN_SGIS 0x80AC + typedef void (APIENTRYP PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert); + typedef void (APIENTRYP PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glSampleMaskSGIS(GLclampf value, GLboolean invert); + GLAPI void APIENTRY glSamplePatternSGIS(GLenum pattern); +#endif +#endif /* GL_SGIS_multisample */ + +#ifndef GL_SGIS_pixel_texture +#define GL_SGIS_pixel_texture 1 +#define GL_PIXEL_TEXTURE_SGIS 0x8353 +#define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354 +#define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355 +#define GL_PIXEL_GROUP_COLOR_SGIS 0x8356 + typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPixelTexGenParameteriSGIS(GLenum pname, GLint param); + GLAPI void APIENTRY glPixelTexGenParameterivSGIS(GLenum pname, const GLint* params); + GLAPI void APIENTRY glPixelTexGenParameterfSGIS(GLenum pname, GLfloat param); + GLAPI void APIENTRY glPixelTexGenParameterfvSGIS(GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glGetPixelTexGenParameterivSGIS(GLenum pname, GLint* params); + GLAPI void APIENTRY glGetPixelTexGenParameterfvSGIS(GLenum pname, GLfloat* params); +#endif +#endif /* GL_SGIS_pixel_texture */ + +#ifndef GL_SGIS_point_line_texgen +#define GL_SGIS_point_line_texgen 1 +#define GL_EYE_DISTANCE_TO_POINT_SGIS 0x81F0 +#define GL_OBJECT_DISTANCE_TO_POINT_SGIS 0x81F1 +#define GL_EYE_DISTANCE_TO_LINE_SGIS 0x81F2 +#define GL_OBJECT_DISTANCE_TO_LINE_SGIS 0x81F3 +#define GL_EYE_POINT_SGIS 0x81F4 +#define GL_OBJECT_POINT_SGIS 0x81F5 +#define GL_EYE_LINE_SGIS 0x81F6 +#define GL_OBJECT_LINE_SGIS 0x81F7 +#endif /* GL_SGIS_point_line_texgen */ + +#ifndef GL_SGIS_point_parameters +#define GL_SGIS_point_parameters 1 +#define GL_POINT_SIZE_MIN_SGIS 0x8126 +#define GL_POINT_SIZE_MAX_SGIS 0x8127 +#define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128 +#define GL_DISTANCE_ATTENUATION_SGIS 0x8129 + typedef void (APIENTRYP PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPointParameterfSGIS(GLenum pname, GLfloat param); + GLAPI void APIENTRY glPointParameterfvSGIS(GLenum pname, const GLfloat* params); +#endif +#endif /* GL_SGIS_point_parameters */ + +#ifndef GL_SGIS_sharpen_texture +#define GL_SGIS_sharpen_texture 1 +#define GL_LINEAR_SHARPEN_SGIS 0x80AD +#define GL_LINEAR_SHARPEN_ALPHA_SGIS 0x80AE +#define GL_LINEAR_SHARPEN_COLOR_SGIS 0x80AF +#define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0 + typedef void (APIENTRYP PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat* points); + typedef void (APIENTRYP PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat* points); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glSharpenTexFuncSGIS(GLenum target, GLsizei n, const GLfloat* points); + GLAPI void APIENTRY glGetSharpenTexFuncSGIS(GLenum target, GLfloat* points); +#endif +#endif /* GL_SGIS_sharpen_texture */ + +#ifndef GL_SGIS_texture4D +#define GL_SGIS_texture4D 1 +#define GL_PACK_SKIP_VOLUMES_SGIS 0x8130 +#define GL_PACK_IMAGE_DEPTH_SGIS 0x8131 +#define GL_UNPACK_SKIP_VOLUMES_SGIS 0x8132 +#define GL_UNPACK_IMAGE_DEPTH_SGIS 0x8133 +#define GL_TEXTURE_4D_SGIS 0x8134 +#define GL_PROXY_TEXTURE_4D_SGIS 0x8135 +#define GL_TEXTURE_4DSIZE_SGIS 0x8136 +#define GL_TEXTURE_WRAP_Q_SGIS 0x8137 +#define GL_MAX_4D_TEXTURE_SIZE_SGIS 0x8138 +#define GL_TEXTURE_4D_BINDING_SGIS 0x814F + typedef void (APIENTRYP PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const void* pixels); + typedef void (APIENTRYP PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const void* pixels); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTexImage4DSGIS(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const void* pixels); + GLAPI void APIENTRY glTexSubImage4DSGIS(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const void* pixels); +#endif +#endif /* GL_SGIS_texture4D */ + +#ifndef GL_SGIS_texture_border_clamp +#define GL_SGIS_texture_border_clamp 1 +#define GL_CLAMP_TO_BORDER_SGIS 0x812D +#endif /* GL_SGIS_texture_border_clamp */ + +#ifndef GL_SGIS_texture_color_mask +#define GL_SGIS_texture_color_mask 1 +#define GL_TEXTURE_COLOR_WRITEMASK_SGIS 0x81EF + typedef void (APIENTRYP PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTextureColorMaskSGIS(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +#endif +#endif /* GL_SGIS_texture_color_mask */ + +#ifndef GL_SGIS_texture_edge_clamp +#define GL_SGIS_texture_edge_clamp 1 +#define GL_CLAMP_TO_EDGE_SGIS 0x812F +#endif /* GL_SGIS_texture_edge_clamp */ + +#ifndef GL_SGIS_texture_filter4 +#define GL_SGIS_texture_filter4 1 +#define GL_FILTER4_SGIS 0x8146 +#define GL_TEXTURE_FILTER4_SIZE_SGIS 0x8147 + typedef void (APIENTRYP PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat* weights); + typedef void (APIENTRYP PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat* weights); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGetTexFilterFuncSGIS(GLenum target, GLenum filter, GLfloat* weights); + GLAPI void APIENTRY glTexFilterFuncSGIS(GLenum target, GLenum filter, GLsizei n, const GLfloat* weights); +#endif +#endif /* GL_SGIS_texture_filter4 */ + +#ifndef GL_SGIS_texture_lod +#define GL_SGIS_texture_lod 1 +#define GL_TEXTURE_MIN_LOD_SGIS 0x813A +#define GL_TEXTURE_MAX_LOD_SGIS 0x813B +#define GL_TEXTURE_BASE_LEVEL_SGIS 0x813C +#define GL_TEXTURE_MAX_LEVEL_SGIS 0x813D +#endif /* GL_SGIS_texture_lod */ + +#ifndef GL_SGIS_texture_select +#define GL_SGIS_texture_select 1 +#define GL_DUAL_ALPHA4_SGIS 0x8110 +#define GL_DUAL_ALPHA8_SGIS 0x8111 +#define GL_DUAL_ALPHA12_SGIS 0x8112 +#define GL_DUAL_ALPHA16_SGIS 0x8113 +#define GL_DUAL_LUMINANCE4_SGIS 0x8114 +#define GL_DUAL_LUMINANCE8_SGIS 0x8115 +#define GL_DUAL_LUMINANCE12_SGIS 0x8116 +#define GL_DUAL_LUMINANCE16_SGIS 0x8117 +#define GL_DUAL_INTENSITY4_SGIS 0x8118 +#define GL_DUAL_INTENSITY8_SGIS 0x8119 +#define GL_DUAL_INTENSITY12_SGIS 0x811A +#define GL_DUAL_INTENSITY16_SGIS 0x811B +#define GL_DUAL_LUMINANCE_ALPHA4_SGIS 0x811C +#define GL_DUAL_LUMINANCE_ALPHA8_SGIS 0x811D +#define GL_QUAD_ALPHA4_SGIS 0x811E +#define GL_QUAD_ALPHA8_SGIS 0x811F +#define GL_QUAD_LUMINANCE4_SGIS 0x8120 +#define GL_QUAD_LUMINANCE8_SGIS 0x8121 +#define GL_QUAD_INTENSITY4_SGIS 0x8122 +#define GL_QUAD_INTENSITY8_SGIS 0x8123 +#define GL_DUAL_TEXTURE_SELECT_SGIS 0x8124 +#define GL_QUAD_TEXTURE_SELECT_SGIS 0x8125 +#endif /* GL_SGIS_texture_select */ + +#ifndef GL_SGIX_async +#define GL_SGIX_async 1 +#define GL_ASYNC_MARKER_SGIX 0x8329 + typedef void (APIENTRYP PFNGLASYNCMARKERSGIXPROC) (GLuint marker); + typedef GLint(APIENTRYP PFNGLFINISHASYNCSGIXPROC) (GLuint* markerp); + typedef GLint(APIENTRYP PFNGLPOLLASYNCSGIXPROC) (GLuint* markerp); + typedef GLuint(APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range); + typedef void (APIENTRYP PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range); + typedef GLboolean(APIENTRYP PFNGLISASYNCMARKERSGIXPROC) (GLuint marker); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glAsyncMarkerSGIX(GLuint marker); + GLAPI GLint APIENTRY glFinishAsyncSGIX(GLuint* markerp); + GLAPI GLint APIENTRY glPollAsyncSGIX(GLuint* markerp); + GLAPI GLuint APIENTRY glGenAsyncMarkersSGIX(GLsizei range); + GLAPI void APIENTRY glDeleteAsyncMarkersSGIX(GLuint marker, GLsizei range); + GLAPI GLboolean APIENTRY glIsAsyncMarkerSGIX(GLuint marker); +#endif +#endif /* GL_SGIX_async */ + +#ifndef GL_SGIX_async_histogram +#define GL_SGIX_async_histogram 1 +#define GL_ASYNC_HISTOGRAM_SGIX 0x832C +#define GL_MAX_ASYNC_HISTOGRAM_SGIX 0x832D +#endif /* GL_SGIX_async_histogram */ + +#ifndef GL_SGIX_async_pixel +#define GL_SGIX_async_pixel 1 +#define GL_ASYNC_TEX_IMAGE_SGIX 0x835C +#define GL_ASYNC_DRAW_PIXELS_SGIX 0x835D +#define GL_ASYNC_READ_PIXELS_SGIX 0x835E +#define GL_MAX_ASYNC_TEX_IMAGE_SGIX 0x835F +#define GL_MAX_ASYNC_DRAW_PIXELS_SGIX 0x8360 +#define GL_MAX_ASYNC_READ_PIXELS_SGIX 0x8361 +#endif /* GL_SGIX_async_pixel */ + +#ifndef GL_SGIX_blend_alpha_minmax +#define GL_SGIX_blend_alpha_minmax 1 +#define GL_ALPHA_MIN_SGIX 0x8320 +#define GL_ALPHA_MAX_SGIX 0x8321 +#endif /* GL_SGIX_blend_alpha_minmax */ + +#ifndef GL_SGIX_calligraphic_fragment +#define GL_SGIX_calligraphic_fragment 1 +#define GL_CALLIGRAPHIC_FRAGMENT_SGIX 0x8183 +#endif /* GL_SGIX_calligraphic_fragment */ + +#ifndef GL_SGIX_clipmap +#define GL_SGIX_clipmap 1 +#define GL_LINEAR_CLIPMAP_LINEAR_SGIX 0x8170 +#define GL_TEXTURE_CLIPMAP_CENTER_SGIX 0x8171 +#define GL_TEXTURE_CLIPMAP_FRAME_SGIX 0x8172 +#define GL_TEXTURE_CLIPMAP_OFFSET_SGIX 0x8173 +#define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174 +#define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175 +#define GL_TEXTURE_CLIPMAP_DEPTH_SGIX 0x8176 +#define GL_MAX_CLIPMAP_DEPTH_SGIX 0x8177 +#define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178 +#define GL_NEAREST_CLIPMAP_NEAREST_SGIX 0x844D +#define GL_NEAREST_CLIPMAP_LINEAR_SGIX 0x844E +#define GL_LINEAR_CLIPMAP_NEAREST_SGIX 0x844F +#endif /* GL_SGIX_clipmap */ + +#ifndef GL_SGIX_convolution_accuracy +#define GL_SGIX_convolution_accuracy 1 +#define GL_CONVOLUTION_HINT_SGIX 0x8316 +#endif /* GL_SGIX_convolution_accuracy */ + +#ifndef GL_SGIX_depth_pass_instrument +#define GL_SGIX_depth_pass_instrument 1 +#endif /* GL_SGIX_depth_pass_instrument */ + +#ifndef GL_SGIX_depth_texture +#define GL_SGIX_depth_texture 1 +#define GL_DEPTH_COMPONENT16_SGIX 0x81A5 +#define GL_DEPTH_COMPONENT24_SGIX 0x81A6 +#define GL_DEPTH_COMPONENT32_SGIX 0x81A7 +#endif /* GL_SGIX_depth_texture */ + +#ifndef GL_SGIX_flush_raster +#define GL_SGIX_flush_raster 1 + typedef void (APIENTRYP PFNGLFLUSHRASTERSGIXPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFlushRasterSGIX(void); +#endif +#endif /* GL_SGIX_flush_raster */ + +#ifndef GL_SGIX_fog_offset +#define GL_SGIX_fog_offset 1 +#define GL_FOG_OFFSET_SGIX 0x8198 +#define GL_FOG_OFFSET_VALUE_SGIX 0x8199 +#endif /* GL_SGIX_fog_offset */ + +#ifndef GL_SGIX_fragment_lighting +#define GL_SGIX_fragment_lighting 1 +#define GL_FRAGMENT_LIGHTING_SGIX 0x8400 +#define GL_FRAGMENT_COLOR_MATERIAL_SGIX 0x8401 +#define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402 +#define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403 +#define GL_MAX_FRAGMENT_LIGHTS_SGIX 0x8404 +#define GL_MAX_ACTIVE_LIGHTS_SGIX 0x8405 +#define GL_CURRENT_RASTER_NORMAL_SGIX 0x8406 +#define GL_LIGHT_ENV_MODE_SGIX 0x8407 +#define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408 +#define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409 +#define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A +#define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B +#define GL_FRAGMENT_LIGHT0_SGIX 0x840C +#define GL_FRAGMENT_LIGHT1_SGIX 0x840D +#define GL_FRAGMENT_LIGHT2_SGIX 0x840E +#define GL_FRAGMENT_LIGHT3_SGIX 0x840F +#define GL_FRAGMENT_LIGHT4_SGIX 0x8410 +#define GL_FRAGMENT_LIGHT5_SGIX 0x8411 +#define GL_FRAGMENT_LIGHT6_SGIX 0x8412 +#define GL_FRAGMENT_LIGHT7_SGIX 0x8413 + typedef void (APIENTRYP PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode); + typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFragmentColorMaterialSGIX(GLenum face, GLenum mode); + GLAPI void APIENTRY glFragmentLightfSGIX(GLenum light, GLenum pname, GLfloat param); + GLAPI void APIENTRY glFragmentLightfvSGIX(GLenum light, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glFragmentLightiSGIX(GLenum light, GLenum pname, GLint param); + GLAPI void APIENTRY glFragmentLightivSGIX(GLenum light, GLenum pname, const GLint* params); + GLAPI void APIENTRY glFragmentLightModelfSGIX(GLenum pname, GLfloat param); + GLAPI void APIENTRY glFragmentLightModelfvSGIX(GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glFragmentLightModeliSGIX(GLenum pname, GLint param); + GLAPI void APIENTRY glFragmentLightModelivSGIX(GLenum pname, const GLint* params); + GLAPI void APIENTRY glFragmentMaterialfSGIX(GLenum face, GLenum pname, GLfloat param); + GLAPI void APIENTRY glFragmentMaterialfvSGIX(GLenum face, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glFragmentMaterialiSGIX(GLenum face, GLenum pname, GLint param); + GLAPI void APIENTRY glFragmentMaterialivSGIX(GLenum face, GLenum pname, const GLint* params); + GLAPI void APIENTRY glGetFragmentLightfvSGIX(GLenum light, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetFragmentLightivSGIX(GLenum light, GLenum pname, GLint* params); + GLAPI void APIENTRY glGetFragmentMaterialfvSGIX(GLenum face, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetFragmentMaterialivSGIX(GLenum face, GLenum pname, GLint* params); + GLAPI void APIENTRY glLightEnviSGIX(GLenum pname, GLint param); +#endif +#endif /* GL_SGIX_fragment_lighting */ + +#ifndef GL_SGIX_framezoom +#define GL_SGIX_framezoom 1 +#define GL_FRAMEZOOM_SGIX 0x818B +#define GL_FRAMEZOOM_FACTOR_SGIX 0x818C +#define GL_MAX_FRAMEZOOM_FACTOR_SGIX 0x818D + typedef void (APIENTRYP PFNGLFRAMEZOOMSGIXPROC) (GLint factor); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFrameZoomSGIX(GLint factor); +#endif +#endif /* GL_SGIX_framezoom */ + +#ifndef GL_SGIX_igloo_interface +#define GL_SGIX_igloo_interface 1 + typedef void (APIENTRYP PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const void* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glIglooInterfaceSGIX(GLenum pname, const void* params); +#endif +#endif /* GL_SGIX_igloo_interface */ + +#ifndef GL_SGIX_instruments +#define GL_SGIX_instruments 1 +#define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180 +#define GL_INSTRUMENT_MEASUREMENTS_SGIX 0x8181 + typedef GLint(APIENTRYP PFNGLGETINSTRUMENTSSGIXPROC) (void); + typedef void (APIENTRYP PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint* buffer); + typedef GLint(APIENTRYP PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint* marker_p); + typedef void (APIENTRYP PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker); + typedef void (APIENTRYP PFNGLSTARTINSTRUMENTSSGIXPROC) (void); + typedef void (APIENTRYP PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI GLint APIENTRY glGetInstrumentsSGIX(void); + GLAPI void APIENTRY glInstrumentsBufferSGIX(GLsizei size, GLint* buffer); + GLAPI GLint APIENTRY glPollInstrumentsSGIX(GLint* marker_p); + GLAPI void APIENTRY glReadInstrumentsSGIX(GLint marker); + GLAPI void APIENTRY glStartInstrumentsSGIX(void); + GLAPI void APIENTRY glStopInstrumentsSGIX(GLint marker); +#endif +#endif /* GL_SGIX_instruments */ + +#ifndef GL_SGIX_interlace +#define GL_SGIX_interlace 1 +#define GL_INTERLACE_SGIX 0x8094 +#endif /* GL_SGIX_interlace */ + +#ifndef GL_SGIX_ir_instrument1 +#define GL_SGIX_ir_instrument1 1 +#define GL_IR_INSTRUMENT1_SGIX 0x817F +#endif /* GL_SGIX_ir_instrument1 */ + +#ifndef GL_SGIX_list_priority +#define GL_SGIX_list_priority 1 +#define GL_LIST_PRIORITY_SGIX 0x8182 + typedef void (APIENTRYP PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint* params); + typedef void (APIENTRYP PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGetListParameterfvSGIX(GLuint list, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetListParameterivSGIX(GLuint list, GLenum pname, GLint* params); + GLAPI void APIENTRY glListParameterfSGIX(GLuint list, GLenum pname, GLfloat param); + GLAPI void APIENTRY glListParameterfvSGIX(GLuint list, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glListParameteriSGIX(GLuint list, GLenum pname, GLint param); + GLAPI void APIENTRY glListParameterivSGIX(GLuint list, GLenum pname, const GLint* params); +#endif +#endif /* GL_SGIX_list_priority */ + +#ifndef GL_SGIX_pixel_texture +#define GL_SGIX_pixel_texture 1 +#define GL_PIXEL_TEX_GEN_SGIX 0x8139 +#define GL_PIXEL_TEX_GEN_MODE_SGIX 0x832B + typedef void (APIENTRYP PFNGLPIXELTEXGENSGIXPROC) (GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glPixelTexGenSGIX(GLenum mode); +#endif +#endif /* GL_SGIX_pixel_texture */ + +#ifndef GL_SGIX_pixel_tiles +#define GL_SGIX_pixel_tiles 1 +#define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E +#define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F +#define GL_PIXEL_TILE_WIDTH_SGIX 0x8140 +#define GL_PIXEL_TILE_HEIGHT_SGIX 0x8141 +#define GL_PIXEL_TILE_GRID_WIDTH_SGIX 0x8142 +#define GL_PIXEL_TILE_GRID_HEIGHT_SGIX 0x8143 +#define GL_PIXEL_TILE_GRID_DEPTH_SGIX 0x8144 +#define GL_PIXEL_TILE_CACHE_SIZE_SGIX 0x8145 +#endif /* GL_SGIX_pixel_tiles */ + +#ifndef GL_SGIX_polynomial_ffd +#define GL_SGIX_polynomial_ffd 1 +#define GL_TEXTURE_DEFORMATION_BIT_SGIX 0x00000001 +#define GL_GEOMETRY_DEFORMATION_BIT_SGIX 0x00000002 +#define GL_GEOMETRY_DEFORMATION_SGIX 0x8194 +#define GL_TEXTURE_DEFORMATION_SGIX 0x8195 +#define GL_DEFORMATIONS_MASK_SGIX 0x8196 +#define GL_MAX_DEFORMATION_ORDER_SGIX 0x8197 + typedef void (APIENTRYP PFNGLDEFORMATIONMAP3DSGIXPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble* points); + typedef void (APIENTRYP PFNGLDEFORMATIONMAP3FSGIXPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat* points); + typedef void (APIENTRYP PFNGLDEFORMSGIXPROC) (GLbitfield mask); + typedef void (APIENTRYP PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDeformationMap3dSGIX(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble* points); + GLAPI void APIENTRY glDeformationMap3fSGIX(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat* points); + GLAPI void APIENTRY glDeformSGIX(GLbitfield mask); + GLAPI void APIENTRY glLoadIdentityDeformationMapSGIX(GLbitfield mask); +#endif +#endif /* GL_SGIX_polynomial_ffd */ + +#ifndef GL_SGIX_reference_plane +#define GL_SGIX_reference_plane 1 +#define GL_REFERENCE_PLANE_SGIX 0x817D +#define GL_REFERENCE_PLANE_EQUATION_SGIX 0x817E + typedef void (APIENTRYP PFNGLREFERENCEPLANESGIXPROC) (const GLdouble* equation); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glReferencePlaneSGIX(const GLdouble* equation); +#endif +#endif /* GL_SGIX_reference_plane */ + +#ifndef GL_SGIX_resample +#define GL_SGIX_resample 1 +#define GL_PACK_RESAMPLE_SGIX 0x842E +#define GL_UNPACK_RESAMPLE_SGIX 0x842F +#define GL_RESAMPLE_REPLICATE_SGIX 0x8433 +#define GL_RESAMPLE_ZERO_FILL_SGIX 0x8434 +#define GL_RESAMPLE_DECIMATE_SGIX 0x8430 +#endif /* GL_SGIX_resample */ + +#ifndef GL_SGIX_scalebias_hint +#define GL_SGIX_scalebias_hint 1 +#define GL_SCALEBIAS_HINT_SGIX 0x8322 +#endif /* GL_SGIX_scalebias_hint */ + +#ifndef GL_SGIX_shadow +#define GL_SGIX_shadow 1 +#define GL_TEXTURE_COMPARE_SGIX 0x819A +#define GL_TEXTURE_COMPARE_OPERATOR_SGIX 0x819B +#define GL_TEXTURE_LEQUAL_R_SGIX 0x819C +#define GL_TEXTURE_GEQUAL_R_SGIX 0x819D +#endif /* GL_SGIX_shadow */ + +#ifndef GL_SGIX_shadow_ambient +#define GL_SGIX_shadow_ambient 1 +#define GL_SHADOW_AMBIENT_SGIX 0x80BF +#endif /* GL_SGIX_shadow_ambient */ + +#ifndef GL_SGIX_sprite +#define GL_SGIX_sprite 1 +#define GL_SPRITE_SGIX 0x8148 +#define GL_SPRITE_MODE_SGIX 0x8149 +#define GL_SPRITE_AXIS_SGIX 0x814A +#define GL_SPRITE_TRANSLATION_SGIX 0x814B +#define GL_SPRITE_AXIAL_SGIX 0x814C +#define GL_SPRITE_OBJECT_ALIGNED_SGIX 0x814D +#define GL_SPRITE_EYE_ALIGNED_SGIX 0x814E + typedef void (APIENTRYP PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param); + typedef void (APIENTRYP PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param); + typedef void (APIENTRYP PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glSpriteParameterfSGIX(GLenum pname, GLfloat param); + GLAPI void APIENTRY glSpriteParameterfvSGIX(GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glSpriteParameteriSGIX(GLenum pname, GLint param); + GLAPI void APIENTRY glSpriteParameterivSGIX(GLenum pname, const GLint* params); +#endif +#endif /* GL_SGIX_sprite */ + +#ifndef GL_SGIX_subsample +#define GL_SGIX_subsample 1 +#define GL_PACK_SUBSAMPLE_RATE_SGIX 0x85A0 +#define GL_UNPACK_SUBSAMPLE_RATE_SGIX 0x85A1 +#define GL_PIXEL_SUBSAMPLE_4444_SGIX 0x85A2 +#define GL_PIXEL_SUBSAMPLE_2424_SGIX 0x85A3 +#define GL_PIXEL_SUBSAMPLE_4242_SGIX 0x85A4 +#endif /* GL_SGIX_subsample */ + +#ifndef GL_SGIX_tag_sample_buffer +#define GL_SGIX_tag_sample_buffer 1 + typedef void (APIENTRYP PFNGLTAGSAMPLEBUFFERSGIXPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glTagSampleBufferSGIX(void); +#endif +#endif /* GL_SGIX_tag_sample_buffer */ + +#ifndef GL_SGIX_texture_add_env +#define GL_SGIX_texture_add_env 1 +#define GL_TEXTURE_ENV_BIAS_SGIX 0x80BE +#endif /* GL_SGIX_texture_add_env */ + +#ifndef GL_SGIX_texture_coordinate_clamp +#define GL_SGIX_texture_coordinate_clamp 1 +#define GL_TEXTURE_MAX_CLAMP_S_SGIX 0x8369 +#define GL_TEXTURE_MAX_CLAMP_T_SGIX 0x836A +#define GL_TEXTURE_MAX_CLAMP_R_SGIX 0x836B +#endif /* GL_SGIX_texture_coordinate_clamp */ + +#ifndef GL_SGIX_texture_lod_bias +#define GL_SGIX_texture_lod_bias 1 +#define GL_TEXTURE_LOD_BIAS_S_SGIX 0x818E +#define GL_TEXTURE_LOD_BIAS_T_SGIX 0x818F +#define GL_TEXTURE_LOD_BIAS_R_SGIX 0x8190 +#endif /* GL_SGIX_texture_lod_bias */ + +#ifndef GL_SGIX_texture_multi_buffer +#define GL_SGIX_texture_multi_buffer 1 +#define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E +#endif /* GL_SGIX_texture_multi_buffer */ + +#ifndef GL_SGIX_texture_scale_bias +#define GL_SGIX_texture_scale_bias 1 +#define GL_POST_TEXTURE_FILTER_BIAS_SGIX 0x8179 +#define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A +#define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B +#define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C +#endif /* GL_SGIX_texture_scale_bias */ + +#ifndef GL_SGIX_vertex_preclip +#define GL_SGIX_vertex_preclip 1 +#define GL_VERTEX_PRECLIP_SGIX 0x83EE +#define GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF +#endif /* GL_SGIX_vertex_preclip */ + +#ifndef GL_SGIX_ycrcb +#define GL_SGIX_ycrcb 1 +#define GL_YCRCB_422_SGIX 0x81BB +#define GL_YCRCB_444_SGIX 0x81BC +#endif /* GL_SGIX_ycrcb */ + +#ifndef GL_SGIX_ycrcb_subsample +#define GL_SGIX_ycrcb_subsample 1 +#endif /* GL_SGIX_ycrcb_subsample */ + +#ifndef GL_SGIX_ycrcba +#define GL_SGIX_ycrcba 1 +#define GL_YCRCB_SGIX 0x8318 +#define GL_YCRCBA_SGIX 0x8319 +#endif /* GL_SGIX_ycrcba */ + +#ifndef GL_SGI_color_matrix +#define GL_SGI_color_matrix 1 +#define GL_COLOR_MATRIX_SGI 0x80B1 +#define GL_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B2 +#define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3 +#define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4 +#define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5 +#define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6 +#define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7 +#define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8 +#define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9 +#define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA +#define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB +#endif /* GL_SGI_color_matrix */ + +#ifndef GL_SGI_color_table +#define GL_SGI_color_table 1 +#define GL_COLOR_TABLE_SGI 0x80D0 +#define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1 +#define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2 +#define GL_PROXY_COLOR_TABLE_SGI 0x80D3 +#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4 +#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5 +#define GL_COLOR_TABLE_SCALE_SGI 0x80D6 +#define GL_COLOR_TABLE_BIAS_SGI 0x80D7 +#define GL_COLOR_TABLE_FORMAT_SGI 0x80D8 +#define GL_COLOR_TABLE_WIDTH_SGI 0x80D9 +#define GL_COLOR_TABLE_RED_SIZE_SGI 0x80DA +#define GL_COLOR_TABLE_GREEN_SIZE_SGI 0x80DB +#define GL_COLOR_TABLE_BLUE_SIZE_SGI 0x80DC +#define GL_COLOR_TABLE_ALPHA_SIZE_SGI 0x80DD +#define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE +#define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF + typedef void (APIENTRYP PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* table); + typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat* params); + typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint* params); + typedef void (APIENTRYP PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); + typedef void (APIENTRYP PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, void* table); + typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat* params); + typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint* params); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glColorTableSGI(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* table); + GLAPI void APIENTRY glColorTableParameterfvSGI(GLenum target, GLenum pname, const GLfloat* params); + GLAPI void APIENTRY glColorTableParameterivSGI(GLenum target, GLenum pname, const GLint* params); + GLAPI void APIENTRY glCopyColorTableSGI(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); + GLAPI void APIENTRY glGetColorTableSGI(GLenum target, GLenum format, GLenum type, void* table); + GLAPI void APIENTRY glGetColorTableParameterfvSGI(GLenum target, GLenum pname, GLfloat* params); + GLAPI void APIENTRY glGetColorTableParameterivSGI(GLenum target, GLenum pname, GLint* params); +#endif +#endif /* GL_SGI_color_table */ + +#ifndef GL_SGI_texture_color_table +#define GL_SGI_texture_color_table 1 +#define GL_TEXTURE_COLOR_TABLE_SGI 0x80BC +#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI 0x80BD +#endif /* GL_SGI_texture_color_table */ + +#ifndef GL_SUNX_constant_data +#define GL_SUNX_constant_data 1 +#define GL_UNPACK_CONSTANT_DATA_SUNX 0x81D5 +#define GL_TEXTURE_CONSTANT_DATA_SUNX 0x81D6 + typedef void (APIENTRYP PFNGLFINISHTEXTURESUNXPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glFinishTextureSUNX(void); +#endif +#endif /* GL_SUNX_constant_data */ + +#ifndef GL_SUN_convolution_border_modes +#define GL_SUN_convolution_border_modes 1 +#define GL_WRAP_BORDER_SUN 0x81D4 +#endif /* GL_SUN_convolution_border_modes */ + +#ifndef GL_SUN_global_alpha +#define GL_SUN_global_alpha 1 +#define GL_GLOBAL_ALPHA_SUN 0x81D9 +#define GL_GLOBAL_ALPHA_FACTOR_SUN 0x81DA + typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor); + typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor); + typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor); + typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor); + typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor); + typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor); + typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor); + typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glGlobalAlphaFactorbSUN(GLbyte factor); + GLAPI void APIENTRY glGlobalAlphaFactorsSUN(GLshort factor); + GLAPI void APIENTRY glGlobalAlphaFactoriSUN(GLint factor); + GLAPI void APIENTRY glGlobalAlphaFactorfSUN(GLfloat factor); + GLAPI void APIENTRY glGlobalAlphaFactordSUN(GLdouble factor); + GLAPI void APIENTRY glGlobalAlphaFactorubSUN(GLubyte factor); + GLAPI void APIENTRY glGlobalAlphaFactorusSUN(GLushort factor); + GLAPI void APIENTRY glGlobalAlphaFactoruiSUN(GLuint factor); +#endif +#endif /* GL_SUN_global_alpha */ + +#ifndef GL_SUN_mesh_array +#define GL_SUN_mesh_array 1 +#define GL_QUAD_MESH_SUN 0x8614 +#define GL_TRIANGLE_MESH_SUN 0x8615 + typedef void (APIENTRYP PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glDrawMeshArraysSUN(GLenum mode, GLint first, GLsizei count, GLsizei width); +#endif +#endif /* GL_SUN_mesh_array */ + +#ifndef GL_SUN_slice_accum +#define GL_SUN_slice_accum 1 +#define GL_SLICE_ACCUM_SUN 0x85CC +#endif /* GL_SUN_slice_accum */ + +#ifndef GL_SUN_triangle_list +#define GL_SUN_triangle_list 1 +#define GL_RESTART_SUN 0x0001 +#define GL_REPLACE_MIDDLE_SUN 0x0002 +#define GL_REPLACE_OLDEST_SUN 0x0003 +#define GL_TRIANGLE_LIST_SUN 0x81D7 +#define GL_REPLACEMENT_CODE_SUN 0x81D8 +#define GL_REPLACEMENT_CODE_ARRAY_SUN 0x85C0 +#define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1 +#define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2 +#define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3 +#define GL_R1UI_V3F_SUN 0x85C4 +#define GL_R1UI_C4UB_V3F_SUN 0x85C5 +#define GL_R1UI_C3F_V3F_SUN 0x85C6 +#define GL_R1UI_N3F_V3F_SUN 0x85C7 +#define GL_R1UI_C4F_N3F_V3F_SUN 0x85C8 +#define GL_R1UI_T2F_V3F_SUN 0x85C9 +#define GL_R1UI_T2F_N3F_V3F_SUN 0x85CA +#define GL_R1UI_T2F_C4F_N3F_V3F_SUN 0x85CB + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint* code); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort* code); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte* code); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const void** pointer); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glReplacementCodeuiSUN(GLuint code); + GLAPI void APIENTRY glReplacementCodeusSUN(GLushort code); + GLAPI void APIENTRY glReplacementCodeubSUN(GLubyte code); + GLAPI void APIENTRY glReplacementCodeuivSUN(const GLuint* code); + GLAPI void APIENTRY glReplacementCodeusvSUN(const GLushort* code); + GLAPI void APIENTRY glReplacementCodeubvSUN(const GLubyte* code); + GLAPI void APIENTRY glReplacementCodePointerSUN(GLenum type, GLsizei stride, const void** pointer); +#endif +#endif /* GL_SUN_triangle_list */ + +#ifndef GL_SUN_vertex +#define GL_SUN_vertex 1 + typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); + typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte* c, const GLfloat* v); + typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte* c, const GLfloat* v); + typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat* c, const GLfloat* v); + typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* n, const GLfloat* v); + typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* c, const GLfloat* n, const GLfloat* v); + typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat* v); + typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat* tc, const GLfloat* v); + typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat* tc, const GLubyte* c, const GLfloat* v); + typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat* c, const GLfloat* v); + typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat* n, const GLfloat* v); + typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat* c, const GLfloat* n, const GLfloat* v); + typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat* tc, const GLfloat* c, const GLfloat* n, const GLfloat* v); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat* v); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint* rc, const GLubyte* c, const GLfloat* v); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat* c, const GLfloat* v); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat* n, const GLfloat* v); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat* c, const GLfloat* n, const GLfloat* v); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat* tc, const GLfloat* v); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat* tc, const GLfloat* n, const GLfloat* v); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat* tc, const GLfloat* c, const GLfloat* n, const GLfloat* v); +#ifdef GL_GLEXT_PROTOTYPES + GLAPI void APIENTRY glColor4ubVertex2fSUN(GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); + GLAPI void APIENTRY glColor4ubVertex2fvSUN(const GLubyte* c, const GLfloat* v); + GLAPI void APIENTRY glColor4ubVertex3fSUN(GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glColor4ubVertex3fvSUN(const GLubyte* c, const GLfloat* v); + GLAPI void APIENTRY glColor3fVertex3fSUN(GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glColor3fVertex3fvSUN(const GLfloat* c, const GLfloat* v); + GLAPI void APIENTRY glNormal3fVertex3fSUN(GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glNormal3fVertex3fvSUN(const GLfloat* n, const GLfloat* v); + GLAPI void APIENTRY glColor4fNormal3fVertex3fSUN(GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glColor4fNormal3fVertex3fvSUN(const GLfloat* c, const GLfloat* n, const GLfloat* v); + GLAPI void APIENTRY glTexCoord2fVertex3fSUN(GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glTexCoord2fVertex3fvSUN(const GLfloat* tc, const GLfloat* v); + GLAPI void APIENTRY glTexCoord4fVertex4fSUN(GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glTexCoord4fVertex4fvSUN(const GLfloat* tc, const GLfloat* v); + GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fSUN(GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fvSUN(const GLfloat* tc, const GLubyte* c, const GLfloat* v); + GLAPI void APIENTRY glTexCoord2fColor3fVertex3fSUN(GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glTexCoord2fColor3fVertex3fvSUN(const GLfloat* tc, const GLfloat* c, const GLfloat* v); + GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fSUN(GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fvSUN(const GLfloat* tc, const GLfloat* n, const GLfloat* v); + GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fSUN(GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fvSUN(const GLfloat* tc, const GLfloat* c, const GLfloat* n, const GLfloat* v); + GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fSUN(GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w); + GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fvSUN(const GLfloat* tc, const GLfloat* c, const GLfloat* n, const GLfloat* v); + GLAPI void APIENTRY glReplacementCodeuiVertex3fSUN(GLuint rc, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glReplacementCodeuiVertex3fvSUN(const GLuint* rc, const GLfloat* v); + GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fSUN(GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fvSUN(const GLuint* rc, const GLubyte* c, const GLfloat* v); + GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fSUN(GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fvSUN(const GLuint* rc, const GLfloat* c, const GLfloat* v); + GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fSUN(GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fvSUN(const GLuint* rc, const GLfloat* n, const GLfloat* v); + GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fSUN(GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fvSUN(const GLuint* rc, const GLfloat* c, const GLfloat* n, const GLfloat* v); + GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fSUN(GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fvSUN(const GLuint* rc, const GLfloat* tc, const GLfloat* v); + GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN(GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN(const GLuint* rc, const GLfloat* tc, const GLfloat* n, const GLfloat* v); + GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN(GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); + GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN(const GLuint* rc, const GLfloat* tc, const GLfloat* c, const GLfloat* n, const GLfloat* v); +#endif +#endif /* GL_SUN_vertex */ + +#ifndef GL_WIN_phong_shading +#define GL_WIN_phong_shading 1 +#define GL_PHONG_WIN 0x80EA +#define GL_PHONG_HINT_WIN 0x80EB +#endif /* GL_WIN_phong_shading */ + +#ifndef GL_WIN_specular_fog +#define GL_WIN_specular_fog 1 +#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC +#endif /* GL_WIN_specular_fog */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/HexaGen.Tests/opengl/glext/main.h b/HexaGen.Tests/opengl/glext/main.h new file mode 100644 index 0000000..5c551e8 --- /dev/null +++ b/HexaGen.Tests/opengl/glext/main.h @@ -0,0 +1,5 @@ +#include +#include "../GL.h" +#include "../GLU.h" +#include "KHR/khrplatform.h" +#include "glext.h" diff --git a/HexaGen.Tests/opengl/glxext.h b/HexaGen.Tests/opengl/glxext.h new file mode 100644 index 0000000..b8ee83b --- /dev/null +++ b/HexaGen.Tests/opengl/glxext.h @@ -0,0 +1,954 @@ +#ifndef __glx_glxext_h_ +#define __glx_glxext_h_ 1 + +#ifdef __cplusplus +extern "C" { +#endif + +/* +** Copyright 2013-2020 The Khronos Group Inc. +** SPDX-License-Identifier: MIT +** +** This header is generated from the Khronos OpenGL / OpenGL ES XML +** API Registry. The current version of the Registry, generator scripts +** used to make the header, and the header can be found at +** https://github.com/KhronosGroup/OpenGL-Registry +*/ + +#define GLX_GLXEXT_VERSION 20230705 + +/* Generated C header for: + * API: glx + * Versions considered: .* + * Versions emitted: 1\.[3-9] + * Default extensions included: glx + * Additional extensions included: _nomatch_^ + * Extensions removed: _nomatch_^ + */ + +#ifndef GLX_VERSION_1_3 +#define GLX_VERSION_1_3 1 +typedef XID GLXContextID; +typedef struct __GLXFBConfigRec *GLXFBConfig; +typedef XID GLXWindow; +typedef XID GLXPbuffer; +#define GLX_WINDOW_BIT 0x00000001 +#define GLX_PIXMAP_BIT 0x00000002 +#define GLX_PBUFFER_BIT 0x00000004 +#define GLX_RGBA_BIT 0x00000001 +#define GLX_COLOR_INDEX_BIT 0x00000002 +#define GLX_PBUFFER_CLOBBER_MASK 0x08000000 +#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 +#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 +#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 +#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 +#define GLX_AUX_BUFFERS_BIT 0x00000010 +#define GLX_DEPTH_BUFFER_BIT 0x00000020 +#define GLX_STENCIL_BUFFER_BIT 0x00000040 +#define GLX_ACCUM_BUFFER_BIT 0x00000080 +#define GLX_CONFIG_CAVEAT 0x20 +#define GLX_X_VISUAL_TYPE 0x22 +#define GLX_TRANSPARENT_TYPE 0x23 +#define GLX_TRANSPARENT_INDEX_VALUE 0x24 +#define GLX_TRANSPARENT_RED_VALUE 0x25 +#define GLX_TRANSPARENT_GREEN_VALUE 0x26 +#define GLX_TRANSPARENT_BLUE_VALUE 0x27 +#define GLX_TRANSPARENT_ALPHA_VALUE 0x28 +#define GLX_DONT_CARE 0xFFFFFFFF +#define GLX_NONE 0x8000 +#define GLX_SLOW_CONFIG 0x8001 +#define GLX_TRUE_COLOR 0x8002 +#define GLX_DIRECT_COLOR 0x8003 +#define GLX_PSEUDO_COLOR 0x8004 +#define GLX_STATIC_COLOR 0x8005 +#define GLX_GRAY_SCALE 0x8006 +#define GLX_STATIC_GRAY 0x8007 +#define GLX_TRANSPARENT_RGB 0x8008 +#define GLX_TRANSPARENT_INDEX 0x8009 +#define GLX_VISUAL_ID 0x800B +#define GLX_SCREEN 0x800C +#define GLX_NON_CONFORMANT_CONFIG 0x800D +#define GLX_DRAWABLE_TYPE 0x8010 +#define GLX_RENDER_TYPE 0x8011 +#define GLX_X_RENDERABLE 0x8012 +#define GLX_FBCONFIG_ID 0x8013 +#define GLX_RGBA_TYPE 0x8014 +#define GLX_COLOR_INDEX_TYPE 0x8015 +#define GLX_MAX_PBUFFER_WIDTH 0x8016 +#define GLX_MAX_PBUFFER_HEIGHT 0x8017 +#define GLX_MAX_PBUFFER_PIXELS 0x8018 +#define GLX_PRESERVED_CONTENTS 0x801B +#define GLX_LARGEST_PBUFFER 0x801C +#define GLX_WIDTH 0x801D +#define GLX_HEIGHT 0x801E +#define GLX_EVENT_MASK 0x801F +#define GLX_DAMAGED 0x8020 +#define GLX_SAVED 0x8021 +#define GLX_WINDOW 0x8022 +#define GLX_PBUFFER 0x8023 +#define GLX_PBUFFER_HEIGHT 0x8040 +#define GLX_PBUFFER_WIDTH 0x8041 +typedef GLXFBConfig *( *PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements); +typedef GLXFBConfig *( *PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); +typedef int ( *PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); +typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config); +typedef GLXWindow ( *PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); +typedef void ( *PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win); +typedef GLXPixmap ( *PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); +typedef void ( *PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap); +typedef GLXPbuffer ( *PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list); +typedef void ( *PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf); +typedef void ( *PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); +typedef GLXContext ( *PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); +typedef Bool ( *PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); +typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLEPROC) (void); +typedef int ( *PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value); +typedef void ( *PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask); +typedef void ( *PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask); +#ifdef GLX_GLXEXT_PROTOTYPES +GLXFBConfig *glXGetFBConfigs (Display *dpy, int screen, int *nelements); +GLXFBConfig *glXChooseFBConfig (Display *dpy, int screen, const int *attrib_list, int *nelements); +int glXGetFBConfigAttrib (Display *dpy, GLXFBConfig config, int attribute, int *value); +XVisualInfo *glXGetVisualFromFBConfig (Display *dpy, GLXFBConfig config); +GLXWindow glXCreateWindow (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); +void glXDestroyWindow (Display *dpy, GLXWindow win); +GLXPixmap glXCreatePixmap (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); +void glXDestroyPixmap (Display *dpy, GLXPixmap pixmap); +GLXPbuffer glXCreatePbuffer (Display *dpy, GLXFBConfig config, const int *attrib_list); +void glXDestroyPbuffer (Display *dpy, GLXPbuffer pbuf); +void glXQueryDrawable (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); +GLXContext glXCreateNewContext (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); +Bool glXMakeContextCurrent (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); +GLXDrawable glXGetCurrentReadDrawable (void); +int glXQueryContext (Display *dpy, GLXContext ctx, int attribute, int *value); +void glXSelectEvent (Display *dpy, GLXDrawable draw, unsigned long event_mask); +void glXGetSelectedEvent (Display *dpy, GLXDrawable draw, unsigned long *event_mask); +#endif +#endif /* GLX_VERSION_1_3 */ + +#ifndef GLX_VERSION_1_4 +#define GLX_VERSION_1_4 1 +typedef void ( *__GLXextFuncPtr)(void); +#define GLX_SAMPLE_BUFFERS 100000 +#define GLX_SAMPLES 100001 +typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName); +#ifdef GLX_GLXEXT_PROTOTYPES +__GLXextFuncPtr glXGetProcAddress (const GLubyte *procName); +#endif +#endif /* GLX_VERSION_1_4 */ + +#ifndef GLX_ARB_context_flush_control +#define GLX_ARB_context_flush_control 1 +#define GLX_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 +#define GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 +#define GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 +#endif /* GLX_ARB_context_flush_control */ + +#ifndef GLX_ARB_create_context +#define GLX_ARB_create_context 1 +#define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001 +#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 +#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 +#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 +#define GLX_CONTEXT_FLAGS_ARB 0x2094 +typedef GLXContext ( *PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); +#ifdef GLX_GLXEXT_PROTOTYPES +GLXContext glXCreateContextAttribsARB (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); +#endif +#endif /* GLX_ARB_create_context */ + +#ifndef GLX_ARB_create_context_no_error +#define GLX_ARB_create_context_no_error 1 +#define GLX_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3 +#endif /* GLX_ARB_create_context_no_error */ + +#ifndef GLX_ARB_create_context_profile +#define GLX_ARB_create_context_profile 1 +#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 +#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 +#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 +#endif /* GLX_ARB_create_context_profile */ + +#ifndef GLX_ARB_create_context_robustness +#define GLX_ARB_create_context_robustness 1 +#define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 +#define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define GLX_NO_RESET_NOTIFICATION_ARB 0x8261 +#endif /* GLX_ARB_create_context_robustness */ + +#ifndef GLX_ARB_fbconfig_float +#define GLX_ARB_fbconfig_float 1 +#define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9 +#define GLX_RGBA_FLOAT_BIT_ARB 0x00000004 +#endif /* GLX_ARB_fbconfig_float */ + +#ifndef GLX_ARB_framebuffer_sRGB +#define GLX_ARB_framebuffer_sRGB 1 +#define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2 +#endif /* GLX_ARB_framebuffer_sRGB */ + +#ifndef GLX_ARB_get_proc_address +#define GLX_ARB_get_proc_address 1 +typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName); +#ifdef GLX_GLXEXT_PROTOTYPES +__GLXextFuncPtr glXGetProcAddressARB (const GLubyte *procName); +#endif +#endif /* GLX_ARB_get_proc_address */ + +#ifndef GLX_ARB_multisample +#define GLX_ARB_multisample 1 +#define GLX_SAMPLE_BUFFERS_ARB 100000 +#define GLX_SAMPLES_ARB 100001 +#endif /* GLX_ARB_multisample */ + +#ifndef GLX_ARB_robustness_application_isolation +#define GLX_ARB_robustness_application_isolation 1 +#define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008 +#endif /* GLX_ARB_robustness_application_isolation */ + +#ifndef GLX_ARB_robustness_share_group_isolation +#define GLX_ARB_robustness_share_group_isolation 1 +#endif /* GLX_ARB_robustness_share_group_isolation */ + +#ifndef GLX_ARB_vertex_buffer_object +#define GLX_ARB_vertex_buffer_object 1 +#define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095 +#endif /* GLX_ARB_vertex_buffer_object */ + +#ifndef GLX_3DFX_multisample +#define GLX_3DFX_multisample 1 +#define GLX_SAMPLE_BUFFERS_3DFX 0x8050 +#define GLX_SAMPLES_3DFX 0x8051 +#endif /* GLX_3DFX_multisample */ + +#ifndef GLX_AMD_gpu_association +#define GLX_AMD_gpu_association 1 +#define GLX_GPU_VENDOR_AMD 0x1F00 +#define GLX_GPU_RENDERER_STRING_AMD 0x1F01 +#define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 +#define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 +#define GLX_GPU_RAM_AMD 0x21A3 +#define GLX_GPU_CLOCK_AMD 0x21A4 +#define GLX_GPU_NUM_PIPES_AMD 0x21A5 +#define GLX_GPU_NUM_SIMD_AMD 0x21A6 +#define GLX_GPU_NUM_RB_AMD 0x21A7 +#define GLX_GPU_NUM_SPI_AMD 0x21A8 +typedef unsigned int ( *PFNGLXGETGPUIDSAMDPROC) (unsigned int maxCount, unsigned int *ids); +typedef int ( *PFNGLXGETGPUINFOAMDPROC) (unsigned int id, int property, GLenum dataType, unsigned int size, void *data); +typedef unsigned int ( *PFNGLXGETCONTEXTGPUIDAMDPROC) (GLXContext ctx); +typedef GLXContext ( *PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC) (unsigned int id, GLXContext share_list); +typedef GLXContext ( *PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (unsigned int id, GLXContext share_context, const int *attribList); +typedef Bool ( *PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC) (GLXContext ctx); +typedef Bool ( *PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (GLXContext ctx); +typedef GLXContext ( *PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void); +typedef void ( *PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC) (GLXContext dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +#ifdef GLX_GLXEXT_PROTOTYPES +unsigned int glXGetGPUIDsAMD (unsigned int maxCount, unsigned int *ids); +int glXGetGPUInfoAMD (unsigned int id, int property, GLenum dataType, unsigned int size, void *data); +unsigned int glXGetContextGPUIDAMD (GLXContext ctx); +GLXContext glXCreateAssociatedContextAMD (unsigned int id, GLXContext share_list); +GLXContext glXCreateAssociatedContextAttribsAMD (unsigned int id, GLXContext share_context, const int *attribList); +Bool glXDeleteAssociatedContextAMD (GLXContext ctx); +Bool glXMakeAssociatedContextCurrentAMD (GLXContext ctx); +GLXContext glXGetCurrentAssociatedContextAMD (void); +void glXBlitContextFramebufferAMD (GLXContext dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +#endif +#endif /* GLX_AMD_gpu_association */ + +#ifndef GLX_EXT_buffer_age +#define GLX_EXT_buffer_age 1 +#define GLX_BACK_BUFFER_AGE_EXT 0x20F4 +#endif /* GLX_EXT_buffer_age */ + +#ifndef GLX_EXT_context_priority +#define GLX_EXT_context_priority 1 +#define GLX_CONTEXT_PRIORITY_LEVEL_EXT 0x3100 +#define GLX_CONTEXT_PRIORITY_HIGH_EXT 0x3101 +#define GLX_CONTEXT_PRIORITY_MEDIUM_EXT 0x3102 +#define GLX_CONTEXT_PRIORITY_LOW_EXT 0x3103 +#endif /* GLX_EXT_context_priority */ + +#ifndef GLX_EXT_create_context_es2_profile +#define GLX_EXT_create_context_es2_profile 1 +#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 +#endif /* GLX_EXT_create_context_es2_profile */ + +#ifndef GLX_EXT_create_context_es_profile +#define GLX_EXT_create_context_es_profile 1 +#define GLX_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004 +#endif /* GLX_EXT_create_context_es_profile */ + +#ifndef GLX_EXT_fbconfig_packed_float +#define GLX_EXT_fbconfig_packed_float 1 +#define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1 +#define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008 +#endif /* GLX_EXT_fbconfig_packed_float */ + +#ifndef GLX_EXT_framebuffer_sRGB +#define GLX_EXT_framebuffer_sRGB 1 +#define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2 +#endif /* GLX_EXT_framebuffer_sRGB */ + +#ifndef GLX_EXT_get_drawable_type +#define GLX_EXT_get_drawable_type 1 +#endif /* GLX_EXT_get_drawable_type */ + +#ifndef GLX_EXT_import_context +#define GLX_EXT_import_context 1 +#define GLX_SHARE_CONTEXT_EXT 0x800A +#define GLX_VISUAL_ID_EXT 0x800B +#define GLX_SCREEN_EXT 0x800C +typedef Display *( *PFNGLXGETCURRENTDISPLAYEXTPROC) (void); +typedef int ( *PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value); +typedef GLXContextID ( *PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context); +typedef GLXContext ( *PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID); +typedef void ( *PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context); +#ifdef GLX_GLXEXT_PROTOTYPES +Display *glXGetCurrentDisplayEXT (void); +int glXQueryContextInfoEXT (Display *dpy, GLXContext context, int attribute, int *value); +GLXContextID glXGetContextIDEXT (const GLXContext context); +GLXContext glXImportContextEXT (Display *dpy, GLXContextID contextID); +void glXFreeContextEXT (Display *dpy, GLXContext context); +#endif +#endif /* GLX_EXT_import_context */ + +#ifndef GLX_EXT_libglvnd +#define GLX_EXT_libglvnd 1 +#define GLX_VENDOR_NAMES_EXT 0x20F6 +#endif /* GLX_EXT_libglvnd */ + +#ifndef GLX_EXT_no_config_context +#define GLX_EXT_no_config_context 1 +#endif /* GLX_EXT_no_config_context */ + +#ifndef GLX_EXT_stereo_tree +#define GLX_EXT_stereo_tree 1 +typedef struct { + int type; + unsigned long serial; + Bool send_event; + Display *display; + int extension; + int evtype; + GLXDrawable window; + Bool stereo_tree; +} GLXStereoNotifyEventEXT; +#define GLX_STEREO_TREE_EXT 0x20F5 +#define GLX_STEREO_NOTIFY_MASK_EXT 0x00000001 +#define GLX_STEREO_NOTIFY_EXT 0x00000000 +#endif /* GLX_EXT_stereo_tree */ + +#ifndef GLX_EXT_swap_control +#define GLX_EXT_swap_control 1 +#define GLX_SWAP_INTERVAL_EXT 0x20F1 +#define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2 +typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval); +#ifdef GLX_GLXEXT_PROTOTYPES +void glXSwapIntervalEXT (Display *dpy, GLXDrawable drawable, int interval); +#endif +#endif /* GLX_EXT_swap_control */ + +#ifndef GLX_EXT_swap_control_tear +#define GLX_EXT_swap_control_tear 1 +#define GLX_LATE_SWAPS_TEAR_EXT 0x20F3 +#endif /* GLX_EXT_swap_control_tear */ + +#ifndef GLX_EXT_texture_from_pixmap +#define GLX_EXT_texture_from_pixmap 1 +#define GLX_TEXTURE_1D_BIT_EXT 0x00000001 +#define GLX_TEXTURE_2D_BIT_EXT 0x00000002 +#define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004 +#define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0 +#define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1 +#define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2 +#define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3 +#define GLX_Y_INVERTED_EXT 0x20D4 +#define GLX_TEXTURE_FORMAT_EXT 0x20D5 +#define GLX_TEXTURE_TARGET_EXT 0x20D6 +#define GLX_MIPMAP_TEXTURE_EXT 0x20D7 +#define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8 +#define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9 +#define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA +#define GLX_TEXTURE_1D_EXT 0x20DB +#define GLX_TEXTURE_2D_EXT 0x20DC +#define GLX_TEXTURE_RECTANGLE_EXT 0x20DD +#define GLX_FRONT_LEFT_EXT 0x20DE +#define GLX_FRONT_RIGHT_EXT 0x20DF +#define GLX_BACK_LEFT_EXT 0x20E0 +#define GLX_BACK_RIGHT_EXT 0x20E1 +#define GLX_FRONT_EXT 0x20DE +#define GLX_BACK_EXT 0x20E0 +#define GLX_AUX0_EXT 0x20E2 +#define GLX_AUX1_EXT 0x20E3 +#define GLX_AUX2_EXT 0x20E4 +#define GLX_AUX3_EXT 0x20E5 +#define GLX_AUX4_EXT 0x20E6 +#define GLX_AUX5_EXT 0x20E7 +#define GLX_AUX6_EXT 0x20E8 +#define GLX_AUX7_EXT 0x20E9 +#define GLX_AUX8_EXT 0x20EA +#define GLX_AUX9_EXT 0x20EB +typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list); +typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer); +#ifdef GLX_GLXEXT_PROTOTYPES +void glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list); +void glXReleaseTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer); +#endif +#endif /* GLX_EXT_texture_from_pixmap */ + +#ifndef GLX_EXT_visual_info +#define GLX_EXT_visual_info 1 +#define GLX_X_VISUAL_TYPE_EXT 0x22 +#define GLX_TRANSPARENT_TYPE_EXT 0x23 +#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 +#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 +#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 +#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 +#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 +#define GLX_NONE_EXT 0x8000 +#define GLX_TRUE_COLOR_EXT 0x8002 +#define GLX_DIRECT_COLOR_EXT 0x8003 +#define GLX_PSEUDO_COLOR_EXT 0x8004 +#define GLX_STATIC_COLOR_EXT 0x8005 +#define GLX_GRAY_SCALE_EXT 0x8006 +#define GLX_STATIC_GRAY_EXT 0x8007 +#define GLX_TRANSPARENT_RGB_EXT 0x8008 +#define GLX_TRANSPARENT_INDEX_EXT 0x8009 +#endif /* GLX_EXT_visual_info */ + +#ifndef GLX_EXT_visual_rating +#define GLX_EXT_visual_rating 1 +#define GLX_VISUAL_CAVEAT_EXT 0x20 +#define GLX_SLOW_VISUAL_EXT 0x8001 +#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D +#endif /* GLX_EXT_visual_rating */ + +#ifndef GLX_INTEL_swap_event +#define GLX_INTEL_swap_event 1 +#define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000 +#define GLX_EXCHANGE_COMPLETE_INTEL 0x8180 +#define GLX_COPY_COMPLETE_INTEL 0x8181 +#define GLX_FLIP_COMPLETE_INTEL 0x8182 +#endif /* GLX_INTEL_swap_event */ + +#ifndef GLX_MESA_agp_offset +#define GLX_MESA_agp_offset 1 +typedef unsigned int ( *PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer); +#ifdef GLX_GLXEXT_PROTOTYPES +unsigned int glXGetAGPOffsetMESA (const void *pointer); +#endif +#endif /* GLX_MESA_agp_offset */ + +#ifndef GLX_MESA_copy_sub_buffer +#define GLX_MESA_copy_sub_buffer 1 +typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height); +#ifdef GLX_GLXEXT_PROTOTYPES +void glXCopySubBufferMESA (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height); +#endif +#endif /* GLX_MESA_copy_sub_buffer */ + +#ifndef GLX_MESA_pixmap_colormap +#define GLX_MESA_pixmap_colormap 1 +typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); +#ifdef GLX_GLXEXT_PROTOTYPES +GLXPixmap glXCreateGLXPixmapMESA (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); +#endif +#endif /* GLX_MESA_pixmap_colormap */ + +#ifndef GLX_MESA_query_renderer +#define GLX_MESA_query_renderer 1 +#define GLX_RENDERER_VENDOR_ID_MESA 0x8183 +#define GLX_RENDERER_DEVICE_ID_MESA 0x8184 +#define GLX_RENDERER_VERSION_MESA 0x8185 +#define GLX_RENDERER_ACCELERATED_MESA 0x8186 +#define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187 +#define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188 +#define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189 +#define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A +#define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B +#define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C +#define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D +typedef Bool ( *PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int *value); +typedef const char *( *PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute); +typedef Bool ( *PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display *dpy, int screen, int renderer, int attribute, unsigned int *value); +typedef const char *( *PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute); +#ifdef GLX_GLXEXT_PROTOTYPES +Bool glXQueryCurrentRendererIntegerMESA (int attribute, unsigned int *value); +const char *glXQueryCurrentRendererStringMESA (int attribute); +Bool glXQueryRendererIntegerMESA (Display *dpy, int screen, int renderer, int attribute, unsigned int *value); +const char *glXQueryRendererStringMESA (Display *dpy, int screen, int renderer, int attribute); +#endif +#endif /* GLX_MESA_query_renderer */ + +#ifndef GLX_MESA_release_buffers +#define GLX_MESA_release_buffers 1 +typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable); +#ifdef GLX_GLXEXT_PROTOTYPES +Bool glXReleaseBuffersMESA (Display *dpy, GLXDrawable drawable); +#endif +#endif /* GLX_MESA_release_buffers */ + +#ifndef GLX_MESA_set_3dfx_mode +#define GLX_MESA_set_3dfx_mode 1 +#define GLX_3DFX_WINDOW_MODE_MESA 0x1 +#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2 +typedef GLboolean ( *PFNGLXSET3DFXMODEMESAPROC) (GLint mode); +#ifdef GLX_GLXEXT_PROTOTYPES +GLboolean glXSet3DfxModeMESA (GLint mode); +#endif +#endif /* GLX_MESA_set_3dfx_mode */ + +#ifndef GLX_MESA_swap_control +#define GLX_MESA_swap_control 1 +typedef int ( *PFNGLXGETSWAPINTERVALMESAPROC) (void); +typedef int ( *PFNGLXSWAPINTERVALMESAPROC) (unsigned int interval); +#ifdef GLX_GLXEXT_PROTOTYPES +int glXGetSwapIntervalMESA (void); +int glXSwapIntervalMESA (unsigned int interval); +#endif +#endif /* GLX_MESA_swap_control */ + +#ifndef GLX_NV_copy_buffer +#define GLX_NV_copy_buffer 1 +typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +#ifdef GLX_GLXEXT_PROTOTYPES +void glXCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +void glXNamedCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +#endif +#endif /* GLX_NV_copy_buffer */ + +#ifndef GLX_NV_copy_image +#define GLX_NV_copy_image 1 +typedef void ( *PFNGLXCOPYIMAGESUBDATANVPROC) (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); +#ifdef GLX_GLXEXT_PROTOTYPES +void glXCopyImageSubDataNV (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); +#endif +#endif /* GLX_NV_copy_image */ + +#ifndef GLX_NV_delay_before_swap +#define GLX_NV_delay_before_swap 1 +typedef Bool ( *PFNGLXDELAYBEFORESWAPNVPROC) (Display *dpy, GLXDrawable drawable, GLfloat seconds); +#ifdef GLX_GLXEXT_PROTOTYPES +Bool glXDelayBeforeSwapNV (Display *dpy, GLXDrawable drawable, GLfloat seconds); +#endif +#endif /* GLX_NV_delay_before_swap */ + +#ifndef GLX_NV_float_buffer +#define GLX_NV_float_buffer 1 +#define GLX_FLOAT_COMPONENTS_NV 0x20B0 +#endif /* GLX_NV_float_buffer */ + +#ifndef GLX_NV_multigpu_context +#define GLX_NV_multigpu_context 1 +#define GLX_CONTEXT_MULTIGPU_ATTRIB_NV 0x20AA +#define GLX_CONTEXT_MULTIGPU_ATTRIB_SINGLE_NV 0x20AB +#define GLX_CONTEXT_MULTIGPU_ATTRIB_AFR_NV 0x20AC +#define GLX_CONTEXT_MULTIGPU_ATTRIB_MULTICAST_NV 0x20AD +#define GLX_CONTEXT_MULTIGPU_ATTRIB_MULTI_DISPLAY_MULTICAST_NV 0x20AE +#endif /* GLX_NV_multigpu_context */ + +#ifndef GLX_NV_multisample_coverage +#define GLX_NV_multisample_coverage 1 +#define GLX_COVERAGE_SAMPLES_NV 100001 +#define GLX_COLOR_SAMPLES_NV 0x20B3 +#endif /* GLX_NV_multisample_coverage */ + +#ifndef GLX_NV_present_video +#define GLX_NV_present_video 1 +#define GLX_NUM_VIDEO_SLOTS_NV 0x20F0 +typedef unsigned int *( *PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements); +typedef int ( *PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list); +#ifdef GLX_GLXEXT_PROTOTYPES +unsigned int *glXEnumerateVideoDevicesNV (Display *dpy, int screen, int *nelements); +int glXBindVideoDeviceNV (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list); +#endif +#endif /* GLX_NV_present_video */ + +#ifndef GLX_NV_robustness_video_memory_purge +#define GLX_NV_robustness_video_memory_purge 1 +#define GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x20F7 +#endif /* GLX_NV_robustness_video_memory_purge */ + +#ifndef GLX_NV_swap_group +#define GLX_NV_swap_group 1 +typedef Bool ( *PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group); +typedef Bool ( *PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier); +typedef Bool ( *PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier); +typedef Bool ( *PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers); +typedef Bool ( *PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count); +typedef Bool ( *PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen); +#ifdef GLX_GLXEXT_PROTOTYPES +Bool glXJoinSwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint group); +Bool glXBindSwapBarrierNV (Display *dpy, GLuint group, GLuint barrier); +Bool glXQuerySwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier); +Bool glXQueryMaxSwapGroupsNV (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers); +Bool glXQueryFrameCountNV (Display *dpy, int screen, GLuint *count); +Bool glXResetFrameCountNV (Display *dpy, int screen); +#endif +#endif /* GLX_NV_swap_group */ + +#ifndef GLX_NV_video_capture +#define GLX_NV_video_capture 1 +typedef XID GLXVideoCaptureDeviceNV; +#define GLX_DEVICE_ID_NV 0x20CD +#define GLX_UNIQUE_ID_NV 0x20CE +#define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF +typedef int ( *PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device); +typedef GLXVideoCaptureDeviceNV *( *PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements); +typedef void ( *PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device); +typedef int ( *PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value); +typedef void ( *PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device); +#ifdef GLX_GLXEXT_PROTOTYPES +int glXBindVideoCaptureDeviceNV (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device); +GLXVideoCaptureDeviceNV *glXEnumerateVideoCaptureDevicesNV (Display *dpy, int screen, int *nelements); +void glXLockVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device); +int glXQueryVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value); +void glXReleaseVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device); +#endif +#endif /* GLX_NV_video_capture */ + +#ifndef GLX_NV_video_out +#define GLX_NV_video_out 1 +typedef unsigned int GLXVideoDeviceNV; +#define GLX_VIDEO_OUT_COLOR_NV 0x20C3 +#define GLX_VIDEO_OUT_ALPHA_NV 0x20C4 +#define GLX_VIDEO_OUT_DEPTH_NV 0x20C5 +#define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 +#define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 +#define GLX_VIDEO_OUT_FRAME_NV 0x20C8 +#define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9 +#define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA +#define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB +#define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC +typedef int ( *PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice); +typedef int ( *PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice); +typedef int ( *PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer); +typedef int ( *PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf); +typedef int ( *PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock); +typedef int ( *PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); +#ifdef GLX_GLXEXT_PROTOTYPES +int glXGetVideoDeviceNV (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice); +int glXReleaseVideoDeviceNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice); +int glXBindVideoImageNV (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer); +int glXReleaseVideoImageNV (Display *dpy, GLXPbuffer pbuf); +int glXSendPbufferToVideoNV (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock); +int glXGetVideoInfoNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); +#endif +#endif /* GLX_NV_video_out */ + +#ifndef GLX_OML_swap_method +#define GLX_OML_swap_method 1 +#define GLX_SWAP_METHOD_OML 0x8060 +#define GLX_SWAP_EXCHANGE_OML 0x8061 +#define GLX_SWAP_COPY_OML 0x8062 +#define GLX_SWAP_UNDEFINED_OML 0x8063 +#endif /* GLX_OML_swap_method */ + +#ifndef GLX_OML_sync_control +#define GLX_OML_sync_control 1 +#ifndef GLEXT_64_TYPES_DEFINED +/* This code block is duplicated in glext.h, so must be protected */ +#define GLEXT_64_TYPES_DEFINED +/* Define int32_t, int64_t, and uint64_t types for UST/MSC */ +/* (as used in the GLX_OML_sync_control extension). */ +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#include +#elif defined(__sun__) || defined(__digital__) +#include +#if defined(__STDC__) +#if defined(__arch64__) || defined(_LP64) +typedef long int int64_t; +typedef unsigned long int uint64_t; +#else +typedef long long int int64_t; +typedef unsigned long long int uint64_t; +#endif /* __arch64__ */ +#endif /* __STDC__ */ +#elif defined( __VMS ) || defined(__sgi) +#include +#elif defined(__SCO__) || defined(__USLC__) +#include +#elif defined(__UNIXOS2__) || defined(__SOL64__) +typedef long int int32_t; +typedef long long int int64_t; +typedef unsigned long long int uint64_t; +#elif defined(_WIN32) && defined(__GNUC__) +#include +#elif defined(_WIN32) +typedef __int32 int32_t; +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; +#else +/* Fallback if nothing above works */ +#include +#endif +#endif +typedef Bool ( *PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc); +typedef Bool ( *PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator); +typedef int64_t ( *PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder); +typedef Bool ( *PFNGLXWAITFORMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc); +typedef Bool ( *PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc); +#ifdef GLX_GLXEXT_PROTOTYPES +Bool glXGetSyncValuesOML (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc); +Bool glXGetMscRateOML (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator); +int64_t glXSwapBuffersMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder); +Bool glXWaitForMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc); +Bool glXWaitForSbcOML (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc); +#endif +#endif /* GLX_OML_sync_control */ + +#ifndef GLX_SGIS_blended_overlay +#define GLX_SGIS_blended_overlay 1 +#define GLX_BLENDED_RGBA_SGIS 0x8025 +#endif /* GLX_SGIS_blended_overlay */ + +#ifndef GLX_SGIS_multisample +#define GLX_SGIS_multisample 1 +#define GLX_SAMPLE_BUFFERS_SGIS 100000 +#define GLX_SAMPLES_SGIS 100001 +#endif /* GLX_SGIS_multisample */ + +#ifndef GLX_SGIS_shared_multisample +#define GLX_SGIS_shared_multisample 1 +#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026 +#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027 +#endif /* GLX_SGIS_shared_multisample */ + +#ifndef GLX_SGIX_dmbuffer +#define GLX_SGIX_dmbuffer 1 +typedef XID GLXPbufferSGIX; +#ifdef _DM_BUFFER_H_ +#define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024 +typedef Bool ( *PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer); +#ifdef GLX_GLXEXT_PROTOTYPES +Bool glXAssociateDMPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer); +#endif +#endif /* _DM_BUFFER_H_ */ +#endif /* GLX_SGIX_dmbuffer */ + +#ifndef GLX_SGIX_fbconfig +#define GLX_SGIX_fbconfig 1 +typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; +#define GLX_WINDOW_BIT_SGIX 0x00000001 +#define GLX_PIXMAP_BIT_SGIX 0x00000002 +#define GLX_RGBA_BIT_SGIX 0x00000001 +#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002 +#define GLX_DRAWABLE_TYPE_SGIX 0x8010 +#define GLX_RENDER_TYPE_SGIX 0x8011 +#define GLX_X_RENDERABLE_SGIX 0x8012 +#define GLX_FBCONFIG_ID_SGIX 0x8013 +#define GLX_RGBA_TYPE_SGIX 0x8014 +#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015 +typedef int ( *PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value); +typedef GLXFBConfigSGIX *( *PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements); +typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap); +typedef GLXContext ( *PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct); +typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config); +typedef GLXFBConfigSGIX ( *PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis); +#ifdef GLX_GLXEXT_PROTOTYPES +int glXGetFBConfigAttribSGIX (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value); +GLXFBConfigSGIX *glXChooseFBConfigSGIX (Display *dpy, int screen, int *attrib_list, int *nelements); +GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap); +GLXContext glXCreateContextWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct); +XVisualInfo *glXGetVisualFromFBConfigSGIX (Display *dpy, GLXFBConfigSGIX config); +GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *dpy, XVisualInfo *vis); +#endif +#endif /* GLX_SGIX_fbconfig */ + +#ifndef GLX_SGIX_hyperpipe +#define GLX_SGIX_hyperpipe 1 +typedef struct { + char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ + int networkId; +} GLXHyperpipeNetworkSGIX; +typedef struct { + char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ + int channel; + unsigned int participationType; + int timeSlice; +} GLXHyperpipeConfigSGIX; +typedef struct { + char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ + int srcXOrigin, srcYOrigin, srcWidth, srcHeight; + int destXOrigin, destYOrigin, destWidth, destHeight; +} GLXPipeRect; +typedef struct { + char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ + int XOrigin, YOrigin, maxHeight, maxWidth; +} GLXPipeRectLimits; +#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80 +#define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91 +#define GLX_BAD_HYPERPIPE_SGIX 92 +#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001 +#define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002 +#define GLX_PIPE_RECT_SGIX 0x00000001 +#define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002 +#define GLX_HYPERPIPE_STEREO_SGIX 0x00000003 +#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004 +#define GLX_HYPERPIPE_ID_SGIX 0x8030 +typedef GLXHyperpipeNetworkSGIX *( *PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes); +typedef int ( *PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId); +typedef GLXHyperpipeConfigSGIX *( *PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes); +typedef int ( *PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId); +typedef int ( *PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId); +typedef int ( *PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList); +typedef int ( *PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList); +typedef int ( *PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList); +#ifdef GLX_GLXEXT_PROTOTYPES +GLXHyperpipeNetworkSGIX *glXQueryHyperpipeNetworkSGIX (Display *dpy, int *npipes); +int glXHyperpipeConfigSGIX (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId); +GLXHyperpipeConfigSGIX *glXQueryHyperpipeConfigSGIX (Display *dpy, int hpId, int *npipes); +int glXDestroyHyperpipeConfigSGIX (Display *dpy, int hpId); +int glXBindHyperpipeSGIX (Display *dpy, int hpId); +int glXQueryHyperpipeBestAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList); +int glXHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList); +int glXQueryHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList); +#endif +#endif /* GLX_SGIX_hyperpipe */ + +#ifndef GLX_SGIX_pbuffer +#define GLX_SGIX_pbuffer 1 +#define GLX_PBUFFER_BIT_SGIX 0x00000004 +#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000 +#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001 +#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002 +#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004 +#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008 +#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010 +#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020 +#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040 +#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080 +#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100 +#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016 +#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017 +#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018 +#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019 +#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A +#define GLX_PRESERVED_CONTENTS_SGIX 0x801B +#define GLX_LARGEST_PBUFFER_SGIX 0x801C +#define GLX_WIDTH_SGIX 0x801D +#define GLX_HEIGHT_SGIX 0x801E +#define GLX_EVENT_MASK_SGIX 0x801F +#define GLX_DAMAGED_SGIX 0x8020 +#define GLX_SAVED_SGIX 0x8021 +#define GLX_WINDOW_SGIX 0x8022 +#define GLX_PBUFFER_SGIX 0x8023 +typedef GLXPbufferSGIX ( *PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list); +typedef void ( *PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf); +typedef void ( *PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value); +typedef void ( *PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask); +typedef void ( *PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask); +#ifdef GLX_GLXEXT_PROTOTYPES +GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list); +void glXDestroyGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf); +void glXQueryGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value); +void glXSelectEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long mask); +void glXGetSelectedEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long *mask); +#endif +#endif /* GLX_SGIX_pbuffer */ + +#ifndef GLX_SGIX_swap_barrier +#define GLX_SGIX_swap_barrier 1 +typedef void ( *PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier); +typedef Bool ( *PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max); +#ifdef GLX_GLXEXT_PROTOTYPES +void glXBindSwapBarrierSGIX (Display *dpy, GLXDrawable drawable, int barrier); +Bool glXQueryMaxSwapBarriersSGIX (Display *dpy, int screen, int *max); +#endif +#endif /* GLX_SGIX_swap_barrier */ + +#ifndef GLX_SGIX_swap_group +#define GLX_SGIX_swap_group 1 +typedef void ( *PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member); +#ifdef GLX_GLXEXT_PROTOTYPES +void glXJoinSwapGroupSGIX (Display *dpy, GLXDrawable drawable, GLXDrawable member); +#endif +#endif /* GLX_SGIX_swap_group */ + +#ifndef GLX_SGIX_video_resize +#define GLX_SGIX_video_resize 1 +#define GLX_SYNC_FRAME_SGIX 0x00000000 +#define GLX_SYNC_SWAP_SGIX 0x00000001 +typedef int ( *PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window); +typedef int ( *PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h); +typedef int ( *PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh); +typedef int ( *PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h); +typedef int ( *PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype); +#ifdef GLX_GLXEXT_PROTOTYPES +int glXBindChannelToWindowSGIX (Display *display, int screen, int channel, Window window); +int glXChannelRectSGIX (Display *display, int screen, int channel, int x, int y, int w, int h); +int glXQueryChannelRectSGIX (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh); +int glXQueryChannelDeltasSGIX (Display *display, int screen, int channel, int *x, int *y, int *w, int *h); +int glXChannelRectSyncSGIX (Display *display, int screen, int channel, GLenum synctype); +#endif +#endif /* GLX_SGIX_video_resize */ + +#ifndef GLX_SGIX_video_source +#define GLX_SGIX_video_source 1 +typedef XID GLXVideoSourceSGIX; +#ifdef _VL_H +typedef GLXVideoSourceSGIX ( *PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode); +typedef void ( *PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource); +#ifdef GLX_GLXEXT_PROTOTYPES +GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode); +void glXDestroyGLXVideoSourceSGIX (Display *dpy, GLXVideoSourceSGIX glxvideosource); +#endif +#endif /* _VL_H */ +#endif /* GLX_SGIX_video_source */ + +#ifndef GLX_SGIX_visual_select_group +#define GLX_SGIX_visual_select_group 1 +#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 +#endif /* GLX_SGIX_visual_select_group */ + +#ifndef GLX_SGI_cushion +#define GLX_SGI_cushion 1 +typedef void ( *PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion); +#ifdef GLX_GLXEXT_PROTOTYPES +void glXCushionSGI (Display *dpy, Window window, float cushion); +#endif +#endif /* GLX_SGI_cushion */ + +#ifndef GLX_SGI_make_current_read +#define GLX_SGI_make_current_read 1 +typedef Bool ( *PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); +typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void); +#ifdef GLX_GLXEXT_PROTOTYPES +Bool glXMakeCurrentReadSGI (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); +GLXDrawable glXGetCurrentReadDrawableSGI (void); +#endif +#endif /* GLX_SGI_make_current_read */ + +#ifndef GLX_SGI_swap_control +#define GLX_SGI_swap_control 1 +typedef int ( *PFNGLXSWAPINTERVALSGIPROC) (int interval); +#ifdef GLX_GLXEXT_PROTOTYPES +int glXSwapIntervalSGI (int interval); +#endif +#endif /* GLX_SGI_swap_control */ + +#ifndef GLX_SGI_video_sync +#define GLX_SGI_video_sync 1 +typedef int ( *PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count); +typedef int ( *PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count); +#ifdef GLX_GLXEXT_PROTOTYPES +int glXGetVideoSyncSGI (unsigned int *count); +int glXWaitVideoSyncSGI (int divisor, int remainder, unsigned int *count); +#endif +#endif /* GLX_SGI_video_sync */ + +#ifndef GLX_SUN_get_transparent_index +#define GLX_SUN_get_transparent_index 1 +typedef Status ( *PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex); +#ifdef GLX_GLXEXT_PROTOTYPES +Status glXGetTransparentIndexSUN (Display *dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex); +#endif +#endif /* GLX_SUN_get_transparent_index */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/HexaGen.Tests/opengl/main.h b/HexaGen.Tests/opengl/main.h new file mode 100644 index 0000000..6391899 --- /dev/null +++ b/HexaGen.Tests/opengl/main.h @@ -0,0 +1,3 @@ +#include +#include "GL.h" +#include "GLU.h" \ No newline at end of file diff --git a/HexaGen.Tests/opengl/wglext.h b/HexaGen.Tests/opengl/wglext.h new file mode 100644 index 0000000..6dd9749 --- /dev/null +++ b/HexaGen.Tests/opengl/wglext.h @@ -0,0 +1,845 @@ +#ifndef __wgl_wglext_h_ +#define __wgl_wglext_h_ 1 + +#ifdef __cplusplus +extern "C" { +#endif + +/* +** Copyright 2013-2020 The Khronos Group Inc. +** SPDX-License-Identifier: MIT +** +** This header is generated from the Khronos OpenGL / OpenGL ES XML +** API Registry. The current version of the Registry, generator scripts +** used to make the header, and the header can be found at +** https://github.com/KhronosGroup/OpenGL-Registry +*/ + +#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) +#define WIN32_LEAN_AND_MEAN 1 +#include +#endif + +#define WGL_WGLEXT_VERSION 20230705 + +/* Generated C header for: + * API: wgl + * Versions considered: .* + * Versions emitted: _nomatch_^ + * Default extensions included: wgl + * Additional extensions included: _nomatch_^ + * Extensions removed: _nomatch_^ + */ + +#ifndef WGL_ARB_buffer_region +#define WGL_ARB_buffer_region 1 +#define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001 +#define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002 +#define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004 +#define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008 +typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType); +typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion); +typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height); +typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc); +#ifdef WGL_WGLEXT_PROTOTYPES +HANDLE WINAPI wglCreateBufferRegionARB (HDC hDC, int iLayerPlane, UINT uType); +VOID WINAPI wglDeleteBufferRegionARB (HANDLE hRegion); +BOOL WINAPI wglSaveBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height); +BOOL WINAPI wglRestoreBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc); +#endif +#endif /* WGL_ARB_buffer_region */ + +#ifndef WGL_ARB_context_flush_control +#define WGL_ARB_context_flush_control 1 +#define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 +#define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 +#define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 +#endif /* WGL_ARB_context_flush_control */ + +#ifndef WGL_ARB_create_context +#define WGL_ARB_create_context 1 +#define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001 +#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 +#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 +#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 +#define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093 +#define WGL_CONTEXT_FLAGS_ARB 0x2094 +#define ERROR_INVALID_VERSION_ARB 0x2095 +typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList); +#ifdef WGL_WGLEXT_PROTOTYPES +HGLRC WINAPI wglCreateContextAttribsARB (HDC hDC, HGLRC hShareContext, const int *attribList); +#endif +#endif /* WGL_ARB_create_context */ + +#ifndef WGL_ARB_create_context_no_error +#define WGL_ARB_create_context_no_error 1 +#define WGL_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3 +#endif /* WGL_ARB_create_context_no_error */ + +#ifndef WGL_ARB_create_context_profile +#define WGL_ARB_create_context_profile 1 +#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126 +#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 +#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 +#define ERROR_INVALID_PROFILE_ARB 0x2096 +#endif /* WGL_ARB_create_context_profile */ + +#ifndef WGL_ARB_create_context_robustness +#define WGL_ARB_create_context_robustness 1 +#define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 +#define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define WGL_NO_RESET_NOTIFICATION_ARB 0x8261 +#endif /* WGL_ARB_create_context_robustness */ + +#ifndef WGL_ARB_extensions_string +#define WGL_ARB_extensions_string 1 +typedef const char *(WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc); +#ifdef WGL_WGLEXT_PROTOTYPES +const char *WINAPI wglGetExtensionsStringARB (HDC hdc); +#endif +#endif /* WGL_ARB_extensions_string */ + +#ifndef WGL_ARB_framebuffer_sRGB +#define WGL_ARB_framebuffer_sRGB 1 +#define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9 +#endif /* WGL_ARB_framebuffer_sRGB */ + +#ifndef WGL_ARB_make_current_read +#define WGL_ARB_make_current_read 1 +#define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043 +#define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 +typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); +typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglMakeContextCurrentARB (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); +HDC WINAPI wglGetCurrentReadDCARB (void); +#endif +#endif /* WGL_ARB_make_current_read */ + +#ifndef WGL_ARB_multisample +#define WGL_ARB_multisample 1 +#define WGL_SAMPLE_BUFFERS_ARB 0x2041 +#define WGL_SAMPLES_ARB 0x2042 +#endif /* WGL_ARB_multisample */ + +#ifndef WGL_ARB_pbuffer +#define WGL_ARB_pbuffer 1 +DECLARE_HANDLE(HPBUFFERARB); +#define WGL_DRAW_TO_PBUFFER_ARB 0x202D +#define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E +#define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F +#define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030 +#define WGL_PBUFFER_LARGEST_ARB 0x2033 +#define WGL_PBUFFER_WIDTH_ARB 0x2034 +#define WGL_PBUFFER_HEIGHT_ARB 0x2035 +#define WGL_PBUFFER_LOST_ARB 0x2036 +typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); +typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer); +typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC); +typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer); +typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue); +#ifdef WGL_WGLEXT_PROTOTYPES +HPBUFFERARB WINAPI wglCreatePbufferARB (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); +HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB hPbuffer); +int WINAPI wglReleasePbufferDCARB (HPBUFFERARB hPbuffer, HDC hDC); +BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB hPbuffer); +BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB hPbuffer, int iAttribute, int *piValue); +#endif +#endif /* WGL_ARB_pbuffer */ + +#ifndef WGL_ARB_pixel_format +#define WGL_ARB_pixel_format 1 +#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 +#define WGL_DRAW_TO_WINDOW_ARB 0x2001 +#define WGL_DRAW_TO_BITMAP_ARB 0x2002 +#define WGL_ACCELERATION_ARB 0x2003 +#define WGL_NEED_PALETTE_ARB 0x2004 +#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 +#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 +#define WGL_SWAP_METHOD_ARB 0x2007 +#define WGL_NUMBER_OVERLAYS_ARB 0x2008 +#define WGL_NUMBER_UNDERLAYS_ARB 0x2009 +#define WGL_TRANSPARENT_ARB 0x200A +#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 +#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 +#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 +#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A +#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B +#define WGL_SHARE_DEPTH_ARB 0x200C +#define WGL_SHARE_STENCIL_ARB 0x200D +#define WGL_SHARE_ACCUM_ARB 0x200E +#define WGL_SUPPORT_GDI_ARB 0x200F +#define WGL_SUPPORT_OPENGL_ARB 0x2010 +#define WGL_DOUBLE_BUFFER_ARB 0x2011 +#define WGL_STEREO_ARB 0x2012 +#define WGL_PIXEL_TYPE_ARB 0x2013 +#define WGL_COLOR_BITS_ARB 0x2014 +#define WGL_RED_BITS_ARB 0x2015 +#define WGL_RED_SHIFT_ARB 0x2016 +#define WGL_GREEN_BITS_ARB 0x2017 +#define WGL_GREEN_SHIFT_ARB 0x2018 +#define WGL_BLUE_BITS_ARB 0x2019 +#define WGL_BLUE_SHIFT_ARB 0x201A +#define WGL_ALPHA_BITS_ARB 0x201B +#define WGL_ALPHA_SHIFT_ARB 0x201C +#define WGL_ACCUM_BITS_ARB 0x201D +#define WGL_ACCUM_RED_BITS_ARB 0x201E +#define WGL_ACCUM_GREEN_BITS_ARB 0x201F +#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 +#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 +#define WGL_DEPTH_BITS_ARB 0x2022 +#define WGL_STENCIL_BITS_ARB 0x2023 +#define WGL_AUX_BUFFERS_ARB 0x2024 +#define WGL_NO_ACCELERATION_ARB 0x2025 +#define WGL_GENERIC_ACCELERATION_ARB 0x2026 +#define WGL_FULL_ACCELERATION_ARB 0x2027 +#define WGL_SWAP_EXCHANGE_ARB 0x2028 +#define WGL_SWAP_COPY_ARB 0x2029 +#define WGL_SWAP_UNDEFINED_ARB 0x202A +#define WGL_TYPE_RGBA_ARB 0x202B +#define WGL_TYPE_COLORINDEX_ARB 0x202C +typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues); +typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues); +typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglGetPixelFormatAttribivARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues); +BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues); +BOOL WINAPI wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); +#endif +#endif /* WGL_ARB_pixel_format */ + +#ifndef WGL_ARB_pixel_format_float +#define WGL_ARB_pixel_format_float 1 +#define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0 +#endif /* WGL_ARB_pixel_format_float */ + +#ifndef WGL_ARB_render_texture +#define WGL_ARB_render_texture 1 +#define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070 +#define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071 +#define WGL_TEXTURE_FORMAT_ARB 0x2072 +#define WGL_TEXTURE_TARGET_ARB 0x2073 +#define WGL_MIPMAP_TEXTURE_ARB 0x2074 +#define WGL_TEXTURE_RGB_ARB 0x2075 +#define WGL_TEXTURE_RGBA_ARB 0x2076 +#define WGL_NO_TEXTURE_ARB 0x2077 +#define WGL_TEXTURE_CUBE_MAP_ARB 0x2078 +#define WGL_TEXTURE_1D_ARB 0x2079 +#define WGL_TEXTURE_2D_ARB 0x207A +#define WGL_MIPMAP_LEVEL_ARB 0x207B +#define WGL_CUBE_MAP_FACE_ARB 0x207C +#define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D +#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E +#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F +#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080 +#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081 +#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082 +#define WGL_FRONT_LEFT_ARB 0x2083 +#define WGL_FRONT_RIGHT_ARB 0x2084 +#define WGL_BACK_LEFT_ARB 0x2085 +#define WGL_BACK_RIGHT_ARB 0x2086 +#define WGL_AUX0_ARB 0x2087 +#define WGL_AUX1_ARB 0x2088 +#define WGL_AUX2_ARB 0x2089 +#define WGL_AUX3_ARB 0x208A +#define WGL_AUX4_ARB 0x208B +#define WGL_AUX5_ARB 0x208C +#define WGL_AUX6_ARB 0x208D +#define WGL_AUX7_ARB 0x208E +#define WGL_AUX8_ARB 0x208F +#define WGL_AUX9_ARB 0x2090 +typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); +typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); +typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglBindTexImageARB (HPBUFFERARB hPbuffer, int iBuffer); +BOOL WINAPI wglReleaseTexImageARB (HPBUFFERARB hPbuffer, int iBuffer); +BOOL WINAPI wglSetPbufferAttribARB (HPBUFFERARB hPbuffer, const int *piAttribList); +#endif +#endif /* WGL_ARB_render_texture */ + +#ifndef WGL_ARB_robustness_application_isolation +#define WGL_ARB_robustness_application_isolation 1 +#define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008 +#endif /* WGL_ARB_robustness_application_isolation */ + +#ifndef WGL_ARB_robustness_share_group_isolation +#define WGL_ARB_robustness_share_group_isolation 1 +#endif /* WGL_ARB_robustness_share_group_isolation */ + +#ifndef WGL_3DFX_multisample +#define WGL_3DFX_multisample 1 +#define WGL_SAMPLE_BUFFERS_3DFX 0x2060 +#define WGL_SAMPLES_3DFX 0x2061 +#endif /* WGL_3DFX_multisample */ + +#ifndef WGL_3DL_stereo_control +#define WGL_3DL_stereo_control 1 +#define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055 +#define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056 +#define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057 +#define WGL_STEREO_POLARITY_INVERT_3DL 0x2058 +typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglSetStereoEmitterState3DL (HDC hDC, UINT uState); +#endif +#endif /* WGL_3DL_stereo_control */ + +#ifndef WGL_AMD_gpu_association +#define WGL_AMD_gpu_association 1 +#define WGL_GPU_VENDOR_AMD 0x1F00 +#define WGL_GPU_RENDERER_STRING_AMD 0x1F01 +#define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 +#define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 +#define WGL_GPU_RAM_AMD 0x21A3 +#define WGL_GPU_CLOCK_AMD 0x21A4 +#define WGL_GPU_NUM_PIPES_AMD 0x21A5 +#define WGL_GPU_NUM_SIMD_AMD 0x21A6 +#define WGL_GPU_NUM_RB_AMD 0x21A7 +#define WGL_GPU_NUM_SPI_AMD 0x21A8 +typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT *ids); +typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, INT property, GLenum dataType, UINT size, void *data); +typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc); +typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id); +typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int *attribList); +typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc); +typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc); +typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void); +typedef VOID (WINAPI * PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC) (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +#ifdef WGL_WGLEXT_PROTOTYPES +UINT WINAPI wglGetGPUIDsAMD (UINT maxCount, UINT *ids); +INT WINAPI wglGetGPUInfoAMD (UINT id, INT property, GLenum dataType, UINT size, void *data); +UINT WINAPI wglGetContextGPUIDAMD (HGLRC hglrc); +HGLRC WINAPI wglCreateAssociatedContextAMD (UINT id); +HGLRC WINAPI wglCreateAssociatedContextAttribsAMD (UINT id, HGLRC hShareContext, const int *attribList); +BOOL WINAPI wglDeleteAssociatedContextAMD (HGLRC hglrc); +BOOL WINAPI wglMakeAssociatedContextCurrentAMD (HGLRC hglrc); +HGLRC WINAPI wglGetCurrentAssociatedContextAMD (void); +VOID WINAPI wglBlitContextFramebufferAMD (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +#endif +#endif /* WGL_AMD_gpu_association */ + +#ifndef WGL_ATI_pixel_format_float +#define WGL_ATI_pixel_format_float 1 +#define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0 +#endif /* WGL_ATI_pixel_format_float */ + +#ifndef WGL_ATI_render_texture_rectangle +#define WGL_ATI_render_texture_rectangle 1 +#define WGL_TEXTURE_RECTANGLE_ATI 0x21A5 +#endif /* WGL_ATI_render_texture_rectangle */ + +#ifndef WGL_EXT_colorspace +#define WGL_EXT_colorspace 1 +#define WGL_COLORSPACE_EXT 0x309D +#define WGL_COLORSPACE_SRGB_EXT 0x3089 +#define WGL_COLORSPACE_LINEAR_EXT 0x308A +#endif /* WGL_EXT_colorspace */ + +#ifndef WGL_EXT_create_context_es2_profile +#define WGL_EXT_create_context_es2_profile 1 +#define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 +#endif /* WGL_EXT_create_context_es2_profile */ + +#ifndef WGL_EXT_create_context_es_profile +#define WGL_EXT_create_context_es_profile 1 +#define WGL_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004 +#endif /* WGL_EXT_create_context_es_profile */ + +#ifndef WGL_EXT_depth_float +#define WGL_EXT_depth_float 1 +#define WGL_DEPTH_FLOAT_EXT 0x2040 +#endif /* WGL_EXT_depth_float */ + +#ifndef WGL_EXT_display_color_table +#define WGL_EXT_display_color_table 1 +typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id); +typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length); +typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id); +typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id); +#ifdef WGL_WGLEXT_PROTOTYPES +GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort id); +GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *table, GLuint length); +GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort id); +VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort id); +#endif +#endif /* WGL_EXT_display_color_table */ + +#ifndef WGL_EXT_extensions_string +#define WGL_EXT_extensions_string 1 +typedef const char *(WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void); +#ifdef WGL_WGLEXT_PROTOTYPES +const char *WINAPI wglGetExtensionsStringEXT (void); +#endif +#endif /* WGL_EXT_extensions_string */ + +#ifndef WGL_EXT_framebuffer_sRGB +#define WGL_EXT_framebuffer_sRGB 1 +#define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9 +#endif /* WGL_EXT_framebuffer_sRGB */ + +#ifndef WGL_EXT_make_current_read +#define WGL_EXT_make_current_read 1 +#define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043 +typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); +typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglMakeContextCurrentEXT (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); +HDC WINAPI wglGetCurrentReadDCEXT (void); +#endif +#endif /* WGL_EXT_make_current_read */ + +#ifndef WGL_EXT_multisample +#define WGL_EXT_multisample 1 +#define WGL_SAMPLE_BUFFERS_EXT 0x2041 +#define WGL_SAMPLES_EXT 0x2042 +#endif /* WGL_EXT_multisample */ + +#ifndef WGL_EXT_pbuffer +#define WGL_EXT_pbuffer 1 +DECLARE_HANDLE(HPBUFFEREXT); +#define WGL_DRAW_TO_PBUFFER_EXT 0x202D +#define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E +#define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F +#define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030 +#define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031 +#define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032 +#define WGL_PBUFFER_LARGEST_EXT 0x2033 +#define WGL_PBUFFER_WIDTH_EXT 0x2034 +#define WGL_PBUFFER_HEIGHT_EXT 0x2035 +typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); +typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer); +typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC); +typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer); +typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue); +#ifdef WGL_WGLEXT_PROTOTYPES +HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); +HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT hPbuffer); +int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT hPbuffer, HDC hDC); +BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT hPbuffer); +BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue); +#endif +#endif /* WGL_EXT_pbuffer */ + +#ifndef WGL_EXT_pixel_format +#define WGL_EXT_pixel_format 1 +#define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000 +#define WGL_DRAW_TO_WINDOW_EXT 0x2001 +#define WGL_DRAW_TO_BITMAP_EXT 0x2002 +#define WGL_ACCELERATION_EXT 0x2003 +#define WGL_NEED_PALETTE_EXT 0x2004 +#define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005 +#define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006 +#define WGL_SWAP_METHOD_EXT 0x2007 +#define WGL_NUMBER_OVERLAYS_EXT 0x2008 +#define WGL_NUMBER_UNDERLAYS_EXT 0x2009 +#define WGL_TRANSPARENT_EXT 0x200A +#define WGL_TRANSPARENT_VALUE_EXT 0x200B +#define WGL_SHARE_DEPTH_EXT 0x200C +#define WGL_SHARE_STENCIL_EXT 0x200D +#define WGL_SHARE_ACCUM_EXT 0x200E +#define WGL_SUPPORT_GDI_EXT 0x200F +#define WGL_SUPPORT_OPENGL_EXT 0x2010 +#define WGL_DOUBLE_BUFFER_EXT 0x2011 +#define WGL_STEREO_EXT 0x2012 +#define WGL_PIXEL_TYPE_EXT 0x2013 +#define WGL_COLOR_BITS_EXT 0x2014 +#define WGL_RED_BITS_EXT 0x2015 +#define WGL_RED_SHIFT_EXT 0x2016 +#define WGL_GREEN_BITS_EXT 0x2017 +#define WGL_GREEN_SHIFT_EXT 0x2018 +#define WGL_BLUE_BITS_EXT 0x2019 +#define WGL_BLUE_SHIFT_EXT 0x201A +#define WGL_ALPHA_BITS_EXT 0x201B +#define WGL_ALPHA_SHIFT_EXT 0x201C +#define WGL_ACCUM_BITS_EXT 0x201D +#define WGL_ACCUM_RED_BITS_EXT 0x201E +#define WGL_ACCUM_GREEN_BITS_EXT 0x201F +#define WGL_ACCUM_BLUE_BITS_EXT 0x2020 +#define WGL_ACCUM_ALPHA_BITS_EXT 0x2021 +#define WGL_DEPTH_BITS_EXT 0x2022 +#define WGL_STENCIL_BITS_EXT 0x2023 +#define WGL_AUX_BUFFERS_EXT 0x2024 +#define WGL_NO_ACCELERATION_EXT 0x2025 +#define WGL_GENERIC_ACCELERATION_EXT 0x2026 +#define WGL_FULL_ACCELERATION_EXT 0x2027 +#define WGL_SWAP_EXCHANGE_EXT 0x2028 +#define WGL_SWAP_COPY_EXT 0x2029 +#define WGL_SWAP_UNDEFINED_EXT 0x202A +#define WGL_TYPE_RGBA_EXT 0x202B +#define WGL_TYPE_COLORINDEX_EXT 0x202C +typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues); +typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues); +typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues); +BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues); +BOOL WINAPI wglChoosePixelFormatEXT (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); +#endif +#endif /* WGL_EXT_pixel_format */ + +#ifndef WGL_EXT_pixel_format_packed_float +#define WGL_EXT_pixel_format_packed_float 1 +#define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8 +#endif /* WGL_EXT_pixel_format_packed_float */ + +#ifndef WGL_EXT_swap_control +#define WGL_EXT_swap_control 1 +typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval); +typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglSwapIntervalEXT (int interval); +int WINAPI wglGetSwapIntervalEXT (void); +#endif +#endif /* WGL_EXT_swap_control */ + +#ifndef WGL_EXT_swap_control_tear +#define WGL_EXT_swap_control_tear 1 +#endif /* WGL_EXT_swap_control_tear */ + +#ifndef WGL_I3D_digital_video_control +#define WGL_I3D_digital_video_control 1 +#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050 +#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051 +#define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052 +#define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053 +typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue); +typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglGetDigitalVideoParametersI3D (HDC hDC, int iAttribute, int *piValue); +BOOL WINAPI wglSetDigitalVideoParametersI3D (HDC hDC, int iAttribute, const int *piValue); +#endif +#endif /* WGL_I3D_digital_video_control */ + +#ifndef WGL_I3D_gamma +#define WGL_I3D_gamma 1 +#define WGL_GAMMA_TABLE_SIZE_I3D 0x204E +#define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F +typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue); +typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue); +typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue); +typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglGetGammaTableParametersI3D (HDC hDC, int iAttribute, int *piValue); +BOOL WINAPI wglSetGammaTableParametersI3D (HDC hDC, int iAttribute, const int *piValue); +BOOL WINAPI wglGetGammaTableI3D (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue); +BOOL WINAPI wglSetGammaTableI3D (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue); +#endif +#endif /* WGL_I3D_gamma */ + +#ifndef WGL_I3D_genlock +#define WGL_I3D_genlock 1 +#define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044 +#define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045 +#define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046 +#define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047 +#define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048 +#define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049 +#define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A +#define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B +#define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C +typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC); +typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC); +typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL *pFlag); +typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource); +typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT *uSource); +typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge); +typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT *uEdge); +typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate); +typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT *uRate); +typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay); +typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT *uDelay); +typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglEnableGenlockI3D (HDC hDC); +BOOL WINAPI wglDisableGenlockI3D (HDC hDC); +BOOL WINAPI wglIsEnabledGenlockI3D (HDC hDC, BOOL *pFlag); +BOOL WINAPI wglGenlockSourceI3D (HDC hDC, UINT uSource); +BOOL WINAPI wglGetGenlockSourceI3D (HDC hDC, UINT *uSource); +BOOL WINAPI wglGenlockSourceEdgeI3D (HDC hDC, UINT uEdge); +BOOL WINAPI wglGetGenlockSourceEdgeI3D (HDC hDC, UINT *uEdge); +BOOL WINAPI wglGenlockSampleRateI3D (HDC hDC, UINT uRate); +BOOL WINAPI wglGetGenlockSampleRateI3D (HDC hDC, UINT *uRate); +BOOL WINAPI wglGenlockSourceDelayI3D (HDC hDC, UINT uDelay); +BOOL WINAPI wglGetGenlockSourceDelayI3D (HDC hDC, UINT *uDelay); +BOOL WINAPI wglQueryGenlockMaxSourceDelayI3D (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay); +#endif +#endif /* WGL_I3D_genlock */ + +#ifndef WGL_I3D_image_buffer +#define WGL_I3D_image_buffer 1 +#define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001 +#define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002 +typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags); +typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress); +typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count); +typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID *pAddress, UINT count); +#ifdef WGL_WGLEXT_PROTOTYPES +LPVOID WINAPI wglCreateImageBufferI3D (HDC hDC, DWORD dwSize, UINT uFlags); +BOOL WINAPI wglDestroyImageBufferI3D (HDC hDC, LPVOID pAddress); +BOOL WINAPI wglAssociateImageBufferEventsI3D (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count); +BOOL WINAPI wglReleaseImageBufferEventsI3D (HDC hDC, const LPVOID *pAddress, UINT count); +#endif +#endif /* WGL_I3D_image_buffer */ + +#ifndef WGL_I3D_swap_frame_lock +#define WGL_I3D_swap_frame_lock 1 +typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void); +typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void); +typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL *pFlag); +typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL *pFlag); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglEnableFrameLockI3D (void); +BOOL WINAPI wglDisableFrameLockI3D (void); +BOOL WINAPI wglIsEnabledFrameLockI3D (BOOL *pFlag); +BOOL WINAPI wglQueryFrameLockMasterI3D (BOOL *pFlag); +#endif +#endif /* WGL_I3D_swap_frame_lock */ + +#ifndef WGL_I3D_swap_frame_usage +#define WGL_I3D_swap_frame_usage 1 +typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float *pUsage); +typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void); +typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void); +typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglGetFrameUsageI3D (float *pUsage); +BOOL WINAPI wglBeginFrameTrackingI3D (void); +BOOL WINAPI wglEndFrameTrackingI3D (void); +BOOL WINAPI wglQueryFrameTrackingI3D (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage); +#endif +#endif /* WGL_I3D_swap_frame_usage */ + +#ifndef WGL_NV_DX_interop +#define WGL_NV_DX_interop 1 +#define WGL_ACCESS_READ_ONLY_NV 0x00000000 +#define WGL_ACCESS_READ_WRITE_NV 0x00000001 +#define WGL_ACCESS_WRITE_DISCARD_NV 0x00000002 +typedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (void *dxObject, HANDLE shareHandle); +typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (void *dxDevice); +typedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice); +typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access); +typedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject); +typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access); +typedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects); +typedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglDXSetResourceShareHandleNV (void *dxObject, HANDLE shareHandle); +HANDLE WINAPI wglDXOpenDeviceNV (void *dxDevice); +BOOL WINAPI wglDXCloseDeviceNV (HANDLE hDevice); +HANDLE WINAPI wglDXRegisterObjectNV (HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access); +BOOL WINAPI wglDXUnregisterObjectNV (HANDLE hDevice, HANDLE hObject); +BOOL WINAPI wglDXObjectAccessNV (HANDLE hObject, GLenum access); +BOOL WINAPI wglDXLockObjectsNV (HANDLE hDevice, GLint count, HANDLE *hObjects); +BOOL WINAPI wglDXUnlockObjectsNV (HANDLE hDevice, GLint count, HANDLE *hObjects); +#endif +#endif /* WGL_NV_DX_interop */ + +#ifndef WGL_NV_DX_interop2 +#define WGL_NV_DX_interop2 1 +#endif /* WGL_NV_DX_interop2 */ + +#ifndef WGL_NV_copy_image +#define WGL_NV_copy_image 1 +typedef BOOL (WINAPI * PFNWGLCOPYIMAGESUBDATANVPROC) (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglCopyImageSubDataNV (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); +#endif +#endif /* WGL_NV_copy_image */ + +#ifndef WGL_NV_delay_before_swap +#define WGL_NV_delay_before_swap 1 +typedef BOOL (WINAPI * PFNWGLDELAYBEFORESWAPNVPROC) (HDC hDC, GLfloat seconds); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglDelayBeforeSwapNV (HDC hDC, GLfloat seconds); +#endif +#endif /* WGL_NV_delay_before_swap */ + +#ifndef WGL_NV_float_buffer +#define WGL_NV_float_buffer 1 +#define WGL_FLOAT_COMPONENTS_NV 0x20B0 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4 +#define WGL_TEXTURE_FLOAT_R_NV 0x20B5 +#define WGL_TEXTURE_FLOAT_RG_NV 0x20B6 +#define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7 +#define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8 +#endif /* WGL_NV_float_buffer */ + +#ifndef WGL_NV_gpu_affinity +#define WGL_NV_gpu_affinity 1 +DECLARE_HANDLE(HGPUNV); +struct _GPU_DEVICE { + DWORD cb; + CHAR DeviceName[32]; + CHAR DeviceString[128]; + DWORD Flags; + RECT rcVirtualScreen; +}; +typedef struct _GPU_DEVICE *PGPU_DEVICE; +#define ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0 +#define ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 +typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu); +typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice); +typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList); +typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu); +typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglEnumGpusNV (UINT iGpuIndex, HGPUNV *phGpu); +BOOL WINAPI wglEnumGpuDevicesNV (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice); +HDC WINAPI wglCreateAffinityDCNV (const HGPUNV *phGpuList); +BOOL WINAPI wglEnumGpusFromAffinityDCNV (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu); +BOOL WINAPI wglDeleteDCNV (HDC hdc); +#endif +#endif /* WGL_NV_gpu_affinity */ + +#ifndef WGL_NV_multigpu_context +#define WGL_NV_multigpu_context 1 +#define WGL_CONTEXT_MULTIGPU_ATTRIB_NV 0x20AA +#define WGL_CONTEXT_MULTIGPU_ATTRIB_SINGLE_NV 0x20AB +#define WGL_CONTEXT_MULTIGPU_ATTRIB_AFR_NV 0x20AC +#define WGL_CONTEXT_MULTIGPU_ATTRIB_MULTICAST_NV 0x20AD +#define WGL_CONTEXT_MULTIGPU_ATTRIB_MULTI_DISPLAY_MULTICAST_NV 0x20AE +#endif /* WGL_NV_multigpu_context */ + +#ifndef WGL_NV_multisample_coverage +#define WGL_NV_multisample_coverage 1 +#define WGL_COVERAGE_SAMPLES_NV 0x2042 +#define WGL_COLOR_SAMPLES_NV 0x20B9 +#endif /* WGL_NV_multisample_coverage */ + +#ifndef WGL_NV_present_video +#define WGL_NV_present_video 1 +DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); +#define WGL_NUM_VIDEO_SLOTS_NV 0x20F0 +typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV *phDeviceList); +typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList); +typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int *piValue); +#ifdef WGL_WGLEXT_PROTOTYPES +int WINAPI wglEnumerateVideoDevicesNV (HDC hDc, HVIDEOOUTPUTDEVICENV *phDeviceList); +BOOL WINAPI wglBindVideoDeviceNV (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList); +BOOL WINAPI wglQueryCurrentContextNV (int iAttribute, int *piValue); +#endif +#endif /* WGL_NV_present_video */ + +#ifndef WGL_NV_render_depth_texture +#define WGL_NV_render_depth_texture 1 +#define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4 +#define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5 +#define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6 +#define WGL_DEPTH_COMPONENT_NV 0x20A7 +#endif /* WGL_NV_render_depth_texture */ + +#ifndef WGL_NV_render_texture_rectangle +#define WGL_NV_render_texture_rectangle 1 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0 +#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1 +#define WGL_TEXTURE_RECTANGLE_NV 0x20A2 +#endif /* WGL_NV_render_texture_rectangle */ + +#ifndef WGL_NV_swap_group +#define WGL_NV_swap_group 1 +typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group); +typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier); +typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint *group, GLuint *barrier); +typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers); +typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint *count); +typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglJoinSwapGroupNV (HDC hDC, GLuint group); +BOOL WINAPI wglBindSwapBarrierNV (GLuint group, GLuint barrier); +BOOL WINAPI wglQuerySwapGroupNV (HDC hDC, GLuint *group, GLuint *barrier); +BOOL WINAPI wglQueryMaxSwapGroupsNV (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers); +BOOL WINAPI wglQueryFrameCountNV (HDC hDC, GLuint *count); +BOOL WINAPI wglResetFrameCountNV (HDC hDC); +#endif +#endif /* WGL_NV_swap_group */ + +#ifndef WGL_NV_vertex_array_range +#define WGL_NV_vertex_array_range 1 +typedef void *(WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority); +typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer); +#ifdef WGL_WGLEXT_PROTOTYPES +void *WINAPI wglAllocateMemoryNV (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority); +void WINAPI wglFreeMemoryNV (void *pointer); +#endif +#endif /* WGL_NV_vertex_array_range */ + +#ifndef WGL_NV_video_capture +#define WGL_NV_video_capture 1 +DECLARE_HANDLE(HVIDEOINPUTDEVICENV); +#define WGL_UNIQUE_ID_NV 0x20CE +#define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF +typedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice); +typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList); +typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice); +typedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue); +typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglBindVideoCaptureDeviceNV (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice); +UINT WINAPI wglEnumerateVideoCaptureDevicesNV (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList); +BOOL WINAPI wglLockVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice); +BOOL WINAPI wglQueryVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue); +BOOL WINAPI wglReleaseVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice); +#endif +#endif /* WGL_NV_video_capture */ + +#ifndef WGL_NV_video_output +#define WGL_NV_video_output 1 +DECLARE_HANDLE(HPVIDEODEV); +#define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0 +#define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1 +#define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2 +#define WGL_VIDEO_OUT_COLOR_NV 0x20C3 +#define WGL_VIDEO_OUT_ALPHA_NV 0x20C4 +#define WGL_VIDEO_OUT_DEPTH_NV 0x20C5 +#define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 +#define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 +#define WGL_VIDEO_OUT_FRAME 0x20C8 +#define WGL_VIDEO_OUT_FIELD_1 0x20C9 +#define WGL_VIDEO_OUT_FIELD_2 0x20CA +#define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB +#define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC +typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice); +typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice); +typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer); +typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer); +typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock); +typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglGetVideoDeviceNV (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice); +BOOL WINAPI wglReleaseVideoDeviceNV (HPVIDEODEV hVideoDevice); +BOOL WINAPI wglBindVideoImageNV (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer); +BOOL WINAPI wglReleaseVideoImageNV (HPBUFFERARB hPbuffer, int iVideoBuffer); +BOOL WINAPI wglSendPbufferToVideoNV (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock); +BOOL WINAPI wglGetVideoInfoNV (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); +#endif +#endif /* WGL_NV_video_output */ + +#ifndef WGL_OML_sync_control +#define WGL_OML_sync_control 1 +typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc); +typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 *numerator, INT32 *denominator); +typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder); +typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder); +typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc); +typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc); +#ifdef WGL_WGLEXT_PROTOTYPES +BOOL WINAPI wglGetSyncValuesOML (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc); +BOOL WINAPI wglGetMscRateOML (HDC hdc, INT32 *numerator, INT32 *denominator); +INT64 WINAPI wglSwapBuffersMscOML (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder); +INT64 WINAPI wglSwapLayerBuffersMscOML (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder); +BOOL WINAPI wglWaitForMscOML (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc); +BOOL WINAPI wglWaitForSbcOML (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc); +#endif +#endif /* WGL_OML_sync_control */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/HexaGen.Tests/physx/generator.json b/HexaGen.Tests/physx/generator.json new file mode 100644 index 0000000..8ca55a3 --- /dev/null +++ b/HexaGen.Tests/physx/generator.json @@ -0,0 +1,59 @@ +{ + "Namespace": "Hexa.NET.PhysX", + "ApiName": "PhysX", + "LibName": "shaderc_shared", + "Usings": [ "System.Numerics" ], + "EnableExperimentalOptions": true, + "GenerateConstructorsForStructs": false, + "GenerateSizeOfStructs": false, + "GeneratePlaceholderComments": false, + "Defines": [ + "NDEBUG" + ], + "KnownConstantNames": { + }, + "KnownEnumValueNames": { + "": "" + }, + "KnownEnumPrefixes": { + }, + "KnownExtensionPrefixes": { + }, + "KnownExtensionNames": { + }, + "KnownStructMethods": { + }, + "IgnoredFunctions": [ + "PX_UNUSED", + "PxCreateRepXObject" + ], + "IgnoredParts": [ + "bit" + ], + "PreserveCaps": [ + "" + ], + "Keywords": [ + "object", + "event" + ], + "TypeMappings": { + "uint8_t": "byte", + "uint16_t": "ushort", + "uint32_t": "uint", + "uint64_t": "ulong", + "int8_t": "sbyte", + "int32_t": "int", + "int16_t": "short", + "int64_t": "long", + "int64_t*": "long*", + "unsigned char": "byte", + "signed char": "sbyte", + "char": "byte", + "size_t": "nuint", + "bool": "byte", + "PxU16": "ushort", + "PxU32": "uint", + "PxVec3": "Vector3" + } +} \ No newline at end of file diff --git a/HexaGen.Tests/physx/physx_generated.hpp b/HexaGen.Tests/physx/physx_generated.hpp new file mode 100644 index 0000000..0fde609 --- /dev/null +++ b/HexaGen.Tests/physx/physx_generated.hpp @@ -0,0 +1,13017 @@ +#include "PxPhysicsAPI.h" +#include +using namespace physx; +#include "structgen_out.hpp" + +static_assert(sizeof(physx::PxAllocatorCallback) == sizeof(physx_PxAllocatorCallback_Pod), "POD wrapper for `physx::PxAllocatorCallback` has incorrect size"); +static_assert(sizeof(physx::PxAssertHandler) == sizeof(physx_PxAssertHandler_Pod), "POD wrapper for `physx::PxAssertHandler` has incorrect size"); +static_assert(sizeof(physx::PxFoundation) == sizeof(physx_PxFoundation_Pod), "POD wrapper for `physx::PxFoundation` has incorrect size"); +static_assert(sizeof(physx::PxAllocator) == sizeof(physx_PxAllocator_Pod), "POD wrapper for `physx::PxAllocator` has incorrect size"); +static_assert(sizeof(physx::PxRawAllocator) == sizeof(physx_PxRawAllocator_Pod), "POD wrapper for `physx::PxRawAllocator` has incorrect size"); +static_assert(sizeof(physx::PxVirtualAllocatorCallback) == sizeof(physx_PxVirtualAllocatorCallback_Pod), "POD wrapper for `physx::PxVirtualAllocatorCallback` has incorrect size"); +static_assert(sizeof(physx::PxVirtualAllocator) == sizeof(physx_PxVirtualAllocator_Pod), "POD wrapper for `physx::PxVirtualAllocator` has incorrect size"); +static_assert(sizeof(physx::PxUserAllocated) == sizeof(physx_PxUserAllocated_Pod), "POD wrapper for `physx::PxUserAllocated` has incorrect size"); +static_assert(sizeof(physx::PxTempAllocatorChunk) == sizeof(physx_PxTempAllocatorChunk_Pod), "POD wrapper for `physx::PxTempAllocatorChunk` has incorrect size"); +static_assert(sizeof(physx::PxTempAllocator) == sizeof(physx_PxTempAllocator_Pod), "POD wrapper for `physx::PxTempAllocator` has incorrect size"); +static_assert(sizeof(physx::PxBitAndByte) == sizeof(physx_PxBitAndByte_Pod), "POD wrapper for `physx::PxBitAndByte` has incorrect size"); +static_assert(sizeof(physx::PxBitMap) == sizeof(physx_PxBitMap_Pod), "POD wrapper for `physx::PxBitMap` has incorrect size"); +static_assert(sizeof(physx::PxVec3) == sizeof(physx_PxVec3_Pod), "POD wrapper for `physx::PxVec3` has incorrect size"); +static_assert(sizeof(physx::PxVec3Padded) == sizeof(physx_PxVec3Padded_Pod), "POD wrapper for `physx::PxVec3Padded` has incorrect size"); +static_assert(sizeof(physx::PxQuat) == sizeof(physx_PxQuat_Pod), "POD wrapper for `physx::PxQuat` has incorrect size"); +static_assert(sizeof(physx::PxTransform) == sizeof(physx_PxTransform_Pod), "POD wrapper for `physx::PxTransform` has incorrect size"); +static_assert(sizeof(physx::PxTransformPadded) == sizeof(physx_PxTransformPadded_Pod), "POD wrapper for `physx::PxTransformPadded` has incorrect size"); +static_assert(sizeof(physx::PxMat33) == sizeof(physx_PxMat33_Pod), "POD wrapper for `physx::PxMat33` has incorrect size"); +static_assert(sizeof(physx::PxBounds3) == sizeof(physx_PxBounds3_Pod), "POD wrapper for `physx::PxBounds3` has incorrect size"); +static_assert(sizeof(physx::PxErrorCallback) == sizeof(physx_PxErrorCallback_Pod), "POD wrapper for `physx::PxErrorCallback` has incorrect size"); +static_assert(sizeof(physx::PxAllocationListener) == sizeof(physx_PxAllocationListener_Pod), "POD wrapper for `physx::PxAllocationListener` has incorrect size"); +static_assert(sizeof(physx::PxBroadcastingAllocator) == sizeof(physx_PxBroadcastingAllocator_Pod), "POD wrapper for `physx::PxBroadcastingAllocator` has incorrect size"); +static_assert(sizeof(physx::PxBroadcastingErrorCallback) == sizeof(physx_PxBroadcastingErrorCallback_Pod), "POD wrapper for `physx::PxBroadcastingErrorCallback` has incorrect size"); +static_assert(sizeof(physx::PxInputStream) == sizeof(physx_PxInputStream_Pod), "POD wrapper for `physx::PxInputStream` has incorrect size"); +static_assert(sizeof(physx::PxInputData) == sizeof(physx_PxInputData_Pod), "POD wrapper for `physx::PxInputData` has incorrect size"); +static_assert(sizeof(physx::PxOutputStream) == sizeof(physx_PxOutputStream_Pod), "POD wrapper for `physx::PxOutputStream` has incorrect size"); +static_assert(sizeof(physx::PxVec4) == sizeof(physx_PxVec4_Pod), "POD wrapper for `physx::PxVec4` has incorrect size"); +static_assert(sizeof(physx::PxMat44) == sizeof(physx_PxMat44_Pod), "POD wrapper for `physx::PxMat44` has incorrect size"); +static_assert(sizeof(physx::PxPlane) == sizeof(physx_PxPlane_Pod), "POD wrapper for `physx::PxPlane` has incorrect size"); +static_assert(sizeof(physx::Interpolation) == sizeof(physx_Interpolation_Pod), "POD wrapper for `physx::Interpolation` has incorrect size"); +static_assert(sizeof(physx::PxMutexImpl) == sizeof(physx_PxMutexImpl_Pod), "POD wrapper for `physx::PxMutexImpl` has incorrect size"); +static_assert(sizeof(physx::PxReadWriteLock) == sizeof(physx_PxReadWriteLock_Pod), "POD wrapper for `physx::PxReadWriteLock` has incorrect size"); +static_assert(sizeof(physx::PxProfilerCallback) == sizeof(physx_PxProfilerCallback_Pod), "POD wrapper for `physx::PxProfilerCallback` has incorrect size"); +static_assert(sizeof(physx::PxProfileScoped) == sizeof(physx_PxProfileScoped_Pod), "POD wrapper for `physx::PxProfileScoped` has incorrect size"); +static_assert(sizeof(physx::PxSListEntry) == sizeof(physx_PxSListEntry_Pod), "POD wrapper for `physx::PxSListEntry` has incorrect size"); +static_assert(sizeof(physx::PxSListImpl) == sizeof(physx_PxSListImpl_Pod), "POD wrapper for `physx::PxSListImpl` has incorrect size"); +static_assert(sizeof(physx::PxSyncImpl) == sizeof(physx_PxSyncImpl_Pod), "POD wrapper for `physx::PxSyncImpl` has incorrect size"); +static_assert(sizeof(physx::PxRunnable) == sizeof(physx_PxRunnable_Pod), "POD wrapper for `physx::PxRunnable` has incorrect size"); +static_assert(sizeof(physx::PxCounterFrequencyToTensOfNanos) == sizeof(physx_PxCounterFrequencyToTensOfNanos_Pod), "POD wrapper for `physx::PxCounterFrequencyToTensOfNanos` has incorrect size"); +static_assert(sizeof(physx::PxTime) == sizeof(physx_PxTime_Pod), "POD wrapper for `physx::PxTime` has incorrect size"); +static_assert(sizeof(physx::PxVec2) == sizeof(physx_PxVec2_Pod), "POD wrapper for `physx::PxVec2` has incorrect size"); +static_assert(sizeof(physx::PxStridedData) == sizeof(physx_PxStridedData_Pod), "POD wrapper for `physx::PxStridedData` has incorrect size"); +static_assert(sizeof(physx::PxBoundedData) == sizeof(physx_PxBoundedData_Pod), "POD wrapper for `physx::PxBoundedData` has incorrect size"); +static_assert(sizeof(physx::PxDebugPoint) == sizeof(physx_PxDebugPoint_Pod), "POD wrapper for `physx::PxDebugPoint` has incorrect size"); +static_assert(sizeof(physx::PxDebugLine) == sizeof(physx_PxDebugLine_Pod), "POD wrapper for `physx::PxDebugLine` has incorrect size"); +static_assert(sizeof(physx::PxDebugTriangle) == sizeof(physx_PxDebugTriangle_Pod), "POD wrapper for `physx::PxDebugTriangle` has incorrect size"); +static_assert(sizeof(physx::PxDebugText) == sizeof(physx_PxDebugText_Pod), "POD wrapper for `physx::PxDebugText` has incorrect size"); +static_assert(sizeof(physx::PxRenderBuffer) == sizeof(physx_PxRenderBuffer_Pod), "POD wrapper for `physx::PxRenderBuffer` has incorrect size"); +static_assert(sizeof(physx::PxProcessPxBaseCallback) == sizeof(physx_PxProcessPxBaseCallback_Pod), "POD wrapper for `physx::PxProcessPxBaseCallback` has incorrect size"); +static_assert(sizeof(physx::PxSerializationContext) == sizeof(physx_PxSerializationContext_Pod), "POD wrapper for `physx::PxSerializationContext` has incorrect size"); +static_assert(sizeof(physx::PxDeserializationContext) == sizeof(physx_PxDeserializationContext_Pod), "POD wrapper for `physx::PxDeserializationContext` has incorrect size"); +static_assert(sizeof(physx::PxSerializationRegistry) == sizeof(physx_PxSerializationRegistry_Pod), "POD wrapper for `physx::PxSerializationRegistry` has incorrect size"); +static_assert(sizeof(physx::PxCollection) == sizeof(physx_PxCollection_Pod), "POD wrapper for `physx::PxCollection` has incorrect size"); +static_assert(sizeof(physx::PxBase) == sizeof(physx_PxBase_Pod), "POD wrapper for `physx::PxBase` has incorrect size"); +static_assert(sizeof(physx::PxRefCounted) == sizeof(physx_PxRefCounted_Pod), "POD wrapper for `physx::PxRefCounted` has incorrect size"); +static_assert(sizeof(physx::PxTolerancesScale) == sizeof(physx_PxTolerancesScale_Pod), "POD wrapper for `physx::PxTolerancesScale` has incorrect size"); +static_assert(sizeof(physx::PxStringTable) == sizeof(physx_PxStringTable_Pod), "POD wrapper for `physx::PxStringTable` has incorrect size"); +static_assert(sizeof(physx::PxSerializer) == sizeof(physx_PxSerializer_Pod), "POD wrapper for `physx::PxSerializer` has incorrect size"); +static_assert(sizeof(physx::PxMetaDataEntry) == sizeof(physx_PxMetaDataEntry_Pod), "POD wrapper for `physx::PxMetaDataEntry` has incorrect size"); +static_assert(sizeof(physx::PxInsertionCallback) == sizeof(physx_PxInsertionCallback_Pod), "POD wrapper for `physx::PxInsertionCallback` has incorrect size"); +static_assert(sizeof(physx::PxTaskManager) == sizeof(physx_PxTaskManager_Pod), "POD wrapper for `physx::PxTaskManager` has incorrect size"); +static_assert(sizeof(physx::PxCpuDispatcher) == sizeof(physx_PxCpuDispatcher_Pod), "POD wrapper for `physx::PxCpuDispatcher` has incorrect size"); +static_assert(sizeof(physx::PxBaseTask) == sizeof(physx_PxBaseTask_Pod), "POD wrapper for `physx::PxBaseTask` has incorrect size"); +static_assert(sizeof(physx::PxTask) == sizeof(physx_PxTask_Pod), "POD wrapper for `physx::PxTask` has incorrect size"); +static_assert(sizeof(physx::PxLightCpuTask) == sizeof(physx_PxLightCpuTask_Pod), "POD wrapper for `physx::PxLightCpuTask` has incorrect size"); +static_assert(sizeof(physx::PxGeometry) == sizeof(physx_PxGeometry_Pod), "POD wrapper for `physx::PxGeometry` has incorrect size"); +static_assert(sizeof(physx::PxBoxGeometry) == sizeof(physx_PxBoxGeometry_Pod), "POD wrapper for `physx::PxBoxGeometry` has incorrect size"); +static_assert(sizeof(physx::PxBVHRaycastCallback) == sizeof(physx_PxBVHRaycastCallback_Pod), "POD wrapper for `physx::PxBVHRaycastCallback` has incorrect size"); +static_assert(sizeof(physx::PxBVHOverlapCallback) == sizeof(physx_PxBVHOverlapCallback_Pod), "POD wrapper for `physx::PxBVHOverlapCallback` has incorrect size"); +static_assert(sizeof(physx::PxBVHTraversalCallback) == sizeof(physx_PxBVHTraversalCallback_Pod), "POD wrapper for `physx::PxBVHTraversalCallback` has incorrect size"); +static_assert(sizeof(physx::PxBVH) == sizeof(physx_PxBVH_Pod), "POD wrapper for `physx::PxBVH` has incorrect size"); +static_assert(sizeof(physx::PxCapsuleGeometry) == sizeof(physx_PxCapsuleGeometry_Pod), "POD wrapper for `physx::PxCapsuleGeometry` has incorrect size"); +static_assert(sizeof(physx::PxHullPolygon) == sizeof(physx_PxHullPolygon_Pod), "POD wrapper for `physx::PxHullPolygon` has incorrect size"); +static_assert(sizeof(physx::PxConvexMesh) == sizeof(physx_PxConvexMesh_Pod), "POD wrapper for `physx::PxConvexMesh` has incorrect size"); +static_assert(sizeof(physx::PxMeshScale) == sizeof(physx_PxMeshScale_Pod), "POD wrapper for `physx::PxMeshScale` has incorrect size"); +static_assert(sizeof(physx::PxConvexMeshGeometry) == sizeof(physx_PxConvexMeshGeometry_Pod), "POD wrapper for `physx::PxConvexMeshGeometry` has incorrect size"); +static_assert(sizeof(physx::PxSphereGeometry) == sizeof(physx_PxSphereGeometry_Pod), "POD wrapper for `physx::PxSphereGeometry` has incorrect size"); +static_assert(sizeof(physx::PxPlaneGeometry) == sizeof(physx_PxPlaneGeometry_Pod), "POD wrapper for `physx::PxPlaneGeometry` has incorrect size"); +static_assert(sizeof(physx::PxTriangleMeshGeometry) == sizeof(physx_PxTriangleMeshGeometry_Pod), "POD wrapper for `physx::PxTriangleMeshGeometry` has incorrect size"); +static_assert(sizeof(physx::PxHeightFieldGeometry) == sizeof(physx_PxHeightFieldGeometry_Pod), "POD wrapper for `physx::PxHeightFieldGeometry` has incorrect size"); +static_assert(sizeof(physx::PxParticleSystemGeometry) == sizeof(physx_PxParticleSystemGeometry_Pod), "POD wrapper for `physx::PxParticleSystemGeometry` has incorrect size"); +static_assert(sizeof(physx::PxHairSystemGeometry) == sizeof(physx_PxHairSystemGeometry_Pod), "POD wrapper for `physx::PxHairSystemGeometry` has incorrect size"); +static_assert(sizeof(physx::PxTetrahedronMeshGeometry) == sizeof(physx_PxTetrahedronMeshGeometry_Pod), "POD wrapper for `physx::PxTetrahedronMeshGeometry` has incorrect size"); +static_assert(sizeof(physx::PxQueryHit) == sizeof(physx_PxQueryHit_Pod), "POD wrapper for `physx::PxQueryHit` has incorrect size"); +static_assert(sizeof(physx::PxLocationHit) == sizeof(physx_PxLocationHit_Pod), "POD wrapper for `physx::PxLocationHit` has incorrect size"); +static_assert(sizeof(physx::PxGeomRaycastHit) == sizeof(physx_PxGeomRaycastHit_Pod), "POD wrapper for `physx::PxGeomRaycastHit` has incorrect size"); +static_assert(sizeof(physx::PxGeomOverlapHit) == sizeof(physx_PxGeomOverlapHit_Pod), "POD wrapper for `physx::PxGeomOverlapHit` has incorrect size"); +static_assert(sizeof(physx::PxGeomSweepHit) == sizeof(physx_PxGeomSweepHit_Pod), "POD wrapper for `physx::PxGeomSweepHit` has incorrect size"); +static_assert(sizeof(physx::PxGeomIndexPair) == sizeof(physx_PxGeomIndexPair_Pod), "POD wrapper for `physx::PxGeomIndexPair` has incorrect size"); +static_assert(sizeof(physx::PxQueryThreadContext) == sizeof(physx_PxQueryThreadContext_Pod), "POD wrapper for `physx::PxQueryThreadContext` has incorrect size"); +static_assert(sizeof(physx::PxCustomGeometryType) == sizeof(physx_PxCustomGeometryType_Pod), "POD wrapper for `physx::PxCustomGeometryType` has incorrect size"); +static_assert(sizeof(physx::PxCustomGeometryCallbacks) == sizeof(physx_PxCustomGeometryCallbacks_Pod), "POD wrapper for `physx::PxCustomGeometryCallbacks` has incorrect size"); +static_assert(sizeof(physx::PxCustomGeometry) == sizeof(physx_PxCustomGeometry_Pod), "POD wrapper for `physx::PxCustomGeometry` has incorrect size"); +static_assert(sizeof(physx::PxGeometryHolder) == sizeof(physx_PxGeometryHolder_Pod), "POD wrapper for `physx::PxGeometryHolder` has incorrect size"); +static_assert(sizeof(physx::PxGeometryQuery) == sizeof(physx_PxGeometryQuery_Pod), "POD wrapper for `physx::PxGeometryQuery` has incorrect size"); +static_assert(sizeof(physx::PxHeightFieldSample) == sizeof(physx_PxHeightFieldSample_Pod), "POD wrapper for `physx::PxHeightFieldSample` has incorrect size"); +static_assert(sizeof(physx::PxHeightField) == sizeof(physx_PxHeightField_Pod), "POD wrapper for `physx::PxHeightField` has incorrect size"); +static_assert(sizeof(physx::PxHeightFieldDesc) == sizeof(physx_PxHeightFieldDesc_Pod), "POD wrapper for `physx::PxHeightFieldDesc` has incorrect size"); +static_assert(sizeof(physx::PxMeshQuery) == sizeof(physx_PxMeshQuery_Pod), "POD wrapper for `physx::PxMeshQuery` has incorrect size"); +static_assert(sizeof(physx::PxSimpleTriangleMesh) == sizeof(physx_PxSimpleTriangleMesh_Pod), "POD wrapper for `physx::PxSimpleTriangleMesh` has incorrect size"); +static_assert(sizeof(physx::PxTriangle) == sizeof(physx_PxTriangle_Pod), "POD wrapper for `physx::PxTriangle` has incorrect size"); +static_assert(sizeof(physx::PxTrianglePadded) == sizeof(physx_PxTrianglePadded_Pod), "POD wrapper for `physx::PxTrianglePadded` has incorrect size"); +static_assert(sizeof(physx::PxTriangleMesh) == sizeof(physx_PxTriangleMesh_Pod), "POD wrapper for `physx::PxTriangleMesh` has incorrect size"); +static_assert(sizeof(physx::PxBVH34TriangleMesh) == sizeof(physx_PxBVH34TriangleMesh_Pod), "POD wrapper for `physx::PxBVH34TriangleMesh` has incorrect size"); +static_assert(sizeof(physx::PxTetrahedron) == sizeof(physx_PxTetrahedron_Pod), "POD wrapper for `physx::PxTetrahedron` has incorrect size"); +static_assert(sizeof(physx::PxSoftBodyAuxData) == sizeof(physx_PxSoftBodyAuxData_Pod), "POD wrapper for `physx::PxSoftBodyAuxData` has incorrect size"); +static_assert(sizeof(physx::PxTetrahedronMesh) == sizeof(physx_PxTetrahedronMesh_Pod), "POD wrapper for `physx::PxTetrahedronMesh` has incorrect size"); +static_assert(sizeof(physx::PxSoftBodyMesh) == sizeof(physx_PxSoftBodyMesh_Pod), "POD wrapper for `physx::PxSoftBodyMesh` has incorrect size"); +static_assert(sizeof(physx::PxCollisionMeshMappingData) == sizeof(physx_PxCollisionMeshMappingData_Pod), "POD wrapper for `physx::PxCollisionMeshMappingData` has incorrect size"); +static_assert(sizeof(physx::PxSoftBodyCollisionData) == sizeof(physx_PxSoftBodyCollisionData_Pod), "POD wrapper for `physx::PxSoftBodyCollisionData` has incorrect size"); +static_assert(sizeof(physx::PxTetrahedronMeshData) == sizeof(physx_PxTetrahedronMeshData_Pod), "POD wrapper for `physx::PxTetrahedronMeshData` has incorrect size"); +static_assert(sizeof(physx::PxSoftBodySimulationData) == sizeof(physx_PxSoftBodySimulationData_Pod), "POD wrapper for `physx::PxSoftBodySimulationData` has incorrect size"); +static_assert(sizeof(physx::PxCollisionTetrahedronMeshData) == sizeof(physx_PxCollisionTetrahedronMeshData_Pod), "POD wrapper for `physx::PxCollisionTetrahedronMeshData` has incorrect size"); +static_assert(sizeof(physx::PxSimulationTetrahedronMeshData) == sizeof(physx_PxSimulationTetrahedronMeshData_Pod), "POD wrapper for `physx::PxSimulationTetrahedronMeshData` has incorrect size"); +static_assert(sizeof(physx::PxActor) == sizeof(physx_PxActor_Pod), "POD wrapper for `physx::PxActor` has incorrect size"); +static_assert(sizeof(physx::PxAggregate) == sizeof(physx_PxAggregate_Pod), "POD wrapper for `physx::PxAggregate` has incorrect size"); +static_assert(sizeof(physx::PxSpringModifiers) == sizeof(physx_PxSpringModifiers_Pod), "POD wrapper for `physx::PxSpringModifiers` has incorrect size"); +static_assert(sizeof(physx::PxRestitutionModifiers) == sizeof(physx_PxRestitutionModifiers_Pod), "POD wrapper for `physx::PxRestitutionModifiers` has incorrect size"); +static_assert(sizeof(physx::Px1DConstraintMods) == sizeof(physx_Px1DConstraintMods_Pod), "POD wrapper for `physx::Px1DConstraintMods` has incorrect size"); +static_assert(sizeof(physx::Px1DConstraint) == sizeof(physx_Px1DConstraint_Pod), "POD wrapper for `physx::Px1DConstraint` has incorrect size"); +static_assert(sizeof(physx::PxConstraintInvMassScale) == sizeof(physx_PxConstraintInvMassScale_Pod), "POD wrapper for `physx::PxConstraintInvMassScale` has incorrect size"); +static_assert(sizeof(physx::PxConstraintVisualizer) == sizeof(physx_PxConstraintVisualizer_Pod), "POD wrapper for `physx::PxConstraintVisualizer` has incorrect size"); +static_assert(sizeof(physx::PxConstraintConnector) == sizeof(physx_PxConstraintConnector_Pod), "POD wrapper for `physx::PxConstraintConnector` has incorrect size"); +static_assert(sizeof(physx::PxContactPoint) == sizeof(physx_PxContactPoint_Pod), "POD wrapper for `physx::PxContactPoint` has incorrect size"); +static_assert(sizeof(physx::PxSolverBody) == sizeof(physx_PxSolverBody_Pod), "POD wrapper for `physx::PxSolverBody` has incorrect size"); +static_assert(sizeof(physx::PxSolverBodyData) == sizeof(physx_PxSolverBodyData_Pod), "POD wrapper for `physx::PxSolverBodyData` has incorrect size"); +static_assert(sizeof(physx::PxConstraintBatchHeader) == sizeof(physx_PxConstraintBatchHeader_Pod), "POD wrapper for `physx::PxConstraintBatchHeader` has incorrect size"); +static_assert(sizeof(physx::PxSolverConstraintDesc) == sizeof(physx_PxSolverConstraintDesc_Pod), "POD wrapper for `physx::PxSolverConstraintDesc` has incorrect size"); +static_assert(sizeof(physx::PxSolverConstraintPrepDescBase) == sizeof(physx_PxSolverConstraintPrepDescBase_Pod), "POD wrapper for `physx::PxSolverConstraintPrepDescBase` has incorrect size"); +static_assert(sizeof(physx::PxSolverConstraintPrepDesc) == sizeof(physx_PxSolverConstraintPrepDesc_Pod), "POD wrapper for `physx::PxSolverConstraintPrepDesc` has incorrect size"); +static_assert(sizeof(physx::PxSolverContactDesc) == sizeof(physx_PxSolverContactDesc_Pod), "POD wrapper for `physx::PxSolverContactDesc` has incorrect size"); +static_assert(sizeof(physx::PxConstraintAllocator) == sizeof(physx_PxConstraintAllocator_Pod), "POD wrapper for `physx::PxConstraintAllocator` has incorrect size"); +static_assert(sizeof(physx::PxArticulationLimit) == sizeof(physx_PxArticulationLimit_Pod), "POD wrapper for `physx::PxArticulationLimit` has incorrect size"); +static_assert(sizeof(physx::PxArticulationDrive) == sizeof(physx_PxArticulationDrive_Pod), "POD wrapper for `physx::PxArticulationDrive` has incorrect size"); +static_assert(sizeof(physx::PxTGSSolverBodyVel) == sizeof(physx_PxTGSSolverBodyVel_Pod), "POD wrapper for `physx::PxTGSSolverBodyVel` has incorrect size"); +static_assert(sizeof(physx::PxTGSSolverBodyTxInertia) == sizeof(physx_PxTGSSolverBodyTxInertia_Pod), "POD wrapper for `physx::PxTGSSolverBodyTxInertia` has incorrect size"); +static_assert(sizeof(physx::PxTGSSolverBodyData) == sizeof(physx_PxTGSSolverBodyData_Pod), "POD wrapper for `physx::PxTGSSolverBodyData` has incorrect size"); +static_assert(sizeof(physx::PxTGSSolverConstraintPrepDescBase) == sizeof(physx_PxTGSSolverConstraintPrepDescBase_Pod), "POD wrapper for `physx::PxTGSSolverConstraintPrepDescBase` has incorrect size"); +static_assert(sizeof(physx::PxTGSSolverConstraintPrepDesc) == sizeof(physx_PxTGSSolverConstraintPrepDesc_Pod), "POD wrapper for `physx::PxTGSSolverConstraintPrepDesc` has incorrect size"); +static_assert(sizeof(physx::PxTGSSolverContactDesc) == sizeof(physx_PxTGSSolverContactDesc_Pod), "POD wrapper for `physx::PxTGSSolverContactDesc` has incorrect size"); +static_assert(sizeof(physx::PxArticulationTendonLimit) == sizeof(physx_PxArticulationTendonLimit_Pod), "POD wrapper for `physx::PxArticulationTendonLimit` has incorrect size"); +static_assert(sizeof(physx::PxArticulationAttachment) == sizeof(physx_PxArticulationAttachment_Pod), "POD wrapper for `physx::PxArticulationAttachment` has incorrect size"); +static_assert(sizeof(physx::PxArticulationTendonJoint) == sizeof(physx_PxArticulationTendonJoint_Pod), "POD wrapper for `physx::PxArticulationTendonJoint` has incorrect size"); +static_assert(sizeof(physx::PxArticulationTendon) == sizeof(physx_PxArticulationTendon_Pod), "POD wrapper for `physx::PxArticulationTendon` has incorrect size"); +static_assert(sizeof(physx::PxArticulationSpatialTendon) == sizeof(physx_PxArticulationSpatialTendon_Pod), "POD wrapper for `physx::PxArticulationSpatialTendon` has incorrect size"); +static_assert(sizeof(physx::PxArticulationFixedTendon) == sizeof(physx_PxArticulationFixedTendon_Pod), "POD wrapper for `physx::PxArticulationFixedTendon` has incorrect size"); +static_assert(sizeof(physx::PxSpatialForce) == sizeof(physx_PxSpatialForce_Pod), "POD wrapper for `physx::PxSpatialForce` has incorrect size"); +static_assert(sizeof(physx::PxSpatialVelocity) == sizeof(physx_PxSpatialVelocity_Pod), "POD wrapper for `physx::PxSpatialVelocity` has incorrect size"); +static_assert(sizeof(physx::PxArticulationRootLinkData) == sizeof(physx_PxArticulationRootLinkData_Pod), "POD wrapper for `physx::PxArticulationRootLinkData` has incorrect size"); +static_assert(sizeof(physx::PxArticulationCache) == sizeof(physx_PxArticulationCache_Pod), "POD wrapper for `physx::PxArticulationCache` has incorrect size"); +static_assert(sizeof(physx::PxArticulationSensor) == sizeof(physx_PxArticulationSensor_Pod), "POD wrapper for `physx::PxArticulationSensor` has incorrect size"); +static_assert(sizeof(physx::PxArticulationReducedCoordinate) == sizeof(physx_PxArticulationReducedCoordinate_Pod), "POD wrapper for `physx::PxArticulationReducedCoordinate` has incorrect size"); +static_assert(sizeof(physx::PxArticulationJointReducedCoordinate) == sizeof(physx_PxArticulationJointReducedCoordinate_Pod), "POD wrapper for `physx::PxArticulationJointReducedCoordinate` has incorrect size"); +static_assert(sizeof(physx::PxShape) == sizeof(physx_PxShape_Pod), "POD wrapper for `physx::PxShape` has incorrect size"); +static_assert(sizeof(physx::PxRigidActor) == sizeof(physx_PxRigidActor_Pod), "POD wrapper for `physx::PxRigidActor` has incorrect size"); +static_assert(sizeof(physx::PxNodeIndex) == sizeof(physx_PxNodeIndex_Pod), "POD wrapper for `physx::PxNodeIndex` has incorrect size"); +static_assert(sizeof(physx::PxRigidBody) == sizeof(physx_PxRigidBody_Pod), "POD wrapper for `physx::PxRigidBody` has incorrect size"); +static_assert(sizeof(physx::PxArticulationLink) == sizeof(physx_PxArticulationLink_Pod), "POD wrapper for `physx::PxArticulationLink` has incorrect size"); +static_assert(sizeof(physx::PxConeLimitedConstraint) == sizeof(physx_PxConeLimitedConstraint_Pod), "POD wrapper for `physx::PxConeLimitedConstraint` has incorrect size"); +static_assert(sizeof(physx::PxConeLimitParams) == sizeof(physx_PxConeLimitParams_Pod), "POD wrapper for `physx::PxConeLimitParams` has incorrect size"); +static_assert(sizeof(physx::PxConstraintShaderTable) == sizeof(physx_PxConstraintShaderTable_Pod), "POD wrapper for `physx::PxConstraintShaderTable` has incorrect size"); +static_assert(sizeof(physx::PxConstraint) == sizeof(physx_PxConstraint_Pod), "POD wrapper for `physx::PxConstraint` has incorrect size"); +static_assert(sizeof(physx::PxMassModificationProps) == sizeof(physx_PxMassModificationProps_Pod), "POD wrapper for `physx::PxMassModificationProps` has incorrect size"); +static_assert(sizeof(physx::PxContactPatch) == sizeof(physx_PxContactPatch_Pod), "POD wrapper for `physx::PxContactPatch` has incorrect size"); +static_assert(sizeof(physx::PxContact) == sizeof(physx_PxContact_Pod), "POD wrapper for `physx::PxContact` has incorrect size"); +static_assert(sizeof(physx::PxExtendedContact) == sizeof(physx_PxExtendedContact_Pod), "POD wrapper for `physx::PxExtendedContact` has incorrect size"); +static_assert(sizeof(physx::PxModifiableContact) == sizeof(physx_PxModifiableContact_Pod), "POD wrapper for `physx::PxModifiableContact` has incorrect size"); +static_assert(sizeof(physx::PxContactStreamIterator) == sizeof(physx_PxContactStreamIterator_Pod), "POD wrapper for `physx::PxContactStreamIterator` has incorrect size"); +static_assert(sizeof(physx::PxGpuContactPair) == sizeof(physx_PxGpuContactPair_Pod), "POD wrapper for `physx::PxGpuContactPair` has incorrect size"); +static_assert(sizeof(physx::PxContactSet) == sizeof(physx_PxContactSet_Pod), "POD wrapper for `physx::PxContactSet` has incorrect size"); +static_assert(sizeof(physx::PxContactModifyPair) == sizeof(physx_PxContactModifyPair_Pod), "POD wrapper for `physx::PxContactModifyPair` has incorrect size"); +static_assert(sizeof(physx::PxContactModifyCallback) == sizeof(physx_PxContactModifyCallback_Pod), "POD wrapper for `physx::PxContactModifyCallback` has incorrect size"); +static_assert(sizeof(physx::PxCCDContactModifyCallback) == sizeof(physx_PxCCDContactModifyCallback_Pod), "POD wrapper for `physx::PxCCDContactModifyCallback` has incorrect size"); +static_assert(sizeof(physx::PxDeletionListener) == sizeof(physx_PxDeletionListener_Pod), "POD wrapper for `physx::PxDeletionListener` has incorrect size"); +static_assert(sizeof(physx::PxBaseMaterial) == sizeof(physx_PxBaseMaterial_Pod), "POD wrapper for `physx::PxBaseMaterial` has incorrect size"); +static_assert(sizeof(physx::PxFEMMaterial) == sizeof(physx_PxFEMMaterial_Pod), "POD wrapper for `physx::PxFEMMaterial` has incorrect size"); +static_assert(sizeof(physx::PxFilterData) == sizeof(physx_PxFilterData_Pod), "POD wrapper for `physx::PxFilterData` has incorrect size"); +static_assert(sizeof(physx::PxSimulationFilterCallback) == sizeof(physx_PxSimulationFilterCallback_Pod), "POD wrapper for `physx::PxSimulationFilterCallback` has incorrect size"); +static_assert(sizeof(physx::PxParticleRigidFilterPair) == sizeof(physx_PxParticleRigidFilterPair_Pod), "POD wrapper for `physx::PxParticleRigidFilterPair` has incorrect size"); +static_assert(sizeof(physx::PxLockedData) == sizeof(physx_PxLockedData_Pod), "POD wrapper for `physx::PxLockedData` has incorrect size"); +static_assert(sizeof(physx::PxMaterial) == sizeof(physx_PxMaterial_Pod), "POD wrapper for `physx::PxMaterial` has incorrect size"); +static_assert(sizeof(physx::PxGpuParticleBufferIndexPair) == sizeof(physx_PxGpuParticleBufferIndexPair_Pod), "POD wrapper for `physx::PxGpuParticleBufferIndexPair` has incorrect size"); +static_assert(sizeof(physx::PxParticleVolume) == sizeof(physx_PxParticleVolume_Pod), "POD wrapper for `physx::PxParticleVolume` has incorrect size"); +static_assert(sizeof(physx::PxDiffuseParticleParams) == sizeof(physx_PxDiffuseParticleParams_Pod), "POD wrapper for `physx::PxDiffuseParticleParams` has incorrect size"); +static_assert(sizeof(physx::PxParticleSpring) == sizeof(physx_PxParticleSpring_Pod), "POD wrapper for `physx::PxParticleSpring` has incorrect size"); +static_assert(sizeof(physx::PxParticleMaterial) == sizeof(physx_PxParticleMaterial_Pod), "POD wrapper for `physx::PxParticleMaterial` has incorrect size"); +static_assert(sizeof(physx::PxPhysics) == sizeof(physx_PxPhysics_Pod), "POD wrapper for `physx::PxPhysics` has incorrect size"); +static_assert(sizeof(physx::PxActorShape) == sizeof(physx_PxActorShape_Pod), "POD wrapper for `physx::PxActorShape` has incorrect size"); +static_assert(sizeof(physx::PxRaycastHit) == sizeof(physx_PxRaycastHit_Pod), "POD wrapper for `physx::PxRaycastHit` has incorrect size"); +static_assert(sizeof(physx::PxOverlapHit) == sizeof(physx_PxOverlapHit_Pod), "POD wrapper for `physx::PxOverlapHit` has incorrect size"); +static_assert(sizeof(physx::PxSweepHit) == sizeof(physx_PxSweepHit_Pod), "POD wrapper for `physx::PxSweepHit` has incorrect size"); +static_assert(sizeof(physx::PxRaycastCallback) == sizeof(physx_PxRaycastCallback_Pod), "POD wrapper for `physx::PxRaycastCallback` has incorrect size"); +static_assert(sizeof(physx::PxOverlapCallback) == sizeof(physx_PxOverlapCallback_Pod), "POD wrapper for `physx::PxOverlapCallback` has incorrect size"); +static_assert(sizeof(physx::PxSweepCallback) == sizeof(physx_PxSweepCallback_Pod), "POD wrapper for `physx::PxSweepCallback` has incorrect size"); +static_assert(sizeof(physx::PxRaycastBuffer) == sizeof(physx_PxRaycastBuffer_Pod), "POD wrapper for `physx::PxRaycastBuffer` has incorrect size"); +static_assert(sizeof(physx::PxOverlapBuffer) == sizeof(physx_PxOverlapBuffer_Pod), "POD wrapper for `physx::PxOverlapBuffer` has incorrect size"); +static_assert(sizeof(physx::PxSweepBuffer) == sizeof(physx_PxSweepBuffer_Pod), "POD wrapper for `physx::PxSweepBuffer` has incorrect size"); +static_assert(sizeof(physx::PxQueryCache) == sizeof(physx_PxQueryCache_Pod), "POD wrapper for `physx::PxQueryCache` has incorrect size"); +static_assert(sizeof(physx::PxQueryFilterData) == sizeof(physx_PxQueryFilterData_Pod), "POD wrapper for `physx::PxQueryFilterData` has incorrect size"); +static_assert(sizeof(physx::PxQueryFilterCallback) == sizeof(physx_PxQueryFilterCallback_Pod), "POD wrapper for `physx::PxQueryFilterCallback` has incorrect size"); +static_assert(sizeof(physx::PxRigidDynamic) == sizeof(physx_PxRigidDynamic_Pod), "POD wrapper for `physx::PxRigidDynamic` has incorrect size"); +static_assert(sizeof(physx::PxRigidStatic) == sizeof(physx_PxRigidStatic_Pod), "POD wrapper for `physx::PxRigidStatic` has incorrect size"); +static_assert(sizeof(physx::PxSceneQueryDesc) == sizeof(physx_PxSceneQueryDesc_Pod), "POD wrapper for `physx::PxSceneQueryDesc` has incorrect size"); +static_assert(sizeof(physx::PxSceneQuerySystemBase) == sizeof(physx_PxSceneQuerySystemBase_Pod), "POD wrapper for `physx::PxSceneQuerySystemBase` has incorrect size"); +static_assert(sizeof(physx::PxSceneSQSystem) == sizeof(physx_PxSceneSQSystem_Pod), "POD wrapper for `physx::PxSceneSQSystem` has incorrect size"); +static_assert(sizeof(physx::PxSceneQuerySystem) == sizeof(physx_PxSceneQuerySystem_Pod), "POD wrapper for `physx::PxSceneQuerySystem` has incorrect size"); +static_assert(sizeof(physx::PxBroadPhaseRegion) == sizeof(physx_PxBroadPhaseRegion_Pod), "POD wrapper for `physx::PxBroadPhaseRegion` has incorrect size"); +static_assert(sizeof(physx::PxBroadPhaseRegionInfo) == sizeof(physx_PxBroadPhaseRegionInfo_Pod), "POD wrapper for `physx::PxBroadPhaseRegionInfo` has incorrect size"); +static_assert(sizeof(physx::PxBroadPhaseCaps) == sizeof(physx_PxBroadPhaseCaps_Pod), "POD wrapper for `physx::PxBroadPhaseCaps` has incorrect size"); +static_assert(sizeof(physx::PxBroadPhaseDesc) == sizeof(physx_PxBroadPhaseDesc_Pod), "POD wrapper for `physx::PxBroadPhaseDesc` has incorrect size"); +static_assert(sizeof(physx::PxBroadPhaseUpdateData) == sizeof(physx_PxBroadPhaseUpdateData_Pod), "POD wrapper for `physx::PxBroadPhaseUpdateData` has incorrect size"); +static_assert(sizeof(physx::PxBroadPhasePair) == sizeof(physx_PxBroadPhasePair_Pod), "POD wrapper for `physx::PxBroadPhasePair` has incorrect size"); +static_assert(sizeof(physx::PxBroadPhaseResults) == sizeof(physx_PxBroadPhaseResults_Pod), "POD wrapper for `physx::PxBroadPhaseResults` has incorrect size"); +static_assert(sizeof(physx::PxBroadPhaseRegions) == sizeof(physx_PxBroadPhaseRegions_Pod), "POD wrapper for `physx::PxBroadPhaseRegions` has incorrect size"); +static_assert(sizeof(physx::PxBroadPhase) == sizeof(physx_PxBroadPhase_Pod), "POD wrapper for `physx::PxBroadPhase` has incorrect size"); +static_assert(sizeof(physx::PxAABBManager) == sizeof(physx_PxAABBManager_Pod), "POD wrapper for `physx::PxAABBManager` has incorrect size"); +static_assert(sizeof(physx::PxSceneLimits) == sizeof(physx_PxSceneLimits_Pod), "POD wrapper for `physx::PxSceneLimits` has incorrect size"); +static_assert(sizeof(physx::PxgDynamicsMemoryConfig) == sizeof(physx_PxgDynamicsMemoryConfig_Pod), "POD wrapper for `physx::PxgDynamicsMemoryConfig` has incorrect size"); +static_assert(sizeof(physx::PxSceneDesc) == sizeof(physx_PxSceneDesc_Pod), "POD wrapper for `physx::PxSceneDesc` has incorrect size"); +static_assert(sizeof(physx::PxSimulationStatistics) == sizeof(physx_PxSimulationStatistics_Pod), "POD wrapper for `physx::PxSimulationStatistics` has incorrect size"); +static_assert(sizeof(physx::PxGpuBodyData) == sizeof(physx_PxGpuBodyData_Pod), "POD wrapper for `physx::PxGpuBodyData` has incorrect size"); +static_assert(sizeof(physx::PxGpuActorPair) == sizeof(physx_PxGpuActorPair_Pod), "POD wrapper for `physx::PxGpuActorPair` has incorrect size"); +static_assert(sizeof(physx::PxIndexDataPair) == sizeof(physx_PxIndexDataPair_Pod), "POD wrapper for `physx::PxIndexDataPair` has incorrect size"); +static_assert(sizeof(physx::PxPvdSceneClient) == sizeof(physx_PxPvdSceneClient_Pod), "POD wrapper for `physx::PxPvdSceneClient` has incorrect size"); +static_assert(sizeof(physx::PxDominanceGroupPair) == sizeof(physx_PxDominanceGroupPair_Pod), "POD wrapper for `physx::PxDominanceGroupPair` has incorrect size"); +static_assert(sizeof(physx::PxBroadPhaseCallback) == sizeof(physx_PxBroadPhaseCallback_Pod), "POD wrapper for `physx::PxBroadPhaseCallback` has incorrect size"); +static_assert(sizeof(physx::PxScene) == sizeof(physx_PxScene_Pod), "POD wrapper for `physx::PxScene` has incorrect size"); +static_assert(sizeof(physx::PxSceneReadLock) == sizeof(physx_PxSceneReadLock_Pod), "POD wrapper for `physx::PxSceneReadLock` has incorrect size"); +static_assert(sizeof(physx::PxSceneWriteLock) == sizeof(physx_PxSceneWriteLock_Pod), "POD wrapper for `physx::PxSceneWriteLock` has incorrect size"); +static_assert(sizeof(physx::PxContactPairExtraDataItem) == sizeof(physx_PxContactPairExtraDataItem_Pod), "POD wrapper for `physx::PxContactPairExtraDataItem` has incorrect size"); +static_assert(sizeof(physx::PxContactPairVelocity) == sizeof(physx_PxContactPairVelocity_Pod), "POD wrapper for `physx::PxContactPairVelocity` has incorrect size"); +static_assert(sizeof(physx::PxContactPairPose) == sizeof(physx_PxContactPairPose_Pod), "POD wrapper for `physx::PxContactPairPose` has incorrect size"); +static_assert(sizeof(physx::PxContactPairIndex) == sizeof(physx_PxContactPairIndex_Pod), "POD wrapper for `physx::PxContactPairIndex` has incorrect size"); +static_assert(sizeof(physx::PxContactPairExtraDataIterator) == sizeof(physx_PxContactPairExtraDataIterator_Pod), "POD wrapper for `physx::PxContactPairExtraDataIterator` has incorrect size"); +static_assert(sizeof(physx::PxContactPairHeader) == sizeof(physx_PxContactPairHeader_Pod), "POD wrapper for `physx::PxContactPairHeader` has incorrect size"); +static_assert(sizeof(physx::PxContactPairPoint) == sizeof(physx_PxContactPairPoint_Pod), "POD wrapper for `physx::PxContactPairPoint` has incorrect size"); +static_assert(sizeof(physx::PxContactPair) == sizeof(physx_PxContactPair_Pod), "POD wrapper for `physx::PxContactPair` has incorrect size"); +static_assert(sizeof(physx::PxTriggerPair) == sizeof(physx_PxTriggerPair_Pod), "POD wrapper for `physx::PxTriggerPair` has incorrect size"); +static_assert(sizeof(physx::PxConstraintInfo) == sizeof(physx_PxConstraintInfo_Pod), "POD wrapper for `physx::PxConstraintInfo` has incorrect size"); +static_assert(sizeof(physx::PxSimulationEventCallback) == sizeof(physx_PxSimulationEventCallback_Pod), "POD wrapper for `physx::PxSimulationEventCallback` has incorrect size"); +static_assert(sizeof(physx::PxFEMParameters) == sizeof(physx_PxFEMParameters_Pod), "POD wrapper for `physx::PxFEMParameters` has incorrect size"); +static_assert(sizeof(physx::PxPruningStructure) == sizeof(physx_PxPruningStructure_Pod), "POD wrapper for `physx::PxPruningStructure` has incorrect size"); +static_assert(sizeof(physx::PxExtendedVec3) == sizeof(physx_PxExtendedVec3_Pod), "POD wrapper for `physx::PxExtendedVec3` has incorrect size"); +static_assert(sizeof(physx::PxObstacle) == sizeof(physx_PxObstacle_Pod), "POD wrapper for `physx::PxObstacle` has incorrect size"); +static_assert(sizeof(physx::PxBoxObstacle) == sizeof(physx_PxBoxObstacle_Pod), "POD wrapper for `physx::PxBoxObstacle` has incorrect size"); +static_assert(sizeof(physx::PxCapsuleObstacle) == sizeof(physx_PxCapsuleObstacle_Pod), "POD wrapper for `physx::PxCapsuleObstacle` has incorrect size"); +static_assert(sizeof(physx::PxObstacleContext) == sizeof(physx_PxObstacleContext_Pod), "POD wrapper for `physx::PxObstacleContext` has incorrect size"); +static_assert(sizeof(physx::PxControllerState) == sizeof(physx_PxControllerState_Pod), "POD wrapper for `physx::PxControllerState` has incorrect size"); +static_assert(sizeof(physx::PxControllerStats) == sizeof(physx_PxControllerStats_Pod), "POD wrapper for `physx::PxControllerStats` has incorrect size"); +static_assert(sizeof(physx::PxControllerHit) == sizeof(physx_PxControllerHit_Pod), "POD wrapper for `physx::PxControllerHit` has incorrect size"); +static_assert(sizeof(physx::PxControllerShapeHit) == sizeof(physx_PxControllerShapeHit_Pod), "POD wrapper for `physx::PxControllerShapeHit` has incorrect size"); +static_assert(sizeof(physx::PxControllersHit) == sizeof(physx_PxControllersHit_Pod), "POD wrapper for `physx::PxControllersHit` has incorrect size"); +static_assert(sizeof(physx::PxControllerObstacleHit) == sizeof(physx_PxControllerObstacleHit_Pod), "POD wrapper for `physx::PxControllerObstacleHit` has incorrect size"); +static_assert(sizeof(physx::PxUserControllerHitReport) == sizeof(physx_PxUserControllerHitReport_Pod), "POD wrapper for `physx::PxUserControllerHitReport` has incorrect size"); +static_assert(sizeof(physx::PxControllerFilterCallback) == sizeof(physx_PxControllerFilterCallback_Pod), "POD wrapper for `physx::PxControllerFilterCallback` has incorrect size"); +static_assert(sizeof(physx::PxControllerFilters) == sizeof(physx_PxControllerFilters_Pod), "POD wrapper for `physx::PxControllerFilters` has incorrect size"); +static_assert(sizeof(physx::PxControllerDesc) == sizeof(physx_PxControllerDesc_Pod), "POD wrapper for `physx::PxControllerDesc` has incorrect size"); +static_assert(sizeof(physx::PxController) == sizeof(physx_PxController_Pod), "POD wrapper for `physx::PxController` has incorrect size"); +static_assert(sizeof(physx::PxBoxControllerDesc) == sizeof(physx_PxBoxControllerDesc_Pod), "POD wrapper for `physx::PxBoxControllerDesc` has incorrect size"); +static_assert(sizeof(physx::PxBoxController) == sizeof(physx_PxBoxController_Pod), "POD wrapper for `physx::PxBoxController` has incorrect size"); +static_assert(sizeof(physx::PxCapsuleControllerDesc) == sizeof(physx_PxCapsuleControllerDesc_Pod), "POD wrapper for `physx::PxCapsuleControllerDesc` has incorrect size"); +static_assert(sizeof(physx::PxCapsuleController) == sizeof(physx_PxCapsuleController_Pod), "POD wrapper for `physx::PxCapsuleController` has incorrect size"); +static_assert(sizeof(physx::PxControllerBehaviorCallback) == sizeof(physx_PxControllerBehaviorCallback_Pod), "POD wrapper for `physx::PxControllerBehaviorCallback` has incorrect size"); +static_assert(sizeof(physx::PxControllerManager) == sizeof(physx_PxControllerManager_Pod), "POD wrapper for `physx::PxControllerManager` has incorrect size"); +static_assert(sizeof(physx::PxDim3) == sizeof(physx_PxDim3_Pod), "POD wrapper for `physx::PxDim3` has incorrect size"); +static_assert(sizeof(physx::PxSDFDesc) == sizeof(physx_PxSDFDesc_Pod), "POD wrapper for `physx::PxSDFDesc` has incorrect size"); +static_assert(sizeof(physx::PxConvexMeshDesc) == sizeof(physx_PxConvexMeshDesc_Pod), "POD wrapper for `physx::PxConvexMeshDesc` has incorrect size"); +static_assert(sizeof(physx::PxTriangleMeshDesc) == sizeof(physx_PxTriangleMeshDesc_Pod), "POD wrapper for `physx::PxTriangleMeshDesc` has incorrect size"); +static_assert(sizeof(physx::PxTetrahedronMeshDesc) == sizeof(physx_PxTetrahedronMeshDesc_Pod), "POD wrapper for `physx::PxTetrahedronMeshDesc` has incorrect size"); +static_assert(sizeof(physx::PxSoftBodySimulationDataDesc) == sizeof(physx_PxSoftBodySimulationDataDesc_Pod), "POD wrapper for `physx::PxSoftBodySimulationDataDesc` has incorrect size"); +static_assert(sizeof(physx::PxBVH34MidphaseDesc) == sizeof(physx_PxBVH34MidphaseDesc_Pod), "POD wrapper for `physx::PxBVH34MidphaseDesc` has incorrect size"); +static_assert(sizeof(physx::PxMidphaseDesc) == sizeof(physx_PxMidphaseDesc_Pod), "POD wrapper for `physx::PxMidphaseDesc` has incorrect size"); +static_assert(sizeof(physx::PxBVHDesc) == sizeof(physx_PxBVHDesc_Pod), "POD wrapper for `physx::PxBVHDesc` has incorrect size"); +static_assert(sizeof(physx::PxCookingParams) == sizeof(physx_PxCookingParams_Pod), "POD wrapper for `physx::PxCookingParams` has incorrect size"); +static_assert(sizeof(physx::PxDefaultMemoryOutputStream) == sizeof(physx_PxDefaultMemoryOutputStream_Pod), "POD wrapper for `physx::PxDefaultMemoryOutputStream` has incorrect size"); +static_assert(sizeof(physx::PxDefaultMemoryInputData) == sizeof(physx_PxDefaultMemoryInputData_Pod), "POD wrapper for `physx::PxDefaultMemoryInputData` has incorrect size"); +static_assert(sizeof(physx::PxDefaultFileOutputStream) == sizeof(physx_PxDefaultFileOutputStream_Pod), "POD wrapper for `physx::PxDefaultFileOutputStream` has incorrect size"); +static_assert(sizeof(physx::PxDefaultFileInputData) == sizeof(physx_PxDefaultFileInputData_Pod), "POD wrapper for `physx::PxDefaultFileInputData` has incorrect size"); +static_assert(sizeof(physx::PxDefaultAllocator) == sizeof(physx_PxDefaultAllocator_Pod), "POD wrapper for `physx::PxDefaultAllocator` has incorrect size"); +static_assert(sizeof(physx::PxJoint) == sizeof(physx_PxJoint_Pod), "POD wrapper for `physx::PxJoint` has incorrect size"); +static_assert(sizeof(physx::PxSpring) == sizeof(physx_PxSpring_Pod), "POD wrapper for `physx::PxSpring` has incorrect size"); +static_assert(sizeof(physx::PxDistanceJoint) == sizeof(physx_PxDistanceJoint_Pod), "POD wrapper for `physx::PxDistanceJoint` has incorrect size"); +static_assert(sizeof(physx::PxJacobianRow) == sizeof(physx_PxJacobianRow_Pod), "POD wrapper for `physx::PxJacobianRow` has incorrect size"); +static_assert(sizeof(physx::PxContactJoint) == sizeof(physx_PxContactJoint_Pod), "POD wrapper for `physx::PxContactJoint` has incorrect size"); +static_assert(sizeof(physx::PxFixedJoint) == sizeof(physx_PxFixedJoint_Pod), "POD wrapper for `physx::PxFixedJoint` has incorrect size"); +static_assert(sizeof(physx::PxJointLimitParameters) == sizeof(physx_PxJointLimitParameters_Pod), "POD wrapper for `physx::PxJointLimitParameters` has incorrect size"); +static_assert(sizeof(physx::PxJointLinearLimit) == sizeof(physx_PxJointLinearLimit_Pod), "POD wrapper for `physx::PxJointLinearLimit` has incorrect size"); +static_assert(sizeof(physx::PxJointLinearLimitPair) == sizeof(physx_PxJointLinearLimitPair_Pod), "POD wrapper for `physx::PxJointLinearLimitPair` has incorrect size"); +static_assert(sizeof(physx::PxJointAngularLimitPair) == sizeof(physx_PxJointAngularLimitPair_Pod), "POD wrapper for `physx::PxJointAngularLimitPair` has incorrect size"); +static_assert(sizeof(physx::PxJointLimitCone) == sizeof(physx_PxJointLimitCone_Pod), "POD wrapper for `physx::PxJointLimitCone` has incorrect size"); +static_assert(sizeof(physx::PxJointLimitPyramid) == sizeof(physx_PxJointLimitPyramid_Pod), "POD wrapper for `physx::PxJointLimitPyramid` has incorrect size"); +static_assert(sizeof(physx::PxPrismaticJoint) == sizeof(physx_PxPrismaticJoint_Pod), "POD wrapper for `physx::PxPrismaticJoint` has incorrect size"); +static_assert(sizeof(physx::PxRevoluteJoint) == sizeof(physx_PxRevoluteJoint_Pod), "POD wrapper for `physx::PxRevoluteJoint` has incorrect size"); +static_assert(sizeof(physx::PxSphericalJoint) == sizeof(physx_PxSphericalJoint_Pod), "POD wrapper for `physx::PxSphericalJoint` has incorrect size"); +static_assert(sizeof(physx::PxD6JointDrive) == sizeof(physx_PxD6JointDrive_Pod), "POD wrapper for `physx::PxD6JointDrive` has incorrect size"); +static_assert(sizeof(physx::PxD6Joint) == sizeof(physx_PxD6Joint_Pod), "POD wrapper for `physx::PxD6Joint` has incorrect size"); +static_assert(sizeof(physx::PxGearJoint) == sizeof(physx_PxGearJoint_Pod), "POD wrapper for `physx::PxGearJoint` has incorrect size"); +static_assert(sizeof(physx::PxRackAndPinionJoint) == sizeof(physx_PxRackAndPinionJoint_Pod), "POD wrapper for `physx::PxRackAndPinionJoint` has incorrect size"); +static_assert(sizeof(physx::PxGroupsMask) == sizeof(physx_PxGroupsMask_Pod), "POD wrapper for `physx::PxGroupsMask` has incorrect size"); +static_assert(sizeof(physx::PxDefaultErrorCallback) == sizeof(physx_PxDefaultErrorCallback_Pod), "POD wrapper for `physx::PxDefaultErrorCallback` has incorrect size"); +static_assert(sizeof(physx::PxRigidActorExt) == sizeof(physx_PxRigidActorExt_Pod), "POD wrapper for `physx::PxRigidActorExt` has incorrect size"); +static_assert(sizeof(physx::PxMassProperties) == sizeof(physx_PxMassProperties_Pod), "POD wrapper for `physx::PxMassProperties` has incorrect size"); +static_assert(sizeof(physx::PxRigidBodyExt) == sizeof(physx_PxRigidBodyExt_Pod), "POD wrapper for `physx::PxRigidBodyExt` has incorrect size"); +static_assert(sizeof(physx::PxShapeExt) == sizeof(physx_PxShapeExt_Pod), "POD wrapper for `physx::PxShapeExt` has incorrect size"); +static_assert(sizeof(physx::PxMeshOverlapUtil) == sizeof(physx_PxMeshOverlapUtil_Pod), "POD wrapper for `physx::PxMeshOverlapUtil` has incorrect size"); +static_assert(sizeof(physx::PxXmlMiscParameter) == sizeof(physx_PxXmlMiscParameter_Pod), "POD wrapper for `physx::PxXmlMiscParameter` has incorrect size"); +static_assert(sizeof(physx::PxSerialization) == sizeof(physx_PxSerialization_Pod), "POD wrapper for `physx::PxSerialization` has incorrect size"); +static_assert(sizeof(physx::PxDefaultCpuDispatcher) == sizeof(physx_PxDefaultCpuDispatcher_Pod), "POD wrapper for `physx::PxDefaultCpuDispatcher` has incorrect size"); +static_assert(sizeof(physx::PxStringTableExt) == sizeof(physx_PxStringTableExt_Pod), "POD wrapper for `physx::PxStringTableExt` has incorrect size"); +static_assert(sizeof(physx::PxBroadPhaseExt) == sizeof(physx_PxBroadPhaseExt_Pod), "POD wrapper for `physx::PxBroadPhaseExt` has incorrect size"); +static_assert(sizeof(physx::PxSceneQueryExt) == sizeof(physx_PxSceneQueryExt_Pod), "POD wrapper for `physx::PxSceneQueryExt` has incorrect size"); +static_assert(sizeof(physx::PxBatchQueryExt) == sizeof(physx_PxBatchQueryExt_Pod), "POD wrapper for `physx::PxBatchQueryExt` has incorrect size"); +static_assert(sizeof(physx::PxCustomSceneQuerySystem) == sizeof(physx_PxCustomSceneQuerySystem_Pod), "POD wrapper for `physx::PxCustomSceneQuerySystem` has incorrect size"); +static_assert(sizeof(physx::PxCustomSceneQuerySystemAdapter) == sizeof(physx_PxCustomSceneQuerySystemAdapter_Pod), "POD wrapper for `physx::PxCustomSceneQuerySystemAdapter` has incorrect size"); +static_assert(sizeof(physx::PxSamplingExt) == sizeof(physx_PxSamplingExt_Pod), "POD wrapper for `physx::PxSamplingExt` has incorrect size"); +static_assert(sizeof(physx::PxPoissonSampler) == sizeof(physx_PxPoissonSampler_Pod), "POD wrapper for `physx::PxPoissonSampler` has incorrect size"); +static_assert(sizeof(physx::PxTriangleMeshPoissonSampler) == sizeof(physx_PxTriangleMeshPoissonSampler_Pod), "POD wrapper for `physx::PxTriangleMeshPoissonSampler` has incorrect size"); +static_assert(sizeof(physx::PxTetrahedronMeshExt) == sizeof(physx_PxTetrahedronMeshExt_Pod), "POD wrapper for `physx::PxTetrahedronMeshExt` has incorrect size"); +static_assert(sizeof(physx::PxRepXObject) == sizeof(physx_PxRepXObject_Pod), "POD wrapper for `physx::PxRepXObject` has incorrect size"); +static_assert(sizeof(physx::PxRepXInstantiationArgs) == sizeof(physx_PxRepXInstantiationArgs_Pod), "POD wrapper for `physx::PxRepXInstantiationArgs` has incorrect size"); +static_assert(sizeof(physx::PxRepXSerializer) == sizeof(physx_PxRepXSerializer_Pod), "POD wrapper for `physx::PxRepXSerializer` has incorrect size"); +static_assert(sizeof(physx::PxPvd) == sizeof(physx_PxPvd_Pod), "POD wrapper for `physx::PxPvd` has incorrect size"); +static_assert(sizeof(physx::PxPvdTransport) == sizeof(physx_PxPvdTransport_Pod), "POD wrapper for `physx::PxPvdTransport` has incorrect size"); + +extern "C" { + void PxAllocatorCallback_delete(physx_PxAllocatorCallback_Pod* self__pod) { + physx::PxAllocatorCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void* PxAllocatorCallback_allocate_mut(physx_PxAllocatorCallback_Pod* self__pod, size_t size_pod, char const* typeName, char const* filename, int32_t line) { + physx::PxAllocatorCallback* self_ = reinterpret_cast(self__pod); + size_t size; + memcpy(&size, &size_pod, sizeof(size)); + void* return_val = self_->allocate(size, typeName, filename, line); + return return_val; + } + + void PxAllocatorCallback_deallocate_mut(physx_PxAllocatorCallback_Pod* self__pod, void* ptr) { + physx::PxAllocatorCallback* self_ = reinterpret_cast(self__pod); + self_->deallocate(ptr); + } + + void PxAssertHandler_delete(physx_PxAssertHandler_Pod* self__pod) { + physx::PxAssertHandler* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxAssertHandler_Pod* phys_PxGetAssertHandler() { + physx::PxAssertHandler& return_val = PxGetAssertHandler(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void phys_PxSetAssertHandler(physx_PxAssertHandler_Pod* handler_pod) { + physx::PxAssertHandler& handler = reinterpret_cast(*handler_pod); + PxSetAssertHandler(handler); + } + + void PxFoundation_release_mut(physx_PxFoundation_Pod* self__pod) { + physx::PxFoundation* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxErrorCallback_Pod* PxFoundation_getErrorCallback_mut(physx_PxFoundation_Pod* self__pod) { + physx::PxFoundation* self_ = reinterpret_cast(self__pod); + physx::PxErrorCallback& return_val = self_->getErrorCallback(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void PxFoundation_setErrorLevel_mut(physx_PxFoundation_Pod* self__pod, uint32_t mask) { + physx::PxFoundation* self_ = reinterpret_cast(self__pod); + self_->setErrorLevel(mask); + } + + uint32_t PxFoundation_getErrorLevel(physx_PxFoundation_Pod const* self__pod) { + physx::PxFoundation const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getErrorLevel(); + return return_val; + } + + physx_PxAllocatorCallback_Pod* PxFoundation_getAllocatorCallback_mut(physx_PxFoundation_Pod* self__pod) { + physx::PxFoundation* self_ = reinterpret_cast(self__pod); + physx::PxAllocatorCallback& return_val = self_->getAllocatorCallback(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + bool PxFoundation_getReportAllocationNames(physx_PxFoundation_Pod const* self__pod) { + physx::PxFoundation const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->getReportAllocationNames(); + return return_val; + } + + void PxFoundation_setReportAllocationNames_mut(physx_PxFoundation_Pod* self__pod, bool value) { + physx::PxFoundation* self_ = reinterpret_cast(self__pod); + self_->setReportAllocationNames(value); + } + + void PxFoundation_registerAllocationListener_mut(physx_PxFoundation_Pod* self__pod, physx_PxAllocationListener_Pod* listener_pod) { + physx::PxFoundation* self_ = reinterpret_cast(self__pod); + physx::PxAllocationListener& listener = reinterpret_cast(*listener_pod); + self_->registerAllocationListener(listener); + } + + void PxFoundation_deregisterAllocationListener_mut(physx_PxFoundation_Pod* self__pod, physx_PxAllocationListener_Pod* listener_pod) { + physx::PxFoundation* self_ = reinterpret_cast(self__pod); + physx::PxAllocationListener& listener = reinterpret_cast(*listener_pod); + self_->deregisterAllocationListener(listener); + } + + void PxFoundation_registerErrorCallback_mut(physx_PxFoundation_Pod* self__pod, physx_PxErrorCallback_Pod* callback_pod) { + physx::PxFoundation* self_ = reinterpret_cast(self__pod); + physx::PxErrorCallback& callback = reinterpret_cast(*callback_pod); + self_->registerErrorCallback(callback); + } + + void PxFoundation_deregisterErrorCallback_mut(physx_PxFoundation_Pod* self__pod, physx_PxErrorCallback_Pod* callback_pod) { + physx::PxFoundation* self_ = reinterpret_cast(self__pod); + physx::PxErrorCallback& callback = reinterpret_cast(*callback_pod); + self_->deregisterErrorCallback(callback); + } + + physx_PxFoundation_Pod* phys_PxCreateFoundation(uint32_t version, physx_PxAllocatorCallback_Pod* allocator_pod, physx_PxErrorCallback_Pod* errorCallback_pod) { + physx::PxAllocatorCallback& allocator = reinterpret_cast(*allocator_pod); + physx::PxErrorCallback& errorCallback = reinterpret_cast(*errorCallback_pod); + physx::PxFoundation* return_val = PxCreateFoundation(version, allocator, errorCallback); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void phys_PxSetFoundationInstance(physx_PxFoundation_Pod* foundation_pod) { + physx::PxFoundation& foundation = reinterpret_cast(*foundation_pod); + PxSetFoundationInstance(foundation); + } + + physx_PxFoundation_Pod* phys_PxGetFoundation() { + physx::PxFoundation& return_val = PxGetFoundation(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxProfilerCallback_Pod* phys_PxGetProfilerCallback() { + physx::PxProfilerCallback* return_val = PxGetProfilerCallback(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void phys_PxSetProfilerCallback(physx_PxProfilerCallback_Pod* profiler_pod) { + physx::PxProfilerCallback* profiler = reinterpret_cast(profiler_pod); + PxSetProfilerCallback(profiler); + } + + physx_PxAllocatorCallback_Pod* phys_PxGetAllocatorCallback() { + physx::PxAllocatorCallback* return_val = PxGetAllocatorCallback(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxAllocatorCallback_Pod* phys_PxGetBroadcastAllocator() { + physx::PxAllocatorCallback* return_val = PxGetBroadcastAllocator(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxErrorCallback_Pod* phys_PxGetErrorCallback() { + physx::PxErrorCallback* return_val = PxGetErrorCallback(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxErrorCallback_Pod* phys_PxGetBroadcastError() { + physx::PxErrorCallback* return_val = PxGetBroadcastError(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t phys_PxGetWarnOnceTimeStamp() { + uint32_t return_val = PxGetWarnOnceTimeStamp(); + return return_val; + } + + void phys_PxDecFoundationRefCount() { + PxDecFoundationRefCount(); + } + + void phys_PxIncFoundationRefCount() { + PxIncFoundationRefCount(); + } + + physx_PxAllocator_Pod PxAllocator_new(char const* anon_param0) { + PxAllocator return_val(anon_param0); + physx_PxAllocator_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void* PxAllocator_allocate_mut(physx_PxAllocator_Pod* self__pod, size_t size_pod, char const* file, int32_t line) { + physx::PxAllocator* self_ = reinterpret_cast(self__pod); + size_t size; + memcpy(&size, &size_pod, sizeof(size)); + void* return_val = self_->allocate(size, file, line); + return return_val; + } + + void PxAllocator_deallocate_mut(physx_PxAllocator_Pod* self__pod, void* ptr) { + physx::PxAllocator* self_ = reinterpret_cast(self__pod); + self_->deallocate(ptr); + } + + physx_PxRawAllocator_Pod PxRawAllocator_new(char const* anon_param0) { + PxRawAllocator return_val(anon_param0); + physx_PxRawAllocator_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void* PxRawAllocator_allocate_mut(physx_PxRawAllocator_Pod* self__pod, size_t size_pod, char const* anon_param1, int32_t anon_param2) { + physx::PxRawAllocator* self_ = reinterpret_cast(self__pod); + size_t size; + memcpy(&size, &size_pod, sizeof(size)); + void* return_val = self_->allocate(size, anon_param1, anon_param2); + return return_val; + } + + void PxRawAllocator_deallocate_mut(physx_PxRawAllocator_Pod* self__pod, void* ptr) { + physx::PxRawAllocator* self_ = reinterpret_cast(self__pod); + self_->deallocate(ptr); + } + + void PxVirtualAllocatorCallback_delete(physx_PxVirtualAllocatorCallback_Pod* self__pod) { + physx::PxVirtualAllocatorCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void* PxVirtualAllocatorCallback_allocate_mut(physx_PxVirtualAllocatorCallback_Pod* self__pod, size_t size_pod, int32_t group, char const* file, int32_t line) { + physx::PxVirtualAllocatorCallback* self_ = reinterpret_cast(self__pod); + size_t size; + memcpy(&size, &size_pod, sizeof(size)); + void* return_val = self_->allocate(size, group, file, line); + return return_val; + } + + void PxVirtualAllocatorCallback_deallocate_mut(physx_PxVirtualAllocatorCallback_Pod* self__pod, void* ptr) { + physx::PxVirtualAllocatorCallback* self_ = reinterpret_cast(self__pod); + self_->deallocate(ptr); + } + + physx_PxVirtualAllocator_Pod PxVirtualAllocator_new(physx_PxVirtualAllocatorCallback_Pod* callback_pod, int32_t group) { + physx::PxVirtualAllocatorCallback* callback = reinterpret_cast(callback_pod); + PxVirtualAllocator return_val(callback, group); + physx_PxVirtualAllocator_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void* PxVirtualAllocator_allocate_mut(physx_PxVirtualAllocator_Pod* self__pod, size_t size_pod, char const* file, int32_t line) { + physx::PxVirtualAllocator* self_ = reinterpret_cast(self__pod); + size_t size; + memcpy(&size, &size_pod, sizeof(size)); + void* return_val = self_->allocate(size, file, line); + return return_val; + } + + void PxVirtualAllocator_deallocate_mut(physx_PxVirtualAllocator_Pod* self__pod, void* ptr) { + physx::PxVirtualAllocator* self_ = reinterpret_cast(self__pod); + self_->deallocate(ptr); + } + + physx_PxTempAllocatorChunk_Pod PxTempAllocatorChunk_new() { + PxTempAllocatorChunk return_val; + physx_PxTempAllocatorChunk_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTempAllocator_Pod PxTempAllocator_new(char const* anon_param0) { + PxTempAllocator return_val(anon_param0); + physx_PxTempAllocator_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void* PxTempAllocator_allocate_mut(physx_PxTempAllocator_Pod* self__pod, size_t size_pod, char const* file, int32_t line) { + physx::PxTempAllocator* self_ = reinterpret_cast(self__pod); + size_t size; + memcpy(&size, &size_pod, sizeof(size)); + void* return_val = self_->allocate(size, file, line); + return return_val; + } + + void PxTempAllocator_deallocate_mut(physx_PxTempAllocator_Pod* self__pod, void* ptr) { + physx::PxTempAllocator* self_ = reinterpret_cast(self__pod); + self_->deallocate(ptr); + } + + void* phys_PxMemZero(void* dest, uint32_t count) { + void* return_val = PxMemZero(dest, count); + return return_val; + } + + void* phys_PxMemSet(void* dest, int32_t c, uint32_t count) { + void* return_val = PxMemSet(dest, c, count); + return return_val; + } + + void* phys_PxMemCopy(void* dest, void const* src, uint32_t count) { + void* return_val = PxMemCopy(dest, src, count); + return return_val; + } + + void* phys_PxMemMove(void* dest, void const* src, uint32_t count) { + void* return_val = PxMemMove(dest, src, count); + return return_val; + } + + void phys_PxMarkSerializedMemory(void* ptr, uint32_t byteSize) { + PxMarkSerializedMemory(ptr, byteSize); + } + + void phys_PxMemoryBarrier() { + PxMemoryBarrier(); + } + + uint32_t phys_PxHighestSetBitUnsafe(uint32_t v) { + uint32_t return_val = PxHighestSetBitUnsafe(v); + return return_val; + } + + uint32_t phys_PxLowestSetBitUnsafe(uint32_t v) { + uint32_t return_val = PxLowestSetBitUnsafe(v); + return return_val; + } + + uint32_t phys_PxCountLeadingZeros(uint32_t v) { + uint32_t return_val = PxCountLeadingZeros(v); + return return_val; + } + + void phys_PxPrefetchLine(void const* ptr, uint32_t offset) { + PxPrefetchLine(ptr, offset); + } + + void phys_PxPrefetch(void const* ptr, uint32_t count) { + PxPrefetch(ptr, count); + } + + uint32_t phys_PxBitCount(uint32_t v) { + uint32_t return_val = PxBitCount(v); + return return_val; + } + + bool phys_PxIsPowerOfTwo(uint32_t x) { + bool return_val = PxIsPowerOfTwo(x); + return return_val; + } + + uint32_t phys_PxNextPowerOfTwo(uint32_t x) { + uint32_t return_val = PxNextPowerOfTwo(x); + return return_val; + } + + uint32_t phys_PxLowestSetBit(uint32_t x) { + uint32_t return_val = PxLowestSetBit(x); + return return_val; + } + + uint32_t phys_PxHighestSetBit(uint32_t x) { + uint32_t return_val = PxHighestSetBit(x); + return return_val; + } + + uint32_t phys_PxILog2(uint32_t num) { + uint32_t return_val = PxILog2(num); + return return_val; + } + + physx_PxVec3_Pod PxVec3_new() { + PxVec3 return_val; + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxVec3_new_1(int32_t anon_param0_pod) { + auto anon_param0 = static_cast(anon_param0_pod); + PxVec3 return_val(anon_param0); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxVec3_new_2(float a) { + PxVec3 return_val(a); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxVec3_new_3(float nx, float ny, float nz) { + PxVec3 return_val(nx, ny, nz); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxVec3_isZero(physx_PxVec3_Pod const* self__pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isZero(); + return return_val; + } + + bool PxVec3_isFinite(physx_PxVec3_Pod const* self__pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isFinite(); + return return_val; + } + + bool PxVec3_isNormalized(physx_PxVec3_Pod const* self__pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isNormalized(); + return return_val; + } + + float PxVec3_magnitudeSquared(physx_PxVec3_Pod const* self__pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->magnitudeSquared(); + return return_val; + } + + float PxVec3_magnitude(physx_PxVec3_Pod const* self__pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->magnitude(); + return return_val; + } + + float PxVec3_dot(physx_PxVec3_Pod const* self__pod, physx_PxVec3_Pod const* v_pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + float return_val = self_->dot(v); + return return_val; + } + + physx_PxVec3_Pod PxVec3_cross(physx_PxVec3_Pod const* self__pod, physx_PxVec3_Pod const* v_pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + physx::PxVec3 return_val = self_->cross(v); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxVec3_getNormalized(physx_PxVec3_Pod const* self__pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getNormalized(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxVec3_normalize_mut(physx_PxVec3_Pod* self__pod) { + physx::PxVec3* self_ = reinterpret_cast(self__pod); + float return_val = self_->normalize(); + return return_val; + } + + float PxVec3_normalizeSafe_mut(physx_PxVec3_Pod* self__pod) { + physx::PxVec3* self_ = reinterpret_cast(self__pod); + float return_val = self_->normalizeSafe(); + return return_val; + } + + float PxVec3_normalizeFast_mut(physx_PxVec3_Pod* self__pod) { + physx::PxVec3* self_ = reinterpret_cast(self__pod); + float return_val = self_->normalizeFast(); + return return_val; + } + + physx_PxVec3_Pod PxVec3_multiply(physx_PxVec3_Pod const* self__pod, physx_PxVec3_Pod const* a_pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& a = reinterpret_cast(*a_pod); + physx::PxVec3 return_val = self_->multiply(a); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxVec3_minimum(physx_PxVec3_Pod const* self__pod, physx_PxVec3_Pod const* v_pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + physx::PxVec3 return_val = self_->minimum(v); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxVec3_minElement(physx_PxVec3_Pod const* self__pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->minElement(); + return return_val; + } + + physx_PxVec3_Pod PxVec3_maximum(physx_PxVec3_Pod const* self__pod, physx_PxVec3_Pod const* v_pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + physx::PxVec3 return_val = self_->maximum(v); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxVec3_maxElement(physx_PxVec3_Pod const* self__pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->maxElement(); + return return_val; + } + + physx_PxVec3_Pod PxVec3_abs(physx_PxVec3_Pod const* self__pod) { + physx::PxVec3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->abs(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3Padded_Pod* PxVec3Padded_new_alloc() { + auto return_val = new physx::PxVec3Padded(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxVec3Padded_delete(physx_PxVec3Padded_Pod* self__pod) { + physx::PxVec3Padded* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxVec3Padded_Pod* PxVec3Padded_new_alloc_1(physx_PxVec3_Pod const* p_pod) { + physx::PxVec3 const& p = reinterpret_cast(*p_pod); + auto return_val = new physx::PxVec3Padded(p); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxVec3Padded_Pod* PxVec3Padded_new_alloc_2(float f) { + auto return_val = new physx::PxVec3Padded(f); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxQuat_Pod PxQuat_new() { + PxQuat return_val; + physx_PxQuat_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQuat_Pod PxQuat_new_1(int32_t anon_param0_pod) { + auto anon_param0 = static_cast(anon_param0_pod); + PxQuat return_val(anon_param0); + physx_PxQuat_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQuat_Pod PxQuat_new_2(float r) { + PxQuat return_val(r); + physx_PxQuat_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQuat_Pod PxQuat_new_3(float nx, float ny, float nz, float nw) { + PxQuat return_val(nx, ny, nz, nw); + physx_PxQuat_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQuat_Pod PxQuat_new_4(float angleRadians, physx_PxVec3_Pod const* unitAxis_pod) { + physx::PxVec3 const& unitAxis = reinterpret_cast(*unitAxis_pod); + PxQuat return_val(angleRadians, unitAxis); + physx_PxQuat_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQuat_Pod PxQuat_new_5(physx_PxMat33_Pod const* m_pod) { + physx::PxMat33 const& m = reinterpret_cast(*m_pod); + PxQuat return_val(m); + physx_PxQuat_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxQuat_isIdentity(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isIdentity(); + return return_val; + } + + bool PxQuat_isFinite(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isFinite(); + return return_val; + } + + bool PxQuat_isUnit(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isUnit(); + return return_val; + } + + bool PxQuat_isSane(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isSane(); + return return_val; + } + + void PxQuat_toRadiansAndUnitAxis(physx_PxQuat_Pod const* self__pod, float* angle_pod, physx_PxVec3_Pod* axis_pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + float& angle = *angle_pod; + physx::PxVec3& axis = reinterpret_cast(*axis_pod); + self_->toRadiansAndUnitAxis(angle, axis); + } + + float PxQuat_getAngle(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getAngle(); + return return_val; + } + + float PxQuat_getAngle_1(physx_PxQuat_Pod const* self__pod, physx_PxQuat_Pod const* q_pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + physx::PxQuat const& q = reinterpret_cast(*q_pod); + float return_val = self_->getAngle(q); + return return_val; + } + + float PxQuat_magnitudeSquared(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + float return_val = self_->magnitudeSquared(); + return return_val; + } + + float PxQuat_dot(physx_PxQuat_Pod const* self__pod, physx_PxQuat_Pod const* v_pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + physx::PxQuat const& v = reinterpret_cast(*v_pod); + float return_val = self_->dot(v); + return return_val; + } + + physx_PxQuat_Pod PxQuat_getNormalized(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + physx::PxQuat return_val = self_->getNormalized(); + physx_PxQuat_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxQuat_magnitude(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + float return_val = self_->magnitude(); + return return_val; + } + + float PxQuat_normalize_mut(physx_PxQuat_Pod* self__pod) { + physx::PxQuat* self_ = reinterpret_cast(self__pod); + float return_val = self_->normalize(); + return return_val; + } + + physx_PxQuat_Pod PxQuat_getConjugate(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + physx::PxQuat return_val = self_->getConjugate(); + physx_PxQuat_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxQuat_getImaginaryPart(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getImaginaryPart(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxQuat_getBasisVector0(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getBasisVector0(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxQuat_getBasisVector1(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getBasisVector1(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxQuat_getBasisVector2(physx_PxQuat_Pod const* self__pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getBasisVector2(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxQuat_rotate(physx_PxQuat_Pod const* self__pod, physx_PxVec3_Pod const* v_pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + physx::PxVec3 return_val = self_->rotate(v); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxQuat_rotateInv(physx_PxQuat_Pod const* self__pod, physx_PxVec3_Pod const* v_pod) { + physx::PxQuat const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + physx::PxVec3 return_val = self_->rotateInv(v); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxTransform_new() { + PxTransform return_val; + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxTransform_new_1(physx_PxVec3_Pod const* position_pod) { + physx::PxVec3 const& position = reinterpret_cast(*position_pod); + PxTransform return_val(position); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxTransform_new_2(int32_t anon_param0_pod) { + auto anon_param0 = static_cast(anon_param0_pod); + PxTransform return_val(anon_param0); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxTransform_new_3(physx_PxQuat_Pod const* orientation_pod) { + physx::PxQuat const& orientation = reinterpret_cast(*orientation_pod); + PxTransform return_val(orientation); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxTransform_new_4(float x, float y, float z, physx_PxQuat_Pod aQ_pod) { + physx::PxQuat aQ; + memcpy(&aQ, &aQ_pod, sizeof(aQ)); + PxTransform return_val(x, y, z, aQ); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxTransform_new_5(physx_PxVec3_Pod const* p0_pod, physx_PxQuat_Pod const* q0_pod) { + physx::PxVec3 const& p0 = reinterpret_cast(*p0_pod); + physx::PxQuat const& q0 = reinterpret_cast(*q0_pod); + PxTransform return_val(p0, q0); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxTransform_new_6(physx_PxMat44_Pod const* m_pod) { + physx::PxMat44 const& m = reinterpret_cast(*m_pod); + PxTransform return_val(m); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxTransform_getInverse(physx_PxTransform_Pod const* self__pod) { + physx::PxTransform const* self_ = reinterpret_cast(self__pod); + physx::PxTransform return_val = self_->getInverse(); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxTransform_transform(physx_PxTransform_Pod const* self__pod, physx_PxVec3_Pod const* input_pod) { + physx::PxTransform const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& input = reinterpret_cast(*input_pod); + physx::PxVec3 return_val = self_->transform(input); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxTransform_transformInv(physx_PxTransform_Pod const* self__pod, physx_PxVec3_Pod const* input_pod) { + physx::PxTransform const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& input = reinterpret_cast(*input_pod); + physx::PxVec3 return_val = self_->transformInv(input); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxTransform_rotate(physx_PxTransform_Pod const* self__pod, physx_PxVec3_Pod const* input_pod) { + physx::PxTransform const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& input = reinterpret_cast(*input_pod); + physx::PxVec3 return_val = self_->rotate(input); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxTransform_rotateInv(physx_PxTransform_Pod const* self__pod, physx_PxVec3_Pod const* input_pod) { + physx::PxTransform const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& input = reinterpret_cast(*input_pod); + physx::PxVec3 return_val = self_->rotateInv(input); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxTransform_transform_1(physx_PxTransform_Pod const* self__pod, physx_PxTransform_Pod const* src_pod) { + physx::PxTransform const* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& src = reinterpret_cast(*src_pod); + physx::PxTransform return_val = self_->transform(src); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxTransform_isValid(physx_PxTransform_Pod const* self__pod) { + physx::PxTransform const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + bool PxTransform_isSane(physx_PxTransform_Pod const* self__pod) { + physx::PxTransform const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isSane(); + return return_val; + } + + bool PxTransform_isFinite(physx_PxTransform_Pod const* self__pod) { + physx::PxTransform const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isFinite(); + return return_val; + } + + physx_PxTransform_Pod PxTransform_transformInv_1(physx_PxTransform_Pod const* self__pod, physx_PxTransform_Pod const* src_pod) { + physx::PxTransform const* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& src = reinterpret_cast(*src_pod); + physx::PxTransform return_val = self_->transformInv(src); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxTransform_getNormalized(physx_PxTransform_Pod const* self__pod) { + physx::PxTransform const* self_ = reinterpret_cast(self__pod); + physx::PxTransform return_val = self_->getNormalized(); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMat33_new() { + PxMat33 return_val; + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMat33_new_1(int32_t anon_param0_pod) { + auto anon_param0 = static_cast(anon_param0_pod); + PxMat33 return_val(anon_param0); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMat33_new_2(int32_t anon_param0_pod) { + auto anon_param0 = static_cast(anon_param0_pod); + PxMat33 return_val(anon_param0); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMat33_new_3(physx_PxVec3_Pod const* col0_pod, physx_PxVec3_Pod const* col1_pod, physx_PxVec3_Pod const* col2_pod) { + physx::PxVec3 const& col0 = reinterpret_cast(*col0_pod); + physx::PxVec3 const& col1 = reinterpret_cast(*col1_pod); + physx::PxVec3 const& col2 = reinterpret_cast(*col2_pod); + PxMat33 return_val(col0, col1, col2); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMat33_new_4(float r) { + PxMat33 return_val(r); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMat33_new_5(float* values) { + PxMat33 return_val(values); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMat33_new_6(physx_PxQuat_Pod const* q_pod) { + physx::PxQuat const& q = reinterpret_cast(*q_pod); + PxMat33 return_val(q); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMat33_createDiagonal(physx_PxVec3_Pod const* d_pod) { + physx::PxVec3 const& d = reinterpret_cast(*d_pod); + physx::PxMat33 return_val = PxMat33::createDiagonal(d); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMat33_outer(physx_PxVec3_Pod const* a_pod, physx_PxVec3_Pod const* b_pod) { + physx::PxVec3 const& a = reinterpret_cast(*a_pod); + physx::PxVec3 const& b = reinterpret_cast(*b_pod); + physx::PxMat33 return_val = PxMat33::outer(a, b); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMat33_getTranspose(physx_PxMat33_Pod const* self__pod) { + physx::PxMat33 const* self_ = reinterpret_cast(self__pod); + physx::PxMat33 return_val = self_->getTranspose(); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMat33_getInverse(physx_PxMat33_Pod const* self__pod) { + physx::PxMat33 const* self_ = reinterpret_cast(self__pod); + physx::PxMat33 return_val = self_->getInverse(); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxMat33_getDeterminant(physx_PxMat33_Pod const* self__pod) { + physx::PxMat33 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDeterminant(); + return return_val; + } + + physx_PxVec3_Pod PxMat33_transform(physx_PxMat33_Pod const* self__pod, physx_PxVec3_Pod const* other_pod) { + physx::PxMat33 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& other = reinterpret_cast(*other_pod); + physx::PxVec3 return_val = self_->transform(other); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxMat33_transformTranspose(physx_PxMat33_Pod const* self__pod, physx_PxVec3_Pod const* other_pod) { + physx::PxMat33 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& other = reinterpret_cast(*other_pod); + physx::PxVec3 return_val = self_->transformTranspose(other); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float const* PxMat33_front(physx_PxMat33_Pod const* self__pod) { + physx::PxMat33 const* self_ = reinterpret_cast(self__pod); + float const* return_val = self_->front(); + return return_val; + } + + physx_PxBounds3_Pod PxBounds3_new() { + PxBounds3 return_val; + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBounds3_Pod PxBounds3_new_1(physx_PxVec3_Pod const* minimum_pod, physx_PxVec3_Pod const* maximum_pod) { + physx::PxVec3 const& minimum = reinterpret_cast(*minimum_pod); + physx::PxVec3 const& maximum = reinterpret_cast(*maximum_pod); + PxBounds3 return_val(minimum, maximum); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBounds3_Pod PxBounds3_empty() { + physx::PxBounds3 return_val = PxBounds3::empty(); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBounds3_Pod PxBounds3_boundsOfPoints(physx_PxVec3_Pod const* v0_pod, physx_PxVec3_Pod const* v1_pod) { + physx::PxVec3 const& v0 = reinterpret_cast(*v0_pod); + physx::PxVec3 const& v1 = reinterpret_cast(*v1_pod); + physx::PxBounds3 return_val = PxBounds3::boundsOfPoints(v0, v1); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBounds3_Pod PxBounds3_centerExtents(physx_PxVec3_Pod const* center_pod, physx_PxVec3_Pod const* extent_pod) { + physx::PxVec3 const& center = reinterpret_cast(*center_pod); + physx::PxVec3 const& extent = reinterpret_cast(*extent_pod); + physx::PxBounds3 return_val = PxBounds3::centerExtents(center, extent); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBounds3_Pod PxBounds3_basisExtent(physx_PxVec3_Pod const* center_pod, physx_PxMat33_Pod const* basis_pod, physx_PxVec3_Pod const* extent_pod) { + physx::PxVec3 const& center = reinterpret_cast(*center_pod); + physx::PxMat33 const& basis = reinterpret_cast(*basis_pod); + physx::PxVec3 const& extent = reinterpret_cast(*extent_pod); + physx::PxBounds3 return_val = PxBounds3::basisExtent(center, basis, extent); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBounds3_Pod PxBounds3_poseExtent(physx_PxTransform_Pod const* pose_pod, physx_PxVec3_Pod const* extent_pod) { + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxVec3 const& extent = reinterpret_cast(*extent_pod); + physx::PxBounds3 return_val = PxBounds3::poseExtent(pose, extent); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBounds3_Pod PxBounds3_transformSafe(physx_PxMat33_Pod const* matrix_pod, physx_PxBounds3_Pod const* bounds_pod) { + physx::PxMat33 const& matrix = reinterpret_cast(*matrix_pod); + physx::PxBounds3 const& bounds = reinterpret_cast(*bounds_pod); + physx::PxBounds3 return_val = PxBounds3::transformSafe(matrix, bounds); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBounds3_Pod PxBounds3_transformFast(physx_PxMat33_Pod const* matrix_pod, physx_PxBounds3_Pod const* bounds_pod) { + physx::PxMat33 const& matrix = reinterpret_cast(*matrix_pod); + physx::PxBounds3 const& bounds = reinterpret_cast(*bounds_pod); + physx::PxBounds3 return_val = PxBounds3::transformFast(matrix, bounds); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBounds3_Pod PxBounds3_transformSafe_1(physx_PxTransform_Pod const* transform_pod, physx_PxBounds3_Pod const* bounds_pod) { + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxBounds3 const& bounds = reinterpret_cast(*bounds_pod); + physx::PxBounds3 return_val = PxBounds3::transformSafe(transform, bounds); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBounds3_Pod PxBounds3_transformFast_1(physx_PxTransform_Pod const* transform_pod, physx_PxBounds3_Pod const* bounds_pod) { + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxBounds3 const& bounds = reinterpret_cast(*bounds_pod); + physx::PxBounds3 return_val = PxBounds3::transformFast(transform, bounds); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxBounds3_setEmpty_mut(physx_PxBounds3_Pod* self__pod) { + physx::PxBounds3* self_ = reinterpret_cast(self__pod); + self_->setEmpty(); + } + + void PxBounds3_setMaximal_mut(physx_PxBounds3_Pod* self__pod) { + physx::PxBounds3* self_ = reinterpret_cast(self__pod); + self_->setMaximal(); + } + + void PxBounds3_include_mut(physx_PxBounds3_Pod* self__pod, physx_PxVec3_Pod const* v_pod) { + physx::PxBounds3* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + self_->include(v); + } + + void PxBounds3_include_mut_1(physx_PxBounds3_Pod* self__pod, physx_PxBounds3_Pod const* b_pod) { + physx::PxBounds3* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const& b = reinterpret_cast(*b_pod); + self_->include(b); + } + + bool PxBounds3_isEmpty(physx_PxBounds3_Pod const* self__pod) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isEmpty(); + return return_val; + } + + bool PxBounds3_intersects(physx_PxBounds3_Pod const* self__pod, physx_PxBounds3_Pod const* b_pod) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const& b = reinterpret_cast(*b_pod); + bool return_val = self_->intersects(b); + return return_val; + } + + bool PxBounds3_intersects1D(physx_PxBounds3_Pod const* self__pod, physx_PxBounds3_Pod const* a_pod, uint32_t axis) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const& a = reinterpret_cast(*a_pod); + bool return_val = self_->intersects1D(a, axis); + return return_val; + } + + bool PxBounds3_contains(physx_PxBounds3_Pod const* self__pod, physx_PxVec3_Pod const* v_pod) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + bool return_val = self_->contains(v); + return return_val; + } + + bool PxBounds3_isInside(physx_PxBounds3_Pod const* self__pod, physx_PxBounds3_Pod const* box_pod) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const& box = reinterpret_cast(*box_pod); + bool return_val = self_->isInside(box); + return return_val; + } + + physx_PxVec3_Pod PxBounds3_getCenter(physx_PxBounds3_Pod const* self__pod) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getCenter(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxBounds3_getCenter_1(physx_PxBounds3_Pod const* self__pod, uint32_t axis) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getCenter(axis); + return return_val; + } + + float PxBounds3_getExtents(physx_PxBounds3_Pod const* self__pod, uint32_t axis) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getExtents(axis); + return return_val; + } + + physx_PxVec3_Pod PxBounds3_getDimensions(physx_PxBounds3_Pod const* self__pod) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getDimensions(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxBounds3_getExtents_1(physx_PxBounds3_Pod const* self__pod) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getExtents(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxBounds3_scaleSafe_mut(physx_PxBounds3_Pod* self__pod, float scale) { + physx::PxBounds3* self_ = reinterpret_cast(self__pod); + self_->scaleSafe(scale); + } + + void PxBounds3_scaleFast_mut(physx_PxBounds3_Pod* self__pod, float scale) { + physx::PxBounds3* self_ = reinterpret_cast(self__pod); + self_->scaleFast(scale); + } + + void PxBounds3_fattenSafe_mut(physx_PxBounds3_Pod* self__pod, float distance) { + physx::PxBounds3* self_ = reinterpret_cast(self__pod); + self_->fattenSafe(distance); + } + + void PxBounds3_fattenFast_mut(physx_PxBounds3_Pod* self__pod, float distance) { + physx::PxBounds3* self_ = reinterpret_cast(self__pod); + self_->fattenFast(distance); + } + + bool PxBounds3_isFinite(physx_PxBounds3_Pod const* self__pod) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isFinite(); + return return_val; + } + + bool PxBounds3_isValid(physx_PxBounds3_Pod const* self__pod) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxVec3_Pod PxBounds3_closestPoint(physx_PxBounds3_Pod const* self__pod, physx_PxVec3_Pod const* p_pod) { + physx::PxBounds3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& p = reinterpret_cast(*p_pod); + physx::PxVec3 return_val = self_->closestPoint(p); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxErrorCallback_delete(physx_PxErrorCallback_Pod* self__pod) { + physx::PxErrorCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxErrorCallback_reportError_mut(physx_PxErrorCallback_Pod* self__pod, int32_t code_pod, char const* message, char const* file, int32_t line) { + physx::PxErrorCallback* self_ = reinterpret_cast(self__pod); + auto code = static_cast(code_pod); + self_->reportError(code, message, file, line); + } + + void PxAllocationListener_onAllocation_mut(physx_PxAllocationListener_Pod* self__pod, size_t size_pod, char const* typeName, char const* filename, int32_t line, void* allocatedMemory) { + physx::PxAllocationListener* self_ = reinterpret_cast(self__pod); + size_t size; + memcpy(&size, &size_pod, sizeof(size)); + self_->onAllocation(size, typeName, filename, line, allocatedMemory); + } + + void PxAllocationListener_onDeallocation_mut(physx_PxAllocationListener_Pod* self__pod, void* allocatedMemory) { + physx::PxAllocationListener* self_ = reinterpret_cast(self__pod); + self_->onDeallocation(allocatedMemory); + } + + physx_PxBroadcastingAllocator_Pod* PxBroadcastingAllocator_new_alloc(physx_PxAllocatorCallback_Pod* allocator_pod, physx_PxErrorCallback_Pod* error_pod) { + physx::PxAllocatorCallback& allocator = reinterpret_cast(*allocator_pod); + physx::PxErrorCallback& error = reinterpret_cast(*error_pod); + auto return_val = new physx::PxBroadcastingAllocator(allocator, error); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxBroadcastingAllocator_delete(physx_PxBroadcastingAllocator_Pod* self__pod) { + physx::PxBroadcastingAllocator* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void* PxBroadcastingAllocator_allocate_mut(physx_PxBroadcastingAllocator_Pod* self__pod, size_t size_pod, char const* typeName, char const* filename, int32_t line) { + physx::PxBroadcastingAllocator* self_ = reinterpret_cast(self__pod); + size_t size; + memcpy(&size, &size_pod, sizeof(size)); + void* return_val = self_->allocate(size, typeName, filename, line); + return return_val; + } + + void PxBroadcastingAllocator_deallocate_mut(physx_PxBroadcastingAllocator_Pod* self__pod, void* ptr) { + physx::PxBroadcastingAllocator* self_ = reinterpret_cast(self__pod); + self_->deallocate(ptr); + } + + physx_PxBroadcastingErrorCallback_Pod* PxBroadcastingErrorCallback_new_alloc(physx_PxErrorCallback_Pod* errorCallback_pod) { + physx::PxErrorCallback& errorCallback = reinterpret_cast(*errorCallback_pod); + auto return_val = new physx::PxBroadcastingErrorCallback(errorCallback); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxBroadcastingErrorCallback_delete(physx_PxBroadcastingErrorCallback_Pod* self__pod) { + physx::PxBroadcastingErrorCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxBroadcastingErrorCallback_reportError_mut(physx_PxBroadcastingErrorCallback_Pod* self__pod, int32_t code_pod, char const* message, char const* file, int32_t line) { + physx::PxBroadcastingErrorCallback* self_ = reinterpret_cast(self__pod); + auto code = static_cast(code_pod); + self_->reportError(code, message, file, line); + } + + void phys_PxEnableFPExceptions() { + PxEnableFPExceptions(); + } + + void phys_PxDisableFPExceptions() { + PxDisableFPExceptions(); + } + + uint32_t PxInputStream_read_mut(physx_PxInputStream_Pod* self__pod, void* dest, uint32_t count) { + physx::PxInputStream* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->read(dest, count); + return return_val; + } + + void PxInputStream_delete(physx_PxInputStream_Pod* self__pod) { + physx::PxInputStream* self_ = reinterpret_cast(self__pod); + delete self_; + } + + uint32_t PxInputData_getLength(physx_PxInputData_Pod const* self__pod) { + physx::PxInputData const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getLength(); + return return_val; + } + + void PxInputData_seek_mut(physx_PxInputData_Pod* self__pod, uint32_t offset) { + physx::PxInputData* self_ = reinterpret_cast(self__pod); + self_->seek(offset); + } + + uint32_t PxInputData_tell(physx_PxInputData_Pod const* self__pod) { + physx::PxInputData const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->tell(); + return return_val; + } + + void PxInputData_delete(physx_PxInputData_Pod* self__pod) { + physx::PxInputData* self_ = reinterpret_cast(self__pod); + delete self_; + } + + uint32_t PxOutputStream_write_mut(physx_PxOutputStream_Pod* self__pod, void const* src, uint32_t count) { + physx::PxOutputStream* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->write(src, count); + return return_val; + } + + void PxOutputStream_delete(physx_PxOutputStream_Pod* self__pod) { + physx::PxOutputStream* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxVec4_Pod PxVec4_new() { + PxVec4 return_val; + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec4_Pod PxVec4_new_1(int32_t anon_param0_pod) { + auto anon_param0 = static_cast(anon_param0_pod); + PxVec4 return_val(anon_param0); + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec4_Pod PxVec4_new_2(float a) { + PxVec4 return_val(a); + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec4_Pod PxVec4_new_3(float nx, float ny, float nz, float nw) { + PxVec4 return_val(nx, ny, nz, nw); + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec4_Pod PxVec4_new_4(physx_PxVec3_Pod const* v_pod, float nw) { + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + PxVec4 return_val(v, nw); + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec4_Pod PxVec4_new_5(float const* v) { + PxVec4 return_val(v); + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxVec4_isZero(physx_PxVec4_Pod const* self__pod) { + physx::PxVec4 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isZero(); + return return_val; + } + + bool PxVec4_isFinite(physx_PxVec4_Pod const* self__pod) { + physx::PxVec4 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isFinite(); + return return_val; + } + + bool PxVec4_isNormalized(physx_PxVec4_Pod const* self__pod) { + physx::PxVec4 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isNormalized(); + return return_val; + } + + float PxVec4_magnitudeSquared(physx_PxVec4_Pod const* self__pod) { + physx::PxVec4 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->magnitudeSquared(); + return return_val; + } + + float PxVec4_magnitude(physx_PxVec4_Pod const* self__pod) { + physx::PxVec4 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->magnitude(); + return return_val; + } + + float PxVec4_dot(physx_PxVec4_Pod const* self__pod, physx_PxVec4_Pod const* v_pod) { + physx::PxVec4 const* self_ = reinterpret_cast(self__pod); + physx::PxVec4 const& v = reinterpret_cast(*v_pod); + float return_val = self_->dot(v); + return return_val; + } + + physx_PxVec4_Pod PxVec4_getNormalized(physx_PxVec4_Pod const* self__pod) { + physx::PxVec4 const* self_ = reinterpret_cast(self__pod); + physx::PxVec4 return_val = self_->getNormalized(); + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxVec4_normalize_mut(physx_PxVec4_Pod* self__pod) { + physx::PxVec4* self_ = reinterpret_cast(self__pod); + float return_val = self_->normalize(); + return return_val; + } + + physx_PxVec4_Pod PxVec4_multiply(physx_PxVec4_Pod const* self__pod, physx_PxVec4_Pod const* a_pod) { + physx::PxVec4 const* self_ = reinterpret_cast(self__pod); + physx::PxVec4 const& a = reinterpret_cast(*a_pod); + physx::PxVec4 return_val = self_->multiply(a); + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec4_Pod PxVec4_minimum(physx_PxVec4_Pod const* self__pod, physx_PxVec4_Pod const* v_pod) { + physx::PxVec4 const* self_ = reinterpret_cast(self__pod); + physx::PxVec4 const& v = reinterpret_cast(*v_pod); + physx::PxVec4 return_val = self_->minimum(v); + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec4_Pod PxVec4_maximum(physx_PxVec4_Pod const* self__pod, physx_PxVec4_Pod const* v_pod) { + physx::PxVec4 const* self_ = reinterpret_cast(self__pod); + physx::PxVec4 const& v = reinterpret_cast(*v_pod); + physx::PxVec4 return_val = self_->maximum(v); + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxVec4_getXYZ(physx_PxVec4_Pod const* self__pod) { + physx::PxVec4 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getXYZ(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_new() { + PxMat44 return_val; + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_new_1(int32_t anon_param0_pod) { + auto anon_param0 = static_cast(anon_param0_pod); + PxMat44 return_val(anon_param0); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_new_2(int32_t anon_param0_pod) { + auto anon_param0 = static_cast(anon_param0_pod); + PxMat44 return_val(anon_param0); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_new_3(physx_PxVec4_Pod const* col0_pod, physx_PxVec4_Pod const* col1_pod, physx_PxVec4_Pod const* col2_pod, physx_PxVec4_Pod const* col3_pod) { + physx::PxVec4 const& col0 = reinterpret_cast(*col0_pod); + physx::PxVec4 const& col1 = reinterpret_cast(*col1_pod); + physx::PxVec4 const& col2 = reinterpret_cast(*col2_pod); + physx::PxVec4 const& col3 = reinterpret_cast(*col3_pod); + PxMat44 return_val(col0, col1, col2, col3); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_new_4(float r) { + PxMat44 return_val(r); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_new_5(physx_PxVec3_Pod const* col0_pod, physx_PxVec3_Pod const* col1_pod, physx_PxVec3_Pod const* col2_pod, physx_PxVec3_Pod const* col3_pod) { + physx::PxVec3 const& col0 = reinterpret_cast(*col0_pod); + physx::PxVec3 const& col1 = reinterpret_cast(*col1_pod); + physx::PxVec3 const& col2 = reinterpret_cast(*col2_pod); + physx::PxVec3 const& col3 = reinterpret_cast(*col3_pod); + PxMat44 return_val(col0, col1, col2, col3); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_new_6(float* values) { + PxMat44 return_val(values); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_new_7(physx_PxQuat_Pod const* q_pod) { + physx::PxQuat const& q = reinterpret_cast(*q_pod); + PxMat44 return_val(q); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_new_8(physx_PxVec4_Pod const* diagonal_pod) { + physx::PxVec4 const& diagonal = reinterpret_cast(*diagonal_pod); + PxMat44 return_val(diagonal); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_new_9(physx_PxMat33_Pod const* axes_pod, physx_PxVec3_Pod const* position_pod) { + physx::PxMat33 const& axes = reinterpret_cast(*axes_pod); + physx::PxVec3 const& position = reinterpret_cast(*position_pod); + PxMat44 return_val(axes, position); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_new_10(physx_PxTransform_Pod const* t_pod) { + physx::PxTransform const& t = reinterpret_cast(*t_pod); + PxMat44 return_val(t); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat44_Pod PxMat44_getTranspose(physx_PxMat44_Pod const* self__pod) { + physx::PxMat44 const* self_ = reinterpret_cast(self__pod); + physx::PxMat44 return_val = self_->getTranspose(); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec4_Pod PxMat44_transform(physx_PxMat44_Pod const* self__pod, physx_PxVec4_Pod const* other_pod) { + physx::PxMat44 const* self_ = reinterpret_cast(self__pod); + physx::PxVec4 const& other = reinterpret_cast(*other_pod); + physx::PxVec4 return_val = self_->transform(other); + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxMat44_transform_1(physx_PxMat44_Pod const* self__pod, physx_PxVec3_Pod const* other_pod) { + physx::PxMat44 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& other = reinterpret_cast(*other_pod); + physx::PxVec3 return_val = self_->transform(other); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec4_Pod PxMat44_rotate(physx_PxMat44_Pod const* self__pod, physx_PxVec4_Pod const* other_pod) { + physx::PxMat44 const* self_ = reinterpret_cast(self__pod); + physx::PxVec4 const& other = reinterpret_cast(*other_pod); + physx::PxVec4 return_val = self_->rotate(other); + physx_PxVec4_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxMat44_rotate_1(physx_PxMat44_Pod const* self__pod, physx_PxVec3_Pod const* other_pod) { + physx::PxMat44 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& other = reinterpret_cast(*other_pod); + physx::PxVec3 return_val = self_->rotate(other); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxMat44_getBasis(physx_PxMat44_Pod const* self__pod, uint32_t num) { + physx::PxMat44 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getBasis(num); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxMat44_getPosition(physx_PxMat44_Pod const* self__pod) { + physx::PxMat44 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getPosition(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxMat44_setPosition_mut(physx_PxMat44_Pod* self__pod, physx_PxVec3_Pod const* position_pod) { + physx::PxMat44* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& position = reinterpret_cast(*position_pod); + self_->setPosition(position); + } + + float const* PxMat44_front(physx_PxMat44_Pod const* self__pod) { + physx::PxMat44 const* self_ = reinterpret_cast(self__pod); + float const* return_val = self_->front(); + return return_val; + } + + void PxMat44_scale_mut(physx_PxMat44_Pod* self__pod, physx_PxVec4_Pod const* p_pod) { + physx::PxMat44* self_ = reinterpret_cast(self__pod); + physx::PxVec4 const& p = reinterpret_cast(*p_pod); + self_->scale(p); + } + + physx_PxMat44_Pod PxMat44_inverseRT(physx_PxMat44_Pod const* self__pod) { + physx::PxMat44 const* self_ = reinterpret_cast(self__pod); + physx::PxMat44 return_val = self_->inverseRT(); + physx_PxMat44_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxMat44_isFinite(physx_PxMat44_Pod const* self__pod) { + physx::PxMat44 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isFinite(); + return return_val; + } + + physx_PxPlane_Pod PxPlane_new() { + PxPlane return_val; + physx_PxPlane_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxPlane_Pod PxPlane_new_1(float nx, float ny, float nz, float distance) { + PxPlane return_val(nx, ny, nz, distance); + physx_PxPlane_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxPlane_Pod PxPlane_new_2(physx_PxVec3_Pod const* normal_pod, float distance) { + physx::PxVec3 const& normal = reinterpret_cast(*normal_pod); + PxPlane return_val(normal, distance); + physx_PxPlane_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxPlane_Pod PxPlane_new_3(physx_PxVec3_Pod const* point_pod, physx_PxVec3_Pod const* normal_pod) { + physx::PxVec3 const& point = reinterpret_cast(*point_pod); + physx::PxVec3 const& normal = reinterpret_cast(*normal_pod); + PxPlane return_val(point, normal); + physx_PxPlane_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxPlane_Pod PxPlane_new_4(physx_PxVec3_Pod const* p0_pod, physx_PxVec3_Pod const* p1_pod, physx_PxVec3_Pod const* p2_pod) { + physx::PxVec3 const& p0 = reinterpret_cast(*p0_pod); + physx::PxVec3 const& p1 = reinterpret_cast(*p1_pod); + physx::PxVec3 const& p2 = reinterpret_cast(*p2_pod); + PxPlane return_val(p0, p1, p2); + physx_PxPlane_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxPlane_distance(physx_PxPlane_Pod const* self__pod, physx_PxVec3_Pod const* p_pod) { + physx::PxPlane const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& p = reinterpret_cast(*p_pod); + float return_val = self_->distance(p); + return return_val; + } + + bool PxPlane_contains(physx_PxPlane_Pod const* self__pod, physx_PxVec3_Pod const* p_pod) { + physx::PxPlane const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& p = reinterpret_cast(*p_pod); + bool return_val = self_->contains(p); + return return_val; + } + + physx_PxVec3_Pod PxPlane_project(physx_PxPlane_Pod const* self__pod, physx_PxVec3_Pod const* p_pod) { + physx::PxPlane const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& p = reinterpret_cast(*p_pod); + physx::PxVec3 return_val = self_->project(p); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxPlane_pointInPlane(physx_PxPlane_Pod const* self__pod) { + physx::PxPlane const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->pointInPlane(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxPlane_normalize_mut(physx_PxPlane_Pod* self__pod) { + physx::PxPlane* self_ = reinterpret_cast(self__pod); + self_->normalize(); + } + + physx_PxPlane_Pod PxPlane_transform(physx_PxPlane_Pod const* self__pod, physx_PxTransform_Pod const* pose_pod) { + physx::PxPlane const* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxPlane return_val = self_->transform(pose); + physx_PxPlane_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxPlane_Pod PxPlane_inverseTransform(physx_PxPlane_Pod const* self__pod, physx_PxTransform_Pod const* pose_pod) { + physx::PxPlane const* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxPlane return_val = self_->inverseTransform(pose); + physx_PxPlane_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQuat_Pod phys_PxShortestRotation(physx_PxVec3_Pod const* from_pod, physx_PxVec3_Pod const* target_pod) { + physx::PxVec3 const& from = reinterpret_cast(*from_pod); + physx::PxVec3 const& target = reinterpret_cast(*target_pod); + physx::PxQuat return_val = PxShortestRotation(from, target); + physx_PxQuat_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod phys_PxDiagonalize(physx_PxMat33_Pod const* m_pod, physx_PxQuat_Pod* axes_pod) { + physx::PxMat33 const& m = reinterpret_cast(*m_pod); + physx::PxQuat& axes = reinterpret_cast(*axes_pod); + physx::PxVec3 return_val = PxDiagonalize(m, axes); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod phys_PxTransformFromSegment(physx_PxVec3_Pod const* p0_pod, physx_PxVec3_Pod const* p1_pod, float* halfHeight) { + physx::PxVec3 const& p0 = reinterpret_cast(*p0_pod); + physx::PxVec3 const& p1 = reinterpret_cast(*p1_pod); + physx::PxTransform return_val = PxTransformFromSegment(p0, p1, halfHeight); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod phys_PxTransformFromPlaneEquation(physx_PxPlane_Pod const* plane_pod) { + physx::PxPlane const& plane = reinterpret_cast(*plane_pod); + physx::PxTransform return_val = PxTransformFromPlaneEquation(plane); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxPlane_Pod phys_PxPlaneEquationFromTransform(physx_PxTransform_Pod const* pose_pod) { + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxPlane return_val = PxPlaneEquationFromTransform(pose); + physx_PxPlane_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQuat_Pod phys_PxSlerp(float t, physx_PxQuat_Pod const* left_pod, physx_PxQuat_Pod const* right_pod) { + physx::PxQuat const& left = reinterpret_cast(*left_pod); + physx::PxQuat const& right = reinterpret_cast(*right_pod); + physx::PxQuat return_val = PxSlerp(t, left, right); + physx_PxQuat_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void phys_PxIntegrateTransform(physx_PxTransform_Pod const* curTrans_pod, physx_PxVec3_Pod const* linvel_pod, physx_PxVec3_Pod const* angvel_pod, float timeStep, physx_PxTransform_Pod* result_pod) { + physx::PxTransform const& curTrans = reinterpret_cast(*curTrans_pod); + physx::PxVec3 const& linvel = reinterpret_cast(*linvel_pod); + physx::PxVec3 const& angvel = reinterpret_cast(*angvel_pod); + physx::PxTransform& result = reinterpret_cast(*result_pod); + PxIntegrateTransform(curTrans, linvel, angvel, timeStep, result); + } + + physx_PxQuat_Pod phys_PxExp(physx_PxVec3_Pod const* v_pod) { + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + physx::PxQuat return_val = PxExp(v); + physx_PxQuat_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod phys_PxOptimizeBoundingBox(physx_PxMat33_Pod* basis_pod) { + physx::PxMat33& basis = reinterpret_cast(*basis_pod); + physx::PxVec3 return_val = PxOptimizeBoundingBox(basis); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod phys_PxLog(physx_PxQuat_Pod const* q_pod) { + physx::PxQuat const& q = reinterpret_cast(*q_pod); + physx::PxVec3 return_val = PxLog(q); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t phys_PxLargestAxis(physx_PxVec3_Pod const* v_pod) { + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + uint32_t return_val = PxLargestAxis(v); + return return_val; + } + + float phys_PxTanHalf(float sin, float cos) { + float return_val = PxTanHalf(sin, cos); + return return_val; + } + + physx_PxVec3_Pod phys_PxEllipseClamp(physx_PxVec3_Pod const* point_pod, physx_PxVec3_Pod const* radii_pod) { + physx::PxVec3 const& point = reinterpret_cast(*point_pod); + physx::PxVec3 const& radii = reinterpret_cast(*radii_pod); + physx::PxVec3 return_val = PxEllipseClamp(point, radii); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void phys_PxSeparateSwingTwist(physx_PxQuat_Pod const* q_pod, physx_PxQuat_Pod* swing_pod, physx_PxQuat_Pod* twist_pod) { + physx::PxQuat const& q = reinterpret_cast(*q_pod); + physx::PxQuat& swing = reinterpret_cast(*swing_pod); + physx::PxQuat& twist = reinterpret_cast(*twist_pod); + PxSeparateSwingTwist(q, swing, twist); + } + + float phys_PxComputeAngle(physx_PxVec3_Pod const* v0_pod, physx_PxVec3_Pod const* v1_pod) { + physx::PxVec3 const& v0 = reinterpret_cast(*v0_pod); + physx::PxVec3 const& v1 = reinterpret_cast(*v1_pod); + float return_val = PxComputeAngle(v0, v1); + return return_val; + } + + void phys_PxComputeBasisVectors(physx_PxVec3_Pod const* dir_pod, physx_PxVec3_Pod* right_pod, physx_PxVec3_Pod* up_pod) { + physx::PxVec3 const& dir = reinterpret_cast(*dir_pod); + physx::PxVec3& right = reinterpret_cast(*right_pod); + physx::PxVec3& up = reinterpret_cast(*up_pod); + PxComputeBasisVectors(dir, right, up); + } + + void phys_PxComputeBasisVectors_1(physx_PxVec3_Pod const* p0_pod, physx_PxVec3_Pod const* p1_pod, physx_PxVec3_Pod* dir_pod, physx_PxVec3_Pod* right_pod, physx_PxVec3_Pod* up_pod) { + physx::PxVec3 const& p0 = reinterpret_cast(*p0_pod); + physx::PxVec3 const& p1 = reinterpret_cast(*p1_pod); + physx::PxVec3& dir = reinterpret_cast(*dir_pod); + physx::PxVec3& right = reinterpret_cast(*right_pod); + physx::PxVec3& up = reinterpret_cast(*up_pod); + PxComputeBasisVectors(p0, p1, dir, right, up); + } + + uint32_t phys_PxGetNextIndex3(uint32_t i) { + uint32_t return_val = PxGetNextIndex3(i); + return return_val; + } + + void phys_computeBarycentric(physx_PxVec3_Pod const* a_pod, physx_PxVec3_Pod const* b_pod, physx_PxVec3_Pod const* c_pod, physx_PxVec3_Pod const* d_pod, physx_PxVec3_Pod const* p_pod, physx_PxVec4_Pod* bary_pod) { + physx::PxVec3 const& a = reinterpret_cast(*a_pod); + physx::PxVec3 const& b = reinterpret_cast(*b_pod); + physx::PxVec3 const& c = reinterpret_cast(*c_pod); + physx::PxVec3 const& d = reinterpret_cast(*d_pod); + physx::PxVec3 const& p = reinterpret_cast(*p_pod); + physx::PxVec4& bary = reinterpret_cast(*bary_pod); + computeBarycentric(a, b, c, d, p, bary); + } + + void phys_computeBarycentric_1(physx_PxVec3_Pod const* a_pod, physx_PxVec3_Pod const* b_pod, physx_PxVec3_Pod const* c_pod, physx_PxVec3_Pod const* p_pod, physx_PxVec4_Pod* bary_pod) { + physx::PxVec3 const& a = reinterpret_cast(*a_pod); + physx::PxVec3 const& b = reinterpret_cast(*b_pod); + physx::PxVec3 const& c = reinterpret_cast(*c_pod); + physx::PxVec3 const& p = reinterpret_cast(*p_pod); + physx::PxVec4& bary = reinterpret_cast(*bary_pod); + computeBarycentric(a, b, c, p, bary); + } + + float Interpolation_PxLerp(float a, float b, float t) { + float return_val = Interpolation::PxLerp(a, b, t); + return return_val; + } + + float Interpolation_PxBiLerp(float f00, float f10, float f01, float f11, float tx, float ty) { + float return_val = Interpolation::PxBiLerp(f00, f10, f01, f11, tx, ty); + return return_val; + } + + float Interpolation_PxTriLerp(float f000, float f100, float f010, float f110, float f001, float f101, float f011, float f111, float tx, float ty, float tz) { + float return_val = Interpolation::PxTriLerp(f000, f100, f010, f110, f001, f101, f011, f111, tx, ty, tz); + return return_val; + } + + uint32_t Interpolation_PxSDFIdx(uint32_t i, uint32_t j, uint32_t k, uint32_t nbX, uint32_t nbY) { + uint32_t return_val = Interpolation::PxSDFIdx(i, j, k, nbX, nbY); + return return_val; + } + + float Interpolation_PxSDFSampleImpl(float const* sdf, physx_PxVec3_Pod const* localPos_pod, physx_PxVec3_Pod const* sdfBoxLower_pod, physx_PxVec3_Pod const* sdfBoxHigher_pod, float sdfDx, float invSdfDx, uint32_t dimX, uint32_t dimY, uint32_t dimZ, float tolerance) { + physx::PxVec3 const& localPos = reinterpret_cast(*localPos_pod); + physx::PxVec3 const& sdfBoxLower = reinterpret_cast(*sdfBoxLower_pod); + physx::PxVec3 const& sdfBoxHigher = reinterpret_cast(*sdfBoxHigher_pod); + float return_val = Interpolation::PxSDFSampleImpl(sdf, localPos, sdfBoxLower, sdfBoxHigher, sdfDx, invSdfDx, dimX, dimY, dimZ, tolerance); + return return_val; + } + + float phys_PxSdfSample(float const* sdf, physx_PxVec3_Pod const* localPos_pod, physx_PxVec3_Pod const* sdfBoxLower_pod, physx_PxVec3_Pod const* sdfBoxHigher_pod, float sdfDx, float invSdfDx, uint32_t dimX, uint32_t dimY, uint32_t dimZ, physx_PxVec3_Pod* gradient_pod, float tolerance) { + physx::PxVec3 const& localPos = reinterpret_cast(*localPos_pod); + physx::PxVec3 const& sdfBoxLower = reinterpret_cast(*sdfBoxLower_pod); + physx::PxVec3 const& sdfBoxHigher = reinterpret_cast(*sdfBoxHigher_pod); + physx::PxVec3& gradient = reinterpret_cast(*gradient_pod); + float return_val = PxSdfSample(sdf, localPos, sdfBoxLower, sdfBoxHigher, sdfDx, invSdfDx, dimX, dimY, dimZ, gradient, tolerance); + return return_val; + } + + physx_PxMutexImpl_Pod* PxMutexImpl_new_alloc() { + auto return_val = new physx::PxMutexImpl(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxMutexImpl_delete(physx_PxMutexImpl_Pod* self__pod) { + physx::PxMutexImpl* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxMutexImpl_lock_mut(physx_PxMutexImpl_Pod* self__pod) { + physx::PxMutexImpl* self_ = reinterpret_cast(self__pod); + self_->lock(); + } + + bool PxMutexImpl_trylock_mut(physx_PxMutexImpl_Pod* self__pod) { + physx::PxMutexImpl* self_ = reinterpret_cast(self__pod); + bool return_val = self_->trylock(); + return return_val; + } + + void PxMutexImpl_unlock_mut(physx_PxMutexImpl_Pod* self__pod) { + physx::PxMutexImpl* self_ = reinterpret_cast(self__pod); + self_->unlock(); + } + + uint32_t PxMutexImpl_getSize() { + uint32_t return_val = PxMutexImpl::getSize(); + return return_val; + } + + physx_PxReadWriteLock_Pod* PxReadWriteLock_new_alloc() { + auto return_val = new physx::PxReadWriteLock(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxReadWriteLock_delete(physx_PxReadWriteLock_Pod* self__pod) { + physx::PxReadWriteLock* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxReadWriteLock_lockReader_mut(physx_PxReadWriteLock_Pod* self__pod, bool takeLock) { + physx::PxReadWriteLock* self_ = reinterpret_cast(self__pod); + self_->lockReader(takeLock); + } + + void PxReadWriteLock_lockWriter_mut(physx_PxReadWriteLock_Pod* self__pod) { + physx::PxReadWriteLock* self_ = reinterpret_cast(self__pod); + self_->lockWriter(); + } + + void PxReadWriteLock_unlockReader_mut(physx_PxReadWriteLock_Pod* self__pod) { + physx::PxReadWriteLock* self_ = reinterpret_cast(self__pod); + self_->unlockReader(); + } + + void PxReadWriteLock_unlockWriter_mut(physx_PxReadWriteLock_Pod* self__pod) { + physx::PxReadWriteLock* self_ = reinterpret_cast(self__pod); + self_->unlockWriter(); + } + + void* PxProfilerCallback_zoneStart_mut(physx_PxProfilerCallback_Pod* self__pod, char const* eventName, bool detached, uint64_t contextId) { + physx::PxProfilerCallback* self_ = reinterpret_cast(self__pod); + void* return_val = self_->zoneStart(eventName, detached, contextId); + return return_val; + } + + void PxProfilerCallback_zoneEnd_mut(physx_PxProfilerCallback_Pod* self__pod, void* profilerData, char const* eventName, bool detached, uint64_t contextId) { + physx::PxProfilerCallback* self_ = reinterpret_cast(self__pod); + self_->zoneEnd(profilerData, eventName, detached, contextId); + } + + physx_PxProfileScoped_Pod* PxProfileScoped_new_alloc(physx_PxProfilerCallback_Pod* callback_pod, char const* eventName, bool detached, uint64_t contextId) { + physx::PxProfilerCallback* callback = reinterpret_cast(callback_pod); + auto return_val = new physx::PxProfileScoped(callback, eventName, detached, contextId); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxProfileScoped_delete(physx_PxProfileScoped_Pod* self__pod) { + physx::PxProfileScoped* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxSListEntry_Pod PxSListEntry_new() { + PxSListEntry return_val; + physx_PxSListEntry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxSListEntry_Pod* PxSListEntry_next_mut(physx_PxSListEntry_Pod* self__pod) { + physx::PxSListEntry* self_ = reinterpret_cast(self__pod); + physx::PxSListEntry* return_val = self_->next(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSListImpl_Pod* PxSListImpl_new_alloc() { + auto return_val = new physx::PxSListImpl(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxSListImpl_delete(physx_PxSListImpl_Pod* self__pod) { + physx::PxSListImpl* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxSListImpl_push_mut(physx_PxSListImpl_Pod* self__pod, physx_PxSListEntry_Pod* entry_pod) { + physx::PxSListImpl* self_ = reinterpret_cast(self__pod); + physx::PxSListEntry* entry = reinterpret_cast(entry_pod); + self_->push(entry); + } + + physx_PxSListEntry_Pod* PxSListImpl_pop_mut(physx_PxSListImpl_Pod* self__pod) { + physx::PxSListImpl* self_ = reinterpret_cast(self__pod); + physx::PxSListEntry* return_val = self_->pop(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSListEntry_Pod* PxSListImpl_flush_mut(physx_PxSListImpl_Pod* self__pod) { + physx::PxSListImpl* self_ = reinterpret_cast(self__pod); + physx::PxSListEntry* return_val = self_->flush(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxSListImpl_getSize() { + uint32_t return_val = PxSListImpl::getSize(); + return return_val; + } + + physx_PxSyncImpl_Pod* PxSyncImpl_new_alloc() { + auto return_val = new physx::PxSyncImpl(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxSyncImpl_delete(physx_PxSyncImpl_Pod* self__pod) { + physx::PxSyncImpl* self_ = reinterpret_cast(self__pod); + delete self_; + } + + bool PxSyncImpl_wait_mut(physx_PxSyncImpl_Pod* self__pod, uint32_t milliseconds) { + physx::PxSyncImpl* self_ = reinterpret_cast(self__pod); + bool return_val = self_->wait(milliseconds); + return return_val; + } + + void PxSyncImpl_set_mut(physx_PxSyncImpl_Pod* self__pod) { + physx::PxSyncImpl* self_ = reinterpret_cast(self__pod); + self_->set(); + } + + void PxSyncImpl_reset_mut(physx_PxSyncImpl_Pod* self__pod) { + physx::PxSyncImpl* self_ = reinterpret_cast(self__pod); + self_->reset(); + } + + uint32_t PxSyncImpl_getSize() { + uint32_t return_val = PxSyncImpl::getSize(); + return return_val; + } + + physx_PxRunnable_Pod* PxRunnable_new_alloc() { + auto return_val = new physx::PxRunnable(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxRunnable_delete(physx_PxRunnable_Pod* self__pod) { + physx::PxRunnable* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxRunnable_execute_mut(physx_PxRunnable_Pod* self__pod) { + physx::PxRunnable* self_ = reinterpret_cast(self__pod); + self_->execute(); + } + + uint32_t phys_PxTlsAlloc() { + uint32_t return_val = PxTlsAlloc(); + return return_val; + } + + void phys_PxTlsFree(uint32_t index) { + PxTlsFree(index); + } + + void* phys_PxTlsGet(uint32_t index) { + void* return_val = PxTlsGet(index); + return return_val; + } + + size_t phys_PxTlsGetValue(uint32_t index) { + size_t return_val = PxTlsGetValue(index); + size_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t phys_PxTlsSet(uint32_t index, void* value) { + uint32_t return_val = PxTlsSet(index, value); + return return_val; + } + + uint32_t phys_PxTlsSetValue(uint32_t index, size_t value_pod) { + size_t value; + memcpy(&value, &value_pod, sizeof(value)); + uint32_t return_val = PxTlsSetValue(index, value); + return return_val; + } + + physx_PxCounterFrequencyToTensOfNanos_Pod PxCounterFrequencyToTensOfNanos_new(uint64_t inNum, uint64_t inDenom) { + PxCounterFrequencyToTensOfNanos return_val(inNum, inDenom); + physx_PxCounterFrequencyToTensOfNanos_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint64_t PxCounterFrequencyToTensOfNanos_toTensOfNanos(physx_PxCounterFrequencyToTensOfNanos_Pod const* self__pod, uint64_t inCounter) { + physx::PxCounterFrequencyToTensOfNanos const* self_ = reinterpret_cast(self__pod); + uint64_t return_val = self_->toTensOfNanos(inCounter); + return return_val; + } + + physx_PxCounterFrequencyToTensOfNanos_Pod const* PxTime_getBootCounterFrequency() { + physx::PxCounterFrequencyToTensOfNanos const& return_val = PxTime::getBootCounterFrequency(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxCounterFrequencyToTensOfNanos_Pod PxTime_getCounterFrequency() { + physx::PxCounterFrequencyToTensOfNanos return_val = PxTime::getCounterFrequency(); + physx_PxCounterFrequencyToTensOfNanos_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint64_t PxTime_getCurrentCounterValue() { + uint64_t return_val = PxTime::getCurrentCounterValue(); + return return_val; + } + + uint64_t PxTime_getCurrentTimeInTensOfNanoSeconds() { + uint64_t return_val = PxTime::getCurrentTimeInTensOfNanoSeconds(); + return return_val; + } + + physx_PxTime_Pod PxTime_new() { + PxTime return_val; + physx_PxTime_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + double PxTime_getElapsedSeconds_mut(physx_PxTime_Pod* self__pod) { + physx::PxTime* self_ = reinterpret_cast(self__pod); + double return_val = self_->getElapsedSeconds(); + return return_val; + } + + double PxTime_peekElapsedSeconds_mut(physx_PxTime_Pod* self__pod) { + physx::PxTime* self_ = reinterpret_cast(self__pod); + double return_val = self_->peekElapsedSeconds(); + return return_val; + } + + double PxTime_getLastTime(physx_PxTime_Pod const* self__pod) { + physx::PxTime const* self_ = reinterpret_cast(self__pod); + double return_val = self_->getLastTime(); + return return_val; + } + + physx_PxVec2_Pod PxVec2_new() { + PxVec2 return_val; + physx_PxVec2_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec2_Pod PxVec2_new_1(int32_t anon_param0_pod) { + auto anon_param0 = static_cast(anon_param0_pod); + PxVec2 return_val(anon_param0); + physx_PxVec2_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec2_Pod PxVec2_new_2(float a) { + PxVec2 return_val(a); + physx_PxVec2_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec2_Pod PxVec2_new_3(float nx, float ny) { + PxVec2 return_val(nx, ny); + physx_PxVec2_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxVec2_isZero(physx_PxVec2_Pod const* self__pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isZero(); + return return_val; + } + + bool PxVec2_isFinite(physx_PxVec2_Pod const* self__pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isFinite(); + return return_val; + } + + bool PxVec2_isNormalized(physx_PxVec2_Pod const* self__pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isNormalized(); + return return_val; + } + + float PxVec2_magnitudeSquared(physx_PxVec2_Pod const* self__pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->magnitudeSquared(); + return return_val; + } + + float PxVec2_magnitude(physx_PxVec2_Pod const* self__pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->magnitude(); + return return_val; + } + + float PxVec2_dot(physx_PxVec2_Pod const* self__pod, physx_PxVec2_Pod const* v_pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + physx::PxVec2 const& v = reinterpret_cast(*v_pod); + float return_val = self_->dot(v); + return return_val; + } + + physx_PxVec2_Pod PxVec2_getNormalized(physx_PxVec2_Pod const* self__pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + physx::PxVec2 return_val = self_->getNormalized(); + physx_PxVec2_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxVec2_normalize_mut(physx_PxVec2_Pod* self__pod) { + physx::PxVec2* self_ = reinterpret_cast(self__pod); + float return_val = self_->normalize(); + return return_val; + } + + physx_PxVec2_Pod PxVec2_multiply(physx_PxVec2_Pod const* self__pod, physx_PxVec2_Pod const* a_pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + physx::PxVec2 const& a = reinterpret_cast(*a_pod); + physx::PxVec2 return_val = self_->multiply(a); + physx_PxVec2_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec2_Pod PxVec2_minimum(physx_PxVec2_Pod const* self__pod, physx_PxVec2_Pod const* v_pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + physx::PxVec2 const& v = reinterpret_cast(*v_pod); + physx::PxVec2 return_val = self_->minimum(v); + physx_PxVec2_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxVec2_minElement(physx_PxVec2_Pod const* self__pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->minElement(); + return return_val; + } + + physx_PxVec2_Pod PxVec2_maximum(physx_PxVec2_Pod const* self__pod, physx_PxVec2_Pod const* v_pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + physx::PxVec2 const& v = reinterpret_cast(*v_pod); + physx::PxVec2 return_val = self_->maximum(v); + physx_PxVec2_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxVec2_maxElement(physx_PxVec2_Pod const* self__pod) { + physx::PxVec2 const* self_ = reinterpret_cast(self__pod); + float return_val = self_->maxElement(); + return return_val; + } + + physx_PxStridedData_Pod PxStridedData_new() { + PxStridedData return_val; + physx_PxStridedData_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBoundedData_Pod PxBoundedData_new() { + PxBoundedData return_val; + physx_PxBoundedData_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxDebugPoint_Pod PxDebugPoint_new(physx_PxVec3_Pod const* p_pod, uint32_t const* c_pod) { + physx::PxVec3 const& p = reinterpret_cast(*p_pod); + uint32_t const& c = *c_pod; + PxDebugPoint return_val(p, c); + physx_PxDebugPoint_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxDebugLine_Pod PxDebugLine_new(physx_PxVec3_Pod const* p0_pod, physx_PxVec3_Pod const* p1_pod, uint32_t const* c_pod) { + physx::PxVec3 const& p0 = reinterpret_cast(*p0_pod); + physx::PxVec3 const& p1 = reinterpret_cast(*p1_pod); + uint32_t const& c = *c_pod; + PxDebugLine return_val(p0, p1, c); + physx_PxDebugLine_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxDebugTriangle_Pod PxDebugTriangle_new(physx_PxVec3_Pod const* p0_pod, physx_PxVec3_Pod const* p1_pod, physx_PxVec3_Pod const* p2_pod, uint32_t const* c_pod) { + physx::PxVec3 const& p0 = reinterpret_cast(*p0_pod); + physx::PxVec3 const& p1 = reinterpret_cast(*p1_pod); + physx::PxVec3 const& p2 = reinterpret_cast(*p2_pod); + uint32_t const& c = *c_pod; + PxDebugTriangle return_val(p0, p1, p2, c); + physx_PxDebugTriangle_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxDebugText_Pod PxDebugText_new() { + PxDebugText return_val; + physx_PxDebugText_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxDebugText_Pod PxDebugText_new_1(physx_PxVec3_Pod const* pos_pod, float const* sz_pod, uint32_t const* clr_pod, char const* str) { + physx::PxVec3 const& pos = reinterpret_cast(*pos_pod); + float const& sz = *sz_pod; + uint32_t const& clr = *clr_pod; + PxDebugText return_val(pos, sz, clr, str); + physx_PxDebugText_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRenderBuffer_delete(physx_PxRenderBuffer_Pod* self__pod) { + physx::PxRenderBuffer* self_ = reinterpret_cast(self__pod); + delete self_; + } + + uint32_t PxRenderBuffer_getNbPoints(physx_PxRenderBuffer_Pod const* self__pod) { + physx::PxRenderBuffer const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbPoints(); + return return_val; + } + + physx_PxDebugPoint_Pod const* PxRenderBuffer_getPoints(physx_PxRenderBuffer_Pod const* self__pod) { + physx::PxRenderBuffer const* self_ = reinterpret_cast(self__pod); + physx::PxDebugPoint const* return_val = self_->getPoints(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxRenderBuffer_addPoint_mut(physx_PxRenderBuffer_Pod* self__pod, physx_PxDebugPoint_Pod const* point_pod) { + physx::PxRenderBuffer* self_ = reinterpret_cast(self__pod); + physx::PxDebugPoint const& point = reinterpret_cast(*point_pod); + self_->addPoint(point); + } + + uint32_t PxRenderBuffer_getNbLines(physx_PxRenderBuffer_Pod const* self__pod) { + physx::PxRenderBuffer const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbLines(); + return return_val; + } + + physx_PxDebugLine_Pod const* PxRenderBuffer_getLines(physx_PxRenderBuffer_Pod const* self__pod) { + physx::PxRenderBuffer const* self_ = reinterpret_cast(self__pod); + physx::PxDebugLine const* return_val = self_->getLines(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxRenderBuffer_addLine_mut(physx_PxRenderBuffer_Pod* self__pod, physx_PxDebugLine_Pod const* line_pod) { + physx::PxRenderBuffer* self_ = reinterpret_cast(self__pod); + physx::PxDebugLine const& line = reinterpret_cast(*line_pod); + self_->addLine(line); + } + + physx_PxDebugLine_Pod* PxRenderBuffer_reserveLines_mut(physx_PxRenderBuffer_Pod* self__pod, uint32_t nbLines) { + physx::PxRenderBuffer* self_ = reinterpret_cast(self__pod); + physx::PxDebugLine* return_val = self_->reserveLines(nbLines); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxDebugPoint_Pod* PxRenderBuffer_reservePoints_mut(physx_PxRenderBuffer_Pod* self__pod, uint32_t nbLines) { + physx::PxRenderBuffer* self_ = reinterpret_cast(self__pod); + physx::PxDebugPoint* return_val = self_->reservePoints(nbLines); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxRenderBuffer_getNbTriangles(physx_PxRenderBuffer_Pod const* self__pod) { + physx::PxRenderBuffer const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbTriangles(); + return return_val; + } + + physx_PxDebugTriangle_Pod const* PxRenderBuffer_getTriangles(physx_PxRenderBuffer_Pod const* self__pod) { + physx::PxRenderBuffer const* self_ = reinterpret_cast(self__pod); + physx::PxDebugTriangle const* return_val = self_->getTriangles(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxRenderBuffer_addTriangle_mut(physx_PxRenderBuffer_Pod* self__pod, physx_PxDebugTriangle_Pod const* triangle_pod) { + physx::PxRenderBuffer* self_ = reinterpret_cast(self__pod); + physx::PxDebugTriangle const& triangle = reinterpret_cast(*triangle_pod); + self_->addTriangle(triangle); + } + + void PxRenderBuffer_append_mut(physx_PxRenderBuffer_Pod* self__pod, physx_PxRenderBuffer_Pod const* other_pod) { + physx::PxRenderBuffer* self_ = reinterpret_cast(self__pod); + physx::PxRenderBuffer const& other = reinterpret_cast(*other_pod); + self_->append(other); + } + + void PxRenderBuffer_clear_mut(physx_PxRenderBuffer_Pod* self__pod) { + physx::PxRenderBuffer* self_ = reinterpret_cast(self__pod); + self_->clear(); + } + + void PxRenderBuffer_shift_mut(physx_PxRenderBuffer_Pod* self__pod, physx_PxVec3_Pod const* delta_pod) { + physx::PxRenderBuffer* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& delta = reinterpret_cast(*delta_pod); + self_->shift(delta); + } + + bool PxRenderBuffer_empty(physx_PxRenderBuffer_Pod const* self__pod) { + physx::PxRenderBuffer const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->empty(); + return return_val; + } + + void PxProcessPxBaseCallback_delete(physx_PxProcessPxBaseCallback_Pod* self__pod) { + physx::PxProcessPxBaseCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxProcessPxBaseCallback_process_mut(physx_PxProcessPxBaseCallback_Pod* self__pod, physx_PxBase_Pod* anon_param0_pod) { + physx::PxProcessPxBaseCallback* self_ = reinterpret_cast(self__pod); + physx::PxBase& anon_param0 = reinterpret_cast(*anon_param0_pod); + self_->process(anon_param0); + } + + void PxSerializationContext_registerReference_mut(physx_PxSerializationContext_Pod* self__pod, physx_PxBase_Pod* base_pod, uint32_t kind, size_t reference_pod) { + physx::PxSerializationContext* self_ = reinterpret_cast(self__pod); + physx::PxBase& base = reinterpret_cast(*base_pod); + size_t reference; + memcpy(&reference, &reference_pod, sizeof(reference)); + self_->registerReference(base, kind, reference); + } + + physx_PxCollection_Pod const* PxSerializationContext_getCollection(physx_PxSerializationContext_Pod const* self__pod) { + physx::PxSerializationContext const* self_ = reinterpret_cast(self__pod); + physx::PxCollection const& return_val = self_->getCollection(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void PxSerializationContext_writeData_mut(physx_PxSerializationContext_Pod* self__pod, void const* data, uint32_t size) { + physx::PxSerializationContext* self_ = reinterpret_cast(self__pod); + self_->writeData(data, size); + } + + void PxSerializationContext_alignData_mut(physx_PxSerializationContext_Pod* self__pod, uint32_t alignment) { + physx::PxSerializationContext* self_ = reinterpret_cast(self__pod); + self_->alignData(alignment); + } + + void PxSerializationContext_writeName_mut(physx_PxSerializationContext_Pod* self__pod, char const* name) { + physx::PxSerializationContext* self_ = reinterpret_cast(self__pod); + self_->writeName(name); + } + + physx_PxBase_Pod* PxDeserializationContext_resolveReference(physx_PxDeserializationContext_Pod const* self__pod, uint32_t kind, size_t reference_pod) { + physx::PxDeserializationContext const* self_ = reinterpret_cast(self__pod); + size_t reference; + memcpy(&reference, &reference_pod, sizeof(reference)); + physx::PxBase* return_val = self_->resolveReference(kind, reference); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxDeserializationContext_readName_mut(physx_PxDeserializationContext_Pod* self__pod, char const** name_pod) { + physx::PxDeserializationContext* self_ = reinterpret_cast(self__pod); + char const*& name = reinterpret_cast(*name_pod); + self_->readName(name); + } + + void PxDeserializationContext_alignExtraData_mut(physx_PxDeserializationContext_Pod* self__pod, uint32_t alignment) { + physx::PxDeserializationContext* self_ = reinterpret_cast(self__pod); + self_->alignExtraData(alignment); + } + + void PxSerializationRegistry_registerSerializer_mut(physx_PxSerializationRegistry_Pod* self__pod, uint16_t type, physx_PxSerializer_Pod* serializer_pod) { + physx::PxSerializationRegistry* self_ = reinterpret_cast(self__pod); + physx::PxSerializer& serializer = reinterpret_cast(*serializer_pod); + self_->registerSerializer(type, serializer); + } + + physx_PxSerializer_Pod* PxSerializationRegistry_unregisterSerializer_mut(physx_PxSerializationRegistry_Pod* self__pod, uint16_t type) { + physx::PxSerializationRegistry* self_ = reinterpret_cast(self__pod); + physx::PxSerializer* return_val = self_->unregisterSerializer(type); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSerializer_Pod const* PxSerializationRegistry_getSerializer(physx_PxSerializationRegistry_Pod const* self__pod, uint16_t type) { + physx::PxSerializationRegistry const* self_ = reinterpret_cast(self__pod); + physx::PxSerializer const* return_val = self_->getSerializer(type); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxSerializationRegistry_registerRepXSerializer_mut(physx_PxSerializationRegistry_Pod* self__pod, uint16_t type, physx_PxRepXSerializer_Pod* serializer_pod) { + physx::PxSerializationRegistry* self_ = reinterpret_cast(self__pod); + physx::PxRepXSerializer& serializer = reinterpret_cast(*serializer_pod); + self_->registerRepXSerializer(type, serializer); + } + + physx_PxRepXSerializer_Pod* PxSerializationRegistry_unregisterRepXSerializer_mut(physx_PxSerializationRegistry_Pod* self__pod, uint16_t type) { + physx::PxSerializationRegistry* self_ = reinterpret_cast(self__pod); + physx::PxRepXSerializer* return_val = self_->unregisterRepXSerializer(type); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxRepXSerializer_Pod* PxSerializationRegistry_getRepXSerializer(physx_PxSerializationRegistry_Pod const* self__pod, char const* typeName) { + physx::PxSerializationRegistry const* self_ = reinterpret_cast(self__pod); + physx::PxRepXSerializer* return_val = self_->getRepXSerializer(typeName); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxSerializationRegistry_release_mut(physx_PxSerializationRegistry_Pod* self__pod) { + physx::PxSerializationRegistry* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + void PxCollection_add_mut(physx_PxCollection_Pod* self__pod, physx_PxBase_Pod* object_pod, uint64_t id) { + physx::PxCollection* self_ = reinterpret_cast(self__pod); + physx::PxBase& object = reinterpret_cast(*object_pod); + self_->add(object, id); + } + + void PxCollection_remove_mut(physx_PxCollection_Pod* self__pod, physx_PxBase_Pod* object_pod) { + physx::PxCollection* self_ = reinterpret_cast(self__pod); + physx::PxBase& object = reinterpret_cast(*object_pod); + self_->remove(object); + } + + bool PxCollection_contains(physx_PxCollection_Pod const* self__pod, physx_PxBase_Pod* object_pod) { + physx::PxCollection const* self_ = reinterpret_cast(self__pod); + physx::PxBase& object = reinterpret_cast(*object_pod); + bool return_val = self_->contains(object); + return return_val; + } + + void PxCollection_addId_mut(physx_PxCollection_Pod* self__pod, physx_PxBase_Pod* object_pod, uint64_t id) { + physx::PxCollection* self_ = reinterpret_cast(self__pod); + physx::PxBase& object = reinterpret_cast(*object_pod); + self_->addId(object, id); + } + + void PxCollection_removeId_mut(physx_PxCollection_Pod* self__pod, uint64_t id) { + physx::PxCollection* self_ = reinterpret_cast(self__pod); + self_->removeId(id); + } + + void PxCollection_add_mut_1(physx_PxCollection_Pod* self__pod, physx_PxCollection_Pod* collection_pod) { + physx::PxCollection* self_ = reinterpret_cast(self__pod); + physx::PxCollection& collection = reinterpret_cast(*collection_pod); + self_->add(collection); + } + + void PxCollection_remove_mut_1(physx_PxCollection_Pod* self__pod, physx_PxCollection_Pod* collection_pod) { + physx::PxCollection* self_ = reinterpret_cast(self__pod); + physx::PxCollection& collection = reinterpret_cast(*collection_pod); + self_->remove(collection); + } + + uint32_t PxCollection_getNbObjects(physx_PxCollection_Pod const* self__pod) { + physx::PxCollection const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbObjects(); + return return_val; + } + + physx_PxBase_Pod* PxCollection_getObject(physx_PxCollection_Pod const* self__pod, uint32_t index) { + physx::PxCollection const* self_ = reinterpret_cast(self__pod); + physx::PxBase& return_val = self_->getObject(index); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + uint32_t PxCollection_getObjects(physx_PxCollection_Pod const* self__pod, physx_PxBase_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxCollection const* self_ = reinterpret_cast(self__pod); + physx::PxBase** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getObjects(userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxBase_Pod* PxCollection_find(physx_PxCollection_Pod const* self__pod, uint64_t id) { + physx::PxCollection const* self_ = reinterpret_cast(self__pod); + physx::PxBase* return_val = self_->find(id); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxCollection_getNbIds(physx_PxCollection_Pod const* self__pod) { + physx::PxCollection const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbIds(); + return return_val; + } + + uint32_t PxCollection_getIds(physx_PxCollection_Pod const* self__pod, uint64_t* userBuffer, uint32_t bufferSize, uint32_t startIndex) { + physx::PxCollection const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getIds(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint64_t PxCollection_getId(physx_PxCollection_Pod const* self__pod, physx_PxBase_Pod const* object_pod) { + physx::PxCollection const* self_ = reinterpret_cast(self__pod); + physx::PxBase const& object = reinterpret_cast(*object_pod); + uint64_t return_val = self_->getId(object); + return return_val; + } + + void PxCollection_release_mut(physx_PxCollection_Pod* self__pod) { + physx::PxCollection* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxCollection_Pod* phys_PxCreateCollection() { + physx::PxCollection* return_val = PxCreateCollection(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxBase_release_mut(physx_PxBase_Pod* self__pod) { + physx::PxBase* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + char const* PxBase_getConcreteTypeName(physx_PxBase_Pod const* self__pod) { + physx::PxBase const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + uint16_t PxBase_getConcreteType(physx_PxBase_Pod const* self__pod) { + physx::PxBase const* self_ = reinterpret_cast(self__pod); + uint16_t return_val = self_->getConcreteType(); + return return_val; + } + + void PxBase_setBaseFlag_mut(physx_PxBase_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxBase* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setBaseFlag(flag, value); + } + + void PxBase_setBaseFlags_mut(physx_PxBase_Pod* self__pod, uint16_t inFlags_pod) { + physx::PxBase* self_ = reinterpret_cast(self__pod); + auto inFlags = physx::PxBaseFlags(inFlags_pod); + self_->setBaseFlags(inFlags); + } + + uint16_t PxBase_getBaseFlags(physx_PxBase_Pod const* self__pod) { + physx::PxBase const* self_ = reinterpret_cast(self__pod); + physx::PxBaseFlags return_val = self_->getBaseFlags(); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxBase_isReleasable(physx_PxBase_Pod const* self__pod) { + physx::PxBase const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isReleasable(); + return return_val; + } + + void PxRefCounted_release_mut(physx_PxRefCounted_Pod* self__pod) { + physx::PxRefCounted* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + uint32_t PxRefCounted_getReferenceCount(physx_PxRefCounted_Pod const* self__pod) { + physx::PxRefCounted const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getReferenceCount(); + return return_val; + } + + void PxRefCounted_acquireReference_mut(physx_PxRefCounted_Pod* self__pod) { + physx::PxRefCounted* self_ = reinterpret_cast(self__pod); + self_->acquireReference(); + } + + physx_PxTolerancesScale_Pod PxTolerancesScale_new(float defaultLength, float defaultSpeed) { + PxTolerancesScale return_val(defaultLength, defaultSpeed); + physx_PxTolerancesScale_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxTolerancesScale_isValid(physx_PxTolerancesScale_Pod const* self__pod) { + physx::PxTolerancesScale const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + char const* PxStringTable_allocateStr_mut(physx_PxStringTable_Pod* self__pod, char const* inSrc) { + physx::PxStringTable* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->allocateStr(inSrc); + return return_val; + } + + void PxStringTable_release_mut(physx_PxStringTable_Pod* self__pod) { + physx::PxStringTable* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + char const* PxSerializer_getConcreteTypeName(physx_PxSerializer_Pod const* self__pod) { + physx::PxSerializer const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + void PxSerializer_requiresObjects(physx_PxSerializer_Pod const* self__pod, physx_PxBase_Pod* anon_param0_pod, physx_PxProcessPxBaseCallback_Pod* anon_param1_pod) { + physx::PxSerializer const* self_ = reinterpret_cast(self__pod); + physx::PxBase& anon_param0 = reinterpret_cast(*anon_param0_pod); + physx::PxProcessPxBaseCallback& anon_param1 = reinterpret_cast(*anon_param1_pod); + self_->requiresObjects(anon_param0, anon_param1); + } + + bool PxSerializer_isSubordinate(physx_PxSerializer_Pod const* self__pod) { + physx::PxSerializer const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isSubordinate(); + return return_val; + } + + void PxSerializer_exportExtraData(physx_PxSerializer_Pod const* self__pod, physx_PxBase_Pod* anon_param0_pod, physx_PxSerializationContext_Pod* anon_param1_pod) { + physx::PxSerializer const* self_ = reinterpret_cast(self__pod); + physx::PxBase& anon_param0 = reinterpret_cast(*anon_param0_pod); + physx::PxSerializationContext& anon_param1 = reinterpret_cast(*anon_param1_pod); + self_->exportExtraData(anon_param0, anon_param1); + } + + void PxSerializer_exportData(physx_PxSerializer_Pod const* self__pod, physx_PxBase_Pod* anon_param0_pod, physx_PxSerializationContext_Pod* anon_param1_pod) { + physx::PxSerializer const* self_ = reinterpret_cast(self__pod); + physx::PxBase& anon_param0 = reinterpret_cast(*anon_param0_pod); + physx::PxSerializationContext& anon_param1 = reinterpret_cast(*anon_param1_pod); + self_->exportData(anon_param0, anon_param1); + } + + void PxSerializer_registerReferences(physx_PxSerializer_Pod const* self__pod, physx_PxBase_Pod* obj_pod, physx_PxSerializationContext_Pod* s_pod) { + physx::PxSerializer const* self_ = reinterpret_cast(self__pod); + physx::PxBase& obj = reinterpret_cast(*obj_pod); + physx::PxSerializationContext& s = reinterpret_cast(*s_pod); + self_->registerReferences(obj, s); + } + + size_t PxSerializer_getClassSize(physx_PxSerializer_Pod const* self__pod) { + physx::PxSerializer const* self_ = reinterpret_cast(self__pod); + size_t return_val = self_->getClassSize(); + size_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBase_Pod* PxSerializer_createObject(physx_PxSerializer_Pod const* self__pod, uint8_t** address_pod, physx_PxDeserializationContext_Pod* context_pod) { + physx::PxSerializer const* self_ = reinterpret_cast(self__pod); + uint8_t*& address = reinterpret_cast(*address_pod); + physx::PxDeserializationContext& context = reinterpret_cast(*context_pod); + physx::PxBase* return_val = self_->createObject(address, context); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxSerializer_delete(physx_PxSerializer_Pod* self__pod) { + physx::PxSerializer* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxBase_Pod* PxInsertionCallback_buildObjectFromData_mut(physx_PxInsertionCallback_Pod* self__pod, int32_t type_pod, void* data) { + physx::PxInsertionCallback* self_ = reinterpret_cast(self__pod); + auto type = static_cast(type_pod); + physx::PxBase* return_val = self_->buildObjectFromData(type, data); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxTaskManager_setCpuDispatcher_mut(physx_PxTaskManager_Pod* self__pod, physx_PxCpuDispatcher_Pod* ref_pod) { + physx::PxTaskManager* self_ = reinterpret_cast(self__pod); + physx::PxCpuDispatcher& ref = reinterpret_cast(*ref_pod); + self_->setCpuDispatcher(ref); + } + + physx_PxCpuDispatcher_Pod* PxTaskManager_getCpuDispatcher(physx_PxTaskManager_Pod const* self__pod) { + physx::PxTaskManager const* self_ = reinterpret_cast(self__pod); + physx::PxCpuDispatcher* return_val = self_->getCpuDispatcher(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxTaskManager_resetDependencies_mut(physx_PxTaskManager_Pod* self__pod) { + physx::PxTaskManager* self_ = reinterpret_cast(self__pod); + self_->resetDependencies(); + } + + void PxTaskManager_startSimulation_mut(physx_PxTaskManager_Pod* self__pod) { + physx::PxTaskManager* self_ = reinterpret_cast(self__pod); + self_->startSimulation(); + } + + void PxTaskManager_stopSimulation_mut(physx_PxTaskManager_Pod* self__pod) { + physx::PxTaskManager* self_ = reinterpret_cast(self__pod); + self_->stopSimulation(); + } + + void PxTaskManager_taskCompleted_mut(physx_PxTaskManager_Pod* self__pod, physx_PxTask_Pod* task_pod) { + physx::PxTaskManager* self_ = reinterpret_cast(self__pod); + physx::PxTask& task = reinterpret_cast(*task_pod); + self_->taskCompleted(task); + } + + uint32_t PxTaskManager_getNamedTask_mut(physx_PxTaskManager_Pod* self__pod, char const* name) { + physx::PxTaskManager* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNamedTask(name); + return return_val; + } + + uint32_t PxTaskManager_submitNamedTask_mut(physx_PxTaskManager_Pod* self__pod, physx_PxTask_Pod* task_pod, char const* name, int32_t type_pod) { + physx::PxTaskManager* self_ = reinterpret_cast(self__pod); + physx::PxTask* task = reinterpret_cast(task_pod); + auto type = static_cast(type_pod); + uint32_t return_val = self_->submitNamedTask(task, name, type); + return return_val; + } + + uint32_t PxTaskManager_submitUnnamedTask_mut(physx_PxTaskManager_Pod* self__pod, physx_PxTask_Pod* task_pod, int32_t type_pod) { + physx::PxTaskManager* self_ = reinterpret_cast(self__pod); + physx::PxTask& task = reinterpret_cast(*task_pod); + auto type = static_cast(type_pod); + uint32_t return_val = self_->submitUnnamedTask(task, type); + return return_val; + } + + physx_PxTask_Pod* PxTaskManager_getTaskFromID_mut(physx_PxTaskManager_Pod* self__pod, uint32_t id) { + physx::PxTaskManager* self_ = reinterpret_cast(self__pod); + physx::PxTask* return_val = self_->getTaskFromID(id); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxTaskManager_release_mut(physx_PxTaskManager_Pod* self__pod) { + physx::PxTaskManager* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxTaskManager_Pod* PxTaskManager_createTaskManager(physx_PxErrorCallback_Pod* errorCallback_pod, physx_PxCpuDispatcher_Pod* anon_param1_pod) { + physx::PxErrorCallback& errorCallback = reinterpret_cast(*errorCallback_pod); + physx::PxCpuDispatcher* anon_param1 = reinterpret_cast(anon_param1_pod); + physx::PxTaskManager* return_val = PxTaskManager::createTaskManager(errorCallback, anon_param1); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxCpuDispatcher_submitTask_mut(physx_PxCpuDispatcher_Pod* self__pod, physx_PxBaseTask_Pod* task_pod) { + physx::PxCpuDispatcher* self_ = reinterpret_cast(self__pod); + physx::PxBaseTask& task = reinterpret_cast(*task_pod); + self_->submitTask(task); + } + + uint32_t PxCpuDispatcher_getWorkerCount(physx_PxCpuDispatcher_Pod const* self__pod) { + physx::PxCpuDispatcher const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getWorkerCount(); + return return_val; + } + + void PxCpuDispatcher_delete(physx_PxCpuDispatcher_Pod* self__pod) { + physx::PxCpuDispatcher* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxBaseTask_run_mut(physx_PxBaseTask_Pod* self__pod) { + physx::PxBaseTask* self_ = reinterpret_cast(self__pod); + self_->run(); + } + + char const* PxBaseTask_getName(physx_PxBaseTask_Pod const* self__pod) { + physx::PxBaseTask const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getName(); + return return_val; + } + + void PxBaseTask_addReference_mut(physx_PxBaseTask_Pod* self__pod) { + physx::PxBaseTask* self_ = reinterpret_cast(self__pod); + self_->addReference(); + } + + void PxBaseTask_removeReference_mut(physx_PxBaseTask_Pod* self__pod) { + physx::PxBaseTask* self_ = reinterpret_cast(self__pod); + self_->removeReference(); + } + + int32_t PxBaseTask_getReference(physx_PxBaseTask_Pod const* self__pod) { + physx::PxBaseTask const* self_ = reinterpret_cast(self__pod); + int32_t return_val = self_->getReference(); + return return_val; + } + + void PxBaseTask_release_mut(physx_PxBaseTask_Pod* self__pod) { + physx::PxBaseTask* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxTaskManager_Pod* PxBaseTask_getTaskManager(physx_PxBaseTask_Pod const* self__pod) { + physx::PxBaseTask const* self_ = reinterpret_cast(self__pod); + physx::PxTaskManager* return_val = self_->getTaskManager(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxBaseTask_setContextId_mut(physx_PxBaseTask_Pod* self__pod, uint64_t id) { + physx::PxBaseTask* self_ = reinterpret_cast(self__pod); + self_->setContextId(id); + } + + uint64_t PxBaseTask_getContextId(physx_PxBaseTask_Pod const* self__pod) { + physx::PxBaseTask const* self_ = reinterpret_cast(self__pod); + uint64_t return_val = self_->getContextId(); + return return_val; + } + + void PxTask_release_mut(physx_PxTask_Pod* self__pod) { + physx::PxTask* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + void PxTask_finishBefore_mut(physx_PxTask_Pod* self__pod, uint32_t taskID) { + physx::PxTask* self_ = reinterpret_cast(self__pod); + self_->finishBefore(taskID); + } + + void PxTask_startAfter_mut(physx_PxTask_Pod* self__pod, uint32_t taskID) { + physx::PxTask* self_ = reinterpret_cast(self__pod); + self_->startAfter(taskID); + } + + void PxTask_addReference_mut(physx_PxTask_Pod* self__pod) { + physx::PxTask* self_ = reinterpret_cast(self__pod); + self_->addReference(); + } + + void PxTask_removeReference_mut(physx_PxTask_Pod* self__pod) { + physx::PxTask* self_ = reinterpret_cast(self__pod); + self_->removeReference(); + } + + int32_t PxTask_getReference(physx_PxTask_Pod const* self__pod) { + physx::PxTask const* self_ = reinterpret_cast(self__pod); + int32_t return_val = self_->getReference(); + return return_val; + } + + uint32_t PxTask_getTaskID(physx_PxTask_Pod const* self__pod) { + physx::PxTask const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getTaskID(); + return return_val; + } + + void PxTask_submitted_mut(physx_PxTask_Pod* self__pod) { + physx::PxTask* self_ = reinterpret_cast(self__pod); + self_->submitted(); + } + + void PxLightCpuTask_setContinuation_mut(physx_PxLightCpuTask_Pod* self__pod, physx_PxTaskManager_Pod* tm_pod, physx_PxBaseTask_Pod* c_pod) { + physx::PxLightCpuTask* self_ = reinterpret_cast(self__pod); + physx::PxTaskManager& tm = reinterpret_cast(*tm_pod); + physx::PxBaseTask* c = reinterpret_cast(c_pod); + self_->setContinuation(tm, c); + } + + void PxLightCpuTask_setContinuation_mut_1(physx_PxLightCpuTask_Pod* self__pod, physx_PxBaseTask_Pod* c_pod) { + physx::PxLightCpuTask* self_ = reinterpret_cast(self__pod); + physx::PxBaseTask* c = reinterpret_cast(c_pod); + self_->setContinuation(c); + } + + physx_PxBaseTask_Pod* PxLightCpuTask_getContinuation(physx_PxLightCpuTask_Pod const* self__pod) { + physx::PxLightCpuTask const* self_ = reinterpret_cast(self__pod); + physx::PxBaseTask* return_val = self_->getContinuation(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxLightCpuTask_removeReference_mut(physx_PxLightCpuTask_Pod* self__pod) { + physx::PxLightCpuTask* self_ = reinterpret_cast(self__pod); + self_->removeReference(); + } + + int32_t PxLightCpuTask_getReference(physx_PxLightCpuTask_Pod const* self__pod) { + physx::PxLightCpuTask const* self_ = reinterpret_cast(self__pod); + int32_t return_val = self_->getReference(); + return return_val; + } + + void PxLightCpuTask_addReference_mut(physx_PxLightCpuTask_Pod* self__pod) { + physx::PxLightCpuTask* self_ = reinterpret_cast(self__pod); + self_->addReference(); + } + + void PxLightCpuTask_release_mut(physx_PxLightCpuTask_Pod* self__pod) { + physx::PxLightCpuTask* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + int32_t PxGeometry_getType(physx_PxGeometry_Pod const* self__pod) { + physx::PxGeometry const* self_ = reinterpret_cast(self__pod); + physx::PxGeometryType::Enum return_val = self_->getType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBoxGeometry_Pod PxBoxGeometry_new(float hx, float hy, float hz) { + PxBoxGeometry return_val(hx, hy, hz); + physx_PxBoxGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBoxGeometry_Pod PxBoxGeometry_new_1(physx_PxVec3_Pod halfExtents__pod) { + physx::PxVec3 halfExtents_; + memcpy(&halfExtents_, &halfExtents__pod, sizeof(halfExtents_)); + PxBoxGeometry return_val(halfExtents_); + physx_PxBoxGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxBoxGeometry_isValid(physx_PxBoxGeometry_Pod const* self__pod) { + physx::PxBoxGeometry const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxBVHRaycastCallback_delete(physx_PxBVHRaycastCallback_Pod* self__pod) { + physx::PxBVHRaycastCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + bool PxBVHRaycastCallback_reportHit_mut(physx_PxBVHRaycastCallback_Pod* self__pod, uint32_t boundsIndex, float* distance_pod) { + physx::PxBVHRaycastCallback* self_ = reinterpret_cast(self__pod); + float& distance = *distance_pod; + bool return_val = self_->reportHit(boundsIndex, distance); + return return_val; + } + + void PxBVHOverlapCallback_delete(physx_PxBVHOverlapCallback_Pod* self__pod) { + physx::PxBVHOverlapCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + bool PxBVHOverlapCallback_reportHit_mut(physx_PxBVHOverlapCallback_Pod* self__pod, uint32_t boundsIndex) { + physx::PxBVHOverlapCallback* self_ = reinterpret_cast(self__pod); + bool return_val = self_->reportHit(boundsIndex); + return return_val; + } + + void PxBVHTraversalCallback_delete(physx_PxBVHTraversalCallback_Pod* self__pod) { + physx::PxBVHTraversalCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + bool PxBVHTraversalCallback_visitNode_mut(physx_PxBVHTraversalCallback_Pod* self__pod, physx_PxBounds3_Pod const* bounds_pod) { + physx::PxBVHTraversalCallback* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const& bounds = reinterpret_cast(*bounds_pod); + bool return_val = self_->visitNode(bounds); + return return_val; + } + + bool PxBVHTraversalCallback_reportLeaf_mut(physx_PxBVHTraversalCallback_Pod* self__pod, uint32_t nbPrims, uint32_t const* prims) { + physx::PxBVHTraversalCallback* self_ = reinterpret_cast(self__pod); + bool return_val = self_->reportLeaf(nbPrims, prims); + return return_val; + } + + bool PxBVH_raycast(physx_PxBVH_Pod const* self__pod, physx_PxVec3_Pod const* origin_pod, physx_PxVec3_Pod const* unitDir_pod, float maxDist, physx_PxBVHRaycastCallback_Pod* cb_pod, uint32_t queryFlags_pod) { + physx::PxBVH const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& origin = reinterpret_cast(*origin_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + physx::PxBVHRaycastCallback& cb = reinterpret_cast(*cb_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + bool return_val = self_->raycast(origin, unitDir, maxDist, cb, queryFlags); + return return_val; + } + + bool PxBVH_sweep(physx_PxBVH_Pod const* self__pod, physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* pose_pod, physx_PxVec3_Pod const* unitDir_pod, float maxDist, physx_PxBVHRaycastCallback_Pod* cb_pod, uint32_t queryFlags_pod) { + physx::PxBVH const* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + physx::PxBVHRaycastCallback& cb = reinterpret_cast(*cb_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + bool return_val = self_->sweep(geom, pose, unitDir, maxDist, cb, queryFlags); + return return_val; + } + + bool PxBVH_overlap(physx_PxBVH_Pod const* self__pod, physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* pose_pod, physx_PxBVHOverlapCallback_Pod* cb_pod, uint32_t queryFlags_pod) { + physx::PxBVH const* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxBVHOverlapCallback& cb = reinterpret_cast(*cb_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + bool return_val = self_->overlap(geom, pose, cb, queryFlags); + return return_val; + } + + bool PxBVH_cull(physx_PxBVH_Pod const* self__pod, uint32_t nbPlanes, physx_PxPlane_Pod const* planes_pod, physx_PxBVHOverlapCallback_Pod* cb_pod, uint32_t queryFlags_pod) { + physx::PxBVH const* self_ = reinterpret_cast(self__pod); + physx::PxPlane const* planes = reinterpret_cast(planes_pod); + physx::PxBVHOverlapCallback& cb = reinterpret_cast(*cb_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + bool return_val = self_->cull(nbPlanes, planes, cb, queryFlags); + return return_val; + } + + uint32_t PxBVH_getNbBounds(physx_PxBVH_Pod const* self__pod) { + physx::PxBVH const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbBounds(); + return return_val; + } + + physx_PxBounds3_Pod const* PxBVH_getBounds(physx_PxBVH_Pod const* self__pod) { + physx::PxBVH const* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const* return_val = self_->getBounds(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxBounds3_Pod* PxBVH_getBoundsForModification_mut(physx_PxBVH_Pod* self__pod) { + physx::PxBVH* self_ = reinterpret_cast(self__pod); + physx::PxBounds3* return_val = self_->getBoundsForModification(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxBVH_refit_mut(physx_PxBVH_Pod* self__pod) { + physx::PxBVH* self_ = reinterpret_cast(self__pod); + self_->refit(); + } + + bool PxBVH_updateBounds_mut(physx_PxBVH_Pod* self__pod, uint32_t boundsIndex, physx_PxBounds3_Pod const* newBounds_pod) { + physx::PxBVH* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const& newBounds = reinterpret_cast(*newBounds_pod); + bool return_val = self_->updateBounds(boundsIndex, newBounds); + return return_val; + } + + void PxBVH_partialRefit_mut(physx_PxBVH_Pod* self__pod) { + physx::PxBVH* self_ = reinterpret_cast(self__pod); + self_->partialRefit(); + } + + bool PxBVH_traverse(physx_PxBVH_Pod const* self__pod, physx_PxBVHTraversalCallback_Pod* cb_pod) { + physx::PxBVH const* self_ = reinterpret_cast(self__pod); + physx::PxBVHTraversalCallback& cb = reinterpret_cast(*cb_pod); + bool return_val = self_->traverse(cb); + return return_val; + } + + char const* PxBVH_getConcreteTypeName(physx_PxBVH_Pod const* self__pod) { + physx::PxBVH const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxCapsuleGeometry_Pod PxCapsuleGeometry_new(float radius_, float halfHeight_) { + PxCapsuleGeometry return_val(radius_, halfHeight_); + physx_PxCapsuleGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxCapsuleGeometry_isValid(physx_PxCapsuleGeometry_Pod const* self__pod) { + physx::PxCapsuleGeometry const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + uint32_t PxConvexMesh_getNbVertices(physx_PxConvexMesh_Pod const* self__pod) { + physx::PxConvexMesh const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbVertices(); + return return_val; + } + + physx_PxVec3_Pod const* PxConvexMesh_getVertices(physx_PxConvexMesh_Pod const* self__pod) { + physx::PxConvexMesh const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const* return_val = self_->getVertices(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint8_t const* PxConvexMesh_getIndexBuffer(physx_PxConvexMesh_Pod const* self__pod) { + physx::PxConvexMesh const* self_ = reinterpret_cast(self__pod); + uint8_t const* return_val = self_->getIndexBuffer(); + return return_val; + } + + uint32_t PxConvexMesh_getNbPolygons(physx_PxConvexMesh_Pod const* self__pod) { + physx::PxConvexMesh const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbPolygons(); + return return_val; + } + + bool PxConvexMesh_getPolygonData(physx_PxConvexMesh_Pod const* self__pod, uint32_t index, physx_PxHullPolygon_Pod* data_pod) { + physx::PxConvexMesh const* self_ = reinterpret_cast(self__pod); + physx::PxHullPolygon& data = reinterpret_cast(*data_pod); + bool return_val = self_->getPolygonData(index, data); + return return_val; + } + + void PxConvexMesh_release_mut(physx_PxConvexMesh_Pod* self__pod) { + physx::PxConvexMesh* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + void PxConvexMesh_getMassInformation(physx_PxConvexMesh_Pod const* self__pod, float* mass_pod, physx_PxMat33_Pod* localInertia_pod, physx_PxVec3_Pod* localCenterOfMass_pod) { + physx::PxConvexMesh const* self_ = reinterpret_cast(self__pod); + float& mass = *mass_pod; + physx::PxMat33& localInertia = reinterpret_cast(*localInertia_pod); + physx::PxVec3& localCenterOfMass = reinterpret_cast(*localCenterOfMass_pod); + self_->getMassInformation(mass, localInertia, localCenterOfMass); + } + + physx_PxBounds3_Pod PxConvexMesh_getLocalBounds(physx_PxConvexMesh_Pod const* self__pod) { + physx::PxConvexMesh const* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 return_val = self_->getLocalBounds(); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float const* PxConvexMesh_getSDF(physx_PxConvexMesh_Pod const* self__pod) { + physx::PxConvexMesh const* self_ = reinterpret_cast(self__pod); + float const* return_val = self_->getSDF(); + return return_val; + } + + char const* PxConvexMesh_getConcreteTypeName(physx_PxConvexMesh_Pod const* self__pod) { + physx::PxConvexMesh const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + bool PxConvexMesh_isGpuCompatible(physx_PxConvexMesh_Pod const* self__pod) { + physx::PxConvexMesh const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isGpuCompatible(); + return return_val; + } + + physx_PxMeshScale_Pod PxMeshScale_new() { + PxMeshScale return_val; + physx_PxMeshScale_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMeshScale_Pod PxMeshScale_new_1(float r) { + PxMeshScale return_val(r); + physx_PxMeshScale_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMeshScale_Pod PxMeshScale_new_2(physx_PxVec3_Pod const* s_pod) { + physx::PxVec3 const& s = reinterpret_cast(*s_pod); + PxMeshScale return_val(s); + physx_PxMeshScale_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMeshScale_Pod PxMeshScale_new_3(physx_PxVec3_Pod const* s_pod, physx_PxQuat_Pod const* r_pod) { + physx::PxVec3 const& s = reinterpret_cast(*s_pod); + physx::PxQuat const& r = reinterpret_cast(*r_pod); + PxMeshScale return_val(s, r); + physx_PxMeshScale_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxMeshScale_isIdentity(physx_PxMeshScale_Pod const* self__pod) { + physx::PxMeshScale const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isIdentity(); + return return_val; + } + + physx_PxMeshScale_Pod PxMeshScale_getInverse(physx_PxMeshScale_Pod const* self__pod) { + physx::PxMeshScale const* self_ = reinterpret_cast(self__pod); + physx::PxMeshScale return_val = self_->getInverse(); + physx_PxMeshScale_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMeshScale_toMat33(physx_PxMeshScale_Pod const* self__pod) { + physx::PxMeshScale const* self_ = reinterpret_cast(self__pod); + physx::PxMat33 return_val = self_->toMat33(); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxMeshScale_hasNegativeDeterminant(physx_PxMeshScale_Pod const* self__pod) { + physx::PxMeshScale const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->hasNegativeDeterminant(); + return return_val; + } + + physx_PxVec3_Pod PxMeshScale_transform(physx_PxMeshScale_Pod const* self__pod, physx_PxVec3_Pod const* v_pod) { + physx::PxMeshScale const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + physx::PxVec3 return_val = self_->transform(v); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxMeshScale_isValidForTriangleMesh(physx_PxMeshScale_Pod const* self__pod) { + physx::PxMeshScale const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValidForTriangleMesh(); + return return_val; + } + + bool PxMeshScale_isValidForConvexMesh(physx_PxMeshScale_Pod const* self__pod) { + physx::PxMeshScale const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValidForConvexMesh(); + return return_val; + } + + physx_PxConvexMeshGeometry_Pod PxConvexMeshGeometry_new(physx_PxConvexMesh_Pod* mesh_pod, physx_PxMeshScale_Pod const* scaling_pod, uint8_t flags_pod) { + physx::PxConvexMesh* mesh = reinterpret_cast(mesh_pod); + physx::PxMeshScale const& scaling = reinterpret_cast(*scaling_pod); + auto flags = physx::PxConvexMeshGeometryFlags(flags_pod); + PxConvexMeshGeometry return_val(mesh, scaling, flags); + physx_PxConvexMeshGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxConvexMeshGeometry_isValid(physx_PxConvexMeshGeometry_Pod const* self__pod) { + physx::PxConvexMeshGeometry const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxSphereGeometry_Pod PxSphereGeometry_new(float ir) { + PxSphereGeometry return_val(ir); + physx_PxSphereGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxSphereGeometry_isValid(physx_PxSphereGeometry_Pod const* self__pod) { + physx::PxSphereGeometry const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxPlaneGeometry_Pod PxPlaneGeometry_new() { + PxPlaneGeometry return_val; + physx_PxPlaneGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxPlaneGeometry_isValid(physx_PxPlaneGeometry_Pod const* self__pod) { + physx::PxPlaneGeometry const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxTriangleMeshGeometry_Pod PxTriangleMeshGeometry_new(physx_PxTriangleMesh_Pod* mesh_pod, physx_PxMeshScale_Pod const* scaling_pod, uint8_t flags_pod) { + physx::PxTriangleMesh* mesh = reinterpret_cast(mesh_pod); + physx::PxMeshScale const& scaling = reinterpret_cast(*scaling_pod); + auto flags = physx::PxMeshGeometryFlags(flags_pod); + PxTriangleMeshGeometry return_val(mesh, scaling, flags); + physx_PxTriangleMeshGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxTriangleMeshGeometry_isValid(physx_PxTriangleMeshGeometry_Pod const* self__pod) { + physx::PxTriangleMeshGeometry const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxHeightFieldGeometry_Pod PxHeightFieldGeometry_new(physx_PxHeightField_Pod* hf_pod, uint8_t flags_pod, float heightScale_, float rowScale_, float columnScale_) { + physx::PxHeightField* hf = reinterpret_cast(hf_pod); + auto flags = physx::PxMeshGeometryFlags(flags_pod); + PxHeightFieldGeometry return_val(hf, flags, heightScale_, rowScale_, columnScale_); + physx_PxHeightFieldGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxHeightFieldGeometry_isValid(physx_PxHeightFieldGeometry_Pod const* self__pod) { + physx::PxHeightFieldGeometry const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxParticleSystemGeometry_Pod PxParticleSystemGeometry_new() { + PxParticleSystemGeometry return_val; + physx_PxParticleSystemGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxParticleSystemGeometry_isValid(physx_PxParticleSystemGeometry_Pod const* self__pod) { + physx::PxParticleSystemGeometry const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxHairSystemGeometry_Pod PxHairSystemGeometry_new() { + PxHairSystemGeometry return_val; + physx_PxHairSystemGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxHairSystemGeometry_isValid(physx_PxHairSystemGeometry_Pod const* self__pod) { + physx::PxHairSystemGeometry const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxTetrahedronMeshGeometry_Pod PxTetrahedronMeshGeometry_new(physx_PxTetrahedronMesh_Pod* mesh_pod) { + physx::PxTetrahedronMesh* mesh = reinterpret_cast(mesh_pod); + PxTetrahedronMeshGeometry return_val(mesh); + physx_PxTetrahedronMeshGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxTetrahedronMeshGeometry_isValid(physx_PxTetrahedronMeshGeometry_Pod const* self__pod) { + physx::PxTetrahedronMeshGeometry const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxQueryHit_Pod PxQueryHit_new() { + PxQueryHit return_val; + physx_PxQueryHit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxLocationHit_Pod PxLocationHit_new() { + PxLocationHit return_val; + physx_PxLocationHit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxLocationHit_hadInitialOverlap(physx_PxLocationHit_Pod const* self__pod) { + physx::PxLocationHit const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->hadInitialOverlap(); + return return_val; + } + + physx_PxGeomRaycastHit_Pod PxGeomRaycastHit_new() { + PxGeomRaycastHit return_val; + physx_PxGeomRaycastHit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxGeomOverlapHit_Pod PxGeomOverlapHit_new() { + PxGeomOverlapHit return_val; + physx_PxGeomOverlapHit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxGeomSweepHit_Pod PxGeomSweepHit_new() { + PxGeomSweepHit return_val; + physx_PxGeomSweepHit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxGeomIndexPair_Pod PxGeomIndexPair_new() { + PxGeomIndexPair return_val; + physx_PxGeomIndexPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxGeomIndexPair_Pod PxGeomIndexPair_new_1(uint32_t _id0, uint32_t _id1) { + PxGeomIndexPair return_val(_id0, _id1); + physx_PxGeomIndexPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t phys_PxCustomGeometry_getUniqueID() { + uint32_t return_val = PxCustomGeometry_getUniqueID(); + return return_val; + } + + physx_PxCustomGeometryType_Pod PxCustomGeometryType_new() { + PxCustomGeometryType return_val; + physx_PxCustomGeometryType_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxCustomGeometryType_Pod PxCustomGeometryType_INVALID() { + physx::PxCustomGeometryType return_val = PxCustomGeometryType::INVALID(); + physx_PxCustomGeometryType_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxCustomGeometryType_Pod PxCustomGeometryCallbacks_getCustomType(physx_PxCustomGeometryCallbacks_Pod const* self__pod) { + physx::PxCustomGeometryCallbacks const* self_ = reinterpret_cast(self__pod); + physx::PxCustomGeometryType return_val = self_->getCustomType(); + physx_PxCustomGeometryType_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBounds3_Pod PxCustomGeometryCallbacks_getLocalBounds(physx_PxCustomGeometryCallbacks_Pod const* self__pod, physx_PxGeometry_Pod const* geometry_pod) { + physx::PxCustomGeometryCallbacks const* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxBounds3 return_val = self_->getLocalBounds(geometry); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxCustomGeometryCallbacks_raycast(physx_PxCustomGeometryCallbacks_Pod const* self__pod, physx_PxVec3_Pod const* origin_pod, physx_PxVec3_Pod const* unitDir_pod, physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* pose_pod, float maxDist, uint16_t hitFlags_pod, uint32_t maxHits, physx_PxGeomRaycastHit_Pod* rayHits_pod, uint32_t stride, physx_PxQueryThreadContext_Pod* threadContext_pod) { + physx::PxCustomGeometryCallbacks const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& origin = reinterpret_cast(*origin_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + auto hitFlags = physx::PxHitFlags(hitFlags_pod); + physx::PxGeomRaycastHit* rayHits = reinterpret_cast(rayHits_pod); + physx::PxQueryThreadContext* threadContext = reinterpret_cast(threadContext_pod); + uint32_t return_val = self_->raycast(origin, unitDir, geom, pose, maxDist, hitFlags, maxHits, rayHits, stride, threadContext); + return return_val; + } + + bool PxCustomGeometryCallbacks_overlap(physx_PxCustomGeometryCallbacks_Pod const* self__pod, physx_PxGeometry_Pod const* geom0_pod, physx_PxTransform_Pod const* pose0_pod, physx_PxGeometry_Pod const* geom1_pod, physx_PxTransform_Pod const* pose1_pod, physx_PxQueryThreadContext_Pod* threadContext_pod) { + physx::PxCustomGeometryCallbacks const* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geom0 = reinterpret_cast(*geom0_pod); + physx::PxTransform const& pose0 = reinterpret_cast(*pose0_pod); + physx::PxGeometry const& geom1 = reinterpret_cast(*geom1_pod); + physx::PxTransform const& pose1 = reinterpret_cast(*pose1_pod); + physx::PxQueryThreadContext* threadContext = reinterpret_cast(threadContext_pod); + bool return_val = self_->overlap(geom0, pose0, geom1, pose1, threadContext); + return return_val; + } + + bool PxCustomGeometryCallbacks_sweep(physx_PxCustomGeometryCallbacks_Pod const* self__pod, physx_PxVec3_Pod const* unitDir_pod, float maxDist, physx_PxGeometry_Pod const* geom0_pod, physx_PxTransform_Pod const* pose0_pod, physx_PxGeometry_Pod const* geom1_pod, physx_PxTransform_Pod const* pose1_pod, physx_PxGeomSweepHit_Pod* sweepHit_pod, uint16_t hitFlags_pod, float inflation, physx_PxQueryThreadContext_Pod* threadContext_pod) { + physx::PxCustomGeometryCallbacks const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + physx::PxGeometry const& geom0 = reinterpret_cast(*geom0_pod); + physx::PxTransform const& pose0 = reinterpret_cast(*pose0_pod); + physx::PxGeometry const& geom1 = reinterpret_cast(*geom1_pod); + physx::PxTransform const& pose1 = reinterpret_cast(*pose1_pod); + physx::PxGeomSweepHit& sweepHit = reinterpret_cast(*sweepHit_pod); + auto hitFlags = physx::PxHitFlags(hitFlags_pod); + physx::PxQueryThreadContext* threadContext = reinterpret_cast(threadContext_pod); + bool return_val = self_->sweep(unitDir, maxDist, geom0, pose0, geom1, pose1, sweepHit, hitFlags, inflation, threadContext); + return return_val; + } + + void PxCustomGeometryCallbacks_computeMassProperties(physx_PxCustomGeometryCallbacks_Pod const* self__pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxMassProperties_Pod* massProperties_pod) { + physx::PxCustomGeometryCallbacks const* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxMassProperties& massProperties = reinterpret_cast(*massProperties_pod); + self_->computeMassProperties(geometry, massProperties); + } + + bool PxCustomGeometryCallbacks_usePersistentContactManifold(physx_PxCustomGeometryCallbacks_Pod const* self__pod, physx_PxGeometry_Pod const* geometry_pod, float* breakingThreshold_pod) { + physx::PxCustomGeometryCallbacks const* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + float& breakingThreshold = *breakingThreshold_pod; + bool return_val = self_->usePersistentContactManifold(geometry, breakingThreshold); + return return_val; + } + + void PxCustomGeometryCallbacks_delete(physx_PxCustomGeometryCallbacks_Pod* self__pod) { + physx::PxCustomGeometryCallbacks* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxCustomGeometry_Pod PxCustomGeometry_new() { + PxCustomGeometry return_val; + physx_PxCustomGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxCustomGeometry_Pod PxCustomGeometry_new_1(physx_PxCustomGeometryCallbacks_Pod* _callbacks_pod) { + physx::PxCustomGeometryCallbacks& _callbacks = reinterpret_cast(*_callbacks_pod); + PxCustomGeometry return_val(_callbacks); + physx_PxCustomGeometry_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxCustomGeometry_isValid(physx_PxCustomGeometry_Pod const* self__pod) { + physx::PxCustomGeometry const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxCustomGeometryType_Pod PxCustomGeometry_getCustomType(physx_PxCustomGeometry_Pod const* self__pod) { + physx::PxCustomGeometry const* self_ = reinterpret_cast(self__pod); + physx::PxCustomGeometryType return_val = self_->getCustomType(); + physx_PxCustomGeometryType_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + int32_t PxGeometryHolder_getType(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxGeometryType::Enum return_val = self_->getType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxGeometry_Pod* PxGeometryHolder_any_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxGeometry& return_val = self_->any(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxGeometry_Pod const* PxGeometryHolder_any(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& return_val = self_->any(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxSphereGeometry_Pod* PxGeometryHolder_sphere_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxSphereGeometry& return_val = self_->sphere(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxSphereGeometry_Pod const* PxGeometryHolder_sphere(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxSphereGeometry const& return_val = self_->sphere(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxPlaneGeometry_Pod* PxGeometryHolder_plane_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxPlaneGeometry& return_val = self_->plane(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxPlaneGeometry_Pod const* PxGeometryHolder_plane(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxPlaneGeometry const& return_val = self_->plane(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxCapsuleGeometry_Pod* PxGeometryHolder_capsule_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxCapsuleGeometry& return_val = self_->capsule(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxCapsuleGeometry_Pod const* PxGeometryHolder_capsule(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxCapsuleGeometry const& return_val = self_->capsule(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxBoxGeometry_Pod* PxGeometryHolder_box_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxBoxGeometry& return_val = self_->box(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxBoxGeometry_Pod const* PxGeometryHolder_box(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxBoxGeometry const& return_val = self_->box(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxConvexMeshGeometry_Pod* PxGeometryHolder_convexMesh_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxConvexMeshGeometry& return_val = self_->convexMesh(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxConvexMeshGeometry_Pod const* PxGeometryHolder_convexMesh(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxConvexMeshGeometry const& return_val = self_->convexMesh(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxTetrahedronMeshGeometry_Pod* PxGeometryHolder_tetMesh_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxTetrahedronMeshGeometry& return_val = self_->tetMesh(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxTetrahedronMeshGeometry_Pod const* PxGeometryHolder_tetMesh(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxTetrahedronMeshGeometry const& return_val = self_->tetMesh(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxTriangleMeshGeometry_Pod* PxGeometryHolder_triangleMesh_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxTriangleMeshGeometry& return_val = self_->triangleMesh(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxTriangleMeshGeometry_Pod const* PxGeometryHolder_triangleMesh(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxTriangleMeshGeometry const& return_val = self_->triangleMesh(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxHeightFieldGeometry_Pod* PxGeometryHolder_heightField_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxHeightFieldGeometry& return_val = self_->heightField(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxHeightFieldGeometry_Pod const* PxGeometryHolder_heightField(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxHeightFieldGeometry const& return_val = self_->heightField(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxParticleSystemGeometry_Pod* PxGeometryHolder_particleSystem_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxParticleSystemGeometry& return_val = self_->particleSystem(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxParticleSystemGeometry_Pod const* PxGeometryHolder_particleSystem(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxParticleSystemGeometry const& return_val = self_->particleSystem(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxHairSystemGeometry_Pod* PxGeometryHolder_hairSystem_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxHairSystemGeometry& return_val = self_->hairSystem(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxHairSystemGeometry_Pod const* PxGeometryHolder_hairSystem(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxHairSystemGeometry const& return_val = self_->hairSystem(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxCustomGeometry_Pod* PxGeometryHolder_custom_mut(physx_PxGeometryHolder_Pod* self__pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxCustomGeometry& return_val = self_->custom(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxCustomGeometry_Pod const* PxGeometryHolder_custom(physx_PxGeometryHolder_Pod const* self__pod) { + physx::PxGeometryHolder const* self_ = reinterpret_cast(self__pod); + physx::PxCustomGeometry const& return_val = self_->custom(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void PxGeometryHolder_storeAny_mut(physx_PxGeometryHolder_Pod* self__pod, physx_PxGeometry_Pod const* geometry_pod) { + physx::PxGeometryHolder* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + self_->storeAny(geometry); + } + + physx_PxGeometryHolder_Pod PxGeometryHolder_new() { + PxGeometryHolder return_val; + physx_PxGeometryHolder_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxGeometryHolder_Pod PxGeometryHolder_new_1(physx_PxGeometry_Pod const* geometry_pod) { + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + PxGeometryHolder return_val(geometry); + physx_PxGeometryHolder_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxGeometryQuery_raycast(physx_PxVec3_Pod const* origin_pod, physx_PxVec3_Pod const* unitDir_pod, physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* pose_pod, float maxDist, uint16_t hitFlags_pod, uint32_t maxHits, physx_PxGeomRaycastHit_Pod* rayHits_pod, uint32_t stride, uint32_t queryFlags_pod, physx_PxQueryThreadContext_Pod* threadContext_pod) { + physx::PxVec3 const& origin = reinterpret_cast(*origin_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + auto hitFlags = physx::PxHitFlags(hitFlags_pod); + physx::PxGeomRaycastHit* rayHits = reinterpret_cast(rayHits_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + physx::PxQueryThreadContext* threadContext = reinterpret_cast(threadContext_pod); + uint32_t return_val = PxGeometryQuery::raycast(origin, unitDir, geom, pose, maxDist, hitFlags, maxHits, rayHits, stride, queryFlags, threadContext); + return return_val; + } + + bool PxGeometryQuery_overlap(physx_PxGeometry_Pod const* geom0_pod, physx_PxTransform_Pod const* pose0_pod, physx_PxGeometry_Pod const* geom1_pod, physx_PxTransform_Pod const* pose1_pod, uint32_t queryFlags_pod, physx_PxQueryThreadContext_Pod* threadContext_pod) { + physx::PxGeometry const& geom0 = reinterpret_cast(*geom0_pod); + physx::PxTransform const& pose0 = reinterpret_cast(*pose0_pod); + physx::PxGeometry const& geom1 = reinterpret_cast(*geom1_pod); + physx::PxTransform const& pose1 = reinterpret_cast(*pose1_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + physx::PxQueryThreadContext* threadContext = reinterpret_cast(threadContext_pod); + bool return_val = PxGeometryQuery::overlap(geom0, pose0, geom1, pose1, queryFlags, threadContext); + return return_val; + } + + bool PxGeometryQuery_sweep(physx_PxVec3_Pod const* unitDir_pod, float maxDist, physx_PxGeometry_Pod const* geom0_pod, physx_PxTransform_Pod const* pose0_pod, physx_PxGeometry_Pod const* geom1_pod, physx_PxTransform_Pod const* pose1_pod, physx_PxGeomSweepHit_Pod* sweepHit_pod, uint16_t hitFlags_pod, float inflation, uint32_t queryFlags_pod, physx_PxQueryThreadContext_Pod* threadContext_pod) { + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + physx::PxGeometry const& geom0 = reinterpret_cast(*geom0_pod); + physx::PxTransform const& pose0 = reinterpret_cast(*pose0_pod); + physx::PxGeometry const& geom1 = reinterpret_cast(*geom1_pod); + physx::PxTransform const& pose1 = reinterpret_cast(*pose1_pod); + physx::PxGeomSweepHit& sweepHit = reinterpret_cast(*sweepHit_pod); + auto hitFlags = physx::PxHitFlags(hitFlags_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + physx::PxQueryThreadContext* threadContext = reinterpret_cast(threadContext_pod); + bool return_val = PxGeometryQuery::sweep(unitDir, maxDist, geom0, pose0, geom1, pose1, sweepHit, hitFlags, inflation, queryFlags, threadContext); + return return_val; + } + + bool PxGeometryQuery_computePenetration(physx_PxVec3_Pod* direction_pod, float* depth_pod, physx_PxGeometry_Pod const* geom0_pod, physx_PxTransform_Pod const* pose0_pod, physx_PxGeometry_Pod const* geom1_pod, physx_PxTransform_Pod const* pose1_pod, uint32_t queryFlags_pod) { + physx::PxVec3& direction = reinterpret_cast(*direction_pod); + float& depth = *depth_pod; + physx::PxGeometry const& geom0 = reinterpret_cast(*geom0_pod); + physx::PxTransform const& pose0 = reinterpret_cast(*pose0_pod); + physx::PxGeometry const& geom1 = reinterpret_cast(*geom1_pod); + physx::PxTransform const& pose1 = reinterpret_cast(*pose1_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + bool return_val = PxGeometryQuery::computePenetration(direction, depth, geom0, pose0, geom1, pose1, queryFlags); + return return_val; + } + + float PxGeometryQuery_pointDistance(physx_PxVec3_Pod const* point_pod, physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* pose_pod, physx_PxVec3_Pod* closestPoint_pod, uint32_t* closestIndex, uint32_t queryFlags_pod) { + physx::PxVec3 const& point = reinterpret_cast(*point_pod); + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxVec3* closestPoint = reinterpret_cast(closestPoint_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + float return_val = PxGeometryQuery::pointDistance(point, geom, pose, closestPoint, closestIndex, queryFlags); + return return_val; + } + + void PxGeometryQuery_computeGeomBounds(physx_PxBounds3_Pod* bounds_pod, physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* pose_pod, float offset, float inflation, uint32_t queryFlags_pod) { + physx::PxBounds3& bounds = reinterpret_cast(*bounds_pod); + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + PxGeometryQuery::computeGeomBounds(bounds, geom, pose, offset, inflation, queryFlags); + } + + bool PxGeometryQuery_isValid(physx_PxGeometry_Pod const* geom_pod) { + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + bool return_val = PxGeometryQuery::isValid(geom); + return return_val; + } + + uint8_t PxHeightFieldSample_tessFlag(physx_PxHeightFieldSample_Pod const* self__pod) { + physx::PxHeightFieldSample const* self_ = reinterpret_cast(self__pod); + uint8_t return_val = self_->tessFlag(); + return return_val; + } + + void PxHeightFieldSample_setTessFlag_mut(physx_PxHeightFieldSample_Pod* self__pod) { + physx::PxHeightFieldSample* self_ = reinterpret_cast(self__pod); + self_->setTessFlag(); + } + + void PxHeightFieldSample_clearTessFlag_mut(physx_PxHeightFieldSample_Pod* self__pod) { + physx::PxHeightFieldSample* self_ = reinterpret_cast(self__pod); + self_->clearTessFlag(); + } + + void PxHeightField_release_mut(physx_PxHeightField_Pod* self__pod) { + physx::PxHeightField* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + uint32_t PxHeightField_saveCells(physx_PxHeightField_Pod const* self__pod, void* destBuffer, uint32_t destBufferSize) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->saveCells(destBuffer, destBufferSize); + return return_val; + } + + bool PxHeightField_modifySamples_mut(physx_PxHeightField_Pod* self__pod, int32_t startCol, int32_t startRow, physx_PxHeightFieldDesc_Pod const* subfieldDesc_pod, bool shrinkBounds) { + physx::PxHeightField* self_ = reinterpret_cast(self__pod); + physx::PxHeightFieldDesc const& subfieldDesc = reinterpret_cast(*subfieldDesc_pod); + bool return_val = self_->modifySamples(startCol, startRow, subfieldDesc, shrinkBounds); + return return_val; + } + + uint32_t PxHeightField_getNbRows(physx_PxHeightField_Pod const* self__pod) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbRows(); + return return_val; + } + + uint32_t PxHeightField_getNbColumns(physx_PxHeightField_Pod const* self__pod) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbColumns(); + return return_val; + } + + int32_t PxHeightField_getFormat(physx_PxHeightField_Pod const* self__pod) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + physx::PxHeightFieldFormat::Enum return_val = self_->getFormat(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxHeightField_getSampleStride(physx_PxHeightField_Pod const* self__pod) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getSampleStride(); + return return_val; + } + + float PxHeightField_getConvexEdgeThreshold(physx_PxHeightField_Pod const* self__pod) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getConvexEdgeThreshold(); + return return_val; + } + + uint16_t PxHeightField_getFlags(physx_PxHeightField_Pod const* self__pod) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + physx::PxHeightFieldFlags return_val = self_->getFlags(); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxHeightField_getHeight(physx_PxHeightField_Pod const* self__pod, float x, float z) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getHeight(x, z); + return return_val; + } + + uint16_t PxHeightField_getTriangleMaterialIndex(physx_PxHeightField_Pod const* self__pod, uint32_t triangleIndex) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + uint16_t return_val = self_->getTriangleMaterialIndex(triangleIndex); + return return_val; + } + + physx_PxVec3_Pod PxHeightField_getTriangleNormal(physx_PxHeightField_Pod const* self__pod, uint32_t triangleIndex) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getTriangleNormal(triangleIndex); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxHeightFieldSample_Pod const* PxHeightField_getSample(physx_PxHeightField_Pod const* self__pod, uint32_t row, uint32_t column) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + physx::PxHeightFieldSample const& return_val = self_->getSample(row, column); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + uint32_t PxHeightField_getTimestamp(physx_PxHeightField_Pod const* self__pod) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getTimestamp(); + return return_val; + } + + char const* PxHeightField_getConcreteTypeName(physx_PxHeightField_Pod const* self__pod) { + physx::PxHeightField const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxHeightFieldDesc_Pod PxHeightFieldDesc_new() { + PxHeightFieldDesc return_val; + physx_PxHeightFieldDesc_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxHeightFieldDesc_setToDefault_mut(physx_PxHeightFieldDesc_Pod* self__pod) { + physx::PxHeightFieldDesc* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + bool PxHeightFieldDesc_isValid(physx_PxHeightFieldDesc_Pod const* self__pod) { + physx::PxHeightFieldDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxMeshQuery_getTriangle(physx_PxTriangleMeshGeometry_Pod const* triGeom_pod, physx_PxTransform_Pod const* transform_pod, uint32_t triangleIndex, physx_PxTriangle_Pod* triangle_pod, uint32_t* vertexIndices, uint32_t* adjacencyIndices) { + physx::PxTriangleMeshGeometry const& triGeom = reinterpret_cast(*triGeom_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxTriangle& triangle = reinterpret_cast(*triangle_pod); + PxMeshQuery::getTriangle(triGeom, transform, triangleIndex, triangle, vertexIndices, adjacencyIndices); + } + + void PxMeshQuery_getTriangle_1(physx_PxHeightFieldGeometry_Pod const* hfGeom_pod, physx_PxTransform_Pod const* transform_pod, uint32_t triangleIndex, physx_PxTriangle_Pod* triangle_pod, uint32_t* vertexIndices, uint32_t* adjacencyIndices) { + physx::PxHeightFieldGeometry const& hfGeom = reinterpret_cast(*hfGeom_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxTriangle& triangle = reinterpret_cast(*triangle_pod); + PxMeshQuery::getTriangle(hfGeom, transform, triangleIndex, triangle, vertexIndices, adjacencyIndices); + } + + uint32_t PxMeshQuery_findOverlapTriangleMesh(physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* geomPose_pod, physx_PxTriangleMeshGeometry_Pod const* meshGeom_pod, physx_PxTransform_Pod const* meshPose_pod, uint32_t* results, uint32_t maxResults, uint32_t startIndex, bool* overflow_pod, uint32_t queryFlags_pod) { + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& geomPose = reinterpret_cast(*geomPose_pod); + physx::PxTriangleMeshGeometry const& meshGeom = reinterpret_cast(*meshGeom_pod); + physx::PxTransform const& meshPose = reinterpret_cast(*meshPose_pod); + bool& overflow = *overflow_pod; + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + uint32_t return_val = PxMeshQuery::findOverlapTriangleMesh(geom, geomPose, meshGeom, meshPose, results, maxResults, startIndex, overflow, queryFlags); + return return_val; + } + + uint32_t PxMeshQuery_findOverlapHeightField(physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* geomPose_pod, physx_PxHeightFieldGeometry_Pod const* hfGeom_pod, physx_PxTransform_Pod const* hfPose_pod, uint32_t* results, uint32_t maxResults, uint32_t startIndex, bool* overflow_pod, uint32_t queryFlags_pod) { + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& geomPose = reinterpret_cast(*geomPose_pod); + physx::PxHeightFieldGeometry const& hfGeom = reinterpret_cast(*hfGeom_pod); + physx::PxTransform const& hfPose = reinterpret_cast(*hfPose_pod); + bool& overflow = *overflow_pod; + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + uint32_t return_val = PxMeshQuery::findOverlapHeightField(geom, geomPose, hfGeom, hfPose, results, maxResults, startIndex, overflow, queryFlags); + return return_val; + } + + bool PxMeshQuery_sweep(physx_PxVec3_Pod const* unitDir_pod, float distance, physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* pose_pod, uint32_t triangleCount, physx_PxTriangle_Pod const* triangles_pod, physx_PxGeomSweepHit_Pod* sweepHit_pod, uint16_t hitFlags_pod, uint32_t const* cachedIndex, float inflation, bool doubleSided, uint32_t queryFlags_pod) { + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxTriangle const* triangles = reinterpret_cast(triangles_pod); + physx::PxGeomSweepHit& sweepHit = reinterpret_cast(*sweepHit_pod); + auto hitFlags = physx::PxHitFlags(hitFlags_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + bool return_val = PxMeshQuery::sweep(unitDir, distance, geom, pose, triangleCount, triangles, sweepHit, hitFlags, cachedIndex, inflation, doubleSided, queryFlags); + return return_val; + } + + physx_PxSimpleTriangleMesh_Pod PxSimpleTriangleMesh_new() { + PxSimpleTriangleMesh return_val; + physx_PxSimpleTriangleMesh_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxSimpleTriangleMesh_setToDefault_mut(physx_PxSimpleTriangleMesh_Pod* self__pod) { + physx::PxSimpleTriangleMesh* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + bool PxSimpleTriangleMesh_isValid(physx_PxSimpleTriangleMesh_Pod const* self__pod) { + physx::PxSimpleTriangleMesh const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxTriangle_Pod* PxTriangle_new_alloc() { + auto return_val = new physx::PxTriangle(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxTriangle_Pod* PxTriangle_new_alloc_1(physx_PxVec3_Pod const* p0_pod, physx_PxVec3_Pod const* p1_pod, physx_PxVec3_Pod const* p2_pod) { + physx::PxVec3 const& p0 = reinterpret_cast(*p0_pod); + physx::PxVec3 const& p1 = reinterpret_cast(*p1_pod); + physx::PxVec3 const& p2 = reinterpret_cast(*p2_pod); + auto return_val = new physx::PxTriangle(p0, p1, p2); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxTriangle_delete(physx_PxTriangle_Pod* self__pod) { + physx::PxTriangle* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxTriangle_normal(physx_PxTriangle_Pod const* self__pod, physx_PxVec3_Pod* _normal_pod) { + physx::PxTriangle const* self_ = reinterpret_cast(self__pod); + physx::PxVec3& _normal = reinterpret_cast(*_normal_pod); + self_->normal(_normal); + } + + void PxTriangle_denormalizedNormal(physx_PxTriangle_Pod const* self__pod, physx_PxVec3_Pod* _normal_pod) { + physx::PxTriangle const* self_ = reinterpret_cast(self__pod); + physx::PxVec3& _normal = reinterpret_cast(*_normal_pod); + self_->denormalizedNormal(_normal); + } + + float PxTriangle_area(physx_PxTriangle_Pod const* self__pod) { + physx::PxTriangle const* self_ = reinterpret_cast(self__pod); + float return_val = self_->area(); + return return_val; + } + + physx_PxVec3_Pod PxTriangle_pointFromUV(physx_PxTriangle_Pod const* self__pod, float u, float v) { + physx::PxTriangle const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->pointFromUV(u, v); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTrianglePadded_Pod* PxTrianglePadded_new_alloc() { + auto return_val = new physx::PxTrianglePadded(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxTrianglePadded_delete(physx_PxTrianglePadded_Pod* self__pod) { + physx::PxTrianglePadded* self_ = reinterpret_cast(self__pod); + delete self_; + } + + uint32_t PxTriangleMesh_getNbVertices(physx_PxTriangleMesh_Pod const* self__pod) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbVertices(); + return return_val; + } + + physx_PxVec3_Pod const* PxTriangleMesh_getVertices(physx_PxTriangleMesh_Pod const* self__pod) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const* return_val = self_->getVertices(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxVec3_Pod* PxTriangleMesh_getVerticesForModification_mut(physx_PxTriangleMesh_Pod* self__pod) { + physx::PxTriangleMesh* self_ = reinterpret_cast(self__pod); + physx::PxVec3* return_val = self_->getVerticesForModification(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxBounds3_Pod PxTriangleMesh_refitBVH_mut(physx_PxTriangleMesh_Pod* self__pod) { + physx::PxTriangleMesh* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 return_val = self_->refitBVH(); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxTriangleMesh_getNbTriangles(physx_PxTriangleMesh_Pod const* self__pod) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbTriangles(); + return return_val; + } + + void const* PxTriangleMesh_getTriangles(physx_PxTriangleMesh_Pod const* self__pod) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + void const* return_val = self_->getTriangles(); + return return_val; + } + + uint8_t PxTriangleMesh_getTriangleMeshFlags(physx_PxTriangleMesh_Pod const* self__pod) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + physx::PxTriangleMeshFlags return_val = self_->getTriangleMeshFlags(); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t const* PxTriangleMesh_getTrianglesRemap(physx_PxTriangleMesh_Pod const* self__pod) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + uint32_t const* return_val = self_->getTrianglesRemap(); + return return_val; + } + + void PxTriangleMesh_release_mut(physx_PxTriangleMesh_Pod* self__pod) { + physx::PxTriangleMesh* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + uint16_t PxTriangleMesh_getTriangleMaterialIndex(physx_PxTriangleMesh_Pod const* self__pod, uint32_t triangleIndex) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + uint16_t return_val = self_->getTriangleMaterialIndex(triangleIndex); + return return_val; + } + + physx_PxBounds3_Pod PxTriangleMesh_getLocalBounds(physx_PxTriangleMesh_Pod const* self__pod) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 return_val = self_->getLocalBounds(); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float const* PxTriangleMesh_getSDF(physx_PxTriangleMesh_Pod const* self__pod) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + float const* return_val = self_->getSDF(); + return return_val; + } + + void PxTriangleMesh_getSDFDimensions(physx_PxTriangleMesh_Pod const* self__pod, uint32_t* numX_pod, uint32_t* numY_pod, uint32_t* numZ_pod) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + uint32_t& numX = *numX_pod; + uint32_t& numY = *numY_pod; + uint32_t& numZ = *numZ_pod; + self_->getSDFDimensions(numX, numY, numZ); + } + + void PxTriangleMesh_setPreferSDFProjection_mut(physx_PxTriangleMesh_Pod* self__pod, bool preferProjection) { + physx::PxTriangleMesh* self_ = reinterpret_cast(self__pod); + self_->setPreferSDFProjection(preferProjection); + } + + bool PxTriangleMesh_getPreferSDFProjection(physx_PxTriangleMesh_Pod const* self__pod) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->getPreferSDFProjection(); + return return_val; + } + + void PxTriangleMesh_getMassInformation(physx_PxTriangleMesh_Pod const* self__pod, float* mass_pod, physx_PxMat33_Pod* localInertia_pod, physx_PxVec3_Pod* localCenterOfMass_pod) { + physx::PxTriangleMesh const* self_ = reinterpret_cast(self__pod); + float& mass = *mass_pod; + physx::PxMat33& localInertia = reinterpret_cast(*localInertia_pod); + physx::PxVec3& localCenterOfMass = reinterpret_cast(*localCenterOfMass_pod); + self_->getMassInformation(mass, localInertia, localCenterOfMass); + } + + physx_PxTetrahedron_Pod* PxTetrahedron_new_alloc() { + auto return_val = new physx::PxTetrahedron(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxTetrahedron_Pod* PxTetrahedron_new_alloc_1(physx_PxVec3_Pod const* p0_pod, physx_PxVec3_Pod const* p1_pod, physx_PxVec3_Pod const* p2_pod, physx_PxVec3_Pod const* p3_pod) { + physx::PxVec3 const& p0 = reinterpret_cast(*p0_pod); + physx::PxVec3 const& p1 = reinterpret_cast(*p1_pod); + physx::PxVec3 const& p2 = reinterpret_cast(*p2_pod); + physx::PxVec3 const& p3 = reinterpret_cast(*p3_pod); + auto return_val = new physx::PxTetrahedron(p0, p1, p2, p3); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxTetrahedron_delete(physx_PxTetrahedron_Pod* self__pod) { + physx::PxTetrahedron* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxSoftBodyAuxData_release_mut(physx_PxSoftBodyAuxData_Pod* self__pod) { + physx::PxSoftBodyAuxData* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + uint32_t PxTetrahedronMesh_getNbVertices(physx_PxTetrahedronMesh_Pod const* self__pod) { + physx::PxTetrahedronMesh const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbVertices(); + return return_val; + } + + physx_PxVec3_Pod const* PxTetrahedronMesh_getVertices(physx_PxTetrahedronMesh_Pod const* self__pod) { + physx::PxTetrahedronMesh const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const* return_val = self_->getVertices(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxTetrahedronMesh_getNbTetrahedrons(physx_PxTetrahedronMesh_Pod const* self__pod) { + physx::PxTetrahedronMesh const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbTetrahedrons(); + return return_val; + } + + void const* PxTetrahedronMesh_getTetrahedrons(physx_PxTetrahedronMesh_Pod const* self__pod) { + physx::PxTetrahedronMesh const* self_ = reinterpret_cast(self__pod); + void const* return_val = self_->getTetrahedrons(); + return return_val; + } + + uint8_t PxTetrahedronMesh_getTetrahedronMeshFlags(physx_PxTetrahedronMesh_Pod const* self__pod) { + physx::PxTetrahedronMesh const* self_ = reinterpret_cast(self__pod); + physx::PxTetrahedronMeshFlags return_val = self_->getTetrahedronMeshFlags(); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t const* PxTetrahedronMesh_getTetrahedraRemap(physx_PxTetrahedronMesh_Pod const* self__pod) { + physx::PxTetrahedronMesh const* self_ = reinterpret_cast(self__pod); + uint32_t const* return_val = self_->getTetrahedraRemap(); + return return_val; + } + + physx_PxBounds3_Pod PxTetrahedronMesh_getLocalBounds(physx_PxTetrahedronMesh_Pod const* self__pod) { + physx::PxTetrahedronMesh const* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 return_val = self_->getLocalBounds(); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxTetrahedronMesh_release_mut(physx_PxTetrahedronMesh_Pod* self__pod) { + physx::PxTetrahedronMesh* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxTetrahedronMesh_Pod const* PxSoftBodyMesh_getCollisionMesh(physx_PxSoftBodyMesh_Pod const* self__pod) { + physx::PxSoftBodyMesh const* self_ = reinterpret_cast(self__pod); + physx::PxTetrahedronMesh const* return_val = self_->getCollisionMesh(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxTetrahedronMesh_Pod* PxSoftBodyMesh_getCollisionMesh_mut(physx_PxSoftBodyMesh_Pod* self__pod) { + physx::PxSoftBodyMesh* self_ = reinterpret_cast(self__pod); + physx::PxTetrahedronMesh* return_val = self_->getCollisionMesh(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxTetrahedronMesh_Pod const* PxSoftBodyMesh_getSimulationMesh(physx_PxSoftBodyMesh_Pod const* self__pod) { + physx::PxSoftBodyMesh const* self_ = reinterpret_cast(self__pod); + physx::PxTetrahedronMesh const* return_val = self_->getSimulationMesh(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxTetrahedronMesh_Pod* PxSoftBodyMesh_getSimulationMesh_mut(physx_PxSoftBodyMesh_Pod* self__pod) { + physx::PxSoftBodyMesh* self_ = reinterpret_cast(self__pod); + physx::PxTetrahedronMesh* return_val = self_->getSimulationMesh(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSoftBodyAuxData_Pod const* PxSoftBodyMesh_getSoftBodyAuxData(physx_PxSoftBodyMesh_Pod const* self__pod) { + physx::PxSoftBodyMesh const* self_ = reinterpret_cast(self__pod); + physx::PxSoftBodyAuxData const* return_val = self_->getSoftBodyAuxData(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSoftBodyAuxData_Pod* PxSoftBodyMesh_getSoftBodyAuxData_mut(physx_PxSoftBodyMesh_Pod* self__pod) { + physx::PxSoftBodyMesh* self_ = reinterpret_cast(self__pod); + physx::PxSoftBodyAuxData* return_val = self_->getSoftBodyAuxData(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxSoftBodyMesh_release_mut(physx_PxSoftBodyMesh_Pod* self__pod) { + physx::PxSoftBodyMesh* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + void PxCollisionMeshMappingData_release_mut(physx_PxCollisionMeshMappingData_Pod* self__pod) { + physx::PxCollisionMeshMappingData* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxTetrahedronMeshData_Pod const* PxCollisionTetrahedronMeshData_getMesh(physx_PxCollisionTetrahedronMeshData_Pod const* self__pod) { + physx::PxCollisionTetrahedronMeshData const* self_ = reinterpret_cast(self__pod); + physx::PxTetrahedronMeshData const* return_val = self_->getMesh(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxTetrahedronMeshData_Pod* PxCollisionTetrahedronMeshData_getMesh_mut(physx_PxCollisionTetrahedronMeshData_Pod* self__pod) { + physx::PxCollisionTetrahedronMeshData* self_ = reinterpret_cast(self__pod); + physx::PxTetrahedronMeshData* return_val = self_->getMesh(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSoftBodyCollisionData_Pod const* PxCollisionTetrahedronMeshData_getData(physx_PxCollisionTetrahedronMeshData_Pod const* self__pod) { + physx::PxCollisionTetrahedronMeshData const* self_ = reinterpret_cast(self__pod); + physx::PxSoftBodyCollisionData const* return_val = self_->getData(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSoftBodyCollisionData_Pod* PxCollisionTetrahedronMeshData_getData_mut(physx_PxCollisionTetrahedronMeshData_Pod* self__pod) { + physx::PxCollisionTetrahedronMeshData* self_ = reinterpret_cast(self__pod); + physx::PxSoftBodyCollisionData* return_val = self_->getData(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxCollisionTetrahedronMeshData_release_mut(physx_PxCollisionTetrahedronMeshData_Pod* self__pod) { + physx::PxCollisionTetrahedronMeshData* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxTetrahedronMeshData_Pod* PxSimulationTetrahedronMeshData_getMesh_mut(physx_PxSimulationTetrahedronMeshData_Pod* self__pod) { + physx::PxSimulationTetrahedronMeshData* self_ = reinterpret_cast(self__pod); + physx::PxTetrahedronMeshData* return_val = self_->getMesh(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSoftBodySimulationData_Pod* PxSimulationTetrahedronMeshData_getData_mut(physx_PxSimulationTetrahedronMeshData_Pod* self__pod) { + physx::PxSimulationTetrahedronMeshData* self_ = reinterpret_cast(self__pod); + physx::PxSoftBodySimulationData* return_val = self_->getData(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxSimulationTetrahedronMeshData_release_mut(physx_PxSimulationTetrahedronMeshData_Pod* self__pod) { + physx::PxSimulationTetrahedronMeshData* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + void PxActor_release_mut(physx_PxActor_Pod* self__pod) { + physx::PxActor* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + int32_t PxActor_getType(physx_PxActor_Pod const* self__pod) { + physx::PxActor const* self_ = reinterpret_cast(self__pod); + physx::PxActorType::Enum return_val = self_->getType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxScene_Pod* PxActor_getScene(physx_PxActor_Pod const* self__pod) { + physx::PxActor const* self_ = reinterpret_cast(self__pod); + physx::PxScene* return_val = self_->getScene(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxActor_setName_mut(physx_PxActor_Pod* self__pod, char const* name) { + physx::PxActor* self_ = reinterpret_cast(self__pod); + self_->setName(name); + } + + char const* PxActor_getName(physx_PxActor_Pod const* self__pod) { + physx::PxActor const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getName(); + return return_val; + } + + physx_PxBounds3_Pod PxActor_getWorldBounds(physx_PxActor_Pod const* self__pod, float inflation) { + physx::PxActor const* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 return_val = self_->getWorldBounds(inflation); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxActor_setActorFlag_mut(physx_PxActor_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxActor* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setActorFlag(flag, value); + } + + void PxActor_setActorFlags_mut(physx_PxActor_Pod* self__pod, uint8_t inFlags_pod) { + physx::PxActor* self_ = reinterpret_cast(self__pod); + auto inFlags = physx::PxActorFlags(inFlags_pod); + self_->setActorFlags(inFlags); + } + + uint8_t PxActor_getActorFlags(physx_PxActor_Pod const* self__pod) { + physx::PxActor const* self_ = reinterpret_cast(self__pod); + physx::PxActorFlags return_val = self_->getActorFlags(); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxActor_setDominanceGroup_mut(physx_PxActor_Pod* self__pod, uint8_t dominanceGroup) { + physx::PxActor* self_ = reinterpret_cast(self__pod); + self_->setDominanceGroup(dominanceGroup); + } + + uint8_t PxActor_getDominanceGroup(physx_PxActor_Pod const* self__pod) { + physx::PxActor const* self_ = reinterpret_cast(self__pod); + uint8_t return_val = self_->getDominanceGroup(); + return return_val; + } + + void PxActor_setOwnerClient_mut(physx_PxActor_Pod* self__pod, uint8_t inClient) { + physx::PxActor* self_ = reinterpret_cast(self__pod); + self_->setOwnerClient(inClient); + } + + uint8_t PxActor_getOwnerClient(physx_PxActor_Pod const* self__pod) { + physx::PxActor const* self_ = reinterpret_cast(self__pod); + uint8_t return_val = self_->getOwnerClient(); + return return_val; + } + + physx_PxAggregate_Pod* PxActor_getAggregate(physx_PxActor_Pod const* self__pod) { + physx::PxActor const* self_ = reinterpret_cast(self__pod); + physx::PxAggregate* return_val = self_->getAggregate(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t phys_PxGetAggregateFilterHint(int32_t type_pod, bool enableSelfCollision) { + auto type = static_cast(type_pod); + uint32_t return_val = PxGetAggregateFilterHint(type, enableSelfCollision); + return return_val; + } + + uint32_t phys_PxGetAggregateSelfCollisionBit(uint32_t hint) { + uint32_t return_val = PxGetAggregateSelfCollisionBit(hint); + return return_val; + } + + int32_t phys_PxGetAggregateType(uint32_t hint) { + physx::PxAggregateType::Enum return_val = PxGetAggregateType(hint); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxAggregate_release_mut(physx_PxAggregate_Pod* self__pod) { + physx::PxAggregate* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + bool PxAggregate_addActor_mut(physx_PxAggregate_Pod* self__pod, physx_PxActor_Pod* actor_pod, physx_PxBVH_Pod const* bvh_pod) { + physx::PxAggregate* self_ = reinterpret_cast(self__pod); + physx::PxActor& actor = reinterpret_cast(*actor_pod); + physx::PxBVH const* bvh = reinterpret_cast(bvh_pod); + bool return_val = self_->addActor(actor, bvh); + return return_val; + } + + bool PxAggregate_removeActor_mut(physx_PxAggregate_Pod* self__pod, physx_PxActor_Pod* actor_pod) { + physx::PxAggregate* self_ = reinterpret_cast(self__pod); + physx::PxActor& actor = reinterpret_cast(*actor_pod); + bool return_val = self_->removeActor(actor); + return return_val; + } + + bool PxAggregate_addArticulation_mut(physx_PxAggregate_Pod* self__pod, physx_PxArticulationReducedCoordinate_Pod* articulation_pod) { + physx::PxAggregate* self_ = reinterpret_cast(self__pod); + physx::PxArticulationReducedCoordinate& articulation = reinterpret_cast(*articulation_pod); + bool return_val = self_->addArticulation(articulation); + return return_val; + } + + bool PxAggregate_removeArticulation_mut(physx_PxAggregate_Pod* self__pod, physx_PxArticulationReducedCoordinate_Pod* articulation_pod) { + physx::PxAggregate* self_ = reinterpret_cast(self__pod); + physx::PxArticulationReducedCoordinate& articulation = reinterpret_cast(*articulation_pod); + bool return_val = self_->removeArticulation(articulation); + return return_val; + } + + uint32_t PxAggregate_getNbActors(physx_PxAggregate_Pod const* self__pod) { + physx::PxAggregate const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbActors(); + return return_val; + } + + uint32_t PxAggregate_getMaxNbShapes(physx_PxAggregate_Pod const* self__pod) { + physx::PxAggregate const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getMaxNbShapes(); + return return_val; + } + + uint32_t PxAggregate_getActors(physx_PxAggregate_Pod const* self__pod, physx_PxActor_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxAggregate const* self_ = reinterpret_cast(self__pod); + physx::PxActor** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getActors(userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxScene_Pod* PxAggregate_getScene_mut(physx_PxAggregate_Pod* self__pod) { + physx::PxAggregate* self_ = reinterpret_cast(self__pod); + physx::PxScene* return_val = self_->getScene(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool PxAggregate_getSelfCollision(physx_PxAggregate_Pod const* self__pod) { + physx::PxAggregate const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->getSelfCollision(); + return return_val; + } + + char const* PxAggregate_getConcreteTypeName(physx_PxAggregate_Pod const* self__pod) { + physx::PxAggregate const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxConstraintInvMassScale_Pod PxConstraintInvMassScale_new() { + PxConstraintInvMassScale return_val; + physx_PxConstraintInvMassScale_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxConstraintInvMassScale_Pod PxConstraintInvMassScale_new_1(float lin0, float ang0, float lin1, float ang1) { + PxConstraintInvMassScale return_val(lin0, ang0, lin1, ang1); + physx_PxConstraintInvMassScale_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxConstraintVisualizer_visualizeJointFrames_mut(physx_PxConstraintVisualizer_Pod* self__pod, physx_PxTransform_Pod const* parent_pod, physx_PxTransform_Pod const* child_pod) { + physx::PxConstraintVisualizer* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& parent = reinterpret_cast(*parent_pod); + physx::PxTransform const& child = reinterpret_cast(*child_pod); + self_->visualizeJointFrames(parent, child); + } + + void PxConstraintVisualizer_visualizeLinearLimit_mut(physx_PxConstraintVisualizer_Pod* self__pod, physx_PxTransform_Pod const* t0_pod, physx_PxTransform_Pod const* t1_pod, float value, bool active) { + physx::PxConstraintVisualizer* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& t0 = reinterpret_cast(*t0_pod); + physx::PxTransform const& t1 = reinterpret_cast(*t1_pod); + self_->visualizeLinearLimit(t0, t1, value, active); + } + + void PxConstraintVisualizer_visualizeAngularLimit_mut(physx_PxConstraintVisualizer_Pod* self__pod, physx_PxTransform_Pod const* t0_pod, float lower, float upper, bool active) { + physx::PxConstraintVisualizer* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& t0 = reinterpret_cast(*t0_pod); + self_->visualizeAngularLimit(t0, lower, upper, active); + } + + void PxConstraintVisualizer_visualizeLimitCone_mut(physx_PxConstraintVisualizer_Pod* self__pod, physx_PxTransform_Pod const* t_pod, float tanQSwingY, float tanQSwingZ, bool active) { + physx::PxConstraintVisualizer* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& t = reinterpret_cast(*t_pod); + self_->visualizeLimitCone(t, tanQSwingY, tanQSwingZ, active); + } + + void PxConstraintVisualizer_visualizeDoubleCone_mut(physx_PxConstraintVisualizer_Pod* self__pod, physx_PxTransform_Pod const* t_pod, float angle, bool active) { + physx::PxConstraintVisualizer* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& t = reinterpret_cast(*t_pod); + self_->visualizeDoubleCone(t, angle, active); + } + + void PxConstraintVisualizer_visualizeLine_mut(physx_PxConstraintVisualizer_Pod* self__pod, physx_PxVec3_Pod const* p0_pod, physx_PxVec3_Pod const* p1_pod, uint32_t color) { + physx::PxConstraintVisualizer* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& p0 = reinterpret_cast(*p0_pod); + physx::PxVec3 const& p1 = reinterpret_cast(*p1_pod); + self_->visualizeLine(p0, p1, color); + } + + void* PxConstraintConnector_prepareData_mut(physx_PxConstraintConnector_Pod* self__pod) { + physx::PxConstraintConnector* self_ = reinterpret_cast(self__pod); + void* return_val = self_->prepareData(); + return return_val; + } + + void PxConstraintConnector_onConstraintRelease_mut(physx_PxConstraintConnector_Pod* self__pod) { + physx::PxConstraintConnector* self_ = reinterpret_cast(self__pod); + self_->onConstraintRelease(); + } + + void PxConstraintConnector_onComShift_mut(physx_PxConstraintConnector_Pod* self__pod, uint32_t actor) { + physx::PxConstraintConnector* self_ = reinterpret_cast(self__pod); + self_->onComShift(actor); + } + + void PxConstraintConnector_onOriginShift_mut(physx_PxConstraintConnector_Pod* self__pod, physx_PxVec3_Pod const* shift_pod) { + physx::PxConstraintConnector* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& shift = reinterpret_cast(*shift_pod); + self_->onOriginShift(shift); + } + + physx_PxBase_Pod* PxConstraintConnector_getSerializable_mut(physx_PxConstraintConnector_Pod* self__pod) { + physx::PxConstraintConnector* self_ = reinterpret_cast(self__pod); + physx::PxBase* return_val = self_->getSerializable(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void const* PxConstraintConnector_getConstantBlock(physx_PxConstraintConnector_Pod const* self__pod) { + physx::PxConstraintConnector const* self_ = reinterpret_cast(self__pod); + void const* return_val = self_->getConstantBlock(); + return return_val; + } + + void PxConstraintConnector_connectToConstraint_mut(physx_PxConstraintConnector_Pod* self__pod, physx_PxConstraint_Pod* anon_param0_pod) { + physx::PxConstraintConnector* self_ = reinterpret_cast(self__pod); + physx::PxConstraint* anon_param0 = reinterpret_cast(anon_param0_pod); + self_->connectToConstraint(anon_param0); + } + + void PxConstraintConnector_delete(physx_PxConstraintConnector_Pod* self__pod) { + physx::PxConstraintConnector* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxSolverBody_Pod PxSolverBody_new() { + PxSolverBody return_val; + physx_PxSolverBody_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxSolverBodyData_projectVelocity(physx_PxSolverBodyData_Pod const* self__pod, physx_PxVec3_Pod const* lin_pod, physx_PxVec3_Pod const* ang_pod) { + physx::PxSolverBodyData const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& lin = reinterpret_cast(*lin_pod); + physx::PxVec3 const& ang = reinterpret_cast(*ang_pod); + float return_val = self_->projectVelocity(lin, ang); + return return_val; + } + + void PxSolverConstraintPrepDesc_delete(physx_PxSolverConstraintPrepDesc_Pod* self__pod) { + physx::PxSolverConstraintPrepDesc* self_ = reinterpret_cast(self__pod); + delete self_; + } + + uint8_t* PxConstraintAllocator_reserveConstraintData_mut(physx_PxConstraintAllocator_Pod* self__pod, uint32_t byteSize) { + physx::PxConstraintAllocator* self_ = reinterpret_cast(self__pod); + uint8_t* return_val = self_->reserveConstraintData(byteSize); + return return_val; + } + + uint8_t* PxConstraintAllocator_reserveFrictionData_mut(physx_PxConstraintAllocator_Pod* self__pod, uint32_t byteSize) { + physx::PxConstraintAllocator* self_ = reinterpret_cast(self__pod); + uint8_t* return_val = self_->reserveFrictionData(byteSize); + return return_val; + } + + void PxConstraintAllocator_delete(physx_PxConstraintAllocator_Pod* self__pod) { + physx::PxConstraintAllocator* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxArticulationLimit_Pod PxArticulationLimit_new() { + PxArticulationLimit return_val; + physx_PxArticulationLimit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxArticulationLimit_Pod PxArticulationLimit_new_1(float low_, float high_) { + PxArticulationLimit return_val(low_, high_); + physx_PxArticulationLimit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxArticulationDrive_Pod PxArticulationDrive_new() { + PxArticulationDrive return_val; + physx_PxArticulationDrive_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxArticulationDrive_Pod PxArticulationDrive_new_1(float stiffness_, float damping_, float maxForce_, int32_t driveType__pod) { + auto driveType_ = static_cast(driveType__pod); + PxArticulationDrive return_val(stiffness_, damping_, maxForce_, driveType_); + physx_PxArticulationDrive_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxTGSSolverBodyVel_projectVelocity(physx_PxTGSSolverBodyVel_Pod const* self__pod, physx_PxVec3_Pod const* lin_pod, physx_PxVec3_Pod const* ang_pod) { + physx::PxTGSSolverBodyVel const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& lin = reinterpret_cast(*lin_pod); + physx::PxVec3 const& ang = reinterpret_cast(*ang_pod); + float return_val = self_->projectVelocity(lin, ang); + return return_val; + } + + float PxTGSSolverBodyData_projectVelocity(physx_PxTGSSolverBodyData_Pod const* self__pod, physx_PxVec3_Pod const* linear_pod, physx_PxVec3_Pod const* angular_pod) { + physx::PxTGSSolverBodyData const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& linear = reinterpret_cast(*linear_pod); + physx::PxVec3 const& angular = reinterpret_cast(*angular_pod); + float return_val = self_->projectVelocity(linear, angular); + return return_val; + } + + void PxTGSSolverConstraintPrepDesc_delete(physx_PxTGSSolverConstraintPrepDesc_Pod* self__pod) { + physx::PxTGSSolverConstraintPrepDesc* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxArticulationAttachment_setRestLength_mut(physx_PxArticulationAttachment_Pod* self__pod, float restLength) { + physx::PxArticulationAttachment* self_ = reinterpret_cast(self__pod); + self_->setRestLength(restLength); + } + + float PxArticulationAttachment_getRestLength(physx_PxArticulationAttachment_Pod const* self__pod) { + physx::PxArticulationAttachment const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getRestLength(); + return return_val; + } + + void PxArticulationAttachment_setLimitParameters_mut(physx_PxArticulationAttachment_Pod* self__pod, physx_PxArticulationTendonLimit_Pod const* parameters_pod) { + physx::PxArticulationAttachment* self_ = reinterpret_cast(self__pod); + physx::PxArticulationTendonLimit const& parameters = reinterpret_cast(*parameters_pod); + self_->setLimitParameters(parameters); + } + + physx_PxArticulationTendonLimit_Pod PxArticulationAttachment_getLimitParameters(physx_PxArticulationAttachment_Pod const* self__pod) { + physx::PxArticulationAttachment const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationTendonLimit return_val = self_->getLimitParameters(); + physx_PxArticulationTendonLimit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationAttachment_setRelativeOffset_mut(physx_PxArticulationAttachment_Pod* self__pod, physx_PxVec3_Pod const* offset_pod) { + physx::PxArticulationAttachment* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& offset = reinterpret_cast(*offset_pod); + self_->setRelativeOffset(offset); + } + + physx_PxVec3_Pod PxArticulationAttachment_getRelativeOffset(physx_PxArticulationAttachment_Pod const* self__pod) { + physx::PxArticulationAttachment const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getRelativeOffset(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationAttachment_setCoefficient_mut(physx_PxArticulationAttachment_Pod* self__pod, float coefficient) { + physx::PxArticulationAttachment* self_ = reinterpret_cast(self__pod); + self_->setCoefficient(coefficient); + } + + float PxArticulationAttachment_getCoefficient(physx_PxArticulationAttachment_Pod const* self__pod) { + physx::PxArticulationAttachment const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getCoefficient(); + return return_val; + } + + physx_PxArticulationLink_Pod* PxArticulationAttachment_getLink(physx_PxArticulationAttachment_Pod const* self__pod) { + physx::PxArticulationAttachment const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationLink* return_val = self_->getLink(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxArticulationAttachment_Pod* PxArticulationAttachment_getParent(physx_PxArticulationAttachment_Pod const* self__pod) { + physx::PxArticulationAttachment const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationAttachment* return_val = self_->getParent(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool PxArticulationAttachment_isLeaf(physx_PxArticulationAttachment_Pod const* self__pod) { + physx::PxArticulationAttachment const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isLeaf(); + return return_val; + } + + physx_PxArticulationSpatialTendon_Pod* PxArticulationAttachment_getTendon(physx_PxArticulationAttachment_Pod const* self__pod) { + physx::PxArticulationAttachment const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationSpatialTendon* return_val = self_->getTendon(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxArticulationAttachment_release_mut(physx_PxArticulationAttachment_Pod* self__pod) { + physx::PxArticulationAttachment* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + char const* PxArticulationAttachment_getConcreteTypeName(physx_PxArticulationAttachment_Pod const* self__pod) { + physx::PxArticulationAttachment const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + void PxArticulationTendonJoint_setCoefficient_mut(physx_PxArticulationTendonJoint_Pod* self__pod, int32_t axis_pod, float coefficient, float recipCoefficient) { + physx::PxArticulationTendonJoint* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + self_->setCoefficient(axis, coefficient, recipCoefficient); + } + + void PxArticulationTendonJoint_getCoefficient(physx_PxArticulationTendonJoint_Pod const* self__pod, int32_t* axis_pod, float* coefficient_pod, float* recipCoefficient_pod) { + physx::PxArticulationTendonJoint const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationAxis::Enum& axis = reinterpret_cast(*axis_pod); + float& coefficient = *coefficient_pod; + float& recipCoefficient = *recipCoefficient_pod; + self_->getCoefficient(axis, coefficient, recipCoefficient); + } + + physx_PxArticulationLink_Pod* PxArticulationTendonJoint_getLink(physx_PxArticulationTendonJoint_Pod const* self__pod) { + physx::PxArticulationTendonJoint const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationLink* return_val = self_->getLink(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxArticulationTendonJoint_Pod* PxArticulationTendonJoint_getParent(physx_PxArticulationTendonJoint_Pod const* self__pod) { + physx::PxArticulationTendonJoint const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationTendonJoint* return_val = self_->getParent(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxArticulationFixedTendon_Pod* PxArticulationTendonJoint_getTendon(physx_PxArticulationTendonJoint_Pod const* self__pod) { + physx::PxArticulationTendonJoint const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationFixedTendon* return_val = self_->getTendon(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxArticulationTendonJoint_release_mut(physx_PxArticulationTendonJoint_Pod* self__pod) { + physx::PxArticulationTendonJoint* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + char const* PxArticulationTendonJoint_getConcreteTypeName(physx_PxArticulationTendonJoint_Pod const* self__pod) { + physx::PxArticulationTendonJoint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + void PxArticulationTendon_setStiffness_mut(physx_PxArticulationTendon_Pod* self__pod, float stiffness) { + physx::PxArticulationTendon* self_ = reinterpret_cast(self__pod); + self_->setStiffness(stiffness); + } + + float PxArticulationTendon_getStiffness(physx_PxArticulationTendon_Pod const* self__pod) { + physx::PxArticulationTendon const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getStiffness(); + return return_val; + } + + void PxArticulationTendon_setDamping_mut(physx_PxArticulationTendon_Pod* self__pod, float damping) { + physx::PxArticulationTendon* self_ = reinterpret_cast(self__pod); + self_->setDamping(damping); + } + + float PxArticulationTendon_getDamping(physx_PxArticulationTendon_Pod const* self__pod) { + physx::PxArticulationTendon const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDamping(); + return return_val; + } + + void PxArticulationTendon_setLimitStiffness_mut(physx_PxArticulationTendon_Pod* self__pod, float stiffness) { + physx::PxArticulationTendon* self_ = reinterpret_cast(self__pod); + self_->setLimitStiffness(stiffness); + } + + float PxArticulationTendon_getLimitStiffness(physx_PxArticulationTendon_Pod const* self__pod) { + physx::PxArticulationTendon const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getLimitStiffness(); + return return_val; + } + + void PxArticulationTendon_setOffset_mut(physx_PxArticulationTendon_Pod* self__pod, float offset, bool autowake) { + physx::PxArticulationTendon* self_ = reinterpret_cast(self__pod); + self_->setOffset(offset, autowake); + } + + float PxArticulationTendon_getOffset(physx_PxArticulationTendon_Pod const* self__pod) { + physx::PxArticulationTendon const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getOffset(); + return return_val; + } + + physx_PxArticulationReducedCoordinate_Pod* PxArticulationTendon_getArticulation(physx_PxArticulationTendon_Pod const* self__pod) { + physx::PxArticulationTendon const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationReducedCoordinate* return_val = self_->getArticulation(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxArticulationTendon_release_mut(physx_PxArticulationTendon_Pod* self__pod) { + physx::PxArticulationTendon* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxArticulationAttachment_Pod* PxArticulationSpatialTendon_createAttachment_mut(physx_PxArticulationSpatialTendon_Pod* self__pod, physx_PxArticulationAttachment_Pod* parent_pod, float coefficient, physx_PxVec3_Pod relativeOffset_pod, physx_PxArticulationLink_Pod* link_pod) { + physx::PxArticulationSpatialTendon* self_ = reinterpret_cast(self__pod); + physx::PxArticulationAttachment* parent = reinterpret_cast(parent_pod); + physx::PxVec3 relativeOffset; + memcpy(&relativeOffset, &relativeOffset_pod, sizeof(relativeOffset)); + physx::PxArticulationLink* link = reinterpret_cast(link_pod); + physx::PxArticulationAttachment* return_val = self_->createAttachment(parent, coefficient, relativeOffset, link); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxArticulationSpatialTendon_getAttachments(physx_PxArticulationSpatialTendon_Pod const* self__pod, physx_PxArticulationAttachment_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxArticulationSpatialTendon const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationAttachment** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getAttachments(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxArticulationSpatialTendon_getNbAttachments(physx_PxArticulationSpatialTendon_Pod const* self__pod) { + physx::PxArticulationSpatialTendon const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbAttachments(); + return return_val; + } + + char const* PxArticulationSpatialTendon_getConcreteTypeName(physx_PxArticulationSpatialTendon_Pod const* self__pod) { + physx::PxArticulationSpatialTendon const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxArticulationTendonJoint_Pod* PxArticulationFixedTendon_createTendonJoint_mut(physx_PxArticulationFixedTendon_Pod* self__pod, physx_PxArticulationTendonJoint_Pod* parent_pod, int32_t axis_pod, float coefficient, float recipCoefficient, physx_PxArticulationLink_Pod* link_pod) { + physx::PxArticulationFixedTendon* self_ = reinterpret_cast(self__pod); + physx::PxArticulationTendonJoint* parent = reinterpret_cast(parent_pod); + auto axis = static_cast(axis_pod); + physx::PxArticulationLink* link = reinterpret_cast(link_pod); + physx::PxArticulationTendonJoint* return_val = self_->createTendonJoint(parent, axis, coefficient, recipCoefficient, link); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxArticulationFixedTendon_getTendonJoints(physx_PxArticulationFixedTendon_Pod const* self__pod, physx_PxArticulationTendonJoint_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxArticulationFixedTendon const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationTendonJoint** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getTendonJoints(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxArticulationFixedTendon_getNbTendonJoints(physx_PxArticulationFixedTendon_Pod const* self__pod) { + physx::PxArticulationFixedTendon const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbTendonJoints(); + return return_val; + } + + void PxArticulationFixedTendon_setRestLength_mut(physx_PxArticulationFixedTendon_Pod* self__pod, float restLength) { + physx::PxArticulationFixedTendon* self_ = reinterpret_cast(self__pod); + self_->setRestLength(restLength); + } + + float PxArticulationFixedTendon_getRestLength(physx_PxArticulationFixedTendon_Pod const* self__pod) { + physx::PxArticulationFixedTendon const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getRestLength(); + return return_val; + } + + void PxArticulationFixedTendon_setLimitParameters_mut(physx_PxArticulationFixedTendon_Pod* self__pod, physx_PxArticulationTendonLimit_Pod const* parameter_pod) { + physx::PxArticulationFixedTendon* self_ = reinterpret_cast(self__pod); + physx::PxArticulationTendonLimit const& parameter = reinterpret_cast(*parameter_pod); + self_->setLimitParameters(parameter); + } + + physx_PxArticulationTendonLimit_Pod PxArticulationFixedTendon_getLimitParameters(physx_PxArticulationFixedTendon_Pod const* self__pod) { + physx::PxArticulationFixedTendon const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationTendonLimit return_val = self_->getLimitParameters(); + physx_PxArticulationTendonLimit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + char const* PxArticulationFixedTendon_getConcreteTypeName(physx_PxArticulationFixedTendon_Pod const* self__pod) { + physx::PxArticulationFixedTendon const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxArticulationCache_Pod PxArticulationCache_new() { + PxArticulationCache return_val; + physx_PxArticulationCache_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationCache_release_mut(physx_PxArticulationCache_Pod* self__pod) { + physx::PxArticulationCache* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + void PxArticulationSensor_release_mut(physx_PxArticulationSensor_Pod* self__pod) { + physx::PxArticulationSensor* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxSpatialForce_Pod PxArticulationSensor_getForces(physx_PxArticulationSensor_Pod const* self__pod) { + physx::PxArticulationSensor const* self_ = reinterpret_cast(self__pod); + physx::PxSpatialForce return_val = self_->getForces(); + physx_PxSpatialForce_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxArticulationSensor_getRelativePose(physx_PxArticulationSensor_Pod const* self__pod) { + physx::PxArticulationSensor const* self_ = reinterpret_cast(self__pod); + physx::PxTransform return_val = self_->getRelativePose(); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationSensor_setRelativePose_mut(physx_PxArticulationSensor_Pod* self__pod, physx_PxTransform_Pod const* pose_pod) { + physx::PxArticulationSensor* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + self_->setRelativePose(pose); + } + + physx_PxArticulationLink_Pod* PxArticulationSensor_getLink(physx_PxArticulationSensor_Pod const* self__pod) { + physx::PxArticulationSensor const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationLink* return_val = self_->getLink(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxArticulationSensor_getIndex(physx_PxArticulationSensor_Pod const* self__pod) { + physx::PxArticulationSensor const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getIndex(); + return return_val; + } + + physx_PxArticulationReducedCoordinate_Pod* PxArticulationSensor_getArticulation(physx_PxArticulationSensor_Pod const* self__pod) { + physx::PxArticulationSensor const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationReducedCoordinate* return_val = self_->getArticulation(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint8_t PxArticulationSensor_getFlags(physx_PxArticulationSensor_Pod const* self__pod) { + physx::PxArticulationSensor const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationSensorFlags return_val = self_->getFlags(); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationSensor_setFlag_mut(physx_PxArticulationSensor_Pod* self__pod, int32_t flag_pod, bool enabled) { + physx::PxArticulationSensor* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setFlag(flag, enabled); + } + + char const* PxArticulationSensor_getConcreteTypeName(physx_PxArticulationSensor_Pod const* self__pod) { + physx::PxArticulationSensor const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxScene_Pod* PxArticulationReducedCoordinate_getScene(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxScene* return_val = self_->getScene(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxArticulationReducedCoordinate_setSolverIterationCounts_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, uint32_t minPositionIters, uint32_t minVelocityIters) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->setSolverIterationCounts(minPositionIters, minVelocityIters); + } + + void PxArticulationReducedCoordinate_getSolverIterationCounts(physx_PxArticulationReducedCoordinate_Pod const* self__pod, uint32_t* minPositionIters_pod, uint32_t* minVelocityIters_pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + uint32_t& minPositionIters = *minPositionIters_pod; + uint32_t& minVelocityIters = *minVelocityIters_pod; + self_->getSolverIterationCounts(minPositionIters, minVelocityIters); + } + + bool PxArticulationReducedCoordinate_isSleeping(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isSleeping(); + return return_val; + } + + void PxArticulationReducedCoordinate_setSleepThreshold_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, float threshold) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->setSleepThreshold(threshold); + } + + float PxArticulationReducedCoordinate_getSleepThreshold(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getSleepThreshold(); + return return_val; + } + + void PxArticulationReducedCoordinate_setStabilizationThreshold_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, float threshold) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->setStabilizationThreshold(threshold); + } + + float PxArticulationReducedCoordinate_getStabilizationThreshold(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getStabilizationThreshold(); + return return_val; + } + + void PxArticulationReducedCoordinate_setWakeCounter_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, float wakeCounterValue) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->setWakeCounter(wakeCounterValue); + } + + float PxArticulationReducedCoordinate_getWakeCounter(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getWakeCounter(); + return return_val; + } + + void PxArticulationReducedCoordinate_wakeUp_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->wakeUp(); + } + + void PxArticulationReducedCoordinate_putToSleep_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->putToSleep(); + } + + void PxArticulationReducedCoordinate_setMaxCOMLinearVelocity_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, float maxLinearVelocity) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->setMaxCOMLinearVelocity(maxLinearVelocity); + } + + float PxArticulationReducedCoordinate_getMaxCOMLinearVelocity(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMaxCOMLinearVelocity(); + return return_val; + } + + void PxArticulationReducedCoordinate_setMaxCOMAngularVelocity_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, float maxAngularVelocity) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->setMaxCOMAngularVelocity(maxAngularVelocity); + } + + float PxArticulationReducedCoordinate_getMaxCOMAngularVelocity(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMaxCOMAngularVelocity(); + return return_val; + } + + physx_PxArticulationLink_Pod* PxArticulationReducedCoordinate_createLink_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, physx_PxArticulationLink_Pod* parent_pod, physx_PxTransform_Pod const* pose_pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxArticulationLink* parent = reinterpret_cast(parent_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxArticulationLink* return_val = self_->createLink(parent, pose); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxArticulationReducedCoordinate_release_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + uint32_t PxArticulationReducedCoordinate_getNbLinks(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbLinks(); + return return_val; + } + + uint32_t PxArticulationReducedCoordinate_getLinks(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationLink_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationLink** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getLinks(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxArticulationReducedCoordinate_getNbShapes(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbShapes(); + return return_val; + } + + void PxArticulationReducedCoordinate_setName_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, char const* name) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->setName(name); + } + + char const* PxArticulationReducedCoordinate_getName(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getName(); + return return_val; + } + + physx_PxBounds3_Pod PxArticulationReducedCoordinate_getWorldBounds(physx_PxArticulationReducedCoordinate_Pod const* self__pod, float inflation) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 return_val = self_->getWorldBounds(inflation); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxAggregate_Pod* PxArticulationReducedCoordinate_getAggregate(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxAggregate* return_val = self_->getAggregate(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxArticulationReducedCoordinate_setArticulationFlags_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, uint8_t flags_pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxArticulationFlags(flags_pod); + self_->setArticulationFlags(flags); + } + + void PxArticulationReducedCoordinate_setArticulationFlag_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setArticulationFlag(flag, value); + } + + uint8_t PxArticulationReducedCoordinate_getArticulationFlags(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationFlags return_val = self_->getArticulationFlags(); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxArticulationReducedCoordinate_getDofs(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getDofs(); + return return_val; + } + + physx_PxArticulationCache_Pod* PxArticulationReducedCoordinate_createCache(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache* return_val = self_->createCache(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxArticulationReducedCoordinate_getCacheDataSize(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getCacheDataSize(); + return return_val; + } + + void PxArticulationReducedCoordinate_zeroCache(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationCache_Pod* cache_pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + self_->zeroCache(cache); + } + + void PxArticulationReducedCoordinate_applyCache_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, physx_PxArticulationCache_Pod* cache_pod, uint32_t flags_pod, bool autowake) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + auto flags = physx::PxArticulationCacheFlags(flags_pod); + self_->applyCache(cache, flags, autowake); + } + + void PxArticulationReducedCoordinate_copyInternalStateToCache(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationCache_Pod* cache_pod, uint32_t flags_pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + auto flags = physx::PxArticulationCacheFlags(flags_pod); + self_->copyInternalStateToCache(cache, flags); + } + + void PxArticulationReducedCoordinate_packJointData(physx_PxArticulationReducedCoordinate_Pod const* self__pod, float const* maximum, float* reduced) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + self_->packJointData(maximum, reduced); + } + + void PxArticulationReducedCoordinate_unpackJointData(physx_PxArticulationReducedCoordinate_Pod const* self__pod, float const* reduced, float* maximum) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + self_->unpackJointData(reduced, maximum); + } + + void PxArticulationReducedCoordinate_commonInit(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + self_->commonInit(); + } + + void PxArticulationReducedCoordinate_computeGeneralizedGravityForce(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationCache_Pod* cache_pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + self_->computeGeneralizedGravityForce(cache); + } + + void PxArticulationReducedCoordinate_computeCoriolisAndCentrifugalForce(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationCache_Pod* cache_pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + self_->computeCoriolisAndCentrifugalForce(cache); + } + + void PxArticulationReducedCoordinate_computeGeneralizedExternalForce(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationCache_Pod* cache_pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + self_->computeGeneralizedExternalForce(cache); + } + + void PxArticulationReducedCoordinate_computeJointAcceleration(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationCache_Pod* cache_pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + self_->computeJointAcceleration(cache); + } + + void PxArticulationReducedCoordinate_computeJointForce(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationCache_Pod* cache_pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + self_->computeJointForce(cache); + } + + void PxArticulationReducedCoordinate_computeDenseJacobian(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationCache_Pod* cache_pod, uint32_t* nRows_pod, uint32_t* nCols_pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + uint32_t& nRows = *nRows_pod; + uint32_t& nCols = *nCols_pod; + self_->computeDenseJacobian(cache, nRows, nCols); + } + + void PxArticulationReducedCoordinate_computeCoefficientMatrix(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationCache_Pod* cache_pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + self_->computeCoefficientMatrix(cache); + } + + bool PxArticulationReducedCoordinate_computeLambda(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationCache_Pod* cache_pod, physx_PxArticulationCache_Pod* initialState_pod, float const* const jointTorque, uint32_t maxIter) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + physx::PxArticulationCache& initialState = reinterpret_cast(*initialState_pod); + bool return_val = self_->computeLambda(cache, initialState, jointTorque, maxIter); + return return_val; + } + + void PxArticulationReducedCoordinate_computeGeneralizedMassMatrix(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationCache_Pod* cache_pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationCache& cache = reinterpret_cast(*cache_pod); + self_->computeGeneralizedMassMatrix(cache); + } + + void PxArticulationReducedCoordinate_addLoopJoint_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, physx_PxConstraint_Pod* joint_pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxConstraint* joint = reinterpret_cast(joint_pod); + self_->addLoopJoint(joint); + } + + void PxArticulationReducedCoordinate_removeLoopJoint_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, physx_PxConstraint_Pod* joint_pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxConstraint* joint = reinterpret_cast(joint_pod); + self_->removeLoopJoint(joint); + } + + uint32_t PxArticulationReducedCoordinate_getNbLoopJoints(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbLoopJoints(); + return return_val; + } + + uint32_t PxArticulationReducedCoordinate_getLoopJoints(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxConstraint_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxConstraint** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getLoopJoints(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxArticulationReducedCoordinate_getCoefficientMatrixSize(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getCoefficientMatrixSize(); + return return_val; + } + + void PxArticulationReducedCoordinate_setRootGlobalPose_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, physx_PxTransform_Pod const* pose_pod, bool autowake) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + self_->setRootGlobalPose(pose, autowake); + } + + physx_PxTransform_Pod PxArticulationReducedCoordinate_getRootGlobalPose(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxTransform return_val = self_->getRootGlobalPose(); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationReducedCoordinate_setRootLinearVelocity_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, physx_PxVec3_Pod const* linearVelocity_pod, bool autowake) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& linearVelocity = reinterpret_cast(*linearVelocity_pod); + self_->setRootLinearVelocity(linearVelocity, autowake); + } + + physx_PxVec3_Pod PxArticulationReducedCoordinate_getRootLinearVelocity(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getRootLinearVelocity(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationReducedCoordinate_setRootAngularVelocity_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, physx_PxVec3_Pod const* angularVelocity_pod, bool autowake) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& angularVelocity = reinterpret_cast(*angularVelocity_pod); + self_->setRootAngularVelocity(angularVelocity, autowake); + } + + physx_PxVec3_Pod PxArticulationReducedCoordinate_getRootAngularVelocity(physx_PxArticulationReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getRootAngularVelocity(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxSpatialVelocity_Pod PxArticulationReducedCoordinate_getLinkAcceleration_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, uint32_t linkId) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxSpatialVelocity return_val = self_->getLinkAcceleration(linkId); + physx_PxSpatialVelocity_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxArticulationReducedCoordinate_getGpuArticulationIndex_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getGpuArticulationIndex(); + return return_val; + } + + physx_PxArticulationSpatialTendon_Pod* PxArticulationReducedCoordinate_createSpatialTendon_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxArticulationSpatialTendon* return_val = self_->createSpatialTendon(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxArticulationFixedTendon_Pod* PxArticulationReducedCoordinate_createFixedTendon_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxArticulationFixedTendon* return_val = self_->createFixedTendon(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxArticulationSensor_Pod* PxArticulationReducedCoordinate_createSensor_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, physx_PxArticulationLink_Pod* link_pod, physx_PxTransform_Pod const* relativePose_pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxArticulationLink* link = reinterpret_cast(link_pod); + physx::PxTransform const& relativePose = reinterpret_cast(*relativePose_pod); + physx::PxArticulationSensor* return_val = self_->createSensor(link, relativePose); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxArticulationReducedCoordinate_getSpatialTendons(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationSpatialTendon_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationSpatialTendon** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getSpatialTendons(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxArticulationReducedCoordinate_getNbSpatialTendons_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbSpatialTendons(); + return return_val; + } + + uint32_t PxArticulationReducedCoordinate_getFixedTendons(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationFixedTendon_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationFixedTendon** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getFixedTendons(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxArticulationReducedCoordinate_getNbFixedTendons_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbFixedTendons(); + return return_val; + } + + uint32_t PxArticulationReducedCoordinate_getSensors(physx_PxArticulationReducedCoordinate_Pod const* self__pod, physx_PxArticulationSensor_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxArticulationReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationSensor** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getSensors(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxArticulationReducedCoordinate_getNbSensors_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbSensors(); + return return_val; + } + + void PxArticulationReducedCoordinate_updateKinematic_mut(physx_PxArticulationReducedCoordinate_Pod* self__pod, uint8_t flags_pod) { + physx::PxArticulationReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxArticulationKinematicFlags(flags_pod); + self_->updateKinematic(flags); + } + + physx_PxArticulationLink_Pod* PxArticulationJointReducedCoordinate_getParentArticulationLink(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationLink& return_val = self_->getParentArticulationLink(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void PxArticulationJointReducedCoordinate_setParentPose_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, physx_PxTransform_Pod const* pose_pod) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + self_->setParentPose(pose); + } + + physx_PxTransform_Pod PxArticulationJointReducedCoordinate_getParentPose(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxTransform return_val = self_->getParentPose(); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxArticulationLink_Pod* PxArticulationJointReducedCoordinate_getChildArticulationLink(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationLink& return_val = self_->getChildArticulationLink(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void PxArticulationJointReducedCoordinate_setChildPose_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, physx_PxTransform_Pod const* pose_pod) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + self_->setChildPose(pose); + } + + physx_PxTransform_Pod PxArticulationJointReducedCoordinate_getChildPose(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxTransform return_val = self_->getChildPose(); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationJointReducedCoordinate_setJointType_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, int32_t jointType_pod) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto jointType = static_cast(jointType_pod); + self_->setJointType(jointType); + } + + int32_t PxArticulationJointReducedCoordinate_getJointType(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationJointType::Enum return_val = self_->getJointType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationJointReducedCoordinate_setMotion_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, int32_t axis_pod, int32_t motion_pod) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + auto motion = static_cast(motion_pod); + self_->setMotion(axis, motion); + } + + int32_t PxArticulationJointReducedCoordinate_getMotion(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod, int32_t axis_pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + physx::PxArticulationMotion::Enum return_val = self_->getMotion(axis); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationJointReducedCoordinate_setLimitParams_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, int32_t axis_pod, physx_PxArticulationLimit_Pod const* limit_pod) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + physx::PxArticulationLimit const& limit = reinterpret_cast(*limit_pod); + self_->setLimitParams(axis, limit); + } + + physx_PxArticulationLimit_Pod PxArticulationJointReducedCoordinate_getLimitParams(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod, int32_t axis_pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + physx::PxArticulationLimit return_val = self_->getLimitParams(axis); + physx_PxArticulationLimit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationJointReducedCoordinate_setDriveParams_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, int32_t axis_pod, physx_PxArticulationDrive_Pod const* drive_pod) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + physx::PxArticulationDrive const& drive = reinterpret_cast(*drive_pod); + self_->setDriveParams(axis, drive); + } + + physx_PxArticulationDrive_Pod PxArticulationJointReducedCoordinate_getDriveParams(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod, int32_t axis_pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + physx::PxArticulationDrive return_val = self_->getDriveParams(axis); + physx_PxArticulationDrive_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationJointReducedCoordinate_setDriveTarget_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, int32_t axis_pod, float target, bool autowake) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + self_->setDriveTarget(axis, target, autowake); + } + + float PxArticulationJointReducedCoordinate_getDriveTarget(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod, int32_t axis_pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + float return_val = self_->getDriveTarget(axis); + return return_val; + } + + void PxArticulationJointReducedCoordinate_setDriveVelocity_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, int32_t axis_pod, float targetVel, bool autowake) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + self_->setDriveVelocity(axis, targetVel, autowake); + } + + float PxArticulationJointReducedCoordinate_getDriveVelocity(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod, int32_t axis_pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + float return_val = self_->getDriveVelocity(axis); + return return_val; + } + + void PxArticulationJointReducedCoordinate_setArmature_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, int32_t axis_pod, float armature) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + self_->setArmature(axis, armature); + } + + float PxArticulationJointReducedCoordinate_getArmature(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod, int32_t axis_pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + float return_val = self_->getArmature(axis); + return return_val; + } + + void PxArticulationJointReducedCoordinate_setFrictionCoefficient_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, float coefficient) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->setFrictionCoefficient(coefficient); + } + + float PxArticulationJointReducedCoordinate_getFrictionCoefficient(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getFrictionCoefficient(); + return return_val; + } + + void PxArticulationJointReducedCoordinate_setMaxJointVelocity_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, float maxJointV) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + self_->setMaxJointVelocity(maxJointV); + } + + float PxArticulationJointReducedCoordinate_getMaxJointVelocity(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMaxJointVelocity(); + return return_val; + } + + void PxArticulationJointReducedCoordinate_setJointPosition_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, int32_t axis_pod, float jointPos) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + self_->setJointPosition(axis, jointPos); + } + + float PxArticulationJointReducedCoordinate_getJointPosition(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod, int32_t axis_pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + float return_val = self_->getJointPosition(axis); + return return_val; + } + + void PxArticulationJointReducedCoordinate_setJointVelocity_mut(physx_PxArticulationJointReducedCoordinate_Pod* self__pod, int32_t axis_pod, float jointVel) { + physx::PxArticulationJointReducedCoordinate* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + self_->setJointVelocity(axis, jointVel); + } + + float PxArticulationJointReducedCoordinate_getJointVelocity(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod, int32_t axis_pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + float return_val = self_->getJointVelocity(axis); + return return_val; + } + + char const* PxArticulationJointReducedCoordinate_getConcreteTypeName(physx_PxArticulationJointReducedCoordinate_Pod const* self__pod) { + physx::PxArticulationJointReducedCoordinate const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + void PxShape_release_mut(physx_PxShape_Pod* self__pod) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + void PxShape_setGeometry_mut(physx_PxShape_Pod* self__pod, physx_PxGeometry_Pod const* geometry_pod) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + self_->setGeometry(geometry); + } + + physx_PxGeometry_Pod const* PxShape_getGeometry(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& return_val = self_->getGeometry(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxRigidActor_Pod* PxShape_getActor(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor* return_val = self_->getActor(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxShape_setLocalPose_mut(physx_PxShape_Pod* self__pod, physx_PxTransform_Pod const* pose_pod) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + self_->setLocalPose(pose); + } + + physx_PxTransform_Pod PxShape_getLocalPose(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + physx::PxTransform return_val = self_->getLocalPose(); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxShape_setSimulationFilterData_mut(physx_PxShape_Pod* self__pod, physx_PxFilterData_Pod const* data_pod) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + physx::PxFilterData const& data = reinterpret_cast(*data_pod); + self_->setSimulationFilterData(data); + } + + physx_PxFilterData_Pod PxShape_getSimulationFilterData(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + physx::PxFilterData return_val = self_->getSimulationFilterData(); + physx_PxFilterData_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxShape_setQueryFilterData_mut(physx_PxShape_Pod* self__pod, physx_PxFilterData_Pod const* data_pod) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + physx::PxFilterData const& data = reinterpret_cast(*data_pod); + self_->setQueryFilterData(data); + } + + physx_PxFilterData_Pod PxShape_getQueryFilterData(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + physx::PxFilterData return_val = self_->getQueryFilterData(); + physx_PxFilterData_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxShape_setMaterials_mut(physx_PxShape_Pod* self__pod, physx_PxMaterial_Pod* const* materials_pod, uint16_t materialCount) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + physx::PxMaterial* const* materials = reinterpret_cast(materials_pod); + self_->setMaterials(materials, materialCount); + } + + uint16_t PxShape_getNbMaterials(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + uint16_t return_val = self_->getNbMaterials(); + return return_val; + } + + uint32_t PxShape_getMaterials(physx_PxShape_Pod const* self__pod, physx_PxMaterial_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + physx::PxMaterial** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getMaterials(userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxBaseMaterial_Pod* PxShape_getMaterialFromInternalFaceIndex(physx_PxShape_Pod const* self__pod, uint32_t faceIndex) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + physx::PxBaseMaterial* return_val = self_->getMaterialFromInternalFaceIndex(faceIndex); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxShape_setContactOffset_mut(physx_PxShape_Pod* self__pod, float contactOffset) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + self_->setContactOffset(contactOffset); + } + + float PxShape_getContactOffset(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getContactOffset(); + return return_val; + } + + void PxShape_setRestOffset_mut(physx_PxShape_Pod* self__pod, float restOffset) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + self_->setRestOffset(restOffset); + } + + float PxShape_getRestOffset(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getRestOffset(); + return return_val; + } + + void PxShape_setDensityForFluid_mut(physx_PxShape_Pod* self__pod, float densityForFluid) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + self_->setDensityForFluid(densityForFluid); + } + + float PxShape_getDensityForFluid(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDensityForFluid(); + return return_val; + } + + void PxShape_setTorsionalPatchRadius_mut(physx_PxShape_Pod* self__pod, float radius) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + self_->setTorsionalPatchRadius(radius); + } + + float PxShape_getTorsionalPatchRadius(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getTorsionalPatchRadius(); + return return_val; + } + + void PxShape_setMinTorsionalPatchRadius_mut(physx_PxShape_Pod* self__pod, float radius) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + self_->setMinTorsionalPatchRadius(radius); + } + + float PxShape_getMinTorsionalPatchRadius(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMinTorsionalPatchRadius(); + return return_val; + } + + void PxShape_setFlag_mut(physx_PxShape_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setFlag(flag, value); + } + + void PxShape_setFlags_mut(physx_PxShape_Pod* self__pod, uint8_t inFlags_pod) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + auto inFlags = physx::PxShapeFlags(inFlags_pod); + self_->setFlags(inFlags); + } + + uint8_t PxShape_getFlags(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + physx::PxShapeFlags return_val = self_->getFlags(); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxShape_isExclusive(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isExclusive(); + return return_val; + } + + void PxShape_setName_mut(physx_PxShape_Pod* self__pod, char const* name) { + physx::PxShape* self_ = reinterpret_cast(self__pod); + self_->setName(name); + } + + char const* PxShape_getName(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getName(); + return return_val; + } + + char const* PxShape_getConcreteTypeName(physx_PxShape_Pod const* self__pod) { + physx::PxShape const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + void PxRigidActor_release_mut(physx_PxRigidActor_Pod* self__pod) { + physx::PxRigidActor* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + uint32_t PxRigidActor_getInternalActorIndex(physx_PxRigidActor_Pod const* self__pod) { + physx::PxRigidActor const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getInternalActorIndex(); + return return_val; + } + + physx_PxTransform_Pod PxRigidActor_getGlobalPose(physx_PxRigidActor_Pod const* self__pod) { + physx::PxRigidActor const* self_ = reinterpret_cast(self__pod); + physx::PxTransform return_val = self_->getGlobalPose(); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRigidActor_setGlobalPose_mut(physx_PxRigidActor_Pod* self__pod, physx_PxTransform_Pod const* pose_pod, bool autowake) { + physx::PxRigidActor* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + self_->setGlobalPose(pose, autowake); + } + + bool PxRigidActor_attachShape_mut(physx_PxRigidActor_Pod* self__pod, physx_PxShape_Pod* shape_pod) { + physx::PxRigidActor* self_ = reinterpret_cast(self__pod); + physx::PxShape& shape = reinterpret_cast(*shape_pod); + bool return_val = self_->attachShape(shape); + return return_val; + } + + void PxRigidActor_detachShape_mut(physx_PxRigidActor_Pod* self__pod, physx_PxShape_Pod* shape_pod, bool wakeOnLostTouch) { + physx::PxRigidActor* self_ = reinterpret_cast(self__pod); + physx::PxShape& shape = reinterpret_cast(*shape_pod); + self_->detachShape(shape, wakeOnLostTouch); + } + + uint32_t PxRigidActor_getNbShapes(physx_PxRigidActor_Pod const* self__pod) { + physx::PxRigidActor const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbShapes(); + return return_val; + } + + uint32_t PxRigidActor_getShapes(physx_PxRigidActor_Pod const* self__pod, physx_PxShape_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxRigidActor const* self_ = reinterpret_cast(self__pod); + physx::PxShape** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getShapes(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxRigidActor_getNbConstraints(physx_PxRigidActor_Pod const* self__pod) { + physx::PxRigidActor const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbConstraints(); + return return_val; + } + + uint32_t PxRigidActor_getConstraints(physx_PxRigidActor_Pod const* self__pod, physx_PxConstraint_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxRigidActor const* self_ = reinterpret_cast(self__pod); + physx::PxConstraint** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getConstraints(userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxNodeIndex_Pod PxNodeIndex_new(uint32_t id, uint32_t articLinkId) { + PxNodeIndex return_val(id, articLinkId); + physx_PxNodeIndex_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxNodeIndex_Pod PxNodeIndex_new_1(uint32_t id) { + PxNodeIndex return_val(id); + physx_PxNodeIndex_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxNodeIndex_index(physx_PxNodeIndex_Pod const* self__pod) { + physx::PxNodeIndex const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->index(); + return return_val; + } + + uint32_t PxNodeIndex_articulationLinkId(physx_PxNodeIndex_Pod const* self__pod) { + physx::PxNodeIndex const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->articulationLinkId(); + return return_val; + } + + uint32_t PxNodeIndex_isArticulation(physx_PxNodeIndex_Pod const* self__pod) { + physx::PxNodeIndex const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->isArticulation(); + return return_val; + } + + bool PxNodeIndex_isStaticBody(physx_PxNodeIndex_Pod const* self__pod) { + physx::PxNodeIndex const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isStaticBody(); + return return_val; + } + + bool PxNodeIndex_isValid(physx_PxNodeIndex_Pod const* self__pod) { + physx::PxNodeIndex const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxNodeIndex_setIndices_mut(physx_PxNodeIndex_Pod* self__pod, uint32_t index, uint32_t articLinkId) { + physx::PxNodeIndex* self_ = reinterpret_cast(self__pod); + self_->setIndices(index, articLinkId); + } + + void PxNodeIndex_setIndices_mut_1(physx_PxNodeIndex_Pod* self__pod, uint32_t index) { + physx::PxNodeIndex* self_ = reinterpret_cast(self__pod); + self_->setIndices(index); + } + + uint64_t PxNodeIndex_getInd(physx_PxNodeIndex_Pod const* self__pod) { + physx::PxNodeIndex const* self_ = reinterpret_cast(self__pod); + uint64_t return_val = self_->getInd(); + return return_val; + } + + void PxRigidBody_setCMassLocalPose_mut(physx_PxRigidBody_Pod* self__pod, physx_PxTransform_Pod const* pose_pod) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + self_->setCMassLocalPose(pose); + } + + physx_PxTransform_Pod PxRigidBody_getCMassLocalPose(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + physx::PxTransform return_val = self_->getCMassLocalPose(); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRigidBody_setMass_mut(physx_PxRigidBody_Pod* self__pod, float mass) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + self_->setMass(mass); + } + + float PxRigidBody_getMass(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMass(); + return return_val; + } + + float PxRigidBody_getInvMass(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvMass(); + return return_val; + } + + void PxRigidBody_setMassSpaceInertiaTensor_mut(physx_PxRigidBody_Pod* self__pod, physx_PxVec3_Pod const* m_pod) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& m = reinterpret_cast(*m_pod); + self_->setMassSpaceInertiaTensor(m); + } + + physx_PxVec3_Pod PxRigidBody_getMassSpaceInertiaTensor(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getMassSpaceInertiaTensor(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxRigidBody_getMassSpaceInvInertiaTensor(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getMassSpaceInvInertiaTensor(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRigidBody_setLinearDamping_mut(physx_PxRigidBody_Pod* self__pod, float linDamp) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + self_->setLinearDamping(linDamp); + } + + float PxRigidBody_getLinearDamping(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getLinearDamping(); + return return_val; + } + + void PxRigidBody_setAngularDamping_mut(physx_PxRigidBody_Pod* self__pod, float angDamp) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + self_->setAngularDamping(angDamp); + } + + float PxRigidBody_getAngularDamping(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getAngularDamping(); + return return_val; + } + + physx_PxVec3_Pod PxRigidBody_getLinearVelocity(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getLinearVelocity(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxRigidBody_getAngularVelocity(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getAngularVelocity(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRigidBody_setMaxLinearVelocity_mut(physx_PxRigidBody_Pod* self__pod, float maxLinVel) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + self_->setMaxLinearVelocity(maxLinVel); + } + + float PxRigidBody_getMaxLinearVelocity(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMaxLinearVelocity(); + return return_val; + } + + void PxRigidBody_setMaxAngularVelocity_mut(physx_PxRigidBody_Pod* self__pod, float maxAngVel) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + self_->setMaxAngularVelocity(maxAngVel); + } + + float PxRigidBody_getMaxAngularVelocity(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMaxAngularVelocity(); + return return_val; + } + + void PxRigidBody_addForce_mut(physx_PxRigidBody_Pod* self__pod, physx_PxVec3_Pod const* force_pod, int32_t mode_pod, bool autowake) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& force = reinterpret_cast(*force_pod); + auto mode = static_cast(mode_pod); + self_->addForce(force, mode, autowake); + } + + void PxRigidBody_addTorque_mut(physx_PxRigidBody_Pod* self__pod, physx_PxVec3_Pod const* torque_pod, int32_t mode_pod, bool autowake) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& torque = reinterpret_cast(*torque_pod); + auto mode = static_cast(mode_pod); + self_->addTorque(torque, mode, autowake); + } + + void PxRigidBody_clearForce_mut(physx_PxRigidBody_Pod* self__pod, int32_t mode_pod) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + auto mode = static_cast(mode_pod); + self_->clearForce(mode); + } + + void PxRigidBody_clearTorque_mut(physx_PxRigidBody_Pod* self__pod, int32_t mode_pod) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + auto mode = static_cast(mode_pod); + self_->clearTorque(mode); + } + + void PxRigidBody_setForceAndTorque_mut(physx_PxRigidBody_Pod* self__pod, physx_PxVec3_Pod const* force_pod, physx_PxVec3_Pod const* torque_pod, int32_t mode_pod) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& force = reinterpret_cast(*force_pod); + physx::PxVec3 const& torque = reinterpret_cast(*torque_pod); + auto mode = static_cast(mode_pod); + self_->setForceAndTorque(force, torque, mode); + } + + void PxRigidBody_setRigidBodyFlag_mut(physx_PxRigidBody_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setRigidBodyFlag(flag, value); + } + + void PxRigidBody_setRigidBodyFlags_mut(physx_PxRigidBody_Pod* self__pod, uint16_t inFlags_pod) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + auto inFlags = physx::PxRigidBodyFlags(inFlags_pod); + self_->setRigidBodyFlags(inFlags); + } + + uint16_t PxRigidBody_getRigidBodyFlags(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + physx::PxRigidBodyFlags return_val = self_->getRigidBodyFlags(); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRigidBody_setMinCCDAdvanceCoefficient_mut(physx_PxRigidBody_Pod* self__pod, float advanceCoefficient) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + self_->setMinCCDAdvanceCoefficient(advanceCoefficient); + } + + float PxRigidBody_getMinCCDAdvanceCoefficient(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMinCCDAdvanceCoefficient(); + return return_val; + } + + void PxRigidBody_setMaxDepenetrationVelocity_mut(physx_PxRigidBody_Pod* self__pod, float biasClamp) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + self_->setMaxDepenetrationVelocity(biasClamp); + } + + float PxRigidBody_getMaxDepenetrationVelocity(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMaxDepenetrationVelocity(); + return return_val; + } + + void PxRigidBody_setMaxContactImpulse_mut(physx_PxRigidBody_Pod* self__pod, float maxImpulse) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + self_->setMaxContactImpulse(maxImpulse); + } + + float PxRigidBody_getMaxContactImpulse(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMaxContactImpulse(); + return return_val; + } + + void PxRigidBody_setContactSlopCoefficient_mut(physx_PxRigidBody_Pod* self__pod, float slopCoefficient) { + physx::PxRigidBody* self_ = reinterpret_cast(self__pod); + self_->setContactSlopCoefficient(slopCoefficient); + } + + float PxRigidBody_getContactSlopCoefficient(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getContactSlopCoefficient(); + return return_val; + } + + physx_PxNodeIndex_Pod PxRigidBody_getInternalIslandNodeIndex(physx_PxRigidBody_Pod const* self__pod) { + physx::PxRigidBody const* self_ = reinterpret_cast(self__pod); + physx::PxNodeIndex return_val = self_->getInternalIslandNodeIndex(); + physx_PxNodeIndex_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxArticulationLink_release_mut(physx_PxArticulationLink_Pod* self__pod) { + physx::PxArticulationLink* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxArticulationReducedCoordinate_Pod* PxArticulationLink_getArticulation(physx_PxArticulationLink_Pod const* self__pod) { + physx::PxArticulationLink const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationReducedCoordinate& return_val = self_->getArticulation(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxArticulationJointReducedCoordinate_Pod* PxArticulationLink_getInboundJoint(physx_PxArticulationLink_Pod const* self__pod) { + physx::PxArticulationLink const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationJointReducedCoordinate* return_val = self_->getInboundJoint(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxArticulationLink_getInboundJointDof(physx_PxArticulationLink_Pod const* self__pod) { + physx::PxArticulationLink const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getInboundJointDof(); + return return_val; + } + + uint32_t PxArticulationLink_getNbChildren(physx_PxArticulationLink_Pod const* self__pod) { + physx::PxArticulationLink const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbChildren(); + return return_val; + } + + uint32_t PxArticulationLink_getLinkIndex(physx_PxArticulationLink_Pod const* self__pod) { + physx::PxArticulationLink const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getLinkIndex(); + return return_val; + } + + uint32_t PxArticulationLink_getChildren(physx_PxArticulationLink_Pod const* self__pod, physx_PxArticulationLink_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxArticulationLink const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationLink** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getChildren(userBuffer, bufferSize, startIndex); + return return_val; + } + + void PxArticulationLink_setCfmScale_mut(physx_PxArticulationLink_Pod* self__pod, float cfm) { + physx::PxArticulationLink* self_ = reinterpret_cast(self__pod); + self_->setCfmScale(cfm); + } + + float PxArticulationLink_getCfmScale(physx_PxArticulationLink_Pod const* self__pod) { + physx::PxArticulationLink const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getCfmScale(); + return return_val; + } + + physx_PxVec3_Pod PxArticulationLink_getLinearVelocity(physx_PxArticulationLink_Pod const* self__pod) { + physx::PxArticulationLink const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getLinearVelocity(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxArticulationLink_getAngularVelocity(physx_PxArticulationLink_Pod const* self__pod) { + physx::PxArticulationLink const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getAngularVelocity(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + char const* PxArticulationLink_getConcreteTypeName(physx_PxArticulationLink_Pod const* self__pod) { + physx::PxArticulationLink const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxConeLimitedConstraint_Pod PxConeLimitedConstraint_new() { + PxConeLimitedConstraint return_val; + physx_PxConeLimitedConstraint_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxConstraint_release_mut(physx_PxConstraint_Pod* self__pod) { + physx::PxConstraint* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxScene_Pod* PxConstraint_getScene(physx_PxConstraint_Pod const* self__pod) { + physx::PxConstraint const* self_ = reinterpret_cast(self__pod); + physx::PxScene* return_val = self_->getScene(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxConstraint_getActors(physx_PxConstraint_Pod const* self__pod, physx_PxRigidActor_Pod** actor0_pod, physx_PxRigidActor_Pod** actor1_pod) { + physx::PxConstraint const* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor*& actor0 = reinterpret_cast(*actor0_pod); + physx::PxRigidActor*& actor1 = reinterpret_cast(*actor1_pod); + self_->getActors(actor0, actor1); + } + + void PxConstraint_setActors_mut(physx_PxConstraint_Pod* self__pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxRigidActor_Pod* actor1_pod) { + physx::PxConstraint* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + self_->setActors(actor0, actor1); + } + + void PxConstraint_markDirty_mut(physx_PxConstraint_Pod* self__pod) { + physx::PxConstraint* self_ = reinterpret_cast(self__pod); + self_->markDirty(); + } + + uint16_t PxConstraint_getFlags(physx_PxConstraint_Pod const* self__pod) { + physx::PxConstraint const* self_ = reinterpret_cast(self__pod); + physx::PxConstraintFlags return_val = self_->getFlags(); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxConstraint_setFlags_mut(physx_PxConstraint_Pod* self__pod, uint16_t flags_pod) { + physx::PxConstraint* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxConstraintFlags(flags_pod); + self_->setFlags(flags); + } + + void PxConstraint_setFlag_mut(physx_PxConstraint_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxConstraint* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setFlag(flag, value); + } + + void PxConstraint_getForce(physx_PxConstraint_Pod const* self__pod, physx_PxVec3_Pod* linear_pod, physx_PxVec3_Pod* angular_pod) { + physx::PxConstraint const* self_ = reinterpret_cast(self__pod); + physx::PxVec3& linear = reinterpret_cast(*linear_pod); + physx::PxVec3& angular = reinterpret_cast(*angular_pod); + self_->getForce(linear, angular); + } + + bool PxConstraint_isValid(physx_PxConstraint_Pod const* self__pod) { + physx::PxConstraint const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxConstraint_setBreakForce_mut(physx_PxConstraint_Pod* self__pod, float linear, float angular) { + physx::PxConstraint* self_ = reinterpret_cast(self__pod); + self_->setBreakForce(linear, angular); + } + + void PxConstraint_getBreakForce(physx_PxConstraint_Pod const* self__pod, float* linear_pod, float* angular_pod) { + physx::PxConstraint const* self_ = reinterpret_cast(self__pod); + float& linear = *linear_pod; + float& angular = *angular_pod; + self_->getBreakForce(linear, angular); + } + + void PxConstraint_setMinResponseThreshold_mut(physx_PxConstraint_Pod* self__pod, float threshold) { + physx::PxConstraint* self_ = reinterpret_cast(self__pod); + self_->setMinResponseThreshold(threshold); + } + + float PxConstraint_getMinResponseThreshold(physx_PxConstraint_Pod const* self__pod) { + physx::PxConstraint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMinResponseThreshold(); + return return_val; + } + + void* PxConstraint_getExternalReference_mut(physx_PxConstraint_Pod* self__pod, uint32_t* typeID_pod) { + physx::PxConstraint* self_ = reinterpret_cast(self__pod); + uint32_t& typeID = *typeID_pod; + void* return_val = self_->getExternalReference(typeID); + return return_val; + } + + void PxConstraint_setConstraintFunctions_mut(physx_PxConstraint_Pod* self__pod, physx_PxConstraintConnector_Pod* connector_pod, physx_PxConstraintShaderTable_Pod const* shaders_pod) { + physx::PxConstraint* self_ = reinterpret_cast(self__pod); + physx::PxConstraintConnector& connector = reinterpret_cast(*connector_pod); + physx::PxConstraintShaderTable const& shaders = reinterpret_cast(*shaders_pod); + self_->setConstraintFunctions(connector, shaders); + } + + char const* PxConstraint_getConcreteTypeName(physx_PxConstraint_Pod const* self__pod) { + physx::PxConstraint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxContactStreamIterator_Pod PxContactStreamIterator_new(uint8_t const* contactPatches, uint8_t const* contactPoints, uint32_t const* contactFaceIndices, uint32_t nbPatches, uint32_t nbContacts) { + PxContactStreamIterator return_val(contactPatches, contactPoints, contactFaceIndices, nbPatches, nbContacts); + physx_PxContactStreamIterator_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxContactStreamIterator_hasNextPatch(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->hasNextPatch(); + return return_val; + } + + uint32_t PxContactStreamIterator_getTotalContactCount(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getTotalContactCount(); + return return_val; + } + + uint32_t PxContactStreamIterator_getTotalPatchCount(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getTotalPatchCount(); + return return_val; + } + + void PxContactStreamIterator_nextPatch_mut(physx_PxContactStreamIterator_Pod* self__pod) { + physx::PxContactStreamIterator* self_ = reinterpret_cast(self__pod); + self_->nextPatch(); + } + + bool PxContactStreamIterator_hasNextContact(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->hasNextContact(); + return return_val; + } + + void PxContactStreamIterator_nextContact_mut(physx_PxContactStreamIterator_Pod* self__pod) { + physx::PxContactStreamIterator* self_ = reinterpret_cast(self__pod); + self_->nextContact(); + } + + physx_PxVec3_Pod const* PxContactStreamIterator_getContactNormal(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& return_val = self_->getContactNormal(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + float PxContactStreamIterator_getInvMassScale0(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvMassScale0(); + return return_val; + } + + float PxContactStreamIterator_getInvMassScale1(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvMassScale1(); + return return_val; + } + + float PxContactStreamIterator_getInvInertiaScale0(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvInertiaScale0(); + return return_val; + } + + float PxContactStreamIterator_getInvInertiaScale1(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvInertiaScale1(); + return return_val; + } + + float PxContactStreamIterator_getMaxImpulse(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMaxImpulse(); + return return_val; + } + + physx_PxVec3_Pod const* PxContactStreamIterator_getTargetVel(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& return_val = self_->getTargetVel(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxVec3_Pod const* PxContactStreamIterator_getContactPoint(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& return_val = self_->getContactPoint(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + float PxContactStreamIterator_getSeparation(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getSeparation(); + return return_val; + } + + uint32_t PxContactStreamIterator_getFaceIndex0(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getFaceIndex0(); + return return_val; + } + + uint32_t PxContactStreamIterator_getFaceIndex1(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getFaceIndex1(); + return return_val; + } + + float PxContactStreamIterator_getStaticFriction(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getStaticFriction(); + return return_val; + } + + float PxContactStreamIterator_getDynamicFriction(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDynamicFriction(); + return return_val; + } + + float PxContactStreamIterator_getRestitution(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getRestitution(); + return return_val; + } + + float PxContactStreamIterator_getDamping(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDamping(); + return return_val; + } + + uint32_t PxContactStreamIterator_getMaterialFlags(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getMaterialFlags(); + return return_val; + } + + uint16_t PxContactStreamIterator_getMaterialIndex0(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + uint16_t return_val = self_->getMaterialIndex0(); + return return_val; + } + + uint16_t PxContactStreamIterator_getMaterialIndex1(physx_PxContactStreamIterator_Pod const* self__pod) { + physx::PxContactStreamIterator const* self_ = reinterpret_cast(self__pod); + uint16_t return_val = self_->getMaterialIndex1(); + return return_val; + } + + bool PxContactStreamIterator_advanceToIndex_mut(physx_PxContactStreamIterator_Pod* self__pod, uint32_t initialIndex) { + physx::PxContactStreamIterator* self_ = reinterpret_cast(self__pod); + bool return_val = self_->advanceToIndex(initialIndex); + return return_val; + } + + physx_PxVec3_Pod const* PxContactSet_getPoint(physx_PxContactSet_Pod const* self__pod, uint32_t i) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& return_val = self_->getPoint(i); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void PxContactSet_setPoint_mut(physx_PxContactSet_Pod* self__pod, uint32_t i, physx_PxVec3_Pod const* p_pod) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& p = reinterpret_cast(*p_pod); + self_->setPoint(i, p); + } + + physx_PxVec3_Pod const* PxContactSet_getNormal(physx_PxContactSet_Pod const* self__pod, uint32_t i) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& return_val = self_->getNormal(i); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void PxContactSet_setNormal_mut(physx_PxContactSet_Pod* self__pod, uint32_t i, physx_PxVec3_Pod const* n_pod) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& n = reinterpret_cast(*n_pod); + self_->setNormal(i, n); + } + + float PxContactSet_getSeparation(physx_PxContactSet_Pod const* self__pod, uint32_t i) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getSeparation(i); + return return_val; + } + + void PxContactSet_setSeparation_mut(physx_PxContactSet_Pod* self__pod, uint32_t i, float s) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + self_->setSeparation(i, s); + } + + physx_PxVec3_Pod const* PxContactSet_getTargetVelocity(physx_PxContactSet_Pod const* self__pod, uint32_t i) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& return_val = self_->getTargetVelocity(i); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void PxContactSet_setTargetVelocity_mut(physx_PxContactSet_Pod* self__pod, uint32_t i, physx_PxVec3_Pod const* v_pod) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + self_->setTargetVelocity(i, v); + } + + uint32_t PxContactSet_getInternalFaceIndex0(physx_PxContactSet_Pod const* self__pod, uint32_t i) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getInternalFaceIndex0(i); + return return_val; + } + + uint32_t PxContactSet_getInternalFaceIndex1(physx_PxContactSet_Pod const* self__pod, uint32_t i) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getInternalFaceIndex1(i); + return return_val; + } + + float PxContactSet_getMaxImpulse(physx_PxContactSet_Pod const* self__pod, uint32_t i) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMaxImpulse(i); + return return_val; + } + + void PxContactSet_setMaxImpulse_mut(physx_PxContactSet_Pod* self__pod, uint32_t i, float s) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + self_->setMaxImpulse(i, s); + } + + float PxContactSet_getRestitution(physx_PxContactSet_Pod const* self__pod, uint32_t i) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getRestitution(i); + return return_val; + } + + void PxContactSet_setRestitution_mut(physx_PxContactSet_Pod* self__pod, uint32_t i, float r) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + self_->setRestitution(i, r); + } + + float PxContactSet_getStaticFriction(physx_PxContactSet_Pod const* self__pod, uint32_t i) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getStaticFriction(i); + return return_val; + } + + void PxContactSet_setStaticFriction_mut(physx_PxContactSet_Pod* self__pod, uint32_t i, float f) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + self_->setStaticFriction(i, f); + } + + float PxContactSet_getDynamicFriction(physx_PxContactSet_Pod const* self__pod, uint32_t i) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDynamicFriction(i); + return return_val; + } + + void PxContactSet_setDynamicFriction_mut(physx_PxContactSet_Pod* self__pod, uint32_t i, float f) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + self_->setDynamicFriction(i, f); + } + + void PxContactSet_ignore_mut(physx_PxContactSet_Pod* self__pod, uint32_t i) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + self_->ignore(i); + } + + uint32_t PxContactSet_size(physx_PxContactSet_Pod const* self__pod) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->size(); + return return_val; + } + + float PxContactSet_getInvMassScale0(physx_PxContactSet_Pod const* self__pod) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvMassScale0(); + return return_val; + } + + float PxContactSet_getInvMassScale1(physx_PxContactSet_Pod const* self__pod) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvMassScale1(); + return return_val; + } + + float PxContactSet_getInvInertiaScale0(physx_PxContactSet_Pod const* self__pod) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvInertiaScale0(); + return return_val; + } + + float PxContactSet_getInvInertiaScale1(physx_PxContactSet_Pod const* self__pod) { + physx::PxContactSet const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvInertiaScale1(); + return return_val; + } + + void PxContactSet_setInvMassScale0_mut(physx_PxContactSet_Pod* self__pod, float scale) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + self_->setInvMassScale0(scale); + } + + void PxContactSet_setInvMassScale1_mut(physx_PxContactSet_Pod* self__pod, float scale) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + self_->setInvMassScale1(scale); + } + + void PxContactSet_setInvInertiaScale0_mut(physx_PxContactSet_Pod* self__pod, float scale) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + self_->setInvInertiaScale0(scale); + } + + void PxContactSet_setInvInertiaScale1_mut(physx_PxContactSet_Pod* self__pod, float scale) { + physx::PxContactSet* self_ = reinterpret_cast(self__pod); + self_->setInvInertiaScale1(scale); + } + + void PxContactModifyCallback_onContactModify_mut(physx_PxContactModifyCallback_Pod* self__pod, physx_PxContactModifyPair_Pod* const pairs_pod, uint32_t count) { + physx::PxContactModifyCallback* self_ = reinterpret_cast(self__pod); + physx::PxContactModifyPair* const pairs = reinterpret_cast(pairs_pod); + self_->onContactModify(pairs, count); + } + + void PxCCDContactModifyCallback_onCCDContactModify_mut(physx_PxCCDContactModifyCallback_Pod* self__pod, physx_PxContactModifyPair_Pod* const pairs_pod, uint32_t count) { + physx::PxCCDContactModifyCallback* self_ = reinterpret_cast(self__pod); + physx::PxContactModifyPair* const pairs = reinterpret_cast(pairs_pod); + self_->onCCDContactModify(pairs, count); + } + + void PxDeletionListener_onRelease_mut(physx_PxDeletionListener_Pod* self__pod, physx_PxBase_Pod const* observed_pod, void* userData, int32_t deletionEvent_pod) { + physx::PxDeletionListener* self_ = reinterpret_cast(self__pod); + physx::PxBase const* observed = reinterpret_cast(observed_pod); + auto deletionEvent = static_cast(deletionEvent_pod); + self_->onRelease(observed, userData, deletionEvent); + } + + bool PxBaseMaterial_isKindOf(physx_PxBaseMaterial_Pod const* self__pod, char const* name) { + physx::PxBaseMaterial const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isKindOf(name); + return return_val; + } + + void PxFEMMaterial_setYoungsModulus_mut(physx_PxFEMMaterial_Pod* self__pod, float young) { + physx::PxFEMMaterial* self_ = reinterpret_cast(self__pod); + self_->setYoungsModulus(young); + } + + float PxFEMMaterial_getYoungsModulus(physx_PxFEMMaterial_Pod const* self__pod) { + physx::PxFEMMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getYoungsModulus(); + return return_val; + } + + void PxFEMMaterial_setPoissons_mut(physx_PxFEMMaterial_Pod* self__pod, float poisson) { + physx::PxFEMMaterial* self_ = reinterpret_cast(self__pod); + self_->setPoissons(poisson); + } + + float PxFEMMaterial_getPoissons(physx_PxFEMMaterial_Pod const* self__pod) { + physx::PxFEMMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getPoissons(); + return return_val; + } + + void PxFEMMaterial_setDynamicFriction_mut(physx_PxFEMMaterial_Pod* self__pod, float dynamicFriction) { + physx::PxFEMMaterial* self_ = reinterpret_cast(self__pod); + self_->setDynamicFriction(dynamicFriction); + } + + float PxFEMMaterial_getDynamicFriction(physx_PxFEMMaterial_Pod const* self__pod) { + physx::PxFEMMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDynamicFriction(); + return return_val; + } + + physx_PxFilterData_Pod PxFilterData_new(int32_t anon_param0_pod) { + auto anon_param0 = static_cast(anon_param0_pod); + PxFilterData return_val(anon_param0); + physx_PxFilterData_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxFilterData_Pod PxFilterData_new_1() { + PxFilterData return_val; + physx_PxFilterData_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxFilterData_Pod PxFilterData_new_2(uint32_t w0, uint32_t w1, uint32_t w2, uint32_t w3) { + PxFilterData return_val(w0, w1, w2, w3); + physx_PxFilterData_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxFilterData_setToDefault_mut(physx_PxFilterData_Pod* self__pod) { + physx::PxFilterData* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + int32_t phys_PxGetFilterObjectType(uint32_t attr) { + physx::PxFilterObjectType::Enum return_val = PxGetFilterObjectType(attr); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool phys_PxFilterObjectIsKinematic(uint32_t attr) { + bool return_val = PxFilterObjectIsKinematic(attr); + return return_val; + } + + bool phys_PxFilterObjectIsTrigger(uint32_t attr) { + bool return_val = PxFilterObjectIsTrigger(attr); + return return_val; + } + + uint16_t PxSimulationFilterCallback_pairFound_mut(physx_PxSimulationFilterCallback_Pod* self__pod, uint32_t pairID, uint32_t attributes0, physx_PxFilterData_Pod filterData0_pod, physx_PxActor_Pod const* a0_pod, physx_PxShape_Pod const* s0_pod, uint32_t attributes1, physx_PxFilterData_Pod filterData1_pod, physx_PxActor_Pod const* a1_pod, physx_PxShape_Pod const* s1_pod, uint16_t* pairFlags_pod) { + physx::PxSimulationFilterCallback* self_ = reinterpret_cast(self__pod); + physx::PxFilterData filterData0; + memcpy(&filterData0, &filterData0_pod, sizeof(filterData0)); + physx::PxActor const* a0 = reinterpret_cast(a0_pod); + physx::PxShape const* s0 = reinterpret_cast(s0_pod); + physx::PxFilterData filterData1; + memcpy(&filterData1, &filterData1_pod, sizeof(filterData1)); + physx::PxActor const* a1 = reinterpret_cast(a1_pod); + physx::PxShape const* s1 = reinterpret_cast(s1_pod); + physx::PxPairFlags& pairFlags = reinterpret_cast(*pairFlags_pod); + physx::PxFilterFlags return_val = self_->pairFound(pairID, attributes0, filterData0, a0, s0, attributes1, filterData1, a1, s1, pairFlags); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxSimulationFilterCallback_pairLost_mut(physx_PxSimulationFilterCallback_Pod* self__pod, uint32_t pairID, uint32_t attributes0, physx_PxFilterData_Pod filterData0_pod, uint32_t attributes1, physx_PxFilterData_Pod filterData1_pod, bool objectRemoved) { + physx::PxSimulationFilterCallback* self_ = reinterpret_cast(self__pod); + physx::PxFilterData filterData0; + memcpy(&filterData0, &filterData0_pod, sizeof(filterData0)); + physx::PxFilterData filterData1; + memcpy(&filterData1, &filterData1_pod, sizeof(filterData1)); + self_->pairLost(pairID, attributes0, filterData0, attributes1, filterData1, objectRemoved); + } + + bool PxSimulationFilterCallback_statusChange_mut(physx_PxSimulationFilterCallback_Pod* self__pod, uint32_t* pairID_pod, uint16_t* pairFlags_pod, uint16_t* filterFlags_pod) { + physx::PxSimulationFilterCallback* self_ = reinterpret_cast(self__pod); + uint32_t& pairID = *pairID_pod; + physx::PxPairFlags& pairFlags = reinterpret_cast(*pairFlags_pod); + physx::PxFilterFlags& filterFlags = reinterpret_cast(*filterFlags_pod); + bool return_val = self_->statusChange(pairID, pairFlags, filterFlags); + return return_val; + } + + uint8_t PxLockedData_getDataAccessFlags_mut(physx_PxLockedData_Pod* self__pod) { + physx::PxLockedData* self_ = reinterpret_cast(self__pod); + physx::PxDataAccessFlags return_val = self_->getDataAccessFlags(); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxLockedData_unlock_mut(physx_PxLockedData_Pod* self__pod) { + physx::PxLockedData* self_ = reinterpret_cast(self__pod); + self_->unlock(); + } + + void PxLockedData_delete(physx_PxLockedData_Pod* self__pod) { + physx::PxLockedData* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxMaterial_setDynamicFriction_mut(physx_PxMaterial_Pod* self__pod, float coef) { + physx::PxMaterial* self_ = reinterpret_cast(self__pod); + self_->setDynamicFriction(coef); + } + + float PxMaterial_getDynamicFriction(physx_PxMaterial_Pod const* self__pod) { + physx::PxMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDynamicFriction(); + return return_val; + } + + void PxMaterial_setStaticFriction_mut(physx_PxMaterial_Pod* self__pod, float coef) { + physx::PxMaterial* self_ = reinterpret_cast(self__pod); + self_->setStaticFriction(coef); + } + + float PxMaterial_getStaticFriction(physx_PxMaterial_Pod const* self__pod) { + physx::PxMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getStaticFriction(); + return return_val; + } + + void PxMaterial_setRestitution_mut(physx_PxMaterial_Pod* self__pod, float rest) { + physx::PxMaterial* self_ = reinterpret_cast(self__pod); + self_->setRestitution(rest); + } + + float PxMaterial_getRestitution(physx_PxMaterial_Pod const* self__pod) { + physx::PxMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getRestitution(); + return return_val; + } + + void PxMaterial_setDamping_mut(physx_PxMaterial_Pod* self__pod, float damping) { + physx::PxMaterial* self_ = reinterpret_cast(self__pod); + self_->setDamping(damping); + } + + float PxMaterial_getDamping(physx_PxMaterial_Pod const* self__pod) { + physx::PxMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDamping(); + return return_val; + } + + void PxMaterial_setFlag_mut(physx_PxMaterial_Pod* self__pod, int32_t flag_pod, bool b) { + physx::PxMaterial* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setFlag(flag, b); + } + + void PxMaterial_setFlags_mut(physx_PxMaterial_Pod* self__pod, uint16_t flags_pod) { + physx::PxMaterial* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxMaterialFlags(flags_pod); + self_->setFlags(flags); + } + + uint16_t PxMaterial_getFlags(physx_PxMaterial_Pod const* self__pod) { + physx::PxMaterial const* self_ = reinterpret_cast(self__pod); + physx::PxMaterialFlags return_val = self_->getFlags(); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxMaterial_setFrictionCombineMode_mut(physx_PxMaterial_Pod* self__pod, int32_t combMode_pod) { + physx::PxMaterial* self_ = reinterpret_cast(self__pod); + auto combMode = static_cast(combMode_pod); + self_->setFrictionCombineMode(combMode); + } + + int32_t PxMaterial_getFrictionCombineMode(physx_PxMaterial_Pod const* self__pod) { + physx::PxMaterial const* self_ = reinterpret_cast(self__pod); + physx::PxCombineMode::Enum return_val = self_->getFrictionCombineMode(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxMaterial_setRestitutionCombineMode_mut(physx_PxMaterial_Pod* self__pod, int32_t combMode_pod) { + physx::PxMaterial* self_ = reinterpret_cast(self__pod); + auto combMode = static_cast(combMode_pod); + self_->setRestitutionCombineMode(combMode); + } + + int32_t PxMaterial_getRestitutionCombineMode(physx_PxMaterial_Pod const* self__pod) { + physx::PxMaterial const* self_ = reinterpret_cast(self__pod); + physx::PxCombineMode::Enum return_val = self_->getRestitutionCombineMode(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + char const* PxMaterial_getConcreteTypeName(physx_PxMaterial_Pod const* self__pod) { + physx::PxMaterial const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxDiffuseParticleParams_Pod PxDiffuseParticleParams_new() { + PxDiffuseParticleParams return_val; + physx_PxDiffuseParticleParams_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxDiffuseParticleParams_setToDefault_mut(physx_PxDiffuseParticleParams_Pod* self__pod) { + physx::PxDiffuseParticleParams* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + void PxParticleMaterial_setFriction_mut(physx_PxParticleMaterial_Pod* self__pod, float friction) { + physx::PxParticleMaterial* self_ = reinterpret_cast(self__pod); + self_->setFriction(friction); + } + + float PxParticleMaterial_getFriction(physx_PxParticleMaterial_Pod const* self__pod) { + physx::PxParticleMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getFriction(); + return return_val; + } + + void PxParticleMaterial_setDamping_mut(physx_PxParticleMaterial_Pod* self__pod, float damping) { + physx::PxParticleMaterial* self_ = reinterpret_cast(self__pod); + self_->setDamping(damping); + } + + float PxParticleMaterial_getDamping(physx_PxParticleMaterial_Pod const* self__pod) { + physx::PxParticleMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDamping(); + return return_val; + } + + void PxParticleMaterial_setAdhesion_mut(physx_PxParticleMaterial_Pod* self__pod, float adhesion) { + physx::PxParticleMaterial* self_ = reinterpret_cast(self__pod); + self_->setAdhesion(adhesion); + } + + float PxParticleMaterial_getAdhesion(physx_PxParticleMaterial_Pod const* self__pod) { + physx::PxParticleMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getAdhesion(); + return return_val; + } + + void PxParticleMaterial_setGravityScale_mut(physx_PxParticleMaterial_Pod* self__pod, float scale) { + physx::PxParticleMaterial* self_ = reinterpret_cast(self__pod); + self_->setGravityScale(scale); + } + + float PxParticleMaterial_getGravityScale(physx_PxParticleMaterial_Pod const* self__pod) { + physx::PxParticleMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getGravityScale(); + return return_val; + } + + void PxParticleMaterial_setAdhesionRadiusScale_mut(physx_PxParticleMaterial_Pod* self__pod, float scale) { + physx::PxParticleMaterial* self_ = reinterpret_cast(self__pod); + self_->setAdhesionRadiusScale(scale); + } + + float PxParticleMaterial_getAdhesionRadiusScale(physx_PxParticleMaterial_Pod const* self__pod) { + physx::PxParticleMaterial const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getAdhesionRadiusScale(); + return return_val; + } + + void PxPhysics_release_mut(physx_PxPhysics_Pod* self__pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxFoundation_Pod* PxPhysics_getFoundation_mut(physx_PxPhysics_Pod* self__pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxFoundation& return_val = self_->getFoundation(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxAggregate_Pod* PxPhysics_createAggregate_mut(physx_PxPhysics_Pod* self__pod, uint32_t maxActor, uint32_t maxShape, uint32_t filterHint) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxAggregate* return_val = self_->createAggregate(maxActor, maxShape, filterHint); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxTolerancesScale_Pod const* PxPhysics_getTolerancesScale(physx_PxPhysics_Pod const* self__pod) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + physx::PxTolerancesScale const& return_val = self_->getTolerancesScale(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxTriangleMesh_Pod* PxPhysics_createTriangleMesh_mut(physx_PxPhysics_Pod* self__pod, physx_PxInputStream_Pod* stream_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxInputStream& stream = reinterpret_cast(*stream_pod); + physx::PxTriangleMesh* return_val = self_->createTriangleMesh(stream); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxPhysics_getNbTriangleMeshes(physx_PxPhysics_Pod const* self__pod) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbTriangleMeshes(); + return return_val; + } + + uint32_t PxPhysics_getTriangleMeshes(physx_PxPhysics_Pod const* self__pod, physx_PxTriangleMesh_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + physx::PxTriangleMesh** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getTriangleMeshes(userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxTetrahedronMesh_Pod* PxPhysics_createTetrahedronMesh_mut(physx_PxPhysics_Pod* self__pod, physx_PxInputStream_Pod* stream_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxInputStream& stream = reinterpret_cast(*stream_pod); + physx::PxTetrahedronMesh* return_val = self_->createTetrahedronMesh(stream); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSoftBodyMesh_Pod* PxPhysics_createSoftBodyMesh_mut(physx_PxPhysics_Pod* self__pod, physx_PxInputStream_Pod* stream_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxInputStream& stream = reinterpret_cast(*stream_pod); + physx::PxSoftBodyMesh* return_val = self_->createSoftBodyMesh(stream); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxPhysics_getNbTetrahedronMeshes(physx_PxPhysics_Pod const* self__pod) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbTetrahedronMeshes(); + return return_val; + } + + uint32_t PxPhysics_getTetrahedronMeshes(physx_PxPhysics_Pod const* self__pod, physx_PxTetrahedronMesh_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + physx::PxTetrahedronMesh** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getTetrahedronMeshes(userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxHeightField_Pod* PxPhysics_createHeightField_mut(physx_PxPhysics_Pod* self__pod, physx_PxInputStream_Pod* stream_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxInputStream& stream = reinterpret_cast(*stream_pod); + physx::PxHeightField* return_val = self_->createHeightField(stream); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxPhysics_getNbHeightFields(physx_PxPhysics_Pod const* self__pod) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbHeightFields(); + return return_val; + } + + uint32_t PxPhysics_getHeightFields(physx_PxPhysics_Pod const* self__pod, physx_PxHeightField_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + physx::PxHeightField** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getHeightFields(userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxConvexMesh_Pod* PxPhysics_createConvexMesh_mut(physx_PxPhysics_Pod* self__pod, physx_PxInputStream_Pod* stream_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxInputStream& stream = reinterpret_cast(*stream_pod); + physx::PxConvexMesh* return_val = self_->createConvexMesh(stream); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxPhysics_getNbConvexMeshes(physx_PxPhysics_Pod const* self__pod) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbConvexMeshes(); + return return_val; + } + + uint32_t PxPhysics_getConvexMeshes(physx_PxPhysics_Pod const* self__pod, physx_PxConvexMesh_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + physx::PxConvexMesh** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getConvexMeshes(userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxBVH_Pod* PxPhysics_createBVH_mut(physx_PxPhysics_Pod* self__pod, physx_PxInputStream_Pod* stream_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxInputStream& stream = reinterpret_cast(*stream_pod); + physx::PxBVH* return_val = self_->createBVH(stream); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxPhysics_getNbBVHs(physx_PxPhysics_Pod const* self__pod) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbBVHs(); + return return_val; + } + + uint32_t PxPhysics_getBVHs(physx_PxPhysics_Pod const* self__pod, physx_PxBVH_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + physx::PxBVH** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getBVHs(userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxScene_Pod* PxPhysics_createScene_mut(physx_PxPhysics_Pod* self__pod, physx_PxSceneDesc_Pod const* sceneDesc_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxSceneDesc const& sceneDesc = reinterpret_cast(*sceneDesc_pod); + physx::PxScene* return_val = self_->createScene(sceneDesc); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxPhysics_getNbScenes(physx_PxPhysics_Pod const* self__pod) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbScenes(); + return return_val; + } + + uint32_t PxPhysics_getScenes(physx_PxPhysics_Pod const* self__pod, physx_PxScene_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + physx::PxScene** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getScenes(userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxRigidStatic_Pod* PxPhysics_createRigidStatic_mut(physx_PxPhysics_Pod* self__pod, physx_PxTransform_Pod const* pose_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxRigidStatic* return_val = self_->createRigidStatic(pose); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxRigidDynamic_Pod* PxPhysics_createRigidDynamic_mut(physx_PxPhysics_Pod* self__pod, physx_PxTransform_Pod const* pose_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxRigidDynamic* return_val = self_->createRigidDynamic(pose); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxPruningStructure_Pod* PxPhysics_createPruningStructure_mut(physx_PxPhysics_Pod* self__pod, physx_PxRigidActor_Pod* const* actors_pod, uint32_t nbActors) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor* const* actors = reinterpret_cast(actors_pod); + physx::PxPruningStructure* return_val = self_->createPruningStructure(actors, nbActors); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxShape_Pod* PxPhysics_createShape_mut(physx_PxPhysics_Pod* self__pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxMaterial_Pod const* material_pod, bool isExclusive, uint8_t shapeFlags_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxMaterial const& material = reinterpret_cast(*material_pod); + auto shapeFlags = physx::PxShapeFlags(shapeFlags_pod); + physx::PxShape* return_val = self_->createShape(geometry, material, isExclusive, shapeFlags); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxShape_Pod* PxPhysics_createShape_mut_1(physx_PxPhysics_Pod* self__pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxMaterial_Pod* const* materials_pod, uint16_t materialCount, bool isExclusive, uint8_t shapeFlags_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxMaterial* const* materials = reinterpret_cast(materials_pod); + auto shapeFlags = physx::PxShapeFlags(shapeFlags_pod); + physx::PxShape* return_val = self_->createShape(geometry, materials, materialCount, isExclusive, shapeFlags); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxPhysics_getNbShapes(physx_PxPhysics_Pod const* self__pod) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbShapes(); + return return_val; + } + + uint32_t PxPhysics_getShapes(physx_PxPhysics_Pod const* self__pod, physx_PxShape_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + physx::PxShape** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getShapes(userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxConstraint_Pod* PxPhysics_createConstraint_mut(physx_PxPhysics_Pod* self__pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxRigidActor_Pod* actor1_pod, physx_PxConstraintConnector_Pod* connector_pod, physx_PxConstraintShaderTable_Pod const* shaders_pod, uint32_t dataSize) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + physx::PxConstraintConnector& connector = reinterpret_cast(*connector_pod); + physx::PxConstraintShaderTable const& shaders = reinterpret_cast(*shaders_pod); + physx::PxConstraint* return_val = self_->createConstraint(actor0, actor1, connector, shaders, dataSize); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxArticulationReducedCoordinate_Pod* PxPhysics_createArticulationReducedCoordinate_mut(physx_PxPhysics_Pod* self__pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxArticulationReducedCoordinate* return_val = self_->createArticulationReducedCoordinate(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxMaterial_Pod* PxPhysics_createMaterial_mut(physx_PxPhysics_Pod* self__pod, float staticFriction, float dynamicFriction, float restitution) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxMaterial* return_val = self_->createMaterial(staticFriction, dynamicFriction, restitution); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxPhysics_getNbMaterials(physx_PxPhysics_Pod const* self__pod) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbMaterials(); + return return_val; + } + + uint32_t PxPhysics_getMaterials(physx_PxPhysics_Pod const* self__pod, physx_PxMaterial_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxPhysics const* self_ = reinterpret_cast(self__pod); + physx::PxMaterial** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getMaterials(userBuffer, bufferSize, startIndex); + return return_val; + } + + void PxPhysics_registerDeletionListener_mut(physx_PxPhysics_Pod* self__pod, physx_PxDeletionListener_Pod* observer_pod, uint8_t const* deletionEvents_pod, bool restrictedObjectSet) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxDeletionListener& observer = reinterpret_cast(*observer_pod); + physx::PxDeletionEventFlags const& deletionEvents = reinterpret_cast(*deletionEvents_pod); + self_->registerDeletionListener(observer, deletionEvents, restrictedObjectSet); + } + + void PxPhysics_unregisterDeletionListener_mut(physx_PxPhysics_Pod* self__pod, physx_PxDeletionListener_Pod* observer_pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxDeletionListener& observer = reinterpret_cast(*observer_pod); + self_->unregisterDeletionListener(observer); + } + + void PxPhysics_registerDeletionListenerObjects_mut(physx_PxPhysics_Pod* self__pod, physx_PxDeletionListener_Pod* observer_pod, physx_PxBase_Pod const* const* observables_pod, uint32_t observableCount) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxDeletionListener& observer = reinterpret_cast(*observer_pod); + physx::PxBase const* const* observables = reinterpret_cast(observables_pod); + self_->registerDeletionListenerObjects(observer, observables, observableCount); + } + + void PxPhysics_unregisterDeletionListenerObjects_mut(physx_PxPhysics_Pod* self__pod, physx_PxDeletionListener_Pod* observer_pod, physx_PxBase_Pod const* const* observables_pod, uint32_t observableCount) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxDeletionListener& observer = reinterpret_cast(*observer_pod); + physx::PxBase const* const* observables = reinterpret_cast(observables_pod); + self_->unregisterDeletionListenerObjects(observer, observables, observableCount); + } + + physx_PxInsertionCallback_Pod* PxPhysics_getPhysicsInsertionCallback_mut(physx_PxPhysics_Pod* self__pod) { + physx::PxPhysics* self_ = reinterpret_cast(self__pod); + physx::PxInsertionCallback& return_val = self_->getPhysicsInsertionCallback(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxPhysics_Pod* phys_PxCreatePhysics(uint32_t version, physx_PxFoundation_Pod* foundation_pod, physx_PxTolerancesScale_Pod const* scale_pod, bool trackOutstandingAllocations, physx_PxPvd_Pod* pvd_pod, physx_PxOmniPvd_Pod* omniPvd_pod) { + physx::PxFoundation& foundation = reinterpret_cast(*foundation_pod); + physx::PxTolerancesScale const& scale = reinterpret_cast(*scale_pod); + physx::PxPvd* pvd = reinterpret_cast(pvd_pod); + physx::PxOmniPvd* omniPvd = reinterpret_cast(omniPvd_pod); + physx::PxPhysics* return_val = PxCreatePhysics(version, foundation, scale, trackOutstandingAllocations, pvd, omniPvd); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxPhysics_Pod* phys_PxGetPhysics() { + physx::PxPhysics& return_val = PxGetPhysics(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxActorShape_Pod PxActorShape_new() { + PxActorShape return_val; + physx_PxActorShape_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxActorShape_Pod PxActorShape_new_1(physx_PxRigidActor_Pod* a_pod, physx_PxShape_Pod* s_pod) { + physx::PxRigidActor* a = reinterpret_cast(a_pod); + physx::PxShape* s = reinterpret_cast(s_pod); + PxActorShape return_val(a, s); + physx_PxActorShape_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQueryCache_Pod PxQueryCache_new() { + PxQueryCache return_val; + physx_PxQueryCache_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQueryCache_Pod PxQueryCache_new_1(physx_PxShape_Pod* s_pod, uint32_t findex) { + physx::PxShape* s = reinterpret_cast(s_pod); + PxQueryCache return_val(s, findex); + physx_PxQueryCache_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQueryFilterData_Pod PxQueryFilterData_new() { + PxQueryFilterData return_val; + physx_PxQueryFilterData_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQueryFilterData_Pod PxQueryFilterData_new_1(physx_PxFilterData_Pod const* fd_pod, uint16_t f_pod) { + physx::PxFilterData const& fd = reinterpret_cast(*fd_pod); + auto f = physx::PxQueryFlags(f_pod); + PxQueryFilterData return_val(fd, f); + physx_PxQueryFilterData_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxQueryFilterData_Pod PxQueryFilterData_new_2(uint16_t f_pod) { + auto f = physx::PxQueryFlags(f_pod); + PxQueryFilterData return_val(f); + physx_PxQueryFilterData_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + int32_t PxQueryFilterCallback_preFilter_mut(physx_PxQueryFilterCallback_Pod* self__pod, physx_PxFilterData_Pod const* filterData_pod, physx_PxShape_Pod const* shape_pod, physx_PxRigidActor_Pod const* actor_pod, uint16_t* queryFlags_pod) { + physx::PxQueryFilterCallback* self_ = reinterpret_cast(self__pod); + physx::PxFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxShape const* shape = reinterpret_cast(shape_pod); + physx::PxRigidActor const* actor = reinterpret_cast(actor_pod); + physx::PxHitFlags& queryFlags = reinterpret_cast(*queryFlags_pod); + physx::PxQueryHitType::Enum return_val = self_->preFilter(filterData, shape, actor, queryFlags); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + int32_t PxQueryFilterCallback_postFilter_mut(physx_PxQueryFilterCallback_Pod* self__pod, physx_PxFilterData_Pod const* filterData_pod, physx_PxQueryHit_Pod const* hit_pod, physx_PxShape_Pod const* shape_pod, physx_PxRigidActor_Pod const* actor_pod) { + physx::PxQueryFilterCallback* self_ = reinterpret_cast(self__pod); + physx::PxFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryHit const& hit = reinterpret_cast(*hit_pod); + physx::PxShape const* shape = reinterpret_cast(shape_pod); + physx::PxRigidActor const* actor = reinterpret_cast(actor_pod); + physx::PxQueryHitType::Enum return_val = self_->postFilter(filterData, hit, shape, actor); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxQueryFilterCallback_delete(physx_PxQueryFilterCallback_Pod* self__pod) { + physx::PxQueryFilterCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxRigidDynamic_setKinematicTarget_mut(physx_PxRigidDynamic_Pod* self__pod, physx_PxTransform_Pod const* destination_pod) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& destination = reinterpret_cast(*destination_pod); + self_->setKinematicTarget(destination); + } + + bool PxRigidDynamic_getKinematicTarget(physx_PxRigidDynamic_Pod const* self__pod, physx_PxTransform_Pod* target_pod) { + physx::PxRigidDynamic const* self_ = reinterpret_cast(self__pod); + physx::PxTransform& target = reinterpret_cast(*target_pod); + bool return_val = self_->getKinematicTarget(target); + return return_val; + } + + bool PxRigidDynamic_isSleeping(physx_PxRigidDynamic_Pod const* self__pod) { + physx::PxRigidDynamic const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isSleeping(); + return return_val; + } + + void PxRigidDynamic_setSleepThreshold_mut(physx_PxRigidDynamic_Pod* self__pod, float threshold) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + self_->setSleepThreshold(threshold); + } + + float PxRigidDynamic_getSleepThreshold(physx_PxRigidDynamic_Pod const* self__pod) { + physx::PxRigidDynamic const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getSleepThreshold(); + return return_val; + } + + void PxRigidDynamic_setStabilizationThreshold_mut(physx_PxRigidDynamic_Pod* self__pod, float threshold) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + self_->setStabilizationThreshold(threshold); + } + + float PxRigidDynamic_getStabilizationThreshold(physx_PxRigidDynamic_Pod const* self__pod) { + physx::PxRigidDynamic const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getStabilizationThreshold(); + return return_val; + } + + uint8_t PxRigidDynamic_getRigidDynamicLockFlags(physx_PxRigidDynamic_Pod const* self__pod) { + physx::PxRigidDynamic const* self_ = reinterpret_cast(self__pod); + physx::PxRigidDynamicLockFlags return_val = self_->getRigidDynamicLockFlags(); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRigidDynamic_setRigidDynamicLockFlag_mut(physx_PxRigidDynamic_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setRigidDynamicLockFlag(flag, value); + } + + void PxRigidDynamic_setRigidDynamicLockFlags_mut(physx_PxRigidDynamic_Pod* self__pod, uint8_t flags_pod) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxRigidDynamicLockFlags(flags_pod); + self_->setRigidDynamicLockFlags(flags); + } + + physx_PxVec3_Pod PxRigidDynamic_getLinearVelocity(physx_PxRigidDynamic_Pod const* self__pod) { + physx::PxRigidDynamic const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getLinearVelocity(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRigidDynamic_setLinearVelocity_mut(physx_PxRigidDynamic_Pod* self__pod, physx_PxVec3_Pod const* linVel_pod, bool autowake) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& linVel = reinterpret_cast(*linVel_pod); + self_->setLinearVelocity(linVel, autowake); + } + + physx_PxVec3_Pod PxRigidDynamic_getAngularVelocity(physx_PxRigidDynamic_Pod const* self__pod) { + physx::PxRigidDynamic const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getAngularVelocity(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRigidDynamic_setAngularVelocity_mut(physx_PxRigidDynamic_Pod* self__pod, physx_PxVec3_Pod const* angVel_pod, bool autowake) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& angVel = reinterpret_cast(*angVel_pod); + self_->setAngularVelocity(angVel, autowake); + } + + void PxRigidDynamic_setWakeCounter_mut(physx_PxRigidDynamic_Pod* self__pod, float wakeCounterValue) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + self_->setWakeCounter(wakeCounterValue); + } + + float PxRigidDynamic_getWakeCounter(physx_PxRigidDynamic_Pod const* self__pod) { + physx::PxRigidDynamic const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getWakeCounter(); + return return_val; + } + + void PxRigidDynamic_wakeUp_mut(physx_PxRigidDynamic_Pod* self__pod) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + self_->wakeUp(); + } + + void PxRigidDynamic_putToSleep_mut(physx_PxRigidDynamic_Pod* self__pod) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + self_->putToSleep(); + } + + void PxRigidDynamic_setSolverIterationCounts_mut(physx_PxRigidDynamic_Pod* self__pod, uint32_t minPositionIters, uint32_t minVelocityIters) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + self_->setSolverIterationCounts(minPositionIters, minVelocityIters); + } + + void PxRigidDynamic_getSolverIterationCounts(physx_PxRigidDynamic_Pod const* self__pod, uint32_t* minPositionIters_pod, uint32_t* minVelocityIters_pod) { + physx::PxRigidDynamic const* self_ = reinterpret_cast(self__pod); + uint32_t& minPositionIters = *minPositionIters_pod; + uint32_t& minVelocityIters = *minVelocityIters_pod; + self_->getSolverIterationCounts(minPositionIters, minVelocityIters); + } + + float PxRigidDynamic_getContactReportThreshold(physx_PxRigidDynamic_Pod const* self__pod) { + physx::PxRigidDynamic const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getContactReportThreshold(); + return return_val; + } + + void PxRigidDynamic_setContactReportThreshold_mut(physx_PxRigidDynamic_Pod* self__pod, float threshold) { + physx::PxRigidDynamic* self_ = reinterpret_cast(self__pod); + self_->setContactReportThreshold(threshold); + } + + char const* PxRigidDynamic_getConcreteTypeName(physx_PxRigidDynamic_Pod const* self__pod) { + physx::PxRigidDynamic const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + char const* PxRigidStatic_getConcreteTypeName(physx_PxRigidStatic_Pod const* self__pod) { + physx::PxRigidStatic const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxSceneQueryDesc_Pod PxSceneQueryDesc_new() { + PxSceneQueryDesc return_val; + physx_PxSceneQueryDesc_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxSceneQueryDesc_setToDefault_mut(physx_PxSceneQueryDesc_Pod* self__pod) { + physx::PxSceneQueryDesc* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + bool PxSceneQueryDesc_isValid(physx_PxSceneQueryDesc_Pod const* self__pod) { + physx::PxSceneQueryDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxSceneQuerySystemBase_setDynamicTreeRebuildRateHint_mut(physx_PxSceneQuerySystemBase_Pod* self__pod, uint32_t dynamicTreeRebuildRateHint) { + physx::PxSceneQuerySystemBase* self_ = reinterpret_cast(self__pod); + self_->setDynamicTreeRebuildRateHint(dynamicTreeRebuildRateHint); + } + + uint32_t PxSceneQuerySystemBase_getDynamicTreeRebuildRateHint(physx_PxSceneQuerySystemBase_Pod const* self__pod) { + physx::PxSceneQuerySystemBase const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getDynamicTreeRebuildRateHint(); + return return_val; + } + + void PxSceneQuerySystemBase_forceRebuildDynamicTree_mut(physx_PxSceneQuerySystemBase_Pod* self__pod, uint32_t prunerIndex) { + physx::PxSceneQuerySystemBase* self_ = reinterpret_cast(self__pod); + self_->forceRebuildDynamicTree(prunerIndex); + } + + void PxSceneQuerySystemBase_setUpdateMode_mut(physx_PxSceneQuerySystemBase_Pod* self__pod, int32_t updateMode_pod) { + physx::PxSceneQuerySystemBase* self_ = reinterpret_cast(self__pod); + auto updateMode = static_cast(updateMode_pod); + self_->setUpdateMode(updateMode); + } + + int32_t PxSceneQuerySystemBase_getUpdateMode(physx_PxSceneQuerySystemBase_Pod const* self__pod) { + physx::PxSceneQuerySystemBase const* self_ = reinterpret_cast(self__pod); + physx::PxSceneQueryUpdateMode::Enum return_val = self_->getUpdateMode(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxSceneQuerySystemBase_getStaticTimestamp(physx_PxSceneQuerySystemBase_Pod const* self__pod) { + physx::PxSceneQuerySystemBase const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getStaticTimestamp(); + return return_val; + } + + void PxSceneQuerySystemBase_flushUpdates_mut(physx_PxSceneQuerySystemBase_Pod* self__pod) { + physx::PxSceneQuerySystemBase* self_ = reinterpret_cast(self__pod); + self_->flushUpdates(); + } + + bool PxSceneQuerySystemBase_raycast(physx_PxSceneQuerySystemBase_Pod const* self__pod, physx_PxVec3_Pod const* origin_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, physx_PxRaycastCallback_Pod* hitCall_pod, uint16_t hitFlags_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod, physx_PxQueryCache_Pod const* cache_pod, uint32_t queryFlags_pod) { + physx::PxSceneQuerySystemBase const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& origin = reinterpret_cast(*origin_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + physx::PxRaycastCallback& hitCall = reinterpret_cast(*hitCall_pod); + auto hitFlags = physx::PxHitFlags(hitFlags_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + bool return_val = self_->raycast(origin, unitDir, distance, hitCall, hitFlags, filterData, filterCall, cache, queryFlags); + return return_val; + } + + bool PxSceneQuerySystemBase_sweep(physx_PxSceneQuerySystemBase_Pod const* self__pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxTransform_Pod const* pose_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, physx_PxSweepCallback_Pod* hitCall_pod, uint16_t hitFlags_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod, physx_PxQueryCache_Pod const* cache_pod, float inflation, uint32_t queryFlags_pod) { + physx::PxSceneQuerySystemBase const* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + physx::PxSweepCallback& hitCall = reinterpret_cast(*hitCall_pod); + auto hitFlags = physx::PxHitFlags(hitFlags_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + bool return_val = self_->sweep(geometry, pose, unitDir, distance, hitCall, hitFlags, filterData, filterCall, cache, inflation, queryFlags); + return return_val; + } + + bool PxSceneQuerySystemBase_overlap(physx_PxSceneQuerySystemBase_Pod const* self__pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxTransform_Pod const* pose_pod, physx_PxOverlapCallback_Pod* hitCall_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod, physx_PxQueryCache_Pod const* cache_pod, uint32_t queryFlags_pod) { + physx::PxSceneQuerySystemBase const* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxOverlapCallback& hitCall = reinterpret_cast(*hitCall_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + auto queryFlags = physx::PxGeometryQueryFlags(queryFlags_pod); + bool return_val = self_->overlap(geometry, pose, hitCall, filterData, filterCall, cache, queryFlags); + return return_val; + } + + void PxSceneSQSystem_setSceneQueryUpdateMode_mut(physx_PxSceneSQSystem_Pod* self__pod, int32_t updateMode_pod) { + physx::PxSceneSQSystem* self_ = reinterpret_cast(self__pod); + auto updateMode = static_cast(updateMode_pod); + self_->setSceneQueryUpdateMode(updateMode); + } + + int32_t PxSceneSQSystem_getSceneQueryUpdateMode(physx_PxSceneSQSystem_Pod const* self__pod) { + physx::PxSceneSQSystem const* self_ = reinterpret_cast(self__pod); + physx::PxSceneQueryUpdateMode::Enum return_val = self_->getSceneQueryUpdateMode(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxSceneSQSystem_getSceneQueryStaticTimestamp(physx_PxSceneSQSystem_Pod const* self__pod) { + physx::PxSceneSQSystem const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getSceneQueryStaticTimestamp(); + return return_val; + } + + void PxSceneSQSystem_flushQueryUpdates_mut(physx_PxSceneSQSystem_Pod* self__pod) { + physx::PxSceneSQSystem* self_ = reinterpret_cast(self__pod); + self_->flushQueryUpdates(); + } + + void PxSceneSQSystem_forceDynamicTreeRebuild_mut(physx_PxSceneSQSystem_Pod* self__pod, bool rebuildStaticStructure, bool rebuildDynamicStructure) { + physx::PxSceneSQSystem* self_ = reinterpret_cast(self__pod); + self_->forceDynamicTreeRebuild(rebuildStaticStructure, rebuildDynamicStructure); + } + + int32_t PxSceneSQSystem_getStaticStructure(physx_PxSceneSQSystem_Pod const* self__pod) { + physx::PxSceneSQSystem const* self_ = reinterpret_cast(self__pod); + physx::PxPruningStructureType::Enum return_val = self_->getStaticStructure(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + int32_t PxSceneSQSystem_getDynamicStructure(physx_PxSceneSQSystem_Pod const* self__pod) { + physx::PxSceneSQSystem const* self_ = reinterpret_cast(self__pod); + physx::PxPruningStructureType::Enum return_val = self_->getDynamicStructure(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxSceneSQSystem_sceneQueriesUpdate_mut(physx_PxSceneSQSystem_Pod* self__pod, physx_PxBaseTask_Pod* completionTask_pod, bool controlSimulation) { + physx::PxSceneSQSystem* self_ = reinterpret_cast(self__pod); + physx::PxBaseTask* completionTask = reinterpret_cast(completionTask_pod); + self_->sceneQueriesUpdate(completionTask, controlSimulation); + } + + bool PxSceneSQSystem_checkQueries_mut(physx_PxSceneSQSystem_Pod* self__pod, bool block) { + physx::PxSceneSQSystem* self_ = reinterpret_cast(self__pod); + bool return_val = self_->checkQueries(block); + return return_val; + } + + bool PxSceneSQSystem_fetchQueries_mut(physx_PxSceneSQSystem_Pod* self__pod, bool block) { + physx::PxSceneSQSystem* self_ = reinterpret_cast(self__pod); + bool return_val = self_->fetchQueries(block); + return return_val; + } + + void PxSceneQuerySystem_release_mut(physx_PxSceneQuerySystem_Pod* self__pod) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + void PxSceneQuerySystem_acquireReference_mut(physx_PxSceneQuerySystem_Pod* self__pod) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + self_->acquireReference(); + } + + void PxSceneQuerySystem_preallocate_mut(physx_PxSceneQuerySystem_Pod* self__pod, uint32_t prunerIndex, uint32_t nbShapes) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + self_->preallocate(prunerIndex, nbShapes); + } + + void PxSceneQuerySystem_flushMemory_mut(physx_PxSceneQuerySystem_Pod* self__pod) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + self_->flushMemory(); + } + + void PxSceneQuerySystem_addSQShape_mut(physx_PxSceneQuerySystem_Pod* self__pod, physx_PxRigidActor_Pod const* actor_pod, physx_PxShape_Pod const* shape_pod, physx_PxBounds3_Pod const* bounds_pod, physx_PxTransform_Pod const* transform_pod, uint32_t const* compoundHandle, bool hasPruningStructure) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + physx::PxBounds3 const& bounds = reinterpret_cast(*bounds_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + self_->addSQShape(actor, shape, bounds, transform, compoundHandle, hasPruningStructure); + } + + void PxSceneQuerySystem_removeSQShape_mut(physx_PxSceneQuerySystem_Pod* self__pod, physx_PxRigidActor_Pod const* actor_pod, physx_PxShape_Pod const* shape_pod) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + self_->removeSQShape(actor, shape); + } + + void PxSceneQuerySystem_updateSQShape_mut(physx_PxSceneQuerySystem_Pod* self__pod, physx_PxRigidActor_Pod const* actor_pod, physx_PxShape_Pod const* shape_pod, physx_PxTransform_Pod const* transform_pod) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + self_->updateSQShape(actor, shape, transform); + } + + uint32_t PxSceneQuerySystem_addSQCompound_mut(physx_PxSceneQuerySystem_Pod* self__pod, physx_PxRigidActor_Pod const* actor_pod, physx_PxShape_Pod const** shapes_pod, physx_PxBVH_Pod const* bvh_pod, physx_PxTransform_Pod const* transforms_pod) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxShape const** shapes = reinterpret_cast(shapes_pod); + physx::PxBVH const& bvh = reinterpret_cast(*bvh_pod); + physx::PxTransform const* transforms = reinterpret_cast(transforms_pod); + uint32_t return_val = self_->addSQCompound(actor, shapes, bvh, transforms); + return return_val; + } + + void PxSceneQuerySystem_removeSQCompound_mut(physx_PxSceneQuerySystem_Pod* self__pod, uint32_t compoundHandle) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + self_->removeSQCompound(compoundHandle); + } + + void PxSceneQuerySystem_updateSQCompound_mut(physx_PxSceneQuerySystem_Pod* self__pod, uint32_t compoundHandle, physx_PxTransform_Pod const* compoundTransform_pod) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& compoundTransform = reinterpret_cast(*compoundTransform_pod); + self_->updateSQCompound(compoundHandle, compoundTransform); + } + + void PxSceneQuerySystem_shiftOrigin_mut(physx_PxSceneQuerySystem_Pod* self__pod, physx_PxVec3_Pod const* shift_pod) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& shift = reinterpret_cast(*shift_pod); + self_->shiftOrigin(shift); + } + + void PxSceneQuerySystem_merge_mut(physx_PxSceneQuerySystem_Pod* self__pod, physx_PxPruningStructure_Pod const* pruningStructure_pod) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + physx::PxPruningStructure const& pruningStructure = reinterpret_cast(*pruningStructure_pod); + self_->merge(pruningStructure); + } + + uint32_t PxSceneQuerySystem_getHandle(physx_PxSceneQuerySystem_Pod const* self__pod, physx_PxRigidActor_Pod const* actor_pod, physx_PxShape_Pod const* shape_pod, uint32_t* prunerIndex_pod) { + physx::PxSceneQuerySystem const* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + uint32_t& prunerIndex = *prunerIndex_pod; + uint32_t return_val = self_->getHandle(actor, shape, prunerIndex); + return return_val; + } + + void PxSceneQuerySystem_sync_mut(physx_PxSceneQuerySystem_Pod* self__pod, uint32_t prunerIndex, uint32_t const* handles, uint32_t const* indices, physx_PxBounds3_Pod const* bounds_pod, physx_PxTransformPadded_Pod const* transforms_pod, uint32_t count, physx_PxBitMap_Pod const* ignoredIndices_pod) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const* bounds = reinterpret_cast(bounds_pod); + physx::PxTransformPadded const* transforms = reinterpret_cast(transforms_pod); + physx::PxBitMap const& ignoredIndices = reinterpret_cast(*ignoredIndices_pod); + self_->sync(prunerIndex, handles, indices, bounds, transforms, count, ignoredIndices); + } + + void PxSceneQuerySystem_finalizeUpdates_mut(physx_PxSceneQuerySystem_Pod* self__pod) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + self_->finalizeUpdates(); + } + + void* PxSceneQuerySystem_prepareSceneQueryBuildStep_mut(physx_PxSceneQuerySystem_Pod* self__pod, uint32_t prunerIndex) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + void* return_val = self_->prepareSceneQueryBuildStep(prunerIndex); + return return_val; + } + + void PxSceneQuerySystem_sceneQueryBuildStep_mut(physx_PxSceneQuerySystem_Pod* self__pod, void* handle) { + physx::PxSceneQuerySystem* self_ = reinterpret_cast(self__pod); + self_->sceneQueryBuildStep(handle); + } + + physx_PxBroadPhaseDesc_Pod PxBroadPhaseDesc_new(int32_t type_pod) { + auto type = static_cast(type_pod); + PxBroadPhaseDesc return_val(type); + physx_PxBroadPhaseDesc_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxBroadPhaseDesc_isValid(physx_PxBroadPhaseDesc_Pod const* self__pod) { + physx::PxBroadPhaseDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + uint32_t phys_PxGetBroadPhaseStaticFilterGroup() { + uint32_t return_val = PxGetBroadPhaseStaticFilterGroup(); + return return_val; + } + + uint32_t phys_PxGetBroadPhaseDynamicFilterGroup(uint32_t id) { + uint32_t return_val = PxGetBroadPhaseDynamicFilterGroup(id); + return return_val; + } + + uint32_t phys_PxGetBroadPhaseKinematicFilterGroup(uint32_t id) { + uint32_t return_val = PxGetBroadPhaseKinematicFilterGroup(id); + return return_val; + } + + physx_PxBroadPhaseUpdateData_Pod PxBroadPhaseUpdateData_new(uint32_t const* created, uint32_t nbCreated, uint32_t const* updated, uint32_t nbUpdated, uint32_t const* removed, uint32_t nbRemoved, physx_PxBounds3_Pod const* bounds_pod, uint32_t const* groups, float const* distances, uint32_t capacity) { + physx::PxBounds3 const* bounds = reinterpret_cast(bounds_pod); + PxBroadPhaseUpdateData return_val(created, nbCreated, updated, nbUpdated, removed, nbRemoved, bounds, groups, distances, capacity); + physx_PxBroadPhaseUpdateData_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBroadPhaseResults_Pod PxBroadPhaseResults_new() { + PxBroadPhaseResults return_val; + physx_PxBroadPhaseResults_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxBroadPhaseRegions_getNbRegions(physx_PxBroadPhaseRegions_Pod const* self__pod) { + physx::PxBroadPhaseRegions const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbRegions(); + return return_val; + } + + uint32_t PxBroadPhaseRegions_getRegions(physx_PxBroadPhaseRegions_Pod const* self__pod, physx_PxBroadPhaseRegionInfo_Pod* userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxBroadPhaseRegions const* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseRegionInfo* userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getRegions(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxBroadPhaseRegions_addRegion_mut(physx_PxBroadPhaseRegions_Pod* self__pod, physx_PxBroadPhaseRegion_Pod const* region_pod, bool populateRegion, physx_PxBounds3_Pod const* bounds_pod, float const* distances) { + physx::PxBroadPhaseRegions* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseRegion const& region = reinterpret_cast(*region_pod); + physx::PxBounds3 const* bounds = reinterpret_cast(bounds_pod); + uint32_t return_val = self_->addRegion(region, populateRegion, bounds, distances); + return return_val; + } + + bool PxBroadPhaseRegions_removeRegion_mut(physx_PxBroadPhaseRegions_Pod* self__pod, uint32_t handle) { + physx::PxBroadPhaseRegions* self_ = reinterpret_cast(self__pod); + bool return_val = self_->removeRegion(handle); + return return_val; + } + + uint32_t PxBroadPhaseRegions_getNbOutOfBoundsObjects(physx_PxBroadPhaseRegions_Pod const* self__pod) { + physx::PxBroadPhaseRegions const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbOutOfBoundsObjects(); + return return_val; + } + + uint32_t const* PxBroadPhaseRegions_getOutOfBoundsObjects(physx_PxBroadPhaseRegions_Pod const* self__pod) { + physx::PxBroadPhaseRegions const* self_ = reinterpret_cast(self__pod); + uint32_t const* return_val = self_->getOutOfBoundsObjects(); + return return_val; + } + + void PxBroadPhase_release_mut(physx_PxBroadPhase_Pod* self__pod) { + physx::PxBroadPhase* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + int32_t PxBroadPhase_getType(physx_PxBroadPhase_Pod const* self__pod) { + physx::PxBroadPhase const* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseType::Enum return_val = self_->getType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxBroadPhase_getCaps(physx_PxBroadPhase_Pod const* self__pod, physx_PxBroadPhaseCaps_Pod* caps_pod) { + physx::PxBroadPhase const* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseCaps& caps = reinterpret_cast(*caps_pod); + self_->getCaps(caps); + } + + physx_PxBroadPhaseRegions_Pod* PxBroadPhase_getRegions_mut(physx_PxBroadPhase_Pod* self__pod) { + physx::PxBroadPhase* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseRegions* return_val = self_->getRegions(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxAllocatorCallback_Pod* PxBroadPhase_getAllocator_mut(physx_PxBroadPhase_Pod* self__pod) { + physx::PxBroadPhase* self_ = reinterpret_cast(self__pod); + physx::PxAllocatorCallback* return_val = self_->getAllocator(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint64_t PxBroadPhase_getContextID(physx_PxBroadPhase_Pod const* self__pod) { + physx::PxBroadPhase const* self_ = reinterpret_cast(self__pod); + uint64_t return_val = self_->getContextID(); + return return_val; + } + + void PxBroadPhase_setScratchBlock_mut(physx_PxBroadPhase_Pod* self__pod, void* scratchBlock, uint32_t size) { + physx::PxBroadPhase* self_ = reinterpret_cast(self__pod); + self_->setScratchBlock(scratchBlock, size); + } + + void PxBroadPhase_update_mut(physx_PxBroadPhase_Pod* self__pod, physx_PxBroadPhaseUpdateData_Pod const* updateData_pod, physx_PxBaseTask_Pod* continuation_pod) { + physx::PxBroadPhase* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseUpdateData const& updateData = reinterpret_cast(*updateData_pod); + physx::PxBaseTask* continuation = reinterpret_cast(continuation_pod); + self_->update(updateData, continuation); + } + + void PxBroadPhase_fetchResults_mut(physx_PxBroadPhase_Pod* self__pod, physx_PxBroadPhaseResults_Pod* results_pod) { + physx::PxBroadPhase* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseResults& results = reinterpret_cast(*results_pod); + self_->fetchResults(results); + } + + void PxBroadPhase_update_mut_1(physx_PxBroadPhase_Pod* self__pod, physx_PxBroadPhaseResults_Pod* results_pod, physx_PxBroadPhaseUpdateData_Pod const* updateData_pod) { + physx::PxBroadPhase* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseResults& results = reinterpret_cast(*results_pod); + physx::PxBroadPhaseUpdateData const& updateData = reinterpret_cast(*updateData_pod); + self_->update(results, updateData); + } + + physx_PxBroadPhase_Pod* phys_PxCreateBroadPhase(physx_PxBroadPhaseDesc_Pod const* desc_pod) { + physx::PxBroadPhaseDesc const& desc = reinterpret_cast(*desc_pod); + physx::PxBroadPhase* return_val = PxCreateBroadPhase(desc); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxAABBManager_release_mut(physx_PxAABBManager_Pod* self__pod) { + physx::PxAABBManager* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxBroadPhase_Pod* PxAABBManager_getBroadPhase_mut(physx_PxAABBManager_Pod* self__pod) { + physx::PxAABBManager* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhase& return_val = self_->getBroadPhase(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + physx_PxBounds3_Pod const* PxAABBManager_getBounds(physx_PxAABBManager_Pod const* self__pod) { + physx::PxAABBManager const* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const* return_val = self_->getBounds(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + float const* PxAABBManager_getDistances(physx_PxAABBManager_Pod const* self__pod) { + physx::PxAABBManager const* self_ = reinterpret_cast(self__pod); + float const* return_val = self_->getDistances(); + return return_val; + } + + uint32_t const* PxAABBManager_getGroups(physx_PxAABBManager_Pod const* self__pod) { + physx::PxAABBManager const* self_ = reinterpret_cast(self__pod); + uint32_t const* return_val = self_->getGroups(); + return return_val; + } + + uint32_t PxAABBManager_getCapacity(physx_PxAABBManager_Pod const* self__pod) { + physx::PxAABBManager const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getCapacity(); + return return_val; + } + + void PxAABBManager_addObject_mut(physx_PxAABBManager_Pod* self__pod, uint32_t index, physx_PxBounds3_Pod const* bounds_pod, uint32_t group, float distance) { + physx::PxAABBManager* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const& bounds = reinterpret_cast(*bounds_pod); + self_->addObject(index, bounds, group, distance); + } + + void PxAABBManager_removeObject_mut(physx_PxAABBManager_Pod* self__pod, uint32_t index) { + physx::PxAABBManager* self_ = reinterpret_cast(self__pod); + self_->removeObject(index); + } + + void PxAABBManager_updateObject_mut(physx_PxAABBManager_Pod* self__pod, uint32_t index, physx_PxBounds3_Pod const* bounds_pod, float const* distance) { + physx::PxAABBManager* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const* bounds = reinterpret_cast(bounds_pod); + self_->updateObject(index, bounds, distance); + } + + void PxAABBManager_update_mut(physx_PxAABBManager_Pod* self__pod, physx_PxBaseTask_Pod* continuation_pod) { + physx::PxAABBManager* self_ = reinterpret_cast(self__pod); + physx::PxBaseTask* continuation = reinterpret_cast(continuation_pod); + self_->update(continuation); + } + + void PxAABBManager_fetchResults_mut(physx_PxAABBManager_Pod* self__pod, physx_PxBroadPhaseResults_Pod* results_pod) { + physx::PxAABBManager* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseResults& results = reinterpret_cast(*results_pod); + self_->fetchResults(results); + } + + void PxAABBManager_update_mut_1(physx_PxAABBManager_Pod* self__pod, physx_PxBroadPhaseResults_Pod* results_pod) { + physx::PxAABBManager* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseResults& results = reinterpret_cast(*results_pod); + self_->update(results); + } + + physx_PxAABBManager_Pod* phys_PxCreateAABBManager(physx_PxBroadPhase_Pod* broadphase_pod) { + physx::PxBroadPhase& broadphase = reinterpret_cast(*broadphase_pod); + physx::PxAABBManager* return_val = PxCreateAABBManager(broadphase); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSceneLimits_Pod PxSceneLimits_new() { + PxSceneLimits return_val; + physx_PxSceneLimits_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxSceneLimits_setToDefault_mut(physx_PxSceneLimits_Pod* self__pod) { + physx::PxSceneLimits* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + bool PxSceneLimits_isValid(physx_PxSceneLimits_Pod const* self__pod) { + physx::PxSceneLimits const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxgDynamicsMemoryConfig_Pod PxgDynamicsMemoryConfig_new() { + PxgDynamicsMemoryConfig return_val; + physx_PxgDynamicsMemoryConfig_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxgDynamicsMemoryConfig_isValid(physx_PxgDynamicsMemoryConfig_Pod const* self__pod) { + physx::PxgDynamicsMemoryConfig const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxSceneDesc_Pod PxSceneDesc_new(physx_PxTolerancesScale_Pod const* scale_pod) { + physx::PxTolerancesScale const& scale = reinterpret_cast(*scale_pod); + PxSceneDesc return_val(scale); + physx_PxSceneDesc_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxSceneDesc_setToDefault_mut(physx_PxSceneDesc_Pod* self__pod, physx_PxTolerancesScale_Pod const* scale_pod) { + physx::PxSceneDesc* self_ = reinterpret_cast(self__pod); + physx::PxTolerancesScale const& scale = reinterpret_cast(*scale_pod); + self_->setToDefault(scale); + } + + bool PxSceneDesc_isValid(physx_PxSceneDesc_Pod const* self__pod) { + physx::PxSceneDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxTolerancesScale_Pod const* PxSceneDesc_getTolerancesScale(physx_PxSceneDesc_Pod const* self__pod) { + physx::PxSceneDesc const* self_ = reinterpret_cast(self__pod); + physx::PxTolerancesScale const& return_val = self_->getTolerancesScale(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + uint32_t PxSimulationStatistics_getNbBroadPhaseAdds(physx_PxSimulationStatistics_Pod const* self__pod) { + physx::PxSimulationStatistics const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbBroadPhaseAdds(); + return return_val; + } + + uint32_t PxSimulationStatistics_getNbBroadPhaseRemoves(physx_PxSimulationStatistics_Pod const* self__pod) { + physx::PxSimulationStatistics const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbBroadPhaseRemoves(); + return return_val; + } + + uint32_t PxSimulationStatistics_getRbPairStats(physx_PxSimulationStatistics_Pod const* self__pod, int32_t pairType_pod, int32_t g0_pod, int32_t g1_pod) { + physx::PxSimulationStatistics const* self_ = reinterpret_cast(self__pod); + auto pairType = static_cast(pairType_pod); + auto g0 = static_cast(g0_pod); + auto g1 = static_cast(g1_pod); + uint32_t return_val = self_->getRbPairStats(pairType, g0, g1); + return return_val; + } + + physx_PxSimulationStatistics_Pod PxSimulationStatistics_new() { + PxSimulationStatistics return_val; + physx_PxSimulationStatistics_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxPvdSceneClient_setScenePvdFlag_mut(physx_PxPvdSceneClient_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxPvdSceneClient* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setScenePvdFlag(flag, value); + } + + void PxPvdSceneClient_setScenePvdFlags_mut(physx_PxPvdSceneClient_Pod* self__pod, uint8_t flags_pod) { + physx::PxPvdSceneClient* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxPvdSceneFlags(flags_pod); + self_->setScenePvdFlags(flags); + } + + uint8_t PxPvdSceneClient_getScenePvdFlags(physx_PxPvdSceneClient_Pod const* self__pod) { + physx::PxPvdSceneClient const* self_ = reinterpret_cast(self__pod); + physx::PxPvdSceneFlags return_val = self_->getScenePvdFlags(); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxPvdSceneClient_updateCamera_mut(physx_PxPvdSceneClient_Pod* self__pod, char const* name, physx_PxVec3_Pod const* origin_pod, physx_PxVec3_Pod const* up_pod, physx_PxVec3_Pod const* target_pod) { + physx::PxPvdSceneClient* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& origin = reinterpret_cast(*origin_pod); + physx::PxVec3 const& up = reinterpret_cast(*up_pod); + physx::PxVec3 const& target = reinterpret_cast(*target_pod); + self_->updateCamera(name, origin, up, target); + } + + void PxPvdSceneClient_drawPoints_mut(physx_PxPvdSceneClient_Pod* self__pod, physx_PxDebugPoint_Pod const* points_pod, uint32_t count) { + physx::PxPvdSceneClient* self_ = reinterpret_cast(self__pod); + physx::PxDebugPoint const* points = reinterpret_cast(points_pod); + self_->drawPoints(points, count); + } + + void PxPvdSceneClient_drawLines_mut(physx_PxPvdSceneClient_Pod* self__pod, physx_PxDebugLine_Pod const* lines_pod, uint32_t count) { + physx::PxPvdSceneClient* self_ = reinterpret_cast(self__pod); + physx::PxDebugLine const* lines = reinterpret_cast(lines_pod); + self_->drawLines(lines, count); + } + + void PxPvdSceneClient_drawTriangles_mut(physx_PxPvdSceneClient_Pod* self__pod, physx_PxDebugTriangle_Pod const* triangles_pod, uint32_t count) { + physx::PxPvdSceneClient* self_ = reinterpret_cast(self__pod); + physx::PxDebugTriangle const* triangles = reinterpret_cast(triangles_pod); + self_->drawTriangles(triangles, count); + } + + void PxPvdSceneClient_drawText_mut(physx_PxPvdSceneClient_Pod* self__pod, physx_PxDebugText_Pod const* text_pod) { + physx::PxPvdSceneClient* self_ = reinterpret_cast(self__pod); + physx::PxDebugText const& text = reinterpret_cast(*text_pod); + self_->drawText(text); + } + + physx_PxDominanceGroupPair_Pod PxDominanceGroupPair_new(uint8_t a, uint8_t b) { + PxDominanceGroupPair return_val(a, b); + physx_PxDominanceGroupPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxBroadPhaseCallback_delete(physx_PxBroadPhaseCallback_Pod* self__pod) { + physx::PxBroadPhaseCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxBroadPhaseCallback_onObjectOutOfBounds_mut(physx_PxBroadPhaseCallback_Pod* self__pod, physx_PxShape_Pod* shape_pod, physx_PxActor_Pod* actor_pod) { + physx::PxBroadPhaseCallback* self_ = reinterpret_cast(self__pod); + physx::PxShape& shape = reinterpret_cast(*shape_pod); + physx::PxActor& actor = reinterpret_cast(*actor_pod); + self_->onObjectOutOfBounds(shape, actor); + } + + void PxBroadPhaseCallback_onObjectOutOfBounds_mut_1(physx_PxBroadPhaseCallback_Pod* self__pod, physx_PxAggregate_Pod* aggregate_pod) { + physx::PxBroadPhaseCallback* self_ = reinterpret_cast(self__pod); + physx::PxAggregate& aggregate = reinterpret_cast(*aggregate_pod); + self_->onObjectOutOfBounds(aggregate); + } + + void PxScene_release_mut(physx_PxScene_Pod* self__pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + void PxScene_setFlag_mut(physx_PxScene_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setFlag(flag, value); + } + + uint32_t PxScene_getFlags(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxSceneFlags return_val = self_->getFlags(); + uint32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxScene_setLimits_mut(physx_PxScene_Pod* self__pod, physx_PxSceneLimits_Pod const* limits_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxSceneLimits const& limits = reinterpret_cast(*limits_pod); + self_->setLimits(limits); + } + + physx_PxSceneLimits_Pod PxScene_getLimits(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxSceneLimits return_val = self_->getLimits(); + physx_PxSceneLimits_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxPhysics_Pod* PxScene_getPhysics_mut(physx_PxScene_Pod* self__pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxPhysics& return_val = self_->getPhysics(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + uint32_t PxScene_getTimestamp(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getTimestamp(); + return return_val; + } + + bool PxScene_addArticulation_mut(physx_PxScene_Pod* self__pod, physx_PxArticulationReducedCoordinate_Pod* articulation_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxArticulationReducedCoordinate& articulation = reinterpret_cast(*articulation_pod); + bool return_val = self_->addArticulation(articulation); + return return_val; + } + + void PxScene_removeArticulation_mut(physx_PxScene_Pod* self__pod, physx_PxArticulationReducedCoordinate_Pod* articulation_pod, bool wakeOnLostTouch) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxArticulationReducedCoordinate& articulation = reinterpret_cast(*articulation_pod); + self_->removeArticulation(articulation, wakeOnLostTouch); + } + + bool PxScene_addActor_mut(physx_PxScene_Pod* self__pod, physx_PxActor_Pod* actor_pod, physx_PxBVH_Pod const* bvh_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxActor& actor = reinterpret_cast(*actor_pod); + physx::PxBVH const* bvh = reinterpret_cast(bvh_pod); + bool return_val = self_->addActor(actor, bvh); + return return_val; + } + + bool PxScene_addActors_mut(physx_PxScene_Pod* self__pod, physx_PxActor_Pod* const* actors_pod, uint32_t nbActors) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxActor* const* actors = reinterpret_cast(actors_pod); + bool return_val = self_->addActors(actors, nbActors); + return return_val; + } + + bool PxScene_addActors_mut_1(physx_PxScene_Pod* self__pod, physx_PxPruningStructure_Pod const* pruningStructure_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxPruningStructure const& pruningStructure = reinterpret_cast(*pruningStructure_pod); + bool return_val = self_->addActors(pruningStructure); + return return_val; + } + + void PxScene_removeActor_mut(physx_PxScene_Pod* self__pod, physx_PxActor_Pod* actor_pod, bool wakeOnLostTouch) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxActor& actor = reinterpret_cast(*actor_pod); + self_->removeActor(actor, wakeOnLostTouch); + } + + void PxScene_removeActors_mut(physx_PxScene_Pod* self__pod, physx_PxActor_Pod* const* actors_pod, uint32_t nbActors, bool wakeOnLostTouch) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxActor* const* actors = reinterpret_cast(actors_pod); + self_->removeActors(actors, nbActors, wakeOnLostTouch); + } + + bool PxScene_addAggregate_mut(physx_PxScene_Pod* self__pod, physx_PxAggregate_Pod* aggregate_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxAggregate& aggregate = reinterpret_cast(*aggregate_pod); + bool return_val = self_->addAggregate(aggregate); + return return_val; + } + + void PxScene_removeAggregate_mut(physx_PxScene_Pod* self__pod, physx_PxAggregate_Pod* aggregate_pod, bool wakeOnLostTouch) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxAggregate& aggregate = reinterpret_cast(*aggregate_pod); + self_->removeAggregate(aggregate, wakeOnLostTouch); + } + + bool PxScene_addCollection_mut(physx_PxScene_Pod* self__pod, physx_PxCollection_Pod const* collection_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxCollection const& collection = reinterpret_cast(*collection_pod); + bool return_val = self_->addCollection(collection); + return return_val; + } + + uint32_t PxScene_getNbActors(physx_PxScene_Pod const* self__pod, uint16_t types_pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + auto types = physx::PxActorTypeFlags(types_pod); + uint32_t return_val = self_->getNbActors(types); + return return_val; + } + + uint32_t PxScene_getActors(physx_PxScene_Pod const* self__pod, uint16_t types_pod, physx_PxActor_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + auto types = physx::PxActorTypeFlags(types_pod); + physx::PxActor** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getActors(types, userBuffer, bufferSize, startIndex); + return return_val; + } + + physx_PxActor_Pod** PxScene_getActiveActors_mut(physx_PxScene_Pod* self__pod, uint32_t* nbActorsOut_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + uint32_t& nbActorsOut = *nbActorsOut_pod; + physx::PxActor** return_val = self_->getActiveActors(nbActorsOut); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxScene_getNbArticulations(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbArticulations(); + return return_val; + } + + uint32_t PxScene_getArticulations(physx_PxScene_Pod const* self__pod, physx_PxArticulationReducedCoordinate_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxArticulationReducedCoordinate** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getArticulations(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxScene_getNbConstraints(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbConstraints(); + return return_val; + } + + uint32_t PxScene_getConstraints(physx_PxScene_Pod const* self__pod, physx_PxConstraint_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxConstraint** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getConstraints(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxScene_getNbAggregates(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbAggregates(); + return return_val; + } + + uint32_t PxScene_getAggregates(physx_PxScene_Pod const* self__pod, physx_PxAggregate_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxAggregate** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getAggregates(userBuffer, bufferSize, startIndex); + return return_val; + } + + void PxScene_setDominanceGroupPair_mut(physx_PxScene_Pod* self__pod, uint8_t group1, uint8_t group2, physx_PxDominanceGroupPair_Pod const* dominance_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxDominanceGroupPair const& dominance = reinterpret_cast(*dominance_pod); + self_->setDominanceGroupPair(group1, group2, dominance); + } + + physx_PxDominanceGroupPair_Pod PxScene_getDominanceGroupPair(physx_PxScene_Pod const* self__pod, uint8_t group1, uint8_t group2) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxDominanceGroupPair return_val = self_->getDominanceGroupPair(group1, group2); + physx_PxDominanceGroupPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxCpuDispatcher_Pod* PxScene_getCpuDispatcher(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxCpuDispatcher* return_val = self_->getCpuDispatcher(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint8_t PxScene_createClient_mut(physx_PxScene_Pod* self__pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + uint8_t return_val = self_->createClient(); + return return_val; + } + + void PxScene_setSimulationEventCallback_mut(physx_PxScene_Pod* self__pod, physx_PxSimulationEventCallback_Pod* callback_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxSimulationEventCallback* callback = reinterpret_cast(callback_pod); + self_->setSimulationEventCallback(callback); + } + + physx_PxSimulationEventCallback_Pod* PxScene_getSimulationEventCallback(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxSimulationEventCallback* return_val = self_->getSimulationEventCallback(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxScene_setContactModifyCallback_mut(physx_PxScene_Pod* self__pod, physx_PxContactModifyCallback_Pod* callback_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxContactModifyCallback* callback = reinterpret_cast(callback_pod); + self_->setContactModifyCallback(callback); + } + + void PxScene_setCCDContactModifyCallback_mut(physx_PxScene_Pod* self__pod, physx_PxCCDContactModifyCallback_Pod* callback_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxCCDContactModifyCallback* callback = reinterpret_cast(callback_pod); + self_->setCCDContactModifyCallback(callback); + } + + physx_PxContactModifyCallback_Pod* PxScene_getContactModifyCallback(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxContactModifyCallback* return_val = self_->getContactModifyCallback(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxCCDContactModifyCallback_Pod* PxScene_getCCDContactModifyCallback(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxCCDContactModifyCallback* return_val = self_->getCCDContactModifyCallback(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxScene_setBroadPhaseCallback_mut(physx_PxScene_Pod* self__pod, physx_PxBroadPhaseCallback_Pod* callback_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseCallback* callback = reinterpret_cast(callback_pod); + self_->setBroadPhaseCallback(callback); + } + + physx_PxBroadPhaseCallback_Pod* PxScene_getBroadPhaseCallback(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseCallback* return_val = self_->getBroadPhaseCallback(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxScene_setFilterShaderData_mut(physx_PxScene_Pod* self__pod, void const* data, uint32_t dataSize) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->setFilterShaderData(data, dataSize); + } + + void const* PxScene_getFilterShaderData(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + void const* return_val = self_->getFilterShaderData(); + return return_val; + } + + uint32_t PxScene_getFilterShaderDataSize(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getFilterShaderDataSize(); + return return_val; + } + + bool PxScene_resetFiltering_mut(physx_PxScene_Pod* self__pod, physx_PxActor_Pod* actor_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxActor& actor = reinterpret_cast(*actor_pod); + bool return_val = self_->resetFiltering(actor); + return return_val; + } + + bool PxScene_resetFiltering_mut_1(physx_PxScene_Pod* self__pod, physx_PxRigidActor_Pod* actor_pod, physx_PxShape_Pod* const* shapes_pod, uint32_t shapeCount) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor& actor = reinterpret_cast(*actor_pod); + physx::PxShape* const* shapes = reinterpret_cast(shapes_pod); + bool return_val = self_->resetFiltering(actor, shapes, shapeCount); + return return_val; + } + + int32_t PxScene_getKinematicKinematicFilteringMode(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxPairFilteringMode::Enum return_val = self_->getKinematicKinematicFilteringMode(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + int32_t PxScene_getStaticKinematicFilteringMode(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxPairFilteringMode::Enum return_val = self_->getStaticKinematicFilteringMode(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxScene_simulate_mut(physx_PxScene_Pod* self__pod, float elapsedTime, physx_PxBaseTask_Pod* completionTask_pod, void* scratchMemBlock, uint32_t scratchMemBlockSize, bool controlSimulation) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxBaseTask* completionTask = reinterpret_cast(completionTask_pod); + bool return_val = self_->simulate(elapsedTime, completionTask, scratchMemBlock, scratchMemBlockSize, controlSimulation); + return return_val; + } + + bool PxScene_advance_mut(physx_PxScene_Pod* self__pod, physx_PxBaseTask_Pod* completionTask_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxBaseTask* completionTask = reinterpret_cast(completionTask_pod); + bool return_val = self_->advance(completionTask); + return return_val; + } + + bool PxScene_collide_mut(physx_PxScene_Pod* self__pod, float elapsedTime, physx_PxBaseTask_Pod* completionTask_pod, void* scratchMemBlock, uint32_t scratchMemBlockSize, bool controlSimulation) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxBaseTask* completionTask = reinterpret_cast(completionTask_pod); + bool return_val = self_->collide(elapsedTime, completionTask, scratchMemBlock, scratchMemBlockSize, controlSimulation); + return return_val; + } + + bool PxScene_checkResults_mut(physx_PxScene_Pod* self__pod, bool block) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + bool return_val = self_->checkResults(block); + return return_val; + } + + bool PxScene_fetchCollision_mut(physx_PxScene_Pod* self__pod, bool block) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + bool return_val = self_->fetchCollision(block); + return return_val; + } + + bool PxScene_fetchResults_mut(physx_PxScene_Pod* self__pod, bool block, uint32_t* errorState) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + bool return_val = self_->fetchResults(block, errorState); + return return_val; + } + + bool PxScene_fetchResultsStart_mut(physx_PxScene_Pod* self__pod, physx_PxContactPairHeader_Pod const** contactPairs_pod, uint32_t* nbContactPairs_pod, bool block) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxContactPairHeader const*& contactPairs = reinterpret_cast(*contactPairs_pod); + uint32_t& nbContactPairs = *nbContactPairs_pod; + bool return_val = self_->fetchResultsStart(contactPairs, nbContactPairs, block); + return return_val; + } + + void PxScene_processCallbacks_mut(physx_PxScene_Pod* self__pod, physx_PxBaseTask_Pod* continuation_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxBaseTask* continuation = reinterpret_cast(continuation_pod); + self_->processCallbacks(continuation); + } + + void PxScene_fetchResultsFinish_mut(physx_PxScene_Pod* self__pod, uint32_t* errorState) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->fetchResultsFinish(errorState); + } + + void PxScene_fetchResultsParticleSystem_mut(physx_PxScene_Pod* self__pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->fetchResultsParticleSystem(); + } + + void PxScene_flushSimulation_mut(physx_PxScene_Pod* self__pod, bool sendPendingReports) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->flushSimulation(sendPendingReports); + } + + void PxScene_setGravity_mut(physx_PxScene_Pod* self__pod, physx_PxVec3_Pod const* vec_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& vec = reinterpret_cast(*vec_pod); + self_->setGravity(vec); + } + + physx_PxVec3_Pod PxScene_getGravity(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getGravity(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxScene_setBounceThresholdVelocity_mut(physx_PxScene_Pod* self__pod, float t) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->setBounceThresholdVelocity(t); + } + + float PxScene_getBounceThresholdVelocity(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getBounceThresholdVelocity(); + return return_val; + } + + void PxScene_setCCDMaxPasses_mut(physx_PxScene_Pod* self__pod, uint32_t ccdMaxPasses) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->setCCDMaxPasses(ccdMaxPasses); + } + + uint32_t PxScene_getCCDMaxPasses(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getCCDMaxPasses(); + return return_val; + } + + void PxScene_setCCDMaxSeparation_mut(physx_PxScene_Pod* self__pod, float t) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->setCCDMaxSeparation(t); + } + + float PxScene_getCCDMaxSeparation(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getCCDMaxSeparation(); + return return_val; + } + + void PxScene_setCCDThreshold_mut(physx_PxScene_Pod* self__pod, float t) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->setCCDThreshold(t); + } + + float PxScene_getCCDThreshold(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getCCDThreshold(); + return return_val; + } + + void PxScene_setMaxBiasCoefficient_mut(physx_PxScene_Pod* self__pod, float t) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->setMaxBiasCoefficient(t); + } + + float PxScene_getMaxBiasCoefficient(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMaxBiasCoefficient(); + return return_val; + } + + void PxScene_setFrictionOffsetThreshold_mut(physx_PxScene_Pod* self__pod, float t) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->setFrictionOffsetThreshold(t); + } + + float PxScene_getFrictionOffsetThreshold(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getFrictionOffsetThreshold(); + return return_val; + } + + void PxScene_setFrictionCorrelationDistance_mut(physx_PxScene_Pod* self__pod, float t) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->setFrictionCorrelationDistance(t); + } + + float PxScene_getFrictionCorrelationDistance(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getFrictionCorrelationDistance(); + return return_val; + } + + int32_t PxScene_getFrictionType(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxFrictionType::Enum return_val = self_->getFrictionType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + int32_t PxScene_getSolverType(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxSolverType::Enum return_val = self_->getSolverType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxScene_setVisualizationParameter_mut(physx_PxScene_Pod* self__pod, int32_t param_pod, float value) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + auto param = static_cast(param_pod); + bool return_val = self_->setVisualizationParameter(param, value); + return return_val; + } + + float PxScene_getVisualizationParameter(physx_PxScene_Pod const* self__pod, int32_t paramEnum_pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + auto paramEnum = static_cast(paramEnum_pod); + float return_val = self_->getVisualizationParameter(paramEnum); + return return_val; + } + + void PxScene_setVisualizationCullingBox_mut(physx_PxScene_Pod* self__pod, physx_PxBounds3_Pod const* box_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const& box = reinterpret_cast(*box_pod); + self_->setVisualizationCullingBox(box); + } + + physx_PxBounds3_Pod PxScene_getVisualizationCullingBox(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 return_val = self_->getVisualizationCullingBox(); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxRenderBuffer_Pod const* PxScene_getRenderBuffer_mut(physx_PxScene_Pod* self__pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxRenderBuffer const& return_val = self_->getRenderBuffer(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void PxScene_getSimulationStatistics(physx_PxScene_Pod const* self__pod, physx_PxSimulationStatistics_Pod* stats_pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxSimulationStatistics& stats = reinterpret_cast(*stats_pod); + self_->getSimulationStatistics(stats); + } + + int32_t PxScene_getBroadPhaseType(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseType::Enum return_val = self_->getBroadPhaseType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxScene_getBroadPhaseCaps(physx_PxScene_Pod const* self__pod, physx_PxBroadPhaseCaps_Pod* caps_pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseCaps& caps = reinterpret_cast(*caps_pod); + bool return_val = self_->getBroadPhaseCaps(caps); + return return_val; + } + + uint32_t PxScene_getNbBroadPhaseRegions(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbBroadPhaseRegions(); + return return_val; + } + + uint32_t PxScene_getBroadPhaseRegions(physx_PxScene_Pod const* self__pod, physx_PxBroadPhaseRegionInfo_Pod* userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseRegionInfo* userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getBroadPhaseRegions(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxScene_addBroadPhaseRegion_mut(physx_PxScene_Pod* self__pod, physx_PxBroadPhaseRegion_Pod const* region_pod, bool populateRegion) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxBroadPhaseRegion const& region = reinterpret_cast(*region_pod); + uint32_t return_val = self_->addBroadPhaseRegion(region, populateRegion); + return return_val; + } + + bool PxScene_removeBroadPhaseRegion_mut(physx_PxScene_Pod* self__pod, uint32_t handle) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + bool return_val = self_->removeBroadPhaseRegion(handle); + return return_val; + } + + physx_PxTaskManager_Pod* PxScene_getTaskManager(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxTaskManager* return_val = self_->getTaskManager(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxScene_lockRead_mut(physx_PxScene_Pod* self__pod, char const* file, uint32_t line) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->lockRead(file, line); + } + + void PxScene_unlockRead_mut(physx_PxScene_Pod* self__pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->unlockRead(); + } + + void PxScene_lockWrite_mut(physx_PxScene_Pod* self__pod, char const* file, uint32_t line) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->lockWrite(file, line); + } + + void PxScene_unlockWrite_mut(physx_PxScene_Pod* self__pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->unlockWrite(); + } + + void PxScene_setNbContactDataBlocks_mut(physx_PxScene_Pod* self__pod, uint32_t numBlocks) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->setNbContactDataBlocks(numBlocks); + } + + uint32_t PxScene_getNbContactDataBlocksUsed(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbContactDataBlocksUsed(); + return return_val; + } + + uint32_t PxScene_getMaxNbContactDataBlocksUsed(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getMaxNbContactDataBlocksUsed(); + return return_val; + } + + uint32_t PxScene_getContactReportStreamBufferSize(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getContactReportStreamBufferSize(); + return return_val; + } + + void PxScene_setSolverBatchSize_mut(physx_PxScene_Pod* self__pod, uint32_t solverBatchSize) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->setSolverBatchSize(solverBatchSize); + } + + uint32_t PxScene_getSolverBatchSize(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getSolverBatchSize(); + return return_val; + } + + void PxScene_setSolverArticulationBatchSize_mut(physx_PxScene_Pod* self__pod, uint32_t solverBatchSize) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->setSolverArticulationBatchSize(solverBatchSize); + } + + uint32_t PxScene_getSolverArticulationBatchSize(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getSolverArticulationBatchSize(); + return return_val; + } + + float PxScene_getWakeCounterResetValue(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getWakeCounterResetValue(); + return return_val; + } + + void PxScene_shiftOrigin_mut(physx_PxScene_Pod* self__pod, physx_PxVec3_Pod const* shift_pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& shift = reinterpret_cast(*shift_pod); + self_->shiftOrigin(shift); + } + + physx_PxPvdSceneClient_Pod* PxScene_getScenePvdClient_mut(physx_PxScene_Pod* self__pod) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxPvdSceneClient* return_val = self_->getScenePvdClient(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxScene_copyArticulationData_mut(physx_PxScene_Pod* self__pod, void* data, void* index, int32_t dataType_pod, uint32_t nbCopyArticulations, void* copyEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + auto dataType = static_cast(dataType_pod); + self_->copyArticulationData(data, index, dataType, nbCopyArticulations, copyEvent); + } + + void PxScene_applyArticulationData_mut(physx_PxScene_Pod* self__pod, void* data, void* index, int32_t dataType_pod, uint32_t nbUpdatedArticulations, void* waitEvent, void* signalEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + auto dataType = static_cast(dataType_pod); + self_->applyArticulationData(data, index, dataType, nbUpdatedArticulations, waitEvent, signalEvent); + } + + void PxScene_copySoftBodyData_mut(physx_PxScene_Pod* self__pod, void** data, void* dataSizes, void* softBodyIndices, int32_t flag_pod, uint32_t nbCopySoftBodies, uint32_t maxSize, void* copyEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->copySoftBodyData(data, dataSizes, softBodyIndices, flag, nbCopySoftBodies, maxSize, copyEvent); + } + + void PxScene_applySoftBodyData_mut(physx_PxScene_Pod* self__pod, void** data, void* dataSizes, void* softBodyIndices, int32_t flag_pod, uint32_t nbUpdatedSoftBodies, uint32_t maxSize, void* applyEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->applySoftBodyData(data, dataSizes, softBodyIndices, flag, nbUpdatedSoftBodies, maxSize, applyEvent); + } + + void PxScene_copyContactData_mut(physx_PxScene_Pod* self__pod, void* data, uint32_t maxContactPairs, void* numContactPairs, void* copyEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + self_->copyContactData(data, maxContactPairs, numContactPairs, copyEvent); + } + + void PxScene_copyBodyData_mut(physx_PxScene_Pod* self__pod, physx_PxGpuBodyData_Pod* data_pod, physx_PxGpuActorPair_Pod* index_pod, uint32_t nbCopyActors, void* copyEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxGpuBodyData* data = reinterpret_cast(data_pod); + physx::PxGpuActorPair* index = reinterpret_cast(index_pod); + self_->copyBodyData(data, index, nbCopyActors, copyEvent); + } + + void PxScene_applyActorData_mut(physx_PxScene_Pod* self__pod, void* data, physx_PxGpuActorPair_Pod* index_pod, int32_t flag_pod, uint32_t nbUpdatedActors, void* waitEvent, void* signalEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxGpuActorPair* index = reinterpret_cast(index_pod); + auto flag = static_cast(flag_pod); + self_->applyActorData(data, index, flag, nbUpdatedActors, waitEvent, signalEvent); + } + + void PxScene_computeDenseJacobians_mut(physx_PxScene_Pod* self__pod, physx_PxIndexDataPair_Pod const* indices_pod, uint32_t nbIndices, void* computeEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxIndexDataPair const* indices = reinterpret_cast(indices_pod); + self_->computeDenseJacobians(indices, nbIndices, computeEvent); + } + + void PxScene_computeGeneralizedMassMatrices_mut(physx_PxScene_Pod* self__pod, physx_PxIndexDataPair_Pod const* indices_pod, uint32_t nbIndices, void* computeEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxIndexDataPair const* indices = reinterpret_cast(indices_pod); + self_->computeGeneralizedMassMatrices(indices, nbIndices, computeEvent); + } + + void PxScene_computeGeneralizedGravityForces_mut(physx_PxScene_Pod* self__pod, physx_PxIndexDataPair_Pod const* indices_pod, uint32_t nbIndices, void* computeEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxIndexDataPair const* indices = reinterpret_cast(indices_pod); + self_->computeGeneralizedGravityForces(indices, nbIndices, computeEvent); + } + + void PxScene_computeCoriolisAndCentrifugalForces_mut(physx_PxScene_Pod* self__pod, physx_PxIndexDataPair_Pod const* indices_pod, uint32_t nbIndices, void* computeEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxIndexDataPair const* indices = reinterpret_cast(indices_pod); + self_->computeCoriolisAndCentrifugalForces(indices, nbIndices, computeEvent); + } + + physx_PxgDynamicsMemoryConfig_Pod PxScene_getGpuDynamicsConfig(physx_PxScene_Pod const* self__pod) { + physx::PxScene const* self_ = reinterpret_cast(self__pod); + physx::PxgDynamicsMemoryConfig return_val = self_->getGpuDynamicsConfig(); + physx_PxgDynamicsMemoryConfig_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxScene_applyParticleBufferData_mut(physx_PxScene_Pod* self__pod, uint32_t const* indices, physx_PxGpuParticleBufferIndexPair_Pod const* bufferIndexPair_pod, uint32_t const* flags_pod, uint32_t nbUpdatedBuffers, void* waitEvent, void* signalEvent) { + physx::PxScene* self_ = reinterpret_cast(self__pod); + physx::PxGpuParticleBufferIndexPair const* bufferIndexPair = reinterpret_cast(bufferIndexPair_pod); + physx::PxParticleBufferFlags const* flags = reinterpret_cast(flags_pod); + self_->applyParticleBufferData(indices, bufferIndexPair, flags, nbUpdatedBuffers, waitEvent, signalEvent); + } + + physx_PxSceneReadLock_Pod* PxSceneReadLock_new_alloc(physx_PxScene_Pod* scene_pod, char const* file, uint32_t line) { + physx::PxScene& scene = reinterpret_cast(*scene_pod); + auto return_val = new physx::PxSceneReadLock(scene, file, line); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxSceneReadLock_delete(physx_PxSceneReadLock_Pod* self__pod) { + physx::PxSceneReadLock* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxSceneWriteLock_Pod* PxSceneWriteLock_new_alloc(physx_PxScene_Pod* scene_pod, char const* file, uint32_t line) { + physx::PxScene& scene = reinterpret_cast(*scene_pod); + auto return_val = new physx::PxSceneWriteLock(scene, file, line); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxSceneWriteLock_delete(physx_PxSceneWriteLock_Pod* self__pod) { + physx::PxSceneWriteLock* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxContactPairExtraDataItem_Pod PxContactPairExtraDataItem_new() { + PxContactPairExtraDataItem return_val; + physx_PxContactPairExtraDataItem_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxContactPairVelocity_Pod PxContactPairVelocity_new() { + PxContactPairVelocity return_val; + physx_PxContactPairVelocity_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxContactPairPose_Pod PxContactPairPose_new() { + PxContactPairPose return_val; + physx_PxContactPairPose_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxContactPairIndex_Pod PxContactPairIndex_new() { + PxContactPairIndex return_val; + physx_PxContactPairIndex_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxContactPairExtraDataIterator_Pod PxContactPairExtraDataIterator_new(uint8_t const* stream, uint32_t size) { + PxContactPairExtraDataIterator return_val(stream, size); + physx_PxContactPairExtraDataIterator_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxContactPairExtraDataIterator_nextItemSet_mut(physx_PxContactPairExtraDataIterator_Pod* self__pod) { + physx::PxContactPairExtraDataIterator* self_ = reinterpret_cast(self__pod); + bool return_val = self_->nextItemSet(); + return return_val; + } + + physx_PxContactPairHeader_Pod PxContactPairHeader_new() { + PxContactPairHeader return_val; + physx_PxContactPairHeader_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxContactPair_Pod PxContactPair_new() { + PxContactPair return_val; + physx_PxContactPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxContactPair_extractContacts(physx_PxContactPair_Pod const* self__pod, physx_PxContactPairPoint_Pod* userBuffer_pod, uint32_t bufferSize) { + physx::PxContactPair const* self_ = reinterpret_cast(self__pod); + physx::PxContactPairPoint* userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->extractContacts(userBuffer, bufferSize); + return return_val; + } + + void PxContactPair_bufferContacts(physx_PxContactPair_Pod const* self__pod, physx_PxContactPair_Pod* newPair_pod, uint8_t* bufferMemory) { + physx::PxContactPair const* self_ = reinterpret_cast(self__pod); + physx::PxContactPair* newPair = reinterpret_cast(newPair_pod); + self_->bufferContacts(newPair, bufferMemory); + } + + uint32_t const* PxContactPair_getInternalFaceIndices(physx_PxContactPair_Pod const* self__pod) { + physx::PxContactPair const* self_ = reinterpret_cast(self__pod); + uint32_t const* return_val = self_->getInternalFaceIndices(); + return return_val; + } + + physx_PxTriggerPair_Pod PxTriggerPair_new() { + PxTriggerPair return_val; + physx_PxTriggerPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxConstraintInfo_Pod PxConstraintInfo_new() { + PxConstraintInfo return_val; + physx_PxConstraintInfo_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxConstraintInfo_Pod PxConstraintInfo_new_1(physx_PxConstraint_Pod* c_pod, void* extRef, uint32_t t) { + physx::PxConstraint* c = reinterpret_cast(c_pod); + PxConstraintInfo return_val(c, extRef, t); + physx_PxConstraintInfo_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxSimulationEventCallback_onConstraintBreak_mut(physx_PxSimulationEventCallback_Pod* self__pod, physx_PxConstraintInfo_Pod* constraints_pod, uint32_t count) { + physx::PxSimulationEventCallback* self_ = reinterpret_cast(self__pod); + physx::PxConstraintInfo* constraints = reinterpret_cast(constraints_pod); + self_->onConstraintBreak(constraints, count); + } + + void PxSimulationEventCallback_onWake_mut(physx_PxSimulationEventCallback_Pod* self__pod, physx_PxActor_Pod** actors_pod, uint32_t count) { + physx::PxSimulationEventCallback* self_ = reinterpret_cast(self__pod); + physx::PxActor** actors = reinterpret_cast(actors_pod); + self_->onWake(actors, count); + } + + void PxSimulationEventCallback_onSleep_mut(physx_PxSimulationEventCallback_Pod* self__pod, physx_PxActor_Pod** actors_pod, uint32_t count) { + physx::PxSimulationEventCallback* self_ = reinterpret_cast(self__pod); + physx::PxActor** actors = reinterpret_cast(actors_pod); + self_->onSleep(actors, count); + } + + void PxSimulationEventCallback_onContact_mut(physx_PxSimulationEventCallback_Pod* self__pod, physx_PxContactPairHeader_Pod const* pairHeader_pod, physx_PxContactPair_Pod const* pairs_pod, uint32_t nbPairs) { + physx::PxSimulationEventCallback* self_ = reinterpret_cast(self__pod); + physx::PxContactPairHeader const& pairHeader = reinterpret_cast(*pairHeader_pod); + physx::PxContactPair const* pairs = reinterpret_cast(pairs_pod); + self_->onContact(pairHeader, pairs, nbPairs); + } + + void PxSimulationEventCallback_onTrigger_mut(physx_PxSimulationEventCallback_Pod* self__pod, physx_PxTriggerPair_Pod* pairs_pod, uint32_t count) { + physx::PxSimulationEventCallback* self_ = reinterpret_cast(self__pod); + physx::PxTriggerPair* pairs = reinterpret_cast(pairs_pod); + self_->onTrigger(pairs, count); + } + + void PxSimulationEventCallback_onAdvance_mut(physx_PxSimulationEventCallback_Pod* self__pod, physx_PxRigidBody_Pod const* const* bodyBuffer_pod, physx_PxTransform_Pod const* poseBuffer_pod, uint32_t count) { + physx::PxSimulationEventCallback* self_ = reinterpret_cast(self__pod); + physx::PxRigidBody const* const* bodyBuffer = reinterpret_cast(bodyBuffer_pod); + physx::PxTransform const* poseBuffer = reinterpret_cast(poseBuffer_pod); + self_->onAdvance(bodyBuffer, poseBuffer, count); + } + + void PxSimulationEventCallback_delete(physx_PxSimulationEventCallback_Pod* self__pod) { + physx::PxSimulationEventCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxFEMParameters_Pod PxFEMParameters_new() { + PxFEMParameters return_val; + physx_PxFEMParameters_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxPruningStructure_release_mut(physx_PxPruningStructure_Pod* self__pod) { + physx::PxPruningStructure* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + uint32_t PxPruningStructure_getRigidActors(physx_PxPruningStructure_Pod const* self__pod, physx_PxRigidActor_Pod** userBuffer_pod, uint32_t bufferSize, uint32_t startIndex) { + physx::PxPruningStructure const* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor** userBuffer = reinterpret_cast(userBuffer_pod); + uint32_t return_val = self_->getRigidActors(userBuffer, bufferSize, startIndex); + return return_val; + } + + uint32_t PxPruningStructure_getNbRigidActors(physx_PxPruningStructure_Pod const* self__pod) { + physx::PxPruningStructure const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbRigidActors(); + return return_val; + } + + void const* PxPruningStructure_getStaticMergeData(physx_PxPruningStructure_Pod const* self__pod) { + physx::PxPruningStructure const* self_ = reinterpret_cast(self__pod); + void const* return_val = self_->getStaticMergeData(); + return return_val; + } + + void const* PxPruningStructure_getDynamicMergeData(physx_PxPruningStructure_Pod const* self__pod) { + physx::PxPruningStructure const* self_ = reinterpret_cast(self__pod); + void const* return_val = self_->getDynamicMergeData(); + return return_val; + } + + char const* PxPruningStructure_getConcreteTypeName(physx_PxPruningStructure_Pod const* self__pod) { + physx::PxPruningStructure const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxExtendedVec3_Pod PxExtendedVec3_new() { + PxExtendedVec3 return_val; + physx_PxExtendedVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxExtendedVec3_Pod PxExtendedVec3_new_1(double _x, double _y, double _z) { + PxExtendedVec3 return_val(_x, _y, _z); + physx_PxExtendedVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxExtendedVec3_isZero(physx_PxExtendedVec3_Pod const* self__pod) { + physx::PxExtendedVec3 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isZero(); + return return_val; + } + + double PxExtendedVec3_dot(physx_PxExtendedVec3_Pod const* self__pod, physx_PxVec3_Pod const* v_pod) { + physx::PxExtendedVec3 const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& v = reinterpret_cast(*v_pod); + double return_val = self_->dot(v); + return return_val; + } + + double PxExtendedVec3_distanceSquared(physx_PxExtendedVec3_Pod const* self__pod, physx_PxExtendedVec3_Pod const* v_pod) { + physx::PxExtendedVec3 const* self_ = reinterpret_cast(self__pod); + physx::PxExtendedVec3 const& v = reinterpret_cast(*v_pod); + double return_val = self_->distanceSquared(v); + return return_val; + } + + double PxExtendedVec3_magnitudeSquared(physx_PxExtendedVec3_Pod const* self__pod) { + physx::PxExtendedVec3 const* self_ = reinterpret_cast(self__pod); + double return_val = self_->magnitudeSquared(); + return return_val; + } + + double PxExtendedVec3_magnitude(physx_PxExtendedVec3_Pod const* self__pod) { + physx::PxExtendedVec3 const* self_ = reinterpret_cast(self__pod); + double return_val = self_->magnitude(); + return return_val; + } + + double PxExtendedVec3_normalize_mut(physx_PxExtendedVec3_Pod* self__pod) { + physx::PxExtendedVec3* self_ = reinterpret_cast(self__pod); + double return_val = self_->normalize(); + return return_val; + } + + bool PxExtendedVec3_isFinite(physx_PxExtendedVec3_Pod const* self__pod) { + physx::PxExtendedVec3 const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isFinite(); + return return_val; + } + + void PxExtendedVec3_maximum_mut(physx_PxExtendedVec3_Pod* self__pod, physx_PxExtendedVec3_Pod const* v_pod) { + physx::PxExtendedVec3* self_ = reinterpret_cast(self__pod); + physx::PxExtendedVec3 const& v = reinterpret_cast(*v_pod); + self_->maximum(v); + } + + void PxExtendedVec3_minimum_mut(physx_PxExtendedVec3_Pod* self__pod, physx_PxExtendedVec3_Pod const* v_pod) { + physx::PxExtendedVec3* self_ = reinterpret_cast(self__pod); + physx::PxExtendedVec3 const& v = reinterpret_cast(*v_pod); + self_->minimum(v); + } + + void PxExtendedVec3_set_mut(physx_PxExtendedVec3_Pod* self__pod, double x_, double y_, double z_) { + physx::PxExtendedVec3* self_ = reinterpret_cast(self__pod); + self_->set(x_, y_, z_); + } + + void PxExtendedVec3_setPlusInfinity_mut(physx_PxExtendedVec3_Pod* self__pod) { + physx::PxExtendedVec3* self_ = reinterpret_cast(self__pod); + self_->setPlusInfinity(); + } + + void PxExtendedVec3_setMinusInfinity_mut(physx_PxExtendedVec3_Pod* self__pod) { + physx::PxExtendedVec3* self_ = reinterpret_cast(self__pod); + self_->setMinusInfinity(); + } + + void PxExtendedVec3_cross_mut(physx_PxExtendedVec3_Pod* self__pod, physx_PxExtendedVec3_Pod const* left_pod, physx_PxVec3_Pod const* right_pod) { + physx::PxExtendedVec3* self_ = reinterpret_cast(self__pod); + physx::PxExtendedVec3 const& left = reinterpret_cast(*left_pod); + physx::PxVec3 const& right = reinterpret_cast(*right_pod); + self_->cross(left, right); + } + + void PxExtendedVec3_cross_mut_1(physx_PxExtendedVec3_Pod* self__pod, physx_PxExtendedVec3_Pod const* left_pod, physx_PxExtendedVec3_Pod const* right_pod) { + physx::PxExtendedVec3* self_ = reinterpret_cast(self__pod); + physx::PxExtendedVec3 const& left = reinterpret_cast(*left_pod); + physx::PxExtendedVec3 const& right = reinterpret_cast(*right_pod); + self_->cross(left, right); + } + + physx_PxExtendedVec3_Pod PxExtendedVec3_cross(physx_PxExtendedVec3_Pod const* self__pod, physx_PxExtendedVec3_Pod const* v_pod) { + physx::PxExtendedVec3 const* self_ = reinterpret_cast(self__pod); + physx::PxExtendedVec3 const& v = reinterpret_cast(*v_pod); + physx::PxExtendedVec3 return_val = self_->cross(v); + physx_PxExtendedVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxExtendedVec3_cross_mut_2(physx_PxExtendedVec3_Pod* self__pod, physx_PxVec3_Pod const* left_pod, physx_PxExtendedVec3_Pod const* right_pod) { + physx::PxExtendedVec3* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& left = reinterpret_cast(*left_pod); + physx::PxExtendedVec3 const& right = reinterpret_cast(*right_pod); + self_->cross(left, right); + } + + physx_PxVec3_Pod phys_toVec3(physx_PxExtendedVec3_Pod const* v_pod) { + physx::PxExtendedVec3 const& v = reinterpret_cast(*v_pod); + physx::PxVec3 return_val = toVec3(v); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + int32_t PxObstacle_getType(physx_PxObstacle_Pod const* self__pod) { + physx::PxObstacle const* self_ = reinterpret_cast(self__pod); + physx::PxGeometryType::Enum return_val = self_->getType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxBoxObstacle_Pod PxBoxObstacle_new() { + PxBoxObstacle return_val; + physx_PxBoxObstacle_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxCapsuleObstacle_Pod PxCapsuleObstacle_new() { + PxCapsuleObstacle return_val; + physx_PxCapsuleObstacle_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxObstacleContext_release_mut(physx_PxObstacleContext_Pod* self__pod) { + physx::PxObstacleContext* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxControllerManager_Pod* PxObstacleContext_getControllerManager(physx_PxObstacleContext_Pod const* self__pod) { + physx::PxObstacleContext const* self_ = reinterpret_cast(self__pod); + physx::PxControllerManager& return_val = self_->getControllerManager(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + uint32_t PxObstacleContext_addObstacle_mut(physx_PxObstacleContext_Pod* self__pod, physx_PxObstacle_Pod const* obstacle_pod) { + physx::PxObstacleContext* self_ = reinterpret_cast(self__pod); + physx::PxObstacle const& obstacle = reinterpret_cast(*obstacle_pod); + uint32_t return_val = self_->addObstacle(obstacle); + return return_val; + } + + bool PxObstacleContext_removeObstacle_mut(physx_PxObstacleContext_Pod* self__pod, uint32_t handle) { + physx::PxObstacleContext* self_ = reinterpret_cast(self__pod); + bool return_val = self_->removeObstacle(handle); + return return_val; + } + + bool PxObstacleContext_updateObstacle_mut(physx_PxObstacleContext_Pod* self__pod, uint32_t handle, physx_PxObstacle_Pod const* obstacle_pod) { + physx::PxObstacleContext* self_ = reinterpret_cast(self__pod); + physx::PxObstacle const& obstacle = reinterpret_cast(*obstacle_pod); + bool return_val = self_->updateObstacle(handle, obstacle); + return return_val; + } + + uint32_t PxObstacleContext_getNbObstacles(physx_PxObstacleContext_Pod const* self__pod) { + physx::PxObstacleContext const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbObstacles(); + return return_val; + } + + physx_PxObstacle_Pod const* PxObstacleContext_getObstacle(physx_PxObstacleContext_Pod const* self__pod, uint32_t i) { + physx::PxObstacleContext const* self_ = reinterpret_cast(self__pod); + physx::PxObstacle const* return_val = self_->getObstacle(i); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxObstacle_Pod const* PxObstacleContext_getObstacleByHandle(physx_PxObstacleContext_Pod const* self__pod, uint32_t handle) { + physx::PxObstacleContext const* self_ = reinterpret_cast(self__pod); + physx::PxObstacle const* return_val = self_->getObstacleByHandle(handle); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxUserControllerHitReport_onShapeHit_mut(physx_PxUserControllerHitReport_Pod* self__pod, physx_PxControllerShapeHit_Pod const* hit_pod) { + physx::PxUserControllerHitReport* self_ = reinterpret_cast(self__pod); + physx::PxControllerShapeHit const& hit = reinterpret_cast(*hit_pod); + self_->onShapeHit(hit); + } + + void PxUserControllerHitReport_onControllerHit_mut(physx_PxUserControllerHitReport_Pod* self__pod, physx_PxControllersHit_Pod const* hit_pod) { + physx::PxUserControllerHitReport* self_ = reinterpret_cast(self__pod); + physx::PxControllersHit const& hit = reinterpret_cast(*hit_pod); + self_->onControllerHit(hit); + } + + void PxUserControllerHitReport_onObstacleHit_mut(physx_PxUserControllerHitReport_Pod* self__pod, physx_PxControllerObstacleHit_Pod const* hit_pod) { + physx::PxUserControllerHitReport* self_ = reinterpret_cast(self__pod); + physx::PxControllerObstacleHit const& hit = reinterpret_cast(*hit_pod); + self_->onObstacleHit(hit); + } + + void PxControllerFilterCallback_delete(physx_PxControllerFilterCallback_Pod* self__pod) { + physx::PxControllerFilterCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + bool PxControllerFilterCallback_filter_mut(physx_PxControllerFilterCallback_Pod* self__pod, physx_PxController_Pod const* a_pod, physx_PxController_Pod const* b_pod) { + physx::PxControllerFilterCallback* self_ = reinterpret_cast(self__pod); + physx::PxController const& a = reinterpret_cast(*a_pod); + physx::PxController const& b = reinterpret_cast(*b_pod); + bool return_val = self_->filter(a, b); + return return_val; + } + + physx_PxControllerFilters_Pod PxControllerFilters_new(physx_PxFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* cb_pod, physx_PxControllerFilterCallback_Pod* cctFilterCb_pod) { + physx::PxFilterData const* filterData = reinterpret_cast(filterData_pod); + physx::PxQueryFilterCallback* cb = reinterpret_cast(cb_pod); + physx::PxControllerFilterCallback* cctFilterCb = reinterpret_cast(cctFilterCb_pod); + PxControllerFilters return_val(filterData, cb, cctFilterCb); + physx_PxControllerFilters_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxControllerDesc_isValid(physx_PxControllerDesc_Pod const* self__pod) { + physx::PxControllerDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + int32_t PxControllerDesc_getType(physx_PxControllerDesc_Pod const* self__pod) { + physx::PxControllerDesc const* self_ = reinterpret_cast(self__pod); + physx::PxControllerShapeType::Enum return_val = self_->getType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + int32_t PxController_getType(physx_PxController_Pod const* self__pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + physx::PxControllerShapeType::Enum return_val = self_->getType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxController_release_mut(physx_PxController_Pod* self__pod) { + physx::PxController* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + uint8_t PxController_move_mut(physx_PxController_Pod* self__pod, physx_PxVec3_Pod const* disp_pod, float minDist, float elapsedTime, physx_PxControllerFilters_Pod const* filters_pod, physx_PxObstacleContext_Pod const* obstacles_pod) { + physx::PxController* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& disp = reinterpret_cast(*disp_pod); + physx::PxControllerFilters const& filters = reinterpret_cast(*filters_pod); + physx::PxObstacleContext const* obstacles = reinterpret_cast(obstacles_pod); + physx::PxControllerCollisionFlags return_val = self_->move(disp, minDist, elapsedTime, filters, obstacles); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxController_setPosition_mut(physx_PxController_Pod* self__pod, physx_PxExtendedVec3_Pod const* position_pod) { + physx::PxController* self_ = reinterpret_cast(self__pod); + physx::PxExtendedVec3 const& position = reinterpret_cast(*position_pod); + bool return_val = self_->setPosition(position); + return return_val; + } + + physx_PxExtendedVec3_Pod const* PxController_getPosition(physx_PxController_Pod const* self__pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + physx::PxExtendedVec3 const& return_val = self_->getPosition(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + bool PxController_setFootPosition_mut(physx_PxController_Pod* self__pod, physx_PxExtendedVec3_Pod const* position_pod) { + physx::PxController* self_ = reinterpret_cast(self__pod); + physx::PxExtendedVec3 const& position = reinterpret_cast(*position_pod); + bool return_val = self_->setFootPosition(position); + return return_val; + } + + physx_PxExtendedVec3_Pod PxController_getFootPosition(physx_PxController_Pod const* self__pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + physx::PxExtendedVec3 return_val = self_->getFootPosition(); + physx_PxExtendedVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxRigidDynamic_Pod* PxController_getActor(physx_PxController_Pod const* self__pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + physx::PxRigidDynamic* return_val = self_->getActor(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxController_setStepOffset_mut(physx_PxController_Pod* self__pod, float offset) { + physx::PxController* self_ = reinterpret_cast(self__pod); + self_->setStepOffset(offset); + } + + float PxController_getStepOffset(physx_PxController_Pod const* self__pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getStepOffset(); + return return_val; + } + + void PxController_setNonWalkableMode_mut(physx_PxController_Pod* self__pod, int32_t flag_pod) { + physx::PxController* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setNonWalkableMode(flag); + } + + int32_t PxController_getNonWalkableMode(physx_PxController_Pod const* self__pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + physx::PxControllerNonWalkableMode::Enum return_val = self_->getNonWalkableMode(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxController_getContactOffset(physx_PxController_Pod const* self__pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getContactOffset(); + return return_val; + } + + void PxController_setContactOffset_mut(physx_PxController_Pod* self__pod, float offset) { + physx::PxController* self_ = reinterpret_cast(self__pod); + self_->setContactOffset(offset); + } + + physx_PxVec3_Pod PxController_getUpDirection(physx_PxController_Pod const* self__pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getUpDirection(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxController_setUpDirection_mut(physx_PxController_Pod* self__pod, physx_PxVec3_Pod const* up_pod) { + physx::PxController* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& up = reinterpret_cast(*up_pod); + self_->setUpDirection(up); + } + + float PxController_getSlopeLimit(physx_PxController_Pod const* self__pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getSlopeLimit(); + return return_val; + } + + void PxController_setSlopeLimit_mut(physx_PxController_Pod* self__pod, float slopeLimit) { + physx::PxController* self_ = reinterpret_cast(self__pod); + self_->setSlopeLimit(slopeLimit); + } + + void PxController_invalidateCache_mut(physx_PxController_Pod* self__pod) { + physx::PxController* self_ = reinterpret_cast(self__pod); + self_->invalidateCache(); + } + + physx_PxScene_Pod* PxController_getScene_mut(physx_PxController_Pod* self__pod) { + physx::PxController* self_ = reinterpret_cast(self__pod); + physx::PxScene* return_val = self_->getScene(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void* PxController_getUserData(physx_PxController_Pod const* self__pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + void* return_val = self_->getUserData(); + return return_val; + } + + void PxController_setUserData_mut(physx_PxController_Pod* self__pod, void* userData) { + physx::PxController* self_ = reinterpret_cast(self__pod); + self_->setUserData(userData); + } + + void PxController_getState(physx_PxController_Pod const* self__pod, physx_PxControllerState_Pod* state_pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + physx::PxControllerState& state = reinterpret_cast(*state_pod); + self_->getState(state); + } + + void PxController_getStats(physx_PxController_Pod const* self__pod, physx_PxControllerStats_Pod* stats_pod) { + physx::PxController const* self_ = reinterpret_cast(self__pod); + physx::PxControllerStats& stats = reinterpret_cast(*stats_pod); + self_->getStats(stats); + } + + void PxController_resize_mut(physx_PxController_Pod* self__pod, float height) { + physx::PxController* self_ = reinterpret_cast(self__pod); + self_->resize(height); + } + + physx_PxBoxControllerDesc_Pod* PxBoxControllerDesc_new_alloc() { + auto return_val = new physx::PxBoxControllerDesc(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxBoxControllerDesc_delete(physx_PxBoxControllerDesc_Pod* self__pod) { + physx::PxBoxControllerDesc* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxBoxControllerDesc_setToDefault_mut(physx_PxBoxControllerDesc_Pod* self__pod) { + physx::PxBoxControllerDesc* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + bool PxBoxControllerDesc_isValid(physx_PxBoxControllerDesc_Pod const* self__pod) { + physx::PxBoxControllerDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + float PxBoxController_getHalfHeight(physx_PxBoxController_Pod const* self__pod) { + physx::PxBoxController const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getHalfHeight(); + return return_val; + } + + float PxBoxController_getHalfSideExtent(physx_PxBoxController_Pod const* self__pod) { + physx::PxBoxController const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getHalfSideExtent(); + return return_val; + } + + float PxBoxController_getHalfForwardExtent(physx_PxBoxController_Pod const* self__pod) { + physx::PxBoxController const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getHalfForwardExtent(); + return return_val; + } + + bool PxBoxController_setHalfHeight_mut(physx_PxBoxController_Pod* self__pod, float halfHeight) { + physx::PxBoxController* self_ = reinterpret_cast(self__pod); + bool return_val = self_->setHalfHeight(halfHeight); + return return_val; + } + + bool PxBoxController_setHalfSideExtent_mut(physx_PxBoxController_Pod* self__pod, float halfSideExtent) { + physx::PxBoxController* self_ = reinterpret_cast(self__pod); + bool return_val = self_->setHalfSideExtent(halfSideExtent); + return return_val; + } + + bool PxBoxController_setHalfForwardExtent_mut(physx_PxBoxController_Pod* self__pod, float halfForwardExtent) { + physx::PxBoxController* self_ = reinterpret_cast(self__pod); + bool return_val = self_->setHalfForwardExtent(halfForwardExtent); + return return_val; + } + + physx_PxCapsuleControllerDesc_Pod* PxCapsuleControllerDesc_new_alloc() { + auto return_val = new physx::PxCapsuleControllerDesc(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxCapsuleControllerDesc_delete(physx_PxCapsuleControllerDesc_Pod* self__pod) { + physx::PxCapsuleControllerDesc* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxCapsuleControllerDesc_setToDefault_mut(physx_PxCapsuleControllerDesc_Pod* self__pod) { + physx::PxCapsuleControllerDesc* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + bool PxCapsuleControllerDesc_isValid(physx_PxCapsuleControllerDesc_Pod const* self__pod) { + physx::PxCapsuleControllerDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + float PxCapsuleController_getRadius(physx_PxCapsuleController_Pod const* self__pod) { + physx::PxCapsuleController const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getRadius(); + return return_val; + } + + bool PxCapsuleController_setRadius_mut(physx_PxCapsuleController_Pod* self__pod, float radius) { + physx::PxCapsuleController* self_ = reinterpret_cast(self__pod); + bool return_val = self_->setRadius(radius); + return return_val; + } + + float PxCapsuleController_getHeight(physx_PxCapsuleController_Pod const* self__pod) { + physx::PxCapsuleController const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getHeight(); + return return_val; + } + + bool PxCapsuleController_setHeight_mut(physx_PxCapsuleController_Pod* self__pod, float height) { + physx::PxCapsuleController* self_ = reinterpret_cast(self__pod); + bool return_val = self_->setHeight(height); + return return_val; + } + + int32_t PxCapsuleController_getClimbingMode(physx_PxCapsuleController_Pod const* self__pod) { + physx::PxCapsuleController const* self_ = reinterpret_cast(self__pod); + physx::PxCapsuleClimbingMode::Enum return_val = self_->getClimbingMode(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxCapsuleController_setClimbingMode_mut(physx_PxCapsuleController_Pod* self__pod, int32_t mode_pod) { + physx::PxCapsuleController* self_ = reinterpret_cast(self__pod); + auto mode = static_cast(mode_pod); + bool return_val = self_->setClimbingMode(mode); + return return_val; + } + + uint8_t PxControllerBehaviorCallback_getBehaviorFlags_mut(physx_PxControllerBehaviorCallback_Pod* self__pod, physx_PxShape_Pod const* shape_pod, physx_PxActor_Pod const* actor_pod) { + physx::PxControllerBehaviorCallback* self_ = reinterpret_cast(self__pod); + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + physx::PxActor const& actor = reinterpret_cast(*actor_pod); + physx::PxControllerBehaviorFlags return_val = self_->getBehaviorFlags(shape, actor); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint8_t PxControllerBehaviorCallback_getBehaviorFlags_mut_1(physx_PxControllerBehaviorCallback_Pod* self__pod, physx_PxController_Pod const* controller_pod) { + physx::PxControllerBehaviorCallback* self_ = reinterpret_cast(self__pod); + physx::PxController const& controller = reinterpret_cast(*controller_pod); + physx::PxControllerBehaviorFlags return_val = self_->getBehaviorFlags(controller); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint8_t PxControllerBehaviorCallback_getBehaviorFlags_mut_2(physx_PxControllerBehaviorCallback_Pod* self__pod, physx_PxObstacle_Pod const* obstacle_pod) { + physx::PxControllerBehaviorCallback* self_ = reinterpret_cast(self__pod); + physx::PxObstacle const& obstacle = reinterpret_cast(*obstacle_pod); + physx::PxControllerBehaviorFlags return_val = self_->getBehaviorFlags(obstacle); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxControllerManager_release_mut(physx_PxControllerManager_Pod* self__pod) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxScene_Pod* PxControllerManager_getScene(physx_PxControllerManager_Pod const* self__pod) { + physx::PxControllerManager const* self_ = reinterpret_cast(self__pod); + physx::PxScene& return_val = self_->getScene(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + uint32_t PxControllerManager_getNbControllers(physx_PxControllerManager_Pod const* self__pod) { + physx::PxControllerManager const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbControllers(); + return return_val; + } + + physx_PxController_Pod* PxControllerManager_getController_mut(physx_PxControllerManager_Pod* self__pod, uint32_t index) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + physx::PxController* return_val = self_->getController(index); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxController_Pod* PxControllerManager_createController_mut(physx_PxControllerManager_Pod* self__pod, physx_PxControllerDesc_Pod const* desc_pod) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + physx::PxControllerDesc const& desc = reinterpret_cast(*desc_pod); + physx::PxController* return_val = self_->createController(desc); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxControllerManager_purgeControllers_mut(physx_PxControllerManager_Pod* self__pod) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + self_->purgeControllers(); + } + + physx_PxRenderBuffer_Pod* PxControllerManager_getRenderBuffer_mut(physx_PxControllerManager_Pod* self__pod) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + physx::PxRenderBuffer& return_val = self_->getRenderBuffer(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void PxControllerManager_setDebugRenderingFlags_mut(physx_PxControllerManager_Pod* self__pod, uint32_t flags_pod) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxControllerDebugRenderFlags(flags_pod); + self_->setDebugRenderingFlags(flags); + } + + uint32_t PxControllerManager_getNbObstacleContexts(physx_PxControllerManager_Pod const* self__pod) { + physx::PxControllerManager const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbObstacleContexts(); + return return_val; + } + + physx_PxObstacleContext_Pod* PxControllerManager_getObstacleContext_mut(physx_PxControllerManager_Pod* self__pod, uint32_t index) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + physx::PxObstacleContext* return_val = self_->getObstacleContext(index); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxObstacleContext_Pod* PxControllerManager_createObstacleContext_mut(physx_PxControllerManager_Pod* self__pod) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + physx::PxObstacleContext* return_val = self_->createObstacleContext(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxControllerManager_computeInteractions_mut(physx_PxControllerManager_Pod* self__pod, float elapsedTime, physx_PxControllerFilterCallback_Pod* cctFilterCb_pod) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + physx::PxControllerFilterCallback* cctFilterCb = reinterpret_cast(cctFilterCb_pod); + self_->computeInteractions(elapsedTime, cctFilterCb); + } + + void PxControllerManager_setTessellation_mut(physx_PxControllerManager_Pod* self__pod, bool flag, float maxEdgeLength) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + self_->setTessellation(flag, maxEdgeLength); + } + + void PxControllerManager_setOverlapRecoveryModule_mut(physx_PxControllerManager_Pod* self__pod, bool flag) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + self_->setOverlapRecoveryModule(flag); + } + + void PxControllerManager_setPreciseSweeps_mut(physx_PxControllerManager_Pod* self__pod, bool flag) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + self_->setPreciseSweeps(flag); + } + + void PxControllerManager_setPreventVerticalSlidingAgainstCeiling_mut(physx_PxControllerManager_Pod* self__pod, bool flag) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + self_->setPreventVerticalSlidingAgainstCeiling(flag); + } + + void PxControllerManager_shiftOrigin_mut(physx_PxControllerManager_Pod* self__pod, physx_PxVec3_Pod const* shift_pod) { + physx::PxControllerManager* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& shift = reinterpret_cast(*shift_pod); + self_->shiftOrigin(shift); + } + + physx_PxControllerManager_Pod* phys_PxCreateControllerManager(physx_PxScene_Pod* scene_pod, bool lockingEnabled) { + physx::PxScene& scene = reinterpret_cast(*scene_pod); + physx::PxControllerManager* return_val = PxCreateControllerManager(scene, lockingEnabled); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxDim3_Pod PxDim3_new() { + PxDim3 return_val; + physx_PxDim3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxSDFDesc_Pod PxSDFDesc_new() { + PxSDFDesc return_val; + physx_PxSDFDesc_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxSDFDesc_isValid(physx_PxSDFDesc_Pod const* self__pod) { + physx::PxSDFDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxConvexMeshDesc_Pod PxConvexMeshDesc_new() { + PxConvexMeshDesc return_val; + physx_PxConvexMeshDesc_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxConvexMeshDesc_setToDefault_mut(physx_PxConvexMeshDesc_Pod* self__pod) { + physx::PxConvexMeshDesc* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + bool PxConvexMeshDesc_isValid(physx_PxConvexMeshDesc_Pod const* self__pod) { + physx::PxConvexMeshDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxTriangleMeshDesc_Pod PxTriangleMeshDesc_new() { + PxTriangleMeshDesc return_val; + physx_PxTriangleMeshDesc_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxTriangleMeshDesc_setToDefault_mut(physx_PxTriangleMeshDesc_Pod* self__pod) { + physx::PxTriangleMeshDesc* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + bool PxTriangleMeshDesc_isValid(physx_PxTriangleMeshDesc_Pod const* self__pod) { + physx::PxTriangleMeshDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxTetrahedronMeshDesc_Pod PxTetrahedronMeshDesc_new() { + PxTetrahedronMeshDesc return_val; + physx_PxTetrahedronMeshDesc_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxTetrahedronMeshDesc_isValid(physx_PxTetrahedronMeshDesc_Pod const* self__pod) { + physx::PxTetrahedronMeshDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxSoftBodySimulationDataDesc_Pod PxSoftBodySimulationDataDesc_new() { + PxSoftBodySimulationDataDesc return_val; + physx_PxSoftBodySimulationDataDesc_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxSoftBodySimulationDataDesc_isValid(physx_PxSoftBodySimulationDataDesc_Pod const* self__pod) { + physx::PxSoftBodySimulationDataDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxBVH34MidphaseDesc_setToDefault_mut(physx_PxBVH34MidphaseDesc_Pod* self__pod) { + physx::PxBVH34MidphaseDesc* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + bool PxBVH34MidphaseDesc_isValid(physx_PxBVH34MidphaseDesc_Pod const* self__pod) { + physx::PxBVH34MidphaseDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxMidphaseDesc_Pod PxMidphaseDesc_new() { + PxMidphaseDesc return_val; + physx_PxMidphaseDesc_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + int32_t PxMidphaseDesc_getType(physx_PxMidphaseDesc_Pod const* self__pod) { + physx::PxMidphaseDesc const* self_ = reinterpret_cast(self__pod); + physx::PxMeshMidPhase::Enum return_val = self_->getType(); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxMidphaseDesc_setToDefault_mut(physx_PxMidphaseDesc_Pod* self__pod, int32_t type_pod) { + physx::PxMidphaseDesc* self_ = reinterpret_cast(self__pod); + auto type = static_cast(type_pod); + self_->setToDefault(type); + } + + bool PxMidphaseDesc_isValid(physx_PxMidphaseDesc_Pod const* self__pod) { + physx::PxMidphaseDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxBVHDesc_Pod PxBVHDesc_new() { + PxBVHDesc return_val; + physx_PxBVHDesc_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxBVHDesc_setToDefault_mut(physx_PxBVHDesc_Pod* self__pod) { + physx::PxBVHDesc* self_ = reinterpret_cast(self__pod); + self_->setToDefault(); + } + + bool PxBVHDesc_isValid(physx_PxBVHDesc_Pod const* self__pod) { + physx::PxBVHDesc const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxCookingParams_Pod PxCookingParams_new(physx_PxTolerancesScale_Pod const* sc_pod) { + physx::PxTolerancesScale const& sc = reinterpret_cast(*sc_pod); + PxCookingParams return_val(sc); + physx_PxCookingParams_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxInsertionCallback_Pod* phys_PxGetStandaloneInsertionCallback() { + physx::PxInsertionCallback* return_val = PxGetStandaloneInsertionCallback(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool phys_PxCookBVH(physx_PxBVHDesc_Pod const* desc_pod, physx_PxOutputStream_Pod* stream_pod) { + physx::PxBVHDesc const& desc = reinterpret_cast(*desc_pod); + physx::PxOutputStream& stream = reinterpret_cast(*stream_pod); + bool return_val = PxCookBVH(desc, stream); + return return_val; + } + + physx_PxBVH_Pod* phys_PxCreateBVH(physx_PxBVHDesc_Pod const* desc_pod, physx_PxInsertionCallback_Pod* insertionCallback_pod) { + physx::PxBVHDesc const& desc = reinterpret_cast(*desc_pod); + physx::PxInsertionCallback& insertionCallback = reinterpret_cast(*insertionCallback_pod); + physx::PxBVH* return_val = PxCreateBVH(desc, insertionCallback); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool phys_PxCookHeightField(physx_PxHeightFieldDesc_Pod const* desc_pod, physx_PxOutputStream_Pod* stream_pod) { + physx::PxHeightFieldDesc const& desc = reinterpret_cast(*desc_pod); + physx::PxOutputStream& stream = reinterpret_cast(*stream_pod); + bool return_val = PxCookHeightField(desc, stream); + return return_val; + } + + physx_PxHeightField_Pod* phys_PxCreateHeightField(physx_PxHeightFieldDesc_Pod const* desc_pod, physx_PxInsertionCallback_Pod* insertionCallback_pod) { + physx::PxHeightFieldDesc const& desc = reinterpret_cast(*desc_pod); + physx::PxInsertionCallback& insertionCallback = reinterpret_cast(*insertionCallback_pod); + physx::PxHeightField* return_val = PxCreateHeightField(desc, insertionCallback); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool phys_PxCookConvexMesh(physx_PxCookingParams_Pod const* params_pod, physx_PxConvexMeshDesc_Pod const* desc_pod, physx_PxOutputStream_Pod* stream_pod, int32_t* condition_pod) { + physx::PxCookingParams const& params = reinterpret_cast(*params_pod); + physx::PxConvexMeshDesc const& desc = reinterpret_cast(*desc_pod); + physx::PxOutputStream& stream = reinterpret_cast(*stream_pod); + physx::PxConvexMeshCookingResult::Enum* condition = reinterpret_cast(condition_pod); + bool return_val = PxCookConvexMesh(params, desc, stream, condition); + return return_val; + } + + physx_PxConvexMesh_Pod* phys_PxCreateConvexMesh(physx_PxCookingParams_Pod const* params_pod, physx_PxConvexMeshDesc_Pod const* desc_pod, physx_PxInsertionCallback_Pod* insertionCallback_pod, int32_t* condition_pod) { + physx::PxCookingParams const& params = reinterpret_cast(*params_pod); + physx::PxConvexMeshDesc const& desc = reinterpret_cast(*desc_pod); + physx::PxInsertionCallback& insertionCallback = reinterpret_cast(*insertionCallback_pod); + physx::PxConvexMeshCookingResult::Enum* condition = reinterpret_cast(condition_pod); + physx::PxConvexMesh* return_val = PxCreateConvexMesh(params, desc, insertionCallback, condition); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool phys_PxValidateConvexMesh(physx_PxCookingParams_Pod const* params_pod, physx_PxConvexMeshDesc_Pod const* desc_pod) { + physx::PxCookingParams const& params = reinterpret_cast(*params_pod); + physx::PxConvexMeshDesc const& desc = reinterpret_cast(*desc_pod); + bool return_val = PxValidateConvexMesh(params, desc); + return return_val; + } + + bool phys_PxComputeHullPolygons(physx_PxCookingParams_Pod const* params_pod, physx_PxSimpleTriangleMesh_Pod const* mesh_pod, physx_PxAllocatorCallback_Pod* inCallback_pod, uint32_t* nbVerts_pod, physx_PxVec3_Pod** vertices_pod, uint32_t* nbIndices_pod, uint32_t** indices_pod, uint32_t* nbPolygons_pod, physx_PxHullPolygon_Pod** hullPolygons_pod) { + physx::PxCookingParams const& params = reinterpret_cast(*params_pod); + physx::PxSimpleTriangleMesh const& mesh = reinterpret_cast(*mesh_pod); + physx::PxAllocatorCallback& inCallback = reinterpret_cast(*inCallback_pod); + uint32_t& nbVerts = *nbVerts_pod; + physx::PxVec3*& vertices = reinterpret_cast(*vertices_pod); + uint32_t& nbIndices = *nbIndices_pod; + uint32_t*& indices = reinterpret_cast(*indices_pod); + uint32_t& nbPolygons = *nbPolygons_pod; + physx::PxHullPolygon*& hullPolygons = reinterpret_cast(*hullPolygons_pod); + bool return_val = PxComputeHullPolygons(params, mesh, inCallback, nbVerts, vertices, nbIndices, indices, nbPolygons, hullPolygons); + return return_val; + } + + bool phys_PxValidateTriangleMesh(physx_PxCookingParams_Pod const* params_pod, physx_PxTriangleMeshDesc_Pod const* desc_pod) { + physx::PxCookingParams const& params = reinterpret_cast(*params_pod); + physx::PxTriangleMeshDesc const& desc = reinterpret_cast(*desc_pod); + bool return_val = PxValidateTriangleMesh(params, desc); + return return_val; + } + + physx_PxTriangleMesh_Pod* phys_PxCreateTriangleMesh(physx_PxCookingParams_Pod const* params_pod, physx_PxTriangleMeshDesc_Pod const* desc_pod, physx_PxInsertionCallback_Pod* insertionCallback_pod, int32_t* condition_pod) { + physx::PxCookingParams const& params = reinterpret_cast(*params_pod); + physx::PxTriangleMeshDesc const& desc = reinterpret_cast(*desc_pod); + physx::PxInsertionCallback& insertionCallback = reinterpret_cast(*insertionCallback_pod); + physx::PxTriangleMeshCookingResult::Enum* condition = reinterpret_cast(condition_pod); + physx::PxTriangleMesh* return_val = PxCreateTriangleMesh(params, desc, insertionCallback, condition); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool phys_PxCookTriangleMesh(physx_PxCookingParams_Pod const* params_pod, physx_PxTriangleMeshDesc_Pod const* desc_pod, physx_PxOutputStream_Pod* stream_pod, int32_t* condition_pod) { + physx::PxCookingParams const& params = reinterpret_cast(*params_pod); + physx::PxTriangleMeshDesc const& desc = reinterpret_cast(*desc_pod); + physx::PxOutputStream& stream = reinterpret_cast(*stream_pod); + physx::PxTriangleMeshCookingResult::Enum* condition = reinterpret_cast(condition_pod); + bool return_val = PxCookTriangleMesh(params, desc, stream, condition); + return return_val; + } + + physx_PxDefaultMemoryOutputStream_Pod* PxDefaultMemoryOutputStream_new_alloc(physx_PxAllocatorCallback_Pod* allocator_pod) { + physx::PxAllocatorCallback& allocator = reinterpret_cast(*allocator_pod); + auto return_val = new physx::PxDefaultMemoryOutputStream(allocator); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxDefaultMemoryOutputStream_delete(physx_PxDefaultMemoryOutputStream_Pod* self__pod) { + physx::PxDefaultMemoryOutputStream* self_ = reinterpret_cast(self__pod); + delete self_; + } + + uint32_t PxDefaultMemoryOutputStream_write_mut(physx_PxDefaultMemoryOutputStream_Pod* self__pod, void const* src, uint32_t count) { + physx::PxDefaultMemoryOutputStream* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->write(src, count); + return return_val; + } + + uint32_t PxDefaultMemoryOutputStream_getSize(physx_PxDefaultMemoryOutputStream_Pod const* self__pod) { + physx::PxDefaultMemoryOutputStream const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getSize(); + return return_val; + } + + uint8_t* PxDefaultMemoryOutputStream_getData(physx_PxDefaultMemoryOutputStream_Pod const* self__pod) { + physx::PxDefaultMemoryOutputStream const* self_ = reinterpret_cast(self__pod); + uint8_t* return_val = self_->getData(); + return return_val; + } + + physx_PxDefaultMemoryInputData_Pod* PxDefaultMemoryInputData_new_alloc(uint8_t* data, uint32_t length) { + auto return_val = new physx::PxDefaultMemoryInputData(data, length); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxDefaultMemoryInputData_read_mut(physx_PxDefaultMemoryInputData_Pod* self__pod, void* dest, uint32_t count) { + physx::PxDefaultMemoryInputData* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->read(dest, count); + return return_val; + } + + uint32_t PxDefaultMemoryInputData_getLength(physx_PxDefaultMemoryInputData_Pod const* self__pod) { + physx::PxDefaultMemoryInputData const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getLength(); + return return_val; + } + + void PxDefaultMemoryInputData_seek_mut(physx_PxDefaultMemoryInputData_Pod* self__pod, uint32_t pos) { + physx::PxDefaultMemoryInputData* self_ = reinterpret_cast(self__pod); + self_->seek(pos); + } + + uint32_t PxDefaultMemoryInputData_tell(physx_PxDefaultMemoryInputData_Pod const* self__pod) { + physx::PxDefaultMemoryInputData const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->tell(); + return return_val; + } + + physx_PxDefaultFileOutputStream_Pod* PxDefaultFileOutputStream_new_alloc(char const* name) { + auto return_val = new physx::PxDefaultFileOutputStream(name); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxDefaultFileOutputStream_delete(physx_PxDefaultFileOutputStream_Pod* self__pod) { + physx::PxDefaultFileOutputStream* self_ = reinterpret_cast(self__pod); + delete self_; + } + + uint32_t PxDefaultFileOutputStream_write_mut(physx_PxDefaultFileOutputStream_Pod* self__pod, void const* src, uint32_t count) { + physx::PxDefaultFileOutputStream* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->write(src, count); + return return_val; + } + + bool PxDefaultFileOutputStream_isValid_mut(physx_PxDefaultFileOutputStream_Pod* self__pod) { + physx::PxDefaultFileOutputStream* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxDefaultFileInputData_Pod* PxDefaultFileInputData_new_alloc(char const* name) { + auto return_val = new physx::PxDefaultFileInputData(name); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxDefaultFileInputData_delete(physx_PxDefaultFileInputData_Pod* self__pod) { + physx::PxDefaultFileInputData* self_ = reinterpret_cast(self__pod); + delete self_; + } + + uint32_t PxDefaultFileInputData_read_mut(physx_PxDefaultFileInputData_Pod* self__pod, void* dest, uint32_t count) { + physx::PxDefaultFileInputData* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->read(dest, count); + return return_val; + } + + void PxDefaultFileInputData_seek_mut(physx_PxDefaultFileInputData_Pod* self__pod, uint32_t pos) { + physx::PxDefaultFileInputData* self_ = reinterpret_cast(self__pod); + self_->seek(pos); + } + + uint32_t PxDefaultFileInputData_tell(physx_PxDefaultFileInputData_Pod const* self__pod) { + physx::PxDefaultFileInputData const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->tell(); + return return_val; + } + + uint32_t PxDefaultFileInputData_getLength(physx_PxDefaultFileInputData_Pod const* self__pod) { + physx::PxDefaultFileInputData const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getLength(); + return return_val; + } + + bool PxDefaultFileInputData_isValid(physx_PxDefaultFileInputData_Pod const* self__pod) { + physx::PxDefaultFileInputData const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void* phys_platformAlignedAlloc(size_t size_pod) { + size_t size; + memcpy(&size, &size_pod, sizeof(size)); + void* return_val = platformAlignedAlloc(size); + return return_val; + } + + void phys_platformAlignedFree(void* ptr) { + platformAlignedFree(ptr); + } + + void* PxDefaultAllocator_allocate_mut(physx_PxDefaultAllocator_Pod* self__pod, size_t size_pod, char const* anon_param1, char const* anon_param2, int32_t anon_param3) { + physx::PxDefaultAllocator* self_ = reinterpret_cast(self__pod); + size_t size; + memcpy(&size, &size_pod, sizeof(size)); + void* return_val = self_->allocate(size, anon_param1, anon_param2, anon_param3); + return return_val; + } + + void PxDefaultAllocator_deallocate_mut(physx_PxDefaultAllocator_Pod* self__pod, void* ptr) { + physx::PxDefaultAllocator* self_ = reinterpret_cast(self__pod); + self_->deallocate(ptr); + } + + void PxDefaultAllocator_delete(physx_PxDefaultAllocator_Pod* self__pod) { + physx::PxDefaultAllocator* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxJoint_setActors_mut(physx_PxJoint_Pod* self__pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxRigidActor_Pod* actor1_pod) { + physx::PxJoint* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + self_->setActors(actor0, actor1); + } + + void PxJoint_getActors(physx_PxJoint_Pod const* self__pod, physx_PxRigidActor_Pod** actor0_pod, physx_PxRigidActor_Pod** actor1_pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor*& actor0 = reinterpret_cast(*actor0_pod); + physx::PxRigidActor*& actor1 = reinterpret_cast(*actor1_pod); + self_->getActors(actor0, actor1); + } + + void PxJoint_setLocalPose_mut(physx_PxJoint_Pod* self__pod, int32_t actor_pod, physx_PxTransform_Pod const* localPose_pod) { + physx::PxJoint* self_ = reinterpret_cast(self__pod); + auto actor = static_cast(actor_pod); + physx::PxTransform const& localPose = reinterpret_cast(*localPose_pod); + self_->setLocalPose(actor, localPose); + } + + physx_PxTransform_Pod PxJoint_getLocalPose(physx_PxJoint_Pod const* self__pod, int32_t actor_pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + auto actor = static_cast(actor_pod); + physx::PxTransform return_val = self_->getLocalPose(actor); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxTransform_Pod PxJoint_getRelativeTransform(physx_PxJoint_Pod const* self__pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + physx::PxTransform return_val = self_->getRelativeTransform(); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxJoint_getRelativeLinearVelocity(physx_PxJoint_Pod const* self__pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getRelativeLinearVelocity(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxJoint_getRelativeAngularVelocity(physx_PxJoint_Pod const* self__pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getRelativeAngularVelocity(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxJoint_setBreakForce_mut(physx_PxJoint_Pod* self__pod, float force, float torque) { + physx::PxJoint* self_ = reinterpret_cast(self__pod); + self_->setBreakForce(force, torque); + } + + void PxJoint_getBreakForce(physx_PxJoint_Pod const* self__pod, float* force_pod, float* torque_pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + float& force = *force_pod; + float& torque = *torque_pod; + self_->getBreakForce(force, torque); + } + + void PxJoint_setConstraintFlags_mut(physx_PxJoint_Pod* self__pod, uint16_t flags_pod) { + physx::PxJoint* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxConstraintFlags(flags_pod); + self_->setConstraintFlags(flags); + } + + void PxJoint_setConstraintFlag_mut(physx_PxJoint_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxJoint* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setConstraintFlag(flag, value); + } + + uint16_t PxJoint_getConstraintFlags(physx_PxJoint_Pod const* self__pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + physx::PxConstraintFlags return_val = self_->getConstraintFlags(); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxJoint_setInvMassScale0_mut(physx_PxJoint_Pod* self__pod, float invMassScale) { + physx::PxJoint* self_ = reinterpret_cast(self__pod); + self_->setInvMassScale0(invMassScale); + } + + float PxJoint_getInvMassScale0(physx_PxJoint_Pod const* self__pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvMassScale0(); + return return_val; + } + + void PxJoint_setInvInertiaScale0_mut(physx_PxJoint_Pod* self__pod, float invInertiaScale) { + physx::PxJoint* self_ = reinterpret_cast(self__pod); + self_->setInvInertiaScale0(invInertiaScale); + } + + float PxJoint_getInvInertiaScale0(physx_PxJoint_Pod const* self__pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvInertiaScale0(); + return return_val; + } + + void PxJoint_setInvMassScale1_mut(physx_PxJoint_Pod* self__pod, float invMassScale) { + physx::PxJoint* self_ = reinterpret_cast(self__pod); + self_->setInvMassScale1(invMassScale); + } + + float PxJoint_getInvMassScale1(physx_PxJoint_Pod const* self__pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvMassScale1(); + return return_val; + } + + void PxJoint_setInvInertiaScale1_mut(physx_PxJoint_Pod* self__pod, float invInertiaScale) { + physx::PxJoint* self_ = reinterpret_cast(self__pod); + self_->setInvInertiaScale1(invInertiaScale); + } + + float PxJoint_getInvInertiaScale1(physx_PxJoint_Pod const* self__pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getInvInertiaScale1(); + return return_val; + } + + physx_PxConstraint_Pod* PxJoint_getConstraint(physx_PxJoint_Pod const* self__pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + physx::PxConstraint* return_val = self_->getConstraint(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxJoint_setName_mut(physx_PxJoint_Pod* self__pod, char const* name) { + physx::PxJoint* self_ = reinterpret_cast(self__pod); + self_->setName(name); + } + + char const* PxJoint_getName(physx_PxJoint_Pod const* self__pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getName(); + return return_val; + } + + void PxJoint_release_mut(physx_PxJoint_Pod* self__pod) { + physx::PxJoint* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxScene_Pod* PxJoint_getScene(physx_PxJoint_Pod const* self__pod) { + physx::PxJoint const* self_ = reinterpret_cast(self__pod); + physx::PxScene* return_val = self_->getScene(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxJoint_getBinaryMetaData(physx_PxOutputStream_Pod* stream_pod) { + physx::PxOutputStream& stream = reinterpret_cast(*stream_pod); + PxJoint::getBinaryMetaData(stream); + } + + physx_PxSpring_Pod PxSpring_new(float stiffness_, float damping_) { + PxSpring return_val(stiffness_, damping_); + physx_PxSpring_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void phys_PxSetJointGlobalFrame(physx_PxJoint_Pod* joint_pod, physx_PxVec3_Pod const* wsAnchor_pod, physx_PxVec3_Pod const* wsAxis_pod) { + physx::PxJoint& joint = reinterpret_cast(*joint_pod); + physx::PxVec3 const* wsAnchor = reinterpret_cast(wsAnchor_pod); + physx::PxVec3 const* wsAxis = reinterpret_cast(wsAxis_pod); + PxSetJointGlobalFrame(joint, wsAnchor, wsAxis); + } + + physx_PxDistanceJoint_Pod* phys_PxDistanceJointCreate(physx_PxPhysics_Pod* physics_pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxTransform_Pod const* localFrame0_pod, physx_PxRigidActor_Pod* actor1_pod, physx_PxTransform_Pod const* localFrame1_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxTransform const& localFrame0 = reinterpret_cast(*localFrame0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + physx::PxTransform const& localFrame1 = reinterpret_cast(*localFrame1_pod); + physx::PxDistanceJoint* return_val = PxDistanceJointCreate(physics, actor0, localFrame0, actor1, localFrame1); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + float PxDistanceJoint_getDistance(physx_PxDistanceJoint_Pod const* self__pod) { + physx::PxDistanceJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDistance(); + return return_val; + } + + void PxDistanceJoint_setMinDistance_mut(physx_PxDistanceJoint_Pod* self__pod, float distance) { + physx::PxDistanceJoint* self_ = reinterpret_cast(self__pod); + self_->setMinDistance(distance); + } + + float PxDistanceJoint_getMinDistance(physx_PxDistanceJoint_Pod const* self__pod) { + physx::PxDistanceJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMinDistance(); + return return_val; + } + + void PxDistanceJoint_setMaxDistance_mut(physx_PxDistanceJoint_Pod* self__pod, float distance) { + physx::PxDistanceJoint* self_ = reinterpret_cast(self__pod); + self_->setMaxDistance(distance); + } + + float PxDistanceJoint_getMaxDistance(physx_PxDistanceJoint_Pod const* self__pod) { + physx::PxDistanceJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getMaxDistance(); + return return_val; + } + + void PxDistanceJoint_setTolerance_mut(physx_PxDistanceJoint_Pod* self__pod, float tolerance) { + physx::PxDistanceJoint* self_ = reinterpret_cast(self__pod); + self_->setTolerance(tolerance); + } + + float PxDistanceJoint_getTolerance(physx_PxDistanceJoint_Pod const* self__pod) { + physx::PxDistanceJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getTolerance(); + return return_val; + } + + void PxDistanceJoint_setStiffness_mut(physx_PxDistanceJoint_Pod* self__pod, float stiffness) { + physx::PxDistanceJoint* self_ = reinterpret_cast(self__pod); + self_->setStiffness(stiffness); + } + + float PxDistanceJoint_getStiffness(physx_PxDistanceJoint_Pod const* self__pod) { + physx::PxDistanceJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getStiffness(); + return return_val; + } + + void PxDistanceJoint_setDamping_mut(physx_PxDistanceJoint_Pod* self__pod, float damping) { + physx::PxDistanceJoint* self_ = reinterpret_cast(self__pod); + self_->setDamping(damping); + } + + float PxDistanceJoint_getDamping(physx_PxDistanceJoint_Pod const* self__pod) { + physx::PxDistanceJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDamping(); + return return_val; + } + + void PxDistanceJoint_setContactDistance_mut(physx_PxDistanceJoint_Pod* self__pod, float contactDistance) { + physx::PxDistanceJoint* self_ = reinterpret_cast(self__pod); + self_->setContactDistance(contactDistance); + } + + float PxDistanceJoint_getContactDistance(physx_PxDistanceJoint_Pod const* self__pod) { + physx::PxDistanceJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getContactDistance(); + return return_val; + } + + void PxDistanceJoint_setDistanceJointFlags_mut(physx_PxDistanceJoint_Pod* self__pod, uint16_t flags_pod) { + physx::PxDistanceJoint* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxDistanceJointFlags(flags_pod); + self_->setDistanceJointFlags(flags); + } + + void PxDistanceJoint_setDistanceJointFlag_mut(physx_PxDistanceJoint_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxDistanceJoint* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setDistanceJointFlag(flag, value); + } + + uint16_t PxDistanceJoint_getDistanceJointFlags(physx_PxDistanceJoint_Pod const* self__pod) { + physx::PxDistanceJoint const* self_ = reinterpret_cast(self__pod); + physx::PxDistanceJointFlags return_val = self_->getDistanceJointFlags(); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + char const* PxDistanceJoint_getConcreteTypeName(physx_PxDistanceJoint_Pod const* self__pod) { + physx::PxDistanceJoint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxContactJoint_Pod* phys_PxContactJointCreate(physx_PxPhysics_Pod* physics_pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxTransform_Pod const* localFrame0_pod, physx_PxRigidActor_Pod* actor1_pod, physx_PxTransform_Pod const* localFrame1_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxTransform const& localFrame0 = reinterpret_cast(*localFrame0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + physx::PxTransform const& localFrame1 = reinterpret_cast(*localFrame1_pod); + physx::PxContactJoint* return_val = PxContactJointCreate(physics, actor0, localFrame0, actor1, localFrame1); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxJacobianRow_Pod PxJacobianRow_new() { + PxJacobianRow return_val; + physx_PxJacobianRow_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxJacobianRow_Pod PxJacobianRow_new_1(physx_PxVec3_Pod const* lin0_pod, physx_PxVec3_Pod const* lin1_pod, physx_PxVec3_Pod const* ang0_pod, physx_PxVec3_Pod const* ang1_pod) { + physx::PxVec3 const& lin0 = reinterpret_cast(*lin0_pod); + physx::PxVec3 const& lin1 = reinterpret_cast(*lin1_pod); + physx::PxVec3 const& ang0 = reinterpret_cast(*ang0_pod); + physx::PxVec3 const& ang1 = reinterpret_cast(*ang1_pod); + PxJacobianRow return_val(lin0, lin1, ang0, ang1); + physx_PxJacobianRow_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxContactJoint_setContact_mut(physx_PxContactJoint_Pod* self__pod, physx_PxVec3_Pod const* contact_pod) { + physx::PxContactJoint* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& contact = reinterpret_cast(*contact_pod); + self_->setContact(contact); + } + + void PxContactJoint_setContactNormal_mut(physx_PxContactJoint_Pod* self__pod, physx_PxVec3_Pod const* contactNormal_pod) { + physx::PxContactJoint* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& contactNormal = reinterpret_cast(*contactNormal_pod); + self_->setContactNormal(contactNormal); + } + + void PxContactJoint_setPenetration_mut(physx_PxContactJoint_Pod* self__pod, float penetration) { + physx::PxContactJoint* self_ = reinterpret_cast(self__pod); + self_->setPenetration(penetration); + } + + physx_PxVec3_Pod PxContactJoint_getContact(physx_PxContactJoint_Pod const* self__pod) { + physx::PxContactJoint const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getContact(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxContactJoint_getContactNormal(physx_PxContactJoint_Pod const* self__pod) { + physx::PxContactJoint const* self_ = reinterpret_cast(self__pod); + physx::PxVec3 return_val = self_->getContactNormal(); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxContactJoint_getPenetration(physx_PxContactJoint_Pod const* self__pod) { + physx::PxContactJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getPenetration(); + return return_val; + } + + float PxContactJoint_getRestitution(physx_PxContactJoint_Pod const* self__pod) { + physx::PxContactJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getRestitution(); + return return_val; + } + + void PxContactJoint_setRestitution_mut(physx_PxContactJoint_Pod* self__pod, float restitution) { + physx::PxContactJoint* self_ = reinterpret_cast(self__pod); + self_->setRestitution(restitution); + } + + float PxContactJoint_getBounceThreshold(physx_PxContactJoint_Pod const* self__pod) { + physx::PxContactJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getBounceThreshold(); + return return_val; + } + + void PxContactJoint_setBounceThreshold_mut(physx_PxContactJoint_Pod* self__pod, float bounceThreshold) { + physx::PxContactJoint* self_ = reinterpret_cast(self__pod); + self_->setBounceThreshold(bounceThreshold); + } + + char const* PxContactJoint_getConcreteTypeName(physx_PxContactJoint_Pod const* self__pod) { + physx::PxContactJoint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + void PxContactJoint_computeJacobians(physx_PxContactJoint_Pod const* self__pod, physx_PxJacobianRow_Pod* jacobian_pod) { + physx::PxContactJoint const* self_ = reinterpret_cast(self__pod); + physx::PxJacobianRow* jacobian = reinterpret_cast(jacobian_pod); + self_->computeJacobians(jacobian); + } + + uint32_t PxContactJoint_getNbJacobianRows(physx_PxContactJoint_Pod const* self__pod) { + physx::PxContactJoint const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbJacobianRows(); + return return_val; + } + + physx_PxFixedJoint_Pod* phys_PxFixedJointCreate(physx_PxPhysics_Pod* physics_pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxTransform_Pod const* localFrame0_pod, physx_PxRigidActor_Pod* actor1_pod, physx_PxTransform_Pod const* localFrame1_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxTransform const& localFrame0 = reinterpret_cast(*localFrame0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + physx::PxTransform const& localFrame1 = reinterpret_cast(*localFrame1_pod); + physx::PxFixedJoint* return_val = PxFixedJointCreate(physics, actor0, localFrame0, actor1, localFrame1); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + char const* PxFixedJoint_getConcreteTypeName(physx_PxFixedJoint_Pod const* self__pod) { + physx::PxFixedJoint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxJointLimitParameters_Pod* PxJointLimitParameters_new_alloc() { + auto return_val = new physx::PxJointLimitParameters(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool PxJointLimitParameters_isValid(physx_PxJointLimitParameters_Pod const* self__pod) { + physx::PxJointLimitParameters const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + bool PxJointLimitParameters_isSoft(physx_PxJointLimitParameters_Pod const* self__pod) { + physx::PxJointLimitParameters const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isSoft(); + return return_val; + } + + physx_PxJointLinearLimit_Pod PxJointLinearLimit_new(physx_PxTolerancesScale_Pod const* scale_pod, float extent, float contactDist_deprecated) { + physx::PxTolerancesScale const& scale = reinterpret_cast(*scale_pod); + PxJointLinearLimit return_val(scale, extent, contactDist_deprecated); + physx_PxJointLinearLimit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxJointLinearLimit_Pod PxJointLinearLimit_new_1(float extent, physx_PxSpring_Pod const* spring_pod) { + physx::PxSpring const& spring = reinterpret_cast(*spring_pod); + PxJointLinearLimit return_val(extent, spring); + physx_PxJointLinearLimit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxJointLinearLimit_isValid(physx_PxJointLinearLimit_Pod const* self__pod) { + physx::PxJointLinearLimit const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxJointLinearLimit_delete(physx_PxJointLinearLimit_Pod* self__pod) { + physx::PxJointLinearLimit* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxJointLinearLimitPair_Pod PxJointLinearLimitPair_new(physx_PxTolerancesScale_Pod const* scale_pod, float lowerLimit, float upperLimit, float contactDist_deprecated) { + physx::PxTolerancesScale const& scale = reinterpret_cast(*scale_pod); + PxJointLinearLimitPair return_val(scale, lowerLimit, upperLimit, contactDist_deprecated); + physx_PxJointLinearLimitPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxJointLinearLimitPair_Pod PxJointLinearLimitPair_new_1(float lowerLimit, float upperLimit, physx_PxSpring_Pod const* spring_pod) { + physx::PxSpring const& spring = reinterpret_cast(*spring_pod); + PxJointLinearLimitPair return_val(lowerLimit, upperLimit, spring); + physx_PxJointLinearLimitPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxJointLinearLimitPair_isValid(physx_PxJointLinearLimitPair_Pod const* self__pod) { + physx::PxJointLinearLimitPair const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxJointLinearLimitPair_delete(physx_PxJointLinearLimitPair_Pod* self__pod) { + physx::PxJointLinearLimitPair* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxJointAngularLimitPair_Pod PxJointAngularLimitPair_new(float lowerLimit, float upperLimit, float contactDist_deprecated) { + PxJointAngularLimitPair return_val(lowerLimit, upperLimit, contactDist_deprecated); + physx_PxJointAngularLimitPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxJointAngularLimitPair_Pod PxJointAngularLimitPair_new_1(float lowerLimit, float upperLimit, physx_PxSpring_Pod const* spring_pod) { + physx::PxSpring const& spring = reinterpret_cast(*spring_pod); + PxJointAngularLimitPair return_val(lowerLimit, upperLimit, spring); + physx_PxJointAngularLimitPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxJointAngularLimitPair_isValid(physx_PxJointAngularLimitPair_Pod const* self__pod) { + physx::PxJointAngularLimitPair const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxJointAngularLimitPair_delete(physx_PxJointAngularLimitPair_Pod* self__pod) { + physx::PxJointAngularLimitPair* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxJointLimitCone_Pod PxJointLimitCone_new(float yLimitAngle, float zLimitAngle, float contactDist_deprecated) { + PxJointLimitCone return_val(yLimitAngle, zLimitAngle, contactDist_deprecated); + physx_PxJointLimitCone_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxJointLimitCone_Pod PxJointLimitCone_new_1(float yLimitAngle, float zLimitAngle, physx_PxSpring_Pod const* spring_pod) { + physx::PxSpring const& spring = reinterpret_cast(*spring_pod); + PxJointLimitCone return_val(yLimitAngle, zLimitAngle, spring); + physx_PxJointLimitCone_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxJointLimitCone_isValid(physx_PxJointLimitCone_Pod const* self__pod) { + physx::PxJointLimitCone const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxJointLimitCone_delete(physx_PxJointLimitCone_Pod* self__pod) { + physx::PxJointLimitCone* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxJointLimitPyramid_Pod PxJointLimitPyramid_new(float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, float contactDist_deprecated) { + PxJointLimitPyramid return_val(yLimitAngleMin, yLimitAngleMax, zLimitAngleMin, zLimitAngleMax, contactDist_deprecated); + physx_PxJointLimitPyramid_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxJointLimitPyramid_Pod PxJointLimitPyramid_new_1(float yLimitAngleMin, float yLimitAngleMax, float zLimitAngleMin, float zLimitAngleMax, physx_PxSpring_Pod const* spring_pod) { + physx::PxSpring const& spring = reinterpret_cast(*spring_pod); + PxJointLimitPyramid return_val(yLimitAngleMin, yLimitAngleMax, zLimitAngleMin, zLimitAngleMax, spring); + physx_PxJointLimitPyramid_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxJointLimitPyramid_isValid(physx_PxJointLimitPyramid_Pod const* self__pod) { + physx::PxJointLimitPyramid const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxJointLimitPyramid_delete(physx_PxJointLimitPyramid_Pod* self__pod) { + physx::PxJointLimitPyramid* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxPrismaticJoint_Pod* phys_PxPrismaticJointCreate(physx_PxPhysics_Pod* physics_pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxTransform_Pod const* localFrame0_pod, physx_PxRigidActor_Pod* actor1_pod, physx_PxTransform_Pod const* localFrame1_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxTransform const& localFrame0 = reinterpret_cast(*localFrame0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + physx::PxTransform const& localFrame1 = reinterpret_cast(*localFrame1_pod); + physx::PxPrismaticJoint* return_val = PxPrismaticJointCreate(physics, actor0, localFrame0, actor1, localFrame1); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + float PxPrismaticJoint_getPosition(physx_PxPrismaticJoint_Pod const* self__pod) { + physx::PxPrismaticJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getPosition(); + return return_val; + } + + float PxPrismaticJoint_getVelocity(physx_PxPrismaticJoint_Pod const* self__pod) { + physx::PxPrismaticJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getVelocity(); + return return_val; + } + + void PxPrismaticJoint_setLimit_mut(physx_PxPrismaticJoint_Pod* self__pod, physx_PxJointLinearLimitPair_Pod const* anon_param0_pod) { + physx::PxPrismaticJoint* self_ = reinterpret_cast(self__pod); + physx::PxJointLinearLimitPair const& anon_param0 = reinterpret_cast(*anon_param0_pod); + self_->setLimit(anon_param0); + } + + physx_PxJointLinearLimitPair_Pod PxPrismaticJoint_getLimit(physx_PxPrismaticJoint_Pod const* self__pod) { + physx::PxPrismaticJoint const* self_ = reinterpret_cast(self__pod); + physx::PxJointLinearLimitPair return_val = self_->getLimit(); + physx_PxJointLinearLimitPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxPrismaticJoint_setPrismaticJointFlags_mut(physx_PxPrismaticJoint_Pod* self__pod, uint16_t flags_pod) { + physx::PxPrismaticJoint* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxPrismaticJointFlags(flags_pod); + self_->setPrismaticJointFlags(flags); + } + + void PxPrismaticJoint_setPrismaticJointFlag_mut(physx_PxPrismaticJoint_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxPrismaticJoint* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setPrismaticJointFlag(flag, value); + } + + uint16_t PxPrismaticJoint_getPrismaticJointFlags(physx_PxPrismaticJoint_Pod const* self__pod) { + physx::PxPrismaticJoint const* self_ = reinterpret_cast(self__pod); + physx::PxPrismaticJointFlags return_val = self_->getPrismaticJointFlags(); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + char const* PxPrismaticJoint_getConcreteTypeName(physx_PxPrismaticJoint_Pod const* self__pod) { + physx::PxPrismaticJoint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxRevoluteJoint_Pod* phys_PxRevoluteJointCreate(physx_PxPhysics_Pod* physics_pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxTransform_Pod const* localFrame0_pod, physx_PxRigidActor_Pod* actor1_pod, physx_PxTransform_Pod const* localFrame1_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxTransform const& localFrame0 = reinterpret_cast(*localFrame0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + physx::PxTransform const& localFrame1 = reinterpret_cast(*localFrame1_pod); + physx::PxRevoluteJoint* return_val = PxRevoluteJointCreate(physics, actor0, localFrame0, actor1, localFrame1); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + float PxRevoluteJoint_getAngle(physx_PxRevoluteJoint_Pod const* self__pod) { + physx::PxRevoluteJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getAngle(); + return return_val; + } + + float PxRevoluteJoint_getVelocity(physx_PxRevoluteJoint_Pod const* self__pod) { + physx::PxRevoluteJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getVelocity(); + return return_val; + } + + void PxRevoluteJoint_setLimit_mut(physx_PxRevoluteJoint_Pod* self__pod, physx_PxJointAngularLimitPair_Pod const* limits_pod) { + physx::PxRevoluteJoint* self_ = reinterpret_cast(self__pod); + physx::PxJointAngularLimitPair const& limits = reinterpret_cast(*limits_pod); + self_->setLimit(limits); + } + + physx_PxJointAngularLimitPair_Pod PxRevoluteJoint_getLimit(physx_PxRevoluteJoint_Pod const* self__pod) { + physx::PxRevoluteJoint const* self_ = reinterpret_cast(self__pod); + physx::PxJointAngularLimitPair return_val = self_->getLimit(); + physx_PxJointAngularLimitPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRevoluteJoint_setDriveVelocity_mut(physx_PxRevoluteJoint_Pod* self__pod, float velocity, bool autowake) { + physx::PxRevoluteJoint* self_ = reinterpret_cast(self__pod); + self_->setDriveVelocity(velocity, autowake); + } + + float PxRevoluteJoint_getDriveVelocity(physx_PxRevoluteJoint_Pod const* self__pod) { + physx::PxRevoluteJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDriveVelocity(); + return return_val; + } + + void PxRevoluteJoint_setDriveForceLimit_mut(physx_PxRevoluteJoint_Pod* self__pod, float limit) { + physx::PxRevoluteJoint* self_ = reinterpret_cast(self__pod); + self_->setDriveForceLimit(limit); + } + + float PxRevoluteJoint_getDriveForceLimit(physx_PxRevoluteJoint_Pod const* self__pod) { + physx::PxRevoluteJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDriveForceLimit(); + return return_val; + } + + void PxRevoluteJoint_setDriveGearRatio_mut(physx_PxRevoluteJoint_Pod* self__pod, float ratio) { + physx::PxRevoluteJoint* self_ = reinterpret_cast(self__pod); + self_->setDriveGearRatio(ratio); + } + + float PxRevoluteJoint_getDriveGearRatio(physx_PxRevoluteJoint_Pod const* self__pod) { + physx::PxRevoluteJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getDriveGearRatio(); + return return_val; + } + + void PxRevoluteJoint_setRevoluteJointFlags_mut(physx_PxRevoluteJoint_Pod* self__pod, uint16_t flags_pod) { + physx::PxRevoluteJoint* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxRevoluteJointFlags(flags_pod); + self_->setRevoluteJointFlags(flags); + } + + void PxRevoluteJoint_setRevoluteJointFlag_mut(physx_PxRevoluteJoint_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxRevoluteJoint* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setRevoluteJointFlag(flag, value); + } + + uint16_t PxRevoluteJoint_getRevoluteJointFlags(physx_PxRevoluteJoint_Pod const* self__pod) { + physx::PxRevoluteJoint const* self_ = reinterpret_cast(self__pod); + physx::PxRevoluteJointFlags return_val = self_->getRevoluteJointFlags(); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + char const* PxRevoluteJoint_getConcreteTypeName(physx_PxRevoluteJoint_Pod const* self__pod) { + physx::PxRevoluteJoint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxSphericalJoint_Pod* phys_PxSphericalJointCreate(physx_PxPhysics_Pod* physics_pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxTransform_Pod const* localFrame0_pod, physx_PxRigidActor_Pod* actor1_pod, physx_PxTransform_Pod const* localFrame1_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxTransform const& localFrame0 = reinterpret_cast(*localFrame0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + physx::PxTransform const& localFrame1 = reinterpret_cast(*localFrame1_pod); + physx::PxSphericalJoint* return_val = PxSphericalJointCreate(physics, actor0, localFrame0, actor1, localFrame1); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxJointLimitCone_Pod PxSphericalJoint_getLimitCone(physx_PxSphericalJoint_Pod const* self__pod) { + physx::PxSphericalJoint const* self_ = reinterpret_cast(self__pod); + physx::PxJointLimitCone return_val = self_->getLimitCone(); + physx_PxJointLimitCone_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxSphericalJoint_setLimitCone_mut(physx_PxSphericalJoint_Pod* self__pod, physx_PxJointLimitCone_Pod const* limit_pod) { + physx::PxSphericalJoint* self_ = reinterpret_cast(self__pod); + physx::PxJointLimitCone const& limit = reinterpret_cast(*limit_pod); + self_->setLimitCone(limit); + } + + float PxSphericalJoint_getSwingYAngle(physx_PxSphericalJoint_Pod const* self__pod) { + physx::PxSphericalJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getSwingYAngle(); + return return_val; + } + + float PxSphericalJoint_getSwingZAngle(physx_PxSphericalJoint_Pod const* self__pod) { + physx::PxSphericalJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getSwingZAngle(); + return return_val; + } + + void PxSphericalJoint_setSphericalJointFlags_mut(physx_PxSphericalJoint_Pod* self__pod, uint16_t flags_pod) { + physx::PxSphericalJoint* self_ = reinterpret_cast(self__pod); + auto flags = physx::PxSphericalJointFlags(flags_pod); + self_->setSphericalJointFlags(flags); + } + + void PxSphericalJoint_setSphericalJointFlag_mut(physx_PxSphericalJoint_Pod* self__pod, int32_t flag_pod, bool value) { + physx::PxSphericalJoint* self_ = reinterpret_cast(self__pod); + auto flag = static_cast(flag_pod); + self_->setSphericalJointFlag(flag, value); + } + + uint16_t PxSphericalJoint_getSphericalJointFlags(physx_PxSphericalJoint_Pod const* self__pod) { + physx::PxSphericalJoint const* self_ = reinterpret_cast(self__pod); + physx::PxSphericalJointFlags return_val = self_->getSphericalJointFlags(); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + char const* PxSphericalJoint_getConcreteTypeName(physx_PxSphericalJoint_Pod const* self__pod) { + physx::PxSphericalJoint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxD6Joint_Pod* phys_PxD6JointCreate(physx_PxPhysics_Pod* physics_pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxTransform_Pod const* localFrame0_pod, physx_PxRigidActor_Pod* actor1_pod, physx_PxTransform_Pod const* localFrame1_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxTransform const& localFrame0 = reinterpret_cast(*localFrame0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + physx::PxTransform const& localFrame1 = reinterpret_cast(*localFrame1_pod); + physx::PxD6Joint* return_val = PxD6JointCreate(physics, actor0, localFrame0, actor1, localFrame1); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxD6JointDrive_Pod PxD6JointDrive_new() { + PxD6JointDrive return_val; + physx_PxD6JointDrive_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxD6JointDrive_Pod PxD6JointDrive_new_1(float driveStiffness, float driveDamping, float driveForceLimit, bool isAcceleration) { + PxD6JointDrive return_val(driveStiffness, driveDamping, driveForceLimit, isAcceleration); + physx_PxD6JointDrive_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxD6JointDrive_isValid(physx_PxD6JointDrive_Pod const* self__pod) { + physx::PxD6JointDrive const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + void PxD6Joint_setMotion_mut(physx_PxD6Joint_Pod* self__pod, int32_t axis_pod, int32_t type_pod) { + physx::PxD6Joint* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + auto type = static_cast(type_pod); + self_->setMotion(axis, type); + } + + int32_t PxD6Joint_getMotion(physx_PxD6Joint_Pod const* self__pod, int32_t axis_pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + physx::PxD6Motion::Enum return_val = self_->getMotion(axis); + int32_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + float PxD6Joint_getTwistAngle(physx_PxD6Joint_Pod const* self__pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getTwistAngle(); + return return_val; + } + + float PxD6Joint_getSwingYAngle(physx_PxD6Joint_Pod const* self__pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getSwingYAngle(); + return return_val; + } + + float PxD6Joint_getSwingZAngle(physx_PxD6Joint_Pod const* self__pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getSwingZAngle(); + return return_val; + } + + void PxD6Joint_setDistanceLimit_mut(physx_PxD6Joint_Pod* self__pod, physx_PxJointLinearLimit_Pod const* limit_pod) { + physx::PxD6Joint* self_ = reinterpret_cast(self__pod); + physx::PxJointLinearLimit const& limit = reinterpret_cast(*limit_pod); + self_->setDistanceLimit(limit); + } + + physx_PxJointLinearLimit_Pod PxD6Joint_getDistanceLimit(physx_PxD6Joint_Pod const* self__pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + physx::PxJointLinearLimit return_val = self_->getDistanceLimit(); + physx_PxJointLinearLimit_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxD6Joint_setLinearLimit_mut(physx_PxD6Joint_Pod* self__pod, int32_t axis_pod, physx_PxJointLinearLimitPair_Pod const* limit_pod) { + physx::PxD6Joint* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + physx::PxJointLinearLimitPair const& limit = reinterpret_cast(*limit_pod); + self_->setLinearLimit(axis, limit); + } + + physx_PxJointLinearLimitPair_Pod PxD6Joint_getLinearLimit(physx_PxD6Joint_Pod const* self__pod, int32_t axis_pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + auto axis = static_cast(axis_pod); + physx::PxJointLinearLimitPair return_val = self_->getLinearLimit(axis); + physx_PxJointLinearLimitPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxD6Joint_setTwistLimit_mut(physx_PxD6Joint_Pod* self__pod, physx_PxJointAngularLimitPair_Pod const* limit_pod) { + physx::PxD6Joint* self_ = reinterpret_cast(self__pod); + physx::PxJointAngularLimitPair const& limit = reinterpret_cast(*limit_pod); + self_->setTwistLimit(limit); + } + + physx_PxJointAngularLimitPair_Pod PxD6Joint_getTwistLimit(physx_PxD6Joint_Pod const* self__pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + physx::PxJointAngularLimitPair return_val = self_->getTwistLimit(); + physx_PxJointAngularLimitPair_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxD6Joint_setSwingLimit_mut(physx_PxD6Joint_Pod* self__pod, physx_PxJointLimitCone_Pod const* limit_pod) { + physx::PxD6Joint* self_ = reinterpret_cast(self__pod); + physx::PxJointLimitCone const& limit = reinterpret_cast(*limit_pod); + self_->setSwingLimit(limit); + } + + physx_PxJointLimitCone_Pod PxD6Joint_getSwingLimit(physx_PxD6Joint_Pod const* self__pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + physx::PxJointLimitCone return_val = self_->getSwingLimit(); + physx_PxJointLimitCone_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxD6Joint_setPyramidSwingLimit_mut(physx_PxD6Joint_Pod* self__pod, physx_PxJointLimitPyramid_Pod const* limit_pod) { + physx::PxD6Joint* self_ = reinterpret_cast(self__pod); + physx::PxJointLimitPyramid const& limit = reinterpret_cast(*limit_pod); + self_->setPyramidSwingLimit(limit); + } + + physx_PxJointLimitPyramid_Pod PxD6Joint_getPyramidSwingLimit(physx_PxD6Joint_Pod const* self__pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + physx::PxJointLimitPyramid return_val = self_->getPyramidSwingLimit(); + physx_PxJointLimitPyramid_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxD6Joint_setDrive_mut(physx_PxD6Joint_Pod* self__pod, int32_t index_pod, physx_PxD6JointDrive_Pod const* drive_pod) { + physx::PxD6Joint* self_ = reinterpret_cast(self__pod); + auto index = static_cast(index_pod); + physx::PxD6JointDrive const& drive = reinterpret_cast(*drive_pod); + self_->setDrive(index, drive); + } + + physx_PxD6JointDrive_Pod PxD6Joint_getDrive(physx_PxD6Joint_Pod const* self__pod, int32_t index_pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + auto index = static_cast(index_pod); + physx::PxD6JointDrive return_val = self_->getDrive(index); + physx_PxD6JointDrive_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxD6Joint_setDrivePosition_mut(physx_PxD6Joint_Pod* self__pod, physx_PxTransform_Pod const* pose_pod, bool autowake) { + physx::PxD6Joint* self_ = reinterpret_cast(self__pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + self_->setDrivePosition(pose, autowake); + } + + physx_PxTransform_Pod PxD6Joint_getDrivePosition(physx_PxD6Joint_Pod const* self__pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + physx::PxTransform return_val = self_->getDrivePosition(); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxD6Joint_setDriveVelocity_mut(physx_PxD6Joint_Pod* self__pod, physx_PxVec3_Pod const* linear_pod, physx_PxVec3_Pod const* angular_pod, bool autowake) { + physx::PxD6Joint* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& linear = reinterpret_cast(*linear_pod); + physx::PxVec3 const& angular = reinterpret_cast(*angular_pod); + self_->setDriveVelocity(linear, angular, autowake); + } + + void PxD6Joint_getDriveVelocity(physx_PxD6Joint_Pod const* self__pod, physx_PxVec3_Pod* linear_pod, physx_PxVec3_Pod* angular_pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + physx::PxVec3& linear = reinterpret_cast(*linear_pod); + physx::PxVec3& angular = reinterpret_cast(*angular_pod); + self_->getDriveVelocity(linear, angular); + } + + void PxD6Joint_setProjectionLinearTolerance_mut(physx_PxD6Joint_Pod* self__pod, float tolerance) { + physx::PxD6Joint* self_ = reinterpret_cast(self__pod); + self_->setProjectionLinearTolerance(tolerance); + } + + float PxD6Joint_getProjectionLinearTolerance(physx_PxD6Joint_Pod const* self__pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getProjectionLinearTolerance(); + return return_val; + } + + void PxD6Joint_setProjectionAngularTolerance_mut(physx_PxD6Joint_Pod* self__pod, float tolerance) { + physx::PxD6Joint* self_ = reinterpret_cast(self__pod); + self_->setProjectionAngularTolerance(tolerance); + } + + float PxD6Joint_getProjectionAngularTolerance(physx_PxD6Joint_Pod const* self__pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getProjectionAngularTolerance(); + return return_val; + } + + char const* PxD6Joint_getConcreteTypeName(physx_PxD6Joint_Pod const* self__pod) { + physx::PxD6Joint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxGearJoint_Pod* phys_PxGearJointCreate(physx_PxPhysics_Pod* physics_pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxTransform_Pod const* localFrame0_pod, physx_PxRigidActor_Pod* actor1_pod, physx_PxTransform_Pod const* localFrame1_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxTransform const& localFrame0 = reinterpret_cast(*localFrame0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + physx::PxTransform const& localFrame1 = reinterpret_cast(*localFrame1_pod); + physx::PxGearJoint* return_val = PxGearJointCreate(physics, actor0, localFrame0, actor1, localFrame1); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool PxGearJoint_setHinges_mut(physx_PxGearJoint_Pod* self__pod, physx_PxBase_Pod const* hinge0_pod, physx_PxBase_Pod const* hinge1_pod) { + physx::PxGearJoint* self_ = reinterpret_cast(self__pod); + physx::PxBase const* hinge0 = reinterpret_cast(hinge0_pod); + physx::PxBase const* hinge1 = reinterpret_cast(hinge1_pod); + bool return_val = self_->setHinges(hinge0, hinge1); + return return_val; + } + + void PxGearJoint_setGearRatio_mut(physx_PxGearJoint_Pod* self__pod, float ratio) { + physx::PxGearJoint* self_ = reinterpret_cast(self__pod); + self_->setGearRatio(ratio); + } + + float PxGearJoint_getGearRatio(physx_PxGearJoint_Pod const* self__pod) { + physx::PxGearJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getGearRatio(); + return return_val; + } + + char const* PxGearJoint_getConcreteTypeName(physx_PxGearJoint_Pod const* self__pod) { + physx::PxGearJoint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxRackAndPinionJoint_Pod* phys_PxRackAndPinionJointCreate(physx_PxPhysics_Pod* physics_pod, physx_PxRigidActor_Pod* actor0_pod, physx_PxTransform_Pod const* localFrame0_pod, physx_PxRigidActor_Pod* actor1_pod, physx_PxTransform_Pod const* localFrame1_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxRigidActor* actor0 = reinterpret_cast(actor0_pod); + physx::PxTransform const& localFrame0 = reinterpret_cast(*localFrame0_pod); + physx::PxRigidActor* actor1 = reinterpret_cast(actor1_pod); + physx::PxTransform const& localFrame1 = reinterpret_cast(*localFrame1_pod); + physx::PxRackAndPinionJoint* return_val = PxRackAndPinionJointCreate(physics, actor0, localFrame0, actor1, localFrame1); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool PxRackAndPinionJoint_setJoints_mut(physx_PxRackAndPinionJoint_Pod* self__pod, physx_PxBase_Pod const* hinge_pod, physx_PxBase_Pod const* prismatic_pod) { + physx::PxRackAndPinionJoint* self_ = reinterpret_cast(self__pod); + physx::PxBase const* hinge = reinterpret_cast(hinge_pod); + physx::PxBase const* prismatic = reinterpret_cast(prismatic_pod); + bool return_val = self_->setJoints(hinge, prismatic); + return return_val; + } + + void PxRackAndPinionJoint_setRatio_mut(physx_PxRackAndPinionJoint_Pod* self__pod, float ratio) { + physx::PxRackAndPinionJoint* self_ = reinterpret_cast(self__pod); + self_->setRatio(ratio); + } + + float PxRackAndPinionJoint_getRatio(physx_PxRackAndPinionJoint_Pod const* self__pod) { + physx::PxRackAndPinionJoint const* self_ = reinterpret_cast(self__pod); + float return_val = self_->getRatio(); + return return_val; + } + + bool PxRackAndPinionJoint_setData_mut(physx_PxRackAndPinionJoint_Pod* self__pod, uint32_t nbRackTeeth, uint32_t nbPinionTeeth, float rackLength) { + physx::PxRackAndPinionJoint* self_ = reinterpret_cast(self__pod); + bool return_val = self_->setData(nbRackTeeth, nbPinionTeeth, rackLength); + return return_val; + } + + char const* PxRackAndPinionJoint_getConcreteTypeName(physx_PxRackAndPinionJoint_Pod const* self__pod) { + physx::PxRackAndPinionJoint const* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getConcreteTypeName(); + return return_val; + } + + physx_PxGroupsMask_Pod* PxGroupsMask_new_alloc() { + auto return_val = new physx::PxGroupsMask(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxGroupsMask_delete(physx_PxGroupsMask_Pod* self__pod) { + physx::PxGroupsMask* self_ = reinterpret_cast(self__pod); + delete self_; + } + + uint16_t phys_PxDefaultSimulationFilterShader(uint32_t attributes0, physx_PxFilterData_Pod filterData0_pod, uint32_t attributes1, physx_PxFilterData_Pod filterData1_pod, uint16_t* pairFlags_pod, void const* constantBlock, uint32_t constantBlockSize) { + physx::PxFilterData filterData0; + memcpy(&filterData0, &filterData0_pod, sizeof(filterData0)); + physx::PxFilterData filterData1; + memcpy(&filterData1, &filterData1_pod, sizeof(filterData1)); + physx::PxPairFlags& pairFlags = reinterpret_cast(*pairFlags_pod); + physx::PxFilterFlags return_val = PxDefaultSimulationFilterShader(attributes0, filterData0, attributes1, filterData1, pairFlags, constantBlock, constantBlockSize); + uint16_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool phys_PxGetGroupCollisionFlag(uint16_t group1, uint16_t group2) { + bool return_val = PxGetGroupCollisionFlag(group1, group2); + return return_val; + } + + void phys_PxSetGroupCollisionFlag(uint16_t group1, uint16_t group2, bool enable) { + PxSetGroupCollisionFlag(group1, group2, enable); + } + + uint16_t phys_PxGetGroup(physx_PxActor_Pod const* actor_pod) { + physx::PxActor const& actor = reinterpret_cast(*actor_pod); + uint16_t return_val = PxGetGroup(actor); + return return_val; + } + + void phys_PxSetGroup(physx_PxActor_Pod* actor_pod, uint16_t collisionGroup) { + physx::PxActor& actor = reinterpret_cast(*actor_pod); + PxSetGroup(actor, collisionGroup); + } + + void phys_PxGetFilterOps(int32_t* op0_pod, int32_t* op1_pod, int32_t* op2_pod) { + physx::PxFilterOp::Enum& op0 = reinterpret_cast(*op0_pod); + physx::PxFilterOp::Enum& op1 = reinterpret_cast(*op1_pod); + physx::PxFilterOp::Enum& op2 = reinterpret_cast(*op2_pod); + PxGetFilterOps(op0, op1, op2); + } + + void phys_PxSetFilterOps(int32_t const* op0_pod, int32_t const* op1_pod, int32_t const* op2_pod) { + physx::PxFilterOp::Enum const& op0 = reinterpret_cast(*op0_pod); + physx::PxFilterOp::Enum const& op1 = reinterpret_cast(*op1_pod); + physx::PxFilterOp::Enum const& op2 = reinterpret_cast(*op2_pod); + PxSetFilterOps(op0, op1, op2); + } + + bool phys_PxGetFilterBool() { + bool return_val = PxGetFilterBool(); + return return_val; + } + + void phys_PxSetFilterBool(bool enable) { + PxSetFilterBool(enable); + } + + void phys_PxGetFilterConstants(physx_PxGroupsMask_Pod* c0_pod, physx_PxGroupsMask_Pod* c1_pod) { + physx::PxGroupsMask& c0 = reinterpret_cast(*c0_pod); + physx::PxGroupsMask& c1 = reinterpret_cast(*c1_pod); + PxGetFilterConstants(c0, c1); + } + + void phys_PxSetFilterConstants(physx_PxGroupsMask_Pod const* c0_pod, physx_PxGroupsMask_Pod const* c1_pod) { + physx::PxGroupsMask const& c0 = reinterpret_cast(*c0_pod); + physx::PxGroupsMask const& c1 = reinterpret_cast(*c1_pod); + PxSetFilterConstants(c0, c1); + } + + physx_PxGroupsMask_Pod phys_PxGetGroupsMask(physx_PxActor_Pod const* actor_pod) { + physx::PxActor const& actor = reinterpret_cast(*actor_pod); + physx::PxGroupsMask return_val = PxGetGroupsMask(actor); + physx_PxGroupsMask_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void phys_PxSetGroupsMask(physx_PxActor_Pod* actor_pod, physx_PxGroupsMask_Pod const* mask_pod) { + physx::PxActor& actor = reinterpret_cast(*actor_pod); + physx::PxGroupsMask const& mask = reinterpret_cast(*mask_pod); + PxSetGroupsMask(actor, mask); + } + + physx_PxDefaultErrorCallback_Pod* PxDefaultErrorCallback_new_alloc() { + auto return_val = new physx::PxDefaultErrorCallback(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxDefaultErrorCallback_delete(physx_PxDefaultErrorCallback_Pod* self__pod) { + physx::PxDefaultErrorCallback* self_ = reinterpret_cast(self__pod); + delete self_; + } + + void PxDefaultErrorCallback_reportError_mut(physx_PxDefaultErrorCallback_Pod* self__pod, int32_t code_pod, char const* message, char const* file, int32_t line) { + physx::PxDefaultErrorCallback* self_ = reinterpret_cast(self__pod); + auto code = static_cast(code_pod); + self_->reportError(code, message, file, line); + } + + physx_PxShape_Pod* PxRigidActorExt_createExclusiveShape(physx_PxRigidActor_Pod* actor_pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxMaterial_Pod* const* materials_pod, uint16_t materialCount, uint8_t shapeFlags_pod) { + physx::PxRigidActor& actor = reinterpret_cast(*actor_pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxMaterial* const* materials = reinterpret_cast(materials_pod); + auto shapeFlags = physx::PxShapeFlags(shapeFlags_pod); + physx::PxShape* return_val = PxRigidActorExt::createExclusiveShape(actor, geometry, materials, materialCount, shapeFlags); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxShape_Pod* PxRigidActorExt_createExclusiveShape_1(physx_PxRigidActor_Pod* actor_pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxMaterial_Pod const* material_pod, uint8_t shapeFlags_pod) { + physx::PxRigidActor& actor = reinterpret_cast(*actor_pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxMaterial const& material = reinterpret_cast(*material_pod); + auto shapeFlags = physx::PxShapeFlags(shapeFlags_pod); + physx::PxShape* return_val = PxRigidActorExt::createExclusiveShape(actor, geometry, material, shapeFlags); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxBounds3_Pod* PxRigidActorExt_getRigidActorShapeLocalBoundsList(physx_PxRigidActor_Pod const* actor_pod, uint32_t* numBounds_pod) { + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + uint32_t& numBounds = *numBounds_pod; + physx::PxBounds3* return_val = PxRigidActorExt::getRigidActorShapeLocalBoundsList(actor, numBounds); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxBVH_Pod* PxRigidActorExt_createBVHFromActor(physx_PxPhysics_Pod* physics_pod, physx_PxRigidActor_Pod const* actor_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxBVH* return_val = PxRigidActorExt::createBVHFromActor(physics, actor); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxMassProperties_Pod PxMassProperties_new() { + PxMassProperties return_val; + physx_PxMassProperties_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMassProperties_Pod PxMassProperties_new_1(float m, physx_PxMat33_Pod const* inertiaT_pod, physx_PxVec3_Pod const* com_pod) { + physx::PxMat33 const& inertiaT = reinterpret_cast(*inertiaT_pod); + physx::PxVec3 const& com = reinterpret_cast(*com_pod); + PxMassProperties return_val(m, inertiaT, com); + physx_PxMassProperties_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMassProperties_Pod PxMassProperties_new_2(physx_PxGeometry_Pod const* geometry_pod) { + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + PxMassProperties return_val(geometry); + physx_PxMassProperties_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxMassProperties_translate_mut(physx_PxMassProperties_Pod* self__pod, physx_PxVec3_Pod const* t_pod) { + physx::PxMassProperties* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& t = reinterpret_cast(*t_pod); + self_->translate(t); + } + + physx_PxVec3_Pod PxMassProperties_getMassSpaceInertia(physx_PxMat33_Pod const* inertia_pod, physx_PxQuat_Pod* massFrame_pod) { + physx::PxMat33 const& inertia = reinterpret_cast(*inertia_pod); + physx::PxQuat& massFrame = reinterpret_cast(*massFrame_pod); + physx::PxVec3 return_val = PxMassProperties::getMassSpaceInertia(inertia, massFrame); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMassProperties_translateInertia(physx_PxMat33_Pod const* inertia_pod, float mass, physx_PxVec3_Pod const* t_pod) { + physx::PxMat33 const& inertia = reinterpret_cast(*inertia_pod); + physx::PxVec3 const& t = reinterpret_cast(*t_pod); + physx::PxMat33 return_val = PxMassProperties::translateInertia(inertia, mass, t); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMassProperties_rotateInertia(physx_PxMat33_Pod const* inertia_pod, physx_PxQuat_Pod const* q_pod) { + physx::PxMat33 const& inertia = reinterpret_cast(*inertia_pod); + physx::PxQuat const& q = reinterpret_cast(*q_pod); + physx::PxMat33 return_val = PxMassProperties::rotateInertia(inertia, q); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMat33_Pod PxMassProperties_scaleInertia(physx_PxMat33_Pod const* inertia_pod, physx_PxQuat_Pod const* scaleRotation_pod, physx_PxVec3_Pod const* scale_pod) { + physx::PxMat33 const& inertia = reinterpret_cast(*inertia_pod); + physx::PxQuat const& scaleRotation = reinterpret_cast(*scaleRotation_pod); + physx::PxVec3 const& scale = reinterpret_cast(*scale_pod); + physx::PxMat33 return_val = PxMassProperties::scaleInertia(inertia, scaleRotation, scale); + physx_PxMat33_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMassProperties_Pod PxMassProperties_sum(physx_PxMassProperties_Pod const* props_pod, physx_PxTransform_Pod const* transforms_pod, uint32_t count) { + physx::PxMassProperties const* props = reinterpret_cast(props_pod); + physx::PxTransform const* transforms = reinterpret_cast(transforms_pod); + physx::PxMassProperties return_val = PxMassProperties::sum(props, transforms, count); + physx_PxMassProperties_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxRigidBodyExt_updateMassAndInertia(physx_PxRigidBody_Pod* body_pod, float const* shapeDensities, uint32_t shapeDensityCount, physx_PxVec3_Pod const* massLocalPose_pod, bool includeNonSimShapes) { + physx::PxRigidBody& body = reinterpret_cast(*body_pod); + physx::PxVec3 const* massLocalPose = reinterpret_cast(massLocalPose_pod); + bool return_val = PxRigidBodyExt::updateMassAndInertia(body, shapeDensities, shapeDensityCount, massLocalPose, includeNonSimShapes); + return return_val; + } + + bool PxRigidBodyExt_updateMassAndInertia_1(physx_PxRigidBody_Pod* body_pod, float density, physx_PxVec3_Pod const* massLocalPose_pod, bool includeNonSimShapes) { + physx::PxRigidBody& body = reinterpret_cast(*body_pod); + physx::PxVec3 const* massLocalPose = reinterpret_cast(massLocalPose_pod); + bool return_val = PxRigidBodyExt::updateMassAndInertia(body, density, massLocalPose, includeNonSimShapes); + return return_val; + } + + bool PxRigidBodyExt_setMassAndUpdateInertia(physx_PxRigidBody_Pod* body_pod, float const* shapeMasses, uint32_t shapeMassCount, physx_PxVec3_Pod const* massLocalPose_pod, bool includeNonSimShapes) { + physx::PxRigidBody& body = reinterpret_cast(*body_pod); + physx::PxVec3 const* massLocalPose = reinterpret_cast(massLocalPose_pod); + bool return_val = PxRigidBodyExt::setMassAndUpdateInertia(body, shapeMasses, shapeMassCount, massLocalPose, includeNonSimShapes); + return return_val; + } + + bool PxRigidBodyExt_setMassAndUpdateInertia_1(physx_PxRigidBody_Pod* body_pod, float mass, physx_PxVec3_Pod const* massLocalPose_pod, bool includeNonSimShapes) { + physx::PxRigidBody& body = reinterpret_cast(*body_pod); + physx::PxVec3 const* massLocalPose = reinterpret_cast(massLocalPose_pod); + bool return_val = PxRigidBodyExt::setMassAndUpdateInertia(body, mass, massLocalPose, includeNonSimShapes); + return return_val; + } + + physx_PxMassProperties_Pod PxRigidBodyExt_computeMassPropertiesFromShapes(physx_PxShape_Pod const* const* shapes_pod, uint32_t shapeCount) { + physx::PxShape const* const* shapes = reinterpret_cast(shapes_pod); + physx::PxMassProperties return_val = PxRigidBodyExt::computeMassPropertiesFromShapes(shapes, shapeCount); + physx_PxMassProperties_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRigidBodyExt_addForceAtPos(physx_PxRigidBody_Pod* body_pod, physx_PxVec3_Pod const* force_pod, physx_PxVec3_Pod const* pos_pod, int32_t mode_pod, bool wakeup) { + physx::PxRigidBody& body = reinterpret_cast(*body_pod); + physx::PxVec3 const& force = reinterpret_cast(*force_pod); + physx::PxVec3 const& pos = reinterpret_cast(*pos_pod); + auto mode = static_cast(mode_pod); + PxRigidBodyExt::addForceAtPos(body, force, pos, mode, wakeup); + } + + void PxRigidBodyExt_addForceAtLocalPos(physx_PxRigidBody_Pod* body_pod, physx_PxVec3_Pod const* force_pod, physx_PxVec3_Pod const* pos_pod, int32_t mode_pod, bool wakeup) { + physx::PxRigidBody& body = reinterpret_cast(*body_pod); + physx::PxVec3 const& force = reinterpret_cast(*force_pod); + physx::PxVec3 const& pos = reinterpret_cast(*pos_pod); + auto mode = static_cast(mode_pod); + PxRigidBodyExt::addForceAtLocalPos(body, force, pos, mode, wakeup); + } + + void PxRigidBodyExt_addLocalForceAtPos(physx_PxRigidBody_Pod* body_pod, physx_PxVec3_Pod const* force_pod, physx_PxVec3_Pod const* pos_pod, int32_t mode_pod, bool wakeup) { + physx::PxRigidBody& body = reinterpret_cast(*body_pod); + physx::PxVec3 const& force = reinterpret_cast(*force_pod); + physx::PxVec3 const& pos = reinterpret_cast(*pos_pod); + auto mode = static_cast(mode_pod); + PxRigidBodyExt::addLocalForceAtPos(body, force, pos, mode, wakeup); + } + + void PxRigidBodyExt_addLocalForceAtLocalPos(physx_PxRigidBody_Pod* body_pod, physx_PxVec3_Pod const* force_pod, physx_PxVec3_Pod const* pos_pod, int32_t mode_pod, bool wakeup) { + physx::PxRigidBody& body = reinterpret_cast(*body_pod); + physx::PxVec3 const& force = reinterpret_cast(*force_pod); + physx::PxVec3 const& pos = reinterpret_cast(*pos_pod); + auto mode = static_cast(mode_pod); + PxRigidBodyExt::addLocalForceAtLocalPos(body, force, pos, mode, wakeup); + } + + physx_PxVec3_Pod PxRigidBodyExt_getVelocityAtPos(physx_PxRigidBody_Pod const* body_pod, physx_PxVec3_Pod const* pos_pod) { + physx::PxRigidBody const& body = reinterpret_cast(*body_pod); + physx::PxVec3 const& pos = reinterpret_cast(*pos_pod); + physx::PxVec3 return_val = PxRigidBodyExt::getVelocityAtPos(body, pos); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxRigidBodyExt_getLocalVelocityAtLocalPos(physx_PxRigidBody_Pod const* body_pod, physx_PxVec3_Pod const* pos_pod) { + physx::PxRigidBody const& body = reinterpret_cast(*body_pod); + physx::PxVec3 const& pos = reinterpret_cast(*pos_pod); + physx::PxVec3 return_val = PxRigidBodyExt::getLocalVelocityAtLocalPos(body, pos); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxVec3_Pod PxRigidBodyExt_getVelocityAtOffset(physx_PxRigidBody_Pod const* body_pod, physx_PxVec3_Pod const* pos_pod) { + physx::PxRigidBody const& body = reinterpret_cast(*body_pod); + physx::PxVec3 const& pos = reinterpret_cast(*pos_pod); + physx::PxVec3 return_val = PxRigidBodyExt::getVelocityAtOffset(body, pos); + physx_PxVec3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxRigidBodyExt_computeVelocityDeltaFromImpulse(physx_PxRigidBody_Pod const* body_pod, physx_PxVec3_Pod const* impulsiveForce_pod, physx_PxVec3_Pod const* impulsiveTorque_pod, physx_PxVec3_Pod* deltaLinearVelocity_pod, physx_PxVec3_Pod* deltaAngularVelocity_pod) { + physx::PxRigidBody const& body = reinterpret_cast(*body_pod); + physx::PxVec3 const& impulsiveForce = reinterpret_cast(*impulsiveForce_pod); + physx::PxVec3 const& impulsiveTorque = reinterpret_cast(*impulsiveTorque_pod); + physx::PxVec3& deltaLinearVelocity = reinterpret_cast(*deltaLinearVelocity_pod); + physx::PxVec3& deltaAngularVelocity = reinterpret_cast(*deltaAngularVelocity_pod); + PxRigidBodyExt::computeVelocityDeltaFromImpulse(body, impulsiveForce, impulsiveTorque, deltaLinearVelocity, deltaAngularVelocity); + } + + void PxRigidBodyExt_computeVelocityDeltaFromImpulse_1(physx_PxRigidBody_Pod const* body_pod, physx_PxTransform_Pod const* globalPose_pod, physx_PxVec3_Pod const* point_pod, physx_PxVec3_Pod const* impulse_pod, float invMassScale, float invInertiaScale, physx_PxVec3_Pod* deltaLinearVelocity_pod, physx_PxVec3_Pod* deltaAngularVelocity_pod) { + physx::PxRigidBody const& body = reinterpret_cast(*body_pod); + physx::PxTransform const& globalPose = reinterpret_cast(*globalPose_pod); + physx::PxVec3 const& point = reinterpret_cast(*point_pod); + physx::PxVec3 const& impulse = reinterpret_cast(*impulse_pod); + physx::PxVec3& deltaLinearVelocity = reinterpret_cast(*deltaLinearVelocity_pod); + physx::PxVec3& deltaAngularVelocity = reinterpret_cast(*deltaAngularVelocity_pod); + PxRigidBodyExt::computeVelocityDeltaFromImpulse(body, globalPose, point, impulse, invMassScale, invInertiaScale, deltaLinearVelocity, deltaAngularVelocity); + } + + void PxRigidBodyExt_computeLinearAngularImpulse(physx_PxRigidBody_Pod const* body_pod, physx_PxTransform_Pod const* globalPose_pod, physx_PxVec3_Pod const* point_pod, physx_PxVec3_Pod const* impulse_pod, float invMassScale, float invInertiaScale, physx_PxVec3_Pod* linearImpulse_pod, physx_PxVec3_Pod* angularImpulse_pod) { + physx::PxRigidBody const& body = reinterpret_cast(*body_pod); + physx::PxTransform const& globalPose = reinterpret_cast(*globalPose_pod); + physx::PxVec3 const& point = reinterpret_cast(*point_pod); + physx::PxVec3 const& impulse = reinterpret_cast(*impulse_pod); + physx::PxVec3& linearImpulse = reinterpret_cast(*linearImpulse_pod); + physx::PxVec3& angularImpulse = reinterpret_cast(*angularImpulse_pod); + PxRigidBodyExt::computeLinearAngularImpulse(body, globalPose, point, impulse, invMassScale, invInertiaScale, linearImpulse, angularImpulse); + } + + bool PxRigidBodyExt_linearSweepSingle(physx_PxRigidBody_Pod* body_pod, physx_PxScene_Pod* scene_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, uint16_t outputFlags_pod, physx_PxSweepHit_Pod* closestHit_pod, uint32_t* shapeIndex_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod, physx_PxQueryCache_Pod const* cache_pod, float inflation) { + physx::PxRigidBody& body = reinterpret_cast(*body_pod); + physx::PxScene& scene = reinterpret_cast(*scene_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + auto outputFlags = physx::PxHitFlags(outputFlags_pod); + physx::PxSweepHit& closestHit = reinterpret_cast(*closestHit_pod); + uint32_t& shapeIndex = *shapeIndex_pod; + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + bool return_val = PxRigidBodyExt::linearSweepSingle(body, scene, unitDir, distance, outputFlags, closestHit, shapeIndex, filterData, filterCall, cache, inflation); + return return_val; + } + + uint32_t PxRigidBodyExt_linearSweepMultiple(physx_PxRigidBody_Pod* body_pod, physx_PxScene_Pod* scene_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, uint16_t outputFlags_pod, physx_PxSweepHit_Pod* touchHitBuffer_pod, uint32_t* touchHitShapeIndices, uint32_t touchHitBufferSize, physx_PxSweepHit_Pod* block_pod, int32_t* blockingShapeIndex_pod, bool* overflow_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod, physx_PxQueryCache_Pod const* cache_pod, float inflation) { + physx::PxRigidBody& body = reinterpret_cast(*body_pod); + physx::PxScene& scene = reinterpret_cast(*scene_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + auto outputFlags = physx::PxHitFlags(outputFlags_pod); + physx::PxSweepHit* touchHitBuffer = reinterpret_cast(touchHitBuffer_pod); + physx::PxSweepHit& block = reinterpret_cast(*block_pod); + int32_t& blockingShapeIndex = *blockingShapeIndex_pod; + bool& overflow = *overflow_pod; + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + uint32_t return_val = PxRigidBodyExt::linearSweepMultiple(body, scene, unitDir, distance, outputFlags, touchHitBuffer, touchHitShapeIndices, touchHitBufferSize, block, blockingShapeIndex, overflow, filterData, filterCall, cache, inflation); + return return_val; + } + + physx_PxTransform_Pod PxShapeExt_getGlobalPose(physx_PxShape_Pod const* shape_pod, physx_PxRigidActor_Pod const* actor_pod) { + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxTransform return_val = PxShapeExt::getGlobalPose(shape, actor); + physx_PxTransform_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + uint32_t PxShapeExt_raycast(physx_PxShape_Pod const* shape_pod, physx_PxRigidActor_Pod const* actor_pod, physx_PxVec3_Pod const* rayOrigin_pod, physx_PxVec3_Pod const* rayDir_pod, float maxDist, uint16_t hitFlags_pod, uint32_t maxHits, physx_PxRaycastHit_Pod* rayHits_pod) { + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxVec3 const& rayOrigin = reinterpret_cast(*rayOrigin_pod); + physx::PxVec3 const& rayDir = reinterpret_cast(*rayDir_pod); + auto hitFlags = physx::PxHitFlags(hitFlags_pod); + physx::PxRaycastHit* rayHits = reinterpret_cast(rayHits_pod); + uint32_t return_val = PxShapeExt::raycast(shape, actor, rayOrigin, rayDir, maxDist, hitFlags, maxHits, rayHits); + return return_val; + } + + bool PxShapeExt_overlap(physx_PxShape_Pod const* shape_pod, physx_PxRigidActor_Pod const* actor_pod, physx_PxGeometry_Pod const* otherGeom_pod, physx_PxTransform_Pod const* otherGeomPose_pod) { + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxGeometry const& otherGeom = reinterpret_cast(*otherGeom_pod); + physx::PxTransform const& otherGeomPose = reinterpret_cast(*otherGeomPose_pod); + bool return_val = PxShapeExt::overlap(shape, actor, otherGeom, otherGeomPose); + return return_val; + } + + bool PxShapeExt_sweep(physx_PxShape_Pod const* shape_pod, physx_PxRigidActor_Pod const* actor_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, physx_PxGeometry_Pod const* otherGeom_pod, physx_PxTransform_Pod const* otherGeomPose_pod, physx_PxSweepHit_Pod* sweepHit_pod, uint16_t hitFlags_pod) { + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + physx::PxGeometry const& otherGeom = reinterpret_cast(*otherGeom_pod); + physx::PxTransform const& otherGeomPose = reinterpret_cast(*otherGeomPose_pod); + physx::PxSweepHit& sweepHit = reinterpret_cast(*sweepHit_pod); + auto hitFlags = physx::PxHitFlags(hitFlags_pod); + bool return_val = PxShapeExt::sweep(shape, actor, unitDir, distance, otherGeom, otherGeomPose, sweepHit, hitFlags); + return return_val; + } + + physx_PxBounds3_Pod PxShapeExt_getWorldBounds(physx_PxShape_Pod const* shape_pod, physx_PxRigidActor_Pod const* actor_pod, float inflation) { + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxBounds3 return_val = PxShapeExt::getWorldBounds(shape, actor, inflation); + physx_PxBounds3_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxMeshOverlapUtil_Pod* PxMeshOverlapUtil_new_alloc() { + auto return_val = new physx::PxMeshOverlapUtil(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxMeshOverlapUtil_delete(physx_PxMeshOverlapUtil_Pod* self__pod) { + physx::PxMeshOverlapUtil* self_ = reinterpret_cast(self__pod); + delete self_; + } + + uint32_t PxMeshOverlapUtil_findOverlap_mut(physx_PxMeshOverlapUtil_Pod* self__pod, physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* geomPose_pod, physx_PxTriangleMeshGeometry_Pod const* meshGeom_pod, physx_PxTransform_Pod const* meshPose_pod) { + physx::PxMeshOverlapUtil* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& geomPose = reinterpret_cast(*geomPose_pod); + physx::PxTriangleMeshGeometry const& meshGeom = reinterpret_cast(*meshGeom_pod); + physx::PxTransform const& meshPose = reinterpret_cast(*meshPose_pod); + uint32_t return_val = self_->findOverlap(geom, geomPose, meshGeom, meshPose); + return return_val; + } + + uint32_t PxMeshOverlapUtil_findOverlap_mut_1(physx_PxMeshOverlapUtil_Pod* self__pod, physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* geomPose_pod, physx_PxHeightFieldGeometry_Pod const* hfGeom_pod, physx_PxTransform_Pod const* hfPose_pod) { + physx::PxMeshOverlapUtil* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& geomPose = reinterpret_cast(*geomPose_pod); + physx::PxHeightFieldGeometry const& hfGeom = reinterpret_cast(*hfGeom_pod); + physx::PxTransform const& hfPose = reinterpret_cast(*hfPose_pod); + uint32_t return_val = self_->findOverlap(geom, geomPose, hfGeom, hfPose); + return return_val; + } + + uint32_t const* PxMeshOverlapUtil_getResults(physx_PxMeshOverlapUtil_Pod const* self__pod) { + physx::PxMeshOverlapUtil const* self_ = reinterpret_cast(self__pod); + uint32_t const* return_val = self_->getResults(); + return return_val; + } + + uint32_t PxMeshOverlapUtil_getNbResults(physx_PxMeshOverlapUtil_Pod const* self__pod) { + physx::PxMeshOverlapUtil const* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->getNbResults(); + return return_val; + } + + bool phys_PxComputeTriangleMeshPenetration(physx_PxVec3_Pod* direction_pod, float* depth_pod, physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* geomPose_pod, physx_PxTriangleMeshGeometry_Pod const* meshGeom_pod, physx_PxTransform_Pod const* meshPose_pod, uint32_t maxIter, uint32_t* usedIter) { + physx::PxVec3& direction = reinterpret_cast(*direction_pod); + float& depth = *depth_pod; + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& geomPose = reinterpret_cast(*geomPose_pod); + physx::PxTriangleMeshGeometry const& meshGeom = reinterpret_cast(*meshGeom_pod); + physx::PxTransform const& meshPose = reinterpret_cast(*meshPose_pod); + bool return_val = PxComputeTriangleMeshPenetration(direction, depth, geom, geomPose, meshGeom, meshPose, maxIter, usedIter); + return return_val; + } + + bool phys_PxComputeHeightFieldPenetration(physx_PxVec3_Pod* direction_pod, float* depth_pod, physx_PxGeometry_Pod const* geom_pod, physx_PxTransform_Pod const* geomPose_pod, physx_PxHeightFieldGeometry_Pod const* heightFieldGeom_pod, physx_PxTransform_Pod const* heightFieldPose_pod, uint32_t maxIter, uint32_t* usedIter) { + physx::PxVec3& direction = reinterpret_cast(*direction_pod); + float& depth = *depth_pod; + physx::PxGeometry const& geom = reinterpret_cast(*geom_pod); + physx::PxTransform const& geomPose = reinterpret_cast(*geomPose_pod); + physx::PxHeightFieldGeometry const& heightFieldGeom = reinterpret_cast(*heightFieldGeom_pod); + physx::PxTransform const& heightFieldPose = reinterpret_cast(*heightFieldPose_pod); + bool return_val = PxComputeHeightFieldPenetration(direction, depth, geom, geomPose, heightFieldGeom, heightFieldPose, maxIter, usedIter); + return return_val; + } + + physx_PxXmlMiscParameter_Pod PxXmlMiscParameter_new() { + PxXmlMiscParameter return_val; + physx_PxXmlMiscParameter_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + physx_PxXmlMiscParameter_Pod PxXmlMiscParameter_new_1(physx_PxVec3_Pod* inUpVector_pod, physx_PxTolerancesScale_Pod inScale_pod) { + physx::PxVec3& inUpVector = reinterpret_cast(*inUpVector_pod); + physx::PxTolerancesScale inScale; + memcpy(&inScale, &inScale_pod, sizeof(inScale)); + PxXmlMiscParameter return_val(inUpVector, inScale); + physx_PxXmlMiscParameter_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxSerialization_isSerializable(physx_PxCollection_Pod* collection_pod, physx_PxSerializationRegistry_Pod* sr_pod, physx_PxCollection_Pod const* externalReferences_pod) { + physx::PxCollection& collection = reinterpret_cast(*collection_pod); + physx::PxSerializationRegistry& sr = reinterpret_cast(*sr_pod); + physx::PxCollection const* externalReferences = reinterpret_cast(externalReferences_pod); + bool return_val = PxSerialization::isSerializable(collection, sr, externalReferences); + return return_val; + } + + void PxSerialization_complete(physx_PxCollection_Pod* collection_pod, physx_PxSerializationRegistry_Pod* sr_pod, physx_PxCollection_Pod const* exceptFor_pod, bool followJoints) { + physx::PxCollection& collection = reinterpret_cast(*collection_pod); + physx::PxSerializationRegistry& sr = reinterpret_cast(*sr_pod); + physx::PxCollection const* exceptFor = reinterpret_cast(exceptFor_pod); + PxSerialization::complete(collection, sr, exceptFor, followJoints); + } + + void PxSerialization_createSerialObjectIds(physx_PxCollection_Pod* collection_pod, uint64_t base) { + physx::PxCollection& collection = reinterpret_cast(*collection_pod); + PxSerialization::createSerialObjectIds(collection, base); + } + + physx_PxCollection_Pod* PxSerialization_createCollectionFromXml(physx_PxInputData_Pod* inputData_pod, physx_PxCooking_Pod* cooking_pod, physx_PxSerializationRegistry_Pod* sr_pod, physx_PxCollection_Pod const* externalRefs_pod, physx_PxStringTable_Pod* stringTable_pod, physx_PxXmlMiscParameter_Pod* outArgs_pod) { + physx::PxInputData& inputData = reinterpret_cast(*inputData_pod); + physx::PxCooking& cooking = reinterpret_cast(*cooking_pod); + physx::PxSerializationRegistry& sr = reinterpret_cast(*sr_pod); + physx::PxCollection const* externalRefs = reinterpret_cast(externalRefs_pod); + physx::PxStringTable* stringTable = reinterpret_cast(stringTable_pod); + physx::PxXmlMiscParameter* outArgs = reinterpret_cast(outArgs_pod); + physx::PxCollection* return_val = PxSerialization::createCollectionFromXml(inputData, cooking, sr, externalRefs, stringTable, outArgs); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxCollection_Pod* PxSerialization_createCollectionFromBinary(void* memBlock, physx_PxSerializationRegistry_Pod* sr_pod, physx_PxCollection_Pod const* externalRefs_pod) { + physx::PxSerializationRegistry& sr = reinterpret_cast(*sr_pod); + physx::PxCollection const* externalRefs = reinterpret_cast(externalRefs_pod); + physx::PxCollection* return_val = PxSerialization::createCollectionFromBinary(memBlock, sr, externalRefs); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool PxSerialization_serializeCollectionToXml(physx_PxOutputStream_Pod* outputStream_pod, physx_PxCollection_Pod* collection_pod, physx_PxSerializationRegistry_Pod* sr_pod, physx_PxCooking_Pod* cooking_pod, physx_PxCollection_Pod const* externalRefs_pod, physx_PxXmlMiscParameter_Pod* inArgs_pod) { + physx::PxOutputStream& outputStream = reinterpret_cast(*outputStream_pod); + physx::PxCollection& collection = reinterpret_cast(*collection_pod); + physx::PxSerializationRegistry& sr = reinterpret_cast(*sr_pod); + physx::PxCooking* cooking = reinterpret_cast(cooking_pod); + physx::PxCollection const* externalRefs = reinterpret_cast(externalRefs_pod); + physx::PxXmlMiscParameter* inArgs = reinterpret_cast(inArgs_pod); + bool return_val = PxSerialization::serializeCollectionToXml(outputStream, collection, sr, cooking, externalRefs, inArgs); + return return_val; + } + + bool PxSerialization_serializeCollectionToBinary(physx_PxOutputStream_Pod* outputStream_pod, physx_PxCollection_Pod* collection_pod, physx_PxSerializationRegistry_Pod* sr_pod, physx_PxCollection_Pod const* externalRefs_pod, bool exportNames) { + physx::PxOutputStream& outputStream = reinterpret_cast(*outputStream_pod); + physx::PxCollection& collection = reinterpret_cast(*collection_pod); + physx::PxSerializationRegistry& sr = reinterpret_cast(*sr_pod); + physx::PxCollection const* externalRefs = reinterpret_cast(externalRefs_pod); + bool return_val = PxSerialization::serializeCollectionToBinary(outputStream, collection, sr, externalRefs, exportNames); + return return_val; + } + + physx_PxSerializationRegistry_Pod* PxSerialization_createSerializationRegistry(physx_PxPhysics_Pod* physics_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxSerializationRegistry* return_val = PxSerialization::createSerializationRegistry(physics); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxDefaultCpuDispatcher_release_mut(physx_PxDefaultCpuDispatcher_Pod* self__pod) { + physx::PxDefaultCpuDispatcher* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + void PxDefaultCpuDispatcher_setRunProfiled_mut(physx_PxDefaultCpuDispatcher_Pod* self__pod, bool runProfiled) { + physx::PxDefaultCpuDispatcher* self_ = reinterpret_cast(self__pod); + self_->setRunProfiled(runProfiled); + } + + bool PxDefaultCpuDispatcher_getRunProfiled(physx_PxDefaultCpuDispatcher_Pod const* self__pod) { + physx::PxDefaultCpuDispatcher const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->getRunProfiled(); + return return_val; + } + + physx_PxDefaultCpuDispatcher_Pod* phys_PxDefaultCpuDispatcherCreate(uint32_t numThreads, uint32_t* affinityMasks, int32_t mode_pod, uint32_t yieldProcessorCount) { + auto mode = static_cast(mode_pod); + physx::PxDefaultCpuDispatcher* return_val = PxDefaultCpuDispatcherCreate(numThreads, affinityMasks, mode, yieldProcessorCount); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool phys_PxBuildSmoothNormals(uint32_t nbTris, uint32_t nbVerts, physx_PxVec3_Pod const* verts_pod, uint32_t const* dFaces, uint16_t const* wFaces, physx_PxVec3_Pod* normals_pod, bool flip) { + physx::PxVec3 const* verts = reinterpret_cast(verts_pod); + physx::PxVec3* normals = reinterpret_cast(normals_pod); + bool return_val = PxBuildSmoothNormals(nbTris, nbVerts, verts, dFaces, wFaces, normals, flip); + return return_val; + } + + physx_PxRigidDynamic_Pod* phys_PxCreateDynamic(physx_PxPhysics_Pod* sdk_pod, physx_PxTransform_Pod const* transform_pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxMaterial_Pod* material_pod, float density, physx_PxTransform_Pod const* shapeOffset_pod) { + physx::PxPhysics& sdk = reinterpret_cast(*sdk_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxMaterial& material = reinterpret_cast(*material_pod); + physx::PxTransform const& shapeOffset = reinterpret_cast(*shapeOffset_pod); + physx::PxRigidDynamic* return_val = PxCreateDynamic(sdk, transform, geometry, material, density, shapeOffset); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxRigidDynamic_Pod* phys_PxCreateDynamic_1(physx_PxPhysics_Pod* sdk_pod, physx_PxTransform_Pod const* transform_pod, physx_PxShape_Pod* shape_pod, float density) { + physx::PxPhysics& sdk = reinterpret_cast(*sdk_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxShape& shape = reinterpret_cast(*shape_pod); + physx::PxRigidDynamic* return_val = PxCreateDynamic(sdk, transform, shape, density); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxRigidDynamic_Pod* phys_PxCreateKinematic(physx_PxPhysics_Pod* sdk_pod, physx_PxTransform_Pod const* transform_pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxMaterial_Pod* material_pod, float density, physx_PxTransform_Pod const* shapeOffset_pod) { + physx::PxPhysics& sdk = reinterpret_cast(*sdk_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxMaterial& material = reinterpret_cast(*material_pod); + physx::PxTransform const& shapeOffset = reinterpret_cast(*shapeOffset_pod); + physx::PxRigidDynamic* return_val = PxCreateKinematic(sdk, transform, geometry, material, density, shapeOffset); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxRigidDynamic_Pod* phys_PxCreateKinematic_1(physx_PxPhysics_Pod* sdk_pod, physx_PxTransform_Pod const* transform_pod, physx_PxShape_Pod* shape_pod, float density) { + physx::PxPhysics& sdk = reinterpret_cast(*sdk_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxShape& shape = reinterpret_cast(*shape_pod); + physx::PxRigidDynamic* return_val = PxCreateKinematic(sdk, transform, shape, density); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxRigidStatic_Pod* phys_PxCreateStatic(physx_PxPhysics_Pod* sdk_pod, physx_PxTransform_Pod const* transform_pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxMaterial_Pod* material_pod, physx_PxTransform_Pod const* shapeOffset_pod) { + physx::PxPhysics& sdk = reinterpret_cast(*sdk_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxMaterial& material = reinterpret_cast(*material_pod); + physx::PxTransform const& shapeOffset = reinterpret_cast(*shapeOffset_pod); + physx::PxRigidStatic* return_val = PxCreateStatic(sdk, transform, geometry, material, shapeOffset); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxRigidStatic_Pod* phys_PxCreateStatic_1(physx_PxPhysics_Pod* sdk_pod, physx_PxTransform_Pod const* transform_pod, physx_PxShape_Pod* shape_pod) { + physx::PxPhysics& sdk = reinterpret_cast(*sdk_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxShape& shape = reinterpret_cast(*shape_pod); + physx::PxRigidStatic* return_val = PxCreateStatic(sdk, transform, shape); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxShape_Pod* phys_PxCloneShape(physx_PxPhysics_Pod* physicsSDK_pod, physx_PxShape_Pod const* shape_pod, bool isExclusive) { + physx::PxPhysics& physicsSDK = reinterpret_cast(*physicsSDK_pod); + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + physx::PxShape* return_val = PxCloneShape(physicsSDK, shape, isExclusive); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxRigidStatic_Pod* phys_PxCloneStatic(physx_PxPhysics_Pod* physicsSDK_pod, physx_PxTransform_Pod const* transform_pod, physx_PxRigidActor_Pod const* actor_pod) { + physx::PxPhysics& physicsSDK = reinterpret_cast(*physicsSDK_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxRigidStatic* return_val = PxCloneStatic(physicsSDK, transform, actor); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxRigidDynamic_Pod* phys_PxCloneDynamic(physx_PxPhysics_Pod* physicsSDK_pod, physx_PxTransform_Pod const* transform_pod, physx_PxRigidDynamic_Pod const* body_pod) { + physx::PxPhysics& physicsSDK = reinterpret_cast(*physicsSDK_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxRigidDynamic const& body = reinterpret_cast(*body_pod); + physx::PxRigidDynamic* return_val = PxCloneDynamic(physicsSDK, transform, body); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxRigidStatic_Pod* phys_PxCreatePlane(physx_PxPhysics_Pod* sdk_pod, physx_PxPlane_Pod const* plane_pod, physx_PxMaterial_Pod* material_pod) { + physx::PxPhysics& sdk = reinterpret_cast(*sdk_pod); + physx::PxPlane const& plane = reinterpret_cast(*plane_pod); + physx::PxMaterial& material = reinterpret_cast(*material_pod); + physx::PxRigidStatic* return_val = PxCreatePlane(sdk, plane, material); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void phys_PxScaleRigidActor(physx_PxRigidActor_Pod* actor_pod, float scale, bool scaleMassProps) { + physx::PxRigidActor& actor = reinterpret_cast(*actor_pod); + PxScaleRigidActor(actor, scale, scaleMassProps); + } + + physx_PxStringTable_Pod* PxStringTableExt_createStringTable(physx_PxAllocatorCallback_Pod* inAllocator_pod) { + physx::PxAllocatorCallback& inAllocator = reinterpret_cast(*inAllocator_pod); + physx::PxStringTable& return_val = PxStringTableExt::createStringTable(inAllocator); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + uint32_t PxBroadPhaseExt_createRegionsFromWorldBounds(physx_PxBounds3_Pod* regions_pod, physx_PxBounds3_Pod const* globalBounds_pod, uint32_t nbSubdiv, uint32_t upAxis) { + physx::PxBounds3* regions = reinterpret_cast(regions_pod); + physx::PxBounds3 const& globalBounds = reinterpret_cast(*globalBounds_pod); + uint32_t return_val = PxBroadPhaseExt::createRegionsFromWorldBounds(regions, globalBounds, nbSubdiv, upAxis); + return return_val; + } + + bool PxSceneQueryExt_raycastAny(physx_PxScene_Pod const* scene_pod, physx_PxVec3_Pod const* origin_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, physx_PxQueryHit_Pod* hit_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod, physx_PxQueryCache_Pod const* cache_pod) { + physx::PxScene const& scene = reinterpret_cast(*scene_pod); + physx::PxVec3 const& origin = reinterpret_cast(*origin_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + physx::PxQueryHit& hit = reinterpret_cast(*hit_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + bool return_val = PxSceneQueryExt::raycastAny(scene, origin, unitDir, distance, hit, filterData, filterCall, cache); + return return_val; + } + + bool PxSceneQueryExt_raycastSingle(physx_PxScene_Pod const* scene_pod, physx_PxVec3_Pod const* origin_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, uint16_t outputFlags_pod, physx_PxRaycastHit_Pod* hit_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod, physx_PxQueryCache_Pod const* cache_pod) { + physx::PxScene const& scene = reinterpret_cast(*scene_pod); + physx::PxVec3 const& origin = reinterpret_cast(*origin_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + auto outputFlags = physx::PxHitFlags(outputFlags_pod); + physx::PxRaycastHit& hit = reinterpret_cast(*hit_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + bool return_val = PxSceneQueryExt::raycastSingle(scene, origin, unitDir, distance, outputFlags, hit, filterData, filterCall, cache); + return return_val; + } + + int32_t PxSceneQueryExt_raycastMultiple(physx_PxScene_Pod const* scene_pod, physx_PxVec3_Pod const* origin_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, uint16_t outputFlags_pod, physx_PxRaycastHit_Pod* hitBuffer_pod, uint32_t hitBufferSize, bool* blockingHit_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod, physx_PxQueryCache_Pod const* cache_pod) { + physx::PxScene const& scene = reinterpret_cast(*scene_pod); + physx::PxVec3 const& origin = reinterpret_cast(*origin_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + auto outputFlags = physx::PxHitFlags(outputFlags_pod); + physx::PxRaycastHit* hitBuffer = reinterpret_cast(hitBuffer_pod); + bool& blockingHit = *blockingHit_pod; + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + int32_t return_val = PxSceneQueryExt::raycastMultiple(scene, origin, unitDir, distance, outputFlags, hitBuffer, hitBufferSize, blockingHit, filterData, filterCall, cache); + return return_val; + } + + bool PxSceneQueryExt_sweepAny(physx_PxScene_Pod const* scene_pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxTransform_Pod const* pose_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, uint16_t queryFlags_pod, physx_PxQueryHit_Pod* hit_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod, physx_PxQueryCache_Pod const* cache_pod, float inflation) { + physx::PxScene const& scene = reinterpret_cast(*scene_pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + auto queryFlags = physx::PxHitFlags(queryFlags_pod); + physx::PxQueryHit& hit = reinterpret_cast(*hit_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + bool return_val = PxSceneQueryExt::sweepAny(scene, geometry, pose, unitDir, distance, queryFlags, hit, filterData, filterCall, cache, inflation); + return return_val; + } + + bool PxSceneQueryExt_sweepSingle(physx_PxScene_Pod const* scene_pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxTransform_Pod const* pose_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, uint16_t outputFlags_pod, physx_PxSweepHit_Pod* hit_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod, physx_PxQueryCache_Pod const* cache_pod, float inflation) { + physx::PxScene const& scene = reinterpret_cast(*scene_pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + auto outputFlags = physx::PxHitFlags(outputFlags_pod); + physx::PxSweepHit& hit = reinterpret_cast(*hit_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + bool return_val = PxSceneQueryExt::sweepSingle(scene, geometry, pose, unitDir, distance, outputFlags, hit, filterData, filterCall, cache, inflation); + return return_val; + } + + int32_t PxSceneQueryExt_sweepMultiple(physx_PxScene_Pod const* scene_pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxTransform_Pod const* pose_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, uint16_t outputFlags_pod, physx_PxSweepHit_Pod* hitBuffer_pod, uint32_t hitBufferSize, bool* blockingHit_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod, physx_PxQueryCache_Pod const* cache_pod, float inflation) { + physx::PxScene const& scene = reinterpret_cast(*scene_pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + auto outputFlags = physx::PxHitFlags(outputFlags_pod); + physx::PxSweepHit* hitBuffer = reinterpret_cast(hitBuffer_pod); + bool& blockingHit = *blockingHit_pod; + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + int32_t return_val = PxSceneQueryExt::sweepMultiple(scene, geometry, pose, unitDir, distance, outputFlags, hitBuffer, hitBufferSize, blockingHit, filterData, filterCall, cache, inflation); + return return_val; + } + + int32_t PxSceneQueryExt_overlapMultiple(physx_PxScene_Pod const* scene_pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxTransform_Pod const* pose_pod, physx_PxOverlapHit_Pod* hitBuffer_pod, uint32_t hitBufferSize, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod) { + physx::PxScene const& scene = reinterpret_cast(*scene_pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxOverlapHit* hitBuffer = reinterpret_cast(hitBuffer_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + int32_t return_val = PxSceneQueryExt::overlapMultiple(scene, geometry, pose, hitBuffer, hitBufferSize, filterData, filterCall); + return return_val; + } + + bool PxSceneQueryExt_overlapAny(physx_PxScene_Pod const* scene_pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxTransform_Pod const* pose_pod, physx_PxOverlapHit_Pod* hit_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod) { + physx::PxScene const& scene = reinterpret_cast(*scene_pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxOverlapHit& hit = reinterpret_cast(*hit_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + bool return_val = PxSceneQueryExt::overlapAny(scene, geometry, pose, hit, filterData, filterCall); + return return_val; + } + + void PxBatchQueryExt_release_mut(physx_PxBatchQueryExt_Pod* self__pod) { + physx::PxBatchQueryExt* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxRaycastBuffer_Pod* PxBatchQueryExt_raycast_mut(physx_PxBatchQueryExt_Pod* self__pod, physx_PxVec3_Pod const* origin_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, uint16_t maxNbTouches, uint16_t hitFlags_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryCache_Pod const* cache_pod) { + physx::PxBatchQueryExt* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& origin = reinterpret_cast(*origin_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + auto hitFlags = physx::PxHitFlags(hitFlags_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + physx::PxRaycastBuffer* return_val = self_->raycast(origin, unitDir, distance, maxNbTouches, hitFlags, filterData, cache); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSweepBuffer_Pod* PxBatchQueryExt_sweep_mut(physx_PxBatchQueryExt_Pod* self__pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxTransform_Pod const* pose_pod, physx_PxVec3_Pod const* unitDir_pod, float distance, uint16_t maxNbTouches, uint16_t hitFlags_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryCache_Pod const* cache_pod, float inflation) { + physx::PxBatchQueryExt* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + auto hitFlags = physx::PxHitFlags(hitFlags_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + physx::PxSweepBuffer* return_val = self_->sweep(geometry, pose, unitDir, distance, maxNbTouches, hitFlags, filterData, cache, inflation); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxOverlapBuffer_Pod* PxBatchQueryExt_overlap_mut(physx_PxBatchQueryExt_Pod* self__pod, physx_PxGeometry_Pod const* geometry_pod, physx_PxTransform_Pod const* pose_pod, uint16_t maxNbTouches, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryCache_Pod const* cache_pod) { + physx::PxBatchQueryExt* self_ = reinterpret_cast(self__pod); + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxTransform const& pose = reinterpret_cast(*pose_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryCache const* cache = reinterpret_cast(cache_pod); + physx::PxOverlapBuffer* return_val = self_->overlap(geometry, pose, maxNbTouches, filterData, cache); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + void PxBatchQueryExt_execute_mut(physx_PxBatchQueryExt_Pod* self__pod) { + physx::PxBatchQueryExt* self_ = reinterpret_cast(self__pod); + self_->execute(); + } + + physx_PxBatchQueryExt_Pod* phys_PxCreateBatchQueryExt(physx_PxScene_Pod const* scene_pod, physx_PxQueryFilterCallback_Pod* queryFilterCallback_pod, uint32_t maxNbRaycasts, uint32_t maxNbRaycastTouches, uint32_t maxNbSweeps, uint32_t maxNbSweepTouches, uint32_t maxNbOverlaps, uint32_t maxNbOverlapTouches) { + physx::PxScene const& scene = reinterpret_cast(*scene_pod); + physx::PxQueryFilterCallback* queryFilterCallback = reinterpret_cast(queryFilterCallback_pod); + physx::PxBatchQueryExt* return_val = PxCreateBatchQueryExt(scene, queryFilterCallback, maxNbRaycasts, maxNbRaycastTouches, maxNbSweeps, maxNbSweepTouches, maxNbOverlaps, maxNbOverlapTouches); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxBatchQueryExt_Pod* phys_PxCreateBatchQueryExt_1(physx_PxScene_Pod const* scene_pod, physx_PxQueryFilterCallback_Pod* queryFilterCallback_pod, physx_PxRaycastBuffer_Pod* raycastBuffers_pod, uint32_t maxNbRaycasts, physx_PxRaycastHit_Pod* raycastTouches_pod, uint32_t maxNbRaycastTouches, physx_PxSweepBuffer_Pod* sweepBuffers_pod, uint32_t maxNbSweeps, physx_PxSweepHit_Pod* sweepTouches_pod, uint32_t maxNbSweepTouches, physx_PxOverlapBuffer_Pod* overlapBuffers_pod, uint32_t maxNbOverlaps, physx_PxOverlapHit_Pod* overlapTouches_pod, uint32_t maxNbOverlapTouches) { + physx::PxScene const& scene = reinterpret_cast(*scene_pod); + physx::PxQueryFilterCallback* queryFilterCallback = reinterpret_cast(queryFilterCallback_pod); + physx::PxRaycastBuffer* raycastBuffers = reinterpret_cast(raycastBuffers_pod); + physx::PxRaycastHit* raycastTouches = reinterpret_cast(raycastTouches_pod); + physx::PxSweepBuffer* sweepBuffers = reinterpret_cast(sweepBuffers_pod); + physx::PxSweepHit* sweepTouches = reinterpret_cast(sweepTouches_pod); + physx::PxOverlapBuffer* overlapBuffers = reinterpret_cast(overlapBuffers_pod); + physx::PxOverlapHit* overlapTouches = reinterpret_cast(overlapTouches_pod); + physx::PxBatchQueryExt* return_val = PxCreateBatchQueryExt(scene, queryFilterCallback, raycastBuffers, maxNbRaycasts, raycastTouches, maxNbRaycastTouches, sweepBuffers, maxNbSweeps, sweepTouches, maxNbSweepTouches, overlapBuffers, maxNbOverlaps, overlapTouches, maxNbOverlapTouches); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxSceneQuerySystem_Pod* phys_PxCreateExternalSceneQuerySystem(physx_PxSceneQueryDesc_Pod const* desc_pod, uint64_t contextID) { + physx::PxSceneQueryDesc const& desc = reinterpret_cast(*desc_pod); + physx::PxSceneQuerySystem* return_val = PxCreateExternalSceneQuerySystem(desc, contextID); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t PxCustomSceneQuerySystem_addPruner_mut(physx_PxCustomSceneQuerySystem_Pod* self__pod, int32_t primaryType_pod, int32_t secondaryType_pod, uint32_t preallocated) { + physx::PxCustomSceneQuerySystem* self_ = reinterpret_cast(self__pod); + auto primaryType = static_cast(primaryType_pod); + auto secondaryType = static_cast(secondaryType_pod); + uint32_t return_val = self_->addPruner(primaryType, secondaryType, preallocated); + return return_val; + } + + uint32_t PxCustomSceneQuerySystem_startCustomBuildstep_mut(physx_PxCustomSceneQuerySystem_Pod* self__pod) { + physx::PxCustomSceneQuerySystem* self_ = reinterpret_cast(self__pod); + uint32_t return_val = self_->startCustomBuildstep(); + return return_val; + } + + void PxCustomSceneQuerySystem_customBuildstep_mut(physx_PxCustomSceneQuerySystem_Pod* self__pod, uint32_t index) { + physx::PxCustomSceneQuerySystem* self_ = reinterpret_cast(self__pod); + self_->customBuildstep(index); + } + + void PxCustomSceneQuerySystem_finishCustomBuildstep_mut(physx_PxCustomSceneQuerySystem_Pod* self__pod) { + physx::PxCustomSceneQuerySystem* self_ = reinterpret_cast(self__pod); + self_->finishCustomBuildstep(); + } + + void PxCustomSceneQuerySystemAdapter_delete(physx_PxCustomSceneQuerySystemAdapter_Pod* self__pod) { + physx::PxCustomSceneQuerySystemAdapter* self_ = reinterpret_cast(self__pod); + delete self_; + } + + uint32_t PxCustomSceneQuerySystemAdapter_getPrunerIndex(physx_PxCustomSceneQuerySystemAdapter_Pod const* self__pod, physx_PxRigidActor_Pod const* actor_pod, physx_PxShape_Pod const* shape_pod) { + physx::PxCustomSceneQuerySystemAdapter const* self_ = reinterpret_cast(self__pod); + physx::PxRigidActor const& actor = reinterpret_cast(*actor_pod); + physx::PxShape const& shape = reinterpret_cast(*shape_pod); + uint32_t return_val = self_->getPrunerIndex(actor, shape); + return return_val; + } + + bool PxCustomSceneQuerySystemAdapter_processPruner(physx_PxCustomSceneQuerySystemAdapter_Pod const* self__pod, uint32_t prunerIndex, physx_PxQueryThreadContext_Pod const* context_pod, physx_PxQueryFilterData_Pod const* filterData_pod, physx_PxQueryFilterCallback_Pod* filterCall_pod) { + physx::PxCustomSceneQuerySystemAdapter const* self_ = reinterpret_cast(self__pod); + physx::PxQueryThreadContext const* context = reinterpret_cast(context_pod); + physx::PxQueryFilterData const& filterData = reinterpret_cast(*filterData_pod); + physx::PxQueryFilterCallback* filterCall = reinterpret_cast(filterCall_pod); + bool return_val = self_->processPruner(prunerIndex, context, filterData, filterCall); + return return_val; + } + + physx_PxCustomSceneQuerySystem_Pod* phys_PxCreateCustomSceneQuerySystem(int32_t sceneQueryUpdateMode_pod, uint64_t contextID, physx_PxCustomSceneQuerySystemAdapter_Pod const* adapter_pod, bool usesTreeOfPruners) { + auto sceneQueryUpdateMode = static_cast(sceneQueryUpdateMode_pod); + physx::PxCustomSceneQuerySystemAdapter const& adapter = reinterpret_cast(*adapter_pod); + physx::PxCustomSceneQuerySystem* return_val = PxCreateCustomSceneQuerySystem(sceneQueryUpdateMode, contextID, adapter, usesTreeOfPruners); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint32_t phys_PxFindFaceIndex(physx_PxConvexMeshGeometry_Pod const* convexGeom_pod, physx_PxTransform_Pod const* geomPose_pod, physx_PxVec3_Pod const* impactPos_pod, physx_PxVec3_Pod const* unitDir_pod) { + physx::PxConvexMeshGeometry const& convexGeom = reinterpret_cast(*convexGeom_pod); + physx::PxTransform const& geomPose = reinterpret_cast(*geomPose_pod); + physx::PxVec3 const& impactPos = reinterpret_cast(*impactPos_pod); + physx::PxVec3 const& unitDir = reinterpret_cast(*unitDir_pod); + uint32_t return_val = PxFindFaceIndex(convexGeom, geomPose, impactPos, unitDir); + return return_val; + } + + bool PxPoissonSampler_setSamplingRadius_mut(physx_PxPoissonSampler_Pod* self__pod, float samplingRadius) { + physx::PxPoissonSampler* self_ = reinterpret_cast(self__pod); + bool return_val = self_->setSamplingRadius(samplingRadius); + return return_val; + } + + void PxPoissonSampler_addSamplesInSphere_mut(physx_PxPoissonSampler_Pod* self__pod, physx_PxVec3_Pod const* sphereCenter_pod, float sphereRadius, bool createVolumeSamples) { + physx::PxPoissonSampler* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& sphereCenter = reinterpret_cast(*sphereCenter_pod); + self_->addSamplesInSphere(sphereCenter, sphereRadius, createVolumeSamples); + } + + void PxPoissonSampler_addSamplesInBox_mut(physx_PxPoissonSampler_Pod* self__pod, physx_PxBounds3_Pod const* axisAlignedBox_pod, physx_PxQuat_Pod const* boxOrientation_pod, bool createVolumeSamples) { + physx::PxPoissonSampler* self_ = reinterpret_cast(self__pod); + physx::PxBounds3 const& axisAlignedBox = reinterpret_cast(*axisAlignedBox_pod); + physx::PxQuat const& boxOrientation = reinterpret_cast(*boxOrientation_pod); + self_->addSamplesInBox(axisAlignedBox, boxOrientation, createVolumeSamples); + } + + void PxPoissonSampler_delete(physx_PxPoissonSampler_Pod* self__pod) { + physx::PxPoissonSampler* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxPoissonSampler_Pod* phys_PxCreateShapeSampler(physx_PxGeometry_Pod const* geometry_pod, physx_PxTransform_Pod const* transform_pod, physx_PxBounds3_Pod const* worldBounds_pod, float initialSamplingRadius, int32_t numSampleAttemptsAroundPoint) { + physx::PxGeometry const& geometry = reinterpret_cast(*geometry_pod); + physx::PxTransform const& transform = reinterpret_cast(*transform_pod); + physx::PxBounds3 const& worldBounds = reinterpret_cast(*worldBounds_pod); + physx::PxPoissonSampler* return_val = PxCreateShapeSampler(geometry, transform, worldBounds, initialSamplingRadius, numSampleAttemptsAroundPoint); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool PxTriangleMeshPoissonSampler_isPointInTriangleMesh_mut(physx_PxTriangleMeshPoissonSampler_Pod* self__pod, physx_PxVec3_Pod const* p_pod) { + physx::PxTriangleMeshPoissonSampler* self_ = reinterpret_cast(self__pod); + physx::PxVec3 const& p = reinterpret_cast(*p_pod); + bool return_val = self_->isPointInTriangleMesh(p); + return return_val; + } + + void PxTriangleMeshPoissonSampler_delete(physx_PxTriangleMeshPoissonSampler_Pod* self__pod) { + physx::PxTriangleMeshPoissonSampler* self_ = reinterpret_cast(self__pod); + delete self_; + } + + physx_PxTriangleMeshPoissonSampler_Pod* phys_PxCreateTriangleMeshSampler(uint32_t const* triangles, uint32_t numTriangles, physx_PxVec3_Pod const* vertices_pod, uint32_t numVertices, float initialSamplingRadius, int32_t numSampleAttemptsAroundPoint) { + physx::PxVec3 const* vertices = reinterpret_cast(vertices_pod); + physx::PxTriangleMeshPoissonSampler* return_val = PxCreateTriangleMeshSampler(triangles, numTriangles, vertices, numVertices, initialSamplingRadius, numSampleAttemptsAroundPoint); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + int32_t PxTetrahedronMeshExt_findTetrahedronContainingPoint(physx_PxTetrahedronMesh_Pod const* mesh_pod, physx_PxVec3_Pod const* point_pod, physx_PxVec4_Pod* bary_pod, float tolerance) { + physx::PxTetrahedronMesh const* mesh = reinterpret_cast(mesh_pod); + physx::PxVec3 const& point = reinterpret_cast(*point_pod); + physx::PxVec4& bary = reinterpret_cast(*bary_pod); + int32_t return_val = PxTetrahedronMeshExt::findTetrahedronContainingPoint(mesh, point, bary, tolerance); + return return_val; + } + + int32_t PxTetrahedronMeshExt_findTetrahedronClosestToPoint(physx_PxTetrahedronMesh_Pod const* mesh_pod, physx_PxVec3_Pod const* point_pod, physx_PxVec4_Pod* bary_pod) { + physx::PxTetrahedronMesh const* mesh = reinterpret_cast(mesh_pod); + physx::PxVec3 const& point = reinterpret_cast(*point_pod); + physx::PxVec4& bary = reinterpret_cast(*bary_pod); + int32_t return_val = PxTetrahedronMeshExt::findTetrahedronClosestToPoint(mesh, point, bary); + return return_val; + } + + bool phys_PxInitExtensions(physx_PxPhysics_Pod* physics_pod, physx_PxPvd_Pod* pvd_pod) { + physx::PxPhysics& physics = reinterpret_cast(*physics_pod); + physx::PxPvd* pvd = reinterpret_cast(pvd_pod); + bool return_val = PxInitExtensions(physics, pvd); + return return_val; + } + + void phys_PxCloseExtensions() { + PxCloseExtensions(); + } + + physx_PxRepXObject_Pod PxRepXObject_new(char const* inTypeName, void const* inSerializable, uint64_t inId) { + PxRepXObject return_val(inTypeName, inSerializable, inId); + physx_PxRepXObject_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxRepXObject_isValid(physx_PxRepXObject_Pod const* self__pod) { + physx::PxRepXObject const* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isValid(); + return return_val; + } + + physx_PxRepXInstantiationArgs_Pod PxRepXInstantiationArgs_new(physx_PxPhysics_Pod* inPhysics_pod, physx_PxCooking_Pod* inCooking_pod, physx_PxStringTable_Pod* inStringTable_pod) { + physx::PxPhysics& inPhysics = reinterpret_cast(*inPhysics_pod); + physx::PxCooking* inCooking = reinterpret_cast(inCooking_pod); + physx::PxStringTable* inStringTable = reinterpret_cast(inStringTable_pod); + PxRepXInstantiationArgs return_val(inPhysics, inCooking, inStringTable); + physx_PxRepXInstantiationArgs_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + char const* PxRepXSerializer_getTypeName_mut(physx_PxRepXSerializer_Pod* self__pod) { + physx::PxRepXSerializer* self_ = reinterpret_cast(self__pod); + char const* return_val = self_->getTypeName(); + return return_val; + } + + void PxRepXSerializer_objectToFile_mut(physx_PxRepXSerializer_Pod* self__pod, physx_PxRepXObject_Pod const* inLiveObject_pod, physx_PxCollection_Pod* inCollection_pod, physx_XmlWriter_Pod* inWriter_pod, physx_MemoryBuffer_Pod* inTempBuffer_pod, physx_PxRepXInstantiationArgs_Pod* inArgs_pod) { + physx::PxRepXSerializer* self_ = reinterpret_cast(self__pod); + physx::PxRepXObject const& inLiveObject = reinterpret_cast(*inLiveObject_pod); + physx::PxCollection* inCollection = reinterpret_cast(inCollection_pod); + physx::XmlWriter& inWriter = reinterpret_cast(*inWriter_pod); + physx::MemoryBuffer& inTempBuffer = reinterpret_cast(*inTempBuffer_pod); + physx::PxRepXInstantiationArgs& inArgs = reinterpret_cast(*inArgs_pod); + self_->objectToFile(inLiveObject, inCollection, inWriter, inTempBuffer, inArgs); + } + + physx_PxRepXObject_Pod PxRepXSerializer_fileToObject_mut(physx_PxRepXSerializer_Pod* self__pod, physx_XmlReader_Pod* inReader_pod, physx_XmlMemoryAllocator_Pod* inAllocator_pod, physx_PxRepXInstantiationArgs_Pod* inArgs_pod, physx_PxCollection_Pod* inCollection_pod) { + physx::PxRepXSerializer* self_ = reinterpret_cast(self__pod); + physx::XmlReader& inReader = reinterpret_cast(*inReader_pod); + physx::XmlMemoryAllocator& inAllocator = reinterpret_cast(*inAllocator_pod); + physx::PxRepXInstantiationArgs& inArgs = reinterpret_cast(*inArgs_pod); + physx::PxCollection* inCollection = reinterpret_cast(inCollection_pod); + physx::PxRepXObject return_val = self_->fileToObject(inReader, inAllocator, inArgs, inCollection); + physx_PxRepXObject_Pod return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + bool PxPvd_connect_mut(physx_PxPvd_Pod* self__pod, physx_PxPvdTransport_Pod* transport_pod, uint8_t flags_pod) { + physx::PxPvd* self_ = reinterpret_cast(self__pod); + physx::PxPvdTransport& transport = reinterpret_cast(*transport_pod); + auto flags = physx::PxPvdInstrumentationFlags(flags_pod); + bool return_val = self_->connect(transport, flags); + return return_val; + } + + void PxPvd_disconnect_mut(physx_PxPvd_Pod* self__pod) { + physx::PxPvd* self_ = reinterpret_cast(self__pod); + self_->disconnect(); + } + + bool PxPvd_isConnected_mut(physx_PxPvd_Pod* self__pod, bool useCachedStatus) { + physx::PxPvd* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isConnected(useCachedStatus); + return return_val; + } + + physx_PxPvdTransport_Pod* PxPvd_getTransport_mut(physx_PxPvd_Pod* self__pod) { + physx::PxPvd* self_ = reinterpret_cast(self__pod); + physx::PxPvdTransport* return_val = self_->getTransport(); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + uint8_t PxPvd_getInstrumentationFlags_mut(physx_PxPvd_Pod* self__pod) { + physx::PxPvd* self_ = reinterpret_cast(self__pod); + physx::PxPvdInstrumentationFlags return_val = self_->getInstrumentationFlags(); + uint8_t return_val_pod; + memcpy(&return_val_pod, &return_val, sizeof(return_val_pod)); + return return_val_pod; + } + + void PxPvd_release_mut(physx_PxPvd_Pod* self__pod) { + physx::PxPvd* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxPvd_Pod* phys_PxCreatePvd(physx_PxFoundation_Pod* foundation_pod) { + physx::PxFoundation& foundation = reinterpret_cast(*foundation_pod); + physx::PxPvd* return_val = PxCreatePvd(foundation); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + bool PxPvdTransport_connect_mut(physx_PxPvdTransport_Pod* self__pod) { + physx::PxPvdTransport* self_ = reinterpret_cast(self__pod); + bool return_val = self_->connect(); + return return_val; + } + + void PxPvdTransport_disconnect_mut(physx_PxPvdTransport_Pod* self__pod) { + physx::PxPvdTransport* self_ = reinterpret_cast(self__pod); + self_->disconnect(); + } + + bool PxPvdTransport_isConnected_mut(physx_PxPvdTransport_Pod* self__pod) { + physx::PxPvdTransport* self_ = reinterpret_cast(self__pod); + bool return_val = self_->isConnected(); + return return_val; + } + + bool PxPvdTransport_write_mut(physx_PxPvdTransport_Pod* self__pod, uint8_t const* inBytes, uint32_t inLength) { + physx::PxPvdTransport* self_ = reinterpret_cast(self__pod); + bool return_val = self_->write(inBytes, inLength); + return return_val; + } + + physx_PxPvdTransport_Pod* PxPvdTransport_lock_mut(physx_PxPvdTransport_Pod* self__pod) { + physx::PxPvdTransport* self_ = reinterpret_cast(self__pod); + physx::PxPvdTransport& return_val = self_->lock(); + auto return_val_pod = reinterpret_cast(&return_val); + return return_val_pod; + } + + void PxPvdTransport_unlock_mut(physx_PxPvdTransport_Pod* self__pod) { + physx::PxPvdTransport* self_ = reinterpret_cast(self__pod); + self_->unlock(); + } + + void PxPvdTransport_flush_mut(physx_PxPvdTransport_Pod* self__pod) { + physx::PxPvdTransport* self_ = reinterpret_cast(self__pod); + self_->flush(); + } + + uint64_t PxPvdTransport_getWrittenDataSize_mut(physx_PxPvdTransport_Pod* self__pod) { + physx::PxPvdTransport* self_ = reinterpret_cast(self__pod); + uint64_t return_val = self_->getWrittenDataSize(); + return return_val; + } + + void PxPvdTransport_release_mut(physx_PxPvdTransport_Pod* self__pod) { + physx::PxPvdTransport* self_ = reinterpret_cast(self__pod); + self_->release(); + } + + physx_PxPvdTransport_Pod* phys_PxDefaultPvdSocketTransportCreate(char const* host, int32_t port, uint32_t timeoutInMilliseconds) { + physx::PxPvdTransport* return_val = PxDefaultPvdSocketTransportCreate(host, port, timeoutInMilliseconds); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } + + physx_PxPvdTransport_Pod* phys_PxDefaultPvdFileTransportCreate(char const* name) { + physx::PxPvdTransport* return_val = PxDefaultPvdFileTransportCreate(name); + auto return_val_pod = reinterpret_cast(return_val); + return return_val_pod; + } +} \ No newline at end of file diff --git a/HexaGen.Tests/physx/structgen.hpp b/HexaGen.Tests/physx/structgen.hpp new file mode 100644 index 0000000..07745fe --- /dev/null +++ b/HexaGen.Tests/physx/structgen.hpp @@ -0,0 +1,88 @@ +#include +#include +#include +#include + +struct RustCheck { + const char* rname; + uint32_t size; +}; + +struct PodStructGen { + PodStructGen() { + cfile = fopen("structgen_out.hpp", "w"); + rfile = fopen("structgen_out.rs", "w"); + } + + void finish() { + fclose(cfile); + + fputs("#[cfg(test)]\nmod sizes {\n use super::*;\n use std::mem::size_of;\n #[test]\n fn check_sizes() {\n", rfile); + for (const auto& rc : rust_checks) { + fprintf( + rfile, + " assert_eq!(size_of::<%s>(), %u);\n", + rc.rname, + rc.size + ); + } + fputs(" }\n}\n", rfile); + fclose(rfile); + } + + void pass_thru(const char* code) { fputs(code, cfile); } + + void begin_struct(const char* cname, const char* rname) { + fprintf(cfile, "struct %s {\n", cname); + + fprintf(rfile, "#[derive(Clone, Copy)]\n"); + fprintf(rfile, "#[cfg_attr(feature = \"debug-structs\", derive(Debug))]\n"); + fprintf(rfile, "#[repr(C)]\n"); + fprintf(rfile, "pub struct %s {\n", rname); + + this->rname = rname; + pos = 0; + padIdx = 0; + } + + void emit_padding(uint32_t bytes) { + fprintf(cfile, " char structgen_pad%u[%u];\n", padIdx, bytes); + fprintf(rfile, " pub structgen_pad%u: [u8; %u],\n", padIdx, bytes); + ++padIdx; + } + + void add_field( + const char* cppDecl, + const char* rustName, + const char* rustType, + size_t size, + size_t offset) { + assert(offset >= pos); + if (offset > pos) { + emit_padding(uint32_t(offset - pos)); + pos = offset; + } + fprintf(cfile, " %s;\n", cppDecl); + fprintf(rfile, " pub %s: %s,\n", rustName, rustType); + pos += size; + } + + void end_struct(size_t size) { + assert(size >= pos); + if (size > pos) { + emit_padding(uint32_t(size - pos)); + } + fputs("};\n", cfile); + fputs("}\n", rfile); + + rust_checks.emplace_back(RustCheck { rname, uint32_t(size) }); + } + + private: + std::vector rust_checks; + FILE* cfile; + FILE* rfile; + const char* rname; + size_t pos; + uint32_t padIdx; +}; diff --git a/HexaGen.Tests/physx/structgen_out.hpp b/HexaGen.Tests/physx/structgen_out.hpp new file mode 100644 index 0000000..7bbc73c --- /dev/null +++ b/HexaGen.Tests/physx/structgen_out.hpp @@ -0,0 +1,2082 @@ +struct physx_PxAllocatorCallback_Pod; +struct physx_PxErrorCallback_Pod; +struct physx_PxAssertHandler_Pod; +struct physx_PxInputStream_Pod; +struct physx_PxInputData_Pod; +struct physx_PxOutputStream_Pod; +struct physx_PxVec2_Pod; +struct physx_PxVec3_Pod; +struct physx_PxVec4_Pod; +struct physx_PxQuat_Pod; +struct physx_PxMat33_Pod; +struct physx_PxMat34_Pod; +struct physx_PxMat44_Pod; +struct physx_PxTransform_Pod; +struct physx_PxPlane_Pod; +struct physx_PxBounds3_Pod; +struct physx_PxAllocatorCallback_Pod { + void* vtable_; +}; +struct physx_PxAssertHandler_Pod { + void* vtable_; +}; +struct physx_PxAllocationListener_Pod; +struct physx_PxFoundation_Pod { + void* vtable_; +}; +struct physx_PxProfilerCallback_Pod; +struct physx_PxAllocator_Pod { + char structgen_pad0[1]; +}; +struct physx_PxRawAllocator_Pod { + char structgen_pad0[1]; +}; +struct physx_PxVirtualAllocatorCallback_Pod { + void* vtable_; +}; +struct physx_PxVirtualAllocator_Pod { + char structgen_pad0[16]; +}; +struct physx_PxUserAllocated_Pod { + char structgen_pad0[1]; +}; +union physx_PxTempAllocatorChunk_Pod { + physx_PxTempAllocatorChunk_Pod* mNext; + uint32_t mIndex; + uint8_t mPad[16]; +}; +struct physx_PxTempAllocator_Pod { + char structgen_pad0[1]; +}; +struct physx_PxLogTwo_Pod; +struct physx_PxUnConst_Pod; +struct physx_PxBitAndByte_Pod { + char structgen_pad0[1]; +}; +struct physx_PxBitMap_Pod { + char structgen_pad0[16]; +}; +struct physx_PxVec3_Pod { + float x; + float y; + float z; +}; +struct physx_PxVec3Padded_Pod { + float x; + float y; + float z; + uint32_t padding; +}; +struct physx_PxQuat_Pod { + float x; + float y; + float z; + float w; +}; +struct physx_PxTransform_Pod { + physx_PxQuat_Pod q; + physx_PxVec3_Pod p; +}; +struct physx_PxTransformPadded_Pod { + physx_PxTransform_Pod transform; + uint32_t padding; +}; +struct physx_PxMat33_Pod { + physx_PxVec3_Pod column0; + physx_PxVec3_Pod column1; + physx_PxVec3_Pod column2; +}; +struct physx_PxBounds3_Pod { + physx_PxVec3_Pod minimum; + physx_PxVec3_Pod maximum; +}; +struct physx_PxErrorCallback_Pod { + void* vtable_; +}; +struct physx_PxAllocationListener_Pod { + void* vtable_; +}; +struct physx_PxBroadcastingAllocator_Pod { + char structgen_pad0[176]; +}; +struct physx_PxBroadcastingErrorCallback_Pod { + char structgen_pad0[160]; +}; +struct physx_PxHash_Pod; +struct physx_PxInputStream_Pod { + void* vtable_; +}; +struct physx_PxInputData_Pod { + void* vtable_; +}; +struct physx_PxOutputStream_Pod { + void* vtable_; +}; +struct physx_PxVec4_Pod { + float x; + float y; + float z; + float w; +}; +struct physx_PxMat44_Pod { + physx_PxVec4_Pod column0; + physx_PxVec4_Pod column1; + physx_PxVec4_Pod column2; + physx_PxVec4_Pod column3; +}; +struct physx_PxPlane_Pod { + physx_PxVec3_Pod n; + float d; +}; +struct physx_Interpolation_Pod { + char structgen_pad0[1]; +}; +struct physx_PxMutexImpl_Pod { + char structgen_pad0[1]; +}; +struct physx_PxReadWriteLock_Pod { + char structgen_pad0[8]; +}; +struct physx_PxProfilerCallback_Pod { + void* vtable_; +}; +struct physx_PxProfileScoped_Pod { + physx_PxProfilerCallback_Pod* mCallback; + char const* mEventName; + void* mProfilerData; + uint64_t mContextId; + bool mDetached; + char structgen_pad0[7]; +}; +struct physx_PxSListEntry_Pod { + char structgen_pad0[16]; +}; +struct physx_PxSListImpl_Pod { + char structgen_pad0[1]; +}; +struct physx_PxSyncImpl_Pod { + char structgen_pad0[1]; +}; +struct physx_PxRunnable_Pod { + void* vtable_; +}; +struct physx_PxCounterFrequencyToTensOfNanos_Pod { + uint64_t mNumerator; + uint64_t mDenominator; +}; +struct physx_PxTime_Pod { + char structgen_pad0[8]; +}; +struct physx_PxVec2_Pod { + float x; + float y; +}; +struct physx_PxStridedData_Pod { + uint32_t stride; + char structgen_pad0[4]; + void const* data; +}; +struct physx_PxBoundedData_Pod { + uint32_t stride; + char structgen_pad0[4]; + void const* data; + uint32_t count; + char structgen_pad1[4]; +}; +struct physx_PxDebugPoint_Pod { + physx_PxVec3_Pod pos; + uint32_t color; +}; +struct physx_PxDebugLine_Pod { + physx_PxVec3_Pod pos0; + uint32_t color0; + physx_PxVec3_Pod pos1; + uint32_t color1; +}; +struct physx_PxDebugTriangle_Pod { + physx_PxVec3_Pod pos0; + uint32_t color0; + physx_PxVec3_Pod pos1; + uint32_t color1; + physx_PxVec3_Pod pos2; + uint32_t color2; +}; +struct physx_PxDebugText_Pod { + physx_PxVec3_Pod position; + float size; + uint32_t color; + char structgen_pad0[4]; + char const* string; +}; +struct physx_PxRenderBuffer_Pod { + void* vtable_; +}; +struct physx_PxBase_Pod; +struct physx_PxSerializationContext_Pod; +struct physx_PxRepXSerializer_Pod; +struct physx_PxSerializer_Pod; +struct physx_PxPhysics_Pod; +struct physx_PxCollection_Pod; +struct physx_PxProcessPxBaseCallback_Pod { + void* vtable_; +}; +struct physx_PxSerializationContext_Pod { + void* vtable_; +}; +struct physx_PxDeserializationContext_Pod { + char structgen_pad0[16]; +}; +struct physx_PxSerializationRegistry_Pod { + void* vtable_; +}; +struct physx_PxCollection_Pod { + void* vtable_; +}; +struct physx_PxTypeInfo_Pod; +struct physx_PxMaterial_Pod; +struct physx_PxFEMSoftBodyMaterial_Pod; +struct physx_PxFEMClothMaterial_Pod; +struct physx_PxPBDMaterial_Pod; +struct physx_PxFLIPMaterial_Pod; +struct physx_PxMPMMaterial_Pod; +struct physx_PxCustomMaterial_Pod; +struct physx_PxConvexMesh_Pod; +struct physx_PxTriangleMesh_Pod; +struct physx_PxBVH33TriangleMesh_Pod; +struct physx_PxBVH34TriangleMesh_Pod; +struct physx_PxTetrahedronMesh_Pod; +struct physx_PxHeightField_Pod; +struct physx_PxActor_Pod; +struct physx_PxRigidActor_Pod; +struct physx_PxRigidBody_Pod; +struct physx_PxRigidDynamic_Pod; +struct physx_PxRigidStatic_Pod; +struct physx_PxArticulationLink_Pod; +struct physx_PxArticulationJointReducedCoordinate_Pod; +struct physx_PxArticulationReducedCoordinate_Pod; +struct physx_PxAggregate_Pod; +struct physx_PxConstraint_Pod; +struct physx_PxShape_Pod; +struct physx_PxPruningStructure_Pod; +struct physx_PxParticleSystem_Pod; +struct physx_PxPBDParticleSystem_Pod; +struct physx_PxFLIPParticleSystem_Pod; +struct physx_PxMPMParticleSystem_Pod; +struct physx_PxCustomParticleSystem_Pod; +struct physx_PxSoftBody_Pod; +struct physx_PxFEMCloth_Pod; +struct physx_PxHairSystem_Pod; +struct physx_PxParticleBuffer_Pod; +struct physx_PxParticleAndDiffuseBuffer_Pod; +struct physx_PxParticleClothBuffer_Pod; +struct physx_PxParticleRigidBuffer_Pod; +struct physx_PxBase_Pod { + char structgen_pad0[16]; +}; +struct physx_PxRefCounted_Pod { + char structgen_pad0[16]; +}; +struct physx_PxTolerancesScale_Pod { + float length; + float speed; +}; +struct physx_PxStringTable_Pod { + void* vtable_; +}; +struct physx_PxSerializer_Pod { + void* vtable_; +}; +struct physx_PxMetaDataEntry_Pod { + char const* type; + char const* name; + uint32_t offset; + uint32_t size; + uint32_t count; + uint32_t offsetSize; + uint32_t flags; + uint32_t alignment; +}; +struct physx_PxInsertionCallback_Pod { + void* vtable_; +}; +struct physx_PxBaseTask_Pod; +struct physx_PxTask_Pod; +struct physx_PxLightCpuTask_Pod; +struct physx_PxCpuDispatcher_Pod; +struct physx_PxTaskManager_Pod { + void* vtable_; +}; +struct physx_PxCpuDispatcher_Pod { + void* vtable_; +}; +struct physx_PxBaseTask_Pod { + char structgen_pad0[24]; +}; +struct physx_PxTask_Pod { + char structgen_pad0[32]; +}; +struct physx_PxLightCpuTask_Pod { + char structgen_pad0[40]; +}; +struct physx_PxGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; +}; +struct physx_PxBoxGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; + physx_PxVec3_Pod halfExtents; +}; +struct physx_PxBVHRaycastCallback_Pod { + void* vtable_; +}; +struct physx_PxBVHOverlapCallback_Pod { + void* vtable_; +}; +struct physx_PxBVHTraversalCallback_Pod { + void* vtable_; +}; +struct physx_PxBVH_Pod { + char structgen_pad0[16]; +}; +struct physx_PxGeomIndexPair_Pod; +struct physx_PxCapsuleGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; + float radius; + float halfHeight; +}; +struct physx_PxHullPolygon_Pod { + float mPlane[4]; + uint16_t mNbVerts; + uint16_t mIndexBase; +}; +struct physx_PxConvexMesh_Pod { + char structgen_pad0[16]; +}; +struct physx_PxMeshScale_Pod { + physx_PxVec3_Pod scale; + physx_PxQuat_Pod rotation; +}; +struct physx_PxConvexMeshGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; + physx_PxMeshScale_Pod scale; + char structgen_pad1[4]; + physx_PxConvexMesh_Pod* convexMesh; + uint8_t meshFlags; + char structgen_pad2[7]; +}; +struct physx_PxSphereGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; + float radius; +}; +struct physx_PxPlaneGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; +}; +struct physx_PxTriangleMeshGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; + physx_PxMeshScale_Pod scale; + uint8_t meshFlags; + char structgen_pad1[3]; + physx_PxTriangleMesh_Pod* triangleMesh; +}; +struct physx_PxHeightFieldGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; + physx_PxHeightField_Pod* heightField; + float heightScale; + float rowScale; + float columnScale; + uint8_t heightFieldFlags; + char structgen_pad1[3]; +}; +struct physx_PxParticleSystemGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; + int32_t mSolverType; +}; +struct physx_PxHairSystemGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; +}; +struct physx_PxTetrahedronMeshGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; + physx_PxTetrahedronMesh_Pod* tetrahedronMesh; +}; +struct physx_PxQueryHit_Pod { + uint32_t faceIndex; +}; +struct physx_PxLocationHit_Pod { + uint32_t faceIndex; + uint16_t flags; + char structgen_pad0[2]; + physx_PxVec3_Pod position; + physx_PxVec3_Pod normal; + float distance; +}; +struct physx_PxGeomRaycastHit_Pod { + uint32_t faceIndex; + uint16_t flags; + char structgen_pad0[2]; + physx_PxVec3_Pod position; + physx_PxVec3_Pod normal; + float distance; + float u; + float v; +}; +struct physx_PxGeomOverlapHit_Pod { + uint32_t faceIndex; +}; +struct physx_PxGeomSweepHit_Pod { + uint32_t faceIndex; + uint16_t flags; + char structgen_pad0[2]; + physx_PxVec3_Pod position; + physx_PxVec3_Pod normal; + float distance; +}; +struct physx_PxGeomIndexPair_Pod { + uint32_t id0; + uint32_t id1; +}; +struct physx_PxQueryThreadContext_Pod { + char structgen_pad0[1]; +}; +struct physx_PxContactBuffer_Pod; +struct physx_PxRenderOutput_Pod; +struct physx_PxMassProperties_Pod; +struct physx_PxCustomGeometryType_Pod { + char structgen_pad0[4]; +}; +struct physx_PxCustomGeometryCallbacks_Pod { + void* vtable_; +}; +struct physx_PxCustomGeometry_Pod { + char structgen_pad0[4]; + float mTypePadding; + physx_PxCustomGeometryCallbacks_Pod* callbacks; +}; +struct physx_PxGeometryHolder_Pod { + char structgen_pad0[56]; +}; +struct physx_PxGeometryQuery_Pod { + char structgen_pad0[1]; +}; +struct physx_PxHeightFieldSample_Pod { + int16_t height; + physx_PxBitAndByte_Pod materialIndex0; + physx_PxBitAndByte_Pod materialIndex1; +}; +struct physx_PxHeightFieldDesc_Pod; +struct physx_PxHeightField_Pod { + char structgen_pad0[16]; +}; +struct physx_PxHeightFieldDesc_Pod { + uint32_t nbRows; + uint32_t nbColumns; + int32_t format; + char structgen_pad0[4]; + physx_PxStridedData_Pod samples; + float convexEdgeThreshold; + uint16_t flags; + char structgen_pad1[2]; +}; +struct physx_PxTriangle_Pod; +struct physx_PxMeshQuery_Pod { + char structgen_pad0[1]; +}; +struct physx_PxSimpleTriangleMesh_Pod { + physx_PxBoundedData_Pod points; + physx_PxBoundedData_Pod triangles; + uint16_t flags; + char structgen_pad0[6]; +}; +struct physx_PxTriangle_Pod { + physx_PxVec3_Pod verts[3]; +}; +struct physx_PxTrianglePadded_Pod { + physx_PxVec3_Pod verts[3]; + uint32_t padding; +}; +struct physx_PxTriangleMesh_Pod { + char structgen_pad0[16]; +}; +struct physx_PxBVH34TriangleMesh_Pod { + char structgen_pad0[16]; +}; +struct physx_PxTetrahedron_Pod { + physx_PxVec3_Pod verts[4]; +}; +struct physx_PxSoftBodyAuxData_Pod { + char structgen_pad0[16]; +}; +struct physx_PxTetrahedronMesh_Pod { + char structgen_pad0[16]; +}; +struct physx_PxSoftBodyMesh_Pod { + char structgen_pad0[16]; +}; +struct physx_PxCollisionMeshMappingData_Pod { + char structgen_pad0[8]; +}; +struct physx_PxSoftBodyCollisionData_Pod { + char structgen_pad0[1]; +}; +struct physx_PxTetrahedronMeshData_Pod { + char structgen_pad0[1]; +}; +struct physx_PxSoftBodySimulationData_Pod { + char structgen_pad0[1]; +}; +struct physx_PxCollisionTetrahedronMeshData_Pod { + char structgen_pad0[8]; +}; +struct physx_PxSimulationTetrahedronMeshData_Pod { + char structgen_pad0[8]; +}; +struct physx_PxScene_Pod; +struct physx_PxActor_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxAggregate_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxSpringModifiers_Pod { + float stiffness; + float damping; + char structgen_pad0[8]; +}; +struct physx_PxRestitutionModifiers_Pod { + float restitution; + float velocityThreshold; + char structgen_pad0[8]; +}; +union physx_Px1DConstraintMods_Pod { + physx_PxSpringModifiers_Pod spring; + physx_PxRestitutionModifiers_Pod bounce; +}; +struct physx_Px1DConstraint_Pod { + physx_PxVec3_Pod linear0; + float geometricError; + physx_PxVec3_Pod angular0; + float velocityTarget; + physx_PxVec3_Pod linear1; + float minImpulse; + physx_PxVec3_Pod angular1; + float maxImpulse; + physx_Px1DConstraintMods_Pod mods; + float forInternalUse; + uint16_t flags; + uint16_t solveHint; + char structgen_pad0[8]; +}; +struct physx_PxConstraintInvMassScale_Pod { + float linear0; + float angular0; + float linear1; + float angular1; +}; +struct physx_PxConstraintVisualizer_Pod { + void* vtable_; +}; +struct physx_PxConstraintConnector_Pod { + void* vtable_; +}; +struct physx_PxContactPoint_Pod { + physx_PxVec3_Pod normal; + float separation; + physx_PxVec3_Pod point; + float maxImpulse; + physx_PxVec3_Pod targetVel; + float staticFriction; + uint8_t materialFlags; + char structgen_pad0[3]; + uint32_t internalFaceIndex1; + float dynamicFriction; + float restitution; + float damping; + char structgen_pad1[12]; +}; +struct physx_PxTGSSolverBodyVel_Pod; +struct physx_PxSolverBody_Pod { + physx_PxVec3_Pod linearVelocity; + uint16_t maxSolverNormalProgress; + uint16_t maxSolverFrictionProgress; + physx_PxVec3_Pod angularState; + uint32_t solverProgress; +}; +struct physx_PxSolverBodyData_Pod { + physx_PxVec3_Pod linearVelocity; + float invMass; + physx_PxVec3_Pod angularVelocity; + float reportThreshold; + physx_PxMat33_Pod sqrtInvInertia; + float penBiasClamp; + uint32_t nodeIndex; + float maxContactImpulse; + physx_PxTransform_Pod body2World; + uint16_t pad; + char structgen_pad0[2]; +}; +struct physx_PxConstraintBatchHeader_Pod { + uint32_t startIndex; + uint16_t stride; + uint16_t constraintType; +}; +struct physx_PxSolverConstraintDesc_Pod { + char structgen_pad0[16]; + uint32_t bodyADataIndex; + uint32_t bodyBDataIndex; + uint32_t linkIndexA; + uint32_t linkIndexB; + uint8_t* constraint; + void* writeBack; + uint16_t progressA; + uint16_t progressB; + uint16_t constraintLengthOver16; + uint8_t padding[10]; +}; +struct physx_PxSolverConstraintPrepDescBase_Pod { + physx_PxConstraintInvMassScale_Pod invMassScales; + physx_PxSolverConstraintDesc_Pod* desc; + physx_PxSolverBody_Pod const* body0; + physx_PxSolverBody_Pod const* body1; + physx_PxSolverBodyData_Pod const* data0; + physx_PxSolverBodyData_Pod const* data1; + physx_PxTransform_Pod bodyFrame0; + physx_PxTransform_Pod bodyFrame1; + int32_t bodyState0; + int32_t bodyState1; + char structgen_pad0[8]; +}; +struct physx_PxSolverConstraintPrepDesc_Pod { + physx_PxConstraintInvMassScale_Pod invMassScales; + physx_PxSolverConstraintDesc_Pod* desc; + physx_PxSolverBody_Pod const* body0; + physx_PxSolverBody_Pod const* body1; + physx_PxSolverBodyData_Pod const* data0; + physx_PxSolverBodyData_Pod const* data1; + physx_PxTransform_Pod bodyFrame0; + physx_PxTransform_Pod bodyFrame1; + int32_t bodyState0; + int32_t bodyState1; + char structgen_pad0[8]; + physx_Px1DConstraint_Pod* rows; + uint32_t numRows; + float linBreakForce; + float angBreakForce; + float minResponseThreshold; + void* writeback; + bool disablePreprocessing; + bool improvedSlerp; + bool driveLimitsAreForces; + bool extendedLimits; + bool disableConstraint; + char structgen_pad1[3]; + physx_PxVec3Padded_Pod body0WorldOffset; + char structgen_pad2[8]; +}; +struct physx_PxSolverContactDesc_Pod { + physx_PxConstraintInvMassScale_Pod invMassScales; + physx_PxSolverConstraintDesc_Pod* desc; + physx_PxSolverBody_Pod const* body0; + physx_PxSolverBody_Pod const* body1; + physx_PxSolverBodyData_Pod const* data0; + physx_PxSolverBodyData_Pod const* data1; + physx_PxTransform_Pod bodyFrame0; + physx_PxTransform_Pod bodyFrame1; + int32_t bodyState0; + int32_t bodyState1; + char structgen_pad0[8]; + void* shapeInteraction; + physx_PxContactPoint_Pod* contacts; + uint32_t numContacts; + bool hasMaxImpulse; + bool disableStrongFriction; + bool hasForceThresholds; + char structgen_pad1[1]; + float restDistance; + float maxCCDSeparation; + uint8_t* frictionPtr; + uint8_t frictionCount; + char structgen_pad2[7]; + float* contactForces; + uint32_t startFrictionPatchIndex; + uint32_t numFrictionPatches; + uint32_t startContactPatchIndex; + uint16_t numContactPatches; + uint16_t axisConstraintCount; + float offsetSlop; + char structgen_pad3[4]; +}; +struct physx_PxConstraintAllocator_Pod { + void* vtable_; +}; +struct physx_PxArticulationLimit_Pod { + float low; + float high; +}; +struct physx_PxArticulationDrive_Pod { + float stiffness; + float damping; + float maxForce; + int32_t driveType; +}; +struct physx_PxTGSSolverBodyVel_Pod { + physx_PxVec3_Pod linearVelocity; + uint16_t nbStaticInteractions; + uint16_t maxDynamicPartition; + physx_PxVec3_Pod angularVelocity; + uint32_t partitionMask; + physx_PxVec3_Pod deltaAngDt; + float maxAngVel; + physx_PxVec3_Pod deltaLinDt; + uint16_t lockFlags; + bool isKinematic; + uint8_t pad; +}; +struct physx_PxTGSSolverBodyTxInertia_Pod { + physx_PxTransform_Pod deltaBody2World; + physx_PxMat33_Pod sqrtInvInertia; +}; +struct physx_PxTGSSolverBodyData_Pod { + physx_PxVec3_Pod originalLinearVelocity; + float maxContactImpulse; + physx_PxVec3_Pod originalAngularVelocity; + float penBiasClamp; + float invMass; + uint32_t nodeIndex; + float reportThreshold; + uint32_t pad; +}; +struct physx_PxTGSSolverConstraintPrepDescBase_Pod { + physx_PxConstraintInvMassScale_Pod invMassScales; + physx_PxSolverConstraintDesc_Pod* desc; + physx_PxTGSSolverBodyVel_Pod const* body0; + physx_PxTGSSolverBodyVel_Pod const* body1; + physx_PxTGSSolverBodyTxInertia_Pod const* body0TxI; + physx_PxTGSSolverBodyTxInertia_Pod const* body1TxI; + physx_PxTGSSolverBodyData_Pod const* bodyData0; + physx_PxTGSSolverBodyData_Pod const* bodyData1; + physx_PxTransform_Pod bodyFrame0; + physx_PxTransform_Pod bodyFrame1; + int32_t bodyState0; + int32_t bodyState1; + char structgen_pad0[8]; +}; +struct physx_PxTGSSolverConstraintPrepDesc_Pod { + physx_PxConstraintInvMassScale_Pod invMassScales; + physx_PxSolverConstraintDesc_Pod* desc; + physx_PxTGSSolverBodyVel_Pod const* body0; + physx_PxTGSSolverBodyVel_Pod const* body1; + physx_PxTGSSolverBodyTxInertia_Pod const* body0TxI; + physx_PxTGSSolverBodyTxInertia_Pod const* body1TxI; + physx_PxTGSSolverBodyData_Pod const* bodyData0; + physx_PxTGSSolverBodyData_Pod const* bodyData1; + physx_PxTransform_Pod bodyFrame0; + physx_PxTransform_Pod bodyFrame1; + int32_t bodyState0; + int32_t bodyState1; + char structgen_pad0[8]; + physx_Px1DConstraint_Pod* rows; + uint32_t numRows; + float linBreakForce; + float angBreakForce; + float minResponseThreshold; + void* writeback; + bool disablePreprocessing; + bool improvedSlerp; + bool driveLimitsAreForces; + bool extendedLimits; + bool disableConstraint; + char structgen_pad1[3]; + physx_PxVec3Padded_Pod body0WorldOffset; + physx_PxVec3Padded_Pod cA2w; + physx_PxVec3Padded_Pod cB2w; + char structgen_pad2[8]; +}; +struct physx_PxTGSSolverContactDesc_Pod { + physx_PxConstraintInvMassScale_Pod invMassScales; + physx_PxSolverConstraintDesc_Pod* desc; + physx_PxTGSSolverBodyVel_Pod const* body0; + physx_PxTGSSolverBodyVel_Pod const* body1; + physx_PxTGSSolverBodyTxInertia_Pod const* body0TxI; + physx_PxTGSSolverBodyTxInertia_Pod const* body1TxI; + physx_PxTGSSolverBodyData_Pod const* bodyData0; + physx_PxTGSSolverBodyData_Pod const* bodyData1; + physx_PxTransform_Pod bodyFrame0; + physx_PxTransform_Pod bodyFrame1; + int32_t bodyState0; + int32_t bodyState1; + char structgen_pad0[8]; + void* shapeInteraction; + physx_PxContactPoint_Pod* contacts; + uint32_t numContacts; + bool hasMaxImpulse; + bool disableStrongFriction; + bool hasForceThresholds; + char structgen_pad1[1]; + float restDistance; + float maxCCDSeparation; + uint8_t* frictionPtr; + uint8_t frictionCount; + char structgen_pad2[7]; + float* contactForces; + uint32_t startFrictionPatchIndex; + uint32_t numFrictionPatches; + uint32_t startContactPatchIndex; + uint16_t numContactPatches; + uint16_t axisConstraintCount; + float maxImpulse; + float torsionalPatchRadius; + float minTorsionalPatchRadius; + float offsetSlop; + char structgen_pad3[8]; +}; +struct physx_PxArticulationSpatialTendon_Pod; +struct physx_PxArticulationFixedTendon_Pod; +struct physx_PxArticulationTendonLimit_Pod { + float lowLimit; + float highLimit; +}; +struct physx_PxArticulationAttachment_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxArticulationTendonJoint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxArticulationTendon_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxArticulationSpatialTendon_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxArticulationFixedTendon_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxSpatialForce_Pod { + physx_PxVec3_Pod force; + float pad0; + physx_PxVec3_Pod torque; + float pad1; +}; +struct physx_PxSpatialVelocity_Pod { + physx_PxVec3_Pod linear; + float pad0; + physx_PxVec3_Pod angular; + float pad1; +}; +struct physx_PxArticulationRootLinkData_Pod { + physx_PxTransform_Pod transform; + physx_PxVec3_Pod worldLinVel; + physx_PxVec3_Pod worldAngVel; + physx_PxVec3_Pod worldLinAccel; + physx_PxVec3_Pod worldAngAccel; +}; +struct physx_PxArticulationCache_Pod { + physx_PxSpatialForce_Pod* externalForces; + float* denseJacobian; + float* massMatrix; + float* jointVelocity; + float* jointAcceleration; + float* jointPosition; + float* jointForce; + float* jointSolverForces; + physx_PxSpatialVelocity_Pod* linkVelocity; + physx_PxSpatialVelocity_Pod* linkAcceleration; + physx_PxArticulationRootLinkData_Pod* rootLinkData; + physx_PxSpatialForce_Pod* sensorForces; + float* coefficientMatrix; + float* lambda; + void* scratchMemory; + void* scratchAllocator; + uint32_t version; + char structgen_pad0[4]; +}; +struct physx_PxArticulationSensor_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxArticulationReducedCoordinate_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxArticulationJointReducedCoordinate_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxFilterData_Pod; +struct physx_PxBaseMaterial_Pod; +struct physx_PxShape_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxRigidActor_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxNodeIndex_Pod { + char structgen_pad0[8]; +}; +struct physx_PxRigidBody_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxArticulationLink_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxConeLimitedConstraint_Pod { + physx_PxVec3_Pod mAxis; + float mAngle; + float mLowLimit; + float mHighLimit; +}; +struct physx_PxConeLimitParams_Pod { + physx_PxVec4_Pod lowHighLimits; + physx_PxVec4_Pod axisAngle; +}; +struct physx_PxConstraintShaderTable_Pod { + void * solverPrep; + char structgen_pad0[8]; + void * visualize; + int32_t flag; + char structgen_pad1[4]; +}; +struct physx_PxConstraint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxMassModificationProps_Pod { + float mInvMassScale0; + float mInvInertiaScale0; + float mInvMassScale1; + float mInvInertiaScale1; +}; +struct physx_PxContactPatch_Pod { + physx_PxMassModificationProps_Pod mMassModification; + physx_PxVec3_Pod normal; + float restitution; + float dynamicFriction; + float staticFriction; + float damping; + uint16_t startContactIndex; + uint8_t nbContacts; + uint8_t materialFlags; + uint16_t internalFlags; + uint16_t materialIndex0; + uint16_t materialIndex1; + uint16_t pad[5]; +}; +struct physx_PxContact_Pod { + physx_PxVec3_Pod contact; + float separation; +}; +struct physx_PxExtendedContact_Pod { + physx_PxVec3_Pod contact; + float separation; + physx_PxVec3_Pod targetVelocity; + float maxImpulse; +}; +struct physx_PxModifiableContact_Pod { + physx_PxVec3_Pod contact; + float separation; + physx_PxVec3_Pod targetVelocity; + float maxImpulse; + physx_PxVec3_Pod normal; + float restitution; + uint32_t materialFlags; + uint16_t materialIndex0; + uint16_t materialIndex1; + float staticFriction; + float dynamicFriction; +}; +struct physx_PxContactStreamIterator_Pod { + physx_PxVec3_Pod zero; + char structgen_pad0[4]; + physx_PxContactPatch_Pod const* patch; + physx_PxContact_Pod const* contact; + uint32_t const* faceIndice; + uint32_t totalPatches; + uint32_t totalContacts; + uint32_t nextContactIndex; + uint32_t nextPatchIndex; + uint32_t contactPatchHeaderSize; + uint32_t contactPointSize; + int32_t mStreamFormat; + uint32_t forceNoResponse; + bool pointStepped; + char structgen_pad1[3]; + uint32_t hasFaceIndices; +}; +struct physx_PxGpuContactPair_Pod { + uint8_t* contactPatches; + uint8_t* contactPoints; + float* contactForces; + uint32_t transformCacheRef0; + uint32_t transformCacheRef1; + physx_PxNodeIndex_Pod nodeIndex0; + physx_PxNodeIndex_Pod nodeIndex1; + physx_PxActor_Pod* actor0; + physx_PxActor_Pod* actor1; + uint16_t nbContacts; + uint16_t nbPatches; + char structgen_pad0[4]; +}; +struct physx_PxContactSet_Pod { + char structgen_pad0[16]; +}; +struct physx_PxContactModifyPair_Pod { + physx_PxRigidActor_Pod const* actor[2]; + physx_PxShape_Pod const* shape[2]; + physx_PxTransform_Pod transform[2]; + physx_PxContactSet_Pod contacts; +}; +struct physx_PxContactModifyCallback_Pod { + void* vtable_; +}; +struct physx_PxCCDContactModifyCallback_Pod { + void* vtable_; +}; +struct physx_PxDeletionListener_Pod { + void* vtable_; +}; +struct physx_PxBaseMaterial_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxFEMMaterial_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxFilterData_Pod { + uint32_t word0; + uint32_t word1; + uint32_t word2; + uint32_t word3; +}; +struct physx_PxSimulationFilterCallback_Pod { + void* vtable_; +}; +struct physx_PxParticleRigidFilterPair_Pod { + uint64_t mID0; + uint64_t mID1; +}; +struct physx_PxLockedData_Pod { + void* vtable_; +}; +struct physx_PxMaterial_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxGpuParticleBufferIndexPair_Pod { + uint32_t systemIndex; + uint32_t bufferIndex; +}; +struct physx_PxCudaContextManager_Pod; +struct physx_PxParticleRigidAttachment_Pod; +struct physx_PxParticleVolume_Pod { + physx_PxBounds3_Pod bound; + uint32_t particleIndicesOffset; + uint32_t numParticles; +}; +struct physx_PxDiffuseParticleParams_Pod { + float threshold; + float lifetime; + float airDrag; + float bubbleDrag; + float buoyancy; + float kineticEnergyWeight; + float pressureWeight; + float divergenceWeight; + float collisionDecay; + bool useAccurateVelocity; + char structgen_pad0[3]; +}; +struct physx_PxParticleSpring_Pod { + uint32_t ind0; + uint32_t ind1; + float length; + float stiffness; + float damping; + float pad; +}; +struct physx_PxParticleMaterial_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxSceneDesc_Pod; +struct physx_PxPvd_Pod; +struct physx_PxOmniPvd_Pod; +struct physx_PxPhysics_Pod { + void* vtable_; +}; +struct physx_PxActorShape_Pod { + physx_PxRigidActor_Pod* actor; + physx_PxShape_Pod* shape; +}; +struct physx_PxRaycastHit_Pod { + uint32_t faceIndex; + uint16_t flags; + char structgen_pad0[2]; + physx_PxVec3_Pod position; + physx_PxVec3_Pod normal; + float distance; + float u; + float v; + char structgen_pad1[4]; + physx_PxRigidActor_Pod* actor; + physx_PxShape_Pod* shape; +}; +struct physx_PxOverlapHit_Pod { + uint32_t faceIndex; + char structgen_pad0[4]; + physx_PxRigidActor_Pod* actor; + physx_PxShape_Pod* shape; +}; +struct physx_PxSweepHit_Pod { + uint32_t faceIndex; + uint16_t flags; + char structgen_pad0[2]; + physx_PxVec3_Pod position; + physx_PxVec3_Pod normal; + float distance; + char structgen_pad1[4]; + physx_PxRigidActor_Pod* actor; + physx_PxShape_Pod* shape; +}; +struct physx_PxRaycastCallback_Pod { + char structgen_pad0[8]; + physx_PxRaycastHit_Pod block; + bool hasBlock; + char structgen_pad1[7]; + physx_PxRaycastHit_Pod* touches; + uint32_t maxNbTouches; + uint32_t nbTouches; +}; +struct physx_PxOverlapCallback_Pod { + char structgen_pad0[8]; + physx_PxOverlapHit_Pod block; + bool hasBlock; + char structgen_pad1[7]; + physx_PxOverlapHit_Pod* touches; + uint32_t maxNbTouches; + uint32_t nbTouches; +}; +struct physx_PxSweepCallback_Pod { + char structgen_pad0[8]; + physx_PxSweepHit_Pod block; + bool hasBlock; + char structgen_pad1[7]; + physx_PxSweepHit_Pod* touches; + uint32_t maxNbTouches; + uint32_t nbTouches; +}; +struct physx_PxRaycastBuffer_Pod { + char structgen_pad0[8]; + physx_PxRaycastHit_Pod block; + bool hasBlock; + char structgen_pad1[7]; + physx_PxRaycastHit_Pod* touches; + uint32_t maxNbTouches; + uint32_t nbTouches; +}; +struct physx_PxOverlapBuffer_Pod { + char structgen_pad0[8]; + physx_PxOverlapHit_Pod block; + bool hasBlock; + char structgen_pad1[7]; + physx_PxOverlapHit_Pod* touches; + uint32_t maxNbTouches; + uint32_t nbTouches; +}; +struct physx_PxSweepBuffer_Pod { + char structgen_pad0[8]; + physx_PxSweepHit_Pod block; + bool hasBlock; + char structgen_pad1[7]; + physx_PxSweepHit_Pod* touches; + uint32_t maxNbTouches; + uint32_t nbTouches; +}; +struct physx_PxQueryCache_Pod { + physx_PxShape_Pod* shape; + physx_PxRigidActor_Pod* actor; + uint32_t faceIndex; + char structgen_pad0[4]; +}; +struct physx_PxQueryFilterData_Pod { + physx_PxFilterData_Pod data; + uint16_t flags; + char structgen_pad0[2]; +}; +struct physx_PxQueryFilterCallback_Pod { + void* vtable_; +}; +struct physx_PxRigidDynamic_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxRigidStatic_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxSceneQuerySystem_Pod; +struct physx_PxSceneQueryDesc_Pod { + int32_t staticStructure; + int32_t dynamicStructure; + uint32_t dynamicTreeRebuildRateHint; + int32_t dynamicTreeSecondaryPruner; + int32_t staticBVHBuildStrategy; + int32_t dynamicBVHBuildStrategy; + uint32_t staticNbObjectsPerNode; + uint32_t dynamicNbObjectsPerNode; + int32_t sceneQueryUpdateMode; +}; +struct physx_PxSceneQuerySystemBase_Pod { + void* vtable_; +}; +struct physx_PxSceneSQSystem_Pod { + void* vtable_; +}; +struct physx_PxSceneQuerySystem_Pod { + void* vtable_; +}; +struct physx_PxBroadPhaseRegion_Pod { + physx_PxBounds3_Pod mBounds; + void* mUserData; +}; +struct physx_PxBroadPhaseRegionInfo_Pod { + physx_PxBroadPhaseRegion_Pod mRegion; + uint32_t mNbStaticObjects; + uint32_t mNbDynamicObjects; + bool mActive; + bool mOverlap; + char structgen_pad0[6]; +}; +struct physx_PxBroadPhaseCaps_Pod { + uint32_t mMaxNbRegions; +}; +struct physx_PxBroadPhaseDesc_Pod { + int32_t mType; + char structgen_pad0[4]; + uint64_t mContextID; + char structgen_pad1[8]; + uint32_t mFoundLostPairsCapacity; + bool mDiscardStaticVsKinematic; + bool mDiscardKinematicVsKinematic; + char structgen_pad2[2]; +}; +struct physx_PxBroadPhaseUpdateData_Pod { + uint32_t const* mCreated; + uint32_t mNbCreated; + char structgen_pad0[4]; + uint32_t const* mUpdated; + uint32_t mNbUpdated; + char structgen_pad1[4]; + uint32_t const* mRemoved; + uint32_t mNbRemoved; + char structgen_pad2[4]; + physx_PxBounds3_Pod const* mBounds; + uint32_t const* mGroups; + float const* mDistances; + uint32_t mCapacity; + char structgen_pad3[4]; +}; +struct physx_PxBroadPhasePair_Pod { + uint32_t mID0; + uint32_t mID1; +}; +struct physx_PxBroadPhaseResults_Pod { + uint32_t mNbCreatedPairs; + char structgen_pad0[4]; + physx_PxBroadPhasePair_Pod const* mCreatedPairs; + uint32_t mNbDeletedPairs; + char structgen_pad1[4]; + physx_PxBroadPhasePair_Pod const* mDeletedPairs; +}; +struct physx_PxBroadPhaseRegions_Pod { + void* vtable_; +}; +struct physx_PxBroadPhase_Pod { + void* vtable_; +}; +struct physx_PxAABBManager_Pod { + void* vtable_; +}; +struct physx_PxBroadPhaseCallback_Pod; +struct physx_PxSimulationEventCallback_Pod; +struct physx_PxSceneLimits_Pod { + uint32_t maxNbActors; + uint32_t maxNbBodies; + uint32_t maxNbStaticShapes; + uint32_t maxNbDynamicShapes; + uint32_t maxNbAggregates; + uint32_t maxNbConstraints; + uint32_t maxNbRegions; + uint32_t maxNbBroadPhaseOverlaps; +}; +struct physx_PxgDynamicsMemoryConfig_Pod { + uint32_t tempBufferCapacity; + uint32_t maxRigidContactCount; + uint32_t maxRigidPatchCount; + uint32_t heapCapacity; + uint32_t foundLostPairsCapacity; + uint32_t foundLostAggregatePairsCapacity; + uint32_t totalAggregatePairsCapacity; + uint32_t maxSoftBodyContacts; + uint32_t maxFemClothContacts; + uint32_t maxParticleContacts; + uint32_t collisionStackSize; + uint32_t maxHairContacts; +}; +struct physx_PxSceneDesc_Pod { + int32_t staticStructure; + int32_t dynamicStructure; + uint32_t dynamicTreeRebuildRateHint; + int32_t dynamicTreeSecondaryPruner; + int32_t staticBVHBuildStrategy; + int32_t dynamicBVHBuildStrategy; + uint32_t staticNbObjectsPerNode; + uint32_t dynamicNbObjectsPerNode; + int32_t sceneQueryUpdateMode; + physx_PxVec3_Pod gravity; + physx_PxSimulationEventCallback_Pod* simulationEventCallback; + physx_PxContactModifyCallback_Pod* contactModifyCallback; + physx_PxCCDContactModifyCallback_Pod* ccdContactModifyCallback; + void const* filterShaderData; + uint32_t filterShaderDataSize; + char structgen_pad0[4]; + void * filterShader; + physx_PxSimulationFilterCallback_Pod* filterCallback; + int32_t kineKineFilteringMode; + int32_t staticKineFilteringMode; + int32_t broadPhaseType; + char structgen_pad1[4]; + physx_PxBroadPhaseCallback_Pod* broadPhaseCallback; + physx_PxSceneLimits_Pod limits; + int32_t frictionType; + int32_t solverType; + float bounceThresholdVelocity; + float frictionOffsetThreshold; + float frictionCorrelationDistance; + uint32_t flags; + physx_PxCpuDispatcher_Pod* cpuDispatcher; + char structgen_pad2[8]; + void* userData; + uint32_t solverBatchSize; + uint32_t solverArticulationBatchSize; + uint32_t nbContactDataBlocks; + uint32_t maxNbContactDataBlocks; + float maxBiasCoefficient; + uint32_t contactReportStreamBufferSize; + uint32_t ccdMaxPasses; + float ccdThreshold; + float ccdMaxSeparation; + float wakeCounterResetValue; + physx_PxBounds3_Pod sanityBounds; + physx_PxgDynamicsMemoryConfig_Pod gpuDynamicsConfig; + uint32_t gpuMaxNumPartitions; + uint32_t gpuMaxNumStaticPartitions; + uint32_t gpuComputeVersion; + uint32_t contactPairSlabSize; + physx_PxSceneQuerySystem_Pod* sceneQuerySystem; + char structgen_pad3[8]; +}; +struct physx_PxSimulationStatistics_Pod { + uint32_t nbActiveConstraints; + uint32_t nbActiveDynamicBodies; + uint32_t nbActiveKinematicBodies; + uint32_t nbStaticBodies; + uint32_t nbDynamicBodies; + uint32_t nbKinematicBodies; + uint32_t nbShapes[11]; + uint32_t nbAggregates; + uint32_t nbArticulations; + uint32_t nbAxisSolverConstraints; + uint32_t compressedContactSize; + uint32_t requiredContactConstraintMemory; + uint32_t peakConstraintMemory; + uint32_t nbDiscreteContactPairsTotal; + uint32_t nbDiscreteContactPairsWithCacheHits; + uint32_t nbDiscreteContactPairsWithContacts; + uint32_t nbNewPairs; + uint32_t nbLostPairs; + uint32_t nbNewTouches; + uint32_t nbLostTouches; + uint32_t nbPartitions; + char structgen_pad0[4]; + uint64_t gpuMemParticles; + uint64_t gpuMemSoftBodies; + uint64_t gpuMemFEMCloths; + uint64_t gpuMemHairSystems; + uint64_t gpuMemHeap; + uint64_t gpuMemHeapBroadPhase; + uint64_t gpuMemHeapNarrowPhase; + uint64_t gpuMemHeapSolver; + uint64_t gpuMemHeapArticulation; + uint64_t gpuMemHeapSimulation; + uint64_t gpuMemHeapSimulationArticulation; + uint64_t gpuMemHeapSimulationParticles; + uint64_t gpuMemHeapSimulationSoftBody; + uint64_t gpuMemHeapSimulationFEMCloth; + uint64_t gpuMemHeapSimulationHairSystem; + uint64_t gpuMemHeapParticles; + uint64_t gpuMemHeapSoftBodies; + uint64_t gpuMemHeapFEMCloths; + uint64_t gpuMemHeapHairSystems; + uint64_t gpuMemHeapOther; + uint32_t nbBroadPhaseAdds; + uint32_t nbBroadPhaseRemoves; + uint32_t nbDiscreteContactPairs[11][11]; + uint32_t nbCCDPairs[11][11]; + uint32_t nbModifiedContactPairs[11][11]; + uint32_t nbTriggerPairs[11][11]; +}; +struct physx_PxGpuBodyData_Pod { + physx_PxQuat_Pod quat; + physx_PxVec4_Pod pos; + physx_PxVec4_Pod linVel; + physx_PxVec4_Pod angVel; +}; +struct physx_PxGpuActorPair_Pod { + uint32_t srcIndex; + char structgen_pad0[4]; + physx_PxNodeIndex_Pod nodeIndex; +}; +struct physx_PxIndexDataPair_Pod { + uint32_t index; + char structgen_pad0[4]; + void* data; +}; +struct physx_PxPvdSceneClient_Pod { + void* vtable_; +}; +struct physx_PxContactPairHeader_Pod; +struct physx_PxDominanceGroupPair_Pod { + uint8_t dominance0; + uint8_t dominance1; +}; +struct physx_PxBroadPhaseCallback_Pod { + void* vtable_; +}; +struct physx_PxScene_Pod { + char structgen_pad0[8]; + void* userData; +}; +struct physx_PxSceneReadLock_Pod { + char structgen_pad0[8]; +}; +struct physx_PxSceneWriteLock_Pod { + char structgen_pad0[8]; +}; +struct physx_PxContactPairExtraDataItem_Pod { + uint8_t type; +}; +struct physx_PxContactPairVelocity_Pod { + uint8_t type; + char structgen_pad0[3]; + physx_PxVec3_Pod linearVelocity[2]; + physx_PxVec3_Pod angularVelocity[2]; +}; +struct physx_PxContactPairPose_Pod { + uint8_t type; + char structgen_pad0[3]; + physx_PxTransform_Pod globalPose[2]; +}; +struct physx_PxContactPairIndex_Pod { + uint8_t type; + char structgen_pad0[1]; + uint16_t index; +}; +struct physx_PxContactPairExtraDataIterator_Pod { + uint8_t const* currPtr; + uint8_t const* endPtr; + physx_PxContactPairVelocity_Pod const* preSolverVelocity; + physx_PxContactPairVelocity_Pod const* postSolverVelocity; + physx_PxContactPairPose_Pod const* eventPose; + uint32_t contactPairIndex; + char structgen_pad0[4]; +}; +struct physx_PxContactPair_Pod; +struct physx_PxContactPairHeader_Pod { + physx_PxActor_Pod* actors[2]; + uint8_t const* extraDataStream; + uint16_t extraDataStreamSize; + uint16_t flags; + char structgen_pad0[4]; + physx_PxContactPair_Pod const* pairs; + uint32_t nbPairs; + char structgen_pad1[4]; +}; +struct physx_PxContactPairPoint_Pod { + physx_PxVec3_Pod position; + float separation; + physx_PxVec3_Pod normal; + uint32_t internalFaceIndex0; + physx_PxVec3_Pod impulse; + uint32_t internalFaceIndex1; +}; +struct physx_PxContactPair_Pod { + physx_PxShape_Pod* shapes[2]; + uint8_t const* contactPatches; + uint8_t const* contactPoints; + float const* contactImpulses; + uint32_t requiredBufferSize; + uint8_t contactCount; + uint8_t patchCount; + uint16_t contactStreamSize; + uint16_t flags; + uint16_t events; + uint32_t internalData[2]; + char structgen_pad0[4]; +}; +struct physx_PxTriggerPair_Pod { + physx_PxShape_Pod* triggerShape; + physx_PxActor_Pod* triggerActor; + physx_PxShape_Pod* otherShape; + physx_PxActor_Pod* otherActor; + int32_t status; + uint8_t flags; + char structgen_pad0[3]; +}; +struct physx_PxConstraintInfo_Pod { + physx_PxConstraint_Pod* constraint; + void* externalReference; + uint32_t type; + char structgen_pad0[4]; +}; +struct physx_PxSimulationEventCallback_Pod { + void* vtable_; +}; +struct physx_PxFEMParameters_Pod { + float velocityDamping; + float settlingThreshold; + float sleepThreshold; + float sleepDamping; + float selfCollisionFilterDistance; + float selfCollisionStressTolerance; +}; +struct physx_PxPruningStructure_Pod { + char structgen_pad0[16]; +}; +struct physx_PxExtendedVec3_Pod { + double x; + double y; + double z; +}; +struct physx_PxControllerManager_Pod; +struct physx_PxObstacle_Pod { + char structgen_pad0[8]; + void* mUserData; + physx_PxExtendedVec3_Pod mPos; + physx_PxQuat_Pod mRot; +}; +struct physx_PxBoxObstacle_Pod { + char structgen_pad0[8]; + void* mUserData; + physx_PxExtendedVec3_Pod mPos; + physx_PxQuat_Pod mRot; + physx_PxVec3_Pod mHalfExtents; + char structgen_pad1[4]; +}; +struct physx_PxCapsuleObstacle_Pod { + char structgen_pad0[8]; + void* mUserData; + physx_PxExtendedVec3_Pod mPos; + physx_PxQuat_Pod mRot; + float mHalfHeight; + float mRadius; +}; +struct physx_PxObstacleContext_Pod { + void* vtable_; +}; +struct physx_PxController_Pod; +struct physx_PxControllerBehaviorCallback_Pod; +struct physx_PxControllerState_Pod { + physx_PxVec3_Pod deltaXP; + char structgen_pad0[4]; + physx_PxShape_Pod* touchedShape; + physx_PxRigidActor_Pod* touchedActor; + uint32_t touchedObstacleHandle; + uint32_t collisionFlags; + bool standOnAnotherCCT; + bool standOnObstacle; + bool isMovingUp; + char structgen_pad1[5]; +}; +struct physx_PxControllerStats_Pod { + uint16_t nbIterations; + uint16_t nbFullUpdates; + uint16_t nbPartialUpdates; + uint16_t nbTessellation; +}; +struct physx_PxControllerHit_Pod { + physx_PxController_Pod* controller; + physx_PxExtendedVec3_Pod worldPos; + physx_PxVec3_Pod worldNormal; + physx_PxVec3_Pod dir; + float length; + char structgen_pad0[4]; +}; +struct physx_PxControllerShapeHit_Pod { + physx_PxController_Pod* controller; + physx_PxExtendedVec3_Pod worldPos; + physx_PxVec3_Pod worldNormal; + physx_PxVec3_Pod dir; + float length; + char structgen_pad0[4]; + physx_PxShape_Pod* shape; + physx_PxRigidActor_Pod* actor; + uint32_t triangleIndex; + char structgen_pad1[4]; +}; +struct physx_PxControllersHit_Pod { + physx_PxController_Pod* controller; + physx_PxExtendedVec3_Pod worldPos; + physx_PxVec3_Pod worldNormal; + physx_PxVec3_Pod dir; + float length; + char structgen_pad0[4]; + physx_PxController_Pod* other; +}; +struct physx_PxControllerObstacleHit_Pod { + physx_PxController_Pod* controller; + physx_PxExtendedVec3_Pod worldPos; + physx_PxVec3_Pod worldNormal; + physx_PxVec3_Pod dir; + float length; + char structgen_pad0[4]; + void const* userData; +}; +struct physx_PxUserControllerHitReport_Pod { + void* vtable_; +}; +struct physx_PxControllerFilterCallback_Pod { + void* vtable_; +}; +struct physx_PxControllerFilters_Pod { + physx_PxFilterData_Pod const* mFilterData; + physx_PxQueryFilterCallback_Pod* mFilterCallback; + uint16_t mFilterFlags; + char structgen_pad0[6]; + physx_PxControllerFilterCallback_Pod* mCCTFilterCallback; +}; +struct physx_PxControllerDesc_Pod { + char structgen_pad0[8]; + physx_PxExtendedVec3_Pod position; + physx_PxVec3_Pod upDirection; + float slopeLimit; + float invisibleWallHeight; + float maxJumpHeight; + float contactOffset; + float stepOffset; + float density; + float scaleCoeff; + float volumeGrowth; + char structgen_pad1[4]; + physx_PxUserControllerHitReport_Pod* reportCallback; + physx_PxControllerBehaviorCallback_Pod* behaviorCallback; + int32_t nonWalkableMode; + char structgen_pad2[4]; + physx_PxMaterial_Pod* material; + bool registerDeletionListener; + uint8_t clientID; + char structgen_pad3[6]; + void* userData; + char structgen_pad4[8]; +}; +struct physx_PxController_Pod { + void* vtable_; +}; +struct physx_PxBoxControllerDesc_Pod { + char structgen_pad0[8]; + physx_PxExtendedVec3_Pod position; + physx_PxVec3_Pod upDirection; + float slopeLimit; + float invisibleWallHeight; + float maxJumpHeight; + float contactOffset; + float stepOffset; + float density; + float scaleCoeff; + float volumeGrowth; + char structgen_pad1[4]; + physx_PxUserControllerHitReport_Pod* reportCallback; + physx_PxControllerBehaviorCallback_Pod* behaviorCallback; + int32_t nonWalkableMode; + char structgen_pad2[4]; + physx_PxMaterial_Pod* material; + bool registerDeletionListener; + uint8_t clientID; + char structgen_pad3[6]; + void* userData; + char structgen_pad4[8]; + float halfHeight; + float halfSideExtent; + float halfForwardExtent; + char structgen_pad5[4]; +}; +struct physx_PxBoxController_Pod { + void* vtable_; +}; +struct physx_PxCapsuleControllerDesc_Pod { + char structgen_pad0[8]; + physx_PxExtendedVec3_Pod position; + physx_PxVec3_Pod upDirection; + float slopeLimit; + float invisibleWallHeight; + float maxJumpHeight; + float contactOffset; + float stepOffset; + float density; + float scaleCoeff; + float volumeGrowth; + char structgen_pad1[4]; + physx_PxUserControllerHitReport_Pod* reportCallback; + physx_PxControllerBehaviorCallback_Pod* behaviorCallback; + int32_t nonWalkableMode; + char structgen_pad2[4]; + physx_PxMaterial_Pod* material; + bool registerDeletionListener; + uint8_t clientID; + char structgen_pad3[6]; + void* userData; + char structgen_pad4[8]; + float radius; + float height; + int32_t climbingMode; + char structgen_pad5[4]; +}; +struct physx_PxCapsuleController_Pod { + void* vtable_; +}; +struct physx_PxControllerBehaviorCallback_Pod { + void* vtable_; +}; +struct physx_PxControllerManager_Pod { + void* vtable_; +}; +struct physx_PxDim3_Pod { + uint32_t x; + uint32_t y; + uint32_t z; +}; +struct physx_PxSDFDesc_Pod { + physx_PxBoundedData_Pod sdf; + physx_PxDim3_Pod dims; + physx_PxVec3_Pod meshLower; + float spacing; + uint32_t subgridSize; + int32_t bitsPerSubgridPixel; + physx_PxDim3_Pod sdfSubgrids3DTexBlockDim; + physx_PxBoundedData_Pod sdfSubgrids; + physx_PxBoundedData_Pod sdfStartSlots; + float subgridsMinSdfValue; + float subgridsMaxSdfValue; + physx_PxBounds3_Pod sdfBounds; + float narrowBandThicknessRelativeToSdfBoundsDiagonal; + uint32_t numThreadsForSdfConstruction; +}; +struct physx_PxConvexMeshDesc_Pod { + physx_PxBoundedData_Pod points; + physx_PxBoundedData_Pod polygons; + physx_PxBoundedData_Pod indices; + uint16_t flags; + uint16_t vertexLimit; + uint16_t polygonLimit; + uint16_t quantizedCount; + physx_PxSDFDesc_Pod* sdfDesc; +}; +struct physx_PxTriangleMeshDesc_Pod { + physx_PxBoundedData_Pod points; + physx_PxBoundedData_Pod triangles; + uint16_t flags; + char structgen_pad0[22]; + physx_PxSDFDesc_Pod* sdfDesc; +}; +struct physx_PxTetrahedronMeshDesc_Pod { + char structgen_pad0[16]; + physx_PxBoundedData_Pod points; + physx_PxBoundedData_Pod tetrahedrons; + uint16_t flags; + uint16_t tetsPerElement; + char structgen_pad1[4]; +}; +struct physx_PxSoftBodySimulationDataDesc_Pod { + physx_PxBoundedData_Pod vertexToTet; +}; +struct physx_PxBVH34MidphaseDesc_Pod { + uint32_t numPrimsPerLeaf; + int32_t buildStrategy; + bool quantized; + char structgen_pad0[3]; +}; +struct physx_PxMidphaseDesc_Pod { + char structgen_pad0[16]; +}; +struct physx_PxBVHDesc_Pod { + physx_PxBoundedData_Pod bounds; + float enlargement; + uint32_t numPrimsPerLeaf; + int32_t buildStrategy; + char structgen_pad0[4]; +}; +struct physx_PxCookingParams_Pod { + float areaTestEpsilon; + float planeTolerance; + int32_t convexMeshCookingType; + bool suppressTriangleMeshRemapTable; + bool buildTriangleAdjacencies; + bool buildGPUData; + char structgen_pad0[1]; + physx_PxTolerancesScale_Pod scale; + uint32_t meshPreprocessParams; + float meshWeldTolerance; + physx_PxMidphaseDesc_Pod midphaseDesc; + uint32_t gaussMapLimit; + float maxWeightRatioInTet; +}; +struct physx_PxDefaultMemoryOutputStream_Pod { + char structgen_pad0[32]; +}; +struct physx_PxDefaultMemoryInputData_Pod { + char structgen_pad0[32]; +}; +struct physx_PxDefaultFileOutputStream_Pod { + char structgen_pad0[16]; +}; +struct physx_PxDefaultFileInputData_Pod { + char structgen_pad0[24]; +}; +struct physx_PxDefaultAllocator_Pod { + void* vtable_; +}; +struct physx_PxJoint_Pod; +struct physx_PxRackAndPinionJoint_Pod; +struct physx_PxGearJoint_Pod; +struct physx_PxD6Joint_Pod; +struct physx_PxDistanceJoint_Pod; +struct physx_PxContactJoint_Pod; +struct physx_PxFixedJoint_Pod; +struct physx_PxPrismaticJoint_Pod; +struct physx_PxRevoluteJoint_Pod; +struct physx_PxSphericalJoint_Pod; +struct physx_PxJoint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxSpring_Pod { + float stiffness; + float damping; +}; +struct physx_PxDistanceJoint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxJacobianRow_Pod { + physx_PxVec3_Pod linear0; + physx_PxVec3_Pod linear1; + physx_PxVec3_Pod angular0; + physx_PxVec3_Pod angular1; +}; +struct physx_PxContactJoint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxFixedJoint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxJointLimitParameters_Pod { + float restitution; + float bounceThreshold; + float stiffness; + float damping; + float contactDistance_deprecated; +}; +struct physx_PxJointLinearLimit_Pod { + float restitution; + float bounceThreshold; + float stiffness; + float damping; + float contactDistance_deprecated; + float value; +}; +struct physx_PxJointLinearLimitPair_Pod { + float restitution; + float bounceThreshold; + float stiffness; + float damping; + float contactDistance_deprecated; + float upper; + float lower; +}; +struct physx_PxJointAngularLimitPair_Pod { + float restitution; + float bounceThreshold; + float stiffness; + float damping; + float contactDistance_deprecated; + float upper; + float lower; +}; +struct physx_PxJointLimitCone_Pod { + float restitution; + float bounceThreshold; + float stiffness; + float damping; + float contactDistance_deprecated; + float yAngle; + float zAngle; +}; +struct physx_PxJointLimitPyramid_Pod { + float restitution; + float bounceThreshold; + float stiffness; + float damping; + float contactDistance_deprecated; + float yAngleMin; + float yAngleMax; + float zAngleMin; + float zAngleMax; +}; +struct physx_PxPrismaticJoint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxRevoluteJoint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxSphericalJoint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxD6JointDrive_Pod { + float stiffness; + float damping; + float forceLimit; + uint32_t flags; +}; +struct physx_PxD6Joint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxGearJoint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxRackAndPinionJoint_Pod { + char structgen_pad0[16]; + void* userData; +}; +struct physx_PxGroupsMask_Pod { + uint16_t bits0; + uint16_t bits1; + uint16_t bits2; + uint16_t bits3; +}; +struct physx_PxDefaultErrorCallback_Pod { + void* vtable_; +}; +struct physx_PxRigidActorExt_Pod { + char structgen_pad0[1]; +}; +struct physx_PxMassProperties_Pod { + physx_PxMat33_Pod inertiaTensor; + physx_PxVec3_Pod centerOfMass; + float mass; +}; +struct physx_PxRigidBodyExt_Pod { + char structgen_pad0[1]; +}; +struct physx_PxShapeExt_Pod { + char structgen_pad0[1]; +}; +struct physx_PxMeshOverlapUtil_Pod { + char structgen_pad0[1040]; +}; +struct physx_PxBinaryConverter_Pod; +struct physx_PxXmlMiscParameter_Pod { + physx_PxVec3_Pod upVector; + physx_PxTolerancesScale_Pod scale; +}; +struct physx_PxSerialization_Pod { + char structgen_pad0[1]; +}; +struct physx_PxDefaultCpuDispatcher_Pod { + void* vtable_; +}; +struct physx_PxStringTableExt_Pod { + char structgen_pad0[1]; +}; +struct physx_PxBroadPhaseExt_Pod { + char structgen_pad0[1]; +}; +struct physx_PxSceneQueryExt_Pod { + char structgen_pad0[1]; +}; +struct physx_PxBatchQueryExt_Pod { + void* vtable_; +}; +struct physx_PxCustomSceneQuerySystem_Pod { + void* vtable_; +}; +struct physx_PxCustomSceneQuerySystemAdapter_Pod { + void* vtable_; +}; +struct physx_PxSamplingExt_Pod { + char structgen_pad0[1]; +}; +struct physx_PxPoissonSampler_Pod { + char structgen_pad0[8]; +}; +struct physx_PxTriangleMeshPoissonSampler_Pod { + char structgen_pad0[24]; +}; +struct physx_PxTetrahedronMeshExt_Pod { + char structgen_pad0[1]; +}; +struct physx_PxRepXObject_Pod { + char const* typeName; + void const* serializable; + uint64_t id; +}; +struct physx_PxCooking_Pod; +struct physx_PxRepXInstantiationArgs_Pod { + char structgen_pad0[8]; + physx_PxCooking_Pod* cooker; + physx_PxStringTable_Pod* stringTable; +}; +struct physx_XmlMemoryAllocator_Pod; +struct physx_XmlWriter_Pod; +struct physx_XmlReader_Pod; +struct physx_MemoryBuffer_Pod; +struct physx_PxRepXSerializer_Pod { + void* vtable_; +}; +struct physx_PxVehicleWheels4SimData_Pod; +struct physx_PxVehicleWheels4DynData_Pod; +struct physx_PxVehicleTireForceCalculator_Pod; +struct physx_PxVehicleDrivableSurfaceToTireFrictionPairs_Pod; +struct physx_PxVehicleTelemetryData_Pod; +struct physx_PxPvdTransport_Pod; +struct physx_PxPvd_Pod { + void* vtable_; +}; +struct physx_PxPvdTransport_Pod { + void* vtable_; +}; diff --git a/HexaGen.Tests/spirvcross/generator.json b/HexaGen.Tests/spirvcross/generator.json index e183dd9..24c5bc1 100644 --- a/HexaGen.Tests/spirvcross/generator.json +++ b/HexaGen.Tests/spirvcross/generator.json @@ -5,6 +5,8 @@ "EnableExperimentalOptions": true, "GenerateConstructorsForStructs": true, "GenerateSizeOfStructs": false, + "GeneratePlaceholderComments": false, + "GenerateMetadata": true, "KnownConstantNames": { }, "KnownEnumValueNames": { diff --git a/HexaGen.Tests/spirvreflect/generator.json b/HexaGen.Tests/spirvreflect/generator.json new file mode 100644 index 0000000..bc31fd8 --- /dev/null +++ b/HexaGen.Tests/spirvreflect/generator.json @@ -0,0 +1,85 @@ +{ + "Namespace": "Hexa.NET.SPIRVReflect", + "ApiName": "SPIRV", + "LibName": "spirv-reflect-c-shared", + "EnableExperimentalOptions": true, + "GenerateConstructorsForStructs": true, + "GenerateSizeOfStructs": false, + "GeneratePlaceholderComments": false, + "GenerateMetadata": true, + "ClassMappings": [ + { + "ExportedName": "SpvReflectNumericTraits::Scalar", + "FriendlyName": "NumericTraitScalar" + }, + { + "ExportedName": "SpvReflectNumericTraits::Vector", + "FriendlyName": "NumericTraitVector" + }, + { + "ExportedName": "SpvReflectNumericTraits::Matrix", + "FriendlyName": "NumericTraitMatrix" + }, + { + "ExportedName": "SpvReflectEntryPoint::LocalSize", + "FriendlyName": "EntryPointLocalSize" + }, + { + "ExportedName": "SpvReflectTypeDescription::Traits", + "FriendlyName": "TypeDescriptionTraits" + }, + { + "ExportedName": "SpvReflectShaderModule::Internal", + "FriendlyName": "ShaderModuleInternal" + } + ], + "KnownConstantNames": { + }, + "KnownEnumValueNames": { + "": "" + }, + "KnownEnumPrefixes": { + }, + "KnownExtensionPrefixes": { + }, + "KnownExtensionNames": { + }, + "KnownStructMethods": { + }, + "IgnoredParts": [ + "bit" + ], + "PreserveCaps": [ + "" + ], + "Keywords": [ + "object", + "event" + ], + "TypeMappings": { + "uint8_t": "byte", + "uint16_t": "ushort", + "uint32_t": "uint", + "uint64_t": "ulong", + "int8_t": "sbyte", + "int32_t": "int", + "int16_t": "short", + "int64_t": "long", + "int64_t*": "long*", + "unsigned char": "byte", + "signed char": "sbyte", + "char": "byte", + "size_t": "nuint", + "spvc_bool": "byte", + "spvc_constant_id": "uint", + "spvc_variable_id": "uint", + "spvc_type_id": "uint", + "spvc_hlsl_binding_flags": "uint", + "spvc_msl_shader_input": "SpvcMslShaderInterfaceVar", + "spvc_msl_vertex_format": "SpvcMslShaderVariableFormat", + "SpvReflectModuleFlags": "SpvReflectModuleFlagBits", + "SpvReflectTypeFlags": "SpvReflectTypeFlagBits", + "SpvReflectDecorationFlags": "SpvReflectDecorationFlagBits", + "SpvReflectVariableFlags": "SpvReflectVariableFlagBits" + } +} \ No newline at end of file diff --git a/HexaGen.Tests/spirvreflect/include/spirv/unified1/spirv.h b/HexaGen.Tests/spirvreflect/include/spirv/unified1/spirv.h new file mode 100644 index 0000000..65becfd --- /dev/null +++ b/HexaGen.Tests/spirvreflect/include/spirv/unified1/spirv.h @@ -0,0 +1,4890 @@ +/* +** Copyright (c) 2014-2020 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a copy +** of this software and/or associated documentation files (the "Materials"), +** to deal in the Materials without restriction, including without limitation +** the rights to use, copy, modify, merge, publish, distribute, sublicense, +** and/or sell copies of the Materials, and to permit persons to whom the +** Materials are furnished to do so, subject to the following conditions: +** +** The above copyright notice and this permission notice shall be included in +** all copies or substantial portions of the Materials. +** +** MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS +** STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND +** HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/ +** +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +** OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +** THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +** FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS +** IN THE MATERIALS. +*/ + +/* +** This header is automatically generated by the same tool that creates +** the Binary Section of the SPIR-V specification. +*/ + +/* +** Enumeration tokens for SPIR-V, in various styles: +** C, C++, C++11, JSON, Lua, Python, C#, D, Beef +** +** - C will have tokens with a "Spv" prefix, e.g.: SpvSourceLanguageGLSL +** - C++ will have tokens in the "spv" name space, e.g.: spv::SourceLanguageGLSL +** - C++11 will use enum classes in the spv namespace, e.g.: +*spv::SourceLanguage::GLSL +** - Lua will use tables, e.g.: spv.SourceLanguage.GLSL +** - Python will use dictionaries, e.g.: spv['SourceLanguage']['GLSL'] +** - C# will use enum classes in the Specification class located in the "Spv" +*namespace, +** e.g.: Spv.Specification.SourceLanguage.GLSL +** - D will have tokens under the "spv" module, e.g: spv.SourceLanguage.GLSL +** - Beef will use enum classes in the Specification class located in the "Spv" +*namespace, +** e.g.: Spv.Specification.SourceLanguage.GLSL +** +** Some tokens act like mask values, which can be OR'd together, +** while others are mutually exclusive. The mask-like ones have +** "Mask" in their name, and a parallel enum that has the shift +** amount (1 << x) for each corresponding enumerant. +*/ + +#ifndef spirv_H +#define spirv_H + +typedef unsigned int SpvId; + +#define SPV_VERSION 0x10600 +#define SPV_REVISION 1 + +static const unsigned int SpvMagicNumber = 0x07230203; +static const unsigned int SpvVersion = 0x00010600; +static const unsigned int SpvRevision = 1; +static const unsigned int SpvOpCodeMask = 0xffff; +static const unsigned int SpvWordCountShift = 16; + +typedef enum SpvSourceLanguage_ { + SpvSourceLanguageUnknown = 0, + SpvSourceLanguageESSL = 1, + SpvSourceLanguageGLSL = 2, + SpvSourceLanguageOpenCL_C = 3, + SpvSourceLanguageOpenCL_CPP = 4, + SpvSourceLanguageHLSL = 5, + SpvSourceLanguageCPP_for_OpenCL = 6, + SpvSourceLanguageSYCL = 7, + SpvSourceLanguageHERO_C = 8, + SpvSourceLanguageNZSL = 9, + SpvSourceLanguageMax = 0x7fffffff, +} SpvSourceLanguage; + +typedef enum SpvExecutionModel_ { + SpvExecutionModelVertex = 0, + SpvExecutionModelTessellationControl = 1, + SpvExecutionModelTessellationEvaluation = 2, + SpvExecutionModelGeometry = 3, + SpvExecutionModelFragment = 4, + SpvExecutionModelGLCompute = 5, + SpvExecutionModelKernel = 6, + SpvExecutionModelTaskNV = 5267, + SpvExecutionModelMeshNV = 5268, + SpvExecutionModelRayGenerationKHR = 5313, + SpvExecutionModelRayGenerationNV = 5313, + SpvExecutionModelIntersectionKHR = 5314, + SpvExecutionModelIntersectionNV = 5314, + SpvExecutionModelAnyHitKHR = 5315, + SpvExecutionModelAnyHitNV = 5315, + SpvExecutionModelClosestHitKHR = 5316, + SpvExecutionModelClosestHitNV = 5316, + SpvExecutionModelMissKHR = 5317, + SpvExecutionModelMissNV = 5317, + SpvExecutionModelCallableKHR = 5318, + SpvExecutionModelCallableNV = 5318, + SpvExecutionModelTaskEXT = 5364, + SpvExecutionModelMeshEXT = 5365, + SpvExecutionModelMax = 0x7fffffff, +} SpvExecutionModel; + +typedef enum SpvAddressingModel_ { + SpvAddressingModelLogical = 0, + SpvAddressingModelPhysical32 = 1, + SpvAddressingModelPhysical64 = 2, + SpvAddressingModelPhysicalStorageBuffer64 = 5348, + SpvAddressingModelPhysicalStorageBuffer64EXT = 5348, + SpvAddressingModelMax = 0x7fffffff, +} SpvAddressingModel; + +typedef enum SpvMemoryModel_ { + SpvMemoryModelSimple = 0, + SpvMemoryModelGLSL450 = 1, + SpvMemoryModelOpenCL = 2, + SpvMemoryModelVulkan = 3, + SpvMemoryModelVulkanKHR = 3, + SpvMemoryModelMax = 0x7fffffff, +} SpvMemoryModel; + +typedef enum SpvExecutionMode_ { + SpvExecutionModeInvocations = 0, + SpvExecutionModeSpacingEqual = 1, + SpvExecutionModeSpacingFractionalEven = 2, + SpvExecutionModeSpacingFractionalOdd = 3, + SpvExecutionModeVertexOrderCw = 4, + SpvExecutionModeVertexOrderCcw = 5, + SpvExecutionModePixelCenterInteger = 6, + SpvExecutionModeOriginUpperLeft = 7, + SpvExecutionModeOriginLowerLeft = 8, + SpvExecutionModeEarlyFragmentTests = 9, + SpvExecutionModePointMode = 10, + SpvExecutionModeXfb = 11, + SpvExecutionModeDepthReplacing = 12, + SpvExecutionModeDepthGreater = 14, + SpvExecutionModeDepthLess = 15, + SpvExecutionModeDepthUnchanged = 16, + SpvExecutionModeLocalSize = 17, + SpvExecutionModeLocalSizeHint = 18, + SpvExecutionModeInputPoints = 19, + SpvExecutionModeInputLines = 20, + SpvExecutionModeInputLinesAdjacency = 21, + SpvExecutionModeTriangles = 22, + SpvExecutionModeInputTrianglesAdjacency = 23, + SpvExecutionModeQuads = 24, + SpvExecutionModeIsolines = 25, + SpvExecutionModeOutputVertices = 26, + SpvExecutionModeOutputPoints = 27, + SpvExecutionModeOutputLineStrip = 28, + SpvExecutionModeOutputTriangleStrip = 29, + SpvExecutionModeVecTypeHint = 30, + SpvExecutionModeContractionOff = 31, + SpvExecutionModeInitializer = 33, + SpvExecutionModeFinalizer = 34, + SpvExecutionModeSubgroupSize = 35, + SpvExecutionModeSubgroupsPerWorkgroup = 36, + SpvExecutionModeSubgroupsPerWorkgroupId = 37, + SpvExecutionModeLocalSizeId = 38, + SpvExecutionModeLocalSizeHintId = 39, + SpvExecutionModeNonCoherentColorAttachmentReadEXT = 4169, + SpvExecutionModeNonCoherentDepthAttachmentReadEXT = 4170, + SpvExecutionModeNonCoherentStencilAttachmentReadEXT = 4171, + SpvExecutionModeSubgroupUniformControlFlowKHR = 4421, + SpvExecutionModePostDepthCoverage = 4446, + SpvExecutionModeDenormPreserve = 4459, + SpvExecutionModeDenormFlushToZero = 4460, + SpvExecutionModeSignedZeroInfNanPreserve = 4461, + SpvExecutionModeRoundingModeRTE = 4462, + SpvExecutionModeRoundingModeRTZ = 4463, + SpvExecutionModeEarlyAndLateFragmentTestsAMD = 5017, + SpvExecutionModeStencilRefReplacingEXT = 5027, + SpvExecutionModeStencilRefUnchangedFrontAMD = 5079, + SpvExecutionModeStencilRefGreaterFrontAMD = 5080, + SpvExecutionModeStencilRefLessFrontAMD = 5081, + SpvExecutionModeStencilRefUnchangedBackAMD = 5082, + SpvExecutionModeStencilRefGreaterBackAMD = 5083, + SpvExecutionModeStencilRefLessBackAMD = 5084, + SpvExecutionModeOutputLinesEXT = 5269, + SpvExecutionModeOutputLinesNV = 5269, + SpvExecutionModeOutputPrimitivesEXT = 5270, + SpvExecutionModeOutputPrimitivesNV = 5270, + SpvExecutionModeDerivativeGroupQuadsNV = 5289, + SpvExecutionModeDerivativeGroupLinearNV = 5290, + SpvExecutionModeOutputTrianglesEXT = 5298, + SpvExecutionModeOutputTrianglesNV = 5298, + SpvExecutionModePixelInterlockOrderedEXT = 5366, + SpvExecutionModePixelInterlockUnorderedEXT = 5367, + SpvExecutionModeSampleInterlockOrderedEXT = 5368, + SpvExecutionModeSampleInterlockUnorderedEXT = 5369, + SpvExecutionModeShadingRateInterlockOrderedEXT = 5370, + SpvExecutionModeShadingRateInterlockUnorderedEXT = 5371, + SpvExecutionModeSharedLocalMemorySizeINTEL = 5618, + SpvExecutionModeRoundingModeRTPINTEL = 5620, + SpvExecutionModeRoundingModeRTNINTEL = 5621, + SpvExecutionModeFloatingPointModeALTINTEL = 5622, + SpvExecutionModeFloatingPointModeIEEEINTEL = 5623, + SpvExecutionModeMaxWorkgroupSizeINTEL = 5893, + SpvExecutionModeMaxWorkDimINTEL = 5894, + SpvExecutionModeNoGlobalOffsetINTEL = 5895, + SpvExecutionModeNumSIMDWorkitemsINTEL = 5896, + SpvExecutionModeSchedulerTargetFmaxMhzINTEL = 5903, + SpvExecutionModeStreamingInterfaceINTEL = 6154, + SpvExecutionModeRegisterMapInterfaceINTEL = 6160, + SpvExecutionModeNamedBarrierCountINTEL = 6417, + SpvExecutionModeMax = 0x7fffffff, +} SpvExecutionMode; + +typedef enum SpvStorageClass_ { + SpvStorageClassUniformConstant = 0, + SpvStorageClassInput = 1, + SpvStorageClassUniform = 2, + SpvStorageClassOutput = 3, + SpvStorageClassWorkgroup = 4, + SpvStorageClassCrossWorkgroup = 5, + SpvStorageClassPrivate = 6, + SpvStorageClassFunction = 7, + SpvStorageClassGeneric = 8, + SpvStorageClassPushConstant = 9, + SpvStorageClassAtomicCounter = 10, + SpvStorageClassImage = 11, + SpvStorageClassStorageBuffer = 12, + SpvStorageClassTileImageEXT = 4172, + SpvStorageClassCallableDataKHR = 5328, + SpvStorageClassCallableDataNV = 5328, + SpvStorageClassIncomingCallableDataKHR = 5329, + SpvStorageClassIncomingCallableDataNV = 5329, + SpvStorageClassRayPayloadKHR = 5338, + SpvStorageClassRayPayloadNV = 5338, + SpvStorageClassHitAttributeKHR = 5339, + SpvStorageClassHitAttributeNV = 5339, + SpvStorageClassIncomingRayPayloadKHR = 5342, + SpvStorageClassIncomingRayPayloadNV = 5342, + SpvStorageClassShaderRecordBufferKHR = 5343, + SpvStorageClassShaderRecordBufferNV = 5343, + SpvStorageClassPhysicalStorageBuffer = 5349, + SpvStorageClassPhysicalStorageBufferEXT = 5349, + SpvStorageClassHitObjectAttributeNV = 5385, + SpvStorageClassTaskPayloadWorkgroupEXT = 5402, + SpvStorageClassCodeSectionINTEL = 5605, + SpvStorageClassDeviceOnlyINTEL = 5936, + SpvStorageClassHostOnlyINTEL = 5937, + SpvStorageClassMax = 0x7fffffff, +} SpvStorageClass; + +typedef enum SpvDim_ { + SpvDim1D = 0, + SpvDim2D = 1, + SpvDim3D = 2, + SpvDimCube = 3, + SpvDimRect = 4, + SpvDimBuffer = 5, + SpvDimSubpassData = 6, + SpvDimTileImageDataEXT = 4173, + SpvDimMax = 0x7fffffff, +} SpvDim; + +typedef enum SpvSamplerAddressingMode_ { + SpvSamplerAddressingModeNone = 0, + SpvSamplerAddressingModeClampToEdge = 1, + SpvSamplerAddressingModeClamp = 2, + SpvSamplerAddressingModeRepeat = 3, + SpvSamplerAddressingModeRepeatMirrored = 4, + SpvSamplerAddressingModeMax = 0x7fffffff, +} SpvSamplerAddressingMode; + +typedef enum SpvSamplerFilterMode_ { + SpvSamplerFilterModeNearest = 0, + SpvSamplerFilterModeLinear = 1, + SpvSamplerFilterModeMax = 0x7fffffff, +} SpvSamplerFilterMode; + +typedef enum SpvImageFormat_ { + SpvImageFormatUnknown = 0, + SpvImageFormatRgba32f = 1, + SpvImageFormatRgba16f = 2, + SpvImageFormatR32f = 3, + SpvImageFormatRgba8 = 4, + SpvImageFormatRgba8Snorm = 5, + SpvImageFormatRg32f = 6, + SpvImageFormatRg16f = 7, + SpvImageFormatR11fG11fB10f = 8, + SpvImageFormatR16f = 9, + SpvImageFormatRgba16 = 10, + SpvImageFormatRgb10A2 = 11, + SpvImageFormatRg16 = 12, + SpvImageFormatRg8 = 13, + SpvImageFormatR16 = 14, + SpvImageFormatR8 = 15, + SpvImageFormatRgba16Snorm = 16, + SpvImageFormatRg16Snorm = 17, + SpvImageFormatRg8Snorm = 18, + SpvImageFormatR16Snorm = 19, + SpvImageFormatR8Snorm = 20, + SpvImageFormatRgba32i = 21, + SpvImageFormatRgba16i = 22, + SpvImageFormatRgba8i = 23, + SpvImageFormatR32i = 24, + SpvImageFormatRg32i = 25, + SpvImageFormatRg16i = 26, + SpvImageFormatRg8i = 27, + SpvImageFormatR16i = 28, + SpvImageFormatR8i = 29, + SpvImageFormatRgba32ui = 30, + SpvImageFormatRgba16ui = 31, + SpvImageFormatRgba8ui = 32, + SpvImageFormatR32ui = 33, + SpvImageFormatRgb10a2ui = 34, + SpvImageFormatRg32ui = 35, + SpvImageFormatRg16ui = 36, + SpvImageFormatRg8ui = 37, + SpvImageFormatR16ui = 38, + SpvImageFormatR8ui = 39, + SpvImageFormatR64ui = 40, + SpvImageFormatR64i = 41, + SpvImageFormatMax = 0x7fffffff, +} SpvImageFormat; + +typedef enum SpvImageChannelOrder_ { + SpvImageChannelOrderR = 0, + SpvImageChannelOrderA = 1, + SpvImageChannelOrderRG = 2, + SpvImageChannelOrderRA = 3, + SpvImageChannelOrderRGB = 4, + SpvImageChannelOrderRGBA = 5, + SpvImageChannelOrderBGRA = 6, + SpvImageChannelOrderARGB = 7, + SpvImageChannelOrderIntensity = 8, + SpvImageChannelOrderLuminance = 9, + SpvImageChannelOrderRx = 10, + SpvImageChannelOrderRGx = 11, + SpvImageChannelOrderRGBx = 12, + SpvImageChannelOrderDepth = 13, + SpvImageChannelOrderDepthStencil = 14, + SpvImageChannelOrdersRGB = 15, + SpvImageChannelOrdersRGBx = 16, + SpvImageChannelOrdersRGBA = 17, + SpvImageChannelOrdersBGRA = 18, + SpvImageChannelOrderABGR = 19, + SpvImageChannelOrderMax = 0x7fffffff, +} SpvImageChannelOrder; + +typedef enum SpvImageChannelDataType_ { + SpvImageChannelDataTypeSnormInt8 = 0, + SpvImageChannelDataTypeSnormInt16 = 1, + SpvImageChannelDataTypeUnormInt8 = 2, + SpvImageChannelDataTypeUnormInt16 = 3, + SpvImageChannelDataTypeUnormShort565 = 4, + SpvImageChannelDataTypeUnormShort555 = 5, + SpvImageChannelDataTypeUnormInt101010 = 6, + SpvImageChannelDataTypeSignedInt8 = 7, + SpvImageChannelDataTypeSignedInt16 = 8, + SpvImageChannelDataTypeSignedInt32 = 9, + SpvImageChannelDataTypeUnsignedInt8 = 10, + SpvImageChannelDataTypeUnsignedInt16 = 11, + SpvImageChannelDataTypeUnsignedInt32 = 12, + SpvImageChannelDataTypeHalfFloat = 13, + SpvImageChannelDataTypeFloat = 14, + SpvImageChannelDataTypeUnormInt24 = 15, + SpvImageChannelDataTypeUnormInt101010_2 = 16, + SpvImageChannelDataTypeUnsignedIntRaw10EXT = 19, + SpvImageChannelDataTypeUnsignedIntRaw12EXT = 20, + SpvImageChannelDataTypeMax = 0x7fffffff, +} SpvImageChannelDataType; + +typedef enum SpvImageOperandsShift_ { + SpvImageOperandsBiasShift = 0, + SpvImageOperandsLodShift = 1, + SpvImageOperandsGradShift = 2, + SpvImageOperandsConstOffsetShift = 3, + SpvImageOperandsOffsetShift = 4, + SpvImageOperandsConstOffsetsShift = 5, + SpvImageOperandsSampleShift = 6, + SpvImageOperandsMinLodShift = 7, + SpvImageOperandsMakeTexelAvailableShift = 8, + SpvImageOperandsMakeTexelAvailableKHRShift = 8, + SpvImageOperandsMakeTexelVisibleShift = 9, + SpvImageOperandsMakeTexelVisibleKHRShift = 9, + SpvImageOperandsNonPrivateTexelShift = 10, + SpvImageOperandsNonPrivateTexelKHRShift = 10, + SpvImageOperandsVolatileTexelShift = 11, + SpvImageOperandsVolatileTexelKHRShift = 11, + SpvImageOperandsSignExtendShift = 12, + SpvImageOperandsZeroExtendShift = 13, + SpvImageOperandsNontemporalShift = 14, + SpvImageOperandsOffsetsShift = 16, + SpvImageOperandsMax = 0x7fffffff, +} SpvImageOperandsShift; + +typedef enum SpvImageOperandsMask_ { + SpvImageOperandsMaskNone = 0, + SpvImageOperandsBiasMask = 0x00000001, + SpvImageOperandsLodMask = 0x00000002, + SpvImageOperandsGradMask = 0x00000004, + SpvImageOperandsConstOffsetMask = 0x00000008, + SpvImageOperandsOffsetMask = 0x00000010, + SpvImageOperandsConstOffsetsMask = 0x00000020, + SpvImageOperandsSampleMask = 0x00000040, + SpvImageOperandsMinLodMask = 0x00000080, + SpvImageOperandsMakeTexelAvailableMask = 0x00000100, + SpvImageOperandsMakeTexelAvailableKHRMask = 0x00000100, + SpvImageOperandsMakeTexelVisibleMask = 0x00000200, + SpvImageOperandsMakeTexelVisibleKHRMask = 0x00000200, + SpvImageOperandsNonPrivateTexelMask = 0x00000400, + SpvImageOperandsNonPrivateTexelKHRMask = 0x00000400, + SpvImageOperandsVolatileTexelMask = 0x00000800, + SpvImageOperandsVolatileTexelKHRMask = 0x00000800, + SpvImageOperandsSignExtendMask = 0x00001000, + SpvImageOperandsZeroExtendMask = 0x00002000, + SpvImageOperandsNontemporalMask = 0x00004000, + SpvImageOperandsOffsetsMask = 0x00010000, +} SpvImageOperandsMask; + +typedef enum SpvFPFastMathModeShift_ { + SpvFPFastMathModeNotNaNShift = 0, + SpvFPFastMathModeNotInfShift = 1, + SpvFPFastMathModeNSZShift = 2, + SpvFPFastMathModeAllowRecipShift = 3, + SpvFPFastMathModeFastShift = 4, + SpvFPFastMathModeAllowContractFastINTELShift = 16, + SpvFPFastMathModeAllowReassocINTELShift = 17, + SpvFPFastMathModeMax = 0x7fffffff, +} SpvFPFastMathModeShift; + +typedef enum SpvFPFastMathModeMask_ { + SpvFPFastMathModeMaskNone = 0, + SpvFPFastMathModeNotNaNMask = 0x00000001, + SpvFPFastMathModeNotInfMask = 0x00000002, + SpvFPFastMathModeNSZMask = 0x00000004, + SpvFPFastMathModeAllowRecipMask = 0x00000008, + SpvFPFastMathModeFastMask = 0x00000010, + SpvFPFastMathModeAllowContractFastINTELMask = 0x00010000, + SpvFPFastMathModeAllowReassocINTELMask = 0x00020000, +} SpvFPFastMathModeMask; + +typedef enum SpvFPRoundingMode_ { + SpvFPRoundingModeRTE = 0, + SpvFPRoundingModeRTZ = 1, + SpvFPRoundingModeRTP = 2, + SpvFPRoundingModeRTN = 3, + SpvFPRoundingModeMax = 0x7fffffff, +} SpvFPRoundingMode; + +typedef enum SpvLinkageType_ { + SpvLinkageTypeExport = 0, + SpvLinkageTypeImport = 1, + SpvLinkageTypeLinkOnceODR = 2, + SpvLinkageTypeMax = 0x7fffffff, +} SpvLinkageType; + +typedef enum SpvAccessQualifier_ { + SpvAccessQualifierReadOnly = 0, + SpvAccessQualifierWriteOnly = 1, + SpvAccessQualifierReadWrite = 2, + SpvAccessQualifierMax = 0x7fffffff, +} SpvAccessQualifier; + +typedef enum SpvFunctionParameterAttribute_ { + SpvFunctionParameterAttributeZext = 0, + SpvFunctionParameterAttributeSext = 1, + SpvFunctionParameterAttributeByVal = 2, + SpvFunctionParameterAttributeSret = 3, + SpvFunctionParameterAttributeNoAlias = 4, + SpvFunctionParameterAttributeNoCapture = 5, + SpvFunctionParameterAttributeNoWrite = 6, + SpvFunctionParameterAttributeNoReadWrite = 7, + SpvFunctionParameterAttributeRuntimeAlignedINTEL = 5940, + SpvFunctionParameterAttributeMax = 0x7fffffff, +} SpvFunctionParameterAttribute; + +typedef enum SpvDecoration_ { + SpvDecorationRelaxedPrecision = 0, + SpvDecorationSpecId = 1, + SpvDecorationBlock = 2, + SpvDecorationBufferBlock = 3, + SpvDecorationRowMajor = 4, + SpvDecorationColMajor = 5, + SpvDecorationArrayStride = 6, + SpvDecorationMatrixStride = 7, + SpvDecorationGLSLShared = 8, + SpvDecorationGLSLPacked = 9, + SpvDecorationCPacked = 10, + SpvDecorationBuiltIn = 11, + SpvDecorationNoPerspective = 13, + SpvDecorationFlat = 14, + SpvDecorationPatch = 15, + SpvDecorationCentroid = 16, + SpvDecorationSample = 17, + SpvDecorationInvariant = 18, + SpvDecorationRestrict = 19, + SpvDecorationAliased = 20, + SpvDecorationVolatile = 21, + SpvDecorationConstant = 22, + SpvDecorationCoherent = 23, + SpvDecorationNonWritable = 24, + SpvDecorationNonReadable = 25, + SpvDecorationUniform = 26, + SpvDecorationUniformId = 27, + SpvDecorationSaturatedConversion = 28, + SpvDecorationStream = 29, + SpvDecorationLocation = 30, + SpvDecorationComponent = 31, + SpvDecorationIndex = 32, + SpvDecorationBinding = 33, + SpvDecorationDescriptorSet = 34, + SpvDecorationOffset = 35, + SpvDecorationXfbBuffer = 36, + SpvDecorationXfbStride = 37, + SpvDecorationFuncParamAttr = 38, + SpvDecorationFPRoundingMode = 39, + SpvDecorationFPFastMathMode = 40, + SpvDecorationLinkageAttributes = 41, + SpvDecorationNoContraction = 42, + SpvDecorationInputAttachmentIndex = 43, + SpvDecorationAlignment = 44, + SpvDecorationMaxByteOffset = 45, + SpvDecorationAlignmentId = 46, + SpvDecorationMaxByteOffsetId = 47, + SpvDecorationNoSignedWrap = 4469, + SpvDecorationNoUnsignedWrap = 4470, + SpvDecorationWeightTextureQCOM = 4487, + SpvDecorationBlockMatchTextureQCOM = 4488, + SpvDecorationExplicitInterpAMD = 4999, + SpvDecorationOverrideCoverageNV = 5248, + SpvDecorationPassthroughNV = 5250, + SpvDecorationViewportRelativeNV = 5252, + SpvDecorationSecondaryViewportRelativeNV = 5256, + SpvDecorationPerPrimitiveEXT = 5271, + SpvDecorationPerPrimitiveNV = 5271, + SpvDecorationPerViewNV = 5272, + SpvDecorationPerTaskNV = 5273, + SpvDecorationPerVertexKHR = 5285, + SpvDecorationPerVertexNV = 5285, + SpvDecorationNonUniform = 5300, + SpvDecorationNonUniformEXT = 5300, + SpvDecorationRestrictPointer = 5355, + SpvDecorationRestrictPointerEXT = 5355, + SpvDecorationAliasedPointer = 5356, + SpvDecorationAliasedPointerEXT = 5356, + SpvDecorationHitObjectShaderRecordBufferNV = 5386, + SpvDecorationBindlessSamplerNV = 5398, + SpvDecorationBindlessImageNV = 5399, + SpvDecorationBoundSamplerNV = 5400, + SpvDecorationBoundImageNV = 5401, + SpvDecorationSIMTCallINTEL = 5599, + SpvDecorationReferencedIndirectlyINTEL = 5602, + SpvDecorationClobberINTEL = 5607, + SpvDecorationSideEffectsINTEL = 5608, + SpvDecorationVectorComputeVariableINTEL = 5624, + SpvDecorationFuncParamIOKindINTEL = 5625, + SpvDecorationVectorComputeFunctionINTEL = 5626, + SpvDecorationStackCallINTEL = 5627, + SpvDecorationGlobalVariableOffsetINTEL = 5628, + SpvDecorationCounterBuffer = 5634, + SpvDecorationHlslCounterBufferGOOGLE = 5634, + SpvDecorationHlslSemanticGOOGLE = 5635, + SpvDecorationUserSemantic = 5635, + SpvDecorationUserTypeGOOGLE = 5636, + SpvDecorationFunctionRoundingModeINTEL = 5822, + SpvDecorationFunctionDenormModeINTEL = 5823, + SpvDecorationRegisterINTEL = 5825, + SpvDecorationMemoryINTEL = 5826, + SpvDecorationNumbanksINTEL = 5827, + SpvDecorationBankwidthINTEL = 5828, + SpvDecorationMaxPrivateCopiesINTEL = 5829, + SpvDecorationSinglepumpINTEL = 5830, + SpvDecorationDoublepumpINTEL = 5831, + SpvDecorationMaxReplicatesINTEL = 5832, + SpvDecorationSimpleDualPortINTEL = 5833, + SpvDecorationMergeINTEL = 5834, + SpvDecorationBankBitsINTEL = 5835, + SpvDecorationForcePow2DepthINTEL = 5836, + SpvDecorationBurstCoalesceINTEL = 5899, + SpvDecorationCacheSizeINTEL = 5900, + SpvDecorationDontStaticallyCoalesceINTEL = 5901, + SpvDecorationPrefetchINTEL = 5902, + SpvDecorationStallEnableINTEL = 5905, + SpvDecorationFuseLoopsInFunctionINTEL = 5907, + SpvDecorationMathOpDSPModeINTEL = 5909, + SpvDecorationAliasScopeINTEL = 5914, + SpvDecorationNoAliasINTEL = 5915, + SpvDecorationInitiationIntervalINTEL = 5917, + SpvDecorationMaxConcurrencyINTEL = 5918, + SpvDecorationPipelineEnableINTEL = 5919, + SpvDecorationBufferLocationINTEL = 5921, + SpvDecorationIOPipeStorageINTEL = 5944, + SpvDecorationFunctionFloatingPointModeINTEL = 6080, + SpvDecorationSingleElementVectorINTEL = 6085, + SpvDecorationVectorComputeCallableFunctionINTEL = 6087, + SpvDecorationMediaBlockIOINTEL = 6140, + SpvDecorationLatencyControlLabelINTEL = 6172, + SpvDecorationLatencyControlConstraintINTEL = 6173, + SpvDecorationConduitKernelArgumentINTEL = 6175, + SpvDecorationRegisterMapKernelArgumentINTEL = 6176, + SpvDecorationMMHostInterfaceAddressWidthINTEL = 6177, + SpvDecorationMMHostInterfaceDataWidthINTEL = 6178, + SpvDecorationMMHostInterfaceLatencyINTEL = 6179, + SpvDecorationMMHostInterfaceReadWriteModeINTEL = 6180, + SpvDecorationMMHostInterfaceMaxBurstINTEL = 6181, + SpvDecorationMMHostInterfaceWaitRequestINTEL = 6182, + SpvDecorationStableKernelArgumentINTEL = 6183, + SpvDecorationMax = 0x7fffffff, +} SpvDecoration; + +typedef enum SpvBuiltIn_ { + SpvBuiltInPosition = 0, + SpvBuiltInPointSize = 1, + SpvBuiltInClipDistance = 3, + SpvBuiltInCullDistance = 4, + SpvBuiltInVertexId = 5, + SpvBuiltInInstanceId = 6, + SpvBuiltInPrimitiveId = 7, + SpvBuiltInInvocationId = 8, + SpvBuiltInLayer = 9, + SpvBuiltInViewportIndex = 10, + SpvBuiltInTessLevelOuter = 11, + SpvBuiltInTessLevelInner = 12, + SpvBuiltInTessCoord = 13, + SpvBuiltInPatchVertices = 14, + SpvBuiltInFragCoord = 15, + SpvBuiltInPointCoord = 16, + SpvBuiltInFrontFacing = 17, + SpvBuiltInSampleId = 18, + SpvBuiltInSamplePosition = 19, + SpvBuiltInSampleMask = 20, + SpvBuiltInFragDepth = 22, + SpvBuiltInHelperInvocation = 23, + SpvBuiltInNumWorkgroups = 24, + SpvBuiltInWorkgroupSize = 25, + SpvBuiltInWorkgroupId = 26, + SpvBuiltInLocalInvocationId = 27, + SpvBuiltInGlobalInvocationId = 28, + SpvBuiltInLocalInvocationIndex = 29, + SpvBuiltInWorkDim = 30, + SpvBuiltInGlobalSize = 31, + SpvBuiltInEnqueuedWorkgroupSize = 32, + SpvBuiltInGlobalOffset = 33, + SpvBuiltInGlobalLinearId = 34, + SpvBuiltInSubgroupSize = 36, + SpvBuiltInSubgroupMaxSize = 37, + SpvBuiltInNumSubgroups = 38, + SpvBuiltInNumEnqueuedSubgroups = 39, + SpvBuiltInSubgroupId = 40, + SpvBuiltInSubgroupLocalInvocationId = 41, + SpvBuiltInVertexIndex = 42, + SpvBuiltInInstanceIndex = 43, + SpvBuiltInCoreIDARM = 4160, + SpvBuiltInCoreCountARM = 4161, + SpvBuiltInCoreMaxIDARM = 4162, + SpvBuiltInWarpIDARM = 4163, + SpvBuiltInWarpMaxIDARM = 4164, + SpvBuiltInSubgroupEqMask = 4416, + SpvBuiltInSubgroupEqMaskKHR = 4416, + SpvBuiltInSubgroupGeMask = 4417, + SpvBuiltInSubgroupGeMaskKHR = 4417, + SpvBuiltInSubgroupGtMask = 4418, + SpvBuiltInSubgroupGtMaskKHR = 4418, + SpvBuiltInSubgroupLeMask = 4419, + SpvBuiltInSubgroupLeMaskKHR = 4419, + SpvBuiltInSubgroupLtMask = 4420, + SpvBuiltInSubgroupLtMaskKHR = 4420, + SpvBuiltInBaseVertex = 4424, + SpvBuiltInBaseInstance = 4425, + SpvBuiltInDrawIndex = 4426, + SpvBuiltInPrimitiveShadingRateKHR = 4432, + SpvBuiltInDeviceIndex = 4438, + SpvBuiltInViewIndex = 4440, + SpvBuiltInShadingRateKHR = 4444, + SpvBuiltInBaryCoordNoPerspAMD = 4992, + SpvBuiltInBaryCoordNoPerspCentroidAMD = 4993, + SpvBuiltInBaryCoordNoPerspSampleAMD = 4994, + SpvBuiltInBaryCoordSmoothAMD = 4995, + SpvBuiltInBaryCoordSmoothCentroidAMD = 4996, + SpvBuiltInBaryCoordSmoothSampleAMD = 4997, + SpvBuiltInBaryCoordPullModelAMD = 4998, + SpvBuiltInFragStencilRefEXT = 5014, + SpvBuiltInViewportMaskNV = 5253, + SpvBuiltInSecondaryPositionNV = 5257, + SpvBuiltInSecondaryViewportMaskNV = 5258, + SpvBuiltInPositionPerViewNV = 5261, + SpvBuiltInViewportMaskPerViewNV = 5262, + SpvBuiltInFullyCoveredEXT = 5264, + SpvBuiltInTaskCountNV = 5274, + SpvBuiltInPrimitiveCountNV = 5275, + SpvBuiltInPrimitiveIndicesNV = 5276, + SpvBuiltInClipDistancePerViewNV = 5277, + SpvBuiltInCullDistancePerViewNV = 5278, + SpvBuiltInLayerPerViewNV = 5279, + SpvBuiltInMeshViewCountNV = 5280, + SpvBuiltInMeshViewIndicesNV = 5281, + SpvBuiltInBaryCoordKHR = 5286, + SpvBuiltInBaryCoordNV = 5286, + SpvBuiltInBaryCoordNoPerspKHR = 5287, + SpvBuiltInBaryCoordNoPerspNV = 5287, + SpvBuiltInFragSizeEXT = 5292, + SpvBuiltInFragmentSizeNV = 5292, + SpvBuiltInFragInvocationCountEXT = 5293, + SpvBuiltInInvocationsPerPixelNV = 5293, + SpvBuiltInPrimitivePointIndicesEXT = 5294, + SpvBuiltInPrimitiveLineIndicesEXT = 5295, + SpvBuiltInPrimitiveTriangleIndicesEXT = 5296, + SpvBuiltInCullPrimitiveEXT = 5299, + SpvBuiltInLaunchIdKHR = 5319, + SpvBuiltInLaunchIdNV = 5319, + SpvBuiltInLaunchSizeKHR = 5320, + SpvBuiltInLaunchSizeNV = 5320, + SpvBuiltInWorldRayOriginKHR = 5321, + SpvBuiltInWorldRayOriginNV = 5321, + SpvBuiltInWorldRayDirectionKHR = 5322, + SpvBuiltInWorldRayDirectionNV = 5322, + SpvBuiltInObjectRayOriginKHR = 5323, + SpvBuiltInObjectRayOriginNV = 5323, + SpvBuiltInObjectRayDirectionKHR = 5324, + SpvBuiltInObjectRayDirectionNV = 5324, + SpvBuiltInRayTminKHR = 5325, + SpvBuiltInRayTminNV = 5325, + SpvBuiltInRayTmaxKHR = 5326, + SpvBuiltInRayTmaxNV = 5326, + SpvBuiltInInstanceCustomIndexKHR = 5327, + SpvBuiltInInstanceCustomIndexNV = 5327, + SpvBuiltInObjectToWorldKHR = 5330, + SpvBuiltInObjectToWorldNV = 5330, + SpvBuiltInWorldToObjectKHR = 5331, + SpvBuiltInWorldToObjectNV = 5331, + SpvBuiltInHitTNV = 5332, + SpvBuiltInHitKindKHR = 5333, + SpvBuiltInHitKindNV = 5333, + SpvBuiltInCurrentRayTimeNV = 5334, + SpvBuiltInHitTriangleVertexPositionsKHR = 5335, + SpvBuiltInIncomingRayFlagsKHR = 5351, + SpvBuiltInIncomingRayFlagsNV = 5351, + SpvBuiltInRayGeometryIndexKHR = 5352, + SpvBuiltInWarpsPerSMNV = 5374, + SpvBuiltInSMCountNV = 5375, + SpvBuiltInWarpIDNV = 5376, + SpvBuiltInSMIDNV = 5377, + SpvBuiltInCullMaskKHR = 6021, + SpvBuiltInMax = 0x7fffffff, +} SpvBuiltIn; + +typedef enum SpvSelectionControlShift_ { + SpvSelectionControlFlattenShift = 0, + SpvSelectionControlDontFlattenShift = 1, + SpvSelectionControlMax = 0x7fffffff, +} SpvSelectionControlShift; + +typedef enum SpvSelectionControlMask_ { + SpvSelectionControlMaskNone = 0, + SpvSelectionControlFlattenMask = 0x00000001, + SpvSelectionControlDontFlattenMask = 0x00000002, +} SpvSelectionControlMask; + +typedef enum SpvLoopControlShift_ { + SpvLoopControlUnrollShift = 0, + SpvLoopControlDontUnrollShift = 1, + SpvLoopControlDependencyInfiniteShift = 2, + SpvLoopControlDependencyLengthShift = 3, + SpvLoopControlMinIterationsShift = 4, + SpvLoopControlMaxIterationsShift = 5, + SpvLoopControlIterationMultipleShift = 6, + SpvLoopControlPeelCountShift = 7, + SpvLoopControlPartialCountShift = 8, + SpvLoopControlInitiationIntervalINTELShift = 16, + SpvLoopControlMaxConcurrencyINTELShift = 17, + SpvLoopControlDependencyArrayINTELShift = 18, + SpvLoopControlPipelineEnableINTELShift = 19, + SpvLoopControlLoopCoalesceINTELShift = 20, + SpvLoopControlMaxInterleavingINTELShift = 21, + SpvLoopControlSpeculatedIterationsINTELShift = 22, + SpvLoopControlNoFusionINTELShift = 23, + SpvLoopControlLoopCountINTELShift = 24, + SpvLoopControlMaxReinvocationDelayINTELShift = 25, + SpvLoopControlMax = 0x7fffffff, +} SpvLoopControlShift; + +typedef enum SpvLoopControlMask_ { + SpvLoopControlMaskNone = 0, + SpvLoopControlUnrollMask = 0x00000001, + SpvLoopControlDontUnrollMask = 0x00000002, + SpvLoopControlDependencyInfiniteMask = 0x00000004, + SpvLoopControlDependencyLengthMask = 0x00000008, + SpvLoopControlMinIterationsMask = 0x00000010, + SpvLoopControlMaxIterationsMask = 0x00000020, + SpvLoopControlIterationMultipleMask = 0x00000040, + SpvLoopControlPeelCountMask = 0x00000080, + SpvLoopControlPartialCountMask = 0x00000100, + SpvLoopControlInitiationIntervalINTELMask = 0x00010000, + SpvLoopControlMaxConcurrencyINTELMask = 0x00020000, + SpvLoopControlDependencyArrayINTELMask = 0x00040000, + SpvLoopControlPipelineEnableINTELMask = 0x00080000, + SpvLoopControlLoopCoalesceINTELMask = 0x00100000, + SpvLoopControlMaxInterleavingINTELMask = 0x00200000, + SpvLoopControlSpeculatedIterationsINTELMask = 0x00400000, + SpvLoopControlNoFusionINTELMask = 0x00800000, + SpvLoopControlLoopCountINTELMask = 0x01000000, + SpvLoopControlMaxReinvocationDelayINTELMask = 0x02000000, +} SpvLoopControlMask; + +typedef enum SpvFunctionControlShift_ { + SpvFunctionControlInlineShift = 0, + SpvFunctionControlDontInlineShift = 1, + SpvFunctionControlPureShift = 2, + SpvFunctionControlConstShift = 3, + SpvFunctionControlOptNoneINTELShift = 16, + SpvFunctionControlMax = 0x7fffffff, +} SpvFunctionControlShift; + +typedef enum SpvFunctionControlMask_ { + SpvFunctionControlMaskNone = 0, + SpvFunctionControlInlineMask = 0x00000001, + SpvFunctionControlDontInlineMask = 0x00000002, + SpvFunctionControlPureMask = 0x00000004, + SpvFunctionControlConstMask = 0x00000008, + SpvFunctionControlOptNoneINTELMask = 0x00010000, +} SpvFunctionControlMask; + +typedef enum SpvMemorySemanticsShift_ { + SpvMemorySemanticsAcquireShift = 1, + SpvMemorySemanticsReleaseShift = 2, + SpvMemorySemanticsAcquireReleaseShift = 3, + SpvMemorySemanticsSequentiallyConsistentShift = 4, + SpvMemorySemanticsUniformMemoryShift = 6, + SpvMemorySemanticsSubgroupMemoryShift = 7, + SpvMemorySemanticsWorkgroupMemoryShift = 8, + SpvMemorySemanticsCrossWorkgroupMemoryShift = 9, + SpvMemorySemanticsAtomicCounterMemoryShift = 10, + SpvMemorySemanticsImageMemoryShift = 11, + SpvMemorySemanticsOutputMemoryShift = 12, + SpvMemorySemanticsOutputMemoryKHRShift = 12, + SpvMemorySemanticsMakeAvailableShift = 13, + SpvMemorySemanticsMakeAvailableKHRShift = 13, + SpvMemorySemanticsMakeVisibleShift = 14, + SpvMemorySemanticsMakeVisibleKHRShift = 14, + SpvMemorySemanticsVolatileShift = 15, + SpvMemorySemanticsMax = 0x7fffffff, +} SpvMemorySemanticsShift; + +typedef enum SpvMemorySemanticsMask_ { + SpvMemorySemanticsMaskNone = 0, + SpvMemorySemanticsAcquireMask = 0x00000002, + SpvMemorySemanticsReleaseMask = 0x00000004, + SpvMemorySemanticsAcquireReleaseMask = 0x00000008, + SpvMemorySemanticsSequentiallyConsistentMask = 0x00000010, + SpvMemorySemanticsUniformMemoryMask = 0x00000040, + SpvMemorySemanticsSubgroupMemoryMask = 0x00000080, + SpvMemorySemanticsWorkgroupMemoryMask = 0x00000100, + SpvMemorySemanticsCrossWorkgroupMemoryMask = 0x00000200, + SpvMemorySemanticsAtomicCounterMemoryMask = 0x00000400, + SpvMemorySemanticsImageMemoryMask = 0x00000800, + SpvMemorySemanticsOutputMemoryMask = 0x00001000, + SpvMemorySemanticsOutputMemoryKHRMask = 0x00001000, + SpvMemorySemanticsMakeAvailableMask = 0x00002000, + SpvMemorySemanticsMakeAvailableKHRMask = 0x00002000, + SpvMemorySemanticsMakeVisibleMask = 0x00004000, + SpvMemorySemanticsMakeVisibleKHRMask = 0x00004000, + SpvMemorySemanticsVolatileMask = 0x00008000, +} SpvMemorySemanticsMask; + +typedef enum SpvMemoryAccessShift_ { + SpvMemoryAccessVolatileShift = 0, + SpvMemoryAccessAlignedShift = 1, + SpvMemoryAccessNontemporalShift = 2, + SpvMemoryAccessMakePointerAvailableShift = 3, + SpvMemoryAccessMakePointerAvailableKHRShift = 3, + SpvMemoryAccessMakePointerVisibleShift = 4, + SpvMemoryAccessMakePointerVisibleKHRShift = 4, + SpvMemoryAccessNonPrivatePointerShift = 5, + SpvMemoryAccessNonPrivatePointerKHRShift = 5, + SpvMemoryAccessAliasScopeINTELMaskShift = 16, + SpvMemoryAccessNoAliasINTELMaskShift = 17, + SpvMemoryAccessMax = 0x7fffffff, +} SpvMemoryAccessShift; + +typedef enum SpvMemoryAccessMask_ { + SpvMemoryAccessMaskNone = 0, + SpvMemoryAccessVolatileMask = 0x00000001, + SpvMemoryAccessAlignedMask = 0x00000002, + SpvMemoryAccessNontemporalMask = 0x00000004, + SpvMemoryAccessMakePointerAvailableMask = 0x00000008, + SpvMemoryAccessMakePointerAvailableKHRMask = 0x00000008, + SpvMemoryAccessMakePointerVisibleMask = 0x00000010, + SpvMemoryAccessMakePointerVisibleKHRMask = 0x00000010, + SpvMemoryAccessNonPrivatePointerMask = 0x00000020, + SpvMemoryAccessNonPrivatePointerKHRMask = 0x00000020, + SpvMemoryAccessAliasScopeINTELMaskMask = 0x00010000, + SpvMemoryAccessNoAliasINTELMaskMask = 0x00020000, +} SpvMemoryAccessMask; + +typedef enum SpvScope_ { + SpvScopeCrossDevice = 0, + SpvScopeDevice = 1, + SpvScopeWorkgroup = 2, + SpvScopeSubgroup = 3, + SpvScopeInvocation = 4, + SpvScopeQueueFamily = 5, + SpvScopeQueueFamilyKHR = 5, + SpvScopeShaderCallKHR = 6, + SpvScopeMax = 0x7fffffff, +} SpvScope; + +typedef enum SpvGroupOperation_ { + SpvGroupOperationReduce = 0, + SpvGroupOperationInclusiveScan = 1, + SpvGroupOperationExclusiveScan = 2, + SpvGroupOperationClusteredReduce = 3, + SpvGroupOperationPartitionedReduceNV = 6, + SpvGroupOperationPartitionedInclusiveScanNV = 7, + SpvGroupOperationPartitionedExclusiveScanNV = 8, + SpvGroupOperationMax = 0x7fffffff, +} SpvGroupOperation; + +typedef enum SpvKernelEnqueueFlags_ { + SpvKernelEnqueueFlagsNoWait = 0, + SpvKernelEnqueueFlagsWaitKernel = 1, + SpvKernelEnqueueFlagsWaitWorkGroup = 2, + SpvKernelEnqueueFlagsMax = 0x7fffffff, +} SpvKernelEnqueueFlags; + +typedef enum SpvKernelProfilingInfoShift_ { + SpvKernelProfilingInfoCmdExecTimeShift = 0, + SpvKernelProfilingInfoMax = 0x7fffffff, +} SpvKernelProfilingInfoShift; + +typedef enum SpvKernelProfilingInfoMask_ { + SpvKernelProfilingInfoMaskNone = 0, + SpvKernelProfilingInfoCmdExecTimeMask = 0x00000001, +} SpvKernelProfilingInfoMask; + +typedef enum SpvCapability_ { + SpvCapabilityMatrix = 0, + SpvCapabilityShader = 1, + SpvCapabilityGeometry = 2, + SpvCapabilityTessellation = 3, + SpvCapabilityAddresses = 4, + SpvCapabilityLinkage = 5, + SpvCapabilityKernel = 6, + SpvCapabilityVector16 = 7, + SpvCapabilityFloat16Buffer = 8, + SpvCapabilityFloat16 = 9, + SpvCapabilityFloat64 = 10, + SpvCapabilityInt64 = 11, + SpvCapabilityInt64Atomics = 12, + SpvCapabilityImageBasic = 13, + SpvCapabilityImageReadWrite = 14, + SpvCapabilityImageMipmap = 15, + SpvCapabilityPipes = 17, + SpvCapabilityGroups = 18, + SpvCapabilityDeviceEnqueue = 19, + SpvCapabilityLiteralSampler = 20, + SpvCapabilityAtomicStorage = 21, + SpvCapabilityInt16 = 22, + SpvCapabilityTessellationPointSize = 23, + SpvCapabilityGeometryPointSize = 24, + SpvCapabilityImageGatherExtended = 25, + SpvCapabilityStorageImageMultisample = 27, + SpvCapabilityUniformBufferArrayDynamicIndexing = 28, + SpvCapabilitySampledImageArrayDynamicIndexing = 29, + SpvCapabilityStorageBufferArrayDynamicIndexing = 30, + SpvCapabilityStorageImageArrayDynamicIndexing = 31, + SpvCapabilityClipDistance = 32, + SpvCapabilityCullDistance = 33, + SpvCapabilityImageCubeArray = 34, + SpvCapabilitySampleRateShading = 35, + SpvCapabilityImageRect = 36, + SpvCapabilitySampledRect = 37, + SpvCapabilityGenericPointer = 38, + SpvCapabilityInt8 = 39, + SpvCapabilityInputAttachment = 40, + SpvCapabilitySparseResidency = 41, + SpvCapabilityMinLod = 42, + SpvCapabilitySampled1D = 43, + SpvCapabilityImage1D = 44, + SpvCapabilitySampledCubeArray = 45, + SpvCapabilitySampledBuffer = 46, + SpvCapabilityImageBuffer = 47, + SpvCapabilityImageMSArray = 48, + SpvCapabilityStorageImageExtendedFormats = 49, + SpvCapabilityImageQuery = 50, + SpvCapabilityDerivativeControl = 51, + SpvCapabilityInterpolationFunction = 52, + SpvCapabilityTransformFeedback = 53, + SpvCapabilityGeometryStreams = 54, + SpvCapabilityStorageImageReadWithoutFormat = 55, + SpvCapabilityStorageImageWriteWithoutFormat = 56, + SpvCapabilityMultiViewport = 57, + SpvCapabilitySubgroupDispatch = 58, + SpvCapabilityNamedBarrier = 59, + SpvCapabilityPipeStorage = 60, + SpvCapabilityGroupNonUniform = 61, + SpvCapabilityGroupNonUniformVote = 62, + SpvCapabilityGroupNonUniformArithmetic = 63, + SpvCapabilityGroupNonUniformBallot = 64, + SpvCapabilityGroupNonUniformShuffle = 65, + SpvCapabilityGroupNonUniformShuffleRelative = 66, + SpvCapabilityGroupNonUniformClustered = 67, + SpvCapabilityGroupNonUniformQuad = 68, + SpvCapabilityShaderLayer = 69, + SpvCapabilityShaderViewportIndex = 70, + SpvCapabilityUniformDecoration = 71, + SpvCapabilityCoreBuiltinsARM = 4165, + SpvCapabilityTileImageColorReadAccessEXT = 4166, + SpvCapabilityTileImageDepthReadAccessEXT = 4167, + SpvCapabilityTileImageStencilReadAccessEXT = 4168, + SpvCapabilityFragmentShadingRateKHR = 4422, + SpvCapabilitySubgroupBallotKHR = 4423, + SpvCapabilityDrawParameters = 4427, + SpvCapabilityWorkgroupMemoryExplicitLayoutKHR = 4428, + SpvCapabilityWorkgroupMemoryExplicitLayout8BitAccessKHR = 4429, + SpvCapabilityWorkgroupMemoryExplicitLayout16BitAccessKHR = 4430, + SpvCapabilitySubgroupVoteKHR = 4431, + SpvCapabilityStorageBuffer16BitAccess = 4433, + SpvCapabilityStorageUniformBufferBlock16 = 4433, + SpvCapabilityStorageUniform16 = 4434, + SpvCapabilityUniformAndStorageBuffer16BitAccess = 4434, + SpvCapabilityStoragePushConstant16 = 4435, + SpvCapabilityStorageInputOutput16 = 4436, + SpvCapabilityDeviceGroup = 4437, + SpvCapabilityMultiView = 4439, + SpvCapabilityVariablePointersStorageBuffer = 4441, + SpvCapabilityVariablePointers = 4442, + SpvCapabilityAtomicStorageOps = 4445, + SpvCapabilitySampleMaskPostDepthCoverage = 4447, + SpvCapabilityStorageBuffer8BitAccess = 4448, + SpvCapabilityUniformAndStorageBuffer8BitAccess = 4449, + SpvCapabilityStoragePushConstant8 = 4450, + SpvCapabilityDenormPreserve = 4464, + SpvCapabilityDenormFlushToZero = 4465, + SpvCapabilitySignedZeroInfNanPreserve = 4466, + SpvCapabilityRoundingModeRTE = 4467, + SpvCapabilityRoundingModeRTZ = 4468, + SpvCapabilityRayQueryProvisionalKHR = 4471, + SpvCapabilityRayQueryKHR = 4472, + SpvCapabilityRayTraversalPrimitiveCullingKHR = 4478, + SpvCapabilityRayTracingKHR = 4479, + SpvCapabilityTextureSampleWeightedQCOM = 4484, + SpvCapabilityTextureBoxFilterQCOM = 4485, + SpvCapabilityTextureBlockMatchQCOM = 4486, + SpvCapabilityFloat16ImageAMD = 5008, + SpvCapabilityImageGatherBiasLodAMD = 5009, + SpvCapabilityFragmentMaskAMD = 5010, + SpvCapabilityStencilExportEXT = 5013, + SpvCapabilityImageReadWriteLodAMD = 5015, + SpvCapabilityInt64ImageEXT = 5016, + SpvCapabilityShaderClockKHR = 5055, + SpvCapabilitySampleMaskOverrideCoverageNV = 5249, + SpvCapabilityGeometryShaderPassthroughNV = 5251, + SpvCapabilityShaderViewportIndexLayerEXT = 5254, + SpvCapabilityShaderViewportIndexLayerNV = 5254, + SpvCapabilityShaderViewportMaskNV = 5255, + SpvCapabilityShaderStereoViewNV = 5259, + SpvCapabilityPerViewAttributesNV = 5260, + SpvCapabilityFragmentFullyCoveredEXT = 5265, + SpvCapabilityMeshShadingNV = 5266, + SpvCapabilityImageFootprintNV = 5282, + SpvCapabilityMeshShadingEXT = 5283, + SpvCapabilityFragmentBarycentricKHR = 5284, + SpvCapabilityFragmentBarycentricNV = 5284, + SpvCapabilityComputeDerivativeGroupQuadsNV = 5288, + SpvCapabilityFragmentDensityEXT = 5291, + SpvCapabilityShadingRateNV = 5291, + SpvCapabilityGroupNonUniformPartitionedNV = 5297, + SpvCapabilityShaderNonUniform = 5301, + SpvCapabilityShaderNonUniformEXT = 5301, + SpvCapabilityRuntimeDescriptorArray = 5302, + SpvCapabilityRuntimeDescriptorArrayEXT = 5302, + SpvCapabilityInputAttachmentArrayDynamicIndexing = 5303, + SpvCapabilityInputAttachmentArrayDynamicIndexingEXT = 5303, + SpvCapabilityUniformTexelBufferArrayDynamicIndexing = 5304, + SpvCapabilityUniformTexelBufferArrayDynamicIndexingEXT = 5304, + SpvCapabilityStorageTexelBufferArrayDynamicIndexing = 5305, + SpvCapabilityStorageTexelBufferArrayDynamicIndexingEXT = 5305, + SpvCapabilityUniformBufferArrayNonUniformIndexing = 5306, + SpvCapabilityUniformBufferArrayNonUniformIndexingEXT = 5306, + SpvCapabilitySampledImageArrayNonUniformIndexing = 5307, + SpvCapabilitySampledImageArrayNonUniformIndexingEXT = 5307, + SpvCapabilityStorageBufferArrayNonUniformIndexing = 5308, + SpvCapabilityStorageBufferArrayNonUniformIndexingEXT = 5308, + SpvCapabilityStorageImageArrayNonUniformIndexing = 5309, + SpvCapabilityStorageImageArrayNonUniformIndexingEXT = 5309, + SpvCapabilityInputAttachmentArrayNonUniformIndexing = 5310, + SpvCapabilityInputAttachmentArrayNonUniformIndexingEXT = 5310, + SpvCapabilityUniformTexelBufferArrayNonUniformIndexing = 5311, + SpvCapabilityUniformTexelBufferArrayNonUniformIndexingEXT = 5311, + SpvCapabilityStorageTexelBufferArrayNonUniformIndexing = 5312, + SpvCapabilityStorageTexelBufferArrayNonUniformIndexingEXT = 5312, + SpvCapabilityRayTracingPositionFetchKHR = 5336, + SpvCapabilityRayTracingNV = 5340, + SpvCapabilityRayTracingMotionBlurNV = 5341, + SpvCapabilityVulkanMemoryModel = 5345, + SpvCapabilityVulkanMemoryModelKHR = 5345, + SpvCapabilityVulkanMemoryModelDeviceScope = 5346, + SpvCapabilityVulkanMemoryModelDeviceScopeKHR = 5346, + SpvCapabilityPhysicalStorageBufferAddresses = 5347, + SpvCapabilityPhysicalStorageBufferAddressesEXT = 5347, + SpvCapabilityComputeDerivativeGroupLinearNV = 5350, + SpvCapabilityRayTracingProvisionalKHR = 5353, + SpvCapabilityCooperativeMatrixNV = 5357, + SpvCapabilityFragmentShaderSampleInterlockEXT = 5363, + SpvCapabilityFragmentShaderShadingRateInterlockEXT = 5372, + SpvCapabilityShaderSMBuiltinsNV = 5373, + SpvCapabilityFragmentShaderPixelInterlockEXT = 5378, + SpvCapabilityDemoteToHelperInvocation = 5379, + SpvCapabilityDemoteToHelperInvocationEXT = 5379, + SpvCapabilityRayTracingOpacityMicromapEXT = 5381, + SpvCapabilityShaderInvocationReorderNV = 5383, + SpvCapabilityBindlessTextureNV = 5390, + SpvCapabilityRayQueryPositionFetchKHR = 5391, + SpvCapabilitySubgroupShuffleINTEL = 5568, + SpvCapabilitySubgroupBufferBlockIOINTEL = 5569, + SpvCapabilitySubgroupImageBlockIOINTEL = 5570, + SpvCapabilitySubgroupImageMediaBlockIOINTEL = 5579, + SpvCapabilityRoundToInfinityINTEL = 5582, + SpvCapabilityFloatingPointModeINTEL = 5583, + SpvCapabilityIntegerFunctions2INTEL = 5584, + SpvCapabilityFunctionPointersINTEL = 5603, + SpvCapabilityIndirectReferencesINTEL = 5604, + SpvCapabilityAsmINTEL = 5606, + SpvCapabilityAtomicFloat32MinMaxEXT = 5612, + SpvCapabilityAtomicFloat64MinMaxEXT = 5613, + SpvCapabilityAtomicFloat16MinMaxEXT = 5616, + SpvCapabilityVectorComputeINTEL = 5617, + SpvCapabilityVectorAnyINTEL = 5619, + SpvCapabilityExpectAssumeKHR = 5629, + SpvCapabilitySubgroupAvcMotionEstimationINTEL = 5696, + SpvCapabilitySubgroupAvcMotionEstimationIntraINTEL = 5697, + SpvCapabilitySubgroupAvcMotionEstimationChromaINTEL = 5698, + SpvCapabilityVariableLengthArrayINTEL = 5817, + SpvCapabilityFunctionFloatControlINTEL = 5821, + SpvCapabilityFPGAMemoryAttributesINTEL = 5824, + SpvCapabilityFPFastMathModeINTEL = 5837, + SpvCapabilityArbitraryPrecisionIntegersINTEL = 5844, + SpvCapabilityArbitraryPrecisionFloatingPointINTEL = 5845, + SpvCapabilityUnstructuredLoopControlsINTEL = 5886, + SpvCapabilityFPGALoopControlsINTEL = 5888, + SpvCapabilityKernelAttributesINTEL = 5892, + SpvCapabilityFPGAKernelAttributesINTEL = 5897, + SpvCapabilityFPGAMemoryAccessesINTEL = 5898, + SpvCapabilityFPGAClusterAttributesINTEL = 5904, + SpvCapabilityLoopFuseINTEL = 5906, + SpvCapabilityFPGADSPControlINTEL = 5908, + SpvCapabilityMemoryAccessAliasingINTEL = 5910, + SpvCapabilityFPGAInvocationPipeliningAttributesINTEL = 5916, + SpvCapabilityFPGABufferLocationINTEL = 5920, + SpvCapabilityArbitraryPrecisionFixedPointINTEL = 5922, + SpvCapabilityUSMStorageClassesINTEL = 5935, + SpvCapabilityRuntimeAlignedAttributeINTEL = 5939, + SpvCapabilityIOPipesINTEL = 5943, + SpvCapabilityBlockingPipesINTEL = 5945, + SpvCapabilityFPGARegINTEL = 5948, + SpvCapabilityDotProductInputAll = 6016, + SpvCapabilityDotProductInputAllKHR = 6016, + SpvCapabilityDotProductInput4x8Bit = 6017, + SpvCapabilityDotProductInput4x8BitKHR = 6017, + SpvCapabilityDotProductInput4x8BitPacked = 6018, + SpvCapabilityDotProductInput4x8BitPackedKHR = 6018, + SpvCapabilityDotProduct = 6019, + SpvCapabilityDotProductKHR = 6019, + SpvCapabilityRayCullMaskKHR = 6020, + SpvCapabilityCooperativeMatrixKHR = 6022, + SpvCapabilityBitInstructions = 6025, + SpvCapabilityGroupNonUniformRotateKHR = 6026, + SpvCapabilityAtomicFloat32AddEXT = 6033, + SpvCapabilityAtomicFloat64AddEXT = 6034, + SpvCapabilityLongConstantCompositeINTEL = 6089, + SpvCapabilityOptNoneINTEL = 6094, + SpvCapabilityAtomicFloat16AddEXT = 6095, + SpvCapabilityDebugInfoModuleINTEL = 6114, + SpvCapabilityBFloat16ConversionINTEL = 6115, + SpvCapabilitySplitBarrierINTEL = 6141, + SpvCapabilityFPGAKernelAttributesv2INTEL = 6161, + SpvCapabilityFPGALatencyControlINTEL = 6171, + SpvCapabilityFPGAArgumentInterfacesINTEL = 6174, + SpvCapabilityGroupUniformArithmeticKHR = 6400, + SpvCapabilityMax = 0x7fffffff, +} SpvCapability; + +typedef enum SpvRayFlagsShift_ { + SpvRayFlagsOpaqueKHRShift = 0, + SpvRayFlagsNoOpaqueKHRShift = 1, + SpvRayFlagsTerminateOnFirstHitKHRShift = 2, + SpvRayFlagsSkipClosestHitShaderKHRShift = 3, + SpvRayFlagsCullBackFacingTrianglesKHRShift = 4, + SpvRayFlagsCullFrontFacingTrianglesKHRShift = 5, + SpvRayFlagsCullOpaqueKHRShift = 6, + SpvRayFlagsCullNoOpaqueKHRShift = 7, + SpvRayFlagsSkipTrianglesKHRShift = 8, + SpvRayFlagsSkipAABBsKHRShift = 9, + SpvRayFlagsForceOpacityMicromap2StateEXTShift = 10, + SpvRayFlagsMax = 0x7fffffff, +} SpvRayFlagsShift; + +typedef enum SpvRayFlagsMask_ { + SpvRayFlagsMaskNone = 0, + SpvRayFlagsOpaqueKHRMask = 0x00000001, + SpvRayFlagsNoOpaqueKHRMask = 0x00000002, + SpvRayFlagsTerminateOnFirstHitKHRMask = 0x00000004, + SpvRayFlagsSkipClosestHitShaderKHRMask = 0x00000008, + SpvRayFlagsCullBackFacingTrianglesKHRMask = 0x00000010, + SpvRayFlagsCullFrontFacingTrianglesKHRMask = 0x00000020, + SpvRayFlagsCullOpaqueKHRMask = 0x00000040, + SpvRayFlagsCullNoOpaqueKHRMask = 0x00000080, + SpvRayFlagsSkipTrianglesKHRMask = 0x00000100, + SpvRayFlagsSkipAABBsKHRMask = 0x00000200, + SpvRayFlagsForceOpacityMicromap2StateEXTMask = 0x00000400, +} SpvRayFlagsMask; + +typedef enum SpvRayQueryIntersection_ { + SpvRayQueryIntersectionRayQueryCandidateIntersectionKHR = 0, + SpvRayQueryIntersectionRayQueryCommittedIntersectionKHR = 1, + SpvRayQueryIntersectionMax = 0x7fffffff, +} SpvRayQueryIntersection; + +typedef enum SpvRayQueryCommittedIntersectionType_ { + SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionNoneKHR = 0, + SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionTriangleKHR = + 1, + SpvRayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionGeneratedKHR = + 2, + SpvRayQueryCommittedIntersectionTypeMax = 0x7fffffff, +} SpvRayQueryCommittedIntersectionType; + +typedef enum SpvRayQueryCandidateIntersectionType_ { + SpvRayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionTriangleKHR = + 0, + SpvRayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionAABBKHR = 1, + SpvRayQueryCandidateIntersectionTypeMax = 0x7fffffff, +} SpvRayQueryCandidateIntersectionType; + +typedef enum SpvFragmentShadingRateShift_ { + SpvFragmentShadingRateVertical2PixelsShift = 0, + SpvFragmentShadingRateVertical4PixelsShift = 1, + SpvFragmentShadingRateHorizontal2PixelsShift = 2, + SpvFragmentShadingRateHorizontal4PixelsShift = 3, + SpvFragmentShadingRateMax = 0x7fffffff, +} SpvFragmentShadingRateShift; + +typedef enum SpvFragmentShadingRateMask_ { + SpvFragmentShadingRateMaskNone = 0, + SpvFragmentShadingRateVertical2PixelsMask = 0x00000001, + SpvFragmentShadingRateVertical4PixelsMask = 0x00000002, + SpvFragmentShadingRateHorizontal2PixelsMask = 0x00000004, + SpvFragmentShadingRateHorizontal4PixelsMask = 0x00000008, +} SpvFragmentShadingRateMask; + +typedef enum SpvFPDenormMode_ { + SpvFPDenormModePreserve = 0, + SpvFPDenormModeFlushToZero = 1, + SpvFPDenormModeMax = 0x7fffffff, +} SpvFPDenormMode; + +typedef enum SpvFPOperationMode_ { + SpvFPOperationModeIEEE = 0, + SpvFPOperationModeALT = 1, + SpvFPOperationModeMax = 0x7fffffff, +} SpvFPOperationMode; + +typedef enum SpvQuantizationModes_ { + SpvQuantizationModesTRN = 0, + SpvQuantizationModesTRN_ZERO = 1, + SpvQuantizationModesRND = 2, + SpvQuantizationModesRND_ZERO = 3, + SpvQuantizationModesRND_INF = 4, + SpvQuantizationModesRND_MIN_INF = 5, + SpvQuantizationModesRND_CONV = 6, + SpvQuantizationModesRND_CONV_ODD = 7, + SpvQuantizationModesMax = 0x7fffffff, +} SpvQuantizationModes; + +typedef enum SpvOverflowModes_ { + SpvOverflowModesWRAP = 0, + SpvOverflowModesSAT = 1, + SpvOverflowModesSAT_ZERO = 2, + SpvOverflowModesSAT_SYM = 3, + SpvOverflowModesMax = 0x7fffffff, +} SpvOverflowModes; + +typedef enum SpvPackedVectorFormat_ { + SpvPackedVectorFormatPackedVectorFormat4x8Bit = 0, + SpvPackedVectorFormatPackedVectorFormat4x8BitKHR = 0, + SpvPackedVectorFormatMax = 0x7fffffff, +} SpvPackedVectorFormat; + +typedef enum SpvCooperativeMatrixOperandsShift_ { + SpvCooperativeMatrixOperandsMatrixASignedComponentsShift = 0, + SpvCooperativeMatrixOperandsMatrixBSignedComponentsShift = 1, + SpvCooperativeMatrixOperandsMatrixCSignedComponentsShift = 2, + SpvCooperativeMatrixOperandsMatrixResultSignedComponentsShift = 3, + SpvCooperativeMatrixOperandsSaturatingAccumulationShift = 4, + SpvCooperativeMatrixOperandsMax = 0x7fffffff, +} SpvCooperativeMatrixOperandsShift; + +typedef enum SpvCooperativeMatrixOperandsMask_ { + SpvCooperativeMatrixOperandsMaskNone = 0, + SpvCooperativeMatrixOperandsMatrixASignedComponentsMask = 0x00000001, + SpvCooperativeMatrixOperandsMatrixBSignedComponentsMask = 0x00000002, + SpvCooperativeMatrixOperandsMatrixCSignedComponentsMask = 0x00000004, + SpvCooperativeMatrixOperandsMatrixResultSignedComponentsMask = 0x00000008, + SpvCooperativeMatrixOperandsSaturatingAccumulationMask = 0x00000010, +} SpvCooperativeMatrixOperandsMask; + +typedef enum SpvCooperativeMatrixLayout_ { + SpvCooperativeMatrixLayoutRowMajorKHR = 0, + SpvCooperativeMatrixLayoutColumnMajorKHR = 1, + SpvCooperativeMatrixLayoutMax = 0x7fffffff, +} SpvCooperativeMatrixLayout; + +typedef enum SpvCooperativeMatrixUse_ { + SpvCooperativeMatrixUseMatrixAKHR = 0, + SpvCooperativeMatrixUseMatrixBKHR = 1, + SpvCooperativeMatrixUseMatrixAccumulatorKHR = 2, + SpvCooperativeMatrixUseMax = 0x7fffffff, +} SpvCooperativeMatrixUse; + +typedef enum SpvOp_ { + SpvOpNop = 0, + SpvOpUndef = 1, + SpvOpSourceContinued = 2, + SpvOpSource = 3, + SpvOpSourceExtension = 4, + SpvOpName = 5, + SpvOpMemberName = 6, + SpvOpString = 7, + SpvOpLine = 8, + SpvOpExtension = 10, + SpvOpExtInstImport = 11, + SpvOpExtInst = 12, + SpvOpMemoryModel = 14, + SpvOpEntryPoint = 15, + SpvOpExecutionMode = 16, + SpvOpCapability = 17, + SpvOpTypeVoid = 19, + SpvOpTypeBool = 20, + SpvOpTypeInt = 21, + SpvOpTypeFloat = 22, + SpvOpTypeVector = 23, + SpvOpTypeMatrix = 24, + SpvOpTypeImage = 25, + SpvOpTypeSampler = 26, + SpvOpTypeSampledImage = 27, + SpvOpTypeArray = 28, + SpvOpTypeRuntimeArray = 29, + SpvOpTypeStruct = 30, + SpvOpTypeOpaque = 31, + SpvOpTypePointer = 32, + SpvOpTypeFunction = 33, + SpvOpTypeEvent = 34, + SpvOpTypeDeviceEvent = 35, + SpvOpTypeReserveId = 36, + SpvOpTypeQueue = 37, + SpvOpTypePipe = 38, + SpvOpTypeForwardPointer = 39, + SpvOpConstantTrue = 41, + SpvOpConstantFalse = 42, + SpvOpConstant = 43, + SpvOpConstantComposite = 44, + SpvOpConstantSampler = 45, + SpvOpConstantNull = 46, + SpvOpSpecConstantTrue = 48, + SpvOpSpecConstantFalse = 49, + SpvOpSpecConstant = 50, + SpvOpSpecConstantComposite = 51, + SpvOpSpecConstantOp = 52, + SpvOpFunction = 54, + SpvOpFunctionParameter = 55, + SpvOpFunctionEnd = 56, + SpvOpFunctionCall = 57, + SpvOpVariable = 59, + SpvOpImageTexelPointer = 60, + SpvOpLoad = 61, + SpvOpStore = 62, + SpvOpCopyMemory = 63, + SpvOpCopyMemorySized = 64, + SpvOpAccessChain = 65, + SpvOpInBoundsAccessChain = 66, + SpvOpPtrAccessChain = 67, + SpvOpArrayLength = 68, + SpvOpGenericPtrMemSemantics = 69, + SpvOpInBoundsPtrAccessChain = 70, + SpvOpDecorate = 71, + SpvOpMemberDecorate = 72, + SpvOpDecorationGroup = 73, + SpvOpGroupDecorate = 74, + SpvOpGroupMemberDecorate = 75, + SpvOpVectorExtractDynamic = 77, + SpvOpVectorInsertDynamic = 78, + SpvOpVectorShuffle = 79, + SpvOpCompositeConstruct = 80, + SpvOpCompositeExtract = 81, + SpvOpCompositeInsert = 82, + SpvOpCopyObject = 83, + SpvOpTranspose = 84, + SpvOpSampledImage = 86, + SpvOpImageSampleImplicitLod = 87, + SpvOpImageSampleExplicitLod = 88, + SpvOpImageSampleDrefImplicitLod = 89, + SpvOpImageSampleDrefExplicitLod = 90, + SpvOpImageSampleProjImplicitLod = 91, + SpvOpImageSampleProjExplicitLod = 92, + SpvOpImageSampleProjDrefImplicitLod = 93, + SpvOpImageSampleProjDrefExplicitLod = 94, + SpvOpImageFetch = 95, + SpvOpImageGather = 96, + SpvOpImageDrefGather = 97, + SpvOpImageRead = 98, + SpvOpImageWrite = 99, + SpvOpImage = 100, + SpvOpImageQueryFormat = 101, + SpvOpImageQueryOrder = 102, + SpvOpImageQuerySizeLod = 103, + SpvOpImageQuerySize = 104, + SpvOpImageQueryLod = 105, + SpvOpImageQueryLevels = 106, + SpvOpImageQuerySamples = 107, + SpvOpConvertFToU = 109, + SpvOpConvertFToS = 110, + SpvOpConvertSToF = 111, + SpvOpConvertUToF = 112, + SpvOpUConvert = 113, + SpvOpSConvert = 114, + SpvOpFConvert = 115, + SpvOpQuantizeToF16 = 116, + SpvOpConvertPtrToU = 117, + SpvOpSatConvertSToU = 118, + SpvOpSatConvertUToS = 119, + SpvOpConvertUToPtr = 120, + SpvOpPtrCastToGeneric = 121, + SpvOpGenericCastToPtr = 122, + SpvOpGenericCastToPtrExplicit = 123, + SpvOpBitcast = 124, + SpvOpSNegate = 126, + SpvOpFNegate = 127, + SpvOpIAdd = 128, + SpvOpFAdd = 129, + SpvOpISub = 130, + SpvOpFSub = 131, + SpvOpIMul = 132, + SpvOpFMul = 133, + SpvOpUDiv = 134, + SpvOpSDiv = 135, + SpvOpFDiv = 136, + SpvOpUMod = 137, + SpvOpSRem = 138, + SpvOpSMod = 139, + SpvOpFRem = 140, + SpvOpFMod = 141, + SpvOpVectorTimesScalar = 142, + SpvOpMatrixTimesScalar = 143, + SpvOpVectorTimesMatrix = 144, + SpvOpMatrixTimesVector = 145, + SpvOpMatrixTimesMatrix = 146, + SpvOpOuterProduct = 147, + SpvOpDot = 148, + SpvOpIAddCarry = 149, + SpvOpISubBorrow = 150, + SpvOpUMulExtended = 151, + SpvOpSMulExtended = 152, + SpvOpAny = 154, + SpvOpAll = 155, + SpvOpIsNan = 156, + SpvOpIsInf = 157, + SpvOpIsFinite = 158, + SpvOpIsNormal = 159, + SpvOpSignBitSet = 160, + SpvOpLessOrGreater = 161, + SpvOpOrdered = 162, + SpvOpUnordered = 163, + SpvOpLogicalEqual = 164, + SpvOpLogicalNotEqual = 165, + SpvOpLogicalOr = 166, + SpvOpLogicalAnd = 167, + SpvOpLogicalNot = 168, + SpvOpSelect = 169, + SpvOpIEqual = 170, + SpvOpINotEqual = 171, + SpvOpUGreaterThan = 172, + SpvOpSGreaterThan = 173, + SpvOpUGreaterThanEqual = 174, + SpvOpSGreaterThanEqual = 175, + SpvOpULessThan = 176, + SpvOpSLessThan = 177, + SpvOpULessThanEqual = 178, + SpvOpSLessThanEqual = 179, + SpvOpFOrdEqual = 180, + SpvOpFUnordEqual = 181, + SpvOpFOrdNotEqual = 182, + SpvOpFUnordNotEqual = 183, + SpvOpFOrdLessThan = 184, + SpvOpFUnordLessThan = 185, + SpvOpFOrdGreaterThan = 186, + SpvOpFUnordGreaterThan = 187, + SpvOpFOrdLessThanEqual = 188, + SpvOpFUnordLessThanEqual = 189, + SpvOpFOrdGreaterThanEqual = 190, + SpvOpFUnordGreaterThanEqual = 191, + SpvOpShiftRightLogical = 194, + SpvOpShiftRightArithmetic = 195, + SpvOpShiftLeftLogical = 196, + SpvOpBitwiseOr = 197, + SpvOpBitwiseXor = 198, + SpvOpBitwiseAnd = 199, + SpvOpNot = 200, + SpvOpBitFieldInsert = 201, + SpvOpBitFieldSExtract = 202, + SpvOpBitFieldUExtract = 203, + SpvOpBitReverse = 204, + SpvOpBitCount = 205, + SpvOpDPdx = 207, + SpvOpDPdy = 208, + SpvOpFwidth = 209, + SpvOpDPdxFine = 210, + SpvOpDPdyFine = 211, + SpvOpFwidthFine = 212, + SpvOpDPdxCoarse = 213, + SpvOpDPdyCoarse = 214, + SpvOpFwidthCoarse = 215, + SpvOpEmitVertex = 218, + SpvOpEndPrimitive = 219, + SpvOpEmitStreamVertex = 220, + SpvOpEndStreamPrimitive = 221, + SpvOpControlBarrier = 224, + SpvOpMemoryBarrier = 225, + SpvOpAtomicLoad = 227, + SpvOpAtomicStore = 228, + SpvOpAtomicExchange = 229, + SpvOpAtomicCompareExchange = 230, + SpvOpAtomicCompareExchangeWeak = 231, + SpvOpAtomicIIncrement = 232, + SpvOpAtomicIDecrement = 233, + SpvOpAtomicIAdd = 234, + SpvOpAtomicISub = 235, + SpvOpAtomicSMin = 236, + SpvOpAtomicUMin = 237, + SpvOpAtomicSMax = 238, + SpvOpAtomicUMax = 239, + SpvOpAtomicAnd = 240, + SpvOpAtomicOr = 241, + SpvOpAtomicXor = 242, + SpvOpPhi = 245, + SpvOpLoopMerge = 246, + SpvOpSelectionMerge = 247, + SpvOpLabel = 248, + SpvOpBranch = 249, + SpvOpBranchConditional = 250, + SpvOpSwitch = 251, + SpvOpKill = 252, + SpvOpReturn = 253, + SpvOpReturnValue = 254, + SpvOpUnreachable = 255, + SpvOpLifetimeStart = 256, + SpvOpLifetimeStop = 257, + SpvOpGroupAsyncCopy = 259, + SpvOpGroupWaitEvents = 260, + SpvOpGroupAll = 261, + SpvOpGroupAny = 262, + SpvOpGroupBroadcast = 263, + SpvOpGroupIAdd = 264, + SpvOpGroupFAdd = 265, + SpvOpGroupFMin = 266, + SpvOpGroupUMin = 267, + SpvOpGroupSMin = 268, + SpvOpGroupFMax = 269, + SpvOpGroupUMax = 270, + SpvOpGroupSMax = 271, + SpvOpReadPipe = 274, + SpvOpWritePipe = 275, + SpvOpReservedReadPipe = 276, + SpvOpReservedWritePipe = 277, + SpvOpReserveReadPipePackets = 278, + SpvOpReserveWritePipePackets = 279, + SpvOpCommitReadPipe = 280, + SpvOpCommitWritePipe = 281, + SpvOpIsValidReserveId = 282, + SpvOpGetNumPipePackets = 283, + SpvOpGetMaxPipePackets = 284, + SpvOpGroupReserveReadPipePackets = 285, + SpvOpGroupReserveWritePipePackets = 286, + SpvOpGroupCommitReadPipe = 287, + SpvOpGroupCommitWritePipe = 288, + SpvOpEnqueueMarker = 291, + SpvOpEnqueueKernel = 292, + SpvOpGetKernelNDrangeSubGroupCount = 293, + SpvOpGetKernelNDrangeMaxSubGroupSize = 294, + SpvOpGetKernelWorkGroupSize = 295, + SpvOpGetKernelPreferredWorkGroupSizeMultiple = 296, + SpvOpRetainEvent = 297, + SpvOpReleaseEvent = 298, + SpvOpCreateUserEvent = 299, + SpvOpIsValidEvent = 300, + SpvOpSetUserEventStatus = 301, + SpvOpCaptureEventProfilingInfo = 302, + SpvOpGetDefaultQueue = 303, + SpvOpBuildNDRange = 304, + SpvOpImageSparseSampleImplicitLod = 305, + SpvOpImageSparseSampleExplicitLod = 306, + SpvOpImageSparseSampleDrefImplicitLod = 307, + SpvOpImageSparseSampleDrefExplicitLod = 308, + SpvOpImageSparseSampleProjImplicitLod = 309, + SpvOpImageSparseSampleProjExplicitLod = 310, + SpvOpImageSparseSampleProjDrefImplicitLod = 311, + SpvOpImageSparseSampleProjDrefExplicitLod = 312, + SpvOpImageSparseFetch = 313, + SpvOpImageSparseGather = 314, + SpvOpImageSparseDrefGather = 315, + SpvOpImageSparseTexelsResident = 316, + SpvOpNoLine = 317, + SpvOpAtomicFlagTestAndSet = 318, + SpvOpAtomicFlagClear = 319, + SpvOpImageSparseRead = 320, + SpvOpSizeOf = 321, + SpvOpTypePipeStorage = 322, + SpvOpConstantPipeStorage = 323, + SpvOpCreatePipeFromPipeStorage = 324, + SpvOpGetKernelLocalSizeForSubgroupCount = 325, + SpvOpGetKernelMaxNumSubgroups = 326, + SpvOpTypeNamedBarrier = 327, + SpvOpNamedBarrierInitialize = 328, + SpvOpMemoryNamedBarrier = 329, + SpvOpModuleProcessed = 330, + SpvOpExecutionModeId = 331, + SpvOpDecorateId = 332, + SpvOpGroupNonUniformElect = 333, + SpvOpGroupNonUniformAll = 334, + SpvOpGroupNonUniformAny = 335, + SpvOpGroupNonUniformAllEqual = 336, + SpvOpGroupNonUniformBroadcast = 337, + SpvOpGroupNonUniformBroadcastFirst = 338, + SpvOpGroupNonUniformBallot = 339, + SpvOpGroupNonUniformInverseBallot = 340, + SpvOpGroupNonUniformBallotBitExtract = 341, + SpvOpGroupNonUniformBallotBitCount = 342, + SpvOpGroupNonUniformBallotFindLSB = 343, + SpvOpGroupNonUniformBallotFindMSB = 344, + SpvOpGroupNonUniformShuffle = 345, + SpvOpGroupNonUniformShuffleXor = 346, + SpvOpGroupNonUniformShuffleUp = 347, + SpvOpGroupNonUniformShuffleDown = 348, + SpvOpGroupNonUniformIAdd = 349, + SpvOpGroupNonUniformFAdd = 350, + SpvOpGroupNonUniformIMul = 351, + SpvOpGroupNonUniformFMul = 352, + SpvOpGroupNonUniformSMin = 353, + SpvOpGroupNonUniformUMin = 354, + SpvOpGroupNonUniformFMin = 355, + SpvOpGroupNonUniformSMax = 356, + SpvOpGroupNonUniformUMax = 357, + SpvOpGroupNonUniformFMax = 358, + SpvOpGroupNonUniformBitwiseAnd = 359, + SpvOpGroupNonUniformBitwiseOr = 360, + SpvOpGroupNonUniformBitwiseXor = 361, + SpvOpGroupNonUniformLogicalAnd = 362, + SpvOpGroupNonUniformLogicalOr = 363, + SpvOpGroupNonUniformLogicalXor = 364, + SpvOpGroupNonUniformQuadBroadcast = 365, + SpvOpGroupNonUniformQuadSwap = 366, + SpvOpCopyLogical = 400, + SpvOpPtrEqual = 401, + SpvOpPtrNotEqual = 402, + SpvOpPtrDiff = 403, + SpvOpColorAttachmentReadEXT = 4160, + SpvOpDepthAttachmentReadEXT = 4161, + SpvOpStencilAttachmentReadEXT = 4162, + SpvOpTerminateInvocation = 4416, + SpvOpSubgroupBallotKHR = 4421, + SpvOpSubgroupFirstInvocationKHR = 4422, + SpvOpSubgroupAllKHR = 4428, + SpvOpSubgroupAnyKHR = 4429, + SpvOpSubgroupAllEqualKHR = 4430, + SpvOpGroupNonUniformRotateKHR = 4431, + SpvOpSubgroupReadInvocationKHR = 4432, + SpvOpTraceRayKHR = 4445, + SpvOpExecuteCallableKHR = 4446, + SpvOpConvertUToAccelerationStructureKHR = 4447, + SpvOpIgnoreIntersectionKHR = 4448, + SpvOpTerminateRayKHR = 4449, + SpvOpSDot = 4450, + SpvOpSDotKHR = 4450, + SpvOpUDot = 4451, + SpvOpUDotKHR = 4451, + SpvOpSUDot = 4452, + SpvOpSUDotKHR = 4452, + SpvOpSDotAccSat = 4453, + SpvOpSDotAccSatKHR = 4453, + SpvOpUDotAccSat = 4454, + SpvOpUDotAccSatKHR = 4454, + SpvOpSUDotAccSat = 4455, + SpvOpSUDotAccSatKHR = 4455, + SpvOpTypeCooperativeMatrixKHR = 4456, + SpvOpCooperativeMatrixLoadKHR = 4457, + SpvOpCooperativeMatrixStoreKHR = 4458, + SpvOpCooperativeMatrixMulAddKHR = 4459, + SpvOpCooperativeMatrixLengthKHR = 4460, + SpvOpTypeRayQueryKHR = 4472, + SpvOpRayQueryInitializeKHR = 4473, + SpvOpRayQueryTerminateKHR = 4474, + SpvOpRayQueryGenerateIntersectionKHR = 4475, + SpvOpRayQueryConfirmIntersectionKHR = 4476, + SpvOpRayQueryProceedKHR = 4477, + SpvOpRayQueryGetIntersectionTypeKHR = 4479, + SpvOpImageSampleWeightedQCOM = 4480, + SpvOpImageBoxFilterQCOM = 4481, + SpvOpImageBlockMatchSSDQCOM = 4482, + SpvOpImageBlockMatchSADQCOM = 4483, + SpvOpGroupIAddNonUniformAMD = 5000, + SpvOpGroupFAddNonUniformAMD = 5001, + SpvOpGroupFMinNonUniformAMD = 5002, + SpvOpGroupUMinNonUniformAMD = 5003, + SpvOpGroupSMinNonUniformAMD = 5004, + SpvOpGroupFMaxNonUniformAMD = 5005, + SpvOpGroupUMaxNonUniformAMD = 5006, + SpvOpGroupSMaxNonUniformAMD = 5007, + SpvOpFragmentMaskFetchAMD = 5011, + SpvOpFragmentFetchAMD = 5012, + SpvOpReadClockKHR = 5056, + SpvOpHitObjectRecordHitMotionNV = 5249, + SpvOpHitObjectRecordHitWithIndexMotionNV = 5250, + SpvOpHitObjectRecordMissMotionNV = 5251, + SpvOpHitObjectGetWorldToObjectNV = 5252, + SpvOpHitObjectGetObjectToWorldNV = 5253, + SpvOpHitObjectGetObjectRayDirectionNV = 5254, + SpvOpHitObjectGetObjectRayOriginNV = 5255, + SpvOpHitObjectTraceRayMotionNV = 5256, + SpvOpHitObjectGetShaderRecordBufferHandleNV = 5257, + SpvOpHitObjectGetShaderBindingTableRecordIndexNV = 5258, + SpvOpHitObjectRecordEmptyNV = 5259, + SpvOpHitObjectTraceRayNV = 5260, + SpvOpHitObjectRecordHitNV = 5261, + SpvOpHitObjectRecordHitWithIndexNV = 5262, + SpvOpHitObjectRecordMissNV = 5263, + SpvOpHitObjectExecuteShaderNV = 5264, + SpvOpHitObjectGetCurrentTimeNV = 5265, + SpvOpHitObjectGetAttributesNV = 5266, + SpvOpHitObjectGetHitKindNV = 5267, + SpvOpHitObjectGetPrimitiveIndexNV = 5268, + SpvOpHitObjectGetGeometryIndexNV = 5269, + SpvOpHitObjectGetInstanceIdNV = 5270, + SpvOpHitObjectGetInstanceCustomIndexNV = 5271, + SpvOpHitObjectGetWorldRayDirectionNV = 5272, + SpvOpHitObjectGetWorldRayOriginNV = 5273, + SpvOpHitObjectGetRayTMaxNV = 5274, + SpvOpHitObjectGetRayTMinNV = 5275, + SpvOpHitObjectIsEmptyNV = 5276, + SpvOpHitObjectIsHitNV = 5277, + SpvOpHitObjectIsMissNV = 5278, + SpvOpReorderThreadWithHitObjectNV = 5279, + SpvOpReorderThreadWithHintNV = 5280, + SpvOpTypeHitObjectNV = 5281, + SpvOpImageSampleFootprintNV = 5283, + SpvOpEmitMeshTasksEXT = 5294, + SpvOpSetMeshOutputsEXT = 5295, + SpvOpGroupNonUniformPartitionNV = 5296, + SpvOpWritePackedPrimitiveIndices4x8NV = 5299, + SpvOpReportIntersectionKHR = 5334, + SpvOpReportIntersectionNV = 5334, + SpvOpIgnoreIntersectionNV = 5335, + SpvOpTerminateRayNV = 5336, + SpvOpTraceNV = 5337, + SpvOpTraceMotionNV = 5338, + SpvOpTraceRayMotionNV = 5339, + SpvOpRayQueryGetIntersectionTriangleVertexPositionsKHR = 5340, + SpvOpTypeAccelerationStructureKHR = 5341, + SpvOpTypeAccelerationStructureNV = 5341, + SpvOpExecuteCallableNV = 5344, + SpvOpTypeCooperativeMatrixNV = 5358, + SpvOpCooperativeMatrixLoadNV = 5359, + SpvOpCooperativeMatrixStoreNV = 5360, + SpvOpCooperativeMatrixMulAddNV = 5361, + SpvOpCooperativeMatrixLengthNV = 5362, + SpvOpBeginInvocationInterlockEXT = 5364, + SpvOpEndInvocationInterlockEXT = 5365, + SpvOpDemoteToHelperInvocation = 5380, + SpvOpDemoteToHelperInvocationEXT = 5380, + SpvOpIsHelperInvocationEXT = 5381, + SpvOpConvertUToImageNV = 5391, + SpvOpConvertUToSamplerNV = 5392, + SpvOpConvertImageToUNV = 5393, + SpvOpConvertSamplerToUNV = 5394, + SpvOpConvertUToSampledImageNV = 5395, + SpvOpConvertSampledImageToUNV = 5396, + SpvOpSamplerImageAddressingModeNV = 5397, + SpvOpSubgroupShuffleINTEL = 5571, + SpvOpSubgroupShuffleDownINTEL = 5572, + SpvOpSubgroupShuffleUpINTEL = 5573, + SpvOpSubgroupShuffleXorINTEL = 5574, + SpvOpSubgroupBlockReadINTEL = 5575, + SpvOpSubgroupBlockWriteINTEL = 5576, + SpvOpSubgroupImageBlockReadINTEL = 5577, + SpvOpSubgroupImageBlockWriteINTEL = 5578, + SpvOpSubgroupImageMediaBlockReadINTEL = 5580, + SpvOpSubgroupImageMediaBlockWriteINTEL = 5581, + SpvOpUCountLeadingZerosINTEL = 5585, + SpvOpUCountTrailingZerosINTEL = 5586, + SpvOpAbsISubINTEL = 5587, + SpvOpAbsUSubINTEL = 5588, + SpvOpIAddSatINTEL = 5589, + SpvOpUAddSatINTEL = 5590, + SpvOpIAverageINTEL = 5591, + SpvOpUAverageINTEL = 5592, + SpvOpIAverageRoundedINTEL = 5593, + SpvOpUAverageRoundedINTEL = 5594, + SpvOpISubSatINTEL = 5595, + SpvOpUSubSatINTEL = 5596, + SpvOpIMul32x16INTEL = 5597, + SpvOpUMul32x16INTEL = 5598, + SpvOpConstantFunctionPointerINTEL = 5600, + SpvOpFunctionPointerCallINTEL = 5601, + SpvOpAsmTargetINTEL = 5609, + SpvOpAsmINTEL = 5610, + SpvOpAsmCallINTEL = 5611, + SpvOpAtomicFMinEXT = 5614, + SpvOpAtomicFMaxEXT = 5615, + SpvOpAssumeTrueKHR = 5630, + SpvOpExpectKHR = 5631, + SpvOpDecorateString = 5632, + SpvOpDecorateStringGOOGLE = 5632, + SpvOpMemberDecorateString = 5633, + SpvOpMemberDecorateStringGOOGLE = 5633, + SpvOpVmeImageINTEL = 5699, + SpvOpTypeVmeImageINTEL = 5700, + SpvOpTypeAvcImePayloadINTEL = 5701, + SpvOpTypeAvcRefPayloadINTEL = 5702, + SpvOpTypeAvcSicPayloadINTEL = 5703, + SpvOpTypeAvcMcePayloadINTEL = 5704, + SpvOpTypeAvcMceResultINTEL = 5705, + SpvOpTypeAvcImeResultINTEL = 5706, + SpvOpTypeAvcImeResultSingleReferenceStreamoutINTEL = 5707, + SpvOpTypeAvcImeResultDualReferenceStreamoutINTEL = 5708, + SpvOpTypeAvcImeSingleReferenceStreaminINTEL = 5709, + SpvOpTypeAvcImeDualReferenceStreaminINTEL = 5710, + SpvOpTypeAvcRefResultINTEL = 5711, + SpvOpTypeAvcSicResultINTEL = 5712, + SpvOpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL = 5713, + SpvOpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL = 5714, + SpvOpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL = 5715, + SpvOpSubgroupAvcMceSetInterShapePenaltyINTEL = 5716, + SpvOpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL = 5717, + SpvOpSubgroupAvcMceSetInterDirectionPenaltyINTEL = 5718, + SpvOpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL = 5719, + SpvOpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL = 5720, + SpvOpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL = 5721, + SpvOpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL = 5722, + SpvOpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL = 5723, + SpvOpSubgroupAvcMceSetMotionVectorCostFunctionINTEL = 5724, + SpvOpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL = 5725, + SpvOpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL = 5726, + SpvOpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL = 5727, + SpvOpSubgroupAvcMceSetAcOnlyHaarINTEL = 5728, + SpvOpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL = 5729, + SpvOpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL = 5730, + SpvOpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL = 5731, + SpvOpSubgroupAvcMceConvertToImePayloadINTEL = 5732, + SpvOpSubgroupAvcMceConvertToImeResultINTEL = 5733, + SpvOpSubgroupAvcMceConvertToRefPayloadINTEL = 5734, + SpvOpSubgroupAvcMceConvertToRefResultINTEL = 5735, + SpvOpSubgroupAvcMceConvertToSicPayloadINTEL = 5736, + SpvOpSubgroupAvcMceConvertToSicResultINTEL = 5737, + SpvOpSubgroupAvcMceGetMotionVectorsINTEL = 5738, + SpvOpSubgroupAvcMceGetInterDistortionsINTEL = 5739, + SpvOpSubgroupAvcMceGetBestInterDistortionsINTEL = 5740, + SpvOpSubgroupAvcMceGetInterMajorShapeINTEL = 5741, + SpvOpSubgroupAvcMceGetInterMinorShapeINTEL = 5742, + SpvOpSubgroupAvcMceGetInterDirectionsINTEL = 5743, + SpvOpSubgroupAvcMceGetInterMotionVectorCountINTEL = 5744, + SpvOpSubgroupAvcMceGetInterReferenceIdsINTEL = 5745, + SpvOpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL = 5746, + SpvOpSubgroupAvcImeInitializeINTEL = 5747, + SpvOpSubgroupAvcImeSetSingleReferenceINTEL = 5748, + SpvOpSubgroupAvcImeSetDualReferenceINTEL = 5749, + SpvOpSubgroupAvcImeRefWindowSizeINTEL = 5750, + SpvOpSubgroupAvcImeAdjustRefOffsetINTEL = 5751, + SpvOpSubgroupAvcImeConvertToMcePayloadINTEL = 5752, + SpvOpSubgroupAvcImeSetMaxMotionVectorCountINTEL = 5753, + SpvOpSubgroupAvcImeSetUnidirectionalMixDisableINTEL = 5754, + SpvOpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL = 5755, + SpvOpSubgroupAvcImeSetWeightedSadINTEL = 5756, + SpvOpSubgroupAvcImeEvaluateWithSingleReferenceINTEL = 5757, + SpvOpSubgroupAvcImeEvaluateWithDualReferenceINTEL = 5758, + SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL = 5759, + SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL = 5760, + SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL = 5761, + SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL = 5762, + SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL = 5763, + SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL = 5764, + SpvOpSubgroupAvcImeConvertToMceResultINTEL = 5765, + SpvOpSubgroupAvcImeGetSingleReferenceStreaminINTEL = 5766, + SpvOpSubgroupAvcImeGetDualReferenceStreaminINTEL = 5767, + SpvOpSubgroupAvcImeStripSingleReferenceStreamoutINTEL = 5768, + SpvOpSubgroupAvcImeStripDualReferenceStreamoutINTEL = 5769, + SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL = + 5770, + SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL = + 5771, + SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL = + 5772, + SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL = + 5773, + SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL = 5774, + SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL = + 5775, + SpvOpSubgroupAvcImeGetBorderReachedINTEL = 5776, + SpvOpSubgroupAvcImeGetTruncatedSearchIndicationINTEL = 5777, + SpvOpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL = 5778, + SpvOpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL = 5779, + SpvOpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL = 5780, + SpvOpSubgroupAvcFmeInitializeINTEL = 5781, + SpvOpSubgroupAvcBmeInitializeINTEL = 5782, + SpvOpSubgroupAvcRefConvertToMcePayloadINTEL = 5783, + SpvOpSubgroupAvcRefSetBidirectionalMixDisableINTEL = 5784, + SpvOpSubgroupAvcRefSetBilinearFilterEnableINTEL = 5785, + SpvOpSubgroupAvcRefEvaluateWithSingleReferenceINTEL = 5786, + SpvOpSubgroupAvcRefEvaluateWithDualReferenceINTEL = 5787, + SpvOpSubgroupAvcRefEvaluateWithMultiReferenceINTEL = 5788, + SpvOpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL = 5789, + SpvOpSubgroupAvcRefConvertToMceResultINTEL = 5790, + SpvOpSubgroupAvcSicInitializeINTEL = 5791, + SpvOpSubgroupAvcSicConfigureSkcINTEL = 5792, + SpvOpSubgroupAvcSicConfigureIpeLumaINTEL = 5793, + SpvOpSubgroupAvcSicConfigureIpeLumaChromaINTEL = 5794, + SpvOpSubgroupAvcSicGetMotionVectorMaskINTEL = 5795, + SpvOpSubgroupAvcSicConvertToMcePayloadINTEL = 5796, + SpvOpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL = 5797, + SpvOpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL = 5798, + SpvOpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL = 5799, + SpvOpSubgroupAvcSicSetBilinearFilterEnableINTEL = 5800, + SpvOpSubgroupAvcSicSetSkcForwardTransformEnableINTEL = 5801, + SpvOpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL = 5802, + SpvOpSubgroupAvcSicEvaluateIpeINTEL = 5803, + SpvOpSubgroupAvcSicEvaluateWithSingleReferenceINTEL = 5804, + SpvOpSubgroupAvcSicEvaluateWithDualReferenceINTEL = 5805, + SpvOpSubgroupAvcSicEvaluateWithMultiReferenceINTEL = 5806, + SpvOpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL = 5807, + SpvOpSubgroupAvcSicConvertToMceResultINTEL = 5808, + SpvOpSubgroupAvcSicGetIpeLumaShapeINTEL = 5809, + SpvOpSubgroupAvcSicGetBestIpeLumaDistortionINTEL = 5810, + SpvOpSubgroupAvcSicGetBestIpeChromaDistortionINTEL = 5811, + SpvOpSubgroupAvcSicGetPackedIpeLumaModesINTEL = 5812, + SpvOpSubgroupAvcSicGetIpeChromaModeINTEL = 5813, + SpvOpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL = 5814, + SpvOpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL = 5815, + SpvOpSubgroupAvcSicGetInterRawSadsINTEL = 5816, + SpvOpVariableLengthArrayINTEL = 5818, + SpvOpSaveMemoryINTEL = 5819, + SpvOpRestoreMemoryINTEL = 5820, + SpvOpArbitraryFloatSinCosPiINTEL = 5840, + SpvOpArbitraryFloatCastINTEL = 5841, + SpvOpArbitraryFloatCastFromIntINTEL = 5842, + SpvOpArbitraryFloatCastToIntINTEL = 5843, + SpvOpArbitraryFloatAddINTEL = 5846, + SpvOpArbitraryFloatSubINTEL = 5847, + SpvOpArbitraryFloatMulINTEL = 5848, + SpvOpArbitraryFloatDivINTEL = 5849, + SpvOpArbitraryFloatGTINTEL = 5850, + SpvOpArbitraryFloatGEINTEL = 5851, + SpvOpArbitraryFloatLTINTEL = 5852, + SpvOpArbitraryFloatLEINTEL = 5853, + SpvOpArbitraryFloatEQINTEL = 5854, + SpvOpArbitraryFloatRecipINTEL = 5855, + SpvOpArbitraryFloatRSqrtINTEL = 5856, + SpvOpArbitraryFloatCbrtINTEL = 5857, + SpvOpArbitraryFloatHypotINTEL = 5858, + SpvOpArbitraryFloatSqrtINTEL = 5859, + SpvOpArbitraryFloatLogINTEL = 5860, + SpvOpArbitraryFloatLog2INTEL = 5861, + SpvOpArbitraryFloatLog10INTEL = 5862, + SpvOpArbitraryFloatLog1pINTEL = 5863, + SpvOpArbitraryFloatExpINTEL = 5864, + SpvOpArbitraryFloatExp2INTEL = 5865, + SpvOpArbitraryFloatExp10INTEL = 5866, + SpvOpArbitraryFloatExpm1INTEL = 5867, + SpvOpArbitraryFloatSinINTEL = 5868, + SpvOpArbitraryFloatCosINTEL = 5869, + SpvOpArbitraryFloatSinCosINTEL = 5870, + SpvOpArbitraryFloatSinPiINTEL = 5871, + SpvOpArbitraryFloatCosPiINTEL = 5872, + SpvOpArbitraryFloatASinINTEL = 5873, + SpvOpArbitraryFloatASinPiINTEL = 5874, + SpvOpArbitraryFloatACosINTEL = 5875, + SpvOpArbitraryFloatACosPiINTEL = 5876, + SpvOpArbitraryFloatATanINTEL = 5877, + SpvOpArbitraryFloatATanPiINTEL = 5878, + SpvOpArbitraryFloatATan2INTEL = 5879, + SpvOpArbitraryFloatPowINTEL = 5880, + SpvOpArbitraryFloatPowRINTEL = 5881, + SpvOpArbitraryFloatPowNINTEL = 5882, + SpvOpLoopControlINTEL = 5887, + SpvOpAliasDomainDeclINTEL = 5911, + SpvOpAliasScopeDeclINTEL = 5912, + SpvOpAliasScopeListDeclINTEL = 5913, + SpvOpFixedSqrtINTEL = 5923, + SpvOpFixedRecipINTEL = 5924, + SpvOpFixedRsqrtINTEL = 5925, + SpvOpFixedSinINTEL = 5926, + SpvOpFixedCosINTEL = 5927, + SpvOpFixedSinCosINTEL = 5928, + SpvOpFixedSinPiINTEL = 5929, + SpvOpFixedCosPiINTEL = 5930, + SpvOpFixedSinCosPiINTEL = 5931, + SpvOpFixedLogINTEL = 5932, + SpvOpFixedExpINTEL = 5933, + SpvOpPtrCastToCrossWorkgroupINTEL = 5934, + SpvOpCrossWorkgroupCastToPtrINTEL = 5938, + SpvOpReadPipeBlockingINTEL = 5946, + SpvOpWritePipeBlockingINTEL = 5947, + SpvOpFPGARegINTEL = 5949, + SpvOpRayQueryGetRayTMinKHR = 6016, + SpvOpRayQueryGetRayFlagsKHR = 6017, + SpvOpRayQueryGetIntersectionTKHR = 6018, + SpvOpRayQueryGetIntersectionInstanceCustomIndexKHR = 6019, + SpvOpRayQueryGetIntersectionInstanceIdKHR = 6020, + SpvOpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR = 6021, + SpvOpRayQueryGetIntersectionGeometryIndexKHR = 6022, + SpvOpRayQueryGetIntersectionPrimitiveIndexKHR = 6023, + SpvOpRayQueryGetIntersectionBarycentricsKHR = 6024, + SpvOpRayQueryGetIntersectionFrontFaceKHR = 6025, + SpvOpRayQueryGetIntersectionCandidateAABBOpaqueKHR = 6026, + SpvOpRayQueryGetIntersectionObjectRayDirectionKHR = 6027, + SpvOpRayQueryGetIntersectionObjectRayOriginKHR = 6028, + SpvOpRayQueryGetWorldRayDirectionKHR = 6029, + SpvOpRayQueryGetWorldRayOriginKHR = 6030, + SpvOpRayQueryGetIntersectionObjectToWorldKHR = 6031, + SpvOpRayQueryGetIntersectionWorldToObjectKHR = 6032, + SpvOpAtomicFAddEXT = 6035, + SpvOpTypeBufferSurfaceINTEL = 6086, + SpvOpTypeStructContinuedINTEL = 6090, + SpvOpConstantCompositeContinuedINTEL = 6091, + SpvOpSpecConstantCompositeContinuedINTEL = 6092, + SpvOpConvertFToBF16INTEL = 6116, + SpvOpConvertBF16ToFINTEL = 6117, + SpvOpControlBarrierArriveINTEL = 6142, + SpvOpControlBarrierWaitINTEL = 6143, + SpvOpGroupIMulKHR = 6401, + SpvOpGroupFMulKHR = 6402, + SpvOpGroupBitwiseAndKHR = 6403, + SpvOpGroupBitwiseOrKHR = 6404, + SpvOpGroupBitwiseXorKHR = 6405, + SpvOpGroupLogicalAndKHR = 6406, + SpvOpGroupLogicalOrKHR = 6407, + SpvOpGroupLogicalXorKHR = 6408, + SpvOpMax = 0x7fffffff, +} SpvOp; + +#ifdef SPV_ENABLE_UTILITY_CODE +#ifndef __cplusplus +#include +#endif +inline void SpvHasResultAndType(SpvOp opcode, bool* hasResult, + bool* hasResultType) { + *hasResult = *hasResultType = false; + switch (opcode) { + default: /* unknown opcode */ + break; + case SpvOpNop: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpUndef: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSourceContinued: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpSource: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpSourceExtension: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpName: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpMemberName: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpString: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpLine: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpExtension: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpExtInstImport: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpExtInst: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpMemoryModel: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpEntryPoint: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpExecutionMode: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpCapability: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpTypeVoid: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeBool: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeInt: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeFloat: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeVector: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeMatrix: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeImage: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeSampler: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeSampledImage: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeArray: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeRuntimeArray: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeStruct: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeOpaque: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypePointer: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeFunction: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeEvent: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeDeviceEvent: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeReserveId: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeQueue: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypePipe: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeForwardPointer: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpConstantTrue: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConstantFalse: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConstant: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConstantComposite: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConstantSampler: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConstantNull: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSpecConstantTrue: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSpecConstantFalse: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSpecConstant: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSpecConstantComposite: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSpecConstantOp: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFunction: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFunctionParameter: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFunctionEnd: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpFunctionCall: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpVariable: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageTexelPointer: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpLoad: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpStore: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpCopyMemory: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpCopyMemorySized: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpAccessChain: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpInBoundsAccessChain: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpPtrAccessChain: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArrayLength: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGenericPtrMemSemantics: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpInBoundsPtrAccessChain: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpDecorate: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpMemberDecorate: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpDecorationGroup: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpGroupDecorate: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpGroupMemberDecorate: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpVectorExtractDynamic: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpVectorInsertDynamic: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpVectorShuffle: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCompositeConstruct: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCompositeExtract: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCompositeInsert: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCopyObject: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpTranspose: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSampledImage: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSampleImplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSampleExplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSampleDrefImplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSampleDrefExplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSampleProjImplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSampleProjExplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSampleProjDrefImplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSampleProjDrefExplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageFetch: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageGather: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageDrefGather: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageRead: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageWrite: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpImage: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageQueryFormat: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageQueryOrder: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageQuerySizeLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageQuerySize: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageQueryLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageQueryLevels: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageQuerySamples: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertFToU: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertFToS: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertSToF: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertUToF: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUConvert: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSConvert: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFConvert: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpQuantizeToF16: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertPtrToU: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSatConvertSToU: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSatConvertUToS: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertUToPtr: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpPtrCastToGeneric: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGenericCastToPtr: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGenericCastToPtrExplicit: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpBitcast: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSNegate: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFNegate: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIAdd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFAdd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpISub: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFSub: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIMul: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFMul: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUDiv: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSDiv: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFDiv: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUMod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSRem: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSMod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFRem: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFMod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpVectorTimesScalar: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpMatrixTimesScalar: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpVectorTimesMatrix: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpMatrixTimesVector: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpMatrixTimesMatrix: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpOuterProduct: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpDot: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIAddCarry: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpISubBorrow: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUMulExtended: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSMulExtended: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAny: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAll: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIsNan: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIsInf: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIsFinite: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIsNormal: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSignBitSet: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpLessOrGreater: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpOrdered: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUnordered: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpLogicalEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpLogicalNotEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpLogicalOr: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpLogicalAnd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpLogicalNot: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSelect: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpINotEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUGreaterThan: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSGreaterThan: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUGreaterThanEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSGreaterThanEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpULessThan: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSLessThan: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpULessThanEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSLessThanEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFOrdEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFUnordEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFOrdNotEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFUnordNotEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFOrdLessThan: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFUnordLessThan: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFOrdGreaterThan: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFUnordGreaterThan: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFOrdLessThanEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFUnordLessThanEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFOrdGreaterThanEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFUnordGreaterThanEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpShiftRightLogical: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpShiftRightArithmetic: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpShiftLeftLogical: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpBitwiseOr: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpBitwiseXor: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpBitwiseAnd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpNot: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpBitFieldInsert: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpBitFieldSExtract: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpBitFieldUExtract: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpBitReverse: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpBitCount: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpDPdx: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpDPdy: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFwidth: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpDPdxFine: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpDPdyFine: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFwidthFine: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpDPdxCoarse: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpDPdyCoarse: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFwidthCoarse: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpEmitVertex: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpEndPrimitive: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpEmitStreamVertex: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpEndStreamPrimitive: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpControlBarrier: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpMemoryBarrier: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpAtomicLoad: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicStore: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpAtomicExchange: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicCompareExchange: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicCompareExchangeWeak: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicIIncrement: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicIDecrement: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicIAdd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicISub: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicSMin: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicUMin: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicSMax: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicUMax: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicAnd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicOr: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicXor: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpPhi: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpLoopMerge: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpSelectionMerge: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpLabel: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpBranch: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpBranchConditional: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpSwitch: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpKill: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpReturn: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpReturnValue: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpUnreachable: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpLifetimeStart: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpLifetimeStop: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpGroupAsyncCopy: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupWaitEvents: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpGroupAll: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupAny: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupBroadcast: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupIAdd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupFAdd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupFMin: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupUMin: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupSMin: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupFMax: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupUMax: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupSMax: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpReadPipe: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpWritePipe: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpReservedReadPipe: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpReservedWritePipe: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpReserveReadPipePackets: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpReserveWritePipePackets: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCommitReadPipe: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpCommitWritePipe: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpIsValidReserveId: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGetNumPipePackets: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGetMaxPipePackets: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupReserveReadPipePackets: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupReserveWritePipePackets: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupCommitReadPipe: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpGroupCommitWritePipe: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpEnqueueMarker: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpEnqueueKernel: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGetKernelNDrangeSubGroupCount: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGetKernelNDrangeMaxSubGroupSize: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGetKernelWorkGroupSize: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGetKernelPreferredWorkGroupSizeMultiple: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRetainEvent: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpReleaseEvent: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpCreateUserEvent: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIsValidEvent: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSetUserEventStatus: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpCaptureEventProfilingInfo: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpGetDefaultQueue: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpBuildNDRange: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseSampleImplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseSampleExplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseSampleDrefImplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseSampleDrefExplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseSampleProjImplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseSampleProjExplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseSampleProjDrefImplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseSampleProjDrefExplicitLod: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseFetch: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseGather: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseDrefGather: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSparseTexelsResident: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpNoLine: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpAtomicFlagTestAndSet: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicFlagClear: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpImageSparseRead: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSizeOf: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpTypePipeStorage: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpConstantPipeStorage: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCreatePipeFromPipeStorage: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGetKernelLocalSizeForSubgroupCount: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGetKernelMaxNumSubgroups: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpTypeNamedBarrier: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpNamedBarrierInitialize: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpMemoryNamedBarrier: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpModuleProcessed: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpExecutionModeId: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpDecorateId: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpGroupNonUniformElect: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformAll: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformAny: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformAllEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformBroadcast: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformBroadcastFirst: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformBallot: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformInverseBallot: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformBallotBitExtract: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformBallotBitCount: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformBallotFindLSB: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformBallotFindMSB: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformShuffle: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformShuffleXor: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformShuffleUp: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformShuffleDown: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformIAdd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformFAdd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformIMul: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformFMul: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformSMin: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformUMin: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformFMin: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformSMax: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformUMax: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformFMax: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformBitwiseAnd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformBitwiseOr: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformBitwiseXor: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformLogicalAnd: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformLogicalOr: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformLogicalXor: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformQuadBroadcast: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformQuadSwap: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCopyLogical: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpPtrEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpPtrNotEqual: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpPtrDiff: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpColorAttachmentReadEXT: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpDepthAttachmentReadEXT: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpStencilAttachmentReadEXT: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpTerminateInvocation: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpSubgroupBallotKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupFirstInvocationKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAllKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAnyKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAllEqualKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupNonUniformRotateKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupReadInvocationKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpTraceRayKHR: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpExecuteCallableKHR: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpConvertUToAccelerationStructureKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIgnoreIntersectionKHR: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpTerminateRayKHR: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpSDot: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUDot: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSUDot: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSDotAccSat: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUDotAccSat: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSUDotAccSat: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpTypeCooperativeMatrixKHR: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpCooperativeMatrixLoadKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCooperativeMatrixStoreKHR: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpCooperativeMatrixMulAddKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCooperativeMatrixLengthKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpTypeRayQueryKHR: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpRayQueryInitializeKHR: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpRayQueryTerminateKHR: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpRayQueryGenerateIntersectionKHR: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpRayQueryConfirmIntersectionKHR: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpRayQueryProceedKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionTypeKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageSampleWeightedQCOM: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageBoxFilterQCOM: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageBlockMatchSSDQCOM: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpImageBlockMatchSADQCOM: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupIAddNonUniformAMD: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupFAddNonUniformAMD: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupFMinNonUniformAMD: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupUMinNonUniformAMD: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupSMinNonUniformAMD: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupFMaxNonUniformAMD: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupUMaxNonUniformAMD: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupSMaxNonUniformAMD: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFragmentMaskFetchAMD: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFragmentFetchAMD: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpReadClockKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectRecordHitMotionNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpHitObjectRecordHitWithIndexMotionNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpHitObjectRecordMissMotionNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpHitObjectGetWorldToObjectNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetObjectToWorldNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetObjectRayDirectionNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetObjectRayOriginNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectTraceRayMotionNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpHitObjectGetShaderRecordBufferHandleNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetShaderBindingTableRecordIndexNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectRecordEmptyNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpHitObjectTraceRayNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpHitObjectRecordHitNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpHitObjectRecordHitWithIndexNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpHitObjectRecordMissNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpHitObjectExecuteShaderNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpHitObjectGetCurrentTimeNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetAttributesNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpHitObjectGetHitKindNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetPrimitiveIndexNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetGeometryIndexNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetInstanceIdNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetInstanceCustomIndexNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetWorldRayDirectionNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetWorldRayOriginNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetRayTMaxNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectGetRayTMinNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectIsEmptyNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectIsHitNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpHitObjectIsMissNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpReorderThreadWithHitObjectNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpReorderThreadWithHintNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpTypeHitObjectNV: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpImageSampleFootprintNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpEmitMeshTasksEXT: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpSetMeshOutputsEXT: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpGroupNonUniformPartitionNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpWritePackedPrimitiveIndices4x8NV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpReportIntersectionNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIgnoreIntersectionNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpTerminateRayNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpTraceNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpTraceMotionNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpTraceRayMotionNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpRayQueryGetIntersectionTriangleVertexPositionsKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpTypeAccelerationStructureNV: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpExecuteCallableNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpTypeCooperativeMatrixNV: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpCooperativeMatrixLoadNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCooperativeMatrixStoreNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpCooperativeMatrixMulAddNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCooperativeMatrixLengthNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpBeginInvocationInterlockEXT: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpEndInvocationInterlockEXT: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpDemoteToHelperInvocation: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpIsHelperInvocationEXT: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertUToImageNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertUToSamplerNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertImageToUNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertSamplerToUNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertUToSampledImageNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertSampledImageToUNV: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSamplerImageAddressingModeNV: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpSubgroupShuffleINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupShuffleDownINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupShuffleUpINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupShuffleXorINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupBlockReadINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupBlockWriteINTEL: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpSubgroupImageBlockReadINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupImageBlockWriteINTEL: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpSubgroupImageMediaBlockReadINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupImageMediaBlockWriteINTEL: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpUCountLeadingZerosINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUCountTrailingZerosINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAbsISubINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAbsUSubINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIAddSatINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUAddSatINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIAverageINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUAverageINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIAverageRoundedINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUAverageRoundedINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpISubSatINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUSubSatINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpIMul32x16INTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpUMul32x16INTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConstantFunctionPointerINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFunctionPointerCallINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAsmTargetINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAsmINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAsmCallINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicFMinEXT: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicFMaxEXT: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAssumeTrueKHR: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpExpectKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpDecorateString: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpMemberDecorateString: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpVmeImageINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpTypeVmeImageINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcImePayloadINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcRefPayloadINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcSicPayloadINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcMcePayloadINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcMceResultINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcImeResultINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcImeResultSingleReferenceStreamoutINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcImeResultDualReferenceStreamoutINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcImeSingleReferenceStreaminINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcImeDualReferenceStreaminINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcRefResultINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeAvcSicResultINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceSetInterShapePenaltyINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceSetInterDirectionPenaltyINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceSetMotionVectorCostFunctionINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceSetAcOnlyHaarINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceConvertToImePayloadINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceConvertToImeResultINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceConvertToRefPayloadINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceConvertToRefResultINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceConvertToSicPayloadINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceConvertToSicResultINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetMotionVectorsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetInterDistortionsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetBestInterDistortionsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetInterMajorShapeINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetInterMinorShapeINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetInterDirectionsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetInterMotionVectorCountINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetInterReferenceIdsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeInitializeINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeSetSingleReferenceINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeSetDualReferenceINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeRefWindowSizeINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeAdjustRefOffsetINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeConvertToMcePayloadINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeSetMaxMotionVectorCountINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeSetUnidirectionalMixDisableINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeSetWeightedSadINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeEvaluateWithSingleReferenceINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeEvaluateWithDualReferenceINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeConvertToMceResultINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetSingleReferenceStreaminINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetDualReferenceStreaminINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeStripSingleReferenceStreamoutINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeStripDualReferenceStreamoutINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetBorderReachedINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetTruncatedSearchIndicationINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcFmeInitializeINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcBmeInitializeINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcRefConvertToMcePayloadINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcRefSetBidirectionalMixDisableINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcRefSetBilinearFilterEnableINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcRefEvaluateWithSingleReferenceINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcRefEvaluateWithDualReferenceINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcRefEvaluateWithMultiReferenceINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcRefConvertToMceResultINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicInitializeINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicConfigureSkcINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicConfigureIpeLumaINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicConfigureIpeLumaChromaINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicGetMotionVectorMaskINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicConvertToMcePayloadINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicSetBilinearFilterEnableINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicSetSkcForwardTransformEnableINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicEvaluateIpeINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicEvaluateWithSingleReferenceINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicEvaluateWithDualReferenceINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicEvaluateWithMultiReferenceINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicConvertToMceResultINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicGetIpeLumaShapeINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicGetBestIpeLumaDistortionINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicGetBestIpeChromaDistortionINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicGetPackedIpeLumaModesINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicGetIpeChromaModeINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSubgroupAvcSicGetInterRawSadsINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpVariableLengthArrayINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpSaveMemoryINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRestoreMemoryINTEL: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpArbitraryFloatSinCosPiINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatCastINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatCastFromIntINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatCastToIntINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatAddINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatSubINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatMulINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatDivINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatGTINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatGEINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatLTINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatLEINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatEQINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatRecipINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatRSqrtINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatCbrtINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatHypotINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatSqrtINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatLogINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatLog2INTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatLog10INTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatLog1pINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatExpINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatExp2INTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatExp10INTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatExpm1INTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatSinINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatCosINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatSinCosINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatSinPiINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatCosPiINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatASinINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatASinPiINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatACosINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatACosPiINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatATanINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatATanPiINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatATan2INTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatPowINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatPowRINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpArbitraryFloatPowNINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpLoopControlINTEL: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpAliasDomainDeclINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpAliasScopeDeclINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpAliasScopeListDeclINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpFixedSqrtINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFixedRecipINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFixedRsqrtINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFixedSinINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFixedCosINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFixedSinCosINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFixedSinPiINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFixedCosPiINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFixedSinCosPiINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFixedLogINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFixedExpINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpPtrCastToCrossWorkgroupINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpCrossWorkgroupCastToPtrINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpReadPipeBlockingINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpWritePipeBlockingINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpFPGARegINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetRayTMinKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetRayFlagsKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionTKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionInstanceCustomIndexKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionInstanceIdKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionGeometryIndexKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionPrimitiveIndexKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionBarycentricsKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionFrontFaceKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionCandidateAABBOpaqueKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionObjectRayDirectionKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionObjectRayOriginKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetWorldRayDirectionKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetWorldRayOriginKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionObjectToWorldKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpRayQueryGetIntersectionWorldToObjectKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpAtomicFAddEXT: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpTypeBufferSurfaceINTEL: + *hasResult = true; + *hasResultType = false; + break; + case SpvOpTypeStructContinuedINTEL: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpConstantCompositeContinuedINTEL: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpSpecConstantCompositeContinuedINTEL: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpConvertFToBF16INTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpConvertBF16ToFINTEL: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpControlBarrierArriveINTEL: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpControlBarrierWaitINTEL: + *hasResult = false; + *hasResultType = false; + break; + case SpvOpGroupIMulKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupFMulKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupBitwiseAndKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupBitwiseOrKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupBitwiseXorKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupLogicalAndKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupLogicalOrKHR: + *hasResult = true; + *hasResultType = true; + break; + case SpvOpGroupLogicalXorKHR: + *hasResult = true; + *hasResultType = true; + break; + } +} +#endif /* SPV_ENABLE_UTILITY_CODE */ + +#endif diff --git a/HexaGen.Tests/spirvreflect/spirv_reflect.h b/HexaGen.Tests/spirvreflect/spirv_reflect.h new file mode 100644 index 0000000..9a42f14 --- /dev/null +++ b/HexaGen.Tests/spirvreflect/spirv_reflect.h @@ -0,0 +1,2447 @@ +/* + Copyright 2017-2022 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +/* + +VERSION HISTORY + + 1.0 (2018-03-27) Initial public release + +*/ + +// clang-format off +/*! + + @file spirv_reflect.h + +*/ +#ifndef SPIRV_REFLECT_H +#define SPIRV_REFLECT_H + +#if defined(SPIRV_REFLECT_USE_SYSTEM_SPIRV_H) +#include +#else +#include "./include/spirv/unified1/spirv.h" +#endif + + +#include +#include + +#ifdef _MSC_VER + #define SPV_REFLECT_DEPRECATED(msg_str) __declspec(deprecated("This symbol is deprecated. Details: " msg_str)) +#elif defined(__clang__) + #define SPV_REFLECT_DEPRECATED(msg_str) __attribute__((deprecated(msg_str))) +#elif defined(__GNUC__) + #if GCC_VERSION >= 40500 + #define SPV_REFLECT_DEPRECATED(msg_str) __attribute__((deprecated(msg_str))) + #else + #define SPV_REFLECT_DEPRECATED(msg_str) __attribute__((deprecated)) + #endif +#else + #define SPV_REFLECT_DEPRECATED(msg_str) +#endif + +/*! @enum SpvReflectResult + +*/ +typedef enum SpvReflectResult { + SPV_REFLECT_RESULT_SUCCESS, + SPV_REFLECT_RESULT_NOT_READY, + SPV_REFLECT_RESULT_ERROR_PARSE_FAILED, + SPV_REFLECT_RESULT_ERROR_ALLOC_FAILED, + SPV_REFLECT_RESULT_ERROR_RANGE_EXCEEDED, + SPV_REFLECT_RESULT_ERROR_NULL_POINTER, + SPV_REFLECT_RESULT_ERROR_INTERNAL_ERROR, + SPV_REFLECT_RESULT_ERROR_COUNT_MISMATCH, + SPV_REFLECT_RESULT_ERROR_ELEMENT_NOT_FOUND, + SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_CODE_SIZE, + SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_MAGIC_NUMBER, + SPV_REFLECT_RESULT_ERROR_SPIRV_UNEXPECTED_EOF, + SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_ID_REFERENCE, + SPV_REFLECT_RESULT_ERROR_SPIRV_SET_NUMBER_OVERFLOW, + SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_STORAGE_CLASS, + SPV_REFLECT_RESULT_ERROR_SPIRV_RECURSION, + SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_INSTRUCTION, + SPV_REFLECT_RESULT_ERROR_SPIRV_UNEXPECTED_BLOCK_DATA, + SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_BLOCK_MEMBER_REFERENCE, + SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_ENTRY_POINT, + SPV_REFLECT_RESULT_ERROR_SPIRV_INVALID_EXECUTION_MODE, + SPV_REFLECT_RESULT_ERROR_SPIRV_MAX_RECURSIVE_EXCEEDED, +} SpvReflectResult; + +/*! @enum SpvReflectModuleFlagBits + +SPV_REFLECT_MODULE_FLAG_NO_COPY - Disables copying of SPIR-V code + when a SPIRV-Reflect shader module is created. It is the + responsibility of the calling program to ensure that the pointer + remains valid and the memory it's pointing to is not freed while + SPIRV-Reflect operations are taking place. Freeing the backing + memory will cause undefined behavior or most likely a crash. + This is flag is intended for cases where the memory overhead of + storing the copied SPIR-V is undesirable. + +*/ +typedef enum SpvReflectModuleFlagBits { + SPV_REFLECT_MODULE_FLAG_NONE = 0x00000000, + SPV_REFLECT_MODULE_FLAG_NO_COPY = 0x00000001, +} SpvReflectModuleFlagBits; + +typedef uint32_t SpvReflectModuleFlags; + +/*! @enum SpvReflectTypeFlagBits + +*/ +typedef enum SpvReflectTypeFlagBits { + SPV_REFLECT_TYPE_FLAG_UNDEFINED = 0x00000000, + SPV_REFLECT_TYPE_FLAG_VOID = 0x00000001, + SPV_REFLECT_TYPE_FLAG_BOOL = 0x00000002, + SPV_REFLECT_TYPE_FLAG_INT = 0x00000004, + SPV_REFLECT_TYPE_FLAG_FLOAT = 0x00000008, + SPV_REFLECT_TYPE_FLAG_VECTOR = 0x00000100, + SPV_REFLECT_TYPE_FLAG_MATRIX = 0x00000200, + SPV_REFLECT_TYPE_FLAG_EXTERNAL_IMAGE = 0x00010000, + SPV_REFLECT_TYPE_FLAG_EXTERNAL_SAMPLER = 0x00020000, + SPV_REFLECT_TYPE_FLAG_EXTERNAL_SAMPLED_IMAGE = 0x00040000, + SPV_REFLECT_TYPE_FLAG_EXTERNAL_BLOCK = 0x00080000, + SPV_REFLECT_TYPE_FLAG_EXTERNAL_ACCELERATION_STRUCTURE = 0x00100000, + SPV_REFLECT_TYPE_FLAG_EXTERNAL_MASK = 0x00FF0000, + SPV_REFLECT_TYPE_FLAG_STRUCT = 0x10000000, + SPV_REFLECT_TYPE_FLAG_ARRAY = 0x20000000, + SPV_REFLECT_TYPE_FLAG_REF = 0x40000000, +} SpvReflectTypeFlagBits; + +typedef uint32_t SpvReflectTypeFlags; + +/*! @enum SpvReflectDecorationBits + +NOTE: HLSL row_major and column_major decorations are reversed + in SPIR-V. Meaning that matrices declrations with row_major + will get reflected as column_major and vice versa. The + row and column decorations get appied during the compilation. + SPIRV-Reflect reads the data as is and does not make any + attempt to correct it to match what's in the source. + + The Patch, PerVertex, and PerTask are used for Interface + variables that can have array + +*/ +typedef enum SpvReflectDecorationFlagBits { + SPV_REFLECT_DECORATION_NONE = 0x00000000, + SPV_REFLECT_DECORATION_BLOCK = 0x00000001, + SPV_REFLECT_DECORATION_BUFFER_BLOCK = 0x00000002, + SPV_REFLECT_DECORATION_ROW_MAJOR = 0x00000004, + SPV_REFLECT_DECORATION_COLUMN_MAJOR = 0x00000008, + SPV_REFLECT_DECORATION_BUILT_IN = 0x00000010, + SPV_REFLECT_DECORATION_NOPERSPECTIVE = 0x00000020, + SPV_REFLECT_DECORATION_FLAT = 0x00000040, + SPV_REFLECT_DECORATION_NON_WRITABLE = 0x00000080, + SPV_REFLECT_DECORATION_RELAXED_PRECISION = 0x00000100, + SPV_REFLECT_DECORATION_NON_READABLE = 0x00000200, + SPV_REFLECT_DECORATION_PATCH = 0x00000400, + SPV_REFLECT_DECORATION_PER_VERTEX = 0x00000800, + SPV_REFLECT_DECORATION_PER_TASK = 0x00001000, + SPV_REFLECT_DECORATION_WEIGHT_TEXTURE = 0x00002000, + SPV_REFLECT_DECORATION_BLOCK_MATCH_TEXTURE = 0x00004000, +} SpvReflectDecorationFlagBits; + +typedef uint32_t SpvReflectDecorationFlags; + +// Based of SPV_GOOGLE_user_type +typedef enum SpvReflectUserType { + SPV_REFLECT_USER_TYPE_INVALID = 0, + SPV_REFLECT_USER_TYPE_CBUFFER, + SPV_REFLECT_USER_TYPE_TBUFFER, + SPV_REFLECT_USER_TYPE_APPEND_STRUCTURED_BUFFER, + SPV_REFLECT_USER_TYPE_BUFFER, + SPV_REFLECT_USER_TYPE_BYTE_ADDRESS_BUFFER, + SPV_REFLECT_USER_TYPE_CONSTANT_BUFFER, + SPV_REFLECT_USER_TYPE_CONSUME_STRUCTURED_BUFFER, + SPV_REFLECT_USER_TYPE_INPUT_PATCH, + SPV_REFLECT_USER_TYPE_OUTPUT_PATCH, + SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_BUFFER, + SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_BYTE_ADDRESS_BUFFER, + SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_STRUCTURED_BUFFER, + SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_TEXTURE_1D, + SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_TEXTURE_1D_ARRAY, + SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_TEXTURE_2D, + SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_TEXTURE_2D_ARRAY, + SPV_REFLECT_USER_TYPE_RASTERIZER_ORDERED_TEXTURE_3D, + SPV_REFLECT_USER_TYPE_RAYTRACING_ACCELERATION_STRUCTURE, + SPV_REFLECT_USER_TYPE_RW_BUFFER, + SPV_REFLECT_USER_TYPE_RW_BYTE_ADDRESS_BUFFER, + SPV_REFLECT_USER_TYPE_RW_STRUCTURED_BUFFER, + SPV_REFLECT_USER_TYPE_RW_TEXTURE_1D, + SPV_REFLECT_USER_TYPE_RW_TEXTURE_1D_ARRAY, + SPV_REFLECT_USER_TYPE_RW_TEXTURE_2D, + SPV_REFLECT_USER_TYPE_RW_TEXTURE_2D_ARRAY, + SPV_REFLECT_USER_TYPE_RW_TEXTURE_3D, + SPV_REFLECT_USER_TYPE_STRUCTURED_BUFFER, + SPV_REFLECT_USER_TYPE_SUBPASS_INPUT, + SPV_REFLECT_USER_TYPE_SUBPASS_INPUT_MS, + SPV_REFLECT_USER_TYPE_TEXTURE_1D, + SPV_REFLECT_USER_TYPE_TEXTURE_1D_ARRAY, + SPV_REFLECT_USER_TYPE_TEXTURE_2D, + SPV_REFLECT_USER_TYPE_TEXTURE_2D_ARRAY, + SPV_REFLECT_USER_TYPE_TEXTURE_2DMS, + SPV_REFLECT_USER_TYPE_TEXTURE_2DMS_ARRAY, + SPV_REFLECT_USER_TYPE_TEXTURE_3D, + SPV_REFLECT_USER_TYPE_TEXTURE_BUFFER, + SPV_REFLECT_USER_TYPE_TEXTURE_CUBE, + SPV_REFLECT_USER_TYPE_TEXTURE_CUBE_ARRAY, +} SpvReflectUserType; + +/*! @enum SpvReflectResourceType + +*/ +typedef enum SpvReflectResourceType { + SPV_REFLECT_RESOURCE_FLAG_UNDEFINED = 0x00000000, + SPV_REFLECT_RESOURCE_FLAG_SAMPLER = 0x00000001, + SPV_REFLECT_RESOURCE_FLAG_CBV = 0x00000002, + SPV_REFLECT_RESOURCE_FLAG_SRV = 0x00000004, + SPV_REFLECT_RESOURCE_FLAG_UAV = 0x00000008, +} SpvReflectResourceType; + +/*! @enum SpvReflectFormat + +*/ +typedef enum SpvReflectFormat { + SPV_REFLECT_FORMAT_UNDEFINED = 0, // = VK_FORMAT_UNDEFINED + SPV_REFLECT_FORMAT_R16_UINT = 74, // = VK_FORMAT_R16_UINT + SPV_REFLECT_FORMAT_R16_SINT = 75, // = VK_FORMAT_R16_SINT + SPV_REFLECT_FORMAT_R16_SFLOAT = 76, // = VK_FORMAT_R16_SFLOAT + SPV_REFLECT_FORMAT_R16G16_UINT = 81, // = VK_FORMAT_R16G16_UINT + SPV_REFLECT_FORMAT_R16G16_SINT = 82, // = VK_FORMAT_R16G16_SINT + SPV_REFLECT_FORMAT_R16G16_SFLOAT = 83, // = VK_FORMAT_R16G16_SFLOAT + SPV_REFLECT_FORMAT_R16G16B16_UINT = 88, // = VK_FORMAT_R16G16B16_UINT + SPV_REFLECT_FORMAT_R16G16B16_SINT = 89, // = VK_FORMAT_R16G16B16_SINT + SPV_REFLECT_FORMAT_R16G16B16_SFLOAT = 90, // = VK_FORMAT_R16G16B16_SFLOAT + SPV_REFLECT_FORMAT_R16G16B16A16_UINT = 95, // = VK_FORMAT_R16G16B16A16_UINT + SPV_REFLECT_FORMAT_R16G16B16A16_SINT = 96, // = VK_FORMAT_R16G16B16A16_SINT + SPV_REFLECT_FORMAT_R16G16B16A16_SFLOAT = 97, // = VK_FORMAT_R16G16B16A16_SFLOAT + SPV_REFLECT_FORMAT_R32_UINT = 98, // = VK_FORMAT_R32_UINT + SPV_REFLECT_FORMAT_R32_SINT = 99, // = VK_FORMAT_R32_SINT + SPV_REFLECT_FORMAT_R32_SFLOAT = 100, // = VK_FORMAT_R32_SFLOAT + SPV_REFLECT_FORMAT_R32G32_UINT = 101, // = VK_FORMAT_R32G32_UINT + SPV_REFLECT_FORMAT_R32G32_SINT = 102, // = VK_FORMAT_R32G32_SINT + SPV_REFLECT_FORMAT_R32G32_SFLOAT = 103, // = VK_FORMAT_R32G32_SFLOAT + SPV_REFLECT_FORMAT_R32G32B32_UINT = 104, // = VK_FORMAT_R32G32B32_UINT + SPV_REFLECT_FORMAT_R32G32B32_SINT = 105, // = VK_FORMAT_R32G32B32_SINT + SPV_REFLECT_FORMAT_R32G32B32_SFLOAT = 106, // = VK_FORMAT_R32G32B32_SFLOAT + SPV_REFLECT_FORMAT_R32G32B32A32_UINT = 107, // = VK_FORMAT_R32G32B32A32_UINT + SPV_REFLECT_FORMAT_R32G32B32A32_SINT = 108, // = VK_FORMAT_R32G32B32A32_SINT + SPV_REFLECT_FORMAT_R32G32B32A32_SFLOAT = 109, // = VK_FORMAT_R32G32B32A32_SFLOAT + SPV_REFLECT_FORMAT_R64_UINT = 110, // = VK_FORMAT_R64_UINT + SPV_REFLECT_FORMAT_R64_SINT = 111, // = VK_FORMAT_R64_SINT + SPV_REFLECT_FORMAT_R64_SFLOAT = 112, // = VK_FORMAT_R64_SFLOAT + SPV_REFLECT_FORMAT_R64G64_UINT = 113, // = VK_FORMAT_R64G64_UINT + SPV_REFLECT_FORMAT_R64G64_SINT = 114, // = VK_FORMAT_R64G64_SINT + SPV_REFLECT_FORMAT_R64G64_SFLOAT = 115, // = VK_FORMAT_R64G64_SFLOAT + SPV_REFLECT_FORMAT_R64G64B64_UINT = 116, // = VK_FORMAT_R64G64B64_UINT + SPV_REFLECT_FORMAT_R64G64B64_SINT = 117, // = VK_FORMAT_R64G64B64_SINT + SPV_REFLECT_FORMAT_R64G64B64_SFLOAT = 118, // = VK_FORMAT_R64G64B64_SFLOAT + SPV_REFLECT_FORMAT_R64G64B64A64_UINT = 119, // = VK_FORMAT_R64G64B64A64_UINT + SPV_REFLECT_FORMAT_R64G64B64A64_SINT = 120, // = VK_FORMAT_R64G64B64A64_SINT + SPV_REFLECT_FORMAT_R64G64B64A64_SFLOAT = 121, // = VK_FORMAT_R64G64B64A64_SFLOAT +} SpvReflectFormat; + +/*! @enum SpvReflectVariableFlagBits + +*/ +enum SpvReflectVariableFlagBits{ + SPV_REFLECT_VARIABLE_FLAGS_NONE = 0x00000000, + SPV_REFLECT_VARIABLE_FLAGS_UNUSED = 0x00000001, + // If variable points to a copy of the PhysicalStorageBuffer struct + SPV_REFLECT_VARIABLE_FLAGS_PHYSICAL_POINTER_COPY = 0x00000002, +}; + +typedef uint32_t SpvReflectVariableFlags; + +/*! @enum SpvReflectDescriptorType + +*/ +typedef enum SpvReflectDescriptorType { + SPV_REFLECT_DESCRIPTOR_TYPE_SAMPLER = 0, // = VK_DESCRIPTOR_TYPE_SAMPLER + SPV_REFLECT_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 1, // = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER + SPV_REFLECT_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 2, // = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE + SPV_REFLECT_DESCRIPTOR_TYPE_STORAGE_IMAGE = 3, // = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE + SPV_REFLECT_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 4, // = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER + SPV_REFLECT_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 5, // = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER + SPV_REFLECT_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 6, // = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER + SPV_REFLECT_DESCRIPTOR_TYPE_STORAGE_BUFFER = 7, // = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER + SPV_REFLECT_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 8, // = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC + SPV_REFLECT_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 9, // = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC + SPV_REFLECT_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = 10, // = VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT + SPV_REFLECT_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR = 1000150000 // = VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR +} SpvReflectDescriptorType; + +/*! @enum SpvReflectShaderStageFlagBits + +*/ +typedef enum SpvReflectShaderStageFlagBits { + SPV_REFLECT_SHADER_STAGE_VERTEX_BIT = 0x00000001, // = VK_SHADER_STAGE_VERTEX_BIT + SPV_REFLECT_SHADER_STAGE_TESSELLATION_CONTROL_BIT = 0x00000002, // = VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT + SPV_REFLECT_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = 0x00000004, // = VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT + SPV_REFLECT_SHADER_STAGE_GEOMETRY_BIT = 0x00000008, // = VK_SHADER_STAGE_GEOMETRY_BIT + SPV_REFLECT_SHADER_STAGE_FRAGMENT_BIT = 0x00000010, // = VK_SHADER_STAGE_FRAGMENT_BIT + SPV_REFLECT_SHADER_STAGE_COMPUTE_BIT = 0x00000020, // = VK_SHADER_STAGE_COMPUTE_BIT + SPV_REFLECT_SHADER_STAGE_TASK_BIT_NV = 0x00000040, // = VK_SHADER_STAGE_TASK_BIT_NV + SPV_REFLECT_SHADER_STAGE_TASK_BIT_EXT = SPV_REFLECT_SHADER_STAGE_TASK_BIT_NV, // = VK_SHADER_STAGE_CALLABLE_BIT_EXT + SPV_REFLECT_SHADER_STAGE_MESH_BIT_NV = 0x00000080, // = VK_SHADER_STAGE_MESH_BIT_NV + SPV_REFLECT_SHADER_STAGE_MESH_BIT_EXT = SPV_REFLECT_SHADER_STAGE_MESH_BIT_NV, // = VK_SHADER_STAGE_CALLABLE_BIT_EXT + SPV_REFLECT_SHADER_STAGE_RAYGEN_BIT_KHR = 0x00000100, // = VK_SHADER_STAGE_RAYGEN_BIT_KHR + SPV_REFLECT_SHADER_STAGE_ANY_HIT_BIT_KHR = 0x00000200, // = VK_SHADER_STAGE_ANY_HIT_BIT_KHR + SPV_REFLECT_SHADER_STAGE_CLOSEST_HIT_BIT_KHR = 0x00000400, // = VK_SHADER_STAGE_CLOSEST_HIT_BIT_KHR + SPV_REFLECT_SHADER_STAGE_MISS_BIT_KHR = 0x00000800, // = VK_SHADER_STAGE_MISS_BIT_KHR + SPV_REFLECT_SHADER_STAGE_INTERSECTION_BIT_KHR = 0x00001000, // = VK_SHADER_STAGE_INTERSECTION_BIT_KHR + SPV_REFLECT_SHADER_STAGE_CALLABLE_BIT_KHR = 0x00002000, // = VK_SHADER_STAGE_CALLABLE_BIT_KHR + +} SpvReflectShaderStageFlagBits; + +/*! @enum SpvReflectGenerator + +*/ +typedef enum SpvReflectGenerator { + SPV_REFLECT_GENERATOR_KHRONOS_LLVM_SPIRV_TRANSLATOR = 6, + SPV_REFLECT_GENERATOR_KHRONOS_SPIRV_TOOLS_ASSEMBLER = 7, + SPV_REFLECT_GENERATOR_KHRONOS_GLSLANG_REFERENCE_FRONT_END = 8, + SPV_REFLECT_GENERATOR_GOOGLE_SHADERC_OVER_GLSLANG = 13, + SPV_REFLECT_GENERATOR_GOOGLE_SPIREGG = 14, + SPV_REFLECT_GENERATOR_GOOGLE_RSPIRV = 15, + SPV_REFLECT_GENERATOR_X_LEGEND_MESA_MESAIR_SPIRV_TRANSLATOR = 16, + SPV_REFLECT_GENERATOR_KHRONOS_SPIRV_TOOLS_LINKER = 17, + SPV_REFLECT_GENERATOR_WINE_VKD3D_SHADER_COMPILER = 18, + SPV_REFLECT_GENERATOR_CLAY_CLAY_SHADER_COMPILER = 19, +} SpvReflectGenerator; + +enum { + SPV_REFLECT_MAX_ARRAY_DIMS = 32, + SPV_REFLECT_MAX_DESCRIPTOR_SETS = 64, +}; + +enum { + SPV_REFLECT_BINDING_NUMBER_DONT_CHANGE = ~0, + SPV_REFLECT_SET_NUMBER_DONT_CHANGE = ~0 +}; + +typedef struct SpvReflectNumericTraits { + struct Scalar { + uint32_t width; + uint32_t signedness; + } scalar; + + struct Vector { + uint32_t component_count; + } vector; + + struct Matrix { + uint32_t column_count; + uint32_t row_count; + uint32_t stride; // Measured in bytes + } matrix; +} SpvReflectNumericTraits; + +typedef struct SpvReflectImageTraits { + SpvDim dim; + uint32_t depth; + uint32_t arrayed; + uint32_t ms; // 0: single-sampled; 1: multisampled + uint32_t sampled; + SpvImageFormat image_format; +} SpvReflectImageTraits; + +typedef enum SpvReflectArrayDimType { + SPV_REFLECT_ARRAY_DIM_RUNTIME = 0, // OpTypeRuntimeArray +} SpvReflectArrayDimType; + +typedef struct SpvReflectArrayTraits { + uint32_t dims_count; + // Each entry is either: + // - specialization constant dimension + // - OpTypeRuntimeArray + // - the array length otherwise + uint32_t dims[SPV_REFLECT_MAX_ARRAY_DIMS]; + // Stores Ids for dimensions that are specialization constants + uint32_t spec_constant_op_ids[SPV_REFLECT_MAX_ARRAY_DIMS]; + uint32_t stride; // Measured in bytes +} SpvReflectArrayTraits; + +typedef struct SpvReflectBindingArrayTraits { + uint32_t dims_count; + uint32_t dims[SPV_REFLECT_MAX_ARRAY_DIMS]; +} SpvReflectBindingArrayTraits; + +/*! @struct SpvReflectTypeDescription + @brief Information about an OpType* instruction +*/ +typedef struct SpvReflectTypeDescription { + uint32_t id; + SpvOp op; + const char* type_name; + // Non-NULL if type is member of a struct + const char* struct_member_name; + SpvStorageClass storage_class; + SpvReflectTypeFlags type_flags; + SpvReflectDecorationFlags decoration_flags; + + struct Traits { + SpvReflectNumericTraits numeric; + SpvReflectImageTraits image; + SpvReflectArrayTraits array; + } traits; + + // If underlying type is a struct (ex. array of structs) + // this gives access to the OpTypeStruct + struct SpvReflectTypeDescription* struct_type_description; + + // Some pointers to SpvReflectTypeDescription are really + // just copies of another reference to the same OpType + uint32_t copied; + + // @deprecated use struct_type_description instead + uint32_t member_count; + // @deprecated use struct_type_description instead + struct SpvReflectTypeDescription* members; +} SpvReflectTypeDescription; + + +/*! @struct SpvReflectInterfaceVariable + @brief The OpVariable that is either an Input or Output to the module +*/ +typedef struct SpvReflectInterfaceVariable { + uint32_t spirv_id; + const char* name; + uint32_t location; + uint32_t component; + SpvStorageClass storage_class; + const char* semantic; + SpvReflectDecorationFlags decoration_flags; + SpvBuiltIn built_in; + SpvReflectNumericTraits numeric; + SpvReflectArrayTraits array; + + uint32_t member_count; + struct SpvReflectInterfaceVariable* members; + + SpvReflectFormat format; + + // NOTE: SPIR-V shares type references for variables + // that have the same underlying type. This means + // that the same type name will appear for multiple + // variables. + SpvReflectTypeDescription* type_description; + + struct { + uint32_t location; + } word_offset; +} SpvReflectInterfaceVariable; + +/*! @struct SpvReflectBlockVariable + +*/ +typedef struct SpvReflectBlockVariable { + uint32_t spirv_id; + const char* name; + // For Push Constants, this is the lowest offset of all memebers + uint32_t offset; // Measured in bytes + uint32_t absolute_offset; // Measured in bytes + uint32_t size; // Measured in bytes + uint32_t padded_size; // Measured in bytes + SpvReflectDecorationFlags decoration_flags; + SpvReflectNumericTraits numeric; + SpvReflectArrayTraits array; + SpvReflectVariableFlags flags; + + uint32_t member_count; + struct SpvReflectBlockVariable* members; + + SpvReflectTypeDescription* type_description; + + struct { + uint32_t offset; + } word_offset; + +} SpvReflectBlockVariable; + +/*! @struct SpvReflectDescriptorBinding + +*/ +typedef struct SpvReflectDescriptorBinding { + uint32_t spirv_id; + const char* name; + uint32_t binding; + uint32_t input_attachment_index; + uint32_t set; + SpvReflectDescriptorType descriptor_type; + SpvReflectResourceType resource_type; + SpvReflectImageTraits image; + SpvReflectBlockVariable block; + SpvReflectBindingArrayTraits array; + uint32_t count; + uint32_t accessed; + uint32_t uav_counter_id; + struct SpvReflectDescriptorBinding* uav_counter_binding; + uint32_t byte_address_buffer_offset_count; + uint32_t* byte_address_buffer_offsets; + + SpvReflectTypeDescription* type_description; + + struct { + uint32_t binding; + uint32_t set; + } word_offset; + + SpvReflectDecorationFlags decoration_flags; + // Requires SPV_GOOGLE_user_type + SpvReflectUserType user_type; +} SpvReflectDescriptorBinding; + +/*! @struct SpvReflectDescriptorSet + +*/ +typedef struct SpvReflectDescriptorSet { + uint32_t set; + uint32_t binding_count; + SpvReflectDescriptorBinding** bindings; +} SpvReflectDescriptorSet; + +typedef enum SpvReflectExecutionModeValue { + SPV_REFLECT_EXECUTION_MODE_SPEC_CONSTANT = 0xFFFFFFFF // specialization constant +} SpvReflectExecutionModeValue; + +/*! @struct SpvReflectEntryPoint + + */ +typedef struct SpvReflectEntryPoint { + const char* name; + uint32_t id; + + SpvExecutionModel spirv_execution_model; + SpvReflectShaderStageFlagBits shader_stage; + + uint32_t input_variable_count; + SpvReflectInterfaceVariable** input_variables; + uint32_t output_variable_count; + SpvReflectInterfaceVariable** output_variables; + uint32_t interface_variable_count; + SpvReflectInterfaceVariable* interface_variables; + + uint32_t descriptor_set_count; + SpvReflectDescriptorSet* descriptor_sets; + + uint32_t used_uniform_count; + uint32_t* used_uniforms; + uint32_t used_push_constant_count; + uint32_t* used_push_constants; + + uint32_t execution_mode_count; + SpvExecutionMode* execution_modes; + + struct LocalSize { + uint32_t x; + uint32_t y; + uint32_t z; + } local_size; + uint32_t invocations; // valid for geometry + uint32_t output_vertices; // valid for geometry, tesselation +} SpvReflectEntryPoint; + +/*! @struct SpvReflectCapability + +*/ +typedef struct SpvReflectCapability { + SpvCapability value; + uint32_t word_offset; +} SpvReflectCapability; + + +/*! @struct SpvReflectSpecId + +*/ +typedef struct SpvReflectSpecializationConstant { + uint32_t spirv_id; + uint32_t constant_id; + const char* name; +} SpvReflectSpecializationConstant; + +/*! @struct SpvReflectShaderModule + +*/ +typedef struct SpvReflectShaderModule { + SpvReflectGenerator generator; + const char* entry_point_name; + uint32_t entry_point_id; + uint32_t entry_point_count; + SpvReflectEntryPoint* entry_points; + SpvSourceLanguage source_language; + uint32_t source_language_version; + const char* source_file; + const char* source_source; + uint32_t capability_count; + SpvReflectCapability* capabilities; + SpvExecutionModel spirv_execution_model; // Uses value(s) from first entry point + SpvReflectShaderStageFlagBits shader_stage; // Uses value(s) from first entry point + uint32_t descriptor_binding_count; // Uses value(s) from first entry point + SpvReflectDescriptorBinding* descriptor_bindings; // Uses value(s) from first entry point + uint32_t descriptor_set_count; // Uses value(s) from first entry point + SpvReflectDescriptorSet descriptor_sets[SPV_REFLECT_MAX_DESCRIPTOR_SETS]; // Uses value(s) from first entry point + uint32_t input_variable_count; // Uses value(s) from first entry point + SpvReflectInterfaceVariable** input_variables; // Uses value(s) from first entry point + uint32_t output_variable_count; // Uses value(s) from first entry point + SpvReflectInterfaceVariable** output_variables; // Uses value(s) from first entry point + uint32_t interface_variable_count; // Uses value(s) from first entry point + SpvReflectInterfaceVariable* interface_variables; // Uses value(s) from first entry point + uint32_t push_constant_block_count; // Uses value(s) from first entry point + SpvReflectBlockVariable* push_constant_blocks; // Uses value(s) from first entry point + uint32_t spec_constant_count; // Uses value(s) from first entry point + SpvReflectSpecializationConstant* spec_constants; // Uses value(s) from first entry point + + struct Internal { + SpvReflectModuleFlags module_flags; + size_t spirv_size; + uint32_t* spirv_code; + uint32_t spirv_word_count; + + size_t type_description_count; + SpvReflectTypeDescription* type_descriptions; + } * _internal; + +} SpvReflectShaderModule; + +#if defined(__cplusplus) +extern "C" { +#endif + +/*! @fn spvReflectCreateShaderModule + + @param size Size in bytes of SPIR-V code. + @param p_code Pointer to SPIR-V code. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @return SPV_REFLECT_RESULT_SUCCESS on success. + +*/ +SpvReflectResult spvReflectCreateShaderModule( + size_t size, + const void* p_code, + SpvReflectShaderModule* p_module +); + +/*! @fn spvReflectCreateShaderModule2 + + @param flags Flags for module creations. + @param size Size in bytes of SPIR-V code. + @param p_code Pointer to SPIR-V code. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @return SPV_REFLECT_RESULT_SUCCESS on success. + +*/ +SpvReflectResult spvReflectCreateShaderModule2( + SpvReflectModuleFlags flags, + size_t size, + const void* p_code, + SpvReflectShaderModule* p_module +); + +SPV_REFLECT_DEPRECATED("renamed to spvReflectCreateShaderModule") +SpvReflectResult spvReflectGetShaderModule( + size_t size, + const void* p_code, + SpvReflectShaderModule* p_module +); + + +/*! @fn spvReflectDestroyShaderModule + + @param p_module Pointer to an instance of SpvReflectShaderModule. + +*/ +void spvReflectDestroyShaderModule(SpvReflectShaderModule* p_module); + + +/*! @fn spvReflectGetCodeSize + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @return Returns the size of the SPIR-V in bytes + +*/ +uint32_t spvReflectGetCodeSize(const SpvReflectShaderModule* p_module); + + +/*! @fn spvReflectGetCode + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @return Returns a const pointer to the compiled SPIR-V bytecode. + +*/ +const uint32_t* spvReflectGetCode(const SpvReflectShaderModule* p_module); + +/*! @fn spvReflectGetEntryPoint + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param entry_point Name of the requested entry point. + @return Returns a const pointer to the requested entry point, + or NULL if it's not found. +*/ +const SpvReflectEntryPoint* spvReflectGetEntryPoint( + const SpvReflectShaderModule* p_module, + const char* entry_point +); + +/*! @fn spvReflectEnumerateDescriptorBindings + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_count If pp_bindings is NULL, the module's descriptor binding + count (across all descriptor sets) will be stored here. + If pp_bindings is not NULL, *p_count must contain the + module's descriptor binding count. + @param pp_bindings If NULL, the module's total descriptor binding count + will be written to *p_count. + If non-NULL, pp_bindings must point to an array with + *p_count entries, where pointers to the module's + descriptor bindings will be written. The caller must not + free the binding pointers written to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumerateDescriptorBindings( + const SpvReflectShaderModule* p_module, + uint32_t* p_count, + SpvReflectDescriptorBinding** pp_bindings +); + +/*! @fn spvReflectEnumerateEntryPointDescriptorBindings + @brief Creates a listing of all descriptor bindings that are used in the + static call tree of the given entry point. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param entry_point The name of the entry point to get the descriptor bindings for. + @param p_count If pp_bindings is NULL, the entry point's descriptor binding + count (across all descriptor sets) will be stored here. + If pp_bindings is not NULL, *p_count must contain the + entry points's descriptor binding count. + @param pp_bindings If NULL, the entry point's total descriptor binding count + will be written to *p_count. + If non-NULL, pp_bindings must point to an array with + *p_count entries, where pointers to the entry point's + descriptor bindings will be written. The caller must not + free the binding pointers written to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumerateEntryPointDescriptorBindings( + const SpvReflectShaderModule* p_module, + const char* entry_point, + uint32_t* p_count, + SpvReflectDescriptorBinding** pp_bindings +); + +/*! @fn spvReflectEnumerateDescriptorSets + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_count If pp_sets is NULL, the module's descriptor set + count will be stored here. + If pp_sets is not NULL, *p_count must contain the + module's descriptor set count. + @param pp_sets If NULL, the module's total descriptor set count + will be written to *p_count. + If non-NULL, pp_sets must point to an array with + *p_count entries, where pointers to the module's + descriptor sets will be written. The caller must not + free the descriptor set pointers written to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumerateDescriptorSets( + const SpvReflectShaderModule* p_module, + uint32_t* p_count, + SpvReflectDescriptorSet** pp_sets +); + +/*! @fn spvReflectEnumerateEntryPointDescriptorSets + @brief Creates a listing of all descriptor sets and their bindings that are + used in the static call tree of a given entry point. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param entry_point The name of the entry point to get the descriptor bindings for. + @param p_count If pp_sets is NULL, the module's descriptor set + count will be stored here. + If pp_sets is not NULL, *p_count must contain the + module's descriptor set count. + @param pp_sets If NULL, the module's total descriptor set count + will be written to *p_count. + If non-NULL, pp_sets must point to an array with + *p_count entries, where pointers to the module's + descriptor sets will be written. The caller must not + free the descriptor set pointers written to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumerateEntryPointDescriptorSets( + const SpvReflectShaderModule* p_module, + const char* entry_point, + uint32_t* p_count, + SpvReflectDescriptorSet** pp_sets +); + + +/*! @fn spvReflectEnumerateInterfaceVariables + @brief If the module contains multiple entry points, this will only get + the interface variables for the first one. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_count If pp_variables is NULL, the module's interface variable + count will be stored here. + If pp_variables is not NULL, *p_count must contain + the module's interface variable count. + @param pp_variables If NULL, the module's interface variable count will be + written to *p_count. + If non-NULL, pp_variables must point to an array with + *p_count entries, where pointers to the module's + interface variables will be written. The caller must not + free the interface variables written to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumerateInterfaceVariables( + const SpvReflectShaderModule* p_module, + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +); + +/*! @fn spvReflectEnumerateEntryPointInterfaceVariables + @brief Enumerate the interface variables for a given entry point. + @param entry_point The name of the entry point to get the interface variables for. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_count If pp_variables is NULL, the entry point's interface variable + count will be stored here. + If pp_variables is not NULL, *p_count must contain + the entry point's interface variable count. + @param pp_variables If NULL, the entry point's interface variable count will be + written to *p_count. + If non-NULL, pp_variables must point to an array with + *p_count entries, where pointers to the entry point's + interface variables will be written. The caller must not + free the interface variables written to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumerateEntryPointInterfaceVariables( + const SpvReflectShaderModule* p_module, + const char* entry_point, + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +); + + +/*! @fn spvReflectEnumerateInputVariables + @brief If the module contains multiple entry points, this will only get + the input variables for the first one. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_count If pp_variables is NULL, the module's input variable + count will be stored here. + If pp_variables is not NULL, *p_count must contain + the module's input variable count. + @param pp_variables If NULL, the module's input variable count will be + written to *p_count. + If non-NULL, pp_variables must point to an array with + *p_count entries, where pointers to the module's + input variables will be written. The caller must not + free the interface variables written to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumerateInputVariables( + const SpvReflectShaderModule* p_module, + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +); + +/*! @fn spvReflectEnumerateEntryPointInputVariables + @brief Enumerate the input variables for a given entry point. + @param entry_point The name of the entry point to get the input variables for. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_count If pp_variables is NULL, the entry point's input variable + count will be stored here. + If pp_variables is not NULL, *p_count must contain + the entry point's input variable count. + @param pp_variables If NULL, the entry point's input variable count will be + written to *p_count. + If non-NULL, pp_variables must point to an array with + *p_count entries, where pointers to the entry point's + input variables will be written. The caller must not + free the interface variables written to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumerateEntryPointInputVariables( + const SpvReflectShaderModule* p_module, + const char* entry_point, + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +); + + +/*! @fn spvReflectEnumerateOutputVariables + @brief Note: If the module contains multiple entry points, this will only get + the output variables for the first one. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_count If pp_variables is NULL, the module's output variable + count will be stored here. + If pp_variables is not NULL, *p_count must contain + the module's output variable count. + @param pp_variables If NULL, the module's output variable count will be + written to *p_count. + If non-NULL, pp_variables must point to an array with + *p_count entries, where pointers to the module's + output variables will be written. The caller must not + free the interface variables written to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumerateOutputVariables( + const SpvReflectShaderModule* p_module, + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +); + +/*! @fn spvReflectEnumerateEntryPointOutputVariables + @brief Enumerate the output variables for a given entry point. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param entry_point The name of the entry point to get the output variables for. + @param p_count If pp_variables is NULL, the entry point's output variable + count will be stored here. + If pp_variables is not NULL, *p_count must contain + the entry point's output variable count. + @param pp_variables If NULL, the entry point's output variable count will be + written to *p_count. + If non-NULL, pp_variables must point to an array with + *p_count entries, where pointers to the entry point's + output variables will be written. The caller must not + free the interface variables written to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumerateEntryPointOutputVariables( + const SpvReflectShaderModule* p_module, + const char* entry_point, + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +); + + +/*! @fn spvReflectEnumeratePushConstantBlocks + @brief Note: If the module contains multiple entry points, this will only get + the push constant blocks for the first one. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_count If pp_blocks is NULL, the module's push constant + block count will be stored here. + If pp_blocks is not NULL, *p_count must + contain the module's push constant block count. + @param pp_blocks If NULL, the module's push constant block count + will be written to *p_count. + If non-NULL, pp_blocks must point to an + array with *p_count entries, where pointers to + the module's push constant blocks will be written. + The caller must not free the block variables written + to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumeratePushConstantBlocks( + const SpvReflectShaderModule* p_module, + uint32_t* p_count, + SpvReflectBlockVariable** pp_blocks +); +SPV_REFLECT_DEPRECATED("renamed to spvReflectEnumeratePushConstantBlocks") +SpvReflectResult spvReflectEnumeratePushConstants( + const SpvReflectShaderModule* p_module, + uint32_t* p_count, + SpvReflectBlockVariable** pp_blocks +); + +/*! @fn spvReflectEnumerateEntryPointPushConstantBlocks + @brief Enumerate the push constant blocks used in the static call tree of a + given entry point. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_count If pp_blocks is NULL, the entry point's push constant + block count will be stored here. + If pp_blocks is not NULL, *p_count must + contain the entry point's push constant block count. + @param pp_blocks If NULL, the entry point's push constant block count + will be written to *p_count. + If non-NULL, pp_blocks must point to an + array with *p_count entries, where pointers to + the entry point's push constant blocks will be written. + The caller must not free the block variables written + to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the + failure. + +*/ +SpvReflectResult spvReflectEnumerateEntryPointPushConstantBlocks( + const SpvReflectShaderModule* p_module, + const char* entry_point, + uint32_t* p_count, + SpvReflectBlockVariable** pp_blocks +); + + +/*! @fn spvReflectEnumerateSpecializationConstants + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_count If pp_blocks is NULL, the module's specialization constant + count will be stored here. If pp_blocks is not NULL, *p_count + must contain the module's specialization constant count. + @param pp_constants If NULL, the module's specialization constant count + will be written to *p_count. If non-NULL, pp_blocks must + point to an array with *p_count entries, where pointers to + the module's specialization constant blocks will be written. + The caller must not free the variables written to this array. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of the failure. +*/ +SpvReflectResult spvReflectEnumerateSpecializationConstants( + const SpvReflectShaderModule* p_module, + uint32_t* p_count, + SpvReflectSpecializationConstant** pp_constants +); + +/*! @fn spvReflectGetDescriptorBinding + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param binding_number The "binding" value of the requested descriptor + binding. + @param set_number The "set" value of the requested descriptor binding. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the module contains a descriptor binding that + matches the provided [binding_number, set_number] + values, a pointer to that binding is returned. The + caller must not free this pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. +@note If the module contains multiple desriptor bindings + with the same set and binding numbers, there are + no guarantees about which binding will be returned. + +*/ +const SpvReflectDescriptorBinding* spvReflectGetDescriptorBinding( + const SpvReflectShaderModule* p_module, + uint32_t binding_number, + uint32_t set_number, + SpvReflectResult* p_result +); + +/*! @fn spvReflectGetEntryPointDescriptorBinding + @brief Get the descriptor binding with the given binding number and set + number that is used in the static call tree of a certain entry + point. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param entry_point The entry point to get the binding from. + @param binding_number The "binding" value of the requested descriptor + binding. + @param set_number The "set" value of the requested descriptor binding. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the entry point contains a descriptor binding that + matches the provided [binding_number, set_number] + values, a pointer to that binding is returned. The + caller must not free this pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. +@note If the entry point contains multiple desriptor bindings + with the same set and binding numbers, there are + no guarantees about which binding will be returned. + +*/ +const SpvReflectDescriptorBinding* spvReflectGetEntryPointDescriptorBinding( + const SpvReflectShaderModule* p_module, + const char* entry_point, + uint32_t binding_number, + uint32_t set_number, + SpvReflectResult* p_result +); + + +/*! @fn spvReflectGetDescriptorSet + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param set_number The "set" value of the requested descriptor set. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the module contains a descriptor set with the + provided set_number, a pointer to that set is + returned. The caller must not free this pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. + +*/ +const SpvReflectDescriptorSet* spvReflectGetDescriptorSet( + const SpvReflectShaderModule* p_module, + uint32_t set_number, + SpvReflectResult* p_result +); + +/*! @fn spvReflectGetEntryPointDescriptorSet + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param entry_point The entry point to get the descriptor set from. + @param set_number The "set" value of the requested descriptor set. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the entry point contains a descriptor set with the + provided set_number, a pointer to that set is + returned. The caller must not free this pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. + +*/ +const SpvReflectDescriptorSet* spvReflectGetEntryPointDescriptorSet( + const SpvReflectShaderModule* p_module, + const char* entry_point, + uint32_t set_number, + SpvReflectResult* p_result +); + + +/* @fn spvReflectGetInputVariableByLocation + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param location The "location" value of the requested input variable. + A location of 0xFFFFFFFF will always return NULL + with *p_result == ELEMENT_NOT_FOUND. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the module contains an input interface variable + with the provided location value, a pointer to that + variable is returned. The caller must not free this + pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. +@note + +*/ +const SpvReflectInterfaceVariable* spvReflectGetInputVariableByLocation( + const SpvReflectShaderModule* p_module, + uint32_t location, + SpvReflectResult* p_result +); +SPV_REFLECT_DEPRECATED("renamed to spvReflectGetInputVariableByLocation") +const SpvReflectInterfaceVariable* spvReflectGetInputVariable( + const SpvReflectShaderModule* p_module, + uint32_t location, + SpvReflectResult* p_result +); + +/* @fn spvReflectGetEntryPointInputVariableByLocation + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param entry_point The entry point to get the input variable from. + @param location The "location" value of the requested input variable. + A location of 0xFFFFFFFF will always return NULL + with *p_result == ELEMENT_NOT_FOUND. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the entry point contains an input interface variable + with the provided location value, a pointer to that + variable is returned. The caller must not free this + pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. +@note + +*/ +const SpvReflectInterfaceVariable* spvReflectGetEntryPointInputVariableByLocation( + const SpvReflectShaderModule* p_module, + const char* entry_point, + uint32_t location, + SpvReflectResult* p_result +); + +/* @fn spvReflectGetInputVariableBySemantic + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param semantic The "semantic" value of the requested input variable. + A semantic of NULL will return NULL. + A semantic of "" will always return NULL with + *p_result == ELEMENT_NOT_FOUND. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the module contains an input interface variable + with the provided semantic, a pointer to that + variable is returned. The caller must not free this + pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. +@note + +*/ +const SpvReflectInterfaceVariable* spvReflectGetInputVariableBySemantic( + const SpvReflectShaderModule* p_module, + const char* semantic, + SpvReflectResult* p_result +); + +/* @fn spvReflectGetEntryPointInputVariableBySemantic + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param entry_point The entry point to get the input variable from. + @param semantic The "semantic" value of the requested input variable. + A semantic of NULL will return NULL. + A semantic of "" will always return NULL with + *p_result == ELEMENT_NOT_FOUND. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the entry point contains an input interface variable + with the provided semantic, a pointer to that + variable is returned. The caller must not free this + pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. +@note + +*/ +const SpvReflectInterfaceVariable* spvReflectGetEntryPointInputVariableBySemantic( + const SpvReflectShaderModule* p_module, + const char* entry_point, + const char* semantic, + SpvReflectResult* p_result +); + +/* @fn spvReflectGetOutputVariableByLocation + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param location The "location" value of the requested output variable. + A location of 0xFFFFFFFF will always return NULL + with *p_result == ELEMENT_NOT_FOUND. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the module contains an output interface variable + with the provided location value, a pointer to that + variable is returned. The caller must not free this + pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. +@note + +*/ +const SpvReflectInterfaceVariable* spvReflectGetOutputVariableByLocation( + const SpvReflectShaderModule* p_module, + uint32_t location, + SpvReflectResult* p_result +); +SPV_REFLECT_DEPRECATED("renamed to spvReflectGetOutputVariableByLocation") +const SpvReflectInterfaceVariable* spvReflectGetOutputVariable( + const SpvReflectShaderModule* p_module, + uint32_t location, + SpvReflectResult* p_result +); + +/* @fn spvReflectGetEntryPointOutputVariableByLocation + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param entry_point The entry point to get the output variable from. + @param location The "location" value of the requested output variable. + A location of 0xFFFFFFFF will always return NULL + with *p_result == ELEMENT_NOT_FOUND. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the entry point contains an output interface variable + with the provided location value, a pointer to that + variable is returned. The caller must not free this + pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. +@note + +*/ +const SpvReflectInterfaceVariable* spvReflectGetEntryPointOutputVariableByLocation( + const SpvReflectShaderModule* p_module, + const char* entry_point, + uint32_t location, + SpvReflectResult* p_result +); + +/* @fn spvReflectGetOutputVariableBySemantic + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param semantic The "semantic" value of the requested output variable. + A semantic of NULL will return NULL. + A semantic of "" will always return NULL with + *p_result == ELEMENT_NOT_FOUND. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the module contains an output interface variable + with the provided semantic, a pointer to that + variable is returned. The caller must not free this + pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. +@note + +*/ +const SpvReflectInterfaceVariable* spvReflectGetOutputVariableBySemantic( + const SpvReflectShaderModule* p_module, + const char* semantic, + SpvReflectResult* p_result +); + +/* @fn spvReflectGetEntryPointOutputVariableBySemantic + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param entry_point The entry point to get the output variable from. + @param semantic The "semantic" value of the requested output variable. + A semantic of NULL will return NULL. + A semantic of "" will always return NULL with + *p_result == ELEMENT_NOT_FOUND. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the entry point contains an output interface variable + with the provided semantic, a pointer to that + variable is returned. The caller must not free this + pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. +@note + +*/ +const SpvReflectInterfaceVariable* spvReflectGetEntryPointOutputVariableBySemantic( + const SpvReflectShaderModule* p_module, + const char* entry_point, + const char* semantic, + SpvReflectResult* p_result +); + +/*! @fn spvReflectGetPushConstantBlock + + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param index The index of the desired block within the module's + array of push constant blocks. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the provided index is within range, a pointer to + the corresponding push constant block is returned. + The caller must not free this pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. + +*/ +const SpvReflectBlockVariable* spvReflectGetPushConstantBlock( + const SpvReflectShaderModule* p_module, + uint32_t index, + SpvReflectResult* p_result +); +SPV_REFLECT_DEPRECATED("renamed to spvReflectGetPushConstantBlock") +const SpvReflectBlockVariable* spvReflectGetPushConstant( + const SpvReflectShaderModule* p_module, + uint32_t index, + SpvReflectResult* p_result +); + +/*! @fn spvReflectGetEntryPointPushConstantBlock + @brief Get the push constant block corresponding to the given entry point. + As by the Vulkan specification there can be no more than one push + constant block used by a given entry point, so if there is one it will + be returned, otherwise NULL will be returned. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param entry_point The entry point to get the push constant block from. + @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be + written to *p_result. Otherwise, a error code + indicating the cause of the failure will be stored + here. + @return If the provided index is within range, a pointer to + the corresponding push constant block is returned. + The caller must not free this pointer. + If no match can be found, or if an unrelated error + occurs, the return value will be NULL. Detailed + error results are written to *pResult. + +*/ +const SpvReflectBlockVariable* spvReflectGetEntryPointPushConstantBlock( + const SpvReflectShaderModule* p_module, + const char* entry_point, + SpvReflectResult* p_result +); + + +/*! @fn spvReflectChangeDescriptorBindingNumbers + @brief Assign new set and/or binding numbers to a descriptor binding. + In addition to updating the reflection data, this function modifies + the underlying SPIR-V bytecode. The updated code can be retrieved + with spvReflectGetCode(). If the binding is used in multiple + entry points within the module, it will be changed in all of them. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_binding Pointer to the descriptor binding to modify. + @param new_binding_number The new binding number to assign to the + provided descriptor binding. + To leave the binding number unchanged, pass + SPV_REFLECT_BINDING_NUMBER_DONT_CHANGE. + @param new_set_number The new set number to assign to the + provided descriptor binding. Successfully changing + a descriptor binding's set number invalidates all + existing SpvReflectDescriptorBinding and + SpvReflectDescriptorSet pointers from this module. + To leave the set number unchanged, pass + SPV_REFLECT_SET_NUMBER_DONT_CHANGE. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of + the failure. +*/ +SpvReflectResult spvReflectChangeDescriptorBindingNumbers( + SpvReflectShaderModule* p_module, + const SpvReflectDescriptorBinding* p_binding, + uint32_t new_binding_number, + uint32_t new_set_number +); +SPV_REFLECT_DEPRECATED("Renamed to spvReflectChangeDescriptorBindingNumbers") +SpvReflectResult spvReflectChangeDescriptorBindingNumber( + SpvReflectShaderModule* p_module, + const SpvReflectDescriptorBinding* p_descriptor_binding, + uint32_t new_binding_number, + uint32_t optional_new_set_number +); + +/*! @fn spvReflectChangeDescriptorSetNumber + @brief Assign a new set number to an entire descriptor set (including + all descriptor bindings in that set). + In addition to updating the reflection data, this function modifies + the underlying SPIR-V bytecode. The updated code can be retrieved + with spvReflectGetCode(). If the descriptor set is used in + multiple entry points within the module, it will be modified in all + of them. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_set Pointer to the descriptor binding to modify. + @param new_set_number The new set number to assign to the + provided descriptor set, and all its descriptor + bindings. Successfully changing a descriptor + binding's set number invalidates all existing + SpvReflectDescriptorBinding and + SpvReflectDescriptorSet pointers from this module. + To leave the set number unchanged, pass + SPV_REFLECT_SET_NUMBER_DONT_CHANGE. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of + the failure. +*/ +SpvReflectResult spvReflectChangeDescriptorSetNumber( + SpvReflectShaderModule* p_module, + const SpvReflectDescriptorSet* p_set, + uint32_t new_set_number +); + +/*! @fn spvReflectChangeInputVariableLocation + @brief Assign a new location to an input interface variable. + In addition to updating the reflection data, this function modifies + the underlying SPIR-V bytecode. The updated code can be retrieved + with spvReflectGetCode(). + It is the caller's responsibility to avoid assigning the same + location to multiple input variables. If the input variable is used + by multiple entry points in the module, it will be changed in all of + them. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_input_variable Pointer to the input variable to update. + @param new_location The new location to assign to p_input_variable. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of + the failure. + +*/ +SpvReflectResult spvReflectChangeInputVariableLocation( + SpvReflectShaderModule* p_module, + const SpvReflectInterfaceVariable* p_input_variable, + uint32_t new_location +); + + +/*! @fn spvReflectChangeOutputVariableLocation + @brief Assign a new location to an output interface variable. + In addition to updating the reflection data, this function modifies + the underlying SPIR-V bytecode. The updated code can be retrieved + with spvReflectGetCode(). + It is the caller's responsibility to avoid assigning the same + location to multiple output variables. If the output variable is used + by multiple entry points in the module, it will be changed in all of + them. + @param p_module Pointer to an instance of SpvReflectShaderModule. + @param p_output_variable Pointer to the output variable to update. + @param new_location The new location to assign to p_output_variable. + @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. + Otherwise, the error code indicates the cause of + the failure. + +*/ +SpvReflectResult spvReflectChangeOutputVariableLocation( + SpvReflectShaderModule* p_module, + const SpvReflectInterfaceVariable* p_output_variable, + uint32_t new_location +); + + +/*! @fn spvReflectSourceLanguage + + @param source_lang The source language code. + @return Returns string of source language specified in \a source_lang. + The caller must not free the memory associated with this string. +*/ +const char* spvReflectSourceLanguage(SpvSourceLanguage source_lang); + +/*! @fn spvReflectBlockVariableTypeName + + @param p_var Pointer to block variable. + @return Returns string of block variable's type description type name + or NULL if p_var is NULL. +*/ +const char* spvReflectBlockVariableTypeName( + const SpvReflectBlockVariable* p_var +); + +#if defined(__cplusplus) +}; +#endif + +#if defined(__cplusplus) && !defined(SPIRV_REFLECT_DISABLE_CPP_BINDINGS) +#include +#include +#include + +namespace spv_reflect { + +/*! \class ShaderModule + +*/ +class ShaderModule { +public: + ShaderModule(); + ShaderModule(size_t size, const void* p_code, SpvReflectModuleFlags flags = SPV_REFLECT_MODULE_FLAG_NONE); + ShaderModule(const std::vector& code, SpvReflectModuleFlags flags = SPV_REFLECT_MODULE_FLAG_NONE); + ShaderModule(const std::vector& code, SpvReflectModuleFlags flags = SPV_REFLECT_MODULE_FLAG_NONE); + ~ShaderModule(); + + ShaderModule(ShaderModule&& other); + ShaderModule& operator=(ShaderModule&& other); + + SpvReflectResult GetResult() const; + + const SpvReflectShaderModule& GetShaderModule() const; + + uint32_t GetCodeSize() const; + const uint32_t* GetCode() const; + + const char* GetEntryPointName() const; + + const char* GetSourceFile() const; + + uint32_t GetEntryPointCount() const; + const char* GetEntryPointName(uint32_t index) const; + SpvReflectShaderStageFlagBits GetEntryPointShaderStage(uint32_t index) const; + + SpvReflectShaderStageFlagBits GetShaderStage() const; + SPV_REFLECT_DEPRECATED("Renamed to GetShaderStage") + SpvReflectShaderStageFlagBits GetVulkanShaderStage() const { + return GetShaderStage(); + } + + SpvReflectResult EnumerateDescriptorBindings(uint32_t* p_count, SpvReflectDescriptorBinding** pp_bindings) const; + SpvReflectResult EnumerateEntryPointDescriptorBindings(const char* entry_point, uint32_t* p_count, SpvReflectDescriptorBinding** pp_bindings) const; + SpvReflectResult EnumerateDescriptorSets( uint32_t* p_count, SpvReflectDescriptorSet** pp_sets) const ; + SpvReflectResult EnumerateEntryPointDescriptorSets(const char* entry_point, uint32_t* p_count, SpvReflectDescriptorSet** pp_sets) const ; + SpvReflectResult EnumerateInterfaceVariables(uint32_t* p_count, SpvReflectInterfaceVariable** pp_variables) const; + SpvReflectResult EnumerateEntryPointInterfaceVariables(const char* entry_point, uint32_t* p_count, SpvReflectInterfaceVariable** pp_variables) const; + SpvReflectResult EnumerateInputVariables(uint32_t* p_count,SpvReflectInterfaceVariable** pp_variables) const; + SpvReflectResult EnumerateEntryPointInputVariables(const char* entry_point, uint32_t* p_count, SpvReflectInterfaceVariable** pp_variables) const; + SpvReflectResult EnumerateOutputVariables(uint32_t* p_count,SpvReflectInterfaceVariable** pp_variables) const; + SpvReflectResult EnumerateEntryPointOutputVariables(const char* entry_point, uint32_t* p_count, SpvReflectInterfaceVariable** pp_variables) const; + SpvReflectResult EnumeratePushConstantBlocks(uint32_t* p_count, SpvReflectBlockVariable** pp_blocks) const; + SpvReflectResult EnumerateEntryPointPushConstantBlocks(const char* entry_point, uint32_t* p_count, SpvReflectBlockVariable** pp_blocks) const; + SPV_REFLECT_DEPRECATED("Renamed to EnumeratePushConstantBlocks") + SpvReflectResult EnumeratePushConstants(uint32_t* p_count, SpvReflectBlockVariable** pp_blocks) const { + return EnumeratePushConstantBlocks(p_count, pp_blocks); + } + SpvReflectResult EnumerateSpecializationConstants(uint32_t* p_count, SpvReflectSpecializationConstant** pp_constants) const; + + const SpvReflectDescriptorBinding* GetDescriptorBinding(uint32_t binding_number, uint32_t set_number, SpvReflectResult* p_result = nullptr) const; + const SpvReflectDescriptorBinding* GetEntryPointDescriptorBinding(const char* entry_point, uint32_t binding_number, uint32_t set_number, SpvReflectResult* p_result = nullptr) const; + const SpvReflectDescriptorSet* GetDescriptorSet(uint32_t set_number, SpvReflectResult* p_result = nullptr) const; + const SpvReflectDescriptorSet* GetEntryPointDescriptorSet(const char* entry_point, uint32_t set_number, SpvReflectResult* p_result = nullptr) const; + const SpvReflectInterfaceVariable* GetInputVariableByLocation(uint32_t location, SpvReflectResult* p_result = nullptr) const; + SPV_REFLECT_DEPRECATED("Renamed to GetInputVariableByLocation") + const SpvReflectInterfaceVariable* GetInputVariable(uint32_t location, SpvReflectResult* p_result = nullptr) const { + return GetInputVariableByLocation(location, p_result); + } + const SpvReflectInterfaceVariable* GetEntryPointInputVariableByLocation(const char* entry_point, uint32_t location, SpvReflectResult* p_result = nullptr) const; + const SpvReflectInterfaceVariable* GetInputVariableBySemantic(const char* semantic, SpvReflectResult* p_result = nullptr) const; + const SpvReflectInterfaceVariable* GetEntryPointInputVariableBySemantic(const char* entry_point, const char* semantic, SpvReflectResult* p_result = nullptr) const; + const SpvReflectInterfaceVariable* GetOutputVariableByLocation(uint32_t location, SpvReflectResult* p_result = nullptr) const; + SPV_REFLECT_DEPRECATED("Renamed to GetOutputVariableByLocation") + const SpvReflectInterfaceVariable* GetOutputVariable(uint32_t location, SpvReflectResult* p_result = nullptr) const { + return GetOutputVariableByLocation(location, p_result); + } + const SpvReflectInterfaceVariable* GetEntryPointOutputVariableByLocation(const char* entry_point, uint32_t location, SpvReflectResult* p_result = nullptr) const; + const SpvReflectInterfaceVariable* GetOutputVariableBySemantic(const char* semantic, SpvReflectResult* p_result = nullptr) const; + const SpvReflectInterfaceVariable* GetEntryPointOutputVariableBySemantic(const char* entry_point, const char* semantic, SpvReflectResult* p_result = nullptr) const; + const SpvReflectBlockVariable* GetPushConstantBlock(uint32_t index, SpvReflectResult* p_result = nullptr) const; + SPV_REFLECT_DEPRECATED("Renamed to GetPushConstantBlock") + const SpvReflectBlockVariable* GetPushConstant(uint32_t index, SpvReflectResult* p_result = nullptr) const { + return GetPushConstantBlock(index, p_result); + } + const SpvReflectBlockVariable* GetEntryPointPushConstantBlock(const char* entry_point, SpvReflectResult* p_result = nullptr) const; + + SpvReflectResult ChangeDescriptorBindingNumbers(const SpvReflectDescriptorBinding* p_binding, + uint32_t new_binding_number = SPV_REFLECT_BINDING_NUMBER_DONT_CHANGE, + uint32_t optional_new_set_number = SPV_REFLECT_SET_NUMBER_DONT_CHANGE); + SPV_REFLECT_DEPRECATED("Renamed to ChangeDescriptorBindingNumbers") + SpvReflectResult ChangeDescriptorBindingNumber(const SpvReflectDescriptorBinding* p_binding, uint32_t new_binding_number = SPV_REFLECT_BINDING_NUMBER_DONT_CHANGE, + uint32_t new_set_number = SPV_REFLECT_SET_NUMBER_DONT_CHANGE) { + return ChangeDescriptorBindingNumbers(p_binding, new_binding_number, new_set_number); + } + SpvReflectResult ChangeDescriptorSetNumber(const SpvReflectDescriptorSet* p_set, uint32_t new_set_number = SPV_REFLECT_SET_NUMBER_DONT_CHANGE); + SpvReflectResult ChangeInputVariableLocation(const SpvReflectInterfaceVariable* p_input_variable, uint32_t new_location); + SpvReflectResult ChangeOutputVariableLocation(const SpvReflectInterfaceVariable* p_output_variable, uint32_t new_location); + +private: + // Make noncopyable + ShaderModule(const ShaderModule&); + ShaderModule& operator=(const ShaderModule&); + +private: + mutable SpvReflectResult m_result = SPV_REFLECT_RESULT_NOT_READY; + SpvReflectShaderModule m_module = {}; +}; + + +// ================================================================================================= +// ShaderModule +// ================================================================================================= + +/*! @fn ShaderModule + +*/ +inline ShaderModule::ShaderModule() {} + + +/*! @fn ShaderModule + + @param size + @param p_code + +*/ +inline ShaderModule::ShaderModule(size_t size, const void* p_code, SpvReflectModuleFlags flags) { + m_result = spvReflectCreateShaderModule2( + flags, + size, + p_code, + &m_module); +} + +/*! @fn ShaderModule + + @param code + +*/ +inline ShaderModule::ShaderModule(const std::vector& code, SpvReflectModuleFlags flags) { + m_result = spvReflectCreateShaderModule2( + flags, + code.size(), + code.data(), + &m_module); +} + +/*! @fn ShaderModule + + @param code + +*/ +inline ShaderModule::ShaderModule(const std::vector& code, SpvReflectModuleFlags flags) { + m_result = spvReflectCreateShaderModule2( + flags, + code.size() * sizeof(uint32_t), + code.data(), + &m_module); +} + +/*! @fn ~ShaderModule + +*/ +inline ShaderModule::~ShaderModule() { + spvReflectDestroyShaderModule(&m_module); +} + + +inline ShaderModule::ShaderModule(ShaderModule&& other) +{ + *this = std::move(other); +} + +inline ShaderModule& ShaderModule::operator=(ShaderModule&& other) +{ + m_result = std::move(other.m_result); + m_module = std::move(other.m_module); + + other.m_module = {}; + return *this; +} + +/*! @fn GetResult + + @return + +*/ +inline SpvReflectResult ShaderModule::GetResult() const { + return m_result; +} + + +/*! @fn GetShaderModule + + @return + +*/ +inline const SpvReflectShaderModule& ShaderModule::GetShaderModule() const { + return m_module; +} + + +/*! @fn GetCodeSize + + @return + + */ +inline uint32_t ShaderModule::GetCodeSize() const { + return spvReflectGetCodeSize(&m_module); +} + + +/*! @fn GetCode + + @return + +*/ +inline const uint32_t* ShaderModule::GetCode() const { + return spvReflectGetCode(&m_module); +} + + +/*! @fn GetEntryPoint + + @return Returns entry point + +*/ +inline const char* ShaderModule::GetEntryPointName() const { + return this->GetEntryPointName(0); +} + +/*! @fn GetEntryPoint + + @return Returns entry point + +*/ +inline const char* ShaderModule::GetSourceFile() const { + return m_module.source_file; +} + +/*! @fn GetEntryPointCount + + @param + @return +*/ +inline uint32_t ShaderModule::GetEntryPointCount() const { + return m_module.entry_point_count; +} + +/*! @fn GetEntryPointName + + @param index + @return +*/ +inline const char* ShaderModule::GetEntryPointName(uint32_t index) const { + return m_module.entry_points[index].name; +} + +/*! @fn GetEntryPointShaderStage + + @param index + @return Returns the shader stage for the entry point at \b index +*/ +inline SpvReflectShaderStageFlagBits ShaderModule::GetEntryPointShaderStage(uint32_t index) const { + return m_module.entry_points[index].shader_stage; +} + +/*! @fn GetShaderStage + + @return Returns shader stage for the first entry point + +*/ +inline SpvReflectShaderStageFlagBits ShaderModule::GetShaderStage() const { + return m_module.shader_stage; +} + +/*! @fn EnumerateDescriptorBindings + + @param count + @param p_binding_numbers + @param pp_bindings + @return + +*/ +inline SpvReflectResult ShaderModule::EnumerateDescriptorBindings( + uint32_t* p_count, + SpvReflectDescriptorBinding** pp_bindings +) const +{ + m_result = spvReflectEnumerateDescriptorBindings( + &m_module, + p_count, + pp_bindings); + return m_result; +} + +/*! @fn EnumerateEntryPointDescriptorBindings + + @param entry_point + @param count + @param pp_bindings + @return + +*/ +inline SpvReflectResult ShaderModule::EnumerateEntryPointDescriptorBindings( + const char* entry_point, + uint32_t* p_count, + SpvReflectDescriptorBinding** pp_bindings +) const +{ + m_result = spvReflectEnumerateEntryPointDescriptorBindings( + &m_module, + entry_point, + p_count, + pp_bindings); + return m_result; +} + + +/*! @fn EnumerateDescriptorSets + + @param count + @param pp_sets + @return + +*/ +inline SpvReflectResult ShaderModule::EnumerateDescriptorSets( + uint32_t* p_count, + SpvReflectDescriptorSet** pp_sets +) const +{ + m_result = spvReflectEnumerateDescriptorSets( + &m_module, + p_count, + pp_sets); + return m_result; +} + +/*! @fn EnumerateEntryPointDescriptorSets + + @param entry_point + @param count + @param pp_sets + @return + +*/ +inline SpvReflectResult ShaderModule::EnumerateEntryPointDescriptorSets( + const char* entry_point, + uint32_t* p_count, + SpvReflectDescriptorSet** pp_sets +) const +{ + m_result = spvReflectEnumerateEntryPointDescriptorSets( + &m_module, + entry_point, + p_count, + pp_sets); + return m_result; +} + + +/*! @fn EnumerateInterfaceVariables + + @param count + @param pp_variables + @return + +*/ +inline SpvReflectResult ShaderModule::EnumerateInterfaceVariables( + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +) const +{ + m_result = spvReflectEnumerateInterfaceVariables( + &m_module, + p_count, + pp_variables); + return m_result; +} + +/*! @fn EnumerateEntryPointInterfaceVariables + + @param entry_point + @param count + @param pp_variables + @return + +*/ +inline SpvReflectResult ShaderModule::EnumerateEntryPointInterfaceVariables( + const char* entry_point, + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +) const +{ + m_result = spvReflectEnumerateEntryPointInterfaceVariables( + &m_module, + entry_point, + p_count, + pp_variables); + return m_result; +} + + +/*! @fn EnumerateInputVariables + + @param count + @param pp_variables + @return + +*/ +inline SpvReflectResult ShaderModule::EnumerateInputVariables( + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +) const +{ + m_result = spvReflectEnumerateInputVariables( + &m_module, + p_count, + pp_variables); + return m_result; +} + +/*! @fn EnumerateEntryPointInputVariables + + @param entry_point + @param count + @param pp_variables + @return + +*/ +inline SpvReflectResult ShaderModule::EnumerateEntryPointInputVariables( + const char* entry_point, + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +) const +{ + m_result = spvReflectEnumerateEntryPointInputVariables( + &m_module, + entry_point, + p_count, + pp_variables); + return m_result; +} + + +/*! @fn EnumerateOutputVariables + + @param count + @param pp_variables + @return + +*/ +inline SpvReflectResult ShaderModule::EnumerateOutputVariables( + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +) const +{ + m_result = spvReflectEnumerateOutputVariables( + &m_module, + p_count, + pp_variables); + return m_result; +} + +/*! @fn EnumerateEntryPointOutputVariables + + @param entry_point + @param count + @param pp_variables + @return + +*/ +inline SpvReflectResult ShaderModule::EnumerateEntryPointOutputVariables( + const char* entry_point, + uint32_t* p_count, + SpvReflectInterfaceVariable** pp_variables +) const +{ + m_result = spvReflectEnumerateEntryPointOutputVariables( + &m_module, + entry_point, + p_count, + pp_variables); + return m_result; +} + + +/*! @fn EnumeratePushConstantBlocks + + @param count + @param pp_blocks + @return + +*/ +inline SpvReflectResult ShaderModule::EnumeratePushConstantBlocks( + uint32_t* p_count, + SpvReflectBlockVariable** pp_blocks +) const +{ + m_result = spvReflectEnumeratePushConstantBlocks( + &m_module, + p_count, + pp_blocks); + return m_result; +} + +/*! @fn EnumerateSpecializationConstants + @param p_count + @param pp_constants + @return +*/ +inline SpvReflectResult ShaderModule::EnumerateSpecializationConstants( + uint32_t* p_count, + SpvReflectSpecializationConstant** pp_constants +) const +{ + m_result = spvReflectEnumerateSpecializationConstants( + &m_module, + p_count, + pp_constants + ); + return m_result; +} + +/*! @fn EnumerateEntryPointPushConstantBlocks + + @param entry_point + @param count + @param pp_blocks + @return + +*/ +inline SpvReflectResult ShaderModule::EnumerateEntryPointPushConstantBlocks( + const char* entry_point, + uint32_t* p_count, + SpvReflectBlockVariable** pp_blocks +) const +{ + m_result = spvReflectEnumerateEntryPointPushConstantBlocks( + &m_module, + entry_point, + p_count, + pp_blocks); + return m_result; +} + + +/*! @fn GetDescriptorBinding + + @param binding_number + @param set_number + @param p_result + @return + +*/ +inline const SpvReflectDescriptorBinding* ShaderModule::GetDescriptorBinding( + uint32_t binding_number, + uint32_t set_number, + SpvReflectResult* p_result +) const +{ + return spvReflectGetDescriptorBinding( + &m_module, + binding_number, + set_number, + p_result); +} + +/*! @fn GetEntryPointDescriptorBinding + + @param entry_point + @param binding_number + @param set_number + @param p_result + @return + +*/ +inline const SpvReflectDescriptorBinding* ShaderModule::GetEntryPointDescriptorBinding( + const char* entry_point, + uint32_t binding_number, + uint32_t set_number, + SpvReflectResult* p_result +) const +{ + return spvReflectGetEntryPointDescriptorBinding( + &m_module, + entry_point, + binding_number, + set_number, + p_result); +} + + +/*! @fn GetDescriptorSet + + @param set_number + @param p_result + @return + +*/ +inline const SpvReflectDescriptorSet* ShaderModule::GetDescriptorSet( + uint32_t set_number, + SpvReflectResult* p_result +) const +{ + return spvReflectGetDescriptorSet( + &m_module, + set_number, + p_result); +} + +/*! @fn GetEntryPointDescriptorSet + + @param entry_point + @param set_number + @param p_result + @return + +*/ +inline const SpvReflectDescriptorSet* ShaderModule::GetEntryPointDescriptorSet( + const char* entry_point, + uint32_t set_number, + SpvReflectResult* p_result +) const +{ + return spvReflectGetEntryPointDescriptorSet( + &m_module, + entry_point, + set_number, + p_result); +} + + +/*! @fn GetInputVariable + + @param location + @param p_result + @return + +*/ +inline const SpvReflectInterfaceVariable* ShaderModule::GetInputVariableByLocation( + uint32_t location, + SpvReflectResult* p_result +) const +{ + return spvReflectGetInputVariableByLocation( + &m_module, + location, + p_result); +} +inline const SpvReflectInterfaceVariable* ShaderModule::GetInputVariableBySemantic( + const char* semantic, + SpvReflectResult* p_result +) const +{ + return spvReflectGetInputVariableBySemantic( + &m_module, + semantic, + p_result); +} + +/*! @fn GetEntryPointInputVariable + + @param entry_point + @param location + @param p_result + @return + +*/ +inline const SpvReflectInterfaceVariable* ShaderModule::GetEntryPointInputVariableByLocation( + const char* entry_point, + uint32_t location, + SpvReflectResult* p_result +) const +{ + return spvReflectGetEntryPointInputVariableByLocation( + &m_module, + entry_point, + location, + p_result); +} +inline const SpvReflectInterfaceVariable* ShaderModule::GetEntryPointInputVariableBySemantic( + const char* entry_point, + const char* semantic, + SpvReflectResult* p_result +) const +{ + return spvReflectGetEntryPointInputVariableBySemantic( + &m_module, + entry_point, + semantic, + p_result); +} + + +/*! @fn GetOutputVariable + + @param location + @param p_result + @return + +*/ +inline const SpvReflectInterfaceVariable* ShaderModule::GetOutputVariableByLocation( + uint32_t location, + SpvReflectResult* p_result +) const +{ + return spvReflectGetOutputVariableByLocation( + &m_module, + location, + p_result); +} +inline const SpvReflectInterfaceVariable* ShaderModule::GetOutputVariableBySemantic( + const char* semantic, + SpvReflectResult* p_result +) const +{ + return spvReflectGetOutputVariableBySemantic(&m_module, + semantic, + p_result); +} + +/*! @fn GetEntryPointOutputVariable + + @param entry_point + @param location + @param p_result + @return + +*/ +inline const SpvReflectInterfaceVariable* ShaderModule::GetEntryPointOutputVariableByLocation( + const char* entry_point, + uint32_t location, + SpvReflectResult* p_result +) const +{ + return spvReflectGetEntryPointOutputVariableByLocation( + &m_module, + entry_point, + location, + p_result); +} +inline const SpvReflectInterfaceVariable* ShaderModule::GetEntryPointOutputVariableBySemantic( + const char* entry_point, + const char* semantic, + SpvReflectResult* p_result +) const +{ + return spvReflectGetEntryPointOutputVariableBySemantic( + &m_module, + entry_point, + semantic, + p_result); +} + + +/*! @fn GetPushConstant + + @param index + @param p_result + @return + +*/ +inline const SpvReflectBlockVariable* ShaderModule::GetPushConstantBlock( + uint32_t index, + SpvReflectResult* p_result +) const +{ + return spvReflectGetPushConstantBlock( + &m_module, + index, + p_result); +} + +/*! @fn GetEntryPointPushConstant + + @param entry_point + @param index + @param p_result + @return + +*/ +inline const SpvReflectBlockVariable* ShaderModule::GetEntryPointPushConstantBlock( + const char* entry_point, + SpvReflectResult* p_result +) const +{ + return spvReflectGetEntryPointPushConstantBlock( + &m_module, + entry_point, + p_result); +} + + +/*! @fn ChangeDescriptorBindingNumbers + + @param p_binding + @param new_binding_number + @param new_set_number + @return + +*/ +inline SpvReflectResult ShaderModule::ChangeDescriptorBindingNumbers( + const SpvReflectDescriptorBinding* p_binding, + uint32_t new_binding_number, + uint32_t new_set_number +) +{ + return spvReflectChangeDescriptorBindingNumbers( + &m_module, + p_binding, + new_binding_number, + new_set_number); +} + + +/*! @fn ChangeDescriptorSetNumber + + @param p_set + @param new_set_number + @return + +*/ +inline SpvReflectResult ShaderModule::ChangeDescriptorSetNumber( + const SpvReflectDescriptorSet* p_set, + uint32_t new_set_number +) +{ + return spvReflectChangeDescriptorSetNumber( + &m_module, + p_set, + new_set_number); +} + + +/*! @fn ChangeInputVariableLocation + + @param p_input_variable + @param new_location + @return + +*/ +inline SpvReflectResult ShaderModule::ChangeInputVariableLocation( + const SpvReflectInterfaceVariable* p_input_variable, + uint32_t new_location) +{ + return spvReflectChangeInputVariableLocation( + &m_module, + p_input_variable, + new_location); +} + + +/*! @fn ChangeOutputVariableLocation + + @param p_input_variable + @param new_location + @return + +*/ +inline SpvReflectResult ShaderModule::ChangeOutputVariableLocation( + const SpvReflectInterfaceVariable* p_output_variable, + uint32_t new_location) +{ + return spvReflectChangeOutputVariableLocation( + &m_module, + p_output_variable, + new_location); +} + +} // namespace spv_reflect +#endif // defined(__cplusplus) && !defined(SPIRV_REFLECT_DISABLE_CPP_WRAPPER) +#endif // SPIRV_REFLECT_H + +// clang-format on diff --git a/HexaGen.Tests/xaudio2/generator.json b/HexaGen.Tests/xaudio2/generator.json index e0383d1..8ee117e 100644 --- a/HexaGen.Tests/xaudio2/generator.json +++ b/HexaGen.Tests/xaudio2/generator.json @@ -5,6 +5,7 @@ "EnableExperimentalOptions": true, "GenerateConstructorsForStructs": true, "GenerateSizeOfStructs": false, + "GenerateMetadata": true, "BoolType": 1, "KnownConstantNames": { }, diff --git a/HexaGen.Tests/xd3audio/generator.json b/HexaGen.Tests/xd3audio/generator.json index 0d582c3..5f439f5 100644 --- a/HexaGen.Tests/xd3audio/generator.json +++ b/HexaGen.Tests/xd3audio/generator.json @@ -5,6 +5,7 @@ "EnableExperimentalOptions": true, "GenerateConstructorsForStructs": true, "GenerateSizeOfStructs": false, + "GenerateMetadata": true, "Usings": [ "System.Numerics" ], "BoolType": 1, "KnownConstantNames": { @@ -20,6 +21,9 @@ }, "KnownStructMethods": { }, + "IgnoredFunctions": [ + "X3DAudioInitialize" + ], "IgnoredParts": [ "bit" ], @@ -87,10 +91,10 @@ "LUID": "Luid", "IID": "Guid", "LPVOID": "void*", - "X3DAUDIO_VECTOR": "Vector4", - "X3DAUDIO_HANDLE": "X3DAudioHandle*" + "X3DAUDIO_VECTOR": "Vector3", + "X3DAUDIO_HANDLE": "X3DAudioHandle" }, "SystemIncludeFolders": [ - "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\Llvm\\x64\\lib\\clang\\16\\include" + "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\Llvm\\x64\\lib\\clang\\17\\include" ] } \ No newline at end of file diff --git a/HexaGen.sln b/HexaGen.sln index 5c94ca5..4cc17ef 100644 --- a/HexaGen.sln +++ b/HexaGen.sln @@ -65,9 +65,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hexa.NET.PhysX", "Hexa.NET. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HexaGen.Cpp2C", "HexaGen.Cpp2C\HexaGen.Cpp2C.csproj", "{B9F8CB09-219F-489B-8B23-A2CCA53C99C6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hexa.NET.FreeType", "Hexa.NET.FreeType\Hexa.NET.FreeType.csproj", "{9BD1B06E-A8BD-4FE7-B5FD-3792FE7C63FE}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hexa.NET.FreeType", "Hexa.NET.FreeType\Hexa.NET.FreeType.csproj", "{9BD1B06E-A8BD-4FE7-B5FD-3792FE7C63FE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FreeTypeTest", "FreeTypeTest\FreeTypeTest.csproj", "{DB7B6A10-85CE-4D17-ACD8-7DF3781469BA}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FreeTypeTest", "FreeTypeTest\FreeTypeTest.csproj", "{DB7B6A10-85CE-4D17-ACD8-7DF3781469BA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hexa.NET.SPIRVReflect", "Hexa.NET.SPIRVReflect\Hexa.NET.SPIRVReflect.csproj", "{D364862B-8DFD-4D25-82DD-F0915FC1190E}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -199,6 +201,10 @@ Global {DB7B6A10-85CE-4D17-ACD8-7DF3781469BA}.Debug|Any CPU.Build.0 = Debug|Any CPU {DB7B6A10-85CE-4D17-ACD8-7DF3781469BA}.Release|Any CPU.ActiveCfg = Release|Any CPU {DB7B6A10-85CE-4D17-ACD8-7DF3781469BA}.Release|Any CPU.Build.0 = Release|Any CPU + {D364862B-8DFD-4D25-82DD-F0915FC1190E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D364862B-8DFD-4D25-82DD-F0915FC1190E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D364862B-8DFD-4D25-82DD-F0915FC1190E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D364862B-8DFD-4D25-82DD-F0915FC1190E}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -226,6 +232,7 @@ Global {47D9FE42-1BC9-4987-868B-DE0B7DFA774D} = {FA2D6440-3086-4E5C-914E-F2E54C8FDB3A} {9BD1B06E-A8BD-4FE7-B5FD-3792FE7C63FE} = {FA2D6440-3086-4E5C-914E-F2E54C8FDB3A} {DB7B6A10-85CE-4D17-ACD8-7DF3781469BA} = {965D5F79-56E6-4467-BFE9-F8687E123E9A} + {D364862B-8DFD-4D25-82DD-F0915FC1190E} = {FA2D6440-3086-4E5C-914E-F2E54C8FDB3A} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4F4CE20A-885D-440D-9607-ABA7E68A45B7} diff --git a/HexaGen/CsCodeGenerator.Types.cs b/HexaGen/CsCodeGenerator.Types.cs index af8e4e7..e0855ca 100644 --- a/HexaGen/CsCodeGenerator.Types.cs +++ b/HexaGen/CsCodeGenerator.Types.cs @@ -98,7 +98,7 @@ protected virtual void WriteClass(GenContext context, CppClass cppClass, TypeMap } if (settings.GenerateMetadata) { - writer.WriteLine($"[NativeName(NativeNameType.StructOrClass, \"{cppClass.Name}\")]"); + writer.WriteLine($"[NativeName(NativeNameType.StructOrClass, \"{cppClass.FullName}\")]"); } bool isUnion = cppClass.ClassKind == CppClassKind.Union; @@ -127,7 +127,7 @@ protected virtual void WriteClass(GenContext context, CppClass cppClass, TypeMap { var subClass = cppClass.Classes[j]; var csSubName = settings.GetCsSubTypeName(cppClass, csName, subClass, j); - var subClassMapping = settings.GetTypeMapping(subClass.Name); + var subClassMapping = settings.GetTypeMapping(subClass.FullName); csSubName = subClassMapping?.FriendlyName ?? csSubName; @@ -153,7 +153,7 @@ protected virtual void WriteClass(GenContext context, CppClass cppClass, TypeMap writer.WriteLine($"[NativeName(NativeNameType.Type, \"{cppField.Type.GetDisplayName()}\")]"); } - var subClass = subClasses.FirstOrDefault(x => x.Type == cppClass1 && x.CppFieldName == cppField.Name); + var subClass = subClasses.FirstOrDefault(x => x.CppType == cppClass1 && x.CppFieldName == cppField.Name); string csFieldName = settings.GetFieldName(cppField.Name); if (isUnion) @@ -228,6 +228,21 @@ protected virtual void WriteClass(GenContext context, CppClass cppClass, TypeMap var csFunctionName = settings.GetPrettyFunctionName(cppFunction.Name); CsFunction function = CreateCsFunction(cppFunction, csFunctionName, commands, out var overload); + + for (int j = 0; j < overload.Parameters.Count; j++) + { + var param = overload.Parameters[j]; + var subClass = subClasses.First(x => x.CppType == param.CppType); + param.Type = subClass.Type; + + int depth = 0; + var subClass1 = subClasses.FirstOrDefault(x => x.CppType.IsPointerOf(param.CppType, ref depth)); + if (subClass1 != null) + { + param.Type = new CsType(subClass1.Name + new string('*', depth), CppPrimitiveKind.Void); + } + } + overload.StructName = csName; funcGen.GenerateVariations(cppFunction.Parameters, overload, true); @@ -265,17 +280,31 @@ protected virtual void WriteClass(GenContext context, CppClass cppClass, TypeMap var direction = cppField.Type.GetDirection(); var kind = cppField.Type.GetPrimitiveKind(); - if (cppField.Type is CppClass cppClass1 && cppClass1.ClassKind == CppClassKind.Union) + var subClass = subClasses.FirstOrDefault(x => x.CppType == cppField.Type); + + if (subClass != null && cppField.Type is CppClass cppClass1 && cppClass1.ClassKind == CppClassKind.Union) { - var subClass = subClasses.FirstOrDefault(x => x.Type == cppClass1 && x.CppFieldName == cppField.Name); + subClass = subClasses.First(x => x.CppType == cppClass1 && x.CppFieldName == cppField.Name); paramCsTypeName = subClass.Name; paramCsName = subClass.FieldName.ToLower(); csFieldName = subClass.FieldName; } + if (subClass != null) + { + paramCsTypeName = subClass.Name; + } + + int depth = 0; + var subClass1 = subClasses.FirstOrDefault(x => x.CppType.IsPointerOf(cppField.Type, ref depth)); + if (subClass1 != null) + { + paramCsTypeName = subClass1.Name + new string('*', depth); + } + CsType csType = new(paramCsTypeName, kind); - CsParameterInfo csParameter = new(paramCsName, csType, direction, "default", csFieldName); + CsParameterInfo csParameter = new(paramCsName, cppField.Type, csType, direction, "default", csFieldName); overload.DefaultValues.TryAdd(paramCsName, "default"); overload.Parameters.Add(csParameter); } @@ -392,8 +421,7 @@ private void WriteConstructor(GenContext context, HashSet definedFunctio if (string.IsNullOrEmpty(fieldName)) { - var subClass = subClasses.Find(x => x.Type == cppField.Type && x.CppFieldName == cppField.Name); - fieldName = subClass.Name; + fieldName = subClasses.First(x => x.CppType == cppField.Type).Name; } if (fieldName == cppParameter.Name) @@ -487,11 +515,20 @@ private void WriteField(ICodeWriter writer, CppField field, TypeFieldMapping? ma else { string csFieldType = settings.GetCsTypeName(field.Type, false); - if (string.IsNullOrEmpty(csFieldType)) + + var subClass = subClasses.Find(x => x.CppType == field.Type); + if (subClass != null) { - var subClass = subClasses.Find(x => x.Type == field.Type); csFieldType = subClass.Name; } + + int depth = 0; + var subClass1 = subClasses.FirstOrDefault(x => x.CppType.IsPointerOf(field.Type, ref depth)); + if (subClass1 != null) + { + csFieldType = subClass1.Name + new string('*', depth); + } + string fieldPrefix = isReadOnly ? "readonly " : string.Empty; if (csFieldType == "bool") diff --git a/HexaGen/CsCodeGenerator.cs b/HexaGen/CsCodeGenerator.cs index 16dd61e..e6d9e47 100644 --- a/HexaGen/CsCodeGenerator.cs +++ b/HexaGen/CsCodeGenerator.cs @@ -314,7 +314,7 @@ protected virtual CsFunction CreateCsFunction(CppFunction cppFunction, string cs CsType csType = new(paramCsTypeName, kind); - CsParameterInfo csParameter = new(paramCsName, csType, direction); + CsParameterInfo csParameter = new(paramCsName, cppParameter.Type, csType, direction); csParameter.Attributes.Add($"[NativeName(NativeNameType.Param, \"{cppParameter.Name}\")]"); csParameter.Attributes.Add($"[NativeName(NativeNameType.Type, \"{cppParameter.Type.GetDisplayName()}\")]"); overload.Parameters.Add(csParameter); diff --git a/HexaGen/CsCodeGeneratorSettings.TypeNaming.cs b/HexaGen/CsCodeGeneratorSettings.TypeNaming.cs index 92591e4..ef34246 100644 --- a/HexaGen/CsCodeGeneratorSettings.TypeNaming.cs +++ b/HexaGen/CsCodeGeneratorSettings.TypeNaming.cs @@ -53,6 +53,12 @@ public string GetCsSubTypeName(CppClass parentClass, string parentCsName, CppCla { csSubName = GetCsCleanName(subClass.Name); } + + if (parentClass.Fields.Any(x => x.Name == csSubName)) + { + csSubName = parentCsName + csSubName; + } + return csSubName; } } diff --git a/HexaGen/CsCodeGeneratorSettings.cs b/HexaGen/CsCodeGeneratorSettings.cs index d740579..116a682 100644 --- a/HexaGen/CsCodeGeneratorSettings.cs +++ b/HexaGen/CsCodeGeneratorSettings.cs @@ -244,6 +244,7 @@ public static CsCodeGeneratorSettings Load(string file) /// /// This option generates the sizes of the structs. (Default: ) /// + /// public bool GenerateSizeOfStructs { get; set; } = false; /// @@ -1574,6 +1575,8 @@ public string NormalizeParameterName(string name) return newName; } + name = name.Trim('_'); + newName = NamingHelper.ConvertTo(name, ParameterNamingConvention); if (Keywords.Contains(newName)) diff --git a/HexaGen/CsComCodeGenerator.Extensions.cs b/HexaGen/CsComCodeGenerator.Extensions.cs index dbf0df0..f78cd2c 100644 --- a/HexaGen/CsComCodeGenerator.Extensions.cs +++ b/HexaGen/CsComCodeGenerator.Extensions.cs @@ -289,7 +289,7 @@ protected virtual bool WriteCOMExtension(GenContext context, HashSet def } else if (paramFlags.HasFlag(ParameterFlags.Ref)) { - writer.BeginBlock($"fixed ({cppParameter.Type.CleanName}* p{cppParameter.Name} = &{cppParameter.Name})"); + writer.BeginBlock($"fixed ({cppParameter.Type.CleanName}* p{cppParameter.Name.Replace("@", string.Empty)} = &{cppParameter.Name})"); sb.Append($"({overload.Parameters[i + 0].Type.Name})p{cppParameter.Name}"); stacks++; } diff --git a/HexaGen/CsComCodeGenerator.Functions.cs b/HexaGen/CsComCodeGenerator.Functions.cs index 0bc3fbe..b9d0466 100644 --- a/HexaGen/CsComCodeGenerator.Functions.cs +++ b/HexaGen/CsComCodeGenerator.Functions.cs @@ -57,24 +57,28 @@ protected override void GenerateFunctions(CppCompilation compilation, string out writer.WriteLine($"[return: NativeName(NativeNameType.Type, \"{cppFunction.ReturnType.GetDisplayName()}\")]"); } + string modifiers; + if (settings.UseLibraryImport) { writer.WriteLine($"[LibraryImport(LibName, EntryPoint = \"{cppFunction.Name}\")]"); writer.WriteLine($"[UnmanagedCallConv(CallConvs = new Type[] {{typeof({cppFunction.CallingConvention.GetCallingConventionLibrary()})}})]"); + modifiers = "internal static partial"; } else { writer.WriteLine($"[DllImport(LibName, CallingConvention = CallingConvention.{cppFunction.CallingConvention.GetCallingConvention()}, EntryPoint = \"{cppFunction.Name}\")]"); + modifiers = "internal static extern"; } if (boolReturn) { - writer.WriteLine($"internal static extern {settings.GetBoolType()} {csName}Native({argumentsString});"); + writer.WriteLine($"{modifiers} {settings.GetBoolType()} {csName}Native({argumentsString});"); writer.WriteLine(); } else { - writer.WriteLine($"internal static extern {header};"); + writer.WriteLine($"{modifiers} {header};"); writer.WriteLine(); } @@ -241,7 +245,7 @@ protected override void WriteFunction(GenContext context, HashSet define } else if (paramFlags.HasFlag(ParameterFlags.Array)) { - writer.BeginBlock($"fixed ({cppParameter.Type.CleanName}* p{cppParameter.Name} = {cppParameter.Name})"); + writer.BeginBlock($"fixed ({cppParameter.Type.CleanName}* p{cppParameter.Name.Replace("@", string.Empty)} = {cppParameter.Name})"); sb.Append($"({overload.Parameters[i + offset].Type.Name})p{cppParameter.Name}"); blockCounter++; } diff --git a/HexaGen/FormatHelper.cs b/HexaGen/FormatHelper.cs index 0fac9d8..ab0f871 100644 --- a/HexaGen/FormatHelper.cs +++ b/HexaGen/FormatHelper.cs @@ -103,6 +103,8 @@ public static bool IsPointerOf(this CppType type, CppType pointer, ref int depth else return pointerType.ElementType.GetDisplayName() == type.GetDisplayName(); } + + depth = 0; return false; } diff --git a/HexaGen/FunctionGenerator.cs b/HexaGen/FunctionGenerator.cs index d45c72d..16e53e8 100644 --- a/HexaGen/FunctionGenerator.cs +++ b/HexaGen/FunctionGenerator.cs @@ -8,14 +8,20 @@ public class CsSubClass { - public CppType Type; - public string Name; - public string CppFieldName; - public string FieldName; + public CppType CppType { get; set; } + + public CsType Type { get; set; } + + public string Name { get; set; } + + public string CppFieldName { get; set; } + + public string FieldName { get; set; } public CsSubClass(CppType type, string name, string cppFieldName, string fieldName) { - Type = type; + Type = new(name, name, false, false, false, false, false, false, false, false, false, CsStringType.None, CsPrimitiveType.Unknown); + CppType = type; Name = name; CppFieldName = cppFieldName; FieldName = fieldName; @@ -54,30 +60,37 @@ public void GenerateConstructorVariations(CppClass cppClass, List su var paramCsName = settings.GetParameterName(i, cppField.Name); var direction = cppField.Type.GetDirection(); - if (cppField.Type is CppClass cppClass1 && cppClass1.ClassKind == CppClassKind.Union) + var subClass = subClasses.Find(x => x.CppType == cppField.Type); + if (subClass != null && cppField.Type is CppClass cppClass1 && cppClass1.ClassKind == CppClassKind.Union) { - var subClass = subClasses.FirstOrDefault(x => x.Type == cppClass1 && x.CppFieldName == cppField.Name); + subClass = subClasses.First(x => x.CppType == cppClass1 && x.CppFieldName == cppField.Name); paramCsTypeName = subClass.Name; paramCsName = subClass.FieldName.ToLower(); fieldCsName = subClass.FieldName; } - if (string.IsNullOrEmpty(paramCsTypeName)) + if (subClass != null) { - var subClass = subClasses.Find(x => x.Type == cppField.Type && x.CppFieldName == cppField.Name); paramCsTypeName = subClass.Name; } - parameterList[i] = new(paramCsName, new(paramCsTypeName, kind), direction, "default", fieldCsName); + int depth = 0; + var subClass1 = subClasses.FirstOrDefault(x => x.CppType.IsPointerOf(cppField.Type, ref depth)); + if (subClass1 != null) + { + paramCsTypeName = subClass1.Name + new string('*', depth); + } + + parameterList[i] = new(paramCsName, cppField.Type, new(paramCsTypeName, kind), direction, "default", fieldCsName); if (cppField.Type is CppArrayType arrayType) { var arrayElementTypeName = settings.GetCsWrappedPointerTypeName(arrayType.ElementType, false); - spanParameterList[i] = new(paramCsName, new($"Span<{arrayElementTypeName}>", kind), direction, "default", fieldCsName); + spanParameterList[i] = new(paramCsName, cppField.Type, new($"Span<{arrayElementTypeName}>", kind), direction, "default", fieldCsName); } else { - spanParameterList[i] = new(paramCsName, new(paramCsTypeName, kind), direction, "default", fieldCsName); + spanParameterList[i] = new(paramCsName, cppField.Type, new(paramCsTypeName, kind), direction, "default", fieldCsName); } } @@ -127,33 +140,33 @@ public void GenerateVariations(IList parameters, CsFunctionOverloa { if (arrayType.Size > 0) { - refParameterList[j] = new(paramCsName, new("ref " + settings.GetCsTypeName(arrayType.ElementType, false), kind), direction); + refParameterList[j] = new(paramCsName, cppParameter.Type, new("ref " + settings.GetCsTypeName(arrayType.ElementType, false), kind), direction); } else { - refParameterList[j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + refParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); } if (arrayType.ElementType.IsString()) { - stringParameterList[j] = new(paramCsName, new("string[]", kind), direction); + stringParameterList[j] = new(paramCsName, cppParameter.Type, new("string[]", kind), direction); } else { - stringParameterList[j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + stringParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); } } else { - refParameterList[j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + refParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); if (cppParameter.Type.IsString()) { - stringParameterList[j] = new(paramCsName, new(direction == Direction.InOut ? "ref string" : "string", kind), direction); + stringParameterList[j] = new(paramCsName, cppParameter.Type, new(direction == Direction.InOut ? "ref string" : "string", kind), direction); } else { - stringParameterList[j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + stringParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); } } @@ -163,24 +176,24 @@ public void GenerateVariations(IList parameters, CsFunctionOverloa { if (mapping.CustomVariations[i].TryGetValue(paramCsName, out var paramType)) { - customParameterList[i][j] = new(paramCsName, new(paramType, kind), direction); + customParameterList[i][j] = new(paramCsName, cppParameter.Type, new(paramType, kind), direction); } else { - customParameterList[i][j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + customParameterList[i][j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); } } } } else { - refParameterList[j] = new(paramCsName, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); - stringParameterList[j] = new(paramCsName, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); + refParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); + stringParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); if (mapping != null) { for (int i = 0; i < mapping.CustomVariations.Count; i++) { - customParameterList[i][j] = new(paramCsName, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); + customParameterList[i][j] = new(paramCsName, cppParameter.Type, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); } } } @@ -272,34 +285,34 @@ public unsafe void GenerateCOMVariations(IList parameters, CsFunct { if (arrayType.Size > 0) { - refParameterList[j] = new(paramCsName, new("ref " + settings.GetCsTypeName(arrayType.ElementType, false), kind), direction); + refParameterList[j] = new(paramCsName, cppParameter.Type, new("ref " + settings.GetCsTypeName(arrayType.ElementType, false), kind), direction); } else { - refParameterList[j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + refParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); } if (arrayType.Size > 0) { - comPtrParameterList[j] = new(paramCsName, new("ref " + settings.GetCsTypeName(arrayType.ElementType, false), kind), direction); + comPtrParameterList[j] = new(paramCsName, cppParameter.Type, new("ref " + settings.GetCsTypeName(arrayType.ElementType, false), kind), direction); } else { - comPtrParameterList[j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + comPtrParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); } if (arrayType.ElementType.IsString()) { - stringParameterList[j] = new(paramCsName, new("string[]", kind), direction); + stringParameterList[j] = new(paramCsName, cppParameter.Type, new("string[]", kind), direction); } else { - stringParameterList[j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + stringParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); } } else { - refParameterList[j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + refParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); int pointerDepth = 0; var name = settings.GetCsTypeName(cppParameter.Type, false).Replace("*", string.Empty); @@ -322,27 +335,27 @@ public unsafe void GenerateCOMVariations(IList parameters, CsFunct } if (pointerDepth == 1) { - comPtrParameterList[j] = new(paramCsName, new($"ComPtr<{name}>", kind), direction); + comPtrParameterList[j] = new(paramCsName, cppParameter.Type, new($"ComPtr<{name}>", kind), direction); } else if (pointerDepth == 2) { if (j == parameters.Count - 1) { - comPtrParameterList[j] = new(paramCsName, new($"out ComPtr<{name}>", kind), direction); + comPtrParameterList[j] = new(paramCsName, cppParameter.Type, new($"out ComPtr<{name}>", kind), direction); } else { - comPtrParameterList[j] = new(paramCsName, new($"ref ComPtr<{name}>", kind), direction); + comPtrParameterList[j] = new(paramCsName, cppParameter.Type, new($"ref ComPtr<{name}>", kind), direction); } } else { - comPtrParameterList[j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + comPtrParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); } } else { - comPtrParameterList[j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + comPtrParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); } if (name == "Guid" @@ -388,11 +401,11 @@ public unsafe void GenerateCOMVariations(IList parameters, CsFunct if (cppParameter.Type.IsString()) { - stringParameterList[j] = new(paramCsName, new(direction == Direction.InOut ? "ref string" : "string", kind), direction); + stringParameterList[j] = new(paramCsName, cppParameter.Type, new(direction == Direction.InOut ? "ref string" : "string", kind), direction); } else { - stringParameterList[j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + stringParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); } } @@ -402,25 +415,25 @@ public unsafe void GenerateCOMVariations(IList parameters, CsFunct { if (mapping.CustomVariations[i].TryGetValue(paramCsName, out var paramType)) { - customParameterList[i][j] = new(paramCsName, new(paramType, kind), direction); + customParameterList[i][j] = new(paramCsName, cppParameter.Type, new(paramType, kind), direction); } else { - customParameterList[i][j] = new(paramCsName, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); + customParameterList[i][j] = new(paramCsName, cppParameter.Type, new(settings.GetCsWrapperTypeName(cppParameter.Type, false), kind), direction); } } } } else { - refParameterList[j] = new(paramCsName, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); - stringParameterList[j] = new(paramCsName, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); - comPtrParameterList[j] = new(paramCsName, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); + refParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); + stringParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); + comPtrParameterList[j] = new(paramCsName, cppParameter.Type, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); if (mapping != null) { for (int i = 0; i < mapping.CustomVariations.Count; i++) { - customParameterList[i][j] = new(paramCsName, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); + customParameterList[i][j] = new(paramCsName, cppParameter.Type, new(settings.GetCsTypeName(cppParameter.Type, false), kind), direction); } } }